@oneflowui/ui 0.5.5 → 0.5.7
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/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 +2 -1
- 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/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 +1 -0
- 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 +1 -0
- 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 +2 -0
- 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 +12 -5
- package/dist/components/table/DataTable.vue.js +4 -4
- package/dist/components/table/DataTable.vue2.js +535 -477
- package/dist/components/table/DetailSheet.vue.js +2 -2
- package/dist/components/table/DetailSheet.vue2.js +45 -40
- 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 +26 -3
- package/dist/components/table/MobileListView.vue.js +2 -2
- package/dist/components/table/MobileListView.vue2.js +65 -49
- 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 +2 -0
- package/dist/components/table/TableDataRow.vue.js +4 -4
- package/dist/components/table/TableDataRow.vue2.js +70 -58
- 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.js +3 -3
- package/dist/components/table/TableHeaderRow.vue2.js +63 -46
- 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/useKeyboardNavigation.d.ts +1 -1
- package/dist/composables/useRowDrag.d.ts +6 -4
- 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.js +60 -59
- package/dist/plugin.js +103 -102
- package/dist/style.css +1 -1
- package/dist/utils/echarts.d.ts +1 -0
- package/dist/utils/supabaseSchema.d.ts +12 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ const M = {
|
|
|
5
5
|
}, C = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "of-mermaid__error"
|
|
8
|
-
}, L = { class: "of-mermaid__error-text" },
|
|
8
|
+
}, L = { class: "of-mermaid__error-text" }, E = /* @__PURE__ */ p({
|
|
9
9
|
__name: "MermaidChart",
|
|
10
10
|
props: {
|
|
11
11
|
code: {},
|
|
@@ -13,53 +13,53 @@ const M = {
|
|
|
13
13
|
width: {}
|
|
14
14
|
},
|
|
15
15
|
setup(c) {
|
|
16
|
-
const
|
|
16
|
+
const r = c;
|
|
17
17
|
let f = 0;
|
|
18
|
-
const _ = `of-mermaid-${Date.now()}-${f++}`, l = d(null), o = d(!0),
|
|
18
|
+
const _ = `of-mermaid-${Date.now()}-${f++}`, l = d(null), o = d(!0), t = d("");
|
|
19
19
|
async function m() {
|
|
20
|
-
var
|
|
21
|
-
if (!((
|
|
20
|
+
var a;
|
|
21
|
+
if (!((a = r.code) != null && a.trim())) {
|
|
22
22
|
o.value = !1;
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
o.value = !0,
|
|
25
|
+
o.value = !0, t.value = "";
|
|
26
26
|
try {
|
|
27
27
|
let e = window.mermaid;
|
|
28
28
|
e || (e = (await import("mermaid")).default), e.initialize({
|
|
29
29
|
startOnLoad: !1,
|
|
30
|
-
theme:
|
|
30
|
+
theme: r.theme || "default",
|
|
31
31
|
securityLevel: "loose"
|
|
32
32
|
}), await k();
|
|
33
|
-
const { svg: v } = await e.render(_,
|
|
33
|
+
const { svg: v } = await e.render(_, r.code);
|
|
34
34
|
l.value && (l.value.innerHTML = v);
|
|
35
35
|
} catch (e) {
|
|
36
|
-
|
|
36
|
+
t.value = e instanceof Error ? e.message : "图表渲染失败,请检查 Mermaid 语法";
|
|
37
37
|
} finally {
|
|
38
38
|
o.value = !1;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
return h(() => m()), y(
|
|
42
|
-
() => [
|
|
42
|
+
() => [r.code, r.theme],
|
|
43
43
|
() => m()
|
|
44
|
-
), (
|
|
44
|
+
), (a, e) => (n(), i("div", {
|
|
45
45
|
class: "of-mermaid",
|
|
46
|
-
style: g({ width:
|
|
46
|
+
style: g({ width: r.width || "100%" })
|
|
47
47
|
}, [
|
|
48
48
|
o.value ? (n(), i("div", M, [
|
|
49
|
-
u(
|
|
49
|
+
u(a.$slots, "loading", {}, () => [
|
|
50
50
|
e[0] || (e[0] = s("span", {
|
|
51
51
|
class: "of-mermaid__spinner",
|
|
52
52
|
"aria-hidden": "true"
|
|
53
53
|
}, null, -1)),
|
|
54
54
|
e[1] || (e[1] = s("span", { class: "of-mermaid__loading-text" }, "图表加载中...", -1))
|
|
55
55
|
], !0)
|
|
56
|
-
])) :
|
|
57
|
-
u(
|
|
56
|
+
])) : t.value ? (n(), i("div", C, [
|
|
57
|
+
u(a.$slots, "error", { message: t.value }, () => [
|
|
58
58
|
e[2] || (e[2] = s("span", {
|
|
59
59
|
class: "of-mermaid__error-icon",
|
|
60
60
|
"aria-hidden": "true"
|
|
61
61
|
}, "!", -1)),
|
|
62
|
-
s("span", L, w(
|
|
62
|
+
s("span", L, w(t.value), 1)
|
|
63
63
|
], !0)
|
|
64
64
|
])) : (n(), i("div", {
|
|
65
65
|
key: 2,
|
|
@@ -71,5 +71,5 @@ const M = {
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
export {
|
|
74
|
-
|
|
74
|
+
E as default
|
|
75
75
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Dialog.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-118545d6"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as v, computed as i, openBlock as t, createBlock as c, withCtx as f, createElementVNode as o, normalizeClass as u, resolveDynamicComponent as p, toDisplayString as n, createElementBlock as r, createCommentVNode as s, renderSlot as x, unref as V, createTextVNode as w } from "vue";
|
|
2
2
|
import { CheckCircle2 as B, AlertCircle as T, AlertTriangle as z, Info as D, Loader2 as N } from "lucide-vue-next";
|
|
3
3
|
import A from "./Modal.vue.js";
|
|
4
4
|
const E = { class: "of-dialog" }, I = { class: "of-dialog__content" }, M = { class: "of-dialog__title" }, S = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "of-dialog__text"
|
|
7
|
-
}, $ = ["disabled"], L = ["disabled"], G = /* @__PURE__ */
|
|
7
|
+
}, $ = ["disabled"], L = ["disabled"], G = /* @__PURE__ */ v({
|
|
8
8
|
__name: "Dialog",
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: { type: Boolean },
|
|
11
11
|
title: { default: "提示" },
|
|
12
|
-
content: {},
|
|
12
|
+
content: { default: void 0 },
|
|
13
13
|
confirmText: { default: "确认" },
|
|
14
14
|
cancelText: { default: "取消" },
|
|
15
15
|
type: { default: "info" },
|
|
@@ -24,11 +24,11 @@ const E = { class: "of-dialog" }, I = { class: "of-dialog__content" }, M = { cla
|
|
|
24
24
|
warning: z,
|
|
25
25
|
danger: T,
|
|
26
26
|
success: B
|
|
27
|
-
}, h =
|
|
27
|
+
}, h = i(() => `of-dialog__icon--${l.type}`), C = i(() => g[l.type]), b = i(
|
|
28
28
|
() => l.type === "danger" ? "of-dialog__btn--danger" : "of-dialog__btn--primary"
|
|
29
29
|
);
|
|
30
|
-
function y(
|
|
31
|
-
a("update:modelValue",
|
|
30
|
+
function y(d) {
|
|
31
|
+
a("update:modelValue", d);
|
|
32
32
|
}
|
|
33
33
|
function _() {
|
|
34
34
|
l.loading || a("confirm");
|
|
@@ -36,7 +36,7 @@ const E = { class: "of-dialog" }, I = { class: "of-dialog__content" }, M = { cla
|
|
|
36
36
|
function k() {
|
|
37
37
|
a("cancel"), a("update:modelValue", !1);
|
|
38
38
|
}
|
|
39
|
-
return (
|
|
39
|
+
return (d, U) => (t(), c(A, {
|
|
40
40
|
"model-value": e.modelValue,
|
|
41
41
|
width: e.width,
|
|
42
42
|
closable: !1,
|
|
@@ -71,12 +71,12 @@ const E = { class: "of-dialog" }, I = { class: "of-dialog__content" }, M = { cla
|
|
|
71
71
|
o("div", {
|
|
72
72
|
class: u(["of-dialog__icon-wrap", h.value])
|
|
73
73
|
}, [
|
|
74
|
-
(t(), c(
|
|
74
|
+
(t(), c(p(C.value), { size: 28 }))
|
|
75
75
|
], 2),
|
|
76
76
|
o("div", I, [
|
|
77
77
|
o("h3", M, n(e.title), 1),
|
|
78
78
|
e.content ? (t(), r("p", S, n(e.content), 1)) : s("", !0),
|
|
79
|
-
x(
|
|
79
|
+
x(d.$slots, "default", {}, void 0, !0)
|
|
80
80
|
])
|
|
81
81
|
])
|
|
82
82
|
]),
|
|
@@ -23,6 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
24
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
+
title: string;
|
|
26
27
|
width: number;
|
|
27
28
|
maskClosable: boolean;
|
|
28
29
|
zIndex: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Drawer.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-10de0e6f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { X as
|
|
1
|
+
import { defineComponent as _, useSlots as p, computed as V, onMounted as B, watch as x, onBeforeUnmount as z, openBlock as o, createBlock as E, Teleport as S, createVNode as u, Transition as T, withCtx as I, createElementBlock as a, normalizeStyle as c, createCommentVNode as l, createElementVNode as d, withModifiers as N, unref as f, renderSlot as m, toDisplayString as R } from "vue";
|
|
2
|
+
import { X as $ } from "lucide-vue-next";
|
|
3
3
|
import { useFocusTrap as g } from "../../composables/useFocusTrap.js";
|
|
4
4
|
const D = ["aria-label"], L = { class: "of-drawer__inner" }, M = {
|
|
5
5
|
key: 0,
|
|
@@ -7,50 +7,56 @@ const D = ["aria-label"], L = { class: "of-drawer__inner" }, M = {
|
|
|
7
7
|
}, F = { class: "of-drawer__title" }, K = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "of-drawer__title-text"
|
|
10
|
-
}, U = { class: "of-drawer__body" },
|
|
10
|
+
}, U = { class: "of-drawer__body" }, A = /* @__PURE__ */ _({
|
|
11
11
|
__name: "Drawer",
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: { type: Boolean },
|
|
14
14
|
width: { default: 390 },
|
|
15
|
-
title: {},
|
|
15
|
+
title: { default: void 0 },
|
|
16
16
|
showClose: { type: Boolean, default: !0 },
|
|
17
17
|
maskClosable: { type: Boolean, default: !0 },
|
|
18
18
|
zIndex: { default: 1e3 }
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
21
|
setup(e, { emit: y }) {
|
|
22
|
-
const r = e, w = y,
|
|
22
|
+
const r = e, w = y, h = p(), v = V(() => ({
|
|
23
23
|
width: `${r.width}px`
|
|
24
24
|
})), {
|
|
25
25
|
containerRef: k,
|
|
26
|
-
activate:
|
|
27
|
-
deactivate:
|
|
26
|
+
activate: b,
|
|
27
|
+
deactivate: C
|
|
28
28
|
} = g();
|
|
29
|
-
function
|
|
29
|
+
function n() {
|
|
30
30
|
w("update:modelValue", !1);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
t.key === "Escape" && r.modelValue &&
|
|
32
|
+
function i(t) {
|
|
33
|
+
t.key === "Escape" && r.modelValue && n();
|
|
34
34
|
}
|
|
35
35
|
return B(() => {
|
|
36
|
-
typeof document > "u" || document.addEventListener("keydown",
|
|
36
|
+
typeof document > "u" || document.addEventListener("keydown", i);
|
|
37
37
|
}), x(
|
|
38
38
|
() => r.modelValue,
|
|
39
39
|
(t) => {
|
|
40
|
-
typeof document > "u" || (document.body.style.overflow = t ? "hidden" : "", t ?
|
|
40
|
+
typeof document > "u" || (document.body.style.overflow = t ? "hidden" : "", t ? b() : C());
|
|
41
41
|
},
|
|
42
42
|
{ immediate: !0 }
|
|
43
43
|
), z(() => {
|
|
44
|
-
typeof document > "u" || (document.removeEventListener("keydown",
|
|
45
|
-
}), (t,
|
|
44
|
+
typeof document > "u" || (document.removeEventListener("keydown", i), document.body.style.overflow = "");
|
|
45
|
+
}), (t, s) => (o(), E(S, { to: "body" }, [
|
|
46
46
|
u(T, { name: "of-drawer" }, {
|
|
47
|
-
default:
|
|
48
|
-
e.modelValue ? (o(),
|
|
47
|
+
default: I(() => [
|
|
48
|
+
e.modelValue ? (o(), a("div", {
|
|
49
49
|
key: 0,
|
|
50
50
|
class: "of-drawer-overlay",
|
|
51
|
-
style:
|
|
52
|
-
onClick: a[1] || (a[1] = (X) => e.maskClosable && i())
|
|
51
|
+
style: c({ zIndex: e.zIndex })
|
|
53
52
|
}, [
|
|
53
|
+
e.maskClosable ? (o(), a("button", {
|
|
54
|
+
key: 0,
|
|
55
|
+
type: "button",
|
|
56
|
+
class: "of-drawer-overlay__hitarea",
|
|
57
|
+
"aria-label": "关闭抽屉",
|
|
58
|
+
onClick: n
|
|
59
|
+
})) : l("", !0),
|
|
54
60
|
d("aside", {
|
|
55
61
|
ref_key: "drawerRef",
|
|
56
62
|
ref: k,
|
|
@@ -58,33 +64,33 @@ const D = ["aria-label"], L = { class: "of-drawer__inner" }, M = {
|
|
|
58
64
|
role: "dialog",
|
|
59
65
|
"aria-modal": "true",
|
|
60
66
|
"aria-label": e.title,
|
|
61
|
-
style:
|
|
62
|
-
onClick:
|
|
67
|
+
style: c(v.value),
|
|
68
|
+
onClick: s[0] || (s[0] = N(() => {
|
|
63
69
|
}, ["stop"]))
|
|
64
70
|
}, [
|
|
65
71
|
d("div", L, [
|
|
66
|
-
|
|
72
|
+
f(h).title || e.title || e.showClose ? (o(), a("div", M, [
|
|
67
73
|
d("div", F, [
|
|
68
74
|
m(t.$slots, "title", {}, () => [
|
|
69
|
-
e.title ? (o(),
|
|
75
|
+
e.title ? (o(), a("h3", K, R(e.title), 1)) : l("", !0)
|
|
70
76
|
], !0)
|
|
71
77
|
]),
|
|
72
|
-
e.showClose ? (o(),
|
|
78
|
+
e.showClose ? (o(), a("button", {
|
|
73
79
|
key: 0,
|
|
74
80
|
class: "of-drawer__close",
|
|
75
81
|
type: "button",
|
|
76
82
|
"aria-label": "关闭",
|
|
77
|
-
onClick:
|
|
83
|
+
onClick: n
|
|
78
84
|
}, [
|
|
79
|
-
u(
|
|
80
|
-
])) :
|
|
81
|
-
])) :
|
|
85
|
+
u(f($), { size: 18 })
|
|
86
|
+
])) : l("", !0)
|
|
87
|
+
])) : l("", !0),
|
|
82
88
|
d("div", U, [
|
|
83
89
|
m(t.$slots, "default", {}, void 0, !0)
|
|
84
90
|
])
|
|
85
91
|
])
|
|
86
92
|
], 12, D)
|
|
87
|
-
], 4)) :
|
|
93
|
+
], 4)) : l("", !0)
|
|
88
94
|
]),
|
|
89
95
|
_: 3
|
|
90
96
|
})
|
|
@@ -92,5 +98,5 @@ const D = ["aria-label"], L = { class: "of-drawer__inner" }, M = {
|
|
|
92
98
|
}
|
|
93
99
|
});
|
|
94
100
|
export {
|
|
95
|
-
|
|
101
|
+
A as default
|
|
96
102
|
};
|
|
@@ -46,6 +46,7 @@ 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;
|
|
50
51
|
closable: boolean;
|
|
51
52
|
maskClosable: boolean;
|
|
@@ -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
|
};
|
|
@@ -26,6 +26,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
26
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
|
};
|