@ironsource/shared-ui 2.1.11-test.9 → 2.1.11-test.92

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 (170) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
  2. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
  3. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
  5. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
  6. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
  7. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
  8. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2ba23450_lang.css +1 -0
  9. package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
  10. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
  11. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
  12. package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
  13. package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
  14. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
  15. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
  16. package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
  17. package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +1 -0
  18. package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
  19. package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
  20. package/README.md +4 -15
  21. package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
  22. package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +1 -0
  23. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
  24. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
  25. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
  26. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  27. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
  28. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  29. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
  30. package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +1 -0
  31. package/components/autocomplete/Autocomplete.vue2.js +1 -1
  32. package/components/chart/Chart.vue.d.ts +16 -3
  33. package/components/chart/Chart.vue.js +5 -5
  34. package/components/chart/Chart.vue2.js +127 -110
  35. package/components/chart/ChartHeader.vue.d.ts +13 -6
  36. package/components/chart/ChartHeader.vue.js +2 -2
  37. package/components/chart/ChartHeader.vue2.js +32 -29
  38. package/components/chart/ChartLegend.vue.d.ts +5 -0
  39. package/components/chart/ChartLegend.vue.js +3 -3
  40. package/components/chart/ChartLegend.vue2.js +99 -49
  41. package/components/chart/ChartTooltip.vue.d.ts +4 -5
  42. package/components/chart/ChartTooltip.vue.js +2 -2
  43. package/components/chart/ChartTooltip.vue2.js +64 -43
  44. package/components/chart/SettingsHeader.vue2.js +1 -1
  45. package/components/chart/index.d.ts +55 -16
  46. package/components/chart/mockData.d.ts +15 -2
  47. package/components/chart/types.d.ts +15 -1
  48. package/components/chart/utils/utils.js +5 -5
  49. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  50. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  51. package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
  52. package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
  53. package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
  54. package/components/dialog/v4/DialogV4.vue.js +3 -3
  55. package/components/dialog/v4/DialogV4.vue2.js +80 -73
  56. package/components/dialog/v4/index.d.ts +58 -1
  57. package/components/dropdown/common/Dropdown.common.js +180 -169
  58. package/components/dropdown/v3/index.d.ts +12 -12
  59. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
  60. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
  61. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
  62. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
  63. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  64. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +59 -40
  65. package/components/dropdown/v4/{ConditionalDroprown.vue.d.ts → ConditionalDropdown.vue.d.ts} +60 -0
  66. package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
  67. package/components/dropdown/v4/ConditionalDropdown.vue2.js +239 -0
  68. package/components/dropdown/v4/DropdownV4.vue.d.ts +18 -5
  69. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  70. package/components/dropdown/v4/DropdownV4.vue2.js +52 -50
  71. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  72. package/components/dropdown/v4/OptionV4.vue2.js +2 -2
  73. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  74. package/components/dropdown/v4/TreeDropdown.vue2.js +87 -87
  75. package/components/dropdown/v4/index.d.ts +205 -35
  76. package/components/dropdown/v4/index.js +3 -3
  77. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  78. package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
  79. package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
  80. package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
  81. package/components/forms/FormCard.vue.js +3 -3
  82. package/components/forms/FormCard.vue2.js +1 -1
  83. package/components/icon/v4/IconFlag.vue.js +3 -3
  84. package/components/icon/v4/IconFlag.vue2.js +1 -1
  85. package/components/icon/v4/consts.d.ts +1 -1
  86. package/components/icon/v4/consts.js +1 -1
  87. package/components/input/v4/TextField.vue.js +3 -3
  88. package/components/input/v4/TextField.vue2.js +185 -165
  89. package/components/multibar/MultiBarMenu.vue2.js +1 -1
  90. package/components/popover/v4/PopoverV4.vue.d.ts +11 -1
  91. package/components/popover/v4/PopoverV4.vue.js +2 -2
  92. package/components/popover/v4/PopoverV4.vue2.js +40 -26
  93. package/components/popover/v4/index.d.ts +46 -8
  94. package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
  95. package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
  96. package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
  97. package/components/sortableList/SortableItem.vue.d.ts +5 -0
  98. package/components/sortableList/SortableItem.vue.js +2 -2
  99. package/components/sortableList/SortableItem.vue2.js +86 -70
  100. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  101. package/components/sortableList/SortableItemLabel.vue2.js +20 -23
  102. package/components/sortableList/SortableList.vue.d.ts +17 -1
  103. package/components/sortableList/SortableList.vue.js +4 -4
  104. package/components/sortableList/SortableList.vue2.js +113 -94
  105. package/components/sortableList/index.d.ts +63 -5
  106. package/components/table/common/Table.common.d.ts +1 -1
  107. package/components/table/common/Table.common.js +82 -74
  108. package/components/table/common/Table.types.d.ts +1 -1
  109. package/components/table/common/consts.d.ts +4 -0
  110. package/components/table/common/consts.js +7 -0
  111. package/components/table/v3/Table.vue.d.ts +1 -1
  112. package/components/table/v3/index.d.ts +5 -5
  113. package/components/table/v4/DataGrid.vue.d.ts +12 -2
  114. package/components/table/v4/DataGrid.vue.js +2 -2
  115. package/components/table/v4/DataGrid.vue2.js +164 -155
  116. package/components/table/v4/DataGridMenu.vue.js +5 -5
  117. package/components/table/v4/DataGridMenu.vue2.js +2 -2
  118. package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
  119. package/components/table/v4/index.d.ts +84 -46
  120. package/components/table-cells/common/Editable.common.js +29 -23
  121. package/components/table-cells/common/EditableContext.d.ts +1 -0
  122. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  123. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  124. package/components/table-cells/v4/EditableV4.vue2.js +11 -10
  125. package/components/table-cells/v4/index.d.ts +20 -1
  126. package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
  127. package/components/tooltip/v4/TooltipV4.vue.js +3 -3
  128. package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
  129. package/components/tooltip/v4/index.d.ts +39 -1
  130. package/components/typography/v4/Typography.vue.js +3 -3
  131. package/components/typography/v4/Typography.vue2.js +24 -18
  132. package/design-foundation.stories/icons/iconsData.d.ts +1 -1
  133. package/index.d.ts +1097 -204
  134. package/index.js +1 -1
  135. package/mocks/words.d.ts +1 -1
  136. package/package.json +1 -1
  137. package/style/v4/grid.css +1 -1
  138. package/style/v4/grid.css.map +1 -1
  139. package/style/v4/spacings.scss +1 -0
  140. package/testids/index.d.ts +2 -0
  141. package/testids/index.js +13 -13
  142. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
  143. package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
  144. package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
  145. package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
  146. package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
  147. package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
  148. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css +0 -1
  149. package/ConditionalDroprown.vue_vue_type_style_index_0_scoped_546e19a9_lang.css +0 -1
  150. package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
  151. package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
  152. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
  153. package/DropdownV4.vue_vue_type_style_index_0_scoped_f88a132e_lang.css +0 -1
  154. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
  155. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
  156. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
  157. package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
  158. package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
  159. package/OptionV4.vue_vue_type_style_index_0_scoped_df830bf5_lang.css +0 -1
  160. package/PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css +0 -1
  161. package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
  162. package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
  163. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
  164. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
  165. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
  166. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
  167. package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +0 -1
  168. package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
  169. package/components/dropdown/v4/ConditionalDroprown.vue.js +0 -7
  170. package/components/dropdown/v4/ConditionalDroprown.vue2.js +0 -157
