@4sh/ui-kit 0.16.0 → 0.17.1
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,551 +1,913 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { DOCUMENT, NgTemplateOutlet } from
|
|
4
|
-
import { RouterLink, RouterLinkActive } from
|
|
5
|
-
import * as i1 from
|
|
6
|
-
import { CdkConnectedOverlay, OverlayModule } from
|
|
7
|
-
import { UiIcon } from
|
|
8
|
-
import { UiMotion } from
|
|
9
|
-
import { closeOnNavigation } from
|
|
10
|
-
import { UiSeparator } from
|
|
11
|
-
|
|
12
|
-
/** Process-wide counter for unique menu ids (aria wiring). */
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, booleanAttribute, computed, contentChild, effect, inject, input, model, numberAttribute, output, signal, viewChild, viewChildren } from "@angular/core";
|
|
3
|
+
import { DOCUMENT, NgTemplateOutlet } from "@angular/common";
|
|
4
|
+
import { RouterLink, RouterLinkActive } from "@angular/router";
|
|
5
|
+
import * as i1 from "@angular/cdk/overlay";
|
|
6
|
+
import { CdkConnectedOverlay, OverlayModule } from "@angular/cdk/overlay";
|
|
7
|
+
import { UiIcon } from "@4sh/ui-kit/base/ui-icon";
|
|
8
|
+
import { UiMotion } from "@4sh/ui-kit/motion";
|
|
9
|
+
import { closeOnNavigation } from "@4sh/ui-kit/overlay";
|
|
10
|
+
import { UiSeparator } from "@4sh/ui-kit/informative/ui-separator";
|
|
13
11
|
let nextUid = 0;
|
|
14
|
-
/** Trigger ↔ panel gap — keep aligned with `$overlay-panel-offset` (ui-config). */
|
|
15
12
|
const OVERLAY_OFFSET = 8;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiMenu, isStandalone: true, selector: "ui-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: true, isRequired: false, transformFunction: null }, expandedKeys: { classPropertyName: "expandedKeys", publicName: "expandedKeys", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, submenus: { classPropertyName: "submenus", publicName: "submenus", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, submenuHeaderTemplate: { classPropertyName: "submenuHeaderTemplate", publicName: "submenuHeaderTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandedKeys: "expandedKeysChange", opened: "opened", closed: "closed", itemClick: "itemClick" }, host: { properties: { "style.display": "popup() ? 'contents' : 'block'" } }, queries: [{ propertyName: "itemTemplateContent", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "submenuHeaderTemplateContent", first: true, predicate: ["submenuheader"], descendants: true, isSignal: true }, { propertyName: "startTemplate", first: true, predicate: ["start"], descendants: true, isSignal: true }, { propertyName: "endTemplate", first: true, predicate: ["end"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "childMenus", predicate: UiMenu, descendants: true, isSignal: true }, { propertyName: "connectedOverlays", predicate: CdkConnectedOverlay, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Menu panel: shared between inline render and the CDK overlay popup. -->\n<ng-template #panelTpl>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"uid\"\n [uiMotion]=\"'slide-down'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n [motionOnInsert]=\"popup()\"\n >\n @if (startTemplate(); as tpl) {\n <div class=\"ui-menu-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container, focus\n lives on the items (roving tabindex). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <ul\n class=\"ui-menu-list\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"nodesTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: nodes() }\"\n />\n </ul>\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-menu-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Recursive node list (separator | header section | toggleable group | leaf item). -->\n<ng-template #nodesTpl let-nodes>\n @for (node of nodes; track node.key) {\n @switch (node.kind) {\n @case ('separator') {\n <li class=\"ui-menu-separator\" role=\"separator\" aria-hidden=\"true\">\n <ui-separator></ui-separator>\n </li>\n }\n\n @case ('header') {\n <li class=\"ui-menu-section\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <span class=\"ui-menu-header\" [attr.id]=\"headerId(node)\">\n @if (resolvedSubmenuHeaderTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n </span>\n <ul class=\"ui-menu-group\" role=\"group\" [attr.aria-labelledby]=\"headerId(node)\">\n <ng-container\n [ngTemplateOutlet]=\"nodesTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.children }\"\n />\n </ul>\n </li>\n }\n\n @case ('toggle') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <button\n type=\"button\"\n class=\"ui-menu-action _toggle\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [attr.aria-expanded]=\"node.expanded\"\n [attr.aria-controls]=\"groupId(node)\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onToggleClick(node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n @if (resolvedSubmenuHeaderTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n <!-- `_open`, not `_expanded`: a global helper class `._expanded` (width:100%) exists. -->\n <ui-icon\n class=\"ui-menu-chevron\"\n [class._open]=\"node.expanded\"\n name=\"chevron-down\"\n size=\"sm\"\n />\n </button>\n <div\n class=\"ui-menu-collapse\"\n [class._open]=\"node.expanded\"\n [attr.id]=\"groupId(node)\"\n [attr.inert]=\"node.expanded ? null : ''\"\n >\n <div class=\"ui-menu-collapse-inner\">\n <ul class=\"ui-menu-group _nested\" role=\"group\">\n <ng-container\n [ngTemplateOutlet]=\"nodesTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.children }\"\n />\n </ul>\n </div>\n </div>\n </li>\n }\n\n @case ('flyout') {\n <li\n class=\"ui-menu-entry\"\n role=\"none\"\n [class]=\"node.item.styleClass ?? ''\"\n cdkOverlayOrigin\n #flyoutOrigin=\"cdkOverlayOrigin\"\n >\n <button\n type=\"button\"\n class=\"ui-menu-action _has-sub\"\n [class._sub-open]=\"openFlyoutKey() === node.key\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n aria-haspopup=\"menu\"\n [attr.data-key]=\"node.key\"\n [attr.aria-expanded]=\"openFlyoutKey() === node.key\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onFlyoutClick(node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n @if (resolvedItemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n <ui-icon class=\"ui-menu-chevron\" name=\"chevron-right\" size=\"sm\" />\n </button>\n\n <!-- Cascading side panel: a nested menu in its own overlay, anchored to the item. -->\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"flyoutOrigin\"\n [cdkConnectedOverlayOpen]=\"openFlyoutKey() === node.key\"\n [cdkConnectedOverlayPositions]=\"flyoutPositions\"\n >\n <!-- Flyout: keyboard delegated to the panel, focus lives on the items. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-menu-flyout\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #flyoutMotion=\"uiMotion\"\n motionOnInsert\n (keydown)=\"onFlyoutPanelKeydown($event, node)\"\n >\n <ui-menu\n [items]=\"node.item.items ?? []\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n submenus=\"flyout\"\n styleClass=\"_floating\"\n [itemTemplate]=\"resolvedItemTemplate()\"\n [submenuHeaderTemplate]=\"resolvedSubmenuHeaderTemplate()\"\n [ariaLabel]=\"node.item.label\"\n (itemClick)=\"onChildItemClick($event)\"\n />\n </div>\n </ng-template>\n </li>\n }\n\n @case ('item') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <!-- Shared menuitem content (icon + label, or the #item template). -->\n <ng-template #content>\n @if (resolvedItemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n </ng-template>\n\n @if (node.item.routerLink !== undefined && !node.item.disabled) {\n <a\n class=\"ui-menu-action\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [routerLink]=\"node.item.routerLink\"\n [queryParams]=\"node.item.queryParams ?? null\"\n [queryParamsHandling]=\"node.item.queryParamsHandling ?? null\"\n routerLinkActive=\"_active\"\n [routerLinkActiveOptions]=\"{ exact: node.item.routerLinkActiveExact ?? false }\"\n [attr.target]=\"node.item.target || null\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n } @else if (node.item.url && !node.item.disabled) {\n <a\n class=\"ui-menu-action\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [attr.href]=\"node.item.url\"\n [attr.target]=\"node.item.target || null\"\n [attr.rel]=\"node.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"ui-menu-action\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n }\n </li>\n }\n }\n }\n</ng-template>\n\n@if (popup()) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"popupOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"hide()\"\n (overlayOutsideClick)=\"onPopupOutsideClick($event)\"\n (detach)=\"hide()\"\n >\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n </ng-template>\n} @else {\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n}\n", styles: [".ui-menu{display:flex;flex-direction:column;gap:var(--units-2xs);padding:var(--ui-menu-panel-padding, var(--ui-overlay-panel-padding, var(--units-sm)));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, transparent);border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-menu-panel-surface, var(--global-background-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));border:none;min-width:var(--ui-menu-min-width, 13.125rem)}.ui-menu .ui-menu-action{min-height:var(--ui-menu-item-height, 2.5rem);padding:0 var(--ui-menu-item-padding-x, var(--units-md));font-size:var(--ui-menu-font-size, var(--size-typography-text-default))}.ui-menu .ui-menu-header{min-height:var(--ui-menu-header-height, 2rem);padding:0 var(--ui-menu-item-padding-x, var(--units-md));font-size:var(--ui-menu-header-font-size, var(--size-typography-text-md))}.ui-menu._popup,.ui-menu._floating{width:max-content;max-width:calc(100vw - var(--units-lg));max-height:calc(100vh - var(--units-lg));overflow:auto}.ui-menu-list,.ui-menu-group{display:flex;flex-direction:column;gap:var(--units-2xs);margin:0;padding:0;list-style:none}.ui-menu-group._nested{padding-left:var(--ui-menu-group-indent, var(--units-default))}.ui-menu-section,.ui-menu-entry{display:flex;flex-direction:column;gap:var(--units-2xs)}.ui-menu._small{min-width:var(--ui-menu-min-width-small, 10rem)}.ui-menu._small .ui-menu-action{min-height:var(--ui-menu-item-height-small, 2rem);padding:0 var(--ui-menu-item-padding-x-small, var(--units-sm));font-size:var(--ui-menu-font-size-small, var(--size-typography-text-md))}.ui-menu._small .ui-menu-header{min-height:var(--ui-menu-header-height-small, 1.5rem);padding:0 var(--ui-menu-item-padding-x-small, var(--units-sm));font-size:var(--ui-menu-header-font-size-small, var(--size-typography-text-sm))}.ui-menu-header{display:flex;align-items:center;gap:var(--units-sm);font-weight:var(--ui-menu-header-weight, var(--weight-bold));-webkit-user-select:none;user-select:none}.ui-menu-action{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;width:100%;border:none;border-radius:var(--ui-menu-item-radius, var(--radius-sm));background:none;font-family:var(--ui-menu-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);font-weight:var(--ui-menu-action-weight, var(--weight-regular));line-height:1.2;text-align:left;text-decoration:none;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-menu-action:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--ui-menu-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-menu-action-focus-ring-color, var(--global-border-focus))}.ui-menu-action:disabled{cursor:not-allowed}.ui-menu-item-icon,.ui-menu-chevron{flex-shrink:0;line-height:0}.ui-menu-item-label{flex:1 1 auto;min-width:0}.ui-menu-chevron{margin-left:auto;transition:rotate var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-menu-chevron._open{rotate:180deg}.ui-menu-flyout{display:block}.ui-menu-collapse{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-menu-collapse._open{grid-template-rows:1fr;opacity:1}.ui-menu-collapse-inner{min-height:0;overflow:hidden}.ui-menu._no-motion .ui-menu-collapse,.ui-menu._no-motion .ui-menu-chevron{transition:none}.ui-menu-separator{border:none}.ui-menu-start,.ui-menu-end{padding:var(--units-2xs) var(--units-md)}.ui-menu._high .ui-menu-header{color:var(--ui-menu-header-color, var(--navigation-high-content-default))}.ui-menu._high .ui-menu-action{color:var(--ui-menu-action-color, var(--navigation-high-content-default))}.ui-menu._high .ui-menu-action:hover:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-high-content-hover))}.ui-menu._high .ui-menu-action:active:not(:disabled){background-color:var(--ui-menu-action-surface-pressed, var(--navigation-high-surface-active));color:var(--ui-menu-action-color-pressed, var(--navigation-high-content-active))}.ui-menu._high .ui-menu-action._sub-open:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-high-content-hover))}.ui-menu._high .ui-menu-action._active{background-color:var(--ui-menu-action-surface-active, var(--navigation-high-surface-active));color:var(--ui-menu-action-color-active, var(--navigation-high-content-active))}.ui-menu._high .ui-menu-action:disabled{background-color:var(--ui-menu-action-surface-disabled, var(--navigation-high-surface-disabled));color:var(--ui-menu-action-color-disabled, var(--navigation-high-content-disabled))}.ui-menu._low .ui-menu-header{color:var(--ui-menu-header-color, var(--navigation-low-content-default))}.ui-menu._low .ui-menu-action{color:var(--ui-menu-action-color, var(--navigation-low-content-default))}.ui-menu._low .ui-menu-action:hover:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-low-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-low-content-hover))}.ui-menu._low .ui-menu-action:active:not(:disabled){background-color:var(--ui-menu-action-surface-pressed, var(--navigation-low-surface-active));color:var(--ui-menu-action-color-pressed, var(--navigation-low-content-active))}.ui-menu._low .ui-menu-action._sub-open:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-low-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-low-content-hover))}.ui-menu._low .ui-menu-action._active{background-color:var(--ui-menu-action-surface-active, var(--navigation-low-surface-active));color:var(--ui-menu-action-color-active, var(--navigation-low-content-active))}.ui-menu._low .ui-menu-action:disabled{background-color:var(--ui-menu-action-surface-disabled, var(--navigation-low-surface-disabled));color:var(--ui-menu-action-color-disabled, var(--navigation-low-content-disabled))}\n"], dependencies: [{ kind: "component", type: UiMenu, selector: "ui-menu", inputs: ["items", "popup", "expandedKeys", "ariaLabel", "ariaLabelledBy", "styleClass", "level", "size", "submenus", "motion", "ripple", "autoFlip", "tabindex", "itemTemplate", "submenuHeaderTemplate"], outputs: ["expandedKeysChange", "opened", "closed", "itemClick"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }, { kind: "component", type: UiSeparator, selector: "ui-separator", inputs: ["label", "orientation", "variant", "size", "labelAlign", "ariaLabel"] }] }); }
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
}, template: "<!-- Menu panel: shared between inline render and the CDK overlay popup. -->\n<ng-template #panelTpl>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"uid\"\n [uiMotion]=\"'slide-down'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n [motionOnInsert]=\"popup()\"\n >\n @if (startTemplate(); as tpl) {\n <div class=\"ui-menu-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container, focus\n lives on the items (roving tabindex). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <ul\n class=\"ui-menu-list\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"nodesTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: nodes() }\"\n />\n </ul>\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-menu-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Recursive node list (separator | header section | toggleable group | leaf item). -->\n<ng-template #nodesTpl let-nodes>\n @for (node of nodes; track node.key) {\n @switch (node.kind) {\n @case ('separator') {\n <li class=\"ui-menu-separator\" role=\"separator\" aria-hidden=\"true\">\n <ui-separator></ui-separator>\n </li>\n }\n\n @case ('header') {\n <li class=\"ui-menu-section\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <span class=\"ui-menu-header\" [attr.id]=\"headerId(node)\">\n @if (resolvedSubmenuHeaderTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n </span>\n <ul class=\"ui-menu-group\" role=\"group\" [attr.aria-labelledby]=\"headerId(node)\">\n <ng-container\n [ngTemplateOutlet]=\"nodesTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.children }\"\n />\n </ul>\n </li>\n }\n\n @case ('toggle') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <button\n type=\"button\"\n class=\"ui-menu-action _toggle\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [attr.aria-expanded]=\"node.expanded\"\n [attr.aria-controls]=\"groupId(node)\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onToggleClick(node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n @if (resolvedSubmenuHeaderTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n <!-- `_open`, not `_expanded`: a global helper class `._expanded` (width:100%) exists. -->\n <ui-icon\n class=\"ui-menu-chevron\"\n [class._open]=\"node.expanded\"\n name=\"chevron-down\"\n size=\"sm\"\n />\n </button>\n <div\n class=\"ui-menu-collapse\"\n [class._open]=\"node.expanded\"\n [attr.id]=\"groupId(node)\"\n [attr.inert]=\"node.expanded ? null : ''\"\n >\n <div class=\"ui-menu-collapse-inner\">\n <ul class=\"ui-menu-group _nested\" role=\"group\">\n <ng-container\n [ngTemplateOutlet]=\"nodesTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.children }\"\n />\n </ul>\n </div>\n </div>\n </li>\n }\n\n @case ('flyout') {\n <li\n class=\"ui-menu-entry\"\n role=\"none\"\n [class]=\"node.item.styleClass ?? ''\"\n cdkOverlayOrigin\n #flyoutOrigin=\"cdkOverlayOrigin\"\n >\n <button\n type=\"button\"\n class=\"ui-menu-action _has-sub\"\n [class._sub-open]=\"openFlyoutKey() === node.key\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n aria-haspopup=\"menu\"\n [attr.data-key]=\"node.key\"\n [attr.aria-expanded]=\"openFlyoutKey() === node.key\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onFlyoutClick(node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n @if (resolvedItemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n <ui-icon class=\"ui-menu-chevron\" name=\"chevron-right\" size=\"sm\" />\n </button>\n\n <!-- Cascading side panel: a nested menu in its own overlay, anchored to the item. -->\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"flyoutOrigin\"\n [cdkConnectedOverlayOpen]=\"openFlyoutKey() === node.key\"\n [cdkConnectedOverlayPositions]=\"flyoutPositions\"\n >\n <!-- Flyout: keyboard delegated to the panel, focus lives on the items. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-menu-flyout\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #flyoutMotion=\"uiMotion\"\n motionOnInsert\n (keydown)=\"onFlyoutPanelKeydown($event, node)\"\n >\n <ui-menu\n [items]=\"node.item.items ?? []\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n submenus=\"flyout\"\n styleClass=\"_floating\"\n [itemTemplate]=\"resolvedItemTemplate()\"\n [submenuHeaderTemplate]=\"resolvedSubmenuHeaderTemplate()\"\n [ariaLabel]=\"node.item.label\"\n (itemClick)=\"onChildItemClick($event)\"\n />\n </div>\n </ng-template>\n </li>\n }\n\n @case ('item') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <!-- Shared menuitem content (icon + label, or the #item template). -->\n <ng-template #content>\n @if (resolvedItemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n </ng-template>\n\n @if (node.item.routerLink !== undefined && !node.item.disabled) {\n <a\n class=\"ui-menu-action\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [routerLink]=\"node.item.routerLink\"\n [queryParams]=\"node.item.queryParams ?? null\"\n [queryParamsHandling]=\"node.item.queryParamsHandling ?? null\"\n routerLinkActive=\"_active\"\n [routerLinkActiveOptions]=\"{ exact: node.item.routerLinkActiveExact ?? false }\"\n [attr.target]=\"node.item.target || null\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n } @else if (node.item.url && !node.item.disabled) {\n <a\n class=\"ui-menu-action\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [attr.href]=\"node.item.url\"\n [attr.target]=\"node.item.target || null\"\n [attr.rel]=\"node.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"ui-menu-action\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n }\n </li>\n }\n }\n }\n</ng-template>\n\n@if (popup()) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"popupOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"hide()\"\n (overlayOutsideClick)=\"onPopupOutsideClick($event)\"\n (detach)=\"hide()\"\n >\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n </ng-template>\n} @else {\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n}\n", styles: [".ui-menu{display:flex;flex-direction:column;gap:var(--units-2xs);padding:var(--ui-menu-panel-padding, var(--ui-overlay-panel-padding, var(--units-sm)));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, transparent);border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-menu-panel-surface, var(--global-background-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));border:none;min-width:var(--ui-menu-min-width, 13.125rem)}.ui-menu .ui-menu-action{min-height:var(--ui-menu-item-height, 2.5rem);padding:0 var(--ui-menu-item-padding-x, var(--units-md));font-size:var(--ui-menu-font-size, var(--size-typography-text-default))}.ui-menu .ui-menu-header{min-height:var(--ui-menu-header-height, 2rem);padding:0 var(--ui-menu-item-padding-x, var(--units-md));font-size:var(--ui-menu-header-font-size, var(--size-typography-text-md))}.ui-menu._popup,.ui-menu._floating{width:max-content;max-width:calc(100vw - var(--units-lg));max-height:calc(100vh - var(--units-lg));overflow:auto}.ui-menu-list,.ui-menu-group{display:flex;flex-direction:column;gap:var(--units-2xs);margin:0;padding:0;list-style:none}.ui-menu-group._nested{padding-left:var(--ui-menu-group-indent, var(--units-default))}.ui-menu-section,.ui-menu-entry{display:flex;flex-direction:column;gap:var(--units-2xs)}.ui-menu._small{min-width:var(--ui-menu-min-width-small, 10rem)}.ui-menu._small .ui-menu-action{min-height:var(--ui-menu-item-height-small, 2rem);padding:0 var(--ui-menu-item-padding-x-small, var(--units-sm));font-size:var(--ui-menu-font-size-small, var(--size-typography-text-md))}.ui-menu._small .ui-menu-header{min-height:var(--ui-menu-header-height-small, 1.5rem);padding:0 var(--ui-menu-item-padding-x-small, var(--units-sm));font-size:var(--ui-menu-header-font-size-small, var(--size-typography-text-sm))}.ui-menu-header{display:flex;align-items:center;gap:var(--units-sm);font-weight:var(--ui-menu-header-weight, var(--weight-bold));-webkit-user-select:none;user-select:none}.ui-menu-action{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;width:100%;border:none;border-radius:var(--ui-menu-item-radius, var(--radius-sm));background:none;font-family:var(--ui-menu-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);font-weight:var(--ui-menu-action-weight, var(--weight-regular));line-height:1.2;text-align:left;text-decoration:none;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-menu-action:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--ui-menu-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-menu-action-focus-ring-color, var(--global-border-focus))}.ui-menu-action:disabled{cursor:not-allowed}.ui-menu-item-icon,.ui-menu-chevron{flex-shrink:0;line-height:0}.ui-menu-item-label{flex:1 1 auto;min-width:0}.ui-menu-chevron{margin-left:auto;transition:rotate var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-menu-chevron._open{rotate:180deg}.ui-menu-flyout{display:block}.ui-menu-collapse{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-menu-collapse._open{grid-template-rows:1fr;opacity:1}.ui-menu-collapse-inner{min-height:0;overflow:hidden}.ui-menu._no-motion .ui-menu-collapse,.ui-menu._no-motion .ui-menu-chevron{transition:none}.ui-menu-separator{border:none}.ui-menu-start,.ui-menu-end{padding:var(--units-2xs) var(--units-md)}.ui-menu._high .ui-menu-header{color:var(--ui-menu-header-color, var(--navigation-high-content-default))}.ui-menu._high .ui-menu-action{color:var(--ui-menu-action-color, var(--navigation-high-content-default))}.ui-menu._high .ui-menu-action:hover:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-high-content-hover))}.ui-menu._high .ui-menu-action:active:not(:disabled){background-color:var(--ui-menu-action-surface-pressed, var(--navigation-high-surface-active));color:var(--ui-menu-action-color-pressed, var(--navigation-high-content-active))}.ui-menu._high .ui-menu-action._sub-open:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-high-content-hover))}.ui-menu._high .ui-menu-action._active{background-color:var(--ui-menu-action-surface-active, var(--navigation-high-surface-active));color:var(--ui-menu-action-color-active, var(--navigation-high-content-active))}.ui-menu._high .ui-menu-action:disabled{background-color:var(--ui-menu-action-surface-disabled, var(--navigation-high-surface-disabled));color:var(--ui-menu-action-color-disabled, var(--navigation-high-content-disabled))}.ui-menu._low .ui-menu-header{color:var(--ui-menu-header-color, var(--navigation-low-content-default))}.ui-menu._low .ui-menu-action{color:var(--ui-menu-action-color, var(--navigation-low-content-default))}.ui-menu._low .ui-menu-action:hover:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-low-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-low-content-hover))}.ui-menu._low .ui-menu-action:active:not(:disabled){background-color:var(--ui-menu-action-surface-pressed, var(--navigation-low-surface-active));color:var(--ui-menu-action-color-pressed, var(--navigation-low-content-active))}.ui-menu._low .ui-menu-action._sub-open:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-low-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-low-content-hover))}.ui-menu._low .ui-menu-action._active{background-color:var(--ui-menu-action-surface-active, var(--navigation-low-surface-active));color:var(--ui-menu-action-color-active, var(--navigation-low-content-active))}.ui-menu._low .ui-menu-action:disabled{background-color:var(--ui-menu-action-surface-disabled, var(--navigation-low-surface-disabled));color:var(--ui-menu-action-color-disabled, var(--navigation-low-content-disabled))}\n"] }]
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
13
|
+
var UiMenu = class UiMenu {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
16
|
+
this.popup = input(false, {
|
|
17
|
+
...ngDevMode ? { debugName: "popup" } : /* istanbul ignore next */ {},
|
|
18
|
+
transform: booleanAttribute
|
|
19
|
+
});
|
|
20
|
+
this.expandedKeys = model({}, ...ngDevMode ? [{ debugName: "expandedKeys" }] : /* istanbul ignore next */ []);
|
|
21
|
+
this.ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
22
|
+
this.ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
23
|
+
this.styleClass = input(...ngDevMode ? [void 0, { debugName: "styleClass" }] : /* istanbul ignore next */ []);
|
|
24
|
+
this.level = input("high", ...ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []);
|
|
25
|
+
this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
26
|
+
this.submenus = input("inline", ...ngDevMode ? [{ debugName: "submenus" }] : /* istanbul ignore next */ []);
|
|
27
|
+
this.motion = input(true, {
|
|
28
|
+
...ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {},
|
|
29
|
+
transform: booleanAttribute
|
|
30
|
+
});
|
|
31
|
+
this.ripple = input(true, {
|
|
32
|
+
...ngDevMode ? { debugName: "ripple" } : /* istanbul ignore next */ {},
|
|
33
|
+
transform: booleanAttribute
|
|
34
|
+
});
|
|
35
|
+
this.autoFlip = input(true, {
|
|
36
|
+
...ngDevMode ? { debugName: "autoFlip" } : /* istanbul ignore next */ {},
|
|
37
|
+
transform: booleanAttribute
|
|
38
|
+
});
|
|
39
|
+
this.tabindex = input(0, {
|
|
40
|
+
...ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {},
|
|
41
|
+
transform: numberAttribute
|
|
42
|
+
});
|
|
43
|
+
this.opened = output();
|
|
44
|
+
this.closed = output();
|
|
45
|
+
this.itemClick = output();
|
|
46
|
+
this.itemTemplate = input(...ngDevMode ? [void 0, { debugName: "itemTemplate" }] : /* istanbul ignore next */ []);
|
|
47
|
+
this.submenuHeaderTemplate = input(...ngDevMode ? [void 0, { debugName: "submenuHeaderTemplate" }] : /* istanbul ignore next */ []);
|
|
48
|
+
this.itemTemplateContent = contentChild("item", ...ngDevMode ? [{ debugName: "itemTemplateContent" }] : /* istanbul ignore next */ []);
|
|
49
|
+
this.submenuHeaderTemplateContent = contentChild("submenuheader", ...ngDevMode ? [{ debugName: "submenuHeaderTemplateContent" }] : /* istanbul ignore next */ []);
|
|
50
|
+
this.resolvedItemTemplate = computed(() => this.itemTemplate() ?? this.itemTemplateContent(), ...ngDevMode ? [{ debugName: "resolvedItemTemplate" }] : /* istanbul ignore next */ []);
|
|
51
|
+
this.resolvedSubmenuHeaderTemplate = computed(() => this.submenuHeaderTemplate() ?? this.submenuHeaderTemplateContent(), ...ngDevMode ? [{ debugName: "resolvedSubmenuHeaderTemplate" }] : /* istanbul ignore next */ []);
|
|
52
|
+
this.startTemplate = contentChild("start", ...ngDevMode ? [{ debugName: "startTemplate" }] : /* istanbul ignore next */ []);
|
|
53
|
+
this.endTemplate = contentChild("end", ...ngDevMode ? [{ debugName: "endTemplate" }] : /* istanbul ignore next */ []);
|
|
54
|
+
this.panelEl = viewChild("panel", ...ngDevMode ? [{ debugName: "panelEl" }] : /* istanbul ignore next */ []);
|
|
55
|
+
this.uid = `ui-menu-${nextUid++}`;
|
|
56
|
+
this.popupOpen = signal(false, ...ngDevMode ? [{ debugName: "popupOpen" }] : /* istanbul ignore next */ []);
|
|
57
|
+
this.overlayOrigin = signal(null, ...ngDevMode ? [{ debugName: "overlayOrigin" }] : /* istanbul ignore next */ []);
|
|
58
|
+
this.focusedKey = signal(null, ...ngDevMode ? [{ debugName: "focusedKey" }] : /* istanbul ignore next */ []);
|
|
59
|
+
this.openFlyoutKey = signal(null, ...ngDevMode ? [{ debugName: "openFlyoutKey" }] : /* istanbul ignore next */ []);
|
|
60
|
+
this.childMenus = viewChildren(UiMenu, ...ngDevMode ? [{ debugName: "childMenus" }] : /* istanbul ignore next */ []);
|
|
61
|
+
this.connectedOverlays = viewChildren(CdkConnectedOverlay, ...ngDevMode ? [{ debugName: "connectedOverlays" }] : /* istanbul ignore next */ []);
|
|
62
|
+
this.doc = inject(DOCUMENT);
|
|
63
|
+
this.overlayPositions = computed(() => {
|
|
64
|
+
const below = {
|
|
65
|
+
originX: "start",
|
|
66
|
+
originY: "bottom",
|
|
67
|
+
overlayX: "start",
|
|
68
|
+
overlayY: "top",
|
|
69
|
+
offsetY: OVERLAY_OFFSET
|
|
70
|
+
};
|
|
71
|
+
return this.autoFlip() ? [below, {
|
|
72
|
+
originX: "start",
|
|
73
|
+
originY: "top",
|
|
74
|
+
overlayX: "start",
|
|
75
|
+
overlayY: "bottom",
|
|
76
|
+
offsetY: -8
|
|
77
|
+
}] : [below];
|
|
78
|
+
}, ...ngDevMode ? [{ debugName: "overlayPositions" }] : /* istanbul ignore next */ []);
|
|
79
|
+
this.flyoutPositions = [
|
|
80
|
+
{
|
|
81
|
+
originX: "end",
|
|
82
|
+
originY: "top",
|
|
83
|
+
overlayX: "start",
|
|
84
|
+
overlayY: "top",
|
|
85
|
+
offsetY: -8
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
originX: "start",
|
|
89
|
+
originY: "top",
|
|
90
|
+
overlayX: "end",
|
|
91
|
+
overlayY: "top",
|
|
92
|
+
offsetY: -8
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
originX: "end",
|
|
96
|
+
originY: "bottom",
|
|
97
|
+
overlayX: "start",
|
|
98
|
+
overlayY: "bottom",
|
|
99
|
+
offsetY: OVERLAY_OFFSET
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
originX: "start",
|
|
103
|
+
originY: "bottom",
|
|
104
|
+
overlayX: "end",
|
|
105
|
+
overlayY: "bottom",
|
|
106
|
+
offsetY: OVERLAY_OFFSET
|
|
107
|
+
}
|
|
108
|
+
];
|
|
109
|
+
this.nodes = computed(() => this.buildNodes(this.items(), this.uid, 0), ...ngDevMode ? [{ debugName: "nodes" }] : /* istanbul ignore next */ []);
|
|
110
|
+
this.focusableKeys = computed(() => {
|
|
111
|
+
const keys = [];
|
|
112
|
+
const walk = (nodes) => {
|
|
113
|
+
for (const node of nodes) {
|
|
114
|
+
if (node.kind === "separator") continue;
|
|
115
|
+
if ((node.kind === "item" || node.kind === "flyout") && !node.item.disabled) keys.push(node.key);
|
|
116
|
+
if (node.kind === "toggle" && !node.item.disabled) {
|
|
117
|
+
keys.push(node.key);
|
|
118
|
+
if (node.expanded) walk(node.children);
|
|
119
|
+
}
|
|
120
|
+
if (node.kind === "header") walk(node.children);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
walk(this.nodes());
|
|
124
|
+
return keys;
|
|
125
|
+
}, ...ngDevMode ? [{ debugName: "focusableKeys" }] : /* istanbul ignore next */ []);
|
|
126
|
+
this.tabStopKey = computed(() => {
|
|
127
|
+
const keys = this.focusableKeys();
|
|
128
|
+
const focused = this.focusedKey();
|
|
129
|
+
return focused && keys.includes(focused) ? focused : keys[0] ?? null;
|
|
130
|
+
}, ...ngDevMode ? [{ debugName: "tabStopKey" }] : /* istanbul ignore next */ []);
|
|
131
|
+
this.panelClasses = computed(() => {
|
|
132
|
+
const c = ["ui-menu", `_${this.level()}`];
|
|
133
|
+
if (this.size() !== "default") c.push(`_${this.size()}`);
|
|
134
|
+
if (this.popup()) c.push("_popup");
|
|
135
|
+
if (!this.motion()) c.push("_no-motion");
|
|
136
|
+
const extra = this.styleClass();
|
|
137
|
+
if (extra) c.push(extra);
|
|
138
|
+
return c.join(" ");
|
|
139
|
+
}, ...ngDevMode ? [{ debugName: "panelClasses" }] : /* istanbul ignore next */ []);
|
|
140
|
+
closeOnNavigation(() => {
|
|
141
|
+
this.hide();
|
|
142
|
+
this.closeFlyouts();
|
|
143
|
+
});
|
|
144
|
+
effect((onCleanup) => {
|
|
145
|
+
if (!(this.popupOpen() || this.openFlyoutKey() !== null) || typeof window === "undefined") return;
|
|
146
|
+
const handler = () => setTimeout(() => {
|
|
147
|
+
if (this.popupOpen() && this.overlayOrigin()?.isConnected === false) {
|
|
148
|
+
this.hide();
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
for (const overlay of this.connectedOverlays()) if (overlay.open) overlay.overlayRef?.updatePosition();
|
|
152
|
+
});
|
|
153
|
+
this.doc.addEventListener("scroll", handler, {
|
|
154
|
+
capture: true,
|
|
155
|
+
passive: true
|
|
156
|
+
});
|
|
157
|
+
onCleanup(() => this.doc.removeEventListener("scroll", handler, true));
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
toggle(event) {
|
|
161
|
+
this.popupOpen() ? this.hide() : this.show(event);
|
|
162
|
+
}
|
|
163
|
+
show(event) {
|
|
164
|
+
if (!this.popup() || this.popupOpen()) return;
|
|
165
|
+
this.overlayOrigin.set(event.currentTarget ?? event.target);
|
|
166
|
+
this.popupOpen.set(true);
|
|
167
|
+
this.opened.emit();
|
|
168
|
+
this.queueFocusTabStop();
|
|
169
|
+
}
|
|
170
|
+
focusFirst() {
|
|
171
|
+
this.queueFocusTabStop();
|
|
172
|
+
}
|
|
173
|
+
hide(focusTrigger = false) {
|
|
174
|
+
if (!this.popupOpen()) return;
|
|
175
|
+
this.popupOpen.set(false);
|
|
176
|
+
this.focusedKey.set(null);
|
|
177
|
+
this.openFlyoutKey.set(null);
|
|
178
|
+
this.closed.emit();
|
|
179
|
+
if (focusTrigger) this.overlayOrigin()?.focus?.();
|
|
180
|
+
}
|
|
181
|
+
closeFlyouts() {
|
|
182
|
+
this.openFlyoutKey.set(null);
|
|
183
|
+
}
|
|
184
|
+
onItemClick(event, node) {
|
|
185
|
+
const item = node.item;
|
|
186
|
+
if (item.disabled) {
|
|
187
|
+
event.preventDefault();
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
if (!item.url && !item.routerLink) event.preventDefault();
|
|
191
|
+
this.focusedKey.set(node.key);
|
|
192
|
+
item.command?.({
|
|
193
|
+
originalEvent: event,
|
|
194
|
+
item
|
|
195
|
+
});
|
|
196
|
+
this.itemClick.emit({
|
|
197
|
+
originalEvent: event,
|
|
198
|
+
item
|
|
199
|
+
});
|
|
200
|
+
if (this.popup()) this.hide(true);
|
|
201
|
+
}
|
|
202
|
+
onFlyoutClick(node) {
|
|
203
|
+
if (node.item.disabled) return;
|
|
204
|
+
this.focusedKey.set(node.key);
|
|
205
|
+
this.openFlyoutKey.set(node.key);
|
|
206
|
+
}
|
|
207
|
+
onEntryHover(node) {
|
|
208
|
+
if (node.kind === "flyout" && !node.item.disabled) this.openFlyoutKey.set(node.key);
|
|
209
|
+
else this.openFlyoutKey.set(null);
|
|
210
|
+
}
|
|
211
|
+
onFlyoutPanelKeydown(event, node) {
|
|
212
|
+
if (event.key !== "ArrowLeft" && event.key !== "Escape") return;
|
|
213
|
+
event.preventDefault();
|
|
214
|
+
event.stopPropagation();
|
|
215
|
+
this.openFlyoutKey.set(null);
|
|
216
|
+
this.focusByKey(node.key);
|
|
217
|
+
}
|
|
218
|
+
onChildItemClick(event) {
|
|
219
|
+
this.itemClick.emit(event);
|
|
220
|
+
this.openFlyoutKey.set(null);
|
|
221
|
+
if (this.popup()) this.hide(true);
|
|
222
|
+
}
|
|
223
|
+
openFlyoutAndFocus(node, attempts = 20) {
|
|
224
|
+
this.openFlyoutKey.set(node.key);
|
|
225
|
+
setTimeout(() => {
|
|
226
|
+
const menu = this.childMenus().find((child) => child.items() === node.item.items);
|
|
227
|
+
if (menu) menu.focusFirst();
|
|
228
|
+
else if (attempts > 0) this.openFlyoutAndFocus(node, attempts - 1);
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
onToggleClick(node) {
|
|
232
|
+
if (node.item.disabled) return;
|
|
233
|
+
this.focusedKey.set(node.key);
|
|
234
|
+
this.setExpanded(node, !node.expanded);
|
|
235
|
+
}
|
|
236
|
+
setExpanded(node, expanded) {
|
|
237
|
+
if (node.expanded === expanded) return;
|
|
238
|
+
this.expandedKeys.update((keys) => ({
|
|
239
|
+
...keys,
|
|
240
|
+
[node.key]: expanded
|
|
241
|
+
}));
|
|
242
|
+
}
|
|
243
|
+
onListKeydown(event) {
|
|
244
|
+
const keys = this.focusableKeys();
|
|
245
|
+
if (!keys.length) return;
|
|
246
|
+
const currentKey = this.currentFocusKey(event);
|
|
247
|
+
const index = currentKey ? keys.indexOf(currentKey) : -1;
|
|
248
|
+
switch (event.key) {
|
|
249
|
+
case "ArrowDown":
|
|
250
|
+
event.preventDefault();
|
|
251
|
+
this.focusByKey(keys[(index + 1) % keys.length]);
|
|
252
|
+
break;
|
|
253
|
+
case "ArrowUp":
|
|
254
|
+
event.preventDefault();
|
|
255
|
+
this.focusByKey(keys[(index - 1 + keys.length) % keys.length]);
|
|
256
|
+
break;
|
|
257
|
+
case "Home":
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
this.focusByKey(keys[0]);
|
|
260
|
+
break;
|
|
261
|
+
case "End":
|
|
262
|
+
event.preventDefault();
|
|
263
|
+
this.focusByKey(keys[keys.length - 1]);
|
|
264
|
+
break;
|
|
265
|
+
case "ArrowRight":
|
|
266
|
+
case "ArrowLeft": {
|
|
267
|
+
const node = currentKey ? this.findNode(currentKey) : null;
|
|
268
|
+
if (node?.kind === "toggle") {
|
|
269
|
+
event.preventDefault();
|
|
270
|
+
this.setExpanded(node, event.key === "ArrowRight");
|
|
271
|
+
} else if (node?.kind === "flyout") {
|
|
272
|
+
event.preventDefault();
|
|
273
|
+
if (event.key === "ArrowRight") this.openFlyoutAndFocus(node);
|
|
274
|
+
else this.openFlyoutKey.set(null);
|
|
275
|
+
}
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
case " ": {
|
|
279
|
+
const target = event.target;
|
|
280
|
+
if (target.tagName === "A") {
|
|
281
|
+
event.preventDefault();
|
|
282
|
+
target.click();
|
|
283
|
+
}
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
case "Escape": if (this.popup()) {
|
|
287
|
+
event.preventDefault();
|
|
288
|
+
this.hide(true);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
onEntryFocus(node) {
|
|
293
|
+
this.focusedKey.set(node.key);
|
|
294
|
+
}
|
|
295
|
+
onPopupOutsideClick(event) {
|
|
296
|
+
if (event.target instanceof Element && event.target.closest(".cdk-overlay-container")) return;
|
|
297
|
+
this.hide();
|
|
298
|
+
}
|
|
299
|
+
headerId(node) {
|
|
300
|
+
return `${this.uid}-${node.key}-label`;
|
|
301
|
+
}
|
|
302
|
+
groupId(node) {
|
|
303
|
+
return `${this.uid}-${node.key}-group`;
|
|
304
|
+
}
|
|
305
|
+
buildNodes(items, parentKey, depth) {
|
|
306
|
+
const expandedKeys = this.expandedKeys();
|
|
307
|
+
return items.filter((item) => item.visible !== false).map((item, index) => {
|
|
308
|
+
const key = item.id ?? `${parentKey}_${index}`;
|
|
309
|
+
if (item.separator) return {
|
|
310
|
+
item,
|
|
311
|
+
key,
|
|
312
|
+
kind: "separator",
|
|
313
|
+
children: [],
|
|
314
|
+
expanded: false,
|
|
315
|
+
depth
|
|
316
|
+
};
|
|
317
|
+
if (item.items) {
|
|
318
|
+
if (this.submenus() === "flyout") return {
|
|
319
|
+
item,
|
|
320
|
+
key,
|
|
321
|
+
kind: "flyout",
|
|
322
|
+
children: [],
|
|
323
|
+
expanded: false,
|
|
324
|
+
depth
|
|
325
|
+
};
|
|
326
|
+
const toggleable = item.toggleable ?? depth > 0;
|
|
327
|
+
const expanded = toggleable ? expandedKeys[key] ?? item.expanded ?? false : true;
|
|
328
|
+
return {
|
|
329
|
+
item,
|
|
330
|
+
key,
|
|
331
|
+
kind: toggleable ? "toggle" : "header",
|
|
332
|
+
children: this.buildNodes(item.items, key, depth + 1),
|
|
333
|
+
expanded,
|
|
334
|
+
depth
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
return {
|
|
338
|
+
item,
|
|
339
|
+
key,
|
|
340
|
+
kind: "item",
|
|
341
|
+
children: [],
|
|
342
|
+
expanded: false,
|
|
343
|
+
depth
|
|
344
|
+
};
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
findNode(key, nodes = this.nodes()) {
|
|
348
|
+
for (const node of nodes) {
|
|
349
|
+
if (node.key === key) return node;
|
|
350
|
+
const found = this.findNode(key, node.children);
|
|
351
|
+
if (found) return found;
|
|
352
|
+
}
|
|
353
|
+
return null;
|
|
354
|
+
}
|
|
355
|
+
currentFocusKey(event) {
|
|
356
|
+
return (event.target.closest?.("[data-key]"))?.getAttribute("data-key") ?? this.focusedKey();
|
|
357
|
+
}
|
|
358
|
+
focusByKey(key) {
|
|
359
|
+
if (!key) return;
|
|
360
|
+
this.focusedKey.set(key);
|
|
361
|
+
this.panelEl()?.nativeElement.querySelector(`[data-key="${CSS.escape(key)}"]`)?.focus();
|
|
362
|
+
}
|
|
363
|
+
queueFocusTabStop() {
|
|
364
|
+
setTimeout(() => this.focusByKey(this.tabStopKey() ?? void 0));
|
|
365
|
+
}
|
|
366
|
+
static {
|
|
367
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
368
|
+
minVersion: "12.0.0",
|
|
369
|
+
version: "22.3.0",
|
|
370
|
+
ngImport: i0,
|
|
371
|
+
type: UiMenu,
|
|
372
|
+
deps: [],
|
|
373
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
static {
|
|
377
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
378
|
+
minVersion: "17.0.0",
|
|
379
|
+
version: "22.3.0",
|
|
380
|
+
type: UiMenu,
|
|
381
|
+
isStandalone: true,
|
|
382
|
+
selector: "ui-menu",
|
|
383
|
+
inputs: {
|
|
384
|
+
items: {
|
|
385
|
+
classPropertyName: "items",
|
|
386
|
+
publicName: "items",
|
|
387
|
+
isSignal: true,
|
|
388
|
+
isRequired: false,
|
|
389
|
+
transformFunction: null
|
|
390
|
+
},
|
|
391
|
+
popup: {
|
|
392
|
+
classPropertyName: "popup",
|
|
393
|
+
publicName: "popup",
|
|
394
|
+
isSignal: true,
|
|
395
|
+
isRequired: false,
|
|
396
|
+
transformFunction: null
|
|
397
|
+
},
|
|
398
|
+
expandedKeys: {
|
|
399
|
+
classPropertyName: "expandedKeys",
|
|
400
|
+
publicName: "expandedKeys",
|
|
401
|
+
isSignal: true,
|
|
402
|
+
isRequired: false,
|
|
403
|
+
transformFunction: null
|
|
404
|
+
},
|
|
405
|
+
ariaLabel: {
|
|
406
|
+
classPropertyName: "ariaLabel",
|
|
407
|
+
publicName: "ariaLabel",
|
|
408
|
+
isSignal: true,
|
|
409
|
+
isRequired: false,
|
|
410
|
+
transformFunction: null
|
|
411
|
+
},
|
|
412
|
+
ariaLabelledBy: {
|
|
413
|
+
classPropertyName: "ariaLabelledBy",
|
|
414
|
+
publicName: "ariaLabelledBy",
|
|
415
|
+
isSignal: true,
|
|
416
|
+
isRequired: false,
|
|
417
|
+
transformFunction: null
|
|
418
|
+
},
|
|
419
|
+
styleClass: {
|
|
420
|
+
classPropertyName: "styleClass",
|
|
421
|
+
publicName: "styleClass",
|
|
422
|
+
isSignal: true,
|
|
423
|
+
isRequired: false,
|
|
424
|
+
transformFunction: null
|
|
425
|
+
},
|
|
426
|
+
level: {
|
|
427
|
+
classPropertyName: "level",
|
|
428
|
+
publicName: "level",
|
|
429
|
+
isSignal: true,
|
|
430
|
+
isRequired: false,
|
|
431
|
+
transformFunction: null
|
|
432
|
+
},
|
|
433
|
+
size: {
|
|
434
|
+
classPropertyName: "size",
|
|
435
|
+
publicName: "size",
|
|
436
|
+
isSignal: true,
|
|
437
|
+
isRequired: false,
|
|
438
|
+
transformFunction: null
|
|
439
|
+
},
|
|
440
|
+
submenus: {
|
|
441
|
+
classPropertyName: "submenus",
|
|
442
|
+
publicName: "submenus",
|
|
443
|
+
isSignal: true,
|
|
444
|
+
isRequired: false,
|
|
445
|
+
transformFunction: null
|
|
446
|
+
},
|
|
447
|
+
motion: {
|
|
448
|
+
classPropertyName: "motion",
|
|
449
|
+
publicName: "motion",
|
|
450
|
+
isSignal: true,
|
|
451
|
+
isRequired: false,
|
|
452
|
+
transformFunction: null
|
|
453
|
+
},
|
|
454
|
+
ripple: {
|
|
455
|
+
classPropertyName: "ripple",
|
|
456
|
+
publicName: "ripple",
|
|
457
|
+
isSignal: true,
|
|
458
|
+
isRequired: false,
|
|
459
|
+
transformFunction: null
|
|
460
|
+
},
|
|
461
|
+
autoFlip: {
|
|
462
|
+
classPropertyName: "autoFlip",
|
|
463
|
+
publicName: "autoFlip",
|
|
464
|
+
isSignal: true,
|
|
465
|
+
isRequired: false,
|
|
466
|
+
transformFunction: null
|
|
467
|
+
},
|
|
468
|
+
tabindex: {
|
|
469
|
+
classPropertyName: "tabindex",
|
|
470
|
+
publicName: "tabindex",
|
|
471
|
+
isSignal: true,
|
|
472
|
+
isRequired: false,
|
|
473
|
+
transformFunction: null
|
|
474
|
+
},
|
|
475
|
+
itemTemplate: {
|
|
476
|
+
classPropertyName: "itemTemplate",
|
|
477
|
+
publicName: "itemTemplate",
|
|
478
|
+
isSignal: true,
|
|
479
|
+
isRequired: false,
|
|
480
|
+
transformFunction: null
|
|
481
|
+
},
|
|
482
|
+
submenuHeaderTemplate: {
|
|
483
|
+
classPropertyName: "submenuHeaderTemplate",
|
|
484
|
+
publicName: "submenuHeaderTemplate",
|
|
485
|
+
isSignal: true,
|
|
486
|
+
isRequired: false,
|
|
487
|
+
transformFunction: null
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
outputs: {
|
|
491
|
+
expandedKeys: "expandedKeysChange",
|
|
492
|
+
opened: "opened",
|
|
493
|
+
closed: "closed",
|
|
494
|
+
itemClick: "itemClick"
|
|
495
|
+
},
|
|
496
|
+
host: { properties: { "style.display": "popup() ? 'contents' : 'block'" } },
|
|
497
|
+
queries: [
|
|
498
|
+
{
|
|
499
|
+
propertyName: "itemTemplateContent",
|
|
500
|
+
first: true,
|
|
501
|
+
predicate: ["item"],
|
|
502
|
+
descendants: true,
|
|
503
|
+
isSignal: true
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
propertyName: "submenuHeaderTemplateContent",
|
|
507
|
+
first: true,
|
|
508
|
+
predicate: ["submenuheader"],
|
|
509
|
+
descendants: true,
|
|
510
|
+
isSignal: true
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
propertyName: "startTemplate",
|
|
514
|
+
first: true,
|
|
515
|
+
predicate: ["start"],
|
|
516
|
+
descendants: true,
|
|
517
|
+
isSignal: true
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
propertyName: "endTemplate",
|
|
521
|
+
first: true,
|
|
522
|
+
predicate: ["end"],
|
|
523
|
+
descendants: true,
|
|
524
|
+
isSignal: true
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
viewQueries: [
|
|
528
|
+
{
|
|
529
|
+
propertyName: "panelEl",
|
|
530
|
+
first: true,
|
|
531
|
+
predicate: ["panel"],
|
|
532
|
+
descendants: true,
|
|
533
|
+
isSignal: true
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
propertyName: "childMenus",
|
|
537
|
+
predicate: UiMenu,
|
|
538
|
+
descendants: true,
|
|
539
|
+
isSignal: true
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
propertyName: "connectedOverlays",
|
|
543
|
+
predicate: CdkConnectedOverlay,
|
|
544
|
+
descendants: true,
|
|
545
|
+
isSignal: true
|
|
546
|
+
}
|
|
547
|
+
],
|
|
548
|
+
ngImport: i0,
|
|
549
|
+
template: "<!-- Menu panel: shared between inline render and the CDK overlay popup. -->\n<ng-template #panelTpl>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"uid\"\n [uiMotion]=\"'slide-down'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n [motionOnInsert]=\"popup()\"\n >\n @if (startTemplate(); as tpl) {\n <div class=\"ui-menu-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container, focus\n lives on the items (roving tabindex). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <ul\n class=\"ui-menu-list\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"nodesTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: nodes() }\"\n />\n </ul>\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-menu-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Recursive node list (separator | header section | toggleable group | leaf item). -->\n<ng-template #nodesTpl let-nodes>\n @for (node of nodes; track node.key) {\n @switch (node.kind) {\n @case ('separator') {\n <li class=\"ui-menu-separator\" role=\"separator\" aria-hidden=\"true\">\n <ui-separator></ui-separator>\n </li>\n }\n\n @case ('header') {\n <li class=\"ui-menu-section\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <span class=\"ui-menu-header\" [attr.id]=\"headerId(node)\">\n @if (resolvedSubmenuHeaderTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n </span>\n <ul class=\"ui-menu-group\" role=\"group\" [attr.aria-labelledby]=\"headerId(node)\">\n <ng-container\n [ngTemplateOutlet]=\"nodesTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.children }\"\n />\n </ul>\n </li>\n }\n\n @case ('toggle') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <button\n type=\"button\"\n class=\"ui-menu-action _toggle\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [attr.aria-expanded]=\"node.expanded\"\n [attr.aria-controls]=\"groupId(node)\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onToggleClick(node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n @if (resolvedSubmenuHeaderTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n <!-- `_open`, not `_expanded`: a global helper class `._expanded` (width:100%) exists. -->\n <ui-icon\n class=\"ui-menu-chevron\"\n [class._open]=\"node.expanded\"\n name=\"chevron-down\"\n size=\"sm\"\n />\n </button>\n <div\n class=\"ui-menu-collapse\"\n [class._open]=\"node.expanded\"\n [attr.id]=\"groupId(node)\"\n [attr.inert]=\"node.expanded ? null : ''\"\n >\n <div class=\"ui-menu-collapse-inner\">\n <ul class=\"ui-menu-group _nested\" role=\"group\">\n <ng-container\n [ngTemplateOutlet]=\"nodesTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.children }\"\n />\n </ul>\n </div>\n </div>\n </li>\n }\n\n @case ('flyout') {\n <li\n class=\"ui-menu-entry\"\n role=\"none\"\n [class]=\"node.item.styleClass ?? ''\"\n cdkOverlayOrigin\n #flyoutOrigin=\"cdkOverlayOrigin\"\n >\n <button\n type=\"button\"\n class=\"ui-menu-action _has-sub\"\n [class._sub-open]=\"openFlyoutKey() === node.key\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n aria-haspopup=\"menu\"\n [attr.data-key]=\"node.key\"\n [attr.aria-expanded]=\"openFlyoutKey() === node.key\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onFlyoutClick(node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n @if (resolvedItemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n <ui-icon class=\"ui-menu-chevron\" name=\"chevron-right\" size=\"sm\" />\n </button>\n\n <!-- Cascading side panel: a nested menu in its own overlay, anchored to the item. -->\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"flyoutOrigin\"\n [cdkConnectedOverlayOpen]=\"openFlyoutKey() === node.key\"\n [cdkConnectedOverlayPositions]=\"flyoutPositions\"\n >\n <!-- Flyout: keyboard delegated to the panel, focus lives on the items. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-menu-flyout\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #flyoutMotion=\"uiMotion\"\n motionOnInsert\n (keydown)=\"onFlyoutPanelKeydown($event, node)\"\n >\n <ui-menu\n [items]=\"node.item.items ?? []\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n submenus=\"flyout\"\n styleClass=\"_floating\"\n [itemTemplate]=\"resolvedItemTemplate()\"\n [submenuHeaderTemplate]=\"resolvedSubmenuHeaderTemplate()\"\n [ariaLabel]=\"node.item.label\"\n (itemClick)=\"onChildItemClick($event)\"\n />\n </div>\n </ng-template>\n </li>\n }\n\n @case ('item') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <!-- Shared menuitem content (icon + label, or the #item template). -->\n <ng-template #content>\n @if (resolvedItemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n </ng-template>\n\n @if (node.item.routerLink !== undefined && !node.item.disabled) {\n <a\n class=\"ui-menu-action\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [routerLink]=\"node.item.routerLink\"\n [queryParams]=\"node.item.queryParams ?? null\"\n [queryParamsHandling]=\"node.item.queryParamsHandling ?? null\"\n routerLinkActive=\"_active\"\n [routerLinkActiveOptions]=\"{ exact: node.item.routerLinkActiveExact ?? false }\"\n [attr.target]=\"node.item.target || null\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n } @else if (node.item.url && !node.item.disabled) {\n <a\n class=\"ui-menu-action\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [attr.href]=\"node.item.url\"\n [attr.target]=\"node.item.target || null\"\n [attr.rel]=\"node.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"ui-menu-action\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n }\n </li>\n }\n }\n }\n</ng-template>\n\n@if (popup()) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"popupOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"hide()\"\n (overlayOutsideClick)=\"onPopupOutsideClick($event)\"\n (detach)=\"hide()\"\n >\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n </ng-template>\n} @else {\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n}\n",
|
|
550
|
+
styles: [".ui-menu{display:flex;flex-direction:column;gap:var(--units-2xs);padding:var(--ui-menu-panel-padding, var(--ui-overlay-panel-padding, var(--units-sm)));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, transparent);border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-menu-panel-surface, var(--global-background-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));border:none;min-width:var(--ui-menu-min-width, 13.125rem)}.ui-menu .ui-menu-action{min-height:var(--ui-menu-item-height, 2.5rem);padding:0 var(--ui-menu-item-padding-x, var(--units-md));font-size:var(--ui-menu-font-size, var(--size-typography-text-default))}.ui-menu .ui-menu-header{min-height:var(--ui-menu-header-height, 2rem);padding:0 var(--ui-menu-item-padding-x, var(--units-md));font-size:var(--ui-menu-header-font-size, var(--size-typography-text-md))}.ui-menu._popup,.ui-menu._floating{width:max-content;max-width:calc(100vw - var(--units-lg));max-height:calc(100vh - var(--units-lg));overflow:auto}.ui-menu-list,.ui-menu-group{display:flex;flex-direction:column;gap:var(--units-2xs);margin:0;padding:0;list-style:none}.ui-menu-group._nested{padding-left:var(--ui-menu-group-indent, var(--units-default))}.ui-menu-section,.ui-menu-entry{display:flex;flex-direction:column;gap:var(--units-2xs)}.ui-menu._small{min-width:var(--ui-menu-min-width-small, 10rem)}.ui-menu._small .ui-menu-action{min-height:var(--ui-menu-item-height-small, 2rem);padding:0 var(--ui-menu-item-padding-x-small, var(--units-sm));font-size:var(--ui-menu-font-size-small, var(--size-typography-text-md))}.ui-menu._small .ui-menu-header{min-height:var(--ui-menu-header-height-small, 1.5rem);padding:0 var(--ui-menu-item-padding-x-small, var(--units-sm));font-size:var(--ui-menu-header-font-size-small, var(--size-typography-text-sm))}.ui-menu-header{display:flex;align-items:center;gap:var(--units-sm);font-weight:var(--ui-menu-header-weight, var(--weight-bold));-webkit-user-select:none;user-select:none}.ui-menu-action{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;width:100%;border:none;border-radius:var(--ui-menu-item-radius, var(--radius-sm));background:none;font-family:var(--ui-menu-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);font-weight:var(--ui-menu-action-weight, var(--weight-regular));line-height:1.2;text-align:left;text-decoration:none;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-menu-action:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--ui-menu-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-menu-action-focus-ring-color, var(--global-border-focus))}.ui-menu-action:disabled{cursor:not-allowed}.ui-menu-item-icon,.ui-menu-chevron{flex-shrink:0;line-height:0}.ui-menu-item-label{flex:1 1 auto;min-width:0}.ui-menu-chevron{margin-left:auto;transition:rotate var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-menu-chevron._open{rotate:180deg}.ui-menu-flyout{display:block}.ui-menu-collapse{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-menu-collapse._open{grid-template-rows:1fr;opacity:1}.ui-menu-collapse-inner{min-height:0;overflow:hidden}.ui-menu._no-motion .ui-menu-collapse,.ui-menu._no-motion .ui-menu-chevron{transition:none}.ui-menu-separator{border:none}.ui-menu-start,.ui-menu-end{padding:var(--units-2xs) var(--units-md)}.ui-menu._high .ui-menu-header{color:var(--ui-menu-header-color, var(--navigation-high-content-default))}.ui-menu._high .ui-menu-action{color:var(--ui-menu-action-color, var(--navigation-high-content-default))}.ui-menu._high .ui-menu-action:hover:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-high-content-hover))}.ui-menu._high .ui-menu-action:active:not(:disabled){background-color:var(--ui-menu-action-surface-pressed, var(--navigation-high-surface-active));color:var(--ui-menu-action-color-pressed, var(--navigation-high-content-active))}.ui-menu._high .ui-menu-action._sub-open:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-high-content-hover))}.ui-menu._high .ui-menu-action._active{background-color:var(--ui-menu-action-surface-active, var(--navigation-high-surface-active));color:var(--ui-menu-action-color-active, var(--navigation-high-content-active))}.ui-menu._high .ui-menu-action:disabled{background-color:var(--ui-menu-action-surface-disabled, var(--navigation-high-surface-disabled));color:var(--ui-menu-action-color-disabled, var(--navigation-high-content-disabled))}.ui-menu._low .ui-menu-header{color:var(--ui-menu-header-color, var(--navigation-low-content-default))}.ui-menu._low .ui-menu-action{color:var(--ui-menu-action-color, var(--navigation-low-content-default))}.ui-menu._low .ui-menu-action:hover:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-low-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-low-content-hover))}.ui-menu._low .ui-menu-action:active:not(:disabled){background-color:var(--ui-menu-action-surface-pressed, var(--navigation-low-surface-active));color:var(--ui-menu-action-color-pressed, var(--navigation-low-content-active))}.ui-menu._low .ui-menu-action._sub-open:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-low-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-low-content-hover))}.ui-menu._low .ui-menu-action._active{background-color:var(--ui-menu-action-surface-active, var(--navigation-low-surface-active));color:var(--ui-menu-action-color-active, var(--navigation-low-content-active))}.ui-menu._low .ui-menu-action:disabled{background-color:var(--ui-menu-action-surface-disabled, var(--navigation-low-surface-disabled));color:var(--ui-menu-action-color-disabled, var(--navigation-low-content-disabled))}\n"],
|
|
551
|
+
dependencies: [
|
|
552
|
+
{
|
|
553
|
+
kind: "component",
|
|
554
|
+
type: UiMenu,
|
|
555
|
+
selector: "ui-menu",
|
|
556
|
+
inputs: [
|
|
557
|
+
"items",
|
|
558
|
+
"popup",
|
|
559
|
+
"expandedKeys",
|
|
560
|
+
"ariaLabel",
|
|
561
|
+
"ariaLabelledBy",
|
|
562
|
+
"styleClass",
|
|
563
|
+
"level",
|
|
564
|
+
"size",
|
|
565
|
+
"submenus",
|
|
566
|
+
"motion",
|
|
567
|
+
"ripple",
|
|
568
|
+
"autoFlip",
|
|
569
|
+
"tabindex",
|
|
570
|
+
"itemTemplate",
|
|
571
|
+
"submenuHeaderTemplate"
|
|
572
|
+
],
|
|
573
|
+
outputs: [
|
|
574
|
+
"expandedKeysChange",
|
|
575
|
+
"opened",
|
|
576
|
+
"closed",
|
|
577
|
+
"itemClick"
|
|
578
|
+
]
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
kind: "directive",
|
|
582
|
+
type: NgTemplateOutlet,
|
|
583
|
+
selector: "[ngTemplateOutlet]",
|
|
584
|
+
inputs: [
|
|
585
|
+
"ngTemplateOutletContext",
|
|
586
|
+
"ngTemplateOutlet",
|
|
587
|
+
"ngTemplateOutletInjector"
|
|
588
|
+
]
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
kind: "ngmodule",
|
|
592
|
+
type: OverlayModule
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
kind: "directive",
|
|
596
|
+
type: i1.CdkConnectedOverlay,
|
|
597
|
+
selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]",
|
|
598
|
+
inputs: [
|
|
599
|
+
"cdkConnectedOverlayOrigin",
|
|
600
|
+
"cdkConnectedOverlayPositions",
|
|
601
|
+
"cdkConnectedOverlayPositionStrategy",
|
|
602
|
+
"cdkConnectedOverlayOffsetX",
|
|
603
|
+
"cdkConnectedOverlayOffsetY",
|
|
604
|
+
"cdkConnectedOverlayWidth",
|
|
605
|
+
"cdkConnectedOverlayHeight",
|
|
606
|
+
"cdkConnectedOverlayMinWidth",
|
|
607
|
+
"cdkConnectedOverlayMinHeight",
|
|
608
|
+
"cdkConnectedOverlayBackdropClass",
|
|
609
|
+
"cdkConnectedOverlayPanelClass",
|
|
610
|
+
"cdkConnectedOverlayViewportMargin",
|
|
611
|
+
"cdkConnectedOverlayScrollStrategy",
|
|
612
|
+
"cdkConnectedOverlayOpen",
|
|
613
|
+
"cdkConnectedOverlayDisableClose",
|
|
614
|
+
"cdkConnectedOverlayTransformOriginOn",
|
|
615
|
+
"cdkConnectedOverlayHasBackdrop",
|
|
616
|
+
"cdkConnectedOverlayLockPosition",
|
|
617
|
+
"cdkConnectedOverlayFlexibleDimensions",
|
|
618
|
+
"cdkConnectedOverlayGrowAfterOpen",
|
|
619
|
+
"cdkConnectedOverlayPush",
|
|
620
|
+
"cdkConnectedOverlayDisposeOnNavigation",
|
|
621
|
+
"cdkConnectedOverlayUsePopover",
|
|
622
|
+
"cdkConnectedOverlayMatchWidth",
|
|
623
|
+
"cdkConnectedOverlay"
|
|
624
|
+
],
|
|
625
|
+
outputs: [
|
|
626
|
+
"backdropClick",
|
|
627
|
+
"positionChange",
|
|
628
|
+
"attach",
|
|
629
|
+
"detach",
|
|
630
|
+
"overlayKeydown",
|
|
631
|
+
"overlayOutsideClick"
|
|
632
|
+
],
|
|
633
|
+
exportAs: ["cdkConnectedOverlay"]
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
kind: "directive",
|
|
637
|
+
type: i1.CdkOverlayOrigin,
|
|
638
|
+
selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]",
|
|
639
|
+
exportAs: ["cdkOverlayOrigin"]
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
kind: "directive",
|
|
643
|
+
type: RouterLink,
|
|
644
|
+
selector: "[routerLink]",
|
|
645
|
+
inputs: [
|
|
646
|
+
"target",
|
|
647
|
+
"queryParams",
|
|
648
|
+
"fragment",
|
|
649
|
+
"queryParamsHandling",
|
|
650
|
+
"state",
|
|
651
|
+
"info",
|
|
652
|
+
"relativeTo",
|
|
653
|
+
"preserveFragment",
|
|
654
|
+
"skipLocationChange",
|
|
655
|
+
"replaceUrl",
|
|
656
|
+
"browserUrl",
|
|
657
|
+
"scroll",
|
|
658
|
+
"routerLink"
|
|
659
|
+
]
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
kind: "directive",
|
|
663
|
+
type: RouterLinkActive,
|
|
664
|
+
selector: "[routerLinkActive]",
|
|
665
|
+
inputs: [
|
|
666
|
+
"routerLinkActiveOptions",
|
|
667
|
+
"ariaCurrentWhenActive",
|
|
668
|
+
"routerLinkActive"
|
|
669
|
+
],
|
|
670
|
+
outputs: ["isActiveChange"],
|
|
671
|
+
exportAs: ["routerLinkActive"]
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
kind: "component",
|
|
675
|
+
type: UiIcon,
|
|
676
|
+
selector: "ui-icon",
|
|
677
|
+
inputs: [
|
|
678
|
+
"name",
|
|
679
|
+
"size",
|
|
680
|
+
"type",
|
|
681
|
+
"family",
|
|
682
|
+
"decorative",
|
|
683
|
+
"ariaLabel"
|
|
684
|
+
]
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
kind: "directive",
|
|
688
|
+
type: UiMotion,
|
|
689
|
+
selector: "[uiMotion]",
|
|
690
|
+
inputs: [
|
|
691
|
+
"uiMotion",
|
|
692
|
+
"motionDuration",
|
|
693
|
+
"motionDelay",
|
|
694
|
+
"motionEasing",
|
|
695
|
+
"motionEnterEasing",
|
|
696
|
+
"motionLeaveEasing",
|
|
697
|
+
"motionDistance",
|
|
698
|
+
"motionScale",
|
|
699
|
+
"motionDisabled",
|
|
700
|
+
"motionOnInsert"
|
|
701
|
+
],
|
|
702
|
+
exportAs: ["uiMotion"]
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
kind: "component",
|
|
706
|
+
type: UiSeparator,
|
|
707
|
+
selector: "ui-separator",
|
|
708
|
+
inputs: [
|
|
709
|
+
"label",
|
|
710
|
+
"orientation",
|
|
711
|
+
"variant",
|
|
712
|
+
"size",
|
|
713
|
+
"labelAlign",
|
|
714
|
+
"ariaLabel"
|
|
715
|
+
]
|
|
716
|
+
}
|
|
717
|
+
]
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
};
|
|
721
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
722
|
+
minVersion: "12.0.0",
|
|
723
|
+
version: "22.3.0",
|
|
724
|
+
ngImport: i0,
|
|
725
|
+
type: UiMenu,
|
|
726
|
+
decorators: [{
|
|
727
|
+
type: Component,
|
|
728
|
+
args: [{
|
|
729
|
+
selector: "ui-menu",
|
|
730
|
+
imports: [
|
|
731
|
+
NgTemplateOutlet,
|
|
732
|
+
OverlayModule,
|
|
733
|
+
RouterLink,
|
|
734
|
+
RouterLinkActive,
|
|
735
|
+
UiIcon,
|
|
736
|
+
UiMotion,
|
|
737
|
+
UiSeparator
|
|
738
|
+
],
|
|
739
|
+
host: { "[style.display]": "popup() ? 'contents' : 'block'" },
|
|
740
|
+
template: "<!-- Menu panel: shared between inline render and the CDK overlay popup. -->\n<ng-template #panelTpl>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"uid\"\n [uiMotion]=\"'slide-down'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n [motionOnInsert]=\"popup()\"\n >\n @if (startTemplate(); as tpl) {\n <div class=\"ui-menu-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container, focus\n lives on the items (roving tabindex). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <ul\n class=\"ui-menu-list\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"nodesTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: nodes() }\"\n />\n </ul>\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-menu-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Recursive node list (separator | header section | toggleable group | leaf item). -->\n<ng-template #nodesTpl let-nodes>\n @for (node of nodes; track node.key) {\n @switch (node.kind) {\n @case ('separator') {\n <li class=\"ui-menu-separator\" role=\"separator\" aria-hidden=\"true\">\n <ui-separator></ui-separator>\n </li>\n }\n\n @case ('header') {\n <li class=\"ui-menu-section\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <span class=\"ui-menu-header\" [attr.id]=\"headerId(node)\">\n @if (resolvedSubmenuHeaderTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n </span>\n <ul class=\"ui-menu-group\" role=\"group\" [attr.aria-labelledby]=\"headerId(node)\">\n <ng-container\n [ngTemplateOutlet]=\"nodesTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.children }\"\n />\n </ul>\n </li>\n }\n\n @case ('toggle') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <button\n type=\"button\"\n class=\"ui-menu-action _toggle\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [attr.aria-expanded]=\"node.expanded\"\n [attr.aria-controls]=\"groupId(node)\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onToggleClick(node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n @if (resolvedSubmenuHeaderTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n <!-- `_open`, not `_expanded`: a global helper class `._expanded` (width:100%) exists. -->\n <ui-icon\n class=\"ui-menu-chevron\"\n [class._open]=\"node.expanded\"\n name=\"chevron-down\"\n size=\"sm\"\n />\n </button>\n <div\n class=\"ui-menu-collapse\"\n [class._open]=\"node.expanded\"\n [attr.id]=\"groupId(node)\"\n [attr.inert]=\"node.expanded ? null : ''\"\n >\n <div class=\"ui-menu-collapse-inner\">\n <ul class=\"ui-menu-group _nested\" role=\"group\">\n <ng-container\n [ngTemplateOutlet]=\"nodesTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.children }\"\n />\n </ul>\n </div>\n </div>\n </li>\n }\n\n @case ('flyout') {\n <li\n class=\"ui-menu-entry\"\n role=\"none\"\n [class]=\"node.item.styleClass ?? ''\"\n cdkOverlayOrigin\n #flyoutOrigin=\"cdkOverlayOrigin\"\n >\n <button\n type=\"button\"\n class=\"ui-menu-action _has-sub\"\n [class._sub-open]=\"openFlyoutKey() === node.key\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n aria-haspopup=\"menu\"\n [attr.data-key]=\"node.key\"\n [attr.aria-expanded]=\"openFlyoutKey() === node.key\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onFlyoutClick(node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n @if (resolvedItemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n <ui-icon class=\"ui-menu-chevron\" name=\"chevron-right\" size=\"sm\" />\n </button>\n\n <!-- Cascading side panel: a nested menu in its own overlay, anchored to the item. -->\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"flyoutOrigin\"\n [cdkConnectedOverlayOpen]=\"openFlyoutKey() === node.key\"\n [cdkConnectedOverlayPositions]=\"flyoutPositions\"\n >\n <!-- Flyout: keyboard delegated to the panel, focus lives on the items. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-menu-flyout\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #flyoutMotion=\"uiMotion\"\n motionOnInsert\n (keydown)=\"onFlyoutPanelKeydown($event, node)\"\n >\n <ui-menu\n [items]=\"node.item.items ?? []\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n submenus=\"flyout\"\n styleClass=\"_floating\"\n [itemTemplate]=\"resolvedItemTemplate()\"\n [submenuHeaderTemplate]=\"resolvedSubmenuHeaderTemplate()\"\n [ariaLabel]=\"node.item.label\"\n (itemClick)=\"onChildItemClick($event)\"\n />\n </div>\n </ng-template>\n </li>\n }\n\n @case ('item') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <!-- Shared menuitem content (icon + label, or the #item template). -->\n <ng-template #content>\n @if (resolvedItemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: node.item }\"\n />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n </ng-template>\n\n @if (node.item.routerLink !== undefined && !node.item.disabled) {\n <a\n class=\"ui-menu-action\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [routerLink]=\"node.item.routerLink\"\n [queryParams]=\"node.item.queryParams ?? null\"\n [queryParamsHandling]=\"node.item.queryParamsHandling ?? null\"\n routerLinkActive=\"_active\"\n [routerLinkActiveOptions]=\"{ exact: node.item.routerLinkActiveExact ?? false }\"\n [attr.target]=\"node.item.target || null\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n } @else if (node.item.url && !node.item.disabled) {\n <a\n class=\"ui-menu-action\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [attr.href]=\"node.item.url\"\n [attr.target]=\"node.item.target || null\"\n [attr.rel]=\"node.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"ui-menu-action\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n }\n </li>\n }\n }\n }\n</ng-template>\n\n@if (popup()) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"popupOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"hide()\"\n (overlayOutsideClick)=\"onPopupOutsideClick($event)\"\n (detach)=\"hide()\"\n >\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n </ng-template>\n} @else {\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n}\n",
|
|
741
|
+
styles: [".ui-menu{display:flex;flex-direction:column;gap:var(--units-2xs);padding:var(--ui-menu-panel-padding, var(--ui-overlay-panel-padding, var(--units-sm)));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, transparent);border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-menu-panel-surface, var(--global-background-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));border:none;min-width:var(--ui-menu-min-width, 13.125rem)}.ui-menu .ui-menu-action{min-height:var(--ui-menu-item-height, 2.5rem);padding:0 var(--ui-menu-item-padding-x, var(--units-md));font-size:var(--ui-menu-font-size, var(--size-typography-text-default))}.ui-menu .ui-menu-header{min-height:var(--ui-menu-header-height, 2rem);padding:0 var(--ui-menu-item-padding-x, var(--units-md));font-size:var(--ui-menu-header-font-size, var(--size-typography-text-md))}.ui-menu._popup,.ui-menu._floating{width:max-content;max-width:calc(100vw - var(--units-lg));max-height:calc(100vh - var(--units-lg));overflow:auto}.ui-menu-list,.ui-menu-group{display:flex;flex-direction:column;gap:var(--units-2xs);margin:0;padding:0;list-style:none}.ui-menu-group._nested{padding-left:var(--ui-menu-group-indent, var(--units-default))}.ui-menu-section,.ui-menu-entry{display:flex;flex-direction:column;gap:var(--units-2xs)}.ui-menu._small{min-width:var(--ui-menu-min-width-small, 10rem)}.ui-menu._small .ui-menu-action{min-height:var(--ui-menu-item-height-small, 2rem);padding:0 var(--ui-menu-item-padding-x-small, var(--units-sm));font-size:var(--ui-menu-font-size-small, var(--size-typography-text-md))}.ui-menu._small .ui-menu-header{min-height:var(--ui-menu-header-height-small, 1.5rem);padding:0 var(--ui-menu-item-padding-x-small, var(--units-sm));font-size:var(--ui-menu-header-font-size-small, var(--size-typography-text-sm))}.ui-menu-header{display:flex;align-items:center;gap:var(--units-sm);font-weight:var(--ui-menu-header-weight, var(--weight-bold));-webkit-user-select:none;user-select:none}.ui-menu-action{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;width:100%;border:none;border-radius:var(--ui-menu-item-radius, var(--radius-sm));background:none;font-family:var(--ui-menu-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);font-weight:var(--ui-menu-action-weight, var(--weight-regular));line-height:1.2;text-align:left;text-decoration:none;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-menu-action:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--ui-menu-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-menu-action-focus-ring-color, var(--global-border-focus))}.ui-menu-action:disabled{cursor:not-allowed}.ui-menu-item-icon,.ui-menu-chevron{flex-shrink:0;line-height:0}.ui-menu-item-label{flex:1 1 auto;min-width:0}.ui-menu-chevron{margin-left:auto;transition:rotate var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-menu-chevron._open{rotate:180deg}.ui-menu-flyout{display:block}.ui-menu-collapse{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-menu-collapse._open{grid-template-rows:1fr;opacity:1}.ui-menu-collapse-inner{min-height:0;overflow:hidden}.ui-menu._no-motion .ui-menu-collapse,.ui-menu._no-motion .ui-menu-chevron{transition:none}.ui-menu-separator{border:none}.ui-menu-start,.ui-menu-end{padding:var(--units-2xs) var(--units-md)}.ui-menu._high .ui-menu-header{color:var(--ui-menu-header-color, var(--navigation-high-content-default))}.ui-menu._high .ui-menu-action{color:var(--ui-menu-action-color, var(--navigation-high-content-default))}.ui-menu._high .ui-menu-action:hover:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-high-content-hover))}.ui-menu._high .ui-menu-action:active:not(:disabled){background-color:var(--ui-menu-action-surface-pressed, var(--navigation-high-surface-active));color:var(--ui-menu-action-color-pressed, var(--navigation-high-content-active))}.ui-menu._high .ui-menu-action._sub-open:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-high-content-hover))}.ui-menu._high .ui-menu-action._active{background-color:var(--ui-menu-action-surface-active, var(--navigation-high-surface-active));color:var(--ui-menu-action-color-active, var(--navigation-high-content-active))}.ui-menu._high .ui-menu-action:disabled{background-color:var(--ui-menu-action-surface-disabled, var(--navigation-high-surface-disabled));color:var(--ui-menu-action-color-disabled, var(--navigation-high-content-disabled))}.ui-menu._low .ui-menu-header{color:var(--ui-menu-header-color, var(--navigation-low-content-default))}.ui-menu._low .ui-menu-action{color:var(--ui-menu-action-color, var(--navigation-low-content-default))}.ui-menu._low .ui-menu-action:hover:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-low-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-low-content-hover))}.ui-menu._low .ui-menu-action:active:not(:disabled){background-color:var(--ui-menu-action-surface-pressed, var(--navigation-low-surface-active));color:var(--ui-menu-action-color-pressed, var(--navigation-low-content-active))}.ui-menu._low .ui-menu-action._sub-open:not(:disabled){background-color:var(--ui-menu-action-surface-hover, var(--navigation-low-surface-hover));color:var(--ui-menu-action-color-hover, var(--navigation-low-content-hover))}.ui-menu._low .ui-menu-action._active{background-color:var(--ui-menu-action-surface-active, var(--navigation-low-surface-active));color:var(--ui-menu-action-color-active, var(--navigation-low-content-active))}.ui-menu._low .ui-menu-action:disabled{background-color:var(--ui-menu-action-surface-disabled, var(--navigation-low-surface-disabled));color:var(--ui-menu-action-color-disabled, var(--navigation-low-content-disabled))}\n"]
|
|
742
|
+
}]
|
|
743
|
+
}],
|
|
744
|
+
ctorParameters: () => [],
|
|
745
|
+
propDecorators: {
|
|
746
|
+
items: [{
|
|
747
|
+
type: i0.Input,
|
|
748
|
+
args: [{
|
|
749
|
+
isSignal: true,
|
|
750
|
+
alias: "items",
|
|
751
|
+
required: false
|
|
752
|
+
}]
|
|
753
|
+
}],
|
|
754
|
+
popup: [{
|
|
755
|
+
type: i0.Input,
|
|
756
|
+
args: [{
|
|
757
|
+
isSignal: true,
|
|
758
|
+
alias: "popup",
|
|
759
|
+
required: false
|
|
760
|
+
}]
|
|
761
|
+
}],
|
|
762
|
+
expandedKeys: [{
|
|
763
|
+
type: i0.Input,
|
|
764
|
+
args: [{
|
|
765
|
+
isSignal: true,
|
|
766
|
+
alias: "expandedKeys",
|
|
767
|
+
required: false
|
|
768
|
+
}]
|
|
769
|
+
}, {
|
|
770
|
+
type: i0.Output,
|
|
771
|
+
args: ["expandedKeysChange"]
|
|
772
|
+
}],
|
|
773
|
+
ariaLabel: [{
|
|
774
|
+
type: i0.Input,
|
|
775
|
+
args: [{
|
|
776
|
+
isSignal: true,
|
|
777
|
+
alias: "ariaLabel",
|
|
778
|
+
required: false
|
|
779
|
+
}]
|
|
780
|
+
}],
|
|
781
|
+
ariaLabelledBy: [{
|
|
782
|
+
type: i0.Input,
|
|
783
|
+
args: [{
|
|
784
|
+
isSignal: true,
|
|
785
|
+
alias: "ariaLabelledBy",
|
|
786
|
+
required: false
|
|
787
|
+
}]
|
|
788
|
+
}],
|
|
789
|
+
styleClass: [{
|
|
790
|
+
type: i0.Input,
|
|
791
|
+
args: [{
|
|
792
|
+
isSignal: true,
|
|
793
|
+
alias: "styleClass",
|
|
794
|
+
required: false
|
|
795
|
+
}]
|
|
796
|
+
}],
|
|
797
|
+
level: [{
|
|
798
|
+
type: i0.Input,
|
|
799
|
+
args: [{
|
|
800
|
+
isSignal: true,
|
|
801
|
+
alias: "level",
|
|
802
|
+
required: false
|
|
803
|
+
}]
|
|
804
|
+
}],
|
|
805
|
+
size: [{
|
|
806
|
+
type: i0.Input,
|
|
807
|
+
args: [{
|
|
808
|
+
isSignal: true,
|
|
809
|
+
alias: "size",
|
|
810
|
+
required: false
|
|
811
|
+
}]
|
|
812
|
+
}],
|
|
813
|
+
submenus: [{
|
|
814
|
+
type: i0.Input,
|
|
815
|
+
args: [{
|
|
816
|
+
isSignal: true,
|
|
817
|
+
alias: "submenus",
|
|
818
|
+
required: false
|
|
819
|
+
}]
|
|
820
|
+
}],
|
|
821
|
+
motion: [{
|
|
822
|
+
type: i0.Input,
|
|
823
|
+
args: [{
|
|
824
|
+
isSignal: true,
|
|
825
|
+
alias: "motion",
|
|
826
|
+
required: false
|
|
827
|
+
}]
|
|
828
|
+
}],
|
|
829
|
+
ripple: [{
|
|
830
|
+
type: i0.Input,
|
|
831
|
+
args: [{
|
|
832
|
+
isSignal: true,
|
|
833
|
+
alias: "ripple",
|
|
834
|
+
required: false
|
|
835
|
+
}]
|
|
836
|
+
}],
|
|
837
|
+
autoFlip: [{
|
|
838
|
+
type: i0.Input,
|
|
839
|
+
args: [{
|
|
840
|
+
isSignal: true,
|
|
841
|
+
alias: "autoFlip",
|
|
842
|
+
required: false
|
|
843
|
+
}]
|
|
844
|
+
}],
|
|
845
|
+
tabindex: [{
|
|
846
|
+
type: i0.Input,
|
|
847
|
+
args: [{
|
|
848
|
+
isSignal: true,
|
|
849
|
+
alias: "tabindex",
|
|
850
|
+
required: false
|
|
851
|
+
}]
|
|
852
|
+
}],
|
|
853
|
+
opened: [{
|
|
854
|
+
type: i0.Output,
|
|
855
|
+
args: ["opened"]
|
|
856
|
+
}],
|
|
857
|
+
closed: [{
|
|
858
|
+
type: i0.Output,
|
|
859
|
+
args: ["closed"]
|
|
860
|
+
}],
|
|
861
|
+
itemClick: [{
|
|
862
|
+
type: i0.Output,
|
|
863
|
+
args: ["itemClick"]
|
|
864
|
+
}],
|
|
865
|
+
itemTemplate: [{
|
|
866
|
+
type: i0.Input,
|
|
867
|
+
args: [{
|
|
868
|
+
isSignal: true,
|
|
869
|
+
alias: "itemTemplate",
|
|
870
|
+
required: false
|
|
871
|
+
}]
|
|
872
|
+
}],
|
|
873
|
+
submenuHeaderTemplate: [{
|
|
874
|
+
type: i0.Input,
|
|
875
|
+
args: [{
|
|
876
|
+
isSignal: true,
|
|
877
|
+
alias: "submenuHeaderTemplate",
|
|
878
|
+
required: false
|
|
879
|
+
}]
|
|
880
|
+
}],
|
|
881
|
+
itemTemplateContent: [{
|
|
882
|
+
type: i0.ContentChild,
|
|
883
|
+
args: ["item", { isSignal: true }]
|
|
884
|
+
}],
|
|
885
|
+
submenuHeaderTemplateContent: [{
|
|
886
|
+
type: i0.ContentChild,
|
|
887
|
+
args: ["submenuheader", { isSignal: true }]
|
|
888
|
+
}],
|
|
889
|
+
startTemplate: [{
|
|
890
|
+
type: i0.ContentChild,
|
|
891
|
+
args: ["start", { isSignal: true }]
|
|
892
|
+
}],
|
|
893
|
+
endTemplate: [{
|
|
894
|
+
type: i0.ContentChild,
|
|
895
|
+
args: ["end", { isSignal: true }]
|
|
896
|
+
}],
|
|
897
|
+
panelEl: [{
|
|
898
|
+
type: i0.ViewChild,
|
|
899
|
+
args: ["panel", { isSignal: true }]
|
|
900
|
+
}],
|
|
901
|
+
childMenus: [{
|
|
902
|
+
type: i0.ViewChildren,
|
|
903
|
+
args: [i0.forwardRef(() => UiMenu), { isSignal: true }]
|
|
904
|
+
}],
|
|
905
|
+
connectedOverlays: [{
|
|
906
|
+
type: i0.ViewChildren,
|
|
907
|
+
args: [i0.forwardRef(() => CdkConnectedOverlay), { isSignal: true }]
|
|
908
|
+
}]
|
|
909
|
+
}
|
|
910
|
+
});
|
|
550
911
|
export { UiMenu };
|
|
551
|
-
|
|
912
|
+
|
|
913
|
+
//# sourceMappingURL=4sh-ui-kit-navigation-ui-menu.mjs.map
|