codexly-ui 0.12.34 → 0.12.35
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 +21 -7
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +16 -5
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -664,7 +664,13 @@ class ClxThemeService {
|
|
|
664
664
|
error: n?.severityColors?.error ?? this._config().dangerColor,
|
|
665
665
|
},
|
|
666
666
|
unreadColor: n?.unreadColor ?? this._config().primaryColor,
|
|
667
|
-
|
|
667
|
+
// Falls back to the general "Pestañas" theme (tabs.activeTextColor/underlineColor) before
|
|
668
|
+
// primaryColor — the notification panel's own Todas/Sin leer tabs are still clx-tabs under
|
|
669
|
+
// the hood, so they should read the same theming a host already configured for every other
|
|
670
|
+
// clx-tabs instance, unless notification.tabsColor/activeTextColor/underlineColor override
|
|
671
|
+
// it specifically.
|
|
672
|
+
tabsColor: n?.tabsColor ?? this.tabsStyle().activeTextColor,
|
|
673
|
+
tabsUnderlineColor: n?.tabsUnderlineColor ?? this.tabsStyle().underlineColor,
|
|
668
674
|
size: n?.size ?? 'md',
|
|
669
675
|
border: n?.border ?? true,
|
|
670
676
|
borderColor: n?.borderColor ?? this._config().listBorderColor ?? this._config().primaryColor,
|
|
@@ -11460,9 +11466,14 @@ class ClxNotificationComponent {
|
|
|
11460
11466
|
* primaryColor) when unset. */
|
|
11461
11467
|
badgeColor = input(undefined, ...(ngDevMode ? [{ debugName: "badgeColor" }] : /* istanbul ignore next */ []));
|
|
11462
11468
|
// ── Panel accents — independent from the bell button's own color. ──────────────────────────
|
|
11463
|
-
/** clx-tabs (Todas/Sin leer/...) + "Marcar todo leído" link accent —
|
|
11464
|
-
* notification.tabsColor (
|
|
11469
|
+
/** clx-tabs (Todas/Sin leer/...) active tab text/icon color + "Marcar todo leído" link accent —
|
|
11470
|
+
* falls back to the theme's notification.tabsColor (which itself falls back to the general
|
|
11471
|
+
* "Pestañas" theme's tabs.activeTextColor, then primaryColor) when unset. */
|
|
11465
11472
|
tabsColor = input(undefined, ...(ngDevMode ? [{ debugName: "tabsColor" }] : /* istanbul ignore next */ []));
|
|
11473
|
+
/** clx-tabs underline color, independent of tabsColor — falls back to the theme's
|
|
11474
|
+
* notification.tabsUnderlineColor (which itself falls back to tabs.underlineColor, then
|
|
11475
|
+
* primaryColor) when unset. */
|
|
11476
|
+
tabsUnderlineColor = input(undefined, ...(ngDevMode ? [{ debugName: "tabsUnderlineColor" }] : /* istanbul ignore next */ []));
|
|
11466
11477
|
/** Whether the floating panel shows its outer border — falls back to the theme's
|
|
11467
11478
|
* notification.border (then true) when unset. */
|
|
11468
11479
|
border = input(undefined, ...(ngDevMode ? [{ debugName: "border" }] : /* istanbul ignore next */ []));
|
|
@@ -11477,6 +11488,7 @@ class ClxNotificationComponent {
|
|
|
11477
11488
|
_buttonColor = computed(() => this.buttonColor() ?? this._themeSvc.config().primaryColor, ...(ngDevMode ? [{ debugName: "_buttonColor" }] : /* istanbul ignore next */ []));
|
|
11478
11489
|
_badgeColor = computed(() => this.badgeColor() ?? this._style().unreadColor, ...(ngDevMode ? [{ debugName: "_badgeColor" }] : /* istanbul ignore next */ []));
|
|
11479
11490
|
_tabsColor = computed(() => this.tabsColor() ?? this._style().tabsColor, ...(ngDevMode ? [{ debugName: "_tabsColor" }] : /* istanbul ignore next */ []));
|
|
11491
|
+
_tabsUnderlineColor = computed(() => this.tabsUnderlineColor() ?? this._style().tabsUnderlineColor, ...(ngDevMode ? [{ debugName: "_tabsUnderlineColor" }] : /* istanbul ignore next */ []));
|
|
11480
11492
|
_border = computed(() => this.border() ?? this._style().border, ...(ngDevMode ? [{ debugName: "_border" }] : /* istanbul ignore next */ []));
|
|
11481
11493
|
_borderColor = computed(() => this.borderColor() ?? this._style().borderColor, ...(ngDevMode ? [{ debugName: "_borderColor" }] : /* istanbul ignore next */ []));
|
|
11482
11494
|
// ── CDK Overlay ─────────────────────────────────────────────────────────────
|
|
@@ -11574,7 +11586,7 @@ class ClxNotificationComponent {
|
|
|
11574
11586
|
return new Date(iso).toLocaleTimeString('es-CO', { hour: '2-digit', minute: '2-digit' });
|
|
11575
11587
|
}
|
|
11576
11588
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxNotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11577
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxNotificationComponent, isStandalone: true, selector: "clx-notification", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, categoryTab: { classPropertyName: "categoryTab", publicName: "categoryTab", isSignal: true, isRequired: false, transformFunction: null }, buttonColor: { classPropertyName: "buttonColor", publicName: "buttonColor", isSignal: true, isRequired: false, transformFunction: null }, buttonVariant: { classPropertyName: "buttonVariant", publicName: "buttonVariant", isSignal: true, isRequired: false, transformFunction: null }, buttonSize: { classPropertyName: "buttonSize", publicName: "buttonSize", isSignal: true, isRequired: false, transformFunction: null }, buttonIcon: { classPropertyName: "buttonIcon", publicName: "buttonIcon", isSignal: true, isRequired: false, transformFunction: null }, badgeColor: { classPropertyName: "badgeColor", publicName: "badgeColor", isSignal: true, isRequired: false, transformFunction: null }, tabsColor: { classPropertyName: "tabsColor", publicName: "tabsColor", isSignal: true, isRequired: false, transformFunction: null }, border: { classPropertyName: "border", publicName: "border", isSignal: true, isRequired: false, transformFunction: null }, borderColor: { classPropertyName: "borderColor", publicName: "borderColor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", markRead: "markRead", markAllRead: "markAllRead", delete: "delete", deleteAllRead: "deleteAllRead" }, host: { classAttribute: "relative inline-flex items-center" }, ngImport: i0, template: `
|
|
11589
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxNotificationComponent, isStandalone: true, selector: "clx-notification", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, categoryTab: { classPropertyName: "categoryTab", publicName: "categoryTab", isSignal: true, isRequired: false, transformFunction: null }, buttonColor: { classPropertyName: "buttonColor", publicName: "buttonColor", isSignal: true, isRequired: false, transformFunction: null }, buttonVariant: { classPropertyName: "buttonVariant", publicName: "buttonVariant", isSignal: true, isRequired: false, transformFunction: null }, buttonSize: { classPropertyName: "buttonSize", publicName: "buttonSize", isSignal: true, isRequired: false, transformFunction: null }, buttonIcon: { classPropertyName: "buttonIcon", publicName: "buttonIcon", isSignal: true, isRequired: false, transformFunction: null }, badgeColor: { classPropertyName: "badgeColor", publicName: "badgeColor", isSignal: true, isRequired: false, transformFunction: null }, tabsColor: { classPropertyName: "tabsColor", publicName: "tabsColor", isSignal: true, isRequired: false, transformFunction: null }, tabsUnderlineColor: { classPropertyName: "tabsUnderlineColor", publicName: "tabsUnderlineColor", isSignal: true, isRequired: false, transformFunction: null }, border: { classPropertyName: "border", publicName: "border", isSignal: true, isRequired: false, transformFunction: null }, borderColor: { classPropertyName: "borderColor", publicName: "borderColor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", markRead: "markRead", markAllRead: "markAllRead", delete: "delete", deleteAllRead: "deleteAllRead" }, host: { classAttribute: "relative inline-flex items-center" }, ngImport: i0, template: `
|
|
11578
11590
|
<!-- Trigger -->
|
|
11579
11591
|
<button clx-button
|
|
11580
11592
|
#origin="cdkOverlayOrigin"
|
|
@@ -11621,7 +11633,8 @@ class ClxNotificationComponent {
|
|
|
11621
11633
|
|
|
11622
11634
|
<!-- Tabs -->
|
|
11623
11635
|
<div class="px-4">
|
|
11624
|
-
<clx-tabs [tabs]="_tabs()" [(activeTab)]="_filter"
|
|
11636
|
+
<clx-tabs [tabs]="_tabs()" [(activeTab)]="_filter"
|
|
11637
|
+
[activeTextColor]="_tabsColor()" [underlineColor]="_tabsUnderlineColor()" />
|
|
11625
11638
|
</div>
|
|
11626
11639
|
|
|
11627
11640
|
<!-- List -->
|
|
@@ -11735,7 +11748,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
11735
11748
|
|
|
11736
11749
|
<!-- Tabs -->
|
|
11737
11750
|
<div class="px-4">
|
|
11738
|
-
<clx-tabs [tabs]="_tabs()" [(activeTab)]="_filter"
|
|
11751
|
+
<clx-tabs [tabs]="_tabs()" [(activeTab)]="_filter"
|
|
11752
|
+
[activeTextColor]="_tabsColor()" [underlineColor]="_tabsUnderlineColor()" />
|
|
11739
11753
|
</div>
|
|
11740
11754
|
|
|
11741
11755
|
<!-- List -->
|
|
@@ -11799,7 +11813,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
11799
11813
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11800
11814
|
host: { class: 'relative inline-flex items-center' },
|
|
11801
11815
|
}]
|
|
11802
|
-
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], categoryTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "categoryTab", required: false }] }], buttonColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonColor", required: false }] }], buttonVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonVariant", required: false }] }], buttonSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonSize", required: false }] }], buttonIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonIcon", required: false }] }], badgeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeColor", required: false }] }], tabsColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabsColor", required: false }] }], border: [{ type: i0.Input, args: [{ isSignal: true, alias: "border", required: false }] }], borderColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderColor", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], markRead: [{ type: i0.Output, args: ["markRead"] }], markAllRead: [{ type: i0.Output, args: ["markAllRead"] }], delete: [{ type: i0.Output, args: ["delete"] }], deleteAllRead: [{ type: i0.Output, args: ["deleteAllRead"] }] } });
|
|
11816
|
+
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], categoryTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "categoryTab", required: false }] }], buttonColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonColor", required: false }] }], buttonVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonVariant", required: false }] }], buttonSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonSize", required: false }] }], buttonIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonIcon", required: false }] }], badgeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeColor", required: false }] }], tabsColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabsColor", required: false }] }], tabsUnderlineColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabsUnderlineColor", required: false }] }], border: [{ type: i0.Input, args: [{ isSignal: true, alias: "border", required: false }] }], borderColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderColor", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], markRead: [{ type: i0.Output, args: ["markRead"] }], markAllRead: [{ type: i0.Output, args: ["markAllRead"] }], delete: [{ type: i0.Output, args: ["delete"] }], deleteAllRead: [{ type: i0.Output, args: ["deleteAllRead"] }] } });
|
|
11803
11817
|
|
|
11804
11818
|
// ─── CDK overlay token (carries the resolved ref into the component) ──────────
|
|
11805
11819
|
const CLX_ALERT_OPTIONS = new InjectionToken('CLX_ALERT_OPTIONS');
|