@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
|
@@ -46,11 +46,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
46
46
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
47
47
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
|
+
title: string;
|
|
49
50
|
width: string;
|
|
51
|
+
zIndex: number;
|
|
50
52
|
closable: boolean;
|
|
51
53
|
maskClosable: boolean;
|
|
52
54
|
centered: boolean;
|
|
53
|
-
zIndex: number;
|
|
54
55
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
55
56
|
modalRef: HTMLDivElement;
|
|
56
57
|
}, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Modal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d6d6bd1"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { X as
|
|
3
|
-
import { useFocusTrap as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as h, watch as w, onUnmounted as C, openBlock as o, createBlock as p, Teleport as V, createVNode as r, Transition as B, withCtx as _, createElementBlock as l, normalizeStyle as c, createCommentVNode as a, createElementVNode as u, normalizeClass as z, renderSlot as s, toDisplayString as E, unref as T } from "vue";
|
|
2
|
+
import { X as $ } from "lucide-vue-next";
|
|
3
|
+
import { useFocusTrap as x } from "../../composables/useFocusTrap.js";
|
|
4
|
+
const I = ["aria-label"], L = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "of-modal__header"
|
|
7
7
|
}, N = {
|
|
@@ -13,29 +13,29 @@ const L = ["aria-label"], M = {
|
|
|
13
13
|
}, S = { class: "of-modal__body" }, g = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "of-modal__footer"
|
|
16
|
-
},
|
|
16
|
+
}, K = /* @__PURE__ */ h({
|
|
17
17
|
inheritAttrs: !1,
|
|
18
18
|
__name: "Modal",
|
|
19
19
|
props: {
|
|
20
20
|
modelValue: { type: Boolean },
|
|
21
21
|
width: { default: "500px" },
|
|
22
|
-
title: {},
|
|
22
|
+
title: { default: void 0 },
|
|
23
23
|
closable: { type: Boolean, default: !0 },
|
|
24
24
|
maskClosable: { type: Boolean, default: !0 },
|
|
25
25
|
centered: { type: Boolean, default: !0 },
|
|
26
26
|
zIndex: { default: 1e3 }
|
|
27
27
|
},
|
|
28
28
|
emits: ["update:modelValue"],
|
|
29
|
-
setup(e, { emit:
|
|
30
|
-
const d = e,
|
|
29
|
+
setup(e, { emit: m }) {
|
|
30
|
+
const d = e, f = m, {
|
|
31
31
|
containerRef: y,
|
|
32
|
-
activate:
|
|
33
|
-
deactivate:
|
|
34
|
-
} =
|
|
32
|
+
activate: k,
|
|
33
|
+
deactivate: v
|
|
34
|
+
} = x();
|
|
35
35
|
function n() {
|
|
36
|
-
|
|
36
|
+
f("update:modelValue", !1);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function b() {
|
|
39
39
|
d.maskClosable && n();
|
|
40
40
|
}
|
|
41
41
|
function i(t) {
|
|
@@ -44,49 +44,55 @@ const L = ["aria-label"], M = {
|
|
|
44
44
|
return w(
|
|
45
45
|
() => d.modelValue,
|
|
46
46
|
(t) => {
|
|
47
|
-
typeof document > "u" || (t ? (document.body.style.overflow = "hidden", document.addEventListener("keydown", i),
|
|
47
|
+
typeof document > "u" || (t ? (document.body.style.overflow = "hidden", document.addEventListener("keydown", i), k()) : (document.body.style.overflow = "", document.removeEventListener("keydown", i), v()));
|
|
48
48
|
}
|
|
49
|
-
),
|
|
49
|
+
), C(() => {
|
|
50
50
|
typeof document > "u" || (document.body.style.overflow = "", document.removeEventListener("keydown", i));
|
|
51
|
-
}), (t,
|
|
51
|
+
}), (t, M) => (o(), p(V, { to: "body" }, [
|
|
52
52
|
r(B, { name: "of-modal" }, {
|
|
53
53
|
default: _(() => [
|
|
54
54
|
e.modelValue ? (o(), l("div", {
|
|
55
55
|
key: 0,
|
|
56
56
|
class: "of-modal-backdrop",
|
|
57
|
-
style: c({ zIndex: e.zIndex })
|
|
58
|
-
onClick: z(v, ["self"])
|
|
57
|
+
style: c({ zIndex: e.zIndex })
|
|
59
58
|
}, [
|
|
60
|
-
|
|
59
|
+
e.maskClosable ? (o(), l("button", {
|
|
60
|
+
key: 0,
|
|
61
|
+
type: "button",
|
|
62
|
+
class: "of-modal-backdrop__hitarea",
|
|
63
|
+
"aria-label": "关闭弹窗",
|
|
64
|
+
onClick: b
|
|
65
|
+
})) : a("", !0),
|
|
66
|
+
u("div", {
|
|
61
67
|
ref_key: "modalRef",
|
|
62
68
|
ref: y,
|
|
63
|
-
class:
|
|
69
|
+
class: z(["of-modal", { "of-modal--centered": e.centered }]),
|
|
64
70
|
style: c({ width: e.width, maxWidth: "90vw" }),
|
|
65
71
|
role: "dialog",
|
|
66
72
|
"aria-modal": "true",
|
|
67
73
|
"aria-label": e.title
|
|
68
74
|
}, [
|
|
69
|
-
t.$slots.header || e.title || e.closable ? (o(), l("div",
|
|
75
|
+
t.$slots.header || e.title || e.closable ? (o(), l("div", L, [
|
|
70
76
|
s(t.$slots, "header", {}, () => [
|
|
71
|
-
e.title ? (o(), l("h3", N,
|
|
77
|
+
e.title ? (o(), l("h3", N, E(e.title), 1)) : (o(), l("div", R))
|
|
72
78
|
], !0),
|
|
73
79
|
e.closable ? (o(), l("button", {
|
|
74
80
|
key: 0,
|
|
75
81
|
class: "of-modal__close",
|
|
76
|
-
onClick: n,
|
|
77
82
|
"aria-label": "关闭",
|
|
78
|
-
type: "button"
|
|
83
|
+
type: "button",
|
|
84
|
+
onClick: n
|
|
79
85
|
}, [
|
|
80
|
-
r($
|
|
86
|
+
r(T($), { size: 18 })
|
|
81
87
|
])) : a("", !0)
|
|
82
88
|
])) : a("", !0),
|
|
83
|
-
|
|
89
|
+
u("div", S, [
|
|
84
90
|
s(t.$slots, "default", {}, void 0, !0)
|
|
85
91
|
]),
|
|
86
92
|
t.$slots.footer ? (o(), l("div", g, [
|
|
87
93
|
s(t.$slots, "footer", {}, void 0, !0)
|
|
88
94
|
])) : a("", !0)
|
|
89
|
-
], 14,
|
|
95
|
+
], 14, I)
|
|
90
96
|
], 4)) : a("", !0)
|
|
91
97
|
]),
|
|
92
98
|
_: 3
|
|
@@ -95,5 +101,5 @@ const L = ["aria-label"], M = {
|
|
|
95
101
|
}
|
|
96
102
|
});
|
|
97
103
|
export {
|
|
98
|
-
|
|
104
|
+
K as default
|
|
99
105
|
};
|
|
@@ -26,6 +26,7 @@ declare const __VLS_component: import('vue').DefineComponent<SidePanelProps, {},
|
|
|
26
26
|
}, string, import('vue').PublicProps, Readonly<SidePanelProps> & Readonly<{
|
|
27
27
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
|
+
title: string;
|
|
29
30
|
width: number;
|
|
30
31
|
mode: "lazy" | "persistent";
|
|
31
32
|
showClose: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidePanel.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bf2b5d9f"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, computed as V, onMounted as C, watch as $, onBeforeUnmount as B, openBlock as t, createBlock as S, Teleport as E, createElementBlock as l, Fragment as g, normalizeStyle as u, renderSlot as d, toDisplayString as f, createVNode as m, unref as y, createCommentVNode as a, createElementVNode as h, withDirectives as z, vShow as P } from "vue";
|
|
2
|
-
import { X as
|
|
2
|
+
import { X as v } from "lucide-vue-next";
|
|
3
3
|
import { useFocusTrap as R } from "../../composables/useFocusTrap.js";
|
|
4
4
|
const T = ["aria-label"], N = {
|
|
5
5
|
key: 0,
|
|
@@ -24,13 +24,13 @@ const T = ["aria-label"], N = {
|
|
|
24
24
|
props: {
|
|
25
25
|
modelValue: { type: Boolean },
|
|
26
26
|
width: { default: 500 },
|
|
27
|
-
title: {},
|
|
27
|
+
title: { default: void 0 },
|
|
28
28
|
showClose: { type: Boolean, default: !0 },
|
|
29
29
|
mode: { default: "persistent" }
|
|
30
30
|
},
|
|
31
31
|
emits: ["update:modelValue"],
|
|
32
|
-
setup(e, { emit:
|
|
33
|
-
const i = e, w =
|
|
32
|
+
setup(e, { emit: k }) {
|
|
33
|
+
const i = e, w = k, n = V(() => ({
|
|
34
34
|
width: `${i.width}px`
|
|
35
35
|
})), {
|
|
36
36
|
containerRef: r,
|
|
@@ -76,7 +76,7 @@ const T = ["aria-label"], N = {
|
|
|
76
76
|
"aria-label": "关闭",
|
|
77
77
|
onClick: s
|
|
78
78
|
}, [
|
|
79
|
-
m(y(
|
|
79
|
+
m(y(v), { size: 18 })
|
|
80
80
|
])) : a("", !0)
|
|
81
81
|
])) : a("", !0),
|
|
82
82
|
h("div", L, [
|
|
@@ -104,7 +104,7 @@ const T = ["aria-label"], N = {
|
|
|
104
104
|
"aria-label": "关闭",
|
|
105
105
|
onClick: s
|
|
106
106
|
}, [
|
|
107
|
-
m(y(
|
|
107
|
+
m(y(v), { size: 18 })
|
|
108
108
|
])) : a("", !0)
|
|
109
109
|
])) : a("", !0),
|
|
110
110
|
h("div", j, [
|
|
@@ -2,7 +2,7 @@ import o from "./SplitPane.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9ba00779"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
i as default
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as g, ref as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as g, ref as p, onUnmounted as S, openBlock as L, createElementBlock as M, normalizeClass as _, createElementVNode as c, normalizeStyle as w, renderSlot as z, withModifiers as x } from "vue";
|
|
2
|
+
const y = { class: "of-split-pane__second" }, C = /* @__PURE__ */ g({
|
|
3
3
|
__name: "SplitPane",
|
|
4
4
|
props: {
|
|
5
5
|
direction: {},
|
|
@@ -8,8 +8,8 @@ const B = { class: "of-split-pane__second" }, D = /* @__PURE__ */ g({
|
|
|
8
8
|
maxSize: {}
|
|
9
9
|
},
|
|
10
10
|
setup(d) {
|
|
11
|
-
const n = d, u =
|
|
12
|
-
function
|
|
11
|
+
const n = d, u = p(n.defaultSize ?? 50), s = p(!1), r = p(null);
|
|
12
|
+
function h(e) {
|
|
13
13
|
e.preventDefault(), s.value = !0, document.addEventListener("mousemove", m), document.addEventListener("mouseup", o), document.addEventListener("touchmove", v, { passive: !1 }), document.addEventListener("touchend", o);
|
|
14
14
|
}
|
|
15
15
|
function m(e) {
|
|
@@ -50,19 +50,21 @@ const B = { class: "of-split-pane__second" }, D = /* @__PURE__ */ g({
|
|
|
50
50
|
}, [
|
|
51
51
|
z(e.$slots, "first", {}, void 0, !0)
|
|
52
52
|
], 4),
|
|
53
|
-
c("
|
|
53
|
+
c("button", {
|
|
54
|
+
type: "button",
|
|
54
55
|
class: "of-split-pane__divider",
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
"aria-label": "调整分栏尺寸",
|
|
57
|
+
onMousedown: h,
|
|
58
|
+
onTouchstart: x(h, ["prevent"])
|
|
57
59
|
}, [...t[0] || (t[0] = [
|
|
58
60
|
c("div", { class: "of-split-pane__divider-inner" }, null, -1)
|
|
59
61
|
])], 32),
|
|
60
|
-
c("div",
|
|
62
|
+
c("div", y, [
|
|
61
63
|
z(e.$slots, "second", {}, void 0, !0)
|
|
62
64
|
])
|
|
63
65
|
], 2));
|
|
64
66
|
}
|
|
65
67
|
});
|
|
66
68
|
export {
|
|
67
|
-
|
|
69
|
+
C as default
|
|
68
70
|
};
|
|
@@ -13,19 +13,21 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
13
13
|
sort: (colKey: string, direction: "asc" | "desc") => any;
|
|
14
14
|
delete: (colKey: string) => any;
|
|
15
15
|
close: () => any;
|
|
16
|
+
hide: (colKey: string) => any;
|
|
16
17
|
rename: (colKey: string, newName: string) => any;
|
|
17
18
|
"change-type": (colKey: string, newType: FieldType) => any;
|
|
18
|
-
hide: (colKey: string) => any;
|
|
19
19
|
duplicate: (colKey: string) => any;
|
|
20
20
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
21
|
onSort?: ((colKey: string, direction: "asc" | "desc") => any) | undefined;
|
|
22
22
|
onDelete?: ((colKey: string) => any) | undefined;
|
|
23
23
|
onClose?: (() => any) | undefined;
|
|
24
|
+
onHide?: ((colKey: string) => any) | undefined;
|
|
24
25
|
onRename?: ((colKey: string, newName: string) => any) | undefined;
|
|
25
26
|
"onChange-type"?: ((colKey: string, newType: FieldType) => any) | undefined;
|
|
26
|
-
onHide?: ((colKey: string) => any) | undefined;
|
|
27
27
|
onDuplicate?: ((colKey: string) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
|
+
sortOrder: "asc" | "desc" | null;
|
|
30
|
+
fieldType: FieldType;
|
|
29
31
|
deletable: boolean;
|
|
30
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
31
33
|
renameInput: HTMLInputElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ColumnHeaderMenu.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7d9517c4"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { defineComponent as $, ref as y, computed as p, onMounted as w, nextTick as z, openBlock as
|
|
2
|
-
import { ArrowUp as
|
|
1
|
+
import { defineComponent as $, ref as y, computed as p, onMounted as w, nextTick as z, openBlock as m, createBlock as B, Teleport as L, createElementBlock as d, createElementVNode as l, normalizeStyle as E, withKeys as v, toDisplayString as S, createVNode as i, createCommentVNode as c, unref as r, Fragment as N } from "vue";
|
|
2
|
+
import { ArrowUp as A, ArrowDown as D, EyeOff as P, Copy as V, Trash2 as F } from "lucide-vue-next";
|
|
3
3
|
import I from "./FieldTypePicker.vue.js";
|
|
4
|
-
const
|
|
4
|
+
const M = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "of-col-menu-overlay"
|
|
7
|
+
}, O = { class: "of-col-menu__section" }, _ = ["value"], H = { class: "of-col-menu__item-value" }, R = {
|
|
5
8
|
key: 0,
|
|
6
9
|
class: "of-col-menu__sub"
|
|
7
|
-
},
|
|
10
|
+
}, q = /* @__PURE__ */ $({
|
|
8
11
|
__name: "ColumnHeaderMenu",
|
|
9
12
|
props: {
|
|
10
13
|
colKey: {},
|
|
11
14
|
colLabel: {},
|
|
12
|
-
fieldType: {},
|
|
13
|
-
sortOrder: {},
|
|
15
|
+
fieldType: { default: void 0 },
|
|
16
|
+
sortOrder: { default: null },
|
|
14
17
|
visible: { type: Boolean },
|
|
15
18
|
x: {},
|
|
16
19
|
y: {},
|
|
@@ -18,7 +21,7 @@ const O = { class: "of-col-menu__section" }, H = ["value"], R = { class: "of-col
|
|
|
18
21
|
},
|
|
19
22
|
emits: ["close", "rename", "change-type", "sort", "hide", "delete", "duplicate"],
|
|
20
23
|
setup(s, { emit: b }) {
|
|
21
|
-
const
|
|
24
|
+
const u = s, t = b, f = y(null), a = y(!1), k = {
|
|
22
25
|
text: "文本",
|
|
23
26
|
number: "数字",
|
|
24
27
|
select: "单选",
|
|
@@ -39,34 +42,36 @@ const O = { class: "of-col-menu__section" }, H = ["value"], R = { class: "of-col
|
|
|
39
42
|
attachment: "附件",
|
|
40
43
|
formula: "公式",
|
|
41
44
|
user: "用户"
|
|
42
|
-
}, C = p(() => k[
|
|
45
|
+
}, C = p(() => k[u.fieldType ?? ""] ?? u.fieldType ?? "");
|
|
43
46
|
w(() => z(() => {
|
|
44
47
|
var o;
|
|
45
48
|
return (o = f.value) == null ? void 0 : o.select();
|
|
46
49
|
}));
|
|
47
50
|
function T(o) {
|
|
48
51
|
const n = o.target.value.trim();
|
|
49
|
-
n && n !==
|
|
52
|
+
n && n !== u.colLabel && t("rename", u.colKey, n), t("close");
|
|
50
53
|
}
|
|
51
54
|
function x(o) {
|
|
52
|
-
t("change-type",
|
|
55
|
+
t("change-type", u.colKey, o), a.value = !1, t("close");
|
|
53
56
|
}
|
|
54
57
|
function K() {
|
|
55
|
-
t("delete",
|
|
58
|
+
t("delete", u.colKey), t("close");
|
|
56
59
|
}
|
|
57
60
|
const g = p(() => {
|
|
58
61
|
const o = {};
|
|
59
|
-
return o.left = `${
|
|
62
|
+
return o.left = `${u.x}px`, o.top = `${u.y}px`, o;
|
|
60
63
|
});
|
|
61
|
-
return (o, e) => (
|
|
62
|
-
s.visible ? (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
return (o, e) => (m(), B(L, { to: "body" }, [
|
|
65
|
+
s.visible ? (m(), d("div", M, [
|
|
66
|
+
l("button", {
|
|
67
|
+
type: "button",
|
|
68
|
+
class: "of-col-menu-overlay__hitarea",
|
|
69
|
+
"aria-label": "关闭列菜单",
|
|
70
|
+
onClick: e[0] || (e[0] = (n) => t("close"))
|
|
71
|
+
}),
|
|
67
72
|
l("div", {
|
|
68
73
|
class: "of-col-menu",
|
|
69
|
-
style:
|
|
74
|
+
style: E(g.value)
|
|
70
75
|
}, [
|
|
71
76
|
l("div", O, [
|
|
72
77
|
l("input", {
|
|
@@ -74,23 +79,24 @@ const O = { class: "of-col-menu__section" }, H = ["value"], R = { class: "of-col
|
|
|
74
79
|
ref: f,
|
|
75
80
|
class: "of-col-menu__rename-input",
|
|
76
81
|
value: s.colLabel,
|
|
82
|
+
"aria-label": "字段名称",
|
|
77
83
|
placeholder: "字段名称",
|
|
78
84
|
onKeydown: [
|
|
79
85
|
v(T, ["enter"]),
|
|
80
|
-
e[
|
|
86
|
+
e[1] || (e[1] = v((n) => t("close"), ["escape"]))
|
|
81
87
|
]
|
|
82
|
-
}, null, 40,
|
|
88
|
+
}, null, 40, _)
|
|
83
89
|
]),
|
|
84
90
|
e[14] || (e[14] = l("div", { class: "of-col-menu__divider" }, null, -1)),
|
|
85
91
|
l("button", {
|
|
86
92
|
class: "of-col-menu__item",
|
|
87
|
-
onClick: e[
|
|
93
|
+
onClick: e[2] || (e[2] = (n) => a.value = !a.value)
|
|
88
94
|
}, [
|
|
89
95
|
e[7] || (e[7] = l("span", null, "字段类型", -1)),
|
|
90
|
-
l("span",
|
|
96
|
+
l("span", H, S(C.value), 1)
|
|
91
97
|
]),
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
a.value ? (m(), d("div", R, [
|
|
99
|
+
i(I, {
|
|
94
100
|
"current-type": s.fieldType,
|
|
95
101
|
onSelect: x
|
|
96
102
|
}, null, 8, ["current-type"])
|
|
@@ -98,48 +104,48 @@ const O = { class: "of-col-menu__section" }, H = ["value"], R = { class: "of-col
|
|
|
98
104
|
e[15] || (e[15] = l("div", { class: "of-col-menu__divider" }, null, -1)),
|
|
99
105
|
l("button", {
|
|
100
106
|
class: "of-col-menu__item",
|
|
101
|
-
onClick: e[
|
|
107
|
+
onClick: e[3] || (e[3] = (n) => {
|
|
102
108
|
t("sort", s.colKey, "asc"), t("close");
|
|
103
109
|
})
|
|
104
110
|
}, [
|
|
105
|
-
|
|
111
|
+
i(r(A), { size: 14 }),
|
|
106
112
|
e[8] || (e[8] = l("span", null, "升序排序", -1))
|
|
107
113
|
]),
|
|
108
114
|
l("button", {
|
|
109
115
|
class: "of-col-menu__item",
|
|
110
|
-
onClick: e[
|
|
116
|
+
onClick: e[4] || (e[4] = (n) => {
|
|
111
117
|
t("sort", s.colKey, "desc"), t("close");
|
|
112
118
|
})
|
|
113
119
|
}, [
|
|
114
|
-
|
|
120
|
+
i(r(D), { size: 14 }),
|
|
115
121
|
e[9] || (e[9] = l("span", null, "降序排序", -1))
|
|
116
122
|
]),
|
|
117
123
|
e[16] || (e[16] = l("div", { class: "of-col-menu__divider" }, null, -1)),
|
|
118
124
|
l("button", {
|
|
119
125
|
class: "of-col-menu__item",
|
|
120
|
-
onClick: e[
|
|
126
|
+
onClick: e[5] || (e[5] = (n) => {
|
|
121
127
|
t("hide", s.colKey), t("close");
|
|
122
128
|
})
|
|
123
129
|
}, [
|
|
124
|
-
|
|
130
|
+
i(r(P), { size: 14 }),
|
|
125
131
|
e[10] || (e[10] = l("span", null, "隐藏列", -1))
|
|
126
132
|
]),
|
|
127
133
|
l("button", {
|
|
128
134
|
class: "of-col-menu__item",
|
|
129
|
-
onClick: e[
|
|
135
|
+
onClick: e[6] || (e[6] = (n) => {
|
|
130
136
|
t("duplicate", s.colKey), t("close");
|
|
131
137
|
})
|
|
132
138
|
}, [
|
|
133
|
-
|
|
139
|
+
i(r(V), { size: 14 }),
|
|
134
140
|
e[11] || (e[11] = l("span", null, "复制列", -1))
|
|
135
141
|
]),
|
|
136
|
-
s.deletable ? (
|
|
142
|
+
s.deletable ? (m(), d(N, { key: 1 }, [
|
|
137
143
|
e[13] || (e[13] = l("div", { class: "of-col-menu__divider" }, null, -1)),
|
|
138
144
|
l("button", {
|
|
139
145
|
class: "of-col-menu__item of-col-menu__item--danger",
|
|
140
146
|
onClick: K
|
|
141
147
|
}, [
|
|
142
|
-
|
|
148
|
+
i(r(F), { size: 14 }),
|
|
143
149
|
e[12] || (e[12] = l("span", null, "删除列", -1))
|
|
144
150
|
])
|
|
145
151
|
], 64)) : c("", !0)
|
|
@@ -149,5 +155,5 @@ const O = { class: "of-col-menu__section" }, H = ["value"], R = { class: "of-col
|
|
|
149
155
|
}
|
|
150
156
|
});
|
|
151
157
|
export {
|
|
152
|
-
|
|
158
|
+
q as default
|
|
153
159
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { FieldDef as CellFieldDef } from './FieldCell.vue';
|
|
2
|
-
import { Task, TableColumn, ColorMap, DataRecord, TableSchema, ViewConfig, ActiveCell, AggregationConfig, GroupConfig } from '../../types';
|
|
2
|
+
import { Density, Task, TableColumn, ColorMap, DataRecord, TableSchema, ViewConfig, ActiveCell, AggregationConfig, GroupConfig } from '../../types';
|
|
3
3
|
declare const _default: <T extends {
|
|
4
4
|
id: string;
|
|
5
|
-
} & Record<string,
|
|
5
|
+
} & Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
7
7
|
readonly onPaste?: ((payload: {
|
|
8
8
|
startRowId: string;
|
|
9
9
|
startColKey: string;
|
|
10
10
|
data: string[][];
|
|
11
11
|
}) => any) | undefined;
|
|
12
|
-
readonly "onRow-click"?: ((row:
|
|
12
|
+
readonly "onRow-click"?: ((row: DataRecord | T) => any) | undefined;
|
|
13
13
|
readonly "onAdd-row"?: (() => any) | undefined;
|
|
14
14
|
readonly "onCell-edit"?: ((payload: {
|
|
15
15
|
rowId: string;
|
|
@@ -42,6 +42,7 @@ declare const _default: <T extends {
|
|
|
42
42
|
readonly "onDrafts-commit-all"?: ((payload: {
|
|
43
43
|
records: DataRecord[];
|
|
44
44
|
}) => any) | undefined;
|
|
45
|
+
readonly "onRow-delete"?: ((rowId: string) => any) | undefined;
|
|
45
46
|
readonly "onSchema-add-field"?: ((fieldType: string) => any) | undefined;
|
|
46
47
|
readonly "onSchema-rename-field"?: ((payload: {
|
|
47
48
|
fieldId: string;
|
|
@@ -54,7 +55,7 @@ declare const _default: <T extends {
|
|
|
54
55
|
readonly "onSchema-hide-field"?: ((fieldId: string) => any) | undefined;
|
|
55
56
|
readonly "onSchema-delete-field"?: ((fieldId: string) => any) | undefined;
|
|
56
57
|
readonly "onSchema-duplicate-field"?: ((fieldId: string) => any) | undefined;
|
|
57
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onPaste" | "onRow-click" | "onAdd-row" | "onCell-edit" | "onRow-click-record" | "onSelection-change" | "onColumn-resize" | "onActive-cell-change" | "onRow-reorder" | "onRow-group-change" | "onDraft-commit" | "onDraft-discard" | "onDrafts-commit-all" | "onSchema-add-field" | "onSchema-rename-field" | "onSchema-change-field-type" | "onSchema-hide-field" | "onSchema-delete-field" | "onSchema-duplicate-field"> & {
|
|
58
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onPaste" | "onRow-click" | "onAdd-row" | "onCell-edit" | "onRow-click-record" | "onSelection-change" | "onColumn-resize" | "onActive-cell-change" | "onRow-reorder" | "onRow-group-change" | "onDraft-commit" | "onDraft-discard" | "onDrafts-commit-all" | "onRow-delete" | "onSchema-add-field" | "onSchema-rename-field" | "onSchema-change-field-type" | "onSchema-hide-field" | "onSchema-delete-field" | "onSchema-duplicate-field"> & {
|
|
58
59
|
tasks?: Task[];
|
|
59
60
|
records?: DataRecord[];
|
|
60
61
|
schema?: TableSchema;
|
|
@@ -87,6 +88,8 @@ declare const _default: <T extends {
|
|
|
87
88
|
aggregations?: AggregationConfig[];
|
|
88
89
|
/** 启用字段管理交互(列头菜单、添加字段) */
|
|
89
90
|
enableFieldManagement?: boolean;
|
|
91
|
+
/** Density preset used for table, list, and detail affordances */
|
|
92
|
+
density?: Density;
|
|
90
93
|
} & Partial<{}>> & import('vue').PublicProps;
|
|
91
94
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
92
95
|
attrs: any;
|
|
@@ -138,7 +141,7 @@ declare const _default: <T extends {
|
|
|
138
141
|
startRowId: string;
|
|
139
142
|
startColKey: string;
|
|
140
143
|
data: string[][];
|
|
141
|
-
}) => void) & ((evt: "row-click", row:
|
|
144
|
+
}) => void) & ((evt: "row-click", row: DataRecord | T) => void) & ((evt: "add-row") => void) & ((evt: "cell-edit", payload: {
|
|
142
145
|
rowId: string;
|
|
143
146
|
fieldId: string;
|
|
144
147
|
value: unknown;
|
|
@@ -159,7 +162,7 @@ declare const _default: <T extends {
|
|
|
159
162
|
draftId: string;
|
|
160
163
|
}) => void) & ((evt: "drafts-commit-all", payload: {
|
|
161
164
|
records: DataRecord[];
|
|
162
|
-
}) => void) & ((evt: "schema-add-field", fieldType: string) => void) & ((evt: "schema-rename-field", payload: {
|
|
165
|
+
}) => void) & ((evt: "row-delete", rowId: string) => void) & ((evt: "schema-add-field", fieldType: string) => void) & ((evt: "schema-rename-field", payload: {
|
|
163
166
|
fieldId: string;
|
|
164
167
|
newName: string;
|
|
165
168
|
}) => void) & ((evt: "schema-change-field-type", payload: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-204347d4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|