@ironsource/shared-ui 2.1.6-rc.36 → 2.1.6-rc.37

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 (36) hide show
  1. package/DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css +1 -0
  2. package/DropdownV4.vue_vue_type_style_index_0_scoped_b484da34_lang.css +1 -0
  3. package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +1 -0
  4. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4492426c_lang.css +1 -0
  5. package/components/autocomplete/Autocomplete.vue.d.ts +1 -0
  6. package/components/autocomplete/Autocomplete.vue2.js +6 -5
  7. package/components/autocomplete/index.d.ts +1 -0
  8. package/components/dropdown/common/Dropdown.common.js +22 -22
  9. package/components/dropdown/common/Option.common.d.ts +1 -1
  10. package/components/dropdown/common/Option.common.js +9 -9
  11. package/components/dropdown/composables/useChildOptions.d.ts +7 -0
  12. package/components/dropdown/composables/useChildOptions.js +14 -0
  13. package/components/dropdown/v4/DropdownV4.vue.d.ts +6 -0
  14. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  15. package/components/dropdown/v4/DropdownV4.vue2.js +43 -40
  16. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  17. package/components/dropdown/v4/OptionV4.vue2.js +21 -22
  18. package/components/dropdown/v4/TreeDropdown.vue.d.ts +97 -0
  19. package/components/dropdown/v4/TreeDropdown.vue.js +7 -0
  20. package/components/dropdown/v4/TreeDropdown.vue2.js +115 -0
  21. package/components/dropdown/v4/index.d.ts +162 -2
  22. package/components/dropdown/v4/index.js +7 -4
  23. package/components/multibar/MultiBarMenu.vue2.js +12 -11
  24. package/components/table/common/Table.common.d.ts +1 -0
  25. package/components/table/common/Table.common.js +65 -61
  26. package/components/table/v4/DataGrid.vue.d.ts +3 -1
  27. package/components/table/v4/DataGrid.vue.js +2 -2
  28. package/components/table/v4/DataGrid.vue2.js +169 -166
  29. package/components/table/v4/DataGridMenu.vue2.js +3 -2
  30. package/components/table/v4/index.d.ts +9 -3
  31. package/index.d.ts +339 -8
  32. package/mocks/options.d.ts +12 -0
  33. package/package.json +1 -1
  34. package/DataGrid.vue_vue_type_style_index_0_scoped_ac14037f_lang.css +0 -1
  35. package/DropdownV4.vue_vue_type_style_index_0_scoped_2e7a89bc_lang.css +0 -1
  36. package/OptionV4.vue_vue_type_style_index_0_scoped_69abfd4a_lang.css +0 -1
@@ -1,34 +1,34 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_ac14037f_lang.css"; import { defineComponent as se, useCssVars as ae, unref as t, useSlots as le, computed as g, openBlock as l, createElementBlock as d, createElementVNode as h, normalizeStyle as x, normalizeClass as f, renderSlot as r, createVNode as y, withCtx as C, createTextVNode as T, toDisplayString as E, isRef as ie, createCommentVNode as u, Fragment as w, renderList as B, createBlock as z, mergeProps as de } from "vue";
2
- import I from "../../typography/v4/Typography.vue.js";
3
- import oe from "../../skeleton/v4/SkeletonV4.vue.js";
4
- import ne from "../../emptyState/v4/EmptyStateV4.vue.js";
5
- import D from "../../checkbox/v4/CheckboxV4.vue.js";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css"; import { defineComponent as le, useCssVars as ie, unref as t, useSlots as de, computed as v, openBlock as l, createElementBlock as d, createElementVNode as u, normalizeStyle as C, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as T, createTextVNode as E, toDisplayString as w, isRef as oe, createCommentVNode as r, Fragment as B, renderList as I, createBlock as D, mergeProps as ne } from "vue";
2
+ import p from "../../typography/v4/Typography.vue.js";
3
+ import ce from "../../skeleton/v4/SkeletonV4.vue.js";
4
+ import re from "../../emptyState/v4/EmptyStateV4.vue.js";
5
+ import U from "../../checkbox/v4/CheckboxV4.vue.js";
6
6
  import { TableTestIdModifiers as S } from "../../../testids/index.js";
