@dazhicheng/ui 1.5.226 → 1.5.228
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.
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Me, useSlots as Ee, ref as Oe, computed as g, toValue as T, getCurrentInstance as $e, onMounted as q, watch as O, onUnmounted as ke, createElementBlock as G, openBlock as J, normalizeClass as V, unref as a, createCommentVNode as Ae, createElementVNode as Re, createVNode as $, renderSlot as p, createSlots as L, renderList as Q, withCtx as v, normalizeProps as X, guardReactiveProps as Y, mergeProps as Z, toHandlers as _e, nextTick as Be } from "vue";
|
|
2
2
|
import "../../tt-button/index.js";
|
|
3
3
|
import "../../tt-checkbox/index.js";
|
|
4
4
|
import "../../tt-empty/index.js";
|
|
5
|
-
import { kebabToCamelCase as
|
|
5
|
+
import { kebabToCamelCase as Ve } from "../../../packages/utils/src/string.js";
|
|
6
6
|
import "axios";
|
|
7
7
|
import "element-plus";
|
|
8
|
-
import { isFunction as
|
|
9
|
-
import { extractResourceFromApi as
|
|
10
|
-
import
|
|
8
|
+
import { isFunction as Le } from "../../../packages/utils/src/is.js";
|
|
9
|
+
import { extractResourceFromApi as Ke, generateTestId as k } from "../../../packages/utils/src/testid-helper.js";
|
|
10
|
+
import je from "xe-utils";
|
|
11
11
|
import "dayjs";
|
|
12
12
|
import "dayjs/plugin/utc";
|
|
13
13
|
import "dayjs/plugin/timezone";
|
|
14
|
-
import { mergeWithArrayOverride as
|
|
14
|
+
import { mergeWithArrayOverride as xe } from "../../../packages/utils/src/merge.js";
|
|
15
15
|
import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
16
16
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
17
17
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
18
18
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
19
19
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
20
|
-
import { omit as
|
|
20
|
+
import { omit as ze } from "lodash-es";
|
|
21
21
|
import "../../tt-select/index.js";
|
|
22
22
|
import "../../tt-radio-group/index.js";
|
|
23
23
|
import "../../tt-panel-select/index.js";
|
|
24
24
|
import "../../tt-upload/index.js";
|
|
25
25
|
import "../../tt-api-component/index.js";
|
|
26
26
|
import "vee-validate";
|
|
27
|
-
import { useForm as
|
|
27
|
+
import { useForm as De } from "../../tt-form/src/useForm.js";
|
|
28
28
|
import "zod";
|
|
29
29
|
import "@vee-validate/zod";
|
|
30
|
-
import { useStore as
|
|
30
|
+
import { useStore as Ne } from "@tanstack/vue-store";
|
|
31
31
|
import "es-toolkit/compat";
|
|
32
32
|
import "../../tt-form/src/shared/zod-defaults.js";
|
|
33
33
|
import "../../tt-nav-anchor/index.js";
|
|
34
34
|
import "../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
35
|
-
import { useDesign as
|
|
36
|
-
import { useDebounceFn as
|
|
35
|
+
import { useDesign as He } from "../../../packages/hooks/src/useDesign.js";
|
|
36
|
+
import { useDebounceFn as K } from "../../../packages/hooks/src/useDebounce.js";
|
|
37
37
|
import "../../tt-icon/index.js";
|
|
38
38
|
import "../../tt-form/src/components/Slot.js";
|
|
39
39
|
import "../../tt-form-item-error-tooltip/index.js";
|
|
@@ -48,7 +48,7 @@ import "../../tt-drawer/index.js";
|
|
|
48
48
|
import "../../tt-modal/index.js";
|
|
49
49
|
import "../../tt-text/index.js";
|
|
50
50
|
import "../../../directives/disabled-tip/index.js";
|
|
51
|
-
import { GlobalConfig as
|
|
51
|
+
import { GlobalConfig as We } from "../../../hooks/useSetup.js";
|
|
52
52
|
import "../../tt-log/index.js";
|
|
53
53
|
/* empty css */
|
|
54
54
|
/* empty css */
|
|
@@ -59,24 +59,24 @@ import "../../tt-loading/index.js";
|
|
|
59
59
|
import "../index.js";
|
|
60
60
|
import "vue-router";
|
|
61
61
|
import "numeral";
|
|
62
|
-
import
|
|
62
|
+
import Ue from "./components/TableColumnModal.vue2.js";
|
|
63
63
|
/* empty css */
|
|
64
|
-
import { provideFormActionTestIds as
|
|
65
|
-
import
|
|
66
|
-
import { basicTableEmits as
|
|
67
|
-
import
|
|
64
|
+
import { provideFormActionTestIds as qe } from "./utils/context.js";
|
|
65
|
+
import Ge from "./components/TableToobalTools.vue.js";
|
|
66
|
+
import { basicTableEmits as ee } from "./emits.js";
|
|
67
|
+
import Je from "./Table.vue.js";
|
|
68
68
|
/* empty css */
|
|
69
|
-
import { createTableFormContext as
|
|
70
|
-
import { useTableForm as
|
|
71
|
-
import { useCustomColumns as
|
|
72
|
-
import { useTableSlot as
|
|
73
|
-
import { tableFormProps as
|
|
74
|
-
import { getDefaultState as
|
|
75
|
-
import { TableFormApi as
|
|
76
|
-
const
|
|
69
|
+
import { createTableFormContext as Qe } from "./hooks/useTableContext.js";
|
|
70
|
+
import { useTableForm as Xe } from "./hooks/useTableForm.js";
|
|
71
|
+
import { useCustomColumns as Ye } from "./hooks/useCustomColumns.js";
|
|
72
|
+
import { useTableSlot as Ze } from "./hooks/useTableSlot.js";
|
|
73
|
+
import { tableFormProps as et } from "./props.js";
|
|
74
|
+
import { getDefaultState as tt } from "./utils/table-api.js";
|
|
75
|
+
import { TableFormApi as ot } from "./utils/table-form-api.js";
|
|
76
|
+
const rt = ["data-testid"], st = ["data-testid"], Mo = /* @__PURE__ */ Me({
|
|
77
77
|
name: "TtTableForm",
|
|
78
78
|
__name: "TableForm",
|
|
79
|
-
props:
|
|
79
|
+
props: et,
|
|
80
80
|
emits: [
|
|
81
81
|
"register",
|
|
82
82
|
"update:table-data",
|
|
@@ -85,101 +85,101 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
|
|
|
85
85
|
"export",
|
|
86
86
|
"import",
|
|
87
87
|
"set-columns",
|
|
88
|
-
...
|
|
88
|
+
...ee
|
|
89
89
|
],
|
|
90
|
-
setup(
|
|
91
|
-
var W, U
|
|
92
|
-
const u =
|
|
90
|
+
setup(te, { expose: oe, emit: re }) {
|
|
91
|
+
var H, W, U;
|
|
92
|
+
const u = te, y = re, A = Ee(), { prefixCls: R } = He("table-form"), w = Oe();
|
|
93
93
|
let t = u.tableFormApi;
|
|
94
94
|
if (!t) {
|
|
95
|
-
t = new
|
|
95
|
+
t = new ot(u);
|
|
96
96
|
const e = t;
|
|
97
|
-
e.useStore = (o) =>
|
|
97
|
+
e.useStore = (o) => Ne(t.store, o), t = e;
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const _ = (H = t == null ? void 0 : t.useStore) == null ? void 0 : H.call(t), C = g(() => {
|
|
100
100
|
var o;
|
|
101
101
|
if (u.testId) return u.testId;
|
|
102
|
-
const e = (o =
|
|
103
|
-
return e != null && e.api ?
|
|
104
|
-
}),
|
|
105
|
-
submit:
|
|
106
|
-
reset:
|
|
102
|
+
const e = (o = T(_)) == null ? void 0 : o.table;
|
|
103
|
+
return e != null && e.api ? Ke(e.api) : "table";
|
|
104
|
+
}), se = g(() => k(C.value, "tableform")), ae = g(() => k(C.value, "search-form-header")), ie = g(() => k(C.value, "search-btn-query")), le = g(() => k(C.value, "search-btn-reset")), ne = g(() => ({
|
|
105
|
+
submit: ie.value,
|
|
106
|
+
reset: le.value
|
|
107
107
|
}));
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
tableData:
|
|
111
|
-
getFormProps:
|
|
108
|
+
qe(ne);
|
|
109
|
+
const j = {}, c = $e(), S = g(() => T(_)), { getFormSlotKeysFunc: me, getTableSlotKeysFunc: pe, replaceTableSlotKey: ue, replaceFormSlotKey: ce } = Ze(), {
|
|
110
|
+
tableData: de,
|
|
111
|
+
getFormProps: B,
|
|
112
112
|
getTableProps: d,
|
|
113
|
-
getTableToolProps:
|
|
114
|
-
handleSearchInfoChange:
|
|
115
|
-
} =
|
|
113
|
+
getTableToolProps: fe,
|
|
114
|
+
handleSearchInfoChange: x
|
|
115
|
+
} = Xe(
|
|
116
116
|
S,
|
|
117
117
|
t.tableApi.reload,
|
|
118
118
|
t.tableApi.getLoading,
|
|
119
119
|
t.tableApi.getPagination,
|
|
120
|
-
|
|
121
|
-
), { run:
|
|
120
|
+
y
|
|
121
|
+
), { run: be } = K(
|
|
122
122
|
async () => {
|
|
123
123
|
const e = await r.getValues();
|
|
124
124
|
await r.resetForm(e, { force: !0 });
|
|
125
125
|
const o = await r.getValues();
|
|
126
|
-
r.setLatestSubmissionValues(o), (await (r == null ? void 0 : r.validate())).valid &&
|
|
126
|
+
r.setLatestSubmissionValues(o), (await (r == null ? void 0 : r.validate())).valid && x(o);
|
|
127
127
|
},
|
|
128
128
|
200,
|
|
129
129
|
{ leading: !0 }
|
|
130
|
-
), { run:
|
|
130
|
+
), { run: ge } = K(
|
|
131
131
|
async (e) => {
|
|
132
|
-
await t.grid.clearFilter(), await
|
|
132
|
+
await t.grid.clearFilter(), await x(e);
|
|
133
133
|
},
|
|
134
134
|
200,
|
|
135
135
|
{ leading: !0 }
|
|
136
|
-
), [
|
|
137
|
-
...
|
|
138
|
-
handleSubmit:
|
|
139
|
-
handleReset:
|
|
136
|
+
), [he, r] = De({
|
|
137
|
+
...T(B),
|
|
138
|
+
handleSubmit: ge,
|
|
139
|
+
handleReset: be,
|
|
140
140
|
submitOnEnter: !0,
|
|
141
141
|
submitButtonOptions: {
|
|
142
|
-
content: (
|
|
142
|
+
content: (W = We.form) == null ? void 0 : W.submitTitle
|
|
143
143
|
},
|
|
144
144
|
showCollapseButton: !0,
|
|
145
145
|
collapsed: !0,
|
|
146
146
|
collapseTriggerResize: !0
|
|
147
|
-
}), { initCustomSetting: ve, saveColumns:
|
|
147
|
+
}), { initCustomSetting: ve, saveColumns: Ce } = Ye({
|
|
148
148
|
getTableProps: d,
|
|
149
149
|
tableMethods: t.tableApi,
|
|
150
150
|
getProps: S
|
|
151
|
-
}),
|
|
152
|
-
await
|
|
151
|
+
}), z = async () => {
|
|
152
|
+
await Be(), t.tableApi && t.tableApi.redoHeight();
|
|
153
153
|
};
|
|
154
|
-
|
|
155
|
-
const o =
|
|
156
|
-
|
|
154
|
+
ee.forEach((e) => {
|
|
155
|
+
const o = je.camelCase(e);
|
|
156
|
+
j[o] = (...s) => y(e, ...s);
|
|
157
157
|
});
|
|
158
|
-
const
|
|
159
|
-
...
|
|
158
|
+
const Se = {
|
|
159
|
+
...j
|
|
160
160
|
};
|
|
161
|
-
function
|
|
162
|
-
t.setState((o) => o.table ? (o.table.getSyncSlotComponent = u.table.getSyncSlotComponent,
|
|
161
|
+
function Te(e) {
|
|
162
|
+
t.setState((o) => o.table ? (o.table.getSyncSlotComponent = u.table.getSyncSlotComponent, xe(
|
|
163
163
|
{
|
|
164
164
|
...e,
|
|
165
165
|
table: {
|
|
166
|
-
...
|
|
166
|
+
...tt(),
|
|
167
167
|
...e.table
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
170
|
o
|
|
171
171
|
)) : {}), e.table && t.tableApi.setState(e.table), e.form && (r == null || r.setState(e.form));
|
|
172
172
|
}
|
|
173
|
-
const { run:
|
|
173
|
+
const { run: ye } = K(
|
|
174
174
|
async (e) => {
|
|
175
|
-
r.isMounted &&
|
|
175
|
+
r.isMounted && a(S).useSearchForm ? r.validate().then(async (o) => {
|
|
176
176
|
if (o.valid) {
|
|
177
|
-
const
|
|
177
|
+
const s = await r.getValues();
|
|
178
178
|
await t.tableApi.reload({
|
|
179
179
|
...e,
|
|
180
180
|
searchInfo: {
|
|
181
181
|
...e == null ? void 0 : e.searchInfo,
|
|
182
|
-
...
|
|
182
|
+
...s
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
}
|
|
@@ -192,61 +192,57 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
|
|
|
192
192
|
},
|
|
193
193
|
200,
|
|
194
194
|
{ leading: !0 }
|
|
195
|
-
),
|
|
195
|
+
), E = {
|
|
196
196
|
tableMethods: t.tableApi,
|
|
197
197
|
formMethods: r,
|
|
198
198
|
setTableProps: t.tableApi.setState,
|
|
199
199
|
setFormProps: r.setState,
|
|
200
|
-
setProps:
|
|
201
|
-
reload:
|
|
202
|
-
selectedKeys: g(() =>
|
|
200
|
+
setProps: Te,
|
|
201
|
+
reload: ye,
|
|
202
|
+
selectedKeys: g(() => T(t.tableApi.selectedKeys))
|
|
203
203
|
};
|
|
204
|
-
async function
|
|
204
|
+
async function we() {
|
|
205
205
|
const { tableRefreshBefore: e } = S.value;
|
|
206
|
-
e &&
|
|
206
|
+
e && Le(e) && await e(), E.reload();
|
|
207
207
|
}
|
|
208
|
-
async function
|
|
208
|
+
async function Fe(e) {
|
|
209
209
|
var f, m;
|
|
210
|
-
const o = ((m = (f = S.value) == null ? void 0 : f.table) == null ? void 0 : m.columns) || [],
|
|
210
|
+
const o = ((m = (f = S.value) == null ? void 0 : f.table) == null ? void 0 : m.columns) || [], s = new Map(o.map((n) => [n.field, n])), l = e.checkedModel.map((n) => s.get(n)).filter(Boolean);
|
|
211
211
|
if (e.isExport) {
|
|
212
|
-
|
|
212
|
+
y("export", e.checkedModel, e.modalApi);
|
|
213
213
|
return;
|
|
214
214
|
}
|
|
215
215
|
e.modalApi.setModalProps({
|
|
216
216
|
confirmLoading: !0
|
|
217
|
-
}), d.value.useHttpCache && await
|
|
217
|
+
}), d.value.useHttpCache && await Ce(JSON.stringify(e.checkedModel)), t.tableApi.setTableColumns(l), e.modalApi.setModalProps({
|
|
218
218
|
confirmLoading: !1
|
|
219
|
-
}), e.modalApi.closeModal(),
|
|
219
|
+
}), e.modalApi.closeModal(), y("set-columns", l);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
var m, n, h, b,
|
|
223
|
-
const { notSetColumnField: o, columns:
|
|
224
|
-
(I =
|
|
225
|
-
columns: ((
|
|
226
|
-
(i) => i.visible !== !1
|
|
227
|
-
),
|
|
221
|
+
function D(e = !1) {
|
|
222
|
+
var m, n, h, b, F, P, I, M;
|
|
223
|
+
const { notSetColumnField: o, columns: s } = a(d), l = (b = (h = (n = ((m = t.tableApi.getTableInstance()) == null ? void 0 : m.getTableColumn()) || []) == null ? void 0 : n.visibleColumn) == null ? void 0 : h.map((i) => i.field)) == null ? void 0 : b.filter(Boolean), f = ((P = (F = a(s)) == null ? void 0 : F.filter((i) => i.visible === !0 || i.visible === void 0)) == null ? void 0 : P.map((i) => i.field)) || [];
|
|
224
|
+
(I = w.value) == null || I.openModal({
|
|
225
|
+
columns: (T(s) || []).filter((i) => i.visible !== !1),
|
|
228
226
|
displayFields: e ? f : l,
|
|
229
227
|
disabledColumnField: o || []
|
|
230
|
-
}), (M =
|
|
228
|
+
}), (M = w.value) == null || M.setModalProps({
|
|
231
229
|
title: "列设置"
|
|
232
230
|
});
|
|
233
231
|
}
|
|
234
|
-
function
|
|
235
|
-
var m, n, h, b,
|
|
236
|
-
const { notSetColumnField: o, columns:
|
|
237
|
-
(I =
|
|
238
|
-
columns: ((
|
|
239
|
-
(i) => i.visible !== !1
|
|
240
|
-
),
|
|
232
|
+
function N(e = !1) {
|
|
233
|
+
var m, n, h, b, F, P, I, M;
|
|
234
|
+
const { notSetColumnField: o, columns: s } = a(d), l = (b = (h = (n = ((m = t.tableApi.getTableInstance()) == null ? void 0 : m.getTableColumn()) || []) == null ? void 0 : n.visibleColumn) == null ? void 0 : h.map((i) => i.field)) == null ? void 0 : b.filter(Boolean), f = ((P = (F = a(s)) == null ? void 0 : F.filter((i) => i.visible === !0 || i.visible === void 0)) == null ? void 0 : P.map((i) => i.field)) || [];
|
|
235
|
+
(I = w.value) == null || I.openModal({
|
|
236
|
+
columns: (T(s) || []).filter((i) => i.visible !== !1),
|
|
241
237
|
displayFields: e ? f : l,
|
|
242
238
|
disabledColumnField: o || [],
|
|
243
239
|
isExport: !0
|
|
244
|
-
}), (M =
|
|
240
|
+
}), (M = w.value) == null || M.setModalProps({
|
|
245
241
|
title: "自定义导出"
|
|
246
242
|
});
|
|
247
243
|
}
|
|
248
|
-
|
|
249
|
-
c &&
|
|
244
|
+
Qe({ formInstance: r }), q(() => {
|
|
245
|
+
c && y("register", E, c == null ? void 0 : c.uid), setTimeout(() => {
|
|
250
246
|
ve();
|
|
251
247
|
}, 16);
|
|
252
248
|
}), O(
|
|
@@ -256,9 +252,9 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
|
|
|
256
252
|
submitButtonOptions: { loading: t.tableApi.getLoading.value }
|
|
257
253
|
});
|
|
258
254
|
},
|
|
259
|
-
{ immediate: (
|
|
255
|
+
{ immediate: (U = _.value.table) == null ? void 0 : U.immediate }
|
|
260
256
|
), O(
|
|
261
|
-
() =>
|
|
257
|
+
() => B.value,
|
|
262
258
|
(e) => {
|
|
263
259
|
r && (r == null || r.setState(e));
|
|
264
260
|
},
|
|
@@ -270,84 +266,84 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
|
|
|
270
266
|
t != null && t.tableApi && ((o = t == null ? void 0 : t.tableApi) == null || o.setState(e));
|
|
271
267
|
},
|
|
272
268
|
{ deep: !0 }
|
|
273
|
-
), window.addEventListener("resize",
|
|
274
|
-
t == null || t.mount(
|
|
269
|
+
), window.addEventListener("resize", z), q(() => {
|
|
270
|
+
t == null || t.mount(E, r), r == null || r.setState(B.value);
|
|
275
271
|
});
|
|
276
|
-
function
|
|
272
|
+
function Pe(e) {
|
|
277
273
|
return Object.fromEntries(Object.entries(e).filter(([o]) => !o.startsWith("on")));
|
|
278
274
|
}
|
|
279
|
-
function
|
|
280
|
-
return Object.fromEntries(Object.keys(e).map((
|
|
275
|
+
function Ie(e, o) {
|
|
276
|
+
return Object.fromEntries(Object.keys(e).map((s) => [s, o[s]]));
|
|
281
277
|
}
|
|
282
278
|
return O(
|
|
283
|
-
() =>
|
|
279
|
+
() => ze(u, ["tableFormApi"]),
|
|
284
280
|
() => {
|
|
285
281
|
var m;
|
|
286
|
-
const e = {}, o = ((m = c == null ? void 0 : c.vnode) == null ? void 0 : m.props) || {},
|
|
282
|
+
const e = {}, o = ((m = c == null ? void 0 : c.vnode) == null ? void 0 : m.props) || {}, s = new Set(Object.keys(u));
|
|
287
283
|
for (const [n, h] of Object.entries(o)) {
|
|
288
|
-
const b =
|
|
289
|
-
|
|
284
|
+
const b = Ve(n);
|
|
285
|
+
s.has(b) && (e[b] = h);
|
|
290
286
|
}
|
|
291
|
-
const l =
|
|
287
|
+
const l = Pe(e), f = Ie(l, u);
|
|
292
288
|
t.setState(f);
|
|
293
289
|
},
|
|
294
290
|
{ deep: !0 }
|
|
295
291
|
), ke(() => {
|
|
296
|
-
t == null || t.unmount(), window.removeEventListener("resize",
|
|
297
|
-
}),
|
|
298
|
-
class:
|
|
299
|
-
"data-testid":
|
|
292
|
+
t == null || t.unmount(), window.removeEventListener("resize", z);
|
|
293
|
+
}), oe({ ...E, instance: c }), (e, o) => (J(), G("div", {
|
|
294
|
+
class: V(a(R)),
|
|
295
|
+
"data-testid": se.value
|
|
300
296
|
}, [
|
|
301
|
-
S.value.useSearchForm ? (
|
|
297
|
+
S.value.useSearchForm ? (J(), G("div", {
|
|
302
298
|
key: 0,
|
|
303
|
-
class:
|
|
304
|
-
"data-testid":
|
|
299
|
+
class: V(`${a(R)}-header`),
|
|
300
|
+
"data-testid": ae.value
|
|
305
301
|
}, [
|
|
306
|
-
$(
|
|
307
|
-
"test-id": `${
|
|
308
|
-
},
|
|
309
|
-
|
|
310
|
-
name:
|
|
311
|
-
fn:
|
|
312
|
-
p(e.$slots,
|
|
302
|
+
$(a(he), {
|
|
303
|
+
"test-id": `${C.value}-search-form`
|
|
304
|
+
}, L({ _: 2 }, [
|
|
305
|
+
Q(a(me)(a(A)), (s) => ({
|
|
306
|
+
name: a(ce)(s),
|
|
307
|
+
fn: v((l) => [
|
|
308
|
+
p(e.$slots, s, X(Y(l || {})))
|
|
313
309
|
])
|
|
314
310
|
}))
|
|
315
311
|
]), 1032, ["test-id"]),
|
|
316
312
|
p(e.$slots, "header-down")
|
|
317
|
-
], 10,
|
|
318
|
-
|
|
319
|
-
class:
|
|
320
|
-
[`${
|
|
313
|
+
], 10, st)) : Ae("", !0),
|
|
314
|
+
Re("div", {
|
|
315
|
+
class: V({
|
|
316
|
+
[`${a(R)}-wrapper`]: !0,
|
|
321
317
|
"pt-(--tt-base-padding)!": !0,
|
|
322
|
-
"pb-(--tt-base-padding)!": !
|
|
318
|
+
"pb-(--tt-base-padding)!": !a(d).showPager
|
|
323
319
|
})
|
|
324
320
|
}, [
|
|
325
321
|
p(e.$slots, "table-top"),
|
|
326
|
-
$(
|
|
327
|
-
data:
|
|
322
|
+
$(Je, Z(a(d), {
|
|
323
|
+
data: a(de),
|
|
328
324
|
"table-row-id": e.tableRowId,
|
|
329
|
-
"table-id":
|
|
330
|
-
"form-api":
|
|
331
|
-
"table-api":
|
|
332
|
-
},
|
|
333
|
-
|
|
334
|
-
name:
|
|
335
|
-
fn:
|
|
336
|
-
p(e.$slots,
|
|
325
|
+
"table-id": C.value,
|
|
326
|
+
"form-api": a(r),
|
|
327
|
+
"table-api": a(t).tableApi
|
|
328
|
+
}, _e(Se)), L({ _: 2 }, [
|
|
329
|
+
Q(a(pe)(a(A)), (s) => ({
|
|
330
|
+
name: a(ue)(s),
|
|
331
|
+
fn: v((l) => [
|
|
332
|
+
p(e.$slots, s, X(Y(l || {})))
|
|
337
333
|
])
|
|
338
334
|
})),
|
|
339
|
-
|
|
335
|
+
a(d).showToolbar ? {
|
|
340
336
|
name: "toolbar_tools",
|
|
341
|
-
fn:
|
|
342
|
-
$(
|
|
343
|
-
onOnRefresh:
|
|
344
|
-
onOnExport:
|
|
345
|
-
onOnColumnsSetting:
|
|
337
|
+
fn: v(() => [
|
|
338
|
+
$(Ge, Z(a(fe), {
|
|
339
|
+
onOnRefresh: we,
|
|
340
|
+
onOnExport: N,
|
|
341
|
+
onOnColumnsSetting: D
|
|
346
342
|
}), {
|
|
347
|
-
"toolbar-left":
|
|
343
|
+
"toolbar-left": v(() => [
|
|
348
344
|
p(e.$slots, "t-toolbar_tools-left")
|
|
349
345
|
]),
|
|
350
|
-
"toolbar-right":
|
|
346
|
+
"toolbar-right": v(() => [
|
|
351
347
|
p(e.$slots, "t-toolbar_tools-right")
|
|
352
348
|
]),
|
|
353
349
|
_: 3
|
|
@@ -359,29 +355,29 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
|
|
|
359
355
|
]), 1040, ["data", "table-row-id", "table-id", "form-api", "table-api"]),
|
|
360
356
|
p(e.$slots, "table-bottom")
|
|
361
357
|
], 2),
|
|
362
|
-
$(
|
|
358
|
+
$(Ue, {
|
|
363
359
|
ref_key: "tableColumnModalRef",
|
|
364
|
-
ref:
|
|
365
|
-
"open-export":
|
|
366
|
-
"open-column":
|
|
367
|
-
onOnSubmit:
|
|
368
|
-
},
|
|
369
|
-
beforeFooter:
|
|
360
|
+
ref: w,
|
|
361
|
+
"open-export": N,
|
|
362
|
+
"open-column": D,
|
|
363
|
+
onOnSubmit: Fe
|
|
364
|
+
}, L({
|
|
365
|
+
beforeFooter: v(() => [
|
|
370
366
|
p(e.$slots, "t-column-modal-before-footer")
|
|
371
367
|
]),
|
|
372
368
|
_: 2
|
|
373
369
|
}, [
|
|
374
|
-
|
|
370
|
+
a(A)["t-column-modal-title"] ? {
|
|
375
371
|
name: "title",
|
|
376
|
-
fn:
|
|
372
|
+
fn: v(() => [
|
|
377
373
|
p(e.$slots, "t-column-modal-title")
|
|
378
374
|
]),
|
|
379
375
|
key: "0"
|
|
380
376
|
} : void 0
|
|
381
377
|
]), 1536)
|
|
382
|
-
], 10,
|
|
378
|
+
], 10, rt));
|
|
383
379
|
}
|
|
384
380
|
});
|
|
385
381
|
export {
|
|
386
|
-
|
|
382
|
+
Mo as default
|
|
387
383
|
};
|