codexly-ui 0.12.21 → 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.
- package/fesm2022/codexly-ui.mjs +28 -17
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +17 -8
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -16055,14 +16055,23 @@ 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
|
-
/**
|
|
16059
|
-
*
|
|
16060
|
-
*
|
|
16061
|
-
*
|
|
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 */ []));
|
|
16063
|
-
|
|
16064
|
-
|
|
16065
|
-
|
|
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 */ []));
|
|
16070
|
+
/** Override for each item's own "Añadir al carrito" button (variant="solid") — same naming as
|
|
16071
|
+
* clx-product-detail's actionColor/actionTextColor. Falls back to `color()` when unset. */
|
|
16072
|
+
actionColor = input(undefined, ...(ngDevMode ? [{ debugName: "actionColor" }] : /* istanbul ignore next */ []));
|
|
16073
|
+
actionTextColor = input(undefined, ...(ngDevMode ? [{ debugName: "actionTextColor" }] : /* istanbul ignore next */ []));
|
|
16074
|
+
_actionColor = computed(() => this.actionColor() ?? this.color() ?? this._themeSvc.config().primaryColor, ...(ngDevMode ? [{ debugName: "_actionColor" }] : /* istanbul ignore next */ []));
|
|
16066
16075
|
/** Product card drop shadow — same ClxCardShadow scale as clx-card ('none' turns it off
|
|
16067
16076
|
* entirely). Falls back to 'sm', the shadow these cards have always rendered with. */
|
|
16068
16077
|
shadow = input(undefined, ...(ngDevMode ? [{ debugName: "shadow" }] : /* istanbul ignore next */ []));
|
|
@@ -16164,7 +16173,7 @@ class ClxWishlistComponent {
|
|
|
16164
16173
|
this.onCheckoutAll.emit(this._filtered());
|
|
16165
16174
|
}
|
|
16166
16175
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxWishlistComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16167
|
-
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 },
|
|
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: `
|
|
16168
16177
|
<div class="flex flex-col gap-6">
|
|
16169
16178
|
|
|
16170
16179
|
@if (loading() || items().length > 0) {
|
|
@@ -16197,13 +16206,14 @@ class ClxWishlistComponent {
|
|
|
16197
16206
|
<div class="flex flex-col sm:flex-row sm:items-center justify-between gap-3">
|
|
16198
16207
|
<div class="flex items-center gap-2">
|
|
16199
16208
|
<h2 class="text-base font-semibold text-clx-text-label">Productos</h2>
|
|
16200
|
-
<span clx-badge variant="
|
|
16209
|
+
<span clx-badge variant="solid" [color]="_accentColor()" size="sm">{{ _totalItems() }}</span>
|
|
16201
16210
|
</div>
|
|
16202
16211
|
<button
|
|
16203
16212
|
clx-button
|
|
16204
16213
|
type="button"
|
|
16205
16214
|
variant="light"
|
|
16206
|
-
[
|
|
16215
|
+
[emphasis]="checkoutAllEmphasis()"
|
|
16216
|
+
[color]="_checkoutAllColor()"
|
|
16207
16217
|
[textColor]="checkoutAllTextColor()"
|
|
16208
16218
|
icon="arrow_forward"
|
|
16209
16219
|
iconPosition="right"
|
|
@@ -16320,8 +16330,8 @@ class ClxWishlistComponent {
|
|
|
16320
16330
|
<button
|
|
16321
16331
|
clx-button
|
|
16322
16332
|
type="button"
|
|
16323
|
-
[color]="
|
|
16324
|
-
[textColor]="
|
|
16333
|
+
[color]="_actionColor()"
|
|
16334
|
+
[textColor]="actionTextColor()"
|
|
16325
16335
|
variant="solid"
|
|
16326
16336
|
size="md"
|
|
16327
16337
|
icon="shopping_cart"
|
|
@@ -16406,13 +16416,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16406
16416
|
<div class="flex flex-col sm:flex-row sm:items-center justify-between gap-3">
|
|
16407
16417
|
<div class="flex items-center gap-2">
|
|
16408
16418
|
<h2 class="text-base font-semibold text-clx-text-label">Productos</h2>
|
|
16409
|
-
<span clx-badge variant="
|
|
16419
|
+
<span clx-badge variant="solid" [color]="_accentColor()" size="sm">{{ _totalItems() }}</span>
|
|
16410
16420
|
</div>
|
|
16411
16421
|
<button
|
|
16412
16422
|
clx-button
|
|
16413
16423
|
type="button"
|
|
16414
16424
|
variant="light"
|
|
16415
|
-
[
|
|
16425
|
+
[emphasis]="checkoutAllEmphasis()"
|
|
16426
|
+
[color]="_checkoutAllColor()"
|
|
16416
16427
|
[textColor]="checkoutAllTextColor()"
|
|
16417
16428
|
icon="arrow_forward"
|
|
16418
16429
|
iconPosition="right"
|
|
@@ -16529,8 +16540,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16529
16540
|
<button
|
|
16530
16541
|
clx-button
|
|
16531
16542
|
type="button"
|
|
16532
|
-
[color]="
|
|
16533
|
-
[textColor]="
|
|
16543
|
+
[color]="_actionColor()"
|
|
16544
|
+
[textColor]="actionTextColor()"
|
|
16534
16545
|
variant="solid"
|
|
16535
16546
|
size="md"
|
|
16536
16547
|
icon="shopping_cart"
|
|
@@ -16567,7 +16578,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16567
16578
|
encapsulation: ViewEncapsulation.None,
|
|
16568
16579
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16569
16580
|
}]
|
|
16570
|
-
}], 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 }] }],
|
|
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"] }] } });
|
|
16571
16582
|
|
|
16572
16583
|
class ClxCartComponent {
|
|
16573
16584
|
items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|