@vtable-guild/vtable-guild 2.7.1 → 2.8.1

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 (162) hide show
  1. package/css/presets/antdv.css +36 -0
  2. package/css/presets/element-plus.css +38 -0
  3. package/css/style.css +436 -0
  4. package/css/tailwind3-utilities.css +337 -0
  5. package/css/tailwind3.css +99 -0
  6. package/css/tailwind4.css +99 -0
  7. package/css/transitions.css +25 -0
  8. package/dist/core/src/components/VirtualList/VirtualList.d.ts +6 -3
  9. package/dist/core/src/components/VirtualList/VirtualList.d.ts.map +1 -1
  10. package/dist/core/src/components/VirtualList/VirtualList.mjs +187 -180
  11. package/dist/core/src/components/VirtualList/VirtualScrollBar.d.ts +1 -1
  12. package/dist/core/src/components/VirtualList/hooks/useChildren.d.ts +2 -2
  13. package/dist/core/src/components/VirtualList/hooks/useChildren.d.ts.map +1 -1
  14. package/dist/core/src/components/VirtualList/hooks/useChildren.mjs +12 -12
  15. package/dist/core/src/components/VirtualList/hooks/useGetSize.d.ts +1 -1
  16. package/dist/core/src/components/VirtualList/hooks/useGetSize.d.ts.map +1 -1
  17. package/dist/core/src/components/VirtualList/hooks/useGetSize.mjs +1 -1
  18. package/dist/core/src/components/VirtualList/hooks/useHeights.d.ts +2 -2
  19. package/dist/core/src/components/VirtualList/hooks/useHeights.d.ts.map +1 -1
  20. package/dist/core/src/components/VirtualList/hooks/useHeights.mjs +36 -36
  21. package/dist/core/src/components/VirtualList/hooks/useMobileTouchMove.d.ts.map +1 -1
  22. package/dist/core/src/components/VirtualList/hooks/useMobileTouchMove.mjs +11 -11
  23. package/dist/core/src/components/VirtualList/hooks/useMobileTouchMove.test.d.ts +2 -0
  24. package/dist/core/src/components/VirtualList/hooks/useMobileTouchMove.test.d.ts.map +1 -0
  25. package/dist/core/src/components/VirtualList/hooks/useScrollTo.d.ts +1 -1
  26. package/dist/core/src/components/VirtualList/hooks/useScrollTo.d.ts.map +1 -1
  27. package/dist/core/src/components/VirtualList/hooks/useScrollTo.mjs +30 -30
  28. package/dist/core/src/index.d.ts +1 -1
  29. package/dist/core/src/index.d.ts.map +1 -1
  30. package/dist/core/src/utils/types.d.ts +18 -0
  31. package/dist/core/src/utils/types.d.ts.map +1 -1
  32. package/dist/css/presets/antdv.css +36 -0
  33. package/dist/css/presets/element-plus.css +38 -0
  34. package/dist/css/style.css +436 -0
  35. package/dist/css/tailwind3-utilities.css +337 -0
  36. package/dist/css/tailwind3.css +99 -0
  37. package/dist/css/tailwind4.css +99 -0
  38. package/dist/css/transitions.css +25 -0
  39. package/dist/index.d.ts +0 -26
  40. package/dist/index.full.mjs +5116 -3769
  41. package/dist/index.mjs +85 -75
  42. package/dist/table/src/components/ColGroup.d.ts.map +1 -1
  43. package/dist/table/src/components/ColGroup.mjs +10 -10
  44. package/dist/table/src/components/ColumnWidthRow.d.ts +4 -0
  45. package/dist/table/src/components/ColumnWidthRow.d.ts.map +1 -0
  46. package/dist/table/src/components/ColumnWidthRow.mjs +23 -0
  47. package/dist/table/src/components/PaginationSizeSelect.d.ts +57 -0
  48. package/dist/table/src/components/PaginationSizeSelect.d.ts.map +1 -0
  49. package/dist/table/src/components/PaginationSizeSelect.mjs +138 -0
  50. package/dist/table/src/components/SelectionDropdown.d.ts +9 -0
  51. package/dist/table/src/components/SelectionDropdown.d.ts.map +1 -1
  52. package/dist/table/src/components/SelectionDropdown.mjs +32 -26
  53. package/dist/table/src/components/Table.d.ts +13 -2
  54. package/dist/table/src/components/Table.d.ts.map +1 -1
  55. package/dist/table/src/components/Table.mjs +496 -403
  56. package/dist/table/src/components/TableCell.d.ts.map +1 -1
  57. package/dist/table/src/components/TableCell.mjs +80 -74
  58. package/dist/table/src/components/TableHeaderCell.d.ts.map +1 -1
  59. package/dist/table/src/components/TableHeaderCell.mjs +85 -83
  60. package/dist/table/src/components/TablePagination.d.ts +74 -0
  61. package/dist/table/src/components/TablePagination.d.ts.map +1 -0
  62. package/dist/table/src/components/TablePagination.mjs +350 -0
  63. package/dist/table/src/components/TablePagination.test.d.ts +2 -0
  64. package/dist/table/src/components/TablePagination.test.d.ts.map +1 -0
  65. package/dist/table/src/components/TablePaginationCompatClass.test.d.ts +2 -0
  66. package/dist/table/src/components/TablePaginationCompatClass.test.d.ts.map +1 -0
  67. package/dist/table/src/components/TablePaginationLayout.test.d.ts +2 -0
  68. package/dist/table/src/components/TablePaginationLayout.test.d.ts.map +1 -0
  69. package/dist/table/src/components/VTable.vue.d.ts.map +1 -1
  70. package/dist/table/src/components/VTable.vue.mjs +34 -26
  71. package/dist/table/src/components/VTableMinWidth.test.d.ts +2 -0
  72. package/dist/table/src/components/VTableMinWidth.test.d.ts.map +1 -0
  73. package/dist/table/src/components/VTableSummary.d.ts +15 -75
  74. package/dist/table/src/components/VTableSummary.d.ts.map +1 -1
  75. package/dist/table/src/components/VTableSummary.mjs +7 -7
  76. package/dist/table/src/components/VTableSummaryCell.d.ts.map +1 -1
  77. package/dist/table/src/components/VTableSummaryCell.mjs +26 -24
  78. package/dist/table/src/components/VirtualTableBody.d.ts.map +1 -1
  79. package/dist/table/src/components/VirtualTableBody.mjs +107 -95
  80. package/dist/table/src/composables/useColumnLayout.d.ts +28 -0
  81. package/dist/table/src/composables/useColumnLayout.d.ts.map +1 -0
  82. package/dist/table/src/composables/useColumnLayout.mjs +259 -0
  83. package/dist/table/src/composables/useColumnLayout.test.d.ts +2 -0
  84. package/dist/table/src/composables/useColumnLayout.test.d.ts.map +1 -0
  85. package/dist/table/src/composables/useColumnMetrics.d.ts +5 -3
  86. package/dist/table/src/composables/useColumnMetrics.d.ts.map +1 -1
  87. package/dist/table/src/composables/useColumnMetrics.mjs +64 -55
  88. package/dist/table/src/composables/useExpand.d.ts +2 -0
  89. package/dist/table/src/composables/useExpand.d.ts.map +1 -1
  90. package/dist/table/src/composables/useExpand.mjs +42 -20
  91. package/dist/table/src/composables/usePagination.d.ts +15 -0
  92. package/dist/table/src/composables/usePagination.d.ts.map +1 -0
  93. package/dist/table/src/composables/usePagination.mjs +65 -0
  94. package/dist/table/src/composables/usePagination.test.d.ts +2 -0
  95. package/dist/table/src/composables/usePagination.test.d.ts.map +1 -0
  96. package/dist/table/src/composables/useResize.d.ts +1 -0
  97. package/dist/table/src/composables/useResize.d.ts.map +1 -1
  98. package/dist/table/src/composables/useResize.mjs +67 -39
  99. package/dist/table/src/composables/useScroll.d.ts +3 -0
  100. package/dist/table/src/composables/useScroll.d.ts.map +1 -1
  101. package/dist/table/src/composables/useScroll.mjs +43 -41
  102. package/dist/table/src/composables/useSelection.d.ts +2 -1
  103. package/dist/table/src/composables/useSelection.d.ts.map +1 -1
  104. package/dist/table/src/composables/useSelection.mjs +204 -155
  105. package/dist/table/src/composables/useTreeData.d.ts +4 -0
  106. package/dist/table/src/composables/useTreeData.d.ts.map +1 -1
  107. package/dist/table/src/composables/useTreeData.mjs +48 -43
  108. package/dist/table/src/context.d.ts +6 -1
  109. package/dist/table/src/context.d.ts.map +1 -1
  110. package/dist/table/src/index.d.ts +10 -87
  111. package/dist/table/src/index.d.ts.map +1 -1
  112. package/dist/table/src/index.mjs +12 -12
  113. package/dist/table/src/types/column.d.ts +8 -2
  114. package/dist/table/src/types/column.d.ts.map +1 -1
  115. package/dist/table/src/types/index.d.ts +1 -0
  116. package/dist/table/src/types/index.d.ts.map +1 -1
  117. package/dist/table/src/types/pagination.d.ts +66 -0
  118. package/dist/table/src/types/pagination.d.ts.map +1 -0
  119. package/dist/table/src/types/pagination.typecheck.d.ts +25 -0
  120. package/dist/table/src/types/pagination.typecheck.d.ts.map +1 -0
  121. package/dist/table/src/types/table.d.ts +8 -1
  122. package/dist/table/src/types/table.d.ts.map +1 -1
  123. package/dist/table/src/utils/columnWidth.d.ts +55 -7
  124. package/dist/table/src/utils/columnWidth.d.ts.map +1 -1
  125. package/dist/table/src/utils/columnWidth.mjs +91 -21
  126. package/dist/table/src/utils/paginationLayout.d.ts +13 -0
  127. package/dist/table/src/utils/paginationLayout.d.ts.map +1 -0
  128. package/dist/table/src/utils/paginationLayout.mjs +55 -0
  129. package/dist/table/src/utils/paginationLayout.test.d.ts +2 -0
  130. package/dist/table/src/utils/paginationLayout.test.d.ts.map +1 -0
  131. package/dist/table/src/utils/popupPosition.d.ts +4 -1
  132. package/dist/table/src/utils/popupPosition.d.ts.map +1 -1
  133. package/dist/table/src/utils/popupPosition.mjs +34 -15
  134. package/dist/theme/src/augment.d.ts +2 -0
  135. package/dist/theme/src/augment.d.ts.map +1 -1
  136. package/dist/theme/src/compat/antdv-pagination.d.ts +4 -0
  137. package/dist/theme/src/compat/antdv-pagination.d.ts.map +1 -0
  138. package/dist/theme/src/compat/antdv-pagination.mjs +29 -0
  139. package/dist/theme/src/index.d.ts +5 -0
  140. package/dist/theme/src/index.d.ts.map +1 -1
  141. package/dist/theme/src/pagination.d.ts +153 -0
  142. package/dist/theme/src/pagination.d.ts.map +1 -0
  143. package/dist/theme/src/pagination.mjs +144 -0
  144. package/dist/theme/src/presets/antdv/table-locale.d.ts +2 -2
  145. package/dist/theme/src/presets/antdv/table-locale.mjs +2 -2
  146. package/dist/theme/src/presets/antdv/table.d.ts +3 -0
  147. package/dist/theme/src/presets/antdv/table.d.ts.map +1 -1
  148. package/dist/theme/src/presets/antdv/table.mjs +3 -0
  149. package/dist/theme/src/presets/element-plus/table-locale.d.ts +2 -2
  150. package/dist/theme/src/presets/element-plus/table-locale.mjs +2 -2
  151. package/dist/theme/src/presets/element-plus/table.d.ts +3 -0
  152. package/dist/theme/src/presets/element-plus/table.d.ts.map +1 -1
  153. package/dist/theme/src/presets/element-plus/table.mjs +3 -0
  154. package/dist/theme/src/presets/index.d.ts.map +1 -1
  155. package/dist/theme/src/presets/index.mjs +60 -57
  156. package/dist/theme/src/presets/types.d.ts +1 -0
  157. package/dist/theme/src/presets/types.d.ts.map +1 -1
  158. package/dist/vtable-guild/src/augment.d.ts +15 -0
  159. package/dist/vtable-guild/src/augment.d.ts.map +1 -0
  160. package/dist/vtable-guild/src/index.d.ts +1 -0
  161. package/dist/vtable-guild/src/index.d.ts.map +1 -1
  162. package/package.json +4 -3
