codexly-ui 0.12.20 → 0.12.22

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.
@@ -10977,6 +10977,14 @@ class ClxProfileComponent {
10977
10977
  const t = resolveColor(this._color());
10978
10978
  return `focus-visible:${t.ringBase}`;
10979
10979
  }, ...(ngDevMode ? [{ debugName: "_ringClass" }] : /* istanbul ignore next */ []));
10980
+ /** Dropdown panel border — was a hardcoded border-clx-border-soft (a fixed global CSS var, same
10981
+ * gray in every theme) instead of reading the theme like every other card-shaped component
10982
+ * (clx-card, clx-product, clx-wishlist, clx-notification, clx-filter-panel all use
10983
+ * cardBorderColor/borderLight). Now consistent with those. */
10984
+ _panelClass = computed(() => {
10985
+ const t = resolveColor(this._themeSvc.cardBorderColor());
10986
+ return `w-72 bg-clx-surface rounded-2xl shadow-xl border ${t.borderLight} overflow-hidden mt-2`;
10987
+ }, ...(ngDevMode ? [{ debugName: "_panelClass" }] : /* istanbul ignore next */ []));
10980
10988
  // ── Methods ──────────────────────────────────────────────────────────────────
10981
10989
  _toggle() { this._isOpen.update(v => !v); }
10982
10990
  _close() { this._isOpen.set(false); }
