@colijnit/corecomponents_v12 12.0.92 → 12.0.93
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/bundles/colijnit-corecomponents_v12.umd.js +13 -0
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/filter-item/filter-viewmodel.js +11 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/colijnit-corecomponents_v12.js +11 -1
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/filter-item/filter-viewmodel.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/colijnit-corecomponents_v12-12.0.92.tgz +0 -0
|
@@ -11711,6 +11711,18 @@
|
|
|
11711
11711
|
return FilterItemViewmodel;
|
|
11712
11712
|
}());
|
|
11713
11713
|
|
|
11714
|
+
var FilterViewmodel = /** @class */ (function () {
|
|
11715
|
+
function FilterViewmodel(collection, fields) {
|
|
11716
|
+
var _this = this;
|
|
11717
|
+
this.filterItems = [];
|
|
11718
|
+
collection.forEach(function (item) {
|
|
11719
|
+
var _a, _b, _c;
|
|
11720
|
+
_this.filterItems.push(new FilterItemViewmodel(item[fields.value], item[fields.text], (_a = item.checked) !== null && _a !== void 0 ? _a : false, (_b = item.count) !== null && _b !== void 0 ? _b : null, (_c = item.valueName) !== null && _c !== void 0 ? _c : null));
|
|
11721
|
+
});
|
|
11722
|
+
}
|
|
11723
|
+
return FilterViewmodel;
|
|
11724
|
+
}());
|
|
11725
|
+
|
|
11714
11726
|
/*
|
|
11715
11727
|
* Public API Surface of corecomponents
|
|
11716
11728
|
*/
|
|
@@ -11765,6 +11777,7 @@
|
|
|
11765
11777
|
exports.FilterItemViewmodel = FilterItemViewmodel;
|
|
11766
11778
|
exports.FilterPipe = FilterPipe;
|
|
11767
11779
|
exports.FilterPipeModule = FilterPipeModule;
|
|
11780
|
+
exports.FilterViewmodel = FilterViewmodel;
|
|
11768
11781
|
exports.FormComponent = FormComponent;
|
|
11769
11782
|
exports.FormMasterService = FormMasterService;
|
|
11770
11783
|
exports.FormModule = FormModule;
|