@ironsource/shared-ui 2.1.3-rc.0 → 2.1.3-rc.2

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 (69) hide show
  1. package/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +1 -0
  2. package/CardPanel.vue_vue_type_style_index_0_scoped_7d0acb11_lang.css +1 -0
  3. package/CheckboxV4.vue_vue_type_style_index_0_scoped_d25514d1_lang.css +1 -0
  4. package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +1 -0
  5. package/DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css +1 -0
  6. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +1 -0
  7. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +1 -0
  8. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +1 -0
  9. package/FieldLabel.vue_vue_type_style_index_0_scoped_5c2a70ad_lang.css +1 -0
  10. package/FormRow.vue_vue_type_style_index_0_scoped_39f48410_lang.css +1 -0
  11. package/InlineCopy.vue_vue_type_style_index_0_scoped_2a9e8782_lang.css +1 -0
  12. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +1 -0
  13. package/components/appHeader/AppHeader.vue.js +3 -3
  14. package/components/appHeader/AppHeader.vue2.js +42 -35
  15. package/components/checkbox/v4/CheckboxV4.vue.js +4 -4
  16. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  17. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +11 -12
  18. package/components/checkbox/v4/icons/UncheckedState.vue.js +12 -11
  19. package/components/dropdown/common/Dropdown.common.js +93 -92
  20. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +15 -0
  21. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  22. package/components/emptyState/v4/EmptyStateV4.vue2.js +41 -27
  23. package/components/emptyState/v4/index.d.ts +58 -1
  24. package/components/forms/CardPanel.vue.d.ts +20 -0
  25. package/components/forms/CardPanel.vue.js +2 -2
  26. package/components/forms/CardPanel.vue2.js +26 -14
  27. package/components/forms/FormRow.vue.js +4 -4
  28. package/components/forms/FormRow.vue2.js +1 -1
  29. package/components/forms/index.d.ts +77 -1
  30. package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
  31. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  32. package/components/inlineCopy/InlineCopy.vue2.js +22 -21
  33. package/components/inlineCopy/index.d.ts +9 -0
  34. package/components/radioButton/v4/RadioButtonV4.vue.js +4 -4
  35. package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
  36. package/components/shared/FieldLabel.vue.d.ts +5 -0
  37. package/components/shared/FieldLabel.vue.js +3 -3
  38. package/components/shared/FieldLabel.vue2.js +63 -46
  39. package/components/table/common/Table.common.d.ts +1 -0
  40. package/components/table/common/Table.common.js +64 -60
  41. package/components/table/common/TableContext.d.ts +1 -0
  42. package/components/table/v4/DataGrid.vue.js +4 -4
  43. package/components/table/v4/DataGrid.vue2.js +71 -69
  44. package/components/table/v4/DataGridMenu.vue.d.ts +5 -5
  45. package/components/table/v4/DataGridMenu.vue.js +4 -4
  46. package/components/table/v4/DataGridMenu.vue2.js +46 -47
  47. package/components/table/v4/DataGridRowsCounter.vue.d.ts +15 -0
  48. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  49. package/components/table/v4/DataGridRowsCounter.vue2.js +22 -19
  50. package/components/table/v4/index.d.ts +32 -5
  51. package/components/table-cells/common/Editable.common.js +15 -15
  52. package/components/table-cells/v4/EditableV4.vue.d.ts +10 -0
  53. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  54. package/components/table-cells/v4/EditableV4.vue2.js +31 -22
  55. package/components/table-cells/v4/index.d.ts +43 -1
  56. package/index.d.ts +284 -14
  57. package/package.json +1 -1
  58. package/AppHeader.vue_vue_type_style_index_0_scoped_aa538d40_lang.css +0 -1
  59. package/CardPanel.vue_vue_type_style_index_0_scoped_d2b5d12f_lang.css +0 -1
  60. package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css +0 -1
  61. package/DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css +0 -1
  62. package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +0 -1
  63. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_9e366543_lang.css +0 -1
  64. package/EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css +0 -1
  65. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_b8373c2d_lang.css +0 -1
  66. package/FieldLabel.vue_vue_type_style_index_0_scoped_526af548_lang.css +0 -1
  67. package/FormRow.vue_vue_type_style_index_0_scoped_017dc22e_lang.css +0 -1
  68. package/InlineCopy.vue_vue_type_style_index_0_scoped_117ac157_lang.css +0 -1
  69. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +0 -1
