@area8975/ui 0.1.0 → 0.1.1-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/area8975-ui.mjs +50 -197
- package/fesm2022/area8975-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/types/area8975-ui.d.ts +19 -20
package/fesm2022/area8975-ui.mjs
CHANGED
|
@@ -6395,103 +6395,17 @@ const UI_LOADING_TYPES = [
|
|
|
6395
6395
|
"bouncing-dots",
|
|
6396
6396
|
"fading-dots"
|
|
6397
6397
|
];
|
|
6398
|
-
var UiModalCloseButtonComponent = class UiModalCloseButtonComponent {
|
|
6399
|
-
isOpen = model.required(...ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []);
|
|
6400
|
-
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
6401
|
-
minVersion: "12.0.0",
|
|
6402
|
-
version: "22.2.1",
|
|
6403
|
-
ngImport: i0,
|
|
6404
|
-
type: UiModalCloseButtonComponent,
|
|
6405
|
-
deps: [],
|
|
6406
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
6407
|
-
});
|
|
6408
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6409
|
-
minVersion: "17.1.0",
|
|
6410
|
-
version: "22.2.1",
|
|
6411
|
-
type: UiModalCloseButtonComponent,
|
|
6412
|
-
isStandalone: true,
|
|
6413
|
-
selector: "ui-modal-close-btn",
|
|
6414
|
-
inputs: { isOpen: {
|
|
6415
|
-
classPropertyName: "isOpen",
|
|
6416
|
-
publicName: "isOpen",
|
|
6417
|
-
isSignal: true,
|
|
6418
|
-
isRequired: true,
|
|
6419
|
-
transformFunction: null
|
|
6420
|
-
} },
|
|
6421
|
-
outputs: { isOpen: "isOpenChange" },
|
|
6422
|
-
ngImport: i0,
|
|
6423
|
-
template: "<ui-button\n appearance=\"white\"\n intent=\"secondary\"\n classes=\"p-2! border-transparent!\"\n (click)=\"isOpen.set(false)\"\n>\n <ng-icon name=\"heroXMark\" strokeWidth=\"2.5\" />\n</ui-button>\n",
|
|
6424
|
-
dependencies: [{
|
|
6425
|
-
kind: "component",
|
|
6426
|
-
type: UiButtonComponent,
|
|
6427
|
-
selector: "ui-button",
|
|
6428
|
-
inputs: [
|
|
6429
|
-
"appearance",
|
|
6430
|
-
"intent",
|
|
6431
|
-
"size",
|
|
6432
|
-
"classes",
|
|
6433
|
-
"type",
|
|
6434
|
-
"ariaLabel",
|
|
6435
|
-
"disabled",
|
|
6436
|
-
"loading"
|
|
6437
|
-
]
|
|
6438
|
-
}, {
|
|
6439
|
-
kind: "component",
|
|
6440
|
-
type: NgIcon,
|
|
6441
|
-
selector: "ng-icon",
|
|
6442
|
-
inputs: [
|
|
6443
|
-
"name",
|
|
6444
|
-
"svg",
|
|
6445
|
-
"size",
|
|
6446
|
-
"strokeWidth",
|
|
6447
|
-
"color"
|
|
6448
|
-
]
|
|
6449
|
-
}]
|
|
6450
|
-
});
|
|
6451
|
-
};
|
|
6452
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
6453
|
-
minVersion: "12.0.0",
|
|
6454
|
-
version: "22.2.1",
|
|
6455
|
-
ngImport: i0,
|
|
6456
|
-
type: UiModalCloseButtonComponent,
|
|
6457
|
-
decorators: [{
|
|
6458
|
-
type: Component,
|
|
6459
|
-
args: [{
|
|
6460
|
-
selector: "ui-modal-close-btn",
|
|
6461
|
-
imports: [UiButtonComponent, NgIcon],
|
|
6462
|
-
template: "<ui-button\n appearance=\"white\"\n intent=\"secondary\"\n classes=\"p-2! border-transparent!\"\n (click)=\"isOpen.set(false)\"\n>\n <ng-icon name=\"heroXMark\" strokeWidth=\"2.5\" />\n</ui-button>\n"
|
|
6463
|
-
}]
|
|
6464
|
-
}],
|
|
6465
|
-
propDecorators: { isOpen: [{
|
|
6466
|
-
type: i0.Input,
|
|
6467
|
-
args: [{
|
|
6468
|
-
isSignal: true,
|
|
6469
|
-
alias: "isOpen",
|
|
6470
|
-
required: true
|
|
6471
|
-
}]
|
|
6472
|
-
}, {
|
|
6473
|
-
type: i0.Output,
|
|
6474
|
-
args: ["isOpenChange"]
|
|
6475
|
-
}] }
|
|
6476
|
-
});
|
|
6477
6398
|
var UiModalComponent = class UiModalComponent {
|
|
6478
|
-
isOpen = model.required(...ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []);
|
|
6479
|
-
closeBehaviour = input("whenClickOutside", ...ngDevMode ? [{ debugName: "closeBehaviour" }] : /* istanbul ignore next */ []);
|
|
6480
|
-
title = input("", ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
6481
|
-
classes = input("", ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
6482
|
-
headerElement = contentChild("header", {
|
|
6483
|
-
...ngDevMode ? { debugName: "headerElement" } : /* istanbul ignore next */ {},
|
|
6484
|
-
descendants: false
|
|
6485
|
-
});
|
|
6486
|
-
footerElement = contentChild("footer", {
|
|
6487
|
-
...ngDevMode ? { debugName: "footerElement" } : /* istanbul ignore next */ {},
|
|
6488
|
-
descendants: false
|
|
6489
|
-
});
|
|
6490
6399
|
panelElement = viewChild("panel", {
|
|
6491
6400
|
...ngDevMode ? { debugName: "panelElement" } : /* istanbul ignore next */ {},
|
|
6492
6401
|
read: ElementRef
|
|
6493
6402
|
});
|
|
6494
|
-
|
|
6403
|
+
open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
6404
|
+
closeBehaviour = input("whenClickOutside", ...ngDevMode ? [{ debugName: "closeBehaviour" }] : /* istanbul ignore next */ []);
|
|
6405
|
+
toggle = () => this.open.update((value) => !value);
|
|
6406
|
+
close = () => this.open.set(false);
|
|
6407
|
+
size = input("sm", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
6408
|
+
generatedSizeClasses = computed(() => `ui-modal--${this.size()}`, ...ngDevMode ? [{ debugName: "generatedSizeClasses" }] : /* istanbul ignore next */ []);
|
|
6495
6409
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
6496
6410
|
minVersion: "12.0.0",
|
|
6497
6411
|
version: "22.2.1",
|
|
@@ -6507,11 +6421,11 @@ var UiModalComponent = class UiModalComponent {
|
|
|
6507
6421
|
isStandalone: true,
|
|
6508
6422
|
selector: "ui-modal",
|
|
6509
6423
|
inputs: {
|
|
6510
|
-
|
|
6511
|
-
classPropertyName: "
|
|
6512
|
-
publicName: "
|
|
6424
|
+
open: {
|
|
6425
|
+
classPropertyName: "open",
|
|
6426
|
+
publicName: "open",
|
|
6513
6427
|
isSignal: true,
|
|
6514
|
-
isRequired:
|
|
6428
|
+
isRequired: false,
|
|
6515
6429
|
transformFunction: null
|
|
6516
6430
|
},
|
|
6517
6431
|
closeBehaviour: {
|
|
@@ -6521,33 +6435,15 @@ var UiModalComponent = class UiModalComponent {
|
|
|
6521
6435
|
isRequired: false,
|
|
6522
6436
|
transformFunction: null
|
|
6523
6437
|
},
|
|
6524
|
-
|
|
6525
|
-
classPropertyName: "
|
|
6526
|
-
publicName: "
|
|
6527
|
-
isSignal: true,
|
|
6528
|
-
isRequired: false,
|
|
6529
|
-
transformFunction: null
|
|
6530
|
-
},
|
|
6531
|
-
classes: {
|
|
6532
|
-
classPropertyName: "classes",
|
|
6533
|
-
publicName: "classes",
|
|
6438
|
+
size: {
|
|
6439
|
+
classPropertyName: "size",
|
|
6440
|
+
publicName: "size",
|
|
6534
6441
|
isSignal: true,
|
|
6535
6442
|
isRequired: false,
|
|
6536
6443
|
transformFunction: null
|
|
6537
6444
|
}
|
|
6538
6445
|
},
|
|
6539
|
-
outputs: {
|
|
6540
|
-
queries: [{
|
|
6541
|
-
propertyName: "headerElement",
|
|
6542
|
-
first: true,
|
|
6543
|
-
predicate: ["header"],
|
|
6544
|
-
isSignal: true
|
|
6545
|
-
}, {
|
|
6546
|
-
propertyName: "footerElement",
|
|
6547
|
-
first: true,
|
|
6548
|
-
predicate: ["footer"],
|
|
6549
|
-
isSignal: true
|
|
6550
|
-
}],
|
|
6446
|
+
outputs: { open: "openChange" },
|
|
6551
6447
|
viewQueries: [{
|
|
6552
6448
|
propertyName: "panelElement",
|
|
6553
6449
|
first: true,
|
|
@@ -6556,44 +6452,26 @@ var UiModalComponent = class UiModalComponent {
|
|
|
6556
6452
|
read: ElementRef,
|
|
6557
6453
|
isSignal: true
|
|
6558
6454
|
}],
|
|
6455
|
+
exportAs: ["uiModal"],
|
|
6559
6456
|
ngImport: i0,
|
|
6560
|
-
template: "@if (
|
|
6561
|
-
styles: ["@layer properties;.ui-modal--backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;overflow-y:auto;background-color:color-mix(in srgb,oklch(21% .034 264.665) 50%,transparent)}@supports (color: color-mix(in lab,red,red)){.ui-modal--backdrop{background-color:color-mix(in oklab,var(--color-gray-900, oklch(21% .034 264.665)) 50%,transparent)}}.ui-modal{pointer-events:auto;display:flex;max-height:100vh;flex-direction:column;border-radius:var(--radius-xl, .75rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--overlay-line);background-color:var(--overlay);--tw-shadow: 0 1px var(--tw-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
6562
|
-
dependencies: [
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
},
|
|
6579
|
-
{
|
|
6580
|
-
kind: "component",
|
|
6581
|
-
type: UiModalCloseButtonComponent,
|
|
6582
|
-
selector: "ui-modal-close-btn",
|
|
6583
|
-
inputs: ["isOpen"],
|
|
6584
|
-
outputs: ["isOpenChange"]
|
|
6585
|
-
},
|
|
6586
|
-
{
|
|
6587
|
-
kind: "directive",
|
|
6588
|
-
type: NgTemplateOutlet,
|
|
6589
|
-
selector: "[ngTemplateOutlet]",
|
|
6590
|
-
inputs: [
|
|
6591
|
-
"ngTemplateOutletContext",
|
|
6592
|
-
"ngTemplateOutlet",
|
|
6593
|
-
"ngTemplateOutletInjector"
|
|
6594
|
-
]
|
|
6595
|
-
}
|
|
6596
|
-
]
|
|
6457
|
+
template: "@if (open()) {\n <div class=\"ui-modal--backdrop\">\n <ui-overlay\n [isOpen]=\"open\"\n [closeBehaviour]=\"closeBehaviour()\"\n [content]=\"panelElement()\"\n tabindex=\"-1\"\n role=\"dialog\"\n >\n <div #panel [class]=\"generatedSizeClasses()\">\n <div class=\"ui-modal--content\">\n <ng-content />\n </div>\n </div>\n </ui-overlay>\n </div>\n}\n",
|
|
6458
|
+
styles: ["@layer properties;.ui-modal--backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;overflow-y:auto;background-color:color-mix(in srgb,oklch(21% .034 264.665) 50%,transparent)}@supports (color: color-mix(in lab,red,red)){.ui-modal--backdrop{background-color:color-mix(in oklab,var(--color-gray-900, oklch(21% .034 264.665)) 50%,transparent)}}.ui-modal--content{pointer-events:auto;display:flex;max-height:100vh;flex-direction:column;border-radius:var(--radius-xl, .75rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--overlay-line);background-color:var(--overlay);--tw-shadow: 0 1px var(--tw-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(width>=40rem){.ui-modal--sm{margin-inline:auto;width:100%;max-width:var(--container-lg, 32rem)}}@media(width>=48rem){.ui-modal--md{margin-inline:auto;width:100%;max-width:var(--container-2xl, 42rem)}}@media(width>=64rem){.ui-modal--lg{margin-inline:auto;width:100%;max-width:var(--container-4xl, 56rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
6459
|
+
dependencies: [{
|
|
6460
|
+
kind: "component",
|
|
6461
|
+
type: UiOverlayComponent,
|
|
6462
|
+
selector: "ui-overlay",
|
|
6463
|
+
inputs: [
|
|
6464
|
+
"content",
|
|
6465
|
+
"anchor",
|
|
6466
|
+
"closeBehaviour",
|
|
6467
|
+
"isOpen",
|
|
6468
|
+
"placement",
|
|
6469
|
+
"offset",
|
|
6470
|
+
"viewportPadding",
|
|
6471
|
+
"matchWidth"
|
|
6472
|
+
],
|
|
6473
|
+
exportAs: ["uiOverlay"]
|
|
6474
|
+
}]
|
|
6597
6475
|
});
|
|
6598
6476
|
};
|
|
6599
6477
|
i0.ɵɵngDeclareClassMetadata({
|
|
@@ -6605,26 +6483,30 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6605
6483
|
type: Component,
|
|
6606
6484
|
args: [{
|
|
6607
6485
|
selector: "ui-modal",
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
],
|
|
6613
|
-
template: "@if (isOpen()) {\n <div\n class=\"group z-50 fixed inset-0 flex justify-center items-center bg-black/40 starting:opacity-0 p-4 transition-opacity duration-150 ease-out\"\n animate.leave=\"fs-modal--leaving opacity-0\"\n >\n <ui-overlay\n [isOpen]=\"isOpen\"\n [closeBehaviour]=\"closeBehaviour()\"\n [content]=\"panelElement()\"\n tabIndex=\"-1\"\n role=\"dialog\"\n aria-modal=\"true\"\n class=\"block max-w-full starting:scale-95 group-[.fs-modal--leaving]:scale-95 transition duration-150 ease-out\"\n >\n <div #panel [class]=\"generatedClasses()\">\n <div class=\"flex flex-col max-h-[calc(100dvh-2rem-2px)]\">\n <header class=\"flex justify-between items-center gap-x-5 p-5 border-neutral border-b shrink-0\">\n @if (headerElement()) {\n <ng-container *ngTemplateOutlet=\"headerElement()\" />\n } @else {\n <span class=\"ui-text-h3\">{{ title() }}</span>\n <ui-modal-close-btn [(isOpen)]=\"isOpen\" />\n }\n </header>\n <div class=\"flex-1 min-h-0 overflow-auto\">\n <ng-content />\n </div>\n\n @if (footerElement()) {\n <footer class=\"flex justify-end items-center gap-2.5 p-5 shrink-0\">\n <ng-container *ngTemplateOutlet=\"footerElement()\" />\n </footer>\n }\n </div>\n </div>\n </ui-overlay>\n </div>\n}\n",
|
|
6614
|
-
styles: ["@layer properties;.ui-modal--backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;overflow-y:auto;background-color:color-mix(in srgb,oklch(21% .034 264.665) 50%,transparent)}@supports (color: color-mix(in lab,red,red)){.ui-modal--backdrop{background-color:color-mix(in oklab,var(--color-gray-900, oklch(21% .034 264.665)) 50%,transparent)}}.ui-modal{pointer-events:auto;display:flex;max-height:100vh;flex-direction:column;border-radius:var(--radius-xl, .75rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--overlay-line);background-color:var(--overlay);--tw-shadow: 0 1px var(--tw-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
6486
|
+
exportAs: "uiModal",
|
|
6487
|
+
imports: [UiOverlayComponent],
|
|
6488
|
+
template: "@if (open()) {\n <div class=\"ui-modal--backdrop\">\n <ui-overlay\n [isOpen]=\"open\"\n [closeBehaviour]=\"closeBehaviour()\"\n [content]=\"panelElement()\"\n tabindex=\"-1\"\n role=\"dialog\"\n >\n <div #panel [class]=\"generatedSizeClasses()\">\n <div class=\"ui-modal--content\">\n <ng-content />\n </div>\n </div>\n </ui-overlay>\n </div>\n}\n",
|
|
6489
|
+
styles: ["@layer properties;.ui-modal--backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;overflow-y:auto;background-color:color-mix(in srgb,oklch(21% .034 264.665) 50%,transparent)}@supports (color: color-mix(in lab,red,red)){.ui-modal--backdrop{background-color:color-mix(in oklab,var(--color-gray-900, oklch(21% .034 264.665)) 50%,transparent)}}.ui-modal--content{pointer-events:auto;display:flex;max-height:100vh;flex-direction:column;border-radius:var(--radius-xl, .75rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--overlay-line);background-color:var(--overlay);--tw-shadow: 0 1px var(--tw-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(width>=40rem){.ui-modal--sm{margin-inline:auto;width:100%;max-width:var(--container-lg, 32rem)}}@media(width>=48rem){.ui-modal--md{margin-inline:auto;width:100%;max-width:var(--container-2xl, 42rem)}}@media(width>=64rem){.ui-modal--lg{margin-inline:auto;width:100%;max-width:var(--container-4xl, 56rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
6615
6490
|
}]
|
|
6616
6491
|
}],
|
|
6617
6492
|
propDecorators: {
|
|
6618
|
-
|
|
6493
|
+
panelElement: [{
|
|
6494
|
+
type: i0.ViewChild,
|
|
6495
|
+
args: ["panel", {
|
|
6496
|
+
read: ElementRef,
|
|
6497
|
+
isSignal: true
|
|
6498
|
+
}]
|
|
6499
|
+
}],
|
|
6500
|
+
open: [{
|
|
6619
6501
|
type: i0.Input,
|
|
6620
6502
|
args: [{
|
|
6621
6503
|
isSignal: true,
|
|
6622
|
-
alias: "
|
|
6623
|
-
required:
|
|
6504
|
+
alias: "open",
|
|
6505
|
+
required: false
|
|
6624
6506
|
}]
|
|
6625
6507
|
}, {
|
|
6626
6508
|
type: i0.Output,
|
|
6627
|
-
args: ["
|
|
6509
|
+
args: ["openChange"]
|
|
6628
6510
|
}],
|
|
6629
6511
|
closeBehaviour: [{
|
|
6630
6512
|
type: i0.Input,
|
|
@@ -6634,42 +6516,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6634
6516
|
required: false
|
|
6635
6517
|
}]
|
|
6636
6518
|
}],
|
|
6637
|
-
|
|
6638
|
-
type: i0.Input,
|
|
6639
|
-
args: [{
|
|
6640
|
-
isSignal: true,
|
|
6641
|
-
alias: "title",
|
|
6642
|
-
required: false
|
|
6643
|
-
}]
|
|
6644
|
-
}],
|
|
6645
|
-
classes: [{
|
|
6519
|
+
size: [{
|
|
6646
6520
|
type: i0.Input,
|
|
6647
6521
|
args: [{
|
|
6648
6522
|
isSignal: true,
|
|
6649
|
-
alias: "
|
|
6523
|
+
alias: "size",
|
|
6650
6524
|
required: false
|
|
6651
6525
|
}]
|
|
6652
|
-
}],
|
|
6653
|
-
headerElement: [{
|
|
6654
|
-
type: i0.ContentChild,
|
|
6655
|
-
args: ["header", {
|
|
6656
|
-
descendants: false,
|
|
6657
|
-
isSignal: true
|
|
6658
|
-
}]
|
|
6659
|
-
}],
|
|
6660
|
-
footerElement: [{
|
|
6661
|
-
type: i0.ContentChild,
|
|
6662
|
-
args: ["footer", {
|
|
6663
|
-
descendants: false,
|
|
6664
|
-
isSignal: true
|
|
6665
|
-
}]
|
|
6666
|
-
}],
|
|
6667
|
-
panelElement: [{
|
|
6668
|
-
type: i0.ViewChild,
|
|
6669
|
-
args: ["panel", {
|
|
6670
|
-
read: ElementRef,
|
|
6671
|
-
isSignal: true
|
|
6672
|
-
}]
|
|
6673
6526
|
}]
|
|
6674
6527
|
}
|
|
6675
6528
|
});
|