@ironsource/shared-ui 2.1.12-rc.2 → 2.1.12-rc.21

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 (183) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_0123c361_lang.css +1 -0
  2. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_0198fee8_lang.css +1 -0
  3. package/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +1 -0
  4. package/Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css +1 -0
  5. package/ChartHeader.vue_vue_type_style_index_0_scoped_da34b108_lang.css +1 -0
  6. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_79dc2883_lang.css +1 -0
  7. package/ChartLegend.vue_vue_type_style_index_0_scoped_fd9e4ea2_lang.css +1 -0
  8. package/ChartPlane.vue_vue_type_style_index_0_scoped_903fc6ae_lang.css +1 -0
  9. package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +1 -0
  10. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8d5521da_lang.css +1 -0
  11. package/DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_lang.css +1 -0
  12. package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +1 -0
  13. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +1 -0
  14. package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +1 -0
  15. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
  16. package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
  17. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
  18. package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +1 -0
  19. package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
  20. package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
  21. package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
  22. package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +1 -0
  23. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +1 -0
  24. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +1 -0
  25. package/components/appIcon/index.d.ts +3 -3
  26. package/components/banner/Banner.vue.d.ts +3 -3
  27. package/components/banner/index.d.ts +7 -7
  28. package/components/button/common/consts.d.ts +1 -0
  29. package/components/button/v3/Button.vue.d.ts +3 -3
  30. package/components/button/v3/ButtonBase.vue.d.ts +3 -3
  31. package/components/button/v3/IconButton.vue.d.ts +3 -3
  32. package/components/button/v3/index.d.ts +14 -14
  33. package/components/button/v4/ButtonV4.vue.d.ts +4 -3
  34. package/components/button/v4/ButtonV4.vue.js +3 -3
  35. package/components/button/v4/ButtonV4.vue2.js +1 -1
  36. package/components/chart/Chart.vue.d.ts +149 -38
  37. package/components/chart/Chart.vue.js +3 -3
  38. package/components/chart/Chart.vue2.js +146 -297
  39. package/components/chart/ChartHeader.vue.d.ts +45 -11
  40. package/components/chart/ChartHeader.vue.js +3 -3
  41. package/components/chart/ChartHeader.vue2.js +64 -53
  42. package/components/chart/ChartHeaderTrend.vue.d.ts +48 -0
  43. package/components/chart/ChartHeaderTrend.vue.js +7 -0
  44. package/components/chart/ChartHeaderTrend.vue2.js +95 -0
  45. package/components/chart/ChartLegend.vue.d.ts +24 -0
  46. package/components/chart/ChartLegend.vue.js +3 -3
  47. package/components/chart/ChartLegend.vue2.js +82 -63
  48. package/components/chart/ChartPlane.vue.d.ts +221 -0
  49. package/components/chart/ChartPlane.vue.js +7 -0
  50. package/components/chart/ChartPlane.vue2.js +368 -0
  51. package/components/chart/ChartStoryArgs.d.ts +179 -0
  52. package/components/chart/ChartTooltip.vue.d.ts +22 -2
  53. package/components/chart/ChartTooltip.vue.js +2 -2
  54. package/components/chart/ChartTooltip.vue2.js +50 -55
  55. package/components/chart/LegendSorting.vue.d.ts +37 -0
  56. package/components/chart/LegendSorting.vue.js +45 -0
  57. package/components/chart/LegendSorting.vue2.js +4 -0
  58. package/components/chart/SettingsHeader.vue.d.ts +1 -0
  59. package/components/chart/SettingsHeader.vue.js +3 -3
  60. package/components/chart/SettingsHeader.vue2.js +17 -16
  61. package/components/chart/SubHeader.vue.d.ts +52 -0
  62. package/components/chart/SubHeader.vue.js +7 -0
  63. package/components/chart/SubHeader.vue2.js +61 -0
  64. package/components/chart/TooltipHeader.vue.d.ts +50 -0
  65. package/components/chart/TooltipHeader.vue.js +7 -0
  66. package/components/chart/TooltipHeader.vue2.js +69 -0
  67. package/components/chart/colorPalette.d.ts +4 -0
  68. package/components/chart/colorPalette.js +54 -0
  69. package/components/chart/composables/useChartHeight.d.ts +5 -0
  70. package/components/chart/composables/useChartHeight.js +24 -0
  71. package/components/chart/composables/useColorsMap.d.ts +10 -0
  72. package/components/chart/composables/useColorsMap.js +46 -0
  73. package/components/chart/composables/useTooltipPosition.d.ts +1 -1
  74. package/components/chart/composables/useTooltipPosition.js +11 -15
  75. package/components/chart/consts.d.ts +29 -7
  76. package/components/chart/consts.js +41 -21
  77. package/components/chart/index.d.ts +515 -118
  78. package/components/chart/mockData.d.ts +44 -5
  79. package/components/chart/types.d.ts +37 -6
  80. package/components/chart/types.js +5 -2
  81. package/components/chart/utils/formatNumber.d.ts +0 -1
  82. package/components/chart/utils/highlightUtils.d.ts +3 -0
  83. package/components/chart/utils/highlightUtils.js +18 -0
  84. package/components/chart/utils/utils.d.ts +3 -2
  85. package/components/chart/utils/utils.js +23 -8
  86. package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
  87. package/components/checkbox/v3/index.d.ts +7 -7
  88. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  89. package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
  90. package/components/dialog/v4/DialogV4.vue.d.ts +4 -3
  91. package/components/dialog/v4/DialogV4.vue.js +4 -4
  92. package/components/dialog/v4/DialogV4.vue2.js +1 -1
  93. package/components/dialog/v4/index.d.ts +7 -7
  94. package/components/dropdown/common/Dropdown.common.js +92 -85
  95. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
  96. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +1 -1
  97. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  98. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +1 -1
  99. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  100. package/components/dropdown/v4/ConditionalDropdown.vue2.js +76 -76
  101. package/components/dropdown/v4/DropdownV4.vue.d.ts +8 -0
  102. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  103. package/components/dropdown/v4/DropdownV4.vue2.js +105 -95
  104. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
  105. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
  106. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
  107. package/components/dropdown/v4/OptionV4.vue.d.ts +8 -0
  108. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  109. package/components/dropdown/v4/OptionV4.vue2.js +91 -69
  110. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  111. package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
  112. package/components/dropdown/v4/index.d.ts +64 -2
  113. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
  114. package/components/emptyState/v4/index.d.ts +7 -7
  115. package/components/forms/FormRow.vue.d.ts +9 -2
  116. package/components/forms/FormRow.vue.js +3 -3
  117. package/components/forms/FormRow.vue2.js +25 -14
  118. package/components/forms/index.d.ts +25 -5
  119. package/components/search/v3/index.d.ts +3 -3
  120. package/components/shared/FieldLabel.vue.d.ts +19 -7
  121. package/components/shared/FieldLabel.vue.js +3 -3
  122. package/components/shared/FieldLabel.vue2.js +50 -37
  123. package/components/table/v4/DataGrid.vue.d.ts +4 -3
  124. package/components/table/v4/DataGrid.vue.js +4 -4
  125. package/components/table/v4/DataGrid.vue2.js +151 -142
  126. package/components/table/v4/MultipleDataGrid.vue.d.ts +3 -3
  127. package/components/table/v4/index.d.ts +15 -14
  128. package/components/tabs/v3/Tabs.vue.d.ts +3 -3
  129. package/components/tabs/v3/index.d.ts +7 -7
  130. package/components/tooltip/common/Tooltip.types.d.ts +1 -0
  131. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  132. package/components/tooltip/v3/Tooltip.vue.js +2 -2
  133. package/components/tooltip/v3/Tooltip.vue2.js +1 -1
  134. package/components/tooltip/v3/index.d.ts +7 -7
  135. package/components/tooltip/v4/TooltipV4.vue.d.ts +4 -4
  136. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  137. package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
  138. package/components/tooltip/v4/index.d.ts +7 -7
  139. package/components/typography/Text.vue.d.ts +3 -3
  140. package/components/typography/index.d.ts +7 -7
  141. package/composables/useFormValidation.d.ts +1 -0
  142. package/composables/useFormValidation.js +32 -27
  143. package/composables/useFullPageHeight.d.ts +10 -0
  144. package/composables/useFullPageHeight.js +15 -0
  145. package/consts/common.d.ts +1 -0
  146. package/consts/common.js +4 -0
  147. package/consts/regex.d.ts +1 -0
  148. package/consts/regex.js +2 -1
  149. package/index.d.ts +211 -81
  150. package/index.js +106 -100
  151. package/package.json +1 -1
  152. package/testids/index.d.ts +2 -1
  153. package/testids/index.js +10 -10
  154. package/utils/formatNumbers.d.ts +1 -1
  155. package/utils/formatNumbers.js +19 -6
  156. package/utils/index.js +7 -0
  157. package/utils/text.d.ts +3 -0
  158. package/utils/text.js +24 -5
  159. package/utils/totals.d.ts +5 -0
  160. package/utils/totals.js +9 -0
  161. package/utils/utils.d.ts +1 -0
  162. package/utils/utils.js +4 -0
  163. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
  164. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +0 -1
  165. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
  166. package/Chart.vue_vue_type_style_index_0_scoped_a641383a_lang.css +0 -1
  167. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +0 -1
  168. package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +0 -1
  169. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +0 -1
  170. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_3a2aeea3_lang.css +0 -1
  171. package/DataGrid.vue_vue_type_style_index_0_scoped_020072b0_lang.css +0 -1
  172. package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +0 -1
  173. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
  174. package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
  175. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
  176. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
  177. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
  178. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
  179. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
  180. package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
  181. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
  182. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
  183. package/components/chart/utils/formatNumber.js +0 -11
