@acorex/components 20.1.36 → 20.1.37

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 (54) hide show
  1. package/autocomplete/index.d.ts +6 -2
  2. package/color-box/index.d.ts +1 -0
  3. package/data-list/README.md +356 -0
  4. package/data-list/index.d.ts +102 -0
  5. package/fesm2022/acorex-components-accordion.mjs +15 -17
  6. package/fesm2022/acorex-components-accordion.mjs.map +1 -1
  7. package/fesm2022/acorex-components-autocomplete.mjs +19 -3
  8. package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
  9. package/fesm2022/acorex-components-color-box.mjs +4 -0
  10. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  11. package/fesm2022/acorex-components-color-palette.mjs +1 -1
  12. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  13. package/fesm2022/acorex-components-cron-job.mjs +6 -6
  14. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  15. package/fesm2022/acorex-components-data-list.mjs +386 -0
  16. package/fesm2022/acorex-components-data-list.mjs.map +1 -0
  17. package/fesm2022/acorex-components-kbd.mjs +5 -5
  18. package/fesm2022/acorex-components-kbd.mjs.map +1 -1
  19. package/fesm2022/acorex-components-list.mjs +6 -14
  20. package/fesm2022/acorex-components-list.mjs.map +1 -1
  21. package/fesm2022/acorex-components-otp.mjs +2 -0
  22. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  23. package/fesm2022/acorex-components-paint.mjs +36 -1
  24. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  25. package/fesm2022/acorex-components-phone-box.mjs +1 -1
  26. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  27. package/fesm2022/acorex-components-popover.mjs +5 -5
  28. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  29. package/fesm2022/acorex-components-query-builder.mjs +1 -1
  30. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  31. package/fesm2022/acorex-components-rest-api-generator.mjs +1 -1
  32. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  33. package/fesm2022/acorex-components-rrule.mjs +1 -1
  34. package/fesm2022/acorex-components-rrule.mjs.map +1 -1
  35. package/fesm2022/acorex-components-scheduler.mjs +1 -1
  36. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  37. package/fesm2022/acorex-components-select-box.mjs +62 -19
  38. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  39. package/fesm2022/acorex-components-selection-list-2.mjs +5 -2
  40. package/fesm2022/acorex-components-selection-list-2.mjs.map +1 -1
  41. package/fesm2022/acorex-components-selection-list.mjs +7 -4
  42. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  43. package/fesm2022/acorex-components-tag-box.mjs +24 -12
  44. package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
  45. package/fesm2022/acorex-components-text-box.mjs +10 -0
  46. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  47. package/fesm2022/acorex-components-wysiwyg.mjs +1 -1
  48. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  49. package/list/index.d.ts +3 -9
  50. package/package.json +5 -1
  51. package/paint/index.d.ts +36 -1
  52. package/select-box/index.d.ts +11 -2
  53. package/tag-box/index.d.ts +2 -2
  54. package/text-box/index.d.ts +2 -0
package/list/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, EventEmitter, WritableSignal, TemplateRef } from '@angular/core';
3
- import { AXEvent, MXSelectionValueComponent, AXItemClickEvent, AXDataSource, AXListDataSource } from '@acorex/cdk/common';
2
+ import { OnInit, WritableSignal, TemplateRef, EventEmitter } from '@angular/core';
3
+ import { AXEvent, MXSelectionValueComponent, AXDataSource, AXListDataSource } from '@acorex/cdk/common';
4
4
 
