@webitel/ui-sdk 26.6.94 → 26.6.96

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 (165) hide show
  1. package/dist/{clients-Bj07uFky.js → clients-Ban2DI-G.js} +8 -7
  2. package/dist/{components-l3RJbNmv.js → components-Bim818Xf.js} +13 -8
  3. package/dist/{composables-vmCh4eqT.js → composables-CeAM_2lo.js} +12 -14
  4. package/dist/ui-sdk.css +1 -1
  5. package/dist/ui-sdk.js +605 -605
  6. package/dist/ui-sdk.umd.cjs +38 -38
  7. package/dist/useValidation-lRiKF7xV.js +39 -0
  8. package/dist/{useVidstackSrc-epUQZhkL.js → useVidstackSrc-B4mUti_c.js} +1 -1
  9. package/dist/{vidstack-C6nBVWwn-BlZqtkYB.js → vidstack-C6nBVWwn-cKiWT0KJ.js} +2 -2
  10. package/dist/{vidstack-CI5oafcm-DAV7Lilr.js → vidstack-CI5oafcm-DfWpvayJ.js} +1 -1
  11. package/dist/{vidstack-DUnfBERX2-Cl6yTfB3.js → vidstack-DUnfBERX2-BJtKHFxc.js} +1 -1
  12. package/dist/{vidstack-audio-CH4wIf0F.js → vidstack-audio-BCPraiiR.js} +1 -1
  13. package/dist/{vidstack-dash-CmlmZIFT.js → vidstack-dash-MBx5aEEA.js} +2 -2
  14. package/dist/{vidstack-hls-D1sxUvBd.js → vidstack-hls-BbZsbfaO.js} +2 -2
  15. package/dist/vidstack-video-DwlbGwN7.js +2 -0
  16. package/dist/{wt-chat-emoji-CGf8vRlv.js → wt-chat-emoji-CX65m8Dd.js} +1 -1
  17. package/dist/{wt-datepicker-D2GjAUWU.js → wt-datepicker-BP9bBbGY.js} +1 -1
  18. package/dist/{wt-display-chip-items-C3TZt4Gn.js → wt-display-chip-items-tL17x2-U.js} +1 -1
  19. package/dist/{wt-expansion-card-DvLD-TP4.js → wt-expansion-card-DET-o0Jq.js} +1 -1
  20. package/dist/{wt-galleria-DT0SOjXk.js → wt-galleria-B6kMr_xS.js} +1 -1
  21. package/dist/{wt-icon-btn-BIU9YjS8.js → wt-icon-btn-DYjjSl-C.js} +5 -2
  22. package/dist/{wt-player-_mTlxsCu.js → wt-player-Bbirdlj9.js} +1 -1
  23. package/dist/{wt-search-bar-CUxiGcoz.js → wt-search-bar-D50lqCd8.js} +1 -1
  24. package/dist/{wt-send-message-popup-CCSOL-wH.js → wt-send-message-popup-8TZWTO40.js} +2 -2
  25. package/dist/{wt-table-DS_2J5zF.js → wt-table-C39WpJH8.js} +1 -1
  26. package/dist/{wt-timepicker-Bxdc4s3_.js → wt-timepicker-CYNrvbWf.js} +1 -1
  27. package/dist/{wt-tree-table-2K7cdct7.js → wt-tree-table-umRsVKWt.js} +1 -1
  28. package/dist/{wt-type-extension-value-input-Bl8jpyTn.js → wt-type-extension-value-input-D1wNUHkh.js} +2 -2
  29. package/dist/{wt-vidstack-player-BaH2oaMr.js → wt-vidstack-player-Z3cdtFBu.js} +10 -10
  30. package/package.json +3 -2
  31. package/src/api/clients/wtTypes/_shared/utils/sortDynamicFields.ts +18 -4
  32. package/src/api/types/ApiModule.d.ts +28 -9
  33. package/src/components/_internals/composables/useGalleriaFullscreen/useGalleriaFullscreen.ts +25 -9
  34. package/src/components/_internals/composables/useSelect/useSelect.ts +3 -5
  35. package/src/components/_internals/composables/useSelect/useSelectCustomValues.ts +0 -3
  36. package/src/components/_internals/composables/useSelect/useSelectOptions.ts +7 -2
  37. package/src/components/_internals/composables/useWtTable/useWtTable.ts +1 -1
  38. package/src/components/wt-badge-new/types/WtBadge.d.ts +12 -0
  39. package/src/components/wt-badge-new/wt-badge.vue +2 -12
  40. package/src/components/wt-button/wt-button.vue +2 -1
  41. package/src/components/wt-icon-btn/wt-icon-btn.vue +1 -1
  42. package/src/components/wt-popup/wt-popup.vue +3 -1
  43. package/src/components/wt-slider/wt-slider.vue +1 -1
  44. package/src/components/wt-table/types/WtTable.d.ts +5 -1
  45. package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/components/time-group.vue +0 -2
  46. package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/playback-controls-panel.vue +0 -1
  47. package/src/components/wt-vidstack-player/components/panels/screen-sharing-controls-panel/screen-sharing-controls-panel.vue +1 -2
  48. package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +1 -9
  49. package/src/composables/index.d.ts +9 -0
  50. package/src/composables/index.ts +1 -0
  51. package/src/composables/useEventBus/useEventBus.d.ts +11 -0
  52. package/src/composables/useEventBus/useEventBus.ts +16 -0
  53. package/src/enums/BroadcastChannelName/BroadcastChannelName.d.ts +4 -0
  54. package/src/enums/BroadcastChannelName/UserSettingsBroadcastMessage.d.ts +12 -0
  55. package/src/enums/ButtonColor/ButtonColor.d.ts +11 -0
  56. package/src/enums/ButtonVariant/ButtonVariant.d.ts +6 -0
  57. package/src/enums/ChipColor/ChipColor.d.ts +11 -0
  58. package/src/enums/ComponentSize/ComponentSize.d.ts +17 -0
  59. package/src/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.d.ts +6 -0
  60. package/src/enums/CrudAction/CrudAction.d.ts +7 -0
  61. package/src/enums/DefaultWorkspaceTabSettings/DefaultWorkspaceTabSettings.d.ts +9 -0
  62. package/src/enums/EmptyCause/EmptyCause.d.ts +6 -0
  63. package/src/enums/FormatDateMode/FormatDateMode.d.ts +8 -0
  64. package/src/enums/IconColor/IconColor.d.ts +17 -0
  65. package/src/enums/LoginOptions/LoginOptions.d.ts +6 -0
  66. package/src/enums/MessageColor/MessageColor.d.ts +9 -0
  67. package/src/enums/MessageVariant/MessageVariant.d.ts +6 -0
  68. package/src/enums/MimeTypes/MimeTypes.enum.d.ts +17 -0
  69. package/src/enums/ProcessingTableColumnType/ProcessingTableColumnType.d.ts +8 -0
  70. package/src/enums/QueueType/QueueType.enum.d.ts +28 -0
  71. package/src/enums/RelativeDatetimeValue/RelativeDatetimeValue.d.ts +7 -0
  72. package/src/enums/RingtoneType/RingtoneType.d.ts +6 -0
  73. package/src/enums/SingleSignOnProvider/SingleSignOnProvider.d.ts +7 -0
  74. package/src/enums/SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings.d.ts +3 -0
  75. package/src/enums/WebitelApplications/AdminSections.d.ts +46 -0
  76. package/src/enums/WebitelApplications/AuditorSections.d.ts +4 -0
  77. package/src/enums/WebitelApplications/CrmSections.d.ts +16 -0
  78. package/src/enums/WebitelApplications/SupervisorSections.d.ts +6 -0
  79. package/src/enums/WebitelApplications/WfmSections.d.ts +6 -0
  80. package/src/enums/WebitelApplications/WtApplication.d.ts +12 -0
  81. package/src/enums/WtObject/WtObject.d.ts +63 -0
  82. package/src/enums/WtTypeExtensionFieldKind/WtTypeExtensionFieldKind.d.ts +13 -0
  83. package/src/enums/index.d.ts +38 -0
  84. package/src/install.ts +2 -1
  85. package/src/locale/en/en.js +1 -0
  86. package/src/locale/es/es.js +1 -0
  87. package/src/locale/kz/kz.js +1 -0
  88. package/src/locale/pl/pl.js +1 -0
  89. package/src/locale/ro/ro.js +1 -0
  90. package/src/locale/ru/ru.js +1 -0
  91. package/src/locale/uk/uk.js +1 -0
  92. package/src/locale/uz/uz.js +1 -0
  93. package/src/locale/vi/vi.js +1 -0
  94. package/src/mixins/validationMixin/regle/useRegleValidation.ts +4 -4
  95. package/src/mixins/validationMixin/useValidation.ts +8 -3
  96. package/src/mixins/validationMixin/vuelidate/useVuelidateValidation.ts +63 -40
  97. package/src/modules/CSVExport/composables/useCSVExport.ts +1 -1
  98. package/src/modules/CallSession/modules/ScreenSharing/screen-sharing.vue +1 -2
  99. package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/domTraversal.ts +2 -2
  100. package/src/modules/CallSession/modules/VideoCall/video-call.vue +1 -1
  101. package/src/modules/CallSession/types/index.ts +3 -3
  102. package/src/modules/UploadCsvPopup/composable/useUploadCsv.ts +1 -1
  103. package/src/modules/UploadCsvPopup/scripts/parseCSV.ts +1 -1
  104. package/src/modules/UserNotifications/maps/userNotificationConfigsMap.ts +10 -7
  105. package/src/modules/UserNotifications/stores/userNotificationsStore.ts +1 -0
  106. package/src/modules/UserNotifications/types/UserNotifications.ts +2 -1
  107. package/src/modules/Userinfo/constants/UserSettingsConstants.d.ts +1 -0
  108. package/src/scripts/__tests__/isEmpty.spec.js +1 -1
  109. package/src/scripts/downloadFile/types/downloadFile.types.ts +7 -1
  110. package/src/scripts/index.js +1 -1
  111. package/src/scripts/{isEmpty.js → isEmpty.ts} +10 -1
  112. package/src/scripts/normalizeDatetime.ts +4 -2
  113. package/src/utils/displayText.d.ts +2 -0
  114. package/src/utils/formatDate.d.ts +4 -0
  115. package/src/utils/index.d.ts +2 -0
  116. package/src/validations/config/errors/customZodErrorsHandler.ts +8 -4
  117. package/types/api/defaults/getDefaultInstance/getDefaultInstance.d.ts +1 -1
  118. package/types/components/_internals/composables/useSelect/useSelect.d.ts +2 -2
  119. package/types/components/_internals/composables/useSelect/useSelectCustomValues.d.ts +1 -4
  120. package/types/components/_internals/composables/useWtTable/useWtTable.d.ts +1 -0
  121. package/types/components/on-demand/wt-call-media-action/wt-call-media-action.vue.d.ts +2 -2
  122. package/types/components/on-demand/wt-selection-popup/wt-selection-popup.vue.d.ts +4 -4
  123. package/types/components/wt-action-bar/WtActionBarActionsOrder.d.ts +2 -2
  124. package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +17 -17
  125. package/types/components/wt-badge-new/wt-badge.vue.d.ts +3 -2
  126. package/types/components/wt-button/wt-button.vue.d.ts +2 -1
  127. package/types/components/wt-inline-add-panel/wt-inline-add-panel.vue.d.ts +3 -3
  128. package/types/components/wt-popup/wt-popup.vue.d.ts +2 -0
  129. package/types/components/wt-search-bar/wt-search-bar.vue.d.ts +2 -2
  130. package/types/components/wt-status-select/wt-status-select.vue.d.ts +2 -2
  131. package/types/components/wt-tree-table/wt-tree-table.vue.d.ts +1 -1
  132. package/types/composables/index.d.ts +1 -0
  133. package/types/composables/useEventBus/useEventBus.d.ts +11 -0
  134. package/types/locale/en/en.d.ts +1 -0
  135. package/types/locale/es/es.d.ts +1 -0
  136. package/types/locale/i18n.d.ts +9 -0
  137. package/types/locale/index.d.ts +9 -0
  138. package/types/locale/kz/kz.d.ts +1 -0
  139. package/types/locale/pl/pl.d.ts +1 -0
  140. package/types/locale/ro/ro.d.ts +1 -0
  141. package/types/locale/ru/ru.d.ts +1 -0
  142. package/types/locale/uk/uk.d.ts +1 -0
  143. package/types/locale/uz/uz.d.ts +1 -0
  144. package/types/locale/vi/vi.d.ts +1 -0
  145. package/types/mixins/validationMixin/regle/useRegleValidation.d.ts +2 -2
  146. package/types/mixins/validationMixin/useValidation.d.ts +9 -4
  147. package/types/mixins/validationMixin/validationMixin.d.ts +1 -1
  148. package/types/mixins/validationMixin/vuelidate/useVuelidateValidation.d.ts +14 -9
  149. package/types/modules/AgentPdfs/components/agent-pdfs-tab.vue.d.ts +4 -1
  150. package/types/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue.d.ts +2 -2
  151. package/types/modules/CallSession/types/index.d.ts +3 -3
  152. package/types/modules/TableComponentModule/composables/useTableEmpty.d.ts +1 -1
  153. package/types/modules/UploadCsvPopup/composable/useUploadCsv.d.ts +1 -1
  154. package/types/modules/UploadCsvPopup/scripts/parseCSV.d.ts +1 -1
  155. package/types/modules/UserNotifications/maps/userNotificationConfigsMap.d.ts +2 -2
  156. package/types/modules/UserNotifications/types/UserNotifications.d.ts +2 -1
  157. package/types/scripts/caseConverters.d.ts +1 -1
  158. package/types/scripts/downloadFile/types/downloadFile.types.d.ts +6 -1
  159. package/types/scripts/index.d.ts +1 -1
  160. package/types/scripts/isEmpty.d.ts +2 -1
  161. package/types/scripts/normalizeDatetime.d.ts +1 -1
  162. package/types/validations/config/errors/customZodErrorsHandler.d.ts +1 -1
  163. package/dist/useValidation-BedhHNX5.js +0 -37
  164. package/dist/vidstack-video-iy3-Vo1A.js +0 -2
  165. package/types/install.d.ts +0 -15
