@ironsource/shared-ui 2.1.12-test.53 → 2.1.12-test.55

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 (152) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +1 -0
  2. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
  3. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
  5. package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
  7. package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css +1 -0
  8. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
  9. package/DataGrid.vue_vue_type_style_index_0_scoped_e6cece52_lang.css +1 -0
  10. package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
  11. package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
  12. package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
  13. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  14. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
  15. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
  16. package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
  17. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
  18. package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
  19. package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
  20. package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
  21. package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
  22. package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
  23. package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
  24. package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
  25. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
  26. package/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
  27. package/components/chart/Chart.vue.d.ts +5 -0
  28. package/components/chart/Chart.vue.js +4 -4
  29. package/components/chart/Chart.vue2.js +122 -112
  30. package/components/chart/ChartHeader.vue.d.ts +5 -0
  31. package/components/chart/ChartHeader.vue.js +3 -3
  32. package/components/chart/ChartHeader.vue2.js +49 -44
  33. package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
  34. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  35. package/components/chart/ChartHeaderTrend.vue2.js +42 -39
  36. package/components/chart/ChartLegend.vue.d.ts +5 -0
  37. package/components/chart/ChartLegend.vue.js +3 -3
  38. package/components/chart/ChartLegend.vue2.js +76 -71
  39. package/components/chart/ChartPlane.vue.d.ts +5 -0
  40. package/components/chart/ChartPlane.vue.js +3 -3
  41. package/components/chart/ChartPlane.vue2.js +125 -119
  42. package/components/chart/ChartTooltip.vue.d.ts +5 -0
  43. package/components/chart/ChartTooltip.vue.js +2 -2
  44. package/components/chart/ChartTooltip.vue2.js +38 -34
  45. package/components/chart/LegendSorting.vue.d.ts +5 -0
  46. package/components/chart/LegendSorting.vue.js +16 -14
  47. package/components/chart/SettingsHeader.vue.d.ts +19 -3
  48. package/components/chart/SettingsHeader.vue.js +3 -3
  49. package/components/chart/SettingsHeader.vue2.js +36 -29
  50. package/components/chart/index.d.ts +20 -1
  51. package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
  52. package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
  53. package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
  54. package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
  55. package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
  56. package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
  57. package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
  58. package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
  59. package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
  60. package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
  61. package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
  62. package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
  63. package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
  64. package/components/columnConfigurator/consts.d.ts +1 -0
  65. package/components/columnConfigurator/consts.js +4 -0
  66. package/components/columnConfigurator/index.d.ts +73 -0
  67. package/components/columnConfigurator/index.js +6 -0
  68. package/components/columnConfigurator/mockData.d.ts +30 -0
  69. package/components/columnConfigurator/utils.d.ts +2 -0
  70. package/components/columnConfigurator/utils.js +18 -0
  71. package/components/columnPicker/ColumnPicker.vue.d.ts +1 -1
  72. package/components/columnPicker/index.d.ts +20 -20
  73. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  74. package/components/dropdown/v4/ConditionalDropdown.vue2.js +99 -97
  75. package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
  76. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  77. package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
  78. package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
  79. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  80. package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
  81. package/components/dropdown/v4/index.d.ts +61 -2
  82. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
  83. package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
  84. package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
  85. package/components/emptyState/v4/index.d.ts +20 -1
  86. package/components/link/Link.vue.d.ts +5 -0
  87. package/components/link/Link.vue.js +3 -3
  88. package/components/link/Link.vue2.js +36 -28
  89. package/components/link/index.d.ts +20 -1
  90. package/components/sortableList/LoaderBars.vue.d.ts +34 -0
  91. package/components/sortableList/LoaderBars.vue.js +7 -0
  92. package/components/sortableList/LoaderBars.vue2.js +25 -0
  93. package/components/sortableList/SortableItem.vue.js +4 -4
  94. package/components/sortableList/SortableItem.vue2.js +3 -3
  95. package/components/sortableList/SortableList.vue.d.ts +2 -2
  96. package/components/sortableList/SortableList.vue.js +5 -5
  97. package/components/sortableList/SortableList.vue2.js +96 -106
  98. package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
  99. package/components/sortableList/SortableSelectableList.vue.js +7 -0
  100. package/components/sortableList/SortableSelectableList.vue2.js +128 -0
  101. package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
  102. package/components/sortableList/composables/useDraggableHelpers.js +20 -0
  103. package/components/sortableList/consts.d.ts +2 -0
  104. package/components/sortableList/consts.js +4 -2
  105. package/components/sortableList/index.d.ts +39 -39
  106. package/components/table/common/consts.d.ts +2 -0
  107. package/components/table/common/consts.js +6 -4
  108. package/components/table/v4/DataGrid.vue.d.ts +4 -3
  109. package/components/table/v4/DataGrid.vue.js +4 -4
  110. package/components/table/v4/DataGrid.vue2.js +362 -335
  111. package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
  112. package/components/table/v4/DataGridContainer.vue.js +7 -0
  113. package/components/table/v4/DataGridContainer.vue2.js +19 -0
  114. package/components/table/v4/DataGridHeader.vue.d.ts +1 -1
  115. package/components/table/v4/DataGridHeader.vue.js +2 -2
  116. package/components/table/v4/DataGridHeader.vue2.js +30 -28
  117. package/components/table/v4/MultipleDataGrid.vue.d.ts +2 -2
  118. package/components/table/v4/index.d.ts +104 -103
  119. package/components/tagsField/TagsField.types.d.ts +4 -0
  120. package/components/tagsField/TagsField.vue.d.ts +65 -0
  121. package/components/tagsField/TagsField.vue.js +7 -0
  122. package/components/tagsField/TagsField.vue2.js +90 -0
  123. package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
  124. package/components/tagsField/TagsFieldChip.vue.js +7 -0
  125. package/components/tagsField/TagsFieldChip.vue2.js +81 -0
  126. package/components/tagsField/consts.d.ts +1 -0
  127. package/components/tagsField/consts.js +4 -0
  128. package/components/tagsField/index.d.ts +75 -0
  129. package/components/tagsField/index.js +6 -0
  130. package/index.d.ts +450 -290
  131. package/index.js +87 -79
  132. package/package.json +10 -1
  133. package/testids/index.d.ts +36 -0
  134. package/testids/index.js +37 -31
  135. package/utils/object.d.ts +2 -0
  136. package/utils/object.js +9 -5
  137. package/utils/search.js +1 -1
  138. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +0 -1
  139. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
  140. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +0 -1
  141. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
  142. package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +0 -1
  143. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +0 -1
  144. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_bdd6ee48_lang.css +0 -1
  145. package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +0 -1
  146. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +0 -1
  147. package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +0 -1
  148. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
  149. package/Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css +0 -1
  150. package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +0 -1
  151. package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +0 -1
  152. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