7
- import { tableCommon as ce } from "../common/Table.common.js";
8
- import re from "./SortIcon.vue.js";
9
- import ue from "./HelpIcon.vue.js";
10
- import he from "./ExpandRowToggle.vue.js";
11
- import ye from "../../search/v4/SearchV4.vue.js";
12
- import { useVModel as fe } from "@vueuse/core";
13
- const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = { class: "search-wrapper" }, $e = ["data-testid"], Re = ["data-testid"], xe = {
7
+ import { tableCommon as ue } from "../common/Table.common.js";
8
+ import he from "./SortIcon.vue.js";
9
+ import ye from "./HelpIcon.vue.js";
10
+ import fe from "./ExpandRowToggle.vue.js";
11
+ import Se from "../../search/v4/SearchV4.vue.js";
12
+ import { useVModel as ke } from "@vueuse/core";
13
+ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = { class: "search-wrapper" }, xe = ["data-testid"], Ce = ["data-testid"], Te = {
14
14
  key: 0,
15
15
  class: "checkbox-cell"
16
- }, Ce = {
16
+ }, Ee = {
17
17
  key: 1,
18
18
  class: "expand-toggle-cell"
19
- }, Te = ["onClick"], Ee = { class: "table-head-container" }, we = ["data-testid"], Be = ["onMouseenter", "onClick"], Ie = {
19
+ }, we = ["onClick"], Be = { class: "table-head-container" }, Ie = ["data-testid"], pe = ["onMouseenter", "onClick"], Ae = {
20
20
  key: 0,
21
21
  class: "checkbox-cell"
22
- }, pe = {
22
+ }, Me = {
23
23
  key: 1,
24
24
  class: "expand-toggle-cell"
25
- }, Ae = {
25
+ }, Pe = {
26
26
  key: 2,
27
27
  class: "expanded-row"
28
- }, Me = { key: 1 }, Pe = {
28
+ }, Ve = { key: 1 }, He = {
29
29
  key: 0,
30
30
  class: "table-footer"
31
- }, We = /* @__PURE__ */ se({
31
+ }, qe = /* @__PURE__ */ le({
32
32
  __name: "DataGrid",
33
33
  props: {
34
34
  title: { default: "" },
@@ -37,8 +37,8 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
37
37
  sections: { default: null },
38
38
  sort: { default: null },
39
39
  selection: { default: null },
40
- getRowId: { type: Function, default: (s, c) => c },
41
- selectedMatcher: { type: Function, default: (s, c) => s === c },
40
+ getRowId: { type: Function, default: (s, m) => m },
41
+ selectedMatcher: { type: Function, default: (s, m) => s === m },
42
42
  isSticky: { type: Boolean, default: !0 },
43
43
  isStickyHeader: { type: Boolean, default: !1 },
44
44
  isLoading: { type: Boolean, default: !1 },
@@ -58,153 +58,156 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
58
58
  zIndexBase: { default: 100 }
59
59
  },
60
60
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
61
- setup(s, { emit: c }) {
61
+ setup(s, { expose: m, emit: y }) {
62
62
  const o = s;
63
- ae((a) => ({
64
- "27aa1cb6": s.zIndexBase,
65
- db2e22ac: t(J),
66
- "63b3ff23": t(V),
67
- "41c9b22a": t(q)
63
+ ie((a) => ({
64
+ "671cd302": s.zIndexBase,
65
+ be93a49a: t(K),
66
+ "13ad9fec": t(H),
67
+ "6feb5274": t(J)
68
68
  }));
69
- const v = le(), {
70
- list: P,
71
- containerProps: U,
72
- wrapperProps: G,
73
- activeRow: p,
74
- gridColumnTemplate: V,
75
- toggleSortOrder: Y,
76
- columnsStickyPositions: H,
77
- hasSearchSlot: Q,
78
- containerStyle: W,
79
- onScroll: L,
80
- savingRows: N,
81
- hasExpandSlot: b,
82
- toggleExpandRow: j,
83
- cssRowHeight: q,
84
- cssExpandGridCol: J,
85
- isRowExpanded: A,
86
- hasCheckboxes: F,
87
- activeMenuRow: K
88
- } = ce(o, c), O = g(() => !!v.footer), m = fe(o, "search", c), X = g(() => o.selection.length || 0), M = g(() => {
69
+ const b = de(), {
70
+ list: V,
71
+ containerProps: G,
72
+ wrapperProps: Y,
73
+ activeRow: A,
74
+ gridColumnTemplate: H,
75
+ toggleSortOrder: Q,
76
+ columnsStickyPositions: L,
77
+ hasSearchSlot: W,
78
+ containerStyle: j,
79
+ onScroll: N,
80
+ savingRows: F,
81
+ hasExpandSlot: $,
82
+ toggleExpandRow: q,
83
+ cssRowHeight: J,
84
+ cssExpandGridCol: K,
85
+ isRowExpanded: M,
86
+ hasCheckboxes: O,
87
+ activeMenuRow: X,
88
+ scrollTo: Z
89
+ } = ue(o, y), z = v(() => !!b.footer), g = ke(o, "search", y), _ = v(() => o.selection.length || 0), P = v(() => {
89
90
  const a = o.rows.map((i, e) => o.getRowId(i, e));
90
- return a.length && a.every((i) => $(i));
91
- }), $ = (a) => o.selection.findIndex((i) => o.selectedMatcher(a, i)) !== -1, Z = (a) => {
92
- $(a) ? (R(
91
+ return a.length && a.every((i) => R(i));
92
+ }), R = (a) => o.selection.findIndex((i) => o.selectedMatcher(a, i)) !== -1, ee = (a) => {
93
+ R(a) ? (x(
93
94
  o.selection.filter(
94
95
  (i) => !o.selectedMatcher(a, i)
95
96
  )
96
- ), c("selectRow", !1)) : (R([...o.selection, a]), c("selectRow", !0));
97
- }, _ = () => {
98
- if (M.value)
99
- R([]), c("selectAll", !1);
97
+ ), y("selectRow", !1)) : (x([...o.selection, a]), y("selectRow", !0));
98
+ }, te = () => {
99
+ if (P.value)
100
+ x([]), y("selectAll", !1);
100
101
  else {
101
- const a = o.rows.map((i, e) => o.getRowId(i, e)).filter((i) => !$(i));
102
- R([...o.selection, ...a]), c("selectAll", !0);
102
+ const a = o.rows.map((i, e) => o.getRowId(i, e)).filter((i) => !R(i));
103
+ x([...o.selection, ...a]), y("selectAll", !0);
103
104
  }
104
- }, R = (a) => {
105
- c("update:selection", a);
106
- }, ee = g(
107
- () => o.emptyStateVariant ?? (m.value ? "no-results" : "no-data")
108
- ), te = g(
109
- () => o.emptyStateSubtitle ? o.emptyStateSubtitle : m.value ? "Search again with different filters" : void 0
105
+ }, x = (a) => {
106
+ y("update:selection", a);
107
+ }, se = v(
108
+ () => o.emptyStateVariant ?? (g.value ? "no-results" : "no-data")
109
+ ), ae = v(
110
+ () => o.emptyStateSubtitle ? o.emptyStateSubtitle : g.value ? "Search again with different filters" : void 0
110
111
  );
111
- return (a, i) => (l(), d("div", {
112
+ return m({
113
+ scrollTo: Z
114
+ }), (a, i) => (l(), d("div", {
112
115
  class: "table-container",
113
116
  "data-testid": `${s.testId}-${t(S).CONTAINER}`,
114
- onMouseleave: i[3] || (i[3] = (e) => p.value = null)
117
+ onMouseleave: i[3] || (i[3] = (e) => A.value = null)
115
118
  }, [
116
- h("table", {
117
- ref: t(U).ref,
118
- style: x(t(W)),
119
+ u("table", {
120
+ ref: t(G).ref,
121
+ style: C(t(j)),
119
122
  class: f({
120
- hasFooter: t(O)
123
+ hasFooter: t(z)
121
124
  }),
122
125
  "data-testid": `${s.testId}-${t(S).TABLE}`,
123
126
  onScrollPassive: i[2] || (i[2] = //@ts-ignore
124
- (...e) => t(L) && t(L)(...e))
127
+ (...e) => t(N) && t(N)(...e))
125
128
  }, [
126
- s.title || t(v).title || t(Q) || t(v)["table-header-actions"] ? (l(), d("div", {
129
+ s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (l(), d("div", {
127
130
  key: 0,
128
131
  class: f(["table-header", { isStickyHeader: s.isStickyHeader }]),
129
132
  "data-testid": `${s.testId}-${t(S).HEADER}`
130
133
  }, [
131
- h("div", {
134
+ u("div", {
132
135
  class: "table-title",
133
136
  "data-testid": `${s.testId}-${t(S).TITLE}`
134
137
  }, [
135
- r(a.$slots, "title", {}, () => [
136
- y(t(I), { variant: "h3" }, {
137
- default: C(() => [
138
- T(E(s.title), 1)
138
+ c(a.$slots, "title", {}, () => [
139
+ h(t(p), { variant: "h3" }, {
140
+ default: T(() => [
141
+ E(w(s.title), 1)
139
142
  ]),
140
143
  _: 1
141
144
  })
142
145
  ], !0)
143
- ], 8, ge),
144
- h("div", {
146
+ ], 8, be),
147
+ u("div", {
145
148
  class: "table-header-right",
146
149
  "data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
147
150
  }, [
148
- s.showSearch ? r(a.$slots, "search", { key: 0 }, () => [
149
- h("div", be, [
150
- y(t(ye), {
151
- modelValue: t(m),
152
- "onUpdate:modelValue": i[0] || (i[0] = (e) => ie(m) ? m.value = e : null),
151
+ s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
152
+ u("div", Re, [
153
+ h(t(Se), {
154
+ modelValue: t(g),
155
+ "onUpdate:modelValue": i[0] || (i[0] = (e) => oe(g) ? g.value = e : null),
153
156
  placeholder: s.searchPlaceholder,
154
157
  "auto-focus": s.searchAutoFocus,
155
158
  "test-id": s.testId,
156
- onOnClear: i[1] || (i[1] = (e) => c("onClearSearch"))
159
+ onOnClear: i[1] || (i[1] = (e) => y("onClearSearch"))
157
160
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
158
161
  ])
159
- ], !0) : u("", !0)
160
- ], 8, ve),
161
- t(v)["table-header-actions"] ? (l(), d("div", {
162
+ ], !0) : r("", !0)
163
+ ], 8, $e),
164
+ t(b)["table-header-actions"] ? (l(), d("div", {
162
165
  key: 0,
163
166
  class: "table-header-actions",
164
167
  "data-testid": `${s.testId}-${t(S).ACTIONS}`
165
168
  }, [
166
- r(a.$slots, "table-header-actions", {}, void 0, !0)
167
- ], 8, $e)) : u("", !0)
168
- ], 10, me)) : u("", !0),
169
- h("thead", {
169
+ c(a.$slots, "table-header-actions", {}, void 0, !0)
170
+ ], 8, xe)) : r("", !0)
171
+ ], 10, ve)) : r("", !0),
172
+ u("thead", {
170
173
  class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
171
174
  }, [
172
- h("div", {
175
+ u("div", {
173
176
  class: "sections",
174
177
  "data-testid": `${s.testId}-${t(S).SECTIONS}`
175
178
  }, [
176
- (l(!0), d(w, null, B(s.sections, (e) => (l(), d("div", {
179
+ (l(!0), d(B, null, I(s.sections, (e) => (l(), d("div", {
177
180
  key: e.id,
178
181
  class: f(["section-container", { sticky: e.isSticky }])
179
182
  }, [
180
- r(a.$slots, `section-${e.id}`, {}, () => [
181
- h("div", {
182
- style: x({ width: e.width + "px" }),
183
+ c(a.$slots, `section-${e.id}`, {}, () => [
184
+ u("div", {
185
+ style: C({ width: e.width + "px" }),
183
186
  class: f({ section: !0 })
184
187
  }, [
185
- y(t(I), { variant: "body2" }, {
186
- default: C(() => [
187
- T(E(e.title), 1)
188
+ h(t(p), { variant: "body2" }, {
189
+ default: T(() => [
190
+ E(w(e.title), 1)
188
191
  ]),
189
192
  _: 2
190
193
  }, 1024)
191
194
  ], 4)
192
195
  ], !0)
193
196
  ], 2))), 128))
194
- ], 8, Re),
195
- h("tr", null, [
196
- t(F) ? (l(), d("th", xe, [
197
- r(a.$slots, "select-all-checkbox", {}, () => [
198
- y(t(D), {
197
+ ], 8, Ce),
198
+ u("tr", null, [
199
+ t(O) ? (l(), d("th", Te, [
200
+ c(a.$slots, "select-all-checkbox", {}, () => [
201
+ h(t(U), {
199
202
  disabled: s.isLoading,
200
- "is-checked": t(M),
201
- "is-indeterminate": !t(M) && t(X) > 0,
202
- "onUpdate:isChecked": _
203
+ "is-checked": t(P),
204
+ "is-indeterminate": !t(P) && t(_) > 0,
205
+ "onUpdate:isChecked": te
203
206
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
204
207
  ], !0)
205
- ])) : u("", !0),
206
- t(b) ? (l(), d("th", Ce)) : u("", !0),
207
- (l(!0), d(w, null, B(s.columns, (e) => (l(), d("th", {
208
+ ])) : r("", !0),
209
+ t($) ? (l(), d("th", Ee)) : r("", !0),
210
+ (l(!0), d(B, null, I(s.columns, (e) => (l(), d("th", {
208
211
  key: e.id,
209
212
  class: f({
210
213
  sticky: e.isSticky,
@@ -214,62 +217,62 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
214
217
  isSortable: e.isSortable,
215
218
  [`column-${e.id}`]: !0
216
219
  }),
217
- style: x(e.isSticky ? t(H)[e.id] : null),
218
- onClick: (k) => e.isSortable ? t(Y)(e) : null
220
+ style: C(e.isSticky ? t(L)[e.id] : null),
221
+ onClick: (k) => e.isSortable ? t(Q)(e) : null
219
222
  }, [
220
- h("div", Ee, [
221
- r(a.$slots, `header-${e.id}`, { column: e }, () => [
222
- y(t(I), { variant: "tableLabel" }, {
223
- default: C(() => [
224
- T(E(e.title), 1)
223
+ u("div", Be, [
224
+ c(a.$slots, `header-${e.id}`, { column: e }, () => [
225
+ h(t(p), { variant: "tableLabel" }, {
226
+ default: T(() => [
227
+ E(w(e.title), 1)
225
228
  ]),
226
229
  _: 2
227
230
  }, 1024)
228
231
  ], !0),
229
- e.helpText ? (l(), z(ue, {
232
+ e.helpText ? (l(), D(ye, {
230
233
  key: 0,
231
234
  "hover-help-text": e.helpText,
232
235
  "hover-help-text-placement": e.helpTextPlacement
233
- }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : u("", !0),
234
- e.isSortable && e.id === s.sort?.sortBy ? (l(), z(re, {
236
+ }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
237
+ e.isSortable && e.id === s.sort?.sortBy ? (l(), D(he, {
235
238
  key: 1,
236
239
  "sort-order": s.sort.sortOrder
237
- }, null, 8, ["sort-order"])) : u("", !0)
240
+ }, null, 8, ["sort-order"])) : r("", !0)
238
241
  ])
239
- ], 14, Te))), 128))
242
+ ], 14, we))), 128))
240
243
  ])
241
244
  ], 2),
242
- h("tbody", null, [
243
- t(P).length > 0 ? (l(), d("div", de({
245
+ u("tbody", null, [
246
+ t(V).length > 0 ? (l(), d("div", ne({
244
247
  key: 0,
245
248
  class: "table-body-wrapper",
246
249
  "data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
247
- }, t(G)), [
248
- (l(!0), d(w, null, B(t(P), (e) => (l(), d("tr", {
250
+ }, t(Y)), [
251
+ (l(!0), d(B, null, I(t(V), (e) => (l(), d("tr", {
249
252
  key: e.index,
250
253
  class: f(["table-row", {
251
- loading: s.isLoading || s.isLoading && !e.data || t(N).includes(e.index),
252
- active: t(p) === e.index,
253
- activeMenu: t(K) === e.index,
254
- expanded: t(b) && t(A)(e.index)
254
+ loading: s.isLoading || s.isLoading && !e.data || t(F).includes(e.index),
255
+ active: t(A) === e.index,
256
+ activeMenu: t(X) === e.index,
257
+ expanded: t($) && t(M)(e.index)
255
258
  }]),
256
- onMouseenter: (k) => p.value = e.index,
257
- onClick: (k) => c("clickRow", e.index)
259
+ onMouseenter: (k) => A.value = e.index,
260
+ onClick: (k) => y("clickRow", e.index)
258
261
  }, [
259
- t(F) ? (l(), d("td", Ie, [
260
- y(t(D), {
261
- "is-checked": $(s.getRowId(e.data, e.index)),
262
+ t(O) ? (l(), d("td", Ae, [
263
+ h(t(U), {
264
+ "is-checked": R(s.getRowId(e.data, e.index)),
262
265
  size: "sm",
263
- "onUpdate:isChecked": (k) => Z(s.getRowId(e.data, e.index))
266
+ "onUpdate:isChecked": (k) => ee(s.getRowId(e.data, e.index))
264
267
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
265
- ])) : u("", !0),
266
- t(b) ? (l(), d("td", pe, [
267
- y(he, {
268
- expanded: t(A)(e.index),
269
- onClick: (k) => t(j)(e.index, k)
268
+ ])) : r("", !0),
269
+ t($) ? (l(), d("td", Me, [
270
+ h(fe, {
271
+ expanded: t(M)(e.index),
272
+ onClick: (k) => t(q)(e.index, k)
270
273
  }, null, 8, ["expanded", "onClick"])
271
- ])) : u("", !0),
272
- (l(!0), d(w, null, B(s.columns, (k, n) => (l(), d("td", {
274
+ ])) : r("", !0),
275
+ (l(!0), d(B, null, I(s.columns, (k, n) => (l(), d("td", {
273
276
  key: n,
274
277
  class: f({
275
278
  sticky: s.columns[n].isSticky,
@@ -278,58 +281,58 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
278
281
  isTextRight: s.columns[n].isTextRight,
279
282
  [`column-${s.columns[n].id}`]: !0
280
283
  }),
281
- style: x(
282
- s.columns[n].isSticky ? t(H)[s.columns[n].id] : null
284
+ style: C(
285
+ s.columns[n].isSticky ? t(L)[s.columns[n].id] : null
283
286
  )
284
287
  }, [
285
288
  !s.isLoading || s.isLoading && e.data[n] ? (l(), d("div", {
286
289
  key: 0,
287
290
  class: f(["table-cell", { last: n === e.data.length - 1 }])
288
291
  }, [
289
- r(a.$slots, `cell-${s.columns[n].id}`, {
292
+ c(a.$slots, `cell-${s.columns[n].id}`, {
290
293
  cell: e.data[n],
291
- isLoading: t(N).includes(e.index),
294
+ isLoading: t(F).includes(e.index),
292
295
  cellIndex: n,
293
296
  row: e,
294
297
  rowIndex: e.index
295
298
  }, () => [
296
- y(t(I), { variant: "body1" }, {
297
- default: C(() => [
298
- T(E(e.data[n]), 1)
299
+ h(t(p), { variant: "body1" }, {
300
+ default: T(() => [
301
+ E(w(e.data[n]), 1)
299
302
  ]),
300
303
  _: 2
301
304
  }, 1024)
302
305
  ], !0)
303
- ], 2)) : r(a.$slots, "loader", { key: 1 }, () => [
304
- y(t(oe), { round: "" })
306
+ ], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
307
+ h(t(ce), { round: "" })
305
308
  ], !0)
306
309
  ], 6))), 128)),
307
- t(b) && t(A)(e.index) ? (l(), d("div", Ae, [
308
- r(a.$slots, "expanded", {
310
+ t($) && t(M)(e.index) ? (l(), d("div", Pe, [
311
+ c(a.$slots, "expanded", {
309
312
  row: e,
310
- gridColumnTemplate: t(V)
313
+ gridColumnTemplate: t(H)
311
314
  }, void 0, !0)
312
- ])) : u("", !0)
313
- ], 42, Be))), 128))
314
- ], 16, we)) : (l(), d("div", Me, [
315
- r(a.$slots, "empty-state", {}, () => [
316
- y(t(ne), {
315
+ ])) : r("", !0)
316
+ ], 42, pe))), 128))
317
+ ], 16, Ie)) : (l(), d("div", Ve, [
318
+ c(a.$slots, "empty-state", {}, () => [
319
+ h(t(re), {
317
320
  class: "empty-state",
318
321
  title: s.emptyStateTitle,
319
- subtitle: t(te),
320
- variant: t(ee),
322
+ subtitle: t(ae),
323
+ variant: t(se),
321
324
  "test-id": `${s.testId}-${t(S).EMPTY_STATE}`
322
325
  }, null, 8, ["title", "subtitle", "variant", "test-id"])
323
326
  ], !0)
324
327
  ]))
325
328
  ])
326
- ], 46, ke),
327
- t(O) ? (l(), d("div", Pe, [
328
- r(a.$slots, "footer", {}, void 0, !0)
329
- ])) : u("", !0)
330
- ], 40, Se));
329
+ ], 46, ge),
330
+ t(z) ? (l(), d("div", He, [
331
+ c(a.$slots, "footer", {}, void 0, !0)
332
+ ])) : r("", !0)
333
+ ], 40, me));
331
334
  }
332
335
  });
333
336
  export {
334
- We as default
337
+ qe as default
335
338
  };
@@ -6,10 +6,11 @@ import "../../dropdown/v4/ChipDropdownTrigger.vue.js";
6
6
  import "../../dropdown/v4/AppDropdownTrigger.vue.js";
7
7
  import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
8
8
  import "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
9
+ import "../../dropdown/v4/TreeDropdown.vue.js";
9
10
  import C from "../../dropdown/v4/OptionV4.vue.js";
10
11
  import k from "../../icon/v4/IconV4.vue.js";
11
12
  import { useTableContext as y } from "../common/TableContext.js";
12
- const T = /* @__PURE__ */ p({
13
+ const U = /* @__PURE__ */ p({
13
14
  __name: "DataGridMenu",
14
15
  props: {
15
16
  menuItems: { default: () => [] },
@@ -58,5 +59,5 @@ const T = /* @__PURE__ */ p({
58
59
  }
59
60
  });
60
61
  export {
61
- T as default
62
+ U as default
62
63
  };
@@ -282,7 +282,9 @@ declare const DataGridTypes: () => (({
282
282
  onOnClearSearch?: () => any;
283
283
  onSelectRow?: (value: boolean) => any;
284
284
  onClickRow?: (rowIndex: number) => any;
285
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
285
+ }, {
286
+ scrollTo: (index: number) => void;
287
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
286
288
  "update:sort": (newSort: import("../common/Table.types").Sort) => void;
287
289
  "update:search": (query: string) => void;
288
290
  "update:selection": (selection: unknown[]) => void;
@@ -459,7 +461,9 @@ declare const DataGridTypes: () => (({
459
461
  onOnClearSearch?: () => any;
460
462
  onSelectRow?: (value: boolean) => any;
461
463
  onClickRow?: (rowIndex: number) => any;
462
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
464
+ } & import("vue").ShallowUnwrapRef<{
465
+ scrollTo: (index: number) => void;
466
+ }> & {} & import("vue").ComponentCustomProperties & {};
463
467
  __isFragment?: never;
464
468
  __isTeleport?: never;
465
469
  __isSuspense?: never;
@@ -580,7 +584,9 @@ declare const DataGridTypes: () => (({
580
584
  onOnClearSearch?: () => any;
581
585
  onSelectRow?: (value: boolean) => any;
582
586
  onClickRow?: (rowIndex: number) => any;
583
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
587
+ }, {
588
+ scrollTo: (index: number) => void;
589
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
584
590
  "update:sort": (newSort: import("../common/Table.types").Sort) => void;
585
591
  "update:search": (query: string) => void;
586
592
  "update:selection": (selection: unknown[]) => void;