@@ -1,32 +1,32 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_020072b0_lang.css"; import { defineComponent as ne, useCssVars as ce, unref as t, useSlots as re, computed as g, openBlock as i, createElementBlock as o, createElementVNode as u, normalizeStyle as T, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as w, createTextVNode as B, toDisplayString as E, isRef as ue, createCommentVNode as r, Fragment as I, renderList as p, mergeProps as V, createBlock as z } from "vue";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_lang.css"; import { defineComponent as ce, useCssVars as re, unref as t, useSlots as ue, computed as m, openBlock as i, createElementBlock as d, createElementVNode as u, normalizeStyle as T, normalizeClass as S, renderSlot as c, createVNode as h, withCtx as w, createTextVNode as E, toDisplayString as B, createCommentVNode as r, isRef as he, Fragment as p, renderList as I, mergeProps as M, createBlock as z } from "vue";
2
2
  import A from "../../typography/v4/Typography.vue.js";
3
- import he from "../../skeleton/v4/SkeletonV4.vue.js";
4
- import ye from "../../emptyState/v4/EmptyStateV4.vue.js";
3
+ import ye from "../../skeleton/v4/SkeletonV4.vue.js";
4
+ import fe from "../../emptyState/v4/EmptyStateV4.vue.js";
5
5
  import G from "../../checkbox/v4/CheckboxV4.vue.js";
