codexly-ui 0.0.62 → 0.0.64
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 +20 -15
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +3 -3
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -5199,12 +5199,13 @@ 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
|
-
|
|
5202
|
+
sm: 'w-full',
|
|
5203
|
+
md: 'w-full',
|
|
5204
|
+
lg: 'w-full',
|
|
5205
|
+
xl: 'w-full',
|
|
5206
|
+
full: 'w-full h-screen rounded-none',
|
|
5206
5207
|
};
|
|
5207
|
-
const MODAL_CONTAINER_CLASS = 'flex flex-col bg-white rounded-2xl shadow-2xl overflow-hidden
|
|
5208
|
+
const MODAL_CONTAINER_CLASS = 'flex flex-col bg-white rounded-2xl shadow-2xl overflow-hidden';
|
|
5208
5209
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5209
5210
|
const CLX_MODAL_DATA = new InjectionToken('CLX_MODAL_DATA');
|
|
5210
5211
|
const CLX_MODAL_SIZE = new InjectionToken('CLX_MODAL_SIZE');
|
|
@@ -5397,7 +5398,7 @@ class ClxModalComponent {
|
|
|
5397
5398
|
this._modalRef?.close();
|
|
5398
5399
|
}
|
|
5399
5400
|
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()" }
|
|
5401
|
+
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
5402
|
<!-- Header -->
|
|
5402
5403
|
<div class="flex items-center gap-3 px-6 py-4 border-b border-slate-100 shrink-0">
|
|
5403
5404
|
<div class="flex-1 min-w-0">
|
|
@@ -5514,7 +5515,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
5514
5515
|
`,
|
|
5515
5516
|
encapsulation: ViewEncapsulation.None,
|
|
5516
5517
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5517
|
-
host: { '[class]': '_hostClass()'
|
|
5518
|
+
host: { '[class]': '_hostClass()' },
|
|
5518
5519
|
}]
|
|
5519
5520
|
}], 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
5521
|
|
|
@@ -9000,23 +9001,27 @@ class ClxModalService {
|
|
|
9000
9001
|
afterClosed() { return _afterClosed; },
|
|
9001
9002
|
};
|
|
9002
9003
|
const extraClasses = Array.isArray(panelClass) ? panelClass : [panelClass];
|
|
9004
|
+
const sizeMaxWidth = {
|
|
9005
|
+
sm: '480px',
|
|
9006
|
+
md: '680px',
|
|
9007
|
+
lg: '900px',
|
|
9008
|
+
xl: '1200px',
|
|
9009
|
+
full: '100vw',
|
|
9010
|
+
};
|
|
9011
|
+
const maxWidth = sizeMaxWidth[size] ?? '600px';
|
|
9003
9012
|
const overlayRef = this._overlay.create(new OverlayConfig({
|
|
9004
9013
|
hasBackdrop,
|
|
9005
9014
|
backdropClass: 'clx-modal-backdrop',
|
|
9006
9015
|
panelClass: extraClasses,
|
|
9007
9016
|
scrollStrategy: this._overlay.scrollStrategies.block(),
|
|
9008
9017
|
positionStrategy: this._overlay.position().global().centerHorizontally().centerVertically(),
|
|
9018
|
+
width: `min(calc(100vw - 2rem), ${maxWidth})`,
|
|
9019
|
+
maxWidth: maxWidth,
|
|
9020
|
+
maxHeight: '90vh',
|
|
9009
9021
|
}));
|
|
9010
9022
|
Object.assign(overlayRef.overlayElement.style, {
|
|
9011
|
-
position: 'fixed',
|
|
9012
|
-
inset: '0',
|
|
9013
|
-
width: '100vw',
|
|
9014
|
-
height: '100vh',
|
|
9015
9023
|
display: 'flex',
|
|
9016
|
-
|
|
9017
|
-
justifyContent: 'center',
|
|
9018
|
-
padding: '1rem',
|
|
9019
|
-
boxSizing: 'border-box',
|
|
9024
|
+
flexDirection: 'column',
|
|
9020
9025
|
});
|
|
9021
9026
|
const innerInjector = Injector.create({
|
|
9022
9027
|
parent: this._injector,
|