@oneflowui/ui 0.5.6 → 0.5.8

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 (213) hide show
  1. package/README.md +11 -0
  2. package/dist/components/ContextMenu/index.vue.js +2 -2
  3. package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
  4. package/dist/components/Dashboard/charts/PieChart.vue.js +2 -2
  5. package/dist/components/Dashboard/index.vue.d.ts +3 -2
  6. package/dist/components/Dashboard/index.vue.js +2 -2
  7. package/dist/components/ai/AiSender.vue.js +2 -2
  8. package/dist/components/ai/AiSender.vue2.js +8 -7
  9. package/dist/components/auxiliary/ColorPanel.vue.js +2 -2
  10. package/dist/components/auxiliary/ColorPanel.vue2.js +25 -23
  11. package/dist/components/auxiliary/FileUpload.vue.js +2 -2
  12. package/dist/components/auxiliary/FileUpload.vue2.js +1 -0
  13. package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
  14. package/dist/components/auxiliary/PersonPanel.vue2.js +2 -1
  15. package/dist/components/base/Accordion.vue.js +1 -1
  16. package/dist/components/base/Avatar.vue.d.ts +3 -0
  17. package/dist/components/base/Avatar.vue.js +4 -4
  18. package/dist/components/base/Avatar.vue2.js +8 -8
  19. package/dist/components/base/Badge.vue.d.ts +2 -0
  20. package/dist/components/base/Badge.vue.js +2 -2
  21. package/dist/components/base/Badge.vue2.js +2 -2
  22. package/dist/components/base/ButtonGroup.vue.js +2 -2
  23. package/dist/components/base/ButtonGroup.vue2.js +2 -2
  24. package/dist/components/base/ChainItem.vue.d.ts +6 -0
  25. package/dist/components/base/ChainItem.vue.js +2 -2
  26. package/dist/components/base/ChainItem.vue2.js +17 -17
  27. package/dist/components/base/DropdownMenu.vue.js +2 -2
  28. package/dist/components/base/DropdownMenu.vue2.js +22 -20
  29. package/dist/components/base/EmptyState.vue.js +2 -2
  30. package/dist/components/base/EmptyState.vue2.js +2 -2
  31. package/dist/components/base/InfoCard.vue.d.ts +9 -0
  32. package/dist/components/base/InfoCard.vue.js +2 -2
  33. package/dist/components/base/InfoCard.vue2.js +65 -57
  34. package/dist/components/base/MonitorItem.vue.js +2 -2
  35. package/dist/components/base/MonitorItem.vue2.js +33 -25
  36. package/dist/components/base/PersonaCard.vue.d.ts +5 -0
  37. package/dist/components/base/PersonaCard.vue.js +3 -3
  38. package/dist/components/base/PersonaCard.vue2.js +56 -50
  39. package/dist/components/base/ProgressBar.vue.d.ts +1 -0
  40. package/dist/components/base/ProgressBar.vue.js +2 -2
  41. package/dist/components/base/ProgressBar.vue2.js +10 -10
  42. package/dist/components/base/RangeSlider.vue.d.ts +15 -0
  43. package/dist/components/base/RangeSlider.vue.js +1 -1
  44. package/dist/components/base/RangeSlider.vue2.js +22 -15
  45. package/dist/components/base/RefTag.vue.d.ts +4 -0
  46. package/dist/components/base/RefTag.vue.js +3 -3
  47. package/dist/components/base/RefTag.vue2.js +14 -14
  48. package/dist/components/base/SearchHighlight.vue.js +1 -1
  49. package/dist/components/base/SectionBlock.vue.js +2 -2
  50. package/dist/components/base/SectionBlock.vue2.js +54 -48
  51. package/dist/components/base/SelectBadge.vue.d.ts +5 -0
  52. package/dist/components/base/SelectBadge.vue.js +3 -3
  53. package/dist/components/base/SelectBadge.vue2.js +36 -28
  54. package/dist/components/base/StatisticCard.vue.js +1 -1
  55. package/dist/components/base/StatusIndicator.vue.js +2 -2
  56. package/dist/components/base/StatusIndicator.vue2.js +2 -2
  57. package/dist/components/base/StatusSummary.vue.js +2 -2
  58. package/dist/components/base/Stepper.vue.js +2 -2
  59. package/dist/components/base/Switch.vue.js +2 -2
  60. package/dist/components/base/ToolbarBtn.vue.js +2 -2
  61. package/dist/components/base/ViewModeGroup.vue.js +1 -1
  62. package/dist/components/base/ViewModeGroup.vue2.js +3 -3
  63. package/dist/components/base/ViewSwitcher.vue.js +1 -1
  64. package/dist/components/base/ViewSwitcher.vue2.js +3 -3
  65. package/dist/components/base/ViewTab.vue.js +1 -1
  66. package/dist/components/base/ViewTab.vue2.js +5 -6
  67. package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
  68. package/dist/components/breadcrumb/BreadcrumbItem.vue.js +2 -2
  69. package/dist/components/database/DatabaseView.vue.d.ts +6 -1
  70. package/dist/components/database/DatabaseView.vue.js +2 -2
  71. package/dist/components/database/DatabaseView.vue2.js +438 -293
  72. package/dist/components/detail/PropPanel.vue.js +2 -2
  73. package/dist/components/detail/PropPanel.vue2.js +34 -30
  74. package/dist/components/detail/PropRow.vue.d.ts +6 -0
  75. package/dist/components/detail/PropRow.vue.js +2 -2
  76. package/dist/components/detail/PropRow.vue2.js +24 -24
  77. package/dist/components/editor/BlockQuote.vue.d.ts +2 -1
  78. package/dist/components/editor/BlockQuote.vue.js +1 -1
  79. package/dist/components/editor/BlockQuote.vue2.js +43 -29
  80. package/dist/components/editor/ContentBlock.vue.d.ts +4 -2
  81. package/dist/components/editor/ContentBlock.vue.js +2 -2
  82. package/dist/components/editor/ContentBlock.vue2.js +54 -33
  83. package/dist/components/editor/RichTextEditor.vue.js +2 -2
  84. package/dist/components/editor/RichTextEditor.vue2.js +10 -14
  85. package/dist/components/field/FieldAttachment.vue.js +2 -2
  86. package/dist/components/field/FieldAttachment.vue2.js +30 -32
  87. package/dist/components/field/FieldAutoNumber.vue.js +2 -2
  88. package/dist/components/field/FieldCheckbox.vue.js +2 -2
  89. package/dist/components/field/FieldCheckbox.vue2.js +13 -11
  90. package/dist/components/field/FieldCreator.vue.js +2 -2
  91. package/dist/components/field/FieldCurrency.vue.js +2 -2
  92. package/dist/components/field/FieldCurrency.vue2.js +15 -14
  93. package/dist/components/field/FieldDate.vue.js +1 -1
  94. package/dist/components/field/FieldDate.vue2.js +14 -16
  95. package/dist/components/field/FieldDatetime.vue.js +1 -1
  96. package/dist/components/field/FieldDatetime.vue2.js +12 -11
  97. package/dist/components/field/FieldEmail.vue.js +2 -2
  98. package/dist/components/field/FieldEmail.vue2.js +14 -13
  99. package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
  100. package/dist/components/field/FieldMultiSelect.vue.d.ts +2 -2
  101. package/dist/components/field/FieldMultiSelect.vue.js +2 -2
  102. package/dist/components/field/FieldMultiSelect.vue2.js +80 -75
  103. package/dist/components/field/FieldNumber.vue.js +3 -3
  104. package/dist/components/field/FieldNumber.vue2.js +19 -18
  105. package/dist/components/field/FieldPhone.vue.js +2 -2
  106. package/dist/components/field/FieldPhone.vue2.js +12 -11
  107. package/dist/components/field/FieldProgress.vue.js +1 -1
  108. package/dist/components/field/FieldProgress.vue2.js +18 -17
  109. package/dist/components/field/FieldRating.vue.js +2 -2
  110. package/dist/components/field/FieldRating.vue2.js +22 -16
  111. package/dist/components/field/FieldRelation.vue.js +1 -1
  112. package/dist/components/field/FieldRelation.vue2.js +25 -22
  113. package/dist/components/field/FieldRichText.vue.js +1 -1
  114. package/dist/components/field/FieldRichText.vue2.js +10 -7
  115. package/dist/components/field/FieldSelect.vue.js +2 -2
  116. package/dist/components/field/FieldSelect.vue2.js +81 -63
  117. package/dist/components/field/FieldText.vue.js +2 -2
  118. package/dist/components/field/FieldText.vue2.js +17 -16
  119. package/dist/components/field/FieldUrl.vue.js +2 -2
  120. package/dist/components/field/FieldUrl.vue2.js +17 -16
  121. package/dist/components/form/FormDesigner.vue.js +2 -2
  122. package/dist/components/form/FormDesigner.vue2.js +83 -78
  123. package/dist/components/gallery/GalleryCard.vue.d.ts +1 -1
  124. package/dist/components/gallery/GalleryCard.vue.js +2 -2
  125. package/dist/components/gallery/GalleryCard.vue2.js +2 -1
  126. package/dist/components/kanban/KanbanCard.vue.d.ts +3 -1
  127. package/dist/components/kanban/KanbanCard.vue.js +1 -1
  128. package/dist/components/kanban/KanbanCard.vue2.js +15 -14
  129. package/dist/components/kanban/KanbanColumn.vue.d.ts +2 -0
  130. package/dist/components/kanban/KanbanColumn.vue.js +2 -2
  131. package/dist/components/kanban/KanbanColumn.vue2.js +9 -9
  132. package/dist/components/kanban/QuickAddRow.vue.js +2 -2
  133. package/dist/components/kanban/QuickAddRow.vue2.js +15 -14
  134. package/dist/components/layout/Navbar.vue.js +3 -3
  135. package/dist/components/layout/Navbar.vue2.js +5 -4
  136. package/dist/components/layout/Sidebar.vue.js +2 -2
  137. package/dist/components/layout/Sidebar.vue2.js +1 -1
  138. package/dist/components/mermaid/MermaidChart.vue.js +2 -2
  139. package/dist/components/mermaid/MermaidChart.vue2.js +17 -17
  140. package/dist/components/overlay/Dialog.vue.d.ts +1 -0
  141. package/dist/components/overlay/Dialog.vue.js +1 -1
  142. package/dist/components/overlay/Dialog.vue2.js +9 -9
  143. package/dist/components/overlay/Drawer.vue.d.ts +2 -1
  144. package/dist/components/overlay/Drawer.vue.js +2 -2
  145. package/dist/components/overlay/Drawer.vue2.js +35 -29
  146. package/dist/components/overlay/Modal.vue.d.ts +2 -1
  147. package/dist/components/overlay/Modal.vue.js +1 -1
  148. package/dist/components/overlay/Modal.vue2.js +34 -28
  149. package/dist/components/overlay/SidePanel.vue.d.ts +1 -0
  150. package/dist/components/overlay/SidePanel.vue.js +1 -1
  151. package/dist/components/overlay/SidePanel.vue2.js +6 -6
  152. package/dist/components/split/SplitPane.vue.js +2 -2
  153. package/dist/components/split/SplitPane.vue2.js +11 -9
  154. package/dist/components/table/ColumnHeaderMenu.vue.d.ts +4 -2
  155. package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
  156. package/dist/components/table/ColumnHeaderMenu.vue2.js +42 -36
  157. package/dist/components/table/DataTable.vue.d.ts +9 -6
  158. package/dist/components/table/DataTable.vue.js +2 -2
  159. package/dist/components/table/DataTable.vue2.js +643 -521
  160. package/dist/components/table/DetailSheet.vue.d.ts +2 -0
  161. package/dist/components/table/DetailSheet.vue.js +2 -2
  162. package/dist/components/table/DetailSheet.vue2.js +154 -70
  163. package/dist/components/table/FieldCell.vue.d.ts +2 -1
  164. package/dist/components/table/FieldCell.vue.js +1 -1
  165. package/dist/components/table/FieldCell.vue2.js +57 -48
  166. package/dist/components/table/FieldTypePicker.vue.d.ts +1 -0
  167. package/dist/components/table/FieldTypePicker.vue.js +4 -4
  168. package/dist/components/table/FieldTypePicker.vue2.js +1 -1
  169. package/dist/components/table/MobileListView.vue.d.ts +3 -2
  170. package/dist/components/table/MobileListView.vue.js +2 -2
  171. package/dist/components/table/MobileListView.vue2.js +57 -50
  172. package/dist/components/table/TableColumnManager.vue.js +1 -1
  173. package/dist/components/table/TableColumnManager.vue2.js +29 -28
  174. package/dist/components/table/TableDataRow.vue.d.ts +5 -1
  175. package/dist/components/table/TableDataRow.vue.js +3 -3
  176. package/dist/components/table/TableDataRow.vue2.js +102 -63
  177. package/dist/components/table/TableFilterPanel.vue.js +2 -2
  178. package/dist/components/table/TableFilterPanel.vue2.js +3 -0
  179. package/dist/components/table/TableGroupRow.vue.d.ts +2 -0
  180. package/dist/components/table/TableGroupRow.vue.js +2 -2
  181. package/dist/components/table/TableGroupRow.vue2.js +35 -30
  182. package/dist/components/table/TableHeaderRow.vue.d.ts +3 -1
  183. package/dist/components/table/TableHeaderRow.vue.js +1 -1
  184. package/dist/components/table/TableHeaderRow.vue2.js +111 -58
  185. package/dist/components/table/TableToolbar.vue.js +1 -1
  186. package/dist/components/table/TableToolbar.vue2.js +2 -2
  187. package/dist/components/tabs/TabPanel.vue.js +4 -4
  188. package/dist/components/tabs/TabPanel.vue2.js +1 -1
  189. package/dist/components/tabs/Tabs.vue.js +2 -2
  190. package/dist/components/tabs/Tabs.vue2.js +2 -2
  191. package/dist/components/timeline/GanttRow.vue.d.ts +2 -0
  192. package/dist/components/timeline/GanttRow.vue.js +2 -2
  193. package/dist/components/timeline/GanttRow.vue2.js +68 -52
  194. package/dist/components/timeline/GanttTimeline.vue.d.ts +6 -0
  195. package/dist/components/timeline/GanttTimeline.vue.js +2 -2
  196. package/dist/components/timeline/GanttTimeline.vue2.js +24 -24
  197. package/dist/composables/useColumnResize.d.ts +4 -1
  198. package/dist/composables/useColumnResize.js +114 -45
  199. package/dist/composables/useKeyboardNavigation.d.ts +1 -1
  200. package/dist/composables/useRowDrag.d.ts +7 -5
  201. package/dist/composables/useRowDrag.js +24 -24
  202. package/dist/composables/useSupabaseProvider.d.ts +8 -1
  203. package/dist/composables/useTableData.d.ts +5 -3
  204. package/dist/composables/useTableGroup.d.ts +2 -2
  205. package/dist/composables/useViewPersistence.d.ts +32 -3
  206. package/dist/composables/useVirtualList.d.ts +1 -0
  207. package/dist/composables/useVirtualList.js +94 -81
  208. package/dist/plugin.js +103 -102
  209. package/dist/style.css +1 -1
  210. package/dist/types/index.d.ts +2 -1
  211. package/dist/utils/echarts.d.ts +1 -0
  212. package/dist/utils/supabaseSchema.d.ts +12 -0
  213. package/package.json +1 -1
