@webitel/ui-sdk 24.6.28 → 24.6.31

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 (48) hide show
  1. package/dist/ui-sdk.css +1 -1
  2. package/dist/ui-sdk.js +10794 -8064
  3. package/dist/ui-sdk.umd.cjs +21 -11
  4. package/package.json +1 -1
  5. package/src/api/axios/generateInstance.js +5 -2
  6. package/src/api/clients/users/__tests__/users.spec.js +88 -42
  7. package/src/components/wt-app-header/wt-app-navigator.vue +2 -0
  8. package/src/components/wt-app-header/wt-header-actions.vue +2 -0
  9. package/src/components/wt-button/wt-button.vue +2 -0
  10. package/src/components/wt-checkbox/wt-checkbox.vue +1 -1
  11. package/src/components/wt-chip/wt-chip.scss +2 -0
  12. package/src/components/wt-context-menu/wt-context-menu.vue +1 -0
  13. package/src/components/wt-datepicker/wt-datepicker.vue +1 -0
  14. package/src/components/wt-dummy/wt-dummy.vue +2 -0
  15. package/src/components/wt-expansion-panel/wt-expansion-panel.vue +2 -0
  16. package/src/components/wt-headline/wt-headline.vue +1 -0
  17. package/src/components/wt-headline-nav/wt-headline-nav.vue +2 -0
  18. package/src/components/wt-indicator/wt-indicator.vue +1 -0
  19. package/src/components/wt-input/wt-input.vue +1 -0
  20. package/src/components/wt-input-info/wt-input-info.vue +1 -0
  21. package/src/components/wt-label/wt-label.vue +1 -0
  22. package/src/components/wt-navigation-bar/wt-navigation-bar.vue +1 -1
  23. package/src/components/wt-notification/wt-notification.vue +3 -2
  24. package/src/components/wt-notifications-bar/wt-notifications-bar.vue +1 -0
  25. package/src/components/wt-pagination/wt-pagination.vue +1 -0
  26. package/src/components/wt-player/wt-player.vue +2 -0
  27. package/src/components/wt-popup/wt-popup.vue +1 -0
  28. package/src/components/wt-radio/wt-radio.vue +1 -1
  29. package/src/components/wt-search-bar/wt-search-bar.vue +1 -0
  30. package/src/components/wt-select/_multiselect.scss +1 -0
  31. package/src/components/wt-switcher/wt-switcher.vue +1 -1
  32. package/src/components/wt-table/wt-table.vue +1 -0
  33. package/src/components/wt-table-column-select/wt-table-column-select.vue +2 -0
  34. package/src/components/wt-tabs/wt-tabs.vue +1 -0
  35. package/src/components/wt-textarea/wt-textarea.vue +1 -0
  36. package/src/components/wt-time-input/wt-time-input.vue +2 -0
  37. package/src/components/wt-tooltip/wt-tooltip.vue +1 -0
  38. package/src/css/main.scss +0 -1
  39. package/src/enums/QueueType/QueueType.enum.js +1 -1
  40. package/src/locale/en/en.js +2 -1
  41. package/src/locale/es/es.js +2 -1
  42. package/src/locale/kz/kz.js +2 -1
  43. package/src/locale/ru/ru.js +2 -1
  44. package/src/locale/ua/ua.js +2 -1
  45. package/src/modules/CardStoreModule/store/CardStoreModule.js +2 -1
  46. package/src/modules/Filters/store/FiltersStoreModule.js +1 -1
  47. package/src/modules/TableStoreModule/store/TableStoreModule.js +14 -8
  48. package/src/modules/TableStoreModule/store/__tests__/TableStoreModule.spec.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "24.6.28",
3
+ "version": "24.6.31",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -1,9 +1,12 @@
1
1
  import axios from 'axios';
2
2
 
3
3
  // 'X-Webitel-Access' ~ 'X-Access-Token'
