@webitel/ui-sdk 26.8.153 → 26.8.155
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-D2-r7suP.js → components-BaLs0ZtL.js} +1146 -2348
- 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 +699 -699
- package/dist/utils-zi9lfi8f.js +1235 -0
- package/dist/{wt-chat-emoji-DY9CjuAU.js → wt-chat-emoji-Ctwc4VYl.js} +1 -1
- package/dist/{wt-display-chip-items-dggFa-kX.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-BFEY-Mub.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-CkDs3VWL.js → wt-type-extension-value-input-DOivJ4hj.js} +2 -2
- package/dist/{wt-vidstack-player-B8tTDkf3.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/modules/AgentPdfs/components/agent-pdfs-tab.vue +2 -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/modules/AgentPdfs/components/agent-pdfs-tab.vue.d.ts +1 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/timeZoneLabel.d.ts +1 -0
- package/dist/clients-BS52VCEA.js +0 -43305
- package/dist/convertDuration-CIPonKKW.js +0 -97
- 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 };
|
package/dist/utils-DQQQIpjz.js
DELETED