@acorex/components 22.4.53 → 22.4.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. package/conversation/README.md +2 -2
  2. package/fesm2022/{acorex-components-conversation-acorex-components-conversation-CzzR4rLf.mjs → acorex-components-conversation-acorex-components-conversation-Dtregx0j.mjs} +717 -672
  3. package/fesm2022/acorex-components-conversation-acorex-components-conversation-Dtregx0j.mjs.map +1 -0
  4. package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-DXJF8zIY.mjs → acorex-components-conversation-picker-rename-file-dialog.component-Y8CaQkqR.mjs} +2 -2
  5. package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-DXJF8zIY.mjs.map → acorex-components-conversation-picker-rename-file-dialog.component-Y8CaQkqR.mjs.map} +1 -1
  6. package/fesm2022/acorex-components-conversation.mjs +1 -1
  7. package/fesm2022/acorex-components-datetime-picker.mjs +4 -4
  8. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  9. package/fesm2022/acorex-components-lookup.mjs +52 -16
  10. package/fesm2022/acorex-components-lookup.mjs.map +1 -1
  11. package/fesm2022/acorex-components-picker.mjs +6 -6
  12. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  13. package/fesm2022/acorex-components-text-editor.mjs +8 -4
  14. package/fesm2022/acorex-components-text-editor.mjs.map +1 -1
  15. package/package.json +3 -3
  16. package/types/acorex-components-conversation.d.ts +17 -17
  17. package/types/acorex-components-lookup.d.ts +1 -0
  18. package/types/acorex-components-text-editor.d.ts +3 -1
  19. package/fesm2022/acorex-components-conversation-acorex-components-conversation-CzzR4rLf.mjs.map +0 -1
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "22.4.53",
3
+ "version": "22.4.55",
4
4
  "peerDependencies": {
5
- "@acorex/core": "22.4.53",
6
- "@acorex/cdk": "22.4.53",
5
+ "@acorex/core": "22.4.55",
6
+ "@acorex/cdk": "22.4.55",
7
7
  "@angular/aria": ">=22.1.0",
8
8
  "polytype": ">=0.17.0",
9
9
  "hammerjs": ">=2.0.8",
@@ -616,7 +616,7 @@ interface AXConversationCustomMentionsConfig {
616
616
  }
617
617
  interface AXConversationMentionsConfig {
618
618
  enabled?: boolean;
619
- /** Replaces the default group participant list. Results are filtered locally by name. */
619
+ /** Replaces the default group participants or private chat peer. Results are filtered locally by name. */
620
620
  people?: readonly AXConversationMentionPerson[];
621
621
  /** Replaces local search, including in groups. Return already filtered results. */
622
622
  search?: AXConversationMentionSearch;
@@ -2397,11 +2397,13 @@ declare class AXConversationComposerComponent implements OnDestroy {
2397
2397
  private applyingEditorDocument;
2398
2398
  /** Draft text - use service */
2399
2399
  readonly draftText: _angular_core.WritableSignal<string>;
2400
+ protected readonly draftDirection: _angular_core.Signal<"rtl" | "ltr">;
2400
2401
  /** Draft attachments shown above the composer in banner mode. */
2401
2402
  readonly draftAttachments: _angular_core.WritableSignal<_acorex_components_conversation.AXConversationComposerDraftAttachment[]>;
2402
2403
  readonly usesAttachmentBanner: _angular_core.Signal<boolean>;
2403
2404
  /** Editing message */
2404
- readonly editingMessage: _angular_core.WritableSignal<any>;
2405
+ readonly editingMessage: _angular_core.WritableSignal<AXConversationMessage>;
2406
+ protected readonly editingTextPayload: _angular_core.Signal<AXConversationTextPayload>;
2405
2407
  /** Replying to message */
2406
2408
  readonly replyingToMessage: _angular_core.WritableSignal<AXConversationMessage>;
2407
2409
  /** Message sent event */
@@ -2529,7 +2531,7 @@ declare class AXConversationComposerComponent implements OnDestroy {
2529
2531
  /** Cancel edit/reply mode without dropping draft attachments. */
2530
2532
  cancelEditReply(): void;
2531
2533
  /** Start editing a message */
2532
- startEdit(message: any): void;
2534
+ startEdit(message: AXConversationMessage): void;
2533
2535
  /** Start replying to a message */
2534
2536
  startReply(message: AXConversationMessage): void;
2535
2537
  /** Focus the composer editor. */
@@ -2558,8 +2560,7 @@ declare class AXConversationComposerComponent implements OnDestroy {
2558
2560
  getEditingPreview(): AXConversationMessagePreview | null;
2559
2561
  getComposerPreviewLabel(preview: AXConversationMessagePreview): string;
2560
2562
  private getMessagePreview;
2561
- /** Handle reply preview click - scroll to original message */
2562
- onReplyPreviewClick(): void;
2563
+ protected navigateToBannerMessage(): void;
2563
2564
  /** Inputs for picker components opened in popup / action sheet */
2564
2565
  private buildPickerInputs;
2565
2566
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerComponent, never>;
@@ -4215,22 +4216,20 @@ declare class AXConversationMessageListNoActiveDefaultComponent {
4215
4216
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationMessageListNoActiveDefaultComponent, "ax-conversation-message-list-no-active-default", never, {}, {}, never, never, true, never>;
4216
4217
  }
4217
4218
 
4218
- interface AXConversationAvatarDisplay {
4219
- name: string;
4220
- avatar?: string;
4221
- icon?: string;
4222
- }
4223
- /** Conversation types that resolve a single peer participant for viewer-scoped avatar/title. */
4219
+ /** Conversation types that resolve a single peer participant. */
4224
4220
  declare const AX_CONVERSATION_PEER_AVATAR_TYPES: ReadonlySet<AXConversationType>;
4225
- /**
4226
- * Other participant in a peer-scoped conversation (excludes the current viewer).
4227
- * Applies to private 1:1 and bot assist chats with exactly one non-viewer participant.
4228
- */
4221
+ /** The other participant in a private or bot conversation. */
4229
4222
  declare function resolveConversationPeerUserId(conversation: AXConversation, currentUserId?: string): string | undefined;
4230
- /** Other participant in a private chat (excludes the current user). */
4223
+ /** The other participant ID in a private conversation. */
4231
4224
  declare function resolvePrivatePeerUserId(conversation: AXConversation, currentUserId?: string): string | undefined;
4232
4225
  /** Peer participant for private and bot conversations. */
4233
4226
  declare function resolveConversationPeerParticipant(conversation: AXConversation, currentUserId?: string): AXConversationParticipant | undefined;
4227
+
4228
+ interface AXConversationAvatarDisplay {
4229
+ name: string;
4230
+ avatar?: string;
4231
+ icon?: string;
4232
+ }
4234
4233
  /** Whether `auto` kind should render a registered user avatar for this conversation. */
4235
4234
  declare function shouldUseUserAvatarForConversation(conversation: AXConversation, currentUserId?: string): boolean;
4236
4235
  declare function resolveUserAvatarDisplay(userId: string, conversation: AXConversation | undefined, message?: AXConversationMessage): AXConversationAvatarDisplay;
@@ -4438,7 +4437,7 @@ type AXConversationSidebarTabsOrientation = 'vertical' | 'horizontal';
4438
4437
  * Main configuration interface for the conversation component
4439
4438
  */
4440
4439
  interface AXConversationConfig {
4441
- /** Composer mentions. Groups default to their participants; other chats need a custom source. */
4440
+ /** Composer mentions default to group participants or the other participant in a private chat. */
4442
4441
  mentions?: AXConversationMentionsConfig;
4443
4442
  /** Override pin-management UI permissions. The API must enforce its own authorization. */
4444
4443
  canPinMessages?: (conversation: AXConversation, currentUser: AXConversationParticipant) => boolean;
@@ -5625,6 +5624,7 @@ declare class AXConversationPickerCaptionComponent {
5625
5624
  protected mentionPerson(userId: string): _acorex_components_conversation.AXConversationMentionPerson;
5626
5625
  readonly conversation: _angular_core.InputSignal<AXConversation>;
5627
5626
  readonly caption: _angular_core.ModelSignal<string>;
5627
+ protected readonly captionDirection: _angular_core.Signal<"rtl" | "ltr">;
5628
5628
  readonly formatting: _angular_core.ModelSignal<AXConversationTextFormat[]>;
5629
5629
  readonly mentions: _angular_core.ModelSignal<AXConversationMention[]>;
5630
5630
  readonly showInlineSend: _angular_core.InputSignal<boolean>;
@@ -571,6 +571,7 @@ declare class AXLookupComponent<T = AXLookupItem> extends NXValueComponent imple
571
571
  * Border-box width of the trigger, kept current by a ResizeObserver.
572
572
  * Reading `origin.offsetWidth` from the template forced a synchronous layout on every
573
573
  * change-detection pass for every instance, even while the popover was closed.
574
+ * Stays 0 until a real measurement arrives; the popover must not be given `"0px"`.
574
575
  */
575
576
  protected originWidth: _angular_core.WritableSignal<number>;
576
577
  protected popoverWidth: _angular_core.Signal<string>;
@@ -60,6 +60,7 @@ interface AXTextEditorHostBridge {
60
60
  outputFormat(): AXTextEditorOutputFormat;
61
61
  value(): AXTextEditorValue;
62
62
  mentions(): AXTextEditorMentionInput | null;
63
+ highlightHashtags(): boolean;
63
64
  exitMarksOnEnter(): boolean;
64
65
  /** When true, Enter submits and Shift+Enter inserts a line break. */
65
66
  enterSubmits(): boolean;
@@ -156,6 +157,7 @@ declare class AXTextEditorComponent extends AXTextEditorComponent_base {
156
157
  * An array is filtered locally. A function can search remotely. `null` leaves `@` as plain text.
157
158
  */
158
159
  readonly mentions: _angular_core.InputSignal<AXTextEditorMentionInput>;
160
+ readonly highlightHashtags: _angular_core.InputSignal<boolean>;
159
161
  /**
160
162
  * Enter emits {@link submitted} instead of splitting the block.
161
163
  * Shift+Enter still inserts a line break. An open mention list keeps Enter.
@@ -207,7 +209,7 @@ declare class AXTextEditorComponent extends AXTextEditorComponent_base {
207
209
  notifyEditorValue(value: AXTextEditorValue): void;
208
210
  protected internalValueChanged(value: AXTextEditorValue): void;
209
211
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorComponent, never>;
210
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorComponent, "ax-text-editor", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "look": { "alias": "look"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; "isSignal": true; }; "outputFormat": { "alias": "outputFormat"; "required": false; "isSignal": true; }; "mentions": { "alias": "mentions"; "required": false; "isSignal": true; }; "enterSubmits": { "alias": "enterSubmits"; "required": false; "isSignal": true; }; "line": { "alias": "line"; "required": false; "isSignal": true; }; "initialLine": { "alias": "initialLine"; "required": false; "isSignal": true; }; "maxLine": { "alias": "maxLine"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "submitted": "submitted"; }, ["projected", "inlineToolbar", "mentionAvatar"], ["ax-text-editor-toolbar", "ax-header", "ax-text-editor-content", "ax-footer", "ax-validation-rule", "ax-text-editor-inline-toolbar"], true, never>;
212
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextEditorComponent, "ax-text-editor", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "look": { "alias": "look"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; "isSignal": true; }; "outputFormat": { "alias": "outputFormat"; "required": false; "isSignal": true; }; "mentions": { "alias": "mentions"; "required": false; "isSignal": true; }; "highlightHashtags": { "alias": "highlightHashtags"; "required": false; "isSignal": true; }; "enterSubmits": { "alias": "enterSubmits"; "required": false; "isSignal": true; }; "line": { "alias": "line"; "required": false; "isSignal": true; }; "initialLine": { "alias": "initialLine"; "required": false; "isSignal": true; }; "maxLine": { "alias": "maxLine"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "submitted": "submitted"; }, ["projected", "inlineToolbar", "mentionAvatar"], ["ax-text-editor-toolbar", "ax-header", "ax-text-editor-content", "ax-footer", "ax-validation-rule", "ax-text-editor-inline-toolbar"], true, never>;
211
213
  }
212
214
 
213
215
  declare const AX_TEXT_EDITOR_I18N: {