@webitel/ui-sdk 3.2.106 → 3.2.108

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.108",
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
  }
@@ -155,50 +155,59 @@
155
155
  </a>
156
156
  </li>
157
157
 
158
+ <li
159
+ v-if="formattedApps[WebitelApplications.CRM]"
160
+ :class="{'active': formattedApps[WebitelApplications.CRM].currentApp }"
161
+ class="wt-app-navigator__card"
162
+ >
163
+ <a
164
+ :href="formattedApps[WebitelApplications.CRM].href"
165
+ :title="$t(`webitelUI.appNavigator.${[WebitelApplications.CRM]}`)"
166
+ class="wt-app-navigator__card__link"
167
+ target="_blank"
168
+ >
169
+ <img
170
+ :alt="`${[WebitelApplications.CRM]}-pic`"
171
+ class="wt-app-navigator__card__img"
172
+ src="../../../assets/components/organisms/wt-app-header/app-navigator/app-crm.svg"
173
+ >
174
+ </a>
175
+ </li>
176
+
158
177
  </ul>
159
178
  </nav>
160
179
  </transition>
161
180
  </div>
162
181
  </template>
163
182
 
164
- <script>
183
+ <script setup>
184
+ import { computed, ref } from 'vue';
165
185
  import WebitelApplications from '../../../enums/WebitelApplications/WebitelApplications.enum';
166
186
 
167
- export default {
168
- name: 'wt-app-navigator',
169
- data: () => ({
170
- WebitelApplications,
171
- isOpened: false,
172
- }),
173
-
174
- props: {
175
- currentApp: {
176
- type: String,
177
- },
178
- apps: {
179
- type: Array,
180
- default: () => [],
181
- },
187
+ const props = defineProps({
188
+ currentApp: {
189
+ type: String,
182
190
  },
183
-
184
- computed: {
185
- formattedApps() {
186
- return this.apps.reduce((apps, app) => ({
187
- ...apps,
188
- [app.name]: {
189
- ...app,
190
- currentApp: this.currentApp === app.name,
191
- },
192
- }), {});
193
- },
191
+ apps: {
192
+ type: Array,
193
+ default: () => [],
194
194
  },
195
+ });
195
196
 
196
- methods: {
197
- close() {
198
- this.isOpened = false;
199
- },
197
+ const isOpened = ref(false);
198
+
199
+ const formattedApps = computed(() => props.apps.reduce((apps, app) => ({
200
+ ...apps,
201
+ [app.name]: {
202
+ ...app,
203
+ currentApp: props.currentApp === app.name,
200
204
  },
201
- };
205
+ }), {}));
206
+
207
+ function close() {
208
+ isOpened.value = false;
209
+ }
210
+
202
211
  </script>
203
212
 
204
213
  <style lang="scss" scoped>
Binary file
@@ -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]: 'Вхідна черга',