@ironsource/shared-ui 2.1.10-rc.3 → 2.1.10-rc.5

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 (91) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +1 -0
  2. package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +1 -0
  3. package/DropdownV4.vue_vue_type_style_index_0_scoped_2d635802_lang.css +1 -0
  4. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +1 -0
  5. package/OptionV4.vue_vue_type_style_index_0_scoped_058de532_lang.css +1 -0
  6. package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +1 -0
  7. package/{RadioButtonV4.vue_vue_type_style_index_0_scoped_aafd69f5_lang.css → RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css} +1 -1
  8. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +1 -0
  9. package/components/alert/Alert.vue2.js +3 -2
  10. package/components/autocomplete/Autocomplete.vue.d.ts +1 -1
  11. package/components/autocomplete/index.d.ts +20 -20
  12. package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +65 -0
  13. package/components/button/v4/ToggleButtonGroupAB.vue.js +7 -0
  14. package/components/button/v4/ToggleButtonGroupAB.vue2.js +95 -0
  15. package/components/button/v4/index.d.ts +170 -1
  16. package/components/button/v4/index.js +10 -3
  17. package/components/dateRange/v4/CalendarMonthV4.vue2.js +9 -8
  18. package/components/dateRange/v4/DateRangeV4.vue2.js +21 -20
  19. package/components/dialog/v3/Dialog.vue.d.ts +1 -1
  20. package/components/dialog/v3/index.d.ts +5 -5
  21. package/components/dialog/v4/DialogV4.vue.d.ts +1 -1
  22. package/components/dialog/v4/DialogV4.vue2.js +6 -5
  23. package/components/dialog/v4/index.d.ts +5 -5
  24. package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
  25. package/components/dropdown/v3/index.d.ts +51 -51
  26. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +17 -11
  27. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  28. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +17 -9
  29. package/components/dropdown/v4/DropdownV4.vue.d.ts +2 -2
  30. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  31. package/components/dropdown/v4/DropdownV4.vue2.js +6 -5
  32. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +4 -3
  33. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  34. package/components/dropdown/v4/OptionV4.vue2.js +1 -1
  35. package/components/dropdown/v4/index.d.ts +63 -63
  36. package/components/emptyState/v4/EmptyStateV4.vue2.js +13 -12
  37. package/components/forms/FormCard.vue2.js +13 -12
  38. package/components/includeExclude/index.d.ts +56 -56
  39. package/components/input/v3/Input.vue.d.ts +1 -1
  40. package/components/input/v3/index.d.ts +32 -32
  41. package/components/input/v4/TextField.vue.d.ts +1 -1
  42. package/components/input/v4/index.d.ts +20 -20
  43. package/components/menu/Menu.vue.d.ts +1 -1
  44. package/components/menu/index.d.ts +20 -20
  45. package/components/multibar/MultiBar.vue.d.ts +1 -1
  46. package/components/multibar/MultiBar.vue2.js +3 -2
  47. package/components/multibar/index.d.ts +9 -9
  48. package/components/popover/v3/Popover.vue.d.ts +1 -1
  49. package/components/popover/v3/index.d.ts +20 -20
  50. package/components/popover/v4/PopoverV4.vue.d.ts +7 -3
  51. package/components/popover/v4/PopoverV4.vue.js +3 -3
  52. package/components/popover/v4/PopoverV4.vue2.js +23 -20
  53. package/components/popover/v4/index.d.ts +36 -24
  54. package/components/radioButton/v3/RadioButton.vue.d.ts +1 -1
  55. package/components/radioButton/v3/RadioGroup.vue.d.ts +1 -1
  56. package/components/radioButton/v3/index.d.ts +6 -6
  57. package/components/radioButton/v4/RadioButtonV4.vue.d.ts +1 -1
  58. package/components/radioButton/v4/RadioButtonV4.vue.js +2 -2
  59. package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
  60. package/components/radioButton/v4/RadioGroupV4.vue.d.ts +1 -1
  61. package/components/radioButton/v4/index.d.ts +6 -6
  62. package/components/snackbar/v4/SnackbarV4.vue2.js +7 -6
  63. package/components/sortableList/SortableItem.vue.d.ts +1 -1
  64. package/components/switch/v3/index.d.ts +16 -16
  65. package/components/switch/v4/SwitchV4.vue2.js +6 -5
  66. package/components/switch/v4/index.d.ts +8 -8
  67. package/components/table/v4/DataGrid.vue.d.ts +8 -3
  68. package/components/table/v4/DataGrid.vue.js +2 -2
  69. package/components/table/v4/DataGrid.vue2.js +58 -57
  70. package/components/table/v4/ExpandRowToggle.vue2.js +6 -5
  71. package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -3
  72. package/components/table/v4/MultipleDataGrid.vue.js +3 -3
  73. package/components/table/v4/MultipleDataGrid.vue2.js +44 -42
  74. package/components/table/v4/index.d.ts +46 -8
  75. package/components/textArea/v4/TextAreaV4.vue.d.ts +1 -1
  76. package/components/textArea/v4/index.d.ts +9 -9
  77. package/components/toggle/v3/index.d.ts +8 -8
  78. package/components/toggle/v4/index.d.ts +16 -16
  79. package/index.d.ts +1188 -605
  80. package/index.js +1 -1
  81. package/package.json +2 -2
  82. package/testids/index.d.ts +6 -0
  83. package/testids/index.js +14 -13
  84. package/utils/testIds.d.ts +1 -1
  85. package/utils/testIds.js +6 -6
  86. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +0 -1
  87. package/DataGrid.vue_vue_type_style_index_0_scoped_9cab3826_lang.css +0 -1
  88. package/DropdownV4.vue_vue_type_style_index_0_scoped_899679d0_lang.css +0 -1
  89. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_69c40021_lang.css +0 -1
  90. package/OptionV4.vue_vue_type_style_index_0_scoped_f61be399_lang.css +0 -1
  91. package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +0 -1
