@acorex/components 20.4.0 → 20.4.1

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,13 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { AXAvatarComponent } from '@acorex/components/avatar';
3
- import * as i3 from '@acorex/components/collapse';
4
- import { AXCollapseComponent } from '@acorex/components/collapse';
5
3
  import * as i1 from '@acorex/components/decorators';
6
4
  import * as i2 from '@acorex/components/wysiwyg';
7
- import * as i4 from '@acorex/components/button';
8
- import * as i5 from '@acorex/components/text-area';
9
- import * as i6 from '@acorex/core/translation';
10
- import * as i7 from '@angular/common';
5
+ import * as i3 from '@acorex/components/button';
6
+ import * as i4 from '@acorex/components/text-area';
7
+ import * as i5 from '@acorex/core/translation';
11
8
 
12
9
  /**
13
10
  * A container component for displaying and managing comments.
@@ -21,7 +18,6 @@ declare class AXCommentContainerComponent {
21
18
  * Scrolls to a specific comment reply by its ID and highlights it temporarily.
22
19
  *
23
20
  * @param id - The ID of the comment reply to scroll to
24
- * @returns void
25
21
  */
26
22
  scrollToReply(id: string): void;
27
23
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCommentContainerComponent, never>;
@@ -34,23 +30,20 @@ declare class AXCommentContainerComponent {
34
30
  * @category Components
35
31
  */
36
32
  declare class AXCommentItemComponent {
37
- /**
38
- * @ignore
39
- */
40
33
  protected avatar: i0.Signal<AXAvatarComponent>;
41
- protected collapse: i0.Signal<AXCollapseComponent>;
42
34
  readonly replyCount: i0.InputSignal<number>;
43
- /**
44
- * @ignore
45
- */
35
+ /** Two-way bindable state controlling whether nested replies are visible. */
36
+ readonly repliesExpanded: i0.ModelSignal<boolean>;
46
37
  constructor();
47
- toggleCollapse(): void;
38
+ toggleReplies(): void;
39
+ showReplies(): void;
40
+ hideReplies(): void;
48
41
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCommentItemComponent, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<AXCommentItemComponent, "ax-comment-item", never, { "replyCount": { "alias": "replyCount"; "required": false; "isSignal": true; }; }, {}, ["avatar"], ["ax-avatar", "ax-title", "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>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXCommentItemComponent, "ax-comment-item", never, { "replyCount": { "alias": "replyCount"; "required": false; "isSignal": true; }; "repliesExpanded": { "alias": "repliesExpanded"; "required": false; "isSignal": true; }; }, { "repliesExpanded": "repliesExpandedChange"; }, ["avatar"], ["ax-avatar", "ax-title", "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>;
50
43
  }
51
44
 
52
45
  /**
53
- * A component for displaying and managing date on a comment.
46
+ * A component for displaying date on a comment.
54
47
  *
55
48
  * @category Components
56
49
  */
@@ -65,11 +58,8 @@ declare class AXCommentDateComponent {
65
58
  * @category Components
66
59
  */
67
60
  declare class AXCommentLikeComponent {
68
- /**
69
- * Indicates whether the comment is liked.
70
- */
71
61
  like: i0.ModelSignal<boolean>;
72
- protected changeState(): void;
62
+ protected toggleLike(): void;
73
63
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCommentLikeComponent, never>;
74
64
  static ɵcmp: i0.ɵɵComponentDeclaration<AXCommentLikeComponent, "ax-comment-like", never, { "like": { "alias": "like"; "required": true; "isSignal": true; }; }, { "like": "likeChange"; }, never, ["*"], true, never>;
75
65
  }
@@ -84,11 +74,21 @@ declare class AXMenuOptionsComponent {
84
74
  static ɵcmp: i0.ɵɵComponentDeclaration<AXMenuOptionsComponent, "ax-comment-menu-options", never, {}, {}, never, ["*"], true, never>;
85
75
  }
86
76
 
77
+ /**
78
+ * A component for displaying "show more replies" action on a comment.
79
+ *
80
+ * @category Components
81
+ */
87
82
  declare class AXCommentReplyMoreComponent {
88
83
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCommentReplyMoreComponent, never>;
89
84
  static ɵcmp: i0.ɵɵComponentDeclaration<AXCommentReplyMoreComponent, "ax-comment-reply-more", never, {}, {}, never, ["*"], true, never>;
90
85
  }
91
86
 
87
+ /**
88
+ * A component for displaying the reply action text on a comment.
89
+ *
90
+ * @category Components
91
+ */
92
92
  declare class AXCommentReplyTextComponent {
93
93
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCommentReplyTextComponent, never>;
94
94
  static ɵcmp: i0.ɵɵComponentDeclaration<AXCommentReplyTextComponent, "ax-comment-reply-text", never, {}, {}, never, never, true, never>;
@@ -96,6 +96,7 @@ declare class AXCommentReplyTextComponent {
96
96
 
97
97
  /**
98
98
  * A component for viewing comments with their details.
99
+ *
99
100
  * @category Components
100
101
  */
101
102
  declare class AXCommentViewComponent {
@@ -105,7 +106,7 @@ declare class AXCommentViewComponent {
105
106
 
106
107
  declare class AXCommentModule {
107
108
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCommentModule, never>;
108
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCommentModule, never, [typeof i1.AXDecoratorModule, typeof i2.AXWysiwygModule, typeof i3.AXCollapseModule, typeof i4.AXButtonModule, typeof i5.AXTextAreaModule, typeof i6.AXTranslationModule, typeof i7.CommonModule, typeof AXCommentViewComponent, typeof AXCommentContainerComponent, typeof AXCommentItemComponent, typeof AXCommentLikeComponent, typeof AXMenuOptionsComponent, typeof AXCommentReplyTextComponent, typeof AXCommentDateComponent, typeof AXCommentReplyMoreComponent], [typeof AXCommentViewComponent, typeof AXCommentContainerComponent, typeof AXCommentItemComponent, typeof AXCommentLikeComponent, typeof AXMenuOptionsComponent, typeof AXCommentReplyTextComponent, typeof AXCommentDateComponent, typeof AXCommentReplyMoreComponent]>;
109
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCommentModule, never, [typeof i1.AXDecoratorModule, typeof i2.AXWysiwygModule, typeof i3.AXButtonModule, typeof i4.AXTextAreaModule, typeof i5.AXTranslationModule, typeof AXCommentViewComponent, typeof AXCommentContainerComponent, typeof AXCommentItemComponent, typeof AXCommentLikeComponent, typeof AXMenuOptionsComponent, typeof AXCommentReplyTextComponent, typeof AXCommentDateComponent, typeof AXCommentReplyMoreComponent], [typeof AXCommentViewComponent, typeof AXCommentContainerComponent, typeof AXCommentItemComponent, typeof AXCommentLikeComponent, typeof AXMenuOptionsComponent, typeof AXCommentReplyTextComponent, typeof AXCommentDateComponent, typeof AXCommentReplyMoreComponent]>;
109
110
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCommentModule>;
110
111
  }
111
112
 
@@ -442,7 +442,7 @@ class AXColorPaletteInputComponent extends MXBaseComponent {
442
442
  },
443
443
  AXUnsubscriber,
444
444
  { provide: AXComponent, useExisting: AXColorPaletteInputComponent },
445
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"palette-inputs ax-sm\">\n <div class=\"select-box-container\">\n <ax-select-box\n [dataSource]=\"['hex', 'rgba']\"\n [(ngModel)]=\"_colorMode\"\n (ngModelChange)=\"_handleChangeInputMode()\"\n [disabled]=\"_parent.disabled\"\n >\n </ax-select-box>\n </div>\n @switch (_colorMode) {\n @case ('hex') {\n <div>\n <ax-text-box\n [ngModel]=\"_hex\"\n [disabled]=\"_parent.disabled\"\n [readonly]=\"_parent.readonly\"\n [state]=\"isValid ? 'clear' : 'error'\"\n (onValueChanged)=\"_handleHEXAValueChanged($event)\"\n >\n </ax-text-box>\n </div>\n }\n @case ('rgba') {\n <div>\n <ax-number-box\n name=\"r\"\n [minValue]=\"0\"\n [maxValue]=\"255\"\n [ngModel]=\"_rgba.r\"\n [showSpinButtons]=\"false\"\n [disabled]=\"_parent.disabled\"\n [readonly]=\"_parent.readonly\"\n (onValueChanged)=\"_handleRGBAValueChanged($event)\"\n >\n </ax-number-box>\n </div>\n <div>\n <ax-number-box\n name=\"g\"\n [minValue]=\"0\"\n [maxValue]=\"255\"\n [ngModel]=\"_rgba.g\"\n [showSpinButtons]=\"false\"\n [disabled]=\"_parent.disabled\"\n [readonly]=\"_parent.readonly\"\n (onValueChanged)=\"_handleRGBAValueChanged($event)\"\n >\n </ax-number-box>\n </div>\n <div>\n <ax-number-box\n name=\"b\"\n [minValue]=\"0\"\n [maxValue]=\"255\"\n [ngModel]=\"_rgba.b\"\n [showSpinButtons]=\"false\"\n [disabled]=\"_parent.disabled\"\n [readonly]=\"_parent.readonly\"\n (onValueChanged)=\"_handleRGBAValueChanged($event)\"\n >\n </ax-number-box>\n </div>\n <div>\n <ax-number-box\n name=\"a\"\n [minValue]=\"0\"\n [maxValue]=\"1\"\n [ngModel]=\"_rgba.a\"\n [decimals]=\"2\"\n [step]=\"0.1\"\n [disabled]=\"_parent.disabled\"\n [readonly]=\"_parent.readonly\"\n [showSpinButtons]=\"false\"\n (onValueChanged)=\"_handleRGBAValueChanged($event)\"\n >\n </ax-number-box>\n </div>\n }\n }\n</div>\n", styles: [".ax-bold{font-weight:700}\n"], dependencies: [{ kind: "component", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "isItemTruncated", "showItemTooltip", "itemHeight", "maxVisibleItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed", "onItemSelected", "onItemClick"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "maskPattern", "customTokens", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "component", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "minValue", "maxValue", "showSpinButtons", "thousandsSeparator", "decimals", "changeOnScroll", "step"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "thousandsSeparatorChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
445
+ ], usesInheritance: true, ngImport: i0, template: "<div class=\"palette-inputs ax-sm\">\n <div class=\"select-box-container\">\n <ax-select-box\n [dataSource]=\"['hex', 'rgba']\"\n [(ngModel)]=\"_colorMode\"\n (ngModelChange)=\"_handleChangeInputMode()\"\n [disabled]=\"_parent.disabled\"\n >\n </ax-select-box>\n </div>\n @switch (_colorMode) {\n @case ('hex') {\n <div>\n <ax-text-box\n [ngModel]=\"_hex\"\n [disabled]=\"_parent.disabled\"\n [readonly]=\"_parent.readonly\"\n [state]=\"isValid ? 'clear' : 'error'\"\n (onValueChanged)=\"_handleHEXAValueChanged($event)\"\n >\n </ax-text-box>\n </div>\n }\n @case ('rgba') {\n <div>\n <ax-number-box\n name=\"r\"\n [minValue]=\"0\"\n [maxValue]=\"255\"\n [ngModel]=\"_rgba.r\"\n [showSpinButtons]=\"false\"\n [disabled]=\"_parent.disabled\"\n [readonly]=\"_parent.readonly\"\n (onValueChanged)=\"_handleRGBAValueChanged($event)\"\n >\n </ax-number-box>\n </div>\n <div>\n <ax-number-box\n name=\"g\"\n [minValue]=\"0\"\n [maxValue]=\"255\"\n [ngModel]=\"_rgba.g\"\n [showSpinButtons]=\"false\"\n [disabled]=\"_parent.disabled\"\n [readonly]=\"_parent.readonly\"\n (onValueChanged)=\"_handleRGBAValueChanged($event)\"\n >\n </ax-number-box>\n </div>\n <div>\n <ax-number-box\n name=\"b\"\n [minValue]=\"0\"\n [maxValue]=\"255\"\n [ngModel]=\"_rgba.b\"\n [showSpinButtons]=\"false\"\n [disabled]=\"_parent.disabled\"\n [readonly]=\"_parent.readonly\"\n (onValueChanged)=\"_handleRGBAValueChanged($event)\"\n >\n </ax-number-box>\n </div>\n <div>\n <ax-number-box\n name=\"a\"\n [minValue]=\"0\"\n [maxValue]=\"1\"\n [ngModel]=\"_rgba.a\"\n [decimals]=\"2\"\n [step]=\"0.1\"\n [disabled]=\"_parent.disabled\"\n [readonly]=\"_parent.readonly\"\n [showSpinButtons]=\"false\"\n (onValueChanged)=\"_handleRGBAValueChanged($event)\"\n >\n </ax-number-box>\n </div>\n }\n }\n</div>\n", styles: [".ax-bold{font-weight:700}\n"], dependencies: [{ kind: "component", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "isItemTruncated", "showItemTooltip", "itemHeight", "maxVisibleItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed", "onItemSelected", "onItemClick"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "maskPattern", "customTokens", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "onMaskChanged"] }, { kind: "component", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "minValue", "maxValue", "showSpinButtons", "thousandsSeparator", "decimals", "changeOnScroll", "step"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "thousandsSeparatorChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
446
446
  }
447
447
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXColorPaletteInputComponent, decorators: [{
448
448
  type: Component,