@ironsource/shared-ui 2.1.12-rc.3 → 2.1.12-rc.30

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 (237) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_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_852be7ec_lang.css +1 -0
  4. package/Chart.vue_vue_type_style_index_0_scoped_fa533a3d_lang.css +1 -0
  5. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
  6. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +1 -0
  7. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
  8. package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +1 -0
  9. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +1 -0
  10. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
  11. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +1 -0
  12. package/DataGrid.vue_vue_type_style_index_0_scoped_8e8df067_lang.css +1 -0
  13. package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +1 -0
  14. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +1 -0
  15. package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +1 -0
  16. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
  17. package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
  18. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
  19. package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +1 -0
  20. package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +1 -0
  21. package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
  22. package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
  23. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
  24. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +1 -0
  25. package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
  26. package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +1 -0
  27. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +1 -0
  28. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +1 -0
  29. package/components/appIcon/index.d.ts +3 -3
  30. package/components/banner/Banner.vue.d.ts +3 -3
  31. package/components/banner/index.d.ts +7 -7
  32. package/components/button/common/consts.d.ts +1 -0
  33. package/components/button/v3/Button.vue.d.ts +3 -3
  34. package/components/button/v3/ButtonBase.vue.d.ts +3 -3
  35. package/components/button/v3/IconButton.vue.d.ts +3 -3
  36. package/components/button/v3/index.d.ts +14 -14
  37. package/components/button/v4/ButtonV4.vue.d.ts +5 -3
  38. package/components/button/v4/ButtonV4.vue.js +4 -4
  39. package/components/button/v4/ButtonV4.vue2.js +28 -27
  40. package/components/button/v4/ToggleButtonGroupAB.vue.js +3 -3
  41. package/components/button/v4/ToggleButtonGroupAB.vue2.js +40 -44
  42. package/components/chart/Chart.vue.d.ts +158 -37
  43. package/components/chart/Chart.vue.js +2 -2
  44. package/components/chart/Chart.vue2.js +150 -297
  45. package/components/chart/ChartHeader.vue.d.ts +50 -11
  46. package/components/chart/ChartHeader.vue.js +3 -3
  47. package/components/chart/ChartHeader.vue2.js +73 -54
  48. package/components/chart/ChartHeaderTrend.vue.d.ts +48 -0
  49. package/components/chart/ChartHeaderTrend.vue.js +7 -0
  50. package/components/chart/ChartHeaderTrend.vue2.js +96 -0
  51. package/components/chart/ChartLegend.vue.d.ts +24 -0
  52. package/components/chart/ChartLegend.vue.js +3 -3
  53. package/components/chart/ChartLegend.vue2.js +82 -63
  54. package/components/chart/ChartPlane.vue.d.ts +226 -0
  55. package/components/chart/ChartPlane.vue.js +7 -0
  56. package/components/chart/ChartPlane.vue2.js +370 -0
  57. package/components/chart/ChartStoryArgs.d.ts +184 -0
  58. package/components/chart/ChartTooltip.vue.d.ts +22 -2
  59. package/components/chart/ChartTooltip.vue.js +2 -2
  60. package/components/chart/ChartTooltip.vue2.js +50 -55
  61. package/components/chart/LegendSorting.vue.d.ts +37 -0
  62. package/components/chart/LegendSorting.vue.js +45 -0
  63. package/components/chart/LegendSorting.vue2.js +4 -0
  64. package/components/chart/SettingsHeader.vue.d.ts +1 -0
  65. package/components/chart/SettingsHeader.vue.js +3 -3
  66. package/components/chart/SettingsHeader.vue2.js +17 -16
  67. package/components/chart/SubHeader.vue.d.ts +52 -0
  68. package/components/chart/SubHeader.vue.js +7 -0
  69. package/components/chart/SubHeader.vue2.js +61 -0
  70. package/components/chart/TooltipHeader.vue.d.ts +50 -0
  71. package/components/chart/TooltipHeader.vue.js +7 -0
  72. package/components/chart/TooltipHeader.vue2.js +69 -0
  73. package/components/chart/colorPalette.d.ts +5 -0
  74. package/components/chart/colorPalette.js +68 -0
  75. package/components/chart/composables/useChartHeight.d.ts +5 -0
  76. package/components/chart/composables/useChartHeight.js +24 -0
  77. package/components/chart/composables/useColorsMap.d.ts +12 -0
  78. package/components/chart/composables/useColorsMap.js +48 -0
  79. package/components/chart/composables/useTooltipPosition.d.ts +1 -1
  80. package/components/chart/composables/useTooltipPosition.js +11 -15
  81. package/components/chart/consts.d.ts +29 -7
  82. package/components/chart/consts.js +41 -21
  83. package/components/chart/index.d.ts +554 -119
  84. package/components/chart/mockData.d.ts +44 -5
  85. package/components/chart/types.d.ts +38 -6
  86. package/components/chart/types.js +5 -2
  87. package/components/chart/utils/formatNumber.d.ts +0 -1
  88. package/components/chart/utils/highlightUtils.d.ts +3 -0
  89. package/components/chart/utils/highlightUtils.js +18 -0
  90. package/components/chart/utils/utils.d.ts +3 -3
  91. package/components/chart/utils/utils.js +19 -10
  92. package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
  93. package/components/checkbox/v3/index.d.ts +7 -7
  94. package/components/dateRange/common/DateRange.common.js +81 -75
  95. package/components/dateRange/common/DateServices.common.d.ts +7 -1
  96. package/components/dateRange/common/DateServices.common.js +88 -92
  97. package/components/dateRange/common/consts.common.d.ts +5 -0
  98. package/components/dateRange/common/consts.common.js +9 -3
  99. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  100. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  101. package/components/dateRange/v3/index.d.ts +7 -7
  102. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  103. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  104. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  105. package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
  106. package/components/dateRange/v4/index.d.ts +7 -7
  107. package/components/dialog/v4/DialogV4.vue.d.ts +4 -3
  108. package/components/dialog/v4/DialogV4.vue.js +4 -4
  109. package/components/dialog/v4/DialogV4.vue2.js +1 -1
  110. package/components/dialog/v4/index.d.ts +7 -7
  111. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  112. package/components/dropdown/common/Dropdown.common.js +172 -160
  113. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  114. package/components/dropdown/v3/index.d.ts +20 -20
  115. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
  116. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  117. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
  118. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  119. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +1 -1
  120. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  121. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  122. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
  123. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +22 -9
  124. package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
  125. package/components/dropdown/v4/ConditionalDropdown.vue2.js +151 -129
  126. package/components/dropdown/v4/DropdownV4.vue.d.ts +34 -1
  127. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  128. package/components/dropdown/v4/DropdownV4.vue2.js +241 -189
  129. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
  130. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
  131. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
  132. package/components/dropdown/v4/OptionV4.vue.d.ts +18 -5
  133. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  134. package/components/dropdown/v4/OptionV4.vue2.js +140 -108
  135. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  136. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  137. package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
  138. package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
  139. package/components/dropdown/v4/index.d.ts +682 -162
  140. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
  141. package/components/emptyState/v4/index.d.ts +7 -7
  142. package/components/forms/FormRow.vue.d.ts +9 -2
  143. package/components/forms/FormRow.vue.js +3 -3
  144. package/components/forms/FormRow.vue2.js +25 -14
  145. package/components/forms/index.d.ts +25 -5
  146. package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
  147. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
  148. package/components/includeExclude/index.d.ts +40 -40
  149. package/components/link/Link.vue.d.ts +70 -0
  150. package/components/link/Link.vue.js +7 -0
  151. package/components/link/Link.vue2.js +43 -0
  152. package/components/link/index.d.ts +201 -0
  153. package/components/link/index.js +6 -0
  154. package/components/search/v3/index.d.ts +3 -3
  155. package/components/shared/FieldLabel.vue.d.ts +19 -7
  156. package/components/shared/FieldLabel.vue.js +3 -3
  157. package/components/shared/FieldLabel.vue2.js +50 -37
  158. package/components/switch/v4/SwitchV4.vue.d.ts +16 -0
  159. package/components/switch/v4/SwitchV4.vue.js +3 -3
  160. package/components/switch/v4/SwitchV4.vue2.js +39 -24
  161. package/components/switch/v4/index.d.ts +29 -0
  162. package/components/table/common/Table.common.d.ts +0 -1
  163. package/components/table/common/Table.common.js +38 -39
  164. package/components/table/common/Table.types.d.ts +2 -0
  165. package/components/table/common/consts.d.ts +1 -0
  166. package/components/table/common/consts.js +2 -1
  167. package/components/table/v4/DataGrid.vue.d.ts +15 -4
  168. package/components/table/v4/DataGrid.vue.js +4 -4
  169. package/components/table/v4/DataGrid.vue2.js +288 -230
  170. package/components/table/v4/MultipleDataGrid.vue.d.ts +3 -3
  171. package/components/table/v4/index.d.ts +50 -15
  172. package/components/table/v4/storyUtils.d.ts +2 -0
  173. package/components/tabs/v3/Tabs.vue.d.ts +3 -3
  174. package/components/tabs/v3/index.d.ts +7 -7
  175. package/components/tooltip/common/Tooltip.types.d.ts +1 -0
  176. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  177. package/components/tooltip/v3/Tooltip.vue.js +2 -2
  178. package/components/tooltip/v3/Tooltip.vue2.js +1 -1
  179. package/components/tooltip/v3/index.d.ts +7 -7
  180. package/components/tooltip/v4/TooltipV4.vue.d.ts +4 -4
  181. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  182. package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
  183. package/components/tooltip/v4/index.d.ts +7 -7
  184. package/components/typography/Text.vue.d.ts +3 -3
  185. package/components/typography/index.d.ts +7 -7
  186. package/composables/useDateService.d.ts +7 -0
  187. package/composables/useDateService.js +10 -0
  188. package/composables/useFormValidation.d.ts +1 -0
  189. package/composables/useFormValidation.js +32 -27
  190. package/composables/useFullPageHeight.d.ts +10 -0
  191. package/composables/useFullPageHeight.js +15 -0
  192. package/consts/common.d.ts +1 -0
  193. package/consts/common.js +4 -0
  194. package/consts/regex.d.ts +1 -0
  195. package/consts/regex.js +2 -1
  196. package/index.d.ts +1601 -425
  197. package/index.js +148 -136
  198. package/mocks/apps.d.ts +1 -0
  199. package/mocks/optionsWithIcons.d.ts +2 -0
  200. package/package.json +9 -1
  201. package/testids/index.d.ts +4 -0
  202. package/testids/index.js +31 -30
  203. package/utils/formatNumbers.d.ts +1 -1
  204. package/utils/formatNumbers.js +19 -6
  205. package/utils/index.js +7 -0
  206. package/utils/text.d.ts +3 -0
  207. package/utils/text.js +24 -5
  208. package/utils/totals.d.ts +5 -0
  209. package/utils/totals.js +9 -0
  210. package/utils/utils.d.ts +1 -0
  211. package/utils/utils.js +4 -0
  212. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
  213. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +0 -1
  214. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
  215. package/Chart.vue_vue_type_style_index_0_scoped_a641383a_lang.css +0 -1
  216. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +0 -1
  217. package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +0 -1
  218. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +0 -1
  219. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
  220. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_3a2aeea3_lang.css +0 -1
  221. package/DataGrid.vue_vue_type_style_index_0_scoped_6b54ac22_lang.css +0 -1
  222. package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +0 -1
  223. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
  224. package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
  225. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
  226. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
  227. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
  228. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
  229. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
  230. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
  231. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +0 -1
  232. package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
  233. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
  234. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
  235. package/components/chart/composables/useChartValues.d.ts +0 -12
  236. package/components/chart/composables/useChartValues.js +0 -32
  237. package/components/chart/utils/formatNumber.js +0 -11
