@webitel/ui-sdk 26.8.104 → 26.8.106
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-BZ1QzRFi.js → clients-Dm3JLACL.js} +2 -2
- package/dist/{components-oyMSmFwI.js → components-CRmvV0ze.js} +21 -17
- package/dist/{composables-OP5kSvlh.js → composables-Vg-QfE_2.js} +112 -86
- package/dist/{convertDuration-CGW5IDMW.js → convertDuration-heRoQzks.js} +8 -8
- package/dist/{enums-Bd-8yrmg.js → enums-BDtfwdQu.js} +1 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +19 -3
- package/dist/ui-sdk.umd.cjs +342 -341
- package/dist/{useValidation-CtEfmUkB.js → useValidation-B4q8qUvG.js} +1 -1
- package/dist/{utils-B_8uwL9P.js → utils-DaacyMAw.js} +1 -1
- package/dist/{wt-action-bar-B4rcG26w.js → wt-action-bar-ChLl_-jR.js} +2 -2
- package/dist/{wt-badge-lFnfK2an.js → wt-badge-C8O4Oarp.js} +1 -1
- package/dist/{wt-button-BzYDkfhK.js → wt-button-C-BRwWdy.js} +2 -2
- package/dist/{wt-chat-emoji-CdNBvJez.js → wt-chat-emoji-DUYgD7x0.js} +4 -4
- package/dist/{wt-datepicker-D_O49-Ab.js → wt-datepicker-C1kACub3.js} +2 -2
- package/dist/{wt-display-chip-items-1uWroA2z.js → wt-display-chip-items-Dm6I2JFC.js} +2 -2
- package/dist/{wt-dual-panel-B0inNxRm.js → wt-dual-panel-D5TCilWN.js} +1 -1
- package/dist/{wt-expansion-card-CJjtuFDk.js → wt-expansion-card-2wdr_Hpi.js} +2 -2
- package/dist/{wt-expansion-panel-tqCCM3go.js → wt-expansion-panel-DP8zz2tS.js} +1 -1
- package/dist/{wt-galleria-CmaNfz7E.js → wt-galleria-iRpRiDc6.js} +1 -1
- package/dist/{wt-icon-DFtSR4bO.js → wt-icon-B8nQuJZu.js} +1 -1
- package/dist/{wt-icon-action-DUAnoMrj.js → wt-icon-action-g26vM7fD.js} +1 -1
- package/dist/{wt-icon-btn-CeGGT2PO.js → wt-icon-btn-BFRfANYh.js} +1 -1
- package/dist/{wt-notifications-bar-DWME3pmb.js → wt-notifications-bar-BnCbODMe.js} +2 -2
- package/dist/{wt-player-DXCQLKch.js → wt-player-DnoC6Gci.js} +3 -3
- package/dist/{wt-screen-recordings-action-Cx7-2gDE.js → wt-screen-recordings-action-biHVl6lR.js} +1 -1
- package/dist/{wt-search-bar-BkopW1qp.js → wt-search-bar-ByF2Wjsg.js} +1 -1
- package/dist/{wt-send-message-popup-C3qRY8Lk.js → wt-send-message-popup-afA26_0Q.js} +3 -3
- package/dist/{wt-status-select-DnaJ04Gw.js → wt-status-select-BOmAd__4.js} +2 -2
- package/dist/{wt-table-xmGhfp4p.js → wt-table-C_91bkNX.js} +5 -5
- package/dist/{wt-timepicker-C0DHJSeR.js → wt-timepicker-C4kMPkNd.js} +2 -2
- package/dist/{wt-toast-Lge1Y6IO.js → wt-toast-CBQIP-YS.js} +2 -2
- package/dist/{wt-tree-table-BTHxl_MY.js → wt-tree-table-DMK0J0Jx.js} +1 -1
- package/dist/{wt-type-extension-value-input-CkBr5oPm.js → wt-type-extension-value-input-CEX06xVC.js} +3 -3
- package/dist/{wt-vidstack-player-P4fT1R6k.js → wt-vidstack-player-1Z1fEhkA.js} +5 -5
- package/package.json +1 -1
- package/src/components/_internals/composables/useSelect/__tests__/useSelectAutoOpen.spec.ts +206 -0
- package/src/components/_internals/composables/useSelect/types.ts +1 -0
- package/src/components/_internals/composables/useSelect/useSelect.ts +6 -2
- package/src/components/_internals/composables/useSelect/useSelectAutoOpen.ts +106 -0
- package/src/components/_internals/types/PrimevueInstance.ts +1 -0
- package/src/components/wt-chip/wt-chip.vue +4 -2
- package/src/components/wt-multi-select/wt-multi-select.vue +2 -0
- package/src/components/wt-single-select/wt-single-select.vue +2 -0
- package/src/components/wt-table/wt-table.vue +6 -0
- package/src/enums/ChipColor/ChipColor.ts +1 -0
- package/src/modules/UploadCsvPopup/components/wt-upload-csv-popup.vue +27 -27
- package/src/modules/UploadCsvPopup/composable/__tests__/useUploadCsv.spec.js +1 -1
- package/src/modules/UploadCsvPopup/composable/useUploadCsv.ts +3 -1
- package/src/plugins/primevue/theme/components/chip/chip.js +4 -0
- package/src/scripts/__tests__/convertDuration.spec.js +32 -0
- package/types/.tsbuildinfo +1 -1
- package/types/components/_internals/composables/useSelect/types.d.ts +1 -0
- package/types/components/_internals/composables/useSelect/useSelect.d.ts +1 -1
- package/types/components/_internals/composables/useSelect/useSelectAutoOpen.d.ts +15 -0
- package/types/components/_internals/types/PrimevueInstance.d.ts +1 -0
- package/types/components/wt-chip/wt-chip.vue.d.ts +4 -2
- package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +2 -2
- package/types/components/wt-multi-select/wt-multi-select.vue.d.ts +1 -0
- package/types/components/wt-popover/wt-popover.vue.d.ts +2 -2
- package/types/components/wt-single-select/wt-single-select.vue.d.ts +1 -0
- package/types/components/wt-tooltip/_internals/wt-tooltip-floating.vue.d.ts +2 -2
- package/types/enums/ChipColor/ChipColor.d.ts +1 -0
- package/types/plugins/primevue/theme/components/chip/chip.d.ts +12 -0
|
@@ -2,33 +2,33 @@ import { t as e } from "./vue-i18n-B88GcHzn.js";
|
|
|
2
2
|
import { t } from "./debounce-A4B4PTkL.js";
|
|
3
3
|
import "./useExpansion-DVdIpoOn.js";
|
|
4
4
|
import "./useWtTable-CUpN0LZ5.js";
|
|
5
|
-
import { computed as n, nextTick as r,
|
|
5
|
+
import { computed as n, nextTick as r, onBeforeUnmount as i, onMounted as a, onUnmounted as o, reactive as s, ref as c, watch as l } from "vue";
|
|
6
6
|
//#region src/components/_internals/composables/useGalleriaFullscreen/useGalleriaFullscreen.ts
|
|
7
|
-
var
|
|
8
|
-
let e =
|
|
9
|
-
e.value ?
|
|
7
|
+
var u = () => {
|
|
8
|
+
let e = c(!1), t = () => {
|
|
9
|
+
e.value ? i() : r();
|
|
10
10
|
}, n = () => {
|
|
11
11
|
e.value = !e.value;
|
|
12
12
|
}, r = () => {
|
|
13
13
|
let e = document.querySelector(".p-galleria");
|
|
14
14
|
e.requestFullscreen ? e.requestFullscreen() : e.mozRequestFullScreen ? e.mozRequestFullScreen() : e.webkitRequestFullscreen ? e.webkitRequestFullscreen() : e.msRequestFullscreen && e.msRequestFullscreen();
|
|
15
|
-
},
|
|
15
|
+
}, i = () => {
|
|
16
16
|
let e = document;
|
|
17
17
|
e.exitFullscreen ? e.exitFullscreen() : e.mozCancelFullScreen ? e.mozCancelFullScreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.msExitFullscreen && e.msExitFullscreen();
|
|
18
|
-
},
|
|
18
|
+
}, s = () => {
|
|
19
19
|
document.addEventListener("fullscreenchange", n), document.addEventListener("mozfullscreenchange", n), document.addEventListener("webkitfullscreenchange", n), document.addEventListener("msfullscreenchange", n);
|
|
20
20
|
}, l = () => {
|
|
21
21
|
document.removeEventListener("fullscreenchange", n), document.removeEventListener("mozfullscreenchange", n), document.removeEventListener("webkitfullscreenchange", n), document.removeEventListener("msfullscreenchange", n);
|
|
22
22
|
};
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
}),
|
|
23
|
+
return a(() => {
|
|
24
|
+
s();
|
|
25
|
+
}), o(() => {
|
|
26
26
|
l();
|
|
27
27
|
}), {
|
|
28
28
|
fullScreen: e,
|
|
29
29
|
toggleFullScreen: t
|
|
30
30
|
};
|
|
31
|
-
},
|
|
31
|
+
}, d = (e) => {
|
|
32
32
|
let t = ({ target: t }) => {
|
|
33
33
|
t?.classList.contains("p-galleria-mask") && (e.value = !1);
|
|
34
34
|
};
|
|
@@ -40,7 +40,7 @@ var l = () => {
|
|
|
40
40
|
document.querySelector(".p-galleria-mask")?.removeEventListener("click", t);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
},
|
|
43
|
+
}, f = (e) => {
|
|
44
44
|
let t = n(() => e.value?.$el instanceof HTMLInputElement ? e.value?.$el : e.value?.$el?.querySelector("input"));
|
|
45
45
|
return {
|
|
46
46
|
focus: () => {
|
|
@@ -51,10 +51,36 @@ var l = () => {
|
|
|
51
51
|
t.value?.setAttribute("autocomplete", "off");
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
},
|
|
54
|
+
}, p = 30, m = async (e) => {
|
|
55
|
+
let t = [], n = e;
|
|
56
|
+
for (; n;) typeof n.getAnimations == "function" && t.push(...n.getAnimations()), n = n.parentElement;
|
|
57
|
+
t.length && await Promise.all(t.map((e) => e.finished.catch(() => void 0)));
|
|
58
|
+
}, h = (e, t) => {
|
|
59
|
+
let n = null, r = !1, a = () => {
|
|
60
|
+
r = !0, n !== null && (cancelAnimationFrame(n), n = null);
|
|
61
|
+
}, o = () => new Promise((e) => {
|
|
62
|
+
let i, a = 0, o = () => {
|
|
63
|
+
if (n = null, r) return;
|
|
64
|
+
let s = t.value?.$el;
|
|
65
|
+
if (!s) return;
|
|
66
|
+
let c = s.getBoundingClientRect();
|
|
67
|
+
if (i && c.top === i.top && c.left === i.left && c.width === i.width && c.height === i.height || ++a >= p) {
|
|
68
|
+
e();
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
i = c, n = requestAnimationFrame(o);
|
|
72
|
+
};
|
|
73
|
+
n = requestAnimationFrame(o);
|
|
74
|
+
});
|
|
75
|
+
return i(a), { openWhenSettled: async () => {
|
|
76
|
+
if (!e?.()) return;
|
|
77
|
+
let n = t.value?.$el;
|
|
78
|
+
n && (r = !1, await m(n), !r && (await o(), !r && t.value?.show?.()));
|
|
79
|
+
} };
|
|
80
|
+
}, g = (e) => Array.isArray(e) ? e : e ? [e] : [], _ = (e, t, n) => {
|
|
55
81
|
let r = (e) => typeof e == "object" && !!e;
|
|
56
82
|
return t.some((t) => n ? r(t) && r(e) ? t[n] === e[n] : !r(t) && r(e) ? t === e[n] : r(t) && !r(e) ? t[n] === e : t === e : t === e);
|
|
57
|
-
},
|
|
83
|
+
}, v = (e, t) => {
|
|
58
84
|
if (!t) return [...new Set(e)];
|
|
59
85
|
let n = /* @__PURE__ */ new Map();
|
|
60
86
|
for (let r of e) {
|
|
@@ -62,20 +88,20 @@ var l = () => {
|
|
|
62
88
|
n.has(e) || n.set(e, r);
|
|
63
89
|
}
|
|
64
90
|
return [...n.values()];
|
|
65
|
-
},
|
|
91
|
+
}, y = (e, t, n) => e.filter((e) => n(e).toLowerCase().includes(t.toLowerCase())), b = ({ selected: e, filteredOptions: t, options: n, dataKey: i, filterText: a, filterOptions: o, updateSelectedOptionsCache: s, selectRef: c, allowCustomValues: l, isSingle: u }) => {
|
|
66
92
|
let d = (e) => {
|
|
67
93
|
let r = n.value.length ? n.value[0] : t.value[0];
|
|
68
94
|
return r && typeof r == "object" ? Object.fromEntries(Object.keys(r).map((t) => [t, e])) : i.value ? { [i.value]: e } : e;
|
|
69
95
|
};
|
|
70
96
|
return { onInputKeydown: () => {
|
|
71
|
-
if (!l.value || !a.value ||
|
|
97
|
+
if (!l.value || !a.value || g(e.value).some((e) => (i.value ? e[i.value] : e) === a.value)) return;
|
|
72
98
|
let n = d(a.value);
|
|
73
|
-
t.value.some((e) =>
|
|
99
|
+
t.value.some((e) => _(e, [n], i.value)) || t.value.unshift(n), u ? (c.value?.hide?.(), e.value = n) : e.value = [...e.value, n], s(), r(() => {
|
|
74
100
|
a.value = "", o("");
|
|
75
101
|
});
|
|
76
102
|
} };
|
|
77
|
-
},
|
|
78
|
-
let h =
|
|
103
|
+
}, x = ({ selectId: e, selectRef: t, filterInput: n, searchMethod: i, filteredOptions: a, filterText: o, filterOptions: s, resetAndFetch: u, sortOptions: d, fetchOptions: f, isLoading: p, searchHasNext: m }) => {
|
|
104
|
+
let h = c(!1), g = null, _ = null, v = () => document.querySelector(`#${e.value}_list`)?.parentElement, y = (e) => {
|
|
79
105
|
let t = e.target;
|
|
80
106
|
t.scrollTop + t.clientHeight >= t.scrollHeight - 40 && !p.value && m.value && f();
|
|
81
107
|
}, b = null, x = () => {
|
|
@@ -97,7 +123,7 @@ var l = () => {
|
|
|
97
123
|
_ = requestAnimationFrame(i);
|
|
98
124
|
}
|
|
99
125
|
}, C = !1;
|
|
100
|
-
return
|
|
126
|
+
return l(a, () => {
|
|
101
127
|
C && (C = !1, r(() => v()?.scrollTo(0, 0)));
|
|
102
128
|
}), {
|
|
103
129
|
isDropdownOpen: h,
|
|
@@ -108,55 +134,55 @@ var l = () => {
|
|
|
108
134
|
},
|
|
109
135
|
onDropdownShow: S,
|
|
110
136
|
onDropdownHide: () => {
|
|
111
|
-
h.value = !1, b !== null && (cancelAnimationFrame(b), b = null), g?.disconnect(), g = null, _ !== null && (cancelAnimationFrame(_), _ = null), i.value ? (v()?.removeEventListener("scroll", y), o.value && u()) :
|
|
137
|
+
h.value = !1, b !== null && (cancelAnimationFrame(b), b = null), g?.disconnect(), g = null, _ !== null && (cancelAnimationFrame(_), _ = null), i.value ? (v()?.removeEventListener("scroll", y), o.value && u()) : s(""), o.value = "";
|
|
112
138
|
},
|
|
113
139
|
filterOptionsAndScrollToTop: (e) => {
|
|
114
|
-
C = !0,
|
|
140
|
+
C = !0, s(e);
|
|
115
141
|
}
|
|
116
142
|
};
|
|
117
|
-
},
|
|
118
|
-
let t =
|
|
119
|
-
return
|
|
143
|
+
}, S = (e) => {
|
|
144
|
+
let t = c(!1), n = null;
|
|
145
|
+
return l(e, (e) => {
|
|
120
146
|
e ? (n && clearTimeout(n), t.value = !0) : n = setTimeout(() => {
|
|
121
147
|
t.value = !1;
|
|
122
148
|
}, 500);
|
|
123
149
|
}), { showFooterLoader: t };
|
|
124
|
-
},
|
|
125
|
-
let { t:
|
|
150
|
+
}, C = ({ selected: n, options: r, optionLabel: i, optionValue: a, dataKey: o, allowCustomValues: u, searchMethod: d, strictApiOptions: f }) => {
|
|
151
|
+
let { t: p } = e(), m = c(""), h = c(r.value), b = c(!1), x = c(!0), S = s({
|
|
126
152
|
page: 1,
|
|
127
153
|
search: ""
|
|
128
154
|
}), C = (e) => {
|
|
129
|
-
let t =
|
|
155
|
+
let t = v(e, o.value);
|
|
130
156
|
if (!n.value) return t;
|
|
131
|
-
let r =
|
|
132
|
-
for (let e of t) (
|
|
157
|
+
let r = g(n.value), i = [], a = [];
|
|
158
|
+
for (let e of t) (_(e, r, o.value) ? i : a).push(e);
|
|
133
159
|
return i.concat(a);
|
|
134
160
|
}, w = (e) => {
|
|
135
161
|
if (e == null) return "";
|
|
136
162
|
if (u.value && e.isTag) return e.label;
|
|
137
163
|
let t = a?.value;
|
|
138
164
|
if (t && typeof e != "object") {
|
|
139
|
-
let n = [...
|
|
165
|
+
let n = [...h.value, ...E.value].find((n) => n[t] === e);
|
|
140
166
|
return n ? w(n) : String(e);
|
|
141
167
|
}
|
|
142
|
-
return i.value && e[i.value] ? e[i.value] : e.locale ? Array.isArray(e.locale) ?
|
|
143
|
-
}, T = (e, t) =>
|
|
168
|
+
return i.value && e[i.value] ? e[i.value] : e.locale ? Array.isArray(e.locale) ? p(...e.locale) : p(e.locale) : e.name || e;
|
|
169
|
+
}, T = (e, t) => y(e, t, w), E = c([]), D = () => {
|
|
144
170
|
if (!n.value) {
|
|
145
171
|
E.value = [];
|
|
146
172
|
return;
|
|
147
173
|
}
|
|
148
|
-
let e =
|
|
174
|
+
let e = g(n.value), t = (t) => _(t, e, o.value), r = h.value.filter(t), i = v([...E.value, ...r], o.value);
|
|
149
175
|
E.value = i.filter(t);
|
|
150
176
|
}, O = async () => {
|
|
151
177
|
if (!d.value || !a?.value || !n.value) return;
|
|
152
|
-
let e =
|
|
178
|
+
let e = g(n.value);
|
|
153
179
|
if (!e.length) return;
|
|
154
180
|
b.value = !0;
|
|
155
181
|
let { items: t } = await d.value({
|
|
156
|
-
[
|
|
182
|
+
[o.value]: e,
|
|
157
183
|
size: e.length
|
|
158
184
|
});
|
|
159
|
-
E.value =
|
|
185
|
+
E.value = v([...E.value, ...t], o.value), b.value = !1;
|
|
160
186
|
}, k = async () => {
|
|
161
187
|
if (!d.value) return;
|
|
162
188
|
let { search: e, page: t } = S;
|
|
@@ -164,31 +190,31 @@ var l = () => {
|
|
|
164
190
|
let { items: r, next: i } = await d.value({
|
|
165
191
|
search: e,
|
|
166
192
|
page: t
|
|
167
|
-
}), a = e ? T(E.value, e) : E.value,
|
|
168
|
-
|
|
193
|
+
}), a = e ? T(E.value, e) : E.value, s = S.page === 1 ? v([...a, ...r], o.value) : h.value.concat(r);
|
|
194
|
+
h.value = C(s), N(n.value), x.value = i ?? !1, S.page += 1, b.value = !1;
|
|
169
195
|
}, A = (e = "") => {
|
|
170
196
|
S.search = e, S.page = 1, k();
|
|
171
197
|
}, j = t((e) => A(e)), M = (e) => {
|
|
172
|
-
if (
|
|
198
|
+
if (m.value = e, d.value) j(e);
|
|
173
199
|
else {
|
|
174
200
|
let t = T(E.value, e), n = T(r.value, e);
|
|
175
|
-
|
|
201
|
+
h.value = C(v([...t, ...n], o.value));
|
|
176
202
|
}
|
|
177
203
|
}, N = (e) => {
|
|
178
|
-
if (!e || !d.value ||
|
|
179
|
-
let t =
|
|
204
|
+
if (!e || !d.value || f?.value) return;
|
|
205
|
+
let t = g(e).filter((e) => !_(e, h.value, o.value));
|
|
180
206
|
if (t.length) {
|
|
181
|
-
let e = t.map((e) => E.value.find((t) => t[
|
|
182
|
-
|
|
207
|
+
let e = t.map((e) => E.value.find((t) => t[o.value] === e) ?? e);
|
|
208
|
+
h.value = C(v([...T(e, m.value), ...h.value], o.value));
|
|
183
209
|
}
|
|
184
210
|
};
|
|
185
|
-
return
|
|
211
|
+
return l(() => n.value, (e) => {
|
|
186
212
|
D(), N(e);
|
|
187
|
-
}),
|
|
188
|
-
d.value || (
|
|
213
|
+
}), l(() => r.value, (e) => {
|
|
214
|
+
d.value || (h.value = C(e));
|
|
189
215
|
}), {
|
|
190
|
-
filterText:
|
|
191
|
-
filteredOptions:
|
|
216
|
+
filterText: m,
|
|
217
|
+
filteredOptions: h,
|
|
192
218
|
isLoading: b,
|
|
193
219
|
searchHasNext: x,
|
|
194
220
|
sortOptions: C,
|
|
@@ -199,63 +225,63 @@ var l = () => {
|
|
|
199
225
|
filterOptionsBase: M,
|
|
200
226
|
updateSelectedOptionsCache: D
|
|
201
227
|
};
|
|
202
|
-
},
|
|
203
|
-
let { filterText:
|
|
228
|
+
}, w = ({ selected: e, options: t, optionLabel: n, optionValue: r, dataKey: i, allowCustomValues: o, manualCustomValues: s = !1, filterInput: c, selectRef: l, searchMethod: u, selectId: d, isSingle: f, autoOpen: p, strictApiOptions: m = void 0, emit: g = (e, ...t) => {} }) => {
|
|
229
|
+
let { filterText: _, filteredOptions: v, isLoading: y, searchHasNext: w, sortOptions: T, getOptionLabel: E, fetchOptions: D, fetchSelectedByIds: O, resetAndFetch: k, filterOptionsBase: A, updateSelectedOptionsCache: j } = C({
|
|
204
230
|
selected: e,
|
|
205
231
|
options: t,
|
|
206
232
|
optionLabel: n,
|
|
207
233
|
optionValue: r,
|
|
208
|
-
dataKey:
|
|
234
|
+
dataKey: i,
|
|
209
235
|
allowCustomValues: o,
|
|
210
236
|
searchMethod: u,
|
|
211
|
-
strictApiOptions:
|
|
212
|
-
}), { isDropdownOpen:
|
|
237
|
+
strictApiOptions: m
|
|
238
|
+
}), { isDropdownOpen: M, onDropdownBeforeShow: N, onDropdownBeforeHide: P, onDropdownShow: F, onDropdownHide: I, filterOptionsAndScrollToTop: L } = x({
|
|
213
239
|
selectId: d,
|
|
214
240
|
selectRef: l,
|
|
215
241
|
filterInput: c,
|
|
216
242
|
searchMethod: u,
|
|
217
|
-
filteredOptions:
|
|
218
|
-
filterText:
|
|
219
|
-
filterOptions:
|
|
220
|
-
resetAndFetch:
|
|
221
|
-
sortOptions:
|
|
222
|
-
fetchOptions:
|
|
223
|
-
isLoading:
|
|
224
|
-
searchHasNext:
|
|
225
|
-
}), { showFooterLoader:
|
|
243
|
+
filteredOptions: v,
|
|
244
|
+
filterText: _,
|
|
245
|
+
filterOptions: A,
|
|
246
|
+
resetAndFetch: k,
|
|
247
|
+
sortOptions: T,
|
|
248
|
+
fetchOptions: D,
|
|
249
|
+
isLoading: y,
|
|
250
|
+
searchHasNext: w
|
|
251
|
+
}), { showFooterLoader: R } = S(y), { openWhenSettled: z } = h(p, l), { onInputKeydown: B } = b({
|
|
226
252
|
selected: e,
|
|
227
|
-
filteredOptions:
|
|
253
|
+
filteredOptions: v,
|
|
228
254
|
options: t,
|
|
229
|
-
dataKey:
|
|
230
|
-
filterText:
|
|
231
|
-
filterOptions:
|
|
232
|
-
updateSelectedOptionsCache:
|
|
255
|
+
dataKey: i,
|
|
256
|
+
filterText: _,
|
|
257
|
+
filterOptions: L,
|
|
258
|
+
updateSelectedOptionsCache: j,
|
|
233
259
|
selectRef: l,
|
|
234
260
|
allowCustomValues: o,
|
|
235
261
|
isSingle: f
|
|
236
262
|
});
|
|
237
|
-
return
|
|
238
|
-
await
|
|
263
|
+
return a(async () => {
|
|
264
|
+
await O(), u.value && await D(), z();
|
|
239
265
|
}), {
|
|
240
|
-
isLoading:
|
|
241
|
-
showFooterLoader:
|
|
242
|
-
isDropdownOpen:
|
|
243
|
-
filterText:
|
|
244
|
-
filteredOptions:
|
|
245
|
-
getOptionLabel:
|
|
246
|
-
fetchOptions:
|
|
247
|
-
filterOptions:
|
|
248
|
-
onDropdownBeforeShow:
|
|
249
|
-
onDropdownBeforeHide:
|
|
250
|
-
onDropdownShow:
|
|
251
|
-
onDropdownHide:
|
|
252
|
-
onInputKeydown:
|
|
266
|
+
isLoading: y,
|
|
267
|
+
showFooterLoader: R,
|
|
268
|
+
isDropdownOpen: M,
|
|
269
|
+
filterText: _,
|
|
270
|
+
filteredOptions: v,
|
|
271
|
+
getOptionLabel: E,
|
|
272
|
+
fetchOptions: D,
|
|
273
|
+
filterOptions: L,
|
|
274
|
+
onDropdownBeforeShow: N,
|
|
275
|
+
onDropdownBeforeHide: P,
|
|
276
|
+
onDropdownShow: F,
|
|
277
|
+
onDropdownHide: I,
|
|
278
|
+
onInputKeydown: B,
|
|
253
279
|
clearValue: () => {
|
|
254
280
|
let t = "";
|
|
255
|
-
Array.isArray(e.value) ? t = [] : typeof e.value == "object" && e.value !== null && (t = {}), e.value = t,
|
|
281
|
+
Array.isArray(e.value) ? t = [] : typeof e.value == "object" && e.value !== null && (t = {}), e.value = t, g("reset", t);
|
|
256
282
|
}
|
|
257
283
|
};
|
|
258
|
-
},
|
|
284
|
+
}, T = (e, t) => {
|
|
259
285
|
let n = null, r = null, i = null, a = !1, o = () => {
|
|
260
286
|
if (!r || !a || i === null) return;
|
|
261
287
|
let e = r.getBoundingClientRect(), t = i - e.left, s = e.right - i, c = (e) => e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2, l = 0, u = 0;
|
|
@@ -289,4 +315,4 @@ var l = () => {
|
|
|
289
315
|
};
|
|
290
316
|
};
|
|
291
317
|
//#endregion
|
|
292
|
-
export {
|
|
318
|
+
export { d as a, f as i, w as n, u as o, g as r, T as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as e } from "./enums-
|
|
1
|
+
import { f as e } from "./enums-BDtfwdQu.js";
|
|
2
2
|
//#region node_modules/date-fns/constants.js
|
|
3
3
|
var t = 365.2425, n = 6048e5, r = 864e5, i = 3600 * 24;
|
|
4
4
|
i * 7, i * t / 12 * 3;
|
|
@@ -67,11 +67,11 @@ function _(e) {
|
|
|
67
67
|
}
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region packages/api-services/src/scripts/convertDuration/convertDuration.ts
|
|
70
|
-
var v = (e) => {
|
|
71
|
-
if (!e) return "00:00:00";
|
|
72
|
-
let
|
|
73
|
-
return t
|
|
74
|
-
},
|
|
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
75
|
if (n?.round === "end") switch (t) {
|
|
76
76
|
case e.Today: return g().getTime();
|
|
77
77
|
case e.ThisWeek: return h(Date.now(), { weekStartsOn: 1 }).getTime();
|
|
@@ -84,6 +84,6 @@ var v = (e) => {
|
|
|
84
84
|
case e.ThisMonth: return m(Date.now()).getTime();
|
|
85
85
|
default: return Date.now();
|
|
86
86
|
}
|
|
87
|
-
},
|
|
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 = y;
|
|
88
88
|
//#endregion
|
|
89
|
-
export { d as a, c, n as d,
|
|
89
|
+
export { d as a, c, n as d, y as i, o as l, b as n, u as o, S as r, l as s, C as t, r as u };
|