@@ -0,0 +1,39 @@
1
+ import { i as e } from "./enums-De8CDKZ1.js";
2
+ import { t } from "./vue-i18n-Db_oYfO8.js";
3
+ import { computed as n, isReactive as r, isRef as i, unref as a } from "vue";
4
+ //#region src/mixins/validationMixin/regle/useRegleValidation.ts
5
+ var o = ({ field: e }) => ({
6
+ invalid: n(() => e?.value.$error ?? null),
7
+ validationText: n(() => e?.value?.$errors?.at(0))
8
+ }), s = ({ field: e, customValidators: o }) => {
9
+ let { t: s } = t(), c = e, l = o;
10
+ r(e) && (c = n(() => a(e)), l = n(() => o));
11
+ let u = n(() => !!c && !!c.value && !!Object.keys(c.value).length), d = n(() => u.value && c?.value?.$error);
12
+ return {
13
+ isValidation: u,
14
+ invalid: d,
15
+ validationText: n(() => {
16
+ let e = "", t = c?.value;
17
+ t && u.value && d.value && (t.required?.$invalid ? e = s("validation.required") : t.numeric?.$invalid ? e = s("validation.numeric") : t.email?.$invalid ? e = s("validation.email") : t.gatewayHostValidator?.$invalid ? e = s("validation.gatewayHostValidator") : t.ipValidator?.$invalid ? e = s("validation.ipValidator") : t.macValidator?.$invalid ? e = s("validation.macValidator") : t.minValue?.$invalid ? e = s("validation.minValue", { min: t.minValue.$params.min }) : t.maxValue?.$invalid ? e = s("validation.maxValue", { max: t.maxValue.$params.max }) : t.maxLength?.$invalid ? e = s("validation.maxLength", { max: t.maxLength.$params.max }) : t.sipAccountValidator?.$invalid ? e = s("validation.sipAccountValidator") : t.minLength?.$invalid ? e = s("validation.minLength", { min: t.minLength.$params.min }) : t.url?.$invalid ? e = `${s("validation.url")}` : t.regExpValidator?.$invalid ? e = `${s("validation.regExpValidator")}` : t.sameAs?.$invalid ? e = `${s("validation.sameAs")}` : t.domainValidator?.$invalid ? e = `${s("validation.domainValidator")}` : t.decimalValidator?.$invalid ? e = `${s("validation.decimalValidator")} ${t.decimalValidator.$params.count}` : t.websocketValidator?.$invalid ? e = `${s("validation.websocketValidator")}` : t.integer?.$invalid ? e = `${s("validation.integer")}` : t.regex?.$invalid ? e = t.regex?.$message || `${s("validation.isRegExpMatched")} ${t.regex?.$params?.regex}` : t.nameAlreadyInUse?.$invalid ? e = s("validation.nameAlreadyInUse") : t.phoneNumberSymbolsValidator?.$invalid && (e = s("validation.phoneNumberSymbolsValidator")));
18
+ let n = i(l) ? l.value : void 0;
19
+ if (n) {
20
+ for (let { name: r, text: i } of n) t?.[r]?.$invalid && (e = i);
21
+ return e;
22
+ }
23
+ return e;
24
+ })
25
+ };
26
+ }, c = ({ v: t, customValidators: r, regleValidation: i }) => {
27
+ let { isValidation: a, invalid: c, validationText: l } = s({
28
+ field: t,
29
+ customValidators: r
30
+ }), { invalid: u, validationText: d } = o({ field: i }), f = n(() => !!i?.value), p = n(() => f.value || a.value), m = n(() => f.value ? u.value : c.value);
31
+ return {
32
+ isValidation: p,
33
+ invalid: m,
34
+ validationText: n(() => f.value ? d.value : l.value),
35
+ validationTextColor: n(() => m.value ? e.ERROR : e.SECONDARY)
36
+ };
37
+ };
38
+ //#endregion
39
+ export { c as t };
@@ -110,7 +110,7 @@ var W = { class: "time-group" }, G = {
110
110
  n[2] ||= c("media-time", { type: "duration" }, null, -1)
111
111
  ], 64))]));
