@farris/ui-vue 1.6.5 → 1.6.6
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/components/avatar/index.esm.js +1 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +2 -2
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +7 -5
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +1 -1
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +3 -2
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +1 -1
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +498 -495
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1 -1
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +3 -2
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1 -1
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +256 -254
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-bar/index.esm.js +416 -394
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +388 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +80 -81
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +237 -237
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1 -1
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +9 -3
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +114 -112
- package/components/order/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1 -1
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +485 -463
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +544 -545
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +6 -4
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.esm.js +1 -1
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +9 -7
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +77 -78
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +5 -3
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +1 -1
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +2 -2
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/video/index.esm.js +1 -1
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +211 -211
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +1 -1
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +25 -26
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +15 -9
- package/designer/data-grid/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +917 -916
- package/designer/farris-designer.all.umd.cjs +5 -5
- package/designer/input-group/index.esm.js +2 -1
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +685 -689
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/radio-group/index.esm.js +7 -3
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +5641 -5603
- package/farris.all.umd.cjs +21 -21
- package/locales/data-grid/ui/en.json +2 -1
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +2 -1
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +2 -1
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
|
@@ -225,17 +225,17 @@ const So = {
|
|
|
225
225
|
backgroundColor: e.backgroundColor || "",
|
|
226
226
|
pointerEvents: "auto"
|
|
227
227
|
}));
|
|
228
|
-
function i(
|
|
229
|
-
t.emit("click"),
|
|
228
|
+
function i(c) {
|
|
229
|
+
t.emit("click"), c.preventDefault(), c.stopPropagation();
|
|
230
230
|
}
|
|
231
231
|
D(() => {
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
234
|
-
const
|
|
232
|
+
const c = o.value;
|
|
233
|
+
if (c) {
|
|
234
|
+
const u = c.getBoundingClientRect(), {
|
|
235
235
|
left: l,
|
|
236
236
|
top: m,
|
|
237
237
|
height: d
|
|
238
|
-
} =
|
|
238
|
+
} = u;
|
|
239
239
|
return {
|
|
240
240
|
left: l,
|
|
241
241
|
top: m + d
|
|
@@ -252,14 +252,14 @@ const So = {
|
|
|
252
252
|
to: "body"
|
|
253
253
|
}, {
|
|
254
254
|
default: () => {
|
|
255
|
-
var
|
|
255
|
+
var c, u;
|
|
256
256
|
return [w("div", {
|
|
257
257
|
class: "overlay-container",
|
|
258
258
|
onClick: (l) => i(l),
|
|
259
259
|
style: r.value
|
|
260
260
|
}, [w("div", {
|
|
261
261
|
style: a.value
|
|
262
|
-
}, [(
|
|
262
|
+
}, [(u = (c = t.slots).default) == null ? void 0 : u.call(c)])])];
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
265
|
}
|
|
@@ -603,19 +603,19 @@ class qe {
|
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function _o(e, t) {
|
|
606
|
-
const n = h(), o = h(), r = h(), i = h(), a = h(),
|
|
606
|
+
const n = h(), o = h(), r = h(), i = h(), a = h(), c = h(), u = h(), l = h(), m = h(), d = h(), p = h(), s = h(e.resizeable), f = h(), v = h(e.draggable), x = h(!1);
|
|
607
607
|
function k() {
|
|
608
608
|
const R = o.value || document.body, O = window.getComputedStyle(R);
|
|
609
609
|
if (!O || !n.value)
|
|
610
610
|
return;
|
|
611
611
|
const U = re.getTransformInfo(n.value), $ = {};
|
|
612
|
-
|
|
612
|
+
u.value && ($.deltaL = n.value.offsetLeft - u.value.x, $.deltaT = n.value.offsetTop - u.value.y);
|
|
613
613
|
const K = O.getPropertyValue("position");
|
|
614
614
|
$.width = R.clientWidth, $.height = R.clientHeight, $.pr = parseInt(O.getPropertyValue("padding-right"), 10), $.pb = parseInt(O.getPropertyValue("padding-bottom"), 10), $.position = O.getPropertyValue("position"), K === "static" && (R.style.position = "relative"), $.translateX = U.x, $.translateY = U.y, d.value = $;
|
|
615
615
|
}
|
|
616
616
|
function E(R) {
|
|
617
617
|
if (n.value) {
|
|
618
|
-
i.value = qe.getCurrent(n.value), a.value = re.getCurrent(n.value),
|
|
618
|
+
i.value = qe.getCurrent(n.value), a.value = re.getCurrent(n.value), c.value = i.value ? qe.copy(i.value) : null, u.value = a.value ? re.copy(a.value) : null, k();
|
|
619
619
|
const O = R.target.getAttribute("type") || "";
|
|
620
620
|
l.value = {
|
|
621
621
|
n: !!O.match(/n/),
|
|
@@ -629,19 +629,19 @@ function _o(e, t) {
|
|
|
629
629
|
var R, O, U, $;
|
|
630
630
|
if (n.value) {
|
|
631
631
|
const K = n.value;
|
|
632
|
-
l.value && ((l.value.n || l.value.s) && ((R =
|
|
632
|
+
l.value && ((l.value.n || l.value.s) && ((R = c.value) != null && R.height) && (K.style.height = c.value.height + "px"), (l.value.w || l.value.e) && ((O = c.value) != null && O.width) && (K.style.width = c.value.width + "px"), u.value && ((U = u.value) != null && U.x && (K.style.left = u.value.x + "px"), ($ = u.value) != null && $.y && (K.style.top = u.value.y + "px")));
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
635
|
function N() {
|
|
636
636
|
const R = e.minHeight ? e.minHeight : 1, O = e.minWidth ? e.minWidth : 1;
|
|
637
|
-
|
|
637
|
+
c.value && u.value && l.value && i.value && (c.value.height < R && (c.value.height = R, l.value.n && a.value && (u.value.y = a.value.y + (i.value.height - R))), c.value.width < O && (c.value.width = O, l.value.w && a.value && (u.value.x = a.value.x + (i.value.width - O))), e.maxHeight && c.value.height > e.maxHeight && (c.value.height = e.maxHeight, a.value && l.value.n && (u.value.y = a.value.y + (i.value.height - e.maxHeight))), e.maxWidth && c.value.width > e.maxWidth && (c.value.width = e.maxWidth, l.value.w && a.value && (u.value.x = a.value.x + (i.value.width - e.maxWidth))));
|
|
638
638
|
}
|
|
639
639
|
function C() {
|
|
640
640
|
if (o.value) {
|
|
641
641
|
const R = d.value;
|
|
642
|
-
if (
|
|
643
|
-
const O = R.width - R.pr - R.deltaL - R.translateX -
|
|
644
|
-
l.value.n &&
|
|
642
|
+
if (u.value && c.value && l.value && i.value) {
|
|
643
|
+
const O = R.width - R.pr - R.deltaL - R.translateX - u.value.x, U = R.height - R.pb - R.deltaT - R.translateY - u.value.y;
|
|
644
|
+
l.value.n && u.value.y + R.translateY < 0 && a.value && (u.value.y = -R.translateY, c.value.height = i.value.height + a.value.y + R.translateY), l.value.w && u.value.x + R.translateX < 0 && a.value && (u.value.x = -R.translateX, c.value.width = i.value.width + a.value.x + R.translateX), c.value.width > O && (c.value.width = O), c.value.height > U && (c.value.height = U);
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
}
|
|
@@ -650,7 +650,7 @@ function _o(e, t) {
|
|
|
650
650
|
return;
|
|
651
651
|
R.subtract(r.value);
|
|
652
652
|
const O = R.x, U = R.y;
|
|
653
|
-
l.value.n ? (
|
|
653
|
+
l.value.n ? (u.value.y = a.value.y + U, c.value.height = i.value.height - U) : l.value.s && (c.value.height = i.value.height + U), l.value.e ? c.value.width = i.value.width + O : l.value.w && (c.value.width = i.value.width - O, u.value.x = a.value.x + O), C(), N(), z();
|
|
654
654
|
}
|
|
655
655
|
function S(R) {
|
|
656
656
|
if (!m.value)
|
|
@@ -684,7 +684,7 @@ function _o(e, t) {
|
|
|
684
684
|
const O = T();
|
|
685
685
|
p.value = O;
|
|
686
686
|
}
|
|
687
|
-
r.value = void 0, i.value = null, a.value = null,
|
|
687
|
+
r.value = void 0, i.value = null, a.value = null, c.value = null, u.value = null, l.value = null, m.value = null, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", F);
|
|
688
688
|
}
|
|
689
689
|
function _() {
|
|
690
690
|
document.addEventListener("mousemove", S), document.addEventListener("mouseup", F);
|
|
@@ -730,8 +730,8 @@ function _o(e, t) {
|
|
|
730
730
|
function V(R = !0) {
|
|
731
731
|
document.body.click();
|
|
732
732
|
const O = o.value || document.body, U = qe.getCurrent(O), $ = n.value;
|
|
733
|
-
R && $ && (f.value = T(), f.value.transform = $.style.transform), U && $ && (
|
|
734
|
-
size:
|
|
733
|
+
R && $ && (f.value = T(), f.value.transform = $.style.transform), U && $ && (c.value = U, c.value.height -= 14, c.value.width -= 14, $.style.height = c.value.height + "px", $.style.width = c.value.width + "px", $.style.left = "7px", $.style.top = "7px", $.style.transform = "", p.value = {
|
|
734
|
+
size: c.value,
|
|
735
735
|
position: {
|
|
736
736
|
x: 0,
|
|
737
737
|
y: 0
|
|
@@ -748,7 +748,7 @@ function _o(e, t) {
|
|
|
748
748
|
x: (window.innerWidth - U.width) / 2,
|
|
749
749
|
y: (window.innerHeight - U.height) / 2
|
|
750
750
|
};
|
|
751
|
-
(R =
|
|
751
|
+
(R = c.value) == null || R.set(U), (O = u.value) == null || O.set($);
|
|
752
752
|
const K = n.value;
|
|
753
753
|
K.style.height = U.height + "px", K.style.width = U.width + "px", K.style.left = `${$.x}px`, K.style.top = `${$.y}px`, K.style.transform = "", p.value = {
|
|
754
754
|
size: U,
|
|
@@ -790,7 +790,7 @@ function _o(e, t) {
|
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
792
|
function qo(e, t, n) {
|
|
793
|
-
const o = h(), r = h(e.draggable), i = h(e.lockAxis), a = h(),
|
|
793
|
+
const o = h(), r = h(e.draggable), i = h(e.lockAxis), a = h(), c = h(), u = h(!1), l = h(new re(0, 0)), m = h(new re(0, 0)), d = h(new re(0, 0)), p = h(new re(0, 0));
|
|
794
794
|
xe(() => n.value, (S) => {
|
|
795
795
|
a.value.style.cursor = S ? "move" : "default";
|
|
796
796
|
});
|
|
@@ -812,9 +812,9 @@ function qo(e, t, n) {
|
|
|
812
812
|
o.value && (o.value.style.transform = F), p.value.x = S, p.value.y = T;
|
|
813
813
|
}
|
|
814
814
|
function v() {
|
|
815
|
-
if (!
|
|
815
|
+
if (!c.value || !o.value)
|
|
816
816
|
return null;
|
|
817
|
-
const S =
|
|
817
|
+
const S = c.value.getBoundingClientRect(), T = o.value.getBoundingClientRect(), F = {
|
|
818
818
|
top: S.top < T.top,
|
|
819
819
|
right: S.right > T.right,
|
|
820
820
|
bottom: S.bottom > T.bottom,
|
|
@@ -826,14 +826,14 @@ function qo(e, t, n) {
|
|
|
826
826
|
S && (l.value && S.subtract(l.value), d.value.set(S), f(), v());
|
|
827
827
|
}
|
|
828
828
|
function k(S) {
|
|
829
|
-
|
|
829
|
+
u.value && r.value && (S.stopPropagation(), S.preventDefault(), x(re.fromEvent(S, a.value)));
|
|
830
830
|
}
|
|
831
831
|
function E() {
|
|
832
832
|
var S;
|
|
833
|
-
|
|
833
|
+
u.value && (u.value = !1, m.value.add(d.value), d.value.reset(), (S = o.value) == null || S.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", E));
|
|
834
834
|
}
|
|
835
835
|
function z() {
|
|
836
|
-
!
|
|
836
|
+
!u.value && a.value && (u.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", k), document.addEventListener("mouseup", E));
|
|
837
837
|
}
|
|
838
838
|
function N() {
|
|
839
839
|
if (o.value) {
|
|
@@ -861,7 +861,7 @@ function qo(e, t, n) {
|
|
|
861
861
|
_ && (a.value = _);
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
o.value = T,
|
|
864
|
+
o.value = T, c.value = F, a.value ? (a.value.classList.add("ng-draggable"), a.value.addEventListener("mousedown", C)) : r.value = !1;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
return {
|
|
@@ -902,7 +902,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
902
902
|
props: Qt,
|
|
903
903
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
904
904
|
setup(e, t) {
|
|
905
|
-
const n = h(e.width || 300), o = h(e.height || 200), r = h(e.modelValue), i = h(""), a = h(e.class),
|
|
905
|
+
const n = h(e.width || 300), o = h(e.height || 200), r = h(e.modelValue), i = h(""), a = h(e.class), c = h(e.fitContent), u = h(e.showHeader), l = h(""), m = h(e.showCloseButton), d = h(e.showMaxButton), p = h(!1), s = h(e.dialogType), f = h(e.src), v = h(""), x = h(e.showButtons), k = h(e.title), E = h(e.containment || null), z = h(), {
|
|
906
906
|
t: N
|
|
907
907
|
} = Dt();
|
|
908
908
|
k.value === "错误提示" && (k.value = N("messageBox.errorTitle"));
|
|
@@ -958,7 +958,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
958
958
|
q.value && !E.value && (E.value = q.value.parentElement, oe.value = E.value, K(b.value, q.value, oe.value), $());
|
|
959
959
|
}), B || (E.value && (E.value = null), ve())), r.value ? C.value = me() : (V.value = !1, O.value = e.draggable);
|
|
960
960
|
}), xe(() => e.showHeader, (B, Y) => {
|
|
961
|
-
B !== Y && (
|
|
961
|
+
B !== Y && (u.value = B);
|
|
962
962
|
}), xe(() => e.showButtons, (B, Y) => {
|
|
963
963
|
B !== Y && (x.value = B);
|
|
964
964
|
}), xe(() => R.value, (B, Y) => {
|
|
@@ -976,7 +976,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
976
976
|
"farris-modal": !0,
|
|
977
977
|
fade: !0
|
|
978
978
|
};
|
|
979
|
-
B["f-modal-fitContent"] = !!
|
|
979
|
+
B["f-modal-fitContent"] = !!c.value, B.show = !!X.value;
|
|
980
980
|
const Y = (ae = e.maskClass) == null ? void 0 : ae.split(" ");
|
|
981
981
|
return Y == null || Y.reduce((se, Ee) => (se[Ee] = !0, se), B), B;
|
|
982
982
|
}), le = D(() => {
|
|
@@ -991,7 +991,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
991
991
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
992
992
|
left: `${(window.innerWidth - n.value) / 2}px`,
|
|
993
993
|
width: `${n.value}px`,
|
|
994
|
-
height:
|
|
994
|
+
height: c.value ? "auto" : `${o.value}px`
|
|
995
995
|
};
|
|
996
996
|
return e.mask || (B.pointerEvents = "auto"), B;
|
|
997
997
|
}), L = () => In() || 1040, te = D(() => {
|
|
@@ -1002,10 +1002,10 @@ const We = /* @__PURE__ */ Ge({
|
|
|
1002
1002
|
return e.mask || (B.pointerEvents = "none", B.backgroundColor = "transparent"), C.value && (B.backgroundColor = "transparent"), B;
|
|
1003
1003
|
}), He = D(() => ({
|
|
1004
1004
|
"modal-content": !0,
|
|
1005
|
-
"modal-content-has-header":
|
|
1005
|
+
"modal-content-has-header": u.value
|
|
1006
1006
|
})), Oe = D(() => {
|
|
1007
1007
|
const B = {
|
|
1008
|
-
display:
|
|
1008
|
+
display: u.value ? "" : "none"
|
|
1009
1009
|
};
|
|
1010
1010
|
return B["pointer-events"] = O.value ? "auto" : "none", B;
|
|
1011
1011
|
}), Se = D(() => ({
|
|
@@ -1128,7 +1128,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
1128
1128
|
ref: q
|
|
1129
1129
|
}, [w("div", {
|
|
1130
1130
|
class: He.value
|
|
1131
|
-
}, [
|
|
1131
|
+
}, [u.value && ze(), w("div", {
|
|
1132
1132
|
class: Ue.value
|
|
1133
1133
|
}, [(Y = (B = t.slots).default) == null ? void 0 : Y.call(B), s.value === "iframe" && w("iframe", {
|
|
1134
1134
|
title: i.value,
|
|
@@ -1136,7 +1136,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
1136
1136
|
width: "100%",
|
|
1137
1137
|
frameborder: "0",
|
|
1138
1138
|
src: f.value
|
|
1139
|
-
}, null)]), Ie()]), !
|
|
1139
|
+
}, null)]), Ie()]), !c.value && q.value && !V.value && H(q.value)]);
|
|
1140
1140
|
}
|
|
1141
1141
|
function Je(B) {
|
|
1142
1142
|
return B || "body";
|
|
@@ -1172,7 +1172,7 @@ function Uo(e) {
|
|
|
1172
1172
|
lt(() => {
|
|
1173
1173
|
document.body.removeChild(t);
|
|
1174
1174
|
});
|
|
1175
|
-
const i = h(), a = h(e.class || ""),
|
|
1175
|
+
const i = h(), a = h(e.class || ""), c = h(!!e.showButtons), u = h(!!e.showHeader), l = h(e.showCloseButton == null ? !0 : e.showCloseButton), m = h(!0), d = h(e.title || ""), p = e.acceptCallback || (() => {
|
|
1176
1176
|
}), s = e.rejectCallback || (() => {
|
|
1177
1177
|
}), f = e.closedCallback || ((z) => {
|
|
1178
1178
|
}), v = e.resizeHandle || ((z) => {
|
|
@@ -1192,8 +1192,8 @@ function Uo(e) {
|
|
|
1192
1192
|
width: e.width,
|
|
1193
1193
|
height: e.height,
|
|
1194
1194
|
buttons: e.buttons,
|
|
1195
|
-
"show-header":
|
|
1196
|
-
"show-buttons":
|
|
1195
|
+
"show-header": u.value,
|
|
1196
|
+
"show-buttons": c.value,
|
|
1197
1197
|
"show-close-button": l.value,
|
|
1198
1198
|
"show-max-button": !1,
|
|
1199
1199
|
onAccept: p,
|
|
@@ -1256,8 +1256,8 @@ class en {
|
|
|
1256
1256
|
showHeader: !0
|
|
1257
1257
|
}, t)), r = h(!0), i = o.value.acceptCallback || (() => {
|
|
1258
1258
|
}), a = o.value.rejectCallback || (() => {
|
|
1259
|
-
}),
|
|
1260
|
-
}),
|
|
1259
|
+
}), c = o.value.closedCallback || ((C, y) => {
|
|
1260
|
+
}), u = o.value.resizeHandle || ((C) => {
|
|
1261
1261
|
}), l = t.stopMoveHandle || ((C) => {
|
|
1262
1262
|
});
|
|
1263
1263
|
let m;
|
|
@@ -1265,7 +1265,7 @@ class en {
|
|
|
1265
1265
|
var S;
|
|
1266
1266
|
r.value = !1;
|
|
1267
1267
|
const y = (S = C == null ? void 0 : C.target) == null ? void 0 : S.classList.contains("modal_close");
|
|
1268
|
-
|
|
1268
|
+
c(C, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
|
|
1269
1269
|
}, s = (C) => {
|
|
1270
1270
|
p(C), m && Ke(() => {
|
|
1271
1271
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Mt(null, n), m = null, this.modalRef.value = null, this.modalRefs) {
|
|
@@ -1290,7 +1290,7 @@ class en {
|
|
|
1290
1290
|
onAccept: i,
|
|
1291
1291
|
onCancel: a,
|
|
1292
1292
|
onClosed: s,
|
|
1293
|
-
onResize:
|
|
1293
|
+
onResize: u,
|
|
1294
1294
|
onEsc: f,
|
|
1295
1295
|
onStopMove: l
|
|
1296
1296
|
}), {
|
|
@@ -1362,14 +1362,14 @@ function Xo(e = {}) {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
return !1;
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function c(l, m) {
|
|
1366
1366
|
return i(l).reduce((s, f) => s && a(f, m), !0);
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1369
|
-
const d = Object.keys(l), p = d.includes("allOf"), s = d.includes("anyOf"), f = p || s, k = (f ? l[f ? p ? "allOf" : "anyOf" : "allOf"] : [l]).map((z) =>
|
|
1368
|
+
function u(l, m) {
|
|
1369
|
+
const d = Object.keys(l), p = d.includes("allOf"), s = d.includes("anyOf"), f = p || s, k = (f ? l[f ? p ? "allOf" : "anyOf" : "allOf"] : [l]).map((z) => c(z, m));
|
|
1370
1370
|
return p ? !k.includes(!1) : k.includes(!0);
|
|
1371
1371
|
}
|
|
1372
|
-
return { parseValueSchema:
|
|
1372
|
+
return { parseValueSchema: u };
|
|
1373
1373
|
}
|
|
1374
1374
|
const Yo = {
|
|
1375
1375
|
convertTo: (e, t, n, o) => {
|
|
@@ -1663,10 +1663,10 @@ function tn(e, t, n) {
|
|
|
1663
1663
|
function a(f, v) {
|
|
1664
1664
|
return () => i.parseValueSchema(f, v);
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function c(f, v, x) {
|
|
1667
1667
|
return f.includes("visible") && v.visible !== void 0 ? typeof v.visible == "boolean" ? () => !!v.visible : v.visible === void 0 ? !0 : a(v.visible, x) : () => !0;
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function u(f, v, x) {
|
|
1670
1670
|
return f.includes("readonly") && v.readonly !== void 0 ? typeof v.readonly == "boolean" ? () => !!v.readonly : a(v.readonly, x) : () => !1;
|
|
1671
1671
|
}
|
|
1672
1672
|
function l(f, v) {
|
|
@@ -1675,7 +1675,7 @@ function tn(e, t, n) {
|
|
|
1675
1675
|
}
|
|
1676
1676
|
function m(f, v, x, k, E, z = "", N = "") {
|
|
1677
1677
|
return Object.keys(f).map((y) => {
|
|
1678
|
-
const S = h(1), T = y, F = f[y], _ = Object.keys(F), b = F.title, q = F.type, V = r.get(q) || { type: "input-group", enableClear: !1 }, H = F.editor ? Object.assign({}, V, F.editor) : Object.assign({}, V), W =
|
|
1678
|
+
const S = h(1), T = y, F = f[y], _ = Object.keys(F), b = F.title, q = F.type, V = r.get(q) || { type: "input-group", enableClear: !1 }, H = F.editor ? Object.assign({}, V, F.editor) : Object.assign({}, V), W = c(_, F, v), J = u(_, F, v);
|
|
1679
1679
|
H.readonly = H.readonly === void 0 ? J() : H.readonly;
|
|
1680
1680
|
const oe = F.type === "cascade" ? m(F.properties, v, x, k, E, z, N) : [], R = !0;
|
|
1681
1681
|
let O = l(F, N);
|
|
@@ -1775,7 +1775,7 @@ function nn(e, t) {
|
|
|
1775
1775
|
const s = o(p);
|
|
1776
1776
|
return Object.keys(s).reduce((f, v) => (Object.prototype.hasOwnProperty.call(d, v) && (f[v] && qt(f[v]) && qt(d[v] || !d[v]) ? Object.assign(f[v], d[v] || {}) : f[v] = d[v]), f), s), s;
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function c(d, p) {
|
|
1779
1779
|
return Object.keys(d).filter((f) => d[f] != null).reduce((f, v) => {
|
|
1780
1780
|
if (p.has(v)) {
|
|
1781
1781
|
const x = p.get(v);
|
|
@@ -1790,9 +1790,9 @@ function nn(e, t) {
|
|
|
1790
1790
|
return f;
|
|
1791
1791
|
}, {});
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1793
|
+
function u(d, p, s = /* @__PURE__ */ new Map()) {
|
|
1794
1794
|
const f = a(d, p);
|
|
1795
|
-
return
|
|
1795
|
+
return c(f, s);
|
|
1796
1796
|
}
|
|
1797
1797
|
function l(d) {
|
|
1798
1798
|
var s;
|
|
@@ -1813,18 +1813,18 @@ function nn(e, t) {
|
|
|
1813
1813
|
function m(d) {
|
|
1814
1814
|
n = d;
|
|
1815
1815
|
}
|
|
1816
|
-
return { getSchemaByType: i, resolveSchemaWithDefaultValue: l, resolveSchemaToProps:
|
|
1816
|
+
return { getSchemaByType: i, resolveSchemaWithDefaultValue: l, resolveSchemaToProps: u, mappingSchemaToProps: c, setDesignerContext: m };
|
|
1817
1817
|
}
|
|
1818
1818
|
const on = {}, rn = {}, { getSchemaByType: Pl, resolveSchemaWithDefaultValue: gr, resolveSchemaToProps: Dl, mappingSchemaToProps: $l, setDesignerContext: Hl } = nn(on, rn), an = {}, ln = {};
|
|
1819
1819
|
tn(an, ln, gr);
|
|
1820
1820
|
const sn = {}, un = {}, { getSchemaByType: Ll, resolveSchemaWithDefaultValue: yr, resolveSchemaToProps: hr, mappingSchemaToProps: br, setDesignerContext: zl } = nn(sn, un), cn = {}, dn = {};
|
|
1821
1821
|
tn(cn, dn, yr);
|
|
1822
|
-
function ht(e, t, n = /* @__PURE__ */ new Map(), o = (a,
|
|
1823
|
-
return sn[t.title] = t, un[t.title] = o, cn[t.title] = r, dn[t.title] = i, on[t.title] = t, rn[t.title] = o, an[t.title] = r, ln[t.title] = i, (a = {},
|
|
1824
|
-
if (!
|
|
1822
|
+
function ht(e, t, n = /* @__PURE__ */ new Map(), o = (a, c, u, l) => c, r = {}, i = (a) => a) {
|
|
1823
|
+
return sn[t.title] = t, un[t.title] = o, cn[t.title] = r, dn[t.title] = i, on[t.title] = t, rn[t.title] = o, an[t.title] = r, ln[t.title] = i, (a = {}, c = !0) => {
|
|
1824
|
+
if (!c)
|
|
1825
1825
|
return br(a, n);
|
|
1826
|
-
const
|
|
1827
|
-
return Object.assign(l,
|
|
1826
|
+
const u = hr(a, t, n), l = Object.keys(e).reduce((m, d) => (m[d] = e[d].default, m), {});
|
|
1827
|
+
return Object.assign(l, u);
|
|
1828
1828
|
};
|
|
1829
1829
|
}
|
|
1830
1830
|
function fn(e, t) {
|
|
@@ -2051,7 +2051,7 @@ var Er = { exports: {} };
|
|
|
2051
2051
|
if (!o[l]) {
|
|
2052
2052
|
var d = typeof dt == "function" && dt;
|
|
2053
2053
|
if (!m && d) return d(l, !0);
|
|
2054
|
-
if (
|
|
2054
|
+
if (c) return c(l, !0);
|
|
2055
2055
|
var p = new Error("Cannot find module '" + l + "'");
|
|
2056
2056
|
throw p.code = "MODULE_NOT_FOUND", p;
|
|
2057
2057
|
}
|
|
@@ -2063,23 +2063,23 @@ var Er = { exports: {} };
|
|
|
2063
2063
|
}
|
|
2064
2064
|
return r[l].exports;
|
|
2065
2065
|
}
|
|
2066
|
-
for (var
|
|
2066
|
+
for (var c = typeof dt == "function" && dt, u = 0; u < i.length; u++) a(i[u]);
|
|
2067
2067
|
return a;
|
|
2068
2068
|
}
|
|
2069
2069
|
return n;
|
|
2070
2070
|
}())({
|
|
2071
2071
|
1: [function(n, o, r) {
|
|
2072
|
-
var i = {}, a = "(?:^|\\s)",
|
|
2073
|
-
function
|
|
2072
|
+
var i = {}, a = "(?:^|\\s)", c = "(?:\\s|$)";
|
|
2073
|
+
function u(d) {
|
|
2074
2074
|
var p = i[d];
|
|
2075
|
-
return p ? p.lastIndex = 0 : i[d] = p = new RegExp(a + d +
|
|
2075
|
+
return p ? p.lastIndex = 0 : i[d] = p = new RegExp(a + d + c, "g"), p;
|
|
2076
2076
|
}
|
|
2077
2077
|
function l(d, p) {
|
|
2078
2078
|
var s = d.className;
|
|
2079
|
-
s.length ?
|
|
2079
|
+
s.length ? u(p).test(s) || (d.className += " " + p) : d.className = p;
|
|
2080
2080
|
}
|
|
2081
2081
|
function m(d, p) {
|
|
2082
|
-
d.className = d.className.replace(
|
|
2082
|
+
d.className = d.className.replace(u(p), " ").trim();
|
|
2083
2083
|
}
|
|
2084
2084
|
o.exports = {
|
|
2085
2085
|
add: l,
|
|
@@ -2088,7 +2088,7 @@ var Er = { exports: {} };
|
|
|
2088
2088
|
}, {}],
|
|
2089
2089
|
2: [function(n, o, r) {
|
|
2090
2090
|
(function(i) {
|
|
2091
|
-
var a = n("contra/emitter"),
|
|
2091
|
+
var a = n("contra/emitter"), c = n("crossvent"), u = n("./classes"), l = document, m = l.documentElement;
|
|
2092
2092
|
function d(b, q) {
|
|
2093
2093
|
var V = arguments.length;
|
|
2094
2094
|
V === 1 && Array.isArray(b) === !1 && (q = b, b = []);
|
|
@@ -2118,7 +2118,7 @@ var Er = { exports: {} };
|
|
|
2118
2118
|
}
|
|
2119
2119
|
function Ue(g) {
|
|
2120
2120
|
var I = g ? "remove" : "add";
|
|
2121
|
-
|
|
2121
|
+
c[I](m, "selectstart", Xe), c[I](m, "click", Xe);
|
|
2122
2122
|
}
|
|
2123
2123
|
function Le() {
|
|
2124
2124
|
Oe(!0), Ne({});
|
|
@@ -2147,7 +2147,7 @@ var Er = { exports: {} };
|
|
|
2147
2147
|
return;
|
|
2148
2148
|
}
|
|
2149
2149
|
var Q = ve;
|
|
2150
|
-
Se(!0), Ue(), ze(), je(Q),
|
|
2150
|
+
Se(!0), Ue(), ze(), je(Q), u.add($ || J, "gu-transit"), St(), xt(), le = 0, Ee(g);
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
2153
|
}
|
|
@@ -2213,7 +2213,7 @@ var Er = { exports: {} };
|
|
|
2213
2213
|
}
|
|
2214
2214
|
function Y() {
|
|
2215
2215
|
var g = $ || J;
|
|
2216
|
-
Ie(), Tt(), Bt(), g &&
|
|
2216
|
+
Ie(), Tt(), Bt(), g && u.rm(g, "gu-transit"), K && clearTimeout(K), te.dragging = !1, me && te.emit("out", g, me, W), te.emit("dragend", g, le), W = J = $ = O = U = K = me = null;
|
|
2217
2217
|
}
|
|
2218
2218
|
function ae(g, I) {
|
|
2219
2219
|
var j;
|
|
@@ -2268,23 +2268,23 @@ var Er = { exports: {} };
|
|
|
2268
2268
|
(g === I || g === T(I)) && (U = T(I)), (g === null && j || g !== I && g !== T(I)) && (U = g);
|
|
2269
2269
|
}
|
|
2270
2270
|
function wt(g) {
|
|
2271
|
-
|
|
2271
|
+
u.rm(g, "gu-hide");
|
|
2272
2272
|
}
|
|
2273
2273
|
function Ct(g) {
|
|
2274
|
-
te.dragging &&
|
|
2274
|
+
te.dragging && u.add(g, "gu-hide");
|
|
2275
2275
|
}
|
|
2276
2276
|
function xt() {
|
|
2277
|
-
H || (H = document.createElement("div"), H.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", H.innerHTML = L.getMirrorText && L.getMirrorText(J) || "控件",
|
|
2277
|
+
H || (H = document.createElement("div"), H.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", H.innerHTML = L.getMirrorText && L.getMirrorText(J) || "控件", u.add(H, "gu-mirror"), L.mirrorContainer.appendChild(H), f(m, "add", "mousemove", Ee), u.add(L.mirrorContainer, "gu-unselectable"), te.emit("cloned", H, J, "mirror"));
|
|
2278
2278
|
}
|
|
2279
2279
|
function St() {
|
|
2280
|
-
if (X = document.createElement("div"),
|
|
2280
|
+
if (X = document.createElement("div"), u.add(X, "gu-insertion"), J) {
|
|
2281
2281
|
var g = J.getBoundingClientRect();
|
|
2282
2282
|
X.style.left = g.left + "px", X.style.top = g.top + "px";
|
|
2283
2283
|
}
|
|
2284
2284
|
ne = !1, L.mirrorContainer.appendChild(X);
|
|
2285
2285
|
}
|
|
2286
2286
|
function Tt() {
|
|
2287
|
-
H && (
|
|
2287
|
+
H && (u.rm(L.mirrorContainer, "gu-unselectable"), f(m, "remove", "mousemove", Ee), C(H).removeChild(H), H = null);
|
|
2288
2288
|
}
|
|
2289
2289
|
function Bt() {
|
|
2290
2290
|
X && (C(X).removeChild(X), X = null);
|
|
@@ -2424,7 +2424,7 @@ var Er = { exports: {} };
|
|
|
2424
2424
|
mousedown: "MSPointerDown",
|
|
2425
2425
|
mousemove: "MSPointerMove"
|
|
2426
2426
|
};
|
|
2427
|
-
i.navigator.pointerEnabled ?
|
|
2427
|
+
i.navigator.pointerEnabled ? c[q](b, J[V], H) : i.navigator.msPointerEnabled ? c[q](b, oe[V], H) : (c[q](b, W[V], H), c[q](b, V, H));
|
|
2428
2428
|
}
|
|
2429
2429
|
function v(b) {
|
|
2430
2430
|
if (b.touches !== void 0)
|
|
@@ -2489,27 +2489,27 @@ var Er = { exports: {} };
|
|
|
2489
2489
|
}).call(this, typeof De < "u" ? De : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2490
2490
|
}, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
|
|
2491
2491
|
3: [function(n, o, r) {
|
|
2492
|
-
o.exports = function(a,
|
|
2493
|
-
return Array.prototype.slice.call(a,
|
|
2492
|
+
o.exports = function(a, c) {
|
|
2493
|
+
return Array.prototype.slice.call(a, c);
|
|
2494
2494
|
};
|
|
2495
2495
|
}, {}],
|
|
2496
2496
|
4: [function(n, o, r) {
|
|
2497
2497
|
var i = n("ticky");
|
|
2498
|
-
o.exports = function(
|
|
2499
|
-
|
|
2500
|
-
|
|
2498
|
+
o.exports = function(c, u, l) {
|
|
2499
|
+
c && i(function() {
|
|
2500
|
+
c.apply(l || null, u || []);
|
|
2501
2501
|
});
|
|
2502
2502
|
};
|
|
2503
2503
|
}, { ticky: 10 }],
|
|
2504
2504
|
5: [function(n, o, r) {
|
|
2505
2505
|
var i = n("atoa"), a = n("./debounce");
|
|
2506
|
-
o.exports = function(
|
|
2506
|
+
o.exports = function(u, l) {
|
|
2507
2507
|
var m = l || {}, d = {};
|
|
2508
|
-
return
|
|
2509
|
-
return d[p] ? d[p].push(s) : d[p] = [s],
|
|
2510
|
-
},
|
|
2511
|
-
return s._once = !0,
|
|
2512
|
-
},
|
|
2508
|
+
return u === void 0 && (u = {}), u.on = function(p, s) {
|
|
2509
|
+
return d[p] ? d[p].push(s) : d[p] = [s], u;
|
|
2510
|
+
}, u.once = function(p, s) {
|
|
2511
|
+
return s._once = !0, u.on(p, s), u;
|
|
2512
|
+
}, u.off = function(p, s) {
|
|
2513
2513
|
var f = arguments.length;
|
|
2514
2514
|
if (f === 1)
|
|
2515
2515
|
delete d[p];
|
|
@@ -2518,29 +2518,29 @@ var Er = { exports: {} };
|
|
|
2518
2518
|
else {
|
|
2519
2519
|
var v = d[p];
|
|
2520
2520
|
if (!v)
|
|
2521
|
-
return
|
|
2521
|
+
return u;
|
|
2522
2522
|
v.splice(v.indexOf(s), 1);
|
|
2523
2523
|
}
|
|
2524
|
-
return
|
|
2525
|
-
},
|
|
2524
|
+
return u;
|
|
2525
|
+
}, u.emit = function() {
|
|
2526
2526
|
var p = i(arguments);
|
|
2527
|
-
return
|
|
2528
|
-
},
|
|
2527
|
+
return u.emitterSnapshot(p.shift()).apply(this, p);
|
|
2528
|
+
}, u.emitterSnapshot = function(p) {
|
|
2529
2529
|
var s = (d[p] || []).slice(0);
|
|
2530
2530
|
return function() {
|
|
2531
|
-
var f = i(arguments), v = this ||
|
|
2531
|
+
var f = i(arguments), v = this || u;
|
|
2532
2532
|
if (p === "error" && m.throws !== !1 && !s.length)
|
|
2533
2533
|
throw f.length === 1 ? f[0] : f;
|
|
2534
2534
|
return s.forEach(function(k) {
|
|
2535
|
-
m.async ? a(k, f, v) : k.apply(v, f), k._once &&
|
|
2536
|
-
}),
|
|
2535
|
+
m.async ? a(k, f, v) : k.apply(v, f), k._once && u.off(p, k);
|
|
2536
|
+
}), u;
|
|
2537
2537
|
};
|
|
2538
|
-
},
|
|
2538
|
+
}, u;
|
|
2539
2539
|
};
|
|
2540
2540
|
}, { "./debounce": 4, atoa: 3 }],
|
|
2541
2541
|
6: [function(n, o, r) {
|
|
2542
2542
|
(function(i) {
|
|
2543
|
-
var a = n("custom-event"),
|
|
2543
|
+
var a = n("custom-event"), c = n("./eventmap"), u = i.document, l = p, m = f, d = [];
|
|
2544
2544
|
i.addEventListener || (l = s, m = v), o.exports = {
|
|
2545
2545
|
add: l,
|
|
2546
2546
|
remove: m,
|
|
@@ -2561,11 +2561,11 @@ var Er = { exports: {} };
|
|
|
2561
2561
|
return C.detachEvent("on" + y, T);
|
|
2562
2562
|
}
|
|
2563
2563
|
function x(C, y, S) {
|
|
2564
|
-
var T =
|
|
2564
|
+
var T = c.indexOf(y) === -1 ? _() : F();
|
|
2565
2565
|
C.dispatchEvent ? C.dispatchEvent(T) : C.fireEvent("on" + y, T);
|
|
2566
2566
|
function F() {
|
|
2567
2567
|
var b;
|
|
2568
|
-
return
|
|
2568
|
+
return u.createEvent ? (b = u.createEvent("Event"), b.initEvent(y, !0, !0)) : u.createEventObject && (b = u.createEventObject()), b;
|
|
2569
2569
|
}
|
|
2570
2570
|
function _() {
|
|
2571
2571
|
return new a(y, { detail: S });
|
|
@@ -2607,24 +2607,24 @@ var Er = { exports: {} };
|
|
|
2607
2607
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
2608
2608
|
7: [function(n, o, r) {
|
|
2609
2609
|
(function(i) {
|
|
2610
|
-
var a = [],
|
|
2611
|
-
for (
|
|
2612
|
-
|
|
2610
|
+
var a = [], c = "", u = /^on/;
|
|
2611
|
+
for (c in i)
|
|
2612
|
+
u.test(c) && a.push(c.slice(2));
|
|
2613
2613
|
o.exports = a;
|
|
2614
2614
|
}).call(this, typeof De < "u" ? De : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2615
2615
|
}, {}],
|
|
2616
2616
|
8: [function(n, o, r) {
|
|
2617
2617
|
(function(i) {
|
|
2618
2618
|
var a = i.CustomEvent;
|
|
2619
|
-
function
|
|
2619
|
+
function c() {
|
|
2620
2620
|
try {
|
|
2621
|
-
var
|
|
2622
|
-
return
|
|
2621
|
+
var u = new a("cat", { detail: { foo: "bar" } });
|
|
2622
|
+
return u.type === "cat" && u.detail.foo === "bar";
|
|
2623
2623
|
} catch {
|
|
2624
2624
|
}
|
|
2625
2625
|
return !1;
|
|
2626
2626
|
}
|
|
2627
|
-
o.exports =
|
|
2627
|
+
o.exports = c() ? a : (
|
|
2628
2628
|
// IE >= 9
|
|
2629
2629
|
typeof document < "u" && typeof document.createEvent == "function" ? function(l, m) {
|
|
2630
2630
|
var d = document.createEvent("CustomEvent");
|
|
@@ -2640,8 +2640,8 @@ var Er = { exports: {} };
|
|
|
2640
2640
|
}).call(this, typeof De < "u" ? De : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2641
2641
|
}, {}],
|
|
2642
2642
|
9: [function(n, o, r) {
|
|
2643
|
-
var i = o.exports = {}, a,
|
|
2644
|
-
function
|
|
2643
|
+
var i = o.exports = {}, a, c;
|
|
2644
|
+
function u() {
|
|
2645
2645
|
throw new Error("setTimeout has not been defined");
|
|
2646
2646
|
}
|
|
2647
2647
|
function l() {
|
|
@@ -2649,20 +2649,20 @@ var Er = { exports: {} };
|
|
|
2649
2649
|
}
|
|
2650
2650
|
(function() {
|
|
2651
2651
|
try {
|
|
2652
|
-
typeof setTimeout == "function" ? a = setTimeout : a =
|
|
2652
|
+
typeof setTimeout == "function" ? a = setTimeout : a = u;
|
|
2653
2653
|
} catch {
|
|
2654
|
-
a =
|
|
2654
|
+
a = u;
|
|
2655
2655
|
}
|
|
2656
2656
|
try {
|
|
2657
|
-
typeof clearTimeout == "function" ?
|
|
2657
|
+
typeof clearTimeout == "function" ? c = clearTimeout : c = l;
|
|
2658
2658
|
} catch {
|
|
2659
|
-
|
|
2659
|
+
c = l;
|
|
2660
2660
|
}
|
|
2661
2661
|
})();
|
|
2662
2662
|
function m(N) {
|
|
2663
2663
|
if (a === setTimeout)
|
|
2664
2664
|
return setTimeout(N, 0);
|
|
2665
|
-
if ((a ===
|
|
2665
|
+
if ((a === u || !a) && setTimeout)
|
|
2666
2666
|
return a = setTimeout, setTimeout(N, 0);
|
|
2667
2667
|
try {
|
|
2668
2668
|
return a(N, 0);
|
|
@@ -2675,17 +2675,17 @@ var Er = { exports: {} };
|
|
|
2675
2675
|
}
|
|
2676
2676
|
}
|
|
2677
2677
|
function d(N) {
|
|
2678
|
-
if (
|
|
2678
|
+
if (c === clearTimeout)
|
|
2679
2679
|
return clearTimeout(N);
|
|
2680
|
-
if ((
|
|
2681
|
-
return
|
|
2680
|
+
if ((c === l || !c) && clearTimeout)
|
|
2681
|
+
return c = clearTimeout, clearTimeout(N);
|
|
2682
2682
|
try {
|
|
2683
|
-
return
|
|
2683
|
+
return c(N);
|
|
2684
2684
|
} catch {
|
|
2685
2685
|
try {
|
|
2686
|
-
return
|
|
2686
|
+
return c.call(null, N);
|
|
2687
2687
|
} catch {
|
|
2688
|
-
return
|
|
2688
|
+
return c.call(this, N);
|
|
2689
2689
|
}
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
@@ -2734,21 +2734,21 @@ var Er = { exports: {} };
|
|
|
2734
2734
|
}, {}],
|
|
2735
2735
|
10: [function(n, o, r) {
|
|
2736
2736
|
(function(i) {
|
|
2737
|
-
var a = typeof i == "function",
|
|
2738
|
-
a ?
|
|
2739
|
-
i(
|
|
2740
|
-
} :
|
|
2741
|
-
setTimeout(
|
|
2742
|
-
}, o.exports =
|
|
2737
|
+
var a = typeof i == "function", c;
|
|
2738
|
+
a ? c = function(u) {
|
|
2739
|
+
i(u);
|
|
2740
|
+
} : c = function(u) {
|
|
2741
|
+
setTimeout(u, 0);
|
|
2742
|
+
}, o.exports = c;
|
|
2743
2743
|
}).call(this, n("timers").setImmediate);
|
|
2744
2744
|
}, { timers: 11 }],
|
|
2745
2745
|
11: [function(n, o, r) {
|
|
2746
2746
|
(function(i, a) {
|
|
2747
|
-
var
|
|
2747
|
+
var c = n("process/browser.js").nextTick, u = Function.prototype.apply, l = Array.prototype.slice, m = {}, d = 0;
|
|
2748
2748
|
r.setTimeout = function() {
|
|
2749
|
-
return new p(
|
|
2749
|
+
return new p(u.call(setTimeout, window, arguments), clearTimeout);
|
|
2750
2750
|
}, r.setInterval = function() {
|
|
2751
|
-
return new p(
|
|
2751
|
+
return new p(u.call(setInterval, window, arguments), clearInterval);
|
|
2752
2752
|
}, r.clearTimeout = r.clearInterval = function(s) {
|
|
2753
2753
|
s.close();
|
|
2754
2754
|
};
|
|
@@ -2770,7 +2770,7 @@ var Er = { exports: {} };
|
|
|
2770
2770
|
}, f));
|
|
2771
2771
|
}, r.setImmediate = typeof i == "function" ? i : function(s) {
|
|
2772
2772
|
var f = d++, v = arguments.length < 2 ? !1 : l.call(arguments, 1);
|
|
2773
|
-
return m[f] = !0,
|
|
2773
|
+
return m[f] = !0, c(function() {
|
|
2774
2774
|
m[f] && (v ? s.apply(null, v) : s.call(null), r.clearImmediate(f));
|
|
2775
2775
|
}), f;
|
|
2776
2776
|
}, r.clearImmediate = typeof a == "function" ? a : function(s) {
|
|
@@ -2806,13 +2806,13 @@ const Or = {
|
|
|
2806
2806
|
const {
|
|
2807
2807
|
locale: n,
|
|
2808
2808
|
t: o
|
|
2809
|
-
} = Dt(), r = h(e.animate), i = "fadeOut", a = D(() => e.options),
|
|
2809
|
+
} = Dt(), r = h(e.animate), i = "fadeOut", a = D(() => e.options), c = h(!1), u = D(() => a.value.title && a.value.message), l = D(() => !a.value.title && a.value.message), m = D(() => {
|
|
2810
2810
|
const N = {
|
|
2811
|
-
animated:
|
|
2811
|
+
animated: c.value,
|
|
2812
2812
|
toast: !0,
|
|
2813
|
-
"toast--only-content": !
|
|
2813
|
+
"toast--only-content": !u.value
|
|
2814
2814
|
};
|
|
2815
|
-
return N[e.animate] = !1, N[i] =
|
|
2815
|
+
return N[e.animate] = !1, N[i] = c.value, N["toasty-type-" + a.value.type] = !0, a.value.theme && (N[a.value.theme] = !0), N;
|
|
2816
2816
|
}), d = D(() => {
|
|
2817
2817
|
const y = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, S = {
|
|
2818
2818
|
"f-icon": !0
|
|
@@ -2823,7 +2823,7 @@ const Or = {
|
|
|
2823
2823
|
overflowWrap: "break-word"
|
|
2824
2824
|
} : {});
|
|
2825
2825
|
function x(N) {
|
|
2826
|
-
N.stopPropagation(), N.preventDefault(),
|
|
2826
|
+
N.stopPropagation(), N.preventDefault(), c.value = !1, setTimeout(() => {
|
|
2827
2827
|
t.emit("close", a.value);
|
|
2828
2828
|
}, 200);
|
|
2829
2829
|
}
|
|
@@ -2855,13 +2855,13 @@ const Or = {
|
|
|
2855
2855
|
class: "f-icon modal_close"
|
|
2856
2856
|
}, null)]), p.value && w("section", {
|
|
2857
2857
|
class: "modal-tips"
|
|
2858
|
-
}, [!
|
|
2858
|
+
}, [!u.value && w("div", {
|
|
2859
2859
|
class: "float-left modal-tips-iconwrap"
|
|
2860
2860
|
}, [w("span", {
|
|
2861
2861
|
class: d.value
|
|
2862
2862
|
}, null)]), w("div", {
|
|
2863
2863
|
class: "modal-tips-content"
|
|
2864
|
-
}, [
|
|
2864
|
+
}, [u.value && w(at, null, [w("h5", {
|
|
2865
2865
|
class: "toast-title modal-tips-title",
|
|
2866
2866
|
innerHTML: a.value.title
|
|
2867
2867
|
}, null), w("p", {
|
|
@@ -2894,25 +2894,25 @@ const Or = {
|
|
|
2894
2894
|
right: 12,
|
|
2895
2895
|
top: 20,
|
|
2896
2896
|
bottom: 12
|
|
2897
|
-
}, r = h(), i = h(e.options), a = h(e.showCloseButton),
|
|
2897
|
+
}, r = h(), i = h(e.options), a = h(e.showCloseButton), c = D(() => e.position || "bottom-right"), u = D(() => e.timeout != null ? e.timeout : 3e3), l = D(() => {
|
|
2898
2898
|
const p = e.bottom ? e.bottom : o.bottom, s = e.top ? e.top : o.top, f = {
|
|
2899
2899
|
transition: "all 0.2s ease",
|
|
2900
|
-
left:
|
|
2901
|
-
right:
|
|
2902
|
-
top:
|
|
2903
|
-
bottom:
|
|
2900
|
+
left: c.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
2901
|
+
right: c.value.indexOf("right") > -1 ? `${e.right ? e.right : o.right}px` : "",
|
|
2902
|
+
top: c.value.indexOf("top") > -1 ? `${s}px` : "",
|
|
2903
|
+
bottom: c.value.indexOf("bottom") > -1 ? `${p}px` : ""
|
|
2904
2904
|
};
|
|
2905
|
-
return
|
|
2905
|
+
return c.value.indexOf("center") > -1 && (f.left = "50%", f.marginLeft = "calc(-24rem / 2)", c.value === "center-center" && (f.top = "50%", f.transform = "translate(-50%, -50%)")), f;
|
|
2906
2906
|
});
|
|
2907
2907
|
function m(p) {
|
|
2908
2908
|
t.emit("close");
|
|
2909
2909
|
}
|
|
2910
|
-
|
|
2910
|
+
u.value && setTimeout(() => {
|
|
2911
2911
|
m();
|
|
2912
|
-
},
|
|
2912
|
+
}, u.value), t.expose({
|
|
2913
2913
|
closeToast: m,
|
|
2914
2914
|
container: r,
|
|
2915
|
-
notifyPosition:
|
|
2915
|
+
notifyPosition: c
|
|
2916
2916
|
});
|
|
2917
2917
|
function d(p, s) {
|
|
2918
2918
|
m();
|
|
@@ -2953,10 +2953,10 @@ class Rr {
|
|
|
2953
2953
|
const a = Pt({
|
|
2954
2954
|
setup() {
|
|
2955
2955
|
var l;
|
|
2956
|
-
const
|
|
2957
|
-
function
|
|
2958
|
-
|
|
2959
|
-
n.updateNotifyPositionForClose(r,
|
|
2956
|
+
const c = h();
|
|
2957
|
+
function u() {
|
|
2958
|
+
c.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
2959
|
+
n.updateNotifyPositionForClose(r, c), a.unmount();
|
|
2960
2960
|
}, 220);
|
|
2961
2961
|
}
|
|
2962
2962
|
if (r.position.indexOf("top") > -1) {
|
|
@@ -2969,16 +2969,16 @@ class Rr {
|
|
|
2969
2969
|
return r.safeHtml && ((l = r.options) != null && l.message) && (r.options.message = n.escapeAllHtml(r.options.message)), lt(() => {
|
|
2970
2970
|
document.body.removeChild(i);
|
|
2971
2971
|
}), st(() => {
|
|
2972
|
-
n.updateNotifyPositionForCreate(r,
|
|
2972
|
+
n.updateNotifyPositionForCreate(r, c);
|
|
2973
2973
|
}), () => w(Yt, {
|
|
2974
2974
|
mode: "out-in",
|
|
2975
2975
|
name: "fade",
|
|
2976
2976
|
appear: !0
|
|
2977
2977
|
}, {
|
|
2978
2978
|
default: () => [w(ft, gt({
|
|
2979
|
-
ref:
|
|
2979
|
+
ref: c
|
|
2980
2980
|
}, r, {
|
|
2981
|
-
onClose:
|
|
2981
|
+
onClose: u
|
|
2982
2982
|
}), null)]
|
|
2983
2983
|
});
|
|
2984
2984
|
}
|
|
@@ -3012,8 +3012,8 @@ class Rr {
|
|
|
3012
3012
|
return this.createNotifyInstance(t);
|
|
3013
3013
|
}
|
|
3014
3014
|
buildNotifyProps(t, n) {
|
|
3015
|
-
let o = "", r = "", i, a,
|
|
3016
|
-
typeof n == "string" ? o = n : n && (o = n.message || "", r = n.title || "", a = n.position || null,
|
|
3015
|
+
let o = "", r = "", i, a, c;
|
|
3016
|
+
typeof n == "string" ? o = n : n && (o = n.message || "", r = n.title || "", a = n.position || null, c = n.showCloseButton != null ? n.showCloseButton : null, i = n.timeout != null ? n.timeout : null);
|
|
3017
3017
|
const l = {
|
|
3018
3018
|
options: {
|
|
3019
3019
|
type: t,
|
|
@@ -3021,7 +3021,7 @@ class Rr {
|
|
|
3021
3021
|
title: r
|
|
3022
3022
|
}
|
|
3023
3023
|
};
|
|
3024
|
-
return a != null && (l.position = a),
|
|
3024
|
+
return a != null && (l.position = a), c != null && (l.showCloseButton = c), i != null && (l.timeout = i), l;
|
|
3025
3025
|
}
|
|
3026
3026
|
info(t) {
|
|
3027
3027
|
const n = this.buildNotifyProps("info", t);
|
|
@@ -3204,7 +3204,7 @@ const Nr = {
|
|
|
3204
3204
|
}
|
|
3205
3205
|
}
|
|
3206
3206
|
};
|
|
3207
|
-
function Pr(e, t, n, o, r, i, a,
|
|
3207
|
+
function Pr(e, t, n, o, r, i, a, c, u, l, m, d, p, s, f, v, x) {
|
|
3208
3208
|
const {
|
|
3209
3209
|
calculateCellPositionInRow: k
|
|
3210
3210
|
} = i, {
|
|
@@ -3217,7 +3217,7 @@ function Pr(e, t, n, o, r, i, a, u, c, l, m, d, p, s, f, v, x) {
|
|
|
3217
3217
|
rightFixedGridDataStyle: S
|
|
3218
3218
|
} = s, {
|
|
3219
3219
|
renderDataRow: T
|
|
3220
|
-
} = Ln(e, t, E, x,
|
|
3220
|
+
} = Ln(e, t, E, x, c, u, l, m, d, p, s, f, v), F = [T];
|
|
3221
3221
|
function _(W, J) {
|
|
3222
3222
|
const oe = k(W);
|
|
3223
3223
|
return x.value.filter((R) => R.visible !== !1).map((R, O) => F[R.type](R, oe, J, O));
|
|
@@ -3264,13 +3264,13 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3264
3264
|
setup(e, t) {
|
|
3265
3265
|
var Lt, zt;
|
|
3266
3266
|
const o = ((Lt = e.rowOption) == null ? void 0 : Lt.height) || 28, r = h(20), i = h(e.columns), a = zn(e), {
|
|
3267
|
-
idField:
|
|
3268
|
-
} = a,
|
|
3267
|
+
idField: c
|
|
3268
|
+
} = a, u = h(), l = h(), m = h(), d = h(), p = h(), s = h([]), f = h(!1), v = h(((zt = e.rowOption) == null ? void 0 : zt.wrapContent) || !1), x = An(e, a), k = Vn(e, t), E = _n(e), {
|
|
3269
3269
|
collapseField: z
|
|
3270
3270
|
} = E, {
|
|
3271
3271
|
showLoading: N,
|
|
3272
3272
|
renderLoading: C
|
|
3273
|
-
} = qn(e,
|
|
3273
|
+
} = qn(e, u), y = Wn(e, /* @__PURE__ */ new Map(), k, E, a), {
|
|
3274
3274
|
dataView: S
|
|
3275
3275
|
} = y, T = Gn(e, y, a, s, t), {
|
|
3276
3276
|
showSelection: F,
|
|
@@ -3368,7 +3368,7 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3368
3368
|
y.insertNewChildDataItem(P), s.value = Se(0, V.value + 0 - 1);
|
|
3369
3369
|
}
|
|
3370
3370
|
function It(P, G) {
|
|
3371
|
-
const ce = s.value.find((we) => we.raw[
|
|
3371
|
+
const ce = s.value.find((we) => we.raw[c.value] === G), pe = ce ? ce.dataIndex - 1 : -1;
|
|
3372
3372
|
y.insertNewChildDataItems(P, pe);
|
|
3373
3373
|
}
|
|
3374
3374
|
function Et() {
|
|
@@ -3425,7 +3425,7 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3425
3425
|
return T.currentSelectedDataId.value;
|
|
3426
3426
|
}
|
|
3427
3427
|
function ot(P, G, ce) {
|
|
3428
|
-
const pe = S.value.find((we) => we[
|
|
3428
|
+
const pe = S.value.find((we) => we[c.value] === P);
|
|
3429
3429
|
if (pe) {
|
|
3430
3430
|
if (Object.keys(pe).forEach((de) => {
|
|
3431
3431
|
Object.prototype.hasOwnProperty.call(G, de) && (pe[de] = G[de]);
|
|
@@ -3438,7 +3438,7 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3438
3438
|
} = ce;
|
|
3439
3439
|
de && !Pe(G[de]) && (pe.__fv_collapse__ = G[de]), Ve && !Pe(G[Ve]) && (pe.__fv_checked__ = G[Ve]), Ae && !Pe(G[Ae]) && (pe.__fv_disabled__ = G[Ae]), _e && !Pe(G[_e]) && (pe.__fv_visible__ = G[_e]);
|
|
3440
3440
|
}
|
|
3441
|
-
const we = s.value.find((de) => de.raw[
|
|
3441
|
+
const we = s.value.find((de) => de.raw[c.value] === P), At = s.value.findIndex((de) => de.raw[c.value] === P);
|
|
3442
3442
|
if (we) {
|
|
3443
3443
|
if (we.raw = pe, Object.keys(we.data).forEach((de) => {
|
|
3444
3444
|
we.data[de].updateData(pe);
|
|
@@ -3459,7 +3459,7 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3459
3459
|
return Object.prototype.hasOwnProperty.call(P, "raw") ? y.hasRealChildren(P.raw) : y.hasRealChildren(P);
|
|
3460
3460
|
}
|
|
3461
3461
|
function it(P) {
|
|
3462
|
-
const G = y.dataView.value.find((ce) => ce[
|
|
3462
|
+
const G = y.dataView.value.find((ce) => ce[c.value] === P);
|
|
3463
3463
|
return G ? G[z.value] : "";
|
|
3464
3464
|
}
|
|
3465
3465
|
function yn() {
|
|
@@ -3527,7 +3527,7 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3527
3527
|
renderDataGridSummary: Bn
|
|
3528
3528
|
} = xo(e, y, $);
|
|
3529
3529
|
return () => w("div", {
|
|
3530
|
-
ref:
|
|
3530
|
+
ref: u,
|
|
3531
3531
|
class: B.value,
|
|
3532
3532
|
style: xn.value,
|
|
3533
3533
|
onWheel: et
|
|
@@ -3740,9 +3740,9 @@ class ei {
|
|
|
3740
3740
|
contents: r
|
|
3741
3741
|
}), n.contents = [o];
|
|
3742
3742
|
const { selectedFields: i } = t;
|
|
3743
|
-
i == null || i.forEach((
|
|
3744
|
-
if (
|
|
3745
|
-
const
|
|
3743
|
+
i == null || i.forEach((c) => {
|
|
3744
|
+
if (c.$type === Vt.SimpleField) {
|
|
3745
|
+
const u = Rt(c), l = this.resolveControlClassByFormColumns(t), m = this.controlCreatorUtils.setFormFieldProperty(u, "", l);
|
|
3746
3746
|
m && r.push(m);
|
|
3747
3747
|
}
|
|
3748
3748
|
});
|
|
@@ -3810,12 +3810,12 @@ class ei {
|
|
|
3810
3810
|
}
|
|
3811
3811
|
}
|
|
3812
3812
|
function ti(e, t, n, o) {
|
|
3813
|
-
var i, a,
|
|
3813
|
+
var i, a, c, u, l, m;
|
|
3814
3814
|
const r = n.parentComponentInstance;
|
|
3815
3815
|
if (r && o) {
|
|
3816
3816
|
const d = (i = r.schema) == null ? void 0 : i.type, s = {
|
|
3817
3817
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
3818
|
-
componentName: ((a = n.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((
|
|
3818
|
+
componentName: ((a = n.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((u = (c = n.bindingSourceContext) == null ? void 0 : c.bindingEntity) == null ? void 0 : u.name) || "标题",
|
|
3819
3819
|
componentType: "form",
|
|
3820
3820
|
formColumns: d === "splitter-pane" ? 1 : 4,
|
|
3821
3821
|
parentContainerId: r.schema.id,
|
|
@@ -4004,14 +4004,14 @@ function ki() {
|
|
|
4004
4004
|
return { onCopy: e };
|
|
4005
4005
|
}
|
|
4006
4006
|
function Fi(e, t, n, o) {
|
|
4007
|
-
const r = h(14), i = h(140), a = h(""),
|
|
4007
|
+
const r = h(14), i = h(140), a = h(""), c = h(o.value.length), u = D(() => o.value), l = D(() => ({
|
|
4008
4008
|
"font-size": `${r.value}px`,
|
|
4009
4009
|
height: "100%"
|
|
4010
4010
|
}));
|
|
4011
4011
|
function m(d) {
|
|
4012
4012
|
if (d.currentTarget) {
|
|
4013
4013
|
const p = d.currentTarget.value || "";
|
|
4014
|
-
|
|
4014
|
+
c.value = p.length;
|
|
4015
4015
|
}
|
|
4016
4016
|
}
|
|
4017
4017
|
return () => w(at, null, [w("textarea", {
|
|
@@ -4022,16 +4022,16 @@ function Fi(e, t, n, o) {
|
|
|
4022
4022
|
rows: "4",
|
|
4023
4023
|
maxlength: i.value,
|
|
4024
4024
|
onInput: (d) => m(d)
|
|
4025
|
-
}, [
|
|
4025
|
+
}, [u.value]), w("span", {
|
|
4026
4026
|
class: "textarea-wordcount",
|
|
4027
4027
|
title: a.value,
|
|
4028
4028
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
4029
|
-
}, [
|
|
4029
|
+
}, [c.value + " / " + i.value])]);
|
|
4030
4030
|
}
|
|
4031
4031
|
function Ii(e, t, n, o) {
|
|
4032
4032
|
const r = Fi(e, t, n, o), i = /* @__PURE__ */ new Map([["text-area", r]]);
|
|
4033
|
-
function a(
|
|
4034
|
-
return i.get(
|
|
4033
|
+
function a(c) {
|
|
4034
|
+
return i.get(c) || null;
|
|
4035
4035
|
}
|
|
4036
4036
|
return { getEditorRender: a };
|
|
4037
4037
|
}
|
|
@@ -4095,18 +4095,18 @@ function Mi(e, t) {
|
|
|
4095
4095
|
const r = D(() => !!e.value && !!e.value.date), i = D(() => {
|
|
4096
4096
|
const s = e.value && e.value.date || "";
|
|
4097
4097
|
return `${t.exception.happend} : ${s}`;
|
|
4098
|
-
}), a = D(() => !!e.value && !!e.value.detail),
|
|
4098
|
+
}), a = D(() => !!e.value && !!e.value.detail), c = D(() => e.value ? n(e.value.detail) > 160 : !1), u = h(!1), l = D(() => u.value ? t.exception.collapse : t.exception.expand), m = D(() => {
|
|
4099
4099
|
const s = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
4100
|
-
return
|
|
4100
|
+
return u.value ? s : o(s, 160);
|
|
4101
4101
|
}), d = D(() => ({
|
|
4102
4102
|
position: "absolute",
|
|
4103
4103
|
right: 0,
|
|
4104
|
-
bottom:
|
|
4104
|
+
bottom: u.value ? 0 : "2px",
|
|
4105
4105
|
color: "#2A87FF",
|
|
4106
4106
|
cursor: "pointer"
|
|
4107
4107
|
}));
|
|
4108
4108
|
function p() {
|
|
4109
|
-
|
|
4109
|
+
u.value = !u.value;
|
|
4110
4110
|
}
|
|
4111
4111
|
return () => w("div", {
|
|
4112
4112
|
class: "toast-msg-detail"
|
|
@@ -4116,7 +4116,7 @@ function Mi(e, t) {
|
|
|
4116
4116
|
class: "exception_error_msg"
|
|
4117
4117
|
}, [w("div", {
|
|
4118
4118
|
innerHTML: m.value
|
|
4119
|
-
}, null),
|
|
4119
|
+
}, null), c.value && w("span", {
|
|
4120
4120
|
style: d.value,
|
|
4121
4121
|
onClick: p
|
|
4122
4122
|
}, [l.value])])])]);
|
|
@@ -4133,9 +4133,9 @@ function ji(e, t, n, o, r) {
|
|
|
4133
4133
|
"f-icon": !0
|
|
4134
4134
|
}, x = `f-icon-${f}`;
|
|
4135
4135
|
return v[x] = !0, v;
|
|
4136
|
-
}),
|
|
4136
|
+
}), c = D(() => n.value || i.value && i.value.message), u = D(() => o.value), l = D(() => !!o.value), m = D(() => !!i.value);
|
|
4137
4137
|
function d() {
|
|
4138
|
-
return m.value ? Mi(i, r) : l.value ? Ri(
|
|
4138
|
+
return m.value ? Mi(i, r) : l.value ? Ri(u) : () => null;
|
|
4139
4139
|
}
|
|
4140
4140
|
const p = d(), s = D(() => r.locale === "en" ? {
|
|
4141
4141
|
wordBreak: "keep-all",
|
|
@@ -4149,7 +4149,7 @@ function ji(e, t, n, o, r) {
|
|
|
4149
4149
|
class: "modal-tips-content"
|
|
4150
4150
|
}, [w("p", {
|
|
4151
4151
|
class: "toast-msg-title",
|
|
4152
|
-
innerHTML:
|
|
4152
|
+
innerHTML: c.value,
|
|
4153
4153
|
style: s.value
|
|
4154
4154
|
}, null), p()])]);
|
|
4155
4155
|
}
|
|
@@ -4158,11 +4158,11 @@ function Ni(e, t, n, o) {
|
|
|
4158
4158
|
onCopy: r
|
|
4159
4159
|
} = t, {
|
|
4160
4160
|
toShowFeedback: i
|
|
4161
|
-
} = n, a = h(o.exception.copySuccess || "复制成功"),
|
|
4161
|
+
} = n, a = h(o.exception.copySuccess || "复制成功"), c = h(o.exception.copy || "复制详细信息"), u = h(e.exceptionInfo || {
|
|
4162
4162
|
date: "",
|
|
4163
4163
|
message: "",
|
|
4164
4164
|
detail: ""
|
|
4165
|
-
}), l = D(() =>
|
|
4165
|
+
}), l = D(() => u.value && u.value.detail || "");
|
|
4166
4166
|
function m(d) {
|
|
4167
4167
|
r(l.value).catch((p) => {
|
|
4168
4168
|
a.value = o.exception.copyFailed || "复制失败";
|
|
@@ -4177,11 +4177,11 @@ function Ni(e, t, n, o) {
|
|
|
4177
4177
|
}, [w("span", {
|
|
4178
4178
|
onClick: m,
|
|
4179
4179
|
style: "cursor: pointer;"
|
|
4180
|
-
}, [
|
|
4180
|
+
}, [c.value])]);
|
|
4181
4181
|
}
|
|
4182
4182
|
function Pi(e, t, n, o, r) {
|
|
4183
|
-
const i = h(e.type), a = h(e.buttons),
|
|
4184
|
-
|
|
4183
|
+
const i = h(e.type), a = h(e.buttons), c = h(e.exceptionInfo), u = h(r.ok || e.okButtonText), l = h(r.cancel || e.cancelButtonText), m = h(e.showCancelButton), d = h(e.showOkButton), p = D(() => !!(a.value && a.value.length)), s = D(() => !!(c.value && c.value.detail)), f = D(() => !(a.value && a.value.length) && (d.value || m.value)), v = Ni(e, n, o, r);
|
|
4184
|
+
u.value === "关闭" ? u.value = r.close : u.value === "知道了" && (u.value = r.exception.roger);
|
|
4185
4185
|
function x(E) {
|
|
4186
4186
|
i.value === "question" && t.emit("reject"), t.emit("close");
|
|
4187
4187
|
}
|
|
@@ -4198,7 +4198,7 @@ function Pi(e, t, n, o, r) {
|
|
|
4198
4198
|
type: "button",
|
|
4199
4199
|
class: "btn btn-primary btn-lg",
|
|
4200
4200
|
onClick: k
|
|
4201
|
-
}, [
|
|
4201
|
+
}, [u.value]), p.value && a.value.length && a.value.map((E) => w("button", {
|
|
4202
4202
|
type: "button",
|
|
4203
4203
|
onClick: E.handle,
|
|
4204
4204
|
class: E.class
|
|
@@ -4244,12 +4244,12 @@ const pt = /* @__PURE__ */ Ge({
|
|
|
4244
4244
|
"flex-row": !0
|
|
4245
4245
|
}, E = `messager-type-${o.value}`;
|
|
4246
4246
|
return k[E] = !0, k;
|
|
4247
|
-
}),
|
|
4247
|
+
}), c = D(() => {
|
|
4248
4248
|
const k = {
|
|
4249
4249
|
cursor: "default"
|
|
4250
4250
|
};
|
|
4251
4251
|
return o.value === "prompt" ? k.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (k.padding = "0.5rem 1.5rem 1rem 1.5rem"), k;
|
|
4252
|
-
}),
|
|
4252
|
+
}), u = ki(), l = Ii(e, o, r, i), m = Ei(), {
|
|
4253
4253
|
feedbackStyle: d,
|
|
4254
4254
|
feedbackMessage: p
|
|
4255
4255
|
} = m;
|
|
@@ -4267,7 +4267,7 @@ const pt = /* @__PURE__ */ Ge({
|
|
|
4267
4267
|
return ji(e, o, r, i, n);
|
|
4268
4268
|
}
|
|
4269
4269
|
}
|
|
4270
|
-
const v = f(), x = Pi(e, t,
|
|
4270
|
+
const v = f(), x = Pi(e, t, u, m, n);
|
|
4271
4271
|
return () => w("div", {
|
|
4272
4272
|
class: "farris-messager"
|
|
4273
4273
|
}, [!e.exceptionInfo && w("div", {
|
|
@@ -4275,7 +4275,7 @@ const pt = /* @__PURE__ */ Ge({
|
|
|
4275
4275
|
class: "messager-draggable"
|
|
4276
4276
|
}, null), w("section", {
|
|
4277
4277
|
class: a.value,
|
|
4278
|
-
style:
|
|
4278
|
+
style: c.value
|
|
4279
4279
|
}, [v()]), x(), s()]);
|
|
4280
4280
|
}
|
|
4281
4281
|
}), Fe = class Fe {
|
|
@@ -4283,13 +4283,13 @@ const pt = /* @__PURE__ */ Ge({
|
|
|
4283
4283
|
const n = $e({
|
|
4284
4284
|
...t
|
|
4285
4285
|
}), o = !1, r = n.type === "error" || n.type === "prompt", i = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", a = n.acceptCallback || (() => {
|
|
4286
|
-
}),
|
|
4286
|
+
}), c = n.rejectCallback || (() => {
|
|
4287
4287
|
});
|
|
4288
|
-
let
|
|
4288
|
+
let u = null, l = new en(Fe.app);
|
|
4289
4289
|
const m = () => {
|
|
4290
|
-
|
|
4290
|
+
u && (u == null || u.destroy(), l = null);
|
|
4291
4291
|
};
|
|
4292
|
-
return
|
|
4292
|
+
return u = l == null ? void 0 : l.open({
|
|
4293
4293
|
class: "modal-message modal-message-type-info",
|
|
4294
4294
|
title: i,
|
|
4295
4295
|
showButtons: o,
|
|
@@ -4301,7 +4301,7 @@ const pt = /* @__PURE__ */ Ge({
|
|
|
4301
4301
|
dragHandle: ".messager-draggable",
|
|
4302
4302
|
render: () => w(pt, gt(n, {
|
|
4303
4303
|
onAccept: a,
|
|
4304
|
-
onReject:
|
|
4304
|
+
onReject: c,
|
|
4305
4305
|
onClose: m
|
|
4306
4306
|
}), null)
|
|
4307
4307
|
}), l == null ? void 0 : l.getCurrentModal();
|
|
@@ -4402,12 +4402,12 @@ function vn(e, t) {
|
|
|
4402
4402
|
return { judgeCanOpen: n };
|
|
4403
4403
|
}
|
|
4404
4404
|
function $i(e, t, n, o, r) {
|
|
4405
|
-
const i = h(e.buttonBehavior), a = h(e.popupOnInput),
|
|
4405
|
+
const i = h(e.buttonBehavior), a = h(e.popupOnInput), c = D(() => ({
|
|
4406
4406
|
"input-group-append": !0,
|
|
4407
4407
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
4408
|
-
})), { judgeCanOpen:
|
|
4408
|
+
})), { judgeCanOpen: u } = vn(e, r), l = D(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), m = Jt(mn, null), d = h();
|
|
4409
4409
|
async function p(v) {
|
|
4410
|
-
if (await
|
|
4410
|
+
if (await u() && l.value) {
|
|
4411
4411
|
const x = !!t.slots.default;
|
|
4412
4412
|
if (i.value === "Modal") {
|
|
4413
4413
|
const k = e.modalOptions, E = m == null ? void 0 : m.open({
|
|
@@ -4431,7 +4431,7 @@ function $i(e, t, n, o, r) {
|
|
|
4431
4431
|
t.emit("mouseLeaveIcon", v);
|
|
4432
4432
|
}
|
|
4433
4433
|
return {
|
|
4434
|
-
buttonGroupClass:
|
|
4434
|
+
buttonGroupClass: c,
|
|
4435
4435
|
onClickButton: p,
|
|
4436
4436
|
onMouseEnterButton: s,
|
|
4437
4437
|
onMouseLeaveButton: f,
|
|
@@ -4444,7 +4444,7 @@ function Hi(e, t, n, o) {
|
|
|
4444
4444
|
xe(() => r.value, (s, f) => {
|
|
4445
4445
|
window[Qe] = window[Qe] || /* @__PURE__ */ new WeakMap(), s ? window[Qe].set(n.value, s) : window[Qe].delete(n.value);
|
|
4446
4446
|
});
|
|
4447
|
-
function
|
|
4447
|
+
function c() {
|
|
4448
4448
|
if (window[Qe]) {
|
|
4449
4449
|
const s = window[Qe];
|
|
4450
4450
|
document.querySelectorAll(".f-button-edit,.v-popover").forEach((f) => {
|
|
@@ -4453,7 +4453,7 @@ function Hi(e, t, n, o) {
|
|
|
4453
4453
|
});
|
|
4454
4454
|
}
|
|
4455
4455
|
}
|
|
4456
|
-
function
|
|
4456
|
+
function u() {
|
|
4457
4457
|
const s = r.value;
|
|
4458
4458
|
s && s.show(n.value);
|
|
4459
4459
|
}
|
|
@@ -4461,14 +4461,14 @@ function Hi(e, t, n, o) {
|
|
|
4461
4461
|
if (!!t.slots.default) {
|
|
4462
4462
|
if (!s && !i.value && !await a())
|
|
4463
4463
|
return;
|
|
4464
|
-
i.value = !i.value, await Ke(),
|
|
4464
|
+
i.value = !i.value, i.value && (await Ke(), u());
|
|
4465
4465
|
}
|
|
4466
4466
|
}
|
|
4467
4467
|
async function m(s = !1) {
|
|
4468
4468
|
if (!!t.slots.default) {
|
|
4469
4469
|
if (!s && !await a())
|
|
4470
4470
|
return;
|
|
4471
|
-
i.value = !0, await Ke(),
|
|
4471
|
+
i.value = !0, await Ke(), u();
|
|
4472
4472
|
}
|
|
4473
4473
|
}
|
|
4474
4474
|
function d() {
|
|
@@ -4476,10 +4476,10 @@ function Hi(e, t, n, o) {
|
|
|
4476
4476
|
}
|
|
4477
4477
|
function p() {
|
|
4478
4478
|
i.value = !0, Ke(() => {
|
|
4479
|
-
|
|
4479
|
+
u();
|
|
4480
4480
|
});
|
|
4481
4481
|
}
|
|
4482
|
-
return { hidePopup: d, showPopup: p, popup: m, shouldPopupContent: i, togglePopup: l, popoverRef: r, closeAllPopover:
|
|
4482
|
+
return { hidePopup: d, showPopup: p, popup: m, shouldPopupContent: i, togglePopup: l, popoverRef: r, closeAllPopover: c };
|
|
4483
4483
|
}
|
|
4484
4484
|
function Li(e, t, n) {
|
|
4485
4485
|
const {
|
|
@@ -4504,7 +4504,7 @@ const vt = /* @__PURE__ */ Ge({
|
|
|
4504
4504
|
props: So,
|
|
4505
4505
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
4506
4506
|
setup(e, t) {
|
|
4507
|
-
const n = h(), o = Jt("design-item-context"), r = $n(n, o), i = h(e.customClass), a = h(e.modelValue),
|
|
4507
|
+
const n = h(), o = Jt("design-item-context"), r = $n(n, o), i = h(e.customClass), a = h(e.modelValue), c = Hi(e, t, n, a), u = $i(e, t, n, c, a), l = h(), m = D(() => ({
|
|
4508
4508
|
"f-cmp-inputgroup": !0,
|
|
4509
4509
|
"input-group": !0,
|
|
4510
4510
|
"f-state-disabled": !0,
|
|
@@ -4523,7 +4523,7 @@ const vt = /* @__PURE__ */ Ge({
|
|
|
4523
4523
|
return i.value && i.value.split(" ").reduce((f, v) => (f[v] = !0, f), s), s;
|
|
4524
4524
|
}), {
|
|
4525
4525
|
renderButtonGroup: p
|
|
4526
|
-
} = Li(e, t,
|
|
4526
|
+
} = Li(e, t, u);
|
|
4527
4527
|
return () => w("div", gt(t.attrs, {
|
|
4528
4528
|
ref: n,
|
|
4529
4529
|
class: d.value,
|