@ironsource/shared-ui 2.1.11-test.2 → 2.1.11-test.26

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 (107) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_f9a13e27_lang.css +1 -0
  2. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
  3. package/Chart.vue_vue_type_style_index_0_scoped_8f471697_lang.css +1 -0
  4. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_039dd922_lang.css +1 -0
  5. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2aee12ad_lang.css +1 -0
  6. package/DataGrid.vue_vue_type_style_index_0_scoped_e7591db4_lang.css +1 -0
  7. package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
  8. package/DropdownV4.vue_vue_type_style_index_0_scoped_6466948d_lang.css +1 -0
  9. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_111b200a_lang.css +1 -0
  10. package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
  11. package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
  12. package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
  13. package/README.md +4 -15
  14. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
  15. package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +1 -0
  16. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
  17. package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +1 -0
  18. package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +1 -0
  19. package/components/autocomplete/Autocomplete.vue2.js +3 -2
  20. package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
  21. package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
  22. package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
  23. package/components/button/v4/index.d.ts +9 -3
  24. package/components/chart/Chart.vue.js +5 -5
  25. package/components/chart/Chart.vue2.js +48 -46
  26. package/components/chart/SettingsHeader.vue.js +3 -3
  27. package/components/chart/SettingsHeader.vue2.js +34 -26
  28. package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
  29. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  30. package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
  31. package/components/dropdown/common/Dropdown.common.js +191 -184
  32. package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
  33. package/components/dropdown/v3/index.d.ts +39 -39
  34. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
  35. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  36. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +6 -6
  37. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  38. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
  39. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
  40. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  41. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +73 -47
  42. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +90 -0
  43. package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
  44. package/components/dropdown/v4/ConditionalDropdown.vue2.js +185 -0
  45. package/components/dropdown/v4/DropdownV4.vue.d.ts +31 -6
  46. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  47. package/components/dropdown/v4/DropdownV4.vue2.js +224 -198
  48. package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
  49. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  50. package/components/dropdown/v4/OptionV4.vue2.js +135 -98
  51. package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
  52. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  53. package/components/dropdown/v4/TreeDropdown.vue2.js +210 -168
  54. package/components/dropdown/v4/index.d.ts +402 -87
  55. package/components/dropdown/v4/index.js +6 -3
  56. package/components/filtersPanel/v4/FiltersPanelV4.vue.js +3 -3
  57. package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
  58. package/components/icon/v4/consts.d.ts +1 -1
  59. package/components/icon/v4/consts.js +1 -1
  60. package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
  61. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  62. package/components/inlineCopy/InlineCopy.vue2.js +24 -22
  63. package/components/inlineCopy/index.d.ts +9 -0
  64. package/components/input/v4/TextField.vue.js +3 -3
  65. package/components/input/v4/TextField.vue2.js +12 -12
  66. package/components/multibar/MultiBarMenu.vue2.js +3 -2
  67. package/components/popover/v4/PopoverV4.vue.d.ts +14 -2
  68. package/components/popover/v4/PopoverV4.vue.js +4 -3
  69. package/components/popover/v4/PopoverV4.vue2.js +40 -24
  70. package/components/popover/v4/index.d.ts +55 -11
  71. package/components/sortableList/SortableList.vue.d.ts +1 -1
  72. package/components/sortableList/index.d.ts +4 -4
  73. package/components/table/common/Table.common.js +69 -71
  74. package/components/table/common/Table.types.d.ts +1 -1
  75. package/components/table/v3/Table.vue.d.ts +1 -1
  76. package/components/table/v3/index.d.ts +5 -5
  77. package/components/table/v4/DataGrid.vue.d.ts +6 -1
  78. package/components/table/v4/DataGrid.vue.js +4 -4
  79. package/components/table/v4/DataGrid.vue2.js +124 -117
  80. package/components/table/v4/DataGridMenu.vue2.js +3 -2
  81. package/components/table/v4/index.d.ts +26 -7
  82. package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
  83. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  84. package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
  85. package/components/tooltip/v4/index.d.ts +39 -1
  86. package/design-foundation.stories/icons/iconsData.d.ts +1 -1
  87. package/index.d.ts +1123 -262
  88. package/index.js +1 -1
  89. package/mocks/options.d.ts +48 -2
  90. package/mocks/words.d.ts +1 -1
  91. package/package.json +3 -2
  92. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
  93. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
  94. package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
  95. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
  96. package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
  97. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
  98. package/DropdownV4.vue_vue_type_style_index_0_scoped_991a7aad_lang.css +0 -1
  99. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
  100. package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
  101. package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
  102. package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
  103. package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
  104. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
  105. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +0 -1
  106. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
  107. package/TreeDropdown.vue_vue_type_style_index_0_scoped_c361375a_lang.css +0 -1
