@webitel/ui-sdk 26.4.17 → 26.4.18
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/displayText-Cbh4IOfM.js +5 -0
- package/dist/{index-B_bOPX3o.js → index-B0AYwz58.js} +1 -1
- package/dist/{index-eEFER0lI.js → index-Dvhbo446.js} +1 -1
- package/dist/{install-C_4PcYy4.js → install-CrJnxpPS.js} +1729 -1726
- package/dist/{isObject-Bc_zejYi.js → isObject-BsWrydYX.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +232 -232
- package/dist/{useVidstackSrc-BjBi-Z6a.js → useVidstackSrc-Bmp2wHly.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-Do_GZqV0.js → vidstack-Bq6c3Bam-N3JOOQyW.js} +3 -3
- package/dist/{vidstack-D2pY00kU-DtEQuJNJ.js → vidstack-D2pY00kU-ByaRFZub.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-BjUme5OE.js → vidstack-DDXt6fpN-H7PZzMEr.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-BUgV5EDC.js → vidstack-D_-9AA6_-BgRVFwPt.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-D5-emHfz.js → vidstack-DqAw8m9J-BODJkoui.js} +1 -1
- package/dist/{vidstack-audio-DmysFuAQ.js → vidstack-audio-Cnpq73DL.js} +2 -2
- package/dist/{vidstack-dash-CF4d8BuX.js → vidstack-dash-Bzo3Gzfd.js} +4 -4
- package/dist/{vidstack-google-cast-CNPyXY9S.js → vidstack-google-cast--giiu8Z5.js} +4 -4
- package/dist/{vidstack-hls-BLaXkLiF.js → vidstack-hls-CrDFf1Gs.js} +4 -4
- package/dist/{vidstack-video-v_RKZWR5.js → vidstack-video-h7Tsw5LU.js} +3 -3
- package/dist/{vidstack-vimeo-BCNYIpmz.js → vidstack-vimeo-CbcdGN2R.js} +4 -4
- package/dist/{vidstack-youtube-C1DaWOJU.js → vidstack-youtube-DKzx3LPK.js} +3 -3
- package/dist/{wt-action-bar-Ckg4xWY1.js → wt-action-bar-GCDVmO0b.js} +1 -1
- package/dist/{wt-button-select-DHqtUP4R.js → wt-button-select-BBsJj7FV.js} +1 -1
- package/dist/{wt-chat-emoji-BVMxNx8W.js → wt-chat-emoji-MhnNs-SG.js} +2 -2
- package/dist/{wt-confirm-dialog-BNjF-amp.js → wt-confirm-dialog-B4J3ZU2r.js} +1 -1
- package/dist/{wt-context-menu-DkK9-qLI.js → wt-context-menu-Cekc6Rva.js} +1 -1
- package/dist/{wt-copy-action-7hL0mEvW.js → wt-copy-action-CT_0bHmt.js} +1 -1
- package/dist/{wt-datepicker-Bvde1_4k.js → wt-datepicker-B513Tw-Z.js} +1 -1
- package/dist/wt-display-chip-items-CMB33VOU.js +47 -0
- package/dist/{wt-dual-panel-C6E7X3c8.js → wt-dual-panel-DjHHFx8Y.js} +1 -1
- package/dist/{wt-dummy-oCvw9ZAO.js → wt-dummy-BivOEKRK.js} +1 -1
- package/dist/{wt-error-page-BWRGUdsV.js → wt-error-page-krwX0484.js} +1 -1
- package/dist/{wt-expansion-card-DqdyzBFB.js → wt-expansion-card-Mrne6YQJ.js} +1 -1
- package/dist/{wt-expansion-panel-CGYB7-8V.js → wt-expansion-panel-D0SABYA1.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-BdWYuFBU.js → wt-filters-panel-wrapper-Dffe4cS8.js} +1 -1
- package/dist/{wt-galleria-BBSNSwsR.js → wt-galleria-CB3UNqGT.js} +1 -1
- package/dist/{wt-navigation-menu-CubDPnaE.js → wt-navigation-menu-CozB-VN3.js} +1 -1
- package/dist/{wt-notifications-bar-B9gUZbnG.js → wt-notifications-bar-CBv9RpW3.js} +2 -2
- package/dist/{wt-pagination-Dafsnmhz.js → wt-pagination-CrnHm3Ei.js} +1 -1
- package/dist/{wt-player-DxvKDEYJ.js → wt-player-Be7Ts4oe.js} +2 -2
- package/dist/wt-screen-recordings-action-VJpYH40a.js +55 -0
- package/dist/{wt-search-bar-BSTKSDBo.js → wt-search-bar-BNUpiOyg.js} +1 -1
- package/dist/{wt-selection-popup-D_mDRYjd.js → wt-selection-popup-DZG_s5cn.js} +1 -1
- package/dist/{wt-start-page-BYGMWDsS.js → wt-start-page-B1Ya211Z.js} +1 -1
- package/dist/{wt-status-select-BDFd1JE-.js → wt-status-select-ByEBtG_Z.js} +1 -1
- package/dist/{wt-stepper-Db5aEz47.js → wt-stepper-Bke8hGIN.js} +1 -1
- package/dist/{wt-table-actions-BTmBjf1Q.js → wt-table-actions-D2QF78Jq.js} +1 -1
- package/dist/{wt-table-column-select-abILUxUr.js → wt-table-column-select-BtcIByjb.js} +2 -2
- package/dist/{wt-table-92BKexHp.js → wt-table-rT0puxyU.js} +1 -1
- package/dist/{wt-tabs-B21sWbPs.js → wt-tabs-BIn8m45h.js} +1 -1
- package/dist/{wt-tags-input-DNA22dSR.js → wt-tags-input-Bz3T5KC7.js} +2 -2
- package/dist/{wt-timepicker-CgowHF74.js → wt-timepicker-CuMYCWnA.js} +1 -1
- package/dist/{wt-tree-CvHw827i.js → wt-tree-DftQx0vm.js} +2 -2
- package/dist/{wt-tree-table-DWgEjAUG.js → wt-tree-table-Cqt8iSLj.js} +1 -1
- package/dist/{wt-type-extension-value-input-BvHowj58.js → wt-type-extension-value-input-rX_qRFjQ.js} +2 -2
- package/dist/{wt-vidstack-player-BnK8NLH3.js → wt-vidstack-player-CWmoXIAG.js} +10 -10
- package/package.json +5 -2
- package/src/api/clients/users/__tests__/users.spec.js +1 -1
- package/src/components/index.js +8 -0
- package/src/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue +72 -0
- package/src/components/wt-button/__tests__/WtButton.spec.js +10 -5
- package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +13 -16
- package/src/components/wt-checkbox/__tests__/WtCheckbox.spec.js +6 -2
- package/src/components/wt-chip/__tests__/WtChip.spec.js +3 -3
- package/src/components/wt-filters-panel-wrapper/__tests__/WtFiltersPanelWrapper.spec.js +4 -17
- package/src/components/wt-icon/__tests__/WtIcon.spec.js +19 -2
- package/src/components/wt-pagination/__tests__/WtPagination.spec.js +80 -16
- package/src/components/wt-radio/__tests__/WtRadio.spec.js +8 -2
- package/src/components/wt-rounded-action/__tests__/WtRoundedAction.spec.js +98 -0
- package/src/components/wt-switcher/__tests__/WtSwitcher.spec.js +9 -11
- package/src/components/wt-textarea/__tests__/WtTextarea.spec.js +2 -2
- package/src/components/wt-time-input/__tests__/WtTimeInput.spec.js +18 -1
- package/src/components/wt-timepicker/__tests__/WtTimepicker.spec.js +9 -15
- package/src/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +60 -80
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +6 -47
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-pause-cause-popup.spec.js +31 -3
- package/src/modules/Appearance/components/__tests__/wt-dark-mode-switcher.spec.js +16 -10
- package/src/modules/AuditForm/components/form-questions/options/__tests__/audit-form-question-options.spec.js +4 -6
- package/src/modules/AuditForm/components/form-questions/score/__tests__/audit-form-question-score.spec.js +2 -2
- package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +7 -51
- package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +12 -8
- package/types/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue.d.ts +10 -0
- package/dist/wt-display-chip-items-DPoEtUZ-.js +0 -46
- package/src/components/wt-copy-action/__tests__/WtCopyAction.spec.js +0 -15
- package/src/components/wt-divider/__tests__/WtDivider.spec.js +0 -10
- package/src/components/wt-slider/__tests__/WtSlider.spec.js +0 -10
- package/src/components/wt-table/__tests__/WtTable.spec.js +0 -140
- package/src/modules/Filters/components/__tests__/filter-pagination.spec.js +0 -109
- package/src/modules/Filters/components/__tests__/filter-table-fields.spec.js +0 -112
- package/types/components/wt-copy-action/__tests__/WtCopyAction.spec.d.ts +0 -1
- package/types/components/wt-divider/__tests__/WtDivider.spec.d.ts +0 -1
- package/types/components/wt-slider/__tests__/WtSlider.spec.d.ts +0 -1
- package/types/components/wt-table/__tests__/WtTable.spec.d.ts +0 -1
- package/types/modules/Filters/components/__tests__/filter-pagination.spec.d.ts +0 -1
- package/types/modules/Filters/components/__tests__/filter-table-fields.spec.d.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as v, toRef as C, resolveComponent as b, createElementBlock as y, openBlock as _, normalizeClass as i, createElementVNode as p, withDirectives as z, withKeys as l, unref as e, renderSlot as d, createVNode as c, withCtx as E, vShow as k, normalizeProps as $, guardReactiveProps as g } from "vue";
|
|
2
|
-
import { C as B, W as K, _ as S } from "./install-
|
|
2
|
+
import { C as B, W as K, _ as S } from "./install-CrJnxpPS.js";
|
|
3
3
|
import { u as D } from "./useExpansion-BrQ40HiR.js";
|
|
4
4
|
const N = { class: "wt-expansion-card-body" }, P = /* @__PURE__ */ v({
|
|
5
5
|
__name: "wt-expansion-card",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as v, toRef as x, resolveComponent as _, createElementBlock as C, openBlock as y, normalizeClass as p, createElementVNode as l, withDirectives as z, withKeys as b, unref as e, renderSlot as r, createVNode as d, normalizeProps as h, guardReactiveProps as E, withCtx as g, vShow as $ } from "vue";
|
|
2
2
|
import { u as k } from "./useExpansion-BrQ40HiR.js";
|
|
3
|
-
import { C as B, W as P, _ as S } from "./install-
|
|
3
|
+
import { C as B, W as P, _ as S } from "./install-CrJnxpPS.js";
|
|
4
4
|
const D = { class: "wt-expansion-panel-actions" }, K = { class: "wt-expansion-panel-body" }, N = /* @__PURE__ */ v({
|
|
5
5
|
__name: "wt-expansion-panel",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as r, createElementBlock as l, openBlock as o, normalizeClass as i, createElementVNode as s, renderSlot as c, createVNode as p } from "vue";
|
|
2
|
-
import { _ as d } from "./install-
|
|
2
|
+
import { _ as d } from "./install-CrJnxpPS.js";
|
|
3
3
|
const f = {
|
|
4
4
|
name: "FiltersPanelWrapper",
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as k, onMounted as P, onUnmounted as D, useAttrs as Z, computed as $, resolveComponent as w, createBlock as A, openBlock as y, mergeProps as j, unref as i, withCtx as s, createVNode as a, createTextVNode as x, toDisplayString as g, createElementVNode as m, renderSlot as J, defineComponent as K, mergeModels as B, useModel as S, watch as F, nextTick as Q, createElementBlock as L, Fragment as W, createCommentVNode as q, normalizeClass as M, withDirectives as X, vShow as Y } from "vue";
|
|
2
|
-
import { _ as ee, B as te } from "./install-
|
|
2
|
+
import { _ as ee, B as te } from "./install-CrJnxpPS.js";
|
|
3
3
|
const le = () => {
|
|
4
4
|
const e = k(!1), c = () => {
|
|
5
5
|
e.value ? l() : v();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as h, createElementBlock as l, openBlock as c, Fragment as w, renderList as b, createElementVNode as p, withDirectives as N, normalizeClass as C, createVNode as _, createTextVNode as k, toDisplayString as $, renderSlot as S, vShow as E, withCtx as A, ref as L, computed as v } from "vue";
|
|
2
|
-
import { _ as g } from "./install-
|
|
2
|
+
import { _ as g } from "./install-CrJnxpPS.js";
|
|
3
3
|
const V = { class: "nav-menu__category nav-menu-lvl-1" }, B = ["onClick"], D = {
|
|
4
4
|
__name: "nav-menu-lvl-1",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as p, e as _ } from "./isObject-
|
|
1
|
+
import { i as p, e as _ } from "./isObject-BsWrydYX.js";
|
|
2
2
|
import { resolveComponent as v, createElementBlock as d, openBlock as c, createVNode as B, TransitionGroup as $, withCtx as w, Fragment as g, renderList as x, createBlock as N, createTextVNode as b, toDisplayString as y } from "vue";
|
|
3
|
-
import { _ as k } from "./install-
|
|
3
|
+
import { _ as k } from "./install-CrJnxpPS.js";
|
|
4
4
|
const C = (t) => p(t) && (t.entity || t.module), i = (t) => (o) => (...n) => {
|
|
5
5
|
if (C(n[0])) {
|
|
6
6
|
const u = n[0], { app: f = t, entity: s = "", module: r = "" } = u, e = /* @__PURE__ */ new Date(), a = window?.location?.href || "non-browser env";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as u, D as h } from "./install-
|
|
1
|
+
import { _ as u, D as h } from "./install-CrJnxpPS.js";
|
|
2
2
|
import { resolveComponent as r, resolveDirective as g, createElementBlock as m, openBlock as z, createElementVNode as o, createVNode as a, toDisplayString as b, withDirectives as d } from "vue";
|
|
3
3
|
const t = 10, f = {
|
|
4
4
|
name: "WtPagination",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveComponent as w, createElementBlock as l, openBlock as t, createVNode as o, defineComponent as p, toRefs as k, unref as z, normalizeClass as C, createElementVNode as _, createBlock as y, createCommentVNode as u } from "vue";
|
|
2
|
-
import { u as E, T as x } from "./useVidstackSrc-
|
|
3
|
-
import { _ as i, E as f } from "./install-
|
|
2
|
+
import { u as E, T as x } from "./useVidstackSrc-Bmp2wHly.js";
|
|
3
|
+
import { _ as i, E as f } from "./install-CrJnxpPS.js";
|
|
4
4
|
import { _ as b } from "./wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js";
|
|
5
5
|
const S = {}, V = { class: "mute-button" };
|
|
6
6
|
function M(n, r) {
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent as h, computed as x, resolveComponent as i, createElementBlock as y, openBlock as r, createVNode as a, createElementVNode as p, withCtx as l, createTextVNode as C, toDisplayString as _, createBlock as k, createCommentVNode as S, unref as T } from "vue";
|
|
2
|
+
import { E } from "./displayText-Cbh4IOfM.js";
|
|
3
|
+
import { _ as B } from "./install-CrJnxpPS.js";
|
|
4
|
+
const m = {
|
|
5
|
+
FileTypeScreensharing: "file_type_screensharing"
|
|
6
|
+
}, F = { class: "wt-screen-recordings-action" }, N = { class: "wt-screen-recordings-action__option" }, V = /* @__PURE__ */ h({
|
|
7
|
+
__name: "wt-screen-recordings-action",
|
|
8
|
+
props: {
|
|
9
|
+
files: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["set-video"],
|
|
12
|
+
setup(d, { emit: g }) {
|
|
13
|
+
const u = d, v = g, t = x(
|
|
14
|
+
() => u?.files?.[m.FileTypeScreensharing]?.map(
|
|
15
|
+
({ name: e, id: s, mimeType: n, type: o }) => ({
|
|
16
|
+
text: e,
|
|
17
|
+
id: s,
|
|
18
|
+
mimeType: n,
|
|
19
|
+
type: o
|
|
20
|
+
})
|
|
21
|
+
)
|
|
22
|
+
), w = ({ option: e }) => {
|
|
23
|
+
e.id && e.type === m.FileTypeScreensharing && v("set-video", e);
|
|
24
|
+
};
|
|
25
|
+
return (e, s) => {
|
|
26
|
+
const n = i("wt-icon-btn"), o = i("wt-icon"), f = i("wt-context-menu");
|
|
27
|
+
return r(), y("div", F, [
|
|
28
|
+
a(f, {
|
|
29
|
+
options: t.value,
|
|
30
|
+
"max-width": "400px",
|
|
31
|
+
onClick: w
|
|
32
|
+
}, {
|
|
33
|
+
activator: l(({ toggle: c }) => [
|
|
34
|
+
t.value?.length ? (r(), k(n, {
|
|
35
|
+
key: 0,
|
|
36
|
+
icon: "preview-tag-video",
|
|
37
|
+
onClick: c
|
|
38
|
+
}, null, 8, ["onClick"])) : S("", !0)
|
|
39
|
+
]),
|
|
40
|
+
option: l(({ text: c }) => [
|
|
41
|
+
p("div", N, [
|
|
42
|
+
a(o, { icon: "preview-tag-video" }),
|
|
43
|
+
C(" " + _(c), 1)
|
|
44
|
+
])
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
}, 8, ["options"]),
|
|
48
|
+
p("p", null, _(t.value?.length || T(E)), 1)
|
|
49
|
+
]);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}), Y = /* @__PURE__ */ B(V, [["__scopeId", "data-v-a1fa5099"]]);
|
|
53
|
+
export {
|
|
54
|
+
Y as default
|
|
55
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as O, toRefs as $, computed as _, resolveComponent as o, resolveDirective as A, createBlock as s, openBlock as d, unref as a, normalizeClass as E, createSlots as U, withCtx as n, createVNode as p, createElementVNode as j, createCommentVNode as m, renderSlot as z, createTextVNode as K, toDisplayString as W, withDirectives as H } from "vue";
|
|
2
|
-
import { z as P, D as R, _ as T } from "./install-
|
|
2
|
+
import { z as P, D as R, _ as T } from "./install-CrJnxpPS.js";
|
|
3
3
|
const q = { class: "wt-search-bar__icon-controls" }, F = /* @__PURE__ */ O({
|
|
4
4
|
__name: "wt-search-bar",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as i, resolveDirective as $, createBlock as r, openBlock as t, mergeProps as x, withCtx as c, createVNode as f, createTextVNode as a, toDisplayString as s, unref as w, createElementVNode as h, renderSlot as k, createElementBlock as d, Fragment as z, renderList as D, normalizeClass as E, createCommentVNode as p, withDirectives as I } from "vue";
|
|
2
|
-
import { _ as O, B as P } from "./install-
|
|
2
|
+
import { _ as O, B as P } from "./install-CrJnxpPS.js";
|
|
3
3
|
const j = { class: "wt-selection-popup__options" }, A = ["onClick"], F = { class: "wt-selection-popup__item-header typo-subtitle-2" }, L = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "popup-options__item-text"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject as y, resolveComponent as _, createElementBlock as d, openBlock as a, createElementVNode as o, createBlock as u, createCommentVNode as v, createTextVNode as g, toDisplayString as l, createVNode as N, withCtx as f, defineComponent as k, provide as w, computed as m, Fragment as E, renderList as S } from "vue";
|
|
2
|
-
import { N as n, _ as p } from "./install-
|
|
2
|
+
import { N as n, _ as p } from "./install-CrJnxpPS.js";
|
|
3
3
|
n.env.NODE_ENV;
|
|
4
4
|
n.env.NODE_ENV;
|
|
5
5
|
n.env.NODE_ENV;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as u, createBlock as d, openBlock as f, withCtx as c, createVNode as i } from "vue";
|
|
2
|
-
import { _ as h } from "./install-
|
|
2
|
+
import { _ as h } from "./install-CrJnxpPS.js";
|
|
3
3
|
const s = Object.freeze({
|
|
4
4
|
ONLINE: "online",
|
|
5
5
|
PAUSE: "pause",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as i, resolveComponent as w, createElementBlock as s, openBlock as p, createElementVNode as r, renderSlot as n, Fragment as h, renderList as f, createCommentVNode as y, createVNode as S, normalizeClass as C, withCtx as N, createTextVNode as V, toDisplayString as d } from "vue";
|
|
2
|
-
import { _ as k } from "./install-
|
|
2
|
+
import { _ as k } from "./install-CrJnxpPS.js";
|
|
3
3
|
const x = { class: "wt-stepper" }, b = { class: "wt-stepper-header" }, g = { class: "wt-stepper-steps" }, B = { class: "wt-stepper-steps__wrapper" }, E = { class: "wt-stepper-description" }, $ = {
|
|
4
4
|
__name: "wt-stepper",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, computed as l, resolveComponent as p, resolveDirective as g, createElementBlock as S, openBlock as n, renderSlot as y, withDirectives as r, createCommentVNode as u, createVNode as A, createBlock as a, withCtx as B, normalizeClass as I } from "vue";
|
|
2
|
-
import { _ as O } from "./install-
|
|
2
|
+
import { _ as O } from "./install-CrJnxpPS.js";
|
|
3
3
|
const R = { class: "wt-table-actions" }, U = /* @__PURE__ */ C({
|
|
4
4
|
__name: "wt-table-actions",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as C } from "./index-
|
|
1
|
+
import { d as C } from "./index-Dvhbo446.js";
|
|
2
2
|
import { resolveComponent as a, resolveDirective as g, createElementBlock as c, openBlock as r, withDirectives as v, createVNode as s, withCtx as n, createTextVNode as i, toDisplayString as p, createElementVNode as h, normalizeClass as S, Fragment as k, renderList as D, withModifiers as y } from "vue";
|
|
3
|
-
import { _ as P } from "./install-
|
|
3
|
+
import { _ as P } from "./install-CrJnxpPS.js";
|
|
4
4
|
const H = {
|
|
5
5
|
name: "WtTableColumnSelect",
|
|
6
6
|
model: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ee, useSlots as te, useTemplateRef as oe, ref as H, computed as _, onMounted as le, onUnmounted as ae, resolveComponent as L, resolveDirective as re, createBlock as f, openBlock as c, createSlots as U, withCtx as i, createCommentVNode as b, createElementBlock as W, createVNode as V, withModifiers as ne, Fragment as se, renderList as de, createElementVNode as I, normalizeStyle as ie, renderSlot as h, createTextVNode as q, toDisplayString as K, withDirectives as ce, nextTick as ue } from "vue";
|
|
2
|
-
import { B as pe, F as fe, _ as me } from "./install-
|
|
2
|
+
import { B as pe, F as fe, _ as me } from "./install-CrJnxpPS.js";
|
|
3
3
|
const ye = (r, E) => {
|
|
4
4
|
let o = null, p = null, w = null, d = !1;
|
|
5
5
|
const v = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as n, openBlock as r, normalizeClass as o, createElementVNode as a, Fragment as c, renderList as d, renderSlot as f, normalizeProps as h, guardReactiveProps as u, toDisplayString as v, normalizeStyle as m } from "vue";
|
|
2
|
-
import { _ as p } from "./install-
|
|
2
|
+
import { _ as p } from "./install-CrJnxpPS.js";
|
|
3
3
|
const _ = {
|
|
4
4
|
name: "WtTabs",
|
|
5
5
|
model: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as O } from "./index-
|
|
2
|
-
import { G as h, _ as E, C as S, M as z, H as A, J as B } from "./install-
|
|
1
|
+
import { d as O } from "./index-B0AYwz58.js";
|
|
2
|
+
import { G as h, _ as E, C as S, M as z, H as A, J as B } from "./install-CrJnxpPS.js";
|
|
3
3
|
import { resolveComponent as n, resolveDirective as R, createElementBlock as I, openBlock as v, normalizeClass as P, createBlock as p, createCommentVNode as c, createVNode as o, mergeProps as g, withCtx as a, renderSlot as b, normalizeProps as f, guardReactiveProps as $, createTextVNode as d, toDisplayString as r, toHandlers as j, createSlots as q, withDirectives as V, createElementVNode as w, vShow as H, withModifiers as N } from "vue";
|
|
4
4
|
const D = {
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as q, toRefs as R, computed as o, resolveComponent as w, createElementBlock as O, openBlock as d, normalizeClass as j, unref as t, createBlock as r, createCommentVNode as m, createElementVNode as A, mergeProps as F, withCtx as x, renderSlot as G, normalizeProps as J, guardReactiveProps as K, createTextVNode as S, toDisplayString as y, nextTick as Q } from "vue";
|
|
2
|
-
import { B as W, z as X, C as Y, M as Z, _ as ee } from "./install-
|
|
2
|
+
import { B as W, z as X, C as Y, M as Z, _ as ee } from "./install-CrJnxpPS.js";
|
|
3
3
|
const le = { class: "wt-timepicker__wrapper" }, c = 3600, M = 60, ae = /* @__PURE__ */ q({
|
|
4
4
|
__name: "wt-timepicker",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as z, computed as L, ref as J, onMounted as K, watch as Q, resolveComponent as I, createElementBlock as v, openBlock as i, Fragment as x, createElementVNode as D, withDirectives as X, renderSlot as T, createBlock as w, createCommentVNode as b, renderList as A, normalizeClass as M, toDisplayString as O, createVNode as Y, withCtx as W, createSlots as U, normalizeProps as q, guardReactiveProps as F, vShow as Z, unref as N } from "vue";
|
|
2
|
-
import { d as P } from "./index-
|
|
3
|
-
import { W as _, _ as R } from "./install-
|
|
2
|
+
import { d as P } from "./index-B0AYwz58.js";
|
|
3
|
+
import { W as _, _ as R } from "./install-CrJnxpPS.js";
|
|
4
4
|
const ee = { class: "wt-tree-line" }, te = { class: "wt-tree-line__icon-wrapper" }, ae = { class: "wt-tree-line__label typo-body-1" }, le = /* @__PURE__ */ z({
|
|
5
5
|
__name: "wt-tree-line",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as C, unref as B, defineComponent as z, ref as M, onMounted as D, resolveComponent as L, createElementBlock as d, openBlock as l, Fragment as $, createElementVNode as u, createCommentVNode as b, normalizeClass as T, renderList as m, renderSlot as p, createBlock as x, createTextVNode as U, toDisplayString as H, createSlots as W, withCtx as I, toRef as O, normalizeStyle as Q, withModifiers as j, createVNode as q } from "vue";
|
|
2
|
-
import { B as G, P as R, Q as J, _ as F, F as X } from "./install-
|
|
2
|
+
import { B as G, P as R, Q as J, _ as F, F as X } from "./install-CrJnxpPS.js";
|
|
3
3
|
const Y = ({ headers: e }) => {
|
|
4
4
|
const { t: y } = G();
|
|
5
5
|
return {
|
package/dist/{wt-type-extension-value-input-BvHowj58.js → wt-type-extension-value-input-rX_qRFjQ.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as we, mergeModels as Re, useModel as Ae, computed as x, resolveComponent as $, createBlock as Z, renderSlot as F, createCommentVNode as De, unref as D, openBlock as ee, mergeProps as _, createVNode as P } from "vue";
|
|
2
|
-
import { ag as ve, ah as Oe, O as Ee, ai as Ce, aj as qe, B as ke, ak as Se, al as te, am as xe } from "./install-
|
|
3
|
-
import { d as _e } from "./index-
|
|
2
|
+
import { ag as ve, ah as Oe, O as Ee, ai as Ce, aj as qe, B as ke, ak as Se, al as te, am as xe } from "./install-CrJnxpPS.js";
|
|
3
|
+
import { d as _e } from "./index-Dvhbo446.js";
|
|
4
4
|
import { get as Ue, set as Be } from "lodash-es";
|
|
5
5
|
import "@aliasedDeps/api-services/axios";
|
|
6
6
|
import * as e from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as lt, inject as ge, createElementBlock as mt, openBlock as G, normalizeClass as ye, unref as ot, createElementVNode as at, renderSlot as Wt, createVNode as U, useTemplateRef as qi, onMounted as _i, onBeforeUnmount as Ii, createBlock as Gt, createCommentVNode as Ut, toDisplayString as Vi, resolveComponent as Di, withCtx as _e, ref as us, provide as Ri, toRefs as Oi } from "vue";
|
|
2
|
-
import { a as q, c as ft, i as B, b as Ie, d as S, e as nt, f as Ve, l as O, s as Zt, g as Ds, E as Rs, D as L, h as Q, o as x, j as Ni, k as f, m as l, n as M, p as Os, q as Hi, r as oe, t as W, V as J, v as w, C as b, S as gt, w as It, x as p, y as rt, z, I as Ns, A as Fi, B as Bi, F as tt, G as Ge, H as Hs, J as ps, K as Ue, L as Fs, M as Tt, N as Ke, O as de, P as Gi, Q as xt, R as Ui, U as Ki, W as Qi, X as Wi, Y as zi, Z as ji, _ as Yi, $ as Xi, a0 as Ji, a1 as Bs, a2 as T, a3 as _, a4 as ce, a5 as Zi, a6 as Vt, a7 as K, a8 as ta, a9 as ea, aa as sa, ab as ia, ac as ms, ad as aa, ae as na, af as v, ag as y, ah as ra, ai as oa, T as ha, u as la } from "./useVidstackSrc-
|
|
3
|
-
import { T as da, U as ca, V as ua, X as pa, _ as dt, Q as zt, Y as ma, C as Y } from "./install-
|
|
2
|
+
import { a as q, c as ft, i as B, b as Ie, d as S, e as nt, f as Ve, l as O, s as Zt, g as Ds, E as Rs, D as L, h as Q, o as x, j as Ni, k as f, m as l, n as M, p as Os, q as Hi, r as oe, t as W, V as J, v as w, C as b, S as gt, w as It, x as p, y as rt, z, I as Ns, A as Fi, B as Bi, F as tt, G as Ge, H as Hs, J as ps, K as Ue, L as Fs, M as Tt, N as Ke, O as de, P as Gi, Q as xt, R as Ui, U as Ki, W as Qi, X as Wi, Y as zi, Z as ji, _ as Yi, $ as Xi, a0 as Ji, a1 as Bs, a2 as T, a3 as _, a4 as ce, a5 as Zi, a6 as Vt, a7 as K, a8 as ta, a9 as ea, aa as sa, ab as ia, ac as ms, ad as aa, ae as na, af as v, ag as y, ah as ra, ai as oa, T as ha, u as la } from "./useVidstackSrc-Bmp2wHly.js";
|
|
3
|
+
import { T as da, U as ca, V as ua, X as pa, _ as dt, Q as zt, Y as ma, C as Y } from "./install-CrJnxpPS.js";
|
|
4
4
|
import { _ as fa } from "./wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js";
|
|
5
5
|
const Gs = ft();
|
|
6
6
|
function $() {
|
|
@@ -2070,7 +2070,7 @@ class cn {
|
|
|
2070
2070
|
return "audio";
|
|
2071
2071
|
}
|
|
2072
2072
|
async load(t) {
|
|
2073
|
-
return new (await import("./vidstack-audio-
|
|
2073
|
+
return new (await import("./vidstack-audio-Cnpq73DL.js")).AudioProvider(this.target, t);
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
2076
2076
|
class je {
|
|
@@ -2083,7 +2083,7 @@ class je {
|
|
|
2083
2083
|
return "video";
|
|
2084
2084
|
}
|
|
2085
2085
|
async load(t) {
|
|
2086
|
-
return new (await import("./vidstack-video-
|
|
2086
|
+
return new (await import("./vidstack-video-h7Tsw5LU.js")).VideoProvider(this.target, t);
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
2089
|
class Ye extends je {
|
|
@@ -2093,7 +2093,7 @@ class Ye extends je {
|
|
|
2093
2093
|
return Ye.supported && Ge(t);
|
|
2094
2094
|
}
|
|
2095
2095
|
async load(t) {
|
|
2096
|
-
return new (await import("./vidstack-hls-
|
|
2096
|
+
return new (await import("./vidstack-hls-CrDFf1Gs.js")).HLSProvider(this.target, t);
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
2099
|
class Xe extends je {
|
|
@@ -2103,7 +2103,7 @@ class Xe extends je {
|
|
|
2103
2103
|
return Xe.supported && Ue(t);
|
|
2104
2104
|
}
|
|
2105
2105
|
async load(t) {
|
|
2106
|
-
return new (await import("./vidstack-dash-
|
|
2106
|
+
return new (await import("./vidstack-dash-Bzo3Gzfd.js")).DASHProvider(this.target, t);
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
2109
|
class un {
|
|
@@ -2125,7 +2125,7 @@ class un {
|
|
|
2125
2125
|
return "video";
|
|
2126
2126
|
}
|
|
2127
2127
|
async load(t) {
|
|
2128
|
-
return new (await import("./vidstack-vimeo-
|
|
2128
|
+
return new (await import("./vidstack-vimeo-CbcdGN2R.js")).VimeoProvider(this.target, t);
|
|
2129
2129
|
}
|
|
2130
2130
|
async loadPoster(t, e, s) {
|
|
2131
2131
|
const { resolveVimeoVideoId: i, getVimeoVideoInfo: n } = await import("./vidstack-krOAtKMi-C50BTxmn.js");
|
|
@@ -2157,7 +2157,7 @@ class pn {
|
|
|
2157
2157
|
return "video";
|
|
2158
2158
|
}
|
|
2159
2159
|
async load(t) {
|
|
2160
|
-
return new (await import("./vidstack-youtube-
|
|
2160
|
+
return new (await import("./vidstack-youtube-DKzx3LPK.js")).YouTubeProvider(this.target, t);
|
|
2161
2161
|
}
|
|
2162
2162
|
async loadPoster(t, e, s) {
|
|
2163
2163
|
const { findYouTubePoster: i, resolveYouTubeVideoId: n } = await import("./vidstack-Dm1xEU9Q-CXHNvShT.js"), r = S(t.src) && n(t.src);
|
|
@@ -2625,7 +2625,7 @@ class bn extends Pt {
|
|
|
2625
2625
|
throw i.code = "CAST_NOT_AVAILABLE", i;
|
|
2626
2626
|
}
|
|
2627
2627
|
if (te("https://www.gstatic.com"), !this.#v) {
|
|
2628
|
-
const i = await import("./vidstack-D2pY00kU-
|
|
2628
|
+
const i = await import("./vidstack-D2pY00kU-ByaRFZub.js").then((n) => n.v);
|
|
2629
2629
|
this.#v = new i.GoogleCastLoader();
|
|
2630
2630
|
}
|
|
2631
2631
|
await this.#v.prompt(this.#s), t && this.#e.queue.enqueue("media-google-cast-request", t);
|
|
@@ -8022,7 +8022,7 @@ class Mr extends v(HTMLElement, ii) {
|
|
|
8022
8022
|
if (this.#e?.classList.contains("vds-google-cast"))
|
|
8023
8023
|
return this.#e;
|
|
8024
8024
|
const t = document.createElement("div");
|
|
8025
|
-
return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-
|
|
8025
|
+
return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-BgRVFwPt.js").then(({ insertContent: e }) => {
|
|
8026
8026
|
e(t, this.#t.$state);
|
|
8027
8027
|
}), t;
|
|
8028
8028
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "26.4.
|
|
3
|
+
"version": "26.4.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run biome:format:all || true) && npm run publish-lib",
|
|
7
7
|
"dev": "npm run docs:dev",
|
|
8
8
|
"build": "vite build",
|
|
9
|
-
"test:unit": "vitest",
|
|
9
|
+
"test:unit": "vitest run",
|
|
10
|
+
"test:unit:watch": "vitest",
|
|
11
|
+
"test:coverage": "vitest run --coverage",
|
|
10
12
|
"biome:format:all": "npx biome check --write ./src",
|
|
11
13
|
"build:types": "vue-tsc -p ./tsconfig.build.json",
|
|
12
14
|
"publish-lib": " npm publish --access public --tag latest",
|
|
@@ -116,6 +118,7 @@
|
|
|
116
118
|
"@tsconfig/node22": "^22.0.0",
|
|
117
119
|
"@types/node": "^22.13.10",
|
|
118
120
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
121
|
+
"@vitest/coverage-v8": "^4.1.3",
|
|
119
122
|
"@vue/compat": "^3.5.x",
|
|
120
123
|
"@vue/test-utils": "^2.4.6",
|
|
121
124
|
"@vue/tsconfig": "^0.8.1",
|
|
@@ -29,7 +29,7 @@ describe('UsersAPI', () => {
|
|
|
29
29
|
'vitest',
|
|
30
30
|
],
|
|
31
31
|
};
|
|
32
|
-
const url = '/users?fields=id&fields=name&fields=vitest
|
|
32
|
+
const url = '/users?page=1&size=10&fields=id&fields=name&fields=vitest';
|
|
33
33
|
await UsersAPI.getList(inputParams);
|
|
34
34
|
expect(get).toHaveBeenCalledWith(url);
|
|
35
35
|
});
|
package/src/components/index.js
CHANGED
|
@@ -155,6 +155,12 @@ const WtTypeExtensionValueInput = defineAsyncComponent(
|
|
|
155
155
|
'./on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue'
|
|
156
156
|
),
|
|
157
157
|
);
|
|
158
|
+
const WtScreenRecordingsAction = defineAsyncComponent(
|
|
159
|
+
() =>
|
|
160
|
+
import(
|
|
161
|
+
'./on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue'
|
|
162
|
+
),
|
|
163
|
+
);
|
|
158
164
|
|
|
159
165
|
const Components = {
|
|
160
166
|
WtActionBar,
|
|
@@ -236,6 +242,7 @@ const Components = {
|
|
|
236
242
|
WtChatEmoji,
|
|
237
243
|
WtExpansionCard,
|
|
238
244
|
WtDatetimeText,
|
|
245
|
+
WtScreenRecordingsAction,
|
|
239
246
|
};
|
|
240
247
|
|
|
241
248
|
export {
|
|
@@ -319,6 +326,7 @@ export {
|
|
|
319
326
|
WtVidstackPlayer,
|
|
320
327
|
WtExpansionCard,
|
|
321
328
|
WtDatetimeText,
|
|
329
|
+
WtScreenRecordingsAction,
|
|
322
330
|
};
|
|
323
331
|
|
|
324
332
|
export default Components;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="wt-screen-recordings-action">
|
|
3
|
+
<wt-context-menu
|
|
4
|
+
:options="contextOptions"
|
|
5
|
+
max-width="400px"
|
|
6
|
+
@click="handleOptionSelect"
|
|
7
|
+
>
|
|
8
|
+
<template #activator="{ toggle }">
|
|
9
|
+
<wt-icon-btn
|
|
10
|
+
v-if="contextOptions?.length"
|
|
11
|
+
icon="preview-tag-video"
|
|
12
|
+
@click="toggle"
|
|
13
|
+
/>
|
|
14
|
+
</template>
|
|
15
|
+
<template #option="{ text }">
|
|
16
|
+
<div class="wt-screen-recordings-action__option">
|
|
17
|
+
<wt-icon icon="preview-tag-video" />
|
|
18
|
+
{{ text }}
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
</wt-context-menu>
|
|
22
|
+
<p>
|
|
23
|
+
{{ contextOptions?.length || EMPTY_SYMBOL }}
|
|
24
|
+
</p>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script setup lang="ts">
|
|
29
|
+
import { EngineCallFileType } from '@webitel/api-services/gen/models';
|
|
30
|
+
import { computed } from 'vue';
|
|
31
|
+
|
|
32
|
+
import { EMPTY_SYMBOL } from '../../../utils/index.ts';
|
|
33
|
+
|
|
34
|
+
interface Props {
|
|
35
|
+
files: unknown[];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const props = defineProps<Props>();
|
|
39
|
+
|
|
40
|
+
const emit = defineEmits<(e: 'set-video', val: unknown) => void>();
|
|
41
|
+
|
|
42
|
+
const contextOptions = computed(() =>
|
|
43
|
+
props?.files?.[EngineCallFileType.FileTypeScreensharing]?.map(
|
|
44
|
+
({ name, id, mimeType, type }) => ({
|
|
45
|
+
text: name,
|
|
46
|
+
id,
|
|
47
|
+
mimeType,
|
|
48
|
+
type,
|
|
49
|
+
}),
|
|
50
|
+
),
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const handleOptionSelect = ({ option }) => {
|
|
54
|
+
if (option.id && option.type === EngineCallFileType.FileTypeScreensharing) {
|
|
55
|
+
emit('set-video', option);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style lang="scss" scoped>
|
|
61
|
+
.wt-screen-recordings-action {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: var(--spacing-xs);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.wt-screen-recordings-action__option {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: var(--spacing-xs);
|
|
71
|
+
}
|
|
72
|
+
</style>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
1
|
+
import { mount, shallowMount } from '@vue/test-utils';
|
|
2
2
|
|
|
3
|
-
import WtLoader from '../../wt-loader/wt-loader.vue';
|
|
4
3
|
import WtButton from '../wt-button.vue';
|
|
5
4
|
|
|
6
5
|
describe('WtButton', () => {
|
|
@@ -11,12 +10,12 @@ describe('WtButton', () => {
|
|
|
11
10
|
|
|
12
11
|
it('renders a button content via default slot', () => {
|
|
13
12
|
const content = 'button content';
|
|
14
|
-
const wrapper =
|
|
13
|
+
const wrapper = mount(WtButton, {
|
|
15
14
|
slots: {
|
|
16
15
|
default: content,
|
|
17
16
|
},
|
|
18
17
|
});
|
|
19
|
-
expect(wrapper.
|
|
18
|
+
expect(wrapper.text()).toContain(content);
|
|
20
19
|
});
|
|
21
20
|
|
|
22
21
|
it('renders button spinner', () => {
|
|
@@ -25,6 +24,12 @@ describe('WtButton', () => {
|
|
|
25
24
|
loading: true,
|
|
26
25
|
},
|
|
27
26
|
});
|
|
28
|
-
expect(wrapper.
|
|
27
|
+
expect(wrapper.classes('p-button--loading')).toBe(true);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('emits click event', async () => {
|
|
31
|
+
const wrapper = shallowMount(WtButton);
|
|
32
|
+
await wrapper.trigger('click');
|
|
33
|
+
expect(wrapper.emitted().click).toBeTruthy();
|
|
29
34
|
});
|
|
30
35
|
});
|
|
@@ -11,13 +11,20 @@ global.ResizeObserver = vi.fn().mockImplementation(() => ({
|
|
|
11
11
|
|
|
12
12
|
describe('WtSelectButton', () => {
|
|
13
13
|
it('renders a component', () => {
|
|
14
|
-
const wrapper = shallowMount(WtSelectButton
|
|
14
|
+
const wrapper = shallowMount(WtSelectButton, {
|
|
15
|
+
props: {
|
|
16
|
+
options: [],
|
|
17
|
+
},
|
|
18
|
+
});
|
|
15
19
|
expect(wrapper.classes('wt-button-select')).toBe(true);
|
|
16
20
|
});
|
|
17
21
|
|
|
18
22
|
it('renders a button content via default slot', () => {
|
|
19
23
|
const content = 'button content';
|
|
20
24
|
const wrapper = mount(WtSelectButton, {
|
|
25
|
+
props: {
|
|
26
|
+
options: [],
|
|
27
|
+
},
|
|
21
28
|
slots: {
|
|
22
29
|
default: content,
|
|
23
30
|
},
|
|
@@ -25,24 +32,14 @@ describe('WtSelectButton', () => {
|
|
|
25
32
|
expect(wrapper.find('.wt-button-select__button').text()).toBe(content);
|
|
26
33
|
});
|
|
27
34
|
|
|
28
|
-
it('
|
|
29
|
-
const wrapper =
|
|
35
|
+
it('emits click from main action button', async () => {
|
|
36
|
+
const wrapper = shallowMount(WtSelectButton, {
|
|
30
37
|
props: {
|
|
31
38
|
options: [],
|
|
32
39
|
},
|
|
33
40
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
})
|
|
38
|
-
.find((component) =>
|
|
39
|
-
component.classes().includes('wt-button-select__select-btn'),
|
|
40
|
-
);
|
|
41
|
-
arrowBtn.vm.$emit('click');
|
|
42
|
-
await wrapper.vm.$nextTick();
|
|
43
|
-
const wtIcon = wrapper.find('.wt-button-select__select-arrow');
|
|
44
|
-
expect(wtIcon.classes()).toContain(
|
|
45
|
-
'wt-button-select__select-arrow--active',
|
|
46
|
-
);
|
|
41
|
+
|
|
42
|
+
await wrapper.find('.wt-button-select__button').trigger('click');
|
|
43
|
+
expect(wrapper.emitted().click).toBeTruthy();
|
|
47
44
|
});
|
|
48
45
|
});
|
|
@@ -7,6 +7,9 @@ import WtCheckbox from '../wt-checkbox.vue';
|
|
|
7
7
|
describe('WtCheckbox', () => {
|
|
8
8
|
it('renders a component', () => {
|
|
9
9
|
const wrapper = shallowMount(WtCheckbox, {
|
|
10
|
+
props: {
|
|
11
|
+
selected: false,
|
|
12
|
+
},
|
|
10
13
|
stubs: {
|
|
11
14
|
WtLabel,
|
|
12
15
|
WtIcon,
|
|
@@ -24,6 +27,7 @@ describe('WtCheckbox', () => {
|
|
|
24
27
|
},
|
|
25
28
|
props: {
|
|
26
29
|
label,
|
|
30
|
+
selected: false,
|
|
27
31
|
},
|
|
28
32
|
});
|
|
29
33
|
expect(wrapper.find('.wt-checkbox__label').text()).toBe(label);
|
|
@@ -40,8 +44,8 @@ describe('WtCheckbox', () => {
|
|
|
40
44
|
selected,
|
|
41
45
|
},
|
|
42
46
|
});
|
|
43
|
-
wrapper.find('
|
|
44
|
-
expect(wrapper.emitted()
|
|
47
|
+
wrapper.find('input[type="checkbox"]').setValue(!selected);
|
|
48
|
+
expect(wrapper.emitted()['update:selected'][0]).toEqual([
|
|
45
49
|
!selected,
|
|
46
50
|
]);
|
|
47
51
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
1
|
+
import { mount, shallowMount } from '@vue/test-utils';
|
|
2
2
|
|
|
3
3
|
import WtChip from '../wt-chip.vue';
|
|
4
4
|
|
|
@@ -10,11 +10,11 @@ describe('WtChip', () => {
|
|
|
10
10
|
|
|
11
11
|
it('renders a chip content via default slot', () => {
|
|
12
12
|
const content = 'chip content';
|
|
13
|
-
const wrapper =
|
|
13
|
+
const wrapper = mount(WtChip, {
|
|
14
14
|
slots: {
|
|
15
15
|
default: content,
|
|
16
16
|
},
|
|
17
17
|
});
|
|
18
|
-
expect(wrapper.
|
|
18
|
+
expect(wrapper.text()).toContain(content);
|
|
19
19
|
});
|
|
20
20
|
});
|