@farris/ui-vue 1.6.5-beta.7 → 1.6.5-beta.8
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/accordion/index.esm.js +65 -65
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +28 -29
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +521 -517
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +134 -134
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +192 -192
- package/components/capsule/index.umd.cjs +1 -1
- package/components/code-editor/index.esm.js +8 -8
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +72 -72
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +291 -289
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +163 -157
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +113 -112
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +3 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +10 -10
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1122 -1121
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +190 -190
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2693 -2693
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1604 -1601
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1082 -1079
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +973 -1040
- package/components/discussion-editor/index.umd.cjs +6 -6
- package/components/dropdown/index.esm.js +335 -330
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +8 -8
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +6 -6
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +344 -344
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +8 -8
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1470 -1460
- package/components/expression-editor/index.umd.cjs +3 -3
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +853 -843
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +922 -911
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +12 -12
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/html-template/index.esm.js +164 -164
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +198 -198
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +64 -64
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +140 -140
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +111 -111
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +90 -90
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +104 -108
- package/components/list-view/index.umd.cjs +3 -3
- package/components/locale/index.esm.js +833 -901
- package/components/locale/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +1352 -1351
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1311 -1307
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +1059 -1127
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.esm.js +7 -7
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +9 -9
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +106 -106
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +326 -326
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +168 -167
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +739 -737
- package/components/order/index.umd.cjs +4 -4
- package/components/page-footer/index.esm.js +94 -94
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +942 -939
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +82 -82
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +1 -1
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +113 -113
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.esm.js +151 -150
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +565 -565
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4142 -4190
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +182 -182
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +106 -106
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +409 -409
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1488 -1478
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +779 -776
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1765 -1762
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/search-box/index.esm.js +114 -114
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1184 -1181
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +163 -163
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +927 -916
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/splitter/index.esm.js +3 -3
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +133 -133
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +76 -72
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1527 -1524
- package/components/tabs/index.umd.cjs +2 -2
- package/components/tags/index.esm.js +93 -93
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +138 -138
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +361 -361
- package/components/textarea/index.umd.cjs +2 -2
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +130 -134
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +25 -25
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +1746 -1743
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +170 -170
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +196 -196
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +8 -8
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +9 -9
- package/components/weather/index.umd.cjs +2 -2
- package/farris.all.esm.js +16987 -17002
- package/farris.all.umd.cjs +27 -27
- package/package.json +1 -1
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
- package/components/time-picker/index.css +0 -1
- package/components/time-picker/index.esm.js +0 -9793
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/time-picker/package.json +0 -8
- package/components/time-picker/style.js +0 -6
- package/designer/button-edit/index.css +0 -1
- package/designer/button-edit/index.esm.js +0 -4856
- package/designer/button-edit/index.umd.cjs +0 -1
- package/designer/checkbox/index.esm.js +0 -250
- package/designer/checkbox/index.umd.cjs +0 -1
- package/designer/checkbox-group/index.esm.js +0 -377
- package/designer/checkbox-group/index.umd.cjs +0 -1
- package/designer/data-grid/index.css +0 -1
- package/designer/data-grid/index.esm.js +0 -15413
- package/designer/data-grid/index.umd.cjs +0 -23
- package/designer/data-view/index.esm.js +0 -854
- package/designer/data-view/index.umd.cjs +0 -38
- package/designer/drawer/index.css +0 -1
- package/designer/drawer/index.esm.js +0 -525
- package/designer/drawer/index.umd.cjs +0 -1
- package/designer/farris-designer.all.esm.js +0 -22320
- package/designer/farris-designer.all.umd.cjs +0 -34
- package/designer/index.css +0 -1
- package/designer/input-group/index.esm.js +0 -1098
- package/designer/input-group/index.umd.cjs +0 -1
- package/designer/list-view/index.css +0 -1
- package/designer/list-view/index.esm.js +0 -4675
- package/designer/list-view/index.umd.cjs +0 -40
- package/designer/radio-group/index.css +0 -1
- package/designer/radio-group/index.esm.js +0 -6980
- package/designer/radio-group/index.umd.cjs +0 -1
- package/designer/tree-grid/index.esm.js +0 -1099
- package/designer/tree-grid/index.umd.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var xn = Object.defineProperty;
|
|
2
2
|
var Sn = (n, e, t) => e in n ? xn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var K = (n, e, t) => Sn(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { ref as b, computed as H, defineComponent as We, createVNode as
|
|
5
|
-
import {
|
|
4
|
+
import { ref as b, computed as H, defineComponent as We, createVNode as B, watch as Be, Fragment as it, reactive as Ve, createApp as Gt, onUnmounted as mt, onMounted as rt, Transition as Yt, mergeProps as It, nextTick as Nt, createTextVNode as Tn, onBeforeMount as En, Teleport as Mn, shallowRef as Bn, render as kt, h as kn, cloneVNode as Fn, inject as At } from "vue";
|
|
5
|
+
import { cloneDeep as ft, isPlainObject as Ht, isUndefined as Re } from "lodash-es";
|
|
6
6
|
import { useI18n as Pt } from "vue-i18n";
|
|
7
7
|
import { LocaleService as vt } from "../locale/index.esm.js";
|
|
8
8
|
import { getCustomClass as Xt, withInstall as On, FormSchemaEntityField$Type as Ut, FormSchemaEntityFieldTypeName as _t, getMaxZIndex as In } from "../common/index.esm.js";
|
|
@@ -164,7 +164,7 @@ function Jt(n, e) {
|
|
|
164
164
|
}
|
|
165
165
|
return { getSchemaByType: r, resolveSchemaWithDefaultValue: l, resolveSchemaToProps: s, mappingSchemaToProps: c, setDesignerContext: f };
|
|
166
166
|
}
|
|
167
|
-
const Zt = {}, Kt = {}, { resolveSchemaWithDefaultValue: bo, resolveSchemaToProps: wo, mappingSchemaToProps: Co } = Jt(Zt, Kt);
|
|
167
|
+
const Zt = {}, Kt = {}, { getSchemaByType: Fs, resolveSchemaWithDefaultValue: bo, resolveSchemaToProps: wo, mappingSchemaToProps: Co, setDesignerContext: Os } = Jt(Zt, Kt);
|
|
168
168
|
function xo(n = {}) {
|
|
169
169
|
function e(l, f, u, m) {
|
|
170
170
|
if (typeof u == "number")
|
|
@@ -284,12 +284,12 @@ const So = {
|
|
|
284
284
|
const o = n.editor && n.editor[e] ? n.editor[e] : n[e];
|
|
285
285
|
return ((i = E[o]) == null ? void 0 : i.name) || o;
|
|
286
286
|
}
|
|
287
|
-
},
|
|
287
|
+
}, Bo = {
|
|
288
288
|
convertTo: (n, e, t, o) => {
|
|
289
289
|
n[e] = n[e];
|
|
290
290
|
},
|
|
291
291
|
convertFrom: (n, e, t) => n.editor ? t.getRealEditorType(n.editor.type) : ""
|
|
292
|
-
},
|
|
292
|
+
}, ko = {
|
|
293
293
|
convertTo: (n, e, t, o) => {
|
|
294
294
|
(n.type === "data-grid-column" || n.type === "tree-grid-column") && (n.formatter ? n.formatter[e] = t : n.formatter = {
|
|
295
295
|
[e]: t
|
|
@@ -467,8 +467,8 @@ function en(n, e, t) {
|
|
|
467
467
|
["/converter/property-editor.converter", Eo],
|
|
468
468
|
["/converter/items-count.converter", Vo],
|
|
469
469
|
["/converter/type.converter", Mo],
|
|
470
|
-
["/converter/change-editor.converter",
|
|
471
|
-
["/converter/change-formatter.converter",
|
|
470
|
+
["/converter/change-editor.converter", Bo],
|
|
471
|
+
["/converter/change-formatter.converter", ko],
|
|
472
472
|
["/converter/column-command.converter", Fo],
|
|
473
473
|
["/converter/column-option.converter", Oo],
|
|
474
474
|
["/converter/summary.converter", Io],
|
|
@@ -588,7 +588,7 @@ function en(n, e, t) {
|
|
|
588
588
|
}
|
|
589
589
|
const tn = {}, nn = {};
|
|
590
590
|
en(tn, nn, bo);
|
|
591
|
-
const on = {}, rn = {}, { resolveSchemaWithDefaultValue: _o } = Jt(on, rn), an = {}, sn = {};
|
|
591
|
+
const on = {}, rn = {}, { getSchemaByType: Is, resolveSchemaWithDefaultValue: _o, resolveSchemaToProps: Ns, mappingSchemaToProps: Ps, setDesignerContext: Ds } = Jt(on, rn), an = {}, sn = {};
|
|
592
592
|
en(an, sn, _o);
|
|
593
593
|
function at(n, e, t = /* @__PURE__ */ new Map(), o = (a, c, s, l) => c, i = {}, r = (a) => a) {
|
|
594
594
|
return Zt[e.title] = e, Kt[e.title] = o, tn[e.title] = i, nn[e.title] = r, on[e.title] = e, rn[e.title] = o, an[e.title] = i, sn[e.title] = r, (a = {}, c = !0) => {
|
|
@@ -675,7 +675,7 @@ const Rt = {
|
|
|
675
675
|
props: Rt,
|
|
676
676
|
emits: [],
|
|
677
677
|
setup(n, e) {
|
|
678
|
-
return () => n.visible &&
|
|
678
|
+
return () => n.visible && B("div", {
|
|
679
679
|
class: n.customClass,
|
|
680
680
|
style: n.customStyle
|
|
681
681
|
}, [e.slots.default && e.slots.default()]);
|
|
@@ -866,7 +866,7 @@ var ii = { exports: {} };
|
|
|
866
866
|
containers: U.containers,
|
|
867
867
|
start: Se,
|
|
868
868
|
end: ze,
|
|
869
|
-
cancel:
|
|
869
|
+
cancel: k,
|
|
870
870
|
remove: Qe,
|
|
871
871
|
destroy: Le,
|
|
872
872
|
canMove: Ne,
|
|
@@ -943,7 +943,7 @@ var ii = { exports: {} };
|
|
|
943
943
|
R && Pe(R);
|
|
944
944
|
}
|
|
945
945
|
function Pe(h) {
|
|
946
|
-
|
|
946
|
+
Bt(h.item, h.source) && (L = h.item.cloneNode(!0), oe.emit("cloned", L, h.item, "copy")), V = h.source, W = h.item, O = G = S(h.item), oe.dragging = !0, oe.emit("drag", W, V);
|
|
947
947
|
}
|
|
948
948
|
function Ke() {
|
|
949
949
|
return !1;
|
|
@@ -954,13 +954,13 @@ var ii = { exports: {} };
|
|
|
954
954
|
Xe(h, w(h));
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function ke() {
|
|
958
958
|
he = !1, xe(!0), Ge(!0);
|
|
959
959
|
}
|
|
960
960
|
function De(h) {
|
|
961
|
-
if (
|
|
961
|
+
if (ke(), !!oe.dragging) {
|
|
962
962
|
var R = L || W, $ = _("clientX", h) || 0, q = _("clientY", h) || 0, J = y(I, $, q), Z = ce(J, $, q);
|
|
963
|
-
Z && (L && U.copySortSource || !L || Z !== V) ? Xe(R, Z) : U.removeOnSpill ? Qe() :
|
|
963
|
+
Z && (L && U.copySortSource || !L || Z !== V) ? Xe(R, Z) : U.removeOnSpill ? Qe() : k();
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
function Xe(h, R) {
|
|
@@ -973,7 +973,7 @@ var ii = { exports: {} };
|
|
|
973
973
|
R && R.removeChild(h), oe.emit(L ? "cancel" : "remove", h, R, V), Q();
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function k(h) {
|
|
977
977
|
if (oe.dragging) {
|
|
978
978
|
var R = arguments.length > 0 ? h : U.revertOnSpill, $ = L || W, q = w($), J = se(q);
|
|
979
979
|
J === !1 && R && (L ? q && q.removeChild(L) : V.insertBefore($, O)), J || R ? oe.emit("cancel", $, V, V) : oe.emit("drop", $, q, V, G), Q();
|
|
@@ -981,7 +981,7 @@ var ii = { exports: {} };
|
|
|
981
981
|
}
|
|
982
982
|
function Q() {
|
|
983
983
|
var h = L || W;
|
|
984
|
-
|
|
984
|
+
ke(), Ct(), xt(), h && s.rm(h, "gu-transit"), te && clearTimeout(te), oe.dragging = !1, ve && oe.emit("out", h, ve, V), oe.emit("dragend", h, le), V = W = L = O = G = te = ve = null;
|
|
985
985
|
}
|
|
986
986
|
function se(h, R) {
|
|
987
987
|
var $;
|
|
@@ -1155,7 +1155,7 @@ var ii = { exports: {} };
|
|
|
1155
1155
|
return ue ? S(R) : R;
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function Bt(h, R) {
|
|
1159
1159
|
return typeof U.copy == "boolean" ? U.copy : U.copy(h, R);
|
|
1160
1160
|
}
|
|
1161
1161
|
}
|
|
@@ -1600,51 +1600,51 @@ const ri = {
|
|
|
1600
1600
|
function F(j) {
|
|
1601
1601
|
return `f-preten-link ${j.customClass ? j.customClass : ""}`;
|
|
1602
1602
|
}
|
|
1603
|
-
|
|
1603
|
+
Be(i, () => {
|
|
1604
1604
|
i.value;
|
|
1605
1605
|
});
|
|
1606
1606
|
const A = () => {
|
|
1607
1607
|
var j;
|
|
1608
|
-
return
|
|
1608
|
+
return B(it, null, [B("div", {
|
|
1609
1609
|
class: "after-toast-msg text-right"
|
|
1610
|
-
}, [!e.slots.default && ((j = a.value.buttons) == null ? void 0 : j.map((w) =>
|
|
1610
|
+
}, [!e.slots.default && ((j = a.value.buttons) == null ? void 0 : j.map((w) => B("span", {
|
|
1611
1611
|
class: F(w),
|
|
1612
1612
|
onClick: (g) => void 0
|
|
1613
1613
|
}, [w.text]))), e.slots.default && e.slots.default()])]);
|
|
1614
1614
|
};
|
|
1615
|
-
return () =>
|
|
1615
|
+
return () => B("div", {
|
|
1616
1616
|
class: f.value,
|
|
1617
1617
|
style: "min-height:44px"
|
|
1618
|
-
}, [p.value &&
|
|
1618
|
+
}, [p.value && B("button", {
|
|
1619
1619
|
title: o("messageBox.close"),
|
|
1620
1620
|
class: "toast-close f-btn-icon f-bare",
|
|
1621
1621
|
onClick: y
|
|
1622
|
-
}, [
|
|
1622
|
+
}, [B("span", {
|
|
1623
1623
|
class: "f-icon modal_close"
|
|
1624
|
-
}, null)]), m.value &&
|
|
1624
|
+
}, null)]), m.value && B("section", {
|
|
1625
1625
|
class: "modal-tips"
|
|
1626
|
-
}, [!s.value &&
|
|
1626
|
+
}, [!s.value && B("div", {
|
|
1627
1627
|
class: "float-left modal-tips-iconwrap"
|
|
1628
|
-
}, [
|
|
1628
|
+
}, [B("span", {
|
|
1629
1629
|
class: u.value
|
|
1630
|
-
}, null)]),
|
|
1630
|
+
}, null)]), B("div", {
|
|
1631
1631
|
class: "modal-tips-content"
|
|
1632
|
-
}, [s.value &&
|
|
1632
|
+
}, [s.value && B(it, null, [B("h5", {
|
|
1633
1633
|
class: "toast-title modal-tips-title",
|
|
1634
1634
|
innerHTML: a.value.title
|
|
1635
|
-
}, null),
|
|
1635
|
+
}, null), B("p", {
|
|
1636
1636
|
class: "toast-msg",
|
|
1637
1637
|
innerHTML: a.value.message,
|
|
1638
1638
|
style: v.value
|
|
1639
|
-
}, null), d.value && A()]), l.value && (a.value.buttons ?
|
|
1639
|
+
}, null), d.value && A()]), l.value && (a.value.buttons ? B("div", {
|
|
1640
1640
|
class: "toast-title-btns-wrapper d-flex"
|
|
1641
|
-
}, [
|
|
1641
|
+
}, [B("h5", {
|
|
1642
1642
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
1643
1643
|
style: v.value,
|
|
1644
1644
|
innerHTML: a.value.message
|
|
1645
|
-
}, null),
|
|
1645
|
+
}, null), B("div", {
|
|
1646
1646
|
class: "after-toast-title text-right ml-auto"
|
|
1647
|
-
}, [A()])]) :
|
|
1647
|
+
}, [A()])]) : B("h5", {
|
|
1648
1648
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
1649
1649
|
style: v.value,
|
|
1650
1650
|
innerHTML: a.value.message
|
|
@@ -1685,11 +1685,11 @@ const ri = {
|
|
|
1685
1685
|
function u(m, p) {
|
|
1686
1686
|
f();
|
|
1687
1687
|
}
|
|
1688
|
-
return () =>
|
|
1688
|
+
return () => B("div", {
|
|
1689
1689
|
class: t.value,
|
|
1690
1690
|
style: l.value,
|
|
1691
1691
|
ref: i
|
|
1692
|
-
}, [
|
|
1692
|
+
}, [B(Ot, {
|
|
1693
1693
|
options: r.value,
|
|
1694
1694
|
showCloseButton: a.value,
|
|
1695
1695
|
animate: n.animate,
|
|
@@ -1738,12 +1738,12 @@ class si {
|
|
|
1738
1738
|
document.body.removeChild(r);
|
|
1739
1739
|
}), rt(() => {
|
|
1740
1740
|
t.updateNotifyPositionForCreate(i, c);
|
|
1741
|
-
}), () =>
|
|
1741
|
+
}), () => B(Yt, {
|
|
1742
1742
|
mode: "out-in",
|
|
1743
1743
|
name: "fade",
|
|
1744
1744
|
appear: !0
|
|
1745
1745
|
}, {
|
|
1746
|
-
default: () => [
|
|
1746
|
+
default: () => [B(ut, It({
|
|
1747
1747
|
ref: c
|
|
1748
1748
|
}, i, {
|
|
1749
1749
|
onClose: s
|
|
@@ -1991,28 +1991,28 @@ function ui(n, e, t, o, i, r, a, c, s, l, f, u, m, p, d, v, y) {
|
|
|
1991
1991
|
return y.value.filter((D) => D.visible !== !1).map((D, O) => N[D.type](D, ee, W, O));
|
|
1992
1992
|
}
|
|
1993
1993
|
function C() {
|
|
1994
|
-
return
|
|
1994
|
+
return B("div", {
|
|
1995
1995
|
ref: o,
|
|
1996
1996
|
class: "fv-grid-content-left-fixed"
|
|
1997
|
-
}, [
|
|
1997
|
+
}, [B("div", {
|
|
1998
1998
|
class: "fv-grid-data",
|
|
1999
1999
|
style: g.value
|
|
2000
2000
|
}, [_(F.value.leftColumns.filter((V) => V.visible), "left")])]);
|
|
2001
2001
|
}
|
|
2002
2002
|
function T() {
|
|
2003
|
-
return
|
|
2003
|
+
return B("div", {
|
|
2004
2004
|
ref: t,
|
|
2005
2005
|
class: "fv-grid-content-primary"
|
|
2006
|
-
}, [
|
|
2006
|
+
}, [B("div", {
|
|
2007
2007
|
class: "fv-grid-data",
|
|
2008
2008
|
style: w.value
|
|
2009
2009
|
}, [_(F.value.primaryColumns.filter((V) => V.visible), "primary")])]);
|
|
2010
2010
|
}
|
|
2011
2011
|
function P() {
|
|
2012
|
-
return
|
|
2012
|
+
return B("div", {
|
|
2013
2013
|
ref: i,
|
|
2014
2014
|
class: "fv-grid-content-right-fixed"
|
|
2015
|
-
}, [
|
|
2015
|
+
}, [B("div", {
|
|
2016
2016
|
class: "fv-grid-data",
|
|
2017
2017
|
style: M.value
|
|
2018
2018
|
}, [_(F.value.rightColumns.filter((V) => V.visible), "right")])]);
|
|
@@ -2074,8 +2074,8 @@ const di = /* @__PURE__ */ We({
|
|
|
2074
2074
|
resetScroll: Pe,
|
|
2075
2075
|
updateVisibleRowsOnLatestVisibleScope: Ke
|
|
2076
2076
|
} = ae, ze = io(n, he, l, Se, ie), {
|
|
2077
|
-
calculateColumnsSize:
|
|
2078
|
-
} = ze, De = ro(), Xe = ao(l, m, g, De, ae), Qe = so(n, e, L, g, ie, y, ae),
|
|
2077
|
+
calculateColumnsSize: ke
|
|
2078
|
+
} = ze, De = ro(), Xe = ao(l, m, g, De, ae), Qe = so(n, e, L, g, ie, y, ae), k = H(() => {
|
|
2079
2079
|
const z = {
|
|
2080
2080
|
"fv-grid": !0,
|
|
2081
2081
|
"fv-grid-bordered": n.showBorder,
|
|
@@ -2106,16 +2106,16 @@ const di = /* @__PURE__ */ We({
|
|
|
2106
2106
|
var z, Y, de;
|
|
2107
2107
|
if (l.value && l.value.clientHeight > 0 && ((z = l.value) == null ? void 0 : z.clientWidth) > 0) {
|
|
2108
2108
|
const me = Math.ceil(l.value.clientHeight / o);
|
|
2109
|
-
me > i.value && (i.value = me, Ke()), Ne.value = ((Y = f.value) == null ? void 0 : Y.clientHeight) || 0, Ie.value = ((de = l.value) == null ? void 0 : de.clientWidth) || 0,
|
|
2109
|
+
me > i.value && (i.value = me, Ke()), Ne.value = ((Y = f.value) == null ? void 0 : Y.clientHeight) || 0, Ie.value = ((de = l.value) == null ? void 0 : de.clientWidth) || 0, ke();
|
|
2110
2110
|
}
|
|
2111
2111
|
}
|
|
2112
2112
|
rt(() => {
|
|
2113
|
-
l.value && (i.value = Math.max(Math.ceil(l.value.clientHeight / o), i.value), p.value = xe(0, P.value + 0 - 1), Nn(l.value, Ct),
|
|
2113
|
+
l.value && (i.value = Math.max(Math.ceil(l.value.clientHeight / o), i.value), p.value = xe(0, P.value + 0 - 1), Nn(l.value, Ct), ke(), Nt(() => {
|
|
2114
2114
|
l.value && (Ie.value = l.value.clientWidth), f.value && (Se.value = f.value.clientWidth, Ne.value = f.value.clientHeight);
|
|
2115
2115
|
})), j.value && w();
|
|
2116
2116
|
}), mt(() => {
|
|
2117
|
-
}),
|
|
2118
|
-
l.value &&
|
|
2117
|
+
}), Be(Se, () => {
|
|
2118
|
+
l.value && ke();
|
|
2119
2119
|
});
|
|
2120
2120
|
function xt(z) {
|
|
2121
2121
|
g.collapseTo(z), g.reOrderVisibleIndex(), Pe();
|
|
@@ -2146,16 +2146,16 @@ const di = /* @__PURE__ */ We({
|
|
|
2146
2146
|
function lt(z) {
|
|
2147
2147
|
ne.onEditingRow(z);
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function Bt(z) {
|
|
2150
2150
|
ne.acceptEditingRow(z);
|
|
2151
2151
|
}
|
|
2152
2152
|
function h(z) {
|
|
2153
2153
|
ne.cancelEditingRow(z);
|
|
2154
2154
|
}
|
|
2155
2155
|
function R(z) {
|
|
2156
|
-
z && (r.value = z, D(r), X(r.value), ve(g, te),
|
|
2156
|
+
z && (r.value = z, D(r), X(r.value), ve(g, te), ke());
|
|
2157
2157
|
}
|
|
2158
|
-
|
|
2158
|
+
Be(() => n.columns, (z) => {
|
|
2159
2159
|
R(z);
|
|
2160
2160
|
});
|
|
2161
2161
|
function $(z, Y) {
|
|
@@ -2233,7 +2233,7 @@ const di = /* @__PURE__ */ We({
|
|
|
2233
2233
|
function pn() {
|
|
2234
2234
|
return A.value;
|
|
2235
2235
|
}
|
|
2236
|
-
|
|
2236
|
+
Be(() => n.showSetting, (z, Y) => {
|
|
2237
2237
|
z !== Y && (z ? O(r) : G(r), R(r.value));
|
|
2238
2238
|
});
|
|
2239
2239
|
function mn(z) {
|
|
@@ -2255,7 +2255,7 @@ const di = /* @__PURE__ */ We({
|
|
|
2255
2255
|
expandTo: st,
|
|
2256
2256
|
removeDataItem: Mt,
|
|
2257
2257
|
editDataItem: lt,
|
|
2258
|
-
acceptDataItem:
|
|
2258
|
+
acceptDataItem: Bt,
|
|
2259
2259
|
cancelDataItem: h,
|
|
2260
2260
|
updateColumns: R,
|
|
2261
2261
|
updateDataSource: $,
|
|
@@ -2281,9 +2281,9 @@ const di = /* @__PURE__ */ We({
|
|
|
2281
2281
|
}), yn = H(() => ({
|
|
2282
2282
|
...W.value,
|
|
2283
2283
|
borderRadius: "5px"
|
|
2284
|
-
}))
|
|
2285
|
-
|
|
2286
|
-
|
|
2284
|
+
}));
|
|
2285
|
+
vo(n, e, g, ae, I, S);
|
|
2286
|
+
const bn = H(() => ({
|
|
2287
2287
|
"d-flex": !0,
|
|
2288
2288
|
"justify-content-between": V.value && N.value,
|
|
2289
2289
|
"justify-content-end": V.value && !N.value,
|
|
@@ -2294,22 +2294,22 @@ const di = /* @__PURE__ */ We({
|
|
|
2294
2294
|
})), {
|
|
2295
2295
|
renderDataGridSummary: Cn
|
|
2296
2296
|
} = ho(n, g, L);
|
|
2297
|
-
return () =>
|
|
2297
|
+
return () => B("div", {
|
|
2298
2298
|
ref: s,
|
|
2299
|
-
class:
|
|
2299
|
+
class: k.value,
|
|
2300
2300
|
style: yn.value,
|
|
2301
2301
|
onWheel: Ze
|
|
2302
|
-
}, [l.value && ht.value && ce(),
|
|
2302
|
+
}, [l.value && ht.value && ce(), B("div", {
|
|
2303
2303
|
ref: l,
|
|
2304
2304
|
class: Q.value,
|
|
2305
2305
|
onMouseover: () => d.value = !0,
|
|
2306
2306
|
onMouseleave: () => d.value = !1,
|
|
2307
2307
|
style: gn.value
|
|
2308
|
-
}, [l.value && gt(p), l.value && se(), l.value && Te.value && ue(), l.value && bt(), l.value && wt()]), l.value && Cn(), N.value &&
|
|
2308
|
+
}, [l.value && gt(p), l.value && se(), l.value && Te.value && ue(), l.value && bt(), l.value && wt()]), l.value && Cn(), N.value && B("div", {
|
|
2309
2309
|
class: bn.value
|
|
2310
|
-
}, [N.value &&
|
|
2310
|
+
}, [N.value && B("div", {
|
|
2311
2311
|
class: wn.value
|
|
2312
|
-
}, [
|
|
2312
|
+
}, [B("div", null, ["已选:" + _.value.length, Tn(" 条")])])]), Fe(), T.value && yt()]);
|
|
2313
2313
|
}
|
|
2314
2314
|
});
|
|
2315
2315
|
On(di);
|
|
@@ -2419,7 +2419,7 @@ const mi = "https://json-schema.org/draft/2020-12/schema", vi = "https://farris-
|
|
|
2419
2419
|
description: Si,
|
|
2420
2420
|
type: Ti,
|
|
2421
2421
|
categories: Ei
|
|
2422
|
-
},
|
|
2422
|
+
}, Bi = {
|
|
2423
2423
|
/** 步骤条方向 */
|
|
2424
2424
|
direction: { type: String, default: "horizontal" },
|
|
2425
2425
|
/** 是否平铺 */
|
|
@@ -2450,8 +2450,8 @@ const mi = "https://json-schema.org/draft/2020-12/schema", vi = "https://farris-
|
|
|
2450
2450
|
onClick: { type: Function, default: () => {
|
|
2451
2451
|
} }
|
|
2452
2452
|
};
|
|
2453
|
-
at(
|
|
2454
|
-
function
|
|
2453
|
+
at(Bi, Ci, fi, pi, Mi);
|
|
2454
|
+
function ki(n, e, t) {
|
|
2455
2455
|
var C;
|
|
2456
2456
|
const o = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", r = b();
|
|
2457
2457
|
let a;
|
|
@@ -3727,7 +3727,7 @@ function gr(n, e, t, o) {
|
|
|
3727
3727
|
c.value = m.length;
|
|
3728
3728
|
}
|
|
3729
3729
|
}
|
|
3730
|
-
return () =>
|
|
3730
|
+
return () => B(it, null, [B("textarea", {
|
|
3731
3731
|
title: "promptMessage",
|
|
3732
3732
|
name: "promptMessage",
|
|
3733
3733
|
class: "form-control",
|
|
@@ -3735,7 +3735,7 @@ function gr(n, e, t, o) {
|
|
|
3735
3735
|
rows: "4",
|
|
3736
3736
|
maxlength: r.value,
|
|
3737
3737
|
onInput: (u) => f(u)
|
|
3738
|
-
}, [s.value]),
|
|
3738
|
+
}, [s.value]), B("span", {
|
|
3739
3739
|
class: "textarea-wordcount",
|
|
3740
3740
|
title: a.value,
|
|
3741
3741
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
@@ -3821,21 +3821,21 @@ function Cr(n, e) {
|
|
|
3821
3821
|
function m() {
|
|
3822
3822
|
s.value = !s.value;
|
|
3823
3823
|
}
|
|
3824
|
-
return () =>
|
|
3824
|
+
return () => B("div", {
|
|
3825
3825
|
class: "toast-msg-detail"
|
|
3826
|
-
}, [i.value &&
|
|
3826
|
+
}, [i.value && B("div", null, [r.value]), a.value && B("div", {
|
|
3827
3827
|
class: "exception_wrap"
|
|
3828
|
-
}, [
|
|
3828
|
+
}, [B("div", {
|
|
3829
3829
|
class: "exception_error_msg"
|
|
3830
|
-
}, [
|
|
3830
|
+
}, [B("div", {
|
|
3831
3831
|
innerHTML: f.value
|
|
3832
|
-
}, null), c.value &&
|
|
3832
|
+
}, null), c.value && B("span", {
|
|
3833
3833
|
style: u.value,
|
|
3834
3834
|
onClick: m
|
|
3835
3835
|
}, [l.value])])])]);
|
|
3836
3836
|
}
|
|
3837
3837
|
function xr(n) {
|
|
3838
|
-
return () =>
|
|
3838
|
+
return () => B("p", {
|
|
3839
3839
|
class: "toast-msg-detail",
|
|
3840
3840
|
innerHTML: n.value
|
|
3841
3841
|
}, null);
|
|
@@ -3854,13 +3854,13 @@ function Sr(n, e, t, o, i) {
|
|
|
3854
3854
|
wordBreak: "keep-all",
|
|
3855
3855
|
overflowWrap: "break-word"
|
|
3856
3856
|
} : {});
|
|
3857
|
-
return () =>
|
|
3857
|
+
return () => B(it, null, [B("div", {
|
|
3858
3858
|
class: "float-left modal-tips-iconwrap"
|
|
3859
|
-
}, [
|
|
3859
|
+
}, [B("span", {
|
|
3860
3860
|
class: a.value
|
|
3861
|
-
}, null)]),
|
|
3861
|
+
}, null)]), B("div", {
|
|
3862
3862
|
class: "modal-tips-content"
|
|
3863
|
-
}, [
|
|
3863
|
+
}, [B("p", {
|
|
3864
3864
|
class: "toast-msg-title",
|
|
3865
3865
|
innerHTML: c.value,
|
|
3866
3866
|
style: p.value
|
|
@@ -3885,9 +3885,9 @@ function Tr(n, e, t, o) {
|
|
|
3885
3885
|
}, 700);
|
|
3886
3886
|
});
|
|
3887
3887
|
}
|
|
3888
|
-
return () =>
|
|
3888
|
+
return () => B("span", {
|
|
3889
3889
|
style: "width: 100%;color: #2A87FF;padding-left: 37px;"
|
|
3890
|
-
}, [
|
|
3890
|
+
}, [B("span", {
|
|
3891
3891
|
onClick: f,
|
|
3892
3892
|
style: "cursor: pointer;"
|
|
3893
3893
|
}, [c.value])]);
|
|
@@ -3901,21 +3901,21 @@ function Er(n, e, t, o, i) {
|
|
|
3901
3901
|
function x(F) {
|
|
3902
3902
|
r.value === "question" && e.emit("accept"), e.emit("close");
|
|
3903
3903
|
}
|
|
3904
|
-
return () =>
|
|
3904
|
+
return () => B("div", {
|
|
3905
3905
|
class: "modal-footer"
|
|
3906
|
-
}, [p.value && v(), d.value && f.value &&
|
|
3906
|
+
}, [p.value && v(), d.value && f.value && B("button", {
|
|
3907
3907
|
type: "button",
|
|
3908
3908
|
class: "btn btn-secondary btn-lg",
|
|
3909
3909
|
onClick: y
|
|
3910
|
-
}, [l.value]), d.value && u.value &&
|
|
3910
|
+
}, [l.value]), d.value && u.value && B("button", {
|
|
3911
3911
|
type: "button",
|
|
3912
3912
|
class: "btn btn-primary btn-lg",
|
|
3913
3913
|
onClick: x
|
|
3914
|
-
}, [s.value]), m.value && a.value.length && a.value.map((F) =>
|
|
3914
|
+
}, [s.value]), m.value && a.value.length && a.value.map((F) => B("button", {
|
|
3915
3915
|
type: "button",
|
|
3916
3916
|
onClick: F.handle,
|
|
3917
3917
|
class: F.class
|
|
3918
|
-
}, [F.iconClass &&
|
|
3918
|
+
}, [F.iconClass && B("span", {
|
|
3919
3919
|
class: F.iconClass
|
|
3920
3920
|
}, null), F.text]))]);
|
|
3921
3921
|
}
|
|
@@ -3968,7 +3968,7 @@ const dt = /* @__PURE__ */ We({
|
|
|
3968
3968
|
} = f;
|
|
3969
3969
|
m.value = t.exception.copySuccess;
|
|
3970
3970
|
function p() {
|
|
3971
|
-
return
|
|
3971
|
+
return B("div", {
|
|
3972
3972
|
style: u.value
|
|
3973
3973
|
}, [m.value]);
|
|
3974
3974
|
}
|
|
@@ -3981,17 +3981,17 @@ const dt = /* @__PURE__ */ We({
|
|
|
3981
3981
|
}
|
|
3982
3982
|
}
|
|
3983
3983
|
const v = d(), y = Er(n, e, s, f, t);
|
|
3984
|
-
return () =>
|
|
3984
|
+
return () => B("div", {
|
|
3985
3985
|
class: "farris-messager"
|
|
3986
|
-
}, [!n.exceptionInfo &&
|
|
3986
|
+
}, [!n.exceptionInfo && B("div", {
|
|
3987
3987
|
style: "height: 30px;width: 100%;position: absolute;",
|
|
3988
3988
|
class: "messager-draggable"
|
|
3989
|
-
}, null),
|
|
3989
|
+
}, null), B("section", {
|
|
3990
3990
|
class: a.value,
|
|
3991
3991
|
style: c.value
|
|
3992
3992
|
}, [v()]), y(), p()]);
|
|
3993
3993
|
}
|
|
3994
|
-
}),
|
|
3994
|
+
}), Br = "https://json-schema.org/draft/2020-12/schema", kr = "https://farris-design.gitee.io/modal.schema.json", Fr = "modal", Or = "弹窗组件", Ir = "object", Nr = {
|
|
3995
3995
|
id: {
|
|
3996
3996
|
description: "组件唯一标识",
|
|
3997
3997
|
type: "string"
|
|
@@ -4106,8 +4106,8 @@ const dt = /* @__PURE__ */ We({
|
|
|
4106
4106
|
onCancel: "取消事件",
|
|
4107
4107
|
beforeClose: "关闭前回调"
|
|
4108
4108
|
}, Rr = {
|
|
4109
|
-
$schema:
|
|
4110
|
-
$id:
|
|
4109
|
+
$schema: Br,
|
|
4110
|
+
$id: kr,
|
|
4111
4111
|
title: Fr,
|
|
4112
4112
|
description: Or,
|
|
4113
4113
|
type: Ir,
|
|
@@ -4384,35 +4384,35 @@ function Ar(n, e) {
|
|
|
4384
4384
|
D instanceof MouseEvent && D.button === 2 || v.value && (document.body.click(), D.stopPropagation(), D.preventDefault(), i.value = re.fromEvent(D), f.value = D.target, F(D), _());
|
|
4385
4385
|
}
|
|
4386
4386
|
function T(D) {
|
|
4387
|
-
return t.value = D, p.value &&
|
|
4387
|
+
return t.value = D, p.value && B(it, null, [B("div", {
|
|
4388
4388
|
class: "fv-resizable-handle fv-resizable-n",
|
|
4389
4389
|
type: "n",
|
|
4390
4390
|
onMousedown: (O) => C(O)
|
|
4391
|
-
}, null),
|
|
4391
|
+
}, null), B("div", {
|
|
4392
4392
|
class: "fv-resizable-handle fv-resizable-e",
|
|
4393
4393
|
type: "e",
|
|
4394
4394
|
onMousedown: (O) => C(O)
|
|
4395
|
-
}, null),
|
|
4395
|
+
}, null), B("div", {
|
|
4396
4396
|
class: "fv-resizable-handle fv-resizable-s",
|
|
4397
4397
|
type: "s",
|
|
4398
4398
|
onMousedown: (O) => C(O)
|
|
4399
|
-
}, null),
|
|
4399
|
+
}, null), B("div", {
|
|
4400
4400
|
class: "fv-resizable-handle fv-resizable-w",
|
|
4401
4401
|
type: "w",
|
|
4402
4402
|
onMousedown: (O) => C(O)
|
|
4403
|
-
}, null),
|
|
4403
|
+
}, null), B("div", {
|
|
4404
4404
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
4405
4405
|
type: "ne",
|
|
4406
4406
|
onMousedown: (O) => C(O)
|
|
4407
|
-
}, null),
|
|
4407
|
+
}, null), B("div", {
|
|
4408
4408
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
4409
4409
|
type: "se",
|
|
4410
4410
|
onMousedown: (O) => C(O)
|
|
4411
|
-
}, null),
|
|
4411
|
+
}, null), B("div", {
|
|
4412
4412
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
4413
4413
|
type: "sw",
|
|
4414
4414
|
onMousedown: (O) => C(O)
|
|
4415
|
-
}, null),
|
|
4415
|
+
}, null), B("div", {
|
|
4416
4416
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
4417
4417
|
type: "nw",
|
|
4418
4418
|
onMousedown: (O) => C(O)
|
|
@@ -4482,7 +4482,7 @@ function Ar(n, e) {
|
|
|
4482
4482
|
}
|
|
4483
4483
|
function Hr(n, e, t) {
|
|
4484
4484
|
const o = b(), i = b(n.draggable), r = b(n.lockAxis), a = b(), c = b(), s = b(!1), l = b(new re(0, 0)), f = b(new re(0, 0)), u = b(new re(0, 0)), m = b(new re(0, 0));
|
|
4485
|
-
|
|
4485
|
+
Be(() => t.value, (M) => {
|
|
4486
4486
|
a.value.style.cursor = M ? "move" : "default";
|
|
4487
4487
|
});
|
|
4488
4488
|
function p(M, S) {
|
|
@@ -4598,7 +4598,7 @@ const qe = /* @__PURE__ */ We({
|
|
|
4598
4598
|
} = Pt();
|
|
4599
4599
|
x.value === "错误提示" && (x.value = j("messageBox.errorTitle"));
|
|
4600
4600
|
const w = b(!1);
|
|
4601
|
-
function g(
|
|
4601
|
+
function g(k, Q) {
|
|
4602
4602
|
const se = Q ? "accept" : "cancel";
|
|
4603
4603
|
Promise.resolve().then(() => {
|
|
4604
4604
|
var ce;
|
|
@@ -4606,22 +4606,22 @@ const qe = /* @__PURE__ */ We({
|
|
|
4606
4606
|
closeType: se
|
|
4607
4607
|
});
|
|
4608
4608
|
}).then((ce) => {
|
|
4609
|
-
ce && (i.value = !1, e.emit("update:modelValue", !1), Q != null && e.emit(Q ? "accept" : "cancel"), e.emit("closed",
|
|
4609
|
+
ce && (i.value = !1, e.emit("update:modelValue", !1), Q != null && e.emit(Q ? "accept" : "cancel"), e.emit("closed", k));
|
|
4610
4610
|
});
|
|
4611
4611
|
}
|
|
4612
4612
|
const M = [{
|
|
4613
4613
|
name: "cancel",
|
|
4614
4614
|
text: j("messageBox.cancel") || "取消",
|
|
4615
4615
|
class: "btn btn-secondary",
|
|
4616
|
-
handle: (
|
|
4617
|
-
g(
|
|
4616
|
+
handle: (k) => {
|
|
4617
|
+
g(k, !1);
|
|
4618
4618
|
}
|
|
4619
4619
|
}, {
|
|
4620
4620
|
name: "accept",
|
|
4621
4621
|
text: j("messageBox.ok") || "确定",
|
|
4622
4622
|
class: "btn btn-primary",
|
|
4623
|
-
handle: (
|
|
4624
|
-
g(
|
|
4623
|
+
handle: (k) => {
|
|
4624
|
+
g(k, !0);
|
|
4625
4625
|
}
|
|
4626
4626
|
}], S = b(n.buttons && n.buttons.length ? n.buttons : M), N = H(() => !!l.value), _ = H(() => !!y.value && !!S.value), C = b(), T = b(), P = b(!1), {
|
|
4627
4627
|
renderResizeBar: I,
|
|
@@ -4639,66 +4639,66 @@ const qe = /* @__PURE__ */ We({
|
|
|
4639
4639
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
4640
4640
|
}
|
|
4641
4641
|
function he() {
|
|
4642
|
-
const
|
|
4643
|
-
(!
|
|
4642
|
+
const k = document.querySelectorAll(".farris-modal").length;
|
|
4643
|
+
(!k || k - 1 <= 0) && document.body.classList.remove("modal-open"), A.value && A.value.classList.remove("show");
|
|
4644
4644
|
}
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
}),
|
|
4648
|
-
|
|
4645
|
+
Be(() => n.title, (k, Q) => {
|
|
4646
|
+
k !== Q && (x.value = k);
|
|
4647
|
+
}), Be(() => n.modelValue, (k, Q) => {
|
|
4648
|
+
k !== Q && (i.value = k, i.value && n.draggable && Nt(() => {
|
|
4649
4649
|
T.value && !F.value && (F.value = T.value.parentElement, ee.value = F.value, te(C.value, T.value, ee.value), L());
|
|
4650
|
-
}),
|
|
4651
|
-
}),
|
|
4652
|
-
|
|
4653
|
-
}),
|
|
4654
|
-
|
|
4655
|
-
}),
|
|
4656
|
-
const se =
|
|
4650
|
+
}), k || (F.value && (F.value = null), he())), i.value ? w.value = ve() : (P.value = !1, O.value = n.draggable);
|
|
4651
|
+
}), Be(() => n.showHeader, (k, Q) => {
|
|
4652
|
+
k !== Q && (s.value = k);
|
|
4653
|
+
}), Be(() => n.showButtons, (k, Q) => {
|
|
4654
|
+
k !== Q && (y.value = k);
|
|
4655
|
+
}), Be(() => D.value, (k, Q) => {
|
|
4656
|
+
const se = k || {}, ce = Q || {};
|
|
4657
4657
|
JSON.stringify(se) !== JSON.stringify(ce) && e.emit("resize", {
|
|
4658
|
-
newSize:
|
|
4658
|
+
newSize: k,
|
|
4659
4659
|
oldSize: Q,
|
|
4660
4660
|
isMaximized: P.value
|
|
4661
4661
|
});
|
|
4662
4662
|
});
|
|
4663
4663
|
const X = H(() => (i.value && document.body.classList.add("modal-open"), i.value)), ie = H(() => {
|
|
4664
4664
|
var se;
|
|
4665
|
-
const
|
|
4665
|
+
const k = {
|
|
4666
4666
|
modal: !0,
|
|
4667
4667
|
"farris-modal": !0,
|
|
4668
4668
|
fade: !0
|
|
4669
4669
|
};
|
|
4670
|
-
|
|
4670
|
+
k["f-modal-fitContent"] = !!c.value, k.show = !!X.value;
|
|
4671
4671
|
const Q = (se = n.maskClass) == null ? void 0 : se.split(" ");
|
|
4672
|
-
return Q == null || Q.reduce((ce, Fe) => (ce[Fe] = !0, ce),
|
|
4672
|
+
return Q == null || Q.reduce((ce, Fe) => (ce[Fe] = !0, ce), k), k;
|
|
4673
4673
|
}), le = H(() => {
|
|
4674
4674
|
var se;
|
|
4675
|
-
const
|
|
4675
|
+
const k = {
|
|
4676
4676
|
"modal-dialog": !0
|
|
4677
4677
|
}, Q = (se = a.value) == null ? void 0 : se.split(" ");
|
|
4678
|
-
return Q == null || Q.reduce((ce, Fe) => (ce[Fe] = !0, ce),
|
|
4678
|
+
return Q == null || Q.reduce((ce, Fe) => (ce[Fe] = !0, ce), k), k;
|
|
4679
4679
|
}), ne = H(() => {
|
|
4680
|
-
const
|
|
4680
|
+
const k = {
|
|
4681
4681
|
position: "absolute",
|
|
4682
4682
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
4683
4683
|
left: `${(window.innerWidth - t.value) / 2}px`,
|
|
4684
4684
|
width: `${t.value}px`,
|
|
4685
4685
|
height: c.value ? "auto" : `${o.value}px`
|
|
4686
4686
|
};
|
|
4687
|
-
return n.mask || (
|
|
4687
|
+
return n.mask || (k.pointerEvents = "auto"), k;
|
|
4688
4688
|
}), U = () => In() || 1040, oe = H(() => {
|
|
4689
|
-
const
|
|
4689
|
+
const k = {
|
|
4690
4690
|
display: "block",
|
|
4691
4691
|
zIndex: U()
|
|
4692
4692
|
};
|
|
4693
|
-
return n.mask || (
|
|
4693
|
+
return n.mask || (k.pointerEvents = "none", k.backgroundColor = "transparent"), w.value && (k.backgroundColor = "transparent"), k;
|
|
4694
4694
|
}), $e = H(() => ({
|
|
4695
4695
|
"modal-content": !0,
|
|
4696
4696
|
"modal-content-has-header": s.value
|
|
4697
4697
|
})), Oe = H(() => {
|
|
4698
|
-
const
|
|
4698
|
+
const k = {
|
|
4699
4699
|
display: s.value ? "" : "none"
|
|
4700
4700
|
};
|
|
4701
|
-
return
|
|
4701
|
+
return k["pointer-events"] = O.value ? "auto" : "none", k;
|
|
4702
4702
|
}), xe = H(() => ({
|
|
4703
4703
|
"f-icon": !0,
|
|
4704
4704
|
modal_maximize: !0,
|
|
@@ -4714,23 +4714,23 @@ const qe = /* @__PURE__ */ We({
|
|
|
4714
4714
|
};
|
|
4715
4715
|
}
|
|
4716
4716
|
const Ye = H(() => {
|
|
4717
|
-
const
|
|
4717
|
+
const k = {
|
|
4718
4718
|
textAlgin: v.value
|
|
4719
4719
|
}, Q = Le();
|
|
4720
|
-
return Object.assign(
|
|
4720
|
+
return Object.assign(k, Q);
|
|
4721
4721
|
});
|
|
4722
|
-
function ae(
|
|
4723
|
-
if (
|
|
4722
|
+
function ae(k) {
|
|
4723
|
+
if (k == null || k.stopPropagation(), P.value) {
|
|
4724
4724
|
P.value = !1, W();
|
|
4725
4725
|
return;
|
|
4726
4726
|
}
|
|
4727
4727
|
V(), P.value = !0;
|
|
4728
4728
|
}
|
|
4729
|
-
async function Ze(
|
|
4730
|
-
|
|
4729
|
+
async function Ze(k, Q) {
|
|
4730
|
+
k.handle && await k.handle(Q, k) && e.emit("closed", Q);
|
|
4731
4731
|
}
|
|
4732
|
-
function Ie(
|
|
4733
|
-
|
|
4732
|
+
function Ie(k) {
|
|
4733
|
+
k.width && (t.value = k.width), k.height && (o.value = k.height), k.buttons && (S.value = k.buttons), k.title && (x.value = k.title);
|
|
4734
4734
|
}
|
|
4735
4735
|
let Ne = null, Se = null;
|
|
4736
4736
|
En(() => {
|
|
@@ -4747,99 +4747,99 @@ const qe = /* @__PURE__ */ We({
|
|
|
4747
4747
|
isMaximized: P
|
|
4748
4748
|
});
|
|
4749
4749
|
function Pe() {
|
|
4750
|
-
return
|
|
4750
|
+
return B("ul", null, [m.value && B("li", {
|
|
4751
4751
|
class: "f-btn-icon f-bare"
|
|
4752
|
-
}, [
|
|
4752
|
+
}, [B("span", {
|
|
4753
4753
|
class: "f-icon modal_minimize"
|
|
4754
|
-
}, null)]), u.value &&
|
|
4754
|
+
}, null)]), u.value && B("li", {
|
|
4755
4755
|
onClick: ae,
|
|
4756
4756
|
class: "f-btn-icon f-bare",
|
|
4757
4757
|
style: "pointer-events: auto;"
|
|
4758
|
-
}, [
|
|
4758
|
+
}, [B("span", {
|
|
4759
4759
|
class: xe.value
|
|
4760
|
-
}, null)]), f.value &&
|
|
4760
|
+
}, null)]), f.value && B("li", {
|
|
4761
4761
|
class: "f-btn-icon f-bare",
|
|
4762
|
-
onClick: (
|
|
4762
|
+
onClick: (k) => g(k, !1),
|
|
4763
4763
|
style: "pointer-events: auto;"
|
|
4764
|
-
}, [
|
|
4764
|
+
}, [B("span", {
|
|
4765
4765
|
class: "f-icon modal_close"
|
|
4766
4766
|
}, null)])]);
|
|
4767
4767
|
}
|
|
4768
4768
|
function Ke() {
|
|
4769
|
-
return
|
|
4769
|
+
return B("div", {
|
|
4770
4770
|
class: "modal-footer",
|
|
4771
4771
|
style: Ye.value
|
|
4772
|
-
}, [S.value && S.value.map((
|
|
4773
|
-
const Q = b(
|
|
4774
|
-
return
|
|
4775
|
-
name:
|
|
4772
|
+
}, [S.value && S.value.map((k) => {
|
|
4773
|
+
const Q = b(k.disabled);
|
|
4774
|
+
return B("button", {
|
|
4775
|
+
name: k.name,
|
|
4776
4776
|
type: "button",
|
|
4777
4777
|
disabled: Q.value,
|
|
4778
|
-
class:
|
|
4778
|
+
class: k.class + (k.iconClass ? " btn-icontext" : ""),
|
|
4779
4779
|
onClick: (se) => {
|
|
4780
|
-
Ze(
|
|
4780
|
+
Ze(k, se);
|
|
4781
4781
|
}
|
|
4782
|
-
}, [!!
|
|
4783
|
-
class:
|
|
4784
|
-
}, null),
|
|
4782
|
+
}, [!!k.iconClass && B("i", {
|
|
4783
|
+
class: k.iconClass
|
|
4784
|
+
}, null), k.text]);
|
|
4785
4785
|
})]);
|
|
4786
4786
|
}
|
|
4787
4787
|
function ze() {
|
|
4788
|
-
return
|
|
4788
|
+
return B("div", {
|
|
4789
4789
|
ref: C,
|
|
4790
4790
|
class: "modal-header",
|
|
4791
4791
|
style: Oe.value
|
|
4792
|
-
}, [e.slots.headerTemplate ? e.slots.headerTemplate() :
|
|
4792
|
+
}, [e.slots.headerTemplate ? e.slots.headerTemplate() : B("div", {
|
|
4793
4793
|
class: "modal-title"
|
|
4794
|
-
}, [N.value &&
|
|
4794
|
+
}, [N.value && B("span", {
|
|
4795
4795
|
class: l.value,
|
|
4796
4796
|
style: "margin-right: 8px"
|
|
4797
|
-
}, null),
|
|
4797
|
+
}, null), B("span", {
|
|
4798
4798
|
class: "modal-title-label"
|
|
4799
|
-
}, [x.value])]),
|
|
4799
|
+
}, [x.value])]), B("div", {
|
|
4800
4800
|
class: "actions"
|
|
4801
4801
|
}, [Pe()])]);
|
|
4802
4802
|
}
|
|
4803
|
-
function
|
|
4803
|
+
function ke() {
|
|
4804
4804
|
return e.slots.footerTemplate ? e.slots.footerTemplate() : _.value && Ke();
|
|
4805
4805
|
}
|
|
4806
|
-
function De(
|
|
4807
|
-
if (
|
|
4808
|
-
if (
|
|
4806
|
+
function De(k) {
|
|
4807
|
+
if (k.stopPropagation(), n.allowClickMaskToClose) {
|
|
4808
|
+
if (k.target !== A.value)
|
|
4809
4809
|
return;
|
|
4810
|
-
g(
|
|
4810
|
+
g(k, !1);
|
|
4811
4811
|
}
|
|
4812
4812
|
}
|
|
4813
4813
|
function Xe() {
|
|
4814
|
-
var
|
|
4815
|
-
return
|
|
4814
|
+
var k, Q;
|
|
4815
|
+
return B("div", {
|
|
4816
4816
|
id: r.value,
|
|
4817
4817
|
class: le.value,
|
|
4818
4818
|
style: ne.value,
|
|
4819
4819
|
ref: T
|
|
4820
|
-
}, [
|
|
4820
|
+
}, [B("div", {
|
|
4821
4821
|
class: $e.value
|
|
4822
|
-
}, [s.value && ze(),
|
|
4822
|
+
}, [s.value && ze(), B("div", {
|
|
4823
4823
|
class: Ge.value
|
|
4824
|
-
}, [(Q = (
|
|
4824
|
+
}, [(Q = (k = e.slots).default) == null ? void 0 : Q.call(k), p.value === "iframe" && B("iframe", {
|
|
4825
4825
|
title: r.value,
|
|
4826
4826
|
class: "f-utils-fill",
|
|
4827
4827
|
width: "100%",
|
|
4828
4828
|
frameborder: "0",
|
|
4829
4829
|
src: d.value
|
|
4830
|
-
}, null)]),
|
|
4830
|
+
}, null)]), ke()]), !c.value && T.value && !P.value && I(T.value)]);
|
|
4831
4831
|
}
|
|
4832
|
-
function Qe(
|
|
4833
|
-
return
|
|
4832
|
+
function Qe(k) {
|
|
4833
|
+
return k || "body";
|
|
4834
4834
|
}
|
|
4835
|
-
return () =>
|
|
4835
|
+
return () => B(Mn, {
|
|
4836
4836
|
to: Qe(n.host)
|
|
4837
4837
|
}, {
|
|
4838
|
-
default: () => [X.value &&
|
|
4838
|
+
default: () => [X.value && B(Yt, {
|
|
4839
4839
|
name: "fade",
|
|
4840
4840
|
appear: !0
|
|
4841
4841
|
}, {
|
|
4842
|
-
default: () => [
|
|
4842
|
+
default: () => [B("div", {
|
|
4843
4843
|
ref: A,
|
|
4844
4844
|
class: ie.value,
|
|
4845
4845
|
style: oe.value,
|
|
@@ -4874,7 +4874,7 @@ function qr(n) {
|
|
|
4874
4874
|
return rt(() => {
|
|
4875
4875
|
}), i.expose({
|
|
4876
4876
|
modalRef: r
|
|
4877
|
-
}), () =>
|
|
4877
|
+
}), () => B(qe, {
|
|
4878
4878
|
ref: r,
|
|
4879
4879
|
class: a.value,
|
|
4880
4880
|
modelValue: f.value,
|
|
@@ -4941,7 +4941,7 @@ class fn {
|
|
|
4941
4941
|
open(e) {
|
|
4942
4942
|
const t = document.createDocumentFragment();
|
|
4943
4943
|
e.showMaxButton && e.fitContent && (e.showMaxButton = !1);
|
|
4944
|
-
const o =
|
|
4944
|
+
const o = Bn(Object.assign({
|
|
4945
4945
|
title: "",
|
|
4946
4946
|
showButtons: !0,
|
|
4947
4947
|
showHeader: !0
|
|
@@ -4959,7 +4959,7 @@ class fn {
|
|
|
4959
4959
|
c(w, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
|
|
4960
4960
|
}, p = (w) => {
|
|
4961
4961
|
m(w), f && Nt(() => {
|
|
4962
|
-
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value],
|
|
4962
|
+
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], kt(null, t), f = null, this.modalRef.value = null, this.modalRefs) {
|
|
4963
4963
|
const g = Object.keys(this.modalRefs).map((M) => Number(M));
|
|
4964
4964
|
g.length > 0 ? this.activeModalIndex.value = Math.max(...g) : this.activeModalIndex.value = 0;
|
|
4965
4965
|
}
|
|
@@ -4973,7 +4973,7 @@ class fn {
|
|
|
4973
4973
|
height: y
|
|
4974
4974
|
} = o.value, x = this.adaptToWindow(v || 500, y || 320);
|
|
4975
4975
|
Object.assign(o.value, x);
|
|
4976
|
-
const F = () =>
|
|
4976
|
+
const F = () => B(qe, It({
|
|
4977
4977
|
ref: this.modalRef,
|
|
4978
4978
|
modelValue: i.value,
|
|
4979
4979
|
"onUpdate:modelValue": (w) => i.value = w
|
|
@@ -4988,8 +4988,8 @@ class fn {
|
|
|
4988
4988
|
default: () => [u && u(this.app)]
|
|
4989
4989
|
});
|
|
4990
4990
|
return f = ((w) => {
|
|
4991
|
-
const g =
|
|
4992
|
-
return g.appContext = this.appContext,
|
|
4991
|
+
const g = kn(F, w);
|
|
4992
|
+
return g.appContext = this.appContext, kt(g, t), g;
|
|
4993
4993
|
})({
|
|
4994
4994
|
...o.value
|
|
4995
4995
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
@@ -4998,7 +4998,7 @@ class fn {
|
|
|
4998
4998
|
o.value = {
|
|
4999
4999
|
...o.value,
|
|
5000
5000
|
...w
|
|
5001
|
-
}, f &&
|
|
5001
|
+
}, f && kt(Fn(f, {
|
|
5002
5002
|
...o
|
|
5003
5003
|
}), t);
|
|
5004
5004
|
},
|
|
@@ -5038,7 +5038,7 @@ const Me = class Me {
|
|
|
5038
5038
|
showMaxButton: !1,
|
|
5039
5039
|
draggable: !0,
|
|
5040
5040
|
dragHandle: ".messager-draggable",
|
|
5041
|
-
render: () =>
|
|
5041
|
+
render: () => B(dt, It(t, {
|
|
5042
5042
|
onAccept: a,
|
|
5043
5043
|
onReject: c,
|
|
5044
5044
|
onClose: f
|
|
@@ -5201,19 +5201,19 @@ const Xr = /* @__PURE__ */ We({
|
|
|
5201
5201
|
props: Rt,
|
|
5202
5202
|
emits: [],
|
|
5203
5203
|
setup(n, e) {
|
|
5204
|
-
const t = b(), o = At("designer-host-service"), i = At("design-item-context"), r = Yr(i, o), a =
|
|
5204
|
+
const t = b(), o = At("designer-host-service"), i = At("design-item-context"), r = Yr(i, o), a = ki(t, i, r), c = H(() => Xt({
|
|
5205
5205
|
"drag-container": !0
|
|
5206
5206
|
}, n == null ? void 0 : n.customClass));
|
|
5207
5207
|
return rt(() => {
|
|
5208
5208
|
t.value.componentInstance = a;
|
|
5209
|
-
}), e.expose(a.value), () =>
|
|
5209
|
+
}), e.expose(a.value), () => B("div", {
|
|
5210
5210
|
ref: t,
|
|
5211
5211
|
class: c.value,
|
|
5212
5212
|
style: n.customStyle,
|
|
5213
5213
|
"data-dragref": `${i.schema.id}-container`
|
|
5214
5214
|
}, [e.slots.default && e.slots.default()]);
|
|
5215
5215
|
}
|
|
5216
|
-
}),
|
|
5216
|
+
}), Rs = {
|
|
5217
5217
|
install(n) {
|
|
5218
5218
|
n.component(Ft.name, Ft);
|
|
5219
5219
|
},
|
|
@@ -5228,6 +5228,6 @@ export {
|
|
|
5228
5228
|
Ft as ContentContainer,
|
|
5229
5229
|
Xr as ContentContainerDesign,
|
|
5230
5230
|
Rt as contentContainerProps,
|
|
5231
|
-
|
|
5231
|
+
Rs as default,
|
|
5232
5232
|
qt as propsResolver
|
|
5233
5233
|
};
|