@webitel/ui-sdk 26.6.73 → 26.6.74

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 (39) hide show
  1. package/dist/{clients-B_u-8Hev.js → clients-CIZxqjbV.js} +1 -1
  2. package/dist/{components-DXso3cNH.js → components-CgVZq5Ay.js} +11 -11
  3. package/dist/{composables-CmpLKArq.js → composables-D5kSQ1Rk.js} +67 -54
  4. package/dist/{enums-CaJ2Kh6z.js → enums-De8CDKZ1.js} +13 -10
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.js +3 -3
  7. package/dist/ui-sdk.umd.cjs +10 -10
  8. package/dist/{useValidation-D966lfIa.js → useValidation-DGl2otXJ.js} +1 -1
  9. package/dist/{wt-action-bar-4kYwf6im.js → wt-action-bar-HBm22ay5.js} +2 -2
  10. package/dist/{wt-button-CT1JWvQo.js → wt-button-dC4nOW56.js} +2 -2
  11. package/dist/{wt-chat-emoji-Bg2CkUHQ.js → wt-chat-emoji-XjM2qHuC.js} +4 -4
  12. package/dist/{wt-datepicker-C-hb329G.js → wt-datepicker-CxwX-c2T.js} +2 -2
  13. package/dist/{wt-display-chip-items-CIpASRgr.js → wt-display-chip-items-CYyy-Z-1.js} +1 -1
  14. package/dist/{wt-dual-panel-BzJePzqE.js → wt-dual-panel-Dhj8Eg_y.js} +1 -1
  15. package/dist/{wt-expansion-card-H6a_Nfe5.js → wt-expansion-card-TBmAxeek.js} +2 -2
  16. package/dist/{wt-expansion-panel-95IUAB3-.js → wt-expansion-panel-Br7JPc5X.js} +1 -1
  17. package/dist/{wt-galleria-BiVy4aMN.js → wt-galleria-BWHny8Qw.js} +1 -1
  18. package/dist/{wt-icon-action-9anRgrpl.js → wt-icon-action-BBmutGsL.js} +1 -1
  19. package/dist/{wt-icon-btn-DaAa_Ywc.js → wt-icon-btn-BIU9YjS8.js} +2 -2
  20. package/dist/{wt-icon-RopCKnvN.js → wt-icon-y89gRcOs.js} +1 -1
  21. package/dist/{wt-notifications-bar-uj3OVFZc.js → wt-notifications-bar-DhJxMjNB.js} +2 -2
  22. package/dist/{wt-player-CvX-MhQf.js → wt-player-_mTlxsCu.js} +3 -3
  23. package/dist/{wt-search-bar-CIkp_KW3.js → wt-search-bar-CYCOxWra.js} +1 -1
  24. package/dist/{wt-send-message-popup-ClWBSwxI.js → wt-send-message-popup-oNckWu_A.js} +2 -2
  25. package/dist/{wt-status-select-BLq_dxqN.js → wt-status-select-D1hAjCAS.js} +1 -1
  26. package/dist/{wt-table-B7rn2iAF.js → wt-table-DJ85SoOt.js} +1 -1
  27. package/dist/{wt-timepicker-CuflSCqz.js → wt-timepicker-BEeUHumZ.js} +2 -2
  28. package/dist/{wt-toast-BLDcVPXR.js → wt-toast-DXrSMdRm.js} +2 -2
  29. package/dist/{wt-tree-table-CLLEP40A.js → wt-tree-table-2K7cdct7.js} +1 -1
  30. package/dist/{wt-type-extension-value-input-X7FXHDUW.js → wt-type-extension-value-input-DEWxbiEr.js} +3 -3
  31. package/dist/{wt-vidstack-player-DZYW8huS.js → wt-vidstack-player-BN5Q1U6B.js} +4 -4
  32. package/package.json +1 -1
  33. package/src/assets/icons/sprite/index.ts +1 -1
  34. package/src/components/_internals/composables/useSelect/useSelect.ts +6 -0
  35. package/src/components/_internals/composables/useSelect/useSelectOptions.ts +20 -0
  36. package/src/components/wt-checkbox/wt-checkbox.vue +2 -0
  37. package/src/enums/index.ts +4 -4
  38. package/types/components/_internals/composables/useSelect/useSelectOptions.d.ts +1 -0
  39. package/types/enums/index.d.ts +3 -3