112
112
  }
113
- }), [["__scopeId", "data-v-9611f29d"]]);
113
+ }), [["__scopeId", "data-v-fe265566"]]);
114
114
  //#endregion
115
115
  //#region src/components/wt-vidstack-player/utils/normalizeVidstackMediaSrc.ts
116
116
  function q({ src: e, type: t }) {
@@ -1,6 +1,6 @@
1
1
  import { V as e, W as t, Y as n, i as r, r as i } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
- import { d as a, m as o, p as s } from "./useVidstackSrc-epUQZhkL.js";
3
- import { n as c, t as l } from "./vidstack-CI5oafcm-DAV7Lilr.js";
2
+ import { d as a, m as o, p as s } from "./useVidstackSrc-B4mUti_c.js";
3
+ import { n as c, t as l } from "./vidstack-CI5oafcm-DfWpvayJ.js";
4
4
  import { n as u, t as d } from "./vidstack-DYPyTdYw-BzqKxwCK.js";
5
5
  //#region node_modules/vidstack/prod/chunks/vidstack-C6nBVWwn.js
6
6
  var f = class {
@@ -1,5 +1,5 @@
1
1
  import { A as e, F as t, G as n, Q as r, V as i, W as a, X as o, h as s, i as c, r as l, v as u } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
- import { b as d, i as f, o as p, v as m } from "./useVidstackSrc-epUQZhkL.js";
2
+ import { b as d, i as f, o as p, v as m } from "./useVidstackSrc-B4mUti_c.js";
3
3
  import { n as h, t as g } from "./vidstack-ijoHbXQB-DBClSWHE.js";
4
4
  import { n as _ } from "./vidstack-CZQo98ic-D3uTuzB9.js";
5
5
  //#region node_modules/vidstack/prod/chunks/vidstack-BFrlqsuF.js
@@ -1,5 +1,5 @@
1
1
  import { G as e } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
- import { c as t, i as n, r } from "./useVidstackSrc-epUQZhkL.js";
2
+ import { c as t, i as n, r } from "./useVidstackSrc-B4mUti_c.js";
3
3
  import { r as i } from "./vidstack-mvRkf9tF-CoFf7dS9.js";
4
4
  import { c as a, i as o, l as s, n as c, o as l, r as u, t as d, u as f } from "./vidstack-DATGlkSz2-BnlUxvSa.js";
5
5
  //#region node_modules/vidstack/prod/chunks/vidstack-DUnfBERX2.js
@@ -1,5 +1,5 @@
1
1
  import { Y as e } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
- import { n as t, t as n } from "./vidstack-CI5oafcm-DAV7Lilr.js";
2
+ import { n as t, t as n } from "./vidstack-CI5oafcm-DfWpvayJ.js";
3
3
  //#region node_modules/vidstack/prod/providers/vidstack-audio.js
4
4
  var r = class extends t {
5
5
  $$PROVIDER_TYPE = "AUDIO";
@@ -1,10 +1,10 @@
1
1
  import { E as e, F as t, G as n, L as r, M as i, V as a, f as o, r as s, v as c } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
- import { _ as l, f as u, r as d, u as f } from "./useVidstackSrc-epUQZhkL.js";
2
+ import { _ as l, f as u, r as d, u as f } from "./useVidstackSrc-B4mUti_c.js";
3
3
  import { i as p, r as m } from "./vidstack-mvRkf9tF-CoFf7dS9.js";
4
4
  import { n as h, t as g } from "./vidstack-ijoHbXQB-DBClSWHE.js";
5
5
  import { n as _, t as v } from "./vidstack-DYPyTdYw-BzqKxwCK.js";
6
6
  import { t as y } from "./vidstack-_E7LrUjK-DaCLs8ge.js";
7
- import { t as b } from "./vidstack-C6nBVWwn-BlZqtkYB.js";
7
+ import { t as b } from "./vidstack-C6nBVWwn-cKiWT0KJ.js";
8
8
  import { n as x } from "./vidstack-CDOoBnJL-BCwLE1fB.js";
9
9
  //#region node_modules/vidstack/prod/chunks/vidstack-cIhilC9U.js
10
10
  function S(e) {
@@ -1,10 +1,10 @@
1
1
  import { E as e, F as t, G as n, L as r, V as i, f as a, r as o, v as s } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
- import { r as c, y as l } from "./useVidstackSrc-epUQZhkL.js";
2
+ import { r as c, y as l } from "./useVidstackSrc-B4mUti_c.js";
3
3
  import { i as u, r as d } from "./vidstack-mvRkf9tF-CoFf7dS9.js";
4
4
  import { n as f, t as p } from "./vidstack-ijoHbXQB-DBClSWHE.js";
5
5
  import { n as m, t as h } from "./vidstack-DYPyTdYw-BzqKxwCK.js";
6
6
  import { t as g } from "./vidstack-_E7LrUjK-DaCLs8ge.js";
7
- import { t as _ } from "./vidstack-C6nBVWwn-BlZqtkYB.js";
7
+ import { t as _ } from "./vidstack-C6nBVWwn-cKiWT0KJ.js";
8
8
  import { n as v } from "./vidstack-CDOoBnJL-BCwLE1fB.js";
9
9
  //#region node_modules/vidstack/prod/providers/vidstack-hls.js
10
10
  var y = (e) => a(e), b = class {
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./vidstack-C6nBVWwn-cKiWT0KJ.js";
2
+ export { e as VideoProvider };
@@ -1,4 +1,4 @@
1
- import "./components-l3RJbNmv.js";
1
+ import "./components-Bim818Xf.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as t } from "./enums-De8CDKZ1.js";
4
4
  import { t as n } from "./wt-button-dC4nOW56.js";
@@ -2,7 +2,7 @@ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { d as t, f as n, l as r, r as i } from "./enums-De8CDKZ1.js";
3
3
  import { a, i as o, n as s, r as c, t as l } from "./toZonedTime-B8L5kbse.js";
4
4
  import { t as u } from "./vue-i18n-Db_oYfO8.js";
5
- import { t as d } from "./useValidation-BedhHNX5.js";
5
+ import { t as d } from "./useValidation-lRiKF7xV.js";
6
6
  import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as ee, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeModels as b, mergeProps as x, nextTick as S, normalizeProps as C, onMounted as w, onUnmounted as T, openBlock as E, renderSlot as D, resolveComponent as O, toDisplayString as k, toRefs as A, unref as j, useModel as M, useTemplateRef as N, vShow as P, withCtx as F, withDirectives as I } from "vue";
7
7
  import L from "primevue/datepicker";
8
8
  //#region node_modules/date-fns-tz/dist/esm/fromZonedTime/index.js
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components-l3RJbNmv.js";
1
+ import { C as e, i as t } from "./components-Bim818Xf.js";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { t as r } from "./displayText-CtaxzaBz.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,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { l as t } from "./enums-De8CDKZ1.js";
3
3
  import { t as n } from "./useExpansion-DVdIpoOn.js";
4
- import "./composables-vmCh4eqT.js";
4
+ import "./composables-CeAM_2lo.js";
5
5
  import { t as r } from "./wt-expand-transition-C2p9bR4j.js";
6
6
  import { createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, guardReactiveProps as c, normalizeClass as l, normalizeProps as u, openBlock as d, renderSlot as f, resolveComponent as p, toRef as m, unref as h, vShow as g, withCtx as _, withDirectives as v, withKeys as y } from "vue";
7
7
  //#region src/components/wt-expansion-card/wt-expansion-card.vue?vue&type=script&setup=true&lang.ts
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { t } from "./vue-i18n-Db_oYfO8.js";
3
- import { a as n, o as r } from "./composables-vmCh4eqT.js";
3
+ import { a as n, o as r } from "./composables-CeAM_2lo.js";
4
4
  import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, onMounted as _, onUnmounted as v, openBlock as y, ref as b, renderSlot as x, resolveComponent as S, toDisplayString as C, unref as w, useAttrs as T, useModel as E, vShow as D, watch as O, withCtx as k, withDirectives as A } from "vue";
5
5
  //#region src/modules/DeleteConfirmationPopup/composables/useDeleteConfirmationPopup.js
6
6
  var j = () => {
@@ -100,8 +100,11 @@ var x = { class: "wt-checkbox" }, S = { class: "wt-checkbox__checkmark" }, C = {
100
100
  }, [s(e, d({
101
101
  ...n.$attrs,
102
102
  class: ""
103
- }, { disabled: t.disabled }), null, 16, ["disabled"])], 34));
103
+ }, {
104
+ icon: String(n.$attrs.icon ?? ""),
105
+ disabled: t.disabled
106
+ }), null, 16, ["icon", "disabled"])], 34));
104
107
  }
