@webitel/ui-sdk 25.4.41 → 25.4.43

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 CHANGED
@@ -1,3 +1,14 @@
1
+ ## [v25.4.42] - 2025-03-24
2
+ ### :bug: Bug Fixes
3
+ - [`632db57`](https://github.com/webitel/webitel-ui-sdk/commit/632db5753cc2cda932a6599a3a081b32e698db50) - tag filter preview locales [WTEL-6569](https://webitel.atlassian.net/browse/WTEL-6569) *(commit by [@dlohvinov](https://github.com/dlohvinov))*
4
+
5
+
6
+ ## [v25.4.41] - 2025-03-24
7
+ ### :sparkles: New Features
8
+ - [`ef5b450`](https://github.com/webitel/webitel-ui-sdk/commit/ef5b450be4452e61e3b68cf95bde258081bcee58) - remove extension on imports [WTEL-6221](https://webitel.atlassian.net/browse/WTEL-6221) *(commit by [@stanislav-kozak](https://github.com/stanislav-kozak))*
9
+ - [`69f0149`](https://github.com/webitel/webitel-ui-sdk/commit/69f01499175f48fccdde09d408e45c824b2fb6c5) - implement api for objects [WTEL-6221](https://webitel.atlassian.net/browse/WTEL-6221) *(commit by [@stanislav-kozak](https://github.com/stanislav-kozak))*
10
+
11
+
1
12
  ## [v25.4.40] - 2025-03-21
2
13
  ### :bug: Bug Fixes
3
14
  - [`3436353`](https://github.com/webitel/webitel-ui-sdk/commit/3436353d2b81e1b9d0cb6e023efaeb04ec158ab1) - rewrite cases group locale key [WTEL-6461](https://webitel.atlassian.net/browse/WTEL-6461) *(commit by [@plnnsimon](https://github.com/plnnsimon))*
@@ -1712,3 +1723,5 @@
1712
1723
  [v25.4.38]: https://github.com/webitel/webitel-ui-sdk/compare/v25.4.37...v25.4.38
1713
1724
  [v25.4.39]: https://github.com/webitel/webitel-ui-sdk/compare/v25.4.38...v25.4.39
1714
1725
  [v25.4.40]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.174...v25.4.40
1726
+ [v25.4.41]: https://github.com/webitel/webitel-ui-sdk/compare/v25.4.40...v25.4.41
1727
+ [v25.4.42]: https://github.com/webitel/webitel-ui-sdk/compare/v25.4.41...v25.4.42
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "25.4.41",
3
+ "version": "25.4.43",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -165,6 +165,7 @@ const get = async ({ itemId: id }) => {
165
165
  'emails',
166
166
  'imclients',
167
167
  'user',
168
+ 'custom',
168
169
  ];
169
170
 
170
171
  const defaultObject = {};
@@ -201,6 +202,7 @@ const fieldsToSend = [
201
202
  'managers',
202
203
  'timezones',
203
204
  'groups',
205
+ 'custom',
204
206
  ];
205
207
 
206
208
  const sanitizeManagers = (itemInstance) => {
@@ -244,7 +246,7 @@ const add = async ({ itemInstance }) => {
244
246
  sanitizeTimezones,
245
247
  sanitizeGroups,
246
248
  sanitize(fieldsToSend),
247
- camelToSnake(),
249
+ camelToSnake(['custom']),
248
250
  ]);
249
251
  try {
250
252
  const response = await contactService.createContact(item);
@@ -262,7 +264,7 @@ const update = async ({ itemInstance }) => {
262
264
  sanitizeTimezones,
263
265
  sanitizeGroups,
264
266
  sanitize(fieldsToSend),
265
- camelToSnake(),
267
+ camelToSnake(['custom']),
266
268
  ]);
267
269
  try {
268
270
  const response = await contactService.updateContact(etag, item);
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ul>
3
3
  <li
4
- v-for="(tag, index) of value"
4
+ v-for="(tag, index) of tags"
5
5
  :key="index"
6
6
  >
7
7
  {{ tag }}
@@ -10,9 +10,29 @@
10
10
  </template>
11
11
 
12
12
  <script lang="ts" setup>
13
+ import { computed } from 'vue';
14
+ import { useI18n } from 'vue-i18n';
15
+
16
+ import { TagOptions } from '../../../enums/tag-options';
17
+
13
18
  const props = defineProps<{
14
- value: number[];
19
+ value: string[];
15
20
  }>();
21
+
22
+ const { t } = useI18n();
23
+
24
+ const tags = computed(() => {
25
+ const tagLocaleMap = TagOptions.reduce((acc, option) => {
26
+ return {
27
+ ...acc,
28
+ [option.value]: option.locale,
29
+ };
30
+ }, {});
31
+
32
+ return props.value.map((tag) => {
33
+ return t(tagLocaleMap[tag]) || tag;
34
+ });
35
+ });
16
36
  </script>
17
37
 
18
38
  <style lang="scss" scoped></style>