@acorex/components 18.10.15 → 18.11.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 (44) hide show
  1. package/esm2022/common/lib/classes/events.class.mjs +1 -1
  2. package/esm2022/image-editor/lib/image-editor-toolbar/image-editor-toolbar.component.mjs +1 -1
  3. package/esm2022/image-editor/lib/image-editor-view/image-editor-view.component.mjs +1 -1
  4. package/esm2022/menu/index.mjs +4 -4
  5. package/esm2022/menu/lib/context-menu.component.mjs +181 -0
  6. package/esm2022/menu/lib/menu-item.component.mjs +311 -0
  7. package/esm2022/menu/lib/menu.component.mjs +24 -30
  8. package/esm2022/menu/lib/menu.module.mjs +7 -7
  9. package/esm2022/menu/lib/menu.service.mjs +10 -8
  10. package/esm2022/menu/lib/menu.types.mjs +22 -0
  11. package/esm2022/popover/lib/popover.component.mjs +55 -34
  12. package/esm2022/popup/lib/popup.component.mjs +2 -2
  13. package/esm2022/select-box/lib/select-box.component.mjs +3 -3
  14. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.mjs +1 -2
  15. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.mjs +3 -3
  16. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-font-style/wysiwyg-font-style.component.mjs +1 -1
  17. package/fesm2022/acorex-components-common.mjs.map +1 -1
  18. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  19. package/fesm2022/acorex-components-menu.mjs +494 -161
  20. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  21. package/fesm2022/acorex-components-popover.mjs +54 -33
  22. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  23. package/fesm2022/acorex-components-popup.mjs +2 -2
  24. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  25. package/fesm2022/acorex-components-select-box.mjs +2 -2
  26. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  27. package/fesm2022/acorex-components-wysiwyg.mjs +2 -3
  28. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  29. package/menu/index.d.ts +3 -3
  30. package/menu/lib/context-menu.component.d.ts +41 -0
  31. package/menu/lib/menu-item.component.d.ts +60 -0
  32. package/menu/lib/menu.component.d.ts +8 -10
  33. package/menu/lib/menu.module.d.ts +9 -9
  34. package/menu/lib/menu.service.d.ts +14 -3
  35. package/menu/lib/menu.types.d.ts +43 -0
  36. package/package.json +53 -53
  37. package/popover/lib/popover.component.d.ts +36 -34
  38. package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +1 -2
  39. package/esm2022/menu/lib/class/popover.class.mjs +0 -2
  40. package/esm2022/menu/lib/class/root-menu.class.mjs +0 -8
  41. package/esm2022/menu/lib/menu-item/menu-item.component.mjs +0 -160
  42. package/menu/lib/class/popover.class.d.ts +0 -2
  43. package/menu/lib/class/root-menu.class.d.ts +0 -7
  44. package/menu/lib/menu-item/menu-item.component.d.ts +0 -81
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "18.10.15",
3
+ "version": "18.11.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.2.0",
6
6
  "@angular/core": ">=18.2.0",
@@ -32,11 +32,11 @@
32
32
  "esm": "./esm2022/action-sheet/acorex-components-action-sheet.mjs",
33
33
  "default": "./fesm2022/acorex-components-action-sheet.mjs"
34
34
  },
