codexly-ui 0.0.36 → 0.0.37
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 +38 -20
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/index.d.ts +4 -2
- package/package.json +1 -1
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -911,19 +911,20 @@ const CLX_ANIMATE_DEFAULTS = new InjectionToken('CLX_ANIMATE_DEFAULTS', {
|
|
|
911
911
|
|
|
912
912
|
const PREFIX = 'clx-anim--';
|
|
913
913
|
class ClxAnimateService {
|
|
914
|
-
platformId
|
|
915
|
-
defaults
|
|
916
|
-
isBrowser
|
|
914
|
+
platformId;
|
|
915
|
+
defaults;
|
|
916
|
+
isBrowser;
|
|
917
917
|
// ─── Estado de animaciones en curso ───────────────────────────────────────
|
|
918
918
|
_runningCount = signal(0, ...(ngDevMode ? [{ debugName: "_runningCount" }] : []));
|
|
919
|
-
/** True mientras al menos una animación está activa. */
|
|
920
919
|
isAnimating = computed(() => this._runningCount() > 0, ...(ngDevMode ? [{ debugName: "isAnimating" }] : []));
|
|
921
920
|
// ─── Cleanup por elemento (WeakMap preserva GC) ───────────────────────────
|
|
922
921
|
_cleanups = new WeakMap();
|
|
923
922
|
// ─── Pool de IntersectionObservers compartidos ────────────────────────────
|
|
924
|
-
// Un observer por threshold único, compartido entre todas las directivas.
|
|
925
923
|
_observerPools = new Map();
|
|
926
924
|
constructor() {
|
|
925
|
+
this.platformId = inject(PLATFORM_ID);
|
|
926
|
+
this.defaults = inject(CLX_ANIMATE_DEFAULTS);
|
|
927
|
+
this.isBrowser = isPlatformBrowser(this.platformId);
|
|
927
928
|
if (this.isBrowser)
|
|
928
929
|
this._warmup();
|
|
929
930
|
}
|
|
@@ -8949,9 +8950,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImpo
|
|
|
8949
8950
|
}], propDecorators: { portal: [{ type: i0.Input, args: [{ isSignal: true, alias: "portal", required: false }] }, { type: i0.Output, args: ["portalChange"] }] } });
|
|
8950
8951
|
|
|
8951
8952
|
class ClxModalService {
|
|
8952
|
-
_overlay
|
|
8953
|
-
_injector
|
|
8954
|
-
_focusTrapFactory
|
|
8953
|
+
_overlay;
|
|
8954
|
+
_injector;
|
|
8955
|
+
_focusTrapFactory;
|
|
8956
|
+
constructor() {
|
|
8957
|
+
this._overlay = inject(Overlay);
|
|
8958
|
+
this._injector = inject(Injector);
|
|
8959
|
+
this._focusTrapFactory = inject(FocusTrapFactory);
|
|
8960
|
+
}
|
|
8955
8961
|
open(
|
|
8956
8962
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8957
8963
|
component, config = {}) {
|
|
@@ -9028,7 +9034,7 @@ class ClxModalService {
|
|
|
9028
9034
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ClxModalService, decorators: [{
|
|
9029
9035
|
type: Injectable,
|
|
9030
9036
|
args: [{ providedIn: 'root' }]
|
|
9031
|
-
}] });
|
|
9037
|
+
}], ctorParameters: () => [] });
|
|
9032
9038
|
|
|
9033
9039
|
let _clxEditorId = 0;
|
|
9034
9040
|
const TOOLBAR_GROUPS = [
|
|
@@ -13793,9 +13799,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImpo
|
|
|
13793
13799
|
}] } });
|
|
13794
13800
|
|
|
13795
13801
|
class ClxAlertService {
|
|
13796
|
-
_overlay
|
|
13797
|
-
_injector
|
|
13798
|
-
_focusTrapFactory
|
|
13802
|
+
_overlay;
|
|
13803
|
+
_injector;
|
|
13804
|
+
_focusTrapFactory;
|
|
13805
|
+
constructor() {
|
|
13806
|
+
this._overlay = inject(Overlay);
|
|
13807
|
+
this._injector = inject(Injector);
|
|
13808
|
+
this._focusTrapFactory = inject(FocusTrapFactory);
|
|
13809
|
+
}
|
|
13799
13810
|
// ─── Core open ────────────────────────────────────────────────────────────
|
|
13800
13811
|
open(options = {}) {
|
|
13801
13812
|
const backdrop = options.backdrop ?? ALERT_DEFAULTS.backdrop;
|
|
@@ -13874,12 +13885,17 @@ class ClxAlertService {
|
|
|
13874
13885
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ClxAlertService, decorators: [{
|
|
13875
13886
|
type: Injectable,
|
|
13876
13887
|
args: [{ providedIn: 'root' }]
|
|
13877
|
-
}] });
|
|
13888
|
+
}], ctorParameters: () => [] });
|
|
13878
13889
|
|
|
13879
13890
|
class ClxDrawerService {
|
|
13880
|
-
_overlay
|
|
13881
|
-
_injector
|
|
13882
|
-
_focusTrapFactory
|
|
13891
|
+
_overlay;
|
|
13892
|
+
_injector;
|
|
13893
|
+
_focusTrapFactory;
|
|
13894
|
+
constructor() {
|
|
13895
|
+
this._overlay = inject(Overlay);
|
|
13896
|
+
this._injector = inject(Injector);
|
|
13897
|
+
this._focusTrapFactory = inject(FocusTrapFactory);
|
|
13898
|
+
}
|
|
13883
13899
|
open(
|
|
13884
13900
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13885
13901
|
component, config = {}) {
|
|
@@ -13942,12 +13958,14 @@ class ClxDrawerService {
|
|
|
13942
13958
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ClxDrawerService, decorators: [{
|
|
13943
13959
|
type: Injectable,
|
|
13944
13960
|
args: [{ providedIn: 'root' }]
|
|
13945
|
-
}] });
|
|
13961
|
+
}], ctorParameters: () => [] });
|
|
13946
13962
|
|
|
13947
13963
|
class ClxToastService {
|
|
13948
|
-
_appRef
|
|
13949
|
-
/** One container per position, lazily created */
|
|
13964
|
+
_appRef;
|
|
13950
13965
|
_containers = new Map();
|
|
13966
|
+
constructor() {
|
|
13967
|
+
this._appRef = inject(ApplicationRef);
|
|
13968
|
+
}
|
|
13951
13969
|
// ─── Core show ─────────────────────────────────────────────────────────────
|
|
13952
13970
|
show(options) {
|
|
13953
13971
|
const position = options.position ?? TOAST_DEFAULTS.position;
|
|
@@ -14012,7 +14030,7 @@ class ClxToastService {
|
|
|
14012
14030
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ClxToastService, decorators: [{
|
|
14013
14031
|
type: Injectable,
|
|
14014
14032
|
args: [{ providedIn: 'root' }]
|
|
14015
|
-
}] });
|
|
14033
|
+
}], ctorParameters: () => [] });
|
|
14016
14034
|
|
|
14017
14035
|
const PROGRESS_BAR_SIZE_MAP = {
|
|
14018
14036
|
xs: 'h-1',
|