@webitel/ui-sdk 26.6.34 → 26.6.36

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.
Files changed (182) hide show
  1. package/dist/AgentStatus.enum-C3IGHtvR.js +9 -0
  2. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  3. package/dist/caseConverters-DXegZoCt.js +27 -0
  4. package/dist/chunk-CY3AvKd6.js +20 -0
  5. package/dist/clients-A6MHYfOX.js +36118 -0
  6. package/dist/components-DFOWyAAb.js +5395 -0
  7. package/dist/composables-DnDH-KUv.js +263 -0
  8. package/dist/convertDuration-1K7fuEpO.js +8 -0
  9. package/dist/debounce-DrmECuJ2.js +128 -0
  10. package/dist/deep-copy-CQw5yeEH.js +41 -0
  11. package/dist/displayText-CtaxzaBz.js +3 -0
  12. package/dist/dist-05Bf47Wg.js +87 -0
  13. package/dist/dist-BYiYpK00.js +7 -0
  14. package/dist/dist-Dz55hlwp.js +1371 -0
  15. package/dist/engineCallFileType-D7QVFOac.js +11 -0
  16. package/dist/enums-pbYAJNeb.js +158 -0
  17. package/dist/errors-SUXKojVW.js +69 -0
  18. package/dist/floating-ui.dom-n2j9PKCB.js +842 -0
  19. package/dist/generateInstance-ppTIeLX4.js +2582 -0
  20. package/dist/isObject-Dgs_L5xI.js +11 -0
  21. package/dist/logger-hl3ueNok.js +47 -0
  22. package/dist/prod-Cp0BjuxI.js +775 -0
  23. package/dist/prod-DSuxcp5t.js +2 -0
  24. package/dist/side-channel-Cyte-MzW.js +833 -0
  25. package/dist/sortQueryAdapters-CyYXvnDN.js +14 -0
  26. package/dist/srt-parser-DdH5U08c.js +21 -0
  27. package/dist/ssa-parser-Bjs7yDD1.js +184 -0
  28. package/dist/ui-sdk.css +2 -1
  29. package/dist/ui-sdk.js +34567 -4
  30. package/dist/ui-sdk.umd.cjs +7748 -7606
  31. package/dist/useExpansion-DVdIpoOn.js +24 -0
  32. package/dist/useValidation-DG0tifBv.js +37 -0
  33. package/dist/useVidstackSrc-DfNrFbOO.js +155 -0
  34. package/dist/useWtTable-tqmVOvve.js +12 -0
  35. package/dist/vidstack-B01xzxC4-DeYSgDZy.js +7 -0
  36. package/dist/vidstack-BGSTndAW-CyKM_CM4.js +957 -0
  37. package/dist/vidstack-BQlOPwOu-ChhdffAJ.js +43 -0
  38. package/dist/vidstack-Bq6c3Bam-3dCf_D36.js +398 -0
  39. package/dist/vidstack-C2US-gSO-DeIgENrW.js +127 -0
  40. package/dist/vidstack-C9vIqaYT-C1EgPq17.js +9 -0
  41. package/dist/vidstack-CTojmhKq-D7sZJxgm.js +30 -0
  42. package/dist/vidstack-ChQTHmIQ-nTO94M6P.js +51 -0
  43. package/dist/vidstack-Ci54COQW-CAAXpwzv.js +208 -0
  44. package/dist/vidstack-D2pY00kU-DoW028io.js +70 -0
  45. package/dist/vidstack-D5EzK014-DOe01V3H.js +14 -0
  46. package/dist/vidstack-DDXt6fpN-Don_e6LS.js +42 -0
  47. package/dist/vidstack-D_-9AA6_-Dq3APB0-.js +19 -0
  48. package/dist/vidstack-Dihypf8P-ibWMCHK-.js +12 -0
  49. package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +31 -0
  50. package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +22 -0
  51. package/dist/vidstack-audio-B58bvsna.js +23 -0
  52. package/dist/vidstack-dash-CX-LTHx3.js +332 -0
  53. package/dist/vidstack-google-cast-Co5Q_rfL.js +361 -0
  54. package/dist/vidstack-hls-CLzdTFu6.js +269 -0
  55. package/dist/vidstack-krOAtKMi-DN1WZC3p.js +30 -0
  56. package/dist/vidstack-video-XtP8iTBc.js +151 -0
  57. package/dist/vidstack-vimeo-EzzPpggD.js +386 -0
  58. package/dist/vidstack-youtube-C1_NAfWa.js +205 -0
  59. package/dist/vue-i18n-B8Px6VcD.js +2201 -0
  60. package/dist/wt-action-bar-Ba1ZJjE_.js +85 -0
  61. package/dist/wt-button-DENbrKdy.js +785 -0
  62. package/dist/wt-button-select-BnRHgJ4i.js +80 -0
  63. package/dist/wt-call-media-action-Bkyppnsm.js +42 -0
  64. package/dist/wt-chat-emoji-D3SBme6f.js +2208 -0
  65. package/dist/wt-confirm-dialog-DCUitG2v.js +70 -0
  66. package/dist/wt-context-menu-yW52oF-2.js +89 -0
  67. package/dist/wt-copy-action-d9gVzAsB.js +38 -0
  68. package/dist/wt-datepicker-Cnbarx_j.js +5774 -0
  69. package/dist/wt-display-chip-items-DagfTTIq.js +34 -0
  70. package/dist/wt-dual-panel-DAhTYFS_.js +49 -0
  71. package/dist/wt-dummy-CLjhRWZ6.js +59 -0
  72. package/dist/wt-error-page-vhu4lIyF.js +62 -0
  73. package/dist/wt-expand-transition-C2p9bR4j.js +39 -0
  74. package/dist/wt-expansion-card-qsxvbtZm.js +47 -0
  75. package/dist/wt-expansion-panel-C_EXvx1d.js +40 -0
  76. package/dist/wt-filters-panel-wrapper-Cc9b3aci.js +51 -0
  77. package/dist/wt-galleria-CWXKuZTD.js +224 -0
  78. package/dist/wt-icon-action-CQlZHMDB.js +100 -0
  79. package/dist/wt-icon-btn-CjjI4cgE.js +107 -0
  80. package/dist/wt-icon-pxO7IjwV.js +1026 -0
  81. package/dist/wt-inline-add-panel-B0E4Vk2l.js +43 -0
  82. package/dist/wt-navigation-menu-CenQi_-T.js +126 -0
  83. package/dist/wt-notifications-bar-Ep1QuFZi.js +52 -0
  84. package/dist/wt-page-header-CDbd4aOh.js +59 -0
  85. package/dist/wt-pagination-BA_PZPIE.js +94 -0
  86. package/dist/wt-player-uidPXSTe.js +287 -0
  87. package/dist/wt-popover-CJZH3wMl.js +98 -0
  88. package/dist/wt-screen-recordings-action-Dg7Ts2Jt.js +37 -0
  89. package/dist/wt-search-bar-CWZdvAOf.js +123 -0
  90. package/dist/wt-selection-popup-B77UY7Yu.js +79 -0
  91. package/dist/wt-send-message-popup-CltYZA9D.js +77 -0
  92. package/dist/wt-slider-BS3SoGht.js +68 -0
  93. package/dist/wt-start-page-eN1PEokc.js +86 -0
  94. package/dist/wt-status-select-A5t6Vjm4.js +101 -0
  95. package/dist/wt-stepper-B6zpd1Uh.js +41 -0
  96. package/dist/wt-table-D0FynxIE.js +364 -0
  97. package/dist/wt-table-actions-4-peSVkc.js +63 -0
  98. package/dist/wt-table-column-select-DFF6z3a3.js +100 -0
  99. package/dist/wt-tabs-DuOgj-lZ.js +60 -0
  100. package/dist/wt-time-input-CO2cop3y.js +62 -0
  101. package/dist/wt-timepicker-BltFF1QD.js +145 -0
  102. package/dist/wt-tree-ZyoPrNOl.js +1206 -0
  103. package/dist/wt-tree-table-MLET4gIv.js +221 -0
  104. package/dist/wt-type-extension-value-input-028o8xRF.js +104 -0
  105. package/dist/wt-vidstack-player-B-WSB_Be.js +7440 -0
  106. package/package.json +5 -5
  107. package/src/components/wt-multi-select/wt-multi-select.vue +3 -0
  108. package/src/components/wt-single-select/wt-single-select.vue +5 -0
  109. package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +3 -3
  110. package/src/plugins/primevue/theme/components/multi-select/multi-select.js +4 -0
  111. package/src/plugins/primevue/theme/components/single-select/single-select.js +4 -0
  112. package/types/plugins/primevue/theme/components/multi-select/multi-select.d.ts +2 -0
  113. package/types/plugins/primevue/theme/components/single-select/single-select.d.ts +2 -0
  114. package/dist/contacts-DzLKP4GQ.js +0 -49654
  115. package/dist/displayText-Cbh4IOfM.js +0 -5
  116. package/dist/engineCallFileType-yaadA7-2.js +0 -8
  117. package/dist/errors-CTL-RV3B.js +0 -70
  118. package/dist/index-BgLoxAyu.js +0 -50
  119. package/dist/install-Cm-8fwtB.js +0 -53489
  120. package/dist/isObject-BSIwu4UO.js +0 -28
  121. package/dist/prod-BoQuiIB3.js +0 -973
  122. package/dist/srt-parser-CsN7bp5E.js +0 -26
  123. package/dist/ssa-parser-BJOOPeQF.js +0 -200
  124. package/dist/useExpansion-BrQ40HiR.js +0 -24
  125. package/dist/useVidstackSrc-DKXY5f7v.js +0 -1341
  126. package/dist/vidstack-Bq6c3Bam-BHF-0bv4.js +0 -426
  127. package/dist/vidstack-D2pY00kU-B8Mhvp0m.js +0 -136
  128. package/dist/vidstack-DDXt6fpN-D0eou9h7.js +0 -51
  129. package/dist/vidstack-D_-9AA6_-DYAfclN7.js +0 -21
  130. package/dist/vidstack-Dm1xEU9Q-CXHNvShT.js +0 -30
  131. package/dist/vidstack-DqAw8m9J-b5BHkhrw.js +0 -22
  132. package/dist/vidstack-audio-CPu_TbjK.js +0 -28
  133. package/dist/vidstack-dash-VYriMjws.js +0 -393
  134. package/dist/vidstack-google-cast-Byp1cemB.js +0 -383
  135. package/dist/vidstack-hls-DdUQcmEx.js +0 -310
  136. package/dist/vidstack-krOAtKMi-C50BTxmn.js +0 -28
  137. package/dist/vidstack-video-BpSKQ3wb.js +0 -164
  138. package/dist/vidstack-vimeo-CgVJJm06.js +0 -452
  139. package/dist/vidstack-youtube-DuES80MV.js +0 -233
  140. package/dist/wt-action-bar-TMuck-q1.js +0 -102
  141. package/dist/wt-button-select-D1NP5Xw9.js +0 -105
  142. package/dist/wt-call-media-action-BsepfSVy.js +0 -60
  143. package/dist/wt-chat-emoji-B00dUXbP.js +0 -2909
  144. package/dist/wt-confirm-dialog-1hO851Da.js +0 -92
  145. package/dist/wt-context-menu-BrzRmoDw.js +0 -104
  146. package/dist/wt-copy-action-CEMOiYzN.js +0 -60
  147. package/dist/wt-datepicker-DHqZIkg2.js +0 -5660
  148. package/dist/wt-display-chip-items-D7kEAcOo.js +0 -47
  149. package/dist/wt-dual-panel-DEWR3-k-.js +0 -66
  150. package/dist/wt-dummy-DfgxciHw.js +0 -104
  151. package/dist/wt-error-page-DUSVxkXq.js +0 -89
  152. package/dist/wt-expansion-card-B8JKBMLa.js +0 -56
  153. package/dist/wt-expansion-panel-DL3eoj_b.js +0 -54
  154. package/dist/wt-filters-panel-wrapper-CGXQiRvh.js +0 -75
  155. package/dist/wt-galleria-Bahv6Mgq.js +0 -323
  156. package/dist/wt-inline-add-panel-B4RjHVDI.js +0 -49
  157. package/dist/wt-navigation-menu-DqCXAV8E.js +0 -159
  158. package/dist/wt-notifications-bar-CRIKdVai.js +0 -79
  159. package/dist/wt-page-header-DdsnoLgd.js +0 -115
  160. package/dist/wt-pagination-C_b3WmH1.js +0 -144
  161. package/dist/wt-player-B4GWEqdu.js +0 -291
  162. package/dist/wt-popover-Di-7_rDL.js +0 -4
  163. package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +0 -81
  164. package/dist/wt-screen-recordings-action-B4OpN5kl.js +0 -54
  165. package/dist/wt-search-bar-B_0_YwCn.js +0 -144
  166. package/dist/wt-selection-popup-Boyw9_V_.js +0 -109
  167. package/dist/wt-send-message-popup-0C23Zocu.js +0 -579
  168. package/dist/wt-slider-BEkw4KGp.js +0 -4
  169. package/dist/wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js +0 -55
  170. package/dist/wt-start-page-HQMIG05a.js +0 -99
  171. package/dist/wt-status-select-H_me1xwA.js +0 -138
  172. package/dist/wt-stepper-hJxqyiyo.js +0 -65
  173. package/dist/wt-table-Du6mtkPw.js +0 -426
  174. package/dist/wt-table-actions-ah_H6LY9.js +0 -79
  175. package/dist/wt-table-column-select-C2Nbic5-.js +0 -128
  176. package/dist/wt-tabs-D4aGEd_t.js +0 -74
  177. package/dist/wt-time-input-DYiW0ijt.js +0 -42
  178. package/dist/wt-timepicker-BE8POMhF.js +0 -118
  179. package/dist/wt-tree-table-BJxaXqKl.js +0 -285
  180. package/dist/wt-tree-u0Zp8nb5.js +0 -2777
  181. package/dist/wt-type-extension-value-input-C1VlNa4K.js +0 -121
  182. package/dist/wt-vidstack-player-C1eyCEzP.js +0 -9094