@@ -2,7 +2,7 @@ import { a as e, t } from "./rolldown-runtime-BEcgMyyN.js";
2
2
  import { n, t as r } from "./dist-CAOIU8xq.js";
3
3
  import { n as i, t as a } from "./generateInstance-C9d7J_TX.js";
4
4
  import { i as o, r as s } from "./caseConverters-DXegZoCt.js";
5
- import "./enums-CaJ2Kh6z.js";
5
+ import "./enums-De8CDKZ1.js";
6
6
  import { f as c, t as l } from "./side-channel-8SnAuRMA.js";
7
7
  import { t as u } from "./deep-copy-CTgLtgMO.js";
8
8
  import { get as d, set as f } from "lodash-es";
@@ -1,18 +1,18 @@
1
1
  import { a as e, i as t, r as n, t as r } from "./rolldown-runtime-BEcgMyyN.js";
2
2
  import { n as i, t as a } from "./dist-CAOIU8xq.js";
3
- import { t as o } from "./wt-icon-RopCKnvN.js";
3
+ import { t as o } from "./wt-icon-y89gRcOs.js";
4
4
  import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
5
- import { a as c, c as l, i as u, l as d, m as f, n as p, r as m, s as h, u as g } from "./enums-CaJ2Kh6z.js";
5
+ import { a as c, c as l, i as u, l as d, m as f, n as p, r as m, s as h, u as g } from "./enums-De8CDKZ1.js";
6
6
  import { i as _, n as v, t as y } from "./toZonedTime-B8L5kbse.js";
7
- import { n as b, t as ee } from "./wt-button-CT1JWvQo.js";
7
+ import { n as b, t as ee } from "./wt-button-dC4nOW56.js";
8
8
  import { t as te } from "./vue-i18n-Db_oYfO8.js";
9
9
  import { a as ne, c as x, i as re, n as ie, o as S, r as ae, s as oe } from "./debounce-Bp3jy7S5.js";
10
- import { t as se } from "./wt-toast-BLDcVPXR.js";
10
+ import { t as se } from "./wt-toast-DXrSMdRm.js";
11
11
  import "./sortQueryAdapters-CyYXvnDN.js";
12
- import { n as C, t as w } from "./wt-icon-btn-DaAa_Ywc.js";
13
- import { t as ce } from "./wt-icon-action-9anRgrpl.js";
14
- import { t as le } from "./useValidation-D966lfIa.js";
15
- import { i as ue, n as de, r as fe } from "./composables-CmpLKArq.js";
12
+ import { n as C, t as w } from "./wt-icon-btn-BIU9YjS8.js";
13
+ import { t as ce } from "./wt-icon-action-BBmutGsL.js";
14
+ import { t as le } from "./useValidation-DGl2otXJ.js";
15
+ import { i as ue, n as de, r as fe } from "./composables-D5kSQ1Rk.js";
16
16
  import { t as pe } from "./wt-expand-transition-C2p9bR4j.js";
17
17
  import { a as me, c as he, i as ge, n as _e, o as ve, r as ye, s as be, t as xe } from "./floating-ui.dom-Ch9ml4Rx.js";
18
18
  import * as Se from "vue";
@@ -6524,9 +6524,9 @@ var zl = {
6524
6524
  ])), [[r, d]]) : D("", !0)], 2);
6525
6525
  };
6526
6526
  }
