codexly-ui 0.12.28 → 0.12.30
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 +56 -22
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +42 -4
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -637,6 +637,19 @@ class ClxThemeService {
|
|
|
637
637
|
underlineColor: t?.underlineColor ?? this._config().primaryColor,
|
|
638
638
|
};
|
|
639
639
|
}, ...(ngDevMode ? [{ debugName: "tabsStyle" }] : /* istanbul ignore next */ []));
|
|
640
|
+
/** Resolved style for ClxWizardComponent — activeTextColor/underlineColor (horizontal) and
|
|
641
|
+
* stepColor (vertical) each fall back to formControls.wizard (then primaryColor) independently
|
|
642
|
+
* when unset. Per-instance inputs on clx-wizard still take precedence over this theme-wide
|
|
643
|
+
* default. */
|
|
644
|
+
wizardStyle = computed(() => {
|
|
645
|
+
const t = this._config().wizard;
|
|
646
|
+
const fallback = this.formControlColor('wizard');
|
|
647
|
+
return {
|
|
648
|
+
activeTextColor: t?.activeTextColor ?? fallback,
|
|
649
|
+
underlineColor: t?.underlineColor ?? fallback,
|
|
650
|
+
stepColor: t?.stepColor ?? fallback,
|
|
651
|
+
};
|
|
652
|
+
}, ...(ngDevMode ? [{ debugName: "wizardStyle" }] : /* istanbul ignore next */ []));
|
|
640
653
|
/** Resolved style for ClxNotificationComponent — severity colors fall back to built-in
|
|
641
654
|
* green/amber/sky/red, unreadColor to primaryColor, borderColor to listBorderColor then
|
|
642
655
|
* primaryColor, radius to the app-wide borderRadius. Per-instance inputs on clx-notification
|
|
@@ -9744,8 +9757,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
9744
9757
|
class ClxWizardComponent {
|
|
9745
9758
|
_themeSvc = inject(ClxThemeService);
|
|
9746
9759
|
// ── Inputs ─────────────────────────────────────────────────────────────────
|
|
9760
|
+
/** Legacy single-color override — still the shared fallback for activeTextColor/underlineColor/
|
|
9761
|
+
* stepColor when none of those is set, same convention as clx-tabs' own clxColor. */
|
|
9747
9762
|
color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
9748
9763
|
_color = computed(() => this.color() ?? this._themeSvc.formControlColor('wizard'), ...(ngDevMode ? [{ debugName: "_color" }] : /* istanbul ignore next */ []));
|
|
9764
|
+
/** Horizontal only — active step label/icon color in the clx-tabs indicator. Falls back to
|
|
9765
|
+
* `color`, then the theme's wizard.activeTextColor (then formControls.wizard/primaryColor). */
|
|
9766
|
+
activeTextColor = input(undefined, ...(ngDevMode ? [{ debugName: "activeTextColor" }] : /* istanbul ignore next */ []));
|
|
9767
|
+
/** Horizontal only — active step's bottom underline color, independent of activeTextColor.
|
|
9768
|
+
* Falls back to `color`, then the theme's wizard.underlineColor. */
|
|
9769
|
+
underlineColor = input(undefined, ...(ngDevMode ? [{ debugName: "underlineColor" }] : /* istanbul ignore next */ []));
|
|
9770
|
+
/** Vertical only — completed/active step circle + connector fill color. Falls back to `color`,
|
|
9771
|
+
* then the theme's wizard.stepColor. */
|
|
9772
|
+
stepColor = input(undefined, ...(ngDevMode ? [{ debugName: "stepColor" }] : /* istanbul ignore next */ []));
|
|
9773
|
+
_style = this._themeSvc.wizardStyle;
|
|
9774
|
+
_activeTextColor = computed(() => this.activeTextColor() ?? this.color() ?? this._style().activeTextColor, ...(ngDevMode ? [{ debugName: "_activeTextColor" }] : /* istanbul ignore next */ []));
|
|
9775
|
+
_underlineColor = computed(() => this.underlineColor() ?? this.color() ?? this._style().underlineColor, ...(ngDevMode ? [{ debugName: "_underlineColor" }] : /* istanbul ignore next */ []));
|
|
9776
|
+
_stepColor = computed(() => this.stepColor() ?? this.color() ?? this._style().stepColor, ...(ngDevMode ? [{ debugName: "_stepColor" }] : /* istanbul ignore next */ []));
|
|
9749
9777
|
orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
9750
9778
|
linear = input(true, ...(ngDevMode ? [{ debugName: "linear" }] : /* istanbul ignore next */ []));
|
|
9751
9779
|
prevLabel = input('Anterior', ...(ngDevMode ? [{ debugName: "prevLabel" }] : /* istanbul ignore next */ []));
|
|
@@ -9780,7 +9808,7 @@ class ClxWizardComponent {
|
|
|
9780
9808
|
const step = this._steps[this._currentIndex()];
|
|
9781
9809
|
return step ? step.isValid() : true;
|
|
9782
9810
|
}, ...(ngDevMode ? [{ debugName: "_currentStepValid" }] : /* istanbul ignore next */ []));
|
|
9783
|
-
_connectorFillColor = computed(() => resolveColor(this.
|
|
9811
|
+
_connectorFillColor = computed(() => resolveColor(this._stepColor()).bg, ...(ngDevMode ? [{ debugName: "_connectorFillColor" }] : /* istanbul ignore next */ []));
|
|
9784
9812
|
_currentIndexStr = computed(() => String(this._currentIndex()), ...(ngDevMode ? [{ debugName: "_currentIndexStr" }] : /* istanbul ignore next */ []));
|
|
9785
9813
|
_tabItems = computed(() => this._steps.map((step, i) => ({
|
|
9786
9814
|
id: String(i),
|
|
@@ -9847,7 +9875,7 @@ class ClxWizardComponent {
|
|
|
9847
9875
|
_circleClass(i) {
|
|
9848
9876
|
const base = 'relative z-10 flex items-center justify-center w-9 h-9 rounded-full transition-colors duration-200 shrink-0 focus:outline-none';
|
|
9849
9877
|
const status = this._stepStatus(i);
|
|
9850
|
-
const color = this.
|
|
9878
|
+
const color = this._stepColor();
|
|
9851
9879
|
const ptr = !this._isTabDisabled(i) ? 'cursor-pointer' : 'cursor-default';
|
|
9852
9880
|
const t = resolveColor(color);
|
|
9853
9881
|
if (status === 'completed')
|
|
@@ -9859,14 +9887,15 @@ class ClxWizardComponent {
|
|
|
9859
9887
|
return `${base} border-2 border-clx-border text-clx-text-subtle bg-clx-surface ${ptr}`;
|
|
9860
9888
|
}
|
|
9861
9889
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxWizardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9862
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxWizardComponent, isStandalone: true, selector: "clx-wizard", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, prevLabel: { classPropertyName: "prevLabel", publicName: "prevLabel", isSignal: true, isRequired: false, transformFunction: null }, nextLabel: { classPropertyName: "nextLabel", publicName: "nextLabel", isSignal: true, isRequired: false, transformFunction: null }, finishLabel: { classPropertyName: "finishLabel", publicName: "finishLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stepChange: "stepChange", finish: "finish" }, queries: [{ propertyName: "_stepQuery", predicate: ClxStepComponent }], ngImport: i0, template: `
|
|
9890
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxWizardComponent, isStandalone: true, selector: "clx-wizard", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, activeTextColor: { classPropertyName: "activeTextColor", publicName: "activeTextColor", isSignal: true, isRequired: false, transformFunction: null }, underlineColor: { classPropertyName: "underlineColor", publicName: "underlineColor", isSignal: true, isRequired: false, transformFunction: null }, stepColor: { classPropertyName: "stepColor", publicName: "stepColor", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, prevLabel: { classPropertyName: "prevLabel", publicName: "prevLabel", isSignal: true, isRequired: false, transformFunction: null }, nextLabel: { classPropertyName: "nextLabel", publicName: "nextLabel", isSignal: true, isRequired: false, transformFunction: null }, finishLabel: { classPropertyName: "finishLabel", publicName: "finishLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stepChange: "stepChange", finish: "finish" }, queries: [{ propertyName: "_stepQuery", predicate: ClxStepComponent }], ngImport: i0, template: `
|
|
9863
9891
|
<div [class]="_rootClass()">
|
|
9864
9892
|
|
|
9865
9893
|
<!-- ══ HORIZONTAL: clx-tabs indicator ═══════════════════════════════ -->
|
|
9866
9894
|
@if (orientation() === 'horizontal') {
|
|
9867
9895
|
<clx-tabs
|
|
9868
9896
|
[tabs]="_tabItems()"
|
|
9869
|
-
[
|
|
9897
|
+
[activeTextColor]="_activeTextColor()"
|
|
9898
|
+
[underlineColor]="_underlineColor()"
|
|
9870
9899
|
[activeTab]="_currentIndexStr()"
|
|
9871
9900
|
(activeTabChange)="_onTabChange($event)"
|
|
9872
9901
|
/>
|
|
@@ -9974,7 +10003,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
9974
10003
|
@if (orientation() === 'horizontal') {
|
|
9975
10004
|
<clx-tabs
|
|
9976
10005
|
[tabs]="_tabItems()"
|
|
9977
|
-
[
|
|
10006
|
+
[activeTextColor]="_activeTextColor()"
|
|
10007
|
+
[underlineColor]="_underlineColor()"
|
|
9978
10008
|
[activeTab]="_currentIndexStr()"
|
|
9979
10009
|
(activeTabChange)="_onTabChange($event)"
|
|
9980
10010
|
/>
|
|
@@ -10072,7 +10102,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
10072
10102
|
</div>
|
|
10073
10103
|
</div>
|
|
10074
10104
|
`, styles: ["@keyframes clx-wizard-fade-slide{0%{opacity:0;transform:translate(10px)}to{opacity:1;transform:translate(0)}}.clx-wizard-step-enter{animation:clx-wizard-fade-slide .22s cubic-bezier(.4,0,.2,1) both}@keyframes clx-wizard-fill{0%{width:0%}to{width:100%}}.clx-wizard-connector-fill{animation:clx-wizard-fill .3s ease both}clx-step[data-active=false]{display:none}\n"] }]
|
|
10075
|
-
}], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], linear: [{ type: i0.Input, args: [{ isSignal: true, alias: "linear", required: false }] }], prevLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "prevLabel", required: false }] }], nextLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextLabel", required: false }] }], finishLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "finishLabel", required: false }] }], stepChange: [{ type: i0.Output, args: ["stepChange"] }], finish: [{ type: i0.Output, args: ["finish"] }], _stepQuery: [{
|
|
10105
|
+
}], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], activeTextColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeTextColor", required: false }] }], underlineColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "underlineColor", required: false }] }], stepColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepColor", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], linear: [{ type: i0.Input, args: [{ isSignal: true, alias: "linear", required: false }] }], prevLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "prevLabel", required: false }] }], nextLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextLabel", required: false }] }], finishLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "finishLabel", required: false }] }], stepChange: [{ type: i0.Output, args: ["stepChange"] }], finish: [{ type: i0.Output, args: ["finish"] }], _stepQuery: [{
|
|
10076
10106
|
type: ContentChildren,
|
|
10077
10107
|
args: [ClxStepComponent]
|
|
10078
10108
|
}] } });
|
|
@@ -13403,20 +13433,22 @@ class ClxFilterPanelComponent {
|
|
|
13403
13433
|
<!-- Header -->
|
|
13404
13434
|
<div [class]="_headerClass()" (click)="collapsible() ? _togglePanel() : null">
|
|
13405
13435
|
<div class="flex items-center gap-2">
|
|
13406
|
-
@if (collapsible()) {
|
|
13407
|
-
<span clx-icon [name]="panelCollapsed() ? 'expand_more' : 'expand_less'" size="sm" class="text-clx-text-subtle"></span>
|
|
13408
|
-
}
|
|
13409
13436
|
<span clx-icon name="filter_list" size="sm" class="text-clx-text-subtle"></span>
|
|
13410
13437
|
<span class="text-sm font-semibold text-clx-text-label">Filtros</span>
|
|
13411
13438
|
@if (_activeCount() > 0) {
|
|
13412
13439
|
<span [class]="_badgeCls()">{{ _activeCount() }}</span>
|
|
13413
13440
|
}
|
|
13414
13441
|
</div>
|
|
13415
|
-
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13442
|
+
<div class="flex items-center gap-1">
|
|
13443
|
+
@if (_activeCount() > 0 && !panelCollapsed()) {
|
|
13444
|
+
<button clx-button type="button" variant="ghost" color="slate" size="sm" (click)="$event.stopPropagation(); _reset()">
|
|
13445
|
+
Limpiar
|
|
13446
|
+
</button>
|
|
13447
|
+
}
|
|
13448
|
+
@if (collapsible()) {
|
|
13449
|
+
<span clx-icon [name]="panelCollapsed() ? 'expand_more' : 'expand_less'" size="sm" class="text-clx-text-subtle"></span>
|
|
13450
|
+
}
|
|
13451
|
+
</div>
|
|
13420
13452
|
</div>
|
|
13421
13453
|
|
|
13422
13454
|
<!-- Fields -->
|
|
@@ -13542,20 +13574,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
13542
13574
|
<!-- Header -->
|
|
13543
13575
|
<div [class]="_headerClass()" (click)="collapsible() ? _togglePanel() : null">
|
|
13544
13576
|
<div class="flex items-center gap-2">
|
|
13545
|
-
@if (collapsible()) {
|
|
13546
|
-
<span clx-icon [name]="panelCollapsed() ? 'expand_more' : 'expand_less'" size="sm" class="text-clx-text-subtle"></span>
|
|
13547
|
-
}
|
|
13548
13577
|
<span clx-icon name="filter_list" size="sm" class="text-clx-text-subtle"></span>
|
|
13549
13578
|
<span class="text-sm font-semibold text-clx-text-label">Filtros</span>
|
|
13550
13579
|
@if (_activeCount() > 0) {
|
|
13551
13580
|
<span [class]="_badgeCls()">{{ _activeCount() }}</span>
|
|
13552
13581
|
}
|
|
13553
13582
|
</div>
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
|
|
13557
|
-
|
|
13558
|
-
|
|
13583
|
+
<div class="flex items-center gap-1">
|
|
13584
|
+
@if (_activeCount() > 0 && !panelCollapsed()) {
|
|
13585
|
+
<button clx-button type="button" variant="ghost" color="slate" size="sm" (click)="$event.stopPropagation(); _reset()">
|
|
13586
|
+
Limpiar
|
|
13587
|
+
</button>
|
|
13588
|
+
}
|
|
13589
|
+
@if (collapsible()) {
|
|
13590
|
+
<span clx-icon [name]="panelCollapsed() ? 'expand_more' : 'expand_less'" size="sm" class="text-clx-text-subtle"></span>
|
|
13591
|
+
}
|
|
13592
|
+
</div>
|
|
13559
13593
|
</div>
|
|
13560
13594
|
|
|
13561
13595
|
<!-- Fields -->
|