codexly-ui 0.12.6 → 0.12.8
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 +50 -19
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +21 -2
package/package.json
CHANGED
package/types/codexly-ui.d.ts
CHANGED
|
@@ -3316,6 +3316,8 @@ declare class ClxProductComponent {
|
|
|
3316
3316
|
protected readonly _buttonSize: _angular_core.Signal<"sm" | "md">;
|
|
3317
3317
|
protected readonly _skeletonW: _angular_core.Signal<"sm:w-32" | "sm:w-44">;
|
|
3318
3318
|
protected readonly _skeletonH: _angular_core.Signal<"160px" | "200px">;
|
|
3319
|
+
/** Themed border — same accent as the rest of the card (clxColor), same borderLight treatment
|
|
3320
|
+
* as clx-card's own elevated variant. */
|
|
3319
3321
|
protected readonly _cardClass: _angular_core.Signal<string>;
|
|
3320
3322
|
protected readonly _imageContainerClass: _angular_core.Signal<string>;
|
|
3321
3323
|
protected readonly _imageClass: _angular_core.Signal<string>;
|
|
@@ -3501,6 +3503,12 @@ declare class ClxProductDetailComponent {
|
|
|
3501
3503
|
* at all) — now reflects product().rating for real, with no-reviews-yet as its own copy rather
|
|
3502
3504
|
* than falsely implying a mediocre-but-real score. */
|
|
3503
3505
|
protected readonly _ratingLabel: _angular_core.Signal<"Sin reseñas todavía" | "Excelente" | "Muy bueno" | "Bueno" | "Regular" | "Deficiente">;
|
|
3506
|
+
/** p.tags is plain string[] (ClxProductDetailData isn't coupled to ClxProductTag), so lookups
|
|
3507
|
+
* guard against an unrecognized value instead of indexing the Record directly. */
|
|
3508
|
+
private isKnownTag;
|
|
3509
|
+
protected tagLabel(tag: string): string;
|
|
3510
|
+
protected tagColor(tag: string): ClxColorInput;
|
|
3511
|
+
protected tagVariant(tag: string): codexly_ui.ClxBadgeVariant;
|
|
3504
3512
|
readonly discount: _angular_core.Signal<number>;
|
|
3505
3513
|
/** An option is available if some in-stock variation matches it together with the rest of the
|
|
3506
3514
|
* current selection — a sold-out combination is hidden, same "hide, don't disable" rule already
|
|
@@ -3576,9 +3584,15 @@ interface ClxWishlistPageChangeEvent {
|
|
|
3576
3584
|
}
|
|
3577
3585
|
|
|
3578
3586
|
declare class ClxWishlistComponent {
|
|
3587
|
+
private readonly _themeSvc;
|
|
3579
3588
|
readonly items: _angular_core.InputSignal<ClxWishlistItem[]>;
|
|
3580
3589
|
readonly loading: _angular_core.InputSignal<boolean>;
|
|
3581
|
-
|
|
3590
|
+
/** Optional per-instance override — when unset, every zone below resolves independently from
|
|
3591
|
+
* the app-wide theme (search input from formControls.input, "Agregar todo"/badge/"Añadir al
|
|
3592
|
+
* carrito" from primaryColor, pagination from its own paginationStyle()), same convention as
|
|
3593
|
+
* clx-input/clx-select/clx-pagination themselves. Previously this was a required-looking input
|
|
3594
|
+
* defaulting to a hardcoded 'indigo' that every zone read directly, bypassing theme entirely. */
|
|
3595
|
+
readonly color: _angular_core.InputSignal<ClxColorInput | undefined>;
|
|
3582
3596
|
readonly sortOptions: _angular_core.InputSignal<ClxSelectOption[]>;
|
|
3583
3597
|
readonly currentPage: _angular_core.ModelSignal<number>;
|
|
3584
3598
|
readonly pageSize: _angular_core.ModelSignal<number>;
|
|
@@ -3586,6 +3600,9 @@ declare class ClxWishlistComponent {
|
|
|
3586
3600
|
readonly searchValue: _angular_core.ModelSignal<string>;
|
|
3587
3601
|
protected _searchModel: string;
|
|
3588
3602
|
protected _sortModel: string | null;
|
|
3603
|
+
protected readonly _inputColor: _angular_core.Signal<ClxColorInput>;
|
|
3604
|
+
protected readonly _selectColor: _angular_core.Signal<ClxColorInput>;
|
|
3605
|
+
protected readonly _accentColor: _angular_core.Signal<ClxColorInput>;
|
|
3589
3606
|
readonly onRemove: _angular_core.OutputEmitterRef<ClxWishlistItem>;
|
|
3590
3607
|
readonly onAddToCart: _angular_core.OutputEmitterRef<ClxWishlistItem>;
|
|
3591
3608
|
readonly onSearchChange: _angular_core.OutputEmitterRef<string>;
|
|
@@ -3595,7 +3612,9 @@ declare class ClxWishlistComponent {
|
|
|
3595
3612
|
/** Emitted from the empty-state's "Ir a la tienda" CTA — the host navigates to the catalog. */
|
|
3596
3613
|
readonly onBrowseCatalog: _angular_core.OutputEmitterRef<void>;
|
|
3597
3614
|
readonly _skeletonItems: unknown[];
|
|
3598
|
-
|
|
3615
|
+
/** Themed border — falls back to cardBorderColor() (itself falling back to primaryColor) when
|
|
3616
|
+
* `color` is unset, same borderLight treatment as clx-card's own elevated variant. */
|
|
3617
|
+
protected readonly _cardClass: _angular_core.Signal<string>;
|
|
3599
3618
|
protected readonly _imageContainerClass = "relative shrink-0 w-full p-2.5 aspect-square sm:aspect-auto sm:w-40 overflow-hidden rounded-t-2xl sm:rounded-t-none sm:rounded-l-2xl";
|
|
3600
3619
|
protected readonly _imageClass = "w-full h-full object-cover transition-transform duration-500 group-hover:scale-105";
|
|
3601
3620
|
protected readonly _contentClass = "relative flex flex-col gap-2 flex-1 p-3 min-w-0";
|