@orderingstack/front-components-product-configurator 1.4.2-beta.29 → 1.4.2-beta.30
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/dist/index.es.js
CHANGED
|
@@ -9033,11 +9033,11 @@ function useMenuProduct(product, parentAttrs, nestedLvl) {
|
|
|
9033
9033
|
const { selected = {} } = getValues();
|
|
9034
9034
|
const valueNumber = Number(value || 0);
|
|
9035
9035
|
const isRadio = parentSelMin === "1" && parentSelMax === "1";
|
|
9036
|
+
useEmitFilter(product, isRadio, nestedLvl);
|
|
9036
9037
|
const isCheckbox = !isRadio;
|
|
9037
9038
|
const isCounter = isApiBooleanTrue(parentAllowMultiple);
|
|
9038
9039
|
const isDecrementEnabled = valueNumber > (isRadio ? 1 : 0);
|
|
9039
|
-
const isIncrementEnabled =
|
|
9040
|
-
isInputCounterIncrementEnabled2(product, selected) && (isInputEnabled2(product) || valueNumber);
|
|
9040
|
+
const isIncrementEnabled = isInputCounterIncrementEnabled2(product, selected) && (isInputEnabled2(product) || valueNumber);
|
|
9041
9041
|
const isChecked = Number(((_a = selected == null ? void 0 : selected[selCtx]) == null ? void 0 : _a[id]) || 0) > 0;
|
|
9042
9042
|
const isCheckboxEnabled = isInputEnabled2(product) || valueNumber;
|
|
9043
9043
|
const registerId = `${isRadio ? "radio" : "selected"}.${selCtx}.${id}`;
|