@webitel/ui-sdk 26.6.64 → 26.6.66
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-DtfBVBhI.js → clients-B1AOAvEK.js} +358 -81
- package/dist/{components-eoQi5zKf.js → components-C2Y_Q08L.js} +2993 -1402
- package/dist/toZonedTime-B8L5kbse.js +308 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +12678 -578
- package/dist/ui-sdk.umd.cjs +1841 -1838
- package/dist/{wt-button-DSxkafVk.js → wt-button-uY5Q1GAg.js} +3 -2
- package/dist/{wt-chat-emoji-CROATNmD.js → wt-chat-emoji-B11mhNOu.js} +2 -2
- package/dist/wt-datepicker-BGSK1JFI.js +286 -0
- package/dist/{wt-display-chip-items-BYkx7GAw.js → wt-display-chip-items-DmQstZ3Y.js} +1 -1
- package/dist/{wt-player-C-Ucuchh.js → wt-player-B2SZ_NSb.js} +1 -1
- package/dist/{wt-send-message-popup-DuRb4ozr.js → wt-send-message-popup-DHdVFhOt.js} +2 -2
- package/dist/{wt-type-extension-value-input-BroXv_Jr.js → wt-type-extension-value-input-3100gKfK.js} +6 -6
- package/dist/{wt-vidstack-player-1BqwgHog.js → wt-vidstack-player-BWe7cgoj.js} +2 -2
- package/package.json +2 -1
- package/src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue +3 -3
- package/src/components/wt-button/wt-button.vue +2 -1
- package/src/components/wt-datepicker/wt-datepicker.vue +193 -253
- package/src/locale/en/en.js +2 -0
- package/src/locale/es/es.js +2 -0
- package/src/locale/kz/kz.js +2 -0
- package/src/locale/pl/pl.js +2 -0
- package/src/locale/ro/ro.js +2 -0
- package/src/locale/ru/ru.js +2 -0
- package/src/locale/uk/uk.js +2 -0
- package/src/locale/uz/uz.js +2 -0
- package/src/locale/vi/vi.js +2 -0
- package/src/modules/Filters/components/filter-datetime.vue +3 -3
- package/src/modules/QueryFilters/components/filter-datetime.vue +3 -3
- package/src/plugins/primevue/primevue.plugin.js +11 -1
- package/src/plugins/primevue/theme/components/button/button.js +1 -1
- package/src/plugins/primevue/theme/components/components.js +2 -0
- package/src/plugins/primevue/theme/components/datepicker/datepicker.js +8 -0
- package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +62 -140
- package/types/components/wt-popover/wt-popover.vue.d.ts +1 -1
- package/types/locale/en/en.d.ts +2 -0
- package/types/locale/es/es.d.ts +2 -0
- package/types/locale/i18n.d.ts +18 -0
- package/types/locale/index.d.ts +18 -0
- package/types/locale/kz/kz.d.ts +2 -0
- package/types/locale/pl/pl.d.ts +2 -0
- package/types/locale/ro/ro.d.ts +2 -0
- package/types/locale/ru/ru.d.ts +2 -0
- package/types/locale/uk/uk.d.ts +2 -0
- package/types/locale/uz/uz.d.ts +2 -0
- package/types/locale/vi/vi.d.ts +2 -0
- package/types/plugins/primevue/theme/components/components.d.ts +2 -0
- package/types/plugins/primevue/theme/components/datepicker/datepicker.d.ts +214 -0
- package/dist/dist-uCh8HaP3.js +0 -1910
- package/dist/wt-datepicker-EX4vuaeW.js +0 -5774
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
//#region node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let i = s(t);
|
|
4
|
+
return "formatToParts" in i ? n(i, e) : r(i, e);
|
|
5
|
+
}
|
|
6
|
+
var t = {
|
|
7
|
+
year: 0,
|
|
8
|
+
month: 1,
|
|
9
|
+
day: 2,
|
|
10
|
+
hour: 3,
|
|
11
|
+
minute: 4,
|
|
12
|
+
second: 5
|
|
13
|
+
};
|
|
14
|
+
function n(e, n) {
|
|
15
|
+
try {
|
|
16
|
+
let r = e.formatToParts(n), i = [];
|
|
17
|
+
for (let e = 0; e < r.length; e++) {
|
|
18
|
+
let n = t[r[e].type];
|
|
19
|
+
n !== void 0 && (i[n] = parseInt(r[e].value, 10));
|
|
20
|
+
}
|
|
21
|
+
return i;
|
|
22
|
+
} catch (e) {
|
|
23
|
+
if (e instanceof RangeError) return [NaN];
|
|
24
|
+
throw e;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function r(e, t) {
|
|
28
|
+
let n = e.format(t), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
29
|
+
return [
|
|
30
|
+
parseInt(r[3], 10),
|
|
31
|
+
parseInt(r[1], 10),
|
|
32
|
+
parseInt(r[2], 10),
|
|
33
|
+
parseInt(r[4], 10),
|
|
34
|
+
parseInt(r[5], 10),
|
|
35
|
+
parseInt(r[6], 10)
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
var i = {}, a = new Intl.DateTimeFormat("en-US", {
|
|
39
|
+
hourCycle: "h23",
|
|
40
|
+
timeZone: "America/New_York",
|
|
41
|
+
year: "numeric",
|
|
42
|
+
month: "2-digit",
|
|
43
|
+
day: "2-digit",
|
|
44
|
+
hour: "2-digit",
|
|
45
|
+
minute: "2-digit",
|
|
46
|
+
second: "2-digit"
|
|
47
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), o = a === "06/25/2014, 00:00:00" || a === "06/25/2014 00:00:00";
|
|
48
|
+
function s(e) {
|
|
49
|
+
return i[e] || (i[e] = o ? new Intl.DateTimeFormat("en-US", {
|
|
50
|
+
hourCycle: "h23",
|
|
51
|
+
timeZone: e,
|
|
52
|
+
year: "numeric",
|
|
53
|
+
month: "numeric",
|
|
54
|
+
day: "2-digit",
|
|
55
|
+
hour: "2-digit",
|
|
56
|
+
minute: "2-digit",
|
|
57
|
+
second: "2-digit"
|
|
58
|
+
}) : new Intl.DateTimeFormat("en-US", {
|
|
59
|
+
hour12: !1,
|
|
60
|
+
timeZone: e,
|
|
61
|
+
year: "numeric",
|
|
62
|
+
month: "numeric",
|
|
63
|
+
day: "2-digit",
|
|
64
|
+
hour: "2-digit",
|
|
65
|
+
minute: "2-digit",
|
|
66
|
+
second: "2-digit"
|
|
67
|
+
})), i[e];
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js
|
|
71
|
+
function c(e, t, n, r, i, a, o) {
|
|
72
|
+
let s = /* @__PURE__ */ new Date(0);
|
|
73
|
+
return s.setUTCFullYear(e, t, n), s.setUTCHours(r, i, a, o), s;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js
|
|
77
|
+
var l = 36e5, u = 6e4, d = {
|
|
78
|
+
timezone: /([Z+-].*)$/,
|
|
79
|
+
timezoneZ: /^(Z)$/,
|
|
80
|
+
timezoneHH: /^([+-]\d{2})$/,
|
|
81
|
+
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
82
|
+
};
|
|
83
|
+
function f(e, t, n) {
|
|
84
|
+
if (!e) return 0;
|
|
85
|
+
let r = d.timezoneZ.exec(e);
|
|
86
|
+
if (r) return 0;
|
|
87
|
+
let i, a;
|
|
88
|
+
if (r = d.timezoneHH.exec(e), r) return i = parseInt(r[1], 10), g(i) ? -(i * l) : NaN;
|
|
89
|
+
if (r = d.timezoneHHMM.exec(e), r) {
|
|
90
|
+
i = parseInt(r[2], 10);
|
|
91
|
+
let e = parseInt(r[3], 10);
|
|
92
|
+
return g(i, e) ? (a = Math.abs(i) * l + e * u, r[1] === "+" ? -a : a) : NaN;
|
|
93
|
+
}
|
|
94
|
+
if (v(e)) {
|
|
95
|
+
t = new Date(t || Date.now());
|
|
96
|
+
let r = m(n ? t : p(t), e);
|
|
97
|
+
return -(n ? r : h(t, r, e));
|
|
98
|
+
}
|
|
99
|
+
return NaN;
|
|
100
|
+
}
|
|
101
|
+
function p(e) {
|
|
102
|
+
return c(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
103
|
+
}
|
|
104
|
+
function m(t, n) {
|
|
105
|
+
let r = e(t, n), i = c(r[0], r[1] - 1, r[2], r[3] % 24, r[4], r[5], 0).getTime(), a = t.getTime(), o = a % 1e3;
|
|
106
|
+
return a -= o >= 0 ? o : 1e3 + o, i - a;
|
|
107
|
+
}
|
|
108
|
+
function h(e, t, n) {
|
|
109
|
+
let r = e.getTime() - t, i = m(new Date(r), n);
|
|
110
|
+
if (t === i) return t;
|
|
111
|
+
r -= i - t;
|
|
112
|
+
let a = m(new Date(r), n);
|
|
113
|
+
return i === a ? i : Math.max(i, a);
|
|
114
|
+
}
|
|
115
|
+
function g(e, t) {
|
|
116
|
+
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
117
|
+
}
|
|
118
|
+
var _ = {};
|
|
119
|
+
function v(e) {
|
|
120
|
+
if (_[e]) return !0;
|
|
121
|
+
try {
|
|
122
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: e }), _[e] = !0, !0;
|
|
123
|
+
} catch {
|
|
124
|
+
return !1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js
|
|
129
|
+
function y(e) {
|
|
130
|
+
let t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
131
|
+
return t.setUTCFullYear(e.getFullYear()), e - +t;
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js
|
|
135
|
+
var b = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, x = 36e5, S = 6e4, C = 2, w = {
|
|
136
|
+
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
137
|
+
datePattern: /^([0-9W+-]+)(.*)/,
|
|
138
|
+
plainTime: /:/,
|
|
139
|
+
YY: /^(\d{2})$/,
|
|
140
|
+
YYY: [
|
|
141
|
+
/^([+-]\d{2})$/,
|
|
142
|
+
/^([+-]\d{3})$/,
|
|
143
|
+
/^([+-]\d{4})$/
|
|
144
|
+
],
|
|
145
|
+
YYYY: /^(\d{4})/,
|
|
146
|
+
YYYYY: [
|
|
147
|
+
/^([+-]\d{4})/,
|
|
148
|
+
/^([+-]\d{5})/,
|
|
149
|
+
/^([+-]\d{6})/
|
|
150
|
+
],
|
|
151
|
+
MM: /^-(\d{2})$/,
|
|
152
|
+
DDD: /^-?(\d{3})$/,
|
|
153
|
+
MMDD: /^-?(\d{2})-?(\d{2})$/,
|
|
154
|
+
Www: /^-?W(\d{2})$/,
|
|
155
|
+
WwwD: /^-?W(\d{2})-?(\d{1})$/,
|
|
156
|
+
HH: /^(\d{2}([.,]\d*)?)$/,
|
|
157
|
+
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
158
|
+
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
159
|
+
timeZone: b
|
|
160
|
+
};
|
|
161
|
+
function T(e, t = {}) {
|
|
162
|
+
if (arguments.length < 1) throw TypeError("1 argument required, but only " + arguments.length + " present");
|
|
163
|
+
if (e === null) return /* @__PURE__ */ new Date(NaN);
|
|
164
|
+
let n = t.additionalDigits == null ? C : Number(t.additionalDigits);
|
|
165
|
+
if (n !== 2 && n !== 1 && n !== 0) throw RangeError("additionalDigits must be 0, 1 or 2");
|
|
166
|
+
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]") return new Date(e.getTime());
|
|
167
|
+
if (typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]") return new Date(e);
|
|
168
|
+
if (Object.prototype.toString.call(e) !== "[object String]") return /* @__PURE__ */ new Date(NaN);
|
|
169
|
+
let r = E(e), { year: i, restDateString: a } = D(r.date, n), o = O(a, i);
|
|
170
|
+
if (o === null || isNaN(o.getTime())) return /* @__PURE__ */ new Date(NaN);
|
|
171
|
+
if (o) {
|
|
172
|
+
let e = o.getTime(), n = 0, i;
|
|
173
|
+
if (r.time && (n = k(r.time), n === null || isNaN(n))) return /* @__PURE__ */ new Date(NaN);
|
|
174
|
+
if (r.timeZone || t.timeZone) {
|
|
175
|
+
if (i = f(r.timeZone || t.timeZone, new Date(e + n)), isNaN(i)) return /* @__PURE__ */ new Date(NaN);
|
|
176
|
+
} else i = y(new Date(e + n)), i = y(new Date(e + n + i));
|
|
177
|
+
return new Date(e + n + i);
|
|
178
|
+
} else return /* @__PURE__ */ new Date(NaN);
|
|
179
|
+
}
|
|
180
|
+
function E(e) {
|
|
181
|
+
let t = {}, n = w.dateTimePattern.exec(e), r;
|
|
182
|
+
if (n ? (t.date = n[1], r = n[3]) : (n = w.datePattern.exec(e), n ? (t.date = n[1], r = n[2]) : (t.date = null, r = e)), r) {
|
|
183
|
+
let e = w.timeZone.exec(r);
|
|
184
|
+
e ? (t.time = r.replace(e[1], ""), t.timeZone = e[1].trim()) : t.time = r;
|
|
185
|
+
}
|
|
186
|
+
return t;
|
|
187
|
+
}
|
|
188
|
+
function D(e, t) {
|
|
189
|
+
if (e) {
|
|
190
|
+
let n = w.YYY[t], r = w.YYYYY[t], i = w.YYYY.exec(e) || r.exec(e);
|
|
191
|
+
if (i) {
|
|
192
|
+
let t = i[1];
|
|
193
|
+
return {
|
|
194
|
+
year: parseInt(t, 10),
|
|
195
|
+
restDateString: e.slice(t.length)
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
if (i = w.YY.exec(e) || n.exec(e), i) {
|
|
199
|
+
let t = i[1];
|
|
200
|
+
return {
|
|
201
|
+
year: parseInt(t, 10) * 100,
|
|
202
|
+
restDateString: e.slice(t.length)
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return { year: null };
|
|
207
|
+
}
|
|
208
|
+
function O(e, t) {
|
|
209
|
+
if (t === null) return null;
|
|
210
|
+
let n, r, i;
|
|
211
|
+
if (!e || !e.length) return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
|
|
212
|
+
let a = w.MM.exec(e);
|
|
213
|
+
if (a) return n = /* @__PURE__ */ new Date(0), r = parseInt(a[1], 10) - 1, P(t, r) ? (n.setUTCFullYear(t, r), n) : /* @__PURE__ */ new Date(NaN);
|
|
214
|
+
if (a = w.DDD.exec(e), a) {
|
|
215
|
+
n = /* @__PURE__ */ new Date(0);
|
|
216
|
+
let e = parseInt(a[1], 10);
|
|
217
|
+
return F(t, e) ? (n.setUTCFullYear(t, 0, e), n) : /* @__PURE__ */ new Date(NaN);
|
|
218
|
+
}
|
|
219
|
+
if (a = w.MMDD.exec(e), a) {
|
|
220
|
+
n = /* @__PURE__ */ new Date(0), r = parseInt(a[1], 10) - 1;
|
|
221
|
+
let e = parseInt(a[2], 10);
|
|
222
|
+
return P(t, r, e) ? (n.setUTCFullYear(t, r, e), n) : /* @__PURE__ */ new Date(NaN);
|
|
223
|
+
}
|
|
224
|
+
if (a = w.Www.exec(e), a) return i = parseInt(a[1], 10) - 1, I(i) ? A(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
225
|
+
if (a = w.WwwD.exec(e), a) {
|
|
226
|
+
i = parseInt(a[1], 10) - 1;
|
|
227
|
+
let e = parseInt(a[2], 10) - 1;
|
|
228
|
+
return I(i, e) ? A(t, i, e) : /* @__PURE__ */ new Date(NaN);
|
|
229
|
+
}
|
|
230
|
+
return null;
|
|
231
|
+
}
|
|
232
|
+
function k(e) {
|
|
233
|
+
let t, n, r = w.HH.exec(e);
|
|
234
|
+
if (r) return t = parseFloat(r[1].replace(",", ".")), L(t) ? t % 24 * x : NaN;
|
|
235
|
+
if (r = w.HHMM.exec(e), r) return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")), L(t, n) ? t % 24 * x + n * S : NaN;
|
|
236
|
+
if (r = w.HHMMSS.exec(e), r) {
|
|
237
|
+
t = parseInt(r[1], 10), n = parseInt(r[2], 10);
|
|
238
|
+
let e = parseFloat(r[3].replace(",", "."));
|
|
239
|
+
return L(t, n, e) ? t % 24 * x + n * S + e * 1e3 : NaN;
|
|
240
|
+
}
|
|
241
|
+
return null;
|
|
242
|
+
}
|
|
243
|
+
function A(e, t, n) {
|
|
244
|
+
t ||= 0, n ||= 0;
|
|
245
|
+
let r = /* @__PURE__ */ new Date(0);
|
|
246
|
+
r.setUTCFullYear(e, 0, 4);
|
|
247
|
+
let i = r.getUTCDay() || 7, a = t * 7 + n + 1 - i;
|
|
248
|
+
return r.setUTCDate(r.getUTCDate() + a), r;
|
|
249
|
+
}
|
|
250
|
+
var j = [
|
|
251
|
+
31,
|
|
252
|
+
28,
|
|
253
|
+
31,
|
|
254
|
+
30,
|
|
255
|
+
31,
|
|
256
|
+
30,
|
|
257
|
+
31,
|
|
258
|
+
31,
|
|
259
|
+
30,
|
|
260
|
+
31,
|
|
261
|
+
30,
|
|
262
|
+
31
|
|
263
|
+
], M = [
|
|
264
|
+
31,
|
|
265
|
+
29,
|
|
266
|
+
31,
|
|
267
|
+
30,
|
|
268
|
+
31,
|
|
269
|
+
30,
|
|
270
|
+
31,
|
|
271
|
+
31,
|
|
272
|
+
30,
|
|
273
|
+
31,
|
|
274
|
+
30,
|
|
275
|
+
31
|
|
276
|
+
];
|
|
277
|
+
function N(e) {
|
|
278
|
+
return e % 400 == 0 || e % 4 == 0 && e % 100 != 0;
|
|
279
|
+
}
|
|
280
|
+
function P(e, t, n) {
|
|
281
|
+
if (t < 0 || t > 11) return !1;
|
|
282
|
+
if (n != null) {
|
|
283
|
+
if (n < 1) return !1;
|
|
284
|
+
let r = N(e);
|
|
285
|
+
if (r && n > M[t] || !r && n > j[t]) return !1;
|
|
286
|
+
}
|
|
287
|
+
return !0;
|
|
288
|
+
}
|
|
289
|
+
function F(e, t) {
|
|
290
|
+
if (t < 1) return !1;
|
|
291
|
+
let n = N(e);
|
|
292
|
+
return !(n && t > 366 || !n && t > 365);
|
|
293
|
+
}
|
|
294
|
+
function I(e, t) {
|
|
295
|
+
return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
|
|
296
|
+
}
|
|
297
|
+
function L(e, t, n) {
|
|
298
|
+
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
|
|
299
|
+
}
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region node_modules/date-fns-tz/dist/esm/toZonedTime/index.js
|
|
302
|
+
function R(e, t, n) {
|
|
303
|
+
e = T(e, n);
|
|
304
|
+
let r = f(t, e, !0), i = new Date(e.getTime() - r), a = /* @__PURE__ */ new Date(0);
|
|
305
|
+
return a.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), a.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), a;
|
|
306
|
+
}
|
|
307
|
+
//#endregion
|
|
308
|
+
export { c as a, f as i, T as n, b as r, R as t };
|