codexly-ui 0.12.13 → 0.12.15

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.
@@ -13259,9 +13259,22 @@ class ClxFilterPanelComponent {
13259
13259
  * host keep a saturated brand color on checkboxes/slider (small accents) while giving the CTA
13260
13260
  * button its own color and a bigger size if the sidebar's width calls for it. */
13261
13261
  applyButtonColor = input(undefined, ...(ngDevMode ? [{ debugName: "applyButtonColor" }] : /* istanbul ignore next */ []));
13262
+ /** Text color for the same "Aplicar filtros" button — independent of applyButtonColor, same
13263
+ * rationale as clx-button's own [textColor]: a saturated applyButtonColor can leave the
13264
+ * auto-resolved contrast text illegible. Undefined leaves clx-button's own automatic
13265
+ * resolution untouched. */
13266
+ applyButtonTextColor = input(undefined, ...(ngDevMode ? [{ debugName: "applyButtonTextColor" }] : /* istanbul ignore next */ []));
13262
13267
  applyButtonSize = input('sm', ...(ngDevMode ? [{ debugName: "applyButtonSize" }] : /* istanbul ignore next */ []));
13263
13268
  _color = computed(() => this.color() ?? this._themeSvc.config().primaryColor, ...(ngDevMode ? [{ debugName: "_color" }] : /* istanbul ignore next */ []));
13264
13269
  _applyButtonColor = computed(() => this.applyButtonColor() ?? this._color(), ...(ngDevMode ? [{ debugName: "_applyButtonColor" }] : /* istanbul ignore next */ []));
13270
+ /** Outer border — was a hardcoded border-clx-border (a fixed global CSS var, same gray in every
13271
+ * theme) instead of reading the theme like every other card-shaped component (clx-card,
13272
+ * clx-product, clx-wishlist, clx-notification all use cardBorderColor/borderLight). Now
13273
+ * consistent with those. */
13274
+ _hostClass = computed(() => {
13275
+ const t = resolveColor(this._themeSvc.cardBorderColor());
13276
+ return `flex flex-col bg-clx-surface border ${t.borderLight} rounded-xl overflow-hidden`;
13277
+ }, ...(ngDevMode ? [{ debugName: "_hostClass" }] : /* istanbul ignore next */ []));
13265
13278
  values = model({}, ...(ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []));
13266
13279
  filterChange = output();
13267
13280
  applyChange = output();
@@ -13346,7 +13359,7 @@ class ClxFilterPanelComponent {
13346
13359
  return `text-xs px-1.5 py-0.5 rounded-full font-medium ${t.bgSubtle} ${t.textSubtle}`;
13347
13360
  }
13348
13361
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxFilterPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13349
- 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 }, applyButtonSize: { classPropertyName: "applyButtonSize", publicName: "applyButtonSize", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { values: "valuesChange", filterChange: "filterChange", applyChange: "applyChange" }, host: { classAttribute: "flex flex-col bg-clx-surface border border-clx-border rounded-xl overflow-hidden" }, ngImport: i0, template: `
13362
+ 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 }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { values: "valuesChange", filterChange: "filterChange", applyChange: "applyChange" }, host: { properties: { "class": "_hostClass()" } }, ngImport: i0, template: `
13350
13363
  <!-- Header -->
13351
13364
  <div class="flex items-center justify-between px-4 py-3 border-b border-clx-border-soft">
13352
13365
  <div class="flex items-center gap-2">
@@ -13467,7 +13480,7 @@ class ClxFilterPanelComponent {
13467
13480
  <!-- Apply footer -->
13468
13481
  @if (showApply()) {
13469
13482
  <div class="px-4 py-3 border-t border-clx-border-soft flex gap-2">
13470
- <button clx-button type="button" variant="solid" [color]="_applyButtonColor()" [size]="applyButtonSize()" class="flex-1" (click)="_apply()">
13483
+ <button clx-button type="button" variant="solid" [color]="_applyButtonColor()" [textColor]="applyButtonTextColor()" [size]="applyButtonSize()" class="flex-1" (click)="_apply()">
13471
13484
  Aplicar filtros
13472
13485
  </button>
13473
13486
  </div>
@@ -13601,7 +13614,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
13601
13614
  <!-- Apply footer -->
13602
13615
  @if (showApply()) {
13603
13616
  <div class="px-4 py-3 border-t border-clx-border-soft flex gap-2">
13604
- <button clx-button type="button" variant="solid" [color]="_applyButtonColor()" [size]="applyButtonSize()" class="flex-1" (click)="_apply()">
13617
+ <button clx-button type="button" variant="solid" [color]="_applyButtonColor()" [textColor]="applyButtonTextColor()" [size]="applyButtonSize()" class="flex-1" (click)="_apply()">
13605
13618
  Aplicar filtros
13606
13619
  </button>
13607
13620
  </div>
@@ -13609,9 +13622,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
13609
13622
  `,
13610
13623
  encapsulation: ViewEncapsulation.None,
13611
13624
  changeDetection: ChangeDetectionStrategy.OnPush,
13612
- host: { class: 'flex flex-col bg-clx-surface border border-clx-border rounded-xl overflow-hidden' },
13625
+ host: { '[class]': '_hostClass()' },
13613
13626
  }]
13614
- }], propDecorators: { fields: [{ type: i0.Input, args: [{ isSignal: true, alias: "fields", required: true }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], showApply: [{ type: i0.Input, args: [{ isSignal: true, alias: "showApply", required: false }] }], applyButtonColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "applyButtonColor", required: false }] }], applyButtonSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "applyButtonSize", required: false }] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }, { type: i0.Output, args: ["valuesChange"] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }], applyChange: [{ type: i0.Output, args: ["applyChange"] }] } });
13627
+ }], propDecorators: { fields: [{ type: i0.Input, args: [{ isSignal: true, alias: "fields", required: true }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], showApply: [{ type: i0.Input, args: [{ isSignal: true, alias: "showApply", required: false }] }], applyButtonColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "applyButtonColor", required: false }] }], applyButtonTextColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "applyButtonTextColor", required: false }] }], applyButtonSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "applyButtonSize", required: false }] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }, { type: i0.Output, args: ["valuesChange"] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }], applyChange: [{ type: i0.Output, args: ["applyChange"] }] } });
13615
13628
 
13616
13629
  class ClxCarouselDirective {
13617
13630
  templateRef;