@@ -1,4 +1,4 @@
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";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_e7591db4_lang.css"; import { defineComponent as de, useCssVars as oe, unref as t, useSlots as ne, computed as v, openBlock as a, createElementBlock as d, createElementVNode as h, normalizeStyle as T, normalizeClass as u, renderSlot as c, createVNode as y, 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";
@@ -11,27 +11,21 @@ import ke from "./ExpandRowToggle.vue.js";
11
11
  import me from "../../search/v4/SearchV4.vue.js";
12
12
  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
- key: 0,
15
- class: "checkbox-cell"
16
- }, Be = {
17
14
  key: 1,
18
15
  class: "expand-toggle-cell"
19
- }, Ie = ["onClick"], Ae = { class: "table-head-container" }, Ve = ["data-testid"], pe = ["onMouseenter", "onClick"], Le = {
20
- key: 0,
21
- class: "checkbox-cell"
22
- }, Me = {
16
+ }, Be = ["onClick"], Ie = { class: "table-head-container" }, Ae = ["data-testid"], Ve = ["onMouseenter", "onClick"], Le = {
23
17
  key: 1,
24
18
  class: "expand-toggle-cell"
25
- }, Pe = {
19
+ }, Me = {
26
20
  key: 2,
27
21
  class: "expanded-row"
28
- }, He = {
22
+ }, Pe = {
29
23
  key: 3,
30
24
  class: "floating-row"
31
- }, Fe = { key: 1 }, Ne = {
25
+ }, He = { key: 1 }, Fe = {
32
26
  key: 0,
33
27
  class: "table-footer"
34
- }, Xe = /* @__PURE__ */ de({
28
+ }, qe = /* @__PURE__ */ de({
35
29
  __name: "DataGrid",
36
30
  props: {
37
31
  title: { default: "" },
@@ -45,6 +39,7 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
45
39
  selectedMatcher: { type: Function, default: (s, k) => s === k },
46
40
  isSticky: { type: Boolean, default: !0 },
47
41
  isStickyHeader: { type: Boolean, default: !1 },
42
+ isSelectionSticky: { type: Boolean, default: !1 },
48
43
  isLoading: { type: Boolean, default: !1 },
49
44
  emptyStateVariant: { default: null },
50
45
  emptyStateTitle: { default: "No data to display" },
@@ -64,85 +59,85 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
64
59
  rowDataKey: { default: "" }
65
60
  },
66
61
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
67
- setup(s, { expose: k, emit: y }) {
62
+ setup(s, { expose: k, emit: f }) {
68
63
  const i = s;
69
- oe((a) => ({
70
- "158e1032": s.zIndexBase,
71
- db8e3dca: t(X),
72
- a15dcd58: t(P),
73
- f7400c48: t(J)
64
+ oe((l) => ({
65
+ "636ded5a": s.zIndexBase,
66
+ b8e29764: t(X),
67
+ "7b022872": t(H),
68
+ "392d5e8f": t(J)
74
69
  }));
75
- const b = ne(), U = (a) => i.rowCustomClassKey && i.rows[a] ? i.rows[a][i.rowCustomClassKey] : "", {
76
- list: M,
70
+ const b = ne(), U = (l) => i.rowCustomClassKey && i.rows[l] ? i.rows[l][i.rowCustomClassKey] : "", {
71
+ list: P,
77
72
  containerProps: G,
78
73
  wrapperProps: Y,
79
74
  activeRow: $,
80
- gridColumnTemplate: P,
75
+ gridColumnTemplate: H,
81
76
  toggleSortOrder: Q,
82
- columnsStickyPositions: H,
77
+ columnsStickyPositions: F,
83
78
  hasSearchSlot: W,
84
79
  containerStyle: j,
85
- onScroll: F,
86
- savingRows: N,
80
+ onScroll: N,
81
+ savingRows: p,
87
82
  hasExpandSlot: R,
88
83
  toggleExpandRow: q,
89
84
  cssRowHeight: J,
90
85
  cssExpandGridCol: X,
91
- isRowExpanded: p,
86
+ isRowExpanded: L,
92
87
  hasCheckboxes: O,
93
88
  activeMenuRow: Z,
94
89
  scrollTo: _
95
- } = ye(i, y), D = v(() => !!b.footer), g = ge(i, "search", y), ee = v(() => i.selection.length || 0), L = v(() => {
96
- const a = i.rows.map((o, e) => i.getRowId(o, e));
97
- return !!a.length && a.every((o) => C(o));
98
- }), C = (a) => i.selection.findIndex((o) => i.selectedMatcher(a, o)) !== -1, te = (a) => {
99
- C(a) ? (x(
90
+ } = ye(i, f), D = v(() => !!b.footer), g = ge(i, "search", f), ee = v(() => i.selection.length || 0), M = v(() => {
91
+ const l = i.rows.map((o, e) => i.getRowId(o, e));
92
+ return !!l.length && l.every((o) => C(o));
93
+ }), C = (l) => i.selection.findIndex((o) => i.selectedMatcher(l, o)) !== -1, te = (l) => {
94
+ C(l) ? (x(
100
95
  i.selection.filter(
101
- (o) => !i.selectedMatcher(a, o)
96
+ (o) => !i.selectedMatcher(l, o)
102
97
  )
103
- ), y("selectRow", !1)) : (x([...i.selection, a]), y("selectRow", !0));
98
+ ), f("selectRow", !1)) : (x([...i.selection, l]), f("selectRow", !0));
104
99
  }, se = () => {
105
- if (L.value)
106
- x([]), y("selectAll", !1);
100
+ if (M.value)
101
+ x([]), f("selectAll", !1);
107
102
  else {
108
- const a = i.rows.map((o, e) => i.getRowId(o, e)).filter((o) => !C(o));
109
- x([...i.selection, ...a]), y("selectAll", !0);
103
+ const l = i.rows.map((o, e) => i.getRowId(o, e)).filter((o) => !C(o));
104
+ x([...i.selection, ...l]), f("selectAll", !0);
110
105
  }
111
- }, x = (a) => {
112
- y("update:selection", a);
113
- }, ae = (a) => !i.isLoading && $.value === a, le = v(
106
+ }, x = (l) => {
107
+ f("update:selection", l);
108
+ }, le = (l) => !i.isLoading && $.value === l, ae = v(
114
109
  () => i.emptyStateVariant ?? (g.value ? "no-results" : "no-data")
115
110
  ), ie = v(
116
111
  () => i.emptyStateSubtitle ? i.emptyStateSubtitle : g.value ? "Search again with different filters" : void 0
117
112
  );
118
113
  return k({
119
114
  scrollTo: _
120
- }), (a, o) => (l(), d("div", {
115
+ }), (l, o) => (a(), d("div", {
121
116
  class: "table-container",
122
117
  "data-testid": `${s.testId}-${t(S).CONTAINER}`,
123
118
  onMouseleave: o[3] || (o[3] = (e) => $.value = null)
124
119
  }, [
125
- u("table", {
120
+ h("table", {
126
121
  ref: t(G).ref,
127
122
  style: T(t(j)),
128
- class: f({
123
+ class: u({
129
124
  hasFooter: t(D)
130
125
  }),
131
126
  "data-testid": `${s.testId}-${t(S).TABLE}`,
132
127
  onScrollPassive: o[2] || (o[2] = //@ts-ignore
133
- (...e) => t(F) && t(F)(...e))
128
+ (...e) => t(N) && t(N)(...e))
134
129
  }, [
135
- s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (l(), d("div", {
130
+ s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (a(), d("div", {
136
131
  key: 0,
137
- class: f(["table-header", { isStickyHeader: s.isStickyHeader }]),
132
+ class: u(["table-header", { isStickyHeader: s.isStickyHeader }]),
138
133
  "data-testid": `${s.testId}-${t(S).HEADER}`
139
134
  }, [
140
- u("div", {
135
+ h("div", {
141
136
  class: "table-title",
142
137
  "data-testid": `${s.testId}-${t(S).TITLE}`
143
138
  }, [
144
- c(a.$slots, "title", {}, () => [
145
- h(t(V), { variant: "h3" }, {
139
+ c(l.$slots, "title", {}, () => [
140
+ y(t(V), { variant: "h3" }, {
146
141
  default: w(() => [
147
142
  E(B(s.title), 1)
148
143
  ]),
@@ -150,48 +145,48 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
150
145
  })
151
146
  ])
152
147
  ], 8, Re),
153
- u("div", {
148
+ h("div", {
154
149
  class: "table-header-right",
155
150
  "data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
156
151
  }, [
157
- s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
158
- u("div", xe, [
159
- h(t(me), {
152
+ s.showSearch ? c(l.$slots, "search", { key: 0 }, () => [
153
+ h("div", xe, [
154
+ y(t(me), {
160
155
  modelValue: t(g),
161
156
  "onUpdate:modelValue": o[0] || (o[0] = (e) => ce(g) ? g.value = e : null),
162
157
  placeholder: s.searchPlaceholder,
163
158
  "auto-focus": s.searchAutoFocus,
164
159
  "test-id": s.testId,
165
- onOnClear: o[1] || (o[1] = (e) => y("onClearSearch"))
160
+ onOnClear: o[1] || (o[1] = (e) => f("onClearSearch"))
166
161
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
167
162
  ])
168
163
  ]) : r("", !0)
169
164
  ], 8, Ce),
170
- t(b)["table-header-actions"] ? (l(), d("div", {
165
+ t(b)["table-header-actions"] ? (a(), d("div", {
171
166
  key: 0,
172
167
  class: "table-header-actions",
173
168
  "data-testid": `${s.testId}-${t(S).ACTIONS}`
174
169
  }, [
175
- c(a.$slots, "table-header-actions")
170
+ c(l.$slots, "table-header-actions")
176
171
  ], 8, Te)) : r("", !0)
177
172
  ], 10, $e)) : r("", !0),
178
- u("thead", {
179
- class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
173
+ h("thead", {
174
+ class: u({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
180
175
  }, [
181
- u("div", {
176
+ h("div", {
182
177
  class: "sections",
183
178
  "data-testid": `${s.testId}-${t(S).SECTIONS}`
184
179
  }, [
185
- (l(!0), d(I, null, A(s.sections, (e) => (l(), d("div", {
180
+ (a(!0), d(I, null, A(s.sections, (e) => (a(), d("div", {
186
181
  key: e.id,
187
- class: f(["section-container", { sticky: e.isSticky }])
182
+ class: u(["section-container", { sticky: e.isSticky }])
188
183
  }, [
189
- c(a.$slots, `section-${e.id}`, {}, () => [
190
- u("div", {
184
+ c(l.$slots, `section-${e.id}`, {}, () => [
185
+ h("div", {
191
186
  style: T({ width: e.width + "px" }),
192
- class: f({ section: !0 })
187
+ class: u({ section: !0 })
193
188
  }, [
194
- h(t(V), { variant: "body2" }, {
189
+ y(t(V), { variant: "body2" }, {
195
190
  default: w(() => [
196
191
  E(B(e.title), 1)
197
192
  ]),
@@ -201,21 +196,27 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
201
196
  ])
202
197
  ], 2))), 128))
203
198
  ], 8, we),
204
- u("tr", null, [
205
- t(O) ? (l(), d("th", Ee, [
206
- c(a.$slots, "select-all-checkbox", {}, () => [
207
- h(t(z), {
199
+ h("tr", null, [
200
+ t(O) ? (a(), d("th", {
201
+ key: 0,
202
+ class: u([
203
+ "checkbox-cell",
204
+ { "checkbox-cell-sticky": s.isSelectionSticky }
205
+ ])
206
+ }, [
207
+ c(l.$slots, "select-all-checkbox", {}, () => [
208
+ y(t(z), {
208
209
  disabled: s.isLoading,
209
- "is-checked": t(L),
210
- "is-indeterminate": !t(L) && t(ee) > 0,
210
+ "is-checked": t(M),
211
+ "is-indeterminate": !t(M) && t(ee) > 0,
211
212
  "onUpdate:isChecked": se
212
213
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
213
214
  ])
214
- ])) : r("", !0),
215
- t(R) ? (l(), d("th", Be)) : r("", !0),
216
- (l(!0), d(I, null, A(s.columns, (e) => (l(), d("th", {
215
+ ], 2)) : r("", !0),
216
+ t(R) ? (a(), d("th", Ee)) : r("", !0),
217
+ (a(!0), d(I, null, A(s.columns, (e) => (a(), d("th", {
217
218
  key: e.id,
218
- class: f({
219
+ class: u({
219
220
  sticky: e.isSticky,
220
221
  isStickyRight: e.isStickyRight,
221
222
  bordered: e.isBordered,
@@ -223,64 +224,70 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
223
224
  isSortable: e.isSortable,
224
225
  [`column-${e.id}`]: !0
225
226
  }),
226
- style: T(e.isSticky ? t(H)[e.id] : null),
227
+ style: T(e.isSticky ? t(F)[e.id] : null),
227
228
  onClick: (m) => e.isSortable ? t(Q)(e) : null
228
229
  }, [
229
- u("div", Ae, [
230
- c(a.$slots, `header-${e.id}`, { column: e }, () => [
231
- h(t(V), { variant: "tableLabel" }, {
230
+ h("div", Ie, [
231
+ c(l.$slots, `header-${e.id}`, { column: e }, () => [
232
+ y(t(V), { variant: "tableLabel" }, {
232
233
  default: w(() => [
233
234
  E(B(e.title), 1)
234
235
  ]),
235
236
  _: 2
236
237
  }, 1024)
237
238
  ]),
238
- e.helpText ? (l(), K(Se, {
239
+ e.helpText ? (a(), K(Se, {
239
240
  key: 0,
240
241
  "hover-help-text": e.helpText,
241
242
  "hover-help-text-placement": e.helpTextPlacement
242
243
  }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
243
- e.isSortable && e.id === s.sort?.sortBy ? (l(), K(fe, {
244
+ e.isSortable && e.id === s.sort?.sortBy ? (a(), K(fe, {
244
245
  key: 1,
245
246
  "sort-order": s.sort.sortOrder
246
247
  }, null, 8, ["sort-order"])) : r("", !0)
247
248
  ])
248
- ], 14, Ie))), 128))
249
+ ], 14, Be))), 128))
249
250
  ])
250
251
  ], 2),
251
- u("tbody", null, [
252
- t(M).length > 0 ? (l(), d("div", re({
252
+ h("tbody", null, [
253
+ t(P).length > 0 ? (a(), d("div", re({
253
254
  key: 0,
254
255
  class: "table-body-wrapper",
255
256
  "data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
256
257
  }, t(Y)), [
257
- (l(!0), d(I, null, A(t(M), (e) => (l(), d("tr", {
258
+ (a(!0), d(I, null, A(t(P), (e) => (a(), d("tr", {
258
259
  key: s.getRowKey(e.data, e.index),
259
- class: f(["table-row", {
260
- loading: s.isLoading || s.isLoading && !e.data || t(N).includes(e.index),
260
+ class: u(["table-row", {
261
+ loading: s.isLoading || s.isLoading && !e.data || t(p).includes(e.index),
261
262
  active: t($) === e.index,
262
263
  activeMenu: t(Z) === e.index,
263
- expanded: t(R) && t(p)(e.index),
264
+ expanded: t(R) && t(L)(e.index),
264
265
  [U(e.index)]: !0
265
266
  }]),
266
267
  onMouseenter: (m) => $.value = e.index,
267
- onClick: (m) => y("clickRow", e.index)
268
+ onClick: (m) => f("clickRow", e.index)
268
269
  }, [
269
- t(O) ? (l(), d("td", Le, [
270
- h(t(z), {
270
+ t(O) ? (a(), d("td", {
271
+ key: 0,
272
+ class: u([
273
+ "checkbox-cell",
274
+ { "checkbox-cell-sticky": s.isSelectionSticky }
275
+ ])
276
+ }, [
277
+ y(t(z), {
271
278
  "is-checked": C(s.getRowId(e.data, e.index)),
272
279
  "onUpdate:isChecked": (m) => te(s.getRowId(e.data, e.index))
273
280
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
274
- ])) : r("", !0),
275
- t(R) ? (l(), d("td", Me, [
276
- h(ke, {
277
- expanded: t(p)(e.index),
281
+ ], 2)) : r("", !0),
282
+ t(R) ? (a(), d("td", Le, [
283
+ y(ke, {
284
+ expanded: t(L)(e.index),
278
285
  onClick: (m) => t(q)(e.index, m)
279
286
  }, null, 8, ["expanded", "onClick"])
280
287
  ])) : r("", !0),
281
- (l(!0), d(I, null, A(s.columns, (m, n) => (l(), d("td", {
288
+ (a(!0), d(I, null, A(s.columns, (m, n) => (a(), d("td", {
282
289
  key: n,
283
- class: f({
290
+ class: u({
284
291
  sticky: s.columns[n].isSticky,
285
292
  isStickyRight: s.columns[n].isStickyRight,
286
293
  bordered: s.columns[n].isBordered,
@@ -288,63 +295,63 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
288
295
  [`column-${s.columns[n].id}`]: !0
289
296
  }),
290
297
  style: T(
291
- s.columns[n].isSticky ? t(H)[s.columns[n].id] : null
298
+ s.columns[n].isSticky ? t(F)[s.columns[n].id] : null
292
299
  )
293
300
  }, [
294
- !s.isLoading || s.isLoading && e.data[n] ? (l(), d("div", {
301
+ !s.isLoading || s.isLoading && e.data[n] ? (a(), d("div", {
295
302
  key: 0,
296
- class: f(["table-cell", { last: n === e.data.length - 1 }])
303
+ class: u(["table-cell", { last: n === e.data.length - 1 }])
297
304
  }, [
298
- c(a.$slots, `cell-${s.columns[n].id}`, {
305
+ c(l.$slots, `cell-${s.columns[n].id}`, {
299
306
  cell: e.data[n],
300
- isLoading: t(N).includes(e.index),
307
+ isLoading: t(p).includes(e.index),
301
308
  cellIndex: n,
302
309
  row: e,
303
310
  rowIndex: e.index
304
311
  }, () => [
305
- h(t(V), { variant: "body1" }, {
312
+ y(t(V), { variant: "body1" }, {
306
313
  default: w(() => [
307
314
  E(B(e.data[n]), 1)
308
315
  ]),
309
316
  _: 2
310
317
  }, 1024)
311
318
  ])
312
- ], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
313
- h(t(ue), { round: "" })
319
+ ], 2)) : c(l.$slots, "loader", { key: 1 }, () => [
320
+ y(t(ue), { round: "" })
314
321
  ])
315
322
  ], 6))), 128)),
316
- t(R) && t(p)(e.index) ? (l(), d("div", Pe, [
317
- c(a.$slots, "expanded", {
323
+ t(R) && t(L)(e.index) ? (a(), d("div", Me, [
324
+ c(l.$slots, "expanded", {
318
325
  row: e,
319
- gridColumnTemplate: t(P)
326
+ gridColumnTemplate: t(H)
320
327
  })
321
328
  ])) : r("", !0),
322
- ae(e.index) ? (l(), d("div", He, [
323
- c(a.$slots, "floating-row", {
329
+ le(e.index) ? (a(), d("div", Pe, [
330
+ c(l.$slots, "floating-row", {
324
331
  row: e,
325
332
  rowIndex: e.index
326
333
  })
327
334
  ])) : r("", !0)
328
- ], 42, pe))), 128))
329
- ], 16, Ve)) : (l(), d("div", Fe, [
330
- c(a.$slots, "empty-state", {}, () => [
331
- h(t(he), {
335
+ ], 42, Ve))), 128))
336
+ ], 16, Ae)) : (a(), d("div", He, [
337
+ c(l.$slots, "empty-state", {}, () => [
338
+ y(t(he), {
332
339
  class: "empty-state",
333
340
  title: s.emptyStateTitle,
334
341
  subtitle: t(ie),
335
- variant: t(le),
342
+ variant: t(ae),
336
343
  "test-id": `${s.testId}-${t(S).EMPTY_STATE}`
337
344
  }, null, 8, ["title", "subtitle", "variant", "test-id"])
338
345
  ])
339
346
  ]))
340
347
  ])
341
348
  ], 46, be),
342
- t(D) ? (l(), d("div", Ne, [
343
- c(a.$slots, "footer")
349
+ t(D) ? (a(), d("div", Fe, [
350
+ c(l.$slots, "footer")
344
351
  ])) : r("", !0)
345
352
  ], 40, ve));
346
353
  }
347
354
  });
348
355
  export {
349
- Xe as default
356
+ qe as default
350
357
  };
@@ -8,10 +8,11 @@ import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
8
8
  import "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
9
9
  import "../../dropdown/v4/TreeDropdown.vue.js";
10
10
  import C from "../../dropdown/v4/OptionV4.vue.js";
11
+ import "../../dropdown/v4/ConditionalDropdown.vue.js";
11
12
  import k from "../../icon/v4/IconV4.vue.js";
12
13
  import "../../icon/v4/IconFlag.vue.js";
13
14
  import { useTableContext as y } from "../common/TableContext.js";
14
- const z = /* @__PURE__ */ u({
15
+ const h = /* @__PURE__ */ u({
15
16
  __name: "DataGridMenu",
16
17
  props: {
17
18
  menuItems: { default: () => [] },
@@ -61,5 +62,5 @@ const z = /* @__PURE__ */ u({
61
62
  }
62
63
  });
63
64
  export {
64
- z as default
65
+ h as default
65
66
  };
@@ -29,6 +29,7 @@ declare const DataGridTypes: () => (({
29
29
  getRowId: (row: import("../common/Table.types").Row, index: number) => unknown;
30
30
  getRowKey: (row: import("../common/Table.types").Row, index: number) => string | number;
31
31
  selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
32
+ isSelectionSticky: boolean;
32
33
  emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
33
34
  zIndexBase: number;
34
35
  rowCustomClassKey: string;
@@ -130,6 +131,10 @@ declare const DataGridTypes: () => (({
130
131
  type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
131
132
  default: (rowId: any, selectedItem: any) => boolean;
132
133
  };
134
+ isSelectionSticky: {
135
+ type: import("vue").PropType<boolean>;
136
+ default: boolean;
137
+ };
133
138
  emptyStateVariant: {
134
139
  type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
135
140
  default: any;
@@ -148,16 +153,16 @@ declare const DataGridTypes: () => (({
148
153
  };
149
154
  }>> & {
150
155
  onSelectAll?: (value: boolean) => any;
156
+ onLoadMore?: () => any;
151
157
  "onUpdate:search"?: (query: string) => any;
152
158
  onOnScroll?: (event: Event) => any;
153
159
  "onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
154
160
  onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
155
- onLoadMore?: () => any;
156
161
  onOnClearSearch?: () => any;
157
162
  "onUpdate:selection"?: (selection: unknown[]) => any;
158
163
  onSelectRow?: (value: boolean) => any;
159
164
  onClickRow?: (rowIndex: number) => any;
160
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "selectedMatcher" | "emptyStateVariant" | "zIndexBase" | "rowCustomClassKey" | "rowDataKey">;
165
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "selectedMatcher" | "isSelectionSticky" | "emptyStateVariant" | "zIndexBase" | "rowCustomClassKey" | "rowDataKey">;
161
166
  $attrs: {
162
167
  [x: string]: unknown;
163
168
  };
@@ -169,7 +174,7 @@ declare const DataGridTypes: () => (({
169
174
  }>;
170
175
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
171
176
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
172
- $emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "update:search", query: string) => void) & ((event: "onClearSearch") => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent) => void) & ((event: "loadMore") => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "selectRow", value: boolean) => void) & ((event: "clickRow", rowIndex: number) => void);
177
+ $emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => void) & ((event: "update:search", query: string) => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "selectRow", value: boolean) => void) & ((event: "clickRow", rowIndex: number) => void);
173
178
  $el: any;
174
179
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
175
180
  sort: {
@@ -268,6 +273,10 @@ declare const DataGridTypes: () => (({
268
273
  type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
269
274
  default: (rowId: any, selectedItem: any) => boolean;
270
275
  };
276
+ isSelectionSticky: {
277
+ type: import("vue").PropType<boolean>;
278
+ default: boolean;
279
+ };
271
280
  emptyStateVariant: {
272
281
  type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
273
282
  default: any;
@@ -286,11 +295,11 @@ declare const DataGridTypes: () => (({
286
295
  };
287
296
  }>> & {
288
297
  onSelectAll?: (value: boolean) => any;
298
+ onLoadMore?: () => any;
289
299
  "onUpdate:search"?: (query: string) => any;
290
300
  onOnScroll?: (event: Event) => any;
291
301
  "onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
292
302
  onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
293
- onLoadMore?: () => any;
294
303
  onOnClearSearch?: () => any;
295
304
  "onUpdate:selection"?: (selection: unknown[]) => any;
296
305
  onSelectRow?: (value: boolean) => any;
@@ -331,6 +340,7 @@ declare const DataGridTypes: () => (({
331
340
  getRowId: (row: import("../common/Table.types").Row, index: number) => unknown;
332
341
  getRowKey: (row: import("../common/Table.types").Row, index: number) => string | number;
333
342
  selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
343
+ isSelectionSticky: boolean;
334
344
  emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
335
345
  zIndexBase: number;
336
346
  rowCustomClassKey: string;
@@ -452,6 +462,10 @@ declare const DataGridTypes: () => (({
452
462
  type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
453
463
  default: (rowId: any, selectedItem: any) => boolean;
454
464
  };
465
+ isSelectionSticky: {
466
+ type: import("vue").PropType<boolean>;
467
+ default: boolean;
468
+ };
455
469
  emptyStateVariant: {
456
470
  type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
457
471
  default: any;
@@ -470,11 +484,11 @@ declare const DataGridTypes: () => (({
470
484
  };
471
485
  }>> & {
472
486
  onSelectAll?: (value: boolean) => any;
487
+ onLoadMore?: () => any;
473
488
  "onUpdate:search"?: (query: string) => any;
474
489
  onOnScroll?: (event: Event) => any;
475
490
  "onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
476
491
  onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
477
- onLoadMore?: () => any;
478
492
  onOnClearSearch?: () => any;
479
493
  "onUpdate:selection"?: (selection: unknown[]) => any;
480
494
  onSelectRow?: (value: boolean) => any;
@@ -582,6 +596,10 @@ declare const DataGridTypes: () => (({
582
596
  type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
583
597
  default: (rowId: any, selectedItem: any) => boolean;
584
598
  };
599
+ isSelectionSticky: {
600
+ type: import("vue").PropType<boolean>;
601
+ default: boolean;
602
+ };
585
603
  emptyStateVariant: {
586
604
  type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
587
605
  default: any;
@@ -600,11 +618,11 @@ declare const DataGridTypes: () => (({
600
618
  };
601
619
  }>> & {
602
620
  onSelectAll?: (value: boolean) => any;
621
+ onLoadMore?: () => any;
603
622
  "onUpdate:search"?: (query: string) => any;
604
623
  onOnScroll?: (event: Event) => any;
605
624
  "onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
606
625
  onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
607
- onLoadMore?: () => any;
608
626
  onOnClearSearch?: () => any;
609
627
  "onUpdate:selection"?: (selection: unknown[]) => any;
610
628
  onSelectRow?: (value: boolean) => any;
@@ -645,6 +663,7 @@ declare const DataGridTypes: () => (({
645
663
  getRowId: (row: import("../common/Table.types").Row, index: number) => unknown;
646
664
  getRowKey: (row: import("../common/Table.types").Row, index: number) => string | number;
647
665
  selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
666
+ isSelectionSticky: boolean;
648
667
  emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
649
668
  zIndexBase: number;
650
669
  rowCustomClassKey: string;
@@ -906,7 +925,7 @@ declare const DataGridTypes: () => (({
906
925
  }>;
907
926
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
908
927
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
909
- $emit: ((event: "onScroll", scrollTop: number) => void) & ((event: "update:search", query: string) => void) & ((event: "onClearSearch") => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent & {
928
+ $emit: ((event: "onScroll", scrollTop: number) => void) & ((event: "onClearSearch") => void) & ((event: "update:search", query: string) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent & {
910
929
  tableIndex: number;
911
930
  }) => void) & ((event: "clickRow", rowIndex: number, tableIndex: number) => void);
912
931
  $el: any;