@webitel/ui-sdk 26.8.152 → 26.8.154

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/clients-CD7NXpWz.js +43306 -0
  2. package/dist/{components-DFU2gMZC.js → components-BaLs0ZtL.js} +1164 -2357
  3. package/dist/convertDuration-DZkUGHBR.js +65 -0
  4. package/dist/startOfDay-BH-DGnTQ.js +34 -0
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.js +1 -1
  7. package/dist/ui-sdk.umd.cjs +766 -727
  8. package/dist/utils-zi9lfi8f.js +1235 -0
  9. package/dist/{wt-chat-emoji-CDJIdeXU.js → wt-chat-emoji-Ctwc4VYl.js} +1 -1
  10. package/dist/{wt-display-chip-items-Dj0fY1dF.js → wt-display-chip-items-BsaEZtrc.js} +12 -12
  11. package/dist/{wt-screen-recordings-action-CHlh4sNO.js → wt-screen-recordings-action-61pRZySe.js} +1 -1
  12. package/dist/{wt-send-message-popup-SNflIgQ8.js → wt-send-message-popup--fi3UrPJ.js} +3 -3
  13. package/dist/{wt-status-select-DItpCCVE.js → wt-status-select-qCkEA9K6.js} +1 -1
  14. package/dist/{wt-type-extension-value-input-BgTpak2x.js → wt-type-extension-value-input-DOivJ4hj.js} +2 -2
  15. package/dist/{wt-vidstack-player-BO7ozD50.js → wt-vidstack-player-D-W9J2CY.js} +2 -2
  16. package/package.json +1 -1
  17. package/src/components/index.js +3 -0
  18. package/src/components/wt-time-tooltip/__tests__/WtTimeTooltip.spec.js +56 -0
  19. package/src/components/wt-time-tooltip/wt-time-tooltip.vue +36 -0
  20. package/src/locale/en/en.js +1 -0
  21. package/src/locale/es/es.js +1 -0
  22. package/src/locale/kz/kz.js +1 -0
  23. package/src/locale/pl/pl.js +1 -0
  24. package/src/locale/ro/ro.js +1 -0
  25. package/src/locale/ru/ru.js +1 -0
  26. package/src/locale/uk/uk.js +1 -0
  27. package/src/locale/uz/uz.js +1 -0
  28. package/src/locale/vi/vi.js +1 -0
  29. package/src/utils/__tests__/timeZoneLabel.spec.ts +33 -0
  30. package/src/utils/index.ts +1 -0
  31. package/src/utils/timeZoneLabel.ts +17 -0
  32. package/types/.tsbuildinfo +1 -1
  33. package/types/components/index.d.ts +3 -1
  34. package/types/components/wt-time-tooltip/__tests__/WtTimeTooltip.spec.d.ts +1 -0
  35. package/types/components/wt-time-tooltip/wt-time-tooltip.vue.d.ts +7 -0
  36. package/types/locale/en/en.d.ts +1 -0
  37. package/types/locale/es/es.d.ts +1 -0
  38. package/types/locale/i18n.d.ts +9 -0
  39. package/types/locale/index.d.ts +9 -0
  40. package/types/locale/kz/kz.d.ts +1 -0
  41. package/types/locale/pl/pl.d.ts +1 -0
  42. package/types/locale/ro/ro.d.ts +1 -0
  43. package/types/locale/ru/ru.d.ts +1 -0
  44. package/types/locale/uk/uk.d.ts +1 -0
  45. package/types/locale/uz/uz.d.ts +1 -0
  46. package/types/locale/vi/vi.d.ts +1 -0
  47. package/types/utils/index.d.ts +1 -0
  48. package/types/utils/timeZoneLabel.d.ts +1 -0
  49. package/dist/clients-Bn77MDFb.js +0 -43087
  50. package/dist/convertDuration-CIPonKKW.js +0 -97
  51. package/dist/utils-DQQQIpjz.js +0 -4
