@webitel/ui-sdk 3.2.106 → 3.2.107
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/dist/ui-sdk.common.js +43 -1
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.umd.js +43 -1
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/wt-icon-action/_internals/__tests__/WtRefreshIconAction.spec.js +9 -0
- package/src/components/atoms/wt-icon-action/_internals/wt-refresh-icon-action.vue +27 -0
- package/src/components/atoms/wt-icon-action/wt-icon-action.vue +4 -1
- package/src/locale/en/en.js +1 -0
- package/src/locale/ru/ru.js +1 -0
- package/src/locale/ua/ua.js +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
import WtRefreshIconAction from '../wt-refresh-icon-action.vue';
|
|
3
|
+
|
|
4
|
+
describe('WtRefreshIconAction', () => {
|
|
5
|
+
it('renders a component', () => {
|
|
6
|
+
const wrapper = shallowMount(WtRefreshIconAction);
|
|
7
|
+
expect(wrapper.exists()).toBe(true);
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<wt-tooltip>
|
|
3
|
+
<template v-slot:activator>
|
|
4
|
+
<wt-icon-btn
|
|
5
|
+
icon="refresh"
|
|
6
|
+
:disabled="disabled"
|
|
7
|
+
@click="emit('click')"
|
|
8
|
+
></wt-icon-btn>
|
|
9
|
+
</template>
|
|
10
|
+
{{ $t('reusable.refresh') }}
|
|
11
|
+
</wt-tooltip>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
const props = defineProps({
|
|
16
|
+
disabled: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const emit = defineEmits(['click']);
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<style scoped>
|
|
26
|
+
|
|
27
|
+
</style>
|
|
@@ -13,12 +13,13 @@ import WtEditIconAction from './_internals/wt-edit-icon-action.vue';
|
|
|
13
13
|
import WtAddIconAction from './_internals/wt-add-icon-action.vue';
|
|
14
14
|
import WtHistoryIconAction from './_internals/wt-history-icon-action.vue';
|
|
15
15
|
import WtDownloadIconAction from './_internals/wt-download-icon-action.vue';
|
|
16
|
+
import WtRefreshIconAction from './_internals/wt-refresh-icon-action.vue';
|
|
16
17
|
|
|
17
18
|
const props = defineProps({
|
|
18
19
|
action: {
|
|
19
20
|
type: String,
|
|
20
21
|
required: true,
|
|
21
|
-
options: ['delete', 'edit', 'add', 'history', 'download'],
|
|
22
|
+
options: ['delete', 'edit', 'add', 'history', 'download', 'refresh'],
|
|
22
23
|
},
|
|
23
24
|
disabled: {
|
|
24
25
|
type: Boolean,
|
|
@@ -40,6 +41,8 @@ const actionComponent = computed(() => {
|
|
|
40
41
|
return WtHistoryIconAction;
|
|
41
42
|
case 'download':
|
|
42
43
|
return WtDownloadIconAction;
|
|
44
|
+
case 'refresh':
|
|
45
|
+
return WtRefreshIconAction;
|
|
43
46
|
default:
|
|
44
47
|
return WtEditIconAction;
|
|
45
48
|
}
|
package/src/locale/en/en.js
CHANGED
|
@@ -113,6 +113,7 @@ export default {
|
|
|
113
113
|
auditor: 'Auditor | Auditors',
|
|
114
114
|
region: 'Region | Regions',
|
|
115
115
|
communicationType: 'Communication type | Communication types',
|
|
116
|
+
grantee: 'Grantee | Grantees',
|
|
116
117
|
queue: {
|
|
117
118
|
type: {
|
|
118
119
|
[QueueType.INBOUND_QUEUE]: 'Inbound queue',
|
package/src/locale/ru/ru.js
CHANGED
package/src/locale/ua/ua.js
CHANGED