@webitel/ui-sdk 26.6.89 → 26.6.91

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 (24) hide show
  1. package/dist/{components-COWAuGBm.js → components-DxLcN-EN.js} +683 -679
  2. package/dist/{composables-CuxX3Ib0.js → composables-vmCh4eqT.js} +18 -20
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.js +1 -1
  5. package/dist/ui-sdk.umd.cjs +274 -274
  6. package/dist/{wt-chat-emoji-DiA3YxyK.js → wt-chat-emoji-D8WBh59k.js} +1 -1
  7. package/dist/{wt-display-chip-items-BN8K7NHE.js → wt-display-chip-items-DR-fMv8R.js} +1 -1
  8. package/dist/{wt-expansion-card-afRJCmRw.js → wt-expansion-card-DvLD-TP4.js} +1 -1
  9. package/dist/{wt-galleria-DGkRyAjw.js → wt-galleria-DT0SOjXk.js} +1 -1
  10. package/dist/{wt-send-message-popup-DcFoPulz.js → wt-send-message-popup-BCuqX1qv.js} +1 -1
  11. package/dist/{wt-table-CC01Dw6T.js → wt-table-DS_2J5zF.js} +1 -1
  12. package/dist/{wt-type-extension-value-input-BICQ_NeQ.js → wt-type-extension-value-input-Bprdgg6Y.js} +1 -1
  13. package/dist/{wt-vidstack-player-Dl1GJcn_.js → wt-vidstack-player-DGPPCRtG.js} +1 -1
  14. package/package.json +1 -1
  15. package/src/components/_internals/composables/useSelect/useSelect.ts +2 -4
  16. package/src/components/_internals/composables/useSelect/useSelectOptions.ts +2 -18
  17. package/src/components/wt-datepicker/_internals/composables/useRestoreOnBlur.ts +1 -1
  18. package/src/components/wt-multi-select/wt-multi-select.vue +8 -5
  19. package/src/components/wt-popup/wt-popup.vue +14 -0
  20. package/src/components/wt-single-select/wt-single-select.vue +8 -5
  21. package/types/components/_internals/composables/useSelect/useSelect.d.ts +2 -3
  22. package/types/components/_internals/composables/useSelect/useSelectOptions.d.ts +2 -3
  23. package/types/components/wt-multi-select/wt-multi-select.vue.d.ts +6 -2
  24. package/types/components/wt-single-select/wt-single-select.vue.d.ts +6 -2
@@ -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, disabledOptions: g }) => {
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, disabledOptions: p = void 0, emit: m = () => {} }) => {
200
- let { filterText: h, filteredOptions: b, isLoading: x, searchHasNext: S, sortOptions: C, getOptionLabel: w, fetchOptions: T, fetchSelectedByIds: E, resetAndFetch: D, filterOptionsBase: O, updateSelectedOptionsCache: k, isOptionDisabled: A } = y({
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
- disabledOptions: p
209
- }), { isDropdownOpen: j, onDropdownBeforeShow: M, onDropdownBeforeHide: N, onDropdownShow: P, onDropdownHide: F, filterOptionsAndScrollToTop: I } = _({
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: L } = v(x), { onInputKeydown: R } = g({
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: I,
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: L,
242
- isDropdownOpen: j,
240
+ showFooterLoader: I,
241
+ isDropdownOpen: A,
243
242
  filterText: h,
244
243
  filteredOptions: b,
245
244
  getOptionLabel: w,
246
245
  fetchOptions: T,
247
- filterOptions: I,
248
- onDropdownBeforeShow: M,
249
- onDropdownBeforeHide: N,
250
- onDropdownShow: P,
251
- onDropdownHide: F,
252
- onInputKeydown: R,
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 = () => {