@webitel/ui-sdk 26.8.49 → 26.8.51
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-rgtvDufW.js +39250 -0
- package/dist/{components-gG_-DJ10.js → components-9JJurJkY.js} +639 -631
- package/dist/{enums-De8CDKZ1.js → enums-DY3jIXFF.js} +50 -29
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +3 -3
- package/dist/ui-sdk.umd.cjs +394 -394
- package/dist/{useValidation-D6P-wRwq.js → useValidation-BD4S-sEW.js} +1 -1
- package/dist/{wt-action-bar-HBm22ay5.js → wt-action-bar-C4JukltF.js} +2 -2
- package/dist/{wt-button-B7B7qITq.js → wt-button-2_aOV7LX.js} +4 -4
- package/dist/{wt-chat-emoji-mH3xAWyP.js → wt-chat-emoji-D2VNcMWj.js} +4 -4
- package/dist/{wt-datepicker-D5Af57PB.js → wt-datepicker-H4E0JyRE.js} +78 -51
- package/dist/{wt-display-chip-items-DnL_Twmy.js → wt-display-chip-items-Dk-8hhAU.js} +1 -1
- package/dist/{wt-dual-panel-BEGLGU7F.js → wt-dual-panel-C98aGU8o.js} +1 -1
- package/dist/{wt-expansion-card-CpmnVJ03.js → wt-expansion-card-CEMaWXCy.js} +1 -1
- package/dist/{wt-expansion-panel-Br7JPc5X.js → wt-expansion-panel-BjeXHSay.js} +1 -1
- package/dist/{wt-icon-09f_Vpk_.js → wt-icon-Ct0E7k_d.js} +1 -1
- package/dist/{wt-icon-action-BBmutGsL.js → wt-icon-action-DB6P4E4K.js} +1 -1
- package/dist/{wt-icon-btn-DvrrxhWx.js → wt-icon-btn-DZa_qsai.js} +1 -1
- package/dist/{wt-notifications-bar-0o0yhR7P.js → wt-notifications-bar-BEomlIrN.js} +2 -2
- package/dist/{wt-player-D_kVPIdJ.js → wt-player-1-8X7Uo8.js} +3 -3
- package/dist/{wt-search-bar-Dnjkgro3.js → wt-search-bar-DzzSQyB3.js} +1 -1
- package/dist/{wt-send-message-popup-C-fqzFxG.js → wt-send-message-popup-BYV75cZf.js} +2 -2
- package/dist/{wt-status-select-DL1bOn9G.js → wt-status-select-BuojqV_1.js} +9 -9
- package/dist/{wt-timepicker-CAkO0jFY.js → wt-timepicker-RhM7Sln_.js} +2 -2
- package/dist/{wt-toast-DrfbAfTj.js → wt-toast-eWzfeYuz.js} +2 -2
- package/dist/{wt-tree-table-DJGISZ65.js → wt-tree-table-DvG6KLLB.js} +1 -1
- package/dist/{wt-type-extension-value-input-jb7TbSvV.js → wt-type-extension-value-input-BYoxNwD4.js} +3 -3
- package/dist/{wt-vidstack-player-BrDmQ4dp.js → wt-vidstack-player-B-vb7PqO.js} +4 -4
- package/package.json +3 -1
- package/src/components/wt-datepicker/_internals/composables/useCloseOnAnchorHidden.ts +51 -0
- package/src/components/wt-datepicker/_internals/composables/useDatepicker.ts +17 -1
- package/src/components/wt-datepicker/wt-datepicker.vue +1 -0
- package/src/enums/QueueType/QueueType.enum.ts +12 -31
- package/src/enums/RelativeDatetimeValue/RelativeDatetimeValue.ts +1 -11
- package/src/locale/en/en.js +64 -0
- package/src/locale/es/es.js +64 -0
- package/src/locale/kz/kz.js +64 -0
- package/src/locale/pl/pl.js +64 -0
- package/src/locale/ro/ro.js +64 -0
- package/src/locale/ru/ru.js +64 -0
- package/src/locale/uk/uk.js +64 -0
- package/src/locale/uz/uz.js +64 -0
- package/src/locale/vi/vi.js +64 -0
- package/src/scripts/normalizeDatetime.ts +7 -88
- package/types/.tsbuildinfo +1 -1
- package/types/components/wt-datepicker/_internals/composables/useCloseOnAnchorHidden.d.ts +21 -0
- package/types/components/wt-datepicker/_internals/composables/useDatepicker.d.ts +1 -0
- package/types/enums/QueueType/QueueType.enum.d.ts +9 -28
- package/types/enums/RelativeDatetimeValue/RelativeDatetimeValue.d.ts +1 -7
- package/types/locale/en/en.d.ts +64 -0
- package/types/locale/es/es.d.ts +87 -3
- package/types/locale/i18n.d.ts +576 -0
- package/types/locale/index.d.ts +576 -0
- package/types/locale/kz/kz.d.ts +87 -3
- package/types/locale/pl/pl.d.ts +87 -3
- package/types/locale/ro/ro.d.ts +87 -3
- package/types/locale/ru/ru.d.ts +87 -3
- package/types/locale/uk/uk.d.ts +87 -3
- package/types/locale/uz/uz.d.ts +87 -3
- package/types/locale/vi/vi.d.ts +87 -3
- package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +1 -1
- package/types/scripts/normalizeDatetime.d.ts +1 -8
- package/dist/clients-DBqdsc05.js +0 -38757
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e } from "./enums-
|
|
1
|
+
import { i as e } from "./enums-DY3jIXFF.js";
|
|
2
2
|
import { t } from "./vue-i18n-Db_oYfO8.js";
|
|
3
3
|
import { computed as n, isReactive as r, isRef as i, unref as a } from "vue";
|
|
4
4
|
//#region src/mixins/validationMixin/regle/useRegleValidation.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./caseConverters-DXegZoCt.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { o as n } from "./enums-
|
|
3
|
+
import { o as n } from "./enums-DY3jIXFF.js";
|
|
4
4
|
import { t as r } from "./sortQueryAdapters-CyYXvnDN.js";
|
|
5
|
-
import { t as i } from "./wt-icon-action-
|
|
5
|
+
import { t as i } from "./wt-icon-action-DB6P4E4K.js";
|
|
6
6
|
import { Fragment as a, computed as o, createElementBlock as s, createVNode as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, renderList as p, renderSlot as m, unref as h } from "vue";
|
|
7
7
|
//#region src/components/wt-action-bar/WtActionBarActionsOrder.js
|
|
8
8
|
var g = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./wt-icon-
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "./wt-icon-Ct0E7k_d.js";
|
|
2
|
+
import { g as t, h as n, l as r } from "./enums-DY3jIXFF.js";
|
|
3
3
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementVNode as s, createTextVNode as c, defineComponent as l, inject as u, mergeProps as d, normalizeClass as f, openBlock as p, ref as m, renderSlot as h, resolveComponent as g, toDisplayString as _, toRef as v, unref as y, useAttrs as b, watch as x, withCtx as S, withModifiers as C } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/wt-badge-new/wt-badge.vue
|
|
@@ -26,7 +26,7 @@ var w = /* @__PURE__ */ l({
|
|
|
26
26
|
}), T = { class: "wt-button__contents" }, E = /* @__PURE__ */ l({
|
|
27
27
|
__name: "wt-button",
|
|
28
28
|
props: {
|
|
29
|
-
color: { default:
|
|
29
|
+
color: { default: t.PRIMARY },
|
|
30
30
|
disabled: {
|
|
31
31
|
type: Boolean,
|
|
32
32
|
default: !1
|
|
@@ -49,7 +49,7 @@ var w = /* @__PURE__ */ l({
|
|
|
49
49
|
badge: {},
|
|
50
50
|
badgeSeverity: {},
|
|
51
51
|
badgeAbsolutePosition: { type: Boolean },
|
|
52
|
-
variant: { default:
|
|
52
|
+
variant: { default: n.ACTIVE }
|
|
53
53
|
},
|
|
54
54
|
emits: ["click"],
|
|
55
55
|
setup(t, { emit: n }) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./components-
|
|
1
|
+
import "./components-9JJurJkY.js";
|
|
2
2
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { l as t } from "./enums-
|
|
4
|
-
import { t as n } from "./wt-button-
|
|
5
|
-
import { n as r } from "./wt-toast-
|
|
3
|
+
import { l as t } from "./enums-DY3jIXFF.js";
|
|
4
|
+
import { t as n } from "./wt-button-2_aOV7LX.js";
|
|
5
|
+
import { n as r } from "./wt-toast-eWzfeYuz.js";
|
|
6
6
|
import { Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createVNode as l, nextTick as u, onBeforeUnmount as d, openBlock as f, ref as p, resolveDirective as m, unref as h, withDirectives as g } from "vue";
|
|
7
7
|
//#region node_modules/emoji-picker-element/database.js
|
|
8
8
|
function _(e) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { g as t, h as n, l as r, r as i } from "./enums-DY3jIXFF.js";
|
|
3
3
|
import { a, i as o, n as s, r as c, t as l } from "./toZonedTime-B8L5kbse.js";
|
|
4
4
|
import { t as u } from "./vue-i18n-Db_oYfO8.js";
|
|
5
|
-
import { t as d } from "./useValidation-
|
|
6
|
-
import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as b, mergeModels as x, mergeProps as S, nextTick as C, normalizeProps as w, onMounted as T, onUnmounted as E, openBlock as D, renderSlot as O, resolveComponent as k, toDisplayString as A, toRefs as j, unref as M, useModel as N, useTemplateRef as
|
|
7
|
-
import
|
|
5
|
+
import { t as d } from "./useValidation-BD4S-sEW.js";
|
|
6
|
+
import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as b, mergeModels as x, mergeProps as S, nextTick as C, normalizeProps as w, onMounted as T, onUnmounted as E, openBlock as D, renderSlot as O, resolveComponent as k, toDisplayString as A, toRefs as j, unref as M, useModel as N, useTemplateRef as P, vShow as F, withCtx as I, withDirectives as ee } from "vue";
|
|
7
|
+
import te from "primevue/datepicker";
|
|
8
8
|
//#region node_modules/date-fns-tz/dist/esm/fromZonedTime/index.js
|
|
9
9
|
function L(e, t, n) {
|
|
10
10
|
if (typeof e == "string" && !e.match(c)) return s(e, {
|
|
@@ -55,8 +55,29 @@ function R(e) {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
+
//#region src/components/wt-datepicker/_internals/composables/useCloseOnAnchorHidden.ts
|
|
59
|
+
function z(e, t) {
|
|
60
|
+
let n = null;
|
|
61
|
+
function r() {
|
|
62
|
+
i();
|
|
63
|
+
let r = e();
|
|
64
|
+
r && (n = new IntersectionObserver((e) => {
|
|
65
|
+
if (!e.some((e) => !e.isIntersecting)) return;
|
|
66
|
+
let n = t();
|
|
67
|
+
n && (n.overlayVisible = !1);
|
|
68
|
+
}), n.observe(r));
|
|
69
|
+
}
|
|
70
|
+
function i() {
|
|
71
|
+
n?.disconnect(), n = null;
|
|
72
|
+
}
|
|
73
|
+
return E(i), {
|
|
74
|
+
watch: r,
|
|
75
|
+
unwatch: i
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
58
79
|
//#region src/components/wt-datepicker/_internals/composables/useOverlayAnchor.ts
|
|
59
|
-
function
|
|
80
|
+
function B() {
|
|
60
81
|
let e = null;
|
|
61
82
|
function t(e, t) {
|
|
62
83
|
e.style.width !== t && (e.style.width = t, e.style.minWidth = "");
|
|
@@ -84,7 +105,7 @@ function z() {
|
|
|
84
105
|
}
|
|
85
106
|
//#endregion
|
|
86
107
|
//#region src/components/wt-datepicker/_internals/composables/usePreventZeroPad.ts
|
|
87
|
-
function
|
|
108
|
+
function V() {
|
|
88
109
|
let e = null;
|
|
89
110
|
function t(t) {
|
|
90
111
|
let n = t.target, r = n.value, i = n.selectionStart ?? 0, a = r.split("/"), o = 0;
|
|
@@ -112,7 +133,7 @@ function B() {
|
|
|
112
133
|
}
|
|
113
134
|
//#endregion
|
|
114
135
|
//#region src/components/wt-datepicker/_internals/composables/useRestoreOnBlur.ts
|
|
115
|
-
function
|
|
136
|
+
function H(e, t) {
|
|
116
137
|
function n() {
|
|
117
138
|
if (t()) return;
|
|
118
139
|
let n = e();
|
|
@@ -124,7 +145,7 @@ function V(e, t) {
|
|
|
124
145
|
}
|
|
125
146
|
//#endregion
|
|
126
147
|
//#region src/components/wt-datepicker/_internals/composables/useStrictInput.ts
|
|
127
|
-
function
|
|
148
|
+
function U(e) {
|
|
128
149
|
let t = /^[0-9]$/, n = /* @__PURE__ */ new Set([
|
|
129
150
|
"Backspace",
|
|
130
151
|
"Delete",
|
|
@@ -151,45 +172,51 @@ function H(e) {
|
|
|
151
172
|
}
|
|
152
173
|
//#endregion
|
|
153
174
|
//#region src/components/wt-datepicker/_internals/composables/useDatepicker.ts
|
|
154
|
-
function
|
|
155
|
-
let { onInputCapture: i, onInputBubble: a } =
|
|
156
|
-
function
|
|
175
|
+
function W(e, t, n, r) {
|
|
176
|
+
let { onInputCapture: i, onInputBubble: a } = V(), { onInputBubble: o, resetLength: s } = R(n), { onKeydown: c } = U(n), { lock: l, unlock: u } = B(), { watch: d, unwatch: f } = z(e, t), { onBlur: p } = H(t, r);
|
|
177
|
+
function m(e) {
|
|
178
|
+
l(e), d();
|
|
179
|
+
}
|
|
180
|
+
function h() {
|
|
181
|
+
u(), f();
|
|
182
|
+
}
|
|
183
|
+
function g(e) {
|
|
157
184
|
i(e);
|
|
158
185
|
}
|
|
159
|
-
function
|
|
186
|
+
function _(e) {
|
|
160
187
|
a(e), o(e);
|
|
161
188
|
}
|
|
162
189
|
return T(() => {
|
|
163
190
|
let t = e();
|
|
164
|
-
t && (s(t), t.addEventListener("input",
|
|
191
|
+
t && (s(t), t.addEventListener("input", g, { capture: !0 }), t.addEventListener("input", _), t.addEventListener("keydown", c));
|
|
165
192
|
}), E(() => {
|
|
166
193
|
let t = e();
|
|
167
|
-
t && (t.removeEventListener("input",
|
|
194
|
+
t && (t.removeEventListener("input", g, { capture: !0 }), t.removeEventListener("input", _), t.removeEventListener("keydown", c));
|
|
168
195
|
}), {
|
|
169
|
-
onBlur:
|
|
170
|
-
lockOverlay:
|
|
171
|
-
unlockOverlay:
|
|
196
|
+
onBlur: p,
|
|
197
|
+
lockOverlay: m,
|
|
198
|
+
unlockOverlay: h
|
|
172
199
|
};
|
|
173
200
|
}
|
|
174
201
|
//#endregion
|
|
175
202
|
//#region src/components/wt-datepicker/wt-datepicker.vue?vue&type=script&setup=true&lang.ts
|
|
176
|
-
var
|
|
203
|
+
var G = { class: "wt-datepicker" }, K = { class: "wt-datepicker__button-bar" }, q = [
|
|
177
204
|
"onMousedown",
|
|
178
205
|
"onMouseup",
|
|
179
206
|
"onMouseleave"
|
|
180
|
-
],
|
|
207
|
+
], J = [
|
|
181
208
|
"onMousedown",
|
|
182
209
|
"onMouseup",
|
|
183
210
|
"onMouseleave"
|
|
184
|
-
],
|
|
211
|
+
], Y = [
|
|
185
212
|
"onMousedown",
|
|
186
213
|
"onMouseup",
|
|
187
214
|
"onMouseleave"
|
|
188
|
-
],
|
|
215
|
+
], X = [
|
|
189
216
|
"onMousedown",
|
|
190
217
|
"onMouseup",
|
|
191
218
|
"onMouseleave"
|
|
192
|
-
],
|
|
219
|
+
], Z = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
193
220
|
__name: "wt-datepicker",
|
|
194
221
|
props: /*@__PURE__*/ x({
|
|
195
222
|
showTime: { type: Boolean },
|
|
@@ -307,7 +334,7 @@ var W = { class: "wt-datepicker" }, G = { class: "wt-datepicker__button-bar" },
|
|
|
307
334
|
let t = o.timezone ? L(e, o.timezone) : e;
|
|
308
335
|
s.value = t.getTime();
|
|
309
336
|
}
|
|
310
|
-
}), x =
|
|
337
|
+
}), x = P("datepicker"), T = (e) => e, E = `datepicker-${Math.random().toString(36).slice(2, 11)}`, { onBlur: R, lockOverlay: z, unlockOverlay: B } = W(() => x.value?.$el?.querySelector("input") ?? null, () => x.value ?? null, () => !!o.showTime, () => !!o.clearable), V = f(() => o.placholder || `dd/mm/yyyy ${o.showTime ? "hh:mm" : ""}`), H = () => {
|
|
311
338
|
if (o.showTime && y.value) {
|
|
312
339
|
let e = y.value;
|
|
313
340
|
C(() => {
|
|
@@ -319,7 +346,7 @@ var W = { class: "wt-datepicker" }, G = { class: "wt-datepicker__button-bar" },
|
|
|
319
346
|
let e = x.value?.overlay;
|
|
320
347
|
e && (e.style.minWidth = "", z(e));
|
|
321
348
|
}, 0);
|
|
322
|
-
},
|
|
349
|
+
}, U = () => {
|
|
323
350
|
B();
|
|
324
351
|
}, Z = f(() => o.required ? `${o.label}*` : o.label), { v: ne, customValidators: re, regleValidation: ie } = j(o), { isValidation: ae, invalid: Q, validationText: $, validationTextColor: oe } = d({
|
|
325
352
|
v: ne,
|
|
@@ -328,15 +355,15 @@ var W = { class: "wt-datepicker" }, G = { class: "wt-datepicker__button-bar" },
|
|
|
328
355
|
});
|
|
329
356
|
return (a, o) => {
|
|
330
357
|
let s = k("wt-label"), l = k("wt-button"), u = k("wt-icon-btn"), d = k("wt-message");
|
|
331
|
-
return D(), h("div",
|
|
358
|
+
return D(), h("div", G, [
|
|
332
359
|
v(s, S(e.labelProps, { disabled: e.disabled }, {
|
|
333
360
|
for: E,
|
|
334
361
|
invalid: M(Q)
|
|
335
362
|
}), {
|
|
336
|
-
default:
|
|
363
|
+
default: I(() => [O(a.$slots, "label", w(b({ label: e.label })), () => [_(A(Z.value), 1)], !0)], void 0, !0),
|
|
337
364
|
_: 3
|
|
338
365
|
}, 16, ["disabled", "invalid"]),
|
|
339
|
-
v(M(
|
|
366
|
+
v(M(te), {
|
|
340
367
|
ref_key: "datepicker",
|
|
341
368
|
ref: x,
|
|
342
369
|
id: E,
|
|
@@ -364,69 +391,69 @@ var W = { class: "wt-datepicker" }, G = { class: "wt-datepicker__button-bar" },
|
|
|
364
391
|
panel: { style: { maxWidth: "380px" } }
|
|
365
392
|
},
|
|
366
393
|
onShow: H,
|
|
367
|
-
onHide:
|
|
394
|
+
onHide: U,
|
|
368
395
|
onBlur: M(R)
|
|
369
396
|
}, {
|
|
370
|
-
buttonbar:
|
|
371
|
-
color: M(
|
|
372
|
-
variant: M(
|
|
397
|
+
buttonbar: I(({ todayCallback: i, clearCallback: a }) => [g("div", K, [v(l, {
|
|
398
|
+
color: M(t).SECONDARY,
|
|
399
|
+
variant: M(n).OUTLINED,
|
|
373
400
|
size: M(r).SM,
|
|
374
401
|
onClick: i
|
|
375
402
|
}, {
|
|
376
|
-
default:
|
|
403
|
+
default: I(() => [_(A(M(c)("reusable.today")), 1)], void 0, !0),
|
|
377
404
|
_: 1
|
|
378
405
|
}, 8, [
|
|
379
406
|
"color",
|
|
380
407
|
"variant",
|
|
381
408
|
"size",
|
|
382
409
|
"onClick"
|
|
383
|
-
]),
|
|
384
|
-
color: M(
|
|
385
|
-
variant: M(
|
|
410
|
+
]), ee(v(l, {
|
|
411
|
+
color: M(t).SECONDARY,
|
|
412
|
+
variant: M(n).OUTLINED,
|
|
386
413
|
size: M(r).SM,
|
|
387
414
|
onClick: a
|
|
388
415
|
}, {
|
|
389
|
-
default:
|
|
416
|
+
default: I(() => [_(A(M(c)("reusable.clear")), 1)], void 0, !0),
|
|
390
417
|
_: 1
|
|
391
418
|
}, 8, [
|
|
392
419
|
"color",
|
|
393
420
|
"variant",
|
|
394
421
|
"size",
|
|
395
422
|
"onClick"
|
|
396
|
-
]), [[
|
|
397
|
-
prevbutton:
|
|
423
|
+
]), [[F, e.clearable && y.value]])])]),
|
|
424
|
+
prevbutton: I(({ actionCallback: e }) => [v(u, {
|
|
398
425
|
icon: "arrow-left",
|
|
399
426
|
onClick: e
|
|
400
427
|
}, null, 8, ["onClick"])]),
|
|
401
|
-
nextbutton:
|
|
428
|
+
nextbutton: I(({ actionCallback: e }) => [v(u, {
|
|
402
429
|
icon: "arrow-right",
|
|
403
430
|
onClick: e
|
|
404
431
|
}, null, 8, ["onClick"])]),
|
|
405
|
-
clearicon:
|
|
432
|
+
clearicon: I(({ clearCallback: e }) => [v(u, {
|
|
406
433
|
icon: "close",
|
|
407
434
|
class: "wt-datepicker__clear-icon",
|
|
408
435
|
onClick: e
|
|
409
436
|
}, null, 8, ["onClick"])]),
|
|
410
|
-
hourincrementbutton:
|
|
437
|
+
hourincrementbutton: I(({ callbacks: e }) => [g("span", {
|
|
411
438
|
onMousedown: T(e).mousedown,
|
|
412
439
|
onMouseup: T(e).mouseup,
|
|
413
440
|
onMouseleave: T(e).mouseleave
|
|
414
|
-
}, [v(u, { icon: "arrow-up" })], 40,
|
|
415
|
-
hourdecrementbutton:
|
|
441
|
+
}, [v(u, { icon: "arrow-up" })], 40, q)]),
|
|
442
|
+
hourdecrementbutton: I(({ callbacks: e }) => [g("span", {
|
|
416
443
|
onMousedown: T(e).mousedown,
|
|
417
444
|
onMouseup: T(e).mouseup,
|
|
418
445
|
onMouseleave: T(e).mouseleave
|
|
419
|
-
}, [v(u, { icon: "arrow-down" })], 40,
|
|
420
|
-
minuteincrementbutton:
|
|
446
|
+
}, [v(u, { icon: "arrow-down" })], 40, J)]),
|
|
447
|
+
minuteincrementbutton: I(({ callbacks: e }) => [g("span", {
|
|
421
448
|
onMousedown: T(e).mousedown,
|
|
422
449
|
onMouseup: T(e).mouseup,
|
|
423
450
|
onMouseleave: T(e).mouseleave
|
|
424
|
-
}, [v(u, { icon: "arrow-up" })], 40,
|
|
425
|
-
minutedecrementbutton:
|
|
451
|
+
}, [v(u, { icon: "arrow-up" })], 40, Y)]),
|
|
452
|
+
minutedecrementbutton: I(({ callbacks: e }) => [g("span", {
|
|
426
453
|
onMousedown: T(e).mousedown,
|
|
427
454
|
onMouseup: T(e).mouseup,
|
|
428
455
|
onMouseleave: T(e).mouseleave
|
|
429
|
-
}, [v(u, { icon: "arrow-down" })], 40,
|
|
456
|
+
}, [v(u, { icon: "arrow-down" })], 40, X)]),
|
|
430
457
|
_: 1
|
|
431
458
|
}, 8, [
|
|
432
459
|
"modelValue",
|
|
@@ -446,7 +473,7 @@ var W = { class: "wt-datepicker" }, G = { class: "wt-datepicker__button-bar" },
|
|
|
446
473
|
variant: M(i).SIMPLE,
|
|
447
474
|
size: M(r).SM
|
|
448
475
|
}, {
|
|
449
|
-
default:
|
|
476
|
+
default: I(() => [_(A(M($)), 1)], void 0, !0),
|
|
450
477
|
_: 1
|
|
451
478
|
}, 8, [
|
|
452
479
|
"color",
|
|
@@ -456,6 +483,6 @@ var W = { class: "wt-datepicker" }, G = { class: "wt-datepicker__button-bar" },
|
|
|
456
483
|
]);
|
|
457
484
|
};
|
|
458
485
|
}
|
|
459
|
-
}), [["__scopeId", "data-v-
|
|
486
|
+
}), [["__scopeId", "data-v-7e8ec149"]]);
|
|
460
487
|
//#endregion
|
|
461
|
-
export {
|
|
488
|
+
export { Z as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, i as t } from "./components-
|
|
1
|
+
import { C as e, i as t } from "./components-9JJurJkY.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { t as r } from "./displayText-CtaxzaBz.js";
|
|
4
4
|
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { l as t, o as n } from "./enums-
|
|
2
|
+
import { l as t, o as n } from "./enums-DY3jIXFF.js";
|
|
3
3
|
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, normalizeClass as c, openBlock as l, ref as u, renderSlot as d, resolveComponent as f, unref as p } from "vue";
|
|
4
4
|
//#region src/components/wt-dual-panel/wt-dual-panel.vue
|
|
5
5
|
var m = { class: "wt-dual-panel" }, h = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { l as t } from "./enums-
|
|
2
|
+
import { l as t } from "./enums-DY3jIXFF.js";
|
|
3
3
|
import { t as n } from "./useExpansion-DVdIpoOn.js";
|
|
4
4
|
import "./composables-BtWSAI5D.js";
|
|
5
5
|
import { t as r } from "./wt-expand-transition-C2p9bR4j.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { l as t } from "./enums-
|
|
2
|
+
import { l as t } from "./enums-DY3jIXFF.js";
|
|
3
3
|
import { t as n } from "./useExpansion-DVdIpoOn.js";
|
|
4
4
|
import { t as r } from "./wt-expand-transition-C2p9bR4j.js";
|
|
5
5
|
import { createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, guardReactiveProps as c, normalizeClass as l, normalizeProps as u, openBlock as d, renderSlot as f, resolveComponent as p, toRef as m, unref as h, vShow as g, withCtx as _, withDirectives as v, withKeys as y } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./caseConverters-DXegZoCt.js";
|
|
2
|
-
import { a as t, l as n } from "./enums-
|
|
2
|
+
import { a as t, l as n } from "./enums-DY3jIXFF.js";
|
|
3
3
|
import { computed as r, createElementBlock as i, defineComponent as a, normalizeClass as o, openBlock as s } from "vue";
|
|
4
4
|
//#region node_modules/dompurify/dist/purify.es.mjs
|
|
5
5
|
function c(e, t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e } from "./enums-
|
|
1
|
+
import { o as e } from "./enums-DY3jIXFF.js";
|
|
2
2
|
import { t } from "./vue-i18n-Db_oYfO8.js";
|
|
3
3
|
import { t as n } from "./sortQueryAdapters-CyYXvnDN.js";
|
|
4
4
|
import { computed as r, createBlock as i, openBlock as a, resolveComponent as o, resolveDirective as s, unref as c, withDirectives as l } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./wt-icon-
|
|
1
|
+
import { t as e } from "./wt-icon-Ct0E7k_d.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeModels as u, mergeProps as d, normalizeClass as f, normalizeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, toDisplayString as _, useModel as v, useSlots as y, withCtx as b } from "vue";
|
|
4
4
|
//#region src/components/wt-checkbox/wt-checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e } from "./enums-
|
|
2
|
-
import { n as t, t as n } from "./wt-toast-
|
|
1
|
+
import { i as e } from "./enums-DY3jIXFF.js";
|
|
2
|
+
import { n as t, t as n } from "./wt-toast-eWzfeYuz.js";
|
|
3
3
|
import { createBlock as r, inject as i, onUnmounted as a, openBlock as o } from "vue";
|
|
4
4
|
import { useToast as s } from "primevue/usetoast";
|
|
5
5
|
//#region src/components/wt-toast/types/index.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./wt-icon-
|
|
1
|
+
import { t as e } from "./wt-icon-Ct0E7k_d.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { l as n } from "./enums-
|
|
4
|
-
import { t as r } from "./wt-button-
|
|
3
|
+
import { l as n } from "./enums-DY3jIXFF.js";
|
|
4
|
+
import { t as r } from "./wt-button-2_aOV7LX.js";
|
|
5
5
|
import { n as i, t as a } from "./useVidstackSrc-aQcqC_v0.js";
|
|
6
6
|
import { t as o } from "./wt-popover-lP-AhF8l.js";
|
|
7
7
|
import { t as s } from "./wt-slider-BPzRTeYU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { t } from "./debounce-Bp3jy7S5.js";
|
|
3
|
-
import { t as n } from "./useValidation-
|
|
3
|
+
import { t as n } from "./useValidation-BD4S-sEW.js";
|
|
4
4
|
import { computed as r, createBlock as i, createCommentVNode as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderSlot as p, resolveComponent as m, resolveDirective as h, toDisplayString as g, toRefs as _, unref as v, withCtx as y, withDirectives as b } from "vue";
|
|
5
5
|
//#region src/components/wt-search-bar/wt-search-bar.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var x = { class: "wt-search-bar__icon-controls" }, S = /*#__PURE__*/ e(/* @__PURE__ */ u({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-BEcgMyyN.js";
|
|
2
|
-
import { n as t, r as n } from "./clients-
|
|
3
|
-
import { T as r, n as i, w as a } from "./components-
|
|
2
|
+
import { n as t, r as n } from "./clients-rgtvDufW.js";
|
|
3
|
+
import { T as r, n as i, w as a } from "./components-9JJurJkY.js";
|
|
4
4
|
import { t as o } from "./vue-i18n-Db_oYfO8.js";
|
|
5
5
|
import { n as s } from "./useEventBus-B-ZeklLu.js";
|
|
6
6
|
import { createBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeProps as f, onMounted as p, openBlock as m, ref as h, resolveComponent as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as e, l as t } from "./enums-DY3jIXFF.js";
|
|
2
2
|
import { t as n } from "./vue-i18n-Db_oYfO8.js";
|
|
3
3
|
import { t as r } from "./convertDuration-1K7fuEpO.js";
|
|
4
4
|
import { computed as i, createBlock as a, createVNode as o, defineComponent as s, openBlock as c, resolveComponent as l, unref as u, withCtx as d } from "vue";
|
|
@@ -7,27 +7,27 @@ var f = [
|
|
|
7
7
|
{
|
|
8
8
|
locale: "webitelUI.statusSelect.online",
|
|
9
9
|
color: "success",
|
|
10
|
-
value:
|
|
10
|
+
value: e.ONLINE
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
locale: "webitelUI.statusSelect.pause",
|
|
14
14
|
color: "primary",
|
|
15
|
-
value:
|
|
15
|
+
value: e.PAUSE
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
locale: "webitelUI.statusSelect.offline",
|
|
19
19
|
color: "secondary",
|
|
20
|
-
value:
|
|
20
|
+
value: e.OFFLINE
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
locale: "webitelUI.statusSelect.breakOut",
|
|
24
24
|
color: "break-out",
|
|
25
|
-
value:
|
|
25
|
+
value: e.BREAK_OUT
|
|
26
26
|
}
|
|
27
27
|
], p = /* @__PURE__ */ s({
|
|
28
28
|
__name: "wt-status-select",
|
|
29
29
|
props: {
|
|
30
|
-
status: { default:
|
|
30
|
+
status: { default: e.OFFLINE },
|
|
31
31
|
statusDuration: { default: 0 },
|
|
32
32
|
options: {}
|
|
33
33
|
},
|
|
@@ -36,11 +36,11 @@ var f = [
|
|
|
36
36
|
let m = s, h = p, { t: g } = n(), _ = i(() => m.options ? m.options : f.map((e) => ({
|
|
37
37
|
...e,
|
|
38
38
|
text: g(e.locale)
|
|
39
|
-
}))), v = i(() => _.value.find((e) => e.value === m.status)), y = i(() => _.value.filter((
|
|
39
|
+
}))), v = i(() => _.value.find((e) => e.value === m.status)), y = i(() => _.value.filter((t) => t.value !== e.BREAK_OUT && (t.value !== e.OFFLINE || m.status !== e.OFFLINE))), b = i(() => typeof m.statusDuration == "string" ? m.statusDuration : m.statusDuration === void 0 ? v.value?.text ?? "" : r(m.statusDuration));
|
|
40
40
|
function x(e) {
|
|
41
41
|
h("change", e.value);
|
|
42
42
|
}
|
|
43
|
-
return (
|
|
43
|
+
return (e, n) => {
|
|
44
44
|
let r = l("wt-indicator"), i = l("wt-single-select");
|
|
45
45
|
return c(), a(i, {
|
|
46
46
|
"show-clear": !1,
|
|
@@ -49,7 +49,7 @@ var f = [
|
|
|
49
49
|
"model-value": v.value,
|
|
50
50
|
class: "wt-status-select",
|
|
51
51
|
"data-key": "value",
|
|
52
|
-
size: u(
|
|
52
|
+
size: u(t).SM,
|
|
53
53
|
"onUpdate:modelValue": x
|
|
54
54
|
}, {
|
|
55
55
|
value: d(() => [o(r, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { l as t, r as n } from "./enums-
|
|
2
|
+
import { l as t, r as n } from "./enums-DY3jIXFF.js";
|
|
3
3
|
import { t as r } from "./vue-i18n-Db_oYfO8.js";
|
|
4
|
-
import { t as i } from "./useValidation-
|
|
4
|
+
import { t as i } from "./useValidation-BD4S-sEW.js";
|
|
5
5
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeProps as g, openBlock as _, renderSlot as v, resolveComponent as y, toDisplayString as b, toRefs as x, unref as S, withCtx as C } from "vue";
|
|
6
6
|
//#region src/components/wt-timepicker/wt-timepicker.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/ e(/* @__PURE__ */ d({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./wt-icon-
|
|
2
|
-
import { i as t, l as n } from "./enums-
|
|
1
|
+
import { t as e } from "./wt-icon-Ct0E7k_d.js";
|
|
2
|
+
import { i as t, l as n } from "./enums-DY3jIXFF.js";
|
|
3
3
|
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, normalizeProps as d, normalizeStyle as f, openBlock as p, resolveComponent as m, toDisplayString as h, unref as g, useAttrs as _, withCtx as v } from "vue";
|
|
4
4
|
//#region node_modules/mitt/dist/mitt.mjs
|
|
5
5
|
function y(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { n as t } from "./sortQueryAdapters-CyYXvnDN.js";
|
|
3
|
-
import { n, t as r } from "./wt-icon-btn-
|
|
3
|
+
import { n, t as r } from "./wt-icon-btn-DZa_qsai.js";
|
|
4
4
|
import { t as i } from "./useWtTable-DLWucXPx.js";
|
|
5
5
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, normalizeStyle as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveComponent as S, toDisplayString as C, toRef as w, unref as T, withCtx as E, withModifiers as D } from "vue";
|
|
6
6
|
//#region src/components/wt-tree-table-row/wt-tree-table-row.vue?vue&type=script&setup=true&lang.ts
|
package/dist/{wt-type-extension-value-input-jb7TbSvV.js → wt-type-extension-value-input-BYoxNwD4.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./clients-
|
|
2
|
-
import { a as t, o as n, r, s as i } from "./components-
|
|
3
|
-
import { t as a } from "./enums-
|
|
1
|
+
import { t as e } from "./clients-rgtvDufW.js";
|
|
2
|
+
import { a as t, o as n, r, s as i } from "./components-9JJurJkY.js";
|
|
3
|
+
import { t as a } from "./enums-DY3jIXFF.js";
|
|
4
4
|
import { t as o } from "./vue-i18n-Db_oYfO8.js";
|
|
5
5
|
import { computed as s, createBlock as c, createCommentVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, unref as _, useModel as v } from "vue";
|
|
6
6
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as e } from "./components-9JJurJkY.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { l as n } from "./enums-
|
|
4
|
-
import "./wt-button-
|
|
5
|
-
import { t as r } from "./wt-icon-btn-
|
|
3
|
+
import { l as n } from "./enums-DY3jIXFF.js";
|
|
4
|
+
import "./wt-button-2_aOV7LX.js";
|
|
5
|
+
import { t as r } from "./wt-icon-btn-DZa_qsai.js";
|
|
6
6
|
import { $ as i, C as a, D as o, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, N as h, O as ee, P as te, Q as g, R as ne, S as _, U as re, V as v, W as y, X as b, Y as ie, Z as x, _ as S, a as ae, b as oe, c as se, d as ce, et as le, f as ue, g as de, h as fe, i as C, it as pe, j as me, k as he, l as w, m as ge, n as T, nt as E, o as D, ot as _e, p as O, q as k, r as A, rt as ve, t as ye, tt as be, u as xe, v as j, w as Se, y as Ce, z as we } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
7
7
|
import { _ as M, a as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, l as Me, m as Ne, n as Pe, o as Fe, p as Ie, r as Le, s as Re, t as N, u as ze } from "./vidstack-CgfrU1hS-CNTJkyzm.js";
|
|
8
8
|
import { _ as Be, a as Ve, c as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, n as Je, r as Ye, s as Xe, t as Ze, u as Qe, v as $e, x as et, y as tt } from "./useVidstackSrc-aQcqC_v0.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "26.8.
|
|
3
|
+
"version": "26.8.51",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "npm run docs:dev",
|
|
@@ -94,8 +94,10 @@
|
|
|
94
94
|
"lodash-es": "^4.17.21",
|
|
95
95
|
"mitt": "^3.0.1",
|
|
96
96
|
"path-browserify": "^1.0.1",
|
|
97
|
+
"pinia": "^3.x",
|
|
97
98
|
"tiny-jsonc": "^1.0.2",
|
|
98
99
|
"vidstack": "^1.12.13",
|
|
100
|
+
"vue": "^3.5",
|
|
99
101
|
"vue-i18n": "^11.1.2",
|
|
100
102
|
"vue-router": "^4.5.0",
|
|
101
103
|
"webitel-sdk": "^26.4.8",
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { onUnmounted } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author @HlukhovYe
|
|
5
|
+
*
|
|
6
|
+
* https://webitel.atlassian.net/browse/WTEL-10175
|
|
7
|
+
*
|
|
8
|
+
* PrimeVue's DatePicker only closes its overlay on window resize or on scroll
|
|
9
|
+
* of the input's scrollable ancestors — it has no way to notice the input
|
|
10
|
+
* itself disappearing (e.g. a tab switch, a `v-if`, or a collapsing parent
|
|
11
|
+
* that doesn't fire scroll/resize). When that happens the overlay is left
|
|
12
|
+
* open and detached from its anchor.
|
|
13
|
+
*
|
|
14
|
+
* Watches the datepicker's root element with an IntersectionObserver, which
|
|
15
|
+
* also fires when the element is hidden via `display: none` or detached from
|
|
16
|
+
* the layout, and force-closes the overlay when that happens.
|
|
17
|
+
*/
|
|
18
|
+
export function useCloseOnAnchorHidden(
|
|
19
|
+
getAnchor: () => HTMLElement | null,
|
|
20
|
+
getDatepicker: () => {
|
|
21
|
+
overlayVisible?: boolean;
|
|
22
|
+
} | null,
|
|
23
|
+
) {
|
|
24
|
+
let observer: IntersectionObserver | null = null;
|
|
25
|
+
|
|
26
|
+
function watch() {
|
|
27
|
+
unwatch();
|
|
28
|
+
const anchor = getAnchor();
|
|
29
|
+
if (!anchor) return;
|
|
30
|
+
|
|
31
|
+
observer = new IntersectionObserver((entries) => {
|
|
32
|
+
const isHidden = entries.some((entry) => !entry.isIntersecting);
|
|
33
|
+
if (!isHidden) return;
|
|
34
|
+
const datepicker = getDatepicker();
|
|
35
|
+
if (datepicker) datepicker.overlayVisible = false;
|
|
36
|
+
});
|
|
37
|
+
observer.observe(anchor);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function unwatch() {
|
|
41
|
+
observer?.disconnect();
|
|
42
|
+
observer = null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
onUnmounted(unwatch);
|
|
46
|
+
|
|
47
|
+
return {
|
|
48
|
+
watch,
|
|
49
|
+
unwatch,
|
|
50
|
+
};
|
|
51
|
+
}
|