@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,159 +0,0 @@
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-Cm-8fwtB.js";
3
- const V = { class: "nav-menu__category nav-menu-lvl-1" }, B = ["onClick"], D = {
4
- __name: "nav-menu-lvl-1",
5
- props: {
6
- categories: {
7
- type: Array,
8
- default: () => []
9
- },
10
- selected: {
11
- type: Object,
12
- default: () => ({})
13
- },
14
- icons: {
15
- type: Array,
16
- default: () => []
17
- }
18
- },
19
- emits: [
20
- "select"
21
- ],
22
- setup(n, { emit: r }) {
23
- const s = r;
24
- function u(a) {
25
- s("select", a);
26
- }
27
- return (a, i) => {
28
- const d = h("wt-icon");
29
- return c(), l("ul", V, [
30
- (c(!0), l(w, null, b(n.categories, (o, f) => (c(), l("li", {
31
- key: f,
32
- class: "nav-menu__option"
33
- }, [
34
- p("button", {
35
- class: C([{
36
- "nav-menu__item--selected": n.selected.value === o.value
37
- }, "typo-body-1 nav-menu__item nav-menu__item--active"]),
38
- onClick: (e) => u(o)
39
- }, [
40
- _(d, {
41
- color: n.selected.value === o.value ? "on-primary" : "default",
42
- icon: n.icons.find((e) => e.includes(o.value))
43
- }, null, 8, ["color", "icon"]),
44
- k(" " + $(o.name), 1)
45
- ], 10, B),
46
- N(p("div", null, [
47
- S(a.$slots, "default", {}, void 0, !0)
48
- ], 512), [
49
- [E, n.selected.value === o.value]
50
- ])
51
- ]))), 128))
52
- ]);
53
- };
54
- }
55
- }, j = /* @__PURE__ */ g(D, [["__scopeId", "data-v-dd3e01a2"]]), q = { class: "nav-menu__category nav-menu-lvl-2" }, z = {
56
- __name: "nav-menu-lvl-2",
57
- props: {
58
- categories: {
59
- type: Array,
60
- default: () => []
61
- }
62
- },
63
- setup(n) {
64
- return (r, s) => {
65
- const u = h("router-link");
66
- return c(), l("ul", q, [
67
- (c(!0), l(w, null, b(n.categories, (a, i) => (c(), l("li", {
68
- key: i,
69
- class: "typo-body-1 nav-menu__option nav-menu__item nav-menu-lvl-2--inner"
70
- }, [
71
- s[0] || (s[0] = p("span", { class: "nav-menu-lvl-2__indicator" }, null, -1)),
72
- _(u, {
73
- to: a.route,
74
- class: "nav-menu-lvl-2__link"
75
- }, {
76
- default: A(() => [
77
- k($(a.name), 1)
78
- ], void 0, !0),
79
- _: 2
80
- }, 1032, ["to"])
81
- ]))), 128))
82
- ]);
83
- };
84
- }
85
- }, y = /* @__PURE__ */ g(z, [["__scopeId", "data-v-d3104e61"]]), F = { class: "wt-navigation-menu" }, O = { class: "wt-navigation-menu__wrapper" }, R = {
86
- __name: "wt-navigation-menu",
87
- props: {
88
- /** entire navigation hierarchy. Value: `{ value: string, name: string, subNav: [{ value: string, route: string, name: string}] }`
89
- **/
90
- nav: {
91
- type: Array,
92
- required: !0
93
- },
94
- /** array icons to display in 1 level menu
95
- */
96
- icons: {
97
- type: Array,
98
- default: () => []
99
- }
100
- },
101
- setup(n) {
102
- const r = n, s = L(""), u = v(() => {
103
- const e = /* @__PURE__ */ new Map();
104
- return r.nav.forEach((t) => {
105
- e.set(t.value, {
106
- ...t,
107
- name: t.name
108
- });
109
- }), e;
110
- }), a = v(() => {
111
- const e = /* @__PURE__ */ new Map();
112
- return r.nav.forEach((t) => {
113
- if (t.subNav) {
114
- const M = t.subNav.map((m) => {
115
- const x = t.route ? `${t.route}/${m.route}` : m.route;
116
- return {
117
- ...m,
118
- name: m.name,
119
- route: x
120
- };
121
- });
122
- e.set(t.value, M);
123
- } else
124
- e.set(t.value, []);
125
- }), e;
126
- }), i = v(() => Array.from(u.value.values()).filter((e) => {
127
- const t = a.value.get(e.value);
128
- return t && t.length > 0;
129
- })), d = v(() => a.value.get(o.value?.value) || []), o = v(() => u.value.get(s.value) || i.value[0]);
130
- function f(e) {
131
- s.value = e.value;
132
- }
133
- return (e, t) => (c(), l("section", F, [
134
- p("article", O, [
135
- _(j, {
136
- categories: i.value,
137
- icons: n.icons,
138
- selected: o.value,
139
- onSelect: f
140
- }, {
141
- default: A(() => [
142
- _(y, {
143
- categories: d.value,
144
- class: "wt-navigation-menu__categories--display"
145
- }, null, 8, ["categories"])
146
- ], void 0, !0),
147
- _: 1
148
- }, 8, ["categories", "icons", "selected"]),
149
- _(y, {
150
- categories: d.value,
151
- class: "wt-navigation-menu__categories--hidden"
152
- }, null, 8, ["categories"])
153
- ])
154
- ]));
155
- }
156
- }, G = /* @__PURE__ */ g(R, [["__scopeId", "data-v-fcbc24f4"]]);
157
- export {
158
- G as default
159
- };
@@ -1,79 +0,0 @@
1
- import { i as p, e as _ } from "./isObject-BSIwu4UO.js";
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-Cm-8fwtB.js";
4
- const C = (t) => p(t) && (t.entity || t.module), i = (t) => (o) => (...n) => {
5
- if (C(n[0])) {
6
- const u = n[0], { app: f = t, entity: s = "", module: r = "" } = u, e = /* @__PURE__ */ new Date(), a = window?.location?.href || "non-browser env";
7
- return (...l) => {
8
- const h = `@webitel/${f}:${s}:${r}:`, m = `[${e}][${a}]`;
9
- return console[o](h, ...l, m);
10
- };
11
- }
12
- return console[o](...n);
13
- }, D = (t) => ({
14
- info: i(t)("info"),
15
- warn: i(t)("warn"),
16
- error: i(t)("error"),
17
- log: i(t)("log")
18
- }), T = D("ui-sdk"), j = {
19
- name: "WtNotificationsBar",
20
- inject: [
21
- "$eventBus"
22
- ],
23
- data: () => ({
24
- notificationDuration: 4e3,
25
- notifications: [],
26
- eventBus: _
27
- }),
28
- created() {
29
- this.$eventBus ? this.eventBus = this.$eventBus : T.warn({
30
- entity: "component",
31
- module: "wt-notification-bar"
32
- })(
33
- "no globally provided $eventBus found, using default webitel-ui eventBus"
34
- ), this.eventBus.$on("notification", this.showNotification);
35
- },
36
- unmounted() {
37
- this.eventBus.$off("notification", this.showNotification);
38
- },
39
- methods: {
40
- showNotification(t) {
41
- this.notifications.unshift(t), setTimeout(
42
- () => this.closeNotification(t),
43
- t.timeout * 1e3 || this.notificationDuration
44
- );
45
- },
46
- closeNotification(t) {
47
- const o = this.notifications.indexOf(t);
48
- this.notifications.splice(o, 1);
49
- }
50
- }
51
- }, L = { class: "wt-notifications-bar wt-scrollbar" };
52
- function O(t, o, n, u, f, s) {
53
- const r = v("wt-notification");
54
- return c(), d("aside", L, [
55
- B($, {
56
- class: "wt-notifications-bar__wrapper",
57
- name: "wt-notifications-transition",
58
- tag: "div"
59
- }, {
60
- default: w(() => [
61
- (c(!0), d(g, null, x(t.notifications, (e, a) => (c(), N(r, {
62
- key: a + e.text,
63
- type: e.type,
64
- onClose: (l) => s.closeNotification(e)
65
- }, {
66
- default: w(() => [
67
- b(y(e.text), 1)
68
- ], void 0, !0),
69
- _: 2
70
- }, 1032, ["type", "onClose"]))), 128))
71
- ], void 0, !0),
72
- _: 1
73
- })
74
- ]);
75
- }
76
- const G = /* @__PURE__ */ k(j, [["render", O], ["__scopeId", "data-v-8f1de0c8"]]);
77
- export {
78
- G as default
79
- };
@@ -1,115 +0,0 @@
1
- import { computed as f, resolveComponent as d, createBlock as i, openBlock as l, withCtx as a, renderSlot as n, createCommentVNode as c, createVNode as p, createTextVNode as s, toDisplayString as y } from "vue";
2
- const k = {
3
- __name: "wt-page-header",
4
- props: {
5
- /**
6
- * Hides primary button
7
- * @type {boolean}
8
- * @default false
9
- */
10
- hidePrimary: {
11
- type: Boolean,
12
- default: !1
13
- },
14
- /**
15
- * Hides secondary button
16
- * @type {boolean}
17
- * @default false
18
- */
19
- hideSecondary: {
20
- type: Boolean,
21
- default: !1
22
- },
23
- /**
24
- * Text for primary button. If empty - the title "ADD"
25
- * @type {string}
26
- */
27
- primaryText: {
28
- type: String
29
- },
30
- /**
31
- * Primary button click handler
32
- * @type {Function}
33
- */
34
- primaryAction: {
35
- type: Function
36
- },
37
- /**
38
- * Disables primary button
39
- * @type {boolean}
40
- * @default false
41
- */
42
- primaryDisabled: {
43
- type: Boolean,
44
- default: !1
45
- },
46
- /**
47
- * Disables secondary button
48
- * @type {boolean}
49
- * @default false
50
- */
51
- secondaryDisabled: {
52
- type: Boolean,
53
- default: !1
54
- },
55
- /**
56
- * Text for secondary button. If empty - the title "CLOSE"
57
- * @type {string}
58
- */
59
- secondaryText: {
60
- type: String
61
- },
62
- /**
63
- * Secondary button click handler
64
- * @type {Function}
65
- */
66
- secondaryAction: {
67
- type: Function
68
- }
69
- },
70
- setup(e) {
71
- const o = e, u = f(
72
- () => !(o.secondaryAction || o.secondaryText)
73
- );
74
- return (t, b) => {
75
- const r = d("wt-button"), m = d("wt-headline");
76
- return l(), i(m, null, {
77
- "title-wrapper": a(() => [
78
- n(t.$slots, "default")
79
- ]),
80
- title: a(() => [
81
- n(t.$slots, "title")
82
- ]),
83
- actions: a(() => [
84
- n(t.$slots, "actions"),
85
- e.hidePrimary ? c("", !0) : n(t.$slots, "primary-action", { key: 0 }, () => [
86
- p(r, {
87
- disabled: e.primaryDisabled,
88
- onClick: e.primaryAction
89
- }, {
90
- default: a(() => [
91
- s(y(e.primaryText || t.$t("reusable.add")), 1)
92
- ], void 0, !0),
93
- _: 1
94
- }, 8, ["disabled", "onClick"])
95
- ]),
96
- !e.hideSecondary && !u.value ? (l(), i(r, {
97
- key: 1,
98
- disabled: e.secondaryDisabled,
99
- color: "secondary",
100
- onClick: e.secondaryAction
101
- }, {
102
- default: a(() => [
103
- s(y(e.secondaryText || t.$t("reusable.close")), 1)
104
- ], void 0, !0),
105
- _: 1
106
- }, 8, ["disabled", "onClick"])) : c("", !0)
107
- ]),
108
- _: 3
109
- });
110
- };
111
- }
112
- };
113
- export {
114
- k as default
115
- };
@@ -1,144 +0,0 @@
1
- import { _ as u, D as h } from "./install-Cm-8fwtB.js";
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
- const t = 10, f = {
4
- name: "WtPagination",
5
- model: {
6
- prop: "size",
7
- event: "change"
8
- },
9
- /**
10
- * @emits {string | number} change - Fires when size changes. The same as input, but if "debounce" is true, event is debounced
11
- * @emits {string | number} input - Fires when size changes. SIZE CHANGE IS DEBOUNCED
12
- * @emits {void} next - Event is triggered on "next" arrow click
13
- * @emits {void} prev - Event is triggered on "prev" arrow click
14
- */
15
- props: {
16
- /**
17
- * SIZE CHANGE IS DEBOUNCED
18
- * @type {string | number}
19
- * @model size
20
- */
21
- size: {
22
- type: [
23
- String,
24
- Number
25
- ]
26
- },
27
- /**
28
- * Is false, disables paging arrow
29
- * @type {boolean}
30
- * @default false
31
- */
32
- next: {
33
- type: Boolean,
34
- default: !1
35
- },
36
- /**
37
- * Is false, disables paging arrow
38
- * @type {boolean}
39
- * @default false
40
- */
41
- prev: {
42
- type: Boolean,
43
- default: !1
44
- },
45
- /**
46
- * If true, @change event is delayed for debounceDelay from last change
47
- * @type {boolean}
48
- * @default false
49
- */
50
- debounce: {
51
- type: Boolean,
52
- default: !1
53
- },
54
- /**
55
- * Debounce delay in milliseconds
56
- * @type {number}
57
- * @default 1000
58
- */
59
- debounceDelay: {
60
- type: Number,
61
- default: 1e3
62
- }
63
- },
64
- emits: [
65
- "change",
66
- "input",
67
- "prev",
68
- "next"
69
- ],
70
- data() {
71
- return {
72
- internalSize: this.size != null ? +this.size : t
73
- };
74
- },
75
- watch: {
76
- internalSize(e) {
77
- e !== null && this.changeSize(e);
78
- },
79
- size(e) {
80
- this.internalSize = e != null ? +e : t;
81
- }
82
- },
83
- created() {
84
- this.debounce && (this.changeSize = h(this.changeSize, this.debounceDelay));
85
- },
86
- methods: {
87
- inputHandler(e) {
88
- if (e === null) {
89
- this.internalSize = null, this.$nextTick(() => {
90
- this.internalSize = t, this.$emit("input", t);
91
- });
92
- return;
93
- }
94
- const n = e >= 0 && e <= 1e3 ? e : t;
95
- this.internalSize = n, this.$emit("input", n);
96
- },
97
- changeSize(e) {
98
- this.$emit("change", e);
99
- },
100
- goNext() {
101
- this.$emit("next");
102
- },
103
- goPrev() {
104
- this.$emit("prev");
105
- }
106
- }
107
- }, w = { class: "wt-pagination typo-body-1" }, v = { class: "wt-pagination__size" }, S = { class: "wt-pagination__size-text" }, x = { class: "wt-pagination__page-controls" };
108
- function y(e, n, s, k, p, i) {
109
- const _ = r("wt-input-number"), l = r("wt-icon-btn"), c = g("tooltip");
110
- return z(), m("footer", w, [
111
- o("div", v, [
112
- o("div", S, b(e.$t("webitelUI.pagination.sizeText")), 1),
113
- a(_, {
114
- max: 1e3,
115
- min: 1,
116
- "model-value": p.internalSize,
117
- class: "wt-pagination__size-input",
118
- "onUpdate:modelValue": i.inputHandler
119
- }, null, 8, ["model-value", "onUpdate:modelValue"])
120
- ]),
121
- o("div", x, [
122
- d(a(l, {
123
- disabled: !s.prev,
124
- class: "wt-pagination__page-control",
125
- icon: "arrow-left",
126
- onClick: i.goPrev
127
- }, null, 8, ["disabled", "onClick"]), [
128
- [c, e.$t("webitelUI.pagination.prev")]
129
- ]),
130
- d(a(l, {
131
- disabled: !s.next,
132
- class: "wt-pagination__page-control",
133
- icon: "arrow-right",
134
- onClick: i.goNext
135
- }, null, 8, ["disabled", "onClick"]), [
136
- [c, e.$t("webitelUI.pagination.next")]
137
- ])
138
- ])
139
- ]);
140
- }
141
- const N = /* @__PURE__ */ u(f, [["render", y], ["__scopeId", "data-v-4183dd40"]]);
142
- export {
143
- N as default
144
- };