@webitel/ui-sdk 26.6.94 → 26.6.96
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-Bj07uFky.js → clients-Ban2DI-G.js} +8 -7
- package/dist/{components-l3RJbNmv.js → components-Bim818Xf.js} +13 -8
- package/dist/{composables-vmCh4eqT.js → composables-CeAM_2lo.js} +12 -14
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +605 -605
- package/dist/ui-sdk.umd.cjs +38 -38
- package/dist/useValidation-lRiKF7xV.js +39 -0
- package/dist/{useVidstackSrc-epUQZhkL.js → useVidstackSrc-B4mUti_c.js} +1 -1
- package/dist/{vidstack-C6nBVWwn-BlZqtkYB.js → vidstack-C6nBVWwn-cKiWT0KJ.js} +2 -2
- package/dist/{vidstack-CI5oafcm-DAV7Lilr.js → vidstack-CI5oafcm-DfWpvayJ.js} +1 -1
- package/dist/{vidstack-DUnfBERX2-Cl6yTfB3.js → vidstack-DUnfBERX2-BJtKHFxc.js} +1 -1
- package/dist/{vidstack-audio-CH4wIf0F.js → vidstack-audio-BCPraiiR.js} +1 -1
- package/dist/{vidstack-dash-CmlmZIFT.js → vidstack-dash-MBx5aEEA.js} +2 -2
- package/dist/{vidstack-hls-D1sxUvBd.js → vidstack-hls-BbZsbfaO.js} +2 -2
- package/dist/vidstack-video-DwlbGwN7.js +2 -0
- package/dist/{wt-chat-emoji-CGf8vRlv.js → wt-chat-emoji-CX65m8Dd.js} +1 -1
- package/dist/{wt-datepicker-D2GjAUWU.js → wt-datepicker-BP9bBbGY.js} +1 -1
- package/dist/{wt-display-chip-items-C3TZt4Gn.js → wt-display-chip-items-tL17x2-U.js} +1 -1
- package/dist/{wt-expansion-card-DvLD-TP4.js → wt-expansion-card-DET-o0Jq.js} +1 -1
- package/dist/{wt-galleria-DT0SOjXk.js → wt-galleria-B6kMr_xS.js} +1 -1
- package/dist/{wt-icon-btn-BIU9YjS8.js → wt-icon-btn-DYjjSl-C.js} +5 -2
- package/dist/{wt-player-_mTlxsCu.js → wt-player-Bbirdlj9.js} +1 -1
- package/dist/{wt-search-bar-CUxiGcoz.js → wt-search-bar-D50lqCd8.js} +1 -1
- package/dist/{wt-send-message-popup-CCSOL-wH.js → wt-send-message-popup-8TZWTO40.js} +2 -2
- package/dist/{wt-table-DS_2J5zF.js → wt-table-C39WpJH8.js} +1 -1
- package/dist/{wt-timepicker-Bxdc4s3_.js → wt-timepicker-CYNrvbWf.js} +1 -1
- package/dist/{wt-tree-table-2K7cdct7.js → wt-tree-table-umRsVKWt.js} +1 -1
- package/dist/{wt-type-extension-value-input-Bl8jpyTn.js → wt-type-extension-value-input-D1wNUHkh.js} +2 -2
- package/dist/{wt-vidstack-player-BaH2oaMr.js → wt-vidstack-player-Z3cdtFBu.js} +10 -10
- package/package.json +3 -2
- package/src/api/clients/wtTypes/_shared/utils/sortDynamicFields.ts +18 -4
- package/src/api/types/ApiModule.d.ts +28 -9
- package/src/components/_internals/composables/useGalleriaFullscreen/useGalleriaFullscreen.ts +25 -9
- package/src/components/_internals/composables/useSelect/useSelect.ts +3 -5
- package/src/components/_internals/composables/useSelect/useSelectCustomValues.ts +0 -3
- package/src/components/_internals/composables/useSelect/useSelectOptions.ts +7 -2
- package/src/components/_internals/composables/useWtTable/useWtTable.ts +1 -1
- package/src/components/wt-badge-new/types/WtBadge.d.ts +12 -0
- package/src/components/wt-badge-new/wt-badge.vue +2 -12
- package/src/components/wt-button/wt-button.vue +2 -1
- package/src/components/wt-icon-btn/wt-icon-btn.vue +1 -1
- package/src/components/wt-popup/wt-popup.vue +3 -1
- package/src/components/wt-slider/wt-slider.vue +1 -1
- package/src/components/wt-table/types/WtTable.d.ts +5 -1
- package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/components/time-group.vue +0 -2
- package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/playback-controls-panel.vue +0 -1
- package/src/components/wt-vidstack-player/components/panels/screen-sharing-controls-panel/screen-sharing-controls-panel.vue +1 -2
- package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +1 -9
- package/src/composables/index.d.ts +9 -0
- package/src/composables/index.ts +1 -0
- package/src/composables/useEventBus/useEventBus.d.ts +11 -0
- package/src/composables/useEventBus/useEventBus.ts +16 -0
- package/src/enums/BroadcastChannelName/BroadcastChannelName.d.ts +4 -0
- package/src/enums/BroadcastChannelName/UserSettingsBroadcastMessage.d.ts +12 -0
- package/src/enums/ButtonColor/ButtonColor.d.ts +11 -0
- package/src/enums/ButtonVariant/ButtonVariant.d.ts +6 -0
- package/src/enums/ChipColor/ChipColor.d.ts +11 -0
- package/src/enums/ComponentSize/ComponentSize.d.ts +17 -0
- package/src/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.d.ts +6 -0
- package/src/enums/CrudAction/CrudAction.d.ts +7 -0
- package/src/enums/DefaultWorkspaceTabSettings/DefaultWorkspaceTabSettings.d.ts +9 -0
- package/src/enums/EmptyCause/EmptyCause.d.ts +6 -0
- package/src/enums/FormatDateMode/FormatDateMode.d.ts +8 -0
- package/src/enums/IconColor/IconColor.d.ts +17 -0
- package/src/enums/LoginOptions/LoginOptions.d.ts +6 -0
- package/src/enums/MessageColor/MessageColor.d.ts +9 -0
- package/src/enums/MessageVariant/MessageVariant.d.ts +6 -0
- package/src/enums/MimeTypes/MimeTypes.enum.d.ts +17 -0
- package/src/enums/ProcessingTableColumnType/ProcessingTableColumnType.d.ts +8 -0
- package/src/enums/QueueType/QueueType.enum.d.ts +28 -0
- package/src/enums/RelativeDatetimeValue/RelativeDatetimeValue.d.ts +7 -0
- package/src/enums/RingtoneType/RingtoneType.d.ts +6 -0
- package/src/enums/SingleSignOnProvider/SingleSignOnProvider.d.ts +7 -0
- package/src/enums/SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings.d.ts +3 -0
- package/src/enums/WebitelApplications/AdminSections.d.ts +46 -0
- package/src/enums/WebitelApplications/AuditorSections.d.ts +4 -0
- package/src/enums/WebitelApplications/CrmSections.d.ts +16 -0
- package/src/enums/WebitelApplications/SupervisorSections.d.ts +6 -0
- package/src/enums/WebitelApplications/WfmSections.d.ts +6 -0
- package/src/enums/WebitelApplications/WtApplication.d.ts +12 -0
- package/src/enums/WtObject/WtObject.d.ts +63 -0
- package/src/enums/WtTypeExtensionFieldKind/WtTypeExtensionFieldKind.d.ts +13 -0
- package/src/enums/index.d.ts +38 -0
- package/src/install.ts +2 -1
- package/src/locale/en/en.js +1 -0
- package/src/locale/es/es.js +1 -0
- package/src/locale/kz/kz.js +1 -0
- package/src/locale/pl/pl.js +1 -0
- package/src/locale/ro/ro.js +1 -0
- package/src/locale/ru/ru.js +1 -0
- package/src/locale/uk/uk.js +1 -0
- package/src/locale/uz/uz.js +1 -0
- package/src/locale/vi/vi.js +1 -0
- package/src/mixins/validationMixin/regle/useRegleValidation.ts +4 -4
- package/src/mixins/validationMixin/useValidation.ts +8 -3
- package/src/mixins/validationMixin/vuelidate/useVuelidateValidation.ts +63 -40
- package/src/modules/CSVExport/composables/useCSVExport.ts +1 -1
- package/src/modules/CallSession/modules/ScreenSharing/screen-sharing.vue +1 -2
- package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/domTraversal.ts +2 -2
- package/src/modules/CallSession/modules/VideoCall/video-call.vue +1 -1
- package/src/modules/CallSession/types/index.ts +3 -3
- package/src/modules/UploadCsvPopup/composable/useUploadCsv.ts +1 -1
- package/src/modules/UploadCsvPopup/scripts/parseCSV.ts +1 -1
- package/src/modules/UserNotifications/maps/userNotificationConfigsMap.ts +10 -7
- package/src/modules/UserNotifications/stores/userNotificationsStore.ts +1 -0
- package/src/modules/UserNotifications/types/UserNotifications.ts +2 -1
- package/src/modules/Userinfo/constants/UserSettingsConstants.d.ts +1 -0
- package/src/scripts/__tests__/isEmpty.spec.js +1 -1
- package/src/scripts/downloadFile/types/downloadFile.types.ts +7 -1
- package/src/scripts/index.js +1 -1
- package/src/scripts/{isEmpty.js → isEmpty.ts} +10 -1
- package/src/scripts/normalizeDatetime.ts +4 -2
- package/src/utils/displayText.d.ts +2 -0
- package/src/utils/formatDate.d.ts +4 -0
- package/src/utils/index.d.ts +2 -0
- package/src/validations/config/errors/customZodErrorsHandler.ts +8 -4
- package/types/api/defaults/getDefaultInstance/getDefaultInstance.d.ts +1 -1
- package/types/components/_internals/composables/useSelect/useSelect.d.ts +2 -2
- package/types/components/_internals/composables/useSelect/useSelectCustomValues.d.ts +1 -4
- package/types/components/_internals/composables/useWtTable/useWtTable.d.ts +1 -0
- package/types/components/on-demand/wt-call-media-action/wt-call-media-action.vue.d.ts +2 -2
- package/types/components/on-demand/wt-selection-popup/wt-selection-popup.vue.d.ts +4 -4
- package/types/components/wt-action-bar/WtActionBarActionsOrder.d.ts +2 -2
- package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +17 -17
- package/types/components/wt-badge-new/wt-badge.vue.d.ts +3 -2
- package/types/components/wt-button/wt-button.vue.d.ts +2 -1
- package/types/components/wt-inline-add-panel/wt-inline-add-panel.vue.d.ts +3 -3
- package/types/components/wt-popup/wt-popup.vue.d.ts +2 -0
- package/types/components/wt-search-bar/wt-search-bar.vue.d.ts +2 -2
- package/types/components/wt-status-select/wt-status-select.vue.d.ts +2 -2
- package/types/components/wt-tree-table/wt-tree-table.vue.d.ts +1 -1
- package/types/composables/index.d.ts +1 -0
- package/types/composables/useEventBus/useEventBus.d.ts +11 -0
- 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
- package/types/mixins/validationMixin/regle/useRegleValidation.d.ts +2 -2
- package/types/mixins/validationMixin/useValidation.d.ts +9 -4
- package/types/mixins/validationMixin/validationMixin.d.ts +1 -1
- package/types/mixins/validationMixin/vuelidate/useVuelidateValidation.d.ts +14 -9
- package/types/modules/AgentPdfs/components/agent-pdfs-tab.vue.d.ts +4 -1
- package/types/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue.d.ts +2 -2
- package/types/modules/CallSession/types/index.d.ts +3 -3
- package/types/modules/TableComponentModule/composables/useTableEmpty.d.ts +1 -1
- package/types/modules/UploadCsvPopup/composable/useUploadCsv.d.ts +1 -1
- package/types/modules/UploadCsvPopup/scripts/parseCSV.d.ts +1 -1
- package/types/modules/UserNotifications/maps/userNotificationConfigsMap.d.ts +2 -2
- package/types/modules/UserNotifications/types/UserNotifications.d.ts +2 -1
- package/types/scripts/caseConverters.d.ts +1 -1
- package/types/scripts/downloadFile/types/downloadFile.types.d.ts +6 -1
- package/types/scripts/index.d.ts +1 -1
- package/types/scripts/isEmpty.d.ts +2 -1
- package/types/scripts/normalizeDatetime.d.ts +1 -1
- package/types/validations/config/errors/customZodErrorsHandler.d.ts +1 -1
- package/dist/useValidation-BedhHNX5.js +0 -37
- package/dist/vidstack-video-iy3-Vo1A.js +0 -2
- package/types/install.d.ts +0 -15
|
@@ -1083,10 +1083,10 @@ var se = class {
|
|
|
1083
1083
|
return (n) => (e({ callback: t }), n);
|
|
1084
1084
|
}
|
|
1085
1085
|
if (e instanceof Error) {
|
|
1086
|
-
let t = e
|
|
1086
|
+
let { response: t } = e, n = t?.data?.translation || t?.data?.detail || t?.data?.message || e;
|
|
1087
1087
|
de.eventBus?.$emit("notification", {
|
|
1088
1088
|
type: "error",
|
|
1089
|
-
text:
|
|
1089
|
+
text: n
|
|
1090
1090
|
});
|
|
1091
1091
|
}
|
|
1092
1092
|
return e;
|
|
@@ -36353,11 +36353,12 @@ var Ue = (e) => {
|
|
|
36353
36353
|
let { items: e, next: s } = K((await $().searchAgentStateHistory({
|
|
36354
36354
|
page: i,
|
|
36355
36355
|
size: a,
|
|
36356
|
-
|
|
36357
|
-
to: r,
|
|
36358
|
-
parentId: t,
|
|
36356
|
+
agentId: t ? [t] : void 0,
|
|
36359
36357
|
sort: o
|
|
36360
|
-
}
|
|
36358
|
+
}, { params: {
|
|
36359
|
+
"joined_at.from": n,
|
|
36360
|
+
"joined_at.to": r
|
|
36361
|
+
} })).data, [Z(), J(g())]);
|
|
36361
36362
|
return {
|
|
36362
36363
|
items: e,
|
|
36363
36364
|
next: s
|
|
@@ -36371,7 +36372,7 @@ var Ue = (e) => {
|
|
|
36371
36372
|
isNotSupervisor: !0
|
|
36372
36373
|
}),
|
|
36373
36374
|
getAgentUsersOptions: async (e) => {
|
|
36374
|
-
let { page: t, size: n, search: r
|
|
36375
|
+
let { page: t, size: n, search: r } = K(e, [J(_()), Q("search")]);
|
|
36375
36376
|
try {
|
|
36376
36377
|
let { items: e, next: i } = K((await $().searchLookupUsersAgentNotExists({
|
|
36377
36378
|
page: t,
|
|
@@ -9,10 +9,10 @@ import { t as ee } from "./vue-i18n-Db_oYfO8.js";
|
|
|
9
9
|
import { a as te, c as S, i as ne, n as re, o as C, r as ie, s as ae } from "./debounce-Bp3jy7S5.js";
|
|
10
10
|
import { t as oe } from "./wt-toast-DXrSMdRm.js";
|
|
11
11
|
import "./sortQueryAdapters-CyYXvnDN.js";
|
|
12
|
-
import { n as w, t as T } from "./wt-icon-btn-
|
|
12
|
+
import { n as w, t as T } from "./wt-icon-btn-DYjjSl-C.js";
|
|
13
13
|
import { t as se } from "./wt-icon-action-BBmutGsL.js";
|
|
14
|
-
import { t as ce } from "./useValidation-
|
|
15
|
-
import { i as le, n as ue, r as de } from "./composables-
|
|
14
|
+
import { t as ce } from "./useValidation-lRiKF7xV.js";
|
|
15
|
+
import { i as le, n as ue, r as de } from "./composables-CeAM_2lo.js";
|
|
16
16
|
import { t as fe } from "./wt-expand-transition-C2p9bR4j.js";
|
|
17
17
|
import { a as pe, c as me, i as he, n as ge, o as _e, r as ve, s as ye, t as be } from "./floating-ui.dom-Ch9ml4Rx.js";
|
|
18
18
|
import * as xe from "vue";
|
|
@@ -5613,6 +5613,10 @@ var cl = /* @__PURE__ */ il(ol, [["render", sl]]), ll = {
|
|
|
5613
5613
|
closable: {
|
|
5614
5614
|
type: Boolean,
|
|
5615
5615
|
default: !0
|
|
5616
|
+
},
|
|
5617
|
+
closeDisabled: {
|
|
5618
|
+
type: Boolean,
|
|
5619
|
+
default: !1
|
|
5616
5620
|
}
|
|
5617
5621
|
},
|
|
5618
5622
|
emits: [
|
|
@@ -5640,10 +5644,11 @@ var cl = /* @__PURE__ */ il(ol, [["render", sl]]), ll = {
|
|
|
5640
5644
|
default: K(() => [a.value ? (R(), k("aside", ll, [
|
|
5641
5645
|
A("header", ul, [z(t.$slots, "header", {}, () => [A("h3", dl, [z(t.$slots, "title", {}, void 0, !0)])], !0), e.closable ? (R(), D(i, {
|
|
5642
5646
|
key: 0,
|
|
5647
|
+
disabled: e.closeDisabled,
|
|
5643
5648
|
class: "wt-popup__close-btn",
|
|
5644
5649
|
icon: "close",
|
|
5645
5650
|
onClick: n[0] ||= (e) => r("close")
|
|
5646
|
-
})) : O("", !0)]),
|
|
5651
|
+
}, null, 8, ["disabled"])) : O("", !0)]),
|
|
5647
5652
|
t.$slots.main ? (R(), k("section", fl, [z(t.$slots, "main", {}, void 0, !0)])) : O("", !0),
|
|
5648
5653
|
t.$slots.actions ? (R(), k("footer", pl, [z(t.$slots, "actions", {}, void 0, !0)])) : O("", !0)
|
|
5649
5654
|
])) : O("", !0)], void 0, !0),
|
|
@@ -5651,7 +5656,7 @@ var cl = /* @__PURE__ */ il(ol, [["render", sl]]), ll = {
|
|
|
5651
5656
|
})], 2)), [[Ze, l.value]]);
|
|
5652
5657
|
};
|
|
5653
5658
|
}
|
|
5654
|
-
}), [["__scopeId", "data-v-
|
|
5659
|
+
}), [["__scopeId", "data-v-87cbc494"]]), hl = {
|
|
5655
5660
|
name: "WtProgressBar",
|
|
5656
5661
|
props: {
|
|
5657
5662
|
max: {
|
|
@@ -6537,9 +6542,9 @@ var zl = {
|
|
|
6537
6542
|
])), [[r, d]]) : O("", !0)], 2);
|
|
6538
6543
|
};
|
|
6539
6544
|
}
|
|
6540
|
-
}, [["__scopeId", "data-v-72aa56d0"]]), Wl = N(() => import("./wt-action-bar-HBm22ay5.js")), Gl = N(() => import("./wt-button-select-BnRHgJ4i.js")), Kl = N(() => import("./wt-confirm-dialog-DCUitG2v.js")), ql = N(() => import("./wt-context-menu-yW52oF-2.js")), Jl = N(() => import("./wt-copy-action-d9gVzAsB.js")), Yl = N(() => import("./wt-datepicker-
|
|
6541
|
-
N(() => import("./wt-type-extension-value-input-
|
|
6542
|
-
var Du = N(() => import("./wt-screen-recordings-action-Dzzo0eqW.js")), Ou = N(() => import("./wt-send-message-popup-
|
|
6545
|
+
}, [["__scopeId", "data-v-72aa56d0"]]), Wl = N(() => import("./wt-action-bar-HBm22ay5.js")), Gl = N(() => import("./wt-button-select-BnRHgJ4i.js")), Kl = N(() => import("./wt-confirm-dialog-DCUitG2v.js")), ql = N(() => import("./wt-context-menu-yW52oF-2.js")), Jl = N(() => import("./wt-copy-action-d9gVzAsB.js")), Yl = N(() => import("./wt-datepicker-BP9bBbGY.js")), Xl = N(() => import("./wt-dual-panel-Dhj8Eg_y.js")), Zl = N(() => import("./wt-dummy-CLjhRWZ6.js")), Ql = N(() => import("./wt-error-page-vhu4lIyF.js")), $l = N(() => import("./wt-expansion-panel-Br7JPc5X.js")), eu = N(() => import("./wt-expansion-card-DET-o0Jq.js")), tu = N(() => import("./wt-filters-panel-wrapper-Cc9b3aci.js")), nu = N(() => import("./wt-galleria-B6kMr_xS.js")), ru = N(() => import("./wt-notifications-bar-DhJxMjNB.js")), iu = N(() => import("./wt-page-header-CDbd4aOh.js")), au = N(() => import("./wt-pagination-G2ZGU4Pi.js")), ou = N(() => import("./wt-player-Bbirdlj9.js")), su = N(() => import("./wt-popover-ChCN6b1o.js").then((e) => e.n)), cu = N(() => import("./wt-search-bar-D50lqCd8.js")), lu = N(() => import("./wt-slider-BPzRTeYU.js").then((e) => e.n)), uu = N(() => import("./wt-status-select-D1hAjCAS.js")), du = N(() => import("./wt-stepper-B6zpd1Uh.js")), fu = N(() => import("./wt-table-C39WpJH8.js")), pu = N(() => import("./wt-table-actions-4-peSVkc.js")), mu = N(() => import("./wt-table-column-select-CgEh5BAF.js")), hu = N(() => import("./wt-tabs-DuOgj-lZ.js")), gu = N(() => import("./wt-time-input-CO2cop3y.js")), _u = N(() => import("./wt-timepicker-CYNrvbWf.js")), vu = N(() => import("./wt-tree-DZ9ErOGj.js")), yu = N(() => import("./wt-tree-table-umRsVKWt.js")), bu = N(() => import("./wt-vidstack-player-Z3cdtFBu.js")), xu = N(() => import("./wt-call-media-action-Bn2bGCWs.js")), Su = N(() => import("./wt-chat-emoji-CX65m8Dd.js")), Cu = N(() => import("./wt-display-chip-items-tL17x2-U.js")), wu = N(() => import("./wt-navigation-menu-CenQi_-T.js")), Tu = N(() => import("./wt-selection-popup-CjYw4ppb.js")), Eu = N(() => import("./wt-start-page-DMXRhA9E.js"));
|
|
6546
|
+
N(() => import("./wt-type-extension-value-input-D1wNUHkh.js"));
|
|
6547
|
+
var Du = N(() => import("./wt-screen-recordings-action-Dzzo0eqW.js")), Ou = N(() => import("./wt-send-message-popup-8TZWTO40.js")), ku = {
|
|
6543
6548
|
WtActionBar: Wl,
|
|
6544
6549
|
WtImage: fo,
|
|
6545
6550
|
WtEmpty: _o,
|
|
@@ -13,7 +13,8 @@ var l = () => {
|
|
|
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
|
}, o = () => {
|
|
16
|
-
|
|
16
|
+
let e = document;
|
|
17
|
+
e.exitFullscreen ? e.exitFullscreen() : e.mozCancelFullScreen ? e.mozCancelFullScreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.msExitFullscreen && e.msExitFullscreen();
|
|
17
18
|
}, c = () => {
|
|
18
19
|
document.addEventListener("fullscreenchange", n), document.addEventListener("mozfullscreenchange", n), document.addEventListener("webkitfullscreenchange", n), document.addEventListener("msfullscreenchange", n);
|
|
19
20
|
}, l = () => {
|
|
@@ -61,16 +62,16 @@ var l = () => {
|
|
|
61
62
|
n.has(e) || n.set(e, r);
|
|
62
63
|
}
|
|
63
64
|
return [...n.values()];
|
|
64
|
-
}, h = (e, t, n) => e.filter((e) => n(e).toLowerCase().includes(t.toLowerCase())), g = ({ selected: e, filteredOptions: t, options: n,
|
|
65
|
-
let
|
|
65
|
+
}, h = (e, t, n) => e.filter((e) => n(e).toLowerCase().includes(t.toLowerCase())), g = ({ selected: e, filteredOptions: t, options: n, dataKey: i, filterText: a, filterOptions: o, updateSelectedOptionsCache: s, selectRef: c, allowCustomValues: l, isSingle: u }) => {
|
|
66
|
+
let d = (e) => {
|
|
66
67
|
let r = n.value.length ? n.value[0] : t.value[0];
|
|
67
|
-
return r && typeof r == "object" ? Object.fromEntries(Object.keys(r).map((t) => [t, e])) :
|
|
68
|
+
return r && typeof r == "object" ? Object.fromEntries(Object.keys(r).map((t) => [t, e])) : i.value ? { [i.value]: e } : e;
|
|
68
69
|
};
|
|
69
70
|
return { onInputKeydown: () => {
|
|
70
|
-
if (!
|
|
71
|
-
let n =
|
|
72
|
-
t.value.some((e) => p(e, [n],
|
|
73
|
-
|
|
71
|
+
if (!l.value || !a.value || f(e.value).some((e) => (i.value ? e[i.value] : e) === a.value)) return;
|
|
72
|
+
let n = d(a.value);
|
|
73
|
+
t.value.some((e) => p(e, [n], i.value)) || t.value.unshift(n), u ? (c.value?.hide(), e.value = n) : e.value = [...e.value, n], s(), r(() => {
|
|
74
|
+
a.value = "", o("");
|
|
74
75
|
});
|
|
75
76
|
} };
|
|
76
77
|
}, _ = ({ selectId: e, selectRef: t, filterInput: n, searchMethod: i, filteredOptions: a, filterText: o, filterOptions: l, resetAndFetch: u, sortOptions: d, fetchOptions: f, isLoading: p, searchHasNext: m }) => {
|
|
@@ -178,7 +179,7 @@ var l = () => {
|
|
|
178
179
|
y.value = C(m([...T(e, v.value), ...y.value], l.value));
|
|
179
180
|
}
|
|
180
181
|
};
|
|
181
|
-
return c(() => n.value, (e
|
|
182
|
+
return c(() => n.value, (e) => {
|
|
182
183
|
D(), N(e);
|
|
183
184
|
}), c(() => r.value, (e) => {
|
|
184
185
|
d.value || (y.value = C(e));
|
|
@@ -195,7 +196,7 @@ var l = () => {
|
|
|
195
196
|
filterOptionsBase: M,
|
|
196
197
|
updateSelectedOptionsCache: D
|
|
197
198
|
};
|
|
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
|
+
}, 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 = (e, ...t) => {} }) => {
|
|
199
200
|
let { filterText: h, filteredOptions: b, isLoading: x, searchHasNext: S, sortOptions: C, getOptionLabel: w, fetchOptions: T, fetchSelectedByIds: E, resetAndFetch: D, filterOptionsBase: O, updateSelectedOptionsCache: k } = y({
|
|
200
201
|
selected: e,
|
|
201
202
|
options: t,
|
|
@@ -222,16 +223,13 @@ var l = () => {
|
|
|
222
223
|
selected: e,
|
|
223
224
|
filteredOptions: b,
|
|
224
225
|
options: t,
|
|
225
|
-
optionValue: r,
|
|
226
226
|
dataKey: a,
|
|
227
227
|
filterText: h,
|
|
228
228
|
filterOptions: F,
|
|
229
229
|
updateSelectedOptionsCache: k,
|
|
230
230
|
selectRef: l,
|
|
231
231
|
allowCustomValues: o,
|
|
232
|
-
|
|
233
|
-
isSingle: f,
|
|
234
|
-
emit: m
|
|
232
|
+
isSingle: f
|
|
235
233
|
});
|
|
236
234
|
return i(async () => {
|
|
237
235
|
await E(), u.value && T();
|