@@ -1,114 +1,118 @@
1
- import { useSlots as z, ref as a, provide as G, computed as s, onMounted as K, nextTick as N } from "vue";
2
- import { useVirtualList as V, useInfiniteScroll as j } from "@vueuse/core";
3
- import { TableContext as q } from "./TableContext.js";
4
- const F = 46, J = 46, Z = (o, u) => {
5
- const v = z(), c = a([]);
6
- G(q, {
7
- onClose({ rowIndex: t, cellIndex: e, value: n } = {}) {
8
- n && (c.value = [...c.value, t], u("saveRow", {
1
+ import { useSlots as G, ref as c, provide as K, computed as l, onMounted as N, nextTick as V } from "vue";
2
+ import { useVirtualList as j, useInfiniteScroll as q } from "@vueuse/core";
3
+ import { TableContext as F } from "./TableContext.js";
4
+ const J = 46, Q = 46, p = (e, a) => {
5
+ const m = G(), u = c([]);
6
+ K(F, {
7
+ onClose({ rowIndex: t, cellIndex: o, value: n } = {}) {
8
+ n && (u.value = [...u.value, t], a("saveRow", {
9
9
  rowIndex: t,
10
- cellIndex: e,
10
+ cellIndex: o,
11
11
  value: n,
12
12
  confirm: () => {
13
- c.value = c.value.filter(
13
+ u.value = u.value.filter(
14
14
  (i) => i !== t
15
15
  );
16
16
  }
17
17
  }));
18
+ },
19
+ setActiveMenuRow(t) {
20
+ C.value = t;
18
21
  }
19
22
  });
20
- const x = s(() => !!o.selection), T = s(() => {
21
- const t = (x.value ? `${J}px ` : "") + (g.value ? `${F}px ` : "");
22
- return o.columns.reduce((e, n) => {
23
+ const x = l(() => !!e.selection), T = l(() => {
24
+ const t = (x.value ? `${Q}px ` : "") + (g.value ? `${J}px ` : "");
25
+ return e.columns.reduce((o, n) => {
23
26
  const i = n.width ? `${n.width}px` : `${n.colSpan || 1}fr`;
24
- return `${e} ${i}`;
27
+ return `${o} ${i}`;
25
28
  }, t);
26
- }), g = s(() => !!v.expanded), R = a(null), y = s(() => Array(o.loadingRowCount).fill(
27
- Array(o.columns.length).fill("")
28
- )), H = s(() => o.isLoading ? [...o.rows, ...y.value] : o.rows), { list: C, containerProps: l, wrapperProps: $ } = V(H, {
29
- itemHeight: g.value ? (t) => w[t] ?? o.rowHeight : o.rowHeight
30
- }), b = a(null), h = a(0), k = s(() => !!v.search), B = (t) => {
31
- l.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, u("onScroll", t.target.scrollTop);
29
+ }), g = l(() => !!m.expanded), y = c(null), C = c(null), H = l(() => Array(e.loadingRowCount).fill(
30
+ Array(e.columns.length).fill("")
31
+ )), $ = l(() => e.isLoading ? [...e.rows, ...H.value] : e.rows), { list: R, containerProps: s, wrapperProps: b } = j($, {
32
+ itemHeight: g.value ? (t) => w[t] ?? e.rowHeight : e.rowHeight
33
+ }), k = c(null), h = c(0), B = l(() => !!m.search), I = (t) => {
34
+ s.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, a("onScroll", t.target.scrollTop);
32
35
  };
33
- K(() => {
34
- h.value = l.ref.value?.getBoundingClientRect().width, o.defaultScrollPosition && setTimeout(() => {
35
- l.ref.value?.scrollTo({
36
- top: o.defaultScrollPosition,
36
+ N(() => {
37
+ h.value = s.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
38
+ s.ref.value?.scrollTo({
39
+ top: e.defaultScrollPosition,
37
40
  behavior: "smooth"
38
41
  });
39
42
  }, 300);
40
43
  });
41
- const I = s(() => {
42
- const [t] = C.value;
44
+ const O = l(() => {
45
+ const [t] = R.value;
43
46
  return t && t.index > 0;
44
- }), O = s(() => l.style), P = s(() => o.columns.reduce((t, e) => (e.isSticky && (t[e.id] = A(e)), t), {}));
45
- j(
46
- l.ref,
47
+ }), P = l(() => s.style), A = l(() => e.columns.reduce((t, o) => (o.isSticky && (t[o.id] = M(o)), t), {}));
48
+ q(
49
+ s.ref,
47
50
  () => {
48
- o.isInfiniteScroll && u("loadMore");
51
+ e.isInfiniteScroll && a("loadMore");
49
52
  },
50
- { distance: o.infiniteScrollThreshold }
53
+ { distance: e.infiniteScrollThreshold }
51
54
  );
52
55
  function E() {
53
- l.ref.value?.scrollTo({
56
+ s.ref.value?.scrollTo({
54
57
  top: 0,
55
58
  behavior: "smooth"
56
59
  });
57
60
  }
58
61
  function L(t) {
59
- if (!o.sort)
62
+ if (!e.sort)
60
63
  return;
61
- const e = o.sort.sortBy === t.id;
64
+ const o = e.sort.sortBy === t.id;
62
65
  if (!(t.isSortable || t.isSortable === void 0))
63
66
  return;
64
- let i = o.sort.sortOrder, f = o.sort.sortBy;
65
- e ? i = o.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, u("update:sort", { sortBy: f, sortOrder: i });
67
+ let i = e.sort.sortOrder, f = e.sort.sortBy;
68
+ o ? i = e.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, a("update:sort", { sortBy: f, sortOrder: i });
66
69
  }
67
- function A(t) {
68
- const { isSticky: e, width: n } = t;
69
- if (!e || !n)
70
+ function M(t) {
71
+ const { isSticky: o, width: n } = t;
72
+ if (!o || !n)
70
73
  return null;
71
- const i = o.columns.findIndex((r) => r.id === t.id), f = o.columns.reduce((r, S, m) => m < i ? r + S.width : r, 0), X = o.columns.reduce((r, S, m) => m > i ? r + S.width : r, 0);
74
+ const i = e.columns.findIndex((r) => r.id === t.id), f = e.columns.reduce((r, v, S) => S < i ? r + v.width : r, 0), z = e.columns.reduce((r, v, S) => S > i ? r + v.width : r, 0);
72
75
  return {
73
- ...t.isStickyRight ? { right: `${X}px` } : { left: `${f}px` },
76
+ ...t.isStickyRight ? { right: `${z}px` } : { left: `${f}px` },
74
77
  zIndex: 1
75
78
  };
76
79
  }
77
- const d = a([]), w = {}, _ = (t) => d.value.includes(t), D = async (t, e) => {
80
+ const d = c([]), w = {}, _ = (t) => d.value.includes(t), D = async (t, o) => {
78
81
  const n = d.value.indexOf(t);
79
82
  if (n === -1) {
80
83
  d.value.push(t);
81
- const i = e.target.closest("tr");
82
- await N(), i && (w[t] = i.offsetHeight);
84
+ const i = o.target.closest("tr");
85
+ await V(), i && (w[t] = i.offsetHeight);
83
86
  } else
84
87
  d.value.splice(n, 1), delete w[t];
85
- }, M = s(() => `${o.rowHeight}px`), W = s(
86
- () => `1 / span ${o.columns.length + 1}`
88
+ }, W = l(() => `${e.rowHeight}px`), X = l(
89
+ () => `1 / span ${e.columns.length + 1}`
87
90
  );
88
91
  return {
89
- list: C,
90
- containerProps: l,
91
- wrapperProps: $,
92
- activeRow: R,
92
+ list: R,
93
+ containerProps: s,
94
+ wrapperProps: b,
95
+ activeRow: y,
93
96
  gridColumnTemplate: T,
94
- floatingActionRef: b,
97
+ floatingActionRef: k,
95
98
  scrollToTop: E,
96
99
  toggleSortOrder: L,
97
- columnsStickyPositions: P,
98
- hasSearchSlot: k,
99
- showBackToTopButton: I,
100
- containerStyle: O,
101
- onScroll: B,
102
- savingRows: c,
100
+ columnsStickyPositions: A,
101
+ hasSearchSlot: B,
102
+ showBackToTopButton: O,
103
+ containerStyle: P,
104
+ onScroll: I,
105
+ savingRows: u,
103
106
  floatingActionPosition: h,
104
107
  hasExpandSlot: g,
105
108
  hasCheckboxes: x,
106
109
  toggleExpandRow: D,
107
110
  isRowExpanded: _,
108
- cssRowHeight: M,
109
- cssExpandGridCol: W
111
+ cssRowHeight: W,
112
+ cssExpandGridCol: X,
113
+ activeMenuRow: C
110
114
  };
111
115
  };
112
116
  export {
113
- Z as tableCommon
117
+ p as tableCommon
114
118
  };
@@ -6,6 +6,7 @@ export interface TableContextProps {
6
6
  value?: unknown;
7
7
  error?: string | boolean;
8
8
  }): void;
9
+ setActiveMenuRow?(rowIndex: number | null): void;
9
10
  }
10
11
  export declare const TableContext: InjectionKey<TableContextProps>;
11
12
  export declare function useTableContext(component: string): TableContextProps;
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
- /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css"; //*');
4
- const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-d5635f1b"]]);
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-4baf9e57"]]);
5
5
  export {
6
- a as default
6
+ s as default
7
7
  };
@@ -1,33 +1,33 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css"; import { defineComponent as ee, useCssVars as te, unref as e, useSlots as se, computed as g, openBlock as i, createElementBlock as l, createElementVNode as r, normalizeStyle as T, normalizeClass as y, renderSlot as c, createVNode as u, withCtx as C, createTextVNode as x, toDisplayString as E, isRef as ae, createCommentVNode as h, Fragment as B, renderList as I, createBlock as ie, mergeProps as le } from "vue";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css"; import { defineComponent as te, useCssVars as se, unref as e, useSlots as ae, computed as g, openBlock as i, createElementBlock as l, createElementVNode as r, normalizeStyle as T, normalizeClass as y, renderSlot as c, createVNode as u, withCtx as C, createTextVNode as x, toDisplayString as E, isRef as ie, createCommentVNode as h, Fragment as B, renderList as I, createBlock as le, mergeProps as de } from "vue";
2
2
  import w from "../../typography/v4/Typography.vue.js";
3
- import de from "../../skeleton/v4/SkeletonV4.vue.js";
4
- import oe from "../../emptyState/v4/EmptyStateV4.vue.js";
3
+ import oe from "../../skeleton/v4/SkeletonV4.vue.js";
4
+ import ne from "../../emptyState/v4/EmptyStateV4.vue.js";
5
5
  import D from "../../checkbox/v4/CheckboxV4.vue.js";
6
6
  import { TableTestIdModifiers as f } from "../../../testids/index.js";
7
- import { tableCommon as ne } from "../common/Table.common.js";
8
- import ce from "./SortIcon.vue.js";
9
- import re from "./ExpandRowToggle.vue.js";
10
- import ue from "../../search/v4/SearchV4.vue.js";
11
- import { useVModel as he } from "@vueuse/core";
12
- const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = { class: "search-wrapper" }, be = ["data-testid"], ve = ["data-testid"], $e = {
7
+ import { tableCommon as ce } from "../common/Table.common.js";
8
+ import re from "./SortIcon.vue.js";
9
+ import ue from "./ExpandRowToggle.vue.js";
10
+ import he from "../../search/v4/SearchV4.vue.js";
11
+ import { useVModel as ye } from "@vueuse/core";
12
+ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["data-testid"], be = { class: "search-wrapper" }, ve = ["data-testid"], $e = ["data-testid"], Re = {
13
13
  key: 0,
14
14
  class: "checkbox-cell"
15
- }, Re = {
15
+ }, Te = {
16
16
  key: 1,
17
17
  class: "expand-toggle-cell"
18
- }, Te = ["onClick"], Ce = { class: "table-head-container" }, xe = ["data-testid"], Ee = ["onMouseenter"], Be = {
18
+ }, Ce = ["onClick"], xe = { class: "table-head-container" }, Ee = ["data-testid"], Be = ["onMouseenter"], Ie = {
19
19
  key: 0,
20
20
  class: "checkbox-cell"
21
- }, Ie = {
21
+ }, we = {
22
22
  key: 1,
23
23
  class: "expand-toggle-cell"
24
- }, we = {
24
+ }, Ve = {
25
25
  key: 2,
26
26
  class: "expanded-row"
27
- }, Ve = { key: 1 }, Le = {
27
+ }, Le = { key: 1 }, Me = {
28
28
  key: 0,
29
29
  class: "table-footer"
30
- }, pe = /* @__PURE__ */ ee({
30
+ }, Ye = /* @__PURE__ */ te({
31
31
  __name: "DataGrid",
32
32
  props: {
33
33
  title: { default: "" },
@@ -59,37 +59,38 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
59
59
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "saveRow", "loadMore"],
60
60
  setup(s, { emit: S }) {
61
61
  const o = s;
62
- te((a) => ({
63
- "708a5a8f": s.zIndexBase,
64
- "668fa5c3": e(q),
65
- "6ded5808": e(H),
66
- "70e35284": e(j)
62
+ se((a) => ({
63
+ 42931960: s.zIndexBase,
64
+ baef7858: e(q),
65
+ "2d5a9c66": e(A),
66
+ "3890bdd6": e(j)
67
67
  }));
68
- const b = se(), {
69
- list: A,
68
+ const b = ae(), {
69
+ list: P,
70
70
  containerProps: U,
71
71
  wrapperProps: G,
72
72
  activeRow: V,
73
- gridColumnTemplate: H,
73
+ gridColumnTemplate: A,
74
74
  toggleSortOrder: p,
75
- columnsStickyPositions: N,
75
+ columnsStickyPositions: H,
76
76
  hasSearchSlot: Y,
77
77
  containerStyle: Q,
78
- onScroll: M,
78
+ onScroll: N,
79
79
  savingRows: F,
80
80
  hasExpandSlot: v,
81
81
  toggleExpandRow: W,
82
82
  cssRowHeight: j,
83
83
  cssExpandGridCol: q,
84
84
  isRowExpanded: L,
85
- hasCheckboxes: O
86
- } = ne(o, S), z = g(() => !!b.footer), k = he(o, "search", S), J = g(() => o.selection.length || 0), P = g(() => {
85
+ hasCheckboxes: O,
86
+ activeMenuRow: J
87
+ } = ce(o, S), z = g(() => !!b.footer), k = ye(o, "search", S), K = g(() => o.selection.length || 0), M = g(() => {
87
88
  const a = o.rows.map((d, t) => o.getRowId(d, t));
88
89
  return a.length && a.every((d) => $(d));
89
- }), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, K = (a) => {
90
+ }), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, X = (a) => {
90
91
  $(a) ? R(o.selection.filter((d) => d !== a)) : R([...o.selection, a]);
91
- }, X = () => {
92
- if (P.value)
92
+ }, Z = () => {
93
+ if (M.value)
93
94
  R([]);
94
95
  else {
95
96
  const a = o.rows.map((d, t) => o.getRowId(d, t)).filter((d) => !$(d));
@@ -97,9 +98,9 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
97
98
  }
98
99
  }, R = (a) => {
99
100
  S("update:selection", a);
100
- }, Z = g(
101
+ }, _ = g(
101
102
  () => o.emptyStateVariant ?? (k.value ? "no-results" : "no-data")
102
- ), _ = g(
103
+ ), ee = g(
103
104
  () => o.emptyStateSubtitle ? o.emptyStateSubtitle : k.value ? "Search again with different filters" : void 0
104
105
  );
105
106
  return (a, d) => (i(), l("div", {
@@ -115,7 +116,7 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
115
116
  }),
116
117
  "data-testid": `${s.testId}-${e(f).TABLE}`,
117
118
  onScrollPassive: d[1] || (d[1] = //@ts-ignore
118
- (...t) => e(M) && e(M)(...t))
119
+ (...t) => e(N) && e(N)(...t))
119
120
  }, [
120
121
  s.title || e(b).title || e(Y) || e(b)["table-header-actions"] ? (i(), l("div", {
121
122
  key: 0,
@@ -134,31 +135,31 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
134
135
  _: 1
135
136
  })
136
137
  ], !0)
137
- ], 8, ke),
138
+ ], 8, me),
138
139
  r("div", {
139
140
  class: "table-header-right",
140
141
  "data-testid": `${s.testId}-${e(f).HEADER_RIGHT}`
141
142
  }, [
142
143
  s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
143
- r("div", ge, [
144
- u(e(ue), {
144
+ r("div", be, [
145
+ u(e(he), {
145
146
  modelValue: e(k),
146
- "onUpdate:modelValue": d[0] || (d[0] = (t) => ae(k) ? k.value = t : null),
147
+ "onUpdate:modelValue": d[0] || (d[0] = (t) => ie(k) ? k.value = t : null),
147
148
  placeholder: s.searchPlaceholder,
148
149
  "auto-focus": s.searchAutoFocus,
149
150
  "test-id": s.testId
150
151
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
151
152
  ])
152
153
  ], !0) : h("", !0)
153
- ], 8, me),
154
+ ], 8, ge),
154
155
  e(b)["table-header-actions"] ? (i(), l("div", {
155
156
  key: 0,
156
157
  class: "table-header-actions",
157
158
  "data-testid": `${s.testId}-${e(f).ACTIONS}`
158
159
  }, [
159
160
  c(a.$slots, "table-header-actions", {}, void 0, !0)
160
- ], 8, be)) : h("", !0)
161
- ], 10, Se)) : h("", !0),
161
+ ], 8, ve)) : h("", !0)
162
+ ], 10, ke)) : h("", !0),
162
163
  r("thead", {
163
164
  class: y({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
164
165
  }, [
@@ -184,19 +185,19 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
184
185
  ], 4)
185
186
  ], !0)
186
187
  ], 2))), 128))
187
- ], 8, ve),
188
+ ], 8, $e),
188
189
  r("tr", null, [
189
- e(O) ? (i(), l("th", $e, [
190
+ e(O) ? (i(), l("th", Re, [
190
191
  c(a.$slots, "select-all-checkbox", {}, () => [
191
192
  u(e(D), {
192
193
  disabled: s.isLoading,
193
- "is-checked": e(P),
194
- "is-indeterminate": !e(P) && e(J) > 0,
195
- "onUpdate:isChecked": X
194
+ "is-checked": e(M),
195
+ "is-indeterminate": !e(M) && e(K) > 0,
196
+ "onUpdate:isChecked": Z
196
197
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
197
198
  ], !0)
198
199
  ])) : h("", !0),
199
- e(v) ? (i(), l("th", Re)) : h("", !0),
200
+ e(v) ? (i(), l("th", Te)) : h("", !0),
200
201
  (i(!0), l(B, null, I(s.columns, (t) => (i(), l("th", {
201
202
  key: t.id,
202
203
  class: y({
@@ -207,10 +208,10 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
207
208
  isSortable: t.isSortable,
208
209
  [`column-${t.id}`]: !0
209
210
  }),
210
- style: T(t.isSticky ? e(N)[t.id] : null),
211
+ style: T(t.isSticky ? e(H)[t.id] : null),
211
212
  onClick: (m) => t.isSortable ? e(p)(t) : null
212
213
  }, [
213
- r("div", Ce, [
214
+ r("div", xe, [
214
215
  c(a.$slots, `header-${t.id}`, { column: t }, () => [
215
216
  u(e(w), { variant: "tableLabel" }, {
216
217
  default: C(() => [
@@ -219,38 +220,39 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
219
220
  _: 2
220
221
  }, 1024)
221
222
  ], !0),
222
- t.isSortable && t.id === s.sort?.sortBy ? (i(), ie(ce, {
223
+ t.isSortable && t.id === s.sort?.sortBy ? (i(), le(re, {
223
224
  key: 0,
224
225
  "sort-order": s.sort.sortOrder
225
226
  }, null, 8, ["sort-order"])) : h("", !0)
226
227
  ])
227
- ], 14, Te))), 128))
228
+ ], 14, Ce))), 128))
228
229
  ])
229
230
  ], 2),
230
231
  r("tbody", null, [
231
- e(A).length > 0 ? (i(), l("div", le({
232
+ e(P).length > 0 ? (i(), l("div", de({
232
233
  key: 0,
233
234
  class: "table-body-wrapper",
234
235
  "data-testid": `${s.testId}-${e(f).BODY_WRAPPER}`
235
236
  }, e(G)), [
236
- (i(!0), l(B, null, I(e(A), (t) => (i(), l("tr", {
237
+ (i(!0), l(B, null, I(e(P), (t) => (i(), l("tr", {
237
238
  key: t.index,
238
239
  class: y(["table-row", {
239
240
  loading: s.isLoading || s.isLoading && !t.data || e(F).includes(t.index),
240
241
  active: e(V) === t.index,
242
+ activeMenu: e(J) === t.index,
241
243
  expanded: e(v) && e(L)(t.index)
242
244
  }]),
243
245
  onMouseenter: (m) => V.value = t.index
244
246
  }, [
245
- e(O) ? (i(), l("td", Be, [
247
+ e(O) ? (i(), l("td", Ie, [
246
248
  u(e(D), {
247
249
  "is-checked": $(s.getRowId(t.data, t.index)),
248
250
  size: "sm",
249
- "onUpdate:isChecked": (m) => K(s.getRowId(t.data, t.index))
251
+ "onUpdate:isChecked": (m) => X(s.getRowId(t.data, t.index))
250
252
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
251
253
  ])) : h("", !0),
252
- e(v) ? (i(), l("td", Ie, [
253
- u(re, {
254
+ e(v) ? (i(), l("td", we, [
255
+ u(ue, {
254
256
  expanded: e(L)(t.index),
255
257
  onClick: (m) => e(W)(t.index, m)
256
258
  }, null, 8, ["expanded", "onClick"])
@@ -265,7 +267,7 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
265
267
  [`column-${s.columns[n].id}`]: !0
266
268
  }),
267
269
  style: T(
268
- s.columns[n].isSticky ? e(N)[s.columns[n].id] : null
270
+ s.columns[n].isSticky ? e(H)[s.columns[n].id] : null
269
271
  )
270
272
  }, [
271
273
  !s.isLoading || s.isLoading && t.data[n] ? (i(), l("div", {
@@ -287,35 +289,35 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
287
289
  }, 1024)
288
290
  ], !0)
289
291
  ], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
290
- u(e(de), { round: "" })
292
+ u(e(oe), { round: "" })
291
293
  ], !0)
292
294
  ], 6))), 128)),
293
- e(v) && e(L)(t.index) ? (i(), l("div", we, [
295
+ e(v) && e(L)(t.index) ? (i(), l("div", Ve, [
294
296
  c(a.$slots, "expanded", {
295
297
  row: t,
296
- gridColumnTemplate: e(H)
298
+ gridColumnTemplate: e(A)
297
299
  }, void 0, !0)
298
300
  ])) : h("", !0)
299
- ], 42, Ee))), 128))
300
- ], 16, xe)) : (i(), l("div", Ve, [
301
+ ], 42, Be))), 128))
302
+ ], 16, Ee)) : (i(), l("div", Le, [
301
303
  c(a.$slots, "empty-state", {}, () => [
302
- u(e(oe), {
304
+ u(e(ne), {
303
305
  class: "empty-state",
304
306
  title: s.emptyStateTitle,
305
- subtitle: e(_),
306
- variant: e(Z),
307
+ subtitle: e(ee),
308
+ variant: e(_),
307
309
  "test-id": `${s.testId}-${e(f).EMPTY_STATE}`
308
310
  }, null, 8, ["title", "subtitle", "variant", "test-id"])
309
311
  ], !0)
310
312
  ]))
311
313
  ])
312
- ], 46, fe),
313
- e(z) ? (i(), l("div", Le, [
314
+ ], 46, Se),
315
+ e(z) ? (i(), l("div", Me, [
314
316
  c(a.$slots, "footer", {}, void 0, !0)
315
317
  ])) : h("", !0)
316
- ], 40, ye));
318
+ ], 40, fe));
317
319
  }
318
320
  });
319
321
  export {
320
- pe as default
322
+ Ye as default
321
323
  };
@@ -1,22 +1,22 @@
1
1
  import { MenuItem } from '@is-ssp/table/common/Table.types';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  menuItems: MenuItem[];
4
- container?: string;
4
+ rowIndex?: number;
5
5
  }>, {
6
6
  menuItems: () => any[];
7
- container: any;
7
+ rowIndex: any;
8
8
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  selected: (option: unknown) => void;
10
10
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
11
  menuItems: MenuItem[];
12
- container?: string;
12
+ rowIndex?: number;
13
13
  }>, {
14
14
  menuItems: () => any[];
15
- container: any;
15
+ rowIndex: any;
16
16
  }>>> & {
17
17
  onSelected?: (option: unknown) => any;
18
18
  }, {
19
- container: string;
19
+ rowIndex: number;
20
20
  menuItems: MenuItem[];
21
21
  }>;
22
22
  export default _default;
@@ -1,7 +1,7 @@
1
- import o from "./DataGridMenu.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css"; //*');
4
- const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-92d83650"]]);
1
+ import e from "./DataGridMenu.vue2.js";
2
+ /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-13f1ce76"]]);
5
5
  export {
6
6
  a as default
7
7
  };