6527
- }, [["__scopeId", "data-v-72aa56d0"]]), Wl = M(() => import("./wt-action-bar-4kYwf6im.js")), Gl = M(() => import("./wt-button-select-BnRHgJ4i.js")), Kl = M(() => import("./wt-confirm-dialog-DCUitG2v.js")), ql = M(() => import("./wt-context-menu-yW52oF-2.js")), Jl = M(() => import("./wt-copy-action-d9gVzAsB.js")), Yl = M(() => import("./wt-datepicker-C-hb329G.js")), Xl = M(() => import("./wt-dual-panel-BzJePzqE.js")), Zl = M(() => import("./wt-dummy-CLjhRWZ6.js")), Ql = M(() => import("./wt-error-page-vhu4lIyF.js")), $l = M(() => import("./wt-expansion-panel-95IUAB3-.js")), eu = M(() => import("./wt-expansion-card-H6a_Nfe5.js")), tu = M(() => import("./wt-filters-panel-wrapper-Cc9b3aci.js")), nu = M(() => import("./wt-galleria-BiVy4aMN.js")), ru = M(() => import("./wt-notifications-bar-uj3OVFZc.js")), iu = M(() => import("./wt-page-header-CDbd4aOh.js")), au = M(() => import("./wt-pagination-G2ZGU4Pi.js")), ou = M(() => import("./wt-player-CvX-MhQf.js")), su = M(() => import("./wt-popover-ChCN6b1o.js").then((e) => e.n)), cu = M(() => import("./wt-search-bar-CIkp_KW3.js")), lu = M(() => import("./wt-slider-BPzRTeYU.js").then((e) => e.n)), uu = M(() => import("./wt-status-select-BLq_dxqN.js")), du = M(() => import("./wt-stepper-B6zpd1Uh.js")), fu = M(() => import("./wt-table-B7rn2iAF.js")), pu = M(() => import("./wt-table-actions-4-peSVkc.js")), mu = M(() => import("./wt-table-column-select-CgEh5BAF.js")), hu = M(() => import("./wt-tabs-DuOgj-lZ.js")), gu = M(() => import("./wt-time-input-CO2cop3y.js")), _u = M(() => import("./wt-timepicker-CuflSCqz.js")), vu = M(() => import("./wt-tree-DZ9ErOGj.js")), yu = M(() => import("./wt-tree-table-CLLEP40A.js")), bu = M(() => import("./wt-vidstack-player-DZYW8huS.js")), xu = M(() => import("./wt-call-media-action-Bn2bGCWs.js")), Su = M(() => import("./wt-chat-emoji-Bg2CkUHQ.js")), Cu = M(() => import("./wt-display-chip-items-CIpASRgr.js")), wu = M(() => import("./wt-navigation-menu-CenQi_-T.js")), Tu = M(() => import("./wt-selection-popup-CjYw4ppb.js")), Eu = M(() => import("./wt-start-page-DMXRhA9E.js"));
6528
- M(() => import("./wt-type-extension-value-input-X7FXHDUW.js"));
6529
- var Du = M(() => import("./wt-screen-recordings-action-Dzzo0eqW.js")), Ou = M(() => import("./wt-send-message-popup-ClWBSwxI.js")), ku = {
6527
+ }, [["__scopeId", "data-v-72aa56d0"]]), Wl = M(() => import("./wt-action-bar-HBm22ay5.js")), Gl = M(() => import("./wt-button-select-BnRHgJ4i.js")), Kl = M(() => import("./wt-confirm-dialog-DCUitG2v.js")), ql = M(() => import("./wt-context-menu-yW52oF-2.js")), Jl = M(() => import("./wt-copy-action-d9gVzAsB.js")), Yl = M(() => import("./wt-datepicker-CxwX-c2T.js")), Xl = M(() => import("./wt-dual-panel-Dhj8Eg_y.js")), Zl = M(() => import("./wt-dummy-CLjhRWZ6.js")), Ql = M(() => import("./wt-error-page-vhu4lIyF.js")), $l = M(() => import("./wt-expansion-panel-Br7JPc5X.js")), eu = M(() => import("./wt-expansion-card-TBmAxeek.js")), tu = M(() => import("./wt-filters-panel-wrapper-Cc9b3aci.js")), nu = M(() => import("./wt-galleria-BWHny8Qw.js")), ru = M(() => import("./wt-notifications-bar-DhJxMjNB.js")), iu = M(() => import("./wt-page-header-CDbd4aOh.js")), au = M(() => import("./wt-pagination-G2ZGU4Pi.js")), ou = M(() => import("./wt-player-_mTlxsCu.js")), su = M(() => import("./wt-popover-ChCN6b1o.js").then((e) => e.n)), cu = M(() => import("./wt-search-bar-CYCOxWra.js")), lu = M(() => import("./wt-slider-BPzRTeYU.js").then((e) => e.n)), uu = M(() => import("./wt-status-select-D1hAjCAS.js")), du = M(() => import("./wt-stepper-B6zpd1Uh.js")), fu = M(() => import("./wt-table-DJ85SoOt.js")), pu = M(() => import("./wt-table-actions-4-peSVkc.js")), mu = M(() => import("./wt-table-column-select-CgEh5BAF.js")), hu = M(() => import("./wt-tabs-DuOgj-lZ.js")), gu = M(() => import("./wt-time-input-CO2cop3y.js")), _u = M(() => import("./wt-timepicker-BEeUHumZ.js")), vu = M(() => import("./wt-tree-DZ9ErOGj.js")), yu = M(() => import("./wt-tree-table-2K7cdct7.js")), bu = M(() => import("./wt-vidstack-player-BN5Q1U6B.js")), xu = M(() => import("./wt-call-media-action-Bn2bGCWs.js")), Su = M(() => import("./wt-chat-emoji-XjM2qHuC.js")), Cu = M(() => import("./wt-display-chip-items-CYyy-Z-1.js")), wu = M(() => import("./wt-navigation-menu-CenQi_-T.js")), Tu = M(() => import("./wt-selection-popup-CjYw4ppb.js")), Eu = M(() => import("./wt-start-page-DMXRhA9E.js"));
6528
+ M(() => import("./wt-type-extension-value-input-DEWxbiEr.js"));
6529
+ var Du = M(() => import("./wt-screen-recordings-action-Dzzo0eqW.js")), Ou = M(() => import("./wt-send-message-popup-oNckWu_A.js")), ku = {
6530
6530
  WtActionBar: Wl,
6531
6531
  WtImage: fo,
6532
6532
  WtEmpty: _o,
@@ -139,6 +139,16 @@ var l = () => {
139
139
  let e = f(n.value), t = (t) => p(t, e, l.value), r = v.value.filter(t), i = m([...T.value, ...r], l.value);
140
140
  T.value = i.filter(t);
141
141
  }, D = async () => {
142
+ if (!d.value || !a?.value || !n.value) return;
143
+ let e = f(n.value);
144
+ if (!e.length) return;
145
+ y.value = !0;
146
+ let { items: t } = await d.value({
147
+ [l.value]: e,
148
+ size: e.length
149
+ });
150
+ T.value = m([...T.value, ...t], l.value), y.value = !1;
151
+ }, O = async () => {
142
152
  if (!d.value) return;
143
153
  let { search: e, page: t } = x;
144
154
  y.value = !0;
@@ -146,22 +156,22 @@ var l = () => {
146
156
  search: e,
147
157
  page: t
148
158
  }), a = e ? w(T.value, e) : T.value, o = x.page === 1 ? m([...a, ...r], l.value) : v.value.concat(r);
149
- v.value = S(o), j(n.value), b.value = i, x.page += 1, y.value = !1;
150
- }, O = (e = "") => {
151
- x.search = e, x.page = 1, D();
152
- }, k = t((e) => O(e)), A = (e) => {
153
- if (_.value = e, d.value) k(e);
159
+ v.value = S(o), M(n.value), b.value = i, x.page += 1, y.value = !1;
160
+ }, k = (e = "") => {
161
+ x.search = e, x.page = 1, O();
162
+ }, A = t((e) => k(e)), j = (e) => {
163
+ if (_.value = e, d.value) A(e);
154
164
  else {
155
165
  let t = w(T.value, e), n = w(r.value, e);
156
166
  v.value = S(m([...t, ...n], l.value));
157
167
  }
158
- }, j = (e) => {
168
+ }, M = (e) => {
159
169
  if (!e || !d.value) return;
160
170
  let t = f(e).filter((e) => !p(e, v.value, l.value));
161
171
  t.length && (v.value = S(m([...w(t, _.value), ...v.value], l.value)));
162
172
  };
