@oneflowui/ui 0.5.5 → 0.5.6
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/table/DataTable.vue.d.ts +6 -0
- package/dist/components/table/DataTable.vue.js +4 -4
- package/dist/components/table/DataTable.vue2.js +193 -185
- package/dist/components/table/MobileListView.vue.d.ts +23 -1
- package/dist/components/table/MobileListView.vue.js +1 -1
- package/dist/components/table/MobileListView.vue2.js +48 -39
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { defineComponent as Fl, defineAsyncComponent as be, ref as R, toRef as h, computed as b, watch as ke, unref as t, openBlock as r, createElementBlock as s, Fragment as c, createVNode as E, createBlock as y, createCommentVNode as $, createElementVNode as g, normalizeStyle as k, normalizeClass as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as Fl, defineAsyncComponent as be, ref as R, toRef as h, computed as b, watch as ke, unref as t, openBlock as r, createElementBlock as s, Fragment as c, createVNode as E, createSlots as Hl, withCtx as he, renderSlot as T, normalizeProps as Bl, guardReactiveProps as Il, createBlock as y, createCommentVNode as $, createElementVNode as g, normalizeStyle as k, normalizeClass as z, renderList as m, mergeProps as K, withModifiers as P, toDisplayString as A, Teleport as Kl } from "vue";
|
|
2
|
+
import me from "./TableHeaderRow.vue.js";
|
|
3
3
|
import Ve from "./TableDataRow.vue.js";
|
|
4
4
|
import Q from "./TableGroupRow.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useInlineEdit as
|
|
9
|
-
import { useVirtualList as
|
|
10
|
-
import { useTable as
|
|
11
|
-
import { useTableGroup as
|
|
12
|
-
import { useTableData as
|
|
13
|
-
import { useTableColumns as
|
|
14
|
-
import { useColumnResize as
|
|
15
|
-
import { useKeyboardNavigation as
|
|
16
|
-
import { useBreakpoint as
|
|
17
|
-
import { useFixedColumns as
|
|
18
|
-
import { useRowDrag as
|
|
19
|
-
import { useDraftRows as
|
|
20
|
-
const
|
|
5
|
+
import _l from "./NewRowBtn.vue.js";
|
|
6
|
+
import El from "./MobileListView.vue.js";
|
|
7
|
+
import _ from "./FieldCell.vue.js";
|
|
8
|
+
import { useInlineEdit as Pl } from "../../composables/useInlineEdit.js";
|
|
9
|
+
import { useVirtualList as Ll } from "../../composables/useVirtualList.js";
|
|
10
|
+
import { useTable as Gl } from "../../composables/useTable.js";
|
|
11
|
+
import { useTableGroup as Vl } from "../../composables/useTableGroup.js";
|
|
12
|
+
import { useTableData as Ol } from "../../composables/useTableData.js";
|
|
13
|
+
import { useTableColumns as Nl } from "../../composables/useTableColumns.js";
|
|
14
|
+
import { useColumnResize as Wl } from "../../composables/useColumnResize.js";
|
|
15
|
+
import { useKeyboardNavigation as Yl } from "../../composables/useKeyboardNavigation.js";
|
|
16
|
+
import { useBreakpoint as jl } from "../../composables/useBreakpoint.js";
|
|
17
|
+
import { useFixedColumns as Xl } from "../../composables/useFixedColumns.js";
|
|
18
|
+
import { useRowDrag as Ul } from "../../composables/useRowDrag.js";
|
|
19
|
+
import { useDraftRows as ql } from "../../composables/useDraftRows.js";
|
|
20
|
+
const Jl = ["tabindex"], Ql = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "of-data-table-body",
|
|
23
23
|
style: { position: "relative" }
|
|
24
|
-
},
|
|
24
|
+
}, Zl = { class: "of-data-table-fixed-body" }, eo = ["onMouseenter", "onClick"], lo = ["checked", "onChange"], oo = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "of-td-text"
|
|
27
|
-
},
|
|
27
|
+
}, to = ["onMouseenter", "onClick"], no = ["checked", "onChange"], ao = {
|
|
28
28
|
key: 1,
|
|
29
29
|
class: "of-td-text"
|
|
30
|
-
},
|
|
30
|
+
}, ro = { class: "of-data-table-scroll-body" }, so = {
|
|
31
31
|
key: 0,
|
|
32
32
|
style: { height: "36px" }
|
|
33
|
-
},
|
|
33
|
+
}, io = ["onMouseenter", "onClick"], uo = {
|
|
34
34
|
key: 1,
|
|
35
35
|
class: "of-td-text"
|
|
36
|
-
},
|
|
36
|
+
}, fo = {
|
|
37
37
|
key: 0,
|
|
38
38
|
style: { height: "36px" }
|
|
39
|
-
},
|
|
39
|
+
}, co = ["onMouseenter", "onClick"], vo = {
|
|
40
40
|
key: 1,
|
|
41
41
|
class: "of-td-text"
|
|
42
|
-
},
|
|
42
|
+
}, yo = {
|
|
43
43
|
key: 1,
|
|
44
44
|
class: "of-td-text"
|
|
45
|
-
},
|
|
45
|
+
}, go = {
|
|
46
46
|
key: 1,
|
|
47
47
|
class: "of-td-text"
|
|
48
|
-
},
|
|
48
|
+
}, bo = {
|
|
49
49
|
key: 3,
|
|
50
50
|
class: "of-data-table-draft-toolbar"
|
|
51
|
-
},
|
|
51
|
+
}, ko = { class: "of-data-table-draft-count" }, ho = { class: "of-add-field-popup" }, mo = 36, po = 44, jo = /* @__PURE__ */ Fl({
|
|
52
52
|
__name: "DataTable",
|
|
53
53
|
props: {
|
|
54
54
|
tasks: {},
|
|
@@ -78,14 +78,14 @@ const Xl = ["tabindex"], Ul = {
|
|
|
78
78
|
},
|
|
79
79
|
emits: ["row-click", "row-click-record", "add-row", "selection-change", "cell-edit", "column-resize", "active-cell-change", "row-reorder", "row-group-change", "draft-commit", "draft-discard", "drafts-commit-all", "paste", "schema-add-field", "schema-rename-field", "schema-change-field-type", "schema-hide-field", "schema-delete-field", "schema-duplicate-field"],
|
|
80
80
|
setup(u, { emit: Oe }) {
|
|
81
|
-
const Ne = be(() => import("./ColumnHeaderMenu.vue.js")), We = be(() => import("./FieldTypePicker.vue.js")), Ye = be(() => import("./DetailSheet.vue.js")), d = u, f = Oe, { isMobile:
|
|
81
|
+
const Ne = be(() => import("./ColumnHeaderMenu.vue.js")), We = be(() => import("./FieldTypePicker.vue.js")), Ye = be(() => import("./DetailSheet.vue.js")), d = u, f = Oe, { isMobile: pe } = jl(), L = R(!1), G = R(null), Z = Pl(), { commit: je, editingCell: Xe } = Z, { rows: we } = Ol({
|
|
82
82
|
tasks: h(d, "tasks"),
|
|
83
83
|
records: h(d, "records")
|
|
84
|
-
}), { columns: ee } =
|
|
84
|
+
}), { columns: ee } = Nl({
|
|
85
85
|
columns: h(d, "columns"),
|
|
86
86
|
schema: h(d, "schema"),
|
|
87
87
|
view: h(d, "view")
|
|
88
|
-
}), { startResize: Ue, columnWidthOverrides: qe, showResizeIndicator: Je, resizeIndicatorX: Qe, autoFitColumn: Ze } =
|
|
88
|
+
}), { startResize: Ue, columnWidthOverrides: qe, showResizeIndicator: Je, resizeIndicatorX: Qe, autoFitColumn: Ze } = Wl({
|
|
89
89
|
columns: ee,
|
|
90
90
|
onResize: (l, o) => f("column-resize", { colKey: l, width: o })
|
|
91
91
|
}), C = b(() => {
|
|
@@ -96,52 +96,52 @@ const Xl = ["tabindex"], Ul = {
|
|
|
96
96
|
});
|
|
97
97
|
}), {
|
|
98
98
|
data: V,
|
|
99
|
-
sort:
|
|
99
|
+
sort: F,
|
|
100
100
|
toggleSort: O,
|
|
101
101
|
selectedRows: p,
|
|
102
102
|
toggleSelectAll: el,
|
|
103
103
|
toggleRowSelection: ll,
|
|
104
104
|
isAllSelected: le,
|
|
105
105
|
setData: ol
|
|
106
|
-
} =
|
|
107
|
-
data:
|
|
106
|
+
} = Gl({
|
|
107
|
+
data: we.value,
|
|
108
108
|
pageSize: 999999
|
|
109
109
|
});
|
|
110
|
-
ke(
|
|
111
|
-
const { groupedItems: D, collapsedGroups: tl, toggleGroup: N, isGroupHeader: x } =
|
|
110
|
+
ke(we, (l) => ol(l), { deep: !1 });
|
|
111
|
+
const { groupedItems: D, collapsedGroups: tl, toggleGroup: N, isGroupHeader: x } = Vl({
|
|
112
112
|
data: V,
|
|
113
113
|
groupBy: h(d, "groupBy"),
|
|
114
114
|
groups: h(d, "groups"),
|
|
115
115
|
aggregations: h(d, "aggregations")
|
|
116
|
-
}), W = R(null), oe = R(null),
|
|
116
|
+
}), W = R(null), oe = R(null), Ce = R(null), nl = b(() => {
|
|
117
117
|
var l;
|
|
118
118
|
return (((l = d.fixedColumns) == null ? void 0 : l.length) ?? 0) > 0;
|
|
119
|
-
}),
|
|
119
|
+
}), De = R(0), al = b(() => De.value > 0), {
|
|
120
120
|
fixedColumns: te,
|
|
121
121
|
scrollableColumns: ne,
|
|
122
|
-
fixedWidth:
|
|
122
|
+
fixedWidth: xe,
|
|
123
123
|
handleScroll: rl,
|
|
124
|
-
handleFixedScroll:
|
|
125
|
-
scrollLeft:
|
|
124
|
+
handleFixedScroll: Se,
|
|
125
|
+
scrollLeft: wo,
|
|
126
126
|
syncHover: S,
|
|
127
127
|
isRowHovered: Y
|
|
128
|
-
} =
|
|
128
|
+
} = Xl({
|
|
129
129
|
columns: C,
|
|
130
130
|
fixedColumnKeys: b(() => d.fixedColumns ?? []),
|
|
131
131
|
scrollContainerRef: W,
|
|
132
|
-
fixedContainerRef:
|
|
133
|
-
}), ae = b(() => d.virtual !== void 0 ? d.virtual : D.value.length >= d.virtualThreshold), { visibleItems: re, totalHeight: se, offsetY: de, scrollToIndex: sl, observeRow: j } =
|
|
132
|
+
fixedContainerRef: Ce
|
|
133
|
+
}), ae = b(() => d.virtual !== void 0 ? d.virtual : D.value.length >= d.virtualThreshold), { visibleItems: re, totalHeight: se, offsetY: de, scrollToIndex: sl, observeRow: j } = Ll({
|
|
134
134
|
items: D,
|
|
135
135
|
itemHeight: (l) => {
|
|
136
136
|
const o = D.value[l];
|
|
137
|
-
return x(o) ?
|
|
137
|
+
return x(o) ? mo : po;
|
|
138
138
|
},
|
|
139
139
|
overscan: 5,
|
|
140
140
|
containerRef: W,
|
|
141
141
|
measureRow: !0
|
|
142
|
-
}),
|
|
142
|
+
}), Re = b(() => D.value.filter((l) => !x(l))), { activeCell: $e, selectedRange: dl, setActiveCell: Me, handleKeyDown: il } = Yl({
|
|
143
143
|
columns: C,
|
|
144
|
-
rows:
|
|
144
|
+
rows: Re,
|
|
145
145
|
containerRef: oe,
|
|
146
146
|
editingCell: Xe,
|
|
147
147
|
enabled: b(() => d.enableKeyboard),
|
|
@@ -149,7 +149,7 @@ const Xl = ["tabindex"], Ul = {
|
|
|
149
149
|
onCancelEdit: () => Z.cancel(),
|
|
150
150
|
onScrollToRow: (l) => sl(l),
|
|
151
151
|
getCellValue: (l, o) => {
|
|
152
|
-
const e =
|
|
152
|
+
const e = Re.value.find((a) => a.id === l);
|
|
153
153
|
if (!e) return "";
|
|
154
154
|
const n = e[o];
|
|
155
155
|
return n != null ? String(n) : "";
|
|
@@ -158,47 +158,47 @@ const Xl = ["tabindex"], Ul = {
|
|
|
158
158
|
f("paste", { startRowId: l, startColKey: o, data: e });
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
|
-
ke(
|
|
161
|
+
ke($e, (l) => f("active-cell-change", l ?? null));
|
|
162
162
|
const {
|
|
163
163
|
isDragging: ul,
|
|
164
164
|
draggedRowId: fl,
|
|
165
165
|
dropTargetId: ie,
|
|
166
|
-
dropPosition:
|
|
166
|
+
dropPosition: Te,
|
|
167
167
|
handleDragStart: cl,
|
|
168
168
|
handleDragOver: vl,
|
|
169
169
|
handleDrop: yl,
|
|
170
|
-
handleDragEnd:
|
|
171
|
-
} =
|
|
170
|
+
handleDragEnd: ze
|
|
171
|
+
} = Ul({
|
|
172
172
|
processedItems: D,
|
|
173
173
|
enableCrossGroupDrag: b(() => d.enableCrossGroupDrag),
|
|
174
174
|
groupFieldId: h(d, "groupBy")
|
|
175
175
|
});
|
|
176
|
-
function
|
|
176
|
+
function Ae(l, o) {
|
|
177
177
|
d.enableRowDrag && cl(l, o);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Fe(l, o) {
|
|
180
180
|
d.enableRowDrag && vl(l, o);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function He(l, o) {
|
|
183
183
|
d.enableRowDrag && yl(l, o, {
|
|
184
184
|
onReorder: (e) => f("row-reorder", e),
|
|
185
185
|
onGroupChange: (e) => f("row-group-change", e)
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
const {
|
|
189
|
-
drafts:
|
|
189
|
+
drafts: Be,
|
|
190
190
|
addDraft: gl,
|
|
191
|
-
updateDraftField:
|
|
192
|
-
removeDraft:
|
|
193
|
-
commitDraft:
|
|
191
|
+
updateDraftField: Co,
|
|
192
|
+
removeDraft: Do,
|
|
193
|
+
commitDraft: xo,
|
|
194
194
|
commitAll: bl,
|
|
195
195
|
discardAll: kl,
|
|
196
|
-
isDraft:
|
|
197
|
-
getDraftErrors:
|
|
198
|
-
} =
|
|
196
|
+
isDraft: So,
|
|
197
|
+
getDraftErrors: Ro
|
|
198
|
+
} = ql({
|
|
199
199
|
schema: h(d, "schema"),
|
|
200
200
|
groupFieldId: h(d, "groupBy")
|
|
201
|
-
}), hl = b(() =>
|
|
201
|
+
}), hl = b(() => Be.value.size > 0);
|
|
202
202
|
function ml() {
|
|
203
203
|
d.schema ? gl() : f("add-row");
|
|
204
204
|
}
|
|
@@ -255,7 +255,7 @@ const Xl = ["tabindex"], Ul = {
|
|
|
255
255
|
function $l(l) {
|
|
256
256
|
f("schema-add-field", l), X.value = !1;
|
|
257
257
|
}
|
|
258
|
-
const M = b(() => d.readonly ? !1 : d.selectable),
|
|
258
|
+
const M = b(() => d.readonly ? !1 : d.selectable), Ie = b(() => d.readonly ? !1 : d.addable), Ml = b(() => Array.from(p.value)), Ke = b(() => p.value.size > 0 && !le.value);
|
|
259
259
|
function _e() {
|
|
260
260
|
el(V.value);
|
|
261
261
|
}
|
|
@@ -268,7 +268,7 @@ const Xl = ["tabindex"], Ul = {
|
|
|
268
268
|
const o = l[d.rowKey];
|
|
269
269
|
return o != null ? String(o) : "";
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function H(l) {
|
|
272
272
|
var o;
|
|
273
273
|
return ((o = d.fieldDefs) == null ? void 0 : o.find((e) => e.id === l)) ?? {
|
|
274
274
|
id: l,
|
|
@@ -276,12 +276,12 @@ const Xl = ["tabindex"], Ul = {
|
|
|
276
276
|
label: l
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function B(l, o, e) {
|
|
280
280
|
je(l, o, e), f("cell-edit", { rowId: l, fieldId: o, value: e });
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
if (
|
|
284
|
-
|
|
282
|
+
function I(l) {
|
|
283
|
+
if (pe.value) {
|
|
284
|
+
G.value = l, L.value = !0;
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
287
287
|
const o = l;
|
|
@@ -300,7 +300,7 @@ const Xl = ["tabindex"], Ul = {
|
|
|
300
300
|
function Tl(l) {
|
|
301
301
|
rl(l);
|
|
302
302
|
const o = l.target;
|
|
303
|
-
|
|
303
|
+
De.value = o.scrollLeft;
|
|
304
304
|
}
|
|
305
305
|
function q(l) {
|
|
306
306
|
return {
|
|
@@ -318,7 +318,7 @@ const Xl = ["tabindex"], Ul = {
|
|
|
318
318
|
function J(l) {
|
|
319
319
|
return l.__groupPath ? l.__groupPath.join("/") : l.__groupKey;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Ee(l) {
|
|
322
322
|
return {
|
|
323
323
|
row: l,
|
|
324
324
|
rowKey: d.rowKey,
|
|
@@ -329,8 +329,8 @@ const Xl = ["tabindex"], Ul = {
|
|
|
329
329
|
statusColorMap: d.statusColorMap
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
function
|
|
333
|
-
const e =
|
|
332
|
+
function Pe(l, o) {
|
|
333
|
+
const e = $e.value;
|
|
334
334
|
return e !== null && e.rowId === l && e.colKey === o;
|
|
335
335
|
}
|
|
336
336
|
function Le(l, o) {
|
|
@@ -341,35 +341,43 @@ const Xl = ["tabindex"], Ul = {
|
|
|
341
341
|
return {
|
|
342
342
|
"of-row-dragging": ul.value && fl.value === o,
|
|
343
343
|
"of-row-drop-target": ie.value === o,
|
|
344
|
-
"of-row-drop-before": ie.value === o &&
|
|
345
|
-
"of-row-drop-after": ie.value === o &&
|
|
344
|
+
"of-row-drop-before": ie.value === o && Te.value === "before",
|
|
345
|
+
"of-row-drop-after": ie.value === o && Te.value === "after"
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
348
|
function zl(l) {
|
|
349
|
-
|
|
349
|
+
G.value = l, L.value = !0;
|
|
350
350
|
}
|
|
351
351
|
function Al(l) {
|
|
352
352
|
for (const [o, e] of Object.entries(l.fields))
|
|
353
353
|
f("cell-edit", { rowId: l.rowId, fieldId: o, value: e });
|
|
354
354
|
}
|
|
355
|
-
return (l, o) => t(
|
|
356
|
-
E(
|
|
355
|
+
return (l, o) => t(pe) ? (r(), s(c, { key: 0 }, [
|
|
356
|
+
E(El, {
|
|
357
357
|
rows: t(V),
|
|
358
358
|
columns: C.value,
|
|
359
359
|
selectable: M.value,
|
|
360
|
-
addable:
|
|
360
|
+
addable: Ie.value,
|
|
361
361
|
"status-color-map": u.statusColorMap,
|
|
362
362
|
readonly: u.readonly,
|
|
363
363
|
onRowClick: zl,
|
|
364
364
|
onAddRow: o[0] || (o[0] = (e) => f("add-row"))
|
|
365
|
-
},
|
|
366
|
-
|
|
365
|
+
}, Hl({ _: 2 }, [
|
|
366
|
+
l.$slots.cell ? {
|
|
367
|
+
name: "cell",
|
|
368
|
+
fn: he((e) => [
|
|
369
|
+
T(l.$slots, "cell", Bl(Il(e)), void 0, !0)
|
|
370
|
+
]),
|
|
371
|
+
key: "0"
|
|
372
|
+
} : void 0
|
|
373
|
+
]), 1032, ["rows", "columns", "selectable", "addable", "status-color-map", "readonly"]),
|
|
374
|
+
G.value ? (r(), y(t(Ye), {
|
|
367
375
|
key: 0,
|
|
368
|
-
row:
|
|
376
|
+
row: G.value,
|
|
369
377
|
columns: C.value,
|
|
370
378
|
"field-defs": u.fieldDefs,
|
|
371
|
-
visible:
|
|
372
|
-
onClose: o[1] || (o[1] = (e) =>
|
|
379
|
+
visible: L.value,
|
|
380
|
+
onClose: o[1] || (o[1] = (e) => L.value = !1),
|
|
373
381
|
onSave: Al,
|
|
374
382
|
onDelete: o[2] || (o[2] = (e) => f("row-click", { id: e, __action: "delete" })),
|
|
375
383
|
onCellEdit: o[3] || (o[3] = (e) => f("cell-edit", e))
|
|
@@ -383,22 +391,22 @@ const Xl = ["tabindex"], Ul = {
|
|
|
383
391
|
tabindex: u.enableKeyboard ? 0 : void 0,
|
|
384
392
|
onKeydown: o[14] || (o[14] = (e) => u.enableKeyboard ? t(il)(e) : void 0)
|
|
385
393
|
}, [
|
|
386
|
-
nl.value ? (r(), s("div",
|
|
394
|
+
nl.value ? (r(), s("div", Ql, [
|
|
387
395
|
g("div", {
|
|
388
396
|
ref_key: "fixedContainerRef",
|
|
389
|
-
ref:
|
|
390
|
-
class:
|
|
391
|
-
style: k({ width: t(
|
|
397
|
+
ref: Ce,
|
|
398
|
+
class: z(["of-data-table-fixed-region", { "of-fixed-shadow": al.value }]),
|
|
399
|
+
style: k({ width: t(xe) + "px" }),
|
|
392
400
|
onScroll: o[8] || (o[8] = //@ts-ignore
|
|
393
|
-
(...e) => t(
|
|
401
|
+
(...e) => t(Se) && t(Se)(...e))
|
|
394
402
|
}, [
|
|
395
|
-
E(
|
|
403
|
+
E(me, {
|
|
396
404
|
columns: t(te),
|
|
397
405
|
selectable: M.value,
|
|
398
|
-
"sort-key": t(
|
|
399
|
-
"sort-order": t(
|
|
406
|
+
"sort-key": t(F).field ?? "",
|
|
407
|
+
"sort-order": t(F).order ?? "asc",
|
|
400
408
|
"all-selected": t(le),
|
|
401
|
-
indeterminate:
|
|
409
|
+
indeterminate: Ke.value,
|
|
402
410
|
"enable-resize": u.enableResize,
|
|
403
411
|
"enable-field-menu": u.enableFieldManagement,
|
|
404
412
|
"enable-add-field": u.enableFieldManagement,
|
|
@@ -410,7 +418,7 @@ const Xl = ["tabindex"], Ul = {
|
|
|
410
418
|
onHeaderDblclick: fe,
|
|
411
419
|
onAddField: ce
|
|
412
420
|
}, null, 8, ["columns", "selectable", "sort-key", "sort-order", "all-selected", "indeterminate", "enable-resize", "enable-field-menu", "enable-add-field", "onSort"]),
|
|
413
|
-
g("div",
|
|
421
|
+
g("div", Zl, [
|
|
414
422
|
ae.value ? (r(), s("div", {
|
|
415
423
|
key: 0,
|
|
416
424
|
style: k({ height: t(se) + "px", position: "relative" })
|
|
@@ -421,7 +429,7 @@ const Xl = ["tabindex"], Ul = {
|
|
|
421
429
|
(r(!0), s(c, null, m(t(re), ({ data: e, index: n }) => (r(), s(c, {
|
|
422
430
|
key: e.id
|
|
423
431
|
}, [
|
|
424
|
-
t(x)(e) ? (r(), y(Q,
|
|
432
|
+
t(x)(e) ? (r(), y(Q, K({
|
|
425
433
|
key: 0,
|
|
426
434
|
ref_for: !0,
|
|
427
435
|
ref: (a) => t(j)((a == null ? void 0 : a.$el) ?? a, n)
|
|
@@ -431,20 +439,20 @@ const Xl = ["tabindex"], Ul = {
|
|
|
431
439
|
key: 1,
|
|
432
440
|
ref_for: !0,
|
|
433
441
|
ref: (a) => t(j)(a, n),
|
|
434
|
-
class:
|
|
442
|
+
class: z(["of-table-row", {
|
|
435
443
|
"of-table-row--selected": t(p).has(i(e)),
|
|
436
444
|
"of-table-row--hover": t(Y)(i(e))
|
|
437
445
|
}]),
|
|
438
446
|
role: "row",
|
|
439
447
|
onMouseenter: (a) => t(S)(i(e)),
|
|
440
448
|
onMouseleave: o[5] || (o[5] = (a) => t(S)(null)),
|
|
441
|
-
onClick: (a) =>
|
|
449
|
+
onClick: (a) => I(e)
|
|
442
450
|
}, [
|
|
443
451
|
M.value ? (r(), s("div", {
|
|
444
452
|
key: 0,
|
|
445
453
|
class: "of-td of-td-checkbox",
|
|
446
454
|
role: "gridcell",
|
|
447
|
-
onClick: o[4] || (o[4] =
|
|
455
|
+
onClick: o[4] || (o[4] = P(() => {
|
|
448
456
|
}, ["stop"]))
|
|
449
457
|
}, [
|
|
450
458
|
g("input", {
|
|
@@ -452,7 +460,7 @@ const Xl = ["tabindex"], Ul = {
|
|
|
452
460
|
class: "of-checkbox",
|
|
453
461
|
checked: t(p).has(i(e)),
|
|
454
462
|
onChange: (a) => U(i(e))
|
|
455
|
-
}, null, 40,
|
|
463
|
+
}, null, 40, lo)
|
|
456
464
|
])) : $("", !0),
|
|
457
465
|
(r(!0), s(c, null, m(t(te), (a) => (r(), s("div", {
|
|
458
466
|
key: a.key,
|
|
@@ -463,49 +471,49 @@ const Xl = ["tabindex"], Ul = {
|
|
|
463
471
|
flexShrink: "0"
|
|
464
472
|
})
|
|
465
473
|
}, [
|
|
466
|
-
|
|
474
|
+
T(l.$slots, "cell", {
|
|
467
475
|
row: e,
|
|
468
476
|
col: a
|
|
469
477
|
}, () => {
|
|
470
478
|
var v;
|
|
471
479
|
return [
|
|
472
|
-
(v = u.fieldDefs) != null && v.length ? (r(), y(
|
|
480
|
+
(v = u.fieldDefs) != null && v.length ? (r(), y(_, {
|
|
473
481
|
key: 0,
|
|
474
482
|
"row-id": i(e),
|
|
475
|
-
field:
|
|
483
|
+
field: H(a.key),
|
|
476
484
|
value: e[a.key],
|
|
477
|
-
onCommit:
|
|
478
|
-
}, null, 8, ["row-id", "field", "value"])) : (r(), s("span",
|
|
485
|
+
onCommit: B
|
|
486
|
+
}, null, 8, ["row-id", "field", "value"])) : (r(), s("span", oo, A(e[a.key] ?? "-"), 1))
|
|
479
487
|
];
|
|
480
488
|
}, !0)
|
|
481
489
|
], 4))), 128))
|
|
482
|
-
], 42,
|
|
490
|
+
], 42, eo))
|
|
483
491
|
], 64))), 128))
|
|
484
492
|
], 4)
|
|
485
493
|
], 4)) : (r(!0), s(c, { key: 1 }, m(t(D), (e) => (r(), s(c, {
|
|
486
494
|
key: e.id
|
|
487
495
|
}, [
|
|
488
|
-
t(x)(e) ? (r(), y(Q,
|
|
496
|
+
t(x)(e) ? (r(), y(Q, K({
|
|
489
497
|
key: 0,
|
|
490
498
|
ref_for: !0
|
|
491
499
|
}, q(e), {
|
|
492
500
|
onToggle: (n) => t(N)(J(e))
|
|
493
501
|
}), null, 16, ["onToggle"])) : (r(), s("div", {
|
|
494
502
|
key: 1,
|
|
495
|
-
class:
|
|
503
|
+
class: z(["of-table-row", {
|
|
496
504
|
"of-table-row--selected": t(p).has(i(e)),
|
|
497
505
|
"of-table-row--hover": t(Y)(i(e))
|
|
498
506
|
}]),
|
|
499
507
|
role: "row",
|
|
500
508
|
onMouseenter: (n) => t(S)(i(e)),
|
|
501
509
|
onMouseleave: o[7] || (o[7] = (n) => t(S)(null)),
|
|
502
|
-
onClick: (n) =>
|
|
510
|
+
onClick: (n) => I(e)
|
|
503
511
|
}, [
|
|
504
512
|
M.value ? (r(), s("div", {
|
|
505
513
|
key: 0,
|
|
506
514
|
class: "of-td of-td-checkbox",
|
|
507
515
|
role: "gridcell",
|
|
508
|
-
onClick: o[6] || (o[6] =
|
|
516
|
+
onClick: o[6] || (o[6] = P(() => {
|
|
509
517
|
}, ["stop"]))
|
|
510
518
|
}, [
|
|
511
519
|
g("input", {
|
|
@@ -513,7 +521,7 @@ const Xl = ["tabindex"], Ul = {
|
|
|
513
521
|
class: "of-checkbox",
|
|
514
522
|
checked: t(p).has(i(e)),
|
|
515
523
|
onChange: (n) => U(i(e))
|
|
516
|
-
}, null, 40,
|
|
524
|
+
}, null, 40, no)
|
|
517
525
|
])) : $("", !0),
|
|
518
526
|
(r(!0), s(c, null, m(t(te), (n) => (r(), s("div", {
|
|
519
527
|
key: n.key,
|
|
@@ -524,23 +532,23 @@ const Xl = ["tabindex"], Ul = {
|
|
|
524
532
|
flexShrink: "0"
|
|
525
533
|
})
|
|
526
534
|
}, [
|
|
527
|
-
|
|
535
|
+
T(l.$slots, "cell", {
|
|
528
536
|
row: e,
|
|
529
537
|
col: n
|
|
530
538
|
}, () => {
|
|
531
539
|
var a;
|
|
532
540
|
return [
|
|
533
|
-
(a = u.fieldDefs) != null && a.length ? (r(), y(
|
|
541
|
+
(a = u.fieldDefs) != null && a.length ? (r(), y(_, {
|
|
534
542
|
key: 0,
|
|
535
543
|
"row-id": i(e),
|
|
536
|
-
field:
|
|
544
|
+
field: H(n.key),
|
|
537
545
|
value: e[n.key],
|
|
538
|
-
onCommit:
|
|
539
|
-
}, null, 8, ["row-id", "field", "value"])) : (r(), s("span",
|
|
546
|
+
onCommit: B
|
|
547
|
+
}, null, 8, ["row-id", "field", "value"])) : (r(), s("span", ao, A(e[n.key] ?? "-"), 1))
|
|
540
548
|
];
|
|
541
549
|
}, !0)
|
|
542
550
|
], 4))), 128))
|
|
543
|
-
], 42,
|
|
551
|
+
], 42, to))
|
|
544
552
|
], 64))), 128))
|
|
545
553
|
])
|
|
546
554
|
], 38),
|
|
@@ -548,14 +556,14 @@ const Xl = ["tabindex"], Ul = {
|
|
|
548
556
|
ref_key: "scrollContainerRef",
|
|
549
557
|
ref: W,
|
|
550
558
|
class: "of-data-table-scroll-region",
|
|
551
|
-
style: k({ marginLeft: t(
|
|
559
|
+
style: k({ marginLeft: t(xe) + "px" }),
|
|
552
560
|
onScroll: Tl
|
|
553
561
|
}, [
|
|
554
|
-
E(
|
|
562
|
+
E(me, {
|
|
555
563
|
columns: t(ne),
|
|
556
564
|
selectable: !1,
|
|
557
|
-
"sort-key": t(
|
|
558
|
-
"sort-order": t(
|
|
565
|
+
"sort-key": t(F).field ?? "",
|
|
566
|
+
"sort-order": t(F).order ?? "asc",
|
|
559
567
|
"enable-resize": u.enableResize,
|
|
560
568
|
"enable-field-menu": u.enableFieldManagement,
|
|
561
569
|
"enable-add-field": u.enableFieldManagement,
|
|
@@ -566,7 +574,7 @@ const Xl = ["tabindex"], Ul = {
|
|
|
566
574
|
onHeaderDblclick: fe,
|
|
567
575
|
onAddField: ce
|
|
568
576
|
}, null, 8, ["columns", "sort-key", "sort-order", "enable-resize", "enable-field-menu", "enable-add-field", "onSort"]),
|
|
569
|
-
g("div",
|
|
577
|
+
g("div", ro, [
|
|
570
578
|
ae.value ? (r(), s("div", {
|
|
571
579
|
key: 0,
|
|
572
580
|
style: k({ height: t(se) + "px", position: "relative" })
|
|
@@ -577,16 +585,16 @@ const Xl = ["tabindex"], Ul = {
|
|
|
577
585
|
(r(!0), s(c, null, m(t(re), ({ data: e }) => (r(), s(c, {
|
|
578
586
|
key: e.id
|
|
579
587
|
}, [
|
|
580
|
-
t(x)(e) ? (r(), s("div",
|
|
588
|
+
t(x)(e) ? (r(), s("div", so)) : (r(), s("div", {
|
|
581
589
|
key: 1,
|
|
582
|
-
class:
|
|
590
|
+
class: z(["of-table-row", {
|
|
583
591
|
"of-table-row--selected": t(p).has(i(e)),
|
|
584
592
|
"of-table-row--hover": t(Y)(i(e))
|
|
585
593
|
}]),
|
|
586
594
|
role: "row",
|
|
587
595
|
onMouseenter: (n) => t(S)(i(e)),
|
|
588
596
|
onMouseleave: o[9] || (o[9] = (n) => t(S)(null)),
|
|
589
|
-
onClick: (n) =>
|
|
597
|
+
onClick: (n) => I(e)
|
|
590
598
|
}, [
|
|
591
599
|
(r(!0), s(c, null, m(t(ne), (n) => (r(), s("div", {
|
|
592
600
|
key: n.key,
|
|
@@ -597,38 +605,38 @@ const Xl = ["tabindex"], Ul = {
|
|
|
597
605
|
flex: n.width === "fill" ? "1 1 " + (n.minWidth ?? 220) + "px" : "0 0 auto"
|
|
598
606
|
})
|
|
599
607
|
}, [
|
|
600
|
-
|
|
608
|
+
T(l.$slots, "cell", {
|
|
601
609
|
row: e,
|
|
602
610
|
col: n
|
|
603
611
|
}, () => {
|
|
604
612
|
var a;
|
|
605
613
|
return [
|
|
606
|
-
(a = u.fieldDefs) != null && a.length ? (r(), y(
|
|
614
|
+
(a = u.fieldDefs) != null && a.length ? (r(), y(_, {
|
|
607
615
|
key: 0,
|
|
608
616
|
"row-id": i(e),
|
|
609
|
-
field:
|
|
617
|
+
field: H(n.key),
|
|
610
618
|
value: e[n.key],
|
|
611
|
-
onCommit:
|
|
612
|
-
}, null, 8, ["row-id", "field", "value"])) : (r(), s("span",
|
|
619
|
+
onCommit: B
|
|
620
|
+
}, null, 8, ["row-id", "field", "value"])) : (r(), s("span", uo, A(e[n.key] ?? "-"), 1))
|
|
613
621
|
];
|
|
614
622
|
}, !0)
|
|
615
623
|
], 4))), 128))
|
|
616
|
-
], 42,
|
|
624
|
+
], 42, io))
|
|
617
625
|
], 64))), 128))
|
|
618
626
|
], 4)
|
|
619
627
|
], 4)) : (r(!0), s(c, { key: 1 }, m(t(D), (e) => (r(), s(c, {
|
|
620
628
|
key: e.id
|
|
621
629
|
}, [
|
|
622
|
-
t(x)(e) ? (r(), s("div",
|
|
630
|
+
t(x)(e) ? (r(), s("div", fo)) : (r(), s("div", {
|
|
623
631
|
key: 1,
|
|
624
|
-
class:
|
|
632
|
+
class: z(["of-table-row", {
|
|
625
633
|
"of-table-row--selected": t(p).has(i(e)),
|
|
626
634
|
"of-table-row--hover": t(Y)(i(e))
|
|
627
635
|
}]),
|
|
628
636
|
role: "row",
|
|
629
637
|
onMouseenter: (n) => t(S)(i(e)),
|
|
630
638
|
onMouseleave: o[10] || (o[10] = (n) => t(S)(null)),
|
|
631
|
-
onClick: (n) =>
|
|
639
|
+
onClick: (n) => I(e)
|
|
632
640
|
}, [
|
|
633
641
|
(r(!0), s(c, null, m(t(ne), (n) => (r(), s("div", {
|
|
634
642
|
key: n.key,
|
|
@@ -639,34 +647,34 @@ const Xl = ["tabindex"], Ul = {
|
|
|
639
647
|
flex: n.width === "fill" ? "1 1 " + (n.minWidth ?? 220) + "px" : "0 0 auto"
|
|
640
648
|
})
|
|
641
649
|
}, [
|
|
642
|
-
|
|
650
|
+
T(l.$slots, "cell", {
|
|
643
651
|
row: e,
|
|
644
652
|
col: n
|
|
645
653
|
}, () => {
|
|
646
654
|
var a;
|
|
647
655
|
return [
|
|
648
|
-
(a = u.fieldDefs) != null && a.length ? (r(), y(
|
|
656
|
+
(a = u.fieldDefs) != null && a.length ? (r(), y(_, {
|
|
649
657
|
key: 0,
|
|
650
658
|
"row-id": i(e),
|
|
651
|
-
field:
|
|
659
|
+
field: H(n.key),
|
|
652
660
|
value: e[n.key],
|
|
653
|
-
onCommit:
|
|
654
|
-
}, null, 8, ["row-id", "field", "value"])) : (r(), s("span",
|
|
661
|
+
onCommit: B
|
|
662
|
+
}, null, 8, ["row-id", "field", "value"])) : (r(), s("span", vo, A(e[n.key] ?? "-"), 1))
|
|
655
663
|
];
|
|
656
664
|
}, !0)
|
|
657
665
|
], 4))), 128))
|
|
658
|
-
], 42,
|
|
666
|
+
], 42, co))
|
|
659
667
|
], 64))), 128))
|
|
660
668
|
])
|
|
661
669
|
], 36)
|
|
662
670
|
])) : (r(), s(c, { key: 1 }, [
|
|
663
|
-
E(
|
|
671
|
+
E(me, {
|
|
664
672
|
columns: C.value,
|
|
665
673
|
selectable: M.value,
|
|
666
|
-
"sort-key": t(
|
|
667
|
-
"sort-order": t(
|
|
674
|
+
"sort-key": t(F).field ?? "",
|
|
675
|
+
"sort-order": t(F).order ?? "asc",
|
|
668
676
|
"all-selected": t(le),
|
|
669
|
-
indeterminate:
|
|
677
|
+
indeterminate: Ke.value,
|
|
670
678
|
"enable-resize": u.enableResize,
|
|
671
679
|
"enable-field-menu": u.enableFieldManagement,
|
|
672
680
|
"enable-add-field": u.enableFieldManagement,
|
|
@@ -693,45 +701,45 @@ const Xl = ["tabindex"], Ul = {
|
|
|
693
701
|
(r(!0), s(c, null, m(t(re), ({ data: e, index: n }) => (r(), s(c, {
|
|
694
702
|
key: e.id
|
|
695
703
|
}, [
|
|
696
|
-
t(x)(e) ? (r(), y(Q,
|
|
704
|
+
t(x)(e) ? (r(), y(Q, K({
|
|
697
705
|
key: 0,
|
|
698
706
|
ref_for: !0,
|
|
699
707
|
ref: (a) => t(j)((a == null ? void 0 : a.$el) ?? a, n)
|
|
700
708
|
}, { ref_for: !0 }, q(e), {
|
|
701
709
|
onToggle: (a) => t(N)(J(e))
|
|
702
|
-
}), null, 16, ["onToggle"])) : (r(), y(Ve,
|
|
710
|
+
}), null, 16, ["onToggle"])) : (r(), y(Ve, K({
|
|
703
711
|
key: 1,
|
|
704
712
|
ref_for: !0,
|
|
705
713
|
ref: (a) => t(j)((a == null ? void 0 : a.$el) ?? a, n)
|
|
706
|
-
}, { ref_for: !0 },
|
|
714
|
+
}, { ref_for: !0 }, Ee(e), {
|
|
707
715
|
draggable: u.enableRowDrag,
|
|
708
716
|
class: Ge(e),
|
|
709
717
|
onSelect: U,
|
|
710
|
-
onClick: (a) =>
|
|
711
|
-
onDragstart: (a) =>
|
|
712
|
-
onDragover: (a) =>
|
|
713
|
-
onDrop: (a) =>
|
|
714
|
-
onDragend: t(
|
|
718
|
+
onClick: (a) => I(e),
|
|
719
|
+
onDragstart: (a) => Ae(a, e),
|
|
720
|
+
onDragover: (a) => Fe(a, e),
|
|
721
|
+
onDrop: (a) => He(a, e),
|
|
722
|
+
onDragend: t(ze)
|
|
715
723
|
}), {
|
|
716
|
-
cell:
|
|
717
|
-
|
|
724
|
+
cell: he(({ row: a, col: v }) => [
|
|
725
|
+
T(l.$slots, "cell", {
|
|
718
726
|
row: a,
|
|
719
727
|
col: v
|
|
720
728
|
}, () => {
|
|
721
729
|
var ge;
|
|
722
730
|
return [
|
|
723
|
-
(ge = u.fieldDefs) != null && ge.length ? (r(), y(
|
|
731
|
+
(ge = u.fieldDefs) != null && ge.length ? (r(), y(_, {
|
|
724
732
|
key: 0,
|
|
725
733
|
"row-id": i(a),
|
|
726
|
-
field:
|
|
734
|
+
field: H(v.key),
|
|
727
735
|
value: a[v.key],
|
|
728
|
-
class:
|
|
729
|
-
"of-cell--active":
|
|
736
|
+
class: z({
|
|
737
|
+
"of-cell--active": Pe(i(a), v.key),
|
|
730
738
|
"of-cell--selected": Le(i(a), v.key)
|
|
731
739
|
}),
|
|
732
|
-
onCommit:
|
|
733
|
-
onClick:
|
|
734
|
-
}, null, 8, ["row-id", "field", "value", "class", "onClick"])) : (r(), s("span",
|
|
740
|
+
onCommit: B,
|
|
741
|
+
onClick: P(($o) => u.enableKeyboard && t(Me)(i(a), v.key), ["stop"])
|
|
742
|
+
}, null, 8, ["row-id", "field", "value", "class", "onClick"])) : (r(), s("span", yo, A(a[v.key] ?? "-"), 1))
|
|
735
743
|
];
|
|
736
744
|
}, !0)
|
|
737
745
|
]),
|
|
@@ -742,43 +750,43 @@ const Xl = ["tabindex"], Ul = {
|
|
|
742
750
|
], 4)) : (r(!0), s(c, { key: 1 }, m(t(D), (e) => (r(), s(c, {
|
|
743
751
|
key: e.id
|
|
744
752
|
}, [
|
|
745
|
-
t(x)(e) ? (r(), y(Q,
|
|
753
|
+
t(x)(e) ? (r(), y(Q, K({
|
|
746
754
|
key: 0,
|
|
747
755
|
ref_for: !0
|
|
748
756
|
}, q(e), {
|
|
749
757
|
onToggle: (n) => t(N)(J(e))
|
|
750
|
-
}), null, 16, ["onToggle"])) : (r(), y(Ve,
|
|
758
|
+
}), null, 16, ["onToggle"])) : (r(), y(Ve, K({
|
|
751
759
|
key: 1,
|
|
752
760
|
ref_for: !0
|
|
753
|
-
},
|
|
761
|
+
}, Ee(e), {
|
|
754
762
|
draggable: u.enableRowDrag,
|
|
755
763
|
class: Ge(e),
|
|
756
764
|
onSelect: U,
|
|
757
|
-
onClick: (n) =>
|
|
758
|
-
onDragstart: (n) =>
|
|
759
|
-
onDragover: (n) =>
|
|
760
|
-
onDrop: (n) =>
|
|
761
|
-
onDragend: t(
|
|
765
|
+
onClick: (n) => I(e),
|
|
766
|
+
onDragstart: (n) => Ae(n, e),
|
|
767
|
+
onDragover: (n) => Fe(n, e),
|
|
768
|
+
onDrop: (n) => He(n, e),
|
|
769
|
+
onDragend: t(ze)
|
|
762
770
|
}), {
|
|
763
|
-
cell:
|
|
764
|
-
|
|
771
|
+
cell: he(({ row: n, col: a }) => [
|
|
772
|
+
T(l.$slots, "cell", {
|
|
765
773
|
row: n,
|
|
766
774
|
col: a
|
|
767
775
|
}, () => {
|
|
768
776
|
var v;
|
|
769
777
|
return [
|
|
770
|
-
(v = u.fieldDefs) != null && v.length ? (r(), y(
|
|
778
|
+
(v = u.fieldDefs) != null && v.length ? (r(), y(_, {
|
|
771
779
|
key: 0,
|
|
772
780
|
"row-id": i(n),
|
|
773
|
-
field:
|
|
781
|
+
field: H(a.key),
|
|
774
782
|
value: n[a.key],
|
|
775
|
-
class:
|
|
776
|
-
"of-cell--active":
|
|
783
|
+
class: z({
|
|
784
|
+
"of-cell--active": Pe(i(n), a.key),
|
|
777
785
|
"of-cell--selected": Le(i(n), a.key)
|
|
778
786
|
}),
|
|
779
|
-
onCommit:
|
|
780
|
-
onClick:
|
|
781
|
-
}, null, 8, ["row-id", "field", "value", "class", "onClick"])) : (r(), s("span",
|
|
787
|
+
onCommit: B,
|
|
788
|
+
onClick: P((ge) => u.enableKeyboard && t(Me)(i(n), a.key), ["stop"])
|
|
789
|
+
}, null, 8, ["row-id", "field", "value", "class", "onClick"])) : (r(), s("span", go, A(n[a.key] ?? "-"), 1))
|
|
782
790
|
];
|
|
783
791
|
}, !0)
|
|
784
792
|
]),
|
|
@@ -792,8 +800,8 @@ const Xl = ["tabindex"], Ul = {
|
|
|
792
800
|
class: "of-resize-indicator",
|
|
793
801
|
style: k({ left: t(Qe) + "px" })
|
|
794
802
|
}, null, 4)) : $("", !0),
|
|
795
|
-
hl.value ? (r(), s("div",
|
|
796
|
-
g("span",
|
|
803
|
+
hl.value ? (r(), s("div", bo, [
|
|
804
|
+
g("span", ko, A(t(Be).size) + " 条草稿", 1),
|
|
797
805
|
g("button", {
|
|
798
806
|
class: "of-data-table-draft-btn of-data-table-draft-btn--commit",
|
|
799
807
|
onClick: pl
|
|
@@ -803,7 +811,7 @@ const Xl = ["tabindex"], Ul = {
|
|
|
803
811
|
onClick: wl
|
|
804
812
|
}, " 全部放弃 ")
|
|
805
813
|
])) : $("", !0),
|
|
806
|
-
|
|
814
|
+
Ie.value ? (r(), y(_l, {
|
|
807
815
|
key: 4,
|
|
808
816
|
onClick: ml
|
|
809
817
|
})) : $("", !0),
|
|
@@ -823,20 +831,20 @@ const Xl = ["tabindex"], Ul = {
|
|
|
823
831
|
onDelete: Sl,
|
|
824
832
|
onDuplicate: Rl
|
|
825
833
|
}, null, 8, ["visible", "col-key", "col-label", "field-type", "x", "y"])) : $("", !0),
|
|
826
|
-
(r(), y(
|
|
834
|
+
(r(), y(Kl, { to: "body" }, [
|
|
827
835
|
X.value ? (r(), s("div", {
|
|
828
836
|
key: 0,
|
|
829
837
|
class: "of-add-field-overlay",
|
|
830
|
-
onClick: o[13] || (o[13] =
|
|
838
|
+
onClick: o[13] || (o[13] = P((e) => X.value = !1, ["self"]))
|
|
831
839
|
}, [
|
|
832
|
-
g("div",
|
|
840
|
+
g("div", ho, [
|
|
833
841
|
E(t(We), { onSelect: $l })
|
|
834
842
|
])
|
|
835
843
|
])) : $("", !0)
|
|
836
844
|
]))
|
|
837
|
-
], 40,
|
|
845
|
+
], 40, Jl));
|
|
838
846
|
}
|
|
839
847
|
});
|
|
840
848
|
export {
|
|
841
|
-
|
|
849
|
+
jo as default
|
|
842
850
|
};
|