codexly-ui 0.10.66 → 0.10.67
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 +18 -13
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +10 -4
package/package.json
CHANGED
package/types/codexly-ui.d.ts
CHANGED
|
@@ -3006,10 +3006,16 @@ declare class ClxProductDetailComponent {
|
|
|
3006
3006
|
readonly activeVariation: _angular_core.Signal<ClxVariation | null>;
|
|
3007
3007
|
readonly finalPrice: _angular_core.Signal<number>;
|
|
3008
3008
|
readonly discount: _angular_core.Signal<number>;
|
|
3009
|
-
/** An option is available
|
|
3010
|
-
* current selection
|
|
3011
|
-
*
|
|
3012
|
-
*
|
|
3009
|
+
/** An option is available if some in-stock variation matches it together with the rest of the
|
|
3010
|
+
* current selection — a sold-out combination is hidden, same "hide, don't disable" rule already
|
|
3011
|
+
* applied to invalid combinations, so the visitor never sees a spec they can't actually buy.
|
|
3012
|
+
*
|
|
3013
|
+
* Falls back to ignoring the cross-selection filter (any in-stock variation with this option,
|
|
3014
|
+
* regardless of other selected specs) when the strict cross-filter would hide every option of
|
|
3015
|
+
* this spec type — that happens when the *currently selected* combination itself has no stock
|
|
3016
|
+
* (e.g. landed on Negro+XL, which is sold out): without the fallback, Color and Talla would
|
|
3017
|
+
* hide each other's only selected value and the whole panel would render empty, even though
|
|
3018
|
+
* other in-stock combinations (Azul L, Gris M, …) exist. */
|
|
3013
3019
|
isOptionAvailable(specTypeId: string, specOptionId: string): boolean;
|
|
3014
3020
|
selectSpec(specTypeId: string, specOptionId: string): void;
|
|
3015
3021
|
isSpecSelected(specTypeId: string, specOptionId: string): boolean;
|