@webitel/ui-sdk 25.4.34 → 25.4.35

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/ui-sdk.css +1 -1
  3. package/dist/ui-sdk.js +2103 -2103
  4. package/dist/ui-sdk.umd.cjs +15 -15
  5. package/package.json +2 -2
  6. package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-2.vue +1 -0
  7. package/src/components/on-demand/wt-navigation-menu/components/wt-navigation-menu.vue +3 -1
  8. package/src/components/on-demand/wt-navigation-menu/css/_nav-menu.scss +1 -1
  9. package/src/components/on-demand/wt-selection-popup/wt-selection-popup.vue +1 -1
  10. package/src/components/on-demand/wt-start-page/components/start-page-card.vue +1 -1
  11. package/src/components/wt-app-header/wt-app-navigator.vue +2 -1
  12. package/src/components/wt-app-header/wt-header-actions.vue +1 -1
  13. package/src/components/wt-button/wt-button.vue +1 -1
  14. package/src/components/wt-chip/wt-chip.scss +1 -1
  15. package/src/components/wt-context-menu/wt-context-menu.vue +1 -1
  16. package/src/components/wt-datepicker/wt-datepicker.vue +4 -2
  17. package/src/components/wt-dual-panel/wt-dual-panel.vue +1 -1
  18. package/src/components/wt-dummy/wt-dummy.vue +1 -1
  19. package/src/components/wt-empty/wt-empty.vue +1 -1
  20. package/src/components/wt-expansion-panel/wt-expansion-panel.vue +1 -1
  21. package/src/components/wt-headline/wt-headline.vue +1 -1
  22. package/src/components/wt-headline-nav/wt-headline-nav.vue +1 -1
  23. package/src/components/wt-image/wt-image.vue +1 -1
  24. package/src/components/wt-indicator/wt-indicator.vue +1 -1
  25. package/src/components/wt-input/wt-input.vue +1 -1
  26. package/src/components/wt-input-info/wt-input-info.vue +1 -1
  27. package/src/components/wt-label/wt-label.vue +3 -3
  28. package/src/components/wt-navigation-bar/wt-navigation-bar.vue +4 -3
  29. package/src/components/wt-notification/wt-notification.vue +1 -1
  30. package/src/components/wt-notifications-bar/wt-notifications-bar.vue +1 -1
  31. package/src/components/wt-pagination/wt-pagination.vue +1 -1
  32. package/src/components/wt-player/wt-player.vue +1 -1
  33. package/src/components/wt-popup/wt-popup.vue +2 -1
  34. package/src/components/wt-search-bar/wt-search-bar.vue +1 -1
  35. package/src/components/wt-select/_multiselect.scss +1 -1
  36. package/src/components/wt-table/wt-table.vue +2 -1
  37. package/src/components/wt-table-column-select/wt-table-column-select.vue +1 -1
  38. package/src/components/wt-tabs/wt-tabs.vue +1 -1
  39. package/src/components/wt-textarea/wt-textarea.vue +1 -1
  40. package/src/components/wt-time-input/wt-time-input.vue +1 -1
  41. package/src/components/wt-tooltip/wt-tooltip.vue +1 -1
  42. package/src/components/wt-tree/wt-tree.vue +1 -1
  43. package/src/components/wt-tree-line/wt-tree-line.vue +1 -1
  44. package/src/components/wt-tree-table/wt-tree-table.vue +3 -2
  45. package/src/components/wt-tree-table-row/wt-tree-table-row.vue +1 -1
  46. package/src/css/main.scss +5 -1
  47. package/src/css/pages/card-page.scss +1 -1
  48. package/src/css/pages/table-page.scss +1 -1
  49. package/src/css/styleguide/display-helpers/_display-helpers.scss +1 -2
  50. package/src/css/styleguide/placeholder/_placeholder.scss +0 -5
  51. package/src/modules/Filters/v2/filter-presets/components/apply-preset/apply-preset-action.vue +2 -0
  52. package/src/modules/Filters/v2/filter-presets/components/save-preset/save-preset-popup.vue +28 -22
  53. package/src/modules/Filters/v2/filters/components/filter-options/actual-reaction-time/actual-reaction-time-filter-value-preview.vue +8 -6
  54. package/src/modules/Filters/v2/filters/components/filter-options/actual-resolution-time/actual-resolution-time-filter-value-preview.vue +8 -6
  55. package/src/modules/Filters/v2/filters/components/filter-options/rating/rating-from-to-filter-value-preview.vue +7 -5
  56. package/src/modules/Filters/v2/filters/components/filter-options/reaction-time/reaction-time-filter-value-preview.vue +8 -6
  57. package/src/modules/Filters/v2/filters/components/filter-options/resolution-time/resolution-time-filter-value-preview.vue +8 -6
  58. package/src/modules/Filters/v2/filters/components/filter-options/score/score-from-to-filter-value-preview.vue +7 -5
  59. package/src/modules/Filters/v2/filters/components/filter-options/talk-duration/talk-duration-filter-value-preview.vue +8 -9
  60. package/src/modules/Filters/v2/filters/components/filter-options/total-duration/total-duration-filter-value-preview.vue +8 -9
  61. package/src/modules/Filters/v2/filters/components/filter-options/variable/variable-filter-value-preview.vue +11 -8
  62. package/src/modules/Filters/v2/filters/components/preview/dynamic-filter-preview-info.vue +4 -4
  63. package/src/modules/ObjectPermissions/components/permissions-tab.vue +6 -3
  64. 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.34",
