@webitel/ui-sdk 26.8.99 → 26.8.101

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 (43) hide show
  1. package/dist/{clients-DenpsPyu.js → clients-ClR-VL_c.js} +24 -28
  2. package/dist/{components-CMBVRgca.js → components-CB2t5ag8.js} +2876 -1068
  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.js +15 -15
  6. package/dist/ui-sdk.umd.cjs +380 -380
  7. package/dist/{useValidation-Dmm2xos_.js → useValidation-CtEfmUkB.js} +1 -1
  8. package/dist/utils-B_8uwL9P.js +4 -0
  9. package/dist/{wt-action-bar-BpuER6TA.js → wt-action-bar-B4rcG26w.js} +2 -2
  10. package/dist/{wt-badge-tosjsmJU.js → wt-badge-lFnfK2an.js} +1 -1
  11. package/dist/{wt-button-CNQAK85M.js → wt-button-BzYDkfhK.js} +17 -17
  12. package/dist/{wt-chat-emoji-DGnuASX3.js → wt-chat-emoji-DwGl685x.js} +4 -4
  13. package/dist/{wt-datepicker-BS3przUJ.js → wt-datepicker-D_O49-Ab.js} +43 -43
  14. package/dist/{wt-display-chip-items-DVE5aPNw.js → wt-display-chip-items-_VHRHB6L.js} +2 -2
  15. package/dist/{wt-dual-panel-Cs_Yzfxt.js → wt-dual-panel-B0inNxRm.js} +1 -1
  16. package/dist/{wt-expansion-card-8YzHs8F1.js → wt-expansion-card-CJjtuFDk.js} +1 -1
  17. package/dist/{wt-expansion-panel-kZmHSvPU.js → wt-expansion-panel-tqCCM3go.js} +1 -1
  18. package/dist/{wt-icon-ClDNfV5I.js → wt-icon-DFtSR4bO.js} +1 -1
  19. package/dist/{wt-icon-action-B8vuj9cC.js → wt-icon-action-DUAnoMrj.js} +1 -1
  20. package/dist/{wt-icon-btn-DDElLZil.js → wt-icon-btn-CeGGT2PO.js} +1 -1
  21. package/dist/{wt-notifications-bar-DZidZ2VZ.js → wt-notifications-bar-DWME3pmb.js} +2 -2
  22. package/dist/{wt-player-CxMTs3eF.js → wt-player-DXCQLKch.js} +3 -3
  23. package/dist/{wt-screen-recordings-action-BTtZq2BR.js → wt-screen-recordings-action-Cx7-2gDE.js} +1 -1
  24. package/dist/{wt-search-bar-CE4WhuJ6.js → wt-search-bar-BkopW1qp.js} +1 -1
  25. package/dist/{wt-send-message-popup-DNRwANy-.js → wt-send-message-popup-Dl-FeGOx.js} +13 -12
  26. package/dist/{wt-status-select-CDt8sZr9.js → wt-status-select-DnaJ04Gw.js} +12 -12
  27. package/dist/{wt-table-DHpnLu_f.js → wt-table-xmGhfp4p.js} +3 -3
  28. package/dist/{wt-timepicker-D-tnO-gX.js → wt-timepicker-C0DHJSeR.js} +2 -2
  29. package/dist/{wt-toast-DKjRJFE2.js → wt-toast-Lge1Y6IO.js} +10 -10
  30. package/dist/{wt-tree-table-DDH6vMh7.js → wt-tree-table-BTHxl_MY.js} +1 -1
  31. package/dist/{wt-type-extension-value-input-CUx43R8o.js → wt-type-extension-value-input-Cd0towde.js} +17 -17
  32. package/dist/{wt-vidstack-player-_x_GEpy4.js → wt-vidstack-player-IfN1Nbyd.js} +5 -4
  33. package/package.json +1 -1
  34. package/src/enums/FormatDateMode/FormatDateMode.ts +1 -10
  35. package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +7 -2
  36. package/src/scripts/convertDuration.js +1 -13
  37. package/src/utils/formatDate.ts +1 -37
  38. package/types/.tsbuildinfo +1 -1
  39. package/types/enums/FormatDateMode/FormatDateMode.d.ts +1 -8
  40. package/types/scripts/convertDuration.d.ts +1 -1
  41. package/types/utils/formatDate.d.ts +1 -4
  42. package/dist/convertDuration-1K7fuEpO.js +0 -8
  43. 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 };
