@acorex/components 20.1.8 → 20.1.9

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.
@@ -1,7 +1,7 @@
1
1
  import * as i3 from '@acorex/cdk/common';
2
2
  import { AXHtmlEvent, AXEvent, AXStyleColorType, MXInputBaseValueComponent, MXLookComponent, AXClickEvent, MXBaseComponent } from '@acorex/cdk/common';
3
3
  import * as _angular_core from '@angular/core';
4
- import { Type, WritableSignal, ElementRef, Signal, OnDestroy, Renderer2, OnInit, ModuleWithProviders } from '@angular/core';
4
+ import { Type, WritableSignal, ElementRef, Signal, TemplateRef, OnDestroy, Renderer2, OnInit, ModuleWithProviders } from '@angular/core';
5
5
  import * as polytype from 'polytype';
6
6
  import * as i15 from '@acorex/components/popover';
7
7
  import { AXPopoverComponent } from '@acorex/components/popover';
@@ -53,6 +53,8 @@ interface AXConversationMessage {
53
53
  onDeleteClick?: () => void;
54
54
  onDownloadClick?: () => void;
55
55
  onCancelClick?: () => void;
56
+ showActionButton?: boolean;
57
+ userName?: string;
56
58
  }
57
59
  declare abstract class AXConversationMessageAction {
58
60
  color?: AXStyleColorType;
@@ -125,7 +127,12 @@ declare class AXConversationInputComponent extends AXConversationInputComponent_
125
127
  protected sendIcon: Signal<unknown>;
126
128
  protected conversationService: AXConversationService;
127
129
  protected chats: Signal<AXConversationMessage[]>;
130
+ protected actionIcon: WritableSignal<string>;
131
+ protected actionContent: WritableSignal<string>;
132
+ protected actionShowState: WritableSignal<boolean>;
133
+ protected actionUser: WritableSignal<string>;
128
134
  protected replyChat: Signal<AXConversationMessage>;
135
+ setActionBoxContainer(icon: string, content: string, user?: string): void;
129
136
  /** Maximum length of input text */
130
137
  maxLength: _angular_core.InputSignal<number>;
131
138
  /** Indicates if an attachment is present */
@@ -243,11 +250,13 @@ declare class AXConversationMessageComponent extends MXBaseComponent {
243
250
  protected popover: _angular_core.Signal<AXPopoverComponent>;
244
251
  isReplyArrowShown: _angular_core.InputSignal<boolean>;
245
252
  chatMessage: _angular_core.InputSignal<AXConversationMessage>;
253
+ avatar: _angular_core.InputSignal<TemplateRef<any>>;
246
254
  protected conversationService: AXConversationService;
247
255
  protected registryService: AXConversationMessageTypeRegistryService;
248
256
  protected actionButtonItemsPrivate: _angular_core.WritableSignal<AXConversationMessageAction[]>;
249
257
  private actionButtonItemsPublic;
250
258
  onActionMenuOpening: _angular_core.OutputEmitterRef<AXConversationMenuOpeningEvent>;
259
+ onReplyClick: _angular_core.OutputEmitterRef<AXClickEvent>;
251
260
  protected portal: _angular_core.Signal<ComponentPortal<any>>;
252
261
  protected messageType: _angular_core.Signal<string>;
253
262
  protected get isOwn(): boolean;
@@ -255,10 +264,10 @@ declare class AXConversationMessageComponent extends MXBaseComponent {
255
264
  protected _handleAttached(ref: CdkPortalOutletAttachedRef): void;
256
265
  protected handleResendClick(): void;
257
266
  protected handleDeleteClick(): void;
258
- protected replyHandler(e: any): void;
267
+ protected replyHandler(e: AXConversationMessage): void;
259
268
  get __hostClass(): string;
260
269
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageComponent, never>;
261
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationMessageComponent, "ax-conversation-message", never, { "isReplyArrowShown": { "alias": "isReplyArrowShown"; "required": false; "isSignal": true; }; "chatMessage": { "alias": "chatMessage"; "required": false; "isSignal": true; }; }, { "onActionMenuOpening": "onActionMenuOpening"; }, never, never, true, never>;
270
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationMessageComponent, "ax-conversation-message", never, { "isReplyArrowShown": { "alias": "isReplyArrowShown"; "required": false; "isSignal": true; }; "chatMessage": { "alias": "chatMessage"; "required": false; "isSignal": true; }; "avatar": { "alias": "avatar"; "required": false; "isSignal": true; }; }, { "onActionMenuOpening": "onActionMenuOpening"; "onReplyClick": "onReplyClick"; }, never, never, true, never>;
262
271
  }
263
272
 
264
273
  /**
@@ -366,11 +375,13 @@ declare class AXConversationViewComponent extends MXBaseComponent {
366
375
  isReplyArrowShown: _angular_core.InputSignal<boolean>;
367
376
  onActionMenuOpening: _angular_core.OutputEmitterRef<AXConversationMenuOpeningEvent>;
368
377
  onAction: _angular_core.OutputEmitterRef<AXConversationActionEvent>;
378
+ onReplyClick: _angular_core.OutputEmitterRef<AXClickEvent>;
379
+ avatar: _angular_core.InputSignal<TemplateRef<any>>;
369
380
  updatePrevItems(item: any[]): void;
370
381
  callForUpdate(): void;
371
382
  addNewItem(item: any): void;
372
383
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationViewComponent, never>;
373
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationViewComponent, "ax-conversation-view", never, { "chatBoxHeight": { "alias": "chatBoxHeight"; "required": false; "isSignal": true; }; "isReplyArrowShown": { "alias": "isReplyArrowShown"; "required": false; "isSignal": true; }; }, { "onScrollEnd": "onScrollEnd"; "onActionMenuOpening": "onActionMenuOpening"; "onAction": "onAction"; }, never, never, true, never>;
384
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationViewComponent, "ax-conversation-view", never, { "chatBoxHeight": { "alias": "chatBoxHeight"; "required": false; "isSignal": true; }; "isReplyArrowShown": { "alias": "isReplyArrowShown"; "required": false; "isSignal": true; }; "avatar": { "alias": "avatar"; "required": false; "isSignal": true; }; }, { "onScrollEnd": "onScrollEnd"; "onActionMenuOpening": "onActionMenuOpening"; "onAction": "onAction"; "onReplyClick": "onReplyClick"; }, never, never, true, never>;
374
385
  }
375
386
 
376
387
  /**