@webitel/ui-sdk 26.6.90 → 26.6.92
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-IxWZVjVW.js → clients-Bj07uFky.js} +38 -263
- package/dist/{components-BqXO2X92.js → components-HoXxNgtV.js} +483 -481
- package/dist/{composables-CuxX3Ib0.js → composables-vmCh4eqT.js} +18 -20
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +135 -168
- package/dist/{useValidation-DGl2otXJ.js → useValidation-BedhHNX5.js} +1 -1
- package/dist/{wt-chat-emoji-DMGWnSDG.js → wt-chat-emoji-Bxx-vud5.js} +1 -1
- package/dist/{wt-datepicker-slYQKBRT.js → wt-datepicker-D2GjAUWU.js} +1 -1
- package/dist/{wt-display-chip-items-CL9lPf4i.js → wt-display-chip-items-Dh4I_R3N.js} +1 -1
- package/dist/{wt-expansion-card-afRJCmRw.js → wt-expansion-card-DvLD-TP4.js} +1 -1
- package/dist/{wt-galleria-DGkRyAjw.js → wt-galleria-DT0SOjXk.js} +1 -1
- package/dist/{wt-search-bar-CYCOxWra.js → wt-search-bar-CUxiGcoz.js} +1 -1
- package/dist/{wt-send-message-popup-BV_3DOj4.js → wt-send-message-popup-CfXNIN5B.js} +2 -2
- package/dist/{wt-table-CC01Dw6T.js → wt-table-DS_2J5zF.js} +1 -1
- package/dist/{wt-timepicker-BEeUHumZ.js → wt-timepicker-Bxdc4s3_.js} +1 -1
- package/dist/{wt-type-extension-value-input-Cb_PUwOS.js → wt-type-extension-value-input-CkBLTUKL.js} +2 -2
- package/dist/{wt-vidstack-player-DlSB9Hkq.js → wt-vidstack-player-BJhIWHcT.js} +1 -1
- package/package.json +1 -1
- package/src/components/_internals/composables/useSelect/useSelect.ts +2 -4
- package/src/components/_internals/composables/useSelect/useSelectOptions.ts +2 -18
- package/src/components/wt-datepicker/_internals/composables/useRestoreOnBlur.ts +1 -1
- package/src/components/wt-multi-select/wt-multi-select.vue +8 -5
- package/src/components/wt-single-select/wt-single-select.vue +8 -5
- 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/mixins/validationMixin/vuelidate/useVuelidateValidation.ts +2 -0
- package/types/components/_internals/composables/useSelect/useSelect.d.ts +2 -3
- package/types/components/_internals/composables/useSelect/useSelectOptions.d.ts +2 -3
- package/types/components/wt-multi-select/wt-multi-select.vue.d.ts +6 -2
- package/types/components/wt-single-select/wt-single-select.vue.d.ts +6 -2
- package/types/locale/en/en.d.ts +1 -0
- package/types/locale/es/es.d.ts +1 -0
- package/types/locale/i18n.d.ts +9 -0
- package/types/locale/index.d.ts +9 -0
- package/types/locale/kz/kz.d.ts +1 -0
- package/types/locale/pl/pl.d.ts +1 -0
- package/types/locale/ro/ro.d.ts +1 -0
- package/types/locale/ru/ru.d.ts +1 -0
- package/types/locale/uk/uk.d.ts +1 -0
- package/types/locale/uz/uz.d.ts +1 -0
- package/types/locale/vi/vi.d.ts +1 -0
|
@@ -118,7 +118,7 @@ var l = () => {
|
|
|
118
118
|
t.value = !1;
|
|
119
119
|
}, 500);
|
|
120
120
|
}), { showFooterLoader: t };
|
|
121
|
-
}, y = ({ selected: n, options: r, optionLabel: i, optionValue: a, dataKey: l, allowCustomValues: u, searchMethod: d,
|
|
121
|
+
}, y = ({ selected: n, options: r, optionLabel: i, optionValue: a, dataKey: l, allowCustomValues: u, searchMethod: d, strictApiOptions: g }) => {
|
|
122
122
|
let { t: _ } = e(), v = s(""), y = s(r.value), b = s(!1), x = s(!0), S = o({
|
|
123
123
|
page: 1,
|
|
124
124
|
search: ""
|
|
@@ -171,7 +171,7 @@ var l = () => {
|
|
|
171
171
|
y.value = C(m([...t, ...n], l.value));
|
|
172
172
|
}
|
|
173
173
|
}, N = (e) => {
|
|
174
|
-
if (!e || !d.value) return;
|
|
174
|
+
if (!e || !d.value || g?.value) return;
|
|
175
175
|
let t = f(e).filter((e) => !p(e, y.value, l.value));
|
|
176
176
|
if (t.length) {
|
|
177
177
|
let e = t.map((e) => E.value.find((t) => t[l.value] === e) ?? e);
|
|
@@ -193,11 +193,10 @@ var l = () => {
|
|
|
193
193
|
fetchSelectedByIds: O,
|
|
194
194
|
resetAndFetch: A,
|
|
195
195
|
filterOptionsBase: M,
|
|
196
|
-
updateSelectedOptionsCache: D
|
|
197
|
-
isOptionDisabled: (e) => g?.value ? Array.isArray(g.value) ? g.value.some((t) => typeof t == "object" && !!t && typeof e == "object" && !!e && t[l.value] === e[l.value]) : !!g.value : !1
|
|
196
|
+
updateSelectedOptionsCache: D
|
|
198
197
|
};
|
|
199
|
-
}, b = ({ selected: e, options: t, optionLabel: n, optionValue: r, dataKey: a, allowCustomValues: o, manualCustomValues: s = !1, filterInput: c, selectRef: l, searchMethod: u, selectId: d, isSingle: f,
|
|
200
|
-
let { filterText: h, filteredOptions: b, isLoading: x, searchHasNext: S, sortOptions: C, getOptionLabel: w, fetchOptions: T, fetchSelectedByIds: E, resetAndFetch: D, filterOptionsBase: O, updateSelectedOptionsCache: k
|
|
198
|
+
}, b = ({ selected: e, options: t, optionLabel: n, optionValue: r, dataKey: a, allowCustomValues: o, manualCustomValues: s = !1, filterInput: c, selectRef: l, searchMethod: u, selectId: d, isSingle: f, strictApiOptions: p = void 0, emit: m = () => {} }) => {
|
|
199
|
+
let { filterText: h, filteredOptions: b, isLoading: x, searchHasNext: S, sortOptions: C, getOptionLabel: w, fetchOptions: T, fetchSelectedByIds: E, resetAndFetch: D, filterOptionsBase: O, updateSelectedOptionsCache: k } = y({
|
|
201
200
|
selected: e,
|
|
202
201
|
options: t,
|
|
203
202
|
optionLabel: n,
|
|
@@ -205,8 +204,8 @@ var l = () => {
|
|
|
205
204
|
dataKey: a,
|
|
206
205
|
allowCustomValues: o,
|
|
207
206
|
searchMethod: u,
|
|
208
|
-
|
|
209
|
-
}), { isDropdownOpen:
|
|
207
|
+
strictApiOptions: p
|
|
208
|
+
}), { isDropdownOpen: A, onDropdownBeforeShow: j, onDropdownBeforeHide: M, onDropdownShow: N, onDropdownHide: P, filterOptionsAndScrollToTop: F } = _({
|
|
210
209
|
selectId: d,
|
|
211
210
|
selectRef: l,
|
|
212
211
|
filterInput: c,
|
|
@@ -219,14 +218,14 @@ var l = () => {
|
|
|
219
218
|
fetchOptions: T,
|
|
220
219
|
isLoading: x,
|
|
221
220
|
searchHasNext: S
|
|
222
|
-
}), { showFooterLoader:
|
|
221
|
+
}), { showFooterLoader: I } = v(x), { onInputKeydown: L } = g({
|
|
223
222
|
selected: e,
|
|
224
223
|
filteredOptions: b,
|
|
225
224
|
options: t,
|
|
226
225
|
optionValue: r,
|
|
227
226
|
dataKey: a,
|
|
228
227
|
filterText: h,
|
|
229
|
-
filterOptions:
|
|
228
|
+
filterOptions: F,
|
|
230
229
|
updateSelectedOptionsCache: k,
|
|
231
230
|
selectRef: l,
|
|
232
231
|
allowCustomValues: o,
|
|
@@ -238,23 +237,22 @@ var l = () => {
|
|
|
238
237
|
await E(), u.value && T();
|
|
239
238
|
}), {
|
|
240
239
|
isLoading: x,
|
|
241
|
-
showFooterLoader:
|
|
242
|
-
isDropdownOpen:
|
|
240
|
+
showFooterLoader: I,
|
|
241
|
+
isDropdownOpen: A,
|
|
243
242
|
filterText: h,
|
|
244
243
|
filteredOptions: b,
|
|
245
244
|
getOptionLabel: w,
|
|
246
245
|
fetchOptions: T,
|
|
247
|
-
filterOptions:
|
|
248
|
-
onDropdownBeforeShow:
|
|
249
|
-
onDropdownBeforeHide:
|
|
250
|
-
onDropdownShow:
|
|
251
|
-
onDropdownHide:
|
|
252
|
-
onInputKeydown:
|
|
246
|
+
filterOptions: F,
|
|
247
|
+
onDropdownBeforeShow: j,
|
|
248
|
+
onDropdownBeforeHide: M,
|
|
249
|
+
onDropdownShow: N,
|
|
250
|
+
onDropdownHide: P,
|
|
251
|
+
onInputKeydown: L,
|
|
253
252
|
clearValue: () => {
|
|
254
253
|
let t = "";
|
|
255
254
|
Array.isArray(e.value) ? t = [] : typeof e.value == "object" && e.value !== null && (t = {}), e.value = t, m("reset", t);
|
|
256
|
-
}
|
|
257
|
-
isOptionDisabled: A
|
|
255
|
+
}
|
|
258
256
|
};
|
|
259
257
|
}, x = (e, t) => {
|
|
260
258
|
let n = null, r = null, i = null, a = !1, o = () => {
|