@trafilea/afrodita-components 5.0.0-beta.67 → 5.0.0-beta.69
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.d.ts +3 -0
- package/build/index.esm.js +12 -5
- package/build/index.esm.js.map +1 -1
- package/build/index.js +12 -5
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
package/build/index.esm.js
CHANGED
|
@@ -4185,7 +4185,7 @@ function SimpleDropdown(_a) {
|
|
|
4185
4185
|
if (value == null) {
|
|
4186
4186
|
return;
|
|
4187
4187
|
}
|
|
4188
|
-
if (options.
|
|
4188
|
+
if (options.findIndex(function (option) { return option.value === value.value; }) < 0) {
|
|
4189
4189
|
setSelectedValue(undefined);
|
|
4190
4190
|
return;
|
|
4191
4191
|
}
|
|
@@ -16945,6 +16945,16 @@ var Filters = function (_a) {
|
|
|
16945
16945
|
var sectionIndex = _a.sectionIndex, itemIndex = _a.itemIndex, checked = _a.checked;
|
|
16946
16946
|
setFilterSection({ sectionIndex: sectionIndex, itemIndex: itemIndex, checked: checked });
|
|
16947
16947
|
var currentFilter = filters[sectionIndex];
|
|
16948
|
+
var currentFilterItem = currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.items[itemIndex];
|
|
16949
|
+
if ((currentFilterItem === null || currentFilterItem === void 0 ? void 0 : currentFilterItem.isLinkItem) && (currentFilterItem === null || currentFilterItem === void 0 ? void 0 : currentFilterItem.link)) {
|
|
16950
|
+
if (checked) {
|
|
16951
|
+
window.location.assign(currentFilterItem.link);
|
|
16952
|
+
}
|
|
16953
|
+
else if (currentFilterItem === null || currentFilterItem === void 0 ? void 0 : currentFilterItem.uncheckedLink) {
|
|
16954
|
+
window.location.assign(currentFilterItem.uncheckedLink);
|
|
16955
|
+
}
|
|
16956
|
+
return;
|
|
16957
|
+
}
|
|
16948
16958
|
setCheckedItems(function (prev) {
|
|
16949
16959
|
if (!currentFilter.isMultiselect) {
|
|
16950
16960
|
resetCheckedItems(__spreadArray([], prev, true));
|
|
@@ -16960,10 +16970,7 @@ var Filters = function (_a) {
|
|
|
16960
16970
|
return filter;
|
|
16961
16971
|
}
|
|
16962
16972
|
return __assign$1(__assign$1({}, filter), { items: filter.items.map(function (value, indexItems) {
|
|
16963
|
-
return {
|
|
16964
|
-
label: value.label,
|
|
16965
|
-
checked: itemIndex === indexItems ? checked : filter.isMultiselect ? value.checked : false,
|
|
16966
|
-
};
|
|
16973
|
+
return __assign$1(__assign$1({}, value), { label: value.label, checked: itemIndex === indexItems ? checked : filter.isMultiselect ? value.checked : false });
|
|
16967
16974
|
}) });
|
|
16968
16975
|
});
|
|
16969
16976
|
});
|