@orderingstack/front-components-product-configurator 1.6.0-beta.1 → 1.6.0-beta.2
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 +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6294,7 +6294,7 @@ function findGroupInProductItemsBySelCtx(selCtx, parent) {
|
|
|
6294
6294
|
}
|
|
6295
6295
|
return null;
|
|
6296
6296
|
}
|
|
6297
|
-
const
|
|
6297
|
+
const isAnyGroupOptionKind = (kind) => kind === EProductKind.OPTIONS || kind === EProductKind.GROUP || kind === EProductKind.GROUP_UPSELL;
|
|
6298
6298
|
function createStore(createState) {
|
|
6299
6299
|
let state;
|
|
6300
6300
|
const listeners = /* @__PURE__ */ new Set();
|
|
@@ -8904,7 +8904,7 @@ const findProductInParentProductBySelCtx = (parent, selCtx) => {
|
|
|
8904
8904
|
return prod;
|
|
8905
8905
|
}
|
|
8906
8906
|
}
|
|
8907
|
-
if (
|
|
8907
|
+
if (isAnyGroupOptionKind(prod.kind) && prod.items && prod.items.length > 0) {
|
|
8908
8908
|
const found = findProductInParentProductBySelCtx(prod, selCtx);
|
|
8909
8909
|
if (found) {
|
|
8910
8910
|
return found;
|
|
@@ -9201,7 +9201,7 @@ function useMenuItemsDispatcher() {
|
|
|
9201
9201
|
return item.kind === EProductKind.PRODUCT && isVisible(item);
|
|
9202
9202
|
};
|
|
9203
9203
|
const isMenuOptionsToShow = (item) => {
|
|
9204
|
-
return
|
|
9204
|
+
return isAnyGroupOptionKind(item.kind) && isVisible(item);
|
|
9205
9205
|
};
|
|
9206
9206
|
return { isMenuProductToShow, isMenuOptionsToShow };
|
|
9207
9207
|
}
|
|
@@ -10650,7 +10650,7 @@ const getValidationMap2 = (product, selected = {}, filter, map, nestedLvl = 0) =
|
|
|
10650
10650
|
if (nestedLvl === 0 || ((_a = selected[product.selCtx]) == null ? void 0 : _a[product.id])) {
|
|
10651
10651
|
(_b = product == null ? void 0 : product.items) == null ? void 0 : _b.forEach((x2) => {
|
|
10652
10652
|
var _a2, _b2, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
10653
|
-
if (
|
|
10653
|
+
if (isAnyGroupOptionKind(x2.kind) && (((_a2 = x2 == null ? void 0 : x2.attrs) == null ? void 0 : _a2.selMin) || ((_b2 = x2.attrs) == null ? void 0 : _b2.selMax) || ((_c = x2.attrs) == null ? void 0 : _c.qtyMin) || ((_d = x2.attrs) == null ? void 0 : _d.qtyMax) || ((_e2 = x2.attrs) == null ? void 0 : _e2.allowMultiple))) {
|
|
10654
10654
|
const [selCnt, qtyCnt] = getSelCtxCntFromSelectedState(
|
|
10655
10655
|
x2.selCtx,
|
|
10656
10656
|
selected,
|