@webitel/ui-sdk 26.2.70 → 26.2.72
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/{errors-DCJKAXTz.js → errors-CTL-RV3B.js} +1 -1
- package/dist/{index-B71drQtj.js → index-DWA4o3XJ.js} +4 -4
- package/dist/{index-cVwBpL1P.js → index-pMfSnCae.js} +1 -1
- package/dist/{install-BEn6vjFW.js → install-UIKG1ERr.js} +9496 -8874
- package/dist/{isObject-DB0eH0MA.js → isObject-B3V85Sws.js} +1 -1
- package/dist/prod-BoQuiIB3.js +973 -0
- package/dist/srt-parser-CsN7bp5E.js +26 -0
- package/dist/ssa-parser-BJOOPeQF.js +200 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +464 -482
- package/dist/vidstack-Bq6c3Bam-pb8Xltql.js +425 -0
- package/dist/vidstack-D2pY00kU-DiDeMWBZ.js +135 -0
- package/dist/vidstack-DDXt6fpN-BJpO5v6W.js +50 -0
- package/dist/vidstack-D_-9AA6_-D9IZ6RtF.js +20 -0
- package/dist/{vidstack-Dm1xEU9Q-qSXq3AI-.js → vidstack-Dm1xEU9Q-CXHNvShT.js} +10 -11
- package/dist/vidstack-DqAw8m9J-R8izgrMK.js +22 -0
- package/dist/vidstack-audio-RReC5vyt.js +28 -0
- package/dist/vidstack-dash-DW7Ue8Mf.js +392 -0
- package/dist/vidstack-google-cast-C0U2wzqB.js +382 -0
- package/dist/vidstack-hls-BZgfDsGk.js +309 -0
- package/dist/vidstack-krOAtKMi-C50BTxmn.js +28 -0
- package/dist/vidstack-video-CI2rq89j.js +163 -0
- package/dist/vidstack-vimeo-CgwZpCSk.js +451 -0
- package/dist/vidstack-youtube-BYXk8CK9.js +232 -0
- package/dist/{wt-action-bar-ColV1kXE.js → wt-action-bar-DR8FqGoN.js} +1 -1
- package/dist/{wt-button-select-CfoSEYMj.js → wt-button-select-DZ_mMZr7.js} +1 -1
- package/dist/{wt-chat-emoji-Bgv9Viz-.js → wt-chat-emoji-Bx7YenHF.js} +6 -11
- package/dist/{wt-confirm-dialog-bVhuyR-Q.js → wt-confirm-dialog-Bmt7hVhO.js} +1 -1
- package/dist/{wt-context-menu-Cd8pgBRV.js → wt-context-menu-DEonPBI7.js} +1 -1
- package/dist/{wt-copy-action-jjp1mO2h.js → wt-copy-action-DQZ5qUUm.js} +1 -1
- package/dist/wt-datepicker-DRUiK--W.js +5660 -0
- package/dist/wt-display-chip-items-x25aFJxY.js +46 -0
- package/dist/{wt-dual-panel-DJsiR6RF.js → wt-dual-panel-0fDOCrlS.js} +1 -1
- package/dist/{wt-dummy-O94iGdZS.js → wt-dummy-CFcLvVwn.js} +1 -1
- package/dist/{wt-error-page-xgSWJ65z.js → wt-error-page-CebFt3Gg.js} +1 -1
- package/dist/{wt-expansion-panel-vzG02b62.js → wt-expansion-panel-cJWQaqAc.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-h-UaAMuF.js → wt-filters-panel-wrapper-4-k7czbS.js} +1 -1
- package/dist/wt-galleria-Ds-HZvJq.js +322 -0
- package/dist/{wt-navigation-menu-Cu5Y9kua.js → wt-navigation-menu-DqnvQB3G.js} +2 -5
- package/dist/wt-notifications-bar-Bmww4vJb.js +79 -0
- package/dist/{wt-page-header-DlRrRzG7.js → wt-page-header-6lJKDnEs.js} +1 -1
- package/dist/{wt-pagination-CW46I4u2.js → wt-pagination-D7BhUkrI.js} +1 -1
- package/dist/{wt-player-3qh_Jzm2.js → wt-player-Bx_9-9R6.js} +1 -1
- package/dist/{wt-popover-BTG5bUP0.js → wt-popover-U7JE0uoX.js} +19 -22
- package/dist/{wt-search-bar-CTsNf7bp.js → wt-search-bar-BfHsofcU.js} +25 -28
- package/dist/{wt-selection-popup-DvaUvY4O.js → wt-selection-popup-B5Wt1WQk.js} +1 -1
- package/dist/{wt-start-page-CcN7JC_u.js → wt-start-page-8ywFCoUJ.js} +7 -7
- package/dist/{wt-status-select-C8t0cgTg.js → wt-status-select-CFdNgbIP.js} +1 -1
- package/dist/{wt-stepper-BLb42q2I.js → wt-stepper-59a_rP7o.js} +1 -1
- package/dist/{wt-table-9gmsV0Y9.js → wt-table-DuxjiiFi.js} +111 -114
- package/dist/{wt-table-actions-BB7AH7sR.js → wt-table-actions-CsrvF6d8.js} +1 -1
- package/dist/{wt-table-column-select-B3lrCEaV.js → wt-table-column-select-Zga4Zyfd.js} +28 -31
- package/dist/{wt-tabs-CCHi_E1a.js → wt-tabs-CMMlNgqE.js} +1 -1
- package/dist/{wt-tags-input-DLicKjv3.js → wt-tags-input-O1wer3-w.js} +56 -57
- package/dist/{wt-timepicker-B9ONDzNQ.js → wt-timepicker-BscP21YM.js} +1 -1
- package/dist/{wt-tree-cQlvJmh5.js → wt-tree-BRPd5QbE.js} +4 -5
- package/dist/{wt-tree-table-B89YKiMf.js → wt-tree-table-CZQ7xmja.js} +5 -5
- package/dist/{wt-type-extension-value-input-Da8FXLDs.js → wt-type-extension-value-input-DZqeSLGx.js} +214 -218
- package/dist/wt-vidstack-player-CA18U-L9.js +10229 -0
- package/package.json +5 -5
- package/src/components/wt-button/wt-button.vue +9 -13
- package/src/install.ts +0 -1
- package/src/locale/i18n.js +1 -1
- package/src/modules/Notifications/store/NotificationsStoreModule.js +1 -1
- package/src/modules/Userinfo/classes/ApplicationsAccess.ts +36 -3
- package/src/modules/Userinfo/scripts/utils.ts +2 -22
- package/src/modules/Userinfo/stores/accessStore.ts +20 -5
- package/src/modules/Userinfo/types/UserAccess.d.ts +11 -3
- package/types/locale/i18n.d.ts +1 -1
- package/types/modules/Notifications/store/NotificationsStoreModule.d.ts +1 -1
- package/types/modules/Userinfo/classes/ApplicationsAccess.d.ts +34 -243
- package/types/modules/Userinfo/scripts/utils.d.ts +1 -2
- package/types/modules/Userinfo/stores/accessStore.d.ts +1 -1
- package/types/modules/Userinfo/stores/userinfoStore.d.ts +21 -9
- package/dist/prod-DTLJXtPo.js +0 -994
- package/dist/srt-parser-CWqahKwO.js +0 -27
- package/dist/ssa-parser-BqjjKy4M.js +0 -209
- package/dist/vidstack-Bq6c3Bam-w5y-QQDX.js +0 -413
- package/dist/vidstack-D2pY00kU-BI5rYx7p.js +0 -138
- package/dist/vidstack-DDXt6fpN-QZPrP2dy.js +0 -60
- package/dist/vidstack-D_-9AA6_-Bo1xPN-G.js +0 -20
- package/dist/vidstack-DqAw8m9J-DL7LzrFt.js +0 -29
- package/dist/vidstack-audio-lX1O0fza.js +0 -32
- package/dist/vidstack-dash-BQkRGWe_.js +0 -403
- package/dist/vidstack-google-cast-C39n-PU1.js +0 -377
- package/dist/vidstack-hls-BCLhCuNJ.js +0 -324
- package/dist/vidstack-krOAtKMi-B4IZWKdc.js +0 -29
- package/dist/vidstack-video-BgayrEIC.js +0 -181
- package/dist/vidstack-vimeo-Lpe7iySs.js +0 -437
- package/dist/vidstack-youtube-Dmcz0xVm.js +0 -236
- package/dist/vuex.esm-bundler-tZVctzTj.js +0 -950
- package/dist/wt-datepicker-Cs3xDzVq.js +0 -5789
- package/dist/wt-display-chip-items-IqNMxa_X.js +0 -52
- package/dist/wt-galleria-cDjsiOcp.js +0 -324
- package/dist/wt-notifications-bar-KNH47kZ7.js +0 -80
- package/dist/wt-vidstack-player-BzFbIwCa.js +0 -10250
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, computed as p, createElementBlock as s, openBlock as i, createCommentVNode as m, renderSlot as u, createVNode as h, toDisplayString as l, createTextVNode as y, unref as c, withCtx as d, Fragment as C, renderList as I } from "vue";
|
|
2
|
-
import { ac as B, ad as S, _ as b } from "./install-BEn6vjFW.js";
|
|
3
|
-
const _ = "-", g = (o) => o || _, w = { class: "wt-display-chip-items" }, E = { key: 0 }, F = ["onClick"], N = /* @__PURE__ */ k({
|
|
4
|
-
__name: "wt-display-chip-items",
|
|
5
|
-
props: {
|
|
6
|
-
hideFirstItem: { type: Boolean },
|
|
7
|
-
useEmptySymbol: { type: Boolean },
|
|
8
|
-
title: {},
|
|
9
|
-
items: {}
|
|
10
|
-
},
|
|
11
|
-
setup(o) {
|
|
12
|
-
const t = o, f = p(() => {
|
|
13
|
-
var e, a;
|
|
14
|
-
return (e = t.items) != null && e.length ? (a = t.items[0]) == null ? void 0 : a.name : t.useEmptySymbol ? _ : "";
|
|
15
|
-
}), r = p(() => {
|
|
16
|
-
var e;
|
|
17
|
-
return (e = t.items) != null && e.length ? t.hideFirstItem ? t.items : t.items.slice(1) : [];
|
|
18
|
-
});
|
|
19
|
-
return (e, a) => (i(), s("div", w, [
|
|
20
|
-
t.title ? (i(), s("p", E, l(o.title) + ":", 1)) : m("", !0),
|
|
21
|
-
t.hideFirstItem ? m("", !0) : u(e.$slots, "first-item", { key: 1 }, () => [
|
|
22
|
-
y(l(c(g)(f.value)), 1)
|
|
23
|
-
], !0),
|
|
24
|
-
h(c(B), null, {
|
|
25
|
-
activator: d(({ toggle: n }) => [
|
|
26
|
-
u(e.$slots, "activator", { toggle: n }, () => [
|
|
27
|
-
r.value.length ? (i(), s("div", {
|
|
28
|
-
key: 0,
|
|
29
|
-
onClick: n
|
|
30
|
-
}, [
|
|
31
|
-
h(c(S), null, {
|
|
32
|
-
default: d(() => [
|
|
33
|
-
y(" +" + l(r.value.length), 1)
|
|
34
|
-
], void 0, !0),
|
|
35
|
-
_: 1
|
|
36
|
-
})
|
|
37
|
-
], 8, F)) : m("", !0)
|
|
38
|
-
], !0)
|
|
39
|
-
]),
|
|
40
|
-
default: d(() => [
|
|
41
|
-
u(e.$slots, "items", { items: r.value }, () => [
|
|
42
|
-
(i(!0), s(C, null, I(r.value, ({ name: n, id: v }) => (i(), s("div", { key: v }, l(n), 1))), 128))
|
|
43
|
-
], !0)
|
|
44
|
-
]),
|
|
45
|
-
_: 3
|
|
46
|
-
})
|
|
47
|
-
]));
|
|
48
|
-
}
|
|
49
|
-
}), T = /* @__PURE__ */ b(N, [["__scopeId", "data-v-4c67fbb7"]]);
|
|
50
|
-
export {
|
|
51
|
-
T as default
|
|
52
|
-
};
|
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
import { ref as k, onMounted as P, onUnmounted as D, useAttrs as j, computed as $, resolveComponent as w, createBlock as A, openBlock as I, mergeProps as J, unref as i, withCtx as c, createVNode as s, createTextVNode as F, toDisplayString as g, createElementVNode as v, renderSlot as K, defineComponent as Q, mergeModels as B, useModel as S, watch as E, nextTick as V, 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-BEn6vjFW.js";
|
|
3
|
-
const ne = () => {
|
|
4
|
-
const t = k(!1), r = () => {
|
|
5
|
-
t.value ? e() : p();
|
|
6
|
-
}, n = () => {
|
|
7
|
-
t.value = !t.value;
|
|
8
|
-
}, p = () => {
|
|
9
|
-
const a = document.querySelector(".p-galleria");
|
|
10
|
-
a.requestFullscreen ? a.requestFullscreen() : a.mozRequestFullScreen ? a.mozRequestFullScreen() : a.webkitRequestFullscreen ? a.webkitRequestFullscreen() : a.msRequestFullscreen && a.msRequestFullscreen();
|
|
11
|
-
}, e = () => {
|
|
12
|
-
document.exitFullscreen ? document.exitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen && document.msExitFullscreen();
|
|
13
|
-
}, o = () => {
|
|
14
|
-
document.addEventListener("fullscreenchange", n), document.addEventListener("mozfullscreenchange", n), document.addEventListener("webkitfullscreenchange", n), document.addEventListener("msfullscreenchange", n);
|
|
15
|
-
}, u = () => {
|
|
16
|
-
document.removeEventListener("fullscreenchange", n), document.removeEventListener("mozfullscreenchange", n), document.removeEventListener("webkitfullscreenchange", n), document.removeEventListener("msfullscreenchange", n);
|
|
17
|
-
};
|
|
18
|
-
return P(() => {
|
|
19
|
-
o();
|
|
20
|
-
}), D(() => {
|
|
21
|
-
u();
|
|
22
|
-
}), {
|
|
23
|
-
fullScreen: t,
|
|
24
|
-
toggleFullScreen: r
|
|
25
|
-
};
|
|
26
|
-
}, le = (t) => {
|
|
27
|
-
const r = ({ target: e }) => {
|
|
28
|
-
e.classList.contains("p-galleria-mask") && (t.value = !1);
|
|
29
|
-
};
|
|
30
|
-
return {
|
|
31
|
-
listenMaskElementClick: () => {
|
|
32
|
-
var e;
|
|
33
|
-
(e = document.querySelector(".p-galleria-mask")) == null || e.addEventListener("click", r);
|
|
34
|
-
},
|
|
35
|
-
removeMaskElementClick: () => {
|
|
36
|
-
var e;
|
|
37
|
-
(e = document.querySelector(".p-galleria-mask")) == null || e.removeEventListener("click", r);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}, oe = () => {
|
|
41
|
-
const t = k(!1), r = k(null), n = k(null);
|
|
42
|
-
function p({ deleted: o, callback: u }) {
|
|
43
|
-
Array.isArray(o) ? r.value = o.length : r.value = 1, t.value = !0, n.value = u;
|
|
44
|
-
}
|
|
45
|
-
function e() {
|
|
46
|
-
t.value = !1;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
isVisible: t,
|
|
50
|
-
deleteCount: r,
|
|
51
|
-
deleteCallback: n,
|
|
52
|
-
askDeleteConfirmation: p,
|
|
53
|
-
closeDelete: e
|
|
54
|
-
};
|
|
55
|
-
}, ae = { class: "delete-confirmation-popup__content" }, se = { class: "delete-confirmation-popup__message" }, ie = {
|
|
56
|
-
__name: "delete-confirmation-popup",
|
|
57
|
-
props: {
|
|
58
|
-
deleteCount: {
|
|
59
|
-
type: Number,
|
|
60
|
-
required: !0
|
|
61
|
-
},
|
|
62
|
-
callback: {
|
|
63
|
-
type: Function,
|
|
64
|
-
required: !0
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
emits: [
|
|
68
|
-
"close"
|
|
69
|
-
],
|
|
70
|
-
setup(t, { emit: r }) {
|
|
71
|
-
const n = t, p = j(), { t: e } = te(), o = $(() => n.deleteCount === 0 ? e("webitelUI.deleteConfirmationPopup.tableAskingAlert", 2, null, {
|
|
72
|
-
count: e("webitelUI.deleteConfirmationPopup.deleteAll")
|
|
73
|
-
}) : e(
|
|
74
|
-
"webitelUI.deleteConfirmationPopup.tableAskingAlert",
|
|
75
|
-
{
|
|
76
|
-
count: n.deleteCount
|
|
77
|
-
},
|
|
78
|
-
null
|
|
79
|
-
));
|
|
80
|
-
return (u, a) => {
|
|
81
|
-
const _ = w("wt-icon"), d = w("wt-button"), h = w("wt-confirm-dialog");
|
|
82
|
-
return I(), A(h, J(i(p), {
|
|
83
|
-
class: "delete-confirmation-popup",
|
|
84
|
-
title: u.$t("webitelUI.deleteConfirmationPopup.title"),
|
|
85
|
-
callback: t.callback,
|
|
86
|
-
onClose: a[0] || (a[0] = (b) => u.$emit("close"))
|
|
87
|
-
}), {
|
|
88
|
-
main: c(() => [
|
|
89
|
-
v("div", ae, [
|
|
90
|
-
s(_, {
|
|
91
|
-
color: "error",
|
|
92
|
-
icon: "attention"
|
|
93
|
-
}),
|
|
94
|
-
v("p", se, [
|
|
95
|
-
K(u.$slots, "deleteMessage", {}, () => [
|
|
96
|
-
F(g(o.value), 1)
|
|
97
|
-
], !0)
|
|
98
|
-
])
|
|
99
|
-
])
|
|
100
|
-
]),
|
|
101
|
-
actions: c(({ isDeleting: b, close: C, confirm: x }) => [
|
|
102
|
-
s(d, {
|
|
103
|
-
loading: b,
|
|
104
|
-
onClick: x
|
|
105
|
-
}, {
|
|
106
|
-
default: c(() => [
|
|
107
|
-
F(g(u.$t("vocabulary.yes")), 1)
|
|
108
|
-
], void 0, !0),
|
|
109
|
-
_: 1
|
|
110
|
-
}, 8, ["loading", "onClick"]),
|
|
111
|
-
s(d, {
|
|
112
|
-
disabled: b,
|
|
113
|
-
color: "secondary",
|
|
114
|
-
onClick: C
|
|
115
|
-
}, {
|
|
116
|
-
default: c(() => [
|
|
117
|
-
F(g(u.$t("vocabulary.no")), 1)
|
|
118
|
-
], void 0, !0),
|
|
119
|
-
_: 1
|
|
120
|
-
}, 8, ["disabled", "onClick"])
|
|
121
|
-
]),
|
|
122
|
-
_: 3
|
|
123
|
-
}, 16, ["title", "callback"]);
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
}, ce = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-95c498c1"]]), re = ["src", "alt"], ue = ["src", "alt"], de = { class: "wt-galleria__footer" }, me = {
|
|
127
|
-
key: 0,
|
|
128
|
-
class: "wt-galleria__footer-info"
|
|
129
|
-
}, ve = { class: "wt-galleria__footer-actions" }, ge = /* @__PURE__ */ Q({
|
|
130
|
-
__name: "wt-galleria",
|
|
131
|
-
props: /* @__PURE__ */ B({
|
|
132
|
-
value: {},
|
|
133
|
-
id: {},
|
|
134
|
-
activeIndex: {},
|
|
135
|
-
fullScreen: { type: Boolean },
|
|
136
|
-
visible: { type: Boolean },
|
|
137
|
-
numVisible: {},
|
|
138
|
-
responsiveOptions: {},
|
|
139
|
-
showItemNavigators: { type: Boolean },
|
|
140
|
-
showThumbnailNavigators: { type: Boolean },
|
|
141
|
-
showItemNavigatorsOnHover: { type: Boolean },
|
|
142
|
-
changeItemOnIndicatorHover: { type: Boolean },
|
|
143
|
-
circular: { type: Boolean },
|
|
144
|
-
autoPlay: { type: Boolean },
|
|
145
|
-
transitionInterval: {},
|
|
146
|
-
showThumbnails: { type: Boolean },
|
|
147
|
-
thumbnailsPosition: {},
|
|
148
|
-
verticalThumbnailViewPortHeight: {},
|
|
149
|
-
showIndicators: { type: Boolean },
|
|
150
|
-
showIndicatorsOnItem: { type: Boolean },
|
|
151
|
-
indicatorsPosition: {},
|
|
152
|
-
baseZIndex: {},
|
|
153
|
-
maskClass: {},
|
|
154
|
-
containerStyle: {},
|
|
155
|
-
containerClass: {},
|
|
156
|
-
containerProps: {},
|
|
157
|
-
prevButtonProps: {},
|
|
158
|
-
nextButtonProps: {},
|
|
159
|
-
ariaLabel: {},
|
|
160
|
-
ariaRoledescription: {},
|
|
161
|
-
dt: {},
|
|
162
|
-
pt: {},
|
|
163
|
-
ptOptions: {},
|
|
164
|
-
unstyled: { type: Boolean }
|
|
165
|
-
}, {
|
|
166
|
-
visible: { type: Boolean, required: !0 },
|
|
167
|
-
visibleModifiers: {},
|
|
168
|
-
activeIndex: {
|
|
169
|
-
default: 0,
|
|
170
|
-
required: !1
|
|
171
|
-
},
|
|
172
|
-
activeIndexModifiers: {}
|
|
173
|
-
}),
|
|
174
|
-
emits: /* @__PURE__ */ B([
|
|
175
|
-
"download",
|
|
176
|
-
"delete"
|
|
177
|
-
], ["update:visible", "update:activeIndex"]),
|
|
178
|
-
setup(t, { emit: r }) {
|
|
179
|
-
const n = t, p = r, e = S(t, "visible"), o = S(t, "activeIndex"), u = $(() => n.value[o.value]), a = k(!0), _ = k(!0), { fullScreen: d, toggleFullScreen: h } = ne(), { listenMaskElementClick: b, removeMaskElementClick: C } = le(e), {
|
|
180
|
-
isVisible: x,
|
|
181
|
-
deleteCount: N,
|
|
182
|
-
deleteCallback: z,
|
|
183
|
-
askDeleteConfirmation: R,
|
|
184
|
-
closeDelete: T
|
|
185
|
-
} = oe(), U = () => {
|
|
186
|
-
_.value = !_.value;
|
|
187
|
-
}, O = () => {
|
|
188
|
-
a.value = !1;
|
|
189
|
-
}, H = () => {
|
|
190
|
-
d.value && h(), R({
|
|
191
|
-
deleteCount: 1,
|
|
192
|
-
callback: () => p("delete", o)
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
return E(
|
|
196
|
-
() => u.value,
|
|
197
|
-
(y, m) => {
|
|
198
|
-
(y == null ? void 0 : y.src) != (m == null ? void 0 : m.src) && (a.value = !0);
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
deep: !0
|
|
202
|
-
}
|
|
203
|
-
), E(
|
|
204
|
-
() => e.value,
|
|
205
|
-
() => {
|
|
206
|
-
e.value ? V(() => {
|
|
207
|
-
b();
|
|
208
|
-
}) : (o.value = 0, C());
|
|
209
|
-
}
|
|
210
|
-
), E(
|
|
211
|
-
() => n.value,
|
|
212
|
-
() => {
|
|
213
|
-
n.value.length || (e.value = !1);
|
|
214
|
-
}
|
|
215
|
-
), P(() => {
|
|
216
|
-
e.value && b();
|
|
217
|
-
}), D(() => {
|
|
218
|
-
C();
|
|
219
|
-
}), (y, m) => {
|
|
220
|
-
const G = w("wt-loader"), f = w("wt-icon"), Z = w("p-galleria");
|
|
221
|
-
return I(), L(W, null, [
|
|
222
|
-
s(Z, {
|
|
223
|
-
visible: e.value,
|
|
224
|
-
"onUpdate:visible": m[1] || (m[1] = (l) => e.value = l),
|
|
225
|
-
"active-index": o.value,
|
|
226
|
-
"onUpdate:activeIndex": m[2] || (m[2] = (l) => o.value = l),
|
|
227
|
-
value: t.value,
|
|
228
|
-
"show-thumbnails": _.value,
|
|
229
|
-
"full-screen": "",
|
|
230
|
-
circular: "",
|
|
231
|
-
"show-item-navigators": "",
|
|
232
|
-
"num-visible": 5,
|
|
233
|
-
pt: {
|
|
234
|
-
root: {
|
|
235
|
-
class: [{ "flex flex-col": i(d) }]
|
|
236
|
-
},
|
|
237
|
-
content: {
|
|
238
|
-
class: ["relative", { "wt-galleria__content--fullscreen": i(d) }]
|
|
239
|
-
},
|
|
240
|
-
thumbnails: "wt-galleria__thumbnails",
|
|
241
|
-
closeButton: {
|
|
242
|
-
style: { display: i(d) ? "none" : "block" }
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}, {
|
|
246
|
-
item: c(({ item: l }) => [
|
|
247
|
-
v("div", {
|
|
248
|
-
class: M(["wt-galleria__image-container", { "wt-galleria__image-container--preview": !i(d) }])
|
|
249
|
-
}, [
|
|
250
|
-
a.value ? (I(), A(G, { key: 0 })) : q("", !0),
|
|
251
|
-
X(v("img", {
|
|
252
|
-
class: M(["wt-galleria__image", { "wt-galleria__image--fullscreen": i(d) }]),
|
|
253
|
-
src: l == null ? void 0 : l.src,
|
|
254
|
-
alt: l == null ? void 0 : l.title,
|
|
255
|
-
onLoad: O
|
|
256
|
-
}, null, 42, re), [
|
|
257
|
-
[Y, !a.value]
|
|
258
|
-
])
|
|
259
|
-
], 2)
|
|
260
|
-
]),
|
|
261
|
-
thumbnail: c(({ item: l }) => [
|
|
262
|
-
v("img", {
|
|
263
|
-
src: l == null ? void 0 : l.thumbnailSrc,
|
|
264
|
-
alt: l == null ? void 0 : l.title,
|
|
265
|
-
class: "wt-galleria__thumbnail"
|
|
266
|
-
}, null, 8, ue)
|
|
267
|
-
]),
|
|
268
|
-
closeicon: c(() => [
|
|
269
|
-
s(f, { icon: "close" })
|
|
270
|
-
]),
|
|
271
|
-
previousitemicon: c(() => [
|
|
272
|
-
s(f, { icon: "arrow-left" })
|
|
273
|
-
]),
|
|
274
|
-
nextitemicon: c(() => [
|
|
275
|
-
s(f, { icon: "arrow-right" })
|
|
276
|
-
]),
|
|
277
|
-
previousthumbnailicon: c(() => [
|
|
278
|
-
s(f, { icon: "arrow-left" })
|
|
279
|
-
]),
|
|
280
|
-
nextthumbnailicon: c(() => [
|
|
281
|
-
s(f, { icon: "arrow-right" })
|
|
282
|
-
]),
|
|
283
|
-
footer: c(() => [
|
|
284
|
-
v("div", de, [
|
|
285
|
-
s(f, {
|
|
286
|
-
icon: "tile",
|
|
287
|
-
onClick: U
|
|
288
|
-
}),
|
|
289
|
-
t.value.length ? (I(), L("span", me, [
|
|
290
|
-
v("span", null, g(o.value + 1) + "/" + g(t.value.length), 1),
|
|
291
|
-
v("span", null, g(t.value[o.value].title), 1),
|
|
292
|
-
v("span", null, g(t.value[o.value].description), 1)
|
|
293
|
-
])) : q("", !0),
|
|
294
|
-
v("div", ve, [
|
|
295
|
-
s(f, {
|
|
296
|
-
icon: "download",
|
|
297
|
-
onClick: m[0] || (m[0] = (l) => p("download", o.value))
|
|
298
|
-
}),
|
|
299
|
-
s(f, {
|
|
300
|
-
icon: "bucket",
|
|
301
|
-
onClick: H
|
|
302
|
-
}),
|
|
303
|
-
s(f, {
|
|
304
|
-
icon: i(d) ? "collapse" : "expand",
|
|
305
|
-
onClick: i(h)
|
|
306
|
-
}, null, 8, ["icon", "onClick"])
|
|
307
|
-
])
|
|
308
|
-
])
|
|
309
|
-
]),
|
|
310
|
-
_: 1
|
|
311
|
-
}, 8, ["visible", "active-index", "value", "show-thumbnails", "pt"]),
|
|
312
|
-
s(ce, {
|
|
313
|
-
shown: i(x),
|
|
314
|
-
callback: i(z),
|
|
315
|
-
"delete-count": i(N),
|
|
316
|
-
onClose: i(T)
|
|
317
|
-
}, null, 8, ["shown", "callback", "delete-count", "onClose"])
|
|
318
|
-
], 64);
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
});
|
|
322
|
-
export {
|
|
323
|
-
ge as default
|
|
324
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { i as _, e as v } from "./isObject-DB0eH0MA.js";
|
|
2
|
-
import { resolveComponent as B, createElementBlock as d, openBlock as u, createVNode as $, TransitionGroup as g, withCtx as w, Fragment as x, renderList as N, createBlock as b, createTextVNode as y, toDisplayString as k } from "vue";
|
|
3
|
-
import { _ as C } from "./install-BEn6vjFW.js";
|
|
4
|
-
const D = (t) => _(t) && (t.entity || t.module), i = (t) => (o) => (...n) => {
|
|
5
|
-
var s;
|
|
6
|
-
if (D(n[0])) {
|
|
7
|
-
const f = n[0], { app: r = t, entity: a = "", module: e = "" } = f, c = /* @__PURE__ */ new Date(), l = ((s = window == null ? void 0 : window.location) == null ? void 0 : s.href) || "non-browser env";
|
|
8
|
-
return (...h) => {
|
|
9
|
-
const m = `@webitel/${r}:${a}:${e}:`, p = `[${c}][${l}]`;
|
|
10
|
-
return console[o](m, ...h, p);
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
return console[o](...n);
|
|
14
|
-
}, T = (t) => ({
|
|
15
|
-
info: i(t)("info"),
|
|
16
|
-
warn: i(t)("warn"),
|
|
17
|
-
error: i(t)("error"),
|
|
18
|
-
log: i(t)("log")
|
|
19
|
-
}), j = T("ui-sdk"), L = {
|
|
20
|
-
name: "WtNotificationsBar",
|
|
21
|
-
inject: [
|
|
22
|
-
"$eventBus"
|
|
23
|
-
],
|
|
24
|
-
data: () => ({
|
|
25
|
-
notificationDuration: 4e3,
|
|
26
|
-
notifications: [],
|
|
27
|
-
eventBus: v
|
|
28
|
-
}),
|
|
29
|
-
created() {
|
|
30
|
-
this.$eventBus ? this.eventBus = this.$eventBus : j.warn({
|
|
31
|
-
entity: "component",
|
|
32
|
-
module: "wt-notification-bar"
|
|
33
|
-
})(
|
|
34
|
-
"no globally provided $eventBus found, using default webitel-ui eventBus"
|
|
35
|
-
), this.eventBus.$on("notification", this.showNotification);
|
|
36
|
-
},
|
|
37
|
-
unmounted() {
|
|
38
|
-
this.eventBus.$off("notification", this.showNotification);
|
|
39
|
-
},
|
|
40
|
-
methods: {
|
|
41
|
-
showNotification(t) {
|
|
42
|
-
this.notifications.unshift(t), setTimeout(
|
|
43
|
-
() => this.closeNotification(t),
|
|
44
|
-
t.timeout * 1e3 || this.notificationDuration
|
|
45
|
-
);
|
|
46
|
-
},
|
|
47
|
-
closeNotification(t) {
|
|
48
|
-
const o = this.notifications.indexOf(t);
|
|
49
|
-
this.notifications.splice(o, 1);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}, O = { class: "wt-notifications-bar wt-scrollbar" };
|
|
53
|
-
function V(t, o, n, s, f, r) {
|
|
54
|
-
const a = B("wt-notification");
|
|
55
|
-
return u(), d("aside", O, [
|
|
56
|
-
$(g, {
|
|
57
|
-
class: "wt-notifications-bar__wrapper",
|
|
58
|
-
name: "wt-notifications-transition",
|
|
59
|
-
tag: "div"
|
|
60
|
-
}, {
|
|
61
|
-
default: w(() => [
|
|
62
|
-
(u(!0), d(x, null, N(t.notifications, (e, c) => (u(), b(a, {
|
|
63
|
-
key: c + e.text,
|
|
64
|
-
type: e.type,
|
|
65
|
-
onClose: (l) => r.closeNotification(e)
|
|
66
|
-
}, {
|
|
67
|
-
default: w(() => [
|
|
68
|
-
y(k(e.text), 1)
|
|
69
|
-
], void 0, !0),
|
|
70
|
-
_: 2
|
|
71
|
-
}, 1032, ["type", "onClose"]))), 128))
|
|
72
|
-
], void 0, !0),
|
|
73
|
-
_: 1
|
|
74
|
-
})
|
|
75
|
-
]);
|
|
76
|
-
}
|
|
77
|
-
const I = /* @__PURE__ */ C(L, [["render", V], ["__scopeId", "data-v-8f1de0c8"]]);
|
|
78
|
-
export {
|
|
79
|
-
I as default
|
|
80
|
-
};
|