@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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @HlukhovYe
|
|
3
|
+
*
|
|
4
|
+
* https://webitel.atlassian.net/browse/WTEL-10175
|
|
5
|
+
*
|
|
6
|
+
* PrimeVue's DatePicker only closes its overlay on window resize or on scroll
|
|
7
|
+
* of the input's scrollable ancestors — it has no way to notice the input
|
|
8
|
+
* itself disappearing (e.g. a tab switch, a `v-if`, or a collapsing parent
|
|
9
|
+
* that doesn't fire scroll/resize). When that happens the overlay is left
|
|
10
|
+
* open and detached from its anchor.
|
|
11
|
+
*
|
|
12
|
+
* Watches the datepicker's root element with an IntersectionObserver, which
|
|
13
|
+
* also fires when the element is hidden via `display: none` or detached from
|
|
14
|
+
* the layout, and force-closes the overlay when that happens.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useCloseOnAnchorHidden(getAnchor: () => HTMLElement | null, getDatepicker: () => {
|
|
17
|
+
overlayVisible?: boolean;
|
|
18
|
+
} | null): {
|
|
19
|
+
watch: () => void;
|
|
20
|
+
unwatch: () => void;
|
|
21
|
+
};
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
export declare function useDatepicker(getInput: () => HTMLInputElement | null, getDatepicker: () => {
|
|
13
13
|
rawValue: Date | null;
|
|
14
14
|
updateModel: (v: Date) => void;
|
|
15
|
+
overlayVisible?: boolean;
|
|
15
16
|
} | null, showTime: () => boolean, isClearable: () => boolean): {
|
|
16
17
|
onBlur: () => void;
|
|
17
18
|
lockOverlay: (panel: HTMLElement) => void;
|
|
@@ -1,28 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly OUTBOUND_JOB_QUEUE: 8;
|
|
11
|
-
readonly IM_CHAT_QUEUE: 9;
|
|
12
|
-
};
|
|
13
|
-
export type QueueType = (typeof QueueType)[keyof typeof QueueType];
|
|
14
|
-
export declare const QueueTypeName: {
|
|
15
|
-
readonly OFFLINE_QUEUE: "offline";
|
|
16
|
-
readonly INBOUND_QUEUE: "inbound";
|
|
17
|
-
readonly OUTBOUND_IVR_QUEUE: "ivr";
|
|
18
|
-
readonly PREVIEW_DIALER: "preview";
|
|
19
|
-
readonly PROGRESSIVE_DIALER: "progressive";
|
|
20
|
-
readonly PREDICTIVE_DIALER: "predictive";
|
|
21
|
-
readonly CHAT_INBOUND_QUEUE: "inbound chat";
|
|
22
|
-
readonly INBOUND_JOB_QUEUE: "task";
|
|
23
|
-
readonly OUTBOUND_JOB_QUEUE: "outbound_task";
|
|
24
|
-
readonly OUTBOUND_CALL: "outbound_call";
|
|
25
|
-
readonly IM_CHAT_QUEUE: "im_chat";
|
|
26
|
-
readonly NOT_IMPLEMENT: "NOT_IMPLEMENT";
|
|
27
|
-
};
|
|
28
|
-
export type QueueTypeName = (typeof QueueTypeName)[keyof typeof QueueTypeName];
|
|
1
|
+
/**
|
|
2
|
+
* @description
|
|
3
|
+
* Single source of truth moved to `@webitel/api-services/enums`, because the
|
|
4
|
+
* queue Zod schema and the queue type defaults live there and api-services
|
|
5
|
+
* cannot import from ui-sdk (the dependency runs the other way).
|
|
6
|
+
*
|
|
7
|
+
* Re-exported here so the ~40 `@webitel/ui-sdk/enums` consumers stay untouched.
|
|
8
|
+
*/
|
|
9
|
+
export { QueueType, QueueTypeName, } from '@webitel/api-services/enums';
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
readonly Today: "rdt_today";
|
|
3
|
-
readonly ThisWeek: "rdt_this_week";
|
|
4
|
-
readonly ThisMonth: "rdt_this_month";
|
|
5
|
-
readonly Custom: "rdt_custom";
|
|
6
|
-
};
|
|
7
|
-
export type RelativeDatetimeValue = (typeof RelativeDatetimeValue)[keyof typeof RelativeDatetimeValue];
|
|
1
|
+
export { RelativeDatetimeValue } from '@webitel/api-services/enums';
|
package/types/locale/en/en.d.ts
CHANGED
|
@@ -194,6 +194,34 @@ declare const _default: {
|
|
|
194
194
|
offline: string;
|
|
195
195
|
};
|
|
196
196
|
};
|
|
197
|
+
bucket: string;
|
|
198
|
+
joinedAt: string;
|
|
199
|
+
leavingAt: string;
|
|
200
|
+
offeringAt: string;
|
|
201
|
+
stopCause: {
|
|
202
|
+
stopCause: string;
|
|
203
|
+
abandoned: string;
|
|
204
|
+
timeout: string;
|
|
205
|
+
cancel: string;
|
|
206
|
+
success: string;
|
|
207
|
+
failed: string;
|
|
208
|
+
missed: string;
|
|
209
|
+
expired: string;
|
|
210
|
+
canceledByTimeout: string;
|
|
211
|
+
};
|
|
212
|
+
memberPriority: string;
|
|
213
|
+
attempts: string;
|
|
214
|
+
callReportingResult: {
|
|
215
|
+
result: string;
|
|
216
|
+
abandoned: string;
|
|
217
|
+
cancel: string;
|
|
218
|
+
success: string;
|
|
219
|
+
failed: string;
|
|
220
|
+
missed: string;
|
|
221
|
+
timeout: string;
|
|
222
|
+
endless: string;
|
|
223
|
+
transferred: string;
|
|
224
|
+
};
|
|
197
225
|
flow: {
|
|
198
226
|
name: string;
|
|
199
227
|
type: {
|
|
@@ -662,6 +690,9 @@ declare const _default: {
|
|
|
662
690
|
author: ({ linked }: {
|
|
663
691
|
linked: any;
|
|
664
692
|
}) => any;
|
|
693
|
+
bucket: ({ linked }: {
|
|
694
|
+
linked: any;
|
|
695
|
+
}) => any;
|
|
665
696
|
cause: ({ linked }: {
|
|
666
697
|
linked: any;
|
|
667
698
|
}) => any;
|
|
@@ -704,6 +735,39 @@ declare const _default: {
|
|
|
704
735
|
hasUser: ({ linked }: {
|
|
705
736
|
linked: any;
|
|
706
737
|
}) => any;
|
|
738
|
+
joinedAt: ({ linked }: {
|
|
739
|
+
linked: any;
|
|
740
|
+
}) => any;
|
|
741
|
+
leavingAt: ({ linked }: {
|
|
742
|
+
linked: any;
|
|
743
|
+
}) => any;
|
|
744
|
+
offeringAt: ({ linked }: {
|
|
745
|
+
linked: any;
|
|
746
|
+
}) => any;
|
|
747
|
+
stopCause: ({ linked }: {
|
|
748
|
+
linked: any;
|
|
749
|
+
}) => any;
|
|
750
|
+
memberPriority: ({ linked }: {
|
|
751
|
+
linked: any;
|
|
752
|
+
}) => any;
|
|
753
|
+
attempts: ({ linked }: {
|
|
754
|
+
linked: any;
|
|
755
|
+
}) => any;
|
|
756
|
+
name: ({ linked }: {
|
|
757
|
+
linked: any;
|
|
758
|
+
}) => any;
|
|
759
|
+
destination: ({ linked }: {
|
|
760
|
+
linked: any;
|
|
761
|
+
}) => any;
|
|
762
|
+
duration: ({ linked }: {
|
|
763
|
+
linked: any;
|
|
764
|
+
}) => any;
|
|
765
|
+
result: ({ linked }: {
|
|
766
|
+
linked: any;
|
|
767
|
+
}) => any;
|
|
768
|
+
tags: ({ linked }: {
|
|
769
|
+
linked: any;
|
|
770
|
+
}) => any;
|
|
707
771
|
impacted: ({ linked }: {
|
|
708
772
|
linked: any;
|
|
709
773
|
}) => any;
|
package/types/locale/es/es.d.ts
CHANGED
|
@@ -207,6 +207,42 @@ declare namespace _default {
|
|
|
207
207
|
};
|
|
208
208
|
export { status_1 as status };
|
|
209
209
|
}
|
|
210
|
+
export let bucket: string;
|
|
211
|
+
export let joinedAt: string;
|
|
212
|
+
export let leavingAt: string;
|
|
213
|
+
export let offeringAt: string;
|
|
214
|
+
export namespace stopCause {
|
|
215
|
+
let stopCause_1: string;
|
|
216
|
+
export { stopCause_1 as stopCause };
|
|
217
|
+
export let abandoned: string;
|
|
218
|
+
export let timeout: string;
|
|
219
|
+
let cancel_1: string;
|
|
220
|
+
export { cancel_1 as cancel };
|
|
221
|
+
export let success: string;
|
|
222
|
+
export let failed: string;
|
|
223
|
+
export let missed: string;
|
|
224
|
+
export let expired: string;
|
|
225
|
+
export let canceledByTimeout: string;
|
|
226
|
+
}
|
|
227
|
+
export let memberPriority: string;
|
|
228
|
+
export let attempts: string;
|
|
229
|
+
export namespace callReportingResult {
|
|
230
|
+
export let result: string;
|
|
231
|
+
let abandoned_1: string;
|
|
232
|
+
export { abandoned_1 as abandoned };
|
|
233
|
+
let cancel_2: string;
|
|
234
|
+
export { cancel_2 as cancel };
|
|
235
|
+
let success_1: string;
|
|
236
|
+
export { success_1 as success };
|
|
237
|
+
let failed_1: string;
|
|
238
|
+
export { failed_1 as failed };
|
|
239
|
+
let missed_1: string;
|
|
240
|
+
export { missed_1 as missed };
|
|
241
|
+
let timeout_1: string;
|
|
242
|
+
export { timeout_1 as timeout };
|
|
243
|
+
export let endless: string;
|
|
244
|
+
export let transferred: string;
|
|
245
|
+
}
|
|
210
246
|
export namespace flow {
|
|
211
247
|
let name_1: string;
|
|
212
248
|
export { name_1 as name };
|
|
@@ -744,6 +780,10 @@ declare namespace _default {
|
|
|
744
780
|
linked: any;
|
|
745
781
|
}): any;
|
|
746
782
|
export { author_1 as author };
|
|
783
|
+
export function bucket_1({ linked }: {
|
|
784
|
+
linked: any;
|
|
785
|
+
}): any;
|
|
786
|
+
export { bucket_1 as bucket };
|
|
747
787
|
export function cause({ linked }: {
|
|
748
788
|
linked: any;
|
|
749
789
|
}): any;
|
|
@@ -791,6 +831,49 @@ declare namespace _default {
|
|
|
791
831
|
export function hasUser({ linked }: {
|
|
792
832
|
linked: any;
|
|
793
833
|
}): any;
|
|
834
|
+
export function joinedAt_1({ linked }: {
|
|
835
|
+
linked: any;
|
|
836
|
+
}): any;
|
|
837
|
+
export { joinedAt_1 as joinedAt };
|
|
838
|
+
export function leavingAt_1({ linked }: {
|
|
839
|
+
linked: any;
|
|
840
|
+
}): any;
|
|
841
|
+
export { leavingAt_1 as leavingAt };
|
|
842
|
+
export function offeringAt_1({ linked }: {
|
|
843
|
+
linked: any;
|
|
844
|
+
}): any;
|
|
845
|
+
export { offeringAt_1 as offeringAt };
|
|
846
|
+
export function stopCause_2({ linked }: {
|
|
847
|
+
linked: any;
|
|
848
|
+
}): any;
|
|
849
|
+
export { stopCause_2 as stopCause };
|
|
850
|
+
export function memberPriority_1({ linked }: {
|
|
851
|
+
linked: any;
|
|
852
|
+
}): any;
|
|
853
|
+
export { memberPriority_1 as memberPriority };
|
|
854
|
+
export function attempts_1({ linked }: {
|
|
855
|
+
linked: any;
|
|
856
|
+
}): any;
|
|
857
|
+
export { attempts_1 as attempts };
|
|
858
|
+
export function name_10({ linked }: {
|
|
859
|
+
linked: any;
|
|
860
|
+
}): any;
|
|
861
|
+
export { name_10 as name };
|
|
862
|
+
export function destination_1({ linked }: {
|
|
863
|
+
linked: any;
|
|
864
|
+
}): any;
|
|
865
|
+
export { destination_1 as destination };
|
|
866
|
+
export function duration_1({ linked }: {
|
|
867
|
+
linked: any;
|
|
868
|
+
}): any;
|
|
869
|
+
export { duration_1 as duration };
|
|
870
|
+
export function result_1({ linked }: {
|
|
871
|
+
linked: any;
|
|
872
|
+
}): any;
|
|
873
|
+
export { result_1 as result };
|
|
874
|
+
export function tags({ linked }: {
|
|
875
|
+
linked: any;
|
|
876
|
+
}): any;
|
|
794
877
|
export function impacted_1({ linked }: {
|
|
795
878
|
linked: any;
|
|
796
879
|
}): any;
|
|
@@ -911,7 +994,7 @@ declare namespace _default {
|
|
|
911
994
|
let overwritePresetTitle: string;
|
|
912
995
|
let overwritePresetText: string;
|
|
913
996
|
namespace notifications {
|
|
914
|
-
namespace
|
|
997
|
+
export namespace success_2 {
|
|
915
998
|
export function update_1({ linked }: {
|
|
916
999
|
linked: any;
|
|
917
1000
|
}): any;
|
|
@@ -925,6 +1008,7 @@ declare namespace _default {
|
|
|
925
1008
|
}): any;
|
|
926
1009
|
export { _delete_1 as delete };
|
|
927
1010
|
}
|
|
1011
|
+
export { success_2 as success };
|
|
928
1012
|
}
|
|
929
1013
|
}
|
|
930
1014
|
}
|
|
@@ -934,7 +1018,7 @@ declare namespace _default {
|
|
|
934
1018
|
}
|
|
935
1019
|
}
|
|
936
1020
|
export namespace systemNotifications {
|
|
937
|
-
export namespace
|
|
1021
|
+
export namespace success_3 {
|
|
938
1022
|
export function update_2({ named }: {
|
|
939
1023
|
named: any;
|
|
940
1024
|
}): string;
|
|
@@ -948,7 +1032,7 @@ declare namespace _default {
|
|
|
948
1032
|
}): string;
|
|
949
1033
|
export { _delete_2 as delete };
|
|
950
1034
|
}
|
|
951
|
-
export {
|
|
1035
|
+
export { success_3 as success };
|
|
952
1036
|
export namespace warnings {
|
|
953
1037
|
let passwordExpirationMessageDays: string;
|
|
954
1038
|
let passwordExpirationMessageHours: string;
|