@webitel/ui-sdk 26.6.73 → 26.6.75
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-B_u-8Hev.js → clients-CIZxqjbV.js} +1 -1
- package/dist/{components-DXso3cNH.js → components-7XDaN2WO.js} +13 -12
- package/dist/{composables-CmpLKArq.js → composables-D5kSQ1Rk.js} +67 -54
- package/dist/{enums-CaJ2Kh6z.js → enums-De8CDKZ1.js} +13 -10
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +3 -3
- package/dist/ui-sdk.umd.cjs +10 -10
- package/dist/{useValidation-D966lfIa.js → useValidation-DGl2otXJ.js} +1 -1
- package/dist/{wt-action-bar-4kYwf6im.js → wt-action-bar-HBm22ay5.js} +2 -2
- package/dist/{wt-button-CT1JWvQo.js → wt-button-dC4nOW56.js} +2 -2
- package/dist/{wt-chat-emoji-Bg2CkUHQ.js → wt-chat-emoji-DlaYat6D.js} +4 -4
- package/dist/{wt-datepicker-C-hb329G.js → wt-datepicker-CxwX-c2T.js} +2 -2
- package/dist/{wt-display-chip-items-CIpASRgr.js → wt-display-chip-items-CSvkEtjH.js} +1 -1
- package/dist/{wt-dual-panel-BzJePzqE.js → wt-dual-panel-Dhj8Eg_y.js} +1 -1
- package/dist/{wt-expansion-card-H6a_Nfe5.js → wt-expansion-card-TBmAxeek.js} +2 -2
- package/dist/{wt-expansion-panel-95IUAB3-.js → wt-expansion-panel-Br7JPc5X.js} +1 -1
- package/dist/{wt-galleria-BiVy4aMN.js → wt-galleria-BWHny8Qw.js} +1 -1
- package/dist/{wt-icon-action-9anRgrpl.js → wt-icon-action-BBmutGsL.js} +1 -1
- package/dist/{wt-icon-btn-DaAa_Ywc.js → wt-icon-btn-BIU9YjS8.js} +2 -2
- package/dist/{wt-icon-RopCKnvN.js → wt-icon-y89gRcOs.js} +1 -1
- package/dist/{wt-notifications-bar-uj3OVFZc.js → wt-notifications-bar-DhJxMjNB.js} +2 -2
- package/dist/{wt-player-CvX-MhQf.js → wt-player-_mTlxsCu.js} +3 -3
- package/dist/{wt-search-bar-CIkp_KW3.js → wt-search-bar-CYCOxWra.js} +1 -1
- package/dist/{wt-send-message-popup-ClWBSwxI.js → wt-send-message-popup-CJcbjDEg.js} +2 -2
- package/dist/{wt-status-select-BLq_dxqN.js → wt-status-select-D1hAjCAS.js} +1 -1
- package/dist/{wt-table-B7rn2iAF.js → wt-table-DJ85SoOt.js} +1 -1
- package/dist/{wt-timepicker-CuflSCqz.js → wt-timepicker-BEeUHumZ.js} +2 -2
- package/dist/{wt-toast-BLDcVPXR.js → wt-toast-DXrSMdRm.js} +2 -2
- package/dist/{wt-tree-table-CLLEP40A.js → wt-tree-table-2K7cdct7.js} +1 -1
- package/dist/{wt-type-extension-value-input-X7FXHDUW.js → wt-type-extension-value-input-BN5MiVaW.js} +3 -3
- package/dist/{wt-vidstack-player-DZYW8huS.js → wt-vidstack-player-DsUBlHc-.js} +4 -4
- package/package.json +1 -1
- package/src/assets/icons/sprite/index.ts +1 -1
- package/src/components/_internals/composables/useSelect/useSelect.ts +6 -0
- package/src/components/_internals/composables/useSelect/useSelectOptions.ts +20 -0
- package/src/components/wt-checkbox/wt-checkbox.vue +2 -0
- package/src/components/wt-rounded-action/wt-rounded-action.vue +1 -0
- package/src/enums/index.ts +4 -4
- package/types/components/_internals/composables/useSelect/useSelectOptions.d.ts +1 -0
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
13
|
-
import { t as ce } from "./wt-icon-action-
|
|
14
|
-
import { t as le } from "./useValidation-
|
|
15
|
-
import { i as ue, n as de, r as fe } from "./composables-
|
|
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";
|
|
@@ -5835,6 +5835,7 @@ var _l = /*#__PURE__*/ s(hl, [["render", gl], ["__scopeId", "data-v-511819c2"]])
|
|
|
5835
5835
|
{ "wt-rounded-action--disabled": e.disabled },
|
|
5836
5836
|
{ "wt-rounded-action--rounded": e.rounded },
|
|
5837
5837
|
{ "wt-rounded-action--wide": e.wide },
|
|
5838
|
+
{ "wt-rounded-action--loading": i.value },
|
|
5838
5839
|
{ "wt-button--loading": i.value }
|
|
5839
5840
|
], "wt-rounded-action"]),
|
|
5840
5841
|
type: "button",
|
|
@@ -5857,7 +5858,7 @@ var _l = /*#__PURE__*/ s(hl, [["render", gl], ["__scopeId", "data-v-511819c2"]])
|
|
|
5857
5858
|
]))], 2)), [[l, e.tooltip]]);
|
|
5858
5859
|
};
|
|
5859
5860
|
}
|
|
5860
|
-
}, [["__scopeId", "data-v-
|
|
5861
|
+
}, [["__scopeId", "data-v-28c70850"]]), Sl = { class: "wt-single-select__option-label" }, Cl = { class: "wt-single-select__footer" }, wl = /*#__PURE__*/ s(/* @__PURE__ */ N({
|
|
5861
5862
|
__name: "wt-single-select",
|
|
5862
5863
|
props: /*@__PURE__*/ F({
|
|
5863
5864
|
label: {},
|
|
@@ -6524,9 +6525,9 @@ var zl = {
|
|
|
6524
6525
|
])), [[r, d]]) : D("", !0)], 2);
|
|
6525
6526
|
};
|
|
6526
6527
|
}
|
|
6527
|
-
}, [["__scopeId", "data-v-72aa56d0"]]), Wl = M(() => import("./wt-action-bar-
|
|
6528
|
-
M(() => import("./wt-type-extension-value-input-
|
|
6529
|
-
var Du = M(() => import("./wt-screen-recordings-action-Dzzo0eqW.js")), Ou = M(() => import("./wt-send-message-popup-
|
|
6528
|
+
}, [["__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-DsUBlHc-.js")), xu = M(() => import("./wt-call-media-action-Bn2bGCWs.js")), Su = M(() => import("./wt-chat-emoji-DlaYat6D.js")), Cu = M(() => import("./wt-display-chip-items-CSvkEtjH.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"));
|
|
6529
|
+
M(() => import("./wt-type-extension-value-input-BN5MiVaW.js"));
|
|
6530
|
+
var Du = M(() => import("./wt-screen-recordings-action-Dzzo0eqW.js")), Ou = M(() => import("./wt-send-message-popup-CJcbjDEg.js")), ku = {
|
|
6530
6531
|
WtActionBar: Wl,
|
|
6531
6532
|
WtImage: fo,
|
|
6532
6533
|
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),
|
|
150
|
-
},
|
|
151
|
-
x.search = e, x.page = 1,
|
|
152
|
-
},
|
|
153
|
-
if (_.value = e, d.value)
|
|
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
|
-
},
|
|
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(),
|
|
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:
|
|
175
|
-
|
|
176
|
-
|
|
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:
|
|
180
|
-
let { filterText:
|
|
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:
|
|
186
|
-
allowCustomValues:
|
|
187
|
-
searchMethod:
|
|
188
|
-
}), { isDropdownOpen:
|
|
189
|
-
selectId:
|
|
190
|
-
selectRef:
|
|
191
|
-
filterInput:
|
|
192
|
-
searchMethod:
|
|
193
|
-
filteredOptions:
|
|
194
|
-
filterText:
|
|
195
|
-
filterOptions:
|
|
196
|
-
resetAndFetch:
|
|
197
|
-
sortOptions:
|
|
198
|
-
fetchOptions:
|
|
199
|
-
isLoading:
|
|
200
|
-
searchHasNext:
|
|
201
|
-
}), { showFooterLoader:
|
|
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:
|
|
214
|
+
filteredOptions: h,
|
|
204
215
|
options: t,
|
|
205
216
|
optionValue: r,
|
|
206
|
-
dataKey:
|
|
207
|
-
filterText:
|
|
208
|
-
filterOptions:
|
|
209
|
-
updateSelectedOptionsCache:
|
|
210
|
-
selectRef:
|
|
211
|
-
allowCustomValues:
|
|
212
|
-
manualCustomValues:
|
|
213
|
-
isSingle:
|
|
214
|
-
emit:
|
|
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
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
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,
|
|
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}
|
|
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
|
|
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,
|
|
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 };
|