@webitel/ui-sdk 26.6.34 → 26.6.35

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 (176) 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-B4aAS7wB.js +5391 -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 +34541 -4
  30. package/dist/ui-sdk.umd.cjs +7740 -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-wdBt1XzD.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-CvMM8WMk.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-D0GJMGni.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-fnNxJLsq.js +104 -0
  105. package/dist/wt-vidstack-player-DLTA9mBK.js +7440 -0
  106. package/package.json +5 -5
  107. package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +3 -3
  108. package/dist/contacts-DzLKP4GQ.js +0 -49654
  109. package/dist/displayText-Cbh4IOfM.js +0 -5
  110. package/dist/engineCallFileType-yaadA7-2.js +0 -8
  111. package/dist/errors-CTL-RV3B.js +0 -70
  112. package/dist/index-BgLoxAyu.js +0 -50
  113. package/dist/install-Cm-8fwtB.js +0 -53489
  114. package/dist/isObject-BSIwu4UO.js +0 -28
  115. package/dist/prod-BoQuiIB3.js +0 -973
  116. package/dist/srt-parser-CsN7bp5E.js +0 -26
  117. package/dist/ssa-parser-BJOOPeQF.js +0 -200
  118. package/dist/useExpansion-BrQ40HiR.js +0 -24
  119. package/dist/useVidstackSrc-DKXY5f7v.js +0 -1341
  120. package/dist/vidstack-Bq6c3Bam-BHF-0bv4.js +0 -426
  121. package/dist/vidstack-D2pY00kU-B8Mhvp0m.js +0 -136
  122. package/dist/vidstack-DDXt6fpN-D0eou9h7.js +0 -51
  123. package/dist/vidstack-D_-9AA6_-DYAfclN7.js +0 -21
  124. package/dist/vidstack-Dm1xEU9Q-CXHNvShT.js +0 -30
  125. package/dist/vidstack-DqAw8m9J-b5BHkhrw.js +0 -22
  126. package/dist/vidstack-audio-CPu_TbjK.js +0 -28
  127. package/dist/vidstack-dash-VYriMjws.js +0 -393
  128. package/dist/vidstack-google-cast-Byp1cemB.js +0 -383
  129. package/dist/vidstack-hls-DdUQcmEx.js +0 -310
  130. package/dist/vidstack-krOAtKMi-C50BTxmn.js +0 -28
  131. package/dist/vidstack-video-BpSKQ3wb.js +0 -164
  132. package/dist/vidstack-vimeo-CgVJJm06.js +0 -452
  133. package/dist/vidstack-youtube-DuES80MV.js +0 -233
  134. package/dist/wt-action-bar-TMuck-q1.js +0 -102
  135. package/dist/wt-button-select-D1NP5Xw9.js +0 -105
  136. package/dist/wt-call-media-action-BsepfSVy.js +0 -60
  137. package/dist/wt-chat-emoji-B00dUXbP.js +0 -2909
  138. package/dist/wt-confirm-dialog-1hO851Da.js +0 -92
  139. package/dist/wt-context-menu-BrzRmoDw.js +0 -104
  140. package/dist/wt-copy-action-CEMOiYzN.js +0 -60
  141. package/dist/wt-datepicker-DHqZIkg2.js +0 -5660
  142. package/dist/wt-display-chip-items-D7kEAcOo.js +0 -47
  143. package/dist/wt-dual-panel-DEWR3-k-.js +0 -66
  144. package/dist/wt-dummy-DfgxciHw.js +0 -104
  145. package/dist/wt-error-page-DUSVxkXq.js +0 -89
  146. package/dist/wt-expansion-card-B8JKBMLa.js +0 -56
  147. package/dist/wt-expansion-panel-DL3eoj_b.js +0 -54
  148. package/dist/wt-filters-panel-wrapper-CGXQiRvh.js +0 -75
  149. package/dist/wt-galleria-Bahv6Mgq.js +0 -323
  150. package/dist/wt-inline-add-panel-B4RjHVDI.js +0 -49
  151. package/dist/wt-navigation-menu-DqCXAV8E.js +0 -159
  152. package/dist/wt-notifications-bar-CRIKdVai.js +0 -79
  153. package/dist/wt-page-header-DdsnoLgd.js +0 -115
  154. package/dist/wt-pagination-C_b3WmH1.js +0 -144
  155. package/dist/wt-player-B4GWEqdu.js +0 -291
  156. package/dist/wt-popover-Di-7_rDL.js +0 -4
  157. package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +0 -81
  158. package/dist/wt-screen-recordings-action-B4OpN5kl.js +0 -54
  159. package/dist/wt-search-bar-B_0_YwCn.js +0 -144
  160. package/dist/wt-selection-popup-Boyw9_V_.js +0 -109
  161. package/dist/wt-send-message-popup-0C23Zocu.js +0 -579
  162. package/dist/wt-slider-BEkw4KGp.js +0 -4
  163. package/dist/wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js +0 -55
  164. package/dist/wt-start-page-HQMIG05a.js +0 -99
  165. package/dist/wt-status-select-H_me1xwA.js +0 -138
  166. package/dist/wt-stepper-hJxqyiyo.js +0 -65
  167. package/dist/wt-table-Du6mtkPw.js +0 -426
  168. package/dist/wt-table-actions-ah_H6LY9.js +0 -79
  169. package/dist/wt-table-column-select-C2Nbic5-.js +0 -128
  170. package/dist/wt-tabs-D4aGEd_t.js +0 -74
  171. package/dist/wt-time-input-DYiW0ijt.js +0 -42
  172. package/dist/wt-timepicker-BE8POMhF.js +0 -118
  173. package/dist/wt-tree-table-BJxaXqKl.js +0 -285
  174. package/dist/wt-tree-u0Zp8nb5.js +0 -2777
  175. package/dist/wt-type-extension-value-input-C1VlNa4K.js +0 -121
  176. package/dist/wt-vidstack-player-C1eyCEzP.js +0 -9094
