@ikas/storefront 1.0.3-beta.1 → 1.0.3-beta.3
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/build/index.es.js +7 -1
- package/build/index.js +7 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -22884,6 +22884,9 @@ var IkasProductOption = /** @class */ (function () {
|
|
|
22884
22884
|
: true));
|
|
22885
22885
|
};
|
|
22886
22886
|
this.isValidChoiceOptionValue = function () {
|
|
22887
|
+
if (!_this.values.length) {
|
|
22888
|
+
return !!_this.isOptional;
|
|
22889
|
+
}
|
|
22887
22890
|
return (!!_this.selectSettings &&
|
|
22888
22891
|
(_this.selectSettings.minSelect !== null
|
|
22889
22892
|
? _this.values.length >= _this.selectSettings.minSelect
|
|
@@ -22931,6 +22934,9 @@ var IkasProductOption = /** @class */ (function () {
|
|
|
22931
22934
|
});
|
|
22932
22935
|
}
|
|
22933
22936
|
else {
|
|
22937
|
+
if (_this.type === IkasProductOptionType.CHECKBOX) {
|
|
22938
|
+
return !!_this.values.length && _this.values[0] === "true";
|
|
22939
|
+
}
|
|
22934
22940
|
return !!_this.values.length;
|
|
22935
22941
|
}
|
|
22936
22942
|
}), "order");
|
|
@@ -70860,7 +70866,7 @@ var IkasCartStore = /** @class */ (function () {
|
|
|
70860
70866
|
var productOptionValues = (_e = (_d = (_c = product.productOptionSet) === null || _c === void 0 ? void 0 : _c.options) === null || _d === void 0 ? void 0 : _d.find(function (o) { return o.id === option.productOptionId; })) === null || _e === void 0 ? void 0 : _e.values;
|
|
70861
70867
|
hasSameOptionValues =
|
|
70862
70868
|
hasSameOptionValues &&
|
|
70863
|
-
existingOptionValues.length === (productOptionValues === null || productOptionValues === void 0 ? void 0 : productOptionValues.
|
|
70869
|
+
existingOptionValues.length === (productOptionValues === null || productOptionValues === void 0 ? void 0 : productOptionValues.length) &&
|
|
70864
70870
|
existingOptionValues.every(function (val) { return productOptionValues === null || productOptionValues === void 0 ? void 0 : productOptionValues.includes(val); });
|
|
70865
70871
|
if (!hasSameOptionValues)
|
|
70866
70872
|
return "break";
|
package/build/index.js
CHANGED
|
@@ -22879,6 +22879,9 @@ var IkasProductOption = /** @class */ (function () {
|
|
|
22879
22879
|
: true));
|
|
22880
22880
|
};
|
|
22881
22881
|
this.isValidChoiceOptionValue = function () {
|
|
22882
|
+
if (!_this.values.length) {
|
|
22883
|
+
return !!_this.isOptional;
|
|
22884
|
+
}
|
|
22882
22885
|
return (!!_this.selectSettings &&
|
|
22883
22886
|
(_this.selectSettings.minSelect !== null
|
|
22884
22887
|
? _this.values.length >= _this.selectSettings.minSelect
|
|
@@ -22926,6 +22929,9 @@ var IkasProductOption = /** @class */ (function () {
|
|
|
22926
22929
|
});
|
|
22927
22930
|
}
|
|
22928
22931
|
else {
|
|
22932
|
+
if (_this.type === exports.IkasProductOptionType.CHECKBOX) {
|
|
22933
|
+
return !!_this.values.length && _this.values[0] === "true";
|
|
22934
|
+
}
|
|
22929
22935
|
return !!_this.values.length;
|
|
22930
22936
|
}
|
|
22931
22937
|
}), "order");
|
|
@@ -70837,7 +70843,7 @@ var IkasCartStore = /** @class */ (function () {
|
|
|
70837
70843
|
var productOptionValues = (_e = (_d = (_c = product.productOptionSet) === null || _c === void 0 ? void 0 : _c.options) === null || _d === void 0 ? void 0 : _d.find(function (o) { return o.id === option.productOptionId; })) === null || _e === void 0 ? void 0 : _e.values;
|
|
70838
70844
|
hasSameOptionValues =
|
|
70839
70845
|
hasSameOptionValues &&
|
|
70840
|
-
existingOptionValues.length === (productOptionValues === null || productOptionValues === void 0 ? void 0 : productOptionValues.
|
|
70846
|
+
existingOptionValues.length === (productOptionValues === null || productOptionValues === void 0 ? void 0 : productOptionValues.length) &&
|
|
70841
70847
|
existingOptionValues.every(function (val) { return productOptionValues === null || productOptionValues === void 0 ? void 0 : productOptionValues.includes(val); });
|
|
70842
70848
|
if (!hasSameOptionValues)
|
|
70843
70849
|
return "break";
|