@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,426 +0,0 @@
1
- import { defineComponent as oe, useSlots as le, useTemplateRef as ae, ref as H, computed as h, onMounted as re, onUnmounted as ne, resolveComponent as L, resolveDirective as se, createBlock as m, openBlock as c, createSlots as U, withCtx as i, createCommentVNode as b, createElementBlock as W, createVNode as V, withModifiers as de, Fragment as ie, renderList as ce, createElementVNode as $, normalizeStyle as ue, renderSlot as S, createTextVNode as q, toDisplayString as G, withDirectives as pe, nextTick as fe } from "vue";
2
- import { B as me, S as K, G as ye, _ as be } from "./install-Cm-8fwtB.js";
3
- const we = (r, C) => {
4
- let o = null, p = null, w = null, d = !1;
5
- const v = () => {
6
- if (!p || !d || w === null) return;
7
- const l = p.getBoundingClientRect(), s = 150, E = 1, I = 25, T = w - l.left, F = l.right - w, R = (f) => f < 0.5 ? 4 * f * f * f : 1 - (-2 * f + 2) ** 3 / 2;
8
- let x = 0, B = 0;
9
- if (T < s && p.scrollLeft > 0 ? (x = -1, B = T) : F < s && (x = 1, B = F), x !== 0) {
10
- const f = 1 - B / s, A = R(f), O = E + (I - E) * A;
11
- p.scrollLeft += O * x, o = requestAnimationFrame(v);
12
- } else
13
- o = null;
14
- }, _ = (l) => {
15
- l.dataTransfer.effectAllowed = "move";
16
- const s = l.target.cloneNode(!0);
17
- s.style.position = "absolute", s.style.top = "-9999px", s.style.background = "var(--p-datatable-header-cell-drag-background)", s.style.width = `${l.target.offsetWidth}px`, document.body.appendChild(s), l.dataTransfer.setDragImage(s, l.offsetX, l.offsetY), setTimeout(() => {
18
- document.body.removeChild(s);
19
- }, 0), d = !0, p || (p = r.value?.$el?.querySelector(
20
- ".p-datatable-table-container"
21
- ));
22
- }, y = (l) => {
23
- w = l.clientX, !o && d && (o = requestAnimationFrame(v));
24
- }, k = () => {
25
- o && (cancelAnimationFrame(o), o = null), d = !1, w = null, p = null;
26
- };
27
- return {
28
- addTableDragListener: () => {
29
- if (!C) return;
30
- const l = r.value?.$el;
31
- l?.addEventListener("dragstart", _), l?.addEventListener("dragover", y), l?.addEventListener("dragend", k);
32
- },
33
- removeTableDragListener: () => {
34
- if (!C) return;
35
- const l = r.value?.$el;
36
- l?.removeEventListener("dragstart", _), l?.removeEventListener("dragover", y), l?.removeEventListener("dragend", k);
37
- }
38
- };
39
- }, ve = { class: "wt-table__th__content typo-body-1-bold" }, ge = { class: "wt-table__td__actions" }, he = 10, Se = 40, xe = /* @__PURE__ */ oe({
40
- __name: "wt-table",
41
- props: {
42
- headers: { default: () => [] },
43
- data: { default: () => [] },
44
- sortable: { type: Boolean, default: !1 },
45
- selectable: { type: Boolean, default: !0 },
46
- selected: {},
47
- gridActions: { type: Boolean, default: !0 },
48
- fixedActions: { type: Boolean, default: !1 },
49
- headless: { type: Boolean, default: !1 },
50
- rowReorder: { type: Boolean, default: !1 },
51
- dataKey: { default: "" },
52
- isRowReorderDisabled: { type: Function, default: () => !1 },
53
- rowExpansion: { type: Boolean, default: !1 },
54
- rowClass: { type: Function, default: () => "" },
55
- rowStyle: { type: Function, default: () => ({}) },
56
- resizableColumns: { type: Boolean, default: !1 },
57
- reorderableColumns: { type: Boolean, default: !1 },
58
- rowExpansionDisabled: { type: Function, default: () => !1 },
59
- lazy: { type: Boolean, default: !1 },
60
- onLoading: {},
61
- loading: { type: Boolean },
62
- itemSize: { default: Se },
63
- value: {},
64
- rows: {},
65
- first: {},
66
- totalRecords: {},
67
- paginator: { type: Boolean },
68
- paginatorPosition: {},
69
- alwaysShowPaginator: { type: Boolean },
70
- paginatorTemplate: {},
71
- pageLinkSize: {},
72
- rowsPerPageOptions: {},
73
- currentPageReportTemplate: {},
74
- loadingIcon: {},
75
- sortField: {},
76
- sortOrder: {},
77
- nullSortOrder: {},
78
- defaultSortOrder: {},
79
- multiSortMeta: {},
80
- sortMode: {},
81
- removableSort: { type: Boolean },
82
- filters: {},
83
- filterDisplay: {},
84
- globalFilterFields: {},
85
- filterLocale: {},
86
- selection: {},
87
- selectionMode: {},
88
- compareSelectionBy: {},
89
- metaKeySelection: { type: Boolean },
90
- contextMenu: { type: Boolean },
91
- contextMenuSelection: {},
92
- selectAll: { type: [Boolean, null] },
93
- rowHover: { type: Boolean },
94
- csvSeparator: {},
95
- exportFilename: {},
96
- exportFunction: {},
97
- columnResizeMode: {},
98
- expandedRows: {},
99
- expandedRowIcon: {},
100
- collapsedRowIcon: {},
101
- rowGroupMode: {},
102
- groupRowsBy: {},
103
- expandableRowGroups: { type: Boolean },
104
- expandedRowGroups: {},
105
- stateStorage: {},
106
- stateKey: {},
107
- editMode: {},
108
- editingRows: {},
109
- scrollable: { type: Boolean },
110
- scrollHeight: {},
111
- virtualScrollerOptions: {},
112
- frozenValue: {},
113
- breakpoint: {},
114
- showHeaders: { type: Boolean },
115
- showGridlines: { type: Boolean },
116
- stripedRows: { type: Boolean },
117
- highlightOnSelect: { type: Boolean },
118
- size: {},
119
- tableStyle: {},
120
- tableClass: {},
121
- tableProps: {},
122
- filterInputProps: {},
123
- filterButtonProps: {},
124
- editButtonProps: {},
125
- dt: {},
126
- pt: {},
127
- ptOptions: {},
128
- unstyled: { type: Boolean }
129
- },
130
- emits: [
131
- "sort",
132
- "update:selected",
133
- "reorder:row",
134
- "column-resize",
135
- "column-reorder"
136
- ],
137
- setup(r, { emit: C }) {
138
- const o = r, { t: p } = me(), w = le(), d = C, v = ae("table"), _ = H(0), y = H([]), { addTableDragListener: k, removeTableDragListener: P } = we(
139
- v,
140
- o.reorderableColumns
141
- ), N = [
142
- "row-select",
143
- "row-reorder",
144
- "row-actions",
145
- "row-expander"
146
- ], l = h(() => o.selectable ? o.selected || o.data.filter((e) => e._isSelected) : []), s = h(() => o.headers.map((e) => !e.text && e.locale ? {
147
- ...e,
148
- text: typeof e.locale == "string" ? p(e.locale) : p(...e.locale)
149
- } : e)), E = (e) => e.show === !1, I = (e) => {
150
- const n = e.width || "140px";
151
- return o.lazy ? {
152
- width: n
153
- } : {
154
- minWidth: n
155
- };
156
- }, T = h(() => Object.keys(w).some((e) => e.includes("-footer"))), F = h(() => Object.keys(w).some((e) => e === "footer")), R = h(() => l.value.length === o.data.length && o.data.length > 0), x = h(() => o.headers.find(
157
- (a) => a.sort === K.ASC || a.sort === K.DESC
158
- )?.field ?? null), B = ({ sortField: e }) => {
159
- const a = s.value.find((u) => u.field === e);
160
- if (!f(a)) return;
161
- const n = ye(a.sort);
162
- d("sort", a, n);
163
- }, f = ({ sort: e }) => o.sortable && e !== void 0, A = () => {
164
- o.selected ? R.value ? d("update:selected", []) : d("update:selected", [
165
- ...o.data
166
- ]) : R.value ? o.data.forEach((e) => {
167
- e._isSelected = !1;
168
- }) : o.data.forEach((e) => {
169
- e._isSelected = !0;
170
- });
171
- }, O = (e, a) => {
172
- o.selected ? a ? d("update:selected", [
173
- ...l.value,
174
- e
175
- ]) : d(
176
- "update:selected",
177
- l.value.filter((n) => n !== e)
178
- ) : e._isSelected = !e._isSelected;
179
- }, X = ({ element: e }) => {
180
- const a = e.getAttribute("data-column-field"), n = getComputedStyle(e), u = Number.parseFloat(n.paddingLeft), z = Number.parseFloat(n.paddingRight), D = e.offsetWidth - u - z;
181
- d("column-resize", {
182
- columnName: a,
183
- columnWidth: `${D}px`
184
- });
185
- }, j = () => {
186
- const a = v.value.$el.querySelector(
187
- ".p-datatable-table-container"
188
- ).scrollLeft, n = v.value.d_columnOrder.filter(
189
- (u) => !N.includes(u)
190
- );
191
- _.value += 1, d("column-reorder", n), fe(() => {
192
- k(), v.value.$el.querySelector(".p-datatable-table-container").scrollLeft = a;
193
- });
194
- }, Z = (e) => y.value.some((a) => a?.id === e?.id), Y = (e) => {
195
- const a = y.value.findIndex((n) => n.id === e.id);
196
- a !== -1 ? y.value.splice(a, 1) : y.value.push(e);
197
- }, J = h(() => {
198
- if (o.lazy)
199
- return {
200
- lazy: o.lazy,
201
- onLazyLoad: o.onLoading,
202
- itemSize: o.itemSize,
203
- // The height/width of item according to orientation
204
- numToleratedItems: he,
205
- // Number of items to pre-render outside visible area
206
- totalRecords: o.data.length,
207
- autoSize: !0
208
- // Enable auto height recalculation
209
- };
210
- });
211
- return re(() => {
212
- k();
213
- }), ne(() => {
214
- P();
215
- }), (e, a) => {
216
- const n = L("wt-icon-btn"), u = L("p-column"), z = L("wt-icon"), D = L("wt-checkbox"), Q = L("p-table"), ee = se("tooltip");
217
- return c(), m(Q, {
218
- key: _.value,
219
- ref_key: "table",
220
- ref: v,
221
- "expanded-rows": y.value,
222
- "reorderable-columns": r.reorderableColumns,
223
- "resizable-columns": r.resizableColumns,
224
- "row-class": r.rowClass,
225
- "row-style": r.rowStyle,
226
- "show-headers": !r.headless,
227
- value: r.data,
228
- "sort-field": x.value,
229
- "data-key": o.dataKey,
230
- class: "wt-table",
231
- "column-resize-mode": "expand",
232
- lazy: "",
233
- "scroll-height": "flex",
234
- scrollable: "",
235
- "virtual-scroller-options": J.value,
236
- pt: {
237
- tableContainer: "wt-scrollbar"
238
- },
239
- onSort: B,
240
- "onUpdate:expandedRows": a[0] || (a[0] = (t) => y.value = t),
241
- onColumnResizeEnd: X,
242
- onColumnReorder: j,
243
- onRowReorder: a[1] || (a[1] = ({ dragIndex: t, dropIndex: g }) => d("reorder:row", { oldIndex: t, newIndex: g }))
244
- }, U({
245
- expansion: i(({ data: t }) => [
246
- $("div", null, [
247
- S(e.$slots, "expansion", { item: t }, void 0, !0)
248
- ])
249
- ]),
250
- default: i(() => [
251
- r.rowExpansion ? (c(), m(u, {
252
- key: 0,
253
- pt: {
254
- columnresizer: {
255
- class: {
256
- hidden: !0
257
- }
258
- }
259
- },
260
- "body-style": "width: 1%;",
261
- "column-key": "row-expander",
262
- "header-style": "width: 1%;"
263
- }, {
264
- body: i(({ data: t }) => [
265
- V(n, {
266
- disabled: o.rowExpansionDisabled(t),
267
- icon: Z(t) ? "arrow-down" : "arrow-right",
268
- onClick: de((g) => Y(t), ["stop"])
269
- }, null, 8, ["disabled", "icon", "onClick"])
270
- ]),
271
- _: 1
272
- })) : b("", !0),
273
- r.rowReorder ? (c(), m(u, {
274
- key: 1,
275
- pt: {
276
- columnresizer: {
277
- class: {
278
- hidden: !0
279
- }
280
- }
281
- },
282
- "reorderable-column": !1,
283
- "body-style": "width: 1%;",
284
- "column-key": "row-reorder",
285
- "header-style": "width: 1%;",
286
- "row-reorder": ""
287
- }, {
288
- body: i(({ data: t }) => [
289
- r.isRowReorderDisabled(t) ? b("", !0) : (c(), m(z, {
290
- key: 0,
291
- "data-pc-section": "reorderablerowhandle",
292
- icon: "move"
293
- }))
294
- ]),
295
- _: 1
296
- })) : b("", !0),
297
- r.selectable ? (c(), m(u, {
298
- key: 2,
299
- pt: {
300
- columnresizer: {
301
- class: {
302
- hidden: !0
303
- }
304
- }
305
- },
306
- "reorderable-column": !1,
307
- "body-style": "width: 1%;",
308
- "column-key": "row-select",
309
- "header-style": "width: 1%;"
310
- }, {
311
- header: i(() => [
312
- V(D, {
313
- selected: R.value,
314
- "onUpdate:selected": A
315
- }, null, 8, ["selected"])
316
- ]),
317
- body: i(({ data: t }) => [
318
- t ? (c(), m(D, {
319
- key: 0,
320
- selected: l.value.includes(t),
321
- "onUpdate:selected": (g) => O(t, g)
322
- }, null, 8, ["selected", "onUpdate:selected"])) : b("", !0)
323
- ]),
324
- _: 1
325
- })) : b("", !0),
326
- (c(!0), W(ie, null, ce(s.value, (t, g) => (c(), m(u, {
327
- key: t.value,
328
- "column-key": t.field,
329
- field: t.field,
330
- hidden: E(t),
331
- pt: {
332
- root: {
333
- "data-column-field": t.field
334
- // required for column-resizer to get column field
335
- }
336
- },
337
- sortable: f(t)
338
- }, U({
339
- header: i(() => [
340
- S(e.$slots, `header-${t.value}`, {
341
- index: g,
342
- header: t
343
- }, () => [
344
- $("div", ve, [
345
- pe((c(), W("span", null, [
346
- q(G(t.text), 1)
347
- ])), [
348
- [ee, t.text]
349
- ]),
350
- t.sort === "asc" ? (c(), m(z, {
351
- key: 0,
352
- class: "wt-table__th__sort-arrow wt-table__th__sort-arrow--asc",
353
- icon: "sort-arrow-up",
354
- size: "sm"
355
- })) : t.sort === "desc" ? (c(), m(z, {
356
- key: 1,
357
- class: "wt-table__th__sort-arrow wt-table__th__sort-arrow--desc",
358
- icon: "sort-arrow-down",
359
- size: "sm"
360
- })) : b("", !0)
361
- ])
362
- ], !0)
363
- ]),
364
- body: i(({ data: M, index: te }) => [
365
- $("div", {
366
- style: ue(I(t)),
367
- class: "wt-table__td__content typo-body-1"
368
- }, [
369
- M ? S(e.$slots, t.value, {
370
- key: 0,
371
- index: te,
372
- item: M
373
- }, () => [
374
- q(G(M[t.value]), 1)
375
- ], !0) : b("", !0)
376
- ], 4)
377
- ]),
378
- sorticon: i(() => []),
379
- _: 2
380
- }, [
381
- T.value ? {
382
- name: "footer",
383
- fn: i(() => [
384
- S(e.$slots, `${t.value}-footer`, {}, void 0, !0)
385
- ]),
386
- key: "0"
387
- } : void 0
388
- ]), 1032, ["column-key", "field", "hidden", "pt", "sortable"]))), 128)),
389
- r.gridActions ? (c(), m(u, {
390
- key: 3,
391
- frozen: r.fixedActions,
392
- "align-frozen": "right",
393
- "column-key": "row-actions",
394
- style: { width: "112px" }
395
- }, {
396
- header: i(() => [
397
- S(e.$slots, "actions-header", {}, void 0, !0)
398
- ]),
399
- body: i(({ data: t, index: g }) => [
400
- $("div", ge, [
401
- t ? S(e.$slots, "actions", {
402
- key: 0,
403
- index: g,
404
- item: t
405
- }, void 0, !0) : b("", !0)
406
- ])
407
- ]),
408
- _: 3
409
- }, 8, ["frozen"])) : b("", !0)
410
- ], void 0, !0),
411
- _: 2
412
- }, [
413
- F.value ? {
414
- name: "footer",
415
- fn: i(() => [
416
- S(e.$slots, "footer", {}, void 0, !0)
417
- ]),
418
- key: "0"
419
- } : void 0
420
- ]), 1032, ["expanded-rows", "reorderable-columns", "resizable-columns", "row-class", "row-style", "show-headers", "value", "sort-field", "data-key", "virtual-scroller-options"]);
421
- };
422
- }
423
- }), Re = /* @__PURE__ */ be(xe, [["__scopeId", "data-v-88411100"]]);
424
- export {
425
- Re as default
426
- };
@@ -1,79 +0,0 @@
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-Cm-8fwtB.js";
3
- const R = { class: "wt-table-actions" }, U = /* @__PURE__ */ C({
4
- __name: "wt-table-actions",
5
- props: {
6
- icons: { default: () => [
7
- "refresh"
8
- ] },
9
- isSettingsActive: { type: Boolean, default: !1 },
10
- isSettingsBadge: { type: Boolean, default: !1 }
11
- },
12
- emits: ["input"],
13
- setup(d) {
14
- const i = d, m = l(() => i.icons.indexOf("import") !== -1), f = l(() => i.icons.indexOf("export") !== -1), v = l(
15
- () => i.icons.indexOf("filter-reset") !== -1
16
- ), $ = l(
17
- () => i.icons.indexOf("column-select") !== -1
18
- ), b = l(() => i.icons.indexOf("refresh") !== -1), k = l(() => i.icons.indexOf("settings") !== -1);
19
- return (e, t) => {
20
- const o = p("wt-icon-btn"), w = p("wt-badge"), s = g("tooltip");
21
- return n(), S("aside", R, [
22
- y(e.$slots, "default", {}, void 0, !0),
23
- m.value ? r((n(), a(o, {
24
- key: 0,
25
- icon: "download",
26
- onClick: t[0] || (t[0] = (c) => e.$emit("input", "import"))
27
- }, null, 512)), [
28
- [s, e.$t("reusable.import")]
29
- ]) : u("", !0),
30
- f.value ? r((n(), a(o, {
31
- key: 1,
32
- icon: "upload",
33
- onClick: t[1] || (t[1] = (c) => e.$emit("input", "export"))
34
- }, null, 512)), [
35
- [s, e.$t("reusable.export")]
36
- ]) : u("", !0),
37
- v.value ? r((n(), a(o, {
38
- key: 2,
39
- icon: "clear",
40
- onClick: t[2] || (t[2] = (c) => e.$emit("input", "filterReset"))
41
- }, null, 512)), [
42
- [s, e.$t("webitelUI.tableActions.filterReset")]
43
- ]) : u("", !0),
44
- $.value ? r((n(), a(o, {
45
- key: 3,
46
- icon: "column-select",
47
- onClick: t[3] || (t[3] = (c) => e.$emit("input", "columnSelect"))
48
- }, null, 512)), [
49
- [s, e.$t("webitelUI.tableActions.columnSelect")]
50
- ]) : u("", !0),
51
- b.value ? r((n(), a(o, {
52
- key: 4,
53
- icon: "refresh",
54
- onClick: t[4] || (t[4] = (c) => e.$emit("input", "refresh"))
55
- }, null, 512)), [
56
- [s, e.$t("webitelUI.tableActions.refreshTable")]
57
- ]) : u("", !0),
58
- A(w, {
59
- hidden: !d.isSettingsBadge
60
- }, {
61
- default: B(() => [
62
- k.value ? r((n(), a(o, {
63
- key: 0,
64
- class: I({ active: d.isSettingsActive }),
65
- icon: "filter",
66
- onClick: t[5] || (t[5] = (c) => e.$emit("input", "settings"))
67
- }, null, 8, ["class"])), [
68
- [s, e.$t("webitelUI.tableActions.expandFilters")]
69
- ]) : u("", !0)
70
- ], void 0, !0),
71
- _: 1
72
- }, 8, ["hidden"])
73
- ]);
74
- };
75
- }
76
- }), E = /* @__PURE__ */ O(U, [["__scopeId", "data-v-73cf33d9"]]);
77
- export {
78
- E as default
79
- };