@ironsource/shared-ui 2.1.7-rc.10 → 2.1.7-rc.11

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 (35) hide show
  1. package/DataGrid.vue_vue_type_style_index_0_scoped_ff47417d_lang.css +1 -0
  2. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_29f00d79_lang.css +1 -0
  3. package/SortableList.vue_vue_type_style_index_0_scoped_402063dc_lang.css +1 -0
  4. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
  5. package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
  6. package/components/ThemeWrapper/ThemeWrapper.vue2.js +8 -8
  7. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  8. package/components/dropdown/v3/index.d.ts +20 -20
  9. package/components/dropdown/v4/DropdownV4.vue.d.ts +1 -1
  10. package/components/dropdown/v4/index.d.ts +20 -20
  11. package/components/menu/Menu.vue.d.ts +1 -1
  12. package/components/menu/index.d.ts +16 -16
  13. package/components/sortableList/SortableList.vue.d.ts +17 -0
  14. package/components/sortableList/SortableList.vue.js +3 -3
  15. package/components/sortableList/SortableList.vue2.js +122 -86
  16. package/components/sortableList/index.d.ts +60 -1
  17. package/components/table/v3/Table.vue.d.ts +2 -2
  18. package/components/table/v3/index.d.ts +39 -39
  19. package/components/table/v4/DataGrid.vue.d.ts +2 -2
  20. package/components/table/v4/DataGrid.vue.js +4 -4
  21. package/components/table/v4/DataGrid.vue2.js +44 -43
  22. package/components/table/v4/MultipleDataGrid.vue.d.ts +5 -3
  23. package/components/table/v4/MultipleDataGrid.vue.js +3 -3
  24. package/components/table/v4/MultipleDataGrid.vue2.js +83 -67
  25. package/components/table/v4/index.d.ts +77 -75
  26. package/components/table/v4/utils/utils.d.ts +3 -0
  27. package/components/table/v4/utils/utils.js +5 -0
  28. package/components/tooltip/v4/TooltipV4.vue.d.ts +1 -1
  29. package/components/tooltip/v4/index.d.ts +20 -20
  30. package/index.d.ts +432 -310
  31. package/package.json +1 -1
  32. package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
  33. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +0 -1
  34. package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +0 -1
  35. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_1cff50cb_lang.css +0 -1
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
- /* empty css */import a from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css"; //*');
4
- const s = /* @__PURE__ */ a(o, [["__scopeId", "data-v-63aaf3be"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_ff47417d_lang.css"; //*');
4
+ const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-ff47417d"]]);
5
5
  export {
6
- s as default
6
+ a as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_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 z, mergeProps as ne } from "vue";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_ff47417d_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 z, mergeProps as ne } from "vue";
2
2
  import p from "../../typography/v4/Typography.vue.js";
3
3
  import ce from "../../skeleton/v4/SkeletonV4.vue.js";
4
4
  import re from "../../emptyState/v4/EmptyStateV4.vue.js";
@@ -10,25 +10,26 @@ import ye from "./HelpIcon.vue.js";
10
10
  import fe from "./ExpandRowToggle.vue.js";
11
11
  import Se from "../../search/v4/SearchV4.vue.js";
12
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 = {
13
+ import { getEmptyVariant as me, getEmptySubtitle as ge } from "./utils/utils.js";
14
+ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = ["data-testid"], Ce = { class: "search-wrapper" }, Te = ["data-testid"], Ee = ["data-testid"], we = {
14
15
  key: 0,
15
16
  class: "checkbox-cell"
16
- }, Ee = {
17
+ }, Be = {
17
18
  key: 1,
18
19
  class: "expand-toggle-cell"
19
- }, we = ["onClick"], Be = { class: "table-head-container" }, Ie = ["data-testid"], pe = ["onMouseenter", "onClick"], Ae = {
20
+ }, Ie = ["onClick"], pe = { class: "table-head-container" }, Ae = ["data-testid"], Ve = ["onMouseenter", "onClick"], Me = {
20
21
  key: 0,
21
22
  class: "checkbox-cell"
22
- }, Me = {
23
+ }, Pe = {
23
24
  key: 1,
24
25
  class: "expand-toggle-cell"
25
- }, Pe = {
26
+ }, He = {
26
27
  key: 2,
27
28
  class: "expanded-row"
28
- }, Ve = { key: 1 }, He = {
29
+ }, Le = { key: 1 }, Ne = {
29
30
  key: 0,
30
31
  class: "table-footer"
31
- }, qe = /* @__PURE__ */ le({
32
+ }, Xe = /* @__PURE__ */ le({
32
33
  __name: "DataGrid",
33
34
  props: {
34
35
  title: { default: "" },
@@ -61,13 +62,13 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
61
62
  setup(s, { expose: m, emit: y }) {
62
63
  const o = s;
63
64
  ie((a) => ({
64
- "74f5644c": s.zIndexBase,
65
- "54c9adc0": t(K),
66
- "10e150b9": t(H),
67
- "06b2e101": t(J)
65
+ "2370adac": s.zIndexBase,
66
+ "78406f20": t(K),
67
+ "31ad3a19": t(H),
68
+ "03815261": t(J)
68
69
  }));
69
70
  const b = de(), {
70
- list: V,
71
+ list: P,
71
72
  containerProps: G,
72
73
  wrapperProps: Y,
73
74
  activeRow: A,
@@ -82,11 +83,11 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
82
83
  toggleExpandRow: q,
83
84
  cssRowHeight: J,
84
85
  cssExpandGridCol: K,
85
- isRowExpanded: M,
86
+ isRowExpanded: V,
86
87
  hasCheckboxes: O,
87
88
  activeMenuRow: X,
88
89
  scrollTo: Z
89
- } = ue(o, y), D = v(() => !!b.footer), g = ke(o, "search", y), _ = v(() => o.selection.length || 0), P = v(() => {
90
+ } = ue(o, y), D = v(() => !!b.footer), g = ke(o, "search", y), _ = v(() => o.selection.length || 0), M = v(() => {
90
91
  const a = o.rows.map((i, e) => o.getRowId(i, e));
91
92
  return a.length && a.every((i) => R(i));
92
93
  }), R = (a) => o.selection.findIndex((i) => o.selectedMatcher(a, i)) !== -1, ee = (a) => {
@@ -96,7 +97,7 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
96
97
  )
97
98
  ), y("selectRow", !1)) : (x([...o.selection, a]), y("selectRow", !0));
98
99
  }, te = () => {
99
- if (P.value)
100
+ if (M.value)
100
101
  x([]), y("selectAll", !1);
101
102
  else {
102
103
  const a = o.rows.map((i, e) => o.getRowId(i, e)).filter((i) => !R(i));
@@ -105,9 +106,9 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
105
106
  }, x = (a) => {
106
107
  y("update:selection", a);
107
108
  }, se = v(
108
- () => o.emptyStateVariant ?? (g.value ? "no-results" : "no-data")
109
+ () => me(o.emptyStateVariant, g.value)
109
110
  ), ae = v(
110
- () => o.emptyStateSubtitle ? o.emptyStateSubtitle : g.value ? "Search again with different filters" : void 0
111
+ () => ge(o.emptyStateSubtitle, g.value)
111
112
  );
112
113
  return m({
113
114
  scrollTo: Z
@@ -143,13 +144,13 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
143
144
  _: 1
144
145
  })
145
146
  ], !0)
146
- ], 8, be),
147
+ ], 8, Re),
147
148
  u("div", {
148
149
  class: "table-header-right",
149
150
  "data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
150
151
  }, [
151
152
  s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
152
- u("div", Re, [
153
+ u("div", Ce, [
153
154
  h(t(Se), {
154
155
  modelValue: t(g),
155
156
  "onUpdate:modelValue": i[0] || (i[0] = (e) => oe(g) ? g.value = e : null),
@@ -160,15 +161,15 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
160
161
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
161
162
  ])
162
163
  ], !0) : r("", !0)
163
- ], 8, $e),
164
+ ], 8, xe),
164
165
  t(b)["table-header-actions"] ? (l(), d("div", {
165
166
  key: 0,
166
167
  class: "table-header-actions",
167
168
  "data-testid": `${s.testId}-${t(S).ACTIONS}`
168
169
  }, [
169
170
  c(a.$slots, "table-header-actions", {}, void 0, !0)
170
- ], 8, xe)) : r("", !0)
171
- ], 10, ve)) : r("", !0),
171
+ ], 8, Te)) : r("", !0)
172
+ ], 10, $e)) : r("", !0),
172
173
  u("thead", {
173
174
  class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
174
175
  }, [
@@ -194,19 +195,19 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
194
195
  ], 4)
