@webitel/ui-sdk 26.6.95 → 26.6.97

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 (154) hide show
  1. package/dist/{clients-Bj07uFky.js → clients-Ban2DI-G.js} +8 -7
  2. package/dist/{components-l3RJbNmv.js → components-CSWXogKF.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 +382 -382
  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-Zfe96hoz.js} +1 -1
  17. package/dist/{wt-datepicker-D2GjAUWU.js → wt-datepicker-BtjegGDk.js} +175 -92
  18. package/dist/{wt-display-chip-items-C3TZt4Gn.js → wt-display-chip-items-YauywYzZ.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-DV1i1Q52.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-CpYbzjDU.js} +2 -2
  29. package/dist/{wt-vidstack-player-BaH2oaMr.js → wt-vidstack-player-CC6dwrnv.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-datepicker/_internals/composables/useAutoSeparator.ts +96 -0
  42. package/src/components/wt-datepicker/_internals/composables/useDatepicker.ts +78 -0
  43. package/src/components/wt-datepicker/_internals/composables/usePreventZeroPad.ts +10 -24
  44. package/src/components/wt-datepicker/_internals/composables/useStrictInput.ts +61 -0
  45. package/src/components/wt-datepicker/wt-datepicker.vue +4 -8
  46. package/src/components/wt-icon-btn/wt-icon-btn.vue +1 -1
  47. package/src/components/wt-popup/wt-popup.vue +3 -1
  48. package/src/components/wt-slider/wt-slider.vue +1 -1
  49. package/src/components/wt-table/types/WtTable.d.ts +5 -1
  50. package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/components/time-group.vue +0 -2
  51. package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/playback-controls-panel.vue +0 -1
  52. package/src/components/wt-vidstack-player/components/panels/screen-sharing-controls-panel/screen-sharing-controls-panel.vue +1 -2
  53. package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +1 -9
  54. package/src/composables/index.d.ts +9 -0
  55. package/src/composables/index.ts +1 -0
  56. package/src/composables/useEventBus/useEventBus.d.ts +11 -0
  57. package/src/composables/useEventBus/useEventBus.ts +16 -0
  58. package/src/enums/BroadcastChannelName/BroadcastChannelName.d.ts +5 -0
  59. package/src/enums/BroadcastChannelName/UserSettingsBroadcastMessage.d.ts +12 -0
  60. package/src/enums/ButtonColor/ButtonColor.d.ts +11 -0
  61. package/src/enums/ButtonVariant/ButtonVariant.d.ts +6 -0
  62. package/src/enums/ChipColor/ChipColor.d.ts +11 -0
  63. package/src/enums/ComponentSize/ComponentSize.d.ts +17 -0
  64. package/src/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.d.ts +7 -0
  65. package/src/enums/CrudAction/CrudAction.d.ts +7 -0
  66. package/src/enums/DefaultWorkspaceTabSettings/DefaultWorkspaceTabSettings.d.ts +10 -0
  67. package/src/enums/EmptyCause/EmptyCause.d.ts +6 -0
  68. package/src/enums/FormatDateMode/FormatDateMode.d.ts +9 -0
  69. package/src/enums/IconColor/IconColor.d.ts +17 -0
  70. package/src/enums/LoginOptions/LoginOptions.d.ts +6 -0
  71. package/src/enums/MessageColor/MessageColor.d.ts +9 -0
  72. package/src/enums/MessageVariant/MessageVariant.d.ts +6 -0
  73. package/src/enums/MimeTypes/MimeTypes.enum.d.ts +17 -0
  74. package/src/enums/ProcessingTableColumnType/ProcessingTableColumnType.d.ts +9 -0
  75. package/src/enums/QueueType/QueueType.enum.d.ts +28 -0
  76. package/src/enums/RelativeDatetimeValue/RelativeDatetimeValue.d.ts +8 -0
  77. package/src/enums/RingtoneType/RingtoneType.d.ts +6 -0
  78. package/src/enums/SingleSignOnProvider/SingleSignOnProvider.d.ts +8 -0
  79. package/src/enums/SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings.d.ts +7 -0
  80. package/src/enums/WebitelApplications/AdminSections.d.ts +46 -0
  81. package/src/enums/WebitelApplications/AuditorSections.d.ts +5 -0
  82. package/src/enums/WebitelApplications/CrmSections.d.ts +16 -0
  83. package/src/enums/WebitelApplications/SupervisorSections.d.ts +7 -0
  84. package/src/enums/WebitelApplications/WfmSections.d.ts +6 -0
  85. package/src/enums/WebitelApplications/WtApplication.d.ts +12 -0
  86. package/src/enums/WtObject/WtObject.d.ts +63 -0
  87. package/src/enums/WtTypeExtensionFieldKind/WtTypeExtensionFieldKind.d.ts +14 -0
  88. package/src/enums/index.d.ts +88 -0
  89. package/src/install.ts +2 -1
  90. package/src/mixins/validationMixin/regle/useRegleValidation.ts +4 -4
  91. package/src/mixins/validationMixin/useValidation.ts +8 -3
  92. package/src/mixins/validationMixin/vuelidate/useVuelidateValidation.ts +63 -40
  93. package/src/modules/CSVExport/composables/useCSVExport.ts +1 -1
  94. package/src/modules/CallSession/modules/ScreenSharing/screen-sharing.vue +1 -2
  95. package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/domTraversal.ts +2 -2
  96. package/src/modules/CallSession/modules/VideoCall/video-call.vue +1 -1
  97. package/src/modules/CallSession/types/index.ts +3 -3
  98. package/src/modules/UploadCsvPopup/composable/useUploadCsv.ts +1 -1
  99. package/src/modules/UploadCsvPopup/scripts/parseCSV.ts +1 -1
  100. package/src/modules/UserNotifications/maps/userNotificationConfigsMap.ts +10 -7
  101. package/src/modules/UserNotifications/stores/userNotificationsStore.ts +1 -0
  102. package/src/modules/UserNotifications/types/UserNotifications.ts +2 -1
  103. package/src/modules/Userinfo/constants/UserSettingsConstants.d.ts +1 -0
  104. package/src/scripts/__tests__/isEmpty.spec.js +1 -1
  105. package/src/scripts/downloadFile/types/downloadFile.types.ts +7 -1
  106. package/src/scripts/index.js +1 -1
  107. package/src/scripts/{isEmpty.js → isEmpty.ts} +10 -1
  108. package/src/scripts/normalizeDatetime.ts +4 -2
  109. package/src/utils/displayText.d.ts +2 -0
  110. package/src/utils/formatDate.d.ts +10 -0
  111. package/src/utils/index.d.ts +2 -0
  112. package/src/validations/config/errors/customZodErrorsHandler.ts +8 -4
  113. package/types/api/defaults/getDefaultInstance/getDefaultInstance.d.ts +1 -1
  114. package/types/components/_internals/composables/useSelect/useSelect.d.ts +2 -2
  115. package/types/components/_internals/composables/useSelect/useSelectCustomValues.d.ts +1 -4
  116. package/types/components/_internals/composables/useWtTable/useWtTable.d.ts +1 -0
  117. package/types/components/on-demand/wt-call-media-action/wt-call-media-action.vue.d.ts +2 -2
  118. package/types/components/on-demand/wt-selection-popup/wt-selection-popup.vue.d.ts +4 -4
  119. package/types/components/wt-action-bar/WtActionBarActionsOrder.d.ts +2 -2
  120. package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +17 -17
  121. package/types/components/wt-badge-new/wt-badge.vue.d.ts +3 -2
  122. package/types/components/wt-button/wt-button.vue.d.ts +2 -1
  123. package/types/components/wt-datepicker/_internals/composables/useAutoSeparator.d.ts +17 -0
  124. package/types/components/wt-datepicker/_internals/composables/useDatepicker.d.ts +19 -0
  125. package/types/components/wt-datepicker/_internals/composables/usePreventZeroPad.d.ts +9 -5
  126. package/types/components/wt-datepicker/_internals/composables/useStrictInput.d.ts +17 -0
  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/mixins/validationMixin/regle/useRegleValidation.d.ts +2 -2
  135. package/types/mixins/validationMixin/useValidation.d.ts +9 -4
  136. package/types/mixins/validationMixin/validationMixin.d.ts +1 -1
  137. package/types/mixins/validationMixin/vuelidate/useVuelidateValidation.d.ts +14 -9
  138. package/types/modules/AgentPdfs/components/agent-pdfs-tab.vue.d.ts +4 -1
  139. package/types/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue.d.ts +2 -2
  140. package/types/modules/CallSession/types/index.d.ts +3 -3
  141. package/types/modules/TableComponentModule/composables/useTableEmpty.d.ts +1 -1
  142. package/types/modules/UploadCsvPopup/composable/useUploadCsv.d.ts +1 -1
  143. package/types/modules/UploadCsvPopup/scripts/parseCSV.d.ts +1 -1
  144. package/types/modules/UserNotifications/maps/userNotificationConfigsMap.d.ts +2 -2
  145. package/types/modules/UserNotifications/types/UserNotifications.d.ts +2 -1
  146. package/types/scripts/caseConverters.d.ts +1 -1
  147. package/types/scripts/downloadFile/types/downloadFile.types.d.ts +6 -1
  148. package/types/scripts/index.d.ts +1 -1
  149. package/types/scripts/isEmpty.d.ts +2 -1
  150. package/types/scripts/normalizeDatetime.d.ts +1 -1
  151. package/types/validations/config/errors/customZodErrorsHandler.d.ts +1 -1
  152. package/dist/useValidation-BedhHNX5.js +0 -37
  153. package/dist/vidstack-video-iy3-Vo1A.js +0 -2
  154. package/types/install.d.ts +0 -15
@@ -4,7 +4,7 @@ import type { z } from 'zod/v4';
4
4
  import { isEmpty } from '../../../scripts';
5
5
 
6
6
  export const customZodErrorsHandler =
7
- (t: I18nComposerTranslation) => (issue: z.core.$ZodIssue) => {
7
+ (t: I18nComposerTranslation) => (issue: z.core.$ZodRawIssue) => {
8
8
  switch (issue.code) {
9
9
  case 'too_small':
10
10
  return handleTooSmall(issue);
@@ -17,7 +17,9 @@ export const customZodErrorsHandler =
17
17
  return issue.code;
18
18
  }
19
19
 
20
- function handleTooSmall(issue: z.core.$ZodIssueTooSmall) {
20
+ function handleTooSmall(
21
+ issue: z.core.$ZodRawIssue<z.core.$ZodIssueTooSmall>,
22
+ ) {
21
23
  const showRequiredMsg = () => {
22
24
  return t('validation.required');
23
25
  };
@@ -40,7 +42,7 @@ export const customZodErrorsHandler =
40
42
  });
41
43
  }
42
44
 
43
- function handleTooBig(issue: z.core.$ZodIssueTooBig) {
45
+ function handleTooBig(issue: z.core.$ZodRawIssue<z.core.$ZodIssueTooBig>) {
44
46
  // if string, show "length" error
45
47
  if (issue.origin === 'string') {
46
48
  return t('validation.maxLength', {
@@ -55,7 +57,9 @@ export const customZodErrorsHandler =
55
57
  }
56
58
 
57
59
  function handleInvalid(
58
- issue: z.core.$ZodIssueInvalidType | z.core.$ZodIssueInvalidValue,
60
+ issue:
61
+ | z.core.$ZodRawIssue<z.core.$ZodIssueInvalidType>
62
+ | z.core.$ZodRawIssue<z.core.$ZodIssueInvalidValue>,
59
63
  ) {
60
64
  if (isEmpty(issue.input)) {
61
65
  return t('validation.required');
@@ -1,2 +1,2 @@
1
1
  export default getDefaultInstance;
2
- export function getDefaultInstance(): import("axios").AxiosInstance;
2
+ export function getDefaultInstance(): import("@aliasedDeps/api-services/axios").AxiosInstance;
@@ -1,4 +1,4 @@
1
- export declare const useSelect: ({ selected, options, optionLabel, optionValue, dataKey, allowCustomValues, manualCustomValues, filterInput, selectRef, searchMethod, selectId, isSingle, strictApiOptions, emit, }: {
1
+ export declare const useSelect: ({ selected, options, optionLabel, optionValue, dataKey, allowCustomValues, manualCustomValues: _manualCustomValues, filterInput, selectRef, searchMethod, selectId, isSingle, strictApiOptions, emit, }: {
2
2
  selected: any;
3
3
  options: any;
4
4
  optionLabel: any;
@@ -12,7 +12,7 @@ export declare const useSelect: ({ selected, options, optionLabel, optionValue,
12
12
  selectId: any;
13
13
  isSingle: any;
14
14
  strictApiOptions?: any;
15
- emit?: () => void;
15
+ emit?: (_event: string, ..._args: unknown[]) => void;
16
16
  }) => {
17
17
  isLoading: import("vue").Ref<boolean, boolean>;
18
18
  showFooterLoader: import("vue").Ref<boolean, boolean>;
@@ -1,17 +1,14 @@
1
- export declare const useSelectCustomValues: ({ selected, filteredOptions, options, optionValue, dataKey, filterText, filterOptions, updateSelectedOptionsCache, selectRef, allowCustomValues, manualCustomValues, isSingle, emit, }: {
1
+ export declare const useSelectCustomValues: ({ selected, filteredOptions, options, dataKey, filterText, filterOptions, updateSelectedOptionsCache, selectRef, allowCustomValues, isSingle, }: {
2
2
  selected: any;
3
3
  filteredOptions: any;
4
4
  options: any;
5
- optionValue: any;
6
5
  dataKey: any;
7
6
  filterText: any;
8
7
  filterOptions: any;
9
8
  updateSelectedOptionsCache: any;
10
9
  selectRef: any;
11
10
  allowCustomValues: any;
12
- manualCustomValues: any;
13
11
  isSingle: any;
14
- emit: any;
15
12
  }) => {
16
13
  onInputKeydown: () => void;
17
14
  };
@@ -1,3 +1,4 @@
1
+ import type { WtTableHeader } from '../../../wt-table/types/WtTable';
1
2
  export declare const useWtTable: ({ headers }: {
2
3
  headers: any;
3
4
  }) => {
@@ -4,11 +4,11 @@ interface Props {
4
4
  playingFileId?: string;
5
5
  }
6
6
  declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- stop: () => any;
8
7
  play: (file: EngineCallFile) => any;
8
+ stop: () => any;
9
9
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
10
- onStop?: () => any;
11
10
  onPlay?: (file: EngineCallFile) => any;
11
+ onStop?: () => any;
12
12
  }>, {
13
13
  playingFileId: string;
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -25,9 +25,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
25
25
  default: () => any[];
26
26
  };
27
27
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
- add: (...args: any[]) => void;
29
- close: (...args: any[]) => void;
30
28
  change: (...args: any[]) => void;
29
+ close: (...args: any[]) => void;
30
+ add: (...args: any[]) => void;
31
31
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
32
32
  /**
33
33
  * Popup title
@@ -49,9 +49,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
49
49
  default: () => any[];
50
50
  };
51
51
  }>> & Readonly<{
52
- onAdd?: (...args: any[]) => any;
53
- onClose?: (...args: any[]) => any;
54
52
  onChange?: (...args: any[]) => any;
53
+ onClose?: (...args: any[]) => any;
54
+ onAdd?: (...args: any[]) => any;
55
55
  }>, {
56
56
  options: unknown[];
57
57
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,2 +1,2 @@
1
- export const tableActionsOrder: ("delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout")[];
2
- export const sectionActionsOrder: ("delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout")[];
1
+ export const tableActionsOrder: ("delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout")[];
2
+ export const sectionActionsOrder: ("delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout")[];
@@ -97,67 +97,67 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
97
97
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
98
98
  type __VLS_Slots = {
99
99
  delete?: (props: {
100
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
100
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
101
101
  size: string;
102
102
  onClick: () => void;
103
103
  }) => any;
104
104
  sort?: (props: {
105
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
105
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
106
+ size: string;
107
+ onClick: () => void;
108
+ }) => any;
109
+ copy?: (props: {
110
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
106
111
  size: string;
107
112
  onClick: () => void;
108
113
  }) => any;
109
114
  filters?: (props: {
110
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
115
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
111
116
  size: string;
112
117
  onClick: () => void;
113
118
  }) => any;
114
119
  refresh?: (props: {
115
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
120
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
116
121
  size: string;
117
122
  onClick: () => void;
118
123
  }) => any;
119
124
  add?: (props: {
120
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
125
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
121
126
  size: string;
122
127
  onClick: () => void;
123
128
  }) => any;
124
129
  upload?: (props: {
125
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
130
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
126
131
  size: string;
127
132
  onClick: () => void;
128
133
  }) => any;
129
134
  download?: (props: {
130
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
131
- size: string;
132
- onClick: () => void;
133
- }) => any;
134
- copy?: (props: {
135
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
135
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
136
136
  size: string;
137
137
  onClick: () => void;
138
138
  }) => any;
139
139
  columns?: (props: {
140
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
140
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
141
141
  size: string;
142
142
  onClick: () => void;
143
143
  }) => any;
144
144
  variables?: (props: {
145
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
145
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
146
146
  size: string;
147
147
  onClick: () => void;
148
148
  }) => any;
149
149
  "add-contact"?: (props: {
150
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
150
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
151
151
  size: string;
152
152
  onClick: () => void;
153
153
  }) => any;
154
154
  "download-pdf"?: (props: {
155
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
155
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
156
156
  size: string;
157
157
  onClick: () => void;
158
158
  }) => any;
159
159
  logout?: (props: {
160
- action: "delete" | "sort" | "filters" | "refresh" | "add" | "upload" | "download" | "copy" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
160
+ action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
161
161
  size: string;
162
162
  onClick: () => void;
163
163
  }) => any;
@@ -1,7 +1,8 @@
1
1
  import { ComponentSize } from '../../enums';
2
+ import type { BadgeSeverity } from './types/WtBadge';
2
3
  interface Props {
3
4
  value: string | number;
4
- severity?: 'secondary' | 'info' | 'success' | 'warn' | 'error' | 'online' | 'dnd' | 'busy' | 'pause' | 'onlineCc' | 'offline';
5
+ severity?: BadgeSeverity;
5
6
  size?: ComponentSize;
6
7
  }
7
8
  declare var __VLS_8: {};
@@ -11,7 +12,7 @@ type __VLS_Slots = {} & {
11
12
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
12
13
  value: string | number;
13
14
  size: ComponentSize;
14
- severity: "secondary" | "info" | "success" | "warn" | "error" | "online" | "dnd" | "busy" | "pause" | "onlineCc" | "offline";
15
+ severity: BadgeSeverity;
15
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
18
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,6 @@
1
1
  import type { ButtonProps } from 'primevue';
2
2
  import { ButtonColor, ButtonVariant, ComponentSize } from '../../enums';
3
+ import type { BadgeSeverity } from '../wt-badge-new/types/WtBadge';
3
4
  interface WtButtonProps extends /* @vue-ignore */ ButtonProps {
4
5
  color?: ButtonColor;
5
6
  disabled?: boolean;
@@ -10,7 +11,7 @@ interface WtButtonProps extends /* @vue-ignore */ ButtonProps {
10
11
  icon?: string;
11
12
  iconPrefix?: string;
12
13
  badge?: string;
13
- badgeSeverity?: string;
14
+ badgeSeverity?: BadgeSeverity;
14
15
  badgeAbsolutePosition?: boolean;
15
16
  variant?: ButtonVariant;
16
17
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @author @HlukhovYe
3
+ *
4
+ * Automatically inserts date/time separators while the user types into the
5
+ * PrimeVue DatePicker input so they don't have to type '/' or ':' manually.
6
+ *
7
+ * Format without time: dd/mm/yyyy → inserts '/' after positions 2 and 5
8
+ * Format with time: dd/mm/yyyy hh:mm → also inserts ' ' after position 10
9
+ * and ':' after position 13
10
+ *
11
+ * The handler runs in the bubble phase (after PrimeVue's own input handler).
12
+ * Listener registration is handled by useDatepicker.
13
+ */
14
+ export declare function createAutoSeparatorHandler(showTime: () => boolean): {
15
+ onInputBubble: (event: Event) => void;
16
+ resetLength: (input: HTMLInputElement) => void;
17
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @author @HlukhovYe
3
+ *
4
+ * Single composable entry point for wt-datepicker. Composes all input-handling
5
+ * and overlay logic into a minimal set of DOM listeners — one capture input,
6
+ * one bubble input, one keydown — so the browser dispatches each event once.
7
+ *
8
+ * Returns:
9
+ * onBlur — forward to p-datepicker's @blur
10
+ * lockOverlay / unlockOverlay — forward to onPanelShow / onPanelHide
11
+ */
12
+ export declare function useDatepicker(getInput: () => HTMLInputElement | null, getDatepicker: () => {
13
+ rawValue: Date | null;
14
+ updateModel: (v: Date) => void;
15
+ } | null, showTime: () => boolean, isClearable: () => boolean): {
16
+ onBlur: () => void;
17
+ lockOverlay: (panel: HTMLElement) => void;
18
+ unlockOverlay: () => void;
19
+ };
@@ -7,9 +7,13 @@
7
7
  * is mid-typing. Without this, typing "2" into a cleared two-digit slot immediately
8
8
  * reformats to "02", forcing the user to delete the leading zero before the second digit.
9
9
  *
10
- * Works by registering two listeners on the same input event:
11
- * - capture phase (before PrimeVue): snapshots the partial single-digit value
12
- * - bubble phase (after PrimeVue): if PrimeVue zero-padded the value, restores the
13
- * snapshot and cancels further propagation so the model is not updated yet
10
+ * Capture handler (before PrimeVue): snapshots the partial single-digit value.
11
+ * Bubble handler (after PrimeVue): if PrimeVue zero-padded the value, restores the
12
+ * snapshot and cancels further propagation so the model is not updated yet.
13
+ *
14
+ * Listener registration is handled by useDatepicker.
14
15
  */
15
- export declare function usePreventZeroPad(getInput: () => HTMLInputElement | null): void;
16
+ export declare function createPreventZeroPadHandlers(): {
17
+ onInputCapture: (event: Event) => void;
18
+ onInputBubble: (event: Event) => void;
19
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @author @HlukhovYe
3
+ *
4
+ * Enforces strict keyboard input on the PrimeVue DatePicker text field:
5
+ *
6
+ * - Only digits, '/', ':', and ' ' are allowed through.
7
+ * - Input is capped at the maximum length for the active format:
8
+ * dd/mm/yyyy → 10 characters
9
+ * dd/mm/yyyy hh:mm → 16 characters
10
+ *
11
+ * Works via a `keydown` handler so the character is blocked before the browser
12
+ * writes it to the input. Control keys and modifier combos always pass through.
13
+ * Listener registration is handled by useDatepicker.
14
+ */
15
+ export declare function createStrictInputHandler(showTime: () => boolean): {
16
+ onKeydown: (event: KeyboardEvent) => void;
17
+ };
@@ -7,14 +7,14 @@ type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
9
  declare const __VLS_base: import("vue").DefineComponent<WtInlineAddPanel, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- submit: (...args: any[]) => void;
11
10
  reset: (...args: any[]) => void;
11
+ submit: (...args: any[]) => void;
12
12
  }, string, import("vue").PublicProps, Readonly<WtInlineAddPanel> & Readonly<{
13
- onSubmit?: (...args: any[]) => any;
14
13
  onReset?: (...args: any[]) => any;
14
+ onSubmit?: (...args: any[]) => any;
15
15
  }>, {
16
- disabledAddAction: boolean;
17
16
  direction: "row" | "column";
17
+ disabledAddAction: boolean;
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
20
  declare const _default: typeof __VLS_export;
@@ -18,6 +18,7 @@ interface Props {
18
18
  */
19
19
  disabled?: boolean;
20
20
  closable?: boolean;
21
+ closeDisabled?: boolean;
21
22
  }
22
23
  interface ActivatorSlotScope {
23
24
  shown: Props['shown'];
@@ -44,6 +45,7 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
44
45
  closable: boolean;
45
46
  shown: boolean;
46
47
  overflow: boolean;
48
+ closeDisabled: boolean;
47
49
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
48
50
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
49
51
  declare const _default: typeof __VLS_export;
@@ -44,8 +44,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
44
44
  default: boolean;
45
45
  };
46
46
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
47
- search: (args_0: string) => any;
48
47
  input: (args_0: string) => any;
48
+ search: (args_0: string) => any;
49
49
  enter: (args_0: string) => any;
50
50
  "update:search-mode": (args_0: string | object) => any;
51
51
  "change:search-mode": (args_0: string | object) => any;
@@ -89,8 +89,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
89
89
  default: boolean;
90
90
  };
91
91
  }>> & Readonly<{
92
- onSearch?: (args_0: string) => any;
93
92
  onInput?: (args_0: string) => any;
93
+ onSearch?: (args_0: string) => any;
94
94
  onEnter?: (args_0: string) => any;
95
95
  "onUpdate:search-mode"?: (args_0: string | object) => any;
96
96
  "onChange:search-mode"?: (args_0: string | object) => any;
@@ -10,11 +10,11 @@ type __VLS_Props = {
10
10
  options?: StatusOption[];
11
11
  };
12
12
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- closed: (event: Event) => any;
14
13
  change: (value: string) => any;
14
+ closed: (event: Event) => any;
15
15
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
- onClosed?: (event: Event) => any;
17
16
  onChange?: (value: string) => any;
17
+ onClosed?: (event: Event) => any;
18
18
  }>, {
19
19
  status: string;
20
20
  statusDuration: string | number;
@@ -32,7 +32,7 @@ type __VLS_Props = {
32
32
  };
33
33
  declare var __VLS_18: {}, __VLS_29: {
34
34
  item: any;
35
- }, __VLS_33: any, __VLS_34: {
35
+ }, __VLS_33: string, __VLS_34: {
36
36
  index: number;
37
37
  item: any;
38
38
  };
@@ -4,5 +4,6 @@ export * from './useCard/useCardComponent';
4
4
  export * from './useCard/useCardTabs';
5
5
  export * from './useClose/useClose';
6
6
  export * from './useDestroyableSortable/useDestroyableSortable';
7
+ export * from './useEventBus/useEventBus';
7
8
  export * from './useRepresentableAgentPauseCause/useRepresentableAgentPauseCause';
8
9
  export * from './useValidate/useValidate';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Vue-2-style event bus contract host apps pass to the ui-sdk
3
+ * `install(app, { eventBus })` (provided app-wide as '$eventBus').
4
+ */
5
+ export interface EventBus {
6
+ $emit: (event: string, payload?: unknown) => void;
7
+ $on: (event: string, handler: (payload?: unknown) => void) => void;
8
+ $off: (event: string, handler?: (payload?: unknown) => void) => void;
9
+ }
10
+ export declare const EVENT_BUS_INJECTION_KEY = "$eventBus";
11
+ export declare const useEventBus: () => EventBus | undefined;
@@ -1,10 +1,10 @@
1
1
  import type { RegleFieldStatus } from '@regle/core';
2
2
  import { type ComputedRef, type Ref } from 'vue';
3
3
  export type UseFieldValidationParams = {
4
- field: Ref<RegleFieldStatus<string>>;
4
+ field?: Ref<RegleFieldStatus<string>>;
5
5
  };
6
6
  export type UseFieldValidationReturn = {
7
7
  invalid: ComputedRef<boolean | null>;
8
- validationText?: ComputedRef<string>;
8
+ validationText?: ComputedRef<string | undefined>;
9
9
  };
10
10
  export declare const useFieldValidation: ({ field: fieldRef, }: UseFieldValidationParams) => UseFieldValidationReturn;
@@ -1,12 +1,17 @@
1
1
  import { type UseFieldValidationParams as UseRegleFieldValidationParams } from './regle/useRegleValidation';
2
2
  import { type UseFieldValidationParams as UseVuelidateFieldValidationParams } from './vuelidate/useVuelidateValidation';
3
- type CompatVuelidateParams = {
4
- v: UseVuelidateFieldValidationParams['field'];
3
+ type UseValidationParams = {
4
+ /** vuelidate field validation (compat) */
5
+ v?: UseVuelidateFieldValidationParams['field'];
6
+ /** vuelidate custom validations (compat) */
7
+ customValidators?: UseVuelidateFieldValidationParams['customValidators'];
8
+ /** regle field validation */
9
+ regleValidation?: UseRegleFieldValidationParams['field'];
5
10
  };
6
- export declare const useValidation: ({ v: vuelidateValidation, customValidators: inputCustomValidators, regleValidation, }: UseRegleFieldValidationParams | CompatVuelidateParams) => {
11
+ export declare const useValidation: ({ v: vuelidateValidation, customValidators: inputCustomValidators, regleValidation, }: UseValidationParams) => {
7
12
  isValidation: import("vue").ComputedRef<boolean>;
8
13
  invalid: import("vue").ComputedRef<boolean>;
9
14
  validationText: import("vue").ComputedRef<string>;
10
- validationTextColor: import("vue").ComputedRef<"secondary" | "error">;
15
+ validationTextColor: import("vue").ComputedRef<"error" | "secondary">;
11
16
  };
12
17
  export {};
@@ -14,7 +14,7 @@ declare namespace _default {
14
14
  function isValidation(): boolean;
15
15
  function invalid(): any;
16
16
  function validationText(): string;
17
- function validationTextColor(): "success" | "error";
17
+ function validationTextColor(): "error" | "success";
18
18
  }
19
19
  }
20
20
  export default _default;
@@ -1,16 +1,21 @@
1
1
  import type { Validation } from '@vuelidate/core';
2
- import { type Ref } from 'vue';
2
+ import { type ComputedRef, type Ref } from 'vue';
3
+ type CompatCustomValidator = {
4
+ name: string;
5
+ text: string;
6
+ };
3
7
  export type UseFieldValidationParams = {
4
- field: Ref<Validation>;
5
- customValidators?: Array<object>;
8
+ field?: Ref<Validation>;
9
+ customValidators?: CompatCustomValidator[];
6
10
  };
7
11
  export declare const useFieldValidation: ({ field: inputV, customValidators: inputCustomValidators, }: UseFieldValidationParams) => {
8
- isValidation: import("vue").ComputedRef<boolean>;
9
- invalid: import("vue").ComputedRef<boolean>;
10
- validationText: import("vue").ComputedRef<string>;
12
+ isValidation: ComputedRef<boolean>;
13
+ invalid: ComputedRef<boolean>;
14
+ validationText: ComputedRef<string>;
11
15
  };
12
16
  export declare const useVuelidateFieldValidation: ({ field: inputV, customValidators: inputCustomValidators, }: UseFieldValidationParams) => {
13
- isValidation: import("vue").ComputedRef<boolean>;
14
- invalid: import("vue").ComputedRef<boolean>;
15
- validationText: import("vue").ComputedRef<string>;
17
+ isValidation: ComputedRef<boolean>;
18
+ invalid: ComputedRef<boolean>;
19
+ validationText: ComputedRef<string>;
16
20
  };
21
+ export {};
@@ -11,7 +11,10 @@ type __VLS_Props = {
11
11
  declare var __VLS_1: {
12
12
  selected: any;
13
13
  loadDataList: any;
14
- askDeleteConfirmation: any;
14
+ askDeleteConfirmation: ({ deleted, callback }: {
15
+ deleted: any;
16
+ callback: any;
17
+ }) => void;
15
18
  handleDelete: (items: []) => Promise<void>;
16
19
  };
17
20
  type __VLS_Slots = {} & {
@@ -6,16 +6,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
6
6
  default: () => any[];
7
7
  };
8
8
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- close: (...args: any[]) => void;
10
9
  change: (...args: any[]) => void;
10
+ close: (...args: any[]) => void;
11
11
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
12
  options: {
13
13
  type: ArrayConstructor;
14
14
  default: () => any[];
15
15
  };
16
16
  }>> & Readonly<{
17
- onClose?: (...args: any[]) => any;
18
17
  onChange?: (...args: any[]) => any;
18
+ onClose?: (...args: any[]) => any;
19
19
  }>, {
20
20
  options: unknown[];
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,3 +1,3 @@
1
- import { ScreenSharingSession } from './ScreenSharingSession';
2
- import { ScreenshotStatus } from './ScreenshotStatus';
3
- export { ScreenSharingSession, ScreenshotStatus };
1
+ import type { ScreenSharingSession } from './ScreenSharingSession';
2
+ import type { ScreenshotStatus } from './ScreenshotStatus';
3
+ export type { ScreenSharingSession, ScreenshotStatus };
@@ -5,7 +5,7 @@ export function useTableEmpty({ dataList, filters, error, isLoading }: {
5
5
  isLoading: any;
6
6
  }, overrides?: {}): {
7
7
  showEmpty: import("vue").ComputedRef<boolean>;
8
- emptyCause: import("vue").ComputedRef<"filters" | "error" | "empty">;
8
+ emptyCause: import("vue").ComputedRef<"error" | "filters" | "empty">;
9
9
  image: import("vue").ComputedRef<any>;
10
10
  headline: import("vue").ComputedRef<any>;
11
11
  title: import("vue").ComputedRef<any>;
@@ -15,7 +15,7 @@ declare const useUploadCsv: ({ props, emit, skipHeaders, separator }: {
15
15
  isParsingCSV: import("vue").Ref<boolean, boolean>;
16
16
  isParsingPreview: import("vue").Ref<boolean, boolean>;
17
17
  parseErrorStackTrace: import("vue").Ref<string, string>;
18
- csvPreviewTableData: import("vue").ComputedRef<any[][]>;
18
+ csvPreviewTableData: import("vue").ComputedRef<unknown[]>;
19
19
  csvPreviewTableHeaders: import("vue").ComputedRef<{
20
20
  text: string;
21
21
  value: string;
@@ -1,2 +1,2 @@
1
- declare const parseCSV: (csvStr: any, options?: {}) => Promise<unknown>;
1
+ declare const parseCSV: (csvStr: any, options?: {}) => Promise<unknown[]>;
2
2
  export default parseCSV;
@@ -1,3 +1,3 @@
1
- import { ApiUserWarningId } from '@webitel/api-services/gen/models';
1
+ import { type ApiUserWarning, ApiUserWarningId } from '@webitel/api-services/gen/models';
2
2
  import type { NotificationsType } from '../types/UserNotifications';
3
- export declare const USER_NOTIFICATION_CONFIGS_MAP: Map<ApiUserWarningId, (warningId: ApiUserWarningId) => NotificationsType>;
3
+ export declare const USER_NOTIFICATION_CONFIGS_MAP: Map<ApiUserWarningId, (warning: ApiUserWarning) => NotificationsType>;
@@ -1,5 +1,6 @@
1
1
  interface UserNotificationsConfigsParams {
2
- amount?: number;
2
+ /** generated API types serialize int64 counters as strings */
3
+ amount?: number | string;
3
4
  name?: string;
4
5
  }
5
6
  interface NotificationsType {
@@ -1 +1 @@
1
- export {};
1
+ export { camelToKebab, camelToSnake, kebabToCamel, kebabToSnake, objCamelToKebab, objCamelToSnake, objSnakeToCamel, snakeToCamel, snakeToKebab } from "@webitel/api-services/utils";
@@ -1,6 +1,11 @@
1
1
  import type { FileFormat } from './fileFormat.types';
2
+ /** Minimal shape of the (axios-style) HTTP response consumed by `downloadFile`. */
3
+ export interface DownloadFileResponse {
4
+ data: BlobPart;
5
+ headers?: Record<string, string | undefined>;
6
+ }
2
7
  export interface DownloadFileOptions {
3
- response: never;
8
+ response: DownloadFileResponse;
4
9
  fileFormat: FileFormat;
5
10
  filename?: string;
6
11
  mimetype?: string;