@webitel/ui-sdk 25.4.34 → 25.4.36
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 +8 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +2103 -2103
- package/dist/ui-sdk.umd.cjs +15 -15
- package/package.json +2 -2
- package/src/api/clients/gateways/gateways.js +1 -1
- package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-2.vue +1 -0
- package/src/components/on-demand/wt-navigation-menu/components/wt-navigation-menu.vue +3 -1
- package/src/components/on-demand/wt-navigation-menu/css/_nav-menu.scss +1 -1
- package/src/components/on-demand/wt-selection-popup/wt-selection-popup.vue +1 -1
- package/src/components/on-demand/wt-start-page/components/start-page-card.vue +1 -1
- package/src/components/wt-app-header/wt-app-navigator.vue +2 -1
- package/src/components/wt-app-header/wt-header-actions.vue +1 -1
- package/src/components/wt-button/wt-button.vue +1 -1
- package/src/components/wt-chip/wt-chip.scss +1 -1
- package/src/components/wt-context-menu/wt-context-menu.vue +1 -1
- package/src/components/wt-datepicker/wt-datepicker.vue +4 -2
- package/src/components/wt-dual-panel/wt-dual-panel.vue +1 -1
- package/src/components/wt-dummy/wt-dummy.vue +1 -1
- package/src/components/wt-empty/wt-empty.vue +1 -1
- package/src/components/wt-expansion-panel/wt-expansion-panel.vue +1 -1
- package/src/components/wt-headline/wt-headline.vue +1 -1
- package/src/components/wt-headline-nav/wt-headline-nav.vue +1 -1
- package/src/components/wt-image/wt-image.vue +1 -1
- package/src/components/wt-indicator/wt-indicator.vue +1 -1
- package/src/components/wt-input/wt-input.vue +1 -1
- package/src/components/wt-input-info/wt-input-info.vue +1 -1
- package/src/components/wt-label/wt-label.vue +3 -3
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +4 -3
- package/src/components/wt-notification/wt-notification.vue +1 -1
- package/src/components/wt-notifications-bar/wt-notifications-bar.vue +1 -1
- package/src/components/wt-pagination/wt-pagination.vue +1 -1
- package/src/components/wt-player/wt-player.vue +1 -1
- package/src/components/wt-popup/wt-popup.vue +2 -1
- package/src/components/wt-search-bar/wt-search-bar.vue +1 -1
- package/src/components/wt-select/_multiselect.scss +1 -1
- package/src/components/wt-table/wt-table.vue +2 -1
- package/src/components/wt-table-column-select/wt-table-column-select.vue +1 -1
- package/src/components/wt-tabs/wt-tabs.vue +1 -1
- package/src/components/wt-textarea/wt-textarea.vue +1 -1
- package/src/components/wt-time-input/wt-time-input.vue +1 -1
- package/src/components/wt-tooltip/wt-tooltip.vue +1 -1
- package/src/components/wt-tree/wt-tree.vue +1 -1
- package/src/components/wt-tree-line/wt-tree-line.vue +1 -1
- package/src/components/wt-tree-table/wt-tree-table.vue +3 -2
- package/src/components/wt-tree-table-row/wt-tree-table-row.vue +1 -1
- package/src/css/main.scss +5 -1
- package/src/css/pages/card-page.scss +1 -1
- package/src/css/pages/table-page.scss +1 -1
- package/src/css/styleguide/display-helpers/_display-helpers.scss +1 -2
- package/src/css/styleguide/placeholder/_placeholder.scss +0 -5
- package/src/modules/Filters/v2/filter-presets/components/apply-preset/apply-preset-action.vue +2 -0
- package/src/modules/Filters/v2/filter-presets/components/save-preset/save-preset-popup.vue +28 -22
- package/src/modules/Filters/v2/filters/components/filter-options/actual-reaction-time/actual-reaction-time-filter-value-preview.vue +8 -6
- package/src/modules/Filters/v2/filters/components/filter-options/actual-resolution-time/actual-resolution-time-filter-value-preview.vue +8 -6
- package/src/modules/Filters/v2/filters/components/filter-options/gateway/gateway-filter-value-preview.vue +1 -1
- package/src/modules/Filters/v2/filters/components/filter-options/rating/rating-from-to-filter-value-preview.vue +7 -5
- package/src/modules/Filters/v2/filters/components/filter-options/reaction-time/reaction-time-filter-value-preview.vue +8 -6
- package/src/modules/Filters/v2/filters/components/filter-options/resolution-time/resolution-time-filter-value-preview.vue +8 -6
- package/src/modules/Filters/v2/filters/components/filter-options/score/score-from-to-filter-value-preview.vue +7 -5
- package/src/modules/Filters/v2/filters/components/filter-options/talk-duration/talk-duration-filter-value-preview.vue +8 -9
- package/src/modules/Filters/v2/filters/components/filter-options/total-duration/total-duration-filter-value-preview.vue +8 -9
- package/src/modules/Filters/v2/filters/components/filter-options/variable/variable-filter-value-preview.vue +11 -8
- package/src/modules/Filters/v2/filters/components/preview/dynamic-filter-preview-info.vue +4 -4
- package/src/modules/ObjectPermissions/components/permissions-tab.vue +6 -3
- package/src/modules/QueryFilters/components/filter-from-to.vue +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.4.
|
|
3
|
+
"version": "25.4.36",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@vuelidate/validators": "^2.0.4",
|
|
115
115
|
"@vuepic/vue-datepicker": "^4.5.1",
|
|
116
116
|
"@vueuse/components": "^11.2.0",
|
|
117
|
-
"@webitel/styleguide": "^24.12.
|
|
117
|
+
"@webitel/styleguide": "^24.12.26",
|
|
118
118
|
"autosize": "^6.0.1",
|
|
119
119
|
"axios": "^1.7.7",
|
|
120
120
|
"clipboard-copy": "^4.0.1",
|
|
@@ -21,7 +21,7 @@ const instance = getDefaultInstance();
|
|
|
21
21
|
const baseUrl = '/sip/gateways';
|
|
22
22
|
|
|
23
23
|
const getGatewayList = async (params) => {
|
|
24
|
-
const fieldsToSend = ['page', 'size', 'q', 'sort', 'fields', '
|
|
24
|
+
const fieldsToSend = ['page', 'size', 'q', 'sort', 'fields', 'id'];
|
|
25
25
|
|
|
26
26
|
const defaultObject = {
|
|
27
27
|
name: '',
|
|
@@ -82,7 +82,9 @@ function select(category) {
|
|
|
82
82
|
</script>
|
|
83
83
|
|
|
84
84
|
<style lang="scss" scoped>
|
|
85
|
-
@use '
|
|
85
|
+
@use '@webitel/styleguide/viewport-breakpoints' as *;
|
|
86
|
+
@use '@webitel/styleguide/scroll' as *;
|
|
87
|
+
|
|
86
88
|
.wt-navigation-menu {
|
|
87
89
|
display: flex;
|
|
88
90
|
align-items: center;
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
:format="isDateTime ? 'dd/MM/yyyy HH:mm' : 'dd/MM/yyyy'"
|
|
24
24
|
:locale="$i18n.locale === 'ua' ? 'uk' : $i18n.locale"
|
|
25
25
|
:model-value="+value"
|
|
26
|
-
:placeholder="
|
|
26
|
+
:placeholder="
|
|
27
|
+
placeholder || (isDateTime ? '00/00/00 00:00' : '00/00/0000')
|
|
28
|
+
"
|
|
27
29
|
auto-apply
|
|
28
30
|
class="wt-datepicker__datepicker"
|
|
29
31
|
v-bind="{ ...$attrs, ...$props }"
|
|
@@ -164,7 +166,7 @@ const clearValue = () => {
|
|
|
164
166
|
</style>
|
|
165
167
|
|
|
166
168
|
<style lang="scss" scoped>
|
|
167
|
-
@use '
|
|
169
|
+
@use '@webitel/styleguide/typography' as *;
|
|
168
170
|
|
|
169
171
|
.wt-datepicker :deep(.dp__main) {
|
|
170
172
|
.dp__input_icon {
|
|
@@ -36,17 +36,17 @@ export default {
|
|
|
36
36
|
</style>
|
|
37
37
|
|
|
38
38
|
<style lang="scss" scoped>
|
|
39
|
-
@use '
|
|
39
|
+
@use '@webitel/styleguide/typography' as *;
|
|
40
40
|
|
|
41
41
|
.wt-label {
|
|
42
|
-
@extend %typo-
|
|
42
|
+
@extend %typo-subtitle-2;
|
|
43
43
|
|
|
44
44
|
display: flex;
|
|
45
45
|
align-items: center;
|
|
46
46
|
cursor: text;
|
|
47
47
|
transition: var(--transition);
|
|
48
48
|
color: var(--wt-label-color);
|
|
49
|
-
|
|
49
|
+
padding: var(--wt-label-padding);
|
|
50
50
|
|
|
51
51
|
&--invalid {
|
|
52
52
|
color: var(--wt-label-error-color);
|
|
@@ -120,7 +120,7 @@ import CrmLight from './assets/light/app-logo-light-crm.svg';
|
|
|
120
120
|
import HistoryLight from './assets/light/app-logo-light-history.svg';
|
|
121
121
|
import SupervisorLight from './assets/light/app-logo-light-supervisor.svg';
|
|
122
122
|
import WorkspaceLight from './assets/light/app-logo-light-workspace.svg';
|
|
123
|
-
import { WtNavigationBarNavItem } from
|
|
123
|
+
import { WtNavigationBarNavItem } from './types/WtNavigationBar';
|
|
124
124
|
|
|
125
125
|
const appLogo = {
|
|
126
126
|
[WebitelApplications.SUPERVISOR]: {
|
|
@@ -171,7 +171,7 @@ export default {
|
|
|
171
171
|
logoRoute: {
|
|
172
172
|
type: String,
|
|
173
173
|
default: '',
|
|
174
|
-
}
|
|
174
|
+
},
|
|
175
175
|
},
|
|
176
176
|
data: () => ({
|
|
177
177
|
isOpened: false,
|
|
@@ -223,7 +223,8 @@ export default {
|
|
|
223
223
|
</style>
|
|
224
224
|
|
|
225
225
|
<style lang="scss" scoped>
|
|
226
|
-
@use '
|
|
226
|
+
@use '@webitel/styleguide/typography' as *;
|
|
227
|
+
@use '@webitel/styleguide/scroll' as *;
|
|
227
228
|
|
|
228
229
|
.wt-navigation-bar__menu-btn {
|
|
229
230
|
display: block;
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
</template>
|
|
94
94
|
|
|
95
95
|
<script setup lang="ts">
|
|
96
|
-
import {computed, withDefaults} from 'vue';
|
|
96
|
+
import { computed, withDefaults } from 'vue';
|
|
97
97
|
|
|
98
98
|
import { useWtTable } from '../../composables/useWtTable/useWtTable';
|
|
99
99
|
import { getNextSortOrder } from '../../scripts/sortQueryAdapters';
|
|
@@ -265,7 +265,8 @@ const handleSelection = (row, select) => {
|
|
|
265
265
|
</style>
|
|
266
266
|
|
|
267
267
|
<style lang="scss" scoped>
|
|
268
|
-
@use '
|
|
268
|
+
@use '@webitel/styleguide/typography' as *;
|
|
269
|
+
@use '@webitel/styleguide/scroll' as *;
|
|
269
270
|
|
|
270
271
|
.wt-tree-table {
|
|
271
272
|
@extend %wt-scrollbar;
|
package/src/css/main.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@forward 'styleguide/styleguide';
|
|
2
2
|
@use 'styleguide/styleguide' as *;
|
|
3
|
-
@use 'pages/card-page';
|
|
4
3
|
@use 'pages/table-page';
|
|
4
|
+
@use 'pages/card-page';
|
|
5
5
|
|
|
6
6
|
@include wt-placeholder;
|
|
7
7
|
|
|
@@ -27,6 +27,10 @@ body {
|
|
|
27
27
|
margin: 0;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
* {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
}
|
|
33
|
+
|
|
30
34
|
.theme--dark {
|
|
31
35
|
body {
|
|
32
36
|
color-scheme: dark;
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
// https://stackoverflow.com/a/49192800/17782185
|
|
3
3
|
@use 'sass:selector';
|
|
4
4
|
|
|
5
|
-
//@mixin optional-at-root($sel) {
|
|
6
|
-
// @at-root #{if(not &, $sel, selector-append(&, $sel))} {
|
|
7
|
-
// @content;
|
|
8
|
-
// }
|
|
9
|
-
//}
|
|
10
5
|
@mixin optional-at-root($sel) {
|
|
11
6
|
@if & {
|
|
12
7
|
@at-root #{selector.append(&, $sel)} {
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
@close="emit('close')"
|
|
5
5
|
>
|
|
6
6
|
<template #title>
|
|
7
|
-
{{
|
|
7
|
+
{{
|
|
8
|
+
`${t('reusable.save')} ${t('webitelUI.filters.presets.preset').toLowerCase()}`
|
|
9
|
+
}}
|
|
8
10
|
</template>
|
|
9
11
|
|
|
10
12
|
<template #main>
|
|
@@ -22,9 +24,7 @@
|
|
|
22
24
|
/>
|
|
23
25
|
</form>
|
|
24
26
|
|
|
25
|
-
<preset-filters-preview
|
|
26
|
-
:filters="appliedFilters"
|
|
27
|
-
/>
|
|
27
|
+
<preset-filters-preview :filters="appliedFilters" />
|
|
28
28
|
</template>
|
|
29
29
|
|
|
30
30
|
<template #actions>
|
|
@@ -46,16 +46,17 @@
|
|
|
46
46
|
</template>
|
|
47
47
|
|
|
48
48
|
<script setup lang="ts">
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {EnginePresetQuery} from
|
|
54
|
-
|
|
49
|
+
import { useVuelidate } from '@vuelidate/core';
|
|
50
|
+
import { required } from '@vuelidate/validators';
|
|
51
|
+
import { computed, reactive, ref } from 'vue';
|
|
52
|
+
import { useI18n } from 'vue-i18n';
|
|
53
|
+
import { EnginePresetQuery } from 'webitel-sdk';
|
|
54
|
+
|
|
55
55
|
import { WtPopup } from '../../../../../../components/index';
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import PresetNameField from
|
|
56
|
+
import type { IFiltersManager } from '../../../index';
|
|
57
|
+
import PresetDescriptionField from '../_shared/input-fields/preset-description-field.vue';
|
|
58
|
+
import PresetNameField from '../_shared/input-fields/preset-name-field.vue';
|
|
59
|
+
import PresetFiltersPreview from '../_shared/preset-filters-preview.vue';
|
|
59
60
|
|
|
60
61
|
export type SubmitConfig = {
|
|
61
62
|
onSuccess?: () => void;
|
|
@@ -72,7 +73,7 @@ const emit = defineEmits<{
|
|
|
72
73
|
close: [];
|
|
73
74
|
}>();
|
|
74
75
|
|
|
75
|
-
const {t} = useI18n();
|
|
76
|
+
const { t } = useI18n();
|
|
76
77
|
|
|
77
78
|
const isSaving = ref(false);
|
|
78
79
|
|
|
@@ -81,13 +82,17 @@ const presetForm = reactive({
|
|
|
81
82
|
description: '',
|
|
82
83
|
});
|
|
83
84
|
|
|
84
|
-
const v$ = useVuelidate(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
85
|
+
const v$ = useVuelidate(
|
|
86
|
+
computed(() => {
|
|
87
|
+
return {
|
|
88
|
+
name: {
|
|
89
|
+
required,
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
}),
|
|
93
|
+
presetForm,
|
|
94
|
+
{ $autoDirty: true },
|
|
95
|
+
);
|
|
91
96
|
v$.value.$touch();
|
|
92
97
|
|
|
93
98
|
const appliedFilters = computed(() => {
|
|
@@ -110,10 +115,11 @@ const save = () => {
|
|
|
110
115
|
},
|
|
111
116
|
});
|
|
112
117
|
};
|
|
113
|
-
|
|
114
118
|
</script>
|
|
115
119
|
|
|
116
120
|
<style scoped lang="scss">
|
|
121
|
+
@use '@webitel/styleguide/scroll' as *;
|
|
122
|
+
|
|
117
123
|
.save-preset-form {
|
|
118
124
|
display: flex;
|
|
119
125
|
flex-direction: column;
|