@@ -1,123 +1,131 @@
1
- import { useSlots as G, ref as c, provide as N, computed as s, onMounted as V, 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
- const Q = 46, U = 46, tt = (e, u) => {
5
- const S = G(), a = c([]);
6
- N(J, {
7
- onClose({ rowIndex: t, cellIndex: o, value: l } = {}) {
8
- a.value = [...a.value, t], u("saveRow", {
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, {
8
+ onClose({ rowIndex: t, cellIndex: o, value: i } = {}) {
9
+ u.value = [...u.value, t], d("saveRow", {
9
10
  rowIndex: t,
10
11
  cellIndex: o,
11
- value: l,
12
+ value: i,
12
13
  confirm: () => {
13
- a.value = a.value.filter((n) => n !== t);
14
+ u.value = u.value.filter((l) => l !== t);
14
15
  }
15
16
  });
16
17
  },
17
18
  setActiveMenuRow(t) {
18
- x.value = t;
19
+ R.value = t;
19
20
  }
20
21
  });
21
- const y = s(() => !!e.selection), C = s(() => {
22
- const t = (y.value ? `${U}px ` : "") + (g.value ? `${Q}px ` : "");
23
- return e.columns.reduce((o, l) => {
24
- const n = l.width ? `${l.width}px` : `${l.colSpan || 1}fr`;
25
- return `${o} ${n}`;
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 ` : "");
24
+ return e.columns.reduce((o, { width: i, colSpan: l }) => {
25
+ const s = typeof i == "number" ? `${i}px` : i, S = s || `${l || 1}fr`;
26
+ return `${o} ${S}`;
26
27
  }, t);
27
- }), g = s(() => !!S.expanded), A = c(null), x = c(null), R = s(() => Array(e.loadingRowCount).fill(
28
+ }), v = n(() => !!x.expanded), O = a(null), R = a(null), k = n(() => Array(e.loadingRowCount).fill(
28
29
  Array(e.columns.length).fill("")
29
- )), H = s(() => e.rows.length && Array.isArray(e.rows[0]) ? e.isLoading ? [...e.rows, ...R.value] : e.rows : e.isLoading ? [
30
+ )), I = n(() => e.rows.length && Array.isArray(e.rows[0]) ? e.isLoading ? [...e.rows, ...k.value] : e.rows : e.isLoading ? [
30
31
  ...e.rows.map((o) => o[e.rowDataKey]),
31
- ...R.value
32
- ] : e.rows.map((o) => o[e.rowDataKey])), { list: T, containerProps: i, wrapperProps: $, scrollTo: b } = q(
33
- H,
32
+ ...k.value
33
+ ] : e.rows.map((o) => o[e.rowDataKey])), { list: H, containerProps: r, wrapperProps: A, scrollTo: B } = F(
34
+ I,
34
35
  {
35
- itemHeight: g.value ? (t) => w[t] ?? e.rowHeight : e.rowHeight
36
+ itemHeight: v.value ? (t) => m[t] ?? e.rowHeight : e.rowHeight
36
37
  }
37
- ), k = c(null), h = c(0), B = s(() => !!S.search), I = (t) => {
38
- i.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, u("onScroll", t.target.scrollTop);
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);
39
40
  };
40
- V(() => {
41
- h.value = i.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
42
- i.ref.value?.scrollTo({
41
+ j(() => {
42
+ w.value = r.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
43
+ r.ref.value?.scrollTo({
43
44
  top: e.defaultScrollPosition,
44
45
  behavior: "smooth"
45
46
  });
46
47
  }, 300);
47
48
  });
48
- const O = s(() => {
49
- const [t] = T.value;
49
+ const E = n(() => {
50
+ const [t] = H.value;
50
51
  return t && t.index > 0;
51
- }), P = s(() => i.style), L = s(() => e.columns.reduce((t, o) => (o.isSticky && (t[o.id] = M(o)), t), {}));
52
- F(
53
- i.ref,
52
+ }), P = n(() => r.style), D = n(() => {
53
+ const t = {
54
+ id: et,
55
+ isSticky: e.isSelectionSticky,
56
+ width: T.value
57
+ };
58
+ return h.value ? [t] : [];
59
+ }), f = n(() => [...D.value, ...e.columns]), K = n(() => f.value.reduce((t, o) => (o.isSticky && (t[o.id] = X(o)), t), {}));
60
+ J(
61
+ r.ref,
54
62
  () => {
55
- e.isInfiniteScroll && u("loadMore");
63
+ e.isInfiniteScroll && d("loadMore");
56
64
  },
57
65
  { distance: e.infiniteScrollThreshold }
58
66
  );
59
- function E() {
60
- i.ref.value?.scrollTo({
67
+ function M() {
68
+ r.ref.value?.scrollTo({
61
69
  top: 0,
62
70
  behavior: "smooth"
63
71
  });
64
72
  }
65
- function D(t) {
73
+ function W(t) {
66
74
  if (!e.sort)
67
75
  return;
68
76
  const o = e.sort.sortBy === t.id;
69
77
  if (!(t.isSortable || t.isSortable === void 0))
70
78
  return;
71
- let n = e.sort.sortOrder, f = e.sort.sortBy;
72
- o ? n = e.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, u("update:sort", { sortBy: f, sortOrder: n });
79
+ let l = e.sort.sortOrder, s = e.sort.sortBy;
80
+ o ? l = e.sort.sortOrder === "asc" ? "desc" : "asc" : s = t.id, d("update:sort", { sortBy: s, sortOrder: l });
73
81
  }
74
- function M(t) {
75
- const { isSticky: o, width: l } = t;
76
- if (!o || !l)
82
+ function X(t) {
83
+ const { isSticky: o, width: i } = t;
84
+ if (!o || !i)
77
85
  return null;
78
- const n = e.columns.findIndex((r) => r.id === t.id), f = e.columns.reduce((r, v, m) => m < n ? r + v.width : r, 0), z = e.columns.reduce((r, v, m) => m > n ? r + v.width : r, 0);
86
+ const l = f.value.findIndex((c) => c.id === t.id), s = f.value.reduce((c, C, y) => y < l ? c + C.width : c, 0), S = f.value.reduce((c, C, y) => y > l ? c + C.width : c, 0);
79
87
  return {
80
- ...t.isStickyRight ? { right: `${z}px` } : { left: `${f}px` },
88
+ ...t.isStickyRight ? { right: `${S}px` } : { left: `${s}px` },
81
89
  zIndex: 1
82
90
  };
83
91
  }
84
- const d = c([]), w = {}, _ = (t) => d.value.includes(t), K = async (t, o) => {
85
- const l = d.value.indexOf(t);
86
- if (l === -1) {
87
- d.value.push(t);
88
- const n = o.target.closest("tr");
89
- await j(), n && (w[t] = n.offsetHeight);
92
+ const g = a([]), m = {}, N = (t) => g.value.includes(t), z = async (t, o) => {
93
+ const i = g.value.indexOf(t);
94
+ if (i === -1) {
95
+ g.value.push(t);
96
+ const l = o.target.closest("tr");
97
+ await q(), l && (m[t] = l.offsetHeight);
90
98
  } else
91
- d.value.splice(l, 1), delete w[t];
92
- }, W = s(() => `${e.rowHeight}px`), X = s(
99
+ g.value.splice(i, 1), delete m[t];
100
+ }, G = n(() => `${e.rowHeight}px`), U = n(
93
101
  () => `1 / span ${e.columns.length + 1}`
94
102
  );
95
103
  return {
96
- list: T,
97
- containerProps: i,
98
- wrapperProps: $,
99
- activeRow: A,
100
- gridColumnTemplate: C,
101
- floatingActionRef: k,
102
- scrollToTop: E,
103
- toggleSortOrder: D,
104
- columnsStickyPositions: L,
105
- hasSearchSlot: B,
106
- showBackToTopButton: O,
104
+ list: H,
105
+ containerProps: r,
106
+ wrapperProps: A,
107
+ activeRow: O,
108
+ gridColumnTemplate: b,
109
+ floatingActionRef: $,
110
+ scrollToTop: M,
111
+ toggleSortOrder: W,
112
+ columnsStickyPositions: K,
113
+ hasSearchSlot: L,
114
+ showBackToTopButton: E,
107
115
  containerStyle: P,
108
- onScroll: I,
109
- scrollTo: b,
110
- savingRows: a,
111
- floatingActionPosition: h,
112
- hasExpandSlot: g,
113
- hasCheckboxes: y,
114
- toggleExpandRow: K,
115
- isRowExpanded: _,
116
- cssRowHeight: W,
117
- cssExpandGridCol: X,
118
- activeMenuRow: x
116
+ onScroll: _,
117
+ scrollTo: B,
118
+ savingRows: u,
119
+ floatingActionPosition: w,
120
+ hasExpandSlot: v,
121
+ hasCheckboxes: h,
122
+ toggleExpandRow: z,
123
+ isRowExpanded: N,
124
+ cssRowHeight: G,
125
+ cssExpandGridCol: U,
126
+ activeMenuRow: R
119
127
  };
120
128
  };
121
129
  export {
122
- tt as tableCommon
130
+ rt as tableCommon
123
131
  };
@@ -7,7 +7,7 @@ export type Column = {
7
7
  isBordered?: boolean;
8
8
  isSortable?: boolean;
9
9
  colSpan?: number;
10
- width?: number;
10
+ width?: number | string;
11
11
  isTextRight?: boolean;
12
12
  isStickyRight?: boolean;
13
13
  helpText?: string;
@@ -0,0 +1,4 @@
1
+ export declare const CHECKBOX_COLUMN_ID = "__CHECKBOX_COLUMN_ID__";
2
+ export declare const EXPAND_COL_WIDTH = 46;
3
+ export declare const CHECKBOX_COL_WIDTH = 46;
4
+ export declare const CHECKBOX_STICKY_COL_WIDTH = 57;
@@ -0,0 +1,7 @@
1
+ const _ = "__CHECKBOX_COLUMN_ID__", C = 46, O = 46, H = 57;
2
+ export {
3
+ _ as CHECKBOX_COLUMN_ID,
4
+ O as CHECKBOX_COL_WIDTH,
5
+ H as CHECKBOX_STICKY_COL_WIDTH,
6
+ C as EXPAND_COL_WIDTH
7
+ };
@@ -67,10 +67,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
67
67
  defaultScrollPosition: any;
68
68
  testId: string;
69
69
  }>>> & {
70
+ onLoadMore?: () => any;
70
71
  onOnScroll?: (event: Event) => any;
71
72
  "onUpdate:sort"?: (newSort: Sort) => any;
72
73
  onSaveRow?: (args_0: SaveRowEvent) => any;
73
- onLoadMore?: () => any;
74
74
  }, {
75
75
  testId: string;
76
76
  isLoading: boolean;
@@ -81,10 +81,10 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
81
81
  default: any;
82
82
  };
83
83
  }>> & {
84
+ onLoadMore?: () => any;
84
85
  onOnScroll?: (event: Event) => any;
85
86
  "onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
86
87
  onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
87
- onLoadMore?: () => any;
88
88
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "isLoading" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition">;
89
89
  $attrs: {
90
90
  [x: string]: unknown;
@@ -97,7 +97,7 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
97
97
  }>;
98
98
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
99
99
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
100
- $emit: ((event: "onScroll", event: Event) => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent) => void) & ((event: "loadMore") => void);
100
+ $emit: ((event: "onScroll", event: Event) => void) & ((event: "loadMore") => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent) => void);
101
101
  $el: any;
102
102
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
103
103
  sort: {
@@ -165,10 +165,10 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
165
165
  default: any;
166
166
  };
167
167
  }>> & {
168
+ onLoadMore?: () => any;
168
169
  onOnScroll?: (event: Event) => any;
169
170
  "onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
170
171
  onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
171
- onLoadMore?: () => any;
172
172
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
173
173
  "update:sort": (newSort: import("../common/Table.types").Sort) => void;
174
174
  onScroll: (event: Event) => void;
@@ -273,10 +273,10 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
273
273
  default: any;
274
274
  };
275
275
  }>> & {
276
+ onLoadMore?: () => any;
276
277
  onOnScroll?: (event: Event) => any;
277
278
  "onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
278
279
  onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
279
- onLoadMore?: () => any;
280
280
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
281
281
  __isFragment?: never;
282
282
  __isTeleport?: never;
@@ -347,10 +347,10 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
347
347
  default: any;
348
348
  };
349
349
  }>> & {
350
+ onLoadMore?: () => any;
350
351
  onOnScroll?: (event: Event) => any;
351
352
  "onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
352
353
  onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
353
- onLoadMore?: () => any;
354
354
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
355
355
  "update:sort": (newSort: import("../common/Table.types").Sort) => void;
356
356
  onScroll: (event: Event) => void;
@@ -28,6 +28,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
28
28
  zIndexBase?: number;
29
29
  rowCustomClassKey?: string;
30
30
  rowDataKey?: string;
31
+ isSelectionSticky?: boolean;
32
+ isSelectionBordered?: boolean;
31
33
  }>, {
32
34
  title: string;
33
35
  sort: any;
@@ -55,6 +57,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
55
57
  zIndexBase: number;
56
58
  rowCustomClassKey: string;
57
59
  rowDataKey: string;
60
+ isSelectionSticky: boolean;
61
+ isSelectionBordered: boolean;
58
62
  }>, {
59
63
  scrollTo: (index: number) => void;
60
64
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -97,6 +101,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
97
101
  zIndexBase?: number;
98
102
  rowCustomClassKey?: string;
99
103
  rowDataKey?: string;
104
+ isSelectionSticky?: boolean;
105
+ isSelectionBordered?: boolean;
100
106
  }>, {
101
107
  title: string;
102
108
  sort: any;
@@ -124,13 +130,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
124
130
  zIndexBase: number;
125
131
  rowCustomClassKey: string;
126
132
  rowDataKey: string;
133
+ isSelectionSticky: boolean;
134
+ isSelectionBordered: boolean;
127
135
  }>>> & {
128
136
  onSelectAll?: (value: boolean) => any;
137
+ onLoadMore?: () => any;
129
138
  "onUpdate:search"?: (query: string) => any;
130
139
  onOnScroll?: (event: Event) => any;
131
140
  "onUpdate:sort"?: (newSort: Sort) => any;
132
141
  onSaveRow?: (args_0: SaveRowEvent) => any;
133
- onLoadMore?: () => any;
134
142
  onOnClearSearch?: () => any;
135
143
  "onUpdate:selection"?: (selection: unknown[]) => any;
136
144
  onSelectRow?: (value: boolean) => any;
@@ -148,6 +156,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
148
156
  loadingRowCount: number;
149
157
  emptyStateTitle: string;
150
158
  isSticky: boolean;
159
+ zIndexBase: number;
151
160
  sections: Section[];
152
161
  isStickyHeader: boolean;
153
162
  emptyStateSubtitle: string;
@@ -159,9 +168,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
159
168
  getRowKey: (row: Row, index: number) => string | number;
160
169
  selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
161
170
  emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
162
- zIndexBase: number;
163
171
  rowCustomClassKey: string;
164
172
  rowDataKey: string;
173
+ isSelectionSticky: boolean;
174
+ isSelectionBordered: boolean;
165
175
  }>, Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
166
176
  column: Column;
167
177
  }) => any>> & Partial<Record<`cell-${string}`, (_: {
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
2
  /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0cd8af73"]]);
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css"; //*');
4
+ const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-26488faf"]]);
5
5
  export {
6
6
  s as default
7
7
  };