3
+ "version": "25.4.35",
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.25",
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",
@@ -29,6 +29,7 @@ const props = defineProps({
29
29
 
30
30
  <style lang="scss" scoped>
31
31
  @use '../../css/nav-menu';
32
+ @use '@webitel/styleguide/scroll' as *;
32
33
 
33
34
  .nav-menu-lvl-2 {
34
35
  @extend %wt-scrollbar;
@@ -82,7 +82,9 @@ function select(category) {
82
82
  </script>
83
83
 
84
84
  <style lang="scss" scoped>
85
- @use '../../../../css/main' as *;
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;
@@ -1,4 +1,4 @@
1
- @use '../../../../css/main' as *;
1
+ @use '@webitel/styleguide/typography' as *;
2
2
 
3
3
  .nav-menu {
4
4
  &__category {
@@ -118,7 +118,7 @@ function selectOption(option) {
118
118
  </script>
119
119
 
120
120
  <style lang="scss" scoped>
121
- @use '../../../css/main.scss';
121
+ @use '@webitel/styleguide/typography' as *;
122
122
 
123
123
  .wt-selection-popup {
124
124
  &__options {
@@ -47,7 +47,7 @@ const open = () => {
47
47
  </script>
48
48
 
49
49
  <style lang="scss" scoped>
50
- @use '../../../../css/main.scss';
50
+ @use '@webitel/styleguide/typography' as *;
51
51
 
52
52
  .start-page-card {
53
53
  display: flex;
@@ -150,7 +150,8 @@ function close() {
150
150
  </script>
151
151
 
152
152
  <style lang="scss" scoped>
153
- @use '../../css/main.scss';
153
+ @use '@webitel/styleguide/scroll' as *;
154
+ @use '@webitel/styleguide/typography' as *;
154
155
 
155
156
  .wt-app-navigator {
156
157
  position: relative;
@@ -131,7 +131,7 @@ export default {
131
131
  </script>
132
132
 
133
133
  <style lang="scss" scoped>
134
- @use '../../css/main.scss';
134
+ @use '@webitel/styleguide/typography' as *;
135
135
 
136
136
  .wt-header-actions {
137
137
  position: relative;
@@ -117,7 +117,7 @@ export default {
117
117
  </style>
118
118
 
119
119
  <style lang="scss" scoped>
120
- @use '../../css/main.scss';
120
+ @use '@webitel/styleguide/typography' as *;
121
121
 
122
122
  .wt-button {
123
123
  @extend %typo-button;
@@ -1,4 +1,4 @@
1
- @use '../../css/main' as *;
1
+ @use '@webitel/styleguide/typography' as *;
2
2
 
3
3
  .wt-chip {
4
4
  @extend %typo-body-2;
@@ -86,7 +86,7 @@ function handleOptionClick({ option, index, hide }) {
86
86
  </style>
87
87
 
88
88
  <style lang="scss" scoped>
89
- @use '../../css/main.scss';
89
+ @use '@webitel/styleguide/typography' as *;
90
90
 
91
91
  .wt-context-menu {
92
92
  line-height: 0;
@@ -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="placeholder || (isDateTime ? '00/00/00 00:00' : '00/00/0000')"
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 '../../css/main.scss';
169
+ @use '@webitel/styleguide/typography' as *;
168
170
 
169
171
  .wt-datepicker :deep(.dp__main) {
170
172
  .dp__input_icon {
@@ -68,7 +68,7 @@ const sidePanelSize = computed(() =>
68
68
  </style>
69
69
 
70
70
  <style lang="scss" scoped>
71
- @use '../../css/main.scss';
71
+ @use '@webitel/styleguide/scroll' as *;
72
72
  $side-panel-md-width: 320px;
73
73
 
74
74
  .wt-dual-panel {
@@ -67,7 +67,7 @@ const dummy = computed(() => (props.darkMode ? dummyDark : dummyLight));
67
67
  </style>
68
68
 
69
69
  <style lang="scss" scoped>
70
- @use '../../css/main.scss';
70
+ @use '@webitel/styleguide/typography' as *;
71
71
 
72
72
  .wt-dummy {
73
73
  display: flex;
@@ -269,7 +269,7 @@ const onSecondaryClick = onClick('secondary');
269
269
  </style>
270
270
 
271
271
  <style lang="scss" scoped>
272
- @use '../../css/main.scss';
272
+ @use '@webitel/styleguide/typography' as *;
273
273
 
274
274
  .wt-empty {
275
275
  box-sizing: border-box;
@@ -85,7 +85,7 @@ watch(
85
85
  </style>
86
86
 
87
87
  <style lang="scss" scoped>
88
- @use '../../css/main.scss';
88
+ @use '@webitel/styleguide/typography' as *;
89
89
 
90
90
  .wt-expansion-panel {
91
91
  display: flex;
@@ -25,7 +25,7 @@ export default {
25
25
  </style>
26
26
 
27
27
  <style lang="scss" scoped>
28
- @use '../../css/main.scss';
28
+ @use '@webitel/styleguide/typography' as *;
29
29
 
30
30
  .wt-headline {
31
31
  display: flex;
@@ -49,7 +49,7 @@ const props = defineProps({
49
49
  </style>
50
50
 
51
51
  <style lang="scss" scoped>
52
- @use '../../css/main.scss';
52
+ @use '@webitel/styleguide/typography' as *;
53
53
 
54
54
  .wt-headline-nav {
55
55
  display: flex;
@@ -110,7 +110,7 @@ const height = computed(() => {
110
110
  </script>
111
111
 
112
112
  <style lang="scss" scoped>
113
- @use '../../css/main.scss';
113
+ //@use '../../css/styleguide/styleguide';
114
114
 
115
115
  .wt-image {
116
116
  display: flex;
@@ -76,7 +76,7 @@ export default {
76
76
  </style>
77
77
 
78
78
  <style lang="scss" scoped>
79
- @use '../../css/main.scss';
79
+ @use '@webitel/styleguide/typography' as *;
80
80
 
81
81
  .wt-indicator {
82
82
  display: flex;
@@ -281,7 +281,7 @@ defineExpose({
281
281
  </style>
282
282
 
283
283
  <style lang="scss" scoped>
284
- @use '../../css/main' as *;
284
+ @use '../../css/styleguide/styleguide' as *;
285
285
 
286
286
  .wt-input {
287
287
  cursor: text;
@@ -26,7 +26,7 @@ export default {
26
26
  </style>
27
27
 
28
28
  <style lang="scss" scoped>
29
- @use '../../css/main.scss';
29
+ @use '@webitel/styleguide/typography' as *;
30
30
 
31
31
  .wt-input-info {
32
32
  @extend %typo-caption;
@@ -36,17 +36,17 @@ export default {
36
36
  </style>
37
37
 
38
38
  <style lang="scss" scoped>
39
- @use '../../css/main.scss';
39
+ @use '@webitel/styleguide/typography' as *;
40
40
 
41
41
  .wt-label {
42
- @extend %typo-body-1;
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
- //padding: var(--wt-label-padding);
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 "./types/WtNavigationBar";
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 '../../css/main.scss';
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;
@@ -51,7 +51,7 @@ export default {
51
51
  </style>
52
52
 
53
53
  <style lang="scss" scoped>
54
- @use '../../css/main.scss';
54
+ @use '@webitel/styleguide/typography' as *;
55
55
 
56
56
  .wt-notification {
57
57
  @extend %typo-body-1;
@@ -64,7 +64,7 @@ export default {
64
64
  </style>
65
65
 
66
66
  <style lang="scss" scoped>
67
- @use '../../css/main.scss';
67
+ @use '@webitel/styleguide/scroll' as *;
68
68
 
69
69
  .wt-notifications-bar {
70
70
  @extend %wt-scrollbar;
@@ -111,7 +111,7 @@ export default {
111
111
  </style>
112
112
 
113
113
  <style lang="scss" scoped>
114
- @use '../../css/main.scss';
114
+ @use '@webitel/styleguide/typography' as *;
115
115
 
116
116
  .wt-pagination {
117
117
  @extend %typo-body-1;
@@ -178,7 +178,7 @@ export default {
178
178
  </style>
179
179
 
180
180
  <style lang="scss" scoped>
181
- @use '../../css/main' as *;
181
+ @use '@webitel/styleguide/typography' as *;
182
182
 
183
183
  .wt-player {
184
184
  @extend %typo-body-2;
@@ -172,7 +172,8 @@ watch(wrapperShown, (value) => {
172
172
  </style>
173
173
 
174
174
  <style lang="scss" scoped>
175
- @use '../../css/main.scss';
175
+ @use '@webitel/styleguide/typography' as *;
176
+ @use '@webitel/styleguide/scroll' as *;
176
177
 
177
178
  .wt-popup {
178
179
  position: fixed;
@@ -167,7 +167,7 @@ function updateSearchMode({ option }) {
167
167
  </style>
168
168
 
169
169
  <style lang="scss" scoped>
170
- @use '../../css/main' as *;
170
+ @use '../../css/styleguide/styleguide' as *;
171
171
 
172
172
  .wt-search-bar {
173
173
  cursor: text;
@@ -1,4 +1,4 @@
1
- @use '../../css/main' as *;
1
+ @use '../../css/styleguide/styleguide' as *;
2
2
 
3
3
  :deep(.multiselect) {
4
4
  position: relative;
@@ -317,7 +317,8 @@ export default {
317
317
  </style>
318
318
 
319
319
  <style lang="scss" scoped>
320
- @use '../../css/main.scss';
320
+ @use '@webitel/styleguide/typography' as *;
321
+ @use '@webitel/styleguide/scroll' as *;
321
322
 
322
323
  .wt-table {
323
324
  @extend %wt-scrollbar;
@@ -131,7 +131,7 @@ export default {
131
131
  </script>
132
132
 
133
133
  <style lang="scss" scoped>
134
- @use '../../css/main.scss';
134
+ @use '@webitel/styleguide/scroll' as *;
135
135
 
136
136
  $list-height: 400px;
137
137
  $list-width-sm: calc(
@@ -87,7 +87,7 @@ export default {
87
87
  </style>
88
88
 
89
89
  <style lang="scss" scoped>
90
- @use '../../css/main.scss';
90
+ @use '@webitel/styleguide/typography' as *;
91
91
 
92
92
  .wt-tabs {
93
93
  position: relative;
@@ -172,7 +172,7 @@ export default {
172
172
  </style>
173
173
 
174
174
  <style lang="scss" scoped>
175
- @use '../../css/main' as *;
175
+ @use '../../css/styleguide/styleguide' as *;
176
176
 
177
177
  .wt-textarea {
178
178
  cursor: text;
@@ -117,7 +117,7 @@ export default {
117
117
  </script>
118
118
 
119
119
  <style lang="scss" scoped>
120
- @use '../../css/main' as *;
120
+ @use '../../css/styleguide/styleguide' as *;
121
121
 
122
122
  .wt-time-input {
123
123
  display: inline-block;
@@ -166,7 +166,7 @@ onBeforeUnmount(() => {
166
166
  </style>
167
167
 
168
168
  <style lang="scss" scoped>
169
- @use '../../css/main.scss';
169
+ @use '@webitel/styleguide/typography' as *;
170
170
 
171
171
  .wt-tooltip {
172
172
  display: inline-block;
@@ -123,7 +123,7 @@ const compareSelectElement = (item: any) => {
123
123
  </script>
124
124
 
125
125
  <style lang="scss">
126
- @use '../../css/main.scss' as *;
126
+ @use '@webitel/styleguide/scroll' as *;
127
127
 
128
128
  .wt-tree {
129
129
  padding: var(--spacing-sm);
@@ -226,7 +226,7 @@ watch(
226
226
  </script>
227
227
 
228
228
  <style lang="scss">
229
- @use '../../css/main.scss' as *;
229
+ @use '@webitel/styleguide/typography' as *;
230
230
  @use './variables.scss' as *;
231
231
 
232
232
  .wt-tree-line {
@@ -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 '../../css/main.scss' as *;
268
+ @use '@webitel/styleguide/typography' as *;
269
+ @use '@webitel/styleguide/scroll' as *;
269
270
 
270
271
  .wt-tree-table {
271
272
  @extend %wt-scrollbar;
@@ -199,7 +199,7 @@ onMounted(() => {
199
199
  </script>
200
200
 
201
201
  <style lang="scss" scoped>
202
- @use '../../css/main.scss' as *;
202
+ @use '@webitel/styleguide/typography' as *;
203
203
 
204
204
  .wt-tree-table-td {
205
205
  @extend %typo-body-1;
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;
@@ -1,4 +1,4 @@
1
- @use '../styleguide/styleguide' as *;
1
+ @use '@webitel/styleguide/typography' as *;
2
2
 
3
3
  .opened-card {
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- @use '../styleguide/styleguide' as *;
1
+ @use '@webitel/styleguide/typography' as *;
2
2
 
3
3
  .table-page {
4
4
  &.wt-page-wrapper {
@@ -1,5 +1,4 @@
1
- @use '@webitel/styleguide' as *;
2
- //@use '../viewport-breakpoints/viewport-breakpoints' as *;
1
+ @use '@webitel/styleguide/viewport-breakpoints' as *;
3
2
 
4
3
  .d-none {
5
4
  display: none;
@@ -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)} {
@@ -195,6 +195,8 @@ const deletePreset = async (preset: EnginePresetQuery) => {
195
195
  </script>
196
196
 
197
197
  <style lang="scss" scoped>
198
+ @use '@webitel/styleguide/scroll' as *;
199
+
198
200
  .apply-preset-action .wt-popup {
199
201
  :deep(.wt-popup__popup) {
200
202
  height: 480px;
@@ -4,7 +4,9 @@
4
4
  @close="emit('close')"
5
5
  >
6
6
  <template #title>
7
- {{ `${t('reusable.save')} ${t('webitelUI.filters.presets.preset').toLowerCase()}` }}
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 {computed, reactive, ref} from "vue";
50
- import {useI18n} from "vue-i18n";
51
- import {useVuelidate} from "@vuelidate/core";
52
- import {required} from "@vuelidate/validators";
53
- import {EnginePresetQuery} from "webitel-sdk";
54
- import type {IFiltersManager} from "../../../index";
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 PresetDescriptionField from "../_shared/input-fields/preset-description-field.vue";
57
- import PresetFiltersPreview from "../_shared/preset-filters-preview.vue";
58
- import PresetNameField from "../_shared/input-fields/preset-name-field.vue";
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(computed(() => {
85
- return {
86
- name: {
87
- required,
88
- },
89
- };
90
- }), presetForm, {$autoDirty: true});
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;