@webitel/ui-sdk 26.6.95 → 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.
- package/dist/{clients-Bj07uFky.js → clients-Ban2DI-G.js} +8 -7
- package/dist/{components-l3RJbNmv.js → components-Bim818Xf.js} +13 -8
- package/dist/{composables-vmCh4eqT.js → composables-CeAM_2lo.js} +12 -14
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +605 -605
- package/dist/ui-sdk.umd.cjs +38 -38
- package/dist/useValidation-lRiKF7xV.js +39 -0
- package/dist/{useVidstackSrc-epUQZhkL.js → useVidstackSrc-B4mUti_c.js} +1 -1
- package/dist/{vidstack-C6nBVWwn-BlZqtkYB.js → vidstack-C6nBVWwn-cKiWT0KJ.js} +2 -2
- package/dist/{vidstack-CI5oafcm-DAV7Lilr.js → vidstack-CI5oafcm-DfWpvayJ.js} +1 -1
- package/dist/{vidstack-DUnfBERX2-Cl6yTfB3.js → vidstack-DUnfBERX2-BJtKHFxc.js} +1 -1
- package/dist/{vidstack-audio-CH4wIf0F.js → vidstack-audio-BCPraiiR.js} +1 -1
- package/dist/{vidstack-dash-CmlmZIFT.js → vidstack-dash-MBx5aEEA.js} +2 -2
- package/dist/{vidstack-hls-D1sxUvBd.js → vidstack-hls-BbZsbfaO.js} +2 -2
- package/dist/vidstack-video-DwlbGwN7.js +2 -0
- package/dist/{wt-chat-emoji-CGf8vRlv.js → wt-chat-emoji-CX65m8Dd.js} +1 -1
- package/dist/{wt-datepicker-D2GjAUWU.js → wt-datepicker-BP9bBbGY.js} +1 -1
- package/dist/{wt-display-chip-items-C3TZt4Gn.js → wt-display-chip-items-tL17x2-U.js} +1 -1
- package/dist/{wt-expansion-card-DvLD-TP4.js → wt-expansion-card-DET-o0Jq.js} +1 -1
- package/dist/{wt-galleria-DT0SOjXk.js → wt-galleria-B6kMr_xS.js} +1 -1
- package/dist/{wt-icon-btn-BIU9YjS8.js → wt-icon-btn-DYjjSl-C.js} +5 -2
- package/dist/{wt-player-_mTlxsCu.js → wt-player-Bbirdlj9.js} +1 -1
- package/dist/{wt-search-bar-CUxiGcoz.js → wt-search-bar-D50lqCd8.js} +1 -1
- package/dist/{wt-send-message-popup-CCSOL-wH.js → wt-send-message-popup-8TZWTO40.js} +2 -2
- package/dist/{wt-table-DS_2J5zF.js → wt-table-C39WpJH8.js} +1 -1
- package/dist/{wt-timepicker-Bxdc4s3_.js → wt-timepicker-CYNrvbWf.js} +1 -1
- package/dist/{wt-tree-table-2K7cdct7.js → wt-tree-table-umRsVKWt.js} +1 -1
- package/dist/{wt-type-extension-value-input-Bl8jpyTn.js → wt-type-extension-value-input-D1wNUHkh.js} +2 -2
- package/dist/{wt-vidstack-player-BaH2oaMr.js → wt-vidstack-player-Z3cdtFBu.js} +10 -10
- package/package.json +3 -2
- package/src/api/clients/wtTypes/_shared/utils/sortDynamicFields.ts +18 -4
- package/src/api/types/ApiModule.d.ts +28 -9
- package/src/components/_internals/composables/useGalleriaFullscreen/useGalleriaFullscreen.ts +25 -9
- package/src/components/_internals/composables/useSelect/useSelect.ts +3 -5
- package/src/components/_internals/composables/useSelect/useSelectCustomValues.ts +0 -3
- package/src/components/_internals/composables/useSelect/useSelectOptions.ts +7 -2
- package/src/components/_internals/composables/useWtTable/useWtTable.ts +1 -1
- package/src/components/wt-badge-new/types/WtBadge.d.ts +12 -0
- package/src/components/wt-badge-new/wt-badge.vue +2 -12
- package/src/components/wt-button/wt-button.vue +2 -1
- package/src/components/wt-icon-btn/wt-icon-btn.vue +1 -1
- package/src/components/wt-popup/wt-popup.vue +3 -1
- package/src/components/wt-slider/wt-slider.vue +1 -1
- package/src/components/wt-table/types/WtTable.d.ts +5 -1
- package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/components/time-group.vue +0 -2
- package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/playback-controls-panel.vue +0 -1
- package/src/components/wt-vidstack-player/components/panels/screen-sharing-controls-panel/screen-sharing-controls-panel.vue +1 -2
- package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +1 -9
- package/src/composables/index.d.ts +9 -0
- package/src/composables/index.ts +1 -0
- package/src/composables/useEventBus/useEventBus.d.ts +11 -0
- package/src/composables/useEventBus/useEventBus.ts +16 -0
- package/src/enums/BroadcastChannelName/BroadcastChannelName.d.ts +4 -0
- package/src/enums/BroadcastChannelName/UserSettingsBroadcastMessage.d.ts +12 -0
- package/src/enums/ButtonColor/ButtonColor.d.ts +11 -0
- package/src/enums/ButtonVariant/ButtonVariant.d.ts +6 -0
- package/src/enums/ChipColor/ChipColor.d.ts +11 -0
- package/src/enums/ComponentSize/ComponentSize.d.ts +17 -0
- package/src/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.d.ts +6 -0
- package/src/enums/CrudAction/CrudAction.d.ts +7 -0
- package/src/enums/DefaultWorkspaceTabSettings/DefaultWorkspaceTabSettings.d.ts +9 -0
- package/src/enums/EmptyCause/EmptyCause.d.ts +6 -0
- package/src/enums/FormatDateMode/FormatDateMode.d.ts +8 -0
- package/src/enums/IconColor/IconColor.d.ts +17 -0
- package/src/enums/LoginOptions/LoginOptions.d.ts +6 -0
- package/src/enums/MessageColor/MessageColor.d.ts +9 -0
- package/src/enums/MessageVariant/MessageVariant.d.ts +6 -0
- package/src/enums/MimeTypes/MimeTypes.enum.d.ts +17 -0
- package/src/enums/ProcessingTableColumnType/ProcessingTableColumnType.d.ts +8 -0
- package/src/enums/QueueType/QueueType.enum.d.ts +28 -0
- package/src/enums/RelativeDatetimeValue/RelativeDatetimeValue.d.ts +7 -0
- package/src/enums/RingtoneType/RingtoneType.d.ts +6 -0
- package/src/enums/SingleSignOnProvider/SingleSignOnProvider.d.ts +7 -0
- package/src/enums/SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings.d.ts +3 -0
- package/src/enums/WebitelApplications/AdminSections.d.ts +46 -0
- package/src/enums/WebitelApplications/AuditorSections.d.ts +4 -0
- package/src/enums/WebitelApplications/CrmSections.d.ts +16 -0
- package/src/enums/WebitelApplications/SupervisorSections.d.ts +6 -0
- package/src/enums/WebitelApplications/WfmSections.d.ts +6 -0
- package/src/enums/WebitelApplications/WtApplication.d.ts +12 -0
- package/src/enums/WtObject/WtObject.d.ts +63 -0
- package/src/enums/WtTypeExtensionFieldKind/WtTypeExtensionFieldKind.d.ts +13 -0
- package/src/enums/index.d.ts +38 -0
- package/src/install.ts +2 -1
- package/src/mixins/validationMixin/regle/useRegleValidation.ts +4 -4
- package/src/mixins/validationMixin/useValidation.ts +8 -3
- package/src/mixins/validationMixin/vuelidate/useVuelidateValidation.ts +63 -40
- package/src/modules/CSVExport/composables/useCSVExport.ts +1 -1
- package/src/modules/CallSession/modules/ScreenSharing/screen-sharing.vue +1 -2
- package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/domTraversal.ts +2 -2
- package/src/modules/CallSession/modules/VideoCall/video-call.vue +1 -1
- package/src/modules/CallSession/types/index.ts +3 -3
- package/src/modules/UploadCsvPopup/composable/useUploadCsv.ts +1 -1
- package/src/modules/UploadCsvPopup/scripts/parseCSV.ts +1 -1
- package/src/modules/UserNotifications/maps/userNotificationConfigsMap.ts +10 -7
- package/src/modules/UserNotifications/stores/userNotificationsStore.ts +1 -0
- package/src/modules/UserNotifications/types/UserNotifications.ts +2 -1
- package/src/modules/Userinfo/constants/UserSettingsConstants.d.ts +1 -0
- package/src/scripts/__tests__/isEmpty.spec.js +1 -1
- package/src/scripts/downloadFile/types/downloadFile.types.ts +7 -1
- package/src/scripts/index.js +1 -1
- package/src/scripts/{isEmpty.js → isEmpty.ts} +10 -1
- package/src/scripts/normalizeDatetime.ts +4 -2
- package/src/utils/displayText.d.ts +2 -0
- package/src/utils/formatDate.d.ts +4 -0
- package/src/utils/index.d.ts +2 -0
- package/src/validations/config/errors/customZodErrorsHandler.ts +8 -4
- package/types/api/defaults/getDefaultInstance/getDefaultInstance.d.ts +1 -1
- package/types/components/_internals/composables/useSelect/useSelect.d.ts +2 -2
- package/types/components/_internals/composables/useSelect/useSelectCustomValues.d.ts +1 -4
- package/types/components/_internals/composables/useWtTable/useWtTable.d.ts +1 -0
- package/types/components/on-demand/wt-call-media-action/wt-call-media-action.vue.d.ts +2 -2
- package/types/components/on-demand/wt-selection-popup/wt-selection-popup.vue.d.ts +4 -4
- package/types/components/wt-action-bar/WtActionBarActionsOrder.d.ts +2 -2
- package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +17 -17
- package/types/components/wt-badge-new/wt-badge.vue.d.ts +3 -2
- package/types/components/wt-button/wt-button.vue.d.ts +2 -1
- package/types/components/wt-inline-add-panel/wt-inline-add-panel.vue.d.ts +3 -3
- package/types/components/wt-popup/wt-popup.vue.d.ts +2 -0
- package/types/components/wt-search-bar/wt-search-bar.vue.d.ts +2 -2
- package/types/components/wt-status-select/wt-status-select.vue.d.ts +2 -2
- package/types/components/wt-tree-table/wt-tree-table.vue.d.ts +1 -1
- package/types/composables/index.d.ts +1 -0
- package/types/composables/useEventBus/useEventBus.d.ts +11 -0
- package/types/mixins/validationMixin/regle/useRegleValidation.d.ts +2 -2
- package/types/mixins/validationMixin/useValidation.d.ts +9 -4
- package/types/mixins/validationMixin/validationMixin.d.ts +1 -1
- package/types/mixins/validationMixin/vuelidate/useVuelidateValidation.d.ts +14 -9
- package/types/modules/AgentPdfs/components/agent-pdfs-tab.vue.d.ts +4 -1
- package/types/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue.d.ts +2 -2
- package/types/modules/CallSession/types/index.d.ts +3 -3
- package/types/modules/TableComponentModule/composables/useTableEmpty.d.ts +1 -1
- package/types/modules/UploadCsvPopup/composable/useUploadCsv.d.ts +1 -1
- package/types/modules/UploadCsvPopup/scripts/parseCSV.d.ts +1 -1
- package/types/modules/UserNotifications/maps/userNotificationConfigsMap.d.ts +2 -2
- package/types/modules/UserNotifications/types/UserNotifications.d.ts +2 -1
- package/types/scripts/caseConverters.d.ts +1 -1
- package/types/scripts/downloadFile/types/downloadFile.types.d.ts +6 -1
- package/types/scripts/index.d.ts +1 -1
- package/types/scripts/isEmpty.d.ts +2 -1
- package/types/scripts/normalizeDatetime.d.ts +1 -1
- package/types/validations/config/errors/customZodErrorsHandler.d.ts +1 -1
- package/dist/useValidation-BedhHNX5.js +0 -37
- package/dist/vidstack-video-iy3-Vo1A.js +0 -2
- package/types/install.d.ts +0 -15
|
@@ -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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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?:
|
|
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:
|
|
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?:
|
|
14
|
+
badgeSeverity?: BadgeSeverity;
|
|
14
15
|
badgeAbsolutePosition?: boolean;
|
|
15
16
|
variant?: ButtonVariant;
|
|
16
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;
|
|
@@ -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
|
|
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
|
|
4
|
-
|
|
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, }:
|
|
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<"
|
|
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(): "
|
|
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
|
|
5
|
-
customValidators?:
|
|
8
|
+
field?: Ref<Validation>;
|
|
9
|
+
customValidators?: CompatCustomValidator[];
|
|
6
10
|
};
|
|
7
11
|
export declare const useFieldValidation: ({ field: inputV, customValidators: inputCustomValidators, }: UseFieldValidationParams) => {
|
|
8
|
-
isValidation:
|
|
9
|
-
invalid:
|
|
10
|
-
validationText:
|
|
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:
|
|
14
|
-
invalid:
|
|
15
|
-
validationText:
|
|
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:
|
|
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 = {} & {
|
package/types/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue.d.ts
CHANGED
|
@@ -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<"
|
|
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<
|
|
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, (
|
|
3
|
+
export declare const USER_NOTIFICATION_CONFIGS_MAP: Map<ApiUserWarningId, (warning: ApiUserWarning) => 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:
|
|
8
|
+
response: DownloadFileResponse;
|
|
4
9
|
fileFormat: FileFormat;
|
|
5
10
|
filename?: string;
|
|
6
11
|
mimetype?: string;
|
package/types/scripts/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { getConnectionQuality } from './getConnectionQuality.ts';
|
|
|
9
9
|
import { getEndOfDay } from './getDefaultFilterDate.js';
|
|
10
10
|
import { getNextSortOrder } from './sortQueryAdapters.js';
|
|
11
11
|
import { getStartOfDay } from './getDefaultFilterDate.js';
|
|
12
|
-
import isEmpty from './isEmpty
|
|
12
|
+
import isEmpty from './isEmpty';
|
|
13
13
|
import { isRelativeDatetimeValue } from './normalizeDatetime';
|
|
14
14
|
import { kebabToCamel } from './caseConverters.js';
|
|
15
15
|
import { kebabToSnake } from './caseConverters.js';
|
|
@@ -4,5 +4,5 @@ export type NormalizeDatetimeValueParam = RelativeDatetimeValue | number | strin
|
|
|
4
4
|
export type NormalizeDatetimeOptions = {
|
|
5
5
|
round?: RelativeDatetimeRoundOption;
|
|
6
6
|
};
|
|
7
|
-
export declare const isRelativeDatetimeValue: (value: string) =>
|
|
7
|
+
export declare const isRelativeDatetimeValue: (value: string) => value is RelativeDatetimeValue;
|
|
8
8
|
export declare const normalizeToTimestamp: (value?: NormalizeDatetimeValueParam, options?: NormalizeDatetimeOptions) => number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ComposerTranslation as I18nComposerTranslation } from 'vue-i18n';
|
|
2
2
|
import type { z } from 'zod/v4';
|
|
3
|
-
export declare const customZodErrorsHandler: (t: I18nComposerTranslation) => (issue: z.core.$
|
|
3
|
+
export declare const customZodErrorsHandler: (t: I18nComposerTranslation) => (issue: z.core.$ZodRawIssue) => string;
|
|
@@ -1,37 +0,0 @@
|
|
|
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 } from "vue";
|
|
4
|
-
//#region src/mixins/validationMixin/regle/useRegleValidation.ts
|
|
5
|
-
var i = ({ field: e }) => ({
|
|
6
|
-
invalid: n(() => e.value.$error),
|
|
7
|
-
validationText: n(() => e.value?.$errors?.at(0))
|
|
8
|
-
}), a = ({ field: e, customValidators: i }) => {
|
|
9
|
-
let { t: a } = t(), o = e, s = i;
|
|
10
|
-
r(o) && (o = n(() => e), s = n(() => i));
|
|
11
|
-
let c = n(() => !!o && !!o.value && !!Object.keys(o.value).length), l = n(() => c.value && o.value.$error);
|
|
12
|
-
return {
|
|
13
|
-
isValidation: c,
|
|
14
|
-
invalid: l,
|
|
15
|
-
validationText: n(() => {
|
|
16
|
-
let e = "";
|
|
17
|
-
if (c.value && l.value && (o.value.required?.$invalid ? e = a("validation.required") : o.value.numeric?.$invalid ? e = a("validation.numeric") : o.value.email?.$invalid ? e = a("validation.email") : o.value.gatewayHostValidator?.$invalid ? e = a("validation.gatewayHostValidator") : o.value.ipValidator?.$invalid ? e = a("validation.ipValidator") : o.value.macValidator?.$invalid ? e = a("validation.macValidator") : o.value.minValue?.$invalid ? e = a("validation.minValue", { min: o.value.minValue.$params.min }) : o.value.maxValue?.$invalid ? e = a("validation.maxValue", { max: o.value.maxValue.$params.max }) : o.value.maxLength?.$invalid ? e = a("validation.maxLength", { max: o.value.maxLength.$params.max }) : o.value.sipAccountValidator?.$invalid ? e = a("validation.sipAccountValidator") : o.value.minLength?.$invalid ? e = a("validation.minLength", { min: o.value.minLength.$params.min }) : o.value.url?.$invalid ? e = `${a("validation.url")}` : o.value.regExpValidator?.$invalid ? e = `${a("validation.regExpValidator")}` : o.value.sameAs?.$invalid ? e = `${a("validation.sameAs")}` : o.value.domainValidator?.$invalid ? e = `${a("validation.domainValidator")}` : o.value.decimalValidator?.$invalid ? e = `${a("validation.decimalValidator")} ${o.value.decimalValidator.$params.count}` : o.value.websocketValidator?.$invalid ? e = `${a("validation.websocketValidator")}` : o.value.integer?.$invalid ? e = `${a("validation.integer")}` : o.value.regex?.$invalid ? e = o.value.regex?.$message || `${a("validation.isRegExpMatched")} ${o.value.regex?.$params?.regex}` : o.value.nameAlreadyInUse?.$invalid ? e = a("validation.nameAlreadyInUse") : o.value.phoneNumberSymbolsValidator?.$invalid && (e = a("validation.phoneNumberSymbolsValidator"))), s?.value) {
|
|
18
|
-
for (let { name: t, text: n } of s.value) o.value[t]?.$invalid && (e = n);
|
|
19
|
-
return e;
|
|
20
|
-
}
|
|
21
|
-
return e;
|
|
22
|
-
})
|
|
23
|
-
};
|
|
24
|
-
}, o = ({ v: t, customValidators: r, regleValidation: o }) => {
|
|
25
|
-
let { isValidation: s, invalid: c, validationText: l } = a({
|
|
26
|
-
field: t,
|
|
27
|
-
customValidators: r
|
|
28
|
-
}), { invalid: u, validationText: d } = i({ field: o }), f = n(() => !!o?.value), p = n(() => f.value || s.value), m = n(() => f.value ? u.value : c.value);
|
|
29
|
-
return {
|
|
30
|
-
isValidation: p,
|
|
31
|
-
invalid: m,
|
|
32
|
-
validationText: n(() => f.value ? d.value : l.value),
|
|
33
|
-
validationTextColor: n(() => m.value ? e.ERROR : e.SECONDARY)
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
//#endregion
|
|
37
|
-
export { o as t };
|
package/types/install.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import 'vidstack/bundle';
|
|
2
|
-
import 'vue-multiselect/dist/vue-multiselect.css';
|
|
3
|
-
import '@webitel/styleguide/fonts';
|
|
4
|
-
import './css/main.css';
|
|
5
|
-
import './css/tailwind.css';
|
|
6
|
-
import { fillIconsRepository } from './assets/icons';
|
|
7
|
-
export { fillIconsRepository };
|
|
8
|
-
declare const _default: {
|
|
9
|
-
install(app: any, { eventBus, globals }: {
|
|
10
|
-
eventBus: any;
|
|
11
|
-
globals?: {};
|
|
12
|
-
}): void;
|
|
13
|
-
generateInstance: ({ interceptors, baseURL, ...rest }?: {}) => import("axios").AxiosInstance;
|
|
14
|
-
};
|
|
15
|
-
export default _default;
|