@webitel/ui-sdk 26.8.98 → 26.8.100

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 (46) hide show
  1. package/dist/{clients-D7xoQatS.js → clients-ClR-VL_c.js} +24 -28
  2. package/dist/{components-Bbzj_P4l.js → components-CB2t5ag8.js} +2865 -1055
  3. package/dist/convertDuration-CGW5IDMW.js +89 -0
  4. package/dist/{enums-B_9ZBu01.js → enums-Bd-8yrmg.js} +30 -30
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.js +15 -15
  7. package/dist/ui-sdk.umd.cjs +380 -380
  8. package/dist/{useValidation-Dmm2xos_.js → useValidation-CtEfmUkB.js} +1 -1
  9. package/dist/utils-B_8uwL9P.js +4 -0
  10. package/dist/{wt-action-bar-BpuER6TA.js → wt-action-bar-B4rcG26w.js} +2 -2
  11. package/dist/{wt-badge-tosjsmJU.js → wt-badge-lFnfK2an.js} +1 -1
  12. package/dist/{wt-button-CNQAK85M.js → wt-button-BzYDkfhK.js} +17 -17
  13. package/dist/{wt-chat-emoji-CEagxzmF.js → wt-chat-emoji-DwGl685x.js} +4 -4
  14. package/dist/{wt-datepicker-BS3przUJ.js → wt-datepicker-D_O49-Ab.js} +43 -43
  15. package/dist/{wt-display-chip-items-DaoXxPnn.js → wt-display-chip-items-_VHRHB6L.js} +2 -2
  16. package/dist/{wt-dual-panel-Cs_Yzfxt.js → wt-dual-panel-B0inNxRm.js} +1 -1
  17. package/dist/{wt-expansion-card-8YzHs8F1.js → wt-expansion-card-CJjtuFDk.js} +1 -1
  18. package/dist/{wt-expansion-panel-kZmHSvPU.js → wt-expansion-panel-tqCCM3go.js} +1 -1
  19. package/dist/{wt-icon-ClDNfV5I.js → wt-icon-DFtSR4bO.js} +1 -1
  20. package/dist/{wt-icon-action-B8vuj9cC.js → wt-icon-action-DUAnoMrj.js} +1 -1
  21. package/dist/{wt-icon-btn-DDElLZil.js → wt-icon-btn-CeGGT2PO.js} +1 -1
  22. package/dist/{wt-notifications-bar-DZidZ2VZ.js → wt-notifications-bar-DWME3pmb.js} +2 -2
  23. package/dist/{wt-player-CxMTs3eF.js → wt-player-DXCQLKch.js} +3 -3
  24. package/dist/{wt-screen-recordings-action-BTtZq2BR.js → wt-screen-recordings-action-Cx7-2gDE.js} +1 -1
  25. package/dist/{wt-search-bar-CE4WhuJ6.js → wt-search-bar-BkopW1qp.js} +1 -1
  26. package/dist/{wt-send-message-popup-DlNzrav9.js → wt-send-message-popup-Dl-FeGOx.js} +13 -12
  27. package/dist/{wt-status-select-CDt8sZr9.js → wt-status-select-DnaJ04Gw.js} +12 -12
  28. package/dist/{wt-table-DHpnLu_f.js → wt-table-xmGhfp4p.js} +3 -3
  29. package/dist/{wt-timepicker-D-tnO-gX.js → wt-timepicker-C0DHJSeR.js} +2 -2
  30. package/dist/{wt-toast-DKjRJFE2.js → wt-toast-Lge1Y6IO.js} +10 -10
  31. package/dist/{wt-tree-table-DDH6vMh7.js → wt-tree-table-BTHxl_MY.js} +1 -1
  32. package/dist/{wt-type-extension-value-input-LfOZd5LP.js → wt-type-extension-value-input-Cd0towde.js} +17 -17
  33. package/dist/{wt-vidstack-player-DwrfsR41.js → wt-vidstack-player-IfN1Nbyd.js} +5 -4
  34. package/package.json +1 -1
  35. package/src/components/wt-input-text/__tests__/WtInputText.spec.js +29 -6
  36. package/src/components/wt-input-text/wt-input-text.vue +12 -2
  37. package/src/enums/FormatDateMode/FormatDateMode.ts +1 -10
  38. package/src/scripts/convertDuration.js +1 -13
  39. package/src/utils/formatDate.ts +1 -37
  40. package/types/.tsbuildinfo +1 -1
  41. package/types/components/wt-input-text/wt-input-text.vue.d.ts +4 -2
  42. package/types/enums/FormatDateMode/FormatDateMode.d.ts +1 -8
  43. package/types/scripts/convertDuration.d.ts +1 -1
  44. package/types/utils/formatDate.d.ts +1 -4
  45. package/dist/convertDuration-1K7fuEpO.js +0 -8
  46. package/dist/utils-DReAiJBV.js +0 -1902
