@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "3.2.106",
3
+ "version": "3.2.107",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -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
  }
@@ -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',
@@ -112,6 +112,7 @@ export default {
112
112
  auditor: 'Аудитор | Аудиторы',
113
113
  region: 'Регион | Регионы',
114
114
  communicationType: 'Тип связи | Типы связи',
115
+ grantee: 'Получатель | Получатели',
115
116
  queue: {
116
117
  type: {
117
118
  [QueueType.INBOUND_QUEUE]: 'Входящая очередь',
@@ -112,6 +112,7 @@ export default {
112
112
  auditor: 'Аудитор | Аудитори',
113
113
  region: 'Регіон | Регіони',
114
114
  communicationType: 'Тип зв\'язку | Типи зв\'язку',
115
+ grantee: 'Отримувач | Отримувачі',
115
116
  queue: {
116
117
  type: {
117
118
  [QueueType.INBOUND_QUEUE]: 'Вхідна черга',