195
196
  ], !0)
196
197
  ], 2))), 128))
197
- ], 8, Ce),
198
+ ], 8, Ee),
198
199
  u("tr", null, [
199
- t(O) ? (l(), d("th", Te, [
200
+ t(O) ? (l(), d("th", we, [
200
201
  c(a.$slots, "select-all-checkbox", {}, () => [
201
202
  h(t(U), {
202
203
  disabled: s.isLoading,
203
- "is-checked": t(P),
204
- "is-indeterminate": !t(P) && t(_) > 0,
204
+ "is-checked": t(M),
205
+ "is-indeterminate": !t(M) && t(_) > 0,
205
206
  "onUpdate:isChecked": te
206
207
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
207
208
  ], !0)
208
209
  ])) : r("", !0),
209
- t($) ? (l(), d("th", Ee)) : r("", !0),
210
+ t($) ? (l(), d("th", Be)) : r("", !0),
210
211
  (l(!0), d(B, null, I(s.columns, (e) => (l(), d("th", {
211
212
  key: e.id,
212
213
  class: f({
@@ -220,7 +221,7 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
220
221
  style: C(e.isSticky ? t(L)[e.id] : null),
221
222
  onClick: (k) => e.isSortable ? t(Q)(e) : null
222
223
  }, [
223
- u("div", Be, [
224
+ u("div", pe, [
224
225
  c(a.$slots, `header-${e.id}`, { column: e }, () => [
225
226
  h(t(p), { variant: "tableLabel" }, {
226
227
  default: T(() => [
@@ -239,35 +240,35 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
239
240
  "sort-order": s.sort.sortOrder
240
241
  }, null, 8, ["sort-order"])) : r("", !0)
241
242
  ])
242
- ], 14, we))), 128))
243
+ ], 14, Ie))), 128))
243
244
  ])
244
245
  ], 2),
245
246
  u("tbody", null, [
246
- t(V).length > 0 ? (l(), d("div", ne({
247
+ t(P).length > 0 ? (l(), d("div", ne({
247
248
  key: 0,
248
249
  class: "table-body-wrapper",
249
250
  "data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
250
251
  }, t(Y)), [
251
- (l(!0), d(B, null, I(t(V), (e) => (l(), d("tr", {
252
+ (l(!0), d(B, null, I(t(P), (e) => (l(), d("tr", {
252
253
  key: e.index,
253
254
  class: f(["table-row", {
254
255
  loading: s.isLoading || s.isLoading && !e.data || t(F).includes(e.index),
255
256
  active: t(A) === e.index,
256
257
  activeMenu: t(X) === e.index,
257
- expanded: t($) && t(M)(e.index)
258
+ expanded: t($) && t(V)(e.index)
258
259
  }]),
259
260
  onMouseenter: (k) => A.value = e.index,
260
261
  onClick: (k) => y("clickRow", e.index)
261
262
  }, [
262
- t(O) ? (l(), d("td", Ae, [
263
+ t(O) ? (l(), d("td", Me, [
263
264
  h(t(U), {
264
265
  "is-checked": R(s.getRowId(e.data, e.index)),
265
266
  "onUpdate:isChecked": (k) => ee(s.getRowId(e.data, e.index))
266
267
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
267
268
  ])) : r("", !0),
268
- t($) ? (l(), d("td", Me, [
269
+ t($) ? (l(), d("td", Pe, [
269
270
  h(fe, {
270
- expanded: t(M)(e.index),
271
+ expanded: t(V)(e.index),
271
272
  onClick: (k) => t(q)(e.index, k)
272
273
  }, null, 8, ["expanded", "onClick"])
273
274
  ])) : r("", !0),
@@ -306,14 +307,14 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
306
307
  h(t(ce), { round: "" })
307
308
  ], !0)
308
309
  ], 6))), 128)),
309
- t($) && t(M)(e.index) ? (l(), d("div", Pe, [
310
+ t($) && t(V)(e.index) ? (l(), d("div", He, [
310
311
  c(a.$slots, "expanded", {
311
312
  row: e,
312
313
  gridColumnTemplate: t(H)
313
314
  }, void 0, !0)
314
315
  ])) : r("", !0)
315
- ], 42, pe))), 128))
316
- ], 16, Ie)) : (l(), d("div", Ve, [
316
+ ], 42, Ve))), 128))
317
+ ], 16, Ae)) : (l(), d("div", Le, [
317
318
  c(a.$slots, "empty-state", {}, () => [
318
319
  h(t(re), {
319
320
  class: "empty-state",
@@ -325,13 +326,13 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
325
326
  ], !0)
326
327
  ]))
327
328
  ])
328
- ], 46, ge),
329
- t(D) ? (l(), d("div", He, [
329
+ ], 46, be),
330
+ t(D) ? (l(), d("div", Ne, [
330
331
  c(a.$slots, "footer", {}, void 0, !0)
331
332
  ])) : r("", !0)
332
- ], 40, me));
333
+ ], 40, ve));
333
334
  }
334
335
  });
335
336
  export {
336
- qe as default
337
+ Xe as default
337
338
  };
@@ -93,10 +93,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
93
93
  searchPlaceholder: string;
94
94
  count: number;
95
95
  showSearch: boolean;
96
- isSticky: boolean;
96
+ loadingRowCount: number;
97
97
  emptyStateTitle: string;
98
+ isSticky: boolean;
98
99
  emptyStateSubtitle: string;
99
- loadingRowCount: number;
100
100
  emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
101
101
  zIndexBase: number;
102
102
  totalCount: number;
@@ -111,7 +111,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
111
111
  cellIndex: any;
112
112
  row: any;
113
113
  rowIndex: any;
114
- }) => any>>>;
114
+ }) => any>> & {
115
+ "empty-state"?(_: {}): any;
116
+ }>;
115
117
  export default _default;