@@ -1,97 +0,0 @@
1
- import { x as e } from "./enums-CKer6GJR.js";
2
- //#region node_modules/date-fns/constants.js
3
- var t = 365.2425, n = 6048e5, r = 864e5, i = 3600 * 24;
4
- i * 7, i * t / 12 * 3;
5
- var a = Symbol.for("constructDateFrom");
6
- //#endregion
7
- //#region node_modules/date-fns/constructFrom.js
8
- function o(e, t) {
9
- return typeof e == "function" ? e(t) : e && typeof e == "object" && a in e ? e[a](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
10
- }
11
- //#endregion
12
- //#region node_modules/date-fns/_lib/defaultOptions.js
13
- var s = {};
14
- function c() {
15
- return s;
16
- }
17
- //#endregion
18
- //#region node_modules/date-fns/toDate.js
19
- function l(e, t) {
20
- return o(t || e, e);
21
- }
22
- //#endregion
23
- //#region node_modules/date-fns/startOfWeek.js
24
- function u(e, t) {
25
- let n = c(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = l(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
26
- return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
27
- }
28
- //#endregion
29
- //#region node_modules/date-fns/startOfDay.js
30
- function d(e, t) {
31
- let n = l(e, t?.in);
32
- return n.setHours(0, 0, 0, 0), n;
33
- }
34
- //#endregion
35
- //#region node_modules/date-fns/endOfDay.js
36
- function f(e, t) {
37
- let n = l(e, t?.in);
38
- return n.setHours(23, 59, 59, 999), n;
39
- }
40
- //#endregion
41
- //#region node_modules/date-fns/endOfMonth.js
42
- function p(e, t) {
43
- let n = l(e, t?.in), r = n.getMonth();
44
- return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
45
- }
46
- //#endregion
47
- //#region node_modules/date-fns/startOfMonth.js
48
- function m(e, t) {
49
- let n = l(e, t?.in);
50
- return n.setDate(1), n.setHours(0, 0, 0, 0), n;
51
- }
52
- //#endregion
53
- //#region node_modules/date-fns/endOfWeek.js
54
- function h(e, t) {
55
- let n = c(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = l(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
56
- return i.setDate(i.getDate() + o), i.setHours(23, 59, 59, 999), i;
57
- }
58
- //#endregion
59
- //#region node_modules/date-fns/endOfToday.js
60
- function g(e) {
61
- return f(Date.now(), e);
62
- }
63
- //#endregion
64
- //#region node_modules/date-fns/startOfToday.js
65
- function _(e) {
66
- return d(Date.now(), e);
67
- }
68
- //#endregion
69
- //#region packages/api-services/src/scripts/convertDuration/convertDuration.ts
70
- var v = (e) => `${e}`.padStart(2, "0"), y = (e, { alwaysShowHours: t = !0 } = {}) => {
71
- if (!e) return t ? "00:00:00" : "00:00";
72
- let n = Math.floor(e / 3600), r = Math.floor(e % 3600 / 60), i = Math.floor(e % 3600 % 60), a = `${v(r)}:${v(i)}`;
73
- return t || n > 0 ? `${v(n)}:${a}` : a;
74
- }, b = (t) => typeof t == "string" && Object.values(e).includes(t), x = (t, n) => {
75
- if (n?.round === "end") switch (t) {
76
- case e.Today: return g().getTime();
77
- case e.ThisWeek: return h(Date.now(), { weekStartsOn: 1 }).getTime();
78
- case e.ThisMonth: return p(Date.now()).getTime();
79
- default: return Date.now();
80
- }
81
- switch (t) {
82
- case e.Today: return _().getTime();
83
- case e.ThisWeek: return u(Date.now(), { weekStartsOn: 1 }).getTime();
84
- case e.ThisMonth: return m(Date.now()).getTime();
85
- default: return Date.now();
86
- }
87
- }, S = (e, t = {}) => e == null ? 0 : typeof e == "number" ? e : b(e) ? x(e, t) : typeof e == "string" ? +e ? +e : 0 : Date.now(), C = (e) => typeof e == "object" && !!e && ("from" in e || "to" in e), w = (e) => {
88
- if (!(e == null || e === "")) return C(e) ? {
89
- from: e.from == null || e.from === "" ? void 0 : S(e.from, { round: "start" }),
90
- to: e.to == null || e.to === "" ? void 0 : S(e.to, { round: "end" })
91
- } : {
92
- from: S(e, { round: "start" }),
93
- to: S(e, { round: "end" })
94
- };
95
- }, T = y;
96
- //#endregion
97
- export { y as a, l as c, r as d, n as f, S as i, c as l, b as n, d as o, w as r, u as s, T as t, o as u };
@@ -1,4 +0,0 @@
1
- import "./enums-CKer6GJR.js";
2
- var e = (e) => e || "-";
3
- //#endregion
4
- export { e as t };