codexly-ui 0.0.15 → 0.0.17
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 +7 -19
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/index.d.ts +0 -2
- package/package.json +1 -1
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -10880,22 +10880,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
10880
10880
|
args: [ClxStepComponent]
|
|
10881
10881
|
}] } });
|
|
10882
10882
|
|
|
10883
|
-
class ClxLayoutService {
|
|
10884
|
-
collapsed = signal(false, ...(ngDevMode ? [{ debugName: "collapsed" }] : []));
|
|
10885
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ClxLayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10886
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ClxLayoutService });
|
|
10887
|
-
}
|
|
10888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ClxLayoutService, decorators: [{
|
|
10889
|
-
type: Injectable
|
|
10890
|
-
}] });
|
|
10891
|
-
|
|
10892
10883
|
class ClxAppLayoutComponent {
|
|
10893
10884
|
_zone = inject(NgZone);
|
|
10894
10885
|
_document = inject(DOCUMENT);
|
|
10895
|
-
_layout = inject(ClxLayoutService);
|
|
10896
10886
|
activeColor = input('indigo', ...(ngDevMode ? [{ debugName: "activeColor" }] : []));
|
|
10897
10887
|
_sidebarOpen = signal(false, ...(ngDevMode ? [{ debugName: "_sidebarOpen" }] : []));
|
|
10898
|
-
_collapsed =
|
|
10888
|
+
_collapsed = signal(false, ...(ngDevMode ? [{ debugName: "_collapsed" }] : []));
|
|
10899
10889
|
_isMobile = signal(true, ...(ngDevMode ? [{ debugName: "_isMobile" }] : []));
|
|
10900
10890
|
_showBackdrop = computed(() => this._sidebarOpen() && this._isMobile(), ...(ngDevMode ? [{ debugName: "_showBackdrop" }] : []));
|
|
10901
10891
|
_sidebarCls = computed(() => {
|
|
@@ -10941,7 +10931,7 @@ class ClxAppLayoutComponent {
|
|
|
10941
10931
|
openSidebar() { this._sidebarOpen.set(true); }
|
|
10942
10932
|
closeSidebar() { this._sidebarOpen.set(false); }
|
|
10943
10933
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ClxAppLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10944
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: ClxAppLayoutComponent, isStandalone: true, selector: "clx-app-layout", inputs: { activeColor: { classPropertyName: "activeColor", publicName: "activeColor", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "flex h-screen overflow-hidden" }, providers: [
|
|
10934
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: ClxAppLayoutComponent, isStandalone: true, selector: "clx-app-layout", inputs: { activeColor: { classPropertyName: "activeColor", publicName: "activeColor", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "flex h-screen overflow-hidden" }, providers: [{ provide: ClxAppLayoutComponent, useExisting: ClxAppLayoutComponent }], ngImport: i0, template: `
|
|
10945
10935
|
<!-- Mobile backdrop -->
|
|
10946
10936
|
@if (_showBackdrop()) {
|
|
10947
10937
|
<div
|
|
@@ -10991,7 +10981,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
10991
10981
|
selector: 'clx-app-layout',
|
|
10992
10982
|
standalone: true,
|
|
10993
10983
|
imports: [ClxIconComponent],
|
|
10994
|
-
providers: [
|
|
10984
|
+
providers: [{ provide: ClxAppLayoutComponent, useExisting: ClxAppLayoutComponent }],
|
|
10995
10985
|
template: `
|
|
10996
10986
|
<!-- Mobile backdrop -->
|
|
10997
10987
|
@if (_showBackdrop()) {
|
|
@@ -11059,9 +11049,9 @@ class ClxMenuItemComponent {
|
|
|
11059
11049
|
color = input('indigo', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
11060
11050
|
nested = input(false, ...(ngDevMode ? [{ debugName: "nested" }] : []));
|
|
11061
11051
|
_menuColorFn = inject(CLX_MENU_COLOR, { optional: true });
|
|
11062
|
-
_layout = inject(
|
|
11052
|
+
_layout = inject(ClxAppLayoutComponent, { optional: true });
|
|
11063
11053
|
_hasParent = !!this._menuColorFn;
|
|
11064
|
-
_collapsed = computed(() => this._layout?.
|
|
11054
|
+
_collapsed = computed(() => this._layout?._collapsed() ?? false, ...(ngDevMode ? [{ debugName: "_collapsed" }] : []));
|
|
11065
11055
|
_resolvedColor = computed(() => this._menuColorFn?.() ?? this.color(), ...(ngDevMode ? [{ debugName: "_resolvedColor" }] : []));
|
|
11066
11056
|
_geom = computed(() => {
|
|
11067
11057
|
if (this._collapsed())
|
|
@@ -11133,8 +11123,8 @@ class ClxMenuComponent {
|
|
|
11133
11123
|
icon = input('', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
11134
11124
|
color = input('indigo', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
11135
11125
|
_isExpanded = signal(false, ...(ngDevMode ? [{ debugName: "_isExpanded" }] : []));
|
|
11136
|
-
_layout = inject(
|
|
11137
|
-
_collapsed = computed(() => this._layout?.
|
|
11126
|
+
_layout = inject(ClxAppLayoutComponent, { optional: true });
|
|
11127
|
+
_collapsed = computed(() => this._layout?._collapsed() ?? false, ...(ngDevMode ? [{ debugName: "_collapsed" }] : []));
|
|
11138
11128
|
_childItems;
|
|
11139
11129
|
_childRoutes = [];
|
|
11140
11130
|
_router = inject(Router);
|
|
@@ -13475,7 +13465,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
13475
13465
|
|
|
13476
13466
|
class ClxToastService {
|
|
13477
13467
|
_appRef = inject(ApplicationRef);
|
|
13478
|
-
_injector = inject(Injector);
|
|
13479
13468
|
/** One container per position, lazily created */
|
|
13480
13469
|
_containers = new Map();
|
|
13481
13470
|
// ─── Core show ─────────────────────────────────────────────────────────────
|
|
@@ -13525,7 +13514,6 @@ class ClxToastService {
|
|
|
13525
13514
|
return existing;
|
|
13526
13515
|
const ref = createComponent(ClxToastContainerComponent, {
|
|
13527
13516
|
environmentInjector: this._appRef.injector,
|
|
13528
|
-
elementInjector: this._injector,
|
|
13529
13517
|
});
|
|
13530
13518
|
ref.setInput('position', position);
|
|
13531
13519
|
this._appRef.attachView(ref.hostView);
|