@acorex/components 20.7.29 → 20.7.30
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/fesm2022/acorex-components-menu.mjs +39 -17
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +2 -2
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/menu/index.d.ts +31 -6
- package/package.json +50 -50
- package/side-menu/index.d.ts +2 -22
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
|
-
|
|
20
|
-
|
|
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
|
-
|
|
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,
|
|
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.
|
|
3
|
+
"version": "20.7.30",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/core": "20.7.
|
|
6
|
-
"@acorex/cdk": "20.7.
|
|
5
|
+
"@acorex/core": "20.7.30",
|
|
6
|
+
"@acorex/cdk": "20.7.30",
|
|
7
7
|
"polytype": ">=0.17.0",
|
|
8
8
|
"angular-imask": ">=7.6.1",
|
|
9
9
|
"gridstack": ">=12.0.0",
|
|
@@ -92,10 +92,6 @@
|
|
|
92
92
|
"types": "./bottom-navigation/index.d.ts",
|
|
93
93
|
"default": "./fesm2022/acorex-components-bottom-navigation.mjs"
|
|
94
94
|
},
|
|
95
|
-
"./breadcrumbs": {
|
|
96
|
-
"types": "./breadcrumbs/index.d.ts",
|
|
97
|
-
"default": "./fesm2022/acorex-components-breadcrumbs.mjs"
|
|
98
|
-
},
|
|
99
95
|
"./button": {
|
|
100
96
|
"types": "./button/index.d.ts",
|
|
101
97
|
"default": "./fesm2022/acorex-components-button.mjs"
|
|
@@ -104,10 +100,6 @@
|
|
|
104
100
|
"types": "./button-group/index.d.ts",
|
|
105
101
|
"default": "./fesm2022/acorex-components-button-group.mjs"
|
|
106
102
|
},
|
|
107
|
-
"./calendar": {
|
|
108
|
-
"types": "./calendar/index.d.ts",
|
|
109
|
-
"default": "./fesm2022/acorex-components-calendar.mjs"
|
|
110
|
-
},
|
|
111
103
|
"./check-box": {
|
|
112
104
|
"types": "./check-box/index.d.ts",
|
|
113
105
|
"default": "./fesm2022/acorex-components-check-box.mjs"
|
|
@@ -128,10 +120,18 @@
|
|
|
128
120
|
"types": "./collapse/index.d.ts",
|
|
129
121
|
"default": "./fesm2022/acorex-components-collapse.mjs"
|
|
130
122
|
},
|
|
123
|
+
"./calendar": {
|
|
124
|
+
"types": "./calendar/index.d.ts",
|
|
125
|
+
"default": "./fesm2022/acorex-components-calendar.mjs"
|
|
126
|
+
},
|
|
131
127
|
"./color-box": {
|
|
132
128
|
"types": "./color-box/index.d.ts",
|
|
133
129
|
"default": "./fesm2022/acorex-components-color-box.mjs"
|
|
134
130
|
},
|
|
131
|
+
"./breadcrumbs": {
|
|
132
|
+
"types": "./breadcrumbs/index.d.ts",
|
|
133
|
+
"default": "./fesm2022/acorex-components-breadcrumbs.mjs"
|
|
134
|
+
},
|
|
135
135
|
"./color-palette": {
|
|
136
136
|
"types": "./color-palette/index.d.ts",
|
|
137
137
|
"default": "./fesm2022/acorex-components-color-palette.mjs"
|
|
@@ -144,42 +144,38 @@
|
|
|
144
144
|
"types": "./comment/index.d.ts",
|
|
145
145
|
"default": "./fesm2022/acorex-components-comment.mjs"
|
|
146
146
|
},
|
|
147
|
-
"./conversation": {
|
|
148
|
-
"types": "./conversation/index.d.ts",
|
|
149
|
-
"default": "./fesm2022/acorex-components-conversation.mjs"
|
|
150
|
-
},
|
|
151
147
|
"./conversation2": {
|
|
152
148
|
"types": "./conversation2/index.d.ts",
|
|
153
149
|
"default": "./fesm2022/acorex-components-conversation2.mjs"
|
|
154
150
|
},
|
|
151
|
+
"./conversation": {
|
|
152
|
+
"types": "./conversation/index.d.ts",
|
|
153
|
+
"default": "./fesm2022/acorex-components-conversation.mjs"
|
|
154
|
+
},
|
|
155
155
|
"./cron-job": {
|
|
156
156
|
"types": "./cron-job/index.d.ts",
|
|
157
157
|
"default": "./fesm2022/acorex-components-cron-job.mjs"
|
|
158
158
|
},
|
|
159
|
-
"./data-list": {
|
|
160
|
-
"types": "./data-list/index.d.ts",
|
|
161
|
-
"default": "./fesm2022/acorex-components-data-list.mjs"
|
|
162
|
-
},
|
|
163
159
|
"./data-pager": {
|
|
164
160
|
"types": "./data-pager/index.d.ts",
|
|
165
161
|
"default": "./fesm2022/acorex-components-data-pager.mjs"
|
|
166
162
|
},
|
|
167
|
-
"./datetime-box": {
|
|
168
|
-
"types": "./datetime-box/index.d.ts",
|
|
169
|
-
"default": "./fesm2022/acorex-components-datetime-box.mjs"
|
|
170
|
-
},
|
|
171
163
|
"./data-table": {
|
|
172
164
|
"types": "./data-table/index.d.ts",
|
|
173
165
|
"default": "./fesm2022/acorex-components-data-table.mjs"
|
|
174
166
|
},
|
|
167
|
+
"./data-list": {
|
|
168
|
+
"types": "./data-list/index.d.ts",
|
|
169
|
+
"default": "./fesm2022/acorex-components-data-list.mjs"
|
|
170
|
+
},
|
|
171
|
+
"./datetime-box": {
|
|
172
|
+
"types": "./datetime-box/index.d.ts",
|
|
173
|
+
"default": "./fesm2022/acorex-components-datetime-box.mjs"
|
|
174
|
+
},
|
|
175
175
|
"./datetime-input": {
|
|
176
176
|
"types": "./datetime-input/index.d.ts",
|
|
177
177
|
"default": "./fesm2022/acorex-components-datetime-input.mjs"
|
|
178
178
|
},
|
|
179
|
-
"./datetime-picker": {
|
|
180
|
-
"types": "./datetime-picker/index.d.ts",
|
|
181
|
-
"default": "./fesm2022/acorex-components-datetime-picker.mjs"
|
|
182
|
-
},
|
|
183
179
|
"./decorators": {
|
|
184
180
|
"types": "./decorators/index.d.ts",
|
|
185
181
|
"default": "./fesm2022/acorex-components-decorators.mjs"
|
|
@@ -188,6 +184,10 @@
|
|
|
188
184
|
"types": "./dialog/index.d.ts",
|
|
189
185
|
"default": "./fesm2022/acorex-components-dialog.mjs"
|
|
190
186
|
},
|
|
187
|
+
"./datetime-picker": {
|
|
188
|
+
"types": "./datetime-picker/index.d.ts",
|
|
189
|
+
"default": "./fesm2022/acorex-components-datetime-picker.mjs"
|
|
190
|
+
},
|
|
191
191
|
"./drawer": {
|
|
192
192
|
"types": "./drawer/index.d.ts",
|
|
193
193
|
"default": "./fesm2022/acorex-components-drawer.mjs"
|
|
@@ -332,14 +332,14 @@
|
|
|
332
332
|
"types": "./popup/index.d.ts",
|
|
333
333
|
"default": "./fesm2022/acorex-components-popup.mjs"
|
|
334
334
|
},
|
|
335
|
-
"./progress-bar": {
|
|
336
|
-
"types": "./progress-bar/index.d.ts",
|
|
337
|
-
"default": "./fesm2022/acorex-components-progress-bar.mjs"
|
|
338
|
-
},
|
|
339
335
|
"./qrcode": {
|
|
340
336
|
"types": "./qrcode/index.d.ts",
|
|
341
337
|
"default": "./fesm2022/acorex-components-qrcode.mjs"
|
|
342
338
|
},
|
|
339
|
+
"./progress-bar": {
|
|
340
|
+
"types": "./progress-bar/index.d.ts",
|
|
341
|
+
"default": "./fesm2022/acorex-components-progress-bar.mjs"
|
|
342
|
+
},
|
|
343
343
|
"./query-builder": {
|
|
344
344
|
"types": "./query-builder/index.d.ts",
|
|
345
345
|
"default": "./fesm2022/acorex-components-query-builder.mjs"
|
|
@@ -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"
|
|
@@ -376,6 +376,10 @@
|
|
|
376
376
|
"types": "./rrule/index.d.ts",
|
|
377
377
|
"default": "./fesm2022/acorex-components-rrule.mjs"
|
|
378
378
|
},
|
|
379
|
+
"./scheduler-picker": {
|
|
380
|
+
"types": "./scheduler-picker/index.d.ts",
|
|
381
|
+
"default": "./fesm2022/acorex-components-scheduler-picker.mjs"
|
|
382
|
+
},
|
|
379
383
|
"./scheduler": {
|
|
380
384
|
"types": "./scheduler/index.d.ts",
|
|
381
385
|
"default": "./fesm2022/acorex-components-scheduler.mjs"
|
|
@@ -384,10 +388,6 @@
|
|
|
384
388
|
"types": "./scss/index.d.ts",
|
|
385
389
|
"default": "./fesm2022/acorex-components-scss.mjs"
|
|
386
390
|
},
|
|
387
|
-
"./scheduler-picker": {
|
|
388
|
-
"types": "./scheduler-picker/index.d.ts",
|
|
389
|
-
"default": "./fesm2022/acorex-components-scheduler-picker.mjs"
|
|
390
|
-
},
|
|
391
391
|
"./search-box": {
|
|
392
392
|
"types": "./search-box/index.d.ts",
|
|
393
393
|
"default": "./fesm2022/acorex-components-search-box.mjs"
|
|
@@ -440,17 +440,13 @@
|
|
|
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
|
-
"./
|
|
452
|
-
"types": "./
|
|
453
|
-
"default": "./fesm2022/acorex-components-
|
|
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",
|
|
@@ -476,6 +472,14 @@
|
|
|
476
472
|
"types": "./tree-view-legacy/index.d.ts",
|
|
477
473
|
"default": "./fesm2022/acorex-components-tree-view-legacy.mjs"
|
|
478
474
|
},
|
|
475
|
+
"./time-line": {
|
|
476
|
+
"types": "./time-line/index.d.ts",
|
|
477
|
+
"default": "./fesm2022/acorex-components-time-line.mjs"
|
|
478
|
+
},
|
|
479
|
+
"./wysiwyg": {
|
|
480
|
+
"types": "./wysiwyg/index.d.ts",
|
|
481
|
+
"default": "./fesm2022/acorex-components-wysiwyg.mjs"
|
|
482
|
+
},
|
|
479
483
|
"./uploader": {
|
|
480
484
|
"types": "./uploader/index.d.ts",
|
|
481
485
|
"default": "./fesm2022/acorex-components-uploader.mjs"
|
|
@@ -483,10 +487,6 @@
|
|
|
483
487
|
"./video-player": {
|
|
484
488
|
"types": "./video-player/index.d.ts",
|
|
485
489
|
"default": "./fesm2022/acorex-components-video-player.mjs"
|
|
486
|
-
},
|
|
487
|
-
"./wysiwyg": {
|
|
488
|
-
"types": "./wysiwyg/index.d.ts",
|
|
489
|
-
"default": "./fesm2022/acorex-components-wysiwyg.mjs"
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
}
|
package/side-menu/index.d.ts
CHANGED
|
@@ -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<
|
|
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,
|
|
173
|
+
export type { AXSideMenuContextMenuItemData, AXSideMenuLocation, AXSideMenuLook };
|