codexly-ui 0.0.12 → 0.0.13
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 +6 -6
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/index.d.ts +11 -11
- package/package.json +1 -1
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -10946,7 +10946,7 @@ class ClxAppLayoutComponent {
|
|
|
10946
10946
|
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: [
|
|
10947
10947
|
{
|
|
10948
10948
|
provide: CLX_LAYOUT_COLLAPSED,
|
|
10949
|
-
useFactory: (self) =>
|
|
10949
|
+
useFactory: (self) => self._collapsed,
|
|
10950
10950
|
deps: [ClxAppLayoutComponent],
|
|
10951
10951
|
},
|
|
10952
10952
|
], ngImport: i0, template: `
|
|
@@ -11002,7 +11002,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
11002
11002
|
providers: [
|
|
11003
11003
|
{
|
|
11004
11004
|
provide: CLX_LAYOUT_COLLAPSED,
|
|
11005
|
-
useFactory: (self) =>
|
|
11005
|
+
useFactory: (self) => self._collapsed,
|
|
11006
11006
|
deps: [ClxAppLayoutComponent],
|
|
11007
11007
|
},
|
|
11008
11008
|
],
|
|
@@ -11062,9 +11062,9 @@ class ClxMenuItemComponent {
|
|
|
11062
11062
|
color = input('indigo', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
11063
11063
|
nested = input(false, ...(ngDevMode ? [{ debugName: "nested" }] : []));
|
|
11064
11064
|
_menuColorFn = inject(CLX_MENU_COLOR, { optional: true });
|
|
11065
|
-
|
|
11065
|
+
_collapsedSig = inject(CLX_LAYOUT_COLLAPSED, { optional: true });
|
|
11066
11066
|
_hasParent = !!this._menuColorFn;
|
|
11067
|
-
_collapsed = computed(() => this.
|
|
11067
|
+
_collapsed = computed(() => this._collapsedSig?.() ?? false, ...(ngDevMode ? [{ debugName: "_collapsed" }] : []));
|
|
11068
11068
|
_resolvedColor = computed(() => this._menuColorFn?.() ?? this.color(), ...(ngDevMode ? [{ debugName: "_resolvedColor" }] : []));
|
|
11069
11069
|
_geom = computed(() => {
|
|
11070
11070
|
if (this._collapsed())
|
|
@@ -11136,8 +11136,8 @@ class ClxMenuComponent {
|
|
|
11136
11136
|
icon = input('', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
11137
11137
|
color = input('indigo', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
11138
11138
|
_isExpanded = signal(false, ...(ngDevMode ? [{ debugName: "_isExpanded" }] : []));
|
|
11139
|
-
|
|
11140
|
-
_collapsed = computed(() => this.
|
|
11139
|
+
_collapsedSig = inject(CLX_LAYOUT_COLLAPSED, { optional: true });
|
|
11140
|
+
_collapsed = computed(() => this._collapsedSig?.() ?? false, ...(ngDevMode ? [{ debugName: "_collapsed" }] : []));
|
|
11141
11141
|
_childItems;
|
|
11142
11142
|
_childRoutes = [];
|
|
11143
11143
|
_router = inject(Router);
|