@orderingstack/front-components-product-configurator 1.4.2-beta.6 → 1.4.2-beta.7
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/components/MenuProduct/MenuProduct.d.ts.map +1 -1
- package/dist/components/MenuProduct/useMenuProduct.d.ts +1 -0
- package/dist/components/MenuProduct/useMenuProduct.d.ts.map +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -8903,9 +8903,11 @@ function useMenuProduct(product, parentAttrs) {
|
|
|
8903
8903
|
const value = watch(`selected.${selCtx}.${id}`);
|
|
8904
8904
|
const { selected = {} } = getValues();
|
|
8905
8905
|
const valueNumber = Number(value || 0);
|
|
8906
|
+
const stateFilter = useStore((state) => state.filter);
|
|
8906
8907
|
const isRadio = parentSelMin === "1" && parentSelMax === "1";
|
|
8907
8908
|
const isCheckbox = !isRadio;
|
|
8908
8909
|
const isCounter = isApiBooleanTrue(parentAllowMultiple);
|
|
8910
|
+
const isFilterValidated = validateProductFilter(product, stateFilter);
|
|
8909
8911
|
const isDecrementEnabled = valueNumber > (isRadio ? 1 : 0);
|
|
8910
8912
|
const isIncrementEnabled = isInputCounterIncrementEnabled2(product, selected) && (isInputEnabled2(product) || valueNumber);
|
|
8911
8913
|
const isChecked = Number(((_a = selected == null ? void 0 : selected[selCtx]) == null ? void 0 : _a[id]) || 0) > 0;
|
|
@@ -8966,7 +8968,8 @@ function useMenuProduct(product, parentAttrs) {
|
|
|
8966
8968
|
handleOnInputChange,
|
|
8967
8969
|
inputId: `${selCtx}.${id}`,
|
|
8968
8970
|
radioInputValue: id,
|
|
8969
|
-
currency
|
|
8971
|
+
currency,
|
|
8972
|
+
isFilterValidated
|
|
8970
8973
|
};
|
|
8971
8974
|
}
|
|
8972
8975
|
const MenuProduct = (props) => {
|
|
@@ -8991,7 +8994,8 @@ const MenuProduct = (props) => {
|
|
|
8991
8994
|
counterValue,
|
|
8992
8995
|
handleCounterIncrementQty,
|
|
8993
8996
|
handleCounterDecrementQty,
|
|
8994
|
-
currency
|
|
8997
|
+
currency,
|
|
8998
|
+
isFilterValidated
|
|
8995
8999
|
} = useMenuProduct(product, parentAttrs);
|
|
8996
9000
|
const {
|
|
8997
9001
|
MenuProductUI
|
|
@@ -9013,7 +9017,8 @@ const MenuProduct = (props) => {
|
|
|
9013
9017
|
handleCounterIncrementQty,
|
|
9014
9018
|
handleCounterDecrementQty,
|
|
9015
9019
|
currency,
|
|
9016
|
-
parentProduct
|
|
9020
|
+
parentProduct,
|
|
9021
|
+
isFilterValidated
|
|
9017
9022
|
};
|
|
9018
9023
|
const MenuItemsDispatcherWrapper = /* @__PURE__ */ jsx(MenuItemsDispatcher, {
|
|
9019
9024
|
productItems: product.items,
|