6
- import { TableTestIdModifiers as S } from "../../../testids/index.js";
7
- import { tableCommon as fe } from "../common/Table.common.js";
8
- import Se from "./SortIcon.vue.js";
9
- import ke from "./HelpIcon.vue.js";
10
- import me from "./ExpandRowToggle.vue.js";
11
- import ge from "../../search/v4/SearchV4.vue.js";
12
- import { useVModel as ve } from "@vueuse/core";
13
- import { CHECKBOX_COLUMN_ID as be } from "../common/consts.js";
14
- const Ce = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = ["data-testid"], Te = ["data-testid"], we = { class: "search-wrapper" }, Be = ["data-testid"], Ee = ["data-testid"], Ie = {
6
+ import { TableTestIdModifiers as y } from "../../../testids/index.js";
7
+ import { tableCommon as Se } from "../common/Table.common.js";
8
+ import ke from "./SortIcon.vue.js";
9
+ import me from "./HelpIcon.vue.js";
10
+ import ge from "./ExpandRowToggle.vue.js";
11
+ import ve from "../../search/v4/SearchV4.vue.js";
12
+ import { useVModel as be } from "@vueuse/core";
13
+ import { CHECKBOX_COLUMN_ID as $e } from "../common/consts.js";
14
+ const Re = ["data-testid"], Ce = ["data-testid"], xe = ["data-testid"], Te = ["data-testid"], we = ["data-testid"], Ee = ["data-testid"], Be = { class: "search-wrapper" }, pe = ["data-testid"], Ie = ["data-testid"], Ae = {
15
15
  key: 1,
16
16
  class: "expand-toggle-cell"
17
- }, pe = ["onClick"], Ae = { class: "table-head-container" }, Le = ["data-testid"], Me = ["onMouseenter", "onClick"], Pe = {
17
+ }, He = ["onClick"], Pe = { class: "table-head-container" }, Le = ["data-testid"], Me = ["onMouseenter", "onClick"], Ve = {
18
18
  key: 1,
19
19
  class: "expand-toggle-cell"
20
- }, Ve = {
20
+ }, Ne = {
21
21
  key: 2,
22
22
  class: "expanded-row"
23
- }, He = {
23
+ }, Fe = {
24
24
  key: 3,
25
25
  class: "floating-row"
26
- }, Ne = { key: 1 }, Fe = {
26
+ }, Oe = { key: 1 }, De = {
27
27
  key: 0,
28
28
  class: "table-footer"
29
- }, Ze = /* @__PURE__ */ ne({
29
+ }, et = /* @__PURE__ */ ce({
30
30
  __name: "DataGrid",
31
31
  props: {
32
32
  title: { default: "" },
@@ -61,167 +61,176 @@ const Ce = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = ["d
61
61
  isSelectionBordered: { type: Boolean, default: !1 }
62
62
  },
63
63
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
64
- setup(s, { expose: k, emit: y }) {
65
- const a = s;
66
- ce((l) => ({
67
- "213d426c": s.zIndexBase,
68
- "1bb95c84": t(_),
69
- "833c2592": t(N),
70
- d3eb9802: t(Z)
64
+ setup(s, { expose: k, emit: f }) {
65
+ const l = s;
66
+ re((a) => ({
67
+ "1d1d1477": s.zIndexBase,
68
+ "2f1951ab": t(_),
69
+ d450b438: t(N),
70
+ "43af326c": t(Z)
71
71
  }));
72
- const b = re(), Y = (l) => a.rowCustomClassKey && a.rows[l] ? a.rows[l][a.rowCustomClassKey] : "", {
73
- list: H,
72
+ const g = ue(), Y = (a) => l.rowCustomClassKey && l.rows[a] ? l.rows[a][l.rowCustomClassKey] : "", {
73
+ list: V,
74
74
  containerProps: Q,
75
75
  wrapperProps: W,
76
- activeRow: C,
76
+ activeRow: $,
77
77
  gridColumnTemplate: N,
78
78
  toggleSortOrder: X,
79
- columnsStickyPositions: L,
79
+ columnsStickyPositions: H,
80
80
  hasSearchSlot: j,
81
81
  containerStyle: q,
82
82
  onScroll: F,
83
83
  savingRows: O,
84
- hasExpandSlot: $,
84
+ hasExpandSlot: R,
85
85
  toggleExpandRow: J,
86
86
  cssRowHeight: Z,
87
87
  cssExpandGridCol: _,
88
- isRowExpanded: M,
88
+ isRowExpanded: P,
89
89
  hasCheckboxes: D,
90
90
  activeMenuRow: ee,
91
91
  scrollTo: te
92
- } = fe(a, y), K = g(() => !!b.footer), v = ve(a, "search", y), se = g(() => a.selection.length || 0), P = g(() => {
93
- const l = a.rows.map((d, e) => a.getRowId(d, e));
94
- return !!l.length && l.every((d) => R(d));
95
- }), R = (l) => a.selection.findIndex((d) => a.selectedMatcher(l, d)) !== -1, le = (l) => {
96
- R(l) ? (x(
97
- a.selection.filter(
98
- (d) => !a.selectedMatcher(l, d)
92
+ } = Se(l, f), K = m(() => !!g.footer), se = m(
93
+ () => l.title || g.title || j.value || g["table-header-actions"] || g["table-header-pre-search"]
94
+ ), b = be(l, "search", f), ae = m(() => l.selection.length || 0), L = m(() => {
95
+ const a = l.rows.map((o, e) => l.getRowId(o, e));
96
+ return !!a.length && a.every((o) => C(o));
97
+ }), C = (a) => l.selection.findIndex((o) => l.selectedMatcher(a, o)) !== -1, le = (a) => {
98
+ C(a) ? (x(
99
+ l.selection.filter(
100
+ (o) => !l.selectedMatcher(a, o)
99
101
  )
100
- ), y("selectRow", !1)) : (x([...a.selection, l]), y("selectRow", !0));
101
- }, ae = () => {
102
- if (P.value)
103
- x([]), y("selectAll", !1);
102
+ ), f("selectRow", !1)) : (x([...l.selection, a]), f("selectRow", !0));
103
+ }, ie = () => {
104
+ if (L.value)
105
+ x([]), f("selectAll", !1);
104
106
  else {
105
- const l = a.rows.map((d, e) => a.getRowId(d, e)).filter((d) => !R(d));
106
- x([...a.selection, ...l]), y("selectAll", !0);
107
+ const a = l.rows.map((o, e) => l.getRowId(o, e)).filter((o) => !C(o));
108
+ x([...l.selection, ...a]), f("selectAll", !0);
107
109
  }
108
- }, x = (l) => {
109
- y("update:selection", l);
110
- }, ie = (l) => !a.isLoading && C.value === l, oe = g(
111
- () => a.emptyStateVariant ?? (v.value ? "no-results" : "no-data")
112
- ), de = g(
113
- () => a.emptyStateSubtitle ? a.emptyStateSubtitle : v.value ? "Search again with different filters" : void 0
114
- ), U = g(() => ({
110
+ }, x = (a) => {
111
+ f("update:selection", a);
112
+ }, de = (a) => !l.isLoading && $.value === a, oe = m(
113
+ () => l.emptyStateVariant ?? (b.value ? "no-results" : "no-data")
114
+ ), ne = m(
115
+ () => l.emptyStateSubtitle ? l.emptyStateSubtitle : b.value ? "Search again with different filters" : void 0
116
+ ), U = m(() => ({
115
117
  class: {
116
- sticky: a.isSelectionSticky,
117
- bordered: a.isSelectionBordered
118
+ sticky: l.isSelectionSticky,
119
+ bordered: l.isSelectionBordered
118
120
  },
119
- style: a.isSelectionSticky ? L.value[be] : null
121
+ style: l.isSelectionSticky ? H.value[$e] : null
120
122
  }));
121
123
  return k({
122
124
  scrollTo: te
123
- }), (l, d) => (i(), o("div", {
125
+ }), (a, o) => (i(), d("div", {
124
126
  class: "table-container",
125
- "data-testid": `${s.testId}-${t(S).CONTAINER}`,
126
- onMouseleave: d[3] || (d[3] = (e) => C.value = null)
127
+ "data-testid": `${s.testId}-${t(y).CONTAINER}`,
128
+ onMouseleave: o[3] || (o[3] = (e) => $.value = null)
127
129
  }, [
128
130
  u("table", {
129
131
  ref: t(Q).ref,
130
132
  style: T(t(q)),
131
- class: f({
133
+ class: S({
132
134
  hasFooter: t(K)
133
135
  }),
134
- "data-testid": `${s.testId}-${t(S).TABLE}`,
135
- onScrollPassive: d[2] || (d[2] = //@ts-ignore
136
+ "data-testid": `${s.testId}-${t(y).TABLE}`,
137
+ onScrollPassive: o[2] || (o[2] = //@ts-ignore
136
138
  (...e) => t(F) && t(F)(...e))
137
139
  }, [
138
- s.title || t(b).title || t(j) || t(b)["table-header-actions"] ? (i(), o("div", {
140
+ t(se) ? (i(), d("div", {
139
141
  key: 0,
140
- class: f(["table-header", { isStickyHeader: s.isStickyHeader }]),
141
- "data-testid": `${s.testId}-${t(S).HEADER}`
142
+ class: S(["table-header", { isStickyHeader: s.isStickyHeader }]),
143
+ "data-testid": `${s.testId}-${t(y).HEADER}`
142
144
  }, [
143
145
  u("div", {
144
146
  class: "table-title",
145
- "data-testid": `${s.testId}-${t(S).TITLE}`
147
+ "data-testid": `${s.testId}-${t(y).TITLE}`
146
148
  }, [
147
- c(l.$slots, "title", {}, () => [
149
+ c(a.$slots, "title", {}, () => [
148
150
  h(t(A), { variant: "h3" }, {
149
151
  default: w(() => [
150
- B(E(s.title), 1)
152
+ E(B(s.title), 1)
151
153
  ]),
152
154
  _: 1
153
155
  })
154
156
  ])
155
- ], 8, xe),
157
+ ], 8, Te),
158
+ t(g)["table-header-pre-search"] ? (i(), d("div", {
159
+ key: 0,
160
+ class: "table-header-pre-search-content",
161
+ "data-testid": `${s.testId}-${t(y).PRE_SEARCH_HEADER}`
162
+ }, [
163
+ c(a.$slots, "table-header-pre-search")
164
+ ], 8, we)) : r("", !0),
156
165
  u("div", {
157
166
  class: "table-header-right",
158
- "data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
167
+ "data-testid": `${s.testId}-${t(y).HEADER_RIGHT}`
159
168
  }, [
160
- s.showSearch ? c(l.$slots, "search", { key: 0 }, () => [
161
- u("div", we, [
162
- h(t(ge), {
163
- modelValue: t(v),
164
- "onUpdate:modelValue": d[0] || (d[0] = (e) => ue(v) ? v.value = e : null),
169
+ s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
170
+ u("div", Be, [
171
+ h(t(ve), {
172
+ modelValue: t(b),
173
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => he(b) ? b.value = e : null),
165
174
  placeholder: s.searchPlaceholder,
166
175
  "auto-focus": s.searchAutoFocus,
167
176
  "test-id": s.testId,
168
- onOnClear: d[1] || (d[1] = (e) => y("onClearSearch"))
177
+ onOnClear: o[1] || (o[1] = (e) => f("onClearSearch"))
169
178
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
170
179
  ])
171
180
  ]) : r("", !0)
172
- ], 8, Te),
173
- t(b)["table-header-actions"] ? (i(), o("div", {
174
- key: 0,
181
+ ], 8, Ee),
182
+ t(g)["table-header-actions"] ? (i(), d("div", {
183
+ key: 1,
175
184
  class: "table-header-actions",
176
- "data-testid": `${s.testId}-${t(S).ACTIONS}`
185
+ "data-testid": `${s.testId}-${t(y).ACTIONS}`
177
186
  }, [
178
- c(l.$slots, "table-header-actions")
179
- ], 8, Be)) : r("", !0)
180
- ], 10, Re)) : r("", !0),
187
+ c(a.$slots, "table-header-actions")
188
+ ], 8, pe)) : r("", !0)
189
+ ], 10, xe)) : r("", !0),
181
190
  u("thead", {
182
- class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
191
+ class: S({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
183
192
  }, [
184
193
  u("div", {
185
194
  class: "sections",
186
- "data-testid": `${s.testId}-${t(S).SECTIONS}`
195
+ "data-testid": `${s.testId}-${t(y).SECTIONS}`
187
196
  }, [
188
- (i(!0), o(I, null, p(s.sections, (e) => (i(), o("div", {
197
+ (i(!0), d(p, null, I(s.sections, (e) => (i(), d("div", {
189
198
  key: e.id,
190
- class: f(["section-container", { sticky: e.isSticky }])
199
+ class: S(["section-container", { sticky: e.isSticky }])
191
200
  }, [
192
- c(l.$slots, `section-${e.id}`, {}, () => [
201
+ c(a.$slots, `section-${e.id}`, {}, () => [
193
202
  u("div", {
194
203
  style: T({ width: e.width + "px" }),
195
- class: f({ section: !0 })
204
+ class: S({ section: !0 })
196
205
  }, [
197
206
  h(t(A), { variant: "body2" }, {
198
207
  default: w(() => [
199
- B(E(e.title), 1)
208
+ E(B(e.title), 1)
200
209
  ]),
201
210
  _: 2
202
211
  }, 1024)
203
212
  ], 4)
204
213
  ])
205
214
  ], 2))), 128))
206
- ], 8, Ee),
215
+ ], 8, Ie),
207
216
  u("tr", null, [
208
- t(D) ? (i(), o("th", V({
217
+ t(D) ? (i(), d("th", M({
209
218
  key: 0,
210
219
  class: "checkbox-cell"
211
220
  }, t(U)), [
212
- c(l.$slots, "select-all-checkbox", {}, () => [
221
+ c(a.$slots, "select-all-checkbox", {}, () => [
213
222
  h(t(G), {
214
223
  disabled: s.isLoading,
215
- "is-checked": t(P),
216
- "is-indeterminate": !t(P) && t(se) > 0,
217
- "onUpdate:isChecked": ae
224
+ "is-checked": t(L),
225
+ "is-indeterminate": !t(L) && t(ae) > 0,
226
+ "onUpdate:isChecked": ie
218
227
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
219
228
  ])
220
229
  ], 16)) : r("", !0),
221
- t($) ? (i(), o("th", Ie)) : r("", !0),
222
- (i(!0), o(I, null, p(s.columns, (e) => (i(), o("th", {
230
+ t(R) ? (i(), d("th", Ae)) : r("", !0),
231
+ (i(!0), d(p, null, I(s.columns, (e) => (i(), d("th", {
223
232
  key: e.id,
224
- class: f({
233
+ class: S({
225
234
  sticky: e.isSticky,
226
235
  isStickyRight: e.isStickyRight,
227
236
  bordered: e.isBordered,
@@ -229,67 +238,67 @@ const Ce = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = ["d
229
238
  isSortable: e.isSortable,
230
239
  [`column-${e.id}`]: !0
231
240
  }),
232
- style: T(e.isSticky ? t(L)[e.id] : null),
233
- onClick: (m) => e.isSortable ? t(X)(e) : null
241
+ style: T(e.isSticky ? t(H)[e.id] : null),
242
+ onClick: (v) => e.isSortable ? t(X)(e) : null
234
243
  }, [
235
- u("div", Ae, [
236
- c(l.$slots, `header-${e.id}`, { column: e }, () => [
244
+ u("div", Pe, [
245
+ c(a.$slots, `header-${e.id}`, { column: e }, () => [
237
246
  h(t(A), { variant: "tableLabel" }, {
238
247
  default: w(() => [
239
- B(E(e.title), 1)
248
+ E(B(e.title), 1)
240
249
  ]),
241
250
  _: 2
242
251
  }, 1024)
243
252
  ]),
244
- e.helpText ? (i(), z(ke, {
253
+ e.helpText ? (i(), z(me, {
245
254
  key: 0,
246
255
  "hover-help-text": e.helpText,
247
256
  "hover-help-text-placement": e.helpTextPlacement
248
257
  }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
249
- e.isSortable && e.id === s.sort?.sortBy ? (i(), z(Se, {
258
+ e.isSortable && e.id === s.sort?.sortBy ? (i(), z(ke, {
250
259
  key: 1,
251
260
  "sort-order": s.sort.sortOrder
252
261
  }, null, 8, ["sort-order"])) : r("", !0)
253
262
  ])
254
- ], 14, pe))), 128))
263
+ ], 14, He))), 128))
255
264
  ])
256
265
  ], 2),
257
266
  u("tbody", null, [
258
- t(H).length > 0 ? (i(), o("div", V({
267
+ t(V).length > 0 ? (i(), d("div", M({
259
268
  key: 0,
260
269
  class: "table-body-wrapper",
261
- "data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
270
+ "data-testid": `${s.testId}-${t(y).BODY_WRAPPER}`
262
271
  }, t(W)), [
263
- (i(!0), o(I, null, p(t(H), (e) => (i(), o("tr", {
272
+ (i(!0), d(p, null, I(t(V), (e) => (i(), d("tr", {
264
273
  key: s.getRowKey(e.data, e.index),
265
- class: f(["table-row", {
274
+ class: S(["table-row", {
266
275
  loading: s.isLoading || s.isLoading && !e.data || t(O).includes(e.index),
267
- active: t(C) === e.index,
276
+ active: t($) === e.index,
268
277
  activeMenu: t(ee) === e.index,
269
- expanded: t($) && t(M)(e.index),
278
+ expanded: t(R) && t(P)(e.index),
270
279
  [Y(e.index)]: !0
271
280
  }]),
272
- onMouseenter: (m) => C.value = e.index,
273
- onClick: (m) => y("clickRow", e.index)
281
+ onMouseenter: (v) => $.value = e.index,
282
+ onClick: (v) => f("clickRow", e.index)
274
283
  }, [
275
- t(D) ? (i(), o("td", V({
284
+ t(D) ? (i(), d("td", M({
276
285
  key: 0,
277
286
  class: "checkbox-cell"
278
287
  }, t(U)), [
279
288
  h(t(G), {
280
- "is-checked": R(s.getRowId(e.data, e.index)),
281
- "onUpdate:isChecked": (m) => le(s.getRowId(e.data, e.index))
289
+ "is-checked": C(s.getRowId(e.data, e.index)),
290
+ "onUpdate:isChecked": (v) => le(s.getRowId(e.data, e.index))
282
291
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
283
292
  ], 16)) : r("", !0),
284
- t($) ? (i(), o("td", Pe, [
285
- h(me, {
286
- expanded: t(M)(e.index),
287
- onClick: (m) => t(J)(e.index, m)
293
+ t(R) ? (i(), d("td", Ve, [
294
+ h(ge, {
295
+ expanded: t(P)(e.index),
296
+ onClick: (v) => t(J)(e.index, v)
288
297
  }, null, 8, ["expanded", "onClick"])
289
298
  ])) : r("", !0),
290
- (i(!0), o(I, null, p(s.columns, (m, n) => (i(), o("td", {
299
+ (i(!0), d(p, null, I(s.columns, (v, n) => (i(), d("td", {
291
300
  key: n,
292
- class: f({
301
+ class: S({
293
302
  sticky: s.columns[n].isSticky,
294
303
  isStickyRight: s.columns[n].isStickyRight,
295
304
  bordered: s.columns[n].isBordered,
@@ -297,14 +306,14 @@ const Ce = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = ["d
297
306
  [`column-${s.columns[n].id}`]: !0
298
307
  }),
299
308
  style: T(
300
- s.columns[n].isSticky ? t(L)[s.columns[n].id] : null
309
+ s.columns[n].isSticky ? t(H)[s.columns[n].id] : null
301
310
  )
302
311
  }, [
303
- !s.isLoading || s.isLoading && e.data[n] ? (i(), o("div", {
312
+ !s.isLoading || s.isLoading && e.data[n] ? (i(), d("div", {
304
313
  key: 0,
305
- class: f(["table-cell", { last: n === e.data.length - 1 }])
314
+ class: S(["table-cell", { last: n === e.data.length - 1 }])
306
315
  }, [
307
- c(l.$slots, `cell-${s.columns[n].id}`, {
316
+ c(a.$slots, `cell-${s.columns[n].id}`, {
308
317
  cell: e.data[n],
309
318
  isLoading: t(O).includes(e.index),
310
319
  cellIndex: n,
@@ -313,48 +322,48 @@ const Ce = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = ["d
313
322
  }, () => [
314
323
  h(t(A), { variant: "body1" }, {
315
324
  default: w(() => [
316
- B(E(e.data[n]), 1)
325
+ E(B(e.data[n]), 1)
317
326
  ]),
318
327
  _: 2
319
328
  }, 1024)
320
329
  ])
321
- ], 2)) : c(l.$slots, "loader", { key: 1 }, () => [
322
- h(t(he), { round: "" })
330
+ ], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
331
+ h(t(ye), { round: "" })
323
332
  ])
324
333
  ], 6))), 128)),
325
- t($) && t(M)(e.index) ? (i(), o("div", Ve, [
326
- c(l.$slots, "expanded", {
334
+ t(R) && t(P)(e.index) ? (i(), d("div", Ne, [
335
+ c(a.$slots, "expanded", {
327
336
  row: e,
328
337
  gridColumnTemplate: t(N)
329
338
  })
330
339
  ])) : r("", !0),
331
- ie(e.index) ? (i(), o("div", He, [
332
- c(l.$slots, "floating-row", {
340
+ de(e.index) ? (i(), d("div", Fe, [
341
+ c(a.$slots, "floating-row", {
333
342
  row: e,
334
343
  rowIndex: e.index
335
344
  })
336
345
  ])) : r("", !0)
337
346
  ], 42, Me))), 128))
338
- ], 16, Le)) : (i(), o("div", Ne, [
339
- c(l.$slots, "empty-state", {}, () => [
340
- h(t(ye), {
347
+ ], 16, Le)) : (i(), d("div", Oe, [
348
+ c(a.$slots, "empty-state", {}, () => [
349
+ h(t(fe), {
341
350
  class: "empty-state",
342
351
  title: s.emptyStateTitle,
343
- subtitle: t(de),
352
+ subtitle: t(ne),
344
353
  variant: t(oe),
345
354
  "icon-name": "file-search",
346
- "test-id": `${s.testId}-${t(S).EMPTY_STATE}`
355
+ "test-id": `${s.testId}-${t(y).EMPTY_STATE}`
347
356
  }, null, 8, ["title", "subtitle", "variant", "test-id"])
348
357
  ])
349
358
  ]))
350
359
  ])
351
- ], 46, $e),
352
- t(K) ? (i(), o("div", Fe, [
353
- c(l.$slots, "footer")
360
+ ], 46, Ce),
361
+ t(K) ? (i(), d("div", De, [
362
+ c(a.$slots, "footer")
354
363
  ])) : r("", !0)
355
- ], 40, Ce));
364
+ ], 40, Re));
356
365
  }
357
366
  });
358
367
  export {
359
- Ze as default
368
+ et as default
360
369
  };
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
7
7
  getRowKey?: (row: Row, index: number) => string | number;
8
8
  isSticky?: boolean;
9
9
  isLoading?: boolean;
10
- emptyStateVariant?: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
10
+ emptyStateVariant?: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
11
11
  emptyStateTitle?: string;
12
12
  emptyStateSubtitle?: string;
13
13
  loadingRowCount?: number;
@@ -61,7 +61,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
61
61
  getRowKey?: (row: Row, index: number) => string | number;
62
62
  isSticky?: boolean;
63
63
  isLoading?: boolean;
64
- emptyStateVariant?: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
64
+ emptyStateVariant?: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
65
65
  emptyStateTitle?: string;
66
66
  emptyStateSubtitle?: string;
67
67
  loadingRowCount?: number;
@@ -122,7 +122,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
122
122
  emptyStateSubtitle: string;
123
123
  getRowId: (row: Row, index: number) => unknown;
124
124
  getRowKey: (row: Row, index: number) => string | number;
125
- emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
125
+ emptyStateVariant: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
126
126
  rowCustomClassKey: string;
127
127
  rowDataKey: string;
128
128
  totalCount: number;