npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@deskdirector/angular-chat

v1.0.0

Published

Angular chat components

Downloads

7

Readme

DeskDirector Angular Chat

Angularjs ui components for chat v4.

Components

In general, components will not render certain buttons if a callback is not provided.

Avatar

There is no need to use this directly for chat, but if you want you can use this component elsewhere in your app. This avatar will always show the user's presence.

selector: dac-avatar

api (bindings):

user: DacUser;
width: number; // default = 28
height: number; // default = 28
charCount: number; // default = 2

ChatContainer

This is the component that encapsulates the main content of a chat. It shows messages and an input container for entering messages.

selector: dac-chat-container

api:

participants: DacUser[] // Who's currently in the session
messages: DacMessage[] // All chat messages
userId: string // User id of the current user (will affect how messages are displayed)
hasUnread: boolean // Will show a button that user can click to read the latest message
typingUsers: DacUser[] // Will show who's typing at the bottom of messages
onReadMessage: () => void // Called when the user clicks the "read message" button. Should be used to read the latest message.
onInvite: () => void // Called when user clicks invite button. This should be where you swap out this component for the InviteUserContainer component.

InputContainer

This is to be used as a wrapper around an input field. It will render a send button as well as style your input element.

selector: dac-input-container

api:

canSend: boolean // whether the send button is enabled
onSend: () => void // Called when the send button is clicked

transclude: {
  input // Only transcludes an input field
}

InviteUserContainer

This component encapsulates the main content of inviting a user. This is intended to replace the ChatContainer component when the user clicks the invite button.

selector: dac-invite-user-container

api:

members: DacUser // All members that can be sent an invite
contacts: DacUser // All contacts that can be sent an invite
onInviteUsers: (args: { users: DacUser }) => void // Called when user clicks invite button after selecting users
onCancel: () => void // Called when user clicks the back button. You should now swap this component for the ChatContainer component.

Menu

This component encapsulates the menu content for dd-tech users. This is intended to replace the ChatContainer or InviteUsersContainer when the user clicks the menu button.

selector: dac-menu

api:

canLeave: boolean // Whether the tech can leave the room
onCancel: () => void // Called when the user clicks the back button
onLinkToTicket: () => void // Called when the user clicks the link to ticket button
onCreateTicket: () => void // Called when the user clicks the create ticket button
onClose: () => void // Called when the user clicks the close button
onLeave: () => void // Called when the user clicks the leave chat session button

Toolbar

This is the top toolbar for the chat session. It should always be present, even when switching container components around.

selector: dac-toolbar

api:

canLeave: boolean; // Whether the leave button shows
onLeave: // Called when the user clicks the leave button
onMinimize: // Called when the user clicks the minimize button
onShowMenu: // Called when the user clicks the menu button. Use this to show the menu component
transclude: {
  dacToolbarTitle; // Render your title inside this component
}