@radix-ng/primitives 1.0.5 → 1.0.6
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/fesm2022/radix-ng-primitives-accordion.mjs +35 -27
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +34 -34
- package/fesm2022/radix-ng-primitives-arrow.mjs +3 -3
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +5 -4
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-autocomplete.mjs +175 -125
- package/fesm2022/radix-ng-primitives-autocomplete.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-avatar.mjs +25 -19
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-button.mjs +11 -7
- package/fesm2022/radix-ng-primitives-button.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-calendar.mjs +140 -90
- package/fesm2022/radix-ng-primitives-calendar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-checkbox.mjs +61 -40
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +35 -24
- package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-combobox.mjs +278 -177
- package/fesm2022/radix-ng-primitives-combobox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-composite.mjs +50 -33
- package/fesm2022/radix-ng-primitives-composite.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-config.mjs +7 -5
- package/fesm2022/radix-ng-primitives-config.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-context-menu.mjs +48 -22
- package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +44 -28
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-cropper.mjs +73 -45
- package/fesm2022/radix-ng-primitives-cropper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-date-field.mjs +70 -40
- package/fesm2022/radix-ng-primitives-date-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +93 -67
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-direction-provider.mjs +5 -4
- package/fesm2022/radix-ng-primitives-direction-provider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs +20 -16
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-drawer.mjs +107 -81
- package/fesm2022/radix-ng-primitives-drawer.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-editable.mjs +53 -39
- package/fesm2022/radix-ng-primitives-editable.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-field.mjs +69 -42
- package/fesm2022/radix-ng-primitives-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-fieldset.mjs +8 -7
- package/fesm2022/radix-ng-primitives-fieldset.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-floating-focus-manager.mjs +77 -40
- package/fesm2022/radix-ng-primitives-floating-focus-manager.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-focus-guards.mjs +3 -3
- package/fesm2022/radix-ng-primitives-focus-scope.mjs +7 -5
- package/fesm2022/radix-ng-primitives-focus-scope.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-form.mjs +25 -16
- package/fesm2022/radix-ng-primitives-form.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-input.mjs +41 -22
- package/fesm2022/radix-ng-primitives-input.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-label.mjs +7 -5
- package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menu.mjs +274 -154
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menubar.mjs +35 -17
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-meter.mjs +41 -30
- package/fesm2022/radix-ng-primitives-meter.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs +220 -183
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-number-field.mjs +87 -59
- package/fesm2022/radix-ng-primitives-number-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-pagination.mjs +48 -38
- package/fesm2022/radix-ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +150 -107
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popper.mjs +79 -47
- package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-portal.mjs +20 -13
- package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-presence.mjs +3 -3
- package/fesm2022/radix-ng-primitives-preview-card.mjs +119 -74
- package/fesm2022/radix-ng-primitives-preview-card.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-progress.mjs +43 -31
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +58 -35
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-scroll-area.mjs +54 -38
- package/fesm2022/radix-ng-primitives-scroll-area.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-select.mjs +595 -102
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-separator.mjs +7 -5
- package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-slider.mjs +101 -63
- package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-stepper.mjs +53 -39
- package/fesm2022/radix-ng-primitives-stepper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-switch.mjs +23 -18
- package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tabs.mjs +72 -47
- package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-time-field.mjs +72 -41
- package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toast.mjs +75 -56
- package/fesm2022/radix-ng-primitives-toast.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +29 -19
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +16 -11
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toolbar.mjs +38 -30
- package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip.mjs +118 -63
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +31 -20
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
- package/package.json +2 -2
- package/types/radix-ng-primitives-autocomplete.d.ts +3 -1
- package/types/radix-ng-primitives-combobox.d.ts +28 -9
- package/types/radix-ng-primitives-context-menu.d.ts +2 -0
- package/types/radix-ng-primitives-dialog.d.ts +6 -3
- package/types/radix-ng-primitives-floating-focus-manager.d.ts +11 -0
- package/types/radix-ng-primitives-menu.d.ts +47 -15
- package/types/radix-ng-primitives-menubar.d.ts +6 -1
- package/types/radix-ng-primitives-navigation-menu.d.ts +8 -6
- package/types/radix-ng-primitives-popover.d.ts +12 -4
- package/types/radix-ng-primitives-preview-card.d.ts +18 -5
- package/types/radix-ng-primitives-select.d.ts +186 -391
- package/types/radix-ng-primitives-tooltip.d.ts +17 -3
|
@@ -13,27 +13,33 @@ export { usePointerDrag } from '@radix-ng/primitives/core';
|
|
|
13
13
|
*/
|
|
14
14
|
class RdxDrawerProvider {
|
|
15
15
|
constructor() {
|
|
16
|
-
this.stack = signal([],
|
|
16
|
+
this.stack = signal([], /* @ts-ignore */
|
|
17
|
+
...(ngDevMode ? [{ debugName: "stack" }] : /* istanbul ignore next */ []));
|
|
17
18
|
/** Number of open drawers. */
|
|
18
|
-
this.count = computed(() => this.stack().length,
|
|
19
|
+
this.count = computed(() => this.stack().length, /* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
|
|
19
21
|
/** Whether any drawer is open. */
|
|
20
|
-
this.active = computed(() => this.count() > 0,
|
|
22
|
+
this.active = computed(() => this.count() > 0, /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
21
24
|
/** The most recently opened (frontmost) drawer, or `null`. */
|
|
22
|
-
this.frontmost = computed(() => this.stack().at(-1) ?? null,
|
|
25
|
+
this.frontmost = computed(() => this.stack().at(-1) ?? null, /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "frontmost" }] : /* istanbul ignore next */ []));
|
|
23
27
|
/** The frontmost drawer's measured size (px), or `0` when none is open. */
|
|
24
|
-
this.frontmostHeight = computed(() => this.frontmost()?.height() ?? 0,
|
|
28
|
+
this.frontmostHeight = computed(() => this.frontmost()?.height() ?? 0, /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "frontmostHeight" }] : /* istanbul ignore next */ []));
|
|
25
30
|
/** The frontmost drawer's live dismiss progress, or `0` when none is open. */
|
|
26
|
-
this.swipeProgress = computed(() => this.frontmost()?.swipeProgress() ?? 0,
|
|
31
|
+
this.swipeProgress = computed(() => this.frontmost()?.swipeProgress() ?? 0, /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "swipeProgress" }] : /* istanbul ignore next */ []));
|
|
27
33
|
}
|
|
28
34
|
/** Register an open drawer; returns a disposer that removes it. */
|
|
29
35
|
register(registration) {
|
|
30
36
|
this.stack.update((stack) => [...stack, registration]);
|
|
31
37
|
return () => this.stack.update((stack) => stack.filter((entry) => entry !== registration));
|
|
32
38
|
}
|
|
33
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
34
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
40
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerProvider }); }
|
|
35
41
|
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerProvider, decorators: [{
|
|
37
43
|
type: Injectable
|
|
38
44
|
}] });
|
|
39
45
|
/** Provide a {@link RdxDrawerProvider} for an app (e.g. in `app.config.ts`). */
|
|
@@ -45,10 +51,10 @@ function provideRdxDrawerProvider() {
|
|
|
45
51
|
* drawer roots and `rdxDrawerIndent*` parts share one coordinator.
|
|
46
52
|
*/
|
|
47
53
|
class RdxDrawerProviderDirective {
|
|
48
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
49
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
54
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerProviderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
55
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerProviderDirective, isStandalone: true, selector: "[rdxDrawerProvider]", providers: [RdxDrawerProvider], exportAs: ["rdxDrawerProvider"], ngImport: i0 }); }
|
|
50
56
|
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerProviderDirective, decorators: [{
|
|
52
58
|
type: Directive,
|
|
53
59
|
args: [{
|
|
54
60
|
selector: '[rdxDrawerProvider]',
|
|
@@ -96,38 +102,49 @@ class RdxDrawerRoot {
|
|
|
96
102
|
this.dialog = inject(RdxDialogRoot);
|
|
97
103
|
this.provider = inject(RdxDrawerProvider, { optional: true });
|
|
98
104
|
/** The popup's measured size (px) along its dismiss axis, reported by the popup. */
|
|
99
|
-
this.popupHeight = signal(0,
|
|
105
|
+
this.popupHeight = signal(0, /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "popupHeight" }] : /* istanbul ignore next */ []));
|
|
100
107
|
/**
|
|
101
108
|
* Direction a swipe travels to dismiss the drawer. The visual side of the drawer is consumer
|
|
102
109
|
* CSS; this controls the dismiss gesture and the `data-swipe-direction` styling hook.
|
|
103
110
|
*/
|
|
104
|
-
this.swipeDirection = input('down',
|
|
111
|
+
this.swipeDirection = input('down', /* @ts-ignore */
|
|
112
|
+
...(ngDevMode ? [{ debugName: "swipeDirection" }] : /* istanbul ignore next */ []));
|
|
105
113
|
/**
|
|
106
114
|
* Resting positions the drawer snaps to along the dismiss axis. Order ascending by openness; the
|
|
107
115
|
* first entry is the default the drawer opens to. Omit for a plain open/closed drawer.
|
|
108
116
|
*/
|
|
109
|
-
this.snapPoints = input(
|
|
117
|
+
this.snapPoints = input(/* @ts-ignore */
|
|
118
|
+
...(ngDevMode ? [undefined, { debugName: "snapPoints" }] : /* istanbul ignore next */ []));
|
|
110
119
|
/** The active snap point (controlled / uncontrolled with `[(snapPoint)]`). */
|
|
111
|
-
this.snapPoint = model(null,
|
|
120
|
+
this.snapPoint = model(null, /* @ts-ignore */
|
|
121
|
+
...(ngDevMode ? [{ debugName: "snapPoint" }] : /* istanbul ignore next */ []));
|
|
112
122
|
/** The snap point the drawer opens to when uncontrolled; defaults to the first point. */
|
|
113
|
-
this.defaultSnapPoint = input(
|
|
123
|
+
this.defaultSnapPoint = input(/* @ts-ignore */
|
|
124
|
+
...(ngDevMode ? [undefined, { debugName: "defaultSnapPoint" }] : /* istanbul ignore next */ []));
|
|
114
125
|
/** Step at most one snap point per release instead of letting velocity skip points. */
|
|
115
126
|
this.snapToSequentialPoints = input(false, { ...(ngDevMode ? { debugName: "snapToSequentialPoints" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
116
127
|
/** Emits when the active snap point changes through a gesture. */
|
|
117
128
|
this.onSnapPointChange = output();
|
|
118
129
|
/** 0..1 progress of the active dismiss gesture, written by the popup's swipe engine. */
|
|
119
|
-
this.swipeProgress = signal(0,
|
|
130
|
+
this.swipeProgress = signal(0, /* @ts-ignore */
|
|
131
|
+
...(ngDevMode ? [{ debugName: "swipeProgress" }] : /* istanbul ignore next */ []));
|
|
120
132
|
/** Live SwipeArea reveal state; the popup converts distance into its measured-axis movement. */
|
|
121
|
-
this.openingSwipeActive = signal(false,
|
|
122
|
-
|
|
123
|
-
this.
|
|
124
|
-
|
|
133
|
+
this.openingSwipeActive = signal(false, /* @ts-ignore */
|
|
134
|
+
...(ngDevMode ? [{ debugName: "openingSwipeActive" }] : /* istanbul ignore next */ []));
|
|
135
|
+
this.openingSwipeDistance = signal(0, /* @ts-ignore */
|
|
136
|
+
...(ngDevMode ? [{ debugName: "openingSwipeDistance" }] : /* istanbul ignore next */ []));
|
|
137
|
+
this.normalizedSnapPoints = computed(() => this.snapPoints() ?? [], /* @ts-ignore */
|
|
138
|
+
...(ngDevMode ? [{ debugName: "normalizedSnapPoints" }] : /* istanbul ignore next */ []));
|
|
139
|
+
this.hasSnapPoints = computed(() => this.normalizedSnapPoints().length > 0, /* @ts-ignore */
|
|
140
|
+
...(ngDevMode ? [{ debugName: "hasSnapPoints" }] : /* istanbul ignore next */ []));
|
|
125
141
|
/** Whether a drawer nested inside this one is open (reuses the dialog's nesting detection). */
|
|
126
142
|
this.nestedDrawerOpen = this.dialog.nestedDialogOpen;
|
|
127
143
|
/** Number of open drawers nested inside this one. */
|
|
128
144
|
this.nestedDrawerCount = this.dialog.nestedOpenCount.asReadonly();
|
|
129
145
|
/** The app-wide frontmost drawer's measured size (px); `0` without a provider. */
|
|
130
|
-
this.frontmostHeight = computed(() => this.provider?.frontmostHeight() ?? 0,
|
|
146
|
+
this.frontmostHeight = computed(() => this.provider?.frontmostHeight() ?? 0, /* @ts-ignore */
|
|
147
|
+
...(ngDevMode ? [{ debugName: "frontmostHeight" }] : /* istanbul ignore next */ []));
|
|
131
148
|
/** Whether the drawer is open (read-only mirror of the composed dialog state). */
|
|
132
149
|
this.open = this.dialog.open;
|
|
133
150
|
/** The active trigger's id. */
|
|
@@ -173,10 +190,10 @@ class RdxDrawerRoot {
|
|
|
173
190
|
this.onSnapPointChange.emit(value);
|
|
174
191
|
}
|
|
175
192
|
}
|
|
176
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
177
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
193
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerRoot, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
194
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: RdxDrawerRoot, isStandalone: true, selector: "[rdxDrawerRoot]", inputs: { swipeDirection: { classPropertyName: "swipeDirection", publicName: "swipeDirection", isSignal: true, isRequired: false, transformFunction: null }, snapPoints: { classPropertyName: "snapPoints", publicName: "snapPoints", isSignal: true, isRequired: false, transformFunction: null }, snapPoint: { classPropertyName: "snapPoint", publicName: "snapPoint", isSignal: true, isRequired: false, transformFunction: null }, defaultSnapPoint: { classPropertyName: "defaultSnapPoint", publicName: "defaultSnapPoint", isSignal: true, isRequired: false, transformFunction: null }, snapToSequentialPoints: { classPropertyName: "snapToSequentialPoints", publicName: "snapToSequentialPoints", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { snapPoint: "snapPointChange", onSnapPointChange: "onSnapPointChange" }, providers: [provideRdxDrawerRootContext(context)], exportAs: ["rdxDrawerRoot"], hostDirectives: [{ directive: i1.RdxDialogRoot, inputs: ["open", "open", "defaultOpen", "defaultOpen", "triggerId", "triggerId", "defaultTriggerId", "defaultTriggerId", "handle", "handle", "modal", "modal", "disablePointerDismissal", "disablePointerDismissal"], outputs: ["openChange", "openChange", "triggerIdChange", "triggerIdChange", "onOpenChange", "onOpenChange", "onOpenChangeComplete", "onOpenChangeComplete"] }], ngImport: i0 }); }
|
|
178
195
|
}
|
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerRoot, decorators: [{
|
|
180
197
|
type: Directive,
|
|
181
198
|
args: [{
|
|
182
199
|
selector: '[rdxDrawerRoot]',
|
|
@@ -210,10 +227,10 @@ class RdxDrawerBackdrop {
|
|
|
210
227
|
constructor() {
|
|
211
228
|
this.drawerContext = injectRdxDrawerRootContext();
|
|
212
229
|
}
|
|
213
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
214
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
230
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerBackdrop, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
231
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerBackdrop, isStandalone: true, selector: "[rdxDrawerBackdrop]", host: { properties: { "style.--drawer-swipe-progress": "drawerContext.swipeProgress()", "attr.data-swiping": "drawerContext.openingSwipeActive() ? \"\" : undefined", "attr.data-nested-drawer-open": "drawerContext.nestedDrawerOpen() ? \"\" : undefined" } }, exportAs: ["rdxDrawerBackdrop"], hostDirectives: [{ directive: i1.RdxDialogBackdrop }], ngImport: i0 }); }
|
|
215
232
|
}
|
|
216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerBackdrop, decorators: [{
|
|
217
234
|
type: Directive,
|
|
218
235
|
args: [{
|
|
219
236
|
selector: '[rdxDrawerBackdrop]',
|
|
@@ -231,10 +248,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
231
248
|
* A button that closes the drawer.
|
|
232
249
|
*/
|
|
233
250
|
class RdxDrawerClose {
|
|
234
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
235
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
251
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerClose, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
252
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerClose, isStandalone: true, selector: "button[rdxDrawerClose]", exportAs: ["rdxDrawerClose"], hostDirectives: [{ directive: i1.RdxDialogClose }], ngImport: i0 }); }
|
|
236
253
|
}
|
|
237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerClose, decorators: [{
|
|
238
255
|
type: Directive,
|
|
239
256
|
args: [{
|
|
240
257
|
selector: 'button[rdxDrawerClose]',
|
|
@@ -252,10 +269,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
252
269
|
* `data-base-ui-swipe-ignore` attribute.
|
|
253
270
|
*/
|
|
254
271
|
class RdxDrawerContent {
|
|
255
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
256
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
272
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
273
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerContent, isStandalone: true, selector: "[rdxDrawerContent]", exportAs: ["rdxDrawerContent"], ngImport: i0 }); }
|
|
257
274
|
}
|
|
258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerContent, decorators: [{
|
|
259
276
|
type: Directive,
|
|
260
277
|
args: [{
|
|
261
278
|
selector: '[rdxDrawerContent]',
|
|
@@ -267,10 +284,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
267
284
|
* An accessible description announced when the drawer is opened.
|
|
268
285
|
*/
|
|
269
286
|
class RdxDrawerDescription {
|
|
270
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
271
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
287
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
288
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerDescription, isStandalone: true, selector: "[rdxDrawerDescription]", exportAs: ["rdxDrawerDescription"], hostDirectives: [{ directive: i1.RdxDialogDescription }], ngImport: i0 }); }
|
|
272
289
|
}
|
|
273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
290
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerDescription, decorators: [{
|
|
274
291
|
type: Directive,
|
|
275
292
|
args: [{
|
|
276
293
|
selector: '[rdxDrawerDescription]',
|
|
@@ -293,10 +310,10 @@ class RdxDrawerIndent {
|
|
|
293
310
|
constructor() {
|
|
294
311
|
this.provider = inject(RdxDrawerProvider, { optional: true });
|
|
295
312
|
}
|
|
296
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
297
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
313
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerIndent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
314
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerIndent, isStandalone: true, selector: "[rdxDrawerIndent]", host: { properties: { "attr.data-active": "provider?.active() ? \"\" : undefined", "style.--nested-drawers": "provider?.count() ?? 0", "style.--drawer-frontmost-height": "(provider?.frontmostHeight() ?? 0) + \"px\"", "style.--drawer-swipe-progress": "provider?.swipeProgress() ?? 0" } }, exportAs: ["rdxDrawerIndent"], ngImport: i0 }); }
|
|
298
315
|
}
|
|
299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerIndent, decorators: [{
|
|
300
317
|
type: Directive,
|
|
301
318
|
args: [{
|
|
302
319
|
selector: '[rdxDrawerIndent]',
|
|
@@ -321,10 +338,10 @@ class RdxDrawerIndentBackground {
|
|
|
321
338
|
constructor() {
|
|
322
339
|
this.provider = inject(RdxDrawerProvider, { optional: true });
|
|
323
340
|
}
|
|
324
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
325
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
341
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerIndentBackground, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
342
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerIndentBackground, isStandalone: true, selector: "[rdxDrawerIndentBackground]", host: { properties: { "attr.data-active": "provider?.active() ? \"\" : undefined", "style.--nested-drawers": "provider?.count() ?? 0", "style.--drawer-frontmost-height": "(provider?.frontmostHeight() ?? 0) + \"px\"", "style.--drawer-swipe-progress": "provider?.swipeProgress() ?? 0" } }, exportAs: ["rdxDrawerIndentBackground"], ngImport: i0 }); }
|
|
326
343
|
}
|
|
327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerIndentBackground, decorators: [{
|
|
328
345
|
type: Directive,
|
|
329
346
|
args: [{
|
|
330
347
|
selector: '[rdxDrawerIndentBackground]',
|
|
@@ -632,7 +649,8 @@ class RdxDrawerPopup {
|
|
|
632
649
|
/** Live popup size (px); a ResizeObserver keeps it current so snap geometry never goes stale. */
|
|
633
650
|
this.size = elementSize({ elementRef: this.elementRef, injector: inject(Injector) });
|
|
634
651
|
/** Snap entries for the current size; built once and shared by the offset/expanded reads. */
|
|
635
|
-
this.snapEntries = computed(() => buildSnapEntries(this.drawerContext.snapPoints(), this.axisSize(), rootFontSize()),
|
|
652
|
+
this.snapEntries = computed(() => buildSnapEntries(this.drawerContext.snapPoints(), this.axisSize(), rootFontSize()), /* @ts-ignore */
|
|
653
|
+
...(ngDevMode ? [{ debugName: "snapEntries" }] : /* istanbul ignore next */ []));
|
|
636
654
|
/** Resting translate magnitude (px) of the active snap point; `0` when fully open / no snaps. */
|
|
637
655
|
this.restingOffset = computed(() => {
|
|
638
656
|
const active = this.drawerContext.activeSnapPoint();
|
|
@@ -640,7 +658,8 @@ class RdxDrawerPopup {
|
|
|
640
658
|
return 0;
|
|
641
659
|
}
|
|
642
660
|
return this.snapEntries().find((candidate) => candidate.value === active)?.offset ?? 0;
|
|
643
|
-
},
|
|
661
|
+
}, /* @ts-ignore */
|
|
662
|
+
...(ngDevMode ? [{ debugName: "restingOffset" }] : /* istanbul ignore next */ []));
|
|
644
663
|
/** Whether the active snap point is the most open one. */
|
|
645
664
|
this.expanded = computed(() => {
|
|
646
665
|
const active = this.drawerContext.activeSnapPoint();
|
|
@@ -649,12 +668,14 @@ class RdxDrawerPopup {
|
|
|
649
668
|
}
|
|
650
669
|
const entries = this.snapEntries();
|
|
651
670
|
return entries.length > 0 && entries[0].value === active;
|
|
652
|
-
},
|
|
671
|
+
}, /* @ts-ignore */
|
|
672
|
+
...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
|
|
653
673
|
/** The frontmost nested drawer's height for `--drawer-frontmost-height`, or unset when none. */
|
|
654
674
|
this.frontmostHeightPx = computed(() => {
|
|
655
675
|
const height = this.drawerContext.frontmostHeight();
|
|
656
676
|
return this.drawerContext.nestedDrawerOpen() && height > 0 ? `${height}px` : null;
|
|
657
|
-
},
|
|
677
|
+
}, /* @ts-ignore */
|
|
678
|
+
...(ngDevMode ? [{ debugName: "frontmostHeightPx" }] : /* istanbul ignore next */ []));
|
|
658
679
|
useDrawerSwipe({
|
|
659
680
|
element: () => this.element,
|
|
660
681
|
boundary: () => this.swipeBoundary(),
|
|
@@ -755,10 +776,10 @@ class RdxDrawerPopup {
|
|
|
755
776
|
}
|
|
756
777
|
return { type: 'snap', offset: entry.offset };
|
|
757
778
|
}
|
|
758
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
759
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
779
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerPopup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
780
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerPopup, isStandalone: true, selector: "[rdxDrawerPopup]", host: { properties: { "attr.data-swipe-direction": "drawerContext.swipeDirection()", "attr.data-expanded": "expanded() ? \"\" : undefined", "attr.data-nested-drawer-open": "drawerContext.nestedDrawerOpen() ? \"\" : undefined", "style.--nested-drawers": "drawerContext.nestedDrawerCount()", "style.--drawer-frontmost-height": "frontmostHeightPx()" } }, exportAs: ["rdxDrawerPopup"], hostDirectives: [{ directive: i1.RdxDialogPopup, outputs: ["escapeKeyDown", "escapeKeyDown", "pointerDownOutside", "pointerDownOutside", "focusOutside", "focusOutside", "interactOutside", "interactOutside", "openAutoFocus", "openAutoFocus", "closeAutoFocus", "closeAutoFocus"] }], ngImport: i0 }); }
|
|
760
781
|
}
|
|
761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerPopup, decorators: [{
|
|
762
783
|
type: Directive,
|
|
763
784
|
args: [{
|
|
764
785
|
selector: '[rdxDrawerPopup]',
|
|
@@ -794,10 +815,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
794
815
|
* Use the explicit `<ng-template rdxDrawerPortal>` form; pass `[container]` for a custom target.
|
|
795
816
|
*/
|
|
796
817
|
class RdxDrawerPortal {
|
|
797
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
798
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
818
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
819
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerPortal, isStandalone: true, selector: "ng-template[rdxDrawerPortal]", exportAs: ["rdxDrawerPortal"], hostDirectives: [{ directive: i1.RdxDialogPortal, inputs: ["container", "container"] }], ngImport: i0 }); }
|
|
799
820
|
}
|
|
800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerPortal, decorators: [{
|
|
801
822
|
type: Directive,
|
|
802
823
|
args: [{
|
|
803
824
|
selector: 'ng-template[rdxDrawerPortal]',
|
|
@@ -817,10 +838,10 @@ class RdxDrawerPortalMisuseGuard {
|
|
|
817
838
|
'rdxDrawerPortalPresence has been removed.', 'components/drawer');
|
|
818
839
|
}
|
|
819
840
|
}
|
|
820
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
821
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
841
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerPortalMisuseGuard, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
842
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerPortalMisuseGuard, isStandalone: true, selector: "[rdxDrawerPortal]:not(ng-template)", ngImport: i0 }); }
|
|
822
843
|
}
|
|
823
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerPortalMisuseGuard, decorators: [{
|
|
824
845
|
type: Directive,
|
|
825
846
|
args: [{
|
|
826
847
|
selector: '[rdxDrawerPortal]:not(ng-template)'
|
|
@@ -860,13 +881,18 @@ class RdxDrawerSwipeArea {
|
|
|
860
881
|
this.drawerContext = injectRdxDrawerRootContext();
|
|
861
882
|
this.dialogContext = injectRdxDialogRootContext();
|
|
862
883
|
/** Direction the opening gesture travels; defaults to the opposite of the root's dismiss direction. */
|
|
863
|
-
this.swipeDirection = input(
|
|
884
|
+
this.swipeDirection = input(/* @ts-ignore */
|
|
885
|
+
...(ngDevMode ? [undefined, { debugName: "swipeDirection" }] : /* istanbul ignore next */ []));
|
|
864
886
|
/** Whether the swipe area should ignore user interaction. */
|
|
865
887
|
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
866
|
-
this.isOpen = computed(() => this.dialogContext.isOpen(),
|
|
867
|
-
|
|
868
|
-
this.
|
|
869
|
-
|
|
888
|
+
this.isOpen = computed(() => this.dialogContext.isOpen(), /* @ts-ignore */
|
|
889
|
+
...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
890
|
+
this.direction = computed(() => this.swipeDirection() ?? oppositeDirection[this.drawerContext.swipeDirection()], /* @ts-ignore */
|
|
891
|
+
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
892
|
+
this.resolvedTouchAction = computed(() => touchAction(this.direction()), /* @ts-ignore */
|
|
893
|
+
...(ngDevMode ? [{ debugName: "resolvedTouchAction" }] : /* istanbul ignore next */ []));
|
|
894
|
+
this.swiping = signal(false, /* @ts-ignore */
|
|
895
|
+
...(ngDevMode ? [{ debugName: "swiping" }] : /* istanbul ignore next */ []));
|
|
870
896
|
this.startX = 0;
|
|
871
897
|
this.startY = 0;
|
|
872
898
|
this.distance = 0;
|
|
@@ -898,10 +924,10 @@ class RdxDrawerSwipeArea {
|
|
|
898
924
|
}
|
|
899
925
|
});
|
|
900
926
|
}
|
|
901
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
902
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
927
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerSwipeArea, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
928
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: RdxDrawerSwipeArea, isStandalone: true, selector: "[rdxDrawerSwipeArea]", inputs: { swipeDirection: { classPropertyName: "swipeDirection", publicName: "swipeDirection", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "presentation", "aria-hidden": "true" }, properties: { "attr.data-open": "isOpen() ? \"\" : undefined", "attr.data-closed": "isOpen() ? undefined : \"\"", "attr.data-disabled": "disabled() ? \"\" : undefined", "attr.data-swiping": "swiping() ? \"\" : undefined", "attr.data-swipe-direction": "direction()", "style.pointer-events": "disabled() || isOpen() ? \"none\" : undefined", "style.touch-action": "resolvedTouchAction()" } }, exportAs: ["rdxDrawerSwipeArea"], ngImport: i0 }); }
|
|
903
929
|
}
|
|
904
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
930
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerSwipeArea, decorators: [{
|
|
905
931
|
type: Directive,
|
|
906
932
|
args: [{
|
|
907
933
|
selector: '[rdxDrawerSwipeArea]',
|
|
@@ -924,10 +950,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
924
950
|
* An accessible title announced when the drawer is opened.
|
|
925
951
|
*/
|
|
926
952
|
class RdxDrawerTitle {
|
|
927
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
928
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
953
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
954
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerTitle, isStandalone: true, selector: "[rdxDrawerTitle]", exportAs: ["rdxDrawerTitle"], hostDirectives: [{ directive: i1.RdxDialogTitle }], ngImport: i0 }); }
|
|
929
955
|
}
|
|
930
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
956
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerTitle, decorators: [{
|
|
931
957
|
type: Directive,
|
|
932
958
|
args: [{
|
|
933
959
|
selector: '[rdxDrawerTitle]',
|
|
@@ -940,10 +966,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
940
966
|
* A button that opens the drawer. Behaves exactly like the dialog trigger.
|
|
941
967
|
*/
|
|
942
968
|
class RdxDrawerTrigger {
|
|
943
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
944
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
969
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
970
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerTrigger, isStandalone: true, selector: "button[rdxDrawerTrigger]", exportAs: ["rdxDrawerTrigger"], hostDirectives: [{ directive: i1.RdxDialogTrigger, inputs: ["handle", "handle", "payload", "payload", "id", "id", "disabled", "disabled"] }], ngImport: i0 }); }
|
|
945
971
|
}
|
|
946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
972
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerTrigger, decorators: [{
|
|
947
973
|
type: Directive,
|
|
948
974
|
args: [{
|
|
949
975
|
selector: 'button[rdxDrawerTrigger]',
|
|
@@ -963,10 +989,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
963
989
|
* Exposes the dialog viewport's `data-nested` / `data-nested-dialog-open` state for styling.
|
|
964
990
|
*/
|
|
965
991
|
class RdxDrawerViewport {
|
|
966
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
967
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
992
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerViewport, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
993
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerViewport, isStandalone: true, selector: "[rdxDrawerViewport]", exportAs: ["rdxDrawerViewport"], hostDirectives: [{ directive: i1.RdxDialogViewport }], ngImport: i0 }); }
|
|
968
994
|
}
|
|
969
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerViewport, decorators: [{
|
|
970
996
|
type: Directive,
|
|
971
997
|
args: [{
|
|
972
998
|
selector: '[rdxDrawerViewport]',
|
|
@@ -1240,10 +1266,10 @@ class RdxDrawerVirtualKeyboardProvider {
|
|
|
1240
1266
|
adjustment.element.style.scrollPaddingBottom = adjustment.scrollPaddingBottom;
|
|
1241
1267
|
this.keyboardScrollAdjustment = null;
|
|
1242
1268
|
}
|
|
1243
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1244
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1269
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerVirtualKeyboardProvider, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1270
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxDrawerVirtualKeyboardProvider, isStandalone: true, selector: "[rdxDrawerVirtualKeyboardProvider]", host: { listeners: { "touchstart": "onTouchStart($event)", "touchmove": "onTouchMove($event)", "touchend": "onTouchEnd($event)", "touchcancel": "resetTouchTrackingState()" } }, exportAs: ["rdxDrawerVirtualKeyboardProvider"], ngImport: i0 }); }
|
|
1245
1271
|
}
|
|
1246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerVirtualKeyboardProvider, decorators: [{
|
|
1247
1273
|
type: Directive,
|
|
1248
1274
|
args: [{
|
|
1249
1275
|
selector: '[rdxDrawerVirtualKeyboardProvider]',
|
|
@@ -1440,8 +1466,8 @@ const drawerImports = [
|
|
|
1440
1466
|
RdxDrawerIndentBackground
|
|
1441
1467
|
];
|
|
1442
1468
|
class RdxDrawerModule {
|
|
1443
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1444
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1469
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1470
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerModule, imports: [RdxDrawerProviderDirective,
|
|
1445
1471
|
RdxDrawerRoot,
|
|
1446
1472
|
RdxDrawerTrigger,
|
|
1447
1473
|
RdxDrawerSwipeArea,
|
|
@@ -1472,9 +1498,9 @@ class RdxDrawerModule {
|
|
|
1472
1498
|
RdxDrawerClose,
|
|
1473
1499
|
RdxDrawerIndent,
|
|
1474
1500
|
RdxDrawerIndentBackground] }); }
|
|
1475
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1501
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerModule }); }
|
|
1476
1502
|
}
|
|
1477
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxDrawerModule, decorators: [{
|
|
1478
1504
|
type: NgModule,
|
|
1479
1505
|
args: [{
|
|
1480
1506
|
imports: [...drawerImports],
|