@me-framework/me-ui-antdv-next 0.0.35 → 0.0.36
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/README.md +160 -54
- package/dist/input-property/index.js +334 -321
- package/dist/me-ui-antdv-next.js +402 -389
- package/dist/me-ui-antdv-next.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/me-ui-antdv-next.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, guardReactiveProps as f, h as p, inject as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, onUnmounted as S, openBlock as C, provide as w, reactive as T, ref as E, render as D, renderList as O, renderSlot as k, resolveComponent as A, resolveDynamicComponent as j, shallowRef as M, toDisplayString as N, unref as P, useAttrs as F, useSlots as I, vShow as L, watch as R, withCtx as z, withDirectives as B, withModifiers as V } from "vue";
|
|
2
2
|
import { message as H, theme as ee } from "antdv-next";
|
|
3
3
|
import * as U from "@lucide/vue";
|
|
4
|
-
import { Check as W, ChevronDown as
|
|
4
|
+
import { Check as W, ChevronDown as G, ChevronLeft as K, ChevronRight as q, Copy as J, Download as Y, FileCode as te, Maximize as ne, Maximize2 as re, Minimize as X, Minimize2 as Z, Upload as Q, X as ie } from "@lucide/vue";
|
|
5
5
|
import { useDraggable as ae } from "vue-draggable-plus";
|
|
6
6
|
import $ from "dayjs";
|
|
7
7
|
//#region \0rolldown/runtime.js
|
|
@@ -93,7 +93,7 @@ var oe = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDe
|
|
|
93
93
|
algorithm: F.value ? c : o,
|
|
94
94
|
token: { borderRadius: 6 },
|
|
95
95
|
components: { Modal: { titleFontSize: 18 } }
|
|
96
|
-
})), V = r(() => v.value === "process" ? d.data.process?.title ?? d.data.normal?.title : d.data.normal?.title), H = r(() => v.value === "process" ? d.data.process?.message ?? d.data.normal?.message : d.data.normal?.message), U = r(() => v.value === "process" ? d.data.process?.loading ?? !1 : d.data.normal?.loading ?? !1), W = r(() => v.value === "process" ? d.data.process?.type ?? d.data.normal?.type ?? "default" : d.data.normal?.type ?? "default"),
|
|
96
|
+
})), V = r(() => v.value === "process" ? d.data.process?.title ?? d.data.normal?.title : d.data.normal?.title), H = r(() => v.value === "process" ? d.data.process?.message ?? d.data.normal?.message : d.data.normal?.message), U = r(() => v.value === "process" ? d.data.process?.loading ?? !1 : d.data.normal?.loading ?? !1), W = r(() => v.value === "process" ? d.data.process?.type ?? d.data.normal?.type ?? "default" : d.data.normal?.type ?? "default"), G = r(() => !!d.handler?.cancel), K = r(() => W.value === "default" ? "default" : "primary"), q = r(() => W.value === "danger");
|
|
97
97
|
R(h, async (e) => {
|
|
98
98
|
if (e ? (D && d.closeOnRouteChange && (O.value = D.currentRoute.value.fullPath), j || (w = !1)) : !w && !j && (O.value = null), e && !d.centered && d.top !== void 0) {
|
|
99
99
|
await g();
|
|
@@ -101,14 +101,14 @@ var oe = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDe
|
|
|
101
101
|
n && (n.style.marginTop = e);
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
|
-
let
|
|
104
|
+
let J = (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
|
+
}), Y = () => {
|
|
112
112
|
T = null;
|
|
113
113
|
let e = d.data.request;
|
|
114
114
|
return !e || new Promise((t) => {
|
|
@@ -122,17 +122,17 @@ var oe = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDe
|
|
|
122
122
|
t(!0);
|
|
123
123
|
}) : t(!0);
|
|
124
124
|
});
|
|
125
|
-
},
|
|
125
|
+
}, te = async () => {
|
|
126
126
|
if (w) {
|
|
127
127
|
w = !1, y = !1;
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
y || (y = !0, await
|
|
131
|
-
},
|
|
130
|
+
y || (y = !0, await J(d.handler?.cancel) ? h.value = !1 : (v.value = "normal", y = !1));
|
|
131
|
+
}, ne = async () => {
|
|
132
132
|
if (y) return;
|
|
133
133
|
y = !0, v.value = "process";
|
|
134
134
|
let e = !0;
|
|
135
|
-
d.data.request && (e = await
|
|
135
|
+
d.data.request && (e = await Y()), e && d.handler?.confirm ? await J(d.handler.confirm, T) ? h.value = !1 : (v.value = "normal", y = !1) : h.value = !1;
|
|
136
136
|
};
|
|
137
137
|
return (t, n) => {
|
|
138
138
|
let r = A("a-button"), o = A("a-modal"), c = A("a-config-provider");
|
|
@@ -147,24 +147,24 @@ var oe = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDe
|
|
|
147
147
|
"mask-closable": !1,
|
|
148
148
|
keyboard: !1,
|
|
149
149
|
"wrap-class-name": "me-message-modal",
|
|
150
|
-
onCancel:
|
|
150
|
+
onCancel: te
|
|
151
151
|
}, {
|
|
152
|
-
footer: z(() => [s("div", he, [k(t.$slots, "me-message-footer", {}, () => [n[3] ||= s("div", null, null, -1), s("div", ge, [
|
|
152
|
+
footer: z(() => [s("div", he, [k(t.$slots, "me-message-footer", {}, () => [n[3] ||= s("div", null, null, -1), s("div", ge, [G.value ? (C(), i(r, {
|
|
153
153
|
key: 0,
|
|
154
154
|
type: "link",
|
|
155
155
|
class: "me-message__cancel",
|
|
156
156
|
autoInsertSpace: !1,
|
|
157
|
-
onClick:
|
|
157
|
+
onClick: te
|
|
158
158
|
}, {
|
|
159
159
|
default: z(() => [...n[1] ||= [l("取消 ", -1)]]),
|
|
160
160
|
_: 1
|
|
161
161
|
})) : a("", !0), u(r, {
|
|
162
|
-
type:
|
|
163
|
-
danger:
|
|
162
|
+
type: K.value,
|
|
163
|
+
danger: q.value,
|
|
164
164
|
loading: U.value,
|
|
165
165
|
autoInsertSpace: !1,
|
|
166
166
|
class: _(["me-message__confirm", `me-message__confirm--${W.value}`]),
|
|
167
|
-
onClick:
|
|
167
|
+
onClick: ne
|
|
168
168
|
}, {
|
|
169
169
|
default: z(() => [...n[2] ||= [l(" 确定 ", -1)]]),
|
|
170
170
|
_: 1
|
|
@@ -714,7 +714,7 @@ var Ue = ["onClick"], We = /* @__PURE__ */ d({
|
|
|
714
714
|
onMenuClick: ({ key: n }) => b(e, t, n),
|
|
715
715
|
onClick: r[1] ||= V(() => {}, ["stop"])
|
|
716
716
|
}, {
|
|
717
|
-
default: z(() => [s("span", { class: _(["me-breadcrumb__menu-trigger", { "is-bold": e.bold }]) }, [l(N(e.label) + " ", 1), u(P(
|
|
717
|
+
default: z(() => [s("span", { class: _(["me-breadcrumb__menu-trigger", { "is-bold": e.bold }]) }, [l(N(e.label) + " ", 1), u(P(G), {
|
|
718
718
|
size: 14,
|
|
719
719
|
"stroke-width": 2
|
|
720
720
|
})], 2)]),
|
|
@@ -936,7 +936,7 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
|
|
|
936
936
|
"dot",
|
|
937
937
|
"color"
|
|
938
938
|
])) : a("", !0),
|
|
939
|
-
u(P(
|
|
939
|
+
u(P(G), {
|
|
940
940
|
class: "me-menu__tree-arrow",
|
|
941
941
|
size: 12
|
|
942
942
|
})
|
|
@@ -1078,25 +1078,25 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
|
|
|
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
|
+
}), J = E(0), Y = 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 && !b.value ? e + t : e) - 8}px`,
|
|
1085
|
-
top: `${
|
|
1085
|
+
top: `${J.value}px`
|
|
1086
1086
|
};
|
|
1087
|
-
}),
|
|
1087
|
+
}), te = E(!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 && !te.value) {
|
|
1093
1093
|
let n = t.getBoundingClientRect();
|
|
1094
|
-
|
|
1094
|
+
J.value = Math.max(36, Math.min(e.clientY - n.top, n.height - 8 - 28));
|
|
1095
1095
|
}
|
|
1096
|
-
|
|
1097
|
-
},
|
|
1098
|
-
|
|
1099
|
-
},
|
|
1096
|
+
te.value = a;
|
|
1097
|
+
}, re = () => {
|
|
1098
|
+
te.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)), ie = r(() => h.value ? h.value : d.activeId ? d.activeId : d.defaultActiveId ? d.defaultActiveId : Q.value[0] ? X(Q.value[0]) : ""), ae = r(() => ie.value && Q.value.find((e) => X(e) === ie.value) || null), $ = r(() => ae.value?.children ? ae.value.children.filter((e) => Z(e)).sort((e, t) => e.sort - t.sort) : []), oe = r(() => g.value ? g.value : d.selectedId ? d.selectedId : d.defaultSelectedId ? d.defaultSelectedId : ""), se = r(() => oe.value ? le(d.data, oe.value) : null);
|
|
1100
1100
|
R(() => oe.value, (e) => {
|
|
1101
1101
|
if (!e) return;
|
|
1102
1102
|
me(e);
|
|
@@ -1104,7 +1104,7 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { 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
|
g.value = t, f("update:selectedId", t), f("select", e), _e(e);
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
@@ -1119,22 +1119,22 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { 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
|
v.value.has(e) ? v.value.delete(e) : v.value.add(e);
|
|
1131
1131
|
}, fe = (e) => v.value.has(e), pe = (e, t = $.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 it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
|
|
|
1145
1145
|
}, he = (e) => {
|
|
1146
1146
|
if (!e || !$.value) return null;
|
|
1147
1147
|
for (let t of $.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 it = rt, at = { class: "me-menu__tree-text" }, ot = { 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 ? (v.value.add(
|
|
1159
|
+
return n.length > 0 ? (v.value.add(X(t)), ge(n)) : t;
|
|
1160
1160
|
}, _e = (e) => {
|
|
1161
1161
|
if (!d.router || !p) return;
|
|
1162
1162
|
let t = e.meta?.path;
|
|
@@ -1166,7 +1166,7 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
|
|
|
1166
1166
|
let t = ue(e);
|
|
1167
1167
|
return t.length === 0 ? null : ge(t);
|
|
1168
1168
|
};
|
|
1169
|
-
R(() =>
|
|
1169
|
+
R(() => ie.value, () => {
|
|
1170
1170
|
let e = d.selectedId || g.value || d.defaultSelectedId, t = he(e);
|
|
1171
1171
|
if (t && $.value.length > 0) {
|
|
1172
1172
|
if (me(e), ve(t)) {
|
|
@@ -1175,14 +1175,14 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { 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
|
g.value = e, f("update:selectedId", e), f("select", n), _e(n);
|
|
1180
1180
|
return;
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
1183
|
let n = ge($.value);
|
|
1184
1184
|
if (n) {
|
|
1185
|
-
let e =
|
|
1185
|
+
let e = X(n);
|
|
1186
1186
|
g.value = e, f("update:selectedId", e), f("select", n), _e(n);
|
|
1187
1187
|
} else g.value = "", f("update:selectedId", "");
|
|
1188
1188
|
}, { immediate: !0 });
|
|
@@ -1190,7 +1190,7 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
|
|
|
1190
1190
|
b.value = !b.value, f("update:rightCollapsed", b.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 it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
|
|
|
1198
1198
|
h.value = t, g.value = "", b.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
|
g.value = t, f("update:selectedId", t), f("select", e), _e(e);
|
|
1203
1203
|
};
|
|
1204
1204
|
return c({
|
|
@@ -1221,8 +1221,8 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
|
|
|
1221
1221
|
height: F.value,
|
|
1222
1222
|
...W.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",
|
|
@@ -1232,9 +1232,9 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
|
|
|
1232
1232
|
})
|
|
1233
1233
|
}, [
|
|
1234
1234
|
s("div", lt, [k(r.$slots, "logo", {}, () => [c[0] ||= s("span", { class: "me-menu__logo-text" }, "MeMenu", -1)])]),
|
|
1235
|
-
s("div", ut, [(C(!0), o(e, null, O(
|
|
1235
|
+
s("div", ut, [(C(!0), o(e, null, O(Q.value, (t) => (C(), o(e, { key: X(t) }, [t.meta?.divider ? (C(), o("div", dt)) : a("", !0), s("div", {
|
|
1236
1236
|
class: _(["me-menu__left-item", {
|
|
1237
|
-
"is-active":
|
|
1237
|
+
"is-active": ie.value === X(t),
|
|
1238
1238
|
"is-disabled": !t.enableFlag
|
|
1239
1239
|
}]),
|
|
1240
1240
|
onClick: (e) => xe(t)
|
|
@@ -1264,40 +1264,40 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
|
|
|
1264
1264
|
B(s("div", {
|
|
1265
1265
|
class: _(["me-menu__right", { "is-collapsed": b.value }]),
|
|
1266
1266
|
style: y({ "--me-menu-right-width": U.value })
|
|
1267
|
-
}, [s("div", ht, [(C(!0), o(e, null, O($.value, (t) => (C(), o(e, { key:
|
|
1267
|
+
}, [s("div", ht, [(C(!0), o(e, null, O($.value, (t) => (C(), o(e, { key: X(t) }, [t.meta?.type === "group" ? (C(), o(e, { key: 0 }, [s("div", gt, [s("div", {
|
|
1268
1268
|
class: "me-menu__section-header",
|
|
1269
|
-
onClick: (e) => de(
|
|
1270
|
-
}, [u(P(
|
|
1271
|
-
class: _(["me-menu__section-arrow", { "is-expanded": fe(
|
|
1269
|
+
onClick: (e) => de(X(t))
|
|
1270
|
+
}, [u(P(G), {
|
|
1271
|
+
class: _(["me-menu__section-arrow", { "is-expanded": fe(X(t)) }]),
|
|
1272
1272
|
size: 12
|
|
1273
1273
|
}, null, 8, ["class"]), s("span", vt, N(t.title), 1)], 8, _t), u(n, { name: "me-menu-section" }, {
|
|
1274
1274
|
default: z(() => [B(s("div", yt, [(C(!0), o(e, null, O(ue(t), (e) => (C(), i(ct, {
|
|
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), [[L, fe(
|
|
1280
|
+
}, null, 8, ["item"]))), 128))], 512), [[L, 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 ? (C(), o(e, { key: 1 }, [s("div", bt, [s("div", {
|
|
1283
1283
|
class: "me-menu__section-header",
|
|
1284
|
-
onClick: (e) => de(
|
|
1285
|
-
}, [u(P(
|
|
1286
|
-
class: _(["me-menu__section-arrow", { "is-expanded": fe(
|
|
1284
|
+
onClick: (e) => de(X(t))
|
|
1285
|
+
}, [u(P(G), {
|
|
1286
|
+
class: _(["me-menu__section-arrow", { "is-expanded": fe(X(t)) }]),
|
|
1287
1287
|
size: 12
|
|
1288
1288
|
}, null, 8, ["class"]), s("span", St, N(t.title), 1)], 8, xt), u(n, { name: "me-menu-section" }, {
|
|
1289
1289
|
default: z(() => [B(s("div", Ct, [(C(!0), o(e, null, O(ue(t), (e) => (C(), i(ct, {
|
|
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), [[L, fe(
|
|
1295
|
+
}, null, 8, ["item"]))), 128))], 512), [[L, fe(X(t))]])]),
|
|
1296
1296
|
_: 2
|
|
1297
1297
|
}, 1024)]), c[3] ||= s("div", { class: "me-menu__section-divider" }, null, -1)], 64)) : (C(), o("div", {
|
|
1298
1298
|
key: 2,
|
|
1299
1299
|
class: _(["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 it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
|
|
|
1323
1323
|
], 10, wt))], 64))), 128))])], 6), [[L, H.value]]),
|
|
1324
1324
|
t.showRightToggle ? (C(), o("div", {
|
|
1325
1325
|
key: 0,
|
|
1326
|
-
class: _(["me-menu__right-toggle", { "is-visible":
|
|
1327
|
-
style: y(
|
|
1326
|
+
class: _(["me-menu__right-toggle", { "is-visible": te.value }]),
|
|
1327
|
+
style: y(Y.value),
|
|
1328
1328
|
onClick: be
|
|
1329
|
-
}, [k(r.$slots, "right-toggle", { collapsed: V.value }, () => [V.value ? (C(), i(P(
|
|
1329
|
+
}, [k(r.$slots, "right-toggle", { collapsed: V.value }, () => [V.value ? (C(), i(P(q), {
|
|
1330
1330
|
key: 0,
|
|
1331
1331
|
size: 14
|
|
1332
|
-
})) : (C(), i(P(
|
|
1332
|
+
})) : (C(), i(P(K), {
|
|
1333
1333
|
key: 1,
|
|
1334
1334
|
size: 14
|
|
1335
1335
|
}))])], 6)) : a("", !0)
|
|
@@ -1535,24 +1535,24 @@ var At = {
|
|
|
1535
1535
|
"close-all"
|
|
1536
1536
|
],
|
|
1537
1537
|
setup(t, { expose: n, emit: c }) {
|
|
1538
|
-
let l = t, d = c, f = r(() => l.tabProps.key ?? "path"), m = r(() => l.tabProps.label ?? "title"), h = r(() => l.tabProps.isHome ?? "isHome"), v = r(() => l.tabProps.lock ?? "lock"), S = r(() => l.tabProps.icon ?? "icon"), w = r(() => l.width ? typeof l.width == "number" ? `${l.width}px` : l.width : ""), T = r(() => l.titleMaxWidth === void 0 ? {} : { maxWidth: typeof l.titleMaxWidth == "number" ? `${l.titleMaxWidth}px` : l.titleMaxWidth }), D = r(() => l.titleMaxWidth !== void 0), M = (e) => e ? (typeof e == "object" || typeof e == "function") && typeof e != "string" : !1, F = E(null), I = E(null), L = E(null), B = E(l.modelValue), { translateX: H, showLeftArrow: ee, showRightArrow: W, isSmooth:
|
|
1538
|
+
let l = t, d = c, f = r(() => l.tabProps.key ?? "path"), m = r(() => l.tabProps.label ?? "title"), h = r(() => l.tabProps.isHome ?? "isHome"), v = r(() => l.tabProps.lock ?? "lock"), S = r(() => l.tabProps.icon ?? "icon"), w = r(() => l.width ? typeof l.width == "number" ? `${l.width}px` : l.width : ""), T = r(() => l.titleMaxWidth === void 0 ? {} : { maxWidth: typeof l.titleMaxWidth == "number" ? `${l.titleMaxWidth}px` : l.titleMaxWidth }), D = r(() => l.titleMaxWidth !== void 0), M = (e) => e ? (typeof e == "object" || typeof e == "function") && typeof e != "string" : !1, F = E(null), I = E(null), L = E(null), B = E(l.modelValue), { translateX: H, showLeftArrow: ee, showRightArrow: W, isSmooth: G, isScrollable: K, withSmooth: q, updateArrowVisibility: J, clampTranslateX: Y, scrollLeft: te, scrollRight: ne, canScroll: re } = Ot(I, L), X = null;
|
|
1539
1539
|
R(H, (e) => {
|
|
1540
|
-
|
|
1541
|
-
|
|
1540
|
+
X === null && (X = requestAnimationFrame(() => {
|
|
1541
|
+
X = null, d("scroll", e);
|
|
1542
1542
|
}));
|
|
1543
1543
|
}), b(() => {
|
|
1544
|
-
|
|
1544
|
+
X !== null && cancelAnimationFrame(X);
|
|
1545
1545
|
});
|
|
1546
|
-
let { isDragging:
|
|
1547
|
-
canScroll:
|
|
1546
|
+
let { isDragging: Z, handleDragStart: Q, handleTouchStart: ie, setDragRefs: ae, getHasDragged: $, resetHasDragged: oe } = kt({
|
|
1547
|
+
canScroll: re,
|
|
1548
1548
|
translateX: H,
|
|
1549
|
-
clampTranslateX:
|
|
1550
|
-
updateArrowVisibility:
|
|
1549
|
+
clampTranslateX: Y,
|
|
1550
|
+
updateArrowVisibility: J
|
|
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, H.value -= se, se = 0,
|
|
1555
|
+
ce = null, H.value -= se, se = 0, Y(), J();
|
|
1556
1556
|
})));
|
|
1557
1557
|
};
|
|
1558
1558
|
b(() => {
|
|
@@ -1572,10 +1572,10 @@ var At = {
|
|
|
1572
1572
|
let n = I.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) && (G.value = !0, requestAnimationFrame(() => {
|
|
1576
1576
|
requestAnimationFrame(() => {
|
|
1577
|
-
H.value -= o,
|
|
1578
|
-
|
|
1577
|
+
H.value -= o, Y(), J(), setTimeout(() => {
|
|
1578
|
+
G.value = !1;
|
|
1579
1579
|
}, 300);
|
|
1580
1580
|
});
|
|
1581
1581
|
}));
|
|
@@ -1584,12 +1584,12 @@ var At = {
|
|
|
1584
1584
|
let t = e ?? B.value;
|
|
1585
1585
|
t && fe(t);
|
|
1586
1586
|
}, me = () => {
|
|
1587
|
-
|
|
1588
|
-
H.value = 0,
|
|
1587
|
+
q(() => {
|
|
1588
|
+
H.value = 0, Y(), J();
|
|
1589
1589
|
});
|
|
1590
1590
|
}, he = () => {
|
|
1591
|
-
|
|
1592
|
-
!I.value || !L.value || (H.value = I.value.clientWidth - L.value.scrollWidth,
|
|
1591
|
+
q(() => {
|
|
1592
|
+
!I.value || !L.value || (H.value = I.value.clientWidth - L.value.scrollWidth, Y(), J());
|
|
1593
1593
|
});
|
|
1594
1594
|
}, ge = (e) => l.closable ? !e[h.value] && !e[v.value] : !1, _e = {
|
|
1595
1595
|
refresh: "RefreshCw",
|
|
@@ -1750,22 +1750,22 @@ var At = {
|
|
|
1750
1750
|
B.value = e, pe(e);
|
|
1751
1751
|
}), R(() => l.tabList, () => {
|
|
1752
1752
|
g(() => {
|
|
1753
|
-
pe(B.value),
|
|
1753
|
+
pe(B.value), J();
|
|
1754
1754
|
});
|
|
1755
1755
|
}, {
|
|
1756
1756
|
flush: "post",
|
|
1757
1757
|
deep: !0
|
|
1758
1758
|
}), R(() => l.width, () => {
|
|
1759
1759
|
g(() => {
|
|
1760
|
-
|
|
1760
|
+
Y(), J(), pe(B.value);
|
|
1761
1761
|
});
|
|
1762
1762
|
});
|
|
1763
1763
|
let Ee = null, De = () => {
|
|
1764
|
-
|
|
1764
|
+
Y(), J(), pe(B.value);
|
|
1765
1765
|
};
|
|
1766
1766
|
return x(() => {
|
|
1767
1767
|
ae(I.value, L.value), g(() => {
|
|
1768
|
-
|
|
1768
|
+
J(), B.value && pe(B.value);
|
|
1769
1769
|
}), typeof ResizeObserver < "u" && I.value && (Ee = new ResizeObserver(() => {
|
|
1770
1770
|
De();
|
|
1771
1771
|
}), Ee.observe(I.value));
|
|
@@ -1792,26 +1792,26 @@ var At = {
|
|
|
1792
1792
|
class: _(["me-nav__arrow me-nav__arrow--left", { "is-hidden": !P(ee) }]),
|
|
1793
1793
|
role: "button",
|
|
1794
1794
|
"aria-label": "向左滚动",
|
|
1795
|
-
onClick: r[0] ||= (...e) => P(
|
|
1795
|
+
onClick: r[0] ||= (...e) => P(te) && P(te)(...e)
|
|
1796
1796
|
}, [u(Me, {
|
|
1797
1797
|
name: "ChevronLeft",
|
|
1798
1798
|
size: 14
|
|
1799
1799
|
})], 2),
|
|
1800
1800
|
s("div", {
|
|
1801
1801
|
class: _(["me-nav__scroll", {
|
|
1802
|
-
"is-dragging": P(
|
|
1803
|
-
"is-scrollable": P(
|
|
1802
|
+
"is-dragging": P(Z),
|
|
1803
|
+
"is-scrollable": P(K)
|
|
1804
1804
|
}]),
|
|
1805
1805
|
ref_key: "scrollRef",
|
|
1806
1806
|
ref: I,
|
|
1807
1807
|
onWheel: le,
|
|
1808
|
-
onMousedown: r[1] ||= (...e) => P(
|
|
1809
|
-
onTouchstartPassive: r[2] ||= (...e) => P(
|
|
1808
|
+
onMousedown: r[1] ||= (...e) => P(Q) && P(Q)(...e),
|
|
1809
|
+
onTouchstartPassive: r[2] ||= (...e) => P(ie) && P(ie)(...e),
|
|
1810
1810
|
onContextmenu: r[3] ||= V(() => {}, ["prevent"])
|
|
1811
1811
|
}, [
|
|
1812
1812
|
t.edgeFade && P(ee) ? (C(), o("div", jt)) : a("", !0),
|
|
1813
1813
|
s("div", {
|
|
1814
|
-
class: _(["me-nav__list", { "is-smooth": P(
|
|
1814
|
+
class: _(["me-nav__list", { "is-smooth": P(G) }]),
|
|
1815
1815
|
ref_key: "listRef",
|
|
1816
1816
|
ref: L,
|
|
1817
1817
|
style: y({ transform: `translateX(${P(H)}px)` })
|
|
@@ -1883,7 +1883,7 @@ var At = {
|
|
|
1883
1883
|
class: _(["me-nav__arrow me-nav__arrow--right", { "is-hidden": !P(W) }]),
|
|
1884
1884
|
role: "button",
|
|
1885
1885
|
"aria-label": "向右滚动",
|
|
1886
|
-
onClick: r[4] ||= (...e) => P(
|
|
1886
|
+
onClick: r[4] ||= (...e) => P(ne) && P(ne)(...e)
|
|
1887
1887
|
}, [u(Me, {
|
|
1888
1888
|
name: "ChevronRight",
|
|
1889
1889
|
size: 14
|
|
@@ -2153,10 +2153,10 @@ var Bt = zt, Vt = { class: "me-skeleton__card-body" }, Ht = { class: "me-skeleto
|
|
|
2153
2153
|
type: "button",
|
|
2154
2154
|
title: g.value ? "退出全屏" : "全屏",
|
|
2155
2155
|
onClick: V(S, ["stop"])
|
|
2156
|
-
}, [g.value ? (C(), i(P(
|
|
2156
|
+
}, [g.value ? (C(), i(P(X), {
|
|
2157
2157
|
key: 1,
|
|
2158
2158
|
size: 16
|
|
2159
|
-
})) : (C(), i(P(
|
|
2159
|
+
})) : (C(), i(P(ne), {
|
|
2160
2160
|
key: 0,
|
|
2161
2161
|
size: 16
|
|
2162
2162
|
}))], 8, Yt)) : a("", !0), e.closable ? (C(), o("button", {
|
|
@@ -2165,7 +2165,7 @@ var Bt = zt, Vt = { class: "me-skeleton__card-body" }, Ht = { class: "me-skeleto
|
|
|
2165
2165
|
type: "button",
|
|
2166
2166
|
title: "关闭",
|
|
2167
2167
|
onClick: V(w, ["stop"])
|
|
2168
|
-
}, [u(P(
|
|
2168
|
+
}, [u(P(ie), { size: 16 })])) : a("", !0)])]),
|
|
2169
2169
|
s("div", {
|
|
2170
2170
|
class: "me-modal__body",
|
|
2171
2171
|
style: y(e.bodyStyle)
|
|
@@ -3045,7 +3045,7 @@ var Cn = Sn, wn = { class: "me-tree-menu-edit__scroll" }, Tn = { class: "me-tree
|
|
|
3045
3045
|
};
|
|
3046
3046
|
return r(c.list);
|
|
3047
3047
|
}), L = E(""), B = () => {
|
|
3048
|
-
L.value = "create",
|
|
3048
|
+
L.value = "create", Y(), d("create");
|
|
3049
3049
|
}, H = async () => {
|
|
3050
3050
|
await m.value?.validate() && d("update", c.form);
|
|
3051
3051
|
}, ee = (e) => [
|
|
@@ -3053,21 +3053,21 @@ var Cn = Sn, wn = { class: "me-tree-menu-edit__scroll" }, Tn = { class: "me-tree
|
|
|
3053
3053
|
label: `添加子${c.label}`,
|
|
3054
3054
|
icon: "PlusCircle",
|
|
3055
3055
|
onClick: () => {
|
|
3056
|
-
L.value = "create-child",
|
|
3056
|
+
L.value = "create-child", Y(), d("context-menu-add", e);
|
|
3057
3057
|
}
|
|
3058
3058
|
},
|
|
3059
3059
|
{
|
|
3060
3060
|
label: `编辑${c.label}`,
|
|
3061
3061
|
icon: "Pencil",
|
|
3062
3062
|
onClick: () => {
|
|
3063
|
-
L.value = "edit",
|
|
3063
|
+
L.value = "edit", Y(), d("context-menu-edit", e);
|
|
3064
3064
|
}
|
|
3065
3065
|
},
|
|
3066
3066
|
{
|
|
3067
3067
|
label: `复制${c.label}`,
|
|
3068
3068
|
icon: "Copy",
|
|
3069
3069
|
onClick: () => {
|
|
3070
|
-
L.value = "copy",
|
|
3070
|
+
L.value = "copy", Y(), d("context-menu-copy", e);
|
|
3071
3071
|
}
|
|
3072
3072
|
},
|
|
3073
3073
|
{
|
|
@@ -3091,18 +3091,18 @@ var Cn = Sn, wn = { class: "me-tree-menu-edit__scroll" }, Tn = { class: "me-tree
|
|
|
3091
3091
|
}
|
|
3092
3092
|
})),
|
|
3093
3093
|
onClick: () => {}
|
|
3094
|
-
}),
|
|
3094
|
+
}), G = (e) => {
|
|
3095
3095
|
e.event.preventDefault();
|
|
3096
3096
|
let t = e.node?.dataRef || e.node || {}, n = D.value.key || "id";
|
|
3097
3097
|
v.value = [t[n]];
|
|
3098
|
-
},
|
|
3098
|
+
}, K = (e, t) => {
|
|
3099
3099
|
if (v.value = e, e.length > 0 && t?.node) {
|
|
3100
3100
|
let e = t.node.dataRef || t.node || {};
|
|
3101
|
-
L.value = "edit",
|
|
3101
|
+
L.value = "edit", Y(), d("node-click", e);
|
|
3102
3102
|
}
|
|
3103
|
-
},
|
|
3103
|
+
}, q = (e) => {
|
|
3104
3104
|
if (!c.fetchDataHandle) return;
|
|
3105
|
-
let t = e.dragNode, n = e.node, r = e.dropPosition, i = D.value.key || "id", a = D.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 = D.value.key || "id", a = D.value.children || "children", o = String(t[i]), s = r === 0 ? String(n[i]) : n.parentId || n.parentNode?.[i] || "0", l = J(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 Cn = Sn, wn = { class: "me-tree-menu-edit__scroll" }, Tn = { class: "me-tree
|
|
|
3138
3138
|
cancel: () => (c.fetchDataHandle?.({ expandKeys: [s] }), !0)
|
|
3139
3139
|
}
|
|
3140
3140
|
});
|
|
3141
|
-
},
|
|
3141
|
+
}, J = (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
|
+
}, Y = () => {
|
|
3149
3149
|
c.openHandle ? c.openHandle() : m.value?.open();
|
|
3150
3150
|
};
|
|
3151
3151
|
return t({
|
|
3152
|
-
open:
|
|
3152
|
+
open: Y,
|
|
3153
3153
|
close: () => {
|
|
3154
3154
|
m.value?.close();
|
|
3155
3155
|
},
|
|
@@ -3210,9 +3210,9 @@ var Cn = Sn, wn = { class: "me-tree-menu-edit__scroll" }, Tn = { class: "me-tree
|
|
|
3210
3210
|
"expanded-keys": _.value,
|
|
3211
3211
|
"selected-keys": v.value,
|
|
3212
3212
|
"onUpdate:expandedKeys": S,
|
|
3213
|
-
onSelect:
|
|
3214
|
-
onRightClick:
|
|
3215
|
-
onDrop:
|
|
3213
|
+
onSelect: K,
|
|
3214
|
+
onRightClick: G,
|
|
3215
|
+
onDrop: q
|
|
3216
3216
|
}, {
|
|
3217
3217
|
titleRender: z((e) => [s("div", Nn, [s("div", Pn, [k(t.$slots, "label", { data: e }, () => [u(rn, {
|
|
3218
3218
|
actions: h.value,
|
|
@@ -7319,7 +7319,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
7319
7319
|
})(e);
|
|
7320
7320
|
}
|
|
7321
7321
|
n.r(t), n.d(t, { treeModeMixins: function() {
|
|
7322
|
-
return
|
|
7322
|
+
return ne;
|
|
7323
7323
|
} });
|
|
7324
7324
|
function i(e) {
|
|
7325
7325
|
return c(e) ? e : String(e);
|
|
@@ -9587,7 +9587,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
9587
9587
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9588
9588
|
})(e);
|
|
9589
9589
|
}
|
|
9590
|
-
function
|
|
9590
|
+
function G(e, t) {
|
|
9591
9591
|
for (var n = 0; n < t.length; n++) {
|
|
9592
9592
|
var r = t[n];
|
|
9593
9593
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ((e) => (e = ((e, t) => {
|
|
@@ -9599,7 +9599,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
9599
9599
|
})(e, "string"), W(e) == "symbol" ? e : e + ""))(r.key), r);
|
|
9600
9600
|
}
|
|
9601
9601
|
}
|
|
9602
|
-
var
|
|
9602
|
+
var K = (() => {
|
|
9603
9603
|
function e(t, n) {
|
|
9604
9604
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function");
|
|
9605
9605
|
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) {
|
|
@@ -9715,29 +9715,29 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
9715
9715
|
this.editor = null, this.dom.container.removeChild(this.dom.wrapper), this.dom = null, this.results = null, this.activeResult = null, this._clearDelay();
|
|
9716
9716
|
}
|
|
9717
9717
|
}
|
|
9718
|
-
]) &&
|
|
9718
|
+
]) && G(t.prototype, n), r && G(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9719
9719
|
var t, n, r;
|
|
9720
9720
|
})();
|
|
9721
|
-
function
|
|
9722
|
-
return (
|
|
9721
|
+
function q(e) {
|
|
9722
|
+
return (q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9723
9723
|
return typeof e;
|
|
9724
9724
|
} : function(e) {
|
|
9725
9725
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9726
9726
|
})(e);
|
|
9727
9727
|
}
|
|
9728
|
-
function
|
|
9728
|
+
function J(e, t) {
|
|
9729
9729
|
for (var n = 0; n < t.length; n++) {
|
|
9730
9730
|
var r = t[n];
|
|
9731
9731
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ((e) => (e = ((e, t) => {
|
|
9732
|
-
if (
|
|
9732
|
+
if (q(e) != "object" || !e) return e;
|
|
9733
9733
|
var n = e[Symbol.toPrimitive];
|
|
9734
9734
|
if (n === void 0) return (t === "string" ? String : Number)(e);
|
|
9735
|
-
if (
|
|
9735
|
+
if (q(n = n.call(e, t || "default")) != "object") return n;
|
|
9736
9736
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
9737
|
-
})(e, "string"),
|
|
9737
|
+
})(e, "string"), q(e) == "symbol" ? e : e + ""))(r.key), r);
|
|
9738
9738
|
}
|
|
9739
9739
|
}
|
|
9740
|
-
var
|
|
9740
|
+
var Y = (() => {
|
|
9741
9741
|
function e(t, n) {
|
|
9742
9742
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function");
|
|
9743
9743
|
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());
|
|
@@ -9789,9 +9789,9 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
9789
9789
|
typeof e == "function" && (this.contextMenuCallback = e);
|
|
9790
9790
|
}
|
|
9791
9791
|
}
|
|
9792
|
-
]) &&
|
|
9792
|
+
]) && J(t.prototype, n), r && J(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9793
9793
|
var t, n, r;
|
|
9794
|
-
})(), t = n(1746),
|
|
9794
|
+
})(), t = n(1746), te = n.n(t), n = {
|
|
9795
9795
|
create: function(e, t) {
|
|
9796
9796
|
if (!e) throw Error("No container element provided.");
|
|
9797
9797
|
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();
|
|
@@ -9816,7 +9816,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
9816
9816
|
colorPicker: !0,
|
|
9817
9817
|
onColorPicker: function(e, t, n) {
|
|
9818
9818
|
var r;
|
|
9819
|
-
|
|
9819
|
+
te() ? (r = e.getBoundingClientRect().top, r = (0, S.getWindow)(e).innerHeight - r < 300 && 300 < r, new (te())({
|
|
9820
9820
|
parent: e,
|
|
9821
9821
|
color: t,
|
|
9822
9822
|
popup: r ? "top" : "bottom",
|
|
@@ -10091,7 +10091,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10091
10091
|
} catch (e) {
|
|
10092
10092
|
a._onError(e);
|
|
10093
10093
|
}
|
|
10094
|
-
})), this.options.search) && (this.searchBox = new
|
|
10094
|
+
})), this.options.search) && (this.searchBox = new K(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 Y(this.navBar, this.getPopupAnchor()), this.treePath.onSectionSelected(this._onTreePathSectionSelected.bind(this)), this.treePath.onContextMenuItemSelected(this._onTreePathMenuItemSelected.bind(this)));
|
|
10095
10095
|
},
|
|
10096
10096
|
_onUndo: function() {
|
|
10097
10097
|
this.history && (this.history.undo(), this._onChange());
|
|
@@ -10276,7 +10276,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10276
10276
|
n.push(e.serialize());
|
|
10277
10277
|
}), n;
|
|
10278
10278
|
}
|
|
10279
|
-
},
|
|
10279
|
+
}, ne = [
|
|
10280
10280
|
{
|
|
10281
10281
|
mode: "tree",
|
|
10282
10282
|
mixin: n,
|
|
@@ -10325,13 +10325,13 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10325
10325
|
return v;
|
|
10326
10326
|
},
|
|
10327
10327
|
compileJSONPointer: function() {
|
|
10328
|
-
return
|
|
10328
|
+
return Q;
|
|
10329
10329
|
},
|
|
10330
10330
|
contains: function() {
|
|
10331
10331
|
return ge;
|
|
10332
10332
|
},
|
|
10333
10333
|
debounce: function() {
|
|
10334
|
-
return
|
|
10334
|
+
return te;
|
|
10335
10335
|
},
|
|
10336
10336
|
escapeUnicodeChars: function() {
|
|
10337
10337
|
return h;
|
|
@@ -10358,22 +10358,22 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10358
10358
|
return ce;
|
|
10359
10359
|
},
|
|
10360
10360
|
getColorCSS: function() {
|
|
10361
|
-
return
|
|
10361
|
+
return ie;
|
|
10362
10362
|
},
|
|
10363
10363
|
getIndexForPosition: function() {
|
|
10364
|
-
return
|
|
10364
|
+
return X;
|
|
10365
10365
|
},
|
|
10366
10366
|
getInnerText: function() {
|
|
10367
10367
|
return I;
|
|
10368
10368
|
},
|
|
10369
10369
|
getInputSelection: function() {
|
|
10370
|
-
return
|
|
10370
|
+
return re;
|
|
10371
10371
|
},
|
|
10372
10372
|
getInternetExplorerVersion: function() {
|
|
10373
10373
|
return z;
|
|
10374
10374
|
},
|
|
10375
10375
|
getPositionForPath: function() {
|
|
10376
|
-
return
|
|
10376
|
+
return Z;
|
|
10377
10377
|
},
|
|
10378
10378
|
getSelection: function() {
|
|
10379
10379
|
return M;
|
|
@@ -10391,10 +10391,10 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10391
10391
|
return R;
|
|
10392
10392
|
},
|
|
10393
10393
|
improveSchemaError: function() {
|
|
10394
|
-
return
|
|
10394
|
+
return K;
|
|
10395
10395
|
},
|
|
10396
10396
|
insideRect: function() {
|
|
10397
|
-
return
|
|
10397
|
+
return Y;
|
|
10398
10398
|
},
|
|
10399
10399
|
isArray: function() {
|
|
10400
10400
|
return S;
|
|
@@ -10409,7 +10409,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10409
10409
|
return he;
|
|
10410
10410
|
},
|
|
10411
10411
|
isPromise: function() {
|
|
10412
|
-
return
|
|
10412
|
+
return q;
|
|
10413
10413
|
},
|
|
10414
10414
|
isTimestamp: function() {
|
|
10415
10415
|
return fe;
|
|
@@ -10421,7 +10421,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10421
10421
|
return ae;
|
|
10422
10422
|
},
|
|
10423
10423
|
isValidValidationError: function() {
|
|
10424
|
-
return
|
|
10424
|
+
return J;
|
|
10425
10425
|
},
|
|
10426
10426
|
isValidationErrorChanged: function() {
|
|
10427
10427
|
return _e;
|
|
@@ -10472,13 +10472,13 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10472
10472
|
return ue;
|
|
10473
10473
|
},
|
|
10474
10474
|
stringifyPath: function() {
|
|
10475
|
-
return
|
|
10475
|
+
return G;
|
|
10476
10476
|
},
|
|
10477
10477
|
stripFormatting: function() {
|
|
10478
10478
|
return k;
|
|
10479
10479
|
},
|
|
10480
10480
|
textDiff: function() {
|
|
10481
|
-
return
|
|
10481
|
+
return ne;
|
|
10482
10482
|
},
|
|
10483
10483
|
tryJsonRepair: function() {
|
|
10484
10484
|
return m;
|
|
@@ -10700,27 +10700,27 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10700
10700
|
}
|
|
10701
10701
|
return t;
|
|
10702
10702
|
}
|
|
10703
|
-
function
|
|
10703
|
+
function G(e) {
|
|
10704
10704
|
return e.map(function(e) {
|
|
10705
10705
|
return typeof e == "number" ? "[" + e + "]" : typeof e == "string" && e.match(/^[A-Za-z0-9_$]+$/) ? "." + e : "[\"" + e + "\"]";
|
|
10706
10706
|
}).join("");
|
|
10707
10707
|
}
|
|
10708
|
-
function
|
|
10708
|
+
function K(e) {
|
|
10709
10709
|
var t, n;
|
|
10710
10710
|
return e.keyword === "enum" && Array.isArray(e.schema) && (n = e.schema) && (5 < (n = n.map(function(e) {
|
|
10711
10711
|
return JSON.stringify(e);
|
|
10712
10712
|
})).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;
|
|
10713
10713
|
}
|
|
10714
|
-
function
|
|
10714
|
+
function q(e) {
|
|
10715
10715
|
return e && typeof e.then == "function" && typeof e.catch == "function";
|
|
10716
10716
|
}
|
|
10717
|
-
function
|
|
10717
|
+
function J(e) {
|
|
10718
10718
|
return u(e) === "object" && Array.isArray(e.path) && typeof e.message == "string";
|
|
10719
10719
|
}
|
|
10720
|
-
function
|
|
10720
|
+
function Y(e, t, n) {
|
|
10721
10721
|
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;
|
|
10722
10722
|
}
|
|
10723
|
-
function
|
|
10723
|
+
function te(e, t, n) {
|
|
10724
10724
|
var r;
|
|
10725
10725
|
return function() {
|
|
10726
10726
|
var i = this, a = arguments, o = n && !r;
|
|
@@ -10729,7 +10729,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10729
10729
|
}, t), o && e.apply(i, a);
|
|
10730
10730
|
};
|
|
10731
10731
|
}
|
|
10732
|
-
function
|
|
10732
|
+
function ne(e, t) {
|
|
10733
10733
|
for (var n = t.length, r = 0, i = e.length, a = t.length; t.charAt(r) === e.charAt(r) && r < n;) r++;
|
|
10734
10734
|
for (; t.charAt(a - 1) === e.charAt(i - 1) && r < a && 0 < i;) a--, i--;
|
|
10735
10735
|
return {
|
|
@@ -10737,7 +10737,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10737
10737
|
end: a
|
|
10738
10738
|
};
|
|
10739
10739
|
}
|
|
10740
|
-
function
|
|
10740
|
+
function re(e) {
|
|
10741
10741
|
var t, n, r, i, a = 0, o = 0;
|
|
10742
10742
|
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))), {
|
|
10743
10743
|
startIndex: a,
|
|
@@ -10752,11 +10752,11 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10752
10752
|
};
|
|
10753
10753
|
}
|
|
10754
10754
|
}
|
|
10755
|
-
function
|
|
10755
|
+
function X(e, t, n) {
|
|
10756
10756
|
var e = e.value || "";
|
|
10757
10757
|
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;
|
|
10758
10758
|
}
|
|
10759
|
-
function
|
|
10759
|
+
function Z(e, t) {
|
|
10760
10760
|
var n, r = [];
|
|
10761
10761
|
if (t && t.length) {
|
|
10762
10762
|
try {
|
|
@@ -10765,7 +10765,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10765
10765
|
return r;
|
|
10766
10766
|
}
|
|
10767
10767
|
t.forEach(function(e) {
|
|
10768
|
-
var t =
|
|
10768
|
+
var t = Q(W(e)), t = n.pointers[t];
|
|
10769
10769
|
t && r.push({
|
|
10770
10770
|
path: e,
|
|
10771
10771
|
line: t.key ? t.key.line : t.value ? t.value.line : 0,
|
|
@@ -10775,17 +10775,17 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
10775
10775
|
}
|
|
10776
10776
|
return r;
|
|
10777
10777
|
}
|
|
10778
|
-
function
|
|
10778
|
+
function Q(e) {
|
|
10779
10779
|
return e.map(function(e) {
|
|
10780
10780
|
return "/" + String(e).replace(/~/g, "~0").replace(/\//g, "~1");
|
|
10781
10781
|
}).join("");
|
|
10782
10782
|
}
|
|
10783
|
-
function
|
|
10783
|
+
function ie(e) {
|
|
10784
10784
|
var t = document.createElement("div");
|
|
10785
10785
|
return t.style.color = e, t.style.color.split(/\s+/).join("").toLowerCase() || null;
|
|
10786
10786
|
}
|
|
10787
10787
|
function ae(e) {
|
|
10788
|
-
return !!
|
|
10788
|
+
return !!ie(e);
|
|
10789
10789
|
}
|
|
10790
10790
|
function $(e, t) {
|
|
10791
10791
|
var n;
|
|
@@ -24910,25 +24910,25 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
24910
24910
|
}
|
|
24911
24911
|
if (x.length) {
|
|
24912
24912
|
var F = x;
|
|
24913
|
-
if (F) for (var I = -1, L = F.length - 1; I < L;)
|
|
24913
|
+
if (F) for (var I = -1, L = F.length - 1; I < L;) ne = F[I += 1], i += " || " + e.usePattern(ne) + ".test(" + h + ") ";
|
|
24914
24914
|
}
|
|
24915
24915
|
i += " ); if (isAdditional" + a + ") { ";
|
|
24916
24916
|
}
|
|
24917
|
-
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 + "]; " : (
|
|
24917
|
+
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 + "]; " : (G = l, l = e.errSchemaPath + "/additionalProperties", (q ||= []).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 += " } "), J = i, i = q.pop(), !e.compositeRule && u ? e.async ? i += " throw new ValidationError([" + J + "]); " : i += " validate.errors = [" + J + "]; return false; " : i += " var err = " + J + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", l = G, 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 += "}");
|
|
24918
24918
|
}
|
|
24919
24919
|
var R = e.opts.useDefaults && !e.compositeRule;
|
|
24920
24920
|
if (o.length) {
|
|
24921
24921
|
var z = o;
|
|
24922
24922
|
if (z) for (var B, V = -1, H = z.length - 1; V < H;) {
|
|
24923
|
-
var ee, U, W,
|
|
24924
|
-
(e.opts.strictKeywords ? typeof
|
|
24923
|
+
var ee, U, W, G, K, q, J, Y = s[B = z[V += 1]];
|
|
24924
|
+
(e.opts.strictKeywords ? typeof Y == "object" && 0 < Object.keys(Y).length || !1 === Y : e.util.schemaHasRules(Y, e.RULES.all)) && (Z = d + (K = e.util.getProperty(B)), ee = R && Y.default !== void 0, f.schema = Y, f.schemaPath = c + K, 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, G = l, K = e.util.escapeQuotes(B), e.opts._errorDataPathProperty && (e.errorPath = e.util.getPath(W, B, e.opts.jsonPointers)), l = e.errSchemaPath + "/required", (q ||= []).push(i), i = "", !1 === e.createErrors ? i += " {} " : (i += " { keyword: 'required' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(l) + " , params: { missingProperty: '" + K + "' } ", !1 !== e.opts.messages && (i += " , message: '", e.opts._errorDataPathProperty ? i += "is a required property" : i += "should have required property \\'" + K + "\\'", i += "' "), e.opts.verbose && (i += " , schema: validate.schema" + c + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + d + " "), i += " } "), J = i, i = q.pop(), !e.compositeRule && u ? e.async ? i += " throw new ValidationError([" + J + "]); " : i += " validate.errors = [" + J + "]; return false; " : i += " var err = " + J + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", l = G, 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 += "}");
|
|
24925
24925
|
}
|
|
24926
24926
|
}
|
|
24927
24927
|
if (x.length) {
|
|
24928
|
-
var
|
|
24929
|
-
if (
|
|
24930
|
-
var
|
|
24931
|
-
(e.opts.strictKeywords ? typeof
|
|
24928
|
+
var te = x;
|
|
24929
|
+
if (te) for (var ne, re = -1, X = te.length - 1; re < X;) {
|
|
24930
|
+
var Z, Q, Y = b[ne = te[re += 1]];
|
|
24931
|
+
(e.opts.strictKeywords ? typeof Y == "object" && 0 < Object.keys(Y).length || !1 === Y : e.util.schemaHasRules(Y, e.RULES.all)) && (f.schema = Y, 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 += "}");
|
|
24932
24932
|
}
|
|
24933
24933
|
}
|
|
24934
24934
|
return u && (i += " " + p + " if (" + t + " == errors) {"), i;
|
|
@@ -25050,7 +25050,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
25050
25050
|
if (e.schema.$comment && e.opts.$comment && (r += " " + e.RULES.all.$comment.code(e, "$comment")), _) {
|
|
25051
25051
|
e.opts.coerceTypes && (y = e.util.coerceToTypes(e.opts.coerceTypes, _));
|
|
25052
25052
|
var y, b = e.RULES.types[_];
|
|
25053
|
-
if (y || v || !0 === b || b && !
|
|
25053
|
+
if (y || v || !0 === b || b && !K(b)) {
|
|
25054
25054
|
var x = e.schemaPath + ".type", S = e.errSchemaPath + "/type", x = e.schemaPath + ".type", S = e.errSchemaPath + "/type";
|
|
25055
25055
|
if (r += " if (" + e.util[v ? "checkDataTypes" : "checkDataType"](_, d, e.opts.strictNumbers, !0) + ") { ", y) {
|
|
25056
25056
|
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);
|
|
@@ -25066,7 +25066,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
25066
25066
|
else {
|
|
25067
25067
|
var A = e.RULES;
|
|
25068
25068
|
if (A) {
|
|
25069
|
-
for (var j = -1, M = A.length - 1; j < M;) if (
|
|
25069
|
+
for (var j = -1, M = A.length - 1; j < M;) if (K(b = A[j += 1])) {
|
|
25070
25070
|
if (b.type && (r += " if (" + e.util.checkDataType(b.type, d, e.opts.strictNumbers) + ") { "), e.opts.useDefaults) {
|
|
25071
25071
|
if (b.type == "object" && e.schema.properties) {
|
|
25072
25072
|
var N = e.schema.properties, P = Object.keys(N);
|
|
@@ -25096,7 +25096,7 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
25096
25096
|
}
|
|
25097
25097
|
}
|
|
25098
25098
|
var H, ee = b.rules;
|
|
25099
|
-
if (ee) for (var U, W = -1,
|
|
25099
|
+
if (ee) for (var U, W = -1, G = ee.length - 1; W < G;) q(U = ee[W += 1]) && (U = U.code(e, U.keyword, b.type)) && (r += " " + U + " ", m) && (h += "}");
|
|
25100
25100
|
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 += "}");
|
|
25101
25101
|
}
|
|
25102
25102
|
}
|
|
@@ -25104,10 +25104,10 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
25104
25104
|
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 + ";";
|
|
25105
25105
|
}
|
|
25106
25106
|
return r;
|
|
25107
|
-
function
|
|
25108
|
-
for (var t = e.rules, n = 0; n < t.length; n++) if (
|
|
25107
|
+
function K(e) {
|
|
25108
|
+
for (var t = e.rules, n = 0; n < t.length; n++) if (q(t[n])) return 1;
|
|
25109
25109
|
}
|
|
25110
|
-
function
|
|
25110
|
+
function q(t) {
|
|
25111
25111
|
return e.schema[t.keyword] !== void 0 || t.implements && ((t) => {
|
|
25112
25112
|
for (var n = t.implements, r = 0; r < n.length; r++) if (e.schema[n[r]] !== void 0) return 1;
|
|
25113
25113
|
})(t);
|
|
@@ -26964,14 +26964,14 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
26964
26964
|
var a, c = a.length ? a.join("") : void 0;
|
|
26965
26965
|
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("");
|
|
26966
26966
|
}
|
|
26967
|
-
function
|
|
26967
|
+
function G(e, t) {
|
|
26968
26968
|
var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {}, r = {};
|
|
26969
26969
|
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;
|
|
26970
26970
|
}
|
|
26971
|
-
function
|
|
26971
|
+
function K(e, t) {
|
|
26972
26972
|
return e && e.toString().replace((t && t.iri ? s : o).PCT_ENCODED, M);
|
|
26973
26973
|
}
|
|
26974
|
-
var
|
|
26974
|
+
var q = {
|
|
26975
26975
|
scheme: "http",
|
|
26976
26976
|
domainHost: !0,
|
|
26977
26977
|
parse: function(e, t) {
|
|
@@ -26981,36 +26981,36 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
26981
26981
|
var n = String(e.scheme).toLowerCase() === "https";
|
|
26982
26982
|
return e.port !== (n ? 443 : 80) && e.port !== "" || (e.port = void 0), e.path ||= "/", e;
|
|
26983
26983
|
}
|
|
26984
|
-
},
|
|
26984
|
+
}, J = {
|
|
26985
26985
|
scheme: "https",
|
|
26986
|
-
domainHost:
|
|
26987
|
-
parse:
|
|
26988
|
-
serialize:
|
|
26986
|
+
domainHost: q.domainHost,
|
|
26987
|
+
parse: q.parse,
|
|
26988
|
+
serialize: q.serialize
|
|
26989
26989
|
};
|
|
26990
|
-
function
|
|
26990
|
+
function Y(e) {
|
|
26991
26991
|
return typeof e.secure == "boolean" ? e.secure : String(e.scheme).toLowerCase() === "wss";
|
|
26992
26992
|
}
|
|
26993
|
-
var
|
|
26993
|
+
var te = {
|
|
26994
26994
|
scheme: "ws",
|
|
26995
26995
|
domainHost: !0,
|
|
26996
26996
|
parse: function(e, t) {
|
|
26997
|
-
return e.secure =
|
|
26997
|
+
return e.secure = Y(e), e.resourceName = (e.path || "/") + (e.query ? "?" + e.query : ""), e.path = void 0, e.query = void 0, e;
|
|
26998
26998
|
},
|
|
26999
26999
|
serialize: function(e, t) {
|
|
27000
27000
|
var n, r;
|
|
27001
|
-
return e.port !== (
|
|
27001
|
+
return e.port !== (Y(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;
|
|
27002
27002
|
}
|
|
27003
|
-
},
|
|
27003
|
+
}, ne = {
|
|
27004
27004
|
scheme: "wss",
|
|
27005
|
-
domainHost:
|
|
27006
|
-
parse:
|
|
27007
|
-
serialize:
|
|
27008
|
-
},
|
|
27005
|
+
domainHost: te.domainHost,
|
|
27006
|
+
parse: te.parse,
|
|
27007
|
+
serialize: te.serialize
|
|
27008
|
+
}, 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"), ie = /* @__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"), ae = new RegExp(t("[^]", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "[\\.]", "[\\\"]", Z), "g"), $ = new RegExp(t("[^]", X, "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"), "g"), oe = $;
|
|
27009
27009
|
function se(e) {
|
|
27010
27010
|
var t = M(e);
|
|
27011
|
-
return t.match(
|
|
27011
|
+
return t.match(Q) ? t : e;
|
|
27012
27012
|
}
|
|
27013
|
-
var
|
|
27013
|
+
var Z = {
|
|
27014
27014
|
scheme: "mailto",
|
|
27015
27015
|
parse: function(e, t) {
|
|
27016
27016
|
var n = e, r = n.to = n.path ? n.path.split(",") : [];
|
|
@@ -27022,12 +27022,12 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
27022
27022
|
for (var u = l[1].split(","), d = 0, f = u.length; d < f; ++d) r.push(u[d]);
|
|
27023
27023
|
break;
|
|
27024
27024
|
case "subject":
|
|
27025
|
-
n.subject =
|
|
27025
|
+
n.subject = K(l[1], t);
|
|
27026
27026
|
break;
|
|
27027
27027
|
case "body":
|
|
27028
|
-
n.body =
|
|
27028
|
+
n.body = K(l[1], t);
|
|
27029
27029
|
break;
|
|
27030
|
-
default: i = !0, a[
|
|
27030
|
+
default: i = !0, a[K(l[0], t)] = K(l[1], t);
|
|
27031
27031
|
}
|
|
27032
27032
|
}
|
|
27033
27033
|
i && (n.headers = a);
|
|
@@ -27035,9 +27035,9 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
27035
27035
|
n.query = void 0;
|
|
27036
27036
|
for (var p = 0, m = r.length; p < m; ++p) {
|
|
27037
27037
|
var h = r[p].split("@");
|
|
27038
|
-
if (h[0] =
|
|
27038
|
+
if (h[0] = K(h[0]), t.unicodeSupport) h[1] = K(h[1], t).toLowerCase();
|
|
27039
27039
|
else try {
|
|
27040
|
-
h[1] = O(
|
|
27040
|
+
h[1] = O(K(h[1], t).toLowerCase());
|
|
27041
27041
|
} catch (e) {
|
|
27042
27042
|
n.error = n.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
|
|
27043
27043
|
}
|
|
@@ -27049,9 +27049,9 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
27049
27049
|
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);
|
|
27050
27050
|
if (a) {
|
|
27051
27051
|
for (var o = 0, s = a.length; o < s; ++o) {
|
|
27052
|
-
var c = String(a[o]), l = c.lastIndexOf("@"), u = c.slice(0, l).replace(
|
|
27052
|
+
var c = String(a[o]), l = c.lastIndexOf("@"), u = c.slice(0, l).replace(ie, se).replace(ie, i).replace(ae, j), c = c.slice(l + 1);
|
|
27053
27053
|
try {
|
|
27054
|
-
c = t.iri ? k(c) : O(
|
|
27054
|
+
c = t.iri ? k(c) : O(K(c, t).toLowerCase());
|
|
27055
27055
|
} catch (e) {
|
|
27056
27056
|
r.error = r.error || "Email address's domain name can not be converted to " + (t.iri ? "Unicode" : "ASCII") + " via punycode: " + e;
|
|
27057
27057
|
}
|
|
@@ -27060,10 +27060,10 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
27060
27060
|
r.path = a.join(",");
|
|
27061
27061
|
}
|
|
27062
27062
|
var d, f = e.headers = e.headers || {}, p = (e.subject && (f.subject = e.subject), e.body && (f.body = e.body), []);
|
|
27063
|
-
for (d in f) f[d] !==
|
|
27063
|
+
for (d in f) f[d] !== re[d] && p.push(d.replace(ie, se).replace(ie, i).replace($, j) + "=" + f[d].replace(ie, se).replace(ie, i).replace(oe, j));
|
|
27064
27064
|
return p.length && (r.query = p.join("&")), r;
|
|
27065
27065
|
}
|
|
27066
|
-
}, ce = /^([^\:]+)\:(.*)/,
|
|
27066
|
+
}, ce = /^([^\:]+)\:(.*)/, X = {
|
|
27067
27067
|
scheme: "urn",
|
|
27068
27068
|
parse: function(e, t) {
|
|
27069
27069
|
var n, r, i = e.path && e.path.match(ce);
|
|
@@ -27083,19 +27083,19 @@ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
27083
27083
|
return n.nss = (e.uuid || "").toLowerCase(), n;
|
|
27084
27084
|
}
|
|
27085
27085
|
};
|
|
27086
|
-
A[
|
|
27086
|
+
A[q.scheme] = q, A[J.scheme] = J, A[te.scheme] = te, 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 = G, e.resolve = function(e, t, n) {
|
|
27087
27087
|
return n = ((e, t) => {
|
|
27088
27088
|
var n = e;
|
|
27089
27089
|
if (t) for (var r in t) n[r] = t[r];
|
|
27090
27090
|
return n;
|
|
27091
|
-
})({ scheme: "null" }, n), W(
|
|
27091
|
+
})({ scheme: "null" }, n), W(G(z(e, n), z(t, n), n, !0), n);
|
|
27092
27092
|
}, e.normalize = function(e, t) {
|
|
27093
27093
|
return typeof e == "string" ? e = W(z(e, t), t) : r(e) === "object" && (e = z(W(e, t), t)), e;
|
|
27094
27094
|
}, e.equal = function(e, t, n) {
|
|
27095
27095
|
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;
|
|
27096
27096
|
}, e.escapeComponent = function(e, t) {
|
|
27097
27097
|
return e && e.toString().replace((t && t.iri ? s : o).ESCAPE, j);
|
|
27098
|
-
}, e.unescapeComponent =
|
|
27098
|
+
}, e.unescapeComponent = K, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
27099
27099
|
})(t);
|
|
27100
27100
|
},
|
|
27101
27101
|
7598: function(e) {
|
|
@@ -28187,7 +28187,7 @@ ${n = t ? n : b(n, ",")}
|
|
|
28187
28187
|
type: "primary",
|
|
28188
28188
|
size: "small"
|
|
28189
28189
|
}, {
|
|
28190
|
-
icon: z(() => [u(P(
|
|
28190
|
+
icon: z(() => [u(P(Y), { size: 14 })]),
|
|
28191
28191
|
default: z(() => [n[1] ||= l(" 导入 JSON ", -1)]),
|
|
28192
28192
|
_: 1
|
|
28193
28193
|
})])]), u(Zt, {
|
|
@@ -28202,7 +28202,7 @@ ${n = t ? n : b(n, ",")}
|
|
|
28202
28202
|
size: "small",
|
|
28203
28203
|
onClick: g
|
|
28204
28204
|
}, {
|
|
28205
|
-
icon: z(() => [u(P(
|
|
28205
|
+
icon: z(() => [u(P(Y), { size: 14 })]),
|
|
28206
28206
|
default: z(() => [n[2] ||= l(" 导出 ", -1)]),
|
|
28207
28207
|
_: 1
|
|
28208
28208
|
})])]), s("div", ar, [
|
|
@@ -28210,7 +28210,7 @@ ${n = t ? n : b(n, ",")}
|
|
|
28210
28210
|
size: "small",
|
|
28211
28211
|
onClick: _
|
|
28212
28212
|
}, {
|
|
28213
|
-
icon: z(() => [u(P(
|
|
28213
|
+
icon: z(() => [u(P(Q), { size: 14 })]),
|
|
28214
28214
|
default: z(() => [n[3] ||= l(" 导入 ", -1)]),
|
|
28215
28215
|
_: 1
|
|
28216
28216
|
}),
|
|
@@ -28622,7 +28622,7 @@ var xr = br, Sr = { class: "me-card__title-wrapper" }, Cr = { class: "me-card__t
|
|
|
28622
28622
|
class: "me-card__action-btn",
|
|
28623
28623
|
onClick: O
|
|
28624
28624
|
}, {
|
|
28625
|
-
default: z(() => [(C(), i(j(w.value ? P(
|
|
28625
|
+
default: z(() => [(C(), i(j(w.value ? P(Z) : P(re)), { size: 16 }))]),
|
|
28626
28626
|
_: 1
|
|
28627
28627
|
})) : a("", !0),
|
|
28628
28628
|
n.collapsible && !D.value ? (C(), i(r, {
|
|
@@ -28632,7 +28632,7 @@ var xr = br, Sr = { class: "me-card__title-wrapper" }, Cr = { class: "me-card__t
|
|
|
28632
28632
|
class: _(["me-card__action-btn", { "me-card__collapse-btn--collapsed": y.value }]),
|
|
28633
28633
|
onClick: S
|
|
28634
28634
|
}, {
|
|
28635
|
-
default: z(() => [u(P(
|
|
28635
|
+
default: z(() => [u(P(G), {
|
|
28636
28636
|
size: 16,
|
|
28637
28637
|
class: "me-card__collapse-icon"
|
|
28638
28638
|
})]),
|
|
@@ -28935,7 +28935,21 @@ var si = {
|
|
|
28935
28935
|
"cancel"
|
|
28936
28936
|
],
|
|
28937
28937
|
setup(t, { emit: n }) {
|
|
28938
|
-
let c = t, d = n, p = E([]), m = E([]), h = E("object"), y =
|
|
28938
|
+
let c = t, d = n, p = E([]), m = E([]), h = E("object"), y = null;
|
|
28939
|
+
function b(e, t) {
|
|
28940
|
+
if (e === t) return !0;
|
|
28941
|
+
if (typeof e != "object" || typeof t != "object" || e == null || t == null || Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
28942
|
+
if (Array.isArray(e)) {
|
|
28943
|
+
if (e.length !== t.length) return !1;
|
|
28944
|
+
for (let n = 0; n < e.length; n++) if (!b(e[n], t[n])) return !1;
|
|
28945
|
+
return !0;
|
|
28946
|
+
}
|
|
28947
|
+
let n = Object.keys(e), r = Object.keys(t);
|
|
28948
|
+
if (n.length !== r.length) return !1;
|
|
28949
|
+
for (let r of n) if (!Object.prototype.hasOwnProperty.call(t, r) || !b(e[r], t[r])) return !1;
|
|
28950
|
+
return !0;
|
|
28951
|
+
}
|
|
28952
|
+
let S = r(() => {
|
|
28939
28953
|
let e = [{
|
|
28940
28954
|
title: c.keyColumnTitle,
|
|
28941
28955
|
key: "key",
|
|
@@ -28959,34 +28973,39 @@ var si = {
|
|
|
28959
28973
|
width: 72,
|
|
28960
28974
|
align: "center"
|
|
28961
28975
|
}), e;
|
|
28962
|
-
}),
|
|
28963
|
-
function
|
|
28976
|
+
}), w = r(() => c.draggable && !c.disabled);
|
|
28977
|
+
function D(e) {
|
|
28964
28978
|
h.value = Array.isArray(e) ? "array" : "object";
|
|
28965
|
-
let t = /* @__PURE__ */ new Map();
|
|
28979
|
+
let t = /* @__PURE__ */ new Map(), n = [];
|
|
28966
28980
|
for (let e of p.value) {
|
|
28967
|
-
let
|
|
28968
|
-
|
|
28981
|
+
let r = e.key.trim();
|
|
28982
|
+
r ? t.set(r, e) : n.push(e);
|
|
28969
28983
|
}
|
|
28970
|
-
let
|
|
28971
|
-
|
|
28972
|
-
|
|
28984
|
+
let r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
28985
|
+
let n = t.get(e.trim());
|
|
28986
|
+
if (n && !r.has(n.id)) return r.add(n.id), n.id;
|
|
28987
|
+
let i = Ir();
|
|
28988
|
+
return r.add(i), i;
|
|
28989
|
+
}, a = (e) => t.get(e.trim())?.rules ?? c.rules?.[e.trim()], o = h.value === "array" ? e.map((e) => {
|
|
28990
|
+
let t = String(e[c.keyField] ?? ""), n = e[c.valueField];
|
|
28973
28991
|
return {
|
|
28974
|
-
id:
|
|
28992
|
+
id: i(t),
|
|
28975
28993
|
key: t,
|
|
28976
|
-
type: Br(
|
|
28977
|
-
value:
|
|
28994
|
+
type: Br(n),
|
|
28995
|
+
value: n,
|
|
28978
28996
|
raw: { ...e },
|
|
28979
|
-
rules:
|
|
28997
|
+
rules: a(t)
|
|
28980
28998
|
};
|
|
28981
|
-
}) :
|
|
28982
|
-
id:
|
|
28999
|
+
}) : Object.entries(e).map(([e, t]) => ({
|
|
29000
|
+
id: i(e),
|
|
28983
29001
|
key: e,
|
|
28984
29002
|
type: Br(t),
|
|
28985
29003
|
value: t,
|
|
28986
|
-
rules:
|
|
28987
|
-
}))
|
|
29004
|
+
rules: a(e)
|
|
29005
|
+
}));
|
|
29006
|
+
p.value = [...o, ...n], J();
|
|
28988
29007
|
}
|
|
28989
|
-
function
|
|
29008
|
+
function O() {
|
|
28990
29009
|
let e = {};
|
|
28991
29010
|
for (let t of p.value) {
|
|
28992
29011
|
let n = t.key.trim();
|
|
@@ -28994,7 +29013,7 @@ var si = {
|
|
|
28994
29013
|
}
|
|
28995
29014
|
return e;
|
|
28996
29015
|
}
|
|
28997
|
-
function
|
|
29016
|
+
function k() {
|
|
28998
29017
|
let e = [];
|
|
28999
29018
|
for (let t of p.value) {
|
|
29000
29019
|
let n = t.key.trim();
|
|
@@ -29004,9 +29023,9 @@ var si = {
|
|
|
29004
29023
|
}
|
|
29005
29024
|
return e;
|
|
29006
29025
|
}
|
|
29007
|
-
function
|
|
29008
|
-
let e = h.value === "array" ?
|
|
29009
|
-
y =
|
|
29026
|
+
function M() {
|
|
29027
|
+
let e = h.value === "array" ? k() : O();
|
|
29028
|
+
y = e, d("update:modelValue", e);
|
|
29010
29029
|
let t = c.validate ? {
|
|
29011
29030
|
duplicatedKeys: m.value,
|
|
29012
29031
|
hasEmptyKey: p.value.some((e) => !e.key.trim()),
|
|
@@ -29021,36 +29040,30 @@ var si = {
|
|
|
29021
29040
|
d("change", e, t);
|
|
29022
29041
|
}
|
|
29023
29042
|
R(() => c.modelValue, (e) => {
|
|
29024
|
-
|
|
29025
|
-
if (y) {
|
|
29026
|
-
y = !1;
|
|
29027
|
-
return;
|
|
29028
|
-
}
|
|
29029
|
-
w(e);
|
|
29030
|
-
}
|
|
29043
|
+
e && (y != null && b(e, y) || (y = null, D(e)));
|
|
29031
29044
|
}, { immediate: !0 });
|
|
29032
|
-
let
|
|
29045
|
+
let N = E(!!c.open);
|
|
29033
29046
|
R(() => c.open, (e) => {
|
|
29034
|
-
|
|
29047
|
+
N.value = !!e;
|
|
29035
29048
|
});
|
|
29036
|
-
let
|
|
29037
|
-
open:
|
|
29049
|
+
let F = r(() => c.modalMode ? {
|
|
29050
|
+
open: N.value,
|
|
29038
29051
|
title: c.title,
|
|
29039
29052
|
width: c.modalWidth,
|
|
29040
29053
|
position: "center",
|
|
29041
29054
|
okText: c.okText,
|
|
29042
29055
|
cancelText: c.cancelText,
|
|
29043
|
-
"onUpdate:open":
|
|
29044
|
-
onOk:
|
|
29045
|
-
onCancel:
|
|
29056
|
+
"onUpdate:open": I,
|
|
29057
|
+
onOk: V,
|
|
29058
|
+
onCancel: L
|
|
29046
29059
|
} : {});
|
|
29047
|
-
function
|
|
29048
|
-
|
|
29060
|
+
function I(e) {
|
|
29061
|
+
N.value = e, d("update:open", e);
|
|
29049
29062
|
}
|
|
29050
|
-
function
|
|
29063
|
+
function L() {
|
|
29051
29064
|
d("cancel");
|
|
29052
29065
|
}
|
|
29053
|
-
function
|
|
29066
|
+
function B() {
|
|
29054
29067
|
return c.validate ? {
|
|
29055
29068
|
duplicatedKeys: Jr(p.value),
|
|
29056
29069
|
hasEmptyKey: p.value.some((e) => !e.key.trim()),
|
|
@@ -29063,82 +29076,82 @@ var si = {
|
|
|
29063
29076
|
valueErrors: {}
|
|
29064
29077
|
};
|
|
29065
29078
|
}
|
|
29066
|
-
function
|
|
29067
|
-
let e =
|
|
29079
|
+
function V() {
|
|
29080
|
+
let e = B(), t = [];
|
|
29068
29081
|
e.hasEmptyKey && t.push("存在为空的 key,请补充或删除该属性"), e.duplicatedKeys.length && t.push(`key 重复(忽略大小写):${e.duplicatedKeys.join("、")}`);
|
|
29069
29082
|
for (let [n, r] of Object.entries(e.valueErrors)) t.push(`${n}:${r}`);
|
|
29070
29083
|
if (t.length) {
|
|
29071
29084
|
H.error(`校验未通过:${t.join(";")}`);
|
|
29072
29085
|
return;
|
|
29073
29086
|
}
|
|
29074
|
-
|
|
29075
|
-
}
|
|
29076
|
-
function V(e) {
|
|
29077
|
-
K(), k();
|
|
29087
|
+
N.value = !1, d("update:open", !1), d("ok", h.value === "array" ? k() : O());
|
|
29078
29088
|
}
|
|
29079
29089
|
function ee(e) {
|
|
29080
|
-
|
|
29090
|
+
J(), M();
|
|
29081
29091
|
}
|
|
29082
|
-
function U(e
|
|
29083
|
-
|
|
29092
|
+
function U(e) {
|
|
29093
|
+
J(), M();
|
|
29084
29094
|
}
|
|
29085
29095
|
function W(e, t) {
|
|
29086
|
-
e.value = t,
|
|
29096
|
+
e.type !== t && (e.type = t, e.value = Vr(e.value, t), e.rules = ti(e.rules, t), J(), M());
|
|
29097
|
+
}
|
|
29098
|
+
function G(e, t) {
|
|
29099
|
+
e.value = t, J(), M();
|
|
29087
29100
|
}
|
|
29088
|
-
function
|
|
29101
|
+
function K() {
|
|
29089
29102
|
p.value = [...p.value, {
|
|
29090
29103
|
id: Ir(),
|
|
29091
29104
|
key: "",
|
|
29092
29105
|
type: "string",
|
|
29093
29106
|
value: "",
|
|
29094
29107
|
raw: {}
|
|
29095
|
-
}],
|
|
29108
|
+
}], J(), M();
|
|
29096
29109
|
}
|
|
29097
|
-
function
|
|
29110
|
+
function q(e) {
|
|
29098
29111
|
let t = p.value.indexOf(e);
|
|
29099
|
-
t !== -1 && (p.value.splice(t, 1),
|
|
29112
|
+
t !== -1 && (p.value.splice(t, 1), J(), M());
|
|
29100
29113
|
}
|
|
29101
|
-
function
|
|
29114
|
+
function J() {
|
|
29102
29115
|
m.value = Jr(p.value);
|
|
29103
29116
|
}
|
|
29104
|
-
function
|
|
29117
|
+
function Y(e) {
|
|
29105
29118
|
return Yr(e, m.value);
|
|
29106
29119
|
}
|
|
29107
|
-
function
|
|
29108
|
-
return c.validate ? e.trim() ?
|
|
29120
|
+
function te(e) {
|
|
29121
|
+
return c.validate ? e.trim() ? Y(e) ? "Key 不能重复(忽略大小写)" : "" : "Key 不能为空" : "";
|
|
29109
29122
|
}
|
|
29110
29123
|
function ne(e) {
|
|
29111
|
-
return c.validate ? !e.key.trim() ||
|
|
29124
|
+
return c.validate ? !e.key.trim() || Y(e.key) : !1;
|
|
29112
29125
|
}
|
|
29113
29126
|
function re(e) {
|
|
29114
29127
|
return c.disabled || !c.validate ? "" : ai(e.value, e.type, e.rules) ?? "";
|
|
29115
29128
|
}
|
|
29116
|
-
function
|
|
29129
|
+
function X(e) {
|
|
29117
29130
|
return !!ei(e.rules);
|
|
29118
29131
|
}
|
|
29119
|
-
let
|
|
29120
|
-
let e =
|
|
29121
|
-
return e ? `校验规则${e.key.trim() ? ` · ${e.key.trim()}` : ""}(${
|
|
29132
|
+
let Z = E(!1), Q = E(null), ie = E(), $ = T({}), oe = r(() => Q.value?.type ?? "string"), se = Object.fromEntries(jr.map((e) => [e.value, e.label])), ce = r(() => {
|
|
29133
|
+
let e = Q.value;
|
|
29134
|
+
return e ? `校验规则${e.key.trim() ? ` · ${e.key.trim()}` : ""}(${se[e.type] ?? e.type})` : "校验规则";
|
|
29122
29135
|
});
|
|
29123
|
-
function
|
|
29136
|
+
function le(e) {
|
|
29124
29137
|
return e === "int" || e === "float";
|
|
29125
29138
|
}
|
|
29126
|
-
function
|
|
29127
|
-
|
|
29139
|
+
function ue(e) {
|
|
29140
|
+
Q.value = e, Object.keys($).forEach((e) => delete $[e]), Object.assign($, ei(e.rules) ?? {}), Z.value = !0;
|
|
29128
29141
|
}
|
|
29129
|
-
function
|
|
29130
|
-
|
|
29131
|
-
|
|
29142
|
+
function de() {
|
|
29143
|
+
Q.value && ie.value?.validate().then(() => {
|
|
29144
|
+
Q.value && (Q.value.rules = ei($), Z.value = !1, Q.value = null, J(), M());
|
|
29132
29145
|
}).catch(() => {});
|
|
29133
29146
|
}
|
|
29134
|
-
function
|
|
29135
|
-
|
|
29147
|
+
function fe() {
|
|
29148
|
+
Z.value = !1, Q.value = null;
|
|
29136
29149
|
}
|
|
29137
|
-
function
|
|
29150
|
+
function pe(e, t) {
|
|
29138
29151
|
return typeof e == "string" && typeof t == "string" ? e < t ? -1 : +(e > t) : Number(e) - Number(t);
|
|
29139
29152
|
}
|
|
29140
|
-
let
|
|
29141
|
-
let e =
|
|
29153
|
+
let me = r(() => {
|
|
29154
|
+
let e = $.minLength ?? null, t = $.maxLength ?? null, n = $.min ?? null, r = $.max ?? null;
|
|
29142
29155
|
return {
|
|
29143
29156
|
minLength: [{ validator: (e, n) => n != null && t != null && n > t ? Promise.reject(/* @__PURE__ */ Error("最短长度不能大于最大长度")) : Promise.resolve() }],
|
|
29144
29157
|
maxLength: [{ validator: (t, n) => n != null && e != null && n < e ? Promise.reject(/* @__PURE__ */ Error("最大长度不能小于最短长度")) : Promise.resolve() }],
|
|
@@ -29150,36 +29163,36 @@ var si = {
|
|
|
29150
29163
|
}
|
|
29151
29164
|
return Promise.resolve();
|
|
29152
29165
|
} }],
|
|
29153
|
-
min: [{ validator: (e, t) => t != null && r != null &&
|
|
29154
|
-
max: [{ validator: (e, t) => t != null && n != null &&
|
|
29166
|
+
min: [{ validator: (e, t) => t != null && r != null && pe(t, r) > 0 ? Promise.reject(/* @__PURE__ */ Error("最小值不能大于最大值")) : Promise.resolve() }],
|
|
29167
|
+
max: [{ validator: (e, t) => t != null && n != null && pe(t, n) < 0 ? Promise.reject(/* @__PURE__ */ Error("最大值不能小于最小值")) : Promise.resolve() }]
|
|
29155
29168
|
};
|
|
29156
|
-
}),
|
|
29157
|
-
function ge() {
|
|
29158
|
-
me.value && (he.value = me.value.querySelector("tbody"));
|
|
29159
|
-
}
|
|
29169
|
+
}), he = E(null), ge = E(null);
|
|
29160
29170
|
function _e() {
|
|
29161
|
-
he.value && (
|
|
29171
|
+
he.value && (ge.value = he.value.querySelector("tbody"));
|
|
29172
|
+
}
|
|
29173
|
+
function ve() {
|
|
29174
|
+
ge.value && (ye && Te.destroy(), Te.start(ge.value), ye = !0);
|
|
29162
29175
|
}
|
|
29163
|
-
let
|
|
29176
|
+
let ye = !1;
|
|
29164
29177
|
x(async () => {
|
|
29165
|
-
await g(),
|
|
29166
|
-
}), R(
|
|
29167
|
-
!e || !c.modalMode || (await g(),
|
|
29178
|
+
await g(), _e(), ve();
|
|
29179
|
+
}), R(N, async (e) => {
|
|
29180
|
+
!e || !c.modalMode || (await g(), _e(), ve());
|
|
29168
29181
|
});
|
|
29169
|
-
let
|
|
29170
|
-
function
|
|
29171
|
-
|
|
29182
|
+
let be = E(null);
|
|
29183
|
+
function xe() {
|
|
29184
|
+
be.value && (be.value.style.display = "none");
|
|
29172
29185
|
}
|
|
29173
|
-
function
|
|
29174
|
-
let t =
|
|
29186
|
+
function Se(e) {
|
|
29187
|
+
let t = ge.value, n = he.value, r = be.value, i = e?.related, a = i instanceof Element ? i.closest("tr") : null;
|
|
29175
29188
|
if (!t || !n || !r || !a || !t.contains(a)) {
|
|
29176
|
-
|
|
29189
|
+
xe();
|
|
29177
29190
|
return;
|
|
29178
29191
|
}
|
|
29179
29192
|
let o = a.getBoundingClientRect(), s = n.getBoundingClientRect(), c = e.willInsertAfter ? o.bottom : o.top;
|
|
29180
29193
|
r.style.top = `${c - s.top - 1}px`, r.style.left = "0px", r.style.width = `${n.clientWidth}px`, r.style.display = "block";
|
|
29181
29194
|
}
|
|
29182
|
-
function
|
|
29195
|
+
function Ce(e) {
|
|
29183
29196
|
if (!e) return;
|
|
29184
29197
|
let t = document.querySelector(".me-input-property__drag-fallback");
|
|
29185
29198
|
if (!t) return;
|
|
@@ -29190,37 +29203,37 @@ var si = {
|
|
|
29190
29203
|
r[t].style.width = `${e.getBoundingClientRect().width}px`;
|
|
29191
29204
|
});
|
|
29192
29205
|
}
|
|
29193
|
-
let
|
|
29206
|
+
let we = T({
|
|
29194
29207
|
handle: ".me-input-property__drag",
|
|
29195
29208
|
animation: 150,
|
|
29196
29209
|
forceFallback: !0,
|
|
29197
29210
|
fallbackOnBody: !0,
|
|
29198
29211
|
fallbackClass: "me-input-property__drag-fallback",
|
|
29199
29212
|
ghostClass: "me-input-property__row--ghost",
|
|
29200
|
-
disabled: r(() => !
|
|
29213
|
+
disabled: r(() => !w.value),
|
|
29201
29214
|
onStart: (e) => {
|
|
29202
|
-
|
|
29215
|
+
xe(), Ce(e.item);
|
|
29203
29216
|
},
|
|
29204
|
-
onMove: ((e) => (
|
|
29217
|
+
onMove: ((e) => (Se(e), !0)),
|
|
29205
29218
|
onEnd: () => {
|
|
29206
|
-
|
|
29219
|
+
xe(), J(), M();
|
|
29207
29220
|
}
|
|
29208
|
-
}),
|
|
29209
|
-
...
|
|
29221
|
+
}), Te = ae(ge, p, {
|
|
29222
|
+
...we,
|
|
29210
29223
|
immediate: !1
|
|
29211
29224
|
});
|
|
29212
|
-
return R(
|
|
29213
|
-
|
|
29225
|
+
return R(w, (e) => {
|
|
29226
|
+
Te.option("disabled", !e);
|
|
29214
29227
|
}), (n, r) => {
|
|
29215
|
-
let c = A("a-button"), d = A("a-tooltip"), m = A("a-input"), h = A("a-select"), g = A("a-input-number"), y = A("a-date-picker"),
|
|
29216
|
-
return C(), i(j(t.modalMode ? P(Qt) : "div"), v(f(
|
|
29228
|
+
let c = A("a-button"), d = A("a-tooltip"), m = A("a-input"), h = A("a-select"), g = A("a-input-number"), y = A("a-date-picker"), b = A("a-time-picker"), x = A("a-space-compact"), T = A("a-table"), E = A("a-checkbox"), D = A("a-form-item"), O = A("a-form");
|
|
29229
|
+
return C(), i(j(t.modalMode ? P(Qt) : "div"), v(f(F.value)), {
|
|
29217
29230
|
default: z(() => [s("div", {
|
|
29218
29231
|
ref_key: "rootEl",
|
|
29219
|
-
ref:
|
|
29232
|
+
ref: he,
|
|
29220
29233
|
class: "me-input-property"
|
|
29221
29234
|
}, [
|
|
29222
29235
|
u(T, {
|
|
29223
|
-
columns:
|
|
29236
|
+
columns: S.value,
|
|
29224
29237
|
"data-source": p.value,
|
|
29225
29238
|
"row-key": (e) => e.id,
|
|
29226
29239
|
pagination: !1,
|
|
@@ -29238,7 +29251,7 @@ var si = {
|
|
|
29238
29251
|
shape: "circle",
|
|
29239
29252
|
class: "me-input-property__add-btn",
|
|
29240
29253
|
disabled: t.disabled,
|
|
29241
|
-
onClick:
|
|
29254
|
+
onClick: K
|
|
29242
29255
|
}, {
|
|
29243
29256
|
default: z(() => [u(P(Fe), {
|
|
29244
29257
|
name: "Plus",
|
|
@@ -29248,7 +29261,7 @@ var si = {
|
|
|
29248
29261
|
}, 8, ["disabled"])]),
|
|
29249
29262
|
_: 1
|
|
29250
29263
|
})) : a("", !0)]),
|
|
29251
|
-
bodyCell: z(({ column: e, record: n }) => [e.key === "action" ? (C(), o("div", si, [
|
|
29264
|
+
bodyCell: z(({ column: e, record: n }) => [e.key === "action" ? (C(), o("div", si, [w.value ? (C(), o("span", ci, [u(P(Fe), {
|
|
29252
29265
|
name: "GripVertical",
|
|
29253
29266
|
size: 14
|
|
29254
29267
|
})])) : a("", !0), u(c, {
|
|
@@ -29257,7 +29270,7 @@ var si = {
|
|
|
29257
29270
|
class: "me-input-property__del",
|
|
29258
29271
|
disabled: t.disabled,
|
|
29259
29272
|
title: "删除该属性",
|
|
29260
|
-
onClick: (e) =>
|
|
29273
|
+
onClick: (e) => q(n)
|
|
29261
29274
|
}, {
|
|
29262
29275
|
default: z(() => [u(P(Fe), {
|
|
29263
29276
|
name: "Trash2",
|
|
@@ -29266,12 +29279,12 @@ var si = {
|
|
|
29266
29279
|
_: 1
|
|
29267
29280
|
}, 8, ["disabled", "onClick"])])) : e.key === "key" ? (C(), i(d, {
|
|
29268
29281
|
key: 1,
|
|
29269
|
-
title: t.disabled ? "" :
|
|
29282
|
+
title: t.disabled ? "" : te(n.key),
|
|
29270
29283
|
visible: !t.disabled && ne(n)
|
|
29271
29284
|
}, {
|
|
29272
29285
|
default: z(() => [u(m, {
|
|
29273
29286
|
value: n.key,
|
|
29274
|
-
"onUpdate:value": [(e) => n.key = e, (e) =>
|
|
29287
|
+
"onUpdate:value": [(e) => n.key = e, (e) => ee(n)],
|
|
29275
29288
|
class: _(["me-input-property__key-input", { "me-input-property__field--error": !t.disabled && ne(n) }]),
|
|
29276
29289
|
disabled: t.disabled,
|
|
29277
29290
|
placeholder: t.keyPlaceholder
|
|
@@ -29288,7 +29301,7 @@ var si = {
|
|
|
29288
29301
|
title: re(n),
|
|
29289
29302
|
visible: !!re(n)
|
|
29290
29303
|
}, {
|
|
29291
|
-
default: z(() => [u(
|
|
29304
|
+
default: z(() => [u(x, {
|
|
29292
29305
|
block: !0,
|
|
29293
29306
|
class: _(["me-input-property__value", { "me-input-property__field--error": !!re(n) }])
|
|
29294
29307
|
}, {
|
|
@@ -29298,7 +29311,7 @@ var si = {
|
|
|
29298
29311
|
disabled: t.disabled,
|
|
29299
29312
|
options: P(jr),
|
|
29300
29313
|
class: "me-input-property__value-type",
|
|
29301
|
-
onChange: (e) =>
|
|
29314
|
+
onChange: (e) => W(n, e)
|
|
29302
29315
|
}, null, 8, [
|
|
29303
29316
|
"value",
|
|
29304
29317
|
"disabled",
|
|
@@ -29307,7 +29320,7 @@ var si = {
|
|
|
29307
29320
|
])) : a("", !0), n.type === "string" ? (C(), i(m, {
|
|
29308
29321
|
key: 1,
|
|
29309
29322
|
value: n.value,
|
|
29310
|
-
"onUpdate:value": [(e) => n.value = e, (e) =>
|
|
29323
|
+
"onUpdate:value": [(e) => n.value = e, (e) => U(n)],
|
|
29311
29324
|
class: "me-input-property__value-editor",
|
|
29312
29325
|
disabled: t.disabled,
|
|
29313
29326
|
placeholder: t.valuePlaceholder
|
|
@@ -29319,7 +29332,7 @@ var si = {
|
|
|
29319
29332
|
])) : n.type === "int" ? (C(), i(g, {
|
|
29320
29333
|
key: 2,
|
|
29321
29334
|
value: n.value,
|
|
29322
|
-
"onUpdate:value": [(e) => n.value = e, (e) =>
|
|
29335
|
+
"onUpdate:value": [(e) => n.value = e, (e) => U(n)],
|
|
29323
29336
|
class: "me-input-property__value-editor",
|
|
29324
29337
|
disabled: t.disabled,
|
|
29325
29338
|
placeholder: t.valuePlaceholder
|
|
@@ -29331,7 +29344,7 @@ var si = {
|
|
|
29331
29344
|
])) : n.type === "float" ? (C(), i(g, {
|
|
29332
29345
|
key: 3,
|
|
29333
29346
|
value: n.value,
|
|
29334
|
-
"onUpdate:value": [(e) => n.value = e, (e) =>
|
|
29347
|
+
"onUpdate:value": [(e) => n.value = e, (e) => U(n)],
|
|
29335
29348
|
class: "me-input-property__value-editor",
|
|
29336
29349
|
disabled: t.disabled,
|
|
29337
29350
|
placeholder: t.valuePlaceholder,
|
|
@@ -29345,7 +29358,7 @@ var si = {
|
|
|
29345
29358
|
])) : n.type === "date" ? (C(), i(y, {
|
|
29346
29359
|
key: 4,
|
|
29347
29360
|
value: n.value,
|
|
29348
|
-
"onUpdate:value": [(e) => n.value = e, (e) =>
|
|
29361
|
+
"onUpdate:value": [(e) => n.value = e, (e) => U(n)],
|
|
29349
29362
|
class: "me-input-property__value-editor",
|
|
29350
29363
|
"value-format": P(Nr),
|
|
29351
29364
|
disabled: t.disabled
|
|
@@ -29354,10 +29367,10 @@ var si = {
|
|
|
29354
29367
|
"onUpdate:value",
|
|
29355
29368
|
"value-format",
|
|
29356
29369
|
"disabled"
|
|
29357
|
-
])) : n.type === "time" ? (C(), i(
|
|
29370
|
+
])) : n.type === "time" ? (C(), i(b, {
|
|
29358
29371
|
key: 5,
|
|
29359
29372
|
value: n.value,
|
|
29360
|
-
"onUpdate:value": [(e) => n.value = e, (e) =>
|
|
29373
|
+
"onUpdate:value": [(e) => n.value = e, (e) => U(n)],
|
|
29361
29374
|
class: "me-input-property__value-editor",
|
|
29362
29375
|
"value-format": P(Pr),
|
|
29363
29376
|
disabled: t.disabled
|
|
@@ -29372,7 +29385,7 @@ var si = {
|
|
|
29372
29385
|
class: "me-input-property__value-editor",
|
|
29373
29386
|
disabled: t.disabled,
|
|
29374
29387
|
options: P(Fr),
|
|
29375
|
-
onChange: (e) =>
|
|
29388
|
+
onChange: (e) => G(n, e)
|
|
29376
29389
|
}, null, 8, [
|
|
29377
29390
|
"value",
|
|
29378
29391
|
"disabled",
|
|
@@ -29389,9 +29402,9 @@ var si = {
|
|
|
29389
29402
|
default: z(() => [u(c, {
|
|
29390
29403
|
type: "text",
|
|
29391
29404
|
size: "small",
|
|
29392
|
-
class: _(["me-input-property__rules-btn", { "is-active":
|
|
29405
|
+
class: _(["me-input-property__rules-btn", { "is-active": X(n) }]),
|
|
29393
29406
|
disabled: t.disabled,
|
|
29394
|
-
onClick: (e) =>
|
|
29407
|
+
onClick: (e) => ue(n)
|
|
29395
29408
|
}, {
|
|
29396
29409
|
default: z(() => [u(P(Fe), {
|
|
29397
29410
|
name: "WandSparkles",
|
|
@@ -29414,43 +29427,43 @@ var si = {
|
|
|
29414
29427
|
"locale"
|
|
29415
29428
|
]),
|
|
29416
29429
|
u(P(Qt), {
|
|
29417
|
-
open:
|
|
29418
|
-
"onUpdate:open": r[11] ||= (e) =>
|
|
29430
|
+
open: Z.value,
|
|
29431
|
+
"onUpdate:open": r[11] ||= (e) => Z.value = e,
|
|
29419
29432
|
width: 480,
|
|
29420
29433
|
fullscreen: !1,
|
|
29421
|
-
title:
|
|
29434
|
+
title: ce.value,
|
|
29422
29435
|
"ok-text": "保存",
|
|
29423
29436
|
"cancel-text": "取消",
|
|
29424
|
-
onOk:
|
|
29425
|
-
onCancel:
|
|
29437
|
+
onOk: de,
|
|
29438
|
+
onCancel: fe
|
|
29426
29439
|
}, {
|
|
29427
29440
|
default: z(() => [u(O, {
|
|
29428
29441
|
ref_key: "ruleFormRef",
|
|
29429
|
-
ref:
|
|
29430
|
-
model:
|
|
29431
|
-
rules:
|
|
29442
|
+
ref: ie,
|
|
29443
|
+
model: $,
|
|
29444
|
+
rules: me.value,
|
|
29432
29445
|
layout: "vertical",
|
|
29433
29446
|
class: "me-input-property__rule-form"
|
|
29434
29447
|
}, {
|
|
29435
29448
|
default: z(() => [
|
|
29436
29449
|
u(D, { name: "required" }, {
|
|
29437
29450
|
default: z(() => [u(E, {
|
|
29438
|
-
checked:
|
|
29439
|
-
"onUpdate:checked": r[0] ||= (e) =>
|
|
29451
|
+
checked: $.required,
|
|
29452
|
+
"onUpdate:checked": r[0] ||= (e) => $.required = e
|
|
29440
29453
|
}, {
|
|
29441
29454
|
default: z(() => [...r[12] ||= [l("必填(值不能为空)", -1)]]),
|
|
29442
29455
|
_: 1
|
|
29443
29456
|
}, 8, ["checked"])]),
|
|
29444
29457
|
_: 1
|
|
29445
29458
|
}),
|
|
29446
|
-
|
|
29459
|
+
oe.value === "string" ? (C(), o(e, { key: 0 }, [
|
|
29447
29460
|
u(D, {
|
|
29448
29461
|
name: "minLength",
|
|
29449
29462
|
label: "最短长度"
|
|
29450
29463
|
}, {
|
|
29451
29464
|
default: z(() => [u(g, {
|
|
29452
|
-
value:
|
|
29453
|
-
"onUpdate:value": r[1] ||= (e) =>
|
|
29465
|
+
value: $.minLength,
|
|
29466
|
+
"onUpdate:value": r[1] ||= (e) => $.minLength = e,
|
|
29454
29467
|
min: 0,
|
|
29455
29468
|
precision: 0,
|
|
29456
29469
|
placeholder: "不限",
|
|
@@ -29463,8 +29476,8 @@ var si = {
|
|
|
29463
29476
|
label: "最大长度"
|
|
29464
29477
|
}, {
|
|
29465
29478
|
default: z(() => [u(g, {
|
|
29466
|
-
value:
|
|
29467
|
-
"onUpdate:value": r[2] ||= (e) =>
|
|
29479
|
+
value: $.maxLength,
|
|
29480
|
+
"onUpdate:value": r[2] ||= (e) => $.maxLength = e,
|
|
29468
29481
|
min: 0,
|
|
29469
29482
|
precision: 0,
|
|
29470
29483
|
placeholder: "不限",
|
|
@@ -29478,22 +29491,22 @@ var si = {
|
|
|
29478
29491
|
extra: "校验值格式,如 ^[a-zA-Z0-9]+$"
|
|
29479
29492
|
}, {
|
|
29480
29493
|
default: z(() => [u(m, {
|
|
29481
|
-
value:
|
|
29482
|
-
"onUpdate:value": r[3] ||= (e) =>
|
|
29494
|
+
value: $.pattern,
|
|
29495
|
+
"onUpdate:value": r[3] ||= (e) => $.pattern = e,
|
|
29483
29496
|
placeholder: "如 ^[a-zA-Z0-9]+$",
|
|
29484
29497
|
"allow-clear": ""
|
|
29485
29498
|
}, null, 8, ["value"])]),
|
|
29486
29499
|
_: 1
|
|
29487
29500
|
})
|
|
29488
29501
|
], 64)) : a("", !0),
|
|
29489
|
-
|
|
29502
|
+
le(oe.value) ? (C(), o(e, { key: 1 }, [u(D, {
|
|
29490
29503
|
name: "min",
|
|
29491
29504
|
label: "最小值"
|
|
29492
29505
|
}, {
|
|
29493
29506
|
default: z(() => [u(g, {
|
|
29494
|
-
value:
|
|
29495
|
-
"onUpdate:value": r[4] ||= (e) =>
|
|
29496
|
-
precision:
|
|
29507
|
+
value: $.min,
|
|
29508
|
+
"onUpdate:value": r[4] ||= (e) => $.min = e,
|
|
29509
|
+
precision: oe.value === "float" ? P(2) : 0,
|
|
29497
29510
|
placeholder: "不限",
|
|
29498
29511
|
class: "me-input-property__rule-input"
|
|
29499
29512
|
}, null, 8, ["value", "precision"])]),
|
|
@@ -29503,28 +29516,28 @@ var si = {
|
|
|
29503
29516
|
label: "最大值"
|
|
29504
29517
|
}, {
|
|
29505
29518
|
default: z(() => [u(g, {
|
|
29506
|
-
value:
|
|
29507
|
-
"onUpdate:value": r[5] ||= (e) =>
|
|
29508
|
-
precision:
|
|
29519
|
+
value: $.max,
|
|
29520
|
+
"onUpdate:value": r[5] ||= (e) => $.max = e,
|
|
29521
|
+
precision: oe.value === "float" ? P(2) : 0,
|
|
29509
29522
|
placeholder: "不限",
|
|
29510
29523
|
class: "me-input-property__rule-input"
|
|
29511
29524
|
}, null, 8, ["value", "precision"])]),
|
|
29512
29525
|
_: 1
|
|
29513
29526
|
})], 64)) : a("", !0),
|
|
29514
|
-
|
|
29527
|
+
oe.value === "date" || oe.value === "time" ? (C(), o(e, { key: 2 }, [u(D, {
|
|
29515
29528
|
name: "min",
|
|
29516
29529
|
label: "最早边界"
|
|
29517
29530
|
}, {
|
|
29518
|
-
default: z(() => [
|
|
29531
|
+
default: z(() => [oe.value === "date" ? (C(), i(y, {
|
|
29519
29532
|
key: 0,
|
|
29520
|
-
value:
|
|
29521
|
-
"onUpdate:value": r[6] ||= (e) =>
|
|
29533
|
+
value: $.min,
|
|
29534
|
+
"onUpdate:value": r[6] ||= (e) => $.min = e,
|
|
29522
29535
|
"value-format": P(Nr),
|
|
29523
29536
|
style: { width: "100%" }
|
|
29524
|
-
}, null, 8, ["value", "value-format"])) : (C(), i(
|
|
29537
|
+
}, null, 8, ["value", "value-format"])) : (C(), i(b, {
|
|
29525
29538
|
key: 1,
|
|
29526
|
-
value:
|
|
29527
|
-
"onUpdate:value": r[7] ||= (e) =>
|
|
29539
|
+
value: $.min,
|
|
29540
|
+
"onUpdate:value": r[7] ||= (e) => $.min = e,
|
|
29528
29541
|
"value-format": P(Pr),
|
|
29529
29542
|
style: { width: "100%" }
|
|
29530
29543
|
}, null, 8, ["value", "value-format"]))]),
|
|
@@ -29533,16 +29546,16 @@ var si = {
|
|
|
29533
29546
|
name: "max",
|
|
29534
29547
|
label: "最晚边界"
|
|
29535
29548
|
}, {
|
|
29536
|
-
default: z(() => [
|
|
29549
|
+
default: z(() => [oe.value === "date" ? (C(), i(y, {
|
|
29537
29550
|
key: 0,
|
|
29538
|
-
value:
|
|
29539
|
-
"onUpdate:value": r[8] ||= (e) =>
|
|
29551
|
+
value: $.max,
|
|
29552
|
+
"onUpdate:value": r[8] ||= (e) => $.max = e,
|
|
29540
29553
|
"value-format": P(Nr),
|
|
29541
29554
|
style: { width: "100%" }
|
|
29542
|
-
}, null, 8, ["value", "value-format"])) : (C(), i(
|
|
29555
|
+
}, null, 8, ["value", "value-format"])) : (C(), i(b, {
|
|
29543
29556
|
key: 1,
|
|
29544
|
-
value:
|
|
29545
|
-
"onUpdate:value": r[9] ||= (e) =>
|
|
29557
|
+
value: $.max,
|
|
29558
|
+
"onUpdate:value": r[9] ||= (e) => $.max = e,
|
|
29546
29559
|
"value-format": P(Pr),
|
|
29547
29560
|
style: { width: "100%" }
|
|
29548
29561
|
}, null, 8, ["value", "value-format"]))]),
|
|
@@ -29554,8 +29567,8 @@ var si = {
|
|
|
29554
29567
|
extra: "可选,覆盖所有校验规则的默认提示文案"
|
|
29555
29568
|
}, {
|
|
29556
29569
|
default: z(() => [u(m, {
|
|
29557
|
-
value:
|
|
29558
|
-
"onUpdate:value": r[10] ||= (e) =>
|
|
29570
|
+
value: $.message,
|
|
29571
|
+
"onUpdate:value": r[10] ||= (e) => $.message = e,
|
|
29559
29572
|
placeholder: "如:该属性不合法",
|
|
29560
29573
|
"allow-clear": ""
|
|
29561
29574
|
}, null, 8, ["value"])]),
|
|
@@ -29568,7 +29581,7 @@ var si = {
|
|
|
29568
29581
|
}, 8, ["open", "title"]),
|
|
29569
29582
|
s("div", {
|
|
29570
29583
|
ref_key: "dropLineEl",
|
|
29571
|
-
ref:
|
|
29584
|
+
ref: be,
|
|
29572
29585
|
class: "me-input-property__drop-line"
|
|
29573
29586
|
}, null, 512)
|
|
29574
29587
|
], 512)]),
|
|
@@ -30042,10 +30055,10 @@ var fi = di, pi = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
30042
30055
|
e.begin = e.match, delete e.match;
|
|
30043
30056
|
}
|
|
30044
30057
|
}
|
|
30045
|
-
function
|
|
30058
|
+
function G(e, t) {
|
|
30046
30059
|
e.relevance === void 0 && (e.relevance = 1);
|
|
30047
30060
|
}
|
|
30048
|
-
var
|
|
30061
|
+
var K = (e, t) => {
|
|
30049
30062
|
if (!e.beforeMatch) return;
|
|
30050
30063
|
if (e.starts) throw Error("beforeMatch cannot be used with starts");
|
|
30051
30064
|
let n = Object.assign({}, e);
|
|
@@ -30055,7 +30068,7 @@ var fi = di, pi = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
30055
30068
|
relevance: 0,
|
|
30056
30069
|
contains: [Object.assign(n, { endsParent: !0 })]
|
|
30057
30070
|
}, e.relevance = 0, delete n.beforeMatch;
|
|
30058
|
-
},
|
|
30071
|
+
}, q = [
|
|
30059
30072
|
"of",
|
|
30060
30073
|
"and",
|
|
30061
30074
|
"for",
|
|
@@ -30067,32 +30080,32 @@ var fi = di, pi = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
30067
30080
|
"parent",
|
|
30068
30081
|
"list",
|
|
30069
30082
|
"value"
|
|
30070
|
-
],
|
|
30071
|
-
function
|
|
30083
|
+
], J = "keyword";
|
|
30084
|
+
function Y(e, t, n = J) {
|
|
30072
30085
|
let r = Object.create(null);
|
|
30073
30086
|
return typeof e == "string" ? i(n, e.split(" ")) : Array.isArray(e) ? i(n, e) : Object.keys(e).forEach(function(n) {
|
|
30074
|
-
Object.assign(r,
|
|
30087
|
+
Object.assign(r, Y(e[n], t, n));
|
|
30075
30088
|
}), r;
|
|
30076
30089
|
function i(e, n) {
|
|
30077
30090
|
t && (n = n.map((e) => e.toLowerCase())), n.forEach(function(t) {
|
|
30078
30091
|
let n = t.split("|");
|
|
30079
|
-
r[n[0]] = [e,
|
|
30092
|
+
r[n[0]] = [e, te(n[0], n[1])];
|
|
30080
30093
|
});
|
|
30081
30094
|
}
|
|
30082
30095
|
}
|
|
30083
|
-
function
|
|
30084
|
-
return t ? Number(t) : +!
|
|
30096
|
+
function te(e, t) {
|
|
30097
|
+
return t ? Number(t) : +!ne(e);
|
|
30085
30098
|
}
|
|
30086
|
-
function
|
|
30087
|
-
return
|
|
30099
|
+
function ne(e) {
|
|
30100
|
+
return q.includes(e.toLowerCase());
|
|
30088
30101
|
}
|
|
30089
|
-
var
|
|
30102
|
+
var re = {}, X = (e) => {
|
|
30090
30103
|
console.error(e);
|
|
30091
|
-
},
|
|
30104
|
+
}, Z = (e, ...t) => {
|
|
30092
30105
|
console.log(`WARN: ${e}`, ...t);
|
|
30093
|
-
},
|
|
30094
|
-
|
|
30095
|
-
},
|
|
30106
|
+
}, Q = (e, t) => {
|
|
30107
|
+
re[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), re[`${e}/${t}`] = !0);
|
|
30108
|
+
}, ie = /* @__PURE__ */ Error();
|
|
30096
30109
|
function ae(e, t, { key: n }) {
|
|
30097
30110
|
let r = 0, i = e[n], a = {}, o = {};
|
|
30098
30111
|
for (let e = 1; e <= t.length; e++) o[e + r] = i[e], a[e + r] = !0, r += b(t[e - 1]);
|
|
@@ -30100,15 +30113,15 @@ var fi = di, pi = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
30100
30113
|
}
|
|
30101
30114
|
function $(e) {
|
|
30102
30115
|
if (Array.isArray(e.begin)) {
|
|
30103
|
-
if (e.skip || e.excludeBegin || e.returnBegin) throw
|
|
30104
|
-
if (typeof e.beginScope != "object" || e.beginScope === null) throw
|
|
30116
|
+
if (e.skip || e.excludeBegin || e.returnBegin) throw X("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), ie;
|
|
30117
|
+
if (typeof e.beginScope != "object" || e.beginScope === null) throw X("beginScope must be object"), ie;
|
|
30105
30118
|
ae(e, e.begin, { key: "beginScope" }), e.begin = C(e.begin, { joinWith: "" });
|
|
30106
30119
|
}
|
|
30107
30120
|
}
|
|
30108
30121
|
function oe(e) {
|
|
30109
30122
|
if (Array.isArray(e.end)) {
|
|
30110
|
-
if (e.skip || e.excludeEnd || e.returnEnd) throw
|
|
30111
|
-
if (typeof e.endScope != "object" || e.endScope === null) throw
|
|
30123
|
+
if (e.skip || e.excludeEnd || e.returnEnd) throw X("skip, excludeEnd, returnEnd not compatible with endScope: {}"), ie;
|
|
30124
|
+
if (typeof e.endScope != "object" || e.endScope === null) throw X("endScope must be object"), ie;
|
|
30112
30125
|
ae(e, e.end, { key: "endScope" }), e.end = C(e.end, { joinWith: "" });
|
|
30113
30126
|
}
|
|
30114
30127
|
}
|
|
@@ -30185,14 +30198,14 @@ var fi = di, pi = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
30185
30198
|
H,
|
|
30186
30199
|
W,
|
|
30187
30200
|
ce,
|
|
30188
|
-
|
|
30201
|
+
K
|
|
30189
30202
|
].forEach((e) => e(n, r)), e.compilerExtensions.forEach((e) => e(n, r)), n.__beforeBegin = null, [
|
|
30190
30203
|
ee,
|
|
30191
30204
|
U,
|
|
30192
|
-
|
|
30205
|
+
G
|
|
30193
30206
|
].forEach((e) => e(n, r)), n.isCompiled = !0;
|
|
30194
30207
|
let s = null;
|
|
30195
|
-
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 &&=
|
|
30208
|
+
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 &&= Y(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) {
|
|
30196
30209
|
return de(e === "self" ? n : e);
|
|
30197
30210
|
})), n.contains.forEach(function(e) {
|
|
30198
30211
|
o(e, a);
|
|
@@ -30237,13 +30250,13 @@ var fi = di, pi = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
30237
30250
|
let n = l.languageDetectRe.exec(t);
|
|
30238
30251
|
if (n) {
|
|
30239
30252
|
let t = N(n[1]);
|
|
30240
|
-
return t || (
|
|
30253
|
+
return t || (Z(s.replace("{}", n[1])), Z("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
|
|
30241
30254
|
}
|
|
30242
30255
|
return t.split(/\s+/).find((e) => u(e) || N(e));
|
|
30243
30256
|
}
|
|
30244
30257
|
function p(e, t, n) {
|
|
30245
30258
|
let r = "", i = "";
|
|
30246
|
-
typeof t == "object" ? (r = e, n = t.ignoreIllegals, i = t.language) : (
|
|
30259
|
+
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);
|
|
30247
30260
|
let a = {
|
|
30248
30261
|
code: r,
|
|
30249
30262
|
language: i
|
|
@@ -30374,7 +30387,7 @@ var fi = di, pi = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
30374
30387
|
return P += a, a.length;
|
|
30375
30388
|
}
|
|
30376
30389
|
let D = N(e);
|
|
30377
|
-
if (!D) throw
|
|
30390
|
+
if (!D) throw X(s.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
|
|
30378
30391
|
let O = le(D), k = "", A = a || O, j = {}, M = new l.__emitter(l);
|
|
30379
30392
|
w();
|
|
30380
30393
|
let P = "", F = 0, I = 0, L = 0, R = !1;
|
|
@@ -30486,10 +30499,10 @@ var fi = di, pi = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
30486
30499
|
l = he(l, e);
|
|
30487
30500
|
}
|
|
30488
30501
|
let E = () => {
|
|
30489
|
-
k(),
|
|
30502
|
+
k(), Q("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
30490
30503
|
};
|
|
30491
30504
|
function D() {
|
|
30492
|
-
k(),
|
|
30505
|
+
k(), Q("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
30493
30506
|
}
|
|
30494
30507
|
let O = !1;
|
|
30495
30508
|
function k() {
|
|
@@ -30507,7 +30520,7 @@ var fi = di, pi = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
30507
30520
|
try {
|
|
30508
30521
|
i = r(e);
|
|
30509
30522
|
} catch (e) {
|
|
30510
|
-
if (
|
|
30523
|
+
if (X("Language definition for '{}' could not be registered.".replace("{}", n)), o) X(e);
|
|
30511
30524
|
else throw e;
|
|
30512
30525
|
i = c;
|
|
30513
30526
|
}
|
|
@@ -30553,7 +30566,7 @@ var fi = di, pi = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
|
30553
30566
|
});
|
|
30554
30567
|
}
|
|
30555
30568
|
function V(e) {
|
|
30556
|
-
return
|
|
30569
|
+
return Q("10.7.0", "highlightBlock will be removed entirely in v12.0"), Q("10.7.0", "Please use highlightElement now."), w(e);
|
|
30557
30570
|
}
|
|
30558
30571
|
Object.assign(e, {
|
|
30559
30572
|
highlight: p,
|
|
@@ -32336,7 +32349,7 @@ var ta = /\r\n|\r|\n/g, na = (e) => e.length === 0 ? [] : e.split(ta), ra = (e)
|
|
|
32336
32349
|
class: _(["me-code-box__tab", { "me-code-box__tab--active": t === v.value }]),
|
|
32337
32350
|
"aria-selected": t === v.value,
|
|
32338
32351
|
onClick: (e) => j(t)
|
|
32339
|
-
}, N(e.label), 11, ua))), 128))])) : x.value ? (C(), o("div", da, [u(P(
|
|
32352
|
+
}, N(e.label), 11, ua))), 128))])) : x.value ? (C(), o("div", da, [u(P(te), { size: 14 }), s("span", null, N(x.value), 1)])) : a("", !0),
|
|
32340
32353
|
n[0] ||= s("div", { class: "me-code-box__spacer" }, null, -1),
|
|
32341
32354
|
c.showCopy ? (C(), o("button", {
|
|
32342
32355
|
key: 2,
|
|
@@ -32347,7 +32360,7 @@ var ta = /\r\n|\r|\n/g, na = (e) => e.length === 0 ? [] : e.split(ta), ra = (e)
|
|
|
32347
32360
|
}, [M.value ? (C(), i(P(W), {
|
|
32348
32361
|
key: 0,
|
|
32349
32362
|
size: 14
|
|
32350
|
-
})) : (C(), i(P(
|
|
32363
|
+
})) : (C(), i(P(J), {
|
|
32351
32364
|
key: 1,
|
|
32352
32365
|
size: 14
|
|
32353
32366
|
})), s("span", null, N(M.value ? c.copiedText : c.copyText), 1)], 8, fa)) : a("", !0)
|
|
@@ -32451,7 +32464,7 @@ var _a = ha, va = /* @__PURE__ */ d({
|
|
|
32451
32464
|
}, [u.value ? (C(), i(P(W), {
|
|
32452
32465
|
key: 0,
|
|
32453
32466
|
size: 14
|
|
32454
|
-
})) : (C(), i(P(
|
|
32467
|
+
})) : (C(), i(P(J), {
|
|
32455
32468
|
key: 1,
|
|
32456
32469
|
size: 14
|
|
32457
32470
|
}))])) : a("", !0)]),
|
|
@@ -32701,7 +32714,7 @@ var xa = ba, Sa = [
|
|
|
32701
32714
|
typeof window < "u" && window.Vue && Ca(window.Vue);
|
|
32702
32715
|
var wa = {
|
|
32703
32716
|
install: Ca,
|
|
32704
|
-
version: "0.0.
|
|
32717
|
+
version: "0.0.35"
|
|
32705
32718
|
};
|
|
32706
32719
|
//#endregion
|
|
32707
32720
|
export { Oe as $message, Oe as MeMessage, Fr as BOOLEAN_OPTIONS, Nr as DATE_FORMAT, Mr as FLOAT_PRECISION, it as MeBody, Be as MeBox, Ge as MeBreadcrumb, kr as MeCard, _a as MeCodeBox, ga as MeCodeItem, Fe as MeIcon, Wn as MeInputGps, Cn as MeInputIconSelector, xa as MeInputJson, fi as MeInputNumber, ui as MeInputProperty, Qn as MeInputRadio, sr as MeLoadJson, xr as MeLoginPage, Dt as MeMenu, ye as MeMessageComponent, Qt as MeModal, Bt as MeNav, Ar as MeSkeleton, ya as MeText, Ln as MeTreeMenu, Pr as TIME_FORMAT, jr as VALUE_TYPE_OPTIONS, Jr as checkDuplicateKeys, wa as default, Ur as exportValue, Ir as genId, Br as inferValueType, Ca as install, Yr as isDuplicateKey, Qr as isRuleApplicable, Pe as loadIconfont, qr as normalizeKey, ei as normalizeRuleSet, Vr as normalizeValue, ti as sanitizeRulesForType, ii as toRuleMap, oi as toValueErrorMap, ri as validateValue, ai as valueError };
|