codexly-ui 0.12.22 → 0.12.23

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.
@@ -16055,11 +16055,18 @@ class ClxWishlistComponent {
16055
16055
  * clx-input/clx-select/clx-pagination themselves. Previously this was a required-looking input
16056
16056
  * defaulting to a hardcoded 'indigo' that every zone read directly, bypassing theme entirely. */
16057
16057
  color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
16058
- /** Text color for "Agregar todo al carrito" (variant="light") — independent of `color`, same
16059
- * rationale as clx-button's own [textColor]: a saturated `color` can leave the auto-resolved
16060
- * text illegible against a light-tinted background. Undefined leaves clx-button's own
16061
- * automatic resolution untouched. */
16058
+ /** Override for "Agregar todo al carrito" (variant="light") — same [color]/[textColor]/
16059
+ * [emphasis] precedence as clx-button itself: an explicit checkoutAllColor always wins;
16060
+ * otherwise checkoutAllEmphasis="secondary" resolves the theme's secondaryColor (falling back
16061
+ * to primaryColor) instead of `color()`/primaryColor, same as clx-product-detail's
16062
+ * addToCartColor + emphasis="secondary" treatment for its own secondary CTA. */
16063
+ checkoutAllColor = input(undefined, ...(ngDevMode ? [{ debugName: "checkoutAllColor" }] : /* istanbul ignore next */ []));
16062
16064
  checkoutAllTextColor = input(undefined, ...(ngDevMode ? [{ debugName: "checkoutAllTextColor" }] : /* istanbul ignore next */ []));
16065
+ checkoutAllEmphasis = input('primary', ...(ngDevMode ? [{ debugName: "checkoutAllEmphasis" }] : /* istanbul ignore next */ []));
16066
+ /** checkoutAllColor always wins when set. Otherwise: emphasis="secondary" is passed through
16067
+ * as-is (undefined) so clx-button resolves the theme's secondaryColor itself; emphasis="primary"
16068
+ * falls back to `color()`/theme primaryColor, same as every other zone in this component. */
16069
+ _checkoutAllColor = computed(() => this.checkoutAllColor() ?? (this.checkoutAllEmphasis() === 'secondary' ? undefined : this._accentColor()), ...(ngDevMode ? [{ debugName: "_checkoutAllColor" }] : /* istanbul ignore next */ []));
16063
16070
  /** Override for each item's own "Añadir al carrito" button (variant="solid") — same naming as
16064
16071
  * clx-product-detail's actionColor/actionTextColor. Falls back to `color()` when unset. */
16065
16072
  actionColor = input(undefined, ...(ngDevMode ? [{ debugName: "actionColor" }] : /* istanbul ignore next */ []));
@@ -16166,7 +16173,7 @@ class ClxWishlistComponent {
16166
16173
  this.onCheckoutAll.emit(this._filtered());
16167
16174
  }
16168
16175
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxWishlistComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
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: `
16176
+ 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 }, checkoutAllColor: { classPropertyName: "checkoutAllColor", publicName: "checkoutAllColor", isSignal: true, isRequired: false, transformFunction: null }, checkoutAllTextColor: { classPropertyName: "checkoutAllTextColor", publicName: "checkoutAllTextColor", isSignal: true, isRequired: false, transformFunction: null }, checkoutAllEmphasis: { classPropertyName: "checkoutAllEmphasis", publicName: "checkoutAllEmphasis", 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: `
16170
16177
  <div class="flex flex-col gap-6">
16171
16178
 
16172
16179
  @if (loading() || items().length > 0) {
@@ -16205,7 +16212,8 @@ class ClxWishlistComponent {
16205
16212
  clx-button
16206
16213
  type="button"
16207
16214
  variant="light"
16208
- [color]="_accentColor()"
16215
+ [emphasis]="checkoutAllEmphasis()"
16216
+ [color]="_checkoutAllColor()"
16209
16217
  [textColor]="checkoutAllTextColor()"
16210
16218
  icon="arrow_forward"
16211
16219
  iconPosition="right"
@@ -16414,7 +16422,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
16414
16422
  clx-button
16415
16423
  type="button"
16416
16424
  variant="light"
16417
- [color]="_accentColor()"
16425
+ [emphasis]="checkoutAllEmphasis()"
16426
+ [color]="_checkoutAllColor()"
16418
16427
  [textColor]="checkoutAllTextColor()"
16419
16428
  icon="arrow_forward"
16420
16429
  iconPosition="right"
@@ -16569,7 +16578,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
16569
16578
  encapsulation: ViewEncapsulation.None,
16570
16579
  changeDetection: ChangeDetectionStrategy.OnPush,
16571
16580
  }]
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"] }] } });
16581
+ }], 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 }] }], checkoutAllColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkoutAllColor", required: false }] }], checkoutAllTextColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkoutAllTextColor", required: false }] }], checkoutAllEmphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkoutAllEmphasis", 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"] }] } });
16573
16582
 
16574
16583
  class ClxCartComponent {
16575
16584
  items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));