codexly-ui 0.12.32 → 0.12.34
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
|
@@ -13420,14 +13420,6 @@ class ClxFilterPanelComponent {
|
|
|
13420
13420
|
_apply() {
|
|
13421
13421
|
this.applyChange.emit(this.values());
|
|
13422
13422
|
}
|
|
13423
|
-
_badgeCls() {
|
|
13424
|
-
const t = resolveColor(this._color());
|
|
13425
|
-
return `inline-flex items-center justify-center w-5 h-5 text-xs font-bold rounded-full ${t.bg} ${t.text}`;
|
|
13426
|
-
}
|
|
13427
|
-
_fieldBadgeCls() {
|
|
13428
|
-
const t = resolveColor(this._color());
|
|
13429
|
-
return `text-xs px-1.5 py-0.5 rounded-full font-medium ${t.bgSubtle} ${t.textSubtle}`;
|
|
13430
|
-
}
|
|
13431
13423
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxFilterPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13432
13424
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxFilterPanelComponent, isStandalone: true, selector: "clx-filter-panel", inputs: { fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: true, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, showApply: { classPropertyName: "showApply", publicName: "showApply", isSignal: true, isRequired: false, transformFunction: null }, applyButtonColor: { classPropertyName: "applyButtonColor", publicName: "applyButtonColor", isSignal: true, isRequired: false, transformFunction: null }, applyButtonTextColor: { classPropertyName: "applyButtonTextColor", publicName: "applyButtonTextColor", isSignal: true, isRequired: false, transformFunction: null }, applyButtonSize: { classPropertyName: "applyButtonSize", publicName: "applyButtonSize", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, panelCollapsed: { classPropertyName: "panelCollapsed", publicName: "panelCollapsed", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { panelCollapsed: "panelCollapsedChange", values: "valuesChange", filterChange: "filterChange", applyChange: "applyChange" }, host: { properties: { "class": "_hostClass()" } }, ngImport: i0, template: `
|
|
13433
13425
|
<!-- Header -->
|
|
@@ -13436,7 +13428,7 @@ class ClxFilterPanelComponent {
|
|
|
13436
13428
|
<span clx-icon name="filter_list" size="sm" class="text-clx-text-subtle"></span>
|
|
13437
13429
|
<span class="text-sm font-semibold text-clx-text-label">Filtros</span>
|
|
13438
13430
|
@if (_activeCount() > 0) {
|
|
13439
|
-
<span [
|
|
13431
|
+
<span clx-badge variant="solid" [color]="_color()" size="sm">{{ _activeCount() }}</span>
|
|
13440
13432
|
}
|
|
13441
13433
|
</div>
|
|
13442
13434
|
<div class="flex items-center gap-1">
|
|
@@ -13465,7 +13457,7 @@ class ClxFilterPanelComponent {
|
|
|
13465
13457
|
<span>{{ field.label }}</span>
|
|
13466
13458
|
<div class="flex items-center gap-1.5">
|
|
13467
13459
|
@if (_hasValue(field.key)) {
|
|
13468
|
-
<span [
|
|
13460
|
+
<span clx-badge variant="solid" [color]="_color()" size="sm">{{ _valueLabel(field) }}</span>
|
|
13469
13461
|
}
|
|
13470
13462
|
<span clx-icon
|
|
13471
13463
|
[name]="_isCollapsed(field.key) ? 'expand_more' : 'expand_less'"
|
|
@@ -13562,14 +13554,14 @@ class ClxFilterPanelComponent {
|
|
|
13562
13554
|
</div>
|
|
13563
13555
|
}
|
|
13564
13556
|
}
|
|
13565
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ClxIconComponent, selector: "span[clx-icon]", inputs: ["name", "size", "color", "fill"] }, { kind: "component", type: ClxButtonComponent, selector: "button[clx-button], a[clx-button]", inputs: ["variant", "color", "emphasis", "textColor", "size", "shape", "loading", "disabled", "block", "icon", "iconPosition", "iconOnly", "badge", "badgeColor"] }, { kind: "component", type: ClxCheckboxComponent, selector: "clx-checkbox", inputs: ["color", "variant", "size", "label", "value", "disabled"] }, { kind: "component", type: ClxNumberComponent, selector: "clx-number", inputs: ["variant", "size", "color", "label", "placeholder", "hint", "prefixIcon", "min", "max", "step", "value", "disabled"] }, { kind: "component", type: ClxRadioGroupComponent, selector: "clx-radio-group", inputs: ["color", "variant", "size", "direction", "disabled"] }, { kind: "component", type: ClxRadioComponent, selector: "clx-radio", inputs: ["value", "label", "color", "variant", "size"] }, { kind: "component", type: ClxSelectComponent, selector: "clx-select", inputs: ["label", "placeholder", "options", "multiple", "searchable", "searchPlaceholder", "activeColor", "size", "hint", "errorMessage", "disabled", "async", "loadOptions", "debounceMs", "minChars"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
13557
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ClxIconComponent, selector: "span[clx-icon]", inputs: ["name", "size", "color", "fill"] }, { kind: "component", type: ClxButtonComponent, selector: "button[clx-button], a[clx-button]", inputs: ["variant", "color", "emphasis", "textColor", "size", "shape", "loading", "disabled", "block", "icon", "iconPosition", "iconOnly", "badge", "badgeColor"] }, { kind: "component", type: ClxBadgeComponent, selector: "span[clx-badge]", inputs: ["variant", "color", "size", "shape", "positioned"] }, { kind: "component", type: ClxCheckboxComponent, selector: "clx-checkbox", inputs: ["color", "variant", "size", "label", "value", "disabled"] }, { kind: "component", type: ClxNumberComponent, selector: "clx-number", inputs: ["variant", "size", "color", "label", "placeholder", "hint", "prefixIcon", "min", "max", "step", "value", "disabled"] }, { kind: "component", type: ClxRadioGroupComponent, selector: "clx-radio-group", inputs: ["color", "variant", "size", "direction", "disabled"] }, { kind: "component", type: ClxRadioComponent, selector: "clx-radio", inputs: ["value", "label", "color", "variant", "size"] }, { kind: "component", type: ClxSelectComponent, selector: "clx-select", inputs: ["label", "placeholder", "options", "multiple", "searchable", "searchPlaceholder", "activeColor", "size", "hint", "errorMessage", "disabled", "async", "loadOptions", "debounceMs", "minChars"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
13566
13558
|
}
|
|
13567
13559
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxFilterPanelComponent, decorators: [{
|
|
13568
13560
|
type: Component,
|
|
13569
13561
|
args: [{
|
|
13570
13562
|
selector: 'clx-filter-panel',
|
|
13571
13563
|
standalone: true,
|
|
13572
|
-
imports: [FormsModule, ClxIconComponent, ClxButtonComponent, ClxCheckboxComponent, ClxNumberComponent, ClxRadioGroupComponent, ClxRadioComponent, ClxSelectComponent],
|
|
13564
|
+
imports: [FormsModule, ClxIconComponent, ClxButtonComponent, ClxBadgeComponent, ClxCheckboxComponent, ClxNumberComponent, ClxRadioGroupComponent, ClxRadioComponent, ClxSelectComponent],
|
|
13573
13565
|
template: `
|
|
13574
13566
|
<!-- Header -->
|
|
13575
13567
|
<div [class]="_headerClass()" (click)="collapsible() ? _togglePanel() : null">
|
|
@@ -13577,7 +13569,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
13577
13569
|
<span clx-icon name="filter_list" size="sm" class="text-clx-text-subtle"></span>
|
|
13578
13570
|
<span class="text-sm font-semibold text-clx-text-label">Filtros</span>
|
|
13579
13571
|
@if (_activeCount() > 0) {
|
|
13580
|
-
<span [
|
|
13572
|
+
<span clx-badge variant="solid" [color]="_color()" size="sm">{{ _activeCount() }}</span>
|
|
13581
13573
|
}
|
|
13582
13574
|
</div>
|
|
13583
13575
|
<div class="flex items-center gap-1">
|
|
@@ -13606,7 +13598,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
13606
13598
|
<span>{{ field.label }}</span>
|
|
13607
13599
|
<div class="flex items-center gap-1.5">
|
|
13608
13600
|
@if (_hasValue(field.key)) {
|
|
13609
|
-
<span [
|
|
13601
|
+
<span clx-badge variant="solid" [color]="_color()" size="sm">{{ _valueLabel(field) }}</span>
|
|
13610
13602
|
}
|
|
13611
13603
|
<span clx-icon
|
|
13612
13604
|
[name]="_isCollapsed(field.key) ? 'expand_more' : 'expand_less'"
|