@@ -1,8 +1,8 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_9cab3826_lang.css"; import { defineComponent as de, useCssVars as oe, unref as t, useSlots as ne, computed as v, openBlock as l, createElementBlock as d, createElementVNode as u, normalizeStyle as T, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as w, createTextVNode as E, toDisplayString as I, isRef as ce, createCommentVNode as r, Fragment as B, renderList as A, createBlock as z, mergeProps as re } from "vue";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css"; import { defineComponent as de, useCssVars as oe, unref as t, useSlots as ne, computed as v, openBlock as l, createElementBlock as d, createElementVNode as u, normalizeStyle as T, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as w, createTextVNode as E, toDisplayString as B, isRef as ce, createCommentVNode as r, Fragment as I, renderList as A, createBlock as K, mergeProps as re } from "vue";
2
2
  import V from "../../typography/v4/Typography.vue.js";
3
3
  import ue from "../../skeleton/v4/SkeletonV4.vue.js";
4
4
  import he from "../../emptyState/v4/EmptyStateV4.vue.js";
5
- import K from "../../checkbox/v4/CheckboxV4.vue.js";
5
+ import z from "../../checkbox/v4/CheckboxV4.vue.js";
6
6
  import { TableTestIdModifiers as S } from "../../../testids/index.js";
7
7
  import { tableCommon as ye } from "../common/Table.common.js";
8
8
  import fe from "./SortIcon.vue.js";