package/dist/ui-sdk.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { r as e } from "./genClient-5JkKKac8.js";
2
- import { n as t } from "./wt-icon-ClDNfV5I.js";
3
- import { S as n, _ as r, b as i, c as a, d as o, f as s, g as c, h as l, l as u, m as d, p as f, t as p, u as m, v as h, x as g, y as _ } from "./components-CMBVRgca.js";
4
- import { i as v, l as y } from "./enums-B_9ZBu01.js";
2
+ import { n as t } from "./wt-icon-DFtSR4bO.js";
3
+ import { S as n, _ as r, b as i, c as a, d as o, f as s, g as c, h as l, l as u, m as d, p as f, t as p, u as m, v as h, x as g, y as _ } from "./components-CB2t5ag8.js";
4
+ import { c as v, i as y } from "./enums-Bd-8yrmg.js";
5
5
  import { t as b } from "./useEventBus-B-ZeklLu.js";
6
6
  import { computed as x, reactive as S, shallowRef as C, watch as w } from "vue";
7
7
  import T from "primevue/autocomplete";
@@ -22039,8 +22039,8 @@ var W = {
22039
22039
  min-width: var(--btn-min-width);
22040
22040
  border: none !important;
22041
22041
  }
22042
- .p-button--size-${y.XS},
22043
- .p-button--size-${y.SM},
22042
+ .p-button--size-${v.XS},
22043
+ .p-button--size-${v.SM},
22044
22044
  .p-button.p-button-sm {
22045
22045
  min-width: var(--btn-min-width--size-sm);
22046
22046
  }
@@ -22060,13 +22060,13 @@ var W = {
22060
22060
  background: transparent;
22061
22061
  outline-offset: -1px;
22062
22062
  }
22063
- .p-button--icon-${y.XS} {
22063
+ .p-button--icon-${v.XS} {
22064
22064
  padding: ${e("button.icon.xs.padding")};
22065
22065
  }
22066
- .p-button--icon-${y.SM} {
22066
+ .p-button--icon-${v.SM} {
22067
22067
  padding: ${e("button.icon.sm.padding")};
22068
22068
  }
22069
- .p-button--icon-${y.MD} {
22069
+ .p-button--icon-${v.MD} {
22070
22070
  padding: ${e("button.icon.md.padding")};
22071
22071
  }
22072
22072
  .p-button--icon-active:disabled svg {
@@ -22389,27 +22389,27 @@ var W = {
22389
22389
  colorScheme: Xi.colorScheme,
22390
22390
  css: ({ dt: e }) => `
22391
22391
  ${Z({
22392
- colorName: v.INFO,
22392
+ colorName: y.INFO,
22393
22393
  dt: e
22394
22394
  })}
22395
22395
  ${Z({
22396
- colorName: v.ERROR,
22396
+ colorName: y.ERROR,
22397
22397
  dt: e
22398
22398
  })}
22399
22399
  ${Z({
22400
- colorName: v.SECONDARY,
22400
+ colorName: y.SECONDARY,
22401
22401
  dt: e
22402
22402
  })}
22403
22403
  ${Z({
22404
- colorName: v.SUCCESS,
22404
+ colorName: y.SUCCESS,
22405
22405
  dt: e
22406
22406
  })}
22407
22407
  ${Z({
22408
- colorName: v.WARN,
22408
+ colorName: y.WARN,
22409
22409
  dt: e
22410
22410
  })}
22411
22411
  ${Z({
22412
- colorName: v.CONTRAST,
22412
+ colorName: y.CONTRAST,
22413
22413
  dt: e
22414
22414
  })}
22415
22415
  `
@@ -22633,7 +22633,7 @@ var W = {
22633
22633
  `, Ua = {
22634
22634
  ...oa.sizes,
22635
22635
  colorScheme: oa.colorScheme,
22636
- css: ({ dt: e }) => Object.values(v).map((t) => Ha({
22636
+ css: ({ dt: e }) => Object.values(y).map((t) => Ha({
22637
22637
  colorName: t,
22638
22638
  dt: e
22639
22639
  })).join("")