@webitel/ui-sdk 26.4.62 → 26.4.64
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/{wt-type-extension-value-input-BcH58urY.js → contacts-DH4w1lxr.js} +923 -1028
- package/dist/{index-FB11lRZm.js → index-CXs-Mo_d.js} +1 -1
- package/dist/{index-2RuzTRCZ.js → index-DENOrdkN.js} +1 -1
- package/dist/{install-BTw4h6La.js → install-D-9lCFRH.js} +1769 -1765
- package/dist/{isObject-BFrSZfip.js → isObject-DUOwb6Y1.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +271 -271
- package/dist/{useVidstackSrc-DggVBhQy.js → useVidstackSrc-BPU4ZTKo.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-Brto8BVf.js → vidstack-Bq6c3Bam-BLC86cjq.js} +3 -3
- package/dist/{vidstack-D2pY00kU-Cpy-wek9.js → vidstack-D2pY00kU-B0GzGoPA.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-BqFmvH0M.js → vidstack-DDXt6fpN-B1AzqLAc.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-DJIX4G2R.js → vidstack-D_-9AA6_-fYirBDFW.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-DBBU_lk_.js → vidstack-DqAw8m9J-_EYqIpq2.js} +1 -1
- package/dist/{vidstack-audio-C4CyIInn.js → vidstack-audio-DimmGI8i.js} +2 -2
- package/dist/{vidstack-dash-uK2dDz8T.js → vidstack-dash-BIBsHy_N.js} +4 -4
- package/dist/{vidstack-google-cast-C1HYF_2j.js → vidstack-google-cast-ApcoGPaM.js} +4 -4
- package/dist/{vidstack-hls-Bn3hnf9h.js → vidstack-hls-NJL0dPCO.js} +4 -4
- package/dist/{vidstack-video-Boo7uoZI.js → vidstack-video-liKbJKYS.js} +3 -3
- package/dist/{vidstack-vimeo-PNsaLSEO.js → vidstack-vimeo-AOeZ5FQk.js} +4 -4
- package/dist/{vidstack-youtube-CtY98HNF.js → vidstack-youtube-C2hIG0a-.js} +3 -3
- package/dist/{wt-action-bar-DQqNd2mj.js → wt-action-bar-CBEBrKl1.js} +1 -1
- package/dist/{wt-button-select-CzWp6E7X.js → wt-button-select-Cr925Kql.js} +1 -1
- package/dist/{wt-call-media-action-BMKcEg3T.js → wt-call-media-action-CMHvPOZ0.js} +1 -1
- package/dist/{wt-chat-emoji-CPpRiG3z.js → wt-chat-emoji-D7JnDZ0s.js} +2 -2
- package/dist/{wt-confirm-dialog-BQ_tHChS.js → wt-confirm-dialog-BBUUayGh.js} +1 -1
- package/dist/{wt-context-menu-D9A52yob.js → wt-context-menu-Dv-cVg1h.js} +1 -1
- package/dist/{wt-copy-action-SgnK45r-.js → wt-copy-action-B34Zhu--.js} +1 -1
- package/dist/{wt-datepicker-Cpmte3rg.js → wt-datepicker-CUBEYHf-.js} +1 -1
- package/dist/{wt-display-chip-items-DL5Q6Obr.js → wt-display-chip-items-DhGPtyyO.js} +1 -1
- package/dist/{wt-dual-panel-Cbp3-6Fz.js → wt-dual-panel-ByHOwLdX.js} +1 -1
- package/dist/{wt-dummy-CQoomGSQ.js → wt-dummy-DpBCEOgb.js} +1 -1
- package/dist/{wt-error-page-ND0BquL3.js → wt-error-page-CBhqtPBV.js} +1 -1
- package/dist/{wt-expansion-card-HYWe9uzx.js → wt-expansion-card-ldsWIEg9.js} +1 -1
- package/dist/{wt-expansion-panel-CDn9iF8y.js → wt-expansion-panel-17er_VFD.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-DRzlDKj3.js → wt-filters-panel-wrapper-BlZ8OWi4.js} +1 -1
- package/dist/{wt-galleria-B_9-n0Iv.js → wt-galleria-DPGUe8tO.js} +1 -1
- package/dist/{wt-inline-add-panel-D4vbb7DT.js → wt-inline-add-panel-C90PX4mw.js} +1 -1
- package/dist/{wt-navigation-menu-CoABCwJg.js → wt-navigation-menu-CBMktxWv.js} +1 -1
- package/dist/{wt-notifications-bar-BHwh2Uhl.js → wt-notifications-bar-Zs0RFbC5.js} +2 -2
- package/dist/{wt-pagination-CaBK5kAI.js → wt-pagination-CLNe5swk.js} +1 -1
- package/dist/{wt-player-CFAv3Bth.js → wt-player-ClxYX5kM.js} +2 -2
- package/dist/{wt-screen-recordings-action-Bkn5QjBL.js → wt-screen-recordings-action-DUGrp_Gq.js} +1 -1
- package/dist/{wt-search-bar-86T7O7I2.js → wt-search-bar-DhMt0MSr.js} +1 -1
- package/dist/{wt-selection-popup-ZJ0J-VDP.js → wt-selection-popup-4VJ0M_p2.js} +1 -1
- package/dist/wt-send-message-popup-DJMSyRFJ.js +579 -0
- package/dist/{wt-start-page-CbQDXOdl.js → wt-start-page-CpS9QZVX.js} +1 -1
- package/dist/{wt-status-select-DwWcH1x9.js → wt-status-select-B46i__hn.js} +1 -1
- package/dist/{wt-stepper-fv8Im1Gl.js → wt-stepper-Ci2E9SQp.js} +1 -1
- package/dist/{wt-table-Clbp4lq3.js → wt-table-CM2EEclB.js} +1 -1
- package/dist/{wt-table-actions-DiyOBZhY.js → wt-table-actions-Da9Vtjs0.js} +1 -1
- package/dist/{wt-table-column-select-D3oCCDNW.js → wt-table-column-select-CZqq7ahF.js} +2 -2
- package/dist/{wt-tabs-B8eLeduC.js → wt-tabs-C-3_r1VX.js} +1 -1
- package/dist/{wt-tags-input-CbaLK4J8.js → wt-tags-input-DUBENPCK.js} +2 -2
- package/dist/wt-timepicker-DPV53EMa.js +118 -0
- package/dist/{wt-tree-CwK_7_2I.js → wt-tree-QQs2AgdO.js} +2 -2
- package/dist/{wt-tree-table-DxhPCn7z.js → wt-tree-table-gVHR-SLS.js} +1 -1
- package/dist/wt-type-extension-value-input-CUVv370M.js +121 -0
- package/dist/{wt-vidstack-player-BpmqdjlG.js → wt-vidstack-player-D1HEV8N0.js} +10 -10
- package/package.json +1 -1
- package/src/components/index.js +5 -0
- package/src/components/on-demand/wt-send-message-popup/wt-send-message-popup.vue +121 -0
- package/src/components/wt-timepicker/wt-timepicker.vue +11 -1
- package/src/locale/en/en.js +1 -0
- package/src/locale/es/es.js +1 -0
- package/src/locale/kz/kz.js +1 -0
- package/src/locale/pl/pl.js +1 -0
- package/src/locale/ro/ro.js +1 -0
- package/src/locale/ru/ru.js +1 -0
- package/src/locale/uk/uk.js +1 -0
- package/src/locale/uz/uz.js +1 -0
- package/src/locale/vi/vi.js +1 -0
- package/types/components/on-demand/wt-send-message-popup/wt-send-message-popup.vue.d.ts +26 -0
- package/types/components/wt-timepicker/wt-timepicker.vue.d.ts +5 -0
- package/types/locale/en/en.d.ts +1 -0
- package/types/locale/es/es.d.ts +1 -0
- package/types/locale/i18n.d.ts +9 -0
- package/types/locale/index.d.ts +9 -0
- package/types/locale/kz/kz.d.ts +1 -0
- package/types/locale/pl/pl.d.ts +1 -0
- package/types/locale/ro/ro.d.ts +1 -0
- package/types/locale/ru/ru.d.ts +1 -0
- package/types/locale/uk/uk.d.ts +1 -0
- package/types/locale/uz/uz.d.ts +1 -0
- package/types/locale/vi/vi.d.ts +1 -0
- package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +5 -5
- package/dist/wt-timepicker-Dwf0Hdhv.js +0 -117
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<wt-popup
|
|
3
|
+
v-bind="$attrs"
|
|
4
|
+
class="wt-send-message-popup"
|
|
5
|
+
overflow
|
|
6
|
+
@close="emit('close')"
|
|
7
|
+
>
|
|
8
|
+
<template #header>
|
|
9
|
+
{{ t('reusable.sendMessage') }}
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<template #main>
|
|
13
|
+
<wt-textarea
|
|
14
|
+
v-model:model-value="draft.message"
|
|
15
|
+
:placeholder="t('objects.chat.draftPlaceholder')"
|
|
16
|
+
@enter="sendMessage"
|
|
17
|
+
/>
|
|
18
|
+
</template>
|
|
19
|
+
<template #actions>
|
|
20
|
+
<wt-chat-emoji
|
|
21
|
+
filled
|
|
22
|
+
:rounded="false"
|
|
23
|
+
class="wt-send-message-popup__emoji"
|
|
24
|
+
@insert-emoji="insertEmoji"
|
|
25
|
+
/>
|
|
26
|
+
|
|
27
|
+
<wt-button
|
|
28
|
+
icon="chat-send"
|
|
29
|
+
color="secondary"
|
|
30
|
+
:disabled="!draft.message"
|
|
31
|
+
wide
|
|
32
|
+
@click="sendMessage"
|
|
33
|
+
/>
|
|
34
|
+
</template>
|
|
35
|
+
</wt-popup>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script setup lang="ts">
|
|
39
|
+
import { AgentsAPI, MessagesServiceAPI } from '@webitel/api-services/api';
|
|
40
|
+
import { inject, onMounted, ref } from 'vue';
|
|
41
|
+
import { useI18n } from 'vue-i18n';
|
|
42
|
+
import { WtChatEmoji } from '../..';
|
|
43
|
+
|
|
44
|
+
interface ChatItem {
|
|
45
|
+
id: string;
|
|
46
|
+
protocol: string;
|
|
47
|
+
externalId: string;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
etag: string;
|
|
50
|
+
app: {
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
};
|
|
54
|
+
user: {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const props = defineProps<{
|
|
61
|
+
chatItem?: ChatItem;
|
|
62
|
+
userId: string;
|
|
63
|
+
}>();
|
|
64
|
+
|
|
65
|
+
const emit = defineEmits([
|
|
66
|
+
'close',
|
|
67
|
+
]);
|
|
68
|
+
const eventBus = inject('$eventBus');
|
|
69
|
+
const { t } = useI18n();
|
|
70
|
+
|
|
71
|
+
const generateNewDraft = () => {
|
|
72
|
+
return {
|
|
73
|
+
gateway: props.chatItem?.app || {},
|
|
74
|
+
provider: props.chatItem?.protocol || '',
|
|
75
|
+
message: '',
|
|
76
|
+
agentId: null,
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const draft = ref(generateNewDraft());
|
|
81
|
+
|
|
82
|
+
async function getAgentId(params) {
|
|
83
|
+
const { items } = await AgentsAPI.getList({
|
|
84
|
+
...params,
|
|
85
|
+
userId: props.userId,
|
|
86
|
+
});
|
|
87
|
+
draft.value.agentId = items[0]?.id;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const sendMessage = async () => {
|
|
91
|
+
const response = await MessagesServiceAPI.patch({
|
|
92
|
+
peers: [
|
|
93
|
+
{
|
|
94
|
+
via: draft.value.gateway.id,
|
|
95
|
+
id: props.chatItem?.externalId,
|
|
96
|
+
type: draft.value.provider,
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
variables: {
|
|
100
|
+
agentId: draft.value.agentId,
|
|
101
|
+
},
|
|
102
|
+
message: {
|
|
103
|
+
text: draft.value.message,
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
if (response.failure) {
|
|
107
|
+
eventBus.$emit('notification', {
|
|
108
|
+
type: 'error',
|
|
109
|
+
text: response.failure[0].error.message,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
emit('close');
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const insertEmoji = (emoji) => {
|
|
116
|
+
draft.value.message += emoji;
|
|
117
|
+
document.querySelector('textarea').focus();
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
onMounted(async () => await getAgentId());
|
|
121
|
+
</script>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
v-model:model-value="hour"
|
|
36
36
|
:disabled="disabled"
|
|
37
37
|
:label="labelHours"
|
|
38
|
-
:max-value="
|
|
38
|
+
:max-value="getHoursMaxValue"
|
|
39
39
|
:v="v"
|
|
40
40
|
hide-input-info
|
|
41
41
|
@blur="onHoursBlurEvent"
|
|
@@ -127,11 +127,16 @@ interface WtTimepickerProps {
|
|
|
127
127
|
* Custom validators for vuelidate
|
|
128
128
|
*/
|
|
129
129
|
customValidators?: unknown[];
|
|
130
|
+
/**
|
|
131
|
+
* remove max hour restriction
|
|
132
|
+
*/
|
|
133
|
+
noMaxHours?: boolean;
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
const props = withDefaults(defineProps<WtTimepickerProps>(), {
|
|
133
137
|
modelValue: 0,
|
|
134
138
|
dateMode: false,
|
|
139
|
+
noMaxHours: false,
|
|
135
140
|
label: '',
|
|
136
141
|
format: 'hh:mm:ss',
|
|
137
142
|
disabled: false,
|
|
@@ -167,6 +172,11 @@ const isHour = computed(() => props.format.includes('hh'));
|
|
|
167
172
|
const isMin = computed(() => props.format.includes('mm'));
|
|
168
173
|
const isSec = computed(() => props.format.includes('ss'));
|
|
169
174
|
|
|
175
|
+
const getHoursMaxValue = computed(() => {
|
|
176
|
+
if (props.noMaxHours || props.dateMode) return null;
|
|
177
|
+
return 23;
|
|
178
|
+
});
|
|
179
|
+
|
|
170
180
|
// labelDays() {
|
|
171
181
|
// if (this.noLabel) return null;
|
|
172
182
|
// return this.label ? null : this.$t('webitelUI.timepicker.day');
|
package/src/locale/en/en.js
CHANGED
package/src/locale/es/es.js
CHANGED
package/src/locale/kz/kz.js
CHANGED
package/src/locale/pl/pl.js
CHANGED
package/src/locale/ro/ro.js
CHANGED
package/src/locale/ru/ru.js
CHANGED
package/src/locale/uk/uk.js
CHANGED
package/src/locale/uz/uz.js
CHANGED
package/src/locale/vi/vi.js
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface ChatItem {
|
|
2
|
+
id: string;
|
|
3
|
+
protocol: string;
|
|
4
|
+
externalId: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
etag: string;
|
|
7
|
+
app: {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
user: {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Props = {
|
|
17
|
+
chatItem?: ChatItem;
|
|
18
|
+
userId: string;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
close: (...args: any[]) => void;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
onClose?: (...args: any[]) => any;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
@@ -44,6 +44,10 @@ interface WtTimepickerProps {
|
|
|
44
44
|
* Custom validators for vuelidate
|
|
45
45
|
*/
|
|
46
46
|
customValidators?: unknown[];
|
|
47
|
+
/**
|
|
48
|
+
* remove max hour restriction
|
|
49
|
+
*/
|
|
50
|
+
noMaxHours?: boolean;
|
|
47
51
|
}
|
|
48
52
|
declare var __VLS_7: {
|
|
49
53
|
label: string;
|
|
@@ -67,6 +71,7 @@ declare const __VLS_base: import("vue").DefineComponent<WtTimepickerProps, {}, {
|
|
|
67
71
|
format: string;
|
|
68
72
|
dateMode: boolean;
|
|
69
73
|
noLabel: boolean;
|
|
74
|
+
noMaxHours: boolean;
|
|
70
75
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
71
76
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
72
77
|
declare const _default: typeof __VLS_export;
|
package/types/locale/en/en.d.ts
CHANGED
package/types/locale/es/es.d.ts
CHANGED
package/types/locale/i18n.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
15
15
|
saveAs: string;
|
|
16
16
|
saved: string;
|
|
17
17
|
send: string;
|
|
18
|
+
sendMessage: string;
|
|
18
19
|
start: string;
|
|
19
20
|
close: string;
|
|
20
21
|
add: string;
|
|
@@ -841,6 +842,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
841
842
|
saveAs: string;
|
|
842
843
|
saved: string;
|
|
843
844
|
send: string;
|
|
845
|
+
sendMessage: string;
|
|
844
846
|
start: string;
|
|
845
847
|
close: string;
|
|
846
848
|
add: string;
|
|
@@ -1651,6 +1653,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
1651
1653
|
saveAs: string;
|
|
1652
1654
|
saved: string;
|
|
1653
1655
|
send: string;
|
|
1656
|
+
sendMessage: string;
|
|
1654
1657
|
start: string;
|
|
1655
1658
|
close: string;
|
|
1656
1659
|
add: string;
|
|
@@ -2463,6 +2466,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
2463
2466
|
saveAs: string;
|
|
2464
2467
|
saved: string;
|
|
2465
2468
|
send: string;
|
|
2469
|
+
sendMessage: string;
|
|
2466
2470
|
start: string;
|
|
2467
2471
|
close: string;
|
|
2468
2472
|
add: string;
|
|
@@ -3273,6 +3277,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
3273
3277
|
saveAs: string;
|
|
3274
3278
|
saved: string;
|
|
3275
3279
|
send: string;
|
|
3280
|
+
sendMessage: string;
|
|
3276
3281
|
start: string;
|
|
3277
3282
|
close: string;
|
|
3278
3283
|
add: string;
|
|
@@ -4085,6 +4090,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
4085
4090
|
saveAs: string;
|
|
4086
4091
|
saved: string;
|
|
4087
4092
|
send: string;
|
|
4093
|
+
sendMessage: string;
|
|
4088
4094
|
start: string;
|
|
4089
4095
|
close: string;
|
|
4090
4096
|
add: string;
|
|
@@ -4897,6 +4903,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
4897
4903
|
saveAs: string;
|
|
4898
4904
|
saved: string;
|
|
4899
4905
|
send: string;
|
|
4906
|
+
sendMessage: string;
|
|
4900
4907
|
start: string;
|
|
4901
4908
|
close: string;
|
|
4902
4909
|
add: string;
|
|
@@ -5709,6 +5716,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
5709
5716
|
saveAs: string;
|
|
5710
5717
|
saved: string;
|
|
5711
5718
|
send: string;
|
|
5719
|
+
sendMessage: string;
|
|
5712
5720
|
start: string;
|
|
5713
5721
|
close: string;
|
|
5714
5722
|
add: string;
|
|
@@ -6522,6 +6530,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
6522
6530
|
saveAs: string;
|
|
6523
6531
|
saved: string;
|
|
6524
6532
|
send: string;
|
|
6533
|
+
sendMessage: string;
|
|
6525
6534
|
start: string;
|
|
6526
6535
|
close: string;
|
|
6527
6536
|
add: string;
|
package/types/locale/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const messages: {
|
|
|
25
25
|
saveAs: string;
|
|
26
26
|
saved: string;
|
|
27
27
|
send: string;
|
|
28
|
+
sendMessage: string;
|
|
28
29
|
start: string;
|
|
29
30
|
close: string;
|
|
30
31
|
add: string;
|
|
@@ -851,6 +852,7 @@ export declare const messages: {
|
|
|
851
852
|
saveAs: string;
|
|
852
853
|
saved: string;
|
|
853
854
|
send: string;
|
|
855
|
+
sendMessage: string;
|
|
854
856
|
start: string;
|
|
855
857
|
close: string;
|
|
856
858
|
add: string;
|
|
@@ -1661,6 +1663,7 @@ export declare const messages: {
|
|
|
1661
1663
|
saveAs: string;
|
|
1662
1664
|
saved: string;
|
|
1663
1665
|
send: string;
|
|
1666
|
+
sendMessage: string;
|
|
1664
1667
|
start: string;
|
|
1665
1668
|
close: string;
|
|
1666
1669
|
add: string;
|
|
@@ -2473,6 +2476,7 @@ export declare const messages: {
|
|
|
2473
2476
|
saveAs: string;
|
|
2474
2477
|
saved: string;
|
|
2475
2478
|
send: string;
|
|
2479
|
+
sendMessage: string;
|
|
2476
2480
|
start: string;
|
|
2477
2481
|
close: string;
|
|
2478
2482
|
add: string;
|
|
@@ -3283,6 +3287,7 @@ export declare const messages: {
|
|
|
3283
3287
|
saveAs: string;
|
|
3284
3288
|
saved: string;
|
|
3285
3289
|
send: string;
|
|
3290
|
+
sendMessage: string;
|
|
3286
3291
|
start: string;
|
|
3287
3292
|
close: string;
|
|
3288
3293
|
add: string;
|
|
@@ -4095,6 +4100,7 @@ export declare const messages: {
|
|
|
4095
4100
|
saveAs: string;
|
|
4096
4101
|
saved: string;
|
|
4097
4102
|
send: string;
|
|
4103
|
+
sendMessage: string;
|
|
4098
4104
|
start: string;
|
|
4099
4105
|
close: string;
|
|
4100
4106
|
add: string;
|
|
@@ -4907,6 +4913,7 @@ export declare const messages: {
|
|
|
4907
4913
|
saveAs: string;
|
|
4908
4914
|
saved: string;
|
|
4909
4915
|
send: string;
|
|
4916
|
+
sendMessage: string;
|
|
4910
4917
|
start: string;
|
|
4911
4918
|
close: string;
|
|
4912
4919
|
add: string;
|
|
@@ -5719,6 +5726,7 @@ export declare const messages: {
|
|
|
5719
5726
|
saveAs: string;
|
|
5720
5727
|
saved: string;
|
|
5721
5728
|
send: string;
|
|
5729
|
+
sendMessage: string;
|
|
5722
5730
|
start: string;
|
|
5723
5731
|
close: string;
|
|
5724
5732
|
add: string;
|
|
@@ -6532,6 +6540,7 @@ export declare const messages: {
|
|
|
6532
6540
|
saveAs: string;
|
|
6533
6541
|
saved: string;
|
|
6534
6542
|
send: string;
|
|
6543
|
+
sendMessage: string;
|
|
6535
6544
|
start: string;
|
|
6536
6545
|
close: string;
|
|
6537
6546
|
add: string;
|
package/types/locale/kz/kz.d.ts
CHANGED
package/types/locale/pl/pl.d.ts
CHANGED
package/types/locale/ro/ro.d.ts
CHANGED
package/types/locale/ru/ru.d.ts
CHANGED
package/types/locale/uk/uk.d.ts
CHANGED
package/types/locale/uz/uz.d.ts
CHANGED
package/types/locale/vi/vi.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const FlowTypeApplications: {
|
|
2
|
-
readonly voice: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "log" | "notification" | "schema" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "
|
|
3
|
-
readonly chat: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "log" | "notification" | "schema" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "
|
|
4
|
-
readonly processing: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "log" | "notification" | "schema" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "
|
|
5
|
-
readonly service: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "log" | "notification" | "schema" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "
|
|
6
|
-
readonly default: ("string" | "function" | "set" | "menu" | "stop" | "switch" | "export" | "calendar" | "trigger" | "recordFile" | "list" | "execute" | "math" | "start" | "log" | "notification" | "hangup" | "schema" | "tts" | "userInfo" | "answer" | "goto" | "if" | "js" | "plataByMono" | "iFrame" | "markIVR" | "softSleep" | "setGrantee" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "playback" | "ringReady" | "preAnswer" | "sipRedirect" | "ringback" | "bridge" | "conference" | "generateLink" | "inBandDTMF" | "flushDTMF" | "updateCid" | "park" | "joinQueue" | "recordSession" | "memberInfo" | "getQueueAgents" | "joinAgent" | "callbackQueue" | "patchMembers" | "recvMessage" | "sendText" | "sendFile" | "sendEmail" | "sendTts" | "stt" | "
|
|
2
|
+
readonly voice: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "log" | "notification" | "schema" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "broadcastChatMessage" | "getEmail" | "customModule")[], "trigger", "markIVR", "setGrantee", "classifier", "ringReady", "preAnswer", "answer", "sipRedirect", "ringback", "updateCid", "park", "conference", "bridge", "hangup", "inBandDTMF", "flushDTMF", "playback", "recordFile", "recordSession", "generateLink", "tts", "joinQueue", "joinAgent"];
|
|
3
|
+
readonly chat: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "log" | "notification" | "schema" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "broadcastChatMessage" | "getEmail" | "customModule")[], "trigger", "menu", "recvMessage", "sendText", "sendTts", "sendFile", "stt", "generateLink", "classifier", "joinQueue", "chatHistory", "chatAi"];
|
|
4
|
+
readonly processing: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "log" | "notification" | "schema" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "broadcastChatMessage" | "getEmail" | "customModule")[], "makeCall", "formTextfield", "formSelect", "formSelectService", "formText", "formDatetimePicker", "formRichTextEditor", "formSelectFromObject", "formSelectCaseStatus", "formTable", "formFile", "generateForm", "attemptResult", "iFrame"];
|
|
5
|
+
readonly service: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "log" | "notification" | "schema" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "broadcastChatMessage" | "getEmail" | "customModule")[], "attemptResult", "stt"];
|
|
6
|
+
readonly default: ("string" | "function" | "set" | "menu" | "stop" | "switch" | "export" | "calendar" | "trigger" | "recordFile" | "list" | "execute" | "math" | "start" | "log" | "notification" | "hangup" | "schema" | "sendMessage" | "tts" | "userInfo" | "answer" | "goto" | "if" | "js" | "plataByMono" | "iFrame" | "markIVR" | "softSleep" | "setGrantee" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "playback" | "ringReady" | "preAnswer" | "sipRedirect" | "ringback" | "bridge" | "conference" | "generateLink" | "inBandDTMF" | "flushDTMF" | "updateCid" | "park" | "joinQueue" | "recordSession" | "memberInfo" | "getQueueAgents" | "joinAgent" | "callbackQueue" | "patchMembers" | "recvMessage" | "sendText" | "sendFile" | "sendEmail" | "sendTts" | "stt" | "classifier" | "broadcastChatMessage" | "chatHistory" | "chatAi" | "makeCall" | "formTextfield" | "formSelect" | "formSelectService" | "formTable" | "formText" | "formDatetimePicker" | "formRichTextEditor" | "formSelectFromObject" | "formSelectCaseStatus" | "generateForm" | "attemptResult" | "getEmail" | "formFile" | "customModule")[];
|
|
7
7
|
};
|
|
8
8
|
export type FlowTypeApplications = (typeof FlowTypeApplications)[keyof typeof FlowTypeApplications];
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { defineComponent as q, toRefs as R, computed as o, resolveComponent as w, createElementBlock as O, openBlock as d, normalizeClass as j, unref as t, createBlock as r, createCommentVNode as m, createElementVNode as A, mergeProps as F, withCtx as x, renderSlot as G, normalizeProps as J, guardReactiveProps as K, createTextVNode as S, toDisplayString as y, nextTick as Q } from "vue";
|
|
2
|
-
import { B as W, z as X, C as Y, M as Z, _ as ee } from "./install-BTw4h6La.js";
|
|
3
|
-
const le = { class: "wt-timepicker__wrapper" }, c = 3600, M = 60, ae = /* @__PURE__ */ q({
|
|
4
|
-
__name: "wt-timepicker",
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: { default: 0 },
|
|
7
|
-
dateMode: { type: Boolean, default: !1 },
|
|
8
|
-
label: { default: "" },
|
|
9
|
-
format: { default: "hh:mm:ss" },
|
|
10
|
-
disabled: { type: Boolean, default: !1 },
|
|
11
|
-
labelProps: { default: () => ({}) },
|
|
12
|
-
noLabel: { type: Boolean, default: !1 },
|
|
13
|
-
required: { type: Boolean, default: !1 },
|
|
14
|
-
v: { default: null },
|
|
15
|
-
regleValidation: { default: null },
|
|
16
|
-
customValidators: { default: () => [] }
|
|
17
|
-
},
|
|
18
|
-
emits: ["update:modelValue"],
|
|
19
|
-
setup(u, { emit: B }) {
|
|
20
|
-
const e = u, i = B, { t: b } = W(), { v, customValidators: C, regleValidation: h } = R(e), { isValidation: I, invalid: k, validationText: g, validationTextColor: D } = X({
|
|
21
|
-
v,
|
|
22
|
-
customValidators: C,
|
|
23
|
-
regleValidation: h
|
|
24
|
-
}), _ = o(() => e.format.includes("hh")), H = o(() => e.format.includes("mm")), L = o(() => e.format.includes("ss")), U = o(() => e.noLabel || e.label ? null : b("webitelUI.timepicker.hour")), z = o(() => e.noLabel || e.label ? null : b("webitelUI.timepicker.min")), E = o(() => e.noLabel || e.label ? null : b("webitelUI.timepicker.sec")), n = o({
|
|
25
|
-
get() {
|
|
26
|
-
return e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).getHours() : Math.floor(+e.modelValue / c);
|
|
27
|
-
},
|
|
28
|
-
set(l) {
|
|
29
|
-
const a = e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).setHours(l) : +e.modelValue - n.value * c + l * c;
|
|
30
|
-
i("update:modelValue", a);
|
|
31
|
-
}
|
|
32
|
-
}), f = o({
|
|
33
|
-
get() {
|
|
34
|
-
return e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).getMinutes() : Math.floor(+e.modelValue / M % 60);
|
|
35
|
-
},
|
|
36
|
-
set(l) {
|
|
37
|
-
const a = e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).setMinutes(l) : +e.modelValue - f.value * M + l * M;
|
|
38
|
-
i("update:modelValue", a);
|
|
39
|
-
}
|
|
40
|
-
}), V = o({
|
|
41
|
-
get() {
|
|
42
|
-
return e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).getSeconds() : Math.floor(+e.modelValue % 60);
|
|
43
|
-
},
|
|
44
|
-
set(l) {
|
|
45
|
-
const a = e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).setSeconds(l) : +e.modelValue - V.value + +l;
|
|
46
|
-
i("update:modelValue", a);
|
|
47
|
-
}
|
|
48
|
-
}), N = o(() => e.required ? `${e.label} (${e.format})*` : `${e.label} (${e.format})`), P = () => {
|
|
49
|
-
const l = e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).setHours(n.value) : +e.modelValue - n.value * c + n.value * c;
|
|
50
|
-
i("update:modelValue", 0), Q(() => {
|
|
51
|
-
i("update:modelValue", l);
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
return (l, a) => {
|
|
55
|
-
const T = w("wt-label"), p = w("wt-time-input"), $ = w("wt-message");
|
|
56
|
-
return d(), O("div", {
|
|
57
|
-
class: j([{ "wt-timepicker--invalid": t(k) }, "wt-timepicker"])
|
|
58
|
-
}, [
|
|
59
|
-
u.label || !u.noLabel ? (d(), r(T, F({ key: 0 }, u.labelProps, { invalid: t(k) }), {
|
|
60
|
-
default: x(() => [
|
|
61
|
-
G(l.$slots, "label", J(K({ label: u.label })), () => [
|
|
62
|
-
S(y(N.value), 1)
|
|
63
|
-
], !0)
|
|
64
|
-
], void 0, !0),
|
|
65
|
-
_: 3
|
|
66
|
-
}, 16, ["invalid"])) : m("", !0),
|
|
67
|
-
A("div", le, [
|
|
68
|
-
_.value ? (d(), r(p, {
|
|
69
|
-
key: 0,
|
|
70
|
-
"model-value": n.value,
|
|
71
|
-
"onUpdate:modelValue": a[0] || (a[0] = (s) => n.value = s),
|
|
72
|
-
disabled: u.disabled,
|
|
73
|
-
label: U.value,
|
|
74
|
-
"max-value": u.dateMode ? null : 23,
|
|
75
|
-
v: t(v),
|
|
76
|
-
"hide-input-info": "",
|
|
77
|
-
onBlur: P
|
|
78
|
-
}, null, 8, ["model-value", "disabled", "label", "max-value", "v"])) : m("", !0),
|
|
79
|
-
H.value ? (d(), r(p, {
|
|
80
|
-
key: 1,
|
|
81
|
-
"model-value": f.value,
|
|
82
|
-
"onUpdate:modelValue": a[1] || (a[1] = (s) => f.value = s),
|
|
83
|
-
disabled: u.disabled,
|
|
84
|
-
label: z.value,
|
|
85
|
-
"max-value": 59,
|
|
86
|
-
v: t(v),
|
|
87
|
-
"hide-input-info": ""
|
|
88
|
-
}, null, 8, ["model-value", "disabled", "label", "v"])) : m("", !0),
|
|
89
|
-
L.value ? (d(), r(p, {
|
|
90
|
-
key: 2,
|
|
91
|
-
"model-value": V.value,
|
|
92
|
-
"onUpdate:modelValue": a[2] || (a[2] = (s) => V.value = s),
|
|
93
|
-
disabled: u.disabled,
|
|
94
|
-
label: E.value,
|
|
95
|
-
"max-value": 59,
|
|
96
|
-
v: t(v),
|
|
97
|
-
"hide-input-info": ""
|
|
98
|
-
}, null, 8, ["model-value", "disabled", "label", "v"])) : m("", !0)
|
|
99
|
-
]),
|
|
100
|
-
t(I) && t(g) ? (d(), r($, {
|
|
101
|
-
key: 1,
|
|
102
|
-
color: t(D),
|
|
103
|
-
variant: t(Z).SIMPLE,
|
|
104
|
-
size: t(Y).SM
|
|
105
|
-
}, {
|
|
106
|
-
default: x(() => [
|
|
107
|
-
S(y(t(g)), 1)
|
|
108
|
-
], void 0, !0),
|
|
109
|
-
_: 1
|
|
110
|
-
}, 8, ["color", "variant", "size"])) : m("", !0)
|
|
111
|
-
], 2);
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
}), ue = /* @__PURE__ */ ee(ae, [["__scopeId", "data-v-35e5a4db"]]);
|
|
115
|
-
export {
|
|
116
|
-
ue as default
|
|
117
|
-
};
|