@@ -13,22 +13,22 @@ import { useVModel as ge } from "@vueuse/core";
13
13
  const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], Ce = ["data-testid"], xe = { class: "search-wrapper" }, Te = ["data-testid"], we = ["data-testid"], Ee = {
14
14
  key: 0,
15
15
  class: "checkbox-cell"
16
- }, Ie = {
16
+ }, Be = {
17
17
  key: 1,
18
18
  class: "expand-toggle-cell"
19
- }, Be = ["onClick"], Ae = { class: "table-head-container" }, Ve = ["data-testid"], Le = ["onMouseenter", "onClick"], Me = {
19
+ }, Ie = ["onClick"], Ae = { class: "table-head-container" }, Ve = ["data-testid"], pe = ["onMouseenter", "onClick"], Le = {
20
20
  key: 0,
21
21
  class: "checkbox-cell"
22
- }, Pe = {
22
+ }, Me = {
23
23
  key: 1,
24
24
  class: "expand-toggle-cell"
25
- }, pe = {
25
+ }, Pe = {
26
26
  key: 2,
27
27
  class: "expanded-row"
28
28
  }, He = {
29
29
  key: 3,
30
30
  class: "floating-row"
31
- }, Ne = { key: 1 }, Fe = {
31
+ }, Fe = { key: 1 }, Ne = {
32
32
  key: 0,
33
33
  class: "table-footer"
34
34
  }, Xe = /* @__PURE__ */ de({
@@ -40,8 +40,9 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
40
40
  sections: { default: null },
41
41
  sort: { default: null },
42
42
  selection: { default: null },
43
- getRowId: { type: Function, default: (s, m) => m },
44
- selectedMatcher: { type: Function, default: (s, m) => s === m },
43
+ getRowId: { type: Function, default: (s, k) => k },
44
+ getRowKey: { type: Function, default: (s, k) => k },
45
+ selectedMatcher: { type: Function, default: (s, k) => s === k },
45
46
  isSticky: { type: Boolean, default: !0 },
46
47
  isStickyHeader: { type: Boolean, default: !1 },
47
48
  isLoading: { type: Boolean, default: !1 },
@@ -63,35 +64,35 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
63
64
  rowDataKey: { default: "" }
64
65
  },
65
66
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
66
- setup(s, { expose: m, emit: y }) {
67
+ setup(s, { expose: k, emit: y }) {
67
68
  const i = s;
68
69
  oe((a) => ({
69
- "1e7437b3": s.zIndexBase,
70
- "734017e7": t(X),
71
- "6b65cd20": t(p),
72
- "4bca76a8": t(J)
70
+ "158e1032": s.zIndexBase,
71
+ db8e3dca: t(X),
72
+ a15dcd58: t(P),
73
+ f7400c48: t(J)
73
74
  }));
74
75
  const b = ne(), U = (a) => i.rowCustomClassKey && i.rows[a] ? i.rows[a][i.rowCustomClassKey] : "", {
75
- list: P,
76
+ list: M,
76
77
  containerProps: G,
77
78
  wrapperProps: Y,
78
79
  activeRow: $,
79
- gridColumnTemplate: p,
80
+ gridColumnTemplate: P,
80
81
  toggleSortOrder: Q,
81
82
  columnsStickyPositions: H,
82
83
  hasSearchSlot: W,
83
84
  containerStyle: j,
84
- onScroll: N,
85
- savingRows: F,
85
+ onScroll: F,
86
+ savingRows: N,
86
87
  hasExpandSlot: R,
87
88
  toggleExpandRow: q,
88
89
  cssRowHeight: J,
89
90
  cssExpandGridCol: X,
90
- isRowExpanded: L,
91
+ isRowExpanded: p,
91
92
  hasCheckboxes: O,
92
93
  activeMenuRow: Z,
93
94
  scrollTo: _
94
- } = ye(i, y), D = v(() => !!b.footer), g = ge(i, "search", y), ee = v(() => i.selection.length || 0), M = v(() => {
95
+ } = ye(i, y), D = v(() => !!b.footer), g = ge(i, "search", y), ee = v(() => i.selection.length || 0), L = v(() => {
95
96
  const a = i.rows.map((o, e) => i.getRowId(o, e));
96
97
  return !!a.length && a.every((o) => C(o));
97
98
  }), C = (a) => i.selection.findIndex((o) => i.selectedMatcher(a, o)) !== -1, te = (a) => {
@@ -101,7 +102,7 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
101
102
  )
102
103
  ), y("selectRow", !1)) : (x([...i.selection, a]), y("selectRow", !0));
103
104
  }, se = () => {
104
- if (M.value)
105
+ if (L.value)
105
106
  x([]), y("selectAll", !1);
106
107
  else {
107
108
  const a = i.rows.map((o, e) => i.getRowId(o, e)).filter((o) => !C(o));
@@ -114,7 +115,7 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
114
115
  ), ie = v(
115
116
  () => i.emptyStateSubtitle ? i.emptyStateSubtitle : g.value ? "Search again with different filters" : void 0
116
117
  );
117
- return m({
118
+ return k({
118
119
  scrollTo: _
119
120
  }), (a, o) => (l(), d("div", {
120
121
  class: "table-container",
@@ -129,7 +130,7 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
129
130
  }),
130
131
  "data-testid": `${s.testId}-${t(S).TABLE}`,
131
132
  onScrollPassive: o[2] || (o[2] = //@ts-ignore
132
- (...e) => t(N) && t(N)(...e))
133
+ (...e) => t(F) && t(F)(...e))
133
134
  }, [
134
135
  s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (l(), d("div", {
135
136
  key: 0,
@@ -143,7 +144,7 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
143
144
  c(a.$slots, "title", {}, () => [
144
145
  h(t(V), { variant: "h3" }, {
145
146
  default: w(() => [
146
- E(I(s.title), 1)
147
+ E(B(s.title), 1)
147
148
  ]),
148
149
  _: 1
149
150
  })
@@ -181,7 +182,7 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
181
182
  class: "sections",
182
183
  "data-testid": `${s.testId}-${t(S).SECTIONS}`
183
184
  }, [
184
- (l(!0), d(B, null, A(s.sections, (e) => (l(), d("div", {
185
+ (l(!0), d(I, null, A(s.sections, (e) => (l(), d("div", {
185
186
  key: e.id,
186
187
  class: f(["section-container", { sticky: e.isSticky }])
187
188
  }, [
@@ -192,7 +193,7 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
192
193
  }, [
193
194
  h(t(V), { variant: "body2" }, {
194
195
  default: w(() => [
195
- E(I(e.title), 1)
196
+ E(B(e.title), 1)
196
197
  ]),
197
198
  _: 2
198
199
  }, 1024)
@@ -203,16 +204,16 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
203
204
  u("tr", null, [
204
205
  t(O) ? (l(), d("th", Ee, [
205
206
  c(a.$slots, "select-all-checkbox", {}, () => [
206
- h(t(K), {
207
+ h(t(z), {
207
208
  disabled: s.isLoading,
208
- "is-checked": t(M),
209
- "is-indeterminate": !t(M) && t(ee) > 0,
209
+ "is-checked": t(L),
210
+ "is-indeterminate": !t(L) && t(ee) > 0,
210
211
  "onUpdate:isChecked": se
211
212
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
212
213
  ])
213
214
  ])) : r("", !0),
214
- t(R) ? (l(), d("th", Ie)) : r("", !0),
215
- (l(!0), d(B, null, A(s.columns, (e) => (l(), d("th", {
215
+ t(R) ? (l(), d("th", Be)) : r("", !0),
216
+ (l(!0), d(I, null, A(s.columns, (e) => (l(), d("th", {
216
217
  key: e.id,
217
218
  class: f({
218
219
  sticky: e.isSticky,
@@ -223,61 +224,61 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
223
224
  [`column-${e.id}`]: !0
224
225
  }),
225
226
  style: T(e.isSticky ? t(H)[e.id] : null),
226
- onClick: (k) => e.isSortable ? t(Q)(e) : null
227
+ onClick: (m) => e.isSortable ? t(Q)(e) : null
227
228
  }, [
228
229
  u("div", Ae, [
229
230
  c(a.$slots, `header-${e.id}`, { column: e }, () => [
230
231
  h(t(V), { variant: "tableLabel" }, {
231
232
  default: w(() => [
232
- E(I(e.title), 1)
233
+ E(B(e.title), 1)
233
234
  ]),
234
235
  _: 2
235
236
  }, 1024)
236
237
  ]),
237
- e.helpText ? (l(), z(Se, {
238
+ e.helpText ? (l(), K(Se, {
238
239
  key: 0,
239
240
  "hover-help-text": e.helpText,
240
241
  "hover-help-text-placement": e.helpTextPlacement
241
242
  }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
242
- e.isSortable && e.id === s.sort?.sortBy ? (l(), z(fe, {
243
+ e.isSortable && e.id === s.sort?.sortBy ? (l(), K(fe, {
243
244
  key: 1,
244
245
  "sort-order": s.sort.sortOrder
245
246
  }, null, 8, ["sort-order"])) : r("", !0)
246
247
  ])
247
- ], 14, Be))), 128))
248
+ ], 14, Ie))), 128))
248
249
  ])
249
250
  ], 2),
250
251
  u("tbody", null, [
251
- t(P).length > 0 ? (l(), d("div", re({
252
+ t(M).length > 0 ? (l(), d("div", re({
252
253
  key: 0,
253
254
  class: "table-body-wrapper",
254
255
  "data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
255
256
  }, t(Y)), [
256
- (l(!0), d(B, null, A(t(P), (e) => (l(), d("tr", {
257
- key: s.getRowId(e.data, e.index),
257
+ (l(!0), d(I, null, A(t(M), (e) => (l(), d("tr", {
258
+ key: s.getRowKey(e.data, e.index),
258
259
  class: f(["table-row", {
259
- loading: s.isLoading || s.isLoading && !e.data || t(F).includes(e.index),
260
+ loading: s.isLoading || s.isLoading && !e.data || t(N).includes(e.index),
260
261
  active: t($) === e.index,
261
262
  activeMenu: t(Z) === e.index,
262
- expanded: t(R) && t(L)(e.index),
263
+ expanded: t(R) && t(p)(e.index),
263
264
  [U(e.index)]: !0
264
265
  }]),
265
- onMouseenter: (k) => $.value = e.index,
266
- onClick: (k) => y("clickRow", e.index)
266
+ onMouseenter: (m) => $.value = e.index,
267
+ onClick: (m) => y("clickRow", e.index)
267
268
  }, [
268
- t(O) ? (l(), d("td", Me, [
269
- h(t(K), {
269
+ t(O) ? (l(), d("td", Le, [
270
+ h(t(z), {
270
271
  "is-checked": C(s.getRowId(e.data, e.index)),
271
- "onUpdate:isChecked": (k) => te(s.getRowId(e.data, e.index))
272
+ "onUpdate:isChecked": (m) => te(s.getRowId(e.data, e.index))
272
273
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
273
274
  ])) : r("", !0),
274
- t(R) ? (l(), d("td", Pe, [
275
+ t(R) ? (l(), d("td", Me, [
275
276
  h(ke, {
276
- expanded: t(L)(e.index),
277
- onClick: (k) => t(q)(e.index, k)
277
+ expanded: t(p)(e.index),
278
+ onClick: (m) => t(q)(e.index, m)
278
279
  }, null, 8, ["expanded", "onClick"])
279
280
  ])) : r("", !0),
280
- (l(!0), d(B, null, A(s.columns, (k, n) => (l(), d("td", {
281
+ (l(!0), d(I, null, A(s.columns, (m, n) => (l(), d("td", {
281
282
  key: n,
282
283
  class: f({
283
284
  sticky: s.columns[n].isSticky,
@@ -296,14 +297,14 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
296
297
  }, [
297
298
  c(a.$slots, `cell-${s.columns[n].id}`, {
298
299
  cell: e.data[n],
299
- isLoading: t(F).includes(e.index),
300
+ isLoading: t(N).includes(e.index),
300
301
  cellIndex: n,
301
302
  row: e,
302
303
  rowIndex: e.index
303
304
  }, () => [
304
305
  h(t(V), { variant: "body1" }, {
305
306
  default: w(() => [
306
- E(I(e.data[n]), 1)
307
+ E(B(e.data[n]), 1)
307
308
  ]),
308
309
  _: 2
309
310
  }, 1024)
@@ -312,10 +313,10 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
312
313
  h(t(ue), { round: "" })
313
314
  ])
314
315
  ], 6))), 128)),
315
- t(R) && t(L)(e.index) ? (l(), d("div", pe, [
316
+ t(R) && t(p)(e.index) ? (l(), d("div", Pe, [
316
317
  c(a.$slots, "expanded", {
317
318
  row: e,
318
- gridColumnTemplate: t(p)
319
+ gridColumnTemplate: t(P)
319
320
  })
320
321
  ])) : r("", !0),
321
322
  ae(e.index) ? (l(), d("div", He, [
@@ -324,8 +325,8 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
324
325
  rowIndex: e.index
325
326
  })
326
327
  ])) : r("", !0)
327
- ], 42, Le))), 128))
328
- ], 16, Ve)) : (l(), d("div", Ne, [
328
+ ], 42, pe))), 128))
329
+ ], 16, Ve)) : (l(), d("div", Fe, [
329
330
  c(a.$slots, "empty-state", {}, () => [
330
331
  h(t(he), {
331
332
  class: "empty-state",
@@ -338,7 +339,7 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
338
339
  ]))
339
340
  ])
340
341
  ], 46, be),
341
- t(D) ? (l(), d("div", Fe, [
342
+ t(D) ? (l(), d("div", Ne, [
342
343
  c(a.$slots, "footer")
343
344
  ])) : r("", !0)
344
345
  ], 40, ve));
@@ -1,19 +1,20 @@
1
- import "../../../ExpandRowToggle.vue_vue_type_style_index_0_scoped_b053baa6_lang.css"; import { defineComponent as a, openBlock as r, createElementBlock as c, createVNode as l, unref as p } from "vue";
1
+ import "../../../ExpandRowToggle.vue_vue_type_style_index_0_scoped_b053baa6_lang.css"; import { defineComponent as r, openBlock as a, createElementBlock as c, createVNode as p, unref as l } from "vue";
2
2
  import "../../button/v4/ButtonV4.vue.js";
3
3
  import i from "../../button/v4/IconButtonV4.vue.js";
4
4
  import "../../button/v4/ButtonGroup.vue.js";
5
- const x = /* @__PURE__ */ a({
5
+ import "../../button/v4/ToggleButtonGroupAB.vue.js";
6
+ const g = /* @__PURE__ */ r({
6
7
  __name: "ExpandRowToggle",
7
8
  props: {
8
9
  expanded: { type: Boolean, default: !1 }
9
10
  },
10
11
  emits: ["click"],
11
12
  setup(o, { emit: n }) {
12
- return (d, e) => (r(), c("div", {
13
+ return (m, e) => (a(), c("div", {
13
14
  class: "expand-row-toggle",
14
15
  onClick: e[0] || (e[0] = (t) => n("click", t))
15
16
  }, [
16
- l(p(i), {
17
+ p(l(i), {
17
18
  class: "expand-button",
18
19
  "icon-name": o.expanded ? "caret-down" : "caret-right"
19
20
  }, null, 8, ["icon-name"])
@@ -21,5 +22,5 @@ const x = /* @__PURE__ */ a({
21
22
  }
22
23
  });
23
24
  export {
24
- x as default
25
+ g as default
25
26
  };
@@ -3,7 +3,8 @@ import { Row, SaveRowEvent, TableSettings } from '@is-ssp/table/common/Table.typ
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
4
  tablesSettings: TableSettings[];
5
5
  loadingAndEmptyStatesColumns: Column[];
6
- getRowId?: (row: Row, index: number) => string | number;
6
+ getRowId?: (row: Row, index: number) => unknown;
7
+ getRowKey?: (row: Row, index: number) => string | number;
7
8
  isSticky?: boolean;
8
9
  isLoading?: boolean;
9
10
  emptyStateVariant?: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
@@ -26,6 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
26
27
  tablesSettings: () => any[];
27
28
  loadingAndEmptyStatesColumns: () => any[];
28
29
  getRowId: (row: any, index: any) => any;
30
+ getRowKey: (row: any, index: any) => any;
29
31
  isSticky: boolean;
30
32
  isLoading: boolean;
31
33
  emptyStateVariant: any;
@@ -55,7 +57,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
55
57
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
56
58
  tablesSettings: TableSettings[];
57
59
  loadingAndEmptyStatesColumns: Column[];
58
- getRowId?: (row: Row, index: number) => string | number;
60
+ getRowId?: (row: Row, index: number) => unknown;
61
+ getRowKey?: (row: Row, index: number) => string | number;
59
62
  isSticky?: boolean;
60
63
  isLoading?: boolean;
61
64
  emptyStateVariant?: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
@@ -78,6 +81,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
78
81
  tablesSettings: () => any[];
79
82
  loadingAndEmptyStatesColumns: () => any[];
80
83
  getRowId: (row: any, index: any) => any;
84
+ getRowKey: (row: any, index: any) => any;
81
85
  isSticky: boolean;
82
86
  isLoading: boolean;
83
87
  emptyStateVariant: any;
@@ -115,7 +119,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
115
119
  emptyStateTitle: string;
116
120
  isSticky: boolean;
117
121
  emptyStateSubtitle: string;
118
- getRowId: (row: Row, index: number) => string | number;
122
+ getRowId: (row: Row, index: number) => unknown;
123
+ getRowKey: (row: Row, index: number) => string | number;
119
124
  emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
120
125
  zIndexBase: number;
121
126
  rowCustomClassKey: string;
@@ -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_69c40021_lang.css"; //*');
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-69c40021"]]);
3
+ // import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css"; //*');
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-020a9896"]]);
5
5
  export {
6
- s as default
6
+ p as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_69c40021_lang.css"; import { defineComponent as A, useCssVars as H, useSlots as O, computed as G, openBlock as n, createElementBlock as c, createElementVNode as C, normalizeClass as K, unref as s, renderSlot as d, createBlock as k, createCommentVNode as f, createVNode as M, isRef as $, Fragment as P, renderList as w, createSlots as b, withCtx as y } from "vue";
2
- import I from "./DataGrid.vue.js";
1
+ import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css"; import { defineComponent as A, useCssVars as K, useSlots as H, computed as O, openBlock as d, createElementBlock as c, createElementVNode as k, normalizeClass as G, unref as s, renderSlot as i, createBlock as C, createCommentVNode as m, createVNode as M, isRef as R, Fragment as F, renderList as f, createSlots as $, withCtx as y } from "vue";
2
+ import b from "./DataGrid.vue.js";
3
3
  import "./DataGridMenu.vue.js";
4
- import F from "./DataGridRowsCounter.vue.js";
4
+ import P from "./DataGridRowsCounter.vue.js";
5
5
  import "./MultipleDataGrid.vue.js";
6
6
  import U from "../../search/v4/SearchV4.vue.js";
7
7
  import { useVModel as Q } from "@vueuse/core";
@@ -14,7 +14,8 @@ const j = ["data-testid"], q = ["data-testid"], J = ["data-testid"], W = ["data-
14
14
  props: {
15
15
  tablesSettings: { default: () => [] },
16
16
  loadingAndEmptyStatesColumns: { default: () => [] },
17
- getRowId: { type: Function, default: (t, i) => i },
17
+ getRowId: { type: Function, default: (t, l) => l },
18
+ getRowKey: { type: Function, default: (t, l) => l },
18
19
  isSticky: { type: Boolean, default: !0 },
19
20
  isLoading: { type: Boolean, default: !1 },
20
21
  emptyStateVariant: { default: null },
@@ -35,30 +36,30 @@ const j = ["data-testid"], q = ["data-testid"], J = ["data-testid"], W = ["data-
35
36
  testId: { default: "" }
36
37
  },
37
38
  emits: ["update:search", "onScroll", "onClearSearch", "clickRow", "saveRow"],
38
- setup(t, { emit: i }) {
39
+ setup(t, { emit: l }) {
39
40
  const h = t;
40
- H((e) => ({
41
- "306dba92": t.zIndexBase
41
+ K((e) => ({
42
+ "81d1b864": t.zIndexBase
42
43
  }));
43
- const R = O(), T = G(
44
+ const I = H(), T = O(
44
45
  () => h.isLoading || !h.tablesSettings.flatMap((e) => e.rows).length
45
- ), r = Q(h, "search", i), m = (e) => `header-${e.id}`, v = (e) => `cell-${e.id}`, x = (e) => {
46
- i("onScroll", e.target.scrollTop);
47
- }, E = () => i("onClearSearch"), V = (e, l) => i("clickRow", e, l), B = ({ value: e, rowIndex: l, cellIndex: a, confirm: u }, o) => i("saveRow", { value: e, tableIndex: o, rowIndex: l, cellIndex: a, confirm: u });
48
- return (e, l) => (n(), c("div", {
46
+ ), r = Q(h, "search", l), w = (e) => `header-${e.id}`, v = (e) => `cell-${e.id}`, x = (e) => {
47
+ l("onScroll", e.target.scrollTop);
48
+ }, E = () => l("onClearSearch"), V = (e, n) => l("clickRow", e, n), B = ({ value: e, rowIndex: n, cellIndex: a, confirm: u }, o) => l("saveRow", { value: e, tableIndex: o, rowIndex: n, cellIndex: a, confirm: u });
49
+ return (e, n) => (d(), c("div", {
49
50
  class: "multi-table-container",
50
51
  onScrollPassive: x
51
52
  }, [
52
- C("div", {
53
- class: K(["table-header-container", { sticky: t.isSticky }]),
53
+ k("div", {
54
+ class: G(["table-header-container", { sticky: t.isSticky }]),
54
55
  "data-testid": `${t.testId}-${s(g).HEADER}`
55
56
  }, [
56
- C("div", {
57
+ k("div", {
57
58
  class: "rows-counter-container",
58
59
  "data-testid": `${t.testId}-${s(g).TITLE}`
59
60
  }, [
60
- d(e.$slots, "title", {}, () => [
61
- t.isLoading ? f("", !0) : (n(), k(s(F), {
61
+ i(e.$slots, "title", {}, () => [
62
+ t.isLoading ? m("", !0) : (d(), C(s(P), {
62
63
  key: 0,
63
64
  count: t.count,
64
65
  "total-count": t.totalCount,
@@ -69,32 +70,32 @@ const j = ["data-testid"], q = ["data-testid"], J = ["data-testid"], W = ["data-
69
70
  }, null, 8, ["count", "total-count", "total-text", "displaying-text", "out-of-text", "test-id"]))
70
71
  ], !0)
71
72
  ], 8, q),
72
- C("div", {
73
+ k("div", {
73
74
  class: "table-header-right",
74
75
  "data-testid": `${t.testId}-${s(g).HEADER_RIGHT}`
75
76
  }, [
76
- t.showSearch ? d(e.$slots, "search", { key: 0 }, () => [
77
+ t.showSearch ? i(e.$slots, "search", { key: 0 }, () => [
77
78
  M(s(U), {
78
79
  modelValue: s(r),
79
- "onUpdate:modelValue": l[0] || (l[0] = (a) => $(r) ? r.value = a : null),
80
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => R(r) ? r.value = a : null),
80
81
  placeholder: t.searchPlaceholder,
81
82
  "test-id": t.testId,
82
83
  onOnClear: E
83
84
  }, null, 8, ["modelValue", "placeholder", "test-id"])
84
- ], !0) : f("", !0),
85
- s(R)["table-header-actions"] ? (n(), c("div", {
85
+ ], !0) : m("", !0),
86
+ s(I)["table-header-actions"] ? (d(), c("div", {
86
87
  key: 1,
87
88
  class: "table-header-actions",
88
89
  "data-testid": `${t.testId}-${s(g).ACTIONS}`
89
90
  }, [
90
- d(e.$slots, "table-header-actions", {}, void 0, !0)
91
- ], 8, W)) : f("", !0)
91
+ i(e.$slots, "table-header-actions", {}, void 0, !0)
92
+ ], 8, W)) : m("", !0)
92
93
  ], 8, J)
93
94
  ], 10, j),
94
- s(T) ? (n(), k(s(I), {
95
+ s(T) ? (d(), C(s(b), {
95
96
  key: 1,
96
97
  search: s(r),
97
- "onUpdate:search": l[1] || (l[1] = (a) => $(r) ? r.value = a : null),
98
+ "onUpdate:search": n[1] || (n[1] = (a) => R(r) ? r.value = a : null),
98
99
  rows: [],
99
100
  columns: t.loadingAndEmptyStatesColumns,
100
101
  "is-loading": t.isLoading,
@@ -103,24 +104,24 @@ const j = ["data-testid"], q = ["data-testid"], J = ["data-testid"], W = ["data-
103
104
  "empty-state-title": t.emptyStateTitle,
104
105
  "empty-state-subtitle": t.emptyStateSubtitle,
105
106
  "test-id": t.testId
106
- }, b({
107
+ }, $({
107
108
  "empty-state": y(() => [
108
- d(e.$slots, "empty-state", {}, void 0, !0)
109
+ i(e.$slots, "empty-state", {}, void 0, !0)
109
110
  ]),
110
111
  _: 2
111
112
  }, [
112
- w(t.loadingAndEmptyStatesColumns, (a) => ({
113
- name: m(a),
113
+ f(t.loadingAndEmptyStatesColumns, (a) => ({
114
+ name: w(a),
114
115
  fn: y(() => [
115
- d(e.$slots, `${m(a)}`, { column: a }, void 0, !0)
116
+ i(e.$slots, `${w(a)}`, { column: a }, void 0, !0)
116
117
  ])
117
118
  }))
118
- ]), 1032, ["search", "columns", "is-loading", "loading-row-count", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "test-id"])) : (n(), c("div", X, [
119
- (n(!0), c(P, null, w(t.tablesSettings, (a, u) => (n(), c("div", {
119
+ ]), 1032, ["search", "columns", "is-loading", "loading-row-count", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "test-id"])) : (d(), c("div", X, [
120
+ (d(!0), c(F, null, f(t.tablesSettings, (a, u) => (d(), c("div", {
120
121
  key: a.testId,
121
122
  class: "table-wrapper"
122
123
  }, [
123
- a.rows.length ? (n(), k(s(I), {
124
+ a.rows.length ? (d(), C(s(b), {
124
125
  key: 0,
125
126
  sections: a.sections,
126
127
  columns: a.columns,
@@ -129,14 +130,15 @@ const j = ["data-testid"], q = ["data-testid"], J = ["data-testid"], W = ["data-
129
130
  "is-sticky": t.isSticky,
130
131
  "z-index-base": t.zIndexBase,
131
132
  "get-row-id": t.getRowId,
133
+ "get-row-key": t.getRowKey,
132
134
  "row-custom-class-key": t.rowCustomClassKey,
133
135
  "row-data-key": t.rowDataKey,
134
136
  "test-id": a.testId,
135
137
  onClickRow: (o) => V(o, u),
136
138
  onSaveRow: (o) => B(o, u)
137
- }, b({
139
+ }, $({
138
140
  "floating-row": y(({ row: o, rowIndex: S }) => [
139
- d(e.$slots, "floating-row", {
141
+ i(e.$slots, "floating-row", {
140
142
  row: o,
141
143
  rowIndex: S,
142
144
  tableIndex: u
@@ -144,13 +146,13 @@ const j = ["data-testid"], q = ["data-testid"], J = ["data-testid"], W = ["data-
144
146
  ]),
145
147
  _: 2
146
148
  }, [
147
- w(a.columns, (o) => ({
148
- name: m(o),
149
+ f(a.columns, (o) => ({
150
+ name: w(o),
149
151
  fn: y(() => [
150
- d(e.$slots, `${m(o)}`, { column: o }, void 0, !0)
152
+ i(e.$slots, `${w(o)}`, { column: o }, void 0, !0)
151
153
  ])
152
154
  })),
153
- w(a.columns, (o) => ({
155
+ f(a.columns, (o) => ({
154
156
  name: v(o),
155
157
  fn: y(({
156
158
  cell: S,
@@ -159,7 +161,7 @@ const j = ["data-testid"], q = ["data-testid"], J = ["data-testid"], W = ["data-
159
161
  cellIndex: N,
160
162
  row: z
161
163
  }) => [
162
- d(e.$slots, `${v(o)}`, {
164
+ i(e.$slots, `${v(o)}`, {
163
165
  cell: S,
164
166
  isLoading: D,
165
167
  cellIndex: N,
@@ -168,7 +170,7 @@ const j = ["data-testid"], q = ["data-testid"], J = ["data-testid"], W = ["data-
168
170
  }, void 0, !0)
169
171
  ])
170
172
  }))
171
- ]), 1032, ["sections", "columns", "rows", "row-height", "is-sticky", "z-index-base", "get-row-id", "row-custom-class-key", "row-data-key", "test-id", "onClickRow", "onSaveRow"])) : f("", !0)
173
+ ]), 1032, ["sections", "columns", "rows", "row-height", "is-sticky", "z-index-base", "get-row-id", "get-row-key", "row-custom-class-key", "row-data-key", "test-id", "onClickRow", "onSaveRow"])) : m("", !0)
172
174
  ]))), 128))
173
175
  ]))
174
176
  ], 32));