@@ -1,56 +0,0 @@
1
- import { defineComponent as x, toRef as _, resolveComponent as v, createElementBlock as C, openBlock as b, normalizeClass as i, createElementVNode as d, withDirectives as y, renderSlot as p, createVNode as l, withCtx as z, vShow as h, unref as e, withKeys as E, normalizeProps as $, guardReactiveProps as g } from "vue";
2
- import { C as k, W as B, _ as S } from "./install-Cm-8fwtB.js";
3
- import { u as D } from "./useExpansion-BrQ40HiR.js";
4
- const K = { class: "wt-expansion-card-body" }, N = /* @__PURE__ */ x({
5
- __name: "wt-expansion-card",
6
- props: {
7
- size: { default: k.MD },
8
- collapsed: { type: Boolean, default: !1 }
9
- },
10
- emits: ["opened", "closed"],
11
- setup(c, { emit: m }) {
12
- const n = c, u = m, { opened: s, open: w, toggle: o } = D(_(n, "collapsed"), u);
13
- return (a, t) => {
14
- const f = v("wt-icon-btn");
15
- return b(), C("section", {
16
- class: i([[`wt-expansion-card--${n.size}`], "wt-expansion-card"])
17
- }, [
18
- d("header", {
19
- class: i([[n.size === "sm" ? "typo-subtitle-2" : "typo-subtitle-1"], "wt-expansion-card-header"]),
20
- tabindex: "0"
21
- }, [
22
- p(a.$slots, "header", {}, void 0, !0)
23
- ], 2),
24
- y(l(B, null, {
25
- default: z(() => [
26
- d("article", K, [
27
- p(a.$slots, "body", {}, void 0, !0)
28
- ])
29
- ], void 0, !0),
30
- _: 3
31
- }, 512), [
32
- [h, e(s)]
33
- ]),
34
- d("footer", {
35
- class: "wt-expansion-card-actions",
36
- onClick: t[0] || (t[0] = //@ts-ignore
37
- (...r) => e(o) && e(o)(...r)),
38
- onKeypress: t[1] || (t[1] = E(
39
- //@ts-ignore
40
- (...r) => e(o) && e(o)(...r),
41
- ["enter"]
42
- ))
43
- }, [
44
- p(a.$slots, "actions", $(g({ open: e(w), opened: e(s) })), void 0, !0),
45
- l(f, {
46
- class: i([{ "wt-expansion-card-arrow--opened": e(s) }, "wt-expansion-card-arrow"]),
47
- icon: "arrow-down"
48
- }, null, 8, ["class"])
49
- ], 32)
50
- ], 2);
51
- };
52
- }
53
- }), W = /* @__PURE__ */ S(N, [["__scopeId", "data-v-e8df807a"]]);
54
- export {
55
- W as default
56
- };
@@ -1,54 +0,0 @@
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 h, unref as e, renderSlot as r, createVNode as d, normalizeProps as E, guardReactiveProps as b, withCtx as g, vShow as $ } from "vue";
2
- import { C as k, W as B, _ as P } from "./install-Cm-8fwtB.js";
3
- import { u as S } from "./useExpansion-BrQ40HiR.js";
4
- const D = { class: "wt-expansion-panel-actions" }, K = { class: "wt-expansion-panel-body" }, N = /* @__PURE__ */ v({
5
- __name: "wt-expansion-panel",
6
- props: {
7
- size: { default: k.MD },
8
- collapsed: { type: Boolean, default: !1 }
9
- },
10
- emits: ["opened", "closed"],
11
- setup(c, { emit: m }) {
12
- const t = c, u = m, { opened: s, open: w, toggle: o } = S(x(t, "collapsed"), u);
13
- return (a, n) => {
14
- const f = _("wt-icon");
15
- return y(), C("div", {
16
- class: p([[`wt-expansion-panel--${t.size}`], "wt-expansion-panel"])
17
- }, [
18
- l("div", {
19
- class: p([[t.size === "sm" ? "typo-subtitle-2" : "typo-subtitle-1"], "wt-expansion-panel-header"]),
20
- tabindex: "0",
21
- onClick: n[0] || (n[0] = //@ts-ignore
22
- (...i) => e(o) && e(o)(...i)),
23
- onKeypress: n[1] || (n[1] = h(
24
- //@ts-ignore
25
- (...i) => e(o) && e(o)(...i),
26
- ["enter"]
27
- ))
28
- }, [
29
- r(a.$slots, "title", {}, void 0, !0),
30
- l("div", D, [
31
- r(a.$slots, "actions", E(b({ open: e(w), opened: e(s) })), void 0, !0),
32
- d(f, {
33
- class: p([{ "wt-expansion-panel-arrow--opened": e(s) }, "wt-expansion-panel-arrow"]),
34
- icon: "arrow-right"
35
- }, null, 8, ["class"])
36
- ])
37
- ], 34),
38
- z(d(B, null, {
39
- default: g(() => [
40
- l("div", K, [
41
- r(a.$slots, "default", {}, void 0, !0)
42
- ])
43
- ], void 0, !0),
44
- _: 3
45
- }, 512), [
46
- [$, e(s)]
47
- ])
48
- ], 2);
49
- };
50
- }
51
- }), I = /* @__PURE__ */ P(N, [["__scopeId", "data-v-a0c6afd9"]]);
52
- export {
53
- I as default
54
- };
@@ -1,75 +0,0 @@
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-Cm-8fwtB.js";
3
- const f = {
4
- name: "FiltersPanelWrapper",
5
- /**
6
- * @emits {void} reset - Filters reset click event
7
- */
8
- props: {
9
- /**
10
- * Array of table action icons to display
11
- * @type {Array}
12
- * @default ['filter-reset', 'settings']
13
- */
14
- tableActionIcons: {
15
- type: Array,
16
- default: () => [
17
- "filter-reset",
18
- "settings"
19
- ]
20
- },
21
- /**
22
- * Controls filters panel expansion state
23
- * @type {boolean}
24
- * @default false
25
- */
26
- isOpened: {
27
- type: Boolean,
28
- default: !1
29
- }
30
- },
31
- data() {
32
- return {
33
- localIsOpened: this.isOpened,
34
- filtersCount: 0
35
- };
36
- },
37
- methods: {
38
- tableActionsHandler(e) {
39
- switch (e) {
40
- case "filterReset":
41
- this.resetFilters();
42
- break;
43
- case "settings":
44
- this.toggleFiltersExpansion();
45
- break;
46
- }
47
- },
48
- toggleFiltersExpansion() {
49
- this.localIsOpened = !this.localIsOpened;
50
- },
51
- resetFilters() {
52
- this.$emit("reset");
53
- }
54
- }
55
- }, _ = { class: "filters-wrap" }, u = { class: "actions-wrap" };
56
- function m(e, h, t, b, w, n) {
57
- const a = r("wt-table-actions");
58
- return o(), l("article", {
59
- class: i([{ "filters-panel-wrapper--opened": t.isOpened }, "filters-panel-wrapper"])
60
- }, [
61
- s("div", _, [
62
- c(e.$slots, "default", {}, void 0, !0)
63
- ]),
64
- s("div", u, [
65
- p(a, {
66
- icons: t.tableActionIcons,
67
- onInput: n.tableActionsHandler
68
- }, null, 8, ["icons", "onInput"])
69
- ])
70
- ], 2);
71
- }
72
- const F = /* @__PURE__ */ d(f, [["render", m], ["__scopeId", "data-v-f81aca94"]]);
73
- export {
74
- F as default
75
- };
@@ -1,323 +0,0 @@
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-Cm-8fwtB.js";
3
- const le = () => {
4
- const e = k(!1), c = () => {
5
- e.value ? l() : v();
6
- }, t = () => {
7
- e.value = !e.value;
8
- }, v = () => {
9
- const o = document.querySelector(".p-galleria");
10
- o.requestFullscreen ? o.requestFullscreen() : o.mozRequestFullScreen ? o.mozRequestFullScreen() : o.webkitRequestFullscreen ? o.webkitRequestFullscreen() : o.msRequestFullscreen && o.msRequestFullscreen();
11
- }, l = () => {
12
- document.exitFullscreen ? document.exitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen && document.msExitFullscreen();
13
- }, n = () => {
14
- document.addEventListener("fullscreenchange", t), document.addEventListener("mozfullscreenchange", t), document.addEventListener("webkitfullscreenchange", t), document.addEventListener("msfullscreenchange", t);
15
- }, r = () => {
16
- document.removeEventListener("fullscreenchange", t), document.removeEventListener("mozfullscreenchange", t), document.removeEventListener("webkitfullscreenchange", t), document.removeEventListener("msfullscreenchange", t);
17
- };
18
- return P(() => {
19
- n();
20
- }), D(() => {
21
- r();
22
- }), {
23
- fullScreen: e,
24
- toggleFullScreen: c
25
- };
26
- }, ne = (e) => {
27
- const c = ({ target: l }) => {
28
- l.classList.contains("p-galleria-mask") && (e.value = !1);
29
- };
30
- return {
31
- listenMaskElementClick: () => {
32
- document.querySelector(".p-galleria-mask")?.addEventListener("click", c);
33
- },
34
- removeMaskElementClick: () => {
35
- document.querySelector(".p-galleria-mask")?.removeEventListener("click", c);
36
- }
37
- };
38
- }, oe = () => {
39
- const e = k(!1), c = k(0), t = k(() => {
40
- });
41
- function v({ deleted: n, callback: r }) {
42
- Array.isArray(n) ? c.value = n.length : c.value = 1, e.value = !0, t.value = r;
43
- }
44
- function l() {
45
- e.value = !1;
46
- }
47
- return {
48
- isVisible: e,
49
- deleteCount: c,
50
- deleteCallback: t,
51
- askDeleteConfirmation: v,
52
- closeDelete: l
53
- };
54
- }, ae = { class: "delete-confirmation-popup__content" }, ie = { class: "delete-confirmation-popup__message" }, se = {
55
- __name: "delete-confirmation-popup",
56
- props: {
57
- deleteCount: {
58
- type: Number,
59
- required: !0
60
- },
61
- callback: {
62
- type: Function,
63
- required: !0
64
- }
65
- },
66
- emits: [
67
- "close"
68
- ],
69
- setup(e, { emit: c }) {
70
- const t = e, v = Z(), { t: l } = te(), n = $(() => t.deleteCount === 0 ? l("webitelUI.deleteConfirmationPopup.tableAskingAlert", 2, null, {
71
- count: l("webitelUI.deleteConfirmationPopup.deleteAll")
72
- }) : l(
73
- "webitelUI.deleteConfirmationPopup.tableAskingAlert",
74
- {
75
- count: t.deleteCount
76
- },
77
- null
78
- ));
79
- return (r, o) => {
80
- const _ = w("wt-icon"), u = w("wt-button"), h = w("wt-confirm-dialog");
81
- return y(), A(h, j(i(v), {
82
- class: "delete-confirmation-popup",
83
- title: r.$t("webitelUI.deleteConfirmationPopup.title"),
84
- callback: e.callback,
85
- onClose: o[0] || (o[0] = (b) => r.$emit("close"))
86
- }), {
87
- main: s(() => [
88
- m("div", ae, [
89
- a(_, {
90
- color: "error",
91
- icon: "attention"
92
- }),
93
- m("p", ie, [
94
- J(r.$slots, "deleteMessage", {}, () => [
95
- x(g(n.value), 1)
96
- ], !0)
97
- ])
98
- ])
99
- ]),
100
- actions: s(({ isDeleting: b, close: C, confirm: I }) => [
101
- a(u, {
102
- loading: b,
103
- onClick: I
104
- }, {
105
- default: s(() => [
106
- x(g(r.$t("vocabulary.yes")), 1)
107
- ], void 0, !0),
108
- _: 1
109
- }, 8, ["loading", "onClick"]),
110
- a(u, {
111
- disabled: b,
112
- color: "secondary",
113
- onClick: C
114
- }, {
115
- default: s(() => [
116
- x(g(r.$t("vocabulary.no")), 1)
117
- ], void 0, !0),
118
- _: 1
119
- }, 8, ["disabled", "onClick"])
120
- ]),
121
- _: 3
122
- }, 16, ["title", "callback"]);
123
- };
124
- }
125
- }, ce = /* @__PURE__ */ ee(se, [["__scopeId", "data-v-95c498c1"]]), re = ["src", "alt"], ue = ["src", "alt"], de = { class: "wt-galleria__footer" }, me = {
126
- key: 0,
127
- class: "wt-galleria__footer-info"
128
- }, ve = { class: "wt-galleria__footer-actions" }, ge = /* @__PURE__ */ K({
129
- __name: "wt-galleria",
130
- props: /* @__PURE__ */ B({
131
- value: {},
132
- id: {},
133
- activeIndex: {},
134
- fullScreen: { type: Boolean },
135
- visible: { type: Boolean },
136
- numVisible: {},
137
- responsiveOptions: {},
138
- showItemNavigators: { type: Boolean },
139
- showThumbnailNavigators: { type: Boolean },
140
- showItemNavigatorsOnHover: { type: Boolean },
141
- changeItemOnIndicatorHover: { type: Boolean },
142
- circular: { type: Boolean },
143
- autoPlay: { type: Boolean },
144
- transitionInterval: {},
145
- showThumbnails: { type: Boolean },
146
- thumbnailsPosition: {},
147
- verticalThumbnailViewPortHeight: {},
148
- showIndicators: { type: Boolean },
149
- showIndicatorsOnItem: { type: Boolean },
150
- indicatorsPosition: {},
151
- baseZIndex: {},
152
- maskClass: {},
153
- containerStyle: {},
154
- containerClass: {},
155
- containerProps: {},
156
- prevButtonProps: {},
157
- nextButtonProps: {},
158
- ariaLabel: {},
159
- ariaRoledescription: {},
160
- dt: {},
161
- pt: {},
162
- ptOptions: {},
163
- unstyled: { type: Boolean }
164
- }, {
165
- visible: { type: Boolean, required: !0 },
166
- visibleModifiers: {},
167
- activeIndex: {
168
- default: 0,
169
- required: !1
170
- },
171
- activeIndexModifiers: {}
172
- }),
173
- emits: /* @__PURE__ */ B([
174
- "download",
175
- "delete"
176
- ], ["update:visible", "update:activeIndex"]),
177
- setup(e, { emit: c }) {
178
- const t = e, v = c, l = S(e, "visible"), n = S(e, "activeIndex"), r = $(() => t.value[n.value]), o = k(!0), _ = k(!0), { fullScreen: u, toggleFullScreen: h } = le(), { listenMaskElementClick: b, removeMaskElementClick: C } = ne(l), {
179
- isVisible: I,
180
- deleteCount: N,
181
- deleteCallback: V,
182
- askDeleteConfirmation: z,
183
- closeDelete: R
184
- } = oe(), T = () => {
185
- _.value = !_.value;
186
- }, U = () => {
187
- o.value = !1;
188
- }, O = () => {
189
- u.value && h(), z({
190
- deleteCount: 1,
191
- callback: () => v("delete", n)
192
- });
193
- };
194
- return F(
195
- () => r.value,
196
- (E, f) => {
197
- E?.src !== f?.src && (o.value = !0);
198
- },
199
- {
200
- deep: !0
201
- }
202
- ), F(
203
- () => l.value,
204
- () => {
205
- l.value ? Q(() => {
206
- b();
207
- }) : (n.value = 0, C());
208
- }
209
- ), F(
210
- () => t.value,
211
- () => {
212
- t.value.length || (l.value = !1);
213
- }
214
- ), P(() => {
215
- l.value && b();
216
- }), D(() => {
217
- C();
218
- }), (E, f) => {
219
- const H = w("wt-loader"), p = w("wt-icon"), G = w("p-galleria");
220
- return y(), L(W, null, [
221
- a(G, {
222
- visible: l.value,
223
- "onUpdate:visible": f[1] || (f[1] = (d) => l.value = d),
224
- "active-index": n.value,
225
- "onUpdate:activeIndex": f[2] || (f[2] = (d) => n.value = d),
226
- value: e.value,
227
- "show-thumbnails": _.value,
228
- "full-screen": "",
229
- circular: "",
230
- "show-item-navigators": "",
231
- "num-visible": 5,
232
- pt: {
233
- root: {
234
- class: [{ "flex flex-col": i(u) }]
235
- },
236
- content: {
237
- class: ["relative", { "wt-galleria__content--fullscreen": i(u) }]
238
- },
239
- thumbnails: "wt-galleria__thumbnails",
240
- closeButton: {
241
- style: { display: i(u) ? "none" : "block" }
242
- }
243
- }
244
- }, {
245
- item: s(({ item: d }) => [
246
- m("div", {
247
- class: M(["wt-galleria__image-container", { "wt-galleria__image-container--preview": !i(u) }])
248
- }, [
249
- o.value ? (y(), A(H, { key: 0 })) : q("", !0),
250
- X(m("img", {
251
- class: M(["wt-galleria__image", { "wt-galleria__image--fullscreen": i(u) }]),
252
- src: d?.src,
253
- alt: d?.title,
254
- onLoad: U
255
- }, null, 42, re), [
256
- [Y, !o.value]
257
- ])
258
- ], 2)
259
- ]),
260
- thumbnail: s(({ item: d }) => [
261
- m("img", {
262
- src: d?.thumbnailSrc,
263
- alt: d?.title,
264
- class: "wt-galleria__thumbnail"
265
- }, null, 8, ue)
266
- ]),
267
- closeicon: s(() => [
268
- a(p, { icon: "close" })
269
- ]),
270
- previousitemicon: s(() => [
271
- a(p, { icon: "arrow-left" })
272
- ]),
273
- nextitemicon: s(() => [
274
- a(p, { icon: "arrow-right" })
275
- ]),
276
- previousthumbnailicon: s(() => [
277
- a(p, { icon: "arrow-left" })
278
- ]),
279
- nextthumbnailicon: s(() => [
280
- a(p, { icon: "arrow-right" })
281
- ]),
282
- footer: s(() => [
283
- m("div", de, [
284
- a(p, {
285
- icon: "tile",
286
- onClick: T
287
- }),
288
- e.value.length ? (y(), L("span", me, [
289
- m("span", null, g(n.value + 1) + "/" + g(e.value.length), 1),
290
- m("span", null, g(e.value[n.value].title), 1),
291
- m("span", null, g(e.value[n.value].description), 1)
292
- ])) : q("", !0),
293
- m("div", ve, [
294
- a(p, {
295
- icon: "download",
296
- onClick: f[0] || (f[0] = (d) => v("download", n.value))
297
- }),
298
- a(p, {
299
- icon: "bucket",
300
- onClick: O
301
- }),
302
- a(p, {
303
- icon: i(u) ? "collapse" : "expand",
304
- onClick: i(h)
305
- }, null, 8, ["icon", "onClick"])
306
- ])
307
- ])
308
- ]),
309
- _: 1
310
- }, 8, ["visible", "active-index", "value", "show-thumbnails", "pt"]),
311
- a(ce, {
312
- shown: i(I),
313
- callback: i(V),
314
- "delete-count": i(N),
315
- onClose: i(R)
316
- }, null, 8, ["shown", "callback", "delete-count", "onClose"])
317
- ], 64);
318
- };
319
- }
320
- });
321
- export {
322
- ge as default
323
- };
@@ -1,49 +0,0 @@
1
- import { defineComponent as a, resolveComponent as r, createElementBlock as m, openBlock as p, withModifiers as u, normalizeClass as _, renderSlot as f, createElementVNode as b, createVNode as i } from "vue";
2
- import { _ as w } from "./install-Cm-8fwtB.js";
3
- const k = { class: "wt-inline-add-panel__actions" }, v = /* @__PURE__ */ a({
4
- __name: "wt-inline-add-panel",
5
- props: {
6
- disabledAddAction: { type: Boolean, default: !1 },
7
- direction: { default: "row" }
8
- },
9
- emits: [
10
- "submit",
11
- "reset"
12
- ],
13
- setup(d, { emit: s }) {
14
- const e = d, t = s;
15
- function n() {
16
- t("submit");
17
- }
18
- function l() {
19
- t("reset");
20
- }
21
- return (c, A) => {
22
- const o = r("wt-button");
23
- return p(), m("form", {
24
- class: _(["wt-inline-add-panel", [`wt-inline-add-panel--${e.direction}`]]),
25
- onSubmit: u(n, ["prevent"])
26
- }, [
27
- f(c.$slots, "default", {}, void 0, !0),
28
- b("div", k, [
29
- i(o, {
30
- disabled: e.disabledAddAction,
31
- icon: "tick",
32
- color: "secondary",
33
- outlined: "",
34
- onClick: n
35
- }, null, 8, ["disabled"]),
36
- i(o, {
37
- icon: "close",
38
- outlined: "",
39
- color: "secondary",
40
- onClick: l
41
- })
42
- ])
43
- ], 34);
44
- };
45
- }
46
- }), y = /* @__PURE__ */ w(v, [["__scopeId", "data-v-c6373132"]]);
47
- export {
48
- y as default
49
- };