@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.
- package/dist/clients-CD7NXpWz.js +43306 -0
- package/dist/{components-DFU2gMZC.js → components-BaLs0ZtL.js} +1164 -2357
- package/dist/convertDuration-DZkUGHBR.js +65 -0
- package/dist/startOfDay-BH-DGnTQ.js +34 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +766 -727
- package/dist/utils-zi9lfi8f.js +1235 -0
- package/dist/{wt-chat-emoji-CDJIdeXU.js → wt-chat-emoji-Ctwc4VYl.js} +1 -1
- package/dist/{wt-display-chip-items-Dj0fY1dF.js → wt-display-chip-items-BsaEZtrc.js} +12 -12
- package/dist/{wt-screen-recordings-action-CHlh4sNO.js → wt-screen-recordings-action-61pRZySe.js} +1 -1
- package/dist/{wt-send-message-popup-SNflIgQ8.js → wt-send-message-popup--fi3UrPJ.js} +3 -3
- package/dist/{wt-status-select-DItpCCVE.js → wt-status-select-qCkEA9K6.js} +1 -1
- package/dist/{wt-type-extension-value-input-BgTpak2x.js → wt-type-extension-value-input-DOivJ4hj.js} +2 -2
- package/dist/{wt-vidstack-player-BO7ozD50.js → wt-vidstack-player-D-W9J2CY.js} +2 -2
- package/package.json +1 -1
- package/src/components/index.js +3 -0
- package/src/components/wt-time-tooltip/__tests__/WtTimeTooltip.spec.js +56 -0
- package/src/components/wt-time-tooltip/wt-time-tooltip.vue +36 -0
- 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/src/utils/__tests__/timeZoneLabel.spec.ts +33 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/timeZoneLabel.ts +17 -0
- package/types/.tsbuildinfo +1 -1
- package/types/components/index.d.ts +3 -1
- package/types/components/wt-time-tooltip/__tests__/WtTimeTooltip.spec.d.ts +1 -0
- package/types/components/wt-time-tooltip/wt-time-tooltip.vue.d.ts +7 -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/utils/index.d.ts +1 -0
- package/types/utils/timeZoneLabel.d.ts +1 -0
- package/dist/clients-Bn77MDFb.js +0 -43087
- package/dist/convertDuration-CIPonKKW.js +0 -97
- package/dist/utils-DQQQIpjz.js +0 -4
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./startOfDay-BH-DGnTQ.js";
|
|
2
|
+
import { x as i } from "./enums-CKer6GJR.js";
|
|
3
|
+
//#region node_modules/date-fns/endOfDay.js
|
|
4
|
+
function a(e, t) {
|
|
5
|
+
let r = n(e, t?.in);
|
|
6
|
+
return r.setHours(23, 59, 59, 999), r;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region node_modules/date-fns/endOfMonth.js
|
|
10
|
+
function o(e, t) {
|
|
11
|
+
let r = n(e, t?.in), i = r.getMonth();
|
|
12
|
+
return r.setFullYear(r.getFullYear(), i + 1, 0), r.setHours(23, 59, 59, 999), r;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region node_modules/date-fns/startOfMonth.js
|
|
16
|
+
function s(e, t) {
|
|
17
|
+
let r = n(e, t?.in);
|
|
18
|
+
return r.setDate(1), r.setHours(0, 0, 0, 0), r;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region node_modules/date-fns/endOfWeek.js
|
|
22
|
+
function c(t, r) {
|
|
23
|
+
let i = e(), a = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, o = n(t, r?.in), s = o.getDay(), c = (s < a ? -7 : 0) + 6 - (s - a);
|
|
24
|
+
return o.setDate(o.getDate() + c), o.setHours(23, 59, 59, 999), o;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region node_modules/date-fns/endOfToday.js
|
|
28
|
+
function l(e) {
|
|
29
|
+
return a(Date.now(), e);
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region node_modules/date-fns/startOfToday.js
|
|
33
|
+
function u(e) {
|
|
34
|
+
return r(Date.now(), e);
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region packages/api-services/src/scripts/convertDuration/convertDuration.ts
|
|
38
|
+
var d = (e) => `${e}`.padStart(2, "0"), f = (e, { alwaysShowHours: t = !0 } = {}) => {
|
|
39
|
+
if (!e) return t ? "00:00:00" : "00:00";
|
|
40
|
+
let n = Math.floor(e / 3600), r = Math.floor(e % 3600 / 60), i = Math.floor(e % 3600 % 60), a = `${d(r)}:${d(i)}`;
|
|
41
|
+
return t || n > 0 ? `${d(n)}:${a}` : a;
|
|
42
|
+
}, p = (e) => typeof e == "string" && Object.values(i).includes(e), m = (e, n) => {
|
|
43
|
+
if (n?.round === "end") switch (e) {
|
|
44
|
+
case i.Today: return l().getTime();
|
|
45
|
+
case i.ThisWeek: return c(Date.now(), { weekStartsOn: 1 }).getTime();
|
|
46
|
+
case i.ThisMonth: return o(Date.now()).getTime();
|
|
47
|
+
default: return Date.now();
|
|
48
|
+
}
|
|
49
|
+
switch (e) {
|
|
50
|
+
case i.Today: return u().getTime();
|
|
51
|
+
case i.ThisWeek: return t(Date.now(), { weekStartsOn: 1 }).getTime();
|
|
52
|
+
case i.ThisMonth: return s(Date.now()).getTime();
|
|
53
|
+
default: return Date.now();
|
|
54
|
+
}
|
|
55
|
+
}, h = (e, t = {}) => e == null ? 0 : typeof e == "number" ? e : p(e) ? m(e, t) : typeof e == "string" ? +e ? +e : 0 : Date.now(), g = (e) => typeof e == "object" && !!e && ("from" in e || "to" in e), _ = (e) => {
|
|
56
|
+
if (!(e == null || e === "")) return g(e) ? {
|
|
57
|
+
from: e.from == null || e.from === "" ? void 0 : h(e.from, { round: "start" }),
|
|
58
|
+
to: e.to == null || e.to === "" ? void 0 : h(e.to, { round: "end" })
|
|
59
|
+
} : {
|
|
60
|
+
from: h(e, { round: "start" }),
|
|
61
|
+
to: h(e, { round: "end" })
|
|
62
|
+
};
|
|
63
|
+
}, v = f;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { f as a, h as i, p as n, _ as r, v as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region node_modules/date-fns/constants.js
|
|
2
|
+
var e = 365.2425, t = 6048e5, n = 864e5, r = 3600 * 24;
|
|
3
|
+
r * 7, r * e / 12 * 3;
|
|
4
|
+
var i = Symbol.for("constructDateFrom");
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region node_modules/date-fns/constructFrom.js
|
|
7
|
+
function a(e, t) {
|
|
8
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && i in e ? e[i](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region node_modules/date-fns/_lib/defaultOptions.js
|
|
12
|
+
var o = {};
|
|
13
|
+
function s() {
|
|
14
|
+
return o;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region node_modules/date-fns/toDate.js
|
|
18
|
+
function c(e, t) {
|
|
19
|
+
return a(t || e, e);
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region node_modules/date-fns/startOfWeek.js
|
|
23
|
+
function l(e, t) {
|
|
24
|
+
let n = s(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = c(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
|
|
25
|
+
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region node_modules/date-fns/startOfDay.js
|
|
29
|
+
function u(e, t) {
|
|
30
|
+
let n = c(e, t?.in);
|
|
31
|
+
return n.setHours(0, 0, 0, 0), n;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { a, s as i, l as n, n as o, c as r, t as s, u as t };
|