@acorex/components 20.7.29 → 20.7.31

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/menu/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as _angular_core from '@angular/core';
2
2
  import { WritableSignal, OutputEmitterRef, OnDestroy } from '@angular/core';
3
3
  import { AXStyleColorType, NXComponent, NXClickEvent, AXOrientation, NXEvent } from '@acorex/cdk/common';
4
4
  import { AXPoint } from '@acorex/core/utils';
5
+ import { UrlTree, IsActiveMatchOptions } from '@angular/router';
5
6
  import { Subject } from 'rxjs';
6
7
 
7
8
  type AXMenuOpenTrigger = 'click' | 'hover';
@@ -16,22 +17,37 @@ declare abstract class AXRootMenu {
16
17
  }
17
18
  declare abstract class AXMenuItemComponentBase {
18
19
  }
19
- declare abstract class AXMenuItem {
20
- color?: AXStyleColorType;
21
- name?: string;
20
+ /** Shared tree item shape for `ax-menu`, `ax-context-menu`, and `ax-side-menu`. */
21
+ interface AXMenuItem {
22
22
  text: string;
23
- data?: any;
23
+ name?: string;
24
24
  icon?: string;
25
+ data?: unknown;
25
26
  disabled?: boolean;
26
27
  items?: AXMenuItem[];
28
+ color?: AXStyleColorType;
27
29
  suffix?: {
28
30
  text: string;
29
31
  };
32
+ /** Side-menu alias for `suffix.text`. */
33
+ suffixText?: string;
30
34
  break?: boolean;
31
35
  group?: {
32
36
  name?: string;
33
37
  title?: string;
34
38
  };
39
+ title?: string;
40
+ routerLink?: string | any[] | UrlTree;
41
+ routerLinkActive?: string | string[];
42
+ routerLinkActiveOptions?: {
43
+ exact: boolean;
44
+ } | IsActiveMatchOptions;
45
+ href?: string;
46
+ target?: '_blank' | '_self' | '_parent' | '_top';
47
+ active?: boolean;
48
+ isLoading?: boolean;
49
+ isCollapsed?: boolean;
50
+ toggleOnClick?: boolean;
35
51
  }
36
52
  declare class AXMenuItemClickBaseEvent<T extends NXComponent = NXComponent> extends NXClickEvent<T> {
37
53
  item: {
@@ -146,6 +162,7 @@ declare class AXMenuItemComponent extends NXComponent implements OnDestroy {
146
162
  private scrollableParents;
147
163
  private unsuscriber;
148
164
  private renderer;
165
+ private injector;
149
166
  private zIndexService;
150
167
  private zToken;
151
168
  protected arrowIcon: _angular_core.Signal<string>;
@@ -176,10 +193,18 @@ declare class AXMenuItemComponent extends NXComponent implements OnDestroy {
176
193
  * @returns void - No return value. Triggers submenu closing side-effects.
177
194
  */
178
195
  close(): void;
196
+ /**
197
+ * Positions the submenu after layout so nested levels measure their full height.
198
+ */
199
+ private schedulePositionCalculation;
179
200
  /**
180
201
  * Calculate the position of the submenu to avoid it going out of the viewport.
181
202
  */
182
203
  private calculatePosition;
204
+ /** Measures submenu size using the same flex layout as the rendered menu. */
205
+ private measureSubmenuRect;
206
+ /** Keeps the submenu fully inside the viewport vertically. */
207
+ private clampVerticalPosition;
183
208
  private handleClick;
184
209
  private handleMouseEnter;
185
210
  private mouseLeaveTimeout;
@@ -249,5 +274,5 @@ declare class AXMenuModule {
249
274
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXMenuModule>;
250
275
  }
251
276
 
252
- export { AXContextMenuComponent, AXContextMenuOpeningEvent, AXMenuComponent, AXMenuItem, AXMenuItemClickBaseEvent, AXMenuItemComponent, AXMenuItemComponentBase, AXMenuModule, AXMenuService, AXRootMenu };
253
- export type { AXContextMenuItemsClickEvent, AXMenuCloseTrigger, AXMenuItemClickEvent, AXMenuItemsClickEvent, AXMenuOpenTrigger };
277
+ export { AXContextMenuComponent, AXContextMenuOpeningEvent, AXMenuComponent, AXMenuItemClickBaseEvent, AXMenuItemComponent, AXMenuItemComponentBase, AXMenuModule, AXMenuService, AXRootMenu };
278
+ export type { AXContextMenuItemsClickEvent, AXMenuCloseTrigger, AXMenuItem, AXMenuItemClickEvent, AXMenuItemsClickEvent, AXMenuOpenTrigger };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "20.7.29",
3
+ "version": "20.7.31",
4
4
  "peerDependencies": {
5
- "@acorex/core": "20.7.29",
6
- "@acorex/cdk": "20.7.29",
5
+ "@acorex/core": "20.7.31",
6
+ "@acorex/cdk": "20.7.31",
7
7
  "polytype": ">=0.17.0",
8
8
  "angular-imask": ">=7.6.1",
9
9
  "gridstack": ">=12.0.0",
@@ -60,14 +60,14 @@
60
60
  "types": "./accordion/index.d.ts",
61
61
  "default": "./fesm2022/acorex-components-accordion.mjs"
62
62
  },
63
- "./action-sheet": {
64
- "types": "./action-sheet/index.d.ts",
65
- "default": "./fesm2022/acorex-components-action-sheet.mjs"
66
- },
67
63
  "./alert": {
68
64
  "types": "./alert/index.d.ts",
69
65
  "default": "./fesm2022/acorex-components-alert.mjs"
70
66
  },
67
+ "./action-sheet": {
68
+ "types": "./action-sheet/index.d.ts",
69
+ "default": "./fesm2022/acorex-components-action-sheet.mjs"
70
+ },
71
71
  "./aspect-ratio": {
72
72
  "types": "./aspect-ratio/index.d.ts",
73
73
  "default": "./fesm2022/acorex-components-aspect-ratio.mjs"
@@ -140,14 +140,14 @@
140
140
  "types": "./command/index.d.ts",
141
141
  "default": "./fesm2022/acorex-components-command.mjs"
142
142
  },
143
- "./comment": {
144
- "types": "./comment/index.d.ts",
145
- "default": "./fesm2022/acorex-components-comment.mjs"
146
- },
147
143
  "./conversation": {
148
144
  "types": "./conversation/index.d.ts",
149
145
  "default": "./fesm2022/acorex-components-conversation.mjs"
150
146
  },
147
+ "./comment": {
148
+ "types": "./comment/index.d.ts",
149
+ "default": "./fesm2022/acorex-components-comment.mjs"
150
+ },
151
151
  "./conversation2": {
152
152
  "types": "./conversation2/index.d.ts",
153
153
  "default": "./fesm2022/acorex-components-conversation2.mjs"
@@ -160,17 +160,17 @@
160
160
  "types": "./data-list/index.d.ts",
161
161
  "default": "./fesm2022/acorex-components-data-list.mjs"
162
162
  },
163
- "./data-pager": {
164
- "types": "./data-pager/index.d.ts",
165
- "default": "./fesm2022/acorex-components-data-pager.mjs"
163
+ "./data-table": {
164
+ "types": "./data-table/index.d.ts",
165
+ "default": "./fesm2022/acorex-components-data-table.mjs"
166
166
  },
167
167
  "./datetime-box": {
168
168
  "types": "./datetime-box/index.d.ts",
169
169
  "default": "./fesm2022/acorex-components-datetime-box.mjs"
170
170
  },
171
- "./data-table": {
172
- "types": "./data-table/index.d.ts",
173
- "default": "./fesm2022/acorex-components-data-table.mjs"
171
+ "./data-pager": {
172
+ "types": "./data-pager/index.d.ts",
173
+ "default": "./fesm2022/acorex-components-data-pager.mjs"
174
174
  },
175
175
  "./datetime-input": {
176
176
  "types": "./datetime-input/index.d.ts",
@@ -352,14 +352,14 @@
352
352
  "types": "./rail-navigation/index.d.ts",
353
353
  "default": "./fesm2022/acorex-components-rail-navigation.mjs"
354
354
  },
355
- "./rate-picker": {
356
- "types": "./rate-picker/index.d.ts",
357
- "default": "./fesm2022/acorex-components-rate-picker.mjs"
358
- },
359
355
  "./range-slider": {
360
356
  "types": "./range-slider/index.d.ts",
361
357
  "default": "./fesm2022/acorex-components-range-slider.mjs"
362
358
  },
359
+ "./rate-picker": {
360
+ "types": "./rate-picker/index.d.ts",
361
+ "default": "./fesm2022/acorex-components-rate-picker.mjs"
362
+ },
363
363
  "./rest-api-generator": {
364
364
  "types": "./rest-api-generator/index.d.ts",
365
365
  "default": "./fesm2022/acorex-components-rest-api-generator.mjs"
@@ -380,14 +380,14 @@
380
380
  "types": "./scheduler/index.d.ts",
381
381
  "default": "./fesm2022/acorex-components-scheduler.mjs"
382
382
  },
383
- "./scss": {
384
- "types": "./scss/index.d.ts",
385
- "default": "./fesm2022/acorex-components-scss.mjs"
386
- },
387
383
  "./scheduler-picker": {
388
384
  "types": "./scheduler-picker/index.d.ts",
389
385
  "default": "./fesm2022/acorex-components-scheduler-picker.mjs"
390
386
  },
387
+ "./scss": {
388
+ "types": "./scss/index.d.ts",
389
+ "default": "./fesm2022/acorex-components-scss.mjs"
390
+ },
391
391
  "./search-box": {
392
392
  "types": "./search-box/index.d.ts",
393
393
  "default": "./fesm2022/acorex-components-search-box.mjs"
@@ -440,22 +440,22 @@
440
440
  "types": "./tag-box/index.d.ts",
441
441
  "default": "./fesm2022/acorex-components-tag-box.mjs"
442
442
  },
443
- "./text-box": {
444
- "types": "./text-box/index.d.ts",
445
- "default": "./fesm2022/acorex-components-text-box.mjs"
446
- },
447
443
  "./text-area": {
448
444
  "types": "./text-area/index.d.ts",
449
445
  "default": "./fesm2022/acorex-components-text-area.mjs"
450
446
  },
451
- "./time-line": {
452
- "types": "./time-line/index.d.ts",
453
- "default": "./fesm2022/acorex-components-time-line.mjs"
447
+ "./text-box": {
448
+ "types": "./text-box/index.d.ts",
449
+ "default": "./fesm2022/acorex-components-text-box.mjs"
454
450
  },
455
451
  "./time-duration": {
456
452
  "types": "./time-duration/index.d.ts",
457
453
  "default": "./fesm2022/acorex-components-time-duration.mjs"
458
454
  },
455
+ "./time-line": {
456
+ "types": "./time-line/index.d.ts",
457
+ "default": "./fesm2022/acorex-components-time-line.mjs"
458
+ },
459
459
  "./toast": {
460
460
  "types": "./toast/index.d.ts",
461
461
  "default": "./fesm2022/acorex-components-toast.mjs"
@@ -93,33 +93,13 @@ declare class AXSideMenuItemComponent extends MXInteractiveComponent {
93
93
 
94
94
  type AXSideMenuLook = 'pills' | 'with-line' | 'with-line-color' | 'default';
95
95
  type AXSideMenuLocation = 'start' | 'end';
96
- type AXSideMenuItem = {
97
- title?: string;
98
- routerLink?: string | any[] | UrlTree;
99
- routerLinkActive?: string | string[];
100
- routerLinkActiveOptions?: {
101
- exact: boolean;
102
- } | IsActiveMatchOptions;
103
- href?: string;
104
- target?: '_blank' | '_self' | '_parent' | '_top';
105
- text: string;
106
- active?: boolean;
107
- disabled?: boolean;
108
- isLoading?: boolean;
109
- isCollapsed?: boolean;
110
- icon?: string;
111
- data?: unknown;
112
- suffixText?: string;
113
- toggleOnClick?: boolean;
114
- items?: AXSideMenuItem[];
115
- };
116
96
  /**
117
97
  * @category
118
98
  * A component for displaying a side menu with customizable content.
119
99
  */
120
100
  declare class AXSideMenuComponent extends NXComponent implements AXSideMenuBase {
121
101
  #private;
122
- items: _angular_core.ModelSignal<AXSideMenuItem[]>;
102
+ items: _angular_core.ModelSignal<AXMenuItem[]>;
123
103
  readonly look: _angular_core.InputSignal<AXSideMenuLook>;
124
104
  readonly location: _angular_core.InputSignal<AXSideMenuLocation>;
125
105
  readonly mode: _angular_core.InputSignal<"full" | "compact">;
@@ -190,4 +170,4 @@ declare class AXSideMenuModule {
190
170
  }
191
171
 
192
172
  export { AXOutlineSideMenuDirective, AXSideMenuBase, AXSideMenuComponent, AXSideMenuItemClickEvent, AXSideMenuItemComponent, AXSideMenuModule };
193
- export type { AXSideMenuContextMenuItemData, AXSideMenuItem, AXSideMenuLocation, AXSideMenuLook };
173
+ export type { AXSideMenuContextMenuItemData, AXSideMenuLocation, AXSideMenuLook };
@@ -6,7 +6,7 @@ interface AXStepWizardItem {
6
6
  id: string;
7
7
  title: string;
8
8
  }
9
- type AXStepWizardLook = 'rounded-icon' | 'circular-icon' | 'circular' | 'text-line' | 'arrow-minimal' | 'custom';
9
+ type AXStepWizardLook = 'rounded-icon' | 'circular-icon' | 'circular' | 'text-line' | 'rounded-arrow-minimal' | 'rectangular-arrow-minimal' | 'custom';
10
10
  type AXStepWizardSize = 'ax-sm' | 'ax-md' | 'ax-lg';
11
11
  type AXStepWizardState = 'pending' | 'success' | 'error' | 'warning' | 'clear';
12
12
 
@@ -21,6 +21,7 @@ declare class AXStepWizardItemComponent extends MXBaseComponent {
21
21
  state: _angular_core.ModelSignal<AXStepWizardState>;
22
22
  stepId: _angular_core.WritableSignal<string>;
23
23
  className: _angular_core.Signal<string>;
24
+ isArrowMinimalLook: _angular_core.Signal<boolean>;
24
25
  template: _angular_core.Signal<TemplateRef<unknown>>;
25
26
  set id(v: string);
26
27
  private get __hostClass();