@oneflowui/ui 0.8.1 → 0.8.3
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/Dashboard/charts/BarChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/BarChart.vue2.js +9 -9
- package/dist/components/Dashboard/charts/NumberCard.vue.js +2 -2
- package/dist/components/Dashboard/charts/PieChart.vue.js +1 -1
- package/dist/components/Dashboard/charts/PieChart.vue2.js +3 -3
- package/dist/components/Dashboard/charts/TableChart.vue.js +2 -2
- package/dist/components/Dashboard/index.vue.js +2 -2
- package/dist/components/base/InfoCard.vue.js +1 -1
- package/dist/components/base/InfoCard.vue2.js +40 -40
- package/dist/components/base/StatisticCard.vue.js +3 -3
- package/dist/components/base/StatusSummary.vue.js +1 -1
- package/dist/components/base/StatusSummary.vue2.js +5 -5
- package/dist/components/database/DatabaseDetailPresenter.vue.d.ts +41 -0
- package/dist/components/database/DatabaseDetailPresenter.vue.js +76 -0
- package/dist/components/database/DatabaseDetailPresenter.vue2.js +4 -0
- package/dist/components/database/DatabaseDetailWorkspace.vue.d.ts +37 -0
- package/dist/components/database/DatabaseDetailWorkspace.vue.js +7 -0
- package/dist/components/database/DatabaseDetailWorkspace.vue2.js +103 -0
- package/dist/components/database/DatabaseView.vue.d.ts +13 -76
- package/dist/components/database/DatabaseView.vue.js +2 -2
- package/dist/components/database/DatabaseView.vue2.js +322 -921
- package/dist/components/database/DatabaseViewContent.vue.d.ts +74 -0
- package/dist/components/database/DatabaseViewContent.vue.js +79 -0
- package/dist/components/database/DatabaseViewContent.vue2.js +4 -0
- package/dist/components/database/DatabaseViewDetailHost.vue.d.ts +43 -0
- package/dist/components/database/DatabaseViewDetailHost.vue.js +59 -0
- package/dist/components/database/DatabaseViewDetailHost.vue2.js +4 -0
- package/dist/components/database/DatabaseViewShell.vue.d.ts +35 -0
- package/dist/components/database/DatabaseViewShell.vue.js +7 -0
- package/dist/components/database/DatabaseViewShell.vue2.js +71 -0
- package/dist/components/database/DatabaseViewToolbar.vue.d.ts +77 -0
- package/dist/components/database/DatabaseViewToolbar.vue.js +62 -0
- package/dist/components/database/DatabaseViewToolbar.vue2.js +4 -0
- package/dist/components/database/databaseViewUtils.d.ts +91 -0
- package/dist/components/database/databaseViewUtils.js +266 -0
- package/dist/components/database/index.d.ts +1 -1
- package/dist/components/kanban/KanbanColumn.vue.d.ts +2 -2
- package/dist/components/layout/AppLayout.vue.js +1 -1
- package/dist/components/layout/Navbar.vue.js +1 -1
- package/dist/components/layout/Sidebar.vue.js +2 -2
- package/dist/components/layout/StatusBar.vue.js +2 -2
- package/dist/components/overlay/Dialog.vue.d.ts +1 -1
- package/dist/components/table/ColumnHeaderMenu.vue.js +3 -3
- package/dist/components/table/DataTable.vue.d.ts +6 -17
- package/dist/components/table/DataTable.vue.js +2 -2
- package/dist/components/table/DataTable.vue2.js +781 -872
- package/dist/components/table/DataTableDesktopFixedRegion.vue.d.ts +56 -0
- package/dist/components/table/DataTableDesktopFixedRegion.vue.js +7 -0
- package/dist/components/table/DataTableDesktopFixedRegion.vue2.js +67 -0
- package/dist/components/table/DataTableDesktopFrame.vue.d.ts +127 -0
- package/dist/components/table/DataTableDesktopFrame.vue.js +7 -0
- package/dist/components/table/DataTableDesktopFrame.vue2.js +196 -0
- package/dist/components/table/DataTableDesktopScrollRegion.vue.d.ts +55 -0
- package/dist/components/table/DataTableDesktopScrollRegion.vue.js +7 -0
- package/dist/components/table/DataTableDesktopScrollRegion.vue2.js +66 -0
- package/dist/components/table/DataTableDesktopStandardRegion.vue.d.ts +54 -0
- package/dist/components/table/DataTableDesktopStandardRegion.vue.js +7 -0
- package/dist/components/table/DataTableDesktopStandardRegion.vue2.js +65 -0
- package/dist/components/table/DataTableDraftToolbar.vue.d.ts +11 -0
- package/dist/components/table/DataTableDraftToolbar.vue.js +7 -0
- package/dist/components/table/DataTableDraftToolbar.vue2.js +25 -0
- package/dist/components/table/DataTableMobilePanel.vue.d.ts +79 -0
- package/dist/components/table/DataTableMobilePanel.vue.js +60 -0
- package/dist/components/table/DataTableMobilePanel.vue2.js +4 -0
- package/dist/components/table/DataTableSelectionBar.vue.d.ts +11 -0
- package/dist/components/table/DataTableSelectionBar.vue.js +7 -0
- package/dist/components/table/DataTableSelectionBar.vue2.js +33 -0
- package/dist/components/table/DetailSheet.vue.js +1 -1
- package/dist/components/table/DetailSheet.vue2.js +160 -187
- package/dist/components/table/FieldTypePicker.vue.js +3 -3
- package/dist/components/table/MobileListView.vue.js +1 -1
- package/dist/components/table/TableColumnManager.vue.js +3 -3
- package/dist/components/table/TableDataRow.vue.js +4 -4
- package/dist/components/table/TableFilterPanel.vue.js +1 -1
- package/dist/components/table/TableGroupRow.vue.js +2 -2
- package/dist/components/table/TableHeaderRow.vue.js +3 -3
- package/dist/components/table/TableToolbar.vue.js +2 -2
- package/dist/components/table/TableToolbar.vue2.js +126 -138
- package/dist/components/table/dataTableUtils.d.ts +26 -0
- package/dist/components/table/dataTableUtils.js +60 -0
- package/dist/composables/databaseDetailWorkspaceUtils.d.ts +59 -0
- package/dist/composables/databaseDetailWorkspaceUtils.js +160 -0
- package/dist/composables/index.d.ts +5 -0
- package/dist/composables/useDataTableDetailSheet.d.ts +47 -0
- package/dist/composables/useDataTableDetailSheet.js +58 -0
- package/dist/composables/useDataTableLayout.d.ts +16 -0
- package/dist/composables/useDataTableLayout.js +38 -0
- package/dist/composables/useDataTableSelection.d.ts +41 -0
- package/dist/composables/useDataTableSelection.js +73 -0
- package/dist/composables/useDatabaseDetailWorkspace.d.ts +67 -0
- package/dist/composables/useDatabaseDetailWorkspace.js +150 -0
- package/dist/composables/useDatabaseView.d.ts +3 -137
- package/dist/composables/useDatabaseWorkspace.d.ts +31 -0
- package/dist/composables/useDatabaseWorkspace.js +89 -0
- package/dist/composables/useTableToolbarPanels.d.ts +19 -0
- package/dist/composables/useTableToolbarPanels.js +53 -0
- package/dist/contracts/database.d.ts +252 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +261 -248
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.js +10 -261
- package/dist/registry/plugin-components.d.ts +291 -0
- package/dist/registry/plugin-components.js +114 -0
- package/dist/style.css +1 -1
- package/dist/types/data-table.d.ts +27 -0
- package/dist/types/data-table.js +29 -0
- package/package.json +1 -1
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
function y(e) {
|
|
2
|
+
var t, r, s, n;
|
|
3
|
+
return {
|
|
4
|
+
...e,
|
|
5
|
+
visibleFields: [...e.visibleFields],
|
|
6
|
+
sorts: (t = e.sorts) == null ? void 0 : t.map((i) => ({ ...i })),
|
|
7
|
+
groups: (r = e.groups) == null ? void 0 : r.map((i) => ({ ...i })),
|
|
8
|
+
filters: (s = e.filters) == null ? void 0 : s.map((i) => ({ ...i })),
|
|
9
|
+
aggregations: (n = e.aggregations) == null ? void 0 : n.map((i) => ({ ...i })),
|
|
10
|
+
fixedColumns: e.fixedColumns ? [...e.fixedColumns] : void 0,
|
|
11
|
+
galleryCardFields: e.galleryCardFields ? [...e.galleryCardFields] : void 0
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function b(e) {
|
|
15
|
+
const t = e[0];
|
|
16
|
+
return t ? Object.keys(t.fields) : [];
|
|
17
|
+
}
|
|
18
|
+
function c(e) {
|
|
19
|
+
switch (e) {
|
|
20
|
+
case "kanban":
|
|
21
|
+
return "columns-3";
|
|
22
|
+
case "gallery":
|
|
23
|
+
return "image";
|
|
24
|
+
case "timeline":
|
|
25
|
+
return "calendar-range";
|
|
26
|
+
case "detail":
|
|
27
|
+
return "file-text";
|
|
28
|
+
case "table":
|
|
29
|
+
default:
|
|
30
|
+
return "table-2";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function _(e) {
|
|
34
|
+
const t = e.providedTabs && e.providedTabs.length > 0 ? e.providedTabs.map((n) => ({ ...n })) : e.viewList.map((n) => ({
|
|
35
|
+
value: n.id,
|
|
36
|
+
label: n.name,
|
|
37
|
+
icon: c(n.type)
|
|
38
|
+
})), r = [], s = /* @__PURE__ */ new Set();
|
|
39
|
+
for (const n of t)
|
|
40
|
+
s.has(n.value) || (s.add(n.value), r.push(n));
|
|
41
|
+
return s.has(e.detailViewId) || r.push({ value: e.detailViewId, label: "详情", icon: c("detail") }), r;
|
|
42
|
+
}
|
|
43
|
+
function d(e, t = []) {
|
|
44
|
+
var s;
|
|
45
|
+
const r = (s = e == null ? void 0 : e.fields) == null ? void 0 : s.filter((n) => !n.hidden).map((n) => n.id);
|
|
46
|
+
return r != null && r.length ? r : b(t);
|
|
47
|
+
}
|
|
48
|
+
function F(e, t = []) {
|
|
49
|
+
const r = d(e, t);
|
|
50
|
+
return {
|
|
51
|
+
viewId: "table",
|
|
52
|
+
viewType: "table",
|
|
53
|
+
name: (e == null ? void 0 : e.name) || "表格",
|
|
54
|
+
visibleFields: r,
|
|
55
|
+
sorts: [],
|
|
56
|
+
groups: [],
|
|
57
|
+
filters: [],
|
|
58
|
+
fixedColumns: []
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function w(e, t, r = []) {
|
|
62
|
+
const s = d(t, r);
|
|
63
|
+
return {
|
|
64
|
+
viewId: e,
|
|
65
|
+
viewType: "detail",
|
|
66
|
+
name: "详情",
|
|
67
|
+
visibleFields: s,
|
|
68
|
+
sorts: [],
|
|
69
|
+
groups: [],
|
|
70
|
+
filters: [],
|
|
71
|
+
fixedColumns: []
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function m(e, t) {
|
|
75
|
+
var r;
|
|
76
|
+
return ((r = t == null ? void 0 : t.fields.find((s) => s.id === e)) == null ? void 0 : r.name) ?? e;
|
|
77
|
+
}
|
|
78
|
+
function g(e) {
|
|
79
|
+
switch (e == null ? void 0 : e.type) {
|
|
80
|
+
case "number":
|
|
81
|
+
case "currency":
|
|
82
|
+
case "progress":
|
|
83
|
+
return "number";
|
|
84
|
+
case "date":
|
|
85
|
+
case "datetime":
|
|
86
|
+
return "date";
|
|
87
|
+
case "select":
|
|
88
|
+
case "multi_select":
|
|
89
|
+
return "status";
|
|
90
|
+
default:
|
|
91
|
+
return "string";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function C(e, t, r = []) {
|
|
95
|
+
var n;
|
|
96
|
+
return ((((n = e.visibleFields) == null ? void 0 : n.length) ?? 0) > 0 ? e.visibleFields : d(t, r)).map((i) => {
|
|
97
|
+
var l;
|
|
98
|
+
const a = (l = t == null ? void 0 : t.fields) == null ? void 0 : l.find((f) => f.id === i);
|
|
99
|
+
return {
|
|
100
|
+
key: i,
|
|
101
|
+
label: m(i, t),
|
|
102
|
+
type: g(a),
|
|
103
|
+
hidden: (a == null ? void 0 : a.hidden) ?? !1,
|
|
104
|
+
width: a == null ? void 0 : a.width
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function o(e) {
|
|
109
|
+
return e == null ? "" : Array.isArray(e) ? e.map((t) => String(t)).join(", ") : String(e);
|
|
110
|
+
}
|
|
111
|
+
function u(e, t) {
|
|
112
|
+
if (e == null && t == null) return 0;
|
|
113
|
+
if (e == null) return -1;
|
|
114
|
+
if (t == null) return 1;
|
|
115
|
+
const r = Number(e), s = Number(t), n = Number.isFinite(r) && `${e}`.trim() !== "", i = Number.isFinite(s) && `${t}`.trim() !== "";
|
|
116
|
+
if (n && i) return r - s;
|
|
117
|
+
const a = Date.parse(String(e)), l = Date.parse(String(t));
|
|
118
|
+
return Number.isFinite(a) && Number.isFinite(l) ? a - l : o(e).localeCompare(o(t), "zh-Hans-CN");
|
|
119
|
+
}
|
|
120
|
+
function p(e, t) {
|
|
121
|
+
const r = o(e).trim(), s = (t.value ?? "").trim(), n = r.toLowerCase(), i = s.toLowerCase();
|
|
122
|
+
switch (t.operator) {
|
|
123
|
+
case "equals":
|
|
124
|
+
return n === i;
|
|
125
|
+
case "not_equals":
|
|
126
|
+
return n !== i;
|
|
127
|
+
case "contains":
|
|
128
|
+
return n.includes(i);
|
|
129
|
+
case "not_contains":
|
|
130
|
+
return !n.includes(i);
|
|
131
|
+
case "starts_with":
|
|
132
|
+
return n.startsWith(i);
|
|
133
|
+
case "ends_with":
|
|
134
|
+
return n.endsWith(i);
|
|
135
|
+
case "gt":
|
|
136
|
+
return u(e, s) > 0;
|
|
137
|
+
case "gte":
|
|
138
|
+
return u(e, s) >= 0;
|
|
139
|
+
case "lt":
|
|
140
|
+
return u(e, s) < 0;
|
|
141
|
+
case "lte":
|
|
142
|
+
return u(e, s) <= 0;
|
|
143
|
+
case "is_empty":
|
|
144
|
+
return r === "";
|
|
145
|
+
case "is_not_empty":
|
|
146
|
+
return r !== "";
|
|
147
|
+
default:
|
|
148
|
+
return !0;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
function v(e) {
|
|
152
|
+
return {
|
|
153
|
+
id: `f_${Math.random().toString(36).slice(2, 8)}`,
|
|
154
|
+
field: e,
|
|
155
|
+
operator: "contains",
|
|
156
|
+
value: ""
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function T(e = []) {
|
|
160
|
+
return e.map((t, r) => ({
|
|
161
|
+
id: `f_${t.fieldId}_${r}`,
|
|
162
|
+
field: t.fieldId,
|
|
163
|
+
operator: (() => {
|
|
164
|
+
switch (t.operator) {
|
|
165
|
+
case "eq":
|
|
166
|
+
return "equals";
|
|
167
|
+
case "neq":
|
|
168
|
+
return "not_equals";
|
|
169
|
+
case "gt":
|
|
170
|
+
return "gt";
|
|
171
|
+
case "lt":
|
|
172
|
+
return "lt";
|
|
173
|
+
case "is_empty":
|
|
174
|
+
return "is_empty";
|
|
175
|
+
case "is_not_empty":
|
|
176
|
+
return "is_not_empty";
|
|
177
|
+
case "contains":
|
|
178
|
+
default:
|
|
179
|
+
return "contains";
|
|
180
|
+
}
|
|
181
|
+
})(),
|
|
182
|
+
value: t.value == null ? "" : String(t.value)
|
|
183
|
+
}));
|
|
184
|
+
}
|
|
185
|
+
function V(e) {
|
|
186
|
+
return e.filter((t) => t.field).map((t) => {
|
|
187
|
+
let r;
|
|
188
|
+
switch (t.operator) {
|
|
189
|
+
case "equals":
|
|
190
|
+
r = "eq";
|
|
191
|
+
break;
|
|
192
|
+
case "not_equals":
|
|
193
|
+
r = "neq";
|
|
194
|
+
break;
|
|
195
|
+
case "gt":
|
|
196
|
+
case "gte":
|
|
197
|
+
r = "gt";
|
|
198
|
+
break;
|
|
199
|
+
case "lt":
|
|
200
|
+
case "lte":
|
|
201
|
+
r = "lt";
|
|
202
|
+
break;
|
|
203
|
+
case "is_empty":
|
|
204
|
+
r = "is_empty";
|
|
205
|
+
break;
|
|
206
|
+
case "is_not_empty":
|
|
207
|
+
r = "is_not_empty";
|
|
208
|
+
break;
|
|
209
|
+
case "contains":
|
|
210
|
+
case "not_contains":
|
|
211
|
+
case "starts_with":
|
|
212
|
+
case "ends_with":
|
|
213
|
+
default:
|
|
214
|
+
r = "contains";
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
return {
|
|
218
|
+
fieldId: t.field,
|
|
219
|
+
operator: r,
|
|
220
|
+
value: t.value == null ? "" : t.value
|
|
221
|
+
};
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
function k(e) {
|
|
225
|
+
let t = [...e.records];
|
|
226
|
+
if (e.searchKeyword.trim()) {
|
|
227
|
+
const r = e.searchKeyword.trim().toLowerCase();
|
|
228
|
+
t = t.filter(
|
|
229
|
+
(s) => e.visibleFieldIds.some(
|
|
230
|
+
(n) => o(s.fields[n]).toLowerCase().includes(r)
|
|
231
|
+
)
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
return e.filterConditions.length > 0 && (t = t.filter((r) => {
|
|
235
|
+
const s = e.filterConditions.map((n) => {
|
|
236
|
+
const i = r.fields[n.field];
|
|
237
|
+
return p(i, n);
|
|
238
|
+
});
|
|
239
|
+
return e.filterLogic === "and" ? s.every(Boolean) : s.some(Boolean);
|
|
240
|
+
})), e.sort.field && e.sort.order && t.sort((r, s) => {
|
|
241
|
+
const n = u(
|
|
242
|
+
r.fields[e.sort.field],
|
|
243
|
+
s.fields[e.sort.field]
|
|
244
|
+
);
|
|
245
|
+
return e.sort.order === "desc" ? -n : n;
|
|
246
|
+
}), t;
|
|
247
|
+
}
|
|
248
|
+
export {
|
|
249
|
+
_ as buildDatabaseViewTabs,
|
|
250
|
+
v as buildEmptyFilter,
|
|
251
|
+
F as buildFallbackView,
|
|
252
|
+
k as buildRenderedRecords,
|
|
253
|
+
C as buildTableColumns,
|
|
254
|
+
w as buildVirtualDetailView,
|
|
255
|
+
y as cloneView,
|
|
256
|
+
u as compareCellValues,
|
|
257
|
+
V as convertToolbarFiltersToViewFilters,
|
|
258
|
+
T as convertViewFiltersToToolbarFilters,
|
|
259
|
+
p as evaluateFilterCondition,
|
|
260
|
+
m as getFieldLabel,
|
|
261
|
+
c as getViewTypeIcon,
|
|
262
|
+
d as getVisibleFieldIds,
|
|
263
|
+
b as inferFieldIdsFromRecords,
|
|
264
|
+
o as normalizeCellValue,
|
|
265
|
+
g as resolveColumnType
|
|
266
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as DatabaseView } from './DatabaseView.vue';
|
|
2
|
-
export type { DatabaseViewActions, DatabaseViewSchemaEvent, DatabaseViewViewTab, DatabaseViewProps, } from '
|
|
2
|
+
export type { DatabaseViewComponentActions as DatabaseViewActions, DatabaseViewSchemaEvent, DatabaseViewViewTab, DatabaseViewProps, } from '../../contracts/database';
|
|
@@ -12,12 +12,12 @@ type __VLS_Props = {
|
|
|
12
12
|
statusColorMap?: ColorMap;
|
|
13
13
|
};
|
|
14
14
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
-
"card-click": (task: Task) => any;
|
|
16
15
|
"add-card": (columnId: string) => any;
|
|
16
|
+
"card-click": (task: Task) => any;
|
|
17
17
|
"update:column": (column: KanbanColumnData) => any;
|
|
18
18
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
-
"onCard-click"?: ((task: Task) => any) | undefined;
|
|
20
19
|
"onAdd-card"?: ((columnId: string) => any) | undefined;
|
|
20
|
+
"onCard-click"?: ((task: Task) => any) | undefined;
|
|
21
21
|
"onUpdate:column"?: ((column: KanbanColumnData) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
23
|
priorityColorMap: ColorMap;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AppLayout.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-c96601b6"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Navbar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-052fd148"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Sidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-46574244"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./StatusBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9bc27bd8"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -56,9 +56,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
56
56
|
type: "info" | "warning" | "danger" | "success";
|
|
57
57
|
width: string;
|
|
58
58
|
content: string;
|
|
59
|
-
loading: boolean;
|
|
60
59
|
confirmText: string;
|
|
61
60
|
cancelText: string;
|
|
61
|
+
loading: boolean;
|
|
62
62
|
hideCancel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ColumnHeaderMenu.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-5a86b48e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
import { FieldDef as CellFieldDef } from './FieldCell.vue';
|
|
2
|
+
import { BulkActionItem } from '../../types/data-table';
|
|
2
3
|
import { Density, Task, TableColumn, ColorMap, DataRecord, TableSchema, ViewConfig, ActiveCell, AggregationConfig, GroupConfig } from '../../types';
|
|
3
|
-
export
|
|
4
|
-
key: string;
|
|
5
|
-
label: string | ((context: BulkActionContext<unknown>) => string);
|
|
6
|
-
variant?: "default" | "danger";
|
|
7
|
-
disabled?: boolean | ((context: BulkActionContext<unknown>) => boolean);
|
|
8
|
-
visible?: boolean | ((context: BulkActionContext<unknown>) => boolean);
|
|
9
|
-
clearSelectionAfter?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface BulkActionContext<TRecord = DataRecord> {
|
|
12
|
-
selectionCount: number;
|
|
13
|
-
rowIds: string[];
|
|
14
|
-
rows: TRecord[];
|
|
15
|
-
}
|
|
4
|
+
export type { BulkActionItem, BulkActionContext } from '../../types/data-table';
|
|
16
5
|
declare const _default: <T extends {
|
|
17
6
|
id: string;
|
|
18
7
|
} & Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
@@ -29,6 +18,7 @@ declare const _default: <T extends {
|
|
|
29
18
|
fieldId: string;
|
|
30
19
|
value: unknown;
|
|
31
20
|
}) => any) | undefined;
|
|
21
|
+
readonly "onRow-delete"?: ((rowId: string) => any) | undefined;
|
|
32
22
|
readonly "onRow-click-record"?: ((record: DataRecord) => any) | undefined;
|
|
33
23
|
readonly "onSelection-change"?: ((ids: (string | number)[]) => any) | undefined;
|
|
34
24
|
readonly "onColumn-resize"?: ((payload: {
|
|
@@ -55,7 +45,6 @@ declare const _default: <T extends {
|
|
|
55
45
|
readonly "onDrafts-commit-all"?: ((payload: {
|
|
56
46
|
records: DataRecord[];
|
|
57
47
|
}) => any) | undefined;
|
|
58
|
-
readonly "onRow-delete"?: ((rowId: string) => any) | undefined;
|
|
59
48
|
readonly "onSchema-add-field"?: ((fieldType: string) => any) | undefined;
|
|
60
49
|
readonly "onSchema-rename-field"?: ((payload: {
|
|
61
50
|
fieldId: string;
|
|
@@ -73,7 +62,7 @@ declare const _default: <T extends {
|
|
|
73
62
|
rowIds: string[];
|
|
74
63
|
rows: (T | DataRecord)[];
|
|
75
64
|
}) => any) | undefined;
|
|
76
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onPaste" | "onRow-click" | "onAdd-row" | "onCell-edit" | "onRow-click-record" | "onSelection-change" | "onColumn-resize" | "onActive-cell-change" | "onRow-reorder" | "onRow-group-change" | "onDraft-commit" | "onDraft-discard" | "onDrafts-commit-all" | "
|
|
65
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onPaste" | "onRow-click" | "onAdd-row" | "onCell-edit" | "onRow-delete" | "onRow-click-record" | "onSelection-change" | "onColumn-resize" | "onActive-cell-change" | "onRow-reorder" | "onRow-group-change" | "onDraft-commit" | "onDraft-discard" | "onDrafts-commit-all" | "onSchema-add-field" | "onSchema-rename-field" | "onSchema-change-field-type" | "onSchema-hide-field" | "onSchema-delete-field" | "onSchema-duplicate-field" | "onBulk-action"> & {
|
|
77
66
|
tasks?: Task[];
|
|
78
67
|
records?: DataRecord[];
|
|
79
68
|
schema?: TableSchema;
|
|
@@ -171,7 +160,7 @@ declare const _default: <T extends {
|
|
|
171
160
|
rowId: string;
|
|
172
161
|
fieldId: string;
|
|
173
162
|
value: unknown;
|
|
174
|
-
}) => void) & ((evt: "row-click-record", record: DataRecord) => void) & ((evt: "selection-change", ids: (string | number)[]) => void) & ((evt: "column-resize", payload: {
|
|
163
|
+
}) => void) & ((evt: "row-delete", rowId: string) => void) & ((evt: "row-click-record", record: DataRecord) => void) & ((evt: "selection-change", ids: (string | number)[]) => void) & ((evt: "column-resize", payload: {
|
|
175
164
|
colKey: string;
|
|
176
165
|
width: number;
|
|
177
166
|
}) => void) & ((evt: "active-cell-change", cell: ActiveCell | null) => void) & ((evt: "row-reorder", payload: {
|
|
@@ -188,7 +177,7 @@ declare const _default: <T extends {
|
|
|
188
177
|
draftId: string;
|
|
189
178
|
}) => void) & ((evt: "drafts-commit-all", payload: {
|
|
190
179
|
records: DataRecord[];
|
|
191
|
-
}) => void) & ((evt: "
|
|
180
|
+
}) => void) & ((evt: "schema-add-field", fieldType: string) => void) & ((evt: "schema-rename-field", payload: {
|
|
192
181
|
fieldId: string;
|
|
193
182
|
newName: string;
|
|
194
183
|
}) => void) & ((evt: "schema-change-field-type", payload: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2d96286c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|