@@ -1,43 +1,44 @@
1
- import Re from "./Filler.mjs";
2
- import ze from "./hooks/useChildren.mjs";
3
- import Be from "./hooks/useFrameWheel.mjs";
4
- import { useGetSize as Ce } from "./hooks/useGetSize.mjs";
5
- import we from "./hooks/useHeights.mjs";
6
- import Te from "./hooks/useMobileTouchMove.mjs";
7
- import Ve from "./hooks/useScrollDrag.mjs";
8
- import Ie from "./hooks/useScrollTo.mjs";
9
- import oe from "./VirtualScrollBar.mjs";
10
- import { getSpinSize as ue } from "./utils/scrollbarUtil.mjs";
11
- import { PrefixSums as Ae } from "./utils/PrefixSums.mjs";
12
- import { defineComponent as We, computed as y, watch as H, shallowRef as _, ref as u, unref as ke, toRaw as Fe, onBeforeUnmount as Oe, createVNode as D } from "vue";
13
- const re = [], De = {
1
+ import Be from "./Filler.mjs";
2
+ import Ce from "./hooks/useChildren.mjs";
3
+ import Te from "./hooks/useFrameWheel.mjs";
4
+ import { useGetSize as we } from "./hooks/useGetSize.mjs";
5
+ import Ie from "./hooks/useHeights.mjs";
6
+ import Ve from "./hooks/useMobileTouchMove.mjs";
7
+ import Ae from "./hooks/useScrollDrag.mjs";
8
+ import We from "./hooks/useScrollTo.mjs";
9
+ import re from "./VirtualScrollBar.mjs";
10
+ import { getSpinSize as ce } from "./utils/scrollbarUtil.mjs";
11
+ import { PrefixSums as ke } from "./utils/PrefixSums.mjs";
12
+ import { defineComponent as Fe, computed as H, watch as x, shallowRef as q, ref as u, unref as De, toRaw as Ke, onBeforeUnmount as Oe, createVNode as P } from "vue";
13
+ const se = [], Pe = {
14
14
  overflowY: "auto",
15
15
  overflowAnchor: "none"
16
16
  };
17
- function Ke(t) {
17
+ function je(t) {
18
18
  const m = {};
19
19
  for (const h of Object.keys(t))
20
20
  h.startsWith("on") || (m[h] = t[h]);
21
21
  return m;
22
22
  }
23
- function Pe(t, m, h, L) {
24
- let R = t.findIndex(h);
25
- R >= m && (R = 0);
26
- let x = t.findIndex(h + L + 1);
27
- return x >= m && (x = m - 1), x = Math.min(x + 1, m - 1), {
23
+ function Le(t, m, h, $) {
24
+ let z = t.findIndex(h);
25
+ z >= m && (z = 0);
26
+ let M = t.findIndex(h + $ + 1);
27
+ return M >= m && (M = m - 1), M = Math.min(M + 1, m - 1), {
28
28
  scrollHeight: t.total,
29
- start: R,
30
- end: x,
31
- offset: t.offsetOf(R)
29
+ start: z,
30
+ end: M,
31
+ offset: t.offsetOf(z)
32
32
  };
33
33
  }
34
- const Qe = /* @__PURE__ */ We({
34
+ const pe = /* @__PURE__ */ Fe({
35
35
  name: "VirtualList",
36
36
  props: {
37
37
  prefixCls: {
38
38
  type: String,
39
39
  default: "vtg-virtual-list"
40
40
  },
41
+ holderClass: String,
41
42
  data: {
42
43
  type: Array
43
44
  },
@@ -82,276 +83,282 @@ const Qe = /* @__PURE__ */ We({
82
83
  setup(t, {
83
84
  expose: m,
84
85
  attrs: h,
85
- slots: L
86
+ slots: $
86
87
  }) {
87
- const R = y(() => t.itemHeight);
88
- let x = t.itemKey;
89
- H(() => t.itemKey, (e) => {
90
- x = e;
88
+ const z = H(() => t.itemHeight);
89
+ let M = t.itemKey;
90
+ x(() => t.itemKey, (e) => {
91
+ M = e;
91
92
  });
92
- const V = (e) => {
93
- const l = x;
94
- return typeof l == "function" ? l(e) : e?.[l];
95
- }, [ce, q, z, se] = we(V, void 0, void 0, () => t.disableHeightMeasure), r = _(t?.data || re);
96
- H(() => t.data, () => {
97
- r.value = t?.data || re;
93
+ const I = (e, l) => {
94
+ const a = M;
95
+ return typeof a == "function" ? a(e, l) : e?.[a];
96
+ }, [ve, G, B, fe] = Ie(I, void 0, void 0, () => t.disableHeightMeasure), c = q(t?.data || se);
97
+ x(() => t.data, () => {
98
+ c.value = t?.data || se;
98
99
  });
99
- const A = y(() => !!(t.virtual !== !1 && t.height && t.itemHeight)), c = y(() => {
100
- const e = r.value;
101
- return A.value && e && (t.itemHeight * e.length > t.height || !!t.scrollWidth);
102
- }), M = u(), G = u(), J = u(), K = u(!1), Q = _(), Z = _(), s = u(0), i = u(0), N = u(!1), p = u(0), ee = u(0), d = u(t.scrollWidth || 0), o = u(0), f = u(0), S = u(0), B = u(void 0);
103
- function C(e) {
100
+ const W = H(() => !!(t.virtual !== !1 && t.height && t.itemHeight)), s = H(() => {
101
+ const e = c.value;
102
+ return W.value && e && (t.itemHeight * e.length > t.height || !!t.scrollWidth);
103
+ }), b = u(), J = u(), Q = u(), j = u(!1), Z = q(), p = q(), r = u(0), n = u(0), E = u(!1), ee = u(0), te = u(0), d = u(t.scrollWidth || 0), o = u(0), v = u(0), S = u(0), C = u(void 0);
104
+ function le(e) {
105
+ const l = o.value - t.height;
106
+ return Math.max(0, Math.min(e, l || 0));
107
+ }
108
+ function T(e) {
104
109
  let l;
105
- typeof e == "function" ? l = e(s.value) : l = e;
106
- const a = o.value - t.height, n = Math.max(0, Math.min(l, a || 0));
107
- M.value && (M.value.scrollTop = n), s.value = n;
110
+ typeof e == "function" ? l = e(r.value) : l = e;
111
+ const a = le(l);
112
+ b.value && (b.value.scrollTop = a), r.value = a;
108
113
  }
109
- const W = new Ae();
110
- H([c, A, s, r, se, () => t.height], ([, , , e, l], a) => {
111
- if (!a)
112
- W.markAllDirty();
114
+ const V = new ke();
115
+ x([s, W, r, c, fe, () => t.height, () => t.itemHeight], ([, , , e, l, , a], i) => {
116
+ if (!i)
117
+ V.markAllDirty();
113
118
  else {
114
- const [, , , b, X] = a;
115
- e !== b ? W.markAllDirty() : l !== X && W.markDirtyFrom(f.value);
119
+ const [, , , y, U, , O] = i;
120
+ e !== y || a !== O ? V.markAllDirty() : l !== U && V.markDirtyFrom(v.value);
116
121
  }
117
- if (!A.value) {
118
- o.value = 0, f.value = 0, S.value = r.value.length - 1, B.value = void 0;
122
+ if (!W.value) {
123
+ o.value = 0, v.value = 0, S.value = c.value.length - 1, C.value = void 0;
119
124
  return;
120
125
  }
121
- if (!c.value) {
122
- o.value = G.value?.offsetHeight || 0, f.value = 0, S.value = r.value.length - 1, B.value = void 0;
126
+ if (!s.value) {
127
+ o.value = J.value?.offsetHeight || 0, v.value = 0, S.value = c.value.length - 1, C.value = void 0;
123
128
  return;
124
129
  }
125
130
  const {
126
- itemHeight: n,
127
- height: P
128
- } = t, T = r.value.length;
129
- if (!T) {
130
- o.value = 0, f.value = 0, S.value = -1, B.value = 0;
131
+ itemHeight: R,
132
+ height: L
133
+ } = t, K = c.value.length;
134
+ if (!K) {
135
+ o.value = 0, v.value = 0, S.value = -1, C.value = 0;
131
136
  return;
132
137
  }
133
- if (ke(z.id) === 0) {
134
- const b = n, X = P, Y = Math.max(0, Math.floor(s.value / b)), be = Y * b;
135
- let U = Y + Math.ceil(X / b);
136
- U = Math.min(U + 1, T - 1), o.value = T * b, f.value = Y, S.value = U, B.value = be;
138
+ if (De(B.id) === 0) {
139
+ const y = R, U = L, O = Math.max(0, Math.floor(r.value / y)), ze = O * y;
140
+ let _ = O + Math.ceil(U / y);
141
+ _ = Math.min(_ + 1, K - 1), o.value = K * y, v.value = O, S.value = _, C.value = ze;
137
142
  return;
138
143
  }
139
- const Me = Fe(r.value);
140
- W.sync(T, (b) => z.get(V(Me[b])), n);
141
- const j = Pe(W, T, s.value, P);
142
- o.value = j.scrollHeight, f.value = j.start, S.value = j.end, B.value = j.offset;
144
+ const Re = Ke(c.value);
145
+ V.sync(K, (y) => B.get(I(Re[y], y)), R);
146
+ const N = Le(V, K, r.value, L);
147
+ o.value = N.scrollHeight, v.value = N.start, S.value = N.end, C.value = N.offset;
143
148
  }, {
144
149
  immediate: !0
145
- }), H(o, () => {
146
- const e = z.getRecord();
150
+ }), x(o, () => {
151
+ const e = B.getRecord();
147
152
  if (e.size === 1) {
148
- const l = Array.from(e.keys())[0], a = e.get(l), n = r.value[f.value];
149
- if (n && a === void 0 && V(n) === l) {
150
- const P = z.get(l) - t.itemHeight;
151
- C((T) => T + P);
153
+ const l = Array.from(e.keys())[0], a = e.get(l), i = c.value[v.value];
154
+ if (i && a === void 0 && I(i, v.value) === l) {
155
+ const R = B.get(l) - t.itemHeight;
156
+ T((L) => L + R);
152
157
  }
153
158
  }
154
- if (A.value && t.height) {
159
+ if (W.value && t.height) {
155
160
  const l = Math.max(0, o.value - t.height);
156
- s.value > l && C(l);
161
+ r.value > l && T(l);
157
162
  }
158
- z.resetRecord();
163
+ B.resetRecord();
159
164
  });
160
165
  const g = u({
161
166
  width: 0,
162
167
  height: t.height || 0
163
168
  });
164
169
  let w = null, k = null;
165
- const ve = (e) => {
170
+ const he = (e) => {
166
171
  k !== e && (w && k && w.unobserve(k), k = e, e && (w || (w = new ResizeObserver((l) => {
167
172
  const a = l[0];
168
173
  if (a) {
169
- const n = a.target;
174
+ const i = a.target;
170
175
  g.value = {
171
- width: n.offsetWidth,
172
- height: n.offsetHeight
173
- }, d.value = t.scrollWidth ?? n.offsetWidth;
176
+ width: i.offsetWidth,
177
+ height: i.offsetHeight
178
+ }, d.value = t.scrollWidth ?? i.offsetWidth;
174
179
  }
175
180
  })), w.observe(e)));
176
181
  };
177
182
  Oe(() => {
178
183
  w?.disconnect(), w = null, k = null;
179
184
  });
180
- const v = y(() => t.direction === "rtl"), $ = () => ({
181
- x: v.value ? -i.value : i.value,
182
- y: s.value
183
- }), E = u($()), F = (e, l = !1) => {
185
+ const f = H(() => t.direction === "rtl"), X = () => ({
186
+ x: f.value ? -n.value : n.value,
187
+ y: r.value
188
+ }), Y = u(X()), F = (e, l = !1) => {
184
189
  if (t.onVirtualScroll) {
185
190
  const a = {
186
- ...$(),
191
+ ...X(),
187
192
  ...e
188
193
  };
189
- (l || E.value.x !== a.x || E.value.y !== a.y) && (t.onVirtualScroll(a), E.value = a);
194
+ (l || Y.value.x !== a.x || Y.value.y !== a.y) && (t.onVirtualScroll(a), Y.value = a);
190
195
  }
191
- }, I = y(() => Math.max(0, (d.value || 0) - g.value.width)), fe = y(() => s.value === 0), he = y(() => s.value + t.height >= o.value), de = y(() => i.value === 0), ge = y(() => i.value >= I.value), O = (e) => Math.max(0, Math.min(e, I.value));
192
- H(I, () => {
193
- i.value = O(i.value), F(void 0, !0);
196
+ }, A = H(() => Math.max(0, (d.value || 0) - g.value.width)), de = H(() => r.value === 0), ge = H(() => r.value + t.height >= o.value), me = H(() => n.value === 0), Se = H(() => n.value >= A.value), D = (e) => Math.max(0, Math.min(e, A.value));
197
+ x(A, () => {
198
+ n.value = D(n.value), F(void 0, !0);
194
199
  }, {
195
200
  flush: "post"
196
201
  });
197
- const te = () => {
198
- Q.value?.delayHidden(), Z.value?.delayHidden();
199
- }, [me] = Be(c, fe, he, de, ge, I.value > 0, (e, l) => {
202
+ const ae = () => {
203
+ Z.value?.delayHidden(), p.value?.delayHidden();
204
+ }, [ye] = Te(s, de, ge, me, Se, A.value > 0, (e, l) => {
200
205
  if (l) {
201
- const a = O(v.value ? i.value - e : i.value + e);
202
- i.value = a, F({
203
- x: v.value ? -a : a
206
+ const a = D(f.value ? n.value - e : n.value + e);
207
+ n.value = a, F({
208
+ x: f.value ? -a : a
204
209
  });
205
210
  } else
206
- C((a) => a + e);
211
+ T((a) => a + e);
207
212
  });
208
- Te(c, M, (e, l) => {
213
+ Ve(s, b, (e, l, a) => {
209
214
  if (e) {
210
- const a = O(v.value ? i.value - l : i.value + l);
211
- return i.value = a, F({
212
- x: v.value ? -a : a
213
- }), !0;
214
- } else
215
- return C((a) => a + l), !0;
216
- }), Ve(c, M, (e) => {
217
- C((l) => l + e);
215
+ const i = D(f.value ? n.value - l : n.value + l), R = i !== n.value;
216
+ return n.value = i, F({
217
+ x: f.value ? -i : i
218
+ }), a ? R : !0;
219
+ } else {
220
+ const i = le(r.value + l) !== r.value;
221
+ return T((R) => R + l), a ? i : !0;
222
+ }
223
+ }), Ae(s, b, (e) => {
224
+ T((l) => l + e);
218
225
  });
219
- const le = (e, l) => {
220
- l ? (i.value = e, F({
221
- x: v.value ? -e : e
222
- })) : C(e);
223
- }, ae = () => {
224
- N.value = !0;
225
- }, ie = () => {
226
- N.value = !1;
226
+ const ie = (e, l) => {
227
+ l ? (n.value = e, F({
228
+ x: f.value ? -e : e
229
+ })) : T(e);
230
+ }, ne = () => {
231
+ E.value = !0;
232
+ }, oe = () => {
233
+ E.value = !1;
227
234
  };
228
- H([() => t.height, o, c, () => g.value.height], () => {
229
- c.value && t.height && o.value && (p.value = ue(g.value.height, o.value));
235
+ x([() => t.height, o, s, () => g.value.height], () => {
236
+ s.value && t.height && o.value && (ee.value = ce(g.value.height, o.value));
230
237
  }, {
231
238
  immediate: !0
232
- }), H([() => g.value.width, d], () => {
233
- c.value && d.value && (ee.value = ue(g.value.width, d.value));
239
+ }), x([() => g.value.width, d], () => {
240
+ s.value && d.value && (te.value = ce(g.value.width, d.value));
234
241
  }, {
235
242
  immediate: !0
236
- }), H(() => t.scrollWidth, (e) => {
237
- d.value = e ?? g.value.width, i.value = O(i.value);
243
+ }), x(() => t.scrollWidth, (e) => {
244
+ d.value = e ?? g.value.width, n.value = D(n.value);
238
245
  }, {
239
246
  immediate: !0
240
247
  });
241
- function Se(e) {
248
+ function He(e) {
242
249
  const l = e.currentTarget.scrollTop;
243
- !A.value || !c.value ? s.value = l : l !== s.value && C(l), t.onScroll?.(e), F();
250
+ !W.value || !s.value ? r.value = l : l !== r.value && T(l), t.onScroll?.(e), F();
244
251
  }
245
- const [ne, ye] = Ie(M, r, z, R, V, () => q(!0), (e) => {
246
- const l = ye(), a = Math.max(o.value, l) - t.height, n = Math.max(0, Math.min(e, a || 0));
247
- M.value && (M.value.scrollTop = n), s.value = n;
248
- }, te, () => t.disableHeightMeasure);
252
+ const [ue, xe] = We(b, c, B, z, I, () => G(!0), (e) => {
253
+ const l = xe(), a = Math.max(o.value, l) - t.height, i = Math.max(0, Math.min(e, a || 0));
254
+ b.value && (b.value.scrollTop = i), r.value = i;
255
+ }, ae, () => t.disableHeightMeasure);
249
256
  m({
250
- nativeElement: J,
251
- getScrollInfo: $,
252
- getHorizontalRange: () => I.value,
257
+ nativeElement: Q,
258
+ getScrollInfo: X,
259
+ getHorizontalRange: () => A.value,
253
260
  scrollTo: (e) => {
254
261
  function l(a) {
255
262
  return a && typeof a == "object" && ("left" in a || "top" in a);
256
263
  }
257
- l(e) ? (e.left !== void 0 && (i.value = O(e.left)), ne(e.top)) : ne(e);
264
+ l(e) ? (e.left !== void 0 && (n.value = D(e.left)), ue(e.top)) : ue(e);
258
265
  }
259
- }), H([f, S, r], () => {
266
+ }), x([v, S, c], () => {
260
267
  if (t.onVisibleChange) {
261
- const e = r.value.slice(f.value, S.value + 1);
262
- t.onVisibleChange(e, r.value);
268
+ const e = c.value.slice(v.value, S.value + 1);
269
+ t.onVisibleChange(e, c.value);
263
270
  }
264
271
  }, {
265
272
  flush: "post"
266
273
  });
267
- const He = Ce(r, V, z, R), xe = ze(r, f, S, d, i, ce, (e, l, a) => L.default?.({
274
+ const Me = we(c, I, B, z), be = Ce(c, v, S, d, n, ve, (e, l, a) => $.default?.({
268
275
  item: e,
269
276
  index: l,
270
277
  ...a
271
278
  }), {
272
- getKey: V
279
+ getKey: I
273
280
  });
274
281
  return () => {
275
282
  const e = {};
276
- t.height && (e[t.fullHeight ? "height" : "maxHeight"] = `${t.height}px`, Object.assign(e, De), c.value && (e.overflowY = "hidden", I.value > 0 && (e.overflowX = "hidden"), N.value && (e.pointerEvents = "none")));
283
+ t.height && (e[t.fullHeight ? "height" : "maxHeight"] = `${t.height}px`, Object.assign(e, Pe), s.value && (e.overflowY = "hidden", A.value > 0 && (e.overflowX = "hidden"), E.value && (e.pointerEvents = "none")));
277
284
  const l = t.extraRender?.({
278
- start: f.value,
285
+ start: v.value,
279
286
  end: S.value,
280
- virtual: c.value,
281
- offsetX: i.value,
282
- offsetY: B.value || 0,
283
- rtl: v.value,
284
- getSize: He
287
+ virtual: s.value,
288
+ offsetX: n.value,
289
+ offsetY: C.value || 0,
290
+ rtl: f.value,
291
+ getSize: Me
285
292
  }), a = t.component;
286
- return D("div", {
287
- ref: J,
288
- ...Ke(h),
293
+ return P("div", {
294
+ ref: Q,
295
+ ...je(h),
289
296
  style: {
290
297
  position: "relative",
291
298
  ...h.style
292
299
  },
293
- dir: v.value ? "rtl" : void 0,
300
+ dir: f.value ? "rtl" : void 0,
294
301
  class: [t.prefixCls, {
295
- [`${t.prefixCls}-rtl`]: v.value
302
+ [`${t.prefixCls}-rtl`]: f.value
296
303
  }, h.class],
297
304
  onMouseenter: () => {
298
- K.value = !0;
305
+ j.value = !0;
299
306
  },
300
307
  onMouseleave: () => {
301
- K.value = !1;
308
+ j.value = !1;
302
309
  }
303
- }, [D(a, {
304
- class: `${t.prefixCls}-holder`,
310
+ }, [P(a, {
311
+ class: [`${t.prefixCls}-holder`, t.holderClass],
305
312
  style: e,
306
- ref: (n) => {
307
- M.value = n?.$el ?? n, ve(n?.$el ?? n);
313
+ ref: (i) => {
314
+ b.value = i?.$el ?? i, he(i?.$el ?? i);
308
315
  },
309
- onScroll: Se,
310
- onWheel: me,
311
- onMouseenter: te
316
+ onScroll: He,
317
+ onWheel: ye,
318
+ onMouseenter: ae
312
319
  }, {
313
- default: () => [D(Re, {
320
+ default: () => [P(Be, {
314
321
  prefixCls: t.prefixCls,
315
322
  height: o.value,
316
- offsetX: i.value,
317
- offsetY: B.value,
323
+ offsetX: n.value,
324
+ offsetY: C.value,
318
325
  scrollWidth: d.value,
319
- onInnerResize: q,
320
- ref: G,
326
+ onInnerResize: G,
327
+ ref: J,
321
328
  innerProps: t.innerProps,
322
- rtl: v.value,
329
+ rtl: f.value,
323
330
  extra: l
324
331
  }, {
325
- default: () => [xe.value]
332
+ default: () => [be.value]
326
333
  })]
327
- }), c.value && o.value > (t.height || 0) && D(oe, {
328
- ref: Q,
334
+ }), s.value && o.value > (t.height || 0) && P(re, {
335
+ ref: Z,
329
336
  prefixCls: t.prefixCls,
330
- scrollOffset: s.value,
337
+ scrollOffset: r.value,
331
338
  scrollRange: o.value,
332
- rtl: v.value,
333
- onScroll: le,
334
- onStartMove: ae,
335
- onStopMove: ie,
336
- spinSize: p.value,
339
+ rtl: f.value,
340
+ onScroll: ie,
341
+ onStartMove: ne,
342
+ onStopMove: oe,
343
+ spinSize: ee.value,
337
344
  containerSize: g.value.height,
338
- active: K.value,
345
+ active: j.value,
339
346
  showScrollBar: t.showScrollBar,
340
347
  style: t.styles?.verticalScrollBar,
341
348
  thumbStyle: t.styles?.verticalScrollBarThumb
342
- }), c.value && d.value > g.value.width && D(oe, {
343
- ref: Z,
349
+ }), s.value && d.value > g.value.width && P(re, {
350
+ ref: p,
344
351
  prefixCls: t.prefixCls,
345
- scrollOffset: i.value,
352
+ scrollOffset: n.value,
346
353
  scrollRange: d.value,
347
- rtl: v.value,
348
- onScroll: le,
349
- onStartMove: ae,
350
- onStopMove: ie,
351
- spinSize: ee.value,
354
+ rtl: f.value,
355
+ onScroll: ie,
356
+ onStartMove: ne,
357
+ onStopMove: oe,
358
+ spinSize: te.value,
352
359
  containerSize: g.value.width,
353
360
  horizontal: !0,
354
- active: K.value,
361
+ active: j.value,
355
362
  showScrollBar: t.showScrollBar,
356
363
  style: t.styles?.horizontalScrollBar,
357
364
  thumbStyle: t.styles?.horizontalScrollBarThumb
@@ -360,5 +367,5 @@ const Qe = /* @__PURE__ */ We({
360
367
  }
361
368
  });
362
369
  export {
363
- Qe as default
370
+ pe as default
364
371
  };
@@ -120,9 +120,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
120
120
  default: undefined;
121
121
  };
122
122
  }>> & Readonly<{}>, {
123
+ active: boolean;
123
124
  style: CSSProperties;
124
125
  horizontal: boolean;
125
- active: boolean;
126
126
  thumbStyle: CSSProperties;
127
127
  showScrollBar: boolean | "optional" | "hover";
128
128
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,10 +1,10 @@
1
1
  import { CSSProperties, Ref, VNode } from 'vue';
2
2
  import { Key } from '../interface';
3
- export default function useChildren(list: Ref<any[]>, startIndex: Ref<number>, endIndex: Ref<number>, scrollWidth: Ref<number>, offsetX: Ref<number>, setNodeRef: (item: any, ele: HTMLElement | null) => void, renderFunc: (item: any, index: number, props: {
3
+ export default function useChildren(list: Ref<any[]>, startIndex: Ref<number>, endIndex: Ref<number>, scrollWidth: Ref<number>, offsetX: Ref<number>, setNodeRef: (item: any, ele: HTMLElement | null, index?: number) => void, renderFunc: (item: any, index: number, props: {
4
4
  style: CSSProperties;
5
5
  offsetX: number;
6
6
  }) => VNode[] | undefined, { getKey }: {
7
- getKey: (item: any) => Key;
7
+ getKey: (item: any, index?: number) => Key;
8
8
  }): import('vue').ComputedRef<VNode<import('vue').RendererNode, import('vue').RendererElement, {
9
9
  [key: string]: any;
10
10
  }>[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"useChildren.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/components/VirtualList/hooks/useChildren.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AACpD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AASvC,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,IAAI,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,EAChB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,EACvB,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EACrB,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,EACxB,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,EACpB,UAAU,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,EACxD,UAAU,EAAE,CACV,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,MAAM,EACb,KAAK,EAAE;IAAE,KAAK,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,KAC7C,KAAK,EAAE,GAAG,SAAS,EACxB,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAA;CAAE;;MAwB3C"}
1
+ {"version":3,"file":"useChildren.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/components/VirtualList/hooks/useChildren.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AACpD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AASvC,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,IAAI,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,EAChB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,EACvB,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EACrB,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,EACxB,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,EAGpB,UAAU,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,GAAG,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,EACxE,UAAU,EAAE,CACV,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,MAAM,EACb,KAAK,EAAE;IAAE,KAAK,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,KAC7C,KAAK,EAAE,GAAG,SAAS,EACxB,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,GAAG,CAAA;CAAE;;MAyB3D"}
@@ -1,17 +1,17 @@
1
- import s from "../Item.mjs";
2
- import { computed as v, createVNode as m, isVNode as y } from "vue";
3
- function b(e) {
1
+ import v from "../Item.mjs";
2
+ import { computed as m, createVNode as b, isVNode as y } from "vue";
3
+ function j(e) {
4
4
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !y(e);
5
5
  }
6
- function N(e, u, r, l, n, c, a, { getKey: f }) {
7
- return v(() => e.value.slice(u.value, r.value + 1).map((t, i) => {
8
- const o = a(t, u.value + i, {
6
+ function N(e, n, r, l, c, a, f, { getKey: i }) {
7
+ return m(() => e.value.slice(n.value, r.value + 1).map((t, p) => {
8
+ const o = n.value + p, u = f(t, o, {
9
9
  style: { width: `${l.value}px` },
10
- offsetX: n.value
11
- }), p = f(t);
12
- return m(
13
- s,
14
- { key: p, setRef: (d) => c(t, d) },
10
+ offsetX: c.value
11
+ }), s = i(t, o);
12
+ return b(
13
+ v,
14
+ { key: s, setRef: (d) => a(t, d, o) },
15
15
  // `renderFunc` 返回的已经是 VNode[],这里**不能再包一层数组**。
16
16
  // 包成 [[VNode]] 之后 Vue 的 normalizeSlotValue 会把内层数组转成 Fragment,
17
17
  // Item 的 cloneVNode(child, { ref }) 于是把 ref 挂到 Fragment 上——
@@ -19,7 +19,7 @@ function N(e, u, r, l, n, c, a, { getKey: f }) {
19
19
  // useHeights.getElement() 拿到 Text 就返回 null,行高**永远测不到**:
20
20
  // heights.id 恒为 0,可视区计算一直走估算分支,scrollHeight 恒等于
21
21
  // 行数 × itemHeight。行实际比估算高时,末尾几行落在可滚动范围之外。
22
- b(o) ? o : { default: () => o ?? [] }
22
+ j(u) ? u : { default: () => u ?? [] }
23
23
  );
24
24
  }));
25
25
  }
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
2
  import { default as CacheMap } from '../utils/CacheMap';
3
3
  import { GetSize, Key } from '../interface';
4
- export declare function useGetSize(mergedData: Ref<any[]>, getKey: (item: any) => Key, heights: CacheMap, itemHeight: ComputedRef<number | undefined>): GetSize;
4
+ export declare function useGetSize(mergedData: Ref<any[]>, getKey: (item: any, index?: number) => Key, heights: CacheMap, itemHeight: ComputedRef<number | undefined>): GetSize;
5
5
  //# sourceMappingURL=useGetSize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGetSize.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/components/VirtualList/hooks/useGetSize.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAEhD,wBAAgB,UAAU,CACxB,UAAU,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,EACtB,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,EAC1B,OAAO,EAAE,QAAQ,EACjB,UAAU,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,GAC1C,OAAO,CAqCT"}
1
+ {"version":3,"file":"useGetSize.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/components/VirtualList/hooks/useGetSize.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAEhD,wBAAgB,UAAU,CACxB,UAAU,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,EACtB,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,GAAG,EAC1C,OAAO,EAAE,QAAQ,EACjB,UAAU,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,GAC1C,OAAO,CAqCT"}
@@ -8,7 +8,7 @@ function k(c, a, v, d) {
8
8
  if (n === void 0 || i === void 0) {
9
9
  const r = c.value.length;
10
10
  for (let e = t.length; e < r; e += 1) {
11
- const s = c.value[e], l = a(s);
11
+ const s = c.value[e], l = a(s, e);
12
12
  o.set(l, e);
13
13
  const p = v.get(l) ?? d.value ?? 0;
14
14
  if (t[e] = (t[e - 1] || 0) + p, l === u && (n = e), l === f && (i = e), n !== void 0 && i !== void 0) break;
@@ -7,8 +7,8 @@ import { ref } from 'vue';
7
7
  * 于是 `heights.id` 恒为 0,VirtualList 的可视区计算永远走 O(1) 的估算分支,
8
8
  * 不再每次滚动重建整表前缀和。代价是行高必须真的等于声明值(调用方负责校验)。
9
9
  */
10
- export default function useHeights(getKey: (item: any) => Key, onItemAdd?: (item: any) => void, onItemRemove?: (item: any) => void, disabled?: () => boolean): [
11
- setInstanceRef: (item: any, instance: HTMLElement | null) => void,
10
+ export default function useHeights(getKey: (item: any, index?: number) => Key, onItemAdd?: (item: any) => void, onItemRemove?: (item: any) => void, disabled?: () => boolean): [
11
+ setInstanceRef: (item: any, instance: HTMLElement | null, index?: number) => void,
12
12
  collectHeight: (sync?: boolean) => void,
13
13
  heights: CacheMap,
14
14
  updatedMark: ReturnType<typeof ref<number>>
@@ -1 +1 @@
1
- {"version":3,"file":"useHeights.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/components/VirtualList/hooks/useHeights.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,mBAAmB,CAAA;AACxC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAwB,GAAG,EAAE,MAAM,KAAK,CAAA;AA+B/C;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,EAC1B,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,EAC/B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,EAClC,QAAQ,CAAC,EAAE,MAAM,OAAO,GACvB;IACD,cAAc,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI;IACjE,aAAa,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI;IACvC,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,UAAU,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC;CAC5C,CAoGA"}
1
+ {"version":3,"file":"useHeights.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/components/VirtualList/hooks/useHeights.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,mBAAmB,CAAA;AACxC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAwB,GAAG,EAAE,MAAM,KAAK,CAAA;AA+B/C;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,GAAG,EAC1C,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,EAC/B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,EAClC,QAAQ,CAAC,EAAE,MAAM,OAAO,GACvB;IACD,cAAc,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI;IACjF,aAAa,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI;IACvC,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,UAAU,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC;CAC5C,CAoGA"}