@webitel/ui-sdk 24.10.55 → 24.10.57
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.css +1 -1
- package/dist/ui-sdk.js +2487 -2479
- package/dist/ui-sdk.umd.cjs +15 -15
- package/package.json +2 -1
- package/src/components/wt-action-bar/WtActionBarActionsOrder.js +4 -1
- package/src/components/wt-action-bar/wt-action-bar.vue +6 -2
- package/src/install.js +27 -0
- package/src/locale/en/en.js +17 -0
- package/src/locale/ru/ru.js +17 -0
- package/src/locale/ua/ua.js +17 -0
- package/src/modules/TableComponentModule/composables/useTableEmpty.js +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "24.10.
|
|
3
|
+
"version": "24.10.57",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"src/plugins/*",
|
|
99
99
|
"src/store/*",
|
|
100
100
|
"src/tests/*",
|
|
101
|
+
"src/install.js",
|
|
101
102
|
"CHANGELOG.md"
|
|
102
103
|
],
|
|
103
104
|
"dependencies": {
|
|
@@ -64,8 +64,12 @@ const props = defineProps({
|
|
|
64
64
|
// validator: (v) => ['sm', 'md', 'lg'].includes(v),
|
|
65
65
|
},
|
|
66
66
|
});
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
const emit = defineEmits([
|
|
68
|
+
/**
|
|
69
|
+
* click:IconAction
|
|
70
|
+
*/
|
|
71
|
+
...Object.values(IconAction).map((action) => `click:${action}`)
|
|
72
|
+
]);
|
|
69
73
|
|
|
70
74
|
const shownActions = computed(() => {
|
|
71
75
|
const actionsOrder = props.mode === 'card' ? cardActionsOrder : tableActionsOrder;
|
package/src/install.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import './css/main.scss';
|
|
2
|
+
import 'vue-multiselect/dist/vue-multiselect.css';
|
|
3
|
+
import generateInstance from './api/axios/generateInstance.js';
|
|
4
|
+
import Components from './components/index.js'; // init all components
|
|
5
|
+
import Directives from './directives/index.js'; // init all directives
|
|
6
|
+
import './css/styleguide/fonts/_fonts.scss';
|
|
7
|
+
import './assets/icons/sprite/index.js';
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
install(app, { eventBus, router, globals = {} }) {
|
|
11
|
+
Object.keys(Directives).forEach((name) => {
|
|
12
|
+
app.directive(name, Directives[name]);
|
|
13
|
+
});
|
|
14
|
+
Object.keys(Components).forEach((name) => {
|
|
15
|
+
app.component(name, Components[name]);
|
|
16
|
+
});
|
|
17
|
+
// Vue.prototype.$webitelUI = {
|
|
18
|
+
// // locale: this.$i18n.locale,
|
|
19
|
+
// };
|
|
20
|
+
Object.keys(globals).forEach((globalKey) => {
|
|
21
|
+
app.provide(globalKey, globals[globalKey]);
|
|
22
|
+
});
|
|
23
|
+
app.provide('$eventBus', eventBus);
|
|
24
|
+
if (router) app.use(router);
|
|
25
|
+
},
|
|
26
|
+
generateInstance,
|
|
27
|
+
};
|
package/src/locale/en/en.js
CHANGED
|
@@ -391,6 +391,23 @@ export default {
|
|
|
391
391
|
dummy: {
|
|
392
392
|
text: 'There are no records yet',
|
|
393
393
|
},
|
|
394
|
+
empty: {
|
|
395
|
+
filters: {
|
|
396
|
+
headline: '',
|
|
397
|
+
title: '',
|
|
398
|
+
text: 'No results for the filters',
|
|
399
|
+
},
|
|
400
|
+
error: {
|
|
401
|
+
headline: '',
|
|
402
|
+
title: '',
|
|
403
|
+
text: '',
|
|
404
|
+
},
|
|
405
|
+
empty: {
|
|
406
|
+
headline: '',
|
|
407
|
+
title: '',
|
|
408
|
+
text: 'No results were found',
|
|
409
|
+
},
|
|
410
|
+
},
|
|
394
411
|
agentStatusSelect: {
|
|
395
412
|
pauseCausePopup: {
|
|
396
413
|
title: 'Select a pause cause',
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -389,6 +389,23 @@ export default {
|
|
|
389
389
|
dummy: {
|
|
390
390
|
text: 'Записи в разделе еще не созданы',
|
|
391
391
|
},
|
|
392
|
+
empty: {
|
|
393
|
+
filters: {
|
|
394
|
+
headline: '',
|
|
395
|
+
title: '',
|
|
396
|
+
text: 'Нет результатов по фильтрам',
|
|
397
|
+
},
|
|
398
|
+
error: {
|
|
399
|
+
headline: '',
|
|
400
|
+
title: '',
|
|
401
|
+
text: '',
|
|
402
|
+
},
|
|
403
|
+
empty: {
|
|
404
|
+
headline: '',
|
|
405
|
+
title: '',
|
|
406
|
+
text: 'Поиск не дал результата',
|
|
407
|
+
},
|
|
408
|
+
},
|
|
392
409
|
agentStatusSelect: {
|
|
393
410
|
pauseCausePopup: {
|
|
394
411
|
title: 'Выберите причину паузы',
|
package/src/locale/ua/ua.js
CHANGED
|
@@ -389,6 +389,23 @@ export default {
|
|
|
389
389
|
dummy: {
|
|
390
390
|
text: 'Записи у розділі ще не створені',
|
|
391
391
|
},
|
|
392
|
+
empty: {
|
|
393
|
+
filters: {
|
|
394
|
+
headline: '',
|
|
395
|
+
title: '',
|
|
396
|
+
text: 'Немає результатів за фільтрами',
|
|
397
|
+
},
|
|
398
|
+
error: {
|
|
399
|
+
headline: '',
|
|
400
|
+
title: '',
|
|
401
|
+
text: '',
|
|
402
|
+
},
|
|
403
|
+
empty: {
|
|
404
|
+
headline: '',
|
|
405
|
+
title: '',
|
|
406
|
+
text: 'Пошук не дав результату',
|
|
407
|
+
},
|
|
408
|
+
},
|
|
392
409
|
agentStatusSelect: {
|
|
393
410
|
pauseCausePopup: {
|
|
394
411
|
title: 'Виберіть причину паузи',
|
|
@@ -27,19 +27,19 @@ export const useTableEmpty = ({ dataList, filters, error, isLoading }, overrides
|
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
headline: {
|
|
30
|
-
filters: t(''),
|
|
31
|
-
error: t(''),
|
|
32
|
-
empty: t(''),
|
|
30
|
+
filters: t('webitelUI.empty.filters.headline'),
|
|
31
|
+
error: t('webitelUI.empty.error.headline'),
|
|
32
|
+
empty: t('webitelUI.empty.empty.headline'),
|
|
33
33
|
},
|
|
34
34
|
title: {
|
|
35
|
-
filters: t(''),
|
|
36
|
-
error: t(''),
|
|
37
|
-
empty: t(''),
|
|
35
|
+
filters: t('webitelUI.empty.filters.title'),
|
|
36
|
+
error: t('webitelUI.empty.error.title'),
|
|
37
|
+
empty: t('webitelUI.empty.empty.title'),
|
|
38
38
|
},
|
|
39
39
|
text: {
|
|
40
|
-
filters: t('
|
|
41
|
-
error: t(''),
|
|
42
|
-
empty: t(''),
|
|
40
|
+
filters: t('webitelUI.empty.filters.text'),
|
|
41
|
+
error: t('webitelUI.empty.error.text'),
|
|
42
|
+
empty: t('webitelUI.empty.empty.text'),
|
|
43
43
|
},
|
|
44
44
|
primaryActionText: {
|
|
45
45
|
filters: t(''),
|