@webitel/ui-sdk 26.8.136 → 26.8.138

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.
Files changed (45) hide show
  1. package/dist/{clients-C7QyOTHe.js → clients-CKBvYoKf.js} +1 -1
  2. package/dist/{components-Ce88bKcR.js → components-DirfTDyC.js} +3 -3
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.js +1 -17
  5. package/dist/ui-sdk.umd.cjs +7 -15
  6. package/dist/{wt-chat-emoji-DtTLoivU.js → wt-chat-emoji-D7UDa2Xn.js} +1 -1
  7. package/dist/{wt-display-chip-items-xqv8mCRj.js → wt-display-chip-items-Dqwb5b-S.js} +1 -1
  8. package/dist/{wt-send-message-popup-DyK3nhp5.js → wt-send-message-popup-CQ0-OKQE.js} +2 -2
  9. package/dist/{wt-type-extension-value-input-C18U_aE9.js → wt-type-extension-value-input-DPFFWC81.js} +20 -20
  10. package/dist/{wt-vidstack-player-BFiQRCBc.js → wt-vidstack-player-DB7M5VzI.js} +1 -1
  11. package/package.json +4 -4
  12. package/src/components/wt-galleria/wt-galleria.vue +6 -1
  13. package/src/locale/en/en.js +2 -2
  14. package/src/locale/es/es.js +2 -2
  15. package/src/locale/kz/kz.js +2 -2
  16. package/src/locale/pl/pl.js +2 -2
  17. package/src/locale/ro/ro.js +2 -2
  18. package/src/locale/ru/ru.js +2 -2
  19. package/src/locale/uk/uk.js +2 -2
  20. package/src/locale/uz/uz.js +2 -2
  21. package/src/locale/vi/vi.js +2 -2
  22. package/src/modules/SaveCopy/composables/useSaveCopy.ts +29 -0
  23. package/src/modules/SaveCopy/index.ts +1 -0
  24. package/src/plugins/primevue/theme/components/galleria/galleria.js +0 -8
  25. package/types/.tsbuildinfo +1 -1
  26. package/types/locale/en/en.d.ts +2 -2
  27. package/types/locale/es/es.d.ts +4 -5
  28. package/types/locale/i18n.d.ts +18 -18
  29. package/types/locale/index.d.ts +18 -18
  30. package/types/locale/kz/kz.d.ts +4 -5
  31. package/types/locale/pl/pl.d.ts +4 -5
  32. package/types/locale/ro/ro.d.ts +4 -5
  33. package/types/locale/ru/ru.d.ts +4 -5
  34. package/types/locale/uk/uk.d.ts +4 -5
  35. package/types/locale/uz/uz.d.ts +4 -5
  36. package/types/locale/vi/vi.d.ts +4 -5
  37. package/types/modules/SaveCopy/composables/useSaveCopy.d.ts +7 -0
  38. package/types/modules/SaveCopy/index.d.ts +1 -0
  39. package/types/plugins/primevue/theme/components/galleria/galleria.d.ts +0 -8
  40. package/src/modules/SaveCopyPopup/components/save-copy-popup.vue +0 -73
  41. package/src/modules/SaveCopyPopup/composables/useSaveCopyPopup.ts +0 -37
  42. package/src/modules/SaveCopyPopup/index.ts +0 -2
  43. package/types/modules/SaveCopyPopup/components/save-copy-popup.vue.d.ts +0 -14
  44. package/types/modules/SaveCopyPopup/composables/useSaveCopyPopup.d.ts +0 -10
  45. package/types/modules/SaveCopyPopup/index.d.ts +0 -2
@@ -1,4 +1,4 @@
1
- import "./components-Ce88bKcR.js";
1
+ import "./components-DirfTDyC.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { E as t, h as n } from "./enums-CLu6QDOc.js";
4
4
  import { t as r } from "./wt-button-COHcpvhY.js";
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components-Ce88bKcR.js";
1
+ import { C as e, i as t } from "./components-DirfTDyC.js";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { t as r } from "./utils-DVfDViCh.js";
4
4
  import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
