codexly-ui 0.12.22 → 0.12.24

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.
@@ -8414,7 +8414,11 @@ class ClxModalComponent {
8414
8414
  _confirmColor = computed(() => this.confirmButton()?.color ?? this._themeSvc.config().primaryColor, ...(ngDevMode ? [{ debugName: "_confirmColor" }] : /* istanbul ignore next */ []));
8415
8415
  _confirmVariant = computed(() => this.confirmButton()?.variant ?? 'solid', ...(ngDevMode ? [{ debugName: "_confirmVariant" }] : /* istanbul ignore next */ []));
8416
8416
  _cancelText = computed(() => this.cancelButton()?.text ?? 'Cancelar', ...(ngDevMode ? [{ debugName: "_cancelText" }] : /* istanbul ignore next */ []));
8417
- _cancelColor = computed(() => this.cancelButton()?.color ?? 'slate', ...(ngDevMode ? [{ debugName: "_cancelColor" }] : /* istanbul ignore next */ []));
8417
+ /** Undefined when the caller didn't pass an explicit cancelButton.color lets the button's own
8418
+ * emphasis="secondary" resolve the theme's secondaryColor (with secondaryButtonTextColor
8419
+ * auto-applied on solid variants) instead of hardcoding 'slate', same convention as
8420
+ * clx-alert/clx-product-detail/clx-wishlist's secondary actions. */
8421
+ _cancelColor = computed(() => this.cancelButton()?.color, ...(ngDevMode ? [{ debugName: "_cancelColor" }] : /* istanbul ignore next */ []));
8418
8422
  _cancelVariant = computed(() => this.cancelButton()?.variant ?? 'ghost', ...(ngDevMode ? [{ debugName: "_cancelVariant" }] : /* istanbul ignore next */ []));
8419
8423
  _close() {
8420
8424
  this._modalRef?.close();
@@ -8454,6 +8458,7 @@ class ClxModalComponent {
8454
8458
  <button
8455
8459
  clx-button
8456
8460
  type="button"
8461
+ emphasis="secondary"
8457
8462
  [color]="_cancelColor()"
8458
8463
  [variant]="_cancelVariant()"
8459
8464
  [icon]="cancelButton()?.icon"
@@ -8522,6 +8527,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
8522
8527
  <button
8523
8528
  clx-button
8524
8529
  type="button"
8530
+ emphasis="secondary"
8525
8531
  [color]="_cancelColor()"
8526
8532
  [variant]="_cancelVariant()"
8527
8533
  [icon]="cancelButton()?.icon"
@@ -11857,7 +11863,11 @@ class ClxAlertComponent {
11857
11863
  return ALERT_CONFIRM_COLOR_MAP[this._type];
11858
11864
  }, ...(ngDevMode ? [{ debugName: "_confirmColor" }] : /* istanbul ignore next */ []));
11859
11865
  _cancelText = signal(this._opts.cancelButton?.text ?? 'Cancelar', ...(ngDevMode ? [{ debugName: "_cancelText" }] : /* istanbul ignore next */ []));
11860
- _cancelColor = computed(() => this._opts.cancelButton?.color ?? this._themeSvc.config().secondaryColor, ...(ngDevMode ? [{ debugName: "_cancelColor" }] : /* istanbul ignore next */ []));
11866
+ /** Undefined when the caller didn't pass an explicit cancelButton.color lets the button's own
11867
+ * emphasis="secondary" resolve the theme's secondaryColor (with secondaryButtonTextColor
11868
+ * auto-applied on solid variants), same convention as clx-product-detail/clx-wishlist's
11869
+ * secondary CTAs, instead of hardcoding secondaryColor here and losing that auto-text-color. */
11870
+ _cancelColor = computed(() => this._opts.cancelButton?.color, ...(ngDevMode ? [{ debugName: "_cancelColor" }] : /* istanbul ignore next */ []));
11861
11871
  _cancelVariant = signal(this._opts.cancelButton?.variant ?? 'ghost', ...(ngDevMode ? [{ debugName: "_cancelVariant" }] : /* istanbul ignore next */ []));
11862
11872
  // ─── Timer state ─────────────────────────────────────────────────────────
11863
11873
  _timerTotal = signal(this._opts.timer ?? 0, ...(ngDevMode ? [{ debugName: "_timerTotal" }] : /* istanbul ignore next */ []));
@@ -11959,6 +11969,7 @@ class ClxAlertComponent {
11959
11969
  <button
11960
11970
  clx-button
11961
11971
  type="button"
11972
+ emphasis="secondary"
11962
11973
  [color]="_cancelColor()"
11963
11974
  [variant]="_cancelVariant()"
11964
11975
  size="md"
@@ -12031,6 +12042,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
12031
12042
  <button
12032
12043
  clx-button
12033
12044
  type="button"
12045
+ emphasis="secondary"
12034
12046
  [color]="_cancelColor()"
12035
12047
  [variant]="_cancelVariant()"
12036
12048
  size="md"
@@ -16055,11 +16067,18 @@ class ClxWishlistComponent {
16055
16067
  * clx-input/clx-select/clx-pagination themselves. Previously this was a required-looking input
16056
16068
  * defaulting to a hardcoded 'indigo' that every zone read directly, bypassing theme entirely. */
16057
16069
  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. */
16070
+ /** Override for "Agregar todo al carrito" (variant="light") — same [color]/[textColor]/
16071
+ * [emphasis] precedence as clx-button itself: an explicit checkoutAllColor always wins;
16072
+ * otherwise checkoutAllEmphasis="secondary" resolves the theme's secondaryColor (falling back
16073
+ * to primaryColor) instead of `color()`/primaryColor, same as clx-product-detail's
16074
+ * addToCartColor + emphasis="secondary" treatment for its own secondary CTA. */
16075
+ checkoutAllColor = input(undefined, ...(ngDevMode ? [{ debugName: "checkoutAllColor" }] : /* istanbul ignore next */ []));
16062
16076
  checkoutAllTextColor = input(undefined, ...(ngDevMode ? [{ debugName: "checkoutAllTextColor" }] : /* istanbul ignore next */ []));
16077
+ checkoutAllEmphasis = input('primary', ...(ngDevMode ? [{ debugName: "checkoutAllEmphasis" }] : /* istanbul ignore next */ []));
16078
+ /** checkoutAllColor always wins when set. Otherwise: emphasis="secondary" is passed through
16079
+ * as-is (undefined) so clx-button resolves the theme's secondaryColor itself; emphasis="primary"
16080
+ * falls back to `color()`/theme primaryColor, same as every other zone in this component. */
16081
+ _checkoutAllColor = computed(() => this.checkoutAllColor() ?? (this.checkoutAllEmphasis() === 'secondary' ? undefined : this._accentColor()), ...(ngDevMode ? [{ debugName: "_checkoutAllColor" }] : /* istanbul ignore next */ []));
16063
16082
  /** Override for each item's own "Añadir al carrito" button (variant="solid") — same naming as
16064
16083
  * clx-product-detail's actionColor/actionTextColor. Falls back to `color()` when unset. */
16065
16084
  actionColor = input(undefined, ...(ngDevMode ? [{ debugName: "actionColor" }] : /* istanbul ignore next */ []));
@@ -16166,7 +16185,7 @@ class ClxWishlistComponent {
16166
16185
  this.onCheckoutAll.emit(this._filtered());
16167
16186
  }
16168
16187
  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: `
16188
+ 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
16189
  <div class="flex flex-col gap-6">
16171
16190
 
16172
16191
  @if (loading() || items().length > 0) {
@@ -16205,7 +16224,8 @@ class ClxWishlistComponent {
16205
16224
  clx-button
16206
16225
  type="button"
16207
16226
  variant="light"
16208
- [color]="_accentColor()"
16227
+ [emphasis]="checkoutAllEmphasis()"
16228
+ [color]="_checkoutAllColor()"
16209
16229
  [textColor]="checkoutAllTextColor()"
16210
16230
  icon="arrow_forward"
16211
16231
  iconPosition="right"
@@ -16414,7 +16434,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
16414
16434
  clx-button
16415
16435
  type="button"
16416
16436
  variant="light"
16417
- [color]="_accentColor()"
16437
+ [emphasis]="checkoutAllEmphasis()"
16438
+ [color]="_checkoutAllColor()"
16418
16439
  [textColor]="checkoutAllTextColor()"
16419
16440
  icon="arrow_forward"
16420
16441
  iconPosition="right"
@@ -16569,7 +16590,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
16569
16590
  encapsulation: ViewEncapsulation.None,
16570
16591
  changeDetection: ChangeDetectionStrategy.OnPush,
16571
16592
  }]
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"] }] } });
16593
+ }], 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
16594
 
16574
16595
  class ClxCartComponent {
16575
16596
  items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));