@ironsource/shared-ui 2.2.0-rc.9 → 2.2.0-test.10

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 (62) hide show
  1. package/CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css +1 -0
  2. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +1 -0
  3. package/ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css +1 -0
  4. package/ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css +1 -0
  5. package/DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css +1 -0
  6. package/DateRange.vue_vue_type_style_index_0_scoped_25d03907_lang.css +1 -0
  7. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +1 -0
  8. package/SectionDropdown.vue_vue_type_style_index_0_scoped_65877e48_lang.css +1 -0
  9. package/SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css +1 -0
  10. package/Tag.vue_vue_type_style_index_0_scoped_211651e9_lang.css +1 -0
  11. package/components/chart/ChartHeader.vue.js +2 -2
  12. package/components/chart/ChartHeader.vue2.js +2 -2
  13. package/components/columnConfigurator/SectionDropdown.vue.js +3 -3
  14. package/components/columnConfigurator/SectionDropdown.vue2.js +6 -7
  15. package/components/columnPicker/ColumnPicker.vue.d.ts +2 -0
  16. package/components/columnPicker/ColumnPicker.vue.js +3 -3
  17. package/components/columnPicker/ColumnPicker.vue2.js +173 -153
  18. package/components/columnPicker/index.d.ts +7 -1
  19. package/components/dateRange/common/CalendarMonth.common.js +46 -41
  20. package/components/dateRange/common/DateRange.common.d.ts +1 -0
  21. package/components/dateRange/common/DateRange.common.js +39 -38
  22. package/components/dateRange/v3/CalendarMonth.vue.d.ts +5 -0
  23. package/components/dateRange/v3/CalendarMonth.vue.js +3 -3
  24. package/components/dateRange/v3/CalendarMonth.vue2.js +6 -5
  25. package/components/dateRange/v3/DateRange.vue.d.ts +5 -0
  26. package/components/dateRange/v3/DateRange.vue.js +2 -2
  27. package/components/dateRange/v3/DateRange.vue2.js +2 -1
  28. package/components/dateRange/v3/index.d.ts +20 -1
  29. package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +5 -0
  30. package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
  31. package/components/dateRange/v4/CalendarMonthV4.vue2.js +12 -11
  32. package/components/dateRange/v4/DateRangeV4.vue.d.ts +5 -0
  33. package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
  34. package/components/dateRange/v4/DateRangeV4.vue2.js +104 -101
  35. package/components/dateRange/v4/index.d.ts +20 -1
  36. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  37. package/components/switch/v4/SwitchV4.vue.js +4 -4
  38. package/components/switch/v4/SwitchV4.vue2.js +14 -13
  39. package/components/switch/v4/index.d.ts +9 -0
  40. package/components/table/v4/DataGrid.vue.d.ts +2 -0
  41. package/components/table/v4/DataGrid.vue.js +2 -2
  42. package/components/table/v4/DataGrid.vue2.js +116 -115
  43. package/components/table/v4/index.d.ts +7 -1
  44. package/components/tag/Tag.vue.d.ts +110 -0
  45. package/components/tag/Tag.vue.js +7 -0
  46. package/components/tag/Tag.vue2.js +225 -0
  47. package/components/tag/index.d.ts +159 -0
  48. package/components/tag/index.js +6 -0
  49. package/components/tagsField/index.d.ts +42 -3
  50. package/components/tagsField/index.js +6 -4
  51. package/index.d.ts +73 -4
  52. package/index.js +84 -78
  53. package/package.json +6 -2
  54. package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +0 -1
  55. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css +0 -1
  56. package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +0 -1
  57. package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +0 -1
  58. package/DataGrid.vue_vue_type_style_index_0_scoped_46851fcb_lang.css +0 -1
  59. package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +0 -1
  60. package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +0 -1
  61. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +0 -1
  62. package/SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css +0 -1
@@ -1,12 +1,12 @@
1
- import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css"; import { defineComponent as T, ref as h, onMounted as k, openBlock as c, createElementBlock as r, normalizeClass as m, unref as a, Fragment as x, renderList as V, createBlock as w, withCtx as y, createVNode as C } from "vue";
1
+ import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css"; import { defineComponent as T, ref as h, onMounted as k, openBlock as c, createElementBlock as u, normalizeClass as m, unref as a, Fragment as x, renderList as V, createBlock as w, withCtx as y, createVNode as C } from "vue";
2
2
  import { useVModel as I } from "@vueuse/core";
3
- import { SwitchTestIdModifiers as u } from "../../../testids/index.js";
3
+ import { SwitchTestIdModifiers as r } from "../../../testids/index.js";
4
4
  import "../../button/v4/ButtonV4.vue.js";
