@webitel/ui-datalist 1.1.21 → 1.1.23
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-datalist",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.23",
|
|
4
4
|
"description": "Toolkit for building data lists in webitel ui system",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && ( npm run lint:fix || true) && (npm run build:types || true) && npm run lint:package && npm run utils:publish",
|
|
@@ -188,13 +188,16 @@ Clear filters button should be active only if filters are defined in the table-f
|
|
|
188
188
|
**/
|
|
189
189
|
|
|
190
190
|
const listSelectedFilters = computed(() => {
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
const allowedKeys = new Set([
|
|
192
|
+
...props.filterOptions.map((filter) =>
|
|
193
|
+
typeof filter === 'string' ? filter : filter.name,
|
|
194
|
+
),
|
|
195
|
+
...(props.filterableExtensionFields ?? []).map((filter) => filter.id),
|
|
196
|
+
]);
|
|
194
197
|
return new Map(
|
|
195
198
|
[
|
|
196
199
|
...props.filtersManager.filters,
|
|
197
|
-
].filter(([key]) =>
|
|
200
|
+
].filter(([key]) => allowedKeys.has(key)),
|
|
198
201
|
);
|
|
199
202
|
});
|
|
200
203
|
|