codexly-ui 0.0.62 → 0.0.63
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/codexly-ui.mjs +18 -15
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +2 -2
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -5199,12 +5199,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
5199
5199
|
}], ctorParameters: () => [] });
|
|
5200
5200
|
|
|
5201
5201
|
const MODAL_SIZE_MAP = {
|
|
5202
|
-
sm: 'w-full
|
|
5203
|
-
md: 'w-full
|
|
5204
|
-
lg: 'w-full
|
|
5205
|
-
full: 'w-
|
|
5202
|
+
sm: 'w-full',
|
|
5203
|
+
md: 'w-full',
|
|
5204
|
+
lg: 'w-full',
|
|
5205
|
+
full: 'w-full h-screen rounded-none',
|
|
5206
5206
|
};
|
|
5207
|
-
const MODAL_CONTAINER_CLASS = 'flex flex-col bg-white rounded-2xl shadow-2xl overflow-hidden
|
|
5207
|
+
const MODAL_CONTAINER_CLASS = 'flex flex-col bg-white rounded-2xl shadow-2xl overflow-hidden';
|
|
5208
5208
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5209
5209
|
const CLX_MODAL_DATA = new InjectionToken('CLX_MODAL_DATA');
|
|
5210
5210
|
const CLX_MODAL_SIZE = new InjectionToken('CLX_MODAL_SIZE');
|
|
@@ -5397,7 +5397,7 @@ class ClxModalComponent {
|
|
|
5397
5397
|
this._modalRef?.close();
|
|
5398
5398
|
}
|
|
5399
5399
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5400
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxModalComponent, isStandalone: true, selector: "clx-modal", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, confirmButton: { classPropertyName: "confirmButton", publicName: "confirmButton", isSignal: true, isRequired: false, transformFunction: null }, cancelButton: { classPropertyName: "cancelButton", publicName: "cancelButton", isSignal: true, isRequired: false, transformFunction: null }, showCancelButton: { classPropertyName: "showCancelButton", publicName: "showCancelButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { confirmClick: "confirmClick", cancelClick: "cancelClick" }, host: { properties: { "class": "_hostClass()" }
|
|
5400
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxModalComponent, isStandalone: true, selector: "clx-modal", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, confirmButton: { classPropertyName: "confirmButton", publicName: "confirmButton", isSignal: true, isRequired: false, transformFunction: null }, cancelButton: { classPropertyName: "cancelButton", publicName: "cancelButton", isSignal: true, isRequired: false, transformFunction: null }, showCancelButton: { classPropertyName: "showCancelButton", publicName: "showCancelButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { confirmClick: "confirmClick", cancelClick: "cancelClick" }, host: { properties: { "class": "_hostClass()" } }, ngImport: i0, template: `
|
|
5401
5401
|
<!-- Header -->
|
|
5402
5402
|
<div class="flex items-center gap-3 px-6 py-4 border-b border-slate-100 shrink-0">
|
|
5403
5403
|
<div class="flex-1 min-w-0">
|
|
@@ -5514,7 +5514,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
5514
5514
|
`,
|
|
5515
5515
|
encapsulation: ViewEncapsulation.None,
|
|
5516
5516
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5517
|
-
host: { '[class]': '_hostClass()'
|
|
5517
|
+
host: { '[class]': '_hostClass()' },
|
|
5518
5518
|
}]
|
|
5519
5519
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], confirmButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmButton", required: false }] }], cancelButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelButton", required: false }] }], showCancelButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCancelButton", required: false }] }], confirmClick: [{ type: i0.Output, args: ["confirmClick"] }], cancelClick: [{ type: i0.Output, args: ["cancelClick"] }] } });
|
|
5520
5520
|
|
|
@@ -9000,23 +9000,26 @@ class ClxModalService {
|
|
|
9000
9000
|
afterClosed() { return _afterClosed; },
|
|
9001
9001
|
};
|
|
9002
9002
|
const extraClasses = Array.isArray(panelClass) ? panelClass : [panelClass];
|
|
9003
|
+
const sizeMaxWidth = {
|
|
9004
|
+
sm: '400px',
|
|
9005
|
+
md: '600px',
|
|
9006
|
+
lg: '900px',
|
|
9007
|
+
full: '100vw',
|
|
9008
|
+
};
|
|
9009
|
+
const maxWidth = sizeMaxWidth[size] ?? '600px';
|
|
9003
9010
|
const overlayRef = this._overlay.create(new OverlayConfig({
|
|
9004
9011
|
hasBackdrop,
|
|
9005
9012
|
backdropClass: 'clx-modal-backdrop',
|
|
9006
9013
|
panelClass: extraClasses,
|
|
9007
9014
|
scrollStrategy: this._overlay.scrollStrategies.block(),
|
|
9008
9015
|
positionStrategy: this._overlay.position().global().centerHorizontally().centerVertically(),
|
|
9016
|
+
width: `min(calc(100vw - 2rem), ${maxWidth})`,
|
|
9017
|
+
maxWidth: maxWidth,
|
|
9018
|
+
maxHeight: '90vh',
|
|
9009
9019
|
}));
|
|
9010
9020
|
Object.assign(overlayRef.overlayElement.style, {
|
|
9011
|
-
position: 'fixed',
|
|
9012
|
-
inset: '0',
|
|
9013
|
-
width: '100vw',
|
|
9014
|
-
height: '100vh',
|
|
9015
9021
|
display: 'flex',
|
|
9016
|
-
|
|
9017
|
-
justifyContent: 'center',
|
|
9018
|
-
padding: '1rem',
|
|
9019
|
-
boxSizing: 'border-box',
|
|
9022
|
+
flexDirection: 'column',
|
|
9020
9023
|
});
|
|
9021
9024
|
const innerInjector = Injector.create({
|
|
9022
9025
|
parent: this._injector,
|