@farris/ui-vue 1.2.5 → 1.2.7
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 +147 -139
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/index.esm.js +122 -131
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.css +1 -0
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +216 -223
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +201 -181
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +340 -107
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +36 -29
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +341 -338
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +9 -13
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
- package/components/data-grid/index.esm.js +3415 -3295
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2719 -2717
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +31 -40
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +23 -20
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/index.esm.js +86 -86
- package/components/dropdown/index.umd.cjs +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +578 -584
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/index.esm.js +56 -47
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +287 -278
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.css +1 -0
- package/components/external-container/index.esm.js +1923 -1908
- package/components/external-container/index.umd.cjs +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.css +1 -0
- package/components/field-selector/index.esm.js +3719 -3604
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/{style.css → index.css} +1 -1
- package/components/filter-bar/index.esm.js +483 -470
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.esm.js +37 -34
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/index.esm.js +258 -267
- package/components/input-group/index.umd.cjs +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +1452 -1450
- package/components/list-view/index.umd.cjs +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/index.css +1 -0
- package/components/lookup/index.esm.js +4860 -4657
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.css +1 -0
- package/components/mapping-editor/index.esm.js +4411 -4259
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/message-box/index.css +1 -0
- package/components/message-box/index.esm.js +397 -386
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.css +1 -0
- package/components/modal/index.esm.js +308 -297
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +763 -741
- package/components/order/index.umd.cjs +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/index.esm.js +948 -945
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +485 -466
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +437 -426
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/index.esm.js +98 -107
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/{style.css → index.css} +1 -1
- package/components/response-layout-editor/index.esm.js +840 -800
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/index.esm.js +757 -760
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.css +1 -0
- package/components/schema-selector/index.esm.js +3659 -3432
- package/components/schema-selector/index.umd.cjs +8 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +21 -14
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/index.esm.js +126 -135
- package/components/switch/index.umd.cjs +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.esm.js +1400 -1379
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +97 -106
- package/components/textarea/index.umd.cjs +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +393 -402
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/index.esm.js +124 -122
- package/components/transfer/index.umd.cjs +1 -1
- package/components/transfer/package.json +1 -1
- package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
- package/components/tree-grid/index.esm.js +3531 -3412
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +2046 -2044
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/farris.all.esm.js +12370 -11917
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
- package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
- package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
- package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
- package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -5
- package/types/data-grid/src/data-grid.component.d.ts +2 -2
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
- package/types/designer-canvas/src/composition/types.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
- package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +7 -3
- package/types/lookup/src/property-config/lookup.property-config.d.ts +31 -27
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/page-header/src/page-header.props.d.ts +7 -0
- package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +2 -16
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
- package/types/response-toolbar/index.d.ts +9 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
- package/types/schema-selector/src/composition/types.d.ts +3 -1
- package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
- package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
- package/types/tabs/src/tabs.props.d.ts +8 -0
- package/components/button-edit/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/lookup/style.css +0 -1
- package/components/mapping-editor/style.css +0 -1
- package/components/message-box/style.css +0 -1
- package/components/modal/style.css +0 -1
- package/components/schema-selector/style.css +0 -1
- package/components/tabs/style.css +0 -1
- package/components/time-picker/style.css +0 -1
- package/style.css +0 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
- /package/components/border-editor/{style.css → index.css} +0 -0
- /package/components/checkbox/{style.css → index.css} +0 -0
- /package/components/date-picker/{style.css → index.css} +0 -0
- /package/components/designer-canvas/{style.css → index.css} +0 -0
- /package/components/designer-outline/{style.css → index.css} +0 -0
- /package/components/designer-toolbox/{style.css → index.css} +0 -0
- /package/components/discussion-editor/{style.css → index.css} +0 -0
- /package/components/discussion-list/{style.css → index.css} +0 -0
- /package/components/drawer/{style.css → index.css} +0 -0
- /package/components/events-editor/{style.css → index.css} +0 -0
- /package/components/flow-canvas/{style.css → index.css} +0 -0
- /package/components/list-view/{style.css → index.css} +0 -0
- /package/components/order/{style.css → index.css} +0 -0
- /package/components/property-editor/{style.css → index.css} +0 -0
- /package/components/property-panel/{style.css → index.css} +0 -0
- /package/components/radio-button/{style.css → index.css} +0 -0
- /package/components/radio-group/{style.css → index.css} +0 -0
- /package/components/smoke-detector/{style.css → index.css} +0 -0
- /package/components/spacing-editor/{style.css → index.css} +0 -0
- /package/components/splitter/{style.css → index.css} +0 -0
- /package/components/switch/{style.css → index.css} +0 -0
- /package/components/transfer/{style.css → index.css} +0 -0
- /package/components/uploader/{style.css → index.css} +0 -0
- /package/components/weather/{style.css → index.css} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var Kt = Object.defineProperty;
|
|
2
2
|
var Jt = (e, n, t) => n in e ? Kt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
-
var
|
|
4
|
-
import { ref as y, defineComponent as q, watch as N, computed as V, createVNode as S, inject as Z, onMounted as G, nextTick as Ie, reactive as en, withDirectives as ve, resolveDirective as tn, Fragment as
|
|
3
|
+
var j = (e, n, t) => Jt(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { ref as y, defineComponent as q, watch as N, computed as V, createVNode as S, inject as Z, onMounted as G, nextTick as Ie, reactive as en, withDirectives as ve, resolveDirective as tn, Fragment as ye, vModelText as Oe } from "vue";
|
|
5
5
|
import { cloneDeep as F } from "lodash-es";
|
|
6
6
|
import nn from "@farris/ui-vue/components/list-view";
|
|
7
7
|
import _e from "@farris/ui-vue/components/button-edit";
|
|
8
8
|
import { useDesignerComponent as on } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-component";
|
|
9
|
-
import
|
|
9
|
+
import L from "bignumber.js";
|
|
10
10
|
import { useNumber as rn, useFormat as an, useSpinner as ln, useTextBox as un } from "@farris/ui-vue/components/number-spinner";
|
|
11
11
|
const He = {}, Ge = {};
|
|
12
12
|
function ge(e) {
|
|
13
13
|
const { properties: n, title: t } = e, o = Object.keys(n).reduce((r, a) => (r[a] = n[a].type === "object" && n[a].properties ? ge(n[a]) : F(n[a].default), r), {});
|
|
14
14
|
return o.id = `${t}-${Date.now()}`, o;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function me(e, n = {}) {
|
|
17
17
|
const t = He[e];
|
|
18
18
|
if (t) {
|
|
19
19
|
let o = ge(t);
|
|
20
20
|
const r = Ge[e];
|
|
21
|
-
return o = r ? r({ getSchemaByType:
|
|
21
|
+
return o = r ? r({ getSchemaByType: me }, o, n) : o, o;
|
|
22
22
|
}
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
@@ -46,65 +46,65 @@ function dn(e, n, t = /* @__PURE__ */ new Map()) {
|
|
|
46
46
|
return cn(o, t);
|
|
47
47
|
}
|
|
48
48
|
function pn(e = {}) {
|
|
49
|
-
function n(i,
|
|
50
|
-
if (typeof
|
|
51
|
-
return f[i].length ===
|
|
52
|
-
if (typeof
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
49
|
+
function n(i, d, c, f) {
|
|
50
|
+
if (typeof c == "number")
|
|
51
|
+
return f[i].length === c;
|
|
52
|
+
if (typeof c == "object") {
|
|
53
|
+
const s = Object.keys(c)[0], v = c[s];
|
|
54
|
+
if (s === "not")
|
|
55
55
|
return Number(f[i].length) !== Number(v);
|
|
56
|
-
if (
|
|
56
|
+
if (s === "moreThan")
|
|
57
57
|
return Number(f[i].length) >= Number(v);
|
|
58
|
-
if (
|
|
58
|
+
if (s === "lessThan")
|
|
59
59
|
return Number(f[i].length) <= Number(v);
|
|
60
60
|
}
|
|
61
61
|
return !1;
|
|
62
62
|
}
|
|
63
|
-
function t(i,
|
|
64
|
-
return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(
|
|
63
|
+
function t(i, d, c, f) {
|
|
64
|
+
return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(c);
|
|
65
65
|
}
|
|
66
66
|
const o = /* @__PURE__ */ new Map([
|
|
67
67
|
["length", n],
|
|
68
68
|
["getProperty", t]
|
|
69
69
|
]);
|
|
70
|
-
Object.keys(e).reduce((i,
|
|
71
|
-
function r(i,
|
|
72
|
-
const
|
|
73
|
-
return typeof
|
|
70
|
+
Object.keys(e).reduce((i, d) => (i.set(d, e[d]), i), o);
|
|
71
|
+
function r(i, d) {
|
|
72
|
+
const c = i;
|
|
73
|
+
return typeof d == "number" ? [{ target: c, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: c, operator: "getProperty", param: i, value: !!d }] : typeof d == "object" ? Object.keys(d).map((f) => {
|
|
74
74
|
if (f === "length")
|
|
75
|
-
return { target:
|
|
76
|
-
const
|
|
77
|
-
return { target:
|
|
75
|
+
return { target: c, operator: "length", param: null, value: d[f] };
|
|
76
|
+
const s = f, v = d[f];
|
|
77
|
+
return { target: c, operator: "getProperty", param: s, value: v };
|
|
78
78
|
}) : [];
|
|
79
79
|
}
|
|
80
80
|
function a(i) {
|
|
81
|
-
return Object.keys(i).reduce((
|
|
82
|
-
const
|
|
83
|
-
return
|
|
81
|
+
return Object.keys(i).reduce((c, f) => {
|
|
82
|
+
const s = r(f, i[f]);
|
|
83
|
+
return c.push(...s), c;
|
|
84
84
|
}, []);
|
|
85
85
|
}
|
|
86
|
-
function l(i,
|
|
86
|
+
function l(i, d) {
|
|
87
87
|
if (o.has(i.operator)) {
|
|
88
|
-
const
|
|
89
|
-
return
|
|
88
|
+
const c = o.get(i.operator);
|
|
89
|
+
return c && c(i.target, i.param, i.value, d) || !1;
|
|
90
90
|
}
|
|
91
91
|
return !1;
|
|
92
92
|
}
|
|
93
|
-
function u(i,
|
|
94
|
-
return a(i).reduce((
|
|
93
|
+
function u(i, d) {
|
|
94
|
+
return a(i).reduce((s, v) => s && l(v, d), !0);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
const
|
|
96
|
+
function p(i, d) {
|
|
97
|
+
const c = Object.keys(i), f = c.includes("allOf"), s = c.includes("anyOf"), v = f || s, x = (v ? i[v ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((E) => u(E, d));
|
|
98
98
|
return f ? !x.includes(!1) : x.includes(!0);
|
|
99
99
|
}
|
|
100
|
-
return { parseValueSchema:
|
|
100
|
+
return { parseValueSchema: p };
|
|
101
101
|
}
|
|
102
102
|
const g = {
|
|
103
103
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
104
104
|
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
106
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
|
|
107
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
108
108
|
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
109
109
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
110
110
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
@@ -131,15 +131,15 @@ const g = {
|
|
|
131
131
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
132
132
|
Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
|
|
133
133
|
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
134
|
-
|
|
134
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
135
135
|
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
136
136
|
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
137
137
|
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
138
138
|
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
139
139
|
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
140
140
|
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
142
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
143
143
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
144
144
|
Tag: { type: "Tag", name: "Tag", icon: "Tag" },
|
|
145
145
|
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
@@ -148,7 +148,7 @@ const g = {
|
|
|
148
148
|
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
149
149
|
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
150
150
|
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
151
|
-
|
|
151
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
152
152
|
SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
|
|
153
153
|
SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
|
|
154
154
|
QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
|
|
@@ -178,7 +178,7 @@ const g = {
|
|
|
178
178
|
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
179
179
|
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
180
180
|
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
181
|
-
|
|
181
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
182
182
|
ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
|
|
183
183
|
ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
|
|
184
184
|
PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
@@ -212,19 +212,19 @@ const g = {
|
|
|
212
212
|
/** 审批类 end */
|
|
213
213
|
}, fn = {}, vn = {};
|
|
214
214
|
pn();
|
|
215
|
-
function ue(e, n, t = /* @__PURE__ */ new Map(), o = (l, u,
|
|
215
|
+
function ue(e, n, t = /* @__PURE__ */ new Map(), o = (l, u, p) => u, r = {}, a = (l) => l) {
|
|
216
216
|
return He[n.title] = n, Ge[n.title] = o, fn[n.title] = r, vn[n.title] = a, (l = {}) => {
|
|
217
|
-
const u = dn(l, n, t),
|
|
218
|
-
return Object.assign(
|
|
217
|
+
const u = dn(l, n, t), p = Object.keys(e).reduce((i, d) => (i[d] = e[d].default, i), {});
|
|
218
|
+
return Object.assign(p, u);
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
function se(e, n) {
|
|
222
222
|
return { customClass: n.class, customStyle: n.style };
|
|
223
223
|
}
|
|
224
|
-
const
|
|
224
|
+
const yn = /* @__PURE__ */ new Map([
|
|
225
225
|
["appearance", se]
|
|
226
226
|
]);
|
|
227
|
-
function
|
|
227
|
+
function mn(e, n, t) {
|
|
228
228
|
return n;
|
|
229
229
|
}
|
|
230
230
|
const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-design.gitee.io/property-editor.schema.json", gn = "property-editor", Sn = "A Farris Component", Cn = "object", wn = {
|
|
@@ -327,7 +327,7 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
327
327
|
description: Bn,
|
|
328
328
|
type: Fn,
|
|
329
329
|
categories: Mn
|
|
330
|
-
}, qe = {}, En = ue(qe, Vn,
|
|
330
|
+
}, qe = {}, En = ue(qe, Vn, yn, mn, Pn), k = y({
|
|
331
331
|
/** 常量值 */
|
|
332
332
|
constValue: {
|
|
333
333
|
/** 值类型:常量(const), 变量(variable), 状态机(state), 自定义(custom) */
|
|
@@ -517,7 +517,7 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
517
517
|
hasPrefix: 2
|
|
518
518
|
}, Nn = /* @__PURE__ */ new Map([
|
|
519
519
|
["appearance", se]
|
|
520
|
-
]), In = "https://json-schema.org/draft/2020-12/schema", On = "https://farris-design.gitee.io/combo-list.schema.json", Dn = "combo-list",
|
|
520
|
+
]), In = "https://json-schema.org/draft/2020-12/schema", On = "https://farris-design.gitee.io/combo-list.schema.json", Dn = "combo-list", jn = "A Farris Input Component", Ln = "object", $n = {
|
|
521
521
|
id: {
|
|
522
522
|
description: "The unique identifier for a combo list",
|
|
523
523
|
type: "string"
|
|
@@ -572,7 +572,7 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
572
572
|
valueField: {
|
|
573
573
|
description: "",
|
|
574
574
|
type: "string",
|
|
575
|
-
default: "
|
|
575
|
+
default: "value"
|
|
576
576
|
},
|
|
577
577
|
titleField: {
|
|
578
578
|
description: "",
|
|
@@ -635,8 +635,8 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
635
635
|
$schema: In,
|
|
636
636
|
$id: On,
|
|
637
637
|
title: Dn,
|
|
638
|
-
description:
|
|
639
|
-
type:
|
|
638
|
+
description: jn,
|
|
639
|
+
type: Ln,
|
|
640
640
|
properties: $n,
|
|
641
641
|
required: Un
|
|
642
642
|
};
|
|
@@ -802,7 +802,13 @@ const Se = {
|
|
|
802
802
|
/**
|
|
803
803
|
* 打开前
|
|
804
804
|
*/
|
|
805
|
-
beforeOpen: { type: Function, default: null }
|
|
805
|
+
beforeOpen: { type: Function, default: null },
|
|
806
|
+
searchOption: {
|
|
807
|
+
type: Object,
|
|
808
|
+
default: !1
|
|
809
|
+
},
|
|
810
|
+
// 搜索启用高亮
|
|
811
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
806
812
|
}, ze = ue(Se, Rn, Nn, _n), Hn = {
|
|
807
813
|
dataSource: { type: Array, default: [] },
|
|
808
814
|
enableSearch: { type: Boolean, default: !1 },
|
|
@@ -817,71 +823,93 @@ const Se = {
|
|
|
817
823
|
valueField: { type: String, default: "id" },
|
|
818
824
|
/** 值变化事件 */
|
|
819
825
|
onSelectionChange: { type: Function, default: () => {
|
|
820
|
-
} }
|
|
826
|
+
} },
|
|
827
|
+
searchOption: {
|
|
828
|
+
type: Object,
|
|
829
|
+
default: !1
|
|
830
|
+
},
|
|
831
|
+
// 搜索启用高亮
|
|
832
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
821
833
|
}, Gn = /* @__PURE__ */ q({
|
|
822
834
|
name: "FComboListContainer",
|
|
823
835
|
props: Hn,
|
|
824
836
|
emits: ["selectionChange"],
|
|
825
837
|
setup(e, n) {
|
|
826
|
-
const t = y(e.dataSource),
|
|
838
|
+
const t = y(), o = y(e.dataSource), r = y([]), a = y(e.separator), l = y(e.width), u = y(e.maxHeight), p = y(String(e.selectedValues).split(a.value));
|
|
827
839
|
N(e.dataSource, () => {
|
|
828
|
-
|
|
840
|
+
o.value = e.dataSource;
|
|
829
841
|
});
|
|
830
|
-
const
|
|
842
|
+
const i = V(() => e.enableSearch ? "SearchBar" : "ContentHeader"), d = V(() => {
|
|
831
843
|
const s = {};
|
|
832
|
-
return
|
|
844
|
+
return l.value !== void 0 && (s.width = `${l.value}px`), u.value !== void 0 && u.value > 0 && (s.maxHeight = `${u.value}px`), s;
|
|
833
845
|
});
|
|
834
846
|
function c(s) {
|
|
835
|
-
|
|
847
|
+
r.value = s.map((v) => Object.assign({}, v)), p.value = s.map((v) => v[e.idField]), n.emit("selectionChange", r.value);
|
|
848
|
+
}
|
|
849
|
+
function f(s) {
|
|
850
|
+
if (e.enableHighlightSearch)
|
|
851
|
+
return;
|
|
852
|
+
let v = [];
|
|
853
|
+
typeof e.searchOption == "function" ? v = o.value.filter((h) => e.searchOption(s, h)) : v = o.value.filter((h) => h[e.valueField].indexOf(s) > -1 || h[e.textField].indexOf(s) > -1), t.value.updateDataSource(v);
|
|
836
854
|
}
|
|
837
855
|
return N([() => e.selectedValues], ([s]) => {
|
|
838
|
-
|
|
856
|
+
p.value = s.split(a.value);
|
|
839
857
|
}), () => S("div", {
|
|
840
858
|
class: "f-combo-list-container pl-3",
|
|
841
|
-
style:
|
|
859
|
+
style: d.value
|
|
842
860
|
}, [S(nn, {
|
|
861
|
+
ref: t,
|
|
843
862
|
size: "small",
|
|
844
863
|
itemClass: "f-combo-list-item",
|
|
845
|
-
header:
|
|
864
|
+
header: i.value,
|
|
846
865
|
headerClass: "f-combo-list-search-box",
|
|
847
|
-
data:
|
|
866
|
+
data: o.value,
|
|
848
867
|
idField: e.idField,
|
|
849
868
|
textField: e.textField,
|
|
850
869
|
titleField: e.titleField,
|
|
851
870
|
multiSelect: e.multiSelect,
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
871
|
+
selection: {
|
|
872
|
+
enableSelectRow: !0,
|
|
873
|
+
multiSelect: !0,
|
|
874
|
+
multiSelectMode: "OnCheckAndClick",
|
|
875
|
+
showCheckbox: !0,
|
|
876
|
+
showSelectAll: !1,
|
|
877
|
+
showSelection: !0
|
|
878
|
+
},
|
|
879
|
+
enableHighlightSearch: e.enableHighlightSearch,
|
|
880
|
+
selectionValues: p.value,
|
|
881
|
+
onSelectionChange: c,
|
|
882
|
+
onAfterSearch: f
|
|
855
883
|
}, null)]);
|
|
856
884
|
}
|
|
857
885
|
});
|
|
858
886
|
function qn(e) {
|
|
859
887
|
const n = y(""), t = y(e.modelValue), o = y(e.data || []), r = y(e.editable);
|
|
860
|
-
function a(
|
|
861
|
-
const f = String(
|
|
862
|
-
return o.value.filter((v) =>
|
|
888
|
+
function a(c) {
|
|
889
|
+
const f = String(c).split(e.separator).map((v) => [v, !0]), s = new Map(f);
|
|
890
|
+
return o.value.filter((v) => s.has(String(v[e.valueField])));
|
|
863
891
|
}
|
|
864
|
-
function l(
|
|
865
|
-
const f = a(
|
|
866
|
-
n.value = r.value ? f ||
|
|
892
|
+
function l(c) {
|
|
893
|
+
const f = a(c).map((s) => s[e.textField]).join(e.separator);
|
|
894
|
+
n.value = r.value ? f || c : f;
|
|
867
895
|
}
|
|
868
|
-
function u(
|
|
869
|
-
const f =
|
|
870
|
-
return o.value.filter((v) =>
|
|
896
|
+
function u(c) {
|
|
897
|
+
const f = c.split(e.separator).map((v) => [v, !0]), s = new Map(f);
|
|
898
|
+
return o.value.filter((v) => s.has(v[e.textField]));
|
|
871
899
|
}
|
|
872
|
-
function
|
|
900
|
+
function p(c) {
|
|
873
901
|
const f = {};
|
|
874
|
-
return f[e.idField] =
|
|
902
|
+
return f[e.idField] = c, f[e.textField] = c, [f];
|
|
875
903
|
}
|
|
876
|
-
function i(
|
|
877
|
-
let f = u(
|
|
878
|
-
const
|
|
879
|
-
return r.value && !
|
|
904
|
+
function i(c) {
|
|
905
|
+
let f = u(c);
|
|
906
|
+
const s = f && f.length > 0;
|
|
907
|
+
return r.value && !s && (f = p(c)), f;
|
|
880
908
|
}
|
|
881
|
-
function
|
|
882
|
-
const { url:
|
|
909
|
+
function d() {
|
|
910
|
+
const { url: c, method: f = "GET", headers: s = {}, body: v = null } = e.remote, h = f.toLowerCase() == "get" ? { method: f, headers: s } : { method: f, headers: s, body: v };
|
|
883
911
|
let C = !1;
|
|
884
|
-
fetch(
|
|
912
|
+
fetch(c, h).then((x) => {
|
|
885
913
|
var E, w;
|
|
886
914
|
if (x.status === 200)
|
|
887
915
|
return C = !!((w = (E = x.headers) == null ? void 0 : E.get("content-type")) != null && w.includes("application/json")), C ? x.text() : x.json();
|
|
@@ -892,15 +920,15 @@ function qn(e) {
|
|
|
892
920
|
console.error(x);
|
|
893
921
|
});
|
|
894
922
|
}
|
|
895
|
-
return e.remote &&
|
|
923
|
+
return e.remote && d(), N(() => e.data, () => {
|
|
896
924
|
o.value = e.data;
|
|
897
|
-
}), N([o], ([
|
|
925
|
+
}), N([o], ([c]) => {
|
|
898
926
|
if (e.modelValue) {
|
|
899
|
-
const f =
|
|
927
|
+
const f = c.find((s) => s[e.valueField] === e.modelValue);
|
|
900
928
|
f && (n.value = f[e.textField]);
|
|
901
929
|
}
|
|
902
|
-
}), N(() => e.modelValue, (
|
|
903
|
-
t.value =
|
|
930
|
+
}), N(() => e.modelValue, (c) => {
|
|
931
|
+
t.value = c, l(c);
|
|
904
932
|
}), l(e.modelValue), { dataSource: o, displayText: n, editable: r, modelValue: t, getItemsByDisplayText: u, getItemsByValue: a, getSelectedItemsByDisplayText: i };
|
|
905
933
|
}
|
|
906
934
|
const H = /* @__PURE__ */ q({
|
|
@@ -910,29 +938,29 @@ const H = /* @__PURE__ */ q({
|
|
|
910
938
|
setup(e, n) {
|
|
911
939
|
const t = y(), o = y(e.disabled), r = y(e.enableClear), a = y(e.enableSearch), l = y(e.readonly), {
|
|
912
940
|
dataSource: u,
|
|
913
|
-
displayText:
|
|
941
|
+
displayText: p,
|
|
914
942
|
editable: i,
|
|
915
|
-
modelValue:
|
|
916
|
-
getSelectedItemsByDisplayText:
|
|
917
|
-
} = qn(e), f = V(() => e.multiSelect),
|
|
943
|
+
modelValue: d,
|
|
944
|
+
getSelectedItemsByDisplayText: c
|
|
945
|
+
} = qn(e), f = V(() => e.multiSelect), s = V(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
|
|
918
946
|
function v() {
|
|
919
947
|
!f.value && t.value && t.value.hidePopup();
|
|
920
948
|
}
|
|
921
949
|
function h(B) {
|
|
922
|
-
|
|
950
|
+
p.value = B.map((b) => b[e.textField]).join(e.separator), B.length === 1 ? d.value = B[0][e.valueField] : d.value = B.map((b) => b[e.valueField]).join(e.separator), n.emit("update:modelValue", d.value), n.emit("change", B, d.value), v();
|
|
923
951
|
}
|
|
924
952
|
function C() {
|
|
925
953
|
l.value || t.value.togglePopup();
|
|
926
954
|
}
|
|
927
955
|
function x(B) {
|
|
928
|
-
|
|
956
|
+
d.value = "", n.emit("update:modelValue", ""), n.emit("clear");
|
|
929
957
|
}
|
|
930
958
|
function A(B) {
|
|
931
|
-
const b =
|
|
959
|
+
const b = c(B);
|
|
932
960
|
h(b);
|
|
933
961
|
}
|
|
934
962
|
function E() {
|
|
935
|
-
return
|
|
963
|
+
return p.value;
|
|
936
964
|
}
|
|
937
965
|
function w(B) {
|
|
938
966
|
n.emit("input", B);
|
|
@@ -956,8 +984,8 @@ const H = /* @__PURE__ */ q({
|
|
|
956
984
|
enableTitle: e.enableTitle,
|
|
957
985
|
multiSelect: e.multiSelect,
|
|
958
986
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
959
|
-
modelValue:
|
|
960
|
-
"onUpdate:modelValue": (B) =>
|
|
987
|
+
modelValue: p.value,
|
|
988
|
+
"onUpdate:modelValue": (B) => p.value = B,
|
|
961
989
|
focusOnCreated: e.focusOnCreated,
|
|
962
990
|
selectOnCreated: e.selectOnCreated,
|
|
963
991
|
onClear: x,
|
|
@@ -972,11 +1000,12 @@ const H = /* @__PURE__ */ q({
|
|
|
972
1000
|
textField: e.textField,
|
|
973
1001
|
titleField: e.titleField,
|
|
974
1002
|
dataSource: u.value,
|
|
975
|
-
selectedValues:
|
|
1003
|
+
selectedValues: d.value,
|
|
976
1004
|
multiSelect: e.multiSelect,
|
|
977
1005
|
enableSearch: a.value,
|
|
978
1006
|
maxHeight: e.maxHeight,
|
|
979
|
-
|
|
1007
|
+
enableHighlightSearch: e.enableHighlightSearch,
|
|
1008
|
+
width: e.fitEditor ? s.value : void 0,
|
|
980
1009
|
onSelectionChange: h
|
|
981
1010
|
}, null)]
|
|
982
1011
|
});
|
|
@@ -985,7 +1014,7 @@ const H = /* @__PURE__ */ q({
|
|
|
985
1014
|
function Ce(e, n) {
|
|
986
1015
|
e.schema;
|
|
987
1016
|
const t = y(!0), o = y(!0);
|
|
988
|
-
function r(
|
|
1017
|
+
function r(c) {
|
|
989
1018
|
return !1;
|
|
990
1019
|
}
|
|
991
1020
|
function a() {
|
|
@@ -997,11 +1026,11 @@ function Ce(e, n) {
|
|
|
997
1026
|
function u() {
|
|
998
1027
|
return !0;
|
|
999
1028
|
}
|
|
1000
|
-
function
|
|
1029
|
+
function p(c) {
|
|
1001
1030
|
}
|
|
1002
1031
|
function i() {
|
|
1003
1032
|
}
|
|
1004
|
-
function c
|
|
1033
|
+
function d(c) {
|
|
1005
1034
|
return null;
|
|
1006
1035
|
}
|
|
1007
1036
|
return {
|
|
@@ -1009,22 +1038,23 @@ function Ce(e, n) {
|
|
|
1009
1038
|
checkCanDeleteComponent: a,
|
|
1010
1039
|
checkCanMoveComponent: l,
|
|
1011
1040
|
hideNestedPaddingInDesginerView: u,
|
|
1012
|
-
onAcceptMovedChildElement:
|
|
1041
|
+
onAcceptMovedChildElement: p,
|
|
1013
1042
|
resolveComponentContext: i,
|
|
1014
1043
|
triggerBelongedComponentToMoveWhenMoved: t,
|
|
1015
1044
|
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
1016
|
-
getPropsConfig:
|
|
1045
|
+
getPropsConfig: d
|
|
1017
1046
|
};
|
|
1018
1047
|
}
|
|
1019
1048
|
class We {
|
|
1020
1049
|
static getEditorTypesByMDataType(n) {
|
|
1021
|
-
|
|
1050
|
+
const t = this.fieldControlTypeMapping[n];
|
|
1051
|
+
return t || [{ key: "", value: "" }];
|
|
1022
1052
|
}
|
|
1023
1053
|
}
|
|
1024
1054
|
/**
|
|
1025
1055
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1026
1056
|
*/
|
|
1027
|
-
|
|
1057
|
+
j(We, "fieldControlTypeMapping", {
|
|
1028
1058
|
String: [
|
|
1029
1059
|
{ key: g["input-group"].type, value: g["input-group"].name },
|
|
1030
1060
|
{ key: g.lookup.type, value: g.lookup.name },
|
|
@@ -1081,22 +1111,27 @@ L(We, "fieldControlTypeMapping", {
|
|
|
1081
1111
|
});
|
|
1082
1112
|
class zn {
|
|
1083
1113
|
constructor(n, t) {
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1114
|
+
j(this, "componentId");
|
|
1115
|
+
j(this, "viewModelId");
|
|
1116
|
+
j(this, "eventsEditorUtils");
|
|
1117
|
+
j(this, "formSchemaUtils");
|
|
1118
|
+
j(this, "formMetadataConverter");
|
|
1119
|
+
j(this, "designViewModelUtils");
|
|
1120
|
+
j(this, "designViewModelField");
|
|
1121
|
+
j(this, "controlCreatorUtils");
|
|
1122
|
+
j(this, "designerHostService");
|
|
1123
|
+
j(this, "schemaService", null);
|
|
1124
|
+
j(this, "metadataService", null);
|
|
1125
|
+
j(this, "propertyConfig", {
|
|
1095
1126
|
type: "object",
|
|
1096
1127
|
categories: {}
|
|
1097
1128
|
});
|
|
1098
1129
|
var o;
|
|
1099
|
-
this.componentId = n, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService;
|
|
1130
|
+
this.componentId = n, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
|
|
1131
|
+
}
|
|
1132
|
+
getTableInfo() {
|
|
1133
|
+
var n;
|
|
1134
|
+
return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
|
|
1100
1135
|
}
|
|
1101
1136
|
setDesignViewModelField(n) {
|
|
1102
1137
|
const t = n.binding && n.binding.type === "Form" && n.binding.field;
|
|
@@ -1111,6 +1146,7 @@ class zn {
|
|
|
1111
1146
|
changeFieldEditorType(n, t) {
|
|
1112
1147
|
}
|
|
1113
1148
|
getBasicPropConfig(n) {
|
|
1149
|
+
var o, r;
|
|
1114
1150
|
var t = this;
|
|
1115
1151
|
return this.setDesignViewModelField(n), {
|
|
1116
1152
|
description: "Basic Information",
|
|
@@ -1132,7 +1168,8 @@ class zn {
|
|
|
1132
1168
|
type: "combo-list",
|
|
1133
1169
|
textField: "value",
|
|
1134
1170
|
valueField: "key",
|
|
1135
|
-
data: We.getEditorTypesByMDataType(t.designViewModelField.type.name)
|
|
1171
|
+
data: We.getEditorTypesByMDataType(((r = (o = t.designViewModelField) == null ? void 0 : o.type) == null ? void 0 : r.name) || ""),
|
|
1172
|
+
editable: !1
|
|
1136
1173
|
}
|
|
1137
1174
|
},
|
|
1138
1175
|
label: {
|
|
@@ -1141,11 +1178,11 @@ class zn {
|
|
|
1141
1178
|
$converter: "/converter/form-group-label.converter"
|
|
1142
1179
|
}
|
|
1143
1180
|
},
|
|
1144
|
-
setPropertyRelates(
|
|
1145
|
-
if (
|
|
1146
|
-
switch (
|
|
1181
|
+
setPropertyRelates(a, l) {
|
|
1182
|
+
if (a)
|
|
1183
|
+
switch (a && a.propertyID) {
|
|
1147
1184
|
case "type": {
|
|
1148
|
-
t.changeControlType(n,
|
|
1185
|
+
t.changeControlType(n, a);
|
|
1149
1186
|
break;
|
|
1150
1187
|
}
|
|
1151
1188
|
}
|
|
@@ -1158,13 +1195,13 @@ class zn {
|
|
|
1158
1195
|
* @param newControlType 新控件类型
|
|
1159
1196
|
*/
|
|
1160
1197
|
changeControlType(n, t) {
|
|
1161
|
-
var i,
|
|
1198
|
+
var i, d, c, f, s;
|
|
1162
1199
|
const o = t.propertyValue, r = this.formSchemaUtils.getComponentById(this.componentId);
|
|
1163
1200
|
let a = this.getControlParentContainer(n.id, r);
|
|
1164
1201
|
if (!a)
|
|
1165
1202
|
return;
|
|
1166
1203
|
const l = a.contents.findIndex((v) => v.id === n.id), u = a.contents[l];
|
|
1167
|
-
let
|
|
1204
|
+
let p;
|
|
1168
1205
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1169
1206
|
editor: {
|
|
1170
1207
|
$type: o
|
|
@@ -1172,20 +1209,20 @@ class zn {
|
|
|
1172
1209
|
name: this.designViewModelField.name,
|
|
1173
1210
|
require: this.designViewModelField.require,
|
|
1174
1211
|
readonly: this.designViewModelField.readonly
|
|
1175
|
-
}, !1),
|
|
1212
|
+
}, !1), p = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(p, {
|
|
1176
1213
|
id: u.id,
|
|
1177
1214
|
appearance: u.appearance,
|
|
1178
1215
|
size: u.size,
|
|
1179
1216
|
label: u.label
|
|
1180
|
-
}), Object.assign(
|
|
1181
|
-
isTextArea:
|
|
1217
|
+
}), Object.assign(p.editor, {
|
|
1218
|
+
isTextArea: p.isTextArea && u.isTextArea,
|
|
1182
1219
|
type: o || "",
|
|
1183
1220
|
placeHolder: (i = u.editor) == null ? void 0 : i.placeHolder,
|
|
1184
|
-
holdPlace: (
|
|
1185
|
-
readonly: (
|
|
1221
|
+
holdPlace: (d = u.editor) == null ? void 0 : d.holdPlace,
|
|
1222
|
+
readonly: (c = u.editor) == null ? void 0 : c.readonly,
|
|
1186
1223
|
require: (f = u.editor) == null ? void 0 : f.require,
|
|
1187
|
-
visible: (
|
|
1188
|
-
}), a.contents.splice(l, 1,
|
|
1224
|
+
visible: (s = u.editor) == null ? void 0 : s.visible
|
|
1225
|
+
}), a.contents.splice(l, 1, p);
|
|
1189
1226
|
}
|
|
1190
1227
|
getAppearanceConfig(n = null) {
|
|
1191
1228
|
return {
|
|
@@ -1233,27 +1270,6 @@ class zn {
|
|
|
1233
1270
|
return o;
|
|
1234
1271
|
}
|
|
1235
1272
|
}
|
|
1236
|
-
getBindingFieldEditorOptions(n) {
|
|
1237
|
-
const t = this.formSchemaUtils.getFormMetadataBasicInfo();
|
|
1238
|
-
return {
|
|
1239
|
-
type: "field-selector",
|
|
1240
|
-
bindingType: { enable: !1 },
|
|
1241
|
-
editorParams: {
|
|
1242
|
-
propertyData: n,
|
|
1243
|
-
formBasicInfo: t
|
|
1244
|
-
},
|
|
1245
|
-
columns: [
|
|
1246
|
-
{ field: "name", title: "字段名称" },
|
|
1247
|
-
{ field: "bindingField", title: "绑定字段" },
|
|
1248
|
-
{ field: "fieldType", title: "字段类型" }
|
|
1249
|
-
],
|
|
1250
|
-
beforeOpenDialog: (o) => {
|
|
1251
|
-
const r = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
1252
|
-
o.instance.loadData(r);
|
|
1253
|
-
},
|
|
1254
|
-
textField: "bindingField"
|
|
1255
|
-
};
|
|
1256
|
-
}
|
|
1257
1273
|
}
|
|
1258
1274
|
class we extends zn {
|
|
1259
1275
|
constructor(n, t) {
|
|
@@ -1290,10 +1306,14 @@ class we extends zn {
|
|
|
1290
1306
|
{ field: "bindingField", title: "绑定字段" },
|
|
1291
1307
|
{ field: "fieldType", title: "字段类型" }
|
|
1292
1308
|
],
|
|
1309
|
+
textField: "bindingField",
|
|
1293
1310
|
data: o
|
|
1294
1311
|
}
|
|
1295
1312
|
};
|
|
1296
1313
|
}
|
|
1314
|
+
getBindingOtions(n) {
|
|
1315
|
+
return this.getFieldSelectorOptions(n);
|
|
1316
|
+
}
|
|
1297
1317
|
getComponentConfig(n, t = {}, o = {}) {
|
|
1298
1318
|
const r = Object.assign({
|
|
1299
1319
|
description: "组件信息",
|
|
@@ -1357,11 +1377,11 @@ function Qn(e, n) {
|
|
|
1357
1377
|
hideNestedPaddingInDesginerView: a,
|
|
1358
1378
|
onAcceptMovedChildElement: l,
|
|
1359
1379
|
resolveComponentContext: u,
|
|
1360
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1380
|
+
triggerBelongedComponentToMoveWhenMoved: p,
|
|
1361
1381
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
1362
|
-
} = Ce(e),
|
|
1363
|
-
function
|
|
1364
|
-
return new Wn(f, n).getPropertyConfig(
|
|
1382
|
+
} = Ce(e), d = e.schema;
|
|
1383
|
+
function c(f) {
|
|
1384
|
+
return new Wn(f, n).getPropertyConfig(d);
|
|
1365
1385
|
}
|
|
1366
1386
|
return {
|
|
1367
1387
|
canAccepts: t,
|
|
@@ -1370,9 +1390,9 @@ function Qn(e, n) {
|
|
|
1370
1390
|
hideNestedPaddingInDesginerView: a,
|
|
1371
1391
|
onAcceptMovedChildElement: l,
|
|
1372
1392
|
resolveComponentContext: u,
|
|
1373
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1393
|
+
triggerBelongedComponentToMoveWhenMoved: p,
|
|
1374
1394
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
1375
|
-
getPropsConfig:
|
|
1395
|
+
getPropsConfig: c
|
|
1376
1396
|
};
|
|
1377
1397
|
}
|
|
1378
1398
|
const Yn = /* @__PURE__ */ q({
|
|
@@ -1700,18 +1720,18 @@ const Kn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-
|
|
|
1700
1720
|
updateOn: { type: String, default: "blur" }
|
|
1701
1721
|
}, Qe = ue(Ve, ao, Zn, Xn);
|
|
1702
1722
|
function io(e, n, t, o) {
|
|
1703
|
-
const r = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder),
|
|
1723
|
+
const r = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder), p = y(e.textAlign), i = y(e.updateOn), d = V(() => e.editable || !e.readonly), c = V(() => e.editable && !e.disabled && !e.readonly), f = V(() => !e.disabled && a.value), s = V(() => t.value === "" || t.value === null || t.value === void 0), v = V(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), h = V(() => e.readonly || !e.editable), C = V(() => e.enableTitle ? t.value : ""), x = V(() => ({
|
|
1704
1724
|
"form-control": !0,
|
|
1705
1725
|
"f-utils-fill": !0,
|
|
1706
|
-
"text-left":
|
|
1707
|
-
"text-center":
|
|
1708
|
-
"text-right":
|
|
1726
|
+
"text-left": p.value === "left",
|
|
1727
|
+
"text-center": p.value === "center",
|
|
1728
|
+
"text-right": p.value === "right"
|
|
1709
1729
|
})), A = V(() => {
|
|
1710
1730
|
const M = {
|
|
1711
1731
|
"f-cmp-inputgroup": !0,
|
|
1712
1732
|
"input-group": !0,
|
|
1713
1733
|
"f-state-disable": r.value,
|
|
1714
|
-
"f-state-editable":
|
|
1734
|
+
"f-state-editable": c.value,
|
|
1715
1735
|
"f-state-readonly": h.value,
|
|
1716
1736
|
"f-state-focus": f.value
|
|
1717
1737
|
};
|
|
@@ -1735,7 +1755,7 @@ function io(e, n, t, o) {
|
|
|
1735
1755
|
n.emit("click", M);
|
|
1736
1756
|
}
|
|
1737
1757
|
function T(M) {
|
|
1738
|
-
e.disabled || (u.value && (a.value = !0),
|
|
1758
|
+
e.disabled || (u.value && (a.value = !0), d.value && n.emit("focus", M));
|
|
1739
1759
|
}
|
|
1740
1760
|
function P(M) {
|
|
1741
1761
|
n.emit("input", M.target.value);
|
|
@@ -1761,11 +1781,11 @@ function io(e, n, t, o) {
|
|
|
1761
1781
|
changeTextBoxValue: w,
|
|
1762
1782
|
disabled: r,
|
|
1763
1783
|
displayText: o,
|
|
1764
|
-
editable:
|
|
1784
|
+
editable: c,
|
|
1765
1785
|
hasFocused: f,
|
|
1766
1786
|
inputGroupClass: A,
|
|
1767
1787
|
inputType: l,
|
|
1768
|
-
isEmpty:
|
|
1788
|
+
isEmpty: s,
|
|
1769
1789
|
modelValue: t,
|
|
1770
1790
|
readonly: h,
|
|
1771
1791
|
onBlur: B,
|
|
@@ -1783,14 +1803,14 @@ function io(e, n, t, o) {
|
|
|
1783
1803
|
};
|
|
1784
1804
|
}
|
|
1785
1805
|
function lo(e, n, t, o) {
|
|
1786
|
-
const r = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder),
|
|
1806
|
+
const r = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder), p = y(e.textAlign);
|
|
1787
1807
|
V(() => e.editable || !e.readonly);
|
|
1788
|
-
const i = V(() => e.editable && !e.disabled && !e.readonly),
|
|
1808
|
+
const i = V(() => e.editable && !e.disabled && !e.readonly), d = V(() => !e.disabled && a.value), c = V(() => t.value === "" || t.value === null || t.value === void 0), f = V(() => e.placeholder), s = V(() => e.readonly || !e.editable), v = V(() => e.enableTitle ? t.value : ""), h = V(() => ({
|
|
1789
1809
|
"form-control": !0,
|
|
1790
1810
|
// 'f-utils-fill': true,
|
|
1791
|
-
"text-left":
|
|
1792
|
-
"text-center":
|
|
1793
|
-
"text-right":
|
|
1811
|
+
"text-left": p.value === "left",
|
|
1812
|
+
"text-center": p.value === "center",
|
|
1813
|
+
"text-right": p.value === "right"
|
|
1794
1814
|
})), C = V(() => ({
|
|
1795
1815
|
"f-cmp-inputgroup": !0,
|
|
1796
1816
|
"input-group": !0,
|
|
@@ -1804,12 +1824,12 @@ function lo(e, n, t, o) {
|
|
|
1804
1824
|
disabled: r,
|
|
1805
1825
|
displayText: o,
|
|
1806
1826
|
editable: i,
|
|
1807
|
-
hasFocused:
|
|
1827
|
+
hasFocused: d,
|
|
1808
1828
|
inputGroupClass: C,
|
|
1809
1829
|
inputType: l,
|
|
1810
|
-
isEmpty:
|
|
1830
|
+
isEmpty: c,
|
|
1811
1831
|
modelValue: t,
|
|
1812
|
-
readonly:
|
|
1832
|
+
readonly: s,
|
|
1813
1833
|
// onBlur,
|
|
1814
1834
|
// onClick,
|
|
1815
1835
|
// onFocus,
|
|
@@ -1825,30 +1845,30 @@ function lo(e, n, t, o) {
|
|
|
1825
1845
|
};
|
|
1826
1846
|
}
|
|
1827
1847
|
function Ye(e, n, t) {
|
|
1828
|
-
const o = y(!1), r = V(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: u, isEmpty:
|
|
1848
|
+
const o = y(!1), r = V(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: u, isEmpty: p } = t;
|
|
1829
1849
|
function i(h) {
|
|
1830
1850
|
o.value = h;
|
|
1831
1851
|
}
|
|
1832
1852
|
N(l, () => {
|
|
1833
1853
|
u != null && u.value ? i(!!(l != null && l.value)) : i(!1);
|
|
1834
1854
|
});
|
|
1835
|
-
const
|
|
1855
|
+
const d = V(() => ({
|
|
1836
1856
|
"input-group-text": !0,
|
|
1837
1857
|
"input-group-clear": !0
|
|
1838
|
-
})),
|
|
1858
|
+
})), c = V(() => ({
|
|
1839
1859
|
width: "24px",
|
|
1840
1860
|
display: o.value ? "flex" : "none"
|
|
1841
1861
|
}));
|
|
1842
1862
|
function f(h) {
|
|
1843
1863
|
h.stopPropagation(), r.value && (a("", !0), i(!o.value), n.emit("clear"));
|
|
1844
1864
|
}
|
|
1845
|
-
function
|
|
1846
|
-
r.value && !
|
|
1865
|
+
function s(h) {
|
|
1866
|
+
r.value && !p.value && i(!0);
|
|
1847
1867
|
}
|
|
1848
1868
|
function v(h) {
|
|
1849
1869
|
r.value && i(!1);
|
|
1850
1870
|
}
|
|
1851
|
-
return { clearButtonClass:
|
|
1871
|
+
return { clearButtonClass: d, clearButtonStyle: c, hasShownClearButton: o, onClearValue: f, onMouseEnter: s, onMouseLeave: v, shouldShowClearButton: r };
|
|
1852
1872
|
}
|
|
1853
1873
|
const uo = ["moz", "ms", "webkit"];
|
|
1854
1874
|
function so() {
|
|
@@ -1877,17 +1897,17 @@ function Ze(e, n) {
|
|
|
1877
1897
|
})), appendedContent: t, shouldShowAppendedButton: r };
|
|
1878
1898
|
}
|
|
1879
1899
|
function Xe(e, n, t, o) {
|
|
1880
|
-
const { appendedContent: r } = o, a = y(e.enableViewPassword), l = V(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>',
|
|
1881
|
-
N(() => [e.readonly, e.disabled], ([f,
|
|
1882
|
-
l.value && (t.value = f ||
|
|
1900
|
+
const { appendedContent: r } = o, a = y(e.enableViewPassword), l = V(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', p = '<span class="f-icon f-icon-eye"></span>', i = y(!1);
|
|
1901
|
+
N(() => [e.readonly, e.disabled], ([f, s]) => {
|
|
1902
|
+
l.value && (t.value = f || s ? "password" : t.value, r.value = f || s ? p : r.value);
|
|
1883
1903
|
});
|
|
1884
|
-
function
|
|
1885
|
-
return i.value = !i.value, t.value = i.value ? "text" : "password", r.value = i.value ? u :
|
|
1904
|
+
function d() {
|
|
1905
|
+
return i.value = !i.value, t.value = i.value ? "text" : "password", r.value = i.value ? u : p, !1;
|
|
1886
1906
|
}
|
|
1887
|
-
function
|
|
1888
|
-
t.value = l.value ? "password" : "text", r.value = l.value ? a.value ?
|
|
1907
|
+
function c() {
|
|
1908
|
+
t.value = l.value ? "password" : "text", r.value = l.value ? a.value ? p : "" : r.value;
|
|
1889
1909
|
}
|
|
1890
|
-
return
|
|
1910
|
+
return c(), { isPassword: l, onClickAppendedButton: d };
|
|
1891
1911
|
}
|
|
1892
1912
|
function Ke(e, n, t) {
|
|
1893
1913
|
const o = y(), {
|
|
@@ -1895,30 +1915,30 @@ function Ke(e, n, t) {
|
|
|
1895
1915
|
onFocusTextBox: a,
|
|
1896
1916
|
onInput: l,
|
|
1897
1917
|
onKeyDown: u,
|
|
1898
|
-
textBoxValue:
|
|
1899
|
-
} = t, i = V(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder),
|
|
1918
|
+
textBoxValue: p
|
|
1919
|
+
} = t, i = V(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = V(() => ({
|
|
1900
1920
|
"form-control": !0,
|
|
1901
1921
|
"f-utils-fill": !0
|
|
1902
|
-
})),
|
|
1922
|
+
})), c = V(() => ({
|
|
1903
1923
|
"text-align": e.textAlign
|
|
1904
1924
|
}));
|
|
1905
1925
|
function f(h) {
|
|
1906
1926
|
h.stopPropagation();
|
|
1907
1927
|
}
|
|
1908
|
-
function
|
|
1928
|
+
function s() {
|
|
1909
1929
|
e.selectOnCreated, e.focusOnCreated;
|
|
1910
1930
|
}
|
|
1911
1931
|
async function v(h) {
|
|
1912
|
-
a(h), await Ie,
|
|
1932
|
+
a(h), await Ie, s();
|
|
1913
1933
|
}
|
|
1914
1934
|
return G(async () => {
|
|
1915
|
-
await Ie,
|
|
1935
|
+
await Ie, s();
|
|
1916
1936
|
}), () => S("input", {
|
|
1917
1937
|
ref: o,
|
|
1918
|
-
class:
|
|
1919
|
-
style:
|
|
1938
|
+
class: d.value,
|
|
1939
|
+
style: c.value,
|
|
1920
1940
|
type: "text",
|
|
1921
|
-
value:
|
|
1941
|
+
value: p.value,
|
|
1922
1942
|
disabled: e.disabled,
|
|
1923
1943
|
readonly: e.readonly || !e.editable,
|
|
1924
1944
|
placeholder: i.value,
|
|
@@ -1939,14 +1959,14 @@ function Te(e, n, t) {
|
|
|
1939
1959
|
"input-group-append": !0,
|
|
1940
1960
|
"btn-group": !0,
|
|
1941
1961
|
"btn-group-number": !0
|
|
1942
|
-
})),
|
|
1962
|
+
})), p = V(() => ({
|
|
1943
1963
|
btn: !0,
|
|
1944
1964
|
"btn-secondary": !0,
|
|
1945
1965
|
"btn-number-flag": !0
|
|
1946
1966
|
})), i = V(() => ({
|
|
1947
1967
|
cursor: r() ? "pointer" : "not-allowed",
|
|
1948
1968
|
"margin-left": 0
|
|
1949
|
-
})),
|
|
1969
|
+
})), d = V(() => ({
|
|
1950
1970
|
cursor: o() ? "pointer" : "not-allowed",
|
|
1951
1971
|
"margin-left": 0
|
|
1952
1972
|
}));
|
|
@@ -1954,7 +1974,7 @@ function Te(e, n, t) {
|
|
|
1954
1974
|
class: u.value
|
|
1955
1975
|
}, [S("button", {
|
|
1956
1976
|
title: "upButton",
|
|
1957
|
-
class:
|
|
1977
|
+
class: p.value,
|
|
1958
1978
|
style: i.value,
|
|
1959
1979
|
onClick: l,
|
|
1960
1980
|
disabled: !r()
|
|
@@ -1962,8 +1982,8 @@ function Te(e, n, t) {
|
|
|
1962
1982
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
1963
1983
|
}, null)]), S("button", {
|
|
1964
1984
|
title: "downButton",
|
|
1965
|
-
class:
|
|
1966
|
-
style:
|
|
1985
|
+
class: p.value,
|
|
1986
|
+
style: d.value,
|
|
1967
1987
|
onClick: a,
|
|
1968
1988
|
disabled: !o()
|
|
1969
1989
|
}, [S("span", {
|
|
@@ -1973,34 +1993,34 @@ function Te(e, n, t) {
|
|
|
1973
1993
|
function po(e, n) {
|
|
1974
1994
|
const t = rn(e, n), o = an(e, n, t), r = ln(e, n, o, t), a = un(e, n, o, t, r), l = Te(e, n, r), {
|
|
1975
1995
|
displayValue: u,
|
|
1976
|
-
modelValue:
|
|
1996
|
+
modelValue: p,
|
|
1977
1997
|
getRealValue: i
|
|
1978
|
-
} = t,
|
|
1979
|
-
format:
|
|
1998
|
+
} = t, d = Ke(e, n, a), {
|
|
1999
|
+
format: c
|
|
1980
2000
|
} = o, {
|
|
1981
2001
|
isFocus: f
|
|
1982
|
-
} = a,
|
|
2002
|
+
} = a, s = V(() => !e.disabled && !e.readonly);
|
|
1983
2003
|
return G(() => {
|
|
1984
2004
|
const v = i(e.modelValue);
|
|
1985
|
-
u.value =
|
|
2005
|
+
u.value = c(v);
|
|
1986
2006
|
}), N(() => [e.value], ([v]) => {
|
|
1987
2007
|
const h = i(v);
|
|
1988
|
-
|
|
2008
|
+
p.value = h, u.value = c(h);
|
|
1989
2009
|
}), N(() => [e.modelValue], ([v]) => {
|
|
1990
|
-
v !==
|
|
2010
|
+
v !== p.value && (p.value = v, !f.value && (u.value = c(i(v))));
|
|
1991
2011
|
}), N(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1992
|
-
u.value =
|
|
2012
|
+
u.value = c(p.value);
|
|
1993
2013
|
}), () => S("div", {
|
|
1994
2014
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1995
|
-
}, [
|
|
2015
|
+
}, [d(), s.value && l()]);
|
|
1996
2016
|
}
|
|
1997
2017
|
function fo(e, n, t, o) {
|
|
1998
2018
|
const r = y(), a = y(e.autocomplete), l = y(e.enableTitle), {
|
|
1999
2019
|
isPassword: u
|
|
2000
|
-
} = t,
|
|
2001
|
-
disabled:
|
|
2020
|
+
} = t, p = y(e.minLength), i = y(e.maxLength), d = y(e.tabIndex), {
|
|
2021
|
+
disabled: c,
|
|
2002
2022
|
displayText: f,
|
|
2003
|
-
inputType:
|
|
2023
|
+
inputType: s,
|
|
2004
2024
|
onBlur: v,
|
|
2005
2025
|
onFocus: h,
|
|
2006
2026
|
onInput: C,
|
|
@@ -2021,14 +2041,14 @@ function fo(e, n, t, o) {
|
|
|
2021
2041
|
name: "input-group-value",
|
|
2022
2042
|
autocomplete: a.value,
|
|
2023
2043
|
class: P.value,
|
|
2024
|
-
disabled:
|
|
2044
|
+
disabled: c == null ? void 0 : c.value,
|
|
2025
2045
|
maxlength: i.value,
|
|
2026
|
-
minlength:
|
|
2046
|
+
minlength: p.value,
|
|
2027
2047
|
placeholder: T.value,
|
|
2028
2048
|
readonly: b == null ? void 0 : b.value,
|
|
2029
|
-
tabindex:
|
|
2049
|
+
tabindex: d.value,
|
|
2030
2050
|
title: l.value && !u.value ? $.value : "",
|
|
2031
|
-
type:
|
|
2051
|
+
type: s.value,
|
|
2032
2052
|
value: f == null ? void 0 : f.value,
|
|
2033
2053
|
onBlur: v,
|
|
2034
2054
|
onClick: x,
|
|
@@ -2060,17 +2080,17 @@ function Je(e, n, t, o, r) {
|
|
|
2060
2080
|
const {
|
|
2061
2081
|
appendedButtonClass: a,
|
|
2062
2082
|
appendedContent: l
|
|
2063
|
-
} = t, u = V(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled),
|
|
2064
|
-
clearButtonClass:
|
|
2065
|
-
clearButtonStyle:
|
|
2083
|
+
} = t, u = V(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), p = V(() => l.value && !n.slots.groupTextTemplate), i = V(() => !!n.slots.groupTextTemplate), {
|
|
2084
|
+
clearButtonClass: d,
|
|
2085
|
+
clearButtonStyle: c,
|
|
2066
2086
|
onClearValue: f,
|
|
2067
|
-
shouldShowClearButton:
|
|
2087
|
+
shouldShowClearButton: s
|
|
2068
2088
|
} = o;
|
|
2069
2089
|
function v() {
|
|
2070
2090
|
return S("span", {
|
|
2071
2091
|
id: "clearIcon",
|
|
2072
|
-
class:
|
|
2073
|
-
style:
|
|
2092
|
+
class: d.value,
|
|
2093
|
+
style: c.value,
|
|
2074
2094
|
onClick: (T) => f(T)
|
|
2075
2095
|
}, [S("i", {
|
|
2076
2096
|
class: "f-icon modal_close"
|
|
@@ -2101,12 +2121,12 @@ function Je(e, n, t, o, r) {
|
|
|
2101
2121
|
return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
|
|
2102
2122
|
}
|
|
2103
2123
|
function B() {
|
|
2104
|
-
return
|
|
2124
|
+
return p.value ? E : i.value ? w : "";
|
|
2105
2125
|
}
|
|
2106
2126
|
const b = B();
|
|
2107
2127
|
return () => S("div", {
|
|
2108
2128
|
class: a.value
|
|
2109
|
-
}, [
|
|
2129
|
+
}, [s.value && v(), b && b()]);
|
|
2110
2130
|
}
|
|
2111
2131
|
const J = /* @__PURE__ */ q({
|
|
2112
2132
|
name: "FInputGroup",
|
|
@@ -2117,12 +2137,12 @@ const J = /* @__PURE__ */ q({
|
|
|
2117
2137
|
inputGroupClass: a,
|
|
2118
2138
|
inputType: l,
|
|
2119
2139
|
inputGroupStyle: u
|
|
2120
|
-
} = r,
|
|
2140
|
+
} = r, p = Ze(e), {
|
|
2121
2141
|
shouldShowAppendedButton: i
|
|
2122
|
-
} =
|
|
2123
|
-
onMouseEnter:
|
|
2142
|
+
} = p, d = Ye(e, n, r), {
|
|
2143
|
+
onMouseEnter: c,
|
|
2124
2144
|
onMouseLeave: f
|
|
2125
|
-
} =
|
|
2145
|
+
} = d, s = Xe(e, n, l, p), v = po(e, n), h = fo(e, n, s, r), C = Je(e, n, p, d, s), x = vo(e, n), A = V(() => e.type === "number");
|
|
2126
2146
|
N(() => [e.value], ([w]) => {
|
|
2127
2147
|
t.value = w, o.value = w;
|
|
2128
2148
|
}), N(() => [e.modelValue], ([w]) => {
|
|
@@ -2130,22 +2150,22 @@ const J = /* @__PURE__ */ q({
|
|
|
2130
2150
|
}), G(() => {
|
|
2131
2151
|
e.value && (t.value = e.value, o.value = e.value);
|
|
2132
2152
|
});
|
|
2133
|
-
const E = () => S(
|
|
2153
|
+
const E = () => S(ye, null, [S("div", {
|
|
2134
2154
|
id: "inputGroup",
|
|
2135
2155
|
class: a.value,
|
|
2136
2156
|
style: u.value,
|
|
2137
|
-
onMouseenter:
|
|
2157
|
+
onMouseenter: c,
|
|
2138
2158
|
onMouseleave: f
|
|
2139
|
-
}, [A.value ? v() : S(
|
|
2159
|
+
}, [A.value ? v() : S(ye, null, [x(), h(), i.value && C()])])]);
|
|
2140
2160
|
return () => E();
|
|
2141
2161
|
}
|
|
2142
2162
|
});
|
|
2143
|
-
class
|
|
2163
|
+
class yo extends we {
|
|
2144
2164
|
constructor(n, t) {
|
|
2145
2165
|
super(n, t);
|
|
2146
2166
|
}
|
|
2147
2167
|
}
|
|
2148
|
-
function
|
|
2168
|
+
function mo(e, n) {
|
|
2149
2169
|
const {
|
|
2150
2170
|
canAccepts: t,
|
|
2151
2171
|
checkCanDeleteComponent: o,
|
|
@@ -2153,11 +2173,11 @@ function yo(e, n) {
|
|
|
2153
2173
|
hideNestedPaddingInDesginerView: a,
|
|
2154
2174
|
onAcceptMovedChildElement: l,
|
|
2155
2175
|
resolveComponentContext: u,
|
|
2156
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2176
|
+
triggerBelongedComponentToMoveWhenMoved: p,
|
|
2157
2177
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2158
|
-
} = Ce(e),
|
|
2159
|
-
function
|
|
2160
|
-
return new
|
|
2178
|
+
} = Ce(e), d = e.schema;
|
|
2179
|
+
function c(f) {
|
|
2180
|
+
return new yo(f, n).getPropertyConfig(d);
|
|
2161
2181
|
}
|
|
2162
2182
|
return {
|
|
2163
2183
|
canAccepts: t,
|
|
@@ -2166,9 +2186,9 @@ function yo(e, n) {
|
|
|
2166
2186
|
hideNestedPaddingInDesginerView: a,
|
|
2167
2187
|
onAcceptMovedChildElement: l,
|
|
2168
2188
|
resolveComponentContext: u,
|
|
2169
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2189
|
+
triggerBelongedComponentToMoveWhenMoved: p,
|
|
2170
2190
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
2171
|
-
getPropsConfig:
|
|
2191
|
+
getPropsConfig: c
|
|
2172
2192
|
};
|
|
2173
2193
|
}
|
|
2174
2194
|
function et(e, n, t) {
|
|
@@ -2181,28 +2201,28 @@ function et(e, n, t) {
|
|
|
2181
2201
|
function u() {
|
|
2182
2202
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
2183
2203
|
}
|
|
2184
|
-
function
|
|
2204
|
+
function p() {
|
|
2185
2205
|
return !1;
|
|
2186
2206
|
}
|
|
2187
2207
|
function i() {
|
|
2188
2208
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
2189
2209
|
}
|
|
2190
|
-
function
|
|
2210
|
+
function d() {
|
|
2191
2211
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
2192
2212
|
}
|
|
2193
|
-
function
|
|
2213
|
+
function c(b) {
|
|
2194
2214
|
if (!b || !b.value)
|
|
2195
2215
|
return null;
|
|
2196
2216
|
if (b.value.schema && b.value.schema.type === "component")
|
|
2197
2217
|
return b.value;
|
|
2198
|
-
const T = y(b == null ? void 0 : b.value.parent), P =
|
|
2218
|
+
const T = y(b == null ? void 0 : b.value.parent), P = c(T);
|
|
2199
2219
|
return P || null;
|
|
2200
2220
|
}
|
|
2201
2221
|
function f(b = n) {
|
|
2202
2222
|
const { componentInstance: T, designerItemElementRef: P } = b;
|
|
2203
2223
|
return !T || !T.value ? null : T.value.canMove ? P : f(b.parent);
|
|
2204
2224
|
}
|
|
2205
|
-
function
|
|
2225
|
+
function s(b) {
|
|
2206
2226
|
return !!t && t.canAccepts(b);
|
|
2207
2227
|
}
|
|
2208
2228
|
function v() {
|
|
@@ -2215,7 +2235,7 @@ function et(e, n, t) {
|
|
|
2215
2235
|
}
|
|
2216
2236
|
function x(b) {
|
|
2217
2237
|
const { componentType: T } = b;
|
|
2218
|
-
let P =
|
|
2238
|
+
let P = me(T, b);
|
|
2219
2239
|
t && t.onResolveNewComponentSchema && (P = t.onResolveNewComponentSchema(b, P));
|
|
2220
2240
|
const $ = T.toLowerCase().replace("-", "_");
|
|
2221
2241
|
return P && !P.id && P.type === T && (P.id = `${$}_${Math.random().toString().slice(2, 6)}`), P;
|
|
@@ -2223,7 +2243,7 @@ function et(e, n, t) {
|
|
|
2223
2243
|
function A(b, T) {
|
|
2224
2244
|
const P = String(b.getAttribute("data-controltype")), $ = b.getAttribute("data-feature"), Q = $ ? JSON.parse($) : {};
|
|
2225
2245
|
Q.parentComponentInstance = l.value;
|
|
2226
|
-
let R =
|
|
2246
|
+
let R = me(P, Q);
|
|
2227
2247
|
t && t.onAcceptNewChildElement && (R = t.onAcceptNewChildElement(b, T, R));
|
|
2228
2248
|
const K = P.toLowerCase().replace("-", "_");
|
|
2229
2249
|
return R && !R.id && R.type === P && (R.id = `${K}_${Math.random().toString().slice(2, 6)}`), R;
|
|
@@ -2236,17 +2256,17 @@ function et(e, n, t) {
|
|
|
2236
2256
|
}
|
|
2237
2257
|
return l.value = {
|
|
2238
2258
|
canMove: u(),
|
|
2239
|
-
canSelectParent:
|
|
2259
|
+
canSelectParent: p(),
|
|
2240
2260
|
canDelete: i(),
|
|
2241
|
-
canNested: !
|
|
2261
|
+
canNested: !d(),
|
|
2242
2262
|
contents: n == null ? void 0 : n.schema.contents,
|
|
2243
2263
|
elementRef: e,
|
|
2244
2264
|
parent: (B = n == null ? void 0 : n.parent) == null ? void 0 : B.componentInstance,
|
|
2245
2265
|
schema: n == null ? void 0 : n.schema,
|
|
2246
2266
|
styles: r,
|
|
2247
2267
|
designerClass: a,
|
|
2248
|
-
canAccepts:
|
|
2249
|
-
getBelongedComponentInstance:
|
|
2268
|
+
canAccepts: s,
|
|
2269
|
+
getBelongedComponentInstance: c,
|
|
2250
2270
|
getDraggableDesignItemElement: f,
|
|
2251
2271
|
getDraggingDisplayText: v,
|
|
2252
2272
|
getPropConfig: w,
|
|
@@ -2269,22 +2289,22 @@ const ho = /* @__PURE__ */ q({
|
|
|
2269
2289
|
inputGroupClass: a,
|
|
2270
2290
|
inputType: l,
|
|
2271
2291
|
inputGroupStyle: u
|
|
2272
|
-
} = r,
|
|
2292
|
+
} = r, p = Ze(e), {
|
|
2273
2293
|
shouldShowAppendedButton: i
|
|
2274
|
-
} =
|
|
2275
|
-
onMouseEnter:
|
|
2294
|
+
} = p, d = Ye(e, n, r), {
|
|
2295
|
+
onMouseEnter: c,
|
|
2276
2296
|
onMouseLeave: f
|
|
2277
|
-
} =
|
|
2297
|
+
} = d, s = Xe(e, n, l, p), v = y(), h = Z("designer-host-service"), C = Z("design-item-context"), x = mo(C, h), A = et(v, C, x);
|
|
2278
2298
|
G(() => {
|
|
2279
2299
|
v.value.componentInstance = A;
|
|
2280
2300
|
}), n.expose(A.value);
|
|
2281
|
-
const E = Je(e, n,
|
|
2301
|
+
const E = Je(e, n, p, d, s), w = y();
|
|
2282
2302
|
return () => S("div", {
|
|
2283
2303
|
id: "inputGroup",
|
|
2284
2304
|
ref: v,
|
|
2285
2305
|
class: a.value,
|
|
2286
2306
|
style: u.value,
|
|
2287
|
-
onMouseenter:
|
|
2307
|
+
onMouseenter: c,
|
|
2288
2308
|
onMouseleave: f
|
|
2289
2309
|
}, [S("input", {
|
|
2290
2310
|
ref: w,
|
|
@@ -2392,8 +2412,7 @@ const bo = /* @__PURE__ */ new Map([
|
|
|
2392
2412
|
},
|
|
2393
2413
|
max: {
|
|
2394
2414
|
description: "",
|
|
2395
|
-
type: "number"
|
|
2396
|
-
default: 0
|
|
2415
|
+
type: "number"
|
|
2397
2416
|
},
|
|
2398
2417
|
onBlur: {
|
|
2399
2418
|
description: "",
|
|
@@ -2526,37 +2545,37 @@ const Be = {
|
|
|
2526
2545
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
2527
2546
|
}, tt = ue(Be, Bo, bo, Fo);
|
|
2528
2547
|
function nt(e, n, t, o) {
|
|
2529
|
-
const { format: r } = t, { displayValue: a, getRealValue: l, modelValue: u, onNumberValueChanged:
|
|
2548
|
+
const { format: r } = t, { displayValue: a, getRealValue: l, modelValue: u, onNumberValueChanged: p } = o;
|
|
2530
2549
|
function i() {
|
|
2531
|
-
const C = new
|
|
2532
|
-
return !(e.max && !new
|
|
2550
|
+
const C = new L(u.value || 0);
|
|
2551
|
+
return !(e.max && !new L(e.max).isNaN() && C.gte(new L(e.max)));
|
|
2533
2552
|
}
|
|
2534
|
-
function
|
|
2535
|
-
const C = new
|
|
2536
|
-
return !(e.min && !new
|
|
2553
|
+
function d() {
|
|
2554
|
+
const C = new L(u.value || 0);
|
|
2555
|
+
return !(e.min && !new L(e.min).isNaN() && C.lte(new L(e.min)));
|
|
2537
2556
|
}
|
|
2538
|
-
function
|
|
2557
|
+
function c(C) {
|
|
2539
2558
|
if (e.readonly || e.disabled)
|
|
2540
2559
|
return;
|
|
2541
|
-
const x = C === "up" ? i :
|
|
2560
|
+
const x = C === "up" ? i : d, A = C === "up" ? "plus" : "minus";
|
|
2542
2561
|
if (x()) {
|
|
2543
|
-
const w = new
|
|
2544
|
-
a.value = r(B),
|
|
2562
|
+
const w = new L(u.value || 0)[A](Number(e.step)), B = w.toFixed();
|
|
2563
|
+
a.value = r(B), p(l(w));
|
|
2545
2564
|
}
|
|
2546
2565
|
}
|
|
2547
2566
|
function f() {
|
|
2548
|
-
|
|
2567
|
+
c("up");
|
|
2549
2568
|
}
|
|
2550
|
-
function
|
|
2551
|
-
|
|
2569
|
+
function s() {
|
|
2570
|
+
c("down");
|
|
2552
2571
|
}
|
|
2553
2572
|
function v(C) {
|
|
2554
2573
|
f(), C.stopPropagation();
|
|
2555
2574
|
}
|
|
2556
2575
|
function h(C) {
|
|
2557
|
-
|
|
2576
|
+
s(), C.stopPropagation();
|
|
2558
2577
|
}
|
|
2559
|
-
return { canDownward:
|
|
2578
|
+
return { canDownward: d, canUpward: i, downward: s, onClickDownButton: h, onClickUpButton: v, upward: f };
|
|
2560
2579
|
}
|
|
2561
2580
|
function ot(e, n, t) {
|
|
2562
2581
|
const o = V(() => ({
|
|
@@ -2569,52 +2588,52 @@ function ot(e, n, t) {
|
|
|
2569
2588
|
function l(i) {
|
|
2570
2589
|
return i = i == null || i === "" ? "" : String(i), i = i.replace(new RegExp(e.prefix, "g"), "").replace(new RegExp(e.suffix, "g"), "").replace(/,/g, ""), e.groupSeparator && e.groupSeparator !== "," && (i = i.replace(new RegExp(`\\${e.groupSeparator}`, "g"), "")), e.decimalSeparator && e.decimalSeparator !== "." && (i = i.replace(new RegExp(`\\${e.decimalSeparator}`, "g"), ".")), i;
|
|
2571
2590
|
}
|
|
2572
|
-
function u(i,
|
|
2573
|
-
return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value,
|
|
2591
|
+
function u(i, d) {
|
|
2592
|
+
return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value, d) : i.toFormat(d);
|
|
2574
2593
|
}
|
|
2575
|
-
function
|
|
2576
|
-
const
|
|
2594
|
+
function p(i) {
|
|
2595
|
+
const d = l(i), c = new L(d, 10), f = r(c);
|
|
2577
2596
|
return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : u(f, o.value);
|
|
2578
2597
|
}
|
|
2579
|
-
return { cleanFormat: l, format:
|
|
2598
|
+
return { cleanFormat: l, format: p };
|
|
2580
2599
|
}
|
|
2581
2600
|
function rt(e, n) {
|
|
2582
2601
|
const t = y(""), o = y(e.modelValue), r = V(() => Number(e.precision) || 0);
|
|
2583
|
-
function a(
|
|
2584
|
-
return
|
|
2602
|
+
function a(d) {
|
|
2603
|
+
return d.toFixed(r.value);
|
|
2585
2604
|
}
|
|
2586
|
-
function l(
|
|
2587
|
-
return isNaN(
|
|
2605
|
+
function l(d) {
|
|
2606
|
+
return isNaN(d) || d === null || d === void 0 || d === "";
|
|
2588
2607
|
}
|
|
2589
|
-
function u(
|
|
2590
|
-
const
|
|
2591
|
-
return
|
|
2608
|
+
function u(d) {
|
|
2609
|
+
const c = l(e.max) ? null : new L(String(e.max), 10), f = l(e.min) ? null : new L(String(e.min), 10);
|
|
2610
|
+
return c && d.gt(c) ? c : f && d.lt(f) ? f : d;
|
|
2592
2611
|
}
|
|
2593
|
-
function d
|
|
2612
|
+
function p(d) {
|
|
2594
2613
|
if (e.parser)
|
|
2595
|
-
return isNaN(Number(
|
|
2596
|
-
let
|
|
2597
|
-
if (
|
|
2614
|
+
return isNaN(Number(d)) ? e.parser(d) : d;
|
|
2615
|
+
let c = u(new L(d, 10));
|
|
2616
|
+
if (c.isNaN()) {
|
|
2598
2617
|
if (e.canNull)
|
|
2599
2618
|
return null;
|
|
2600
|
-
const
|
|
2601
|
-
if (!
|
|
2602
|
-
|
|
2619
|
+
const s = new L("" + e.min, 10), v = new L("" + e.max, 10);
|
|
2620
|
+
if (!s.isNaN())
|
|
2621
|
+
c = s;
|
|
2603
2622
|
else if (!v.isNaN())
|
|
2604
|
-
|
|
2623
|
+
c = v;
|
|
2605
2624
|
else
|
|
2606
2625
|
return 0;
|
|
2607
2626
|
}
|
|
2608
|
-
return a(
|
|
2627
|
+
return a(c);
|
|
2609
2628
|
}
|
|
2610
|
-
function i(
|
|
2611
|
-
const
|
|
2612
|
-
o.value =
|
|
2629
|
+
function i(d) {
|
|
2630
|
+
const c = Number(d);
|
|
2631
|
+
o.value = c, n.emit("update:modelValue", c), n.emit("valueChange", c), n.emit("change", c);
|
|
2613
2632
|
}
|
|
2614
|
-
return { displayValue: t, getRealValue:
|
|
2633
|
+
return { displayValue: t, getRealValue: p, modelValue: o, isEmpty: l, onNumberValueChanged: i, precision: r, getValidNumberObject: u };
|
|
2615
2634
|
}
|
|
2616
2635
|
function Mo(e, n, t, o, r) {
|
|
2617
|
-
const { cleanFormat: a, format: l } = t, { displayValue: u, getRealValue:
|
|
2636
|
+
const { cleanFormat: a, format: l } = t, { displayValue: u, getRealValue: p, modelValue: i, isEmpty: d, onNumberValueChanged: c } = o, { downward: f, upward: s } = r, v = y(!1), h = V(() => u.value);
|
|
2618
2637
|
function C(w) {
|
|
2619
2638
|
var T;
|
|
2620
2639
|
if (w.stopPropagation(), v.value = !1, e.readonly || e.disabled)
|
|
@@ -2622,10 +2641,10 @@ function Mo(e, n, t, o, r) {
|
|
|
2622
2641
|
let B = (T = w.target) == null ? void 0 : T.value;
|
|
2623
2642
|
e.canNull || (B = B || 0);
|
|
2624
2643
|
const b = a(B);
|
|
2625
|
-
u.value = l(b),
|
|
2644
|
+
u.value = l(b), c(p(b)), n.emit("blur", { event: w, formatted: u.value, value: i.value });
|
|
2626
2645
|
}
|
|
2627
2646
|
function x(w) {
|
|
2628
|
-
w.stopPropagation(), v.value = !0, !(e.readonly || e.disabled) && (u.value =
|
|
2647
|
+
w.stopPropagation(), v.value = !0, !(e.readonly || e.disabled) && (u.value = d(i.value) || !e.showZero && i.value === "0" ? "" : String(i.value), n.emit("focus", { event: w, formatted: u.value, value: i.value }));
|
|
2629
2648
|
}
|
|
2630
2649
|
function A(w) {
|
|
2631
2650
|
var T;
|
|
@@ -2633,10 +2652,10 @@ function Mo(e, n, t, o, r) {
|
|
|
2633
2652
|
let B = (T = w.target) == null ? void 0 : T.value;
|
|
2634
2653
|
e.canNull || (B = B || 0);
|
|
2635
2654
|
const b = a(B);
|
|
2636
|
-
u.value = b,
|
|
2655
|
+
u.value = b, c(p(b));
|
|
2637
2656
|
}
|
|
2638
2657
|
function E(w) {
|
|
2639
|
-
w.key === "ArrowDown" && (w.preventDefault(), f()), w.key === "ArrowUp" && (w.preventDefault(),
|
|
2658
|
+
w.key === "ArrowDown" && (w.preventDefault(), f()), w.key === "ArrowUp" && (w.preventDefault(), s()), w.stopPropagation();
|
|
2640
2659
|
}
|
|
2641
2660
|
return { textBoxValue: h, onBlurTextBox: C, onFocusTextBox: x, onInput: A, onKeyDown: E, isFocus: v };
|
|
2642
2661
|
}
|
|
@@ -2647,26 +2666,26 @@ const ee = /* @__PURE__ */ q({
|
|
|
2647
2666
|
setup(e, n) {
|
|
2648
2667
|
const t = rt(e, n), o = ot(e, n, t), r = nt(e, n, o, t), a = Mo(e, n, o, t, r), l = Te(e, n, r), {
|
|
2649
2668
|
displayValue: u,
|
|
2650
|
-
modelValue:
|
|
2669
|
+
modelValue: p,
|
|
2651
2670
|
getRealValue: i
|
|
2652
|
-
} = t,
|
|
2653
|
-
format:
|
|
2671
|
+
} = t, d = Ke(e, n, a), {
|
|
2672
|
+
format: c
|
|
2654
2673
|
} = o, {
|
|
2655
2674
|
isFocus: f
|
|
2656
|
-
} = a,
|
|
2675
|
+
} = a, s = V(() => !e.disabled && !e.readonly && e.showButton);
|
|
2657
2676
|
return G(() => {
|
|
2658
2677
|
const v = i(e.modelValue);
|
|
2659
|
-
u.value =
|
|
2678
|
+
u.value = c(v);
|
|
2660
2679
|
}), N(() => [e.value], ([v]) => {
|
|
2661
2680
|
const h = i(v);
|
|
2662
|
-
|
|
2681
|
+
p.value = h, u.value = c(h);
|
|
2663
2682
|
}), N(() => [e.modelValue], ([v]) => {
|
|
2664
|
-
v !==
|
|
2683
|
+
v !== p.value && (p.value = v, !f.value && (u.value = c(i(v))));
|
|
2665
2684
|
}), N(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2666
|
-
u.value =
|
|
2685
|
+
u.value = c(p.value);
|
|
2667
2686
|
}), () => S("div", {
|
|
2668
2687
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2669
|
-
}, [
|
|
2688
|
+
}, [d(), s.value && l()]);
|
|
2670
2689
|
}
|
|
2671
2690
|
});
|
|
2672
2691
|
class Po extends we {
|
|
@@ -2710,11 +2729,11 @@ function Eo(e, n) {
|
|
|
2710
2729
|
hideNestedPaddingInDesginerView: a,
|
|
2711
2730
|
onAcceptMovedChildElement: l,
|
|
2712
2731
|
resolveComponentContext: u,
|
|
2713
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2732
|
+
triggerBelongedComponentToMoveWhenMoved: p,
|
|
2714
2733
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2715
|
-
} = Ce(e),
|
|
2716
|
-
function
|
|
2717
|
-
return new Po(f, n).getPropertyConfig(
|
|
2734
|
+
} = Ce(e), d = e.schema;
|
|
2735
|
+
function c(f) {
|
|
2736
|
+
return new Po(f, n).getPropertyConfig(d);
|
|
2718
2737
|
}
|
|
2719
2738
|
return {
|
|
2720
2739
|
canAccepts: t,
|
|
@@ -2723,9 +2742,9 @@ function Eo(e, n) {
|
|
|
2723
2742
|
hideNestedPaddingInDesginerView: a,
|
|
2724
2743
|
onAcceptMovedChildElement: l,
|
|
2725
2744
|
resolveComponentContext: u,
|
|
2726
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2745
|
+
triggerBelongedComponentToMoveWhenMoved: p,
|
|
2727
2746
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
2728
|
-
getPropsConfig:
|
|
2747
|
+
getPropsConfig: c
|
|
2729
2748
|
};
|
|
2730
2749
|
}
|
|
2731
2750
|
const Ao = /* @__PURE__ */ q({
|
|
@@ -2733,16 +2752,16 @@ const Ao = /* @__PURE__ */ q({
|
|
|
2733
2752
|
props: Be,
|
|
2734
2753
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
2735
2754
|
setup(e, n) {
|
|
2736
|
-
const t = rt(e, n), o = ot(e, n, t), r = nt(e, n, o, t), a = Te(e, n, r), l = y(), u = Z("designer-host-service"),
|
|
2755
|
+
const t = rt(e, n), o = ot(e, n, t), r = nt(e, n, o, t), a = Te(e, n, r), l = y(), u = Z("designer-host-service"), p = Z("design-item-context"), i = Eo(p, u), d = et(l, p, i);
|
|
2737
2756
|
G(() => {
|
|
2738
|
-
l.value.componentInstance =
|
|
2739
|
-
}), n.expose(
|
|
2740
|
-
const
|
|
2757
|
+
l.value.componentInstance = d, e.readonly = !0;
|
|
2758
|
+
}), n.expose(d.value);
|
|
2759
|
+
const c = y();
|
|
2741
2760
|
return () => S("div", {
|
|
2742
2761
|
ref: l,
|
|
2743
2762
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner test"
|
|
2744
2763
|
}, [S("input", {
|
|
2745
|
-
ref:
|
|
2764
|
+
ref: c,
|
|
2746
2765
|
class: "form-control",
|
|
2747
2766
|
readonly: !0,
|
|
2748
2767
|
placeholder: e.placeholder
|
|
@@ -2757,11 +2776,11 @@ ee.registerDesigner = (e, n, t) => {
|
|
|
2757
2776
|
};
|
|
2758
2777
|
xe(ee);
|
|
2759
2778
|
function ko(e, n, t, o, r, a, l) {
|
|
2760
|
-
const u = y(0),
|
|
2779
|
+
const u = y(0), p = y(""), i = y([]), d = y(""), c = y("");
|
|
2761
2780
|
function f() {
|
|
2762
|
-
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (
|
|
2781
|
+
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (d.value = F(e.value.propertyValue.value), n.value = F(e.value.editorOptions.enums));
|
|
2763
2782
|
}
|
|
2764
|
-
function
|
|
2783
|
+
function s() {
|
|
2765
2784
|
e.value.propertyType === "number" && (u.value = e.value.propertyValue.value);
|
|
2766
2785
|
}
|
|
2767
2786
|
function v() {
|
|
@@ -2770,11 +2789,11 @@ function ko(e, n, t, o, r, a, l) {
|
|
|
2770
2789
|
function h() {
|
|
2771
2790
|
if (t.value.id === "dataStates" && (i.value = F(e.value.editorOptions.dataStates), e.value.propertyValue.value)) {
|
|
2772
2791
|
const w = e.value.propertyValue.value, B = i.value.filter((b) => w.includes(b.value)).map((b) => b.value).join(",");
|
|
2773
|
-
|
|
2792
|
+
p.value = F(B);
|
|
2774
2793
|
}
|
|
2775
2794
|
}
|
|
2776
2795
|
function C() {
|
|
2777
|
-
t.value.id === "variable" && (
|
|
2796
|
+
t.value.id === "variable" && (c.value = e.value.propertyValue.value.path);
|
|
2778
2797
|
}
|
|
2779
2798
|
function x() {
|
|
2780
2799
|
if (t.value.id === "expression") {
|
|
@@ -2787,19 +2806,19 @@ function ko(e, n, t, o, r, a, l) {
|
|
|
2787
2806
|
t.value.id;
|
|
2788
2807
|
}
|
|
2789
2808
|
function E() {
|
|
2790
|
-
f(),
|
|
2809
|
+
f(), s(), C(), v(), h(), x(), A();
|
|
2791
2810
|
}
|
|
2792
2811
|
return {
|
|
2793
2812
|
numberConstValue: u,
|
|
2794
|
-
bindVariableValue:
|
|
2795
|
-
dataStatesBindValue:
|
|
2813
|
+
bindVariableValue: c,
|
|
2814
|
+
dataStatesBindValue: p,
|
|
2796
2815
|
dataStatesValueArray: i,
|
|
2797
|
-
constEnumBindValue:
|
|
2816
|
+
constEnumBindValue: d,
|
|
2798
2817
|
setValue: E
|
|
2799
2818
|
};
|
|
2800
2819
|
}
|
|
2801
|
-
function No(e, n, t, o, r, a, l, u,
|
|
2802
|
-
const f = y(!1),
|
|
2820
|
+
function No(e, n, t, o, r, a, l, u, p, i, d, c) {
|
|
2821
|
+
const f = y(!1), s = y({
|
|
2803
2822
|
propertyName: "",
|
|
2804
2823
|
/** 属性类型:boolean, string, number, enum */
|
|
2805
2824
|
propertyType: "",
|
|
@@ -2821,53 +2840,53 @@ function No(e, n, t, o, r, a, l, u, d, i, c, s) {
|
|
|
2821
2840
|
}, u.value = "否"));
|
|
2822
2841
|
}
|
|
2823
2842
|
function C() {
|
|
2824
|
-
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = F(r.value.dataStatesValue.value),
|
|
2843
|
+
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = F(r.value.dataStatesValue.value), p.value = F(n.value.editorOptions.dataStates));
|
|
2825
2844
|
}
|
|
2826
2845
|
function x() {
|
|
2827
2846
|
i.value = "", r.value.expressionValue && (r.value.expressionValue.value = "");
|
|
2828
2847
|
}
|
|
2829
2848
|
function A() {
|
|
2830
|
-
|
|
2849
|
+
d.value || (u.value = u.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = u, r.value.stateMachineValue.value.exist = u, B());
|
|
2831
2850
|
}
|
|
2832
2851
|
function E() {
|
|
2833
|
-
|
|
2852
|
+
s.value.propertyValue.value && s.value.propertyValue.value.includes("viewModel.stateMachine") && (r.value.customValue.value = "");
|
|
2834
2853
|
}
|
|
2835
2854
|
function w() {
|
|
2836
|
-
|
|
2855
|
+
s.value.propertyName = F(n.value.propertyName), s.value.propertyType = F(n.value.propertyType), s.value.propertyValue = F(n.value.propertyValue), s.value.hasPrefix = F(f);
|
|
2837
2856
|
}
|
|
2838
2857
|
function B() {
|
|
2839
|
-
if (!
|
|
2840
|
-
switch (w(),
|
|
2858
|
+
if (!d.value)
|
|
2859
|
+
switch (w(), s.value.propertyValue.type) {
|
|
2841
2860
|
case "const":
|
|
2842
|
-
(
|
|
2861
|
+
(s.value.propertyType === "enum" && s.value.propertyValue.value !== "" || s.value.propertyType === "number" && s.value.propertyValue.value != null || s.value.propertyType === "string") && (x(), e.emit("propertyEditorValueChanged", s));
|
|
2843
2862
|
break;
|
|
2844
2863
|
case "variable":
|
|
2845
|
-
|
|
2864
|
+
s.value.propertyValue.value.path !== "" && (x(), e.emit("propertyEditorValueChanged", s));
|
|
2846
2865
|
break;
|
|
2847
2866
|
case "custom":
|
|
2848
|
-
x(), E(), e.emit("propertyEditorValueChanged",
|
|
2867
|
+
x(), E(), e.emit("propertyEditorValueChanged", s);
|
|
2849
2868
|
break;
|
|
2850
2869
|
case "expression":
|
|
2851
|
-
i.value && e.emit("propertyEditorValueChanged",
|
|
2870
|
+
i.value && e.emit("propertyEditorValueChanged", s);
|
|
2852
2871
|
break;
|
|
2853
2872
|
case "stateMachine":
|
|
2854
|
-
|
|
2873
|
+
s.value.propertyValue.value.id && (x(), e.emit("propertyEditorValueChanged", s));
|
|
2855
2874
|
break;
|
|
2856
2875
|
case "dataStates":
|
|
2857
|
-
if (
|
|
2858
|
-
x(), e.emit("propertyEditorValueChanged",
|
|
2876
|
+
if (s.value.propertyValue.value !== "") {
|
|
2877
|
+
x(), e.emit("propertyEditorValueChanged", s);
|
|
2859
2878
|
break;
|
|
2860
2879
|
}
|
|
2861
2880
|
}
|
|
2862
2881
|
}
|
|
2863
2882
|
function b() {
|
|
2864
|
-
n.value.propertyValue = r.value[`${
|
|
2883
|
+
n.value.propertyValue = r.value[`${c.value.id}Value`], v(), h(), C(), B(), s.value.isNewVariable = !1;
|
|
2865
2884
|
}
|
|
2866
2885
|
return {
|
|
2867
2886
|
updateData: b,
|
|
2868
2887
|
changeState: A,
|
|
2869
2888
|
prefix: f,
|
|
2870
|
-
propertyEditorValueChange:
|
|
2889
|
+
propertyEditorValueChange: s
|
|
2871
2890
|
};
|
|
2872
2891
|
}
|
|
2873
2892
|
var he = function(e, n) {
|
|
@@ -2893,22 +2912,22 @@ function Io(e, n, t, o) {
|
|
|
2893
2912
|
});
|
|
2894
2913
|
}
|
|
2895
2914
|
return new (t || (t = Promise))(function(a, l) {
|
|
2896
|
-
function u(
|
|
2915
|
+
function u(d) {
|
|
2897
2916
|
try {
|
|
2898
|
-
i(o.next(
|
|
2899
|
-
} catch (
|
|
2900
|
-
l(
|
|
2917
|
+
i(o.next(d));
|
|
2918
|
+
} catch (c) {
|
|
2919
|
+
l(c);
|
|
2901
2920
|
}
|
|
2902
2921
|
}
|
|
2903
|
-
function d
|
|
2922
|
+
function p(d) {
|
|
2904
2923
|
try {
|
|
2905
|
-
i(o.throw(
|
|
2906
|
-
} catch (
|
|
2907
|
-
l(
|
|
2924
|
+
i(o.throw(d));
|
|
2925
|
+
} catch (c) {
|
|
2926
|
+
l(c);
|
|
2908
2927
|
}
|
|
2909
2928
|
}
|
|
2910
|
-
function i(
|
|
2911
|
-
|
|
2929
|
+
function i(d) {
|
|
2930
|
+
d.done ? a(d.value) : r(d.value).then(u, p);
|
|
2912
2931
|
}
|
|
2913
2932
|
i((o = o.apply(e, n || [])).next());
|
|
2914
2933
|
});
|
|
@@ -2922,11 +2941,11 @@ function at(e, n) {
|
|
|
2922
2941
|
return this;
|
|
2923
2942
|
}), l;
|
|
2924
2943
|
function u(i) {
|
|
2925
|
-
return function(
|
|
2926
|
-
return
|
|
2944
|
+
return function(d) {
|
|
2945
|
+
return p([i, d]);
|
|
2927
2946
|
};
|
|
2928
2947
|
}
|
|
2929
|
-
function
|
|
2948
|
+
function p(i) {
|
|
2930
2949
|
if (o) throw new TypeError("Generator is already executing.");
|
|
2931
2950
|
for (; l && (l = 0, i[0] && (t = 0)), t; ) try {
|
|
2932
2951
|
if (o = 1, r && (a = i[0] & 2 ? r.return : i[0] ? r.throw || ((a = r.return) && a.call(r), 0) : r.next) && !(a = a.call(r, i[1])).done) return a;
|
|
@@ -2964,8 +2983,8 @@ function at(e, n) {
|
|
|
2964
2983
|
continue;
|
|
2965
2984
|
}
|
|
2966
2985
|
i = n.call(e, t);
|
|
2967
|
-
} catch (
|
|
2968
|
-
i = [6,
|
|
2986
|
+
} catch (d) {
|
|
2987
|
+
i = [6, d], r = 0;
|
|
2969
2988
|
} finally {
|
|
2970
2989
|
o = a = 0;
|
|
2971
2990
|
}
|
|
@@ -3014,36 +3033,36 @@ function Oo(e, n, t) {
|
|
|
3014
3033
|
return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", l), r[Symbol.asyncIterator] = function() {
|
|
3015
3034
|
return this;
|
|
3016
3035
|
}, r;
|
|
3017
|
-
function l(
|
|
3036
|
+
function l(s) {
|
|
3018
3037
|
return function(v) {
|
|
3019
|
-
return Promise.resolve(v).then(
|
|
3038
|
+
return Promise.resolve(v).then(s, c);
|
|
3020
3039
|
};
|
|
3021
3040
|
}
|
|
3022
|
-
function u(
|
|
3023
|
-
o[
|
|
3041
|
+
function u(s, v) {
|
|
3042
|
+
o[s] && (r[s] = function(h) {
|
|
3024
3043
|
return new Promise(function(C, x) {
|
|
3025
|
-
a.push([
|
|
3044
|
+
a.push([s, h, C, x]) > 1 || p(s, h);
|
|
3026
3045
|
});
|
|
3027
|
-
}, v && (r[
|
|
3046
|
+
}, v && (r[s] = v(r[s])));
|
|
3028
3047
|
}
|
|
3029
|
-
function
|
|
3048
|
+
function p(s, v) {
|
|
3030
3049
|
try {
|
|
3031
|
-
i(o[
|
|
3050
|
+
i(o[s](v));
|
|
3032
3051
|
} catch (h) {
|
|
3033
3052
|
f(a[0][3], h);
|
|
3034
3053
|
}
|
|
3035
3054
|
}
|
|
3036
|
-
function i(
|
|
3037
|
-
|
|
3055
|
+
function i(s) {
|
|
3056
|
+
s.value instanceof Y ? Promise.resolve(s.value.v).then(d, c) : f(a[0][2], s);
|
|
3038
3057
|
}
|
|
3039
|
-
function
|
|
3040
|
-
|
|
3058
|
+
function d(s) {
|
|
3059
|
+
p("next", s);
|
|
3041
3060
|
}
|
|
3042
|
-
function s
|
|
3043
|
-
|
|
3061
|
+
function c(s) {
|
|
3062
|
+
p("throw", s);
|
|
3044
3063
|
}
|
|
3045
|
-
function f(
|
|
3046
|
-
|
|
3064
|
+
function f(s, v) {
|
|
3065
|
+
s(v), a.shift(), a.length && p(a[0][0], a[0][1]);
|
|
3047
3066
|
}
|
|
3048
3067
|
}
|
|
3049
3068
|
function Do(e) {
|
|
@@ -3054,13 +3073,13 @@ function Do(e) {
|
|
|
3054
3073
|
}, t);
|
|
3055
3074
|
function o(a) {
|
|
3056
3075
|
t[a] = e[a] && function(l) {
|
|
3057
|
-
return new Promise(function(u,
|
|
3058
|
-
l = e[a](l), r(u,
|
|
3076
|
+
return new Promise(function(u, p) {
|
|
3077
|
+
l = e[a](l), r(u, p, l.done, l.value);
|
|
3059
3078
|
});
|
|
3060
3079
|
};
|
|
3061
3080
|
}
|
|
3062
|
-
function r(a, l, u,
|
|
3063
|
-
Promise.resolve(
|
|
3081
|
+
function r(a, l, u, p) {
|
|
3082
|
+
Promise.resolve(p).then(function(i) {
|
|
3064
3083
|
a({ value: i, done: u });
|
|
3065
3084
|
}, l);
|
|
3066
3085
|
}
|
|
@@ -3101,34 +3120,34 @@ var te = function() {
|
|
|
3101
3120
|
if (l)
|
|
3102
3121
|
if (this._parentage = null, Array.isArray(l))
|
|
3103
3122
|
try {
|
|
3104
|
-
for (var u = X(l),
|
|
3105
|
-
var i =
|
|
3123
|
+
for (var u = X(l), p = u.next(); !p.done; p = u.next()) {
|
|
3124
|
+
var i = p.value;
|
|
3106
3125
|
i.remove(this);
|
|
3107
3126
|
}
|
|
3108
3127
|
} catch (h) {
|
|
3109
3128
|
n = { error: h };
|
|
3110
3129
|
} finally {
|
|
3111
3130
|
try {
|
|
3112
|
-
|
|
3131
|
+
p && !p.done && (t = u.return) && t.call(u);
|
|
3113
3132
|
} finally {
|
|
3114
3133
|
if (n) throw n.error;
|
|
3115
3134
|
}
|
|
3116
3135
|
}
|
|
3117
3136
|
else
|
|
3118
3137
|
l.remove(this);
|
|
3119
|
-
var
|
|
3120
|
-
if (I(
|
|
3138
|
+
var d = this.initialTeardown;
|
|
3139
|
+
if (I(d))
|
|
3121
3140
|
try {
|
|
3122
|
-
|
|
3141
|
+
d();
|
|
3123
3142
|
} catch (h) {
|
|
3124
3143
|
a = h instanceof de ? h.errors : [h];
|
|
3125
3144
|
}
|
|
3126
|
-
var
|
|
3127
|
-
if (
|
|
3145
|
+
var c = this._finalizers;
|
|
3146
|
+
if (c) {
|
|
3128
3147
|
this._finalizers = null;
|
|
3129
3148
|
try {
|
|
3130
|
-
for (var f = X(
|
|
3131
|
-
var v =
|
|
3149
|
+
for (var f = X(c), s = f.next(); !s.done; s = f.next()) {
|
|
3150
|
+
var v = s.value;
|
|
3132
3151
|
try {
|
|
3133
3152
|
De(v);
|
|
3134
3153
|
} catch (h) {
|
|
@@ -3139,7 +3158,7 @@ var te = function() {
|
|
|
3139
3158
|
o = { error: h };
|
|
3140
3159
|
} finally {
|
|
3141
3160
|
try {
|
|
3142
|
-
|
|
3161
|
+
s && !s.done && (r = f.return) && r.call(f);
|
|
3143
3162
|
} finally {
|
|
3144
3163
|
if (o) throw o.error;
|
|
3145
3164
|
}
|
|
@@ -3190,7 +3209,7 @@ var st = {
|
|
|
3190
3209
|
Promise: void 0,
|
|
3191
3210
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
3192
3211
|
useDeprecatedNextContext: !1
|
|
3193
|
-
},
|
|
3212
|
+
}, jo = {
|
|
3194
3213
|
setTimeout: function(e, n) {
|
|
3195
3214
|
for (var t = [], o = 2; o < arguments.length; o++)
|
|
3196
3215
|
t[o - 2] = arguments[o];
|
|
@@ -3202,11 +3221,11 @@ var st = {
|
|
|
3202
3221
|
delegate: void 0
|
|
3203
3222
|
};
|
|
3204
3223
|
function ct(e) {
|
|
3205
|
-
|
|
3224
|
+
jo.setTimeout(function() {
|
|
3206
3225
|
throw e;
|
|
3207
3226
|
});
|
|
3208
3227
|
}
|
|
3209
|
-
function
|
|
3228
|
+
function je() {
|
|
3210
3229
|
}
|
|
3211
3230
|
function re(e) {
|
|
3212
3231
|
e();
|
|
@@ -3242,9 +3261,9 @@ var Fe = function(e) {
|
|
|
3242
3261
|
this.unsubscribe();
|
|
3243
3262
|
}
|
|
3244
3263
|
}, n;
|
|
3245
|
-
}(te),
|
|
3264
|
+
}(te), Lo = Function.prototype.bind;
|
|
3246
3265
|
function pe(e, n) {
|
|
3247
|
-
return
|
|
3266
|
+
return Lo.call(e, n);
|
|
3248
3267
|
}
|
|
3249
3268
|
var $o = function() {
|
|
3250
3269
|
function e(n) {
|
|
@@ -3309,9 +3328,9 @@ function Uo(e) {
|
|
|
3309
3328
|
}
|
|
3310
3329
|
var Ro = {
|
|
3311
3330
|
closed: !0,
|
|
3312
|
-
next:
|
|
3331
|
+
next: je,
|
|
3313
3332
|
error: Uo,
|
|
3314
|
-
complete:
|
|
3333
|
+
complete: je
|
|
3315
3334
|
}, Me = function() {
|
|
3316
3335
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
3317
3336
|
}();
|
|
@@ -3335,8 +3354,8 @@ var _ = function() {
|
|
|
3335
3354
|
}, e.prototype.subscribe = function(n, t, o) {
|
|
3336
3355
|
var r = this, a = qo(n) ? n : new be(n, t, o);
|
|
3337
3356
|
return re(function() {
|
|
3338
|
-
var l = r, u = l.operator,
|
|
3339
|
-
a.add(u ? u.call(a,
|
|
3357
|
+
var l = r, u = l.operator, p = l.source;
|
|
3358
|
+
a.add(u ? u.call(a, p) : p ? r._subscribe(a) : r._trySubscribe(a));
|
|
3340
3359
|
}), a;
|
|
3341
3360
|
}, e.prototype._trySubscribe = function(n) {
|
|
3342
3361
|
try {
|
|
@@ -3346,13 +3365,13 @@ var _ = function() {
|
|
|
3346
3365
|
}
|
|
3347
3366
|
}, e.prototype.forEach = function(n, t) {
|
|
3348
3367
|
var o = this;
|
|
3349
|
-
return t =
|
|
3368
|
+
return t = Le(t), new t(function(r, a) {
|
|
3350
3369
|
var l = new be({
|
|
3351
3370
|
next: function(u) {
|
|
3352
3371
|
try {
|
|
3353
3372
|
n(u);
|
|
3354
|
-
} catch (
|
|
3355
|
-
a(
|
|
3373
|
+
} catch (p) {
|
|
3374
|
+
a(p), l.unsubscribe();
|
|
3356
3375
|
}
|
|
3357
3376
|
},
|
|
3358
3377
|
error: a,
|
|
@@ -3371,7 +3390,7 @@ var _ = function() {
|
|
|
3371
3390
|
return Ho(n)(this);
|
|
3372
3391
|
}, e.prototype.toPromise = function(n) {
|
|
3373
3392
|
var t = this;
|
|
3374
|
-
return n =
|
|
3393
|
+
return n = Le(n), new n(function(o, r) {
|
|
3375
3394
|
var a;
|
|
3376
3395
|
t.subscribe(function(l) {
|
|
3377
3396
|
return a = l;
|
|
@@ -3385,7 +3404,7 @@ var _ = function() {
|
|
|
3385
3404
|
return new e(n);
|
|
3386
3405
|
}, e;
|
|
3387
3406
|
}();
|
|
3388
|
-
function
|
|
3407
|
+
function Le(e) {
|
|
3389
3408
|
var n;
|
|
3390
3409
|
return (n = e ?? st.Promise) !== null && n !== void 0 ? n : Promise;
|
|
3391
3410
|
}
|
|
@@ -3417,22 +3436,22 @@ function dt(e, n, t, o, r) {
|
|
|
3417
3436
|
var Wo = function(e) {
|
|
3418
3437
|
z(n, e);
|
|
3419
3438
|
function n(t, o, r, a, l, u) {
|
|
3420
|
-
var
|
|
3421
|
-
return
|
|
3439
|
+
var p = e.call(this, t) || this;
|
|
3440
|
+
return p.onFinalize = l, p.shouldUnsubscribe = u, p._next = o ? function(i) {
|
|
3422
3441
|
try {
|
|
3423
3442
|
o(i);
|
|
3424
|
-
} catch (
|
|
3425
|
-
t.error(
|
|
3443
|
+
} catch (d) {
|
|
3444
|
+
t.error(d);
|
|
3426
3445
|
}
|
|
3427
|
-
} : e.prototype._next,
|
|
3446
|
+
} : e.prototype._next, p._error = a ? function(i) {
|
|
3428
3447
|
try {
|
|
3429
3448
|
a(i);
|
|
3430
|
-
} catch (
|
|
3431
|
-
t.error(
|
|
3449
|
+
} catch (d) {
|
|
3450
|
+
t.error(d);
|
|
3432
3451
|
} finally {
|
|
3433
3452
|
this.unsubscribe();
|
|
3434
3453
|
}
|
|
3435
|
-
} : e.prototype._error,
|
|
3454
|
+
} : e.prototype._error, p._complete = r ? function() {
|
|
3436
3455
|
try {
|
|
3437
3456
|
r();
|
|
3438
3457
|
} catch (i) {
|
|
@@ -3440,7 +3459,7 @@ var Wo = function(e) {
|
|
|
3440
3459
|
} finally {
|
|
3441
3460
|
this.unsubscribe();
|
|
3442
3461
|
}
|
|
3443
|
-
} : e.prototype._complete,
|
|
3462
|
+
} : e.prototype._complete, p;
|
|
3444
3463
|
}
|
|
3445
3464
|
return n.prototype.unsubscribe = function() {
|
|
3446
3465
|
var t;
|
|
@@ -3473,8 +3492,8 @@ var Wo = function(e) {
|
|
|
3473
3492
|
o.currentObservers || (o.currentObservers = Array.from(o.observers));
|
|
3474
3493
|
try {
|
|
3475
3494
|
for (var l = X(o.currentObservers), u = l.next(); !u.done; u = l.next()) {
|
|
3476
|
-
var
|
|
3477
|
-
|
|
3495
|
+
var p = u.value;
|
|
3496
|
+
p.next(t);
|
|
3478
3497
|
}
|
|
3479
3498
|
} catch (i) {
|
|
3480
3499
|
r = { error: i };
|
|
@@ -3664,10 +3683,10 @@ var ft = function(e) {
|
|
|
3664
3683
|
function vt(e) {
|
|
3665
3684
|
return I(e == null ? void 0 : e.then);
|
|
3666
3685
|
}
|
|
3667
|
-
function
|
|
3686
|
+
function yt(e) {
|
|
3668
3687
|
return I(e[Me]);
|
|
3669
3688
|
}
|
|
3670
|
-
function
|
|
3689
|
+
function mt(e) {
|
|
3671
3690
|
return Symbol.asyncIterator && I(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
3672
3691
|
}
|
|
3673
3692
|
function ht(e) {
|
|
@@ -3718,13 +3737,13 @@ function Ee(e) {
|
|
|
3718
3737
|
if (e instanceof _)
|
|
3719
3738
|
return e;
|
|
3720
3739
|
if (e != null) {
|
|
3721
|
-
if (
|
|
3740
|
+
if (yt(e))
|
|
3722
3741
|
return rr(e);
|
|
3723
3742
|
if (ft(e))
|
|
3724
3743
|
return ar(e);
|
|
3725
3744
|
if (vt(e))
|
|
3726
3745
|
return ir(e);
|
|
3727
|
-
if (
|
|
3746
|
+
if (mt(e))
|
|
3728
3747
|
return wt(e);
|
|
3729
3748
|
if (gt(e))
|
|
3730
3749
|
return lr(e);
|
|
@@ -3792,27 +3811,27 @@ function sr(e, n) {
|
|
|
3792
3811
|
var t, o, r, a;
|
|
3793
3812
|
return Io(this, void 0, void 0, function() {
|
|
3794
3813
|
var l, u;
|
|
3795
|
-
return at(this, function(
|
|
3796
|
-
switch (
|
|
3814
|
+
return at(this, function(p) {
|
|
3815
|
+
switch (p.label) {
|
|
3797
3816
|
case 0:
|
|
3798
|
-
|
|
3817
|
+
p.trys.push([0, 5, 6, 11]), t = Do(e), p.label = 1;
|
|
3799
3818
|
case 1:
|
|
3800
3819
|
return [4, t.next()];
|
|
3801
3820
|
case 2:
|
|
3802
|
-
if (o =
|
|
3821
|
+
if (o = p.sent(), !!o.done) return [3, 4];
|
|
3803
3822
|
if (l = o.value, n.next(l), n.closed)
|
|
3804
3823
|
return [2];
|
|
3805
|
-
|
|
3824
|
+
p.label = 3;
|
|
3806
3825
|
case 3:
|
|
3807
3826
|
return [3, 1];
|
|
3808
3827
|
case 4:
|
|
3809
3828
|
return [3, 11];
|
|
3810
3829
|
case 5:
|
|
3811
|
-
return u =
|
|
3830
|
+
return u = p.sent(), r = { error: u }, [3, 11];
|
|
3812
3831
|
case 6:
|
|
3813
|
-
return
|
|
3832
|
+
return p.trys.push([6, , 9, 10]), o && !o.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
|
|
3814
3833
|
case 7:
|
|
3815
|
-
|
|
3834
|
+
p.sent(), p.label = 8;
|
|
3816
3835
|
case 8:
|
|
3817
3836
|
return [3, 10];
|
|
3818
3837
|
case 9:
|
|
@@ -3908,15 +3927,15 @@ function Tt(e, n) {
|
|
|
3908
3927
|
function vr(e, n) {
|
|
3909
3928
|
return Tt(St(e), n);
|
|
3910
3929
|
}
|
|
3911
|
-
function
|
|
3930
|
+
function yr(e, n) {
|
|
3912
3931
|
if (e != null) {
|
|
3913
|
-
if (
|
|
3932
|
+
if (yt(e))
|
|
3914
3933
|
return cr(e, n);
|
|
3915
3934
|
if (ft(e))
|
|
3916
3935
|
return pr(e, n);
|
|
3917
3936
|
if (vt(e))
|
|
3918
3937
|
return dr(e, n);
|
|
3919
|
-
if (
|
|
3938
|
+
if (mt(e))
|
|
3920
3939
|
return Tt(e, n);
|
|
3921
3940
|
if (gt(e))
|
|
3922
3941
|
return fr(e, n);
|
|
@@ -3925,14 +3944,14 @@ function mr(e, n) {
|
|
|
3925
3944
|
}
|
|
3926
3945
|
throw ht(e);
|
|
3927
3946
|
}
|
|
3928
|
-
function
|
|
3929
|
-
return n ?
|
|
3947
|
+
function mr(e, n) {
|
|
3948
|
+
return n ? yr(e, n) : Ee(e);
|
|
3930
3949
|
}
|
|
3931
3950
|
function hr() {
|
|
3932
3951
|
for (var e = [], n = 0; n < arguments.length; n++)
|
|
3933
3952
|
e[n] = arguments[n];
|
|
3934
3953
|
var t = nr(e);
|
|
3935
|
-
return
|
|
3954
|
+
return mr(e, t);
|
|
3936
3955
|
}
|
|
3937
3956
|
function br(e, n) {
|
|
3938
3957
|
return n === void 0 && (n = Jo), Pe(function(t, o) {
|
|
@@ -3943,16 +3962,16 @@ function br(e, n) {
|
|
|
3943
3962
|
a = null, o.next(i);
|
|
3944
3963
|
}
|
|
3945
3964
|
};
|
|
3946
|
-
function
|
|
3947
|
-
var i = l + e,
|
|
3948
|
-
if (
|
|
3949
|
-
r = this.schedule(void 0, i -
|
|
3965
|
+
function p() {
|
|
3966
|
+
var i = l + e, d = n.now();
|
|
3967
|
+
if (d < i) {
|
|
3968
|
+
r = this.schedule(void 0, i - d), o.add(r);
|
|
3950
3969
|
return;
|
|
3951
3970
|
}
|
|
3952
3971
|
u();
|
|
3953
3972
|
}
|
|
3954
3973
|
t.subscribe(dt(o, function(i) {
|
|
3955
|
-
a = i, l = n.now(), r || (r = n.schedule(
|
|
3974
|
+
a = i, l = n.now(), r || (r = n.schedule(p, e), o.add(r));
|
|
3956
3975
|
}, function() {
|
|
3957
3976
|
u(), o.complete();
|
|
3958
3977
|
}, void 0, function() {
|
|
@@ -3967,9 +3986,9 @@ const fe = /* @__PURE__ */ q({
|
|
|
3967
3986
|
setup(e, n) {
|
|
3968
3987
|
const t = y(kn), o = y(""), r = y("const"), a = y([]), l = y(!1);
|
|
3969
3988
|
let u;
|
|
3970
|
-
const
|
|
3971
|
-
let
|
|
3972
|
-
const f = y([]),
|
|
3989
|
+
const p = y(""), i = y(""), d = y([]);
|
|
3990
|
+
let c;
|
|
3991
|
+
const f = y([]), s = y("是");
|
|
3973
3992
|
y("");
|
|
3974
3993
|
const v = y(!1), h = y("<span class='f-icon f-icon-more-horizontal'></span>"), C = y(!1), x = y([]), {
|
|
3975
3994
|
numberConstValue: A,
|
|
@@ -3978,12 +3997,12 @@ const fe = /* @__PURE__ */ q({
|
|
|
3978
3997
|
dataStatesValueArray: B,
|
|
3979
3998
|
constEnumBindValue: b,
|
|
3980
3999
|
setValue: T
|
|
3981
|
-
} = ko(t, a, r,
|
|
4000
|
+
} = ko(t, a, r, c, s, o, v), {
|
|
3982
4001
|
updateData: P,
|
|
3983
4002
|
changeState: $,
|
|
3984
4003
|
prefix: Q,
|
|
3985
4004
|
propertyEditorValueChange: R
|
|
3986
|
-
} = No(n, t, b, a, k, f,
|
|
4005
|
+
} = No(n, t, b, a, k, f, c, s, B, o, C, r);
|
|
3987
4006
|
function K() {
|
|
3988
4007
|
x.value = An.value.filter((m) => t.value.editorOptions.types.includes(m.id));
|
|
3989
4008
|
}
|
|
@@ -3994,7 +4013,7 @@ const fe = /* @__PURE__ */ q({
|
|
|
3994
4013
|
M(), r.value.id === "variable" && t.value.propertyValue.value === void 0 && (t.value.propertyValue = F(k.value.variableValue)), k.value[`${r.value.id}Value`] = F(t.value.propertyValue), T();
|
|
3995
4014
|
}
|
|
3996
4015
|
function ne(m) {
|
|
3997
|
-
r.value = F(x.value.find((O) => O.label === m[0].label)), r.value.id === "expression" && (k.value.expressionValue.value && (o.value = k.value.expressionValue.value.value), v.value = !0), r.value.id === "custom" &&
|
|
4016
|
+
r.value = F(x.value.find((O) => O.label === m[0].label)), r.value.id === "expression" && (k.value.expressionValue.value && (o.value = k.value.expressionValue.value.value), v.value = !0), r.value.id === "custom" && jt(), P();
|
|
3998
4017
|
}
|
|
3999
4018
|
function ce(m) {
|
|
4000
4019
|
b.value = F(m.value), t.value.propertyValue.value = F(m.value), k.value.constValue.value = F(m.value), P();
|
|
@@ -4021,7 +4040,7 @@ const fe = /* @__PURE__ */ q({
|
|
|
4021
4040
|
}
|
|
4022
4041
|
function At(m) {
|
|
4023
4042
|
var O;
|
|
4024
|
-
m === ((O = t.value.editorOptions.variables) == null ? void 0 : O.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = u, t.value.propertyValue.value.field =
|
|
4043
|
+
m === ((O = t.value.editorOptions.variables) == null ? void 0 : O.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = u, t.value.propertyValue.value.field = p, t.value.propertyValue.value.fullPath = u, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, R.value.isNewVariable = !0, t.value.editorOptions.variables.push(F(t.value.propertyValue.value)), k.value.variableValue.value = F(t.value.propertyValue.value));
|
|
4025
4044
|
}
|
|
4026
4045
|
function kt(m) {
|
|
4027
4046
|
!m || !m.selections || m.selections.length < 1 || (k.value.variableValue.value.category = F(m.selections[0].category), k.value.variableValue.value.path = F(m.selections[0].path), k.value.variableValue.value.fullPath = F(m.selections[0].fullPath), k.value.variableValue.value.field = F(m.selections[0].field), E.value = F(m.value), P());
|
|
@@ -4030,13 +4049,13 @@ const fe = /* @__PURE__ */ q({
|
|
|
4030
4049
|
t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "", r.value.id === "variable" && (E.value = t.value.propertyValue.value.path), P();
|
|
4031
4050
|
}
|
|
4032
4051
|
function Ae() {
|
|
4033
|
-
|
|
4052
|
+
d.value = F(t.value.editorOptions.variables);
|
|
4034
4053
|
}
|
|
4035
4054
|
const It = (m) => {
|
|
4036
4055
|
const O = t.value.editorOptions.getVariables, U = {
|
|
4037
4056
|
showDialog: !0
|
|
4038
4057
|
};
|
|
4039
|
-
return O && (
|
|
4058
|
+
return O && (d.value = O(), m && (m.data = d)), hr(U);
|
|
4040
4059
|
};
|
|
4041
4060
|
function Ot(m) {
|
|
4042
4061
|
const O = {
|
|
@@ -4044,18 +4063,18 @@ const fe = /* @__PURE__ */ q({
|
|
|
4044
4063
|
name: m[0].exist,
|
|
4045
4064
|
exist: m[0].name
|
|
4046
4065
|
};
|
|
4047
|
-
k.value.stateMachineValue.value = F(O),
|
|
4066
|
+
k.value.stateMachineValue.value = F(O), s.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", c = F(O.id), P();
|
|
4048
4067
|
}
|
|
4049
4068
|
function Dt() {
|
|
4050
|
-
f.value = F(t.value.editorOptions.stateMachine),
|
|
4069
|
+
f.value = F(t.value.editorOptions.stateMachine), s.value = k.value.stateMachineValue.value.exist === "是" ? "是" : "否";
|
|
4051
4070
|
}
|
|
4052
4071
|
const ke = new pt();
|
|
4053
|
-
function
|
|
4072
|
+
function jt() {
|
|
4054
4073
|
ke.pipe(br(700)).subscribe((m) => {
|
|
4055
4074
|
k.value.customValue.value = m, P();
|
|
4056
4075
|
});
|
|
4057
4076
|
}
|
|
4058
|
-
function
|
|
4077
|
+
function Lt(m) {
|
|
4059
4078
|
ke.next(m);
|
|
4060
4079
|
}
|
|
4061
4080
|
function $t() {
|
|
@@ -4081,7 +4100,7 @@ const fe = /* @__PURE__ */ q({
|
|
|
4081
4100
|
enableClear: !0,
|
|
4082
4101
|
valueField: "path",
|
|
4083
4102
|
textField: "fullPath",
|
|
4084
|
-
data:
|
|
4103
|
+
data: d.value,
|
|
4085
4104
|
beforeShow: It,
|
|
4086
4105
|
readonly: C.value,
|
|
4087
4106
|
editable: !1,
|
|
@@ -4105,7 +4124,7 @@ const fe = /* @__PURE__ */ q({
|
|
|
4105
4124
|
class: "form-control",
|
|
4106
4125
|
placeholder: "输入自定义内容",
|
|
4107
4126
|
"onUpdate:modelValue": (m) => k.value.customValue.value = m,
|
|
4108
|
-
onChange: (m) =>
|
|
4127
|
+
onChange: (m) => Lt(m.target.value),
|
|
4109
4128
|
disabled: C.value
|
|
4110
4129
|
}, null), [[Oe, k.value.customValue.value]])]);
|
|
4111
4130
|
}
|
|
@@ -4128,12 +4147,12 @@ const fe = /* @__PURE__ */ q({
|
|
|
4128
4147
|
}, [S("div", {
|
|
4129
4148
|
class: "f-stateMachine-exist",
|
|
4130
4149
|
onClick: $
|
|
4131
|
-
}, [
|
|
4150
|
+
}, [s.value]), S("div", {
|
|
4132
4151
|
class: "f-stateMachine-combo",
|
|
4133
4152
|
style: "border:unset"
|
|
4134
4153
|
}, [S(H, {
|
|
4135
|
-
modelValue:
|
|
4136
|
-
"onUpdate:modelValue": (m) =>
|
|
4154
|
+
modelValue: c,
|
|
4155
|
+
"onUpdate:modelValue": (m) => c = m,
|
|
4137
4156
|
placeholder: "",
|
|
4138
4157
|
viewType: "text",
|
|
4139
4158
|
enableClear: !1,
|
|
@@ -4230,7 +4249,7 @@ const fe = /* @__PURE__ */ q({
|
|
|
4230
4249
|
}
|
|
4231
4250
|
return G(() => {
|
|
4232
4251
|
K(), D(), Ae(), Dt(), t.value.hasPrefix && t.value.hasPrefix === 2 && (Q.value = !0), t.value.controlName !== void 0 && (l.value = !0);
|
|
4233
|
-
}), () => S(
|
|
4252
|
+
}), () => S(ye, null, [S("div", {
|
|
4234
4253
|
class: "f-page-single-property-editor-component clearfix"
|
|
4235
4254
|
}, [Yt(), Zt()])]);
|
|
4236
4255
|
}
|