@wirabyte/ui 2.0.0-beta.0 → 2.1.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 +42 -0
- package/README.md +6 -6
- package/avatar/avatar.component.d.ts +4 -2
- package/avatar/avatar.types.d.ts +3 -0
- package/breadcrumb/breadcrumb.component.d.ts +3 -1
- package/button/button.styles.d.ts +1 -1
- package/chat/chat.component.d.ts +118 -0
- package/chat/chat.module.d.ts +8 -0
- package/chat/chat.types.d.ts +64 -0
- package/chat/index.d.ts +5 -0
- package/chat/public-api.d.ts +3 -0
- package/config/options.d.ts +13 -0
- package/config/theme.service.d.ts +5 -0
- package/config/wu-config.service.d.ts +16 -0
- package/core/catalog.d.ts +6 -1
- package/core/overrides.d.ts +7 -0
- package/core/thai/locale.d.ts +47 -0
- package/datepicker/datepicker.component.d.ts +3 -2
- package/descriptions/descriptions.component.d.ts +56 -0
- package/descriptions/descriptions.module.d.ts +8 -0
- package/descriptions/index.d.ts +5 -0
- package/descriptions/public-api.d.ts +2 -0
- package/esm2022/accordion/accordion.component.mjs +4 -4
- package/esm2022/alert/alert-dialog.component.mjs +3 -3
- package/esm2022/asidemenu/asidemenu.component.mjs +3 -3
- package/esm2022/avatar/avatar.component.mjs +11 -5
- package/esm2022/avatar/avatar.types.mjs +2 -2
- package/esm2022/breadcrumb/breadcrumb.component.mjs +5 -3
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/button/button.styles.mjs +2 -2
- package/esm2022/card/card.component.mjs +8 -8
- package/esm2022/chat/chat.component.mjs +370 -0
- package/esm2022/chat/chat.module.mjs +17 -0
- package/esm2022/chat/chat.types.mjs +2 -0
- package/esm2022/chat/public-api.mjs +4 -0
- package/esm2022/chat/wirabyte-ui-chat.mjs +5 -0
- package/esm2022/config/options.mjs +1 -1
- package/esm2022/config/theme.service.mjs +35 -3
- package/esm2022/config/wu-config.service.mjs +22 -1
- package/esm2022/core/catalog.mjs +22 -2
- package/esm2022/core/families.mjs +43 -1
- package/esm2022/core/overrides.mjs +26 -1
- package/esm2022/core/thai/locale.mjs +67 -1
- package/esm2022/datepicker/datepicker.component.mjs +6 -5
- package/esm2022/descriptions/descriptions.component.mjs +112 -0
- package/esm2022/descriptions/descriptions.module.mjs +17 -0
- package/esm2022/descriptions/public-api.mjs +3 -0
- package/esm2022/descriptions/wirabyte-ui-descriptions.mjs +5 -0
- package/esm2022/dialog/dialog.component.mjs +3 -3
- package/esm2022/drawer/drawer.component.mjs +3 -3
- package/esm2022/emptystate/emptystate.component.mjs +3 -3
- package/esm2022/errorpage/errorpage.component.mjs +3 -3
- package/esm2022/fieldset/fieldset.component.mjs +4 -4
- package/esm2022/metergroup/metergroup.component.mjs +19 -5
- package/esm2022/metergroup/metergroup.types.mjs +1 -1
- package/esm2022/navbar/navbar.component.mjs +3 -3
- package/esm2022/panel/panel.component.mjs +6 -6
- package/esm2022/popover/popover.base.mjs +3 -3
- package/esm2022/result/result.component.mjs +3 -3
- package/esm2022/scheduler/public-api.mjs +4 -0
- package/esm2022/scheduler/scheduler.component.mjs +484 -0
- package/esm2022/scheduler/scheduler.module.mjs +17 -0
- package/esm2022/scheduler/scheduler.types.mjs +2 -0
- package/esm2022/scheduler/wirabyte-ui-scheduler.mjs +5 -0
- package/esm2022/selectbutton/selectbutton.component.mjs +25 -4
- package/esm2022/signaturepad/public-api.mjs +3 -0
- package/esm2022/signaturepad/signaturepad.component.mjs +289 -0
- package/esm2022/signaturepad/signaturepad.module.mjs +17 -0
- package/esm2022/signaturepad/wirabyte-ui-signaturepad.mjs +5 -0
- package/esm2022/sitefooter/sitefooter.component.mjs +2 -2
- package/esm2022/stat/public-api.mjs +3 -0
- package/esm2022/stat/stat.component.mjs +128 -0
- package/esm2022/stat/stat.module.mjs +17 -0
- package/esm2022/stat/wirabyte-ui-stat.mjs +5 -0
- package/esm2022/table/table.celleditor.mjs +4 -4
- package/esm2022/tabs/tabs.component.mjs +3 -3
- package/esm2022/tag/tag.component.mjs +2 -2
- package/esm2022/textarea/textarea.directive.mjs +33 -1
- package/esm2022/thai/thai.pipes.mjs +3 -3
- package/esm2022/toolbar/toolbar.component.mjs +7 -7
- package/fesm2022/wirabyte-ui-accordion.mjs +3 -3
- package/fesm2022/wirabyte-ui-accordion.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-alert.mjs +2 -2
- package/fesm2022/wirabyte-ui-alert.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-asidemenu.mjs +2 -2
- package/fesm2022/wirabyte-ui-asidemenu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-avatar.mjs +12 -5
- package/fesm2022/wirabyte-ui-avatar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-breadcrumb.mjs +4 -2
- package/fesm2022/wirabyte-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-button.mjs +3 -3
- package/fesm2022/wirabyte-ui-button.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-card.mjs +7 -7
- package/fesm2022/wirabyte-ui-card.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-chat.mjs +391 -0
- package/fesm2022/wirabyte-ui-chat.mjs.map +1 -0
- package/fesm2022/wirabyte-ui-config.mjs +55 -2
- package/fesm2022/wirabyte-ui-config.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-core.mjs +155 -2
- package/fesm2022/wirabyte-ui-core.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-datepicker.mjs +6 -5
- package/fesm2022/wirabyte-ui-datepicker.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-descriptions.mjs +133 -0
- package/fesm2022/wirabyte-ui-descriptions.mjs.map +1 -0
- package/fesm2022/wirabyte-ui-dialog.mjs +2 -2
- package/fesm2022/wirabyte-ui-dialog.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-drawer.mjs +2 -2
- package/fesm2022/wirabyte-ui-drawer.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-emptystate.mjs +2 -2
- package/fesm2022/wirabyte-ui-emptystate.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-errorpage.mjs +2 -2
- package/fesm2022/wirabyte-ui-errorpage.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-fieldset.mjs +3 -3
- package/fesm2022/wirabyte-ui-fieldset.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-metergroup.mjs +18 -4
- package/fesm2022/wirabyte-ui-metergroup.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-navbar.mjs +2 -2
- package/fesm2022/wirabyte-ui-navbar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-panel.mjs +5 -5
- package/fesm2022/wirabyte-ui-panel.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-popover.mjs +2 -2
- package/fesm2022/wirabyte-ui-popover.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-result.mjs +2 -2
- package/fesm2022/wirabyte-ui-result.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-scheduler.mjs +505 -0
- package/fesm2022/wirabyte-ui-scheduler.mjs.map +1 -0
- package/fesm2022/wirabyte-ui-selectbutton.mjs +24 -3
- package/fesm2022/wirabyte-ui-selectbutton.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-signaturepad.mjs +310 -0
- package/fesm2022/wirabyte-ui-signaturepad.mjs.map +1 -0
- package/fesm2022/wirabyte-ui-sitefooter.mjs +1 -1
- package/fesm2022/wirabyte-ui-sitefooter.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-stat.mjs +149 -0
- package/fesm2022/wirabyte-ui-stat.mjs.map +1 -0
- package/fesm2022/wirabyte-ui-table.mjs +3 -3
- package/fesm2022/wirabyte-ui-table.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-tabs.mjs +2 -2
- package/fesm2022/wirabyte-ui-tabs.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-tag.mjs +2 -2
- package/fesm2022/wirabyte-ui-tag.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-textarea.mjs +32 -0
- package/fesm2022/wirabyte-ui-textarea.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-thai.mjs +2 -2
- package/fesm2022/wirabyte-ui-thai.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-toolbar.mjs +6 -6
- package/fesm2022/wirabyte-ui-toolbar.mjs.map +1 -1
- package/metergroup/metergroup.component.d.ts +11 -2
- package/metergroup/metergroup.types.d.ts +6 -0
- package/package.json +77 -47
- package/scheduler/index.d.ts +5 -0
- package/scheduler/public-api.d.ts +3 -0
- package/scheduler/scheduler.component.d.ts +143 -0
- package/scheduler/scheduler.module.d.ts +8 -0
- package/scheduler/scheduler.types.d.ts +46 -0
- package/schematics/core/catalog.cjs +22 -1
- package/schematics/core/families.cjs +42 -0
- package/schematics/core/overrides.cjs +25 -0
- package/schematics/core/thai/locale.cjs +66 -0
- package/schematics/ng-add/index.cjs +3 -1
- package/selectbutton/selectbutton.component.d.ts +12 -1
- package/signaturepad/index.d.ts +5 -0
- package/signaturepad/public-api.d.ts +2 -0
- package/signaturepad/signaturepad.component.d.ts +98 -0
- package/signaturepad/signaturepad.module.d.ts +8 -0
- package/stat/index.d.ts +5 -0
- package/stat/public-api.d.ts +2 -0
- package/stat/stat.component.d.ts +61 -0
- package/stat/stat.module.d.ts +8 -0
- package/textarea/textarea.directive.d.ts +3 -0
- package/theme/_data.scss +239 -7
- package/theme/_index.scss +29 -0
- package/themes/mali/amber.css +30 -1
- package/themes/mali/blue.css +30 -1
- package/themes/mali/cyan.css +30 -1
- package/themes/mali/emerald.css +30 -1
- package/themes/mali/fuchsia.css +30 -1
- package/themes/mali/green.css +30 -1
- package/themes/mali/indigo.css +30 -1
- package/themes/mali/lime.css +30 -1
- package/themes/mali/orange.css +30 -1
- package/themes/mali/pink.css +30 -1
- package/themes/mali/purple.css +30 -1
- package/themes/mali/red.css +30 -1
- package/themes/mali/rose.css +30 -1
- package/themes/mali/sky.css +30 -1
- package/themes/mali/teal.css +30 -1
- package/themes/mali/theme.css +30 -1
- package/themes/mali/violet.css +30 -1
- package/themes/mali/wira.css +30 -1
- package/themes/mali/yellow.css +30 -1
- package/themes/material/amber.css +30 -1
- package/themes/material/blue.css +30 -1
- package/themes/material/cyan.css +30 -1
- package/themes/material/emerald.css +30 -1
- package/themes/material/fuchsia.css +30 -1
- package/themes/material/green.css +30 -1
- package/themes/material/indigo.css +30 -1
- package/themes/material/lime.css +30 -1
- package/themes/material/orange.css +30 -1
- package/themes/material/pink.css +30 -1
- package/themes/material/purple.css +30 -1
- package/themes/material/red.css +30 -1
- package/themes/material/rose.css +30 -1
- package/themes/material/sky.css +30 -1
- package/themes/material/teal.css +30 -1
- package/themes/material/theme.css +30 -1
- package/themes/material/violet.css +30 -1
- package/themes/material/wira.css +30 -1
- package/themes/material/yellow.css +30 -1
- package/themes/phet/amber.css +30 -1
- package/themes/phet/blue.css +30 -1
- package/themes/phet/cyan.css +30 -1
- package/themes/phet/emerald.css +30 -1
- package/themes/phet/fuchsia.css +30 -1
- package/themes/phet/green.css +30 -1
- package/themes/phet/indigo.css +30 -1
- package/themes/phet/lime.css +30 -1
- package/themes/phet/orange.css +30 -1
- package/themes/phet/pink.css +30 -1
- package/themes/phet/purple.css +30 -1
- package/themes/phet/red.css +30 -1
- package/themes/phet/rose.css +30 -1
- package/themes/phet/sky.css +30 -1
- package/themes/phet/teal.css +30 -1
- package/themes/phet/theme.css +30 -1
- package/themes/phet/violet.css +30 -1
- package/themes/phet/wira.css +30 -1
- package/themes/phet/yellow.css +30 -1
- package/themes/sila/amber.css +30 -1
- package/themes/sila/blue.css +30 -1
- package/themes/sila/cyan.css +30 -1
- package/themes/sila/emerald.css +30 -1
- package/themes/sila/fuchsia.css +30 -1
- package/themes/sila/green.css +30 -1
- package/themes/sila/indigo.css +30 -1
- package/themes/sila/lime.css +30 -1
- package/themes/sila/orange.css +30 -1
- package/themes/sila/pink.css +30 -1
- package/themes/sila/purple.css +30 -1
- package/themes/sila/red.css +30 -1
- package/themes/sila/rose.css +30 -1
- package/themes/sila/sky.css +30 -1
- package/themes/sila/teal.css +30 -1
- package/themes/sila/theme.css +30 -1
- package/themes/sila/violet.css +30 -1
- package/themes/sila/wira.css +30 -1
- package/themes/sila/yellow.css +30 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { NgFor, NgIf, NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { ViewChild, Input, ChangeDetectionStrategy, ViewEncapsulation, Component, inject, ContentChildren, NgModule } from '@angular/core';
|
|
4
|
+
import { ɵtoBool as _toBool, WuConfig, ɵassertSupportedAngular as _assertSupportedAngular, ɵWU_SKIP_VERSION_CHECK as _WU_SKIP_VERSION_CHECK } from '@wirabyte/ui/config';
|
|
5
|
+
|
|
6
|
+
const toInt = (v, fallback) => {
|
|
7
|
+
const n = Math.floor(Number(v));
|
|
8
|
+
return Number.isFinite(n) && n > 0 ? n : fallback;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* One label and its value inside `wu-descriptions`: `<wu-descriptions-item label="สถานะ"><wu-tag …></wu-tag></wu-descriptions-item>`.
|
|
12
|
+
* Whatever is inside the tag is the value.
|
|
13
|
+
*/
|
|
14
|
+
class WuDescriptionsItem {
|
|
15
|
+
constructor() {
|
|
16
|
+
this._span = 1;
|
|
17
|
+
}
|
|
18
|
+
/** How many columns the item takes. Default 1. */
|
|
19
|
+
set span(v) { this._span = toInt(v, 1); }
|
|
20
|
+
get span() { return this._span; }
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuDescriptionsItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WuDescriptionsItem, isStandalone: true, selector: "wu-descriptions-item, wu-descriptionsItem", inputs: { label: "label", span: "span" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }], ngImport: i0, template: '<ng-template #content><ng-content></ng-content></ng-template>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
23
|
+
}
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuDescriptionsItem, decorators: [{
|
|
25
|
+
type: Component,
|
|
26
|
+
args: [{
|
|
27
|
+
selector: 'wu-descriptions-item, wu-descriptionsItem',
|
|
28
|
+
standalone: true,
|
|
29
|
+
template: '<ng-template #content><ng-content></ng-content></ng-template>',
|
|
30
|
+
encapsulation: ViewEncapsulation.None,
|
|
31
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
32
|
+
}]
|
|
33
|
+
}], propDecorators: { label: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}], span: [{
|
|
36
|
+
type: Input
|
|
37
|
+
}], content: [{
|
|
38
|
+
type: ViewChild,
|
|
39
|
+
args: ['content', { static: true }]
|
|
40
|
+
}] } });
|
|
41
|
+
/**
|
|
42
|
+
* Facts as label and value pairs, in columns: `<wu-descriptions [columns]="2" title="ข้อมูล Ticket">` with
|
|
43
|
+
* `<wu-descriptions-item label="…">` inside, or `[items]="[{ label, value }]"`. `layout="vertical"` puts each label
|
|
44
|
+
* above its value; `bordered` draws a table of cells. The columns fold into one when its box is too narrow for them.
|
|
45
|
+
*/
|
|
46
|
+
class WuDescriptions {
|
|
47
|
+
/** Columns on a wide box. Default 1. */
|
|
48
|
+
set columns(v) { this._columns = toInt(v, 1); }
|
|
49
|
+
get columns() { return this._columns; }
|
|
50
|
+
/** Cells with borders and a tinted label column. */
|
|
51
|
+
set bordered(v) { this._bordered = _toBool(v); }
|
|
52
|
+
get bordered() { return this._bordered; }
|
|
53
|
+
constructor() {
|
|
54
|
+
/** `'horizontal'` (default): label beside value. `'vertical'`: label above value. */
|
|
55
|
+
this.layout = 'horizontal';
|
|
56
|
+
/** `'small'` tightens the spacing. */
|
|
57
|
+
this.size = 'normal';
|
|
58
|
+
this._columns = 1;
|
|
59
|
+
this._bordered = false;
|
|
60
|
+
this.config = inject(WuConfig);
|
|
61
|
+
_assertSupportedAngular(inject(_WU_SKIP_VERSION_CHECK, { optional: true }));
|
|
62
|
+
}
|
|
63
|
+
get rootClass() {
|
|
64
|
+
return [
|
|
65
|
+
'wu-descriptions',
|
|
66
|
+
this.layout === 'vertical' ? 'wu-descriptions-vertical' : 'wu-descriptions-horizontal',
|
|
67
|
+
this._bordered ? 'wu-descriptions-bordered' : '',
|
|
68
|
+
this.size === 'small' ? 'wu-descriptions-sm' : '',
|
|
69
|
+
this.styleClass || '',
|
|
70
|
+
]
|
|
71
|
+
.filter(Boolean)
|
|
72
|
+
.join(' ');
|
|
73
|
+
}
|
|
74
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
75
|
+
get rootStyle() {
|
|
76
|
+
const own = this.style && typeof this.style === 'object' ? this.style : {};
|
|
77
|
+
return { ...own, '--_cols': String(this._columns) };
|
|
78
|
+
}
|
|
79
|
+
spanOf(span) {
|
|
80
|
+
return `span ${Math.min(toInt(span, 1), this._columns)}`;
|
|
81
|
+
}
|
|
82
|
+
valueText(v) {
|
|
83
|
+
if (v === null || v === undefined || v === '')
|
|
84
|
+
return '–';
|
|
85
|
+
return typeof v === 'number' ? v.toLocaleString(this.config.translation.code === 'th' ? 'th-TH' : 'en-US') : String(v);
|
|
86
|
+
}
|
|
87
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuDescriptions, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
88
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WuDescriptions, isStandalone: true, selector: "wu-descriptions", inputs: { title: "title", items: "items", columns: "columns", layout: "layout", bordered: "bordered", size: "size", styleClass: "styleClass", style: "style" }, host: { properties: { "attr.title": "null" }, classAttribute: "wu-descriptions-host" }, queries: [{ propertyName: "children", predicate: WuDescriptionsItem }], ngImport: i0, template: "<section [class]=\"rootClass\" [style]=\"rootStyle\">\n <h3 *ngIf=\"title\" class=\"wu-descriptions-title\">{{ title }}</h3>\n <dl class=\"wu-descriptions-list\">\n <div *ngFor=\"let item of items || []\" class=\"wu-descriptions-item\" [style.grid-column]=\"spanOf(item.span)\">\n <dt class=\"wu-descriptions-label\">{{ item.label }}</dt>\n <dd class=\"wu-descriptions-value\">{{ valueText(item.value) }}</dd>\n </div>\n <div *ngFor=\"let item of children\" class=\"wu-descriptions-item\" [style.grid-column]=\"spanOf(item.span)\">\n <dt class=\"wu-descriptions-label\">{{ item.label }}</dt>\n <dd class=\"wu-descriptions-value\"><ng-container *ngTemplateOutlet=\"item.content\"></ng-container></dd>\n </div>\n </dl>\n</section>\n", styles: ["@layer wiraui.components{wu-descriptions{display:block;min-width:0}wu-descriptions-item,wu-descriptionsItem{display:none}.wu-descriptions{container-type:inline-size;color:var(--wu-text);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-descriptions-title{margin:0 0 .75rem;font-family:var(--wu-heading-font-family);font-size:1rem;font-weight:600}.wu-descriptions-list{display:grid;grid-template-columns:repeat(var(--_cols, 1),minmax(0,1fr));gap:var(--wu-descriptions-gap);margin:0}.wu-descriptions-item{display:grid;grid-template-columns:var(--wu-descriptions-label-width) minmax(0,1fr);gap:.25rem 1rem;align-items:baseline;min-width:0}.wu-descriptions-label{color:var(--wu-descriptions-label-color);font-weight:var(--wu-descriptions-label-weight);overflow-wrap:anywhere}.wu-descriptions-value{min-width:0;margin:0;overflow-wrap:anywhere}.wu-descriptions-vertical .wu-descriptions-item{grid-template-columns:minmax(0,1fr);gap:.125rem}.wu-descriptions-vertical .wu-descriptions-label{font-size:.875em}.wu-descriptions-sm .wu-descriptions-list{gap:.375rem 1rem}.wu-descriptions-bordered .wu-descriptions-list{gap:1px;overflow:hidden;border:1px solid var(--wu-border);border-radius:var(--wu-radius-md);background:var(--wu-border)}.wu-descriptions-bordered .wu-descriptions-item{gap:0;align-items:stretch;background:var(--wu-card-bg)}.wu-descriptions-bordered.wu-descriptions-horizontal .wu-descriptions-label{border-inline-end:1px solid var(--wu-border)}.wu-descriptions-bordered.wu-descriptions-vertical .wu-descriptions-label{border-bottom:1px solid var(--wu-border)}.wu-descriptions-bordered .wu-descriptions-label,.wu-descriptions-bordered .wu-descriptions-value{padding:.625rem .875rem}.wu-descriptions-bordered.wu-descriptions-sm .wu-descriptions-label,.wu-descriptions-bordered.wu-descriptions-sm .wu-descriptions-value{padding:.375rem .625rem}.wu-descriptions-bordered .wu-descriptions-label{background:var(--wu-descriptions-bordered-label-bg)}@container (max-width: 36rem){.wu-descriptions-list{grid-template-columns:minmax(0,1fr)}.wu-descriptions-item{grid-column:auto!important}}@container (max-width: 22rem){.wu-descriptions-horizontal .wu-descriptions-item{grid-template-columns:minmax(0,1fr);gap:.125rem}}}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
89
|
+
}
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuDescriptions, decorators: [{
|
|
91
|
+
type: Component,
|
|
92
|
+
args: [{ selector: 'wu-descriptions', standalone: true, imports: [NgFor, NgIf, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'wu-descriptions-host', '[attr.title]': 'null' }, template: "<section [class]=\"rootClass\" [style]=\"rootStyle\">\n <h3 *ngIf=\"title\" class=\"wu-descriptions-title\">{{ title }}</h3>\n <dl class=\"wu-descriptions-list\">\n <div *ngFor=\"let item of items || []\" class=\"wu-descriptions-item\" [style.grid-column]=\"spanOf(item.span)\">\n <dt class=\"wu-descriptions-label\">{{ item.label }}</dt>\n <dd class=\"wu-descriptions-value\">{{ valueText(item.value) }}</dd>\n </div>\n <div *ngFor=\"let item of children\" class=\"wu-descriptions-item\" [style.grid-column]=\"spanOf(item.span)\">\n <dt class=\"wu-descriptions-label\">{{ item.label }}</dt>\n <dd class=\"wu-descriptions-value\"><ng-container *ngTemplateOutlet=\"item.content\"></ng-container></dd>\n </div>\n </dl>\n</section>\n", styles: ["@layer wiraui.components{wu-descriptions{display:block;min-width:0}wu-descriptions-item,wu-descriptionsItem{display:none}.wu-descriptions{container-type:inline-size;color:var(--wu-text);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-descriptions-title{margin:0 0 .75rem;font-family:var(--wu-heading-font-family);font-size:1rem;font-weight:600}.wu-descriptions-list{display:grid;grid-template-columns:repeat(var(--_cols, 1),minmax(0,1fr));gap:var(--wu-descriptions-gap);margin:0}.wu-descriptions-item{display:grid;grid-template-columns:var(--wu-descriptions-label-width) minmax(0,1fr);gap:.25rem 1rem;align-items:baseline;min-width:0}.wu-descriptions-label{color:var(--wu-descriptions-label-color);font-weight:var(--wu-descriptions-label-weight);overflow-wrap:anywhere}.wu-descriptions-value{min-width:0;margin:0;overflow-wrap:anywhere}.wu-descriptions-vertical .wu-descriptions-item{grid-template-columns:minmax(0,1fr);gap:.125rem}.wu-descriptions-vertical .wu-descriptions-label{font-size:.875em}.wu-descriptions-sm .wu-descriptions-list{gap:.375rem 1rem}.wu-descriptions-bordered .wu-descriptions-list{gap:1px;overflow:hidden;border:1px solid var(--wu-border);border-radius:var(--wu-radius-md);background:var(--wu-border)}.wu-descriptions-bordered .wu-descriptions-item{gap:0;align-items:stretch;background:var(--wu-card-bg)}.wu-descriptions-bordered.wu-descriptions-horizontal .wu-descriptions-label{border-inline-end:1px solid var(--wu-border)}.wu-descriptions-bordered.wu-descriptions-vertical .wu-descriptions-label{border-bottom:1px solid var(--wu-border)}.wu-descriptions-bordered .wu-descriptions-label,.wu-descriptions-bordered .wu-descriptions-value{padding:.625rem .875rem}.wu-descriptions-bordered.wu-descriptions-sm .wu-descriptions-label,.wu-descriptions-bordered.wu-descriptions-sm .wu-descriptions-value{padding:.375rem .625rem}.wu-descriptions-bordered .wu-descriptions-label{background:var(--wu-descriptions-bordered-label-bg)}@container (max-width: 36rem){.wu-descriptions-list{grid-template-columns:minmax(0,1fr)}.wu-descriptions-item{grid-column:auto!important}}@container (max-width: 22rem){.wu-descriptions-horizontal .wu-descriptions-item{grid-template-columns:minmax(0,1fr);gap:.125rem}}}\n"] }]
|
|
93
|
+
}], ctorParameters: () => [], propDecorators: { title: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}], items: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}], columns: [{
|
|
98
|
+
type: Input
|
|
99
|
+
}], layout: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}], bordered: [{
|
|
102
|
+
type: Input
|
|
103
|
+
}], size: [{
|
|
104
|
+
type: Input
|
|
105
|
+
}], styleClass: [{
|
|
106
|
+
type: Input
|
|
107
|
+
}], style: [{
|
|
108
|
+
type: Input
|
|
109
|
+
}], children: [{
|
|
110
|
+
type: ContentChildren,
|
|
111
|
+
args: [WuDescriptionsItem]
|
|
112
|
+
}] } });
|
|
113
|
+
|
|
114
|
+
/** For NgModule apps. Standalone apps can import `WuDescriptions` and `WuDescriptionsItem` directly. */
|
|
115
|
+
class WuDescriptionsModule {
|
|
116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuDescriptionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
117
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: WuDescriptionsModule, imports: [WuDescriptions, WuDescriptionsItem], exports: [WuDescriptions, WuDescriptionsItem] }); }
|
|
118
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuDescriptionsModule }); }
|
|
119
|
+
}
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuDescriptionsModule, decorators: [{
|
|
121
|
+
type: NgModule,
|
|
122
|
+
args: [{
|
|
123
|
+
imports: [WuDescriptions, WuDescriptionsItem],
|
|
124
|
+
exports: [WuDescriptions, WuDescriptionsItem],
|
|
125
|
+
}]
|
|
126
|
+
}] });
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Generated bundle index. Do not edit.
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
export { WuDescriptions, WuDescriptionsItem, WuDescriptionsModule };
|
|
133
|
+
//# sourceMappingURL=wirabyte-ui-descriptions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-descriptions.mjs","sources":["../../lib/descriptions/descriptions.component.ts","../../lib/descriptions/descriptions.component.html","../../lib/descriptions/descriptions.module.ts","../../lib/descriptions/wirabyte-ui-descriptions.ts"],"sourcesContent":["import { NgFor, NgIf, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n inject,\n Input,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ɵassertSupportedAngular, ɵtoBool, ɵWU_SKIP_VERSION_CHECK, WuConfig } from '@wirabyte/ui/config';\n\n/** One row of `[items]`: `{ label: 'สถานะ', value: 'กำลังดำเนินการ', span: 2 }`. */\nexport interface WuDescriptionsEntry {\n label: string;\n value?: string | number | null;\n /** How many columns the item takes. Default 1. */\n span?: number;\n}\n\nconst toInt = (v: unknown, fallback: number): number => {\n const n = Math.floor(Number(v));\n return Number.isFinite(n) && n > 0 ? n : fallback;\n};\n\n/**\n * One label and its value inside `wu-descriptions`: `<wu-descriptions-item label=\"สถานะ\"><wu-tag …></wu-tag></wu-descriptions-item>`.\n * Whatever is inside the tag is the value.\n */\n@Component({\n selector: 'wu-descriptions-item, wu-descriptionsItem',\n standalone: true,\n template: '<ng-template #content><ng-content></ng-content></ng-template>',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuDescriptionsItem {\n @Input() label?: string | null;\n /** How many columns the item takes. Default 1. */\n @Input() set span(v: unknown) { this._span = toInt(v, 1); }\n get span(): number { return this._span; }\n @ViewChild('content', { static: true }) content!: TemplateRef<unknown>;\n private _span = 1;\n}\n\n/**\n * Facts as label and value pairs, in columns: `<wu-descriptions [columns]=\"2\" title=\"ข้อมูล Ticket\">` with\n * `<wu-descriptions-item label=\"…\">` inside, or `[items]=\"[{ label, value }]\"`. `layout=\"vertical\"` puts each label\n * above its value; `bordered` draws a table of cells. The columns fold into one when its box is too narrow for them.\n */\n@Component({\n selector: 'wu-descriptions',\n standalone: true,\n imports: [NgFor, NgIf, NgTemplateOutlet],\n templateUrl: './descriptions.component.html',\n styleUrls: ['./descriptions.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'wu-descriptions-host', '[attr.title]': 'null' },\n})\nexport class WuDescriptions {\n /** A heading over the list. */\n @Input() title?: string | null;\n @Input() items?: WuDescriptionsEntry[] | null;\n /** Columns on a wide box. Default 1. */\n @Input() set columns(v: unknown) { this._columns = toInt(v, 1); }\n get columns(): number { return this._columns; }\n /** `'horizontal'` (default): label beside value. `'vertical'`: label above value. */\n @Input() layout: 'horizontal' | 'vertical' | null | undefined = 'horizontal';\n /** Cells with borders and a tinted label column. */\n @Input() set bordered(v: unknown) { this._bordered = ɵtoBool(v); }\n get bordered(): boolean { return this._bordered; }\n /** `'small'` tightens the spacing. */\n @Input() size: 'small' | 'normal' | null | undefined = 'normal';\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n\n @ContentChildren(WuDescriptionsItem) protected children?: QueryList<WuDescriptionsItem>;\n\n private _columns = 1;\n private _bordered = false;\n private readonly config = inject(WuConfig);\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n get rootClass(): string {\n return [\n 'wu-descriptions',\n this.layout === 'vertical' ? 'wu-descriptions-vertical' : 'wu-descriptions-horizontal',\n this._bordered ? 'wu-descriptions-bordered' : '',\n this.size === 'small' ? 'wu-descriptions-sm' : '',\n this.styleClass || '',\n ]\n .filter(Boolean)\n .join(' ');\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> {\n const own = this.style && typeof this.style === 'object' ? this.style : {};\n return { ...own, '--_cols': String(this._columns) };\n }\n spanOf(span: number | undefined): string {\n return `span ${Math.min(toInt(span, 1), this._columns)}`;\n }\n valueText(v: unknown): string {\n if (v === null || v === undefined || v === '') return '–';\n return typeof v === 'number' ? v.toLocaleString(this.config.translation.code === 'th' ? 'th-TH' : 'en-US') : String(v);\n }\n}\n","<section [class]=\"rootClass\" [style]=\"rootStyle\">\n <h3 *ngIf=\"title\" class=\"wu-descriptions-title\">{{ title }}</h3>\n <dl class=\"wu-descriptions-list\">\n <div *ngFor=\"let item of items || []\" class=\"wu-descriptions-item\" [style.grid-column]=\"spanOf(item.span)\">\n <dt class=\"wu-descriptions-label\">{{ item.label }}</dt>\n <dd class=\"wu-descriptions-value\">{{ valueText(item.value) }}</dd>\n </div>\n <div *ngFor=\"let item of children\" class=\"wu-descriptions-item\" [style.grid-column]=\"spanOf(item.span)\">\n <dt class=\"wu-descriptions-label\">{{ item.label }}</dt>\n <dd class=\"wu-descriptions-value\"><ng-container *ngTemplateOutlet=\"item.content\"></ng-container></dd>\n </div>\n </dl>\n</section>\n","import { NgModule } from '@angular/core';\nimport { WuDescriptions, WuDescriptionsItem } from './descriptions.component';\n\n/** For NgModule apps. Standalone apps can import `WuDescriptions` and `WuDescriptionsItem` directly. */\n@NgModule({\n imports: [WuDescriptions, WuDescriptionsItem],\n exports: [WuDescriptions, WuDescriptionsItem],\n})\nexport class WuDescriptionsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵtoBool","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK"],"mappings":";;;;;AAsBA,MAAM,KAAK,GAAG,CAAC,CAAU,EAAE,QAAgB,KAAY;IACrD,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC/B,IAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,QAAQ;AACnD,CAAC;AAED;;;AAGG;MAQU,kBAAkB,CAAA;AAP/B,IAAA,WAAA,GAAA;QAaU,IAAA,CAAA,KAAK,GAAG,CAAC;AAClB,IAAA;;AAJC,IAAA,IAAa,IAAI,CAAC,CAAU,EAAA,EAAI,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1D,IAAI,IAAI,KAAa,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;+GAJ7B,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,iQAJnB,+DAA+D,EAAA,QAAA,EAAA,IAAA,EAAA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@@ -440,11 +440,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
440
440
|
*/
|
|
441
441
|
class WuDialog extends ɵWuDialogBase {
|
|
442
442
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuDialog, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
443
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: WuDialog, isStandalone: true, selector: "wu-dialog", usesInheritance: true, ngImport: i0, template: "@if (rendered) {\n <dialog\n #mask\n class=\"wu-dialog-mask p-dialog-mask p-overlay-mask p-overlay-mask-enter\"\n [ngClass]=\"(maskStyleClass || '') + ' ' + positionClasses\"\n [class.wu-dialog-modal]=\"modal\"\n [class.wu-dialog-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div\n #panel\n tabindex=\"-1\"\n class=\"wu-dialog p-dialog p-component\"\n [ngClass]=\"styleClass || ''\"\n [ngStyle]=\"panelStyle\"\n [class.wu-dialog-maximized]=\"maximized\"\n [class.p-dialog-maximized]=\"maximized\"\n [class.wu-dialog-draggable]=\"draggable\"\n [class.wu-dialog-headerless]=\"!showHeader\"\n >\n @if (headlessTemplate) {\n <ng-container [ngTemplateOutlet]=\"headlessTemplate\"></ng-container>\n } @else {\n @if (showHeader) {\n <div class=\"wu-dialog-header p-dialog-header\" (pointerdown)=\"headerPointerdown($event)\">\n @if (headerTemplate) {\n <div class=\"wu-dialog-title p-dialog-title\" [id]=\"titleId\"><ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container></div>\n } @else {\n <span class=\"wu-dialog-title p-dialog-title\" [id]=\"titleId\">{{ header }}</span>\n }\n <div class=\"wu-dialog-header-actions p-dialog-header-actions\">\n @if (maximizable) {\n <button type=\"button\" class=\"wu-dialog-icon p-dialog-maximize-button\" [attr.aria-label]=\"maximized ? t.collapse : t.expand\" (click)=\"toggleMaximize()\">\n @if (maximized ? minimizeIcon : maximizeIcon) {\n <i [class]=\"(maximized ? minimizeIcon : maximizeIcon) || ''\"></i>\n } @else if (maximized) {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M13.5 2.5 9 7M9 3v4h4M2.5 13.5 7 9M7 13V9H3\"></path></svg>\n } @else {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9\"></path></svg>\n }\n </button>\n }\n @if (closable) {\n <button type=\"button\" class=\"wu-dialog-icon p-dialog-close-button\" [attr.aria-label]=\"closeAriaLabel || t.close\" (click)=\"close($event)\">\n @if (closeIconTemplate) {\n <ng-container [ngTemplateOutlet]=\"closeIconTemplate\"></ng-container>\n } @else if (closeIcon) {\n <i [class]=\"closeIcon\"></i>\n } @else {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n }\n </button>\n }\n </div>\n </div>\n }\n <div class=\"wu-dialog-content p-dialog-content\" [ngClass]=\"contentStyleClass || ''\" [ngStyle]=\"contentStyle || null\">\n <ng-content></ng-content>\n @if (contentTemplate) {\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n }\n </div>\n @if (hasFooter) {\n <div class=\"wu-dialog-footer p-dialog-footer\">\n <ng-content select=\"[wuDialogFooter], wu-footer\"></ng-content>\n @if (footerTemplate) {\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n }\n </div>\n }\n }\n </div>\n </dialog>\n}\n", styles: ["@layer wiraui.components{wu-dialog{display:contents}.wu-dialog-mask:where([open]){position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;color:var(--wu-text);overflow:hidden;overscroll-behavior:contain}.wu-dialog-mask::backdrop{background:var(--wu-mask);animation:wu-dialog-fade .15s ease-out}.wu-dialog-mask.wu-dialog-leaving::backdrop{opacity:0;transition:opacity .12s ease-in}.wu-dialog-mask[open]:not(.wu-dialog-modal){z-index:1100;pointer-events:none}.wu-dialog-mask:not(.wu-dialog-modal) .wu-dialog{pointer-events:auto}.wu-dialog-top{align-items:flex-start}.wu-dialog-bottom{align-items:flex-end}.wu-dialog-left{justify-content:flex-start}.wu-dialog-right{justify-content:flex-end}.wu-dialog-topleft{align-items:flex-start;justify-content:flex-start}.wu-dialog-topright{align-items:flex-start;justify-content:flex-end}.wu-dialog-bottomleft{align-items:flex-end;justify-content:flex-start}.wu-dialog-bottomright{align-items:flex-end;justify-content:flex-end}.wu-dialog{position:relative;display:flex;flex-direction:column;box-sizing:border-box;max-width:100%;max-height:100%;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-dialog-radius);background:var(--wu-dialog-bg);-webkit-backdrop-filter:var(--wu-overlay-backdrop);backdrop-filter:var(--wu-overlay-backdrop);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);animation:wu-dialog-in .15s ease-out}.wu-dialog *,.wu-dialog *:before,.wu-dialog *:after{box-sizing:border-box}.wu-dialog-leaving .wu-dialog{opacity:0;transform:scale(.97);transition:opacity .12s ease-in,transform .12s ease-in}.wu-dialog-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.5rem;padding:var(--wu-dialog-header-padding);border-bottom:var(--wu-dialog-divider) solid var(--wu-border)}.wu-dialog-draggable .wu-dialog-header{cursor:move;touch-action:none}.wu-dialog-title{min-width:0;margin:0;font-size:var(--wu-dialog-title-size);font-weight:var(--wu-dialog-title-weight);line-height:1.3;overflow-wrap:anywhere}.wu-dialog-header-actions{display:flex;flex:none;align-items:center;gap:.25rem;margin-left:auto}.wu-dialog-icon{display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer;touch-action:manipulation;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-dialog-icon:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-dialog-icon:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-dialog-icon svg{width:1rem;height:1rem}.wu-dialog-content{flex:1 1 auto;min-height:0;padding:var(--wu-dialog-content-padding);overflow-y:auto;overscroll-behavior:contain}.wu-dialog-headerless .wu-dialog-content{padding-top:var(--wu-dialog-header-padding)}.wu-dialog-footer{display:flex;flex:none;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem;padding:var(--wu-dialog-footer-padding);border-top:var(--wu-dialog-divider) solid var(--wu-border)}.wu-dialog-footer>:is([wuDialogFooter],wu-footer){display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem}.wu-dialog-maximized{width:100%!important;min-width:0!important;max-width:none!important;height:100%;border-radius:0}.wu-dialog-mask[open]:has(.wu-dialog-maximized){padding:0}@media (max-width: 575.98px){.wu-dialog-mask[open]{padding:.75rem}.wu-dialog:not(.wu-dialog-maximized){width:100%!important;min-width:0!important;max-width:100%!important}}@keyframes wu-dialog-in{0%{opacity:0;transform:scale(.97)}}@keyframes wu-dialog-fade{0%{opacity:0}}@media (prefers-reduced-motion: reduce){.wu-dialog,.wu-dialog-mask::backdrop{animation:none}.wu-dialog-leaving .wu-dialog{transition:none}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
443
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: WuDialog, isStandalone: true, selector: "wu-dialog", usesInheritance: true, ngImport: i0, template: "@if (rendered) {\n <dialog\n #mask\n class=\"wu-dialog-mask p-dialog-mask p-overlay-mask p-overlay-mask-enter\"\n [ngClass]=\"(maskStyleClass || '') + ' ' + positionClasses\"\n [class.wu-dialog-modal]=\"modal\"\n [class.wu-dialog-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div\n #panel\n tabindex=\"-1\"\n class=\"wu-dialog p-dialog p-component\"\n [ngClass]=\"styleClass || ''\"\n [ngStyle]=\"panelStyle\"\n [class.wu-dialog-maximized]=\"maximized\"\n [class.p-dialog-maximized]=\"maximized\"\n [class.wu-dialog-draggable]=\"draggable\"\n [class.wu-dialog-headerless]=\"!showHeader\"\n >\n @if (headlessTemplate) {\n <ng-container [ngTemplateOutlet]=\"headlessTemplate\"></ng-container>\n } @else {\n @if (showHeader) {\n <div class=\"wu-dialog-header p-dialog-header\" (pointerdown)=\"headerPointerdown($event)\">\n @if (headerTemplate) {\n <div class=\"wu-dialog-title p-dialog-title\" [id]=\"titleId\"><ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container></div>\n } @else {\n <span class=\"wu-dialog-title p-dialog-title\" [id]=\"titleId\">{{ header }}</span>\n }\n <div class=\"wu-dialog-header-actions p-dialog-header-actions\">\n @if (maximizable) {\n <button type=\"button\" class=\"wu-dialog-icon p-dialog-maximize-button\" [attr.aria-label]=\"maximized ? t.collapse : t.expand\" (click)=\"toggleMaximize()\">\n @if (maximized ? minimizeIcon : maximizeIcon) {\n <i [class]=\"(maximized ? minimizeIcon : maximizeIcon) || ''\"></i>\n } @else if (maximized) {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M13.5 2.5 9 7M9 3v4h4M2.5 13.5 7 9M7 13V9H3\"></path></svg>\n } @else {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9\"></path></svg>\n }\n </button>\n }\n @if (closable) {\n <button type=\"button\" class=\"wu-dialog-icon p-dialog-close-button\" [attr.aria-label]=\"closeAriaLabel || t.close\" (click)=\"close($event)\">\n @if (closeIconTemplate) {\n <ng-container [ngTemplateOutlet]=\"closeIconTemplate\"></ng-container>\n } @else if (closeIcon) {\n <i [class]=\"closeIcon\"></i>\n } @else {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n }\n </button>\n }\n </div>\n </div>\n }\n <div class=\"wu-dialog-content p-dialog-content\" [ngClass]=\"contentStyleClass || ''\" [ngStyle]=\"contentStyle || null\">\n <ng-content></ng-content>\n @if (contentTemplate) {\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n }\n </div>\n @if (hasFooter) {\n <div class=\"wu-dialog-footer p-dialog-footer\">\n <ng-content select=\"[wuDialogFooter], wu-footer\"></ng-content>\n @if (footerTemplate) {\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n }\n </div>\n }\n }\n </div>\n </dialog>\n}\n", styles: ["@layer wiraui.components{wu-dialog{display:contents}.wu-dialog-mask:where([open]){position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;color:var(--wu-text);overflow:hidden;overscroll-behavior:contain}.wu-dialog-mask::backdrop{background:var(--wu-mask);animation:wu-dialog-fade .15s ease-out}.wu-dialog-mask.wu-dialog-leaving::backdrop{opacity:0;transition:opacity .12s ease-in}.wu-dialog-mask[open]:not(.wu-dialog-modal){z-index:1100;pointer-events:none}.wu-dialog-mask:not(.wu-dialog-modal) .wu-dialog{pointer-events:auto}.wu-dialog-top{align-items:flex-start}.wu-dialog-bottom{align-items:flex-end}.wu-dialog-left{justify-content:flex-start}.wu-dialog-right{justify-content:flex-end}.wu-dialog-topleft{align-items:flex-start;justify-content:flex-start}.wu-dialog-topright{align-items:flex-start;justify-content:flex-end}.wu-dialog-bottomleft{align-items:flex-end;justify-content:flex-start}.wu-dialog-bottomright{align-items:flex-end;justify-content:flex-end}.wu-dialog{position:relative;display:flex;flex-direction:column;box-sizing:border-box;max-width:100%;max-height:100%;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-dialog-radius);background:var(--wu-dialog-bg);-webkit-backdrop-filter:var(--wu-overlay-backdrop);backdrop-filter:var(--wu-overlay-backdrop);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);animation:wu-dialog-in .15s ease-out}.wu-dialog *,.wu-dialog *:before,.wu-dialog *:after{box-sizing:border-box}.wu-dialog-leaving .wu-dialog{opacity:0;transform:scale(.97);transition:opacity .12s ease-in,transform .12s ease-in}.wu-dialog-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.5rem;padding:var(--wu-dialog-header-padding);border-bottom:var(--wu-dialog-divider) solid var(--wu-border)}.wu-dialog-draggable .wu-dialog-header{cursor:move;touch-action:none}.wu-dialog-title{font-family:var(--wu-heading-font-family);min-width:0;margin:0;font-size:var(--wu-dialog-title-size);font-weight:var(--wu-dialog-title-weight);line-height:1.3;overflow-wrap:anywhere}.wu-dialog-header-actions{display:flex;flex:none;align-items:center;gap:.25rem;margin-left:auto}.wu-dialog-icon{display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer;touch-action:manipulation;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-dialog-icon:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-dialog-icon:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-dialog-icon svg{width:1rem;height:1rem}.wu-dialog-content{flex:1 1 auto;min-height:0;padding:var(--wu-dialog-content-padding);overflow-y:auto;overscroll-behavior:contain}.wu-dialog-headerless .wu-dialog-content{padding-top:var(--wu-dialog-header-padding)}.wu-dialog-footer{display:flex;flex:none;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem;padding:var(--wu-dialog-footer-padding);border-top:var(--wu-dialog-divider) solid var(--wu-border)}.wu-dialog-footer>:is([wuDialogFooter],wu-footer){display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem}.wu-dialog-maximized{width:100%!important;min-width:0!important;max-width:none!important;height:100%;border-radius:0}.wu-dialog-mask[open]:has(.wu-dialog-maximized){padding:0}@media (max-width: 575.98px){.wu-dialog-mask[open]{padding:.75rem}.wu-dialog:not(.wu-dialog-maximized){width:100%!important;min-width:0!important;max-width:100%!important}}@keyframes wu-dialog-in{0%{opacity:0;transform:scale(.97)}}@keyframes wu-dialog-fade{0%{opacity:0}}@media (prefers-reduced-motion: reduce){.wu-dialog,.wu-dialog-mask::backdrop{animation:none}.wu-dialog-leaving .wu-dialog{transition:none}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
444
444
|
}
|
|
445
445
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuDialog, decorators: [{
|
|
446
446
|
type: Component,
|
|
447
|
-
args: [{ selector: 'wu-dialog', standalone: true, imports: [NgClass, NgStyle, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (rendered) {\n <dialog\n #mask\n class=\"wu-dialog-mask p-dialog-mask p-overlay-mask p-overlay-mask-enter\"\n [ngClass]=\"(maskStyleClass || '') + ' ' + positionClasses\"\n [class.wu-dialog-modal]=\"modal\"\n [class.wu-dialog-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div\n #panel\n tabindex=\"-1\"\n class=\"wu-dialog p-dialog p-component\"\n [ngClass]=\"styleClass || ''\"\n [ngStyle]=\"panelStyle\"\n [class.wu-dialog-maximized]=\"maximized\"\n [class.p-dialog-maximized]=\"maximized\"\n [class.wu-dialog-draggable]=\"draggable\"\n [class.wu-dialog-headerless]=\"!showHeader\"\n >\n @if (headlessTemplate) {\n <ng-container [ngTemplateOutlet]=\"headlessTemplate\"></ng-container>\n } @else {\n @if (showHeader) {\n <div class=\"wu-dialog-header p-dialog-header\" (pointerdown)=\"headerPointerdown($event)\">\n @if (headerTemplate) {\n <div class=\"wu-dialog-title p-dialog-title\" [id]=\"titleId\"><ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container></div>\n } @else {\n <span class=\"wu-dialog-title p-dialog-title\" [id]=\"titleId\">{{ header }}</span>\n }\n <div class=\"wu-dialog-header-actions p-dialog-header-actions\">\n @if (maximizable) {\n <button type=\"button\" class=\"wu-dialog-icon p-dialog-maximize-button\" [attr.aria-label]=\"maximized ? t.collapse : t.expand\" (click)=\"toggleMaximize()\">\n @if (maximized ? minimizeIcon : maximizeIcon) {\n <i [class]=\"(maximized ? minimizeIcon : maximizeIcon) || ''\"></i>\n } @else if (maximized) {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M13.5 2.5 9 7M9 3v4h4M2.5 13.5 7 9M7 13V9H3\"></path></svg>\n } @else {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9\"></path></svg>\n }\n </button>\n }\n @if (closable) {\n <button type=\"button\" class=\"wu-dialog-icon p-dialog-close-button\" [attr.aria-label]=\"closeAriaLabel || t.close\" (click)=\"close($event)\">\n @if (closeIconTemplate) {\n <ng-container [ngTemplateOutlet]=\"closeIconTemplate\"></ng-container>\n } @else if (closeIcon) {\n <i [class]=\"closeIcon\"></i>\n } @else {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n }\n </button>\n }\n </div>\n </div>\n }\n <div class=\"wu-dialog-content p-dialog-content\" [ngClass]=\"contentStyleClass || ''\" [ngStyle]=\"contentStyle || null\">\n <ng-content></ng-content>\n @if (contentTemplate) {\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n }\n </div>\n @if (hasFooter) {\n <div class=\"wu-dialog-footer p-dialog-footer\">\n <ng-content select=\"[wuDialogFooter], wu-footer\"></ng-content>\n @if (footerTemplate) {\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n }\n </div>\n }\n }\n </div>\n </dialog>\n}\n", styles: ["@layer wiraui.components{wu-dialog{display:contents}.wu-dialog-mask:where([open]){position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;color:var(--wu-text);overflow:hidden;overscroll-behavior:contain}.wu-dialog-mask::backdrop{background:var(--wu-mask);animation:wu-dialog-fade .15s ease-out}.wu-dialog-mask.wu-dialog-leaving::backdrop{opacity:0;transition:opacity .12s ease-in}.wu-dialog-mask[open]:not(.wu-dialog-modal){z-index:1100;pointer-events:none}.wu-dialog-mask:not(.wu-dialog-modal) .wu-dialog{pointer-events:auto}.wu-dialog-top{align-items:flex-start}.wu-dialog-bottom{align-items:flex-end}.wu-dialog-left{justify-content:flex-start}.wu-dialog-right{justify-content:flex-end}.wu-dialog-topleft{align-items:flex-start;justify-content:flex-start}.wu-dialog-topright{align-items:flex-start;justify-content:flex-end}.wu-dialog-bottomleft{align-items:flex-end;justify-content:flex-start}.wu-dialog-bottomright{align-items:flex-end;justify-content:flex-end}.wu-dialog{position:relative;display:flex;flex-direction:column;box-sizing:border-box;max-width:100%;max-height:100%;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-dialog-radius);background:var(--wu-dialog-bg);-webkit-backdrop-filter:var(--wu-overlay-backdrop);backdrop-filter:var(--wu-overlay-backdrop);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);animation:wu-dialog-in .15s ease-out}.wu-dialog *,.wu-dialog *:before,.wu-dialog *:after{box-sizing:border-box}.wu-dialog-leaving .wu-dialog{opacity:0;transform:scale(.97);transition:opacity .12s ease-in,transform .12s ease-in}.wu-dialog-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.5rem;padding:var(--wu-dialog-header-padding);border-bottom:var(--wu-dialog-divider) solid var(--wu-border)}.wu-dialog-draggable .wu-dialog-header{cursor:move;touch-action:none}.wu-dialog-title{min-width:0;margin:0;font-size:var(--wu-dialog-title-size);font-weight:var(--wu-dialog-title-weight);line-height:1.3;overflow-wrap:anywhere}.wu-dialog-header-actions{display:flex;flex:none;align-items:center;gap:.25rem;margin-left:auto}.wu-dialog-icon{display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer;touch-action:manipulation;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-dialog-icon:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-dialog-icon:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-dialog-icon svg{width:1rem;height:1rem}.wu-dialog-content{flex:1 1 auto;min-height:0;padding:var(--wu-dialog-content-padding);overflow-y:auto;overscroll-behavior:contain}.wu-dialog-headerless .wu-dialog-content{padding-top:var(--wu-dialog-header-padding)}.wu-dialog-footer{display:flex;flex:none;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem;padding:var(--wu-dialog-footer-padding);border-top:var(--wu-dialog-divider) solid var(--wu-border)}.wu-dialog-footer>:is([wuDialogFooter],wu-footer){display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem}.wu-dialog-maximized{width:100%!important;min-width:0!important;max-width:none!important;height:100%;border-radius:0}.wu-dialog-mask[open]:has(.wu-dialog-maximized){padding:0}@media (max-width: 575.98px){.wu-dialog-mask[open]{padding:.75rem}.wu-dialog:not(.wu-dialog-maximized){width:100%!important;min-width:0!important;max-width:100%!important}}@keyframes wu-dialog-in{0%{opacity:0;transform:scale(.97)}}@keyframes wu-dialog-fade{0%{opacity:0}}@media (prefers-reduced-motion: reduce){.wu-dialog,.wu-dialog-mask::backdrop{animation:none}.wu-dialog-leaving .wu-dialog{transition:none}}}\n"] }]
|
|
447
|
+
args: [{ selector: 'wu-dialog', standalone: true, imports: [NgClass, NgStyle, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (rendered) {\n <dialog\n #mask\n class=\"wu-dialog-mask p-dialog-mask p-overlay-mask p-overlay-mask-enter\"\n [ngClass]=\"(maskStyleClass || '') + ' ' + positionClasses\"\n [class.wu-dialog-modal]=\"modal\"\n [class.wu-dialog-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div\n #panel\n tabindex=\"-1\"\n class=\"wu-dialog p-dialog p-component\"\n [ngClass]=\"styleClass || ''\"\n [ngStyle]=\"panelStyle\"\n [class.wu-dialog-maximized]=\"maximized\"\n [class.p-dialog-maximized]=\"maximized\"\n [class.wu-dialog-draggable]=\"draggable\"\n [class.wu-dialog-headerless]=\"!showHeader\"\n >\n @if (headlessTemplate) {\n <ng-container [ngTemplateOutlet]=\"headlessTemplate\"></ng-container>\n } @else {\n @if (showHeader) {\n <div class=\"wu-dialog-header p-dialog-header\" (pointerdown)=\"headerPointerdown($event)\">\n @if (headerTemplate) {\n <div class=\"wu-dialog-title p-dialog-title\" [id]=\"titleId\"><ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container></div>\n } @else {\n <span class=\"wu-dialog-title p-dialog-title\" [id]=\"titleId\">{{ header }}</span>\n }\n <div class=\"wu-dialog-header-actions p-dialog-header-actions\">\n @if (maximizable) {\n <button type=\"button\" class=\"wu-dialog-icon p-dialog-maximize-button\" [attr.aria-label]=\"maximized ? t.collapse : t.expand\" (click)=\"toggleMaximize()\">\n @if (maximized ? minimizeIcon : maximizeIcon) {\n <i [class]=\"(maximized ? minimizeIcon : maximizeIcon) || ''\"></i>\n } @else if (maximized) {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M13.5 2.5 9 7M9 3v4h4M2.5 13.5 7 9M7 13V9H3\"></path></svg>\n } @else {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9\"></path></svg>\n }\n </button>\n }\n @if (closable) {\n <button type=\"button\" class=\"wu-dialog-icon p-dialog-close-button\" [attr.aria-label]=\"closeAriaLabel || t.close\" (click)=\"close($event)\">\n @if (closeIconTemplate) {\n <ng-container [ngTemplateOutlet]=\"closeIconTemplate\"></ng-container>\n } @else if (closeIcon) {\n <i [class]=\"closeIcon\"></i>\n } @else {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n }\n </button>\n }\n </div>\n </div>\n }\n <div class=\"wu-dialog-content p-dialog-content\" [ngClass]=\"contentStyleClass || ''\" [ngStyle]=\"contentStyle || null\">\n <ng-content></ng-content>\n @if (contentTemplate) {\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n }\n </div>\n @if (hasFooter) {\n <div class=\"wu-dialog-footer p-dialog-footer\">\n <ng-content select=\"[wuDialogFooter], wu-footer\"></ng-content>\n @if (footerTemplate) {\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n }\n </div>\n }\n }\n </div>\n </dialog>\n}\n", styles: ["@layer wiraui.components{wu-dialog{display:contents}.wu-dialog-mask:where([open]){position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;color:var(--wu-text);overflow:hidden;overscroll-behavior:contain}.wu-dialog-mask::backdrop{background:var(--wu-mask);animation:wu-dialog-fade .15s ease-out}.wu-dialog-mask.wu-dialog-leaving::backdrop{opacity:0;transition:opacity .12s ease-in}.wu-dialog-mask[open]:not(.wu-dialog-modal){z-index:1100;pointer-events:none}.wu-dialog-mask:not(.wu-dialog-modal) .wu-dialog{pointer-events:auto}.wu-dialog-top{align-items:flex-start}.wu-dialog-bottom{align-items:flex-end}.wu-dialog-left{justify-content:flex-start}.wu-dialog-right{justify-content:flex-end}.wu-dialog-topleft{align-items:flex-start;justify-content:flex-start}.wu-dialog-topright{align-items:flex-start;justify-content:flex-end}.wu-dialog-bottomleft{align-items:flex-end;justify-content:flex-start}.wu-dialog-bottomright{align-items:flex-end;justify-content:flex-end}.wu-dialog{position:relative;display:flex;flex-direction:column;box-sizing:border-box;max-width:100%;max-height:100%;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-dialog-radius);background:var(--wu-dialog-bg);-webkit-backdrop-filter:var(--wu-overlay-backdrop);backdrop-filter:var(--wu-overlay-backdrop);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);animation:wu-dialog-in .15s ease-out}.wu-dialog *,.wu-dialog *:before,.wu-dialog *:after{box-sizing:border-box}.wu-dialog-leaving .wu-dialog{opacity:0;transform:scale(.97);transition:opacity .12s ease-in,transform .12s ease-in}.wu-dialog-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.5rem;padding:var(--wu-dialog-header-padding);border-bottom:var(--wu-dialog-divider) solid var(--wu-border)}.wu-dialog-draggable .wu-dialog-header{cursor:move;touch-action:none}.wu-dialog-title{font-family:var(--wu-heading-font-family);min-width:0;margin:0;font-size:var(--wu-dialog-title-size);font-weight:var(--wu-dialog-title-weight);line-height:1.3;overflow-wrap:anywhere}.wu-dialog-header-actions{display:flex;flex:none;align-items:center;gap:.25rem;margin-left:auto}.wu-dialog-icon{display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer;touch-action:manipulation;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-dialog-icon:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-dialog-icon:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-dialog-icon svg{width:1rem;height:1rem}.wu-dialog-content{flex:1 1 auto;min-height:0;padding:var(--wu-dialog-content-padding);overflow-y:auto;overscroll-behavior:contain}.wu-dialog-headerless .wu-dialog-content{padding-top:var(--wu-dialog-header-padding)}.wu-dialog-footer{display:flex;flex:none;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem;padding:var(--wu-dialog-footer-padding);border-top:var(--wu-dialog-divider) solid var(--wu-border)}.wu-dialog-footer>:is([wuDialogFooter],wu-footer){display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem}.wu-dialog-maximized{width:100%!important;min-width:0!important;max-width:none!important;height:100%;border-radius:0}.wu-dialog-mask[open]:has(.wu-dialog-maximized){padding:0}@media (max-width: 575.98px){.wu-dialog-mask[open]{padding:.75rem}.wu-dialog:not(.wu-dialog-maximized){width:100%!important;min-width:0!important;max-width:100%!important}}@keyframes wu-dialog-in{0%{opacity:0;transform:scale(.97)}}@keyframes wu-dialog-fade{0%{opacity:0}}@media (prefers-reduced-motion: reduce){.wu-dialog,.wu-dialog-mask::backdrop{animation:none}.wu-dialog-leaving .wu-dialog{transition:none}}}\n"] }]
|
|
448
448
|
}] });
|
|
449
449
|
|
|
450
450
|
/** For NgModule apps. Also exports `WuTemplate` (`<ng-template wuTemplate="footer">`) and `wu-footer`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirabyte-ui-dialog.mjs","sources":["../../lib/dialog/dialog.base.ts","../../lib/dialog/dialog.component.ts","../../lib/dialog/dialog.component.html","../../lib/dialog/dialog.module.ts","../../lib/dialog/dialog.service.ts","../../lib/dialog/wirabyte-ui-dialog.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport {\n AfterViewChecked,\n ChangeDetectorRef,\n ContentChild,\n ContentChildren,\n Directive,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n QueryList,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {\n ɵassertSupportedAngular,\n ɵfindTemplate,\n ɵfocusable,\n ɵlockScroll,\n ɵrefreshOnTranslation,\n ɵtoBool,\n ɵuniqueId,\n ɵWU_SKIP_VERSION_CHECK,\n WuConfig,\n WuTemplate,\n} from '@wirabyte/ui/config';\nimport { WuLocale } from '@wirabyte/ui/core';\nimport { WuDialogMaximizeEvent } from './dialog.types';\n\n/** Marks projected footer content: `<div wuDialogFooter>…</div>` or `<wu-footer>…</wu-footer>`. */\n@Directive({ selector: '[wuDialogFooter], wu-footer', standalone: true })\nexport class WuDialogFooter {}\n\nconst asTemplate = (v: unknown): TemplateRef<unknown> | null => (v instanceof TemplateRef ? v : null);\nconst CORNERS: Record<string, string> = { topleft: 'top-left', topright: 'top-right', bottomleft: 'bottom-left', bottomright: 'bottom-right' };\n\n/**\n * What wu-dialog does, shared by the v1 and v2/v3 templates (they differ only in control flow and era class names).\n * The dialog is a native `<dialog>`: showModal() puts it in the top layer, traps focus and makes the page inert.\n */\n@Directive()\nexport abstract class ɵWuDialogBase implements OnChanges, AfterViewChecked, OnDestroy {\n /** Title text. A `header` template replaces it. */\n @Input() header?: string;\n @Input() set visible(v: unknown) {\n this.setVisible(ɵtoBool(v));\n }\n get visible(): boolean {\n return this._visible;\n }\n /** Dim the page and keep focus in the dialog. Default true. */\n @Input() set modal(v: unknown) { this._modal = v === undefined || ɵtoBool(v); }\n get modal(): boolean { return this._modal; }\n /** The × button, Escape and the mask can close it. Default true. */\n @Input() set closable(v: unknown) { this._closable = v === undefined || ɵtoBool(v); }\n get closable(): boolean { return this._closable; }\n @Input() set closeOnEscape(v: unknown) { this._closeOnEscape = v === undefined || ɵtoBool(v); }\n /** Clicking the dimmed page closes it. Default false. */\n @Input() set dismissableMask(v: unknown) { this._dismissableMask = ɵtoBool(v); }\n /** Stop the page scrolling behind. Default: on for modal dialogs. */\n @Input() set blockScroll(v: unknown) { this._blockScroll = v === undefined || v === null ? null : ɵtoBool(v); }\n /** Move the dialog by its header. Default false. */\n @Input() set draggable(v: unknown) { this._draggable = ɵtoBool(v); }\n get draggable(): boolean { return this._draggable; }\n /** A button that fills the screen with the dialog. */\n @Input() set maximizable(v: unknown) { this._maximizable = ɵtoBool(v); }\n get maximizable(): boolean { return this._maximizable; }\n @Input() set showHeader(v: unknown) { this._showHeader = v === undefined || ɵtoBool(v); }\n get showHeader(): boolean { return this._showHeader; }\n /** Focus an `[autofocus]` element, else the close button, when it opens. Default true. */\n @Input() set focusOnShow(v: unknown) { this._focusOnShow = v === undefined || ɵtoBool(v); }\n /** Styles of the dialog box, e.g. `{ width: '50vw', 'min-width': '360px' }`. Phones always get the screen width. */\n @Input() style?: Record<string, string | number> | null;\n @Input() styleClass?: string;\n @Input() contentStyle?: Record<string, string | number> | null;\n @Input() contentStyleClass?: string;\n @Input() maskStyleClass?: string;\n /** Width per screen size: `{ '960px': '75vw', '640px': '90vw' }`. The smallest matching max-width wins. */\n @Input() breakpoints?: Record<string, string> | null;\n /** center, top, bottom, left, right, topleft, topright, bottomleft, bottomright (top-left … also work). */\n @Input() position = 'center';\n @Input() closeAriaLabel?: string;\n @Input() ariaLabelledBy?: string;\n /** Icon class for the close button instead of the built-in ×, e.g. `pi pi-times`. */\n @Input() closeIcon?: string;\n @Input() maximizeIcon?: string;\n @Input() minimizeIcon?: string;\n /** Accepted for templates moving over. The dialog opens in the top layer, so these have nothing to do. */\n @Input() appendTo: unknown;\n @Input() baseZIndex: unknown;\n @Input() autoZIndex: unknown;\n @Input() resizable: unknown;\n @Input() keepInViewport: unknown;\n @Input() responsive: unknown;\n @Input() transitionOptions: unknown;\n\n /** Slot templates passed in by components that wrap wu-dialog (wu-confirmdialog); apps use `wuTemplate` or `#name`. */\n @Input() templateHeader?: TemplateRef<unknown> | null;\n @Input() templateFooter?: TemplateRef<unknown> | null;\n @Input() templateHeadless?: TemplateRef<unknown> | null;\n\n @Output() readonly visibleChange = new EventEmitter<boolean>();\n @Output() readonly onShow = new EventEmitter<void>();\n @Output() readonly onHide = new EventEmitter<void>();\n @Output() readonly onMaximize = new EventEmitter<WuDialogMaximizeEvent>();\n\n @ContentChildren(WuTemplate) templates?: QueryList<WuTemplate>;\n @ContentChild('header', { descendants: false }) headerRef?: unknown;\n @ContentChild('footer', { descendants: false }) footerRef?: unknown;\n @ContentChild('content', { descendants: false }) contentRef?: unknown;\n @ContentChild('headless', { descendants: false }) headlessRef?: unknown;\n @ContentChild('closeicon', { descendants: false }) closeIconRef?: unknown;\n @ContentChild(WuDialogFooter) footerProjected?: WuDialogFooter;\n\n @ViewChild('mask') maskRef?: ElementRef<HTMLDialogElement>;\n @ViewChild('panel') panelRef?: ElementRef<HTMLElement>;\n\n /** The `<dialog>` is in the DOM (it stays a moment after closing, for the fade-out). */\n rendered = false;\n leaving = false;\n maximized = false;\n /** Styles of the dialog box: `style` plus the width `breakpoints` pick. */\n panelStyle: Record<string, string | number> | null = null;\n readonly titleId = ɵuniqueId('wu-dialog-title');\n\n private _visible = false;\n private _modal = true;\n private _closable = true;\n private _closeOnEscape = true;\n private _dismissableMask = false;\n private _blockScroll: boolean | null = null;\n private _draggable = false;\n private _maximizable = false;\n private _showHeader = true;\n private _focusOnShow = true;\n private pendingShow = false;\n private downOnMask = false;\n private bpWidth: string | null = null;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n private unlockScroll: (() => void) | null = null;\n private returnFocus: HTMLElement | null = null;\n private stopResize: (() => void) | null = null;\n protected readonly cdr = inject(ChangeDetectorRef);\n protected readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n get t(): WuLocale {\n return this.config.translation;\n }\n get headerTemplate(): TemplateRef<unknown> | null {\n return this.templateHeader || asTemplate(this.headerRef) || ɵfindTemplate(this.templates, 'header');\n }\n get footerTemplate(): TemplateRef<unknown> | null {\n return this.templateFooter || asTemplate(this.footerRef) || ɵfindTemplate(this.templates, 'footer');\n }\n get contentTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.contentRef) || ɵfindTemplate(this.templates, 'content');\n }\n get headlessTemplate(): TemplateRef<unknown> | null {\n return this.templateHeadless || asTemplate(this.headlessRef) || ɵfindTemplate(this.templates, 'headless');\n }\n get closeIconTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.closeIconRef) || ɵfindTemplate(this.templates, 'closeicon');\n }\n get hasFooter(): boolean {\n return !!this.footerTemplate || !!this.footerProjected;\n }\n get labelledBy(): string | null {\n return this.ariaLabelledBy || (this.header || this.headerTemplate ? this.titleId : null);\n }\n /** `topleft` for `top-left` and the like. */\n get positionKey(): string {\n return (this.position || 'center').replace('-', '').toLowerCase();\n }\n /** Position class names of the era; v1 and v2/v3 both use the dashed corner names. */\n get positionClasses(): string {\n const key = this.positionKey;\n if (key === 'center') return '';\n return `wu-dialog-${key} p-dialog-${CORNERS[key] || key}`;\n }\n\n ngOnChanges(): void {\n this.updatePanelStyle();\n }\n\n ngAfterViewChecked(): void {\n if (!this.pendingShow) return;\n const el = this.maskRef?.nativeElement;\n if (!el) return;\n this.pendingShow = false;\n if (!el.open) {\n try {\n if (this._modal) el.showModal();\n else el.show();\n } catch {\n el.setAttribute('open', '');\n }\n }\n if (this._blockScroll ?? this._modal) this.unlockScroll = ɵlockScroll(this.doc);\n // Toasts on screen move back above this modal.\n if (this._modal) this.doc.dispatchEvent(new CustomEvent('wu-modal-open'));\n this.watchBreakpoints();\n if (this._focusOnShow) this.focusFirst();\n // After this check: listeners may change state the parent shows.\n Promise.resolve().then(() => this.onShow.emit());\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.stopResize?.();\n this.unlockScroll?.();\n const el = this.maskRef?.nativeElement;\n if (el?.open) el.close();\n }\n\n /** Closes the dialog and tells the model (`visibleChange`). */\n close(event?: Event): void {\n if (!this._visible) return;\n event?.preventDefault();\n this._visible = false;\n this.visibleChange.emit(false);\n this.beginClose();\n }\n\n toggleMaximize(): void {\n this.maximized = !this.maximized;\n const panel = this.panelRef?.nativeElement;\n if (panel) panel.style.translate = '';\n this.onMaximize.emit({ maximized: this.maximized });\n this.cdr.markForCheck();\n }\n\n // ---------- template events ----------\n\n keydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || event.defaultPrevented) return;\n // Handled here so the browser does not close the <dialog> behind our back.\n event.preventDefault();\n if (this._closeOnEscape && this._closable) this.close(event);\n }\n\n /** The browser's own close request (Escape on some platforms): always ours to decide. */\n cancel(event: Event): void {\n event.preventDefault();\n if (this._closeOnEscape && this._closable) this.close(event);\n }\n\n /** The `<dialog>` closed by itself (a form with method=\"dialog\", or a browser forcing it). */\n nativeClose(): void {\n if (!this._visible || this.leaving) return;\n const el = this.maskRef?.nativeElement;\n if (this._closable) this.close();\n else if (el && !el.open) this._modal ? el.showModal() : el.show();\n }\n\n maskPointerdown(event: PointerEvent): void {\n this.downOnMask = event.target === this.maskRef?.nativeElement;\n }\n\n maskClick(event: MouseEvent): void {\n // Both press and release on the mask: a text selection dragged out of the dialog does not close it.\n const onMask = this.downOnMask && event.target === this.maskRef?.nativeElement;\n this.downOnMask = false;\n if (onMask && this._dismissableMask && this._closable && this._modal) this.close(event);\n }\n\n headerPointerdown(event: PointerEvent): void {\n const panel = this.panelRef?.nativeElement;\n if (!this._draggable || this.maximized || !panel || event.button !== 0) return;\n if ((event.target as HTMLElement).closest('button, a, input, select, textarea')) return;\n event.preventDefault();\n const [x0, y0] = (panel.style.translate || '0px 0px').split(' ').map((v) => parseFloat(v) || 0);\n const startX = event.clientX - x0;\n const startY = event.clientY - y0;\n const move = (e: PointerEvent) => (panel.style.translate = `${e.clientX - startX}px ${e.clientY - startY}px`);\n const up = () => {\n this.doc.removeEventListener('pointermove', move);\n this.doc.removeEventListener('pointerup', up);\n };\n this.doc.addEventListener('pointermove', move);\n this.doc.addEventListener('pointerup', up);\n }\n\n // ---------- internals ----------\n\n private setVisible(v: boolean): void {\n if (v === this._visible) return;\n this._visible = v;\n if (v) this.beginOpen();\n else this.beginClose();\n }\n\n private beginOpen(): void {\n if (this.closeTimer) {\n // Reopened during the fade-out: keep the dialog that is still there.\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n this.leaving = false;\n this.cdr.markForCheck();\n return;\n }\n const active = this.doc.activeElement as HTMLElement | null;\n this.returnFocus = active && active !== this.doc.body ? active : null;\n this.rendered = true;\n this.leaving = false;\n this.pendingShow = true;\n this.cdr.markForCheck();\n }\n\n private beginClose(): void {\n this.pendingShow = false;\n if (!this.rendered || this.closeTimer) return;\n this.leaving = true;\n this.cdr.markForCheck();\n const win = this.doc.defaultView;\n const reduce = !!win?.matchMedia && win.matchMedia('(prefers-reduced-motion: reduce)').matches;\n this.closeTimer = setTimeout(() => this.finishClose(), reduce ? 0 : 120);\n }\n\n private finishClose(): void {\n this.closeTimer = null;\n const el = this.maskRef?.nativeElement;\n const hadFocus = !!el && el.contains(this.doc.activeElement);\n if (el?.open) el.close();\n this.unlockScroll?.();\n this.unlockScroll = null;\n this.stopResize?.();\n this.stopResize = null;\n this.rendered = false;\n this.leaving = false;\n this.maximized = false;\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back && back.isConnected && (hadFocus || this.doc.activeElement === this.doc.body)) back.focus({ preventScroll: true });\n this.cdr.markForCheck();\n this.onHide.emit();\n }\n\n private focusFirst(): void {\n const panel = this.panelRef?.nativeElement;\n if (!panel) return;\n const auto = panel.querySelector<HTMLElement>('[autofocus]');\n // The close button rather than the first field, so phones do not raise the keyboard on open.\n const target = auto || panel.querySelector<HTMLElement>('.wu-dialog-header-actions button') || ɵfocusable(panel)[0] || panel;\n target.focus({ preventScroll: true });\n }\n\n private watchBreakpoints(): void {\n const win = this.doc.defaultView;\n if (!this.breakpoints || !win) return;\n const update = () => {\n const width = this.matchBreakpoint();\n if (width !== this.bpWidth) {\n this.bpWidth = width;\n this.updatePanelStyle();\n this.cdr.markForCheck();\n }\n };\n update();\n win.addEventListener('resize', update, { passive: true });\n this.stopResize = () => win.removeEventListener('resize', update);\n }\n\n private matchBreakpoint(): string | null {\n const win = this.doc.defaultView;\n if (!this.breakpoints || !win?.matchMedia) return null;\n const sorted = Object.entries(this.breakpoints).sort((a, b) => parseFloat(a[0]) - parseFloat(b[0]));\n for (const [max, width] of sorted) if (win.matchMedia(`(max-width: ${max})`).matches) return width;\n return null;\n }\n\n private updatePanelStyle(): void {\n this.panelStyle = this.bpWidth ? { ...(this.style || {}), width: this.bpWidth } : this.style || null;\n }\n}\n","import { NgClass, NgStyle, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { ɵWuDialogBase } from './dialog.base';\n\n/**\n * Dialog: `<wu-dialog header=\"แก้ไขข้อมูล\" [(visible)]=\"open\" [style]=\"{ width: '50vw' }\">…</wu-dialog>`.\n * A native modal <dialog> in the top layer, so no appendTo or z-index; focus stays inside and returns on close.\n * Slots: `<ng-template #footer>` (or `wuTemplate=\"footer\"`, also header, content, headless), or `<wu-footer>`.\n */\n@Component({\n selector: 'wu-dialog',\n standalone: true,\n imports: [NgClass, NgStyle, NgTemplateOutlet],\n templateUrl: './dialog.component.html',\n styleUrl: './dialog.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuDialog extends ɵWuDialogBase {}\n","@if (rendered) {\n <dialog\n #mask\n class=\"wu-dialog-mask p-dialog-mask p-overlay-mask p-overlay-mask-enter\"\n [ngClass]=\"(maskStyleClass || '') + ' ' + positionClasses\"\n [class.wu-dialog-modal]=\"modal\"\n [class.wu-dialog-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div\n #panel\n tabindex=\"-1\"\n class=\"wu-dialog p-dialog p-component\"\n [ngClass]=\"styleClass || ''\"\n [ngStyle]=\"panelStyle\"\n [class.wu-dialog-maximized]=\"maximized\"\n [class.p-dialog-maximized]=\"maximized\"\n [class.wu-dialog-draggable]=\"draggable\"\n [class.wu-dialog-headerless]=\"!showHeader\"\n >\n @if (headlessTemplate) {\n <ng-container [ngTemplateOutlet]=\"headlessTemplate\"></ng-container>\n } @else {\n @if (showHeader) {\n <div class=\"wu-dialog-header p-dialog-header\" (pointerdown)=\"headerPointerdown($event)\">\n @if (headerTemplate) {\n <div class=\"wu-dialog-title p-dialog-title\" [id]=\"titleId\"><ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container></div>\n } @else {\n <span class=\"wu-dialog-title p-dialog-title\" [id]=\"titleId\">{{ header }}</span>\n }\n <div class=\"wu-dialog-header-actions p-dialog-header-actions\">\n @if (maximizable) {\n <button type=\"button\" class=\"wu-dialog-icon p-dialog-maximize-button\" [attr.aria-label]=\"maximized ? t.collapse : t.expand\" (click)=\"toggleMaximize()\">\n @if (maximized ? minimizeIcon : maximizeIcon) {\n <i [class]=\"(maximized ? minimizeIcon : maximizeIcon) || ''\"></i>\n } @else if (maximized) {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M13.5 2.5 9 7M9 3v4h4M2.5 13.5 7 9M7 13V9H3\"></path></svg>\n } @else {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9\"></path></svg>\n }\n </button>\n }\n @if (closable) {\n <button type=\"button\" class=\"wu-dialog-icon p-dialog-close-button\" [attr.aria-label]=\"closeAriaLabel || t.close\" (click)=\"close($event)\">\n @if (closeIconTemplate) {\n <ng-container [ngTemplateOutlet]=\"closeIconTemplate\"></ng-container>\n } @else if (closeIcon) {\n <i [class]=\"closeIcon\"></i>\n } @else {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n }\n </button>\n }\n </div>\n </div>\n }\n <div class=\"wu-dialog-content p-dialog-content\" [ngClass]=\"contentStyleClass || ''\" [ngStyle]=\"contentStyle || null\">\n <ng-content></ng-content>\n @if (contentTemplate) {\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n }\n </div>\n @if (hasFooter) {\n <div class=\"wu-dialog-footer p-dialog-footer\">\n <ng-content select=\"[wuDialogFooter], wu-footer\"></ng-content>\n @if (footerTemplate) {\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n }\n </div>\n }\n }\n </div>\n </dialog>\n}\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuDialogFooter } from './dialog.base';\nimport { WuDialog } from './dialog.component';\n\n/** For NgModule apps. Also exports `WuTemplate` (`<ng-template wuTemplate=\"footer\">`) and `wu-footer`. */\n@NgModule({\n imports: [WuDialog, WuDialogFooter, WuTemplate],\n exports: [WuDialog, WuDialogFooter, WuTemplate],\n})\nexport class WuDialogModule {}\n","import { DOCUMENT, NgComponentOutlet, NgIf } from '@angular/common';\nimport {\n ApplicationRef,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ComponentRef,\n createComponent,\n EnvironmentInjector,\n inject,\n Injectable,\n Injector,\n Type,\n ViewChild,\n ViewContainerRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { WuDialogFooter } from './dialog.base';\nimport { WuDialog } from './dialog.component';\n\n/**\n * How `WuDialogService.open()` shows a component, and the `data` it gets. Inject it in the opened component:\n * `config = inject(WuDialogConfig)` then `this.config.data`.\n */\nexport class WuDialogConfig<D = unknown> {\n header?: string;\n /** Anything the opened component needs: `inject(WuDialogConfig).data`. */\n data?: D;\n /** `'40rem'`, `'70vw'` … Sets the dialog's width (and `style.width`). */\n width?: string;\n height?: string;\n style?: Record<string, string | number> | null;\n styleClass?: string;\n contentStyle?: Record<string, string | number> | null;\n contentStyleClass?: string;\n /** A component for the footer (it can inject the same WuDialogRef and WuDialogConfig). */\n footer?: Type<unknown>;\n modal?: boolean = true;\n closable?: boolean = true;\n closeOnEscape?: boolean = true;\n dismissableMask?: boolean = false;\n maximizable?: boolean = false;\n draggable?: boolean = false;\n showHeader?: boolean = true;\n focusOnShow?: boolean = true;\n position?: string = 'center';\n breakpoints?: Record<string, string> | null;\n /** Accepted for code moving over; the dialog sits in the top layer, so there is nothing to set. */\n baseZIndex?: unknown;\n appendTo?: unknown;\n}\n\n/**\n * The handle of an opened dialog. `close(result)` closes it; `onClose` (or the `result` promise) brings the result back\n * once it has gone, `undefined` when the user closed it (X, Escape, the mask). Inject it in the opened component.\n */\nexport class WuDialogRef<R = unknown> {\n private readonly closed$ = new Subject<R | undefined>();\n private readonly destroyed$ = new Subject<void>();\n private resolve!: (value: R | undefined) => void;\n /** Emits the result once, after the dialog has closed. */\n readonly onClose: Observable<R | undefined> = this.closed$.asObservable();\n /** Emits once the dialog is gone. */\n readonly onDestroy: Observable<void> = this.destroyed$.asObservable();\n /** The same result as a promise: `const picked = await ref.result;`. */\n readonly result: Promise<R | undefined> = new Promise((resolve) => (this.resolve = resolve));\n /** The opened component, once it exists. */\n componentInstance: unknown = null;\n /** @internal Set by the service: hides the dialog with a result. */\n ɵhide: (result: R | undefined) => void = () => undefined;\n private done = false;\n\n /** Closes the dialog; `result` reaches `onClose` and `result`. */\n close(result?: R): void {\n this.ɵhide(result);\n }\n\n /** Removes the dialog at once, with no result. */\n destroy(): void {\n this.ɵfinish(undefined);\n }\n\n /** @internal */\n ɵfinish(result: R | undefined): void {\n if (this.done) return;\n this.done = true;\n this.closed$.next(result);\n this.closed$.complete();\n this.resolve(result);\n this.destroyed$.next();\n this.destroyed$.complete();\n }\n}\n\n/** @internal The dialog around an opened component. */\n@Component({\n selector: 'wu-dynamic-dialog',\n standalone: true,\n imports: [WuDialog, WuDialogFooter, NgComponentOutlet, NgIf],\n template: `\n <wu-dialog\n [header]=\"config.header\"\n [visible]=\"visible\"\n (visibleChange)=\"visibleChange($event)\"\n (onHide)=\"hidden()\"\n [modal]=\"config.modal\"\n [closable]=\"config.closable\"\n [closeOnEscape]=\"config.closeOnEscape\"\n [dismissableMask]=\"config.dismissableMask\"\n [maximizable]=\"config.maximizable\"\n [draggable]=\"config.draggable\"\n [showHeader]=\"config.showHeader\"\n [focusOnShow]=\"config.focusOnShow\"\n [position]=\"config.position || 'center'\"\n [breakpoints]=\"config.breakpoints || null\"\n [style]=\"dialogStyle\"\n [styleClass]=\"config.styleClass || ''\"\n [contentStyle]=\"config.contentStyle || null\"\n [contentStyleClass]=\"config.contentStyleClass || ''\"\n >\n <ng-container #content></ng-container>\n <wu-footer *ngIf=\"config.footer\">\n <ng-container *ngComponentOutlet=\"config.footer; injector: injector\"></ng-container>\n </wu-footer>\n </wu-dialog>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ɵWuDynamicDialog {\n component!: Type<unknown>;\n config!: WuDialogConfig;\n injector!: Injector;\n visible = false;\n dialogStyle: Record<string, string | number> | null = null;\n /** Called once the dialog has gone (after its closing animation). */\n gone: () => void = () => undefined;\n private result: unknown = undefined;\n readonly cdr = inject(ChangeDetectorRef);\n @ViewChild('content', { read: ViewContainerRef, static: true }) private content!: ViewContainerRef;\n\n /** Puts the opened component in the dialog and returns it. */\n create(): ComponentRef<unknown> {\n return this.content.createComponent(this.component, { injector: this.injector });\n }\n\n show(): void {\n const c = this.config;\n this.dialogStyle = { ...(c.width ? { width: c.width } : {}), ...(c.height ? { height: c.height } : {}), ...(c.style || {}) };\n this.visible = true;\n this.cdr.markForCheck();\n }\n\n hide(result: unknown): void {\n this.result = result;\n this.visible = false;\n this.cdr.markForCheck();\n }\n\n visibleChange(open: boolean): void {\n // Closed by the user (X, Escape, the mask): no result.\n if (!open) this.visible = false;\n }\n\n hidden(): void {\n this.gone();\n }\n\n get closedResult(): unknown {\n return this.result;\n }\n}\n\n/**\n * Opens a component of yours in a dialog, without putting `<wu-dialog>` in the template:\n * `const ref = this.dialogs.open(PickStudent, { header: 'เลือกนักเรียน', width: '40rem', data: { room } });`\n * then `ref.onClose.subscribe(student => …)` or `const student = await ref.result`. In the component:\n * `inject(WuDialogConfig).data` and `inject(WuDialogRef).close(student)`. Dialogs stack; Escape closes the top one.\n */\n@Injectable({ providedIn: 'root' })\nexport class WuDialogService {\n private readonly appRef = inject(ApplicationRef);\n private readonly environment = inject(EnvironmentInjector);\n private readonly injector = inject(Injector);\n private readonly doc = inject(DOCUMENT);\n private readonly open$ = new Set<WuDialogRef<unknown>>();\n\n /** The dialogs open now, oldest first. */\n get dialogs(): WuDialogRef<unknown>[] {\n return [...this.open$];\n }\n\n open<T, R = unknown, D = unknown>(component: Type<T>, config: WuDialogConfig<D> = {}): WuDialogRef<R> {\n const ref = new WuDialogRef<R>();\n const cfg = Object.assign(new WuDialogConfig<D>(), config);\n const injector = Injector.create({\n providers: [\n { provide: WuDialogRef, useValue: ref },\n { provide: WuDialogConfig, useValue: cfg },\n ],\n parent: this.injector,\n });\n const host: ComponentRef<ɵWuDynamicDialog> = createComponent(ɵWuDynamicDialog, { environmentInjector: this.environment, elementInjector: injector });\n const dialog = host.instance;\n dialog.component = component;\n dialog.config = cfg as WuDialogConfig;\n dialog.injector = injector;\n const remove = () => {\n if (!this.open$.has(ref as WuDialogRef<unknown>)) return;\n this.open$.delete(ref as WuDialogRef<unknown>);\n this.appRef.detachView(host.hostView);\n host.destroy();\n ref.ɵfinish(dialog.closedResult as R | undefined);\n };\n dialog.gone = remove;\n ref.ɵhide = (result) => dialog.hide(result);\n // destroy(): straight away, no animation.\n ref.onDestroy.subscribe(() => remove());\n this.open$.add(ref as WuDialogRef<unknown>);\n this.appRef.attachView(host.hostView);\n this.doc.body.appendChild(host.location.nativeElement);\n host.changeDetectorRef.detectChanges();\n ref.componentInstance = dialog.create().instance;\n dialog.show();\n host.changeDetectorRef.detectChanges();\n return ref;\n }\n\n /** Closes every open dialog with no result. */\n closeAll(): void {\n for (const ref of [...this.open$].reverse()) ref.close();\n }\n}\n\n/** Older names, for code moving over: `DialogService`, `DynamicDialogRef`, `DynamicDialogConfig`. */\nexport { WuDialogService as DialogService, WuDialogRef as DynamicDialogRef, WuDialogConfig as DynamicDialogConfig };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵtoBool","ɵuniqueId","ɵrefreshOnTranslation","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵfindTemplate","ɵlockScroll","ɵfocusable"],"mappings":";;;;;;AAiCA;MAEa,cAAc,CAAA;+GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;m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C,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC;AACtD,QAAA,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE;QACtC,GAAG,CAAC,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ;QAChD,MAAM,CAAC,IAAI,EAAE;AACb,QAAA,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE;AACtC,QAAA,OAAO,GAAG;IACZ;;IAGA,QAAQ,GAAA;QACN,KAAK,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE;YAAE,GAAG,CAAC,KAAK,EAAE;IAC1D;+GAnDW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cADF,MAAM,EAAA,CAAA,CAAA;;4FACnB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACpLlC;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-dialog.mjs","sources":["../../lib/dialog/dialog.base.ts","../../lib/dialog/dialog.component.ts","../../lib/dialog/dialog.component.html","../../lib/dialog/dialog.module.ts","../../lib/dialog/dialog.service.ts","../../lib/dialog/wirabyte-ui-dialog.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport {\n AfterViewChecked,\n ChangeDetectorRef,\n ContentChild,\n ContentChildren,\n Directive,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n QueryList,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {\n ɵassertSupportedAngular,\n ɵfindTemplate,\n ɵfocusable,\n ɵlockScroll,\n ɵrefreshOnTranslation,\n ɵtoBool,\n ɵuniqueId,\n ɵWU_SKIP_VERSION_CHECK,\n WuConfig,\n WuTemplate,\n} from '@wirabyte/ui/config';\nimport { WuLocale } from '@wirabyte/ui/core';\nimport { WuDialogMaximizeEvent } from './dialog.types';\n\n/** Marks projected footer content: `<div wuDialogFooter>…</div>` or `<wu-footer>…</wu-footer>`. */\n@Directive({ selector: '[wuDialogFooter], wu-footer', standalone: true })\nexport class WuDialogFooter {}\n\nconst asTemplate = (v: unknown): TemplateRef<unknown> | null => (v instanceof TemplateRef ? v : null);\nconst CORNERS: Record<string, string> = { topleft: 'top-left', topright: 'top-right', bottomleft: 'bottom-left', bottomright: 'bottom-right' };\n\n/**\n * What wu-dialog does, shared by the v1 and v2/v3 templates (they differ only in control flow and era class names).\n * The dialog is a native `<dialog>`: showModal() puts it in the top layer, traps focus and makes the page inert.\n */\n@Directive()\nexport abstract class ɵWuDialogBase implements OnChanges, AfterViewChecked, OnDestroy {\n /** Title text. A `header` template replaces it. */\n @Input() header?: string;\n @Input() set visible(v: unknown) {\n this.setVisible(ɵtoBool(v));\n }\n get visible(): boolean {\n return this._visible;\n }\n /** Dim the page and keep focus in the dialog. Default true. */\n @Input() set modal(v: unknown) { this._modal = v === undefined || ɵtoBool(v); }\n get modal(): boolean { return this._modal; }\n /** The × button, Escape and the mask can close it. Default true. */\n @Input() set closable(v: unknown) { this._closable = v === undefined || ɵtoBool(v); }\n get closable(): boolean { return this._closable; }\n @Input() set closeOnEscape(v: unknown) { this._closeOnEscape = v === undefined || ɵtoBool(v); }\n /** Clicking the dimmed page closes it. Default false. */\n @Input() set dismissableMask(v: unknown) { this._dismissableMask = ɵtoBool(v); }\n /** Stop the page scrolling behind. Default: on for modal dialogs. */\n @Input() set blockScroll(v: unknown) { this._blockScroll = v === undefined || v === null ? null : ɵtoBool(v); }\n /** Move the dialog by its header. Default false. */\n @Input() set draggable(v: unknown) { this._draggable = ɵtoBool(v); }\n get draggable(): boolean { return this._draggable; }\n /** A button that fills the screen with the dialog. */\n @Input() set maximizable(v: unknown) { this._maximizable = ɵtoBool(v); }\n get maximizable(): boolean { return this._maximizable; }\n @Input() set showHeader(v: unknown) { this._showHeader = v === undefined || ɵtoBool(v); }\n get showHeader(): boolean { return this._showHeader; }\n /** Focus an `[autofocus]` element, else the close button, when it opens. Default true. */\n @Input() set focusOnShow(v: unknown) { this._focusOnShow = v === undefined || ɵtoBool(v); }\n /** Styles of the dialog box, e.g. `{ width: '50vw', 'min-width': '360px' }`. Phones always get the screen width. */\n @Input() style?: Record<string, string | number> | null;\n @Input() styleClass?: string;\n @Input() contentStyle?: Record<string, string | number> | null;\n @Input() contentStyleClass?: string;\n @Input() maskStyleClass?: string;\n /** Width per screen size: `{ '960px': '75vw', '640px': '90vw' }`. The smallest matching max-width wins. */\n @Input() breakpoints?: Record<string, string> | null;\n /** center, top, bottom, left, right, topleft, topright, bottomleft, bottomright (top-left … also work). */\n @Input() position = 'center';\n @Input() closeAriaLabel?: string;\n @Input() ariaLabelledBy?: string;\n /** Icon class for the close button instead of the built-in ×, e.g. `pi pi-times`. */\n @Input() closeIcon?: string;\n @Input() maximizeIcon?: string;\n @Input() minimizeIcon?: string;\n /** Accepted for templates moving over. The dialog opens in the top layer, so these have nothing to do. */\n @Input() appendTo: unknown;\n @Input() baseZIndex: unknown;\n @Input() autoZIndex: unknown;\n @Input() resizable: unknown;\n @Input() keepInViewport: unknown;\n @Input() responsive: unknown;\n @Input() transitionOptions: unknown;\n\n /** Slot templates passed in by components that wrap wu-dialog (wu-confirmdialog); apps use `wuTemplate` or `#name`. */\n @Input() templateHeader?: TemplateRef<unknown> | null;\n @Input() templateFooter?: TemplateRef<unknown> | null;\n @Input() templateHeadless?: TemplateRef<unknown> | null;\n\n @Output() readonly visibleChange = new EventEmitter<boolean>();\n @Output() readonly onShow = new EventEmitter<void>();\n @Output() readonly onHide = new EventEmitter<void>();\n @Output() readonly onMaximize = new EventEmitter<WuDialogMaximizeEvent>();\n\n @ContentChildren(WuTemplate) templates?: QueryList<WuTemplate>;\n @ContentChild('header', { descendants: false }) headerRef?: unknown;\n @ContentChild('footer', { descendants: false }) footerRef?: unknown;\n @ContentChild('content', { descendants: false }) contentRef?: unknown;\n @ContentChild('headless', { descendants: false }) headlessRef?: unknown;\n @ContentChild('closeicon', { descendants: false }) closeIconRef?: unknown;\n @ContentChild(WuDialogFooter) footerProjected?: WuDialogFooter;\n\n @ViewChild('mask') maskRef?: ElementRef<HTMLDialogElement>;\n @ViewChild('panel') panelRef?: ElementRef<HTMLElement>;\n\n /** The `<dialog>` is in the DOM (it stays a moment after closing, for the fade-out). */\n rendered = false;\n leaving = false;\n maximized = false;\n /** Styles of the dialog box: `style` plus the width `breakpoints` pick. */\n panelStyle: Record<string, string | number> | null = null;\n readonly titleId = ɵuniqueId('wu-dialog-title');\n\n private _visible = false;\n private _modal = true;\n private _closable = true;\n private _closeOnEscape = true;\n private _dismissableMask = false;\n private _blockScroll: boolean | null = null;\n private _draggable = false;\n private _maximizable = false;\n private _showHeader = true;\n private _focusOnShow = true;\n private pendingShow = false;\n private downOnMask = false;\n private bpWidth: string | null = null;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n private unlockScroll: (() => void) | null = null;\n private returnFocus: HTMLElement | null = null;\n private stopResize: (() => void) | null = null;\n protected readonly cdr = inject(ChangeDetectorRef);\n protected readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n get t(): WuLocale {\n return this.config.translation;\n }\n get headerTemplate(): TemplateRef<unknown> | null {\n return this.templateHeader || asTemplate(this.headerRef) || ɵfindTemplate(this.templates, 'header');\n }\n get footerTemplate(): TemplateRef<unknown> | null {\n return this.templateFooter || asTemplate(this.footerRef) || ɵfindTemplate(this.templates, 'footer');\n }\n get contentTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.contentRef) || ɵfindTemplate(this.templates, 'content');\n }\n get headlessTemplate(): TemplateRef<unknown> | null {\n return this.templateHeadless || asTemplate(this.headlessRef) || ɵfindTemplate(this.templates, 'headless');\n }\n get closeIconTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.closeIconRef) || ɵfindTemplate(this.templates, 'closeicon');\n }\n get hasFooter(): boolean {\n return !!this.footerTemplate || !!this.footerProjected;\n }\n get labelledBy(): string | null {\n return this.ariaLabelledBy || (this.header || this.headerTemplate ? this.titleId : null);\n }\n /** `topleft` for `top-left` and the like. */\n get positionKey(): string {\n return (this.position || 'center').replace('-', '').toLowerCase();\n }\n /** Position class names of the era; v1 and v2/v3 both use the dashed corner names. */\n get positionClasses(): string {\n const key = this.positionKey;\n if (key === 'center') return '';\n return `wu-dialog-${key} p-dialog-${CORNERS[key] || key}`;\n }\n\n ngOnChanges(): void {\n this.updatePanelStyle();\n }\n\n ngAfterViewChecked(): void {\n if (!this.pendingShow) return;\n const el = this.maskRef?.nativeElement;\n if (!el) return;\n this.pendingShow = false;\n if (!el.open) {\n try {\n if (this._modal) el.showModal();\n else el.show();\n } catch {\n el.setAttribute('open', '');\n }\n }\n if (this._blockScroll ?? this._modal) this.unlockScroll = ɵlockScroll(this.doc);\n // Toasts on screen move back above this modal.\n if (this._modal) this.doc.dispatchEvent(new CustomEvent('wu-modal-open'));\n this.watchBreakpoints();\n if (this._focusOnShow) this.focusFirst();\n // After this check: listeners may change state the parent shows.\n Promise.resolve().then(() => this.onShow.emit());\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.stopResize?.();\n this.unlockScroll?.();\n const el = this.maskRef?.nativeElement;\n if (el?.open) el.close();\n }\n\n /** Closes the dialog and tells the model (`visibleChange`). */\n close(event?: Event): void {\n if (!this._visible) return;\n event?.preventDefault();\n this._visible = false;\n this.visibleChange.emit(false);\n this.beginClose();\n }\n\n toggleMaximize(): void {\n this.maximized = !this.maximized;\n const panel = this.panelRef?.nativeElement;\n if (panel) panel.style.translate = '';\n this.onMaximize.emit({ maximized: this.maximized });\n this.cdr.markForCheck();\n }\n\n // ---------- template events ----------\n\n keydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || event.defaultPrevented) return;\n // Handled here so the browser does not close the <dialog> behind our back.\n event.preventDefault();\n if (this._closeOnEscape && this._closable) this.close(event);\n }\n\n /** The browser's own close request (Escape on some platforms): always ours to decide. */\n cancel(event: Event): void {\n event.preventDefault();\n if (this._closeOnEscape && this._closable) this.close(event);\n }\n\n /** The `<dialog>` closed by itself (a form with method=\"dialog\", or a browser forcing it). */\n nativeClose(): void {\n if (!this._visible || this.leaving) return;\n const el = this.maskRef?.nativeElement;\n if (this._closable) this.close();\n else if (el && !el.open) this._modal ? el.showModal() : el.show();\n }\n\n maskPointerdown(event: PointerEvent): void {\n this.downOnMask = event.target === this.maskRef?.nativeElement;\n }\n\n maskClick(event: MouseEvent): void {\n // Both press and release on the mask: a text selection dragged out of the dialog does not close it.\n const onMask = this.downOnMask && event.target === this.maskRef?.nativeElement;\n this.downOnMask = false;\n if (onMask && this._dismissableMask && this._closable && this._modal) this.close(event);\n }\n\n headerPointerdown(event: PointerEvent): void {\n const panel = this.panelRef?.nativeElement;\n if (!this._draggable || this.maximized || !panel || event.button !== 0) return;\n if ((event.target as HTMLElement).closest('button, a, input, select, textarea')) return;\n event.preventDefault();\n const [x0, y0] = (panel.style.translate || '0px 0px').split(' ').map((v) => parseFloat(v) || 0);\n const startX = event.clientX - x0;\n const startY = event.clientY - y0;\n const move = (e: PointerEvent) => (panel.style.translate = `${e.clientX - startX}px ${e.clientY - startY}px`);\n const up = () => {\n this.doc.removeEventListener('pointermove', move);\n this.doc.removeEventListener('pointerup', up);\n };\n this.doc.addEventListener('pointermove', move);\n this.doc.addEventListener('pointerup', up);\n }\n\n // ---------- internals ----------\n\n private setVisible(v: boolean): void {\n if (v === this._visible) return;\n this._visible = v;\n if (v) this.beginOpen();\n else this.beginClose();\n }\n\n private beginOpen(): void {\n if (this.closeTimer) {\n // Reopened during the fade-out: keep the dialog that is still there.\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n this.leaving = false;\n this.cdr.markForCheck();\n return;\n }\n const active = this.doc.activeElement as HTMLElement | null;\n this.returnFocus = active && active !== this.doc.body ? active : null;\n this.rendered = true;\n this.leaving = false;\n this.pendingShow = true;\n this.cdr.markForCheck();\n }\n\n private beginClose(): void {\n this.pendingShow = false;\n if (!this.rendered || this.closeTimer) return;\n this.leaving = true;\n this.cdr.markForCheck();\n const win = this.doc.defaultView;\n const reduce = !!win?.matchMedia && win.matchMedia('(prefers-reduced-motion: reduce)').matches;\n this.closeTimer = setTimeout(() => this.finishClose(), reduce ? 0 : 120);\n }\n\n private finishClose(): void {\n this.closeTimer = null;\n const el = this.maskRef?.nativeElement;\n const hadFocus = !!el && el.contains(this.doc.activeElement);\n if (el?.open) el.close();\n this.unlockScroll?.();\n this.unlockScroll = null;\n this.stopResize?.();\n this.stopResize = null;\n this.rendered = false;\n this.leaving = false;\n this.maximized = false;\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back && back.isConnected && (hadFocus || this.doc.activeElement === this.doc.body)) back.focus({ preventScroll: true });\n this.cdr.markForCheck();\n this.onHide.emit();\n }\n\n private focusFirst(): void {\n const panel = this.panelRef?.nativeElement;\n if (!panel) return;\n const auto = panel.querySelector<HTMLElement>('[autofocus]');\n // The close button rather than the first field, so phones do not raise the keyboard on open.\n const target = auto || panel.querySelector<HTMLElement>('.wu-dialog-header-actions button') || ɵfocusable(panel)[0] || panel;\n target.focus({ preventScroll: true });\n }\n\n private watchBreakpoints(): void {\n const win = this.doc.defaultView;\n if (!this.breakpoints || !win) return;\n const update = () => {\n const width = this.matchBreakpoint();\n if (width !== this.bpWidth) {\n this.bpWidth = width;\n this.updatePanelStyle();\n this.cdr.markForCheck();\n }\n };\n update();\n win.addEventListener('resize', update, { passive: true });\n this.stopResize = () => win.removeEventListener('resize', update);\n }\n\n private matchBreakpoint(): string | null {\n const win = this.doc.defaultView;\n if (!this.breakpoints || !win?.matchMedia) return null;\n const sorted = Object.entries(this.breakpoints).sort((a, b) => parseFloat(a[0]) - parseFloat(b[0]));\n for (const [max, width] of sorted) if (win.matchMedia(`(max-width: ${max})`).matches) return width;\n return null;\n }\n\n private updatePanelStyle(): void {\n this.panelStyle = this.bpWidth ? { ...(this.style || {}), width: this.bpWidth } : this.style || null;\n }\n}\n","import { NgClass, NgStyle, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { ɵWuDialogBase } from './dialog.base';\n\n/**\n * Dialog: `<wu-dialog header=\"แก้ไขข้อมูล\" [(visible)]=\"open\" [style]=\"{ width: '50vw' }\">…</wu-dialog>`.\n * A native modal <dialog> in the top layer, so no appendTo or z-index; focus stays inside and returns on close.\n * Slots: `<ng-template #footer>` (or `wuTemplate=\"footer\"`, also header, content, headless), or `<wu-footer>`.\n */\n@Component({\n selector: 'wu-dialog',\n standalone: true,\n imports: [NgClass, NgStyle, NgTemplateOutlet],\n templateUrl: './dialog.component.html',\n styleUrl: './dialog.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuDialog extends ɵWuDialogBase {}\n","@if (rendered) {\n <dialog\n #mask\n class=\"wu-dialog-mask p-dialog-mask p-overlay-mask p-overlay-mask-enter\"\n [ngClass]=\"(maskStyleClass || '') + ' ' + positionClasses\"\n [class.wu-dialog-modal]=\"modal\"\n [class.wu-dialog-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div\n #panel\n tabindex=\"-1\"\n class=\"wu-dialog p-dialog p-component\"\n [ngClass]=\"styleClass || ''\"\n [ngStyle]=\"panelStyle\"\n [class.wu-dialog-maximized]=\"maximized\"\n [class.p-dialog-maximized]=\"maximized\"\n [class.wu-dialog-draggable]=\"draggable\"\n [class.wu-dialog-headerless]=\"!showHeader\"\n >\n @if (headlessTemplate) {\n <ng-container [ngTemplateOutlet]=\"headlessTemplate\"></ng-container>\n } @else {\n @if (showHeader) {\n <div class=\"wu-dialog-header p-dialog-header\" (pointerdown)=\"headerPointerdown($event)\">\n @if (headerTemplate) {\n <div class=\"wu-dialog-title p-dialog-title\" [id]=\"titleId\"><ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container></div>\n } @else {\n <span class=\"wu-dialog-title p-dialog-title\" [id]=\"titleId\">{{ header }}</span>\n }\n <div class=\"wu-dialog-header-actions p-dialog-header-actions\">\n @if (maximizable) {\n <button type=\"button\" class=\"wu-dialog-icon p-dialog-maximize-button\" [attr.aria-label]=\"maximized ? t.collapse : t.expand\" (click)=\"toggleMaximize()\">\n @if (maximized ? minimizeIcon : maximizeIcon) {\n <i [class]=\"(maximized ? minimizeIcon : maximizeIcon) || ''\"></i>\n } @else if (maximized) {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M13.5 2.5 9 7M9 3v4h4M2.5 13.5 7 9M7 13V9H3\"></path></svg>\n } @else {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9\"></path></svg>\n }\n </button>\n }\n @if (closable) {\n <button type=\"button\" class=\"wu-dialog-icon p-dialog-close-button\" [attr.aria-label]=\"closeAriaLabel || t.close\" (click)=\"close($event)\">\n @if (closeIconTemplate) {\n <ng-container [ngTemplateOutlet]=\"closeIconTemplate\"></ng-container>\n } @else if (closeIcon) {\n <i [class]=\"closeIcon\"></i>\n } @else {\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n }\n </button>\n }\n </div>\n </div>\n }\n <div class=\"wu-dialog-content p-dialog-content\" [ngClass]=\"contentStyleClass || ''\" [ngStyle]=\"contentStyle || null\">\n <ng-content></ng-content>\n @if (contentTemplate) {\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n }\n </div>\n @if (hasFooter) {\n <div class=\"wu-dialog-footer p-dialog-footer\">\n <ng-content select=\"[wuDialogFooter], wu-footer\"></ng-content>\n @if (footerTemplate) {\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n }\n </div>\n }\n }\n </div>\n </dialog>\n}\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuDialogFooter } from './dialog.base';\nimport { WuDialog } from './dialog.component';\n\n/** For NgModule apps. Also exports `WuTemplate` (`<ng-template wuTemplate=\"footer\">`) and `wu-footer`. */\n@NgModule({\n imports: [WuDialog, WuDialogFooter, WuTemplate],\n exports: [WuDialog, WuDialogFooter, WuTemplate],\n})\nexport class WuDialogModule {}\n","import { DOCUMENT, NgComponentOutlet, NgIf } from '@angular/common';\nimport {\n ApplicationRef,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ComponentRef,\n createComponent,\n EnvironmentInjector,\n inject,\n Injectable,\n Injector,\n Type,\n ViewChild,\n ViewContainerRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { WuDialogFooter } from './dialog.base';\nimport { WuDialog } from './dialog.component';\n\n/**\n * How `WuDialogService.open()` shows a component, and the `data` it gets. Inject it in the opened component:\n * `config = inject(WuDialogConfig)` then `this.config.data`.\n */\nexport class WuDialogConfig<D = unknown> {\n header?: string;\n /** Anything the opened component needs: `inject(WuDialogConfig).data`. */\n data?: D;\n /** `'40rem'`, `'70vw'` … Sets the dialog's width (and `style.width`). */\n width?: string;\n height?: string;\n style?: Record<string, string | number> | null;\n styleClass?: string;\n contentStyle?: Record<string, string | number> | null;\n contentStyleClass?: string;\n /** A component for the footer (it can inject the same WuDialogRef and WuDialogConfig). */\n footer?: Type<unknown>;\n modal?: boolean = true;\n closable?: boolean = true;\n closeOnEscape?: boolean = true;\n dismissableMask?: boolean = false;\n maximizable?: boolean = false;\n draggable?: boolean = false;\n showHeader?: boolean = true;\n focusOnShow?: boolean = true;\n position?: string = 'center';\n breakpoints?: Record<string, string> | null;\n /** Accepted for code moving over; the dialog sits in the top layer, so there is nothing to set. */\n baseZIndex?: unknown;\n appendTo?: unknown;\n}\n\n/**\n * The handle of an opened dialog. `close(result)` closes it; `onClose` (or the `result` promise) brings the result back\n * once it has gone, `undefined` when the user closed it (X, Escape, the mask). Inject it in the opened component.\n */\nexport class WuDialogRef<R = unknown> {\n private readonly closed$ = new Subject<R | undefined>();\n private readonly destroyed$ = new Subject<void>();\n private resolve!: (value: R | undefined) => void;\n /** Emits the result once, after the dialog has closed. */\n readonly onClose: Observable<R | undefined> = this.closed$.asObservable();\n /** Emits once the dialog is gone. */\n readonly onDestroy: Observable<void> = this.destroyed$.asObservable();\n /** The same result as a promise: `const picked = await ref.result;`. */\n readonly result: Promise<R | undefined> = new Promise((resolve) => (this.resolve = resolve));\n /** The opened component, once it exists. */\n componentInstance: unknown = null;\n /** @internal Set by the service: hides the dialog with a result. */\n ɵhide: (result: R | undefined) => void = () => undefined;\n private done = false;\n\n /** Closes the dialog; `result` reaches `onClose` and `result`. */\n close(result?: R): void {\n this.ɵhide(result);\n }\n\n /** Removes the dialog at once, with no result. */\n destroy(): void {\n this.ɵfinish(undefined);\n }\n\n /** @internal */\n ɵfinish(result: R | undefined): void {\n if (this.done) return;\n this.done = true;\n this.closed$.next(result);\n this.closed$.complete();\n this.resolve(result);\n this.destroyed$.next();\n this.destroyed$.complete();\n }\n}\n\n/** @internal The dialog around an opened component. */\n@Component({\n selector: 'wu-dynamic-dialog',\n standalone: true,\n imports: [WuDialog, WuDialogFooter, NgComponentOutlet, NgIf],\n template: `\n <wu-dialog\n [header]=\"config.header\"\n [visible]=\"visible\"\n (visibleChange)=\"visibleChange($event)\"\n (onHide)=\"hidden()\"\n [modal]=\"config.modal\"\n [closable]=\"config.closable\"\n [closeOnEscape]=\"config.closeOnEscape\"\n [dismissableMask]=\"config.dismissableMask\"\n [maximizable]=\"config.maximizable\"\n [draggable]=\"config.draggable\"\n [showHeader]=\"config.showHeader\"\n [focusOnShow]=\"config.focusOnShow\"\n [position]=\"config.position || 'center'\"\n [breakpoints]=\"config.breakpoints || null\"\n [style]=\"dialogStyle\"\n [styleClass]=\"config.styleClass || ''\"\n [contentStyle]=\"config.contentStyle || null\"\n [contentStyleClass]=\"config.contentStyleClass || ''\"\n >\n <ng-container #content></ng-container>\n <wu-footer *ngIf=\"config.footer\">\n <ng-container *ngComponentOutlet=\"config.footer; injector: injector\"></ng-container>\n </wu-footer>\n </wu-dialog>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ɵWuDynamicDialog {\n component!: Type<unknown>;\n config!: WuDialogConfig;\n injector!: Injector;\n visible = false;\n dialogStyle: Record<string, string | number> | null = null;\n /** Called once the dialog has gone (after its closing animation). */\n gone: () => void = () => undefined;\n private result: unknown = undefined;\n readonly cdr = inject(ChangeDetectorRef);\n @ViewChild('content', { read: ViewContainerRef, static: true }) private content!: ViewContainerRef;\n\n /** Puts the opened component in the dialog and returns it. */\n create(): ComponentRef<unknown> {\n return this.content.createComponent(this.component, { injector: this.injector });\n }\n\n show(): void {\n const c = this.config;\n this.dialogStyle = { ...(c.width ? { width: c.width } : {}), ...(c.height ? { height: c.height } : {}), ...(c.style || {}) };\n this.visible = true;\n this.cdr.markForCheck();\n }\n\n hide(result: unknown): void {\n this.result = result;\n this.visible = false;\n this.cdr.markForCheck();\n }\n\n visibleChange(open: boolean): void {\n // Closed by the user (X, Escape, the mask): no result.\n if (!open) this.visible = false;\n }\n\n hidden(): void {\n this.gone();\n }\n\n get closedResult(): unknown {\n return this.result;\n }\n}\n\n/**\n * Opens a component of yours in a dialog, without putting `<wu-dialog>` in the template:\n * `const ref = this.dialogs.open(PickStudent, { header: 'เลือกนักเรียน', width: '40rem', data: { room } });`\n * then `ref.onClose.subscribe(student => …)` or `const student = await ref.result`. In the component:\n * `inject(WuDialogConfig).data` and `inject(WuDialogRef).close(student)`. Dialogs stack; Escape closes the top one.\n */\n@Injectable({ providedIn: 'root' })\nexport class WuDialogService {\n private readonly appRef = inject(ApplicationRef);\n private readonly environment = inject(EnvironmentInjector);\n private readonly injector = inject(Injector);\n private readonly doc = inject(DOCUMENT);\n private readonly open$ = new Set<WuDialogRef<unknown>>();\n\n /** The dialogs open now, oldest first. */\n get dialogs(): WuDialogRef<unknown>[] {\n return [...this.open$];\n }\n\n open<T, R = unknown, D = unknown>(component: Type<T>, config: WuDialogConfig<D> = {}): WuDialogRef<R> {\n const ref = new WuDialogRef<R>();\n const cfg = Object.assign(new WuDialogConfig<D>(), config);\n const injector = Injector.create({\n providers: [\n { provide: WuDialogRef, useValue: ref },\n { provide: WuDialogConfig, useValue: cfg },\n ],\n parent: this.injector,\n });\n const host: ComponentRef<ɵWuDynamicDialog> = createComponent(ɵWuDynamicDialog, { environmentInjector: this.environment, elementInjector: injector });\n const dialog = host.instance;\n dialog.component = component;\n dialog.config = cfg as WuDialogConfig;\n dialog.injector = injector;\n const remove = () => {\n if (!this.open$.has(ref as WuDialogRef<unknown>)) return;\n this.open$.delete(ref as WuDialogRef<unknown>);\n this.appRef.detachView(host.hostView);\n host.destroy();\n ref.ɵfinish(dialog.closedResult as R | undefined);\n };\n dialog.gone = remove;\n ref.ɵhide = (result) => dialog.hide(result);\n // destroy(): straight away, no animation.\n ref.onDestroy.subscribe(() => remove());\n this.open$.add(ref as WuDialogRef<unknown>);\n this.appRef.attachView(host.hostView);\n this.doc.body.appendChild(host.location.nativeElement);\n host.changeDetectorRef.detectChanges();\n ref.componentInstance = dialog.create().instance;\n dialog.show();\n host.changeDetectorRef.detectChanges();\n return ref;\n }\n\n /** Closes every open dialog with no result. */\n closeAll(): void {\n for (const ref of [...this.open$].reverse()) ref.close();\n }\n}\n\n/** Older names, for code moving over: `DialogService`, `DynamicDialogRef`, `DynamicDialogConfig`. */\nexport { WuDialogService as DialogService, WuDialogRef as DynamicDialogRef, WuDialogConfig as DynamicDialogConfig };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵtoBool","ɵuniqueId","ɵrefreshOnTranslation","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵfindTemplate","ɵlockScroll","ɵfocusable"],"mappings":";;;;;;AAiCA;MAEa,cAAc,CAAA;+GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA,EAAE,QAAQ,EAAE,6BAA6B,EAAE,UAAU,EAAE,IAAI,EAAE;;AAGxE,MAAM,UAAU,GAAG,CAAC,CAAU,MAAmC,CAAC,YAAY,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC;AACrG,MAAM,OAAO,GAA2B,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE;AAE9I;;;AAGG;MAEmB,aAAa,CAAA;IAGjC,I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