@sixbell-telco/sdk 4.8.0 → 4.10.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/CHANGELOG.md +53 -0
- package/components/accordion/README.md +1 -1
- package/components/accordion/src/accordion.component.d.ts +4 -0
- package/components/alert/src/alert.component.d.ts +8 -1
- package/components/data-table/README.md +1 -0
- package/components/data-table/src/data-table.component.d.ts +2 -24
- package/components/dialog/README.md +4 -3
- package/components/dialog/dialog-actions/dialog-actions.component.d.ts +2 -1
- package/components/dialog/src/dialog.component.d.ts +10 -5
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +1 -1
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -2
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +12 -0
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +6 -0
- package/components/forms/combobox/README.md +49 -0
- package/components/forms/combobox/src/combobox.component.d.ts +178 -3
- package/components/forms/date-picker/README.md +3 -1
- package/components/forms/date-picker/src/date-picker.component.d.ts +8 -1
- package/components/forms/form-error/README.md +2 -0
- package/components/forms/form-error/src/form-error.component.d.ts +17 -0
- package/components/forms/form-hint/README.md +2 -2
- package/components/forms/form-item/README.md +1 -0
- package/components/forms/form-item/src/form-item.component.d.ts +38 -6
- package/components/forms/input/README.md +7 -0
- package/components/forms/input/src/input.component.d.ts +11 -1
- package/components/forms/select/README.md +48 -0
- package/components/forms/select/src/select.component.d.ts +157 -2
- package/components/forms/textarea/README.md +1 -0
- package/components/forms/textarea/src/textarea.component.d.ts +6 -1
- package/components/paginator/README.md +3 -0
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +8 -3
- package/components/paginator/src/paginator.component.d.ts +2 -1
- package/components/progress/src/progress.component.d.ts +17 -3
- package/components/table/README.md +2 -0
- package/components/table/src/table.component.d.ts +16 -23
- package/directives/only-numbers/src/only-numbers.directive.d.ts +27 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +6 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs +12 -5
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +5 -2
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +30 -13
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +2 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +10 -4
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +32 -6
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +272 -23
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +17 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +32 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +74 -10
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +13 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +258 -18
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +11 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +15 -11
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +22 -4
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +42 -5
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +49 -4
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/i18n/sdk/en.json +14 -4
- package/i18n/sdk/es.json +14 -4
- package/i18n/sdk/pt.json +14 -4
- package/manifest.json +185 -19
- package/package.json +1 -1
- package/src/_index.css +19 -0
|
@@ -5,6 +5,8 @@ import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
|
5
5
|
import { TextDirective } from '@sixbell-telco/sdk/directives/text';
|
|
6
6
|
import { Dialog } from '@angular/cdk/dialog';
|
|
7
7
|
import { Overlay } from '@angular/cdk/overlay';
|
|
8
|
+
import { IconComponent } from '@sixbell-telco/sdk/components/icon';
|
|
9
|
+
import { matCloseOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
|
|
8
10
|
import { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';
|
|
9
11
|
import { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';
|
|
10
12
|
import { cva } from 'class-variance-authority';
|
|
@@ -12,11 +14,12 @@ import { Subscription } from 'rxjs';
|
|
|
12
14
|
|
|
13
15
|
class DialogActionsComponent {
|
|
14
16
|
/**
|
|
15
|
-
* Horizontal alignment of the actions. Dialog actions sit at the bottom right, dismiss first and
|
|
17
|
+
* Horizontal alignment of the actions from `sm` up. Dialog actions sit at the bottom right, dismiss first and
|
|
18
|
+
* confirm last. Below `sm` they stack full width with the last one (the confirm) on top.
|
|
16
19
|
* @defaultValue 'right'
|
|
17
20
|
*/
|
|
18
21
|
alignment = input('right');
|
|
19
|
-
componentClass = computed(() => cn('modal-action font-body leading-normal text-pretty', {
|
|
22
|
+
componentClass = computed(() => cn('modal-action font-body leading-normal text-pretty max-sm:flex-col-reverse max-sm:items-stretch max-sm:[&_.btn]:w-full', {
|
|
20
23
|
'justify-start': this.alignment() === 'left',
|
|
21
24
|
'justify-end': this.alignment() === 'right',
|
|
22
25
|
'justify-center': this.alignment() === 'center',
|
|
@@ -40,11 +43,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
40
43
|
|
|
41
44
|
class DialogSubTitleComponent {
|
|
42
45
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogSubTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: DialogSubTitleComponent, isStandalone: true, selector: "st-dialog-sub-title", ngImport: i0, template: "<div class=\"text-base-content-secondary mb-3\">\n\t<p stText=\"6\" stTextWeight=\"normal\">\n\t\t<ng-content></ng-content>\n\t</p>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
46
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: DialogSubTitleComponent, isStandalone: true, selector: "st-dialog-sub-title", ngImport: i0, template: "<div class=\"text-base-content-secondary mb-3 min-w-0 wrap-anywhere\">\n\t<p stText=\"6\" stTextWeight=\"normal\">\n\t\t<ng-content></ng-content>\n\t</p>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
44
47
|
}
|
|
45
48
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogSubTitleComponent, decorators: [{
|
|
46
49
|
type: Component,
|
|
47
|
-
args: [{ selector: 'st-dialog-sub-title', imports: [CommonModule, TextDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"text-base-content-secondary mb-3\">\n\t<p stText=\"6\" stTextWeight=\"normal\">\n\t\t<ng-content></ng-content>\n\t</p>\n</div>\n" }]
|
|
50
|
+
args: [{ selector: 'st-dialog-sub-title', imports: [CommonModule, TextDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"text-base-content-secondary mb-3 min-w-0 wrap-anywhere\">\n\t<p stText=\"6\" stTextWeight=\"normal\">\n\t\t<ng-content></ng-content>\n\t</p>\n</div>\n" }]
|
|
48
51
|
}] });
|
|
49
52
|
|
|
50
53
|
class DialogTitleComponent {
|
|
@@ -53,7 +56,7 @@ class DialogTitleComponent {
|
|
|
53
56
|
setHasSubTitle(value) {
|
|
54
57
|
this.hasSubTitle.set(value);
|
|
55
58
|
}
|
|
56
|
-
componentClass = computed(() => cn({
|
|
59
|
+
componentClass = computed(() => cn('min-w-0 wrap-anywhere', {
|
|
57
60
|
'mb-3': !this.hasSubTitle(),
|
|
58
61
|
'mb-1': this.hasSubTitle(),
|
|
59
62
|
}));
|
|
@@ -153,6 +156,8 @@ const dialogComponent = cva([
|
|
|
153
156
|
'p-6',
|
|
154
157
|
'text-base-content',
|
|
155
158
|
'relative',
|
|
159
|
+
'flex',
|
|
160
|
+
'flex-col',
|
|
156
161
|
'max-w-[calc(100vw-2rem)]',
|
|
157
162
|
'data-[state=closed]:animate-exit data-[state=open]:animate-enter data-[state=closed]:pointer-events-none',
|
|
158
163
|
], {
|
|
@@ -168,14 +173,21 @@ const dialogComponent = cva([
|
|
|
168
173
|
'4xl': ['w-[56rem]'],
|
|
169
174
|
'5xl': ['w-[64rem]'],
|
|
170
175
|
},
|
|
176
|
+
/** Caps the panel to the viewport: a 2rem gap per side when centered, the pane's 2rem offset plus 2rem at top or bottom */
|
|
177
|
+
yPosition: {
|
|
178
|
+
top: ['max-h-[calc(100dvh-4rem)]'],
|
|
179
|
+
center: ['max-h-[calc(100dvh-2rem)]'],
|
|
180
|
+
bottom: ['max-h-[calc(100dvh-4rem)]'],
|
|
181
|
+
},
|
|
171
182
|
fullscreenOnMobile: {
|
|
172
|
-
true: ['max-sm:
|
|
183
|
+
true: ['max-sm:h-dvh max-sm:max-h-none max-sm:w-screen max-sm:max-w-none max-sm:rounded-none'],
|
|
173
184
|
false: [],
|
|
174
185
|
},
|
|
175
186
|
},
|
|
176
187
|
compoundVariants: [],
|
|
177
188
|
defaultVariants: {
|
|
178
189
|
width: 'lg',
|
|
190
|
+
yPosition: 'center',
|
|
179
191
|
fullscreenOnMobile: true,
|
|
180
192
|
},
|
|
181
193
|
});
|
|
@@ -218,6 +230,8 @@ class DialogComponent {
|
|
|
218
230
|
translateLabel = injectLabelTranslator();
|
|
219
231
|
/** @internal Close button name from `sdk.dialog.close`, in English when no translation is loaded. */
|
|
220
232
|
closeLabel = computed(() => this.translateLabel(CLOSE_LABEL));
|
|
233
|
+
/** @internal Close button icon; the button carries the accessible name. */
|
|
234
|
+
iconClose = matCloseOutline;
|
|
221
235
|
contentEffect = effect(() => {
|
|
222
236
|
const titleInstance = this.titleComponent();
|
|
223
237
|
const subTitleInstance = this.subTitleComponent();
|
|
@@ -232,9 +246,9 @@ class DialogComponent {
|
|
|
232
246
|
*/
|
|
233
247
|
width = input('lg');
|
|
234
248
|
/**
|
|
235
|
-
* Below the `sm` breakpoint (640px) the dialog fills the screen: full width and height, no radius
|
|
236
|
-
*
|
|
237
|
-
*
|
|
249
|
+
* Below the `sm` breakpoint (640px) the dialog fills the screen: full width and height, no radius.
|
|
250
|
+
* Set it to `false` for a short confirm that should stay a centered card on phones. Either way the
|
|
251
|
+
* dialog never grows past the viewport: the content scrolls and the title and actions stay visible.
|
|
238
252
|
* @defaultValue true
|
|
239
253
|
*/
|
|
240
254
|
fullscreenOnMobile = input(true, { transform: booleanAttribute });
|
|
@@ -314,14 +328,17 @@ class DialogComponent {
|
|
|
314
328
|
componentClass = computed(() => {
|
|
315
329
|
return cn(dialogComponent({
|
|
316
330
|
width: this.width(),
|
|
331
|
+
yPosition: this.yPosition(),
|
|
317
332
|
fullscreenOnMobile: this.fullscreenOnMobile(),
|
|
318
333
|
}));
|
|
319
334
|
});
|
|
320
335
|
/**
|
|
321
|
-
* Classes for the content region: it takes the free height and scrolls
|
|
336
|
+
* Classes for the content region: it takes the free height and scrolls when the dialog reaches the viewport.
|
|
337
|
+
* The 0.25rem padding, offset by a negative margin, keeps focus rings inside the scroll box from being clipped.
|
|
338
|
+
* `scroll-fade-y` fades the top and bottom edges only while there is more content to scroll to.
|
|
322
339
|
* @internal
|
|
323
340
|
*/
|
|
324
|
-
contentClass = computed(() =>
|
|
341
|
+
contentClass = computed(() => '-m-1 min-h-0 flex-1 overflow-y-auto overscroll-contain p-1 scroll-fade-y');
|
|
325
342
|
/** @internal Handles open/close state changes */
|
|
326
343
|
openedEffect = effect(() => {
|
|
327
344
|
if (this.opened()) {
|
|
@@ -545,11 +562,11 @@ class DialogComponent {
|
|
|
545
562
|
this.close();
|
|
546
563
|
}
|
|
547
564
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
548
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: DialogComponent, isStandalone: true, selector: "st-dialog", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, fullscreenOnMobile: { classPropertyName: "fullscreenOnMobile", publicName: "fullscreenOnMobile", isSignal: true, isRequired: false, transformFunction: null }, xPosition: { classPropertyName: "xPosition", publicName: "xPosition", isSignal: true, isRequired: false, transformFunction: null }, yPosition: { classPropertyName: "yPosition", publicName: "yPosition", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "openedChange", closed: "closed", clickOutside: "clickOutside", clicked: "clicked", pointerDown: "pointerDown", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace", triggered: "triggered" }, queries: [{ propertyName: "titleComponent", first: true, predicate: DialogTitleComponent, descendants: true, isSignal: true }, { propertyName: "subTitleComponent", first: true, predicate: DialogSubTitleComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(elementRef.nativeElement)\">\n\t\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t\t<!-- Close button -->\n\t\t\t<div class=\"absolute
|
|
565
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: DialogComponent, isStandalone: true, selector: "st-dialog", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, fullscreenOnMobile: { classPropertyName: "fullscreenOnMobile", publicName: "fullscreenOnMobile", isSignal: true, isRequired: false, transformFunction: null }, xPosition: { classPropertyName: "xPosition", publicName: "xPosition", isSignal: true, isRequired: false, transformFunction: null }, yPosition: { classPropertyName: "yPosition", publicName: "yPosition", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "openedChange", closed: "closed", clickOutside: "clickOutside", clicked: "clicked", pointerDown: "pointerDown", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace", triggered: "triggered" }, queries: [{ propertyName: "titleComponent", first: true, predicate: DialogTitleComponent, descendants: true, isSignal: true }, { propertyName: "subTitleComponent", first: true, predicate: DialogSubTitleComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(elementRef.nativeElement)\">\n\t\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t\t<!-- Close button -->\n\t\t\t<div class=\"absolute inset-e-2 top-2\">\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"btn btn-circle btn-ghost btn-sm\"\n\t\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t\t(click)=\"handleClick($event)\"\n\t\t\t\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t\t\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t\t\t\t[attr.aria-label]=\"closeLabel()\"\n\t\t\t\t>\n\t\t\t\t\t<st-icon [icon]=\"iconClose\" />\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<!-- Headings keep clear of the close button -->\n\t\t\t<div class=\"min-w-0 shrink-0 pe-8\" data-st-dialog-heading>\n\t\t\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t\t</div>\n\t\t\t<div [class]=\"contentClass()\" data-st-dialog-body>\n\t\t\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\t\t\t</div>\n\n\t\t\t<!-- Actions stay visible below the scrolling body -->\n\t\t\t<div class=\"flex shrink-0 flex-col pt-4\" data-st-dialog-actions>\n\t\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
549
566
|
}
|
|
550
567
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogComponent, decorators: [{
|
|
551
568
|
type: Component,
|
|
552
|
-
args: [{ selector: 'st-dialog', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(elementRef.nativeElement)\">\n\t\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t\t<!-- Close button -->\n\t\t\t<div class=\"absolute
|
|
569
|
+
args: [{ selector: 'st-dialog', imports: [CommonModule, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(elementRef.nativeElement)\">\n\t\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t\t<!-- Close button -->\n\t\t\t<div class=\"absolute inset-e-2 top-2\">\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"btn btn-circle btn-ghost btn-sm\"\n\t\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t\t(click)=\"handleClick($event)\"\n\t\t\t\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t\t\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t\t\t\t[attr.aria-label]=\"closeLabel()\"\n\t\t\t\t>\n\t\t\t\t\t<st-icon [icon]=\"iconClose\" />\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<!-- Headings keep clear of the close button -->\n\t\t\t<div class=\"min-w-0 shrink-0 pe-8\" data-st-dialog-heading>\n\t\t\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t\t</div>\n\t\t\t<div [class]=\"contentClass()\" data-st-dialog-body>\n\t\t\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\t\t\t</div>\n\n\t\t\t<!-- Actions stay visible below the scrolling body -->\n\t\t\t<div class=\"flex shrink-0 flex-col pt-4\" data-st-dialog-actions>\n\t\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</ng-template>\n" }]
|
|
553
570
|
}] });
|
|
554
571
|
|
|
555
572
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-dialog.mjs","sources":["../../../projects/sdk/components/dialog/dialog-actions/dialog-actions.component.ts","../../../projects/sdk/components/dialog/dialog-actions/dialog-actions.component.html","../../../projects/sdk/components/dialog/dialog-content/dialog-content.component.ts","../../../projects/sdk/components/dialog/dialog-content/dialog-content.component.html","../../../projects/sdk/components/dialog/dialog-sub-title/dialog-sub-title.component.ts","../../../projects/sdk/components/dialog/dialog-sub-title/dialog-sub-title.component.html","../../../projects/sdk/components/dialog/dialog-title/dialog-title.component.ts","../../../projects/sdk/components/dialog/dialog-title/dialog-title.component.html","../../../projects/sdk/components/dialog/src/fullscreen-block-scroll-strategy.ts","../../../projects/sdk/components/dialog/src/dialog.component.ts","../../../projects/sdk/components/dialog/src/dialog.component.html","../../../projects/sdk/components/dialog/sixbell-telco-sdk-components-dialog.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type ModalActionsAligmentProps = 'left' | 'right' | 'center';\n\n@Component({\n\tselector: 'st-dialog-actions',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogActionsComponent {\n\t/**\n\t * Horizontal alignment of the actions. Dialog actions sit at the bottom right, dismiss first and confirm last.\n\t * @defaultValue 'right'\n\t */\n\talignment = input<ModalActionsAligmentProps>('right');\n\n\tcomponentClass = computed(() =>\n\t\tcn('modal-action font-body leading-normal text-pretty', {\n\t\t\t'justify-start': this.alignment() === 'left',\n\t\t\t'justify-end': this.alignment() === 'right',\n\t\t\t'justify-center': this.alignment() === 'center',\n\t\t}),\n\t);\n}\n","<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\tselector: 'st-dialog-content',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogContentComponent {}\n","<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\n\n@Component({\n\tselector: 'st-dialog-sub-title',\n\timports: [CommonModule, TextDirective],\n\ttemplateUrl: './dialog-sub-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogSubTitleComponent {}\n","<div class=\"text-base-content-secondary mb-3\">\n\t<p stText=\"6\" stTextWeight=\"normal\">\n\t\t<ng-content></ng-content>\n\t</p>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, signal } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n@Component({\n\tselector: 'st-dialog-title',\n\timports: [CommonModule, TextDirective],\n\ttemplateUrl: './dialog-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogTitleComponent {\n\t/** Internal signal that indicates whether a subtitle is present in the dialog */\n\tprivate readonly hasSubTitle = signal(false);\n\n\tsetHasSubTitle(value: boolean) {\n\t\tthis.hasSubTitle.set(value);\n\t}\n\n\tcomponentClass = computed(() =>\n\t\tcn({\n\t\t\t'mb-3': !this.hasSubTitle(),\n\t\t\t'mb-1': this.hasSubTitle(),\n\t\t}),\n\t);\n}\n","<div [class]=\"componentClass()\">\n\t<h2 stText=\"2\" stTextWeight=\"medium\" stTextColor=\"base\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n","import { OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';\n\n/**\n * @internal\n * Matches Tailwind's `max-sm` variant: the range where a `fullscreenOnMobile` dialog fills the screen.\n */\nexport const FULLSCREEN_DIALOG_MEDIA = '(width < 40rem)';\n\nconst SCROLLBLOCK_CLASS = 'cdk-global-scrollblock';\n\n/** The declarations of CDK's `.cdk-global-scrollblock` rule, applied inline so the lock works without that stylesheet. */\nconst SCROLLBLOCK_STYLES = { position: 'fixed', width: '100%', overflowY: 'scroll' } as const;\n\ntype ScrollblockStyle = keyof typeof SCROLLBLOCK_STYLES;\n\n/**\n * @internal\n * Locks the page scroll with the CDK block strategy only while the media query matches, and follows\n * viewport changes while the dialog is open. Wider viewports keep the page as is, so a sticky navbar\n * behind the backdrop does not jump.\n *\n * The CDK strategy only sets the class and the `top`/`left` offsets; the lock itself comes from the\n * `.cdk-global-scrollblock` rule in the global stylesheet. A host that loads the SDK styles only inside a\n * child's shadow root would not have that rule, so the same declarations are applied inline on the root.\n */\nexport class FullscreenBlockScrollStrategy implements ScrollStrategy {\n\tprivate readonly onChange = () => this.sync();\n\tprivate previousStyles: Record<ScrollblockStyle, string> | null = null;\n\n\tconstructor(\n\t\tprivate readonly block: ScrollStrategy,\n\t\tprivate readonly media: MediaQueryList | null,\n\t\tprivate readonly root: HTMLElement | null,\n\t) {}\n\n\tattach(overlayRef: OverlayRef): void {\n\t\tthis.block.attach(overlayRef);\n\t}\n\n\tenable(): void {\n\t\tthis.media?.addEventListener('change', this.onChange);\n\t\tthis.sync();\n\t}\n\n\tdisable(): void {\n\t\tthis.media?.removeEventListener('change', this.onChange);\n\t\tthis.unlock();\n\t}\n\n\tdetach(): void {\n\t\tthis.disable();\n\t\tthis.block.detach?.();\n\t}\n\n\tprivate sync(): void {\n\t\tif (this.media?.matches) {\n\t\t\tthis.lock();\n\t\t} else {\n\t\t\tthis.unlock();\n\t\t}\n\t}\n\n\tprivate lock(): void {\n\t\tif (this.previousStyles || !this.root) {\n\t\t\tthis.block.enable();\n\t\t\treturn;\n\t\t}\n\t\tconst alreadyBlocked = this.root.classList.contains(SCROLLBLOCK_CLASS);\n\t\tthis.block.enable();\n\t\tif (alreadyBlocked || !this.root.classList.contains(SCROLLBLOCK_CLASS)) {\n\t\t\treturn;\n\t\t}\n\t\tconst style = this.root.style;\n\t\tthis.previousStyles = { position: style.position, width: style.width, overflowY: style.overflowY };\n\t\tObject.assign(style, SCROLLBLOCK_STYLES);\n\t}\n\n\tprivate unlock(): void {\n\t\tif (this.previousStyles && this.root) {\n\t\t\tObject.assign(this.root.style, this.previousStyles);\n\t\t\tthis.previousStyles = null;\n\t\t}\n\t\tthis.block.disable();\n\t}\n}\n","import { Dialog, DialogConfig, DialogRef } from '@angular/cdk/dialog';\nimport { Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport { CommonModule, DOCUMENT } from '@angular/common';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tmodel,\n\toutput,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n} from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\nimport { Subscription } from 'rxjs';\nimport { DialogSubTitleComponent } from '../dialog-sub-title/dialog-sub-title.component';\nimport { DialogTitleComponent } from '../dialog-title/dialog-title.component';\nimport { FULLSCREEN_DIALOG_MEDIA, FullscreenBlockScrollStrategy } from './fullscreen-block-scroll-strategy';\n\nconst CLOSE_LABEL = { key: 'sdk.dialog.close', fallback: 'Close dialog' };\n\n/** Dropdown X position options for CDK overlay positioning */\nexport type DialogXPosition = 'start' | 'center' | 'end';\n\n/** Dropdown Y position options for CDK overlay positioning */\nexport type DialogYPosition = 'top' | 'center' | 'bottom';\n\n/**\n * CSS class generator for dialog component variants\n * Uses carefully selected DaisyUI classes that don't conflict with CDK positioning\n * @internal\n */\nexport const dialogComponent = cva(\n\t[\n\t\t'bg-base-200',\n\t\t'rounded-box',\n\t\t'shadow-modal',\n\t\t'p-6',\n\t\t'text-base-content',\n\t\t'relative',\n\t\t'max-w-[calc(100vw-2rem)]',\n\t\t'data-[state=closed]:animate-exit data-[state=open]:animate-enter data-[state=closed]:pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\twidth: {\n\t\t\t\txs: ['w-64'],\n\t\t\t\tsm: ['w-80'],\n\t\t\t\tmd: ['w-96'],\n\t\t\t\tlg: ['w-[32rem]'],\n\t\t\t\txl: ['w-[36rem]'],\n\t\t\t\t'2xl': ['w-[42rem]'],\n\t\t\t\t'3xl': ['w-[48rem]'],\n\t\t\t\t'4xl': ['w-[56rem]'],\n\t\t\t\t'5xl': ['w-[64rem]'],\n\t\t\t},\n\t\t\tfullscreenOnMobile: {\n\t\t\t\ttrue: ['max-sm:flex max-sm:h-dvh max-sm:w-screen max-sm:max-w-none max-sm:flex-col max-sm:rounded-none'],\n\t\t\t\tfalse: [],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\twidth: 'lg',\n\t\t\tfullscreenOnMobile: true,\n\t\t},\n\t},\n);\n\n/** Possible width values for the dialog component */\nexport type DialogWidthProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | null | undefined;\n\n/** Animation states for the dialog */\ntype AnimationState = 'closed' | 'open';\n\n/** Upper bound for the exit animation before the overlay is removed anyway */\nconst CLOSE_FALLBACK_MS = 400;\n\n/** Configuration properties for the dialog component */\nexport type DialogProps = {\n\twidth?: DialogWidthProps;\n\tfullscreenOnMobile?: boolean;\n};\n\n/**\n * A customizable dialog component using Angular CDK Dialog for declarative usage\n *\n * @remarks\n * This component provides a declarative way to create dialogs with content projection.\n * Uses CDK Dialog under the hood to avoid z-index issues with native dialog elements.\n *\n * @example\n * ```html\n * <st-dialog\n * [(opened)]=\"isDialogOpen\"\n * width=\"lg\"\n * (closed)=\"handleDialogClosed()\">\n * <st-dialog-title>Confirm Action</st-dialog-title>\n * <st-dialog-content>\n * Are you sure you want to proceed?\n * </st-dialog-content>\n * <st-dialog-actions>\n * <st-button variant=\"secondary\" (click)=\"closeDialog()\">Cancel</st-button>\n * <st-button variant=\"primary\" (click)=\"confirmAction()\">Confirm</st-button>\n * </st-dialog-actions>\n * </st-dialog>\n * ```\n */\n@Component({\n\tselector: 'st-dialog',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogComponent {\n\t/** @internal Content children to detect what's projected */\n\tprivate readonly titleComponent = contentChild(DialogTitleComponent);\n\tprivate readonly subTitleComponent = contentChild(DialogSubTitleComponent);\n\n\t/** @internal Signals for conditional styling */\n\thasTitle = signal(false);\n\thasSubTitle = signal(false);\n\n\tprivate readonly destroyRef = inject(DestroyRef);\n\tprotected readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\tprotected readonly themeDomService = inject(ThemeDomService);\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal Close button name from `sdk.dialog.close`, in English when no translation is loaded. */\n\tprotected readonly closeLabel = computed(() => this.translateLabel(CLOSE_LABEL));\n\n\tprivate readonly contentEffect = effect(() => {\n\t\tconst titleInstance = this.titleComponent();\n\t\tconst subTitleInstance = this.subTitleComponent();\n\n\t\tconst hasSub = !!subTitleInstance;\n\t\tthis.hasTitle.set(!!titleInstance);\n\t\tthis.hasSubTitle.set(hasSub);\n\n\t\ttitleInstance?.setHasSubTitle?.(hasSub);\n\t});\n\n\t/**\n\t * Specifies the width of the dialog\n\t * @defaultValue 'lg'\n\t */\n\twidth = input<DialogWidthProps>('lg');\n\n\t/**\n\t * Below the `sm` breakpoint (640px) the dialog fills the screen: full width and height, no radius,\n\t * the content scrolls and the actions stay visible. Set it to `false` for a short confirm that should\n\t * stay a centered card on phones.\n\t * @defaultValue true\n\t */\n\tfullscreenOnMobile = input(true, { transform: booleanAttribute });\n\n\t/**\n\t * Controls the horizontal positioning of the dialog (x-axis)\n\t * @defaultValue 'center'\n\t */\n\txPosition = input<DialogXPosition>('center');\n\n\t/**\n\t * Controls the vertical positioning of the dialog (y-axis)\n\t * @defaultValue 'center'\n\t */\n\tyPosition = input<DialogYPosition>('center');\n\n\t/**\n\t * Controls the visibility state of the dialog\n\t * Supports two-way binding via Angular's model\n\t */\n\topened = model<boolean>(false);\n\n\t/** Event emitted when the dialog closes */\n\tclosed = output<void>();\n\n\t/** Event emitted when clicking outside the dialog content */\n\tclickOutside = output<void>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on pointer down\n\t */\n\tpointerDown = output<PointerEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t/** @internal CDK Dialog service */\n\tprivate readonly dialog = inject(Dialog);\n\n\t/** @internal CDK Overlay service for positioning */\n\tprivate readonly overlay = inject(Overlay);\n\n\t/** @internal */\n\tprivate readonly document = inject(DOCUMENT);\n\n\t/** @internal Reference to the dialog template */\n\tdialogTemplate = viewChild<TemplateRef<unknown>>('dialogTemplate');\n\n\t/** @internal Reference to the current open dialog */\n\tprivate dialogRef: DialogRef<unknown> | null = null;\n\n\t/** @internal Subscriptions for CDK dialog observables so we can clean up on destroy */\n\tprivate subs = new Subscription();\n\n\t/** @internal Animation state signal for controlling CSS animations */\n\tprivate readonly animationState = signal<AnimationState>('closed');\n\n\t/** @internal Flag to track if we're in the process of closing */\n\tprivate isClosing = false;\n\n\t/** @internal Closes the dialog if the exit animation never reports its end */\n\tprivate closeFallback: ReturnType<typeof setTimeout> | undefined;\n\n\t/**\n\t * Computes the data-state attribute value for CSS animations\n\t * @returns Current animation state\n\t * @internal\n\t */\n\tdataState = computed(() => this.animationState());\n\n\t/**\n\t * Computes CSS classes for dialog content based on current configuration\n\t * @returns Combined Tailwind classes string\n\t * @internal\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tdialogComponent({\n\t\t\t\twidth: this.width(),\n\t\t\t\tfullscreenOnMobile: this.fullscreenOnMobile(),\n\t\t\t}),\n\t\t);\n\t});\n\n\t/**\n\t * Classes for the content region: it takes the free height and scrolls in the full-screen layout\n\t * @internal\n\t */\n\tcontentClass = computed(() => (this.fullscreenOnMobile() ? 'max-sm:min-h-0 max-sm:flex-1 max-sm:overflow-y-auto max-sm:overscroll-contain' : ''));\n\n\t/** @internal Handles open/close state changes */\n\topenedEffect = effect(() => {\n\t\tif (this.opened()) {\n\t\t\tthis.openDialog();\n\t\t} else {\n\t\t\tthis.closeDialog();\n\t\t}\n\t});\n\n\t/**\n\t * Computed CDK Dialog configuration based on x/y axis signals\n\t * Uses CDK's overlay positioning system for full axis control\n\t * @internal\n\t */\n\tprivate readonly dialogConfig = computed<DialogConfig>(() => {\n\t\tconst x = this.xPosition();\n\t\tconst y = this.yPosition();\n\n\t\tconst baseConfig: DialogConfig = {\n\t\t\thasBackdrop: true,\n\t\t\tdisableClose: true, // Prevent automatic close, we handle it manually for animations\n\t\t\tautoFocus: true,\n\t\t\trestoreFocus: true,\n\t\t\tbackdropClass: ['bg-backdrop'],\n\t\t\tpanelClass: this.fullscreenOnMobile() ? ['st-dialog-panel', 'st-dialog-panel-fullscreen'] : ['st-dialog-panel'],\n\t\t};\n\n\t\tlet positionStrategy = this.overlay.position().global();\n\n\t\t// X axis\n\t\tswitch (x) {\n\t\t\tcase 'start':\n\t\t\t\tpositionStrategy = positionStrategy.left('2rem');\n\t\t\t\tbreak;\n\t\t\tcase 'end':\n\t\t\t\tpositionStrategy = positionStrategy.right('2rem');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpositionStrategy = positionStrategy.centerHorizontally();\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Y axis\n\t\tswitch (y) {\n\t\t\tcase 'top':\n\t\t\t\tpositionStrategy = positionStrategy.top('2rem');\n\t\t\t\tbreak;\n\t\t\tcase 'bottom':\n\t\t\t\tpositionStrategy = positionStrategy.bottom('2rem');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpositionStrategy = positionStrategy.centerVertically();\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn {\n\t\t\t...baseConfig,\n\t\t\tpositionStrategy,\n\t\t};\n\t});\n\n\t/**\n\t * Opens the dialog using CDK Dialog\n\t * @internal\n\t */\n\tprivate openDialog() {\n\t\tif (this.dialogRef && this.isClosing) {\n\t\t\tclearTimeout(this.closeFallback);\n\t\t\tthis.closeFallback = undefined;\n\t\t\tthis.isClosing = false;\n\t\t\tthis.animationState.set('open');\n\t\t\tthis.dialogRef.overlayRef?.backdropElement?.classList.add('cdk-overlay-backdrop-showing');\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.dialogRef || !this.dialogTemplate()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.dialogRef = this.dialog.open(this.dialogTemplate()!, {\n\t\t\t...this.dialogConfig(),\n\t\t\tscrollStrategy: this.createScrollStrategy(),\n\t\t} as DialogConfig<unknown, DialogRef<unknown, unknown>>);\n\n\t\t// Set open state for animation\n\t\tthis.animationState.set('open');\n\t\tthis.isClosing = false;\n\n\t\t// Handle dialog close events\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.closed.subscribe(() => {\n\t\t\t\t// tear down current subscriptions to avoid re-entrancy or emits after destroy\n\t\t\t\tthis.subs.unsubscribe();\n\t\t\t\t// recreate the subscription container so future opens can re-subscribe\n\t\t\t\tthis.subs = new Subscription();\n\t\t\t\tthis.dialogRef = null;\n\t\t\t\tthis.animationState.set('closed');\n\t\t\t\tthis.isClosing = false;\n\t\t\t\tif (this.opened()) {\n\t\t\t\t\tthis.opened.set(false);\n\t\t\t\t\tthis.closed.emit();\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\n\t\t// Handle backdrop clicks\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.backdropClick.subscribe(() => {\n\t\t\t\tthis.clickOutside.emit();\n\t\t\t\tthis.close();\n\t\t\t}),\n\t\t);\n\n\t\t// Handle escape key\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.keydownEvents.subscribe((event: KeyboardEvent) => {\n\t\t\t\tif (event.key === 'Escape') {\n\t\t\t\t\tthis.close();\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\t}\n\n\t/**\n\t * A full-screen dialog locks the page scroll below `sm`, where it covers the page anyway. Elsewhere the\n\t * page keeps its scroll (noop), because the block strategy fixes the root and makes a sticky navbar jump.\n\t * @internal\n\t */\n\tprivate createScrollStrategy(): ScrollStrategy {\n\t\tif (!this.fullscreenOnMobile()) {\n\t\t\treturn this.overlay.scrollStrategies.noop();\n\t\t}\n\t\tconst media = this.document.defaultView?.matchMedia?.(FULLSCREEN_DIALOG_MEDIA) ?? null;\n\t\treturn new FullscreenBlockScrollStrategy(this.overlay.scrollStrategies.block(), media, this.document.documentElement);\n\t}\n\n\t/**\n\t * Public method to close the dialog\n\t * Can be called directly from parent components or child components\n\t */\n\tclose() {\n\t\tif (this.isClosing) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.closeDialog();\n\n\t\t// Ensure opened flag is synchronized and notify listeners that the dialog closed\n\t\tthis.opened.set(false);\n\t\tthis.closed.emit();\n\t}\n\n\t/**\n\t * Plays the exit animation; the CDK dialog is closed when it ends\n\t * @internal\n\t */\n\tprivate closeDialog() {\n\t\tif (!this.dialogRef || this.isClosing) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isClosing = true;\n\t\tthis.animationState.set('closed');\n\t\t// Set directly too: after this component is destroyed (e.g. inside an @if) its signals no longer render\n\t\tthis.dialogRef.overlayRef?.overlayElement?.querySelector('[data-state]')?.setAttribute('data-state', 'closed');\n\t\tthis.dialogRef.overlayRef?.backdropElement?.classList.remove('cdk-overlay-backdrop-showing');\n\t\tthis.closeFallback = setTimeout(() => this.finishClose(), CLOSE_FALLBACK_MS);\n\t}\n\n\t/** @internal Closes the CDK dialog once the exit animation is done */\n\tprivate finishClose() {\n\t\tclearTimeout(this.closeFallback);\n\t\tthis.closeFallback = undefined;\n\t\tthis.dialogRef?.close();\n\t}\n\n\t/**\n\t * Handles animation end events to trigger the actual dialog close\n\t * @internal\n\t */\n\tonAnimationEnd(event: AnimationEvent) {\n\t\tconst target = event.target as HTMLElement;\n\n\t\t// Only handle animations on the main dialog element\n\t\tif (target.hasAttribute('data-state') && this.isClosing) {\n\t\t\tthis.finishClose();\n\t\t}\n\t}\n\n\t/**\n\t * Clean up CDK subscriptions and animate the overlay out when the component is destroyed\n\t */\n\tprivate readonly destroyEffect = this.destroyRef.onDestroy(() => {\n\t\tthis.subs.unsubscribe();\n\t\tthis.closeDialog();\n\t});\n\n\t/**\n\t * Handles the close button click\n\t * @internal\n\t */\n\thandleCloseClick() {\n\t\tthis.close();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t\tthis.close();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle pointer down activation\n\t */\n\thandlePointerDown(event: PointerEvent) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.pointerDown.emit(event);\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.close();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event) {\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.close();\n\t}\n}\n","<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(elementRef.nativeElement)\">\n\t\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t\t<!-- Close button -->\n\t\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t\t<button\n\t\t\t\t\tclass=\"btn btn-circle btn-ghost btn-sm\"\n\t\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t\t(click)=\"handleClick($event)\"\n\t\t\t\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t\t\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t\t\t\t[attr.aria-label]=\"closeLabel()\"\n\t\t\t\t>\n\t\t\t\t\t✕\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<!-- Headings keep clear of the close button -->\n\t\t\t<div class=\"pe-8\" data-st-dialog-heading>\n\t\t\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t\t</div>\n\t\t\t<div [class]=\"contentClass()\" data-st-dialog-body>\n\t\t\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\t\t\t</div>\n\n\t\t\t<!-- Actions section with spacing -->\n\t\t\t<div class=\"flex shrink-0 justify-end gap-2 pt-4\" data-st-dialog-actions>\n\t\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAYa,sBAAsB,CAAA;AAClC;;;AAGG;AACH,IAAA,SAAS,GAAG,KAAK,CAA4B,OAAO,CAAC;IAErD,cAAc,GAAG,QAAQ,CAAC,MACzB,EAAE,CAAC,mDAAmD,EAAE;AACvD,QAA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,YAAY,CAAC,EAAA,eAAA,EAEN,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,g3CAAA,EAAA;;;AE1HhD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-dialog.mjs","sources":["../../../projects/sdk/components/dialog/dialog-actions/dialog-actions.component.ts","../../../projects/sdk/components/dialog/dialog-actions/dialog-actions.component.html","../../../projects/sdk/components/dialog/dialog-content/dialog-content.component.ts","../../../projects/sdk/components/dialog/dialog-content/dialog-content.component.html","../../../projects/sdk/components/dialog/dialog-sub-title/dialog-sub-title.component.ts","../../../projects/sdk/components/dialog/dialog-sub-title/dialog-sub-title.component.html","../../../projects/sdk/components/dialog/dialog-title/dialog-title.component.ts","../../../projects/sdk/components/dialog/dialog-title/dialog-title.component.html","../../../projects/sdk/components/dialog/src/fullscreen-block-scroll-strategy.ts","../../../projects/sdk/components/dialog/src/dialog.component.ts","../../../projects/sdk/components/dialog/src/dialog.component.html","../../../projects/sdk/components/dialog/sixbell-telco-sdk-components-dialog.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type ModalActionsAligmentProps = 'left' | 'right' | 'center';\n\n@Component({\n\tselector: 'st-dialog-actions',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogActionsComponent {\n\t/**\n\t * Horizontal alignment of the actions from `sm` up. Dialog actions sit at the bottom right, dismiss first and\n\t * confirm last. Below `sm` they stack full width with the last one (the confirm) on top.\n\t * @defaultValue 'right'\n\t */\n\talignment = input<ModalActionsAligmentProps>('right');\n\n\tcomponentClass = computed(() =>\n\t\tcn('modal-action font-body leading-normal text-pretty max-sm:flex-col-reverse max-sm:items-stretch max-sm:[&_.btn]:w-full', {\n\t\t\t'justify-start': this.alignment() === 'left',\n\t\t\t'justify-end': this.alignment() === 'right',\n\t\t\t'justify-center': this.alignment() === 'center',\n\t\t}),\n\t);\n}\n","<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\tselector: 'st-dialog-content',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogContentComponent {}\n","<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\n\n@Component({\n\tselector: 'st-dialog-sub-title',\n\timports: [CommonModule, TextDirective],\n\ttemplateUrl: './dialog-sub-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogSubTitleComponent {}\n","<div class=\"text-base-content-secondary mb-3 min-w-0 wrap-anywhere\">\n\t<p stText=\"6\" stTextWeight=\"normal\">\n\t\t<ng-content></ng-content>\n\t</p>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, signal } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n@Component({\n\tselector: 'st-dialog-title',\n\timports: [CommonModule, TextDirective],\n\ttemplateUrl: './dialog-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogTitleComponent {\n\t/** Internal signal that indicates whether a subtitle is present in the dialog */\n\tprivate readonly hasSubTitle = signal(false);\n\n\tsetHasSubTitle(value: boolean) {\n\t\tthis.hasSubTitle.set(value);\n\t}\n\n\tcomponentClass = computed(() =>\n\t\tcn('min-w-0 wrap-anywhere', {\n\t\t\t'mb-3': !this.hasSubTitle(),\n\t\t\t'mb-1': this.hasSubTitle(),\n\t\t}),\n\t);\n}\n","<div [class]=\"componentClass()\">\n\t<h2 stText=\"2\" stTextWeight=\"medium\" stTextColor=\"base\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n","import { OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';\n\n/**\n * @internal\n * Matches Tailwind's `max-sm` variant: the range where a `fullscreenOnMobile` dialog fills the screen.\n */\nexport const FULLSCREEN_DIALOG_MEDIA = '(width < 40rem)';\n\nconst SCROLLBLOCK_CLASS = 'cdk-global-scrollblock';\n\n/** The declarations of CDK's `.cdk-global-scrollblock` rule, applied inline so the lock works without that stylesheet. */\nconst SCROLLBLOCK_STYLES = { position: 'fixed', width: '100%', overflowY: 'scroll' } as const;\n\ntype ScrollblockStyle = keyof typeof SCROLLBLOCK_STYLES;\n\n/**\n * @internal\n * Locks the page scroll with the CDK block strategy only while the media query matches, and follows\n * viewport changes while the dialog is open. Wider viewports keep the page as is, so a sticky navbar\n * behind the backdrop does not jump.\n *\n * The CDK strategy only sets the class and the `top`/`left` offsets; the lock itself comes from the\n * `.cdk-global-scrollblock` rule in the global stylesheet. A host that loads the SDK styles only inside a\n * child's shadow root would not have that rule, so the same declarations are applied inline on the root.\n */\nexport class FullscreenBlockScrollStrategy implements ScrollStrategy {\n\tprivate readonly onChange = () => this.sync();\n\tprivate previousStyles: Record<ScrollblockStyle, string> | null = null;\n\n\tconstructor(\n\t\tprivate readonly block: ScrollStrategy,\n\t\tprivate readonly media: MediaQueryList | null,\n\t\tprivate readonly root: HTMLElement | null,\n\t) {}\n\n\tattach(overlayRef: OverlayRef): void {\n\t\tthis.block.attach(overlayRef);\n\t}\n\n\tenable(): void {\n\t\tthis.media?.addEventListener('change', this.onChange);\n\t\tthis.sync();\n\t}\n\n\tdisable(): void {\n\t\tthis.media?.removeEventListener('change', this.onChange);\n\t\tthis.unlock();\n\t}\n\n\tdetach(): void {\n\t\tthis.disable();\n\t\tthis.block.detach?.();\n\t}\n\n\tprivate sync(): void {\n\t\tif (this.media?.matches) {\n\t\t\tthis.lock();\n\t\t} else {\n\t\t\tthis.unlock();\n\t\t}\n\t}\n\n\tprivate lock(): void {\n\t\tif (this.previousStyles || !this.root) {\n\t\t\tthis.block.enable();\n\t\t\treturn;\n\t\t}\n\t\tconst alreadyBlocked = this.root.classList.contains(SCROLLBLOCK_CLASS);\n\t\tthis.block.enable();\n\t\tif (alreadyBlocked || !this.root.classList.contains(SCROLLBLOCK_CLASS)) {\n\t\t\treturn;\n\t\t}\n\t\tconst style = this.root.style;\n\t\tthis.previousStyles = { position: style.position, width: style.width, overflowY: style.overflowY };\n\t\tObject.assign(style, SCROLLBLOCK_STYLES);\n\t}\n\n\tprivate unlock(): void {\n\t\tif (this.previousStyles && this.root) {\n\t\t\tObject.assign(this.root.style, this.previousStyles);\n\t\t\tthis.previousStyles = null;\n\t\t}\n\t\tthis.block.disable();\n\t}\n}\n","import { Dialog, DialogConfig, DialogRef } from '@angular/cdk/dialog';\nimport { Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport { CommonModule, DOCUMENT } from '@angular/common';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tmodel,\n\toutput,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n} from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matCloseOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\nimport { Subscription } from 'rxjs';\nimport { DialogSubTitleComponent } from '../dialog-sub-title/dialog-sub-title.component';\nimport { DialogTitleComponent } from '../dialog-title/dialog-title.component';\nimport { FULLSCREEN_DIALOG_MEDIA, FullscreenBlockScrollStrategy } from './fullscreen-block-scroll-strategy';\n\nconst CLOSE_LABEL = { key: 'sdk.dialog.close', fallback: 'Close dialog' };\n\n/** Dropdown X position options for CDK overlay positioning */\nexport type DialogXPosition = 'start' | 'center' | 'end';\n\n/** Dropdown Y position options for CDK overlay positioning */\nexport type DialogYPosition = 'top' | 'center' | 'bottom';\n\n/**\n * CSS class generator for dialog component variants\n * Uses carefully selected DaisyUI classes that don't conflict with CDK positioning\n * @internal\n */\nexport const dialogComponent = cva(\n\t[\n\t\t'bg-base-200',\n\t\t'rounded-box',\n\t\t'shadow-modal',\n\t\t'p-6',\n\t\t'text-base-content',\n\t\t'relative',\n\t\t'flex',\n\t\t'flex-col',\n\t\t'max-w-[calc(100vw-2rem)]',\n\t\t'data-[state=closed]:animate-exit data-[state=open]:animate-enter data-[state=closed]:pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\twidth: {\n\t\t\t\txs: ['w-64'],\n\t\t\t\tsm: ['w-80'],\n\t\t\t\tmd: ['w-96'],\n\t\t\t\tlg: ['w-[32rem]'],\n\t\t\t\txl: ['w-[36rem]'],\n\t\t\t\t'2xl': ['w-[42rem]'],\n\t\t\t\t'3xl': ['w-[48rem]'],\n\t\t\t\t'4xl': ['w-[56rem]'],\n\t\t\t\t'5xl': ['w-[64rem]'],\n\t\t\t},\n\t\t\t/** Caps the panel to the viewport: a 2rem gap per side when centered, the pane's 2rem offset plus 2rem at top or bottom */\n\t\t\tyPosition: {\n\t\t\t\ttop: ['max-h-[calc(100dvh-4rem)]'],\n\t\t\t\tcenter: ['max-h-[calc(100dvh-2rem)]'],\n\t\t\t\tbottom: ['max-h-[calc(100dvh-4rem)]'],\n\t\t\t},\n\t\t\tfullscreenOnMobile: {\n\t\t\t\ttrue: ['max-sm:h-dvh max-sm:max-h-none max-sm:w-screen max-sm:max-w-none max-sm:rounded-none'],\n\t\t\t\tfalse: [],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\twidth: 'lg',\n\t\t\tyPosition: 'center',\n\t\t\tfullscreenOnMobile: true,\n\t\t},\n\t},\n);\n\n/** Possible width values for the dialog component */\nexport type DialogWidthProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | null | undefined;\n\n/** Animation states for the dialog */\ntype AnimationState = 'closed' | 'open';\n\n/** Upper bound for the exit animation before the overlay is removed anyway */\nconst CLOSE_FALLBACK_MS = 400;\n\n/** Configuration properties for the dialog component */\nexport type DialogProps = {\n\twidth?: DialogWidthProps;\n\tfullscreenOnMobile?: boolean;\n};\n\n/**\n * A customizable dialog component using Angular CDK Dialog for declarative usage\n *\n * @remarks\n * This component provides a declarative way to create dialogs with content projection.\n * Uses CDK Dialog under the hood to avoid z-index issues with native dialog elements.\n *\n * @example\n * ```html\n * <st-dialog\n * [(opened)]=\"isDialogOpen\"\n * width=\"lg\"\n * (closed)=\"handleDialogClosed()\">\n * <st-dialog-title>Confirm Action</st-dialog-title>\n * <st-dialog-content>\n * Are you sure you want to proceed?\n * </st-dialog-content>\n * <st-dialog-actions>\n * <st-button variant=\"secondary\" (click)=\"closeDialog()\">Cancel</st-button>\n * <st-button variant=\"primary\" (click)=\"confirmAction()\">Confirm</st-button>\n * </st-dialog-actions>\n * </st-dialog>\n * ```\n */\n@Component({\n\tselector: 'st-dialog',\n\timports: [CommonModule, IconComponent],\n\ttemplateUrl: './dialog.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogComponent {\n\t/** @internal Content children to detect what's projected */\n\tprivate readonly titleComponent = contentChild(DialogTitleComponent);\n\tprivate readonly subTitleComponent = contentChild(DialogSubTitleComponent);\n\n\t/** @internal Signals for conditional styling */\n\thasTitle = signal(false);\n\thasSubTitle = signal(false);\n\n\tprivate readonly destroyRef = inject(DestroyRef);\n\tprotected readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\tprotected readonly themeDomService = inject(ThemeDomService);\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal Close button name from `sdk.dialog.close`, in English when no translation is loaded. */\n\tprotected readonly closeLabel = computed(() => this.translateLabel(CLOSE_LABEL));\n\n\t/** @internal Close button icon; the button carries the accessible name. */\n\tprotected readonly iconClose = matCloseOutline;\n\n\tprivate readonly contentEffect = effect(() => {\n\t\tconst titleInstance = this.titleComponent();\n\t\tconst subTitleInstance = this.subTitleComponent();\n\n\t\tconst hasSub = !!subTitleInstance;\n\t\tthis.hasTitle.set(!!titleInstance);\n\t\tthis.hasSubTitle.set(hasSub);\n\n\t\ttitleInstance?.setHasSubTitle?.(hasSub);\n\t});\n\n\t/**\n\t * Specifies the width of the dialog\n\t * @defaultValue 'lg'\n\t */\n\twidth = input<DialogWidthProps>('lg');\n\n\t/**\n\t * Below the `sm` breakpoint (640px) the dialog fills the screen: full width and height, no radius.\n\t * Set it to `false` for a short confirm that should stay a centered card on phones. Either way the\n\t * dialog never grows past the viewport: the content scrolls and the title and actions stay visible.\n\t * @defaultValue true\n\t */\n\tfullscreenOnMobile = input(true, { transform: booleanAttribute });\n\n\t/**\n\t * Controls the horizontal positioning of the dialog (x-axis)\n\t * @defaultValue 'center'\n\t */\n\txPosition = input<DialogXPosition>('center');\n\n\t/**\n\t * Controls the vertical positioning of the dialog (y-axis)\n\t * @defaultValue 'center'\n\t */\n\tyPosition = input<DialogYPosition>('center');\n\n\t/**\n\t * Controls the visibility state of the dialog\n\t * Supports two-way binding via Angular's model\n\t */\n\topened = model<boolean>(false);\n\n\t/** Event emitted when the dialog closes */\n\tclosed = output<void>();\n\n\t/** Event emitted when clicking outside the dialog content */\n\tclickOutside = output<void>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on pointer down\n\t */\n\tpointerDown = output<PointerEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t/** @internal CDK Dialog service */\n\tprivate readonly dialog = inject(Dialog);\n\n\t/** @internal CDK Overlay service for positioning */\n\tprivate readonly overlay = inject(Overlay);\n\n\t/** @internal */\n\tprivate readonly document = inject(DOCUMENT);\n\n\t/** @internal Reference to the dialog template */\n\tdialogTemplate = viewChild<TemplateRef<unknown>>('dialogTemplate');\n\n\t/** @internal Reference to the current open dialog */\n\tprivate dialogRef: DialogRef<unknown> | null = null;\n\n\t/** @internal Subscriptions for CDK dialog observables so we can clean up on destroy */\n\tprivate subs = new Subscription();\n\n\t/** @internal Animation state signal for controlling CSS animations */\n\tprivate readonly animationState = signal<AnimationState>('closed');\n\n\t/** @internal Flag to track if we're in the process of closing */\n\tprivate isClosing = false;\n\n\t/** @internal Closes the dialog if the exit animation never reports its end */\n\tprivate closeFallback: ReturnType<typeof setTimeout> | undefined;\n\n\t/**\n\t * Computes the data-state attribute value for CSS animations\n\t * @returns Current animation state\n\t * @internal\n\t */\n\tdataState = computed(() => this.animationState());\n\n\t/**\n\t * Computes CSS classes for dialog content based on current configuration\n\t * @returns Combined Tailwind classes string\n\t * @internal\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tdialogComponent({\n\t\t\t\twidth: this.width(),\n\t\t\t\tyPosition: this.yPosition(),\n\t\t\t\tfullscreenOnMobile: this.fullscreenOnMobile(),\n\t\t\t}),\n\t\t);\n\t});\n\n\t/**\n\t * Classes for the content region: it takes the free height and scrolls when the dialog reaches the viewport.\n\t * The 0.25rem padding, offset by a negative margin, keeps focus rings inside the scroll box from being clipped.\n\t * `scroll-fade-y` fades the top and bottom edges only while there is more content to scroll to.\n\t * @internal\n\t */\n\tcontentClass = computed(() => '-m-1 min-h-0 flex-1 overflow-y-auto overscroll-contain p-1 scroll-fade-y');\n\n\t/** @internal Handles open/close state changes */\n\topenedEffect = effect(() => {\n\t\tif (this.opened()) {\n\t\t\tthis.openDialog();\n\t\t} else {\n\t\t\tthis.closeDialog();\n\t\t}\n\t});\n\n\t/**\n\t * Computed CDK Dialog configuration based on x/y axis signals\n\t * Uses CDK's overlay positioning system for full axis control\n\t * @internal\n\t */\n\tprivate readonly dialogConfig = computed<DialogConfig>(() => {\n\t\tconst x = this.xPosition();\n\t\tconst y = this.yPosition();\n\n\t\tconst baseConfig: DialogConfig = {\n\t\t\thasBackdrop: true,\n\t\t\tdisableClose: true, // Prevent automatic close, we handle it manually for animations\n\t\t\tautoFocus: true,\n\t\t\trestoreFocus: true,\n\t\t\tbackdropClass: ['bg-backdrop'],\n\t\t\tpanelClass: this.fullscreenOnMobile() ? ['st-dialog-panel', 'st-dialog-panel-fullscreen'] : ['st-dialog-panel'],\n\t\t};\n\n\t\tlet positionStrategy = this.overlay.position().global();\n\n\t\t// X axis\n\t\tswitch (x) {\n\t\t\tcase 'start':\n\t\t\t\tpositionStrategy = positionStrategy.left('2rem');\n\t\t\t\tbreak;\n\t\t\tcase 'end':\n\t\t\t\tpositionStrategy = positionStrategy.right('2rem');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpositionStrategy = positionStrategy.centerHorizontally();\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Y axis\n\t\tswitch (y) {\n\t\t\tcase 'top':\n\t\t\t\tpositionStrategy = positionStrategy.top('2rem');\n\t\t\t\tbreak;\n\t\t\tcase 'bottom':\n\t\t\t\tpositionStrategy = positionStrategy.bottom('2rem');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpositionStrategy = positionStrategy.centerVertically();\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn {\n\t\t\t...baseConfig,\n\t\t\tpositionStrategy,\n\t\t};\n\t});\n\n\t/**\n\t * Opens the dialog using CDK Dialog\n\t * @internal\n\t */\n\tprivate openDialog() {\n\t\tif (this.dialogRef && this.isClosing) {\n\t\t\tclearTimeout(this.closeFallback);\n\t\t\tthis.closeFallback = undefined;\n\t\t\tthis.isClosing = false;\n\t\t\tthis.animationState.set('open');\n\t\t\tthis.dialogRef.overlayRef?.backdropElement?.classList.add('cdk-overlay-backdrop-showing');\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.dialogRef || !this.dialogTemplate()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.dialogRef = this.dialog.open(this.dialogTemplate()!, {\n\t\t\t...this.dialogConfig(),\n\t\t\tscrollStrategy: this.createScrollStrategy(),\n\t\t} as DialogConfig<unknown, DialogRef<unknown, unknown>>);\n\n\t\t// Set open state for animation\n\t\tthis.animationState.set('open');\n\t\tthis.isClosing = false;\n\n\t\t// Handle dialog close events\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.closed.subscribe(() => {\n\t\t\t\t// tear down current subscriptions to avoid re-entrancy or emits after destroy\n\t\t\t\tthis.subs.unsubscribe();\n\t\t\t\t// recreate the subscription container so future opens can re-subscribe\n\t\t\t\tthis.subs = new Subscription();\n\t\t\t\tthis.dialogRef = null;\n\t\t\t\tthis.animationState.set('closed');\n\t\t\t\tthis.isClosing = false;\n\t\t\t\tif (this.opened()) {\n\t\t\t\t\tthis.opened.set(false);\n\t\t\t\t\tthis.closed.emit();\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\n\t\t// Handle backdrop clicks\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.backdropClick.subscribe(() => {\n\t\t\t\tthis.clickOutside.emit();\n\t\t\t\tthis.close();\n\t\t\t}),\n\t\t);\n\n\t\t// Handle escape key\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.keydownEvents.subscribe((event: KeyboardEvent) => {\n\t\t\t\tif (event.key === 'Escape') {\n\t\t\t\t\tthis.close();\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\t}\n\n\t/**\n\t * A full-screen dialog locks the page scroll below `sm`, where it covers the page anyway. Elsewhere the\n\t * page keeps its scroll (noop), because the block strategy fixes the root and makes a sticky navbar jump.\n\t * @internal\n\t */\n\tprivate createScrollStrategy(): ScrollStrategy {\n\t\tif (!this.fullscreenOnMobile()) {\n\t\t\treturn this.overlay.scrollStrategies.noop();\n\t\t}\n\t\tconst media = this.document.defaultView?.matchMedia?.(FULLSCREEN_DIALOG_MEDIA) ?? null;\n\t\treturn new FullscreenBlockScrollStrategy(this.overlay.scrollStrategies.block(), media, this.document.documentElement);\n\t}\n\n\t/**\n\t * Public method to close the dialog\n\t * Can be called directly from parent components or child components\n\t */\n\tclose() {\n\t\tif (this.isClosing) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.closeDialog();\n\n\t\t// Ensure opened flag is synchronized and notify listeners that the dialog closed\n\t\tthis.opened.set(false);\n\t\tthis.closed.emit();\n\t}\n\n\t/**\n\t * Plays the exit animation; the CDK dialog is closed when it ends\n\t * @internal\n\t */\n\tprivate closeDialog() {\n\t\tif (!this.dialogRef || this.isClosing) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isClosing = true;\n\t\tthis.animationState.set('closed');\n\t\t// Set directly too: after this component is destroyed (e.g. inside an @if) its signals no longer render\n\t\tthis.dialogRef.overlayRef?.overlayElement?.querySelector('[data-state]')?.setAttribute('data-state', 'closed');\n\t\tthis.dialogRef.overlayRef?.backdropElement?.classList.remove('cdk-overlay-backdrop-showing');\n\t\tthis.closeFallback = setTimeout(() => this.finishClose(), CLOSE_FALLBACK_MS);\n\t}\n\n\t/** @internal Closes the CDK dialog once the exit animation is done */\n\tprivate finishClose() {\n\t\tclearTimeout(this.closeFallback);\n\t\tthis.closeFallback = undefined;\n\t\tthis.dialogRef?.close();\n\t}\n\n\t/**\n\t * Handles animation end events to trigger the actual dialog close\n\t * @internal\n\t */\n\tonAnimationEnd(event: AnimationEvent) {\n\t\tconst target = event.target as HTMLElement;\n\n\t\t// Only handle animations on the main dialog element\n\t\tif (target.hasAttribute('data-state') && this.isClosing) {\n\t\t\tthis.finishClose();\n\t\t}\n\t}\n\n\t/**\n\t * Clean up CDK subscriptions and animate the overlay out when the component is destroyed\n\t */\n\tprivate readonly destroyEffect = this.destroyRef.onDestroy(() => {\n\t\tthis.subs.unsubscribe();\n\t\tthis.closeDialog();\n\t});\n\n\t/**\n\t * Handles the close button click\n\t * @internal\n\t */\n\thandleCloseClick() {\n\t\tthis.close();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t\tthis.close();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle pointer down activation\n\t */\n\thandlePointerDown(event: PointerEvent) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.pointerDown.emit(event);\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.close();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event) {\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.close();\n\t}\n}\n","<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(elementRef.nativeElement)\">\n\t\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t\t<!-- Close button -->\n\t\t\t<div class=\"absolute inset-e-2 top-2\">\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"btn btn-circle btn-ghost btn-sm\"\n\t\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t\t(click)=\"handleClick($event)\"\n\t\t\t\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t\t\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t\t\t\t[attr.aria-label]=\"closeLabel()\"\n\t\t\t\t>\n\t\t\t\t\t<st-icon [icon]=\"iconClose\" />\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<!-- Headings keep clear of the close button -->\n\t\t\t<div class=\"min-w-0 shrink-0 pe-8\" data-st-dialog-heading>\n\t\t\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t\t</div>\n\t\t\t<div [class]=\"contentClass()\" data-st-dialog-body>\n\t\t\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\t\t\t</div>\n\n\t\t\t<!-- Actions stay visible below the scrolling body -->\n\t\t\t<div class=\"flex shrink-0 flex-col pt-4\" data-st-dialog-actions>\n\t\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAYa,sBAAsB,CAAA;AAClC;;;;AAIG;AACH,IAAA,SAAS,GAAG,KAAK,CAA4B,OAAO,CAAC;IAErD,cAAc,GAAG,QAAQ,CAAC,MACzB,EAAE,CAAC,uHAAuH,EAAE;AAC3H,QAAA,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,MAAM;AAC5C,QAAA,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,OAAO;AAC3C,QAAA,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,QAAQ;AAC/C,KAAA,CAAC,CACF;w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|
@@ -479,7 +479,7 @@ class DropdownMenuBarItemComponent {
|
|
|
479
479
|
'menu-active': this.active(),
|
|
480
480
|
}, this.class());
|
|
481
481
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
482
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DropdownMenuBarItemComponent, isStandalone: true, selector: "st-dropdown-menu-bar-item", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, shortcut: { classPropertyName: "shortcut", publicName: "shortcut", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { triggered: "triggered", clicked: "clicked", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace" }, host: { listeners: { "click": "handleClick($event)", "keydown.enter": "handleKeyDownEnter($event)", "keydown.space": "handleKeyDownSpace($event)" } }, hostDirectives: [{ directive: i1.CdkMenuItem, outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: "<li [class]=\"itemClass()\" role=\"none\">\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (shortcut(); as shortcutText) {\n\t\t\t<span class=\"ml-auto text-xs opacity-60\">{{ shortcutText }}</span>\n\t\t}\n\t</a>\n</li>\n" });
|
|
482
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DropdownMenuBarItemComponent, isStandalone: true, selector: "st-dropdown-menu-bar-item", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, shortcut: { classPropertyName: "shortcut", publicName: "shortcut", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { triggered: "triggered", clicked: "clicked", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace" }, host: { listeners: { "click": "handleClick($event)", "keydown.enter": "handleKeyDownEnter($event)", "keydown.space": "handleKeyDownSpace($event)" } }, hostDirectives: [{ directive: i1.CdkMenuItem, inputs: ["cdkMenuItemDisabled", "disabled"], outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: "<li [class]=\"itemClass()\" role=\"none\">\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (shortcut(); as shortcutText) {\n\t\t\t<span class=\"ml-auto text-xs opacity-60\">{{ shortcutText }}</span>\n\t\t}\n\t</a>\n</li>\n" });
|
|
483
483
|
}
|
|
484
484
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarItemComponent, decorators: [{
|
|
485
485
|
type: Component,
|
|
@@ -490,6 +490,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
490
490
|
}, hostDirectives: [
|
|
491
491
|
{
|
|
492
492
|
directive: CdkMenuItem,
|
|
493
|
+
inputs: ['cdkMenuItemDisabled: disabled'],
|
|
493
494
|
outputs: ['cdkMenuItemTriggered: triggered'],
|
|
494
495
|
},
|
|
495
496
|
], template: "<li [class]=\"itemClass()\" role=\"none\">\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (shortcut(); as shortcutText) {\n\t\t\t<span class=\"ml-auto text-xs opacity-60\">{{ shortcutText }}</span>\n\t\t}\n\t</a>\n</li>\n" }]
|