@sunny-base-web/ui 0.8.45 → 0.8.47
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/index.js +1 -1
- package/dist/index.mjs +669 -667
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getCurrentInstance as lo, inject as vn, defineComponent as te, computed as M, openBlock as j, createElementBlock as Q, normalizeStyle as Me, normalizeClass as fe, createElementVNode as N, useAttrs as ar, ref as Z, createBlock as ne, unref as
|
|
2
|
-
import { Modal as Mt, Button as Ue, Tooltip as sr, Upload as cn, TimePicker as Ur, DatePicker as tr, Switch as un, Radio as Wr, Checkbox as dn, Select as mt, TreeSelect as
|
|
1
|
+
import { getCurrentInstance as lo, inject as vn, defineComponent as te, computed as M, openBlock as j, createElementBlock as Q, normalizeStyle as Me, normalizeClass as fe, createElementVNode as N, useAttrs as ar, ref as Z, createBlock as ne, unref as h, mergeProps as ae, withModifiers as Ve, withCtx as I, renderSlot as se, createTextVNode as we, toDisplayString as K, createVNode as B, createCommentVNode as le, reactive as co, h as Ke, shallowRef as sn, onErrorCaptured as xi, markRaw as $i, createStaticVNode as Pi, watch as be, onUnmounted as uo, Fragment as Fe, renderList as _e, resolveDynamicComponent as Xn, normalizeProps as Ie, defineAsyncComponent as _i, withDirectives as ln, vShow as er, resolveComponent as Ee, createSlots as He, guardReactiveProps as et, isRef as wt, toRaw as ct, provide as yn, useSlots as Ct, nextTick as at, onMounted as kt, onBeforeUnmount as fo, withKeys as po, isReactive as Ti, vModelText as Ai } from "vue";
|
|
2
|
+
import { Modal as Mt, Button as Ue, Tooltip as sr, Upload as cn, TimePicker as Ur, DatePicker as tr, Switch as un, Radio as Wr, Checkbox as dn, Select as mt, TreeSelect as Ri, Cascader as Oi, Slider as Ei, Rate as Vi, RangePicker as mo, RadioGroup as Mi, CheckboxGroup as ji, Textarea as ho, InputNumber as jt, InputPassword as Fi, Input as gn, Progress as Ni, Message as ue, Option as fn, MonthPicker as Di, Popover as Bi, WeekPicker as zi, YearPicker as Ii, Tree as Li, Dropdown as Ui, Doption as Wi, Pagination as Hi, Form as qi, FormItem as Hr } from "@arco-design/web-vue";
|
|
3
3
|
import { useI18n as Gi, $t as ve } from "@sunny-base-web/locales";
|
|
4
4
|
import { cn as Ft, isString as Vt, isHttpUrl as Ji, isObject as De, isFunction as ze, cloneDeep as nn, transformToString as vo, transformToObjectArray as yo, is as Yi, isBoolean as zn, get as qr, isEqual as Ki, set as Qi } from "@sunny-base-web/utils";
|
|
5
5
|
import { patterns as rm, startProgress as om, stopProgress as am } from "@sunny-base-web/utils";
|
|
@@ -12,7 +12,7 @@ import { set as Gr, cloneDeep as nr, isArray as rr, hasIn as ll, get as cl, debo
|
|
|
12
12
|
import { Store as fl } from "@tanstack/store";
|
|
13
13
|
import { useBreakpoints as pl, useDebounceFn as ml } from "@vueuse/core";
|
|
14
14
|
import { toTypedSchema as hl } from "@vee-validate/zod";
|
|
15
|
-
import * as
|
|
15
|
+
import * as Op from "zod";
|
|
16
16
|
import { VxeGrid as So, VxeUI as vl } from "vxe-table";
|
|
17
17
|
import { VxeSelect as yl, VxeInput as gl, VxeButton as pn, VxePager as bl } from "vxe-pc-ui";
|
|
18
18
|
import { useI18n as Co } from "vue-i18n";
|
|
@@ -132,7 +132,7 @@ const _l = Object.assign(In, {
|
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
}), Al = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
135
|
-
function
|
|
135
|
+
function Rl(e, n, t, r, o, i) {
|
|
136
136
|
return j(), Q("svg", {
|
|
137
137
|
viewBox: "0 0 48 48",
|
|
138
138
|
fill: "none",
|
|
@@ -148,8 +148,8 @@ function Ol(e, n, t, r, o, i) {
|
|
|
148
148
|
N("path", { d: "M39.6 30.557 24.043 15 8.487 30.557" }, null, -1)
|
|
149
149
|
]), 14, Al);
|
|
150
150
|
}
|
|
151
|
-
var Ln = /* @__PURE__ */ Je(Tl, [["render",
|
|
152
|
-
const
|
|
151
|
+
var Ln = /* @__PURE__ */ Je(Tl, [["render", Rl]]);
|
|
152
|
+
const Ol = Object.assign(Ln, {
|
|
153
153
|
install: (e, n) => {
|
|
154
154
|
var t;
|
|
155
155
|
const r = (t = n?.iconPrefix) != null ? t : "";
|
|
@@ -821,10 +821,10 @@ const fc = Object.assign(Zn, {
|
|
|
821
821
|
set: (C) => i("update:modelValue", C)
|
|
822
822
|
}), y = M(() => o.helpMessage || r("common.modal.helpTip")), b = Z(!1), p = () => {
|
|
823
823
|
b.value = !b.value, i("fullscreen-change", b.value);
|
|
824
|
-
},
|
|
824
|
+
}, m = async () => {
|
|
825
825
|
const C = o.onBeforeCancel;
|
|
826
826
|
typeof C == "function" && await C() === !1 || (b.value = !1, d.value = !1, i("close"));
|
|
827
|
-
}, g =
|
|
827
|
+
}, g = m, k = async () => {
|
|
828
828
|
const C = o.onBeforeOk;
|
|
829
829
|
if (typeof C == "function")
|
|
830
830
|
try {
|
|
@@ -839,7 +839,7 @@ const fc = Object.assign(Zn, {
|
|
|
839
839
|
};
|
|
840
840
|
return n({
|
|
841
841
|
toggleMaximize: p
|
|
842
|
-
}), (C, $) => (j(), ne(
|
|
842
|
+
}), (C, $) => (j(), ne(h(Mt), ae({
|
|
843
843
|
visible: d.value,
|
|
844
844
|
"onUpdate:visible": $[2] || ($[2] = (V) => d.value = V),
|
|
845
845
|
title: e.title,
|
|
@@ -868,7 +868,7 @@ const fc = Object.assign(Zn, {
|
|
|
868
868
|
])
|
|
869
869
|
]),
|
|
870
870
|
N("div", mc, [
|
|
871
|
-
y.value ? (j(), ne(
|
|
871
|
+
y.value ? (j(), ne(h(sr), {
|
|
872
872
|
key: 0,
|
|
873
873
|
content: y.value
|
|
874
874
|
}, {
|
|
@@ -879,7 +879,7 @@ const fc = Object.assign(Zn, {
|
|
|
879
879
|
onClick: $[0] || ($[0] = Ve(() => {
|
|
880
880
|
}, ["stop"]))
|
|
881
881
|
}, [
|
|
882
|
-
B(
|
|
882
|
+
B(h(xo))
|
|
883
883
|
])
|
|
884
884
|
]),
|
|
885
885
|
_: 1
|
|
@@ -890,14 +890,14 @@ const fc = Object.assign(Zn, {
|
|
|
890
890
|
class: "sunny-modal__action-btn",
|
|
891
891
|
onClick: Ve(p, ["stop"])
|
|
892
892
|
}, [
|
|
893
|
-
b.value ? (j(), ne(
|
|
893
|
+
b.value ? (j(), ne(h(lc), { key: 0 })) : (j(), ne(h(fc), { key: 1 }))
|
|
894
894
|
])) : le("", !0),
|
|
895
895
|
N("button", {
|
|
896
896
|
type: "button",
|
|
897
897
|
class: "sunny-modal__action-btn sunny-modal__action-btn--close",
|
|
898
|
-
onClick: Ve(
|
|
898
|
+
onClick: Ve(m, ["stop"])
|
|
899
899
|
}, [
|
|
900
|
-
B(
|
|
900
|
+
B(h(mn))
|
|
901
901
|
])
|
|
902
902
|
])
|
|
903
903
|
], 32)
|
|
@@ -905,30 +905,30 @@ const fc = Object.assign(Zn, {
|
|
|
905
905
|
footer: I(() => [
|
|
906
906
|
C.$slots.footer ? se(C.$slots, "footer", { key: 0 }) : (j(), Q("div", hc, [
|
|
907
907
|
se(C.$slots, "insertFooter"),
|
|
908
|
-
|
|
908
|
+
h(l).hideCancel ? le("", !0) : (j(), ne(h(Ue), ae({
|
|
909
909
|
key: 0,
|
|
910
910
|
size: "mini"
|
|
911
|
-
},
|
|
911
|
+
}, h(l).cancelButtonProps, { onClick: h(g) }), {
|
|
912
912
|
icon: I(() => [
|
|
913
|
-
B(
|
|
913
|
+
B(h(mn))
|
|
914
914
|
]),
|
|
915
915
|
default: I(() => [
|
|
916
|
-
we(" " + K(
|
|
916
|
+
we(" " + K(h(l).cancelText || h(r)("common.modal.cancel")), 1)
|
|
917
917
|
]),
|
|
918
918
|
_: 1
|
|
919
919
|
}, 16, ["onClick"])),
|
|
920
920
|
se(C.$slots, "centerFooter"),
|
|
921
|
-
|
|
921
|
+
h(l).hideOk ? le("", !0) : (j(), ne(h(Ue), ae({
|
|
922
922
|
key: 1,
|
|
923
923
|
type: "primary",
|
|
924
924
|
size: "mini",
|
|
925
|
-
loading: u.value ||
|
|
926
|
-
},
|
|
925
|
+
loading: u.value || h(l).okLoading || h(l).confirmLoading
|
|
926
|
+
}, h(l).okButtonProps, { onClick: k }), {
|
|
927
927
|
icon: I(() => [
|
|
928
|
-
B(
|
|
928
|
+
B(h(ko))
|
|
929
929
|
]),
|
|
930
930
|
default: I(() => [
|
|
931
|
-
we(" " + K(
|
|
931
|
+
we(" " + K(h(l).okText || h(r)("common.modal.confirm")), 1)
|
|
932
932
|
]),
|
|
933
933
|
_: 1
|
|
934
934
|
}, 16, ["loading"])),
|
|
@@ -1020,7 +1020,7 @@ const Fp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1020
1020
|
errorMessage: ve("error.errorMessage"),
|
|
1021
1021
|
errorStack: ve("error.errorStack")
|
|
1022
1022
|
}));
|
|
1023
|
-
xi((b, p,
|
|
1023
|
+
xi((b, p, m) => {
|
|
1024
1024
|
if (o.value)
|
|
1025
1025
|
return !1;
|
|
1026
1026
|
const g = b instanceof Error ? b : new Error(String(b));
|
|
@@ -1118,7 +1118,7 @@ function Po(e) {
|
|
|
1118
1118
|
handleTransitionEnd: u
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
1121
|
-
const
|
|
1121
|
+
const Rc = ["aria-live", "aria-busy"], Oc = ["aria-label"], Ec = {
|
|
1122
1122
|
key: 0,
|
|
1123
1123
|
class: "mt-4 text-sm text-[rgb(var(--primary-6))]"
|
|
1124
1124
|
}, Vc = /* @__PURE__ */ te({
|
|
@@ -1140,12 +1140,12 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1140
1140
|
});
|
|
1141
1141
|
return (l, u) => (j(), Q("output", {
|
|
1142
1142
|
class: fe(
|
|
1143
|
-
|
|
1143
|
+
h(Ft)(
|
|
1144
1144
|
"absolute left-0 top-0 z-100 flex size-full flex-col items-center justify-center",
|
|
1145
1145
|
"transition-all duration-500 ease-in-out",
|
|
1146
1146
|
"bg-[var(--color-bg-2)]/80 backdrop-blur-sm",
|
|
1147
1147
|
{
|
|
1148
|
-
"invisible opacity-0": !
|
|
1148
|
+
"invisible opacity-0": !h(r)
|
|
1149
1149
|
},
|
|
1150
1150
|
n.class
|
|
1151
1151
|
)
|
|
@@ -1153,9 +1153,9 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1153
1153
|
"aria-live": e.spinning ? "polite" : "off",
|
|
1154
1154
|
"aria-busy": e.spinning,
|
|
1155
1155
|
onTransitionend: u[0] || (u[0] = //@ts-ignore
|
|
1156
|
-
(...d) =>
|
|
1156
|
+
(...d) => h(i) && h(i)(...d))
|
|
1157
1157
|
}, [
|
|
1158
|
-
|
|
1158
|
+
h(o) ? (j(), Q(Fe, { key: 0 }, [
|
|
1159
1159
|
se(l.$slots, "icon", {}, () => [
|
|
1160
1160
|
N("div", {
|
|
1161
1161
|
class: "loading-spinner",
|
|
@@ -1166,12 +1166,12 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1166
1166
|
class: "dot",
|
|
1167
1167
|
"aria-hidden": "true"
|
|
1168
1168
|
})), 64))
|
|
1169
|
-
], 8,
|
|
1169
|
+
], 8, Oc)
|
|
1170
1170
|
], !0),
|
|
1171
1171
|
e.text ? (j(), Q("div", Ec, K(e.text), 1)) : le("", !0),
|
|
1172
1172
|
se(l.$slots, "default", {}, void 0, !0)
|
|
1173
1173
|
], 64)) : le("", !0)
|
|
1174
|
-
], 42,
|
|
1174
|
+
], 42, Rc));
|
|
1175
1175
|
}
|
|
1176
1176
|
}), xt = (e, n) => {
|
|
1177
1177
|
const t = e.__vccOpts || e;
|
|
@@ -1200,12 +1200,12 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1200
1200
|
});
|
|
1201
1201
|
return (l, u) => (j(), Q("output", {
|
|
1202
1202
|
class: fe(
|
|
1203
|
-
|
|
1203
|
+
h(Ft)(
|
|
1204
1204
|
"absolute left-0 top-0 z-100 flex size-full items-center justify-center",
|
|
1205
1205
|
"transition-all duration-500 ease-in-out",
|
|
1206
1206
|
"bg-[var(--color-bg-2)]/80 backdrop-blur-sm",
|
|
1207
1207
|
{
|
|
1208
|
-
"invisible opacity-0": !
|
|
1208
|
+
"invisible opacity-0": !h(r)
|
|
1209
1209
|
},
|
|
1210
1210
|
n.class
|
|
1211
1211
|
)
|
|
@@ -1214,9 +1214,9 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1214
1214
|
"aria-live": e.spinning ? "polite" : "off",
|
|
1215
1215
|
"aria-busy": e.spinning,
|
|
1216
1216
|
onTransitionend: u[0] || (u[0] = //@ts-ignore
|
|
1217
|
-
(...d) =>
|
|
1217
|
+
(...d) => h(i) && h(i)(...d))
|
|
1218
1218
|
}, [
|
|
1219
|
-
|
|
1219
|
+
h(o) ? (j(), Q("div", jc, [...u[1] || (u[1] = [
|
|
1220
1220
|
N("div", { class: "cube" }, null, -1),
|
|
1221
1221
|
N("div", { class: "shadow" }, null, -1)
|
|
1222
1222
|
])])) : le("", !0)
|
|
@@ -1237,9 +1237,9 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1237
1237
|
return (o, i) => r.value ? (j(), ne(Xn(e.icon), Ie(ae({ key: 0 }, o.$attrs)), null, 16)) : t.value ? (j(), Q("img", ae({
|
|
1238
1238
|
key: 1,
|
|
1239
1239
|
src: e.icon
|
|
1240
|
-
}, o.$attrs), null, 16, Nc)) : e.icon ? (j(), ne(
|
|
1240
|
+
}, o.$attrs), null, 16, Nc)) : e.icon ? (j(), ne(h(Zi), ae({ key: 2 }, o.$attrs, {
|
|
1241
1241
|
icon: e.icon
|
|
1242
|
-
}), null, 16, ["icon"])) : e.fallback ? (j(), ne(
|
|
1242
|
+
}), null, 16, ["icon"])) : e.fallback ? (j(), ne(h(Xi), Ie(ae({ key: 3 }, o.$attrs)), null, 16)) : le("", !0);
|
|
1243
1243
|
}
|
|
1244
1244
|
}), Dc = /* @__PURE__ */ te({
|
|
1245
1245
|
name: "SunnyScrollArea",
|
|
@@ -1259,11 +1259,11 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1259
1259
|
const { class: r, onScroll: o, ...i } = n;
|
|
1260
1260
|
return i;
|
|
1261
1261
|
});
|
|
1262
|
-
return (r, o) => (j(), ne(
|
|
1263
|
-
class:
|
|
1262
|
+
return (r, o) => (j(), ne(h(el), ae(t.value, {
|
|
1263
|
+
class: h(Ft)("relative overflow-hidden", n.class)
|
|
1264
1264
|
}), {
|
|
1265
1265
|
default: I(() => [
|
|
1266
|
-
B(
|
|
1266
|
+
B(h(tl), {
|
|
1267
1267
|
"as-child": "",
|
|
1268
1268
|
class: "h-full w-full rounded-[inherit] focus:outline-none",
|
|
1269
1269
|
onScroll: e.onScroll
|
|
@@ -1273,8 +1273,8 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1273
1273
|
]),
|
|
1274
1274
|
_: 3
|
|
1275
1275
|
}, 8, ["onScroll"]),
|
|
1276
|
-
B(
|
|
1277
|
-
B(
|
|
1276
|
+
B(h(To)),
|
|
1277
|
+
B(h(nl))
|
|
1278
1278
|
]),
|
|
1279
1279
|
_: 3
|
|
1280
1280
|
}, 16, ["class"]));
|
|
@@ -1294,8 +1294,8 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1294
1294
|
const { class: r, ...o } = n;
|
|
1295
1295
|
return o;
|
|
1296
1296
|
});
|
|
1297
|
-
return (r, o) => (j(), ne(
|
|
1298
|
-
class:
|
|
1297
|
+
return (r, o) => (j(), ne(h(rl), ae(t.value, {
|
|
1298
|
+
class: h(Ft)(
|
|
1299
1299
|
"flex touch-none select-none transition-colors",
|
|
1300
1300
|
e.orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-px",
|
|
1301
1301
|
e.orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-px",
|
|
@@ -1303,7 +1303,7 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1303
1303
|
)
|
|
1304
1304
|
}), {
|
|
1305
1305
|
default: I(() => [
|
|
1306
|
-
B(
|
|
1306
|
+
B(h(ol), { class: "relative flex-1 rounded-full bg-border" })
|
|
1307
1307
|
]),
|
|
1308
1308
|
_: 1
|
|
1309
1309
|
}, 16, ["class"]));
|
|
@@ -1324,7 +1324,7 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1324
1324
|
},
|
|
1325
1325
|
emits: ["scrollAt"],
|
|
1326
1326
|
setup(e, { emit: n }) {
|
|
1327
|
-
const t = e, r = n, o = Z(!0), i = Z(!1), l = Z(!1), u = Z(!0), d = M(() => t.shadow && t.shadowTop), y = M(() => t.shadow && t.shadowBottom), b = M(() => t.shadow && t.shadowLeft), p = M(() => t.shadow && t.shadowRight),
|
|
1327
|
+
const t = e, r = n, o = Z(!0), i = Z(!1), l = Z(!1), u = Z(!0), d = M(() => t.shadow && t.shadowTop), y = M(() => t.shadow && t.shadowBottom), b = M(() => t.shadow && t.shadowLeft), p = M(() => t.shadow && t.shadowRight), m = M(() => ({
|
|
1328
1328
|
"both-shadow": !u.value && !i.value && b.value && p.value,
|
|
1329
1329
|
"left-shadow": !u.value && b.value,
|
|
1330
1330
|
"right-shadow": !i.value && p.value
|
|
@@ -1338,8 +1338,8 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1338
1338
|
top: o.value
|
|
1339
1339
|
});
|
|
1340
1340
|
}
|
|
1341
|
-
return (k, C) => (j(), ne(
|
|
1342
|
-
class: fe([[
|
|
1341
|
+
return (k, C) => (j(), ne(h(Dc), {
|
|
1342
|
+
class: fe([[h(Ft)(t.class), m.value], "sunny-scrollbar relative"]),
|
|
1343
1343
|
"on-scroll": g
|
|
1344
1344
|
}, {
|
|
1345
1345
|
default: I(() => [
|
|
@@ -1358,7 +1358,7 @@ const Oc = ["aria-live", "aria-busy"], Rc = ["aria-label"], Ec = {
|
|
|
1358
1358
|
"border-b border-border": e.shadowBorder && !o.value && !l.value
|
|
1359
1359
|
}, "scrollbar-bottom-shadow pointer-events-none absolute bottom-0 z-10 h-12 w-full opacity-0 transition-opacity duration-300 ease-in-out will-change-[opacity]"])
|
|
1360
1360
|
}, null, 2)) : le("", !0),
|
|
1361
|
-
e.horizontal ? (j(), ne(
|
|
1361
|
+
e.horizontal ? (j(), ne(h(To), {
|
|
1362
1362
|
key: 2,
|
|
1363
1363
|
class: fe(e.scrollBarClass),
|
|
1364
1364
|
orientation: "horizontal"
|
|
@@ -1386,8 +1386,8 @@ const Ic = {
|
|
|
1386
1386
|
Upload: cn,
|
|
1387
1387
|
Rate: Vi,
|
|
1388
1388
|
Slider: Ei,
|
|
1389
|
-
Cascader:
|
|
1390
|
-
TreeSelect:
|
|
1389
|
+
Cascader: Oi,
|
|
1390
|
+
TreeSelect: Ri,
|
|
1391
1391
|
// Mentions,
|
|
1392
1392
|
// Alias for prefix if needed, or map to same
|
|
1393
1393
|
SunnySelect: mt,
|
|
@@ -1421,7 +1421,7 @@ function Ip(e) {
|
|
|
1421
1421
|
// ✅ 提取 permissionOptionsAdapter
|
|
1422
1422
|
uploadConfig: p,
|
|
1423
1423
|
// ✅ 提取 uploadConfig
|
|
1424
|
-
apiPrefix:
|
|
1424
|
+
apiPrefix: m
|
|
1425
1425
|
} = n || {};
|
|
1426
1426
|
if (Object.assign(We, {
|
|
1427
1427
|
disabled: r,
|
|
@@ -1437,7 +1437,7 @@ function Ip(e) {
|
|
|
1437
1437
|
// ✅ 添加 permissionOptionsAdapter 到全局配置
|
|
1438
1438
|
uploadConfig: p,
|
|
1439
1439
|
// ✅ 添加 uploadConfig 到全局配置
|
|
1440
|
-
apiPrefix:
|
|
1440
|
+
apiPrefix: m
|
|
1441
1441
|
}), t)
|
|
1442
1442
|
for (const g of Object.keys(t))
|
|
1443
1443
|
go(g, t[g]);
|
|
@@ -1492,12 +1492,12 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1492
1492
|
console.warn("Failed to parse modelValue:", w), u.value = [];
|
|
1493
1493
|
}
|
|
1494
1494
|
}, { immediate: !0, deep: !0 });
|
|
1495
|
-
const
|
|
1495
|
+
const m = (T) => T, g = (T) => {
|
|
1496
1496
|
if (T === 0) return "0 B";
|
|
1497
1497
|
const w = Math.floor(Math.log(T) / Math.log(Yr));
|
|
1498
1498
|
return (T / Math.pow(Yr, w)).toPrecision(3) + " " + t[w];
|
|
1499
1499
|
}, k = (T) => {
|
|
1500
|
-
const w = T.type || "",
|
|
1500
|
+
const w = T.type || "", R = (T.name || "").split(".").pop()?.toLowerCase() || "", F = {
|
|
1501
1501
|
"vscode-icons:file-type-excel": ["xls", "xlsx", "csv"],
|
|
1502
1502
|
"vscode-icons:file-type-powerpoint": ["ppt", "pptx"],
|
|
1503
1503
|
"vscode-icons:file-type-text": ["txt"],
|
|
@@ -1506,7 +1506,7 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1506
1506
|
"vscode-icons:file-type-pdf": ["pdf"]
|
|
1507
1507
|
};
|
|
1508
1508
|
for (const [G, U] of Object.entries(F))
|
|
1509
|
-
if (U.includes(
|
|
1509
|
+
if (U.includes(R) || U.some((W) => w.includes(W)))
|
|
1510
1510
|
return G;
|
|
1511
1511
|
return w.includes("excel") || w.includes("spreadsheet") ? "vscode-icons:file-type-excel" : w.includes("powerpoint") || w.includes("presentation") ? "vscode-icons:file-type-powerpoint" : w.includes("text/plain") ? "vscode-icons:file-type-text" : w.includes("word") || w.includes("document") ? "vscode-icons:file-type-word" : w.includes("zip") || w.includes("compressed") ? "vscode-icons:file-type-zip" : w.includes("pdf") ? "vscode-icons:file-type-pdf" : "vscode-icons:default-file";
|
|
1512
1512
|
}, C = () => {
|
|
@@ -1519,9 +1519,9 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1519
1519
|
ue.error(`最多上传${v.limit}个文件`);
|
|
1520
1520
|
return;
|
|
1521
1521
|
}
|
|
1522
|
-
const
|
|
1523
|
-
if (w.file.size >
|
|
1524
|
-
ue.error(`文件最大限制${g(
|
|
1522
|
+
const R = v.maxSize * 1024 * 1024;
|
|
1523
|
+
if (w.file.size > R) {
|
|
1524
|
+
ue.error(`文件最大限制${g(R)}`);
|
|
1525
1525
|
return;
|
|
1526
1526
|
}
|
|
1527
1527
|
u.value.push({
|
|
@@ -1537,10 +1537,10 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1537
1537
|
if (u.value.length === 0) return;
|
|
1538
1538
|
const T = y.value, w = u.value.filter((v) => !v.url);
|
|
1539
1539
|
for (const v of w) {
|
|
1540
|
-
const
|
|
1541
|
-
|
|
1540
|
+
const R = new FormData();
|
|
1541
|
+
R.append("fileName", v.file), R.append("encryptFile", l.value ? "1" : "0"), T.storeType && R.append("storeType", T.storeType), T.s3FileDir && R.append("s3FileDir", T.s3FileDir), T.preSigned && R.append("preSigned", T.preSigned), T.preSignedExpire && R.append("preSignedExpire", T.preSignedExpire);
|
|
1542
1542
|
try {
|
|
1543
|
-
const F = await st.post(T.action,
|
|
1543
|
+
const F = await st.post(T.action, R, {
|
|
1544
1544
|
onUploadProgress: (U) => {
|
|
1545
1545
|
if (U.total) {
|
|
1546
1546
|
const W = Math.floor(U.loaded / U.total * 100);
|
|
@@ -1560,14 +1560,14 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1560
1560
|
}, x = (T, w) => {
|
|
1561
1561
|
const v = y.value;
|
|
1562
1562
|
T.url ? Mt.confirm({
|
|
1563
|
-
title:
|
|
1564
|
-
content:
|
|
1563
|
+
title: m("提示"),
|
|
1564
|
+
content: m("是否删除该文件?"),
|
|
1565
1565
|
onOk: () => {
|
|
1566
1566
|
st.post(v.delAction, {
|
|
1567
1567
|
filePathList: [T.url],
|
|
1568
1568
|
storeType: v.storeType
|
|
1569
|
-
}).then((
|
|
1570
|
-
const { data: F } =
|
|
1569
|
+
}).then((R) => {
|
|
1570
|
+
const { data: F } = R;
|
|
1571
1571
|
ue[F.success ? "success" : "error"](F.message), F.code === 200 && (u.value.splice(w, 1), C());
|
|
1572
1572
|
});
|
|
1573
1573
|
}
|
|
@@ -1578,27 +1578,27 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1578
1578
|
}, _ = () => {
|
|
1579
1579
|
const T = y.value, w = u.value.filter((v) => v.checked);
|
|
1580
1580
|
w.length !== 0 && Mt.confirm({
|
|
1581
|
-
title:
|
|
1582
|
-
content:
|
|
1581
|
+
title: m("提示"),
|
|
1582
|
+
content: m("是否删除选中的文件?"),
|
|
1583
1583
|
onOk: () => {
|
|
1584
1584
|
d.value = !0;
|
|
1585
|
-
const v = w.map((
|
|
1585
|
+
const v = w.map((R) => R.url).filter(Boolean);
|
|
1586
1586
|
v.length > 0 ? st.post(T.delAction, {
|
|
1587
1587
|
filePathList: v,
|
|
1588
1588
|
storeType: T.storeType
|
|
1589
|
-
}).then((
|
|
1590
|
-
const { data: F } =
|
|
1589
|
+
}).then((R) => {
|
|
1590
|
+
const { data: F } = R;
|
|
1591
1591
|
ue[F.success ? "success" : "error"](F.message), F.code === 200 && (u.value = u.value.filter((G) => !G.checked), C());
|
|
1592
1592
|
}).finally(() => {
|
|
1593
1593
|
d.value = !1;
|
|
1594
|
-
}) : (u.value = u.value.filter((
|
|
1594
|
+
}) : (u.value = u.value.filter((R) => !R.checked), C(), d.value = !1);
|
|
1595
1595
|
}
|
|
1596
1596
|
});
|
|
1597
1597
|
};
|
|
1598
1598
|
return (T, w) => (j(), Q("div", Lc, [
|
|
1599
|
-
N("div", Uc, K(
|
|
1599
|
+
N("div", Uc, K(m("附件")), 1),
|
|
1600
1600
|
ln(N("div", Wc, [
|
|
1601
|
-
B(
|
|
1601
|
+
B(h(cn), {
|
|
1602
1602
|
"show-file-list": !1,
|
|
1603
1603
|
"auto-upload": !1,
|
|
1604
1604
|
multiple: "",
|
|
@@ -1607,8 +1607,8 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1607
1607
|
}, {
|
|
1608
1608
|
"upload-button": I(() => [
|
|
1609
1609
|
N("span", Hc, [
|
|
1610
|
-
B(
|
|
1611
|
-
we(" " + K(
|
|
1610
|
+
B(h(tc), { class: "mr-1 w-4 h-4" }),
|
|
1611
|
+
we(" " + K(m("选择附件")), 1)
|
|
1612
1612
|
])
|
|
1613
1613
|
]),
|
|
1614
1614
|
_: 1
|
|
@@ -1617,43 +1617,43 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1617
1617
|
class: fe(["flex items-center mr-4 transition-colors", b.value ? "text-gray-300 cursor-not-allowed" : "cursor-pointer text-gray-600 hover:text-gray-800"]),
|
|
1618
1618
|
onClick: w[0] || (w[0] = (v) => !b.value && V())
|
|
1619
1619
|
}, [
|
|
1620
|
-
B(
|
|
1621
|
-
we(" " + K(
|
|
1620
|
+
B(h(Ql), { class: "mr-1 w-4 h-4" }),
|
|
1621
|
+
we(" " + K(m("上传附件")), 1)
|
|
1622
1622
|
], 2),
|
|
1623
1623
|
N("span", {
|
|
1624
1624
|
class: "cursor-pointer text-blue-600 hover:text-blue-700 mr-4 transition-colors",
|
|
1625
1625
|
onClick: D
|
|
1626
|
-
}, K(
|
|
1626
|
+
}, K(m("全选")), 1),
|
|
1627
1627
|
N("span", {
|
|
1628
1628
|
class: fe(["mr-4 transition-colors", p.value === 0 ? "text-gray-300 cursor-not-allowed" : "cursor-pointer text-gray-500 hover:text-red-500"]),
|
|
1629
1629
|
onClick: _
|
|
1630
|
-
}, K(
|
|
1631
|
-
e.showEncrypt ? (j(), ne(
|
|
1630
|
+
}, K(m("删除")), 3),
|
|
1631
|
+
e.showEncrypt ? (j(), ne(h(dn), {
|
|
1632
1632
|
key: 0,
|
|
1633
1633
|
modelValue: l.value,
|
|
1634
1634
|
"onUpdate:modelValue": w[1] || (w[1] = (v) => l.value = v),
|
|
1635
1635
|
class: "mr-4"
|
|
1636
1636
|
}, {
|
|
1637
1637
|
default: I(() => [
|
|
1638
|
-
N("span", qc, K(
|
|
1638
|
+
N("span", qc, K(m("是否加密")), 1)
|
|
1639
1639
|
]),
|
|
1640
1640
|
_: 1
|
|
1641
1641
|
}, 8, ["modelValue"])) : le("", !0),
|
|
1642
|
-
N("span", Gc, " (" + K(
|
|
1642
|
+
N("span", Gc, " (" + K(m("单个文件最大")) + K(y.value.maxSize) + "MB," + K(m("最多上传")) + K(y.value.limit) + K(m("个")) + ") ", 1),
|
|
1643
1643
|
N("span", {
|
|
1644
1644
|
class: "ml-auto cursor-pointer text-blue-600 text-xs hover:text-blue-700 transition-colors",
|
|
1645
1645
|
onClick: w[2] || (w[2] = (v) => i.value = !i.value)
|
|
1646
|
-
}, K(i.value ?
|
|
1646
|
+
}, K(i.value ? m("隐藏") : m("展开")), 1)
|
|
1647
1647
|
], 512), [
|
|
1648
1648
|
[er, !e.readonly]
|
|
1649
1649
|
]),
|
|
1650
1650
|
ln(N("div", Jc, [
|
|
1651
1651
|
N("div", Yc, [
|
|
1652
|
-
(j(!0), Q(Fe, null, _e(u.value, (v,
|
|
1653
|
-
key: v.uid ||
|
|
1652
|
+
(j(!0), Q(Fe, null, _e(u.value, (v, R) => (j(), Q("div", {
|
|
1653
|
+
key: v.uid || R,
|
|
1654
1654
|
class: "bg-gray-50 hover:bg-gray-100 rounded p-3 relative flex items-center border border-transparent hover:border-gray-200 transition-colors group"
|
|
1655
1655
|
}, [
|
|
1656
|
-
B(
|
|
1656
|
+
B(h(_o), {
|
|
1657
1657
|
icon: k(v),
|
|
1658
1658
|
class: "w-10 h-10 mr-3 flex-shrink-0"
|
|
1659
1659
|
}, null, 8, ["icon"]),
|
|
@@ -1664,7 +1664,7 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1664
1664
|
}, K(v.name), 9, Qc),
|
|
1665
1665
|
N("div", Zc, [
|
|
1666
1666
|
N("span", Xc, K(g(v.size)), 1),
|
|
1667
|
-
B(
|
|
1667
|
+
B(h(Ni), {
|
|
1668
1668
|
percent: v.percentage / 100,
|
|
1669
1669
|
size: "small",
|
|
1670
1670
|
"show-text": !1,
|
|
@@ -1674,16 +1674,16 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1674
1674
|
N("span", eu, K(v.percentage) + "%", 1)
|
|
1675
1675
|
])
|
|
1676
1676
|
]),
|
|
1677
|
-
e.readonly ? le("", !0) : (j(), ne(
|
|
1677
|
+
e.readonly ? le("", !0) : (j(), ne(h(dn), {
|
|
1678
1678
|
key: 0,
|
|
1679
1679
|
modelValue: v.checked,
|
|
1680
1680
|
"onUpdate:modelValue": (F) => v.checked = F,
|
|
1681
1681
|
class: "absolute top-3 right-3"
|
|
1682
1682
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])),
|
|
1683
|
-
e.readonly ? le("", !0) : (j(), ne(
|
|
1683
|
+
e.readonly ? le("", !0) : (j(), ne(h($o), {
|
|
1684
1684
|
key: 1,
|
|
1685
1685
|
class: "absolute bottom-3 right-3 w-4 h-4 cursor-pointer text-gray-400 hover:text-red-500 transition-colors",
|
|
1686
|
-
onClick: (F) => x(v,
|
|
1686
|
+
onClick: (F) => x(v, R)
|
|
1687
1687
|
}, null, 8, ["onClick"]))
|
|
1688
1688
|
]))), 128))
|
|
1689
1689
|
])
|
|
@@ -1771,17 +1771,17 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1771
1771
|
"[SunnySimpleUpload] Missing required config: delAction. Please provide via props or configure globally using setupBusinessForm()."
|
|
1772
1772
|
);
|
|
1773
1773
|
const o = M(() => JSON.parse(t.modelValue || "[]")), i = n, l = (d) => {
|
|
1774
|
-
const { onProgress: y, onError: b, onSuccess: p, fileItem:
|
|
1774
|
+
const { onProgress: y, onError: b, onSuccess: p, fileItem: m, name: g } = d, k = r.value;
|
|
1775
1775
|
if (k.limit && o.value.length >= k.limit) {
|
|
1776
1776
|
ue.error(`最多只能上传 ${k.limit} 个文件`), b();
|
|
1777
1777
|
return;
|
|
1778
1778
|
}
|
|
1779
|
-
if (k.maxSize &&
|
|
1779
|
+
if (k.maxSize && m.file.size > k.maxSize * 1024 * 1024) {
|
|
1780
1780
|
ue.error(`文件大小不能超过 ${k.maxSize} MB`), b();
|
|
1781
1781
|
return;
|
|
1782
1782
|
}
|
|
1783
1783
|
var C = new FormData();
|
|
1784
|
-
C.append("fileName",
|
|
1784
|
+
C.append("fileName", m.file), C.append("encryptFile", k.encryptFile === !0 ? "1" : "0"), C.append("storeType", k.storeType), k.s3FileDir && C.append("s3FileDir", k.s3FileDir), k.preSigned && C.append("preSigned", k.preSigned === !0 ? "1" : "0"), k.preSignedExpire && C.append("preSignedExpire", String(k.preSignedExpire)), st.post(
|
|
1785
1785
|
k.action,
|
|
1786
1786
|
// ✅ 使用合并后的 action
|
|
1787
1787
|
C,
|
|
@@ -1794,7 +1794,7 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1794
1794
|
).then(($) => {
|
|
1795
1795
|
if ($.data.code === 200) {
|
|
1796
1796
|
ue.success($.data.message || "上传成功"), p($.data.result);
|
|
1797
|
-
const V = [...o.value,
|
|
1797
|
+
const V = [...o.value, m];
|
|
1798
1798
|
i("update:modelValue", JSON.stringify(V)), i("change", JSON.stringify(V));
|
|
1799
1799
|
} else
|
|
1800
1800
|
ue.error($.data.message || "上传失败"), b();
|
|
@@ -1814,15 +1814,15 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1814
1814
|
).then((b) => {
|
|
1815
1815
|
const { data: p } = b;
|
|
1816
1816
|
if (ue.success(p.message || "删除成功"), p.code === 200) {
|
|
1817
|
-
const
|
|
1818
|
-
i("update:modelValue", JSON.stringify(
|
|
1817
|
+
const m = o.value.filter((g) => g.uid !== d.uid);
|
|
1818
|
+
i("update:modelValue", JSON.stringify(m));
|
|
1819
1819
|
}
|
|
1820
1820
|
}).catch((b) => {
|
|
1821
1821
|
ue.error("删除失败"), console.error("删除文件失败:", b);
|
|
1822
1822
|
});
|
|
1823
1823
|
};
|
|
1824
1824
|
return (d, y) => {
|
|
1825
|
-
const b = Ee("a-button"), p = Ee("a-upload"),
|
|
1825
|
+
const b = Ee("a-button"), p = Ee("a-upload"), m = Ee("a-tag");
|
|
1826
1826
|
return j(), Q("div", tu, [
|
|
1827
1827
|
B(p, {
|
|
1828
1828
|
"show-file-list": !1,
|
|
@@ -1843,7 +1843,7 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1843
1843
|
_: 1
|
|
1844
1844
|
}, 8, ["action"]),
|
|
1845
1845
|
N("div", nu, [
|
|
1846
|
-
(j(!0), Q(Fe, null, _e(o.value, (g) => (j(), ne(
|
|
1846
|
+
(j(!0), Q(Fe, null, _e(o.value, (g) => (j(), ne(m, {
|
|
1847
1847
|
loading: !1,
|
|
1848
1848
|
color: g.status === "error" ? "red" : "green",
|
|
1849
1849
|
closable: "",
|
|
@@ -1937,7 +1937,7 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1937
1937
|
)), l = M(() => {
|
|
1938
1938
|
if (o.value.length === 0) return !1;
|
|
1939
1939
|
const p = o.value.filter(
|
|
1940
|
-
(
|
|
1940
|
+
(m) => t.modelValue.includes(m.value)
|
|
1941
1941
|
).length;
|
|
1942
1942
|
return p > 0 && p < o.value.length;
|
|
1943
1943
|
}), u = (p) => {
|
|
@@ -1957,15 +1957,15 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1957
1957
|
r("update:modelValue", g), r("change", g);
|
|
1958
1958
|
}
|
|
1959
1959
|
}, y = () => {
|
|
1960
|
-
const p = t.modelValue.filter((
|
|
1961
|
-
const g = t.options.find((k) => k.value ===
|
|
1960
|
+
const p = t.modelValue.filter((m) => {
|
|
1961
|
+
const g = t.options.find((k) => k.value === m);
|
|
1962
1962
|
return g && g.disabled;
|
|
1963
1963
|
});
|
|
1964
1964
|
r("update:modelValue", p), r("change", p);
|
|
1965
1965
|
}, b = (p) => {
|
|
1966
|
-
const
|
|
1967
|
-
if (!
|
|
1968
|
-
const g =
|
|
1966
|
+
const m = p.clipboardData || window.clipboardData;
|
|
1967
|
+
if (!m) return;
|
|
1968
|
+
const g = m.getData("text");
|
|
1969
1969
|
if (!g) return;
|
|
1970
1970
|
const k = g.split(/\r?\n/).map((E) => E.trim()).filter((E) => E);
|
|
1971
1971
|
if (k.length === 0) return;
|
|
@@ -1996,9 +1996,9 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
1996
1996
|
r("update:modelValue", E), r("change", E), ue.success(`成功识别并选中 ${$} 项 (Matched ${$} items)`);
|
|
1997
1997
|
}
|
|
1998
1998
|
};
|
|
1999
|
-
return (p,
|
|
1999
|
+
return (p, m) => {
|
|
2000
2000
|
const g = Ee("a-checkbox"), k = Ee("a-tooltip");
|
|
2001
|
-
return j(), ne(
|
|
2001
|
+
return j(), ne(h(ou), ae(p.$attrs, {
|
|
2002
2002
|
"model-value": e.modelValue,
|
|
2003
2003
|
options: e.options,
|
|
2004
2004
|
"filter-model": e.filterModel,
|
|
@@ -2015,7 +2015,7 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
2015
2015
|
onChange: d,
|
|
2016
2016
|
class: "pl-1"
|
|
2017
2017
|
}, {
|
|
2018
|
-
default: I(() => [...
|
|
2018
|
+
default: I(() => [...m[0] || (m[0] = [
|
|
2019
2019
|
N("span", { class: "text-[var(--color-text-1)]" }, "全选", -1)
|
|
2020
2020
|
])]),
|
|
2021
2021
|
_: 1
|
|
@@ -2027,19 +2027,19 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
2027
2027
|
class: "w-6 h-6 flex items-center justify-center rounded cursor-pointer text-[var(--color-text-3)] hover:bg-[var(--color-fill-3)] transition-all",
|
|
2028
2028
|
onClick: y
|
|
2029
2029
|
}, [
|
|
2030
|
-
B(
|
|
2030
|
+
B(h($o))
|
|
2031
2031
|
])
|
|
2032
2032
|
]),
|
|
2033
2033
|
_: 1
|
|
2034
2034
|
}),
|
|
2035
|
-
|
|
2035
|
+
m[1] || (m[1] = N("div", { class: "w-[1px] h-3 bg-[var(--color-neutral-3)] mx-1" }, null, -1)),
|
|
2036
2036
|
B(k, {
|
|
2037
2037
|
content: "支持从 Excel 或文本编辑器(↓列数据)复制多行数据,粘贴至搜索框即可自动匹配并选中。",
|
|
2038
2038
|
position: "left"
|
|
2039
2039
|
}, {
|
|
2040
2040
|
default: I(() => [
|
|
2041
2041
|
N("div", iu, [
|
|
2042
|
-
B(
|
|
2042
|
+
B(h(xo))
|
|
2043
2043
|
])
|
|
2044
2044
|
]),
|
|
2045
2045
|
_: 1
|
|
@@ -2071,19 +2071,19 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
2071
2071
|
},
|
|
2072
2072
|
emits: ["update:modelValue", "search", "change", "clear"],
|
|
2073
2073
|
setup(e, { emit: n }) {
|
|
2074
|
-
const t = e, r = n, o = M(() => t.fieldNames?.label || "label"), i = M(() => t.fieldNames?.value || "value"), l = M(() => t.modelValue.map((
|
|
2075
|
-
label:
|
|
2076
|
-
value:
|
|
2074
|
+
const t = e, r = n, o = M(() => t.fieldNames?.label || "label"), i = M(() => t.fieldNames?.value || "value"), l = M(() => t.modelValue.map((m) => ({
|
|
2075
|
+
label: m[o.value],
|
|
2076
|
+
value: m[i.value],
|
|
2077
2077
|
closable: !t.disabled,
|
|
2078
|
-
tagProps:
|
|
2078
|
+
tagProps: m.tagProps
|
|
2079
2079
|
}))), u = Z(!1);
|
|
2080
2080
|
be(
|
|
2081
2081
|
() => l.value.length,
|
|
2082
|
-
(
|
|
2083
|
-
|
|
2082
|
+
(m) => {
|
|
2083
|
+
m === 0 && (u.value = !1);
|
|
2084
2084
|
}
|
|
2085
2085
|
);
|
|
2086
|
-
const d = (
|
|
2086
|
+
const d = (m) => {
|
|
2087
2087
|
t.disabled || [
|
|
2088
2088
|
"Backspace",
|
|
2089
2089
|
"Delete",
|
|
@@ -2094,8 +2094,8 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
2094
2094
|
"ArrowDown",
|
|
2095
2095
|
"Home",
|
|
2096
2096
|
"End"
|
|
2097
|
-
].includes(
|
|
2098
|
-
}, y = (
|
|
2097
|
+
].includes(m.key) || m.preventDefault();
|
|
2098
|
+
}, y = (m, g) => {
|
|
2099
2099
|
const k = [...t.modelValue];
|
|
2100
2100
|
k.splice(g, 1), r("update:modelValue", k), r("change", k);
|
|
2101
2101
|
}, b = () => {
|
|
@@ -2103,7 +2103,7 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
2103
2103
|
}, p = () => {
|
|
2104
2104
|
t.disabled || r("search");
|
|
2105
2105
|
};
|
|
2106
|
-
return (
|
|
2106
|
+
return (m, g) => {
|
|
2107
2107
|
const k = Ee("a-input-tag"), C = Ee("a-tag"), $ = Ee("a-popover");
|
|
2108
2108
|
return j(), ne($, {
|
|
2109
2109
|
"popup-visible": u.value,
|
|
@@ -2133,7 +2133,7 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
2133
2133
|
], 32)) : le("", !0)
|
|
2134
2134
|
]),
|
|
2135
2135
|
default: I(() => [
|
|
2136
|
-
B(k, ae({ ref: "inputTagRef" },
|
|
2136
|
+
B(k, ae({ ref: "inputTagRef" }, m.$attrs, {
|
|
2137
2137
|
"model-value": l.value,
|
|
2138
2138
|
"input-value": "",
|
|
2139
2139
|
disabled: e.disabled,
|
|
@@ -2153,15 +2153,15 @@ const Lc = { class: "sunny-file-upload" }, Uc = { class: "font-bold text-gray-70
|
|
|
2153
2153
|
]]),
|
|
2154
2154
|
onClick: Ve(p, ["stop"])
|
|
2155
2155
|
}, [
|
|
2156
|
-
B(
|
|
2156
|
+
B(h(or), { class: "transition-colors group-hover:text-[var(--color-primary-6)]" })
|
|
2157
2157
|
], 2)
|
|
2158
2158
|
]),
|
|
2159
2159
|
_: 2
|
|
2160
2160
|
}, [
|
|
2161
|
-
_e(
|
|
2161
|
+
_e(m.$slots, (V, E) => ({
|
|
2162
2162
|
name: E,
|
|
2163
2163
|
fn: I((x) => [
|
|
2164
|
-
se(
|
|
2164
|
+
se(m.$slots, E, Ie(et(x || {})))
|
|
2165
2165
|
])
|
|
2166
2166
|
}))
|
|
2167
2167
|
]), 1040, ["model-value", "disabled", "placeholder", "max-tag-count"])
|
|
@@ -2686,17 +2686,17 @@ class pu {
|
|
|
2686
2686
|
if (!Array.isArray(o) || o.length === 0)
|
|
2687
2687
|
return;
|
|
2688
2688
|
const i = this.state?.schema?.find(
|
|
2689
|
-
(
|
|
2689
|
+
(m) => m.fieldName === r
|
|
2690
2690
|
);
|
|
2691
2691
|
if (!i) return;
|
|
2692
2692
|
let l = i.componentProps;
|
|
2693
2693
|
if (typeof l == "function")
|
|
2694
2694
|
try {
|
|
2695
2695
|
l = l(n, this.form);
|
|
2696
|
-
} catch (
|
|
2696
|
+
} catch (m) {
|
|
2697
2697
|
console.warn(
|
|
2698
2698
|
`[SunnyForm] Failed to resolve componentProps for field ${r}`,
|
|
2699
|
-
|
|
2699
|
+
m
|
|
2700
2700
|
);
|
|
2701
2701
|
return;
|
|
2702
2702
|
}
|
|
@@ -2721,17 +2721,17 @@ class pu {
|
|
|
2721
2721
|
if (typeof o != "string" || o === "" || Array.isArray(o))
|
|
2722
2722
|
return;
|
|
2723
2723
|
const i = this.state?.schema?.find(
|
|
2724
|
-
(
|
|
2724
|
+
(m) => m.fieldName === r
|
|
2725
2725
|
);
|
|
2726
2726
|
if (!i) return;
|
|
2727
2727
|
let l = i.componentProps;
|
|
2728
2728
|
if (typeof l == "function")
|
|
2729
2729
|
try {
|
|
2730
2730
|
l = l(n, this.form);
|
|
2731
|
-
} catch (
|
|
2731
|
+
} catch (m) {
|
|
2732
2732
|
console.warn(
|
|
2733
2733
|
`[SunnyForm] Failed to resolve componentProps for field ${r}`,
|
|
2734
|
-
|
|
2734
|
+
m
|
|
2735
2735
|
);
|
|
2736
2736
|
return;
|
|
2737
2737
|
}
|
|
@@ -2797,7 +2797,7 @@ class pu {
|
|
|
2797
2797
|
// Type definition placeholder, actual implementation injected in useSunnyForm
|
|
2798
2798
|
useStore;
|
|
2799
2799
|
}
|
|
2800
|
-
const Ao = /* @__PURE__ */ Symbol("FormRenderProps"), mu = /* @__PURE__ */ Symbol("ComponentRefMap"),
|
|
2800
|
+
const Ao = /* @__PURE__ */ Symbol("FormRenderProps"), mu = /* @__PURE__ */ Symbol("ComponentRefMap"), Ro = /* @__PURE__ */ Symbol("FieldSlots"), hu = (e) => {
|
|
2801
2801
|
yn(Ao, e);
|
|
2802
2802
|
}, lr = () => {
|
|
2803
2803
|
const e = vn(Ao);
|
|
@@ -2809,8 +2809,8 @@ const Ao = /* @__PURE__ */ Symbol("FormRenderProps"), mu = /* @__PURE__ */ Symbo
|
|
|
2809
2809
|
}, vu = (e) => {
|
|
2810
2810
|
yn(mu, e);
|
|
2811
2811
|
}, yu = (e) => {
|
|
2812
|
-
yn(
|
|
2813
|
-
}, gu = () => vn(
|
|
2812
|
+
yn(Ro, e);
|
|
2813
|
+
}, gu = () => vn(Ro), Oo = () => {
|
|
2814
2814
|
const e = lr(), n = M(
|
|
2815
2815
|
() => e.layout === "vertical"
|
|
2816
2816
|
);
|
|
@@ -2837,7 +2837,7 @@ function bu() {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
function wu(e) {
|
|
2839
2839
|
const n = Ct(), t = M(() => {
|
|
2840
|
-
const i =
|
|
2840
|
+
const i = h(e), l = {};
|
|
2841
2841
|
return (i.schema || []).forEach((u) => {
|
|
2842
2842
|
u.fieldName && u.defaultValue !== void 0 && (l[u.fieldName] = u.defaultValue);
|
|
2843
2843
|
}), i.values && Object.assign(l, i.values), l;
|
|
@@ -2859,34 +2859,34 @@ function Su(e) {
|
|
|
2859
2859
|
if (!n)
|
|
2860
2860
|
throw new Error("useDependencies should be used within <SunnyForm> (VeeValidate Form)");
|
|
2861
2861
|
const o = M(() => n.value), i = M(() => e()), l = M(() => {
|
|
2862
|
-
const
|
|
2863
|
-
if (!
|
|
2864
|
-
const { if: g } =
|
|
2862
|
+
const m = i.value;
|
|
2863
|
+
if (!m) return !0;
|
|
2864
|
+
const { if: g } = m, k = o.value;
|
|
2865
2865
|
return ze(g) ? !!g(k, r) : zn(g) ? g : !0;
|
|
2866
2866
|
}), u = M(() => {
|
|
2867
|
-
const
|
|
2868
|
-
if (!
|
|
2869
|
-
const { show: g } =
|
|
2867
|
+
const m = i.value;
|
|
2868
|
+
if (!m) return !0;
|
|
2869
|
+
const { show: g } = m, k = o.value;
|
|
2870
2870
|
return ze(g) ? !!g(k, r) : zn(g) ? g : !0;
|
|
2871
2871
|
}), d = M(() => {
|
|
2872
|
-
const
|
|
2873
|
-
if (!
|
|
2874
|
-
const { disabled: g } =
|
|
2872
|
+
const m = i.value;
|
|
2873
|
+
if (!m) return !1;
|
|
2874
|
+
const { disabled: g } = m, k = o.value;
|
|
2875
2875
|
return ze(g) ? !!g(k, r) : zn(g) ? g : !1;
|
|
2876
2876
|
}), y = M(() => {
|
|
2877
|
-
const
|
|
2878
|
-
if (!
|
|
2879
|
-
const { required: g } =
|
|
2877
|
+
const m = i.value;
|
|
2878
|
+
if (!m) return !1;
|
|
2879
|
+
const { required: g } = m, k = o.value;
|
|
2880
2880
|
return ze(g) ? !!g(k, r) : !1;
|
|
2881
2881
|
}), b = M(() => {
|
|
2882
|
-
const
|
|
2883
|
-
if (!
|
|
2884
|
-
const { componentProps: g } =
|
|
2882
|
+
const m = i.value;
|
|
2883
|
+
if (!m) return {};
|
|
2884
|
+
const { componentProps: g } = m, k = o.value;
|
|
2885
2885
|
return ze(g) ? g(k, r) || {} : {};
|
|
2886
2886
|
}), p = M(() => {
|
|
2887
|
-
const
|
|
2888
|
-
if (!
|
|
2889
|
-
const { rules: g } =
|
|
2887
|
+
const m = i.value;
|
|
2888
|
+
if (!m) return;
|
|
2889
|
+
const { rules: g } = m, k = o.value;
|
|
2890
2890
|
if (ze(g))
|
|
2891
2891
|
return g(k, r);
|
|
2892
2892
|
});
|
|
@@ -2905,7 +2905,7 @@ const Cu = /* @__PURE__ */ te({
|
|
|
2905
2905
|
schema: {}
|
|
2906
2906
|
},
|
|
2907
2907
|
setup(e) {
|
|
2908
|
-
const n = e, t = wo(), r = lr(), o = M(() => We.disabled ?? !1), { isVertical: i } =
|
|
2908
|
+
const n = e, t = wo(), r = lr(), o = M(() => We.disabled ?? !1), { isVertical: i } = Oo(), l = r.form, u = gu(), {
|
|
2909
2909
|
dynamicComponentProps: d,
|
|
2910
2910
|
// 动态组件属性
|
|
2911
2911
|
dynamicRules: y,
|
|
@@ -2914,7 +2914,7 @@ const Cu = /* @__PURE__ */ te({
|
|
|
2914
2914
|
// 是否禁用
|
|
2915
2915
|
isIf: p,
|
|
2916
2916
|
// 是否渲染 (v-if)
|
|
2917
|
-
isRequired:
|
|
2917
|
+
isRequired: m,
|
|
2918
2918
|
// 是否必填
|
|
2919
2919
|
isShow: g
|
|
2920
2920
|
// 是否显示 (v-show)
|
|
@@ -2941,7 +2941,7 @@ const Cu = /* @__PURE__ */ te({
|
|
|
2941
2941
|
// 更新字段值的函数
|
|
2942
2942
|
setValue: pe,
|
|
2943
2943
|
// 是否禁用
|
|
2944
|
-
disabled:
|
|
2944
|
+
disabled: R.value,
|
|
2945
2945
|
// 验证错误信息
|
|
2946
2946
|
errorMessage: W,
|
|
2947
2947
|
// 原始 field 对象 (包含 onInput, onChange 等)
|
|
@@ -2963,8 +2963,8 @@ const Cu = /* @__PURE__ */ te({
|
|
|
2963
2963
|
if (!x.value)
|
|
2964
2964
|
return !1;
|
|
2965
2965
|
if (!D.value)
|
|
2966
|
-
return
|
|
2967
|
-
if (
|
|
2966
|
+
return m.value;
|
|
2967
|
+
if (m.value)
|
|
2968
2968
|
return !0;
|
|
2969
2969
|
if (Vt(D.value))
|
|
2970
2970
|
return D.value.split("|").includes("required");
|
|
@@ -2980,7 +2980,7 @@ const Cu = /* @__PURE__ */ te({
|
|
|
2980
2980
|
return null;
|
|
2981
2981
|
let U = ct(D.value);
|
|
2982
2982
|
if (!U)
|
|
2983
|
-
return
|
|
2983
|
+
return m.value ? "required" : void 0;
|
|
2984
2984
|
if (Vt(U))
|
|
2985
2985
|
return U;
|
|
2986
2986
|
if (!!_.value) {
|
|
@@ -3021,7 +3021,7 @@ const Cu = /* @__PURE__ */ te({
|
|
|
3021
3021
|
},
|
|
3022
3022
|
{ immediate: !0 }
|
|
3023
3023
|
);
|
|
3024
|
-
const
|
|
3024
|
+
const R = M(() => b.value || // 1. 依赖禁用(最高优先级)
|
|
3025
3025
|
n.schema.disabled || // 2. Schema 禁用
|
|
3026
3026
|
w.value?.disabled || // 3. Props 禁用
|
|
3027
3027
|
n.schema.formDisabled || // 4. 表单级禁用(来自 commonConfig.disabled)
|
|
@@ -3047,7 +3047,7 @@ const Cu = /* @__PURE__ */ te({
|
|
|
3047
3047
|
});
|
|
3048
3048
|
return (U, W) => {
|
|
3049
3049
|
const J = Ee("a-form-item");
|
|
3050
|
-
return x.value && e.schema.fieldName ? (j(), ne(
|
|
3050
|
+
return x.value && e.schema.fieldName ? (j(), ne(h(al), {
|
|
3051
3051
|
key: 0,
|
|
3052
3052
|
name: e.schema.fieldName,
|
|
3053
3053
|
rules: T.value,
|
|
@@ -3063,11 +3063,11 @@ const Cu = /* @__PURE__ */ te({
|
|
|
3063
3063
|
"wrapper-col-props": F.value
|
|
3064
3064
|
}, e.schema.formFieldProps), {
|
|
3065
3065
|
default: I(() => [
|
|
3066
|
-
$.value ? (j(), ne(Xn(
|
|
3066
|
+
$.value ? (j(), ne(Xn(h(E)), {
|
|
3067
3067
|
key: 0,
|
|
3068
3068
|
field: q,
|
|
3069
3069
|
"error-message": pe
|
|
3070
|
-
}, null, 8, ["field", "error-message"])) : (j(), ne(Xn(k.value), ae({ key: 1 }, v(q), { disabled:
|
|
3070
|
+
}, null, 8, ["field", "error-message"])) : (j(), ne(Xn(k.value), ae({ key: 1 }, v(q), { disabled: R.value }), null, 16, ["disabled"]))
|
|
3071
3071
|
]),
|
|
3072
3072
|
_: 2
|
|
3073
3073
|
}, 1040, ["label", "help", "validate-status", "required", "label-col-props", "wrapper-col-props"])
|
|
@@ -3085,26 +3085,26 @@ const Cu = /* @__PURE__ */ te({
|
|
|
3085
3085
|
},
|
|
3086
3086
|
emits: ["update:modelValue", "reset", "submit"],
|
|
3087
3087
|
setup(e, { expose: n, emit: t }) {
|
|
3088
|
-
const r = e, o = t, { props: i } =
|
|
3088
|
+
const r = e, o = t, { props: i } = Oo(), l = sl(), u = M({
|
|
3089
3089
|
get: () => r.modelValue ?? !1,
|
|
3090
3090
|
set: (g) => o("update:modelValue", g)
|
|
3091
3091
|
}), d = M(() => ({
|
|
3092
3092
|
content: "重置",
|
|
3093
3093
|
show: !0,
|
|
3094
3094
|
type: "outline",
|
|
3095
|
-
...
|
|
3095
|
+
...h(i).resetButtonOptions
|
|
3096
3096
|
})), y = M(() => ({
|
|
3097
3097
|
content: "查询",
|
|
3098
3098
|
show: !0,
|
|
3099
3099
|
// 如果有 formApi,使用普通按钮类型,手动触发提交逻辑
|
|
3100
3100
|
// 否则使用 submit 类型,利用表单的原生提交机制
|
|
3101
3101
|
htmlType: r.formApi ? "button" : "submit",
|
|
3102
|
-
...
|
|
3102
|
+
...h(i).submitButtonOptions
|
|
3103
3103
|
}));
|
|
3104
3104
|
async function b(g) {
|
|
3105
3105
|
if (r.formApi) {
|
|
3106
3106
|
g?.preventDefault(), g?.stopPropagation();
|
|
3107
|
-
const k =
|
|
3107
|
+
const k = h(i), { valid: C } = await r.formApi.validate();
|
|
3108
3108
|
if (!C)
|
|
3109
3109
|
return;
|
|
3110
3110
|
const $ = ct(await r.formApi.getValues()) ?? {};
|
|
@@ -3113,7 +3113,7 @@ const Cu = /* @__PURE__ */ te({
|
|
|
3113
3113
|
}
|
|
3114
3114
|
async function p(g) {
|
|
3115
3115
|
g?.preventDefault(), g?.stopPropagation();
|
|
3116
|
-
const k =
|
|
3116
|
+
const k = h(i);
|
|
3117
3117
|
if (r.formApi) {
|
|
3118
3118
|
const C = ct(await r.formApi.getValues()) ?? {};
|
|
3119
3119
|
k.handleReset ? await k.handleReset(C) : r.formApi.resetForm();
|
|
@@ -3128,11 +3128,11 @@ const Cu = /* @__PURE__ */ te({
|
|
|
3128
3128
|
be(
|
|
3129
3129
|
() => u.value,
|
|
3130
3130
|
() => {
|
|
3131
|
-
|
|
3131
|
+
h(i).collapseTriggerResize && window.dispatchEvent(new Event("resize"));
|
|
3132
3132
|
}
|
|
3133
3133
|
);
|
|
3134
|
-
const
|
|
3135
|
-
const g =
|
|
3134
|
+
const m = M(() => {
|
|
3135
|
+
const g = h(i), k = g.actionPosition || "right", C = [
|
|
3136
3136
|
"flex",
|
|
3137
3137
|
"items-center",
|
|
3138
3138
|
"gap-3",
|
|
@@ -3163,18 +3163,18 @@ const Cu = /* @__PURE__ */ te({
|
|
|
3163
3163
|
handleReset: p,
|
|
3164
3164
|
handleSubmit: b
|
|
3165
3165
|
}), (g, k) => (j(), Q("div", {
|
|
3166
|
-
class: fe(
|
|
3166
|
+
class: fe(m.value)
|
|
3167
3167
|
}, [
|
|
3168
|
-
|
|
3168
|
+
h(h(i)).actionButtonsReverse ? le("", !0) : (j(), Q(Fe, { key: 0 }, [
|
|
3169
3169
|
se(g.$slots, "submit-before"),
|
|
3170
|
-
y.value.show ? (j(), ne(
|
|
3170
|
+
y.value.show ? (j(), ne(h(Ue), ae({
|
|
3171
3171
|
key: 0,
|
|
3172
3172
|
type: "primary",
|
|
3173
|
-
size:
|
|
3173
|
+
size: h(h(i)).size || "small",
|
|
3174
3174
|
onClick: b
|
|
3175
3175
|
}, y.value), {
|
|
3176
3176
|
icon: I(() => [
|
|
3177
|
-
B(
|
|
3177
|
+
B(h(or))
|
|
3178
3178
|
]),
|
|
3179
3179
|
default: I(() => [
|
|
3180
3180
|
we(" " + K(y.value.content), 1)
|
|
@@ -3183,29 +3183,29 @@ const Cu = /* @__PURE__ */ te({
|
|
|
3183
3183
|
}, 16, ["size"])) : le("", !0)
|
|
3184
3184
|
], 64)),
|
|
3185
3185
|
se(g.$slots, "reset-before"),
|
|
3186
|
-
d.value.show ? (j(), ne(
|
|
3186
|
+
d.value.show ? (j(), ne(h(Ue), ae({
|
|
3187
3187
|
key: 1,
|
|
3188
|
-
size:
|
|
3188
|
+
size: h(h(i)).size,
|
|
3189
3189
|
onClick: p
|
|
3190
3190
|
}, d.value), {
|
|
3191
3191
|
icon: I(() => [
|
|
3192
|
-
B(
|
|
3192
|
+
B(h(Wl))
|
|
3193
3193
|
]),
|
|
3194
3194
|
default: I(() => [
|
|
3195
3195
|
we(" " + K(d.value.content), 1)
|
|
3196
3196
|
]),
|
|
3197
3197
|
_: 1
|
|
3198
3198
|
}, 16, ["size"])) : le("", !0),
|
|
3199
|
-
|
|
3199
|
+
h(h(i)).actionButtonsReverse ? (j(), Q(Fe, { key: 2 }, [
|
|
3200
3200
|
se(g.$slots, "submit-before"),
|
|
3201
|
-
y.value.show ? (j(), ne(
|
|
3201
|
+
y.value.show ? (j(), ne(h(Ue), ae({
|
|
3202
3202
|
key: 0,
|
|
3203
3203
|
type: "primary",
|
|
3204
|
-
size:
|
|
3204
|
+
size: h(h(i)).size || "small",
|
|
3205
3205
|
onClick: b
|
|
3206
3206
|
}, y.value), {
|
|
3207
3207
|
icon: I(() => [
|
|
3208
|
-
B(
|
|
3208
|
+
B(h(or))
|
|
3209
3209
|
]),
|
|
3210
3210
|
default: I(() => [
|
|
3211
3211
|
we(" " + K(y.value.content), 1)
|
|
@@ -3215,7 +3215,7 @@ const Cu = /* @__PURE__ */ te({
|
|
|
3215
3215
|
], 64)) : le("", !0),
|
|
3216
3216
|
se(g.$slots, "expand-before"),
|
|
3217
3217
|
se(g.$slots, "search-plan", {}, () => [
|
|
3218
|
-
r.searchPlanConfig?.enable ? (j(), ne(
|
|
3218
|
+
r.searchPlanConfig?.enable ? (j(), ne(h(Gd), {
|
|
3219
3219
|
key: 0,
|
|
3220
3220
|
"form-config": r.searchPlanConfig.formConfig,
|
|
3221
3221
|
"current-search-plan": r.searchPlanConfig.currentSearchPlan,
|
|
@@ -3235,7 +3235,7 @@ const Cu = /* @__PURE__ */ te({
|
|
|
3235
3235
|
onClick: C,
|
|
3236
3236
|
title: "查询方案"
|
|
3237
3237
|
}, [
|
|
3238
|
-
B(
|
|
3238
|
+
B(h(_o), {
|
|
3239
3239
|
icon: "lucide:filter",
|
|
3240
3240
|
class: "w-4 h-4"
|
|
3241
3241
|
})
|
|
@@ -3244,15 +3244,15 @@ const Cu = /* @__PURE__ */ te({
|
|
|
3244
3244
|
_: 1
|
|
3245
3245
|
}, 8, ["form-config", "current-search-plan", "search-plan-list", "resource-id", "n-resourceid", "api", "onSearch", "onDefaultPlanLoaded"])) : le("", !0)
|
|
3246
3246
|
]),
|
|
3247
|
-
|
|
3247
|
+
h(h(i)).showCollapseButton ? (j(), Q("div", {
|
|
3248
3248
|
key: 3,
|
|
3249
3249
|
class: "cursor-pointer text-[rgb(var(--primary-6))] hover:opacity-80 transition-opacity select-none flex items-center gap-0.5",
|
|
3250
3250
|
onClick: k[2] || (k[2] = (C) => u.value = !u.value)
|
|
3251
3251
|
}, [
|
|
3252
|
-
u.value ? (j(), ne(
|
|
3252
|
+
u.value ? (j(), ne(h(_l), {
|
|
3253
3253
|
key: 0,
|
|
3254
3254
|
size: 16
|
|
3255
|
-
})) : (j(), ne(
|
|
3255
|
+
})) : (j(), ne(h(Ol), {
|
|
3256
3256
|
key: 1,
|
|
3257
3257
|
size: 16
|
|
3258
3258
|
}))
|
|
@@ -3273,8 +3273,8 @@ function xu(e) {
|
|
|
3273
3273
|
const u = {}, d = e.schema || [], y = i(), b = e.commonConfig?.colProps;
|
|
3274
3274
|
return d.forEach((p) => {
|
|
3275
3275
|
if (!p.fieldName) return;
|
|
3276
|
-
const
|
|
3277
|
-
u[p.fieldName] = l(
|
|
3276
|
+
const m = p.colProps || b;
|
|
3277
|
+
u[p.fieldName] = l(m, p.colSpan, y);
|
|
3278
3278
|
}), u;
|
|
3279
3279
|
}), o = M(() => {
|
|
3280
3280
|
const u = i();
|
|
@@ -3294,8 +3294,8 @@ function xu(e) {
|
|
|
3294
3294
|
function l(u, d, y) {
|
|
3295
3295
|
if (u) {
|
|
3296
3296
|
const b = ["xxl", "xl", "lg", "md", "sm", "xs"], p = b.indexOf(y);
|
|
3297
|
-
for (let
|
|
3298
|
-
const g = b[
|
|
3297
|
+
for (let m = p; m < b.length; m++) {
|
|
3298
|
+
const g = b[m], k = u[g];
|
|
3299
3299
|
if (k !== void 0)
|
|
3300
3300
|
return typeof k == "object" ? k.span ?? 24 : k;
|
|
3301
3301
|
}
|
|
@@ -3327,7 +3327,7 @@ const $u = { class: "h-full flex flex-col justify-end" }, jo = /* @__PURE__ */ t
|
|
|
3327
3327
|
const {
|
|
3328
3328
|
commonConfig: w = {},
|
|
3329
3329
|
labelWidth: v,
|
|
3330
|
-
schema:
|
|
3330
|
+
schema: R = []
|
|
3331
3331
|
} = u, {
|
|
3332
3332
|
componentProps: F = {},
|
|
3333
3333
|
formFieldProps: G = {},
|
|
@@ -3335,7 +3335,7 @@ const $u = { class: "h-full flex flex-col justify-end" }, jo = /* @__PURE__ */ t
|
|
|
3335
3335
|
// ✅ 新增:提取表单级 disabled
|
|
3336
3336
|
...W
|
|
3337
3337
|
} = w, J = { ...W };
|
|
3338
|
-
return v !== void 0 && Object.assign(J, { labelWidth: v }),
|
|
3338
|
+
return v !== void 0 && Object.assign(J, { labelWidth: v }), R.map((q) => ({
|
|
3339
3339
|
// 合并策略:全局配置 (Global) < 表单项自身配置 (Item)
|
|
3340
3340
|
...J,
|
|
3341
3341
|
...q,
|
|
@@ -3355,14 +3355,14 @@ const $u = { class: "h-full flex flex-col justify-end" }, jo = /* @__PURE__ */ t
|
|
|
3355
3355
|
// 显式保留组件原本的 props,防止在合并过程中被意外覆盖
|
|
3356
3356
|
componentProps: q.componentProps
|
|
3357
3357
|
}));
|
|
3358
|
-
}), p = M(() => u.layout === "inline"),
|
|
3358
|
+
}), p = M(() => u.layout === "inline"), m = r.form || bo({
|
|
3359
3359
|
// 提取默认值构建初始状态,并合并外部传入的 values
|
|
3360
3360
|
initialValues: {
|
|
3361
3361
|
...b.value.reduce((w, v) => (v.fieldName && (w[v.fieldName] = v.defaultValue), w), {}),
|
|
3362
3362
|
...u.values || {}
|
|
3363
3363
|
}
|
|
3364
|
-
}), { handleSubmit: g, resetForm: k, setValues: C, values: $, validate: V, errors: E, meta: x } =
|
|
3365
|
-
u.form =
|
|
3364
|
+
}), { handleSubmit: g, resetForm: k, setValues: C, values: $, validate: V, errors: E, meta: x } = m;
|
|
3365
|
+
u.form = m, n({
|
|
3366
3366
|
/**
|
|
3367
3367
|
* 验证表单
|
|
3368
3368
|
* @returns Promise<{ valid: boolean; errors: Record<string, string> }>
|
|
@@ -3391,17 +3391,17 @@ const $u = { class: "h-full flex flex-col justify-end" }, jo = /* @__PURE__ */ t
|
|
|
3391
3391
|
}), _ = (w) => {
|
|
3392
3392
|
u.collapsed = w, u.handleCollapsedChange?.(w), r.formApi && r.formApi.setState({ collapsed: w });
|
|
3393
3393
|
}, T = M(() => {
|
|
3394
|
-
const { compact: w, gridProps: v } = u,
|
|
3394
|
+
const { compact: w, gridProps: v } = u, R = w ? 8 : 16, F = v?.xGap ?? v?.["x-gap"] ?? R, G = v?.yGap ?? v?.["y-gap"] ?? R;
|
|
3395
3395
|
return { x: F, y: G };
|
|
3396
3396
|
});
|
|
3397
3397
|
return (w, v) => {
|
|
3398
|
-
const
|
|
3398
|
+
const R = Ee("a-col"), F = Ee("a-row"), G = Ee("a-form");
|
|
3399
3399
|
return j(), ne(G, {
|
|
3400
3400
|
model: {},
|
|
3401
|
-
layout:
|
|
3402
|
-
size:
|
|
3401
|
+
layout: h(l).layout || "horizontal",
|
|
3402
|
+
size: h(l).size || "small",
|
|
3403
3403
|
class: "arco-form",
|
|
3404
|
-
onSubmit: v[0] || (v[0] = (U, W) =>
|
|
3404
|
+
onSubmit: v[0] || (v[0] = (U, W) => h(D)(W))
|
|
3405
3405
|
}, {
|
|
3406
3406
|
default: I(() => [
|
|
3407
3407
|
B(F, {
|
|
@@ -3413,9 +3413,9 @@ const $u = { class: "h-full flex flex-col justify-end" }, jo = /* @__PURE__ */ t
|
|
|
3413
3413
|
(j(!0), Q(Fe, null, _e(b.value, (U, W) => (j(), Q(Fe, {
|
|
3414
3414
|
key: U.fieldName || W
|
|
3415
3415
|
}, [
|
|
3416
|
-
U.fieldName && !U.hidden && (!u.collapsed || W < 24 / (
|
|
3416
|
+
U.fieldName && !U.hidden && (!u.collapsed || W < 24 / (h(d)[U.fieldName] ?? 24) * (u.collapsedRows ?? 1) - 1) ? (j(), ne(R, {
|
|
3417
3417
|
key: 0,
|
|
3418
|
-
span:
|
|
3418
|
+
span: h(d)[U.fieldName] ?? (p.value ? void 0 : 24)
|
|
3419
3419
|
}, {
|
|
3420
3420
|
default: I(() => [
|
|
3421
3421
|
B(Cu, { schema: U }, null, 8, ["schema"])
|
|
@@ -3423,14 +3423,14 @@ const $u = { class: "h-full flex flex-col justify-end" }, jo = /* @__PURE__ */ t
|
|
|
3423
3423
|
_: 2
|
|
3424
3424
|
}, 1032, ["span"])) : le("", !0)
|
|
3425
3425
|
], 64))), 128)),
|
|
3426
|
-
u.showDefaultActions ||
|
|
3426
|
+
u.showDefaultActions || h(i).actions ? (j(), ne(R, {
|
|
3427
3427
|
key: 0,
|
|
3428
|
-
span:
|
|
3428
|
+
span: h(y),
|
|
3429
3429
|
style: Me(p.value ? { marginLeft: "16px" } : { flex: 1, textAlign: "right" })
|
|
3430
3430
|
}, {
|
|
3431
3431
|
default: I(() => [
|
|
3432
3432
|
N("div", $u, [
|
|
3433
|
-
|
|
3433
|
+
h(i).actions ? se(w.$slots, "actions", {
|
|
3434
3434
|
key: 0,
|
|
3435
3435
|
collapsed: u.collapsed,
|
|
3436
3436
|
formApi: r.formApi
|
|
@@ -3441,28 +3441,28 @@ const $u = { class: "h-full flex flex-col justify-end" }, jo = /* @__PURE__ */ t
|
|
|
3441
3441
|
"form-api": r.formApi,
|
|
3442
3442
|
"search-plan-config": u.searchPlanConfig
|
|
3443
3443
|
}, He({ _: 2 }, [
|
|
3444
|
-
|
|
3444
|
+
h(i)["submit-before"] ? {
|
|
3445
3445
|
name: "submit-before",
|
|
3446
3446
|
fn: I(() => [
|
|
3447
3447
|
se(w.$slots, "submit-before")
|
|
3448
3448
|
]),
|
|
3449
3449
|
key: "0"
|
|
3450
3450
|
} : void 0,
|
|
3451
|
-
|
|
3451
|
+
h(i)["reset-before"] ? {
|
|
3452
3452
|
name: "reset-before",
|
|
3453
3453
|
fn: I(() => [
|
|
3454
3454
|
se(w.$slots, "reset-before")
|
|
3455
3455
|
]),
|
|
3456
3456
|
key: "1"
|
|
3457
3457
|
} : void 0,
|
|
3458
|
-
|
|
3458
|
+
h(i)["expand-before"] ? {
|
|
3459
3459
|
name: "expand-before",
|
|
3460
3460
|
fn: I(() => [
|
|
3461
3461
|
se(w.$slots, "expand-before")
|
|
3462
3462
|
]),
|
|
3463
3463
|
key: "2"
|
|
3464
3464
|
} : void 0,
|
|
3465
|
-
|
|
3465
|
+
h(i)["expand-after"] ? {
|
|
3466
3466
|
name: "expand-after",
|
|
3467
3467
|
fn: I(() => [
|
|
3468
3468
|
se(w.$slots, "expand-after")
|
|
@@ -3522,7 +3522,7 @@ const $u = { class: "h-full flex flex-col justify-end" }, jo = /* @__PURE__ */ t
|
|
|
3522
3522
|
},
|
|
3523
3523
|
setup(e) {
|
|
3524
3524
|
const n = e, t = n.formApi.useStore?.() || M(() => ({})), r = M(() => {
|
|
3525
|
-
const b = Object.entries(n).reduce((p, [
|
|
3525
|
+
const b = Object.entries(n).reduce((p, [m, g]) => (g !== void 0 && (p[m] = g), p), {});
|
|
3526
3526
|
return { ...t.value, ...b };
|
|
3527
3527
|
}), o = /* @__PURE__ */ new Map(), { delegatedSlots: i, form: l } = wu(r);
|
|
3528
3528
|
Vo(r), vu(o), fo(() => {
|
|
@@ -3536,16 +3536,16 @@ const $u = { class: "h-full flex flex-col justify-end" }, jo = /* @__PURE__ */ t
|
|
|
3536
3536
|
if (n.formApi.setState({ values: nn(b) }), d(), !r.value.handleValuesChange) return;
|
|
3537
3537
|
const p = r.value.schema?.map((g) => g.fieldName) || [];
|
|
3538
3538
|
if (p.length === 0) return;
|
|
3539
|
-
const
|
|
3539
|
+
const m = [];
|
|
3540
3540
|
for (const g of p) {
|
|
3541
3541
|
const k = qr(b, g), C = qr(u, g);
|
|
3542
|
-
Ki(k, C) || (
|
|
3542
|
+
Ki(k, C) || (m.push(g), Qi(u, g, k));
|
|
3543
3543
|
}
|
|
3544
|
-
if (
|
|
3544
|
+
if (m.length > 0) {
|
|
3545
3545
|
const g = await n.formApi.getValues();
|
|
3546
3546
|
r.value.handleValuesChange(
|
|
3547
3547
|
nn(g ?? {}),
|
|
3548
|
-
|
|
3548
|
+
m
|
|
3549
3549
|
);
|
|
3550
3550
|
}
|
|
3551
3551
|
},
|
|
@@ -3562,17 +3562,17 @@ const $u = { class: "h-full flex flex-col justify-end" }, jo = /* @__PURE__ */ t
|
|
|
3562
3562
|
class: fe(r.value.wrapperClass)
|
|
3563
3563
|
}, [
|
|
3564
3564
|
B(jo, ae(r.value, {
|
|
3565
|
-
form:
|
|
3565
|
+
form: h(l),
|
|
3566
3566
|
"form-api": n.formApi,
|
|
3567
3567
|
onKeydown: po(y, ["enter"])
|
|
3568
3568
|
}), He({
|
|
3569
3569
|
default: I(() => []),
|
|
3570
3570
|
_: 2
|
|
3571
3571
|
}, [
|
|
3572
|
-
_e(
|
|
3573
|
-
name:
|
|
3572
|
+
_e(h(i), (m) => ({
|
|
3573
|
+
name: m,
|
|
3574
3574
|
fn: I((g) => [
|
|
3575
|
-
se(b.$slots,
|
|
3575
|
+
se(b.$slots, m, Ie(et(g)))
|
|
3576
3576
|
])
|
|
3577
3577
|
}))
|
|
3578
3578
|
]), 1040, ["form", "form-api"])
|
|
@@ -3671,7 +3671,7 @@ const _u = /* @__PURE__ */ te({
|
|
|
3671
3671
|
submit: () => {
|
|
3672
3672
|
l.value?.handleSubmit && l.value.handleSubmit(y)(void 0);
|
|
3673
3673
|
}
|
|
3674
|
-
}), (p,
|
|
3674
|
+
}), (p, m) => (j(), Q("div", {
|
|
3675
3675
|
class: fe(r.wrapperClass)
|
|
3676
3676
|
}, [
|
|
3677
3677
|
B(jo, {
|
|
@@ -3704,7 +3704,7 @@ const _u = /* @__PURE__ */ te({
|
|
|
3704
3704
|
]),
|
|
3705
3705
|
_: 2
|
|
3706
3706
|
}, [
|
|
3707
|
-
_e(
|
|
3707
|
+
_e(h(i), (g, k) => ({
|
|
3708
3708
|
name: k,
|
|
3709
3709
|
fn: I((C) => [
|
|
3710
3710
|
se(p.$slots, k, Ie(et(C)))
|
|
@@ -3855,7 +3855,7 @@ const Au = /* @__PURE__ */ te({
|
|
|
3855
3855
|
const i = Ee("a-config-provider");
|
|
3856
3856
|
return j(), ne(i, { size: "small" }, {
|
|
3857
3857
|
default: I(() => [
|
|
3858
|
-
B(
|
|
3858
|
+
B(h(So), ae({
|
|
3859
3859
|
ref_key: "gridRef",
|
|
3860
3860
|
ref: t
|
|
3861
3861
|
}, r.$attrs), He({ _: 2 }, [
|
|
@@ -3876,15 +3876,15 @@ function Hp(e) {
|
|
|
3876
3876
|
const n = Z(), t = new Tu(n, e);
|
|
3877
3877
|
return [te(
|
|
3878
3878
|
(o, { attrs: i, slots: l }) => {
|
|
3879
|
-
const { gridEvents: u, gridOptions: d } = e, y = Object.entries(u || {}).reduce((b, [p,
|
|
3879
|
+
const { gridEvents: u, gridOptions: d } = e, y = Object.entries(u || {}).reduce((b, [p, m]) => {
|
|
3880
3880
|
const g = `on${p.charAt(0).toUpperCase() + p.slice(1)}`;
|
|
3881
|
-
return b[g] =
|
|
3881
|
+
return b[g] = m, b;
|
|
3882
3882
|
}, {});
|
|
3883
3883
|
return () => Ke(Au, { ref: n, ...o, ...i, ...d, ...y }, l);
|
|
3884
3884
|
}
|
|
3885
3885
|
), t];
|
|
3886
3886
|
}
|
|
3887
|
-
const
|
|
3887
|
+
const Ru = {
|
|
3888
3888
|
editRender: {},
|
|
3889
3889
|
slots: {
|
|
3890
3890
|
default: ({
|
|
@@ -3895,7 +3895,7 @@ const Ou = {
|
|
|
3895
3895
|
return [B("span", null, [o?.label ?? t])];
|
|
3896
3896
|
}
|
|
3897
3897
|
}
|
|
3898
|
-
},
|
|
3898
|
+
}, Ou = {
|
|
3899
3899
|
editRender: {},
|
|
3900
3900
|
slots: {
|
|
3901
3901
|
default: ({
|
|
@@ -4228,8 +4228,8 @@ const Ou = {
|
|
|
4228
4228
|
MonthPickerRender: ju,
|
|
4229
4229
|
RangePickerRender: Du,
|
|
4230
4230
|
SelectRender: Vu,
|
|
4231
|
-
SpanRender:
|
|
4232
|
-
SpanselectRender:
|
|
4231
|
+
SpanRender: Ru,
|
|
4232
|
+
SpanselectRender: Ou,
|
|
4233
4233
|
SwitchRender: Bu,
|
|
4234
4234
|
TextareaRender: Lu,
|
|
4235
4235
|
UploadRender: Wu,
|
|
@@ -4322,12 +4322,12 @@ function Gu(e, n) {
|
|
|
4322
4322
|
d || i && o && (u = !0, i.scrollLeft = o.scrollLeft, requestAnimationFrame(() => {
|
|
4323
4323
|
u = !1;
|
|
4324
4324
|
}));
|
|
4325
|
-
},
|
|
4325
|
+
}, m = () => {
|
|
4326
4326
|
u || i && o && (d = !0, o.scrollLeft = i.scrollLeft, requestAnimationFrame(() => {
|
|
4327
4327
|
d = !1;
|
|
4328
4328
|
}));
|
|
4329
4329
|
}, g = () => {
|
|
4330
|
-
!e.value || i || (i = document.createElement("div"), i.className = "vxe-table--sticky-scrollbar", i.style.position = "fixed", i.style.bottom = "0", i.style.overflowX = "auto", i.style.overflowY = "hidden", i.style.zIndex = "101", i.style.display = "none", l = document.createElement("div"), i.appendChild(l), i.addEventListener("scroll",
|
|
4330
|
+
!e.value || i || (i = document.createElement("div"), i.className = "vxe-table--sticky-scrollbar", i.style.position = "fixed", i.style.bottom = "0", i.style.overflowX = "auto", i.style.overflowY = "hidden", i.style.zIndex = "101", i.style.display = "none", l = document.createElement("div"), i.appendChild(l), i.addEventListener("scroll", m), document.body.appendChild(i), o = e.value.$el.querySelector(".vxe-table--body-wrapper"), o && o.addEventListener("scroll", p));
|
|
4331
4331
|
}, k = () => {
|
|
4332
4332
|
if (!e.value || !t) return;
|
|
4333
4333
|
if (!n.sticky) {
|
|
@@ -4376,7 +4376,7 @@ const Ju = { class: "my-filter-complex" }, Yu = {
|
|
|
4376
4376
|
}), o = () => {
|
|
4377
4377
|
const { renderParams: p } = n;
|
|
4378
4378
|
if (p) {
|
|
4379
|
-
const { column:
|
|
4379
|
+
const { column: m } = p, g = m.filters[0];
|
|
4380
4380
|
t.value = g;
|
|
4381
4381
|
}
|
|
4382
4382
|
};
|
|
@@ -4387,71 +4387,71 @@ const Ju = { class: "my-filter-complex" }, Yu = {
|
|
|
4387
4387
|
const p = i.value;
|
|
4388
4388
|
return p && ll(p.params, "optionlist") ? "select" : "input";
|
|
4389
4389
|
}), u = () => {
|
|
4390
|
-
const { renderParams: p } = n,
|
|
4391
|
-
if (p &&
|
|
4392
|
-
const { $table: g } = p, k = !!
|
|
4393
|
-
g.updateFilterOptionStatus(
|
|
4390
|
+
const { renderParams: p } = n, m = t.value;
|
|
4391
|
+
if (p && m) {
|
|
4392
|
+
const { $table: g } = p, k = !!m.data;
|
|
4393
|
+
g.updateFilterOptionStatus(m, k);
|
|
4394
4394
|
}
|
|
4395
4395
|
}, d = () => {
|
|
4396
|
-
const { renderParams: p } = n,
|
|
4396
|
+
const { renderParams: p } = n, m = {};
|
|
4397
4397
|
if (p) {
|
|
4398
4398
|
const { $table: g } = p;
|
|
4399
4399
|
g.getColumns().forEach((C) => {
|
|
4400
4400
|
const { field: $, filters: V } = C;
|
|
4401
4401
|
if ($ && V && V.length) {
|
|
4402
4402
|
const E = V[0];
|
|
4403
|
-
E.data && (
|
|
4403
|
+
E.data && (m[$] = E.data);
|
|
4404
4404
|
}
|
|
4405
4405
|
});
|
|
4406
4406
|
}
|
|
4407
|
-
return
|
|
4407
|
+
return m;
|
|
4408
4408
|
}, y = () => {
|
|
4409
4409
|
const { renderParams: p } = n;
|
|
4410
4410
|
if (p) {
|
|
4411
|
-
const { $table:
|
|
4412
|
-
k &&
|
|
4411
|
+
const { $table: m, $grid: g } = p, k = t.value;
|
|
4412
|
+
k && m.updateFilterOptionStatus(k, !!k.data);
|
|
4413
4413
|
const C = d();
|
|
4414
4414
|
g.commitProxy("query", C), g.closeFilter();
|
|
4415
4415
|
}
|
|
4416
4416
|
}, b = () => {
|
|
4417
|
-
const { renderParams: p } = n,
|
|
4418
|
-
if (p &&
|
|
4417
|
+
const { renderParams: p } = n, m = t.value;
|
|
4418
|
+
if (p && m) {
|
|
4419
4419
|
const { $table: g, $grid: k } = p;
|
|
4420
|
-
|
|
4420
|
+
m.data = "", g.updateFilterOptionStatus(m, !1);
|
|
4421
4421
|
const C = d();
|
|
4422
4422
|
k.commitProxy("query", C), k.closeFilter();
|
|
4423
4423
|
}
|
|
4424
4424
|
};
|
|
4425
|
-
return (p,
|
|
4425
|
+
return (p, m) => (j(), Q("div", Ju, [
|
|
4426
4426
|
t.value ? (j(), Q("div", Yu, [
|
|
4427
|
-
l.value === "select" && i.value ? (j(), ne(
|
|
4427
|
+
l.value === "select" && i.value ? (j(), ne(h(yl), {
|
|
4428
4428
|
key: 0,
|
|
4429
4429
|
modelValue: t.value.data,
|
|
4430
|
-
"onUpdate:modelValue":
|
|
4430
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => t.value.data = g),
|
|
4431
4431
|
options: i.value.params.optionlist,
|
|
4432
4432
|
clearable: "",
|
|
4433
4433
|
onChange: u
|
|
4434
|
-
}, null, 8, ["modelValue", "options"])) : (j(), ne(
|
|
4434
|
+
}, null, 8, ["modelValue", "options"])) : (j(), ne(h(gl), {
|
|
4435
4435
|
key: 1,
|
|
4436
4436
|
modelValue: t.value.data,
|
|
4437
|
-
"onUpdate:modelValue":
|
|
4437
|
+
"onUpdate:modelValue": m[1] || (m[1] = (g) => t.value.data = g),
|
|
4438
4438
|
clearable: "",
|
|
4439
4439
|
onKeyup: po(y, ["enter"]),
|
|
4440
4440
|
onInput: u
|
|
4441
4441
|
}, null, 8, ["modelValue"]))
|
|
4442
4442
|
])) : le("", !0),
|
|
4443
4443
|
N("div", Ku, [
|
|
4444
|
-
B(
|
|
4445
|
-
default: I(() => [...
|
|
4444
|
+
B(h(pn), { onClick: b }, {
|
|
4445
|
+
default: I(() => [...m[2] || (m[2] = [
|
|
4446
4446
|
we("重置", -1)
|
|
4447
4447
|
])]),
|
|
4448
4448
|
_: 1
|
|
4449
4449
|
}),
|
|
4450
|
-
B(
|
|
4450
|
+
B(h(pn), {
|
|
4451
4451
|
status: "primary",
|
|
4452
4452
|
onClick: y
|
|
4453
4453
|
}, {
|
|
4454
|
-
default: I(() => [...
|
|
4454
|
+
default: I(() => [...m[3] || (m[3] = [
|
|
4455
4455
|
we("确认", -1)
|
|
4456
4456
|
])]),
|
|
4457
4457
|
_: 1
|
|
@@ -4484,13 +4484,13 @@ const No = /* @__PURE__ */ te({
|
|
|
4484
4484
|
const t = e, r = ar(), o = Ct(), i = Z();
|
|
4485
4485
|
return Gu(i, r), n({
|
|
4486
4486
|
getGrid: () => i.value
|
|
4487
|
-
}), (l, u) => (j(), ne(
|
|
4487
|
+
}), (l, u) => (j(), ne(h(So), ae({
|
|
4488
4488
|
ref_key: "gridRef",
|
|
4489
4489
|
ref: i
|
|
4490
4490
|
}, l.$attrs, {
|
|
4491
4491
|
size: t.size
|
|
4492
4492
|
}), He({ _: 2 }, [
|
|
4493
|
-
_e(
|
|
4493
|
+
_e(h(o), (d, y) => ({
|
|
4494
4494
|
name: y,
|
|
4495
4495
|
fn: I((b) => [
|
|
4496
4496
|
se(l.$slots, y, Ie(et(b || {})))
|
|
@@ -4501,19 +4501,21 @@ const No = /* @__PURE__ */ te({
|
|
|
4501
4501
|
});
|
|
4502
4502
|
function Jp(e) {
|
|
4503
4503
|
const n = Z(), t = new qu(n), { gridEvents: r, gridOptions: o } = e, i = o?.showSelectionCount, l = o?.gridTip, u = Z(0), d = () => {
|
|
4504
|
-
const
|
|
4505
|
-
if (!
|
|
4506
|
-
const g =
|
|
4504
|
+
const m = n.value?.getGrid?.() || n.value;
|
|
4505
|
+
if (!m) return;
|
|
4506
|
+
const g = m.getCheckboxRecords?.() || [], k = m.getCheckboxReserveRecords?.() || [];
|
|
4507
4507
|
u.value = g.length + k.length;
|
|
4508
4508
|
}, y = () => {
|
|
4509
|
-
const
|
|
4510
|
-
|
|
4511
|
-
|
|
4509
|
+
const m = n.value?.getGrid?.() || n.value;
|
|
4510
|
+
m && (m.clearCheckboxRow(), (m.getCheckboxReserveRecords?.() || []).forEach((k) => {
|
|
4511
|
+
m.setCheckboxRow(k, !1);
|
|
4512
|
+
}), u.value = 0);
|
|
4513
|
+
}, b = Object.entries(r || {}).reduce((m, [g, k]) => {
|
|
4512
4514
|
const C = `on${g.charAt(0).toUpperCase() + g.slice(1)}`;
|
|
4513
|
-
return
|
|
4515
|
+
return m[C] = k, m;
|
|
4514
4516
|
}, {});
|
|
4515
4517
|
return [te(
|
|
4516
|
-
(
|
|
4518
|
+
(m, { attrs: g, slots: k }) => () => {
|
|
4517
4519
|
const C = u.value, $ = (i || l) && o?.toolbarConfig ? {
|
|
4518
4520
|
...o.toolbarConfig,
|
|
4519
4521
|
slots: {
|
|
@@ -4548,7 +4550,7 @@ function Jp(e) {
|
|
|
4548
4550
|
} : o?.toolbarConfig;
|
|
4549
4551
|
return Ke(No, {
|
|
4550
4552
|
ref: n,
|
|
4551
|
-
...
|
|
4553
|
+
...m,
|
|
4552
4554
|
...g,
|
|
4553
4555
|
...o,
|
|
4554
4556
|
...$ ? { toolbarConfig: $ } : {},
|
|
@@ -4610,13 +4612,13 @@ const ed = { class: "sunny-resource-tree" }, td = { class: "sunny-resource-tree_
|
|
|
4610
4612
|
getNodeActions: y,
|
|
4611
4613
|
isActionDisabled: b,
|
|
4612
4614
|
getNodeTitle: p,
|
|
4613
|
-
handleActionClick:
|
|
4615
|
+
handleActionClick: m
|
|
4614
4616
|
} = Xu({
|
|
4615
4617
|
props: r,
|
|
4616
4618
|
emit: o,
|
|
4617
4619
|
attrs: i
|
|
4618
4620
|
}), g = ($, V) => {
|
|
4619
|
-
|
|
4621
|
+
m($, V);
|
|
4620
4622
|
}, k = M(() => Object.keys(l).filter(($) => $ !== "title")), C = ($, ...V) => u.value?.[$]?.(...V);
|
|
4621
4623
|
return n({
|
|
4622
4624
|
getTree: () => u.value,
|
|
@@ -4633,22 +4635,22 @@ const ed = { class: "sunny-resource-tree" }, td = { class: "sunny-resource-tree_
|
|
|
4633
4635
|
expandAll: ($) => C("expandAll", $),
|
|
4634
4636
|
expandNode: ($, V) => C("expandNode", $, V)
|
|
4635
4637
|
}), ($, V) => (j(), Q("div", ed, [
|
|
4636
|
-
B(
|
|
4638
|
+
B(h(Li), ae({
|
|
4637
4639
|
ref_key: "treeRef",
|
|
4638
4640
|
ref: u
|
|
4639
4641
|
}, $.$attrs), He({
|
|
4640
4642
|
title: I((E) => [
|
|
4641
|
-
|
|
4643
|
+
h(d)(E) ? (j(), ne(h(Ui), {
|
|
4642
4644
|
key: 0,
|
|
4643
4645
|
trigger: "contextMenu",
|
|
4644
4646
|
"popup-max-height": !1,
|
|
4645
4647
|
onSelect: (x) => g(x, E)
|
|
4646
4648
|
}, {
|
|
4647
4649
|
content: I(() => [
|
|
4648
|
-
(j(!0), Q(Fe, null, _e(
|
|
4650
|
+
(j(!0), Q(Fe, null, _e(h(y)(E), (x) => (j(), ne(h(Wi), {
|
|
4649
4651
|
key: `${String(E?.key)}-${x.key}`,
|
|
4650
4652
|
value: x.key,
|
|
4651
|
-
disabled:
|
|
4653
|
+
disabled: h(b)(x, E)
|
|
4652
4654
|
}, {
|
|
4653
4655
|
default: I(() => [
|
|
4654
4656
|
N("span", {
|
|
@@ -4661,13 +4663,13 @@ const ed = { class: "sunny-resource-tree" }, td = { class: "sunny-resource-tree_
|
|
|
4661
4663
|
default: I(() => [
|
|
4662
4664
|
N("span", td, [
|
|
4663
4665
|
se($.$slots, "title", Ie(et(E)), () => [
|
|
4664
|
-
we(K(
|
|
4666
|
+
we(K(h(p)(E)), 1)
|
|
4665
4667
|
], !0)
|
|
4666
4668
|
])
|
|
4667
4669
|
]),
|
|
4668
4670
|
_: 2
|
|
4669
4671
|
}, 1032, ["onSelect"])) : se($.$slots, "title", Ie(ae({ key: 1 }, E)), () => [
|
|
4670
|
-
we(K(
|
|
4672
|
+
we(K(h(p)(E)), 1)
|
|
4671
4673
|
], !0)
|
|
4672
4674
|
]),
|
|
4673
4675
|
_: 2
|
|
@@ -4705,10 +4707,10 @@ function rd(e, n) {
|
|
|
4705
4707
|
), p = () => {
|
|
4706
4708
|
const v = Qr(e.formSchema);
|
|
4707
4709
|
r.value = { ...v, ...e.defaultModel };
|
|
4708
|
-
},
|
|
4709
|
-
const v = Qr(e.formSchema),
|
|
4710
|
+
}, m = () => {
|
|
4711
|
+
const v = Qr(e.formSchema), R = b(), F = {};
|
|
4710
4712
|
e.defaultModel && Object.entries(e.defaultModel).forEach(([G, U]) => {
|
|
4711
|
-
|
|
4713
|
+
R.has(G) && (F[G] = U);
|
|
4712
4714
|
}), r.value = {
|
|
4713
4715
|
...r.value,
|
|
4714
4716
|
...v,
|
|
@@ -4726,18 +4728,18 @@ function rd(e, n) {
|
|
|
4726
4728
|
if (e.searchApi) {
|
|
4727
4729
|
v && (r.value = { ...v }), t.value = !0;
|
|
4728
4730
|
try {
|
|
4729
|
-
const
|
|
4731
|
+
const R = {
|
|
4730
4732
|
pageNo: i.value.current,
|
|
4731
4733
|
pageSize: i.value.pageSize,
|
|
4732
4734
|
...r.value
|
|
4733
4735
|
};
|
|
4734
4736
|
let F;
|
|
4735
|
-
if (typeof e.searchApi == "function" && (F = await e.searchApi(
|
|
4737
|
+
if (typeof e.searchApi == "function" && (F = await e.searchApi(R)), F) {
|
|
4736
4738
|
const G = F.list || F.records || [], U = F.total || F.totalCount || 0;
|
|
4737
4739
|
l.value = G, i.value.total = U;
|
|
4738
4740
|
}
|
|
4739
|
-
} catch (
|
|
4740
|
-
console.error("Search failed:",
|
|
4741
|
+
} catch (R) {
|
|
4742
|
+
console.error("Search failed:", R), ue.error("查询失败");
|
|
4741
4743
|
} finally {
|
|
4742
4744
|
t.value = !1;
|
|
4743
4745
|
}
|
|
@@ -4746,9 +4748,9 @@ function rd(e, n) {
|
|
|
4746
4748
|
i.value.current = v, g();
|
|
4747
4749
|
}, C = (v) => {
|
|
4748
4750
|
i.value.pageSize = v, i.value.current = 1, g();
|
|
4749
|
-
}, $ = (v,
|
|
4751
|
+
}, $ = (v, R) => {
|
|
4750
4752
|
const F = y(v), G = o.value.findIndex((U) => y(U) === F);
|
|
4751
|
-
|
|
4753
|
+
R ? G === -1 && (e.multiple ? o.value.push(v) : o.value = [v]) : G > -1 && o.value.splice(G, 1);
|
|
4752
4754
|
};
|
|
4753
4755
|
return {
|
|
4754
4756
|
loading: t,
|
|
@@ -4759,21 +4761,21 @@ function rd(e, n) {
|
|
|
4759
4761
|
actualFieldNames: u,
|
|
4760
4762
|
actualRowKey: d,
|
|
4761
4763
|
initDefaultValues: p,
|
|
4762
|
-
resetFormValues:
|
|
4764
|
+
resetFormValues: m,
|
|
4763
4765
|
handleSearch: g,
|
|
4764
4766
|
handlePageChange: k,
|
|
4765
4767
|
handlePageSizeChange: C,
|
|
4766
4768
|
handleCheckboxChange: (v) => {
|
|
4767
|
-
const { row:
|
|
4768
|
-
$(
|
|
4769
|
+
const { row: R, checked: F } = v;
|
|
4770
|
+
$(R, F);
|
|
4769
4771
|
},
|
|
4770
4772
|
handleCheckboxAll: (v) => {
|
|
4771
|
-
const { checked:
|
|
4772
|
-
|
|
4773
|
+
const { checked: R, records: F } = v;
|
|
4774
|
+
R ? F.forEach((G) => $(G, !0)) : l.value.forEach((G) => $(G, !1));
|
|
4773
4775
|
},
|
|
4774
4776
|
handleRadioChange: (v) => {
|
|
4775
|
-
const { row:
|
|
4776
|
-
o.value = [
|
|
4777
|
+
const { row: R } = v;
|
|
4778
|
+
o.value = [R];
|
|
4777
4779
|
},
|
|
4778
4780
|
removeRow: (v) => {
|
|
4779
4781
|
$(v, !1);
|
|
@@ -4826,7 +4828,7 @@ const od = { class: "flex flex-col h-full" }, ad = { class: "mb-4 border-b borde
|
|
|
4826
4828
|
loading: y,
|
|
4827
4829
|
searchParams: b,
|
|
4828
4830
|
selectedRows: p,
|
|
4829
|
-
pagination:
|
|
4831
|
+
pagination: m,
|
|
4830
4832
|
tableData: g,
|
|
4831
4833
|
actualFieldNames: k,
|
|
4832
4834
|
actualRowKey: C,
|
|
@@ -4839,7 +4841,7 @@ const od = { class: "flex flex-col h-full" }, ad = { class: "mb-4 border-b borde
|
|
|
4839
4841
|
handleCheckboxAll: T,
|
|
4840
4842
|
handleRadioChange: w,
|
|
4841
4843
|
removeRow: v,
|
|
4842
|
-
handleOk:
|
|
4844
|
+
handleOk: R,
|
|
4843
4845
|
handleCancel: F,
|
|
4844
4846
|
toggleRowSelection: G,
|
|
4845
4847
|
reset: U
|
|
@@ -4848,7 +4850,7 @@ const od = { class: "flex flex-col h-full" }, ad = { class: "mb-4 border-b borde
|
|
|
4848
4850
|
reset: U
|
|
4849
4851
|
});
|
|
4850
4852
|
const W = async () => {
|
|
4851
|
-
|
|
4853
|
+
m.value.current = 1, V(), await at(), await J();
|
|
4852
4854
|
}, J = async () => {
|
|
4853
4855
|
if (!d.value)
|
|
4854
4856
|
return E(), !0;
|
|
@@ -4859,7 +4861,7 @@ const od = { class: "flex flex-col h-full" }, ad = { class: "mb-4 border-b borde
|
|
|
4859
4861
|
return console.error("Form validation failed:", ce), !1;
|
|
4860
4862
|
}
|
|
4861
4863
|
}, q = async (ce) => {
|
|
4862
|
-
|
|
4864
|
+
m.value.current = 1, o.clearOnSearch && (p.value = []), E(ce);
|
|
4863
4865
|
}, pe = M(() => ({
|
|
4864
4866
|
border: !0,
|
|
4865
4867
|
stripe: !0,
|
|
@@ -4899,7 +4901,7 @@ const od = { class: "flex flex-col h-full" }, ad = { class: "mb-4 border-b borde
|
|
|
4899
4901
|
);
|
|
4900
4902
|
const Te = ({ row: ce }) => {
|
|
4901
4903
|
if (!o.multiple)
|
|
4902
|
-
p.value = [ce],
|
|
4904
|
+
p.value = [ce], R();
|
|
4903
4905
|
else {
|
|
4904
4906
|
const me = p.value.some(
|
|
4905
4907
|
(ee) => ee[C.value] === ce[C.value]
|
|
@@ -4910,7 +4912,7 @@ const od = { class: "flex flex-col h-full" }, ad = { class: "mb-4 border-b borde
|
|
|
4910
4912
|
return be(
|
|
4911
4913
|
() => o.visible,
|
|
4912
4914
|
(ce) => {
|
|
4913
|
-
ce && ($(), o.resetOnOpen && (g.value = [],
|
|
4915
|
+
ce && ($(), o.resetOnOpen && (g.value = [], m.value.total = 0, at(() => {
|
|
4914
4916
|
J();
|
|
4915
4917
|
})));
|
|
4916
4918
|
},
|
|
@@ -4924,43 +4926,43 @@ const od = { class: "flex flex-col h-full" }, ad = { class: "mb-4 border-b borde
|
|
|
4924
4926
|
"title-align": "start",
|
|
4925
4927
|
fullscreen: !1,
|
|
4926
4928
|
"help-message": o.helpMessage,
|
|
4927
|
-
onCancel:
|
|
4928
|
-
onClose:
|
|
4929
|
-
onOk:
|
|
4929
|
+
onCancel: h(F),
|
|
4930
|
+
onClose: h(F),
|
|
4931
|
+
onOk: h(R)
|
|
4930
4932
|
}, {
|
|
4931
4933
|
footer: I(() => [
|
|
4932
4934
|
N("div", md, [
|
|
4933
|
-
B(
|
|
4934
|
-
current: m
|
|
4935
|
-
"onUpdate:current": me[2] || (me[2] = (ee) => m
|
|
4936
|
-
"page-size": m
|
|
4937
|
-
total: m
|
|
4935
|
+
B(h(Hi), {
|
|
4936
|
+
current: h(m).current,
|
|
4937
|
+
"onUpdate:current": me[2] || (me[2] = (ee) => h(m).current = ee),
|
|
4938
|
+
"page-size": h(m).pageSize,
|
|
4939
|
+
total: h(m).total,
|
|
4938
4940
|
"show-total": "",
|
|
4939
4941
|
"show-page-size": "",
|
|
4940
4942
|
"page-size-options": [20, 50, 100, 200],
|
|
4941
4943
|
size: "mini",
|
|
4942
|
-
onChange:
|
|
4943
|
-
onPageSizeChange:
|
|
4944
|
+
onChange: h(x),
|
|
4945
|
+
onPageSizeChange: h(D)
|
|
4944
4946
|
}, null, 8, ["current", "page-size", "total", "onChange", "onPageSizeChange"]),
|
|
4945
4947
|
N("div", hd, [
|
|
4946
|
-
B(
|
|
4948
|
+
B(h(Ue), { onClick: h(F) }, {
|
|
4947
4949
|
icon: I(() => [
|
|
4948
|
-
B(
|
|
4950
|
+
B(h(mn))
|
|
4949
4951
|
]),
|
|
4950
4952
|
default: I(() => [
|
|
4951
|
-
we(" " + K(
|
|
4953
|
+
we(" " + K(h(ve)("common.cancel")), 1)
|
|
4952
4954
|
]),
|
|
4953
4955
|
_: 1
|
|
4954
4956
|
}, 8, ["onClick"]),
|
|
4955
|
-
B(
|
|
4957
|
+
B(h(Ue), {
|
|
4956
4958
|
type: "primary",
|
|
4957
|
-
onClick:
|
|
4959
|
+
onClick: h(R)
|
|
4958
4960
|
}, {
|
|
4959
4961
|
icon: I(() => [
|
|
4960
|
-
B(
|
|
4962
|
+
B(h(ko))
|
|
4961
4963
|
]),
|
|
4962
4964
|
default: I(() => [
|
|
4963
|
-
we(" " + K(
|
|
4965
|
+
we(" " + K(h(ve)("common.confirm")), 1)
|
|
4964
4966
|
]),
|
|
4965
4967
|
_: 1
|
|
4966
4968
|
}, 8, ["onClick"])
|
|
@@ -4973,7 +4975,7 @@ const od = { class: "flex flex-col h-full" }, ad = { class: "mb-4 border-b borde
|
|
|
4973
4975
|
B(_u, {
|
|
4974
4976
|
ref_key: "formRef",
|
|
4975
4977
|
ref: d,
|
|
4976
|
-
values:
|
|
4978
|
+
values: h(b),
|
|
4977
4979
|
"onUpdate:values": me[0] || (me[0] = (ee) => wt(b) ? b.value = ee : null),
|
|
4978
4980
|
schema: o.formSchema,
|
|
4979
4981
|
"common-config": o.commonConfig,
|
|
@@ -4984,7 +4986,7 @@ const od = { class: "flex flex-col h-full" }, ad = { class: "mb-4 border-b borde
|
|
|
4984
4986
|
layout: "vertical",
|
|
4985
4987
|
size: "mini"
|
|
4986
4988
|
}, He({ _: 2 }, [
|
|
4987
|
-
_e(
|
|
4989
|
+
_e(h(r), (ee, Ne) => ({
|
|
4988
4990
|
name: Ne,
|
|
4989
4991
|
fn: I((je) => [
|
|
4990
4992
|
se(ce.$slots, Ne, Ie(et(je)), void 0, !0)
|
|
@@ -5001,46 +5003,46 @@ const od = { class: "flex flex-col h-full" }, ad = { class: "mb-4 border-b borde
|
|
|
5001
5003
|
ref_key: "gridRef",
|
|
5002
5004
|
ref: u,
|
|
5003
5005
|
columns: o.tableColumns,
|
|
5004
|
-
data:
|
|
5005
|
-
loading:
|
|
5006
|
+
data: h(g),
|
|
5007
|
+
loading: h(y)
|
|
5006
5008
|
}, pe.value, {
|
|
5007
|
-
onCheckboxChange:
|
|
5008
|
-
onCheckboxAll:
|
|
5009
|
-
onRadioChange:
|
|
5009
|
+
onCheckboxChange: h(_),
|
|
5010
|
+
onCheckboxAll: h(T),
|
|
5011
|
+
onRadioChange: h(w),
|
|
5010
5012
|
onCellDblclick: Te,
|
|
5011
5013
|
size: "mini"
|
|
5012
5014
|
}), null, 16, ["columns", "data", "loading", "onCheckboxChange", "onCheckboxAll", "onRadioChange"])
|
|
5013
5015
|
]),
|
|
5014
5016
|
N("div", id, [
|
|
5015
5017
|
N("div", ld, [
|
|
5016
|
-
N("span", null, K(
|
|
5017
|
-
|
|
5018
|
+
N("span", null, K(h(ve)("common.selected")) + " (" + K(h(p).length) + ")", 1),
|
|
5019
|
+
h(p).length ? (j(), Q("span", {
|
|
5018
5020
|
key: 0,
|
|
5019
5021
|
class: "text-xs text-blue-500 cursor-pointer",
|
|
5020
5022
|
onClick: me[1] || (me[1] = (ee) => p.value = [])
|
|
5021
|
-
}, K(
|
|
5023
|
+
}, K(h(ve)("common.clear")), 1)) : le("", !0)
|
|
5022
5024
|
]),
|
|
5023
5025
|
N("div", cd, [
|
|
5024
|
-
|
|
5025
|
-
key: ee[
|
|
5026
|
+
h(p).length ? (j(!0), Q(Fe, { key: 0 }, _e(h(p), (ee) => (j(), Q("div", {
|
|
5027
|
+
key: ee[h(C)],
|
|
5026
5028
|
class: "relative group px-2 py-1 mb-1 bg-white border border-gray-200 rounded hover:shadow-sm transition-all h-[42px] flex flex-col justify-center"
|
|
5027
5029
|
}, [
|
|
5028
|
-
B(
|
|
5029
|
-
content: `${ee[
|
|
5030
|
+
B(h(sr), {
|
|
5031
|
+
content: `${ee[h(k).desc]}`
|
|
5030
5032
|
}, {
|
|
5031
5033
|
default: I(() => [
|
|
5032
|
-
N("div", ud, K(ee[
|
|
5033
|
-
N("div", dd, K(ee[
|
|
5034
|
+
N("div", ud, K(ee[h(k).value] || "-"), 1),
|
|
5035
|
+
N("div", dd, K(ee[h(k).label] || " "), 1)
|
|
5034
5036
|
]),
|
|
5035
5037
|
_: 2
|
|
5036
5038
|
}, 1032, ["content"]),
|
|
5037
5039
|
N("div", {
|
|
5038
5040
|
class: "absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 cursor-pointer text-gray-400 hover:text-red-500 transition-opacity p-0.5 bg-white rounded-full shadow-sm",
|
|
5039
|
-
onClick: (Ne) =>
|
|
5041
|
+
onClick: (Ne) => h(v)(ee)
|
|
5040
5042
|
}, [
|
|
5041
|
-
B(
|
|
5043
|
+
B(h(mn), { size: 10 })
|
|
5042
5044
|
], 8, fd)
|
|
5043
|
-
]))), 128)) : (j(), Q("div", pd, K(
|
|
5045
|
+
]))), 128)) : (j(), Q("div", pd, K(h(ve)("common.noData")), 1))
|
|
5044
5046
|
])
|
|
5045
5047
|
])
|
|
5046
5048
|
], 4)
|
|
@@ -5063,14 +5065,14 @@ function Kp(e, n) {
|
|
|
5063
5065
|
function bd(e, n) {
|
|
5064
5066
|
const t = Z(!1), r = Z(!1), o = Z({}), i = M({
|
|
5065
5067
|
get: () => e.modelValue || [],
|
|
5066
|
-
set: (
|
|
5067
|
-
n("update:modelValue",
|
|
5068
|
+
set: (m) => {
|
|
5069
|
+
n("update:modelValue", m), n("change", m);
|
|
5068
5070
|
}
|
|
5069
|
-
}), l = () => We.businessSearchAdapter, u = (
|
|
5070
|
-
if (!
|
|
5071
|
+
}), l = () => We.businessSearchAdapter, u = (m) => async (g) => {
|
|
5072
|
+
if (!m?.search)
|
|
5071
5073
|
return console.warn("[SunnyBusinessSearch] No search adapter configured."), { records: [], total: 0 };
|
|
5072
5074
|
try {
|
|
5073
|
-
return await
|
|
5075
|
+
return await m.search({
|
|
5074
5076
|
...g,
|
|
5075
5077
|
cNum: e.cNum
|
|
5076
5078
|
});
|
|
@@ -5079,8 +5081,8 @@ function bd(e, n) {
|
|
|
5079
5081
|
}
|
|
5080
5082
|
}, d = async () => {
|
|
5081
5083
|
if (!e.cNum) return;
|
|
5082
|
-
const
|
|
5083
|
-
if (!
|
|
5084
|
+
const m = l();
|
|
5085
|
+
if (!m?.loadConfig) {
|
|
5084
5086
|
console.warn(
|
|
5085
5087
|
"[SunnyBusinessSearch] No loadConfig adapter configured. Please call setupBusinessForm() in your app entry."
|
|
5086
5088
|
);
|
|
@@ -5088,8 +5090,8 @@ function bd(e, n) {
|
|
|
5088
5090
|
}
|
|
5089
5091
|
r.value = !0;
|
|
5090
5092
|
try {
|
|
5091
|
-
const g = await
|
|
5092
|
-
g.searchApi = u(
|
|
5093
|
+
const g = await m.loadConfig(e.cNum);
|
|
5094
|
+
g.searchApi = u(m), o.value = g;
|
|
5093
5095
|
} catch (g) {
|
|
5094
5096
|
console.error("[SunnyBusinessSearch] Failed to load dynamic config:", g);
|
|
5095
5097
|
} finally {
|
|
@@ -5099,18 +5101,18 @@ function bd(e, n) {
|
|
|
5099
5101
|
if (e.type) {
|
|
5100
5102
|
r.value = !0;
|
|
5101
5103
|
try {
|
|
5102
|
-
const
|
|
5103
|
-
|
|
5104
|
-
} catch (
|
|
5105
|
-
console.error("[SunnyBusinessSearch] Failed to load static config:",
|
|
5104
|
+
const m = await gd(e.type);
|
|
5105
|
+
m && (o.value = m);
|
|
5106
|
+
} catch (m) {
|
|
5107
|
+
console.error("[SunnyBusinessSearch] Failed to load static config:", m);
|
|
5106
5108
|
} finally {
|
|
5107
5109
|
r.value = !1;
|
|
5108
5110
|
}
|
|
5109
5111
|
}
|
|
5110
5112
|
}, b = async () => {
|
|
5111
5113
|
t.value = !0, e.cNum ? o.value.title || await d() : e.type && (o.value.title || await y());
|
|
5112
|
-
}, p = (
|
|
5113
|
-
i.value =
|
|
5114
|
+
}, p = (m) => {
|
|
5115
|
+
i.value = m, t.value = !1;
|
|
5114
5116
|
};
|
|
5115
5117
|
return be(
|
|
5116
5118
|
() => [e.cNum, e.type],
|
|
@@ -5166,15 +5168,15 @@ const wd = { class: "sunny-business-search w-full" }, Sd = /* @__PURE__ */ te({
|
|
|
5166
5168
|
// 覆盖处理后的 columns
|
|
5167
5169
|
};
|
|
5168
5170
|
});
|
|
5169
|
-
return (p,
|
|
5170
|
-
B(
|
|
5171
|
-
"model-value":
|
|
5171
|
+
return (p, m) => (j(), Q("div", wd, [
|
|
5172
|
+
B(h(lu), ae(p.$attrs, {
|
|
5173
|
+
"model-value": h(l),
|
|
5172
5174
|
placeholder: e.placeholder,
|
|
5173
5175
|
disabled: e.disabled,
|
|
5174
5176
|
"max-tag-count": e.maxTagCount,
|
|
5175
5177
|
"field-names": y.value,
|
|
5176
|
-
"onUpdate:modelValue":
|
|
5177
|
-
onSearch:
|
|
5178
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => l.value = g),
|
|
5179
|
+
onSearch: h(u)
|
|
5178
5180
|
}), He({ _: 2 }, [
|
|
5179
5181
|
_e(p.$slots, (g, k) => ({
|
|
5180
5182
|
name: k,
|
|
@@ -5183,12 +5185,12 @@ const wd = { class: "sunny-business-search w-full" }, Sd = /* @__PURE__ */ te({
|
|
|
5183
5185
|
])
|
|
5184
5186
|
}))
|
|
5185
5187
|
]), 1040, ["model-value", "placeholder", "disabled", "max-tag-count", "field-names", "onSearch"]),
|
|
5186
|
-
|
|
5188
|
+
h(i).title || h(o) ? (j(), ne(h(yd), ae({
|
|
5187
5189
|
key: 0,
|
|
5188
|
-
visible:
|
|
5189
|
-
"onUpdate:visible":
|
|
5190
|
-
"model-value":
|
|
5191
|
-
}, b.value, { onConfirm:
|
|
5190
|
+
visible: h(o),
|
|
5191
|
+
"onUpdate:visible": m[1] || (m[1] = (g) => wt(o) ? o.value = g : null),
|
|
5192
|
+
"model-value": h(l)
|
|
5193
|
+
}, b.value, { onConfirm: h(d) }), null, 16, ["visible", "model-value", "onConfirm"])) : le("", !0)
|
|
5192
5194
|
]));
|
|
5193
5195
|
}
|
|
5194
5196
|
}), Bo = {
|
|
@@ -5219,8 +5221,8 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5219
5221
|
Array.isArray(T) && (e.formConfig?.some(
|
|
5220
5222
|
(v) => v.fieldName === _ && v.component && (v.component.name === "SunnyBusinessSearch" || v.component === "SunnyBusinessSearch")
|
|
5221
5223
|
) ? x[_] = JSON.stringify(T) : x[_] = T.map((v) => {
|
|
5222
|
-
let
|
|
5223
|
-
return typeof v == "object" && v !== null && (
|
|
5224
|
+
let R = v;
|
|
5225
|
+
return typeof v == "object" && v !== null && (R = v.value !== void 0 ? v.value : v.ID !== void 0 ? v.ID : v.id !== void 0 ? v.id : v), typeof R == "string" ? R : String(R);
|
|
5224
5226
|
}));
|
|
5225
5227
|
}), !Object.values(x).some((_) => Array.isArray(_) ? _.length > 0 : _ !== "" && _ !== void 0 && _ !== null)) {
|
|
5226
5228
|
ue.error("请输入查询条件");
|
|
@@ -5237,9 +5239,9 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5237
5239
|
colMap: x
|
|
5238
5240
|
});
|
|
5239
5241
|
if (T.message && ue.success(T.message), e.resourceId) {
|
|
5240
|
-
const w = await
|
|
5242
|
+
const w = await m(e.resourceId);
|
|
5241
5243
|
n("update:searchPlanList", w);
|
|
5242
|
-
const v = w.find((
|
|
5244
|
+
const v = w.find((R) => R.CSEARCHPLANNAME === _);
|
|
5243
5245
|
v && await p(v);
|
|
5244
5246
|
}
|
|
5245
5247
|
n("add", _, { ...x }), l.value = "";
|
|
@@ -5265,8 +5267,8 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5265
5267
|
Array.isArray(T) && (e.formConfig?.some(
|
|
5266
5268
|
(v) => v.fieldName === _ && v.component && (v.component.name === "SunnyBusinessSearch" || v.component === "SunnyBusinessSearch")
|
|
5267
5269
|
) ? x[_] = JSON.stringify(T) : x[_] = T.map((v) => {
|
|
5268
|
-
let
|
|
5269
|
-
return typeof v == "object" && v !== null && (
|
|
5270
|
+
let R = v;
|
|
5271
|
+
return typeof v == "object" && v !== null && (R = v.value !== void 0 ? v.value : v.ID !== void 0 ? v.ID : v.id !== void 0 ? v.id : v), typeof R == "string" ? R : String(R);
|
|
5270
5272
|
}));
|
|
5271
5273
|
}), !Object.values(x).some((_) => Array.isArray(_) ? _.length > 0 : _ !== "" && _ !== void 0 && _ !== null)) {
|
|
5272
5274
|
ue.error("请输入查询条件");
|
|
@@ -5282,7 +5284,7 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5282
5284
|
colMap: x
|
|
5283
5285
|
});
|
|
5284
5286
|
if (_.message && ue.success(_.message), e.resourceId) {
|
|
5285
|
-
const T = await
|
|
5287
|
+
const T = await m(e.resourceId);
|
|
5286
5288
|
n("update:searchPlanList", T);
|
|
5287
5289
|
const w = T.find((v) => v.ID === e.currentSearchPlan?.ID);
|
|
5288
5290
|
w && await p(w);
|
|
@@ -5295,7 +5297,7 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5295
5297
|
try {
|
|
5296
5298
|
const x = await o.del({ id: E.ID });
|
|
5297
5299
|
if (n("delete", E.ID), e.currentSearchPlan && e.currentSearchPlan.ID === E.ID && n("update:currentSearchPlan", void 0), x.message && ue.success(x.message), e.resourceId) {
|
|
5298
|
-
const D = await
|
|
5300
|
+
const D = await m(e.resourceId);
|
|
5299
5301
|
n("update:searchPlanList", D);
|
|
5300
5302
|
}
|
|
5301
5303
|
} catch (x) {
|
|
@@ -5313,7 +5315,7 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5313
5315
|
let w = _[T];
|
|
5314
5316
|
try {
|
|
5315
5317
|
if (e.formConfig?.some(
|
|
5316
|
-
(
|
|
5318
|
+
(R) => R.fieldName === T && R.component && (R.component.name === "SunnyBusinessSearch" || R.component === "SunnyBusinessSearch")
|
|
5317
5319
|
)) {
|
|
5318
5320
|
if (typeof w == "string")
|
|
5319
5321
|
try {
|
|
@@ -5358,10 +5360,10 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5358
5360
|
try {
|
|
5359
5361
|
w = JSON.parse(w);
|
|
5360
5362
|
} catch {
|
|
5361
|
-
w.includes(",") && (w = w.split(",").map((
|
|
5363
|
+
w.includes(",") && (w = w.split(",").map((R) => R.trim()));
|
|
5362
5364
|
}
|
|
5363
|
-
Array.isArray(w) && (w = w.map((
|
|
5364
|
-
const F = typeof
|
|
5365
|
+
Array.isArray(w) && (w = w.map((R) => {
|
|
5366
|
+
const F = typeof R == "string" ? R.trim() : R;
|
|
5365
5367
|
return String(F);
|
|
5366
5368
|
}));
|
|
5367
5369
|
}
|
|
@@ -5396,7 +5398,7 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5396
5398
|
} catch (x) {
|
|
5397
5399
|
n("error", x);
|
|
5398
5400
|
}
|
|
5399
|
-
},
|
|
5401
|
+
}, m = async (E) => {
|
|
5400
5402
|
try {
|
|
5401
5403
|
const x = {
|
|
5402
5404
|
...e.nResourceid && { nResourceid: e.nResourceid }
|
|
@@ -5454,7 +5456,7 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5454
5456
|
}
|
|
5455
5457
|
if (e.resourceId)
|
|
5456
5458
|
try {
|
|
5457
|
-
const E = await
|
|
5459
|
+
const E = await m(e.resourceId);
|
|
5458
5460
|
if (n("update:searchPlanList", E), E.length > 0) {
|
|
5459
5461
|
n("update:currentSearchPlan", E[0]);
|
|
5460
5462
|
const x = {
|
|
@@ -5466,7 +5468,7 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5466
5468
|
let w = _[T];
|
|
5467
5469
|
try {
|
|
5468
5470
|
if (e.formConfig?.some(
|
|
5469
|
-
(
|
|
5471
|
+
(R) => R.fieldName === T && R.component && (R.component.name === "SunnyBusinessSearch" || R.component === "SunnyBusinessSearch")
|
|
5470
5472
|
)) {
|
|
5471
5473
|
if (typeof w == "string")
|
|
5472
5474
|
try {
|
|
@@ -5484,10 +5486,10 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5484
5486
|
try {
|
|
5485
5487
|
w = JSON.parse(w);
|
|
5486
5488
|
} catch {
|
|
5487
|
-
w.includes(",") && (w = w.split(",").map((
|
|
5489
|
+
w.includes(",") && (w = w.split(",").map((R) => R.trim()));
|
|
5488
5490
|
}
|
|
5489
|
-
Array.isArray(w) && (w = w.map((
|
|
5490
|
-
const F = typeof
|
|
5491
|
+
Array.isArray(w) && (w = w.map((R) => {
|
|
5492
|
+
const F = typeof R == "string" ? R.trim() : R;
|
|
5491
5493
|
return String(F);
|
|
5492
5494
|
}));
|
|
5493
5495
|
}
|
|
@@ -5550,7 +5552,7 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5550
5552
|
} catch {
|
|
5551
5553
|
}
|
|
5552
5554
|
},
|
|
5553
|
-
loadSearchPlans:
|
|
5555
|
+
loadSearchPlans: m,
|
|
5554
5556
|
loadDefaultSearchPlan: async () => {
|
|
5555
5557
|
try {
|
|
5556
5558
|
const E = {
|
|
@@ -5564,7 +5566,7 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5564
5566
|
let w = _[T];
|
|
5565
5567
|
try {
|
|
5566
5568
|
if (e.formConfig?.some(
|
|
5567
|
-
(
|
|
5569
|
+
(R) => R.fieldName === T && R.component && (R.component.name === "SunnyBusinessSearch" || R.component === "SunnyBusinessSearch")
|
|
5568
5570
|
)) {
|
|
5569
5571
|
if (typeof w == "string")
|
|
5570
5572
|
try {
|
|
@@ -5582,10 +5584,10 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5582
5584
|
try {
|
|
5583
5585
|
w = JSON.parse(w);
|
|
5584
5586
|
} catch {
|
|
5585
|
-
w.includes(",") && (w = w.split(",").map((
|
|
5587
|
+
w.includes(",") && (w = w.split(",").map((R) => R.trim()));
|
|
5586
5588
|
}
|
|
5587
|
-
Array.isArray(w) && (w = w.map((
|
|
5588
|
-
const F = typeof
|
|
5589
|
+
Array.isArray(w) && (w = w.map((R) => {
|
|
5590
|
+
const F = typeof R == "string" ? R.trim() : R;
|
|
5589
5591
|
return String(F);
|
|
5590
5592
|
}));
|
|
5591
5593
|
}
|
|
@@ -5655,7 +5657,7 @@ function Cd(e, n, t, r, o = Bo) {
|
|
|
5655
5657
|
const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 relative" }, Pd = {
|
|
5656
5658
|
key: 0,
|
|
5657
5659
|
class: "absolute inset-0 bg-white/80 flex flex-col items-center justify-center z-10 rounded"
|
|
5658
|
-
}, _d = { class: "text-sm text-[var(--color-text-2)]" }, Td = { class: "w-2/3 min-w-0 pr-6 border-r border-[#D8D8D8]" }, Ad = { class: "w-1/3 pl-6" },
|
|
5660
|
+
}, _d = { class: "text-sm text-[var(--color-text-2)]" }, Td = { class: "w-2/3 min-w-0 pr-6 border-r border-[#D8D8D8]" }, Ad = { class: "w-1/3 pl-6" }, Rd = { class: "text-base font-semibold mb-4 text-[var(--color-text-1)]" }, Od = { class: "mb-5" }, Ed = { class: "mb-3" }, Vd = { class: "block text-sm text-[var(--color-text-2)] mb-1" }, Md = ["placeholder", "disabled"], jd = {
|
|
5659
5661
|
key: 0,
|
|
5660
5662
|
class: "text-xs text-red-500 mt-1"
|
|
5661
5663
|
}, Fd = { class: "flex gap-2 mt-3" }, Nd = ["disabled"], Dd = ["disabled"], Bd = { class: "text-base font-semibold mb-4 text-[var(--color-text-1)]" }, zd = { class: "max-h-44 overflow-y-auto border border-[var(--color-border-2)] rounded p-2" }, Id = ["onClick"], Ld = ["onClick", "disabled"], Ud = {
|
|
@@ -5693,7 +5695,7 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
5693
5695
|
handleAdd: y,
|
|
5694
5696
|
handleUpdate: b,
|
|
5695
5697
|
handleDelete: p,
|
|
5696
|
-
handleSelect:
|
|
5698
|
+
handleSelect: m,
|
|
5697
5699
|
handleReset: g,
|
|
5698
5700
|
handleSearch: k,
|
|
5699
5701
|
handleClose: C,
|
|
@@ -5749,57 +5751,57 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
5749
5751
|
span: 8
|
|
5750
5752
|
// 一行三列
|
|
5751
5753
|
}
|
|
5752
|
-
}))), w = M(() => t.searchPlanList), v = M(() => t.currentSearchPlan),
|
|
5754
|
+
}))), w = M(() => t.searchPlanList), v = M(() => t.currentSearchPlan), R = M(() => t.disabled), F = M(() => t.formProps), G = M(() => t.title), U = M(() => t.width);
|
|
5753
5755
|
return (W, J) => (j(), Q("div", kd, [
|
|
5754
5756
|
se(W.$slots, "trigger", {
|
|
5755
5757
|
open: x,
|
|
5756
|
-
disabled:
|
|
5758
|
+
disabled: R.value
|
|
5757
5759
|
}, () => [
|
|
5758
5760
|
N("button", {
|
|
5759
5761
|
class: "px-3 py-1.5 border border-[var(--color-border-2)] rounded bg-white text-base transition-all hover:border-[rgb(var(--primary-6))] hover:text-[rgb(var(--primary-6))] disabled:cursor-not-allowed disabled:opacity-60",
|
|
5760
|
-
disabled:
|
|
5762
|
+
disabled: R.value,
|
|
5761
5763
|
onClick: x
|
|
5762
|
-
}, K(
|
|
5764
|
+
}, K(h(ve)("common.searchPlan.title")), 9, xd)
|
|
5763
5765
|
]),
|
|
5764
|
-
B(
|
|
5765
|
-
visible:
|
|
5766
|
+
B(h(ir), ae({
|
|
5767
|
+
visible: h(l),
|
|
5766
5768
|
"onUpdate:visible": J[5] || (J[5] = (q) => wt(l) ? l.value = q : null),
|
|
5767
5769
|
title: G.value,
|
|
5768
5770
|
width: U.value,
|
|
5769
5771
|
top: "50px",
|
|
5770
5772
|
"close-on-click-modal": !1
|
|
5771
5773
|
}, _.value, {
|
|
5772
|
-
onCancel:
|
|
5773
|
-
onClose:
|
|
5774
|
+
onCancel: h(C),
|
|
5775
|
+
onClose: h(C)
|
|
5774
5776
|
}), {
|
|
5775
5777
|
footer: I(() => [
|
|
5776
5778
|
N("div", Wd, [
|
|
5777
5779
|
N("button", {
|
|
5778
5780
|
class: "px-3 py-1.5 border border-[var(--color-border-2)] rounded bg-white text-sm transition-colors hover:border-[rgb(var(--primary-6))] hover:text-[rgb(var(--primary-6))] disabled:cursor-not-allowed disabled:opacity-60",
|
|
5779
5781
|
onClick: J[3] || (J[3] = //@ts-ignore
|
|
5780
|
-
(...q) =>
|
|
5782
|
+
(...q) => h(g) && h(g)(...q)),
|
|
5781
5783
|
disabled: t.loading
|
|
5782
|
-
}, K(
|
|
5784
|
+
}, K(h(ve)("common.searchPlan.reset")), 9, Hd),
|
|
5783
5785
|
N("button", {
|
|
5784
5786
|
class: "px-3 py-1.5 bg-[rgb(var(--primary-6))] border border-[rgb(var(--primary-6))] text-white text-sm rounded hover:bg-[rgb(var(--primary-7))] transition-colors disabled:cursor-not-allowed disabled:opacity-60",
|
|
5785
5787
|
onClick: J[4] || (J[4] = //@ts-ignore
|
|
5786
|
-
(...q) =>
|
|
5788
|
+
(...q) => h(k) && h(k)(...q)),
|
|
5787
5789
|
disabled: t.loading
|
|
5788
|
-
}, K(
|
|
5790
|
+
}, K(h(ve)("common.searchPlan.search")), 9, qd)
|
|
5789
5791
|
])
|
|
5790
5792
|
]),
|
|
5791
5793
|
default: I(() => [
|
|
5792
5794
|
N("div", $d, [
|
|
5793
5795
|
t.loading ? (j(), Q("div", Pd, [
|
|
5794
5796
|
J[6] || (J[6] = N("div", { class: "w-7 h-7 border-3 border-[var(--color-border-2)] border-t-[rgb(var(--primary-6))] rounded-full animate-spin mb-2.5" }, null, -1)),
|
|
5795
|
-
N("div", _d, K(
|
|
5797
|
+
N("div", _d, K(h(ve)("common.searchPlan.loading")), 1)
|
|
5796
5798
|
])) : le("", !0),
|
|
5797
5799
|
N("div", {
|
|
5798
5800
|
class: fe([{ "opacity-60": t.loading }, "flex gap-5"])
|
|
5799
5801
|
}, [
|
|
5800
5802
|
N("div", Td, [
|
|
5801
|
-
B(
|
|
5802
|
-
"form-api":
|
|
5803
|
+
B(h(Fo), ae({
|
|
5804
|
+
"form-api": h(o),
|
|
5803
5805
|
schema: T.value,
|
|
5804
5806
|
"show-default-actions": !1,
|
|
5805
5807
|
"show-message": !1,
|
|
@@ -5808,43 +5810,43 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
5808
5810
|
}, F.value, { onMounted: D }), null, 16, ["form-api", "schema"])
|
|
5809
5811
|
]),
|
|
5810
5812
|
N("div", Ad, [
|
|
5811
|
-
N("h3",
|
|
5812
|
-
N("div",
|
|
5813
|
+
N("h3", Rd, K(h(ve)("common.searchPlan.newPlan")), 1),
|
|
5814
|
+
N("div", Od, [
|
|
5813
5815
|
N("div", Ed, [
|
|
5814
|
-
N("label", Vd, K(
|
|
5816
|
+
N("label", Vd, K(h(ve)("common.searchPlan.planName")), 1),
|
|
5815
5817
|
ln(N("input", {
|
|
5816
5818
|
"onUpdate:modelValue": J[0] || (J[0] = (q) => wt(u) ? u.value = q : null),
|
|
5817
5819
|
type: "text",
|
|
5818
|
-
placeholder:
|
|
5820
|
+
placeholder: h(ve)("common.searchPlan.planNamePlaceholder"),
|
|
5819
5821
|
class: "w-full px-2 py-1.5 border border-[var(--color-border-2)] rounded text-xs focus:outline-none focus:border-[rgb(var(--primary-6))] focus:ring-2 focus:ring-[rgb(var(--primary-1))]",
|
|
5820
5822
|
disabled: t.loading
|
|
5821
5823
|
}, null, 8, Md), [
|
|
5822
|
-
[Ai,
|
|
5824
|
+
[Ai, h(u)]
|
|
5823
5825
|
]),
|
|
5824
|
-
!
|
|
5826
|
+
!h(u).trim() && h(d) ? (j(), Q("div", jd, K(h(ve)("common.searchPlan.planNameRequired")), 1)) : le("", !0)
|
|
5825
5827
|
]),
|
|
5826
5828
|
N("div", Fd, [
|
|
5827
5829
|
N("button", {
|
|
5828
5830
|
class: "px-3 py-1 border border-[rgb(var(--primary-6))] text-[rgb(var(--primary-6))] text-xs rounded hover:bg-[rgb(var(--primary-6))] hover:text-white transition-colors disabled:cursor-not-allowed disabled:opacity-60",
|
|
5829
5831
|
onClick: J[1] || (J[1] = //@ts-ignore
|
|
5830
|
-
(...q) =>
|
|
5832
|
+
(...q) => h(y) && h(y)(...q)),
|
|
5831
5833
|
disabled: t.loading
|
|
5832
|
-
}, K(
|
|
5834
|
+
}, K(h(ve)("common.searchPlan.add")), 9, Nd),
|
|
5833
5835
|
N("button", {
|
|
5834
5836
|
class: "px-3 py-1 border border-[#ff4949] text-[#ff4949] text-xs rounded hover:bg-[#ff4949] hover:text-white transition-colors disabled:cursor-not-allowed disabled:opacity-60",
|
|
5835
5837
|
disabled: !v.value || t.loading,
|
|
5836
5838
|
onClick: J[2] || (J[2] = //@ts-ignore
|
|
5837
|
-
(...q) =>
|
|
5838
|
-
}, K(
|
|
5839
|
+
(...q) => h(b) && h(b)(...q))
|
|
5840
|
+
}, K(h(ve)("common.searchPlan.update")), 9, Dd)
|
|
5839
5841
|
])
|
|
5840
5842
|
]),
|
|
5841
5843
|
J[7] || (J[7] = N("div", { class: "h-px bg-[var(--color-border-2)] my-5" }, null, -1)),
|
|
5842
|
-
N("h3", Bd, K(
|
|
5844
|
+
N("h3", Bd, K(h(ve)("common.searchPlan.savedPlans")), 1),
|
|
5843
5845
|
N("div", zd, [
|
|
5844
5846
|
(j(!0), Q(Fe, null, _e(w.value, (q, pe) => (j(), Q("div", {
|
|
5845
5847
|
key: q.ID,
|
|
5846
5848
|
class: fe(["flex items-center p-2 mb-1 rounded cursor-pointer transition-all hover:bg-[var(--color-fill-1)] border border-transparent", { "bg-[rgb(var(--primary-1))] border-[rgb(var(--primary-6))]": v.value && (v.value.ID == q.ID || v.value.ID === q.ID) }]),
|
|
5847
|
-
onClick: (Te) => m
|
|
5849
|
+
onClick: (Te) => h(m)(q),
|
|
5848
5850
|
style: Me({ cursor: t.loading ? "not-allowed" : "pointer" })
|
|
5849
5851
|
}, [
|
|
5850
5852
|
N("div", {
|
|
@@ -5855,11 +5857,11 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
5855
5857
|
}, K(q.CSEARCHPLANNAME), 3),
|
|
5856
5858
|
N("button", {
|
|
5857
5859
|
class: "w-4 h-4 flex items-center justify-center border-none bg-transparent cursor-pointer text-sm text-[var(--color-text-3)] transition-colors rounded hover:text-[var(--color-danger)] hover:bg-[var(--color-danger-light)]",
|
|
5858
|
-
onClick: Ve((Te) =>
|
|
5860
|
+
onClick: Ve((Te) => h(p)(q), ["stop"]),
|
|
5859
5861
|
disabled: t.loading
|
|
5860
5862
|
}, " × ", 8, Ld)
|
|
5861
5863
|
], 14, Id))), 128)),
|
|
5862
|
-
w.value.length === 0 ? (j(), Q("div", Ud, K(
|
|
5864
|
+
w.value.length === 0 ? (j(), Q("div", Ud, K(h(ve)("common.searchPlan.noPlans")), 1)) : le("", !0)
|
|
5863
5865
|
])
|
|
5864
5866
|
])
|
|
5865
5867
|
], 2)
|
|
@@ -5899,7 +5901,7 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
5899
5901
|
cKeyname: "",
|
|
5900
5902
|
cSlot: ""
|
|
5901
5903
|
}
|
|
5902
|
-
]), y = Z([]), b = Z(!1), p = Z(!1),
|
|
5904
|
+
]), y = Z([]), b = Z(!1), p = Z(!1), m = M({
|
|
5903
5905
|
get: () => o.value,
|
|
5904
5906
|
set: (V) => {
|
|
5905
5907
|
i("update:modelValue", V);
|
|
@@ -5918,7 +5920,7 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
5918
5920
|
...o.attrParam
|
|
5919
5921
|
}
|
|
5920
5922
|
};
|
|
5921
|
-
|
|
5923
|
+
m.value && (E.cVal = dl(m.value));
|
|
5922
5924
|
const x = await V.query(E);
|
|
5923
5925
|
d.value = x.options || [], y.value = x.options || [], x.config && (u.value = Object.assign({}, u.value, x.config)), p.value = !1;
|
|
5924
5926
|
} catch (V) {
|
|
@@ -5961,9 +5963,9 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
5961
5963
|
), kt(() => {
|
|
5962
5964
|
o.defaultQuery && o.defaultQuery === !0 ? g() : o.cNum && o.defaultQuery === !1 && (u.value = Object.assign({}, u.value, o.defaultConfig));
|
|
5963
5965
|
}), (V, E) => (j(), Q("div", Jd, [
|
|
5964
|
-
B(
|
|
5965
|
-
modelValue:
|
|
5966
|
-
"onUpdate:modelValue": E[0] || (E[0] = (x) =>
|
|
5966
|
+
B(h(t), ae({
|
|
5967
|
+
modelValue: m.value,
|
|
5968
|
+
"onUpdate:modelValue": E[0] || (E[0] = (x) => m.value = x),
|
|
5967
5969
|
"allow-clear": "",
|
|
5968
5970
|
"allow-search": u.value.nType == 1,
|
|
5969
5971
|
loading: b.value,
|
|
@@ -5971,13 +5973,13 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
5971
5973
|
}, V.$attrs, {
|
|
5972
5974
|
onChange: k,
|
|
5973
5975
|
onClear: $,
|
|
5974
|
-
onSearch:
|
|
5976
|
+
onSearch: h(C),
|
|
5975
5977
|
triggerProps: {
|
|
5976
5978
|
contentClass: "customize-select-content"
|
|
5977
5979
|
}
|
|
5978
5980
|
}), {
|
|
5979
5981
|
default: I(() => [
|
|
5980
|
-
(j(!0), Q(Fe, null, _e(d.value, (x) => (j(), ne(
|
|
5982
|
+
(j(!0), Q(Fe, null, _e(d.value, (x) => (j(), ne(h(r), {
|
|
5981
5983
|
key: x[o.fieldNames.value],
|
|
5982
5984
|
label: x[o.fieldNames.label],
|
|
5983
5985
|
value: x[o.fieldNames.value]
|
|
@@ -6010,7 +6012,7 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
6010
6012
|
{ label: r("common.exportModal.varchar"), value: "varchar" },
|
|
6011
6013
|
{ label: r("common.exportModal.number"), value: "number" },
|
|
6012
6014
|
{ label: r("common.exportModal.date"), value: "date" }
|
|
6013
|
-
],
|
|
6015
|
+
], m = [
|
|
6014
6016
|
{ label: "10000", value: "10000" },
|
|
6015
6017
|
{ label: "20000", value: "20000" },
|
|
6016
6018
|
{ label: "50000", value: "50000" },
|
|
@@ -6073,51 +6075,51 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
6073
6075
|
};
|
|
6074
6076
|
return (x, D) => {
|
|
6075
6077
|
const _ = Ee("vxe-checkbox"), T = Ee("vxe-column"), w = Ee("vxe-table");
|
|
6076
|
-
return j(), ne(
|
|
6078
|
+
return j(), ne(h(Mt), {
|
|
6077
6079
|
visible: l.value,
|
|
6078
6080
|
"onUpdate:visible": D[2] || (D[2] = (v) => l.value = v),
|
|
6079
|
-
title:
|
|
6081
|
+
title: h(r)("common.exportModal.title"),
|
|
6080
6082
|
width: 700,
|
|
6081
6083
|
"mask-closable": !1,
|
|
6082
6084
|
onCancel: E
|
|
6083
6085
|
}, {
|
|
6084
6086
|
footer: I(() => [
|
|
6085
|
-
B(
|
|
6087
|
+
B(h(Ue), { onClick: E }, {
|
|
6086
6088
|
default: I(() => [
|
|
6087
|
-
we(K(
|
|
6089
|
+
we(K(h(r)("common.modal.cancel")), 1)
|
|
6088
6090
|
]),
|
|
6089
6091
|
_: 1
|
|
6090
6092
|
}),
|
|
6091
|
-
B(
|
|
6093
|
+
B(h(Ue), {
|
|
6092
6094
|
type: "primary",
|
|
6093
6095
|
loading: b.value,
|
|
6094
6096
|
onClick: V
|
|
6095
6097
|
}, {
|
|
6096
6098
|
default: I(() => [
|
|
6097
|
-
we(K(
|
|
6099
|
+
we(K(h(r)("common.modal.confirm")), 1)
|
|
6098
6100
|
]),
|
|
6099
6101
|
_: 1
|
|
6100
6102
|
}, 8, ["loading"])
|
|
6101
6103
|
]),
|
|
6102
6104
|
default: I(() => [
|
|
6103
|
-
B(
|
|
6105
|
+
B(h(qi), {
|
|
6104
6106
|
model: d.value,
|
|
6105
6107
|
layout: "inline"
|
|
6106
6108
|
}, {
|
|
6107
6109
|
default: I(() => [
|
|
6108
|
-
d.value.showSheetRowNum ? (j(), ne(
|
|
6110
|
+
d.value.showSheetRowNum ? (j(), ne(h(Hr), {
|
|
6109
6111
|
key: 0,
|
|
6110
|
-
label:
|
|
6112
|
+
label: h(r)("common.exportModal.showSheetRowNum")
|
|
6111
6113
|
}, {
|
|
6112
6114
|
default: I(() => [
|
|
6113
|
-
B(
|
|
6115
|
+
B(h(mt), {
|
|
6114
6116
|
modelValue: d.value.nSheetRowNum,
|
|
6115
6117
|
"onUpdate:modelValue": D[0] || (D[0] = (v) => d.value.nSheetRowNum = v),
|
|
6116
6118
|
placeholder: d.value.hintSheetRowNum,
|
|
6117
6119
|
"allow-clear": ""
|
|
6118
6120
|
}, {
|
|
6119
6121
|
default: I(() => [
|
|
6120
|
-
(j(), Q(Fe, null, _e(
|
|
6122
|
+
(j(), Q(Fe, null, _e(m, (v) => B(h(fn), {
|
|
6121
6123
|
key: v.value,
|
|
6122
6124
|
label: v.label,
|
|
6123
6125
|
value: v.value
|
|
@@ -6128,12 +6130,12 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
6128
6130
|
]),
|
|
6129
6131
|
_: 1
|
|
6130
6132
|
}, 8, ["label"])) : le("", !0),
|
|
6131
|
-
d.value.showMaxExportNumber ? (j(), ne(
|
|
6133
|
+
d.value.showMaxExportNumber ? (j(), ne(h(Hr), {
|
|
6132
6134
|
key: 1,
|
|
6133
|
-
label:
|
|
6135
|
+
label: h(r)("common.exportModal.showMaxExportNumber")
|
|
6134
6136
|
}, {
|
|
6135
6137
|
default: I(() => [
|
|
6136
|
-
B(
|
|
6138
|
+
B(h(jt), {
|
|
6137
6139
|
modelValue: d.value.maxExportNumber,
|
|
6138
6140
|
"onUpdate:modelValue": D[1] || (D[1] = (v) => d.value.maxExportNumber = v),
|
|
6139
6141
|
placeholder: d.value.hintMaxExportNumber
|
|
@@ -6157,14 +6159,14 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
6157
6159
|
}, {
|
|
6158
6160
|
default: I(() => [
|
|
6159
6161
|
B(T, {
|
|
6160
|
-
title:
|
|
6162
|
+
title: h(r)("common.exportModal.nSfExport"),
|
|
6161
6163
|
width: "70",
|
|
6162
6164
|
align: "center"
|
|
6163
6165
|
}, {
|
|
6164
6166
|
default: I(({ row: v }) => [
|
|
6165
6167
|
B(_, {
|
|
6166
6168
|
modelValue: v.nSfExport,
|
|
6167
|
-
"onUpdate:modelValue": (
|
|
6169
|
+
"onUpdate:modelValue": (R) => v.nSfExport = R,
|
|
6168
6170
|
size: "small",
|
|
6169
6171
|
"checked-value": 1,
|
|
6170
6172
|
"unchecked-value": 0
|
|
@@ -6174,39 +6176,39 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
6174
6176
|
}, 8, ["title"]),
|
|
6175
6177
|
B(T, {
|
|
6176
6178
|
field: "colName",
|
|
6177
|
-
title:
|
|
6179
|
+
title: h(r)("common.exportModal.colName"),
|
|
6178
6180
|
align: "center"
|
|
6179
6181
|
}, null, 8, ["title"]),
|
|
6180
6182
|
B(T, {
|
|
6181
|
-
title:
|
|
6183
|
+
title: h(r)("common.exportModal.colWidth"),
|
|
6182
6184
|
width: "100",
|
|
6183
6185
|
align: "center"
|
|
6184
6186
|
}, {
|
|
6185
6187
|
default: I(({ row: v }) => [
|
|
6186
|
-
B(
|
|
6188
|
+
B(h(jt), {
|
|
6187
6189
|
modelValue: v.colWidth,
|
|
6188
|
-
"onUpdate:modelValue": (
|
|
6190
|
+
"onUpdate:modelValue": (R) => v.colWidth = R,
|
|
6189
6191
|
size: "small"
|
|
6190
6192
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
6191
6193
|
]),
|
|
6192
6194
|
_: 1
|
|
6193
6195
|
}, 8, ["title"]),
|
|
6194
6196
|
B(T, {
|
|
6195
|
-
title:
|
|
6197
|
+
title: h(r)("common.exportModal.colDataType"),
|
|
6196
6198
|
width: "120",
|
|
6197
6199
|
align: "center"
|
|
6198
6200
|
}, {
|
|
6199
6201
|
default: I(({ row: v }) => [
|
|
6200
|
-
B(
|
|
6202
|
+
B(h(mt), {
|
|
6201
6203
|
modelValue: v.colDataType,
|
|
6202
|
-
"onUpdate:modelValue": (
|
|
6204
|
+
"onUpdate:modelValue": (R) => v.colDataType = R,
|
|
6203
6205
|
size: "small"
|
|
6204
6206
|
}, {
|
|
6205
6207
|
default: I(() => [
|
|
6206
|
-
(j(), Q(Fe, null, _e(p, (
|
|
6207
|
-
key:
|
|
6208
|
-
label:
|
|
6209
|
-
value:
|
|
6208
|
+
(j(), Q(Fe, null, _e(p, (R) => B(h(fn), {
|
|
6209
|
+
key: R.value,
|
|
6210
|
+
label: R.label,
|
|
6211
|
+
value: R.value
|
|
6210
6212
|
}, null, 8, ["label", "value"])), 64))
|
|
6211
6213
|
]),
|
|
6212
6214
|
_: 1
|
|
@@ -6215,7 +6217,7 @@ const kd = { class: "inline-block" }, xd = ["disabled"], $d = { class: "p-5 rela
|
|
|
6215
6217
|
_: 1
|
|
6216
6218
|
}, 8, ["title"]),
|
|
6217
6219
|
B(T, {
|
|
6218
|
-
title:
|
|
6220
|
+
title: h(r)("common.exportModal.drag"),
|
|
6219
6221
|
width: "50",
|
|
6220
6222
|
align: "center",
|
|
6221
6223
|
fixed: "right",
|
|
@@ -6268,15 +6270,15 @@ const Zd = { class: "import-modal-body" }, Xd = { class: "option-label" }, ef =
|
|
|
6268
6270
|
},
|
|
6269
6271
|
emits: ["upload-success", "upload-error", "download-success", "download-error", "close"],
|
|
6270
6272
|
setup(e, { expose: n, emit: t }) {
|
|
6271
|
-
const { t: r } = Co(), o = e, i = t, l = Z(!1), u = Z([]), d = Z(!1), y = Z(!1), b = Z(), p = (x) => u.value.length >= o.limit ? (ue.error(r("common.importModal.maxUploadLimit", { limit: o.limit })), !1) : o.accept.split(",").some((T) => x.name.endsWith(T.replace(".", ""))) ? x.size / 1024 / 1024 < o.maxSize ? !0 : (ue.error(r("common.importModal.maxSize", { maxSize: o.maxSize })), !1) : (ue.error(r("common.importModal.onlySupport", { accept: o.accept })), !1),
|
|
6273
|
+
const { t: r } = Co(), o = e, i = t, l = Z(!1), u = Z([]), d = Z(!1), y = Z(!1), b = Z(), p = (x) => u.value.length >= o.limit ? (ue.error(r("common.importModal.maxUploadLimit", { limit: o.limit })), !1) : o.accept.split(",").some((T) => x.name.endsWith(T.replace(".", ""))) ? x.size / 1024 / 1024 < o.maxSize ? !0 : (ue.error(r("common.importModal.maxSize", { maxSize: o.maxSize })), !1) : (ue.error(r("common.importModal.onlySupport", { accept: o.accept })), !1), m = () => {
|
|
6272
6274
|
b.value.submit();
|
|
6273
6275
|
}, g = async (x) => {
|
|
6274
6276
|
const { onProgress: D, onError: _, onSuccess: T, fileItem: w, name: v } = x;
|
|
6275
6277
|
d.value = !0;
|
|
6276
6278
|
try {
|
|
6277
|
-
const
|
|
6278
|
-
|
|
6279
|
-
const F = y.value ? `${We.apiPrefix}${o.uploadUrl}/upload/fileUploadDecode` : `${We.apiPrefix}${o.uploadUrl}/upload/fileUpload`, G = await st.post(F,
|
|
6279
|
+
const R = new FormData();
|
|
6280
|
+
R.append("fileName", w.file), R.append("nModid", String(o.nModid)), R.append("nButtonid", String(o.nButtonid)), R.append("usernumb", String(o.usernumb ?? "")), o.params && R.append("paramMap", JSON.stringify(o.params));
|
|
6281
|
+
const F = y.value ? `${We.apiPrefix}${o.uploadUrl}/upload/fileUploadDecode` : `${We.apiPrefix}${o.uploadUrl}/upload/fileUpload`, G = await st.post(F, R, {
|
|
6280
6282
|
headers: {
|
|
6281
6283
|
"Content-Type": "multipart/form-data"
|
|
6282
6284
|
}
|
|
@@ -6285,8 +6287,8 @@ const Zd = { class: "import-modal-body" }, Xd = { class: "option-label" }, ef =
|
|
|
6285
6287
|
content: G.data.message || r("common.importModal.uploadSuccess"),
|
|
6286
6288
|
duration: 5e3
|
|
6287
6289
|
}), T(G.data), i("upload-success", G.data), V()) : (ue.error(G.data.message || r("common.importModal.uploadError")), _(G.data), i("upload-error", G.data));
|
|
6288
|
-
} catch (
|
|
6289
|
-
ue.error(
|
|
6290
|
+
} catch (R) {
|
|
6291
|
+
ue.error(R.message || r("common.importModal.uploadError")), _(R), i("upload-error", R);
|
|
6290
6292
|
} finally {
|
|
6291
6293
|
d.value = !1;
|
|
6292
6294
|
}
|
|
@@ -6318,10 +6320,10 @@ const Zd = { class: "import-modal-body" }, Xd = { class: "option-label" }, ef =
|
|
|
6318
6320
|
};
|
|
6319
6321
|
return (x, D) => {
|
|
6320
6322
|
const _ = Ee("a-space");
|
|
6321
|
-
return j(), ne(
|
|
6323
|
+
return j(), ne(h(Mt), {
|
|
6322
6324
|
visible: l.value,
|
|
6323
6325
|
"onUpdate:visible": D[3] || (D[3] = (T) => l.value = T),
|
|
6324
|
-
title:
|
|
6326
|
+
title: h(r)("common.importModal.title"),
|
|
6325
6327
|
width: 550,
|
|
6326
6328
|
"mask-closable": !1,
|
|
6327
6329
|
footer: !1,
|
|
@@ -6329,7 +6331,7 @@ const Zd = { class: "import-modal-body" }, Xd = { class: "option-label" }, ef =
|
|
|
6329
6331
|
}, {
|
|
6330
6332
|
default: I(() => [
|
|
6331
6333
|
N("div", Zd, [
|
|
6332
|
-
B(
|
|
6334
|
+
B(h(cn), {
|
|
6333
6335
|
action: "#",
|
|
6334
6336
|
"auto-upload": !1,
|
|
6335
6337
|
ref_key: "uploadRef",
|
|
@@ -6342,29 +6344,29 @@ const Zd = { class: "import-modal-body" }, Xd = { class: "option-label" }, ef =
|
|
|
6342
6344
|
"upload-button": I(() => [
|
|
6343
6345
|
B(_, null, {
|
|
6344
6346
|
default: I(() => [
|
|
6345
|
-
B(
|
|
6347
|
+
B(h(Ue), {
|
|
6346
6348
|
type: "outline",
|
|
6347
6349
|
disabled: d.value,
|
|
6348
6350
|
onClick: Ve(C, ["stop"])
|
|
6349
6351
|
}, {
|
|
6350
6352
|
default: I(() => [
|
|
6351
|
-
we(K(
|
|
6353
|
+
we(K(h(r)("common.importModal.downloadTemplate")), 1)
|
|
6352
6354
|
]),
|
|
6353
6355
|
_: 1
|
|
6354
6356
|
}, 8, ["disabled"]),
|
|
6355
|
-
B(
|
|
6357
|
+
B(h(Ue), null, {
|
|
6356
6358
|
default: I(() => [
|
|
6357
|
-
we(K(
|
|
6359
|
+
we(K(h(r)("common.importModal.selectFile")), 1)
|
|
6358
6360
|
]),
|
|
6359
6361
|
_: 1
|
|
6360
6362
|
}),
|
|
6361
|
-
B(
|
|
6363
|
+
B(h(Ue), {
|
|
6362
6364
|
type: "primary",
|
|
6363
6365
|
disabled: d.value,
|
|
6364
|
-
onClick: Ve(
|
|
6366
|
+
onClick: Ve(m, ["stop"])
|
|
6365
6367
|
}, {
|
|
6366
6368
|
default: I(() => [
|
|
6367
|
-
we(K(
|
|
6369
|
+
we(K(h(r)("common.importModal.upload")), 1)
|
|
6368
6370
|
]),
|
|
6369
6371
|
_: 1
|
|
6370
6372
|
}, 8, ["disabled"]),
|
|
@@ -6372,8 +6374,8 @@ const Zd = { class: "import-modal-body" }, Xd = { class: "option-label" }, ef =
|
|
|
6372
6374
|
onClick: D[2] || (D[2] = Ve(() => {
|
|
6373
6375
|
}, ["stop"]))
|
|
6374
6376
|
}, [
|
|
6375
|
-
N("span", Xd, K(
|
|
6376
|
-
B(
|
|
6377
|
+
N("span", Xd, K(h(r)("common.importModal.isdecode")) + ":", 1),
|
|
6378
|
+
B(h(un), {
|
|
6377
6379
|
modelValue: y.value,
|
|
6378
6380
|
"onUpdate:modelValue": D[0] || (D[0] = (T) => y.value = T),
|
|
6379
6381
|
onClick: D[1] || (D[1] = Ve(() => {
|
|
@@ -6841,9 +6843,9 @@ async function _f(e, n, t = St) {
|
|
|
6841
6843
|
);
|
|
6842
6844
|
o._free(y);
|
|
6843
6845
|
const p = [];
|
|
6844
|
-
for (let
|
|
6846
|
+
for (let m = 0; m < b.size(); ++m)
|
|
6845
6847
|
p.push(
|
|
6846
|
-
Zo(b.get(
|
|
6848
|
+
Zo(b.get(m))
|
|
6847
6849
|
);
|
|
6848
6850
|
return p;
|
|
6849
6851
|
}
|
|
@@ -6869,7 +6871,7 @@ var ur = (() => {
|
|
|
6869
6871
|
var s = new XMLHttpRequest();
|
|
6870
6872
|
return s.open("GET", a, !1), s.responseType = "arraybuffer", s.send(null), new Uint8Array(s.response);
|
|
6871
6873
|
})), t.print || console.log.bind(console);
|
|
6872
|
-
var
|
|
6874
|
+
var m = t.printErr || console.error.bind(console);
|
|
6873
6875
|
Object.assign(t, i), i = null, t.arguments && t.arguments, t.thisProgram && (l = t.thisProgram), t.quit && t.quit;
|
|
6874
6876
|
var g;
|
|
6875
6877
|
t.wasmBinary && (g = t.wasmBinary), typeof WebAssembly != "object" && je("no native wasm support detected");
|
|
@@ -6878,12 +6880,12 @@ var ur = (() => {
|
|
|
6878
6880
|
var a = k.buffer;
|
|
6879
6881
|
t.HEAP8 = $ = new Int8Array(a), t.HEAP16 = E = new Int16Array(a), t.HEAPU8 = V = new Uint8Array(a), t.HEAPU16 = x = new Uint16Array(a), t.HEAP32 = D = new Int32Array(a), t.HEAPU32 = _ = new Uint32Array(a), t.HEAPF32 = T = new Float32Array(a), t.HEAPF64 = w = new Float64Array(a);
|
|
6880
6882
|
}
|
|
6881
|
-
var
|
|
6883
|
+
var R = [], F = [], G = [];
|
|
6882
6884
|
function U() {
|
|
6883
6885
|
if (t.preRun)
|
|
6884
6886
|
for (typeof t.preRun == "function" && (t.preRun = [t.preRun]); t.preRun.length; )
|
|
6885
6887
|
q(t.preRun.shift());
|
|
6886
|
-
Sn(
|
|
6888
|
+
Sn(R);
|
|
6887
6889
|
}
|
|
6888
6890
|
function W() {
|
|
6889
6891
|
Sn(F);
|
|
@@ -6895,7 +6897,7 @@ var ur = (() => {
|
|
|
6895
6897
|
Sn(G);
|
|
6896
6898
|
}
|
|
6897
6899
|
function q(a) {
|
|
6898
|
-
|
|
6900
|
+
R.unshift(a);
|
|
6899
6901
|
}
|
|
6900
6902
|
function pe(a) {
|
|
6901
6903
|
F.unshift(a);
|
|
@@ -6917,7 +6919,7 @@ var ur = (() => {
|
|
|
6917
6919
|
}
|
|
6918
6920
|
function je(a) {
|
|
6919
6921
|
var s;
|
|
6920
|
-
(s = t.onAbort) === null || s === void 0 || s.call(t, a), a = "Aborted(" + a + ")",
|
|
6922
|
+
(s = t.onAbort) === null || s === void 0 || s.call(t, a), a = "Aborted(" + a + ")", m(a), C = !0, a += ". Build with -sASSERTIONS for more info.";
|
|
6921
6923
|
var c = new WebAssembly.RuntimeError(a);
|
|
6922
6924
|
throw o(c), c;
|
|
6923
6925
|
}
|
|
@@ -6941,7 +6943,7 @@ var ur = (() => {
|
|
|
6941
6943
|
}
|
|
6942
6944
|
function Bt(a, s, c) {
|
|
6943
6945
|
return wn(a).then((f) => WebAssembly.instantiate(f, s)).then((f) => f).then(c, (f) => {
|
|
6944
|
-
|
|
6946
|
+
m(`failed to asynchronously prepare wasm: ${f}`), je(f);
|
|
6945
6947
|
});
|
|
6946
6948
|
}
|
|
6947
6949
|
function ma(a, s, c, f) {
|
|
@@ -6950,7 +6952,7 @@ var ur = (() => {
|
|
|
6950
6952
|
}).then((S) => {
|
|
6951
6953
|
var P = WebAssembly.instantiateStreaming(S, c);
|
|
6952
6954
|
return P.then(f, function(A) {
|
|
6953
|
-
return
|
|
6955
|
+
return m(`wasm streaming compile failed: ${A}`), m("falling back to ArrayBuffer instantiation"), Bt(s, c, f);
|
|
6954
6956
|
});
|
|
6955
6957
|
}) : Bt(s, c, f);
|
|
6956
6958
|
}
|
|
@@ -6969,7 +6971,7 @@ var ur = (() => {
|
|
|
6969
6971
|
try {
|
|
6970
6972
|
return t.instantiateWasm(a, s);
|
|
6971
6973
|
} catch (f) {
|
|
6972
|
-
|
|
6974
|
+
m(`Module.instantiateWasm callback failed with error: ${f}`), o(f);
|
|
6973
6975
|
}
|
|
6974
6976
|
return ma(g, it, a, c).catch(o), {};
|
|
6975
6977
|
}
|
|
@@ -7022,21 +7024,21 @@ var ur = (() => {
|
|
|
7022
7024
|
}, kn = (a) => {
|
|
7023
7025
|
var s = nt;
|
|
7024
7026
|
if (!s)
|
|
7025
|
-
return
|
|
7027
|
+
return Ot(0), 0;
|
|
7026
7028
|
var c = new Cn(s);
|
|
7027
7029
|
c.set_adjusted_ptr(s);
|
|
7028
7030
|
var f = c.get_type();
|
|
7029
7031
|
if (!f)
|
|
7030
|
-
return
|
|
7032
|
+
return Ot(0), s;
|
|
7031
7033
|
for (var S in a) {
|
|
7032
7034
|
var P = a[S];
|
|
7033
7035
|
if (P === 0 || P === f)
|
|
7034
7036
|
break;
|
|
7035
7037
|
var A = c.ptr + 16;
|
|
7036
7038
|
if (Nr(P, f, A))
|
|
7037
|
-
return
|
|
7039
|
+
return Ot(P), s;
|
|
7038
7040
|
}
|
|
7039
|
-
return
|
|
7041
|
+
return Ot(f), s;
|
|
7040
7042
|
}, ba = () => kn([]), wa = (a) => kn([a]), Sa = (a, s) => kn([a, s]), Ca = () => {
|
|
7041
7043
|
var a = zt.pop();
|
|
7042
7044
|
a || je("no exception to throw");
|
|
@@ -7057,19 +7059,19 @@ var ur = (() => {
|
|
|
7057
7059
|
var ht = {}, ft = {}, Ut = {}, pr, Wt = (a) => {
|
|
7058
7060
|
throw new pr(a);
|
|
7059
7061
|
}, pt = (a, s, c) => {
|
|
7060
|
-
a.forEach(function(
|
|
7061
|
-
Ut[
|
|
7062
|
+
a.forEach(function(O) {
|
|
7063
|
+
Ut[O] = s;
|
|
7062
7064
|
});
|
|
7063
|
-
function f(
|
|
7064
|
-
var z = c(
|
|
7065
|
+
function f(O) {
|
|
7066
|
+
var z = c(O);
|
|
7065
7067
|
z.length !== a.length && Wt("Mismatched type converter count");
|
|
7066
7068
|
for (var H = 0; H < a.length; ++H)
|
|
7067
7069
|
Qe(a[H], z[H]);
|
|
7068
7070
|
}
|
|
7069
7071
|
var S = new Array(s.length), P = [], A = 0;
|
|
7070
|
-
s.forEach((
|
|
7071
|
-
ft.hasOwnProperty(
|
|
7072
|
-
S[z] = ft[
|
|
7072
|
+
s.forEach((O, z) => {
|
|
7073
|
+
ft.hasOwnProperty(O) ? S[z] = ft[O] : (P.push(O), ht.hasOwnProperty(O) || (ht[O] = []), ht[O].push(() => {
|
|
7074
|
+
S[z] = ft[O], ++A, A === P.length && f(S);
|
|
7073
7075
|
}));
|
|
7074
7076
|
}), P.length === 0 && f(S);
|
|
7075
7077
|
}, $a = (a) => {
|
|
@@ -7077,31 +7079,31 @@ var ur = (() => {
|
|
|
7077
7079
|
delete Lt[a];
|
|
7078
7080
|
var c = s.rawConstructor, f = s.rawDestructor, S = s.fields, P = S.map((A) => A.getterReturnType).concat(S.map((A) => A.setterArgumentType));
|
|
7079
7081
|
pt([a], P, (A) => {
|
|
7080
|
-
var
|
|
7082
|
+
var O = {};
|
|
7081
7083
|
return S.forEach((z, H) => {
|
|
7082
7084
|
var Y = z.fieldName, re = A[H], oe = z.getter, ie = z.getterContext, ge = A[H + S.length], xe = z.setter, he = z.setterContext;
|
|
7083
|
-
|
|
7084
|
-
read: (
|
|
7085
|
-
write: (
|
|
7085
|
+
O[Y] = {
|
|
7086
|
+
read: (Oe) => re.fromWireType(oe(ie, Oe)),
|
|
7087
|
+
write: (Oe, L) => {
|
|
7086
7088
|
var X = [];
|
|
7087
|
-
xe(he,
|
|
7089
|
+
xe(he, Oe, ge.toWireType(X, L)), xn(X);
|
|
7088
7090
|
}
|
|
7089
7091
|
};
|
|
7090
7092
|
}), [{
|
|
7091
7093
|
name: s.name,
|
|
7092
7094
|
fromWireType: (z) => {
|
|
7093
7095
|
var H = {};
|
|
7094
|
-
for (var Y in
|
|
7095
|
-
H[Y] =
|
|
7096
|
+
for (var Y in O)
|
|
7097
|
+
H[Y] = O[Y].read(z);
|
|
7096
7098
|
return f(z), H;
|
|
7097
7099
|
},
|
|
7098
7100
|
toWireType: (z, H) => {
|
|
7099
|
-
for (var Y in
|
|
7101
|
+
for (var Y in O)
|
|
7100
7102
|
if (!(Y in H))
|
|
7101
7103
|
throw new TypeError(`Missing field: "${Y}"`);
|
|
7102
7104
|
var re = c();
|
|
7103
|
-
for (Y in
|
|
7104
|
-
|
|
7105
|
+
for (Y in O)
|
|
7106
|
+
O[Y].write(re, H[Y]);
|
|
7105
7107
|
return z !== null && z.push(f, re), re;
|
|
7106
7108
|
},
|
|
7107
7109
|
argPackAdvance: Ze,
|
|
@@ -7114,7 +7116,7 @@ var ur = (() => {
|
|
|
7114
7116
|
for (var a = new Array(256), s = 0; s < 256; ++s)
|
|
7115
7117
|
a[s] = String.fromCharCode(s);
|
|
7116
7118
|
mr = a;
|
|
7117
|
-
}, mr,
|
|
7119
|
+
}, mr, Re = (a) => {
|
|
7118
7120
|
for (var s = "", c = a; V[c]; )
|
|
7119
7121
|
s += mr[V[c++]];
|
|
7120
7122
|
return s;
|
|
@@ -7141,7 +7143,7 @@ var ur = (() => {
|
|
|
7141
7143
|
return Ta(a, s, c);
|
|
7142
7144
|
}
|
|
7143
7145
|
var Ze = 8, Aa = (a, s, c, f) => {
|
|
7144
|
-
s =
|
|
7146
|
+
s = Re(s), Qe(a, {
|
|
7145
7147
|
name: s,
|
|
7146
7148
|
fromWireType: function(S) {
|
|
7147
7149
|
return !!S;
|
|
@@ -7155,7 +7157,7 @@ var ur = (() => {
|
|
|
7155
7157
|
},
|
|
7156
7158
|
destructorFunction: null
|
|
7157
7159
|
});
|
|
7158
|
-
},
|
|
7160
|
+
}, Ra = (a) => ({
|
|
7159
7161
|
count: a.count,
|
|
7160
7162
|
deleteScheduled: a.deleteScheduled,
|
|
7161
7163
|
preservePointerOnDelete: a.preservePointerOnDelete,
|
|
@@ -7169,12 +7171,12 @@ var ur = (() => {
|
|
|
7169
7171
|
}
|
|
7170
7172
|
de(s(a) + " instance already deleted");
|
|
7171
7173
|
}, _n = !1, hr = (a) => {
|
|
7172
|
-
},
|
|
7174
|
+
}, Oa = (a) => {
|
|
7173
7175
|
a.smartPtr ? a.smartPtrType.rawDestructor(a.smartPtr) : a.ptrType.registeredClass.rawDestructor(a.ptr);
|
|
7174
7176
|
}, vr = (a) => {
|
|
7175
7177
|
a.count.value -= 1;
|
|
7176
7178
|
var s = a.count.value === 0;
|
|
7177
|
-
s &&
|
|
7179
|
+
s && Oa(a);
|
|
7178
7180
|
}, yr = (a, s, c) => {
|
|
7179
7181
|
if (s === c)
|
|
7180
7182
|
return a;
|
|
@@ -7237,16 +7239,16 @@ var ur = (() => {
|
|
|
7237
7239
|
var P = this.registeredClass.getActualType(s), A = gr[P];
|
|
7238
7240
|
if (!A)
|
|
7239
7241
|
return S.call(this);
|
|
7240
|
-
var
|
|
7241
|
-
this.isConst ?
|
|
7242
|
-
var z = yr(s, this.registeredClass,
|
|
7243
|
-
return z === null ? S.call(this) : this.isSmartPointer ? Ht(
|
|
7244
|
-
ptrType:
|
|
7242
|
+
var O;
|
|
7243
|
+
this.isConst ? O = A.constPointerType : O = A.pointerType;
|
|
7244
|
+
var z = yr(s, this.registeredClass, O.registeredClass);
|
|
7245
|
+
return z === null ? S.call(this) : this.isSmartPointer ? Ht(O.registeredClass.instancePrototype, {
|
|
7246
|
+
ptrType: O,
|
|
7245
7247
|
ptr: z,
|
|
7246
7248
|
smartPtrType: this,
|
|
7247
7249
|
smartPtr: a
|
|
7248
|
-
}) : Ht(
|
|
7249
|
-
ptrType:
|
|
7250
|
+
}) : Ht(O.registeredClass.instancePrototype, {
|
|
7251
|
+
ptrType: O,
|
|
7250
7252
|
ptr: z
|
|
7251
7253
|
});
|
|
7252
7254
|
}
|
|
@@ -7279,7 +7281,7 @@ var ur = (() => {
|
|
|
7279
7281
|
return this.$$.count.value += 1, this;
|
|
7280
7282
|
var a = Tt(Object.create(Object.getPrototypeOf(this), {
|
|
7281
7283
|
$$: {
|
|
7282
|
-
value:
|
|
7284
|
+
value: Ra(this.$$)
|
|
7283
7285
|
}
|
|
7284
7286
|
}));
|
|
7285
7287
|
return a.$$.count.value += 1, a.$$.deleteScheduled = !1, a;
|
|
@@ -7315,10 +7317,10 @@ var ur = (() => {
|
|
|
7315
7317
|
var s = a.charCodeAt(0);
|
|
7316
7318
|
return s >= za && s <= Ia ? `_${a}` : a;
|
|
7317
7319
|
};
|
|
7318
|
-
function Ua(a, s, c, f, S, P, A,
|
|
7319
|
-
this.name = a, this.constructor = s, this.instancePrototype = c, this.rawDestructor = f, this.baseClass = S, this.getActualType = P, this.upcast = A, this.downcast =
|
|
7320
|
+
function Ua(a, s, c, f, S, P, A, O) {
|
|
7321
|
+
this.name = a, this.constructor = s, this.instancePrototype = c, this.rawDestructor = f, this.baseClass = S, this.getActualType = P, this.upcast = A, this.downcast = O, this.pureVirtualFunctions = [];
|
|
7320
7322
|
}
|
|
7321
|
-
var
|
|
7323
|
+
var Rn = (a, s, c) => {
|
|
7322
7324
|
for (; s !== c; )
|
|
7323
7325
|
s.upcast || de(`Expected null or instance of ${c.name}, got an instance of ${s.name}`), a = s.upcast(a), s = s.baseClass;
|
|
7324
7326
|
return a;
|
|
@@ -7327,7 +7329,7 @@ var ur = (() => {
|
|
|
7327
7329
|
if (s === null)
|
|
7328
7330
|
return this.isReference && de(`null is not a valid ${this.name}`), 0;
|
|
7329
7331
|
s.$$ || de(`Cannot pass "${jn(s)}" as a ${this.name}`), s.$$.ptr || de(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
7330
|
-
var c = s.$$.ptrType.registeredClass, f =
|
|
7332
|
+
var c = s.$$.ptrType.registeredClass, f = Rn(s.$$.ptr, c, this.registeredClass);
|
|
7331
7333
|
return f;
|
|
7332
7334
|
}
|
|
7333
7335
|
function Ha(a, s) {
|
|
@@ -7336,7 +7338,7 @@ var ur = (() => {
|
|
|
7336
7338
|
return this.isReference && de(`null is not a valid ${this.name}`), this.isSmartPointer ? (c = this.rawConstructor(), a !== null && a.push(this.rawDestructor, c), c) : 0;
|
|
7337
7339
|
(!s || !s.$$) && de(`Cannot pass "${jn(s)}" as a ${this.name}`), s.$$.ptr || de(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && s.$$.ptrType.isConst && de(`Cannot convert argument of type ${s.$$.smartPtrType ? s.$$.smartPtrType.name : s.$$.ptrType.name} to parameter type ${this.name}`);
|
|
7338
7340
|
var f = s.$$.ptrType.registeredClass;
|
|
7339
|
-
if (c =
|
|
7341
|
+
if (c = Rn(s.$$.ptr, f, this.registeredClass), this.isSmartPointer)
|
|
7340
7342
|
switch (s.$$.smartPtr === void 0 && de("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
|
|
7341
7343
|
case 0:
|
|
7342
7344
|
s.$$.smartPtrType === this ? c = s.$$.smartPtr : de(`Cannot convert argument of type ${s.$$.smartPtrType ? s.$$.smartPtrType.name : s.$$.ptrType.name} to parameter type ${this.name}`);
|
|
@@ -7361,7 +7363,7 @@ var ur = (() => {
|
|
|
7361
7363
|
if (s === null)
|
|
7362
7364
|
return this.isReference && de(`null is not a valid ${this.name}`), 0;
|
|
7363
7365
|
s.$$ || de(`Cannot pass "${jn(s)}" as a ${this.name}`), s.$$.ptr || de(`Cannot pass deleted object as a pointer of type ${this.name}`), s.$$.ptrType.isConst && de(`Cannot convert argument of type ${s.$$.ptrType.name} to parameter type ${this.name}`);
|
|
7364
|
-
var c = s.$$.ptrType.registeredClass, f =
|
|
7366
|
+
var c = s.$$.ptrType.registeredClass, f = Rn(s.$$.ptr, c, this.registeredClass);
|
|
7365
7367
|
return f;
|
|
7366
7368
|
}
|
|
7367
7369
|
function wr(a) {
|
|
@@ -7384,8 +7386,8 @@ var ur = (() => {
|
|
|
7384
7386
|
fromWireType: Da
|
|
7385
7387
|
});
|
|
7386
7388
|
};
|
|
7387
|
-
function Gt(a, s, c, f, S, P, A,
|
|
7388
|
-
this.name = a, this.registeredClass = s, this.isReference = c, this.isConst = f, this.isSmartPointer = S, this.pointeeType = P, this.sharingPolicy = A, this.rawGetPointee =
|
|
7389
|
+
function Gt(a, s, c, f, S, P, A, O, z, H, Y) {
|
|
7390
|
+
this.name = a, this.registeredClass = s, this.isReference = c, this.isConst = f, this.isSmartPointer = S, this.pointeeType = P, this.sharingPolicy = A, this.rawGetPointee = O, this.rawConstructor = z, this.rawShare = H, this.rawDestructor = Y, !S && s.baseClass === void 0 ? f ? (this.toWireType = Wa, this.destructorFunction = null) : (this.toWireType = qa, this.destructorFunction = null) : this.toWireType = Ha;
|
|
7389
7391
|
}
|
|
7390
7392
|
var Sr = (a, s, c) => {
|
|
7391
7393
|
t.hasOwnProperty(a) || Wt("Replacing nonexistant public symbol"), t[a].overloadTable !== void 0 && c !== void 0 ? t[a].overloadTable[c] = s : (t[a] = s, t[a].argCount = c);
|
|
@@ -7406,7 +7408,7 @@ var ur = (() => {
|
|
|
7406
7408
|
return c.length = 0, Object.assign(c, arguments), Ya(a, s, c);
|
|
7407
7409
|
};
|
|
7408
7410
|
}, Ye = (a, s) => {
|
|
7409
|
-
a =
|
|
7411
|
+
a = Re(a);
|
|
7410
7412
|
function c() {
|
|
7411
7413
|
return a.includes("j") ? Ka(a, s) : Se(s);
|
|
7412
7414
|
}
|
|
@@ -7423,7 +7425,7 @@ var ur = (() => {
|
|
|
7423
7425
|
return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
|
|
7424
7426
|
}, c;
|
|
7425
7427
|
}, kr, xr = (a) => {
|
|
7426
|
-
var s = Mr(a), c =
|
|
7428
|
+
var s = Mr(a), c = Re(s);
|
|
7427
7429
|
return ot(s), c;
|
|
7428
7430
|
}, Yt = (a, s) => {
|
|
7429
7431
|
var c = [], f = {};
|
|
@@ -7437,8 +7439,8 @@ var ur = (() => {
|
|
|
7437
7439
|
}
|
|
7438
7440
|
}
|
|
7439
7441
|
throw s.forEach(S), new kr(`${a}: ` + c.map(xr).join([", "]));
|
|
7440
|
-
}, Za = (a, s, c, f, S, P, A,
|
|
7441
|
-
Y =
|
|
7442
|
+
}, Za = (a, s, c, f, S, P, A, O, z, H, Y, re, oe) => {
|
|
7443
|
+
Y = Re(Y), P = Ye(S, P), O && (O = Ye(A, O)), H && (H = Ye(z, H)), oe = Ye(re, oe);
|
|
7442
7444
|
var ie = La(Y);
|
|
7443
7445
|
An(ie, function() {
|
|
7444
7446
|
Yt(`Cannot construct ${Y} due to unbound types`, [f]);
|
|
@@ -7446,7 +7448,7 @@ var ur = (() => {
|
|
|
7446
7448
|
ge = ge[0];
|
|
7447
7449
|
var xe, he;
|
|
7448
7450
|
f ? (xe = ge.registeredClass, he = xe.instancePrototype) : he = qt.prototype;
|
|
7449
|
-
var
|
|
7451
|
+
var Oe = At(Y, function() {
|
|
7450
7452
|
if (Object.getPrototypeOf(this) !== L)
|
|
7451
7453
|
throw new vt("Use 'new' to construct " + Y);
|
|
7452
7454
|
if (X.constructor_body === void 0)
|
|
@@ -7457,11 +7459,11 @@ var ur = (() => {
|
|
|
7457
7459
|
return Lr.apply(this, arguments);
|
|
7458
7460
|
}), L = Object.create(he, {
|
|
7459
7461
|
constructor: {
|
|
7460
|
-
value:
|
|
7462
|
+
value: Oe
|
|
7461
7463
|
}
|
|
7462
7464
|
});
|
|
7463
|
-
|
|
7464
|
-
var X = new Ua(Y,
|
|
7465
|
+
Oe.prototype = L;
|
|
7466
|
+
var X = new Ua(Y, Oe, L, oe, xe, P, O, H);
|
|
7465
7467
|
if (X.baseClass) {
|
|
7466
7468
|
var $e, Ae;
|
|
7467
7469
|
(Ae = ($e = X.baseClass).__derivedClasses) !== null && Ae !== void 0 || ($e.__derivedClasses = []), X.baseClass.__derivedClasses.push(X);
|
|
@@ -7470,9 +7472,9 @@ var ur = (() => {
|
|
|
7470
7472
|
return gr[a] = {
|
|
7471
7473
|
pointerType: Zt,
|
|
7472
7474
|
constPointerType: Ir
|
|
7473
|
-
}, Sr(ie,
|
|
7475
|
+
}, Sr(ie, Oe), [yt, Zt, Ir];
|
|
7474
7476
|
});
|
|
7475
|
-
},
|
|
7477
|
+
}, On = (a, s) => {
|
|
7476
7478
|
for (var c = [], f = 0; f < a; f++)
|
|
7477
7479
|
c.push(_[s + f * 4 >> 2]);
|
|
7478
7480
|
return c;
|
|
@@ -7486,49 +7488,49 @@ var ur = (() => {
|
|
|
7486
7488
|
function En(a, s, c, f, S, P) {
|
|
7487
7489
|
var A = s.length;
|
|
7488
7490
|
A < 2 && de("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
7489
|
-
var
|
|
7491
|
+
var O = s[1] !== null && c !== null, z = Xa(s), H = s[0].name !== "void", Y = A - 2, re = new Array(Y), oe = [], ie = [], ge = function() {
|
|
7490
7492
|
arguments.length !== Y && de(`function ${a} called with ${arguments.length} arguments, expected ${Y}`), ie.length = 0;
|
|
7491
7493
|
var xe;
|
|
7492
|
-
oe.length =
|
|
7494
|
+
oe.length = O ? 2 : 1, oe[0] = S, O && (xe = s[1].toWireType(ie, this), oe[1] = xe);
|
|
7493
7495
|
for (var he = 0; he < Y; ++he)
|
|
7494
7496
|
re[he] = s[he + 2].toWireType(ie, arguments[he]), oe.push(re[he]);
|
|
7495
|
-
var
|
|
7497
|
+
var Oe = f.apply(null, oe);
|
|
7496
7498
|
function L(X) {
|
|
7497
7499
|
if (z)
|
|
7498
7500
|
xn(ie);
|
|
7499
7501
|
else
|
|
7500
|
-
for (var $e =
|
|
7502
|
+
for (var $e = O ? 1 : 2; $e < s.length; $e++) {
|
|
7501
7503
|
var Ae = $e === 1 ? xe : re[$e - 2];
|
|
7502
7504
|
s[$e].destructorFunction !== null && s[$e].destructorFunction(Ae);
|
|
7503
7505
|
}
|
|
7504
7506
|
if (H)
|
|
7505
7507
|
return s[0].fromWireType(X);
|
|
7506
7508
|
}
|
|
7507
|
-
return L(
|
|
7509
|
+
return L(Oe);
|
|
7508
7510
|
};
|
|
7509
7511
|
return At(a, ge);
|
|
7510
7512
|
}
|
|
7511
7513
|
var es = (a, s, c, f, S, P) => {
|
|
7512
|
-
var A =
|
|
7513
|
-
S = Ye(f, S), pt([], [a], function(
|
|
7514
|
-
|
|
7515
|
-
var z = `constructor ${
|
|
7516
|
-
if (
|
|
7517
|
-
throw new vt(`Cannot register multiple constructors with identical number of parameters (${s - 1}) for class '${
|
|
7518
|
-
return
|
|
7519
|
-
Yt(`Cannot construct ${
|
|
7520
|
-
}, pt([], A, (H) => (H.splice(1, 0, null),
|
|
7514
|
+
var A = On(s, c);
|
|
7515
|
+
S = Ye(f, S), pt([], [a], function(O) {
|
|
7516
|
+
O = O[0];
|
|
7517
|
+
var z = `constructor ${O.name}`;
|
|
7518
|
+
if (O.registeredClass.constructor_body === void 0 && (O.registeredClass.constructor_body = []), O.registeredClass.constructor_body[s - 1] !== void 0)
|
|
7519
|
+
throw new vt(`Cannot register multiple constructors with identical number of parameters (${s - 1}) for class '${O.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
7520
|
+
return O.registeredClass.constructor_body[s - 1] = () => {
|
|
7521
|
+
Yt(`Cannot construct ${O.name} due to unbound types`, A);
|
|
7522
|
+
}, pt([], A, (H) => (H.splice(1, 0, null), O.registeredClass.constructor_body[s - 1] = En(z, H, null, S, P), [])), [];
|
|
7521
7523
|
});
|
|
7522
7524
|
}, $r = (a) => {
|
|
7523
7525
|
a = a.trim();
|
|
7524
7526
|
const s = a.indexOf("(");
|
|
7525
7527
|
return s !== -1 ? a.substr(0, s) : a;
|
|
7526
|
-
}, ts = (a, s, c, f, S, P, A,
|
|
7527
|
-
var H =
|
|
7528
|
-
s =
|
|
7528
|
+
}, ts = (a, s, c, f, S, P, A, O, z) => {
|
|
7529
|
+
var H = On(c, f);
|
|
7530
|
+
s = Re(s), s = $r(s), P = Ye(S, P), pt([], [a], function(Y) {
|
|
7529
7531
|
Y = Y[0];
|
|
7530
7532
|
var re = `${Y.name}.${s}`;
|
|
7531
|
-
s.startsWith("@@") && (s = Symbol[s.substring(2)]),
|
|
7533
|
+
s.startsWith("@@") && (s = Symbol[s.substring(2)]), O && Y.registeredClass.pureVirtualFunctions.push(s);
|
|
7532
7534
|
function oe() {
|
|
7533
7535
|
Yt(`Cannot call ${re} due to unbound types`, H);
|
|
7534
7536
|
}
|
|
@@ -7595,7 +7597,7 @@ var ur = (() => {
|
|
|
7595
7597
|
}
|
|
7596
7598
|
}
|
|
7597
7599
|
}, as = (a, s) => {
|
|
7598
|
-
s =
|
|
7600
|
+
s = Re(s), Qe(a, {
|
|
7599
7601
|
name: s,
|
|
7600
7602
|
fromWireType: (c) => {
|
|
7601
7603
|
var f = rt.toValue(c);
|
|
@@ -7630,7 +7632,7 @@ var ur = (() => {
|
|
|
7630
7632
|
throw new TypeError(`invalid integer width (${s}): ${a}`);
|
|
7631
7633
|
}
|
|
7632
7634
|
}, is = (a, s, c, f) => {
|
|
7633
|
-
s =
|
|
7635
|
+
s = Re(s);
|
|
7634
7636
|
function S() {
|
|
7635
7637
|
}
|
|
7636
7638
|
S.values = {}, Qe(a, {
|
|
@@ -7649,7 +7651,7 @@ var ur = (() => {
|
|
|
7649
7651
|
return c === void 0 && de(s + " has unknown type " + xr(a)), c;
|
|
7650
7652
|
}, ls = (a, s, c) => {
|
|
7651
7653
|
var f = Mn(a, "enum");
|
|
7652
|
-
s =
|
|
7654
|
+
s = Re(s);
|
|
7653
7655
|
var S = f.constructor, P = Object.create(f.constructor.prototype, {
|
|
7654
7656
|
value: {
|
|
7655
7657
|
value: c
|
|
@@ -7679,7 +7681,7 @@ var ur = (() => {
|
|
|
7679
7681
|
throw new TypeError(`invalid float width (${s}): ${a}`);
|
|
7680
7682
|
}
|
|
7681
7683
|
}, us = (a, s, c) => {
|
|
7682
|
-
s =
|
|
7684
|
+
s = Re(s), Qe(a, {
|
|
7683
7685
|
name: s,
|
|
7684
7686
|
fromWireType: (f) => f,
|
|
7685
7687
|
toWireType: (f, S) => S,
|
|
@@ -7688,10 +7690,10 @@ var ur = (() => {
|
|
|
7688
7690
|
destructorFunction: null
|
|
7689
7691
|
});
|
|
7690
7692
|
}, ds = (a, s, c, f, S, P, A) => {
|
|
7691
|
-
var
|
|
7692
|
-
a =
|
|
7693
|
-
Yt(`Cannot call ${a} due to unbound types`,
|
|
7694
|
-
}, s - 1), pt([],
|
|
7693
|
+
var O = On(s, c);
|
|
7694
|
+
a = Re(a), a = $r(a), S = Ye(f, S), An(a, function() {
|
|
7695
|
+
Yt(`Cannot call ${a} due to unbound types`, O);
|
|
7696
|
+
}, s - 1), pt([], O, function(z) {
|
|
7695
7697
|
var H = [z[0], null].concat(z.slice(1));
|
|
7696
7698
|
return Sr(a, En(a, H, null, S, P), s - 1), [];
|
|
7697
7699
|
});
|
|
@@ -7707,15 +7709,15 @@ var ur = (() => {
|
|
|
7707
7709
|
throw new TypeError(`invalid integer width (${s}): ${a}`);
|
|
7708
7710
|
}
|
|
7709
7711
|
}, ps = (a, s, c, f, S) => {
|
|
7710
|
-
s =
|
|
7712
|
+
s = Re(s);
|
|
7711
7713
|
var P = (Y) => Y;
|
|
7712
7714
|
if (f === 0) {
|
|
7713
7715
|
var A = 32 - 8 * c;
|
|
7714
7716
|
P = (Y) => Y << A >>> A;
|
|
7715
7717
|
}
|
|
7716
|
-
var
|
|
7718
|
+
var O = s.includes("unsigned"), z = (Y, re) => {
|
|
7717
7719
|
}, H;
|
|
7718
|
-
|
|
7720
|
+
O ? H = function(Y, re) {
|
|
7719
7721
|
return z(re, this.name), re >>> 0;
|
|
7720
7722
|
} : H = function(Y, re) {
|
|
7721
7723
|
return z(re, this.name), re;
|
|
@@ -7730,10 +7732,10 @@ var ur = (() => {
|
|
|
7730
7732
|
}, ms = (a, s, c) => {
|
|
7731
7733
|
var f = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], S = f[s];
|
|
7732
7734
|
function P(A) {
|
|
7733
|
-
var
|
|
7734
|
-
return new S($.buffer, z,
|
|
7735
|
+
var O = _[A >> 2], z = _[A + 4 >> 2];
|
|
7736
|
+
return new S($.buffer, z, O);
|
|
7735
7737
|
}
|
|
7736
|
-
c =
|
|
7738
|
+
c = Re(c), Qe(a, {
|
|
7737
7739
|
name: c,
|
|
7738
7740
|
fromWireType: P,
|
|
7739
7741
|
argPackAdvance: Ze,
|
|
@@ -7745,27 +7747,27 @@ var ur = (() => {
|
|
|
7745
7747
|
if (!(f > 0))
|
|
7746
7748
|
return 0;
|
|
7747
7749
|
for (var S = c, P = c + f - 1, A = 0; A < a.length; ++A) {
|
|
7748
|
-
var
|
|
7749
|
-
if (
|
|
7750
|
+
var O = a.charCodeAt(A);
|
|
7751
|
+
if (O >= 55296 && O <= 57343) {
|
|
7750
7752
|
var z = a.charCodeAt(++A);
|
|
7751
|
-
|
|
7753
|
+
O = 65536 + ((O & 1023) << 10) | z & 1023;
|
|
7752
7754
|
}
|
|
7753
|
-
if (
|
|
7755
|
+
if (O <= 127) {
|
|
7754
7756
|
if (c >= P)
|
|
7755
7757
|
break;
|
|
7756
|
-
s[c++] =
|
|
7757
|
-
} else if (
|
|
7758
|
+
s[c++] = O;
|
|
7759
|
+
} else if (O <= 2047) {
|
|
7758
7760
|
if (c + 1 >= P)
|
|
7759
7761
|
break;
|
|
7760
|
-
s[c++] = 192 |
|
|
7761
|
-
} else if (
|
|
7762
|
+
s[c++] = 192 | O >> 6, s[c++] = 128 | O & 63;
|
|
7763
|
+
} else if (O <= 65535) {
|
|
7762
7764
|
if (c + 2 >= P)
|
|
7763
7765
|
break;
|
|
7764
|
-
s[c++] = 224 |
|
|
7766
|
+
s[c++] = 224 | O >> 12, s[c++] = 128 | O >> 6 & 63, s[c++] = 128 | O & 63;
|
|
7765
7767
|
} else {
|
|
7766
7768
|
if (c + 3 >= P)
|
|
7767
7769
|
break;
|
|
7768
|
-
s[c++] = 240 |
|
|
7770
|
+
s[c++] = 240 | O >> 18, s[c++] = 128 | O >> 12 & 63, s[c++] = 128 | O >> 6 & 63, s[c++] = 128 | O & 63;
|
|
7769
7771
|
}
|
|
7770
7772
|
}
|
|
7771
7773
|
return s[c] = 0, c - S;
|
|
@@ -7786,13 +7788,13 @@ var ur = (() => {
|
|
|
7786
7788
|
P += String.fromCharCode(A);
|
|
7787
7789
|
continue;
|
|
7788
7790
|
}
|
|
7789
|
-
var
|
|
7791
|
+
var O = a[s++] & 63;
|
|
7790
7792
|
if ((A & 224) == 192) {
|
|
7791
|
-
P += String.fromCharCode((A & 31) << 6 |
|
|
7793
|
+
P += String.fromCharCode((A & 31) << 6 | O);
|
|
7792
7794
|
continue;
|
|
7793
7795
|
}
|
|
7794
7796
|
var z = a[s++] & 63;
|
|
7795
|
-
if ((A & 240) == 224 ? A = (A & 15) << 12 |
|
|
7797
|
+
if ((A & 240) == 224 ? A = (A & 15) << 12 | O << 6 | z : A = (A & 7) << 18 | O << 12 | z << 6 | a[s++] & 63, A < 65536)
|
|
7796
7798
|
P += String.fromCharCode(A);
|
|
7797
7799
|
else {
|
|
7798
7800
|
var H = A - 65536;
|
|
@@ -7801,18 +7803,18 @@ var ur = (() => {
|
|
|
7801
7803
|
}
|
|
7802
7804
|
return P;
|
|
7803
7805
|
}, Fn = (a, s) => a ? vs(V, a, s) : "", ys = (a, s) => {
|
|
7804
|
-
s =
|
|
7806
|
+
s = Re(s);
|
|
7805
7807
|
var c = s === "std::string";
|
|
7806
7808
|
Qe(a, {
|
|
7807
7809
|
name: s,
|
|
7808
7810
|
fromWireType(f) {
|
|
7809
7811
|
var S = _[f >> 2], P = f + 4, A;
|
|
7810
7812
|
if (c)
|
|
7811
|
-
for (var
|
|
7813
|
+
for (var O = P, z = 0; z <= S; ++z) {
|
|
7812
7814
|
var H = P + z;
|
|
7813
7815
|
if (z == S || V[H] == 0) {
|
|
7814
|
-
var Y = H -
|
|
7815
|
-
A === void 0 ? A = re : (A += "\0", A += re),
|
|
7816
|
+
var Y = H - O, re = Fn(O, Y);
|
|
7817
|
+
A === void 0 ? A = re : (A += "\0", A += re), O = H + 1;
|
|
7816
7818
|
}
|
|
7817
7819
|
}
|
|
7818
7820
|
else {
|
|
@@ -7826,8 +7828,8 @@ var ur = (() => {
|
|
|
7826
7828
|
S instanceof ArrayBuffer && (S = new Uint8Array(S));
|
|
7827
7829
|
var P, A = typeof S == "string";
|
|
7828
7830
|
A || S instanceof Uint8Array || S instanceof Uint8ClampedArray || S instanceof Int8Array || de("Cannot pass non-string to std::string"), c && A ? P = Tr(S) : P = S.length;
|
|
7829
|
-
var
|
|
7830
|
-
if (_[
|
|
7831
|
+
var O = Bn(4 + P + 1), z = O + 4;
|
|
7832
|
+
if (_[O >> 2] = P, c && A)
|
|
7831
7833
|
hs(S, z, P + 1);
|
|
7832
7834
|
else if (A)
|
|
7833
7835
|
for (var H = 0; H < P; ++H) {
|
|
@@ -7837,7 +7839,7 @@ var ur = (() => {
|
|
|
7837
7839
|
else
|
|
7838
7840
|
for (var H = 0; H < P; ++H)
|
|
7839
7841
|
V[z + H] = S[H];
|
|
7840
|
-
return f !== null && f.push(ot,
|
|
7842
|
+
return f !== null && f.push(ot, O), O;
|
|
7841
7843
|
},
|
|
7842
7844
|
argPackAdvance: Ze,
|
|
7843
7845
|
readValueFromPointer: wr,
|
|
@@ -7845,16 +7847,16 @@ var ur = (() => {
|
|
|
7845
7847
|
ot(f);
|
|
7846
7848
|
}
|
|
7847
7849
|
});
|
|
7848
|
-
},
|
|
7850
|
+
}, Rr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, gs = (a, s) => {
|
|
7849
7851
|
for (var c = a, f = c >> 1, S = f + s / 2; !(f >= S) && x[f]; )
|
|
7850
7852
|
++f;
|
|
7851
|
-
if (c = f << 1, c - a > 32 &&
|
|
7852
|
-
return
|
|
7853
|
+
if (c = f << 1, c - a > 32 && Rr)
|
|
7854
|
+
return Rr.decode(V.subarray(a, c));
|
|
7853
7855
|
for (var P = "", A = 0; !(A >= s / 2); ++A) {
|
|
7854
|
-
var
|
|
7855
|
-
if (
|
|
7856
|
+
var O = E[a + A * 2 >> 1];
|
|
7857
|
+
if (O == 0)
|
|
7856
7858
|
break;
|
|
7857
|
-
P += String.fromCharCode(
|
|
7859
|
+
P += String.fromCharCode(O);
|
|
7858
7860
|
}
|
|
7859
7861
|
return P;
|
|
7860
7862
|
}, bs = (a, s, c) => {
|
|
@@ -7863,8 +7865,8 @@ var ur = (() => {
|
|
|
7863
7865
|
return 0;
|
|
7864
7866
|
c -= 2;
|
|
7865
7867
|
for (var S = s, P = c < a.length * 2 ? c / 2 : a.length, A = 0; A < P; ++A) {
|
|
7866
|
-
var
|
|
7867
|
-
E[s >> 1] =
|
|
7868
|
+
var O = a.charCodeAt(A);
|
|
7869
|
+
E[s >> 1] = O, s += 2;
|
|
7868
7870
|
}
|
|
7869
7871
|
return E[s >> 1] = 0, s - S;
|
|
7870
7872
|
}, ws = (a) => a.length * 2, Ss = (a, s) => {
|
|
@@ -7884,12 +7886,12 @@ var ur = (() => {
|
|
|
7884
7886
|
if ((f = c) !== null && f !== void 0 || (c = 2147483647), c < 4)
|
|
7885
7887
|
return 0;
|
|
7886
7888
|
for (var S = s, P = S + c - 4, A = 0; A < a.length; ++A) {
|
|
7887
|
-
var
|
|
7888
|
-
if (
|
|
7889
|
+
var O = a.charCodeAt(A);
|
|
7890
|
+
if (O >= 55296 && O <= 57343) {
|
|
7889
7891
|
var z = a.charCodeAt(++A);
|
|
7890
|
-
|
|
7892
|
+
O = 65536 + ((O & 1023) << 10) | z & 1023;
|
|
7891
7893
|
}
|
|
7892
|
-
if (D[s >> 2] =
|
|
7894
|
+
if (D[s >> 2] = O, s += 4, s + 4 > P)
|
|
7893
7895
|
break;
|
|
7894
7896
|
}
|
|
7895
7897
|
return D[s >> 2] = 0, s - S;
|
|
@@ -7900,14 +7902,14 @@ var ur = (() => {
|
|
|
7900
7902
|
}
|
|
7901
7903
|
return s;
|
|
7902
7904
|
}, xs = (a, s, c) => {
|
|
7903
|
-
c =
|
|
7904
|
-
var f, S, P, A,
|
|
7905
|
-
s === 2 ? (f = gs, S = bs, A = ws, P = () => x,
|
|
7905
|
+
c = Re(c);
|
|
7906
|
+
var f, S, P, A, O;
|
|
7907
|
+
s === 2 ? (f = gs, S = bs, A = ws, P = () => x, O = 1) : s === 4 && (f = Ss, S = Cs, A = ks, P = () => _, O = 2), Qe(a, {
|
|
7906
7908
|
name: c,
|
|
7907
7909
|
fromWireType: (z) => {
|
|
7908
7910
|
for (var H = _[z >> 2], Y = P(), re, oe = z + 4, ie = 0; ie <= H; ++ie) {
|
|
7909
7911
|
var ge = z + 4 + ie * s;
|
|
7910
|
-
if (ie == H || Y[ge >>
|
|
7912
|
+
if (ie == H || Y[ge >> O] == 0) {
|
|
7911
7913
|
var xe = ge - oe, he = f(oe, xe);
|
|
7912
7914
|
re === void 0 ? re = he : (re += "\0", re += he), oe = ge + s;
|
|
7913
7915
|
}
|
|
@@ -7917,7 +7919,7 @@ var ur = (() => {
|
|
|
7917
7919
|
toWireType: (z, H) => {
|
|
7918
7920
|
typeof H != "string" && de(`Cannot pass non-string to C++ string type ${c}`);
|
|
7919
7921
|
var Y = A(H), re = Bn(4 + Y + s);
|
|
7920
|
-
return _[re >> 2] = Y >>
|
|
7922
|
+
return _[re >> 2] = Y >> O, S(H, re + 4, Y + s), z !== null && z.push(ot, re), re;
|
|
7921
7923
|
},
|
|
7922
7924
|
argPackAdvance: Ze,
|
|
7923
7925
|
readValueFromPointer: $n,
|
|
@@ -7927,23 +7929,23 @@ var ur = (() => {
|
|
|
7927
7929
|
});
|
|
7928
7930
|
}, $s = (a, s, c, f, S, P) => {
|
|
7929
7931
|
Lt[a] = {
|
|
7930
|
-
name:
|
|
7932
|
+
name: Re(s),
|
|
7931
7933
|
rawConstructor: Ye(c, f),
|
|
7932
7934
|
rawDestructor: Ye(S, P),
|
|
7933
7935
|
fields: []
|
|
7934
7936
|
};
|
|
7935
|
-
}, Ps = (a, s, c, f, S, P, A,
|
|
7937
|
+
}, Ps = (a, s, c, f, S, P, A, O, z, H) => {
|
|
7936
7938
|
Lt[a].fields.push({
|
|
7937
|
-
fieldName:
|
|
7939
|
+
fieldName: Re(s),
|
|
7938
7940
|
getterReturnType: c,
|
|
7939
7941
|
getter: Ye(f, S),
|
|
7940
7942
|
getterContext: P,
|
|
7941
7943
|
setterArgumentType: A,
|
|
7942
|
-
setter: Ye(
|
|
7944
|
+
setter: Ye(O, z),
|
|
7943
7945
|
setterContext: H
|
|
7944
7946
|
});
|
|
7945
7947
|
}, _s = (a, s) => {
|
|
7946
|
-
s =
|
|
7948
|
+
s = Re(s), Qe(a, {
|
|
7947
7949
|
isVoid: !0,
|
|
7948
7950
|
name: s,
|
|
7949
7951
|
argPackAdvance: 0,
|
|
@@ -7952,10 +7954,10 @@ var ur = (() => {
|
|
|
7952
7954
|
toWireType: (c, f) => {
|
|
7953
7955
|
}
|
|
7954
7956
|
});
|
|
7955
|
-
}, Nn = [], Ts = (a, s, c, f) => (a = Nn[a], s = rt.toValue(s), a(null, s, c, f)), As = {},
|
|
7957
|
+
}, Nn = [], Ts = (a, s, c, f) => (a = Nn[a], s = rt.toValue(s), a(null, s, c, f)), As = {}, Rs = (a) => {
|
|
7956
7958
|
var s = As[a];
|
|
7957
|
-
return s === void 0 ?
|
|
7958
|
-
},
|
|
7959
|
+
return s === void 0 ? Re(a) : s;
|
|
7960
|
+
}, Or = () => {
|
|
7959
7961
|
if (typeof globalThis == "object")
|
|
7960
7962
|
return globalThis;
|
|
7961
7963
|
function a(s) {
|
|
@@ -7966,7 +7968,7 @@ var ur = (() => {
|
|
|
7966
7968
|
if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && a(global) ? $$$embind_global$$$ = global : typeof self == "object" && a(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object"))
|
|
7967
7969
|
return $$$embind_global$$$;
|
|
7968
7970
|
throw Error("unable to get global object.");
|
|
7969
|
-
},
|
|
7971
|
+
}, Os = (a) => a === 0 ? rt.toHandle(Or()) : (a = Rs(a), rt.toHandle(Or()[a])), Es = (a) => {
|
|
7970
7972
|
var s = Nn.length;
|
|
7971
7973
|
return Nn.push(a), s;
|
|
7972
7974
|
}, Vs = (a, s) => {
|
|
@@ -7987,8 +7989,8 @@ var ur = (() => {
|
|
|
7987
7989
|
(xe = (he = f[ie]).deleteObject) === null || xe === void 0 || xe.call(he, P[ie]);
|
|
7988
7990
|
}
|
|
7989
7991
|
return js(S, Y, ge);
|
|
7990
|
-
},
|
|
7991
|
-
return Es(At(
|
|
7992
|
+
}, O = `methodCaller<(${f.map((z) => z.name).join(", ")}) => ${S.name}>`;
|
|
7993
|
+
return Es(At(O, A));
|
|
7992
7994
|
}, Ns = (a) => {
|
|
7993
7995
|
a > 4 && (Le.get(a).refcount += 1);
|
|
7994
7996
|
}, Ds = (a) => {
|
|
@@ -8015,13 +8017,13 @@ var ur = (() => {
|
|
|
8015
8017
|
for (var f = (z, H) => z + (H - z % H) % H, S = 1; S <= 4; S *= 2) {
|
|
8016
8018
|
var P = s * (1 + 0.2 / S);
|
|
8017
8019
|
P = Math.min(P, a + 100663296);
|
|
8018
|
-
var A = Math.min(c, f(Math.max(a, P), 65536)),
|
|
8019
|
-
if (
|
|
8020
|
+
var A = Math.min(c, f(Math.max(a, P), 65536)), O = Us(A);
|
|
8021
|
+
if (O)
|
|
8020
8022
|
return !0;
|
|
8021
8023
|
}
|
|
8022
8024
|
return !1;
|
|
8023
|
-
}, Dn = {}, Hs = () => l || "./this.program",
|
|
8024
|
-
if (!
|
|
8025
|
+
}, Dn = {}, Hs = () => l || "./this.program", Rt = () => {
|
|
8026
|
+
if (!Rt.strings) {
|
|
8025
8027
|
var a = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", s = {
|
|
8026
8028
|
USER: "web_user",
|
|
8027
8029
|
LOGNAME: "web_user",
|
|
@@ -8036,21 +8038,21 @@ var ur = (() => {
|
|
|
8036
8038
|
var f = [];
|
|
8037
8039
|
for (var c in s)
|
|
8038
8040
|
f.push(`${c}=${s[c]}`);
|
|
8039
|
-
|
|
8041
|
+
Rt.strings = f;
|
|
8040
8042
|
}
|
|
8041
|
-
return
|
|
8043
|
+
return Rt.strings;
|
|
8042
8044
|
}, qs = (a, s) => {
|
|
8043
8045
|
for (var c = 0; c < a.length; ++c)
|
|
8044
8046
|
$[s++ >> 0] = a.charCodeAt(c);
|
|
8045
8047
|
$[s >> 0] = 0;
|
|
8046
8048
|
}, Gs = (a, s) => {
|
|
8047
8049
|
var c = 0;
|
|
8048
|
-
return
|
|
8050
|
+
return Rt().forEach((f, S) => {
|
|
8049
8051
|
var P = s + c;
|
|
8050
8052
|
_[a + S * 4 >> 2] = P, qs(f, P), c += f.length + 1;
|
|
8051
8053
|
}), 0;
|
|
8052
8054
|
}, Js = (a, s) => {
|
|
8053
|
-
var c =
|
|
8055
|
+
var c = Rt();
|
|
8054
8056
|
_[a >> 2] = c.length;
|
|
8055
8057
|
var f = 0;
|
|
8056
8058
|
return c.forEach((S) => f += S.length + 1), _[s >> 2] = f, 0;
|
|
@@ -8087,7 +8089,7 @@ var ur = (() => {
|
|
|
8087
8089
|
tm_isdst: D[f + 32 >> 2],
|
|
8088
8090
|
tm_gmtoff: D[f + 36 >> 2],
|
|
8089
8091
|
tm_zone: S ? Fn(S) : ""
|
|
8090
|
-
}, A = Fn(c),
|
|
8092
|
+
}, A = Fn(c), O = {
|
|
8091
8093
|
"%c": "%a %b %d %H:%M:%S %Y",
|
|
8092
8094
|
"%D": "%m/%d/%y",
|
|
8093
8095
|
"%F": "%Y-%m-%d",
|
|
@@ -8117,8 +8119,8 @@ var ur = (() => {
|
|
|
8117
8119
|
"%OW": "%W",
|
|
8118
8120
|
"%Oy": "%y"
|
|
8119
8121
|
};
|
|
8120
|
-
for (var z in
|
|
8121
|
-
A = A.replace(new RegExp(z, "g"),
|
|
8122
|
+
for (var z in O)
|
|
8123
|
+
A = A.replace(new RegExp(z, "g"), O[z]);
|
|
8122
8124
|
var H = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], Y = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
8123
8125
|
function re(L, X, $e) {
|
|
8124
8126
|
for (var Ae = typeof L == "number" ? L.toString() : L || ""; Ae.length < X; )
|
|
@@ -8220,8 +8222,8 @@ var ur = (() => {
|
|
|
8220
8222
|
for (var z in he)
|
|
8221
8223
|
A.includes(z) && (A = A.replace(new RegExp(z, "g"), he[z](P)));
|
|
8222
8224
|
A = A.replace(/\0\0/g, "%");
|
|
8223
|
-
var
|
|
8224
|
-
return
|
|
8225
|
+
var Oe = Zs(A);
|
|
8226
|
+
return Oe.length > s ? 0 : (Xs(Oe, a), Oe.length - 1);
|
|
8225
8227
|
}, ti = (a, s, c, f, S) => ei(a, s, c, f);
|
|
8226
8228
|
pr = t.InternalError = class extends Error {
|
|
8227
8229
|
constructor(a) {
|
|
@@ -8262,7 +8264,7 @@ var ur = (() => {
|
|
|
8262
8264
|
$: _s,
|
|
8263
8265
|
R: Ts,
|
|
8264
8266
|
ha: Vn,
|
|
8265
|
-
fa:
|
|
8267
|
+
fa: Os,
|
|
8266
8268
|
Z: Fs,
|
|
8267
8269
|
N: Ns,
|
|
8268
8270
|
O: Ds,
|
|
@@ -8295,10 +8297,10 @@ var ur = (() => {
|
|
|
8295
8297
|
y: Ci,
|
|
8296
8298
|
ga: Ys,
|
|
8297
8299
|
S: ti
|
|
8298
|
-
}, Pe = ha(), ot = t._free = (a) => (ot = t._free = Pe.ka)(a), Bn = t._malloc = (a) => (Bn = t._malloc = Pe.la)(a), Mr = (a) => (Mr = Pe.na)(a), ye = (a, s) => (ye = Pe.oa)(a, s),
|
|
8300
|
+
}, Pe = ha(), ot = t._free = (a) => (ot = t._free = Pe.ka)(a), Bn = t._malloc = (a) => (Bn = t._malloc = Pe.la)(a), Mr = (a) => (Mr = Pe.na)(a), ye = (a, s) => (ye = Pe.oa)(a, s), Ot = (a) => (Ot = Pe.pa)(a), Ce = () => (Ce = Pe.qa)(), ke = (a) => (ke = Pe.ra)(a), jr = (a) => (jr = Pe.sa)(a), Fr = (a) => (Fr = Pe.ta)(a), Nr = (a, s, c) => (Nr = Pe.ua)(a, s, c), Dr = (a) => (Dr = Pe.va)(a);
|
|
8299
8301
|
t.dynCall_viijii = (a, s, c, f, S, P, A) => (t.dynCall_viijii = Pe.wa)(a, s, c, f, S, P, A);
|
|
8300
8302
|
var Br = t.dynCall_jiiii = (a, s, c, f, S) => (Br = t.dynCall_jiiii = Pe.xa)(a, s, c, f, S);
|
|
8301
|
-
t.dynCall_iiiiij = (a, s, c, f, S, P, A) => (t.dynCall_iiiiij = Pe.ya)(a, s, c, f, S, P, A), t.dynCall_iiiiijj = (a, s, c, f, S, P, A,
|
|
8303
|
+
t.dynCall_iiiiij = (a, s, c, f, S, P, A) => (t.dynCall_iiiiij = Pe.ya)(a, s, c, f, S, P, A), t.dynCall_iiiiijj = (a, s, c, f, S, P, A, O, z) => (t.dynCall_iiiiijj = Pe.za)(a, s, c, f, S, P, A, O, z), t.dynCall_iiiiiijj = (a, s, c, f, S, P, A, O, z, H) => (t.dynCall_iiiiiijj = Pe.Aa)(a, s, c, f, S, P, A, O, z, H);
|
|
8302
8304
|
function ri(a, s) {
|
|
8303
8305
|
var c = Ce();
|
|
8304
8306
|
try {
|
|
@@ -8389,10 +8391,10 @@ var ur = (() => {
|
|
|
8389
8391
|
ye(1, 0);
|
|
8390
8392
|
}
|
|
8391
8393
|
}
|
|
8392
|
-
function fi(a, s, c, f, S, P, A,
|
|
8394
|
+
function fi(a, s, c, f, S, P, A, O, z, H, Y) {
|
|
8393
8395
|
var re = Ce();
|
|
8394
8396
|
try {
|
|
8395
|
-
Se(a)(s, c, f, S, P, A,
|
|
8397
|
+
Se(a)(s, c, f, S, P, A, O, z, H, Y);
|
|
8396
8398
|
} catch (oe) {
|
|
8397
8399
|
if (ke(re), oe !== oe + 0)
|
|
8398
8400
|
throw oe;
|
|
@@ -8400,11 +8402,11 @@ var ur = (() => {
|
|
|
8400
8402
|
}
|
|
8401
8403
|
}
|
|
8402
8404
|
function pi(a, s, c, f, S, P, A) {
|
|
8403
|
-
var
|
|
8405
|
+
var O = Ce();
|
|
8404
8406
|
try {
|
|
8405
8407
|
return Se(a)(s, c, f, S, P, A);
|
|
8406
8408
|
} catch (z) {
|
|
8407
|
-
if (ke(
|
|
8409
|
+
if (ke(O), z !== z + 0)
|
|
8408
8410
|
throw z;
|
|
8409
8411
|
ye(1, 0);
|
|
8410
8412
|
}
|
|
@@ -8423,16 +8425,16 @@ var ur = (() => {
|
|
|
8423
8425
|
var A = Ce();
|
|
8424
8426
|
try {
|
|
8425
8427
|
return Se(a)(s, c, f, S, P);
|
|
8426
|
-
} catch (
|
|
8427
|
-
if (ke(A),
|
|
8428
|
-
throw
|
|
8428
|
+
} catch (O) {
|
|
8429
|
+
if (ke(A), O !== O + 0)
|
|
8430
|
+
throw O;
|
|
8429
8431
|
ye(1, 0);
|
|
8430
8432
|
}
|
|
8431
8433
|
}
|
|
8432
|
-
function vi(a, s, c, f, S, P, A,
|
|
8434
|
+
function vi(a, s, c, f, S, P, A, O) {
|
|
8433
8435
|
var z = Ce();
|
|
8434
8436
|
try {
|
|
8435
|
-
return Se(a)(s, c, f, S, P, A,
|
|
8437
|
+
return Se(a)(s, c, f, S, P, A, O);
|
|
8436
8438
|
} catch (H) {
|
|
8437
8439
|
if (ke(z), H !== H + 0)
|
|
8438
8440
|
throw H;
|
|
@@ -8469,33 +8471,33 @@ var ur = (() => {
|
|
|
8469
8471
|
ye(1, 0);
|
|
8470
8472
|
}
|
|
8471
8473
|
}
|
|
8472
|
-
function wi(a, s, c, f, S, P, A,
|
|
8474
|
+
function wi(a, s, c, f, S, P, A, O) {
|
|
8473
8475
|
var z = Ce();
|
|
8474
8476
|
try {
|
|
8475
|
-
Se(a)(s, c, f, S, P, A,
|
|
8477
|
+
Se(a)(s, c, f, S, P, A, O);
|
|
8476
8478
|
} catch (H) {
|
|
8477
8479
|
if (ke(z), H !== H + 0)
|
|
8478
8480
|
throw H;
|
|
8479
8481
|
ye(1, 0);
|
|
8480
8482
|
}
|
|
8481
8483
|
}
|
|
8482
|
-
function Si(a, s, c, f, S, P, A,
|
|
8484
|
+
function Si(a, s, c, f, S, P, A, O, z, H, Y, re) {
|
|
8483
8485
|
var oe = Ce();
|
|
8484
8486
|
try {
|
|
8485
|
-
return Se(a)(s, c, f, S, P, A,
|
|
8487
|
+
return Se(a)(s, c, f, S, P, A, O, z, H, Y, re);
|
|
8486
8488
|
} catch (ie) {
|
|
8487
8489
|
if (ke(oe), ie !== ie + 0)
|
|
8488
8490
|
throw ie;
|
|
8489
8491
|
ye(1, 0);
|
|
8490
8492
|
}
|
|
8491
8493
|
}
|
|
8492
|
-
function Ci(a, s, c, f, S, P, A,
|
|
8494
|
+
function Ci(a, s, c, f, S, P, A, O, z, H, Y, re, oe, ie, ge, xe) {
|
|
8493
8495
|
var he = Ce();
|
|
8494
8496
|
try {
|
|
8495
|
-
Se(a)(s, c, f, S, P, A,
|
|
8496
|
-
} catch (
|
|
8497
|
-
if (ke(he),
|
|
8498
|
-
throw
|
|
8497
|
+
Se(a)(s, c, f, S, P, A, O, z, H, Y, re, oe, ie, ge, xe);
|
|
8498
|
+
} catch (Oe) {
|
|
8499
|
+
if (ke(he), Oe !== Oe + 0)
|
|
8500
|
+
throw Oe;
|
|
8499
8501
|
ye(1, 0);
|
|
8500
8502
|
}
|
|
8501
8503
|
}
|
|
@@ -8544,7 +8546,7 @@ async function Af(e, n) {
|
|
|
8544
8546
|
n
|
|
8545
8547
|
);
|
|
8546
8548
|
}
|
|
8547
|
-
async function
|
|
8549
|
+
async function Rf(e, n) {
|
|
8548
8550
|
return _f(
|
|
8549
8551
|
ur,
|
|
8550
8552
|
e,
|
|
@@ -8596,7 +8598,7 @@ class dr extends EventTarget {
|
|
|
8596
8598
|
Yo(t) ? r = await Af(t, {
|
|
8597
8599
|
tryHarder: !0,
|
|
8598
8600
|
formats: Zr(this, Et).map((o) => on.get(o))
|
|
8599
|
-
}) : r = await
|
|
8601
|
+
}) : r = await Rf(t, {
|
|
8600
8602
|
tryHarder: !0,
|
|
8601
8603
|
formats: Zr(this, Et).map((o) => on.get(o))
|
|
8602
8604
|
});
|
|
@@ -8611,8 +8613,8 @@ class dr extends EventTarget {
|
|
|
8611
8613
|
topLeft: { x: i, y: l },
|
|
8612
8614
|
topRight: { x: u, y: d },
|
|
8613
8615
|
bottomLeft: { x: y, y: b },
|
|
8614
|
-
bottomRight: { x: p, y:
|
|
8615
|
-
} = o.position, g = Math.min(i, u, y, p), k = Math.min(l, d, b,
|
|
8616
|
+
bottomRight: { x: p, y: m }
|
|
8617
|
+
} = o.position, g = Math.min(i, u, y, p), k = Math.min(l, d, b, m), C = Math.max(i, u, y, p), $ = Math.max(l, d, b, m);
|
|
8616
8618
|
return {
|
|
8617
8619
|
boundingBox: new DOMRectReadOnly(
|
|
8618
8620
|
g,
|
|
@@ -8633,7 +8635,7 @@ class dr extends EventTarget {
|
|
|
8633
8635
|
},
|
|
8634
8636
|
{
|
|
8635
8637
|
x: p,
|
|
8636
|
-
y:
|
|
8638
|
+
y: m
|
|
8637
8639
|
},
|
|
8638
8640
|
{
|
|
8639
8641
|
x: y,
|
|
@@ -8662,7 +8664,7 @@ const fr = (e, n, t = "error") => {
|
|
|
8662
8664
|
e.removeEventListener(n, r), e.removeEventListener(t, o);
|
|
8663
8665
|
}), i;
|
|
8664
8666
|
}, ro = (e) => new Promise((n) => setTimeout(n, e));
|
|
8665
|
-
class
|
|
8667
|
+
class Of extends Error {
|
|
8666
8668
|
constructor() {
|
|
8667
8669
|
super("can't process cross-origin image"), this.name = "DropImageFetchError";
|
|
8668
8670
|
}
|
|
@@ -8705,8 +8707,8 @@ const Mf = async (e, {
|
|
|
8705
8707
|
if (u - d < r)
|
|
8706
8708
|
window.requestAnimationFrame(i(l));
|
|
8707
8709
|
else {
|
|
8708
|
-
const p = await ea.detect(e),
|
|
8709
|
-
|
|
8710
|
+
const p = await ea.detect(e), m = p.some((C) => !y.includes(C.rawValue));
|
|
8711
|
+
m && n(p);
|
|
8710
8712
|
const g = p.length > 0;
|
|
8711
8713
|
g && t(p), !g && b && t(p);
|
|
8712
8714
|
const k = {
|
|
@@ -8717,7 +8719,7 @@ const Mf = async (e, {
|
|
|
8717
8719
|
// next frame we detect the code again. We also want to avoid emitting
|
|
8718
8720
|
// a `detect` event in such a case. So we don't reset `contentBefore`,
|
|
8719
8721
|
// if we detect nothing, only if we detect something new.
|
|
8720
|
-
contentBefore:
|
|
8722
|
+
contentBefore: m ? p.map((C) => C.rawValue) : y
|
|
8721
8723
|
};
|
|
8722
8724
|
window.requestAnimationFrame(i(k));
|
|
8723
8725
|
}
|
|
@@ -8730,7 +8732,7 @@ const Mf = async (e, {
|
|
|
8730
8732
|
})(performance.now());
|
|
8731
8733
|
}, jf = async (e) => {
|
|
8732
8734
|
if (e.startsWith("http") && e.includes(location.host) === !1)
|
|
8733
|
-
throw new
|
|
8735
|
+
throw new Of();
|
|
8734
8736
|
const n = document.createElement("img");
|
|
8735
8737
|
return n.src = e, await fr(n, "load"), n;
|
|
8736
8738
|
}, na = async (e, n = ["qr_code"]) => await new dr({ formats: n }).detect(e), Ff = async (e, n = ["qr_code"]) => {
|
|
@@ -8928,16 +8930,16 @@ function Qf(e, n) {
|
|
|
8928
8930
|
ideal: d[b]
|
|
8929
8931
|
};
|
|
8930
8932
|
p.exact !== void 0 && typeof p.exact == "number" && (p.min = p.max = p.exact);
|
|
8931
|
-
var
|
|
8933
|
+
var m = function(k, C) {
|
|
8932
8934
|
return k ? k + C.charAt(0).toUpperCase() + C.slice(1) : C === "deviceId" ? "sourceId" : C;
|
|
8933
8935
|
};
|
|
8934
8936
|
if (p.ideal !== void 0) {
|
|
8935
8937
|
y.optional = y.optional || [];
|
|
8936
8938
|
var g = {};
|
|
8937
|
-
typeof p.ideal == "number" ? (g[
|
|
8939
|
+
typeof p.ideal == "number" ? (g[m("min", b)] = p.ideal, y.optional.push(g), g = {}, g[m("max", b)] = p.ideal, y.optional.push(g)) : (g[m("", b)] = p.ideal, y.optional.push(g));
|
|
8938
8940
|
}
|
|
8939
|
-
p.exact !== void 0 && typeof p.exact != "number" ? (y.mandatory = y.mandatory || {}, y.mandatory[
|
|
8940
|
-
p[k] !== void 0 && (y.mandatory = y.mandatory || {}, y.mandatory[
|
|
8941
|
+
p.exact !== void 0 && typeof p.exact != "number" ? (y.mandatory = y.mandatory || {}, y.mandatory[m("", b)] = p.exact) : ["min", "max"].forEach(function(k) {
|
|
8942
|
+
p[k] !== void 0 && (y.mandatory = y.mandatory || {}, y.mandatory[m(k, b)] = p[k]);
|
|
8941
8943
|
});
|
|
8942
8944
|
}
|
|
8943
8945
|
}), d.advanced && (y.optional = (y.optional || []).concat(d.advanced)), y;
|
|
@@ -8955,8 +8957,8 @@ function Qf(e, n) {
|
|
|
8955
8957
|
p = p && (lt(p) === "object" ? p : {
|
|
8956
8958
|
ideal: p
|
|
8957
8959
|
});
|
|
8958
|
-
var
|
|
8959
|
-
if (p && (p.exact === "user" || p.exact === "environment" || p.ideal === "user" || p.ideal === "environment") && !(t.mediaDevices.getSupportedConstraints && t.mediaDevices.getSupportedConstraints().facingMode && !
|
|
8960
|
+
var m = n.version < 66;
|
|
8961
|
+
if (p && (p.exact === "user" || p.exact === "environment" || p.ideal === "user" || p.ideal === "environment") && !(t.mediaDevices.getSupportedConstraints && t.mediaDevices.getSupportedConstraints().facingMode && !m)) {
|
|
8960
8962
|
delete d.video.facingMode;
|
|
8961
8963
|
var g;
|
|
8962
8964
|
if (p.exact === "environment" || p.ideal === "environment" ? g = ["back", "rear"] : (p.exact === "user" || p.ideal === "user") && (g = ["front"]), g)
|
|
@@ -9002,8 +9004,8 @@ function Qf(e, n) {
|
|
|
9002
9004
|
};
|
|
9003
9005
|
}, l = function(d, y, b) {
|
|
9004
9006
|
o(d, function(p) {
|
|
9005
|
-
t.webkitGetUserMedia(p, y, function(
|
|
9006
|
-
b && b(i(
|
|
9007
|
+
t.webkitGetUserMedia(p, y, function(m) {
|
|
9008
|
+
b && b(i(m));
|
|
9007
9009
|
});
|
|
9008
9010
|
});
|
|
9009
9011
|
};
|
|
@@ -9479,8 +9481,8 @@ const hp = /* @__PURE__ */ te({
|
|
|
9479
9481
|
), be(i, (x) => {
|
|
9480
9482
|
b.value && ta(x);
|
|
9481
9483
|
});
|
|
9482
|
-
const
|
|
9483
|
-
be(
|
|
9484
|
+
const m = M(() => p.value.shouldStream && y.value);
|
|
9485
|
+
be(m, (x) => {
|
|
9484
9486
|
if (x) {
|
|
9485
9487
|
Xe(
|
|
9486
9488
|
l.value !== void 0,
|
|
@@ -9517,7 +9519,7 @@ const hp = /* @__PURE__ */ te({
|
|
|
9517
9519
|
), x.length === 0 || t.track === void 0)
|
|
9518
9520
|
g(D);
|
|
9519
9521
|
else {
|
|
9520
|
-
const T = _.offsetWidth, w = _.offsetHeight, v = _.videoWidth,
|
|
9522
|
+
const T = _.offsetWidth, w = _.offsetHeight, v = _.videoWidth, R = _.videoHeight, F = Math.max(T / v, w / R), G = v * F, U = R * F, W = G / v, J = U / R, q = (T - G) / 2, pe = (w - U) / 2, Te = ({ x: Ne, y: je }) => ({
|
|
9521
9523
|
x: Math.floor(Ne * W),
|
|
9522
9524
|
y: Math.floor(je * J)
|
|
9523
9525
|
}), ce = ({ x: Ne, y: je }) => ({
|
|
@@ -9561,7 +9563,7 @@ const hp = /* @__PURE__ */ te({
|
|
|
9561
9563
|
width: "100%",
|
|
9562
9564
|
height: "100%",
|
|
9563
9565
|
"object-fit": "cover"
|
|
9564
|
-
}, E = M(() =>
|
|
9566
|
+
}, E = M(() => m.value ? V : {
|
|
9565
9567
|
...V,
|
|
9566
9568
|
visibility: "hidden",
|
|
9567
9569
|
position: "absolute"
|
|
@@ -9581,7 +9583,7 @@ const hp = /* @__PURE__ */ te({
|
|
|
9581
9583
|
ref: l,
|
|
9582
9584
|
style: V
|
|
9583
9585
|
}, null, 512), [
|
|
9584
|
-
[er, !
|
|
9586
|
+
[er, !m.value]
|
|
9585
9587
|
]),
|
|
9586
9588
|
N("canvas", {
|
|
9587
9589
|
id: "qrcode-stream-tracking-layer",
|
|
@@ -9679,8 +9681,8 @@ const hp = /* @__PURE__ */ te({
|
|
|
9679
9681
|
function b() {
|
|
9680
9682
|
r("camera-off");
|
|
9681
9683
|
}
|
|
9682
|
-
return (p,
|
|
9683
|
-
o.value ? (j(), ne(
|
|
9684
|
+
return (p, m) => (j(), Q("div", ae({ class: "sunny-qrcode-reader" }, p.$attrs), [
|
|
9685
|
+
o.value ? (j(), ne(h(hp), {
|
|
9684
9686
|
key: 0,
|
|
9685
9687
|
paused: e.paused,
|
|
9686
9688
|
constraints: e.constraints,
|
|
@@ -9705,13 +9707,13 @@ const hp = /* @__PURE__ */ te({
|
|
|
9705
9707
|
key: "0"
|
|
9706
9708
|
} : void 0
|
|
9707
9709
|
]), 1032, ["paused", "constraints", "torch", "formats", "track"])) : le("", !0),
|
|
9708
|
-
i.value ? (j(), ne(
|
|
9710
|
+
i.value ? (j(), ne(h(vp), {
|
|
9709
9711
|
key: 1,
|
|
9710
9712
|
formats: e.formats,
|
|
9711
9713
|
onDetect: u,
|
|
9712
9714
|
onError: d
|
|
9713
9715
|
}, null, 8, ["formats"])) : le("", !0),
|
|
9714
|
-
l.value ? (j(), ne(
|
|
9716
|
+
l.value ? (j(), ne(h(yp), {
|
|
9715
9717
|
key: 2,
|
|
9716
9718
|
formats: e.formats,
|
|
9717
9719
|
onDetect: u,
|
|
@@ -9768,5 +9770,5 @@ export {
|
|
|
9768
9770
|
Jp as useSunnyQueryGrid,
|
|
9769
9771
|
Xu as useSunnyResourceTree,
|
|
9770
9772
|
Cd as useSunnySearchPlan,
|
|
9771
|
-
|
|
9773
|
+
Op as z
|
|
9772
9774
|
};
|