@acorex/components 22.4.14 → 22.4.16

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.
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "22.4.14",
3
+ "version": "22.4.16",
4
4
  "peerDependencies": {
5
- "@acorex/core": "22.4.14",
6
- "@acorex/cdk": "22.4.14",
5
+ "@acorex/core": "22.4.16",
6
+ "@acorex/cdk": "22.4.16",
7
7
  "@angular/aria": ">=22.1.0",
8
8
  "polytype": ">=0.17.0",
9
9
  "hammerjs": ">=2.0.8",
@@ -43,6 +43,10 @@ interface AXCommentItem {
43
43
  initials?: string;
44
44
  color?: AXStyleColorType;
45
45
  date?: string;
46
+ /** When true, shows an “edited” label before the date in the default layout. */
47
+ edited?: boolean;
48
+ /** Optional tooltip on the edited label (for example “Edited 5 minutes ago”). */
49
+ editedAt?: string;
46
50
  content?: string;
47
51
  likes?: number;
48
52
  liked?: boolean;
@@ -158,6 +162,7 @@ declare class AXCommentItemComponent {
158
162
  protected readonly overflowItems: _angular_core.Signal<AXButtonItemListItem[]>;
159
163
  constructor();
160
164
  protected getColor(data: AXCommentItem): AXStyleColorType;
165
+ protected showEdited(data: AXCommentItem): boolean;
161
166
  protected getInitials(data: AXCommentItem): string;
162
167
  protected handleLike(liked: boolean): void;
163
168
  protected handleReply(event: Event): void;
@@ -177,7 +182,7 @@ declare class AXCommentItemComponent {
177
182
  */
178
183
  hideReplies(): void;
179
184
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXCommentItemComponent, never>;
180
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXCommentItemComponent, "ax-comment-item", never, { "item": { "alias": "item"; "required": false; "isSignal": true; }; "replyCount": { "alias": "replyCount"; "required": false; "isSignal": true; }; "repliesExpanded": { "alias": "repliesExpanded"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; "itemContext": { "alias": "itemContext"; "required": false; "isSignal": true; }; }, { "repliesExpanded": "repliesExpandedChange"; "likeChange": "likeChange"; "replyClick": "replyClick"; "actionClick": "actionClick"; }, ["projectedAvatar"], ["ax-avatar", "ax-title", "ax-subtitle", "ax-badge", "ax-comment-date", "ax-comment-menu-options", "ax-content", "ax-comment-like", "ax-comment-reply-text", "ax-comment-item", "ax-comment-reply-more", "*"], true, never>;
185
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXCommentItemComponent, "ax-comment-item", never, { "item": { "alias": "item"; "required": false; "isSignal": true; }; "replyCount": { "alias": "replyCount"; "required": false; "isSignal": true; }; "repliesExpanded": { "alias": "repliesExpanded"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; "itemContext": { "alias": "itemContext"; "required": false; "isSignal": true; }; }, { "repliesExpanded": "repliesExpandedChange"; "likeChange": "likeChange"; "replyClick": "replyClick"; "actionClick": "actionClick"; }, ["projectedAvatar"], ["ax-avatar", "ax-title", "ax-subtitle", "ax-badge", "ax-comment-edited", "ax-comment-date", "ax-comment-menu-options", "ax-content", "ax-comment-like", "ax-comment-reply-text", "ax-comment-item", "ax-comment-reply-more", "*"], true, never>;
181
186
  }
182
187
 
183
188
  /**
@@ -190,6 +195,18 @@ declare class AXCommentDateComponent {
190
195
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXCommentDateComponent, "ax-comment-date", never, {}, {}, never, ["*"], true, never>;
191
196
  }
192
197
 
198
+ /**
199
+ * Muted “edited” label shown next to the comment timestamp.
200
+ *
201
+ * @category Components
202
+ */
203
+ declare class AXCommentEditedComponent {
204
+ /** Optional tooltip (for example the time the comment was last edited). */
205
+ readonly editedAt: _angular_core.InputSignal<string>;
206
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXCommentEditedComponent, never>;
207
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXCommentEditedComponent, "ax-comment-edited", never, { "editedAt": { "alias": "editedAt"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
208
+ }
209
+
193
210
  /**
194
211
  * A component for displaying and managing likes on a comment.
195
212
  *
@@ -365,9 +382,9 @@ declare class AXCommentViewComponent {
365
382
 
366
383
  declare class AXCommentModule {
367
384
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXCommentModule, never>;
368
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXCommentModule, never, [typeof i1.AXDecoratorModule, typeof i2.AXWysiwygModule, typeof i3.AXBadgeModule, typeof i4.AXButtonModule, typeof i5.AXTextAreaModule, typeof i6.AXTranslationModule, typeof AXCommentViewComponent, typeof AXCommentContainerComponent, typeof AXCommentItemComponent, typeof AXCommentLikeComponent, typeof AXMenuOptionsComponent, typeof AXCommentReplyComponent, typeof AXCommentReplyTextComponent, typeof AXCommentDateComponent, typeof AXCommentReplyMoreComponent, typeof AXCommentItemTemplateDirective], [typeof AXCommentViewComponent, typeof AXCommentContainerComponent, typeof AXCommentItemComponent, typeof AXCommentLikeComponent, typeof AXMenuOptionsComponent, typeof AXCommentReplyComponent, typeof AXCommentReplyTextComponent, typeof AXCommentDateComponent, typeof AXCommentReplyMoreComponent, typeof AXCommentItemTemplateDirective]>;
385
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXCommentModule, never, [typeof i1.AXDecoratorModule, typeof i2.AXWysiwygModule, typeof i3.AXBadgeModule, typeof i4.AXButtonModule, typeof i5.AXTextAreaModule, typeof i6.AXTranslationModule, typeof AXCommentViewComponent, typeof AXCommentContainerComponent, typeof AXCommentItemComponent, typeof AXCommentLikeComponent, typeof AXMenuOptionsComponent, typeof AXCommentReplyComponent, typeof AXCommentReplyTextComponent, typeof AXCommentDateComponent, typeof AXCommentEditedComponent, typeof AXCommentReplyMoreComponent, typeof AXCommentItemTemplateDirective], [typeof AXCommentViewComponent, typeof AXCommentContainerComponent, typeof AXCommentItemComponent, typeof AXCommentLikeComponent, typeof AXMenuOptionsComponent, typeof AXCommentReplyComponent, typeof AXCommentReplyTextComponent, typeof AXCommentDateComponent, typeof AXCommentEditedComponent, typeof AXCommentReplyMoreComponent, typeof AXCommentItemTemplateDirective]>;
369
386
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXCommentModule>;
370
387
  }
371
388
 
372
- export { AXCommentContainerComponent, AXCommentDateComponent, AXCommentItemComponent, AXCommentItemTemplateDirective, AXCommentLikeComponent, AXCommentModule, AXCommentReplyComponent, AXCommentReplyMoreComponent, AXCommentReplyTextComponent, AXCommentViewComponent, AXMenuOptionsComponent };
389
+ export { AXCommentContainerComponent, AXCommentDateComponent, AXCommentEditedComponent, AXCommentItemComponent, AXCommentItemTemplateDirective, AXCommentLikeComponent, AXCommentModule, AXCommentReplyComponent, AXCommentReplyMoreComponent, AXCommentReplyTextComponent, AXCommentViewComponent, AXMenuOptionsComponent };
373
390
  export type { AXCommentActionEvent, AXCommentCallback, AXCommentDataSource, AXCommentItem, AXCommentItemTemplateContext, AXCommentLikeChangeEvent, AXCommentRepliesToggleEvent, AXCommentReplyEvent };
@@ -123,13 +123,26 @@ declare class AXTextEditorComponent extends AXTextEditorComponent_base {
123
123
  private syncingFromEditor;
124
124
  readonly placeHolder: _angular_core.InputSignal<string>;
125
125
  readonly outputFormat: _angular_core.InputSignal<AXTextEditorOutputFormat>;
126
+ /**
127
+ * Minimum visible height of the editable surface, in text lines.
128
+ * Takes precedence over {@link initialLine} when set.
129
+ */
130
+ readonly line: _angular_core.InputSignalWithTransform<number, unknown>;
126
131
  /**
127
132
  * Minimum height of the editable surface, measured in text lines.
128
133
  *
129
134
  * @defaultValue 6
130
135
  */
131
136
  readonly initialLine: _angular_core.InputSignalWithTransform<number, unknown>;
132
- protected readonly initialLineCss: _angular_core.Signal<string>;
137
+ /**
138
+ * Maximum visible height of the editable area, in text lines.
139
+ * When set, content scrolls inside the editor after this height.
140
+ */
141
+ readonly maxLine: _angular_core.InputSignalWithTransform<number, unknown>;
142
+ protected readonly resolvedLine: _angular_core.Signal<number>;
143
+ protected readonly resolvedLineCss: _angular_core.Signal<string>;
144
+ protected readonly maxLineHeightStyle: _angular_core.Signal<string>;
145
+ private static parseLineCount;
133
146
  protected readonly zoomFactor: _angular_core.Signal<number>;
134
147
  constructor();
135
148
  protected readonly projectedContent: _angular_core.Signal<boolean>;
@@ -153,7 +166,7 @@ declare class AXTextEditorComponent extends AXTextEditorComponent_base {
153
166
  notifyEditorValue(value: AXTextEditorValue): void;
154
167
  protected internalValueChanged(value: AXTextEditorValue): void;
155
168
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextEditorComponent, never>;
156
- 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; }; "initialLine": { "alias": "initialLine"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; }, ["projected"], ["ax-text-editor-toolbar", "ax-header", "ax-text-editor-content", "ax-footer", "ax-validation-rule"], true, never>;
169
+ 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; }; "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"; }, ["projected"], ["ax-text-editor-toolbar", "ax-header", "ax-text-editor-content", "ax-footer", "ax-validation-rule"], true, never>;
157
170
  }
158
171
 
159
172
  declare const AX_TEXT_EDITOR_I18N: {