@oneflowui/ui 0.5.9 → 0.7.0
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.en.md +19 -0
- package/README.md +23 -0
- package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/BarChart.vue2.js +56 -23
- package/dist/components/Dashboard/charts/NumberCard.vue.js +2 -2
- package/dist/components/Dashboard/charts/NumberCard.vue2.js +14 -14
- package/dist/components/Dashboard/charts/PieChart.vue.js +1 -1
- package/dist/components/Dashboard/charts/PieChart.vue2.js +49 -23
- package/dist/components/Dashboard/charts/TableChart.vue.js +1 -1
- package/dist/components/Dashboard/index.vue.d.ts +3 -1
- package/dist/components/Dashboard/index.vue.js +2 -2
- package/dist/components/Dashboard/index.vue2.js +59 -30
- package/dist/components/ai/AiMessageBubble.vue.js +3 -3
- package/dist/components/ai/AiSender.vue.js +2 -2
- package/dist/components/ai/AiThinking.vue.js +1 -1
- package/dist/components/ai/UserMessageBubble.vue.js +3 -3
- package/dist/components/auxiliary/ColorPanel.vue.js +3 -3
- package/dist/components/auxiliary/ColorPanel.vue2.js +9 -9
- package/dist/components/auxiliary/FileUpload.vue.js +2 -2
- package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
- package/dist/components/auxiliary/PersonPanel.vue2.js +10 -10
- package/dist/components/base/Accordion.vue.js +1 -1
- package/dist/components/base/Avatar.vue.js +3 -3
- package/dist/components/base/Avatar.vue2.js +43 -43
- package/dist/components/base/Badge.vue.js +1 -1
- package/dist/components/base/Badge.vue2.js +35 -35
- package/dist/components/base/ButtonGroup.vue.js +2 -2
- package/dist/components/base/ChainItem.vue.js +2 -2
- package/dist/components/base/ChainItem.vue2.js +30 -30
- package/dist/components/base/DescBlock.vue.js +3 -3
- package/dist/components/base/DropdownMenu.vue.js +2 -2
- package/dist/components/base/EmptyState.vue.js +1 -1
- package/dist/components/base/InfoCard.vue.js +2 -2
- package/dist/components/base/InfoCard.vue2.js +66 -66
- package/dist/components/base/MonitorItem.vue.js +1 -1
- package/dist/components/base/MonitorItem.vue2.js +16 -16
- package/dist/components/base/PersonaCard.vue.js +1 -1
- package/dist/components/base/PersonaCard.vue2.js +81 -81
- package/dist/components/base/ProgressBar.vue.js +2 -2
- package/dist/components/base/ProgressBar.vue2.js +16 -16
- package/dist/components/base/RangeSlider.vue.js +1 -1
- package/dist/components/base/RefTag.vue.js +2 -2
- package/dist/components/base/RefTag.vue2.js +20 -20
- package/dist/components/base/SearchHighlight.vue.js +1 -1
- package/dist/components/base/SectionBlock.vue.js +1 -1
- package/dist/components/base/SectionBlock.vue2.js +44 -44
- package/dist/components/base/StatisticCard.vue.js +2 -2
- package/dist/components/base/StatisticCard.vue2.js +24 -24
- package/dist/components/base/StatusIndicator.vue.js +2 -2
- package/dist/components/base/StatusIndicator.vue2.js +30 -30
- package/dist/components/base/StatusSummary.vue.js +2 -2
- package/dist/components/base/StatusSummary.vue2.js +23 -23
- 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 +1 -1
- package/dist/components/base/ViewModeGroup.vue.js +3 -3
- package/dist/components/base/ViewSwitcher.vue.js +2 -2
- package/dist/components/base/ViewTab.vue.js +4 -4
- package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
- package/dist/components/breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/dist/components/database/DatabaseView.vue.js +2 -2
- package/dist/components/database/DatabaseView.vue2.js +482 -412
- package/dist/components/detail/CommentItem.vue.js +2 -2
- package/dist/components/detail/CommentItem.vue2.js +8 -8
- package/dist/components/detail/DetailLayout.vue.d.ts +12 -1
- package/dist/components/detail/DetailLayout.vue.js +2 -2
- package/dist/components/detail/DetailLayout.vue2.js +115 -68
- package/dist/components/editor/BlockQuote.vue.js +2 -2
- package/dist/components/editor/CodeBlock.vue.js +2 -2
- package/dist/components/editor/ContentBlock.vue.js +2 -2
- package/dist/components/editor/RefLink.vue.js +2 -2
- package/dist/components/editor/RichTextEditor.vue.js +1 -1
- package/dist/components/field/FieldAttachment.vue.js +1 -1
- package/dist/components/field/FieldCreator.vue.js +1 -1
- package/dist/components/field/FieldCurrency.vue.js +2 -2
- package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
- package/dist/components/field/FieldMultiSelect.vue.js +2 -2
- package/dist/components/field/FieldProgress.vue.js +2 -2
- package/dist/components/field/FieldRating.vue.js +2 -2
- package/dist/components/field/FieldRelation.vue.js +1 -1
- package/dist/components/field/FieldRichText.vue.js +1 -1
- package/dist/components/field/FieldSelect.vue.js +2 -2
- package/dist/components/gallery/GalleryCard.vue.js +2 -2
- package/dist/components/gallery/GalleryCard.vue2.js +34 -30
- package/dist/components/gallery/GalleryView.vue.d.ts +3 -1
- package/dist/components/gallery/GalleryView.vue.js +1 -1
- package/dist/components/gallery/GalleryView.vue2.js +51 -27
- package/dist/components/kanban/KanbanBoard.vue.js +4 -4
- package/dist/components/kanban/KanbanCard.vue.js +2 -2
- package/dist/components/kanban/KanbanColumn.vue.js +2 -2
- package/dist/components/kanban/KanbanColumn.vue2.js +16 -16
- package/dist/components/kanban/QuickAddRow.vue.js +1 -1
- package/dist/components/layout/AppLayout.vue.js +2 -2
- package/dist/components/layout/Navbar.vue.js +3 -3
- package/dist/components/layout/Sidebar.vue.js +2 -2
- package/dist/components/layout/StatusBar.vue.js +2 -2
- package/dist/components/mermaid/MermaidChart.vue.js +2 -2
- package/dist/components/overlay/Dialog.vue.js +2 -2
- package/dist/components/overlay/Drawer.vue.d.ts +2 -0
- package/dist/components/overlay/Drawer.vue.js +2 -2
- package/dist/components/overlay/Drawer.vue2.js +25 -24
- package/dist/components/overlay/Modal.vue.js +1 -1
- package/dist/components/overlay/SidePanel.vue.js +2 -2
- package/dist/components/overlay/SidePanel.vue2.js +3 -2
- package/dist/components/split/SplitPane.vue.js +2 -2
- package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
- package/dist/components/table/DataTable.vue.d.ts +26 -2
- package/dist/components/table/DataTable.vue.js +2 -2
- package/dist/components/table/DataTable.vue2.js +738 -603
- package/dist/components/table/DetailSheet.vue.js +1 -1
- package/dist/components/table/FieldCell.vue.js +2 -2
- package/dist/components/table/FieldCell.vue2.js +26 -24
- package/dist/components/table/FieldTypePicker.vue.js +4 -4
- package/dist/components/table/MobileListView.vue.js +2 -2
- package/dist/components/table/NewRowBtn.vue.js +2 -2
- package/dist/components/table/TableColumnManager.vue.js +2 -2
- package/dist/components/table/TableDataRow.vue.d.ts +19 -0
- package/dist/components/table/TableDataRow.vue.js +1 -1
- package/dist/components/table/TableDataRow.vue2.js +110 -73
- package/dist/components/table/TableFilterPanel.vue.js +2 -2
- package/dist/components/table/TableGroupRow.vue.js +2 -2
- package/dist/components/table/TableHeaderRow.vue.js +2 -2
- package/dist/components/table/TableToolbar.vue.js +2 -2
- package/dist/components/tabs/Tabs.vue.js +1 -1
- package/dist/components/timeline/ActivityTimeline.vue.js +1 -1
- package/dist/components/timeline/ActivityTimeline.vue2.js +27 -27
- package/dist/components/timeline/GanttRow.vue.js +2 -2
- package/dist/components/timeline/GanttRow.vue2.js +21 -18
- package/dist/components/timeline/GanttTimeline.vue.js +2 -2
- package/dist/components/toast/ToastItem.vue.js +2 -2
- package/dist/components/toast/ToastItem.vue2.js +39 -39
- package/dist/plugin.js +5 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Loader2 as Bt, AlertCircle as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as Dt, ref as B, onMounted as Lt, onBeforeUnmount as Et, computed as s, watch as T, openBlock as c, createElementBlock as m, mergeProps as At, createVNode as W, unref as ie, createElementVNode as u, Fragment as le, createBlock as V, createCommentVNode as Te, withCtx as F, renderList as Re, toDisplayString as y } from "vue";
|
|
2
|
+
import { Loader2 as Bt, AlertCircle as xt, Database as Nt } from "lucide-vue-next";
|
|
3
|
+
import De from "../base/EmptyState.vue.js";
|
|
4
|
+
import Le from "../table/FieldCell.vue.js";
|
|
5
|
+
import Ee from "../detail/DetailLayout.vue.js";
|
|
6
|
+
import Ut from "../overlay/Drawer.vue.js";
|
|
6
7
|
import Kt from "../overlay/SidePanel.vue.js";
|
|
7
8
|
import qt from "../table/TableToolbar.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
const jt = {
|
|
9
|
+
import Wt from "../table/DataTable.vue.js";
|
|
10
|
+
import $t from "../kanban/KanbanBoard.vue.js";
|
|
11
|
+
import Gt from "../gallery/GalleryView.vue.js";
|
|
12
|
+
import Pt from "../timeline/GanttTimeline.vue.js";
|
|
13
|
+
import { useDatabaseView as jt } from "../../composables/useDatabaseView.js";
|
|
14
|
+
import { buildGanttItems as Ot } from "../../types/index.js";
|
|
15
|
+
const zt = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "of-database-view__state of-database-view__state--loading",
|
|
18
18
|
"data-role": "loading-state"
|
|
19
|
-
},
|
|
19
|
+
}, Mt = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "of-database-view__state",
|
|
22
22
|
"data-role": "error-state"
|
|
23
|
-
},
|
|
23
|
+
}, Ht = {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "of-database-view__state of-database-view__state--empty",
|
|
26
26
|
"data-role": "empty-state"
|
|
27
|
-
},
|
|
27
|
+
}, Jt = ["data-view"], Xt = {
|
|
28
28
|
key: 4,
|
|
29
29
|
class: "of-database-view__detail-anchor"
|
|
30
|
-
},
|
|
30
|
+
}, Yt = { class: "of-database-view__workspace-chip" }, Zt = { class: "of-database-view__workspace-chip" }, Qt = { class: "of-database-view__workspace-chip" }, ea = ["data-record-id"], ta = { class: "of-database-view__detail-workspace-properties" }, aa = { class: "of-database-view__detail-workspace-label" }, ia = { class: "of-database-view__detail-workspace-value" }, la = {
|
|
31
31
|
key: 1,
|
|
32
32
|
class: "of-database-view__detail-workspace-fallback"
|
|
33
|
-
}, da = {
|
|
34
|
-
key:
|
|
35
|
-
class: "of-database-view__detail-workspace-
|
|
36
|
-
},
|
|
33
|
+
}, oa = ["disabled"], sa = { class: "of-database-view__workspace-chip" }, ra = { class: "of-database-view__workspace-chip" }, na = { class: "of-database-view__workspace-chip" }, da = ["data-record-id"], ua = { class: "of-database-view__detail-workspace-properties" }, ca = { class: "of-database-view__detail-workspace-label" }, va = { class: "of-database-view__detail-workspace-value" }, fa = {
|
|
34
|
+
key: 1,
|
|
35
|
+
class: "of-database-view__detail-workspace-fallback"
|
|
36
|
+
}, wa = ["disabled"], k = "detail", pa = "(max-width: 768px)", Da = /* @__PURE__ */ Dt({
|
|
37
37
|
name: "DatabaseView",
|
|
38
38
|
inheritAttrs: !1,
|
|
39
39
|
__name: "DatabaseView",
|
|
@@ -69,36 +69,36 @@ const jt = {
|
|
|
69
69
|
autoLoad: { type: Boolean, default: !0 }
|
|
70
70
|
},
|
|
71
71
|
emits: ["update:currentViewId", "update:selectedRecordId", "update:searchKeyword", "update:columns", "update:filterLogic", "update:records", "cell-edit", "select-record", "schema-add-field", "schema-rename-field", "schema-change-field-type", "schema-hide-field", "schema-delete-field", "schema-duplicate-field", "row-click", "card-click", "add", "add-column", "record-change", "load-view", "save-view", "sort", "group", "refresh"],
|
|
72
|
-
setup(
|
|
73
|
-
var
|
|
74
|
-
const
|
|
72
|
+
setup(S, { emit: Ae }) {
|
|
73
|
+
var Fe, Se;
|
|
74
|
+
const o = S, d = Ae, oe = B(!1);
|
|
75
75
|
let g = null;
|
|
76
|
-
function
|
|
77
|
-
|
|
76
|
+
function J() {
|
|
77
|
+
oe.value = (g == null ? void 0 : g.matches) ?? !1;
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
typeof window > "u" || typeof window.matchMedia != "function" || (g = window.matchMedia(
|
|
81
|
-
}),
|
|
82
|
-
g == null || g.removeEventListener("change",
|
|
79
|
+
Lt(() => {
|
|
80
|
+
typeof window > "u" || typeof window.matchMedia != "function" || (g = window.matchMedia(pa), J(), g.addEventListener("change", J));
|
|
81
|
+
}), Et(() => {
|
|
82
|
+
g == null || g.removeEventListener("change", J), g = null;
|
|
83
83
|
});
|
|
84
|
-
function
|
|
85
|
-
var t, a, i,
|
|
84
|
+
function se(e) {
|
|
85
|
+
var t, a, i, l;
|
|
86
86
|
return {
|
|
87
87
|
...e,
|
|
88
88
|
visibleFields: [...e.visibleFields],
|
|
89
89
|
sorts: (t = e.sorts) == null ? void 0 : t.map((r) => ({ ...r })),
|
|
90
90
|
groups: (a = e.groups) == null ? void 0 : a.map((r) => ({ ...r })),
|
|
91
91
|
filters: (i = e.filters) == null ? void 0 : i.map((r) => ({ ...r })),
|
|
92
|
-
aggregations: (
|
|
92
|
+
aggregations: (l = e.aggregations) == null ? void 0 : l.map((r) => ({ ...r })),
|
|
93
93
|
fixedColumns: e.fixedColumns ? [...e.fixedColumns] : void 0,
|
|
94
94
|
galleryCardFields: e.galleryCardFields ? [...e.galleryCardFields] : void 0
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Be(e) {
|
|
98
98
|
const t = e[0];
|
|
99
99
|
return t ? Object.keys(t.fields) : [];
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function re(e) {
|
|
102
102
|
switch (e) {
|
|
103
103
|
case "kanban":
|
|
104
104
|
return "columns-3";
|
|
@@ -113,8 +113,8 @@ const jt = {
|
|
|
113
113
|
return "table-2";
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
const a =
|
|
116
|
+
function xe(e, t = []) {
|
|
117
|
+
const a = D(e, t);
|
|
118
118
|
return {
|
|
119
119
|
viewId: "table",
|
|
120
120
|
viewType: "table",
|
|
@@ -126,8 +126,8 @@ const jt = {
|
|
|
126
126
|
fixedColumns: []
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
const a =
|
|
129
|
+
function Ne(e, t = []) {
|
|
130
|
+
const a = D(e, t);
|
|
131
131
|
return {
|
|
132
132
|
viewId: k,
|
|
133
133
|
viewType: "detail",
|
|
@@ -139,11 +139,11 @@ const jt = {
|
|
|
139
139
|
fixedColumns: []
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function X(e, t) {
|
|
143
143
|
var a;
|
|
144
144
|
return ((a = t == null ? void 0 : t.fields.find((i) => i.id === e)) == null ? void 0 : a.name) ?? e;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function ne(e) {
|
|
147
147
|
switch (e == null ? void 0 : e.type) {
|
|
148
148
|
case "number":
|
|
149
149
|
case "currency":
|
|
@@ -159,7 +159,7 @@ const jt = {
|
|
|
159
159
|
return "string";
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Ue(e) {
|
|
163
163
|
switch (e == null ? void 0 : e.type) {
|
|
164
164
|
case "number":
|
|
165
165
|
return "number";
|
|
@@ -202,79 +202,79 @@ const jt = {
|
|
|
202
202
|
return "text";
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
var
|
|
207
|
-
return ((((
|
|
208
|
-
var
|
|
209
|
-
const v = (
|
|
205
|
+
function Ke(e, t, a = []) {
|
|
206
|
+
var l;
|
|
207
|
+
return ((((l = e.visibleFields) == null ? void 0 : l.length) ?? 0) > 0 ? e.visibleFields : D(t, a)).map((r) => {
|
|
208
|
+
var q;
|
|
209
|
+
const v = (q = t == null ? void 0 : t.fields) == null ? void 0 : q.find((Rt) => Rt.id === r);
|
|
210
210
|
return {
|
|
211
211
|
key: r,
|
|
212
|
-
label:
|
|
213
|
-
type:
|
|
212
|
+
label: X(r, t),
|
|
213
|
+
type: ne(v),
|
|
214
214
|
hidden: (v == null ? void 0 : v.hidden) ?? !1,
|
|
215
215
|
width: v == null ? void 0 : v.width
|
|
216
216
|
};
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
return
|
|
219
|
+
function qe(e, t = []) {
|
|
220
|
+
return D(e, t).map((i) => {
|
|
221
221
|
var r;
|
|
222
|
-
const
|
|
222
|
+
const l = (r = e == null ? void 0 : e.fields) == null ? void 0 : r.find((v) => v.id === i);
|
|
223
223
|
return {
|
|
224
224
|
key: i,
|
|
225
|
-
label:
|
|
226
|
-
type:
|
|
227
|
-
hidden: (
|
|
228
|
-
width:
|
|
225
|
+
label: X(i, e),
|
|
226
|
+
type: ne(l),
|
|
227
|
+
hidden: (l == null ? void 0 : l.hidden) ?? !1,
|
|
228
|
+
width: l == null ? void 0 : l.width
|
|
229
229
|
};
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
return
|
|
232
|
+
function We(e, t = []) {
|
|
233
|
+
return D(e, t).map((i) => {
|
|
234
234
|
var r;
|
|
235
|
-
const
|
|
235
|
+
const l = (r = e == null ? void 0 : e.fields) == null ? void 0 : r.find((v) => v.id === i);
|
|
236
236
|
return {
|
|
237
237
|
id: i,
|
|
238
|
-
type:
|
|
239
|
-
label:
|
|
238
|
+
type: Ue(l),
|
|
239
|
+
label: X(i, e)
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function R(e) {
|
|
244
244
|
return e == null ? "" : Array.isArray(e) ? e.map((t) => String(t)).join(", ") : String(e);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function x(e, t) {
|
|
247
247
|
if (e == null && t == null) return 0;
|
|
248
248
|
if (e == null) return -1;
|
|
249
249
|
if (t == null) return 1;
|
|
250
|
-
const a = Number(e), i = Number(t),
|
|
251
|
-
if (
|
|
252
|
-
const v = Date.parse(String(e)),
|
|
253
|
-
return Number.isFinite(v) && Number.isFinite(
|
|
250
|
+
const a = Number(e), i = Number(t), l = Number.isFinite(a) && `${e}`.trim() !== "", r = Number.isFinite(i) && `${t}`.trim() !== "";
|
|
251
|
+
if (l && r) return a - i;
|
|
252
|
+
const v = Date.parse(String(e)), q = Date.parse(String(t));
|
|
253
|
+
return Number.isFinite(v) && Number.isFinite(q) ? v - q : R(e).localeCompare(R(t), "zh-Hans-CN");
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
const a =
|
|
255
|
+
function $e(e, t) {
|
|
256
|
+
const a = R(e).trim(), i = (t.value ?? "").trim(), l = a.toLowerCase(), r = i.toLowerCase();
|
|
257
257
|
switch (t.operator) {
|
|
258
258
|
case "equals":
|
|
259
|
-
return
|
|
259
|
+
return l === r;
|
|
260
260
|
case "not_equals":
|
|
261
|
-
return
|
|
261
|
+
return l !== r;
|
|
262
262
|
case "contains":
|
|
263
|
-
return
|
|
263
|
+
return l.includes(r);
|
|
264
264
|
case "not_contains":
|
|
265
|
-
return !
|
|
265
|
+
return !l.includes(r);
|
|
266
266
|
case "starts_with":
|
|
267
|
-
return
|
|
267
|
+
return l.startsWith(r);
|
|
268
268
|
case "ends_with":
|
|
269
|
-
return
|
|
269
|
+
return l.endsWith(r);
|
|
270
270
|
case "gt":
|
|
271
|
-
return
|
|
271
|
+
return x(e, i) > 0;
|
|
272
272
|
case "gte":
|
|
273
|
-
return
|
|
273
|
+
return x(e, i) >= 0;
|
|
274
274
|
case "lt":
|
|
275
|
-
return
|
|
275
|
+
return x(e, i) < 0;
|
|
276
276
|
case "lte":
|
|
277
|
-
return
|
|
277
|
+
return x(e, i) <= 0;
|
|
278
278
|
case "is_empty":
|
|
279
279
|
return a === "";
|
|
280
280
|
case "is_not_empty":
|
|
@@ -283,7 +283,7 @@ const jt = {
|
|
|
283
283
|
return !0;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Ge(e) {
|
|
287
287
|
return {
|
|
288
288
|
id: `f_${Math.random().toString(36).slice(2, 8)}`,
|
|
289
289
|
field: e,
|
|
@@ -291,7 +291,7 @@ const jt = {
|
|
|
291
291
|
value: ""
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Pe(e = []) {
|
|
295
295
|
return e.map((t, a) => ({
|
|
296
296
|
id: `f_${t.fieldId}_${a}`,
|
|
297
297
|
field: t.fieldId,
|
|
@@ -317,7 +317,7 @@ const jt = {
|
|
|
317
317
|
value: t.value == null ? "" : String(t.value)
|
|
318
318
|
}));
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function je(e) {
|
|
321
321
|
return e.filter((t) => t.field).map((t) => {
|
|
322
322
|
let a;
|
|
323
323
|
switch (t.operator) {
|
|
@@ -356,48 +356,48 @@ const jt = {
|
|
|
356
356
|
};
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function D(e, t = []) {
|
|
360
360
|
var i;
|
|
361
|
-
const a = (i = e == null ? void 0 : e.fields) == null ? void 0 : i.filter((
|
|
362
|
-
return a != null && a.length ? a :
|
|
361
|
+
const a = (i = e == null ? void 0 : e.fields) == null ? void 0 : i.filter((l) => !l.hidden).map((l) => l.id);
|
|
362
|
+
return a != null && a.length ? a : Be(t);
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Oe(e) {
|
|
365
365
|
return e ? {
|
|
366
366
|
id: e.id,
|
|
367
367
|
...e.fields
|
|
368
368
|
} : { id: "__detail-empty__" };
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function ze(e) {
|
|
371
371
|
if (e)
|
|
372
372
|
return {
|
|
373
373
|
label: "返回列表",
|
|
374
|
-
onClick: () =>
|
|
374
|
+
onClick: () => _e(e)
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
const
|
|
378
|
-
var i,
|
|
379
|
-
const e = (
|
|
380
|
-
return t || e.unshift(
|
|
381
|
-
}),
|
|
382
|
-
tableId:
|
|
383
|
-
mode:
|
|
384
|
-
schema:
|
|
385
|
-
records:
|
|
386
|
-
views:
|
|
387
|
-
provider:
|
|
388
|
-
defaultView:
|
|
389
|
-
initialViewId:
|
|
390
|
-
initialSelectedRecordId:
|
|
391
|
-
pageSize:
|
|
392
|
-
autoLoad:
|
|
377
|
+
const de = s(() => o.schema ?? null), Me = s(() => o.records ?? []), ue = s(() => {
|
|
378
|
+
var i, l;
|
|
379
|
+
const e = (o.views ?? []).map((r) => se(r)), t = e.some((r) => r.viewType === "table") || (((i = o.schema) == null ? void 0 : i.views) ?? []).some((r) => r.viewType === "table"), a = e.some((r) => r.viewType === "detail") || (((l = o.schema) == null ? void 0 : l.views) ?? []).some((r) => r.viewType === "detail");
|
|
380
|
+
return t || e.unshift(xe(o.schema, o.records ?? [])), a || e.push(Ne(o.schema, o.records ?? [])), e;
|
|
381
|
+
}), n = jt({
|
|
382
|
+
tableId: o.tableId,
|
|
383
|
+
mode: o.mode,
|
|
384
|
+
schema: de,
|
|
385
|
+
records: Me,
|
|
386
|
+
views: ue,
|
|
387
|
+
provider: o.provider,
|
|
388
|
+
defaultView: o.defaultView,
|
|
389
|
+
initialViewId: o.currentViewId || o.initialViewId || ((Fe = o.defaultView) == null ? void 0 : Fe.viewId) || ((Se = ue.value[0]) == null ? void 0 : Se.viewId) || "",
|
|
390
|
+
initialSelectedRecordId: o.selectedRecordId ?? o.initialSelectedRecordId,
|
|
391
|
+
pageSize: o.pageSize,
|
|
392
|
+
autoLoad: o.autoLoad,
|
|
393
393
|
actions: {
|
|
394
394
|
onCellEdit: async (e) => {
|
|
395
395
|
var t, a;
|
|
396
|
-
d("cell-edit", e), await ((a = (t =
|
|
396
|
+
d("cell-edit", e), await ((a = (t = o.actions) == null ? void 0 : t.onCellEdit) == null ? void 0 : a.call(t, e));
|
|
397
397
|
},
|
|
398
398
|
onSelectRecord: async (e) => {
|
|
399
399
|
var t, a;
|
|
400
|
-
await ((a = (t =
|
|
400
|
+
await ((a = (t = o.actions) == null ? void 0 : t.onSelectRecord) == null ? void 0 : a.call(t, e));
|
|
401
401
|
},
|
|
402
402
|
onSchemaEvent: async (e) => {
|
|
403
403
|
var t, a;
|
|
@@ -421,499 +421,569 @@ const jt = {
|
|
|
421
421
|
d("schema-duplicate-field", e.fieldId);
|
|
422
422
|
break;
|
|
423
423
|
}
|
|
424
|
-
await ((a = (t =
|
|
424
|
+
await ((a = (t = o.actions) == null ? void 0 : t.onSchemaEvent) == null ? void 0 : a.call(t, e));
|
|
425
425
|
},
|
|
426
426
|
onSaveView: async (e) => {
|
|
427
427
|
var t, a;
|
|
428
|
-
d("save-view", e.name), await ((a = (t =
|
|
428
|
+
d("save-view", e.name), await ((a = (t = o.actions) == null ? void 0 : t.onViewSave) == null ? void 0 : a.call(t, { tableId: o.tableId, viewId: e.viewId, name: e.name }));
|
|
429
429
|
},
|
|
430
430
|
onRefresh: async () => {
|
|
431
431
|
var e, t;
|
|
432
|
-
d("refresh"), await ((t = (e =
|
|
432
|
+
d("refresh"), await ((t = (e = o.actions) == null ? void 0 : e.onRefresh) == null ? void 0 : t.call(e));
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
}), b =
|
|
436
|
-
|
|
435
|
+
}), b = s(() => n.activeView.value), Y = s(() => n.activeViewId.value), f = s(() => n.selectedRecord.value), He = s(() => n.selectedRecordId.value), I = s(() => n.schema.value ?? de.value), C = s(() => [...n.records.value]), w = s(() => b.value.viewType || "table"), p = B({}), L = B(o.searchKeyword ?? ""), Z = B("and"), h = B([]), _ = B(
|
|
436
|
+
o.currentViewId === k || o.initialViewId === k || o.selectedRecordId != null || o.initialSelectedRecordId != null
|
|
437
437
|
);
|
|
438
|
-
|
|
439
|
-
() =>
|
|
438
|
+
T(
|
|
439
|
+
() => o.searchKeyword,
|
|
440
440
|
(e) => {
|
|
441
|
-
|
|
441
|
+
L.value = e ?? "";
|
|
442
442
|
},
|
|
443
443
|
{ immediate: !0 }
|
|
444
|
-
),
|
|
444
|
+
), T(L, (e) => {
|
|
445
445
|
d("update:searchKeyword", e);
|
|
446
|
-
}),
|
|
446
|
+
}), T(
|
|
447
447
|
b,
|
|
448
448
|
(e) => {
|
|
449
|
-
|
|
449
|
+
h.value = Pe(e.filters ?? []);
|
|
450
450
|
},
|
|
451
451
|
{ immediate: !0 }
|
|
452
|
-
),
|
|
453
|
-
() =>
|
|
452
|
+
), T(
|
|
453
|
+
() => o.currentViewId,
|
|
454
454
|
(e) => {
|
|
455
|
-
!e || e ===
|
|
455
|
+
!e || e === Y.value || (n.setActiveViewId(e), e === k && (_.value = !0));
|
|
456
456
|
},
|
|
457
457
|
{ immediate: !0 }
|
|
458
|
-
),
|
|
459
|
-
() =>
|
|
458
|
+
), T(
|
|
459
|
+
() => o.selectedRecordId,
|
|
460
460
|
(e) => {
|
|
461
461
|
if (e !== void 0) {
|
|
462
462
|
if (!e) {
|
|
463
|
-
_.value = !1,
|
|
463
|
+
_.value = !1, p.value = {}, n.clearSelectedRecord();
|
|
464
464
|
return;
|
|
465
465
|
}
|
|
466
|
-
_.value = !0,
|
|
466
|
+
_.value = !0, p.value = {}, n.setSelectedRecord(e);
|
|
467
467
|
}
|
|
468
468
|
},
|
|
469
469
|
{ immediate: !0 }
|
|
470
|
-
),
|
|
471
|
-
|
|
470
|
+
), T(
|
|
471
|
+
Y,
|
|
472
472
|
(e, t) => {
|
|
473
473
|
var a, i;
|
|
474
|
-
d("update:currentViewId", e), e === k && (_.value = !0), t !== void 0 && e !== t && ((i = (a =
|
|
474
|
+
d("update:currentViewId", e), e === k && (_.value = !0), t !== void 0 && e !== t && ((i = (a = o.actions) == null ? void 0 : a.onViewChange) == null || i.call(a, { tableId: o.tableId, view: se(b.value) }));
|
|
475
475
|
},
|
|
476
476
|
{ immediate: !0 }
|
|
477
|
-
),
|
|
478
|
-
|
|
477
|
+
), T(
|
|
478
|
+
He,
|
|
479
479
|
(e, t) => {
|
|
480
|
-
d("update:selectedRecordId", e), t !== void 0 && e !== t && d("select-record",
|
|
480
|
+
d("update:selectedRecordId", e), t !== void 0 && e !== t && d("select-record", f.value ?? null);
|
|
481
481
|
},
|
|
482
482
|
{ immediate: !0 }
|
|
483
483
|
);
|
|
484
|
-
const
|
|
485
|
-
const e =
|
|
484
|
+
const Q = s(() => {
|
|
485
|
+
const e = o.viewTabs && o.viewTabs.length > 0 ? o.viewTabs.map((i) => ({ ...i })) : n.viewList.value.map((i) => ({
|
|
486
486
|
value: i.id,
|
|
487
487
|
label: i.name,
|
|
488
|
-
icon:
|
|
488
|
+
icon: re(i.type)
|
|
489
489
|
})), t = [], a = /* @__PURE__ */ new Set();
|
|
490
490
|
for (const i of e)
|
|
491
491
|
a.has(i.value) || (a.add(i.value), t.push(i));
|
|
492
|
-
return a.has(k) || t.push({ value: k, label: "详情", icon:
|
|
493
|
-
}),
|
|
494
|
-
() =>
|
|
492
|
+
return a.has(k) || t.push({ value: k, label: "详情", icon: re("detail") }), t;
|
|
493
|
+
}), Je = s(
|
|
494
|
+
() => n.viewList.value.map((e) => ({
|
|
495
495
|
id: e.id,
|
|
496
496
|
name: e.name
|
|
497
497
|
}))
|
|
498
|
-
),
|
|
499
|
-
...
|
|
500
|
-
...
|
|
501
|
-
})),
|
|
502
|
-
() =>
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
498
|
+
), ee = s(() => Ke(b.value, I.value, C.value)), ce = s(() => qe(I.value, C.value)), $ = s(() => We(I.value, C.value)), ve = s(() => Oe(f.value)), G = s(() => ({
|
|
499
|
+
...ve.value,
|
|
500
|
+
...p.value
|
|
501
|
+
})), P = s(
|
|
502
|
+
() => {
|
|
503
|
+
var e, t, a, i, l, r, v;
|
|
504
|
+
return R(
|
|
505
|
+
((t = (e = f.value) == null ? void 0 : e.fields) == null ? void 0 : t.title) ?? ((i = (a = f.value) == null ? void 0 : a.fields) == null ? void 0 : i.name) ?? ((r = (l = f.value) == null ? void 0 : l.fields) == null ? void 0 : r.subject) ?? ((v = f.value) == null ? void 0 : v.id) ?? "记录详情"
|
|
506
|
+
) || "记录详情";
|
|
507
|
+
}
|
|
508
|
+
), fe = s(
|
|
509
|
+
() => new Set($.value.filter((e) => e.type === "richtext").map((e) => e.id))
|
|
510
|
+
), we = s(
|
|
511
|
+
() => ce.value.filter((e) => !fe.value.has(e.key))
|
|
512
|
+
), Xe = s(
|
|
513
|
+
() => ce.value.filter((e) => fe.value.has(e.key))
|
|
514
|
+
), pe = s(() => Xe.value.map((t) => {
|
|
515
|
+
const a = K(t.key), i = R(a).trim();
|
|
516
|
+
return i ? `## ${t.label}
|
|
517
|
+
|
|
518
|
+
${i}` : "";
|
|
519
|
+
}).filter((t) => t.length > 0).join(`
|
|
520
|
+
|
|
521
|
+
`)), me = s(() => Object.keys(p.value).length > 0), Ye = s(() => D(I.value, C.value)), be = s(() => {
|
|
508
522
|
var t;
|
|
509
523
|
const e = (t = b.value.sorts) == null ? void 0 : t[0];
|
|
510
524
|
return {
|
|
511
525
|
field: (e == null ? void 0 : e.fieldId) ?? null,
|
|
512
526
|
order: (e == null ? void 0 : e.direction) ?? null
|
|
513
527
|
};
|
|
514
|
-
}),
|
|
528
|
+
}), Ze = s(() => {
|
|
515
529
|
var e, t;
|
|
516
530
|
return ((t = (e = b.value.groups) == null ? void 0 : e[0]) == null ? void 0 : t.fieldId) ?? void 0;
|
|
517
|
-
}),
|
|
531
|
+
}), j = s(() => h.value), Qe = s(() => j.value.length > 0), et = s(() => o.showToolbar !== !1), tt = s(() => o.showViewSwitch !== !1 && Q.value.length > 1), at = s(() => o.showFilter !== !1), it = s(() => o.showSort !== !1), lt = s(() => o.showGroup !== !1), ot = s(() => o.showColumns !== !1), st = s(() => o.showSearch !== !1), N = s(() => _.value && !!f.value), O = s(() => o.detailPresentation !== "auto" ? o.detailPresentation : oe.value ? "sheet" : "side-panel"), rt = s(() => o.loading ?? n.loading.value), z = s(() => o.error ?? n.error.value), E = s(() => {
|
|
518
532
|
let e = [...C.value];
|
|
519
|
-
if (
|
|
520
|
-
const a =
|
|
533
|
+
if (L.value.trim()) {
|
|
534
|
+
const a = L.value.trim().toLowerCase();
|
|
521
535
|
e = e.filter(
|
|
522
|
-
(i) =>
|
|
523
|
-
(
|
|
536
|
+
(i) => Ye.value.some(
|
|
537
|
+
(l) => R(i.fields[l]).toLowerCase().includes(a)
|
|
524
538
|
)
|
|
525
539
|
);
|
|
526
540
|
}
|
|
527
|
-
|
|
528
|
-
const i =
|
|
529
|
-
const r = a.fields[
|
|
530
|
-
return
|
|
541
|
+
j.value.length > 0 && (e = e.filter((a) => {
|
|
542
|
+
const i = j.value.map((l) => {
|
|
543
|
+
const r = a.fields[l.field];
|
|
544
|
+
return $e(r, l);
|
|
531
545
|
});
|
|
532
|
-
return
|
|
546
|
+
return Z.value === "and" ? i.every(Boolean) : i.some(Boolean);
|
|
533
547
|
}));
|
|
534
|
-
const t =
|
|
548
|
+
const t = be.value;
|
|
535
549
|
return t.field && t.order && e.sort((a, i) => {
|
|
536
|
-
const
|
|
550
|
+
const l = x(
|
|
537
551
|
a.fields[t.field],
|
|
538
552
|
i.fields[t.field]
|
|
539
553
|
);
|
|
540
|
-
return t.order === "desc" ? -
|
|
554
|
+
return t.order === "desc" ? -l : l;
|
|
541
555
|
}), e;
|
|
542
|
-
}),
|
|
543
|
-
() =>
|
|
544
|
-
startFieldId:
|
|
545
|
-
endFieldId:
|
|
556
|
+
}), nt = s(
|
|
557
|
+
() => Ot(E.value, {
|
|
558
|
+
startFieldId: w.value === "timeline" ? "startDate" : void 0,
|
|
559
|
+
endFieldId: w.value === "timeline" ? "endDate" : void 0,
|
|
546
560
|
labelFieldId: "title"
|
|
547
561
|
})
|
|
548
|
-
),
|
|
562
|
+
), te = s(() => rt.value ? "loading" : z.value ? "error" : w.value === "detail" ? N.value ? "normal" : "empty" : w.value === "timeline" ? nt.value.length > 0 ? "normal" : "empty" : E.value.length > 0 ? "normal" : "empty"), dt = s(() => {
|
|
549
563
|
var a;
|
|
550
|
-
if (
|
|
564
|
+
if (w.value !== "detail") return;
|
|
551
565
|
const e = C.value[0];
|
|
552
566
|
if (e)
|
|
553
567
|
return {
|
|
554
568
|
label: "打开第一条记录",
|
|
555
569
|
onClick: () => M(e)
|
|
556
570
|
};
|
|
557
|
-
const t = ((a =
|
|
558
|
-
return
|
|
571
|
+
const t = ((a = Q.value.find((i) => i.value !== k)) == null ? void 0 : a.value) ?? null;
|
|
572
|
+
return ze(t);
|
|
559
573
|
});
|
|
560
|
-
function
|
|
561
|
-
|
|
574
|
+
function ae(e) {
|
|
575
|
+
n.setRecords(e), d("update:records", e);
|
|
562
576
|
}
|
|
563
577
|
function M(e) {
|
|
564
|
-
e && (_.value = !0,
|
|
578
|
+
e && (_.value = !0, p.value = {}, n.setSelectedRecord(e));
|
|
565
579
|
}
|
|
566
|
-
function
|
|
580
|
+
function he(e) {
|
|
567
581
|
return e ? C.value.find((t) => t.id === e) ?? null : null;
|
|
568
582
|
}
|
|
569
|
-
function
|
|
570
|
-
|
|
583
|
+
function _e(e) {
|
|
584
|
+
n.viewList.value.some((t) => t.id === e) && (e === k && (_.value = !0), n.switchView(e));
|
|
571
585
|
}
|
|
572
|
-
function
|
|
573
|
-
|
|
586
|
+
function ut(e) {
|
|
587
|
+
_e(e);
|
|
574
588
|
}
|
|
575
|
-
function
|
|
589
|
+
function ct(e) {
|
|
576
590
|
var t, a;
|
|
577
|
-
|
|
591
|
+
n.viewList.value.some((i) => i.id === e) && (e === k && (_.value = !0), n.switchView(e), d("load-view", e), (a = (t = o.actions) == null ? void 0 : t.onViewLoad) == null || a.call(t, { tableId: o.tableId, viewId: e }));
|
|
578
592
|
}
|
|
579
|
-
function
|
|
580
|
-
|
|
593
|
+
function vt(e) {
|
|
594
|
+
n.saveView({ name: e });
|
|
581
595
|
}
|
|
582
|
-
function
|
|
583
|
-
|
|
584
|
-
filters:
|
|
596
|
+
function H() {
|
|
597
|
+
n.updateActiveView({
|
|
598
|
+
filters: je(h.value)
|
|
585
599
|
});
|
|
586
600
|
}
|
|
587
|
-
function
|
|
601
|
+
function ft() {
|
|
588
602
|
var t;
|
|
589
|
-
const e = ((t =
|
|
590
|
-
e && (
|
|
603
|
+
const e = ((t = ee.value.find((a) => !a.hidden)) == null ? void 0 : t.key) ?? "";
|
|
604
|
+
e && (h.value = [...h.value, Ge(e)], H());
|
|
591
605
|
}
|
|
592
|
-
function
|
|
593
|
-
|
|
606
|
+
function wt(e) {
|
|
607
|
+
h.value = h.value.filter((t) => t.id !== e), H();
|
|
594
608
|
}
|
|
595
|
-
function
|
|
596
|
-
|
|
609
|
+
function pt(e, t) {
|
|
610
|
+
h.value = h.value.map(
|
|
597
611
|
(a) => a.id === e ? { ...a, ...t } : a
|
|
598
|
-
),
|
|
612
|
+
), H();
|
|
599
613
|
}
|
|
600
|
-
function
|
|
601
|
-
|
|
614
|
+
function mt() {
|
|
615
|
+
h.value = [], H();
|
|
602
616
|
}
|
|
603
|
-
function
|
|
604
|
-
|
|
617
|
+
function bt(e) {
|
|
618
|
+
Z.value = e, d("update:filterLogic", e);
|
|
605
619
|
}
|
|
606
|
-
function
|
|
607
|
-
d("update:columns", e),
|
|
620
|
+
function ht(e) {
|
|
621
|
+
d("update:columns", e), n.updateActiveView({
|
|
608
622
|
visibleFields: e.filter((t) => !t.hidden).map((t) => t.key)
|
|
609
623
|
});
|
|
610
624
|
}
|
|
611
|
-
function
|
|
625
|
+
function _t(e) {
|
|
612
626
|
var i;
|
|
613
627
|
if (!e) {
|
|
614
|
-
|
|
628
|
+
n.updateActiveView({ sorts: [] }), d("sort", e);
|
|
615
629
|
return;
|
|
616
630
|
}
|
|
617
631
|
const t = (i = b.value.sorts) == null ? void 0 : i[0], a = (t == null ? void 0 : t.fieldId) === e && t.direction === "asc" ? "desc" : "asc";
|
|
618
|
-
|
|
632
|
+
n.updateActiveView({
|
|
619
633
|
sorts: [{ fieldId: e, direction: a }]
|
|
620
634
|
}), d("sort", e);
|
|
621
635
|
}
|
|
622
|
-
function
|
|
623
|
-
|
|
636
|
+
function yt(e) {
|
|
637
|
+
n.updateActiveView({
|
|
624
638
|
groups: e ? [{ fieldId: e }] : []
|
|
625
639
|
}), d("group", e);
|
|
626
640
|
}
|
|
627
|
-
function
|
|
628
|
-
|
|
641
|
+
function kt(e) {
|
|
642
|
+
L.value = e, d("update:searchKeyword", e);
|
|
629
643
|
}
|
|
630
|
-
function
|
|
631
|
-
|
|
644
|
+
function A(e) {
|
|
645
|
+
n.emitSchemaEvent(e);
|
|
632
646
|
}
|
|
633
|
-
function
|
|
634
|
-
const i = C.value.map((
|
|
635
|
-
...
|
|
647
|
+
function gt(e, t, a) {
|
|
648
|
+
const i = C.value.map((l) => l.id !== e ? l : {
|
|
649
|
+
...l,
|
|
636
650
|
fields: {
|
|
637
|
-
...
|
|
651
|
+
...l.fields,
|
|
638
652
|
[t]: a
|
|
639
653
|
}
|
|
640
654
|
});
|
|
641
|
-
|
|
655
|
+
ae(i);
|
|
642
656
|
}
|
|
643
|
-
function
|
|
644
|
-
|
|
657
|
+
function ye(e) {
|
|
658
|
+
gt(e.rowId, e.fieldId, e.value), n.emitCellEdit(e);
|
|
645
659
|
}
|
|
646
|
-
function
|
|
660
|
+
function Ct(e) {
|
|
647
661
|
var t, a;
|
|
648
|
-
d("record-change", e), (a = (t =
|
|
662
|
+
d("record-change", e), (a = (t = o.actions) == null ? void 0 : t.onRecordChange) == null || a.call(t, { tableId: o.tableId, ...e });
|
|
649
663
|
}
|
|
650
|
-
function
|
|
651
|
-
|
|
664
|
+
function Vt(e) {
|
|
665
|
+
ae(e);
|
|
652
666
|
}
|
|
653
|
-
function
|
|
667
|
+
function It(e) {
|
|
654
668
|
M(e);
|
|
655
669
|
}
|
|
656
|
-
function
|
|
670
|
+
function Ft(e) {
|
|
657
671
|
d("row-click", e);
|
|
658
672
|
}
|
|
659
|
-
function
|
|
660
|
-
d("card-click", e), M(
|
|
673
|
+
function ke(e) {
|
|
674
|
+
d("card-click", e), M(he(e.id));
|
|
661
675
|
}
|
|
662
|
-
function
|
|
663
|
-
d("row-click", e), M(
|
|
676
|
+
function St(e) {
|
|
677
|
+
d("row-click", e), M(he(e.sourceRecordId ?? e.id));
|
|
664
678
|
}
|
|
665
|
-
function
|
|
666
|
-
_.value = !1,
|
|
679
|
+
function U() {
|
|
680
|
+
_.value = !1, p.value = {}, n.clearSelectedRecord();
|
|
667
681
|
}
|
|
668
|
-
function
|
|
682
|
+
function Tt(e) {
|
|
669
683
|
for (const [t, a] of Object.entries(e.fields))
|
|
670
|
-
|
|
671
|
-
|
|
684
|
+
ye({ rowId: e.rowId, fieldId: t, value: a });
|
|
685
|
+
p.value = {}, U();
|
|
672
686
|
}
|
|
673
|
-
function
|
|
687
|
+
function ge(e) {
|
|
674
688
|
const t = C.value.filter((a) => a.id !== e);
|
|
675
|
-
|
|
689
|
+
ae(t), _.value = !1, p.value = {}, n.clearSelectedRecord();
|
|
676
690
|
}
|
|
677
|
-
function
|
|
678
|
-
return
|
|
691
|
+
function Ce(e) {
|
|
692
|
+
return $.value.find((t) => t.id === e) ?? {
|
|
679
693
|
id: e,
|
|
680
694
|
type: "text",
|
|
681
695
|
label: e
|
|
682
696
|
};
|
|
683
697
|
}
|
|
684
|
-
function
|
|
685
|
-
return Object.prototype.hasOwnProperty.call(
|
|
686
|
-
}
|
|
687
|
-
function It(e) {
|
|
688
|
-
const t = te(e);
|
|
689
|
-
return typeof t != "string" || !t ? "" : Te(t);
|
|
698
|
+
function K(e) {
|
|
699
|
+
return Object.prototype.hasOwnProperty.call(p.value, e) ? p.value[e] : ve.value[e];
|
|
690
700
|
}
|
|
691
|
-
function
|
|
692
|
-
|
|
693
|
-
...
|
|
701
|
+
function Ve(e, t, a) {
|
|
702
|
+
p.value = {
|
|
703
|
+
...p.value,
|
|
694
704
|
[t]: a
|
|
695
705
|
};
|
|
696
706
|
}
|
|
697
|
-
function
|
|
698
|
-
|
|
699
|
-
rowId:
|
|
700
|
-
fields: { ...
|
|
707
|
+
function Ie() {
|
|
708
|
+
f.value && Tt({
|
|
709
|
+
rowId: f.value.id,
|
|
710
|
+
fields: { ...p.value }
|
|
701
711
|
});
|
|
702
712
|
}
|
|
703
713
|
return (e, t) => {
|
|
704
714
|
var a;
|
|
705
|
-
return c(),
|
|
715
|
+
return c(), m("section", At({
|
|
706
716
|
class: "of-database-view",
|
|
707
717
|
"data-role": "database-view"
|
|
708
718
|
}, e.$attrs), [
|
|
709
|
-
|
|
710
|
-
|
|
719
|
+
te.value === "loading" ? (c(), m("div", zt, [
|
|
720
|
+
W(ie(Bt), {
|
|
711
721
|
class: "of-database-view__spinner",
|
|
712
722
|
size: 20
|
|
713
723
|
}),
|
|
714
|
-
t[
|
|
724
|
+
t[11] || (t[11] = u("div", { class: "of-database-view__state-text" }, [
|
|
715
725
|
u("div", { class: "of-database-view__state-title" }, "正在加载数据视图"),
|
|
716
726
|
u("div", { class: "of-database-view__state-description" }, "请稍候,页面级编排器正在准备当前视图。")
|
|
717
727
|
], -1))
|
|
718
|
-
])) :
|
|
719
|
-
|
|
720
|
-
icon: ie(
|
|
728
|
+
])) : te.value === "error" ? (c(), m("div", Mt, [
|
|
729
|
+
W(De, {
|
|
730
|
+
icon: ie(xt),
|
|
721
731
|
title: "数据视图加载失败",
|
|
722
|
-
description:
|
|
732
|
+
description: z.value instanceof Error ? z.value.message : String(z.value)
|
|
723
733
|
}, null, 8, ["icon", "description"])
|
|
724
|
-
])) : (c(),
|
|
725
|
-
|
|
734
|
+
])) : (c(), m(le, { key: 2 }, [
|
|
735
|
+
et.value ? (c(), V(qt, {
|
|
726
736
|
key: 0,
|
|
727
737
|
class: "of-database-view__toolbar",
|
|
728
|
-
"current-view":
|
|
729
|
-
"view-tabs":
|
|
730
|
-
columns:
|
|
731
|
-
"filter-conditions":
|
|
732
|
-
"filter-logic":
|
|
733
|
-
"filter-active":
|
|
734
|
-
"current-sort":
|
|
735
|
-
"current-group":
|
|
736
|
-
"search-keyword":
|
|
737
|
-
"show-view-switch":
|
|
738
|
-
"show-filter":
|
|
739
|
-
"show-sort":
|
|
740
|
-
"show-group":
|
|
741
|
-
"show-columns":
|
|
742
|
-
"show-search":
|
|
743
|
-
"saved-views":
|
|
744
|
-
"onUpdate:currentView":
|
|
745
|
-
"onUpdate:columns":
|
|
746
|
-
"onUpdate:searchKeyword":
|
|
747
|
-
onAddFilter:
|
|
748
|
-
onRemoveFilter:
|
|
749
|
-
onUpdateFilter:
|
|
750
|
-
onClearFilters:
|
|
751
|
-
"onUpdate:filterLogic":
|
|
752
|
-
onSort:
|
|
753
|
-
onGroup:
|
|
754
|
-
onSaveView:
|
|
755
|
-
onLoadView:
|
|
756
|
-
}, null, 8, ["current-view", "view-tabs", "columns", "filter-conditions", "filter-logic", "filter-active", "current-sort", "current-group", "search-keyword", "show-view-switch", "show-filter", "show-sort", "show-group", "show-columns", "show-search", "saved-views"])) :
|
|
757
|
-
|
|
758
|
-
|
|
738
|
+
"current-view": Y.value,
|
|
739
|
+
"view-tabs": Q.value,
|
|
740
|
+
columns: ee.value,
|
|
741
|
+
"filter-conditions": j.value,
|
|
742
|
+
"filter-logic": Z.value,
|
|
743
|
+
"filter-active": Qe.value,
|
|
744
|
+
"current-sort": be.value,
|
|
745
|
+
"current-group": Ze.value,
|
|
746
|
+
"search-keyword": L.value,
|
|
747
|
+
"show-view-switch": tt.value,
|
|
748
|
+
"show-filter": at.value,
|
|
749
|
+
"show-sort": it.value,
|
|
750
|
+
"show-group": lt.value,
|
|
751
|
+
"show-columns": ot.value,
|
|
752
|
+
"show-search": st.value,
|
|
753
|
+
"saved-views": Je.value,
|
|
754
|
+
"onUpdate:currentView": ut,
|
|
755
|
+
"onUpdate:columns": ht,
|
|
756
|
+
"onUpdate:searchKeyword": kt,
|
|
757
|
+
onAddFilter: ft,
|
|
758
|
+
onRemoveFilter: wt,
|
|
759
|
+
onUpdateFilter: pt,
|
|
760
|
+
onClearFilters: mt,
|
|
761
|
+
"onUpdate:filterLogic": bt,
|
|
762
|
+
onSort: _t,
|
|
763
|
+
onGroup: yt,
|
|
764
|
+
onSaveView: vt,
|
|
765
|
+
onLoadView: ct
|
|
766
|
+
}, null, 8, ["current-view", "view-tabs", "columns", "filter-conditions", "filter-logic", "filter-active", "current-sort", "current-group", "search-keyword", "show-view-switch", "show-filter", "show-sort", "show-group", "show-columns", "show-search", "saved-views"])) : Te("", !0),
|
|
767
|
+
te.value === "empty" ? (c(), m("div", Ht, [
|
|
768
|
+
W(De, {
|
|
759
769
|
icon: ie(Nt),
|
|
760
770
|
title: "暂无记录",
|
|
761
|
-
description:
|
|
762
|
-
action:
|
|
771
|
+
description: w.value === "detail" ? "请选择一条记录,详情工作区会在这里打开。" : w.value === "timeline" ? "当前时间线没有可渲染的起止日期。" : "当前视图没有匹配的数据,或者被筛选条件过滤为空。",
|
|
772
|
+
action: dt.value
|
|
763
773
|
}, null, 8, ["icon", "description", "action"])
|
|
764
|
-
])) : (c(),
|
|
774
|
+
])) : (c(), m("div", {
|
|
765
775
|
key: 2,
|
|
766
776
|
class: "of-database-view__content",
|
|
767
|
-
"data-view":
|
|
777
|
+
"data-view": w.value
|
|
768
778
|
}, [
|
|
769
|
-
|
|
779
|
+
w.value === "table" ? (c(), V(Wt, {
|
|
770
780
|
key: 0,
|
|
771
781
|
class: "of-database-view__view of-database-view__view--table",
|
|
772
|
-
records:
|
|
773
|
-
schema:
|
|
782
|
+
records: E.value,
|
|
783
|
+
schema: I.value ?? void 0,
|
|
774
784
|
view: b.value,
|
|
775
|
-
columns:
|
|
776
|
-
readonly:
|
|
777
|
-
"enable-field-management": ((a =
|
|
778
|
-
onCellEdit:
|
|
779
|
-
onSchemaAddField: t[0] || (t[0] = (i) =>
|
|
780
|
-
onSchemaRenameField: t[1] || (t[1] = ({ fieldId: i, newName:
|
|
781
|
-
onSchemaChangeFieldType: t[2] || (t[2] = ({ fieldId: i, newType:
|
|
782
|
-
onSchemaHideField: t[3] || (t[3] = (i) =>
|
|
783
|
-
onSchemaDeleteField: t[4] || (t[4] = (i) =>
|
|
784
|
-
onSchemaDuplicateField: t[5] || (t[5] = (i) =>
|
|
785
|
-
onRowClick:
|
|
786
|
-
onRowClickRecord:
|
|
787
|
-
}, null, 8, ["records", "schema", "view", "columns", "readonly", "enable-field-management"])) :
|
|
785
|
+
columns: ee.value,
|
|
786
|
+
readonly: S.readonly,
|
|
787
|
+
"enable-field-management": ((a = S.ui) == null ? void 0 : a.enableFieldManagement) ?? !1,
|
|
788
|
+
onCellEdit: ye,
|
|
789
|
+
onSchemaAddField: t[0] || (t[0] = (i) => A({ type: "schema-add-field", fieldType: i })),
|
|
790
|
+
onSchemaRenameField: t[1] || (t[1] = ({ fieldId: i, newName: l }) => A({ type: "schema-rename-field", fieldId: i, newName: l })),
|
|
791
|
+
onSchemaChangeFieldType: t[2] || (t[2] = ({ fieldId: i, newType: l }) => A({ type: "schema-change-field-type", fieldId: i, newType: l })),
|
|
792
|
+
onSchemaHideField: t[3] || (t[3] = (i) => A({ type: "schema-hide-field", fieldId: i })),
|
|
793
|
+
onSchemaDeleteField: t[4] || (t[4] = (i) => A({ type: "schema-delete-field", fieldId: i })),
|
|
794
|
+
onSchemaDuplicateField: t[5] || (t[5] = (i) => A({ type: "schema-duplicate-field", fieldId: i })),
|
|
795
|
+
onRowClick: Ft,
|
|
796
|
+
onRowClickRecord: It
|
|
797
|
+
}, null, 8, ["records", "schema", "view", "columns", "readonly", "enable-field-management"])) : w.value === "kanban" ? (c(), V($t, {
|
|
788
798
|
key: 1,
|
|
789
799
|
class: "of-database-view__view of-database-view__view--kanban",
|
|
790
|
-
records:
|
|
791
|
-
schema:
|
|
800
|
+
records: E.value,
|
|
801
|
+
schema: I.value ?? void 0,
|
|
792
802
|
view: b.value,
|
|
793
|
-
onCardClick:
|
|
803
|
+
onCardClick: ke,
|
|
794
804
|
"onUpdate:columns": t[6] || (t[6] = () => {
|
|
795
805
|
}),
|
|
796
806
|
onAddColumn: t[7] || (t[7] = () => d("add-column"))
|
|
797
|
-
}, null, 8, ["records", "schema", "view"])) :
|
|
807
|
+
}, null, 8, ["records", "schema", "view"])) : w.value === "gallery" ? (c(), V(Gt, {
|
|
798
808
|
key: 2,
|
|
799
809
|
class: "of-database-view__view of-database-view__view--gallery",
|
|
800
|
-
records:
|
|
801
|
-
schema:
|
|
810
|
+
records: E.value,
|
|
811
|
+
schema: I.value ?? void 0,
|
|
802
812
|
view: b.value,
|
|
803
|
-
onCardClick:
|
|
813
|
+
onCardClick: ke,
|
|
804
814
|
onAdd: t[8] || (t[8] = () => d("add"))
|
|
805
|
-
}, null, 8, ["records", "schema", "view"])) :
|
|
815
|
+
}, null, 8, ["records", "schema", "view"])) : w.value === "timeline" ? (c(), V(Pt, {
|
|
806
816
|
key: 3,
|
|
807
817
|
class: "of-database-view__view of-database-view__view--timeline",
|
|
808
|
-
records:
|
|
809
|
-
schema:
|
|
818
|
+
records: E.value,
|
|
819
|
+
schema: I.value ?? void 0,
|
|
810
820
|
"view-config": b.value,
|
|
811
|
-
onRowClick:
|
|
812
|
-
onRecordChange:
|
|
813
|
-
"onUpdate:records":
|
|
814
|
-
}, null, 8, ["records", "schema", "view-config"])) : (c(),
|
|
815
|
-
], 8,
|
|
821
|
+
onRowClick: St,
|
|
822
|
+
onRecordChange: Ct,
|
|
823
|
+
"onUpdate:records": Vt
|
|
824
|
+
}, null, 8, ["records", "schema", "view-config"])) : (c(), m("div", Xt))
|
|
825
|
+
], 8, Jt))
|
|
816
826
|
], 64)),
|
|
817
|
-
N.value &&
|
|
827
|
+
N.value && O.value === "side-panel" ? (c(), V(Kt, {
|
|
818
828
|
key: 3,
|
|
819
829
|
"model-value": N.value,
|
|
820
|
-
title:
|
|
821
|
-
width:
|
|
830
|
+
title: P.value,
|
|
831
|
+
width: 720,
|
|
822
832
|
mode: "persistent",
|
|
823
|
-
"onUpdate:modelValue":
|
|
833
|
+
"onUpdate:modelValue": U
|
|
824
834
|
}, {
|
|
825
|
-
default:
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
u("
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
u("
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
value
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
]
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
onClick: Ft
|
|
894
|
-
}, " 保存 ", 8, fa)
|
|
895
|
-
])
|
|
896
|
-
], 8, Zt)
|
|
897
|
-
];
|
|
898
|
-
}),
|
|
835
|
+
default: F(() => [
|
|
836
|
+
W(Ee, {
|
|
837
|
+
title: P.value,
|
|
838
|
+
comments: [],
|
|
839
|
+
"description-content": pe.value,
|
|
840
|
+
"description-editable": !1
|
|
841
|
+
}, {
|
|
842
|
+
meta: F(() => {
|
|
843
|
+
var i;
|
|
844
|
+
return [
|
|
845
|
+
u("span", Yt, y(((i = f.value) == null ? void 0 : i.id) ?? "record"), 1),
|
|
846
|
+
u("span", Zt, y(w.value), 1),
|
|
847
|
+
u("span", Qt, y(O.value), 1)
|
|
848
|
+
];
|
|
849
|
+
}),
|
|
850
|
+
props: F(() => {
|
|
851
|
+
var i;
|
|
852
|
+
return [
|
|
853
|
+
u("div", {
|
|
854
|
+
class: "of-database-view__detail-workspace",
|
|
855
|
+
"data-record-id": ((i = f.value) == null ? void 0 : i.id) ?? ""
|
|
856
|
+
}, [
|
|
857
|
+
u("section", ta, [
|
|
858
|
+
(c(!0), m(le, null, Re(we.value, (l) => (c(), m("div", {
|
|
859
|
+
key: l.key,
|
|
860
|
+
class: "of-database-view__detail-workspace-field"
|
|
861
|
+
}, [
|
|
862
|
+
u("span", aa, y(l.label), 1),
|
|
863
|
+
u("div", ia, [
|
|
864
|
+
$.value.length > 0 ? (c(), V(Le, {
|
|
865
|
+
key: 0,
|
|
866
|
+
"row-id": G.value.id,
|
|
867
|
+
field: Ce(l.key),
|
|
868
|
+
value: K(l.key),
|
|
869
|
+
readonly: S.readonly,
|
|
870
|
+
onCommit: Ve
|
|
871
|
+
}, null, 8, ["row-id", "field", "value", "readonly"])) : (c(), m("span", la, y(K(l.key) ?? "—"), 1))
|
|
872
|
+
])
|
|
873
|
+
]))), 128))
|
|
874
|
+
])
|
|
875
|
+
], 8, ea)
|
|
876
|
+
];
|
|
877
|
+
}),
|
|
878
|
+
footer: F(() => [
|
|
879
|
+
u("button", {
|
|
880
|
+
class: "of-database-view__detail-workspace-btn of-database-view__detail-workspace-btn--delete",
|
|
881
|
+
type: "button",
|
|
882
|
+
onClick: t[9] || (t[9] = (i) => {
|
|
883
|
+
var l;
|
|
884
|
+
return ge(((l = f.value) == null ? void 0 : l.id) ?? G.value.id);
|
|
885
|
+
})
|
|
886
|
+
}, " 删除 "),
|
|
887
|
+
t[12] || (t[12] = u("div", { class: "of-database-view__detail-workspace-footer-spacer" }, null, -1)),
|
|
888
|
+
u("button", {
|
|
889
|
+
class: "of-database-view__detail-workspace-btn of-database-view__detail-workspace-btn--cancel",
|
|
890
|
+
type: "button",
|
|
891
|
+
onClick: U
|
|
892
|
+
}, " 取消 "),
|
|
893
|
+
u("button", {
|
|
894
|
+
class: "of-database-view__detail-workspace-btn of-database-view__detail-workspace-btn--save",
|
|
895
|
+
type: "button",
|
|
896
|
+
disabled: S.readonly || !me.value,
|
|
897
|
+
onClick: Ie
|
|
898
|
+
}, " 保存 ", 8, oa)
|
|
899
|
+
]),
|
|
900
|
+
_: 1
|
|
901
|
+
}, 8, ["title", "description-content"])
|
|
902
|
+
]),
|
|
899
903
|
_: 1
|
|
900
|
-
}, 8, ["model-value"])) : N.value ? (c(),
|
|
904
|
+
}, 8, ["model-value", "title"])) : N.value ? (c(), V(Ut, {
|
|
901
905
|
key: 4,
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
"
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
906
|
+
"model-value": N.value,
|
|
907
|
+
title: P.value,
|
|
908
|
+
width: 900,
|
|
909
|
+
fullscreen: O.value === "full-page",
|
|
910
|
+
"mask-closable": !0,
|
|
911
|
+
"onUpdate:modelValue": U
|
|
912
|
+
}, {
|
|
913
|
+
default: F(() => [
|
|
914
|
+
W(Ee, {
|
|
915
|
+
title: P.value,
|
|
916
|
+
comments: [],
|
|
917
|
+
"description-content": pe.value,
|
|
918
|
+
"description-editable": !1
|
|
919
|
+
}, {
|
|
920
|
+
meta: F(() => {
|
|
921
|
+
var i;
|
|
922
|
+
return [
|
|
923
|
+
u("span", sa, y(((i = f.value) == null ? void 0 : i.id) ?? "record"), 1),
|
|
924
|
+
u("span", ra, y(w.value), 1),
|
|
925
|
+
u("span", na, y(O.value), 1)
|
|
926
|
+
];
|
|
927
|
+
}),
|
|
928
|
+
props: F(() => {
|
|
929
|
+
var i;
|
|
930
|
+
return [
|
|
931
|
+
u("div", {
|
|
932
|
+
class: "of-database-view__detail-workspace",
|
|
933
|
+
"data-record-id": ((i = f.value) == null ? void 0 : i.id) ?? ""
|
|
934
|
+
}, [
|
|
935
|
+
u("section", ua, [
|
|
936
|
+
(c(!0), m(le, null, Re(we.value, (l) => (c(), m("div", {
|
|
937
|
+
key: l.key,
|
|
938
|
+
class: "of-database-view__detail-workspace-field"
|
|
939
|
+
}, [
|
|
940
|
+
u("span", ca, y(l.label), 1),
|
|
941
|
+
u("div", va, [
|
|
942
|
+
$.value.length > 0 ? (c(), V(Le, {
|
|
943
|
+
key: 0,
|
|
944
|
+
"row-id": G.value.id,
|
|
945
|
+
field: Ce(l.key),
|
|
946
|
+
value: K(l.key),
|
|
947
|
+
readonly: S.readonly,
|
|
948
|
+
onCommit: Ve
|
|
949
|
+
}, null, 8, ["row-id", "field", "value", "readonly"])) : (c(), m("span", fa, y(K(l.key) ?? "—"), 1))
|
|
950
|
+
])
|
|
951
|
+
]))), 128))
|
|
952
|
+
])
|
|
953
|
+
], 8, da)
|
|
954
|
+
];
|
|
955
|
+
}),
|
|
956
|
+
footer: F(() => [
|
|
957
|
+
u("button", {
|
|
958
|
+
class: "of-database-view__detail-workspace-btn of-database-view__detail-workspace-btn--delete",
|
|
959
|
+
type: "button",
|
|
960
|
+
onClick: t[10] || (t[10] = (i) => {
|
|
961
|
+
var l;
|
|
962
|
+
return ge(((l = f.value) == null ? void 0 : l.id) ?? G.value.id);
|
|
963
|
+
})
|
|
964
|
+
}, " 删除 "),
|
|
965
|
+
t[13] || (t[13] = u("div", { class: "of-database-view__detail-workspace-footer-spacer" }, null, -1)),
|
|
966
|
+
u("button", {
|
|
967
|
+
class: "of-database-view__detail-workspace-btn of-database-view__detail-workspace-btn--cancel",
|
|
968
|
+
type: "button",
|
|
969
|
+
onClick: U
|
|
970
|
+
}, " 取消 "),
|
|
971
|
+
u("button", {
|
|
972
|
+
class: "of-database-view__detail-workspace-btn of-database-view__detail-workspace-btn--save",
|
|
973
|
+
type: "button",
|
|
974
|
+
disabled: S.readonly || !me.value,
|
|
975
|
+
onClick: Ie
|
|
976
|
+
}, " 保存 ", 8, wa)
|
|
977
|
+
]),
|
|
978
|
+
_: 1
|
|
979
|
+
}, 8, ["title", "description-content"])
|
|
980
|
+
]),
|
|
981
|
+
_: 1
|
|
982
|
+
}, 8, ["model-value", "title", "fullscreen"])) : Te("", !0)
|
|
913
983
|
], 16);
|
|
914
984
|
};
|
|
915
985
|
}
|
|
916
986
|
});
|
|
917
987
|
export {
|
|
918
|
-
|
|
988
|
+
Da as default
|
|
919
989
|
};
|