codexly-ui 0.0.45 → 0.0.47
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.
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* ── Modal backdrop ─────────────────────────────────────────────────────── */
|
|
2
|
+
.clx-modal-backdrop {
|
|
3
|
+
background-color: rgba(15, 23, 42, 0.40);
|
|
4
|
+
backdrop-filter: blur(4px);
|
|
5
|
+
-webkit-backdrop-filter: blur(4px);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* ── Scrollbar ───────────────────────────────────────────────────────────── */
|
|
9
|
+
::-webkit-scrollbar { width: 0.5rem; }
|
|
10
|
+
::-webkit-scrollbar-track { background-color: transparent; }
|
|
11
|
+
::-webkit-scrollbar-thumb {
|
|
12
|
+
background-color: var(--clx-scrollbar);
|
|
13
|
+
border-radius: 0.5rem;
|
|
14
|
+
}
|
|
15
|
+
::-webkit-scrollbar-thumb:hover { background-color: var(--clx-scrollbar-hover); }
|
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -5220,9 +5220,10 @@ const DRAWER_SIZE_MAP = {
|
|
|
5220
5220
|
lg: 'w-full max-w-[560px]',
|
|
5221
5221
|
};
|
|
5222
5222
|
const DRAWER_CONTAINER_CLASS = 'flex flex-col bg-white shadow-2xl overflow-hidden h-full';
|
|
5223
|
+
const CLX_DRAWER_SIZE = new InjectionToken('CLX_DRAWER_SIZE');
|
|
5223
5224
|
|
|
5224
5225
|
class ClxDrawerComponent {
|
|
5225
|
-
size = input(
|
|
5226
|
+
size = input(null, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
5226
5227
|
showClose = input(true, ...(ngDevMode ? [{ debugName: "showClose" }] : /* istanbul ignore next */ []));
|
|
5227
5228
|
confirmButton = input(undefined, ...(ngDevMode ? [{ debugName: "confirmButton" }] : /* istanbul ignore next */ []));
|
|
5228
5229
|
cancelButton = input(undefined, ...(ngDevMode ? [{ debugName: "cancelButton" }] : /* istanbul ignore next */ []));
|
|
@@ -5230,7 +5231,9 @@ class ClxDrawerComponent {
|
|
|
5230
5231
|
confirmClick = output();
|
|
5231
5232
|
cancelClick = output();
|
|
5232
5233
|
_modalRef = inject(CLX_MODAL_REF, { optional: true });
|
|
5233
|
-
|
|
5234
|
+
_sizeToken = inject(CLX_DRAWER_SIZE, { optional: true });
|
|
5235
|
+
_resolvedSize = computed(() => this.size() ?? this._sizeToken ?? 'md', ...(ngDevMode ? [{ debugName: "_resolvedSize" }] : /* istanbul ignore next */ []));
|
|
5236
|
+
_hostClass = computed(() => `${DRAWER_CONTAINER_CLASS} ${DRAWER_SIZE_MAP[this._resolvedSize()]}`, ...(ngDevMode ? [{ debugName: "_hostClass" }] : /* istanbul ignore next */ []));
|
|
5234
5237
|
_hasBuiltInButtons = computed(() => !!this.confirmButton(), ...(ngDevMode ? [{ debugName: "_hasBuiltInButtons" }] : /* istanbul ignore next */ []));
|
|
5235
5238
|
_confirmText = computed(() => this.confirmButton()?.text ?? 'Aceptar', ...(ngDevMode ? [{ debugName: "_confirmText" }] : /* istanbul ignore next */ []));
|
|
5236
5239
|
_confirmColor = computed(() => this.confirmButton()?.color ?? 'indigo', ...(ngDevMode ? [{ debugName: "_confirmColor" }] : /* istanbul ignore next */ []));
|
|
@@ -13877,7 +13880,7 @@ class ClxDrawerService {
|
|
|
13877
13880
|
open(
|
|
13878
13881
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13879
13882
|
component, config = {}) {
|
|
13880
|
-
const { hasBackdrop = false, disableClose = false, panelClass = [], data, } = config;
|
|
13883
|
+
const { hasBackdrop = false, disableClose = false, panelClass = [], size = 'md', data, } = config;
|
|
13881
13884
|
let _resolve;
|
|
13882
13885
|
const _afterClosed = new Promise(res => (_resolve = res));
|
|
13883
13886
|
let _focusTrap = null;
|
|
@@ -13904,6 +13907,7 @@ class ClxDrawerService {
|
|
|
13904
13907
|
providers: [
|
|
13905
13908
|
{ provide: CLX_MODAL_DATA, useValue: data ?? null },
|
|
13906
13909
|
{ provide: CLX_MODAL_REF, useValue: drawerRef },
|
|
13910
|
+
{ provide: CLX_DRAWER_SIZE, useValue: size },
|
|
13907
13911
|
],
|
|
13908
13912
|
});
|
|
13909
13913
|
// Attach wrapper via ComponentPortal — CDK creates backdrop on attach()
|