@pungfe/element 0.4.2 → 0.4.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/{advance-BgC6leFW.js → advance-B-xmy4yT.js} +238 -226
- package/dist/{advance-ZfXigX22.cjs → advance-emP1TSG4.cjs} +1 -1
- package/dist/advance.cjs +1 -1
- package/dist/advance.js +1 -1
- package/dist/{basic-Ca9a_7hy.js → basic-CN2_IPqZ.js} +1 -1
- package/dist/{basic-B_vlXCXi.cjs → basic-Crm6Sse7.cjs} +1 -1
- package/dist/basic.cjs +1 -1
- package/dist/basic.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/{locales-ByOjIOSY.js → locales-DWPf4a6G.js} +8 -4
- package/dist/locales-NzOtKeRt.cjs +1 -0
- package/dist/locales.cjs +1 -1
- package/dist/locales.js +1 -1
- package/package.json +1 -1
- package/dist/locales-y1WTaGAW.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, d as u, g as d, k as f, l as p, n as m, o as h, s as g, u as _, w as v, x as y, y as ee } from "./basic-
|
|
2
|
-
import { ElFormItem as b, ElMessage as te, ElPopconfirm as ne, ElPopover as re, ElScrollbar as x, ElSpace as ie, ElSwitch as ae, ElText as S, genFileId as C, useLocale as
|
|
3
|
-
import { Fragment as
|
|
1
|
+
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, d as u, g as d, k as f, l as p, n as m, o as h, s as g, u as _, w as v, x as y, y as ee } from "./basic-CN2_IPqZ.js";
|
|
2
|
+
import { ElFormItem as b, ElMessage as te, ElPopconfirm as ne, ElPopover as re, ElScrollbar as x, ElSpace as ie, ElSwitch as ae, ElText as S, genFileId as C, useLocale as w } from "element-plus";
|
|
3
|
+
import { Fragment as oe, computed as T, createBlock as se, createCommentVNode as ce, createElementBlock as E, createElementVNode as le, createSlots as ue, createTextVNode as de, createVNode as D, defineComponent as O, guardReactiveProps as fe, inject as pe, isRef as me, isVNode as he, mergeModels as ge, mergeProps as _e, nextTick as ve, normalizeProps as ye, openBlock as k, ref as be, renderSlot as xe, resolveComponent as Se, resolveDirective as Ce, toDisplayString as we, toValue as Te, unref as A, useModel as Ee, useTemplateRef as De, watch as Oe, withCtx as j, withDirectives as ke } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/advance/XButtonAsync.vue
|
|
6
|
-
var
|
|
6
|
+
var Ae = /* @__PURE__ */ O({
|
|
7
7
|
__name: "XButtonAsync",
|
|
8
8
|
props: {
|
|
9
9
|
action: { type: Function },
|
|
@@ -24,20 +24,20 @@ var je = /* @__PURE__ */ D({
|
|
|
24
24
|
} catch (e) {
|
|
25
25
|
console.log(e);
|
|
26
26
|
}
|
|
27
|
-
}), n =
|
|
28
|
-
return (n, i) => (
|
|
27
|
+
}), n = pe(ee, void 0), r = T(() => e.link ?? n);
|
|
28
|
+
return (n, i) => (k(), se(A(y), _e({
|
|
29
29
|
disabled: e.disabled,
|
|
30
30
|
icon: e.icon,
|
|
31
31
|
type: e.type,
|
|
32
32
|
link: r.value,
|
|
33
33
|
size: e.size,
|
|
34
34
|
text: e.text
|
|
35
|
-
}, { onClick:
|
|
36
|
-
default:
|
|
35
|
+
}, { onClick: A(t) }), {
|
|
36
|
+
default: j(() => [xe(n.$slots, "default")]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16, ["onClick"]));
|
|
39
39
|
}
|
|
40
|
-
}),
|
|
40
|
+
}), je = /* @__PURE__ */ O({
|
|
41
41
|
__name: "XButtonConfirm",
|
|
42
42
|
props: {
|
|
43
43
|
title: {},
|
|
@@ -53,14 +53,14 @@ var je = /* @__PURE__ */ D({
|
|
|
53
53
|
},
|
|
54
54
|
emits: ["cancel", "confirm"],
|
|
55
55
|
setup(e, { emit: t }) {
|
|
56
|
-
let { t: n } =
|
|
57
|
-
return (t, i) => (
|
|
58
|
-
title: e.title ??
|
|
56
|
+
let { t: n } = w(pe(l, void 0)), r = t, i = pe(ee, void 0), a = T(() => e.link ?? i);
|
|
57
|
+
return (t, i) => (k(), se(A(ne), {
|
|
58
|
+
title: e.title ?? A(n)("el.common.confirmExecute"),
|
|
59
59
|
width: "auto",
|
|
60
60
|
onCancel: i[0] ||= () => r("cancel"),
|
|
61
61
|
onConfirm: i[1] ||= () => r("confirm")
|
|
62
62
|
}, {
|
|
63
|
-
reference:
|
|
63
|
+
reference: j(() => [D(A(y), ye(fe({
|
|
64
64
|
disabled: e.disabled,
|
|
65
65
|
icon: e.icon,
|
|
66
66
|
type: e.type,
|
|
@@ -68,31 +68,31 @@ var je = /* @__PURE__ */ D({
|
|
|
68
68
|
size: e.size,
|
|
69
69
|
text: e.text
|
|
70
70
|
})), {
|
|
71
|
-
default:
|
|
71
|
+
default: j(() => [xe(t.$slots, "default")]),
|
|
72
72
|
_: 3
|
|
73
73
|
}, 16)]),
|
|
74
|
-
actions:
|
|
74
|
+
actions: j(({ confirm: e, cancel: t }) => [D(A(y), {
|
|
75
75
|
size: "small",
|
|
76
76
|
disabled: !1,
|
|
77
77
|
onClick: t
|
|
78
78
|
}, {
|
|
79
|
-
default:
|
|
79
|
+
default: j(() => [de(we(A(n)("el.common.cancel")), 1)]),
|
|
80
80
|
_: 1
|
|
81
|
-
}, 8, ["onClick"]),
|
|
81
|
+
}, 8, ["onClick"]), D(A(y), {
|
|
82
82
|
type: "danger",
|
|
83
83
|
disabled: !1,
|
|
84
84
|
size: "small",
|
|
85
85
|
onClick: e
|
|
86
86
|
}, {
|
|
87
|
-
default:
|
|
87
|
+
default: j(() => [de(we(A(n)("el.common.confirm")), 1)]),
|
|
88
88
|
_: 1
|
|
89
89
|
}, 8, ["onClick"])]),
|
|
90
90
|
_: 3
|
|
91
91
|
}, 8, ["title"]));
|
|
92
92
|
}
|
|
93
|
-
}),
|
|
93
|
+
}), Me = /* @__PURE__ */ O({
|
|
94
94
|
__name: "XCascaderRequest",
|
|
95
|
-
props: /* @__PURE__ */
|
|
95
|
+
props: /* @__PURE__ */ ge({
|
|
96
96
|
request: { type: Function },
|
|
97
97
|
clearable: { type: Boolean },
|
|
98
98
|
disabled: {
|
|
@@ -107,9 +107,9 @@ var je = /* @__PURE__ */ D({
|
|
|
107
107
|
modelValue: {},
|
|
108
108
|
modelModifiers: {}
|
|
109
109
|
}),
|
|
110
|
-
emits: /* @__PURE__ */
|
|
110
|
+
emits: /* @__PURE__ */ ge(["prepare", "change"], ["update:modelValue"]),
|
|
111
111
|
setup(e, { expose: t, emit: n }) {
|
|
112
|
-
let r = n, i =
|
|
112
|
+
let r = n, i = Ee(e, "modelValue"), { data: a, path: o, url: s, execute: c, query: l } = e.request();
|
|
113
113
|
return t({
|
|
114
114
|
search: f(async () => {
|
|
115
115
|
r("prepare", {
|
|
@@ -122,18 +122,18 @@ var je = /* @__PURE__ */ D({
|
|
|
122
122
|
url: s,
|
|
123
123
|
execute: c,
|
|
124
124
|
query: l
|
|
125
|
-
}), (t, n) => (
|
|
125
|
+
}), (t, n) => (k(), se(A(d), _e({
|
|
126
126
|
modelValue: i.value,
|
|
127
127
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e
|
|
128
128
|
}, {
|
|
129
129
|
clearable: e.clearable,
|
|
130
130
|
disabled: e.disabled,
|
|
131
131
|
filterable: e.filterable,
|
|
132
|
-
data:
|
|
132
|
+
data: A(a),
|
|
133
133
|
props: e.props
|
|
134
134
|
}), null, 16, ["modelValue"]));
|
|
135
135
|
}
|
|
136
|
-
}),
|
|
136
|
+
}), Ne = { class: "flex-1 overflow-hidden" }, Pe = /* @__PURE__ */ O({
|
|
137
137
|
__name: "XFormFlex",
|
|
138
138
|
props: {
|
|
139
139
|
content: { type: Function },
|
|
@@ -146,21 +146,21 @@ var je = /* @__PURE__ */ D({
|
|
|
146
146
|
size: {}
|
|
147
147
|
},
|
|
148
148
|
setup(e, { expose: t }) {
|
|
149
|
-
let n =
|
|
149
|
+
let n = De("form");
|
|
150
150
|
t({
|
|
151
151
|
validate: () => n.value?.validate(),
|
|
152
152
|
clearValidate: () => n.value?.clearValidate()
|
|
153
153
|
});
|
|
154
154
|
let r = () => e.content?.({ data: e.data ?? {} });
|
|
155
|
-
return (e, t) => (
|
|
156
|
-
default:
|
|
155
|
+
return (e, t) => (k(), E("div", Ne, [D(A(x), null, {
|
|
156
|
+
default: j(() => [D(A(u), _e({
|
|
157
157
|
ref_key: "form",
|
|
158
158
|
ref: n
|
|
159
159
|
}, e.$props, { content: r }), null, 16)]),
|
|
160
160
|
_: 1
|
|
161
161
|
})]));
|
|
162
162
|
}
|
|
163
|
-
}),
|
|
163
|
+
}), Fe = /* @__PURE__ */ O({
|
|
164
164
|
__name: "XFormRequestNext",
|
|
165
165
|
props: {
|
|
166
166
|
request: { type: Function },
|
|
@@ -177,7 +177,7 @@ var je = /* @__PURE__ */ D({
|
|
|
177
177
|
},
|
|
178
178
|
emits: ["prepare"],
|
|
179
179
|
setup(e, { expose: t, emit: n }) {
|
|
180
|
-
let r = n, { data: i, isFetching: a, execute: o, path: s, url: c, query: l } = e.request(), d = JSON.stringify(i.value), p =
|
|
180
|
+
let r = n, { data: i, isFetching: a, execute: o, path: s, url: c, query: l } = e.request(), d = JSON.stringify(i.value), p = T(() => a.value || (typeof e.disabled == "function" ? e.disabled({ data: i.value }) : e.disabled)), m = De("form"), h = () => i.value = JSON.parse(d), g = () => m.value?.validate(), _ = () => m.value?.clearValidate(), v = () => {
|
|
181
181
|
h(), m.value?.resetFields();
|
|
182
182
|
}, y = f(async () => {
|
|
183
183
|
r("prepare", {
|
|
@@ -194,23 +194,23 @@ var je = /* @__PURE__ */ D({
|
|
|
194
194
|
reset: h,
|
|
195
195
|
resetFields: v
|
|
196
196
|
}), (t, n) => {
|
|
197
|
-
let r =
|
|
198
|
-
return
|
|
197
|
+
let r = Ce("loading");
|
|
198
|
+
return ke((k(), se(A(u), _e({
|
|
199
199
|
ref_key: "form",
|
|
200
200
|
ref: m,
|
|
201
201
|
class: "flex flex-1 flex-col gap-2 overflow-hidden"
|
|
202
202
|
}, {
|
|
203
|
-
data:
|
|
203
|
+
data: A(i),
|
|
204
204
|
disabled: p.value,
|
|
205
205
|
inline: e.inline,
|
|
206
206
|
labelPosition: e.labelPosition,
|
|
207
207
|
labelSuffix: e.labelSuffix,
|
|
208
208
|
labelWidth: e.labelWidth,
|
|
209
209
|
content: ee
|
|
210
|
-
}), null, 16)), [[r,
|
|
210
|
+
}), null, 16)), [[r, A(a)]]);
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
}),
|
|
213
|
+
}), Ie = /* @__PURE__ */ O({
|
|
214
214
|
__name: "XRequest",
|
|
215
215
|
props: {
|
|
216
216
|
request: { type: Function },
|
|
@@ -240,18 +240,18 @@ var je = /* @__PURE__ */ D({
|
|
|
240
240
|
url: l,
|
|
241
241
|
execute: u,
|
|
242
242
|
search: d
|
|
243
|
-
}), (e, t) =>
|
|
244
|
-
data:
|
|
245
|
-
paging:
|
|
246
|
-
path:
|
|
247
|
-
query:
|
|
248
|
-
isFetching:
|
|
249
|
-
search:
|
|
250
|
-
}, () => [
|
|
243
|
+
}), (e, t) => xe(e.$slots, "default", {
|
|
244
|
+
data: A(i),
|
|
245
|
+
paging: A(a),
|
|
246
|
+
path: A(o),
|
|
247
|
+
query: A(s),
|
|
248
|
+
isFetching: A(c),
|
|
249
|
+
search: A(d)
|
|
250
|
+
}, () => [D(p)]);
|
|
251
251
|
}
|
|
252
|
-
}),
|
|
252
|
+
}), Le = /* @__PURE__ */ O({
|
|
253
253
|
__name: "XSelectRequest",
|
|
254
|
-
props: /* @__PURE__ */
|
|
254
|
+
props: /* @__PURE__ */ ge({
|
|
255
255
|
request: { type: Function },
|
|
256
256
|
supplement: { type: Function },
|
|
257
257
|
collapseTagsTooltip: { type: Boolean },
|
|
@@ -280,14 +280,14 @@ var je = /* @__PURE__ */ D({
|
|
|
280
280
|
modelValue: {},
|
|
281
281
|
modelModifiers: {}
|
|
282
282
|
}),
|
|
283
|
-
emits: /* @__PURE__ */
|
|
283
|
+
emits: /* @__PURE__ */ ge([
|
|
284
284
|
"prepare",
|
|
285
285
|
"blur",
|
|
286
286
|
"change",
|
|
287
287
|
"focus"
|
|
288
288
|
], ["update:modelValue"]),
|
|
289
289
|
setup(e, { expose: t, emit: n }) {
|
|
290
|
-
let r = n, i =
|
|
290
|
+
let r = n, i = Ee(e, "modelValue"), { data: a, isFetching: o, path: s, url: c, execute: l, query: u } = e.request(), d = f(async (e) => {
|
|
291
291
|
r("prepare", {
|
|
292
292
|
path: s.value,
|
|
293
293
|
query: u.value
|
|
@@ -300,10 +300,10 @@ var je = /* @__PURE__ */ D({
|
|
|
300
300
|
url: c,
|
|
301
301
|
execute: l,
|
|
302
302
|
query: u
|
|
303
|
-
}), (t, n) => (
|
|
304
|
-
data:
|
|
305
|
-
supplement:
|
|
306
|
-
remoteMethod:
|
|
303
|
+
}), (t, n) => (k(), se(A(h), _e({
|
|
304
|
+
data: A(a),
|
|
305
|
+
supplement: A(p),
|
|
306
|
+
remoteMethod: A(d),
|
|
307
307
|
factory: e.factory,
|
|
308
308
|
allowCreate: e.allowCreate,
|
|
309
309
|
clearable: e.clearable,
|
|
@@ -312,7 +312,7 @@ var je = /* @__PURE__ */ D({
|
|
|
312
312
|
remote: e.remote,
|
|
313
313
|
filterable: e.remote || e.filterable,
|
|
314
314
|
disabled: e.disabled,
|
|
315
|
-
loading:
|
|
315
|
+
loading: A(o) || e.loading,
|
|
316
316
|
multiple: e.multiple,
|
|
317
317
|
size: e.size
|
|
318
318
|
}, {
|
|
@@ -323,26 +323,26 @@ var je = /* @__PURE__ */ D({
|
|
|
323
323
|
onChange: n[3] ||= (e) => t.$emit("change", e)
|
|
324
324
|
}), null, 16, ["modelValue"]));
|
|
325
325
|
}
|
|
326
|
-
}),
|
|
326
|
+
}), Re = /* @__PURE__ */ O({
|
|
327
327
|
name: "Rank",
|
|
328
328
|
__name: "rank",
|
|
329
329
|
setup(e) {
|
|
330
|
-
return (e, t) => (
|
|
330
|
+
return (e, t) => (k(), E("svg", {
|
|
331
331
|
xmlns: "http://www.w3.org/2000/svg",
|
|
332
332
|
viewBox: "0 0 1024 1024"
|
|
333
|
-
}, [
|
|
333
|
+
}, [le("path", {
|
|
334
334
|
fill: "currentColor",
|
|
335
335
|
d: "m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"
|
|
336
336
|
})]));
|
|
337
337
|
}
|
|
338
|
-
}),
|
|
338
|
+
}), ze = /* @__PURE__ */ O({
|
|
339
339
|
name: "Setting",
|
|
340
340
|
__name: "setting",
|
|
341
341
|
setup(e) {
|
|
342
|
-
return (e, t) => (
|
|
342
|
+
return (e, t) => (k(), E("svg", {
|
|
343
343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
344
344
|
viewBox: "0 0 1024 1024"
|
|
345
|
-
}, [
|
|
345
|
+
}, [le("path", {
|
|
346
346
|
fill: "currentColor",
|
|
347
347
|
d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"
|
|
348
348
|
})]));
|
|
@@ -350,7 +350,7 @@ var je = /* @__PURE__ */ D({
|
|
|
350
350
|
});
|
|
351
351
|
//#endregion
|
|
352
352
|
//#region node_modules/sortablejs/modular/sortable.esm.js
|
|
353
|
-
function
|
|
353
|
+
function Be(e, t, n) {
|
|
354
354
|
return (t = qe(t)) in e ? Object.defineProperty(e, t, {
|
|
355
355
|
value: n,
|
|
356
356
|
enumerable: !0,
|
|
@@ -358,16 +358,16 @@ function Ve(e, t, n) {
|
|
|
358
358
|
writable: !0
|
|
359
359
|
}) : e[t] = n, e;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
return
|
|
361
|
+
function Ve() {
|
|
362
|
+
return Ve = Object.assign ? Object.assign.bind() : function(e) {
|
|
363
363
|
for (var t = 1; t < arguments.length; t++) {
|
|
364
364
|
var n = arguments[t];
|
|
365
365
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
366
366
|
}
|
|
367
367
|
return e;
|
|
368
|
-
},
|
|
368
|
+
}, Ve.apply(null, arguments);
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function He(e, t) {
|
|
371
371
|
var n = Object.keys(e);
|
|
372
372
|
if (Object.getOwnPropertySymbols) {
|
|
373
373
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -377,12 +377,12 @@ function Ue(e, t) {
|
|
|
377
377
|
}
|
|
378
378
|
return n;
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function Ue(e) {
|
|
381
381
|
for (var t = 1; t < arguments.length; t++) {
|
|
382
382
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
383
|
-
t % 2 ?
|
|
384
|
-
|
|
385
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
383
|
+
t % 2 ? He(Object(n), !0).forEach(function(t) {
|
|
384
|
+
Be(e, t, n[t]);
|
|
385
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : He(Object(n)).forEach(function(t) {
|
|
386
386
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
387
387
|
});
|
|
388
388
|
}
|
|
@@ -629,7 +629,7 @@ function Ct() {
|
|
|
629
629
|
target: t,
|
|
630
630
|
rect: R(t)
|
|
631
631
|
});
|
|
632
|
-
var n =
|
|
632
|
+
var n = Ue({}, e[e.length - 1].rect);
|
|
633
633
|
if (t.thisAnimationDuration) {
|
|
634
634
|
var r = st(t, !0);
|
|
635
635
|
r && (n.top -= r.f, n.left -= r.e);
|
|
@@ -691,7 +691,7 @@ var Et = [], Dt = { initializeByDefault: !0 }, Ot = {
|
|
|
691
691
|
};
|
|
692
692
|
var i = e + "Global";
|
|
693
693
|
Et.forEach(function(r) {
|
|
694
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
694
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Ue({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Ue({ sortable: t }, n)));
|
|
695
695
|
});
|
|
696
696
|
},
|
|
697
697
|
initializePlugins: function(e, t, n, r) {
|
|
@@ -699,7 +699,7 @@ var Et = [], Dt = { initializeByDefault: !0 }, Ot = {
|
|
|
699
699
|
var i = r.pluginName;
|
|
700
700
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
701
701
|
var a = new r(e, t, e.options);
|
|
702
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
702
|
+
a.sortable = e, a.options = e.options, e[i] = a, Ve(n, a.defaults);
|
|
703
703
|
}
|
|
704
704
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
705
705
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -709,7 +709,7 @@ var Et = [], Dt = { initializeByDefault: !0 }, Ot = {
|
|
|
709
709
|
getEventProperties: function(e, t) {
|
|
710
710
|
var n = {};
|
|
711
711
|
return Et.forEach(function(r) {
|
|
712
|
-
typeof r.eventProperties == "function" &&
|
|
712
|
+
typeof r.eventProperties == "function" && Ve(n, r.eventProperties.call(t[r.pluginName], e));
|
|
713
713
|
}), n;
|
|
714
714
|
},
|
|
715
715
|
modifyOption: function(e, t, n) {
|
|
@@ -727,14 +727,14 @@ function kt(e) {
|
|
|
727
727
|
bubbles: !0,
|
|
728
728
|
cancelable: !0
|
|
729
729
|
}) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
|
|
730
|
-
var v =
|
|
730
|
+
var v = Ue(Ue({}, m), Ot.getEventProperties(r, t));
|
|
731
731
|
for (var y in v) h[y] = v[y];
|
|
732
732
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
735
|
var At = ["evt"], V = function(e, t) {
|
|
736
736
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = We(n, At);
|
|
737
|
-
Ot.pluginEvent.bind(Q)(e, t,
|
|
737
|
+
Ot.pluginEvent.bind(Q)(e, t, Ue({
|
|
738
738
|
dragEl: U,
|
|
739
739
|
parentEl: W,
|
|
740
740
|
ghostEl: G,
|
|
@@ -769,7 +769,7 @@ var At = ["evt"], V = function(e, t) {
|
|
|
769
769
|
}, i));
|
|
770
770
|
};
|
|
771
771
|
function H(e) {
|
|
772
|
-
kt(
|
|
772
|
+
kt(Ue({
|
|
773
773
|
putSortable: Y,
|
|
774
774
|
cloneEl: q,
|
|
775
775
|
targetEl: U,
|
|
@@ -844,7 +844,7 @@ var pn = function(e) {
|
|
|
844
844
|
};
|
|
845
845
|
function Q(e, t) {
|
|
846
846
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
847
|
-
this.el = e, this.options = t =
|
|
847
|
+
this.el = e, this.options = t = Ve({}, t), e[B] = this;
|
|
848
848
|
var n = {
|
|
849
849
|
group: null,
|
|
850
850
|
sort: !0,
|
|
@@ -889,7 +889,7 @@ function Q(e, t) {
|
|
|
889
889
|
};
|
|
890
890
|
for (var r in Ot.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
891
891
|
for (var i in un(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
892
|
-
this.nativeDraggable = t.forceFallback ? !1 : an, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? M(e, "pointerdown", this._onTapStart) : (M(e, "mousedown", this._onTapStart), M(e, "touchstart", this._onTapStart)), this.nativeDraggable && (M(e, "dragover", this), M(e, "dragenter", this)), Bt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []),
|
|
892
|
+
this.nativeDraggable = t.forceFallback ? !1 : an, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? M(e, "pointerdown", this._onTapStart) : (M(e, "mousedown", this._onTapStart), M(e, "touchstart", this._onTapStart)), this.nativeDraggable && (M(e, "dragover", this), M(e, "dragenter", this)), Bt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Ve(this, Ct());
|
|
893
893
|
}
|
|
894
894
|
Q.prototype = {
|
|
895
895
|
constructor: Q,
|
|
@@ -1059,7 +1059,7 @@ Q.prototype = {
|
|
|
1059
1059
|
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Lt === s, u = o.sort, d = Y || c, f, p = this, m = !1;
|
|
1060
1060
|
if ($t) return;
|
|
1061
1061
|
function h(o, s) {
|
|
1062
|
-
V(o, p,
|
|
1062
|
+
V(o, p, Ue({
|
|
1063
1063
|
evt: e,
|
|
1064
1064
|
isOwner: l,
|
|
1065
1065
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -1120,10 +1120,10 @@ Q.prototype = {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
if (b === 0 || S === n) return _(!1);
|
|
1122
1122
|
qt = n, Jt = b;
|
|
1123
|
-
var
|
|
1124
|
-
|
|
1125
|
-
var
|
|
1126
|
-
if (
|
|
1123
|
+
var w = n.nextElementSibling, oe = !1;
|
|
1124
|
+
oe = b === 1;
|
|
1125
|
+
var T = gn(K, t, U, r, n, i, e, oe);
|
|
1126
|
+
if (T !== !1) return (T === 1 || T === -1) && (oe = T === 1), $t = !0, setTimeout(vn, 30), g(), oe && !w ? t.appendChild(U) : n.parentNode.insertBefore(U, oe ? w : n), ie && bt(ie, 0, ae - ie.scrollTop), W = U.parentNode, te !== void 0 && !Xt && (Zt = Math.abs(te - R(n)[x])), v(), _(!0);
|
|
1127
1127
|
}
|
|
1128
1128
|
if (t.contains(U)) return _(!1);
|
|
1129
1129
|
}
|
|
@@ -1342,7 +1342,7 @@ tn && M(document, "touchmove", function(e) {
|
|
|
1342
1342
|
var e = [...arguments];
|
|
1343
1343
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
1344
1344
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
1345
|
-
e.utils && (Q.utils =
|
|
1345
|
+
e.utils && (Q.utils = Ue(Ue({}, Q.utils), e.utils)), Ot.mount(e);
|
|
1346
1346
|
});
|
|
1347
1347
|
}, Q.create = function(e, t) {
|
|
1348
1348
|
return new Q(e, t);
|
|
@@ -1393,7 +1393,7 @@ function Pn() {
|
|
|
1393
1393
|
Ln(e, this.options, mt(a, !1), !1);
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
|
-
},
|
|
1396
|
+
}, Ve(e, {
|
|
1397
1397
|
pluginName: "scroll",
|
|
1398
1398
|
initializeByDefault: !0
|
|
1399
1399
|
});
|
|
@@ -1415,7 +1415,7 @@ var Ln = vt(function(e, t, n, r) {
|
|
|
1415
1415
|
var p = f, m = R(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, ee = m.height, b = void 0, te = void 0, ne = p.scrollWidth, re = p.scrollHeight, x = I(p), ie = p.scrollLeft, ae = p.scrollTop;
|
|
1416
1416
|
p === c ? (b = y < ne && (x.overflowX === "auto" || x.overflowX === "scroll" || x.overflowX === "visible"), te = ee < re && (x.overflowY === "auto" || x.overflowY === "scroll" || x.overflowY === "visible")) : (b = y < ne && (x.overflowX === "auto" || x.overflowX === "scroll"), te = ee < re && (x.overflowY === "auto" || x.overflowY === "scroll"));
|
|
1417
1417
|
var S = b && (Math.abs(v - i) <= o && ie + y < ne) - (Math.abs(_ - i) <= o && !!ie), C = te && (Math.abs(g - a) <= o && ae + ee < re) - (Math.abs(h - a) <= o && !!ae);
|
|
1418
|
-
if (!$[d]) for (var
|
|
1418
|
+
if (!$[d]) for (var w = 0; w <= d; w++) $[w] || ($[w] = {});
|
|
1419
1419
|
($[d].vx != S || $[d].vy != C || $[d].el !== p) && ($[d].el = p, $[d].vx = S, $[d].vy = C, clearInterval($[d].pid), (S != 0 || C != 0) && (l = !0, $[d].pid = setInterval(function() {
|
|
1420
1420
|
r && this.layer === 0 && Q.active._onTouchMove(Mn);
|
|
1421
1421
|
var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
|
|
@@ -1449,7 +1449,7 @@ zn.prototype = {
|
|
|
1449
1449
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
1450
1450
|
},
|
|
1451
1451
|
drop: Rn
|
|
1452
|
-
},
|
|
1452
|
+
}, Ve(zn, { pluginName: "revertOnSpill" });
|
|
1453
1453
|
function Bn() {}
|
|
1454
1454
|
Bn.prototype = {
|
|
1455
1455
|
onSpill: function(e) {
|
|
@@ -1457,13 +1457,13 @@ Bn.prototype = {
|
|
|
1457
1457
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
1458
1458
|
},
|
|
1459
1459
|
drop: Rn
|
|
1460
|
-
},
|
|
1460
|
+
}, Ve(Bn, { pluginName: "removeOnSpill" }), Q.mount(new Pn()), Q.mount(Bn, zn);
|
|
1461
1461
|
//#endregion
|
|
1462
1462
|
//#region node_modules/@vueuse/integrations/dist/useSortable-Cc5LKbDD.js
|
|
1463
1463
|
function Vn(e, n, i = {}) {
|
|
1464
1464
|
let s, { document: c = a, watchElement: l = !1, ...u } = i, d = { onUpdate: (e) => {
|
|
1465
1465
|
Wn(n, e.oldIndex, e.newIndex, e);
|
|
1466
|
-
} }, f =
|
|
1466
|
+
} }, f = T(() => typeof e == "string" ? c?.querySelector(e) : t(e)), p = () => {
|
|
1467
1467
|
s?.destroy(), s = void 0;
|
|
1468
1468
|
}, m = (e) => {
|
|
1469
1469
|
!e || s !== void 0 || (s = new Q(e, {
|
|
@@ -1477,7 +1477,7 @@ function Vn(e, n, i = {}) {
|
|
|
1477
1477
|
if (t !== void 0) s?.option(e, t);
|
|
1478
1478
|
else return s?.option(e);
|
|
1479
1479
|
}, _;
|
|
1480
|
-
return l && typeof e != "string" ? _ =
|
|
1480
|
+
return l && typeof e != "string" ? _ = Oe(f, (e) => {
|
|
1481
1481
|
p(), e && m(e);
|
|
1482
1482
|
}, {
|
|
1483
1483
|
immediate: !0,
|
|
@@ -1501,17 +1501,23 @@ function Un(e) {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
function Wn(e, t, n, r = null) {
|
|
1503
1503
|
r != null && (Un(r.item), Hn(r.from, r.item, t));
|
|
1504
|
-
let i =
|
|
1504
|
+
let i = me(e), a = i ? [...Te(e)] : Te(e);
|
|
1505
1505
|
if (n >= 0 && n < a.length) {
|
|
1506
1506
|
let r = a.splice(t, 1)[0];
|
|
1507
|
-
|
|
1507
|
+
ve(() => {
|
|
1508
1508
|
a.splice(n, 0, r), i && (e.value = a);
|
|
1509
1509
|
});
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
1512
|
//#endregion
|
|
1513
1513
|
//#region src/components/advance/XTableConfig.vue?vue&type=script&setup=true&lang.tsx
|
|
1514
|
-
var Gn = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }
|
|
1514
|
+
var Gn = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" };
|
|
1515
|
+
function Kn(e) {
|
|
1516
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !he(e);
|
|
1517
|
+
}
|
|
1518
|
+
//#endregion
|
|
1519
|
+
//#region src/components/advance/XTableConfig.vue
|
|
1520
|
+
var qn = /* @__PURE__ */ O({
|
|
1515
1521
|
__name: "XTableConfig",
|
|
1516
1522
|
props: {
|
|
1517
1523
|
data: {},
|
|
@@ -1540,7 +1546,7 @@ var Gn = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Kn =
|
|
|
1540
1546
|
"selectionChange"
|
|
1541
1547
|
],
|
|
1542
1548
|
setup(e, { expose: t, emit: r }) {
|
|
1543
|
-
let a = r, { data: o, update: s, loading: c } = e.fields(),
|
|
1549
|
+
let a = r, { data: o, update: s, loading: c } = e.fields(), u = i(n(o, (e) => e.visible), (t) => {
|
|
1544
1550
|
let n = e.config[t.code];
|
|
1545
1551
|
return {
|
|
1546
1552
|
columnKey: t.code,
|
|
@@ -1549,69 +1555,72 @@ var Gn = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Kn =
|
|
|
1549
1555
|
minWidth: t.width,
|
|
1550
1556
|
content: n?.content
|
|
1551
1557
|
};
|
|
1552
|
-
}),
|
|
1553
|
-
Vn(
|
|
1558
|
+
}), d = be();
|
|
1559
|
+
Vn(d, o, {
|
|
1554
1560
|
animation: 150,
|
|
1555
1561
|
ghostClass: "bg-(--el-color-primary-light-7)",
|
|
1556
1562
|
handle: ".cursor-grab",
|
|
1557
1563
|
onUpdate: (e) => {
|
|
1558
|
-
Wn(o.value, e.oldIndex, e.newIndex, e),
|
|
1564
|
+
Wn(o.value, e.oldIndex, e.newIndex, e), ve(() => {
|
|
1559
1565
|
s(o.value);
|
|
1560
1566
|
});
|
|
1561
1567
|
}
|
|
1562
1568
|
});
|
|
1563
|
-
let
|
|
1569
|
+
let { t: f } = w(pe(l, void 0)), p = () => D(Jn, {
|
|
1564
1570
|
data: e.data,
|
|
1565
|
-
columns:
|
|
1571
|
+
columns: u.value,
|
|
1566
1572
|
showOverflowTooltip: !0,
|
|
1567
1573
|
border: !0,
|
|
1568
1574
|
onHeaderDragend: (e, t, n) => {
|
|
1569
1575
|
let r = o.value.find((e) => e.code === n.columnKey);
|
|
1570
|
-
r && (r.width = e,
|
|
1576
|
+
r && (r.width = e, ve(() => {
|
|
1571
1577
|
s(o.value);
|
|
1572
1578
|
}));
|
|
1573
1579
|
},
|
|
1574
1580
|
onRowClick: (e) => a("rowClick", e)
|
|
1575
|
-
}, null),
|
|
1581
|
+
}, null), m = () => D(re, {
|
|
1576
1582
|
trigger: "click",
|
|
1577
1583
|
width: "auto",
|
|
1578
1584
|
"popper-class": "shadow-xl bg-(--el-bg-color)"
|
|
1579
1585
|
}, {
|
|
1580
|
-
reference: () =>
|
|
1581
|
-
icon:
|
|
1586
|
+
reference: () => D(y, {
|
|
1587
|
+
icon: ze,
|
|
1582
1588
|
disabled: !1,
|
|
1583
1589
|
text: !0,
|
|
1584
1590
|
class: "absolute top-0 right-0 z-1000"
|
|
1585
1591
|
}, null),
|
|
1586
|
-
default: () =>
|
|
1587
|
-
|
|
1588
|
-
class: "flex flex-col
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
e.visible
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1592
|
+
default: () => {
|
|
1593
|
+
let e;
|
|
1594
|
+
return D("div", { class: "flex flex-col gap-2" }, [D(S, { size: "large" }, Kn(e = f("el.common.tableConfigTitle")) ? e : { default: () => [e] }), D(x, { "max-height": 500 }, { default: () => [D("div", {
|
|
1595
|
+
ref: d,
|
|
1596
|
+
class: "flex flex-col divide-y divide-[#f2f6fc]"
|
|
1597
|
+
}, { default: () => o.value.map((e) => D("div", { class: "flex w-50 items-center gap-2 py-2" }, [
|
|
1598
|
+
D(y, {
|
|
1599
|
+
text: !0,
|
|
1600
|
+
icon: Re,
|
|
1601
|
+
type: "primary",
|
|
1602
|
+
size: "small",
|
|
1603
|
+
class: "cursor-grab"
|
|
1604
|
+
}, null),
|
|
1605
|
+
D(S, { class: "flex-1 overflow-ellipsis" }, { default: () => [e.label] }),
|
|
1606
|
+
D(ae, {
|
|
1607
|
+
size: "small",
|
|
1608
|
+
modelValue: e.visible,
|
|
1609
|
+
"onUpdate:modelValue": (t) => {
|
|
1610
|
+
e.visible = t, ve(() => {
|
|
1611
|
+
s(o.value);
|
|
1612
|
+
});
|
|
1613
|
+
}
|
|
1614
|
+
}, null)
|
|
1615
|
+
])) })] })]);
|
|
1616
|
+
}
|
|
1608
1617
|
});
|
|
1609
1618
|
return t({ data: e.data }), (e, t) => {
|
|
1610
|
-
let n =
|
|
1611
|
-
return
|
|
1619
|
+
let n = Ce("loading");
|
|
1620
|
+
return ke((k(), E("div", Gn, [D(m), D(p)])), [[n, A(c)]]);
|
|
1612
1621
|
};
|
|
1613
1622
|
}
|
|
1614
|
-
}),
|
|
1623
|
+
}), Jn = /* @__PURE__ */ O({
|
|
1615
1624
|
__name: "XTableFlex",
|
|
1616
1625
|
props: {
|
|
1617
1626
|
cellClassName: { type: [Function, String] },
|
|
@@ -1640,7 +1649,7 @@ var Gn = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Kn =
|
|
|
1640
1649
|
"selectionChange"
|
|
1641
1650
|
],
|
|
1642
1651
|
setup(e, { expose: t }) {
|
|
1643
|
-
let n =
|
|
1652
|
+
let n = De("container"), r = v(n), i = De("table");
|
|
1644
1653
|
return t({
|
|
1645
1654
|
clearSelection: () => i.value?.clearSelection(),
|
|
1646
1655
|
getSelectionRows: () => i.value?.getSelectionRows(),
|
|
@@ -1649,31 +1658,31 @@ var Gn = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Kn =
|
|
|
1649
1658
|
setScrollLeft: (e) => i.value?.scrollTo(e),
|
|
1650
1659
|
setScrollTop: (e) => i.value?.scrollTo(e),
|
|
1651
1660
|
toggleRowSelection: (e, t, n) => i.value?.toggleRowSelection(e, t, n)
|
|
1652
|
-
}), (e, t) => (
|
|
1661
|
+
}), (e, t) => (k(), E("div", {
|
|
1653
1662
|
ref_key: "container",
|
|
1654
1663
|
ref: n,
|
|
1655
1664
|
class: "flex-1 overflow-hidden"
|
|
1656
|
-
}, [
|
|
1665
|
+
}, [D(A(c), _e({
|
|
1657
1666
|
ref_key: "table",
|
|
1658
1667
|
ref: i
|
|
1659
1668
|
}, { ...e.$props }, {
|
|
1660
|
-
height:
|
|
1669
|
+
height: A(r).height.value,
|
|
1661
1670
|
onRowClick: t[0] ||= (t) => e.$emit("rowClick", t),
|
|
1662
1671
|
onRowDblclick: t[1] ||= (t) => e.$emit("rowDblclick", t),
|
|
1663
1672
|
onSelectionChange: t[2] ||= (t) => e.$emit("selectionChange", t),
|
|
1664
1673
|
onHeaderDragend: t[3] ||= (t, n, r) => e.$emit("headerDragend", t, n, r)
|
|
1665
1674
|
}), null, 16, ["height"])], 512));
|
|
1666
1675
|
}
|
|
1667
|
-
}),
|
|
1676
|
+
}), Yn = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Xn = {
|
|
1668
1677
|
key: 0,
|
|
1669
1678
|
class: "flex justify-end"
|
|
1670
1679
|
};
|
|
1671
|
-
function
|
|
1672
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1680
|
+
function Zn(e) {
|
|
1681
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !he(e);
|
|
1673
1682
|
}
|
|
1674
1683
|
//#endregion
|
|
1675
1684
|
//#region src/components/advance/XTableRequestConfigNext.vue
|
|
1676
|
-
var
|
|
1685
|
+
var Qn = /* @__PURE__ */ O({
|
|
1677
1686
|
__name: "XTableRequestConfigNext",
|
|
1678
1687
|
props: {
|
|
1679
1688
|
request: { type: Function },
|
|
@@ -1717,7 +1726,7 @@ var Zn = /* @__PURE__ */ D({
|
|
|
1717
1726
|
}), s();
|
|
1718
1727
|
}), ne = f(async () => {
|
|
1719
1728
|
d.value = JSON.parse(ee), te();
|
|
1720
|
-
}), { data: C, update:
|
|
1729
|
+
}), { data: C, update: le, loading: ue } = e.fields(), de = n(C, (e) => e.visible), O = i(de, (t) => {
|
|
1721
1730
|
let n = e.config[t.code];
|
|
1722
1731
|
return {
|
|
1723
1732
|
columnKey: t.code,
|
|
@@ -1726,91 +1735,94 @@ var Zn = /* @__PURE__ */ D({
|
|
|
1726
1735
|
minWidth: t.width,
|
|
1727
1736
|
content: n?.content
|
|
1728
1737
|
};
|
|
1729
|
-
}),
|
|
1730
|
-
Vn(
|
|
1738
|
+
}), fe = n(de, (e) => e.search), me = T(() => !!fe.value.length), he = be();
|
|
1739
|
+
Vn(he, C, {
|
|
1731
1740
|
animation: 150,
|
|
1732
1741
|
ghostClass: "bg-(--el-color-primary-light-7)",
|
|
1733
1742
|
handle: ".cursor-grab",
|
|
1734
1743
|
onUpdate: (e) => {
|
|
1735
|
-
Wn(C.value, e.oldIndex, e.newIndex, e),
|
|
1736
|
-
|
|
1744
|
+
Wn(C.value, e.oldIndex, e.newIndex, e), ve(() => {
|
|
1745
|
+
le(C.value);
|
|
1737
1746
|
});
|
|
1738
1747
|
}
|
|
1739
1748
|
});
|
|
1740
|
-
let
|
|
1741
|
-
labelPosition:
|
|
1749
|
+
let ge = pe(l, void 0), { t: _e } = w(ge), ye = () => D(u, {
|
|
1750
|
+
labelPosition: ge?.value.name.toLowerCase() === "zh-cn" ? "left" : "top",
|
|
1742
1751
|
data: d.value,
|
|
1743
|
-
disabled:
|
|
1744
|
-
content: ({ data: t }) =>
|
|
1752
|
+
disabled: ue.value || m.value,
|
|
1753
|
+
content: ({ data: t }) => D("div", { class: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-x-2" }, [[...fe.value.map((n) => {
|
|
1745
1754
|
let r = e.config[n.code];
|
|
1746
|
-
return
|
|
1755
|
+
return D(_, {
|
|
1747
1756
|
label: r?.label ?? n.label,
|
|
1748
|
-
content: () => r?.search?.({ query: t }) ??
|
|
1757
|
+
content: () => r?.search?.({ query: t }) ?? D(p, {
|
|
1749
1758
|
disabled: !0,
|
|
1750
1759
|
modelValue: n.code
|
|
1751
1760
|
}, null)
|
|
1752
1761
|
}, null);
|
|
1753
|
-
}),
|
|
1762
|
+
}), D(b, null, {
|
|
1754
1763
|
default: () => {
|
|
1755
1764
|
let e, t;
|
|
1756
|
-
return
|
|
1765
|
+
return D(ie, null, { default: () => [D(Ae, { action: () => {
|
|
1757
1766
|
let e = d.value;
|
|
1758
1767
|
e.pageIndex = void 0, e.pageSize = void 0, te();
|
|
1759
|
-
} },
|
|
1768
|
+
} }, Zn(e = _e("el.common.query")) ? e : { default: () => [e] }), D(y, { onClick: () => ne() }, Zn(t = _e("el.common.reset")) ? t : { default: () => [t] })] });
|
|
1760
1769
|
},
|
|
1761
|
-
label: () =>
|
|
1770
|
+
label: () => D("div", { style: "height: 22px" }, null)
|
|
1762
1771
|
})]])
|
|
1763
|
-
}, null),
|
|
1772
|
+
}, null), xe = () => e.header?.({
|
|
1764
1773
|
data: o.value,
|
|
1765
1774
|
isFetching: m.value,
|
|
1766
1775
|
paging: v.value,
|
|
1767
1776
|
path: c.value,
|
|
1768
1777
|
query: d.value
|
|
1769
|
-
}),
|
|
1778
|
+
}), Se = () => D(Jn, {
|
|
1770
1779
|
data: o.value,
|
|
1771
|
-
columns:
|
|
1780
|
+
columns: O.value,
|
|
1772
1781
|
showOverflowTooltip: !0,
|
|
1773
1782
|
border: !0,
|
|
1774
1783
|
onHeaderDragend: (e, t, n) => {
|
|
1775
1784
|
let r = C.value.find((e) => e.code === n.columnKey);
|
|
1776
|
-
r && (r.width = e,
|
|
1777
|
-
|
|
1785
|
+
r && (r.width = e, ve(() => {
|
|
1786
|
+
le(C.value);
|
|
1778
1787
|
}));
|
|
1779
1788
|
}
|
|
1780
|
-
}, null),
|
|
1789
|
+
}, null), we = () => D(re, {
|
|
1781
1790
|
trigger: "click",
|
|
1782
1791
|
width: "auto",
|
|
1783
1792
|
"popper-class": "shadow-xl bg-(--el-bg-color)"
|
|
1784
1793
|
}, {
|
|
1785
|
-
reference: () =>
|
|
1786
|
-
icon:
|
|
1794
|
+
reference: () => D(y, {
|
|
1795
|
+
icon: ze,
|
|
1787
1796
|
text: !0,
|
|
1788
1797
|
disabled: !1,
|
|
1789
1798
|
class: "absolute top-0 right-0 z-1000"
|
|
1790
1799
|
}, null),
|
|
1791
|
-
default: () =>
|
|
1792
|
-
|
|
1793
|
-
class: "flex flex-col
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
e.visible
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1800
|
+
default: () => {
|
|
1801
|
+
let e;
|
|
1802
|
+
return D("div", { class: "flex flex-col gap-2" }, [D(S, { size: "large" }, Zn(e = _e("el.common.tableConfigTitle")) ? e : { default: () => [e] }), D(x, { "max-height": 500 }, { default: () => [D("div", {
|
|
1803
|
+
ref: he,
|
|
1804
|
+
class: "flex flex-col divide-y divide-[#f2f6fc]"
|
|
1805
|
+
}, { default: () => C.value.map((e) => D("div", { class: "flex w-50 items-center gap-2 py-2" }, [
|
|
1806
|
+
D(y, {
|
|
1807
|
+
text: !0,
|
|
1808
|
+
icon: Re,
|
|
1809
|
+
type: "primary",
|
|
1810
|
+
size: "small",
|
|
1811
|
+
class: "cursor-grab"
|
|
1812
|
+
}, null),
|
|
1813
|
+
D(S, { class: "flex-1 overflow-ellipsis" }, { default: () => [e.label] }),
|
|
1814
|
+
D(ae, {
|
|
1815
|
+
size: "small",
|
|
1816
|
+
modelValue: e.visible,
|
|
1817
|
+
"onUpdate:modelValue": (t) => {
|
|
1818
|
+
e.visible = t, ve(() => {
|
|
1819
|
+
le(C.value);
|
|
1820
|
+
});
|
|
1821
|
+
}
|
|
1822
|
+
}, null)
|
|
1823
|
+
])) })] })]);
|
|
1824
|
+
}
|
|
1825
|
+
}), Te = () => D(g, {
|
|
1814
1826
|
size: "small",
|
|
1815
1827
|
layout: e.paginationLayout,
|
|
1816
1828
|
total: v.value.itemCount,
|
|
@@ -1834,25 +1846,25 @@ var Zn = /* @__PURE__ */ D({
|
|
|
1834
1846
|
query: d,
|
|
1835
1847
|
path: c
|
|
1836
1848
|
}), (t, n) => {
|
|
1837
|
-
let r =
|
|
1838
|
-
return
|
|
1839
|
-
|
|
1849
|
+
let r = Ce("loading");
|
|
1850
|
+
return k(), E(oe, null, [
|
|
1851
|
+
me.value ? (k(), se(ye, {
|
|
1840
1852
|
key: 0,
|
|
1841
1853
|
class: "rounded bg-(--el-fill-color-darker) px-2 pt-4"
|
|
1842
|
-
})) :
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
e.pagination ? (
|
|
1848
|
-
])), [[r,
|
|
1854
|
+
})) : ce("", !0),
|
|
1855
|
+
D(xe),
|
|
1856
|
+
ke((k(), E("div", Yn, [
|
|
1857
|
+
D(we),
|
|
1858
|
+
D(Se),
|
|
1859
|
+
e.pagination ? (k(), E("div", Xn, [D(Te)])) : ce("", !0)
|
|
1860
|
+
])), [[r, A(ue) || A(m)]])
|
|
1849
1861
|
], 64);
|
|
1850
1862
|
};
|
|
1851
1863
|
}
|
|
1852
|
-
}),
|
|
1864
|
+
}), $n = { class: "flex flex-1 flex-col gap-2 overflow-hidden" }, er = {
|
|
1853
1865
|
key: 0,
|
|
1854
1866
|
class: "flex justify-end"
|
|
1855
|
-
},
|
|
1867
|
+
}, tr = /* @__PURE__ */ O({
|
|
1856
1868
|
__name: "XTableRequestNext",
|
|
1857
1869
|
props: {
|
|
1858
1870
|
request: { type: Function },
|
|
@@ -1910,7 +1922,7 @@ var Zn = /* @__PURE__ */ D({
|
|
|
1910
1922
|
query: s,
|
|
1911
1923
|
path: o
|
|
1912
1924
|
});
|
|
1913
|
-
let m = () => e.header?.({ query: s.value }), h = () =>
|
|
1925
|
+
let m = () => e.header?.({ query: s.value }), h = () => D(Jn, {
|
|
1914
1926
|
data: i.value,
|
|
1915
1927
|
columns: e.columns,
|
|
1916
1928
|
showOverflowTooltip: e.showOverflowTooltip,
|
|
@@ -1922,7 +1934,7 @@ var Zn = /* @__PURE__ */ D({
|
|
|
1922
1934
|
cellStyle: e.cellStyle,
|
|
1923
1935
|
rowClassName: e.rowClassName,
|
|
1924
1936
|
rowStyle: e.rowStyle
|
|
1925
|
-
}, null), _ = () =>
|
|
1937
|
+
}, null), _ = () => D(g, {
|
|
1926
1938
|
size: "small",
|
|
1927
1939
|
layout: e.paginationLayout,
|
|
1928
1940
|
total: u.value.itemCount,
|
|
@@ -1937,18 +1949,18 @@ var Zn = /* @__PURE__ */ D({
|
|
|
1937
1949
|
}
|
|
1938
1950
|
}, null), v = () => e.footer?.({ query: s.value });
|
|
1939
1951
|
return (t, n) => {
|
|
1940
|
-
let r =
|
|
1941
|
-
return
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
e.pagination ? (
|
|
1945
|
-
|
|
1946
|
-
])), [[r,
|
|
1952
|
+
let r = Ce("loading");
|
|
1953
|
+
return ke((k(), E("div", $n, [
|
|
1954
|
+
D(m),
|
|
1955
|
+
D(h),
|
|
1956
|
+
e.pagination ? (k(), E("div", er, [D(_)])) : ce("", !0),
|
|
1957
|
+
D(v)
|
|
1958
|
+
])), [[r, A(c)]]);
|
|
1947
1959
|
};
|
|
1948
1960
|
}
|
|
1949
|
-
}),
|
|
1961
|
+
}), nr = /* @__PURE__ */ O({
|
|
1950
1962
|
__name: "XUploadOssNext",
|
|
1951
|
-
props: /* @__PURE__ */
|
|
1963
|
+
props: /* @__PURE__ */ ge({
|
|
1952
1964
|
maxSize: { default: () => 50 * 1024 * 1024 },
|
|
1953
1965
|
accept: {},
|
|
1954
1966
|
disabled: { type: Boolean },
|
|
@@ -1964,7 +1976,7 @@ var Zn = /* @__PURE__ */ D({
|
|
|
1964
1976
|
}),
|
|
1965
1977
|
emits: ["update:modelValue"],
|
|
1966
1978
|
setup(e) {
|
|
1967
|
-
let t =
|
|
1979
|
+
let t = pe(s), n = Ee(e, "modelValue"), r = T(() => typeof t?.oss == "function" ? t.oss() : t?.oss), i = be(""), a = (e) => {
|
|
1968
1980
|
let t = `${r.value?.dir}/${Date.now()}/${e.name}`;
|
|
1969
1981
|
return i.value = `${r.value?.host}/${t}`, {
|
|
1970
1982
|
...r.value,
|
|
@@ -1976,17 +1988,17 @@ var Zn = /* @__PURE__ */ D({
|
|
|
1976
1988
|
if (!/^\d+$/.test(e)) return !1;
|
|
1977
1989
|
let t = Number(e);
|
|
1978
1990
|
return !Number.isSafeInteger(t) || e.length < 12 || e.length > 16 ? !1 : (new Date(t), t >= Date.UTC(2e3, 0, 1) && t <= Date.UTC(2100, 0, 1));
|
|
1979
|
-
}, p =
|
|
1991
|
+
}, p = T(() => [].concat(n.value ?? []).reverse().map((e) => {
|
|
1980
1992
|
let t = e.split("/"), n = t.at(-1), r = n?.split("_").at(0);
|
|
1981
1993
|
return (!r || !f(r)) && (r = t.at(-2)), r && !f(r) && (r = `${C()}`), {
|
|
1982
1994
|
name: n,
|
|
1983
1995
|
url: e,
|
|
1984
1996
|
uid: Number(r)
|
|
1985
1997
|
};
|
|
1986
|
-
})), { t: h } =
|
|
1998
|
+
})), { t: h } = w(pe(l, void 0));
|
|
1987
1999
|
return (t, n) => {
|
|
1988
|
-
let i =
|
|
1989
|
-
return
|
|
2000
|
+
let i = Se("XButton");
|
|
2001
|
+
return k(), se(A(m), _e({
|
|
1990
2002
|
accept: e.accept,
|
|
1991
2003
|
action: r.value?.host,
|
|
1992
2004
|
data: a,
|
|
@@ -1995,35 +2007,35 @@ var Zn = /* @__PURE__ */ D({
|
|
|
1995
2007
|
onRemove: c,
|
|
1996
2008
|
onSuccess: u,
|
|
1997
2009
|
onPreview: d
|
|
1998
|
-
}, { showFileList: "" }),
|
|
1999
|
-
default:
|
|
2010
|
+
}, { showFileList: "" }), ue({
|
|
2011
|
+
default: j(() => [xe(t.$slots, "default", {}, () => [D(i, {
|
|
2000
2012
|
type: "primary",
|
|
2001
2013
|
size: "small"
|
|
2002
2014
|
}, {
|
|
2003
|
-
default:
|
|
2015
|
+
default: j(() => [de(we(A(h)("el.uploadOss.placeholder")), 1)]),
|
|
2004
2016
|
_: 1
|
|
2005
2017
|
})])]),
|
|
2006
2018
|
_: 2
|
|
2007
2019
|
}, ["tip" in t.$slots ? {
|
|
2008
2020
|
name: "tip",
|
|
2009
|
-
fn:
|
|
2021
|
+
fn: j(() => [xe(t.$slots, "tip")]),
|
|
2010
2022
|
key: "0"
|
|
2011
2023
|
} : void 0]), 1040);
|
|
2012
2024
|
};
|
|
2013
2025
|
}
|
|
2014
|
-
}),
|
|
2015
|
-
XButtonAsync: () =>
|
|
2016
|
-
XButtonConfirm: () =>
|
|
2017
|
-
XCascaderRequest: () =>
|
|
2018
|
-
XFormFlex: () =>
|
|
2019
|
-
XFormRequestNext: () =>
|
|
2020
|
-
XRequest: () =>
|
|
2021
|
-
XSelectRequest: () =>
|
|
2022
|
-
XTableConfig: () =>
|
|
2023
|
-
XTableFlex: () =>
|
|
2024
|
-
XTableRequestConfigNext: () =>
|
|
2025
|
-
XTableRequestNext: () =>
|
|
2026
|
-
XUploadOssNext: () =>
|
|
2026
|
+
}), rr = /* @__PURE__ */ e({
|
|
2027
|
+
XButtonAsync: () => Ae,
|
|
2028
|
+
XButtonConfirm: () => je,
|
|
2029
|
+
XCascaderRequest: () => Me,
|
|
2030
|
+
XFormFlex: () => Pe,
|
|
2031
|
+
XFormRequestNext: () => Fe,
|
|
2032
|
+
XRequest: () => Ie,
|
|
2033
|
+
XSelectRequest: () => Le,
|
|
2034
|
+
XTableConfig: () => qn,
|
|
2035
|
+
XTableFlex: () => Jn,
|
|
2036
|
+
XTableRequestConfigNext: () => Qn,
|
|
2037
|
+
XTableRequestNext: () => tr,
|
|
2038
|
+
XUploadOssNext: () => nr
|
|
2027
2039
|
});
|
|
2028
2040
|
//#endregion
|
|
2029
|
-
export {
|
|
2041
|
+
export { Jn as a, Ie as c, Me as d, je as f, Qn as i, Fe as l, nr as n, qn as o, Ae as p, tr as r, Le as s, rr as t, Pe as u };
|