@@ -0,0 +1,89 @@
1
+ import { f as e } from "./enums-Bd-8yrmg.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) => {
71
+ if (!e) return "00:00:00";
72
+ let t = `${Math.floor(e / 3600)}`, n = `${Math.floor(e % 3600 / 60)}`, r = `${Math.floor(e % 3600 % 60)}`;
73
+ return t.length === 1 && (t = `0${t}`), n.length === 1 && (n = `0${n}`), r.length === 1 && (r = `0${r}`), `${t}:${n}:${r}`;
74
+ }, y = (t) => typeof t == "string" && Object.values(e).includes(t), b = (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
+ }, x = (e, t = {}) => e == null ? 0 : typeof e == "number" ? e : y(e) ? b(e, t) : typeof e == "string" ? +e ? +e : 0 : Date.now(), S = v;
88
+ //#endregion
89
+ export { d as a, c, n as d, v as i, o as l, y as n, u as o, x as r, l as s, S as t, r as u };
@@ -33,14 +33,20 @@ var e = Object.freeze({
33
33
  CUSTOM: "custom",
34
34
  PORTAL: "portal"
35
35
  }), a = {
36
+ DATE: "date",
37
+ TIME: "time",
38
+ TIME_SEC: "timeSec",
39
+ DATETIME: "datetime",
40
+ DATETIME_SHORT: "datetimeShort"
41
+ }, o = {
36
42
  FIFO: "fifo",
37
43
  LIFO: "lifo",
38
44
  STRICT_FIFO: "strict_fifo"
39
45
  };
40
- a.FIFO, a.LIFO, a.STRICT_FIFO;
46
+ o.FIFO, o.LIFO, o.STRICT_FIFO;
41
47
  //#endregion
42
48
  //#region packages/api-services/src/enums/QueueType/QueueType.ts