35
- "./alert": {
36
- "types": "./alert/index.d.ts",
37
- "esm2022": "./esm2022/alert/acorex-components-alert.mjs",
38
- "esm": "./esm2022/alert/acorex-components-alert.mjs",
39
- "default": "./fesm2022/acorex-components-alert.mjs"
35
+ "./audio-wave": {
36
+ "types": "./audio-wave/index.d.ts",
37
+ "esm2022": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
38
+ "esm": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
39
+ "default": "./fesm2022/acorex-components-audio-wave.mjs"
40
40
  },
41
41
  "./avatar": {
42
42
  "types": "./avatar/index.d.ts",
@@ -44,17 +44,11 @@
44
44
  "esm": "./esm2022/avatar/acorex-components-avatar.mjs",
45
45
  "default": "./fesm2022/acorex-components-avatar.mjs"
46
46
  },
47
- "./audio-wave": {
48
- "types": "./audio-wave/index.d.ts",
49
- "esm2022": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
50
- "esm": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
51
- "default": "./fesm2022/acorex-components-audio-wave.mjs"
52
- },
53
- "./breadcrumbs": {
54
- "types": "./breadcrumbs/index.d.ts",
55
- "esm2022": "./esm2022/breadcrumbs/acorex-components-breadcrumbs.mjs",
56
- "esm": "./esm2022/breadcrumbs/acorex-components-breadcrumbs.mjs",
57
- "default": "./fesm2022/acorex-components-breadcrumbs.mjs"
47
+ "./alert": {
48
+ "types": "./alert/index.d.ts",
49
+ "esm2022": "./esm2022/alert/acorex-components-alert.mjs",
50
+ "esm": "./esm2022/alert/acorex-components-alert.mjs",
51
+ "default": "./fesm2022/acorex-components-alert.mjs"
58
52
  },
59
53
  "./badge": {
60
54
  "types": "./badge/index.d.ts",
@@ -68,6 +62,12 @@
68
62
  "esm": "./esm2022/bottom-navigation/acorex-components-bottom-navigation.mjs",
69
63
  "default": "./fesm2022/acorex-components-bottom-navigation.mjs"
70
64
  },
65
+ "./breadcrumbs": {
66
+ "types": "./breadcrumbs/index.d.ts",
67
+ "esm2022": "./esm2022/breadcrumbs/acorex-components-breadcrumbs.mjs",
68
+ "esm": "./esm2022/breadcrumbs/acorex-components-breadcrumbs.mjs",
69
+ "default": "./fesm2022/acorex-components-breadcrumbs.mjs"
70
+ },
71
71
  "./button": {
72
72
  "types": "./button/index.d.ts",
73
73
  "esm2022": "./esm2022/button/acorex-components-button.mjs",
@@ -92,18 +92,18 @@
92
92
  "esm": "./esm2022/check-box/acorex-components-check-box.mjs",
93
93
  "default": "./fesm2022/acorex-components-check-box.mjs"
94
94
  },
95
- "./circular-progress": {
96
- "types": "./circular-progress/index.d.ts",
97
- "esm2022": "./esm2022/circular-progress/acorex-components-circular-progress.mjs",
98
- "esm": "./esm2022/circular-progress/acorex-components-circular-progress.mjs",
99
- "default": "./fesm2022/acorex-components-circular-progress.mjs"
100
- },
101
95
  "./chips": {
102
96
  "types": "./chips/index.d.ts",
103
97
  "esm2022": "./esm2022/chips/acorex-components-chips.mjs",
104
98
  "esm": "./esm2022/chips/acorex-components-chips.mjs",
105
99
  "default": "./fesm2022/acorex-components-chips.mjs"
106
100
  },
101
+ "./circular-progress": {
102
+ "types": "./circular-progress/index.d.ts",
103
+ "esm2022": "./esm2022/circular-progress/acorex-components-circular-progress.mjs",
104
+ "esm": "./esm2022/circular-progress/acorex-components-circular-progress.mjs",
105
+ "default": "./fesm2022/acorex-components-circular-progress.mjs"
106
+ },
107
107
  "./collapse": {
108
108
  "types": "./collapse/index.d.ts",
109
109
  "esm2022": "./esm2022/collapse/acorex-components-collapse.mjs",
@@ -146,18 +146,18 @@
146
146
  "esm": "./esm2022/data-pager/acorex-components-data-pager.mjs",
147
147
  "default": "./fesm2022/acorex-components-data-pager.mjs"
148
148
  },
149
- "./data-table": {
150
- "types": "./data-table/index.d.ts",
151
- "esm2022": "./esm2022/data-table/acorex-components-data-table.mjs",
152
- "esm": "./esm2022/data-table/acorex-components-data-table.mjs",
153
- "default": "./fesm2022/acorex-components-data-table.mjs"
154
- },
155
149
  "./datetime-box": {
156
150
  "types": "./datetime-box/index.d.ts",
157
151
  "esm2022": "./esm2022/datetime-box/acorex-components-datetime-box.mjs",
158
152
  "esm": "./esm2022/datetime-box/acorex-components-datetime-box.mjs",
159
153
  "default": "./fesm2022/acorex-components-datetime-box.mjs"
160
154
  },
155
+ "./data-table": {
156
+ "types": "./data-table/index.d.ts",
157
+ "esm2022": "./esm2022/data-table/acorex-components-data-table.mjs",
158
+ "esm": "./esm2022/data-table/acorex-components-data-table.mjs",
159
+ "default": "./fesm2022/acorex-components-data-table.mjs"
160
+ },
161
161
  "./datetime-input": {
162
162
  "types": "./datetime-input/index.d.ts",
163
163
  "esm2022": "./esm2022/datetime-input/acorex-components-datetime-input.mjs",
@@ -302,18 +302,18 @@
302
302
  "esm": "./esm2022/paint/acorex-components-paint.mjs",
303
303
  "default": "./fesm2022/acorex-components-paint.mjs"
304
304
  },
305
- "./phone-box": {
306
- "types": "./phone-box/index.d.ts",
307
- "esm2022": "./esm2022/phone-box/acorex-components-phone-box.mjs",
308
- "esm": "./esm2022/phone-box/acorex-components-phone-box.mjs",
309
- "default": "./fesm2022/acorex-components-phone-box.mjs"
310
- },
311
305
  "./password-box": {
312
306
  "types": "./password-box/index.d.ts",
313
307
  "esm2022": "./esm2022/password-box/acorex-components-password-box.mjs",
314
308
  "esm": "./esm2022/password-box/acorex-components-password-box.mjs",
315
309
  "default": "./fesm2022/acorex-components-password-box.mjs"
316
310
  },
311
+ "./phone-box": {
312
+ "types": "./phone-box/index.d.ts",
313
+ "esm2022": "./esm2022/phone-box/acorex-components-phone-box.mjs",
314
+ "esm": "./esm2022/phone-box/acorex-components-phone-box.mjs",
315
+ "default": "./fesm2022/acorex-components-phone-box.mjs"
316
+ },
317
317
  "./picker": {
318
318
  "types": "./picker/index.d.ts",
319
319
  "esm2022": "./esm2022/picker/acorex-components-picker.mjs",
@@ -326,36 +326,36 @@
326
326
  "esm": "./esm2022/popover/acorex-components-popover.mjs",
327
327
  "default": "./fesm2022/acorex-components-popover.mjs"
328
328
  },
329
- "./progress-bar": {
330
- "types": "./progress-bar/index.d.ts",
331
- "esm2022": "./esm2022/progress-bar/acorex-components-progress-bar.mjs",
332
- "esm": "./esm2022/progress-bar/acorex-components-progress-bar.mjs",
333
- "default": "./fesm2022/acorex-components-progress-bar.mjs"
334
- },
335
329
  "./popup": {
336
330
  "types": "./popup/index.d.ts",
337
331
  "esm2022": "./esm2022/popup/acorex-components-popup.mjs",
338
332
  "esm": "./esm2022/popup/acorex-components-popup.mjs",
339
333
  "default": "./fesm2022/acorex-components-popup.mjs"
340
334
  },
335
+ "./progress-bar": {
336
+ "types": "./progress-bar/index.d.ts",
337
+ "esm2022": "./esm2022/progress-bar/acorex-components-progress-bar.mjs",
338
+ "esm": "./esm2022/progress-bar/acorex-components-progress-bar.mjs",
339
+ "default": "./fesm2022/acorex-components-progress-bar.mjs"
340
+ },
341
341
  "./qrcode": {
342
342
  "types": "./qrcode/index.d.ts",
343
343
  "esm2022": "./esm2022/qrcode/acorex-components-qrcode.mjs",
344
344
  "esm": "./esm2022/qrcode/acorex-components-qrcode.mjs",
345
345
  "default": "./fesm2022/acorex-components-qrcode.mjs"
346
346
  },
347
- "./range-slider": {
348
- "types": "./range-slider/index.d.ts",
349
- "esm2022": "./esm2022/range-slider/acorex-components-range-slider.mjs",
350
- "esm": "./esm2022/range-slider/acorex-components-range-slider.mjs",
351
- "default": "./fesm2022/acorex-components-range-slider.mjs"
352
- },
353
347
  "./radio": {
354
348
  "types": "./radio/index.d.ts",
355
349
  "esm2022": "./esm2022/radio/acorex-components-radio.mjs",
356
350
  "esm": "./esm2022/radio/acorex-components-radio.mjs",
357
351
  "default": "./fesm2022/acorex-components-radio.mjs"
358
352
  },
353
+ "./range-slider": {
354
+ "types": "./range-slider/index.d.ts",
355
+ "esm2022": "./esm2022/range-slider/acorex-components-range-slider.mjs",
356
+ "esm": "./esm2022/range-slider/acorex-components-range-slider.mjs",
357
+ "default": "./fesm2022/acorex-components-range-slider.mjs"
358
+ },
359
359
  "./rate-picker": {
360
360
  "types": "./rate-picker/index.d.ts",
361
361
  "esm2022": "./esm2022/rate-picker/acorex-components-rate-picker.mjs",
@@ -470,18 +470,18 @@
470
470
  "esm": "./esm2022/toast/acorex-components-toast.mjs",
471
471
  "default": "./fesm2022/acorex-components-toast.mjs"
472
472
  },
473
- "./uploader": {
474
- "types": "./uploader/index.d.ts",
475
- "esm2022": "./esm2022/uploader/acorex-components-uploader.mjs",
476
- "esm": "./esm2022/uploader/acorex-components-uploader.mjs",
477
- "default": "./fesm2022/acorex-components-uploader.mjs"
478
- },
479
473
  "./tooltip": {
480
474
  "types": "./tooltip/index.d.ts",
481
475
  "esm2022": "./esm2022/tooltip/acorex-components-tooltip.mjs",
482
476
  "esm": "./esm2022/tooltip/acorex-components-tooltip.mjs",
483
477
  "default": "./fesm2022/acorex-components-tooltip.mjs"
484
478
  },
479
+ "./uploader": {
480
+ "types": "./uploader/index.d.ts",
481
+ "esm2022": "./esm2022/uploader/acorex-components-uploader.mjs",
482
+ "esm": "./esm2022/uploader/acorex-components-uploader.mjs",
483
+ "default": "./fesm2022/acorex-components-uploader.mjs"
484
+ },
485
485
  "./wysiwyg": {
486
486
  "types": "./wysiwyg/index.d.ts",
487
487
  "esm2022": "./esm2022/wysiwyg/acorex-components-wysiwyg.mjs",
@@ -9,6 +9,7 @@ export type AXPopoverCloseTrigger = 'manual' | 'clickOut' | 'leave';
9
9
  * A popover component with custom encapsulation and change detection settings.
10
10
  */
11
11
  export declare class AXPopoverComponent extends MXBaseComponent {
12
+ private platformService;
12
13
  /** @ignore */
13
14
  private _platform;
14
15
  /** @ignore */
@@ -32,8 +33,8 @@ export declare class AXPopoverComponent extends MXBaseComponent {
32
33
  */
33
34
  get offsetX(): number;
34
35
  /**
35
- * Sets the horizontal offset and updates it with a callback.
36
- */
36
+ * Sets the horizontal offset and updates it with a callback.
37
+ */
37
38
  set offsetX(v: number);
38
39
  /** @ignore */
39
40
  private _offsetY;
@@ -42,8 +43,8 @@ export declare class AXPopoverComponent extends MXBaseComponent {
42
43
  */
43
44
  get offsetY(): number;
44
45
  /**
45
- * Sets the vertical offset and updates the component position.
46
- */
46
+ * Sets the vertical offset and updates the component position.
47
+ */
47
48
  set offsetY(v: number);
48
49
  /** @ignore */
49
50
  private _target;
@@ -52,8 +53,8 @@ export declare class AXPopoverComponent extends MXBaseComponent {
52
53
  */
53
54
  get target(): HTMLElement | ElementRef | MXBaseComponent;
54
55
  /**
55
- * Sets the target element and updates event bindings.
56
- */
56
+ * Sets the target element and updates event bindings.
57
+ */
57
58
  set target(v: HTMLElement | ElementRef | MXBaseComponent);
58
59
  /** @ignore */
59
60
  private _defautPlacements;
@@ -66,8 +67,8 @@ export declare class AXPopoverComponent extends MXBaseComponent {
66
67
  */
67
68
  get placement(): AXPlacementType;
68
69
  /**
69
- * Sets the component's placement and updates its position settings.
70
- */
70
+ * Sets the component's placement and updates its position settings.
71
+ */
71
72
  set placement(v: AXPlacementType);
72
73
  /** @ignore */
73
74
  private _portal;
@@ -78,30 +79,30 @@ export declare class AXPopoverComponent extends MXBaseComponent {
78
79
  */
79
80
  get componentRef(): ComponentRef<unknown>;
80
81
  /**
81
- * Holds the context data for the component.
82
- */
82
+ * Holds the context data for the component.
83
+ */
83
84
  context: unknown;
84
85
  /** @ignore */
85
86
  _baseTemplate: TemplateRef<unknown>;
86
87
  /**
87
- * Defines the content to be displayed, which can be a template or a component.
88
- */
88
+ * Defines the content to be displayed, which can be a template or a component.
89
+ */
89
90
  content: TemplateRef<unknown> | ComponentType<unknown>;
90
91
  /** @ignore */
91
92
  private _openOn;
92
93
  /**
93
- * Gets or sets the trigger for opening the popover and updates target events.
94
- */
94
+ * Gets or sets the trigger for opening the popover and updates target events.
95
+ */
95
96
  get openOn(): AXPopoverOpenTrigger;
96
97
  /**
97
- * Sets the trigger for opening the popover and updates target events.
98
- */
98
+ * Sets the trigger for opening the popover and updates target events.
99
+ */
99
100
  set openOn(v: AXPopoverOpenTrigger);
100
101
  /** @ignore */
101
102
  private _closeOn;
102
103
  /**
103
- * Gets or sets the trigger for closing the popover.
104
- */
104
+ * Gets or sets the trigger for closing the popover.
105
+ */
105
106
  get closeOn(): AXPopoverCloseTrigger;
106
107
  /**
107
108
  * Sets the trigger for closing the popover and rebinds target events.
@@ -109,8 +110,8 @@ export declare class AXPopoverComponent extends MXBaseComponent {
109
110
  */
110
111
  set closeOn(v: AXPopoverCloseTrigger);
111
112
  /**
112
- * Determines if a backdrop should be displayed behind the popover.
113
- */
113
+ * Determines if a backdrop should be displayed behind the popover.
114
+ */
114
115
  hasBackdrop: boolean;
115
116
  /**
116
117
  * Delay in milliseconds before the popover opens after a trigger event.
@@ -155,16 +156,16 @@ export declare class AXPopoverComponent extends MXBaseComponent {
155
156
  /** @ignore */
156
157
  private removeOverlayEvents;
157
158
  /**
158
- * Toggles the component's open state.
159
- */
159
+ * Toggles the component's open state.
160
+ */
160
161
  toggle(): void;
161
162
  /**
162
163
  * Closes the component if it's open, detaches the overlay, restores focus, and emits the closed event.
163
164
  */
164
165
  close(): void;
165
166
  /**
166
- * Opens the component if it's not already open, saves focus, opens the overlay, and emits the opened event.
167
- */
167
+ * Opens the component if it's not already open, saves focus, opens the overlay, and emits the opened event.
168
+ */
168
169
  open(): void;
169
170
  /** @ignore */
170
171
  private saveFocus;
@@ -173,27 +174,28 @@ export declare class AXPopoverComponent extends MXBaseComponent {
173
174
  /** @ignore */
174
175
  private openOverlayInternal;
175
176
  /**
176
- * Checks if the overlay is currently open.
177
- * @returns {boolean}
178
- */
177
+ * Checks if the overlay is currently open.
178
+ * @returns {boolean}
179
+ */
179
180
  get isOpen(): boolean;
180
181
  /**
181
- * Determines if the actionsheet style should be applied.
182
- * @returns {boolean}
183
- */
182
+ * Determines if the actionsheet style should be applied.
183
+ * @returns {boolean}
184
+ */
184
185
  get isActionsheetStyle(): boolean;
185
186
  /** @ignore */
186
187
  private updatePositionStrategy;
187
188
  /** @ignore */
188
189
  private updateOffset;
189
190
  /**
190
- * Updates the position of the overlay and focuses on it.
191
- */
191
+ * Updates the position of the overlay and focuses on it.
192
+ */
192
193
  updatePosition(): void;
193
194
  /**
194
- * Focuses the overlay element.
195
- */
195
+ * Focuses the overlay element.
196
+ */
196
197
  focus(): void;
198
+ protected ngOnInit(): void;
197
199
  /** @ignore */
198
200
  ngOnDestroy(): void;
199
201
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPopoverComponent, never>;
@@ -15,8 +15,7 @@ declare const AXWysiwygContainerComponent_base: import("polytype").Polytype.Clus
15
15
  export declare class AXWysiwygContainerComponent extends AXWysiwygContainerComponent_base implements OnDestroy {
16
16
  /** @ignore */
17
17
  private zone;
18
- /** @ignore */
19
- protected wysiwyg: import("@angular/core").WritableSignal<AXWysiwyg>;
18
+ wysiwyg: import("@angular/core").WritableSignal<AXWysiwyg>;
20
19
  /** @ignore */
21
20
  protected view: import("@angular/core").WritableSignal<HTMLElement>;
22
21
  /** @ignore */
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9tZW51L3NyYy9saWIvY2xhc3MvcG9wb3Zlci5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQVhQb3BvdmVyT3BlblRyaWdnZXIgfSBmcm9tICdAYWNvcmV4L2NvbXBvbmVudHMvcG9wb3Zlcic7XG5cbmV4cG9ydCB0eXBlIEFYTWVudVBvcG92ZXJUcmlnZ2VyID0gRXhjbHVkZTxBWFBvcG92ZXJPcGVuVHJpZ2dlciwgJ21hbnVhbCc+O1xuIl19
@@ -1,8 +0,0 @@
1
- import { signal } from '@angular/core';
2
- export class AXRootMenu {
3
- constructor() {
4
- this.orientation = signal('horizontal');
5
- this.openOn = signal('toggle');
6
- }
7
- }
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9vdC1tZW51LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL21lbnUvc3JjL2xpYi9jbGFzcy9yb290LW1lbnUuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFrQixNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFdkQsTUFBTSxPQUFPLFVBQVU7SUFBdkI7UUFDRSxnQkFBVyxHQUFrQyxNQUFNLENBQUMsWUFBWSxDQUFDLENBQUM7UUFDbEUsV0FBTSxHQUF5QyxNQUFNLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDbEUsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQVhPcmllbnRhdGlvbiB9IGZyb20gJ0BhY29yZXgvY29tcG9uZW50cy9jb21tb24nO1xuaW1wb3J0IHsgV3JpdGFibGVTaWduYWwsIHNpZ25hbCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQVhNZW51UG9wb3ZlclRyaWdnZXIgfSBmcm9tICcuL3BvcG92ZXIuY2xhc3MnO1xuZXhwb3J0IGNsYXNzIEFYUm9vdE1lbnUge1xuICBvcmllbnRhdGlvbjogV3JpdGFibGVTaWduYWw8QVhPcmllbnRhdGlvbj4gPSBzaWduYWwoJ2hvcml6b250YWwnKTtcbiAgb3Blbk9uOiBXcml0YWJsZVNpZ25hbDxBWE1lbnVQb3BvdmVyVHJpZ2dlcj4gPSBzaWduYWwoJ3RvZ2dsZScpO1xufVxuIl19
@@ -1,160 +0,0 @@
1
- import { MXInteractiveComponent } from '@acorex/components/common';
2
- import { AXPopoverComponent } from '@acorex/components/popover';
3
- import { Component, ContentChildren, HostBinding, HostListener, QueryList, ViewChild, ViewEncapsulation, afterNextRender, inject, input, output, signal, } from '@angular/core';
4
- import { AXRootMenu } from '../class/root-menu.class';
5
- import { AXMenuService } from '../menu.service';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@acorex/components/popover";
8
- /**
9
- * Represents a menu item component used within an `ax-menu`.
10
- * @category Components
11
- */
12
- export class AXMenuItemComponent extends MXInteractiveComponent {
13
- /** @ignore */
14
- constructor() {
15
- super();
16
- this.service = inject(AXMenuService);
17
- /**
18
- * Injects the `AXMenuService` for managing menu interactions.
19
- */
20
- this.menuService = inject(AXMenuService);
21
- /**
22
- * The vertical offset for positioning, initialized to 0.
23
- */
24
- this.offsetY = signal(0);
25
- /**
26
- * The horizontal offset for positioning, initialized to 0.
27
- */
28
- this.offsetX = signal(0);
29
- /**
30
- * The text content, initialized to an empty string.
31
- */
32
- // text = input<string>();
33
- /**
34
- * Indicates whether the item is active.
35
- */
36
- this.active = input();
37
- /**
38
- * Emitted when the active state changes.
39
- */
40
- this.activeChange = output();
41
- /**
42
- * Emitted when the element is clicked.
43
- */
44
- this.onClick = output();
45
- /**
46
- * Indicates whether the component is a root menu item.
47
- * @defaultValue false
48
- */
49
- this.isRoot = false;
50
- /**
51
- * Injects the root menu service.
52
- */
53
- this.rootMenu = inject(AXRootMenu);
54
- this.arrowState = input(true);
55
- afterNextRender(() => {
56
- this.children.forEach((c) => {
57
- c.parent = this;
58
- });
59
- this.offsetY.set(this.isRoot ? 8 : 0);
60
- this.offsetX.set(this.isRoot ? 0 : 4);
61
- this.getPlacement();
62
- });
63
- }
64
- /**
65
- * Closes the popover if it is open.
66
- */
67
- close() {
68
- this.popover?.close();
69
- }
70
- /** @ignore */
71
- _handleOnOpened() {
72
- this.parent.children.forEach((c) => {
73
- if (c != this) {
74
- c.close();
75
- }
76
- });
77
- if (this.children.length) {
78
- this.menuService.activeMenus$.next(this.menuService.activeMenus$.getValue().concat(this));
79
- }
80
- }
81
- /** @ignore */
82
- _handleOnClosed() {
83
- this.children.forEach((c) => {
84
- c.close();
85
- });
86
- }
87
- /**
88
- * Returns the icon based on the orientation of the root menu.
89
- */
90
- getIcon() {
91
- if (this.rootMenu.orientation() === 'vertical') {
92
- return 'ax-icon-chevron-right';
93
- }
94
- else {
95
- return 'ax-icon-chevron-down';
96
- }
97
- }
98
- /**
99
- * Determines the placement based on the root menu's orientation: 'bottom-start' for horizontal root, 'end-top' otherwise.
100
- */
101
- getPlacement() {
102
- switch (this.rootMenu.orientation()) {
103
- case 'horizontal':
104
- if (this.isRoot) {
105
- return 'bottom-start';
106
- }
107
- else {
108
- return 'end-top';
109
- }
110
- break;
111
- case 'vertical':
112
- if (this.isRoot) {
113
- return 'end-top';
114
- }
115
- else {
116
- return 'end-top';
117
- }
118
- break;
119
- default:
120
- return 'bottom-start';
121
- }
122
- }
123
- /** @ignore */
124
- get __hostClass() {
125
- return [`${this.disabled ? 'ax-state-disabled' : ''}`, `${this.active() ? 'ax-state-active' : ''}`];
126
- }
127
- /** @ignore */
128
- __hostClick(e) {
129
- if (!this.disabled) {
130
- this.onClick.emit({
131
- component: this,
132
- htmlElement: this.getHostElement(),
133
- nativeEvent: e,
134
- });
135
- if (!this.children.length) {
136
- this.menuService.activeMenus$.subscribe((c) => c.forEach((x) => x.close())).unsubscribe();
137
- this.menuService.activeMenus$.next([]);
138
- }
139
- }
140
- }
141
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
142
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXMenuItemComponent, selector: "ax-menu-item", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, arrowState: { classPropertyName: "arrowState", publicName: "arrowState", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeChange: "activeChange", onClick: "onClick" }, host: { attributes: { "ngSkipHydration": "true" }, listeners: { "click": "__hostClick($event)" }, properties: { "class": "this.__hostClass" } }, queries: [{ propertyName: "children", predicate: AXMenuItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-menu-item-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-text\"></ng-content>\n <ng-content></ng-content>\n</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n@if (children.length && arrowState()) {\n <i class=\"ax-icon ax-icon-solid {{ getIcon() }} ax-menu-item-child-icon\"></i>\n}\n\n<ax-popover\n #popover\n [closeOn]=\"'clickOut'\"\n [openOn]=\"rootMenu.openOn()\"\n [target]=\"getHostElement()\"\n [offsetY]=\"offsetY()\"\n [offsetX]=\"offsetX()\"\n [placement]=\"getPlacement()\"\n (onOpened)=\"_handleOnOpened()\"\n (onClosed)=\"_handleOnClosed()\"\n>\n <div class=\"ax-menu-item-children ax-parent-{{ this.rootMenu.orientation() }}\">\n <ng-content select=\"ax-menu-item\"></ng-content>\n </div>\n</ax-popover>\n", dependencies: [{ kind: "component", type: i1.AXPopoverComponent, selector: "ax-popover", inputs: ["offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }], encapsulation: i0.ViewEncapsulation.None }); }
143
- }
144
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuItemComponent, decorators: [{
145
- type: Component,
146
- args: [{ selector: 'ax-menu-item', inputs: ['disabled'], host: { ngSkipHydration: 'true' }, encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-menu-item-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-text\"></ng-content>\n <ng-content></ng-content>\n</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n@if (children.length && arrowState()) {\n <i class=\"ax-icon ax-icon-solid {{ getIcon() }} ax-menu-item-child-icon\"></i>\n}\n\n<ax-popover\n #popover\n [closeOn]=\"'clickOut'\"\n [openOn]=\"rootMenu.openOn()\"\n [target]=\"getHostElement()\"\n [offsetY]=\"offsetY()\"\n [offsetX]=\"offsetX()\"\n [placement]=\"getPlacement()\"\n (onOpened)=\"_handleOnOpened()\"\n (onClosed)=\"_handleOnClosed()\"\n>\n <div class=\"ax-menu-item-children ax-parent-{{ this.rootMenu.orientation() }}\">\n <ng-content select=\"ax-menu-item\"></ng-content>\n </div>\n</ax-popover>\n" }]
147
- }], ctorParameters: () => [], propDecorators: { popover: [{
148
- type: ViewChild,
149
- args: [AXPopoverComponent]
150
- }], children: [{
151
- type: ContentChildren,
152
- args: [AXMenuItemComponent]
153
- }], __hostClass: [{
154
- type: HostBinding,
155
- args: ['class']
156
- }], __hostClick: [{
157
- type: HostListener,
158
- args: ['click', ['$event']]
159
- }] } });
160
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9tZW51L3NyYy9saWIvbWVudS1pdGVtL21lbnUtaXRlbS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvbWVudS9zcmMvbGliL21lbnUtaXRlbS9tZW51LWl0ZW0uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFnQixzQkFBc0IsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQ2pGLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQ2hFLE9BQU8sRUFDTCxTQUFTLEVBQ1QsZUFBZSxFQUNmLFdBQVcsRUFDWCxZQUFZLEVBQ1osU0FBUyxFQUNULFNBQVMsRUFDVCxpQkFBaUIsRUFDakIsZUFBZSxFQUNmLE1BQU0sRUFDTixLQUFLLEVBQ0wsTUFBTSxFQUNOLE1BQU0sR0FDUCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU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cG9wb3ZlclxuICAjcG9wb3ZlclxuICBbY2xvc2VPbl09XCInY2xpY2tPdXQnXCJcbiAgW29wZW5Pbl09XCJyb290TWVudS5vcGVuT24oKVwiXG4gIFt0YXJnZXRdPVwiZ2V0SG9zdEVsZW1lbnQoKVwiXG4gIFtvZmZzZXRZXT1cIm9mZnNldFkoKVwiXG4gIFtvZmZzZXRYXT1cIm9mZnNldFgoKVwiXG4gIFtwbGFjZW1lbnRdPVwiZ2V0UGxhY2VtZW50KClcIlxuICAob25PcGVuZWQpPVwiX2hhbmRsZU9uT3BlbmVkKClcIlxuICAob25DbG9zZWQpPVwiX2hhbmRsZU9uQ2xvc2VkKClcIlxuPlxuICA8ZGl2IGNsYXNzPVwiYXgtbWVudS1pdGVtLWNoaWxkcmVuIGF4LXBhcmVudC17eyB0aGlzLnJvb3RNZW51Lm9yaWVudGF0aW9uKCkgfX1cIj5cbiAgICA8bmctY29udGVudCBzZWxlY3Q9XCJheC1tZW51LWl0ZW1cIj48L25nLWNvbnRlbnQ+XG4gIDwvZGl2PlxuPC9heC1wb3BvdmVyPlxuIl19
@@ -1,2 +0,0 @@
1
- import { AXPopoverOpenTrigger } from '@acorex/components/popover';
2
- export type AXMenuPopoverTrigger = Exclude<AXPopoverOpenTrigger, 'manual'>;
@@ -1,7 +0,0 @@
1
- import { AXOrientation } from '@acorex/components/common';
2
- import { WritableSignal } from '@angular/core';
3
- import { AXMenuPopoverTrigger } from './popover.class';
4
- export declare class AXRootMenu {
5
- orientation: WritableSignal<AXOrientation>;
6
- openOn: WritableSignal<AXMenuPopoverTrigger>;
7
- }