codexly-ui 0.0.99 → 0.1.1
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
CHANGED
|
@@ -11907,10 +11907,10 @@ class ClxMenuItemComponent {
|
|
|
11907
11907
|
return this.nested() ? NAV_ITEM_L2 : NAV_ITEM_L1;
|
|
11908
11908
|
}, ...(ngDevMode ? [{ debugName: "_geom" }] : /* istanbul ignore next */ []));
|
|
11909
11909
|
_iconCls = computed(() => resolveColor(this._resolvedColor()).textSubtle, ...(ngDevMode ? [{ debugName: "_iconCls" }] : /* istanbul ignore next */ []));
|
|
11910
|
-
_idleIconCls = computed(() =>
|
|
11910
|
+
_idleIconCls = computed(() => NAV_ITEM_IDLE, ...(ngDevMode ? [{ debugName: "_idleIconCls" }] : /* istanbul ignore next */ []));
|
|
11911
11911
|
_idleCls = computed(() => {
|
|
11912
|
-
const
|
|
11913
|
-
return `${NAV_ITEM_BASE} ${this._geom()} ${
|
|
11912
|
+
const hover = resolveColor(this._resolvedColor()).hoverBgMuted;
|
|
11913
|
+
return `${NAV_ITEM_BASE} ${this._geom()} ${NAV_ITEM_IDLE} ${hover}`;
|
|
11914
11914
|
}, ...(ngDevMode ? [{ debugName: "_idleCls" }] : /* istanbul ignore next */ []));
|
|
11915
11915
|
_activeCls = computed(() => {
|
|
11916
11916
|
const t = resolveColor(this._resolvedColor());
|
|
@@ -12009,6 +12009,7 @@ class ClxMenuComponent {
|
|
|
12009
12009
|
_rla;
|
|
12010
12010
|
_childItems;
|
|
12011
12011
|
_destroyRef = inject(DestroyRef);
|
|
12012
|
+
_injector = inject(Injector);
|
|
12012
12013
|
constructor() {
|
|
12013
12014
|
effect(() => { if (this.active())
|
|
12014
12015
|
this._isExpanded.set(true); });
|
|
@@ -12045,10 +12046,13 @@ class ClxMenuComponent {
|
|
|
12045
12046
|
this._childItems.changes
|
|
12046
12047
|
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
12047
12048
|
.subscribe(() => this._syncChildren());
|
|
12049
|
+
effect(() => {
|
|
12050
|
+
const color = this._color();
|
|
12051
|
+
this._childItems?.forEach(c => c.inheritColor(color));
|
|
12052
|
+
}, { injector: this._injector });
|
|
12048
12053
|
}
|
|
12049
12054
|
_syncChildren() {
|
|
12050
|
-
|
|
12051
|
-
this._childItems.forEach(c => c.inheritColor(color));
|
|
12055
|
+
this._childItems.forEach(c => c.inheritColor(this._color()));
|
|
12052
12056
|
}
|
|
12053
12057
|
_toggle() {
|
|
12054
12058
|
this._isExpanded.update(v => !v);
|