@webitel/ui-sdk 26.6.33 → 26.6.35
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/AgentStatus.enum-C3IGHtvR.js +9 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/caseConverters-DXegZoCt.js +27 -0
- package/dist/chunk-CY3AvKd6.js +20 -0
- package/dist/clients-A6MHYfOX.js +36118 -0
- package/dist/components-B4aAS7wB.js +5391 -0
- package/dist/composables-DnDH-KUv.js +263 -0
- package/dist/convertDuration-1K7fuEpO.js +8 -0
- package/dist/debounce-DrmECuJ2.js +128 -0
- package/dist/deep-copy-CQw5yeEH.js +41 -0
- package/dist/displayText-CtaxzaBz.js +3 -0
- package/dist/dist-05Bf47Wg.js +87 -0
- package/dist/dist-BYiYpK00.js +7 -0
- package/dist/dist-Dz55hlwp.js +1371 -0
- package/dist/engineCallFileType-D7QVFOac.js +11 -0
- package/dist/enums-pbYAJNeb.js +158 -0
- package/dist/errors-SUXKojVW.js +69 -0
- package/dist/floating-ui.dom-n2j9PKCB.js +842 -0
- package/dist/generateInstance-ppTIeLX4.js +2582 -0
- package/dist/isObject-Dgs_L5xI.js +11 -0
- package/dist/logger-hl3ueNok.js +47 -0
- package/dist/prod-Cp0BjuxI.js +775 -0
- package/dist/prod-DSuxcp5t.js +2 -0
- package/dist/side-channel-Cyte-MzW.js +833 -0
- package/dist/sortQueryAdapters-CyYXvnDN.js +14 -0
- package/dist/srt-parser-DdH5U08c.js +21 -0
- package/dist/ssa-parser-Bjs7yDD1.js +184 -0
- package/dist/ui-sdk.css +2 -1
- package/dist/ui-sdk.js +34541 -4
- package/dist/ui-sdk.umd.cjs +7740 -7606
- package/dist/useExpansion-DVdIpoOn.js +24 -0
- package/dist/useValidation-DG0tifBv.js +37 -0
- package/dist/useVidstackSrc-DfNrFbOO.js +155 -0
- package/dist/useWtTable-tqmVOvve.js +12 -0
- package/dist/vidstack-B01xzxC4-DeYSgDZy.js +7 -0
- package/dist/vidstack-BGSTndAW-CyKM_CM4.js +957 -0
- package/dist/vidstack-BQlOPwOu-ChhdffAJ.js +43 -0
- package/dist/vidstack-Bq6c3Bam-3dCf_D36.js +398 -0
- package/dist/vidstack-C2US-gSO-DeIgENrW.js +127 -0
- package/dist/vidstack-C9vIqaYT-C1EgPq17.js +9 -0
- package/dist/vidstack-CTojmhKq-D7sZJxgm.js +30 -0
- package/dist/vidstack-ChQTHmIQ-nTO94M6P.js +51 -0
- package/dist/vidstack-Ci54COQW-CAAXpwzv.js +208 -0
- package/dist/vidstack-D2pY00kU-DoW028io.js +70 -0
- package/dist/vidstack-D5EzK014-DOe01V3H.js +14 -0
- package/dist/vidstack-DDXt6fpN-Don_e6LS.js +42 -0
- package/dist/vidstack-D_-9AA6_-Dq3APB0-.js +19 -0
- package/dist/vidstack-Dihypf8P-ibWMCHK-.js +12 -0
- package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +31 -0
- package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +22 -0
- package/dist/vidstack-audio-B58bvsna.js +23 -0
- package/dist/vidstack-dash-CX-LTHx3.js +332 -0
- package/dist/vidstack-google-cast-Co5Q_rfL.js +361 -0
- package/dist/vidstack-hls-CLzdTFu6.js +269 -0
- package/dist/vidstack-krOAtKMi-DN1WZC3p.js +30 -0
- package/dist/vidstack-video-XtP8iTBc.js +151 -0
- package/dist/vidstack-vimeo-EzzPpggD.js +386 -0
- package/dist/vidstack-youtube-C1_NAfWa.js +205 -0
- package/dist/vue-i18n-B8Px6VcD.js +2201 -0
- package/dist/wt-action-bar-Ba1ZJjE_.js +85 -0
- package/dist/wt-button-DENbrKdy.js +785 -0
- package/dist/wt-button-select-BnRHgJ4i.js +80 -0
- package/dist/wt-call-media-action-Bkyppnsm.js +42 -0
- package/dist/wt-chat-emoji-wdBt1XzD.js +2208 -0
- package/dist/wt-confirm-dialog-DCUitG2v.js +70 -0
- package/dist/wt-context-menu-yW52oF-2.js +89 -0
- package/dist/wt-copy-action-d9gVzAsB.js +38 -0
- package/dist/wt-datepicker-Cnbarx_j.js +5774 -0
- package/dist/wt-display-chip-items-CvMM8WMk.js +34 -0
- package/dist/wt-dual-panel-DAhTYFS_.js +49 -0
- package/dist/wt-dummy-CLjhRWZ6.js +59 -0
- package/dist/wt-error-page-vhu4lIyF.js +62 -0
- package/dist/wt-expand-transition-C2p9bR4j.js +39 -0
- package/dist/wt-expansion-card-qsxvbtZm.js +47 -0
- package/dist/wt-expansion-panel-C_EXvx1d.js +40 -0
- package/dist/wt-filters-panel-wrapper-Cc9b3aci.js +51 -0
- package/dist/wt-galleria-CWXKuZTD.js +224 -0
- package/dist/wt-icon-action-CQlZHMDB.js +100 -0
- package/dist/wt-icon-btn-CjjI4cgE.js +107 -0
- package/dist/wt-icon-pxO7IjwV.js +1026 -0
- package/dist/wt-inline-add-panel-B0E4Vk2l.js +43 -0
- package/dist/wt-navigation-menu-CenQi_-T.js +126 -0
- package/dist/wt-notifications-bar-Ep1QuFZi.js +52 -0
- package/dist/wt-page-header-CDbd4aOh.js +59 -0
- package/dist/wt-pagination-BA_PZPIE.js +94 -0
- package/dist/wt-player-uidPXSTe.js +287 -0
- package/dist/wt-popover-CJZH3wMl.js +98 -0
- package/dist/wt-screen-recordings-action-Dg7Ts2Jt.js +37 -0
- package/dist/wt-search-bar-CWZdvAOf.js +123 -0
- package/dist/wt-selection-popup-B77UY7Yu.js +79 -0
- package/dist/wt-send-message-popup-D0GJMGni.js +77 -0
- package/dist/wt-slider-BS3SoGht.js +68 -0
- package/dist/wt-start-page-eN1PEokc.js +86 -0
- package/dist/wt-status-select-A5t6Vjm4.js +101 -0
- package/dist/wt-stepper-B6zpd1Uh.js +41 -0
- package/dist/wt-table-D0FynxIE.js +364 -0
- package/dist/wt-table-actions-4-peSVkc.js +63 -0
- package/dist/wt-table-column-select-DFF6z3a3.js +100 -0
- package/dist/wt-tabs-DuOgj-lZ.js +60 -0
- package/dist/wt-time-input-CO2cop3y.js +62 -0
- package/dist/wt-timepicker-BltFF1QD.js +145 -0
- package/dist/wt-tree-ZyoPrNOl.js +1206 -0
- package/dist/wt-tree-table-MLET4gIv.js +221 -0
- package/dist/wt-type-extension-value-input-fnNxJLsq.js +104 -0
- package/dist/wt-vidstack-player-DLTA9mBK.js +7440 -0
- package/package.json +5 -5
- package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +3 -3
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +2 -2
- package/dist/contacts-C-FnP7wP.js +0 -49654
- package/dist/displayText-Cbh4IOfM.js +0 -5
- package/dist/engineCallFileType-yaadA7-2.js +0 -8
- package/dist/errors-CTL-RV3B.js +0 -70
- package/dist/index-BBLSS-t1.js +0 -50
- package/dist/install-DOSuNFtE.js +0 -53489
- package/dist/isObject-CMQJaQIp.js +0 -28
- package/dist/prod-BoQuiIB3.js +0 -973
- package/dist/srt-parser-CsN7bp5E.js +0 -26
- package/dist/ssa-parser-BJOOPeQF.js +0 -200
- package/dist/useExpansion-BrQ40HiR.js +0 -24
- package/dist/useVidstackSrc-MfWBq7Ef.js +0 -1341
- package/dist/vidstack-Bq6c3Bam-C_T8PkmG.js +0 -426
- package/dist/vidstack-D2pY00kU-CphVKcJq.js +0 -136
- package/dist/vidstack-DDXt6fpN-2lNfj8Ca.js +0 -51
- package/dist/vidstack-D_-9AA6_-Cyl8HzDm.js +0 -21
- package/dist/vidstack-Dm1xEU9Q-CXHNvShT.js +0 -30
- package/dist/vidstack-DqAw8m9J-C2p9K7Db.js +0 -22
- package/dist/vidstack-audio-BL-Sa_Ap.js +0 -28
- package/dist/vidstack-dash-mKhgfurw.js +0 -393
- package/dist/vidstack-google-cast-BGqSw2iP.js +0 -383
- package/dist/vidstack-hls-U5fTV3hj.js +0 -310
- package/dist/vidstack-krOAtKMi-C50BTxmn.js +0 -28
- package/dist/vidstack-video-Bxf7KDne.js +0 -164
- package/dist/vidstack-vimeo-MngSXtDR.js +0 -452
- package/dist/vidstack-youtube-Ctg91VeX.js +0 -233
- package/dist/wt-action-bar-DaDcqA4n.js +0 -102
- package/dist/wt-button-select-q_BITVhH.js +0 -105
- package/dist/wt-call-media-action-BkBcZN17.js +0 -60
- package/dist/wt-chat-emoji-BGuSgYi3.js +0 -2909
- package/dist/wt-confirm-dialog-C7-74ROm.js +0 -92
- package/dist/wt-context-menu-CzAHMaOj.js +0 -104
- package/dist/wt-copy-action-BpckAObd.js +0 -60
- package/dist/wt-datepicker-DauMnf2r.js +0 -5660
- package/dist/wt-display-chip-items-zcqxH89_.js +0 -47
- package/dist/wt-dual-panel-Cj79kJpk.js +0 -66
- package/dist/wt-dummy-BUHYAcsk.js +0 -104
- package/dist/wt-error-page-CNSqDA-o.js +0 -89
- package/dist/wt-expansion-card-CtcuXg6f.js +0 -56
- package/dist/wt-expansion-panel-BU2Hb-N2.js +0 -54
- package/dist/wt-filters-panel-wrapper-BlLlAixc.js +0 -75
- package/dist/wt-galleria-BQzGD6-3.js +0 -323
- package/dist/wt-inline-add-panel-fG58a6T3.js +0 -49
- package/dist/wt-navigation-menu-2ggfyrM_.js +0 -159
- package/dist/wt-notifications-bar-Epn_SA_R.js +0 -79
- package/dist/wt-page-header-DdsnoLgd.js +0 -115
- package/dist/wt-pagination-Byg79HfY.js +0 -144
- package/dist/wt-player-kjdJYVi3.js +0 -291
- package/dist/wt-popover-Di-7_rDL.js +0 -4
- package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +0 -81
- package/dist/wt-screen-recordings-action-Z3x-gI0n.js +0 -54
- package/dist/wt-search-bar-CxwSi-Xo.js +0 -144
- package/dist/wt-selection-popup-MdCfrgcd.js +0 -109
- package/dist/wt-send-message-popup-DklTgoGj.js +0 -579
- package/dist/wt-slider-BEkw4KGp.js +0 -4
- package/dist/wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js +0 -55
- package/dist/wt-start-page-B59KbWqX.js +0 -99
- package/dist/wt-status-select-hOAr_xBg.js +0 -138
- package/dist/wt-stepper-CMeW3d6N.js +0 -65
- package/dist/wt-table-C5CLtnK5.js +0 -426
- package/dist/wt-table-actions-DgAfy-dd.js +0 -79
- package/dist/wt-table-column-select-BK5rozpI.js +0 -128
- package/dist/wt-tabs-Bn6rSg0s.js +0 -74
- package/dist/wt-time-input-DYiW0ijt.js +0 -42
- package/dist/wt-timepicker-CkjoLwXC.js +0 -118
- package/dist/wt-tree-CCvr4TTF.js +0 -2777
- package/dist/wt-tree-table-BWmGF3rE.js +0 -285
- package/dist/wt-type-extension-value-input-q5286OSO.js +0 -121
- package/dist/wt-vidstack-player-CTWna35Q.js +0 -9093
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { r as e } from "./chunk-CY3AvKd6.js";
|
|
2
|
+
import { createElementBlock as t, createVNode as n, defineComponent as r, guardReactiveProps as i, mergeProps as a, normalizeProps as o, onBeforeUnmount as s, onMounted as c, openBlock as l, renderSlot as u, resolveComponent as d, toHandlers as f, unref as p, useAttrs as m, useTemplateRef as h, withCtx as g } from "vue";
|
|
3
|
+
//#region src/components/wt-popover/_internals/composables/usePopoverOverlayFix.ts
|
|
4
|
+
var _ = (e) => {
|
|
5
|
+
let t = (t) => {
|
|
6
|
+
if (!t.target?.closest(".p-select-overlay, .p-multiselect-overlay")) return;
|
|
7
|
+
let n = e.value?.outsideClickListener;
|
|
8
|
+
n && (document.removeEventListener("click", n), document.addEventListener("click", () => {
|
|
9
|
+
document.addEventListener("click", n);
|
|
10
|
+
}, {
|
|
11
|
+
once: !0,
|
|
12
|
+
capture: !1
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
15
|
+
c(() => document.addEventListener("pointerdown", t, !0)), s(() => document.removeEventListener("pointerdown", t, !0));
|
|
16
|
+
}, v = /*@__PURE__*/ r({
|
|
17
|
+
__name: "wt-popover",
|
|
18
|
+
props: {
|
|
19
|
+
disabled: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
dismissable: { type: Boolean },
|
|
24
|
+
appendTo: { default: "body" },
|
|
25
|
+
baseZIndex: { default: 0 },
|
|
26
|
+
autoZIndex: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !0
|
|
29
|
+
},
|
|
30
|
+
breakpoints: { default: null },
|
|
31
|
+
dt: { default: null },
|
|
32
|
+
pt: { default: null },
|
|
33
|
+
ptOptions: { default: null },
|
|
34
|
+
unstyled: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
closeOnEscape: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !0
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
emits: ["show", "hide"],
|
|
44
|
+
setup(e, { expose: r }) {
|
|
45
|
+
let s = m(), c = h("innerPopover"), v = e;
|
|
46
|
+
_(c);
|
|
47
|
+
let y = (e, t) => {
|
|
48
|
+
v.disabled || c.value?.toggle(e, t ?? void 0);
|
|
49
|
+
}, b = (e, t) => {
|
|
50
|
+
v.disabled || c.value?.show(e, t ?? void 0);
|
|
51
|
+
}, x = (e) => {
|
|
52
|
+
c.value?.hide(e);
|
|
53
|
+
};
|
|
54
|
+
return r({
|
|
55
|
+
toggle: y,
|
|
56
|
+
show: b,
|
|
57
|
+
hide: x
|
|
58
|
+
}), (r, m) => {
|
|
59
|
+
let h = d("p-popover");
|
|
60
|
+
return l(), t("div", null, [u(r.$slots, "activator", o(i({
|
|
61
|
+
show: b,
|
|
62
|
+
toggle: y,
|
|
63
|
+
hide: x
|
|
64
|
+
}))), n(h, a(p(s), {
|
|
65
|
+
ref_key: "innerPopover",
|
|
66
|
+
ref: c
|
|
67
|
+
}, {
|
|
68
|
+
"append-to": e.appendTo,
|
|
69
|
+
"base-z-index": e.baseZIndex,
|
|
70
|
+
"auto-z-index": e.autoZIndex,
|
|
71
|
+
breakpoints: e.breakpoints,
|
|
72
|
+
dt: e.dt,
|
|
73
|
+
pt: e.pt,
|
|
74
|
+
"pt-options": e.ptOptions,
|
|
75
|
+
"close-on-escape": e.closeOnEscape,
|
|
76
|
+
unstyled: e.unstyled
|
|
77
|
+
}, f(p(s))), {
|
|
78
|
+
default: g(() => [u(r.$slots, "default", o(i({
|
|
79
|
+
hide: x,
|
|
80
|
+
toggle: y
|
|
81
|
+
})))], void 0, !0),
|
|
82
|
+
_: 3
|
|
83
|
+
}, 16, [
|
|
84
|
+
"append-to",
|
|
85
|
+
"base-z-index",
|
|
86
|
+
"auto-z-index",
|
|
87
|
+
"breakpoints",
|
|
88
|
+
"dt",
|
|
89
|
+
"pt",
|
|
90
|
+
"pt-options",
|
|
91
|
+
"close-on-escape",
|
|
92
|
+
"unstyled"
|
|
93
|
+
])]);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
}), y = /* @__PURE__ */ e({ default: () => b }), b = v;
|
|
97
|
+
//#endregion
|
|
98
|
+
export { y as n, b as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { t } from "./engineCallFileType-D7QVFOac.js";
|
|
3
|
+
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, openBlock as u, resolveComponent as d, toDisplayString as f, unref as p, withCtx as m } from "vue";
|
|
4
|
+
//#region src/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var h = { class: "wt-screen-recordings-action" }, g = { class: "wt-screen-recordings-action__option" }, _ = /*#__PURE__*/ e(/* @__PURE__ */ l({
|
|
6
|
+
__name: "wt-screen-recordings-action",
|
|
7
|
+
props: { files: {} },
|
|
8
|
+
emits: ["set-video"],
|
|
9
|
+
setup(e, { emit: l }) {
|
|
10
|
+
let _ = e, v = l, y = n(() => _?.files?.[t.FileTypeScreensharing]?.map(({ name: e, id: t, mimeType: n, type: r }) => ({
|
|
11
|
+
text: e,
|
|
12
|
+
id: t,
|
|
13
|
+
mimeType: n,
|
|
14
|
+
type: r
|
|
15
|
+
}))), b = ({ option: e }) => {
|
|
16
|
+
e.id && e.type === t.FileTypeScreensharing && v("set-video", e);
|
|
17
|
+
};
|
|
18
|
+
return (e, t) => {
|
|
19
|
+
let n = d("wt-icon-btn"), l = d("wt-icon"), _ = d("wt-context-menu");
|
|
20
|
+
return u(), a("div", h, [c(_, {
|
|
21
|
+
options: y.value,
|
|
22
|
+
"max-width": "400px",
|
|
23
|
+
onClick: b
|
|
24
|
+
}, {
|
|
25
|
+
activator: m(({ toggle: e }) => [y.value?.length ? (u(), r(n, {
|
|
26
|
+
key: 0,
|
|
27
|
+
icon: "preview-tag-video",
|
|
28
|
+
onClick: e
|
|
29
|
+
}, null, 8, ["onClick"])) : i("", !0)]),
|
|
30
|
+
option: m(({ text: e }) => [o("div", g, [c(l, { icon: "preview-tag-video" }), s(" " + f(e), 1)])]),
|
|
31
|
+
_: 1
|
|
32
|
+
}, 8, ["options"]), o("p", null, f(y.value?.length || p("-")), 1)]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}), [["__scopeId", "data-v-a1fa5099"]]);
|
|
36
|
+
//#endregion
|
|
37
|
+
export { _ as default };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { t } from "./useValidation-DG0tifBv.js";
|
|
3
|
+
import { t as n } from "./debounce-DrmECuJ2.js";
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderSlot as p, resolveComponent as m, resolveDirective as h, toDisplayString as g, toRefs as _, unref as v, withCtx as y, withDirectives as b } from "vue";
|
|
5
|
+
//#region src/components/wt-search-bar/wt-search-bar.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var x = { class: "wt-search-bar__icon-controls" }, S = /*#__PURE__*/ e(/* @__PURE__ */ u({
|
|
7
|
+
__name: "wt-search-bar",
|
|
8
|
+
props: {
|
|
9
|
+
v: { type: Object },
|
|
10
|
+
customValidators: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
value: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
placeholder: { type: String },
|
|
19
|
+
hint: {
|
|
20
|
+
type: String,
|
|
21
|
+
description: "Adds hint icon + tooltip with text, passed as \"hint\" prop"
|
|
22
|
+
},
|
|
23
|
+
searchMode: { type: [String, Object] },
|
|
24
|
+
searchModeOptions: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: () => []
|
|
27
|
+
},
|
|
28
|
+
fullWidth: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: [
|
|
34
|
+
"input",
|
|
35
|
+
"search",
|
|
36
|
+
"enter",
|
|
37
|
+
"update:search-mode",
|
|
38
|
+
"change:search-mode"
|
|
39
|
+
],
|
|
40
|
+
setup(e, { emit: u }) {
|
|
41
|
+
let S = e, C = u, { v: w, customValidators: T } = _(S), { invalid: E } = t({
|
|
42
|
+
v: w,
|
|
43
|
+
customValidators: T
|
|
44
|
+
}), D = r(() => E.value ? "error" : "default"), O = r(() => S.value || S.searchMode || S.hint), k = n((e) => {
|
|
45
|
+
C("search", e);
|
|
46
|
+
}, 1e3);
|
|
47
|
+
function A(e) {
|
|
48
|
+
C("input", e), k(e);
|
|
49
|
+
}
|
|
50
|
+
function j(e) {
|
|
51
|
+
e.key === "Enter" ? (k(e.target.value), e.preventDefault()) : e.key === "Esc" && (A(""), e.preventDefault());
|
|
52
|
+
}
|
|
53
|
+
function M({ option: e }) {
|
|
54
|
+
C("update:search-mode", e), C("change:search-mode", e);
|
|
55
|
+
}
|
|
56
|
+
return (t, n) => {
|
|
57
|
+
let r = m("wt-icon"), u = m("wt-icon-btn"), _ = m("wt-hint"), S = m("wt-radio"), C = m("wt-context-menu"), k = m("wt-input-text"), N = h("tooltip");
|
|
58
|
+
return f(), i(k, {
|
|
59
|
+
"model-value": e.value,
|
|
60
|
+
placeholder: e.placeholder || t.$t("webitelUI.searchBar.placeholder"),
|
|
61
|
+
invalid: v(E),
|
|
62
|
+
class: d(["wt-search-bar", { "wt-search-bar--full-width": e.fullWidth }]),
|
|
63
|
+
type: "search",
|
|
64
|
+
v: v(w),
|
|
65
|
+
"custom-validators": v(T),
|
|
66
|
+
"onUpdate:modelValue": A,
|
|
67
|
+
onKeyup: j
|
|
68
|
+
}, s({
|
|
69
|
+
prefix: y(() => [l(r, {
|
|
70
|
+
color: D.value,
|
|
71
|
+
icon: e.searchMode?.icon || "search"
|
|
72
|
+
}, null, 8, ["color", "icon"])]),
|
|
73
|
+
_: 2
|
|
74
|
+
}, [O.value ? {
|
|
75
|
+
name: "suffix",
|
|
76
|
+
fn: y(() => [o("div", x, [
|
|
77
|
+
e.value ? (f(), i(u, {
|
|
78
|
+
key: 0,
|
|
79
|
+
color: D.value,
|
|
80
|
+
class: "wt-search-bar__reset-icon-btn",
|
|
81
|
+
icon: "close",
|
|
82
|
+
onClick: n[0] ||= (e) => A("")
|
|
83
|
+
}, null, 8, ["color"])) : a("", !0),
|
|
84
|
+
e.hint ? (f(), i(_, {
|
|
85
|
+
key: 1,
|
|
86
|
+
"icon-color": D.value
|
|
87
|
+
}, {
|
|
88
|
+
default: y(() => [c(g(e.hint), 1)], void 0, !0),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["icon-color"])) : a("", !0),
|
|
91
|
+
e.searchMode ? (f(), i(C, {
|
|
92
|
+
key: 2,
|
|
93
|
+
options: e.searchModeOptions,
|
|
94
|
+
onClick: M
|
|
95
|
+
}, {
|
|
96
|
+
activator: y(({ toggle: e }) => [b(l(u, {
|
|
97
|
+
color: v(E) ? "error" : "default",
|
|
98
|
+
icon: "filter",
|
|
99
|
+
onClick: e
|
|
100
|
+
}, null, 8, ["color", "onClick"]), [[N, t.$t("webitelUI.searchBar.settingsHint")]])]),
|
|
101
|
+
option: y(({ value: t, text: n }) => [l(S, {
|
|
102
|
+
label: n,
|
|
103
|
+
selected: (typeof e.searchMode == "string" ? e.searchMode : e.searchMode.value) === t,
|
|
104
|
+
value: !0
|
|
105
|
+
}, null, 8, ["label", "selected"])]),
|
|
106
|
+
_: 1
|
|
107
|
+
}, 8, ["options"])) : a("", !0),
|
|
108
|
+
p(t.$slots, "additional-actions", { invalid: v(E) }, void 0, !0)
|
|
109
|
+
])]),
|
|
110
|
+
key: "0"
|
|
111
|
+
} : void 0]), 1032, [
|
|
112
|
+
"model-value",
|
|
113
|
+
"placeholder",
|
|
114
|
+
"invalid",
|
|
115
|
+
"class",
|
|
116
|
+
"v",
|
|
117
|
+
"custom-validators"
|
|
118
|
+
]);
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
}), [["__scopeId", "data-v-0b6f18a7"]]);
|
|
122
|
+
//#endregion
|
|
123
|
+
export { S as default };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { t } from "./vue-i18n-B8Px6VcD.js";
|
|
3
|
+
import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, mergeProps as l, normalizeClass as u, openBlock as d, renderList as f, renderSlot as p, resolveComponent as m, resolveDirective as h, toDisplayString as g, unref as _, withCtx as v, withDirectives as y } from "vue";
|
|
4
|
+
//#region src/components/on-demand/wt-selection-popup/wt-selection-popup.vue
|
|
5
|
+
var b = { class: "wt-selection-popup__options" }, x = ["onClick"], S = { class: "wt-selection-popup__item-header typo-subtitle-2" }, C = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "popup-options__item-text"
|
|
8
|
+
}, w = /*#__PURE__*/ e({
|
|
9
|
+
__name: "wt-selection-popup",
|
|
10
|
+
props: {
|
|
11
|
+
title: { type: String },
|
|
12
|
+
selected: { type: Object },
|
|
13
|
+
options: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: () => []
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
emits: [
|
|
19
|
+
"change",
|
|
20
|
+
"add",
|
|
21
|
+
"close"
|
|
22
|
+
],
|
|
23
|
+
setup(e, { emit: w }) {
|
|
24
|
+
let T = e, E = w, { t: D } = t();
|
|
25
|
+
function O() {
|
|
26
|
+
E("add", T.selected);
|
|
27
|
+
}
|
|
28
|
+
function k() {
|
|
29
|
+
E("close");
|
|
30
|
+
}
|
|
31
|
+
function A(e) {
|
|
32
|
+
E("change", e);
|
|
33
|
+
}
|
|
34
|
+
return (t, w) => {
|
|
35
|
+
let T = m("wt-icon"), E = m("wt-icon-btn"), j = m("wt-button"), M = m("wt-popup"), N = h("tooltip");
|
|
36
|
+
return d(), r(M, l(t.$attrs, {
|
|
37
|
+
class: "wt-selection-popup",
|
|
38
|
+
overflow: "",
|
|
39
|
+
size: "sm"
|
|
40
|
+
}, { onClose: k }), {
|
|
41
|
+
title: v(() => [s(g(e.title), 1)]),
|
|
42
|
+
main: v(() => [o("ul", b, [(d(!0), a(n, null, f(e.options, (n, s) => (d(), a("li", {
|
|
43
|
+
key: s,
|
|
44
|
+
class: u([{ active: n.value === e.selected.value }, "wt-selection-popup__item-wrapper"]),
|
|
45
|
+
onClick: (e) => A(n)
|
|
46
|
+
}, [p(t.$slots, "option", { option: n }, () => [
|
|
47
|
+
n.icon ? (d(), r(T, {
|
|
48
|
+
key: 0,
|
|
49
|
+
icon: n.icon,
|
|
50
|
+
size: "sm"
|
|
51
|
+
}, null, 8, ["icon"])) : i("", !0),
|
|
52
|
+
o("h4", S, g(n.title), 1),
|
|
53
|
+
n.description ? (d(), a("p", C, g(n.description), 1)) : i("", !0),
|
|
54
|
+
n.description ? y((d(), r(E, {
|
|
55
|
+
key: 2,
|
|
56
|
+
color: "info",
|
|
57
|
+
icon: "rounded-info"
|
|
58
|
+
}, null, 512)), [[N, n.description]]) : i("", !0)
|
|
59
|
+
], !0)], 10, x))), 128))]), p(t.$slots, "after-section", {}, void 0, !0)]),
|
|
60
|
+
actions: v(() => [c(j, {
|
|
61
|
+
disabled: !e.selected,
|
|
62
|
+
onClick: O
|
|
63
|
+
}, {
|
|
64
|
+
default: v(() => [s(g(_(D)("reusable.create")), 1)], void 0, !0),
|
|
65
|
+
_: 1
|
|
66
|
+
}, 8, ["disabled"]), c(j, {
|
|
67
|
+
color: "secondary",
|
|
68
|
+
onClick: k
|
|
69
|
+
}, {
|
|
70
|
+
default: v(() => [s(g(_(D)("reusable.close")), 1)], void 0, !0),
|
|
71
|
+
_: 1
|
|
72
|
+
})]),
|
|
73
|
+
_: 3
|
|
74
|
+
}, 16);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}, [["__scopeId", "data-v-d7ed7032"]]);
|
|
78
|
+
//#endregion
|
|
79
|
+
export { w as default };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { n as e } from "./components-B4aAS7wB.js";
|
|
2
|
+
import { t } from "./vue-i18n-B8Px6VcD.js";
|
|
3
|
+
import { n, r } from "./clients-A6MHYfOX.js";
|
|
4
|
+
import { createBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, inject as c, mergeProps as l, onMounted as u, openBlock as d, ref as f, resolveComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/on-demand/wt-send-message-popup/wt-send-message-popup.vue
|
|
7
|
+
var _ = /* @__PURE__ */ s({
|
|
8
|
+
__name: "wt-send-message-popup",
|
|
9
|
+
props: {
|
|
10
|
+
chatItem: {},
|
|
11
|
+
userId: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["close"],
|
|
14
|
+
setup(s, { emit: _ }) {
|
|
15
|
+
let v = s, y = _, b = c("$eventBus"), { t: x } = t(), S = f({
|
|
16
|
+
gateway: v.chatItem?.app || {},
|
|
17
|
+
provider: v.chatItem?.protocol || "",
|
|
18
|
+
message: "",
|
|
19
|
+
agentId: null
|
|
20
|
+
});
|
|
21
|
+
async function C(e) {
|
|
22
|
+
let { items: t } = await r.getList({
|
|
23
|
+
...e,
|
|
24
|
+
userId: v.userId
|
|
25
|
+
});
|
|
26
|
+
S.value.agentId = t[0]?.id;
|
|
27
|
+
}
|
|
28
|
+
let w = async () => {
|
|
29
|
+
let e = await n.patch({
|
|
30
|
+
peers: [{
|
|
31
|
+
via: S.value.gateway.id,
|
|
32
|
+
id: v.chatItem?.externalId,
|
|
33
|
+
type: S.value.provider
|
|
34
|
+
}],
|
|
35
|
+
variables: { agentId: S.value.agentId },
|
|
36
|
+
message: { text: S.value.message }
|
|
37
|
+
});
|
|
38
|
+
e.failure && b.$emit("notification", {
|
|
39
|
+
type: "error",
|
|
40
|
+
text: e.failure[0].error.message
|
|
41
|
+
}), y("close");
|
|
42
|
+
}, T = (e) => {
|
|
43
|
+
S.value.message += e, document.querySelector("textarea").focus();
|
|
44
|
+
};
|
|
45
|
+
return u(async () => await C()), (t, n) => {
|
|
46
|
+
let r = p("wt-textarea"), s = p("wt-button"), c = p("wt-popup");
|
|
47
|
+
return d(), i(c, l(t.$attrs, {
|
|
48
|
+
class: "wt-send-message-popup",
|
|
49
|
+
overflow: "",
|
|
50
|
+
onClose: n[1] ||= (e) => y("close")
|
|
51
|
+
}), {
|
|
52
|
+
header: g(() => [a(m(h(x)("reusable.sendMessage")), 1)]),
|
|
53
|
+
main: g(() => [o(r, {
|
|
54
|
+
"model-value": S.value.message,
|
|
55
|
+
"onUpdate:modelValue": n[0] ||= (e) => S.value.message = e,
|
|
56
|
+
placeholder: h(x)("objects.chat.draftPlaceholder"),
|
|
57
|
+
onEnter: w
|
|
58
|
+
}, null, 8, ["model-value", "placeholder"])]),
|
|
59
|
+
actions: g(() => [o(h(e), {
|
|
60
|
+
filled: "",
|
|
61
|
+
rounded: !1,
|
|
62
|
+
class: "wt-send-message-popup__emoji",
|
|
63
|
+
onInsertEmoji: T
|
|
64
|
+
}), o(s, {
|
|
65
|
+
icon: "chat-send",
|
|
66
|
+
color: "secondary",
|
|
67
|
+
disabled: !S.value.message,
|
|
68
|
+
wide: "",
|
|
69
|
+
onClick: w
|
|
70
|
+
}, null, 8, ["disabled"])]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 16);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
//#endregion
|
|
77
|
+
export { _ as default };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { r as e } from "./chunk-CY3AvKd6.js";
|
|
2
|
+
import { computed as t, createBlock as n, defineComponent as r, mergeModels as i, normalizeStyle as a, openBlock as o, resolveComponent as s, useModel as c } from "vue";
|
|
3
|
+
//#region src/components/wt-slider/wt-slider.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var l = /*@__PURE__*/ r({
|
|
5
|
+
__name: "wt-slider",
|
|
6
|
+
props: /*@__PURE__*/ i({
|
|
7
|
+
disabled: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: !1
|
|
10
|
+
},
|
|
11
|
+
vertical: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
min: { default: 0 },
|
|
16
|
+
max: { default: 100 },
|
|
17
|
+
step: { default: 1 },
|
|
18
|
+
height: { default: 100 },
|
|
19
|
+
width: { default: void 0 },
|
|
20
|
+
modelValue: {},
|
|
21
|
+
defaultValue: {},
|
|
22
|
+
name: {},
|
|
23
|
+
orientation: {},
|
|
24
|
+
range: { type: Boolean },
|
|
25
|
+
invalid: { type: Boolean },
|
|
26
|
+
tabindex: {},
|
|
27
|
+
ariaLabelledby: {},
|
|
28
|
+
ariaLabel: {},
|
|
29
|
+
formControl: {},
|
|
30
|
+
dt: {},
|
|
31
|
+
pt: {},
|
|
32
|
+
ptOptions: {},
|
|
33
|
+
unstyled: { type: Boolean }
|
|
34
|
+
}, {
|
|
35
|
+
modelValue: {},
|
|
36
|
+
modelModifiers: {}
|
|
37
|
+
}),
|
|
38
|
+
emits: ["update:modelValue"],
|
|
39
|
+
setup(e) {
|
|
40
|
+
let r = e, i = c(e, "modelValue"), l = t(() => r.vertical ? "vertical" : "horizontal");
|
|
41
|
+
return (t, r) => {
|
|
42
|
+
let c = s("p-slider");
|
|
43
|
+
return o(), n(c, {
|
|
44
|
+
modelValue: i.value,
|
|
45
|
+
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
46
|
+
disabled: e.disabled,
|
|
47
|
+
max: e.max,
|
|
48
|
+
min: e.min,
|
|
49
|
+
step: e.step,
|
|
50
|
+
orientation: l.value,
|
|
51
|
+
style: a({
|
|
52
|
+
height: e.vertical ? `${e.height}px` : "",
|
|
53
|
+
width: !e.vertical && e.width ? `${e.width}px` : ""
|
|
54
|
+
})
|
|
55
|
+
}, null, 8, [
|
|
56
|
+
"modelValue",
|
|
57
|
+
"disabled",
|
|
58
|
+
"max",
|
|
59
|
+
"min",
|
|
60
|
+
"step",
|
|
61
|
+
"orientation",
|
|
62
|
+
"style"
|
|
63
|
+
]);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
}), u = /* @__PURE__ */ e({ default: () => d }), d = l;
|
|
67
|
+
//#endregion
|
|
68
|
+
export { u as n, d as t };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { n as e, t } from "./dist-05Bf47Wg.js";
|
|
2
|
+
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, inject as f, openBlock as p, provide as m, renderList as h, resolveComponent as g, toDisplayString as _, withCtx as v } from "vue";
|
|
4
|
+
t(), Array.isArray;
|
|
5
|
+
var y = /* @__PURE__ */ function(e) {
|
|
6
|
+
return e[e.MATCHER_NOT_FOUND = 1] = "MATCHER_NOT_FOUND", e[e.NAVIGATION_GUARD_REDIRECT = 2] = "NAVIGATION_GUARD_REDIRECT", e[e.NAVIGATION_ABORTED = 4] = "NAVIGATION_ABORTED", e[e.NAVIGATION_CANCELLED = 8] = "NAVIGATION_CANCELLED", e[e.NAVIGATION_DUPLICATED = 16] = "NAVIGATION_DUPLICATED", e;
|
|
7
|
+
}({});
|
|
8
|
+
Symbol(e.env.NODE_ENV === "production" ? "" : "navigation failure"), y.MATCHER_NOT_FOUND, y.NAVIGATION_GUARD_REDIRECT, y.NAVIGATION_ABORTED, y.NAVIGATION_CANCELLED, y.NAVIGATION_DUPLICATED, Symbol(e.env.NODE_ENV === "production" ? "" : "router view location matched"), Symbol(e.env.NODE_ENV === "production" ? "" : "router view depth");
|
|
9
|
+
var b = Symbol(e.env.NODE_ENV === "production" ? "" : "router");
|
|
10
|
+
Symbol(e.env.NODE_ENV === "production" ? "" : "route location"), Symbol(e.env.NODE_ENV === "production" ? "" : "router view location"), t(), (/* @__PURE__ */ function(e) {
|
|
11
|
+
return e[e.Static = 0] = "Static", e[e.Param = 1] = "Param", e[e.Group = 2] = "Group", e;
|
|
12
|
+
}({})).Static;
|
|
13
|
+
function x() {
|
|
14
|
+
return f(b);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/on-demand/wt-start-page/components/start-page-card.vue
|
|
18
|
+
var S = { class: "start-page-card" }, C = { class: "typo-heading-4 start-page-card__header" }, w = { class: "start-page-card__main-section" }, T = ["alt", "src"], E = { class: "typo-body-1 start-page-card__description" }, D = /*#__PURE__*/ n({
|
|
19
|
+
__name: "start-page-card",
|
|
20
|
+
props: { card: {
|
|
21
|
+
type: Object,
|
|
22
|
+
required: !0
|
|
23
|
+
} },
|
|
24
|
+
setup(e) {
|
|
25
|
+
let t = x(), n = e, r = () => t.push(n.card.route);
|
|
26
|
+
return (t, n) => {
|
|
27
|
+
let i = g("wt-icon"), d = g("wt-button");
|
|
28
|
+
return p(), s("article", S, [
|
|
29
|
+
c("header", C, [e.card.disabled ? (p(), a(i, {
|
|
30
|
+
key: 0,
|
|
31
|
+
icon: "lock"
|
|
32
|
+
})) : o("", !0), l(" " + _(e.card.name), 1)]),
|
|
33
|
+
c("section", w, [c("img", {
|
|
34
|
+
alt: e.card.name,
|
|
35
|
+
src: e.card.image
|
|
36
|
+
}, null, 8, T), c("p", E, _(e.card.text), 1)]),
|
|
37
|
+
c("footer", null, [u(d, {
|
|
38
|
+
disabled: e.card.disabled,
|
|
39
|
+
class: "start-page-card__button",
|
|
40
|
+
color: "secondary",
|
|
41
|
+
wide: "",
|
|
42
|
+
onClick: r
|
|
43
|
+
}, {
|
|
44
|
+
default: v(() => [l(_(t.$t("reusable.open")), 1)], void 0, !0),
|
|
45
|
+
_: 1
|
|
46
|
+
}, 8, ["disabled"])])
|
|
47
|
+
]);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}, [["__scopeId", "data-v-e4560b27"]]), O = { class: "start-page-logo" }, k = ["src"], A = /*#__PURE__*/ n({
|
|
51
|
+
__name: "start-page-logo",
|
|
52
|
+
props: { logo: {
|
|
53
|
+
type: String,
|
|
54
|
+
required: !0
|
|
55
|
+
} },
|
|
56
|
+
setup(e) {
|
|
57
|
+
return (t, n) => (p(), s("div", O, [c("img", { src: e.logo }, null, 8, k)]));
|
|
58
|
+
}
|
|
59
|
+
}, [["__scopeId", "data-v-187dc1b4"]]), j = { class: "wt-start-page" }, M = { class: "wt-start-page__wrapper" }, N = /*#__PURE__*/ n(/* @__PURE__ */ d({
|
|
60
|
+
__name: "wt-start-page",
|
|
61
|
+
props: {
|
|
62
|
+
nav: {},
|
|
63
|
+
appLogo: {},
|
|
64
|
+
darkMode: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: !1
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
setup(e) {
|
|
70
|
+
let t = e;
|
|
71
|
+
m("darkMode", t.darkMode);
|
|
72
|
+
let n = i(() => t.darkMode ? t.appLogo.dark : t.appLogo.light), l = i(() => t.nav.map((e) => ({
|
|
73
|
+
...e,
|
|
74
|
+
image: t.darkMode ? e.images.dark : e.images.light
|
|
75
|
+
})));
|
|
76
|
+
return (t, i) => (p(), s("div", j, [e.appLogo ? (p(), a(A, {
|
|
77
|
+
key: 0,
|
|
78
|
+
logo: n.value
|
|
79
|
+
}, null, 8, ["logo"])) : o("", !0), c("div", M, [(p(!0), s(r, null, h(l.value, (e) => (p(), a(D, {
|
|
80
|
+
key: e.value,
|
|
81
|
+
card: e
|
|
82
|
+
}, null, 8, ["card"]))), 128))])]));
|
|
83
|
+
}
|
|
84
|
+
}), [["__scopeId", "data-v-85dd1b85"]]);
|
|
85
|
+
//#endregion
|
|
86
|
+
export { N as default };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { t } from "./AgentStatus.enum-C3IGHtvR.js";
|
|
3
|
+
import { t as n } from "./convertDuration-1K7fuEpO.js";
|
|
4
|
+
import { createBlock as r, createVNode as i, openBlock as a, resolveComponent as o, withCtx as s } from "vue";
|
|
5
|
+
//#region src/components/wt-status-select/_internals/StatusOptions.lookup.js
|
|
6
|
+
var c = [
|
|
7
|
+
{
|
|
8
|
+
locale: "webitelUI.statusSelect.online",
|
|
9
|
+
color: "success",
|
|
10
|
+
value: t.ONLINE
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
locale: "webitelUI.statusSelect.pause",
|
|
14
|
+
color: "primary",
|
|
15
|
+
value: t.PAUSE
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
locale: "webitelUI.statusSelect.offline",
|
|
19
|
+
color: "disabled",
|
|
20
|
+
value: t.OFFLINE
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
locale: "webitelUI.statusSelect.breakOut",
|
|
24
|
+
color: "break-out",
|
|
25
|
+
value: t.BREAK_OUT
|
|
26
|
+
}
|
|
27
|
+
], l = {
|
|
28
|
+
name: "WtStatusSelect",
|
|
29
|
+
model: {
|
|
30
|
+
prop: "status",
|
|
31
|
+
event: "change"
|
|
32
|
+
},
|
|
33
|
+
props: {
|
|
34
|
+
status: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: t.OFFLINE
|
|
37
|
+
},
|
|
38
|
+
statusDuration: {
|
|
39
|
+
type: [String, Number],
|
|
40
|
+
default: 0
|
|
41
|
+
},
|
|
42
|
+
options: { type: Array }
|
|
43
|
+
},
|
|
44
|
+
emits: ["change", "closed"],
|
|
45
|
+
computed: {
|
|
46
|
+
selectedOption() {
|
|
47
|
+
return this.statusOptions.find((e) => e.value === this.status);
|
|
48
|
+
},
|
|
49
|
+
statusOptions() {
|
|
50
|
+
return this.options ? this.options : c.map((e) => ({
|
|
51
|
+
...e,
|
|
52
|
+
text: this.$t(e.locale)
|
|
53
|
+
}));
|
|
54
|
+
},
|
|
55
|
+
availableOptions() {
|
|
56
|
+
return this.statusOptions.reduce((e, n) => (this.status === n.value && n.value !== t.PAUSE || n.value === t.BREAK_OUT || e.push(n), e), []);
|
|
57
|
+
},
|
|
58
|
+
duration() {
|
|
59
|
+
return typeof this.statusDuration == "string" ? this.statusDuration : this.statusDuration === void 0 ? this.selectedOption.text : n(this.statusDuration);
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
methods: {
|
|
63
|
+
inputHandler(e) {
|
|
64
|
+
this.$emit("change", e.value);
|
|
65
|
+
},
|
|
66
|
+
closedHandler(e) {
|
|
67
|
+
this.$emit("closed", e);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
function u(e, t, n, c, l, u) {
|
|
72
|
+
let d = o("wt-indicator"), f = o("wt-select");
|
|
73
|
+
return a(), r(f, {
|
|
74
|
+
clearable: !1,
|
|
75
|
+
options: u.availableOptions,
|
|
76
|
+
searchable: !1,
|
|
77
|
+
value: u.selectedOption,
|
|
78
|
+
class: "wt-status-select",
|
|
79
|
+
"track-by": "value",
|
|
80
|
+
onClosed: u.closedHandler,
|
|
81
|
+
onInput: u.inputHandler
|
|
82
|
+
}, {
|
|
83
|
+
singleLabel: s(({ option: e }) => [i(d, {
|
|
84
|
+
color: e.color,
|
|
85
|
+
text: u.duration
|
|
86
|
+
}, null, 8, ["color", "text"])]),
|
|
87
|
+
option: s(({ option: e }) => [i(d, {
|
|
88
|
+
color: e.color,
|
|
89
|
+
text: e.text
|
|
90
|
+
}, null, 8, ["color", "text"])]),
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, [
|
|
93
|
+
"options",
|
|
94
|
+
"value",
|
|
95
|
+
"onClosed",
|
|
96
|
+
"onInput"
|
|
97
|
+
]);
|
|
98
|
+
}
|
|
99
|
+
var d = /*#__PURE__*/ e(l, [["render", u], ["__scopeId", "data-v-580212cb"]]);
|
|
100
|
+
//#endregion
|
|
101
|
+
export { d as default };
|