@4sh/ui-kit 0.4.0 → 0.6.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 +73 -60
- package/README.md +72 -59
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +4 -4
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +7 -6
- 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-base-ui-icon.mjs +7 -7
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +11 -8
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +32 -12
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +51 -15
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +13 -9
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +6 -6
- 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 +6 -6
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +8 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +24 -9
- 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-label.mjs +3 -3
- 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 -8
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -8
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +11 -6
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +29 -15
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +8 -9
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +13 -6
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +6 -4
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +16 -16
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +12 -12
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +9 -9
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +3 -3
- 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 +5 -4
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +3 -3
- 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 +3 -3
- 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 +30 -14
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +43 -17
- 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 +23 -7
- 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-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +10 -5
- 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-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +79 -14
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +15 -13
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +29 -21
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +15 -15
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- 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 +55 -42
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +7 -7
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/mcp/LICENSE +201 -0
- package/mcp/data/text-search-docs.json +7046 -0
- package/mcp/data/ui-config.json +16960 -0
- package/mcp/index.js +33018 -0
- package/mcp/package.json +18 -0
- package/package.json +10 -4
- package/schematics/index.cjs +28 -18
- package/types/4sh-ui-kit-layout-ui-card.d.ts +13 -1
|
@@ -16,37 +16,37 @@ import { Directive, input, booleanAttribute, contentChild, viewChild, signal, co
|
|
|
16
16
|
*/
|
|
17
17
|
/** Full-bleed media region, rendered above the body (image, illustration…). */
|
|
18
18
|
class UiCardMedia {
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
20
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
20
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.2", type: UiCardMedia, isStandalone: true, selector: "[uiCardMedia], ui-card-media", ngImport: i0 }); }
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardMedia, decorators: [{
|
|
23
23
|
type: Directive,
|
|
24
24
|
args: [{ selector: '[uiCardMedia], ui-card-media' }]
|
|
25
25
|
}] });
|
|
26
26
|
/** Title region (also settable via the `header` string input). */
|
|
27
27
|
class UiCardTitle {
|
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
29
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.
|
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
29
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.2", type: UiCardTitle, isStandalone: true, selector: "[uiCardTitle], ui-card-title", ngImport: i0 }); }
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardTitle, decorators: [{
|
|
32
32
|
type: Directive,
|
|
33
33
|
args: [{ selector: '[uiCardTitle], ui-card-title' }]
|
|
34
34
|
}] });
|
|
35
35
|
/** Subtitle region (also settable via the `subheader` string input). */
|
|
36
36
|
class UiCardSubtitle {
|
|
37
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
38
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.
|
|
37
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardSubtitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
38
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.2", type: UiCardSubtitle, isStandalone: true, selector: "[uiCardSubtitle], ui-card-subtitle", ngImport: i0 }); }
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardSubtitle, decorators: [{
|
|
41
41
|
type: Directive,
|
|
42
42
|
args: [{ selector: '[uiCardSubtitle], ui-card-subtitle' }]
|
|
43
43
|
}] });
|
|
44
44
|
/** Footer region (actions, tags…), rendered below the body content. */
|
|
45
45
|
class UiCardFooter {
|
|
46
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
47
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.
|
|
46
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
47
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.2", type: UiCardFooter, isStandalone: true, selector: "[uiCardFooter], ui-card-footer", ngImport: i0 }); }
|
|
48
48
|
}
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardFooter, decorators: [{
|
|
50
50
|
type: Directive,
|
|
51
51
|
args: [{ selector: '[uiCardFooter], ui-card-footer' }]
|
|
52
52
|
}] });
|
|
@@ -60,6 +60,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
60
60
|
* dropping content into the card — needs no imports (default `<ng-content>`); title and
|
|
61
61
|
* subtitle also accept the `header`/`subheader` string inputs. Richer slots use the
|
|
62
62
|
* exported marker directives (`UiCardMedia`, `UiCardTitle`, `UiCardSubtitle`, `UiCardFooter`).
|
|
63
|
+
*
|
|
64
|
+
* Sizing: no intrinsic width (a block parent gives 100%, `fluid` fills a flex/grid one) and
|
|
65
|
+
* the visible box fills the host's height, so a row of cards lines up on its own.
|
|
63
66
|
*/
|
|
64
67
|
class UiCard {
|
|
65
68
|
constructor() {
|
|
@@ -72,6 +75,8 @@ class UiCard {
|
|
|
72
75
|
/** Visual treatment of the surface. */
|
|
73
76
|
this.variant = input('outlined', /* @ts-ignore */
|
|
74
77
|
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
78
|
+
/** Span the full width of the parent (a flex/grid parent otherwise sizes the card to its content). */
|
|
79
|
+
this.fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
75
80
|
/**
|
|
76
81
|
* Removes the horizontal gutter of the default content region so it bleeds to
|
|
77
82
|
* the card edges — lets the consumer own the inner layout (e.g. a full-bleed
|
|
@@ -79,6 +84,12 @@ class UiCard {
|
|
|
79
84
|
* with `padding-inline: var(--ui-card-gutter)`.
|
|
80
85
|
*/
|
|
81
86
|
this.contentFlush = input(false, { ...(ngDevMode ? { debugName: "contentFlush" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
87
|
+
/**
|
|
88
|
+
* Classes applied to the default content region, gutter kept: lets the consumer lay
|
|
89
|
+
* the content out (Gridaflex, utilities) without an intermediate wrapper.
|
|
90
|
+
*/
|
|
91
|
+
this.contentClass = input('', /* @ts-ignore */
|
|
92
|
+
...(ngDevMode ? [{ debugName: "contentClass" }] : /* istanbul ignore next */ []));
|
|
82
93
|
/** Accessible name for the card region (use when the card conveys a landmark). */
|
|
83
94
|
this.ariaLabel = input(/* @ts-ignore */
|
|
84
95
|
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
@@ -128,6 +139,19 @@ class UiCard {
|
|
|
128
139
|
this.showSubheaderString = computed(() => !!this.subheader() && !this.subtitleSlot(), /* @ts-ignore */
|
|
129
140
|
...(ngDevMode ? [{ debugName: "showSubheaderString" }] : /* istanbul ignore next */ []));
|
|
130
141
|
/** @ignore */
|
|
142
|
+
this.contentClasses = computed(() => {
|
|
143
|
+
const c = ['ui-card-content'];
|
|
144
|
+
if (!this.hasContent())
|
|
145
|
+
c.push('_empty');
|
|
146
|
+
if (this.contentFlush())
|
|
147
|
+
c.push('_flush');
|
|
148
|
+
const extra = this.contentClass().trim();
|
|
149
|
+
if (extra)
|
|
150
|
+
c.push(extra);
|
|
151
|
+
return c.join(' ');
|
|
152
|
+
}, /* @ts-ignore */
|
|
153
|
+
...(ngDevMode ? [{ debugName: "contentClasses" }] : /* istanbul ignore next */ []));
|
|
154
|
+
/** @ignore */
|
|
131
155
|
this.classes = computed(() => {
|
|
132
156
|
const c = ['ui-card', `_${this.variant()}`];
|
|
133
157
|
if (this.hasMedia())
|
|
@@ -144,13 +168,15 @@ class UiCard {
|
|
|
144
168
|
this.hasProjectedContent.set(has);
|
|
145
169
|
});
|
|
146
170
|
}
|
|
147
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
148
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
171
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
172
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiCard, isStandalone: true, selector: "ui-card", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, subheader: { classPropertyName: "subheader", publicName: "subheader", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, contentFlush: { classPropertyName: "contentFlush", publicName: "contentFlush", isSignal: true, isRequired: false, transformFunction: null }, contentClass: { classPropertyName: "contentClass", publicName: "contentClass", 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 } }, host: { properties: { "class._fluid": "fluid()" } }, queries: [{ propertyName: "titleSlot", first: true, predicate: UiCardTitle, descendants: true, isSignal: true }, { propertyName: "subtitleSlot", first: true, predicate: UiCardSubtitle, descendants: true, isSignal: true }, { propertyName: "mediaSlot", first: true, predicate: UiCardMedia, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: UiCardFooter, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "contentWrap", first: true, predicate: ["contentWrap"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n [class]=\"classes()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.role]=\"ariaLabel() || ariaLabelledBy() ? 'region' : null\"\n>\n @if (hasMedia()) {\n <div class=\"ui-card-media\">\n <ng-content select=\"[uiCardMedia], ui-card-media\" />\n </div>\n }\n\n <div class=\"ui-card-body\">\n @if (hasHeader()) {\n <div class=\"ui-card-header\">\n @if (hasTitle()) {\n <div class=\"ui-card-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiCardTitle], ui-card-title\" />\n </div>\n }\n @if (hasSubtitle()) {\n <div class=\"ui-card-subtitle\">\n @if (showSubheaderString()) {\n {{ subheader() }}\n }\n <ng-content select=\"[uiCardSubtitle], ui-card-subtitle\" />\n </div>\n }\n </div>\n }\n\n <div #contentWrap [class]=\"contentClasses()\">\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div class=\"ui-card-footer\">\n <ng-content select=\"[uiCardFooter], ui-card-footer\" />\n </div>\n }\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column}:host._fluid{width:100%}.ui-card{--ui-card-gutter: var(--ui-card-padding, var(--units-lg));display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;background-color:var(--global-background-default);border:var(--ui-card-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-card-radius, var(--radius-md));color:var(--global-text-default);font-family:var(--fontfamily-base)}.ui-card-media{display:flex;overflow:hidden}.ui-card-media ::ng-deep img,.ui-card-media ::ng-deep svg,.ui-card-media ::ng-deep ui-image,.ui-card-media ::ng-deep picture{display:block;width:100%;height:100%;object-fit:cover}.ui-card-body{display:flex;flex-direction:column;gap:var(--ui-card-gap, var(--units-md));padding-block:var(--ui-card-padding, var(--units-lg))}.ui-card-header{display:flex;flex-direction:column;gap:var(--ui-card-header-gap, var(--units-2xs));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card-title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--units-sm);font-family:var(--fontfamily-title);font-size:var(--size-typography-title-default);font-weight:var(--weight-bold);line-height:1.2;color:var(--global-text-default)}.ui-card-subtitle{font-size:var(--size-typography-text-md);line-height:1.4;color:var(--global-text-muted)}.ui-card-content{padding-inline:var(--ui-card-padding, var(--units-lg));font-size:var(--size-typography-text-md);line-height:1.5;color:var(--global-text-default)}.ui-card-content._flush{padding-inline:0}.ui-card-content._empty{display:none}.ui-card-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-card-footer-gap, var(--units-sm));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card._outlined{border-color:var(--global-border-subtle)}.ui-card._elevated{box-shadow:var(--shadow-default-md)}\n"] }); }
|
|
149
173
|
}
|
|
150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCard, decorators: [{
|
|
151
175
|
type: Component,
|
|
152
|
-
args: [{ selector: 'ui-card', imports: [],
|
|
153
|
-
|
|
176
|
+
args: [{ selector: 'ui-card', imports: [], host: {
|
|
177
|
+
'[class._fluid]': 'fluid()',
|
|
178
|
+
}, template: "<div\n [class]=\"classes()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.role]=\"ariaLabel() || ariaLabelledBy() ? 'region' : null\"\n>\n @if (hasMedia()) {\n <div class=\"ui-card-media\">\n <ng-content select=\"[uiCardMedia], ui-card-media\" />\n </div>\n }\n\n <div class=\"ui-card-body\">\n @if (hasHeader()) {\n <div class=\"ui-card-header\">\n @if (hasTitle()) {\n <div class=\"ui-card-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiCardTitle], ui-card-title\" />\n </div>\n }\n @if (hasSubtitle()) {\n <div class=\"ui-card-subtitle\">\n @if (showSubheaderString()) {\n {{ subheader() }}\n }\n <ng-content select=\"[uiCardSubtitle], ui-card-subtitle\" />\n </div>\n }\n </div>\n }\n\n <div #contentWrap [class]=\"contentClasses()\">\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div class=\"ui-card-footer\">\n <ng-content select=\"[uiCardFooter], ui-card-footer\" />\n </div>\n }\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column}:host._fluid{width:100%}.ui-card{--ui-card-gutter: var(--ui-card-padding, var(--units-lg));display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;background-color:var(--global-background-default);border:var(--ui-card-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-card-radius, var(--radius-md));color:var(--global-text-default);font-family:var(--fontfamily-base)}.ui-card-media{display:flex;overflow:hidden}.ui-card-media ::ng-deep img,.ui-card-media ::ng-deep svg,.ui-card-media ::ng-deep ui-image,.ui-card-media ::ng-deep picture{display:block;width:100%;height:100%;object-fit:cover}.ui-card-body{display:flex;flex-direction:column;gap:var(--ui-card-gap, var(--units-md));padding-block:var(--ui-card-padding, var(--units-lg))}.ui-card-header{display:flex;flex-direction:column;gap:var(--ui-card-header-gap, var(--units-2xs));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card-title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--units-sm);font-family:var(--fontfamily-title);font-size:var(--size-typography-title-default);font-weight:var(--weight-bold);line-height:1.2;color:var(--global-text-default)}.ui-card-subtitle{font-size:var(--size-typography-text-md);line-height:1.4;color:var(--global-text-muted)}.ui-card-content{padding-inline:var(--ui-card-padding, var(--units-lg));font-size:var(--size-typography-text-md);line-height:1.5;color:var(--global-text-default)}.ui-card-content._flush{padding-inline:0}.ui-card-content._empty{display:none}.ui-card-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-card-footer-gap, var(--units-sm));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card._outlined{border-color:var(--global-border-subtle)}.ui-card._elevated{box-shadow:var(--shadow-default-md)}\n"] }]
|
|
179
|
+
}], ctorParameters: () => [], propDecorators: { header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], subheader: [{ type: i0.Input, args: [{ isSignal: true, alias: "subheader", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], contentFlush: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentFlush", required: false }] }], contentClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentClass", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], titleSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiCardTitle), { isSignal: true }] }], subtitleSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiCardSubtitle), { isSignal: true }] }], mediaSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiCardMedia), { isSignal: true }] }], footerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiCardFooter), { isSignal: true }] }], contentWrap: [{ type: i0.ViewChild, args: ['contentWrap', { isSignal: true }] }] } });
|
|
154
180
|
|
|
155
181
|
/*
|
|
156
182
|
* Public API Surface of ui-kit/ui-card
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-layout-ui-card.mjs","sources":["../../../projects/ui-kit/layout/ui-card/src/lib/ui-card.ts","../../../projects/ui-kit/layout/ui-card/src/lib/ui-card.html","../../../projects/ui-kit/layout/ui-card/src/public-api.ts","../../../projects/ui-kit/layout/ui-card/src/4sh-ui-kit-layout-ui-card.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n Directive,\n ElementRef,\n input,\n signal,\n viewChild,\n} from '@angular/core';\n\nexport type CardVariant = 'outlined' | 'elevated' | 'flat';\n\n/**\n * Slot markers — apply them (attribute or element form) on the content you project\n * into a `<ui-card>` to route it to the matching region. They carry no behaviour;\n * the card queries their presence to render the surrounding structure.\n *\n * <ui-card>\n * <img uiCardMedia … />\n * <span uiCardTitle>Title</span>\n * <span uiCardSubtitle>Subtitle</span>\n * Body content (default slot)\n * <div uiCardFooter><ui-button … /></div>\n * </ui-card>\n */\n/** Full-bleed media region, rendered above the body (image, illustration…). */\n@Directive({ selector: '[uiCardMedia], ui-card-media' })\nexport class UiCardMedia {}\n\n/** Title region (also settable via the `header` string input). */\n@Directive({ selector: '[uiCardTitle], ui-card-title' })\nexport class UiCardTitle {}\n\n/** Subtitle region (also settable via the `subheader` string input). */\n@Directive({ selector: '[uiCardSubtitle], ui-card-subtitle' })\nexport class UiCardSubtitle {}\n\n/** Footer region (actions, tags…), rendered below the body content. */\n@Directive({ selector: '[uiCardFooter], ui-card-footer' })\nexport class UiCardFooter {}\n\n/**\n * ui-card — flexible container that composes optional regions: media, header\n * (title + subtitle), body content and footer.\n *\n * Headless: renders a neutral `surface` box (border + radius, optional elevation) whose\n * regions are driven by content projection. Each region is rendered only when it holds\n * content, so no empty wrapper (and no phantom gap) is emitted. The most common case —\n * dropping content into the card — needs no imports (default `<ng-content>`); title and\n * subtitle also accept the `header`/`subheader` string inputs. Richer slots use the\n * exported marker directives (`UiCardMedia`, `UiCardTitle`, `UiCardSubtitle`, `UiCardFooter`).\n */\n@Component({\n selector: 'ui-card',\n imports: [],\n templateUrl: './ui-card.html',\n styleUrl: './ui-card.scss',\n})\nexport class UiCard {\n /** Title text (convenience shorthand for the `uiCardTitle` slot). */\n header = input<string>();\n /** Subtitle text (convenience shorthand for the `uiCardSubtitle` slot). */\n subheader = input<string>();\n /** Visual treatment of the surface. */\n variant = input<CardVariant>('outlined');\n /**\n * Removes the horizontal gutter of the default content region so it bleeds to\n * the card edges — lets the consumer own the inner layout (e.g. a full-bleed\n * media/color band + a padded paragraph). Re-apply the gutter on inner blocks\n * with `padding-inline: var(--ui-card-gutter)`.\n */\n contentFlush = input(false, { transform: booleanAttribute });\n /** Accessible name for the card region (use when the card conveys a landmark). */\n ariaLabel = input<string>();\n /** Id of the element labelling the card region. */\n ariaLabelledBy = input<string>();\n\n /** @ignore */\n protected readonly titleSlot = contentChild(UiCardTitle);\n /** @ignore */\n protected readonly subtitleSlot = contentChild(UiCardSubtitle);\n /** @ignore */\n protected readonly mediaSlot = contentChild(UiCardMedia);\n /** @ignore */\n protected readonly footerSlot = contentChild(UiCardFooter);\n\n /** @ignore */\n private readonly contentWrap = viewChild<ElementRef<HTMLElement>>('contentWrap');\n /** @ignore Default content actually projected (detected after rendering). */\n private readonly hasProjectedContent = signal(false);\n\n constructor() {\n // Detect projected default content (<ng-content>) — SSR-safe (browser only).\n afterNextRender(() => {\n const el = this.contentWrap()?.nativeElement;\n const has =\n !!el &&\n Array.from(el.childNodes).some(\n (n) =>\n n.nodeType === Node.ELEMENT_NODE ||\n (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim()),\n );\n this.hasProjectedContent.set(has);\n });\n }\n\n /** @ignore A title is provided (string input or projected slot). */\n protected readonly hasTitle = computed(() => !!this.header() || !!this.titleSlot());\n /** @ignore A subtitle is provided (string input or projected slot). */\n protected readonly hasSubtitle = computed(() => !!this.subheader() || !!this.subtitleSlot());\n /** @ignore The header region (title and/or subtitle) has content. */\n protected readonly hasHeader = computed(() => this.hasTitle() || this.hasSubtitle());\n /** @ignore A media slot is provided. */\n protected readonly hasMedia = computed(() => !!this.mediaSlot());\n /** @ignore A footer slot is provided. */\n protected readonly hasFooter = computed(() => !!this.footerSlot());\n /** @ignore The body has default content. */\n protected readonly hasContent = computed(() => this.hasProjectedContent());\n\n /** @ignore Render the string title only when no title slot overrides it. */\n protected readonly showHeaderString = computed(() => !!this.header() && !this.titleSlot());\n /** @ignore Render the string subtitle only when no subtitle slot overrides it. */\n protected readonly showSubheaderString = computed(\n () => !!this.subheader() && !this.subtitleSlot(),\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-card', `_${this.variant()}`];\n if (this.hasMedia()) c.push('_has-media');\n return c.join(' ');\n });\n}\n","<div\n [class]=\"classes()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.role]=\"ariaLabel() || ariaLabelledBy() ? 'region' : null\"\n>\n @if (hasMedia()) {\n <div class=\"ui-card-media\">\n <ng-content select=\"[uiCardMedia], ui-card-media\" />\n </div>\n }\n\n <div class=\"ui-card-body\">\n @if (hasHeader()) {\n <div class=\"ui-card-header\">\n @if (hasTitle()) {\n <div class=\"ui-card-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiCardTitle], ui-card-title\" />\n </div>\n }\n @if (hasSubtitle()) {\n <div class=\"ui-card-subtitle\">\n @if (showSubheaderString()) {\n {{ subheader() }}\n }\n <ng-content select=\"[uiCardSubtitle], ui-card-subtitle\" />\n </div>\n }\n </div>\n }\n\n <div\n class=\"ui-card-content\"\n #contentWrap\n [class._empty]=\"!hasContent()\"\n [class._flush]=\"contentFlush()\"\n >\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div class=\"ui-card-footer\">\n <ng-content select=\"[uiCardFooter], ui-card-footer\" />\n </div>\n }\n </div>\n</div>\n","/*\n * Public API Surface of ui-kit/ui-card\n */\n\nexport * from './lib/ui-card';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAeA;;;;;;;;;;;;AAYG;AACH;MAEa,WAAW,CAAA;8GAAX,WAAW,EAAA,IAAA,EAAA,EAAA,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CAAA,EAAA,CAAA,UAAA,CAAA,MAEV,YAAY,sEAGS,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1FjF;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-layout-ui-card.mjs","sources":["../../../projects/ui-kit/layout/ui-card/src/lib/ui-card.ts","../../../projects/ui-kit/layout/ui-card/src/lib/ui-card.html","../../../projects/ui-kit/layout/ui-card/src/public-api.ts","../../../projects/ui-kit/layout/ui-card/src/4sh-ui-kit-layout-ui-card.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n Directive,\n ElementRef,\n input,\n signal,\n viewChild,\n} from '@angular/core';\n\nexport type CardVariant = 'outlined' | 'elevated' | 'flat';\n\n/**\n * Slot markers — apply them (attribute or element form) on the content you project\n * into a `<ui-card>` to route it to the matching region. They carry no behaviour;\n * the card queries their presence to render the surrounding structure.\n *\n * <ui-card>\n * <img uiCardMedia … />\n * <span uiCardTitle>Title</span>\n * <span uiCardSubtitle>Subtitle</span>\n * Body content (default slot)\n * <div uiCardFooter><ui-button … /></div>\n * </ui-card>\n */\n/** Full-bleed media region, rendered above the body (image, illustration…). */\n@Directive({ selector: '[uiCardMedia], ui-card-media' })\nexport class UiCardMedia {}\n\n/** Title region (also settable via the `header` string input). */\n@Directive({ selector: '[uiCardTitle], ui-card-title' })\nexport class UiCardTitle {}\n\n/** Subtitle region (also settable via the `subheader` string input). */\n@Directive({ selector: '[uiCardSubtitle], ui-card-subtitle' })\nexport class UiCardSubtitle {}\n\n/** Footer region (actions, tags…), rendered below the body content. */\n@Directive({ selector: '[uiCardFooter], ui-card-footer' })\nexport class UiCardFooter {}\n\n/**\n * ui-card — flexible container that composes optional regions: media, header\n * (title + subtitle), body content and footer.\n *\n * Headless: renders a neutral `surface` box (border + radius, optional elevation) whose\n * regions are driven by content projection. Each region is rendered only when it holds\n * content, so no empty wrapper (and no phantom gap) is emitted. The most common case —\n * dropping content into the card — needs no imports (default `<ng-content>`); title and\n * subtitle also accept the `header`/`subheader` string inputs. Richer slots use the\n * exported marker directives (`UiCardMedia`, `UiCardTitle`, `UiCardSubtitle`, `UiCardFooter`).\n *\n * Sizing: no intrinsic width (a block parent gives 100%, `fluid` fills a flex/grid one) and\n * the visible box fills the host's height, so a row of cards lines up on its own.\n */\n@Component({\n selector: 'ui-card',\n imports: [],\n templateUrl: './ui-card.html',\n styleUrl: './ui-card.scss',\n host: {\n '[class._fluid]': 'fluid()',\n },\n})\nexport class UiCard {\n /** Title text (convenience shorthand for the `uiCardTitle` slot). */\n header = input<string>();\n /** Subtitle text (convenience shorthand for the `uiCardSubtitle` slot). */\n subheader = input<string>();\n /** Visual treatment of the surface. */\n variant = input<CardVariant>('outlined');\n /** Span the full width of the parent (a flex/grid parent otherwise sizes the card to its content). */\n fluid = input(false, { transform: booleanAttribute });\n /**\n * Removes the horizontal gutter of the default content region so it bleeds to\n * the card edges — lets the consumer own the inner layout (e.g. a full-bleed\n * media/color band + a padded paragraph). Re-apply the gutter on inner blocks\n * with `padding-inline: var(--ui-card-gutter)`.\n */\n contentFlush = input(false, { transform: booleanAttribute });\n /**\n * Classes applied to the default content region, gutter kept: lets the consumer lay\n * the content out (Gridaflex, utilities) without an intermediate wrapper.\n */\n contentClass = input<string>('');\n /** Accessible name for the card region (use when the card conveys a landmark). */\n ariaLabel = input<string>();\n /** Id of the element labelling the card region. */\n ariaLabelledBy = input<string>();\n\n /** @ignore */\n protected readonly titleSlot = contentChild(UiCardTitle);\n /** @ignore */\n protected readonly subtitleSlot = contentChild(UiCardSubtitle);\n /** @ignore */\n protected readonly mediaSlot = contentChild(UiCardMedia);\n /** @ignore */\n protected readonly footerSlot = contentChild(UiCardFooter);\n\n /** @ignore */\n private readonly contentWrap = viewChild<ElementRef<HTMLElement>>('contentWrap');\n /** @ignore Default content actually projected (detected after rendering). */\n private readonly hasProjectedContent = signal(false);\n\n constructor() {\n // Detect projected default content (<ng-content>) — SSR-safe (browser only).\n afterNextRender(() => {\n const el = this.contentWrap()?.nativeElement;\n const has =\n !!el &&\n Array.from(el.childNodes).some(\n (n) =>\n n.nodeType === Node.ELEMENT_NODE ||\n (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim()),\n );\n this.hasProjectedContent.set(has);\n });\n }\n\n /** @ignore A title is provided (string input or projected slot). */\n protected readonly hasTitle = computed(() => !!this.header() || !!this.titleSlot());\n /** @ignore A subtitle is provided (string input or projected slot). */\n protected readonly hasSubtitle = computed(() => !!this.subheader() || !!this.subtitleSlot());\n /** @ignore The header region (title and/or subtitle) has content. */\n protected readonly hasHeader = computed(() => this.hasTitle() || this.hasSubtitle());\n /** @ignore A media slot is provided. */\n protected readonly hasMedia = computed(() => !!this.mediaSlot());\n /** @ignore A footer slot is provided. */\n protected readonly hasFooter = computed(() => !!this.footerSlot());\n /** @ignore The body has default content. */\n protected readonly hasContent = computed(() => this.hasProjectedContent());\n\n /** @ignore Render the string title only when no title slot overrides it. */\n protected readonly showHeaderString = computed(() => !!this.header() && !this.titleSlot());\n /** @ignore Render the string subtitle only when no subtitle slot overrides it. */\n protected readonly showSubheaderString = computed(\n () => !!this.subheader() && !this.subtitleSlot(),\n );\n\n /** @ignore */\n protected readonly contentClasses = computed(() => {\n const c = ['ui-card-content'];\n if (!this.hasContent()) c.push('_empty');\n if (this.contentFlush()) c.push('_flush');\n const extra = this.contentClass().trim();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-card', `_${this.variant()}`];\n if (this.hasMedia()) c.push('_has-media');\n return c.join(' ');\n });\n}\n","<div\n [class]=\"classes()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.role]=\"ariaLabel() || ariaLabelledBy() ? 'region' : null\"\n>\n @if (hasMedia()) {\n <div class=\"ui-card-media\">\n <ng-content select=\"[uiCardMedia], ui-card-media\" />\n </div>\n }\n\n <div class=\"ui-card-body\">\n @if (hasHeader()) {\n <div class=\"ui-card-header\">\n @if (hasTitle()) {\n <div class=\"ui-card-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiCardTitle], ui-card-title\" />\n </div>\n }\n @if (hasSubtitle()) {\n <div class=\"ui-card-subtitle\">\n @if (showSubheaderString()) {\n {{ subheader() }}\n }\n <ng-content select=\"[uiCardSubtitle], ui-card-subtitle\" />\n </div>\n }\n </div>\n }\n\n <div #contentWrap [class]=\"contentClasses()\">\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div class=\"ui-card-footer\">\n <ng-content select=\"[uiCardFooter], ui-card-footer\" />\n </div>\n }\n </div>\n</div>\n","/*\n * Public API Surface of ui-kit/ui-card\n */\n\nexport * from './lib/ui-card';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAeA;;;;;;;;;;;;AAYG;AACH;MAEa,WAAW,CAAA;8GAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBADvB,SAAS;mBAAC,EAAE,QAAQ,EAAE,8BAA8B,EAAE;;AAGvD;MAEa,WAAW,CAAA;8GAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAX,WAAW,EAAA,UAAA,EAA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AAA,EAAA,IAAA,EAAA,KAAA,EAAA,cAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,WAAW,8FAER,cAAc,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAEjB,WAAW,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAEV,YAAY,sEAGS,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvGjF;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -205,7 +205,7 @@ class UiDrawer {
|
|
|
205
205
|
this.labelledBy = computed(() => this.ariaLabelledBy() ?? (this.showHeader() && this.header() ? this.titleId : null), /* @ts-ignore */
|
|
206
206
|
...(ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []));
|
|
207
207
|
/** @ignore Fallback accessible name when nothing is referenced. */
|
|
208
|
-
this.resolvedAriaLabel = computed(() =>
|
|
208
|
+
this.resolvedAriaLabel = computed(() => this.labelledBy() ? null : this.ariaLabel(), /* @ts-ignore */
|
|
209
209
|
...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
|
|
210
210
|
const destroyRef = inject(DestroyRef);
|
|
211
211
|
let wasVisible = false;
|
|
@@ -280,10 +280,10 @@ class UiDrawer {
|
|
|
280
280
|
this.locked = false;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
284
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiDrawer, isStandalone: true, selector: "ui-drawer", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, fullScreen: { classPropertyName: "fullScreen", publicName: "fullScreen", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", 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 }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", 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 }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: true, isRequired: false, transformFunction: null }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", 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 }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, maskStyleClass: { classPropertyName: "maskStyleClass", publicName: "maskStyleClass", isSignal: true, isRequired: false, transformFunction: null }, drawerStyle: { classPropertyName: "drawerStyle", publicName: "drawerStyle", isSignal: true, isRequired: false, transformFunction: null }, contained: { classPropertyName: "contained", publicName: "contained", 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 }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", shown: "shown", hidden: "hidden" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "closeIconTemplate", first: true, predicate: ["closeicon"], descendants: true, isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "scrimRef", first: true, predicate: ["scrim"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (visible()) {\n <!-- Scrim + positioner are SIBLINGS (both direct @if children) so each animates its own\n leave independently \u2014 a nested animated element would deadlock the removal.\n The positioner carries the directional slide; the panel inside owns sizing/surface. -->\n @if (modal()) {\n <div\n #scrim\n class=\"ui-drawer-scrim\"\n [class._contained]=\"contained()\"\n [style.z-index]=\"zIndex()\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"motionDisabled()\"\n #scrimMotion=\"uiMotion\"\n [animate.enter]=\"scrimMotion.enter()\"\n [animate.leave]=\"scrimMotion.leave()\"\n (pointerdown)=\"onMaskPointerdown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives in the\n content (CDK focus-trap). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-drawer-positioner\"\n [class._left]=\"position() === 'left'\"\n [class._right]=\"position() === 'right'\"\n [class._top]=\"position() === 'top'\"\n [class._bottom]=\"position() === 'bottom'\"\n [class._full-screen]=\"fullScreen()\"\n [class._contained]=\"contained()\"\n [style.z-index]=\"zIndex()\"\n [uiMotion]=\"motionPreset()\"\n [motionDistance]=\"motionDistance()\"\n [motionDisabled]=\"motionDisabled()\"\n #posMotion=\"uiMotion\"\n [animate.enter]=\"posMotion.enter()\"\n [animate.leave]=\"posMotion.leave()\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"'ui-drawer' + (styleClass() ? ' ' + styleClass() : '')\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n tabindex=\"-1\"\n [style]=\"drawerStyle()\"\n [cdkTrapFocus]=\"focusTrap()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n @if (headlessTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n @if (showHeader()) {\n <div class=\"ui-drawer-header\">\n <div [attr.id]=\"titleId\" class=\"ui-drawer-title\">\n @if (headerTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ header() }}\n }\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-drawer-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n }\n </button>\n }\n </div>\n }\n\n <!-- Body: long content scrolls inside this region. -->\n <div class=\"ui-drawer-content\">\n <ng-content />\n </div>\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-drawer-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n }\n </div>\n </div>\n}\n", styles: [".ui-drawer-scrim{position:fixed;inset:0;z-index:var(--ui-drawer-z-index, 1100);background-color:var(--ui-drawer-mask-background, var(--primitives-black-50))}.ui-drawer-scrim._contained{position:absolute}.ui-drawer-positioner{position:fixed;z-index:var(--ui-drawer-z-index, 1100);display:flex}.ui-drawer-positioner._left{inset-block:0;inset-inline-start:0}.ui-drawer-positioner._right{inset-block:0;inset-inline-end:0}.ui-drawer-positioner._top{inset-inline:0;inset-block-start:0}.ui-drawer-positioner._bottom{inset-inline:0;inset-block-end:0}.ui-drawer-positioner._full-screen{inset:0}.ui-drawer-positioner._contained{position:absolute}.ui-drawer{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--global-background-default);color:var(--global-text-default);box-shadow:var(--shadow-default-lg);font-family:var(--fontfamily-base);outline:none}.ui-drawer-positioner._left .ui-drawer,.ui-drawer-positioner._right .ui-drawer{width:var(--ui-drawer-size-side, 20rem);max-width:100%;height:100%}.ui-drawer-positioner._top .ui-drawer,.ui-drawer-positioner._bottom .ui-drawer{width:100%;height:var(--ui-drawer-size-edge, 10rem);max-height:100%}.ui-drawer-positioner._full-screen .ui-drawer{width:100%;height:100%}.ui-drawer-positioner._left .ui-drawer{border-inline-end:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}.ui-drawer-positioner._right .ui-drawer{border-inline-start:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}.ui-drawer-positioner._top .ui-drawer{border-block-end:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}.ui-drawer-positioner._bottom .ui-drawer{border-block-start:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}.ui-drawer-positioner._full-screen .ui-drawer{border:none}.ui-drawer-header{flex:0 0 auto;display:flex;align-items:flex-start;gap:var(--ui-drawer-header-gap, var(--units-sm));padding:var(--ui-drawer-panel-padding, var(--units-lg)) var(--ui-drawer-panel-padding, var(--units-lg)) var(--units-sm)}.ui-drawer-title{flex:1 1 auto;min-width:0;font-family:var(--fontfamily-title);font-size:var(--size-typography-title-default);font-weight:var(--weight-bold);line-height:1.3;overflow-wrap:break-word}.ui-drawer-action{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:var(--ui-drawer-action-size, 2rem);height:var(--ui-drawer-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(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-drawer-action:hover{background-color:var(--global-background-muted-hover);color:var(--global-text-muted-hover)}.ui-drawer-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-drawer-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--global-border-focus)}@media(prefers-reduced-motion:reduce){.ui-drawer-action{transition-duration:.01ms}}:root[data-motion=off] .ui-drawer-action{transition-duration:.01ms}.ui-drawer-content{flex:1 1 auto;min-height:0;overflow-y:auto;padding:var(--ui-drawer-panel-padding, var(--units-lg));font-size:var(--size-typography-text-md);line-height:1.5}.ui-drawer-header+.ui-drawer-content{padding-top:0}.ui-drawer-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--units-sm);padding:var(--units-md) var(--ui-drawer-panel-padding, var(--units-lg)) var(--ui-drawer-panel-padding, var(--units-lg));border-top:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
283
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiDrawer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
284
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiDrawer, isStandalone: true, selector: "ui-drawer", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, fullScreen: { classPropertyName: "fullScreen", publicName: "fullScreen", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", 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 }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", 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 }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: true, isRequired: false, transformFunction: null }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", 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 }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, maskStyleClass: { classPropertyName: "maskStyleClass", publicName: "maskStyleClass", isSignal: true, isRequired: false, transformFunction: null }, drawerStyle: { classPropertyName: "drawerStyle", publicName: "drawerStyle", isSignal: true, isRequired: false, transformFunction: null }, contained: { classPropertyName: "contained", publicName: "contained", 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 }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", shown: "shown", hidden: "hidden" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "closeIconTemplate", first: true, predicate: ["closeicon"], descendants: true, isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "scrimRef", first: true, predicate: ["scrim"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (visible()) {\n <!-- Scrim + positioner are SIBLINGS (both direct @if children) so each animates its own\n leave independently \u2014 a nested animated element would deadlock the removal.\n The positioner carries the directional slide; the panel inside owns sizing/surface. -->\n @if (modal()) {\n <div\n #scrim\n class=\"ui-drawer-scrim\"\n [class._contained]=\"contained()\"\n [style.z-index]=\"zIndex()\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"motionDisabled()\"\n #scrimMotion=\"uiMotion\"\n [animate.enter]=\"scrimMotion.enter()\"\n [animate.leave]=\"scrimMotion.leave()\"\n (pointerdown)=\"onMaskPointerdown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives in the\n content (CDK focus-trap). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-drawer-positioner\"\n [class._left]=\"position() === 'left'\"\n [class._right]=\"position() === 'right'\"\n [class._top]=\"position() === 'top'\"\n [class._bottom]=\"position() === 'bottom'\"\n [class._full-screen]=\"fullScreen()\"\n [class._contained]=\"contained()\"\n [style.z-index]=\"zIndex()\"\n [uiMotion]=\"motionPreset()\"\n [motionDistance]=\"motionDistance()\"\n [motionDisabled]=\"motionDisabled()\"\n #posMotion=\"uiMotion\"\n [animate.enter]=\"posMotion.enter()\"\n [animate.leave]=\"posMotion.leave()\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"'ui-drawer' + (styleClass() ? ' ' + styleClass() : '')\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n tabindex=\"-1\"\n [style]=\"drawerStyle()\"\n [cdkTrapFocus]=\"focusTrap()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n @if (headlessTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n @if (showHeader()) {\n <div class=\"ui-drawer-header\">\n <div [attr.id]=\"titleId\" class=\"ui-drawer-title\">\n @if (headerTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ header() }}\n }\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-drawer-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n }\n </button>\n }\n </div>\n }\n\n <!-- Body: long content scrolls inside this region. -->\n <div class=\"ui-drawer-content\">\n <ng-content />\n </div>\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-drawer-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n }\n </div>\n </div>\n}\n", styles: [".ui-drawer-scrim{position:fixed;inset:0;z-index:var(--ui-drawer-z-index, 1100);background-color:var(--ui-drawer-mask-background, var(--primitives-black-50))}.ui-drawer-scrim._contained{position:absolute}.ui-drawer-positioner{position:fixed;z-index:var(--ui-drawer-z-index, 1100);display:flex}.ui-drawer-positioner._left{inset-block:0;inset-inline-start:0}.ui-drawer-positioner._right{inset-block:0;inset-inline-end:0}.ui-drawer-positioner._top{inset-inline:0;inset-block-start:0}.ui-drawer-positioner._bottom{inset-inline:0;inset-block-end:0}.ui-drawer-positioner._full-screen{inset:0}.ui-drawer-positioner._contained{position:absolute}.ui-drawer{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--global-background-default);color:var(--global-text-default);box-shadow:var(--shadow-default-lg);font-family:var(--fontfamily-base);outline:none}.ui-drawer-positioner._left .ui-drawer,.ui-drawer-positioner._right .ui-drawer{width:var(--ui-drawer-size-side, 20rem);max-width:100%;height:100%}.ui-drawer-positioner._top .ui-drawer,.ui-drawer-positioner._bottom .ui-drawer{width:100%;height:var(--ui-drawer-size-edge, 10rem);max-height:100%}.ui-drawer-positioner._full-screen .ui-drawer{width:100%;height:100%}.ui-drawer-positioner._left .ui-drawer{border-inline-end:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}.ui-drawer-positioner._right .ui-drawer{border-inline-start:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}.ui-drawer-positioner._top .ui-drawer{border-block-end:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}.ui-drawer-positioner._bottom .ui-drawer{border-block-start:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}.ui-drawer-positioner._full-screen .ui-drawer{border:none}.ui-drawer-header{flex:0 0 auto;display:flex;align-items:flex-start;gap:var(--ui-drawer-header-gap, var(--units-sm));padding:var(--ui-drawer-panel-padding, var(--units-lg)) var(--ui-drawer-panel-padding, var(--units-lg)) var(--units-sm)}.ui-drawer-title{flex:1 1 auto;min-width:0;font-family:var(--fontfamily-title);font-size:var(--size-typography-title-default);font-weight:var(--weight-bold);line-height:1.3;overflow-wrap:break-word}.ui-drawer-action{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:var(--ui-drawer-action-size, 2rem);height:var(--ui-drawer-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(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-drawer-action:hover{background-color:var(--global-background-muted-hover);color:var(--global-text-muted-hover)}.ui-drawer-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-drawer-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--global-border-focus)}@media(prefers-reduced-motion:reduce){.ui-drawer-action{transition-duration:.01ms}}:root[data-motion=off] .ui-drawer-action{transition-duration:.01ms}.ui-drawer-content{flex:1 1 auto;min-height:0;overflow-y:auto;padding:var(--ui-drawer-panel-padding, var(--units-lg));font-size:var(--size-typography-text-md);line-height:1.5}.ui-drawer-header+.ui-drawer-content{padding-top:0}.ui-drawer-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--units-sm);padding:var(--units-md) var(--ui-drawer-panel-padding, var(--units-lg)) var(--ui-drawer-panel-padding, var(--units-lg));border-top:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
285
285
|
}
|
|
286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiDrawer, decorators: [{
|
|
287
287
|
type: Component,
|
|
288
288
|
args: [{ selector: 'ui-drawer', imports: [NgTemplateOutlet, A11yModule, UiMotion, UiIcon], template: "@if (visible()) {\n <!-- Scrim + positioner are SIBLINGS (both direct @if children) so each animates its own\n leave independently \u2014 a nested animated element would deadlock the removal.\n The positioner carries the directional slide; the panel inside owns sizing/surface. -->\n @if (modal()) {\n <div\n #scrim\n class=\"ui-drawer-scrim\"\n [class._contained]=\"contained()\"\n [style.z-index]=\"zIndex()\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"motionDisabled()\"\n #scrimMotion=\"uiMotion\"\n [animate.enter]=\"scrimMotion.enter()\"\n [animate.leave]=\"scrimMotion.leave()\"\n (pointerdown)=\"onMaskPointerdown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives in the\n content (CDK focus-trap). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-drawer-positioner\"\n [class._left]=\"position() === 'left'\"\n [class._right]=\"position() === 'right'\"\n [class._top]=\"position() === 'top'\"\n [class._bottom]=\"position() === 'bottom'\"\n [class._full-screen]=\"fullScreen()\"\n [class._contained]=\"contained()\"\n [style.z-index]=\"zIndex()\"\n [uiMotion]=\"motionPreset()\"\n [motionDistance]=\"motionDistance()\"\n [motionDisabled]=\"motionDisabled()\"\n #posMotion=\"uiMotion\"\n [animate.enter]=\"posMotion.enter()\"\n [animate.leave]=\"posMotion.leave()\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"'ui-drawer' + (styleClass() ? ' ' + styleClass() : '')\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n tabindex=\"-1\"\n [style]=\"drawerStyle()\"\n [cdkTrapFocus]=\"focusTrap()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n @if (headlessTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n @if (showHeader()) {\n <div class=\"ui-drawer-header\">\n <div [attr.id]=\"titleId\" class=\"ui-drawer-title\">\n @if (headerTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ header() }}\n }\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-drawer-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n }\n </button>\n }\n </div>\n }\n\n <!-- Body: long content scrolls inside this region. -->\n <div class=\"ui-drawer-content\">\n <ng-content />\n </div>\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-drawer-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n }\n </div>\n </div>\n}\n", styles: [".ui-drawer-scrim{position:fixed;inset:0;z-index:var(--ui-drawer-z-index, 1100);background-color:var(--ui-drawer-mask-background, var(--primitives-black-50))}.ui-drawer-scrim._contained{position:absolute}.ui-drawer-positioner{position:fixed;z-index:var(--ui-drawer-z-index, 1100);display:flex}.ui-drawer-positioner._left{inset-block:0;inset-inline-start:0}.ui-drawer-positioner._right{inset-block:0;inset-inline-end:0}.ui-drawer-positioner._top{inset-inline:0;inset-block-start:0}.ui-drawer-positioner._bottom{inset-inline:0;inset-block-end:0}.ui-drawer-positioner._full-screen{inset:0}.ui-drawer-positioner._contained{position:absolute}.ui-drawer{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--global-background-default);color:var(--global-text-default);box-shadow:var(--shadow-default-lg);font-family:var(--fontfamily-base);outline:none}.ui-drawer-positioner._left .ui-drawer,.ui-drawer-positioner._right .ui-drawer{width:var(--ui-drawer-size-side, 20rem);max-width:100%;height:100%}.ui-drawer-positioner._top .ui-drawer,.ui-drawer-positioner._bottom .ui-drawer{width:100%;height:var(--ui-drawer-size-edge, 10rem);max-height:100%}.ui-drawer-positioner._full-screen .ui-drawer{width:100%;height:100%}.ui-drawer-positioner._left .ui-drawer{border-inline-end:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}.ui-drawer-positioner._right .ui-drawer{border-inline-start:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}.ui-drawer-positioner._top .ui-drawer{border-block-end:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}.ui-drawer-positioner._bottom .ui-drawer{border-block-start:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}.ui-drawer-positioner._full-screen .ui-drawer{border:none}.ui-drawer-header{flex:0 0 auto;display:flex;align-items:flex-start;gap:var(--ui-drawer-header-gap, var(--units-sm));padding:var(--ui-drawer-panel-padding, var(--units-lg)) var(--ui-drawer-panel-padding, var(--units-lg)) var(--units-sm)}.ui-drawer-title{flex:1 1 auto;min-width:0;font-family:var(--fontfamily-title);font-size:var(--size-typography-title-default);font-weight:var(--weight-bold);line-height:1.3;overflow-wrap:break-word}.ui-drawer-action{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:var(--ui-drawer-action-size, 2rem);height:var(--ui-drawer-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(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-drawer-action:hover{background-color:var(--global-background-muted-hover);color:var(--global-text-muted-hover)}.ui-drawer-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-drawer-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--global-border-focus)}@media(prefers-reduced-motion:reduce){.ui-drawer-action{transition-duration:.01ms}}:root[data-motion=off] .ui-drawer-action{transition-duration:.01ms}.ui-drawer-content{flex:1 1 auto;min-height:0;overflow-y:auto;padding:var(--ui-drawer-panel-padding, var(--units-lg));font-size:var(--size-typography-text-md);line-height:1.5}.ui-drawer-header+.ui-drawer-content{padding-top:0}.ui-drawer-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--units-sm);padding:var(--units-md) var(--ui-drawer-panel-padding, var(--units-lg)) var(--ui-drawer-panel-padding, var(--units-lg));border-top:var(--ui-drawer-stroke-width, var(--stroke-sm)) solid var(--global-border-subtle)}\n"] }]
|
|
289
289
|
}], ctorParameters: () => [], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], fullScreen: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullScreen", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], dismissableMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissableMask", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], blockScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "blockScroll", required: false }] }], showHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHeader", required: false }] }], focusOnShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnShow", required: false }] }], focusTrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusTrap", required: false }] }], closeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIcon", required: false }] }], closeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAriaLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], maskStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStyleClass", required: false }] }], drawerStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawerStyle", required: false }] }], contained: [{ type: i0.Input, args: [{ isSignal: true, alias: "contained", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], motionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionDisabled", required: false }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { isSignal: true }] }], closeIconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { isSignal: true }] }], shown: [{ type: i0.Output, args: ["shown"] }], hidden: [{ type: i0.Output, args: ["hidden"] }], panelRef: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], scrimRef: [{ type: i0.ViewChild, args: ['scrim', { isSignal: true }] }] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-layout-ui-drawer.mjs","sources":["../../../projects/ui-kit/layout/ui-drawer/src/lib/ui-drawer.ts","../../../projects/ui-kit/layout/ui-drawer/src/lib/ui-drawer.html","../../../projects/ui-kit/layout/ui-drawer/src/public-api.ts","../../../projects/ui-kit/layout/ui-drawer/src/4sh-ui-kit-layout-ui-drawer.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChild,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n isDevMode,\n model,\n numberAttribute,\n output,\n PLATFORM_ID,\n TemplateRef,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { DOCUMENT, isPlatformBrowser, NgTemplateOutlet } from '@angular/common';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { UiMotion, UiMotionPreset } from '@4sh/ui-kit/motion';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\n/** Edge the drawer is anchored to (and slides in from). */\nexport type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';\n\n/** Base stacking level — mirrors `$drawer-z-index` in the SCSS. */\nconst DRAWER_BASE_Z_INDEX = 1100;\n\n/** Process-wide sequence so `autoZIndex` layers a later drawer above earlier ones. */\nlet zIndexSeq = 0;\n/** Process-wide unique id source (aria wiring). */\nlet nextUid = 0;\n\n// --- Body scroll lock (ref-counted, shared across nested drawers) -------\nlet scrollLockCount = 0;\nlet savedOverflow = '';\nlet savedPaddingRight = '';\n\n/** Freeze background scroll, compensating the scrollbar gutter to avoid a shift. */\nfunction lockBodyScroll(doc: Document): void {\n if (scrollLockCount === 0) {\n const body = doc.body;\n const gap = (doc.defaultView?.innerWidth ?? 0) - doc.documentElement.clientWidth;\n savedOverflow = body.style.overflow;\n savedPaddingRight = body.style.paddingRight;\n body.style.overflow = 'hidden';\n if (gap > 0) body.style.paddingRight = `${gap}px`;\n }\n scrollLockCount++;\n}\n\n/** Release one scroll lock; restore the body when the last drawer closes. */\nfunction unlockBodyScroll(doc: Document): void {\n scrollLockCount = Math.max(0, scrollLockCount - 1);\n if (scrollLockCount === 0) {\n doc.body.style.overflow = savedOverflow;\n doc.body.style.paddingRight = savedPaddingRight;\n }\n}\n\n/**\n * ui-drawer — headless slide-in panel anchored to a screen edge.\n *\n * A token-styled surface docked to an edge (`left` / `right` / `top` / `bottom`)\n * and rendered over an optional viewport mask, driven by the two-way `visible`\n * model. Enter/leave run through the shared motion system: the mask fades while\n * the panel slides in from its edge (the slide direction is derived from\n * `position`, the offset stretched to the panel's own size). Built for\n * accessibility: focus trap with focus restore (`@angular/cdk/a11y`),\n * `aria-modal`, background scroll lock, `Escape` to close, and an optional\n * click-outside dismiss.\n *\n * Composes header / content / footer regions: a plain `header` string (or the\n * `#header` template), the default `<ng-content>` for the body, and a `#footer`\n * template for actions. A `#headless` template takes over the whole panel when\n * total control of the interface is required (the drawer still owns the overlay\n * mechanics: mask, motion, focus trap, `Escape`).\n *\n * @example\n * ```html\n * <ui-button label=\"Ouvrir\" (buttonClick)=\"open.set(true)\" />\n * <ui-drawer [(visible)]=\"open\" header=\"Menu\" position=\"right\">\n * <p>Contenu…</p>\n * </ui-drawer>\n * ```\n */\n@Component({\n selector: 'ui-drawer',\n imports: [NgTemplateOutlet, A11yModule, UiMotion, UiIcon],\n templateUrl: './ui-drawer.html',\n styleUrl: './ui-drawer.scss',\n})\nexport class UiDrawer {\n /** Open state (two-way). Toggling it drives the enter/leave animation. */\n visible = model(false);\n\n /** Edge the drawer docks to and slides in from. */\n position = input<DrawerPosition>('left');\n /** Fill the whole viewport (the panel fades in instead of sliding). */\n fullScreen = input(false, { transform: booleanAttribute });\n\n /** Simple header text (ignored when a `#header` template is projected). */\n header = input<string>();\n /** ARIA role of the panel surface. */\n role = input<string>('dialog');\n /** Accessible name when there is no visible header to reference. */\n ariaLabel = input<string>();\n /** Id of an external element naming the panel (overrides the header title). */\n ariaLabelledBy = input<string>();\n\n /** Show the mask (dim + capture) and block background scroll. */\n modal = input(true, { transform: booleanAttribute });\n /** Close when the mask (outside the panel) is clicked — modal only. */\n dismissableMask = input(true, { transform: booleanAttribute });\n /** Show the close (×) button. */\n closable = input(true, { transform: booleanAttribute });\n /** Close the drawer when `Escape` is pressed. */\n closeOnEscape = input(true, { transform: booleanAttribute });\n /** Block background scroll even for a non-modal drawer. */\n blockScroll = input(false, { transform: booleanAttribute });\n /** Render the header region (title + close button). */\n showHeader = input(true, { transform: booleanAttribute });\n\n /** Move focus into the panel when it opens (auto-captured, restored on close). */\n focusOnShow = input(true, { transform: booleanAttribute });\n /** Trap Tab focus inside the panel while open. */\n focusTrap = input(true, { transform: booleanAttribute });\n\n /** FontAwesome name of the close button icon. */\n closeIcon = input<string>('xmark');\n /** Accessible name of the close button. */\n closeAriaLabel = input<string>('Fermer');\n\n /** Extra class(es) merged onto the panel surface. */\n styleClass = input<string>();\n /** Extra class(es) merged onto the mask. */\n maskStyleClass = input<string>();\n /** Inline styles applied to the panel (e.g. `{ width: '30rem' }`). */\n drawerStyle = input<Record<string, string>>();\n\n /**\n * Scope the drawer to the nearest positioned ancestor (`position: absolute`)\n * instead of the viewport (`position: fixed`), and skip the body scroll lock.\n * Useful to embed a drawer inside a bounded container (docs previews, panels).\n */\n contained = input(false, { transform: booleanAttribute });\n\n /** Layer this drawer above earlier overlays automatically. */\n autoZIndex = input(true, { transform: booleanAttribute });\n /** Floor z-index (added to the auto value, or used as-is when `autoZIndex=false`). */\n baseZIndex = input(0, { transform: numberAttribute });\n\n /** Disable the open/close animation for this drawer. */\n motionDisabled = input(false, { transform: booleanAttribute });\n\n /** Custom header template (replaces the `header` string). */\n protected readonly headerTemplate = contentChild<TemplateRef<unknown>>('header');\n /** Footer template (actions row). */\n protected readonly footerTemplate = contentChild<TemplateRef<unknown>>('footer');\n /** Custom close-icon template (replaces `closeIcon`). */\n protected readonly closeIconTemplate = contentChild<TemplateRef<unknown>>('closeicon');\n /** Headless template — takes over the entire panel interior when provided. */\n protected readonly headlessTemplate = contentChild<TemplateRef<unknown>>('headless');\n\n /** Emitted after the drawer becomes visible. */\n shown = output<void>();\n /** Emitted after the drawer is hidden. */\n hidden = output<void>();\n\n /** @ignore */\n private readonly panelRef = viewChild<ElementRef<HTMLElement>>('panel');\n /** @ignore Scrim host (for imperative `maskStyleClass` — a bound `[class]` would\n * fight the motion classes and break the leave animation). */\n private readonly scrimRef = viewChild<ElementRef<HTMLElement>>('scrim');\n /** @ignore Classes currently applied to the scrim by `maskStyleClass`. */\n private appliedMaskClasses: string[] = [];\n\n /** @ignore */\n private readonly document = inject(DOCUMENT);\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n /** @ignore Per-instance layering rank for `autoZIndex`. */\n private readonly zSeq = ++zIndexSeq;\n\n /** @ignore */\n protected readonly uid = `ui-drawer-${nextUid++}`;\n /** @ignore */\n protected readonly titleId = `${this.uid}-title`;\n\n /** @ignore This instance currently holds a body scroll lock. */\n private locked = false;\n\n /** @ignore Effective stacking level. */\n protected readonly zIndex = computed(() => {\n const base = this.baseZIndex();\n if (this.autoZIndex()) return DRAWER_BASE_Z_INDEX + base + this.zSeq;\n return base > 0 ? base : DRAWER_BASE_Z_INDEX;\n });\n\n // NOTE: the scrim and positioner carry `animate.enter`/`animate.leave`. They MUST use\n // a static `class` + per-class `[class.x]` toggles — a whole-string `[class]=\"expr()\"`\n // binding fights the motion classes Angular adds and restarts the animation every\n // frame (leave never ends → node never removed). Sizing/styleClass live on the inner\n // panel, which carries no motion binding.\n\n /**\n * @ignore Slide preset derived from the anchored edge (offset stretched to 100%\n * of the panel's own size so it travels fully off-screen). A full-screen drawer\n * fades instead of sliding a whole viewport of content.\n */\n protected readonly motionPreset = computed<UiMotionPreset>(() => {\n if (this.fullScreen()) return 'fade';\n switch (this.position()) {\n case 'right':\n return 'slide-left'; // enters from the right edge\n case 'top':\n return 'slide-down'; // drops from the top edge\n case 'bottom':\n return 'slide-up'; // rises from the bottom edge\n default:\n return 'slide-right'; // 'left' — enters from the left edge\n }\n });\n\n /** @ignore Slide offset: the panel's full extent (omitted for the fade-only full-screen). */\n protected readonly motionDistance = computed(() => (this.fullScreen() ? undefined : '100%'));\n\n /** @ignore Id of the element naming the panel (header title, or an external id). */\n protected readonly labelledBy = computed(\n () => this.ariaLabelledBy() ?? (this.showHeader() && this.header() ? this.titleId : null),\n );\n /** @ignore Fallback accessible name when nothing is referenced. */\n protected readonly resolvedAriaLabel = computed(() => (this.labelledBy() ? null : this.ariaLabel()));\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n let wasVisible = false;\n\n // Open/close side effects: scroll lock, lifecycle events.\n effect(() => {\n const v = this.visible();\n untracked(() => {\n if (v && !wasVisible) {\n wasVisible = true;\n // A contained drawer is embedded, not a real overlay → never lock the body.\n if (this.isBrowser && !this.contained() && (this.modal() || this.blockScroll())) {\n lockBodyScroll(this.document);\n this.locked = true;\n }\n this.shown.emit();\n } else if (!v && wasVisible) {\n wasVisible = false;\n this.releaseLock();\n this.hidden.emit();\n }\n });\n });\n\n // Apply `maskStyleClass` imperatively (see scrimRef note).\n effect(() => {\n const el = this.scrimRef()?.nativeElement;\n const raw = this.maskStyleClass();\n untracked(() => {\n for (const c of this.appliedMaskClasses) el?.classList.remove(c);\n this.appliedMaskClasses = el && raw ? raw.split(/\\s+/).filter(Boolean) : [];\n for (const c of this.appliedMaskClasses) el!.classList.add(c);\n });\n });\n\n // A11y safeguard: a drawer must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.visible() && !this.labelledBy() && !this.resolvedAriaLabel()) {\n console.warn(\n '[ui-drawer] Panel has no accessible name: provide `header`, `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n\n destroyRef.onDestroy(() => this.releaseLock());\n }\n\n /** Close the drawer. */\n close(): void {\n this.visible.set(false);\n }\n\n /** Move focus onto the panel surface. */\n focus(): void {\n this.panelRef()?.nativeElement.focus();\n }\n\n /** @ignore Escape-to-close (bubbles from any focused control inside the panel). */\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && this.closeOnEscape() && this.closable()) {\n event.stopPropagation();\n this.close();\n }\n }\n\n /** @ignore Click-outside dismiss (mask target only, modal + dismissable). */\n protected onMaskPointerdown(event: PointerEvent): void {\n if (!this.modal() || !this.dismissableMask() || !this.closable()) return;\n if (event.target === event.currentTarget) this.close();\n }\n\n /** @ignore Release this instance's scroll lock, if held. */\n private releaseLock(): void {\n if (this.locked) {\n unlockBodyScroll(this.document);\n this.locked = false;\n }\n }\n}\n","@if (visible()) {\n <!-- Scrim + positioner are SIBLINGS (both direct @if children) so each animates its own\n leave independently — a nested animated element would deadlock the removal.\n The positioner carries the directional slide; the panel inside owns sizing/surface. -->\n @if (modal()) {\n <div\n #scrim\n class=\"ui-drawer-scrim\"\n [class._contained]=\"contained()\"\n [style.z-index]=\"zIndex()\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"motionDisabled()\"\n #scrimMotion=\"uiMotion\"\n [animate.enter]=\"scrimMotion.enter()\"\n [animate.leave]=\"scrimMotion.leave()\"\n (pointerdown)=\"onMaskPointerdown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives in the\n content (CDK focus-trap). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-drawer-positioner\"\n [class._left]=\"position() === 'left'\"\n [class._right]=\"position() === 'right'\"\n [class._top]=\"position() === 'top'\"\n [class._bottom]=\"position() === 'bottom'\"\n [class._full-screen]=\"fullScreen()\"\n [class._contained]=\"contained()\"\n [style.z-index]=\"zIndex()\"\n [uiMotion]=\"motionPreset()\"\n [motionDistance]=\"motionDistance()\"\n [motionDisabled]=\"motionDisabled()\"\n #posMotion=\"uiMotion\"\n [animate.enter]=\"posMotion.enter()\"\n [animate.leave]=\"posMotion.leave()\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"'ui-drawer' + (styleClass() ? ' ' + styleClass() : '')\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n tabindex=\"-1\"\n [style]=\"drawerStyle()\"\n [cdkTrapFocus]=\"focusTrap()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n @if (headlessTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n @if (showHeader()) {\n <div class=\"ui-drawer-header\">\n <div [attr.id]=\"titleId\" class=\"ui-drawer-title\">\n @if (headerTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ header() }}\n }\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-drawer-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n }\n </button>\n }\n </div>\n }\n\n <!-- Body: long content scrolls inside this region. -->\n <div class=\"ui-drawer-content\">\n <ng-content />\n </div>\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-drawer-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n }\n </div>\n </div>\n}\n","/*\n * Public API Surface of ui-kit/ui-drawer\n */\n\nexport * from './lib/ui-drawer';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AA2BA;AACA,MAAM,mBAAmB,GAAG,IAAI;AAEhC;AACA,IAAI,SAAS,GAAG,CAAC;AACjB;AACA,IAAI,OAAO,GAAG,CAAC;AAEf;AACA,IAAI,eAAe,GAAG,CAAC;AACvB,IAAI,aAAa,GAAG,EAAE;AACtB,IAAI,iBAAiB,GAAG,EAAE;AAE1B;AACA,SAAS,cAAc,CAAC,GAAa,EAAA;AACnC,IAAA,IAAI,eAAe,KAAK,CAAC,EAAE;AACzB,QAAA,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI;AACrB,QAAA,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,UAAU,IAAI,CAAC,IAAI,GAAG,CAAC,eAAe,CAAC,WAAW;AAChF,QAA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CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAGP,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE/KxE;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-layout-ui-drawer.mjs","sources":["../../../projects/ui-kit/layout/ui-drawer/src/lib/ui-drawer.ts","../../../projects/ui-kit/layout/ui-drawer/src/lib/ui-drawer.html","../../../projects/ui-kit/layout/ui-drawer/src/public-api.ts","../../../projects/ui-kit/layout/ui-drawer/src/4sh-ui-kit-layout-ui-drawer.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChild,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n isDevMode,\n model,\n numberAttribute,\n output,\n PLATFORM_ID,\n TemplateRef,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { DOCUMENT, isPlatformBrowser, NgTemplateOutlet } from '@angular/common';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { UiMotion, UiMotionPreset } from '@4sh/ui-kit/motion';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\n/** Edge the drawer is anchored to (and slides in from). */\nexport type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';\n\n/** Base stacking level — mirrors `$drawer-z-index` in the SCSS. */\nconst DRAWER_BASE_Z_INDEX = 1100;\n\n/** Process-wide sequence so `autoZIndex` layers a later drawer above earlier ones. */\nlet zIndexSeq = 0;\n/** Process-wide unique id source (aria wiring). */\nlet nextUid = 0;\n\n// --- Body scroll lock (ref-counted, shared across nested drawers) -------\nlet scrollLockCount = 0;\nlet savedOverflow = '';\nlet savedPaddingRight = '';\n\n/** Freeze background scroll, compensating the scrollbar gutter to avoid a shift. */\nfunction lockBodyScroll(doc: Document): void {\n if (scrollLockCount === 0) {\n const body = doc.body;\n const gap = (doc.defaultView?.innerWidth ?? 0) - doc.documentElement.clientWidth;\n savedOverflow = body.style.overflow;\n savedPaddingRight = body.style.paddingRight;\n body.style.overflow = 'hidden';\n if (gap > 0) body.style.paddingRight = `${gap}px`;\n }\n scrollLockCount++;\n}\n\n/** Release one scroll lock; restore the body when the last drawer closes. */\nfunction unlockBodyScroll(doc: Document): void {\n scrollLockCount = Math.max(0, scrollLockCount - 1);\n if (scrollLockCount === 0) {\n doc.body.style.overflow = savedOverflow;\n doc.body.style.paddingRight = savedPaddingRight;\n }\n}\n\n/**\n * ui-drawer — headless slide-in panel anchored to a screen edge.\n *\n * A token-styled surface docked to an edge (`left` / `right` / `top` / `bottom`)\n * and rendered over an optional viewport mask, driven by the two-way `visible`\n * model. Enter/leave run through the shared motion system: the mask fades while\n * the panel slides in from its edge (the slide direction is derived from\n * `position`, the offset stretched to the panel's own size). Built for\n * accessibility: focus trap with focus restore (`@angular/cdk/a11y`),\n * `aria-modal`, background scroll lock, `Escape` to close, and an optional\n * click-outside dismiss.\n *\n * Composes header / content / footer regions: a plain `header` string (or the\n * `#header` template), the default `<ng-content>` for the body, and a `#footer`\n * template for actions. A `#headless` template takes over the whole panel when\n * total control of the interface is required (the drawer still owns the overlay\n * mechanics: mask, motion, focus trap, `Escape`).\n *\n * @example\n * ```html\n * <ui-button label=\"Ouvrir\" (buttonClick)=\"open.set(true)\" />\n * <ui-drawer [(visible)]=\"open\" header=\"Menu\" position=\"right\">\n * <p>Contenu…</p>\n * </ui-drawer>\n * ```\n */\n@Component({\n selector: 'ui-drawer',\n imports: [NgTemplateOutlet, A11yModule, UiMotion, UiIcon],\n templateUrl: './ui-drawer.html',\n styleUrl: './ui-drawer.scss',\n})\nexport class UiDrawer {\n /** Open state (two-way). Toggling it drives the enter/leave animation. */\n visible = model(false);\n\n /** Edge the drawer docks to and slides in from. */\n position = input<DrawerPosition>('left');\n /** Fill the whole viewport (the panel fades in instead of sliding). */\n fullScreen = input(false, { transform: booleanAttribute });\n\n /** Simple header text (ignored when a `#header` template is projected). */\n header = input<string>();\n /** ARIA role of the panel surface. */\n role = input<string>('dialog');\n /** Accessible name when there is no visible header to reference. */\n ariaLabel = input<string>();\n /** Id of an external element naming the panel (overrides the header title). */\n ariaLabelledBy = input<string>();\n\n /** Show the mask (dim + capture) and block background scroll. */\n modal = input(true, { transform: booleanAttribute });\n /** Close when the mask (outside the panel) is clicked — modal only. */\n dismissableMask = input(true, { transform: booleanAttribute });\n /** Show the close (×) button. */\n closable = input(true, { transform: booleanAttribute });\n /** Close the drawer when `Escape` is pressed. */\n closeOnEscape = input(true, { transform: booleanAttribute });\n /** Block background scroll even for a non-modal drawer. */\n blockScroll = input(false, { transform: booleanAttribute });\n /** Render the header region (title + close button). */\n showHeader = input(true, { transform: booleanAttribute });\n\n /** Move focus into the panel when it opens (auto-captured, restored on close). */\n focusOnShow = input(true, { transform: booleanAttribute });\n /** Trap Tab focus inside the panel while open. */\n focusTrap = input(true, { transform: booleanAttribute });\n\n /** FontAwesome name of the close button icon. */\n closeIcon = input<string>('xmark');\n /** Accessible name of the close button. */\n closeAriaLabel = input<string>('Fermer');\n\n /** Extra class(es) merged onto the panel surface. */\n styleClass = input<string>();\n /** Extra class(es) merged onto the mask. */\n maskStyleClass = input<string>();\n /** Inline styles applied to the panel (e.g. `{ width: '30rem' }`). */\n drawerStyle = input<Record<string, string>>();\n\n /**\n * Scope the drawer to the nearest positioned ancestor (`position: absolute`)\n * instead of the viewport (`position: fixed`), and skip the body scroll lock.\n * Useful to embed a drawer inside a bounded container (docs previews, panels).\n */\n contained = input(false, { transform: booleanAttribute });\n\n /** Layer this drawer above earlier overlays automatically. */\n autoZIndex = input(true, { transform: booleanAttribute });\n /** Floor z-index (added to the auto value, or used as-is when `autoZIndex=false`). */\n baseZIndex = input(0, { transform: numberAttribute });\n\n /** Disable the open/close animation for this drawer. */\n motionDisabled = input(false, { transform: booleanAttribute });\n\n /** Custom header template (replaces the `header` string). */\n protected readonly headerTemplate = contentChild<TemplateRef<unknown>>('header');\n /** Footer template (actions row). */\n protected readonly footerTemplate = contentChild<TemplateRef<unknown>>('footer');\n /** Custom close-icon template (replaces `closeIcon`). */\n protected readonly closeIconTemplate = contentChild<TemplateRef<unknown>>('closeicon');\n /** Headless template — takes over the entire panel interior when provided. */\n protected readonly headlessTemplate = contentChild<TemplateRef<unknown>>('headless');\n\n /** Emitted after the drawer becomes visible. */\n shown = output<void>();\n /** Emitted after the drawer is hidden. */\n hidden = output<void>();\n\n /** @ignore */\n private readonly panelRef = viewChild<ElementRef<HTMLElement>>('panel');\n /** @ignore Scrim host (for imperative `maskStyleClass` — a bound `[class]` would\n * fight the motion classes and break the leave animation). */\n private readonly scrimRef = viewChild<ElementRef<HTMLElement>>('scrim');\n /** @ignore Classes currently applied to the scrim by `maskStyleClass`. */\n private appliedMaskClasses: string[] = [];\n\n /** @ignore */\n private readonly document = inject(DOCUMENT);\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n /** @ignore Per-instance layering rank for `autoZIndex`. */\n private readonly zSeq = ++zIndexSeq;\n\n /** @ignore */\n protected readonly uid = `ui-drawer-${nextUid++}`;\n /** @ignore */\n protected readonly titleId = `${this.uid}-title`;\n\n /** @ignore This instance currently holds a body scroll lock. */\n private locked = false;\n\n /** @ignore Effective stacking level. */\n protected readonly zIndex = computed(() => {\n const base = this.baseZIndex();\n if (this.autoZIndex()) return DRAWER_BASE_Z_INDEX + base + this.zSeq;\n return base > 0 ? base : DRAWER_BASE_Z_INDEX;\n });\n\n // NOTE: the scrim and positioner carry `animate.enter`/`animate.leave`. They MUST use\n // a static `class` + per-class `[class.x]` toggles — a whole-string `[class]=\"expr()\"`\n // binding fights the motion classes Angular adds and restarts the animation every\n // frame (leave never ends → node never removed). Sizing/styleClass live on the inner\n // panel, which carries no motion binding.\n\n /**\n * @ignore Slide preset derived from the anchored edge (offset stretched to 100%\n * of the panel's own size so it travels fully off-screen). A full-screen drawer\n * fades instead of sliding a whole viewport of content.\n */\n protected readonly motionPreset = computed<UiMotionPreset>(() => {\n if (this.fullScreen()) return 'fade';\n switch (this.position()) {\n case 'right':\n return 'slide-left'; // enters from the right edge\n case 'top':\n return 'slide-down'; // drops from the top edge\n case 'bottom':\n return 'slide-up'; // rises from the bottom edge\n default:\n return 'slide-right'; // 'left' — enters from the left edge\n }\n });\n\n /** @ignore Slide offset: the panel's full extent (omitted for the fade-only full-screen). */\n protected readonly motionDistance = computed(() => (this.fullScreen() ? undefined : '100%'));\n\n /** @ignore Id of the element naming the panel (header title, or an external id). */\n protected readonly labelledBy = computed(\n () => this.ariaLabelledBy() ?? (this.showHeader() && this.header() ? this.titleId : null),\n );\n /** @ignore Fallback accessible name when nothing is referenced. */\n protected readonly resolvedAriaLabel = computed(() =>\n this.labelledBy() ? null : this.ariaLabel(),\n );\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n let wasVisible = false;\n\n // Open/close side effects: scroll lock, lifecycle events.\n effect(() => {\n const v = this.visible();\n untracked(() => {\n if (v && !wasVisible) {\n wasVisible = true;\n // A contained drawer is embedded, not a real overlay → never lock the body.\n if (this.isBrowser && !this.contained() && (this.modal() || this.blockScroll())) {\n lockBodyScroll(this.document);\n this.locked = true;\n }\n this.shown.emit();\n } else if (!v && wasVisible) {\n wasVisible = false;\n this.releaseLock();\n this.hidden.emit();\n }\n });\n });\n\n // Apply `maskStyleClass` imperatively (see scrimRef note).\n effect(() => {\n const el = this.scrimRef()?.nativeElement;\n const raw = this.maskStyleClass();\n untracked(() => {\n for (const c of this.appliedMaskClasses) el?.classList.remove(c);\n this.appliedMaskClasses = el && raw ? raw.split(/\\s+/).filter(Boolean) : [];\n for (const c of this.appliedMaskClasses) el!.classList.add(c);\n });\n });\n\n // A11y safeguard: a drawer must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.visible() && !this.labelledBy() && !this.resolvedAriaLabel()) {\n console.warn(\n '[ui-drawer] Panel has no accessible name: provide `header`, `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n\n destroyRef.onDestroy(() => this.releaseLock());\n }\n\n /** Close the drawer. */\n close(): void {\n this.visible.set(false);\n }\n\n /** Move focus onto the panel surface. */\n focus(): void {\n this.panelRef()?.nativeElement.focus();\n }\n\n /** @ignore Escape-to-close (bubbles from any focused control inside the panel). */\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && this.closeOnEscape() && this.closable()) {\n event.stopPropagation();\n this.close();\n }\n }\n\n /** @ignore Click-outside dismiss (mask target only, modal + dismissable). */\n protected onMaskPointerdown(event: PointerEvent): void {\n if (!this.modal() || !this.dismissableMask() || !this.closable()) return;\n if (event.target === event.currentTarget) this.close();\n }\n\n /** @ignore Release this instance's scroll lock, if held. */\n private releaseLock(): void {\n if (this.locked) {\n unlockBodyScroll(this.document);\n this.locked = false;\n }\n }\n}\n","@if (visible()) {\n <!-- Scrim + positioner are SIBLINGS (both direct @if children) so each animates its own\n leave independently — a nested animated element would deadlock the removal.\n The positioner carries the directional slide; the panel inside owns sizing/surface. -->\n @if (modal()) {\n <div\n #scrim\n class=\"ui-drawer-scrim\"\n [class._contained]=\"contained()\"\n [style.z-index]=\"zIndex()\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"motionDisabled()\"\n #scrimMotion=\"uiMotion\"\n [animate.enter]=\"scrimMotion.enter()\"\n [animate.leave]=\"scrimMotion.leave()\"\n (pointerdown)=\"onMaskPointerdown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives in the\n content (CDK focus-trap). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-drawer-positioner\"\n [class._left]=\"position() === 'left'\"\n [class._right]=\"position() === 'right'\"\n [class._top]=\"position() === 'top'\"\n [class._bottom]=\"position() === 'bottom'\"\n [class._full-screen]=\"fullScreen()\"\n [class._contained]=\"contained()\"\n [style.z-index]=\"zIndex()\"\n [uiMotion]=\"motionPreset()\"\n [motionDistance]=\"motionDistance()\"\n [motionDisabled]=\"motionDisabled()\"\n #posMotion=\"uiMotion\"\n [animate.enter]=\"posMotion.enter()\"\n [animate.leave]=\"posMotion.leave()\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"'ui-drawer' + (styleClass() ? ' ' + styleClass() : '')\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n tabindex=\"-1\"\n [style]=\"drawerStyle()\"\n [cdkTrapFocus]=\"focusTrap()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n @if (headlessTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n @if (showHeader()) {\n <div class=\"ui-drawer-header\">\n <div [attr.id]=\"titleId\" class=\"ui-drawer-title\">\n @if (headerTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ header() }}\n }\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-drawer-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n }\n </button>\n }\n </div>\n }\n\n <!-- Body: long content scrolls inside this region. -->\n <div class=\"ui-drawer-content\">\n <ng-content />\n </div>\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-drawer-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n }\n </div>\n </div>\n}\n","/*\n * Public API Surface of ui-kit/ui-drawer\n */\n\nexport * from './lib/ui-drawer';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AA2BA;AACA,MAAM,mBAAmB,GAAG,IAAI;AAEhC;AACA,IAAI,SAAS,GAAG,CAAC;AACjB;AACA,IAAI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