@ironsource/shared-ui 2.1.12-test.71 → 2.1.12-test.73

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 (48) hide show
  1. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +1 -0
  2. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
  3. package/DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css +1 -0
  4. package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +1 -0
  5. package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +1 -0
  6. package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +1 -0
  7. package/components/chart/ChartHeaderTrend.vue.js +3 -3
  8. package/components/chart/ChartHeaderTrend.vue2.js +34 -33
  9. package/components/chart/ChartStoryArgs.d.ts +1 -1
  10. package/components/dateRange/common/DateServices.common.d.ts +6 -0
  11. package/components/dateRange/common/DateServices.common.js +87 -92
  12. package/components/dateRange/common/consts.common.d.ts +5 -0
  13. package/components/dateRange/common/consts.common.js +9 -3
  14. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  15. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  16. package/components/dateRange/v3/index.d.ts +7 -7
  17. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  18. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  19. package/components/dateRange/v4/index.d.ts +7 -7
  20. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  21. package/components/dropdown/common/Dropdown.common.js +44 -43
  22. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  23. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  24. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
  25. package/components/dropdown/v4/DropdownV4.vue.d.ts +15 -0
  26. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  27. package/components/dropdown/v4/DropdownV4.vue2.js +226 -195
  28. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  29. package/components/dropdown/v4/OptionV4.vue2.js +71 -68
  30. package/components/dropdown/v4/index.d.ts +67 -1
  31. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  32. package/components/switch/v4/SwitchV4.vue.js +3 -3
  33. package/components/switch/v4/SwitchV4.vue2.js +25 -23
  34. package/components/switch/v4/index.d.ts +11 -0
  35. package/components/table/common/Table.types.d.ts +2 -0
  36. package/components/table/v4/DataGrid.vue.d.ts +6 -1
  37. package/components/table/v4/DataGrid.vue.js +2 -2
  38. package/components/table/v4/DataGrid.vue2.js +192 -174
  39. package/components/table/v4/index.d.ts +20 -1
  40. package/index.d.ts +210 -18
  41. package/index.js +1 -1
  42. package/package.json +1 -1
  43. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_79dc2883_lang.css +0 -1
  44. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
  45. package/DataGrid.vue_vue_type_style_index_0_scoped_0dff3241_lang.css +0 -1
  46. package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +0 -1
  47. package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +0 -1
  48. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
@@ -42,3 +42,5 @@ export type SaveRowEvent = {
42
42
  rowIndex: number;
43
43
  cellIndex: number;
44
44
  };
45
+ export declare const HELP_TOOLTIP_VARIANTS: readonly ["icon", "underline"];
46
+ export type HelpTooltipVariant = (typeof HELP_TOOLTIP_VARIANTS)[number];
@@ -1,4 +1,4 @@
1
- import type { Column, Row, SaveRowEvent, Section, Sort } from '../common/Table.types';
1
+ import { Column, Row, SaveRowEvent, Section, Sort } from '../common/Table.types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  title?: string;
4
4
  columns: Column[];
@@ -21,6 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
21
21
  rowHeight?: number | ((index: number) => number);
22
22
  loadingRowCount?: number;
23
23
  defaultScrollPosition?: number;
24
+ helpTooltipVariant?: "icon" | "underline";
24
25
  testId?: string;
25
26
  search?: string;
26
27
  showSearch?: boolean;
@@ -46,6 +47,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
46
47
  rowHeight: number;
47
48
  loadingRowCount: number;
48
49
  defaultScrollPosition: any;
50
+ helpTooltipVariant: string;
49
51
  testId: string;
50
52
  selection: any;
51
53
  getRowId: (row: any, index: any) => any;
@@ -95,6 +97,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
95
97
  rowHeight?: number | ((index: number) => number);
96
98
  loadingRowCount?: number;
97
99
  defaultScrollPosition?: number;
100
+ helpTooltipVariant?: "icon" | "underline";
98
101
  testId?: string;
99
102
  search?: string;
100
103
  showSearch?: boolean;
@@ -120,6 +123,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
120
123
  rowHeight: number;
121
124
  loadingRowCount: number;
122
125
  defaultScrollPosition: any;
126
+ helpTooltipVariant: string;
123
127
  testId: string;
124
128
  selection: any;
125
129
  getRowId: (row: any, index: any) => any;