@@ -1,6 +1,6 @@
1
- import { n as e } from "./components-Ce88bKcR.js";
1
+ import { n as e } from "./components-DirfTDyC.js";
2
2
  import "./convertDuration-y5tRHrgE.js";
3
- import { i as t, r as n } from "./clients-C7QyOTHe.js";
3
+ import { i as t, r as n } from "./clients-CKBvYoKf.js";
4
4
  import { n as r } from "./vue-i18n-VBiROMZ4.js";
5
5
  import { n as i } from "./useEventBus-B-ZeklLu.js";
6
6
  import { createBlock as a, createTextVNode as o, createVNode as s, defineComponent as c, mergeProps as l, onMounted as u, openBlock as d, ref as f, resolveComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
@@ -1,8 +1,8 @@
1
1
  import { a as e, c as t, i as n, n as r, r as i, s as a, t as o } from "./dist-EXdgfpvN.js";
2
2
  import { n as s } from "./genClient-CvWlQ0TZ.js";
3
3
  import { a as c } from "./caseConverters-DGri4uJo.js";
4
- import { a as l, o as u, r as d, s as f } from "./components-Ce88bKcR.js";
5
- import { a as p, n as m, t as h } from "./clients-C7QyOTHe.js";
4
+ import { a as l, o as u, r as d, s as f } from "./components-DirfTDyC.js";
5
+ import { a as p, n as m, t as h } from "./clients-CKBvYoKf.js";
6
6
  import { S as g, _, a as v, c as y, f as b, i as x, n as S, o as C, p as w, r as T, s as E, t as D, x as O } from "./enums-CLu6QDOc.js";
7
7
  import { n as ee, t as te } from "./vue-i18n-VBiROMZ4.js";
8
8
  import "./wt-toast-CrvaF-UL.js";
@@ -8875,9 +8875,9 @@ var J = /* @__PURE__ */ function(e) {
8875
8875
  tableAskingAlert: "Are you sure you want\n to delete {count} record? | Are you sure you want\n to delete {count} records?",
8876
8876
  deleteAll: "ALL"
8877
8877
  },
8878
- saveCopyPopup: {
8878
+ saveCopy: {
8879
8879
  title: "Save a copy",
8880
- name: "Copy name"
8880
+ successNotification: "Copy saved!"
8881
8881
  },
8882
8882
  dummy: { text: "There are no records yet" },
8883
8883
  empty: { text: {
@@ -9587,9 +9587,9 @@ var J = /* @__PURE__ */ function(e) {
9587
9587
  tableAskingAlert: "¿Estás seguro de que quieres\n eliminar {count} registro? | ¿Estás seguro de que quieres\n eliminar {count} registros?",
9588
9588
  deleteAll: "TODO"
9589
9589
  },
9590
- saveCopyPopup: {
9590
+ saveCopy: {
9591
9591
  title: "Guardar una copia",
9592
- name: "Nombre de la copia"
9592
+ successNotification: "¡Copia guardada!"
9593
9593
  },
9594
9594
  dummy: { text: "Aún no hay registros" },
9595
9595
  empty: { text: {
@@ -10299,9 +10299,9 @@ var J = /* @__PURE__ */ function(e) {
10299
10299
  tableAskingAlert: "Сіз шынымен {count} жазбаны жойғыңыз келетініне сенімдісіз бе? | Сіз шынымен {count} жазбаны жойғыңыз келетініне сенімдісіз бе?",
10300
10300
  deleteAll: "БАРЛЫҒЫ"
10301
10301
  },
10302
- saveCopyPopup: {
10302
+ saveCopy: {
10303
10303
  title: "Көшірмені сақтау",
10304
- name: "Көшірме атауы"
10304
+ successNotification: "Көшірме сақталды!"
10305
10305
  },
10306
10306
  dummy: { text: "Әзірге жазбалар жоқ" },
10307
10307
  empty: { text: {
@@ -11011,9 +11011,9 @@ var J = /* @__PURE__ */ function(e) {
11011
11011
  tableAskingAlert: "Czy na pewno chcesz\n usunąć {count} rekord? | Czy na pewno chcesz\n usunąć {count} rekordy?",
11012
11012
  deleteAll: "WSZYSTKO"
11013
11013
  },
11014
- saveCopyPopup: {
11014
+ saveCopy: {
11015
11015
  title: "Zapisz kopię",
11016
- name: "Nazwa kopii"
11016
+ successNotification: "Kopia zapisana!"
11017
11017
  },
11018
11018
  dummy: { text: "Nie ma jeszcze żadnych rekordów" },
11019
11019
  empty: { text: {
@@ -11723,9 +11723,9 @@ var J = /* @__PURE__ */ function(e) {
11723
11723
  tableAskingAlert: "Sigur doriți să ștergeți {count} înregistrare? | Sigur doriți să ștergeți {count} înregistrări?",
11724
11724
  deleteAll: "TOATE"
11725
11725
  },
11726
- saveCopyPopup: {
11726
+ saveCopy: {
11727
11727
  title: "Salvează o copie",
11728
- name: "Numele copiei"
11728
+ successNotification: "Copie salvată!"
11729
11729
  },
11730
11730
  dummy: { text: "Nu există încă înregistrări" },
11731
11731
  empty: { text: {
@@ -12443,9 +12443,9 @@ te({
12443
12443
  tableAskingAlert: "Вы уверенны, что хотите\n удалить {count} запись? | Вы уверенны, что хотите\n удалить {count} записей?",
12444
12444
  deleteAll: "ВСЕ"
12445
12445
  },
12446
- saveCopyPopup: {
12446
+ saveCopy: {
12447
12447
  title: "Сохранить копию",
12448
- name: "Имя копии"
12448
+ successNotification: "Копия сохранена!"
12449
12449
  },
12450
12450
  dummy: { text: "Записи в разделе еще не созданы" },
12451
12451
  empty: { text: {
@@ -13156,9 +13156,9 @@ te({
13156
13156
  tableAskingAlert: "Ви впевнені, що хочете\n видалити {count} запис? | Ви впевнені, що хочете\n видалити {count} записів?",
13157
13157
  deleteAll: "ВСІ"
13158
13158
  },
13159
- saveCopyPopup: {
13159
+ saveCopy: {
13160
13160
  title: "Зберегти копію",
13161
- name: "Ім'я копії"
13161
+ successNotification: "Копію збережено!"
13162
13162
  },
13163
13163
  dummy: { text: "Записи у розділі ще не створені" },
13164
13164
  empty: { text: {
@@ -13872,9 +13872,9 @@ te({
13872
13872
  tableAskingAlert: "{count} ta yozuvni o'chirishni xohlaysizmi? | {count} ta yozuvni o'chirishni xohlaysizmi?",
13873
13873
  deleteAll: "HAMMASI"
13874
13874
  },
13875
- saveCopyPopup: {
13875
+ saveCopy: {
13876
13876
  title: "Nusxasini saqlash",
13877
- name: "Nusxa nomi"
13877
+ successNotification: "Nusxa saqlandi!"
13878
13878
  },
13879
13879
  dummy: { text: "Hali yozuvlar yo'q" },
13880
13880
  empty: { text: {
@@ -14585,9 +14585,9 @@ te({
14585
14585
  tableAskingAlert: "Bạn có chắc chắn muốn\n xóa {count} bản ghi? | Bạn có chắc chắn muốn\n xóa {count} bản ghi?",
14586
14586
  deleteAll: "TẤT CẢ"
14587
14587
  },
14588
- saveCopyPopup: {
14588
+ saveCopy: {
14589
14589
  title: "Lưu bản sao",
14590
- name: "Tên bản sao"
14590
+ successNotification: "Đã lưu bản sao!"
14591
14591
  },
14592
14592
  dummy: { text: "Chưa có bản ghi nào" },
14593
14593
  empty: { text: {
@@ -1,4 +1,4 @@
1
- import { w as e } from "./components-Ce88bKcR.js";
1
+ import { w as e } from "./components-DirfTDyC.js";
2
2
  import "./convertDuration-y5tRHrgE.js";
3
3
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
4
4
  import { h as n } from "./enums-CLu6QDOc.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.8.136",
3
+ "version": "26.8.138",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -448,9 +448,9 @@
448
448
  "types": "./types/modules/UploadCsvPopup/index.d.ts",
449
449
  "import": "./src/modules/UploadCsvPopup/index.ts"
450
450
  },
451
- "./modules/SaveCopyPopup": {
452
- "types": "./types/modules/SaveCopyPopup/index.d.ts",
453
- "import": "./src/modules/SaveCopyPopup/index.ts"
451
+ "./modules/SaveCopy": {
452
+ "types": "./types/modules/SaveCopy/index.d.ts",
453
+ "import": "./src/modules/SaveCopy/index.ts"
454
454
  },
455
455
  "./modules/TableVariableColumnSelect": {
456
456
  "types": "./types/modules/TableVariableColumnSelect/index.d.ts",
@@ -273,10 +273,15 @@ display: flex;
273
273
  gap: 0.5rem;
274
274
  }
275
275
 
276
- .wt-galleria__footer svg {
276
+ .wt-galleria__footer .wt-icon {
277
277
  cursor: pointer;
278
278
  }
279
279
 
280
+ .wt-galleria__footer .wt-icon--disabled {
281
+ cursor: default;
282
+ pointer-events: none;
283
+ }
284
+
280
285
  .wt-galleria__footer-actions {
281
286
  margin-left: auto;
282
287
  display: flex;
@@ -667,9 +667,9 @@ export default deepmerge(
667
667
  'Are you sure you want\n to delete {count} record? | Are you sure you want\n to delete {count} records?',
668
668
  deleteAll: 'ALL',
669
669
  },
670
- saveCopyPopup: {
670
+ saveCopy: {
671
671
  title: 'Save a copy',
672
- name: 'Copy name',
672
+ successNotification: 'Copy saved!',
673
673
  },
674
674
  dummy: {
675
675
  text: 'There are no records yet',
@@ -656,9 +656,9 @@ export default {
656
656
  '¿Estás seguro de que quieres\n eliminar {count} registro? | ¿Estás seguro de que quieres\n eliminar {count} registros?',
657
657
  deleteAll: 'TODO',
658
658
  },
659
- saveCopyPopup: {
659
+ saveCopy: {
660
660
  title: 'Guardar una copia',
661
- name: 'Nombre de la copia',
661
+ successNotification: '¡Copia guardada!',
662
662
  },
663
663
  dummy: {
664
664
  text: 'Aún no hay registros',
@@ -657,9 +657,9 @@ export default {
657
657
  'Сіз шынымен {count} жазбаны жойғыңыз келетініне сенімдісіз бе? | Сіз шынымен {count} жазбаны жойғыңыз келетініне сенімдісіз бе?',
658
658
  deleteAll: 'БАРЛЫҒЫ',
659
659
  },
660
- saveCopyPopup: {
660
+ saveCopy: {
661
661
  title: 'Көшірмені сақтау',
662
- name: 'Көшірме атауы',
662
+ successNotification: 'Көшірме сақталды!',
663
663
  },
664
664
  dummy: {
665
665
  text: 'Әзірге жазбалар жоқ',
@@ -657,9 +657,9 @@ export default {
657
657
  'Czy na pewno chcesz\n usunąć {count} rekord? | Czy na pewno chcesz\n usunąć {count} rekordy?',
658
658
  deleteAll: 'WSZYSTKO',
659
659
  },
660
- saveCopyPopup: {
660
+ saveCopy: {
661
661
  title: 'Zapisz kopię',
662
- name: 'Nazwa kopii',
662
+ successNotification: 'Kopia zapisana!',
663
663
  },
664
664
  dummy: {
665
665
  text: 'Nie ma jeszcze żadnych rekordów',
@@ -662,9 +662,9 @@ export default {
662
662
  'Sigur doriți să ștergeți {count} înregistrare? | Sigur doriți să ștergeți {count} înregistrări?',
663
663
  deleteAll: 'TOATE',
664
664
  },
665
- saveCopyPopup: {
665
+ saveCopy: {
666
666
  title: 'Salvează o copie',
667
- name: 'Numele copiei',
667
+ successNotification: 'Copie salvată!',
668
668
  },
669
669
  dummy: {
670
670
  text: 'Nu există încă înregistrări',
@@ -652,9 +652,9 @@ export default {
652
652
  'Вы уверенны, что хотите\n удалить {count} запись? | Вы уверенны, что хотите\n удалить {count} записей?',
653
653
  deleteAll: 'ВСЕ',
654
654
  },
655
- saveCopyPopup: {
655
+ saveCopy: {
656
656
  title: 'Сохранить копию',
657
- name: 'Имя копии',
657
+ successNotification: 'Копия сохранена!',
658
658
  },
659
659
  dummy: {
660
660
  text: 'Записи в разделе еще не созданы',
@@ -650,9 +650,9 @@ export default {
650
650
  'Ви впевнені, що хочете\n видалити {count} запис? | Ви впевнені, що хочете\n видалити {count} записів?',
651
651
  deleteAll: 'ВСІ',
652
652
  },
653
- saveCopyPopup: {
653
+ saveCopy: {
654
654
  title: 'Зберегти копію',
655
- name: "Ім'я копії",
655
+ successNotification: 'Копію збережено!',
656
656
  },
657
657
  dummy: {
658
658
  text: 'Записи у розділі ще не створені',
@@ -662,9 +662,9 @@ export default {
662
662
  "{count} ta yozuvni o'chirishni xohlaysizmi? | {count} ta yozuvni o'chirishni xohlaysizmi?",
663
663
  deleteAll: 'HAMMASI',
664
664
  },
665
- saveCopyPopup: {
665
+ saveCopy: {
666
666
  title: 'Nusxasini saqlash',
667
- name: 'Nusxa nomi',
667
+ successNotification: 'Nusxa saqlandi!',
668
668
  },
669
669
  dummy: {
670
670
  text: "Hali yozuvlar yo'q",
@@ -660,9 +660,9 @@ export default {
660
660
  'Bạn có chắc chắn muốn\n xóa {count} bản ghi? | Bạn có chắc chắn muốn\n xóa {count} bản ghi?',
661
661
  deleteAll: 'TẤT CẢ',
662
662
  },
663
- saveCopyPopup: {
663
+ saveCopy: {
664
664
  title: 'Lưu bản sao',
665
- name: 'Tên bản sao',
665
+ successNotification: 'Đã lưu bản sao!',
666
666
  },
667
667
  dummy: {
668
668
  text: 'Chưa có bản ghi nào',
@@ -0,0 +1,29 @@
1
+ import { useI18n } from 'vue-i18n';
2
+
3
+ import { useEventBus } from '../../../composables';
4
+ import { eventBus as defaultEventBus } from '../../../scripts';
5
+
6
+ export const useSaveCopy = (onSave: () => unknown) => {
7
+ const { t } = useI18n();
8
+ const eventBus = useEventBus() ?? defaultEventBus;
9
+
10
+ async function saveCopy() {
11
+ await onSave();
12
+ eventBus.$emit('notification', {
13
+ type: 'success',
14
+ text: t('webitelUI.saveCopy.successNotification'),
15
+ });
16
+ }
17
+
18
+ const saveOptions = [
19
+ {
20
+ text: t('webitelUI.saveCopy.title'),
21
+ callback: saveCopy,
22
+ },
23
+ ];
24
+
25
+ return {
26
+ saveOptions,
27
+ saveCopy,
28
+ };
29
+ };
@@ -0,0 +1 @@
1
+ export { useSaveCopy } from './composables/useSaveCopy';
@@ -57,14 +57,6 @@ const galleria = {
57
57
  .wt-galleria__footer-info {
58
58
  color: ${dt('galleria.footer.color')};
59
59
  }
60
-
61
- .wt-galleria__footer svg {
62
- fill: ${dt('galleria.footerIcon.color')};
63
- }
64
-
65
- .wt-galleria__footer svg:hover {
66
- fill: ${dt('galleria.footerIcon.hoverColor')};
67
- }
68
60
  `,
69
61
  };
70
62