@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.
- package/README.md +11 -0
- package/dist/components/ContextMenu/index.vue.js +2 -2
- package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/PieChart.vue.js +2 -2
- package/dist/components/Dashboard/index.vue.d.ts +3 -2
- package/dist/components/Dashboard/index.vue.js +2 -2
- package/dist/components/ai/AiSender.vue.js +2 -2
- package/dist/components/ai/AiSender.vue2.js +8 -7
- package/dist/components/auxiliary/ColorPanel.vue.js +2 -2
- package/dist/components/auxiliary/ColorPanel.vue2.js +25 -23
- package/dist/components/auxiliary/FileUpload.vue.js +2 -2
- package/dist/components/auxiliary/FileUpload.vue2.js +1 -0
- package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
- package/dist/components/auxiliary/PersonPanel.vue2.js +2 -1
- package/dist/components/base/Accordion.vue.js +1 -1
- package/dist/components/base/Avatar.vue.d.ts +3 -0
- package/dist/components/base/Avatar.vue.js +4 -4
- package/dist/components/base/Avatar.vue2.js +8 -8
- package/dist/components/base/Badge.vue.d.ts +2 -0
- package/dist/components/base/Badge.vue.js +2 -2
- package/dist/components/base/Badge.vue2.js +2 -2
- package/dist/components/base/ButtonGroup.vue.js +2 -2
- package/dist/components/base/ButtonGroup.vue2.js +2 -2
- package/dist/components/base/ChainItem.vue.d.ts +6 -0
- package/dist/components/base/ChainItem.vue.js +2 -2
- package/dist/components/base/ChainItem.vue2.js +17 -17
- package/dist/components/base/DropdownMenu.vue.js +2 -2
- package/dist/components/base/DropdownMenu.vue2.js +22 -20
- package/dist/components/base/EmptyState.vue.js +2 -2
- package/dist/components/base/EmptyState.vue2.js +2 -2
- package/dist/components/base/InfoCard.vue.d.ts +9 -0
- package/dist/components/base/InfoCard.vue.js +2 -2
- package/dist/components/base/InfoCard.vue2.js +65 -57
- package/dist/components/base/MonitorItem.vue.js +2 -2
- package/dist/components/base/MonitorItem.vue2.js +33 -25
- package/dist/components/base/PersonaCard.vue.d.ts +5 -0
- package/dist/components/base/PersonaCard.vue.js +3 -3
- package/dist/components/base/PersonaCard.vue2.js +56 -50
- package/dist/components/base/ProgressBar.vue.d.ts +1 -0
- package/dist/components/base/ProgressBar.vue.js +2 -2
- package/dist/components/base/ProgressBar.vue2.js +10 -10
- package/dist/components/base/RangeSlider.vue.d.ts +15 -0
- package/dist/components/base/RangeSlider.vue.js +1 -1
- package/dist/components/base/RangeSlider.vue2.js +22 -15
- package/dist/components/base/RefTag.vue.d.ts +4 -0
- package/dist/components/base/RefTag.vue.js +3 -3
- package/dist/components/base/RefTag.vue2.js +14 -14
- package/dist/components/base/SearchHighlight.vue.js +1 -1
- package/dist/components/base/SectionBlock.vue.js +2 -2
- package/dist/components/base/SectionBlock.vue2.js +54 -48
- package/dist/components/base/SelectBadge.vue.d.ts +5 -0
- package/dist/components/base/SelectBadge.vue.js +3 -3
- package/dist/components/base/SelectBadge.vue2.js +36 -28
- package/dist/components/base/StatisticCard.vue.js +1 -1
- package/dist/components/base/StatusIndicator.vue.js +2 -2
- package/dist/components/base/StatusIndicator.vue2.js +2 -2
- package/dist/components/base/StatusSummary.vue.js +2 -2
- package/dist/components/base/Stepper.vue.js +2 -2
- package/dist/components/base/Switch.vue.js +2 -2
- package/dist/components/base/ToolbarBtn.vue.js +2 -2
- package/dist/components/base/ViewModeGroup.vue.js +1 -1
- package/dist/components/base/ViewModeGroup.vue2.js +3 -3
- package/dist/components/base/ViewSwitcher.vue.js +1 -1
- package/dist/components/base/ViewSwitcher.vue2.js +3 -3
- package/dist/components/base/ViewTab.vue.js +1 -1
- package/dist/components/base/ViewTab.vue2.js +5 -6
- package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
- package/dist/components/breadcrumb/BreadcrumbItem.vue.js +2 -2
- package/dist/components/database/DatabaseView.vue.d.ts +6 -1
- package/dist/components/database/DatabaseView.vue.js +2 -2
- package/dist/components/database/DatabaseView.vue2.js +438 -293
- package/dist/components/detail/PropPanel.vue.js +2 -2
- package/dist/components/detail/PropPanel.vue2.js +34 -30
- package/dist/components/detail/PropRow.vue.d.ts +6 -0
- package/dist/components/detail/PropRow.vue.js +2 -2
- package/dist/components/detail/PropRow.vue2.js +24 -24
- package/dist/components/editor/BlockQuote.vue.d.ts +2 -1
- package/dist/components/editor/BlockQuote.vue.js +1 -1
- package/dist/components/editor/BlockQuote.vue2.js +43 -29
- package/dist/components/editor/ContentBlock.vue.d.ts +4 -2
- package/dist/components/editor/ContentBlock.vue.js +2 -2
- package/dist/components/editor/ContentBlock.vue2.js +54 -33
- package/dist/components/editor/RichTextEditor.vue.js +2 -2
- package/dist/components/editor/RichTextEditor.vue2.js +10 -14
- package/dist/components/field/FieldAttachment.vue.js +2 -2
- package/dist/components/field/FieldAttachment.vue2.js +30 -32
- package/dist/components/field/FieldAutoNumber.vue.js +2 -2
- package/dist/components/field/FieldCheckbox.vue.js +2 -2
- package/dist/components/field/FieldCheckbox.vue2.js +13 -11
- package/dist/components/field/FieldCreator.vue.js +2 -2
- package/dist/components/field/FieldCurrency.vue.js +2 -2
- package/dist/components/field/FieldCurrency.vue2.js +15 -14
- package/dist/components/field/FieldDate.vue.js +1 -1
- package/dist/components/field/FieldDate.vue2.js +14 -16
- package/dist/components/field/FieldDatetime.vue.js +1 -1
- package/dist/components/field/FieldDatetime.vue2.js +12 -11
- package/dist/components/field/FieldEmail.vue.js +2 -2
- package/dist/components/field/FieldEmail.vue2.js +14 -13
- package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
- package/dist/components/field/FieldMultiSelect.vue.d.ts +2 -2
- package/dist/components/field/FieldMultiSelect.vue.js +2 -2
- package/dist/components/field/FieldMultiSelect.vue2.js +80 -75
- package/dist/components/field/FieldNumber.vue.js +3 -3
- package/dist/components/field/FieldNumber.vue2.js +19 -18
- package/dist/components/field/FieldPhone.vue.js +2 -2
- package/dist/components/field/FieldPhone.vue2.js +12 -11
- package/dist/components/field/FieldProgress.vue.js +1 -1
- package/dist/components/field/FieldProgress.vue2.js +18 -17
- package/dist/components/field/FieldRating.vue.js +2 -2
- package/dist/components/field/FieldRating.vue2.js +22 -16
- package/dist/components/field/FieldRelation.vue.js +1 -1
- package/dist/components/field/FieldRelation.vue2.js +25 -22
- package/dist/components/field/FieldRichText.vue.js +1 -1
- package/dist/components/field/FieldRichText.vue2.js +10 -7
- package/dist/components/field/FieldSelect.vue.js +2 -2
- package/dist/components/field/FieldSelect.vue2.js +81 -63
- package/dist/components/field/FieldText.vue.js +2 -2
- package/dist/components/field/FieldText.vue2.js +17 -16
- package/dist/components/field/FieldUrl.vue.js +2 -2
- package/dist/components/field/FieldUrl.vue2.js +17 -16
- package/dist/components/form/FormDesigner.vue.js +2 -2
- package/dist/components/form/FormDesigner.vue2.js +83 -78
- package/dist/components/gallery/GalleryCard.vue.d.ts +1 -1
- package/dist/components/gallery/GalleryCard.vue.js +2 -2
- package/dist/components/gallery/GalleryCard.vue2.js +2 -1
- package/dist/components/kanban/KanbanCard.vue.d.ts +3 -1
- package/dist/components/kanban/KanbanCard.vue.js +1 -1
- package/dist/components/kanban/KanbanCard.vue2.js +15 -14
- package/dist/components/kanban/KanbanColumn.vue.d.ts +2 -0
- package/dist/components/kanban/KanbanColumn.vue.js +2 -2
- package/dist/components/kanban/KanbanColumn.vue2.js +9 -9
- package/dist/components/kanban/QuickAddRow.vue.js +2 -2
- package/dist/components/kanban/QuickAddRow.vue2.js +15 -14
- package/dist/components/layout/Navbar.vue.js +3 -3
- package/dist/components/layout/Navbar.vue2.js +5 -4
- package/dist/components/layout/Sidebar.vue.js +2 -2
- package/dist/components/layout/Sidebar.vue2.js +1 -1
- package/dist/components/mermaid/MermaidChart.vue.js +2 -2
- package/dist/components/mermaid/MermaidChart.vue2.js +17 -17
- package/dist/components/overlay/Dialog.vue.d.ts +1 -0
- package/dist/components/overlay/Dialog.vue.js +1 -1
- package/dist/components/overlay/Dialog.vue2.js +9 -9
- package/dist/components/overlay/Drawer.vue.d.ts +2 -1
- package/dist/components/overlay/Drawer.vue.js +2 -2
- package/dist/components/overlay/Drawer.vue2.js +35 -29
- package/dist/components/overlay/Modal.vue.d.ts +2 -1
- package/dist/components/overlay/Modal.vue.js +1 -1
- package/dist/components/overlay/Modal.vue2.js +34 -28
- package/dist/components/overlay/SidePanel.vue.d.ts +1 -0
- package/dist/components/overlay/SidePanel.vue.js +1 -1
- package/dist/components/overlay/SidePanel.vue2.js +6 -6
- package/dist/components/split/SplitPane.vue.js +2 -2
- package/dist/components/split/SplitPane.vue2.js +11 -9
- package/dist/components/table/ColumnHeaderMenu.vue.d.ts +4 -2
- package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
- package/dist/components/table/ColumnHeaderMenu.vue2.js +42 -36
- package/dist/components/table/DataTable.vue.d.ts +9 -6
- package/dist/components/table/DataTable.vue.js +2 -2
- package/dist/components/table/DataTable.vue2.js +643 -521
- package/dist/components/table/DetailSheet.vue.d.ts +2 -0
- package/dist/components/table/DetailSheet.vue.js +2 -2
- package/dist/components/table/DetailSheet.vue2.js +154 -70
- package/dist/components/table/FieldCell.vue.d.ts +2 -1
- package/dist/components/table/FieldCell.vue.js +1 -1
- package/dist/components/table/FieldCell.vue2.js +57 -48
- package/dist/components/table/FieldTypePicker.vue.d.ts +1 -0
- package/dist/components/table/FieldTypePicker.vue.js +4 -4
- package/dist/components/table/FieldTypePicker.vue2.js +1 -1
- package/dist/components/table/MobileListView.vue.d.ts +3 -2
- package/dist/components/table/MobileListView.vue.js +2 -2
- package/dist/components/table/MobileListView.vue2.js +57 -50
- package/dist/components/table/TableColumnManager.vue.js +1 -1
- package/dist/components/table/TableColumnManager.vue2.js +29 -28
- package/dist/components/table/TableDataRow.vue.d.ts +5 -1
- package/dist/components/table/TableDataRow.vue.js +3 -3
- package/dist/components/table/TableDataRow.vue2.js +102 -63
- package/dist/components/table/TableFilterPanel.vue.js +2 -2
- package/dist/components/table/TableFilterPanel.vue2.js +3 -0
- package/dist/components/table/TableGroupRow.vue.d.ts +2 -0
- package/dist/components/table/TableGroupRow.vue.js +2 -2
- package/dist/components/table/TableGroupRow.vue2.js +35 -30
- package/dist/components/table/TableHeaderRow.vue.d.ts +3 -1
- package/dist/components/table/TableHeaderRow.vue.js +1 -1
- package/dist/components/table/TableHeaderRow.vue2.js +111 -58
- package/dist/components/table/TableToolbar.vue.js +1 -1
- package/dist/components/table/TableToolbar.vue2.js +2 -2
- package/dist/components/tabs/TabPanel.vue.js +4 -4
- package/dist/components/tabs/TabPanel.vue2.js +1 -1
- package/dist/components/tabs/Tabs.vue.js +2 -2
- package/dist/components/tabs/Tabs.vue2.js +2 -2
- package/dist/components/timeline/GanttRow.vue.d.ts +2 -0
- package/dist/components/timeline/GanttRow.vue.js +2 -2
- package/dist/components/timeline/GanttRow.vue2.js +68 -52
- package/dist/components/timeline/GanttTimeline.vue.d.ts +6 -0
- package/dist/components/timeline/GanttTimeline.vue.js +2 -2
- package/dist/components/timeline/GanttTimeline.vue2.js +24 -24
- package/dist/composables/useColumnResize.d.ts +4 -1
- package/dist/composables/useColumnResize.js +114 -45
- package/dist/composables/useKeyboardNavigation.d.ts +1 -1
- package/dist/composables/useRowDrag.d.ts +7 -5
- package/dist/composables/useRowDrag.js +24 -24
- package/dist/composables/useSupabaseProvider.d.ts +8 -1
- package/dist/composables/useTableData.d.ts +5 -3
- package/dist/composables/useTableGroup.d.ts +2 -2
- package/dist/composables/useViewPersistence.d.ts +32 -3
- package/dist/composables/useVirtualList.d.ts +1 -0
- package/dist/composables/useVirtualList.js +94 -81
- package/dist/plugin.js +103 -102
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/utils/echarts.d.ts +1 -0
- package/dist/utils/supabaseSchema.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,140 +1,153 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
function
|
|
3
|
-
var
|
|
4
|
-
const { items: n, itemHeight: c, overscan:
|
|
5
|
-
let d = null,
|
|
6
|
-
function
|
|
7
|
-
return a.has(e) ? a.get(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
|
|
10
|
-
!
|
|
9
|
+
function K() {
|
|
10
|
+
!x.measureRow || typeof ResizeObserver > "u" || (f = new ResizeObserver((e) => {
|
|
11
11
|
let t = !1;
|
|
12
|
-
for (const
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
15
|
-
const
|
|
16
|
-
a.get(
|
|
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 &&
|
|
18
|
+
t && b.value++;
|
|
19
19
|
}));
|
|
20
20
|
}
|
|
21
|
-
|
|
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 || !
|
|
26
|
+
!e || !f || (e.dataset.virtualIndex = String(t), f.observe(e));
|
|
24
27
|
}
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
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,
|
|
32
|
+
e[t + 1] = e[t] + Math.max(0, D(t));
|
|
30
33
|
return e;
|
|
31
|
-
}),
|
|
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
|
|
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 (
|
|
39
|
-
const
|
|
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) /
|
|
45
|
+
Math.min(n.value.length - 1, Math.floor(Math.max(0, e) / r))
|
|
43
46
|
);
|
|
44
47
|
}
|
|
45
|
-
const t =
|
|
46
|
-
let
|
|
47
|
-
for (;
|
|
48
|
-
const
|
|
49
|
-
t[
|
|
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(
|
|
54
|
+
return Math.max(0, Math.min(i, n.value.length - 1));
|
|
52
55
|
}
|
|
53
|
-
const
|
|
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 (
|
|
60
|
-
const
|
|
61
|
-
return { start:
|
|
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,
|
|
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,
|
|
69
|
+
end: Math.min(e, r + m + 1)
|
|
67
70
|
};
|
|
68
|
-
}),
|
|
69
|
-
const { start: e, end: t } =
|
|
70
|
-
return n.value.slice(e, t).map((
|
|
71
|
-
data:
|
|
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
|
|
78
|
+
function M(e) {
|
|
76
79
|
if (!e) {
|
|
77
|
-
|
|
80
|
+
s.value = 0, v.value = 0;
|
|
78
81
|
return;
|
|
79
82
|
}
|
|
80
|
-
|
|
83
|
+
s.value = e.scrollTop, v.value = e.clientHeight;
|
|
81
84
|
}
|
|
82
|
-
function
|
|
83
|
-
|
|
85
|
+
function S() {
|
|
86
|
+
l && (s.value = l.scrollTop);
|
|
84
87
|
}
|
|
85
|
-
function
|
|
88
|
+
function O() {
|
|
86
89
|
d == null || d.disconnect(), d = null;
|
|
87
90
|
}
|
|
88
|
-
function
|
|
89
|
-
e && e.removeEventListener("scroll",
|
|
91
|
+
function E(e) {
|
|
92
|
+
e && e.removeEventListener("scroll", S);
|
|
90
93
|
}
|
|
91
|
-
function
|
|
94
|
+
function j(e) {
|
|
92
95
|
if (!e) {
|
|
93
|
-
|
|
96
|
+
l = null, M(null);
|
|
94
97
|
return;
|
|
95
98
|
}
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
101
|
-
|
|
103
|
+
z(
|
|
104
|
+
A,
|
|
102
105
|
(e, t) => {
|
|
103
|
-
|
|
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
|
|
108
|
-
|
|
109
|
-
var
|
|
110
|
-
const t = e.length,
|
|
111
|
-
if (
|
|
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
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
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
|
|
118
|
-
if (!
|
|
119
|
-
const t = Math.max(0, Math.min(e, n.value.length - 1)),
|
|
120
|
-
|
|
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
|
|
123
|
-
if (!
|
|
124
|
-
const e = Math.max(0,
|
|
125
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
|
|
152
|
+
_ as useVirtualList
|
|
140
153
|
};
|
package/dist/plugin.js
CHANGED
|
@@ -1,99 +1,98 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
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
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import
|
|
94
|
-
import
|
|
95
|
-
const
|
|
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
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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
|
-
|
|
196
|
-
|
|
196
|
+
Dm as OneflowUI,
|
|
197
|
+
Dm as default
|
|
197
198
|
};
|