@@ -1,44 +1,59 @@
1
- import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css"; import { defineComponent as p, ref as k, onMounted as v, openBlock as a, createElementBlock as d, unref as s, Fragment as I, renderList as V, createBlock as h, normalizeClass as B } from "vue";
2
- import { useVModel as C } from "@vueuse/core";
1
+ import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_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";
2
+ import { useVModel as I } from "@vueuse/core";
3
+ import { SwitchTestIdModifiers as u } from "../../../testids/index.js";
3
4
  import "../../button/v4/ButtonV4.vue.js";
4
5
  import $ from "../../button/v4/IconButtonV4.vue.js";
5
6
  import "../../button/v4/ButtonGroup.vue.js";
6
7
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
7
- import { SwitchTestIdModifiers as r } from "../../../testids/index.js";
8
- const w = ["data-testid"], S = /* @__PURE__ */ p({
8
+ import B from "../../tooltip/v4/TooltipV4.vue.js";
9
+ const K = ["data-testid"], A = /* @__PURE__ */ T({
9
10
  __name: "SwitchV4",
10
11
  props: {
11
12
  options: null,
12
13
  modelValue: null,
14
+ variant: { default: "default" },
13
15
  testId: { default: "" },
14
- iconKey: { default: "icon" }
16
+ iconKey: { default: "icon" },
17
+ tooltipTextKey: { default: "tooltipText" },
18
+ tooltipPlacement: { default: "top" }
15
19
  },
16
20
  emits: ["update:modelValue"],
17
- setup(e, { emit: m }) {
18
- const o = e, n = k(), u = C(o, "modelValue", m);
19
- v(() => {
20
- n.value = o.options.findIndex(
21
- (t) => t === o.modelValue
21
+ setup(t, { emit: f }) {
22
+ const i = t, n = h(), p = I(i, "modelValue", f), d = (e) => n.value === e;
23
+ k(() => {
24
+ n.value = i.options.findIndex(
25
+ (e) => e === i.modelValue
22
26
  );
23
27
  });
24
- const f = (t, i) => {
25
- n.value = i, u.value = t;
28
+ const v = (e, s) => {
29
+ n.value = s, p.value = e;
26
30
  };
27
- return (t, i) => (a(), d("div", {
28
- class: "switch",
29
- "data-testid": `${e.testId}-${s(r).WRAPPER}`
31
+ return (e, s) => (c(), r("div", {
32
+ class: m(["switch", [`switch--variant-${t.variant}`]]),
33
+ "data-testid": `${t.testId}-${a(u).WRAPPER}`
30
34
  }, [
31
- (a(!0), d(I, null, V(e.options, (c, l) => (a(), h(s($), {
35
+ (c(!0), r(x, null, V(t.options, (o, l) => (c(), w(a(B), {
32
36
  key: l,
33
- class: B(["option", { "option--selected": n.value === l }]),
34
- "icon-name": c[e.iconKey],
35
- size: "small",
36
- "data-testid": `${e.testId}-${s(r).BUTTON}`,
37
- onClick: (y) => f(c, l)
38
- }, null, 8, ["class", "icon-name", "data-testid", "onClick"]))), 128))
39
- ], 8, w));
37
+ text: o[t.tooltipTextKey],
38
+ disabled: !o[t.tooltipTextKey],
39
+ placement: t.tooltipPlacement,
40
+ class: "option-wrapper"
41
+ }, {
42
+ default: y(() => [
43
+ C(a($), {
44
+ class: m(["option", { "option--selected": d(l) }]),
45
+ "icon-name": o[t.iconKey],
46
+ size: "small",
47
+ 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"])
51
+ ]),
52
+ _: 2
53
+ }, 1032, ["text", "disabled", "placement"]))), 128))
54
+ ], 10, K));
40
55
  }
41
56
  });
42
57
  export {
43
- S as default
58
+ A as default
44
59
  };
@@ -3,6 +3,15 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
3
3
  type: import("vue").PropType<string>;
4
4
  default: string;
5
5
  };
6
+ variant: {
7
+ type: import("vue").PropType<"default" | "primary">;
8
+ required: true;
9
+ default: string;
10
+ };
11
+ tooltipPlacement: {
12
+ type: import("vue").PropType<"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">;
13
+ default: string;
14
+ };
6
15
  modelValue: {
7
16
  type: import("vue").PropType<unknown>;
8
17
  required: true;
@@ -15,6 +24,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
15
24
  type: import("vue").PropType<string>;
16
25
  default: string;
17
26
  };
27
+ tooltipTextKey: {
28
+ type: import("vue").PropType<string>;
29
+ default: string;
30
+ };
18
31
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
32
  "update:modelValue": (...args: any[]) => void;
20
33
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -22,6 +35,15 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
22
35
  type: import("vue").PropType<string>;
23
36
  default: string;
24
37
  };
38
+ variant: {
39
+ type: import("vue").PropType<"default" | "primary">;
40
+ required: true;
41
+ default: string;
42
+ };
43
+ tooltipPlacement: {
44
+ type: import("vue").PropType<"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">;
45
+ default: string;
46
+ };
25
47
  modelValue: {
26
48
  type: import("vue").PropType<unknown>;
27
49
  required: true;
@@ -34,11 +56,18 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
34
56
  type: import("vue").PropType<string>;
35
57
  default: string;
36
58
  };
59
+ tooltipTextKey: {
60
+ type: import("vue").PropType<string>;
61
+ default: string;
62
+ };
37
63
  }>> & {
38
64
  "onUpdate:modelValue"?: (...args: any[]) => any;
39
65
  }, {
40
66
  testId: string;
67
+ variant: "default" | "primary";
68
+ 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";
41
69
  iconKey: string;
70
+ tooltipTextKey: string;
42
71
  }>[];
43
72
  export { default as Switch } from './SwitchV4.vue';
44
73
  export { SwitchTypes };
@@ -31,7 +31,6 @@ export declare const tableCommon: (props: any, emit: any) => {
31
31
  hasCheckboxes: import("vue").ComputedRef<boolean>;
32
32
  toggleExpandRow: (index: number, event: any) => Promise<void>;
33
33
  isRowExpanded: (rowIndex: number) => boolean;
34
- cssRowHeight: import("vue").ComputedRef<string>;
35
34
  cssExpandGridCol: import("vue").ComputedRef<string>;
36
35
  activeMenuRow: import("vue").Ref<number>;
37
36
  };
@@ -1,10 +1,10 @@
1
- import { useSlots as V, ref as a, provide as Y, computed as n, onMounted as j, nextTick as q } from "vue";
2
- import { useVirtualList as F, useInfiniteScroll as J } from "@vueuse/core";
3
- import { TableContext as Q } from "./TableContext.js";
4
- import { CHECKBOX_STICKY_COL_WIDTH as Z, CHECKBOX_COL_WIDTH as p, EXPAND_COL_WIDTH as tt, CHECKBOX_COLUMN_ID as et } from "./consts.js";
5
- const rt = (e, d) => {
6
- const x = V(), u = a([]);
7
- Y(Q, {
1
+ import { useSlots as U, ref as a, provide as V, computed as n, onMounted as Y, nextTick as j } from "vue";
2
+ import { useVirtualList as q, useInfiniteScroll as F } from "@vueuse/core";
3
+ import { TableContext as J } from "./TableContext.js";
4
+ import { CHECKBOX_STICKY_COL_WIDTH as Q, CHECKBOX_COL_WIDTH as Z, EXPAND_COL_WIDTH as p, CHECKBOX_COLUMN_ID as tt } from "./consts.js";
5
+ const it = (e, d) => {
6
+ const T = U(), u = a([]);
7
+ V(J, {
8
8
  onClose({ rowIndex: t, cellIndex: o, value: i } = {}) {
9
9
  u.value = [...u.value, t], d("saveRow", {
10
10
  rowIndex: t,
@@ -19,27 +19,27 @@ const rt = (e, d) => {
19
19
  R.value = t;
20
20
  }
21
21
  });
22
- const h = n(() => !!e.selection), T = n(() => e.isSelectionSticky ? Z : p), b = n(() => {
23
- const t = (h.value ? `${T.value}px ` : "") + (v.value ? `${tt}px ` : "");
22
+ const g = n(() => !!e.selection), x = n(() => e.isSelectionSticky ? Q : Z), O = n(() => {
23
+ const t = (g.value ? `${x.value}px ` : "") + (h.value ? `${p}px ` : "");
24
24
  return e.columns.reduce((o, { width: i, colSpan: l }) => {
25
25
  const s = typeof i == "number" ? `${i}px` : i, S = s || `${l || 1}fr`;
26
26
  return `${o} ${S}`;
27
27
  }, t);
28
- }), v = n(() => !!x.expanded), O = a(null), R = a(null), k = n(() => Array(e.loadingRowCount).fill(
28
+ }), h = n(() => !!T.expanded), H = a(null), R = a(null), k = n(() => Array(e.loadingRowCount).fill(
29
29
  Array(e.columns.length).fill("")
30
30
  )), I = n(() => e.rows.length && Array.isArray(e.rows[0]) ? e.isLoading ? [...e.rows, ...k.value] : e.rows : e.isLoading ? [
31
31
  ...e.rows.map((o) => o[e.rowDataKey]),
32
32
  ...k.value
33
- ] : e.rows.map((o) => o[e.rowDataKey])), { list: H, containerProps: r, wrapperProps: A, scrollTo: B } = F(
33
+ ] : e.rows.map((o) => o[e.rowDataKey])), { list: b, containerProps: r, wrapperProps: A, scrollTo: B } = q(
34
34
  I,
35
35
  {
36
- itemHeight: v.value ? (t) => m[t] ?? e.rowHeight : e.rowHeight
36
+ itemHeight: h.value ? (t) => w[t] ?? e.rowHeight : e.rowHeight
37
37
  }
38
- ), $ = a(null), w = a(0), L = n(() => !!x.search), _ = (t) => {
39
- r.onScroll(), w.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, d("onScroll", t.target.scrollTop);
38
+ ), L = a(null), m = a(0), _ = n(() => !!T.search), $ = (t) => {
39
+ r.onScroll(), m.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, d("onScroll", t.target.scrollTop);
40
40
  };
41
- j(() => {
42
- w.value = r.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
41
+ Y(() => {
42
+ m.value = r.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
43
43
  r.ref.value?.scrollTo({
44
44
  top: e.defaultScrollPosition,
45
45
  behavior: "smooth"
@@ -47,17 +47,17 @@ const rt = (e, d) => {
47
47
  }, 300);
48
48
  });
49
49
  const E = n(() => {
50
- const [t] = H.value;
50
+ const [t] = b.value;
51
51
  return t && t.index > 0;
52
52
  }), P = n(() => r.style), D = n(() => {
53
53
  const t = {
54
- id: et,
54
+ id: tt,
55
55
  isSticky: e.isSelectionSticky,
56
- width: T.value
56
+ width: x.value
57
57
  };
58
- return h.value ? [t] : [];
58
+ return g.value ? [t] : [];
59
59
  }), f = n(() => [...D.value, ...e.columns]), K = n(() => f.value.reduce((t, o) => (o.isSticky && (t[o.id] = X(o)), t), {}));
60
- J(
60
+ F(
61
61
  r.ref,
62
62
  () => {
63
63
  e.isInfiniteScroll && d("loadMore");
@@ -89,43 +89,42 @@ const rt = (e, d) => {
89
89
  zIndex: 1
90
90
  };
91
91
  }
92
- const g = a([]), m = {}, N = (t) => g.value.includes(t), z = async (t, o) => {
93
- const i = g.value.indexOf(t);
92
+ const v = a([]), w = {}, N = (t) => v.value.includes(t), z = async (t, o) => {
93
+ const i = v.value.indexOf(t);
94
94
  if (i === -1) {
95
- g.value.push(t);
95
+ v.value.push(t);
96
96
  const l = o.target.closest("tr");
97
- await q(), l && (m[t] = l.offsetHeight);
97
+ await j(), l && (w[t] = l.offsetHeight);
98
98
  } else
99
- g.value.splice(i, 1), delete m[t];
100
- }, G = n(() => `${e.rowHeight}px`), U = n(
99
+ v.value.splice(i, 1), delete w[t];
100
+ }, G = n(
101
101
  () => `1 / span ${e.columns.length + 1}`
102
102
  );
103
103
  return {
104
- list: H,
104
+ list: b,
105
105
  containerProps: r,
106
106
  wrapperProps: A,
107
- activeRow: O,
108
- gridColumnTemplate: b,
109
- floatingActionRef: $,
107
+ activeRow: H,
108
+ gridColumnTemplate: O,
109
+ floatingActionRef: L,
110
110
  scrollToTop: M,
111
111
  toggleSortOrder: W,
112
112
  columnsStickyPositions: K,
113
- hasSearchSlot: L,
113
+ hasSearchSlot: _,
114
114
  showBackToTopButton: E,
115
115
  containerStyle: P,
116
- onScroll: _,
116
+ onScroll: $,
117
117
  scrollTo: B,
118
118
  savingRows: u,
119
- floatingActionPosition: w,
120
- hasExpandSlot: v,
121
- hasCheckboxes: h,
119
+ floatingActionPosition: m,
120
+ hasExpandSlot: h,
121
+ hasCheckboxes: g,
122
122
  toggleExpandRow: z,
123
123
  isRowExpanded: N,
124
- cssRowHeight: G,
125
- cssExpandGridCol: U,
124
+ cssExpandGridCol: G,
126
125
  activeMenuRow: R
127
126
  };
128
127
  };
129
128
  export {
130
- rt as tableCommon
129
+ it as tableCommon
131
130
  };
@@ -42,3 +42,5 @@ export type SaveRowEvent = {
42
42
  rowIndex: number;
43
43
  cellIndex: number;
44
44
  };
45
+ export declare const HELP_TOOLTIP_VARIANTS: readonly ["icon", "underline"];
46
+ export type HelpTooltipVariant = (typeof HELP_TOOLTIP_VARIANTS)[number];
@@ -2,3 +2,4 @@ export declare const CHECKBOX_COLUMN_ID = "__CHECKBOX_COLUMN_ID__";
2
2
  export declare const EXPAND_COL_WIDTH = 46;
3
3
  export declare const CHECKBOX_COL_WIDTH = 46;
4
4
  export declare const CHECKBOX_STICKY_COL_WIDTH = 57;
5
+ export declare const DEFAULT_ROW_HEIGHT = 48;
@@ -1,7 +1,8 @@
1
- const _ = "__CHECKBOX_COLUMN_ID__", C = 46, O = 46, H = 57;
1
+ const _ = "__CHECKBOX_COLUMN_ID__", C = 46, O = 46, H = 57, D = 48;
2
2
  export {
3
3
  _ as CHECKBOX_COLUMN_ID,
4
4
  O as CHECKBOX_COL_WIDTH,
5
5
  H as CHECKBOX_STICKY_COL_WIDTH,
6
+ D as DEFAULT_ROW_HEIGHT,
6
7
  C as EXPAND_COL_WIDTH
7
8
  };
@@ -1,4 +1,4 @@
1
- import type { Column, Row, SaveRowEvent, Section, Sort } from '../common/Table.types';
1
+ import { Column, Row, SaveRowEvent, Section, Sort } from '../common/Table.types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  title?: string;
4
4
  columns: Column[];
@@ -12,14 +12,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
12
12
  isSticky?: boolean;
13
13
  isStickyHeader?: boolean;
14
14
  isLoading?: boolean;
15
- emptyStateVariant?: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
15
+ emptyStateVariant?: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
16
16
  emptyStateTitle?: string;
17
17
  emptyStateSubtitle?: string;
18
18
  isInfiniteScroll?: boolean;
19
+ showTotalsRow?: boolean;
19
20
  infiniteScrollThreshold?: number;
20
21
  rowHeight?: number | ((index: number) => number);
21
22
  loadingRowCount?: number;
22
23
  defaultScrollPosition?: number;
24
+ helpTooltipVariant?: "icon" | "underline";
23
25
  testId?: string;
24
26
  search?: string;
25
27
  showSearch?: boolean;
@@ -45,6 +47,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
45
47
  rowHeight: number;
46
48
  loadingRowCount: number;
47
49
  defaultScrollPosition: any;
50
+ helpTooltipVariant: string;
48
51
  testId: string;
49
52
  selection: any;
50
53
  getRowId: (row: any, index: any) => any;
@@ -85,14 +88,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
85
88
  isSticky?: boolean;
86
89
  isStickyHeader?: boolean;
87
90
  isLoading?: boolean;
88
- emptyStateVariant?: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
91
+ emptyStateVariant?: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
89
92
  emptyStateTitle?: string;
90
93
  emptyStateSubtitle?: string;
91
94
  isInfiniteScroll?: boolean;
95
+ showTotalsRow?: boolean;
92
96
  infiniteScrollThreshold?: number;
93
97
  rowHeight?: number | ((index: number) => number);
94
98
  loadingRowCount?: number;
95
99
  defaultScrollPosition?: number;
100
+ helpTooltipVariant?: "icon" | "underline";
96
101
  testId?: string;
97
102
  search?: string;
98
103
  showSearch?: boolean;
@@ -118,6 +123,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
118
123
  rowHeight: number;
119
124
  loadingRowCount: number;
120
125
  defaultScrollPosition: any;
126
+ helpTooltipVariant: string;
121
127
  testId: string;
122
128
  selection: any;
123
129
  getRowId: (row: any, index: any) => any;
@@ -167,13 +173,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
167
173
  getRowId: (row: Row, index: number) => unknown;
168
174
  getRowKey: (row: Row, index: number) => string | number;
169
175
  selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
170
- emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
176
+ emptyStateVariant: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
177
+ helpTooltipVariant: "icon" | "underline";
171
178
  rowCustomClassKey: string;
172
179
  rowDataKey: string;
173
180
  isSelectionSticky: boolean;
174
181
  isSelectionBordered: boolean;
175
182
  }>, Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
176
183
  column: Column;
184
+ }) => any>> & Partial<Record<`after-header-${string}`, (_: {
185
+ column: Column;
186
+ }) => any>> & Partial<Record<`total-${string}`, (_: {
187
+ column: Column;
177
188
  }) => any>> & Partial<Record<`cell-${string}`, (_: {
178
189
  cell: unknown;
179
190
  isLoading: boolean;
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
- /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_6b54ac22_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-6b54ac22"]]);
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_8e8df067_lang.css"; //*');
4
+ const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-8e8df067"]]);
5
5
  export {
6
- s as default
6
+ a as default
7
7
  };