5
5
  import $ from "../../button/v4/IconButtonV4.vue.js";
6
6
  import "../../button/v4/ButtonGroup.vue.js";
7
7
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
8
- import B from "../../tooltip/v4/TooltipV4.vue.js";
9
- const K = ["data-testid"], A = /* @__PURE__ */ T({
8
+ import z from "../../tooltip/v4/TooltipV4.vue.js";
9
+ const B = ["data-testid"], A = /* @__PURE__ */ T({
10
10
  __name: "SwitchV4",
11
11
  props: {
12
12
  options: null,
@@ -15,7 +15,8 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
15
15
  testId: { default: "" },
16
16
  iconKey: { default: "icon" },
17
17
  tooltipTextKey: { default: "tooltipText" },
18
- tooltipPlacement: { default: "top" }
18
+ tooltipPlacement: { default: "top" },
19
+ iconSize: { default: "small" }
19
20
  },
20
21
  emits: ["update:modelValue"],
21
22
  setup(t, { emit: f }) {
@@ -28,11 +29,11 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
28
29
  const v = (e, s) => {
29
30
  n.value = s, p.value = e;
30
31
  };
31
- return (e, s) => (c(), r("div", {
32
+ return (e, s) => (c(), u("div", {
32
33
  class: m(["switch", [`switch--variant-${t.variant}`]]),
33
- "data-testid": `${t.testId}-${a(u).WRAPPER}`
34
+ "data-testid": `${t.testId}-${a(r).WRAPPER}`
34
35
  }, [
35
- (c(!0), r(x, null, V(t.options, (o, l) => (c(), w(a(B), {
36
+ (c(!0), u(x, null, V(t.options, (o, l) => (c(), w(a(z), {
36
37
  key: l,
37
38
  text: o[t.tooltipTextKey],
38
39
  disabled: !o[t.tooltipTextKey],
@@ -43,15 +44,15 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
43
44
  C(a($), {
44
45
  class: m(["option", { "option--selected": d(l) }]),
45
46
  "icon-name": o[t.iconKey],
46
- size: "small",
47
+ size: t.iconSize,
47
48
  color: d(l) ? t.variant : "default",
48
- "data-testid": `${t.testId}-${a(u).BUTTON}`,
49
- onClick: (P) => v(o, l)
50
- }, null, 8, ["class", "icon-name", "color", "data-testid", "onClick"])
49
+ "data-testid": `${t.testId}-${a(r).BUTTON}`,
50
+ onClick: (K) => v(o, l)
51
+ }, null, 8, ["class", "icon-name", "size", "color", "data-testid", "onClick"])
51
52
  ]),
52
53
  _: 2
53
54
  }, 1032, ["text", "disabled", "placement"]))), 128))
54
- ], 10, K));
55
+ ], 10, B));
55
56
  }
56
57
  });
57
58
  export {
@@ -16,6 +16,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
16
16
  type: import("vue").PropType<unknown>;
17
17
  required: true;
18
18
  };
19
+ iconSize: {
20
+ type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge" | "extraSmall">;
21
+ default: string;
22
+ };
19
23
  options: {
20
24
  type: import("vue").PropType<unknown[]>;
21
25
  required: true;
@@ -48,6 +52,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
48
52
  type: import("vue").PropType<unknown>;
49
53
  required: true;
50
54
  };
55
+ iconSize: {
56
+ type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge" | "extraSmall">;
57
+ default: string;
58
+ };
51
59
  options: {
52
60
  type: import("vue").PropType<unknown[]>;
53
61
  required: true;
@@ -66,6 +74,7 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
66
74
  testId: string;
67
75
  variant: "default" | "primary";
68
76
  tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
77
+ iconSize: "small" | "medium" | "large" | "extraLarge" | "extraSmall";
69
78
  iconKey: string;
70
79
  tooltipTextKey: string;
71
80
  }>[];
@@ -77,6 +77,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
77
77
  selectAll: (value: boolean) => void;
78
78
  selectRow: (value: boolean) => void;
79
79
  clickRow: (rowIndex: number) => void;
80
+ columnHover: (column: Column) => void;
80
81
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
81
82
  title?: string;
82
83
  columns: Column[];
@@ -153,6 +154,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
153
154
  onOnClearSearch?: () => any;
154
155
  onClickRow?: (rowIndex: number) => any;
155
156
  onSelectRow?: (value: boolean) => any;
157
+ onColumnHover?: (column: Column) => any;
156
158
  }, {
157
159
  sort: Sort;
158
160
  title: string;
@@ -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_46851fcb_lang.css"; //*');
4
- const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-46851fcb"]]);
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css"; //*');
4
+ const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0967498f"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_46851fcb_lang.css"; import { defineComponent as ke, useCssVars as me, unref as t, useSlots as be, computed as u, openBlock as i, createElementBlock as d, createElementVNode as b, normalizeStyle as S, normalizeClass as y, createBlock as I, isRef as pe, createSlots as ve, withCtx as g, renderSlot as r, createCommentVNode as c, Fragment as C, renderList as R, createVNode as k, createTextVNode as P, toDisplayString as O, mergeProps as L } from "vue";
2
- import V from "../../typography/v4/Typography.vue.js";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css"; import { defineComponent as ke, useCssVars as me, unref as t, useSlots as be, computed as u, openBlock as i, createElementBlock as d, createElementVNode as b, normalizeStyle as S, normalizeClass as f, createBlock as I, isRef as ve, createSlots as pe, withCtx as g, renderSlot as r, createCommentVNode as c, Fragment as C, renderList as R, createVNode as k, createTextVNode as M, toDisplayString as O, mergeProps as P } from "vue";
2
+ import L from "../../typography/v4/Typography.vue.js";
3
3
  import xe from "../../skeleton/v4/SkeletonV4.vue.js";
4
4
  import Ce from "../../emptyState/v4/EmptyStateV4.vue.js";
5
5
  import Q from "../../checkbox/v4/CheckboxV4.vue.js";
@@ -17,10 +17,10 @@ import we from "./HelpIcon.vue.js";
17
17
  import Ee from "./ExpandRowToggle.vue.js";
18
18
  import { DEFAULT_ROW_HEIGHT as Be, CHECKBOX_COLUMN_ID as Ae, DATA_GRID_HEADER_HEIGHT as X, HEADER_ROW_HEIGHT as j } from "../common/consts.js";
19
19
  import { useElementSize as Ie } from "@vueuse/core";
20
- const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
20
+ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
21
21
  key: 1,
22
22
  class: "expand-toggle-cell"
23
- }, De = ["onClick"], Fe = { class: "table-head-container" }, Ne = {
23
+ }, De = ["onClick", "onMouseenter"], Fe = { class: "table-head-container" }, Ne = {
24
24
  key: 0,
25
25
  class: "totals-row"
26
26
  }, Oe = ["data-testid"], ze = ["onMouseenter", "onClick"], Ge = {
@@ -69,17 +69,17 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
69
69
  isSelectionSticky: { type: Boolean, default: !1 },
70
70
  isSelectionBordered: { type: Boolean, default: !1 }
71
71
  },
72
- emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
73
- setup(l, { expose: m, emit: f }) {
74
- const s = l;
75
- me((a) => ({
76
- "55ef8912": l.zIndexBase,
77
- "5caaa606": t(le),
78
- b7356102: t(G),
79
- "7d96c2a6": t(fe)
72
+ emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow", "columnHover"],
73
+ setup(l, { expose: m, emit: h }) {
74
+ const a = l;
75
+ me((s) => ({
76
+ "30f420c8": l.zIndexBase,
77
+ "25787d10": t(le),
78
+ "71198c09": t(G),
79
+ "31cbe0b7": t(fe)
80
80
  }));
81
- const p = be(), q = (a) => s.rowCustomClassKey && s.rows[a] ? s.rows[a][s.rowCustomClassKey] : "", {
82
- list: v,
81
+ const v = be(), q = (s) => a.rowCustomClassKey && a.rows[s] ? a.rows[s][a.rowCustomClassKey] : "", {
82
+ list: p,
83
83
  containerProps: z,
84
84
  wrapperProps: J,
85
85
  activeRow: T,
@@ -93,58 +93,58 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
93
93
  hasExpandSlot: w,
94
94
  toggleExpandRow: te,
95
95
  cssExpandGridCol: le,
96
- isRowExpanded: M,
96
+ isRowExpanded: V,
97
97
  hasCheckboxes: D,
98
- activeMenuRow: ae,
99
- scrollTo: se
100
- } = Te(s, f), W = u(() => !!p.footer), ie = u(
101
- () => s.title || p.title || _.value || p["table-header-actions"] || p["table-header-pre-search"]
98
+ activeMenuRow: se,
99
+ scrollTo: ae
100
+ } = Te(a, h), W = u(() => !!v.footer), ie = u(
101
+ () => a.title || v.title || _.value || v["table-header-actions"] || v["table-header-pre-search"]
102
102
  ), x = u({
103
- get: () => s.search,
104
- set: (a) => f("update:search", a)
105
- }), oe = u(() => s.selection.length || 0), F = u(() => {
106
- const a = s.rows.map((o, e) => s.getRowId(o, e));
107
- return !!a.length && a.every((o) => E(o));
108
- }), E = (a) => s.selection.findIndex((o) => s.selectedMatcher(a, o)) !== -1, de = (a) => {
109
- E(a) ? (B(
110
- s.selection.filter(
111
- (o) => !s.selectedMatcher(a, o)
103
+ get: () => a.search,
104
+ set: (s) => h("update:search", s)
105
+ }), oe = u(() => a.selection.length || 0), F = u(() => {
106
+ const s = a.rows.map((o, e) => a.getRowId(o, e));
107
+ return !!s.length && s.every((o) => E(o));
108
+ }), E = (s) => a.selection.findIndex((o) => a.selectedMatcher(s, o)) !== -1, de = (s) => {
109
+ E(s) ? (B(
110
+ a.selection.filter(
111
+ (o) => !a.selectedMatcher(s, o)
112
112
  )
113
- ), f("selectRow", !1)) : (B([...s.selection, a]), f("selectRow", !0));
113
+ ), h("selectRow", !1)) : (B([...a.selection, s]), h("selectRow", !0));
114
114
  }, ne = () => {
115
115
  if (F.value)
116
- B([]), f("selectAll", !1);
116
+ B([]), h("selectAll", !1);
117
117
  else {
118
- const a = s.rows.map((o, e) => s.getRowId(o, e)).filter((o) => !E(o));
119
- B([...s.selection, ...a]), f("selectAll", !0);
118
+ const s = a.rows.map((o, e) => a.getRowId(o, e)).filter((o) => !E(o));
119
+ B([...a.selection, ...s]), h("selectAll", !0);
120
120
  }
121
- }, B = (a) => {
122
- f("update:selection", a);
123
- }, re = (a) => !s.isLoading && T.value === a, ce = u(
124
- () => s.emptyStateVariant ?? (x.value ? "no-results" : "no-data")
121
+ }, B = (s) => {
122
+ h("update:selection", s);
123
+ }, re = (s) => !a.isLoading && T.value === s, ce = u(
124
+ () => a.emptyStateVariant ?? (x.value ? "no-results" : "no-data")
125
125
  ), ue = u(
126
- () => s.emptyStateSubtitle ? s.emptyStateSubtitle : x.value ? "Search again with different filters" : void 0
126
+ () => a.emptyStateSubtitle ? a.emptyStateSubtitle : x.value ? "Search again with different filters" : void 0
127
127
  ), N = u(() => ({
128
128
  class: {
129
- sticky: s.isSelectionSticky,
130
- bordered: s.isSelectionBordered
129
+ sticky: a.isSelectionSticky,
130
+ bordered: a.isSelectionBordered
131
131
  },
132
- style: s.isSelectionSticky ? H.value[Ae] : null
133
- })), he = (a) => ({
134
- sticky: a.isSticky,
135
- isStickyRight: a.isStickyRight,
136
- bordered: a.isBordered,
137
- isTextRight: a.isTextRight
132
+ style: a.isSelectionSticky ? H.value[Ae] : null
133
+ })), he = (s) => ({
134
+ sticky: s.isSticky,
135
+ isStickyRight: s.isStickyRight,
136
+ bordered: s.isBordered,
137
+ isTextRight: s.isTextRight
138
138
  }), Y = u(
139
- () => s.columns.map((a) => he(a))
140
- ), ye = (a) => ({
141
- minHeight: (typeof s.rowHeight == "function" ? s.rowHeight(a) : s.rowHeight) + "px"
142
- }), A = u(() => v.value.reduce((a, o) => (a[o.index] = ye(o.index), a), {})), fe = u(() => `${X}px`), { height: Se } = Ie(z.ref), ge = u(
139
+ () => a.columns.map((s) => he(s))
140
+ ), ye = (s) => ({
141
+ minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(s) : a.rowHeight) + "px"
142
+ }), A = u(() => p.value.reduce((s, o) => (s[o.index] = ye(o.index), s), {})), fe = u(() => `${X}px`), { height: Se } = Ie(z.ref), ge = u(
143
143
  () => Se.value - j - X
144
144
  );
145
145
  return m({
146
- scrollTo: se
147
- }), (a, o) => (i(), d("div", {
146
+ scrollTo: ae
147
+ }), (s, o) => (i(), d("div", {
148
148
  class: "table-container",
149
149
  "data-testid": `${l.testId}-${t($).CONTAINER}`,
150
150
  onMouseleave: o[3] || (o[3] = (e) => T.value = null)
@@ -152,9 +152,9 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
152
152
  b("table", {
153
153
  ref: t(z).ref,
154
154
  style: S(t(ee)),
155
- class: y({
155
+ class: f({
156
156
  hasFooter: t(W),
157
- "disabled-scrolling": t(v).length === 0
157
+ "disabled-scrolling": t(p).length === 0
158
158
  }),
159
159
  "data-testid": `${l.testId}-${t($).TABLE}`,
160
160
  onScrollPassive: o[2] || (o[2] = //@ts-ignore
@@ -163,7 +163,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
163
163
  t(ie) ? (i(), I(t($e), {
164
164
  key: 0,
165
165
  search: t(x),
166
- "onUpdate:search": o[0] || (o[0] = (e) => pe(x) ? x.value = e : null),
166
+ "onUpdate:search": o[0] || (o[0] = (e) => ve(x) ? x.value = e : null),
167
167
  title: l.title,
168
168
  "is-sticky": l.isStickyHeader,
169
169
  "show-search": l.showSearch,
@@ -171,33 +171,33 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
171
171
  "search-auto-focus": l.searchAutoFocus,
172
172
  "z-index-base": l.zIndexBase,
173
173
  "test-id": l.testId,
174
- onOnClearSearch: o[1] || (o[1] = (e) => f("onClearSearch"))
175
- }, ve({
174
+ onOnClearSearch: o[1] || (o[1] = (e) => h("onClearSearch"))
175
+ }, pe({
176
176
  title: g(() => [
177
- r(a.$slots, "title")
177
+ r(s.$slots, "title")
178
178
  ]),
179
179
  search: g(() => [
180
- r(a.$slots, "search")
180
+ r(s.$slots, "search")
181
181
  ]),
182
182
  _: 2
183
183
  }, [
184
- t(p)["table-header-pre-search"] ? {
184
+ t(v)["table-header-pre-search"] ? {
185
185
  name: "table-header-pre-search",
186
186
  fn: g(() => [
187
- r(a.$slots, "table-header-pre-search")
187
+ r(s.$slots, "table-header-pre-search")
188
188
  ]),
189
189
  key: "0"
190
190
  } : void 0,
191
- t(p)["table-header-actions"] ? {
191
+ t(v)["table-header-actions"] ? {
192
192
  name: "table-header-actions",
193
193
  fn: g(() => [
194
- r(a.$slots, "table-header-actions")
194
+ r(s.$slots, "table-header-actions")
195
195
  ]),
196
196
  key: "1"
197
197
  } : void 0
198
198
  ]), 1032, ["search", "title", "is-sticky", "show-search", "search-placeholder", "search-auto-focus", "z-index-base", "test-id"])) : c("", !0),
199
199
  b("thead", {
200
- class: y({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
200
+ class: f({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
201
201
  }, [
202
202
  b("div", {
203
203
  class: "sections",
@@ -205,31 +205,31 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
205
205
  }, [
206
206
  (i(!0), d(C, null, R(l.sections, (e) => (i(), d("div", {
207
207
  key: e.id,
208
- class: y(["section-container", { sticky: e.isSticky }])
208
+ class: f(["section-container", { sticky: e.isSticky }])
209
209
  }, [
210
- r(a.$slots, `section-${e.id}`, {}, () => [
210
+ r(s.$slots, `section-${e.id}`, {}, () => [
211
211
  b("div", {
212
212
  style: S({ width: e.width + "px" }),
213
- class: y({ section: !0 })
213
+ class: f({ section: !0 })
214
214
  }, [
215
- k(t(V), { variant: "body2" }, {
215
+ k(t(L), { variant: "body2" }, {
216
216
  default: g(() => [
217
- P(O(e.title), 1)
217
+ M(O(e.title), 1)
218
218
  ]),
219
219
  _: 2
220
220
  }, 1024)
221
221
  ], 4)
222
222
  ])
223
223
  ], 2))), 128))
224
- ], 8, Ve),
224
+ ], 8, Le),
225
225
  b("tr", {
226
226
  style: S({ height: `${t(j)}px` })
227
227
  }, [
228
- t(D) ? (i(), d("th", L({
228
+ t(D) ? (i(), d("th", P({
229
229
  key: 0,
230
230
  class: "checkbox-cell"
231
231
  }, t(N)), [
232
- r(a.$slots, "select-all-checkbox", {}, () => [
232
+ r(s.$slots, "select-all-checkbox", {}, () => [
233
233
  k(t(Q), {
234
234
  disabled: l.isLoading,
235
235
  "is-checked": t(F),
@@ -238,19 +238,20 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
238
238
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
239
239
  ])
240
240
  ], 16)) : c("", !0),
241
- t(w) ? (i(), d("th", Me)) : c("", !0),
242
- (i(!0), d(C, null, R(l.columns, (e, h) => (i(), d("th", {
241
+ t(w) ? (i(), d("th", Ve)) : c("", !0),
242
+ (i(!0), d(C, null, R(l.columns, (e, y) => (i(), d("th", {
243
243
  key: e.id,
244
- class: y({
245
- ...t(Y)[h],
244
+ class: f({
245
+ ...t(Y)[y],
246
246
  isSortable: e.isSortable,
247
247
  [`column-${e.id}`]: !0
248
248
  }),
249
249
  style: S(e.isSticky ? t(H)[e.id] : null),
250
- onClick: (n) => e.isSortable ? t(Z)(e) : null
250
+ onClick: (n) => e.isSortable ? t(Z)(e) : null,
251
+ onMouseenter: () => h("columnHover", e)
251
252
  }, [
252
253
  b("div", Fe, [
253
- r(a.$slots, `header-${e.id}`, { column: e }, () => [
254
+ r(s.$slots, `header-${e.id}`, { column: e }, () => [
254
255
  k(t(Re), {
255
256
  text: e.helpText,
256
257
  disabled: !e.helpText || l.helpTooltipVariant === "icon",
@@ -258,14 +259,14 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
258
259
  "test-id": `help-tooltip-underlined-${e.id}`
259
260
  }, {
260
261
  default: g(() => [
261
- k(t(V), {
262
+ k(t(L), {
262
263
  variant: "tableLabel",
263
- class: y({
264
+ class: f({
264
265
  underlined: e.helpText && l.helpTooltipVariant === "underline"
265
266
  })
266
267
  }, {
267
268
  default: g(() => [
268
- P(O(e.title), 1)
269
+ M(O(e.title), 1)
269
270
  ]),
270
271
  _: 2
271
272
  }, 1032, ["class"])
@@ -279,34 +280,34 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
279
280
  "hover-help-text-placement": e.helpTextPlacement,
280
281
  "test-id": `help-tooltip-${e.id}`
281
282
  }, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : c("", !0),
282
- r(a.$slots, `after-header-${e.id}`, { column: e }),
283
+ r(s.$slots, `after-header-${e.id}`, { column: e }),
283
284
  e.isSortable && e.id === l.sort?.sortBy ? (i(), I(He, {
284
285
  key: 1,
285
286
  "sort-order": l.sort.sortOrder
286
287
  }, null, 8, ["sort-order"])) : c("", !0)
287
288
  ])
288
- ], 14, De))), 128))
289
+ ], 46, De))), 128))
289
290
  ], 4),
290
- l.showTotalsRow && t(v).length > 0 ? (i(), d("tr", Ne, [
291
- t(D) ? (i(), d("td", L({
291
+ l.showTotalsRow && t(p).length > 0 ? (i(), d("tr", Ne, [
292
+ t(D) ? (i(), d("td", P({
292
293
  key: 0,
293
294
  class: "bg"
294
295
  }, t(N)), null, 16)) : c("", !0),
295
- (i(!0), d(C, null, R(l.columns, (e, h) => (i(), d("td", {
296
+ (i(!0), d(C, null, R(l.columns, (e, y) => (i(), d("td", {
296
297
  key: e.id,
297
- class: y({
298
- ...t(Y)[h],
298
+ class: f({
299
+ ...t(Y)[y],
299
300
  [`total-${e.id}`]: !0
300
301
  }),
301
302
  style: S(e.isSticky ? t(H)[e.id] : null)
302
303
  }, [
303
- r(a.$slots, `total-${e.id}`, { column: e }, () => [
304
- h === 0 ? (i(), I(t(V), {
304
+ r(s.$slots, `total-${e.id}`, { column: e }, () => [
305
+ y === 0 ? (i(), I(t(L), {
305
306
  key: 0,
306
307
  variant: "h6"
307
308
  }, {
308
309
  default: g(() => [
309
- P("Totals")
310
+ M("Totals")
310
311
  ]),
311
312
  _: 1
312
313
  })) : c("", !0)
@@ -315,25 +316,25 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
315
316
  ])) : c("", !0)
316
317
  ], 2),
317
318
  b("tbody", null, [
318
- t(v).length > 0 ? (i(), d("div", L({
319
+ t(p).length > 0 ? (i(), d("div", P({
319
320
  key: 0,
320
321
  class: "table-body-wrapper",
321
322
  "data-testid": `${l.testId}-${t($).BODY_WRAPPER}`
322
323
  }, t(J)), [
323
- (i(!0), d(C, null, R(t(v), (e) => (i(), d("tr", {
324
+ (i(!0), d(C, null, R(t(p), (e) => (i(), d("tr", {
324
325
  key: l.getRowKey(e.data, e.index),
325
- class: y(["table-row", {
326
+ class: f(["table-row", {
326
327
  loading: l.isLoading || l.isLoading && !e.data || t(U).includes(e.index),
327
328
  active: t(T) === e.index,
328
- activeMenu: t(ae) === e.index,
329
- expanded: t(w) && t(M)(e.index),
329
+ activeMenu: t(se) === e.index,
330
+ expanded: t(w) && t(V)(e.index),
330
331
  [q(e.index)]: !0
331
332
  }]),
332
333
  style: S(t(A)[e.index]),
333
- onMouseenter: (h) => T.value = e.index,
334
- onClick: (h) => f("clickRow", e.index)
334
+ onMouseenter: (y) => T.value = e.index,
335
+ onClick: (y) => h("clickRow", e.index)
335
336
  }, [
336
- t(D) ? (i(), d("td", L({
337
+ t(D) ? (i(), d("td", P({
337
338
  key: 0,
338
339
  class: "checkbox-cell"
339
340
  }, t(N), {
@@ -341,7 +342,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
341
342
  }), [
342
343
  k(t(Q), {
343
344
  "is-checked": E(l.getRowId(e.data, e.index)),
344
- "onUpdate:isChecked": (h) => de(l.getRowId(e.data, e.index))
345
+ "onUpdate:isChecked": (y) => de(l.getRowId(e.data, e.index))
345
346
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
346
347
  ], 16)) : c("", !0),
347
348
  t(w) ? (i(), d("td", {
@@ -350,13 +351,13 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
350
351
  style: S(t(A)[e.index])
351
352
  }, [
352
353
  k(Ee, {
353
- expanded: t(M)(e.index),
354
- onClick: (h) => t(te)(e.index, h)
354
+ expanded: t(V)(e.index),
355
+ onClick: (y) => t(te)(e.index, y)
355
356
  }, null, 8, ["expanded", "onClick"])
356
357
  ], 4)) : c("", !0),
357
- (i(!0), d(C, null, R(l.columns, (h, n) => (i(), d("td", {
358
+ (i(!0), d(C, null, R(l.columns, (y, n) => (i(), d("td", {
358
359
  key: n,
359
- class: y({
360
+ class: f({
360
361
  sticky: l.columns[n].isSticky,
361
362
  isStickyRight: l.columns[n].isStickyRight,
362
363
  bordered: l.columns[n].isBordered,
@@ -370,34 +371,34 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
370
371
  }, [
371
372
  !l.isLoading || l.isLoading && e.data[n] ? (i(), d("div", {
372
373
  key: 0,
373
- class: y(["table-cell", { last: n === e.data.length - 1 }])
374
+ class: f(["table-cell", { last: n === e.data.length - 1 }])
374
375
  }, [
375
- r(a.$slots, `cell-${l.columns[n].id}`, {
376
+ r(s.$slots, `cell-${l.columns[n].id}`, {
376
377
  cell: e.data[n],
377
378
  isLoading: t(U).includes(e.index),
378
379
  cellIndex: n,
379
380
  row: e,
380
381
  rowIndex: e.index
381
382
  }, () => [
382
- k(t(V), { variant: "body1" }, {
383
+ k(t(L), { variant: "body1" }, {
383
384
  default: g(() => [
384
- P(O(e.data[n]), 1)
385
+ M(O(e.data[n]), 1)
385
386
  ]),
386
387
  _: 2
387
388
  }, 1024)
388
389
  ])
389
- ], 2)) : r(a.$slots, "loader", { key: 1 }, () => [
390
+ ], 2)) : r(s.$slots, "loader", { key: 1 }, () => [
390
391
  k(t(xe), { round: "" })
391
392
  ])
392
393
  ], 6))), 128)),
393
- t(w) && t(M)(e.index) ? (i(), d("div", Ge, [
394
- r(a.$slots, "expanded", {
394
+ t(w) && t(V)(e.index) ? (i(), d("div", Ge, [
395
+ r(s.$slots, "expanded", {
395
396
  row: e,
396
397
  gridColumnTemplate: t(G)
397
398
  })
398
399
  ])) : c("", !0),
399
400
  re(e.index) ? (i(), d("div", Ke, [
400
- r(a.$slots, "floating-row", {
401
+ r(s.$slots, "floating-row", {
401
402
  row: e,
402
403
  rowIndex: e.index
403
404
  })
@@ -409,7 +410,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
409
410
  l.useAvailableHeight ? { height: `${t(ge)}px` } : {}
410
411
  )
411
412
  }, [
412
- r(a.$slots, "empty-state", {}, () => [
413
+ r(s.$slots, "empty-state", {}, () => [
413
414
  k(t(Ce), {
414
415
  class: "empty-state",
415
416
  title: l.emptyStateTitle,
@@ -421,11 +422,11 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
421
422
  ])
422
423
  ], 4))
423
424
  ])
424
- ], 46, Le),
425
+ ], 46, Pe),
425
426
  t(W) ? (i(), d("div", Ue, [
426
- r(a.$slots, "footer")
427
+ r(s.$slots, "footer")
427
428
  ])) : c("", !0)
428
- ], 40, Pe));
429
+ ], 40, Me));
429
430
  }
430
431
  });
431
432
  export {
@@ -567,6 +567,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
567
567
  onOnClearSearch?: () => any;
568
568
  onClickRow?: (rowIndex: number) => any;
569
569
  onSelectRow?: (value: boolean) => any;
570
+ onColumnHover?: (column: import("../common/Table.types").Column) => any;
570
571
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "loadingRowCount" | "zIndexBase" | "showSearch" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "emptyStateVariant" | "rowCustomClassKey" | "rowDataKey" | "helpTooltipVariant" | "useAvailableHeight" | "selectedMatcher" | "isSelectionSticky" | "isSelectionBordered">;
571
572
  $attrs: {
572
573
  [x: string]: unknown;
@@ -579,7 +580,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
579
580
  }>;
580
581
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
581
582
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
582
- $emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => void) & ((event: "update:selection", selection: unknown[]) => 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: "clickRow", rowIndex: number) => void) & ((event: "selectRow", value: boolean) => void);
583
+ $emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => void) & ((event: "update:selection", selection: unknown[]) => 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: "clickRow", rowIndex: number) => void) & ((event: "selectRow", value: boolean) => void) & ((event: "columnHover", column: import("../common/Table.types").Column) => void);
583
584
  $el: any;
584
585
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
585
586
  sort: {
@@ -724,6 +725,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
724
725
  onOnClearSearch?: () => any;
725
726
  onClickRow?: (rowIndex: number) => any;
726
727
  onSelectRow?: (value: boolean) => any;
728
+ onColumnHover?: (column: import("../common/Table.types").Column) => any;
727
729
  }, {
728
730
  scrollTo: (index: number) => void;
729
731
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -737,6 +739,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
737
739
  selectAll: (value: boolean) => void;
738
740
  selectRow: (value: boolean) => void;
739
741
  clickRow: (rowIndex: number) => void;
742
+ columnHover: (column: import("../common/Table.types").Column) => void;
740
743
  }, string, {
741
744
  sort: import("../common/Table.types").Sort;
742
745
  title: string;
@@ -931,6 +934,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
931
934
  onOnClearSearch?: () => any;
932
935
  onClickRow?: (rowIndex: number) => any;
933
936
  onSelectRow?: (value: boolean) => any;
937
+ onColumnHover?: (column: import("../common/Table.types").Column) => any;
934
938
  } & import("vue").ShallowUnwrapRef<{
935
939
  scrollTo: (index: number) => void;
936
940
  }> & {} & import("vue").ComponentCustomProperties & {};
@@ -1080,6 +1084,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
1080
1084
  onOnClearSearch?: () => any;
1081
1085
  onClickRow?: (rowIndex: number) => any;
1082
1086
  onSelectRow?: (value: boolean) => any;
1087
+ onColumnHover?: (column: import("../common/Table.types").Column) => any;
1083
1088
  }, {
1084
1089
  scrollTo: (index: number) => void;
1085
1090
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1093,6 +1098,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
1093
1098
  selectAll: (value: boolean) => void;
1094
1099
  selectRow: (value: boolean) => void;
1095
1100
  clickRow: (rowIndex: number) => void;
1101
+ columnHover: (column: import("../common/Table.types").Column) => void;
1096
1102
  }, string, {
1097
1103
  sort: import("../common/Table.types").Sort;
1098
1104
  title: string;