163
173
  return c(() => n.value, (e) => {
164
- E(), j(e);
174
+ E(), M(e);
165
175
  }), c(() => r.value, (e) => {
166
176
  d.value || (v.value = S(e));
167
177
  }), {
@@ -171,65 +181,68 @@ var l = () => {
171
181
  searchHasNext: b,
172
182
  sortOptions: S,
173
183
  getOptionLabel: C,
174
- fetchOptions: D,
175
- resetAndFetch: O,
176
- filterOptions: A,
184
+ fetchOptions: O,
185
+ fetchSelectedByIds: D,
186
+ resetAndFetch: k,
187
+ filterOptions: j,
177
188
  updateSelectedOptionsCache: E
178
189
  };
179
- }, b = ({ selected: e, options: t, optionLabel: n, optionValue: r, dataKey: i, allowCustomValues: a, manualCustomValues: o = !1, filterInput: s, selectRef: c, searchMethod: l, selectId: u, isSingle: d, emit: f = () => {} }) => {
180
- let { filterText: p, filteredOptions: m, isLoading: h, searchHasNext: b, sortOptions: x, getOptionLabel: S, fetchOptions: C, resetAndFetch: w, filterOptions: T, updateSelectedOptionsCache: E } = y({
190
+ }, 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, emit: p = () => {} }) => {
191
+ let { filterText: m, filteredOptions: h, isLoading: b, searchHasNext: x, sortOptions: S, getOptionLabel: C, fetchOptions: w, fetchSelectedByIds: T, resetAndFetch: E, filterOptions: D, updateSelectedOptionsCache: O } = y({
181
192
  selected: e,
182
193
  options: t,
183
194
  optionLabel: n,
184
195
  optionValue: r,
185
- dataKey: i,
186
- allowCustomValues: a,
187
- searchMethod: l
188
- }), { isDropdownOpen: D, onDropdownBeforeShow: O, onDropdownBeforeHide: k, onDropdownShow: A, onDropdownHide: j } = _({
189
- selectId: u,
190
- selectRef: c,
191
- filterInput: s,
192
- searchMethod: l,
193
- filteredOptions: m,
194
- filterText: p,
195
- filterOptions: T,
196
- resetAndFetch: w,
197
- sortOptions: x,
198
- fetchOptions: C,
199
- isLoading: h,
200
- searchHasNext: b
201
- }), { showFooterLoader: M } = v(h), { onInputKeydown: N } = g({
196
+ dataKey: a,
197
+ allowCustomValues: o,
198
+ searchMethod: u
199
+ }), { isDropdownOpen: k, onDropdownBeforeShow: A, onDropdownBeforeHide: j, onDropdownShow: M, onDropdownHide: N } = _({
200
+ selectId: d,
201
+ selectRef: l,
202
+ filterInput: c,
203
+ searchMethod: u,
204
+ filteredOptions: h,
205
+ filterText: m,
206
+ filterOptions: D,
207
+ resetAndFetch: E,
208
+ sortOptions: S,
209
+ fetchOptions: w,
210
+ isLoading: b,
211
+ searchHasNext: x
212
+ }), { showFooterLoader: P } = v(b), { onInputKeydown: F } = g({
202
213
  selected: e,
203
- filteredOptions: m,
214
+ filteredOptions: h,
204
215
  options: t,
205
216
  optionValue: r,
206
- dataKey: i,
207
- filterText: p,
208
- filterOptions: T,
209
- updateSelectedOptionsCache: E,
210
- selectRef: c,
211
- allowCustomValues: a,
212
- manualCustomValues: o,
213
- isSingle: d,
214
- emit: f
217
+ dataKey: a,
218
+ filterText: m,
219
+ filterOptions: D,
220
+ updateSelectedOptionsCache: O,
221
+ selectRef: l,
222
+ allowCustomValues: o,
223
+ manualCustomValues: s,
224
+ isSingle: f,
225
+ emit: p
215
226
  });
216
- return {
217
- isLoading: h,
218
- showFooterLoader: M,
219
- isDropdownOpen: D,
220
- filterText: p,
221
- filteredOptions: m,
222
- getOptionLabel: S,
223
- fetchOptions: C,
224
- filterOptions: T,
225
- onDropdownBeforeShow: O,
226
- onDropdownBeforeHide: k,
227
- onDropdownShow: A,
228
- onDropdownHide: j,
229
- onInputKeydown: N,
227
+ return i(() => {
228
+ T();
229
+ }), {
230
+ isLoading: b,
231
+ showFooterLoader: P,
232
+ isDropdownOpen: k,
233
+ filterText: m,
234
+ filteredOptions: h,
235
+ getOptionLabel: C,
236
+ fetchOptions: w,
237
+ filterOptions: D,
238
+ onDropdownBeforeShow: A,
239
+ onDropdownBeforeHide: j,
240
+ onDropdownShow: M,
241
+ onDropdownHide: N,
242
+ onInputKeydown: F,
230
243
  clearValue: () => {
231
244
  let t = "";
232
- Array.isArray(e.value) ? t = [] : typeof e.value == "object" && e.value !== null && (t = {}), e.value = t, f("reset", t);
245
+ Array.isArray(e.value) ? t = [] : typeof e.value == "object" && e.value !== null && (t = {}), e.value = t, p("reset", t);
233
246
  }
234
247
  };
235
248
  }, x = (e, t) => {
@@ -140,13 +140,22 @@ var u = {
140
140
  OUTLINED: "outlined",
141
141
  SIMPLE: "simple"
142
142
  }, h = "rdt";
143
- `${h}`, `${h}`, `${h}`, `${h}`, Object.freeze({
143
+ `${h}`, `${h}`, `${h}`, `${h}`;
144
+ //#endregion
145
+ //#region src/enums/SingleSignOnProvider/SingleSignOnProvider.ts
146
+ var g = {
147
+ Microsoft: "microsoft",
148
+ Google: "google",
149
+ Facebook: "facebook",
150
+ Custom: "custom"
151
+ };
152
+ g.Microsoft, g.Google, g.Facebook, g.Custom, Object.freeze({
144
153
  CSV: "csv",
145
154
  XLSX: "xlsx"
146
155
  });
147
156
  //#endregion
148
157
  //#region src/enums/WebitelApplications/WtApplication.ts
149
- var g = {
158
+ var _ = {
150
159
  Admin: "admin",
151
160
  Agent: "agent",
152
161
  Supervisor: "supervisor",
@@ -156,19 +165,13 @@ var g = {
156
165
  Crm: "crm",
157
166
  Wfm: "wfm",
158
167
  Meet: "meet"
159
- }, _ = {
168
+ }, v = {
160
169
  Text: "string",
161
170
  Number: "int32",
162
171
  Select: "lookup",
163
172
  Multiselect: "list",
164
173
  Calendar: "datetime",
165
174
  Boolean: "bool"
166
- }, v = {
167
- Microsoft: "microsoft",
168
- Google: "google",
169
- Facebook: "facebook",
170
- Custom: "custom"
171
175
  };
172
- v.Microsoft, v.Google, v.Facebook, v.Custom;
173
176
  //#endregion
174
- export { f as a, l as c, r as d, n as f, p as i, c as l, e as m, g as n, d as o, t as p, m as r, u as s, _ as t, s as u };
177
+ export { f as a, l as c, r as d, n as f, p as i, c as l, e as m, _ as n, d as o, t as p, m as r, u as s, v as t, s as u };