@@ -0,0 +1,221 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
+ import { n as t, t as n } from "./wt-icon-btn-CjjI4cgE.js";
3
+ import { n as r } from "./sortQueryAdapters-CyYXvnDN.js";
4
+ import { t as i } from "./useWtTable-tqmVOvve.js";
5
+ import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, normalizeStyle as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveComponent as S, toDisplayString as C, toRef as w, unref as T, withCtx as E, withModifiers as D } from "vue";
6
+ //#region src/components/wt-tree-table-row/wt-tree-table-row.vue?vue&type=script&setup=true&lang.ts
7
+ var O = { class: "wt-tree-table-td__content" }, k = {
8
+ key: 0,
9
+ class: "wt-tree-table-td__icon-wrapper"
10
+ }, A = {
11
+ key: 0,
12
+ class: "wt-tree-table-td__actions typo-body-1"
13
+ }, j = { class: "wt-tree-table-td__content" }, M = /*#__PURE__*/ e(/* @__PURE__ */ m({
14
+ __name: "wt-tree-table-row",
15
+ props: {
16
+ data: {},
17
+ rowPosition: {},
18
+ childrenProp: {},
19
+ selectable: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ selectedElements: {},
24
+ dataHeaders: {},
25
+ gridActions: {
26
+ type: Boolean,
27
+ default: !0
28
+ },
29
+ nestingLevel: { default: 0 },
30
+ searchedProp: { default: "searched" }
31
+ },
32
+ emits: ["update:selected", "expanded-collapse"],
33
+ setup(e, { emit: r }) {
34
+ let i = e, p = r, m = y(!0), g = o(() => i.nestingLevel), w = o(() => i.nestingLevel + 1), T = o(() => i.selectedElements.includes(i.data)), D = () => {
35
+ m.value = !1, p("expanded-collapse");
36
+ }, M = (e, t = 0) => {
37
+ if (e[i.searchedProp] && t) return !0;
38
+ if (Array.isArray(e[i.childrenProp])) {
39
+ for (let n of e[i.childrenProp]) if (M(n, t + 1)) return !0;
40
+ }
41
+ return !1;
42
+ };
43
+ return _(() => {
44
+ i.searchedProp && M(i.data) && D();
45
+ }), (r, i) => {
46
+ let o = S("wt-tree-table-row", !0);
47
+ return v(), l(a, null, [u("tr", { class: h([[{ "wt-tree-table-row--alternate": e.rowPosition % 2 }], "wt-tree-table-row"]) }, [(v(!0), l(a, null, b(e.dataHeaders, (o, d) => (v(), l("td", {
48
+ key: d,
49
+ class: "wt-tree-table-td typo-body-1"
50
+ }, [u("div", O, [d ? c("", !0) : (v(), l("div", k, [
51
+ (v(!0), l(a, null, b(g.value, (e) => (v(), l("div", {
52
+ key: e,
53
+ class: "wt-tree-table-row__tree-space"
54
+ }))), 128)),
55
+ e.selectable ? (v(), s(t, {
56
+ key: 0,
57
+ selected: T.value,
58
+ "onUpdate:selected": i[0] ||= (t) => r.$emit("update:selected", {
59
+ data: e.data,
60
+ select: t
61
+ })
62
+ }, null, 8, ["selected"])) : c("", !0),
63
+ e.data[e.childrenProp] ? (v(), s(n, {
64
+ key: 1,
65
+ icon: m.value ? "tree-expand" : "tree-collapse",
66
+ onClick: i[1] ||= (e) => m.value = !m.value
67
+ }, null, 8, ["icon"])) : c("", !0)
68
+ ])), x(r.$slots, o.value, {
69
+ index: e.rowPosition,
70
+ item: e.data
71
+ }, () => [f(C(e.data[o.value]), 1)], !0)])]))), 128)), e.gridActions ? (v(), l("td", A, [u("div", j, [x(r.$slots, "actions", {
72
+ index: e.rowPosition,
73
+ item: e.data
74
+ }, void 0, !0)])])) : c("", !0)], 2), m.value ? c("", !0) : (v(!0), l(a, { key: 0 }, b(e.data[e.childrenProp], (t, n) => (v(), s(o, {
75
+ key: n,
76
+ "children-prop": e.childrenProp,
77
+ data: t,
78
+ "data-headers": e.dataHeaders,
79
+ "nesting-level": w.value,
80
+ "row-position": e.rowPosition,
81
+ "searched-prop": e.searchedProp,
82
+ selectable: e.selectable,
83
+ "selected-elements": e.selectedElements,
84
+ onExpandedCollapse: D,
85
+ "onUpdate:selected": i[2] ||= (e) => r.$emit("update:selected", {
86
+ data: e.data,
87
+ select: e.select
88
+ })
89
+ }, d({
90
+ actions: E(({ item: t }) => [x(r.$slots, "actions", {
91
+ index: e.rowPosition,
92
+ item: t
93
+ }, void 0, !0)]),
94
+ _: 2
95
+ }, [b(e.dataHeaders, (t, n) => ({
96
+ name: t.value,
97
+ fn: E(({ item: n }) => [x(r.$slots, t.value, {
98
+ index: e.rowPosition,
99
+ item: n
100
+ }, () => [u("div", null, C(n[t.value]), 1)], !0)])
101
+ }))]), 1032, [
102
+ "children-prop",
103
+ "data",
104
+ "data-headers",
105
+ "nesting-level",
106
+ "row-position",
107
+ "searched-prop",
108
+ "selectable",
109
+ "selected-elements"
110
+ ]))), 128))], 64);
111
+ };
112
+ }
113
+ }), [["__scopeId", "data-v-8381ad70"]]), N = { class: "wt-tree-table wt-scrollbar" }, P = { class: "wt-tree-table-wrapper" }, F = { class: "wt-tree-table-head" }, I = { class: "wt-tree-table-tr wt-tree-table-tr-head" }, L = ["onClick"], R = { class: "wt-tree-table-th__text" }, z = {
114
+ key: 0,
115
+ class: "wt-tree-table-th__actions"
116
+ }, B = { class: "wt-tree-table-th__content" }, V = { class: "wt-tree-table-body" }, H = /*#__PURE__*/ e(/* @__PURE__ */ m({
117
+ __name: "wt-tree-table",
118
+ props: {
119
+ headers: {},
120
+ data: {},
121
+ sortable: {
122
+ type: Boolean,
123
+ default: !1
124
+ },
125
+ selectable: {
126
+ type: Boolean,
127
+ default: !0
128
+ },
129
+ selected: {},
130
+ gridActions: {
131
+ type: Boolean,
132
+ default: !0
133
+ },
134
+ childrenProp: {},
135
+ searchedProp: { default: "searched" }
136
+ },
137
+ emits: ["sort", "update:selected"],
138
+ setup(e, { emit: n }) {
139
+ let m = e, _ = n, y = (e) => e[m.childrenProp] && Array.isArray(e[m.childrenProp]), O = (e) => {
140
+ let t = [], n = (e) => {
141
+ if (e._isSelected) return [e];
142
+ y(e) && e[m.childrenProp].forEach(n);
143
+ };
144
+ return e.forEach(n), t;
145
+ }, k = (e) => {
146
+ let t = [], n = (e) => {
147
+ t.push(e), y(e) && e[m.childrenProp].forEach(n);
148
+ };
149
+ return e.forEach(n), t;
150
+ }, A = o(() => m.selected || O(m.data)), j = o(() => A.value.length === k(m.data).length && k(m.data).length > 0), { tableHeaders: H } = i({ headers: w(m, "headers") }), U = ({ sort: e }) => m.sortable && e !== void 0, W = (e) => {
151
+ U(e) && _("sort", e, r(e.sort));
152
+ }, G = (e, t) => {
153
+ e.forEach((e) => {
154
+ e._isSelected = t, y(e) && G(e[m.childrenProp], t);
155
+ });
156
+ }, K = () => {
157
+ m.selected ? _("update:selected", j.value ? [] : [...k(m.data)]) : j.value ? G(m.data, !1) : G(m.data, !0);
158
+ }, q = (e, t) => {
159
+ m.selected ? t ? _("update:selected", [...A.value, e]) : _("update:selected", A.value.filter((t) => t !== e)) : e._isSelected = !e._isSelected;
160
+ };
161
+ return (n, r) => {
162
+ let i = S("wt-icon");
163
+ return v(), l("div", N, [u("table", P, [u("thead", F, [u("tr", I, [(v(!0), l(a, null, b(T(H), (n, a) => (v(), l("th", {
164
+ key: String(a) + n?.sort,
165
+ class: h([[{ "wt-tree-table-th--sortable": U(n) }, `wt-tree-table-th--sort-${n.sort}`], "wt-tree-table-th typo-body-1"]),
166
+ style: g(n.width ? `min-width:${n.width}` : ""),
167
+ onClick: (e) => W(n, a)
168
+ }, [u("div", { class: h(["wt-tree-table-th__content", { "wt-tree-table-th__content--selectable": a === 0 && e.selectable }]) }, [
169
+ a === 0 && e.selectable ? (v(), l("div", {
170
+ key: 0,
171
+ onClick: r[0] ||= D(() => {}, ["stop"])
172
+ }, [p(t, {
173
+ selected: j.value,
174
+ "onUpdate:selected": K
175
+ }, null, 8, ["selected"])])) : c("", !0),
176
+ u("div", R, C(n.text), 1),
177
+ e.sortable ? (v(), s(i, {
178
+ key: 1,
179
+ class: "wt-tree-table-th-sort-arrow wt-tree-table-th-sort-arrow--asc",
180
+ icon: "sort-arrow-up",
181
+ size: "sm"
182
+ })) : c("", !0),
183
+ e.sortable ? (v(), s(i, {
184
+ key: 2,
185
+ class: "wt-tree-table-th-sort-arrow wt-tree-table-th-sort-arrow--desc",
186
+ icon: "sort-arrow-down",
187
+ size: "sm"
188
+ })) : c("", !0)
189
+ ], 2)], 14, L))), 128)), e.gridActions ? (v(), l("th", z, [u("div", B, [x(n.$slots, "actions-header", {}, void 0, !0)])])) : c("", !0)])]), u("tbody", V, [(v(!0), l(a, null, b(e.data, (t, i) => (v(), s(M, {
190
+ key: i,
191
+ "row-position": i,
192
+ "data-headers": T(H),
193
+ data: t,
194
+ selectable: e.selectable,
195
+ "children-prop": e.childrenProp,
196
+ "selected-elements": A.value,
197
+ "searched-prop": e.searchedProp,
198
+ "onUpdate:selected": r[1] ||= (e) => q(e.data, e.select)
199
+ }, d({
200
+ actions: E(({ item: e }) => [x(n.$slots, "actions", { item: e }, void 0, !0)]),
201
+ _: 2
202
+ }, [b(T(H), (e, t) => ({
203
+ name: e.value,
204
+ fn: E(({ item: t }) => [x(n.$slots, e.value, {
205
+ index: i,
206
+ item: t
207
+ }, () => [f(C(t[e.value]), 1)], !0)])
208
+ }))]), 1032, [
209
+ "row-position",
210
+ "data-headers",
211
+ "data",
212
+ "selectable",
213
+ "children-prop",
214
+ "selected-elements",
215
+ "searched-prop"
216
+ ]))), 128))])])]);
217
+ };
218
+ }
219
+ }), [["__scopeId", "data-v-69c5594f"]]);
220
+ //#endregion
221
+ export { H as default };
@@ -0,0 +1,104 @@
1
+ import { a as e, o as t, r as n, s as r } from "./components-B4aAS7wB.js";
2
+ import { t as i } from "./enums-pbYAJNeb.js";
3
+ import { t as a } from "./vue-i18n-B8Px6VcD.js";
4
+ import { t as o } from "./clients-A6MHYfOX.js";
5
+ import { computed as s, createBlock as c, createCommentVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, unref as _, useModel as v } from "vue";
6
+ //#endregion
7
+ //#region src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue
8
+ var y = /* @__PURE__ */ d({
9
+ __name: "wt-type-extension-value-input",
10
+ props: /*@__PURE__*/ f({
11
+ field: {},
12
+ label: {},
13
+ required: { type: Boolean },
14
+ v: {}
15
+ }, {
16
+ modelValue: {},
17
+ modelModifiers: {}
18
+ }),
19
+ emits: ["update:modelValue"],
20
+ setup(d) {
21
+ let f = v(d, "modelValue"), y = d;
22
+ y.v?.$touch();
23
+ let { t: b } = a(), x = s(() => y.label || b(y.field?.name || "vocabulary.labels")), S = s(() => y.required ?? y.field.required), C = s(() => f.value), w = s(() => ({
24
+ label: x.value,
25
+ required: S.value,
26
+ v: y.v
27
+ })), T = s(() => ({
28
+ clearable: !0,
29
+ dataKey: "id",
30
+ searchMethod: () => O(y.field.lookup)
31
+ })), E = s(() => ({ ...T.value })), D = (e) => {
32
+ f.value = e;
33
+ }, O = ({ path: e, display: t, primary: n }) => (r) => o.getSysTypeRecordsLookup({
34
+ ...r,
35
+ path: e,
36
+ display: t,
37
+ primary: n
38
+ }), k = (e) => {
39
+ if (Object.values(e).length === 0) return D(null);
40
+ D({
41
+ id: e.id,
42
+ name: e.name
43
+ });
44
+ }, A = (e) => {
45
+ D(e.map((e) => ({
46
+ id: e.id,
47
+ name: e.name
48
+ })));
49
+ };
50
+ return (a, o) => {
51
+ let s = g("wt-input-text"), f = g("wt-input-number");
52
+ return d.field.kind === _(i).Text ? (m(), c(s, p({ key: 0 }, w.value, {
53
+ "model-value": C.value,
54
+ "onUpdate:modelValue": D
55
+ }), null, 16, ["model-value"])) : d.field.kind === _(i).Number ? (m(), c(f, p({ key: 1 }, w.value, {
56
+ "model-value": C.value,
57
+ "onUpdate:modelValue": D
58
+ }), null, 16, ["model-value"])) : d.field.kind === _(i).Boolean ? h(a.$slots, _(i).Boolean, {
59
+ key: 2,
60
+ defaultProps: { ...w.value }
61
+ }, () => [u(_(e), p(w.value, {
62
+ "model-value": C.value,
63
+ "onUpdate:modelValue": D
64
+ }), null, 16, ["model-value"])]) : d.field.kind === _(i).Select ? h(a.$slots, _(i).Select, {
65
+ key: 3,
66
+ defaultProps: {
67
+ ...w.value,
68
+ ...T.value,
69
+ value: C.value
70
+ }
71
+ }, () => [u(_(t), p(w.value, {
72
+ "model-value": C.value,
73
+ "search-method": O(d.field.lookup),
74
+ "data-key": "id",
75
+ "onUpdate:modelValue": k
76
+ }), null, 16, ["model-value", "search-method"])]) : d.field.kind === _(i).Multiselect ? h(a.$slots, _(i).Multiselect, {
77
+ key: 4,
78
+ defaultProps: {
79
+ ...w.value,
80
+ ...E.value,
81
+ value: C.value
82
+ }
83
+ }, () => [u(_(r), p({
84
+ ...w.value,
85
+ ...E.value
86
+ }, {
87
+ "model-value": C.value,
88
+ "onUpdate:modelValue": A
89
+ }), null, 16, ["model-value"])]) : d.field.kind === _(i).Calendar ? h(a.$slots, _(i).Calendar, {
90
+ key: 5,
91
+ defaultProps: {
92
+ ...w.value,
93
+ value: C.value
94
+ }
95
+ }, () => [u(_(n), p(w.value, {
96
+ value: C.value,
97
+ mode: "datetime",
98
+ onInput: D
99
+ }), null, 16, ["value"])]) : l("", !0);
100
+ };
101
+ }
102
+ });
103
+ //#endregion
104
+ export { y as default };