@webitel/ui-sdk 24.12.152 → 24.12.154
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 +15 -0
- package/dist/ui-sdk.js +2690 -2690
- package/dist/ui-sdk.umd.cjs +13 -13
- package/package.json +1 -1
- package/src/locale/en/en.js +1 -1
- package/src/locale/ru/ru.js +1 -1
- package/src/locale/ua/ua.js +1 -1
- package/src/modules/Filters/v2/filters/components/dynamic-filter-search.vue +6 -1
- package/src/modules/Filters/v2/filters/components/preview/dynamic-filter-preview.vue +1 -1
- package/src/modules/Userinfo/v2/scripts/utils.ts +4 -0
package/package.json
CHANGED
package/src/locale/en/en.js
CHANGED
|
@@ -482,7 +482,7 @@ export default {
|
|
|
482
482
|
exportToJson: 'Export to JSON',
|
|
483
483
|
},
|
|
484
484
|
filters: {
|
|
485
|
-
predefinedLabels: {
|
|
485
|
+
predefinedLabels: { /* https://webitel.atlassian.net/browse/WTEL-6308?focusedCommentId=657415 */
|
|
486
486
|
createdAt: {
|
|
487
487
|
startOfToday: 'From the start of today',
|
|
488
488
|
},
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -480,7 +480,7 @@ export default {
|
|
|
480
480
|
exportToJson: 'Экспортировать в JSON',
|
|
481
481
|
},
|
|
482
482
|
filters: {
|
|
483
|
-
predefinedLabels: {
|
|
483
|
+
predefinedLabels: { /* https://webitel.atlassian.net/browse/WTEL-6308?focusedCommentId=657415 */
|
|
484
484
|
createdAt: {
|
|
485
485
|
startOfToday: 'С начала дня',
|
|
486
486
|
},
|
package/src/locale/ua/ua.js
CHANGED
|
@@ -480,7 +480,7 @@ export default {
|
|
|
480
480
|
exportToJson: 'Експортувати в JSON',
|
|
481
481
|
},
|
|
482
482
|
filters: {
|
|
483
|
-
predefinedLabels: {
|
|
483
|
+
predefinedLabels: { /* https://webitel.atlassian.net/browse/WTEL-6308?focusedCommentId=657415 */
|
|
484
484
|
createdAt: {
|
|
485
485
|
startOfToday: 'Від початку дня',
|
|
486
486
|
},
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:v="v$.model"
|
|
8
8
|
@input="model = $event"
|
|
9
9
|
@search="handleSearch"
|
|
10
|
-
@update:search-mode="
|
|
10
|
+
@update:search-mode="onSearchModeChange($event.value)"
|
|
11
11
|
>
|
|
12
12
|
<template
|
|
13
13
|
v-if="props.showTextSearchIcon"
|
|
@@ -52,6 +52,11 @@ const v$ = useVuelidate(
|
|
|
52
52
|
{ $autoDirty: true },
|
|
53
53
|
);
|
|
54
54
|
|
|
55
|
+
const onSearchModeChange = (value: string) => {
|
|
56
|
+
emit('update:search-mode', value);
|
|
57
|
+
model.value = '';
|
|
58
|
+
};
|
|
59
|
+
|
|
55
60
|
const handleSearch = () => {
|
|
56
61
|
emit('handle-search', model.value);
|
|
57
62
|
};
|
|
@@ -51,7 +51,7 @@ import DynamicFilterPreviewInfo from './dynamic-filter-preview-info.vue';
|
|
|
51
51
|
|
|
52
52
|
interface Props {
|
|
53
53
|
filter: IFilter;
|
|
54
|
-
dummy?: boolean;
|
|
54
|
+
dummy?: boolean; /* https://webitel.atlassian.net/browse/WTEL-6308?focusedCommentId=657415 */
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
const { t } = useI18n();
|
|
@@ -76,6 +76,8 @@ export const makeAppVisibilityMap = (
|
|
|
76
76
|
rawVisibility: VisibilityAccess,
|
|
77
77
|
): AppVisibilityMap => {
|
|
78
78
|
const map = new Map();
|
|
79
|
+
if (!rawVisibility) return map;
|
|
80
|
+
|
|
79
81
|
Object.entries(rawVisibility).forEach(([app, visibility]) => {
|
|
80
82
|
map.set(app, visibility._enabled);
|
|
81
83
|
});
|
|
@@ -87,6 +89,8 @@ export const makeSectionVisibilityMap = (
|
|
|
87
89
|
): SectionVisibilityMap => {
|
|
88
90
|
const map = new Map();
|
|
89
91
|
|
|
92
|
+
if (!rawVisibility) return map;
|
|
93
|
+
|
|
90
94
|
Object.values(rawVisibility).forEach((appSectionsVisibility) => {
|
|
91
95
|
Object.entries(appSectionsVisibility).forEach(([section, visibility]) => {
|
|
92
96
|
if (section.startsWith('_')) return map; // skip private fields
|