4
- const generateInstance = ({ interceptors } = {}) => {
4
+ const generateInstance = ({
5
+ interceptors,
6
+ baseURL,
7
+ } = {}) => {
5
8
  const instance = axios.create({
6
- baseURL: import.meta.env.VITE_API_URL,
9
+ baseURL,
7
10
  headers: {
8
11
  'X-Webitel-Access': localStorage.getItem('access-token') || '',
9
12
  },
@@ -1,39 +1,31 @@
1
- import axios from 'axios';
2
- import UsersAPI from '../users.js';
3
-
4
- // axios mock should be copy-pasted :(
5
- // https://stackoverflow.com/questions/65554910/jest-referenceerror-cannot-access-before-initialization
6
- vi.mock('axios', () => {
7
- return {
8
- default: {
9
- post: vi.fn(),
10
- get: vi.fn(),
11
- delete: vi.fn(),
12
- put: vi.fn(),
13
- patch: vi.fn(),
14
- create: vi.fn().mockReturnThis(),
15
- interceptors: {
16
- request: {
17
- use: vi.fn(), eject: vi.fn(),
18
- }, response: {
19
- use: vi.fn(), eject: vi.fn(),
20
- },
21
- },
22
- },
23
- };
24
- });
1
+ import axiosMock from '../../../../tests/mocks/axiosMock.js';
2
+
3
+ const instanceMock = axiosMock()().default;
4
+
5
+ vi.doMock('../../../defaults/getDefaultInstance/getDefaultInstance.js', () => ({
6
+ default: () => instanceMock,
7
+ }));
25
8
 
26
9
  describe('UsersAPI', () => {
10
+ beforeEach(() => {
11
+ Object.assign(instanceMock, axiosMock()().default);
12
+ });
13
+
27
14
  it('correctly computes "getList" method api call', async () => {
15
+ const get = vi.fn(() => Promise.resolve({
16
+ data: {},
17
+ }));
18
+
19
+ instanceMock.get = get;
20
+
21
+ const UsersAPI = (await import('../users.js')).default;
22
+
28
23
  const inputParams = {
29
24
  fields: ['id', 'name', 'vitest'],
30
25
  };
31
26
  const url = '/users?fields=id&fields=name&fields=vitest&page=1&size=10';
32
- const mock = axios.get.mockImplementationOnce(() => Promise.resolve({
33
- data: {},
34
- }));
35
27
  await UsersAPI.getList(inputParams);
36
- expect(mock).toHaveBeenCalledWith(url);
28
+ expect(get).toHaveBeenCalledWith(url);
37
29
  });
38
30
 
39
31
  it('correctly computes "getList" method output', async () => {
@@ -57,7 +49,13 @@ describe('UsersAPI', () => {
57
49
  ], next: true,
58
50
  },
59
51
  };
60
- axios.get.mockImplementationOnce(() => Promise.resolve(response));
52
+
53
+ const get = vi.fn(() => Promise.resolve(response));
54
+
55
+ instanceMock.get = get;
56
+
57
+ const UsersAPI = (await import('../users.js')).default;
58
+
61
59
  expect(await UsersAPI.getList({})).toEqual(output);
62
60
  });
63
61
 
@@ -66,11 +64,17 @@ describe('UsersAPI', () => {
66
64
  itemId: 1,
67
65
  };
68
66
  const url = '/users/1';
69
- const mock = axios.get.mockImplementationOnce(() => Promise.resolve({
67
+
68
+ const get = vi.fn(() => Promise.resolve({
70
69
  data: {},
71
70
  }));
71
+
72
+ instanceMock.get = get;
73
+
74
+ const UsersAPI = (await import('../users.js')).default;
75
+
72
76
  await UsersAPI.get(inputParams);
73
- expect(mock).toHaveBeenCalledWith(url);
77
+ expect(get).toHaveBeenCalledWith(url);
74
78
  });
75
79
 
76
80
  it('correctly computes "get" method output', async () => {
@@ -87,7 +91,13 @@ describe('UsersAPI', () => {
87
91
  id: 1,
88
92
  },
89
93
  };
90
- axios.get.mockImplementationOnce(() => Promise.resolve(response));
94
+
95
+ const get = vi.fn(() => Promise.resolve(response));
96
+
97
+ instanceMock.get = get;
98
+
99
+ const UsersAPI = (await import('../users.js')).default;
100
+
91
101
  expect(await UsersAPI.get({})).toEqual(output);
92
102
  });
93
103
 
@@ -104,11 +114,17 @@ describe('UsersAPI', () => {
104
114
  };
105
115
 
106
116
  const url = '/users';
107
- const mock = axios.post.mockImplementationOnce(() => Promise.resolve({
117
+
118
+ const post = vi.fn(() => Promise.resolve({
108
119
  data: {},
109
120
  }));
121
+
122
+ instanceMock.post = post;
123
+
124
+ const UsersAPI = (await import('../users.js')).default;
125
+
110
126
  await UsersAPI.add(input);
111
- expect(mock).toHaveBeenCalledWith(url, body);
127
+ expect(post).toHaveBeenCalledWith(url, body);
112
128
  });
113
129
 
114
130
  it('correctly computes "add" method output', async () => {
@@ -123,7 +139,13 @@ describe('UsersAPI', () => {
123
139
  check_case: '',
124
140
  },
125
141
  };
126
- axios.post.mockImplementationOnce(() => Promise.resolve(response));
142
+
143
+ const post = vi.fn(() => Promise.resolve(response));
144
+
145
+ instanceMock.post = post;
146
+
147
+ const UsersAPI = (await import('../users.js')).default;
148
+
127
149
  expect(await UsersAPI.add({ itemInstance: {} })).toEqual(output);
128
150
  });
129
151
 
@@ -141,11 +163,17 @@ describe('UsersAPI', () => {
141
163
  };
142
164
 
143
165
  const url = '/users/1';
144
- const mock = axios.put.mockImplementationOnce(() => Promise.resolve({
166
+
167
+ const put = vi.fn(() => Promise.resolve({
145
168
  data: {},
146
169
  }));
170
+
171
+ instanceMock.put = put;
172
+
173
+ const UsersAPI = (await import('../users.js')).default;
174
+
147
175
  await UsersAPI.update(input);
148
- expect(mock).toHaveBeenCalledWith(url, body);
176
+ expect(put).toHaveBeenCalledWith(url, body);
149
177
  });
150
178
 
151
179
  it('correctly computes "update" method output', async () => {
@@ -160,7 +188,13 @@ describe('UsersAPI', () => {
160
188
  check_case: '',
161
189
  },
162
190
  };
163
- axios.put.mockImplementationOnce(() => Promise.resolve(response));
191
+
192
+ const put = vi.fn(() => Promise.resolve(response));
193
+
194
+ instanceMock.put = put;
195
+
196
+ const UsersAPI = (await import('../users.js')).default;
197
+
164
198
  expect(await UsersAPI.update({ itemInstance: {}, itemId: 1 }))
165
199
  .toEqual(output);
166
200
  });
@@ -178,11 +212,17 @@ describe('UsersAPI', () => {
178
212
  };
179
213
 
180
214
  const url = '/users/1';
181
- const mock = axios.patch.mockImplementationOnce(() => Promise.resolve({
215
+
216
+ const patch = vi.fn(() => Promise.resolve({
182
217
  data: {},
183
218
  }));
219
+
220
+ instanceMock.patch = patch;
221
+
222
+ const UsersAPI = (await import('../users.js')).default;
223
+
184
224
  await UsersAPI.patch(input);
185
- expect(mock).toHaveBeenCalledWith(url, body);
225
+ expect(patch).toHaveBeenCalledWith(url, body);
186
226
  });
187
227
 
188
228
  it('correctly computes "delete" method api call', async () => {
@@ -191,10 +231,16 @@ describe('UsersAPI', () => {
191
231
  };
192
232
 
193
233
  const url = '/users/1?permanent=true';
194
- const mock = axios.delete.mockImplementationOnce(() => Promise.resolve({
234
+
235
+ const _delete = vi.fn(() => Promise.resolve({
195
236
  data: {},
196
237
  }));
238
+
239
+ instanceMock.delete = _delete;
240
+
241
+ const UsersAPI = (await import('../users.js')).default;
242
+
197
243
  await UsersAPI.delete(input);
198
- expect(mock).toHaveBeenCalledWith(url);
244
+ expect(_delete).toHaveBeenCalledWith(url);
199
245
  });
200
246
  });
@@ -146,6 +146,8 @@ function close() {
146
146
  </script>
147
147
 
148
148
  <style lang="scss" scoped>
149
+ @import '../../../src/css/main.scss';
150
+
149
151
  .wt-app-navigator {
150
152
  position: relative;
151
153
  z-index: var(--wt-app-header-content-z-index);
@@ -133,6 +133,8 @@ export default {
133
133
  </script>
134
134
 
135
135
  <style lang="scss" scoped>
136
+ @import '../../../src/css/main.scss';
137
+
136
138
  .wt-header-actions {
137
139
  position: relative;
138
140
  z-index: var(--wt-app-header-content-z-index);
@@ -112,6 +112,8 @@ export default {
112
112
  </style>
113
113
 
114
114
  <style lang="scss" scoped>
115
+ @import '../../../src/css/main.scss';
116
+
115
117
  .wt-button {
116
118
  @extend %typo-button;
117
119
  position: relative;
@@ -112,8 +112,8 @@ export default {
112
112
  <style lang="scss" scoped>
113
113
 
114
114
  .wt-checkbox {
115
- @include width-fit-content;
116
115
  box-sizing: border-box;
116
+ width: fit-content;
117
117
 
118
118
  .wt-label {
119
119
  cursor: pointer;
@@ -1,3 +1,5 @@
1
+ @import '../../../src/css/main.scss';
2
+
1
3
  .wt-chip {
2
4
  @extend %typo-body-2;
3
5
 
@@ -81,6 +81,7 @@ function handleOptionClick({ option, index, hide }) {
81
81
  </style>
82
82
 
83
83
  <style lang="scss" scoped>
84
+ @import '../../../src/css/main.scss';
84
85
 
85
86
  .wt-context-menu {
86
87
  line-height: 0;
@@ -132,6 +132,7 @@ const isDateTime = props.mode === 'datetime';
132
132
  </style>
133
133
 
134
134
  <style lang="scss" scoped>
135
+ @import '../../../src/css/main.scss';
135
136
 
136
137
  .wt-datepicker :deep(.dp__main) {
137
138
  .dp__input_icon {
@@ -69,6 +69,8 @@ const dummy = computed(() => props.darkMode ? dummyDark : dummyLight);
69
69
  </style>
70
70
 
71
71
  <style lang="scss" scoped>
72
+ @import '../../../src/css/main.scss';
73
+
72
74
  .wt-dummy {
73
75
  display: flex;
74
76
  align-items: center;
@@ -84,6 +84,8 @@ watch(() => props.collapsed, (newVal) => {
84
84
  </style>
85
85
 
86
86
  <style lang="scss" scoped>
87
+ @import '../../../src/css/main.scss';
88
+
87
89
  .wt-expansion-panel {
88
90
  display: flex;
89
91
  flex-direction: column;
@@ -25,6 +25,7 @@ export default {
25
25
  </style>
26
26
 
27
27
  <style lang="scss" scoped>
28
+ @import '../../../src/css/main.scss';
28
29
 
29
30
  .wt-headline {
30
31
  display: flex;
@@ -48,6 +48,8 @@ const props = defineProps({
48
48
  </style>
49
49
 
50
50
  <style lang="scss" scoped>
51
+ @import '../../../src/css/main.scss';
52
+
51
53
  .wt-headline-nav {
52
54
  display: flex;
53
55
  align-items: center;
@@ -52,6 +52,7 @@ export default {
52
52
  </style>
53
53
 
54
54
  <style lang="scss" scoped>
55
+ @import '../../../src/css/main.scss';
55
56
 
56
57
  .wt-indicator {
57
58
  display: flex;
@@ -272,6 +272,7 @@ onMounted(() => {
272
272
  </style>
273
273
 
274
274
  <style lang="scss" scoped>
275
+ @import '../../../src/css/main.scss';
275
276
 
276
277
  .wt-input {
277
278
  cursor: text;
@@ -26,6 +26,7 @@ export default {
26
26
  </style>
27
27
 
28
28
  <style lang="scss" scoped>
29
+ @import '../../../src/css/main.scss';
29
30
 
30
31
  .wt-input-info {
31
32
  @extend %typo-caption;
@@ -39,6 +39,7 @@ export default {
39
39
  </style>
40
40
 
41
41
  <style lang="scss" scoped>
42
+ @import '../../../src/css/main.scss';
42
43
 
43
44
  .wt-label {
44
45
  @extend %typo-body-1;
@@ -197,11 +197,11 @@ export default {
197
197
  </style>
198
198
 
199
199
  <style lang="scss" scoped>
200
+ @import '../../../src/css/main.scss';
200
201
 
201
202
  .wt-navigation-bar__menu-btn {
202
203
  display: block;
203
204
  width: fit-content;
204
- width: -moz-fit-content;
205
205
  }
206
206
 
207
207
  .wt-navigation-bar__nav {
@@ -55,14 +55,15 @@ export default {
55
55
  </style>
56
56
 
57
57
  <style lang="scss" scoped>
58
+ @import '../../../src/css/main.scss';
58
59
 
59
60
  .wt-notification {
60
61
  @extend %typo-body-1;
61
- @include width-fit-content;
62
-
63
62
  position: relative;
63
+
64
64
  display: flex;
65
65
  align-items: flex-start;
66
+ width: fit-content;
66
67
  min-width: var(--wt-notification-min-width);
67
68
  max-width: var(--wt-notification-max-width);
68
69
  padding: var(--wt-notification-padding);
@@ -52,6 +52,7 @@ export default {
52
52
  </style>
53
53
 
54
54
  <style lang="scss" scoped>
55
+ @import '../../../src/css/main.scss';
55
56
 
56
57
  .wt-notifications-bar {
57
58
  @extend %wt-scrollbar;
@@ -112,6 +112,7 @@ export default {
112
112
  </style>
113
113
 
114
114
  <style lang="scss" scoped>
115
+ @import '../../../src/css/main.scss';
115
116
 
116
117
  .wt-pagination {
117
118
  @extend %typo-body-1;
@@ -160,6 +160,8 @@ export default {
160
160
  </style>
161
161
 
162
162
  <style lang="scss" scoped>
163
+ @import '../../../src/css/main.scss';
164
+
163
165
  .wt-player {
164
166
  @extend %typo-body-2;
165
167
  bottom: 60px;
@@ -92,6 +92,7 @@ export default {
92
92
  </style>
93
93
 
94
94
  <style lang="scss" scoped>
95
+ @import '../../../src/css/main.scss';
95
96
 
96
97
  .wt-popup {
97
98
  position: fixed;
@@ -96,8 +96,8 @@ export default {
96
96
 
97
97
  /* Customize the label (the container) */
98
98
  .wt-radio {
99
- @include width-fit-content;
100
99
  box-sizing: border-box;
100
+ width: fit-content;
101
101
 
102
102
  .wt-label {
103
103
  cursor: pointer;
@@ -151,6 +151,7 @@ function handleKeyup(event) {
151
151
  </style>
152
152
 
153
153
  <style lang="scss" scoped>
154
+ @import '../../../src/css/main.scss';
154
155
 
155
156
  .wt-search-bar {
156
157
  cursor: text;
@@ -1,3 +1,4 @@
1
+ @import '../../../src/css/main.scss';
1
2
 
2
3
  .multiselect :deep {
3
4
  position: relative;
@@ -84,9 +84,9 @@ export default {
84
84
  <style lang="scss" scoped>
85
85
 
86
86
  .wt-switcher {
87
- @include width-fit-content;
88
87
  position: relative;
89
88
  box-sizing: border-box;
89
+ width: fit-content;
90
90
 
91
91
  .wt-label {
92
92
  cursor: pointer;
@@ -254,6 +254,7 @@ export default {
254
254
  </style>
255
255
 
256
256
  <style lang="scss" scoped>
257
+ @import '../../../src/css/main.scss';
257
258
 
258
259
  .wt-table {
259
260
  @extend %wt-scrollbar;
@@ -130,6 +130,8 @@ export default {
130
130
  </script>
131
131
 
132
132
  <style lang="scss" scoped>
133
+ @import '../../../src/css/main.scss';
134
+
133
135
  $list-height: 400px;
134
136
  $list-width-sm: calc(500px - var(--spacing-xl)); // all popup width - (paddings + overflow-padding)
135
137
  $list-width-md: calc(800px - var(--spacing-xl)); // all popup width - (paddings + overflow-padding)
@@ -88,6 +88,7 @@ export default {
88
88
  </style>
89
89
 
90
90
  <style lang="scss" scoped>
91
+ @import '../../../src/css/main.scss';
91
92
 
92
93
  .wt-tabs {
93
94
  position: relative;
@@ -149,6 +149,7 @@ export default {
149
149
  </style>
150
150
 
151
151
  <style lang="scss" scoped>
152
+ @import '../../../src/css/main.scss';
152
153
 
153
154
  .wt-textarea {
154
155
  cursor: text;
@@ -111,6 +111,8 @@ export default {
111
111
  </script>
112
112
 
113
113
  <style lang="scss" scoped>
114
+ @import '../../../src/css/main.scss';
115
+
114
116
  .wt-time-input {
115
117
  display: inline-block;
116
118
  cursor: text;
@@ -112,6 +112,7 @@ onMounted(() => {
112
112
  </style>
113
113
 
114
114
  <style lang="scss" scoped>
115
+ @import '../../../src/css/main.scss';
115
116
 
116
117
  .wt-tooltip {
117
118
  display: inline-block;
package/src/css/main.scss CHANGED
@@ -11,7 +11,6 @@
11
11
 
12
12
  @mixin width-fit-content {
13
13
  width: fit-content;
14
- width: -moz-fit-content;
15
14
  }
16
15
 
17
16
  html {
@@ -7,7 +7,7 @@ const QueueType = Object.freeze({
7
7
  PREDICTIVE_DIALER: 5,
8
8
  CHAT_INBOUND_QUEUE: 6,
9
9
  INBOUND_JOB_QUEUE: 7,
10
- OUTBOUND_JOB_QUEUE: 8
10
+ OUTBOUND_JOB_QUEUE: 8,
11
11
  });
12
12
 
13
13
  export default QueueType;
@@ -6,7 +6,8 @@ import {
6
6
  EngineRoutingSchemaType,
7
7
  } from 'webitel-sdk';
8
8
  import QueueType from '../../enums/QueueType/QueueType.enum.js';
9
- import AdminSections from '../../enums/WebitelApplications/AdminSections.enum.js';
9
+ import AdminSections
10
+ from '../../enums/WebitelApplications/AdminSections.enum.js';
10
11
  import AuditorSections
11
12
  from '../../enums/WebitelApplications/AuditorSections.enum.js';
12
13
  import CrmSections from '../../enums/WebitelApplications/CrmSections.enum.js';
@@ -6,7 +6,8 @@ import {
6
6
  EngineRoutingSchemaType,
7
7
  } from 'webitel-sdk';
8
8
  import QueueType from '../../enums/QueueType/QueueType.enum.js';
9
- import AdminSections from '../../enums/WebitelApplications/AdminSections.enum.js';
9
+ import AdminSections
10
+ from '../../enums/WebitelApplications/AdminSections.enum.js';
10
11
  import AuditorSections
11
12
  from '../../enums/WebitelApplications/AuditorSections.enum.js';
12
13
  import SupervisorSections
@@ -6,7 +6,8 @@ import {
6
6
  EngineRoutingSchemaType,
7
7
  } from 'webitel-sdk';
8
8
  import QueueType from '../../enums/QueueType/QueueType.enum.js';
9
- import AdminSections from '../../enums/WebitelApplications/AdminSections.enum.js';
9
+ import AdminSections
10
+ from '../../enums/WebitelApplications/AdminSections.enum.js';
10
11
  import CrmSections from '../../enums/WebitelApplications/CrmSections.enum.js';
11
12
  import SupervisorSections
12
13
  from '../../enums/WebitelApplications/SupervisorSections.enum.js';
@@ -6,7 +6,8 @@ import {
6
6
  EngineRoutingSchemaType,
7
7
  } from 'webitel-sdk';
8
8
  import QueueType from '../../enums/QueueType/QueueType.enum.js';
9
- import AdminSections from '../../enums/WebitelApplications/AdminSections.enum.js';
9
+ import AdminSections
10
+ from '../../enums/WebitelApplications/AdminSections.enum.js';
10
11
  import AuditorSections
11
12
  from '../../enums/WebitelApplications/AuditorSections.enum.js';
12
13
  import CrmSections from '../../enums/WebitelApplications/CrmSections.enum.js';
@@ -6,7 +6,8 @@ import {
6
6
  EngineRoutingSchemaType,
7
7
  } from 'webitel-sdk';
8
8
  import QueueType from '../../enums/QueueType/QueueType.enum.js';
9
- import AdminSections from '../../enums/WebitelApplications/AdminSections.enum.js';
9
+ import AdminSections
10
+ from '../../enums/WebitelApplications/AdminSections.enum.js';
10
11
  import AuditorSections
11
12
  from '../../enums/WebitelApplications/AuditorSections.enum.js';
12
13
  import CrmSections from '../../enums/WebitelApplications/CrmSections.enum.js';
@@ -1,6 +1,7 @@
1
1
  import deepCopy from 'deep-copy';
2
2
  import set from 'lodash/set.js';
3
- import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule.js';
3
+ import BaseStoreModule
4
+ from '../../../store/BaseStoreModules/BaseStoreModule.js';
4
5
 
5
6
  export default class CardStoreModule extends BaseStoreModule {
6
7
  state = {
@@ -104,7 +104,7 @@ export default class FiltersStoreModule extends BaseStoreModule {
104
104
 
105
105
  return context.dispatch('EMIT', {
106
106
  event: FilterEvent.RESTORED,
107
- payload: context.getters.GET_FILTERS,
107
+ payload: context.getters.GET_FILTERS(),
108
108
  });
109
109
  },
110
110