@@ -170,6 +174,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
170
174
  getRowKey: (row: Row, index: number) => string | number;
171
175
  selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
172
176
  emptyStateVariant: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
177
+ helpTooltipVariant: "icon" | "underline";
173
178
  rowCustomClassKey: string;
174
179
  rowDataKey: string;
175
180
  isSelectionSticky: boolean;
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
2
  /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0dff3241_lang.css"; //*');
4
- const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0dff3241"]]);
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css"; //*');
4
+ const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-086c5b0d"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,32 +1,33 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0dff3241_lang.css"; import { defineComponent as he, useCssVars as ye, unref as t, useSlots as fe, computed as g, openBlock as i, createElementBlock as o, createElementVNode as h, normalizeStyle as v, normalizeClass as y, renderSlot as c, createVNode as f, withCtx as $, createTextVNode as R, toDisplayString as P, createCommentVNode as n, isRef as Se, Fragment as x, renderList as T, mergeProps as M, createBlock as D } from "vue";
2
- import w from "../../typography/v4/Typography.vue.js";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css"; import { defineComponent as he, useCssVars as ye, unref as t, useSlots as fe, computed as g, openBlock as i, createElementBlock as o, createElementVNode as f, normalizeStyle as v, normalizeClass as u, renderSlot as c, createVNode as h, withCtx as $, createTextVNode as R, toDisplayString as P, createCommentVNode as n, isRef as Se, Fragment as T, renderList as x, mergeProps as L, createBlock as D } from "vue";
2
+ import p from "../../typography/v4/Typography.vue.js";
3
3
  import ke from "../../skeleton/v4/SkeletonV4.vue.js";
4
4
  import ge from "../../emptyState/v4/EmptyStateV4.vue.js";
5
5
  import Y from "../../checkbox/v4/CheckboxV4.vue.js";
6
+ import me from "../../tooltip/v4/TooltipV4.vue.js";
6
7
  import { TableTestIdModifiers as S } from "../../../testids/index.js";
7
- import { tableCommon as me } from "../common/Table.common.js";
8
- import ve from "./SortIcon.vue.js";
9
- import be from "./HelpIcon.vue.js";
8
+ import { tableCommon as ve } from "../common/Table.common.js";
9
+ import be from "./SortIcon.vue.js";
10
+ import $e from "./HelpIcon.vue.js";
10
11
  import Ce from "./ExpandRowToggle.vue.js";
