@webitel/ui-sdk 2.0.17 → 2.0.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "2.0.17",
3
+ "version": "2.0.21",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -52,6 +52,7 @@ export default {
52
52
  iColor() {
53
53
  if (this.iconColor) return this.iconColor;
54
54
  if (this.disabled) return 'secondary-50';
55
+ if (this.color === 'secondary') return null; // dont change icon color
55
56
  return this.color;
56
57
  },
57
58
  },
@@ -35,6 +35,7 @@ const AdminSections = Object.freeze({
35
35
  STORAGE: 'storage', // scope: storage_profile
36
36
  COGNITIVE_PROFILES: 'cognitive-profiles', // scope: cognitive_profile
37
37
  EMAIL_PROFILES: 'email-profiles', // scope: email_profile
38
+ IMPORT_CSV: 'import-csv',
38
39
 
39
40
  // PERMISSIONS
40
41
  OBJECTS: 'objects', // permissions: add
@@ -55,6 +55,7 @@ export default {
55
55
  time: 'Time',
56
56
  channel: 'Channel',
57
57
  file: 'File',
58
+ logout: 'Logout',
58
59
  },
59
60
  // date-related texts
60
61
  date: {
@@ -155,6 +156,7 @@ export default {
155
156
  [AdminSections.STORAGE]: 'Storage',
156
157
  [AdminSections.COGNITIVE_PROFILES]: 'Cognitive profiles',
157
158
  [AdminSections.EMAIL_PROFILES]: 'Email profiles',
159
+ [AdminSections.IMPORT_CSV]: 'Import data from CSV file',
158
160
  [AdminSections.MEDIA]: 'Media',
159
161
  [AdminSections.BLACKLIST]: 'Call lists',
160
162
  [AdminSections.ROLES]: 'Roles',
@@ -54,6 +54,7 @@ export default {
54
54
  time: 'Время',
55
55
  channel: 'Канал',
56
56
  file: 'Файл',
57
+ logout: 'Выйти',
57
58
  },
58
59
  // date-related texts
59
60
  date: {
@@ -154,6 +155,7 @@ export default {
154
155
  [AdminSections.STORAGE]: 'Хранилища',
155
156
  [AdminSections.COGNITIVE_PROFILES]: 'Языковые профили',
156
157
  [AdminSections.EMAIL_PROFILES]: 'Email профили',
158
+ [AdminSections.IMPORT_CSV]: 'Импорт данных из CSV файла',
157
159
  [AdminSections.ROLES]: 'Роли',
158
160
  [AdminSections.OBJECTS]: 'Разделы',
159
161
  },
@@ -54,6 +54,7 @@ export default {
54
54
  time: 'Час',
55
55
  channel: 'Канал',
56
56
  file: 'Файл',
57
+ logout: 'Вийти',
57
58
  },
58
59
  // date-related texts
59
60
  date: {
@@ -154,6 +155,7 @@ export default {
154
155
  [AdminSections.STORAGE]: 'Сховища',
155
156
  [AdminSections.COGNITIVE_PROFILES]: 'Мовні профілі',
156
157
  [AdminSections.EMAIL_PROFILES]: 'Email профілі',
158
+ [AdminSections.IMPORT_CSV]: 'Імпорт даних з CSV файлу',
157
159
  [AdminSections.ROLES]: 'Ролі',
158
160
  [AdminSections.OBJECTS]: 'Розділи',
159
161
  },
@@ -34,7 +34,7 @@ export default {
34
34
  ...exportParams || routeQuery,
35
35
  size: 5000,
36
36
  };
37
- if (this.isAnySelected) params.ids = this.selectedIds;
37
+ if (this.isAnySelected) params.id = this.selectedIds;
38
38
 
39
39
  try {
40
40
  await this.CSVExport.export(params);
@@ -26,7 +26,7 @@ export default class ApiFilterSchema extends BaseFilterSchema {
26
26
  }
27
27
 
28
28
  fetchSelected(idsList) {
29
- const params = { size: idsList.length, ids: idsList };
29
+ const params = { size: idsList.length, id: idsList };
30
30
  return this.API(params);
31
31
  }
32
32
  }
@@ -17,7 +17,7 @@ describe('Api Filter Schema', () => {
17
17
  });
18
18
  it('calls API getList() method at fetchSelected()', () => {
19
19
  const idsList = [1];
20
- const expectedParams = { size: 1, ids: [1] };
20
+ const expectedParams = { size: 1, id: [1] };
21
21
  const filter = new ApiFilterSchema({ API: APIMock });
22
22
  filter.fetchSelected(idsList);
23
23
  expect(APIMock).toHaveBeenCalledWith(expectedParams);
@@ -132,6 +132,10 @@ const applicationsAccess = (value = true) => ({
132
132
  _enabled: value,
133
133
  _locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.EMAIL_PROFILES}`,
134
134
  },
135
+ [AdminSections.IMPORT_CSV]: {
136
+ _enabled: value,
137
+ _locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.IMPORT_CSV}`,
138
+ },
135
139
  [AdminSections.ROLES]: {
136
140
  _enabled: value,
137
141
  _locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.ROLES}`,