105
- }), [["__scopeId", "data-v-40408333"]]);
108
+ }), [["__scopeId", "data-v-933e78e4"]]);
106
109
  //#endregion
107
110
  export { w as n, T as t };
@@ -2,7 +2,7 @@ import { t as e } from "./wt-icon-y89gRcOs.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-De8CDKZ1.js";
4
4
  import { t as r } from "./wt-button-dC4nOW56.js";
5
- import { n as i, t as a } from "./useVidstackSrc-epUQZhkL.js";
5
+ import { n as i, t as a } from "./useVidstackSrc-B4mUti_c.js";
6
6
  import { t as o } from "./wt-popover-ChCN6b1o.js";
7
7
  import { t as s } from "./wt-slider-BPzRTeYU.js";
8
8
  import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, openBlock as _, ref as v, renderList as y, resolveComponent as b, toDisplayString as x, toRefs as S, unref as C, watch as w, withCtx as T } from "vue";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { t } from "./debounce-Bp3jy7S5.js";
3
- import { t as n } from "./useValidation-BedhHNX5.js";
3
+ import { t as n } from "./useValidation-lRiKF7xV.js";
4
4
  import { computed as r, createBlock as i, createCommentVNode as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderSlot as p, resolveComponent as m, resolveDirective as h, toDisplayString as g, toRefs as _, unref as v, withCtx as y, withDirectives as b } from "vue";
