MCPcopy Create free account

hub / github.com/cometchat/cometchat-uikit-angular / functions

Functions6,248 in github.com/cometchat/cometchat-uikit-angular

↓ 10 callersMethodreset
* Reset state to initial (no popover open)
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/popover-mutual-exclusivity.property.spec.ts:124
↓ 10 callersMethodsanitizeWithConfig
Sanitize HTML with custom configuration. Results are NOT cached. @see Requirements 13.1
projects/cometchat-uikit/src/lib/services/html-sanitizer.service.ts:76
↓ 10 callersMethodsearchConversations
(searchText: string)
projects/cometchat-uikit/src/lib/services/conversations.service.ts:154
↓ 10 callersMethodselect
Programmatically selects an item without toggling.
projects/cometchat-uikit/src/lib/services/list-selection-manager.class.ts:159
↓ 10 callersFunctionselectAll
* Helper: select all text inside the editor's contenteditable.
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.spec.ts:45
↓ 10 callersFunctionselectAllInEditor
* Helper: select all content inside the editor's contenteditable.
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.spec.ts:5361
↓ 10 callersMethodsetConversations
* Set initial conversations list
projects/cometchat-uikit/src/lib/components/cometchat-conversations/conversation-list-updates.property.spec.ts:239
↓ 10 callersMethodsetDeliveredAt
(t: number)
projects/cometchat-uikit/src/lib/components/cometchat-conversation-item/cometchat-conversation-item.component.spec.ts:185
↓ 10 callersMethodsetLogLevel
* Sets the active log level. Only messages at this level or below will be output. * @param level - The desired log level.
projects/cometchat-uikit/src/lib/utils/CometChatLogger.ts:37
↓ 10 callersFunctionsetSelectedReason
Set a selected reason so handleSubmitClick() doesn't bail early
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-flag-message-dialog/cometchat-flag-message-dialog.component.spec.ts:119
↓ 10 callersFunctionsetUserAgent
(ua: string)
projects/cometchat-uikit/src/lib/utils/util.spec.ts:46
↓ 10 callersFunctionshouldRenderCustomTemplate
* Pure function that mirrors the component's slot resolution logic. * Returns true if a custom template should be rendered for the given slot. *
projects/cometchat-uikit/src/lib/components/cometchat-conversation-item/conversation-item.property.spec.ts:65
↓ 10 callersMethodshouldShowSmartReplies
* Determines if smart replies should be shown for the current message. * * Returns false if: * - No message is provided * - Message is not
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-smart-replies/cometchat-smart-replies.component.ts:187
↓ 10 callersMethodshowInlineToast
(msg: string, type?: any, duration?: number)
projects/cometchat-uikit/src/lib/components/cometchat-message-list/cometchat-message-list.event-handlers.ts:26
↓ 10 callersFunctionsimulateElementClick
* Pure function that simulates the event handler behavior. * Returns the event emission result for a given element click.
projects/cometchat-uikit/src/lib/components/cometchat-conversation-item/conversation-item.property.spec.ts:711
↓ 10 callersMethodsyncStateFromService
()
projects/cometchat-uikit/src/lib/components/cometchat-groups/cometchat-groups.component.ts:198
↓ 10 callersFunctiontoggleFormat
* Toggle a specific format in the format state * Mirrors the behavior of RichTextEditorService toggle methods * * When a format is toggled: * - If
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/format-toggle.property.spec.ts:87
↓ 10 callersMethodupdateLink
* Update the URL and/or text of an existing link at the cursor position * @param url - New URL * @param text - Optional new text to display *
projects/cometchat-uikit/src/lib/services/link-manager.class.ts:129
↓ 9 callersMethodaddCustomEmoji
* Adds custom emoji shortcodes. Custom shortcodes take precedence over built-in ones. * @param emojiMap - Record mapping shortcode names to emoji c
projects/cometchat-uikit/src/lib/formatters/cometchat-emoji-formatter.ts:65
↓ 9 callersFunctionassertGetters
* Assert that obj has every method in the list and each returns non-undefined. * For methods that may legitimately return undefined when not explicit
projects/cometchat-uikit/src/lib/testing/__tests__/mock-sdk.spec.ts:36
↓ 9 callersMethodautoLinkText
* Detect and convert URLs in pasted text to clickable links * Should be called from the paste event handler * * @param text - Pasted text con
projects/cometchat-uikit/src/lib/services/link-manager.class.ts:266
↓ 9 callersMethodclose
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-toast/cometchat-toast.component.ts:76
↓ 9 callersMethodcloseAllPopups
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.voice-utils.ts:26
↓ 9 callersFunctioncreateMessageWithReactions
* Creates a mock text message with the specified number of reactions attached.
projects/cometchat-uikit/src/lib/components/cometchat-reactions/cometchat-reactions.stories.ts:32
↓ 9 callersFunctioncreateMockAction
* Creates a mock action item for story rendering.
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-action-sheet/cometchat-action-sheet.stories.ts:27
↓ 9 callersFunctioncreateMockMessage
(type: string, category: string)
projects/cometchat-uikit/src/lib/testing/properties/message-type-delegation-properties.spec.ts:48
↓ 9 callersFunctioncreateMockUser
(overrides: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/events/CometChatGroupEvents.spec.ts:58
↓ 9 callersFunctioncreateMockUser
(overrides: Partial<MockUser> = {})
projects/cometchat-uikit/src/lib/testing/message-header-chat-state.integration.spec.ts:140
↓ 9 callersMethodcreateNewListItem
()
projects/cometchat-uikit/src/lib/services/list-manager.class.ts:270
↓ 9 callersFunctiondetermineMediaLayout
(attachmentCount: number)
projects/cometchat-uikit/src/lib/utils/media-bubble-utils.ts:181
↓ 9 callersFunctionexitEditMode
* Exits edit mode and cleans up state. * Mirrors the component's exitEditMode/exitEditModeWithoutEvent/cancelEdit methods. * * **Property 5: Edit M
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:517
↓ 9 callersMethodexitPictureInPicture
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-fullscreen-viewer/cometchat-fullscreen-viewer.component.ts:365
↓ 9 callersFunctionexpectRole
(element: HTMLElement, expectedRole: string)
projects/cometchat-uikit/src/lib/testing/accessibility-test-utils.ts:167
↓ 9 callersMethodextendSelection
Extends selection to include an item (Shift+Arrow behavior). @see Requirements 3.4, 3.5
projects/cometchat-uikit/src/lib/services/list-selection-manager.class.ts:68
↓ 9 callersFunctionextractMediaAttachments
( message: CometChat.MediaMessage | null | undefined, mediaType: 'image' | 'video', logPrefix: string )
projects/cometchat-uikit/src/lib/utils/media-bubble-utils.ts:21
↓ 9 callersMethodfetchNextCallLogs
Fetches the next page of call logs. @see Requirement 1.3
projects/cometchat-uikit/src/lib/services/call-logs.service.ts:109
↓ 9 callersFunctionfocusListItem
(index: number)
projects/cometchat-uikit/src/lib/testing/list-accessibility-integration.spec.ts:122
↓ 9 callersMethodfocusNextItem
()
projects/cometchat-uikit/src/lib/utils/list-keyboard-handler.ts:51
↓ 9 callersMethodfocusPreviousItem
()
projects/cometchat-uikit/src/lib/utils/list-keyboard-handler.ts:52
↓ 9 callersMethodfocusRichTextEditor
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.voice-utils.ts:24
↓ 9 callersMethodformat
(text: string)
projects/cometchat-uikit/src/lib/components/cometchat-text-bubble/cometchat-text-bubble.preservation.spec.ts:48
↓ 9 callersMethodformatTime
(seconds: number)
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-media-recorder/cometchat-media-recorder.component.ts:373
↓ 9 callersMethodgetAttachments
* Get the current attachments
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/file-size-validation.property.spec.ts:162
↓ 9 callersMethodgetAvatar
()
projects/cometchat-uikit/src/lib/components/cometchat-call-logs/cometchat-call-logs.stories.ts:46
↓ 9 callersMethodgetAvatar
()
projects/cometchat-uikit/src/lib/components/__tests__/active-selection.property.spec.ts:48
↓ 9 callersFunctiongetContainer
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-message-preview/cometchat-message-preview.component.spec.ts:130
↓ 9 callersFunctiongetConversationEntityId
(conversation: CometChat.Conversation)
projects/cometchat-uikit/src/lib/services/conversations.utils.ts:82
↓ 9 callersMethodgetCounter
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/drag-counter.property.spec.ts:43
↓ 9 callersMethodgetDisplayText
* Returns the formatted display text for reactor names with optional "and X others" suffix.
projects/cometchat-uikit/src/lib/components/cometchat-reaction-info/cometchat-reaction-info.component.ts:170
↓ 9 callersFunctiongetEffectiveTemplate
* Pure function that returns which template should be used for a slot. * Returns the custom template if provided, otherwise returns 'default'.
projects/cometchat-uikit/src/lib/components/cometchat-conversation-item/conversation-item.property.spec.ts:76
↓ 9 callersMethodgetEffectiveView
(part: BubblePart, inputView: TemplateRef<any> | null)
projects/cometchat-uikit/src/lib/components/cometchat-message-bubble/cometchat-message-bubble.component.ts:332
↓ 9 callersFunctiongetEmptySection
()
projects/cometchat-uikit/src/lib/components/cometchat-paginated-list/cometchat-paginated-list.component.spec.ts:156
↓ 9 callersFunctiongetErrorSection
()
projects/cometchat-uikit/src/lib/components/cometchat-paginated-list/cometchat-paginated-list.component.spec.ts:152
↓ 9 callersMethodgetFormatState
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:263
↓ 9 callersFunctiongetGridCells
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-emoji-keyboard/cometchat-emoji-keyboard.component.spec.ts:122
↓ 9 callersMethodgetId
()
projects/cometchat-uikit/src/lib/components/cometchat-ai-assistant-chat-history/cometchat-ai-assistant-chat-history.component.spec.ts:50
↓ 9 callersMethodgetLastEmission
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/reply-event-emission.property.spec.ts:69
↓ 9 callersMethodgetLastEmittedValue
* Gets the last emitted value.
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:2440
↓ 9 callersFunctiongetLoadingSection
()
projects/cometchat-uikit/src/lib/components/cometchat-paginated-list/cometchat-paginated-list.component.spec.ts:148
↓ 9 callersMethodgetMentionedUsers
()
projects/cometchat-uikit/src/lib/components/cometchat-conversation-item/cometchat-conversation-item.component.spec.ts:200
↓ 9 callersMethodgetProgressValueText
* Gets the aria-valuetext for a progress slider. * Returns a string like "2 minutes 30 seconds of 5 minutes". * * @param currentTime - Curren
projects/cometchat-uikit/src/lib/services/media-controls.service.ts:164
↓ 9 callersMethodgetReactedByMe
()
projects/cometchat-uikit/src/lib/components/cometchat-reactions/cometchat-reactions.component.spec.ts:167
↓ 9 callersMethodgetReceiver
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.drag-utils.ts:21
↓ 9 callersMethodgetReceiver
()
projects/cometchat-uikit/src/lib/utils/CallLogUtils.ts:23
↓ 9 callersMethodgetReplyPreviewSubtitle
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.component.ts:295
↓ 9 callersMethodgetRovingTabindexMap
* Updates tabindex values for roving tabindex pattern. * Returns a map of index -> tabindex value. * * This is useful when you need to batch-
projects/cometchat-uikit/src/lib/services/list-navigation.service.ts:155
↓ 9 callersFunctiongetSelectedText
* Get the selected text from an editor state * * @param state - Editor state with selection * @returns The selected text, or empty string if no sel
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/text-selection.property.spec.ts:227
↓ 9 callersMethodgetSelection
* Get the current selection object * Returns null if no selection exists * * @returns Selection object or null * @see Requirements 2.8
projects/cometchat-uikit/src/lib/services/selection-manager.class.ts:61
↓ 9 callersFunctiongetTitleEl
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-confirm-dialog/cometchat-confirm-dialog.component.spec.ts:54
↓ 9 callersMethodhandleAttachmentOptionClick
* Handle attachment option click * @see Requirements 2.2, 4.2, 5.2
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/message-composer-extensions.integration.spec.ts:478
↓ 9 callersFunctionhandleEscapeKey
* Handle Escape key press * Mirrors the handleKeydown behavior for Escape key * * **Validates: Requirements 2.6** * * @param state - Current popu
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/keyboard-navigation.property.spec.ts:174
↓ 9 callersFunctionhandleTripleClick
* Simulate triple-click selection behavior * Triple-click selects the paragraph under the cursor * * **Validates: Requirements 4.2** * * @param s
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/text-selection.property.spec.ts:209
↓ 9 callersFunctionhasAnnouncement
* Validates that an announcement was made (non-empty message) * * @param state - The announcement state to check * @param type - The announce
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:5696
↓ 9 callersMethodhasInteracted
* Checks if the user has interacted with the page. * @returns {boolean} True if the user has interacted, false otherwise.
projects/cometchat-uikit/src/lib/resources/CometChatSoundManager/CometChatSoundManager.ts:221
↓ 9 callersMethodindexToPosition
* Converts a linear index to grid position. * * @param index - The linear index * @param columnCount - Number of columns in the grid * @re
projects/cometchat-uikit/src/lib/services/grid-navigation.service.ts:66
↓ 9 callersMethodisConversationActive
* Checks if a conversation is currently active (highlighted) * Implements hybrid approach: checks activeConversation prop first, falls back to Chat
projects/cometchat-uikit/src/lib/components/__tests__/active-selection.property.spec.ts:330
↓ 9 callersFunctionisElementFocusable
* Checks whether a DOM element is keyboard-focusable. * An element is focusable if: * 1. It is a natively focusable HTML element (button, a, input,
projects/cometchat-uikit/src/lib/interactive-element-focusability.property.spec.ts:62
↓ 9 callersMethodisGroupActive
* Checks if a group is currently active (highlighted) * Implements hybrid approach: checks activeGroup prop first, falls back to ChatStateService
projects/cometchat-uikit/src/lib/components/__tests__/active-selection.property.spec.ts:269
↓ 9 callersMethodisInViewport
()
projects/cometchat-uikit/src/lib/components/cometchat-users/cometchat-users-auto-scroll.property.spec.ts:151
↓ 9 callersFunctionmakeState
( items: T[], isLoading: boolean, hasMore: boolean, error: Error | null, isFetchingMore =
projects/cometchat-uikit/src/lib/components/cometchat-paginated-list/paginated-list.property.spec.ts:61
↓ 9 callersFunctionmakeState
( items: T[], isLoading: boolean, hasMore: boolean, error: Error | null, isFetchingMore =
projects/cometchat-uikit/src/lib/components/cometchat-paginated-list/cometchat-paginated-list.property.spec.ts:61
↓ 9 callersFunctionmockEntity
Creates a simple mock entity with getUid/getName
projects/cometchat-uikit/src/lib/utils/CallLogUtils.spec.ts:17
↓ 9 callersFunctionmockMessageGenerator
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/reply-event-emission.property.spec.ts:218
↓ 9 callersMethodnavigateNext
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-fullscreen-viewer/cometchat-fullscreen-viewer-navigation.property.spec.ts:43
↓ 9 callersMethodnavigatePrev
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-fullscreen-viewer/cometchat-fullscreen-viewer-navigation.property.spec.ts:52
↓ 9 callersMethodngOnInit
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-fullscreen-viewer/cometchat-fullscreen-viewer.component.ts:116
↓ 9 callersMethodnormalizeURL
* Normalize a URL by adding protocol if missing * Defaults to https:// if no protocol is present * * @param url - URL to normalize * @retu
projects/cometchat-uikit/src/lib/services/link-manager.class.ts:231
↓ 9 callersMethodobserve
()
vitest.setup.mjs:34
↓ 9 callersMethodonAcceptClick
* Handles the Accept button click. * * If an `onAccept` callback is provided, invokes it. * Otherwise, calls `incomingCallService.acceptCall(
projects/cometchat-uikit/src/lib/components/cometchat-incoming-call/cometchat-incoming-call.component.ts:237
↓ 9 callersMethodonDeclineClick
* Handles the Decline button click. * * If an `onDecline` callback is provided, invokes it. * Otherwise, calls `incomingCallService.declineCa
projects/cometchat-uikit/src/lib/components/cometchat-incoming-call/cometchat-incoming-call.component.ts:274
↓ 9 callersMethodonKeyDown
(event: KeyboardEvent)
projects/cometchat-uikit/src/lib/components/cometchat-user-item/cometchat-user-item.component.ts:116
↓ 9 callersMethodonMediaEvent
( event: K, callback: (ev: HTMLElementEventMap[K]) => void, options?: boolean | AddEventListenerOp
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/wavesurfer/player.ts:54
↓ 9 callersMethodonReplyKeydown
Handle keyboard events on reply items. @see Requirements 24.2, 24.3
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-smart-replies/cometchat-smart-replies.component.ts:73
↓ 9 callersMethodonSelectionChanged
* Handle radio button selection change
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-change-scope/cometchat-change-scope.component.ts:123
↓ 9 callersMethodonStarterKeydown
* Handles keyboard events on starter items. * Supports Enter and Space keys for selection, ArrowLeft/ArrowRight for navigation. * * @param ev
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-conversation-starter/cometchat-conversation-starter.component.ts:183
↓ 9 callersMethodonVoiceCallButtonClick
* Handles voice call button click. * If a custom handler is provided, invokes it. * Otherwise, delegates to the service's initiateAudioCall().
projects/cometchat-uikit/src/lib/components/cometchat-call-buttons/cometchat-call-buttons.component.ts:227
↓ 9 callersMethodopenPopover
* Open a specific popover directly (without toggle behavior). * This always sets the content to the specified popover type. * * @param popove
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/popover-mutual-exclusivity.property.spec.ts:84
↓ 9 callersFunctionopenPopup
* Open a specific popup * Mirrors the behavior of popup toggle methods in the component * * @param state - Current popup state * @param popupType
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/keyboard-navigation.property.spec.ts:95
↓ 9 callersFunctionoptionalQuotedMessageIdGenerator
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/collaborative-payload.property.spec.ts:164
↓ 9 callersMethodremoveConversation
(id: string)
projects/cometchat-uikit/src/lib/services/conversations.service.ts:165
← previousnext →701–800 of 6,248, ranked by callers