@@ -1,36 +1,38 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css"; import { defineComponent as he, useCssVars as ye, unref as t, useSlots as fe, computed as h, openBlock as i, createElementBlock as d, createElementVNode as m, normalizeStyle as b, normalizeClass as y, createBlock as L, isRef as Se, createSlots as ke, withCtx as S, renderSlot as r, createCommentVNode as c, Fragment as C, renderList as x, createVNode as k, createTextVNode as V, toDisplayString as z, mergeProps as I } from "vue";
2
- import M from "../../typography/v4/Typography.vue.js";
3
- import ge from "../../skeleton/v4/SkeletonV4.vue.js";
4
- import me from "../../emptyState/v4/EmptyStateV4.vue.js";
5
- import Y from "../../checkbox/v4/CheckboxV4.vue.js";
6
- import be from "../../tooltip/v4/TooltipV4.vue.js";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_e6cece52_lang.css"; import { defineComponent as me, useCssVars as pe, unref as t, useSlots as be, computed as u, openBlock as i, createBlock as C, createSlots as Q, withCtx as h, createElementVNode as m, mergeProps as $, normalizeStyle as k, normalizeClass as f, isRef as ve, renderSlot as n, createCommentVNode as c, createElementBlock as d, Fragment as x, renderList as R, createVNode as g, createTextVNode as L, toDisplayString as O } from "vue";
2
+ import V from "../../typography/v4/Typography.vue.js";
3
+ import Ce from "../../skeleton/v4/SkeletonV4.vue.js";
4
+ import $e from "../../emptyState/v4/EmptyStateV4.vue.js";
5
+ import X from "../../checkbox/v4/CheckboxV4.vue.js";
6
+ import xe from "../../tooltip/v4/TooltipV4.vue.js";
7
7
  import "./DataGrid.vue.js";
8
8
  import "./DataGridMenu.vue.js";
9
9
  import "./DataGridRowsCounter.vue.js";
10
- import ve from "./DataGridHeader.vue.js";
10
+ import Re from "./DataGridHeader.vue.js";
11
11
  import "./MultipleDataGrid.vue.js";
