@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,312 +1,523 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import * as i1 from
|
|
4
|
-
import { OverlayModule } from
|
|
5
|
-
import * as i2 from
|
|
6
|
-
import { A11yModule } from
|
|
7
|
-
import { UiMotion } from
|
|
8
|
-
import { closeOnNavigation } from
|
|
9
|
-
|
|
10
|
-
/** Gap (px) between the trigger and the panel, leaving room for the arrow — mirrors `$popover-arrow-size` in the SCSS. */
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, DOCUMENT, ElementRef, booleanAttribute, computed, effect, inject, input, isDevMode, output, signal, viewChild } from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/cdk/overlay";
|
|
4
|
+
import { OverlayModule } from "@angular/cdk/overlay";
|
|
5
|
+
import * as i2 from "@angular/cdk/a11y";
|
|
6
|
+
import { A11yModule } from "@angular/cdk/a11y";
|
|
7
|
+
import { UiMotion } from "@4sh/ui-kit/motion";
|
|
8
|
+
import { closeOnNavigation } from "@4sh/ui-kit/overlay";
|
|
11
9
|
const ARROW_GAP = 8;
|
|
12
|
-
/** Focusable descendants used to move focus into the panel on open. */
|
|
13
10
|
const FOCUSABLE_SELECTOR = [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
].join(
|
|
21
|
-
/** Process-wide counter for unique panel ids (aria-controls wiring). */
|
|
11
|
+
"a[href]",
|
|
12
|
+
"button:not([disabled])",
|
|
13
|
+
"input:not([disabled])",
|
|
14
|
+
"select:not([disabled])",
|
|
15
|
+
"textarea:not([disabled])",
|
|
16
|
+
"[tabindex]:not([tabindex=\"-1\"])"
|
|
17
|
+
].join(",");
|
|
22
18
|
let nextId = 0;
|
|
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
|
-
|
|
19
|
+
var UiPopover = class UiPopover {
|
|
20
|
+
constructor() {
|
|
21
|
+
this.dismissable = input(true, {
|
|
22
|
+
...ngDevMode ? { debugName: "dismissable" } : /* istanbul ignore next */ {},
|
|
23
|
+
transform: booleanAttribute
|
|
24
|
+
});
|
|
25
|
+
this.position = input("bottom", ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
|
|
26
|
+
this.showArrow = input(true, {
|
|
27
|
+
...ngDevMode ? { debugName: "showArrow" } : /* istanbul ignore next */ {},
|
|
28
|
+
transform: booleanAttribute
|
|
29
|
+
});
|
|
30
|
+
this.modal = input(false, {
|
|
31
|
+
...ngDevMode ? { debugName: "modal" } : /* istanbul ignore next */ {},
|
|
32
|
+
transform: booleanAttribute
|
|
33
|
+
});
|
|
34
|
+
this.role = input("dialog", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
|
|
35
|
+
this.ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
36
|
+
this.ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
37
|
+
this.focusOnShow = input(true, {
|
|
38
|
+
...ngDevMode ? { debugName: "focusOnShow" } : /* istanbul ignore next */ {},
|
|
39
|
+
transform: booleanAttribute
|
|
40
|
+
});
|
|
41
|
+
this.closeOnEscape = input(true, {
|
|
42
|
+
...ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {},
|
|
43
|
+
transform: booleanAttribute
|
|
44
|
+
});
|
|
45
|
+
this.motion = input(true, {
|
|
46
|
+
...ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {},
|
|
47
|
+
transform: booleanAttribute
|
|
48
|
+
});
|
|
49
|
+
this.styleClass = input(...ngDevMode ? [void 0, { debugName: "styleClass" }] : /* istanbul ignore next */ []);
|
|
50
|
+
this.shown = output();
|
|
51
|
+
this.hidden = output();
|
|
52
|
+
this.doc = inject(DOCUMENT);
|
|
53
|
+
this.panel = viewChild("panel", ...ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []);
|
|
54
|
+
this._open = signal(false, ...ngDevMode ? [{ debugName: "_open" }] : /* istanbul ignore next */ []);
|
|
55
|
+
this.visible = this._open.asReadonly();
|
|
56
|
+
this.origin = signal(null, ...ngDevMode ? [{ debugName: "origin" }] : /* istanbul ignore next */ []);
|
|
57
|
+
this.side = signal("bottom", ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
|
|
58
|
+
this.panelId = `ui-popover-${nextId++}`;
|
|
59
|
+
this.targetEl = null;
|
|
60
|
+
this.positions = computed(() => {
|
|
61
|
+
const top = {
|
|
62
|
+
originX: "center",
|
|
63
|
+
originY: "top",
|
|
64
|
+
overlayX: "center",
|
|
65
|
+
overlayY: "bottom",
|
|
66
|
+
offsetY: -8
|
|
67
|
+
};
|
|
68
|
+
const bottom = {
|
|
69
|
+
originX: "center",
|
|
70
|
+
originY: "bottom",
|
|
71
|
+
overlayX: "center",
|
|
72
|
+
overlayY: "top",
|
|
73
|
+
offsetY: ARROW_GAP
|
|
74
|
+
};
|
|
75
|
+
const left = {
|
|
76
|
+
originX: "start",
|
|
77
|
+
originY: "center",
|
|
78
|
+
overlayX: "end",
|
|
79
|
+
overlayY: "center",
|
|
80
|
+
offsetX: -8
|
|
81
|
+
};
|
|
82
|
+
const right = {
|
|
83
|
+
originX: "end",
|
|
84
|
+
originY: "center",
|
|
85
|
+
overlayX: "start",
|
|
86
|
+
overlayY: "center",
|
|
87
|
+
offsetX: ARROW_GAP
|
|
88
|
+
};
|
|
89
|
+
return {
|
|
90
|
+
top: [
|
|
91
|
+
top,
|
|
92
|
+
bottom,
|
|
93
|
+
right,
|
|
94
|
+
left
|
|
95
|
+
],
|
|
96
|
+
bottom: [
|
|
97
|
+
bottom,
|
|
98
|
+
top,
|
|
99
|
+
right,
|
|
100
|
+
left
|
|
101
|
+
],
|
|
102
|
+
left: [
|
|
103
|
+
left,
|
|
104
|
+
right,
|
|
105
|
+
top,
|
|
106
|
+
bottom
|
|
107
|
+
],
|
|
108
|
+
right: [
|
|
109
|
+
right,
|
|
110
|
+
left,
|
|
111
|
+
top,
|
|
112
|
+
bottom
|
|
113
|
+
]
|
|
114
|
+
}[this.position()];
|
|
115
|
+
}, ...ngDevMode ? [{ debugName: "positions" }] : /* istanbul ignore next */ []);
|
|
116
|
+
this.panelClasses = computed(() => {
|
|
117
|
+
const c = ["ui-popover", `_${this.side()}`];
|
|
118
|
+
if (!this.showArrow()) c.push("_no-arrow");
|
|
119
|
+
const extra = this.styleClass();
|
|
120
|
+
if (extra) c.push(extra);
|
|
121
|
+
return c.join(" ");
|
|
122
|
+
}, ...ngDevMode ? [{ debugName: "panelClasses" }] : /* istanbul ignore next */ []);
|
|
123
|
+
closeOnNavigation(() => this.hide());
|
|
124
|
+
if (isDevMode()) effect(() => {
|
|
125
|
+
if (this._open() && !this.ariaLabel() && !this.ariaLabelledBy()) console.warn("[ui-popover] Popover has no accessible name: provide `ariaLabel` or `ariaLabelledBy`.");
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
show(event, target) {
|
|
129
|
+
const anchor = this.resolveTarget(target) ?? this.resolveEventTarget(event);
|
|
130
|
+
if (!anchor) return;
|
|
131
|
+
event?.stopPropagation();
|
|
132
|
+
this.targetEl = anchor;
|
|
133
|
+
this.origin.set(anchor);
|
|
134
|
+
if (!this._open()) {
|
|
135
|
+
this._open.set(true);
|
|
136
|
+
this.applyTriggerAria(anchor);
|
|
137
|
+
this.shown.emit();
|
|
138
|
+
}
|
|
139
|
+
if (this.focusOnShow()) this.queueFocus();
|
|
140
|
+
}
|
|
141
|
+
hide() {
|
|
142
|
+
if (!this._open()) return;
|
|
143
|
+
const panelEl = this.panel()?.nativeElement;
|
|
144
|
+
const active = this.doc.activeElement;
|
|
145
|
+
const focusWasInside = !!panelEl && active instanceof Node && panelEl.contains(active);
|
|
146
|
+
this._open.set(false);
|
|
147
|
+
this.clearTriggerAria();
|
|
148
|
+
if (focusWasInside) this.targetEl?.focus();
|
|
149
|
+
this.hidden.emit();
|
|
150
|
+
}
|
|
151
|
+
toggle(event, target) {
|
|
152
|
+
this._open() ? this.hide() : this.show(event, target);
|
|
153
|
+
}
|
|
154
|
+
onPositionChange(change) {
|
|
155
|
+
if (this.targetEl && !this.targetEl.isConnected) {
|
|
156
|
+
this.hide();
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const pair = change.connectionPair;
|
|
160
|
+
if (pair.overlayY === "bottom") this.side.set("top");
|
|
161
|
+
else if (pair.overlayY === "top" && pair.originY === "bottom") this.side.set("bottom");
|
|
162
|
+
else if (pair.overlayX === "end") this.side.set("left");
|
|
163
|
+
else if (pair.overlayX === "start" && pair.originX === "end") this.side.set("right");
|
|
164
|
+
else this.side.set(this.position());
|
|
165
|
+
}
|
|
166
|
+
onOutsideClick(event) {
|
|
167
|
+
if (!this.dismissable()) return;
|
|
168
|
+
const target = event.target;
|
|
169
|
+
if (target instanceof Node && this.targetEl?.contains(target)) return;
|
|
170
|
+
this.hide();
|
|
171
|
+
}
|
|
172
|
+
onEscape(event) {
|
|
173
|
+
if (!this.closeOnEscape()) return;
|
|
174
|
+
event.stopPropagation();
|
|
175
|
+
this.hide();
|
|
176
|
+
}
|
|
177
|
+
resolveTarget(target) {
|
|
178
|
+
if (!target) return null;
|
|
179
|
+
return target instanceof ElementRef ? target.nativeElement : target;
|
|
180
|
+
}
|
|
181
|
+
resolveEventTarget(event) {
|
|
182
|
+
const el = event?.currentTarget ?? event?.target;
|
|
183
|
+
return el instanceof HTMLElement ? el : null;
|
|
184
|
+
}
|
|
185
|
+
applyTriggerAria(el) {
|
|
186
|
+
el.setAttribute("aria-expanded", "true");
|
|
187
|
+
el.setAttribute("aria-controls", this.panelId);
|
|
188
|
+
}
|
|
189
|
+
clearTriggerAria() {
|
|
190
|
+
const el = this.targetEl;
|
|
191
|
+
if (!el) return;
|
|
192
|
+
el.setAttribute("aria-expanded", "false");
|
|
193
|
+
el.removeAttribute("aria-controls");
|
|
194
|
+
}
|
|
195
|
+
queueFocus(attempts = 20) {
|
|
196
|
+
setTimeout(() => {
|
|
197
|
+
const panelEl = this.panel()?.nativeElement;
|
|
198
|
+
if (panelEl) this.focusFirst(panelEl);
|
|
199
|
+
else if (attempts > 0) this.queueFocus(attempts - 1);
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
focusFirst(panelEl) {
|
|
203
|
+
const auto = panelEl.querySelector("[autofocus]");
|
|
204
|
+
if (auto) {
|
|
205
|
+
auto.focus();
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
(panelEl.querySelector(FOCUSABLE_SELECTOR) ?? panelEl).focus();
|
|
209
|
+
}
|
|
210
|
+
static {
|
|
211
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
212
|
+
minVersion: "12.0.0",
|
|
213
|
+
version: "22.3.0",
|
|
214
|
+
ngImport: i0,
|
|
215
|
+
type: UiPopover,
|
|
216
|
+
deps: [],
|
|
217
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
static {
|
|
221
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
222
|
+
minVersion: "17.0.0",
|
|
223
|
+
version: "22.3.0",
|
|
224
|
+
type: UiPopover,
|
|
225
|
+
isStandalone: true,
|
|
226
|
+
selector: "ui-popover",
|
|
227
|
+
inputs: {
|
|
228
|
+
dismissable: {
|
|
229
|
+
classPropertyName: "dismissable",
|
|
230
|
+
publicName: "dismissable",
|
|
231
|
+
isSignal: true,
|
|
232
|
+
isRequired: false,
|
|
233
|
+
transformFunction: null
|
|
234
|
+
},
|
|
235
|
+
position: {
|
|
236
|
+
classPropertyName: "position",
|
|
237
|
+
publicName: "position",
|
|
238
|
+
isSignal: true,
|
|
239
|
+
isRequired: false,
|
|
240
|
+
transformFunction: null
|
|
241
|
+
},
|
|
242
|
+
showArrow: {
|
|
243
|
+
classPropertyName: "showArrow",
|
|
244
|
+
publicName: "showArrow",
|
|
245
|
+
isSignal: true,
|
|
246
|
+
isRequired: false,
|
|
247
|
+
transformFunction: null
|
|
248
|
+
},
|
|
249
|
+
modal: {
|
|
250
|
+
classPropertyName: "modal",
|
|
251
|
+
publicName: "modal",
|
|
252
|
+
isSignal: true,
|
|
253
|
+
isRequired: false,
|
|
254
|
+
transformFunction: null
|
|
255
|
+
},
|
|
256
|
+
role: {
|
|
257
|
+
classPropertyName: "role",
|
|
258
|
+
publicName: "role",
|
|
259
|
+
isSignal: true,
|
|
260
|
+
isRequired: false,
|
|
261
|
+
transformFunction: null
|
|
262
|
+
},
|
|
263
|
+
ariaLabel: {
|
|
264
|
+
classPropertyName: "ariaLabel",
|
|
265
|
+
publicName: "ariaLabel",
|
|
266
|
+
isSignal: true,
|
|
267
|
+
isRequired: false,
|
|
268
|
+
transformFunction: null
|
|
269
|
+
},
|
|
270
|
+
ariaLabelledBy: {
|
|
271
|
+
classPropertyName: "ariaLabelledBy",
|
|
272
|
+
publicName: "ariaLabelledBy",
|
|
273
|
+
isSignal: true,
|
|
274
|
+
isRequired: false,
|
|
275
|
+
transformFunction: null
|
|
276
|
+
},
|
|
277
|
+
focusOnShow: {
|
|
278
|
+
classPropertyName: "focusOnShow",
|
|
279
|
+
publicName: "focusOnShow",
|
|
280
|
+
isSignal: true,
|
|
281
|
+
isRequired: false,
|
|
282
|
+
transformFunction: null
|
|
283
|
+
},
|
|
284
|
+
closeOnEscape: {
|
|
285
|
+
classPropertyName: "closeOnEscape",
|
|
286
|
+
publicName: "closeOnEscape",
|
|
287
|
+
isSignal: true,
|
|
288
|
+
isRequired: false,
|
|
289
|
+
transformFunction: null
|
|
290
|
+
},
|
|
291
|
+
motion: {
|
|
292
|
+
classPropertyName: "motion",
|
|
293
|
+
publicName: "motion",
|
|
294
|
+
isSignal: true,
|
|
295
|
+
isRequired: false,
|
|
296
|
+
transformFunction: null
|
|
297
|
+
},
|
|
298
|
+
styleClass: {
|
|
299
|
+
classPropertyName: "styleClass",
|
|
300
|
+
publicName: "styleClass",
|
|
301
|
+
isSignal: true,
|
|
302
|
+
isRequired: false,
|
|
303
|
+
transformFunction: null
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
outputs: {
|
|
307
|
+
shown: "shown",
|
|
308
|
+
hidden: "hidden"
|
|
309
|
+
},
|
|
310
|
+
viewQueries: [{
|
|
311
|
+
propertyName: "panel",
|
|
312
|
+
first: true,
|
|
313
|
+
predicate: ["panel"],
|
|
314
|
+
descendants: true,
|
|
315
|
+
isSignal: true
|
|
316
|
+
}],
|
|
317
|
+
ngImport: i0,
|
|
318
|
+
template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n",
|
|
319
|
+
styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--ui-popover-color, var(--global-text-default));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--ui-popover-stroke, var(--global-border-default)));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-popover-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));overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--ui-popover-surface, var(--global-background-default));border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-popover-stroke, var(--global-border-default));rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"],
|
|
320
|
+
dependencies: [
|
|
321
|
+
{
|
|
322
|
+
kind: "ngmodule",
|
|
323
|
+
type: OverlayModule
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
kind: "directive",
|
|
327
|
+
type: i1.CdkConnectedOverlay,
|
|
328
|
+
selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]",
|
|
329
|
+
inputs: [
|
|
330
|
+
"cdkConnectedOverlayOrigin",
|
|
331
|
+
"cdkConnectedOverlayPositions",
|
|
332
|
+
"cdkConnectedOverlayPositionStrategy",
|
|
333
|
+
"cdkConnectedOverlayOffsetX",
|
|
334
|
+
"cdkConnectedOverlayOffsetY",
|
|
335
|
+
"cdkConnectedOverlayWidth",
|
|
336
|
+
"cdkConnectedOverlayHeight",
|
|
337
|
+
"cdkConnectedOverlayMinWidth",
|
|
338
|
+
"cdkConnectedOverlayMinHeight",
|
|
339
|
+
"cdkConnectedOverlayBackdropClass",
|
|
340
|
+
"cdkConnectedOverlayPanelClass",
|
|
341
|
+
"cdkConnectedOverlayViewportMargin",
|
|
342
|
+
"cdkConnectedOverlayScrollStrategy",
|
|
343
|
+
"cdkConnectedOverlayOpen",
|
|
344
|
+
"cdkConnectedOverlayDisableClose",
|
|
345
|
+
"cdkConnectedOverlayTransformOriginOn",
|
|
346
|
+
"cdkConnectedOverlayHasBackdrop",
|
|
347
|
+
"cdkConnectedOverlayLockPosition",
|
|
348
|
+
"cdkConnectedOverlayFlexibleDimensions",
|
|
349
|
+
"cdkConnectedOverlayGrowAfterOpen",
|
|
350
|
+
"cdkConnectedOverlayPush",
|
|
351
|
+
"cdkConnectedOverlayDisposeOnNavigation",
|
|
352
|
+
"cdkConnectedOverlayUsePopover",
|
|
353
|
+
"cdkConnectedOverlayMatchWidth",
|
|
354
|
+
"cdkConnectedOverlay"
|
|
355
|
+
],
|
|
356
|
+
outputs: [
|
|
357
|
+
"backdropClick",
|
|
358
|
+
"positionChange",
|
|
359
|
+
"attach",
|
|
360
|
+
"detach",
|
|
361
|
+
"overlayKeydown",
|
|
362
|
+
"overlayOutsideClick"
|
|
363
|
+
],
|
|
364
|
+
exportAs: ["cdkConnectedOverlay"]
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
kind: "ngmodule",
|
|
368
|
+
type: A11yModule
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
kind: "directive",
|
|
372
|
+
type: i2.CdkTrapFocus,
|
|
373
|
+
selector: "[cdkTrapFocus]",
|
|
374
|
+
inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"],
|
|
375
|
+
exportAs: ["cdkTrapFocus"]
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
kind: "directive",
|
|
379
|
+
type: UiMotion,
|
|
380
|
+
selector: "[uiMotion]",
|
|
381
|
+
inputs: [
|
|
382
|
+
"uiMotion",
|
|
383
|
+
"motionDuration",
|
|
384
|
+
"motionDelay",
|
|
385
|
+
"motionEasing",
|
|
386
|
+
"motionEnterEasing",
|
|
387
|
+
"motionLeaveEasing",
|
|
388
|
+
"motionDistance",
|
|
389
|
+
"motionScale",
|
|
390
|
+
"motionDisabled",
|
|
391
|
+
"motionOnInsert"
|
|
392
|
+
],
|
|
393
|
+
exportAs: ["uiMotion"]
|
|
394
|
+
}
|
|
395
|
+
]
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
400
|
+
minVersion: "12.0.0",
|
|
401
|
+
version: "22.3.0",
|
|
402
|
+
ngImport: i0,
|
|
403
|
+
type: UiPopover,
|
|
404
|
+
decorators: [{
|
|
405
|
+
type: Component,
|
|
406
|
+
args: [{
|
|
407
|
+
selector: "ui-popover",
|
|
408
|
+
imports: [
|
|
409
|
+
OverlayModule,
|
|
410
|
+
A11yModule,
|
|
411
|
+
UiMotion
|
|
412
|
+
],
|
|
413
|
+
template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n",
|
|
414
|
+
styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--ui-popover-color, var(--global-text-default));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--ui-popover-stroke, var(--global-border-default)));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-popover-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));overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--ui-popover-surface, var(--global-background-default));border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-popover-stroke, var(--global-border-default));rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"]
|
|
415
|
+
}]
|
|
416
|
+
}],
|
|
417
|
+
ctorParameters: () => [],
|
|
418
|
+
propDecorators: {
|
|
419
|
+
dismissable: [{
|
|
420
|
+
type: i0.Input,
|
|
421
|
+
args: [{
|
|
422
|
+
isSignal: true,
|
|
423
|
+
alias: "dismissable",
|
|
424
|
+
required: false
|
|
425
|
+
}]
|
|
426
|
+
}],
|
|
427
|
+
position: [{
|
|
428
|
+
type: i0.Input,
|
|
429
|
+
args: [{
|
|
430
|
+
isSignal: true,
|
|
431
|
+
alias: "position",
|
|
432
|
+
required: false
|
|
433
|
+
}]
|
|
434
|
+
}],
|
|
435
|
+
showArrow: [{
|
|
436
|
+
type: i0.Input,
|
|
437
|
+
args: [{
|
|
438
|
+
isSignal: true,
|
|
439
|
+
alias: "showArrow",
|
|
440
|
+
required: false
|
|
441
|
+
}]
|
|
442
|
+
}],
|
|
443
|
+
modal: [{
|
|
444
|
+
type: i0.Input,
|
|
445
|
+
args: [{
|
|
446
|
+
isSignal: true,
|
|
447
|
+
alias: "modal",
|
|
448
|
+
required: false
|
|
449
|
+
}]
|
|
450
|
+
}],
|
|
451
|
+
role: [{
|
|
452
|
+
type: i0.Input,
|
|
453
|
+
args: [{
|
|
454
|
+
isSignal: true,
|
|
455
|
+
alias: "role",
|
|
456
|
+
required: false
|
|
457
|
+
}]
|
|
458
|
+
}],
|
|
459
|
+
ariaLabel: [{
|
|
460
|
+
type: i0.Input,
|
|
461
|
+
args: [{
|
|
462
|
+
isSignal: true,
|
|
463
|
+
alias: "ariaLabel",
|
|
464
|
+
required: false
|
|
465
|
+
}]
|
|
466
|
+
}],
|
|
467
|
+
ariaLabelledBy: [{
|
|
468
|
+
type: i0.Input,
|
|
469
|
+
args: [{
|
|
470
|
+
isSignal: true,
|
|
471
|
+
alias: "ariaLabelledBy",
|
|
472
|
+
required: false
|
|
473
|
+
}]
|
|
474
|
+
}],
|
|
475
|
+
focusOnShow: [{
|
|
476
|
+
type: i0.Input,
|
|
477
|
+
args: [{
|
|
478
|
+
isSignal: true,
|
|
479
|
+
alias: "focusOnShow",
|
|
480
|
+
required: false
|
|
481
|
+
}]
|
|
482
|
+
}],
|
|
483
|
+
closeOnEscape: [{
|
|
484
|
+
type: i0.Input,
|
|
485
|
+
args: [{
|
|
486
|
+
isSignal: true,
|
|
487
|
+
alias: "closeOnEscape",
|
|
488
|
+
required: false
|
|
489
|
+
}]
|
|
490
|
+
}],
|
|
491
|
+
motion: [{
|
|
492
|
+
type: i0.Input,
|
|
493
|
+
args: [{
|
|
494
|
+
isSignal: true,
|
|
495
|
+
alias: "motion",
|
|
496
|
+
required: false
|
|
497
|
+
}]
|
|
498
|
+
}],
|
|
499
|
+
styleClass: [{
|
|
500
|
+
type: i0.Input,
|
|
501
|
+
args: [{
|
|
502
|
+
isSignal: true,
|
|
503
|
+
alias: "styleClass",
|
|
504
|
+
required: false
|
|
505
|
+
}]
|
|
506
|
+
}],
|
|
507
|
+
shown: [{
|
|
508
|
+
type: i0.Output,
|
|
509
|
+
args: ["shown"]
|
|
510
|
+
}],
|
|
511
|
+
hidden: [{
|
|
512
|
+
type: i0.Output,
|
|
513
|
+
args: ["hidden"]
|
|
514
|
+
}],
|
|
515
|
+
panel: [{
|
|
516
|
+
type: i0.ViewChild,
|
|
517
|
+
args: ["panel", { isSignal: true }]
|
|
518
|
+
}]
|
|
519
|
+
}
|
|
520
|
+
});
|
|
311
521
|
export { UiPopover };
|
|
312
|
-
|
|
522
|
+
|
|
523
|
+
//# sourceMappingURL=4sh-ui-kit-layout-ui-popover.mjs.map
|