@acorex/components 22.1.0-next.8 → 22.1.0

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 (66) hide show
  1. package/fesm2022/acorex-components-alert.mjs +2 -2
  2. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  3. package/fesm2022/acorex-components-audio-wave.mjs +15 -0
  4. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  5. package/fesm2022/acorex-components-calendar.mjs +321 -118
  6. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  7. package/fesm2022/acorex-components-combo-box.mjs +259 -37
  8. package/fesm2022/acorex-components-combo-box.mjs.map +1 -1
  9. package/fesm2022/acorex-components-conversation-acorex-components-conversation-BtkyQUlh.mjs +16548 -0
  10. package/fesm2022/acorex-components-conversation-acorex-components-conversation-BtkyQUlh.mjs.map +1 -0
  11. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-D4ca9Mvt.mjs +51 -0
  12. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-D4ca9Mvt.mjs.map +1 -0
  13. package/fesm2022/acorex-components-conversation-image-picker-editor-dialog.component-QVs1XWYf.mjs +85 -0
  14. package/fesm2022/acorex-components-conversation-image-picker-editor-dialog.component-QVs1XWYf.mjs.map +1 -0
  15. package/fesm2022/{acorex-components-conversation-open-composer-picker-for-files-BuNEjswI.mjs → acorex-components-conversation-open-composer-picker-for-files-BKKO_8x6.mjs} +7 -20
  16. package/fesm2022/acorex-components-conversation-open-composer-picker-for-files-BKKO_8x6.mjs.map +1 -0
  17. package/fesm2022/acorex-components-conversation-picker-rename-file-dialog.component-BNKFb5yO.mjs +65 -0
  18. package/fesm2022/acorex-components-conversation-picker-rename-file-dialog.component-BNKFb5yO.mjs.map +1 -0
  19. package/fesm2022/acorex-components-conversation.mjs +1 -17608
  20. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  21. package/fesm2022/acorex-components-data-table.mjs +57 -23
  22. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  23. package/fesm2022/acorex-components-decorators.mjs +2 -2
  24. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  25. package/fesm2022/acorex-components-dropdown.mjs +2 -2
  26. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  27. package/fesm2022/acorex-components-fab.mjs +5 -5
  28. package/fesm2022/acorex-components-fab.mjs.map +1 -1
  29. package/fesm2022/acorex-components-image-editor.mjs +600 -409
  30. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  31. package/fesm2022/acorex-components-loading-dialog.mjs +59 -42
  32. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  33. package/fesm2022/acorex-components-lookup.mjs +1259 -169
  34. package/fesm2022/acorex-components-lookup.mjs.map +1 -1
  35. package/fesm2022/acorex-components-menu.mjs +11 -5
  36. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  37. package/fesm2022/acorex-components-notification.mjs +6 -6
  38. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  39. package/fesm2022/acorex-components-popover.mjs +33 -0
  40. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  41. package/fesm2022/acorex-components-rail-navigation.mjs +2 -2
  42. package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
  43. package/fesm2022/acorex-components-range-slider.mjs +2 -2
  44. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  45. package/fesm2022/acorex-components-select-box.mjs +38 -11
  46. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  47. package/fesm2022/acorex-components-tabs.mjs +2 -2
  48. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  49. package/fesm2022/acorex-components-tree-view.mjs +45 -3
  50. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  51. package/lookup/README.md +19 -8
  52. package/package.json +4 -3
  53. package/types/acorex-components-audio-wave.d.ts +3 -0
  54. package/types/acorex-components-calendar.d.ts +41 -9
  55. package/types/acorex-components-combo-box.d.ts +50 -10
  56. package/types/acorex-components-conversation.d.ts +1232 -1782
  57. package/types/acorex-components-data-table.d.ts +12 -2
  58. package/types/acorex-components-image-editor.d.ts +54 -49
  59. package/types/acorex-components-loading-dialog.d.ts +12 -4
  60. package/types/acorex-components-lookup.d.ts +286 -71
  61. package/types/acorex-components-popover.d.ts +8 -0
  62. package/types/acorex-components-select-box.d.ts +11 -0
  63. package/types/acorex-components-tree-view.d.ts +11 -1
  64. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-DCcRJYfF.mjs +0 -50
  65. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-DCcRJYfF.mjs.map +0 -1
  66. package/fesm2022/acorex-components-conversation-open-composer-picker-for-files-BuNEjswI.mjs.map +0 -1
