@me-framework/me-ui-antdv-next 0.0.30 → 0.0.32
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/me-ui-antdv-next.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, h as f, inject as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, render as T, renderList as E, renderSlot as D, resolveComponent as O, resolveDynamicComponent as k, shallowRef as A, toDisplayString as j, unref as M, useAttrs as N, useSlots as P, vShow as F, watch as I, withCtx as L, withDirectives as R, withModifiers as z } from "vue";
|
|
2
2
|
import { message as B, theme as V } from "antdv-next";
|
|
3
3
|
import * as H from "@lucide/vue";
|
|
4
|
-
import { Check as
|
|
5
|
-
import { useDraggable as
|
|
6
|
-
import
|
|
4
|
+
import { Check as ee, ChevronDown as U, ChevronLeft as W, ChevronRight as te, Copy as G, Download as K, FileCode as q, Maximize as J, Maximize2 as Y, Minimize as ne, Minimize2 as re, Upload as X, X as Z } from "@lucide/vue";
|
|
5
|
+
import { useDraggable as Q } from "vue-draggable-plus";
|
|
6
|
+
import $ from "dayjs";
|
|
7
7
|
//#region \0rolldown/runtime.js
|
|
8
8
|
var ie = Object.create, ae = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, se = Object.getOwnPropertyNames, ce = Object.getPrototypeOf, le = Object.prototype.hasOwnProperty, ue = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), de = (e, t, n, r) => {
|
|
9
9
|
if (t && typeof t == "object" || typeof t == "function") for (var i = se(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !le.call(e, s) && s !== n && ae(e, s, {
|
|
@@ -93,7 +93,7 @@ var ie = Object.create, ae = Object.defineProperty, oe = Object.getOwnPropertyDe
|
|
|
93
93
|
algorithm: F.value ? c : o,
|
|
94
94
|
token: { borderRadius: 6 },
|
|
95
95
|
components: { Modal: { titleFontSize: 18 } }
|
|
96
|
-
})), H = r(() => S.value === "process" ? d.data.process?.title ?? d.data.normal?.title : d.data.normal?.title),
|
|
96
|
+
})), H = r(() => S.value === "process" ? d.data.process?.title ?? d.data.normal?.title : d.data.normal?.title), ee = r(() => S.value === "process" ? d.data.process?.message ?? d.data.normal?.message : d.data.normal?.message), U = r(() => S.value === "process" ? d.data.process?.loading ?? !1 : d.data.normal?.loading ?? !1), W = r(() => S.value === "process" ? d.data.process?.type ?? d.data.normal?.type ?? "default" : d.data.normal?.type ?? "default"), te = r(() => !!d.handler?.cancel), G = r(() => W.value === "default" ? "default" : "primary"), K = r(() => W.value === "danger");
|
|
97
97
|
I(_, async (e) => {
|
|
98
98
|
if (e ? (k && d.closeOnRouteChange && (A.value = k.currentRoute.value.fullPath), M || (T = !1)) : !T && !M && (A.value = null), e && !d.centered && d.top !== void 0) {
|
|
99
99
|
await h();
|
|
@@ -101,14 +101,14 @@ var ie = Object.create, ae = Object.defineProperty, oe = Object.getOwnPropertyDe
|
|
|
101
101
|
n && (n.style.marginTop = e);
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
|
-
let
|
|
104
|
+
let q = (e, ...t) => new Promise((n) => {
|
|
105
105
|
if (!e) {
|
|
106
106
|
n(!0);
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
109
|
let r = e(...t);
|
|
110
110
|
r instanceof Promise ? r.then((e) => n(e !== !1)).catch(() => n(!1)) : n(r !== !1);
|
|
111
|
-
}),
|
|
111
|
+
}), J = () => {
|
|
112
112
|
E = null;
|
|
113
113
|
let e = d.data.request;
|
|
114
114
|
return !e || new Promise((t) => {
|
|
@@ -122,17 +122,17 @@ var ie = Object.create, ae = Object.defineProperty, oe = Object.getOwnPropertyDe
|
|
|
122
122
|
t(!0);
|
|
123
123
|
}) : t(!0);
|
|
124
124
|
});
|
|
125
|
-
},
|
|
125
|
+
}, Y = async () => {
|
|
126
126
|
if (T) {
|
|
127
127
|
T = !1, C = !1;
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
C || (C = !0, await
|
|
131
|
-
},
|
|
130
|
+
C || (C = !0, await q(d.handler?.cancel) ? _.value = !1 : (S.value = "normal", C = !1));
|
|
131
|
+
}, ne = async () => {
|
|
132
132
|
if (C) return;
|
|
133
133
|
C = !0, S.value = "process";
|
|
134
134
|
let e = !0;
|
|
135
|
-
d.data.request && (e = await
|
|
135
|
+
d.data.request && (e = await J()), e && d.handler?.confirm ? await q(d.handler.confirm, E) ? _.value = !1 : (S.value = "normal", C = !1) : _.value = !1;
|
|
136
136
|
};
|
|
137
137
|
return (t, n) => {
|
|
138
138
|
let r = O("a-button"), o = O("a-modal"), c = O("a-config-provider");
|
|
@@ -147,24 +147,24 @@ var ie = Object.create, ae = Object.defineProperty, oe = Object.getOwnPropertyDe
|
|
|
147
147
|
"mask-closable": !1,
|
|
148
148
|
keyboard: !1,
|
|
149
149
|
"wrap-class-name": "me-message-modal",
|
|
150
|
-
onCancel:
|
|
150
|
+
onCancel: Y
|
|
151
151
|
}, {
|
|
152
|
-
footer: L(() => [s("div", pe, [D(t.$slots, "me-message-footer", {}, () => [n[3] ||= s("div", null, null, -1), s("div", me, [
|
|
152
|
+
footer: L(() => [s("div", pe, [D(t.$slots, "me-message-footer", {}, () => [n[3] ||= s("div", null, null, -1), s("div", me, [te.value ? (x(), i(r, {
|
|
153
153
|
key: 0,
|
|
154
154
|
type: "link",
|
|
155
155
|
class: "me-message__cancel",
|
|
156
156
|
autoInsertSpace: !1,
|
|
157
|
-
onClick:
|
|
157
|
+
onClick: Y
|
|
158
158
|
}, {
|
|
159
159
|
default: L(() => [...n[1] ||= [l("取消 ", -1)]]),
|
|
160
160
|
_: 1
|
|
161
161
|
})) : a("", !0), u(r, {
|
|
162
|
-
type:
|
|
163
|
-
danger:
|
|
164
|
-
loading:
|
|
162
|
+
type: G.value,
|
|
163
|
+
danger: K.value,
|
|
164
|
+
loading: U.value,
|
|
165
165
|
autoInsertSpace: !1,
|
|
166
|
-
class: g(["me-message__confirm", `me-message__confirm--${
|
|
167
|
-
onClick:
|
|
166
|
+
class: g(["me-message__confirm", `me-message__confirm--${W.value}`]),
|
|
167
|
+
onClick: ne
|
|
168
168
|
}, {
|
|
169
169
|
default: L(() => [...n[2] ||= [l(" 确定 ", -1)]]),
|
|
170
170
|
_: 1
|
|
@@ -176,7 +176,7 @@ var ie = Object.create, ae = Object.defineProperty, oe = Object.getOwnPropertyDe
|
|
|
176
176
|
])])])])]),
|
|
177
177
|
default: L(() => [s("div", he, [D(t.$slots, "title", {}, () => [l(j(H.value), 1)])]), s("div", {
|
|
178
178
|
class: "me-message__body",
|
|
179
|
-
innerHTML:
|
|
179
|
+
innerHTML: ee.value
|
|
180
180
|
}, null, 8, ge)]),
|
|
181
181
|
_: 3
|
|
182
182
|
}, 8, [
|
|
@@ -714,7 +714,7 @@ var Ve = ["onClick"], He = /* @__PURE__ */ d({
|
|
|
714
714
|
onMenuClick: ({ key: n }) => b(e, t, n),
|
|
715
715
|
onClick: r[1] ||= z(() => {}, ["stop"])
|
|
716
716
|
}, {
|
|
717
|
-
default: L(() => [s("span", { class: g(["me-breadcrumb__menu-trigger", { "is-bold": e.bold }]) }, [l(j(e.label) + " ", 1), u(M(
|
|
717
|
+
default: L(() => [s("span", { class: g(["me-breadcrumb__menu-trigger", { "is-bold": e.bold }]) }, [l(j(e.label) + " ", 1), u(M(U), {
|
|
718
718
|
size: 14,
|
|
719
719
|
"stroke-width": 2
|
|
720
720
|
})], 2)]),
|
|
@@ -936,7 +936,7 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
936
936
|
"dot",
|
|
937
937
|
"color"
|
|
938
938
|
])) : a("", !0),
|
|
939
|
-
u(M(
|
|
939
|
+
u(M(U), {
|
|
940
940
|
class: "me-menu__tree-arrow",
|
|
941
941
|
size: 12
|
|
942
942
|
})
|
|
@@ -1071,32 +1071,32 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
1071
1071
|
backgroundImage: A.value ? `linear-gradient(rgb(0 0 0 / 70%), rgb(0 0 0 / 80%)), url(${e})` : `url(${e})`,
|
|
1072
1072
|
backgroundSize: "cover"
|
|
1073
1073
|
} : { background: e };
|
|
1074
|
-
}), V = r(() => k.value), H = r(() => ae.value.length > 0),
|
|
1074
|
+
}), V = r(() => k.value), H = r(() => ae.value.length > 0), ee = r(() => typeof d.leftWidth == "number" ? `${d.leftWidth}px` : d.leftWidth), G = r(() => typeof d.rightWidth == "number" ? `${d.rightWidth}px` : d.rightWidth), K = r(() => {
|
|
1075
1075
|
let e = {};
|
|
1076
1076
|
if (d.collapseDuration !== void 0) {
|
|
1077
1077
|
let t = d.collapseDuration;
|
|
1078
1078
|
e["--me-menu-transition-duration"] = typeof t == "number" || /^\d+(\.\d+)?$/.test(t) ? `${t}ms` : t;
|
|
1079
1079
|
}
|
|
1080
1080
|
return d.collapseAnimation !== void 0 && (e["--me-menu-transition-timing"] = d.collapseAnimation), e;
|
|
1081
|
-
}),
|
|
1081
|
+
}), q = w(0), J = r(() => {
|
|
1082
1082
|
let e = Number.parseFloat(String(d.leftWidth)) || 0, t = Number.parseFloat(String(d.rightWidth)) || 0;
|
|
1083
1083
|
return {
|
|
1084
1084
|
left: `${(H.value && !k.value ? e + t : e) - 8}px`,
|
|
1085
|
-
top: `${
|
|
1085
|
+
top: `${q.value}px`
|
|
1086
1086
|
};
|
|
1087
|
-
}),
|
|
1087
|
+
}), Y = w(!1), ne = (e) => {
|
|
1088
1088
|
if (!d.showRightToggle || !H.value) return;
|
|
1089
1089
|
let t = e.currentTarget, n = t.querySelector(".me-menu__right"), r = n && n.offsetParent !== null ? n : t.querySelector(".me-menu__left");
|
|
1090
1090
|
if (!r) return;
|
|
1091
1091
|
let i = r.getBoundingClientRect(), a = Math.abs(e.clientX - i.right) <= 16;
|
|
1092
|
-
if (a && !
|
|
1092
|
+
if (a && !Y.value) {
|
|
1093
1093
|
let n = t.getBoundingClientRect();
|
|
1094
|
-
|
|
1094
|
+
q.value = Math.max(36, Math.min(e.clientY - n.top, n.height - 8 - 28));
|
|
1095
1095
|
}
|
|
1096
|
-
|
|
1097
|
-
},
|
|
1098
|
-
|
|
1099
|
-
},
|
|
1096
|
+
Y.value = a;
|
|
1097
|
+
}, re = () => {
|
|
1098
|
+
Y.value = !1;
|
|
1099
|
+
}, X = (e) => e[d.keyField] ?? e.id, Z = (e) => !(!d.showHidden && e.hideFlag || e.meta?.hideMenu || d.hideDisabled && !e.enableFlag), Q = r(() => d.data.filter((e) => e.parentId === "0" && Z(e)).sort((e, t) => e.sort - t.sort)), $ = r(() => h.value ? h.value : d.activeId ? d.activeId : d.defaultActiveId ? d.defaultActiveId : Q.value[0] ? X(Q.value[0]) : ""), ie = r(() => $.value && Q.value.find((e) => X(e) === $.value) || null), ae = r(() => ie.value?.children ? ie.value.children.filter((e) => Z(e)).sort((e, t) => e.sort - t.sort) : []), oe = r(() => v.value ? v.value : d.selectedId ? d.selectedId : d.defaultSelectedId ? d.defaultSelectedId : ""), se = r(() => oe.value ? le(d.data, oe.value) : null);
|
|
1100
1100
|
I(() => oe.value, (e) => {
|
|
1101
1101
|
if (!e) return;
|
|
1102
1102
|
me(e);
|
|
@@ -1104,7 +1104,7 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
1104
1104
|
if (t && !ve(t)) {
|
|
1105
1105
|
let e = ye(t);
|
|
1106
1106
|
if (e) {
|
|
1107
|
-
let t =
|
|
1107
|
+
let t = X(e);
|
|
1108
1108
|
v.value = t, f("update:selectedId", t), f("select", e), _e(e);
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
@@ -1119,22 +1119,22 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
1119
1119
|
}[e] || e;
|
|
1120
1120
|
}, le = (e, t) => {
|
|
1121
1121
|
for (let n of e) {
|
|
1122
|
-
if (
|
|
1122
|
+
if (X(n) === t) return n;
|
|
1123
1123
|
if (n.children && n.children.length > 0) {
|
|
1124
1124
|
let e = le(n.children, t);
|
|
1125
1125
|
if (e) return e;
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
return null;
|
|
1129
|
-
}, ue = (e) => !e.children || e.meta?.hideChildrenMenu ? [] : e.children.filter((e) =>
|
|
1129
|
+
}, ue = (e) => !e.children || e.meta?.hideChildrenMenu ? [] : e.children.filter((e) => Z(e)).sort((e, t) => e.sort - t.sort), de = (e) => {
|
|
1130
1130
|
T.value.has(e) ? T.value.delete(e) : T.value.add(e);
|
|
1131
1131
|
}, fe = (e) => T.value.has(e), pe = (e, t = ae.value) => {
|
|
1132
1132
|
for (let n of t) {
|
|
1133
1133
|
let t = ue(n);
|
|
1134
|
-
if (t.some((t) =>
|
|
1134
|
+
if (t.some((t) => X(t) === e)) return [X(n)];
|
|
1135
1135
|
if (t.length > 0) {
|
|
1136
1136
|
let r = pe(e, t);
|
|
1137
|
-
if (r.length > 0) return [
|
|
1137
|
+
if (r.length > 0) return [X(n), ...r];
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
1140
|
return [];
|
|
@@ -1145,7 +1145,7 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
1145
1145
|
}, he = (e) => {
|
|
1146
1146
|
if (!e || !ae.value) return null;
|
|
1147
1147
|
for (let t of ae.value) {
|
|
1148
|
-
if (
|
|
1148
|
+
if (X(t) === e) return t;
|
|
1149
1149
|
let n = ue(t);
|
|
1150
1150
|
if (n.length > 0) {
|
|
1151
1151
|
let t = le(n, e);
|
|
@@ -1156,7 +1156,7 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
1156
1156
|
}, ge = (e) => {
|
|
1157
1157
|
if (e.length === 0) return null;
|
|
1158
1158
|
let t = e[0], n = ue(t);
|
|
1159
|
-
return n.length > 0 ? (T.value.add(
|
|
1159
|
+
return n.length > 0 ? (T.value.add(X(t)), ge(n)) : t;
|
|
1160
1160
|
}, _e = (e) => {
|
|
1161
1161
|
if (!d.router || !m) return;
|
|
1162
1162
|
let t = e.meta?.path;
|
|
@@ -1166,7 +1166,7 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
1166
1166
|
let t = ue(e);
|
|
1167
1167
|
return t.length === 0 ? null : ge(t);
|
|
1168
1168
|
};
|
|
1169
|
-
I(() =>
|
|
1169
|
+
I(() => $.value, () => {
|
|
1170
1170
|
let e = d.selectedId || v.value || d.defaultSelectedId, t = he(e);
|
|
1171
1171
|
if (t && ae.value.length > 0) {
|
|
1172
1172
|
if (me(e), ve(t)) {
|
|
@@ -1175,14 +1175,14 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
1175
1175
|
}
|
|
1176
1176
|
let n = ye(t);
|
|
1177
1177
|
if (n) {
|
|
1178
|
-
let e =
|
|
1178
|
+
let e = X(n);
|
|
1179
1179
|
v.value = e, f("update:selectedId", e), f("select", n), _e(n);
|
|
1180
1180
|
return;
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
1183
|
let n = ge(ae.value);
|
|
1184
1184
|
if (n) {
|
|
1185
|
-
let e =
|
|
1185
|
+
let e = X(n);
|
|
1186
1186
|
v.value = e, f("update:selectedId", e), f("select", n), _e(n);
|
|
1187
1187
|
} else v.value = "", f("update:selectedId", "");
|
|
1188
1188
|
}, { immediate: !0 });
|
|
@@ -1190,7 +1190,7 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
1190
1190
|
k.value = !k.value, f("update:rightCollapsed", k.value);
|
|
1191
1191
|
}, xe = (e) => {
|
|
1192
1192
|
if (!e.enableFlag) return;
|
|
1193
|
-
let t =
|
|
1193
|
+
let t = X(e);
|
|
1194
1194
|
if (h.value === t) {
|
|
1195
1195
|
be();
|
|
1196
1196
|
return;
|
|
@@ -1198,7 +1198,7 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
1198
1198
|
h.value = t, v.value = "", k.value = !1, f("update:rightCollapsed", !1), f("update:activeId", t), f("change", e);
|
|
1199
1199
|
}, Se = (e) => {
|
|
1200
1200
|
if (!e.enableFlag) return;
|
|
1201
|
-
let t =
|
|
1201
|
+
let t = X(e);
|
|
1202
1202
|
v.value = t, f("update:selectedId", t), f("select", e), _e(e);
|
|
1203
1203
|
};
|
|
1204
1204
|
return c({
|
|
@@ -1219,22 +1219,22 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
1219
1219
|
class: "me-menu",
|
|
1220
1220
|
style: _({
|
|
1221
1221
|
height: z.value,
|
|
1222
|
-
...
|
|
1222
|
+
...K.value
|
|
1223
1223
|
}),
|
|
1224
|
-
onMousemove:
|
|
1225
|
-
onMouseleave:
|
|
1224
|
+
onMousemove: ne,
|
|
1225
|
+
onMouseleave: re
|
|
1226
1226
|
}, [
|
|
1227
1227
|
s("div", {
|
|
1228
1228
|
class: "me-menu__left",
|
|
1229
1229
|
style: _({
|
|
1230
|
-
width:
|
|
1230
|
+
width: ee.value,
|
|
1231
1231
|
...B.value
|
|
1232
1232
|
})
|
|
1233
1233
|
}, [
|
|
1234
1234
|
s("div", st, [D(r.$slots, "logo", {}, () => [c[0] ||= s("span", { class: "me-menu__logo-text" }, "MeMenu", -1)])]),
|
|
1235
|
-
s("div", ct, [(x(!0), o(e, null, E(
|
|
1235
|
+
s("div", ct, [(x(!0), o(e, null, E(Q.value, (t) => (x(), o(e, { key: X(t) }, [t.meta?.divider ? (x(), o("div", lt)) : a("", !0), s("div", {
|
|
1236
1236
|
class: g(["me-menu__left-item", {
|
|
1237
|
-
"is-active":
|
|
1237
|
+
"is-active": $.value === X(t),
|
|
1238
1238
|
"is-disabled": !t.enableFlag
|
|
1239
1239
|
}]),
|
|
1240
1240
|
onClick: (e) => xe(t)
|
|
@@ -1263,41 +1263,41 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
1263
1263
|
], 4),
|
|
1264
1264
|
R(s("div", {
|
|
1265
1265
|
class: g(["me-menu__right", { "is-collapsed": k.value }]),
|
|
1266
|
-
style: _({ "--me-menu-right-width":
|
|
1267
|
-
}, [s("div", pt, [(x(!0), o(e, null, E(ae.value, (t) => (x(), o(e, { key:
|
|
1266
|
+
style: _({ "--me-menu-right-width": G.value })
|
|
1267
|
+
}, [s("div", pt, [(x(!0), o(e, null, E(ae.value, (t) => (x(), o(e, { key: X(t) }, [t.meta?.type === "group" ? (x(), o(e, { key: 0 }, [s("div", mt, [s("div", {
|
|
1268
1268
|
class: "me-menu__section-header",
|
|
1269
|
-
onClick: (e) => de(
|
|
1270
|
-
}, [u(M(
|
|
1271
|
-
class: g(["me-menu__section-arrow", { "is-expanded": fe(
|
|
1269
|
+
onClick: (e) => de(X(t))
|
|
1270
|
+
}, [u(M(U), {
|
|
1271
|
+
class: g(["me-menu__section-arrow", { "is-expanded": fe(X(t)) }]),
|
|
1272
1272
|
size: 12
|
|
1273
1273
|
}, null, 8, ["class"]), s("span", gt, j(t.title), 1)], 8, ht), u(n, { name: "me-menu-section" }, {
|
|
1274
1274
|
default: L(() => [R(s("div", _t, [(x(!0), o(e, null, E(ue(t), (e) => (x(), i(ot, {
|
|
1275
|
-
key:
|
|
1275
|
+
key: X(e),
|
|
1276
1276
|
item: e,
|
|
1277
1277
|
level: 0,
|
|
1278
1278
|
onClick: Se,
|
|
1279
1279
|
onToggle: de
|
|
1280
|
-
}, null, 8, ["item"]))), 128))], 512), [[F, fe(
|
|
1280
|
+
}, null, 8, ["item"]))), 128))], 512), [[F, fe(X(t))]])]),
|
|
1281
1281
|
_: 2
|
|
1282
1282
|
}, 1024)]), c[2] ||= s("div", { class: "me-menu__section-divider" }, null, -1)], 64)) : ue(t).length > 0 ? (x(), o(e, { key: 1 }, [s("div", vt, [s("div", {
|
|
1283
1283
|
class: "me-menu__section-header",
|
|
1284
|
-
onClick: (e) => de(
|
|
1285
|
-
}, [u(M(
|
|
1286
|
-
class: g(["me-menu__section-arrow", { "is-expanded": fe(
|
|
1284
|
+
onClick: (e) => de(X(t))
|
|
1285
|
+
}, [u(M(U), {
|
|
1286
|
+
class: g(["me-menu__section-arrow", { "is-expanded": fe(X(t)) }]),
|
|
1287
1287
|
size: 12
|
|
1288
1288
|
}, null, 8, ["class"]), s("span", bt, j(t.title), 1)], 8, yt), u(n, { name: "me-menu-section" }, {
|
|
1289
1289
|
default: L(() => [R(s("div", xt, [(x(!0), o(e, null, E(ue(t), (e) => (x(), i(ot, {
|
|
1290
|
-
key:
|
|
1290
|
+
key: X(e),
|
|
1291
1291
|
item: e,
|
|
1292
1292
|
level: 0,
|
|
1293
1293
|
onClick: Se,
|
|
1294
1294
|
onToggle: de
|
|
1295
|
-
}, null, 8, ["item"]))), 128))], 512), [[F, fe(
|
|
1295
|
+
}, null, 8, ["item"]))), 128))], 512), [[F, fe(X(t))]])]),
|
|
1296
1296
|
_: 2
|
|
1297
1297
|
}, 1024)]), c[3] ||= s("div", { class: "me-menu__section-divider" }, null, -1)], 64)) : (x(), o("div", {
|
|
1298
1298
|
key: 2,
|
|
1299
1299
|
class: g(["me-menu__item me-menu__item--standalone", {
|
|
1300
|
-
"is-active": oe.value ===
|
|
1300
|
+
"is-active": oe.value === X(t),
|
|
1301
1301
|
"is-disabled": !t.enableFlag
|
|
1302
1302
|
}]),
|
|
1303
1303
|
onClick: (e) => Se(t)
|
|
@@ -1323,13 +1323,13 @@ var nt = tt, rt = { class: "me-menu__tree-text" }, it = { class: "me-menu__tree-
|
|
|
1323
1323
|
], 10, St))], 64))), 128))])], 6), [[F, H.value]]),
|
|
1324
1324
|
t.showRightToggle ? (x(), o("div", {
|
|
1325
1325
|
key: 0,
|
|
1326
|
-
class: g(["me-menu__right-toggle", { "is-visible":
|
|
1327
|
-
style: _(
|
|
1326
|
+
class: g(["me-menu__right-toggle", { "is-visible": Y.value }]),
|
|
1327
|
+
style: _(J.value),
|
|
1328
1328
|
onClick: be
|
|
1329
|
-
}, [D(r.$slots, "right-toggle", { collapsed: V.value }, () => [V.value ? (x(), i(M(
|
|
1329
|
+
}, [D(r.$slots, "right-toggle", { collapsed: V.value }, () => [V.value ? (x(), i(M(te), {
|
|
1330
1330
|
key: 0,
|
|
1331
1331
|
size: 14
|
|
1332
|
-
})) : (x(), i(M(
|
|
1332
|
+
})) : (x(), i(M(W), {
|
|
1333
1333
|
key: 1,
|
|
1334
1334
|
size: 14
|
|
1335
1335
|
}))])], 6)) : a("", !0)
|
|
@@ -1535,24 +1535,24 @@ var Ot = {
|
|
|
1535
1535
|
"close-all"
|
|
1536
1536
|
],
|
|
1537
1537
|
setup(t, { expose: n, emit: c }) {
|
|
1538
|
-
let l = t, d = c, p = r(() => l.tabProps.key ?? "path"), m = r(() => l.tabProps.label ?? "title"), b = r(() => l.tabProps.isHome ?? "isHome"), S = r(() => l.tabProps.lock ?? "lock"), C = r(() => l.tabProps.icon ?? "icon"), T = r(() => l.width ? typeof l.width == "number" ? `${l.width}px` : l.width : ""), A = r(() => l.titleMaxWidth === void 0 ? {} : { maxWidth: typeof l.titleMaxWidth == "number" ? `${l.titleMaxWidth}px` : l.titleMaxWidth }), N = r(() => l.titleMaxWidth !== void 0), P = (e) => e ? (typeof e == "object" || typeof e == "function") && typeof e != "string" : !1, F = w(null), R = w(null), B = w(null), V = w(l.modelValue), { translateX:
|
|
1539
|
-
I(
|
|
1540
|
-
|
|
1541
|
-
|
|
1538
|
+
let l = t, d = c, p = r(() => l.tabProps.key ?? "path"), m = r(() => l.tabProps.label ?? "title"), b = r(() => l.tabProps.isHome ?? "isHome"), S = r(() => l.tabProps.lock ?? "lock"), C = r(() => l.tabProps.icon ?? "icon"), T = r(() => l.width ? typeof l.width == "number" ? `${l.width}px` : l.width : ""), A = r(() => l.titleMaxWidth === void 0 ? {} : { maxWidth: typeof l.titleMaxWidth == "number" ? `${l.titleMaxWidth}px` : l.titleMaxWidth }), N = r(() => l.titleMaxWidth !== void 0), P = (e) => e ? (typeof e == "object" || typeof e == "function") && typeof e != "string" : !1, F = w(null), R = w(null), B = w(null), V = w(l.modelValue), { translateX: ee, showLeftArrow: U, showRightArrow: W, isSmooth: te, isScrollable: G, withSmooth: K, updateArrowVisibility: q, clampTranslateX: J, scrollLeft: Y, scrollRight: ne, canScroll: re } = Et(R, B), X = null;
|
|
1539
|
+
I(ee, (e) => {
|
|
1540
|
+
X === null && (X = requestAnimationFrame(() => {
|
|
1541
|
+
X = null, d("scroll", e);
|
|
1542
1542
|
}));
|
|
1543
1543
|
}), v(() => {
|
|
1544
|
-
|
|
1544
|
+
X !== null && cancelAnimationFrame(X);
|
|
1545
1545
|
});
|
|
1546
|
-
let { isDragging:
|
|
1547
|
-
canScroll:
|
|
1548
|
-
translateX:
|
|
1549
|
-
clampTranslateX:
|
|
1550
|
-
updateArrowVisibility:
|
|
1546
|
+
let { isDragging: Z, handleDragStart: Q, handleTouchStart: $, setDragRefs: ie, getHasDragged: ae, resetHasDragged: oe } = Dt({
|
|
1547
|
+
canScroll: re,
|
|
1548
|
+
translateX: ee,
|
|
1549
|
+
clampTranslateX: J,
|
|
1550
|
+
updateArrowVisibility: q
|
|
1551
1551
|
}), se = 0, ce = null, le = (e) => {
|
|
1552
|
-
if (!
|
|
1552
|
+
if (!re()) return;
|
|
1553
1553
|
let t = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;
|
|
1554
1554
|
t !== 0 && (e.preventDefault(), se += t, ce === null && (ce = requestAnimationFrame(() => {
|
|
1555
|
-
ce = null,
|
|
1555
|
+
ce = null, ee.value -= se, se = 0, J(), q();
|
|
1556
1556
|
})));
|
|
1557
1557
|
};
|
|
1558
1558
|
v(() => {
|
|
@@ -1572,10 +1572,10 @@ var Ot = {
|
|
|
1572
1572
|
let n = R.value.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
1573
1573
|
if (r.left >= n.left && r.right <= n.right) return;
|
|
1574
1574
|
let i = l.scrollTargetOffset, a = i <= 1 ? n.width * i : i, o;
|
|
1575
|
-
o = r.left < n.left ? r.left - n.left - a : r.right - n.right + a, !(Math.abs(o) < 1) && (
|
|
1575
|
+
o = r.left < n.left ? r.left - n.left - a : r.right - n.right + a, !(Math.abs(o) < 1) && (te.value = !0, requestAnimationFrame(() => {
|
|
1576
1576
|
requestAnimationFrame(() => {
|
|
1577
|
-
|
|
1578
|
-
|
|
1577
|
+
ee.value -= o, J(), q(), setTimeout(() => {
|
|
1578
|
+
te.value = !1;
|
|
1579
1579
|
}, 300);
|
|
1580
1580
|
});
|
|
1581
1581
|
}));
|
|
@@ -1584,12 +1584,12 @@ var Ot = {
|
|
|
1584
1584
|
let t = e ?? V.value;
|
|
1585
1585
|
t && fe(t);
|
|
1586
1586
|
}, me = () => {
|
|
1587
|
-
|
|
1588
|
-
|
|
1587
|
+
K(() => {
|
|
1588
|
+
ee.value = 0, J(), q();
|
|
1589
1589
|
});
|
|
1590
1590
|
}, he = () => {
|
|
1591
|
-
|
|
1592
|
-
!R.value || !B.value || (
|
|
1591
|
+
K(() => {
|
|
1592
|
+
!R.value || !B.value || (ee.value = R.value.clientWidth - B.value.scrollWidth, J(), q());
|
|
1593
1593
|
});
|
|
1594
1594
|
}, ge = (e) => l.closable ? !e[b.value] && !e[S.value] : !1, _e = {
|
|
1595
1595
|
refresh: "RefreshCw",
|
|
@@ -1750,22 +1750,22 @@ var Ot = {
|
|
|
1750
1750
|
V.value = e, pe(e);
|
|
1751
1751
|
}), I(() => l.tabList, () => {
|
|
1752
1752
|
h(() => {
|
|
1753
|
-
pe(V.value),
|
|
1753
|
+
pe(V.value), q();
|
|
1754
1754
|
});
|
|
1755
1755
|
}, {
|
|
1756
1756
|
flush: "post",
|
|
1757
1757
|
deep: !0
|
|
1758
1758
|
}), I(() => l.width, () => {
|
|
1759
1759
|
h(() => {
|
|
1760
|
-
|
|
1760
|
+
J(), q(), pe(V.value);
|
|
1761
1761
|
});
|
|
1762
1762
|
});
|
|
1763
1763
|
let Ee = null, De = () => {
|
|
1764
|
-
|
|
1764
|
+
J(), q(), pe(V.value);
|
|
1765
1765
|
};
|
|
1766
1766
|
return y(() => {
|
|
1767
1767
|
ie(R.value, B.value), h(() => {
|
|
1768
|
-
|
|
1768
|
+
q(), V.value && pe(V.value);
|
|
1769
1769
|
}), typeof ResizeObserver < "u" && R.value && (Ee = new ResizeObserver(() => {
|
|
1770
1770
|
De();
|
|
1771
1771
|
}), Ee.observe(R.value));
|
|
@@ -1789,32 +1789,32 @@ var Ot = {
|
|
|
1789
1789
|
}, [
|
|
1790
1790
|
n.$slots.left ? (x(), o("div", Ot, [D(n.$slots, "left")])) : a("", !0),
|
|
1791
1791
|
s("div", {
|
|
1792
|
-
class: g(["me-nav__arrow me-nav__arrow--left", { "is-hidden": !M(
|
|
1792
|
+
class: g(["me-nav__arrow me-nav__arrow--left", { "is-hidden": !M(U) }]),
|
|
1793
1793
|
role: "button",
|
|
1794
1794
|
"aria-label": "向左滚动",
|
|
1795
|
-
onClick: r[0] ||= (...e) => M(
|
|
1795
|
+
onClick: r[0] ||= (...e) => M(Y) && M(Y)(...e)
|
|
1796
1796
|
}, [u(Ae, {
|
|
1797
1797
|
name: "ChevronLeft",
|
|
1798
1798
|
size: 14
|
|
1799
1799
|
})], 2),
|
|
1800
1800
|
s("div", {
|
|
1801
1801
|
class: g(["me-nav__scroll", {
|
|
1802
|
-
"is-dragging": M(
|
|
1803
|
-
"is-scrollable": M(
|
|
1802
|
+
"is-dragging": M(Z),
|
|
1803
|
+
"is-scrollable": M(G)
|
|
1804
1804
|
}]),
|
|
1805
1805
|
ref_key: "scrollRef",
|
|
1806
1806
|
ref: R,
|
|
1807
1807
|
onWheel: le,
|
|
1808
|
-
onMousedown: r[1] ||= (...e) => M(
|
|
1809
|
-
onTouchstartPassive: r[2] ||= (...e) => M(
|
|
1808
|
+
onMousedown: r[1] ||= (...e) => M(Q) && M(Q)(...e),
|
|
1809
|
+
onTouchstartPassive: r[2] ||= (...e) => M($) && M($)(...e),
|
|
1810
1810
|
onContextmenu: r[3] ||= z(() => {}, ["prevent"])
|
|
1811
1811
|
}, [
|
|
1812
|
-
t.edgeFade && M(
|
|
1812
|
+
t.edgeFade && M(U) ? (x(), o("div", kt)) : a("", !0),
|
|
1813
1813
|
s("div", {
|
|
1814
|
-
class: g(["me-nav__list", { "is-smooth": M(
|
|
1814
|
+
class: g(["me-nav__list", { "is-smooth": M(te) }]),
|
|
1815
1815
|
ref_key: "listRef",
|
|
1816
1816
|
ref: B,
|
|
1817
|
-
style: _({ transform: `translateX(${M(
|
|
1817
|
+
style: _({ transform: `translateX(${M(ee)}px)` })
|
|
1818
1818
|
}, [t.tabList.length === 0 && n.$slots.empty ? (x(), o("div", At, [D(n.$slots, "empty")])) : a("", !0), (x(!0), o(e, null, E(t.tabList, (e, t) => (x(), o("div", {
|
|
1819
1819
|
key: e[p.value],
|
|
1820
1820
|
class: "me-nav__tab-wrapper"
|
|
@@ -1877,13 +1877,13 @@ var Ot = {
|
|
|
1877
1877
|
]))], 10, jt)]),
|
|
1878
1878
|
_: 2
|
|
1879
1879
|
}, 1032, ["menu", "onOpenChange"])]))), 128))], 6),
|
|
1880
|
-
t.edgeFade && M(
|
|
1880
|
+
t.edgeFade && M(W) ? (x(), o("div", Ft)) : a("", !0)
|
|
1881
1881
|
], 34),
|
|
1882
1882
|
s("div", {
|
|
1883
|
-
class: g(["me-nav__arrow me-nav__arrow--right", { "is-hidden": !M(
|
|
1883
|
+
class: g(["me-nav__arrow me-nav__arrow--right", { "is-hidden": !M(W) }]),
|
|
1884
1884
|
role: "button",
|
|
1885
1885
|
"aria-label": "向右滚动",
|
|
1886
|
-
onClick: r[4] ||= (...e) => M(
|
|
1886
|
+
onClick: r[4] ||= (...e) => M(ne) && M(ne)(...e)
|
|
1887
1887
|
}, [u(Ae, {
|
|
1888
1888
|
name: "ChevronRight",
|
|
1889
1889
|
size: 14
|
|
@@ -2153,10 +2153,10 @@ var Rt = Lt, zt = { class: "me-skeleton__card-body" }, Bt = { class: "me-skeleto
|
|
|
2153
2153
|
type: "button",
|
|
2154
2154
|
title: y.value ? "退出全屏" : "全屏",
|
|
2155
2155
|
onClick: z(C, ["stop"])
|
|
2156
|
-
}, [y.value ? (x(), i(M(
|
|
2156
|
+
}, [y.value ? (x(), i(M(ne), {
|
|
2157
2157
|
key: 1,
|
|
2158
2158
|
size: 16
|
|
2159
|
-
})) : (x(), i(M(
|
|
2159
|
+
})) : (x(), i(M(J), {
|
|
2160
2160
|
key: 0,
|
|
2161
2161
|
size: 16
|
|
2162
2162
|
}))], 8, qt)) : a("", !0), e.closable ? (x(), o("button", {
|
|
@@ -2165,7 +2165,7 @@ var Rt = Lt, zt = { class: "me-skeleton__card-body" }, Bt = { class: "me-skeleto
|
|
|
2165
2165
|
type: "button",
|
|
2166
2166
|
title: "关闭",
|
|
2167
2167
|
onClick: z(T, ["stop"])
|
|
2168
|
-
}, [u(M(
|
|
2168
|
+
}, [u(M(Z), { size: 16 })])) : a("", !0)])]),
|
|
2169
2169
|
s("div", {
|
|
2170
2170
|
class: "me-modal__body",
|
|
2171
2171
|
style: _(e.bodyStyle)
|
|
@@ -3045,29 +3045,29 @@ var xn = bn, Sn = { class: "me-tree-menu-edit__scroll" }, Cn = { class: "me-tree
|
|
|
3045
3045
|
};
|
|
3046
3046
|
return r(c.list);
|
|
3047
3047
|
}), B = w(""), V = () => {
|
|
3048
|
-
B.value = "create",
|
|
3048
|
+
B.value = "create", J(), d("create");
|
|
3049
3049
|
}, H = async () => {
|
|
3050
3050
|
await m.value?.validate() && d("update", c.form);
|
|
3051
|
-
},
|
|
3051
|
+
}, ee = (e) => [
|
|
3052
3052
|
{
|
|
3053
3053
|
label: `添加子${c.label}`,
|
|
3054
3054
|
icon: "PlusCircle",
|
|
3055
3055
|
onClick: () => {
|
|
3056
|
-
B.value = "create-child",
|
|
3056
|
+
B.value = "create-child", J(), d("context-menu-add", e);
|
|
3057
3057
|
}
|
|
3058
3058
|
},
|
|
3059
3059
|
{
|
|
3060
3060
|
label: `编辑${c.label}`,
|
|
3061
3061
|
icon: "Pencil",
|
|
3062
3062
|
onClick: () => {
|
|
3063
|
-
B.value = "edit",
|
|
3063
|
+
B.value = "edit", J(), d("context-menu-edit", e);
|
|
3064
3064
|
}
|
|
3065
3065
|
},
|
|
3066
3066
|
{
|
|
3067
3067
|
label: `复制${c.label}`,
|
|
3068
3068
|
icon: "Copy",
|
|
3069
3069
|
onClick: () => {
|
|
3070
|
-
B.value = "copy",
|
|
3070
|
+
B.value = "copy", J(), d("context-menu-copy", e);
|
|
3071
3071
|
}
|
|
3072
3072
|
},
|
|
3073
3073
|
{
|
|
@@ -3077,8 +3077,8 @@ var xn = bn, Sn = { class: "me-tree-menu-edit__scroll" }, Cn = { class: "me-tree
|
|
|
3077
3077
|
B.value = "delete", d("context-menu-remove", e);
|
|
3078
3078
|
}
|
|
3079
3079
|
}
|
|
3080
|
-
],
|
|
3081
|
-
items:
|
|
3080
|
+
], U = (e) => c.nodeMenuItemHandle ? c.nodeMenuItemHandle(e) : ee(e), W = (e) => ({
|
|
3081
|
+
items: U(e).map((t, n) => ({
|
|
3082
3082
|
key: String(n),
|
|
3083
3083
|
label: t.label,
|
|
3084
3084
|
disabled: t.disabled,
|
|
@@ -3091,18 +3091,18 @@ var xn = bn, Sn = { class: "me-tree-menu-edit__scroll" }, Cn = { class: "me-tree
|
|
|
3091
3091
|
}
|
|
3092
3092
|
})),
|
|
3093
3093
|
onClick: () => {}
|
|
3094
|
-
}),
|
|
3094
|
+
}), te = (e) => {
|
|
3095
3095
|
e.event.preventDefault();
|
|
3096
3096
|
let t = e.node?.dataRef || e.node || {}, n = k.value.key || "id";
|
|
3097
3097
|
b.value = [t[n]];
|
|
3098
|
-
},
|
|
3098
|
+
}, G = (e, t) => {
|
|
3099
3099
|
if (b.value = e, e.length > 0 && t?.node) {
|
|
3100
3100
|
let e = t.node.dataRef || t.node || {};
|
|
3101
|
-
B.value = "edit",
|
|
3101
|
+
B.value = "edit", J(), d("node-click", e);
|
|
3102
3102
|
}
|
|
3103
|
-
},
|
|
3103
|
+
}, K = (e) => {
|
|
3104
3104
|
if (!c.fetchDataHandle) return;
|
|
3105
|
-
let t = e.dragNode, n = e.node, r = e.dropPosition, i = k.value.key || "id", a = k.value.children || "children", o = String(t[i]), s = r === 0 ? String(n[i]) : n.parentId || n.parentNode?.[i] || "0", l =
|
|
3105
|
+
let t = e.dragNode, n = e.node, r = e.dropPosition, i = k.value.key || "id", a = k.value.children || "children", o = String(t[i]), s = r === 0 ? String(n[i]) : n.parentId || n.parentNode?.[i] || "0", l = q(n, r, o, i, a), u = c.moveConfirm.title || "提示", d = c.moveConfirm.message || "确定保存移动吗?", f = c.moveConfirm.type || "danger";
|
|
3106
3106
|
if (!c.showMoveConfirm) {
|
|
3107
3107
|
c.apiMoveHandle?.({
|
|
3108
3108
|
id: o,
|
|
@@ -3138,18 +3138,18 @@ var xn = bn, Sn = { class: "me-tree-menu-edit__scroll" }, Cn = { class: "me-tree
|
|
|
3138
3138
|
cancel: () => (c.fetchDataHandle?.({ expandKeys: [s] }), !0)
|
|
3139
3139
|
}
|
|
3140
3140
|
});
|
|
3141
|
-
},
|
|
3141
|
+
}, q = (e, t, n, r, i) => {
|
|
3142
3142
|
let a = e.parentNode?.[i] || e.parent?.children || c.list, o = [];
|
|
3143
3143
|
for (let i of a) {
|
|
3144
3144
|
let a = String(i[r]);
|
|
3145
3145
|
a !== n && t !== 0 && (t === -1 && a === String(e[r]) ? (o.push(n), o.push(a)) : t === 1 && a === String(e[r]) ? (o.push(a), o.push(n)) : o.push(a));
|
|
3146
3146
|
}
|
|
3147
3147
|
return t === 0 ? [...e[i]?.map((e) => String(e[r])) || [], n] : o;
|
|
3148
|
-
},
|
|
3148
|
+
}, J = () => {
|
|
3149
3149
|
c.openHandle ? c.openHandle() : m.value?.open();
|
|
3150
3150
|
};
|
|
3151
3151
|
return t({
|
|
3152
|
-
open:
|
|
3152
|
+
open: J,
|
|
3153
3153
|
close: () => {
|
|
3154
3154
|
m.value?.close();
|
|
3155
3155
|
},
|
|
@@ -3210,9 +3210,9 @@ var xn = bn, Sn = { class: "me-tree-menu-edit__scroll" }, Cn = { class: "me-tree
|
|
|
3210
3210
|
"expanded-keys": v.value,
|
|
3211
3211
|
"selected-keys": b.value,
|
|
3212
3212
|
"onUpdate:expandedKeys": C,
|
|
3213
|
-
onSelect:
|
|
3214
|
-
onRightClick:
|
|
3215
|
-
onDrop:
|
|
3213
|
+
onSelect: G,
|
|
3214
|
+
onRightClick: te,
|
|
3215
|
+
onDrop: K
|
|
3216
3216
|
}, {
|
|
3217
3217
|
titleRender: L((e) => [s("div", jn, [s("div", Mn, [D(t.$slots, "label", { data: e }, () => [u(tn, {
|
|
3218
3218
|
actions: h.value,
|
|
@@ -3226,7 +3226,7 @@ var xn = bn, Sn = { class: "me-tree-menu-edit__scroll" }, Cn = { class: "me-tree
|
|
|
3226
3226
|
trigger: ["click"],
|
|
3227
3227
|
placement: "bottomRight",
|
|
3228
3228
|
class: "me-tree-menu__node-more",
|
|
3229
|
-
menu:
|
|
3229
|
+
menu: W(e),
|
|
3230
3230
|
onClick: n[2] ||= z(() => {}, ["stop"])
|
|
3231
3231
|
}, {
|
|
3232
3232
|
default: L(() => [u(M(Ne), {
|
|
@@ -7282,7 +7282,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
7282
7282
|
})(e);
|
|
7283
7283
|
}
|
|
7284
7284
|
n.r(t), n.d(t, { treeModeMixins: function() {
|
|
7285
|
-
return
|
|
7285
|
+
return ne;
|
|
7286
7286
|
} });
|
|
7287
7287
|
function i(e) {
|
|
7288
7288
|
return c(e) ? e : String(e);
|
|
@@ -9314,7 +9314,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
9314
9314
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9315
9315
|
})(e);
|
|
9316
9316
|
}
|
|
9317
|
-
function
|
|
9317
|
+
function ee(e, t) {
|
|
9318
9318
|
for (var n = 0; n < t.length; n++) {
|
|
9319
9319
|
var r = t[n];
|
|
9320
9320
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ((e) => (e = ((e, t) => {
|
|
@@ -9326,7 +9326,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
9326
9326
|
})(e, "string"), H(e) == "symbol" ? e : e + ""))(r.key), r);
|
|
9327
9327
|
}
|
|
9328
9328
|
}
|
|
9329
|
-
var
|
|
9329
|
+
var U = (() => {
|
|
9330
9330
|
function e(t) {
|
|
9331
9331
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function");
|
|
9332
9332
|
function n(e) {
|
|
@@ -9540,29 +9540,29 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
9540
9540
|
this.editor = null, this.history = [], this.index = -1;
|
|
9541
9541
|
}
|
|
9542
9542
|
}
|
|
9543
|
-
]) &&
|
|
9543
|
+
]) && ee(t.prototype, n), r && ee(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9544
9544
|
var t, n, r;
|
|
9545
9545
|
})();
|
|
9546
|
-
function
|
|
9547
|
-
return (
|
|
9546
|
+
function W(e) {
|
|
9547
|
+
return (W = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9548
9548
|
return typeof e;
|
|
9549
9549
|
} : function(e) {
|
|
9550
9550
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9551
9551
|
})(e);
|
|
9552
9552
|
}
|
|
9553
|
-
function
|
|
9553
|
+
function te(e, t) {
|
|
9554
9554
|
for (var n = 0; n < t.length; n++) {
|
|
9555
9555
|
var r = t[n];
|
|
9556
9556
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ((e) => (e = ((e, t) => {
|
|
9557
|
-
if (
|
|
9557
|
+
if (W(e) != "object" || !e) return e;
|
|
9558
9558
|
var n = e[Symbol.toPrimitive];
|
|
9559
9559
|
if (n === void 0) return (t === "string" ? String : Number)(e);
|
|
9560
|
-
if (
|
|
9560
|
+
if (W(n = n.call(e, t || "default")) != "object") return n;
|
|
9561
9561
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
9562
|
-
})(e, "string"),
|
|
9562
|
+
})(e, "string"), W(e) == "symbol" ? e : e + ""))(r.key), r);
|
|
9563
9563
|
}
|
|
9564
9564
|
}
|
|
9565
|
-
var
|
|
9565
|
+
var G = (() => {
|
|
9566
9566
|
function e(t, n) {
|
|
9567
9567
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function");
|
|
9568
9568
|
var r = this, t = (this.editor = t, this.timeout = void 0, this.delay = 200, this.lastText = void 0, this.results = null, this.dom = {}, this.dom.container = n, document.createElement("div")), n = ((this.dom.wrapper = t).className = "jsoneditor-search", n.appendChild(t), document.createElement("div")), n = ((this.dom.results = n).className = "jsoneditor-results", t.appendChild(n), document.createElement("div")), t = ((this.dom.input = n).className = "jsoneditor-frame", n.title = (0, _.Tl)("searchTitle"), t.appendChild(n), document.createElement("button")), i = (t.type = "button", t.className = "jsoneditor-refresh", n.appendChild(t), document.createElement("input")), t = (i.type = "text", (this.dom.search = i).oninput = function(e) {
|
|
@@ -9678,29 +9678,29 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
9678
9678
|
this.editor = null, this.dom.container.removeChild(this.dom.wrapper), this.dom = null, this.results = null, this.activeResult = null, this._clearDelay();
|
|
9679
9679
|
}
|
|
9680
9680
|
}
|
|
9681
|
-
]) &&
|
|
9681
|
+
]) && te(t.prototype, n), r && te(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9682
9682
|
var t, n, r;
|
|
9683
9683
|
})();
|
|
9684
|
-
function
|
|
9685
|
-
return (
|
|
9684
|
+
function K(e) {
|
|
9685
|
+
return (K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9686
9686
|
return typeof e;
|
|
9687
9687
|
} : function(e) {
|
|
9688
9688
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9689
9689
|
})(e);
|
|
9690
9690
|
}
|
|
9691
|
-
function
|
|
9691
|
+
function q(e, t) {
|
|
9692
9692
|
for (var n = 0; n < t.length; n++) {
|
|
9693
9693
|
var r = t[n];
|
|
9694
9694
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ((e) => (e = ((e, t) => {
|
|
9695
|
-
if (
|
|
9695
|
+
if (K(e) != "object" || !e) return e;
|
|
9696
9696
|
var n = e[Symbol.toPrimitive];
|
|
9697
9697
|
if (n === void 0) return (t === "string" ? String : Number)(e);
|
|
9698
|
-
if (
|
|
9698
|
+
if (K(n = n.call(e, t || "default")) != "object") return n;
|
|
9699
9699
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
9700
|
-
})(e, "string"),
|
|
9700
|
+
})(e, "string"), K(e) == "symbol" ? e : e + ""))(r.key), r);
|
|
9701
9701
|
}
|
|
9702
9702
|
}
|
|
9703
|
-
var
|
|
9703
|
+
var J = (() => {
|
|
9704
9704
|
function e(t, n) {
|
|
9705
9705
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function");
|
|
9706
9706
|
t && (this.root = n, this.path = document.createElement("div"), this.path.className = "jsoneditor-treepath", this.path.setAttribute("tabindex", 0), this.contentMenuClicked = !1, t.appendChild(this.path), this.reset());
|
|
@@ -9752,12 +9752,12 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
9752
9752
|
typeof e == "function" && (this.contextMenuCallback = e);
|
|
9753
9753
|
}
|
|
9754
9754
|
}
|
|
9755
|
-
]) &&
|
|
9755
|
+
]) && q(t.prototype, n), r && q(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9756
9756
|
var t, n, r;
|
|
9757
|
-
})(), t = n(1746),
|
|
9757
|
+
})(), t = n(1746), Y = n.n(t), n = {
|
|
9758
9758
|
create: function(e, t) {
|
|
9759
9759
|
if (!e) throw Error("No container element provided.");
|
|
9760
|
-
this.container = e, this.dom = {}, this.highlighter = new g(), this.selection = void 0, this.multiselection = { nodes: [] }, this.validateSchema = null, this.validationSequence = 0, this.errorNodes = [], this.lastSchemaErrors = void 0, this.node = null, this.focusTarget = null, this._setOptions(t), t.autocomplete && (this.autocomplete = d(t.autocomplete)), this.options.history && this.options.mode !== "view" && (this.history = new
|
|
9760
|
+
this.container = e, this.dom = {}, this.highlighter = new g(), this.selection = void 0, this.multiselection = { nodes: [] }, this.validateSchema = null, this.validationSequence = 0, this.errorNodes = [], this.lastSchemaErrors = void 0, this.node = null, this.focusTarget = null, this._setOptions(t), t.autocomplete && (this.autocomplete = d(t.autocomplete)), this.options.history && this.options.mode !== "view" && (this.history = new U(this)), this._createFrame(), this._createTable();
|
|
9761
9761
|
},
|
|
9762
9762
|
destroy: function() {
|
|
9763
9763
|
this.frame && this.container && this.frame.parentNode === this.container && (this.container.removeChild(this.frame), this.frame = null), this.container = null, this.dom = null, this.clear(), this.node = null, this.focusTarget = null, this.selection = null, this.multiselection = null, this.errorNodes = null, this.validateSchema = null, this._debouncedValidate = null, this.history &&= (this.history.destroy(), null), this.searchBox &&= (this.searchBox.destroy(), null), this.modeSwitcher &&= (this.modeSwitcher.destroy(), null), this.frameFocusTracker.destroy();
|
|
@@ -9779,7 +9779,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
9779
9779
|
colorPicker: !0,
|
|
9780
9780
|
onColorPicker: function(e, t, n) {
|
|
9781
9781
|
var r;
|
|
9782
|
-
|
|
9782
|
+
Y() ? (r = e.getBoundingClientRect().top, r = (0, S.getWindow)(e).innerHeight - r < 300 && 300 < r, new (Y())({
|
|
9783
9783
|
parent: e,
|
|
9784
9784
|
color: t,
|
|
9785
9785
|
popup: r ? "top" : "bottom",
|
|
@@ -10054,7 +10054,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10054
10054
|
} catch (e) {
|
|
10055
10055
|
a._onError(e);
|
|
10056
10056
|
}
|
|
10057
|
-
})), this.options.search) && (this.searchBox = new
|
|
10057
|
+
})), this.options.search) && (this.searchBox = new G(this, this.menu)), this.options.navigationBar && (this.navBar = document.createElement("div"), this.navBar.className = "jsoneditor-navigation-bar nav-bar-empty", this.frame.appendChild(this.navBar), this.treePath = new J(this.navBar, this.getPopupAnchor()), this.treePath.onSectionSelected(this._onTreePathSectionSelected.bind(this)), this.treePath.onContextMenuItemSelected(this._onTreePathMenuItemSelected.bind(this)));
|
|
10058
10058
|
},
|
|
10059
10059
|
_onUndo: function() {
|
|
10060
10060
|
this.history && (this.history.undo(), this._onChange());
|
|
@@ -10239,7 +10239,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10239
10239
|
n.push(e.serialize());
|
|
10240
10240
|
}), n;
|
|
10241
10241
|
}
|
|
10242
|
-
},
|
|
10242
|
+
}, ne = [
|
|
10243
10243
|
{
|
|
10244
10244
|
mode: "tree",
|
|
10245
10245
|
mixin: n,
|
|
@@ -10288,13 +10288,13 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10288
10288
|
return v;
|
|
10289
10289
|
},
|
|
10290
10290
|
compileJSONPointer: function() {
|
|
10291
|
-
return
|
|
10291
|
+
return Q;
|
|
10292
10292
|
},
|
|
10293
10293
|
contains: function() {
|
|
10294
10294
|
return ge;
|
|
10295
10295
|
},
|
|
10296
10296
|
debounce: function() {
|
|
10297
|
-
return
|
|
10297
|
+
return Y;
|
|
10298
10298
|
},
|
|
10299
10299
|
escapeUnicodeChars: function() {
|
|
10300
10300
|
return h;
|
|
@@ -10321,22 +10321,22 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10321
10321
|
return ce;
|
|
10322
10322
|
},
|
|
10323
10323
|
getColorCSS: function() {
|
|
10324
|
-
return
|
|
10324
|
+
return $;
|
|
10325
10325
|
},
|
|
10326
10326
|
getIndexForPosition: function() {
|
|
10327
|
-
return
|
|
10327
|
+
return X;
|
|
10328
10328
|
},
|
|
10329
10329
|
getInnerText: function() {
|
|
10330
10330
|
return I;
|
|
10331
10331
|
},
|
|
10332
10332
|
getInputSelection: function() {
|
|
10333
|
-
return
|
|
10333
|
+
return re;
|
|
10334
10334
|
},
|
|
10335
10335
|
getInternetExplorerVersion: function() {
|
|
10336
10336
|
return z;
|
|
10337
10337
|
},
|
|
10338
10338
|
getPositionForPath: function() {
|
|
10339
|
-
return
|
|
10339
|
+
return Z;
|
|
10340
10340
|
},
|
|
10341
10341
|
getSelection: function() {
|
|
10342
10342
|
return M;
|
|
@@ -10354,16 +10354,16 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10354
10354
|
return R;
|
|
10355
10355
|
},
|
|
10356
10356
|
improveSchemaError: function() {
|
|
10357
|
-
return
|
|
10357
|
+
return G;
|
|
10358
10358
|
},
|
|
10359
10359
|
insideRect: function() {
|
|
10360
|
-
return
|
|
10360
|
+
return J;
|
|
10361
10361
|
},
|
|
10362
10362
|
isArray: function() {
|
|
10363
10363
|
return S;
|
|
10364
10364
|
},
|
|
10365
10365
|
isChildOf: function() {
|
|
10366
|
-
return
|
|
10366
|
+
return U;
|
|
10367
10367
|
},
|
|
10368
10368
|
isFirefox: function() {
|
|
10369
10369
|
return V;
|
|
@@ -10372,7 +10372,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10372
10372
|
return he;
|
|
10373
10373
|
},
|
|
10374
10374
|
isPromise: function() {
|
|
10375
|
-
return
|
|
10375
|
+
return K;
|
|
10376
10376
|
},
|
|
10377
10377
|
isTimestamp: function() {
|
|
10378
10378
|
return fe;
|
|
@@ -10384,7 +10384,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10384
10384
|
return ie;
|
|
10385
10385
|
},
|
|
10386
10386
|
isValidValidationError: function() {
|
|
10387
|
-
return
|
|
10387
|
+
return q;
|
|
10388
10388
|
},
|
|
10389
10389
|
isValidationErrorChanged: function() {
|
|
10390
10390
|
return _e;
|
|
@@ -10399,7 +10399,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10399
10399
|
return p;
|
|
10400
10400
|
},
|
|
10401
10401
|
parsePath: function() {
|
|
10402
|
-
return
|
|
10402
|
+
return W;
|
|
10403
10403
|
},
|
|
10404
10404
|
parseString: function() {
|
|
10405
10405
|
return de;
|
|
@@ -10411,7 +10411,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10411
10411
|
return O;
|
|
10412
10412
|
},
|
|
10413
10413
|
removeEventListener: function() {
|
|
10414
|
-
return
|
|
10414
|
+
return ee;
|
|
10415
10415
|
},
|
|
10416
10416
|
removeReturnsAndSurroundingWhitespace: function() {
|
|
10417
10417
|
return L;
|
|
@@ -10435,13 +10435,13 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10435
10435
|
return ue;
|
|
10436
10436
|
},
|
|
10437
10437
|
stringifyPath: function() {
|
|
10438
|
-
return
|
|
10438
|
+
return te;
|
|
10439
10439
|
},
|
|
10440
10440
|
stripFormatting: function() {
|
|
10441
10441
|
return k;
|
|
10442
10442
|
},
|
|
10443
10443
|
textDiff: function() {
|
|
10444
|
-
return
|
|
10444
|
+
return ne;
|
|
10445
10445
|
},
|
|
10446
10446
|
tryJsonRepair: function() {
|
|
10447
10447
|
return m;
|
|
@@ -10626,17 +10626,17 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10626
10626
|
return n.call(e, window.event);
|
|
10627
10627
|
}), r) : void 0;
|
|
10628
10628
|
}
|
|
10629
|
-
function
|
|
10629
|
+
function ee(e, t, n, r) {
|
|
10630
10630
|
e.removeEventListener ? (r === void 0 && (r = !1), t === "mousewheel" && V() && (t = "DOMMouseScroll"), e.removeEventListener(t, n, r)) : e.detachEvent && e.detachEvent("on" + t, n);
|
|
10631
10631
|
}
|
|
10632
|
-
function
|
|
10632
|
+
function U(e, t) {
|
|
10633
10633
|
for (var n = e.parentNode; n;) {
|
|
10634
10634
|
if (n === t) return !0;
|
|
10635
10635
|
n = n.parentNode;
|
|
10636
10636
|
}
|
|
10637
10637
|
return !1;
|
|
10638
10638
|
}
|
|
10639
|
-
function
|
|
10639
|
+
function W(e) {
|
|
10640
10640
|
var t = [], n = 0;
|
|
10641
10641
|
function r(t) {
|
|
10642
10642
|
for (var r = ""; e[n] !== void 0 && e[n] !== t;) r += e[n], n++;
|
|
@@ -10663,27 +10663,27 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10663
10663
|
}
|
|
10664
10664
|
return t;
|
|
10665
10665
|
}
|
|
10666
|
-
function
|
|
10666
|
+
function te(e) {
|
|
10667
10667
|
return e.map(function(e) {
|
|
10668
10668
|
return typeof e == "number" ? "[" + e + "]" : typeof e == "string" && e.match(/^[A-Za-z0-9_$]+$/) ? "." + e : "[\"" + e + "\"]";
|
|
10669
10669
|
}).join("");
|
|
10670
10670
|
}
|
|
10671
|
-
function
|
|
10671
|
+
function G(e) {
|
|
10672
10672
|
var t, n;
|
|
10673
10673
|
return e.keyword === "enum" && Array.isArray(e.schema) && (n = e.schema) && (5 < (n = n.map(function(e) {
|
|
10674
10674
|
return JSON.stringify(e);
|
|
10675
10675
|
})).length && (t = ["(" + (n.length - 5) + " more...)"], (n = n.slice(0, 5)).push(t)), e.message = "should be equal to one of: " + n.join(", ")), e.keyword === "additionalProperties" && (e.message = "should NOT have additional property: " + e.params.additionalProperty), e;
|
|
10676
10676
|
}
|
|
10677
|
-
function
|
|
10677
|
+
function K(e) {
|
|
10678
10678
|
return e && typeof e.then == "function" && typeof e.catch == "function";
|
|
10679
10679
|
}
|
|
10680
|
-
function
|
|
10680
|
+
function q(e) {
|
|
10681
10681
|
return u(e) === "object" && Array.isArray(e.path) && typeof e.message == "string";
|
|
10682
10682
|
}
|
|
10683
|
-
function
|
|
10683
|
+
function J(e, t, n) {
|
|
10684
10684
|
return n = n === void 0 ? 0 : n, t.left - n >= e.left && t.right + n <= e.right && t.top - n >= e.top && t.bottom + n <= e.bottom;
|
|
10685
10685
|
}
|
|
10686
|
-
function
|
|
10686
|
+
function Y(e, t, n) {
|
|
10687
10687
|
var r;
|
|
10688
10688
|
return function() {
|
|
10689
10689
|
var i = this, a = arguments, o = n && !r;
|
|
@@ -10692,7 +10692,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10692
10692
|
}, t), o && e.apply(i, a);
|
|
10693
10693
|
};
|
|
10694
10694
|
}
|
|
10695
|
-
function
|
|
10695
|
+
function ne(e, t) {
|
|
10696
10696
|
for (var n = t.length, r = 0, i = e.length, a = t.length; t.charAt(r) === e.charAt(r) && r < n;) r++;
|
|
10697
10697
|
for (; t.charAt(a - 1) === e.charAt(i - 1) && r < a && 0 < i;) a--, i--;
|
|
10698
10698
|
return {
|
|
@@ -10700,7 +10700,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10700
10700
|
end: a
|
|
10701
10701
|
};
|
|
10702
10702
|
}
|
|
10703
|
-
function
|
|
10703
|
+
function re(e) {
|
|
10704
10704
|
var t, n, r, i, a = 0, o = 0;
|
|
10705
10705
|
return typeof e.selectionStart == "number" && typeof e.selectionEnd == "number" ? (a = e.selectionStart, o = e.selectionEnd) : (i = document.selection.createRange()) && i.parentElement() === e && (r = e.value.length, t = e.value.replace(/\r\n/g, "\n"), (n = e.createTextRange()).moveToBookmark(i.getBookmark()), (i = e.createTextRange()).collapse(!1), -1 < n.compareEndPoints("StartToEnd", i) ? a = o = r : (a = -n.moveStart("character", -r), a += t.slice(0, a).split("\n").length - 1, -1 < n.compareEndPoints("EndToEnd", i) ? o = r : (o = -n.moveEnd("character", -r), o += t.slice(0, o).split("\n").length - 1))), {
|
|
10706
10706
|
startIndex: a,
|
|
@@ -10715,11 +10715,11 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10715
10715
|
};
|
|
10716
10716
|
}
|
|
10717
10717
|
}
|
|
10718
|
-
function
|
|
10718
|
+
function X(e, t, n) {
|
|
10719
10719
|
var e = e.value || "";
|
|
10720
10720
|
return 0 < t && 0 < n ? (e = e.split("\n", t), t = Math.min(e.length, t), n = Math.min(e[t - 1].length, n - 1), n = t === 1 ? n : n + 1, e.slice(0, t - 1).join("\n").length + n) : -1;
|
|
10721
10721
|
}
|
|
10722
|
-
function
|
|
10722
|
+
function Z(e, t) {
|
|
10723
10723
|
var n, r = [];
|
|
10724
10724
|
if (t && t.length) {
|
|
10725
10725
|
try {
|
|
@@ -10728,7 +10728,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10728
10728
|
return r;
|
|
10729
10729
|
}
|
|
10730
10730
|
t.forEach(function(e) {
|
|
10731
|
-
var t =
|
|
10731
|
+
var t = Q(W(e)), t = n.pointers[t];
|
|
10732
10732
|
t && r.push({
|
|
10733
10733
|
path: e,
|
|
10734
10734
|
line: t.key ? t.key.line : t.value ? t.value.line : 0,
|
|
@@ -10738,17 +10738,17 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10738
10738
|
}
|
|
10739
10739
|
return r;
|
|
10740
10740
|
}
|
|
10741
|
-
function
|
|
10741
|
+
function Q(e) {
|
|
10742
10742
|
return e.map(function(e) {
|
|
10743
10743
|
return "/" + String(e).replace(/~/g, "~0").replace(/\//g, "~1");
|
|
10744
10744
|
}).join("");
|
|
10745
10745
|
}
|
|
10746
|
-
function
|
|
10746
|
+
function $(e) {
|
|
10747
10747
|
var t = document.createElement("div");
|
|
10748
10748
|
return t.style.color = e, t.style.color.split(/\s+/).join("").toLowerCase() || null;
|
|
10749
10749
|
}
|
|
10750
10750
|
function ie(e) {
|
|
10751
|
-
return
|
|
10751
|
+
return !!$(e);
|
|
10752
10752
|
}
|
|
10753
10753
|
function ae(e, t) {
|
|
10754
10754
|
var n;
|
|
@@ -10776,7 +10776,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
10776
10776
|
return Object.keys(n).sort();
|
|
10777
10777
|
}
|
|
10778
10778
|
function le(e, t, n) {
|
|
10779
|
-
var r = t && t !== "." ?
|
|
10779
|
+
var r = t && t !== "." ? W(t) : [], i = n === "desc" ? -1 : 1, t = e.slice();
|
|
10780
10780
|
return t.sort(function(e, t) {
|
|
10781
10781
|
return e = oe(e, r), t = oe(t, r), i * (t < e ? 1 : e < t ? -1 : 0);
|
|
10782
10782
|
}), t;
|
|
@@ -24873,25 +24873,25 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
24873
24873
|
}
|
|
24874
24874
|
if (x.length) {
|
|
24875
24875
|
var F = x;
|
|
24876
|
-
if (F) for (var I = -1, L = F.length - 1; I < L;)
|
|
24876
|
+
if (F) for (var I = -1, L = F.length - 1; I < L;) ne = F[I += 1], i += " || " + e.usePattern(ne) + ".test(" + h + ") ";
|
|
24877
24877
|
}
|
|
24878
24878
|
i += " ); if (isAdditional" + a + ") { ";
|
|
24879
24879
|
}
|
|
24880
|
-
E == "all" ? i += " delete " + d + "[" + h + "]; " : (
|
|
24880
|
+
E == "all" ? i += " delete " + d + "[" + h + "]; " : (W = e.errorPath, A = "' + " + h + " + '", e.opts._errorDataPathProperty && (e.errorPath = e.util.getPathExpr(e.errorPath, h, e.opts.jsonPointers)), w ? E ? i += " delete " + d + "[" + h + "]; " : (te = l, l = e.errSchemaPath + "/additionalProperties", (K ||= []).push(i += " " + m + " = false; "), i = "", !1 === e.createErrors ? i += " {} " : (i += " { keyword: 'additionalProperties' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(l) + " , params: { additionalProperty: '" + A + "' } ", !1 !== e.opts.messages && (i += " , message: '", e.opts._errorDataPathProperty ? i += "is an invalid additional property" : i += "should NOT have additional properties", i += "' "), e.opts.verbose && (i += " , schema: false , parentSchema: validate.schema" + e.schemaPath + " , data: " + d + " "), i += " } "), q = i, i = K.pop(), !e.compositeRule && u ? e.async ? i += " throw new ValidationError([" + q + "]); " : i += " validate.errors = [" + q + "]; return false; " : i += " var err = " + q + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", l = te, u && (i += " break; ")) : T && (E == "failing" ? (i += " var " + t + " = errors; ", D = e.compositeRule, e.compositeRule = f.compositeRule = !0, f.schema = S, f.schemaPath = e.schemaPath + ".additionalProperties", f.errSchemaPath = e.errSchemaPath + "/additionalProperties", f.errorPath = e.opts._errorDataPathProperty ? e.errorPath : e.util.getPathExpr(e.errorPath, h, e.opts.jsonPointers), Z = d + "[" + h + "]", f.dataPathArr[_] = h, Q = e.validate(f), f.baseId = k, e.util.varOccurences(Q, v) < 2 ? i += " " + e.util.varReplace(Q, v, Z) + " " : i += " var " + v + " = " + Z + "; " + Q + " ", i += " if (!" + m + ") { errors = " + t + "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete " + d + "[" + h + "]; } ", e.compositeRule = f.compositeRule = D) : (f.schema = S, f.schemaPath = e.schemaPath + ".additionalProperties", f.errSchemaPath = e.errSchemaPath + "/additionalProperties", f.errorPath = e.opts._errorDataPathProperty ? e.errorPath : e.util.getPathExpr(e.errorPath, h, e.opts.jsonPointers), Z = d + "[" + h + "]", f.dataPathArr[_] = h, Q = e.validate(f), f.baseId = k, e.util.varOccurences(Q, v) < 2 ? i += " " + e.util.varReplace(Q, v, Z) + " " : i += " var " + v + " = " + Z + "; " + Q + " ", u && (i += " if (!" + m + ") break; "))), e.errorPath = W), C && (i += " } "), i += " } ", u && (i += " if (" + m + ") { ", p += "}");
|
|
24881
24881
|
}
|
|
24882
24882
|
var R = e.opts.useDefaults && !e.compositeRule;
|
|
24883
24883
|
if (o.length) {
|
|
24884
24884
|
var z = o;
|
|
24885
24885
|
if (z) for (var B, V = -1, H = z.length - 1; V < H;) {
|
|
24886
|
-
var U, W,
|
|
24887
|
-
(e.opts.strictKeywords ? typeof
|
|
24886
|
+
var ee, U, W, te, G, K, q, J = s[B = z[V += 1]];
|
|
24887
|
+
(e.opts.strictKeywords ? typeof J == "object" && 0 < Object.keys(J).length || !1 === J : e.util.schemaHasRules(J, e.RULES.all)) && (Z = d + (G = e.util.getProperty(B)), ee = R && J.default !== void 0, f.schema = J, f.schemaPath = c + G, f.errSchemaPath = l + "/" + e.util.escapeFragment(B), f.errorPath = e.util.getPath(e.errorPath, B, e.opts.jsonPointers), f.dataPathArr[_] = e.util.toQuotedString(B), Q = e.validate(f), f.baseId = k, e.util.varOccurences(Q, v) < 2 ? (Q = e.util.varReplace(Q, v, Z), U = Z) : i += " var " + (U = v) + " = " + Z + "; ", ee ? i += " " + Q + " " : (r && r[B] ? (i += " if ( " + U + " === undefined ", O && (i += " || ! Object.prototype.hasOwnProperty.call(" + d + ", '" + e.util.escapeQuotes(B) + "') "), i += ") { " + m + " = false; ", W = e.errorPath, te = l, G = e.util.escapeQuotes(B), e.opts._errorDataPathProperty && (e.errorPath = e.util.getPath(W, B, e.opts.jsonPointers)), l = e.errSchemaPath + "/required", (K ||= []).push(i), i = "", !1 === e.createErrors ? i += " {} " : (i += " { keyword: 'required' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(l) + " , params: { missingProperty: '" + G + "' } ", !1 !== e.opts.messages && (i += " , message: '", e.opts._errorDataPathProperty ? i += "is a required property" : i += "should have required property \\'" + G + "\\'", i += "' "), e.opts.verbose && (i += " , schema: validate.schema" + c + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + d + " "), i += " } "), q = i, i = K.pop(), !e.compositeRule && u ? e.async ? i += " throw new ValidationError([" + q + "]); " : i += " validate.errors = [" + q + "]; return false; " : i += " var err = " + q + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", l = te, e.errorPath = W, i += " } else { ") : u ? (i += " if ( " + U + " === undefined ", O && (i += " || ! Object.prototype.hasOwnProperty.call(" + d + ", '" + e.util.escapeQuotes(B) + "') "), i += ") { " + m + " = true; } else { ") : (i += " if (" + U + " !== undefined ", O && (i += " && Object.prototype.hasOwnProperty.call(" + d + ", '" + e.util.escapeQuotes(B) + "') "), i += " ) { "), i += " " + Q + " } ")), u && (i += " if (" + m + ") { ", p += "}");
|
|
24888
24888
|
}
|
|
24889
24889
|
}
|
|
24890
24890
|
if (x.length) {
|
|
24891
|
-
var
|
|
24892
|
-
if (
|
|
24893
|
-
var Q,
|
|
24894
|
-
(e.opts.strictKeywords ? typeof
|
|
24891
|
+
var Y = x;
|
|
24892
|
+
if (Y) for (var ne, re = -1, X = Y.length - 1; re < X;) {
|
|
24893
|
+
var Z, Q, J = b[ne = Y[re += 1]];
|
|
24894
|
+
(e.opts.strictKeywords ? typeof J == "object" && 0 < Object.keys(J).length || !1 === J : e.util.schemaHasRules(J, e.RULES.all)) && (f.schema = J, f.schemaPath = e.schemaPath + ".patternProperties" + e.util.getProperty(ne), f.errSchemaPath = e.errSchemaPath + "/patternProperties/" + e.util.escapeFragment(ne), i = (i += O ? " " + y + " = " + y + " || Object.keys(" + d + "); for (var " + g + "=0; " + g + "<" + y + ".length; " + g + "++) { var " + h + " = " + y + "[" + g + "]; " : " for (var " + h + " in " + d + ") { ") + " if (" + e.usePattern(ne) + ".test(" + h + ")) { ", f.errorPath = e.util.getPathExpr(e.errorPath, h, e.opts.jsonPointers), Z = d + "[" + h + "]", f.dataPathArr[_] = h, Q = e.validate(f), f.baseId = k, e.util.varOccurences(Q, v) < 2 ? i += " " + e.util.varReplace(Q, v, Z) + " " : i += " var " + v + " = " + Z + "; " + Q + " ", u && (i += " if (!" + m + ") break; "), i += " } ", u && (i += " else " + m + " = true; "), i += " } ", u) && (i += " if (" + m + ") { ", p += "}");
|
|
24895
24895
|
}
|
|
24896
24896
|
}
|
|
24897
24897
|
return u && (i += " " + p + " if (" + t + " == errors) {"), i;
|
|
@@ -25013,7 +25013,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
25013
25013
|
if (e.schema.$comment && e.opts.$comment && (r += " " + e.RULES.all.$comment.code(e, "$comment")), _) {
|
|
25014
25014
|
e.opts.coerceTypes && (y = e.util.coerceToTypes(e.opts.coerceTypes, _));
|
|
25015
25015
|
var y, b = e.RULES.types[_];
|
|
25016
|
-
if (y || v || !0 === b || b && !
|
|
25016
|
+
if (y || v || !0 === b || b && !G(b)) {
|
|
25017
25017
|
var x = e.schemaPath + ".type", S = e.errSchemaPath + "/type", x = e.schemaPath + ".type", S = e.errSchemaPath + "/type";
|
|
25018
25018
|
if (r += " if (" + e.util[v ? "checkDataTypes" : "checkDataType"](_, d, e.opts.strictNumbers, !0) + ") { ", y) {
|
|
25019
25019
|
var C = "dataType" + l, w = "coerced" + l, T = (r += " var " + C + " = typeof " + d + "; var " + w + " = undefined; ", e.opts.coerceTypes == "array" && (r += " if (" + C + " == 'object' && Array.isArray(" + d + ") && " + d + ".length == 1) { " + d + " = " + d + "[0]; " + C + " = typeof " + d + "; if (" + e.util.checkDataType(e.schema.type, d, e.opts.strictNumbers) + ") " + w + " = " + d + "; } "), r += " if (" + w + " !== undefined) ; ", y);
|
|
@@ -25029,7 +25029,7 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
25029
25029
|
else {
|
|
25030
25030
|
var A = e.RULES;
|
|
25031
25031
|
if (A) {
|
|
25032
|
-
for (var j = -1, M = A.length - 1; j < M;) if (
|
|
25032
|
+
for (var j = -1, M = A.length - 1; j < M;) if (G(b = A[j += 1])) {
|
|
25033
25033
|
if (b.type && (r += " if (" + e.util.checkDataType(b.type, d, e.opts.strictNumbers) + ") { "), e.opts.useDefaults) {
|
|
25034
25034
|
if (b.type == "object" && e.schema.properties) {
|
|
25035
25035
|
var N = e.schema.properties, P = Object.keys(N);
|
|
@@ -25058,8 +25058,8 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
25058
25058
|
}
|
|
25059
25059
|
}
|
|
25060
25060
|
}
|
|
25061
|
-
var H,
|
|
25062
|
-
if (
|
|
25061
|
+
var H, ee = b.rules;
|
|
25062
|
+
if (ee) for (var U, W = -1, te = ee.length - 1; W < te;) K(U = ee[W += 1]) && (U = U.code(e, U.keyword, b.type)) && (r += " " + U + " ", m) && (h += "}");
|
|
25063
25063
|
m && (r += " " + h + " ", h = ""), b.type && (r += " } ", _) && _ === b.type && !y && (r += " else { ", x = e.schemaPath + ".type", S = e.errSchemaPath + "/type", (H ||= []).push(r), r = "", !1 === e.createErrors ? r += " {} " : (r = (r += " { keyword: 'type' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(S) + " , params: { type: '") + (v ? "" + _.join(",") : "" + _) + "' } ", !1 !== e.opts.messages && (r = (r += " , message: 'should be ") + (v ? "" + _.join(",") : "" + _) + "' "), e.opts.verbose && (r += " , schema: validate.schema" + x + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + d + " "), r += " } "), k = r, r = H.pop(), !e.compositeRule && m ? e.async ? r += " throw new ValidationError([" + k + "]); " : r += " validate.errors = [" + k + "]; return false; " : r += " var err = " + k + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " } "), m && (r = (r += " if (errors === ") + (c ? "0" : "errs_" + l) + ") { ", g += "}");
|
|
25064
25064
|
}
|
|
25065
25065
|
}
|
|
@@ -25067,10 +25067,10 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
25067
25067
|
m && (r += " " + g + " "), c ? r = r + (i ? " if (errors === 0) return data; else throw new ValidationError(vErrors); " : " validate.errors = vErrors; return errors === 0; ") + " }; return validate;" : r += " var " + p + " = errors === errs_" + l + ";";
|
|
25068
25068
|
}
|
|
25069
25069
|
return r;
|
|
25070
|
-
function
|
|
25071
|
-
for (var t = e.rules, n = 0; n < t.length; n++) if (
|
|
25070
|
+
function G(e) {
|
|
25071
|
+
for (var t = e.rules, n = 0; n < t.length; n++) if (K(t[n])) return 1;
|
|
25072
25072
|
}
|
|
25073
|
-
function
|
|
25073
|
+
function K(t) {
|
|
25074
25074
|
return e.schema[t.keyword] !== void 0 || t.implements && ((t) => {
|
|
25075
25075
|
for (var n = t.implements, r = 0; r < n.length; r++) if (e.schema[n[r]] !== void 0) return 1;
|
|
25076
25076
|
})(t);
|
|
@@ -26901,20 +26901,20 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
26901
26901
|
} else n.error = n.error || "URI can not be parsed.";
|
|
26902
26902
|
return n;
|
|
26903
26903
|
}
|
|
26904
|
-
var B = /^\.\.?\//, V = /^\/\.(\/|$)/, H = /^\/\.\.(\/|$)/,
|
|
26905
|
-
function
|
|
26904
|
+
var B = /^\.\.?\//, V = /^\/\.(\/|$)/, H = /^\/\.\.(\/|$)/, ee = /^\/?(?:.|\n)*?(?=\/|$)/;
|
|
26905
|
+
function U(e) {
|
|
26906
26906
|
for (var t = []; e.length;) if (e.match(B)) e = e.replace(B, "");
|
|
26907
26907
|
else if (e.match(V)) e = e.replace(V, "/");
|
|
26908
26908
|
else if (e.match(H)) e = e.replace(H, "/"), t.pop();
|
|
26909
26909
|
else if (e === "." || e === "..") e = "";
|
|
26910
26910
|
else {
|
|
26911
|
-
var n = e.match(
|
|
26911
|
+
var n = e.match(ee);
|
|
26912
26912
|
if (!n) throw Error("Unexpected dot segment condition");
|
|
26913
26913
|
n = n[0], e = e.slice(n.length), t.push(n);
|
|
26914
26914
|
}
|
|
26915
26915
|
return t.join("");
|
|
26916
26916
|
}
|
|
26917
|
-
function
|
|
26917
|
+
function W(e) {
|
|
26918
26918
|
var t = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : {}, n = t.iri ? s : o, r = [], i = A[(t.scheme || e.scheme || "").toLowerCase()];
|
|
26919
26919
|
if (i && i.serialize && i.serialize(e, t), e.host && !n.IPV6ADDRESS.test(e.host) && (t.domainHost || i && i.domainHost)) try {
|
|
26920
26920
|
e.host = t.iri ? k(e.host) : O(e.host.replace(n.PCT_ENCODED, M).toLowerCase());
|
|
@@ -26925,16 +26925,16 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
26925
26925
|
return "[" + t + (n ? "%25" + n : "") + "]";
|
|
26926
26926
|
})), typeof n.port != "number" && typeof n.port != "string" || (a.push(":"), a.push(String(n.port)));
|
|
26927
26927
|
var a, c = a.length ? a.join("") : void 0;
|
|
26928
|
-
return c !== void 0 && (t.reference !== "suffix" && r.push("//"), r.push(c), e.path) && e.path.charAt(0) !== "/" && r.push("/"), e.path !== void 0 && (n = e.path, t.absolutePath || i && i.absolutePath || (n =
|
|
26928
|
+
return c !== void 0 && (t.reference !== "suffix" && r.push("//"), r.push(c), e.path) && e.path.charAt(0) !== "/" && r.push("/"), e.path !== void 0 && (n = e.path, t.absolutePath || i && i.absolutePath || (n = U(n)), c === void 0 && (n = n.replace(/^\/\//, "/%2F")), r.push(n)), e.query !== void 0 && (r.push("?"), r.push(e.query)), e.fragment !== void 0 && (r.push("#"), r.push(e.fragment)), r.join("");
|
|
26929
26929
|
}
|
|
26930
|
-
function
|
|
26930
|
+
function te(e, t) {
|
|
26931
26931
|
var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {}, r = {};
|
|
26932
|
-
return arguments[3] || (e = z(
|
|
26932
|
+
return arguments[3] || (e = z(W(e, n), n), t = z(W(t, n), n)), !(n || {}).tolerant && t.scheme ? (r.scheme = t.scheme, r.userinfo = t.userinfo, r.host = t.host, r.port = t.port, r.path = U(t.path || ""), r.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (r.userinfo = t.userinfo, r.host = t.host, r.port = t.port, r.path = U(t.path || ""), r.query = t.query) : (t.path ? (t.path.charAt(0) === "/" ? r.path = U(t.path) : (r.path = e.userinfo === void 0 && e.host === void 0 && e.port === void 0 || e.path ? e.path ? e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : t.path : "/" + t.path, r.path = U(r.path)), r.query = t.query) : (r.path = e.path, r.query = t.query === void 0 ? e.query : t.query), r.userinfo = e.userinfo, r.host = e.host, r.port = e.port), r.scheme = e.scheme), r.fragment = t.fragment, r;
|
|
26933
26933
|
}
|
|
26934
|
-
function
|
|
26934
|
+
function G(e, t) {
|
|
26935
26935
|
return e && e.toString().replace((t && t.iri ? s : o).PCT_ENCODED, M);
|
|
26936
26936
|
}
|
|
26937
|
-
var
|
|
26937
|
+
var K = {
|
|
26938
26938
|
scheme: "http",
|
|
26939
26939
|
domainHost: !0,
|
|
26940
26940
|
parse: function(e, t) {
|
|
@@ -26944,36 +26944,36 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
26944
26944
|
var n = String(e.scheme).toLowerCase() === "https";
|
|
26945
26945
|
return e.port !== (n ? 443 : 80) && e.port !== "" || (e.port = void 0), e.path ||= "/", e;
|
|
26946
26946
|
}
|
|
26947
|
-
},
|
|
26947
|
+
}, q = {
|
|
26948
26948
|
scheme: "https",
|
|
26949
|
-
domainHost:
|
|
26950
|
-
parse:
|
|
26951
|
-
serialize:
|
|
26949
|
+
domainHost: K.domainHost,
|
|
26950
|
+
parse: K.parse,
|
|
26951
|
+
serialize: K.serialize
|
|
26952
26952
|
};
|
|
26953
|
-
function
|
|
26953
|
+
function J(e) {
|
|
26954
26954
|
return typeof e.secure == "boolean" ? e.secure : String(e.scheme).toLowerCase() === "wss";
|
|
26955
26955
|
}
|
|
26956
|
-
var
|
|
26956
|
+
var Y = {
|
|
26957
26957
|
scheme: "ws",
|
|
26958
26958
|
domainHost: !0,
|
|
26959
26959
|
parse: function(e, t) {
|
|
26960
|
-
return e.secure =
|
|
26960
|
+
return e.secure = J(e), e.resourceName = (e.path || "/") + (e.query ? "?" + e.query : ""), e.path = void 0, e.query = void 0, e;
|
|
26961
26961
|
},
|
|
26962
26962
|
serialize: function(e, t) {
|
|
26963
26963
|
var n, r;
|
|
26964
|
-
return e.port !== (
|
|
26964
|
+
return e.port !== (J(e) ? 443 : 80) && e.port !== "" || (e.port = void 0), typeof e.secure == "boolean" && (e.scheme = e.secure ? "wss" : "ws", e.secure = void 0), e.resourceName &&= (r = e.resourceName.split("?"), n = (r = c(r, 2))[0], r = r[1], e.path = n && n !== "/" ? n : void 0, e.query = r, void 0), e.fragment = void 0, e;
|
|
26965
26965
|
}
|
|
26966
|
-
},
|
|
26966
|
+
}, ne = {
|
|
26967
26967
|
scheme: "wss",
|
|
26968
|
-
domainHost:
|
|
26969
|
-
parse:
|
|
26970
|
-
serialize:
|
|
26971
|
-
},
|
|
26968
|
+
domainHost: Y.domainHost,
|
|
26969
|
+
parse: Y.parse,
|
|
26970
|
+
serialize: Y.serialize
|
|
26971
|
+
}, re = {}, X = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", Z = t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", "[\\\"\\\\]"), Q = new RegExp(X, "g"), $ = /* @__PURE__ */ RegExp("(?:(?:%[EFef][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[89A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[0-9A-Fa-f][0-9A-Fa-f]))", "g"), ie = new RegExp(t("[^]", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "[\\.]", "[\\\"]", Z), "g"), ae = new RegExp(t("[^]", X, "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"), "g"), oe = ae;
|
|
26972
26972
|
function se(e) {
|
|
26973
26973
|
var t = M(e);
|
|
26974
|
-
return t.match(
|
|
26974
|
+
return t.match(Q) ? t : e;
|
|
26975
26975
|
}
|
|
26976
|
-
var
|
|
26976
|
+
var Z = {
|
|
26977
26977
|
scheme: "mailto",
|
|
26978
26978
|
parse: function(e, t) {
|
|
26979
26979
|
var n = e, r = n.to = n.path ? n.path.split(",") : [];
|
|
@@ -26985,12 +26985,12 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
26985
26985
|
for (var u = l[1].split(","), d = 0, f = u.length; d < f; ++d) r.push(u[d]);
|
|
26986
26986
|
break;
|
|
26987
26987
|
case "subject":
|
|
26988
|
-
n.subject =
|
|
26988
|
+
n.subject = G(l[1], t);
|
|
26989
26989
|
break;
|
|
26990
26990
|
case "body":
|
|
26991
|
-
n.body =
|
|
26991
|
+
n.body = G(l[1], t);
|
|
26992
26992
|
break;
|
|
26993
|
-
default: i = !0, a[
|
|
26993
|
+
default: i = !0, a[G(l[0], t)] = G(l[1], t);
|
|
26994
26994
|
}
|
|
26995
26995
|
}
|
|
26996
26996
|
i && (n.headers = a);
|
|
@@ -26998,9 +26998,9 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
26998
26998
|
n.query = void 0;
|
|
26999
26999
|
for (var p = 0, m = r.length; p < m; ++p) {
|
|
27000
27000
|
var h = r[p].split("@");
|
|
27001
|
-
if (h[0] =
|
|
27001
|
+
if (h[0] = G(h[0]), t.unicodeSupport) h[1] = G(h[1], t).toLowerCase();
|
|
27002
27002
|
else try {
|
|
27003
|
-
h[1] = O(
|
|
27003
|
+
h[1] = O(G(h[1], t).toLowerCase());
|
|
27004
27004
|
} catch (e) {
|
|
27005
27005
|
n.error = n.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
|
|
27006
27006
|
}
|
|
@@ -27012,9 +27012,9 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
27012
27012
|
var n, r = e, a = (n = e.to) == null ? [] : n instanceof Array ? n : typeof n.length != "number" || n.split || n.setInterval || n.call ? [n] : Array.prototype.slice.call(n);
|
|
27013
27013
|
if (a) {
|
|
27014
27014
|
for (var o = 0, s = a.length; o < s; ++o) {
|
|
27015
|
-
var c = String(a[o]), l = c.lastIndexOf("@"), u = c.slice(0, l).replace(
|
|
27015
|
+
var c = String(a[o]), l = c.lastIndexOf("@"), u = c.slice(0, l).replace($, se).replace($, i).replace(ie, j), c = c.slice(l + 1);
|
|
27016
27016
|
try {
|
|
27017
|
-
c = t.iri ? k(c) : O(
|
|
27017
|
+
c = t.iri ? k(c) : O(G(c, t).toLowerCase());
|
|
27018
27018
|
} catch (e) {
|
|
27019
27019
|
r.error = r.error || "Email address's domain name can not be converted to " + (t.iri ? "Unicode" : "ASCII") + " via punycode: " + e;
|
|
27020
27020
|
}
|
|
@@ -27023,10 +27023,10 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
27023
27023
|
r.path = a.join(",");
|
|
27024
27024
|
}
|
|
27025
27025
|
var d, f = e.headers = e.headers || {}, p = (e.subject && (f.subject = e.subject), e.body && (f.body = e.body), []);
|
|
27026
|
-
for (d in f) f[d] !==
|
|
27026
|
+
for (d in f) f[d] !== re[d] && p.push(d.replace($, se).replace($, i).replace(ae, j) + "=" + f[d].replace($, se).replace($, i).replace(oe, j));
|
|
27027
27027
|
return p.length && (r.query = p.join("&")), r;
|
|
27028
27028
|
}
|
|
27029
|
-
}, ce = /^([^\:]+)\:(.*)/,
|
|
27029
|
+
}, ce = /^([^\:]+)\:(.*)/, X = {
|
|
27030
27030
|
scheme: "urn",
|
|
27031
27031
|
parse: function(e, t) {
|
|
27032
27032
|
var n, r, i = e.path && e.path.match(ce);
|
|
@@ -27046,19 +27046,19 @@ var qn = /* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
27046
27046
|
return n.nss = (e.uuid || "").toLowerCase(), n;
|
|
27047
27047
|
}
|
|
27048
27048
|
};
|
|
27049
|
-
A[
|
|
27049
|
+
A[K.scheme] = K, A[q.scheme] = q, A[Y.scheme] = Y, A[ne.scheme] = ne, A[Z.scheme] = Z, A[X.scheme] = X, A[ue.scheme] = ue, e.SCHEMES = A, e.pctEncChar = j, e.pctDecChars = M, e.parse = z, e.removeDotSegments = U, e.serialize = W, e.resolveComponents = te, e.resolve = function(e, t, n) {
|
|
27050
27050
|
return n = ((e, t) => {
|
|
27051
27051
|
var n = e;
|
|
27052
27052
|
if (t) for (var r in t) n[r] = t[r];
|
|
27053
27053
|
return n;
|
|
27054
|
-
})({ scheme: "null" }, n),
|
|
27054
|
+
})({ scheme: "null" }, n), W(te(z(e, n), z(t, n), n, !0), n);
|
|
27055
27055
|
}, e.normalize = function(e, t) {
|
|
27056
|
-
return typeof e == "string" ? e =
|
|
27056
|
+
return typeof e == "string" ? e = W(z(e, t), t) : r(e) === "object" && (e = z(W(e, t), t)), e;
|
|
27057
27057
|
}, e.equal = function(e, t, n) {
|
|
27058
|
-
return typeof e == "string" ? e =
|
|
27058
|
+
return typeof e == "string" ? e = W(z(e, n), n) : r(e) === "object" && (e = W(e, n)), typeof t == "string" ? t = W(z(t, n), n) : r(t) === "object" && (t = W(t, n)), e === t;
|
|
27059
27059
|
}, e.escapeComponent = function(e, t) {
|
|
27060
27060
|
return e && e.toString().replace((t && t.iri ? s : o).ESCAPE, j);
|
|
27061
|
-
}, e.unescapeComponent =
|
|
27061
|
+
}, e.unescapeComponent = G, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
27062
27062
|
})(t);
|
|
27063
27063
|
},
|
|
27064
27064
|
7598: function(e) {
|
|
@@ -28150,7 +28150,7 @@ ${n = t ? n : b(n, ",")}
|
|
|
28150
28150
|
type: "primary",
|
|
28151
28151
|
size: "small"
|
|
28152
28152
|
}, {
|
|
28153
|
-
icon: L(() => [u(M(
|
|
28153
|
+
icon: L(() => [u(M(K), { size: 14 })]),
|
|
28154
28154
|
default: L(() => [n[1] ||= l(" 导入 JSON ", -1)]),
|
|
28155
28155
|
_: 1
|
|
28156
28156
|
})])]), u(Yt, {
|
|
@@ -28165,7 +28165,7 @@ ${n = t ? n : b(n, ",")}
|
|
|
28165
28165
|
size: "small",
|
|
28166
28166
|
onClick: g
|
|
28167
28167
|
}, {
|
|
28168
|
-
icon: L(() => [u(M(
|
|
28168
|
+
icon: L(() => [u(M(K), { size: 14 })]),
|
|
28169
28169
|
default: L(() => [n[2] ||= l(" 导出 ", -1)]),
|
|
28170
28170
|
_: 1
|
|
28171
28171
|
})])]), s("div", Qn, [
|
|
@@ -28173,7 +28173,7 @@ ${n = t ? n : b(n, ",")}
|
|
|
28173
28173
|
size: "small",
|
|
28174
28174
|
onClick: _
|
|
28175
28175
|
}, {
|
|
28176
|
-
icon: L(() => [u(M(
|
|
28176
|
+
icon: L(() => [u(M(X), { size: 14 })]),
|
|
28177
28177
|
default: L(() => [n[3] ||= l(" 导入 ", -1)]),
|
|
28178
28178
|
_: 1
|
|
28179
28179
|
}),
|
|
@@ -28585,7 +28585,7 @@ var mr = pr, hr = { class: "me-card__title-wrapper" }, gr = { class: "me-card__t
|
|
|
28585
28585
|
class: "me-card__action-btn",
|
|
28586
28586
|
onClick: N
|
|
28587
28587
|
}, {
|
|
28588
|
-
default: L(() => [(x(), i(k(T.value ? M(
|
|
28588
|
+
default: L(() => [(x(), i(k(T.value ? M(re) : M(Y)), { size: 16 }))]),
|
|
28589
28589
|
_: 1
|
|
28590
28590
|
})) : a("", !0),
|
|
28591
28591
|
n.collapsible ? (x(), i(r, {
|
|
@@ -28595,7 +28595,7 @@ var mr = pr, hr = { class: "me-card__title-wrapper" }, gr = { class: "me-card__t
|
|
|
28595
28595
|
class: g(["me-card__action-btn", { "me-card__collapse-btn--collapsed": y.value }]),
|
|
28596
28596
|
onClick: C
|
|
28597
28597
|
}, {
|
|
28598
|
-
default: L(() => [u(M(
|
|
28598
|
+
default: L(() => [u(M(U), {
|
|
28599
28599
|
size: 16,
|
|
28600
28600
|
class: "me-card__collapse-icon"
|
|
28601
28601
|
})]),
|
|
@@ -28694,7 +28694,7 @@ function Ir(e, t) {
|
|
|
28694
28694
|
if (t === "boolean") return Rr(e);
|
|
28695
28695
|
if (t === "int" || t === "float") return Lr(e, t === "float");
|
|
28696
28696
|
let n = t === "date" ? Er : Dr;
|
|
28697
|
-
return e == null || e === "" ? "" :
|
|
28697
|
+
return e == null || e === "" ? "" : $.isDayjs(e) ? e.format(n) : typeof e == "string" ? e : "";
|
|
28698
28698
|
}
|
|
28699
28699
|
function Lr(e, t) {
|
|
28700
28700
|
if (e == null) return e;
|
|
@@ -28714,8 +28714,8 @@ function Rr(e) {
|
|
|
28714
28714
|
}
|
|
28715
28715
|
function zr(e, t) {
|
|
28716
28716
|
if (e == null || e === "") return "";
|
|
28717
|
-
if (
|
|
28718
|
-
let n =
|
|
28717
|
+
if ($.isDayjs(e)) return e.format(t);
|
|
28718
|
+
let n = $(e);
|
|
28719
28719
|
return n.isValid() ? n.format(t) : e;
|
|
28720
28720
|
}
|
|
28721
28721
|
function Br(e) {
|
|
@@ -28848,6 +28848,8 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
28848
28848
|
__name: "index",
|
|
28849
28849
|
props: {
|
|
28850
28850
|
modelValue: { default: () => ({}) },
|
|
28851
|
+
keyField: { default: "key" },
|
|
28852
|
+
valueField: { default: "value" },
|
|
28851
28853
|
disabled: {
|
|
28852
28854
|
type: Boolean,
|
|
28853
28855
|
default: !1
|
|
@@ -28876,7 +28878,7 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
28876
28878
|
},
|
|
28877
28879
|
emits: ["update:modelValue", "change"],
|
|
28878
28880
|
setup(t, { emit: n }) {
|
|
28879
|
-
let c = t, d = n, f = w([]), p = w([]), m = !1,
|
|
28881
|
+
let c = t, d = n, f = w([]), p = w([]), m = w("object"), _ = !1, v = r(() => {
|
|
28880
28882
|
let e = [{
|
|
28881
28883
|
title: "属性",
|
|
28882
28884
|
key: "key",
|
|
@@ -28887,7 +28889,7 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
28887
28889
|
key: "value",
|
|
28888
28890
|
dataIndex: "value"
|
|
28889
28891
|
}];
|
|
28890
|
-
return c.showRules && e.push({
|
|
28892
|
+
return c.showRules && c.validate && e.push({
|
|
28891
28893
|
title: "校验",
|
|
28892
28894
|
key: "rules",
|
|
28893
28895
|
dataIndex: "rules",
|
|
@@ -28900,31 +28902,54 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
28900
28902
|
width: 72,
|
|
28901
28903
|
align: "center"
|
|
28902
28904
|
}), e;
|
|
28903
|
-
}),
|
|
28904
|
-
function
|
|
28905
|
+
}), b = r(() => c.draggable && !c.disabled);
|
|
28906
|
+
function S(e) {
|
|
28907
|
+
m.value = Array.isArray(e) ? "array" : "object";
|
|
28905
28908
|
let t = /* @__PURE__ */ new Map();
|
|
28906
28909
|
for (let e of f.value) {
|
|
28907
28910
|
let n = e.key.trim();
|
|
28908
28911
|
n && t.set(n, e);
|
|
28909
28912
|
}
|
|
28910
|
-
|
|
28911
|
-
|
|
28913
|
+
let n = (e) => t.get(e.trim())?.rules ?? c.rules?.[e.trim()];
|
|
28914
|
+
m.value === "array" ? f.value = e.map((e) => {
|
|
28915
|
+
let t = String(e[c.keyField] ?? ""), r = e[c.valueField];
|
|
28912
28916
|
return {
|
|
28913
28917
|
id: kr(),
|
|
28914
|
-
key:
|
|
28915
|
-
type: Nr(
|
|
28916
|
-
value:
|
|
28917
|
-
|
|
28918
|
+
key: t,
|
|
28919
|
+
type: Nr(r),
|
|
28920
|
+
value: r,
|
|
28921
|
+
raw: { ...e },
|
|
28922
|
+
rules: n(t)
|
|
28918
28923
|
};
|
|
28919
|
-
}),
|
|
28924
|
+
}) : f.value = Object.entries(e).map(([e, t]) => ({
|
|
28925
|
+
id: kr(),
|
|
28926
|
+
key: e,
|
|
28927
|
+
type: Nr(t),
|
|
28928
|
+
value: t,
|
|
28929
|
+
rules: n(e)
|
|
28930
|
+
})), R();
|
|
28920
28931
|
}
|
|
28921
|
-
function
|
|
28932
|
+
function T() {
|
|
28922
28933
|
let e = {};
|
|
28923
28934
|
for (let t of f.value) {
|
|
28924
28935
|
let n = t.key.trim();
|
|
28925
28936
|
n && (e[n] = Ir(t.value, t.type));
|
|
28926
28937
|
}
|
|
28927
|
-
|
|
28938
|
+
return e;
|
|
28939
|
+
}
|
|
28940
|
+
function E() {
|
|
28941
|
+
let e = [];
|
|
28942
|
+
for (let t of f.value) {
|
|
28943
|
+
let n = t.key.trim();
|
|
28944
|
+
if (!n) continue;
|
|
28945
|
+
let r = { ...t.raw };
|
|
28946
|
+
r[c.keyField] = n, r[c.valueField] = Ir(t.value, t.type), e.push(r);
|
|
28947
|
+
}
|
|
28948
|
+
return e;
|
|
28949
|
+
}
|
|
28950
|
+
function D() {
|
|
28951
|
+
let e = m.value === "array" ? E() : T();
|
|
28952
|
+
_ = !0, d("update:modelValue", e);
|
|
28928
28953
|
let t = c.validate ? {
|
|
28929
28954
|
duplicatedKeys: p.value,
|
|
28930
28955
|
hasEmptyKey: f.value.some((e) => !e.key.trim()),
|
|
@@ -28940,78 +28965,79 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
28940
28965
|
}
|
|
28941
28966
|
I(() => c.modelValue, (e) => {
|
|
28942
28967
|
if (e) {
|
|
28943
|
-
if (
|
|
28944
|
-
|
|
28968
|
+
if (_) {
|
|
28969
|
+
_ = !1;
|
|
28945
28970
|
return;
|
|
28946
28971
|
}
|
|
28947
|
-
|
|
28972
|
+
S(e);
|
|
28948
28973
|
}
|
|
28949
28974
|
}, { immediate: !0 });
|
|
28950
|
-
function
|
|
28951
|
-
|
|
28975
|
+
function k(e) {
|
|
28976
|
+
R(), D();
|
|
28952
28977
|
}
|
|
28953
|
-
function
|
|
28954
|
-
|
|
28978
|
+
function A(e) {
|
|
28979
|
+
R(), D();
|
|
28955
28980
|
}
|
|
28956
|
-
function
|
|
28957
|
-
e.type !== t && (e.type = t, e.value = Pr(e.value, t), e.rules = Jr(e.rules, t),
|
|
28981
|
+
function j(e, t) {
|
|
28982
|
+
e.type !== t && (e.type = t, e.value = Pr(e.value, t), e.rules = Jr(e.rules, t), R(), D());
|
|
28958
28983
|
}
|
|
28959
|
-
function
|
|
28960
|
-
e.value = t,
|
|
28984
|
+
function N(e, t) {
|
|
28985
|
+
e.value = t, R(), D();
|
|
28961
28986
|
}
|
|
28962
|
-
function
|
|
28987
|
+
function P() {
|
|
28963
28988
|
f.value = [...f.value, {
|
|
28964
28989
|
id: kr(),
|
|
28965
28990
|
key: "",
|
|
28966
28991
|
type: "string",
|
|
28967
|
-
value: ""
|
|
28968
|
-
|
|
28992
|
+
value: "",
|
|
28993
|
+
raw: {}
|
|
28994
|
+
}], R(), D();
|
|
28969
28995
|
}
|
|
28970
|
-
function
|
|
28996
|
+
function F(e) {
|
|
28971
28997
|
let t = f.value.indexOf(e);
|
|
28972
|
-
t !== -1 && (f.value.splice(t, 1),
|
|
28998
|
+
t !== -1 && (f.value.splice(t, 1), R(), D());
|
|
28973
28999
|
}
|
|
28974
|
-
function
|
|
29000
|
+
function R() {
|
|
28975
29001
|
p.value = Vr(f.value);
|
|
28976
29002
|
}
|
|
28977
|
-
function
|
|
29003
|
+
function z(e) {
|
|
28978
29004
|
return Hr(e, p.value);
|
|
28979
29005
|
}
|
|
28980
|
-
function
|
|
28981
|
-
return c.validate ? e.trim() ?
|
|
29006
|
+
function B(e) {
|
|
29007
|
+
return c.validate ? e.trim() ? z(e) ? "Key 不能重复(忽略大小写)" : "" : "Key 不能为空" : "";
|
|
28982
29008
|
}
|
|
28983
|
-
function
|
|
28984
|
-
return c.validate ? !e.key.trim() ||
|
|
29009
|
+
function V(e) {
|
|
29010
|
+
return c.validate ? !e.key.trim() || z(e.key) : !1;
|
|
28985
29011
|
}
|
|
28986
|
-
function
|
|
29012
|
+
function H(e) {
|
|
28987
29013
|
return c.disabled || !c.validate ? "" : Qr(e.value, e.type, e.rules) ?? "";
|
|
28988
29014
|
}
|
|
28989
|
-
function
|
|
29015
|
+
function ee(e) {
|
|
28990
29016
|
return !!qr(e.rules);
|
|
28991
29017
|
}
|
|
28992
|
-
let
|
|
28993
|
-
let e =
|
|
28994
|
-
return e ? `校验规则${e.key.trim() ? ` · ${e.key.trim()}` : ""}(${
|
|
29018
|
+
let U = w(!1), W = w(null), te = w(), G = C({}), K = r(() => W.value?.type ?? "string"), q = Object.fromEntries(wr.map((e) => [e.value, e.label])), J = r(() => {
|
|
29019
|
+
let e = W.value;
|
|
29020
|
+
return e ? `校验规则${e.key.trim() ? ` · ${e.key.trim()}` : ""}(${q[e.type] ?? e.type})` : "校验规则";
|
|
28995
29021
|
});
|
|
28996
|
-
function
|
|
29022
|
+
function Y(e) {
|
|
28997
29023
|
return e === "int" || e === "float";
|
|
28998
29024
|
}
|
|
28999
|
-
function
|
|
29000
|
-
|
|
29025
|
+
function ne(e) {
|
|
29026
|
+
W.value = e, Object.keys(G).forEach((e) => delete G[e]), Object.assign(G, qr(e.rules) ?? {}), U.value = !0;
|
|
29001
29027
|
}
|
|
29002
|
-
function
|
|
29003
|
-
|
|
29004
|
-
|
|
29028
|
+
function re() {
|
|
29029
|
+
W.value && te.value?.validate().then(() => {
|
|
29030
|
+
W.value && (W.value.rules = qr(G), U.value = !1, W.value = null, R(), D());
|
|
29005
29031
|
}).catch(() => {});
|
|
29006
29032
|
}
|
|
29007
29033
|
function X() {
|
|
29008
|
-
|
|
29034
|
+
U.value = !1, W.value = null;
|
|
29009
29035
|
}
|
|
29010
|
-
function
|
|
29036
|
+
function Z(e, t) {
|
|
29011
29037
|
return typeof e == "string" && typeof t == "string" ? e < t ? -1 : +(e > t) : Number(e) - Number(t);
|
|
29012
29038
|
}
|
|
29013
|
-
let
|
|
29014
|
-
let e =
|
|
29039
|
+
let $ = r(() => {
|
|
29040
|
+
let e = G.minLength ?? null, t = G.maxLength ?? null, n = G.min ?? null, r = G.max ?? null;
|
|
29015
29041
|
return {
|
|
29016
29042
|
minLength: [{ validator: (e, n) => n != null && t != null && n > t ? Promise.reject(/* @__PURE__ */ Error("最短长度不能大于最大长度")) : Promise.resolve() }],
|
|
29017
29043
|
maxLength: [{ validator: (t, n) => n != null && e != null && n < e ? Promise.reject(/* @__PURE__ */ Error("最大长度不能小于最短长度")) : Promise.resolve() }],
|
|
@@ -29023,30 +29049,30 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29023
29049
|
}
|
|
29024
29050
|
return Promise.resolve();
|
|
29025
29051
|
} }],
|
|
29026
|
-
min: [{ validator: (e, t) => t != null && r != null &&
|
|
29027
|
-
max: [{ validator: (e, t) => t != null && n != null &&
|
|
29052
|
+
min: [{ validator: (e, t) => t != null && r != null && Z(t, r) > 0 ? Promise.reject(/* @__PURE__ */ Error("最小值不能大于最大值")) : Promise.resolve() }],
|
|
29053
|
+
max: [{ validator: (e, t) => t != null && n != null && Z(t, n) < 0 ? Promise.reject(/* @__PURE__ */ Error("最大值不能小于最小值")) : Promise.resolve() }]
|
|
29028
29054
|
};
|
|
29029
|
-
}),
|
|
29030
|
-
function
|
|
29031
|
-
|
|
29055
|
+
}), ie = w(null), ae = w(null);
|
|
29056
|
+
function oe() {
|
|
29057
|
+
ae.value ||= ie.value?.querySelector("tbody") ?? null;
|
|
29032
29058
|
}
|
|
29033
29059
|
y(async () => {
|
|
29034
|
-
await h(),
|
|
29060
|
+
await h(), oe(), ae.value && fe.start(ae.value);
|
|
29035
29061
|
});
|
|
29036
|
-
let
|
|
29037
|
-
function
|
|
29038
|
-
|
|
29062
|
+
let se = w(null);
|
|
29063
|
+
function ce() {
|
|
29064
|
+
se.value && (se.value.style.display = "none");
|
|
29039
29065
|
}
|
|
29040
|
-
function
|
|
29041
|
-
let t =
|
|
29066
|
+
function le(e) {
|
|
29067
|
+
let t = ae.value, n = ie.value, r = se.value, i = e?.related, a = i instanceof Element ? i.closest("tr") : null;
|
|
29042
29068
|
if (!t || !n || !r || !a || !t.contains(a)) {
|
|
29043
|
-
|
|
29069
|
+
ce();
|
|
29044
29070
|
return;
|
|
29045
29071
|
}
|
|
29046
29072
|
let o = a.getBoundingClientRect(), s = n.getBoundingClientRect(), c = e.willInsertAfter ? o.bottom : o.top;
|
|
29047
29073
|
r.style.top = `${c - s.top - 1}px`, r.style.left = "0px", r.style.width = `${n.clientWidth}px`, r.style.display = "block";
|
|
29048
29074
|
}
|
|
29049
|
-
function
|
|
29075
|
+
function ue(e) {
|
|
29050
29076
|
if (!e) return;
|
|
29051
29077
|
let t = document.querySelector(".me-input-property__drag-fallback");
|
|
29052
29078
|
if (!t) return;
|
|
@@ -29057,39 +29083,39 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29057
29083
|
r[t].style.width = `${e.getBoundingClientRect().width}px`;
|
|
29058
29084
|
});
|
|
29059
29085
|
}
|
|
29060
|
-
let
|
|
29086
|
+
let de = C({
|
|
29061
29087
|
handle: ".me-input-property__drag",
|
|
29062
29088
|
animation: 150,
|
|
29063
29089
|
forceFallback: !0,
|
|
29064
29090
|
fallbackOnBody: !0,
|
|
29065
29091
|
fallbackClass: "me-input-property__drag-fallback",
|
|
29066
29092
|
ghostClass: "me-input-property__row--ghost",
|
|
29067
|
-
disabled: r(() => !
|
|
29093
|
+
disabled: r(() => !b.value),
|
|
29068
29094
|
onStart: (e) => {
|
|
29069
|
-
|
|
29095
|
+
ce(), ue(e.item);
|
|
29070
29096
|
},
|
|
29071
|
-
onMove: ((e) => (
|
|
29097
|
+
onMove: ((e) => (le(e), !0)),
|
|
29072
29098
|
onEnd: () => {
|
|
29073
|
-
|
|
29099
|
+
ce(), R(), D();
|
|
29074
29100
|
}
|
|
29075
|
-
}),
|
|
29076
|
-
...
|
|
29101
|
+
}), fe = Q(ae, f, {
|
|
29102
|
+
...de,
|
|
29077
29103
|
immediate: !1
|
|
29078
29104
|
});
|
|
29079
|
-
return I(
|
|
29080
|
-
|
|
29105
|
+
return I(b, (e) => {
|
|
29106
|
+
fe.option("disabled", !e);
|
|
29081
29107
|
}), (n, r) => {
|
|
29082
|
-
let c = O("a-button"), d = O("a-input"), p = O("a-tooltip"), m = O("a-select"), h = O("a-input-number"),
|
|
29108
|
+
let c = O("a-button"), d = O("a-input"), p = O("a-tooltip"), m = O("a-select"), h = O("a-input-number"), _ = O("a-date-picker"), y = O("a-time-picker"), S = O("a-space-compact"), C = O("a-table"), w = O("a-checkbox"), T = O("a-form-item"), E = O("a-form");
|
|
29083
29109
|
return x(), o("div", {
|
|
29084
29110
|
ref_key: "rootEl",
|
|
29085
|
-
ref:
|
|
29111
|
+
ref: ie,
|
|
29086
29112
|
class: "me-input-property"
|
|
29087
29113
|
}, [
|
|
29088
29114
|
s("div", ei, [u(c, {
|
|
29089
29115
|
size: "small",
|
|
29090
29116
|
class: "me-input-property__add-btn",
|
|
29091
29117
|
disabled: t.disabled,
|
|
29092
|
-
onClick:
|
|
29118
|
+
onClick: P
|
|
29093
29119
|
}, {
|
|
29094
29120
|
icon: L(() => [u(M(Ne), {
|
|
29095
29121
|
name: "Plus",
|
|
@@ -29099,7 +29125,7 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29099
29125
|
_: 1
|
|
29100
29126
|
}, 8, ["disabled"])]),
|
|
29101
29127
|
u(C, {
|
|
29102
|
-
columns:
|
|
29128
|
+
columns: v.value,
|
|
29103
29129
|
"data-source": f.value,
|
|
29104
29130
|
"row-key": (e) => e.id,
|
|
29105
29131
|
pagination: !1,
|
|
@@ -29107,7 +29133,7 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29107
29133
|
locale: { emptyText: t.emptyText },
|
|
29108
29134
|
class: "me-input-property__table"
|
|
29109
29135
|
}, {
|
|
29110
|
-
bodyCell: L(({ column: e, record: n }) => [e.key === "action" ? (x(), o("div", ti, [
|
|
29136
|
+
bodyCell: L(({ column: e, record: n }) => [e.key === "action" ? (x(), o("div", ti, [b.value ? (x(), o("span", ni, [u(M(Ne), {
|
|
29111
29137
|
name: "GripVertical",
|
|
29112
29138
|
size: 14
|
|
29113
29139
|
})])) : a("", !0), u(c, {
|
|
@@ -29116,7 +29142,7 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29116
29142
|
class: "me-input-property__del",
|
|
29117
29143
|
disabled: t.disabled,
|
|
29118
29144
|
title: "删除该属性",
|
|
29119
|
-
onClick: (e) =>
|
|
29145
|
+
onClick: (e) => F(n)
|
|
29120
29146
|
}, {
|
|
29121
29147
|
default: L(() => [u(M(Ne), {
|
|
29122
29148
|
name: "Trash2",
|
|
@@ -29125,13 +29151,13 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29125
29151
|
_: 1
|
|
29126
29152
|
}, 8, ["disabled", "onClick"])])) : e.key === "key" ? (x(), i(p, {
|
|
29127
29153
|
key: 1,
|
|
29128
|
-
title: t.disabled ? "" :
|
|
29129
|
-
visible: !t.disabled &&
|
|
29154
|
+
title: t.disabled ? "" : B(n.key),
|
|
29155
|
+
visible: !t.disabled && V(n)
|
|
29130
29156
|
}, {
|
|
29131
29157
|
default: L(() => [u(d, {
|
|
29132
29158
|
value: n.key,
|
|
29133
|
-
"onUpdate:value": [(e) => n.key = e, (e) =>
|
|
29134
|
-
class: g(["me-input-property__key-input", { "me-input-property__field--error": !t.disabled &&
|
|
29159
|
+
"onUpdate:value": [(e) => n.key = e, (e) => k(n)],
|
|
29160
|
+
class: g(["me-input-property__key-input", { "me-input-property__field--error": !t.disabled && V(n) }]),
|
|
29135
29161
|
disabled: t.disabled,
|
|
29136
29162
|
placeholder: t.keyPlaceholder
|
|
29137
29163
|
}, null, 8, [
|
|
@@ -29144,12 +29170,12 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29144
29170
|
_: 2
|
|
29145
29171
|
}, 1032, ["title", "visible"])) : e.key === "value" ? (x(), i(p, {
|
|
29146
29172
|
key: 2,
|
|
29147
|
-
title:
|
|
29148
|
-
visible: !!
|
|
29173
|
+
title: H(n),
|
|
29174
|
+
visible: !!H(n)
|
|
29149
29175
|
}, {
|
|
29150
29176
|
default: L(() => [u(S, {
|
|
29151
29177
|
block: !0,
|
|
29152
|
-
class: g(["me-input-property__value", { "me-input-property__field--error": !!
|
|
29178
|
+
class: g(["me-input-property__value", { "me-input-property__field--error": !!H(n) }])
|
|
29153
29179
|
}, {
|
|
29154
29180
|
default: L(() => [t.showType ? (x(), i(m, {
|
|
29155
29181
|
key: 0,
|
|
@@ -29157,7 +29183,7 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29157
29183
|
disabled: t.disabled,
|
|
29158
29184
|
options: M(wr),
|
|
29159
29185
|
class: "me-input-property__value-type",
|
|
29160
|
-
onChange: (e) =>
|
|
29186
|
+
onChange: (e) => j(n, e)
|
|
29161
29187
|
}, null, 8, [
|
|
29162
29188
|
"value",
|
|
29163
29189
|
"disabled",
|
|
@@ -29166,7 +29192,7 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29166
29192
|
])) : a("", !0), n.type === "string" ? (x(), i(d, {
|
|
29167
29193
|
key: 1,
|
|
29168
29194
|
value: n.value,
|
|
29169
|
-
"onUpdate:value": [(e) => n.value = e, (e) =>
|
|
29195
|
+
"onUpdate:value": [(e) => n.value = e, (e) => A(n)],
|
|
29170
29196
|
class: "me-input-property__value-editor",
|
|
29171
29197
|
disabled: t.disabled,
|
|
29172
29198
|
placeholder: t.valuePlaceholder
|
|
@@ -29178,7 +29204,7 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29178
29204
|
])) : n.type === "int" ? (x(), i(h, {
|
|
29179
29205
|
key: 2,
|
|
29180
29206
|
value: n.value,
|
|
29181
|
-
"onUpdate:value": [(e) => n.value = e, (e) =>
|
|
29207
|
+
"onUpdate:value": [(e) => n.value = e, (e) => A(n)],
|
|
29182
29208
|
class: "me-input-property__value-editor",
|
|
29183
29209
|
disabled: t.disabled,
|
|
29184
29210
|
placeholder: t.valuePlaceholder
|
|
@@ -29190,7 +29216,7 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29190
29216
|
])) : n.type === "float" ? (x(), i(h, {
|
|
29191
29217
|
key: 3,
|
|
29192
29218
|
value: n.value,
|
|
29193
|
-
"onUpdate:value": [(e) => n.value = e, (e) =>
|
|
29219
|
+
"onUpdate:value": [(e) => n.value = e, (e) => A(n)],
|
|
29194
29220
|
class: "me-input-property__value-editor",
|
|
29195
29221
|
disabled: t.disabled,
|
|
29196
29222
|
placeholder: t.valuePlaceholder,
|
|
@@ -29201,10 +29227,10 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29201
29227
|
"disabled",
|
|
29202
29228
|
"placeholder",
|
|
29203
29229
|
"precision"
|
|
29204
|
-
])) : n.type === "date" ? (x(), i(
|
|
29230
|
+
])) : n.type === "date" ? (x(), i(_, {
|
|
29205
29231
|
key: 4,
|
|
29206
29232
|
value: n.value,
|
|
29207
|
-
"onUpdate:value": [(e) => n.value = e, (e) =>
|
|
29233
|
+
"onUpdate:value": [(e) => n.value = e, (e) => A(n)],
|
|
29208
29234
|
class: "me-input-property__value-editor",
|
|
29209
29235
|
"value-format": M(Er),
|
|
29210
29236
|
disabled: t.disabled
|
|
@@ -29213,10 +29239,10 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29213
29239
|
"onUpdate:value",
|
|
29214
29240
|
"value-format",
|
|
29215
29241
|
"disabled"
|
|
29216
|
-
])) : n.type === "time" ? (x(), i(
|
|
29242
|
+
])) : n.type === "time" ? (x(), i(y, {
|
|
29217
29243
|
key: 5,
|
|
29218
29244
|
value: n.value,
|
|
29219
|
-
"onUpdate:value": [(e) => n.value = e, (e) =>
|
|
29245
|
+
"onUpdate:value": [(e) => n.value = e, (e) => A(n)],
|
|
29220
29246
|
class: "me-input-property__value-editor",
|
|
29221
29247
|
"value-format": M(Dr),
|
|
29222
29248
|
disabled: t.disabled
|
|
@@ -29231,7 +29257,7 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29231
29257
|
class: "me-input-property__value-editor",
|
|
29232
29258
|
disabled: t.disabled,
|
|
29233
29259
|
options: M(Or),
|
|
29234
|
-
onChange: (e) =>
|
|
29260
|
+
onChange: (e) => N(n, e)
|
|
29235
29261
|
}, null, 8, [
|
|
29236
29262
|
"value",
|
|
29237
29263
|
"disabled",
|
|
@@ -29248,9 +29274,9 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29248
29274
|
default: L(() => [u(c, {
|
|
29249
29275
|
type: "text",
|
|
29250
29276
|
size: "small",
|
|
29251
|
-
class: g(["me-input-property__rules-btn", { "is-active":
|
|
29277
|
+
class: g(["me-input-property__rules-btn", { "is-active": ee(n) }]),
|
|
29252
29278
|
disabled: t.disabled,
|
|
29253
|
-
onClick: (e) =>
|
|
29279
|
+
onClick: (e) => ne(n)
|
|
29254
29280
|
}, {
|
|
29255
29281
|
default: L(() => [u(M(Ne), {
|
|
29256
29282
|
name: "WandSparkles",
|
|
@@ -29273,43 +29299,43 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29273
29299
|
"locale"
|
|
29274
29300
|
]),
|
|
29275
29301
|
u(M(Xt), {
|
|
29276
|
-
open:
|
|
29277
|
-
"onUpdate:open": r[11] ||= (e) =>
|
|
29302
|
+
open: U.value,
|
|
29303
|
+
"onUpdate:open": r[11] ||= (e) => U.value = e,
|
|
29278
29304
|
width: 480,
|
|
29279
29305
|
fullscreen: !1,
|
|
29280
|
-
title:
|
|
29306
|
+
title: J.value,
|
|
29281
29307
|
"ok-text": "保存",
|
|
29282
29308
|
"cancel-text": "取消",
|
|
29283
|
-
onOk:
|
|
29309
|
+
onOk: re,
|
|
29284
29310
|
onCancel: X
|
|
29285
29311
|
}, {
|
|
29286
|
-
default: L(() => [u(
|
|
29312
|
+
default: L(() => [u(E, {
|
|
29287
29313
|
ref_key: "ruleFormRef",
|
|
29288
|
-
ref:
|
|
29289
|
-
model:
|
|
29290
|
-
rules:
|
|
29314
|
+
ref: te,
|
|
29315
|
+
model: G,
|
|
29316
|
+
rules: $.value,
|
|
29291
29317
|
layout: "vertical",
|
|
29292
29318
|
class: "me-input-property__rule-form"
|
|
29293
29319
|
}, {
|
|
29294
29320
|
default: L(() => [
|
|
29295
|
-
u(
|
|
29321
|
+
u(T, { name: "required" }, {
|
|
29296
29322
|
default: L(() => [u(w, {
|
|
29297
|
-
checked:
|
|
29298
|
-
"onUpdate:checked": r[0] ||= (e) =>
|
|
29323
|
+
checked: G.required,
|
|
29324
|
+
"onUpdate:checked": r[0] ||= (e) => G.required = e
|
|
29299
29325
|
}, {
|
|
29300
29326
|
default: L(() => [...r[13] ||= [l("必填(值不能为空)", -1)]]),
|
|
29301
29327
|
_: 1
|
|
29302
29328
|
}, 8, ["checked"])]),
|
|
29303
29329
|
_: 1
|
|
29304
29330
|
}),
|
|
29305
|
-
|
|
29306
|
-
u(
|
|
29331
|
+
K.value === "string" ? (x(), o(e, { key: 0 }, [
|
|
29332
|
+
u(T, {
|
|
29307
29333
|
name: "minLength",
|
|
29308
29334
|
label: "最短长度"
|
|
29309
29335
|
}, {
|
|
29310
29336
|
default: L(() => [u(h, {
|
|
29311
|
-
value:
|
|
29312
|
-
"onUpdate:value": r[1] ||= (e) =>
|
|
29337
|
+
value: G.minLength,
|
|
29338
|
+
"onUpdate:value": r[1] ||= (e) => G.minLength = e,
|
|
29313
29339
|
min: 0,
|
|
29314
29340
|
precision: 0,
|
|
29315
29341
|
placeholder: "不限",
|
|
@@ -29317,13 +29343,13 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29317
29343
|
}, null, 8, ["value"])]),
|
|
29318
29344
|
_: 1
|
|
29319
29345
|
}),
|
|
29320
|
-
u(
|
|
29346
|
+
u(T, {
|
|
29321
29347
|
name: "maxLength",
|
|
29322
29348
|
label: "最大长度"
|
|
29323
29349
|
}, {
|
|
29324
29350
|
default: L(() => [u(h, {
|
|
29325
|
-
value:
|
|
29326
|
-
"onUpdate:value": r[2] ||= (e) =>
|
|
29351
|
+
value: G.maxLength,
|
|
29352
|
+
"onUpdate:value": r[2] ||= (e) => G.maxLength = e,
|
|
29327
29353
|
min: 0,
|
|
29328
29354
|
precision: 0,
|
|
29329
29355
|
placeholder: "不限",
|
|
@@ -29331,90 +29357,90 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29331
29357
|
}, null, 8, ["value"])]),
|
|
29332
29358
|
_: 1
|
|
29333
29359
|
}),
|
|
29334
|
-
u(
|
|
29360
|
+
u(T, {
|
|
29335
29361
|
name: "pattern",
|
|
29336
29362
|
label: "正则模式",
|
|
29337
29363
|
extra: "校验值格式,如 ^[a-zA-Z0-9]+$"
|
|
29338
29364
|
}, {
|
|
29339
29365
|
default: L(() => [u(d, {
|
|
29340
|
-
value:
|
|
29341
|
-
"onUpdate:value": r[3] ||= (e) =>
|
|
29366
|
+
value: G.pattern,
|
|
29367
|
+
"onUpdate:value": r[3] ||= (e) => G.pattern = e,
|
|
29342
29368
|
placeholder: "如 ^[a-zA-Z0-9]+$",
|
|
29343
29369
|
"allow-clear": ""
|
|
29344
29370
|
}, null, 8, ["value"])]),
|
|
29345
29371
|
_: 1
|
|
29346
29372
|
})
|
|
29347
29373
|
], 64)) : a("", !0),
|
|
29348
|
-
|
|
29374
|
+
Y(K.value) ? (x(), o(e, { key: 1 }, [u(T, {
|
|
29349
29375
|
name: "min",
|
|
29350
29376
|
label: "最小值"
|
|
29351
29377
|
}, {
|
|
29352
29378
|
default: L(() => [u(h, {
|
|
29353
|
-
value:
|
|
29354
|
-
"onUpdate:value": r[4] ||= (e) =>
|
|
29355
|
-
precision:
|
|
29379
|
+
value: G.min,
|
|
29380
|
+
"onUpdate:value": r[4] ||= (e) => G.min = e,
|
|
29381
|
+
precision: K.value === "float" ? M(2) : 0,
|
|
29356
29382
|
placeholder: "不限",
|
|
29357
29383
|
class: "me-input-property__rule-input"
|
|
29358
29384
|
}, null, 8, ["value", "precision"])]),
|
|
29359
29385
|
_: 1
|
|
29360
|
-
}), u(
|
|
29386
|
+
}), u(T, {
|
|
29361
29387
|
name: "max",
|
|
29362
29388
|
label: "最大值"
|
|
29363
29389
|
}, {
|
|
29364
29390
|
default: L(() => [u(h, {
|
|
29365
|
-
value:
|
|
29366
|
-
"onUpdate:value": r[5] ||= (e) =>
|
|
29367
|
-
precision:
|
|
29391
|
+
value: G.max,
|
|
29392
|
+
"onUpdate:value": r[5] ||= (e) => G.max = e,
|
|
29393
|
+
precision: K.value === "float" ? M(2) : 0,
|
|
29368
29394
|
placeholder: "不限",
|
|
29369
29395
|
class: "me-input-property__rule-input"
|
|
29370
29396
|
}, null, 8, ["value", "precision"])]),
|
|
29371
29397
|
_: 1
|
|
29372
29398
|
})], 64)) : a("", !0),
|
|
29373
|
-
|
|
29399
|
+
K.value === "date" || K.value === "time" ? (x(), o(e, { key: 2 }, [u(T, {
|
|
29374
29400
|
name: "min",
|
|
29375
29401
|
label: "最早边界"
|
|
29376
29402
|
}, {
|
|
29377
|
-
default: L(() => [
|
|
29403
|
+
default: L(() => [K.value === "date" ? (x(), i(_, {
|
|
29378
29404
|
key: 0,
|
|
29379
|
-
value:
|
|
29380
|
-
"onUpdate:value": r[6] ||= (e) =>
|
|
29405
|
+
value: G.min,
|
|
29406
|
+
"onUpdate:value": r[6] ||= (e) => G.min = e,
|
|
29381
29407
|
"value-format": M(Er),
|
|
29382
29408
|
style: { width: "100%" }
|
|
29383
|
-
}, null, 8, ["value", "value-format"])) : (x(), i(
|
|
29409
|
+
}, null, 8, ["value", "value-format"])) : (x(), i(y, {
|
|
29384
29410
|
key: 1,
|
|
29385
|
-
value:
|
|
29386
|
-
"onUpdate:value": r[7] ||= (e) =>
|
|
29411
|
+
value: G.min,
|
|
29412
|
+
"onUpdate:value": r[7] ||= (e) => G.min = e,
|
|
29387
29413
|
"value-format": M(Dr),
|
|
29388
29414
|
style: { width: "100%" }
|
|
29389
29415
|
}, null, 8, ["value", "value-format"]))]),
|
|
29390
29416
|
_: 1
|
|
29391
|
-
}), u(
|
|
29417
|
+
}), u(T, {
|
|
29392
29418
|
name: "max",
|
|
29393
29419
|
label: "最晚边界"
|
|
29394
29420
|
}, {
|
|
29395
|
-
default: L(() => [
|
|
29421
|
+
default: L(() => [K.value === "date" ? (x(), i(_, {
|
|
29396
29422
|
key: 0,
|
|
29397
|
-
value:
|
|
29398
|
-
"onUpdate:value": r[8] ||= (e) =>
|
|
29423
|
+
value: G.max,
|
|
29424
|
+
"onUpdate:value": r[8] ||= (e) => G.max = e,
|
|
29399
29425
|
"value-format": M(Er),
|
|
29400
29426
|
style: { width: "100%" }
|
|
29401
|
-
}, null, 8, ["value", "value-format"])) : (x(), i(
|
|
29427
|
+
}, null, 8, ["value", "value-format"])) : (x(), i(y, {
|
|
29402
29428
|
key: 1,
|
|
29403
|
-
value:
|
|
29404
|
-
"onUpdate:value": r[9] ||= (e) =>
|
|
29429
|
+
value: G.max,
|
|
29430
|
+
"onUpdate:value": r[9] ||= (e) => G.max = e,
|
|
29405
29431
|
"value-format": M(Dr),
|
|
29406
29432
|
style: { width: "100%" }
|
|
29407
29433
|
}, null, 8, ["value", "value-format"]))]),
|
|
29408
29434
|
_: 1
|
|
29409
29435
|
})], 64)) : a("", !0),
|
|
29410
|
-
u(
|
|
29436
|
+
u(T, {
|
|
29411
29437
|
name: "message",
|
|
29412
29438
|
label: "自定义错误提示",
|
|
29413
29439
|
extra: "可选,覆盖所有校验规则的默认提示文案"
|
|
29414
29440
|
}, {
|
|
29415
29441
|
default: L(() => [u(d, {
|
|
29416
|
-
value:
|
|
29417
|
-
"onUpdate:value": r[10] ||= (e) =>
|
|
29442
|
+
value: G.message,
|
|
29443
|
+
"onUpdate:value": r[10] ||= (e) => G.message = e,
|
|
29418
29444
|
placeholder: "如:该属性不合法",
|
|
29419
29445
|
"allow-clear": ""
|
|
29420
29446
|
}, null, 8, ["value"])]),
|
|
@@ -29427,7 +29453,7 @@ var ei = { class: "me-input-property__toolbar" }, ti = {
|
|
|
29427
29453
|
}, 8, ["open", "title"]),
|
|
29428
29454
|
s("div", {
|
|
29429
29455
|
ref_key: "dropLineEl",
|
|
29430
|
-
ref:
|
|
29456
|
+
ref: se,
|
|
29431
29457
|
class: "me-input-property__drop-line"
|
|
29432
29458
|
}, null, 512)
|
|
29433
29459
|
], 512);
|
|
@@ -29723,22 +29749,22 @@ var ii = ri, ai = (/* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
29723
29749
|
function H(e, t) {
|
|
29724
29750
|
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
29725
29751
|
}
|
|
29726
|
-
function
|
|
29752
|
+
function ee(e, t) {
|
|
29727
29753
|
t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = V, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
29728
29754
|
}
|
|
29729
|
-
function
|
|
29755
|
+
function U(e, t) {
|
|
29730
29756
|
Array.isArray(e.illegal) && (e.illegal = y(...e.illegal));
|
|
29731
29757
|
}
|
|
29732
|
-
function
|
|
29758
|
+
function W(e, t) {
|
|
29733
29759
|
if (e.match) {
|
|
29734
29760
|
if (e.begin || e.end) throw Error("begin & end are not supported with match");
|
|
29735
29761
|
e.begin = e.match, delete e.match;
|
|
29736
29762
|
}
|
|
29737
29763
|
}
|
|
29738
|
-
function
|
|
29764
|
+
function te(e, t) {
|
|
29739
29765
|
e.relevance === void 0 && (e.relevance = 1);
|
|
29740
29766
|
}
|
|
29741
|
-
var
|
|
29767
|
+
var G = (e, t) => {
|
|
29742
29768
|
if (!e.beforeMatch) return;
|
|
29743
29769
|
if (e.starts) throw Error("beforeMatch cannot be used with starts");
|
|
29744
29770
|
let n = Object.assign({}, e);
|
|
@@ -29748,7 +29774,7 @@ var ii = ri, ai = (/* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
29748
29774
|
relevance: 0,
|
|
29749
29775
|
contains: [Object.assign(n, { endsParent: !0 })]
|
|
29750
29776
|
}, e.relevance = 0, delete n.beforeMatch;
|
|
29751
|
-
},
|
|
29777
|
+
}, K = [
|
|
29752
29778
|
"of",
|
|
29753
29779
|
"and",
|
|
29754
29780
|
"for",
|
|
@@ -29760,32 +29786,32 @@ var ii = ri, ai = (/* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
29760
29786
|
"parent",
|
|
29761
29787
|
"list",
|
|
29762
29788
|
"value"
|
|
29763
|
-
],
|
|
29764
|
-
function
|
|
29789
|
+
], q = "keyword";
|
|
29790
|
+
function J(e, t, n = q) {
|
|
29765
29791
|
let r = Object.create(null);
|
|
29766
29792
|
return typeof e == "string" ? i(n, e.split(" ")) : Array.isArray(e) ? i(n, e) : Object.keys(e).forEach(function(n) {
|
|
29767
|
-
Object.assign(r,
|
|
29793
|
+
Object.assign(r, J(e[n], t, n));
|
|
29768
29794
|
}), r;
|
|
29769
29795
|
function i(e, n) {
|
|
29770
29796
|
t && (n = n.map((e) => e.toLowerCase())), n.forEach(function(t) {
|
|
29771
29797
|
let n = t.split("|");
|
|
29772
|
-
r[n[0]] = [e,
|
|
29798
|
+
r[n[0]] = [e, Y(n[0], n[1])];
|
|
29773
29799
|
});
|
|
29774
29800
|
}
|
|
29775
29801
|
}
|
|
29776
|
-
function
|
|
29777
|
-
return t ? Number(t) : +!
|
|
29802
|
+
function Y(e, t) {
|
|
29803
|
+
return t ? Number(t) : +!ne(e);
|
|
29778
29804
|
}
|
|
29779
|
-
function
|
|
29780
|
-
return
|
|
29805
|
+
function ne(e) {
|
|
29806
|
+
return K.includes(e.toLowerCase());
|
|
29781
29807
|
}
|
|
29782
|
-
var
|
|
29808
|
+
var re = {}, X = (e) => {
|
|
29783
29809
|
console.error(e);
|
|
29784
|
-
},
|
|
29810
|
+
}, Z = (e, ...t) => {
|
|
29785
29811
|
console.log(`WARN: ${e}`, ...t);
|
|
29786
|
-
},
|
|
29787
|
-
|
|
29788
|
-
},
|
|
29812
|
+
}, Q = (e, t) => {
|
|
29813
|
+
re[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), re[`${e}/${t}`] = !0);
|
|
29814
|
+
}, $ = /* @__PURE__ */ Error();
|
|
29789
29815
|
function ie(e, t, { key: n }) {
|
|
29790
29816
|
let r = 0, i = e[n], a = {}, o = {};
|
|
29791
29817
|
for (let e = 1; e <= t.length; e++) o[e + r] = i[e], a[e + r] = !0, r += b(t[e - 1]);
|
|
@@ -29793,15 +29819,15 @@ var ii = ri, ai = (/* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
29793
29819
|
}
|
|
29794
29820
|
function ae(e) {
|
|
29795
29821
|
if (Array.isArray(e.begin)) {
|
|
29796
|
-
if (e.skip || e.excludeBegin || e.returnBegin) throw
|
|
29797
|
-
if (typeof e.beginScope != "object" || e.beginScope === null) throw
|
|
29822
|
+
if (e.skip || e.excludeBegin || e.returnBegin) throw X("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), $;
|
|
29823
|
+
if (typeof e.beginScope != "object" || e.beginScope === null) throw X("beginScope must be object"), $;
|
|
29798
29824
|
ie(e, e.begin, { key: "beginScope" }), e.begin = C(e.begin, { joinWith: "" });
|
|
29799
29825
|
}
|
|
29800
29826
|
}
|
|
29801
29827
|
function oe(e) {
|
|
29802
29828
|
if (Array.isArray(e.end)) {
|
|
29803
|
-
if (e.skip || e.excludeEnd || e.returnEnd) throw
|
|
29804
|
-
if (typeof e.endScope != "object" || e.endScope === null) throw
|
|
29829
|
+
if (e.skip || e.excludeEnd || e.returnEnd) throw X("skip, excludeEnd, returnEnd not compatible with endScope: {}"), $;
|
|
29830
|
+
if (typeof e.endScope != "object" || e.endScope === null) throw X("endScope must be object"), $;
|
|
29805
29831
|
ie(e, e.end, { key: "endScope" }), e.end = C(e.end, { joinWith: "" });
|
|
29806
29832
|
}
|
|
29807
29833
|
}
|
|
@@ -29876,16 +29902,16 @@ var ii = ri, ai = (/* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
29876
29902
|
if (n.isCompiled) return a;
|
|
29877
29903
|
[
|
|
29878
29904
|
H,
|
|
29879
|
-
|
|
29905
|
+
W,
|
|
29880
29906
|
ce,
|
|
29881
|
-
|
|
29907
|
+
G
|
|
29882
29908
|
].forEach((e) => e(n, r)), e.compilerExtensions.forEach((e) => e(n, r)), n.__beforeBegin = null, [
|
|
29909
|
+
ee,
|
|
29883
29910
|
U,
|
|
29884
|
-
|
|
29885
|
-
ee
|
|
29911
|
+
te
|
|
29886
29912
|
].forEach((e) => e(n, r)), n.isCompiled = !0;
|
|
29887
29913
|
let s = null;
|
|
29888
|
-
return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&=
|
|
29914
|
+
return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&= J(n.keywords, e.case_insensitive), a.keywordPatternRe = t(s, !0), r && (n.begin ||= /\B|\b/, a.beginRe = t(a.begin), !n.end && !n.endsWithParent && (n.end = /\B|\b/), n.end && (a.endRe = t(a.end)), a.terminatorEnd = p(a.end) || "", n.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (n.end ? "|" : "") + r.terminatorEnd)), n.illegal && (a.illegalRe = t(n.illegal)), n.contains ||= [], n.contains = [].concat(...n.contains.map(function(e) {
|
|
29889
29915
|
return de(e === "self" ? n : e);
|
|
29890
29916
|
})), n.contains.forEach(function(e) {
|
|
29891
29917
|
o(e, a);
|
|
@@ -29930,13 +29956,13 @@ var ii = ri, ai = (/* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
29930
29956
|
let n = l.languageDetectRe.exec(t);
|
|
29931
29957
|
if (n) {
|
|
29932
29958
|
let t = N(n[1]);
|
|
29933
|
-
return t || (
|
|
29959
|
+
return t || (Z(s.replace("{}", n[1])), Z("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
|
|
29934
29960
|
}
|
|
29935
29961
|
return t.split(/\s+/).find((e) => u(e) || N(e));
|
|
29936
29962
|
}
|
|
29937
29963
|
function p(e, t, n) {
|
|
29938
29964
|
let r = "", i = "";
|
|
29939
|
-
typeof t == "object" ? (r = e, n = t.ignoreIllegals, i = t.language) : (
|
|
29965
|
+
typeof t == "object" ? (r = e, n = t.ignoreIllegals, i = t.language) : (Q("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Q("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), i = e, r = t), n === void 0 && (n = !0);
|
|
29940
29966
|
let a = {
|
|
29941
29967
|
code: r,
|
|
29942
29968
|
language: i
|
|
@@ -30067,7 +30093,7 @@ var ii = ri, ai = (/* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
30067
30093
|
return P += a, a.length;
|
|
30068
30094
|
}
|
|
30069
30095
|
let D = N(e);
|
|
30070
|
-
if (!D) throw
|
|
30096
|
+
if (!D) throw X(s.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
|
|
30071
30097
|
let O = le(D), k = "", A = a || O, j = {}, M = new l.__emitter(l);
|
|
30072
30098
|
w();
|
|
30073
30099
|
let P = "", F = 0, I = 0, L = 0, R = !1;
|
|
@@ -30179,10 +30205,10 @@ var ii = ri, ai = (/* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
30179
30205
|
l = he(l, e);
|
|
30180
30206
|
}
|
|
30181
30207
|
let E = () => {
|
|
30182
|
-
k(),
|
|
30208
|
+
k(), Q("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
30183
30209
|
};
|
|
30184
30210
|
function D() {
|
|
30185
|
-
k(),
|
|
30211
|
+
k(), Q("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
30186
30212
|
}
|
|
30187
30213
|
let O = !1;
|
|
30188
30214
|
function k() {
|
|
@@ -30200,7 +30226,7 @@ var ii = ri, ai = (/* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
30200
30226
|
try {
|
|
30201
30227
|
i = r(e);
|
|
30202
30228
|
} catch (e) {
|
|
30203
|
-
if (
|
|
30229
|
+
if (X("Language definition for '{}' could not be registered.".replace("{}", n)), o) X(e);
|
|
30204
30230
|
else throw e;
|
|
30205
30231
|
i = c;
|
|
30206
30232
|
}
|
|
@@ -30246,7 +30272,7 @@ var ii = ri, ai = (/* @__PURE__ */ fe((/* @__PURE__ */ ue(((e, t) => {
|
|
|
30246
30272
|
});
|
|
30247
30273
|
}
|
|
30248
30274
|
function V(e) {
|
|
30249
|
-
return
|
|
30275
|
+
return Q("10.7.0", "highlightBlock will be removed entirely in v12.0"), Q("10.7.0", "Please use highlightElement now."), w(e);
|
|
30250
30276
|
}
|
|
30251
30277
|
Object.assign(e, {
|
|
30252
30278
|
highlight: p,
|
|
@@ -32029,7 +32055,7 @@ var qi = /\r\n|\r|\n/g, Ji = (e) => e.length === 0 ? [] : e.split(qi), Yi = (e)
|
|
|
32029
32055
|
class: g(["me-code-box__tab", { "me-code-box__tab--active": t === y.value }]),
|
|
32030
32056
|
"aria-selected": t === y.value,
|
|
32031
32057
|
onClick: (e) => N(t)
|
|
32032
|
-
}, j(e.label), 11, na))), 128))])) : C.value ? (x(), o("div", ra, [u(M(
|
|
32058
|
+
}, j(e.label), 11, na))), 128))])) : C.value ? (x(), o("div", ra, [u(M(q), { size: 14 }), s("span", null, j(C.value), 1)])) : a("", !0),
|
|
32033
32059
|
n[0] ||= s("div", { class: "me-code-box__spacer" }, null, -1),
|
|
32034
32060
|
c.showCopy ? (x(), o("button", {
|
|
32035
32061
|
key: 2,
|
|
@@ -32037,10 +32063,10 @@ var qi = /\r\n|\r|\n/g, Ji = (e) => e.length === 0 ? [] : e.split(qi), Yi = (e)
|
|
|
32037
32063
|
class: "me-code-box__copy",
|
|
32038
32064
|
"aria-label": F.value ? c.copiedText : c.copyText,
|
|
32039
32065
|
onClick: R
|
|
32040
|
-
}, [F.value ? (x(), i(M(
|
|
32066
|
+
}, [F.value ? (x(), i(M(ee), {
|
|
32041
32067
|
key: 0,
|
|
32042
32068
|
size: 14
|
|
32043
|
-
})) : (x(), i(M(
|
|
32069
|
+
})) : (x(), i(M(G), {
|
|
32044
32070
|
key: 1,
|
|
32045
32071
|
size: 14
|
|
32046
32072
|
})), s("span", null, j(F.value ? c.copiedText : c.copyText), 1)], 8, ia)) : a("", !0)
|
|
@@ -32102,7 +32128,7 @@ var la = sa, ua = [
|
|
|
32102
32128
|
typeof window < "u" && window.Vue && da(window.Vue);
|
|
32103
32129
|
var fa = {
|
|
32104
32130
|
install: da,
|
|
32105
|
-
version: "0.0.
|
|
32131
|
+
version: "0.0.31"
|
|
32106
32132
|
};
|
|
32107
32133
|
//#endregion
|
|
32108
32134
|
export { Ee as $message, Ee as MeMessage, Or as BOOLEAN_OPTIONS, Er as DATE_FORMAT, Tr as FLOAT_PRECISION, nt as MeBody, Re as MeBox, Ue as MeBreadcrumb, Sr as MeCard, la as MeCodeBox, ca as MeCodeItem, Ne as MeIcon, Hn as MeInputGps, xn as MeInputIconSelector, ii as MeInputProperty, Gn as MeInputRadio, er as MeLoadJson, mr as MeLoginPage, Tt as MeMenu, _e as MeMessageComponent, Xt as MeModal, Rt as MeNav, Cr as MeSkeleton, Fn as MeTreeMenu, Dr as TIME_FORMAT, wr as VALUE_TYPE_OPTIONS, Vr as checkDuplicateKeys, fa as default, Ir as exportValue, kr as genId, Nr as inferValueType, da as install, Hr as isDuplicateKey, Gr as isRuleApplicable, Me as loadIconfont, Br as normalizeKey, qr as normalizeRuleSet, Pr as normalizeValue, Jr as sanitizeRulesForType, Zr as toRuleMap, $r as toValueErrorMap, Xr as validateValue, Qr as valueError };
|