43
- var o = {
49
+ var s = {
44
50
  OFFLINE_QUEUE: 0,
45
51
  INBOUND_QUEUE: 1,
46
52
  OUTBOUND_IVR_QUEUE: 2,
@@ -51,31 +57,31 @@ var o = {
51
57
  INBOUND_JOB_QUEUE: 7,
52
58
  OUTBOUND_JOB_QUEUE: 8,
53
59
  IM_CHAT_QUEUE: 9
54
- }, s = "rdt", c = {
55
- Today: `${s}_today`,
56
- ThisWeek: `${s}_this_week`,
57
- ThisMonth: `${s}_this_month`,
58
- Custom: `${s}_custom`
59
- }, l = {
60
+ }, c = "rdt", l = {
61
+ Today: `${c}_today`,
62
+ ThisWeek: `${c}_this_week`,
63
+ ThisMonth: `${c}_this_month`,
64
+ Custom: `${c}_custom`
65
+ }, u = {
60
66
  QUEUE: "queue",
61
67
  SYSTEM: "system"
62
- }, u = {
68
+ }, d = {
63
69
  PRIORITY_BASED: "priority-based",
64
70
  EVEN_DISTRIBUTION: "even-distribution"
65
- }, d = i;
71
+ }, f = i;
66
72
  Object.freeze({
67
- [d.TELEGRAM_BOT]: "telegram-bot",
68
- [d.TELEGRAM_APP]: "messenger-telegram",
69
- [d.MESSENGER]: "meta",
70
- [d.VIBER]: "messenger-viber",
71
- [d.WEBCHAT]: "messenger-web-chat",
72
- [d.INFOBIP]: "messenger-infobip",
73
- [d.CUSTOM]: "custom-chat-gateway",
74
- [d.PORTAL]: "portal"
73
+ [f.TELEGRAM_BOT]: "telegram-bot",
74
+ [f.TELEGRAM_APP]: "messenger-telegram",
75
+ [f.MESSENGER]: "meta",
76
+ [f.VIBER]: "messenger-viber",
77
+ [f.WEBCHAT]: "messenger-web-chat",
78
+ [f.INFOBIP]: "messenger-infobip",
79
+ [f.CUSTOM]: "custom-chat-gateway",
80
+ [f.PORTAL]: "portal"
75
81
  });
76
82
  //#endregion
77
83
  //#region src/enums/ChipColor/ChipColor.ts
78
- var f = {
84
+ var p = {
79
85
  MAIN: "main",
80
86
  PRIMARY: "primary",
81
87
  ON_PRIMARY: "on-primary",
@@ -84,7 +90,7 @@ var f = {
84
90
  WARNING: "warning",
85
91
  ERROR: "error",
86
92
  TRANSFER: "transfer"
87
- }, p = {
93
+ }, m = {
88
94
  XXXS: "3xs",
89
95
  XXS: "2xs",
90
96
  XS: "xs",
@@ -94,7 +100,7 @@ var f = {
94
100
  XL: "xl",
95
101
  XXL: "2xl",
96
102
  XXXL: "3xl"
97
- }, m = {
103
+ }, h = {
98
104
  High: "high",
99
105
  Medium: "medium",
100
106
  Low: "low"
@@ -106,15 +112,9 @@ Object.freeze({
106
112
  });
107
113
  //#endregion
108
114
  //#region src/enums/ExportFormat/ExportFormat.enum.ts
109
- var h = {
115
+ var g = {
110
116
  CSV: "csv",
111
117
  XLSX: "xlsx"
112
- }, g = {
113
- DATE: "date",
114
- TIME: "time",
115
- TIME_SEC: "timeSec",
116
- DATETIME: "datetime",
117
- DATETIME_SHORT: "datetimeShort"
118
118
  }, _ = {
119
119
  REFRESH: "refresh",
120
120
  ADD: "add",
@@ -175,7 +175,7 @@ var h = {
175
175
  Facebook: "facebook",
176
176
  Custom: "custom"
177
177
  };
178
- x.Microsoft, x.Google, x.Facebook, x.Custom, h.CSV, h.XLSX;
178
+ x.Microsoft, x.Google, x.Facebook, x.Custom, g.CSV, g.XLSX;
179
179
  //#endregion
180
180
  //#region src/enums/WebitelApplications/WtApplication.ts
181
181
  var S = {
@@ -197,4 +197,4 @@ var S = {
197
197
  Boolean: "bool"
198
198
  };
199
199
  //#endregion
200
- export { n as _, v as a, m as c, u as d, l as f, r as g, a as h, y as i, p as l, o as m, S as n, _ as o, c as p, b as r, g as s, C as t, f as u, t as v, e as y };
200
+ export { n as _, v as a, m as c, u as d, l as f, r as g, a as h, y as i, p as l, o as m, S as n, _ as o, s as p, b as r, h as s, C as t, d as u, t as v, e as y };