@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,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./SelectBadge.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const c = /* @__PURE__ */
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-ee15c3f4"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, computed as t, openBlock as l, createElementBlock as c, mergeProps as m, normalizeStyle as k, createCommentVNode as g, createElementVNode as B, renderSlot as h, unref as s, createBlock as _, resolveDynamicComponent as w } from "vue";
|
|
2
2
|
import { resolveIcon as S } from "../../utils/icon.js";
|
|
3
|
-
const
|
|
3
|
+
const E = { class: "one-select-badge__text" }, M = /* @__PURE__ */ y({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "SelectBadge",
|
|
6
6
|
props: {
|
|
7
|
-
color: {},
|
|
7
|
+
color: { default: void 0 },
|
|
8
8
|
dot: { type: Boolean, default: !1 },
|
|
9
|
-
dotColor: {},
|
|
10
|
-
textColor: {},
|
|
11
|
-
bgColor: {},
|
|
12
|
-
borderColor: {},
|
|
9
|
+
dotColor: { default: void 0 },
|
|
10
|
+
textColor: { default: void 0 },
|
|
11
|
+
bgColor: { default: void 0 },
|
|
12
|
+
borderColor: { default: void 0 },
|
|
13
13
|
clickable: { type: Boolean, default: !0 }
|
|
14
14
|
},
|
|
15
15
|
emits: ["click"],
|
|
16
|
-
setup(
|
|
17
|
-
const e =
|
|
16
|
+
setup(a, { emit: u }) {
|
|
17
|
+
const e = a, f = u, o = {
|
|
18
18
|
red: {
|
|
19
19
|
text: "var(--of-badge-red-text)",
|
|
20
20
|
bg: "var(--of-badge-red-bg)",
|
|
@@ -45,37 +45,45 @@ const w = { class: "one-select-badge__text" }, N = /* @__PURE__ */ x({
|
|
|
45
45
|
bg: "var(--of-badge-gray-bg)",
|
|
46
46
|
border: "var(--of-badge-gray-border)"
|
|
47
47
|
}
|
|
48
|
-
}, n =
|
|
48
|
+
}, n = t(() => e.textColor ? e.textColor : e.color && o[e.color] ? o[e.color].text : o.gray.text), v = t(() => e.bgColor ? e.bgColor : e.color && o[e.color] ? o[e.color].bg : o.gray.bg), i = t(() => e.borderColor ? e.borderColor : e.color && o[e.color] ? o[e.color].border : o.gray.border), C = t(
|
|
49
49
|
() => ({
|
|
50
50
|
"--one-sb-text": n.value,
|
|
51
|
-
"--one-sb-bg":
|
|
52
|
-
"--one-sb-border":
|
|
51
|
+
"--one-sb-bg": v.value,
|
|
52
|
+
"--one-sb-border": i.value
|
|
53
53
|
})
|
|
54
|
-
),
|
|
54
|
+
), p = t(() => ({
|
|
55
55
|
backgroundColor: e.dotColor || n.value
|
|
56
|
-
})),
|
|
57
|
-
function
|
|
58
|
-
|
|
56
|
+
})), d = S("chevron-down");
|
|
57
|
+
function b(r) {
|
|
58
|
+
f("click", r);
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
function x(r) {
|
|
61
|
+
r.key !== "Enter" && r.key !== " " || (r.preventDefault(), b(new MouseEvent("click")));
|
|
62
|
+
}
|
|
63
|
+
return (r, D) => (l(), c("span", m({
|
|
64
|
+
class: ["one-select-badge", { "one-select-badge--clickable": a.clickable }],
|
|
65
|
+
style: C.value,
|
|
66
|
+
role: "button",
|
|
67
|
+
tabindex: "0"
|
|
68
|
+
}, r.$attrs, {
|
|
69
|
+
onClick: b,
|
|
70
|
+
onKeydown: x
|
|
71
|
+
}), [
|
|
72
|
+
a.dot ? (l(), c("span", {
|
|
65
73
|
key: 0,
|
|
66
74
|
class: "one-select-badge__dot",
|
|
67
|
-
style:
|
|
68
|
-
}, null, 4)) :
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
style: k(p.value)
|
|
76
|
+
}, null, 4)) : g("", !0),
|
|
77
|
+
B("span", E, [
|
|
78
|
+
h(r.$slots, "default", {}, void 0, !0)
|
|
71
79
|
]),
|
|
72
|
-
|
|
80
|
+
a.clickable && s(d) ? (l(), _(w(s(d)), {
|
|
73
81
|
key: 1,
|
|
74
82
|
class: "one-select-badge__arrow"
|
|
75
|
-
})) :
|
|
83
|
+
})) : g("", !0)
|
|
76
84
|
], 16));
|
|
77
85
|
}
|
|
78
86
|
});
|
|
79
87
|
export {
|
|
80
|
-
|
|
88
|
+
M as default
|
|
81
89
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./StatisticCard.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-241b23d2"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./StatusIndicator.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-01dbeff6"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -9,7 +9,7 @@ const y = { class: "of-status-indicator__label" }, h = /* @__PURE__ */ d({
|
|
|
9
9
|
color: { default: void 0 }
|
|
10
10
|
},
|
|
11
11
|
setup(t) {
|
|
12
|
-
const n = {
|
|
12
|
+
const o = t, n = {
|
|
13
13
|
in_progress: "var(--of-color-info)",
|
|
14
14
|
executing: "var(--of-color-info)",
|
|
15
15
|
analysing: "var(--of-color-info)",
|
|
@@ -25,7 +25,7 @@ const y = { class: "of-status-indicator__label" }, h = /* @__PURE__ */ d({
|
|
|
25
25
|
}, i = {
|
|
26
26
|
sm: "6px",
|
|
27
27
|
md: "8px"
|
|
28
|
-
},
|
|
28
|
+
}, u = e(() => o.status.trim().toLowerCase()), r = e(() => o.label ?? o.status), a = e(
|
|
29
29
|
() => o.color ?? n[u.value] ?? "var(--of-color-gray-300)"
|
|
30
30
|
), s = e(() => i[o.size]);
|
|
31
31
|
return (l, S) => (f(), v("span", p({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./StatusSummary.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-3ee84048"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Stepper.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a3ce664"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Switch.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-d3f7ed37"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ToolbarBtn.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c5c7168"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ViewModeGroup.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0862eed2"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -10,13 +10,13 @@ const g = ["title", "onClick"], h = /* @__PURE__ */ s({
|
|
|
10
10
|
},
|
|
11
11
|
emits: ["update:modelValue"],
|
|
12
12
|
setup(n) {
|
|
13
|
-
const a = [
|
|
13
|
+
const a = n, i = u(() => a.options ?? r), r = [
|
|
14
14
|
{ value: "side", icon: "panel-right", label: "侧边面板" },
|
|
15
15
|
{ value: "modal", icon: "maximize-2", label: "弹窗" },
|
|
16
16
|
{ value: "fullscreen", icon: "maximize", label: "全屏" }
|
|
17
|
-
]
|
|
17
|
+
];
|
|
18
18
|
return (t, k) => (o(), l("div", m({ class: "one-view-mode-group" }, t.$attrs), [
|
|
19
|
-
(o(!0), l(c, null, d(
|
|
19
|
+
(o(!0), l(c, null, d(i.value, (e) => (o(), l("button", {
|
|
20
20
|
key: e.value,
|
|
21
21
|
class: p(["one-view-mode-group__btn", { "one-view-mode-group__btn--active": n.modelValue === e.value }]),
|
|
22
22
|
title: e.label,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ViewSwitcher.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2a0e75d0"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -20,14 +20,14 @@ const g = { class: "one-view-switcher__tabs" }, B = ["onClick"], L = {
|
|
|
20
20
|
},
|
|
21
21
|
emits: ["update:modelValue", "filter", "group", "sort", "search"],
|
|
22
22
|
setup(l) {
|
|
23
|
-
const w = [
|
|
23
|
+
const w = l, h = f(() => w.tabs ?? m), m = [
|
|
24
24
|
{ value: "table", label: "表格", icon: "table-2" },
|
|
25
25
|
{ value: "kanban", label: "看板", icon: "columns-3" },
|
|
26
26
|
{ value: "timeline", label: "时间线", icon: "calendar" }
|
|
27
|
-
]
|
|
27
|
+
];
|
|
28
28
|
return (s, e) => (o(), n("div", p({ class: "one-view-switcher" }, s.$attrs), [
|
|
29
29
|
r("div", g, [
|
|
30
|
-
(o(!0), n(k, null, y(
|
|
30
|
+
(o(!0), n(k, null, y(h.value, (t) => (o(), n("button", {
|
|
31
31
|
key: t.value,
|
|
32
32
|
class: $(["one-view-switcher__tab", { "one-view-switcher__tab--active": l.modelValue === t.value }]),
|
|
33
33
|
onClick: (V) => s.$emit("update:modelValue", t.value)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ViewTab.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-7743a555"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -9,18 +9,17 @@ const I = ["onClick"], V = { class: "of-view-tab__label" }, D = /* @__PURE__ */
|
|
|
9
9
|
},
|
|
10
10
|
emits: ["update:modelValue"],
|
|
11
11
|
setup(a, { emit: l }) {
|
|
12
|
-
const s = {
|
|
12
|
+
const s = l, c = {
|
|
13
13
|
"table-2": w,
|
|
14
14
|
kanban: h,
|
|
15
15
|
"layout-grid": C,
|
|
16
16
|
"gantt-chart": y
|
|
17
17
|
};
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
function i(e) {
|
|
19
|
+
return c[e];
|
|
20
20
|
}
|
|
21
|
-
const i = l;
|
|
22
21
|
function r(e) {
|
|
23
|
-
|
|
22
|
+
s("update:modelValue", e);
|
|
24
23
|
}
|
|
25
24
|
return (e, g) => (o(), n("div", u({ class: "of-view-tab" }, e.$attrs), [
|
|
26
25
|
(o(!0), n(_, null, d(a.items, (t) => (o(), n("button", {
|
|
@@ -28,7 +27,7 @@ const I = ["onClick"], V = { class: "of-view-tab__label" }, D = /* @__PURE__ */
|
|
|
28
27
|
class: b(["of-view-tab__item", { "of-view-tab__item--active": a.modelValue === t.key }]),
|
|
29
28
|
onClick: (B) => r(t.key)
|
|
30
29
|
}, [
|
|
31
|
-
(o(), f(p(
|
|
30
|
+
(o(), f(p(i(t.icon)), {
|
|
32
31
|
class: "of-view-tab__icon",
|
|
33
32
|
size: 14
|
|
34
33
|
})),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Breadcrumb.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bd4d4440"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./BreadcrumbItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-03aeb53d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
2
|
import { DatabaseViewActions as ViewDatabaseActions, DatabaseViewMode, DatabaseSchemaEvent, DatabaseViewProvider as ViewDatabaseProvider } from '../../composables/useDatabaseView';
|
|
3
3
|
import { FilterLogic } from '../../composables/useTableFilter';
|
|
4
|
-
import { DataRecord, TableColumn, TableSchema, ViewConfig } from '../../types';
|
|
4
|
+
import { DataRecord, Density, TableColumn, TableSchema, ViewConfig } from '../../types';
|
|
5
5
|
export interface DatabaseViewViewTab {
|
|
6
6
|
value: string;
|
|
7
7
|
label: string;
|
|
@@ -32,9 +32,12 @@ export interface DatabaseViewActions extends ViewDatabaseActions<DataRecord> {
|
|
|
32
32
|
export interface DatabaseViewUiOptions {
|
|
33
33
|
enableFieldManagement?: boolean;
|
|
34
34
|
}
|
|
35
|
+
export type DatabaseViewDetailPresentation = "auto" | "side-panel" | "sheet" | "full-page";
|
|
35
36
|
export interface DatabaseViewProps {
|
|
36
37
|
tableId?: string;
|
|
37
38
|
mode?: DatabaseViewMode;
|
|
39
|
+
detailPresentation?: DatabaseViewDetailPresentation;
|
|
40
|
+
density?: Density;
|
|
38
41
|
schema?: TableSchema | null;
|
|
39
42
|
records?: DataRecord[];
|
|
40
43
|
views?: ViewConfig[];
|
|
@@ -147,6 +150,7 @@ declare const _default: import('vue').DefineComponent<DatabaseViewProps, {}, {},
|
|
|
147
150
|
showSort: boolean;
|
|
148
151
|
showSearch: boolean;
|
|
149
152
|
actions: DatabaseViewActions;
|
|
153
|
+
density: Density;
|
|
150
154
|
readonly: boolean;
|
|
151
155
|
pageSize: number;
|
|
152
156
|
records: DataRecord[];
|
|
@@ -159,6 +163,7 @@ declare const _default: import('vue').DefineComponent<DatabaseViewProps, {}, {},
|
|
|
159
163
|
tableId: string;
|
|
160
164
|
views: ViewConfig[];
|
|
161
165
|
provider: ViewDatabaseProvider<DataRecord>;
|
|
166
|
+
detailPresentation: DatabaseViewDetailPresentation;
|
|
162
167
|
defaultView: ViewConfig;
|
|
163
168
|
currentViewId: string;
|
|
164
169
|
initialViewId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DatabaseView.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-de3fe42f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|