116
118
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
117
119
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,7 +1,7 @@
1
1
  import o from "./MultipleDataGrid.vue2.js";
2
2
  /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css"; //*');
4
- const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1bdca43d"]]);
3
+ // import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_29f00d79_lang.css"; //*');
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-29f00d79"]]);
5
5
  export {
6
- d as default
6
+ s as default
7
7
  };
@@ -1,15 +1,17 @@
1
- import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css"; import { defineComponent as L, useCssVars as V, computed as E, openBlock as l, createElementBlock as d, createElementVNode as y, normalizeClass as $, unref as o, createBlock as c, createCommentVNode as m, isRef as z, Fragment as D, renderList as g, createSlots as M, withCtx as N, renderSlot as O } from "vue";
2
- import h from "./DataGrid.vue.js";
1
+ import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_29f00d79_lang.css"; import { defineComponent as z, useCssVars as D, computed as m, openBlock as l, createElementBlock as c, createElementVNode as g, normalizeClass as M, unref as e, createBlock as u, createCommentVNode as f, isRef as N, Fragment as A, renderList as h, createSlots as O, withCtx as w, renderSlot as k, createVNode as P } from "vue";
2
+ import x from "./DataGrid.vue.js";
3
3
  import "./DataGridMenu.vue.js";
4
- import A from "./DataGridRowsCounter.vue.js";
4
+ import G from "./DataGridRowsCounter.vue.js";
5
5
  import "./MultipleDataGrid.vue.js";
