@orderingstack/front-components-product-configurator 1.4.2-beta.23 → 1.4.2-beta.24
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.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +10 -10
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6949,7 +6949,7 @@ function useMenuOptions(product, nestedLvl, parentKind, parentSelCtx) {
|
|
|
6949
6949
|
console.log("LOG1 useMenuOptions useEffect productsToSelect", productsToSelect);
|
|
6950
6950
|
selectProductsInForm(productsToSelect, setValue, initialSelected);
|
|
6951
6951
|
unselectProductsInForm(productsToUnselect, setValue);
|
|
6952
|
-
}, [isFilterValidated]);
|
|
6952
|
+
}, [isFilterValidated, filter, selected]);
|
|
6953
6953
|
return {
|
|
6954
6954
|
isFilterValidated,
|
|
6955
6955
|
selected,
|
|
@@ -8942,16 +8942,16 @@ const selectUnselectProduct = (setValue, getValues, product, isChecked, unregist
|
|
|
8942
8942
|
});
|
|
8943
8943
|
};
|
|
8944
8944
|
checkSubProducts(items);
|
|
8945
|
-
(_a = Object.keys(emit)) == null ? void 0 : _a.forEach((x2) => {
|
|
8946
|
-
const formPath = `filterWithCnt.${fltCtx}.${x2}.${emit[x2]}`;
|
|
8947
|
-
const cnt = getValues(formPath) || 0;
|
|
8948
|
-
if (cnt < 2) {
|
|
8949
|
-
unregister(formPath);
|
|
8950
|
-
} else {
|
|
8951
|
-
setValue(formPath, cnt - 1);
|
|
8952
|
-
}
|
|
8953
|
-
});
|
|
8954
8945
|
if (nestedLvl && nestedLvl < 2 && !isEmpty(emit)) {
|
|
8946
|
+
(_a = Object.keys(emit)) == null ? void 0 : _a.forEach((x2) => {
|
|
8947
|
+
const formPath = `filterWithCnt.${fltCtx}.${x2}.${emit[x2]}`;
|
|
8948
|
+
const cnt = getValues(formPath) || 0;
|
|
8949
|
+
if (cnt < 2) {
|
|
8950
|
+
unregister(formPath);
|
|
8951
|
+
} else {
|
|
8952
|
+
setValue(formPath, cnt - 1);
|
|
8953
|
+
}
|
|
8954
|
+
});
|
|
8955
8955
|
const groupsPath = `filterWithCnt.${fltCtx}`;
|
|
8956
8956
|
const groupCntPath = `filterWithCnt.${fltCtx}.${selCtx}`;
|
|
8957
8957
|
const fltCtxPath = `filter.${fltCtx}`;
|