@@ -1,140 +1,153 @@
1
- import { ref as w, computed as M, watch as L, onUnmounted as N } from "vue";
2
- function W(I) {
3
- var S;
4
- const { items: n, itemHeight: c, overscan: V = 5, containerRef: B } = I, u = w(0), v = w(0), f = typeof c == "number", m = Math.max(0, V), a = /* @__PURE__ */ new Map(), T = w(0);
5
- let d = null, h = null, r = null;
6
- function U(e) {
7
- return a.has(e) ? a.get(e) : f ? c : c(e);
1
+ import { ref as T, computed as p, watch as z, getCurrentScope as W, onScopeDispose as X } from "vue";
2
+ function _(x) {
3
+ var V;
4
+ const { items: n, itemHeight: c, overscan: B = 5, containerRef: A } = x, s = T(0), v = T(0), h = typeof c == "number", m = Math.max(0, B), a = /* @__PURE__ */ new Map(), b = T(0);
5
+ let d = null, f = null, l = null;
6
+ function D(e) {
7
+ return a.has(e) ? a.get(e) : h ? c : c(e);
8
8
  }
9
- function A() {
10
- !I.measureRow || typeof ResizeObserver > "u" || (h = new ResizeObserver((e) => {
9
+ function K() {
10
+ !x.measureRow || typeof ResizeObserver > "u" || (f = new ResizeObserver((e) => {
11
11
  let t = !1;
12
- for (const l of e) {
13
- const i = l.target.dataset.virtualIndex;
14
- if (i == null) continue;
15
- const s = parseInt(i, 10), g = l.contentRect.height;
16
- a.get(s) !== g && (a.set(s, g), t = !0);
12
+ for (const i of e) {
13
+ const r = i.target.dataset.virtualIndex;
14
+ if (r == null) continue;
15
+ const u = parseInt(r, 10), g = i.contentRect.height;
16
+ a.get(u) !== g && (a.set(u, g), t = !0);
17
17
  }
18
- t && T.value++;
18
+ t && b.value++;
19
19
  }));
20
20
  }
21
- A();
21
+ K();
22
+ function C() {
23
+ a.size !== 0 && (a.clear(), b.value++, l && M(l));
24
+ }
22
25
  function P(e, t) {
23
- !e || !h || (e.dataset.virtualIndex = String(t), h.observe(e));
26
+ !e || !f || (e.dataset.virtualIndex = String(t), f.observe(e));
24
27
  }
25
- const p = M(() => {
26
- if (T.value, f && a.size === 0) return [];
28
+ const w = p(() => {
29
+ if (b.value, h && a.size === 0) return [];
27
30
  const e = new Array(n.value.length + 1).fill(0);
28
31
  for (let t = 0; t < n.value.length; t += 1)
29
- e[t + 1] = e[t] + Math.max(0, U(t));
32
+ e[t + 1] = e[t] + Math.max(0, D(t));
30
33
  return e;
31
- }), x = M(() => f && a.size === 0 ? n.value.length * c : p.value[n.value.length] ?? 0);
34
+ }), I = p(() => h && a.size === 0 ? n.value.length * c : w.value[n.value.length] ?? 0);
32
35
  function H(e) {
33
36
  const t = Math.max(0, Math.min(e, n.value.length));
34
- return f && a.size === 0 ? t * c : p.value[t] ?? 0;
37
+ return h && a.size === 0 ? t * c : w.value[t] ?? 0;
35
38
  }
36
39
  function R(e) {
37
40
  if (n.value.length === 0) return 0;
38
- if (f && a.size === 0) {
39
- const i = c;
41
+ if (h && a.size === 0) {
42
+ const r = c;
40
43
  return Math.max(
41
44
  0,
42
- Math.min(n.value.length - 1, Math.floor(Math.max(0, e) / i))
45
+ Math.min(n.value.length - 1, Math.floor(Math.max(0, e) / r))
43
46
  );
44
47
  }
45
- const t = p.value;
46
- let l = 0, o = n.value.length;
47
- for (; l < o; ) {
48
- const i = Math.floor((l + o) / 2);
49
- t[i + 1] <= e ? l = i + 1 : o = i;
48
+ const t = w.value;
49
+ let i = 0, o = n.value.length;
50
+ for (; i < o; ) {
51
+ const r = Math.floor((i + o) / 2);
52
+ t[r + 1] <= e ? i = r + 1 : o = r;
50
53
  }
51
- return Math.max(0, Math.min(l, n.value.length - 1));
54
+ return Math.max(0, Math.min(i, n.value.length - 1));
52
55
  }
53
- const z = M(() => {
56
+ const y = p(() => {
54
57
  const e = n.value.length;
55
58
  if (e === 0)
56
59
  return { start: 0, end: 0 };
57
60
  if (v.value <= 0)
58
61
  return { start: 0, end: Math.min(e, m * 2 + 1) };
59
- if (f && a.size === 0) {
60
- const s = c, g = Math.floor(u.value / s), G = Math.ceil(v.value / s), J = Math.max(0, g - m), K = Math.min(e, g + G + m);
61
- return { start: J, end: K };
62
+ if (h && a.size === 0) {
63
+ const u = c, g = Math.floor(s.value / u), J = Math.ceil(v.value / u), N = Math.max(0, g - m), Q = Math.min(e, g + J + m);
64
+ return { start: N, end: Q };
62
65
  }
63
- const t = Math.max(0, u.value), l = t + v.value, o = R(t), i = Math.min(e - 1, R(l));
66
+ const t = Math.max(0, s.value), i = t + v.value, o = R(t), r = Math.min(e - 1, R(i));
64
67
  return {
65
68
  start: Math.max(0, o - m),
66
- end: Math.min(e, i + m + 1)
69
+ end: Math.min(e, r + m + 1)
67
70
  };
68
- }), Y = M(() => H(z.value.start)), j = M(() => {
69
- const { start: e, end: t } = z.value;
70
- return n.value.slice(e, t).map((l, o) => ({
71
- data: l,
71
+ }), U = p(() => H(y.value.start)), Y = p(() => {
72
+ const { start: e, end: t } = y.value;
73
+ return n.value.slice(e, t).map((i, o) => ({
74
+ data: i,
72
75
  index: e + o
73
76
  }));
74
77
  });
75
- function b(e) {
78
+ function M(e) {
76
79
  if (!e) {
77
- u.value = 0, v.value = 0;
80
+ s.value = 0, v.value = 0;
78
81
  return;
79
82
  }
80
- u.value = e.scrollTop, v.value = e.clientHeight;
83
+ s.value = e.scrollTop, v.value = e.clientHeight;
81
84
  }
82
- function C() {
83
- r && (u.value = r.scrollTop);
85
+ function S() {
86
+ l && (s.value = l.scrollTop);
84
87
  }
85
- function y() {
88
+ function O() {
86
89
  d == null || d.disconnect(), d = null;
87
90
  }
88
- function O(e) {
89
- e && e.removeEventListener("scroll", C);
91
+ function E(e) {
92
+ e && e.removeEventListener("scroll", S);
90
93
  }
91
- function k(e) {
94
+ function j(e) {
92
95
  if (!e) {
93
- r = null, b(null);
96
+ l = null, M(null);
94
97
  return;
95
98
  }
96
- r = e, e.addEventListener("scroll", C, { passive: !0 }), b(e), typeof ResizeObserver < "u" && (d = new ResizeObserver(() => {
97
- b(e);
99
+ l = e, e.addEventListener("scroll", S, { passive: !0 }), M(e), typeof ResizeObserver < "u" && (d = new ResizeObserver(() => {
100
+ M(e);
98
101
  }), d.observe(e));
99
102
  }
100
- L(
101
- B,
103
+ z(
104
+ A,
102
105
  (e, t) => {
103
- O(t), y(), k(e);
106
+ E(t), O(), j(e);
107
+ },
108
+ { immediate: !0 }
109
+ ), z(
110
+ () => {
111
+ var e;
112
+ return (e = x.invalidateKey) == null ? void 0 : e.value;
113
+ },
114
+ () => {
115
+ C();
104
116
  },
105
117
  { immediate: !0 }
106
118
  );
107
- let E = n.value.length, F = n.value.length > 0 ? (S = n.value[0]) == null ? void 0 : S.id : void 0;
108
- L(n, (e) => {
109
- var s;
110
- const t = e.length, l = t > 0 ? (s = e[0]) == null ? void 0 : s.id : void 0, o = t === E && l === F;
111
- if (E = t, F = l, o)
119
+ let F = n.value.length, L = n.value.length > 0 ? (V = n.value[0]) == null ? void 0 : V.id : void 0;
120
+ z(n, (e) => {
121
+ var u;
122
+ const t = e.length, i = t > 0 ? (u = e[0]) == null ? void 0 : u.id : void 0, o = t === F && i === L;
123
+ if (F = t, L = i, o)
112
124
  return;
113
- a.clear();
114
- const i = Math.max(0, x.value - v.value);
115
- u.value > i && (u.value = i, r && (r.scrollTop = i));
125
+ C();
126
+ const r = Math.max(0, I.value - v.value);
127
+ s.value > r && (s.value = r, l && (l.scrollTop = r));
116
128
  });
117
- function q(e) {
118
- if (!r || n.value.length === 0) return;
119
- const t = Math.max(0, Math.min(e, n.value.length - 1)), l = H(t);
120
- r.scrollTop = l, u.value = l;
129
+ function k(e) {
130
+ if (!l || n.value.length === 0) return;
131
+ const t = Math.max(0, Math.min(e, n.value.length - 1)), i = H(t);
132
+ l.scrollTop = i, s.value = i;
121
133
  }
122
- function D() {
123
- if (!r) return;
124
- const e = Math.max(0, x.value - r.clientHeight);
125
- r.scrollTop = e, u.value = e;
134
+ function q() {
135
+ if (!l) return;
136
+ const e = Math.max(0, I.value - l.clientHeight);
137
+ l.scrollTop = e, s.value = e;
126
138
  }
127
- return N(() => {
128
- O(r), y(), h == null || h.disconnect(), h = null, r = null;
129
- }), {
130
- visibleItems: j,
131
- totalHeight: x,
132
- offsetY: Y,
133
- scrollToIndex: q,
134
- scrollToBottom: D,
139
+ const G = () => {
140
+ E(l), O(), f == null || f.disconnect(), f = null, l = null;
141
+ };
142
+ return W() && X(G), {
143
+ visibleItems: Y,
144
+ totalHeight: I,
145
+ offsetY: U,
146
+ scrollToIndex: k,
147
+ scrollToBottom: q,
135
148
  observeRow: P
136
149
  };
137
150
  }
138
151
  export {
139
- W as useVirtualList
152
+ _ as useVirtualList
140
153
  };
package/dist/plugin.js CHANGED
@@ -1,99 +1,98 @@
1
- import m from "./components/field/FieldMarkdownPreview.vue.js";
2
- import t from "./components/ContextMenu/index.vue.js";
1
+ import t from "./components/field/FieldMarkdownPreview.vue.js";
2
+ import i from "./components/ContextMenu/index.vue.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
- import i from "./components/base/ViewTab.vue.js";
6
- import p from "./components/base/ToolbarBtn.vue.js";
7
- import e from "./components/base/AddViewBtn.vue.js";
8
- import a from "./components/base/Badge.vue.js";
9
- import f from "./components/base/RangeSlider.vue.js";
10
- import n from "./components/base/ProgressBar.vue.js";
11
- import l from "./components/base/ButtonGroup.vue.js";
12
- import d from "./components/base/EmptyState.vue.js";
13
- import s from "./components/base/StatisticCard.vue.js";
14
- import b from "./components/base/DropdownMenu.vue.js";
15
- import c from "./components/base/StatusIndicator.vue.js";
16
- import u from "./components/base/Switch.vue.js";
17
- import w from "./components/base/Stepper.vue.js";
18
- import C from "./components/base/Accordion.vue.js";
19
- import T from "./components/base/Avatar.vue.js";
20
- import B from "./components/layout/AppLayout.vue.js";
21
- import S from "./components/layout/Navbar.vue.js";
22
- import g from "./components/layout/Sidebar.vue.js";
23
- import P from "./components/layout/StatusBar.vue.js";
24
- import h from "./components/table/DataTable.vue.js";
25
- import M from "./components/table/TableHeaderRow.vue.js";
26
- import A from "./components/table/TableDataRow.vue.js";
27
- import R from "./components/table/TableGroupRow.vue.js";
28
- import k from "./components/table/NewRowBtn.vue.js";
29
- import D from "./components/table/TableFilterPanel.vue.js";
30
- import y from "./components/table/TableColumnManager.vue.js";
31
- import I from "./components/table/TableToolbar.vue.js";
32
- import G from "./components/table/FieldCell.vue.js";
33
- import F from "./components/table/FieldTypePicker.vue.js";
34
- import V from "./components/table/ColumnHeaderMenu.vue.js";
35
- import _ from "./components/kanban/KanbanBoard.vue.js";
36
- import v from "./components/kanban/KanbanColumn.vue.js";
37
- import L from "./components/kanban/KanbanCard.vue.js";
38
- import x from "./components/kanban/QuickAddRow.vue.js";
39
- import E from "./components/gallery/GalleryView.vue.js";
40
- import H from "./components/gallery/GalleryCard.vue.js";
41
- import K from "./components/timeline/ActivityTimeline.vue.js";
42
- import N from "./components/timeline/GanttTimeline.vue.js";
43
- import U from "./components/timeline/GanttRow.vue.js";
44
- import Q from "./components/editor/ContentBlock.vue.js";
45
- import O from "./components/editor/BlockQuote.vue.js";
46
- import $ from "./components/editor/CodeBlock.vue.js";
47
- import j from "./components/editor/RefLink.vue.js";
48
- import q from "./components/editor/RichTextEditor.vue.js";
49
- import z from "./components/form/FormDesigner.vue.js";
50
- import J from "./components/database/DatabaseView.vue.js";
51
- import W from "./components/auxiliary/ColorPanel.vue.js";
52
- import X from "./components/auxiliary/PersonPanel.vue.js";
53
- import Y from "./components/auxiliary/FileUpload.vue.js";
54
- import Z from "./components/detail/DetailLayout.vue.js";
55
- import rr from "./components/detail/PropPanel.vue.js";
56
- import or from "./components/detail/PropRow.vue.js";
57
- import mr from "./components/detail/CommentItem.vue.js";
58
- import tr from "./components/Dashboard/index.vue.js";
59
- import ir from "./components/Dashboard/charts/BarChart.vue.js";
60
- import pr from "./components/Dashboard/charts/PieChart.vue.js";
61
- import er from "./components/Dashboard/charts/DoughnutChart.vue.js";
62
- import ar from "./components/Dashboard/charts/NumberCard.vue.js";
63
- import fr from "./components/Dashboard/charts/TableChart.vue.js";
64
- import nr from "./components/ai/AiThinking.vue.js";
65
- import lr from "./components/ai/AiStreamingCursor.vue.js";
66
- import dr from "./components/ai/AiMessageBubble.vue.js";
67
- import sr from "./components/ai/UserMessageBubble.vue.js";
68
- import br from "./components/ai/AiMessageList.vue.js";
69
- import cr from "./components/ai/AiSender.vue.js";
70
- import ur from "./components/overlay/Modal.vue.js";
71
- import wr from "./components/overlay/Dialog.vue.js";
72
- import Cr from "./components/overlay/Drawer.vue.js";
73
- import Tr from "./components/overlay/SidePanel.vue.js";
74
- import Br from "./components/toast/ToastContainer.vue.js";
5
+ import p from "./components/base/ViewTab.vue.js";
6
+ import e from "./components/base/ToolbarBtn.vue.js";
7
+ import a from "./components/base/AddViewBtn.vue.js";
8
+ import f from "./components/base/Badge.vue.js";
9
+ import n from "./components/base/RangeSlider.vue.js";
10
+ import l from "./components/base/ProgressBar.vue.js";
11
+ import d from "./components/base/ButtonGroup.vue.js";
12
+ import s from "./components/base/EmptyState.vue.js";
13
+ import b from "./components/base/StatisticCard.vue.js";
14
+ import c from "./components/base/DropdownMenu.vue.js";
15
+ import u from "./components/base/StatusIndicator.vue.js";
16
+ import w from "./components/base/Switch.vue.js";
17
+ import C from "./components/base/Stepper.vue.js";
18
+ import T from "./components/base/Accordion.vue.js";
19
+ import B from "./components/base/Avatar.vue.js";
20
+ import S from "./components/layout/AppLayout.vue.js";
21
+ import g from "./components/layout/Navbar.vue.js";
22
+ import P from "./components/layout/Sidebar.vue.js";
23
+ import h from "./components/layout/StatusBar.vue.js";
24
+ import M from "./components/table/DataTable.vue.js";
25
+ import A from "./components/table/TableHeaderRow.vue.js";
26
+ import R from "./components/table/TableDataRow.vue.js";
27
+ import k from "./components/table/TableGroupRow.vue.js";
28
+ import D from "./components/table/NewRowBtn.vue.js";
29
+ import y from "./components/table/TableFilterPanel.vue.js";
30
+ import I from "./components/table/TableColumnManager.vue.js";
31
+ import G from "./components/table/TableToolbar.vue.js";
32
+ import F from "./components/table/FieldCell.vue.js";
33
+ import V from "./components/table/FieldTypePicker.vue.js";
34
+ import _ from "./components/table/ColumnHeaderMenu.vue.js";
35
+ import v from "./components/kanban/KanbanBoard.vue.js";
36
+ import L from "./components/kanban/KanbanColumn.vue.js";
37
+ import x from "./components/kanban/KanbanCard.vue.js";
38
+ import E from "./components/kanban/QuickAddRow.vue.js";
39
+ import H from "./components/gallery/GalleryView.vue.js";
40
+ import K from "./components/gallery/GalleryCard.vue.js";
41
+ import N from "./components/timeline/ActivityTimeline.vue.js";
42
+ import U from "./components/timeline/GanttTimeline.vue.js";
43
+ import Q from "./components/timeline/GanttRow.vue.js";
44
+ import O from "./components/editor/ContentBlock.vue.js";
45
+ import $ from "./components/editor/BlockQuote.vue.js";
46
+ import j from "./components/editor/CodeBlock.vue.js";
47
+ import q from "./components/editor/RefLink.vue.js";
48
+ import z from "./components/editor/RichTextEditor.vue.js";
49
+ import J from "./components/form/FormDesigner.vue.js";
50
+ import W from "./components/database/DatabaseView.vue.js";
51
+ import X from "./components/auxiliary/ColorPanel.vue.js";
52
+ import Y from "./components/auxiliary/PersonPanel.vue.js";
53
+ import Z from "./components/auxiliary/FileUpload.vue.js";
54
+ import rr from "./components/detail/DetailLayout.vue.js";
55
+ import or from "./components/detail/PropPanel.vue.js";
56
+ import mr from "./components/detail/PropRow.vue.js";
57
+ import tr from "./components/detail/CommentItem.vue.js";
58
+ import ir from "./components/Dashboard/index.vue.js";
59
+ import pr from "./components/Dashboard/charts/BarChart.vue.js";
60
+ import er from "./components/Dashboard/charts/PieChart.vue.js";
61
+ import ar from "./components/Dashboard/charts/DoughnutChart.vue.js";
62
+ import fr from "./components/Dashboard/charts/NumberCard.vue.js";
63
+ import nr from "./components/Dashboard/charts/TableChart.vue.js";
64
+ import lr from "./components/ai/AiThinking.vue.js";
65
+ import dr from "./components/ai/AiStreamingCursor.vue.js";
66
+ import sr from "./components/ai/AiMessageBubble.vue.js";
67
+ import br from "./components/ai/UserMessageBubble.vue.js";
68
+ import cr from "./components/ai/AiMessageList.vue.js";
69
+ import ur from "./components/ai/AiSender.vue.js";
70
+ import wr from "./components/overlay/Modal.vue.js";
71
+ import Cr from "./components/overlay/Dialog.vue.js";
72
+ import Tr from "./components/overlay/Drawer.vue.js";
73
+ import Br from "./components/overlay/SidePanel.vue.js";
74
+ import Sr from "./components/toast/ToastContainer.vue.js";
75
75
  /* empty css */
76
- import Sr from "./components/toast/ToastItem.vue.js";
77
- import gr from "./components/tabs/Tabs.vue.js";
78
- import Pr from "./components/tabs/TabPanel.vue.js";
79
- import hr from "./components/breadcrumb/Breadcrumb.vue.js";
80
- import Mr from "./components/breadcrumb/BreadcrumbItem.vue.js";
81
- import Ar from "./components/mermaid/MermaidChart.vue.js";
82
- import Rr from "./components/split/SplitPane.vue.js";
83
- import kr from "./components/base/RefTag.vue.js";
84
- import Dr from "./components/base/DescBlock.vue.js";
85
- import yr from "./components/base/ViewModeGroup.vue.js";
86
- import Ir from "./components/base/ViewSwitcher.vue.js";
87
- import Gr from "./components/base/SelectBadge.vue.js";
88
- import Fr from "./components/base/ChainItem.vue.js";
89
- import Vr from "./components/base/SectionBlock.vue.js";
90
- import _r from "./components/base/MonitorItem.vue.js";
91
- import vr from "./components/base/StatusSummary.vue.js";
92
- import Lr from "./components/base/InfoCard.vue.js";
93
- import xr from "./components/base/PersonaCard.vue.js";
94
- import Er from "./components/base/SearchHighlight.vue.js";
95
- const Hr = [
96
- i,
76
+ import gr from "./components/toast/ToastItem.vue.js";
77
+ import Pr from "./components/tabs/Tabs.vue.js";
78
+ import hr from "./components/tabs/TabPanel.vue.js";
79
+ import Mr from "./components/breadcrumb/Breadcrumb.vue.js";
80
+ import Ar from "./components/breadcrumb/BreadcrumbItem.vue.js";
81
+ import Rr from "./components/mermaid/MermaidChart.vue.js";
82
+ import kr from "./components/split/SplitPane.vue.js";
83
+ import Dr from "./components/base/RefTag.vue.js";
84
+ import yr from "./components/base/DescBlock.vue.js";
85
+ import Ir from "./components/base/ViewModeGroup.vue.js";
86
+ import Gr from "./components/base/ViewSwitcher.vue.js";
87
+ import Fr from "./components/base/SelectBadge.vue.js";
88
+ import Vr from "./components/base/ChainItem.vue.js";
89
+ import _r from "./components/base/SectionBlock.vue.js";
90
+ import vr from "./components/base/MonitorItem.vue.js";
91
+ import Lr from "./components/base/StatusSummary.vue.js";
92
+ import xr from "./components/base/InfoCard.vue.js";
93
+ import Er from "./components/base/PersonaCard.vue.js";
94
+ import Hr from "./components/base/SearchHighlight.vue.js";
95
+ const Kr = [
97
96
  p,
98
97
  e,
99
98
  a,
@@ -123,8 +122,8 @@ const Hr = [
123
122
  G,
124
123
  F,
125
124
  V,
126
- m,
127
125
  _,
126
+ t,
128
127
  v,
129
128
  L,
130
129
  x,
@@ -175,23 +174,25 @@ const Hr = [
175
174
  Dr,
176
175
  yr,
177
176
  Ir,
178
- t,
179
177
  Gr,
178
+ i,
180
179
  Fr,
181
180
  Vr,
182
181
  _r,
183
182
  vr,
184
183
  Lr,
185
184
  xr,
186
- Er
187
- ], km = {
188
- install(o) {
189
- Hr.forEach((r) => {
190
- o.component(r.name || r.__name || "", r);
185
+ Er,
186
+ Hr
187
+ ], Dm = {
188
+ install(m) {
189
+ Kr.forEach((r) => {
190
+ const o = r;
191
+ m.component(o.name || o.__name || "", r);
191
192
  });
192
193
  }
193
194
  };
194
195
  export {
195
- km as OneflowUI,
196
- km as default
196
+ Dm as OneflowUI,
197
+ Dm as default
197
198
  };