@farris/ui-vue 1.8.5-beta.3 → 1.8.5-beta.4
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/batch-editor/index.esm.js +6850 -6840
- package/components/batch-editor/index.umd.cjs +20 -20
- package/components/button/index.esm.js +6852 -6842
- package/components/button/index.umd.cjs +20 -20
- package/components/button-edit/index.esm.js +140 -140
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +46 -45
- package/components/button-group/index.umd.cjs +1 -1
- package/components/common/index.esm.js +16 -12
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +411 -411
- package/components/component/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +6500 -6487
- package/components/data-view/index.umd.cjs +21 -21
- package/components/designer-canvas/index.esm.js +269 -269
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +458 -458
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +386 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1100 -1100
- package/components/flow-canvas/index.umd.cjs +7 -7
- package/components/mapping-editor/index.esm.js +243 -243
- package/components/mapping-editor/index.umd.cjs +2 -2
- package/components/message-box/index.esm.js +82 -82
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +76 -76
- package/components/modal/index.umd.cjs +1 -1
- package/components/order/index.esm.js +139 -138
- package/components/order/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +891 -891
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +151 -149
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +947 -941
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/section/index.esm.js +121 -121
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +539 -539
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +448 -442
- package/components/tabs/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +97 -97
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +6483 -6470
- package/designer/data-grid/index.umd.cjs +21 -21
- package/designer/farris-designer.all.esm.js +1891 -1885
- package/designer/farris-designer.all.umd.cjs +14 -14
- package/designer/radio-group/index.esm.js +183 -183
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +558 -556
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +416 -416
- package/designer/tabs/index.umd.cjs +2 -2
- package/farris.all.esm.js +9133 -9119
- package/farris.all.umd.cjs +35 -35
- package/package.json +1 -1
- package/types/common/index.d.ts +1 -0
- package/types/common/utils/attrs.d.ts +26 -0
- package/types/modal/src/composition/type.d.ts +2 -0
- package/types/tabs/src/composition/types.d.ts +2 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var Yi = Object.defineProperty;
|
|
2
2
|
var Ki = (e, t, n) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var we = (e, t, n) => Ki(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as h, defineComponent as Ae, computed as X, watch as Me, createVNode as p, Fragment as mt, reactive as on, createApp as kn, onUnmounted as bt, onMounted as
|
|
4
|
+
import { ref as h, defineComponent as Ae, computed as X, watch as Me, createVNode as p, Fragment as mt, reactive as on, createApp as kn, onUnmounted as bt, onMounted as ot, Transition as In, mergeProps as nt, nextTick as Ct, createTextVNode as We, inject as xe, withDirectives as an, resolveDirective as rn, onBeforeMount as Pn, provide as kt, triggerRef as Xi, onBeforeUnmount as On, isVNode as Qi, watchEffect as Ji, Teleport as Zi, shallowRef as ea, render as Zt, h as ta, cloneVNode as na, withModifiers as oa } from "vue";
|
|
5
5
|
import { debounce as ia, isUndefined as Ze, cloneDeep as Ht, mergeWith as aa, merge as Dt, findIndex as wn } from "lodash-es";
|
|
6
6
|
import { LocaleService as ze } from "../locale/index.esm.js";
|
|
7
7
|
import "bignumber.js";
|
|
8
|
-
import { getCustomClass as dt, withInstall as ra, EVENT_PROPERTY_TAB_IDS as la, FormSchemaEntityField$Type as Sn, FormSchemaEntityFieldTypeName as Tn, useThirdComponent as Vn, isMobilePhone as ln, getMaxZIndex as Fn } from "../common/index.esm.js";
|
|
9
|
-
import { useResizeObserver as
|
|
10
|
-
import { getHierarchyRow as
|
|
11
|
-
import { resolveField as
|
|
12
|
-
import
|
|
8
|
+
import { getCustomClass as dt, withInstall as ra, EVENT_PROPERTY_TAB_IDS as la, FormSchemaEntityField$Type as Sn, FormSchemaEntityFieldTypeName as Tn, useThirdComponent as Vn, isMobilePhone as ln, getMaxZIndex as Fn, extractDataAttrs as sa } from "../common/index.esm.js";
|
|
9
|
+
import { useResizeObserver as ca } from "@vueuse/core";
|
|
10
|
+
import { getHierarchyRow as ua, useIdentify as da, useGroupData as fa, useFilter as ma, useHierarchy as pa, useLoading as va, useDataView as ga, useSelection as ha, useSelectHierarchyItem as ya, usePagination as Ca, useDataViewContainerStyle as ba, useCommandColumn as wa, useSettingColumn as Sa, useColumn as Ta, useSort as Fa, useGroupColumn as Ea, useRow as xa, useEdit as Ma, useVisualDataBound as Da, useVisualDataCell as Ba, useVisualDataRow as ka, useVisualData as Ia, useCellPosition as Pa, useSidebar as Oa, useVirtualScroll as Va, useFitColumn as Na, useFilterHistory as La, useColumnFilter as Ra, useDragColumn as Aa, getColumnHeader as ja, getSidebar as _a, getDisableMask as $a, getHorizontalScrollbar as za, getVerticalScrollbar as Ua, getEmpty as Ha, getPagination as qa, getSummary as Wa, ColumnSettingSolution as Ga, refreshScrollAfterDataSourceLoad as Ya, COMMAND_COLUMN_DATA_TYPE as en, SETTING_COLUMN_DATA_TYPE as tn } from "../data-view/index.esm.js";
|
|
11
|
+
import { resolveField as Ka } from "../common/index.esm.js/utils/resolve-field";
|
|
12
|
+
import Xa from "../input-group/index.esm.js";
|
|
13
13
|
import yt from "../button/index.esm.js";
|
|
14
|
-
import { resolveAppearance as Nn, createPropsResolver as Ot, schemaResolverMap as
|
|
15
|
-
import { DgControl as En, canvasChanged as
|
|
16
|
-
import { loadRegister as
|
|
17
|
-
import
|
|
14
|
+
import { resolveAppearance as Nn, createPropsResolver as Ot, schemaResolverMap as Qa, propertyEffectMap as Ja, propertyConfigSchemaMap as Za, schemaMap as er, schemaResolverMapForDesigner as Ln, propertyEffectMapForDesigner as Rn, propertyConfigSchemaMapForDesigner as An, schemaMapForDesigner as jn, getSchemaByTypeForDesigner as _n } from "../dynamic-resolver/index.esm.js";
|
|
15
|
+
import { DgControl as En, canvasChanged as tr, refreshCanvas as nr, useDesignerComponent as or } from "../designer-canvas/index.esm.js";
|
|
16
|
+
import { loadRegister as ir, useComponentManager as ar, useEntityState as rr, useDynamicViewUtils as lr, componentMap as nn, resolverMap as sr, componentPropsConverter as cr } from "../dynamic-view/index.esm.js";
|
|
17
|
+
import ur from "../section/index.esm.js";
|
|
18
18
|
import $n from "../accordion/index.esm.js";
|
|
19
19
|
import zn from "../../designer/avatar/index.esm.js";
|
|
20
20
|
import Un from "../../designer/approval-logs/index.esm.js";
|
|
@@ -25,7 +25,7 @@ import Gn from "../../designer/capsule/index.esm.js";
|
|
|
25
25
|
import sn from "../../designer/checkbox/index.esm.js";
|
|
26
26
|
import $t from "../../designer/checkbox-group/index.esm.js";
|
|
27
27
|
import Yn from "../combo-list/index.esm.js";
|
|
28
|
-
import
|
|
28
|
+
import dr from "../combo-tree/index.esm.js";
|
|
29
29
|
import Kn from "../component/index.esm.js";
|
|
30
30
|
import Xn from "../color-picker/index.esm.js";
|
|
31
31
|
import Qn from "../content-container/index.esm.js";
|
|
@@ -34,17 +34,17 @@ import Zn from "../../designer/date-picker/index.esm.js";
|
|
|
34
34
|
import eo from "../../designer/data-grid/index.esm.js";
|
|
35
35
|
import to from "../dropdown/index.esm.js";
|
|
36
36
|
import no from "../../designer/dynamic-form/index.esm.js";
|
|
37
|
-
import
|
|
37
|
+
import fr from "../events-editor/index.esm.js";
|
|
38
38
|
import oo from "../filter-bar/index.esm.js";
|
|
39
|
-
import
|
|
40
|
-
import
|
|
39
|
+
import mr from "../field-selector/index.esm.js";
|
|
40
|
+
import pr, { FBindingSelectorContainer as vr } from "../binding-selector/index.esm.js";
|
|
41
41
|
import io from "../image-cropper/index.esm.js";
|
|
42
42
|
import ao from "../../designer/input-group/index.esm.js";
|
|
43
43
|
import ro from "../layout/index.esm.js";
|
|
44
44
|
import lo from "../list-nav/index.esm.js";
|
|
45
45
|
import so from "../../designer/list-view/index.esm.js";
|
|
46
46
|
import co from "../lookup/index.esm.js";
|
|
47
|
-
import
|
|
47
|
+
import gr from "../mapping-editor/index.esm.js";
|
|
48
48
|
import uo from "../../designer/nav/index.esm.js";
|
|
49
49
|
import fo from "../number-range/index.esm.js";
|
|
50
50
|
import mo from "../../designer/number-spinner/index.esm.js";
|
|
@@ -76,36 +76,36 @@ import Ao from "../uploader/index.esm.js";
|
|
|
76
76
|
import jo from "../verify-detail/index.esm.js";
|
|
77
77
|
import _o from "../video/index.esm.js";
|
|
78
78
|
import $o from "../../designer/textarea/index.esm.js";
|
|
79
|
-
import
|
|
79
|
+
import hr from "../schema-selector/index.esm.js";
|
|
80
80
|
import zo from "../../designer/tree-grid/index.esm.js";
|
|
81
|
-
import
|
|
82
|
-
import
|
|
81
|
+
import yr from "../event-parameter/index.esm.js";
|
|
82
|
+
import Cr from "../filter-condition-editor/index.esm.js";
|
|
83
83
|
import Uo from "../fieldset/index.esm.js";
|
|
84
|
-
import
|
|
85
|
-
import
|
|
84
|
+
import br from "../sort-condition-editor/index.esm.js";
|
|
85
|
+
import wr from "../menu-lookup/index.esm.js";
|
|
86
86
|
import Ho from "../../designer/drawer/index.esm.js";
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
import
|
|
87
|
+
import Sr from "../json-editor/index.esm.js";
|
|
88
|
+
import Tr from "../property-editor/index.esm.js";
|
|
89
|
+
import Fr from "../expression-editor/index.esm.js";
|
|
90
|
+
import Er from "../code-editor/index.esm.js";
|
|
91
91
|
import qo from "../html-template/index.esm.js";
|
|
92
|
-
import
|
|
93
|
-
import
|
|
92
|
+
import xr from "../collection-property-editor/index.esm.js";
|
|
93
|
+
import Mr from "../../designer/modal/index.esm.js";
|
|
94
94
|
import Wo from "../external-container/index.esm.js";
|
|
95
95
|
import Go from "../language-textbox/index.esm.js";
|
|
96
96
|
import Yo from "../image/index.esm.js";
|
|
97
97
|
import Ko from "../comment/index.esm.js";
|
|
98
98
|
import Xo from "../../designer/wizard/index.esm.js";
|
|
99
|
-
import
|
|
99
|
+
import Dr from "../tooltip/index.esm.js";
|
|
100
100
|
import "../property-panel/index.esm.js";
|
|
101
|
-
import { FNotifyService as
|
|
101
|
+
import { FNotifyService as Br } from "../notify/index.esm.js";
|
|
102
102
|
import Qo from "../drawer/index.esm.js";
|
|
103
103
|
import "../collection-property-editor/index.esm.js/src/use-button-items.designer";
|
|
104
104
|
const rt = h(0);
|
|
105
|
-
function
|
|
105
|
+
function kr() {
|
|
106
106
|
rt.value++;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Ir(e, t) {
|
|
109
109
|
const n = t.getBoundingClientRect(), o = e.getBoundingClientRect(), i = o.top >= n.top, a = o.top <= n.bottom;
|
|
110
110
|
return i && a;
|
|
111
111
|
}
|
|
@@ -160,7 +160,7 @@ function fn(e) {
|
|
|
160
160
|
if (n) {
|
|
161
161
|
let o = !0;
|
|
162
162
|
const i = Zo(e);
|
|
163
|
-
if (i && (o =
|
|
163
|
+
if (i && (o = Ir(e, i)), !o) {
|
|
164
164
|
n.style.display = "none";
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
@@ -173,14 +173,14 @@ function It(e) {
|
|
|
173
173
|
let t;
|
|
174
174
|
e.className.includes("dgComponentSelected") ? t = e : t = e.querySelector(".dgComponentSelected"), t && fn(t);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function ru() {
|
|
177
177
|
const e = document.querySelector(".dgComponentSelected");
|
|
178
178
|
if (!e)
|
|
179
179
|
return;
|
|
180
180
|
const t = e.querySelector(".component-btn-group");
|
|
181
181
|
t && t.getBoundingClientRect().top !== 0 && Jo(e);
|
|
182
182
|
}
|
|
183
|
-
const
|
|
183
|
+
const Pr = {
|
|
184
184
|
/**
|
|
185
185
|
* 组件值
|
|
186
186
|
*/
|
|
@@ -189,8 +189,8 @@ const Ir = {
|
|
|
189
189
|
components: { type: Array },
|
|
190
190
|
canvasMode: { type: String, default: "PC" }
|
|
191
191
|
};
|
|
192
|
-
var
|
|
193
|
-
function
|
|
192
|
+
var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
193
|
+
function Or(e) {
|
|
194
194
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
195
195
|
}
|
|
196
196
|
function At(e) {
|
|
@@ -255,7 +255,7 @@ var ei = { exports: {} };
|
|
|
255
255
|
containers: Z.containers,
|
|
256
256
|
start: Pe,
|
|
257
257
|
end: pt,
|
|
258
|
-
cancel:
|
|
258
|
+
cancel: it,
|
|
259
259
|
remove: gt,
|
|
260
260
|
destroy: Ie,
|
|
261
261
|
canMove: Ve,
|
|
@@ -349,7 +349,7 @@ var ei = { exports: {} };
|
|
|
349
349
|
function Qe(O) {
|
|
350
350
|
if (vt(), !!E.dragging) {
|
|
351
351
|
var K = x || V, Q = D("clientX", O) || 0, se = D("clientY", O) || 0, Ce = B(I, Q, se), be = A(Ce, Q, se);
|
|
352
|
-
be && (x && Z.copySortSource || !x || be !== $) ? et(K, be) : Z.removeOnSpill ? gt() :
|
|
352
|
+
be && (x && Z.copySortSource || !x || be !== $) ? et(K, be) : Z.removeOnSpill ? gt() : it();
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
function et(O, K) {
|
|
@@ -362,7 +362,7 @@ var ei = { exports: {} };
|
|
|
362
362
|
K && K.removeChild(O), E.emit(x ? "cancel" : "remove", O, K, $), st();
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function it(O) {
|
|
366
366
|
if (E.dragging) {
|
|
367
367
|
var K = arguments.length > 0 ? O : Z.revertOnSpill, Q = x || V, se = M(Q), Ce = ke(se);
|
|
368
368
|
Ce === !1 && K && (x ? se && se.removeChild(x) : $.insertBefore(Q, z)), Ce || K ? E.emit("cancel", Q, $, $) : E.emit("drop", Q, se, $, oe), st();
|
|
@@ -643,7 +643,7 @@ var ei = { exports: {} };
|
|
|
643
643
|
return k in I && !(k in _) && I[k] in _ && (k = I[k]), _[k];
|
|
644
644
|
}
|
|
645
645
|
o.exports = m;
|
|
646
|
-
}).call(this, typeof
|
|
646
|
+
}).call(this, typeof at < "u" ? at : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
647
647
|
}, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
|
|
648
648
|
3: [function(n, o, i) {
|
|
649
649
|
o.exports = function(r, c) {
|
|
@@ -760,7 +760,7 @@ var ei = { exports: {} };
|
|
|
760
760
|
if (F = m[y], F.element === M && F.type === C && F.fn === g)
|
|
761
761
|
return y;
|
|
762
762
|
}
|
|
763
|
-
}).call(this, typeof
|
|
763
|
+
}).call(this, typeof at < "u" ? at : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
764
764
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
765
765
|
7: [function(n, o, i) {
|
|
766
766
|
(function(a) {
|
|
@@ -768,7 +768,7 @@ var ei = { exports: {} };
|
|
|
768
768
|
for (c in a)
|
|
769
769
|
l.test(c) && r.push(c.slice(2));
|
|
770
770
|
o.exports = r;
|
|
771
|
-
}).call(this, typeof
|
|
771
|
+
}).call(this, typeof at < "u" ? at : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
772
772
|
}, {}],
|
|
773
773
|
8: [function(n, o, i) {
|
|
774
774
|
(function(a) {
|
|
@@ -794,7 +794,7 @@ var ei = { exports: {} };
|
|
|
794
794
|
}
|
|
795
795
|
)
|
|
796
796
|
);
|
|
797
|
-
}).call(this, typeof
|
|
797
|
+
}).call(this, typeof at < "u" ? at : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
798
798
|
}, {}],
|
|
799
799
|
9: [function(n, o, i) {
|
|
800
800
|
var a = o.exports = {}, r, c;
|
|
@@ -938,8 +938,8 @@ var ei = { exports: {} };
|
|
|
938
938
|
}, {}, [2])(2);
|
|
939
939
|
});
|
|
940
940
|
})(ei);
|
|
941
|
-
var
|
|
942
|
-
const xn = /* @__PURE__ */
|
|
941
|
+
var Vr = ei.exports;
|
|
942
|
+
const xn = /* @__PURE__ */ Or(Vr), Nr = {
|
|
943
943
|
showCloseButton: { type: Boolean, default: !0 },
|
|
944
944
|
position: { type: String, default: "top-center" },
|
|
945
945
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -952,13 +952,13 @@ const xn = /* @__PURE__ */ Pr(Or), Vr = {
|
|
|
952
952
|
animate: { type: String, default: "fadeIn" },
|
|
953
953
|
options: { type: Object },
|
|
954
954
|
safeHtml: { type: Boolean, default: !0 }
|
|
955
|
-
},
|
|
955
|
+
}, Lr = {
|
|
956
956
|
showCloseButton: { type: Boolean, default: !0 },
|
|
957
957
|
animate: { type: String, default: "fadeIn" },
|
|
958
958
|
options: { type: Object }
|
|
959
959
|
}, cn = /* @__PURE__ */ Ae({
|
|
960
960
|
name: "Toast",
|
|
961
|
-
props:
|
|
961
|
+
props: Lr,
|
|
962
962
|
emits: ["close", "click"],
|
|
963
963
|
setup: (e, t) => {
|
|
964
964
|
const n = h(e.animate), o = "fadeOut", i = X(() => e.options), a = h(!1), r = X(() => i.value.title && i.value.message), c = X(() => !i.value.title && i.value.message), l = X(() => {
|
|
@@ -1037,8 +1037,8 @@ const xn = /* @__PURE__ */ Pr(Or), Vr = {
|
|
|
1037
1037
|
innerHTML: i.value.message
|
|
1038
1038
|
}, null))])])]);
|
|
1039
1039
|
}
|
|
1040
|
-
}),
|
|
1041
|
-
function
|
|
1040
|
+
}), Rr = ["moz", "ms", "webkit"];
|
|
1041
|
+
function Ar() {
|
|
1042
1042
|
let e = 0;
|
|
1043
1043
|
return (t) => {
|
|
1044
1044
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), i = setTimeout(() => {
|
|
@@ -1047,15 +1047,15 @@ function Rr() {
|
|
|
1047
1047
|
return e = n + o, i;
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function jr() {
|
|
1051
1051
|
if (typeof window > "u")
|
|
1052
1052
|
return () => 0;
|
|
1053
1053
|
if (window.requestAnimationFrame)
|
|
1054
1054
|
return window.requestAnimationFrame.bind(window);
|
|
1055
|
-
const e =
|
|
1056
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
1055
|
+
const e = Rr.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
1056
|
+
return e ? window[`${e}RequestAnimationFrame`] : Ar();
|
|
1057
1057
|
}
|
|
1058
|
-
|
|
1058
|
+
jr();
|
|
1059
1059
|
h("");
|
|
1060
1060
|
function ti() {
|
|
1061
1061
|
if (typeof window > "u" || typeof navigator > "u")
|
|
@@ -1090,14 +1090,14 @@ function ti() {
|
|
|
1090
1090
|
const o = "ontouchstart" in window || navigator.maxTouchPoints > 0, i = screen.width, a = screen.height, r = Math.min(i, a);
|
|
1091
1091
|
return !!(o && r <= 768);
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function _r() {
|
|
1094
1094
|
const e = ti();
|
|
1095
1095
|
return e && document.body.classList.add("f-mobile"), e;
|
|
1096
1096
|
}
|
|
1097
|
-
typeof document < "u" &&
|
|
1097
|
+
typeof document < "u" && _r();
|
|
1098
1098
|
const jt = /* @__PURE__ */ Ae({
|
|
1099
1099
|
name: "Notify",
|
|
1100
|
-
props:
|
|
1100
|
+
props: Nr,
|
|
1101
1101
|
emits: ["close", "empty"],
|
|
1102
1102
|
setup(e, t) {
|
|
1103
1103
|
var T;
|
|
@@ -1189,14 +1189,14 @@ class mn {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
return i.safeHtml && ((u = i.options) != null && u.message) && (i.options.message = n.escapeAllHtml(i.options.message)), bt(() => {
|
|
1191
1191
|
document.body.removeChild(a);
|
|
1192
|
-
}),
|
|
1192
|
+
}), ot(() => {
|
|
1193
1193
|
n.updateNotifyPositionForCreate(i, c);
|
|
1194
1194
|
}), () => p(In, {
|
|
1195
1195
|
mode: "out-in",
|
|
1196
1196
|
name: "fade",
|
|
1197
1197
|
appear: !0
|
|
1198
1198
|
}, {
|
|
1199
|
-
default: () => [p(jt,
|
|
1199
|
+
default: () => [p(jt, nt({
|
|
1200
1200
|
ref: c
|
|
1201
1201
|
}, i, {
|
|
1202
1202
|
onClose: l
|
|
@@ -1269,13 +1269,13 @@ class mn {
|
|
|
1269
1269
|
}), this.notifyRefs.length = 0;
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
|
-
const
|
|
1272
|
+
const $r = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
1273
1273
|
jt.install = (e) => {
|
|
1274
1274
|
e.component(jt.name, jt), e.component(cn.name, cn);
|
|
1275
1275
|
const t = new mn();
|
|
1276
|
-
e.provide(
|
|
1276
|
+
e.provide($r, t), e.provide("FNotifyService", t);
|
|
1277
1277
|
};
|
|
1278
|
-
const
|
|
1278
|
+
const zr = {
|
|
1279
1279
|
designerHostService: { type: Object, default: {} },
|
|
1280
1280
|
/** 预设的控件类型 */
|
|
1281
1281
|
componentType: { type: String, default: "" },
|
|
@@ -1287,7 +1287,7 @@ const $r = {
|
|
|
1287
1287
|
targetComponentInstance: { type: Object, default: {} }
|
|
1288
1288
|
};
|
|
1289
1289
|
`${ze.getLocaleValue("datagrid.loadingMessage")}`;
|
|
1290
|
-
const
|
|
1290
|
+
const Ur = {
|
|
1291
1291
|
/**
|
|
1292
1292
|
* 自定义样式
|
|
1293
1293
|
*/
|
|
@@ -1560,12 +1560,12 @@ const zr = {
|
|
|
1560
1560
|
* 编辑单元格时默认获得焦点
|
|
1561
1561
|
*/
|
|
1562
1562
|
focusOnEditingCell: { type: Boolean, default: !0 }
|
|
1563
|
-
},
|
|
1564
|
-
function
|
|
1563
|
+
}, Hr = "enum", qr = "boolean";
|
|
1564
|
+
function Wr(e) {
|
|
1565
1565
|
const { formatter: t } = e;
|
|
1566
1566
|
return !t || typeof t == "function" ? null : t;
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function Gr(e, t) {
|
|
1569
1569
|
const n = t.options || t, { data: o } = n;
|
|
1570
1570
|
if (!o || !o.length)
|
|
1571
1571
|
return "";
|
|
@@ -1580,17 +1580,17 @@ function Wr(e, t) {
|
|
|
1580
1580
|
const r = o.find((c) => c[i] === e);
|
|
1581
1581
|
return (r == null ? void 0 : r[a]) ?? (e == null ? "" : String(e));
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function Yr(e, t) {
|
|
1584
1584
|
if (e == null)
|
|
1585
1585
|
return "";
|
|
1586
1586
|
const n = t.options || t, o = e ? n == null ? void 0 : n.trueText : n == null ? void 0 : n.falseText;
|
|
1587
1587
|
return o == null ? "" : String(o);
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1590
|
-
const n =
|
|
1591
|
-
return i ===
|
|
1589
|
+
function Kr(e, t) {
|
|
1590
|
+
const n = Ka(t, e.field), o = Wr(e), i = o == null ? void 0 : o.type;
|
|
1591
|
+
return i === Hr ? Gr(n, o) : i === qr || e.dataType === "boolean" ? Yr(n, o || {}) : n == null ? "" : String(n);
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function Xr(e, t, n, o, i, a, r, c, l, u, f, m, b, s, d, T, B, w, v) {
|
|
1594
1594
|
const {
|
|
1595
1595
|
calculateCellPositionInRow: S
|
|
1596
1596
|
} = a, {
|
|
@@ -1603,7 +1603,7 @@ function Kr(e, t, n, o, i, a, r, c, l, u, f, m, b, s, d, T, B, w, v) {
|
|
|
1603
1603
|
rightFixedGridDataStyle: F
|
|
1604
1604
|
} = s, {
|
|
1605
1605
|
renderDataRow: D
|
|
1606
|
-
} =
|
|
1606
|
+
} = ua(e, t, L, B, c, l, u, f, m, b, s, d, T, w, v), k = [D];
|
|
1607
1607
|
function U(j, P) {
|
|
1608
1608
|
const z = S(j);
|
|
1609
1609
|
return B.value.filter((oe) => oe.visible !== !1).map((oe, x) => k[oe.type](oe, z, P, x));
|
|
@@ -1645,57 +1645,57 @@ function Kr(e, t, n, o, i, a, r, c, l, u, f, m, b, s, d, T, B, w, v) {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
const un = /* @__PURE__ */ Ae({
|
|
1647
1647
|
name: "FTreeGrid",
|
|
1648
|
-
props:
|
|
1648
|
+
props: Ur,
|
|
1649
1649
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "selectItem", "filterChanged", "unSelectAll", "selectAll", "sortChanged", "selectionUpdate", "beginEditCell", "endEditCell"],
|
|
1650
1650
|
setup(e, t) {
|
|
1651
1651
|
var Cn, bn;
|
|
1652
1652
|
const n = h(!1), o = h(!1), i = 0, a = h(((Cn = e.rowOption) == null ? void 0 : Cn.height) || 28);
|
|
1653
1653
|
let r = [], c = [];
|
|
1654
|
-
const l = h(20), u = h(e.columns), f =
|
|
1654
|
+
const l = h(20), u = h(e.columns), f = da(e), {
|
|
1655
1655
|
idField: m
|
|
1656
|
-
} = f, b = h(), s = h(), d = h(), T = h(), B = h(), w = h([]), v = h(!1), S = h(((bn = e.rowOption) == null ? void 0 : bn.wrapContent) || !1), L =
|
|
1656
|
+
} = f, b = h(), s = h(), d = h(), T = h(), B = h(), w = h([]), v = h(!1), S = h(((bn = e.rowOption) == null ? void 0 : bn.wrapContent) || !1), L = fa(e, f), M = ma(e, t), C = pa(e), {
|
|
1657
1657
|
collapseField: g
|
|
1658
1658
|
} = C, {
|
|
1659
1659
|
showLoading: y,
|
|
1660
1660
|
renderLoading: F
|
|
1661
|
-
} =
|
|
1661
|
+
} = va(e, b), D = ga(e, /* @__PURE__ */ new Map(), M, C, f), {
|
|
1662
1662
|
dataView: k
|
|
1663
|
-
} = D, U =
|
|
1663
|
+
} = D, U = ha(e, D, f, w, t), {
|
|
1664
1664
|
showSelection: _,
|
|
1665
1665
|
selectedValues: I
|
|
1666
|
-
} = U, $ =
|
|
1666
|
+
} = U, $ = ya(e, w, D, f, U, t), V = X(() => e.disabled), j = X(() => e.virtualized ? Math.min(D.dataView.value.length, l.value) : D.dataView.value.length), P = Ca(e, D), {
|
|
1667
1667
|
shouldRenderPagination: z
|
|
1668
1668
|
} = P, {
|
|
1669
1669
|
containerStyleObject: oe
|
|
1670
|
-
} =
|
|
1670
|
+
} = ba(e, w), x = h(""), N = h([]), ie = X(() => e.searchable || !1), ae = h(0), J = X(() => N.value.length ? `${ae.value + 1}/${N.value.length}` : ""), ge = X(() => ze.getRealPropertyValue(e.searchPlaceholder, "", "datagrid.search.placeholder")), Se = X(() => ze.getLocaleValue("datagrid.search.search")), fe = X(() => ze.getLocaleValue("datagrid.search.prev")), Z = X(() => ze.getLocaleValue("datagrid.search.next")), E = X(() => ze.getLocaleValue("datagrid.search.clear")), re = wa(e), {
|
|
1671
1671
|
applyCommands: le
|
|
1672
1672
|
} = re;
|
|
1673
1673
|
le(u);
|
|
1674
1674
|
const {
|
|
1675
1675
|
applyColumnSetting: ce,
|
|
1676
1676
|
removeColumnSetting: ye
|
|
1677
|
-
} =
|
|
1677
|
+
} = Sa(e);
|
|
1678
1678
|
e.showSetting && ce(u);
|
|
1679
|
-
const Ie =
|
|
1679
|
+
const Ie = Ta(e, t), je = Fa(e), {
|
|
1680
1680
|
applyColumnSorter: Le,
|
|
1681
1681
|
columnContext: Te,
|
|
1682
1682
|
updateColumnRenderContext: Oe
|
|
1683
1683
|
} = Ie;
|
|
1684
1684
|
Le(D, je);
|
|
1685
|
-
const Ve =
|
|
1685
|
+
const Ve = Ea(e, Te), Pe = xa(e, t, U, f), De = Ma(e, t, f, Pe, w), lt = Da(e, D, a), pt = Ba(e, De, lt), vt = ka(e, D, De, C, f, lt, pt, a), Qe = Ia(e, u, D, j, i, vt), {
|
|
1686
1686
|
getVisualData: et
|
|
1687
|
-
} = Qe, gt =
|
|
1687
|
+
} = Qe, gt = Pa(e, Te, a, n), it = Oa(e, U), {
|
|
1688
1688
|
sidebarWidth: st
|
|
1689
|
-
} =
|
|
1689
|
+
} = it, ke = Va(e, D, w, Te, Qe, j, i, st, a, n), {
|
|
1690
1690
|
onWheel: A,
|
|
1691
1691
|
dataGridWidth: ue,
|
|
1692
1692
|
viewPortHeight: Fe,
|
|
1693
1693
|
viewPortWidth: Ee,
|
|
1694
1694
|
resetScroll: He,
|
|
1695
1695
|
updateVisibleRowsOnLatestVisibleScope: wt
|
|
1696
|
-
} = ke, ct =
|
|
1696
|
+
} = ke, ct = Na(e, Te, s, Ee, Ve), {
|
|
1697
1697
|
calculateColumnsSize: ht
|
|
1698
|
-
} = ct, Vt =
|
|
1698
|
+
} = ct, Vt = La(), Nt = Ra(s, B, D, Vt, ke), Wt = Aa(e, t, Ie, D, Ve, L, ke), Gt = X(() => {
|
|
1699
1699
|
const R = {
|
|
1700
1700
|
"fv-grid": !0,
|
|
1701
1701
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -1710,7 +1710,7 @@ const un = /* @__PURE__ */ Ae({
|
|
|
1710
1710
|
"fv-grid-scrollbar-visible": ke.shouldShowVirticalScrollbar.value && v.value
|
|
1711
1711
|
})), {
|
|
1712
1712
|
renderDataArea: Kt
|
|
1713
|
-
} =
|
|
1713
|
+
} = Xr(e, t, d, T, B, gt, Ie, D, De, C, Pe, U, $, ke, Qe, lt, w, a, n), Lt = h(null);
|
|
1714
1714
|
function Rt(R, G) {
|
|
1715
1715
|
var de, me;
|
|
1716
1716
|
e.enableColumnSettingSolution && ((me = (de = Lt.value) == null ? void 0 : de.persistColumnWidths) == null || me.call(de, G));
|
|
@@ -1719,15 +1719,15 @@ const un = /* @__PURE__ */ Ae({
|
|
|
1719
1719
|
renderGridHeader: Xt,
|
|
1720
1720
|
renderGridColumnResizeOverlay: O,
|
|
1721
1721
|
shouldShowHeader: K
|
|
1722
|
-
} =
|
|
1722
|
+
} = ja(e, t, s, T, B, Ie, D, Wt, Nt, M, Vt, ct, Ve, U, it, je, ke, Ee, w, o, Rt), {
|
|
1723
1723
|
renderDataGridSidebar: Q
|
|
1724
|
-
} =
|
|
1724
|
+
} = _a(e, Pe, U, it, ke), {
|
|
1725
1725
|
renderDisableMask: se
|
|
1726
|
-
} =
|
|
1726
|
+
} = $a(), {
|
|
1727
1727
|
renderHorizontalScrollbar: Ce
|
|
1728
|
-
} =
|
|
1728
|
+
} = za(e, s, ke), {
|
|
1729
1729
|
renderVerticalScrollbar: be
|
|
1730
|
-
} =
|
|
1730
|
+
} = Ua(e, s, ke);
|
|
1731
1731
|
let _e = null;
|
|
1732
1732
|
function Ue() {
|
|
1733
1733
|
var R, G, de;
|
|
@@ -1742,8 +1742,8 @@ const un = /* @__PURE__ */ Ae({
|
|
|
1742
1742
|
_e = null, Ue();
|
|
1743
1743
|
});
|
|
1744
1744
|
}
|
|
1745
|
-
|
|
1746
|
-
s.value && (l.value = Math.max(Math.ceil(s.value.clientHeight / a.value), l.value), w.value = et(0, j.value + i - 1),
|
|
1745
|
+
ot(() => {
|
|
1746
|
+
s.value && (l.value = Math.max(Math.ceil(s.value.clientHeight / a.value), l.value), w.value = et(0, j.value + i - 1), ca(s.value, Ge), ht(), Ct(() => {
|
|
1747
1747
|
s.value && (ue.value = s.value.clientWidth), d.value && (Ee.value = d.value.clientWidth, Fe.value = d.value.clientHeight);
|
|
1748
1748
|
})), y.value && F();
|
|
1749
1749
|
}), bt(() => {
|
|
@@ -1797,7 +1797,7 @@ const un = /* @__PURE__ */ Ae({
|
|
|
1797
1797
|
function mi(R, G) {
|
|
1798
1798
|
if (R) {
|
|
1799
1799
|
const de = !!(G != null && G.keepScrollTop || G != null && G.keepScrollPosition), me = de ? ke.offsetY.value : 0;
|
|
1800
|
-
D.load(R), D.reOrderVisibleIndex(),
|
|
1800
|
+
D.load(R), D.reOrderVisibleIndex(), Ya({
|
|
1801
1801
|
keepScroll: de,
|
|
1802
1802
|
savedOffsetY: me,
|
|
1803
1803
|
resetScroll: He,
|
|
@@ -1831,7 +1831,7 @@ const un = /* @__PURE__ */ Ae({
|
|
|
1831
1831
|
}
|
|
1832
1832
|
const Ci = X(() => !w.value || !w.value.length), {
|
|
1833
1833
|
renderEmpty: bi
|
|
1834
|
-
} =
|
|
1834
|
+
} = Ha(e, t);
|
|
1835
1835
|
function wi() {
|
|
1836
1836
|
return U.getSelectionRow();
|
|
1837
1837
|
}
|
|
@@ -1977,7 +1977,7 @@ const un = /* @__PURE__ */ Ae({
|
|
|
1977
1977
|
let ve = !1;
|
|
1978
1978
|
e.customSearch ? ve = e.customSearch(G, me, e.columns) : e.columns.forEach((pe) => {
|
|
1979
1979
|
if (!ve && pe.field) {
|
|
1980
|
-
const he =
|
|
1980
|
+
const he = Kr(pe, me);
|
|
1981
1981
|
he && he.toLowerCase().includes(G) && (ve = !0);
|
|
1982
1982
|
}
|
|
1983
1983
|
}), ve && R.push(me);
|
|
@@ -2051,8 +2051,8 @@ const un = /* @__PURE__ */ Ae({
|
|
|
2051
2051
|
...oe.value,
|
|
2052
2052
|
borderRadius: "5px"
|
|
2053
2053
|
})), {
|
|
2054
|
-
renderDataGridPagination:
|
|
2055
|
-
} =
|
|
2054
|
+
renderDataGridPagination: fs
|
|
2055
|
+
} = qa(e, t, D, ke, P, U), Hi = X(() => ({
|
|
2056
2056
|
"d-flex": !0,
|
|
2057
2057
|
"justify-content-between": z.value && _.value,
|
|
2058
2058
|
"justify-content-end": z.value && !_.value,
|
|
@@ -2075,7 +2075,7 @@ const un = /* @__PURE__ */ Ae({
|
|
|
2075
2075
|
}
|
|
2076
2076
|
const {
|
|
2077
2077
|
renderDataGridSummary: Gi
|
|
2078
|
-
} =
|
|
2078
|
+
} = Wa(e, D, Ie);
|
|
2079
2079
|
return () => e.visible && p(mt, null, [ie.value && p("div", {
|
|
2080
2080
|
class: "fv-grid-search",
|
|
2081
2081
|
style: {
|
|
@@ -2089,7 +2089,7 @@ const un = /* @__PURE__ */ Ae({
|
|
|
2089
2089
|
display: "flex",
|
|
2090
2090
|
alignItems: "center"
|
|
2091
2091
|
}
|
|
2092
|
-
}, [p(
|
|
2092
|
+
}, [p(Xa, {
|
|
2093
2093
|
value: x.value,
|
|
2094
2094
|
onInput: (R) => x.value = R,
|
|
2095
2095
|
"onUpdate:value": (R) => x.value = R || "",
|
|
@@ -2178,7 +2178,7 @@ const un = /* @__PURE__ */ Ae({
|
|
|
2178
2178
|
class: Hi.value
|
|
2179
2179
|
}, [_.value && p("div", {
|
|
2180
2180
|
class: qi.value
|
|
2181
|
-
}, [p("div", null, ["已选:" + I.value.length, We(" 条")])])]), O(), V.value && se()]), e.enableColumnSettingSolution && p(
|
|
2181
|
+
}, [p("div", null, ["已选:" + I.value.length, We(" 条")])])]), O(), V.value && se()]), e.enableColumnSettingSolution && p(Ga, {
|
|
2182
2182
|
ref: Lt,
|
|
2183
2183
|
columns: [...u.value, ...r],
|
|
2184
2184
|
componentId: e.id,
|
|
@@ -2277,7 +2277,7 @@ function ni(e) {
|
|
|
2277
2277
|
currentComponentType: l
|
|
2278
2278
|
};
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2280
|
+
function Qr(e) {
|
|
2281
2281
|
const { designerHostService: t } = e, n = /* @__PURE__ */ new Map(), o = h(), i = h(), a = h([{ field: "name", title: "实体名称" }]), r = h(), c = h(!1);
|
|
2282
2282
|
function l(d) {
|
|
2283
2283
|
const T = ni(e);
|
|
@@ -2333,10 +2333,10 @@ function Xr(e) {
|
|
|
2333
2333
|
isMainEntityInitialSelected: c
|
|
2334
2334
|
};
|
|
2335
2335
|
}
|
|
2336
|
-
const
|
|
2336
|
+
const Jr = /* @__PURE__ */ new Map([
|
|
2337
2337
|
["appearance", Nn]
|
|
2338
2338
|
]);
|
|
2339
|
-
function
|
|
2339
|
+
function Zr(e, t) {
|
|
2340
2340
|
const {
|
|
2341
2341
|
formSchemaUtils: n,
|
|
2342
2342
|
designViewModelUtils: o
|
|
@@ -2364,7 +2364,7 @@ function Jr(e, t) {
|
|
|
2364
2364
|
}
|
|
2365
2365
|
return { createComponent: r };
|
|
2366
2366
|
}
|
|
2367
|
-
function
|
|
2367
|
+
function el(e, t, n, o) {
|
|
2368
2368
|
var a, r, c, l, u, f;
|
|
2369
2369
|
const i = n.parentComponentInstance;
|
|
2370
2370
|
if (i && o) {
|
|
@@ -2376,12 +2376,12 @@ function Zr(e, t, n, o) {
|
|
|
2376
2376
|
parentComponentInstance: i,
|
|
2377
2377
|
bindTo: ((l = n.bindingSourceContext) == null ? void 0 : l.bindTo) || "",
|
|
2378
2378
|
dataSource: (f = (u = n.bindingSourceContext) == null ? void 0 : u.bindingEntity) == null ? void 0 : f.label
|
|
2379
|
-
}, { createComponent: s } =
|
|
2379
|
+
}, { createComponent: s } = Zr(e, o);
|
|
2380
2380
|
return s(b);
|
|
2381
2381
|
} else
|
|
2382
2382
|
return t;
|
|
2383
2383
|
}
|
|
2384
|
-
const
|
|
2384
|
+
const tl = "https://json-schema.org/draft/2020-12/schema", nl = "https://farris-design.gitee.io/step.schema.json", ol = "step", il = "A Farris Component", al = "object", rl = {
|
|
2385
2385
|
id: {
|
|
2386
2386
|
description: "The unique identifier for step",
|
|
2387
2387
|
type: "string"
|
|
@@ -2459,17 +2459,17 @@ const el = "https://json-schema.org/draft/2020-12/schema", tl = "https://farris-
|
|
|
2459
2459
|
description: "步骤条模板",
|
|
2460
2460
|
type: "string"
|
|
2461
2461
|
}
|
|
2462
|
-
},
|
|
2462
|
+
}, ll = [
|
|
2463
2463
|
"id",
|
|
2464
2464
|
"type"
|
|
2465
|
-
],
|
|
2466
|
-
$schema:
|
|
2467
|
-
$id:
|
|
2468
|
-
title:
|
|
2469
|
-
description:
|
|
2470
|
-
type:
|
|
2471
|
-
properties:
|
|
2472
|
-
required:
|
|
2465
|
+
], sl = {
|
|
2466
|
+
$schema: tl,
|
|
2467
|
+
$id: nl,
|
|
2468
|
+
title: ol,
|
|
2469
|
+
description: il,
|
|
2470
|
+
type: al,
|
|
2471
|
+
properties: rl,
|
|
2472
|
+
required: ll
|
|
2473
2473
|
}, pn = {
|
|
2474
2474
|
/**
|
|
2475
2475
|
* 步骤条方向
|
|
@@ -2523,7 +2523,7 @@ const el = "https://json-schema.org/draft/2020-12/schema", tl = "https://farris-
|
|
|
2523
2523
|
} },
|
|
2524
2524
|
customClass: { type: String, default: "" },
|
|
2525
2525
|
stepTemplate: { type: Object }
|
|
2526
|
-
}, oi = Ot(pn,
|
|
2526
|
+
}, oi = Ot(pn, sl, Jr, el), ft = /* @__PURE__ */ Ae({
|
|
2527
2527
|
name: "FStep",
|
|
2528
2528
|
props: pn,
|
|
2529
2529
|
emits: ["click"],
|
|
@@ -2720,7 +2720,7 @@ const el = "https://json-schema.org/draft/2020-12/schema", tl = "https://farris-
|
|
|
2720
2720
|
"dynamic-form": { type: "dynamic-form", name: "动态表单" },
|
|
2721
2721
|
"field-search-box": { type: "field-search-box", name: "智能搜索框" }
|
|
2722
2722
|
};
|
|
2723
|
-
class
|
|
2723
|
+
class cl {
|
|
2724
2724
|
constructor(t) {
|
|
2725
2725
|
we(this, "sessionVariables", [
|
|
2726
2726
|
{
|
|
@@ -2988,7 +2988,7 @@ class sl {
|
|
|
2988
2988
|
};
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
|
-
function
|
|
2991
|
+
function ul(e) {
|
|
2992
2992
|
const { formSchemaUtils: t, formStateMachineUtils: n } = e;
|
|
2993
2993
|
function o(l, u = "") {
|
|
2994
2994
|
return {
|
|
@@ -3016,8 +3016,8 @@ function cl(e) {
|
|
|
3016
3016
|
}
|
|
3017
3017
|
return { getVariables: a, getControlName: r, getStateMachines: c };
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3020
|
-
const { getVariables: i, getControlName: a, getStateMachines: r } =
|
|
3019
|
+
function dl(e, t, n, o) {
|
|
3020
|
+
const { getVariables: i, getControlName: a, getStateMachines: r } = ul(e);
|
|
3021
3021
|
return (c, l = [], u = {}, f = {}, m) => {
|
|
3022
3022
|
const b = l && l.length > 0 ? l : ["Const", "Variable", "StateMachine", "Expression"], s = {
|
|
3023
3023
|
type: "property-editor",
|
|
@@ -3052,7 +3052,7 @@ function ul(e, t, n, o) {
|
|
|
3052
3052
|
}), s;
|
|
3053
3053
|
};
|
|
3054
3054
|
}
|
|
3055
|
-
class
|
|
3055
|
+
class fl {
|
|
3056
3056
|
constructor(t, n) {
|
|
3057
3057
|
we(this, "componentId");
|
|
3058
3058
|
we(this, "viewModelId");
|
|
@@ -3075,7 +3075,7 @@ class dl {
|
|
|
3075
3075
|
});
|
|
3076
3076
|
we(this, "expressionProperty");
|
|
3077
3077
|
var o;
|
|
3078
|
-
this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService, this.designerContext = n.designerContext, this.modalService = n.modalService, this.expressionProperty = new
|
|
3078
|
+
this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService, this.designerContext = n.designerContext, this.modalService = n.modalService, this.expressionProperty = new cl(this.formSchemaUtils);
|
|
3079
3079
|
}
|
|
3080
3080
|
/**
|
|
3081
3081
|
* 是否在响应式表单中
|
|
@@ -3160,7 +3160,7 @@ class dl {
|
|
|
3160
3160
|
switch (r && r.propertyID) {
|
|
3161
3161
|
case "class":
|
|
3162
3162
|
case "style": {
|
|
3163
|
-
|
|
3163
|
+
tr.value++;
|
|
3164
3164
|
break;
|
|
3165
3165
|
}
|
|
3166
3166
|
}
|
|
@@ -3180,7 +3180,7 @@ class dl {
|
|
|
3180
3180
|
* @returns
|
|
3181
3181
|
*/
|
|
3182
3182
|
getPropertyEditorParams(t, n = [], o = "visible", i = {}, a = {}, r = "") {
|
|
3183
|
-
const l =
|
|
3183
|
+
const l = dl(
|
|
3184
3184
|
this.designerHostService,
|
|
3185
3185
|
this.viewModelId,
|
|
3186
3186
|
this.componentId,
|
|
@@ -3254,7 +3254,7 @@ class dl {
|
|
|
3254
3254
|
if (!o)
|
|
3255
3255
|
return;
|
|
3256
3256
|
const i = o.contents.findIndex((r) => r.id === t), a = Ht(o.contents[i]);
|
|
3257
|
-
o.contents.splice(i, 1), o.contents.splice(i, 0, a),
|
|
3257
|
+
o.contents.splice(i, 1), o.contents.splice(i, 0, a), nr();
|
|
3258
3258
|
}
|
|
3259
3259
|
/**
|
|
3260
3260
|
* 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
|
|
@@ -3333,7 +3333,7 @@ class dl {
|
|
|
3333
3333
|
}, n;
|
|
3334
3334
|
}
|
|
3335
3335
|
}
|
|
3336
|
-
class
|
|
3336
|
+
class ml extends fl {
|
|
3337
3337
|
constructor(t, n) {
|
|
3338
3338
|
super(t, n);
|
|
3339
3339
|
}
|
|
@@ -3495,7 +3495,7 @@ class fl extends dl {
|
|
|
3495
3495
|
};
|
|
3496
3496
|
}
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3498
|
+
function pl(e, t) {
|
|
3499
3499
|
const n = e.schema;
|
|
3500
3500
|
function o() {
|
|
3501
3501
|
return "";
|
|
@@ -3513,7 +3513,7 @@ function ml(e, t) {
|
|
|
3513
3513
|
return !0;
|
|
3514
3514
|
}
|
|
3515
3515
|
function l(f) {
|
|
3516
|
-
return new
|
|
3516
|
+
return new ml(f, t).getPropertyConfig(n);
|
|
3517
3517
|
}
|
|
3518
3518
|
function u() {
|
|
3519
3519
|
var f, m, b, s;
|
|
@@ -3545,12 +3545,12 @@ function ml(e, t) {
|
|
|
3545
3545
|
getDesignerClass: o
|
|
3546
3546
|
};
|
|
3547
3547
|
}
|
|
3548
|
-
const
|
|
3548
|
+
const vl = /* @__PURE__ */ Ae({
|
|
3549
3549
|
name: "FStepDesign",
|
|
3550
3550
|
props: pn,
|
|
3551
3551
|
emits: [],
|
|
3552
3552
|
setup(e, t) {
|
|
3553
|
-
const n = h(0), o = h(0), i = h(), a = xe("designer-host-service"), r = xe("design-item-context"), c =
|
|
3553
|
+
const n = h(0), o = h(0), i = h(), a = xe("designer-host-service"), r = xe("design-item-context"), c = pl(r, a), l = or(i, r, c), u = [{
|
|
3554
3554
|
id: "firstStep",
|
|
3555
3555
|
title: "步骤一",
|
|
3556
3556
|
description: "步骤一"
|
|
@@ -3559,7 +3559,7 @@ const pl = /* @__PURE__ */ Ae({
|
|
|
3559
3559
|
title: "步骤二",
|
|
3560
3560
|
description: "步骤二"
|
|
3561
3561
|
}];
|
|
3562
|
-
|
|
3562
|
+
ot(() => {
|
|
3563
3563
|
i.value.componentInstance = l;
|
|
3564
3564
|
}), t.expose(l.value);
|
|
3565
3565
|
const f = X(() => ({
|
|
@@ -3669,7 +3669,7 @@ const pl = /* @__PURE__ */ Ae({
|
|
|
3669
3669
|
}, [C()])]);
|
|
3670
3670
|
}
|
|
3671
3671
|
});
|
|
3672
|
-
function
|
|
3672
|
+
function gl() {
|
|
3673
3673
|
function e(t, n) {
|
|
3674
3674
|
const o = {};
|
|
3675
3675
|
return o.beforeClickStep = (i) => n.call("beforeClickStep", t, [i, t]), o;
|
|
@@ -3678,18 +3678,18 @@ function vl() {
|
|
|
3678
3678
|
resolve: e
|
|
3679
3679
|
};
|
|
3680
3680
|
}
|
|
3681
|
-
const
|
|
3681
|
+
const hl = gl();
|
|
3682
3682
|
ft.install = (e) => {
|
|
3683
3683
|
e.component(ft.name, ft);
|
|
3684
3684
|
};
|
|
3685
3685
|
ft.register = (e, t, n, o) => {
|
|
3686
|
-
e.step = ft, t.step = oi, o.step = { callbackResolver:
|
|
3686
|
+
e.step = ft, t.step = oi, o.step = { callbackResolver: hl };
|
|
3687
3687
|
};
|
|
3688
3688
|
ft.registerDesigner = (e, t, n) => {
|
|
3689
|
-
e.step =
|
|
3689
|
+
e.step = vl, t.step = oi;
|
|
3690
3690
|
};
|
|
3691
|
-
const
|
|
3692
|
-
class
|
|
3691
|
+
const yl = "root-viewmodel";
|
|
3692
|
+
class Cl {
|
|
3693
3693
|
constructor(t, n) {
|
|
3694
3694
|
we(this, "formSchemaUtils");
|
|
3695
3695
|
we(this, "controlCreatorUtils");
|
|
@@ -3797,7 +3797,7 @@ class yl {
|
|
|
3797
3797
|
code: `${t.componentId}-component-viewmodel`,
|
|
3798
3798
|
name: t.componentName,
|
|
3799
3799
|
bindTo: t.bindTo,
|
|
3800
|
-
parent:
|
|
3800
|
+
parent: yl,
|
|
3801
3801
|
fields: this.assembleViewModelFields(t),
|
|
3802
3802
|
commands: [],
|
|
3803
3803
|
states: [],
|
|
@@ -3840,11 +3840,11 @@ function ii(e, t, n, o) {
|
|
|
3840
3840
|
bindTo: ((u = n.bindingSourceContext) == null ? void 0 : u.bindTo) || "/",
|
|
3841
3841
|
selectedFields: (f = n.bindingSourceContext) == null ? void 0 : f.bindingEntityFields
|
|
3842
3842
|
};
|
|
3843
|
-
return new
|
|
3843
|
+
return new Cl(e, o).createComponent(s);
|
|
3844
3844
|
} else
|
|
3845
3845
|
return t;
|
|
3846
3846
|
}
|
|
3847
|
-
const
|
|
3847
|
+
const bl = "https://json-schema.org/draft/2020-12/schema", wl = "https://farris-design.gitee.io/response-form.schema.json", Sl = "response-form", Tl = "A Farris Data Collection Component", Fl = "object", El = {
|
|
3848
3848
|
id: {
|
|
3849
3849
|
description: "The unique identifier for a form group",
|
|
3850
3850
|
type: "string"
|
|
@@ -3900,21 +3900,21 @@ const Cl = "https://json-schema.org/draft/2020-12/schema", bl = "https://farris-
|
|
|
3900
3900
|
description: "",
|
|
3901
3901
|
type: "object"
|
|
3902
3902
|
}
|
|
3903
|
-
},
|
|
3903
|
+
}, xl = [
|
|
3904
3904
|
"id",
|
|
3905
3905
|
"type",
|
|
3906
3906
|
"contents"
|
|
3907
|
-
],
|
|
3908
|
-
$schema:
|
|
3909
|
-
$id:
|
|
3910
|
-
title:
|
|
3911
|
-
description:
|
|
3912
|
-
type:
|
|
3913
|
-
properties:
|
|
3914
|
-
required:
|
|
3907
|
+
], Ml = {
|
|
3908
|
+
$schema: bl,
|
|
3909
|
+
$id: wl,
|
|
3910
|
+
title: Sl,
|
|
3911
|
+
description: Tl,
|
|
3912
|
+
type: Fl,
|
|
3913
|
+
properties: El,
|
|
3914
|
+
required: xl
|
|
3915
3915
|
}, ai = /* @__PURE__ */ new Map([
|
|
3916
3916
|
["appearance", Nn]
|
|
3917
|
-
]),
|
|
3917
|
+
]), Dl = "https://json-schema.org/draft/2020-12/schema", Bl = "https://farris-design.gitee.io/dynamic-form.schema.json", kl = "dynamic-form", Il = "A Farris Data Collection Component", Pl = "object", Ol = {
|
|
3918
3918
|
id: {
|
|
3919
3919
|
description: "The unique identifier for a form group",
|
|
3920
3920
|
type: "string"
|
|
@@ -4023,24 +4023,24 @@ const Cl = "https://json-schema.org/draft/2020-12/schema", bl = "https://farris-
|
|
|
4023
4023
|
description: "",
|
|
4024
4024
|
type: "string"
|
|
4025
4025
|
}
|
|
4026
|
-
},
|
|
4026
|
+
}, Vl = [
|
|
4027
4027
|
"id",
|
|
4028
4028
|
"type",
|
|
4029
4029
|
"contents"
|
|
4030
|
-
],
|
|
4030
|
+
], Nl = {
|
|
4031
4031
|
onClick: "点击事件",
|
|
4032
4032
|
onChange: "ֵ值变化事件",
|
|
4033
4033
|
event: "内部控件事件",
|
|
4034
4034
|
callback: "内部控件属性回调事件"
|
|
4035
|
-
},
|
|
4036
|
-
$schema:
|
|
4037
|
-
$id:
|
|
4038
|
-
title:
|
|
4039
|
-
description:
|
|
4040
|
-
type:
|
|
4041
|
-
properties:
|
|
4042
|
-
required:
|
|
4043
|
-
events:
|
|
4035
|
+
}, Ll = {
|
|
4036
|
+
$schema: Dl,
|
|
4037
|
+
$id: Bl,
|
|
4038
|
+
title: kl,
|
|
4039
|
+
description: Il,
|
|
4040
|
+
type: Pl,
|
|
4041
|
+
properties: Ol,
|
|
4042
|
+
required: Vl,
|
|
4043
|
+
events: Nl
|
|
4044
4044
|
};
|
|
4045
4045
|
var Bt = /* @__PURE__ */ ((e) => (e.Header = "header", e.Footer = "footer", e))(Bt || {}), zt = /* @__PURE__ */ ((e) => (e.QUICK = "quick", e.FULL = "full", e))(zt || {});
|
|
4046
4046
|
const qt = {
|
|
@@ -4056,7 +4056,7 @@ const qt = {
|
|
|
4056
4056
|
formData: { type: Object, default: null },
|
|
4057
4057
|
/** 为动态字段指定样式*/
|
|
4058
4058
|
layout: { type: String, default: "col-12 col-md-6 col-xl-3 col-el-2" }
|
|
4059
|
-
},
|
|
4059
|
+
}, Rl = Object.assign({}, qt, {
|
|
4060
4060
|
// 是否渲染form层级
|
|
4061
4061
|
canRenderForm: { type: Boolean, default: !0 },
|
|
4062
4062
|
/**
|
|
@@ -4095,9 +4095,9 @@ const qt = {
|
|
|
4095
4095
|
/** 更多按钮样式 */
|
|
4096
4096
|
moreButtonClass: { type: String, default: "btn-link" }
|
|
4097
4097
|
});
|
|
4098
|
-
Ot(qt,
|
|
4099
|
-
Ot(qt,
|
|
4100
|
-
function
|
|
4098
|
+
Ot(qt, Ml, ai, ii);
|
|
4099
|
+
Ot(qt, Ll, ai, ii);
|
|
4100
|
+
function Al(e, t) {
|
|
4101
4101
|
function n(r) {
|
|
4102
4102
|
return e.value && e.value[r];
|
|
4103
4103
|
}
|
|
@@ -4119,20 +4119,20 @@ function Rl(e, t) {
|
|
|
4119
4119
|
}
|
|
4120
4120
|
const _t = /* @__PURE__ */ Ae({
|
|
4121
4121
|
name: "FDynamicForm",
|
|
4122
|
-
props:
|
|
4122
|
+
props: Rl,
|
|
4123
4123
|
emits: ["update:modelValue", "change", "event", "click"],
|
|
4124
4124
|
setup(e, t) {
|
|
4125
4125
|
const n = h(e.fields), o = /* @__PURE__ */ new Map(), i = h(e.callback);
|
|
4126
|
-
|
|
4127
|
-
const a =
|
|
4128
|
-
|
|
4126
|
+
ir();
|
|
4127
|
+
const a = ar(), r = h(e.formData || {}), c = Al(r, t);
|
|
4128
|
+
rr(n.value).setup();
|
|
4129
4129
|
const u = /* @__PURE__ */ new Map(), f = h(e.canRenderForm);
|
|
4130
4130
|
let m = [], b = [], s = [];
|
|
4131
4131
|
const d = e.mode === zt.FULL ? "contents" : "fields", {
|
|
4132
4132
|
mergeArray: T,
|
|
4133
4133
|
resolveCallbacks: B,
|
|
4134
4134
|
resolveEvents: w
|
|
4135
|
-
} =
|
|
4135
|
+
} = lr(), v = X(() => {
|
|
4136
4136
|
const E = ze.getLocale(), re = e.fields && e.fields.length > 0;
|
|
4137
4137
|
let le = {
|
|
4138
4138
|
"f-form-layout": re,
|
|
@@ -4185,7 +4185,7 @@ const _t = /* @__PURE__ */ Ae({
|
|
|
4185
4185
|
}, Ie = {
|
|
4186
4186
|
...B(E, i, re)
|
|
4187
4187
|
};
|
|
4188
|
-
const Te =
|
|
4188
|
+
const Te = cr[re];
|
|
4189
4189
|
le = Te ? Te(E) : {}, ce = g(le);
|
|
4190
4190
|
} else {
|
|
4191
4191
|
ce = g(E);
|
|
@@ -4261,7 +4261,7 @@ const _t = /* @__PURE__ */ Ae({
|
|
|
4261
4261
|
props: ce,
|
|
4262
4262
|
eventProps: ye,
|
|
4263
4263
|
callbackProps: Ie
|
|
4264
|
-
} = y(E), je =
|
|
4264
|
+
} = y(E), je = sr[re], Le = je ? je.editorResolver : null, {
|
|
4265
4265
|
componentEventProps: Te,
|
|
4266
4266
|
editorEventProps: Oe
|
|
4267
4267
|
} = ye, {
|
|
@@ -4306,7 +4306,7 @@ const _t = /* @__PURE__ */ Ae({
|
|
|
4306
4306
|
}
|
|
4307
4307
|
}
|
|
4308
4308
|
}
|
|
4309
|
-
|
|
4309
|
+
ot(() => {
|
|
4310
4310
|
}), Me(() => e.formData, (E) => {
|
|
4311
4311
|
r.value = E;
|
|
4312
4312
|
}), Me(() => r.value, (E) => {
|
|
@@ -4393,7 +4393,7 @@ const _t = /* @__PURE__ */ Ae({
|
|
|
4393
4393
|
footerClass: re,
|
|
4394
4394
|
headerContentClass: le
|
|
4395
4395
|
} = ae();
|
|
4396
|
-
return p(
|
|
4396
|
+
return p(ur, {
|
|
4397
4397
|
customClass: "f-dynamic-form-section",
|
|
4398
4398
|
showHeader: e.showHeader,
|
|
4399
4399
|
mainTitle: e.mainTitle,
|
|
@@ -4465,7 +4465,7 @@ const _t = /* @__PURE__ */ Ae({
|
|
|
4465
4465
|
layout: e.layout
|
|
4466
4466
|
}, null)]), [[rn("area-response")]]);
|
|
4467
4467
|
}
|
|
4468
|
-
}),
|
|
4468
|
+
}), jl = {
|
|
4469
4469
|
id: { type: String, default: "" },
|
|
4470
4470
|
customClass: { type: String, default: "" },
|
|
4471
4471
|
customStyle: { type: String, default: "" },
|
|
@@ -4489,7 +4489,7 @@ const _t = /* @__PURE__ */ Ae({
|
|
|
4489
4489
|
enableTips: { type: Boolean, default: !1 },
|
|
4490
4490
|
tipsContent: { type: [Object, String], default: "" },
|
|
4491
4491
|
linkLabel: { type: String, default: !1 }
|
|
4492
|
-
},
|
|
4492
|
+
}, _l = {
|
|
4493
4493
|
id: { type: String },
|
|
4494
4494
|
required: { type: Boolean, default: !1 },
|
|
4495
4495
|
text: { type: String, default: "" },
|
|
@@ -4501,9 +4501,9 @@ const _t = /* @__PURE__ */ Ae({
|
|
|
4501
4501
|
*/
|
|
4502
4502
|
showType: { type: String, default: "visible" },
|
|
4503
4503
|
isLink: { type: Boolean, default: !1 }
|
|
4504
|
-
},
|
|
4504
|
+
}, $l = /* @__PURE__ */ Ae({
|
|
4505
4505
|
name: "FDynamicFormLabel",
|
|
4506
|
-
props:
|
|
4506
|
+
props: _l,
|
|
4507
4507
|
emits: ["clickLabel"],
|
|
4508
4508
|
setup(e, t) {
|
|
4509
4509
|
h(e.title || e.text);
|
|
@@ -4540,24 +4540,24 @@ const _t = /* @__PURE__ */ Ae({
|
|
|
4540
4540
|
class: "farris-label-info text-danger"
|
|
4541
4541
|
}, [We("*")]), e.showType === "visible" && o.value])]);
|
|
4542
4542
|
}
|
|
4543
|
-
}), { globalStorageKey:
|
|
4544
|
-
async function
|
|
4543
|
+
}), { globalStorageKey: zl } = Vn(), H = {}, q = {}, W = {}, Y = {};
|
|
4544
|
+
async function Ul() {
|
|
4545
4545
|
{
|
|
4546
4546
|
const e = {
|
|
4547
|
-
schemaMap:
|
|
4548
|
-
propertyConfigSchemaMap:
|
|
4549
|
-
propertyEffectMap:
|
|
4550
|
-
schemaResolverMap:
|
|
4547
|
+
schemaMap: er,
|
|
4548
|
+
propertyConfigSchemaMap: Za,
|
|
4549
|
+
propertyEffectMap: Ja,
|
|
4550
|
+
schemaResolverMap: Qa
|
|
4551
4551
|
};
|
|
4552
|
-
zn.register(H, q, W, Y), $n.register(H, q, W, Y), Un.register(H, q, W, Y, e), Hn.register(H, q, W, Y), qn.register(H, q, W, Y), yt.register(H, q, W, Y), Wn.register(H, q, W, Y, e), Gn.register(H, q, W, Y), sn.register(H, q, W, Y, e), $t.register(H, q, W, Y, e), sn.register(H, q, W, Y, e), $t.register(H, q, W, Y, e), Yn.register(H, q, W, Y, e),
|
|
4553
|
-
const t = window[
|
|
4552
|
+
zn.register(H, q, W, Y), $n.register(H, q, W, Y), Un.register(H, q, W, Y, e), Hn.register(H, q, W, Y), qn.register(H, q, W, Y), yt.register(H, q, W, Y), Wn.register(H, q, W, Y, e), Gn.register(H, q, W, Y), sn.register(H, q, W, Y, e), $t.register(H, q, W, Y, e), sn.register(H, q, W, Y, e), $t.register(H, q, W, Y, e), Yn.register(H, q, W, Y, e), dr.register(H, q, W, Y, e), Kn.register(H, q, W, Y), Qn.register(H, q, W, Y, e), Jn.register(H, q, W, Y, e), Xn.register(H, q, W, Y, e), Zn.register(H, q, W, Y, e), eo.register(H, q, W, Y, e), to.register(H, q, W, Y), no.register(H, q, W, Y, e), fr.register(H, q, W, Y), Fr.register(H, q, W, Y), oo.register(H, q, W, Y, e), mr.register(H, q, W, Y), Cr.register(H, q, W, Y), io.register(H, q, W, Y, e), ao.register(H, q, W, Y, e), ro.register(H, q, W, Y, e), so.register(H, q, W, Y, e), lo.register(H, q, W, Y), co.register(H, q, W, Y, e), gr.register(H, q, W, Y), uo.register(H, q, W, Y, e), fo.register(H, q, W, Y, e), mo.register(H, q, W, Y, e), po.register(H, q, W, Y), vo.register(H, q, W, Y, e), go.register(H, q, W, Y), ho.register(H, q, W, Y, e), yo.register(H, q, W, Y, e), Co.register(H, q, W, Y, e), bo.register(H, q, W, Y, e), wo.register(H, q, W, Y, e), To.register(H, q, W, Y, e), Fo.register(H, q, W, Y), So.register(H, q, W, Y, e), hr.register(H, q, W), Eo.register(H, q, W, Y, e), xo.register(H, q, W, Y, e), Mo.register(H, q, W, Y, e), Do.register(H, q, W, Y), Bo.register(H, q, W, Y, e), ko.register(H, q, W, Y, e), Io.register(H, q, W, Y, e), br.register(H, q, W, Y), Po.register(H, q, W, Y, e), Oo.register(H, q, W, Y, e), Vo.register(H, q, W, Y), No.register(H, q, W, Y, e), Lo.register(H, q, W, Y, e), Ro.register(H, q, W, Y, e), jo.register(H, q, W, Y), Ao.register(H, q, W, Y, e), _o.register(H, q, W, Y), $o.register(H, q, W, Y, e), zo.register(H, q, W, Y, e), pr.register(H, q, W, Y, e), yr.register(H, q, W, Y, e), Uo.register(H, q, W, Y, e), wr.register(H, q, W, Y, e), Ho.register(H, q, W, Y, e), Sr.register(H, q, W, Y, e), Tr.register(H, q, W, Y, e), Er.register(H, q, W, Y), qo.register(H, q, W, Y, e), xr.register(H, q, W, Y), Mr.register(H, q, W, Y), Wo.register(H, q, W, Y), Go.register(H, q, W, Y, e), Yo.register(H, q, W, Y, e), Ko.register(H, q, W, Y, e), Xo.register(H, q, W, Y, e);
|
|
4553
|
+
const t = window[zl];
|
|
4554
4554
|
if (t)
|
|
4555
4555
|
for (const n in t)
|
|
4556
4556
|
t[n].createPropsResolver = Ot, t[n].register(H, q, W);
|
|
4557
4557
|
}
|
|
4558
4558
|
}
|
|
4559
4559
|
function ri() {
|
|
4560
|
-
|
|
4560
|
+
Ul();
|
|
4561
4561
|
function e(r) {
|
|
4562
4562
|
const c = H[r];
|
|
4563
4563
|
if (!c)
|
|
@@ -4667,7 +4667,7 @@ function ri() {
|
|
|
4667
4667
|
}
|
|
4668
4668
|
return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o, getMousedownFunctionName: i, getMouseupFunctionName: a };
|
|
4669
4669
|
}
|
|
4670
|
-
const
|
|
4670
|
+
const Hl = {
|
|
4671
4671
|
/**
|
|
4672
4672
|
* 显示的错误信息
|
|
4673
4673
|
*/
|
|
@@ -4675,9 +4675,9 @@ const Ul = {
|
|
|
4675
4675
|
type: Object,
|
|
4676
4676
|
default: null
|
|
4677
4677
|
}
|
|
4678
|
-
},
|
|
4678
|
+
}, ql = /* @__PURE__ */ Ae({
|
|
4679
4679
|
name: "FValidationMessage",
|
|
4680
|
-
props:
|
|
4680
|
+
props: Hl,
|
|
4681
4681
|
emits: [],
|
|
4682
4682
|
setup(e, t) {
|
|
4683
4683
|
const n = h(e.errors);
|
|
@@ -4705,7 +4705,7 @@ const Ul = {
|
|
|
4705
4705
|
}
|
|
4706
4706
|
}), Ut = /* @__PURE__ */ Ae({
|
|
4707
4707
|
name: "FDynamicFormGroup",
|
|
4708
|
-
props:
|
|
4708
|
+
props: jl,
|
|
4709
4709
|
emits: ["change", "update:modelValue", "clickLabel"],
|
|
4710
4710
|
setup(e, t) {
|
|
4711
4711
|
var U;
|
|
@@ -4751,7 +4751,7 @@ const Ul = {
|
|
|
4751
4751
|
}
|
|
4752
4752
|
const F = X(() => {
|
|
4753
4753
|
const _ = i.value.type || "input-group", I = w(_), $ = B(_, i.value), V = v(_), j = S(i.value.type);
|
|
4754
|
-
return j && ($[j] = g($[j])), V && ($[V] = y($[V])), ($.id == null || $.id === "") && ($.id = n.value), _ === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && ($.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && ($.onEndValueChange = i.value.onEndValueChange)) : _ === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? ($["onUpdate:idValue"] = i.value["onUpdate:idValue"], $.id = n.value) : _ === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? $.onSelectionChange = i.value.onSelectionChange : _ === "property-editor" && ($.onBeforeOpenVariables = i.value.onBeforeOpenVariables), (_ === "lookup" || _ === "combo-list" || _ === "date-picker") && ($.title = a.value), () => p(I,
|
|
4754
|
+
return j && ($[j] = g($[j])), V && ($[V] = y($[V])), ($.id == null || $.id === "") && ($.id = n.value), _ === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && ($.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && ($.onEndValueChange = i.value.onEndValueChange)) : _ === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? ($["onUpdate:idValue"] = i.value["onUpdate:idValue"], $.id = n.value) : _ === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? $.onSelectionChange = i.value.onSelectionChange : _ === "property-editor" && ($.onBeforeOpenVariables = i.value.onBeforeOpenVariables), (_ === "lookup" || _ === "combo-list" || _ === "date-picker") && ($.title = a.value), () => p(I, nt({
|
|
4755
4755
|
ref: m
|
|
4756
4756
|
}, $, {
|
|
4757
4757
|
modelValue: r.value,
|
|
@@ -4759,7 +4759,7 @@ const Ul = {
|
|
|
4759
4759
|
}), t.slots);
|
|
4760
4760
|
});
|
|
4761
4761
|
function D() {
|
|
4762
|
-
return p(
|
|
4762
|
+
return p(ql, {
|
|
4763
4763
|
id: `${n.value}-validation-message`,
|
|
4764
4764
|
errors: b.value
|
|
4765
4765
|
}, null);
|
|
@@ -4782,7 +4782,7 @@ const Ul = {
|
|
|
4782
4782
|
style: M.value
|
|
4783
4783
|
}, [p("div", {
|
|
4784
4784
|
class: L.value
|
|
4785
|
-
}, [t.slots.label ? t.slots.label() : p(
|
|
4785
|
+
}, [t.slots.label ? t.slots.label() : p($l, {
|
|
4786
4786
|
id: `${n.value}-lable`,
|
|
4787
4787
|
showType: T.value,
|
|
4788
4788
|
required: l.value,
|
|
@@ -4792,7 +4792,7 @@ const Ul = {
|
|
|
4792
4792
|
onClickLabel: k
|
|
4793
4793
|
}, null), p("div", {
|
|
4794
4794
|
class: "farris-input-wrap"
|
|
4795
|
-
}, [t.slots.content ? t.slots.content() : F.value(), D()]), !!e.enableTips && p(
|
|
4795
|
+
}, [t.slots.content ? t.slots.content() : F.value(), D()]), !!e.enableTips && p(Dr, null, {
|
|
4796
4796
|
default: () => [p("span", {
|
|
4797
4797
|
class: "farris-label-tips ml-1"
|
|
4798
4798
|
}, [p("i", {
|
|
@@ -4801,7 +4801,7 @@ const Ul = {
|
|
|
4801
4801
|
contentTemplate: e.tipsContent
|
|
4802
4802
|
})])])]);
|
|
4803
4803
|
}
|
|
4804
|
-
}),
|
|
4804
|
+
}), Wl = {
|
|
4805
4805
|
id: { type: String, default: "" },
|
|
4806
4806
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
4807
4807
|
editor: { type: Object, default: {} },
|
|
@@ -4817,7 +4817,7 @@ const Ul = {
|
|
|
4817
4817
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
4818
4818
|
}, Dn = /* @__PURE__ */ Ae({
|
|
4819
4819
|
name: "FDynamicFormInput",
|
|
4820
|
-
props:
|
|
4820
|
+
props: Wl,
|
|
4821
4821
|
emits: ["change", "update:modelValue", "mousedown", "mouseup"],
|
|
4822
4822
|
setup(e, t) {
|
|
4823
4823
|
const n = h(e.id), o = h(e.editor), i = h(e.modelValue), {
|
|
@@ -4862,7 +4862,7 @@ const Ul = {
|
|
|
4862
4862
|
const C = l(o.value.type);
|
|
4863
4863
|
S[C] = b;
|
|
4864
4864
|
const g = u(o.value.type);
|
|
4865
|
-
return S[g] = s, S.id = n.value, () => p(v,
|
|
4865
|
+
return S[g] = s, S.id = n.value, () => p(v, nt(S, {
|
|
4866
4866
|
modelValue: i.value,
|
|
4867
4867
|
"onUpdate:modelValue": (y) => i.value = y
|
|
4868
4868
|
}), null);
|
|
@@ -4875,12 +4875,12 @@ const Ul = {
|
|
|
4875
4875
|
_t.install = (e) => {
|
|
4876
4876
|
e.component(Mn.name, Mn).component(Dn.name, Dn).component(_t.name, _t).component(Ut.name, Ut);
|
|
4877
4877
|
};
|
|
4878
|
-
const
|
|
4878
|
+
const Gl = /* @__PURE__ */ Ae({
|
|
4879
4879
|
name: "FEntityBindingSelector",
|
|
4880
|
-
props:
|
|
4880
|
+
props: zr,
|
|
4881
4881
|
emits: ["submit", "cancel"],
|
|
4882
4882
|
setup(e, t) {
|
|
4883
|
-
const n =
|
|
4883
|
+
const n = Qr(e), {
|
|
4884
4884
|
entityColumns: o,
|
|
4885
4885
|
entityTreeGridRef: i,
|
|
4886
4886
|
entityDataSource: a,
|
|
@@ -4934,7 +4934,7 @@ const Wl = /* @__PURE__ */ Ae({
|
|
|
4934
4934
|
}
|
|
4935
4935
|
Pn(() => {
|
|
4936
4936
|
e.steps && (y.value = y.value.filter((N) => e.steps.includes(N.id))), D.value = y.value[0].id, c(), U();
|
|
4937
|
-
}),
|
|
4937
|
+
}), ot(() => {
|
|
4938
4938
|
var N, ie;
|
|
4939
4939
|
i && ((N = u.value) != null && N.id) && i.value.selectRowById((ie = u.value) == null ? void 0 : ie.id), y.value.length === 1 && y.value[0].id === "selectFields" && _();
|
|
4940
4940
|
});
|
|
@@ -5140,7 +5140,7 @@ function Bn(e) {
|
|
|
5140
5140
|
parentComponentInstance: y
|
|
5141
5141
|
} = n;
|
|
5142
5142
|
let F = [];
|
|
5143
|
-
return C && (C === "list-view" || C === "calendar" || C === "uploader" ? F = ["selectEntity"] : F = ["selectEntity", "selectFields"]), g && (F = ["selectComponentType", "selectFields"]), () => p(mt, null, [p(
|
|
5143
|
+
return C && (C === "list-view" || C === "calendar" || C === "uploader" ? F = ["selectEntity"] : F = ["selectEntity", "selectFields"]), g && (F = ["selectComponentType", "selectFields"]), () => p(mt, null, [p(Gl, {
|
|
5144
5144
|
componentType: C,
|
|
5145
5145
|
bindingEntityId: g,
|
|
5146
5146
|
steps: F,
|
|
@@ -5233,7 +5233,7 @@ function Bn(e) {
|
|
|
5233
5233
|
}, F = {
|
|
5234
5234
|
enable: !1
|
|
5235
5235
|
};
|
|
5236
|
-
return () => p(mt, null, [p(
|
|
5236
|
+
return () => p(mt, null, [p(vr, {
|
|
5237
5237
|
editorParams: y,
|
|
5238
5238
|
showCustomFooter: !0,
|
|
5239
5239
|
bindingType: F,
|
|
@@ -5297,7 +5297,7 @@ function Bn(e) {
|
|
|
5297
5297
|
return;
|
|
5298
5298
|
}
|
|
5299
5299
|
if (d().has(C)) {
|
|
5300
|
-
const F = new
|
|
5300
|
+
const F = new Br();
|
|
5301
5301
|
F.globalConfig = {
|
|
5302
5302
|
position: "top-center"
|
|
5303
5303
|
}, F.warning("表单已经包含此字段,请勿重复添加"), n.bindingSourceContext = void 0;
|
|
@@ -5375,7 +5375,7 @@ function Bn(e) {
|
|
|
5375
5375
|
resolveComponentCreationContextByDrop: M
|
|
5376
5376
|
};
|
|
5377
5377
|
}
|
|
5378
|
-
function
|
|
5378
|
+
function Yl(e, t) {
|
|
5379
5379
|
let n;
|
|
5380
5380
|
function o(s, d, T) {
|
|
5381
5381
|
var w, v;
|
|
@@ -5510,7 +5510,7 @@ function Gl(e, t) {
|
|
|
5510
5510
|
}
|
|
5511
5511
|
return { attachComponents: m, initializeDragula: f, getDragulaInstance: b };
|
|
5512
5512
|
}
|
|
5513
|
-
const
|
|
5513
|
+
const Kl = {
|
|
5514
5514
|
id: { type: String, default: "" },
|
|
5515
5515
|
componentId: { type: String, default: "" },
|
|
5516
5516
|
type: { type: String, default: "" },
|
|
@@ -5525,8 +5525,8 @@ const Yl = {
|
|
|
5525
5525
|
*/
|
|
5526
5526
|
modelValue: { type: Object },
|
|
5527
5527
|
ignore: { type: Boolean, default: !1 }
|
|
5528
|
-
}, ee = {}, te = {}, ne = {}, { globalStorageKey:
|
|
5529
|
-
function
|
|
5528
|
+
}, ee = {}, te = {}, ne = {}, { globalStorageKey: Xl } = Vn();
|
|
5529
|
+
function Ql() {
|
|
5530
5530
|
{
|
|
5531
5531
|
const e = {
|
|
5532
5532
|
schemaMap: jn,
|
|
@@ -5535,13 +5535,13 @@ function Xl() {
|
|
|
5535
5535
|
schemaResolverMap: Ln
|
|
5536
5536
|
};
|
|
5537
5537
|
zn.registerDesigner(ee, te, ne, e), $n.registerDesigner(ee, te, ne, e), Un.registerDesigner(ee, te, ne, e), Hn.registerDesigner(ee, te, ne, e), qn.registerDesigner(ee, te, ne, e), Wn.registerDesigner(ee, te, ne, e), Gn.registerDesigner(ee, te, ne, e), sn.registerDesigner(ee, te, ne, e), $t.registerDesigner(ee, te, ne, e), $t.registerDesigner(ee, te, ne, e), Xn.registerDesigner(ee, te, ne, e), Yn.registerDesigner(ee, te, ne, e), Qn.registerDesigner(ee, te, ne, e), Jn.registerDesigner(ee, te, ne, e), eo.registerDesigner(ee, te, ne, e), Zn.registerDesigner(ee, te, ne, e), to.registerDesigner(ee, te, ne), no.registerDesigner(ee, te, ne, e), Wo.registerDesigner(ee, te, ne), oo.registerDesigner(ee, te, ne, e), io.registerDesigner(ee, te, ne, e), ao.registerDesigner(ee, te, ne, e), ro.registerDesigner(ee, te, ne, e), so.registerDesigner(ee, te, ne, e), lo.registerDesigner(ee, te, ne), uo.registerDesigner(ee, te, ne, e), co.registerDesigner(ee, te, ne, e), Go.registerDesigner(ee, te, ne, e), fo.registerDesigner(ee, te, ne, e), mo.registerDesigner(ee, te, ne, e), po.registerDesigner(ee, te, ne), vo.registerDesigner(ee, te, ne, e), go.registerDesigner(ee, te, ne), ho.registerDesigner(ee, te, ne, e), yo.registerDesigner(ee, te, ne, e), Co.registerDesigner(ee, te, ne, e), bo.registerDesigner(ee, te, ne, e), To.registerDesigner(ee, te, ne, e), Fo.registerDesigner(ee, te, ne, e), So.registerDesigner(ee, te, ne, e), wo.registerDesigner(ee, te, ne, e), Eo.registerDesigner(ee, te, ne, e), xo.registerDesigner(ee, te, ne, e), Mo.registerDesigner(ee, te, ne, e), Do.registerDesigner(ee, te, ne), Bo.registerDesigner(ee, te, ne, e), ko.registerDesigner(ee, te, ne, e), Io.registerDesigner(ee, te, ne, e), Po.registerDesigner(ee, te, ne, e), Oo.registerDesigner(ee, te, ne, e), Vo.registerDesigner(ee, te, ne), No.registerDesigner(ee, te, ne, e), Lo.registerDesigner(ee, te, ne, e), Ro.registerDesigner(ee, te, ne, e), Ao.registerDesigner(ee, te, ne, e), jo.registerDesigner(ee, te, ne), Kn.registerDesigner(ee, te), _o.registerDesigner(ee, te, ne), $o.registerDesigner(ee, te, ne, e), zo.registerDesigner(ee, te, ne, e), Uo.registerDesigner(ee, te, ne, e), Ho.registerDesigner(ee, te, ne, e), qo.registerDesigner(ee, te, ne, e), Yo.registerDesigner(ee, te, ne, e), Ko.registerDesigner(ee, te, ne, e), yt.registerDesigner(ee, te, ne, e), Xo.registerDesigner(ee, te, ne, e);
|
|
5538
|
-
const t = window[
|
|
5538
|
+
const t = window[Xl];
|
|
5539
5539
|
if (t)
|
|
5540
5540
|
for (const n in t)
|
|
5541
5541
|
t[n].createPropsResolver = Ot, t[n].registerDesigner(ee, te, ne);
|
|
5542
5542
|
}
|
|
5543
5543
|
}
|
|
5544
|
-
function
|
|
5544
|
+
function Jl(e) {
|
|
5545
5545
|
const t = {
|
|
5546
5546
|
schemaMap: jn,
|
|
5547
5547
|
propertyConfigSchemaMap: An,
|
|
@@ -5552,11 +5552,11 @@ function Ql(e) {
|
|
|
5552
5552
|
n.registerDesigner && n.registerDesigner(ee, te, ne, t);
|
|
5553
5553
|
});
|
|
5554
5554
|
}
|
|
5555
|
-
const
|
|
5555
|
+
const Zl = {
|
|
5556
5556
|
id: { type: String }
|
|
5557
|
-
},
|
|
5557
|
+
}, es = /* @__PURE__ */ Ae({
|
|
5558
5558
|
name: "FDesignerPlaceholder",
|
|
5559
|
-
props:
|
|
5559
|
+
props: Zl,
|
|
5560
5560
|
emits: [],
|
|
5561
5561
|
setup(e) {
|
|
5562
5562
|
const t = X(() => ({
|
|
@@ -5585,12 +5585,12 @@ const Jl = {
|
|
|
5585
5585
|
}, [We("拖拽组件到这里")]);
|
|
5586
5586
|
}
|
|
5587
5587
|
});
|
|
5588
|
-
function
|
|
5588
|
+
function ts(e) {
|
|
5589
5589
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Qi(e);
|
|
5590
5590
|
}
|
|
5591
5591
|
const dn = /* @__PURE__ */ Ae({
|
|
5592
5592
|
name: "FDesignerItem",
|
|
5593
|
-
props:
|
|
5593
|
+
props: Kl,
|
|
5594
5594
|
emits: ["selectionChange", "dragEnd"],
|
|
5595
5595
|
setup(e, t) {
|
|
5596
5596
|
const n = h(`${e.modelValue.id}-component`), o = h(e.canMove), i = h(e.canDelete), a = h(!1), r = h(e.modelValue), c = h(e.componentId || ""), l = h(""), u = h(""), f = h(e.customClass), m = h(), b = xe("canvas-dragula"), s = h(), d = xe("design-item-context");
|
|
@@ -5713,9 +5713,9 @@ const dn = /* @__PURE__ */ Ae({
|
|
|
5713
5713
|
const ie = x.type, ae = ee[ie], J = te[ie], ge = J ? J(x) : {};
|
|
5714
5714
|
ge.customClass = e.ignore ? ge.customClass : "", ge.customStyle = e.ignore ? ge.customStyle : "", ge.componentId = c.value, ge.id = x.id;
|
|
5715
5715
|
const Se = x.contents && x.contents.length === 0;
|
|
5716
|
-
return x.contents && !!x.contents.length && ae ? p(ae,
|
|
5716
|
+
return x.contents && !!x.contents.length && ae ? p(ae, nt({
|
|
5717
5717
|
ref: s
|
|
5718
|
-
}, ge),
|
|
5718
|
+
}, ge), ts(N = x.contents.map((Z) => p(dn, {
|
|
5719
5719
|
key: Z.id,
|
|
5720
5720
|
modelValue: Z,
|
|
5721
5721
|
"onUpdate:modelValue": (E) => Z = E,
|
|
@@ -5724,11 +5724,11 @@ const dn = /* @__PURE__ */ Ae({
|
|
|
5724
5724
|
onDragEnd: U
|
|
5725
5725
|
}, null))) ? N : {
|
|
5726
5726
|
default: () => [N]
|
|
5727
|
-
}) : ae ? Se ? p(ae,
|
|
5727
|
+
}) : ae ? Se ? p(ae, nt({
|
|
5728
5728
|
ref: s
|
|
5729
5729
|
}, ge), {
|
|
5730
|
-
default: () => [p(
|
|
5731
|
-
}) : p(ae,
|
|
5730
|
+
default: () => [p(es, null, null)]
|
|
5731
|
+
}) : p(ae, nt({
|
|
5732
5732
|
ref: s
|
|
5733
5733
|
}, ge), null) : _();
|
|
5734
5734
|
}
|
|
@@ -5773,7 +5773,7 @@ const dn = /* @__PURE__ */ Ae({
|
|
|
5773
5773
|
ie && ie.addEventListener("scroll", P);
|
|
5774
5774
|
}
|
|
5775
5775
|
}
|
|
5776
|
-
|
|
5776
|
+
ot(() => {
|
|
5777
5777
|
if (m.value && s.value && s.value.schema) {
|
|
5778
5778
|
const x = m.value.querySelector(`[data-dragref='${s.value.schema.id}-container']`);
|
|
5779
5779
|
b && x && b.attachComponents(x, r.value), a.value = s.value.canNested !== void 0 ? s.value.canNested : a.value, i.value = s.value.canDelete !== void 0 ? s.value.canDelete : i.value, o.value = s.value.canMove !== void 0 ? s.value.canMove : o.value, l.value = s.value.styles || "", u.value = s.value.designerClass || "", m.value && (m.value.componentInstance = s, m.value.designItemContext = B), s.value.belongedComponentId = c.value, s.value.setComponentBasicInfoMap(v), s.value.externalContainerId = S;
|
|
@@ -5808,7 +5808,7 @@ const dn = /* @__PURE__ */ Ae({
|
|
|
5808
5808
|
}, [D(r.value), I(r.value)]);
|
|
5809
5809
|
};
|
|
5810
5810
|
}
|
|
5811
|
-
}),
|
|
5811
|
+
}), ns = {
|
|
5812
5812
|
/**
|
|
5813
5813
|
* 允许点击蒙层关闭对话框
|
|
5814
5814
|
* @default false
|
|
@@ -6026,7 +6026,7 @@ class ut {
|
|
|
6026
6026
|
return this.width = t.width, this.height = t.height, this;
|
|
6027
6027
|
}
|
|
6028
6028
|
}
|
|
6029
|
-
function
|
|
6029
|
+
function os(e, t) {
|
|
6030
6030
|
const n = h(), o = h(), i = h(), a = h(), r = h(), c = h(), l = h(), u = h(), f = h(), m = h(), b = h(), s = h(e.resizeable), d = h(), T = h(e.draggable), B = h(!1);
|
|
6031
6031
|
function w() {
|
|
6032
6032
|
const P = o.value || document.body, z = window.getComputedStyle(P);
|
|
@@ -6213,7 +6213,7 @@ function ns(e, t) {
|
|
|
6213
6213
|
moveToCenter: $
|
|
6214
6214
|
};
|
|
6215
6215
|
}
|
|
6216
|
-
function
|
|
6216
|
+
function is(e, t, n) {
|
|
6217
6217
|
const o = h(), i = h(e.draggable), a = h(e.lockAxis), r = h(), c = h(), l = h(!1), u = h(new Ne(0, 0)), f = h(new Ne(0, 0)), m = h(new Ne(0, 0)), b = h(new Ne(0, 0));
|
|
6218
6218
|
Me(() => n.value, (g) => {
|
|
6219
6219
|
r.value.style.cursor = g ? "move" : "default";
|
|
@@ -6309,7 +6309,7 @@ function li(e, t) {
|
|
|
6309
6309
|
};
|
|
6310
6310
|
}
|
|
6311
6311
|
}
|
|
6312
|
-
function
|
|
6312
|
+
function as(e, t) {
|
|
6313
6313
|
const n = h(e.enableEsc);
|
|
6314
6314
|
let o = null;
|
|
6315
6315
|
return n.value ? (o = li("Escape", (i) => {
|
|
@@ -6318,7 +6318,7 @@ function is(e, t) {
|
|
|
6318
6318
|
remove: o
|
|
6319
6319
|
}) : null;
|
|
6320
6320
|
}
|
|
6321
|
-
function
|
|
6321
|
+
function rs(e, t) {
|
|
6322
6322
|
const n = h(e.enableEnter);
|
|
6323
6323
|
let o = null;
|
|
6324
6324
|
return n.value ? (o = li("Enter", (i) => {
|
|
@@ -6329,7 +6329,7 @@ function as(e, t) {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
const Pt = /* @__PURE__ */ Ae({
|
|
6331
6331
|
name: "FModal",
|
|
6332
|
-
props:
|
|
6332
|
+
props: ns,
|
|
6333
6333
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove", "buttonClick"],
|
|
6334
6334
|
setup(e, t) {
|
|
6335
6335
|
const n = h(e.width || 300), o = h(e.height || 200), i = h(e.modelValue), a = h(""), r = h(e.class), c = h(e.fitContent), l = h(e.showHeader), u = h(""), f = h(e.showCloseButton), m = h(e.showMaxButton), b = h(!1), s = h(e.dialogType), d = h(e.src), T = h(""), B = h(e.showButtons), w = h(e.title), v = h(e.containment || null), S = h();
|
|
@@ -6373,9 +6373,9 @@ const Pt = /* @__PURE__ */ Ae({
|
|
|
6373
6373
|
allowDrag: z,
|
|
6374
6374
|
unWindowResizeHandle: oe,
|
|
6375
6375
|
moveToCenter: x
|
|
6376
|
-
} =
|
|
6376
|
+
} = os(e), {
|
|
6377
6377
|
registerDraggle: N
|
|
6378
|
-
} =
|
|
6378
|
+
} = is(e, t, z);
|
|
6379
6379
|
function ie() {
|
|
6380
6380
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
6381
6381
|
}
|
|
@@ -6491,8 +6491,8 @@ const Pt = /* @__PURE__ */ Ae({
|
|
|
6491
6491
|
let Ve = null, Pe = null;
|
|
6492
6492
|
Pn(() => {
|
|
6493
6493
|
L.value = ie();
|
|
6494
|
-
}),
|
|
6495
|
-
U.value && !v.value && (v.value = U.value.parentElement, j.value = v.value, N(k.value, U.value, j.value)), ae.value && document.body.classList.add("modal-open"), Ve =
|
|
6494
|
+
}), ot(() => {
|
|
6495
|
+
U.value && !v.value && (v.value = U.value.parentElement, j.value = v.value, N(k.value, U.value, j.value)), ae.value && document.body.classList.add("modal-open"), Ve = as(e, t), Pe = rs(e, t);
|
|
6496
6496
|
}), bt(() => {
|
|
6497
6497
|
oe && oe(), Ve && Ve.remove(), Pe && Pe.remove();
|
|
6498
6498
|
}), t.expose({
|
|
@@ -6550,8 +6550,8 @@ const Pt = /* @__PURE__ */ Ae({
|
|
|
6550
6550
|
onWheel: pt
|
|
6551
6551
|
}, [y.value.map((A) => {
|
|
6552
6552
|
var Ee;
|
|
6553
|
-
const ue = h(A.disabled), Fe = A.class || ((Ee = A.appearance) == null ? void 0 : Ee.class);
|
|
6554
|
-
return p("button", {
|
|
6553
|
+
const ue = h(A.disabled), Fe = A.class || ((Ee = A.appearance) == null ? void 0 : Ee.class) || "btn btn-secondary";
|
|
6554
|
+
return p("button", nt(sa(A), {
|
|
6555
6555
|
name: A.name,
|
|
6556
6556
|
style: A.styles,
|
|
6557
6557
|
type: "button",
|
|
@@ -6560,7 +6560,7 @@ const Pt = /* @__PURE__ */ Ae({
|
|
|
6560
6560
|
onClick: (He) => {
|
|
6561
6561
|
Te(A, He);
|
|
6562
6562
|
}
|
|
6563
|
-
}, [!!A.iconClass && p("i", {
|
|
6563
|
+
}), [!!A.iconClass && p("i", {
|
|
6564
6564
|
class: A.iconClass
|
|
6565
6565
|
}, null), A.text]);
|
|
6566
6566
|
})])]);
|
|
@@ -6592,7 +6592,7 @@ const Pt = /* @__PURE__ */ Ae({
|
|
|
6592
6592
|
function gt() {
|
|
6593
6593
|
return t.slots.footerTemplate ? t.slots.footerTemplate() : D.value && vt();
|
|
6594
6594
|
}
|
|
6595
|
-
function
|
|
6595
|
+
function it(A) {
|
|
6596
6596
|
if (A.stopPropagation(), e.allowClickMaskToClose) {
|
|
6597
6597
|
if (A.target !== S.value)
|
|
6598
6598
|
return;
|
|
@@ -6634,7 +6634,7 @@ const Pt = /* @__PURE__ */ Ae({
|
|
|
6634
6634
|
ref: S,
|
|
6635
6635
|
class: J.value,
|
|
6636
6636
|
style: E.value,
|
|
6637
|
-
onClick:
|
|
6637
|
+
onClick: it
|
|
6638
6638
|
}, [st()])]
|
|
6639
6639
|
})]
|
|
6640
6640
|
});
|
|
@@ -6646,7 +6646,7 @@ function si(e) {
|
|
|
6646
6646
|
if (e.render && typeof e.render == "function")
|
|
6647
6647
|
return e.render;
|
|
6648
6648
|
}
|
|
6649
|
-
function
|
|
6649
|
+
function ls(e) {
|
|
6650
6650
|
const t = document.createElement("div");
|
|
6651
6651
|
t.style.display = "contents";
|
|
6652
6652
|
const n = e.type || "modal", o = kn({
|
|
@@ -6716,7 +6716,7 @@ function rs(e) {
|
|
|
6716
6716
|
});
|
|
6717
6717
|
return document.body.appendChild(t), o.use(ze.i18n), o.mount(t), o;
|
|
6718
6718
|
}
|
|
6719
|
-
class
|
|
6719
|
+
class ss {
|
|
6720
6720
|
// private activeModalInstance = computed(() => {
|
|
6721
6721
|
// return this.modalRefs[this.activeModalIndex.value];
|
|
6722
6722
|
// });
|
|
@@ -6750,7 +6750,7 @@ class ls {
|
|
|
6750
6750
|
showButtons: !0,
|
|
6751
6751
|
showHeader: !0
|
|
6752
6752
|
}, t);
|
|
6753
|
-
return
|
|
6753
|
+
return ls(n);
|
|
6754
6754
|
}
|
|
6755
6755
|
close(t) {
|
|
6756
6756
|
var n, o;
|
|
@@ -6784,7 +6784,7 @@ class ls {
|
|
|
6784
6784
|
}, b = h();
|
|
6785
6785
|
let s;
|
|
6786
6786
|
if (o === "drawer")
|
|
6787
|
-
s = () => p(Qo,
|
|
6787
|
+
s = () => p(Qo, nt({
|
|
6788
6788
|
ref: b,
|
|
6789
6789
|
modelValue: a.value,
|
|
6790
6790
|
"onUpdate:modelValue": (w) => a.value = w,
|
|
@@ -6806,7 +6806,7 @@ class ls {
|
|
|
6806
6806
|
width: C,
|
|
6807
6807
|
height: g
|
|
6808
6808
|
} = i.value, y = this.adaptToWindow(Number(C) || 500, Number(g) || 320);
|
|
6809
|
-
Object.assign(i.value, y), s = () => p(Pt,
|
|
6809
|
+
Object.assign(i.value, y), s = () => p(Pt, nt({
|
|
6810
6810
|
ref: b,
|
|
6811
6811
|
modelValue: a.value,
|
|
6812
6812
|
"onUpdate:modelValue": (F) => a.value = F
|
|
@@ -6859,16 +6859,16 @@ class ls {
|
|
|
6859
6859
|
const ci = Symbol("FModalService");
|
|
6860
6860
|
Pt.install = (e) => {
|
|
6861
6861
|
e.component(Pt.name, Pt);
|
|
6862
|
-
const t = new
|
|
6862
|
+
const t = new ss(e);
|
|
6863
6863
|
e.provide(ci, t), e.provide("FModalService", t);
|
|
6864
6864
|
};
|
|
6865
6865
|
const ui = h(0);
|
|
6866
|
-
function
|
|
6866
|
+
function cs() {
|
|
6867
6867
|
ui.value++;
|
|
6868
6868
|
}
|
|
6869
|
-
const
|
|
6869
|
+
const lu = /* @__PURE__ */ Ae({
|
|
6870
6870
|
name: "FDesignerCanvas",
|
|
6871
|
-
props:
|
|
6871
|
+
props: Pr,
|
|
6872
6872
|
emits: ["init", "selectionChange", "canvasChanged", "dragEnd"],
|
|
6873
6873
|
setup(e, t) {
|
|
6874
6874
|
const n = h(), o = h(), i = h(), a = h(), r = h(), c = h(), l = h(e.componentId), u = h(e.canvasMode);
|
|
@@ -6890,8 +6890,8 @@ const ru = /* @__PURE__ */ Ae({
|
|
|
6890
6890
|
dialogCodeView: xe("dialogCodeView")
|
|
6891
6891
|
};
|
|
6892
6892
|
kt("designer-host-service", s);
|
|
6893
|
-
const d =
|
|
6894
|
-
e.components &&
|
|
6893
|
+
const d = Yl(s, b);
|
|
6894
|
+
e.components && Jl(e.components), Ql(), kt("canvas-dragula", d), kt("design-item-context", {
|
|
6895
6895
|
designerItemElementRef: r,
|
|
6896
6896
|
componentInstance: c,
|
|
6897
6897
|
schema: o.value,
|
|
@@ -6933,13 +6933,13 @@ const ru = /* @__PURE__ */ Ae({
|
|
|
6933
6933
|
It(a.value);
|
|
6934
6934
|
});
|
|
6935
6935
|
}
|
|
6936
|
-
return
|
|
6936
|
+
return ot(() => {
|
|
6937
6937
|
i.value && d.initializeDragula(i.value), n.value = e.modelValue, t.emit("init", d), w(), L();
|
|
6938
6938
|
}), bt(() => {
|
|
6939
6939
|
f && (f.unobserve(i.value), f.disconnect(), f = null);
|
|
6940
6940
|
}), t.expose({
|
|
6941
|
-
refreshCanvas:
|
|
6942
|
-
changeCanvas:
|
|
6941
|
+
refreshCanvas: cs,
|
|
6942
|
+
changeCanvas: kr,
|
|
6943
6943
|
designerCanvasElementRef: i,
|
|
6944
6944
|
designerCanvasContainerElementRef: a,
|
|
6945
6945
|
designerHostService: s
|
|
@@ -6960,7 +6960,7 @@ const ru = /* @__PURE__ */ Ae({
|
|
|
6960
6960
|
onDragEnd: S
|
|
6961
6961
|
}, null)])])]);
|
|
6962
6962
|
}
|
|
6963
|
-
}),
|
|
6963
|
+
}), us = {
|
|
6964
6964
|
id: { type: String, default: "" },
|
|
6965
6965
|
componentId: { type: String, default: "" },
|
|
6966
6966
|
canAdd: { type: Boolean, default: !1 },
|
|
@@ -6974,7 +6974,7 @@ const ru = /* @__PURE__ */ Ae({
|
|
|
6974
6974
|
*/
|
|
6975
6975
|
modelValue: { type: Object }
|
|
6976
6976
|
};
|
|
6977
|
-
function
|
|
6977
|
+
function ds(e, t, n) {
|
|
6978
6978
|
var y;
|
|
6979
6979
|
const o = n && n.getStyles && n.getStyles() || "", i = h();
|
|
6980
6980
|
let a;
|
|
@@ -7090,9 +7090,9 @@ function us(e, t, n) {
|
|
|
7090
7090
|
setComponentBasicInfoMap: M
|
|
7091
7091
|
}, i;
|
|
7092
7092
|
}
|
|
7093
|
-
const
|
|
7093
|
+
const su = /* @__PURE__ */ Ae({
|
|
7094
7094
|
name: "FDesignerInnerItem",
|
|
7095
|
-
props:
|
|
7095
|
+
props: us,
|
|
7096
7096
|
emits: ["selectionChange", "addComponent", "removeComponent", "clickButton"],
|
|
7097
7097
|
setup(e, t) {
|
|
7098
7098
|
const n = h(e.canMove), o = h(e.canAdd), i = h(e.canDelete), a = h(!1), r = h(e.contentKey), c = h(e.childType), l = h(e.childLabel), u = h(e.modelValue), f = h(""), m = h(), b = xe("canvas-dragula"), s = h(), d = xe("design-item-context"), T = {
|
|
@@ -7216,9 +7216,9 @@ const lu = /* @__PURE__ */ Ae({
|
|
|
7216
7216
|
}
|
|
7217
7217
|
function I() {
|
|
7218
7218
|
const V = m.value, j = h(V.children[1]);
|
|
7219
|
-
return
|
|
7219
|
+
return ds(j, T).value;
|
|
7220
7220
|
}
|
|
7221
|
-
|
|
7221
|
+
ot(() => {
|
|
7222
7222
|
if (m.value) {
|
|
7223
7223
|
const V = m.value.querySelector(`[data-dragref='${u.value.id}-container']`);
|
|
7224
7224
|
s.value = V && V.componentInstance ? V.componentInstance.value : I(), b && V && b.attachComponents(V, u.value), a.value = s.value.canNested !== void 0 ? s.value.canNested : a.value, o.value = s.value.canAdd !== void 0 ? s.value.canAdd : o.value, i.value = s.value.canDelete !== void 0 ? s.value.canDelete : i.value, n.value = s.value.canMove !== void 0 ? s.value.canMove : n.value, f.value = s.value.styles || "", m.value && (m.value.componentInstance = s, m.value.designItemContext = T), s.value.setComponentBasicInfoMap(B);
|
|
@@ -7250,7 +7250,7 @@ const lu = /* @__PURE__ */ Ae({
|
|
|
7250
7250
|
}, [D(u.value), t.slots.default && t.slots.default()]);
|
|
7251
7251
|
}
|
|
7252
7252
|
});
|
|
7253
|
-
function
|
|
7253
|
+
function cu(e, t, n) {
|
|
7254
7254
|
var _;
|
|
7255
7255
|
const o = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", a = h();
|
|
7256
7256
|
let r;
|
|
@@ -7416,7 +7416,7 @@ function su(e, t, n) {
|
|
|
7416
7416
|
shouldApplyClassToComponent: U
|
|
7417
7417
|
}, a;
|
|
7418
7418
|
}
|
|
7419
|
-
class
|
|
7419
|
+
class uu {
|
|
7420
7420
|
getTemplateRule(t, n) {
|
|
7421
7421
|
const o = n == null ? void 0 : n.formSchemaUtils, i = o == null ? void 0 : o.getFormTemplateRule(), a = { canAccept: !0, canDelete: !0, canMove: !0 };
|
|
7422
7422
|
if (!i)
|
|
@@ -7522,7 +7522,7 @@ class cu {
|
|
|
7522
7522
|
};
|
|
7523
7523
|
}
|
|
7524
7524
|
}
|
|
7525
|
-
function
|
|
7525
|
+
function du() {
|
|
7526
7526
|
function e(t, n) {
|
|
7527
7527
|
var r;
|
|
7528
7528
|
if (!t)
|
|
@@ -7539,19 +7539,19 @@ function uu() {
|
|
|
7539
7539
|
}
|
|
7540
7540
|
export {
|
|
7541
7541
|
Be as DgControl,
|
|
7542
|
-
|
|
7543
|
-
|
|
7542
|
+
lu as FDesignerCanvas,
|
|
7543
|
+
su as FDesignerInnerItem,
|
|
7544
7544
|
dn as FDesignerItem,
|
|
7545
|
-
|
|
7545
|
+
uu as UseTemplateDragAndDropRules,
|
|
7546
7546
|
rt as canvasChanged,
|
|
7547
7547
|
ee as componentMap,
|
|
7548
7548
|
te as componentPropsConverter,
|
|
7549
|
-
|
|
7550
|
-
|
|
7549
|
+
Pr as designerCanvasProps,
|
|
7550
|
+
cs as refreshCanvas,
|
|
7551
7551
|
Jo as setPositionForSelectedElement,
|
|
7552
7552
|
fn as setPositionOfButtonGroup,
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7553
|
+
ru as setPositionOfSelectedComponentBtnGroup,
|
|
7554
|
+
cu as useDesignerComponent,
|
|
7555
|
+
ds as useDesignerInnerComponent,
|
|
7556
|
+
du as useDragulaCommonRule
|
|
7557
7557
|
};
|