@colijnit/corecomponents_v12 258.1.2 → 258.1.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/bundles/colijnit-corecomponents_v12.umd.js +10 -5
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/esm2015/lib/components/filter-item/filter-item.component.js +11 -6
- package/fesm2015/colijnit-corecomponents_v12.js +10 -5
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/package.json +1 -1
|
@@ -12839,7 +12839,12 @@
|
|
|
12839
12839
|
var filterRange = [];
|
|
12840
12840
|
this.collection.forEach(function (viewModel) {
|
|
12841
12841
|
if (viewModel.checked) {
|
|
12842
|
-
|
|
12842
|
+
if (typeof viewModel.code === 'string') {
|
|
12843
|
+
filterRange.push(viewModel.code.toString());
|
|
12844
|
+
}
|
|
12845
|
+
else if (typeof viewModel.code === 'number') {
|
|
12846
|
+
filterRange.push(viewModel.code);
|
|
12847
|
+
}
|
|
12843
12848
|
}
|
|
12844
12849
|
});
|
|
12845
12850
|
if (filterRange.length > 0) {
|
|
@@ -12985,11 +12990,11 @@
|
|
|
12985
12990
|
this._model = collectionModel;
|
|
12986
12991
|
if (collectionModel !== null && collectionModel !== undefined && this.collection !== null && this.collection !== undefined) {
|
|
12987
12992
|
this.collection.forEach(function (viewModel) {
|
|
12988
|
-
if (collectionModel.indexOf(viewModel.code
|
|
12989
|
-
viewModel.checked =
|
|
12993
|
+
if (typeof collectionModel.indexOf(viewModel.code) === 'string') {
|
|
12994
|
+
viewModel.checked = collectionModel.indexOf(viewModel.code.toString()) > -1;
|
|
12990
12995
|
}
|
|
12991
|
-
else {
|
|
12992
|
-
viewModel.checked =
|
|
12996
|
+
else if (typeof collectionModel.indexOf(viewModel.code) === 'number') {
|
|
12997
|
+
viewModel.checked = collectionModel.indexOf(viewModel.code) > -1;
|
|
12993
12998
|
}
|
|
12994
12999
|
});
|
|
12995
13000
|
}
|