@firestitch/filter 12.10.2 → 12.10.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.
|
@@ -5067,7 +5067,7 @@
|
|
|
5067
5067
|
Object.defineProperty(FilterComponent.prototype, "itemValues", {
|
|
5068
5068
|
get: function () {
|
|
5069
5069
|
return this.items
|
|
5070
|
-
.map(function (item) { return item.
|
|
5070
|
+
.map(function (item) { return item.value; });
|
|
5071
5071
|
},
|
|
5072
5072
|
enumerable: false,
|
|
5073
5073
|
configurable: true
|
|
@@ -5075,8 +5075,8 @@
|
|
|
5075
5075
|
Object.defineProperty(FilterComponent.prototype, "nonEmptyItemValues", {
|
|
5076
5076
|
get: function () {
|
|
5077
5077
|
return this.items
|
|
5078
|
-
.filter(function (item) { return item.
|
|
5079
|
-
.map(function (item) { return item.
|
|
5078
|
+
.filter(function (item) { return item.value !== undefined; })
|
|
5079
|
+
.map(function (item) { return item.value; });
|
|
5080
5080
|
},
|
|
5081
5081
|
enumerable: false,
|
|
5082
5082
|
configurable: true
|
|
@@ -5084,7 +5084,7 @@
|
|
|
5084
5084
|
Object.defineProperty(FilterComponent.prototype, "hasItemValues", {
|
|
5085
5085
|
get: function () {
|
|
5086
5086
|
return this.itemValues
|
|
5087
|
-
.some(function (item) { return item.
|
|
5087
|
+
.some(function (item) { return item.value !== undefined; });
|
|
5088
5088
|
},
|
|
5089
5089
|
enumerable: false,
|
|
5090
5090
|
configurable: true
|
|
@@ -5092,12 +5092,7 @@
|
|
|
5092
5092
|
FilterComponent.prototype.getItemValue = function (name) {
|
|
5093
5093
|
var item = this.items
|
|
5094
5094
|
.find(function (item) { return item.name === name; });
|
|
5095
|
-
|
|
5096
|
-
return item.model;
|
|
5097
|
-
}
|
|
5098
|
-
else {
|
|
5099
|
-
return null;
|
|
5100
|
-
}
|
|
5095
|
+
return item === null || item === void 0 ? void 0 : item.value;
|
|
5101
5096
|
};
|
|
5102
5097
|
FilterComponent.prototype.showItem = function (name) {
|
|
5103
5098
|
var item = this.getItem(name);
|