@4sh/ui-kit 0.8.0 → 0.9.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 +3 -3
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +4 -4
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +4 -4
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +4 -4
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +9 -6
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +8 -8
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +7 -7
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +215 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +6 -6
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +13 -13
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +10 -10
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +10 -10
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +45 -26
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +629 -0
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +16 -16
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +4 -4
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +4 -4
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +4 -4
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +12 -12
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +11 -11
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -22
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +20 -20
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +9 -9
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +4 -4
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +34 -34
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
- package/mcp/data/text-search-docs.json +311 -61
- package/mcp/data/ui-config.json +26059 -12458
- package/mcp/package.json +1 -1
- package/package.json +9 -1
- package/styles/component-vars.scss +1402 -721
- package/styles/settings/_ui-config.scss +45 -2
- package/styles/utils/_mixins.scss +32 -30
- package/styles/utils/_overlay.scss +1 -1
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +114 -0
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +4 -4
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +256 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/** Named opening detents. */
|
|
4
|
+
type BottomSheetHeightPreset = 'auto' | 'half' | 'full';
|
|
5
|
+
/**
|
|
6
|
+
* Opening height: a preset detent, or any CSS length (`'70vh'`, `'400px'`).
|
|
7
|
+
* `Record<never, never>` keeps the presets suggested by the editor while still
|
|
8
|
+
* accepting a free-form string.
|
|
9
|
+
*/
|
|
10
|
+
type BottomSheetHeight = BottomSheetHeightPreset | (string & Record<never, never>);
|
|
11
|
+
/**
|
|
12
|
+
* Slot markers routing projected content to a region. No behaviour: the sheet
|
|
13
|
+
* only queries their presence. Each accepts the kebab attribute and the kit's
|
|
14
|
+
* camelCase alias (`uiBottomSheetHeader`).
|
|
15
|
+
*/
|
|
16
|
+
/** Header region: title and/or close button. Stays pinned above the scrolling body. */
|
|
17
|
+
declare class UiBottomSheetHeader {
|
|
18
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiBottomSheetHeader, never>;
|
|
19
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiBottomSheetHeader, "[uiBottomSheetHeader], [ui-bottom-sheet-header]", never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
/** Main region. Scrolls natively when the content overflows the sheet. */
|
|
22
|
+
declare class UiBottomSheetContent {
|
|
23
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiBottomSheetContent, never>;
|
|
24
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiBottomSheetContent, "[uiBottomSheetContent], [ui-bottom-sheet-content]", never, {}, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
26
|
+
/** Footer region: actions. Stays pinned below the scrolling body. */
|
|
27
|
+
declare class UiBottomSheetFooter {
|
|
28
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiBottomSheetFooter, never>;
|
|
29
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiBottomSheetFooter, "[uiBottomSheetFooter], [ui-bottom-sheet-footer]", never, {}, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* ui-bottom-sheet: headless, mobile-first panel that slides up from the bottom
|
|
33
|
+
* edge, driven by the two-way `visible` model.
|
|
34
|
+
*
|
|
35
|
+
* Enter/leave are CSS transitions on `transform`, which is what lets the
|
|
36
|
+
* drag-to-close gesture flow straight into the closing animation. Content goes
|
|
37
|
+
* into three projected regions laid out as a flex column, so header and footer
|
|
38
|
+
* stay put while the body scrolls. See the MDX page for the full contract.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```html
|
|
42
|
+
* <ui-button label="Rechercher" (buttonClick)="open.set(true)" />
|
|
43
|
+
* <ui-bottom-sheet [(visible)]="open" height="half" autoFocusElement="#q">
|
|
44
|
+
* <h2 ui-bottom-sheet-header>Recherche</h2>
|
|
45
|
+
* <div ui-bottom-sheet-content><ui-input id="q" /></div>
|
|
46
|
+
* </ui-bottom-sheet>
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
declare class UiBottomSheet {
|
|
50
|
+
/** Open state (two-way). Toggling it drives the enter/leave animation. */
|
|
51
|
+
visible: _angular_core.ModelSignal<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* Opening height: `'auto'` (hugs the content, capped), `'half'` (half the
|
|
54
|
+
* screen), `'full'` (the whole screen) or any CSS length (`'70vh'`, `'400px'`).
|
|
55
|
+
*/
|
|
56
|
+
height: _angular_core.InputSignal<BottomSheetHeight>;
|
|
57
|
+
/** Show the backdrop (dim + capture), which is also what makes the sheet modal. */
|
|
58
|
+
hasBackdrop: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
59
|
+
/** Close when the backdrop is clicked. */
|
|
60
|
+
closeOnOverlayClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
61
|
+
/** Close the sheet when `Escape` is pressed. */
|
|
62
|
+
closeOnEscape: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
63
|
+
/** Block background scroll while the sheet is open. */
|
|
64
|
+
blockScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
65
|
+
/** Close the sheet by dragging it down (touch, mouse, pen). */
|
|
66
|
+
enableDragToClose: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
67
|
+
/** Distance to drag before the release closes the sheet (px). */
|
|
68
|
+
dragThreshold: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
69
|
+
/**
|
|
70
|
+
* Let the user drag a `'half'` sheet up to `'full'` (and back down again).
|
|
71
|
+
* The detent change is the only motion that touches `height`.
|
|
72
|
+
*/
|
|
73
|
+
enableSnapping: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
74
|
+
/** Show the grab handle at the top of the sheet. */
|
|
75
|
+
showHandle: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
76
|
+
/** Trap Tab focus inside the sheet while it is open. */
|
|
77
|
+
trapFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
78
|
+
/** Move focus into the sheet when it opens (restored on close). */
|
|
79
|
+
focusOnShow: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
80
|
+
/** CSS selector of the element to focus on opening (e.g. `'#searchInput'`). */
|
|
81
|
+
autoFocusElement: _angular_core.InputSignal<string | null>;
|
|
82
|
+
/** Simple header text (ignored when a header slot is projected). */
|
|
83
|
+
header: _angular_core.InputSignal<string | undefined>;
|
|
84
|
+
/** Show the close (×) button in the header region. Off by default, as in the design. */
|
|
85
|
+
closable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
/** FontAwesome name of the close button icon. */
|
|
87
|
+
closeIcon: _angular_core.InputSignal<string>;
|
|
88
|
+
/** Accessible name of the close button. */
|
|
89
|
+
closeAriaLabel: _angular_core.InputSignal<string>;
|
|
90
|
+
/** Accessible name of the handle when it is operable (`enableSnapping`). */
|
|
91
|
+
handleAriaLabel: _angular_core.InputSignal<string>;
|
|
92
|
+
/** ARIA role of the sheet surface. */
|
|
93
|
+
role: _angular_core.InputSignal<string>;
|
|
94
|
+
/** Accessible name when there is no visible header to reference. */
|
|
95
|
+
ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
96
|
+
/** Id of an external element naming the sheet (overrides the header title). */
|
|
97
|
+
ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
|
|
98
|
+
/** Reserve the OS inset at the bottom of the screen (home indicator, gesture bar). */
|
|
99
|
+
safeArea: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
100
|
+
/**
|
|
101
|
+
* Scope the sheet to the nearest positioned ancestor (`position: absolute`)
|
|
102
|
+
* instead of the viewport, and skip the body scroll lock. Detents become
|
|
103
|
+
* fractions of that container.
|
|
104
|
+
*/
|
|
105
|
+
contained: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
106
|
+
/** Disable the open/close animation for this sheet. */
|
|
107
|
+
motionDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
108
|
+
/** Extra class(es) merged onto the sheet surface. */
|
|
109
|
+
styleClass: _angular_core.InputSignal<string | undefined>;
|
|
110
|
+
/** Layer this sheet above earlier overlays automatically. */
|
|
111
|
+
autoZIndex: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
112
|
+
/** Floor z-index (added to the auto value, or used as-is when `autoZIndex=false`). */
|
|
113
|
+
baseZIndex: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
114
|
+
/** Emitted at the end of the opening animation. */
|
|
115
|
+
opened: _angular_core.OutputEmitterRef<void>;
|
|
116
|
+
/** Emitted at the end of the closing animation. */
|
|
117
|
+
closed: _angular_core.OutputEmitterRef<void>;
|
|
118
|
+
/** @ignore */
|
|
119
|
+
protected readonly headerSlot: _angular_core.Signal<UiBottomSheetHeader | undefined>;
|
|
120
|
+
/** @ignore */
|
|
121
|
+
protected readonly contentSlot: _angular_core.Signal<UiBottomSheetContent | undefined>;
|
|
122
|
+
/** @ignore */
|
|
123
|
+
protected readonly footerSlot: _angular_core.Signal<UiBottomSheetFooter | undefined>;
|
|
124
|
+
/** @ignore */
|
|
125
|
+
private readonly positionerRef;
|
|
126
|
+
/** @ignore */
|
|
127
|
+
private readonly panelRef;
|
|
128
|
+
/** @ignore */
|
|
129
|
+
private readonly document;
|
|
130
|
+
/** @ignore */
|
|
131
|
+
private readonly injector;
|
|
132
|
+
/** @ignore */
|
|
133
|
+
private readonly isBrowser;
|
|
134
|
+
/** @ignore Per-instance layering rank for `autoZIndex`. */
|
|
135
|
+
private readonly zSeq;
|
|
136
|
+
/** @ignore */
|
|
137
|
+
protected readonly uid: string;
|
|
138
|
+
/** @ignore */
|
|
139
|
+
protected readonly titleId: string;
|
|
140
|
+
/** @ignore */
|
|
141
|
+
protected readonly mounted: _angular_core.WritableSignal<boolean>;
|
|
142
|
+
/** @ignore */
|
|
143
|
+
protected readonly atRest: _angular_core.WritableSignal<boolean>;
|
|
144
|
+
/** @ignore Live drag distance, downwards only (px). */
|
|
145
|
+
protected readonly dragOffset: _angular_core.WritableSignal<number>;
|
|
146
|
+
/** @ignore Live height while dragging a snapping sheet upwards (px). */
|
|
147
|
+
protected readonly dragHeight: _angular_core.WritableSignal<number | null>;
|
|
148
|
+
/** @ignore */
|
|
149
|
+
protected readonly dragging: _angular_core.WritableSignal<boolean>;
|
|
150
|
+
/** @ignore The `'half'` sheet is currently snapped to `'full'`. */
|
|
151
|
+
protected readonly snapped: _angular_core.WritableSignal<boolean>;
|
|
152
|
+
/** @ignore */
|
|
153
|
+
private locked;
|
|
154
|
+
/** @ignore Transition currently awaited, if any. */
|
|
155
|
+
private pending;
|
|
156
|
+
/** @ignore */
|
|
157
|
+
private settleTimer;
|
|
158
|
+
/** @ignore */
|
|
159
|
+
private focusTimer;
|
|
160
|
+
/** @ignore */
|
|
161
|
+
private dragPointerId;
|
|
162
|
+
/** @ignore */
|
|
163
|
+
private dragStartY;
|
|
164
|
+
/** @ignore Panel height when the drag started (px), for the upward clamp. */
|
|
165
|
+
private dragStartHeight;
|
|
166
|
+
/** @ignore Effective stacking level. */
|
|
167
|
+
protected readonly zIndex: _angular_core.Signal<number>;
|
|
168
|
+
/** @ignore The `'half'` detent can grow to `'full'` on a drag. */
|
|
169
|
+
protected readonly canSnap: _angular_core.Signal<boolean>;
|
|
170
|
+
/** @ignore A gesture on the drag area does something. */
|
|
171
|
+
protected readonly dragEnabled: _angular_core.Signal<boolean>;
|
|
172
|
+
/** @ignore Detent in force, once snapping is taken into account. */
|
|
173
|
+
private readonly effectiveHeight;
|
|
174
|
+
/** @ignore Preset detent, or `null` for a free-form CSS length. */
|
|
175
|
+
protected readonly heightPreset: _angular_core.Signal<BottomSheetHeightPreset | null>;
|
|
176
|
+
/**
|
|
177
|
+
* @ignore Height written inline: the live drag height, else the free-form
|
|
178
|
+
* value. A preset resolves through its class so the SCSS hook stays in charge.
|
|
179
|
+
*/
|
|
180
|
+
protected readonly inlineHeight: _angular_core.Signal<string | null>;
|
|
181
|
+
/** @ignore Sheet position: off-screen, dragged, or at rest. */
|
|
182
|
+
protected readonly panelTransform: _angular_core.Signal<string>;
|
|
183
|
+
/** @ignore */
|
|
184
|
+
protected readonly panelClasses: _angular_core.Signal<string>;
|
|
185
|
+
/** @ignore A title is available, from the slot or the string shorthand. */
|
|
186
|
+
protected readonly hasTitle: _angular_core.Signal<boolean>;
|
|
187
|
+
/** @ignore The header region is rendered at all. */
|
|
188
|
+
protected readonly hasHeaderRegion: _angular_core.Signal<boolean>;
|
|
189
|
+
/** @ignore The `header` string is the title source (a slot takes precedence). */
|
|
190
|
+
protected readonly showHeaderString: _angular_core.Signal<boolean>;
|
|
191
|
+
/** @ignore Id of the element naming the sheet (header title, or an external id). */
|
|
192
|
+
protected readonly labelledBy: _angular_core.Signal<string | null>;
|
|
193
|
+
/** @ignore Fallback accessible name when nothing is referenced. */
|
|
194
|
+
protected readonly resolvedAriaLabel: _angular_core.Signal<string | null | undefined>;
|
|
195
|
+
constructor();
|
|
196
|
+
/** Open the sheet. */
|
|
197
|
+
open(): void;
|
|
198
|
+
/** Close the sheet. */
|
|
199
|
+
close(): void;
|
|
200
|
+
/** Toggle the sheet. */
|
|
201
|
+
toggle(): void;
|
|
202
|
+
/** Move focus onto the sheet surface. */
|
|
203
|
+
focus(): void;
|
|
204
|
+
/** @ignore Mount off-screen, then transition to the rest position. */
|
|
205
|
+
private beginOpen;
|
|
206
|
+
/** @ignore Transition back off-screen, then unmount. */
|
|
207
|
+
private beginClose;
|
|
208
|
+
/**
|
|
209
|
+
* @ignore Wait for the panel transition to end. `transitionend` is the accurate
|
|
210
|
+
* signal, but it never fires when the duration is zero (motion off, reduced
|
|
211
|
+
* motion) or while the tab is hidden, hence the measured fallback timer.
|
|
212
|
+
*/
|
|
213
|
+
private awaitTransition;
|
|
214
|
+
/** @ignore Resolved transition duration of the panel (ms). */
|
|
215
|
+
private transitionMs;
|
|
216
|
+
/** @ignore */
|
|
217
|
+
protected onTransitionEnd(event: TransitionEvent): void;
|
|
218
|
+
/** @ignore End of an open/close transition: emit, and unmount on close. */
|
|
219
|
+
private settle;
|
|
220
|
+
/** @ignore */
|
|
221
|
+
private clearSettle;
|
|
222
|
+
/** @ignore */
|
|
223
|
+
private releaseLock;
|
|
224
|
+
/**
|
|
225
|
+
* @ignore Focus the `autoFocusElement` target once it exists. The CDK focus
|
|
226
|
+
* trap captures first (which is what restores focus on close), so this runs
|
|
227
|
+
* after it and wins. Retried a few times because the target is often projected
|
|
228
|
+
* content that renders a tick later; `setTimeout` rather than a rAF, which
|
|
229
|
+
* never fires in a throttled tab.
|
|
230
|
+
*/
|
|
231
|
+
private applyAutoFocus;
|
|
232
|
+
/** @ignore */
|
|
233
|
+
private clearFocus;
|
|
234
|
+
/** @ignore Escape-to-close. Only swallowed when it actually closes, so a
|
|
235
|
+
* parent overlay still sees the key otherwise. */
|
|
236
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
237
|
+
/** @ignore Keyboard equivalent of the snap gesture (the handle is a button). */
|
|
238
|
+
protected onHandleKeydown(event: KeyboardEvent): void;
|
|
239
|
+
/** @ignore Backdrop click dismiss (backdrop target only). */
|
|
240
|
+
protected onScrimPointerDown(event: PointerEvent): void;
|
|
241
|
+
/** @ignore */
|
|
242
|
+
protected onDragPointerDown(event: PointerEvent): void;
|
|
243
|
+
/** @ignore */
|
|
244
|
+
protected onDragPointerMove(event: PointerEvent): void;
|
|
245
|
+
/** @ignore Release: past the threshold the gesture commits, otherwise it springs back. */
|
|
246
|
+
protected onDragPointerUp(event: PointerEvent): void;
|
|
247
|
+
/** @ignore */
|
|
248
|
+
private endDrag;
|
|
249
|
+
/** @ignore Ceiling of the upward drag: the viewport, or the container when `contained`. */
|
|
250
|
+
private viewportHeight;
|
|
251
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiBottomSheet, never>;
|
|
252
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiBottomSheet, "ui-bottom-sheet", never, { "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "closeOnOverlayClick": { "alias": "closeOnOverlayClick"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "blockScroll": { "alias": "blockScroll"; "required": false; "isSignal": true; }; "enableDragToClose": { "alias": "enableDragToClose"; "required": false; "isSignal": true; }; "dragThreshold": { "alias": "dragThreshold"; "required": false; "isSignal": true; }; "enableSnapping": { "alias": "enableSnapping"; "required": false; "isSignal": true; }; "showHandle": { "alias": "showHandle"; "required": false; "isSignal": true; }; "trapFocus": { "alias": "trapFocus"; "required": false; "isSignal": true; }; "focusOnShow": { "alias": "focusOnShow"; "required": false; "isSignal": true; }; "autoFocusElement": { "alias": "autoFocusElement"; "required": false; "isSignal": true; }; "header": { "alias": "header"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "closeIcon": { "alias": "closeIcon"; "required": false; "isSignal": true; }; "closeAriaLabel": { "alias": "closeAriaLabel"; "required": false; "isSignal": true; }; "handleAriaLabel": { "alias": "handleAriaLabel"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "safeArea": { "alias": "safeArea"; "required": false; "isSignal": true; }; "contained": { "alias": "contained"; "required": false; "isSignal": true; }; "motionDisabled": { "alias": "motionDisabled"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "autoZIndex": { "alias": "autoZIndex"; "required": false; "isSignal": true; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; "isSignal": true; }; }, { "visible": "visibleChange"; "opened": "opened"; "closed": "closed"; }, ["headerSlot", "contentSlot", "footerSlot"], ["[uiBottomSheetHeader], [ui-bottom-sheet-header]", "[uiBottomSheetContent], [ui-bottom-sheet-content]", "*", "[uiBottomSheetFooter], [ui-bottom-sheet-footer]"], true, never>;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export { UiBottomSheet, UiBottomSheetContent, UiBottomSheetFooter, UiBottomSheetHeader };
|
|
256
|
+
export type { BottomSheetHeight, BottomSheetHeightPreset };
|