@4sh/ui-kit 0.16.0 → 0.17.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.
- package/README.fr.md +10 -10
- package/README.md +10 -10
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-types.mjs +0 -12
- package/fesm2022/4sh-ui-kit.mjs +3 -15
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/component-api.json +299 -2
- package/mcp/data/text-search-docs.json +149 -9
- package/mcp/data/ui-config.json +378 -1
- package/mcp/index.js +8190 -2876
- package/mcp/package.json +1 -1
- package/package.json +5 -1
- package/styles/component-vars.scss +22 -1
- package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
- package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
- package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
- package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
- package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
- package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
- package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
- package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
- package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
- package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
- package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
- package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
- package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
- package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
- package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
- package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
- package/types/4sh-ui-kit-forms.d.ts +275 -194
- package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
- package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
- package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
- package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
- package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
- package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
- package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
- package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
- package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
- package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
- package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
- package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
- package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
- package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
- package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
- package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
- package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
- package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
- package/types/4sh-ui-kit-motion.d.ts +117 -67
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
- package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
- package/types/4sh-ui-kit-overlay.d.ts +6 -6
- package/types/4sh-ui-kit-ripple.d.ts +99 -74
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
- package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
- package/types/4sh-ui-kit-theming.d.ts +27 -29
- package/types/4sh-ui-kit-types.d.ts +6 -5
- package/types/4sh-ui-kit.d.ts +4 -3
- package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
|
@@ -1,80 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { TemplateRef } from "@angular/core";
|
|
6
|
+
import { QueryParamsHandling } from "@angular/router";
|
|
7
|
+
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
8
|
+
import { UiSubLevel } from "@4sh/ui-kit/types";
|
|
7
9
|
/** Menu density: `small` = compact rendering ("…" action menus). */
|
|
8
|
-
type MenuSize = 'default' | 'small';
|
|
10
|
+
export type MenuSize = 'default' | 'small';
|
|
9
11
|
/**
|
|
10
12
|
* How groups (`items`) render: `inline` = labeled sections / collapsible
|
|
11
13
|
* accordion groups inside the panel; `flyout` = cascading side panels
|
|
12
14
|
* (classic context-menu behavior — every group becomes a flyout).
|
|
13
15
|
*/
|
|
14
|
-
type MenuSubmenuMode = 'inline' | 'flyout';
|
|
16
|
+
export type MenuSubmenuMode = 'inline' | 'flyout';
|
|
15
17
|
/** Payload passed to `command` callbacks and emitted by `itemClick`. */
|
|
16
|
-
interface UiMenuItemCommandEvent {
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
export interface UiMenuItemCommandEvent {
|
|
19
|
+
originalEvent: Event;
|
|
20
|
+
item: UiMenuItem;
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
23
|
* Declarative menu entry. An item is either a separator, a leaf (command /
|
|
22
24
|
* router / external link), or a group (`items`) whose header is a plain
|
|
23
25
|
* label or a collapsible toggle (see `toggleable`).
|
|
24
26
|
*/
|
|
25
|
-
interface UiMenuItem {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
27
|
+
export interface UiMenuItem {
|
|
28
|
+
/** Stable identifier — required to drive the item through `expandedKeys`. */
|
|
29
|
+
id?: string;
|
|
30
|
+
/** Text of the item / group header. */
|
|
31
|
+
label?: string;
|
|
32
|
+
/** Leading FontAwesome icon name. */
|
|
33
|
+
icon?: string;
|
|
34
|
+
/** Child items: turns the entry into a group (labeled section or submenu). */
|
|
35
|
+
items?: UiMenuItem[];
|
|
36
|
+
/** Render a separator rule instead of a regular entry. */
|
|
37
|
+
separator?: boolean;
|
|
38
|
+
/** Disable the entry (skipped by keyboard navigation). */
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/** Hide the entry entirely (default true). */
|
|
41
|
+
visible?: boolean;
|
|
42
|
+
/** Callback invoked when the item is clicked / activated by keyboard. */
|
|
43
|
+
command?: (event: UiMenuItemCommandEvent) => void;
|
|
44
|
+
/** Angular router target — the item renders a RouterLink anchor. */
|
|
45
|
+
routerLink?: string | unknown[];
|
|
46
|
+
/** Router query params (routerLink mode). */
|
|
47
|
+
queryParams?: Record<string, unknown>;
|
|
48
|
+
/** Router queryParamsHandling (routerLink mode). */
|
|
49
|
+
queryParamsHandling?: QueryParamsHandling;
|
|
50
|
+
/** Exact matching for the active-link style (default false). */
|
|
51
|
+
routerLinkActiveExact?: boolean;
|
|
52
|
+
/** External URL — the item renders a plain anchor. */
|
|
53
|
+
url?: string;
|
|
54
|
+
/** Anchor target (e.g. `_blank`). */
|
|
55
|
+
target?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Collapsible group header. Defaults to `true` for nested groups and
|
|
58
|
+
* `false` for top-level groups (plain section headers); set it to
|
|
59
|
+
* override either way. Ignored on non-group items.
|
|
60
|
+
*/
|
|
61
|
+
toggleable?: boolean;
|
|
62
|
+
/** Initial expanded state of a toggleable group (`expandedKeys` wins). */
|
|
63
|
+
expanded?: boolean;
|
|
64
|
+
/** Native tooltip (`title` attribute). */
|
|
65
|
+
title?: string;
|
|
66
|
+
/** Accessible name override. */
|
|
67
|
+
ariaLabel?: string;
|
|
68
|
+
/** Extra class on the item's `<li>`. */
|
|
69
|
+
styleClass?: string;
|
|
68
70
|
}
|
|
69
71
|
/** @ignore Resolved render node (item + derived kind/key/children). */
|
|
70
72
|
interface UiMenuNode {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
item: UiMenuItem;
|
|
74
|
+
/** `item.id`, or a generated positional key. */
|
|
75
|
+
key: string;
|
|
76
|
+
kind: 'separator' | 'header' | 'toggle' | 'flyout' | 'item';
|
|
77
|
+
children: UiMenuNode[];
|
|
78
|
+
expanded: boolean;
|
|
79
|
+
depth: number;
|
|
78
80
|
}
|
|
79
81
|
/**
|
|
80
82
|
* ui-menu — headless navigation / command menu, static or popup.
|
|
@@ -94,144 +96,223 @@ interface UiMenuNode {
|
|
|
94
96
|
* Customisation: `#item` template (menuitem content, `$implicit` = item),
|
|
95
97
|
* `#submenuheader` (group headers), `#start` / `#end` slots around the list.
|
|
96
98
|
*/
|
|
97
|
-
declare class UiMenu {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
99
|
+
export declare class UiMenu {
|
|
100
|
+
/** Menu entries (see {@link UiMenuItem}). */
|
|
101
|
+
items: import("@angular/core").InputSignal<UiMenuItem[]>;
|
|
102
|
+
/** Popup mode: the panel opens in an overlay via `toggle(event)` / `show(event)`. */
|
|
103
|
+
popup: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
104
|
+
/**
|
|
105
|
+
* Open/closed state of the toggleable groups, keyed by item `id`
|
|
106
|
+
* (`{ [id]: boolean }`). Two-way bindable; a key absent from the map
|
|
107
|
+
* falls back to the item's own `expanded`, then to closed.
|
|
108
|
+
*/
|
|
109
|
+
expandedKeys: import("@angular/core").ModelSignal<Record<string, boolean>>;
|
|
110
|
+
/** Accessible name of the menu list. */
|
|
111
|
+
ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
112
|
+
/** id of an external element labelling the menu list. */
|
|
113
|
+
ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
114
|
+
/** Extra class(es) applied to the panel (scoped custom styling). */
|
|
115
|
+
styleClass: import("@angular/core").InputSignal<string | undefined>;
|
|
116
|
+
/** Color family: `high` (default) or `low` navigation tokens. */
|
|
117
|
+
level: import("@angular/core").InputSignal<UiSubLevel>;
|
|
118
|
+
/** Density: `default`, or `small` for compact action menus ("…" buttons). */
|
|
119
|
+
size: import("@angular/core").InputSignal<MenuSize>;
|
|
120
|
+
/** Group rendering: `inline` sections/accordions (default) or `flyout` cascading side panels. */
|
|
121
|
+
submenus: import("@angular/core").InputSignal<MenuSubmenuMode>;
|
|
122
|
+
/** Animate the popup entrance and the submenu collapse (reduced-motion always wins). */
|
|
123
|
+
motion: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
124
|
+
/** Ripple Effect */
|
|
125
|
+
ripple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
126
|
+
/** Auto-flip the popup above the trigger when space is lacking below. */
|
|
127
|
+
autoFlip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
128
|
+
/** Tabindex of the menu's roving tab stop. */
|
|
129
|
+
tabindex: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
130
|
+
/** Emitted when the popup opens. */
|
|
131
|
+
opened: import("@angular/core").OutputEmitterRef<void>;
|
|
132
|
+
/** Emitted when the popup closes. */
|
|
133
|
+
closed: import("@angular/core").OutputEmitterRef<void>;
|
|
134
|
+
/** Emitted when a leaf item is clicked / keyboard-activated (never when disabled). */
|
|
135
|
+
itemClick: import("@angular/core").OutputEmitterRef<UiMenuItemCommandEvent>;
|
|
136
|
+
/** Menuitem content template, provided programmatically (embedding components like ui-context-menu). */
|
|
137
|
+
itemTemplate: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
|
|
138
|
+
/** Group-header content template, provided programmatically (embedding components). */
|
|
139
|
+
submenuHeaderTemplate: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
|
|
140
|
+
/** Custom menuitem content: `<ng-template #item let-item>`. */
|
|
141
|
+
private readonly itemTemplateContent;
|
|
142
|
+
/** Custom group-header content: `<ng-template #submenuheader let-item>`. */
|
|
143
|
+
private readonly submenuHeaderTemplateContent;
|
|
144
|
+
/** @ignore Input wins over the projected `#item` template. */
|
|
145
|
+
protected readonly resolvedItemTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
146
|
+
/** @ignore Input wins over the projected `#submenuheader` template. */
|
|
147
|
+
protected readonly resolvedSubmenuHeaderTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
148
|
+
/** Free content rendered before the list. */
|
|
149
|
+
protected readonly startTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
150
|
+
/** Free content rendered after the list. */
|
|
151
|
+
protected readonly endTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
152
|
+
/** @ignore Panel root (overlay or inline) — keyboard focus queries. */
|
|
153
|
+
private readonly panelEl;
|
|
154
|
+
/** Unique id of the panel (public: wire the trigger's `aria-controls` to it). */
|
|
155
|
+
readonly uid: string;
|
|
156
|
+
/** @ignore Popup open state. */
|
|
157
|
+
protected readonly popupOpen: import("@angular/core").WritableSignal<boolean>;
|
|
158
|
+
/** @ignore Element the overlay is anchored to (the `toggle(event)` trigger). */
|
|
159
|
+
protected readonly overlayOrigin: import("@angular/core").WritableSignal<Element | null>;
|
|
160
|
+
/** @ignore Key of the node owning the roving tabindex. */
|
|
161
|
+
protected readonly focusedKey: import("@angular/core").WritableSignal<string | null>;
|
|
162
|
+
/** @ignore Key of the open flyout submenu (one per level; children have their own). */
|
|
163
|
+
protected readonly openFlyoutKey: import("@angular/core").WritableSignal<string | null>;
|
|
164
|
+
/** @ignore Nested flyout menus rendered by this instance (matched by `items` reference). */
|
|
165
|
+
private readonly childMenus;
|
|
166
|
+
/** @ignore All connected overlays of this instance (popup + flyouts). */
|
|
167
|
+
private readonly connectedOverlays;
|
|
168
|
+
/** @ignore */
|
|
169
|
+
private readonly doc;
|
|
170
|
+
constructor();
|
|
171
|
+
/** @ignore Below the trigger, flipping above when `autoFlip` and space is lacking. */
|
|
172
|
+
protected readonly overlayPositions: import("@angular/core").Signal<ConnectedPosition[]>;
|
|
173
|
+
/** @ignore Flyout panel beside its parent item: right-start first, then flips.
|
|
174
|
+
* The vertical offset aligns the child's first item with the parent item. */
|
|
175
|
+
protected readonly flyoutPositions: ConnectedPosition[];
|
|
176
|
+
/** @ignore Resolved render tree (kinds, keys, expanded state). */
|
|
177
|
+
protected readonly nodes: import("@angular/core").Signal<UiMenuNode[]>;
|
|
178
|
+
/** @ignore Keys of the focusable entries, in visual order (roving focus path). */
|
|
179
|
+
private readonly focusableKeys;
|
|
180
|
+
/** @ignore Node owning the tab stop: last focused, else first focusable. */
|
|
181
|
+
protected readonly tabStopKey: import("@angular/core").Signal<string | null>;
|
|
182
|
+
/** @ignore */
|
|
183
|
+
protected readonly panelClasses: import("@angular/core").Signal<string>;
|
|
184
|
+
/** Toggles the popup relative to the event's `currentTarget`. */
|
|
185
|
+
toggle(event: Event): void;
|
|
186
|
+
/** Opens the popup anchored to the event's `currentTarget`. */
|
|
187
|
+
show(event: Event): void;
|
|
188
|
+
/** Moves focus onto the menu's roving tab stop (first focusable entry). */
|
|
189
|
+
focusFirst(): void;
|
|
190
|
+
/** Closes the popup. */
|
|
191
|
+
hide(focusTrigger?: boolean): void;
|
|
192
|
+
/** Closes any open flyout submenu (recursively, children detach with their parent). */
|
|
193
|
+
closeFlyouts(): void;
|
|
194
|
+
/** @ignore Leaf activation: command + itemClick, popup auto-close. */
|
|
195
|
+
protected onItemClick(event: Event, node: UiMenuNode): void;
|
|
196
|
+
/** @ignore Click on a flyout parent item: open its side panel (never toggle, hover already opened it). */
|
|
197
|
+
protected onFlyoutClick(node: UiMenuNode): void;
|
|
198
|
+
/** @ignore Hovering an entry: open its flyout, or close the sibling one. */
|
|
199
|
+
protected onEntryHover(node: UiMenuNode): void;
|
|
200
|
+
/** @ignore `ArrowLeft`/`Escape` inside a flyout panel: close it, focus its parent item. */
|
|
201
|
+
protected onFlyoutPanelKeydown(event: KeyboardEvent, node: UiMenuNode): void;
|
|
202
|
+
/** @ignore Activation bubbling up from a flyout submenu: re-emit and close. */
|
|
203
|
+
protected onChildItemClick(event: UiMenuItemCommandEvent): void;
|
|
204
|
+
/** @ignore Open a flyout and move focus onto its first entry. The overlay
|
|
205
|
+
* attaches after change detection: retry over macrotasks (NOT rAF — it
|
|
206
|
+
* never fires in throttled/background tabs). */
|
|
207
|
+
private openFlyoutAndFocus;
|
|
208
|
+
/** @ignore Expand/collapse a toggleable group (updates `expandedKeys`). */
|
|
209
|
+
protected onToggleClick(node: UiMenuNode): void;
|
|
210
|
+
/** @ignore */
|
|
211
|
+
private setExpanded;
|
|
212
|
+
/** @ignore Roving keyboard navigation (WAI-ARIA menu pattern). */
|
|
213
|
+
protected onListKeydown(event: KeyboardEvent): void;
|
|
214
|
+
/** @ignore */
|
|
215
|
+
protected onEntryFocus(node: UiMenuNode): void;
|
|
216
|
+
/** @ignore Popup outside interaction: ignore events landing in ANY overlay
|
|
217
|
+
* (our flyout side panels are separate overlay elements). */
|
|
218
|
+
protected onPopupOutsideClick(event: MouseEvent): void;
|
|
219
|
+
/** @ignore id of a header label (aria-labelledby of its group). */
|
|
220
|
+
protected headerId(node: UiMenuNode): string;
|
|
221
|
+
/** @ignore id of a collapsible group (aria-controls of its toggle). */
|
|
222
|
+
protected groupId(node: UiMenuNode): string;
|
|
223
|
+
/** @ignore */
|
|
224
|
+
private buildNodes;
|
|
225
|
+
/** @ignore */
|
|
226
|
+
private findNode;
|
|
227
|
+
/** @ignore Key of the entry currently holding DOM focus. */
|
|
228
|
+
private currentFocusKey;
|
|
229
|
+
/** @ignore Move DOM focus (and the tab stop) to the entry with the given key. */
|
|
230
|
+
private focusByKey;
|
|
231
|
+
/** @ignore Focus the roving tab stop once the panel is rendered
|
|
232
|
+
* (macrotask, not rAF: rAF never fires in throttled/background tabs). */
|
|
233
|
+
private queueFocusTabStop;
|
|
234
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiMenu, never>;
|
|
235
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiMenu, "ui-menu", never, {
|
|
236
|
+
"items": {
|
|
237
|
+
"alias": "items";
|
|
238
|
+
"required": false;
|
|
239
|
+
"isSignal": true;
|
|
240
|
+
};
|
|
241
|
+
"popup": {
|
|
242
|
+
"alias": "popup";
|
|
243
|
+
"required": false;
|
|
244
|
+
"isSignal": true;
|
|
245
|
+
};
|
|
246
|
+
"expandedKeys": {
|
|
247
|
+
"alias": "expandedKeys";
|
|
248
|
+
"required": false;
|
|
249
|
+
"isSignal": true;
|
|
250
|
+
};
|
|
251
|
+
"ariaLabel": {
|
|
252
|
+
"alias": "ariaLabel";
|
|
253
|
+
"required": false;
|
|
254
|
+
"isSignal": true;
|
|
255
|
+
};
|
|
256
|
+
"ariaLabelledBy": {
|
|
257
|
+
"alias": "ariaLabelledBy";
|
|
258
|
+
"required": false;
|
|
259
|
+
"isSignal": true;
|
|
260
|
+
};
|
|
261
|
+
"styleClass": {
|
|
262
|
+
"alias": "styleClass";
|
|
263
|
+
"required": false;
|
|
264
|
+
"isSignal": true;
|
|
265
|
+
};
|
|
266
|
+
"level": {
|
|
267
|
+
"alias": "level";
|
|
268
|
+
"required": false;
|
|
269
|
+
"isSignal": true;
|
|
270
|
+
};
|
|
271
|
+
"size": {
|
|
272
|
+
"alias": "size";
|
|
273
|
+
"required": false;
|
|
274
|
+
"isSignal": true;
|
|
275
|
+
};
|
|
276
|
+
"submenus": {
|
|
277
|
+
"alias": "submenus";
|
|
278
|
+
"required": false;
|
|
279
|
+
"isSignal": true;
|
|
280
|
+
};
|
|
281
|
+
"motion": {
|
|
282
|
+
"alias": "motion";
|
|
283
|
+
"required": false;
|
|
284
|
+
"isSignal": true;
|
|
285
|
+
};
|
|
286
|
+
"ripple": {
|
|
287
|
+
"alias": "ripple";
|
|
288
|
+
"required": false;
|
|
289
|
+
"isSignal": true;
|
|
290
|
+
};
|
|
291
|
+
"autoFlip": {
|
|
292
|
+
"alias": "autoFlip";
|
|
293
|
+
"required": false;
|
|
294
|
+
"isSignal": true;
|
|
295
|
+
};
|
|
296
|
+
"tabindex": {
|
|
297
|
+
"alias": "tabindex";
|
|
298
|
+
"required": false;
|
|
299
|
+
"isSignal": true;
|
|
300
|
+
};
|
|
301
|
+
"itemTemplate": {
|
|
302
|
+
"alias": "itemTemplate";
|
|
303
|
+
"required": false;
|
|
304
|
+
"isSignal": true;
|
|
305
|
+
};
|
|
306
|
+
"submenuHeaderTemplate": {
|
|
307
|
+
"alias": "submenuHeaderTemplate";
|
|
308
|
+
"required": false;
|
|
309
|
+
"isSignal": true;
|
|
310
|
+
};
|
|
311
|
+
}, {
|
|
312
|
+
"expandedKeys": "expandedKeysChange";
|
|
313
|
+
"opened": "opened";
|
|
314
|
+
"closed": "closed";
|
|
315
|
+
"itemClick": "itemClick";
|
|
316
|
+
}, ["itemTemplateContent", "submenuHeaderTemplateContent", "startTemplate", "endTemplate"], never, true, never>;
|
|
234
317
|
}
|
|
235
|
-
|
|
236
|
-
export { UiMenu };
|
|
237
|
-
export type { MenuSize, MenuSubmenuMode, UiMenuItem, UiMenuItemCommandEvent };
|
|
318
|
+
export {};
|