5
5
  interface AXListScrollIndexChanged extends AXEvent {
6
6
  index: number;
@@ -23,12 +23,6 @@ declare class AXListComponent extends MXSelectionValueComponent implements OnIni
23
23
  * @defaultValue false
24
24
  */
25
25
  showItemTooltip: i0.InputSignal<boolean>;
26
- /**
27
- * Emitted when an item in the list is clicked.
28
- *
29
- * @event
30
- */
31
- onItemClick: EventEmitter<AXItemClickEvent<any>>;
32
26
  /**
33
27
  * Defines the data source for the list.
34
28
  *
@@ -144,7 +138,7 @@ declare class AXListComponent extends MXSelectionValueComponent implements OnIni
144
138
  */
145
139
  showEmptyTemplate: i0.Signal<boolean>;
146
140
  static ɵfac: i0.ɵɵFactoryDeclaration<AXListComponent, never>;
147
- static ɵcmp: i0.ɵɵComponentDeclaration<AXListComponent, "ax-list", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "textTemplate": { "alias": "textTemplate"; "required": false; }; "disabledField": { "alias": "disabledField"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "isItemTruncated": { "alias": "isItemTruncated"; "required": false; "isSignal": true; }; "showItemTooltip": { "alias": "showItemTooltip"; "required": false; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "loadingTemplate": { "alias": "loadingTemplate"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; }, { "onValueChanged": "onValueChanged"; "disabledChange": "disabledChange"; "readonlyChange": "readonlyChange"; "onBlur": "onBlur"; "onFocus": "onFocus"; "onItemClick": "onItemClick"; "onScrolledIndexChanged": "onScrolledIndexChanged"; }, never, ["ax-header", "ax-footer"], true, never>;
141
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXListComponent, "ax-list", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "textTemplate": { "alias": "textTemplate"; "required": false; }; "disabledField": { "alias": "disabledField"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "isItemTruncated": { "alias": "isItemTruncated"; "required": false; "isSignal": true; }; "showItemTooltip": { "alias": "showItemTooltip"; "required": false; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "loadingTemplate": { "alias": "loadingTemplate"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; }, { "onValueChanged": "onValueChanged"; "disabledChange": "disabledChange"; "readonlyChange": "readonlyChange"; "onBlur": "onBlur"; "onFocus": "onFocus"; "onItemClick": "onItemClick"; "onItemSelected": "onItemSelected"; "onScrolledIndexChanged": "onScrolledIndexChanged"; }, never, ["ax-header", "ax-footer"], true, never>;
148
142
  }
149
143
 
150
144
  declare class AXListModule {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "20.1.36",
3
+ "version": "20.1.37",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",
@@ -143,6 +143,10 @@
143
143
  "types": "./cron-job/index.d.ts",
144
144
  "default": "./fesm2022/acorex-components-cron-job.mjs"
145
145
  },
146
+ "./data-list": {
147
+ "types": "./data-list/index.d.ts",
148
+ "default": "./fesm2022/acorex-components-data-list.mjs"
149
+ },
146
150
  "./data-pager": {
147
151
  "types": "./data-pager/index.d.ts",
148
152
  "default": "./fesm2022/acorex-components-data-pager.mjs"
package/paint/index.d.ts CHANGED
@@ -37,12 +37,45 @@ declare class AXPaintContainerComponent extends AXPaintContainerComponent_base {
37
37
  protected service: AXPaintService;
38
38
  readonly editMode: _angular_core.InputSignal<boolean>;
39
39
  get __hostClass(): string;
40
+ /**
41
+ * Sets the active drawing tool.
42
+ *
43
+ * @param tool - The tool to activate: 'pen', 'highlight', or 'eraser'
44
+ */
40
45
  setActiveTool(tool: 'pen' | 'highlight' | 'eraser'): void;
46
+ /**
47
+ * Sets the pen color for drawing.
48
+ *
49
+ * @param color - The color to use for the pen tool
50
+ */
41
51
  setPenColor(color: string | CanvasGradient | CanvasPattern): void;
52
+ /**
53
+ * Sets the highlight color for highlighting.
54
+ *
55
+ * @param color - The color to use for the highlight tool
56
+ */
42
57
  setHighlightColor(color: string | CanvasGradient | CanvasPattern): void;
58
+ /**
59
+ * Sets the pen width for drawing.
60
+ *
61
+ * @param width - The width of the pen stroke in pixels
62
+ */
43
63
  setPenWidth(width: number): void;
64
+ /**
65
+ * Sets the highlight width for highlighting.
66
+ *
67
+ * @param width - The width of the highlight stroke in pixels
68
+ */
44
69
  setHighlightWidth(width: number): void;
70
+ /**
71
+ * Sets the eraser width for erasing.
72
+ *
73
+ * @param width - The width of the eraser in pixels
74
+ */
45
75
  setEraserWidth(width: number): void;
76
+ /**
77
+ * Clears the entire canvas.
78
+ */
46
79
  clear(): void;
47
80
  private get __hostName();
48
81
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPaintContainerComponent, never>;
@@ -94,7 +127,9 @@ declare class AXPaintViewComponent implements OnDestroy {
94
127
  /** @ignore */
95
128
  protected mouseUpHandler(): void;
96
129
  /**
97
- * @param e - output file type
130
+ * Exports the canvas content as an image.
131
+ *
132
+ * @param format - The image format: 'image/webp', 'image/png', or 'image/jpeg'
98
133
  */
99
134
  getOutPut(e: 'image/webp' | 'image/png' | 'image/jpeg'): void;
100
135
  get __hostClass(): string[];
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { OnDestroy, WritableSignal, TemplateRef, ElementRef } from '@angular/core';
3
3
  import * as polytype from 'polytype';
4
4
  import * as i2 from '@acorex/cdk/common';
5
- import { MXSelectionValueComponent, MXLookComponent, AXDataSource, MXSelectionBridgeService, AXEvent, AXValueChangedEvent } from '@acorex/cdk/common';
5
+ import { MXSelectionValueComponent, MXLookComponent, AXDataSource, MXSelectionBridgeService, AXEvent, AXValueChangedEvent, AXItemClickEvent, AXItemSelectedEvent } from '@acorex/cdk/common';
6
6
  import * as i12 from '@acorex/components/dropdown';
7
7
  import { MXDropdownBoxBaseComponent, AXDropdownBoxComponent } from '@acorex/components/dropdown';
8
8
  import * as i13 from '@acorex/components/list';
@@ -126,6 +126,11 @@ declare class AXSelectBoxComponent extends AXSelectBoxComponent_base implements
126
126
  private _unsubscriber;
127
127
  /** @ignore */
128
128
  protected ngOnInit(): void;
129
+ /**
130
+ * Proactively fetches item data if the component has a value but no corresponding item data.
131
+ * This prevents showing "loading..." when the component has a value.
132
+ */
133
+ private fetchItemDataIfNeeded;
129
134
  /** @ignore */
130
135
  ngOnDestroy(): void;
131
136
  /**
@@ -144,6 +149,10 @@ declare class AXSelectBoxComponent extends AXSelectBoxComponent_base implements
144
149
  /** @ignore */
145
150
  protected _handleValueChanged(e: AXValueChangedEvent): void;
146
151
  /** @ignore */
152
+ protected _handleItemClick(e: AXItemClickEvent): void;
153
+ /** @ignore */
154
+ protected _handleItemSelected(e: AXItemSelectedEvent): void;
155
+ /** @ignore */
147
156
  private setDropdownSize;
148
157
  private updateDropdownPosition;
149
158
  private updateDropdownSize;
@@ -163,7 +172,7 @@ declare class AXSelectBoxComponent extends AXSelectBoxComponent_base implements
163
172
  refresh(): void;
164
173
  private hostClickListener;
165
174
  static ɵfac: i0.ɵɵFactoryDeclaration<AXSelectBoxComponent, never>;
166
- static ɵcmp: i0.ɵɵComponentDeclaration<AXSelectBoxComponent, "ax-select-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "look": { "alias": "look"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "disabledField": { "alias": "disabledField"; "required": false; }; "textTemplate": { "alias": "textTemplate"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "isItemTruncated": { "alias": "isItemTruncated"; "required": false; "isSignal": true; }; "showItemTooltip": { "alias": "showItemTooltip"; "required": false; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": false; }; "minRecordsForSearch": { "alias": "minRecordsForSearch"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "selectedTemplate": { "alias": "selectedTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "loadingTemplate": { "alias": "loadingTemplate"; "required": false; }; "dropdownWidth": { "alias": "dropdownWidth"; "required": false; "isSignal": true; }; "searchBoxAutoFocus": { "alias": "searchBoxAutoFocus"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "onBlur": "onBlur"; "onFocus": "onFocus"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onOpened": "onOpened"; "onClosed": "onClosed"; }, ["searchBox"], ["ax-prefix", "ax-clear-button", "ax-suffix", "ax-search-box", "ax-footer", "ax-validation-rule"], true, never>;
175
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXSelectBoxComponent, "ax-select-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "look": { "alias": "look"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "disabledField": { "alias": "disabledField"; "required": false; }; "textTemplate": { "alias": "textTemplate"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "isItemTruncated": { "alias": "isItemTruncated"; "required": false; "isSignal": true; }; "showItemTooltip": { "alias": "showItemTooltip"; "required": false; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": false; }; "minRecordsForSearch": { "alias": "minRecordsForSearch"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "selectedTemplate": { "alias": "selectedTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "loadingTemplate": { "alias": "loadingTemplate"; "required": false; }; "dropdownWidth": { "alias": "dropdownWidth"; "required": false; "isSignal": true; }; "searchBoxAutoFocus": { "alias": "searchBoxAutoFocus"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "onBlur": "onBlur"; "onFocus": "onFocus"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onOpened": "onOpened"; "onClosed": "onClosed"; "onItemSelected": "onItemSelected"; "onItemClick": "onItemClick"; }, ["searchBox"], ["ax-prefix", "ax-clear-button", "ax-suffix", "ax-search-box", "ax-footer", "ax-validation-rule"], true, never>;
167
176
  }
168
177
 
169
178
  declare class AXSelectBoxModule {
@@ -42,8 +42,8 @@ declare class AXTagBoxComponent extends AXTagBoxComponent_base implements OnInit
42
42
  * @returns Array of tag objects
43
43
  */
44
44
  convertString(v: unknown): object[];
45
- protected internalSetValue(value: any): unknown[];
46
- protected internalSetValue(value: any): any;
45
+ getFieldValue(item: unknown, path: string): unknown;
46
+ protected internalSetValue(value: unknown): unknown[];
47
47
  private get __hostName();
48
48
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTagBoxComponent, never>;
49
49
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTagBoxComponent, "ax-tag-box", 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; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "type": { "alias": "type"; "required": false; }; "look": { "alias": "look"; "required": false; }; "addOnComma": { "alias": "addOnComma"; "required": false; "isSignal": true; }; "addOnEnter": { "alias": "addOnEnter"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "readonlyField": { "alias": "readonlyField"; "required": false; "isSignal": true; }; "allowDuplicateValues": { "alias": "allowDuplicateValues"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onKeyDown": "onKeyDown"; "onKeyUp": "onKeyUp"; "onKeyPress": "onKeyPress"; }, never, ["ax-prefix", "ax-clear-button", "ax-suffix", "ax-autocomplete", "ax-validation-rule"], true, never>;
@@ -72,8 +72,10 @@ declare class AXTextBoxComponent extends AXTextBoxComponent_base implements Afte
72
72
  protected _maskOptionsContent: AXMaskOptionsDirective;
73
73
  /** @ignore */
74
74
  ngAfterContentInit(): void;
75
+ private initMask;
75
76
  /** @ignore */
76
77
  private setMask;
78
+ internalValueChanged(value: any): void;
77
79
  /** @ignore */
78
80
  private _onComplete;
79
81
  /** @ignore */