6
- import G from "../../search/v4/SearchV4.vue.js";
7
- import { useVModel as P } from "@vueuse/core";
8
- import { TableTestIdModifiers as S } from "../../../testids/index.js";
9
- const p = ["data-testid"], H = ["data-testid"], F = {
6
+ import H from "../../search/v4/SearchV4.vue.js";
7
+ import { useVModel as F } from "@vueuse/core";
8
+ import Q from "../../emptyState/v4/EmptyStateV4.vue.js";
9
+ import { TableTestIdModifiers as y } from "../../../testids/index.js";
10
+ import { getEmptyVariant as U, getEmptySubtitle as Y } from "./utils/utils.js";
11
+ const j = ["data-testid"], q = ["data-testid"], J = {
10
12
  key: 0,
11
13
  class: "tables-container"
12
- }, Y = /* @__PURE__ */ L({
14
+ }, st = /* @__PURE__ */ z({
13
15
  __name: "MultipleDataGrid",
14
16
  props: {
15
17
  tablesSettings: { default: () => [] },
@@ -32,29 +34,33 @@ const p = ["data-testid"], H = ["data-testid"], F = {
32
34
  testId: { default: "" }
33
35
  },
34
36
  emits: ["update:search", "onScroll", "onClearSearch", "clickRow"],
35
- setup(t, { emit: n }) {
36
- const r = t;
37
- V((e) => ({
38
- "4c643133": t.zIndexBase
37
+ setup(t, { emit: i }) {
38
+ const s = t;
39
+ D((a) => ({
40
+ c8ad7474: t.zIndexBase
39
41
  }));
40
- const w = E(
41
- () => r.isLoading || !r.tablesSettings.flatMap((e) => e.rows).length
42
- ), u = P(r, "search", n), f = (e) => `cell-${e.id}`, k = (e) => {
43
- n("onScroll", e.target.scrollTop);
44
- }, x = () => n("onClearSearch"), C = (e, s) => n("clickRow", e, s);
45
- return (e, s) => (l(), d("div", {
42
+ const C = m(
43
+ () => s.isLoading || !s.tablesSettings.flatMap((a) => a.rows).length
44
+ ), n = F(s, "search", i), b = m(
45
+ () => U(s.emptyStateVariant, n.value)
46
+ ), T = m(
47
+ () => Y(s.emptyStateSubtitle, n.value)
48
+ ), S = (a) => `cell-${a.id}`, I = (a) => {
49
+ i("onScroll", a.target.scrollTop);
50
+ }, E = () => i("onClearSearch"), v = (a, d) => i("clickRow", a, d);
51
+ return (a, d) => (l(), c("div", {
46
52
  class: "multi-table-container",
47
- onScrollPassive: k
53
+ onScrollPassive: I
48
54
  }, [
49
- y("div", {
50
- class: $(["table-header-container", { sticky: t.isSticky }]),
51
- "data-testid": `${t.testId}-${o(S).HEADER}`
55
+ g("div", {
56
+ class: M(["table-header-container", { sticky: t.isSticky }]),
57
+ "data-testid": `${t.testId}-${e(y).HEADER}`
52
58
  }, [
53
- y("div", {
59
+ g("div", {
54
60
  class: "rows-counter-container",
55
- "data-testid": `${t.testId}-${o(S).TITLE}`
61
+ "data-testid": `${t.testId}-${e(y).TITLE}`
56
62
  }, [
57
- t.isLoading ? m("", !0) : (l(), c(o(A), {
63
+ t.isLoading ? f("", !0) : (l(), u(e(G), {
58
64
  key: 0,
59
65
  count: t.count,
60
66
  "total-count": t.totalCount,
@@ -63,66 +69,76 @@ const p = ["data-testid"], H = ["data-testid"], F = {
63
69
  "out-of-text": t.outOfText,
64
70
  "test-id": t.testId
65
71
  }, null, 8, ["count", "total-count", "total-text", "displaying-text", "out-of-text", "test-id"]))
66
- ], 8, H),
67
- t.showSearch ? (l(), c(o(G), {
72
+ ], 8, q),
73
+ t.showSearch ? (l(), u(e(H), {
68
74
  key: 0,
69
- modelValue: o(u),
70
- "onUpdate:modelValue": s[0] || (s[0] = (a) => z(u) ? u.value = a : null),
75
+ modelValue: e(n),
76
+ "onUpdate:modelValue": d[0] || (d[0] = (o) => N(n) ? n.value = o : null),
71
77
  placeholder: t.searchPlaceholder,
72
78
  "test-id": t.testId,
73
- onOnClear: x
74
- }, null, 8, ["modelValue", "placeholder", "test-id"])) : m("", !0)
75
- ], 10, p),
76
- o(w) ? (l(), c(o(h), {
79
+ onOnClear: E
80
+ }, null, 8, ["modelValue", "placeholder", "test-id"])) : f("", !0)
81
+ ], 10, j),
82
+ e(C) ? (l(), u(e(x), {
77
83
  key: 1,
78
- "is-loading": t.isLoading,
79
- columns: t.loadingAndEmptyStatesColumns,
80
84
  rows: [],
81
- "test-id": t.testId,
82
- "empty-state-variant": t.emptyStateVariant,
83
- "empty-state-title": t.emptyStateTitle,
84
- "empty-state-subtitle": t.emptyStateSubtitle,
85
- "loading-row-count": t.loadingRowCount
86
- }, null, 8, ["is-loading", "columns", "test-id", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "loading-row-count"])) : (l(), d("div", F, [
87
- (l(!0), d(D, null, g(t.tablesSettings, (a, b) => (l(), d("div", {
88
- key: a.testId,
85
+ columns: t.loadingAndEmptyStatesColumns,
86
+ "is-loading": t.isLoading,
87
+ "loading-row-count": t.loadingRowCount,
88
+ "test-id": t.testId
89
+ }, {
90
+ "empty-state": w(() => [
91
+ k(a.$slots, "empty-state", {}, () => [
92
+ P(e(Q), {
93
+ class: "empty-state",
94
+ title: t.emptyStateTitle,
95
+ subtitle: e(T),
96
+ variant: e(b),
97
+ "test-id": `${t.testId}-${e(y).EMPTY_STATE}`
98
+ }, null, 8, ["title", "subtitle", "variant", "test-id"])
99
+ ], !0)
100
+ ]),
101
+ _: 3
102
+ }, 8, ["columns", "is-loading", "loading-row-count", "test-id"])) : (l(), c("div", J, [
103
+ (l(!0), c(A, null, h(t.tablesSettings, (o, V) => (l(), c("div", {
104
+ key: o.testId,
89
105
  class: "table-wrapper"
90
106
  }, [
91
- a.rows.length ? (l(), c(o(h), {
107
+ o.rows.length ? (l(), u(e(x), {
92
108
  key: 0,
93
- sections: a.sections,
94
- columns: a.columns,
95
- rows: a.rows,
96
- "row-height": a.rowHeight,
109
+ sections: o.sections,
110
+ columns: o.columns,
111
+ rows: o.rows,
112
+ "row-height": o.rowHeight,
97
113
  "is-sticky": t.isSticky,
98
114
  "z-index-base": t.zIndexBase,
99
- "test-id": a.testId,
100
- onClickRow: (i) => C(i, b)
101
- }, M({ _: 2 }, [
102
- g(a.columns, (i) => ({
103
- name: f(i),
104
- fn: N(({
105
- cell: I,
106
- rowIndex: T,
107
- isLoading: v,
108
- cellIndex: R,
109
- row: B
115
+ "test-id": o.testId,
116
+ onClickRow: (r) => v(r, V)
117
+ }, O({ _: 2 }, [
118
+ h(o.columns, (r) => ({
119
+ name: S(r),
120
+ fn: w(({
121
+ cell: R,
122
+ rowIndex: $,
123
+ isLoading: B,
124
+ cellIndex: L,
125
+ row: p
110
126
  }) => [
111
- O(e.$slots, `${f(i)}`, {
112
- cell: I,
113
- isLoading: v,
114
- cellIndex: R,
115
- row: B,
116
- rowIndex: T
127
+ k(a.$slots, `${S(r)}`, {
128
+ cell: R,
129
+ isLoading: B,
130
+ cellIndex: L,
131
+ row: p,
132
+ rowIndex: $
117
133
  }, void 0, !0)
118
134
  ])
119
135
  }))
120
- ]), 1032, ["sections", "columns", "rows", "row-height", "is-sticky", "z-index-base", "test-id", "onClickRow"])) : m("", !0)
136
+ ]), 1032, ["sections", "columns", "rows", "row-height", "is-sticky", "z-index-base", "test-id", "onClickRow"])) : f("", !0)
121
137
  ]))), 128))
122
138
  ]))
123
139
  ], 32));
124
140
  }
125
141
  });
126
142
  export {
127
- Y as default
143
+ st as default
128
144
  };