@webitel/ui-sdk 24.12.138 → 24.12.139
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/CHANGELOG.md +7 -0
- package/dist/ui-sdk.js +10796 -10314
- package/dist/ui-sdk.umd.cjs +17 -16
- package/package.json +1 -1
- package/src/modules/Filters/v2/filters/classes/FiltersManager.ts +4 -4
- package/src/modules/Filters/v2/filters/components/config/dynamic-filter-config-view.vue +10 -1
- package/src/modules/Filters/v2/filters/components/preview/dynamic-filter-preview.vue +7 -5
package/package.json
CHANGED
|
@@ -153,9 +153,9 @@ class FiltersManager implements IFiltersManager {
|
|
|
153
153
|
include,
|
|
154
154
|
exclude,
|
|
155
155
|
}: {
|
|
156
|
-
include
|
|
157
|
-
exclude
|
|
158
|
-
}): void {
|
|
156
|
+
include?: FilterName[];
|
|
157
|
+
exclude?: FilterName[];
|
|
158
|
+
} = {}): void {
|
|
159
159
|
const useInclude = !isEmpty(include);
|
|
160
160
|
const useExclude = !isEmpty(exclude) && !useInclude;
|
|
161
161
|
|
|
@@ -173,7 +173,7 @@ class FiltersManager implements IFiltersManager {
|
|
|
173
173
|
|
|
174
174
|
if (useExclude) {
|
|
175
175
|
this.filters.forEach((_, filterName) => {
|
|
176
|
-
if (exclude.includes(filterName)) {
|
|
176
|
+
if (!exclude.includes(filterName)) {
|
|
177
177
|
this.filters.delete(filterName);
|
|
178
178
|
}
|
|
179
179
|
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="dynamic-filter-config-view">
|
|
3
|
-
<wt-tooltip
|
|
3
|
+
<wt-tooltip
|
|
4
|
+
:triggers="['click']"
|
|
5
|
+
:disabled="props.disabled"
|
|
6
|
+
>
|
|
4
7
|
<template #activator="slotScope">
|
|
5
8
|
<slot
|
|
6
9
|
name="activator"
|
|
@@ -24,6 +27,12 @@
|
|
|
24
27
|
*/
|
|
25
28
|
|
|
26
29
|
import WtTooltip from '../../../../../../components/wt-tooltip/wt-tooltip.vue';
|
|
30
|
+
|
|
31
|
+
interface Props {
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const props = defineProps<Props>();
|
|
27
36
|
</script>
|
|
28
37
|
|
|
29
38
|
<style lang="scss" scoped></style>
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<dynamic-filter-config-view
|
|
2
|
+
<dynamic-filter-config-view
|
|
3
|
+
:disabled="dummy"
|
|
4
|
+
>
|
|
3
5
|
<template #activator="{ visible: configFormVisible }">
|
|
4
6
|
<wt-tooltip :disabled="configFormVisible">
|
|
5
7
|
<template #activator>
|
|
6
8
|
<wt-chip color="primary">
|
|
7
|
-
{{
|
|
8
|
-
props.filter.label || t(`webitelUI.filters.${props.filter.name}`)
|
|
9
|
-
}}
|
|
9
|
+
{{ filter.label || t(`webitelUI.filters.${filter.name}`) }}
|
|
10
10
|
<wt-icon-btn
|
|
11
|
+
v-if="!dummy"
|
|
11
12
|
icon="close--filled"
|
|
12
13
|
size="sm"
|
|
13
14
|
@mousedown.stop="deleteFilter"
|
|
@@ -44,12 +45,13 @@ import { useI18n } from 'vue-i18n';
|
|
|
44
45
|
import WtChip from '../../../../../../components/wt-chip/wt-chip.vue';
|
|
45
46
|
import WtIconBtn from '../../../../../../components/wt-icon-btn/wt-icon-btn.vue';
|
|
46
47
|
import WtTooltip from '../../../../../../components/wt-tooltip/wt-tooltip.vue';
|
|
47
|
-
import type {
|
|
48
|
+
import type {IFilter} from '../../types/Filter';
|
|
48
49
|
import DynamicFilterConfigView from '../config/dynamic-filter-config-view.vue';
|
|
49
50
|
import DynamicFilterPreviewInfo from './dynamic-filter-preview-info.vue';
|
|
50
51
|
|
|
51
52
|
interface Props {
|
|
52
53
|
filter: IFilter;
|
|
54
|
+
dummy?: boolean;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
const { t } = useI18n();
|