@@ -428,7 +428,7 @@ declare class AXDataTableTextColumnComponent extends AXDataTableColumnComponent
428
428
  /**
429
429
  * @ignore
430
430
  */
431
- protected handleExpandRow(row: any): Promise<void>;
431
+ protected handleExpandRow(row: any, event?: Event): Promise<void>;
432
432
  /**
433
433
  * Generates a unique name based on the `dataField` value.
434
434
  */
@@ -641,7 +641,7 @@ declare class AXRowExpandColumnComponent extends AXDataTableColumnComponent {
641
641
  /**
642
642
  * @ignore
643
643
  */
644
- protected handleExpandRow(row: any): Promise<void>;
644
+ protected handleExpandRow(row: any, event?: Event): Promise<void>;
645
645
  /**
646
646
  * Indicates whether loading is enabled for the column.
647
647
  */
@@ -853,6 +853,11 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
853
853
  * @ignore
854
854
  */
855
855
  protected normalColumnsList: Signal<any[]>;
856
+ /**
857
+ * True when a text column owns the tree expander. That column stays `width: auto`
858
+ * so leftover table space is used for nested indent instead of the empty spacer.
859
+ */
860
+ protected hasTreeFillColumn: Signal<boolean>;
856
861
  /**
857
862
  * @ignore
858
863
  */
@@ -1051,11 +1056,16 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
1051
1056
  * @ignore
1052
1057
  */
1053
1058
  ngOnInit(): void;
1059
+ private applyLoadedRows;
1054
1060
  /**
1055
1061
  * @ignore
1056
1062
  */
1057
1063
  ngAfterViewInit(): void;
1058
1064
  private captureAutoFitIntentColumns;
1065
+ /**
1066
+ * Tree expand columns must keep `width: auto` so nested indent can use leftover table space.
1067
+ */
1068
+ private isTreeFillColumn;
1059
1069
  /**
1060
1070
  * Returns the display text for a cell. Used for the cell tooltip when the column has `hasTitle`.
1061
1071
  */
@@ -2,15 +2,6 @@ import * as polytype from 'polytype';
2
2
  import * as _angular_core from '@angular/core';
3
3
  import { OnDestroy, ElementRef, Renderer2 } from '@angular/core';
4
4
  import { MXBaseComponent, MXInputBaseValueComponent, MXLookComponent } from '@acorex/cdk/common';
5
- import * as i1 from '@acorex/components/button';
6
- import * as i2 from '@angular/forms';
7
- import * as i3 from '@acorex/components/range-slider';
8
- import * as i4 from '@acorex/components/select-box';
9
- import * as i5 from '@acorex/components/color-box';
10
- import * as i6 from '@acorex/components/popover';
11
- import * as i7 from '@acorex/components/decorators';
12
- import * as i8 from '@acorex/components/loading';
13
- import * as i9 from '@acorex/components/dialog';
14
5
 
15
6
  type AXImageEditorTool = 'pen' | 'highlight' | 'crop' | 'rotate';
16
7
  declare class AXImageEditorService {
@@ -25,19 +16,25 @@ declare class AXImageEditorService {
25
16
  userInteract: boolean;
26
17
  }>;
27
18
  isImageLoad: _angular_core.WritableSignal<boolean>;
19
+ loadError: _angular_core.WritableSignal<boolean>;
28
20
  newImage: HTMLImageElement | null;
29
21
  initialImage: HTMLImageElement | null;
30
22
  imageBlob: _angular_core.WritableSignal<Blob[]>;
31
23
  undoPressed: _angular_core.WritableSignal<boolean>;
32
24
  redoPressed: _angular_core.WritableSignal<boolean>;
25
+ canUndo: _angular_core.WritableSignal<boolean>;
26
+ canRedo: _angular_core.WritableSignal<boolean>;
33
27
  cropperRatio: _angular_core.WritableSignal<string>;
34
28
  cropperSize: _angular_core.WritableSignal<number>;
35
29
  toggleTool(tool: AXImageEditorTool): void;
36
30
  activateTool(tool: AXImageEditorTool): void;
31
+ undo(): void;
32
+ redo(): void;
37
33
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXImageEditorService, never>;
38
34
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXImageEditorService>;
39
35
  }
40
36
 
37
+ type AXImageEditorCropHandle = 'right' | 'top' | 'left' | 'bottom' | 'right-top' | 'bottom-right' | 'bottom-left' | 'left-top';
41
38
  /**
42
39
  * paint mode.
43
40
  * @category Components
@@ -55,39 +52,41 @@ declare class AXImageEditorCropperWindowComponent implements OnDestroy {
55
52
  protected cropperWindow: _angular_core.Signal<ElementRef<any>>;
56
53
  private currentX;
57
54
  private currentY;
58
- private prevX;
59
- private prevY;
60
55
  private aspectWidth;
61
56
  private aspectHeight;
62
57
  private isMousePressed;
63
58
  protected renderer: Renderer2;
64
59
  private platformID;
65
- private mouseMoveEvent;
66
- private mouseUpEvent;
67
- private mouseMoveEvent2;
68
- private mouseUpEvent2;
69
- private mouseDownEvent;
70
- private mouseLeaveEvent;
60
+ private mouseMoveEvent?;
61
+ private mouseUpEvent?;
62
+ private mouseMoveEvent2?;
63
+ private mouseUpEvent2?;
64
+ private mouseDownEvent?;
65
+ private mouseLeaveEvent?;
66
+ private positioned;
71
67
  ngOnDestroy(): void;
72
- protected panMove(e: MouseEvent): void;
73
- protected panDown(e: MouseEvent): void;
68
+ protected panMove(e: PointerEvent): void;
69
+ protected panDown(e: PointerEvent): void;
74
70
  protected panUp(): void;
75
71
  getCropperArea(): DOMRect;
76
- private setPosition;
77
72
  private startX;
78
73
  private startY;
79
74
  private startWidth;
80
75
  private startHeight;
81
76
  private startLeft;
82
77
  private startTop;
83
- protected handleSelector(e: MouseEvent, value: string): void;
84
- protected changeSizeHandler(e: MouseEvent): void;
78
+ protected handleSelector(e: PointerEvent, value: AXImageEditorCropHandle): void;
79
+ protected changeSizeHandler(e: PointerEvent): void;
85
80
  protected clearSelector(): void;
81
+ private normalizeRatio;
82
+ private centerOnParent;
83
+ private clampToParent;
84
+ private applyPosition;
86
85
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXImageEditorCropperWindowComponent, never>;
87
86
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXImageEditorCropperWindowComponent, "ax-image-editor-cropper-window", never, { "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
88
87
  }
89
88
 
90
- declare class AXImageEditorViewComponent extends MXBaseComponent implements OnDestroy {
89
+ declare class AXImageEditorViewComponent extends MXBaseComponent {
91
90
  /**
92
91
  * its change grid display state.
93
92
  */
@@ -118,44 +117,50 @@ declare class AXImageEditorViewComponent extends MXBaseComponent implements OnDe
118
117
  protected isDrawRectangleCreated: _angular_core.WritableSignal<boolean>;
119
118
  /** @ignore */
120
119
  protected parent: AXImageEditorContainerComponent;
121
- /** @ignore */
122
- protected renderer: Renderer2;
120
+ private readonly destroyRef;
121
+ private readonly host;
123
122
  /** @ignore */
124
123
  protected imageEditorHistory: _angular_core.WritableSignal<HTMLImageElement[]>;
125
124
  /** @ignore */
126
125
  protected imageEditorHistoryPointer: _angular_core.WritableSignal<number>;
127
- /** @ignore */
128
- private resizeEventListener;
129
- /** @ignore */
130
- private imageLoadEventListener;
131
- private originalWidth;
132
- private originalHeight;
133
- private scale;
126
+ private canvasReady;
127
+ private drawing;
128
+ private didDraw;
129
+ private highlightSnapshot;
130
+ private highlightPoints;
131
+ private persistGeneration;
132
+ private sourceToken;
133
+ constructor();
134
134
  /** @ignore */
135
135
  protected resizeWindow(): void;
136
136
  /** @ignore */
137
137
  protected canvasResponsive(image: HTMLImageElement): void;
138
- /** @ignore */
139
- constructor();
140
- /** @ignore */
141
- ngOnDestroy(): void;
142
- private setInitialImage;
143
- /** @ignore */
144
- protected imageChanged(): void;
138
+ private loadSource;
139
+ private paintImage;
140
+ private fitCanvasDisplay;
141
+ private replaceHistory;
142
+ private pushHistory;
143
+ private syncHistoryFlags;
144
+ private applyUndo;
145
+ private applyRedo;
146
+ private canvasPoint;
147
+ private isDrawTool;
145
148
  /** @ignore */
146
149
  protected penConfigHandler(penType: 'pen' | 'highlight'): void;
150
+ private strokeHighlight;
147
151
  /** @ignore */
148
- protected mouseDownHandler(e: MouseEvent): void;
152
+ protected mouseDownHandler(event: PointerEvent): void;
149
153
  /** @ignore */
150
- protected mouseMoveHandler(e: MouseEvent): void;
151
- /** @ignore */
152
- protected mouseUpHandler(): void;
154
+ protected mouseMoveHandler(event: PointerEvent): void;
153
155
  /** @ignore */
156
+ protected mouseUpHandler(event?: PointerEvent): void;
157
+ /** Applies the current cropper selection. */
154
158
  crop(): Promise<void>;
159
+ /** Encodes the current canvas into JPEG, PNG, and WebP blobs. */
160
+ commitChanges(): Promise<Blob[]>;
155
161
  /** @ignore */
156
- protected rotateImage(): void;
157
- /** @ignore */
158
- protected saveImageChange(): Promise<void>;
162
+ protected rotateImage(): Promise<void>;
163
+ private persistCanvas;
159
164
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXImageEditorViewComponent, never>;
160
165
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXImageEditorViewComponent, "ax-image-editor-view", never, { "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "cropperSize": { "alias": "cropperSize"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
161
166
  }
@@ -177,8 +182,8 @@ declare class AXImageEditorContainerComponent extends AXImageEditorContainerComp
177
182
  view: _angular_core.Signal<AXImageEditorViewComponent>;
178
183
  /** Applies the current cropper selection. */
179
184
  crop(): Promise<void>;
180
- get __hostClass(): string;
181
- private get __hostName();
185
+ /** Encodes the current canvas into JPEG, PNG, and WebP blobs. */
186
+ commitChanges(): Promise<Blob[]>;
182
187
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXImageEditorContainerComponent, never>;
183
188
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXImageEditorContainerComponent, "ax-image-editor-container", never, { "look": { "alias": "look"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onValueChanged": "onValueChanged"; }, ["view"], ["ax-header", "ax-image-editor-view", "ax-footer", "ax-validation-rule"], true, never>;
184
189
  }
@@ -287,7 +292,7 @@ declare class AXImageEditorToolSelectorComponent {
287
292
 
288
293
  declare class AXImageEditorModule {
289
294
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXImageEditorModule, never>;
290
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXImageEditorModule, never, [typeof i1.AXButtonModule, typeof i2.FormsModule, typeof i3.AXRangeSliderModule, typeof i4.AXSelectBoxModule, typeof i5.AXColorBoxModule, typeof i6.AXPopoverModule, typeof i7.AXDecoratorModule, typeof i8.AXLoadingModule, typeof i9.AXDialogModule, typeof AXImageEditorViewComponent, typeof AXImageEditorContainerComponent, typeof AXImageEditorCropComponent, typeof AXImageEditorHistoryComponent, typeof AXImageEditorToolSelectorComponent, typeof AXImageEditorToolsBarComponent, typeof AXImageEditorPenComponent, typeof AXImageEditorHighlightComponent, typeof AXImageEditorRotateComponent, typeof AXImageEditorCropperWindowComponent], [typeof AXImageEditorViewComponent, typeof AXImageEditorContainerComponent, typeof AXImageEditorCropComponent, typeof AXImageEditorHistoryComponent, typeof AXImageEditorToolSelectorComponent, typeof AXImageEditorToolsBarComponent, typeof AXImageEditorPenComponent, typeof AXImageEditorHighlightComponent, typeof AXImageEditorRotateComponent, typeof AXImageEditorCropperWindowComponent]>;
295
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXImageEditorModule, never, [typeof AXImageEditorViewComponent, typeof AXImageEditorContainerComponent, typeof AXImageEditorCropComponent, typeof AXImageEditorHistoryComponent, typeof AXImageEditorToolSelectorComponent, typeof AXImageEditorToolsBarComponent, typeof AXImageEditorPenComponent, typeof AXImageEditorHighlightComponent, typeof AXImageEditorRotateComponent, typeof AXImageEditorCropperWindowComponent], [typeof AXImageEditorViewComponent, typeof AXImageEditorContainerComponent, typeof AXImageEditorCropComponent, typeof AXImageEditorHistoryComponent, typeof AXImageEditorToolSelectorComponent, typeof AXImageEditorToolsBarComponent, typeof AXImageEditorPenComponent, typeof AXImageEditorHighlightComponent, typeof AXImageEditorRotateComponent, typeof AXImageEditorCropperWindowComponent]>;
291
296
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXImageEditorModule>;
292
297
  }
293
298
 
@@ -1,6 +1,7 @@
1
1
  import { AXStyleColorType, AXStyleLookType, AXHotKeyAction, MXBaseComponent } from '@acorex/cdk/common';
2
2
  import { AXOverlayRef } from '@acorex/cdk/overlay';
3
3
  import { AXDialogButtonItem } from '@acorex/components/dialog';
4
+ import { AXPopupSizeType, AXPopupRef } from '@acorex/components/popup';
4
5
  import { AXProgressMode } from '@acorex/components/progress-bar';
5
6
  import * as _angular_core from '@angular/core';
6
7
  import { OnInit } from '@angular/core';
@@ -13,6 +14,8 @@ interface AXLoadingDialogConfig {
13
14
  progressValue?: number;
14
15
  progressColor?: AXStyleColorType;
15
16
  progressHeight?: number;
17
+ /** Popup size token. Uses the same responsive sizes as `AXPopupService`. @default 'sm' */
18
+ size?: AXPopupSizeType;
16
19
  buttons?: AXLoadingDialogButtonItem[];
17
20
  }
18
21
  interface AXLoadingDialogButtonItem {
@@ -43,7 +46,7 @@ interface AXLoadingDialogRef {
43
46
  type AXDialogRef = AXLoadingDialogRef;
44
47
  /**
45
48
  * @internal
46
- * Internal reference used by loading dialog service to manage overlay instances
49
+ * Internal reference used by loading dialog service to manage overlay instances.
47
50
  */
48
51
  interface AXLoadingDialogInternalRef {
49
52
  overlayRef: AXOverlayRef<unknown>;
@@ -57,8 +60,13 @@ interface AXLoadingDialogInternalRef {
57
60
  declare class AXLoadingDialogComponent extends MXBaseComponent implements OnInit {
58
61
  /** Loading dialog configuration data */
59
62
  data: _angular_core.InputSignal<AXLoadingDialogConfig>;
60
- /** @internal Callback function to close the dialog */
63
+ /** Callback function to close the dialog */
61
64
  onClose: _angular_core.InputSignal<() => void>;
65
+ /**
66
+ * Injected by {@link AXPopupComponent} when this dialog is opened via {@link AXPopupService}.
67
+ * @internal
68
+ */
69
+ readonly __popup__: _angular_core.InputSignal<AXPopupRef<any>>;
62
70
  /** @ignore */
63
71
  protected progressText: _angular_core.WritableSignal<string>;
64
72
  /** @ignore */
@@ -116,7 +124,7 @@ declare class AXLoadingDialogComponent extends MXBaseComponent implements OnInit
116
124
  /** @ignore */
117
125
  protected _hasAutoFocus(button: AXLoadingDialogButtonItem): boolean;
118
126
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXLoadingDialogComponent, never>;
119
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXLoadingDialogComponent, "ax-loading-dialog", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "onClose": { "alias": "onClose"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
127
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXLoadingDialogComponent, "ax-loading-dialog", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "onClose": { "alias": "onClose"; "required": false; "isSignal": true; }; "__popup__": { "alias": "__popup__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
120
128
  }
121
129
 
122
130
  declare class AXLoadingDialogModule {
@@ -126,7 +134,7 @@ declare class AXLoadingDialogModule {
126
134
  }
127
135
 
128
136
  declare class AXLoadingDialogService {
129
- private overlayService;
137
+ private popupService;
130
138
  /**
131
139
  * Opens a loading dialog with the specified configuration.
132
140
  *