12
- import { TableTestIdModifiers as $ } from "../../../testids/index.js";
13
- import { tableCommon as pe } from "../common/Table.common.js";
14
- import Ce from "./SortIcon.vue.js";
15
- import xe from "./HelpIcon.vue.js";
16
- import $e from "./ExpandRowToggle.vue.js";
17
- import { DEFAULT_ROW_HEIGHT as Re, CHECKBOX_COLUMN_ID as Te } from "../common/consts.js";
18
- const we = ["data-testid"], Be = ["data-testid"], He = ["data-testid"], Ee = {
12
+ import Te from "./DataGridContainer.vue.js";
13
+ import { TableTestIdModifiers as T } from "../../../testids/index.js";
14
+ import { tableCommon as we } from "../common/Table.common.js";
15
+ import He from "./SortIcon.vue.js";
16
+ import Ee from "./HelpIcon.vue.js";
17
+ import Be from "./ExpandRowToggle.vue.js";
18
+ import { DEFAULT_ROW_HEIGHT as Ae, CHECKBOX_COLUMN_ID as Ie, DATA_GRID_HEADER_HEIGHT as j, HEADER_ROW_HEIGHT as q } from "../common/consts.js";
19
+ import { useElementSize as Pe } from "@vueuse/core";
20
+ const Le = ["data-testid"], Ve = ["data-testid"], De = ["data-testid"], Me = {
19
21
  key: 1,
20
22
  class: "expand-toggle-cell"
21
- }, Pe = ["onClick"], Le = { class: "table-head-container" }, Ve = {
23
+ }, Fe = ["onClick"], Ne = { class: "table-head-container" }, Oe = {
22
24
  key: 0,
23
25
  class: "totals-row"
24
- }, Ie = ["data-testid"], Me = ["onMouseenter", "onClick"], Ae = {
26
+ }, Ge = ["data-testid"], ze = ["onMouseenter", "onClick"], Ke = {
25
27
  key: 2,
26
28
  class: "expanded-row"
27
- }, Fe = {
29
+ }, Ue = {
28
30
  key: 3,
29
31
  class: "floating-row"
30
- }, Ne = { key: 1 }, Oe = {
32
+ }, We = {
31
33
  key: 0,
32
34
  class: "table-footer"
33
- }, lt = /* @__PURE__ */ he({
35
+ }, ut = /* @__PURE__ */ me({
34
36
  __name: "DataGrid",
35
37
  props: {
36
38
  title: { default: "" },
@@ -39,9 +41,9 @@ const we = ["data-testid"], Be = ["data-testid"], He = ["data-testid"], Ee = {
39
41
  sections: { default: null },
40
42
  sort: { default: null },
41
43
  selection: { default: null },
42
- getRowId: { type: Function, default: (l, g) => g },
43
- getRowKey: { type: Function, default: (l, g) => g },
44
- selectedMatcher: { type: Function, default: (l, g) => l === g },
44
+ getRowId: { type: Function, default: (l, p) => p },
45
+ getRowKey: { type: Function, default: (l, p) => p },
46
+ selectedMatcher: { type: Function, default: (l, p) => l === p },
45
47
  isSticky: { type: Boolean, default: !0 },
46
48
  isStickyHeader: { type: Boolean, default: !1 },
47
49
  isLoading: { type: Boolean, default: !1 },
@@ -51,7 +53,7 @@ const we = ["data-testid"], Be = ["data-testid"], He = ["data-testid"], Ee = {
51
53
  isInfiniteScroll: { type: Boolean, default: !1 },
52
54
  showTotalsRow: { type: Boolean },
53
55
  infiniteScrollThreshold: { default: 100 },
54
- rowHeight: { type: [Number, Function], default: Re },
56
+ rowHeight: { type: [Number, Function], default: Ae },
55
57
  loadingRowCount: { default: 3 },
56
58
  defaultScrollPosition: { default: null },
57
59
  helpTooltipVariant: { default: "icon" },
@@ -67,353 +69,378 @@ const we = ["data-testid"], Be = ["data-testid"], He = ["data-testid"], Ee = {
67
69
  isSelectionBordered: { type: Boolean, default: !1 }
68
70
  },
69
71
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
70
- setup(l, { expose: g, emit: f }) {
72
+ setup(l, { expose: p, emit: S }) {
71
73
  const a = l;
72
- ye((s) => ({
73
- d9213df8: l.zIndexBase,
74
- c75d7f10: t(ee),
75
- d661d51e: t(D)
74
+ pe((s) => ({
75
+ d6fdbe1e: l.zIndexBase,
76
+ e806cab6: t(le),
77
+ "470c985e": t(z),
78
+ "572d2bcc": t(ke)
76
79
  }));
77
- const v = fe(), Q = (s) => a.rowCustomClassKey && a.rows[s] ? a.rows[s][a.rowCustomClassKey] : "", {
78
- list: R,
79
- containerProps: X,
80
- wrapperProps: j,
81
- activeRow: T,
82
- gridColumnTemplate: D,
83
- toggleSortOrder: q,
84
- columnsStickyPositions: w,
85
- hasSearchSlot: J,
86
- containerStyle: Z,
80
+ const b = be(), J = (s) => a.rowCustomClassKey && a.rows[s] ? a.rows[s][a.rowCustomClassKey] : "", {
81
+ list: w,
82
+ containerProps: G,
83
+ wrapperProps: Z,
84
+ activeRow: H,
85
+ gridColumnTemplate: z,
86
+ toggleSortOrder: _,
87
+ columnsStickyPositions: E,
88
+ hasSearchSlot: ee,
89
+ containerStyle: te,
87
90
  onScroll: K,
88
91
  savingRows: U,
89
92
  hasExpandSlot: B,
90
- toggleExpandRow: _,
91
- cssExpandGridCol: ee,
92
- isRowExpanded: A,
93
- hasCheckboxes: F,
94
- activeMenuRow: te,
95
- scrollTo: se
96
- } = pe(a, f), G = h(() => !!v.footer), le = h(
97
- () => a.title || v.title || J.value || v["table-header-actions"] || v["table-header-pre-search"]
98
- ), p = h({
93
+ toggleExpandRow: se,
94
+ cssExpandGridCol: le,
95
+ isRowExpanded: D,
96
+ hasCheckboxes: M,
97
+ activeMenuRow: ae,
98
+ scrollTo: ie
99
+ } = we(a, S), W = u(() => !!b.footer), oe = u(
100
+ () => a.title || b.title || ee.value || b["table-header-actions"] || b["table-header-pre-search"]
101
+ ), v = u({
99
102
  get: () => a.search,
100
- set: (s) => f("update:search", s)
101
- }), ae = h(() => a.selection.length || 0), N = h(() => {
103
+ set: (s) => S("update:search", s)
104
+ }), de = u(() => a.selection.length || 0), F = u(() => {
102
105
  const s = a.rows.map((o, e) => a.getRowId(o, e));
103
- return !!s.length && s.every((o) => H(o));
104
- }), H = (s) => a.selection.findIndex((o) => a.selectedMatcher(s, o)) !== -1, ie = (s) => {
105
- H(s) ? (E(
106
+ return !!s.length && s.every((o) => A(o));
107
+ }), A = (s) => a.selection.findIndex((o) => a.selectedMatcher(s, o)) !== -1, ne = (s) => {
108
+ A(s) ? (I(
106
109
  a.selection.filter(
107
110
  (o) => !a.selectedMatcher(s, o)
108
111
  )
109
- ), f("selectRow", !1)) : (E([...a.selection, s]), f("selectRow", !0));
110
- }, oe = () => {
111
- if (N.value)
112
- E([]), f("selectAll", !1);
112
+ ), S("selectRow", !1)) : (I([...a.selection, s]), S("selectRow", !0));
113
+ }, re = () => {
114
+ if (F.value)
115
+ I([]), S("selectAll", !1);
113
116
  else {
114
- const s = a.rows.map((o, e) => a.getRowId(o, e)).filter((o) => !H(o));
115
- E([...a.selection, ...s]), f("selectAll", !0);
117
+ const s = a.rows.map((o, e) => a.getRowId(o, e)).filter((o) => !A(o));
118
+ I([...a.selection, ...s]), S("selectAll", !0);
116
119
  }
117
- }, E = (s) => {
118
- f("update:selection", s);
119
- }, de = (s) => !a.isLoading && T.value === s, ne = h(
120
- () => a.emptyStateVariant ?? (p.value ? "no-results" : "no-data")
121
- ), re = h(
122
- () => a.emptyStateSubtitle ? a.emptyStateSubtitle : p.value ? "Search again with different filters" : void 0
123
- ), O = h(() => ({
120
+ }, I = (s) => {
121
+ S("update:selection", s);
122
+ }, ce = (s) => !a.isLoading && H.value === s, ue = u(
123
+ () => a.emptyStateVariant ?? (v.value ? "no-results" : "no-data")
124
+ ), he = u(
125
+ () => a.emptyStateSubtitle ? a.emptyStateSubtitle : v.value ? "Search again with different filters" : void 0
126
+ ), N = u(() => ({
124
127
  class: {
125
128
  sticky: a.isSelectionSticky,
126
129
  bordered: a.isSelectionBordered
127
130
  },
128
- style: a.isSelectionSticky ? w.value[Te] : null
129
- })), ce = (s) => ({
131
+ style: a.isSelectionSticky ? E.value[Ie] : null
132
+ })), ye = (s) => ({
130
133
  sticky: s.isSticky,
131
134
  isStickyRight: s.isStickyRight,
132
135
  bordered: s.isBordered,
133
136
  isTextRight: s.isTextRight
134
- }), W = h(
135
- () => a.columns.map((s) => ce(s))
136
- ), ue = (s) => ({
137
+ }), Y = u(
138
+ () => a.columns.map((s) => ye(s))
139
+ ), fe = (s) => ({
137
140
  minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(s) : a.rowHeight) + "px"
138
- }), P = h(() => R.value.reduce((s, o) => (s[o.index] = ue(o.index), s), {}));
139
- return g({
140
- scrollTo: se
141
- }), (s, o) => (i(), d("div", {
142
- class: "table-container",
143
- "data-testid": `${l.testId}-${t($).CONTAINER}`,
144
- onMouseleave: o[3] || (o[3] = (e) => T.value = null)
145
- }, [
146
- m("table", {
147
- ref: t(X).ref,
148
- style: b(t(Z)),
149
- class: y({
150
- hasFooter: t(G)
151
- }),
152
- "data-testid": `${l.testId}-${t($).TABLE}`,
153
- onScrollPassive: o[2] || (o[2] = //@ts-ignore
154
- (...e) => t(K) && t(K)(...e))
155
- }, [
156
- t(le) ? (i(), L(t(ve), {
157
- key: 0,
158
- search: t(p),
159
- "onUpdate:search": o[0] || (o[0] = (e) => Se(p) ? p.value = e : null),
160
- title: l.title,
161
- "is-sticky": l.isStickyHeader,
162
- "show-search": l.showSearch,
163
- "search-placeholder": l.searchPlaceholder,
164
- "search-auto-focus": l.searchAutoFocus,
165
- "z-index-base": l.zIndexBase,
166
- "test-id": l.testId,
167
- onOnClearSearch: o[1] || (o[1] = (e) => f("onClearSearch"))
168
- }, ke({
169
- title: S(() => [
170
- r(s.$slots, "title")
171
- ]),
172
- search: S(() => [
173
- r(s.$slots, "search")
174
- ]),
175
- _: 2
176
- }, [
177
- t(v)["table-header-pre-search"] ? {
178
- name: "table-header-pre-search",
179
- fn: S(() => [
180
- r(s.$slots, "table-header-pre-search")
181
- ]),
182
- key: "0"
183
- } : void 0,
184
- t(v)["table-header-actions"] ? {
185
- name: "table-header-actions",
186
- fn: S(() => [
187
- r(s.$slots, "table-header-actions")
188
- ]),
189
- key: "1"
190
- } : void 0
191
- ]), 1032, ["search", "title", "is-sticky", "show-search", "search-placeholder", "search-auto-focus", "z-index-base", "test-id"])) : c("", !0),
192
- m("thead", {
193
- class: y({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
194
- }, [
195
- m("div", {
196
- class: "sections",
197
- "data-testid": `${l.testId}-${t($).SECTIONS}`
141
+ }), P = u(() => w.value.reduce((s, o) => (s[o.index] = fe(o.index), s), {})), { height: Se } = Pe(G.ref), ke = u(() => `${j}px`), ge = u(
142
+ () => Se.value - q - j
143
+ );
144
+ return p({
145
+ scrollTo: ie
146
+ }), (s, o) => (i(), C(Te, null, Q({
147
+ default: h(() => [
148
+ m("div", $({ class: "table-container" }, s.$attrs, {
149
+ "data-testid": `${l.testId}-${t(T).CONTAINER}`,
150
+ onMouseleave: o[3] || (o[3] = (e) => H.value = null)
151
+ }), [
152
+ m("table", {
153
+ ref: t(G).ref,
154
+ style: k(t(te)),
155
+ class: f({
156
+ hasFooter: t(W)
157
+ }),
158
+ "data-testid": `${l.testId}-${t(T).TABLE}`,
159
+ onScrollPassive: o[2] || (o[2] = //@ts-ignore
160
+ (...e) => t(K) && t(K)(...e))
198
161
  }, [
199
- (i(!0), d(C, null, x(l.sections, (e) => (i(), d("div", {
200
- key: e.id,
201
- class: y(["section-container", { sticky: e.isSticky }])
202
- }, [
203
- r(s.$slots, `section-${e.id}`, {}, () => [
204
- m("div", {
205
- style: b({ width: e.width + "px" }),
206
- class: y({ section: !0 })
207
- }, [
208
- k(t(M), { variant: "body2" }, {
209
- default: S(() => [
210
- V(z(e.title), 1)
211
- ]),
212
- _: 2
213
- }, 1024)
214
- ], 4)
215
- ])
216
- ], 2))), 128))
217
- ], 8, He),
218
- m("tr", null, [
219
- t(F) ? (i(), d("th", I({
162
+ t(oe) ? (i(), C(t(Re), {
220
163
  key: 0,
221
- class: "checkbox-cell"
222
- }, t(O)), [
223
- r(s.$slots, "select-all-checkbox", {}, () => [
224
- k(t(Y), {
225
- disabled: l.isLoading,
226
- "is-checked": t(N),
227
- "is-indeterminate": !t(N) && t(ae) > 0,
228
- "onUpdate:isChecked": oe
229
- }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
230
- ])
231
- ], 16)) : c("", !0),
232
- t(B) ? (i(), d("th", Ee)) : c("", !0),
233
- (i(!0), d(C, null, x(l.columns, (e, u) => (i(), d("th", {
234
- key: e.id,
235
- class: y({
236
- ...t(W)[u],
237
- isSortable: e.isSortable,
238
- [`column-${e.id}`]: !0
239
- }),
240
- style: b(e.isSticky ? t(w)[e.id] : null),
241
- onClick: (n) => e.isSortable ? t(q)(e) : null
164
+ search: t(v),
165
+ "onUpdate:search": o[0] || (o[0] = (e) => ve(v) ? v.value = e : null),
166
+ title: l.title,
167
+ "is-sticky": l.isStickyHeader,
168
+ "show-search": l.showSearch,
169
+ "search-placeholder": l.searchPlaceholder,
170
+ "search-auto-focus": l.searchAutoFocus,
171
+ "z-index-base": l.zIndexBase,
172
+ "test-id": l.testId,
173
+ onOnClearSearch: o[1] || (o[1] = (e) => S("onClearSearch"))
174
+ }, Q({
175
+ title: h(() => [
176
+ n(s.$slots, "title")
177
+ ]),
178
+ search: h(() => [
179
+ n(s.$slots, "search")
180
+ ]),
181
+ _: 2
242
182
  }, [
243
- m("div", Le, [
244
- r(s.$slots, `header-${e.id}`, { column: e }, () => [
245
- k(t(be), {
246
- text: e.helpText,
247
- disabled: !e.helpText || l.helpTooltipVariant === "icon",
248
- placement: e.helpTextPlacement || "top",
249
- "test-id": `help-tooltip-underlined-${e.id}`
250
- }, {
251
- default: S(() => [
252
- k(t(M), {
253
- variant: "tableLabel",
254
- class: y({
255
- underlined: e.helpText && l.helpTooltipVariant === "underline"
256
- })
257
- }, {
258
- default: S(() => [
259
- V(z(e.title), 1)
260
- ]),
261
- _: 2
262
- }, 1032, ["class"])
263
- ]),
264
- _: 2
265
- }, 1032, ["text", "disabled", "placement", "test-id"])
183
+ t(b)["table-header-pre-search"] ? {
184
+ name: "table-header-pre-search",
185
+ fn: h(() => [
186
+ n(s.$slots, "table-header-pre-search")
266
187
  ]),
267
- e.helpText && l.helpTooltipVariant === "icon" ? (i(), L(xe, {
268
- key: 0,
269
- "hover-help-text": e.helpText,
270
- "hover-help-text-placement": e.helpTextPlacement,
271
- "test-id": `help-tooltip-${e.id}`
272
- }, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : c("", !0),
273
- r(s.$slots, `after-header-${e.id}`, { column: e }),
274
- e.isSortable && e.id === l.sort?.sortBy ? (i(), L(Ce, {
275
- key: 1,
276
- "sort-order": l.sort.sortOrder
277
- }, null, 8, ["sort-order"])) : c("", !0)
278
- ])
279
- ], 14, Pe))), 128))
280
- ]),
281
- l.showTotalsRow && t(R).length > 0 ? (i(), d("tr", Ve, [
282
- t(F) ? (i(), d("td", I({
283
- key: 0,
284
- class: "bg"
285
- }, t(O)), null, 16)) : c("", !0),
286
- (i(!0), d(C, null, x(l.columns, (e, u) => (i(), d("td", {
287
- key: e.id,
288
- class: y({
289
- ...t(W)[u],
290
- [`total-${e.id}`]: !0
291
- }),
292
- style: b(e.isSticky ? t(w)[e.id] : null)
293
- }, [
294
- r(s.$slots, `total-${e.id}`, { column: e }, () => [
295
- u === 0 ? (i(), L(t(M), {
296
- key: 0,
297
- variant: "h6"
298
- }, {
299
- default: S(() => [
300
- V("Totals")
301
- ]),
302
- _: 1
303
- })) : c("", !0)
304
- ])
305
- ], 6))), 128))
306
- ])) : c("", !0)
307
- ], 2),
308
- m("tbody", null, [
309
- t(R).length > 0 ? (i(), d("div", I({
310
- key: 0,
311
- class: "table-body-wrapper",
312
- "data-testid": `${l.testId}-${t($).BODY_WRAPPER}`
313
- }, t(j)), [
314
- (i(!0), d(C, null, x(t(R), (e) => (i(), d("tr", {
315
- key: l.getRowKey(e.data, e.index),
316
- class: y(["table-row", {
317
- loading: l.isLoading || l.isLoading && !e.data || t(U).includes(e.index),
318
- active: t(T) === e.index,
319
- activeMenu: t(te) === e.index,
320
- expanded: t(B) && t(A)(e.index),
321
- [Q(e.index)]: !0
322
- }]),
323
- style: b(t(P)[e.index]),
324
- onMouseenter: (u) => T.value = e.index,
325
- onClick: (u) => f("clickRow", e.index)
188
+ key: "0"
189
+ } : void 0,
190
+ t(b)["table-header-actions"] ? {
191
+ name: "table-header-actions",
192
+ fn: h(() => [
193
+ n(s.$slots, "table-header-actions")
194
+ ]),
195
+ key: "1"
196
+ } : void 0
197
+ ]), 1032, ["search", "title", "is-sticky", "show-search", "search-placeholder", "search-auto-focus", "z-index-base", "test-id"])) : c("", !0),
198
+ m("thead", {
199
+ class: f({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
326
200
  }, [
327
- t(F) ? (i(), d("td", I({
328
- key: 0,
329
- class: "checkbox-cell"
330
- }, t(O), {
331
- style: t(P)[e.index]
332
- }), [
333
- k(t(Y), {
334
- "is-checked": H(l.getRowId(e.data, e.index)),
335
- "onUpdate:isChecked": (u) => ie(l.getRowId(e.data, e.index))
336
- }, null, 8, ["is-checked", "onUpdate:isChecked"])
337
- ], 16)) : c("", !0),
338
- t(B) ? (i(), d("td", {
339
- key: 1,
340
- class: "expand-toggle-cell",
341
- style: b(t(P)[e.index])
201
+ m("div", {
202
+ class: "sections",
203
+ "data-testid": `${l.testId}-${t(T).SECTIONS}`
342
204
  }, [
343
- k($e, {
344
- expanded: t(A)(e.index),
345
- onClick: (u) => t(_)(e.index, u)
346
- }, null, 8, ["expanded", "onClick"])
347
- ], 4)) : c("", !0),
348
- (i(!0), d(C, null, x(l.columns, (u, n) => (i(), d("td", {
349
- key: n,
350
- class: y({
351
- sticky: l.columns[n].isSticky,
352
- isStickyRight: l.columns[n].isStickyRight,
353
- bordered: l.columns[n].isBordered,
354
- isTextRight: l.columns[n].isTextRight,
355
- [`column-${l.columns[n].id}`]: !0
356
- }),
357
- style: b([
358
- l.columns[n].isSticky ? t(w)[l.columns[n].id] : null,
359
- t(P)[e.index]
360
- ])
205
+ (i(!0), d(x, null, R(l.sections, (e) => (i(), d("div", {
206
+ key: e.id,
207
+ class: f(["section-container", { sticky: e.isSticky }])
208
+ }, [
209
+ n(s.$slots, `section-${e.id}`, {}, () => [
210
+ m("div", {
211
+ style: k({ width: e.width + "px" }),
212
+ class: f({ section: !0 })
213
+ }, [
214
+ g(t(V), { variant: "body2" }, {
215
+ default: h(() => [
216
+ L(O(e.title), 1)
217
+ ]),
218
+ _: 2
219
+ }, 1024)
220
+ ], 4)
221
+ ])
222
+ ], 2))), 128))
223
+ ], 8, De),
224
+ m("tr", {
225
+ style: k({ height: `${t(q)}px` })
361
226
  }, [
362
- !l.isLoading || l.isLoading && e.data[n] ? (i(), d("div", {
227
+ t(M) ? (i(), d("th", $({
228
+ key: 0,
229
+ class: "checkbox-cell"
230
+ }, t(N)), [
231
+ n(s.$slots, "select-all-checkbox", {}, () => [
232
+ g(t(X), {
233
+ disabled: l.isLoading,
234
+ "is-checked": t(F),
235
+ "is-indeterminate": !t(F) && t(de) > 0,
236
+ "onUpdate:isChecked": re
237
+ }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
238
+ ])
239
+ ], 16)) : c("", !0),
240
+ t(B) ? (i(), d("th", Me)) : c("", !0),
241
+ (i(!0), d(x, null, R(l.columns, (e, y) => (i(), d("th", {
242
+ key: e.id,
243
+ class: f({
244
+ ...t(Y)[y],
245
+ isSortable: e.isSortable,
246
+ [`column-${e.id}`]: !0
247
+ }),
248
+ style: k(
249
+ e.isSticky ? t(E)[e.id] : null
250
+ ),
251
+ onClick: (r) => e.isSortable ? t(_)(e) : null
252
+ }, [
253
+ m("div", Ne, [
254
+ n(s.$slots, `header-${e.id}`, { column: e }, () => [
255
+ g(t(xe), {
256
+ text: e.helpText,
257
+ disabled: !e.helpText || l.helpTooltipVariant === "icon",
258
+ placement: e.helpTextPlacement || "top",
259
+ "test-id": `help-tooltip-underlined-${e.id}`
260
+ }, {
261
+ default: h(() => [
262
+ g(t(V), {
263
+ variant: "tableLabel",
264
+ class: f({
265
+ underlined: e.helpText && l.helpTooltipVariant === "underline"
266
+ })
267
+ }, {
268
+ default: h(() => [
269
+ L(O(e.title), 1)
270
+ ]),
271
+ _: 2
272
+ }, 1032, ["class"])
273
+ ]),
274
+ _: 2
275
+ }, 1032, ["text", "disabled", "placement", "test-id"])
276
+ ]),
277
+ e.helpText && l.helpTooltipVariant === "icon" ? (i(), C(Ee, {
278
+ key: 0,
279
+ "hover-help-text": e.helpText,
280
+ "hover-help-text-placement": e.helpTextPlacement,
281
+ "test-id": `help-tooltip-${e.id}`
282
+ }, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : c("", !0),
283
+ n(s.$slots, `after-header-${e.id}`, { column: e }),
284
+ e.isSortable && e.id === l.sort?.sortBy ? (i(), C(He, {
285
+ key: 1,
286
+ "sort-order": l.sort.sortOrder
287
+ }, null, 8, ["sort-order"])) : c("", !0)
288
+ ])
289
+ ], 14, Fe))), 128))
290
+ ], 4),
291
+ l.showTotalsRow && t(w).length > 0 ? (i(), d("tr", Oe, [
292
+ t(M) ? (i(), d("td", $({
363
293
  key: 0,
364
- class: y(["table-cell", { last: n === e.data.length - 1 }])
294
+ class: "bg"
295
+ }, t(N)), null, 16)) : c("", !0),
296
+ (i(!0), d(x, null, R(l.columns, (e, y) => (i(), d("td", {
297
+ key: e.id,
298
+ class: f({
299
+ ...t(Y)[y],
300
+ [`total-${e.id}`]: !0
301
+ }),
302
+ style: k(
303
+ e.isSticky ? t(E)[e.id] : null
304
+ )
365
305
  }, [
366
- r(s.$slots, `cell-${l.columns[n].id}`, {
367
- cell: e.data[n],
368
- isLoading: t(U).includes(e.index),
369
- cellIndex: n,
370
- row: e,
371
- rowIndex: e.index
372
- }, () => [
373
- k(t(M), { variant: "body1" }, {
374
- default: S(() => [
375
- V(z(e.data[n]), 1)
306
+ n(s.$slots, `total-${e.id}`, { column: e }, () => [
307
+ y === 0 ? (i(), C(t(V), {
308
+ key: 0,
309
+ variant: "h6"
310
+ }, {
311
+ default: h(() => [
312
+ L("Totals")
376
313
  ]),
377
- _: 2
378
- }, 1024)
314
+ _: 1
315
+ })) : c("", !0)
379
316
  ])
380
- ], 2)) : r(s.$slots, "loader", { key: 1 }, () => [
381
- k(t(ge), { round: "" })
382
- ])
383
- ], 6))), 128)),
384
- t(B) && t(A)(e.index) ? (i(), d("div", Ae, [
385
- r(s.$slots, "expanded", {
386
- row: e,
387
- gridColumnTemplate: t(D)
388
- })
389
- ])) : c("", !0),
390
- de(e.index) ? (i(), d("div", Fe, [
391
- r(s.$slots, "floating-row", {
392
- row: e,
393
- rowIndex: e.index
394
- })
317
+ ], 6))), 128))
395
318
  ])) : c("", !0)
396
- ], 46, Me))), 128))
397
- ], 16, Ie)) : (i(), d("div", Ne, [
398
- r(s.$slots, "empty-state", {}, () => [
399
- k(t(me), {
400
- class: "empty-state",
401
- title: l.emptyStateTitle,
402
- subtitle: t(re),
403
- variant: t(ne),
404
- "icon-name": "file-search",
405
- "test-id": `${l.testId}-${t($).EMPTY_STATE}`
406
- }, null, 8, ["title", "subtitle", "variant", "test-id"])
319
+ ], 2),
320
+ m("tbody", null, [
321
+ t(w).length > 0 ? (i(), d("div", $({
322
+ key: 0,
323
+ class: "table-body-wrapper",
324
+ "data-testid": `${l.testId}-${t(T).BODY_WRAPPER}`
325
+ }, t(Z)), [
326
+ (i(!0), d(x, null, R(t(w), (e) => (i(), d("tr", {
327
+ key: l.getRowKey(e.data, e.index),
328
+ class: f(["table-row", {
329
+ loading: l.isLoading || l.isLoading && !e.data || t(U).includes(e.index),
330
+ active: t(H) === e.index,
331
+ activeMenu: t(ae) === e.index,
332
+ expanded: t(B) && t(D)(e.index),
333
+ [J(e.index)]: !0
334
+ }]),
335
+ style: k(t(P)[e.index]),
336
+ onMouseenter: (y) => H.value = e.index,
337
+ onClick: (y) => S("clickRow", e.index)
338
+ }, [
339
+ t(M) ? (i(), d("td", $({
340
+ key: 0,
341
+ class: "checkbox-cell"
342
+ }, t(N), {
343
+ style: t(P)[e.index]
344
+ }), [
345
+ g(t(X), {
346
+ "is-checked": A(l.getRowId(e.data, e.index)),
347
+ "onUpdate:isChecked": (y) => ne(l.getRowId(e.data, e.index))
348
+ }, null, 8, ["is-checked", "onUpdate:isChecked"])
349
+ ], 16)) : c("", !0),
350
+ t(B) ? (i(), d("td", {
351
+ key: 1,
352
+ class: "expand-toggle-cell",
353
+ style: k(t(P)[e.index])
354
+ }, [
355
+ g(Be, {
356
+ expanded: t(D)(e.index),
357
+ onClick: (y) => t(se)(e.index, y)
358
+ }, null, 8, ["expanded", "onClick"])
359
+ ], 4)) : c("", !0),
360
+ (i(!0), d(x, null, R(l.columns, (y, r) => (i(), d("td", {
361
+ key: r,
362
+ class: f({
363
+ sticky: l.columns[r].isSticky,
364
+ isStickyRight: l.columns[r].isStickyRight,
365
+ bordered: l.columns[r].isBordered,
366
+ isTextRight: l.columns[r].isTextRight,
367
+ [`column-${l.columns[r].id}`]: !0
368
+ }),
369
+ style: k([
370
+ l.columns[r].isSticky ? t(E)[l.columns[r].id] : null,
371
+ t(P)[e.index]
372
+ ])
373
+ }, [
374
+ !l.isLoading || l.isLoading && e.data[r] ? (i(), d("div", {
375
+ key: 0,
376
+ class: f(["table-cell", { last: r === e.data.length - 1 }])
377
+ }, [
378
+ n(s.$slots, `cell-${l.columns[r].id}`, {
379
+ cell: e.data[r],
380
+ isLoading: t(U).includes(e.index),
381
+ cellIndex: r,
382
+ row: e,
383
+ rowIndex: e.index
384
+ }, () => [
385
+ g(t(V), { variant: "body1" }, {
386
+ default: h(() => [
387
+ L(O(e.data[r]), 1)
388
+ ]),
389
+ _: 2
390
+ }, 1024)
391
+ ])
392
+ ], 2)) : n(s.$slots, "loader", { key: 1 }, () => [
393
+ g(t(Ce), { round: "" })
394
+ ])
395
+ ], 6))), 128)),
396
+ t(B) && t(D)(e.index) ? (i(), d("div", Ke, [
397
+ n(s.$slots, "expanded", {
398
+ row: e,
399
+ gridColumnTemplate: t(z)
400
+ })
401
+ ])) : c("", !0),
402
+ ce(e.index) ? (i(), d("div", Ue, [
403
+ n(s.$slots, "floating-row", {
404
+ row: e,
405
+ rowIndex: e.index
406
+ })
407
+ ])) : c("", !0)
408
+ ], 46, ze))), 128))
409
+ ], 16, Ge)) : (i(), d("div", {
410
+ key: 1,
411
+ class: "empty-state-container",
412
+ style: k({ height: `${t(ge)}px` })
413
+ }, [
414
+ n(s.$slots, "empty-state", {}, () => [
415
+ g(t($e), {
416
+ class: "empty-state",
417
+ title: l.emptyStateTitle,
418
+ subtitle: t(he),
419
+ variant: t(ue),
420
+ "icon-name": "file-search",
421
+ "test-id": `${l.testId}-${t(T).EMPTY_STATE}`
422
+ }, null, 8, ["title", "subtitle", "variant", "test-id"])
423
+ ])
424
+ ], 4))
407
425
  ])
408
- ]))
409
- ])
410
- ], 46, Be),
411
- t(G) ? (i(), d("div", Oe, [
412
- r(s.$slots, "footer")
413
- ])) : c("", !0)
414
- ], 40, we));
426
+ ], 46, Ve),
427
+ t(W) ? (i(), d("div", We, [
428
+ n(s.$slots, "footer")
429
+ ])) : c("", !0)
430
+ ], 16, Le)
431
+ ]),
432
+ _: 2
433
+ }, [
434
+ t(b)["side-panel"] ? {
435
+ name: "side-panel",
436
+ fn: h(() => [
437
+ n(s.$slots, "side-panel")
438
+ ]),
439
+ key: "0"
440
+ } : void 0
441
+ ]), 1024));
415
442
  }
416
443
  });
417
444
  export {
418
- lt as default
445
+ ut as default
419
446
  };