@webitel/ui-sdk 26.8.49 → 26.8.51
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-rgtvDufW.js +39250 -0
- package/dist/{components-gG_-DJ10.js → components-9JJurJkY.js} +639 -631
- package/dist/{enums-De8CDKZ1.js → enums-DY3jIXFF.js} +50 -29
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +3 -3
- package/dist/ui-sdk.umd.cjs +394 -394
- package/dist/{useValidation-D6P-wRwq.js → useValidation-BD4S-sEW.js} +1 -1
- package/dist/{wt-action-bar-HBm22ay5.js → wt-action-bar-C4JukltF.js} +2 -2
- package/dist/{wt-button-B7B7qITq.js → wt-button-2_aOV7LX.js} +4 -4
- package/dist/{wt-chat-emoji-mH3xAWyP.js → wt-chat-emoji-D2VNcMWj.js} +4 -4
- package/dist/{wt-datepicker-D5Af57PB.js → wt-datepicker-H4E0JyRE.js} +78 -51
- package/dist/{wt-display-chip-items-DnL_Twmy.js → wt-display-chip-items-Dk-8hhAU.js} +1 -1
- package/dist/{wt-dual-panel-BEGLGU7F.js → wt-dual-panel-C98aGU8o.js} +1 -1
- package/dist/{wt-expansion-card-CpmnVJ03.js → wt-expansion-card-CEMaWXCy.js} +1 -1
- package/dist/{wt-expansion-panel-Br7JPc5X.js → wt-expansion-panel-BjeXHSay.js} +1 -1
- package/dist/{wt-icon-09f_Vpk_.js → wt-icon-Ct0E7k_d.js} +1 -1
- package/dist/{wt-icon-action-BBmutGsL.js → wt-icon-action-DB6P4E4K.js} +1 -1
- package/dist/{wt-icon-btn-DvrrxhWx.js → wt-icon-btn-DZa_qsai.js} +1 -1
- package/dist/{wt-notifications-bar-0o0yhR7P.js → wt-notifications-bar-BEomlIrN.js} +2 -2
- package/dist/{wt-player-D_kVPIdJ.js → wt-player-1-8X7Uo8.js} +3 -3
- package/dist/{wt-search-bar-Dnjkgro3.js → wt-search-bar-DzzSQyB3.js} +1 -1
- package/dist/{wt-send-message-popup-C-fqzFxG.js → wt-send-message-popup-BYV75cZf.js} +2 -2
- package/dist/{wt-status-select-DL1bOn9G.js → wt-status-select-BuojqV_1.js} +9 -9
- package/dist/{wt-timepicker-CAkO0jFY.js → wt-timepicker-RhM7Sln_.js} +2 -2
- package/dist/{wt-toast-DrfbAfTj.js → wt-toast-eWzfeYuz.js} +2 -2
- package/dist/{wt-tree-table-DJGISZ65.js → wt-tree-table-DvG6KLLB.js} +1 -1
- package/dist/{wt-type-extension-value-input-jb7TbSvV.js → wt-type-extension-value-input-BYoxNwD4.js} +3 -3
- package/dist/{wt-vidstack-player-BrDmQ4dp.js → wt-vidstack-player-B-vb7PqO.js} +4 -4
- package/package.json +3 -1
- package/src/components/wt-datepicker/_internals/composables/useCloseOnAnchorHidden.ts +51 -0
- package/src/components/wt-datepicker/_internals/composables/useDatepicker.ts +17 -1
- package/src/components/wt-datepicker/wt-datepicker.vue +1 -0
- package/src/enums/QueueType/QueueType.enum.ts +12 -31
- package/src/enums/RelativeDatetimeValue/RelativeDatetimeValue.ts +1 -11
- package/src/locale/en/en.js +64 -0
- package/src/locale/es/es.js +64 -0
- package/src/locale/kz/kz.js +64 -0
- package/src/locale/pl/pl.js +64 -0
- package/src/locale/ro/ro.js +64 -0
- package/src/locale/ru/ru.js +64 -0
- package/src/locale/uk/uk.js +64 -0
- package/src/locale/uz/uz.js +64 -0
- package/src/locale/vi/vi.js +64 -0
- package/src/scripts/normalizeDatetime.ts +7 -88
- package/types/.tsbuildinfo +1 -1
- package/types/components/wt-datepicker/_internals/composables/useCloseOnAnchorHidden.d.ts +21 -0
- package/types/components/wt-datepicker/_internals/composables/useDatepicker.d.ts +1 -0
- package/types/enums/QueueType/QueueType.enum.d.ts +9 -28
- package/types/enums/RelativeDatetimeValue/RelativeDatetimeValue.d.ts +1 -7
- package/types/locale/en/en.d.ts +64 -0
- package/types/locale/es/es.d.ts +87 -3
- package/types/locale/i18n.d.ts +576 -0
- package/types/locale/index.d.ts +576 -0
- package/types/locale/kz/kz.d.ts +87 -3
- package/types/locale/pl/pl.d.ts +87 -3
- package/types/locale/ro/ro.d.ts +87 -3
- package/types/locale/ru/ru.d.ts +87 -3
- package/types/locale/uk/uk.d.ts +87 -3
- package/types/locale/uz/uz.d.ts +87 -3
- package/types/locale/vi/vi.d.ts +87 -3
- package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +1 -1
- package/types/scripts/normalizeDatetime.d.ts +1 -8
- package/dist/clients-DBqdsc05.js +0 -38757
package/src/locale/uz/uz.js
CHANGED
|
@@ -229,6 +229,34 @@ export default {
|
|
|
229
229
|
[snakeToCamel(AgentStatus.BreakOut)]: 'Tanaffus',
|
|
230
230
|
},
|
|
231
231
|
},
|
|
232
|
+
bucket: 'Bucket | Buckets',
|
|
233
|
+
joinedAt: "Qo'shilgan sana",
|
|
234
|
+
leavingAt: 'Chiqilgan sana',
|
|
235
|
+
offeringAt: 'Taklif qilingan sana',
|
|
236
|
+
stopCause: {
|
|
237
|
+
stopCause: 'Tugatish sababi',
|
|
238
|
+
abandoned: 'Abandoned',
|
|
239
|
+
timeout: 'Vaqt',
|
|
240
|
+
cancel: 'Bekor qilish',
|
|
241
|
+
success: 'Muvaffaqiyatli',
|
|
242
|
+
failed: 'Yaroqsiz',
|
|
243
|
+
missed: 'Bekor qilindi',
|
|
244
|
+
expired: 'Yaroqli',
|
|
245
|
+
canceledByTimeout: 'Vaqt tugashi sababli bekor qilindi',
|
|
246
|
+
},
|
|
247
|
+
memberPriority: 'Prioritet',
|
|
248
|
+
attempts: 'Urinishlar',
|
|
249
|
+
callReportingResult: {
|
|
250
|
+
result: 'Natija',
|
|
251
|
+
abandoned: 'Bekor qilindi',
|
|
252
|
+
cancel: 'Bekor qilindi',
|
|
253
|
+
success: 'Muvaffaqiyatli',
|
|
254
|
+
failed: 'Yaroqsiz',
|
|
255
|
+
missed: 'Bekor qilindi',
|
|
256
|
+
timeout: 'Vaqt',
|
|
257
|
+
endless: 'Cheksiz',
|
|
258
|
+
transferred: 'Uzatilgan',
|
|
259
|
+
},
|
|
232
260
|
flow: {
|
|
233
261
|
name: 'Oqim sxemasi | Oqim sxemalari',
|
|
234
262
|
type: {
|
|
@@ -706,6 +734,9 @@ export default {
|
|
|
706
734
|
author: ({ linked }) => {
|
|
707
735
|
return linked('cases.author');
|
|
708
736
|
},
|
|
737
|
+
bucket: ({ linked }) => {
|
|
738
|
+
return linked('objects.bucket');
|
|
739
|
+
},
|
|
709
740
|
cause: ({ linked }) => {
|
|
710
741
|
return linked('objects.hangupCause');
|
|
711
742
|
},
|
|
@@ -748,6 +779,39 @@ export default {
|
|
|
748
779
|
hasUser: ({ linked }) => {
|
|
749
780
|
return linked('objects.user');
|
|
750
781
|
},
|
|
782
|
+
joinedAt: ({ linked }) => {
|
|
783
|
+
return linked('objects.joinedAt');
|
|
784
|
+
},
|
|
785
|
+
leavingAt: ({ linked }) => {
|
|
786
|
+
return linked('objects.leavingAt');
|
|
787
|
+
},
|
|
788
|
+
offeringAt: ({ linked }) => {
|
|
789
|
+
return linked('objects.offeringAt');
|
|
790
|
+
},
|
|
791
|
+
stopCause: ({ linked }) => {
|
|
792
|
+
return linked('objects.stopCause.stopCause');
|
|
793
|
+
},
|
|
794
|
+
memberPriority: ({ linked }) => {
|
|
795
|
+
return linked('objects.memberPriority');
|
|
796
|
+
},
|
|
797
|
+
attempts: ({ linked }) => {
|
|
798
|
+
return linked('objects.attempts');
|
|
799
|
+
},
|
|
800
|
+
name: ({ linked }) => {
|
|
801
|
+
return linked('reusable.name');
|
|
802
|
+
},
|
|
803
|
+
destination: ({ linked }) => {
|
|
804
|
+
return linked('vocabulary.destination');
|
|
805
|
+
},
|
|
806
|
+
duration: ({ linked }) => {
|
|
807
|
+
return linked('vocabulary.duration');
|
|
808
|
+
},
|
|
809
|
+
result: ({ linked }) => {
|
|
810
|
+
return linked('objects.callReportingResult.result');
|
|
811
|
+
},
|
|
812
|
+
tags: ({ linked }) => {
|
|
813
|
+
return linked('vocabulary.tag');
|
|
814
|
+
},
|
|
751
815
|
impacted: ({ linked }) => {
|
|
752
816
|
return linked('cases.impacted');
|
|
753
817
|
},
|
package/src/locale/vi/vi.js
CHANGED
|
@@ -229,6 +229,34 @@ export default {
|
|
|
229
229
|
[snakeToCamel(AgentStatus.BreakOut)]: 'Giải lao',
|
|
230
230
|
},
|
|
231
231
|
},
|
|
232
|
+
bucket: 'Thùng chứa',
|
|
233
|
+
joinedAt: 'Tham gia lúc',
|
|
234
|
+
leavingAt: 'Rời lúc',
|
|
235
|
+
offeringAt: 'Đề xuất lúc',
|
|
236
|
+
stopCause: {
|
|
237
|
+
stopCause: 'Nguyên nhân kết thúc',
|
|
238
|
+
abandoned: 'Bỏ qua',
|
|
239
|
+
timeout: 'Hết thời gian',
|
|
240
|
+
cancel: 'Hủy',
|
|
241
|
+
success: 'Thành công',
|
|
242
|
+
failed: 'Thất bại',
|
|
243
|
+
missed: 'Bỏ qua',
|
|
244
|
+
expired: 'Hết hạn',
|
|
245
|
+
canceledByTimeout: 'Đã hủy do hết thời gian chờ',
|
|
246
|
+
},
|
|
247
|
+
memberPriority: 'Ưu tiên',
|
|
248
|
+
attempts: 'Lần thử',
|
|
249
|
+
callReportingResult: {
|
|
250
|
+
result: 'Kết quả',
|
|
251
|
+
abandoned: 'Bỏ qua',
|
|
252
|
+
cancel: 'Hủy',
|
|
253
|
+
success: 'Thành công',
|
|
254
|
+
failed: 'Thất bại',
|
|
255
|
+
missed: 'Bỏ qua',
|
|
256
|
+
timeout: 'Hết thời gian',
|
|
257
|
+
endless: 'Vô hạn',
|
|
258
|
+
transferred: 'Chuyển đổi',
|
|
259
|
+
},
|
|
232
260
|
flow: {
|
|
233
261
|
name: 'Sơ đồ luồng | Sơ đồ luồng',
|
|
234
262
|
type: {
|
|
@@ -704,6 +732,9 @@ export default {
|
|
|
704
732
|
author: ({ linked }) => {
|
|
705
733
|
return linked('cases.author');
|
|
706
734
|
},
|
|
735
|
+
bucket: ({ linked }) => {
|
|
736
|
+
return linked('objects.bucket');
|
|
737
|
+
},
|
|
707
738
|
cause: ({ linked }) => {
|
|
708
739
|
return linked('objects.hangupCause');
|
|
709
740
|
},
|
|
@@ -746,6 +777,39 @@ export default {
|
|
|
746
777
|
hasUser: ({ linked }) => {
|
|
747
778
|
return linked('objects.user');
|
|
748
779
|
},
|
|
780
|
+
joinedAt: ({ linked }) => {
|
|
781
|
+
return linked('objects.joinedAt');
|
|
782
|
+
},
|
|
783
|
+
leavingAt: ({ linked }) => {
|
|
784
|
+
return linked('objects.leavingAt');
|
|
785
|
+
},
|
|
786
|
+
offeringAt: ({ linked }) => {
|
|
787
|
+
return linked('objects.offeringAt');
|
|
788
|
+
},
|
|
789
|
+
stopCause: ({ linked }) => {
|
|
790
|
+
return linked('objects.stopCause.stopCause');
|
|
791
|
+
},
|
|
792
|
+
memberPriority: ({ linked }) => {
|
|
793
|
+
return linked('objects.memberPriority');
|
|
794
|
+
},
|
|
795
|
+
attempts: ({ linked }) => {
|
|
796
|
+
return linked('objects.attempts');
|
|
797
|
+
},
|
|
798
|
+
name: ({ linked }) => {
|
|
799
|
+
return linked('reusable.name');
|
|
800
|
+
},
|
|
801
|
+
destination: ({ linked }) => {
|
|
802
|
+
return linked('vocabulary.destination');
|
|
803
|
+
},
|
|
804
|
+
duration: ({ linked }) => {
|
|
805
|
+
return linked('vocabulary.duration');
|
|
806
|
+
},
|
|
807
|
+
result: ({ linked }) => {
|
|
808
|
+
return linked('objects.callReportingResult.result');
|
|
809
|
+
},
|
|
810
|
+
tags: ({ linked }) => {
|
|
811
|
+
return linked('vocabulary.tag');
|
|
812
|
+
},
|
|
749
813
|
impacted: ({ linked }) => {
|
|
750
814
|
return linked('cases.impacted');
|
|
751
815
|
},
|
|
@@ -1,88 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from 'date-fns';
|
|
9
|
-
|
|
10
|
-
import { RelativeDatetimeValue } from '../enums';
|
|
11
|
-
|
|
12
|
-
export type RelativeDatetimeRoundOption =
|
|
13
|
-
| 'start'
|
|
14
|
-
| 'end'; /* for "from" or "to" */
|
|
15
|
-
|
|
16
|
-
export type NormalizeDatetimeValueParam =
|
|
17
|
-
| RelativeDatetimeValue
|
|
18
|
-
| number
|
|
19
|
-
| string
|
|
20
|
-
| null
|
|
21
|
-
| undefined;
|
|
22
|
-
|
|
23
|
-
export type NormalizeDatetimeOptions = {
|
|
24
|
-
round?: RelativeDatetimeRoundOption;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const isRelativeDatetimeValue = (
|
|
28
|
-
value: unknown,
|
|
29
|
-
): value is RelativeDatetimeValue => {
|
|
30
|
-
return (
|
|
31
|
-
typeof value === 'string' &&
|
|
32
|
-
(Object.values(RelativeDatetimeValue) as string[]).includes(value)
|
|
33
|
-
);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
const convertRelativeDatetimeToTimestamp = (
|
|
37
|
-
relativeValue: RelativeDatetimeValue,
|
|
38
|
-
options?: NormalizeDatetimeOptions,
|
|
39
|
-
): number => {
|
|
40
|
-
if (options?.round === 'end') {
|
|
41
|
-
switch (relativeValue) {
|
|
42
|
-
case RelativeDatetimeValue.Today:
|
|
43
|
-
return endOfToday().getTime();
|
|
44
|
-
case RelativeDatetimeValue.ThisWeek:
|
|
45
|
-
return endOfWeek(Date.now(), {
|
|
46
|
-
weekStartsOn: 1,
|
|
47
|
-
}).getTime();
|
|
48
|
-
case RelativeDatetimeValue.ThisMonth:
|
|
49
|
-
return endOfMonth(Date.now()).getTime();
|
|
50
|
-
default:
|
|
51
|
-
return Date.now();
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
switch (relativeValue) {
|
|
55
|
-
case RelativeDatetimeValue.Today:
|
|
56
|
-
return startOfToday().getTime();
|
|
57
|
-
case RelativeDatetimeValue.ThisWeek:
|
|
58
|
-
return startOfWeek(Date.now(), {
|
|
59
|
-
weekStartsOn: 1,
|
|
60
|
-
}).getTime();
|
|
61
|
-
case RelativeDatetimeValue.ThisMonth:
|
|
62
|
-
return startOfMonth(Date.now()).getTime();
|
|
63
|
-
default:
|
|
64
|
-
return Date.now();
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const normalizeToTimestamp = (
|
|
69
|
-
value?: NormalizeDatetimeValueParam,
|
|
70
|
-
options: NormalizeDatetimeOptions = {},
|
|
71
|
-
): number => {
|
|
72
|
-
if (value == null) {
|
|
73
|
-
return 0;
|
|
74
|
-
}
|
|
75
|
-
if (typeof value === 'number') {
|
|
76
|
-
return value;
|
|
77
|
-
}
|
|
78
|
-
if (isRelativeDatetimeValue(value)) {
|
|
79
|
-
return convertRelativeDatetimeToTimestamp(value, options);
|
|
80
|
-
}
|
|
81
|
-
if (typeof value === 'string') {
|
|
82
|
-
if (+value) {
|
|
83
|
-
return +value;
|
|
84
|
-
}
|
|
85
|
-
return 0;
|
|
86
|
-
}
|
|
87
|
-
return Date.now();
|
|
88
|
-
};
|
|
1
|
+
export {
|
|
2
|
+
isRelativeDatetimeValue,
|
|
3
|
+
type NormalizeDatetimeOptions,
|
|
4
|
+
type NormalizeDatetimeValueParam,
|
|
5
|
+
normalizeToTimestamp,
|
|
6
|
+
type RelativeDatetimeRoundOption,
|
|
7
|
+
} from '@webitel/api-services/scripts';
|