11
- import $e from "../../search/v4/SearchV4.vue.js";
12
- import { useVModel as Re } from "@vueuse/core";
13
- import { DEFAULT_ROW_HEIGHT as xe, CHECKBOX_COLUMN_ID as Te } from "../common/consts.js";
14
- const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["data-testid"], pe = ["data-testid"], Ie = ["data-testid"], Ae = { class: "search-wrapper" }, Le = ["data-testid"], Pe = ["data-testid"], Me = {
12
+ import Re from "../../search/v4/SearchV4.vue.js";
13
+ import { useVModel as Te } from "@vueuse/core";
14
+ import { DEFAULT_ROW_HEIGHT as xe, CHECKBOX_COLUMN_ID as pe } from "../common/consts.js";
15
+ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["data-testid"], Ie = ["data-testid"], Ve = ["data-testid"], Ae = { class: "search-wrapper" }, Pe = ["data-testid"], Le = ["data-testid"], Me = {
15
16
  key: 1,
16
17
  class: "expand-toggle-cell"
17
- }, Ve = ["onClick"], Fe = { class: "table-head-container" }, Ne = {
18
+ }, Fe = ["onClick"], Ne = { class: "table-head-container" }, Oe = {
18
19
  key: 0,
19
20
  class: "totals-row"
20
- }, Oe = ["data-testid"], De = ["onMouseenter", "onClick"], Ke = {
21
+ }, De = ["data-testid"], Ke = ["onMouseenter", "onClick"], Ue = {
21
22
  key: 2,
22
23
  class: "expanded-row"
23
- }, Ue = {
24
+ }, ze = {
24
25
  key: 3,
25
26
  class: "floating-row"
26
- }, ze = { key: 1 }, Ge = {
27
+ }, Ge = { key: 1 }, We = {
27
28
  key: 0,
28
29
  class: "table-footer"
29
- }, at = /* @__PURE__ */ he({
30
+ }, ot = /* @__PURE__ */ he({
30
31
  __name: "DataGrid",
31
32
  props: {
32
33
  title: { default: "" },
@@ -35,9 +36,9 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
35
36
  sections: { default: null },
36
37
  sort: { default: null },
37
38
  selection: { default: null },
38
- getRowId: { type: Function, default: (s, m) => m },
39
- getRowKey: { type: Function, default: (s, m) => m },
40
- selectedMatcher: { type: Function, default: (s, m) => s === m },
39
+ getRowId: { type: Function, default: (l, m) => m },
40
+ getRowKey: { type: Function, default: (l, m) => m },
41
+ selectedMatcher: { type: Function, default: (l, m) => l === m },
41
42
  isSticky: { type: Boolean, default: !0 },
42
43
  isStickyHeader: { type: Boolean, default: !1 },
43
44
  isLoading: { type: Boolean, default: !1 },
@@ -50,6 +51,7 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
50
51
  rowHeight: { type: [Number, Function], default: xe },
51
52
  loadingRowCount: { default: 3 },
52
53
  defaultScrollPosition: { default: null },
54
+ helpTooltipVariant: { default: "icon" },
53
55
  testId: { default: "" },
54
56
  search: { default: null },
55
57
  showSearch: { type: Boolean, default: !1 },
@@ -62,53 +64,53 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
62
64
  isSelectionBordered: { type: Boolean, default: !1 }
63
65
  },
64
66
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
65
- setup(s, { expose: m, emit: k }) {
66
- const a = s;
67
- ye((l) => ({
68
- "35c47222": s.zIndexBase,
69
- "4f8f6bba": t(ee),
70
- "731a605c": t(K)
67
+ setup(l, { expose: m, emit: k }) {
68
+ const a = l;
69
+ ye((s) => ({
70
+ "93d4ced6": l.zIndexBase,
71
+ "1799c749": t(ee),
72
+ "60112c02": t(K)
71
73
  }));
72
- const b = fe(), Q = (l) => a.rowCustomClassKey && a.rows[l] ? a.rows[l][a.rowCustomClassKey] : "", {
73
- list: E,
74
+ const b = fe(), Q = (s) => a.rowCustomClassKey && a.rows[s] ? a.rows[s][a.rowCustomClassKey] : "", {
75
+ list: w,
74
76
  containerProps: X,
75
77
  wrapperProps: j,
76
- activeRow: H,
78
+ activeRow: E,
77
79
  gridColumnTemplate: K,
78
80
  toggleSortOrder: q,
79
- columnsStickyPositions: B,
81
+ columnsStickyPositions: H,
80
82
  hasSearchSlot: J,
81
83
  containerStyle: Z,
82
84
  onScroll: U,
83
85
  savingRows: z,
84
- hasExpandSlot: p,
86
+ hasExpandSlot: B,
85
87
  toggleExpandRow: _,
86
88
  cssExpandGridCol: ee,
87
- isRowExpanded: V,
89
+ isRowExpanded: M,
88
90
  hasCheckboxes: F,
89
91
  activeMenuRow: te,
90
- scrollTo: se
91
- } = me(a, k), G = g(() => !!b.footer), le = g(
92
+ scrollTo: le
93
+ } = ve(a, k), G = g(() => !!b.footer), se = g(
92
94
  () => a.title || b.title || J.value || b["table-header-actions"] || b["table-header-pre-search"]
93
- ), C = Re(a, "search", k), ae = g(() => a.selection.length || 0), N = g(() => {
94
- const l = a.rows.map((d, e) => a.getRowId(d, e));
95
- return !!l.length && l.every((d) => I(d));
96
- }), I = (l) => a.selection.findIndex((d) => a.selectedMatcher(l, d)) !== -1, ie = (l) => {
97
- I(l) ? (A(
95
+ ), C = Te(a, "search", k), ae = g(() => a.selection.length || 0), N = g(() => {
96
+ const s = a.rows.map((d, e) => a.getRowId(d, e));
97
+ return !!s.length && s.every((d) => I(d));
98
+ }), I = (s) => a.selection.findIndex((d) => a.selectedMatcher(s, d)) !== -1, ie = (s) => {
99
+ I(s) ? (V(
98
100
  a.selection.filter(
99
- (d) => !a.selectedMatcher(l, d)
101
+ (d) => !a.selectedMatcher(s, d)
100
102
  )
101
- ), k("selectRow", !1)) : (A([...a.selection, l]), k("selectRow", !0));
103
+ ), k("selectRow", !1)) : (V([...a.selection, s]), k("selectRow", !0));
102
104
  }, oe = () => {
103
105
  if (N.value)
104
- A([]), k("selectAll", !1);
106
+ V([]), k("selectAll", !1);
105
107
  else {
106
- const l = a.rows.map((d, e) => a.getRowId(d, e)).filter((d) => !I(d));
107
- A([...a.selection, ...l]), k("selectAll", !0);
108
+ const s = a.rows.map((d, e) => a.getRowId(d, e)).filter((d) => !I(d));
109
+ V([...a.selection, ...s]), k("selectAll", !0);
108
110
  }
109
- }, A = (l) => {
110
- k("update:selection", l);
111
- }, de = (l) => !a.isLoading && H.value === l, ne = g(
111
+ }, V = (s) => {
112
+ k("update:selection", s);
113
+ }, de = (s) => !a.isLoading && E.value === s, ne = g(
112
114
  () => a.emptyStateVariant ?? (C.value ? "no-results" : "no-data")
113
115
  ), re = g(
114
116
  () => a.emptyStateSubtitle ? a.emptyStateSubtitle : C.value ? "Search again with different filters" : void 0
@@ -117,47 +119,47 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
117
119
  sticky: a.isSelectionSticky,
118
120
  bordered: a.isSelectionBordered
119
121
  },
120
- style: a.isSelectionSticky ? B.value[Te] : null
121
- })), ce = (l) => ({
122
- sticky: l.isSticky,
123
- isStickyRight: l.isStickyRight,
124
- bordered: l.isBordered,
125
- isTextRight: l.isTextRight
122
+ style: a.isSelectionSticky ? H.value[pe] : null
123
+ })), ce = (s) => ({
124
+ sticky: s.isSticky,
125
+ isStickyRight: s.isStickyRight,
126
+ bordered: s.isBordered,
127
+ isTextRight: s.isTextRight
126
128
  }), W = g(
127
- () => a.columns.map((l) => ce(l))
128
- ), ue = (l) => ({
129
- minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(l) : a.rowHeight) + "px"
130
- }), L = g(() => E.value.reduce((l, d) => (l[d.index] = ue(d.index), l), {}));
129
+ () => a.columns.map((s) => ce(s))
130
+ ), ue = (s) => ({
131
+ minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(s) : a.rowHeight) + "px"
132
+ }), A = g(() => w.value.reduce((s, d) => (s[d.index] = ue(d.index), s), {}));
131
133
  return m({
132
- scrollTo: se
133
- }), (l, d) => (i(), o("div", {
134
+ scrollTo: le
135
+ }), (s, d) => (i(), o("div", {
134
136
  class: "table-container",
135
- "data-testid": `${s.testId}-${t(S).CONTAINER}`,
136
- onMouseleave: d[3] || (d[3] = (e) => H.value = null)
137
+ "data-testid": `${l.testId}-${t(S).CONTAINER}`,
138
+ onMouseleave: d[3] || (d[3] = (e) => E.value = null)
137
139
  }, [
138
- h("table", {
140
+ f("table", {
139
141
  ref: t(X).ref,
140
142
  style: v(t(Z)),
141
- class: y({
143
+ class: u({
142
144
  hasFooter: t(G)
143
145
  }),
144
- "data-testid": `${s.testId}-${t(S).TABLE}`,
146
+ "data-testid": `${l.testId}-${t(S).TABLE}`,
145
147
  onScrollPassive: d[2] || (d[2] = //@ts-ignore
146
148
  (...e) => t(U) && t(U)(...e))
147
149
  }, [
148
- t(le) ? (i(), o("div", {
150
+ t(se) ? (i(), o("div", {
149
151
  key: 0,
150
- class: y(["table-header", { isStickyHeader: s.isStickyHeader }]),
151
- "data-testid": `${s.testId}-${t(S).HEADER}`
152
+ class: u(["table-header", { isStickyHeader: l.isStickyHeader }]),
153
+ "data-testid": `${l.testId}-${t(S).HEADER}`
152
154
  }, [
153
- h("div", {
155
+ f("div", {
154
156
  class: "table-title",
155
- "data-testid": `${s.testId}-${t(S).TITLE}`
157
+ "data-testid": `${l.testId}-${t(S).TITLE}`
156
158
  }, [
157
- c(l.$slots, "title", {}, () => [
158
- f(t(w), { variant: "h3" }, {
159
+ c(s.$slots, "title", {}, () => [
160
+ h(t(p), { variant: "h3" }, {
159
161
  default: $(() => [
160
- R(P(s.title), 1)
162
+ R(P(l.title), 1)
161
163
  ]),
162
164
  _: 1
163
165
  })
@@ -166,52 +168,52 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
166
168
  t(b)["table-header-pre-search"] ? (i(), o("div", {
167
169
  key: 0,
168
170
  class: "table-header-pre-search-content",
169
- "data-testid": `${s.testId}-${t(S).PRE_SEARCH_HEADER}`
171
+ "data-testid": `${l.testId}-${t(S).PRE_SEARCH_HEADER}`
170
172
  }, [
171
- c(l.$slots, "table-header-pre-search")
172
- ], 8, pe)) : n("", !0),
173
- h("div", {
173
+ c(s.$slots, "table-header-pre-search")
174
+ ], 8, Ie)) : n("", !0),
175
+ f("div", {
174
176
  class: "table-header-right",
175
- "data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
177
+ "data-testid": `${l.testId}-${t(S).HEADER_RIGHT}`
176
178
  }, [
177
- s.showSearch ? c(l.$slots, "search", { key: 0 }, () => [
178
- h("div", Ae, [
179
- f(t($e), {
179
+ l.showSearch ? c(s.$slots, "search", { key: 0 }, () => [
180
+ f("div", Ae, [
181
+ h(t(Re), {
180
182
  modelValue: t(C),
181
183
  "onUpdate:modelValue": d[0] || (d[0] = (e) => Se(C) ? C.value = e : null),
182
- placeholder: s.searchPlaceholder,
183
- "auto-focus": s.searchAutoFocus,
184
- "test-id": s.testId,
184
+ placeholder: l.searchPlaceholder,
185
+ "auto-focus": l.searchAutoFocus,
186
+ "test-id": l.testId,
185
187
  onOnClear: d[1] || (d[1] = (e) => k("onClearSearch"))
186
188
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
187
189
  ])
188
190
  ]) : n("", !0)
189
- ], 8, Ie),
191
+ ], 8, Ve),
190
192
  t(b)["table-header-actions"] ? (i(), o("div", {
191
193
  key: 1,
192
194
  class: "table-header-actions",
193
- "data-testid": `${s.testId}-${t(S).ACTIONS}`
195
+ "data-testid": `${l.testId}-${t(S).ACTIONS}`
194
196
  }, [
195
- c(l.$slots, "table-header-actions")
196
- ], 8, Le)) : n("", !0)
197
+ c(s.$slots, "table-header-actions")
198
+ ], 8, Pe)) : n("", !0)
197
199
  ], 10, He)) : n("", !0),
198
- h("thead", {
199
- class: y({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
200
+ f("thead", {
201
+ class: u({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
200
202
  }, [
201
- h("div", {
203
+ f("div", {
202
204
  class: "sections",
203
- "data-testid": `${s.testId}-${t(S).SECTIONS}`
205
+ "data-testid": `${l.testId}-${t(S).SECTIONS}`
204
206
  }, [
205
- (i(!0), o(x, null, T(s.sections, (e) => (i(), o("div", {
207
+ (i(!0), o(T, null, x(l.sections, (e) => (i(), o("div", {
206
208
  key: e.id,
207
- class: y(["section-container", { sticky: e.isSticky }])
209
+ class: u(["section-container", { sticky: e.isSticky }])
208
210
  }, [
209
- c(l.$slots, `section-${e.id}`, {}, () => [
210
- h("div", {
211
+ c(s.$slots, `section-${e.id}`, {}, () => [
212
+ f("div", {
211
213
  style: v({ width: e.width + "px" }),
212
- class: y({ section: !0 })
214
+ class: u({ section: !0 })
213
215
  }, [
214
- f(t(w), { variant: "body2" }, {
216
+ h(t(p), { variant: "body2" }, {
215
217
  default: $(() => [
216
218
  R(P(e.title), 1)
217
219
  ]),
@@ -220,68 +222,84 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
220
222
  ], 4)
221
223
  ])
222
224
  ], 2))), 128))
223
- ], 8, Pe),
224
- h("tr", null, [
225
- t(F) ? (i(), o("th", M({
225
+ ], 8, Le),
226
+ f("tr", null, [
227
+ t(F) ? (i(), o("th", L({
226
228
  key: 0,
227
229
  class: "checkbox-cell"
228
230
  }, t(O)), [
229
- c(l.$slots, "select-all-checkbox", {}, () => [
230
- f(t(Y), {
231
- disabled: s.isLoading,
231
+ c(s.$slots, "select-all-checkbox", {}, () => [
232
+ h(t(Y), {
233
+ disabled: l.isLoading,
232
234
  "is-checked": t(N),
233
235
  "is-indeterminate": !t(N) && t(ae) > 0,
234
236
  "onUpdate:isChecked": oe
235
237
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
236
238
  ])
237
239
  ], 16)) : n("", !0),
238
- t(p) ? (i(), o("th", Me)) : n("", !0),
239
- (i(!0), o(x, null, T(s.columns, (e, u) => (i(), o("th", {
240
+ t(B) ? (i(), o("th", Me)) : n("", !0),
241
+ (i(!0), o(T, null, x(l.columns, (e, y) => (i(), o("th", {
240
242
  key: e.id,
241
- class: y({
242
- ...t(W)[u],
243
+ class: u({
244
+ ...t(W)[y],
243
245
  isSortable: e.isSortable,
244
246
  [`column-${e.id}`]: !0
245
247
  }),
246
- style: v(e.isSticky ? t(B)[e.id] : null),
248
+ style: v(e.isSticky ? t(H)[e.id] : null),
247
249
  onClick: (r) => e.isSortable ? t(q)(e) : null
248
250
  }, [
249
- h("div", Fe, [
250
- c(l.$slots, `header-${e.id}`, { column: e }, () => [
251
- f(t(w), { variant: "tableLabel" }, {
251
+ f("div", Ne, [
252
+ c(s.$slots, `header-${e.id}`, { column: e }, () => [
253
+ h(t(me), {
254
+ text: e.helpText,
255
+ disabled: !e.helpText || l.helpTooltipVariant === "icon",
256
+ placement: e.helpTextPlacement || "top",
257
+ "test-id": `help-tooltip-${e.id}`
258
+ }, {
252
259
  default: $(() => [
253
- R(P(e.title), 1)
260
+ h(t(p), {
261
+ variant: "tableLabel",
262
+ class: u({
263
+ underlined: e.helpText && l.helpTooltipVariant === "underline"
264
+ })
265
+ }, {
266
+ default: $(() => [
267
+ R(P(e.title), 1)
268
+ ]),
269
+ _: 2
270
+ }, 1032, ["class"])
254
271
  ]),
255
272
  _: 2
256
- }, 1024)
273
+ }, 1032, ["text", "disabled", "placement", "test-id"])
257
274
  ]),
258
- e.helpText ? (i(), D(be, {
275
+ e.helpText && l.helpTooltipVariant === "icon" ? (i(), D($e, {
259
276
  key: 0,
260
277
  "hover-help-text": e.helpText,
261
- "hover-help-text-placement": e.helpTextPlacement
262
- }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : n("", !0),
263
- e.isSortable && e.id === s.sort?.sortBy ? (i(), D(ve, {
278
+ "hover-help-text-placement": e.helpTextPlacement,
279
+ "test-id": `help-tooltip-${e.id}`
280
+ }, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : n("", !0),
281
+ e.isSortable && e.id === l.sort?.sortBy ? (i(), D(be, {
264
282
  key: 1,
265
- "sort-order": s.sort.sortOrder
283
+ "sort-order": l.sort.sortOrder
266
284
  }, null, 8, ["sort-order"])) : n("", !0)
267
285
  ])
268
- ], 14, Ve))), 128))
286
+ ], 14, Fe))), 128))
269
287
  ]),
270
- s.showTotalsRow && t(E).length > 0 ? (i(), o("tr", Ne, [
271
- t(F) ? (i(), o("td", M({
288
+ l.showTotalsRow && t(w).length > 0 ? (i(), o("tr", Oe, [
289
+ t(F) ? (i(), o("td", L({
272
290
  key: 0,
273
291
  class: "bg"
274
292
  }, t(O)), null, 16)) : n("", !0),
275
- (i(!0), o(x, null, T(s.columns, (e, u) => (i(), o("td", {
293
+ (i(!0), o(T, null, x(l.columns, (e, y) => (i(), o("td", {
276
294
  key: e.id,
277
- class: y({
278
- ...t(W)[u],
295
+ class: u({
296
+ ...t(W)[y],
279
297
  [`total-${e.id}`]: !0
280
298
  }),
281
- style: v(e.isSticky ? t(B)[e.id] : null)
299
+ style: v(e.isSticky ? t(H)[e.id] : null)
282
300
  }, [
283
- c(l.$slots, `total-${e.id}`, { column: e }, () => [
284
- u === 0 ? (i(), D(t(w), {
301
+ c(s.$slots, `total-${e.id}`, { column: e }, () => [
302
+ y === 0 ? (i(), D(t(p), {
285
303
  key: 0,
286
304
  variant: "h6"
287
305
  }, {
@@ -294,115 +312,115 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
294
312
  ], 6))), 128))
295
313
  ])) : n("", !0)
296
314
  ], 2),
297
- h("tbody", null, [
298
- t(E).length > 0 ? (i(), o("div", M({
315
+ f("tbody", null, [
316
+ t(w).length > 0 ? (i(), o("div", L({
299
317
  key: 0,
300
318
  class: "table-body-wrapper",
301
- "data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
319
+ "data-testid": `${l.testId}-${t(S).BODY_WRAPPER}`
302
320
  }, t(j)), [
303
- (i(!0), o(x, null, T(t(E), (e) => (i(), o("tr", {
304
- key: s.getRowKey(e.data, e.index),
305
- class: y(["table-row", {
306
- loading: s.isLoading || s.isLoading && !e.data || t(z).includes(e.index),
307
- active: t(H) === e.index,
321
+ (i(!0), o(T, null, x(t(w), (e) => (i(), o("tr", {
322
+ key: l.getRowKey(e.data, e.index),
323
+ class: u(["table-row", {
324
+ loading: l.isLoading || l.isLoading && !e.data || t(z).includes(e.index),
325
+ active: t(E) === e.index,
308
326
  activeMenu: t(te) === e.index,
309
- expanded: t(p) && t(V)(e.index),
327
+ expanded: t(B) && t(M)(e.index),
310
328
  [Q(e.index)]: !0
311
329
  }]),
312
- style: v(t(L)[e.index]),
313
- onMouseenter: (u) => H.value = e.index,
314
- onClick: (u) => k("clickRow", e.index)
330
+ style: v(t(A)[e.index]),
331
+ onMouseenter: (y) => E.value = e.index,
332
+ onClick: (y) => k("clickRow", e.index)
315
333
  }, [
316
- t(F) ? (i(), o("td", M({
334
+ t(F) ? (i(), o("td", L({
317
335
  key: 0,
318
336
  class: "checkbox-cell"
319
337
  }, t(O), {
320
- style: t(L)[e.index]
338
+ style: t(A)[e.index]
321
339
  }), [
322
- f(t(Y), {
323
- "is-checked": I(s.getRowId(e.data, e.index)),
324
- "onUpdate:isChecked": (u) => ie(s.getRowId(e.data, e.index))
340
+ h(t(Y), {
341
+ "is-checked": I(l.getRowId(e.data, e.index)),
342
+ "onUpdate:isChecked": (y) => ie(l.getRowId(e.data, e.index))
325
343
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
326
344
  ], 16)) : n("", !0),
327
- t(p) ? (i(), o("td", {
345
+ t(B) ? (i(), o("td", {
328
346
  key: 1,
329
347
  class: "expand-toggle-cell",
330
- style: v(t(L)[e.index])
348
+ style: v(t(A)[e.index])
331
349
  }, [
332
- f(Ce, {
333
- expanded: t(V)(e.index),
334
- onClick: (u) => t(_)(e.index, u)
350
+ h(Ce, {
351
+ expanded: t(M)(e.index),
352
+ onClick: (y) => t(_)(e.index, y)
335
353
  }, null, 8, ["expanded", "onClick"])
336
354
  ], 4)) : n("", !0),
337
- (i(!0), o(x, null, T(s.columns, (u, r) => (i(), o("td", {
355
+ (i(!0), o(T, null, x(l.columns, (y, r) => (i(), o("td", {
338
356
  key: r,
339
- class: y({
340
- sticky: s.columns[r].isSticky,
341
- isStickyRight: s.columns[r].isStickyRight,
342
- bordered: s.columns[r].isBordered,
343
- isTextRight: s.columns[r].isTextRight,
344
- [`column-${s.columns[r].id}`]: !0
357
+ class: u({
358
+ sticky: l.columns[r].isSticky,
359
+ isStickyRight: l.columns[r].isStickyRight,
360
+ bordered: l.columns[r].isBordered,
361
+ isTextRight: l.columns[r].isTextRight,
362
+ [`column-${l.columns[r].id}`]: !0
345
363
  }),
346
364
  style: v([
347
- s.columns[r].isSticky ? t(B)[s.columns[r].id] : null,
348
- t(L)[e.index]
365
+ l.columns[r].isSticky ? t(H)[l.columns[r].id] : null,
366
+ t(A)[e.index]
349
367
  ])
350
368
  }, [
351
- !s.isLoading || s.isLoading && e.data[r] ? (i(), o("div", {
369
+ !l.isLoading || l.isLoading && e.data[r] ? (i(), o("div", {
352
370
  key: 0,
353
- class: y(["table-cell", { last: r === e.data.length - 1 }])
371
+ class: u(["table-cell", { last: r === e.data.length - 1 }])
354
372
  }, [
355
- c(l.$slots, `cell-${s.columns[r].id}`, {
373
+ c(s.$slots, `cell-${l.columns[r].id}`, {
356
374
  cell: e.data[r],
357
375
  isLoading: t(z).includes(e.index),
358
376
  cellIndex: r,
359
377
  row: e,
360
378
  rowIndex: e.index
361
379
  }, () => [
362
- f(t(w), { variant: "body1" }, {
380
+ h(t(p), { variant: "body1" }, {
363
381
  default: $(() => [
364
382
  R(P(e.data[r]), 1)
365
383
  ]),
366
384
  _: 2
367
385
  }, 1024)
368
386
  ])
369
- ], 2)) : c(l.$slots, "loader", { key: 1 }, () => [
370
- f(t(ke), { round: "" })
387
+ ], 2)) : c(s.$slots, "loader", { key: 1 }, () => [
388
+ h(t(ke), { round: "" })
371
389
  ])
372
390
  ], 6))), 128)),
373
- t(p) && t(V)(e.index) ? (i(), o("div", Ke, [
374
- c(l.$slots, "expanded", {
391
+ t(B) && t(M)(e.index) ? (i(), o("div", Ue, [
392
+ c(s.$slots, "expanded", {
375
393
  row: e,
376
394
  gridColumnTemplate: t(K)
377
395
  })
378
396
  ])) : n("", !0),
379
- de(e.index) ? (i(), o("div", Ue, [
380
- c(l.$slots, "floating-row", {
397
+ de(e.index) ? (i(), o("div", ze, [
398
+ c(s.$slots, "floating-row", {
381
399
  row: e,
382
400
  rowIndex: e.index
383
401
  })
384
402
  ])) : n("", !0)
385
- ], 46, De))), 128))
386
- ], 16, Oe)) : (i(), o("div", ze, [
387
- c(l.$slots, "empty-state", {}, () => [
388
- f(t(ge), {
403
+ ], 46, Ke))), 128))
404
+ ], 16, De)) : (i(), o("div", Ge, [
405
+ c(s.$slots, "empty-state", {}, () => [
406
+ h(t(ge), {
389
407
  class: "empty-state",
390
- title: s.emptyStateTitle,
408
+ title: l.emptyStateTitle,
391
409
  subtitle: t(re),
392
410
  variant: t(ne),
393
411
  "icon-name": "file-search",
394
- "test-id": `${s.testId}-${t(S).EMPTY_STATE}`
412
+ "test-id": `${l.testId}-${t(S).EMPTY_STATE}`
395
413
  }, null, 8, ["title", "subtitle", "variant", "test-id"])
396
414
  ])
397
415
  ]))
398
416
  ])
399
417
  ], 46, Ee),
400
- t(G) ? (i(), o("div", Ge, [
401
- c(l.$slots, "footer")
418
+ t(G) ? (i(), o("div", We, [
419
+ c(s.$slots, "footer")
402
420
  ])) : n("", !0)
403
421
  ], 40, we));
404
422
  }
405
423
  });
406
424
  export {
407
- at as default
425
+ ot as default
408
426
  };