@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
|
@@ -1,55 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as so, defineAsyncComponent as Qe, computed as k, ref as W, toRef as w, watch as Ue, unref as n, openBlock as r, createBlock as v, createSlots as io, withCtx as $, renderSlot as H, normalizeProps as uo, guardReactiveProps as co, createElementBlock as s, normalizeStyle as g, normalizeClass as F, createVNode as N, createElementVNode as h, Fragment as y, renderList as m, mergeProps as G, withModifiers as z, toDisplayString as B, createCommentVNode as M, Teleport as fo } from "vue";
|
|
2
|
+
import Ce from "./TableHeaderRow.vue.js";
|
|
3
|
+
import Ze from "./TableDataRow.vue.js";
|
|
4
4
|
import de from "./TableGroupRow.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import yo from "./NewRowBtn.vue.js";
|
|
6
|
+
import vo from "./DataTableDraftToolbar.vue.js";
|
|
7
|
+
import bo from "./DataTableMobilePanel.vue.js";
|
|
8
|
+
import go from "./DataTableDesktopFrame.vue.js";
|
|
7
9
|
import V from "./FieldCell.vue.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
10
|
+
import { normalizeFieldType as _e, resolveRowId as ko, resolveFieldDef as wo, buildDataRowStyle as ho, buildBodyCellStyle as mo, buildGroupSpacerStyle as po, resolveFirstEditableFieldKey as Co } from "./dataTableUtils.js";
|
|
11
|
+
import { useInlineEdit as Do } from "../../composables/useInlineEdit.js";
|
|
12
|
+
import { useVirtualList as So } from "../../composables/useVirtualList.js";
|
|
13
|
+
import { useTable as Ro } from "../../composables/useTable.js";
|
|
11
14
|
import { useTableGroup as xo } from "../../composables/useTableGroup.js";
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, Ho = { class: "of-data-table-selection-bar__summary" }, Ko = { class: "of-data-table-selection-bar__count" }, Bo = { class: "of-data-table-selection-bar__actions" }, Io = ["disabled", "onClick"], Po = {
|
|
25
|
-
key: 1,
|
|
26
|
-
class: "of-data-table-body",
|
|
27
|
-
style: { position: "relative" }
|
|
28
|
-
}, Eo = { class: "of-data-table-fixed-body" }, Wo = ["onMouseenter", "onFocusin", "onClick", "onKeydown"], _o = ["for"], Lo = ["id", "checked", "onChange"], Go = {
|
|
15
|
+
import { useTableData as $o } from "../../composables/useTableData.js";
|
|
16
|
+
import { useTableColumns as Fo } from "../../composables/useTableColumns.js";
|
|
17
|
+
import { useColumnResize as Mo } from "../../composables/useColumnResize.js";
|
|
18
|
+
import { useKeyboardNavigation as Ao } from "../../composables/useKeyboardNavigation.js";
|
|
19
|
+
import { useBreakpoint as To } from "../../composables/useBreakpoint.js";
|
|
20
|
+
import { useFixedColumns as Ko } from "../../composables/useFixedColumns.js";
|
|
21
|
+
import { useRowDrag as zo } from "../../composables/useRowDrag.js";
|
|
22
|
+
import { useDraftRows as Bo } from "../../composables/useDraftRows.js";
|
|
23
|
+
import { useDataTableLayout as Ho } from "../../composables/useDataTableLayout.js";
|
|
24
|
+
import { useDataTableSelection as Io } from "../../composables/useDataTableSelection.js";
|
|
25
|
+
import { useDataTableDetailSheet as Eo } from "../../composables/useDataTableDetailSheet.js";
|
|
26
|
+
const Po = ["onMouseenter", "onFocusin", "onClick", "onKeydown"], Lo = ["for"], Wo = ["id", "checked", "onChange"], Go = {
|
|
29
27
|
key: 1,
|
|
30
28
|
class: "of-td-text"
|
|
31
|
-
},
|
|
29
|
+
}, Vo = ["disabled", "onClick"], No = ["onMouseenter", "onFocusin", "onClick", "onKeydown"], Oo = ["for"], Yo = ["id", "checked", "onChange"], jo = {
|
|
32
30
|
key: 1,
|
|
33
31
|
class: "of-td-text"
|
|
34
|
-
},
|
|
32
|
+
}, Xo = ["disabled", "onClick"], qo = ["onMouseenter", "onFocusin", "onClick", "onKeydown"], Jo = {
|
|
35
33
|
key: 1,
|
|
36
34
|
class: "of-td-text"
|
|
37
|
-
}, Qo = ["onMouseenter", "onFocusin", "onClick", "onKeydown"],
|
|
35
|
+
}, Qo = ["onMouseenter", "onFocusin", "onClick", "onKeydown"], Uo = {
|
|
38
36
|
key: 1,
|
|
39
37
|
class: "of-td-text"
|
|
40
|
-
},
|
|
38
|
+
}, Zo = {
|
|
41
39
|
key: 1,
|
|
42
40
|
class: "of-td-text"
|
|
43
|
-
},
|
|
41
|
+
}, _o = {
|
|
44
42
|
key: 1,
|
|
45
43
|
class: "of-td-text"
|
|
46
|
-
},
|
|
47
|
-
key: 4,
|
|
48
|
-
class: "of-data-table-draft-toolbar"
|
|
49
|
-
}, tt = { class: "of-data-table-draft-count" }, nt = {
|
|
44
|
+
}, en = {
|
|
50
45
|
key: 0,
|
|
51
46
|
class: "of-add-field-overlay"
|
|
52
|
-
},
|
|
47
|
+
}, ln = { class: "of-add-field-popup" }, Mn = /* @__PURE__ */ so({
|
|
53
48
|
__name: "DataTable",
|
|
54
49
|
props: {
|
|
55
50
|
tasks: { default: () => [] },
|
|
@@ -83,1032 +78,946 @@ const zo = {
|
|
|
83
78
|
containerResponsive: { type: Boolean, default: !0 }
|
|
84
79
|
},
|
|
85
80
|
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", "row-delete", "schema-add-field", "schema-rename-field", "schema-change-field-type", "schema-hide-field", "schema-delete-field", "schema-duplicate-field", "bulk-action"],
|
|
86
|
-
setup(u, { emit:
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
groupRowHeight: 40,
|
|
108
|
-
mobileCardPaddingX: 18,
|
|
109
|
-
mobileCardPaddingY: 14,
|
|
110
|
-
fillMinWidth: 240
|
|
111
|
-
}
|
|
112
|
-
}, O = f(() => s.density ?? "standard"), $ = z(0);
|
|
113
|
-
let E = null;
|
|
114
|
-
function yl() {
|
|
115
|
-
var e;
|
|
116
|
-
$.value = ((e = _.value) == null ? void 0 : e.clientWidth) ?? 0;
|
|
117
|
-
}
|
|
118
|
-
co(() => {
|
|
119
|
-
yl(), !(typeof ResizeObserver > "u" || !_.value) && (E = new ResizeObserver((e) => {
|
|
120
|
-
const l = e[0];
|
|
121
|
-
l && ($.value = l.contentRect.width);
|
|
122
|
-
}), E.observe(_.value));
|
|
123
|
-
}), vo(() => {
|
|
124
|
-
E == null || E.disconnect(), E = null;
|
|
125
|
-
});
|
|
126
|
-
const F = f(() => !s.containerResponsive || ue.value ? O.value : $.value > 0 && $.value <= 860 ? "compact" : $.value > 0 && $.value <= 1080 && O.value === "comfortable" ? "standard" : O.value), p = f(() => bl[F.value]), He = f(() => `of-data-table--${F.value}`), gl = f(() => $.value > 0 && $.value <= 860 ? "of-data-table--container-tight" : $.value > 0 && $.value <= 1080 ? "of-data-table--container-medium" : "of-data-table--container-wide"), Ke = f(() => ({
|
|
127
|
-
"--of-data-table-group-row-height": `${p.value.groupRowHeight}px`,
|
|
128
|
-
"--of-data-table-mobile-card-padding-x": `${p.value.mobileCardPaddingX}px`,
|
|
129
|
-
"--of-data-table-mobile-card-padding-y": `${p.value.mobileCardPaddingY}px`,
|
|
130
|
-
"--of-data-table-new-row-padding-x": `${p.value.mobileCardPaddingX}px`,
|
|
131
|
-
"--of-data-table-new-row-padding-y": `${p.value.mobileCardPaddingY}px`,
|
|
132
|
-
"--of-data-table-fill-min-width": `${p.value.fillMinWidth}px`
|
|
133
|
-
})), { isMobile: ue } = Mo(), U = z(!1), fe = z(null), Be = f(
|
|
134
|
-
() => fe.value
|
|
135
|
-
), kl = f(
|
|
136
|
-
() => (s.fieldDefs ?? []).filter((e) => !e.readonly).map((e) => e.id)
|
|
81
|
+
setup(u, { emit: el }) {
|
|
82
|
+
const i = u, c = el, ll = Qe(() => import("./ColumnHeaderMenu.vue.js")), ol = Qe(() => import("./FieldTypePicker.vue.js")), nl = k(() => i.density ?? "standard"), { isMobile: ue } = To(), O = W(null), Y = W(null), De = W(null), {
|
|
83
|
+
containerDensity: A,
|
|
84
|
+
densityMetrics: I,
|
|
85
|
+
densityClass: Se,
|
|
86
|
+
containerWidthClass: tl,
|
|
87
|
+
densityStyle: Re
|
|
88
|
+
} = Ho({
|
|
89
|
+
tableContainerRef: Y,
|
|
90
|
+
density: nl,
|
|
91
|
+
containerResponsive: k(() => i.containerResponsive ?? !0),
|
|
92
|
+
isMobile: ue
|
|
93
|
+
}), {
|
|
94
|
+
detailSheetVisible: al,
|
|
95
|
+
detailSheetTableRow: rl,
|
|
96
|
+
handleRowClick: sl,
|
|
97
|
+
handleMobileRowClick: il,
|
|
98
|
+
buildDetailSavePayloads: dl,
|
|
99
|
+
closeDetailSheet: ul
|
|
100
|
+
} = Eo(), cl = k(
|
|
101
|
+
() => (i.fieldDefs ?? []).filter((e) => !e.readonly).map((e) => e.id)
|
|
137
102
|
);
|
|
138
|
-
function
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
103
|
+
function xe(e) {
|
|
104
|
+
return Co({
|
|
105
|
+
row: e,
|
|
106
|
+
readonly: i.readonly,
|
|
107
|
+
columns: D.value,
|
|
108
|
+
editableFieldKeys: cl.value
|
|
109
|
+
});
|
|
144
110
|
}
|
|
145
|
-
function
|
|
146
|
-
const
|
|
111
|
+
function j(e) {
|
|
112
|
+
const o = [
|
|
147
113
|
{
|
|
148
114
|
key: "detail",
|
|
149
115
|
label: "详情",
|
|
150
|
-
onClick: () =>
|
|
116
|
+
onClick: () => p(e)
|
|
151
117
|
}
|
|
152
|
-
],
|
|
153
|
-
return
|
|
118
|
+
], l = xe(e);
|
|
119
|
+
return l && o.push({
|
|
154
120
|
key: "edit",
|
|
155
121
|
label: "编辑",
|
|
156
|
-
onClick: () =>
|
|
157
|
-
}),
|
|
122
|
+
onClick: () => $e(e, l)
|
|
123
|
+
}), o;
|
|
158
124
|
}
|
|
159
|
-
function
|
|
160
|
-
const
|
|
125
|
+
function $e(e, o) {
|
|
126
|
+
const l = d(e), t = o ?? xe(e);
|
|
161
127
|
if (!t) {
|
|
162
|
-
|
|
128
|
+
p(e);
|
|
163
129
|
return;
|
|
164
130
|
}
|
|
165
|
-
|
|
131
|
+
X.activate(l, t), i.enableKeyboard && ve(l, t);
|
|
166
132
|
}
|
|
167
|
-
function
|
|
168
|
-
if (
|
|
169
|
-
|
|
133
|
+
function Fe(e, o) {
|
|
134
|
+
if (o === "detail") {
|
|
135
|
+
p(e);
|
|
170
136
|
return;
|
|
171
137
|
}
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
const
|
|
175
|
-
tasks:
|
|
176
|
-
records:
|
|
177
|
-
}), { columns:
|
|
178
|
-
columns:
|
|
179
|
-
schema:
|
|
180
|
-
view:
|
|
138
|
+
o === "edit" && $e(e);
|
|
139
|
+
}
|
|
140
|
+
const X = Do(), { commit: fl, editingCell: yl } = X, { rows: ce } = $o({
|
|
141
|
+
tasks: w(i, "tasks"),
|
|
142
|
+
records: w(i, "records")
|
|
143
|
+
}), { columns: Me } = Fo({
|
|
144
|
+
columns: w(i, "columns"),
|
|
145
|
+
schema: w(i, "schema"),
|
|
146
|
+
view: w(i, "view")
|
|
181
147
|
}), {
|
|
182
|
-
startResize:
|
|
183
|
-
columnWidthOverrides:
|
|
184
|
-
showResizeIndicator:
|
|
185
|
-
resizeIndicatorX:
|
|
186
|
-
autoFitColumn:
|
|
187
|
-
resolvedWidth:
|
|
188
|
-
} =
|
|
189
|
-
columns:
|
|
148
|
+
startResize: vl,
|
|
149
|
+
columnWidthOverrides: bl,
|
|
150
|
+
showResizeIndicator: gl,
|
|
151
|
+
resizeIndicatorX: kl,
|
|
152
|
+
autoFitColumn: wl,
|
|
153
|
+
resolvedWidth: Ae
|
|
154
|
+
} = Mo({
|
|
155
|
+
columns: Me,
|
|
190
156
|
rows: ce,
|
|
191
|
-
density:
|
|
192
|
-
onResize: (e,
|
|
193
|
-
}),
|
|
194
|
-
const e =
|
|
195
|
-
return
|
|
196
|
-
const
|
|
197
|
-
return
|
|
198
|
-
...
|
|
199
|
-
minWidth:
|
|
200
|
-
} : typeof
|
|
157
|
+
density: A,
|
|
158
|
+
onResize: (e, o) => c("column-resize", { colKey: e, width: o })
|
|
159
|
+
}), D = k(() => {
|
|
160
|
+
const e = bl.value;
|
|
161
|
+
return Me.value.map((o) => {
|
|
162
|
+
const l = e.get(o.key);
|
|
163
|
+
return l !== void 0 ? { ...o, width: l } : o.width === "fill" ? {
|
|
164
|
+
...o,
|
|
165
|
+
minWidth: o.minWidth ?? I.value.fillMinWidth
|
|
166
|
+
} : typeof o.width == "number" ? o : { ...o, width: Ae(o.key) };
|
|
201
167
|
});
|
|
202
168
|
}), {
|
|
203
|
-
data:
|
|
204
|
-
sort:
|
|
205
|
-
toggleSort:
|
|
206
|
-
selectedRows:
|
|
207
|
-
clearSelection:
|
|
208
|
-
toggleSelectAll:
|
|
209
|
-
toggleRowSelection:
|
|
210
|
-
isAllSelected:
|
|
211
|
-
setData:
|
|
212
|
-
} =
|
|
169
|
+
data: fe,
|
|
170
|
+
sort: E,
|
|
171
|
+
toggleSort: q,
|
|
172
|
+
selectedRows: S,
|
|
173
|
+
clearSelection: hl,
|
|
174
|
+
toggleSelectAll: ml,
|
|
175
|
+
toggleRowSelection: pl,
|
|
176
|
+
isAllSelected: Te,
|
|
177
|
+
setData: Cl
|
|
178
|
+
} = Ro({
|
|
213
179
|
data: ce.value,
|
|
214
180
|
pageSize: 999999
|
|
215
181
|
});
|
|
216
|
-
|
|
217
|
-
const { groupedItems:
|
|
218
|
-
data:
|
|
219
|
-
groupBy:
|
|
220
|
-
groups:
|
|
221
|
-
aggregations:
|
|
222
|
-
}),
|
|
182
|
+
Ue(ce, (e) => Cl(e), { deep: !1 });
|
|
183
|
+
const { groupedItems: T, collapsedGroups: Dl, toggleGroup: J, isGroupHeader: K } = xo({
|
|
184
|
+
data: fe,
|
|
185
|
+
groupBy: w(i, "groupBy"),
|
|
186
|
+
groups: w(i, "groups"),
|
|
187
|
+
aggregations: w(i, "aggregations")
|
|
188
|
+
}), Sl = k(() => {
|
|
223
189
|
var e;
|
|
224
|
-
return (((e =
|
|
225
|
-
}),
|
|
226
|
-
fixedColumns:
|
|
227
|
-
scrollableColumns:
|
|
228
|
-
fixedWidth:
|
|
229
|
-
handleScroll:
|
|
230
|
-
handleFixedScroll:
|
|
231
|
-
syncHover:
|
|
232
|
-
isRowHovered:
|
|
233
|
-
} =
|
|
234
|
-
columns:
|
|
235
|
-
fixedColumnKeys:
|
|
236
|
-
scrollContainerRef:
|
|
237
|
-
fixedContainerRef:
|
|
238
|
-
}),
|
|
239
|
-
items:
|
|
190
|
+
return (((e = i.fixedColumns) == null ? void 0 : e.length) ?? 0) > 0;
|
|
191
|
+
}), Ke = W(0), Rl = k(() => Ke.value > 0), {
|
|
192
|
+
fixedColumns: Q,
|
|
193
|
+
scrollableColumns: U,
|
|
194
|
+
fixedWidth: xl,
|
|
195
|
+
handleScroll: $l,
|
|
196
|
+
handleFixedScroll: Fl,
|
|
197
|
+
syncHover: b,
|
|
198
|
+
isRowHovered: Z
|
|
199
|
+
} = Ko({
|
|
200
|
+
columns: D,
|
|
201
|
+
fixedColumnKeys: k(() => i.fixedColumns ?? []),
|
|
202
|
+
scrollContainerRef: O,
|
|
203
|
+
fixedContainerRef: De
|
|
204
|
+
}), _ = k(() => i.virtual !== void 0 ? i.virtual : T.value.length >= i.virtualThreshold), { visibleItems: ye, totalHeight: ee, offsetY: le, scrollToIndex: Ml, observeRow: Al } = So({
|
|
205
|
+
items: T,
|
|
240
206
|
itemHeight: (e) => {
|
|
241
|
-
const
|
|
242
|
-
return K(
|
|
207
|
+
const o = T.value[e];
|
|
208
|
+
return K(o) ? I.value.groupRowHeight : I.value.rowHeight;
|
|
243
209
|
},
|
|
244
210
|
overscan: 5,
|
|
245
|
-
containerRef:
|
|
246
|
-
invalidateKey:
|
|
211
|
+
containerRef: O,
|
|
212
|
+
invalidateKey: A,
|
|
247
213
|
measureRow: !0
|
|
248
|
-
}),
|
|
249
|
-
columns:
|
|
250
|
-
rows:
|
|
251
|
-
containerRef:
|
|
252
|
-
editingCell:
|
|
253
|
-
enabled:
|
|
254
|
-
onActivateEdit: (e,
|
|
255
|
-
onCancelEdit: () =>
|
|
256
|
-
onScrollToRow: (e) =>
|
|
257
|
-
getCellValue: (e,
|
|
258
|
-
const
|
|
259
|
-
if (!
|
|
260
|
-
const t = o
|
|
214
|
+
}), ze = k(() => T.value.filter((e) => !K(e))), { activeCell: Be, selectedRange: Tl, setActiveCell: ve, handleKeyDown: Kl } = Ao({
|
|
215
|
+
columns: D,
|
|
216
|
+
rows: ze,
|
|
217
|
+
containerRef: Y,
|
|
218
|
+
editingCell: yl,
|
|
219
|
+
enabled: k(() => i.enableKeyboard),
|
|
220
|
+
onActivateEdit: (e, o) => X.activate(e, o),
|
|
221
|
+
onCancelEdit: () => X.cancel(),
|
|
222
|
+
onScrollToRow: (e) => Ml(e),
|
|
223
|
+
getCellValue: (e, o) => {
|
|
224
|
+
const l = ze.value.find((a) => a.id === e);
|
|
225
|
+
if (!l) return "";
|
|
226
|
+
const t = l[o];
|
|
261
227
|
return t != null ? String(t) : "";
|
|
262
228
|
},
|
|
263
|
-
onPaste: (e,
|
|
264
|
-
|
|
229
|
+
onPaste: (e, o, l) => {
|
|
230
|
+
c("paste", { startRowId: e, startColKey: o, data: l });
|
|
265
231
|
}
|
|
266
232
|
});
|
|
267
|
-
|
|
233
|
+
Ue(Be, (e) => c("active-cell-change", e ?? null));
|
|
268
234
|
const {
|
|
269
|
-
isDragging:
|
|
270
|
-
draggedRowId:
|
|
271
|
-
dropTargetId:
|
|
272
|
-
dropPosition:
|
|
273
|
-
handleDragStart:
|
|
274
|
-
handleDragOver:
|
|
275
|
-
handleDrop:
|
|
276
|
-
handleDragEnd:
|
|
277
|
-
} =
|
|
278
|
-
processedItems:
|
|
279
|
-
enableCrossGroupDrag:
|
|
280
|
-
groupFieldId:
|
|
235
|
+
isDragging: zl,
|
|
236
|
+
draggedRowId: Bl,
|
|
237
|
+
dropTargetId: be,
|
|
238
|
+
dropPosition: He,
|
|
239
|
+
handleDragStart: Hl,
|
|
240
|
+
handleDragOver: Il,
|
|
241
|
+
handleDrop: El,
|
|
242
|
+
handleDragEnd: Ie
|
|
243
|
+
} = zo({
|
|
244
|
+
processedItems: T,
|
|
245
|
+
enableCrossGroupDrag: k(() => i.enableCrossGroupDrag),
|
|
246
|
+
groupFieldId: w(i, "groupBy")
|
|
281
247
|
});
|
|
282
|
-
function
|
|
283
|
-
|
|
248
|
+
function Ee(e, o) {
|
|
249
|
+
i.enableRowDrag && Hl(e, o);
|
|
284
250
|
}
|
|
285
|
-
function
|
|
286
|
-
|
|
251
|
+
function Pe(e, o) {
|
|
252
|
+
i.enableRowDrag && Il(e, o);
|
|
287
253
|
}
|
|
288
|
-
function
|
|
289
|
-
|
|
290
|
-
onReorder: (
|
|
291
|
-
onGroupChange: (
|
|
254
|
+
function Le(e, o) {
|
|
255
|
+
i.enableRowDrag && El(e, o, {
|
|
256
|
+
onReorder: (l) => c("row-reorder", l),
|
|
257
|
+
onGroupChange: (l) => c("row-group-change", l)
|
|
292
258
|
});
|
|
293
259
|
}
|
|
294
260
|
const {
|
|
295
|
-
drafts:
|
|
296
|
-
addDraft:
|
|
297
|
-
commitAll:
|
|
298
|
-
discardAll:
|
|
299
|
-
} =
|
|
300
|
-
schema:
|
|
301
|
-
groupFieldId:
|
|
302
|
-
}),
|
|
303
|
-
function
|
|
304
|
-
|
|
261
|
+
drafts: We,
|
|
262
|
+
addDraft: Pl,
|
|
263
|
+
commitAll: Ll,
|
|
264
|
+
discardAll: Wl
|
|
265
|
+
} = Bo({
|
|
266
|
+
schema: w(i, "schema"),
|
|
267
|
+
groupFieldId: w(i, "groupBy")
|
|
268
|
+
}), Gl = k(() => We.value.size > 0);
|
|
269
|
+
function Vl() {
|
|
270
|
+
i.schema ? Pl() : c("add-row");
|
|
305
271
|
}
|
|
306
272
|
function Nl() {
|
|
307
|
-
const e =
|
|
308
|
-
e.length > 0 &&
|
|
309
|
-
}
|
|
310
|
-
function jl() {
|
|
311
|
-
Vl();
|
|
273
|
+
const e = Ll();
|
|
274
|
+
e.length > 0 && c("drafts-commit-all", { records: e });
|
|
312
275
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
return e === "multiselect" ? "multi_select" : e;
|
|
276
|
+
function Ol() {
|
|
277
|
+
Wl();
|
|
316
278
|
}
|
|
317
|
-
|
|
279
|
+
const R = W({ visible: !1, colKey: "", colLabel: "", x: 0, y: 0 }), oe = W(!1);
|
|
280
|
+
function ge(e, o) {
|
|
318
281
|
var a;
|
|
319
|
-
const
|
|
320
|
-
|
|
282
|
+
const l = D.value.find((f) => f.key === o), t = (a = i.fieldDefs) == null ? void 0 : a.find((f) => f.id === o);
|
|
283
|
+
R.value = {
|
|
321
284
|
visible: !0,
|
|
322
|
-
colKey:
|
|
323
|
-
colLabel: (
|
|
324
|
-
fieldType:
|
|
285
|
+
colKey: o,
|
|
286
|
+
colLabel: (l == null ? void 0 : l.label) ?? o,
|
|
287
|
+
fieldType: _e(t == null ? void 0 : t.type),
|
|
325
288
|
x: e.clientX,
|
|
326
289
|
y: e.clientY
|
|
327
290
|
};
|
|
328
291
|
}
|
|
329
|
-
function
|
|
330
|
-
var
|
|
331
|
-
const
|
|
332
|
-
|
|
292
|
+
function ke(e) {
|
|
293
|
+
var l, t;
|
|
294
|
+
const o = D.value.find((a) => a.key === e);
|
|
295
|
+
R.value = {
|
|
333
296
|
visible: !0,
|
|
334
297
|
colKey: e,
|
|
335
|
-
colLabel: (
|
|
336
|
-
fieldType:
|
|
298
|
+
colLabel: (o == null ? void 0 : o.label) ?? e,
|
|
299
|
+
fieldType: _e((t = (l = i.fieldDefs) == null ? void 0 : l.find((a) => a.id === e)) == null ? void 0 : t.type),
|
|
337
300
|
x: 200,
|
|
338
301
|
y: 100
|
|
339
302
|
};
|
|
340
303
|
}
|
|
341
|
-
function
|
|
342
|
-
|
|
304
|
+
function Yl(e, o) {
|
|
305
|
+
c("schema-rename-field", { fieldId: e, newName: o });
|
|
343
306
|
}
|
|
344
|
-
function
|
|
345
|
-
|
|
307
|
+
function jl(e, o) {
|
|
308
|
+
c("schema-change-field-type", { fieldId: e, newType: o });
|
|
346
309
|
}
|
|
347
|
-
function
|
|
348
|
-
|
|
310
|
+
function Xl(e) {
|
|
311
|
+
c("schema-hide-field", e);
|
|
349
312
|
}
|
|
350
|
-
function
|
|
351
|
-
|
|
313
|
+
function ql(e) {
|
|
314
|
+
c("schema-delete-field", e);
|
|
352
315
|
}
|
|
353
|
-
function
|
|
354
|
-
|
|
316
|
+
function Jl(e) {
|
|
317
|
+
c("schema-duplicate-field", e);
|
|
355
318
|
}
|
|
356
|
-
function
|
|
319
|
+
function we() {
|
|
357
320
|
oe.value = !0;
|
|
358
321
|
}
|
|
359
|
-
function
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
() =>
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}
|
|
376
|
-
], ...s.bulkActionItems ?? []].filter((l) => typeof l.visible == "function" ? l.visible(N.value) : l.visible ?? !0).map((l) => ({
|
|
377
|
-
...l,
|
|
378
|
-
resolvedLabel: typeof l.label == "function" ? l.label(N.value) : l.label,
|
|
379
|
-
resolvedDisabled: typeof l.disabled == "function" ? l.disabled(N.value) : l.disabled ?? !1
|
|
380
|
-
})));
|
|
381
|
-
function ol() {
|
|
382
|
-
$l(X.value);
|
|
383
|
-
}
|
|
384
|
-
function te(e) {
|
|
385
|
-
const l = X.value.find((o) => o[s.rowKey] === e);
|
|
386
|
-
l && Sl(l, 0);
|
|
387
|
-
}
|
|
388
|
-
function no(e) {
|
|
389
|
-
v("bulk-action", {
|
|
390
|
-
actionKey: e.key,
|
|
391
|
-
rowIds: N.value.rowIds,
|
|
392
|
-
rows: N.value.rows
|
|
393
|
-
}), (e.clearSelectionAfter || e.key === "clear-selection") && Rl();
|
|
394
|
-
}
|
|
395
|
-
Ae(lo, (e) => v("selection-change", e), { immediate: !1 });
|
|
322
|
+
function Ql(e) {
|
|
323
|
+
c("schema-add-field", e), oe.value = !1;
|
|
324
|
+
}
|
|
325
|
+
const x = k(() => i.readonly ? !1 : i.selectable), Ge = k(() => i.readonly ? !1 : i.addable), { indeterminate: Ve, hasSelectionBar: Ul, resolvedBulkActionItems: Zl, handleSelectAll: Ne, handleSelect: ne, handleBulkAction: _l } = Io({
|
|
326
|
+
rows: fe,
|
|
327
|
+
selectedRows: S,
|
|
328
|
+
rowKey: w(i, "rowKey"),
|
|
329
|
+
selectable: x,
|
|
330
|
+
bulkActionItems: w(i, "bulkActionItems"),
|
|
331
|
+
showSelectionBar: w(i, "showSelectionBar"),
|
|
332
|
+
emitSelectionChange: (e) => c("selection-change", e),
|
|
333
|
+
toggleSelectAll: ml,
|
|
334
|
+
toggleRowSelection: (e, o = 0) => pl(e, o),
|
|
335
|
+
clearSelection: hl,
|
|
336
|
+
emitBulkAction: (e) => c("bulk-action", e)
|
|
337
|
+
});
|
|
396
338
|
function d(e) {
|
|
397
|
-
|
|
398
|
-
return l != null ? String(l) : "";
|
|
339
|
+
return ko(e, i.rowKey);
|
|
399
340
|
}
|
|
400
|
-
function
|
|
401
|
-
|
|
402
|
-
return ((l = s.fieldDefs) == null ? void 0 : l.find((o) => o.id === e)) ?? {
|
|
403
|
-
id: e,
|
|
404
|
-
type: "text",
|
|
405
|
-
label: e
|
|
406
|
-
};
|
|
341
|
+
function P(e) {
|
|
342
|
+
return wo(i.fieldDefs, e);
|
|
407
343
|
}
|
|
408
|
-
function
|
|
409
|
-
|
|
344
|
+
function L(e, o, l) {
|
|
345
|
+
fl(e, o, l), c("cell-edit", { rowId: e, fieldId: o, value: l });
|
|
410
346
|
}
|
|
411
|
-
function
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
v("row-click-record", l), v("row-click", l);
|
|
347
|
+
function p(e) {
|
|
348
|
+
const o = sl({
|
|
349
|
+
row: e,
|
|
350
|
+
isMobile: ue.value
|
|
351
|
+
});
|
|
352
|
+
if (o.type === "emit-record") {
|
|
353
|
+
c("row-click-record", o.row), c("row-click", o.row);
|
|
419
354
|
return;
|
|
420
355
|
}
|
|
421
|
-
|
|
356
|
+
o.type === "emit-row" && c("row-click", o.row);
|
|
422
357
|
}
|
|
423
|
-
function
|
|
424
|
-
e.target === e.currentTarget && (e.key !== "Enter" && e.key !== " " || (e.preventDefault(),
|
|
358
|
+
function te(e, o) {
|
|
359
|
+
e.target === e.currentTarget && (e.key !== "Enter" && e.key !== " " || (e.preventDefault(), p(o)));
|
|
425
360
|
}
|
|
426
|
-
function
|
|
427
|
-
return e[
|
|
361
|
+
function C(e, o) {
|
|
362
|
+
return e[o];
|
|
428
363
|
}
|
|
429
|
-
function
|
|
364
|
+
function eo(e) {
|
|
430
365
|
if (!e) return null;
|
|
431
366
|
if (e instanceof HTMLElement) return e;
|
|
432
|
-
const
|
|
433
|
-
return
|
|
367
|
+
const o = e.$el;
|
|
368
|
+
return o instanceof HTMLElement ? o : null;
|
|
434
369
|
}
|
|
435
|
-
function ae(e,
|
|
436
|
-
|
|
370
|
+
function ae(e, o) {
|
|
371
|
+
Al(eo(e), o);
|
|
437
372
|
}
|
|
438
|
-
function
|
|
439
|
-
|
|
373
|
+
function he(e, o) {
|
|
374
|
+
vl(e, o);
|
|
440
375
|
}
|
|
441
|
-
function
|
|
442
|
-
|
|
376
|
+
function me(e) {
|
|
377
|
+
wl(e, Y.value);
|
|
443
378
|
}
|
|
444
|
-
function
|
|
445
|
-
return
|
|
446
|
-
}
|
|
447
|
-
function tl() {
|
|
448
|
-
return {
|
|
449
|
-
minHeight: `${p.value.rowHeight}px`
|
|
450
|
-
};
|
|
379
|
+
function Oe() {
|
|
380
|
+
return ho(I.value.rowHeight);
|
|
451
381
|
}
|
|
452
382
|
function re(e) {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
}
|
|
460
|
-
return typeof e.width == "number" ? { ...t, width: `${e.width}px`, flexShrink: "0", flexGrow: "0" } : {
|
|
461
|
-
...t,
|
|
462
|
-
width: `${_e(e.key)}px`,
|
|
463
|
-
flexShrink: "0",
|
|
464
|
-
flexGrow: "0"
|
|
465
|
-
};
|
|
383
|
+
return mo({
|
|
384
|
+
density: A.value,
|
|
385
|
+
col: e,
|
|
386
|
+
resolvedWidth: Ae(e.key),
|
|
387
|
+
fillMinWidth: I.value.fillMinWidth
|
|
388
|
+
});
|
|
466
389
|
}
|
|
467
|
-
function
|
|
468
|
-
return
|
|
469
|
-
height: `${p.value.groupRowHeight}px`
|
|
470
|
-
};
|
|
390
|
+
function Ye() {
|
|
391
|
+
return po(I.value.groupRowHeight);
|
|
471
392
|
}
|
|
472
|
-
function
|
|
473
|
-
|
|
474
|
-
const
|
|
475
|
-
|
|
393
|
+
function lo(e) {
|
|
394
|
+
$l(e);
|
|
395
|
+
const o = e.target;
|
|
396
|
+
Ke.value = o.scrollLeft;
|
|
476
397
|
}
|
|
477
|
-
function
|
|
398
|
+
function oo(e) {
|
|
399
|
+
De.value = e;
|
|
400
|
+
}
|
|
401
|
+
function no(e) {
|
|
402
|
+
O.value = e;
|
|
403
|
+
}
|
|
404
|
+
function to(e) {
|
|
405
|
+
O.value = e;
|
|
406
|
+
}
|
|
407
|
+
function se(e) {
|
|
478
408
|
return {
|
|
479
409
|
groupKey: e.__groupKey,
|
|
480
410
|
count: e.__groupCount,
|
|
481
|
-
collapsed:
|
|
411
|
+
collapsed: Dl.value.has(
|
|
482
412
|
e.__groupPath ? e.__groupPath.join("/") : e.__groupKey
|
|
483
413
|
),
|
|
484
|
-
colorMap:
|
|
485
|
-
selectable:
|
|
414
|
+
colorMap: i.groupColorMap,
|
|
415
|
+
selectable: x.value,
|
|
486
416
|
level: e.__groupLevel ?? 0,
|
|
487
417
|
aggregations: e.__aggregations
|
|
488
418
|
};
|
|
489
419
|
}
|
|
490
|
-
function
|
|
420
|
+
function ie(e) {
|
|
491
421
|
return e.__groupPath ? e.__groupPath.join("/") : e.__groupKey;
|
|
492
422
|
}
|
|
493
|
-
function
|
|
423
|
+
function je(e) {
|
|
494
424
|
return {
|
|
495
425
|
row: e,
|
|
496
|
-
rowKey:
|
|
497
|
-
selected:
|
|
498
|
-
selectable:
|
|
499
|
-
columns:
|
|
500
|
-
priorityColorMap:
|
|
501
|
-
statusColorMap:
|
|
426
|
+
rowKey: i.rowKey,
|
|
427
|
+
selected: S.value.has(d(e)),
|
|
428
|
+
selectable: x.value,
|
|
429
|
+
columns: D.value,
|
|
430
|
+
priorityColorMap: i.priorityColorMap,
|
|
431
|
+
statusColorMap: i.statusColorMap
|
|
502
432
|
};
|
|
503
433
|
}
|
|
504
|
-
function
|
|
505
|
-
const
|
|
506
|
-
return
|
|
434
|
+
function Xe(e, o) {
|
|
435
|
+
const l = Be.value;
|
|
436
|
+
return l !== null && l.rowId === e && l.colKey === o;
|
|
507
437
|
}
|
|
508
|
-
function
|
|
509
|
-
return
|
|
438
|
+
function qe(e, o) {
|
|
439
|
+
return Tl.value.some((l) => l.rowId === e && l.colKey === o);
|
|
510
440
|
}
|
|
511
|
-
function
|
|
512
|
-
const
|
|
441
|
+
function Je(e) {
|
|
442
|
+
const o = d(e);
|
|
513
443
|
return {
|
|
514
|
-
"of-row-dragging":
|
|
515
|
-
"of-row-drop-target":
|
|
516
|
-
"of-row-drop-before":
|
|
517
|
-
"of-row-drop-after":
|
|
444
|
+
"of-row-dragging": zl.value && Bl.value === o,
|
|
445
|
+
"of-row-drop-target": be.value === o,
|
|
446
|
+
"of-row-drop-before": be.value === o && He.value === "before",
|
|
447
|
+
"of-row-drop-after": be.value === o && He.value === "after"
|
|
518
448
|
};
|
|
519
449
|
}
|
|
520
|
-
function
|
|
521
|
-
|
|
522
|
-
}
|
|
523
|
-
function
|
|
524
|
-
for (const
|
|
525
|
-
|
|
526
|
-
}
|
|
527
|
-
return (e,
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
"
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
onSave: uo,
|
|
556
|
-
onDelete: l[3] || (l[3] = (o) => v("row-delete", o)),
|
|
557
|
-
onCellEdit: l[4] || (l[4] = (o) => v("cell-edit", o))
|
|
558
|
-
}, null, 8, ["row", "columns", "field-defs", "visible"])) : D("", !0)
|
|
559
|
-
], 64)) : (r(), i("div", {
|
|
450
|
+
function ao(e) {
|
|
451
|
+
il(e);
|
|
452
|
+
}
|
|
453
|
+
function ro(e) {
|
|
454
|
+
for (const o of dl(e))
|
|
455
|
+
c("cell-edit", o);
|
|
456
|
+
}
|
|
457
|
+
return (e, o) => n(ue) ? (r(), v(bo, {
|
|
458
|
+
key: 0,
|
|
459
|
+
rows: n(fe),
|
|
460
|
+
columns: D.value,
|
|
461
|
+
"field-defs": u.fieldDefs,
|
|
462
|
+
selectable: x.value,
|
|
463
|
+
addable: Ge.value,
|
|
464
|
+
"status-color-map": u.statusColorMap,
|
|
465
|
+
readonly: u.readonly,
|
|
466
|
+
"density-class": n(Se),
|
|
467
|
+
"density-style": n(Re),
|
|
468
|
+
"detail-visible": n(al),
|
|
469
|
+
"detail-row": n(rl),
|
|
470
|
+
onRowClick: o[0] || (o[0] = (l) => ao(l)),
|
|
471
|
+
onAddRow: o[1] || (o[1] = (l) => c("add-row")),
|
|
472
|
+
onCloseDetail: n(ul),
|
|
473
|
+
onDetailSave: ro,
|
|
474
|
+
onRowDelete: o[2] || (o[2] = (l) => c("row-delete", l)),
|
|
475
|
+
onCellEdit: o[3] || (o[3] = (l) => c("cell-edit", l))
|
|
476
|
+
}, io({ _: 2 }, [
|
|
477
|
+
e.$slots.cell ? {
|
|
478
|
+
name: "cell",
|
|
479
|
+
fn: $((l) => [
|
|
480
|
+
H(e.$slots, "cell", uo(co(l)), void 0, !0)
|
|
481
|
+
]),
|
|
482
|
+
key: "0"
|
|
483
|
+
} : void 0
|
|
484
|
+
]), 1032, ["rows", "columns", "field-defs", "selectable", "addable", "status-color-map", "readonly", "density-class", "density-style", "detail-visible", "detail-row", "onCloseDetail"])) : (r(), s("div", {
|
|
560
485
|
key: 1,
|
|
561
486
|
ref_key: "tableContainerRef",
|
|
562
|
-
ref:
|
|
563
|
-
class:
|
|
564
|
-
style:
|
|
487
|
+
ref: Y,
|
|
488
|
+
class: F(["of-data-table", [n(Se), n(tl)]]),
|
|
489
|
+
style: g(n(Re)),
|
|
565
490
|
role: "grid",
|
|
566
491
|
tabindex: "0",
|
|
567
|
-
onKeydown:
|
|
492
|
+
onKeydown: o[19] || (o[19] = (l) => u.enableKeyboard ? n(Kl)(l) : void 0)
|
|
568
493
|
}, [
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
"sort-
|
|
597
|
-
"
|
|
598
|
-
|
|
599
|
-
indeterminate: ll.value,
|
|
494
|
+
N(go, {
|
|
495
|
+
"has-fixed-columns": Sl.value,
|
|
496
|
+
"show-selection-bar": n(Ul),
|
|
497
|
+
"selection-count": n(S).size,
|
|
498
|
+
"selection-items": n(Zl),
|
|
499
|
+
"fixed-width": n(xl),
|
|
500
|
+
"show-fixed-shadow": Rl.value,
|
|
501
|
+
columns: D.value,
|
|
502
|
+
"fixed-columns": n(Q),
|
|
503
|
+
"scrollable-columns": n(U),
|
|
504
|
+
selectable: x.value,
|
|
505
|
+
"show-row-actions": u.showRowActions,
|
|
506
|
+
"use-virtual": _.value,
|
|
507
|
+
"total-height": n(ee),
|
|
508
|
+
"offset-y": n(le),
|
|
509
|
+
"set-fixed-region-ref": oo,
|
|
510
|
+
"set-scroll-region-ref": no,
|
|
511
|
+
"set-standard-scroll-ref": to,
|
|
512
|
+
onSelectionAction: n(_l),
|
|
513
|
+
onFixedScroll: n(Fl),
|
|
514
|
+
onScroll: lo
|
|
515
|
+
}, {
|
|
516
|
+
"fixed-header": $(() => [
|
|
517
|
+
N(Ce, {
|
|
518
|
+
columns: n(Q),
|
|
519
|
+
selectable: x.value,
|
|
520
|
+
"sort-key": n(E).field ?? "",
|
|
521
|
+
"sort-order": n(E).order ?? "asc",
|
|
522
|
+
"all-selected": n(Te),
|
|
523
|
+
indeterminate: n(Ve),
|
|
600
524
|
"enable-resize": u.enableResize,
|
|
601
525
|
"enable-field-menu": u.enableFieldManagement,
|
|
602
526
|
"enable-add-field": u.enableFieldManagement,
|
|
603
|
-
density:
|
|
604
|
-
onSort: n(
|
|
605
|
-
onSelectAll:
|
|
606
|
-
onResizeStart:
|
|
607
|
-
onResizeDblclick:
|
|
608
|
-
onHeaderContextmenu:
|
|
609
|
-
onHeaderDblclick:
|
|
610
|
-
onAddField:
|
|
611
|
-
}, null, 8, ["columns", "selectable", "sort-key", "sort-order", "all-selected", "indeterminate", "enable-resize", "enable-field-menu", "enable-add-field", "density", "onSort"])
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
527
|
+
density: n(A),
|
|
528
|
+
onSort: n(q),
|
|
529
|
+
onSelectAll: n(Ne),
|
|
530
|
+
onResizeStart: he,
|
|
531
|
+
onResizeDblclick: me,
|
|
532
|
+
onHeaderContextmenu: ge,
|
|
533
|
+
onHeaderDblclick: ke,
|
|
534
|
+
onAddField: we
|
|
535
|
+
}, null, 8, ["columns", "selectable", "sort-key", "sort-order", "all-selected", "indeterminate", "enable-resize", "enable-field-menu", "enable-add-field", "density", "onSort", "onSelectAll"])
|
|
536
|
+
]),
|
|
537
|
+
"fixed-body": $(() => [
|
|
538
|
+
_.value ? (r(), s("div", {
|
|
539
|
+
key: 0,
|
|
540
|
+
style: g({ height: n(ee) + "px", position: "relative" })
|
|
541
|
+
}, [
|
|
542
|
+
h("div", {
|
|
543
|
+
style: g({ transform: `translateY(${n(le)}px)` })
|
|
616
544
|
}, [
|
|
617
|
-
|
|
618
|
-
|
|
545
|
+
(r(!0), s(y, null, m(n(ye), ({ data: l, index: t }) => (r(), s(y, {
|
|
546
|
+
key: l.id
|
|
619
547
|
}, [
|
|
620
|
-
|
|
621
|
-
key:
|
|
548
|
+
n(K)(l) ? (r(), v(de, G({
|
|
549
|
+
key: 0,
|
|
550
|
+
ref_for: !0,
|
|
551
|
+
ref: (a) => ae(a, t)
|
|
552
|
+
}, { ref_for: !0 }, se(l), {
|
|
553
|
+
onToggle: (a) => n(J)(ie(l))
|
|
554
|
+
}), null, 16, ["onToggle"])) : (r(), s("div", {
|
|
555
|
+
key: 1,
|
|
556
|
+
ref_for: !0,
|
|
557
|
+
ref: (a) => ae(a, t),
|
|
558
|
+
class: F(["of-table-row", {
|
|
559
|
+
"of-table-row--selected": n(S).has(d(l)),
|
|
560
|
+
"of-table-row--hover": n(Z)(d(l))
|
|
561
|
+
}]),
|
|
562
|
+
role: "row",
|
|
563
|
+
tabindex: "0",
|
|
564
|
+
style: g(Oe()),
|
|
565
|
+
onMouseenter: (a) => n(b)(d(l)),
|
|
566
|
+
onMouseleave: o[6] || (o[6] = (a) => n(b)(null)),
|
|
567
|
+
onFocusin: (a) => n(b)(d(l)),
|
|
568
|
+
onFocusout: o[7] || (o[7] = (a) => n(b)(null)),
|
|
569
|
+
onClick: (a) => p(l),
|
|
570
|
+
onKeydown: (a) => te(a, l)
|
|
622
571
|
}, [
|
|
623
|
-
|
|
572
|
+
x.value ? (r(), s("div", {
|
|
624
573
|
key: 0,
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
}), null, 16, ["onToggle"])) : (r(), i("div", {
|
|
630
|
-
key: 1,
|
|
631
|
-
ref_for: !0,
|
|
632
|
-
ref: (a) => ae(a, t),
|
|
633
|
-
class: C(["of-table-row", {
|
|
634
|
-
"of-table-row--selected": n(m).has(d(o)),
|
|
635
|
-
"of-table-row--hover": n(le)(d(o))
|
|
636
|
-
}]),
|
|
637
|
-
role: "row",
|
|
638
|
-
tabindex: "0",
|
|
639
|
-
style: y(tl()),
|
|
640
|
-
onMouseenter: (a) => n(k)(d(o)),
|
|
641
|
-
onMouseleave: l[7] || (l[7] = (a) => n(k)(null)),
|
|
642
|
-
onFocusin: (a) => n(k)(d(o)),
|
|
643
|
-
onFocusout: l[8] || (l[8] = (a) => n(k)(null)),
|
|
644
|
-
onClick: (a) => S(o),
|
|
645
|
-
onKeydown: (a) => ne(a, o)
|
|
574
|
+
class: "of-td of-td-checkbox",
|
|
575
|
+
role: "gridcell",
|
|
576
|
+
onClick: o[4] || (o[4] = z(() => {
|
|
577
|
+
}, ["stop"]))
|
|
646
578
|
}, [
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
role: "gridcell",
|
|
651
|
-
onClick: l[5] || (l[5] = I(() => {
|
|
652
|
-
}, ["stop"]))
|
|
579
|
+
h("label", {
|
|
580
|
+
class: "of-checkbox-label",
|
|
581
|
+
for: `fixed-row-select-${d(l)}`
|
|
653
582
|
}, [
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
583
|
+
h("input", {
|
|
584
|
+
id: `fixed-row-select-${d(l)}`,
|
|
585
|
+
type: "checkbox",
|
|
586
|
+
class: "of-checkbox",
|
|
587
|
+
checked: n(S).has(d(l)),
|
|
588
|
+
onChange: (a) => n(ne)(d(l))
|
|
589
|
+
}, null, 40, Wo),
|
|
590
|
+
o[20] || (o[20] = h("span", { class: "of-sr-only" }, "选择当前行", -1))
|
|
591
|
+
], 8, Lo)
|
|
592
|
+
])) : M("", !0),
|
|
593
|
+
(r(!0), s(y, null, m(n(Q), (a) => (r(), s("div", {
|
|
594
|
+
key: a.key,
|
|
595
|
+
class: "of-td",
|
|
596
|
+
role: "gridcell",
|
|
597
|
+
style: g(re(a))
|
|
598
|
+
}, [
|
|
599
|
+
H(e.$slots, "cell", {
|
|
600
|
+
row: l,
|
|
601
|
+
col: a
|
|
602
|
+
}, () => {
|
|
603
|
+
var f;
|
|
604
|
+
return [
|
|
605
|
+
(f = u.fieldDefs) != null && f.length ? (r(), v(V, {
|
|
606
|
+
key: 0,
|
|
607
|
+
"row-id": d(l),
|
|
608
|
+
field: P(a.key),
|
|
609
|
+
value: C(l, a.key),
|
|
610
|
+
onCommit: L
|
|
611
|
+
}, null, 8, ["row-id", "field", "value"])) : (r(), s("span", Go, B(C(l, a.key) ?? "-"), 1))
|
|
612
|
+
];
|
|
613
|
+
}, !0)
|
|
614
|
+
], 4))), 128)),
|
|
615
|
+
u.showRowActions ? (r(), s("div", {
|
|
616
|
+
key: 1,
|
|
617
|
+
class: "of-table-row__actions",
|
|
618
|
+
"aria-label": "行快捷操作",
|
|
619
|
+
onClick: o[5] || (o[5] = z(() => {
|
|
620
|
+
}, ["stop"]))
|
|
621
|
+
}, [
|
|
622
|
+
(r(!0), s(y, null, m(j(l), (a) => (r(), s("button", {
|
|
669
623
|
key: a.key,
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
P(e.$slots, "cell", {
|
|
675
|
-
row: o,
|
|
676
|
-
col: a
|
|
677
|
-
}, () => {
|
|
678
|
-
var g;
|
|
679
|
-
return [
|
|
680
|
-
(g = u.fieldDefs) != null && g.length ? (r(), w(V, {
|
|
681
|
-
key: 0,
|
|
682
|
-
"row-id": d(o),
|
|
683
|
-
field: L(a.key),
|
|
684
|
-
value: M(o, a.key),
|
|
685
|
-
onCommit: G
|
|
686
|
-
}, null, 8, ["row-id", "field", "value"])) : (r(), i("span", Go, R(M(o, a.key) ?? "-"), 1))
|
|
687
|
-
];
|
|
688
|
-
}, !0)
|
|
689
|
-
], 4))), 128)),
|
|
690
|
-
u.showRowActions ? (r(), i("div", {
|
|
691
|
-
key: 1,
|
|
692
|
-
class: "of-table-row__actions",
|
|
693
|
-
"aria-label": "行快捷操作",
|
|
694
|
-
onClick: l[6] || (l[6] = I(() => {
|
|
695
|
-
}, ["stop"]))
|
|
624
|
+
type: "button",
|
|
625
|
+
class: F(["of-table-row__action-btn", { "of-table-row__action-btn--danger": a.variant === "danger" }]),
|
|
626
|
+
disabled: a.disabled,
|
|
627
|
+
onClick: z((f) => Fe(l, a.key), ["stop"])
|
|
696
628
|
}, [
|
|
697
|
-
(
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
629
|
+
h("span", null, B(a.label), 1)
|
|
630
|
+
], 10, Vo))), 128))
|
|
631
|
+
])) : M("", !0)
|
|
632
|
+
], 46, Po))
|
|
633
|
+
], 64))), 128))
|
|
634
|
+
], 4)
|
|
635
|
+
], 4)) : (r(!0), s(y, { key: 1 }, m(n(T), (l) => (r(), s(y, {
|
|
636
|
+
key: l.id
|
|
637
|
+
}, [
|
|
638
|
+
n(K)(l) ? (r(), v(de, G({
|
|
639
|
+
key: 0,
|
|
640
|
+
ref_for: !0
|
|
641
|
+
}, se(l), {
|
|
642
|
+
onToggle: (t) => n(J)(ie(l))
|
|
643
|
+
}), null, 16, ["onToggle"])) : (r(), s("div", {
|
|
644
|
+
key: 1,
|
|
645
|
+
class: F(["of-table-row", {
|
|
646
|
+
"of-table-row--selected": n(S).has(d(l)),
|
|
647
|
+
"of-table-row--hover": n(Z)(d(l))
|
|
648
|
+
}]),
|
|
649
|
+
role: "row",
|
|
650
|
+
tabindex: "0",
|
|
651
|
+
style: g(Oe()),
|
|
652
|
+
onMouseenter: (t) => n(b)(d(l)),
|
|
653
|
+
onMouseleave: o[10] || (o[10] = (t) => n(b)(null)),
|
|
654
|
+
onFocusin: (t) => n(b)(d(l)),
|
|
655
|
+
onFocusout: o[11] || (o[11] = (t) => n(b)(null)),
|
|
656
|
+
onClick: (t) => p(l),
|
|
657
|
+
onKeydown: (t) => te(t, l)
|
|
714
658
|
}, [
|
|
715
|
-
|
|
659
|
+
x.value ? (r(), s("div", {
|
|
716
660
|
key: 0,
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
key: 1,
|
|
722
|
-
class: C(["of-table-row", {
|
|
723
|
-
"of-table-row--selected": n(m).has(d(o)),
|
|
724
|
-
"of-table-row--hover": n(le)(d(o))
|
|
725
|
-
}]),
|
|
726
|
-
role: "row",
|
|
727
|
-
tabindex: "0",
|
|
728
|
-
style: y(tl()),
|
|
729
|
-
onMouseenter: (t) => n(k)(d(o)),
|
|
730
|
-
onMouseleave: l[11] || (l[11] = (t) => n(k)(null)),
|
|
731
|
-
onFocusin: (t) => n(k)(d(o)),
|
|
732
|
-
onFocusout: l[12] || (l[12] = (t) => n(k)(null)),
|
|
733
|
-
onClick: (t) => S(o),
|
|
734
|
-
onKeydown: (t) => ne(t, o)
|
|
661
|
+
class: "of-td of-td-checkbox",
|
|
662
|
+
role: "gridcell",
|
|
663
|
+
onClick: o[8] || (o[8] = z(() => {
|
|
664
|
+
}, ["stop"]))
|
|
735
665
|
}, [
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
role: "gridcell",
|
|
740
|
-
onClick: l[9] || (l[9] = I(() => {
|
|
741
|
-
}, ["stop"]))
|
|
666
|
+
h("label", {
|
|
667
|
+
class: "of-checkbox-label",
|
|
668
|
+
for: `row-select-${d(l)}`
|
|
742
669
|
}, [
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
670
|
+
h("input", {
|
|
671
|
+
id: `row-select-${d(l)}`,
|
|
672
|
+
type: "checkbox",
|
|
673
|
+
class: "of-checkbox",
|
|
674
|
+
checked: n(S).has(d(l)),
|
|
675
|
+
onChange: (t) => n(ne)(d(l))
|
|
676
|
+
}, null, 40, Yo),
|
|
677
|
+
o[21] || (o[21] = h("span", { class: "of-sr-only" }, "选择当前行", -1))
|
|
678
|
+
], 8, Oo)
|
|
679
|
+
])) : M("", !0),
|
|
680
|
+
(r(!0), s(y, null, m(n(Q), (t) => (r(), s("div", {
|
|
681
|
+
key: t.key,
|
|
682
|
+
class: "of-td",
|
|
683
|
+
role: "gridcell",
|
|
684
|
+
style: g(re(t))
|
|
685
|
+
}, [
|
|
686
|
+
H(e.$slots, "cell", {
|
|
687
|
+
row: l,
|
|
688
|
+
col: t
|
|
689
|
+
}, () => {
|
|
690
|
+
var a;
|
|
691
|
+
return [
|
|
692
|
+
(a = u.fieldDefs) != null && a.length ? (r(), v(V, {
|
|
693
|
+
key: 0,
|
|
694
|
+
"row-id": d(l),
|
|
695
|
+
field: P(t.key),
|
|
696
|
+
value: C(l, t.key),
|
|
697
|
+
onCommit: L
|
|
698
|
+
}, null, 8, ["row-id", "field", "value"])) : (r(), s("span", jo, B(C(l, t.key) ?? "-"), 1))
|
|
699
|
+
];
|
|
700
|
+
}, !0)
|
|
701
|
+
], 4))), 128)),
|
|
702
|
+
u.showRowActions ? (r(), s("div", {
|
|
703
|
+
key: 1,
|
|
704
|
+
class: "of-table-row__actions",
|
|
705
|
+
"aria-label": "行快捷操作",
|
|
706
|
+
onClick: o[9] || (o[9] = z(() => {
|
|
707
|
+
}, ["stop"]))
|
|
708
|
+
}, [
|
|
709
|
+
(r(!0), s(y, null, m(j(l), (t) => (r(), s("button", {
|
|
758
710
|
key: t.key,
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
P(e.$slots, "cell", {
|
|
764
|
-
row: o,
|
|
765
|
-
col: t
|
|
766
|
-
}, () => {
|
|
767
|
-
var a;
|
|
768
|
-
return [
|
|
769
|
-
(a = u.fieldDefs) != null && a.length ? (r(), w(V, {
|
|
770
|
-
key: 0,
|
|
771
|
-
"row-id": d(o),
|
|
772
|
-
field: L(t.key),
|
|
773
|
-
value: M(o, t.key),
|
|
774
|
-
onCommit: G
|
|
775
|
-
}, null, 8, ["row-id", "field", "value"])) : (r(), i("span", No, R(M(o, t.key) ?? "-"), 1))
|
|
776
|
-
];
|
|
777
|
-
}, !0)
|
|
778
|
-
], 4))), 128)),
|
|
779
|
-
u.showRowActions ? (r(), i("div", {
|
|
780
|
-
key: 1,
|
|
781
|
-
class: "of-table-row__actions",
|
|
782
|
-
"aria-label": "行快捷操作",
|
|
783
|
-
onClick: l[10] || (l[10] = I(() => {
|
|
784
|
-
}, ["stop"]))
|
|
711
|
+
type: "button",
|
|
712
|
+
class: F(["of-table-row__action-btn", { "of-table-row__action-btn--danger": t.variant === "danger" }]),
|
|
713
|
+
disabled: t.disabled,
|
|
714
|
+
onClick: z((a) => Fe(l, t.key), ["stop"])
|
|
785
715
|
}, [
|
|
786
|
-
(
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
])) : D("", !0)
|
|
796
|
-
], 46, Vo))
|
|
797
|
-
], 64))), 128))
|
|
798
|
-
])
|
|
799
|
-
], 38),
|
|
800
|
-
c("div", {
|
|
801
|
-
ref_key: "scrollContainerRef",
|
|
802
|
-
ref: ee,
|
|
803
|
-
class: "of-data-table-scroll-region",
|
|
804
|
-
style: y({ marginLeft: n(Ye) + "px" }),
|
|
805
|
-
onScroll: io
|
|
806
|
-
}, [
|
|
807
|
-
j(ze, {
|
|
808
|
-
columns: n(ye),
|
|
716
|
+
h("span", null, B(t.label), 1)
|
|
717
|
+
], 10, Xo))), 128))
|
|
718
|
+
])) : M("", !0)
|
|
719
|
+
], 46, No))
|
|
720
|
+
], 64))), 128))
|
|
721
|
+
]),
|
|
722
|
+
"scroll-header": $(() => [
|
|
723
|
+
N(Ce, {
|
|
724
|
+
columns: n(U),
|
|
809
725
|
selectable: !1,
|
|
810
|
-
"sort-key": n(
|
|
811
|
-
"sort-order": n(
|
|
726
|
+
"sort-key": n(E).field ?? "",
|
|
727
|
+
"sort-order": n(E).order ?? "asc",
|
|
812
728
|
"enable-resize": u.enableResize,
|
|
813
729
|
"enable-field-menu": u.enableFieldManagement,
|
|
814
730
|
"enable-add-field": u.enableFieldManagement,
|
|
815
|
-
density:
|
|
816
|
-
onSort: n(
|
|
817
|
-
onResizeStart:
|
|
818
|
-
onResizeDblclick:
|
|
819
|
-
onHeaderContextmenu:
|
|
820
|
-
onHeaderDblclick:
|
|
821
|
-
onAddField:
|
|
822
|
-
}, null, 8, ["columns", "sort-key", "sort-order", "enable-resize", "enable-field-menu", "enable-add-field", "density", "onSort"])
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
731
|
+
density: n(A),
|
|
732
|
+
onSort: n(q),
|
|
733
|
+
onResizeStart: he,
|
|
734
|
+
onResizeDblclick: me,
|
|
735
|
+
onHeaderContextmenu: ge,
|
|
736
|
+
onHeaderDblclick: ke,
|
|
737
|
+
onAddField: we
|
|
738
|
+
}, null, 8, ["columns", "sort-key", "sort-order", "enable-resize", "enable-field-menu", "enable-add-field", "density", "onSort"])
|
|
739
|
+
]),
|
|
740
|
+
"scroll-body": $(() => [
|
|
741
|
+
_.value ? (r(), s("div", {
|
|
742
|
+
key: 0,
|
|
743
|
+
style: g({ height: n(ee) + "px", position: "relative" })
|
|
744
|
+
}, [
|
|
745
|
+
h("div", {
|
|
746
|
+
style: g({ transform: `translateY(${n(le)}px)` })
|
|
827
747
|
}, [
|
|
828
|
-
|
|
829
|
-
|
|
748
|
+
(r(!0), s(y, null, m(n(ye), ({ data: l }) => (r(), s(y, {
|
|
749
|
+
key: l.id
|
|
830
750
|
}, [
|
|
831
|
-
|
|
832
|
-
key:
|
|
751
|
+
n(K)(l) ? (r(), s("div", {
|
|
752
|
+
key: 0,
|
|
753
|
+
style: g(Ye())
|
|
754
|
+
}, null, 4)) : (r(), s("div", {
|
|
755
|
+
key: 1,
|
|
756
|
+
class: F(["of-table-row", {
|
|
757
|
+
"of-table-row--selected": n(S).has(d(l)),
|
|
758
|
+
"of-table-row--hover": n(Z)(d(l))
|
|
759
|
+
}]),
|
|
760
|
+
role: "row",
|
|
761
|
+
tabindex: "0",
|
|
762
|
+
onMouseenter: (t) => n(b)(d(l)),
|
|
763
|
+
onMouseleave: o[12] || (o[12] = (t) => n(b)(null)),
|
|
764
|
+
onFocusin: (t) => n(b)(d(l)),
|
|
765
|
+
onFocusout: o[13] || (o[13] = (t) => n(b)(null)),
|
|
766
|
+
onClick: (t) => p(l),
|
|
767
|
+
onKeydown: (t) => te(t, l)
|
|
833
768
|
}, [
|
|
834
|
-
n(
|
|
835
|
-
key:
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
class: C(["of-table-row", {
|
|
840
|
-
"of-table-row--selected": n(m).has(d(o)),
|
|
841
|
-
"of-table-row--hover": n(le)(d(o))
|
|
842
|
-
}]),
|
|
843
|
-
role: "row",
|
|
844
|
-
tabindex: "0",
|
|
845
|
-
onMouseenter: (t) => n(k)(d(o)),
|
|
846
|
-
onMouseleave: l[14] || (l[14] = (t) => n(k)(null)),
|
|
847
|
-
onFocusin: (t) => n(k)(d(o)),
|
|
848
|
-
onFocusout: l[15] || (l[15] = (t) => n(k)(null)),
|
|
849
|
-
onClick: (t) => S(o),
|
|
850
|
-
onKeydown: (t) => ne(t, o)
|
|
769
|
+
(r(!0), s(y, null, m(n(U), (t) => (r(), s("div", {
|
|
770
|
+
key: t.key,
|
|
771
|
+
class: "of-td",
|
|
772
|
+
role: "gridcell",
|
|
773
|
+
style: g(re(t))
|
|
851
774
|
}, [
|
|
852
|
-
(
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
key:
|
|
775
|
+
H(e.$slots, "cell", {
|
|
776
|
+
row: l,
|
|
777
|
+
col: t
|
|
778
|
+
}, () => {
|
|
779
|
+
var a;
|
|
780
|
+
return [
|
|
781
|
+
(a = u.fieldDefs) != null && a.length ? (r(), v(V, {
|
|
782
|
+
key: 0,
|
|
783
|
+
"row-id": d(l),
|
|
784
|
+
field: P(t.key),
|
|
785
|
+
value: C(l, t.key),
|
|
786
|
+
onCommit: L
|
|
787
|
+
}, null, 8, ["row-id", "field", "value"])) : (r(), s("span", Jo, B(C(l, t.key) ?? "-"), 1))
|
|
788
|
+
];
|
|
789
|
+
}, !0)
|
|
790
|
+
], 4))), 128))
|
|
791
|
+
], 42, qo))
|
|
792
|
+
], 64))), 128))
|
|
793
|
+
], 4)
|
|
794
|
+
], 4)) : (r(!0), s(y, { key: 1 }, m(n(T), (l) => (r(), s(y, {
|
|
795
|
+
key: l.id
|
|
796
|
+
}, [
|
|
797
|
+
n(K)(l) ? (r(), s("div", {
|
|
798
|
+
key: 0,
|
|
799
|
+
style: g(Ye())
|
|
800
|
+
}, null, 4)) : (r(), s("div", {
|
|
801
|
+
key: 1,
|
|
802
|
+
class: F(["of-table-row", {
|
|
803
|
+
"of-table-row--selected": n(S).has(d(l)),
|
|
804
|
+
"of-table-row--hover": n(Z)(d(l))
|
|
805
|
+
}]),
|
|
806
|
+
role: "row",
|
|
807
|
+
tabindex: "0",
|
|
808
|
+
onMouseenter: (t) => n(b)(d(l)),
|
|
809
|
+
onMouseleave: o[14] || (o[14] = (t) => n(b)(null)),
|
|
810
|
+
onFocusin: (t) => n(b)(d(l)),
|
|
811
|
+
onFocusout: o[15] || (o[15] = (t) => n(b)(null)),
|
|
812
|
+
onClick: (t) => p(l),
|
|
813
|
+
onKeydown: (t) => te(t, l)
|
|
879
814
|
}, [
|
|
880
|
-
n(
|
|
881
|
-
key:
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
class: C(["of-table-row", {
|
|
886
|
-
"of-table-row--selected": n(m).has(d(o)),
|
|
887
|
-
"of-table-row--hover": n(le)(d(o))
|
|
888
|
-
}]),
|
|
889
|
-
role: "row",
|
|
890
|
-
tabindex: "0",
|
|
891
|
-
onMouseenter: (t) => n(k)(d(o)),
|
|
892
|
-
onMouseleave: l[16] || (l[16] = (t) => n(k)(null)),
|
|
893
|
-
onFocusin: (t) => n(k)(d(o)),
|
|
894
|
-
onFocusout: l[17] || (l[17] = (t) => n(k)(null)),
|
|
895
|
-
onClick: (t) => S(o),
|
|
896
|
-
onKeydown: (t) => ne(t, o)
|
|
815
|
+
(r(!0), s(y, null, m(n(U), (t) => (r(), s("div", {
|
|
816
|
+
key: t.key,
|
|
817
|
+
class: "of-td",
|
|
818
|
+
role: "gridcell",
|
|
819
|
+
style: g(re(t))
|
|
897
820
|
}, [
|
|
898
|
-
(
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
onSort
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
onHeaderContextmenu: Ce,
|
|
941
|
-
onHeaderDblclick: xe,
|
|
942
|
-
onAddField: De
|
|
943
|
-
}, null, 8, ["columns", "selectable", "sort-key", "sort-order", "all-selected", "indeterminate", "enable-resize", "enable-field-menu", "enable-add-field", "density", "onSort"]),
|
|
944
|
-
c("div", {
|
|
945
|
-
ref_key: "scrollContainerRef",
|
|
946
|
-
ref: ee,
|
|
947
|
-
class: "of-data-table-scroll-container"
|
|
948
|
-
}, [
|
|
949
|
-
ge.value ? (r(), i("div", {
|
|
821
|
+
H(e.$slots, "cell", {
|
|
822
|
+
row: l,
|
|
823
|
+
col: t
|
|
824
|
+
}, () => {
|
|
825
|
+
var a;
|
|
826
|
+
return [
|
|
827
|
+
(a = u.fieldDefs) != null && a.length ? (r(), v(V, {
|
|
828
|
+
key: 0,
|
|
829
|
+
"row-id": d(l),
|
|
830
|
+
field: P(t.key),
|
|
831
|
+
value: C(l, t.key),
|
|
832
|
+
onCommit: L
|
|
833
|
+
}, null, 8, ["row-id", "field", "value"])) : (r(), s("span", Uo, B(C(l, t.key) ?? "-"), 1))
|
|
834
|
+
];
|
|
835
|
+
}, !0)
|
|
836
|
+
], 4))), 128))
|
|
837
|
+
], 42, Qo))
|
|
838
|
+
], 64))), 128))
|
|
839
|
+
]),
|
|
840
|
+
"standard-header": $(() => [
|
|
841
|
+
N(Ce, {
|
|
842
|
+
columns: D.value,
|
|
843
|
+
selectable: x.value,
|
|
844
|
+
"sort-key": n(E).field ?? "",
|
|
845
|
+
"sort-order": n(E).order ?? "asc",
|
|
846
|
+
"all-selected": n(Te),
|
|
847
|
+
indeterminate: n(Ve),
|
|
848
|
+
"enable-resize": u.enableResize,
|
|
849
|
+
"enable-field-menu": u.enableFieldManagement,
|
|
850
|
+
"enable-add-field": u.enableFieldManagement,
|
|
851
|
+
density: n(A),
|
|
852
|
+
onSort: n(q),
|
|
853
|
+
onSelectAll: n(Ne),
|
|
854
|
+
onResizeStart: he,
|
|
855
|
+
onResizeDblclick: me,
|
|
856
|
+
onHeaderContextmenu: ge,
|
|
857
|
+
onHeaderDblclick: ke,
|
|
858
|
+
onAddField: we
|
|
859
|
+
}, null, 8, ["columns", "selectable", "sort-key", "sort-order", "all-selected", "indeterminate", "enable-resize", "enable-field-menu", "enable-add-field", "density", "onSort", "onSelectAll"])
|
|
860
|
+
]),
|
|
861
|
+
"standard-body": $(() => [
|
|
862
|
+
_.value ? (r(), s("div", {
|
|
950
863
|
key: 0,
|
|
951
|
-
style:
|
|
864
|
+
style: g({ height: n(ee) + "px", position: "relative" })
|
|
952
865
|
}, [
|
|
953
|
-
|
|
954
|
-
style:
|
|
866
|
+
h("div", {
|
|
867
|
+
style: g({ transform: `translateY(${n(le)}px)` })
|
|
955
868
|
}, [
|
|
956
|
-
(r(!0),
|
|
957
|
-
key:
|
|
869
|
+
(r(!0), s(y, null, m(n(ye), ({ data: l, index: t }) => (r(), s(y, {
|
|
870
|
+
key: l.id
|
|
958
871
|
}, [
|
|
959
|
-
n(K)(
|
|
872
|
+
n(K)(l) ? (r(), v(de, G({
|
|
960
873
|
key: 0,
|
|
961
874
|
ref_for: !0,
|
|
962
875
|
ref: (a) => ae(a, t)
|
|
963
|
-
}, { ref_for: !0 },
|
|
964
|
-
onToggle: (a) => n(
|
|
965
|
-
}), null, 16, ["onToggle"])) : (r(),
|
|
876
|
+
}, { ref_for: !0 }, se(l), {
|
|
877
|
+
onToggle: (a) => n(J)(ie(l))
|
|
878
|
+
}), null, 16, ["onToggle"])) : (r(), v(Ze, G({
|
|
966
879
|
key: 1,
|
|
967
880
|
ref_for: !0,
|
|
968
881
|
ref: (a) => ae(a, t)
|
|
969
|
-
}, { ref_for: !0 },
|
|
970
|
-
density:
|
|
882
|
+
}, { ref_for: !0 }, je(l), {
|
|
883
|
+
density: n(A),
|
|
971
884
|
"show-row-actions": u.showRowActions,
|
|
972
|
-
"row-action-items":
|
|
885
|
+
"row-action-items": j(l),
|
|
973
886
|
draggable: u.enableRowDrag,
|
|
974
|
-
class:
|
|
975
|
-
onSelect:
|
|
976
|
-
onClick: (a) =>
|
|
977
|
-
onDragstart: (a) =>
|
|
978
|
-
onDragover: (a) =>
|
|
979
|
-
onDrop: (a) =>
|
|
980
|
-
onDragend: n(
|
|
887
|
+
class: Je(l),
|
|
888
|
+
onSelect: n(ne),
|
|
889
|
+
onClick: (a) => p(l),
|
|
890
|
+
onDragstart: (a) => Ee(a, l),
|
|
891
|
+
onDragover: (a) => Pe(a, l),
|
|
892
|
+
onDrop: (a) => Le(a, l),
|
|
893
|
+
onDragend: n(Ie)
|
|
981
894
|
}), {
|
|
982
|
-
cell:
|
|
983
|
-
|
|
895
|
+
cell: $(({ row: a, col: f }) => [
|
|
896
|
+
H(e.$slots, "cell", {
|
|
984
897
|
row: a,
|
|
985
|
-
col:
|
|
898
|
+
col: f
|
|
986
899
|
}, () => {
|
|
987
|
-
var
|
|
900
|
+
var pe;
|
|
988
901
|
return [
|
|
989
|
-
(
|
|
902
|
+
(pe = u.fieldDefs) != null && pe.length ? (r(), v(V, {
|
|
990
903
|
key: 0,
|
|
991
904
|
"row-id": d(a),
|
|
992
|
-
field:
|
|
993
|
-
value: a[
|
|
994
|
-
class:
|
|
995
|
-
"of-cell--active":
|
|
996
|
-
"of-cell--selected":
|
|
905
|
+
field: P(f.key),
|
|
906
|
+
value: a[f.key],
|
|
907
|
+
class: F({
|
|
908
|
+
"of-cell--active": Xe(d(a), f.key),
|
|
909
|
+
"of-cell--selected": qe(d(a), f.key)
|
|
997
910
|
}),
|
|
998
|
-
onCommit:
|
|
999
|
-
onClick:
|
|
1000
|
-
}, null, 8, ["row-id", "field", "value", "class", "onClick"])) : (r(),
|
|
911
|
+
onCommit: L,
|
|
912
|
+
onClick: z((on) => u.enableKeyboard && n(ve)(d(a), f.key), ["stop"])
|
|
913
|
+
}, null, 8, ["row-id", "field", "value", "class", "onClick"])) : (r(), s("span", Zo, B(C(a, f.key) ?? "-"), 1))
|
|
1001
914
|
];
|
|
1002
915
|
}, !0)
|
|
1003
916
|
]),
|
|
1004
917
|
_: 3
|
|
1005
|
-
}, 16, ["density", "show-row-actions", "row-action-items", "draggable", "class", "onClick", "onDragstart", "onDragover", "onDrop", "onDragend"]))
|
|
918
|
+
}, 16, ["density", "show-row-actions", "row-action-items", "draggable", "class", "onSelect", "onClick", "onDragstart", "onDragover", "onDrop", "onDragend"]))
|
|
1006
919
|
], 64))), 128))
|
|
1007
920
|
], 4)
|
|
1008
|
-
], 4)) : (r(!0),
|
|
1009
|
-
key:
|
|
921
|
+
], 4)) : (r(!0), s(y, { key: 1 }, m(n(T), (l) => (r(), s(y, {
|
|
922
|
+
key: l.id
|
|
1010
923
|
}, [
|
|
1011
|
-
n(K)(
|
|
924
|
+
n(K)(l) ? (r(), v(de, G({
|
|
1012
925
|
key: 0,
|
|
1013
926
|
ref_for: !0
|
|
1014
|
-
},
|
|
1015
|
-
onToggle: (t) => n(
|
|
1016
|
-
}), null, 16, ["onToggle"])) : (r(),
|
|
927
|
+
}, se(l), {
|
|
928
|
+
onToggle: (t) => n(J)(ie(l))
|
|
929
|
+
}), null, 16, ["onToggle"])) : (r(), v(Ze, G({
|
|
1017
930
|
key: 1,
|
|
1018
931
|
ref_for: !0
|
|
1019
|
-
},
|
|
1020
|
-
density:
|
|
932
|
+
}, je(l), {
|
|
933
|
+
density: n(A),
|
|
1021
934
|
"show-row-actions": u.showRowActions,
|
|
1022
|
-
"row-action-items":
|
|
935
|
+
"row-action-items": j(l),
|
|
1023
936
|
draggable: u.enableRowDrag,
|
|
1024
|
-
class:
|
|
1025
|
-
onSelect:
|
|
1026
|
-
onClick: (t) =>
|
|
1027
|
-
onDragstart: (t) =>
|
|
1028
|
-
onDragover: (t) =>
|
|
1029
|
-
onDrop: (t) =>
|
|
1030
|
-
onDragend: n(
|
|
937
|
+
class: Je(l),
|
|
938
|
+
onSelect: n(ne),
|
|
939
|
+
onClick: (t) => p(l),
|
|
940
|
+
onDragstart: (t) => Ee(t, l),
|
|
941
|
+
onDragover: (t) => Pe(t, l),
|
|
942
|
+
onDrop: (t) => Le(t, l),
|
|
943
|
+
onDragend: n(Ie)
|
|
1031
944
|
}), {
|
|
1032
|
-
cell:
|
|
1033
|
-
|
|
945
|
+
cell: $(({ row: t, col: a }) => [
|
|
946
|
+
H(e.$slots, "cell", {
|
|
1034
947
|
row: t,
|
|
1035
948
|
col: a
|
|
1036
949
|
}, () => {
|
|
1037
|
-
var
|
|
950
|
+
var f;
|
|
1038
951
|
return [
|
|
1039
|
-
(
|
|
952
|
+
(f = u.fieldDefs) != null && f.length ? (r(), v(V, {
|
|
1040
953
|
key: 0,
|
|
1041
954
|
"row-id": d(t),
|
|
1042
|
-
field:
|
|
955
|
+
field: P(a.key),
|
|
1043
956
|
value: t[a.key],
|
|
1044
|
-
class:
|
|
1045
|
-
"of-cell--active":
|
|
1046
|
-
"of-cell--selected":
|
|
957
|
+
class: F({
|
|
958
|
+
"of-cell--active": Xe(d(t), a.key),
|
|
959
|
+
"of-cell--selected": qe(d(t), a.key)
|
|
1047
960
|
}),
|
|
1048
|
-
onCommit:
|
|
1049
|
-
onClick:
|
|
1050
|
-
}, null, 8, ["row-id", "field", "value", "class", "onClick"])) : (r(),
|
|
961
|
+
onCommit: L,
|
|
962
|
+
onClick: z((pe) => u.enableKeyboard && n(ve)(d(t), a.key), ["stop"])
|
|
963
|
+
}, null, 8, ["row-id", "field", "value", "class", "onClick"])) : (r(), s("span", _o, B(C(t, a.key) ?? "-"), 1))
|
|
1051
964
|
];
|
|
1052
965
|
}, !0)
|
|
1053
966
|
]),
|
|
1054
967
|
_: 3
|
|
1055
|
-
}, 16, ["density", "show-row-actions", "row-action-items", "draggable", "class", "onClick", "onDragstart", "onDragover", "onDrop", "onDragend"]))
|
|
968
|
+
}, 16, ["density", "show-row-actions", "row-action-items", "draggable", "class", "onSelect", "onClick", "onDragstart", "onDragover", "onDrop", "onDragend"]))
|
|
1056
969
|
], 64))), 128))
|
|
1057
|
-
],
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
970
|
+
]),
|
|
971
|
+
_: 3
|
|
972
|
+
}, 8, ["has-fixed-columns", "show-selection-bar", "selection-count", "selection-items", "fixed-width", "show-fixed-shadow", "columns", "fixed-columns", "scrollable-columns", "selectable", "show-row-actions", "use-virtual", "total-height", "offset-y", "onSelectionAction", "onFixedScroll"]),
|
|
973
|
+
n(gl) ? (r(), s("div", {
|
|
974
|
+
key: 0,
|
|
1061
975
|
class: "of-resize-indicator",
|
|
1062
|
-
style:
|
|
1063
|
-
}, null, 4)) :
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
onDuplicate: Zl
|
|
1094
|
-
}, null, 8, ["visible", "col-key", "col-label", "field-type", "x", "y"])) : D("", !0),
|
|
1095
|
-
(r(), w(ko, { to: "body" }, [
|
|
1096
|
-
oe.value ? (r(), i("div", nt, [
|
|
1097
|
-
c("button", {
|
|
976
|
+
style: g({ left: n(kl) + "px" })
|
|
977
|
+
}, null, 4)) : M("", !0),
|
|
978
|
+
Gl.value ? (r(), v(vo, {
|
|
979
|
+
key: 1,
|
|
980
|
+
"draft-count": n(We).size,
|
|
981
|
+
onCommitAll: Nl,
|
|
982
|
+
onDiscardAll: Ol
|
|
983
|
+
}, null, 8, ["draft-count"])) : M("", !0),
|
|
984
|
+
Ge.value ? (r(), v(yo, {
|
|
985
|
+
key: 2,
|
|
986
|
+
onClick: Vl
|
|
987
|
+
})) : M("", !0),
|
|
988
|
+
u.enableFieldManagement ? (r(), v(n(ll), {
|
|
989
|
+
key: 3,
|
|
990
|
+
visible: R.value.visible,
|
|
991
|
+
"col-key": R.value.colKey,
|
|
992
|
+
"col-label": R.value.colLabel,
|
|
993
|
+
"field-type": R.value.fieldType,
|
|
994
|
+
x: R.value.x,
|
|
995
|
+
y: R.value.y,
|
|
996
|
+
onClose: o[16] || (o[16] = (l) => R.value.visible = !1),
|
|
997
|
+
onRename: Yl,
|
|
998
|
+
onChangeType: jl,
|
|
999
|
+
onSort: o[17] || (o[17] = (l, t) => n(q)(l)),
|
|
1000
|
+
onHide: Xl,
|
|
1001
|
+
onDelete: ql,
|
|
1002
|
+
onDuplicate: Jl
|
|
1003
|
+
}, null, 8, ["visible", "col-key", "col-label", "field-type", "x", "y"])) : M("", !0),
|
|
1004
|
+
(r(), v(fo, { to: "body" }, [
|
|
1005
|
+
oe.value ? (r(), s("div", en, [
|
|
1006
|
+
h("button", {
|
|
1098
1007
|
type: "button",
|
|
1099
1008
|
class: "of-add-field-overlay__backdrop",
|
|
1100
1009
|
tabindex: "-1",
|
|
1101
1010
|
"aria-hidden": "true",
|
|
1102
|
-
onClick:
|
|
1011
|
+
onClick: o[18] || (o[18] = (l) => oe.value = !1)
|
|
1103
1012
|
}),
|
|
1104
|
-
|
|
1105
|
-
|
|
1013
|
+
h("div", ln, [
|
|
1014
|
+
N(n(ol), { onSelect: Ql })
|
|
1106
1015
|
])
|
|
1107
|
-
])) :
|
|
1016
|
+
])) : M("", !0)
|
|
1108
1017
|
]))
|
|
1109
1018
|
], 38));
|
|
1110
1019
|
}
|
|
1111
1020
|
});
|
|
1112
1021
|
export {
|
|
1113
|
-
|
|
1022
|
+
Mn as default
|
|
1114
1023
|
};
|