@4sh/ui-kit 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.fr.md +10 -10
- package/README.md +10 -10
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-types.mjs +0 -12
- package/fesm2022/4sh-ui-kit.mjs +3 -15
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/component-api.json +299 -2
- package/mcp/data/text-search-docs.json +149 -9
- package/mcp/data/ui-config.json +378 -1
- package/mcp/index.js +8190 -2876
- package/mcp/package.json +1 -1
- package/package.json +5 -1
- package/styles/component-vars.scss +22 -1
- package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
- package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
- package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
- package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
- package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
- package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
- package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
- package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
- package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
- package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
- package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
- package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
- package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
- package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
- package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
- package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
- package/types/4sh-ui-kit-forms.d.ts +275 -194
- package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
- package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
- package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
- package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
- package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
- package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
- package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
- package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
- package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
- package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
- package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
- package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
- package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
- package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
- package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
- package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
- package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
- package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
- package/types/4sh-ui-kit-motion.d.ts +117 -67
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
- package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
- package/types/4sh-ui-kit-overlay.d.ts +6 -6
- package/types/4sh-ui-kit-ripple.d.ts +99 -74
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
- package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
- package/types/4sh-ui-kit-theming.d.ts +27 -29
- package/types/4sh-ui-kit-types.d.ts +6 -5
- package/types/4sh-ui-kit.d.ts +4 -3
- package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
|
@@ -1,605 +1,1020 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { DOCUMENT, isPlatformBrowser } from
|
|
4
|
-
import * as i1 from
|
|
5
|
-
import { A11yModule } from
|
|
6
|
-
import { UiIcon } from
|
|
7
|
-
import { lockBodyScroll, unlockBodyScroll } from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, Directive, Injector, PLATFORM_ID, afterNextRender, booleanAttribute, computed, contentChild, effect, inject, input, isDevMode, model, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
|
+
import { DOCUMENT, isPlatformBrowser } from "@angular/common";
|
|
4
|
+
import * as i1 from "@angular/cdk/a11y";
|
|
5
|
+
import { A11yModule } from "@angular/cdk/a11y";
|
|
6
|
+
import { UiIcon } from "@4sh/ui-kit/base/ui-icon";
|
|
7
|
+
import { lockBodyScroll, unlockBodyScroll } from "@4sh/ui-kit/overlay";
|
|
8
|
+
const HEIGHT_PRESETS = [
|
|
9
|
+
"auto",
|
|
10
|
+
"half",
|
|
11
|
+
"full"
|
|
12
|
+
];
|
|
12
13
|
const SHEET_BASE_Z_INDEX = 1100;
|
|
13
|
-
/** Fallback settle delay when the transition duration cannot be read (ms). */
|
|
14
14
|
const SETTLE_FALLBACK_MS = 320;
|
|
15
|
-
/** Margin added to the measured duration before the settle fallback fires (ms). */
|
|
16
15
|
const SETTLE_MARGIN_MS = 60;
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
/** The handle itself is interactive in snapping mode, yet it IS the grab affordance. */
|
|
20
|
-
const HANDLE_CLASS = 'ui-bottom-sheet-handle';
|
|
21
|
-
/** Process-wide sequence so `autoZIndex` layers a later sheet above earlier ones. */
|
|
16
|
+
const INTERACTIVE = "button, a[href], input, select, textarea, [role=\"button\"], [contenteditable]";
|
|
17
|
+
const HANDLE_CLASS = "ui-bottom-sheet-handle";
|
|
22
18
|
let zIndexSeq = 0;
|
|
23
|
-
/** Process-wide unique id source (aria wiring). */
|
|
24
19
|
let nextUid = 0;
|
|
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
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiBottomSheet, isStandalone: true, selector: "ui-bottom-sheet", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, hasBackdrop: { classPropertyName: "hasBackdrop", publicName: "hasBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnOverlayClick: { classPropertyName: "closeOnOverlayClick", publicName: "closeOnOverlayClick", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: true, isRequired: false, transformFunction: null }, enableDragToClose: { classPropertyName: "enableDragToClose", publicName: "enableDragToClose", isSignal: true, isRequired: false, transformFunction: null }, dragThreshold: { classPropertyName: "dragThreshold", publicName: "dragThreshold", isSignal: true, isRequired: false, transformFunction: null }, enableSnapping: { classPropertyName: "enableSnapping", publicName: "enableSnapping", isSignal: true, isRequired: false, transformFunction: null }, showHandle: { classPropertyName: "showHandle", publicName: "showHandle", isSignal: true, isRequired: false, transformFunction: null }, trapFocus: { classPropertyName: "trapFocus", publicName: "trapFocus", isSignal: true, isRequired: false, transformFunction: null }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, autoFocusElement: { classPropertyName: "autoFocusElement", publicName: "autoFocusElement", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, handleAriaLabel: { classPropertyName: "handleAriaLabel", publicName: "handleAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", 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 }, safeArea: { classPropertyName: "safeArea", publicName: "safeArea", isSignal: true, isRequired: false, transformFunction: null }, contained: { classPropertyName: "contained", publicName: "contained", isSignal: true, isRequired: false, transformFunction: null }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", opened: "opened", closed: "closed" }, queries: [{ propertyName: "headerSlot", first: true, predicate: UiBottomSheetHeader, descendants: true, isSignal: true }, { propertyName: "contentSlot", first: true, predicate: UiBottomSheetContent, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: UiBottomSheetFooter, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "positionerRef", first: true, predicate: ["positioner"], descendants: true, isSignal: true }, { propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n", styles: [".ui-bottom-sheet-scrim{position:fixed;inset:0;z-index:var(--ui-bottom-sheet-z-index, 1100);background-color:var(--ui-bottom-sheet-mask-background, var(--primitives-black-50));opacity:0;transition: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-bottom-sheet-scrim._open{opacity:1}.ui-bottom-sheet-scrim._contained{position:absolute}.ui-bottom-sheet-scrim._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-scrim{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-scrim{transition-duration:.01ms}.ui-bottom-sheet-positioner{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--ui-bottom-sheet-z-index, 1100);display:flex;justify-content:center;transition:transform 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-bottom-sheet-positioner._contained{position:absolute}.ui-bottom-sheet-positioner._dragging,.ui-bottom-sheet-positioner._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-positioner{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-positioner{transition-duration:.01ms}.ui-bottom-sheet{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:var(--ui-bottom-sheet-max-width, 90rem);max-height:var(--ui-bottom-sheet-max-height, 92dvh);border-radius:var(--ui-bottom-sheet-radius, var(--radius-default)) var(--ui-bottom-sheet-radius, var(--radius-default)) 0 0;background-color:var(--ui-bottom-sheet-surface, var(--global-background-default));box-shadow:var(--ui-bottom-sheet-shadow, var(--shadow-default-lg));color:var(--ui-bottom-sheet-color, var(--global-text-default));font-family:var(--ui-bottom-sheet-font-family, var(--fontfamily-base));overflow:hidden;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:height 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-bottom-sheet._half{height:var(--ui-bottom-sheet-half-height, 50dvh)}.ui-bottom-sheet._full{height:var(--ui-bottom-sheet-full-height, 100dvh);max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging{max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging,.ui-bottom-sheet._no-motion{transition:none}.ui-bottom-sheet._contained{max-height:92%}.ui-bottom-sheet._contained._half{height:50%}.ui-bottom-sheet._contained._full{height:100%;max-height:100%}.ui-bottom-sheet._contained._dragging{max-height:100%}.ui-bottom-sheet._safe-area{padding-bottom:var(--ui-bottom-sheet-safe-area-offset, env(safe-area-inset-bottom, 0px))}.ui-bottom-sheet-grab{flex:0 0 auto;display:flex;flex-direction:column;padding:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm)) var(--ui-bottom-sheet-grab-padding-x, var(--units-md))}.ui-bottom-sheet-grab._draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.ui-bottom-sheet-grab._draggable:active{cursor:grabbing}.ui-bottom-sheet-handle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);margin-inline:auto;padding:0;border:none;border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background:none}.ui-bottom-sheet-handle:after{content:\"\";display:block;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background-color:var(--ui-bottom-sheet-handle-color, var(--global-text-default))}.ui-bottom-sheet-handle._operable{width:var(--ui-bottom-sheet-handle-target-width, 4rem);height:var(--ui-bottom-sheet-handle-target-height, 1.5rem)}.ui-bottom-sheet-handle._operable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-handle-focus-ring-color, var(--global-border-focus))}.ui-bottom-sheet-header{flex:0 0 auto;display:flex;align-items:var(--ui-bottom-sheet-header-align, flex-start);gap:var(--ui-bottom-sheet-header-gap, var(--units-sm));padding-top:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm))}.ui-bottom-sheet-grab>.ui-bottom-sheet-header:first-child{padding-top:0}.ui-bottom-sheet-title{flex:1 1 auto;min-width:0;margin:0;font-family:var(--ui-bottom-sheet-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);font-weight:var(--ui-bottom-sheet-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-bottom-sheet-action{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-bottom-sheet-action-align, auto);justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-action-size, 2rem);height:var(--ui-bottom-sheet-action-size, 2rem);padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;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)))}.ui-bottom-sheet-action:hover{background-color:var(--ui-bottom-sheet-close-surface-hover, var(--global-background-muted-hover));color:var(--ui-bottom-sheet-close-color-hover, var(--global-text-muted-hover))}.ui-bottom-sheet-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-close-focus-ring-color, var(--global-border-focus))}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-action{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-action{transition-duration:.01ms}.ui-bottom-sheet-content{flex:1 1 auto;min-height:0;padding:var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));overflow-y:auto;overscroll-behavior:contain;font-size:var(--size-typography-text-md);line-height:1.5}.ui-bottom-sheet-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-bottom-sheet-footer-gap, var(--units-default));padding:var(--ui-bottom-sheet-footer-padding-top, var(--units-sm)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));border-top:var(--ui-bottom-sheet-footer-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-sheet-footer-stroke, transparent)}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
args: [{ selector: 'ui-bottom-sheet', imports: [A11yModule, UiIcon], template: "@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n", styles: [".ui-bottom-sheet-scrim{position:fixed;inset:0;z-index:var(--ui-bottom-sheet-z-index, 1100);background-color:var(--ui-bottom-sheet-mask-background, var(--primitives-black-50));opacity:0;transition: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-bottom-sheet-scrim._open{opacity:1}.ui-bottom-sheet-scrim._contained{position:absolute}.ui-bottom-sheet-scrim._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-scrim{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-scrim{transition-duration:.01ms}.ui-bottom-sheet-positioner{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--ui-bottom-sheet-z-index, 1100);display:flex;justify-content:center;transition:transform 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-bottom-sheet-positioner._contained{position:absolute}.ui-bottom-sheet-positioner._dragging,.ui-bottom-sheet-positioner._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-positioner{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-positioner{transition-duration:.01ms}.ui-bottom-sheet{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:var(--ui-bottom-sheet-max-width, 90rem);max-height:var(--ui-bottom-sheet-max-height, 92dvh);border-radius:var(--ui-bottom-sheet-radius, var(--radius-default)) var(--ui-bottom-sheet-radius, var(--radius-default)) 0 0;background-color:var(--ui-bottom-sheet-surface, var(--global-background-default));box-shadow:var(--ui-bottom-sheet-shadow, var(--shadow-default-lg));color:var(--ui-bottom-sheet-color, var(--global-text-default));font-family:var(--ui-bottom-sheet-font-family, var(--fontfamily-base));overflow:hidden;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:height 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-bottom-sheet._half{height:var(--ui-bottom-sheet-half-height, 50dvh)}.ui-bottom-sheet._full{height:var(--ui-bottom-sheet-full-height, 100dvh);max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging{max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging,.ui-bottom-sheet._no-motion{transition:none}.ui-bottom-sheet._contained{max-height:92%}.ui-bottom-sheet._contained._half{height:50%}.ui-bottom-sheet._contained._full{height:100%;max-height:100%}.ui-bottom-sheet._contained._dragging{max-height:100%}.ui-bottom-sheet._safe-area{padding-bottom:var(--ui-bottom-sheet-safe-area-offset, env(safe-area-inset-bottom, 0px))}.ui-bottom-sheet-grab{flex:0 0 auto;display:flex;flex-direction:column;padding:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm)) var(--ui-bottom-sheet-grab-padding-x, var(--units-md))}.ui-bottom-sheet-grab._draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.ui-bottom-sheet-grab._draggable:active{cursor:grabbing}.ui-bottom-sheet-handle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);margin-inline:auto;padding:0;border:none;border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background:none}.ui-bottom-sheet-handle:after{content:\"\";display:block;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background-color:var(--ui-bottom-sheet-handle-color, var(--global-text-default))}.ui-bottom-sheet-handle._operable{width:var(--ui-bottom-sheet-handle-target-width, 4rem);height:var(--ui-bottom-sheet-handle-target-height, 1.5rem)}.ui-bottom-sheet-handle._operable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-handle-focus-ring-color, var(--global-border-focus))}.ui-bottom-sheet-header{flex:0 0 auto;display:flex;align-items:var(--ui-bottom-sheet-header-align, flex-start);gap:var(--ui-bottom-sheet-header-gap, var(--units-sm));padding-top:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm))}.ui-bottom-sheet-grab>.ui-bottom-sheet-header:first-child{padding-top:0}.ui-bottom-sheet-title{flex:1 1 auto;min-width:0;margin:0;font-family:var(--ui-bottom-sheet-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);font-weight:var(--ui-bottom-sheet-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-bottom-sheet-action{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-bottom-sheet-action-align, auto);justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-action-size, 2rem);height:var(--ui-bottom-sheet-action-size, 2rem);padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;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)))}.ui-bottom-sheet-action:hover{background-color:var(--ui-bottom-sheet-close-surface-hover, var(--global-background-muted-hover));color:var(--ui-bottom-sheet-close-color-hover, var(--global-text-muted-hover))}.ui-bottom-sheet-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-close-focus-ring-color, var(--global-border-focus))}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-action{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-action{transition-duration:.01ms}.ui-bottom-sheet-content{flex:1 1 auto;min-height:0;padding:var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));overflow-y:auto;overscroll-behavior:contain;font-size:var(--size-typography-text-md);line-height:1.5}.ui-bottom-sheet-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-bottom-sheet-footer-gap, var(--units-default));padding:var(--ui-bottom-sheet-footer-padding-top, var(--units-sm)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));border-top:var(--ui-bottom-sheet-footer-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-sheet-footer-stroke, transparent)}\n"] }]
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
20
|
+
var UiBottomSheetHeader = class UiBottomSheetHeader {
|
|
21
|
+
static {
|
|
22
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
23
|
+
minVersion: "12.0.0",
|
|
24
|
+
version: "22.3.0",
|
|
25
|
+
ngImport: i0,
|
|
26
|
+
type: UiBottomSheetHeader,
|
|
27
|
+
deps: [],
|
|
28
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
static {
|
|
32
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
33
|
+
minVersion: "14.0.0",
|
|
34
|
+
version: "22.3.0",
|
|
35
|
+
type: UiBottomSheetHeader,
|
|
36
|
+
isStandalone: true,
|
|
37
|
+
selector: "[uiBottomSheetHeader], [ui-bottom-sheet-header]",
|
|
38
|
+
ngImport: i0
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
43
|
+
minVersion: "12.0.0",
|
|
44
|
+
version: "22.3.0",
|
|
45
|
+
ngImport: i0,
|
|
46
|
+
type: UiBottomSheetHeader,
|
|
47
|
+
decorators: [{
|
|
48
|
+
type: Directive,
|
|
49
|
+
args: [{ selector: "[uiBottomSheetHeader], [ui-bottom-sheet-header]" }]
|
|
50
|
+
}]
|
|
51
|
+
});
|
|
52
|
+
var UiBottomSheetContent = class UiBottomSheetContent {
|
|
53
|
+
static {
|
|
54
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
55
|
+
minVersion: "12.0.0",
|
|
56
|
+
version: "22.3.0",
|
|
57
|
+
ngImport: i0,
|
|
58
|
+
type: UiBottomSheetContent,
|
|
59
|
+
deps: [],
|
|
60
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
static {
|
|
64
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
65
|
+
minVersion: "14.0.0",
|
|
66
|
+
version: "22.3.0",
|
|
67
|
+
type: UiBottomSheetContent,
|
|
68
|
+
isStandalone: true,
|
|
69
|
+
selector: "[uiBottomSheetContent], [ui-bottom-sheet-content]",
|
|
70
|
+
ngImport: i0
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
75
|
+
minVersion: "12.0.0",
|
|
76
|
+
version: "22.3.0",
|
|
77
|
+
ngImport: i0,
|
|
78
|
+
type: UiBottomSheetContent,
|
|
79
|
+
decorators: [{
|
|
80
|
+
type: Directive,
|
|
81
|
+
args: [{ selector: "[uiBottomSheetContent], [ui-bottom-sheet-content]" }]
|
|
82
|
+
}]
|
|
83
|
+
});
|
|
84
|
+
var UiBottomSheetFooter = class UiBottomSheetFooter {
|
|
85
|
+
static {
|
|
86
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
87
|
+
minVersion: "12.0.0",
|
|
88
|
+
version: "22.3.0",
|
|
89
|
+
ngImport: i0,
|
|
90
|
+
type: UiBottomSheetFooter,
|
|
91
|
+
deps: [],
|
|
92
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
static {
|
|
96
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
97
|
+
minVersion: "14.0.0",
|
|
98
|
+
version: "22.3.0",
|
|
99
|
+
type: UiBottomSheetFooter,
|
|
100
|
+
isStandalone: true,
|
|
101
|
+
selector: "[uiBottomSheetFooter], [ui-bottom-sheet-footer]",
|
|
102
|
+
ngImport: i0
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
107
|
+
minVersion: "12.0.0",
|
|
108
|
+
version: "22.3.0",
|
|
109
|
+
ngImport: i0,
|
|
110
|
+
type: UiBottomSheetFooter,
|
|
111
|
+
decorators: [{
|
|
112
|
+
type: Directive,
|
|
113
|
+
args: [{ selector: "[uiBottomSheetFooter], [ui-bottom-sheet-footer]" }]
|
|
114
|
+
}]
|
|
115
|
+
});
|
|
116
|
+
var UiBottomSheet = class UiBottomSheet {
|
|
117
|
+
constructor() {
|
|
118
|
+
this.visible = model(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
119
|
+
this.height = input("auto", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
120
|
+
this.hasBackdrop = input(true, {
|
|
121
|
+
...ngDevMode ? { debugName: "hasBackdrop" } : /* istanbul ignore next */ {},
|
|
122
|
+
transform: booleanAttribute
|
|
123
|
+
});
|
|
124
|
+
this.closeOnOverlayClick = input(true, {
|
|
125
|
+
...ngDevMode ? { debugName: "closeOnOverlayClick" } : /* istanbul ignore next */ {},
|
|
126
|
+
transform: booleanAttribute
|
|
127
|
+
});
|
|
128
|
+
this.closeOnEscape = input(true, {
|
|
129
|
+
...ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {},
|
|
130
|
+
transform: booleanAttribute
|
|
131
|
+
});
|
|
132
|
+
this.blockScroll = input(true, {
|
|
133
|
+
...ngDevMode ? { debugName: "blockScroll" } : /* istanbul ignore next */ {},
|
|
134
|
+
transform: booleanAttribute
|
|
135
|
+
});
|
|
136
|
+
this.enableDragToClose = input(true, {
|
|
137
|
+
...ngDevMode ? { debugName: "enableDragToClose" } : /* istanbul ignore next */ {},
|
|
138
|
+
transform: booleanAttribute
|
|
139
|
+
});
|
|
140
|
+
this.dragThreshold = input(96, {
|
|
141
|
+
...ngDevMode ? { debugName: "dragThreshold" } : /* istanbul ignore next */ {},
|
|
142
|
+
transform: numberAttribute
|
|
143
|
+
});
|
|
144
|
+
this.enableSnapping = input(false, {
|
|
145
|
+
...ngDevMode ? { debugName: "enableSnapping" } : /* istanbul ignore next */ {},
|
|
146
|
+
transform: booleanAttribute
|
|
147
|
+
});
|
|
148
|
+
this.showHandle = input(true, {
|
|
149
|
+
...ngDevMode ? { debugName: "showHandle" } : /* istanbul ignore next */ {},
|
|
150
|
+
transform: booleanAttribute
|
|
151
|
+
});
|
|
152
|
+
this.trapFocus = input(true, {
|
|
153
|
+
...ngDevMode ? { debugName: "trapFocus" } : /* istanbul ignore next */ {},
|
|
154
|
+
transform: booleanAttribute
|
|
155
|
+
});
|
|
156
|
+
this.focusOnShow = input(true, {
|
|
157
|
+
...ngDevMode ? { debugName: "focusOnShow" } : /* istanbul ignore next */ {},
|
|
158
|
+
transform: booleanAttribute
|
|
159
|
+
});
|
|
160
|
+
this.autoFocusElement = input(null, ...ngDevMode ? [{ debugName: "autoFocusElement" }] : /* istanbul ignore next */ []);
|
|
161
|
+
this.header = input(...ngDevMode ? [void 0, { debugName: "header" }] : /* istanbul ignore next */ []);
|
|
162
|
+
this.closable = input(false, {
|
|
163
|
+
...ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {},
|
|
164
|
+
transform: booleanAttribute
|
|
165
|
+
});
|
|
166
|
+
this.closeIcon = input("xmark", ...ngDevMode ? [{ debugName: "closeIcon" }] : /* istanbul ignore next */ []);
|
|
167
|
+
this.closeAriaLabel = input("Fermer", ...ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []);
|
|
168
|
+
this.handleAriaLabel = input("Redimensionner le panneau", ...ngDevMode ? [{ debugName: "handleAriaLabel" }] : /* istanbul ignore next */ []);
|
|
169
|
+
this.role = input("dialog", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
|
|
170
|
+
this.ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
171
|
+
this.ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
172
|
+
this.safeArea = input(true, {
|
|
173
|
+
...ngDevMode ? { debugName: "safeArea" } : /* istanbul ignore next */ {},
|
|
174
|
+
transform: booleanAttribute
|
|
175
|
+
});
|
|
176
|
+
this.contained = input(false, {
|
|
177
|
+
...ngDevMode ? { debugName: "contained" } : /* istanbul ignore next */ {},
|
|
178
|
+
transform: booleanAttribute
|
|
179
|
+
});
|
|
180
|
+
this.motionDisabled = input(false, {
|
|
181
|
+
...ngDevMode ? { debugName: "motionDisabled" } : /* istanbul ignore next */ {},
|
|
182
|
+
transform: booleanAttribute
|
|
183
|
+
});
|
|
184
|
+
this.styleClass = input(...ngDevMode ? [void 0, { debugName: "styleClass" }] : /* istanbul ignore next */ []);
|
|
185
|
+
this.autoZIndex = input(true, {
|
|
186
|
+
...ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {},
|
|
187
|
+
transform: booleanAttribute
|
|
188
|
+
});
|
|
189
|
+
this.baseZIndex = input(0, {
|
|
190
|
+
...ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {},
|
|
191
|
+
transform: numberAttribute
|
|
192
|
+
});
|
|
193
|
+
this.opened = output();
|
|
194
|
+
this.closed = output();
|
|
195
|
+
this.headerSlot = contentChild(UiBottomSheetHeader, ...ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []);
|
|
196
|
+
this.contentSlot = contentChild(UiBottomSheetContent, ...ngDevMode ? [{ debugName: "contentSlot" }] : /* istanbul ignore next */ []);
|
|
197
|
+
this.footerSlot = contentChild(UiBottomSheetFooter, ...ngDevMode ? [{ debugName: "footerSlot" }] : /* istanbul ignore next */ []);
|
|
198
|
+
this.positionerRef = viewChild("positioner", ...ngDevMode ? [{ debugName: "positionerRef" }] : /* istanbul ignore next */ []);
|
|
199
|
+
this.panelRef = viewChild("panel", ...ngDevMode ? [{ debugName: "panelRef" }] : /* istanbul ignore next */ []);
|
|
200
|
+
this.document = inject(DOCUMENT);
|
|
201
|
+
this.injector = inject(Injector);
|
|
202
|
+
this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
203
|
+
this.zSeq = ++zIndexSeq;
|
|
204
|
+
this.uid = `ui-bottom-sheet-${nextUid++}`;
|
|
205
|
+
this.titleId = `${this.uid}-title`;
|
|
206
|
+
this.mounted = signal(false, ...ngDevMode ? [{ debugName: "mounted" }] : /* istanbul ignore next */ []);
|
|
207
|
+
this.atRest = signal(false, ...ngDevMode ? [{ debugName: "atRest" }] : /* istanbul ignore next */ []);
|
|
208
|
+
this.dragOffset = signal(0, ...ngDevMode ? [{ debugName: "dragOffset" }] : /* istanbul ignore next */ []);
|
|
209
|
+
this.dragHeight = signal(null, ...ngDevMode ? [{ debugName: "dragHeight" }] : /* istanbul ignore next */ []);
|
|
210
|
+
this.dragging = signal(false, ...ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []);
|
|
211
|
+
this.snapped = signal(false, ...ngDevMode ? [{ debugName: "snapped" }] : /* istanbul ignore next */ []);
|
|
212
|
+
this.locked = false;
|
|
213
|
+
this.pending = null;
|
|
214
|
+
this.settleTimer = null;
|
|
215
|
+
this.focusTimer = null;
|
|
216
|
+
this.dragPointerId = null;
|
|
217
|
+
this.dragStartY = 0;
|
|
218
|
+
this.dragStartHeight = 0;
|
|
219
|
+
this.zIndex = computed(() => {
|
|
220
|
+
const base = this.baseZIndex();
|
|
221
|
+
if (this.autoZIndex()) return SHEET_BASE_Z_INDEX + base + this.zSeq;
|
|
222
|
+
return base > 0 ? base : SHEET_BASE_Z_INDEX;
|
|
223
|
+
}, ...ngDevMode ? [{ debugName: "zIndex" }] : /* istanbul ignore next */ []);
|
|
224
|
+
this.canSnap = computed(() => this.enableSnapping() && this.height() === "half", ...ngDevMode ? [{ debugName: "canSnap" }] : /* istanbul ignore next */ []);
|
|
225
|
+
this.dragEnabled = computed(() => this.enableDragToClose() || this.canSnap(), ...ngDevMode ? [{ debugName: "dragEnabled" }] : /* istanbul ignore next */ []);
|
|
226
|
+
this.effectiveHeight = computed(() => this.canSnap() && this.snapped() ? "full" : this.height(), ...ngDevMode ? [{ debugName: "effectiveHeight" }] : /* istanbul ignore next */ []);
|
|
227
|
+
this.heightPreset = computed(() => {
|
|
228
|
+
const h = this.effectiveHeight();
|
|
229
|
+
return HEIGHT_PRESETS.includes(h) ? h : null;
|
|
230
|
+
}, ...ngDevMode ? [{ debugName: "heightPreset" }] : /* istanbul ignore next */ []);
|
|
231
|
+
this.inlineHeight = computed(() => {
|
|
232
|
+
const drag = this.dragHeight();
|
|
233
|
+
if (drag !== null) return `${drag}px`;
|
|
234
|
+
return this.heightPreset() ? null : this.effectiveHeight();
|
|
235
|
+
}, ...ngDevMode ? [{ debugName: "inlineHeight" }] : /* istanbul ignore next */ []);
|
|
236
|
+
this.panelTransform = computed(() => {
|
|
237
|
+
if (!this.atRest()) return "translateY(100%)";
|
|
238
|
+
const offset = this.dragOffset();
|
|
239
|
+
return offset > 0 ? `translateY(${offset}px)` : "translateY(0)";
|
|
240
|
+
}, ...ngDevMode ? [{ debugName: "panelTransform" }] : /* istanbul ignore next */ []);
|
|
241
|
+
this.panelClasses = computed(() => {
|
|
242
|
+
const classes = ["ui-bottom-sheet"];
|
|
243
|
+
const preset = this.heightPreset();
|
|
244
|
+
if (preset) classes.push(`_${preset}`);
|
|
245
|
+
if (this.contained()) classes.push("_contained");
|
|
246
|
+
if (this.safeArea() && !this.contained()) classes.push("_safe-area");
|
|
247
|
+
if (this.dragging()) classes.push("_dragging");
|
|
248
|
+
if (this.motionDisabled()) classes.push("_no-motion");
|
|
249
|
+
const extra = this.styleClass();
|
|
250
|
+
if (extra) classes.push(extra);
|
|
251
|
+
return classes.join(" ");
|
|
252
|
+
}, ...ngDevMode ? [{ debugName: "panelClasses" }] : /* istanbul ignore next */ []);
|
|
253
|
+
this.hasTitle = computed(() => !!this.headerSlot() || !!this.header(), ...ngDevMode ? [{ debugName: "hasTitle" }] : /* istanbul ignore next */ []);
|
|
254
|
+
this.hasHeaderRegion = computed(() => this.hasTitle() || this.closable(), ...ngDevMode ? [{ debugName: "hasHeaderRegion" }] : /* istanbul ignore next */ []);
|
|
255
|
+
this.showHeaderString = computed(() => !this.headerSlot() && !!this.header(), ...ngDevMode ? [{ debugName: "showHeaderString" }] : /* istanbul ignore next */ []);
|
|
256
|
+
this.labelledBy = computed(() => this.ariaLabelledBy() ?? (this.hasTitle() ? this.titleId : null), ...ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []);
|
|
257
|
+
this.resolvedAriaLabel = computed(() => this.labelledBy() ? null : this.ariaLabel(), ...ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []);
|
|
258
|
+
let wasVisible = false;
|
|
259
|
+
effect(() => {
|
|
260
|
+
const v = this.visible();
|
|
261
|
+
untracked(() => {
|
|
262
|
+
if (v && !wasVisible) {
|
|
263
|
+
wasVisible = true;
|
|
264
|
+
this.beginOpen();
|
|
265
|
+
} else if (!v && wasVisible) {
|
|
266
|
+
wasVisible = false;
|
|
267
|
+
this.beginClose();
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
if (isDevMode()) effect(() => {
|
|
272
|
+
if (this.visible() && !this.labelledBy() && !this.resolvedAriaLabel()) console.warn("[ui-bottom-sheet] Panel has no accessible name: provide `header`, `ariaLabel` or `ariaLabelledBy`.");
|
|
273
|
+
});
|
|
274
|
+
inject(DestroyRef).onDestroy(() => {
|
|
275
|
+
this.clearSettle();
|
|
276
|
+
this.clearFocus();
|
|
277
|
+
this.releaseLock();
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
open() {
|
|
281
|
+
this.visible.set(true);
|
|
282
|
+
}
|
|
283
|
+
close() {
|
|
284
|
+
this.visible.set(false);
|
|
285
|
+
}
|
|
286
|
+
toggle() {
|
|
287
|
+
this.visible.update((v) => !v);
|
|
288
|
+
}
|
|
289
|
+
focus() {
|
|
290
|
+
this.panelRef()?.nativeElement.focus({ preventScroll: true });
|
|
291
|
+
}
|
|
292
|
+
beginOpen() {
|
|
293
|
+
this.clearSettle();
|
|
294
|
+
this.snapped.set(false);
|
|
295
|
+
this.dragOffset.set(0);
|
|
296
|
+
this.dragHeight.set(null);
|
|
297
|
+
this.dragging.set(false);
|
|
298
|
+
this.mounted.set(true);
|
|
299
|
+
if (!this.isBrowser) {
|
|
300
|
+
this.atRest.set(true);
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
if (this.blockScroll() && !this.contained() && !this.locked) {
|
|
304
|
+
lockBodyScroll(this.document);
|
|
305
|
+
this.locked = true;
|
|
306
|
+
}
|
|
307
|
+
afterNextRender(() => {
|
|
308
|
+
this.positionerRef()?.nativeElement.offsetHeight;
|
|
309
|
+
this.atRest.set(true);
|
|
310
|
+
this.awaitTransition("open");
|
|
311
|
+
this.applyAutoFocus();
|
|
312
|
+
}, { injector: this.injector });
|
|
313
|
+
}
|
|
314
|
+
beginClose() {
|
|
315
|
+
if (!this.mounted()) return;
|
|
316
|
+
this.clearSettle();
|
|
317
|
+
this.clearFocus();
|
|
318
|
+
this.endDrag();
|
|
319
|
+
this.dragOffset.set(0);
|
|
320
|
+
this.dragHeight.set(null);
|
|
321
|
+
this.atRest.set(false);
|
|
322
|
+
this.awaitTransition("close");
|
|
323
|
+
}
|
|
324
|
+
awaitTransition(phase) {
|
|
325
|
+
this.pending = phase;
|
|
326
|
+
if (!this.isBrowser) {
|
|
327
|
+
this.settle(phase);
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
this.settleTimer = setTimeout(() => this.settle(phase), this.transitionMs() + SETTLE_MARGIN_MS);
|
|
331
|
+
}
|
|
332
|
+
transitionMs() {
|
|
333
|
+
const el = this.positionerRef()?.nativeElement;
|
|
334
|
+
const view = this.document.defaultView;
|
|
335
|
+
if (!el || !view) return SETTLE_FALLBACK_MS;
|
|
336
|
+
const raw = view.getComputedStyle(el).transitionDuration.split(",")[0]?.trim() ?? "";
|
|
337
|
+
const value = Number.parseFloat(raw);
|
|
338
|
+
if (Number.isNaN(value)) return SETTLE_FALLBACK_MS;
|
|
339
|
+
return raw.endsWith("ms") ? value : value * 1e3;
|
|
340
|
+
}
|
|
341
|
+
onTransitionEnd(event) {
|
|
342
|
+
if (event.propertyName !== "transform") return;
|
|
343
|
+
if (event.target !== this.positionerRef()?.nativeElement) return;
|
|
344
|
+
if (this.pending) this.settle(this.pending);
|
|
345
|
+
}
|
|
346
|
+
settle(phase) {
|
|
347
|
+
if (this.pending !== phase) return;
|
|
348
|
+
this.clearSettle();
|
|
349
|
+
if (phase === "open") this.opened.emit();
|
|
350
|
+
else {
|
|
351
|
+
this.mounted.set(false);
|
|
352
|
+
this.releaseLock();
|
|
353
|
+
this.closed.emit();
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
clearSettle() {
|
|
357
|
+
this.pending = null;
|
|
358
|
+
if (this.settleTimer !== null) {
|
|
359
|
+
clearTimeout(this.settleTimer);
|
|
360
|
+
this.settleTimer = null;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
releaseLock() {
|
|
364
|
+
if (this.locked) {
|
|
365
|
+
unlockBodyScroll(this.document);
|
|
366
|
+
this.locked = false;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
applyAutoFocus() {
|
|
370
|
+
const selector = this.autoFocusElement();
|
|
371
|
+
if (!selector || !this.focusOnShow()) return;
|
|
372
|
+
let attempts = 0;
|
|
373
|
+
const tryFocus = () => {
|
|
374
|
+
const target = this.panelRef()?.nativeElement.querySelector(selector);
|
|
375
|
+
if (target) {
|
|
376
|
+
target.focus({ preventScroll: true });
|
|
377
|
+
this.focusTimer = null;
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
if (++attempts >= 5) {
|
|
381
|
+
this.focusTimer = null;
|
|
382
|
+
if (isDevMode()) console.warn(`[ui-bottom-sheet] autoFocusElement "${selector}" matched nothing.`);
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
this.focusTimer = setTimeout(tryFocus, 16);
|
|
386
|
+
};
|
|
387
|
+
this.focusTimer = setTimeout(tryFocus, 0);
|
|
388
|
+
}
|
|
389
|
+
clearFocus() {
|
|
390
|
+
if (this.focusTimer !== null) {
|
|
391
|
+
clearTimeout(this.focusTimer);
|
|
392
|
+
this.focusTimer = null;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
onKeydown(event) {
|
|
396
|
+
if (event.key === "Escape" && this.closeOnEscape()) {
|
|
397
|
+
event.stopPropagation();
|
|
398
|
+
this.close();
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
onHandleKeydown(event) {
|
|
402
|
+
if (!this.canSnap()) return;
|
|
403
|
+
switch (event.key) {
|
|
404
|
+
case "ArrowUp":
|
|
405
|
+
this.snapped.set(true);
|
|
406
|
+
break;
|
|
407
|
+
case "ArrowDown":
|
|
408
|
+
this.snapped.set(false);
|
|
409
|
+
break;
|
|
410
|
+
case "Enter":
|
|
411
|
+
case " ":
|
|
412
|
+
this.snapped.update((s) => !s);
|
|
413
|
+
break;
|
|
414
|
+
default: return;
|
|
415
|
+
}
|
|
416
|
+
event.preventDefault();
|
|
417
|
+
}
|
|
418
|
+
onScrimPointerDown(event) {
|
|
419
|
+
if (!this.closeOnOverlayClick()) return;
|
|
420
|
+
if (event.target === event.currentTarget) this.close();
|
|
421
|
+
}
|
|
422
|
+
onDragPointerDown(event) {
|
|
423
|
+
if (!this.dragEnabled() || this.dragPointerId !== null) return;
|
|
424
|
+
if (event.pointerType === "mouse" && event.button !== 0) return;
|
|
425
|
+
const control = event.target?.closest(INTERACTIVE);
|
|
426
|
+
if (control && !control.classList.contains(HANDLE_CLASS)) return;
|
|
427
|
+
const host = event.currentTarget;
|
|
428
|
+
this.dragPointerId = event.pointerId;
|
|
429
|
+
this.dragStartY = event.clientY;
|
|
430
|
+
this.dragStartHeight = this.panelRef()?.nativeElement.offsetHeight ?? 0;
|
|
431
|
+
this.dragging.set(true);
|
|
432
|
+
host.setPointerCapture(event.pointerId);
|
|
433
|
+
}
|
|
434
|
+
onDragPointerMove(event) {
|
|
435
|
+
if (event.pointerId !== this.dragPointerId) return;
|
|
436
|
+
const delta = event.clientY - this.dragStartY;
|
|
437
|
+
if (delta >= 0) {
|
|
438
|
+
this.dragHeight.set(null);
|
|
439
|
+
this.dragOffset.set(this.enableDragToClose() ? delta : 0);
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
this.dragOffset.set(0);
|
|
443
|
+
if (!this.canSnap() || this.snapped()) return;
|
|
444
|
+
const ceiling = this.viewportHeight();
|
|
445
|
+
this.dragHeight.set(Math.min(ceiling, this.dragStartHeight - delta));
|
|
446
|
+
}
|
|
447
|
+
onDragPointerUp(event) {
|
|
448
|
+
if (event.pointerId !== this.dragPointerId) return;
|
|
449
|
+
const offset = this.dragOffset();
|
|
450
|
+
const grown = (this.dragHeight() ?? this.dragStartHeight) - this.dragStartHeight;
|
|
451
|
+
const threshold = Math.max(1, this.dragThreshold());
|
|
452
|
+
this.endDrag();
|
|
453
|
+
this.dragOffset.set(0);
|
|
454
|
+
this.dragHeight.set(null);
|
|
455
|
+
if (grown >= threshold) this.snapped.set(true);
|
|
456
|
+
else if (offset >= threshold) {
|
|
457
|
+
if (this.canSnap() && this.snapped()) this.snapped.set(false);
|
|
458
|
+
else if (this.enableDragToClose()) this.close();
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
endDrag() {
|
|
462
|
+
this.dragPointerId = null;
|
|
463
|
+
this.dragging.set(false);
|
|
464
|
+
}
|
|
465
|
+
viewportHeight() {
|
|
466
|
+
if (this.contained()) {
|
|
467
|
+
const parent = this.positionerRef()?.nativeElement.parentElement;
|
|
468
|
+
if (parent) return parent.clientHeight;
|
|
469
|
+
}
|
|
470
|
+
return this.document.defaultView?.innerHeight ?? this.dragStartHeight;
|
|
471
|
+
}
|
|
472
|
+
static {
|
|
473
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
474
|
+
minVersion: "12.0.0",
|
|
475
|
+
version: "22.3.0",
|
|
476
|
+
ngImport: i0,
|
|
477
|
+
type: UiBottomSheet,
|
|
478
|
+
deps: [],
|
|
479
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
static {
|
|
483
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
484
|
+
minVersion: "17.0.0",
|
|
485
|
+
version: "22.3.0",
|
|
486
|
+
type: UiBottomSheet,
|
|
487
|
+
isStandalone: true,
|
|
488
|
+
selector: "ui-bottom-sheet",
|
|
489
|
+
inputs: {
|
|
490
|
+
visible: {
|
|
491
|
+
classPropertyName: "visible",
|
|
492
|
+
publicName: "visible",
|
|
493
|
+
isSignal: true,
|
|
494
|
+
isRequired: false,
|
|
495
|
+
transformFunction: null
|
|
496
|
+
},
|
|
497
|
+
height: {
|
|
498
|
+
classPropertyName: "height",
|
|
499
|
+
publicName: "height",
|
|
500
|
+
isSignal: true,
|
|
501
|
+
isRequired: false,
|
|
502
|
+
transformFunction: null
|
|
503
|
+
},
|
|
504
|
+
hasBackdrop: {
|
|
505
|
+
classPropertyName: "hasBackdrop",
|
|
506
|
+
publicName: "hasBackdrop",
|
|
507
|
+
isSignal: true,
|
|
508
|
+
isRequired: false,
|
|
509
|
+
transformFunction: null
|
|
510
|
+
},
|
|
511
|
+
closeOnOverlayClick: {
|
|
512
|
+
classPropertyName: "closeOnOverlayClick",
|
|
513
|
+
publicName: "closeOnOverlayClick",
|
|
514
|
+
isSignal: true,
|
|
515
|
+
isRequired: false,
|
|
516
|
+
transformFunction: null
|
|
517
|
+
},
|
|
518
|
+
closeOnEscape: {
|
|
519
|
+
classPropertyName: "closeOnEscape",
|
|
520
|
+
publicName: "closeOnEscape",
|
|
521
|
+
isSignal: true,
|
|
522
|
+
isRequired: false,
|
|
523
|
+
transformFunction: null
|
|
524
|
+
},
|
|
525
|
+
blockScroll: {
|
|
526
|
+
classPropertyName: "blockScroll",
|
|
527
|
+
publicName: "blockScroll",
|
|
528
|
+
isSignal: true,
|
|
529
|
+
isRequired: false,
|
|
530
|
+
transformFunction: null
|
|
531
|
+
},
|
|
532
|
+
enableDragToClose: {
|
|
533
|
+
classPropertyName: "enableDragToClose",
|
|
534
|
+
publicName: "enableDragToClose",
|
|
535
|
+
isSignal: true,
|
|
536
|
+
isRequired: false,
|
|
537
|
+
transformFunction: null
|
|
538
|
+
},
|
|
539
|
+
dragThreshold: {
|
|
540
|
+
classPropertyName: "dragThreshold",
|
|
541
|
+
publicName: "dragThreshold",
|
|
542
|
+
isSignal: true,
|
|
543
|
+
isRequired: false,
|
|
544
|
+
transformFunction: null
|
|
545
|
+
},
|
|
546
|
+
enableSnapping: {
|
|
547
|
+
classPropertyName: "enableSnapping",
|
|
548
|
+
publicName: "enableSnapping",
|
|
549
|
+
isSignal: true,
|
|
550
|
+
isRequired: false,
|
|
551
|
+
transformFunction: null
|
|
552
|
+
},
|
|
553
|
+
showHandle: {
|
|
554
|
+
classPropertyName: "showHandle",
|
|
555
|
+
publicName: "showHandle",
|
|
556
|
+
isSignal: true,
|
|
557
|
+
isRequired: false,
|
|
558
|
+
transformFunction: null
|
|
559
|
+
},
|
|
560
|
+
trapFocus: {
|
|
561
|
+
classPropertyName: "trapFocus",
|
|
562
|
+
publicName: "trapFocus",
|
|
563
|
+
isSignal: true,
|
|
564
|
+
isRequired: false,
|
|
565
|
+
transformFunction: null
|
|
566
|
+
},
|
|
567
|
+
focusOnShow: {
|
|
568
|
+
classPropertyName: "focusOnShow",
|
|
569
|
+
publicName: "focusOnShow",
|
|
570
|
+
isSignal: true,
|
|
571
|
+
isRequired: false,
|
|
572
|
+
transformFunction: null
|
|
573
|
+
},
|
|
574
|
+
autoFocusElement: {
|
|
575
|
+
classPropertyName: "autoFocusElement",
|
|
576
|
+
publicName: "autoFocusElement",
|
|
577
|
+
isSignal: true,
|
|
578
|
+
isRequired: false,
|
|
579
|
+
transformFunction: null
|
|
580
|
+
},
|
|
581
|
+
header: {
|
|
582
|
+
classPropertyName: "header",
|
|
583
|
+
publicName: "header",
|
|
584
|
+
isSignal: true,
|
|
585
|
+
isRequired: false,
|
|
586
|
+
transformFunction: null
|
|
587
|
+
},
|
|
588
|
+
closable: {
|
|
589
|
+
classPropertyName: "closable",
|
|
590
|
+
publicName: "closable",
|
|
591
|
+
isSignal: true,
|
|
592
|
+
isRequired: false,
|
|
593
|
+
transformFunction: null
|
|
594
|
+
},
|
|
595
|
+
closeIcon: {
|
|
596
|
+
classPropertyName: "closeIcon",
|
|
597
|
+
publicName: "closeIcon",
|
|
598
|
+
isSignal: true,
|
|
599
|
+
isRequired: false,
|
|
600
|
+
transformFunction: null
|
|
601
|
+
},
|
|
602
|
+
closeAriaLabel: {
|
|
603
|
+
classPropertyName: "closeAriaLabel",
|
|
604
|
+
publicName: "closeAriaLabel",
|
|
605
|
+
isSignal: true,
|
|
606
|
+
isRequired: false,
|
|
607
|
+
transformFunction: null
|
|
608
|
+
},
|
|
609
|
+
handleAriaLabel: {
|
|
610
|
+
classPropertyName: "handleAriaLabel",
|
|
611
|
+
publicName: "handleAriaLabel",
|
|
612
|
+
isSignal: true,
|
|
613
|
+
isRequired: false,
|
|
614
|
+
transformFunction: null
|
|
615
|
+
},
|
|
616
|
+
role: {
|
|
617
|
+
classPropertyName: "role",
|
|
618
|
+
publicName: "role",
|
|
619
|
+
isSignal: true,
|
|
620
|
+
isRequired: false,
|
|
621
|
+
transformFunction: null
|
|
622
|
+
},
|
|
623
|
+
ariaLabel: {
|
|
624
|
+
classPropertyName: "ariaLabel",
|
|
625
|
+
publicName: "ariaLabel",
|
|
626
|
+
isSignal: true,
|
|
627
|
+
isRequired: false,
|
|
628
|
+
transformFunction: null
|
|
629
|
+
},
|
|
630
|
+
ariaLabelledBy: {
|
|
631
|
+
classPropertyName: "ariaLabelledBy",
|
|
632
|
+
publicName: "ariaLabelledBy",
|
|
633
|
+
isSignal: true,
|
|
634
|
+
isRequired: false,
|
|
635
|
+
transformFunction: null
|
|
636
|
+
},
|
|
637
|
+
safeArea: {
|
|
638
|
+
classPropertyName: "safeArea",
|
|
639
|
+
publicName: "safeArea",
|
|
640
|
+
isSignal: true,
|
|
641
|
+
isRequired: false,
|
|
642
|
+
transformFunction: null
|
|
643
|
+
},
|
|
644
|
+
contained: {
|
|
645
|
+
classPropertyName: "contained",
|
|
646
|
+
publicName: "contained",
|
|
647
|
+
isSignal: true,
|
|
648
|
+
isRequired: false,
|
|
649
|
+
transformFunction: null
|
|
650
|
+
},
|
|
651
|
+
motionDisabled: {
|
|
652
|
+
classPropertyName: "motionDisabled",
|
|
653
|
+
publicName: "motionDisabled",
|
|
654
|
+
isSignal: true,
|
|
655
|
+
isRequired: false,
|
|
656
|
+
transformFunction: null
|
|
657
|
+
},
|
|
658
|
+
styleClass: {
|
|
659
|
+
classPropertyName: "styleClass",
|
|
660
|
+
publicName: "styleClass",
|
|
661
|
+
isSignal: true,
|
|
662
|
+
isRequired: false,
|
|
663
|
+
transformFunction: null
|
|
664
|
+
},
|
|
665
|
+
autoZIndex: {
|
|
666
|
+
classPropertyName: "autoZIndex",
|
|
667
|
+
publicName: "autoZIndex",
|
|
668
|
+
isSignal: true,
|
|
669
|
+
isRequired: false,
|
|
670
|
+
transformFunction: null
|
|
671
|
+
},
|
|
672
|
+
baseZIndex: {
|
|
673
|
+
classPropertyName: "baseZIndex",
|
|
674
|
+
publicName: "baseZIndex",
|
|
675
|
+
isSignal: true,
|
|
676
|
+
isRequired: false,
|
|
677
|
+
transformFunction: null
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
outputs: {
|
|
681
|
+
visible: "visibleChange",
|
|
682
|
+
opened: "opened",
|
|
683
|
+
closed: "closed"
|
|
684
|
+
},
|
|
685
|
+
queries: [
|
|
686
|
+
{
|
|
687
|
+
propertyName: "headerSlot",
|
|
688
|
+
first: true,
|
|
689
|
+
predicate: UiBottomSheetHeader,
|
|
690
|
+
descendants: true,
|
|
691
|
+
isSignal: true
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
propertyName: "contentSlot",
|
|
695
|
+
first: true,
|
|
696
|
+
predicate: UiBottomSheetContent,
|
|
697
|
+
descendants: true,
|
|
698
|
+
isSignal: true
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
propertyName: "footerSlot",
|
|
702
|
+
first: true,
|
|
703
|
+
predicate: UiBottomSheetFooter,
|
|
704
|
+
descendants: true,
|
|
705
|
+
isSignal: true
|
|
706
|
+
}
|
|
707
|
+
],
|
|
708
|
+
viewQueries: [{
|
|
709
|
+
propertyName: "positionerRef",
|
|
710
|
+
first: true,
|
|
711
|
+
predicate: ["positioner"],
|
|
712
|
+
descendants: true,
|
|
713
|
+
isSignal: true
|
|
714
|
+
}, {
|
|
715
|
+
propertyName: "panelRef",
|
|
716
|
+
first: true,
|
|
717
|
+
predicate: ["panel"],
|
|
718
|
+
descendants: true,
|
|
719
|
+
isSignal: true
|
|
720
|
+
}],
|
|
721
|
+
ngImport: i0,
|
|
722
|
+
template: "@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n",
|
|
723
|
+
styles: [".ui-bottom-sheet-scrim{position:fixed;inset:0;z-index:var(--ui-bottom-sheet-z-index, 1100);background-color:var(--ui-bottom-sheet-mask-background, var(--primitives-black-50));opacity:0;transition: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-bottom-sheet-scrim._open{opacity:1}.ui-bottom-sheet-scrim._contained{position:absolute}.ui-bottom-sheet-scrim._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-scrim{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-scrim{transition-duration:.01ms}.ui-bottom-sheet-positioner{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--ui-bottom-sheet-z-index, 1100);display:flex;justify-content:center;transition:transform 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-bottom-sheet-positioner._contained{position:absolute}.ui-bottom-sheet-positioner._dragging,.ui-bottom-sheet-positioner._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-positioner{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-positioner{transition-duration:.01ms}.ui-bottom-sheet{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:var(--ui-bottom-sheet-max-width, 90rem);max-height:var(--ui-bottom-sheet-max-height, 92dvh);border-radius:var(--ui-bottom-sheet-radius, var(--radius-default)) var(--ui-bottom-sheet-radius, var(--radius-default)) 0 0;background-color:var(--ui-bottom-sheet-surface, var(--global-background-default));box-shadow:var(--ui-bottom-sheet-shadow, var(--shadow-default-lg));color:var(--ui-bottom-sheet-color, var(--global-text-default));font-family:var(--ui-bottom-sheet-font-family, var(--fontfamily-base));overflow:hidden;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:height 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-bottom-sheet._half{height:var(--ui-bottom-sheet-half-height, 50dvh)}.ui-bottom-sheet._full{height:var(--ui-bottom-sheet-full-height, 100dvh);max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging{max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging,.ui-bottom-sheet._no-motion{transition:none}.ui-bottom-sheet._contained{max-height:92%}.ui-bottom-sheet._contained._half{height:50%}.ui-bottom-sheet._contained._full{height:100%;max-height:100%}.ui-bottom-sheet._contained._dragging{max-height:100%}.ui-bottom-sheet._safe-area{padding-bottom:var(--ui-bottom-sheet-safe-area-offset, env(safe-area-inset-bottom, 0px))}.ui-bottom-sheet-grab{flex:0 0 auto;display:flex;flex-direction:column;padding:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm)) var(--ui-bottom-sheet-grab-padding-x, var(--units-md))}.ui-bottom-sheet-grab._draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.ui-bottom-sheet-grab._draggable:active{cursor:grabbing}.ui-bottom-sheet-handle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);margin-inline:auto;padding:0;border:none;border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background:none}.ui-bottom-sheet-handle:after{content:\"\";display:block;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background-color:var(--ui-bottom-sheet-handle-color, var(--global-text-default))}.ui-bottom-sheet-handle._operable{width:var(--ui-bottom-sheet-handle-target-width, 4rem);height:var(--ui-bottom-sheet-handle-target-height, 1.5rem)}.ui-bottom-sheet-handle._operable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-handle-focus-ring-color, var(--global-border-focus))}.ui-bottom-sheet-header{flex:0 0 auto;display:flex;align-items:var(--ui-bottom-sheet-header-align, flex-start);gap:var(--ui-bottom-sheet-header-gap, var(--units-sm));padding-top:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm))}.ui-bottom-sheet-grab>.ui-bottom-sheet-header:first-child{padding-top:0}.ui-bottom-sheet-title{flex:1 1 auto;min-width:0;margin:0;font-family:var(--ui-bottom-sheet-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);font-weight:var(--ui-bottom-sheet-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-bottom-sheet-action{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-bottom-sheet-action-align, auto);justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-action-size, 2rem);height:var(--ui-bottom-sheet-action-size, 2rem);padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;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)))}.ui-bottom-sheet-action:hover{background-color:var(--ui-bottom-sheet-close-surface-hover, var(--global-background-muted-hover));color:var(--ui-bottom-sheet-close-color-hover, var(--global-text-muted-hover))}.ui-bottom-sheet-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-close-focus-ring-color, var(--global-border-focus))}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-action{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-action{transition-duration:.01ms}.ui-bottom-sheet-content{flex:1 1 auto;min-height:0;padding:var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));overflow-y:auto;overscroll-behavior:contain;font-size:var(--size-typography-text-md);line-height:1.5}.ui-bottom-sheet-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-bottom-sheet-footer-gap, var(--units-default));padding:var(--ui-bottom-sheet-footer-padding-top, var(--units-sm)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));border-top:var(--ui-bottom-sheet-footer-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-sheet-footer-stroke, transparent)}\n"],
|
|
724
|
+
dependencies: [
|
|
725
|
+
{
|
|
726
|
+
kind: "ngmodule",
|
|
727
|
+
type: A11yModule
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
kind: "directive",
|
|
731
|
+
type: i1.CdkTrapFocus,
|
|
732
|
+
selector: "[cdkTrapFocus]",
|
|
733
|
+
inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"],
|
|
734
|
+
exportAs: ["cdkTrapFocus"]
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
kind: "component",
|
|
738
|
+
type: UiIcon,
|
|
739
|
+
selector: "ui-icon",
|
|
740
|
+
inputs: [
|
|
741
|
+
"name",
|
|
742
|
+
"size",
|
|
743
|
+
"type",
|
|
744
|
+
"family",
|
|
745
|
+
"decorative",
|
|
746
|
+
"ariaLabel"
|
|
747
|
+
]
|
|
748
|
+
}
|
|
749
|
+
]
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
};
|
|
753
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
754
|
+
minVersion: "12.0.0",
|
|
755
|
+
version: "22.3.0",
|
|
756
|
+
ngImport: i0,
|
|
757
|
+
type: UiBottomSheet,
|
|
758
|
+
decorators: [{
|
|
759
|
+
type: Component,
|
|
760
|
+
args: [{
|
|
761
|
+
selector: "ui-bottom-sheet",
|
|
762
|
+
imports: [A11yModule, UiIcon],
|
|
763
|
+
template: "@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n",
|
|
764
|
+
styles: [".ui-bottom-sheet-scrim{position:fixed;inset:0;z-index:var(--ui-bottom-sheet-z-index, 1100);background-color:var(--ui-bottom-sheet-mask-background, var(--primitives-black-50));opacity:0;transition: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-bottom-sheet-scrim._open{opacity:1}.ui-bottom-sheet-scrim._contained{position:absolute}.ui-bottom-sheet-scrim._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-scrim{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-scrim{transition-duration:.01ms}.ui-bottom-sheet-positioner{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--ui-bottom-sheet-z-index, 1100);display:flex;justify-content:center;transition:transform 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-bottom-sheet-positioner._contained{position:absolute}.ui-bottom-sheet-positioner._dragging,.ui-bottom-sheet-positioner._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-positioner{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-positioner{transition-duration:.01ms}.ui-bottom-sheet{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:var(--ui-bottom-sheet-max-width, 90rem);max-height:var(--ui-bottom-sheet-max-height, 92dvh);border-radius:var(--ui-bottom-sheet-radius, var(--radius-default)) var(--ui-bottom-sheet-radius, var(--radius-default)) 0 0;background-color:var(--ui-bottom-sheet-surface, var(--global-background-default));box-shadow:var(--ui-bottom-sheet-shadow, var(--shadow-default-lg));color:var(--ui-bottom-sheet-color, var(--global-text-default));font-family:var(--ui-bottom-sheet-font-family, var(--fontfamily-base));overflow:hidden;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:height 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-bottom-sheet._half{height:var(--ui-bottom-sheet-half-height, 50dvh)}.ui-bottom-sheet._full{height:var(--ui-bottom-sheet-full-height, 100dvh);max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging{max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging,.ui-bottom-sheet._no-motion{transition:none}.ui-bottom-sheet._contained{max-height:92%}.ui-bottom-sheet._contained._half{height:50%}.ui-bottom-sheet._contained._full{height:100%;max-height:100%}.ui-bottom-sheet._contained._dragging{max-height:100%}.ui-bottom-sheet._safe-area{padding-bottom:var(--ui-bottom-sheet-safe-area-offset, env(safe-area-inset-bottom, 0px))}.ui-bottom-sheet-grab{flex:0 0 auto;display:flex;flex-direction:column;padding:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm)) var(--ui-bottom-sheet-grab-padding-x, var(--units-md))}.ui-bottom-sheet-grab._draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.ui-bottom-sheet-grab._draggable:active{cursor:grabbing}.ui-bottom-sheet-handle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);margin-inline:auto;padding:0;border:none;border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background:none}.ui-bottom-sheet-handle:after{content:\"\";display:block;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background-color:var(--ui-bottom-sheet-handle-color, var(--global-text-default))}.ui-bottom-sheet-handle._operable{width:var(--ui-bottom-sheet-handle-target-width, 4rem);height:var(--ui-bottom-sheet-handle-target-height, 1.5rem)}.ui-bottom-sheet-handle._operable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-handle-focus-ring-color, var(--global-border-focus))}.ui-bottom-sheet-header{flex:0 0 auto;display:flex;align-items:var(--ui-bottom-sheet-header-align, flex-start);gap:var(--ui-bottom-sheet-header-gap, var(--units-sm));padding-top:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm))}.ui-bottom-sheet-grab>.ui-bottom-sheet-header:first-child{padding-top:0}.ui-bottom-sheet-title{flex:1 1 auto;min-width:0;margin:0;font-family:var(--ui-bottom-sheet-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);font-weight:var(--ui-bottom-sheet-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-bottom-sheet-action{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-bottom-sheet-action-align, auto);justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-action-size, 2rem);height:var(--ui-bottom-sheet-action-size, 2rem);padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;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)))}.ui-bottom-sheet-action:hover{background-color:var(--ui-bottom-sheet-close-surface-hover, var(--global-background-muted-hover));color:var(--ui-bottom-sheet-close-color-hover, var(--global-text-muted-hover))}.ui-bottom-sheet-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-close-focus-ring-color, var(--global-border-focus))}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-action{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-action{transition-duration:.01ms}.ui-bottom-sheet-content{flex:1 1 auto;min-height:0;padding:var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));overflow-y:auto;overscroll-behavior:contain;font-size:var(--size-typography-text-md);line-height:1.5}.ui-bottom-sheet-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-bottom-sheet-footer-gap, var(--units-default));padding:var(--ui-bottom-sheet-footer-padding-top, var(--units-sm)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));border-top:var(--ui-bottom-sheet-footer-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-sheet-footer-stroke, transparent)}\n"]
|
|
765
|
+
}]
|
|
766
|
+
}],
|
|
767
|
+
ctorParameters: () => [],
|
|
768
|
+
propDecorators: {
|
|
769
|
+
visible: [{
|
|
770
|
+
type: i0.Input,
|
|
771
|
+
args: [{
|
|
772
|
+
isSignal: true,
|
|
773
|
+
alias: "visible",
|
|
774
|
+
required: false
|
|
775
|
+
}]
|
|
776
|
+
}, {
|
|
777
|
+
type: i0.Output,
|
|
778
|
+
args: ["visibleChange"]
|
|
779
|
+
}],
|
|
780
|
+
height: [{
|
|
781
|
+
type: i0.Input,
|
|
782
|
+
args: [{
|
|
783
|
+
isSignal: true,
|
|
784
|
+
alias: "height",
|
|
785
|
+
required: false
|
|
786
|
+
}]
|
|
787
|
+
}],
|
|
788
|
+
hasBackdrop: [{
|
|
789
|
+
type: i0.Input,
|
|
790
|
+
args: [{
|
|
791
|
+
isSignal: true,
|
|
792
|
+
alias: "hasBackdrop",
|
|
793
|
+
required: false
|
|
794
|
+
}]
|
|
795
|
+
}],
|
|
796
|
+
closeOnOverlayClick: [{
|
|
797
|
+
type: i0.Input,
|
|
798
|
+
args: [{
|
|
799
|
+
isSignal: true,
|
|
800
|
+
alias: "closeOnOverlayClick",
|
|
801
|
+
required: false
|
|
802
|
+
}]
|
|
803
|
+
}],
|
|
804
|
+
closeOnEscape: [{
|
|
805
|
+
type: i0.Input,
|
|
806
|
+
args: [{
|
|
807
|
+
isSignal: true,
|
|
808
|
+
alias: "closeOnEscape",
|
|
809
|
+
required: false
|
|
810
|
+
}]
|
|
811
|
+
}],
|
|
812
|
+
blockScroll: [{
|
|
813
|
+
type: i0.Input,
|
|
814
|
+
args: [{
|
|
815
|
+
isSignal: true,
|
|
816
|
+
alias: "blockScroll",
|
|
817
|
+
required: false
|
|
818
|
+
}]
|
|
819
|
+
}],
|
|
820
|
+
enableDragToClose: [{
|
|
821
|
+
type: i0.Input,
|
|
822
|
+
args: [{
|
|
823
|
+
isSignal: true,
|
|
824
|
+
alias: "enableDragToClose",
|
|
825
|
+
required: false
|
|
826
|
+
}]
|
|
827
|
+
}],
|
|
828
|
+
dragThreshold: [{
|
|
829
|
+
type: i0.Input,
|
|
830
|
+
args: [{
|
|
831
|
+
isSignal: true,
|
|
832
|
+
alias: "dragThreshold",
|
|
833
|
+
required: false
|
|
834
|
+
}]
|
|
835
|
+
}],
|
|
836
|
+
enableSnapping: [{
|
|
837
|
+
type: i0.Input,
|
|
838
|
+
args: [{
|
|
839
|
+
isSignal: true,
|
|
840
|
+
alias: "enableSnapping",
|
|
841
|
+
required: false
|
|
842
|
+
}]
|
|
843
|
+
}],
|
|
844
|
+
showHandle: [{
|
|
845
|
+
type: i0.Input,
|
|
846
|
+
args: [{
|
|
847
|
+
isSignal: true,
|
|
848
|
+
alias: "showHandle",
|
|
849
|
+
required: false
|
|
850
|
+
}]
|
|
851
|
+
}],
|
|
852
|
+
trapFocus: [{
|
|
853
|
+
type: i0.Input,
|
|
854
|
+
args: [{
|
|
855
|
+
isSignal: true,
|
|
856
|
+
alias: "trapFocus",
|
|
857
|
+
required: false
|
|
858
|
+
}]
|
|
859
|
+
}],
|
|
860
|
+
focusOnShow: [{
|
|
861
|
+
type: i0.Input,
|
|
862
|
+
args: [{
|
|
863
|
+
isSignal: true,
|
|
864
|
+
alias: "focusOnShow",
|
|
865
|
+
required: false
|
|
866
|
+
}]
|
|
867
|
+
}],
|
|
868
|
+
autoFocusElement: [{
|
|
869
|
+
type: i0.Input,
|
|
870
|
+
args: [{
|
|
871
|
+
isSignal: true,
|
|
872
|
+
alias: "autoFocusElement",
|
|
873
|
+
required: false
|
|
874
|
+
}]
|
|
875
|
+
}],
|
|
876
|
+
header: [{
|
|
877
|
+
type: i0.Input,
|
|
878
|
+
args: [{
|
|
879
|
+
isSignal: true,
|
|
880
|
+
alias: "header",
|
|
881
|
+
required: false
|
|
882
|
+
}]
|
|
883
|
+
}],
|
|
884
|
+
closable: [{
|
|
885
|
+
type: i0.Input,
|
|
886
|
+
args: [{
|
|
887
|
+
isSignal: true,
|
|
888
|
+
alias: "closable",
|
|
889
|
+
required: false
|
|
890
|
+
}]
|
|
891
|
+
}],
|
|
892
|
+
closeIcon: [{
|
|
893
|
+
type: i0.Input,
|
|
894
|
+
args: [{
|
|
895
|
+
isSignal: true,
|
|
896
|
+
alias: "closeIcon",
|
|
897
|
+
required: false
|
|
898
|
+
}]
|
|
899
|
+
}],
|
|
900
|
+
closeAriaLabel: [{
|
|
901
|
+
type: i0.Input,
|
|
902
|
+
args: [{
|
|
903
|
+
isSignal: true,
|
|
904
|
+
alias: "closeAriaLabel",
|
|
905
|
+
required: false
|
|
906
|
+
}]
|
|
907
|
+
}],
|
|
908
|
+
handleAriaLabel: [{
|
|
909
|
+
type: i0.Input,
|
|
910
|
+
args: [{
|
|
911
|
+
isSignal: true,
|
|
912
|
+
alias: "handleAriaLabel",
|
|
913
|
+
required: false
|
|
914
|
+
}]
|
|
915
|
+
}],
|
|
916
|
+
role: [{
|
|
917
|
+
type: i0.Input,
|
|
918
|
+
args: [{
|
|
919
|
+
isSignal: true,
|
|
920
|
+
alias: "role",
|
|
921
|
+
required: false
|
|
922
|
+
}]
|
|
923
|
+
}],
|
|
924
|
+
ariaLabel: [{
|
|
925
|
+
type: i0.Input,
|
|
926
|
+
args: [{
|
|
927
|
+
isSignal: true,
|
|
928
|
+
alias: "ariaLabel",
|
|
929
|
+
required: false
|
|
930
|
+
}]
|
|
931
|
+
}],
|
|
932
|
+
ariaLabelledBy: [{
|
|
933
|
+
type: i0.Input,
|
|
934
|
+
args: [{
|
|
935
|
+
isSignal: true,
|
|
936
|
+
alias: "ariaLabelledBy",
|
|
937
|
+
required: false
|
|
938
|
+
}]
|
|
939
|
+
}],
|
|
940
|
+
safeArea: [{
|
|
941
|
+
type: i0.Input,
|
|
942
|
+
args: [{
|
|
943
|
+
isSignal: true,
|
|
944
|
+
alias: "safeArea",
|
|
945
|
+
required: false
|
|
946
|
+
}]
|
|
947
|
+
}],
|
|
948
|
+
contained: [{
|
|
949
|
+
type: i0.Input,
|
|
950
|
+
args: [{
|
|
951
|
+
isSignal: true,
|
|
952
|
+
alias: "contained",
|
|
953
|
+
required: false
|
|
954
|
+
}]
|
|
955
|
+
}],
|
|
956
|
+
motionDisabled: [{
|
|
957
|
+
type: i0.Input,
|
|
958
|
+
args: [{
|
|
959
|
+
isSignal: true,
|
|
960
|
+
alias: "motionDisabled",
|
|
961
|
+
required: false
|
|
962
|
+
}]
|
|
963
|
+
}],
|
|
964
|
+
styleClass: [{
|
|
965
|
+
type: i0.Input,
|
|
966
|
+
args: [{
|
|
967
|
+
isSignal: true,
|
|
968
|
+
alias: "styleClass",
|
|
969
|
+
required: false
|
|
970
|
+
}]
|
|
971
|
+
}],
|
|
972
|
+
autoZIndex: [{
|
|
973
|
+
type: i0.Input,
|
|
974
|
+
args: [{
|
|
975
|
+
isSignal: true,
|
|
976
|
+
alias: "autoZIndex",
|
|
977
|
+
required: false
|
|
978
|
+
}]
|
|
979
|
+
}],
|
|
980
|
+
baseZIndex: [{
|
|
981
|
+
type: i0.Input,
|
|
982
|
+
args: [{
|
|
983
|
+
isSignal: true,
|
|
984
|
+
alias: "baseZIndex",
|
|
985
|
+
required: false
|
|
986
|
+
}]
|
|
987
|
+
}],
|
|
988
|
+
opened: [{
|
|
989
|
+
type: i0.Output,
|
|
990
|
+
args: ["opened"]
|
|
991
|
+
}],
|
|
992
|
+
closed: [{
|
|
993
|
+
type: i0.Output,
|
|
994
|
+
args: ["closed"]
|
|
995
|
+
}],
|
|
996
|
+
headerSlot: [{
|
|
997
|
+
type: i0.ContentChild,
|
|
998
|
+
args: [i0.forwardRef(() => UiBottomSheetHeader), { isSignal: true }]
|
|
999
|
+
}],
|
|
1000
|
+
contentSlot: [{
|
|
1001
|
+
type: i0.ContentChild,
|
|
1002
|
+
args: [i0.forwardRef(() => UiBottomSheetContent), { isSignal: true }]
|
|
1003
|
+
}],
|
|
1004
|
+
footerSlot: [{
|
|
1005
|
+
type: i0.ContentChild,
|
|
1006
|
+
args: [i0.forwardRef(() => UiBottomSheetFooter), { isSignal: true }]
|
|
1007
|
+
}],
|
|
1008
|
+
positionerRef: [{
|
|
1009
|
+
type: i0.ViewChild,
|
|
1010
|
+
args: ["positioner", { isSignal: true }]
|
|
1011
|
+
}],
|
|
1012
|
+
panelRef: [{
|
|
1013
|
+
type: i0.ViewChild,
|
|
1014
|
+
args: ["panel", { isSignal: true }]
|
|
1015
|
+
}]
|
|
1016
|
+
}
|
|
1017
|
+
});
|
|
604
1018
|
export { UiBottomSheet, UiBottomSheetContent, UiBottomSheetFooter, UiBottomSheetHeader };
|
|
605
|
-
|
|
1019
|
+
|
|
1020
|
+
//# sourceMappingURL=4sh-ui-kit-layout-ui-bottom-sheet.mjs.map
|