5
5
  //#region src/components/wt-search-bar/wt-search-bar.vue?vue&type=script&setup=true&lang.ts
6
6
  var x = { class: "wt-search-bar__icon-controls" }, S = /*#__PURE__*/ e(/* @__PURE__ */ u({
@@ -1,5 +1,5 @@
1
- import { n as e, r as t } from "./clients-Bj07uFky.js";
2
- import { n } from "./components-l3RJbNmv.js";
1
+ import { n as e, r as t } from "./clients-Ban2DI-G.js";
2
+ import { n } from "./components-Bim818Xf.js";
3
3
  import { t as r } from "./vue-i18n-Db_oYfO8.js";
4
4
  import { createBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, inject 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";
5
5
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { t } from "./vue-i18n-Db_oYfO8.js";
3
3
  import { n, t as r } from "./sortQueryAdapters-CyYXvnDN.js";
4
- import { t as i } from "./composables-vmCh4eqT.js";
4
+ import { t as i } from "./composables-CeAM_2lo.js";
5
5
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createTextVNode as f, createVNode as p, defineComponent as m, nextTick as h, normalizeStyle as g, onMounted as _, onUnmounted as v, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveComponent as C, resolveDirective as w, toDisplayString as T, useSlots as E, useTemplateRef as D, withCtx as O, withDirectives as k, withModifiers as A } from "vue";
6
6
  //#region src/components/wt-table/wt-table.vue?vue&type=script&setup=true&lang.ts
7
7
  var j = { class: "wt-table__th__content typo-body-1-bold" }, M = { class: "wt-table__td__actions" }, N = 10, P = /*#__PURE__*/ e(/* @__PURE__ */ m({
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { l as t, r as n } from "./enums-De8CDKZ1.js";
3
3
  import { t as r } from "./vue-i18n-Db_oYfO8.js";
4
- import { t as i } from "./useValidation-BedhHNX5.js";
4
+ import { t as i } from "./useValidation-lRiKF7xV.js";
5
5
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeProps as g, openBlock as _, renderSlot as v, resolveComponent as y, toDisplayString as b, toRefs as x, unref as S, withCtx as C } from "vue";
6
6
  //#region src/components/wt-timepicker/wt-timepicker.vue?vue&type=script&setup=true&lang.ts
7
7
  var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/ e(/* @__PURE__ */ d({
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { n as t } from "./sortQueryAdapters-CyYXvnDN.js";
3
- import { n, t as r } from "./wt-icon-btn-BIU9YjS8.js";
3
+ import { n, t as r } from "./wt-icon-btn-DYjjSl-C.js";
4
4
  import { t as i } from "./useWtTable-D_PxqVHO.js";
5
5
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, normalizeStyle as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveComponent as S, toDisplayString as C, toRef as w, unref as T, withCtx as E, withModifiers as D } from "vue";
6
6
  //#region src/components/wt-tree-table-row/wt-tree-table-row.vue?vue&type=script&setup=true&lang.ts
@@ -1,5 +1,5 @@
1
- import { t as e } from "./clients-Bj07uFky.js";
2
- import { a as t, o as n, r, s as i } from "./components-l3RJbNmv.js";
1
+ import { t as e } from "./clients-Ban2DI-G.js";
2
+ import { a as t, o as n, r, s as i } from "./components-Bim818Xf.js";
3
3
  import { t as a } from "./enums-De8CDKZ1.js";
4
4
  import { t as o } from "./vue-i18n-Db_oYfO8.js";
5
5
  import { computed as s, createBlock as c, createCommentVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, unref as _, useModel as v } from "vue";
@@ -1,11 +1,11 @@
1
- import { w as e } from "./components-l3RJbNmv.js";
1
+ import { w as e } from "./components-Bim818Xf.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-De8CDKZ1.js";
4
4
  import "./wt-button-dC4nOW56.js";
5
- import { t as r } from "./wt-icon-btn-BIU9YjS8.js";
5
+ import { t as r } from "./wt-icon-btn-DYjjSl-C.js";
6
6
  import { $ as i, C as a, D as o, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, N as h, O as ee, P as te, Q as g, R as ne, S as _, U as re, V as v, W as y, X as b, Y as ie, Z as x, _ as S, a as ae, b as oe, c as se, d as ce, et as le, f as ue, g as de, h as fe, i as C, it as pe, j as me, k as he, l as w, m as ge, n as T, nt as E, o as D, ot as _e, p as O, q as k, r as A, rt as ve, t as ye, tt as be, u as xe, v as j, w as Se, y as Ce, z as we } from "./vidstack-D9mvYVIz-DesuYgKV.js";
7
7
  import { _ as M, a as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, l as Me, m as Ne, n as Pe, o as Fe, p as Ie, r as Le, s as Re, t as N, u as ze } from "./vidstack-CgfrU1hS-CNTJkyzm.js";
8
- import { _ as Be, a as Ve, c as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, n as Je, r as Ye, s as Xe, t as Ze, u as Qe, v as $e, x as et, y as tt } from "./useVidstackSrc-epUQZhkL.js";
8
+ import { _ as Be, a as Ve, c as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, n as Je, r as Ye, s as Xe, t as Ze, u as Qe, v as $e, x as et, y as tt } from "./useVidstackSrc-B4mUti_c.js";
9
9
  import { i as nt, n as rt } from "./vidstack-mvRkf9tF-CoFf7dS9.js";
10
10
  import { t as P } from "./vidstack-ijoHbXQB-DBClSWHE.js";
11
11
  import { n as it, r as F, t as at } from "./vidstack-CZQo98ic-D3uTuzB9.js";
@@ -1297,7 +1297,7 @@ var Sn = class extends pn {
1297
1297
  return "audio";
1298
1298
  }
1299
1299
  async load(e) {
1300
- return new (await (import("./vidstack-audio-CH4wIf0F.js"))).AudioProvider(this.target, e);
1300
+ return new (await (import("./vidstack-audio-BCPraiiR.js"))).AudioProvider(this.target, e);
1301
1301
  }
1302
1302
  }, wn = class {
1303
1303
  name = "video";
@@ -1309,7 +1309,7 @@ var Sn = class extends pn {
1309
1309
  return "video";
1310
1310
  }
1311
1311
  async load(e) {
1312
- return new (await (import("./vidstack-video-iy3-Vo1A.js"))).VideoProvider(this.target, e);
1312
+ return new (await (import("./vidstack-video-DwlbGwN7.js"))).VideoProvider(this.target, e);
1313
1313
  }
1314
1314
  }, Tn = class e extends wn {
1315
1315
  static supported = tt();
@@ -1318,7 +1318,7 @@ var Sn = class extends pn {
1318
1318
  return e.supported && $e(t);
1319
1319
  }
1320
1320
  async load(e) {
1321
- return new (await (import("./vidstack-hls-D1sxUvBd.js"))).HLSProvider(this.target, e);
1321
+ return new (await (import("./vidstack-hls-BbZsbfaO.js"))).HLSProvider(this.target, e);
1322
1322
  }
1323
1323
  }, En = class e extends wn {
1324
1324
  static supported = Be();
@@ -1327,7 +1327,7 @@ var Sn = class extends pn {
1327
1327
  return e.supported && We(t);
1328
1328
  }
1329
1329
  async load(e) {
1330
- return new (await (import("./vidstack-dash-CmlmZIFT.js"))).DASHProvider(this.target, e);
1330
+ return new (await (import("./vidstack-dash-MBx5aEEA.js"))).DASHProvider(this.target, e);
1331
1331
  }
1332
1332
  }, Dn = class {
1333
1333
  name = "vimeo";
@@ -1748,7 +1748,7 @@ var Sn = class extends pn {
1748
1748
  throw e.code = "CAST_NOT_AVAILABLE", e;
1749
1749
  }
1750
1750
  if (nt("https://www.gstatic.com"), !this.#b) {
1751
- let e = await import("./vidstack-DUnfBERX2-Cl6yTfB3.js");
1751
+ let e = await import("./vidstack-DUnfBERX2-BJtKHFxc.js");
1752
1752
  this.#b = new e.GoogleCastLoader();
1753
1753
  }
1754
1754
  await this.#b.prompt(this.#n), e && this.#t.queue.enqueue("media-google-cast-request", e);
@@ -7366,7 +7366,7 @@ var Bo = { class: "controls-group__actions" }, Vo = /*#__PURE__*/ t(/* @__PURE__
7366
7366
  })) : vt("", !0)
7367
7367
  ])], 2));
7368
7368
  }
7369
- }), [["__scopeId", "data-v-b860ca5f"]]), Jo = { class: "video-display-panel-wrapper" }, Yo = { class: "video-layout-content" }, Xo = { class: "video-layout-controls" }, Zo = /*#__PURE__*/ t(/* @__PURE__ */ xt({
7369
+ }), [["__scopeId", "data-v-b3831d88"]]), Jo = { class: "video-display-panel-wrapper" }, Yo = { class: "video-layout-content" }, Xo = { class: "video-layout-controls" }, Zo = /*#__PURE__*/ t(/* @__PURE__ */ xt({
7370
7370
  __name: "video-layout",
7371
7371
  props: {
7372
7372
  title: {},
@@ -7456,7 +7456,7 @@ var Bo = { class: "controls-group__actions" }, Vo = /*#__PURE__*/ t(/* @__PURE__
7456
7456
  _: 1
7457
7457
  }));
7458
7458
  }
7459
- }), [["__scopeId", "data-v-9d70f28d"]]), rs = [
7459
+ }), [["__scopeId", "data-v-a6b8fc46"]]), rs = [
7460
7460
  "autoplay",
7461
7461
  "muted",
7462
7462
  "src"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.6.94",
3
+ "version": "26.6.96",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -22,7 +22,8 @@
22
22
  "utils:i": "npm install",
23
23
  "prepare": "husky || true",
24
24
  "test:unit:ci": "npm run test:coverage",
25
- "typecheck:ci": "true"
25
+ "typecheck": "vue-tsc --noEmit -p ./tsconfig.json",
26
+ "typecheck:ci": "npm run typecheck"
26
27
  },
27
28
  "workspaces": [
28
29
  "./packages/api-services",
@@ -1,15 +1,29 @@
1
1
  import deepCopy from 'deep-copy';
2
- import type { WebitelProtoDataStruct } from 'webitel-sdk';
2
+ import type {
3
+ WebitelProtoDataField,
4
+ WebitelProtoDataStruct,
5
+ } from 'webitel-sdk';
6
+
7
+ /**
8
+ * TODO(types): `position` is returned by the API to order dynamic fields but is
9
+ * absent from the generated `WebitelProtoDataField` type. Extend locally until
10
+ * the generated SDK type includes it.
11
+ */
12
+ type PositionedDataField = WebitelProtoDataField & {
13
+ position?: number;
14
+ };
3
15
 
4
16
  export const sortDynamicFields = (
5
17
  item: WebitelProtoDataStruct,
6
18
  ): WebitelProtoDataStruct => {
7
- const unSortableFields = item.fields.filter((field) => !field.position);
19
+ const sourceFields = (item.fields ?? []) as PositionedDataField[];
20
+
21
+ const unSortableFields = sourceFields.filter((field) => !field.position);
8
22
 
9
- const sortableFields = deepCopy(item.fields)
23
+ const sortableFields = deepCopy(sourceFields)
10
24
  .filter((field) => field.position)
11
25
  .sort((a, b) => {
12
- return a.position - b.position;
26
+ return (a.position ?? 0) - (b.position ?? 0);
13
27
  });
14
28
 
15
29
  const fields = [
@@ -10,15 +10,34 @@ export interface ApiModule<Entity> {
10
10
  items?: Entity[];
11
11
  next?: boolean;
12
12
  }>;
13
- get?: ({ itemId }: { itemId: Id }) => Promise<Entity>;
14
- add?: ({ itemInstance }: { itemInstance?: Entity }) => Promise<Entity>;
15
- update?: ({
16
- itemId,
17
- itemInstance,
18
- }: {
19
- itemId: Id;
13
+ get?: (params: {
14
+ itemId?: Id;
15
+ /** preferred over itemId */
16
+ id?: Id;
17
+ parentId?: Id | null;
18
+ }) => Promise<Entity>;
19
+ add?: (params: {
20
+ itemInstance?: Entity;
21
+ parentId?: Id | null;
22
+ }) => Promise<Entity>;
23
+ update?: (params: {
24
+ itemId?: Id | null;
25
+ id?: Id;
20
26
  itemInstance?: Entity;
27
+ parentId?: Id | null;
28
+ etag?: string;
29
+ }) => Promise<Entity>;
30
+ patch?: (params: {
31
+ id?: Id;
32
+ itemId?: Id | null;
33
+ changes?: Partial<Entity>;
34
+ parentId?: Id | null;
35
+ etag?: string;
21
36
  }) => Promise<Entity>;
22
- patch?: ({ id, changes }: { id?: Id; changes?: Entity }) => Promise<Entity>;
23
- delete?: ({ itemId }: { itemId: Id }) => Promise<void>;
37
+ delete?: (params: {
38
+ itemId?: Id;
39
+ id?: Id;
40
+ parentId?: Id | null;
41
+ etag?: string;
42
+ }) => Promise<void>;
24
43
  }
@@ -1,5 +1,18 @@
1
1
  import { onMounted, onUnmounted, ref } from 'vue';
2
2
 
3
+ /** Vendor-prefixed fullscreen APIs not present on the standard DOM lib types. */
4
+ interface FullscreenElement extends Element {
5
+ mozRequestFullScreen?: () => Promise<void>;
6
+ webkitRequestFullscreen?: () => Promise<void>;
7
+ msRequestFullscreen?: () => Promise<void>;
8
+ }
9
+
10
+ interface FullscreenDocument extends Document {
11
+ mozCancelFullScreen?: () => Promise<void>;
12
+ webkitExitFullscreen?: () => Promise<void>;
13
+ msExitFullscreen?: () => Promise<void>;
14
+ }
15
+
3
16
  export const useGalleriaFullscreen = () => {
4
17
  const fullScreen = ref(false);
5
18
  const toggleFullScreen = () => {
@@ -13,7 +26,9 @@ export const useGalleriaFullscreen = () => {
13
26
  fullScreen.value = !fullScreen.value;
14
27
  };
15
28
  const openFullScreen = () => {
16
- const element = document.querySelector('.p-galleria');
29
+ const element = document.querySelector<Element>(
30
+ '.p-galleria',
31
+ ) as FullscreenElement;
17
32
  if (element.requestFullscreen) {
18
33
  element.requestFullscreen();
19
34
  } else if (element.mozRequestFullScreen) {
@@ -28,14 +43,15 @@ export const useGalleriaFullscreen = () => {
28
43
  }
29
44
  };
30
45
  const closeFullScreen = () => {
31
- if (document.exitFullscreen) {
32
- document.exitFullscreen();
33
- } else if (document.mozCancelFullScreen) {
34
- document.mozCancelFullScreen();
35
- } else if (document.webkitExitFullscreen) {
36
- document.webkitExitFullscreen();
37
- } else if (document.msExitFullscreen) {
38
- document.msExitFullscreen();
46
+ const doc = document as FullscreenDocument;
47
+ if (doc.exitFullscreen) {
48
+ doc.exitFullscreen();
49
+ } else if (doc.mozCancelFullScreen) {
50
+ doc.mozCancelFullScreen();
51
+ } else if (doc.webkitExitFullscreen) {
52
+ doc.webkitExitFullscreen();
53
+ } else if (doc.msExitFullscreen) {
54
+ doc.msExitFullscreen();
39
55
  }
40
56
  };
41
57
  const bindDocumentListeners = () => {
@@ -11,14 +11,15 @@ export const useSelect = ({
11
11
  optionValue,
12
12
  dataKey,
13
13
  allowCustomValues,
14
- manualCustomValues = false,
14
+ // accepted for API compatibility; custom-value manual handling is currently disabled
15
+ manualCustomValues: _manualCustomValues = false,
15
16
  filterInput,
16
17
  selectRef,
17
18
  searchMethod,
18
19
  selectId,
19
20
  isSingle,
20
21
  strictApiOptions = undefined,
21
- emit = () => {},
22
+ emit = (_event: string, ..._args: unknown[]) => {},
22
23
  }) => {
23
24
  const {
24
25
  filterText,
@@ -71,16 +72,13 @@ export const useSelect = ({
71
72
  selected,
72
73
  filteredOptions,
73
74
  options,
74
- optionValue,
75
75
  dataKey,
76
76
  filterText,
77
77
  filterOptions: filterOptionsAndScrollToTop,
78
78
  updateSelectedOptionsCache,
79
79
  selectRef,
80
80
  allowCustomValues,
81
- manualCustomValues,
82
81
  isSingle,
83
- emit,
84
82
  });
85
83
 
86
84
  onMounted(async () => {
@@ -5,16 +5,13 @@ export const useSelectCustomValues = ({
5
5
  selected,
6
6
  filteredOptions,
7
7
  options,
8
- optionValue,
9
8
  dataKey,
10
9
  filterText,
11
10
  filterOptions,
12
11
  updateSelectedOptionsCache,
13
12
  selectRef,
14
13
  allowCustomValues,
15
- manualCustomValues,
16
14
  isSingle,
17
- emit,
18
15
  }) => {
19
16
  const makeCustomOption = (text: string) => {
20
17
  const sample = options.value.length
@@ -75,7 +75,12 @@ export const useSelectOptions = ({
75
75
  if (optionLabel.value && option[optionLabel.value])
76
76
  return option[optionLabel.value];
77
77
  if (option.locale) {
78
- if (Array.isArray(option.locale)) return t(...option.locale);
78
+ if (Array.isArray(option.locale))
79
+ return t(
80
+ ...(option.locale as [
81
+ string,
82
+ ]),
83
+ );
79
84
  return t(option.locale);
80
85
  }
81
86
  return option[defaultOptionLabel] || option;
@@ -213,7 +218,7 @@ export const useSelectOptions = ({
213
218
 
214
219
  watch(
215
220
  () => selected.value,
216
- (newVal, oldVal) => {
221
+ (newVal) => {
217
222
  updateSelectedOptionsCache();
218
223
  addSelectedValueToList(newVal);
219
224
  },
@@ -1,7 +1,7 @@
1
1
  import { computed, unref } from 'vue';
2
2
  import { useI18n } from 'vue-i18n';
3
3
 
4
- import type { WtTableHeader } from '../../wt-table/types/WtTable';
4
+ import type { WtTableHeader } from '../../../wt-table/types/WtTable';
5
5
 
6
6
  export const useWtTable = ({ headers }) => {
7
7
  const { t } = useI18n();
@@ -0,0 +1,12 @@
1
+ export type BadgeSeverity =
2
+ | 'secondary'
3
+ | 'info'
4
+ | 'success'
5
+ | 'warn'
6
+ | 'error'
7
+ | 'online'
8
+ | 'dnd'
9
+ | 'busy'
10
+ | 'pause'
11
+ | 'onlineCc'
12
+ | 'offline';
@@ -13,21 +13,11 @@
13
13
 
14
14
  <script setup lang="ts">
15
15
  import { ComponentSize } from '../../enums';
16
+ import type { BadgeSeverity } from './types/WtBadge';
16
17
 
17
18
  interface Props {
18
19
  value: string | number;
19
- severity?:
20
- | 'secondary'
21
- | 'info'
22
- | 'success'
23
- | 'warn'
24
- | 'error'
25
- | 'online'
26
- | 'dnd'
27
- | 'busy'
28
- | 'pause'
29
- | 'onlineCc'
30
- | 'offline';
20
+ severity?: BadgeSeverity;
31
21
  size?: ComponentSize;
32
22
  }
33
23
 
@@ -57,6 +57,7 @@ import type { ButtonProps } from 'primevue';
57
57
  import { computed, inject, ref, toRef, useAttrs, watch } from 'vue';
58
58
 
59
59
  import { ButtonColor, ButtonVariant, ComponentSize } from '../../enums';
60
+ import type { BadgeSeverity } from '../wt-badge-new/types/WtBadge';
60
61
  import WtBadge from '../wt-badge-new/wt-badge.vue';
61
62
  import WtIcon from '../wt-icon/wt-icon.vue';
62
63
 
@@ -82,7 +83,7 @@ interface WtButtonProps extends /* @vue-ignore */ ButtonProps {
82
83
  icon?: string;
83
84
  iconPrefix?: string;
84
85
  badge?: string;
85
- badgeSeverity?: string;
86
+ badgeSeverity?: BadgeSeverity;
86
87
  badgeAbsolutePosition?: boolean;
87
88
  variant?: ButtonVariant;
88
89
  }
@@ -3,7 +3,7 @@
3
3
  :class="{ 'wt-icon-btn--disabled': disabled }" class="wt-icon-btn" type="button"
4
4
  @click="emit('click', $event)" @mousedown="emit('mousedown', $event)">
5
5
  <!-- prevent icon-btn classes to fall to wt-icon -->
6
- <wt-icon :disabled="disabled" v-bind="{ ...$attrs, class: '' }" />
6
+ <wt-icon :icon="String($attrs.icon ?? '')" :disabled="disabled" v-bind="{ ...$attrs, class: '' }" />
7
7
  </button>
8
8
  </template>
9
9