@@ -11020,7 +11028,7 @@ class ClxProfileComponent {
11020
11028
  (overlayOutsideClick)="_close()"
11021
11029
  (overlayKeydown)="_onKeydown($event)">
11022
11030
 
11023
- <div class="w-72 bg-clx-surface rounded-2xl shadow-xl border border-clx-border-soft overflow-hidden mt-2">
11031
+ <div [class]="_panelClass()">
11024
11032
 
11025
11033
  <!-- Header: avatar + name + role badge -->
11026
11034
  <div class="px-4 pt-4 pb-3 flex items-center gap-3">
@@ -11097,7 +11105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
11097
11105
  (overlayOutsideClick)="_close()"
11098
11106
  (overlayKeydown)="_onKeydown($event)">
11099
11107
 
11100
- <div class="w-72 bg-clx-surface rounded-2xl shadow-xl border border-clx-border-soft overflow-hidden mt-2">
11108
+ <div [class]="_panelClass()">
11101
11109
 
11102
11110
  <!-- Header: avatar + name + role badge -->
11103
11111
  <div class="px-4 pt-4 pb-3 flex items-center gap-3">
@@ -16052,9 +16060,11 @@ class ClxWishlistComponent {
16052
16060
  * text illegible against a light-tinted background. Undefined leaves clx-button's own
16053
16061
  * automatic resolution untouched. */
16054
16062
  checkoutAllTextColor = input(undefined, ...(ngDevMode ? [{ debugName: "checkoutAllTextColor" }] : /* istanbul ignore next */ []));
16055
- /** Text color for each item's own "Añadir al carrito" (variant="solid") — independent of
16056
- * `color`, same rationale as checkoutAllTextColor. */
16057
- addToCartTextColor = input(undefined, ...(ngDevMode ? [{ debugName: "addToCartTextColor" }] : /* istanbul ignore next */ []));
16063
+ /** Override for each item's own "Añadir al carrito" button (variant="solid") — same naming as
16064
+ * clx-product-detail's actionColor/actionTextColor. Falls back to `color()` when unset. */
16065
+ actionColor = input(undefined, ...(ngDevMode ? [{ debugName: "actionColor" }] : /* istanbul ignore next */ []));
16066
+ actionTextColor = input(undefined, ...(ngDevMode ? [{ debugName: "actionTextColor" }] : /* istanbul ignore next */ []));
16067
+ _actionColor = computed(() => this.actionColor() ?? this.color() ?? this._themeSvc.config().primaryColor, ...(ngDevMode ? [{ debugName: "_actionColor" }] : /* istanbul ignore next */ []));
16058
16068
  /** Product card drop shadow — same ClxCardShadow scale as clx-card ('none' turns it off
16059
16069
  * entirely). Falls back to 'sm', the shadow these cards have always rendered with. */
16060
16070
  shadow = input(undefined, ...(ngDevMode ? [{ debugName: "shadow" }] : /* istanbul ignore next */ []));
@@ -16156,7 +16166,7 @@ class ClxWishlistComponent {
16156
16166
  this.onCheckoutAll.emit(this._filtered());
16157
16167
  }
16158
16168
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxWishlistComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
16159
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxWishlistComponent, isStandalone: true, selector: "clx-wishlist", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, checkoutAllTextColor: { classPropertyName: "checkoutAllTextColor", publicName: "checkoutAllTextColor", isSignal: true, isRequired: false, transformFunction: null }, addToCartTextColor: { classPropertyName: "addToCartTextColor", publicName: "addToCartTextColor", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, sortOptions: { classPropertyName: "sortOptions", publicName: "sortOptions", isSignal: true, isRequired: false, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, sortValue: { classPropertyName: "sortValue", publicName: "sortValue", isSignal: true, isRequired: false, transformFunction: null }, searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { currentPage: "currentPageChange", pageSize: "pageSizeChange", sortValue: "sortValueChange", searchValue: "searchValueChange", onRemove: "onRemove", onAddToCart: "onAddToCart", onSearchChange: "onSearchChange", onSortChange: "onSortChange", onPageChange: "onPageChange", onCheckoutAll: "onCheckoutAll", onBrowseCatalog: "onBrowseCatalog" }, ngImport: i0, template: `
16169
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxWishlistComponent, isStandalone: true, selector: "clx-wishlist", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, checkoutAllTextColor: { classPropertyName: "checkoutAllTextColor", publicName: "checkoutAllTextColor", isSignal: true, isRequired: false, transformFunction: null }, actionColor: { classPropertyName: "actionColor", publicName: "actionColor", isSignal: true, isRequired: false, transformFunction: null }, actionTextColor: { classPropertyName: "actionTextColor", publicName: "actionTextColor", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, sortOptions: { classPropertyName: "sortOptions", publicName: "sortOptions", isSignal: true, isRequired: false, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, sortValue: { classPropertyName: "sortValue", publicName: "sortValue", isSignal: true, isRequired: false, transformFunction: null }, searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { currentPage: "currentPageChange", pageSize: "pageSizeChange", sortValue: "sortValueChange", searchValue: "searchValueChange", onRemove: "onRemove", onAddToCart: "onAddToCart", onSearchChange: "onSearchChange", onSortChange: "onSortChange", onPageChange: "onPageChange", onCheckoutAll: "onCheckoutAll", onBrowseCatalog: "onBrowseCatalog" }, ngImport: i0, template: `
16160
16170
  <div class="flex flex-col gap-6">
16161
16171
 
16162
16172
  @if (loading() || items().length > 0) {
@@ -16189,7 +16199,7 @@ class ClxWishlistComponent {
16189
16199
  <div class="flex flex-col sm:flex-row sm:items-center justify-between gap-3">
16190
16200
  <div class="flex items-center gap-2">
16191
16201
  <h2 class="text-base font-semibold text-clx-text-label">Productos</h2>
16192
- <span clx-badge variant="light" [color]="_accentColor()" size="sm">{{ _totalItems() }}</span>
16202
+ <span clx-badge variant="solid" [color]="_accentColor()" size="sm">{{ _totalItems() }}</span>
16193
16203
  </div>
16194
16204
  <button
16195
16205
  clx-button
@@ -16312,8 +16322,8 @@ class ClxWishlistComponent {
16312
16322
  <button
16313
16323
  clx-button
16314
16324
  type="button"
16315
- [color]="_accentColor()"
16316
- [textColor]="addToCartTextColor()"
16325
+ [color]="_actionColor()"
16326
+ [textColor]="actionTextColor()"
16317
16327
  variant="solid"
16318
16328
  size="md"
16319
16329
  icon="shopping_cart"
@@ -16398,7 +16408,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
16398
16408
  <div class="flex flex-col sm:flex-row sm:items-center justify-between gap-3">
16399
16409
  <div class="flex items-center gap-2">
16400
16410
  <h2 class="text-base font-semibold text-clx-text-label">Productos</h2>
16401
- <span clx-badge variant="light" [color]="_accentColor()" size="sm">{{ _totalItems() }}</span>
16411
+ <span clx-badge variant="solid" [color]="_accentColor()" size="sm">{{ _totalItems() }}</span>
16402
16412
  </div>
16403
16413
  <button
16404
16414
  clx-button
@@ -16521,8 +16531,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
16521
16531
  <button
16522
16532
  clx-button
16523
16533
  type="button"
16524
- [color]="_accentColor()"
16525
- [textColor]="addToCartTextColor()"
16534
+ [color]="_actionColor()"
16535
+ [textColor]="actionTextColor()"
16526
16536
  variant="solid"
16527
16537
  size="md"
16528
16538
  icon="shopping_cart"
@@ -16559,7 +16569,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
16559
16569
  encapsulation: ViewEncapsulation.None,
16560
16570
  changeDetection: ChangeDetectionStrategy.OnPush,
16561
16571
  }]
16562
- }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], checkoutAllTextColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkoutAllTextColor", required: false }] }], addToCartTextColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "addToCartTextColor", required: false }] }], shadow: [{ type: i0.Input, args: [{ isSignal: true, alias: "shadow", required: false }] }], sortOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortOptions", required: false }] }], currentPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPage", required: false }] }, { type: i0.Output, args: ["currentPageChange"] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }, { type: i0.Output, args: ["pageSizeChange"] }], sortValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortValue", required: false }] }, { type: i0.Output, args: ["sortValueChange"] }], searchValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchValue", required: false }] }, { type: i0.Output, args: ["searchValueChange"] }], onRemove: [{ type: i0.Output, args: ["onRemove"] }], onAddToCart: [{ type: i0.Output, args: ["onAddToCart"] }], onSearchChange: [{ type: i0.Output, args: ["onSearchChange"] }], onSortChange: [{ type: i0.Output, args: ["onSortChange"] }], onPageChange: [{ type: i0.Output, args: ["onPageChange"] }], onCheckoutAll: [{ type: i0.Output, args: ["onCheckoutAll"] }], onBrowseCatalog: [{ type: i0.Output, args: ["onBrowseCatalog"] }] } });
16572
+ }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], checkoutAllTextColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkoutAllTextColor", required: false }] }], actionColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionColor", required: false }] }], actionTextColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionTextColor", required: false }] }], shadow: [{ type: i0.Input, args: [{ isSignal: true, alias: "shadow", required: false }] }], sortOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortOptions", required: false }] }], currentPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPage", required: false }] }, { type: i0.Output, args: ["currentPageChange"] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }, { type: i0.Output, args: ["pageSizeChange"] }], sortValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortValue", required: false }] }, { type: i0.Output, args: ["sortValueChange"] }], searchValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchValue", required: false }] }, { type: i0.Output, args: ["searchValueChange"] }], onRemove: [{ type: i0.Output, args: ["onRemove"] }], onAddToCart: [{ type: i0.Output, args: ["onAddToCart"] }], onSearchChange: [{ type: i0.Output, args: ["onSearchChange"] }], onSortChange: [{ type: i0.Output, args: ["onSortChange"] }], onPageChange: [{ type: i0.Output, args: ["onPageChange"] }], onCheckoutAll: [{ type: i0.Output, args: ["onCheckoutAll"] }], onBrowseCatalog: [{ type: i0.Output, args: ["onBrowseCatalog"] }] } });
16563
16573
 
16564
16574
  class ClxCartComponent {
16565
16575
  items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));