@xsmusices/ui 1.44.20 → 1.44.22
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/xsmusices-ui.mjs +26 -3
- package/fesm2022/xsmusices-ui.mjs.map +1 -1
- package/index.d.ts +7 -6
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { PLATFORM_ID, Inject, Injectable, inject, Pipe, InjectionToken, NgModule, viewChild, input, output, signal, effect, ChangeDetectionStrategy, Component, computed, DestroyRef, ElementRef, model, Directive, Renderer2, Injector, ViewContainerRef, forwardRef, createComponent, ViewEncapsulation, contentChildren, viewChildren, NgZone, booleanAttribute, contentChild, HostListener } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common';
|
|
4
|
-
import { isPlatformBrowser, formatDate, CommonModule, DatePipe } from '@angular/common';
|
|
4
|
+
import { isPlatformBrowser, formatDate, CommonModule, DOCUMENT, DatePipe } from '@angular/common';
|
|
5
5
|
import * as i1 from '@fortawesome/angular-fontawesome';
|
|
6
6
|
import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
7
7
|
import { BehaviorSubject, Subject, Subscription, of, from, fromEvent, debounceTime as debounceTime$1, distinctUntilChanged as distinctUntilChanged$1, firstValueFrom, filter as filter$1, switchMap as switchMap$1 } from 'rxjs';
|
|
@@ -7926,11 +7926,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImpo
|
|
|
7926
7926
|
], host: { class: 'block w-full' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n [class]=\"getContainerClasses()\"\n class=\"relative flex overflow-hidden transition-all duration-300 uppercase\"\n role=\"region\"\n [attr.aria-label]=\"regionAriaLabel()\"\n>\n @if (config().layout !== 'horizontal') {\n <div class=\"flex flex-col items-center w-full text-center\">\n @if (getDisplayIcon()) {\n <div [class]=\"getIconWrapperClasses()\">\n <xs-icon\n [icon]=\"getDisplayIcon()!\"\n [class]=\"getIconColorClass()\"\n ></xs-icon>\n </div>\n }\n\n <h2 [class]=\"getTitleClasses()\">{{ config().title }}</h2>\n\n @if (config().description) {\n <p [class]=\"getDescriptionClasses()\">\n {{ config().description }}\n </p>\n }\n\n @if (config().buttons?.length) {\n <div\n class=\"flex flex-col items-center gap-3 mt-6 sm:flex-row sm:justify-center\"\n >\n @for (button of config().buttons; track $index) {\n <xs-button\n [label]=\"button.label\"\n [variant]=\"button.variant || 'primary'\"\n [icon]=\"button.icon\"\n [disabled]=\"button.disabled\"\n [loading]=\"button.loading\"\n [isFull]=\"button.isFull\"\n (onClick)=\"onActionClick(button)\"\n class=\"tracking-widest\"\n ></xs-button>\n }\n </div>\n }\n </div>\n }\n\n @if (config().layout === 'horizontal') {\n <div class=\"flex items-center w-full gap-6 text-left\">\n @if (getDisplayIcon()) {\n <div [class]=\"getIconWrapperClasses()\">\n <xs-icon\n [icon]=\"getDisplayIcon()!\"\n [class]=\"getIconColorClass()\"\n ></xs-icon>\n </div>\n }\n\n <div class=\"flex flex-col flex-1 min-w-0\">\n <h2 [class]=\"getTitleClasses()\" class=\"mb-0.5\">\n {{ config().title }}\n </h2>\n @if (config().description) {\n <p [class]=\"getDescriptionClasses()\" class=\"mb-0\">\n {{ config().description }}\n </p>\n }\n </div>\n\n @if (config().buttons?.length) {\n <div class=\"flex items-center flex-shrink-0 gap-3 ml-4\">\n @for (button of config().buttons; track $index) {\n <xs-button\n [label]=\"button.label\"\n [variant]=\"button.variant || 'outline'\"\n [icon]=\"button.icon\"\n (onClick)=\"onActionClick(button)\"\n ></xs-button>\n }\n </div>\n }\n </div>\n }\n</div>\n" }]
|
|
7927
7927
|
}], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], regionAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "regionAriaLabel", required: false }] }], actionClick: [{ type: i0.Output, args: ["actionClick"] }] } });
|
|
7928
7928
|
|
|
7929
|
+
/**
|
|
7930
|
+
* Contador de modales abiertos: bloquea el scroll del body mientras haya al
|
|
7931
|
+
* menos uno visible y lo restaura al cerrar el último (hotfix XS-882).
|
|
7932
|
+
*/
|
|
7933
|
+
let openModalCount = 0;
|
|
7934
|
+
function lockBodyScroll(documentRef) {
|
|
7935
|
+
if (!documentRef)
|
|
7936
|
+
return;
|
|
7937
|
+
openModalCount++;
|
|
7938
|
+
documentRef.body.classList.add('modal-open');
|
|
7939
|
+
}
|
|
7940
|
+
function unlockBodyScroll() {
|
|
7941
|
+
openModalCount = Math.max(0, openModalCount - 1);
|
|
7942
|
+
if (openModalCount > 0)
|
|
7943
|
+
return;
|
|
7944
|
+
const body = typeof document !== 'undefined' ? document.body : null;
|
|
7945
|
+
body?.classList.remove('modal-open');
|
|
7946
|
+
}
|
|
7929
7947
|
class XSModalComponent {
|
|
7930
7948
|
injector = inject(Injector);
|
|
7931
7949
|
dynamicContentPlaceholder = viewChild.required('dynamicContentPlaceholder', { read: ViewContainerRef });
|
|
7932
7950
|
destroyRef = inject(DestroyRef);
|
|
7933
7951
|
hostRef = inject(ElementRef);
|
|
7952
|
+
document = inject(DOCUMENT, { optional: true });
|
|
7934
7953
|
translateService = inject(XSTranslateService);
|
|
7935
7954
|
langVersion = signal(0, ...(ngDevMode ? [{ debugName: "langVersion" }] : []));
|
|
7936
7955
|
platformId = inject(PLATFORM_ID);
|
|
@@ -7972,6 +7991,7 @@ class XSModalComponent {
|
|
|
7972
7991
|
this.footerSyncEffect?.destroy();
|
|
7973
7992
|
this.destroyInjectedComponent();
|
|
7974
7993
|
this.modalResult.complete();
|
|
7994
|
+
unlockBodyScroll();
|
|
7975
7995
|
});
|
|
7976
7996
|
}
|
|
7977
7997
|
destroyInjectedComponent() {
|
|
@@ -7986,6 +8006,9 @@ class XSModalComponent {
|
|
|
7986
8006
|
data, type, title, subTitle, buttons, _hasOverflow, _closeOnBackdropClick, _showCloseButton, _closeLabel, _contentPadding, _panelSize) {
|
|
7987
8007
|
const placeholder = this.dynamicContentPlaceholder();
|
|
7988
8008
|
placeholder?.clear();
|
|
8009
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
8010
|
+
lockBodyScroll(this.document);
|
|
8011
|
+
}
|
|
7989
8012
|
this.injectedComponentRef = placeholder.createComponent(componentType, {
|
|
7990
8013
|
injector: this.injector,
|
|
7991
8014
|
});
|
|
@@ -8159,14 +8182,14 @@ class XSModalComponent {
|
|
|
8159
8182
|
return this.translateService.translate(key);
|
|
8160
8183
|
}
|
|
8161
8184
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8162
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSModalComponent, isStandalone: true, selector: "xs-modal", host: { attributes: { "xs-modal-host": "" }, listeners: { "document:keydown.escape": "onEscapeKey($event)" } }, viewQueries: [{ propertyName: "dynamicContentPlaceholder", first: true, predicate: ["dynamicContentPlaceholder"], descendants: true, read: ViewContainerRef, isSignal: true }], ngImport: i0, template: "<div\n class=\"modal-overlay\"\n role=\"dialog\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"modalTitle() || translate('MODAL.DIALOG_LABEL')\"\n [ngClass]=\"{\n 'bottom-sheet': currentModalType() === 'bottom-sheet',\n centered: currentModalType() === 'centered',\n 'side-panel': currentModalType() === 'side-panel',\n }\"\n (mousedown)=\"onBackdropMouseDown($event)\"\n>\n <div\n data-xs-modal-panel\n tabindex=\"-1\"\n class=\"relative bg-black shadow-lg max-h-[
|
|
8185
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSModalComponent, isStandalone: true, selector: "xs-modal", host: { attributes: { "xs-modal-host": "" }, listeners: { "document:keydown.escape": "onEscapeKey($event)" } }, viewQueries: [{ propertyName: "dynamicContentPlaceholder", first: true, predicate: ["dynamicContentPlaceholder"], descendants: true, read: ViewContainerRef, isSignal: true }], ngImport: i0, template: "<div\n class=\"modal-overlay\"\n role=\"dialog\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"modalTitle() || translate('MODAL.DIALOG_LABEL')\"\n [ngClass]=\"{\n 'bottom-sheet': currentModalType() === 'bottom-sheet',\n centered: currentModalType() === 'centered',\n 'side-panel': currentModalType() === 'side-panel',\n }\"\n (mousedown)=\"onBackdropMouseDown($event)\"\n>\n <div\n data-xs-modal-panel\n tabindex=\"-1\"\n class=\"relative bg-black shadow-lg max-h-[92dvh] flex flex-col\"\n [class.p-4]=\"contentPadding() === 'default'\"\n [class.p-0]=\"contentPadding() === 'none'\"\n [ngClass]=\"{\n 'modal-bottom-sheet': currentModalType() === 'bottom-sheet',\n 'modal-centered': currentModalType() === 'centered',\n 'modal-side-panel': currentModalType() === 'side-panel',\n 'modal-side-panel-sm': currentModalType() === 'side-panel' && panelSize() === 'sm',\n 'modal-side-panel-md': currentModalType() === 'side-panel' && panelSize() === 'md',\n 'modal-side-panel-lg': currentModalType() === 'side-panel' && panelSize() === 'lg',\n 'animate-slide-up':\n isVisible() && currentModalType() === 'bottom-sheet',\n 'animate-slide-down':\n !isVisible() && currentModalType() === 'bottom-sheet',\n 'animate-zoom-in':\n isVisible() && currentModalType() === 'centered',\n 'animate-slide-in-right':\n isVisible() && currentModalType() === 'side-panel',\n 'animate-slide-out-right':\n !isVisible() && currentModalType() === 'side-panel',\n }\"\n role=\"document\"\n (mousedown)=\"$event.stopPropagation()\"\n (mouseup)=\"$event.stopPropagation()\"\n (animationend)=\"onAnimationEnd()\"\n >\n @if (currentModalType() === 'bottom-sheet') {\n <div\n class=\"flex justify-center p-2\"\n (mousedown)=\"$event.stopPropagation()\"\n (mouseup)=\"$event.stopPropagation()\"\n >\n <div class=\"w-10 h-1 bg-gray-300 rounded-full\"></div>\n </div>\n }\n @if (modalTitle()) {\n <div\n class=\"modal-header px-4 pb-2 text-center\"\n (mousedown)=\"$event.stopPropagation()\"\n (mouseup)=\"$event.stopPropagation()\"\n >\n <h2 class=\"text-xl font-bold text-white\">\n {{ modalTitle() }}\n </h2>\n @if (modalSubTitle()) {\n <p class=\"text-sm text-gray-300\">\n {{ modalSubTitle() }}\n </p>\n }\n </div>\n }\n @if (showCloseButton()) {\n <button\n type=\"button\"\n class=\"modal-close-btn\"\n (click)=\"close()\"\n [attr.aria-label]=\"closeLabel() || translate('MODAL.CLOSE')\"\n >\n <span aria-hidden=\"true\">\u00D7</span>\n </button>\n }\n\n <div class=\"flex-1 px-2 overflow-y-auto overflow-x-hidden\">\n <ng-template #dynamicContentPlaceholder></ng-template>\n </div>\n\n @if (buttons() && buttons().length > 0) {\n <div\n class=\"modal-footer grid grid-cols-12 gap-2 pt-4 mt-2 bg-black border-t border-zinc-800/30\"\n >\n @for (button of buttons(); track button.id ?? $index) {\n <xs-button\n [id]=\"\n button.id\n ? button.id\n : buttons().indexOf(button).toString()\n \"\n (click)=\"handleButtonAction(button.action!)\"\n [variant]=\"\n button.variant ? button.variant : 'primary'\n \"\n [layout]=\"button.layout ? button.layout : 'between'\"\n [isFull]=\"true\"\n [disabled]=\"button.disabled ?? false\"\n [loading]=\"button.loading ?? false\"\n [icon]=\"button.icon\"\n [label]=\"button.label\"\n [ngClass]=\"getButtonClass(button)\"\n >\n </xs-button>\n }\n </div>\n }\n </div>\n</div>\n", styles: [".modal-overlay{position:fixed;inset:0;z-index:10000;display:flex;justify-content:center;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .5}.modal-bottom-sheet{z-index:10001;width:100%;max-width:28rem;border-top-left-radius:1rem;border-top-right-radius:1rem}.modal-overlay.bottom-sheet{align-items:flex-end}.modal-centered{z-index:10001;margin:1rem;width:100%;max-width:32rem;border-radius:.75rem}.modal-overlay.centered{align-items:center}.modal-footer{padding-bottom:max(1rem,env(safe-area-inset-bottom,0px));padding-left:max(1rem,env(safe-area-inset-left,0px));padding-right:max(1rem,env(safe-area-inset-right,0px))}.modal-overlay.side-panel .modal-header{padding-top:max(.5rem,env(safe-area-inset-top,0px))}.modal-close-btn{position:absolute;top:.75rem;right:.75rem;z-index:10;display:flex;height:2.25rem;width:2.25rem;align-items:center;justify-content:center;border-radius:9999px;font-size:1.5rem;line-height:2rem;line-height:1;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.modal-close-btn:hover{background-color:#27272a99;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.modal-close-btn:focus-visible{outline-width:2px;outline-color:#fff}.modal-overlay.side-panel .modal-close-btn{top:max(.75rem,env(safe-area-inset-top,0px));right:max(.75rem,env(safe-area-inset-right,0px))}.modal-side-panel{z-index:10001;margin:0;height:100vh;max-height:100vh;width:100%;border-radius:0;border-left-width:1px;--tw-border-opacity: 1;border-color:rgb(39 39 42 / var(--tw-border-opacity, 1));height:100dvh;max-height:100dvh}.modal-side-panel,.modal-side-panel-sm,.modal-side-panel-md,.modal-side-panel-lg{width:100%}@media(min-width:640px){.modal-side-panel-sm{max-width:28rem}.modal-side-panel-md{max-width:32rem}.modal-side-panel-lg,.modal-side-panel{max-width:36rem}}@media(min-width:1024px){.modal-side-panel{max-width:42rem}}.modal-overlay.side-panel{align-items:stretch;justify-content:flex-end;padding:0}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes zoomIn{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}@keyframes slideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slideOutRight{0%{transform:translate(0)}to{transform:translate(100%)}}.animate-slide-in-right{animation:slideInRight .3s ease-out forwards}.animate-slide-out-right{animation:slideOutRight .3s ease-in forwards}.animate-zoom-in{animation:zoomIn .3s ease-out forwards}.animate-slide-up{animation:slideUp .3s ease-out forwards}.animate-slide-down{animation:slideDown .3s ease-in forwards}:host h2{text-transform:uppercase}:host-context(xs-button) button{text-transform:uppercase}.close-button{position:absolute;top:.75rem;right:.75rem;cursor:pointer;font-size:1.5rem;line-height:2rem;font-weight:700;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.close-button:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.modal-open{overflow:hidden}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8163
8186
|
}
|
|
8164
8187
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSModalComponent, decorators: [{
|
|
8165
8188
|
type: Component,
|
|
8166
8189
|
args: [{ selector: 'xs-modal', imports: [CommonModule, XSButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
8167
8190
|
'xs-modal-host': '',
|
|
8168
8191
|
'(document:keydown.escape)': 'onEscapeKey($event)',
|
|
8169
|
-
}, template: "<div\n class=\"modal-overlay\"\n role=\"dialog\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"modalTitle() || translate('MODAL.DIALOG_LABEL')\"\n [ngClass]=\"{\n 'bottom-sheet': currentModalType() === 'bottom-sheet',\n centered: currentModalType() === 'centered',\n 'side-panel': currentModalType() === 'side-panel',\n }\"\n (mousedown)=\"onBackdropMouseDown($event)\"\n>\n <div\n data-xs-modal-panel\n tabindex=\"-1\"\n class=\"relative bg-black shadow-lg max-h-[
|
|
8192
|
+
}, template: "<div\n class=\"modal-overlay\"\n role=\"dialog\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"modalTitle() || translate('MODAL.DIALOG_LABEL')\"\n [ngClass]=\"{\n 'bottom-sheet': currentModalType() === 'bottom-sheet',\n centered: currentModalType() === 'centered',\n 'side-panel': currentModalType() === 'side-panel',\n }\"\n (mousedown)=\"onBackdropMouseDown($event)\"\n>\n <div\n data-xs-modal-panel\n tabindex=\"-1\"\n class=\"relative bg-black shadow-lg max-h-[92dvh] flex flex-col\"\n [class.p-4]=\"contentPadding() === 'default'\"\n [class.p-0]=\"contentPadding() === 'none'\"\n [ngClass]=\"{\n 'modal-bottom-sheet': currentModalType() === 'bottom-sheet',\n 'modal-centered': currentModalType() === 'centered',\n 'modal-side-panel': currentModalType() === 'side-panel',\n 'modal-side-panel-sm': currentModalType() === 'side-panel' && panelSize() === 'sm',\n 'modal-side-panel-md': currentModalType() === 'side-panel' && panelSize() === 'md',\n 'modal-side-panel-lg': currentModalType() === 'side-panel' && panelSize() === 'lg',\n 'animate-slide-up':\n isVisible() && currentModalType() === 'bottom-sheet',\n 'animate-slide-down':\n !isVisible() && currentModalType() === 'bottom-sheet',\n 'animate-zoom-in':\n isVisible() && currentModalType() === 'centered',\n 'animate-slide-in-right':\n isVisible() && currentModalType() === 'side-panel',\n 'animate-slide-out-right':\n !isVisible() && currentModalType() === 'side-panel',\n }\"\n role=\"document\"\n (mousedown)=\"$event.stopPropagation()\"\n (mouseup)=\"$event.stopPropagation()\"\n (animationend)=\"onAnimationEnd()\"\n >\n @if (currentModalType() === 'bottom-sheet') {\n <div\n class=\"flex justify-center p-2\"\n (mousedown)=\"$event.stopPropagation()\"\n (mouseup)=\"$event.stopPropagation()\"\n >\n <div class=\"w-10 h-1 bg-gray-300 rounded-full\"></div>\n </div>\n }\n @if (modalTitle()) {\n <div\n class=\"modal-header px-4 pb-2 text-center\"\n (mousedown)=\"$event.stopPropagation()\"\n (mouseup)=\"$event.stopPropagation()\"\n >\n <h2 class=\"text-xl font-bold text-white\">\n {{ modalTitle() }}\n </h2>\n @if (modalSubTitle()) {\n <p class=\"text-sm text-gray-300\">\n {{ modalSubTitle() }}\n </p>\n }\n </div>\n }\n @if (showCloseButton()) {\n <button\n type=\"button\"\n class=\"modal-close-btn\"\n (click)=\"close()\"\n [attr.aria-label]=\"closeLabel() || translate('MODAL.CLOSE')\"\n >\n <span aria-hidden=\"true\">\u00D7</span>\n </button>\n }\n\n <div class=\"flex-1 px-2 overflow-y-auto overflow-x-hidden\">\n <ng-template #dynamicContentPlaceholder></ng-template>\n </div>\n\n @if (buttons() && buttons().length > 0) {\n <div\n class=\"modal-footer grid grid-cols-12 gap-2 pt-4 mt-2 bg-black border-t border-zinc-800/30\"\n >\n @for (button of buttons(); track button.id ?? $index) {\n <xs-button\n [id]=\"\n button.id\n ? button.id\n : buttons().indexOf(button).toString()\n \"\n (click)=\"handleButtonAction(button.action!)\"\n [variant]=\"\n button.variant ? button.variant : 'primary'\n \"\n [layout]=\"button.layout ? button.layout : 'between'\"\n [isFull]=\"true\"\n [disabled]=\"button.disabled ?? false\"\n [loading]=\"button.loading ?? false\"\n [icon]=\"button.icon\"\n [label]=\"button.label\"\n [ngClass]=\"getButtonClass(button)\"\n >\n </xs-button>\n }\n </div>\n }\n </div>\n</div>\n", styles: [".modal-overlay{position:fixed;inset:0;z-index:10000;display:flex;justify-content:center;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .5}.modal-bottom-sheet{z-index:10001;width:100%;max-width:28rem;border-top-left-radius:1rem;border-top-right-radius:1rem}.modal-overlay.bottom-sheet{align-items:flex-end}.modal-centered{z-index:10001;margin:1rem;width:100%;max-width:32rem;border-radius:.75rem}.modal-overlay.centered{align-items:center}.modal-footer{padding-bottom:max(1rem,env(safe-area-inset-bottom,0px));padding-left:max(1rem,env(safe-area-inset-left,0px));padding-right:max(1rem,env(safe-area-inset-right,0px))}.modal-overlay.side-panel .modal-header{padding-top:max(.5rem,env(safe-area-inset-top,0px))}.modal-close-btn{position:absolute;top:.75rem;right:.75rem;z-index:10;display:flex;height:2.25rem;width:2.25rem;align-items:center;justify-content:center;border-radius:9999px;font-size:1.5rem;line-height:2rem;line-height:1;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.modal-close-btn:hover{background-color:#27272a99;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.modal-close-btn:focus-visible{outline-width:2px;outline-color:#fff}.modal-overlay.side-panel .modal-close-btn{top:max(.75rem,env(safe-area-inset-top,0px));right:max(.75rem,env(safe-area-inset-right,0px))}.modal-side-panel{z-index:10001;margin:0;height:100vh;max-height:100vh;width:100%;border-radius:0;border-left-width:1px;--tw-border-opacity: 1;border-color:rgb(39 39 42 / var(--tw-border-opacity, 1));height:100dvh;max-height:100dvh}.modal-side-panel,.modal-side-panel-sm,.modal-side-panel-md,.modal-side-panel-lg{width:100%}@media(min-width:640px){.modal-side-panel-sm{max-width:28rem}.modal-side-panel-md{max-width:32rem}.modal-side-panel-lg,.modal-side-panel{max-width:36rem}}@media(min-width:1024px){.modal-side-panel{max-width:42rem}}.modal-overlay.side-panel{align-items:stretch;justify-content:flex-end;padding:0}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes zoomIn{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}@keyframes slideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slideOutRight{0%{transform:translate(0)}to{transform:translate(100%)}}.animate-slide-in-right{animation:slideInRight .3s ease-out forwards}.animate-slide-out-right{animation:slideOutRight .3s ease-in forwards}.animate-zoom-in{animation:zoomIn .3s ease-out forwards}.animate-slide-up{animation:slideUp .3s ease-out forwards}.animate-slide-down{animation:slideDown .3s ease-in forwards}:host h2{text-transform:uppercase}:host-context(xs-button) button{text-transform:uppercase}.close-button{position:absolute;top:.75rem;right:.75rem;cursor:pointer;font-size:1.5rem;line-height:2rem;font-weight:700;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.close-button:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.modal-open{overflow:hidden}\n"] }]
|
|
8170
8193
|
}], ctorParameters: () => [], propDecorators: { dynamicContentPlaceholder: [{ type: i0.ViewChild, args: ['dynamicContentPlaceholder', { ...{ read: ViewContainerRef }, isSignal: true }] }] } });
|
|
8171
8194
|
|
|
8172
8195
|
class XSModalConfirmComponent {
|