@farris/ui-vue 1.3.0 → 1.3.1
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 +1 -1
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +472 -366
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +472 -480
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +225 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +615 -517
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +325 -333
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +578 -472
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +49 -49
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +832 -722
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +303 -981
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +8 -8
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +335 -1002
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4429 -4312
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3037 -3020
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2216 -2119
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +914 -883
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +223 -231
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1691 -2187
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +143 -136
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +250 -258
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +1 -1
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2672 -3438
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +2965 -2970
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1650 -1602
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +684 -675
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +453 -461
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +604 -507
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +402 -378
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +348 -1019
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +1658 -1666
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +5209 -5088
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +4329 -4213
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +905 -1357
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +517 -420
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +588 -491
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1376 -1965
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +1 -1
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1073 -1905
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +809 -1237
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +198 -206
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1297 -1200
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +609 -507
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +3391 -3758
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +1 -1
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +544 -447
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +247 -255
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +146 -154
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +700 -675
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +956 -1786
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4963 -5617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +158 -161
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +436 -1124
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +92 -100
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +571 -1210
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +239 -247
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +445 -348
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2278 -3031
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +311 -319
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +215 -223
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +468 -371
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1271 -1174
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +469 -477
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3060 -3065
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2476 -2481
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +374 -382
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +248 -256
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +414 -1093
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -506
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +20216 -21844
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/index.d.ts +8 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/condition/src/types.d.ts +2 -1
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +8 -5
- package/types/data-grid/src/data-grid.component.d.ts +3 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +7 -9
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +1 -2
- package/types/designer-canvas/src/types.d.ts +2 -1
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tree-grid/index.d.ts +3 -3
- package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
var on = Object.defineProperty;
|
|
2
2
|
var rn = (e, n, t) => n in e ? on(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
-
var
|
|
4
|
-
import { ref as
|
|
5
|
-
import { isPlainObject as
|
|
3
|
+
var I = (e, n, t) => rn(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { ref as m, defineComponent as R, computed as x, watch as O, createVNode as S, Teleport as an, createApp as ln, onUnmounted as un, inject as W, nextTick as ae, onMounted as _, mergeProps as sn, reactive as cn, withDirectives as he, resolveDirective as dn, Fragment as be, vModelText as je } from "vue";
|
|
5
|
+
import { isPlainObject as Le, cloneDeep as F } from "lodash-es";
|
|
6
6
|
import pn from "../list-view/index.esm.js";
|
|
7
7
|
import fn from "../button-edit/index.esm.js";
|
|
8
|
-
import { resolveAppearance as yn
|
|
9
|
-
import { useDesignerComponent as We } from "../designer-canvas/index.esm.js";
|
|
10
|
-
import { useResponseLayoutEditorSetting as vn } from "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
|
|
8
|
+
import { resolveAppearance as yn } from "../dynamic-resolver/index.esm.js";
|
|
9
|
+
import { useDesignerComponent as We, DgControl as De } from "../designer-canvas/index.esm.js";
|
|
11
10
|
import D from "bignumber.js";
|
|
12
|
-
import { useNumber as
|
|
13
|
-
const
|
|
14
|
-
function
|
|
15
|
-
const { properties: n, title: t, ignore: o } = e, r = o && Array.isArray(o), a = Object.keys(n).reduce((l,
|
|
16
|
-
return (!r || !o.find((l) => l == "id")) && (a.id = `${t}-${Date.now()}`), a;
|
|
11
|
+
import { useNumber as vn, useFormat as mn, useSpinner as hn, useTextBox as bn } from "../number-spinner/index.esm.js";
|
|
12
|
+
const He = {}, ze = {};
|
|
13
|
+
function Se(e) {
|
|
14
|
+
const { properties: n, title: t, ignore: o } = e, r = o && Array.isArray(o), a = Object.keys(n).reduce((l, s) => ((!r || !o.find((c) => c == s)) && (l[s] = n[s].type === "object" && n[s].properties ? Se(n[s]) : F(n[s].default)), l), {});
|
|
15
|
+
return t && (!r || !o.find((l) => l == "id")) && (a.id = `${t}-${Date.now()}`), a;
|
|
17
16
|
}
|
|
18
|
-
function
|
|
19
|
-
const o =
|
|
17
|
+
function Ye(e, n = {}, t) {
|
|
18
|
+
const o = He[e];
|
|
20
19
|
if (o) {
|
|
21
|
-
let r =
|
|
22
|
-
const a =
|
|
23
|
-
return r = a ? a({ getSchemaByType:
|
|
20
|
+
let r = Se(o);
|
|
21
|
+
const a = ze[e];
|
|
22
|
+
return r = a ? a({ getSchemaByType: Ye }, r, n, t) : r, r;
|
|
24
23
|
}
|
|
25
24
|
return null;
|
|
26
25
|
}
|
|
27
|
-
function
|
|
28
|
-
const t =
|
|
29
|
-
return Object.keys(e).reduce((o, r) => (o[r] &&
|
|
26
|
+
function gn(e, n) {
|
|
27
|
+
const t = Se(n);
|
|
28
|
+
return Object.keys(e).reduce((o, r) => (o[r] && Le(o[r]) && Le(e[r]) ? Object.assign(o[r], e[r]) : o[r] = e[r], o), t), t;
|
|
30
29
|
}
|
|
31
|
-
function
|
|
30
|
+
function Cn(e, n) {
|
|
32
31
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
|
|
33
32
|
if (n.has(r)) {
|
|
34
33
|
const a = n.get(r);
|
|
@@ -43,16 +42,16 @@ function Sn(e, n) {
|
|
|
43
42
|
return o;
|
|
44
43
|
}, {});
|
|
45
44
|
}
|
|
46
|
-
function
|
|
47
|
-
const o =
|
|
48
|
-
return
|
|
45
|
+
function Sn(e, n, t = /* @__PURE__ */ new Map()) {
|
|
46
|
+
const o = gn(e, n);
|
|
47
|
+
return Cn(o, t);
|
|
49
48
|
}
|
|
50
|
-
function
|
|
51
|
-
function n(i, d,
|
|
52
|
-
if (typeof
|
|
53
|
-
return f[i].length ===
|
|
54
|
-
if (typeof
|
|
55
|
-
const p = Object.keys(
|
|
49
|
+
function wn(e = {}) {
|
|
50
|
+
function n(i, d, u, f) {
|
|
51
|
+
if (typeof u == "number")
|
|
52
|
+
return f[i].length === u;
|
|
53
|
+
if (typeof u == "object") {
|
|
54
|
+
const p = Object.keys(u)[0], y = u[p];
|
|
56
55
|
if (p === "not")
|
|
57
56
|
return Number(f[i].length) !== Number(y);
|
|
58
57
|
if (p === "moreThan")
|
|
@@ -62,8 +61,8 @@ function xn(e = {}) {
|
|
|
62
61
|
}
|
|
63
62
|
return !1;
|
|
64
63
|
}
|
|
65
|
-
function t(i, d,
|
|
66
|
-
return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(
|
|
64
|
+
function t(i, d, u, f) {
|
|
65
|
+
return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(u);
|
|
67
66
|
}
|
|
68
67
|
const o = /* @__PURE__ */ new Map([
|
|
69
68
|
["length", n],
|
|
@@ -71,37 +70,37 @@ function xn(e = {}) {
|
|
|
71
70
|
]);
|
|
72
71
|
Object.keys(e).reduce((i, d) => (i.set(d, e[d]), i), o);
|
|
73
72
|
function r(i, d) {
|
|
74
|
-
const
|
|
75
|
-
return typeof d == "number" ? [{ target:
|
|
73
|
+
const u = i;
|
|
74
|
+
return typeof d == "number" ? [{ target: u, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: u, operator: "getProperty", param: i, value: !!d }] : typeof d == "object" ? Object.keys(d).map((f) => {
|
|
76
75
|
if (f === "length")
|
|
77
|
-
return { target:
|
|
76
|
+
return { target: u, operator: "length", param: null, value: d[f] };
|
|
78
77
|
const p = f, y = d[f];
|
|
79
|
-
return { target:
|
|
78
|
+
return { target: u, operator: "getProperty", param: p, value: y };
|
|
80
79
|
}) : [];
|
|
81
80
|
}
|
|
82
81
|
function a(i) {
|
|
83
|
-
return Object.keys(i).reduce((
|
|
82
|
+
return Object.keys(i).reduce((u, f) => {
|
|
84
83
|
const p = r(f, i[f]);
|
|
85
|
-
return
|
|
84
|
+
return u.push(...p), u;
|
|
86
85
|
}, []);
|
|
87
86
|
}
|
|
88
87
|
function l(i, d) {
|
|
89
88
|
if (o.has(i.operator)) {
|
|
90
|
-
const
|
|
91
|
-
return
|
|
89
|
+
const u = o.get(i.operator);
|
|
90
|
+
return u && u(i.target, i.param, i.value, d) || !1;
|
|
92
91
|
}
|
|
93
92
|
return !1;
|
|
94
93
|
}
|
|
95
|
-
function
|
|
94
|
+
function s(i, d) {
|
|
96
95
|
return a(i).reduce((p, y) => p && l(y, d), !0);
|
|
97
96
|
}
|
|
98
|
-
function
|
|
99
|
-
const
|
|
100
|
-
return f ? !
|
|
97
|
+
function c(i, d) {
|
|
98
|
+
const u = Object.keys(i), f = u.includes("allOf"), p = u.includes("anyOf"), y = f || p, g = (y ? i[y ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((E) => s(E, d));
|
|
99
|
+
return f ? !g.includes(!1) : g.includes(!0);
|
|
101
100
|
}
|
|
102
|
-
return { parseValueSchema:
|
|
101
|
+
return { parseValueSchema: c };
|
|
103
102
|
}
|
|
104
|
-
const
|
|
103
|
+
const B = {
|
|
105
104
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
106
105
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
107
106
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -140,24 +139,24 @@ const V = {
|
|
|
140
139
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
141
140
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
142
141
|
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
function
|
|
146
|
-
return
|
|
147
|
-
const
|
|
148
|
-
return Object.assign(
|
|
142
|
+
}, xn = {}, Vn = {};
|
|
143
|
+
wn();
|
|
144
|
+
function ee(e, n, t = /* @__PURE__ */ new Map(), o = (l, s, c) => s, r = {}, a = (l) => l) {
|
|
145
|
+
return He[n.title] = n, ze[n.title] = o, xn[n.title] = r, Vn[n.title] = a, (l = {}) => {
|
|
146
|
+
const s = Sn(l, n, t), c = Object.keys(e).reduce((i, d) => (i[d] = e[d].default, i), {});
|
|
147
|
+
return Object.assign(c, s);
|
|
149
148
|
};
|
|
150
149
|
}
|
|
151
|
-
function
|
|
150
|
+
function ce(e, n) {
|
|
152
151
|
return { customClass: n.class, customStyle: n.style };
|
|
153
152
|
}
|
|
154
|
-
const
|
|
155
|
-
["appearance",
|
|
153
|
+
const Bn = /* @__PURE__ */ new Map([
|
|
154
|
+
["appearance", ce]
|
|
156
155
|
]);
|
|
157
|
-
function
|
|
156
|
+
function Tn(e, n, t) {
|
|
158
157
|
return n;
|
|
159
158
|
}
|
|
160
|
-
const
|
|
159
|
+
const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-design.gitee.io/property-editor.schema.json", Mn = "property-editor", En = "A Farris Component", In = "object", Pn = {
|
|
161
160
|
id: {
|
|
162
161
|
description: "The unique identifier for property-editor",
|
|
163
162
|
type: "string"
|
|
@@ -219,18 +218,18 @@ const kn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-
|
|
|
219
218
|
type: "boolean",
|
|
220
219
|
default: !0
|
|
221
220
|
}
|
|
222
|
-
},
|
|
221
|
+
}, An = [
|
|
223
222
|
"id",
|
|
224
223
|
"type"
|
|
225
|
-
],
|
|
226
|
-
$schema:
|
|
227
|
-
$id:
|
|
224
|
+
], On = {
|
|
225
|
+
$schema: Fn,
|
|
226
|
+
$id: kn,
|
|
228
227
|
title: Mn,
|
|
229
|
-
description:
|
|
230
|
-
type:
|
|
231
|
-
properties:
|
|
232
|
-
required:
|
|
233
|
-
},
|
|
228
|
+
description: En,
|
|
229
|
+
type: In,
|
|
230
|
+
properties: Pn,
|
|
231
|
+
required: An
|
|
232
|
+
}, Nn = "property-editor", jn = "A Farris Component", Ln = "object", Dn = {
|
|
234
233
|
basic: {
|
|
235
234
|
description: "Basic Infomation",
|
|
236
235
|
title: "基本信息",
|
|
@@ -252,12 +251,12 @@ const kn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-
|
|
|
252
251
|
}
|
|
253
252
|
}
|
|
254
253
|
}
|
|
255
|
-
},
|
|
256
|
-
title:
|
|
257
|
-
description:
|
|
258
|
-
type:
|
|
254
|
+
}, $n = {
|
|
255
|
+
title: Nn,
|
|
256
|
+
description: jn,
|
|
257
|
+
type: Ln,
|
|
259
258
|
categories: Dn
|
|
260
|
-
}, Ze = {}, Un =
|
|
259
|
+
}, Ze = {}, Un = ee(Ze, On, Bn, Tn, $n), A = m({
|
|
261
260
|
/** 常量值 */
|
|
262
261
|
constValue: {
|
|
263
262
|
/** 值类型:常量(const), 变量(variable), 状态机(state), 自定义(custom) */
|
|
@@ -295,7 +294,7 @@ const kn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-
|
|
|
295
294
|
type: "dataStates",
|
|
296
295
|
value: ""
|
|
297
296
|
}
|
|
298
|
-
}),
|
|
297
|
+
}), Gn = m([
|
|
299
298
|
{
|
|
300
299
|
id: "const",
|
|
301
300
|
label: "常量"
|
|
@@ -320,7 +319,7 @@ const kn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-
|
|
|
320
319
|
id: "dataStates",
|
|
321
320
|
label: "数据状态"
|
|
322
321
|
}
|
|
323
|
-
]),
|
|
322
|
+
]), Rn = {
|
|
324
323
|
controlName: "userName",
|
|
325
324
|
propertyName: "readonly",
|
|
326
325
|
propertyType: "enum",
|
|
@@ -445,9 +444,9 @@ const kn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-
|
|
|
445
444
|
},
|
|
446
445
|
/** 状态机是否有前缀viewModel.stateMachine && */
|
|
447
446
|
hasPrefix: 2
|
|
448
|
-
},
|
|
449
|
-
["appearance",
|
|
450
|
-
]),
|
|
447
|
+
}, _n = /* @__PURE__ */ new Map([
|
|
448
|
+
["appearance", ce]
|
|
449
|
+
]), qn = "https://json-schema.org/draft/2020-12/schema", Wn = "https://farris-design.gitee.io/combo-list.schema.json", Hn = "combo-list", zn = "A Farris Input Component", Yn = "object", Zn = {
|
|
451
450
|
id: {
|
|
452
451
|
description: "The unique identifier for a combo list",
|
|
453
452
|
type: "string"
|
|
@@ -566,24 +565,24 @@ const kn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-
|
|
|
566
565
|
}, Xn = [
|
|
567
566
|
"id",
|
|
568
567
|
"type"
|
|
569
|
-
],
|
|
568
|
+
], Jn = [
|
|
570
569
|
"id",
|
|
571
570
|
"appearance",
|
|
572
571
|
"binding"
|
|
573
|
-
],
|
|
574
|
-
$schema:
|
|
572
|
+
], Qn = {
|
|
573
|
+
$schema: qn,
|
|
575
574
|
$id: Wn,
|
|
576
|
-
title:
|
|
577
|
-
description:
|
|
578
|
-
type:
|
|
579
|
-
properties:
|
|
575
|
+
title: Hn,
|
|
576
|
+
description: zn,
|
|
577
|
+
type: Yn,
|
|
578
|
+
properties: Zn,
|
|
580
579
|
required: Xn,
|
|
581
|
-
ignore:
|
|
580
|
+
ignore: Jn
|
|
582
581
|
};
|
|
583
|
-
function
|
|
582
|
+
function Kn(e, n, t) {
|
|
584
583
|
return n;
|
|
585
584
|
}
|
|
586
|
-
const
|
|
585
|
+
const we = {
|
|
587
586
|
/**
|
|
588
587
|
* 组件标识
|
|
589
588
|
*/
|
|
@@ -749,7 +748,7 @@ const xe = {
|
|
|
749
748
|
},
|
|
750
749
|
// 搜索启用高亮
|
|
751
750
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
752
|
-
},
|
|
751
|
+
}, Xe = ee(we, Qn, _n, Kn), eo = {
|
|
753
752
|
dataSource: { type: Array, default: [] },
|
|
754
753
|
enableSearch: { type: Boolean, default: !1 },
|
|
755
754
|
idField: { type: String, default: "id" },
|
|
@@ -770,12 +769,12 @@ const xe = {
|
|
|
770
769
|
},
|
|
771
770
|
// 搜索启用高亮
|
|
772
771
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
773
|
-
},
|
|
772
|
+
}, to = /* @__PURE__ */ R({
|
|
774
773
|
name: "FComboListContainer",
|
|
775
|
-
props:
|
|
774
|
+
props: eo,
|
|
776
775
|
emits: ["selectionChange"],
|
|
777
776
|
setup(e, n) {
|
|
778
|
-
const t =
|
|
777
|
+
const t = m(), o = m(e.dataSource), r = m([]), a = m(e.separator), l = m(e.width), s = m(e.maxHeight), c = m(String(e.selectedValues).split(a.value)), i = x(() => e.multiSelect), d = x(() => ({
|
|
779
778
|
enableSelectRow: !0,
|
|
780
779
|
multiSelect: e.multiSelect,
|
|
781
780
|
multiSelectMode: "OnCheckAndClick",
|
|
@@ -786,29 +785,29 @@ const xe = {
|
|
|
786
785
|
O(e.dataSource, () => {
|
|
787
786
|
o.value = e.dataSource;
|
|
788
787
|
});
|
|
789
|
-
const
|
|
790
|
-
const
|
|
791
|
-
return l.value !== void 0 && (
|
|
788
|
+
const u = x(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = x(() => {
|
|
789
|
+
const v = {};
|
|
790
|
+
return l.value !== void 0 && (v.width = `${l.value}px`), s.value !== void 0 && s.value > 0 && (v.maxHeight = `${s.value}px`), v;
|
|
792
791
|
});
|
|
793
|
-
function p(
|
|
794
|
-
r.value =
|
|
792
|
+
function p(v) {
|
|
793
|
+
r.value = v.map((h) => Object.assign({}, h)), c.value = v.map((h) => h[e.idField]), n.emit("selectionChange", r.value);
|
|
795
794
|
}
|
|
796
|
-
function y(
|
|
795
|
+
function y(v) {
|
|
797
796
|
if (e.enableHighlightSearch)
|
|
798
797
|
return;
|
|
799
|
-
let
|
|
800
|
-
typeof e.searchOption == "function" ?
|
|
798
|
+
let h = [];
|
|
799
|
+
typeof e.searchOption == "function" ? h = o.value.filter((g) => e.searchOption(v, g)) : h = o.value.filter((g) => g[e.valueField].indexOf(v) > -1 || g[e.textField].indexOf(v) > -1), t.value.updateDataSource(h);
|
|
801
800
|
}
|
|
802
|
-
return O([() => e.selectedValues], ([
|
|
803
|
-
|
|
804
|
-
}), () =>
|
|
801
|
+
return O([() => e.selectedValues], ([v]) => {
|
|
802
|
+
c.value = v.split(a.value);
|
|
803
|
+
}), () => S("div", {
|
|
805
804
|
class: "f-combo-list-container pl-1",
|
|
806
805
|
style: f.value
|
|
807
|
-
}, [
|
|
806
|
+
}, [S(pn, {
|
|
808
807
|
ref: t,
|
|
809
808
|
size: "small",
|
|
810
809
|
itemClass: "f-combo-list-item",
|
|
811
|
-
header:
|
|
810
|
+
header: u.value,
|
|
812
811
|
headerClass: "f-combo-list-search-box",
|
|
813
812
|
data: o.value,
|
|
814
813
|
idField: e.idField,
|
|
@@ -817,102 +816,102 @@ const xe = {
|
|
|
817
816
|
multiSelect: e.multiSelect,
|
|
818
817
|
selection: d.value,
|
|
819
818
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
820
|
-
selectionValues:
|
|
819
|
+
selectionValues: c.value,
|
|
821
820
|
onSelectionChange: p,
|
|
822
821
|
onAfterSearch: y
|
|
823
822
|
}, null)]);
|
|
824
823
|
}
|
|
825
824
|
});
|
|
826
|
-
function
|
|
827
|
-
const n =
|
|
828
|
-
function a(
|
|
829
|
-
const f = String(
|
|
830
|
-
return o.value.filter((
|
|
831
|
-
const
|
|
832
|
-
return
|
|
825
|
+
function no(e) {
|
|
826
|
+
const n = m(""), t = m(e.modelValue), o = m(e.data || []), r = m(e.editable);
|
|
827
|
+
function a(u) {
|
|
828
|
+
const f = String(u).split(e.separator), p = f.map((h) => [h, !0]), y = new Map(p);
|
|
829
|
+
return o.value.filter((h) => y.has(String(h[e.valueField]))).sort((h, g) => {
|
|
830
|
+
const V = f.indexOf(h[e.valueField]), E = f.indexOf(g[e.valueField]);
|
|
831
|
+
return V - E;
|
|
833
832
|
});
|
|
834
833
|
}
|
|
835
|
-
function l(
|
|
836
|
-
const f = a(
|
|
837
|
-
n.value = r.value ? f ||
|
|
834
|
+
function l(u) {
|
|
835
|
+
const f = a(u).map((p) => p[e.textField]).join(e.separator);
|
|
836
|
+
n.value = r.value ? f || u : f;
|
|
838
837
|
}
|
|
839
|
-
function u
|
|
840
|
-
const f =
|
|
838
|
+
function s(u) {
|
|
839
|
+
const f = u.split(e.separator).map((y) => [y, !0]), p = new Map(f);
|
|
841
840
|
return o.value.filter((y) => p.has(y[e.textField]));
|
|
842
841
|
}
|
|
843
|
-
function
|
|
842
|
+
function c(u) {
|
|
844
843
|
const f = {};
|
|
845
|
-
return f[e.idField] =
|
|
844
|
+
return f[e.idField] = u, f[e.textField] = u, [f];
|
|
846
845
|
}
|
|
847
|
-
function i(
|
|
848
|
-
let f = u
|
|
846
|
+
function i(u) {
|
|
847
|
+
let f = s(u);
|
|
849
848
|
const p = f && f.length > 0;
|
|
850
|
-
return r.value && !p && (f =
|
|
849
|
+
return r.value && !p && (f = c(u)), f;
|
|
851
850
|
}
|
|
852
851
|
function d() {
|
|
853
|
-
const { url:
|
|
854
|
-
let
|
|
855
|
-
fetch(
|
|
856
|
-
var
|
|
857
|
-
if (
|
|
858
|
-
return
|
|
859
|
-
throw new Error(
|
|
860
|
-
}).then((
|
|
861
|
-
o.value =
|
|
862
|
-
}).catch((
|
|
863
|
-
console.error(
|
|
852
|
+
const { url: u, method: f = "GET", headers: p = {}, body: y = null } = e.remote, v = f.toLowerCase() == "get" ? { method: f, headers: p } : { method: f, headers: p, body: y };
|
|
853
|
+
let h = !1;
|
|
854
|
+
fetch(u, v).then((g) => {
|
|
855
|
+
var E, w;
|
|
856
|
+
if (g.status === 200)
|
|
857
|
+
return h = !!((w = (E = g.headers) == null ? void 0 : E.get("content-type")) != null && w.includes("application/json")), h ? g.text() : g.json();
|
|
858
|
+
throw new Error(g.statusText);
|
|
859
|
+
}).then((g) => {
|
|
860
|
+
o.value = h ? JSON.parse(g) : g;
|
|
861
|
+
}).catch((g) => {
|
|
862
|
+
console.error(g);
|
|
864
863
|
});
|
|
865
864
|
}
|
|
866
865
|
return e.remote && d(), O(() => e.data, () => {
|
|
867
866
|
o.value = e.data;
|
|
868
|
-
}), O([o], ([
|
|
867
|
+
}), O([o], ([u]) => {
|
|
869
868
|
if (e.modelValue != null) {
|
|
870
|
-
const f =
|
|
869
|
+
const f = u.find((p) => p[e.valueField] === e.modelValue);
|
|
871
870
|
f && (n.value = f[e.textField]);
|
|
872
871
|
}
|
|
873
|
-
}), O(() => e.modelValue, (
|
|
874
|
-
t.value =
|
|
875
|
-
}), l(e.modelValue), { dataSource: o, displayText: n, editable: r, modelValue: t, getItemsByDisplayText:
|
|
872
|
+
}), O(() => e.modelValue, (u) => {
|
|
873
|
+
t.value = u, l(u);
|
|
874
|
+
}), l(e.modelValue), { dataSource: o, displayText: n, editable: r, modelValue: t, getItemsByDisplayText: s, getItemsByValue: a, getSelectedItemsByDisplayText: i };
|
|
876
875
|
}
|
|
877
|
-
const
|
|
876
|
+
const q = /* @__PURE__ */ R({
|
|
878
877
|
name: "FComboList",
|
|
879
|
-
props:
|
|
878
|
+
props: we,
|
|
880
879
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
881
880
|
setup(e, n) {
|
|
882
|
-
const t =
|
|
883
|
-
dataSource:
|
|
884
|
-
displayText:
|
|
881
|
+
const t = m(), o = m(e.disabled), r = m(e.enableClear), a = m(e.enableSearch), l = m(e.readonly), {
|
|
882
|
+
dataSource: s,
|
|
883
|
+
displayText: c,
|
|
885
884
|
editable: i,
|
|
886
885
|
modelValue: d,
|
|
887
|
-
getSelectedItemsByDisplayText:
|
|
888
|
-
} =
|
|
886
|
+
getSelectedItemsByDisplayText: u
|
|
887
|
+
} = no(e), f = x(() => e.multiSelect), p = x(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
|
|
889
888
|
function y() {
|
|
890
889
|
!f.value && t.value && t.value.hidePopup();
|
|
891
890
|
}
|
|
892
|
-
function
|
|
893
|
-
|
|
891
|
+
function v(C) {
|
|
892
|
+
c.value = C.map((T) => T[e.textField]).join(e.separator), C.length === 1 ? d.value = C[0][e.valueField] : d.value = C.map((T) => T[e.valueField]).join(e.separator), n.emit("update:modelValue", d.value), n.emit("change", C, d.value), y();
|
|
894
893
|
}
|
|
895
|
-
function
|
|
894
|
+
function h() {
|
|
896
895
|
l.value || t.value.togglePopup();
|
|
897
896
|
}
|
|
898
|
-
function
|
|
897
|
+
function g(C) {
|
|
899
898
|
d.value = "", n.emit("update:modelValue", ""), n.emit("clear");
|
|
900
899
|
}
|
|
901
|
-
function
|
|
902
|
-
const
|
|
903
|
-
|
|
900
|
+
function V(C) {
|
|
901
|
+
const T = u(C);
|
|
902
|
+
v(T);
|
|
904
903
|
}
|
|
905
|
-
function
|
|
906
|
-
return
|
|
904
|
+
function E() {
|
|
905
|
+
return c.value;
|
|
907
906
|
}
|
|
908
|
-
function
|
|
909
|
-
n.emit("input",
|
|
907
|
+
function w(C) {
|
|
908
|
+
n.emit("input", C);
|
|
910
909
|
}
|
|
911
910
|
return n.expose({
|
|
912
|
-
getDisplayText:
|
|
913
|
-
}), O([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([
|
|
914
|
-
o.value =
|
|
915
|
-
}), () =>
|
|
911
|
+
getDisplayText: E
|
|
912
|
+
}), O([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([C, T, k, P, U]) => {
|
|
913
|
+
o.value = C, i.value = T, r.value = k, a.value = P, l.value = U;
|
|
914
|
+
}), () => S(fn, {
|
|
916
915
|
ref: t,
|
|
917
916
|
id: e.id,
|
|
918
917
|
disable: o.value,
|
|
@@ -927,39 +926,39 @@ const H = /* @__PURE__ */ G({
|
|
|
927
926
|
enableTitle: e.enableTitle,
|
|
928
927
|
multiSelect: e.multiSelect,
|
|
929
928
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
930
|
-
modelValue:
|
|
931
|
-
"onUpdate:modelValue": (
|
|
929
|
+
modelValue: c.value,
|
|
930
|
+
"onUpdate:modelValue": (C) => c.value = C,
|
|
932
931
|
focusOnCreated: e.focusOnCreated,
|
|
933
932
|
selectOnCreated: e.selectOnCreated,
|
|
934
|
-
onClear:
|
|
935
|
-
onClick:
|
|
936
|
-
onChange:
|
|
937
|
-
onInput:
|
|
933
|
+
onClear: g,
|
|
934
|
+
onClick: h,
|
|
935
|
+
onChange: V,
|
|
936
|
+
onInput: w,
|
|
938
937
|
beforeOpen: e.beforeOpen
|
|
939
938
|
}, {
|
|
940
|
-
default: () => [
|
|
939
|
+
default: () => [S(to, {
|
|
941
940
|
idField: e.idField,
|
|
942
941
|
valueField: e.valueField,
|
|
943
942
|
textField: e.textField,
|
|
944
943
|
titleField: e.titleField,
|
|
945
|
-
dataSource:
|
|
944
|
+
dataSource: s.value,
|
|
946
945
|
selectedValues: d.value,
|
|
947
946
|
multiSelect: e.multiSelect,
|
|
948
947
|
enableSearch: a.value,
|
|
949
948
|
maxHeight: e.maxHeight,
|
|
950
949
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
951
950
|
width: e.fitEditor ? p.value : void 0,
|
|
952
|
-
onSelectionChange:
|
|
951
|
+
onSelectionChange: v
|
|
953
952
|
}, null)]
|
|
954
953
|
});
|
|
955
954
|
}
|
|
956
|
-
}),
|
|
955
|
+
}), oo = /* @__PURE__ */ new Map([
|
|
957
956
|
["appearance", yn]
|
|
958
957
|
]);
|
|
959
|
-
function
|
|
958
|
+
function ro(e, n, t) {
|
|
960
959
|
return n;
|
|
961
960
|
}
|
|
962
|
-
const
|
|
961
|
+
const ao = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-design.gitee.io/button-edit.schema.json", io = "button-edit", uo = "A Farris Input Component", so = "object", co = {
|
|
963
962
|
id: {
|
|
964
963
|
description: "The unique identifier for a Input Group",
|
|
965
964
|
type: "string"
|
|
@@ -1143,18 +1142,18 @@ const io = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-
|
|
|
1143
1142
|
type: "string",
|
|
1144
1143
|
default: ""
|
|
1145
1144
|
}
|
|
1146
|
-
},
|
|
1145
|
+
}, po = [
|
|
1147
1146
|
"id",
|
|
1148
1147
|
"type"
|
|
1149
|
-
],
|
|
1150
|
-
$schema:
|
|
1148
|
+
], fo = {
|
|
1149
|
+
$schema: ao,
|
|
1151
1150
|
$id: lo,
|
|
1152
|
-
title:
|
|
1153
|
-
description:
|
|
1154
|
-
type:
|
|
1155
|
-
properties:
|
|
1156
|
-
required:
|
|
1157
|
-
},
|
|
1151
|
+
title: io,
|
|
1152
|
+
description: uo,
|
|
1153
|
+
type: so,
|
|
1154
|
+
properties: co,
|
|
1155
|
+
required: po
|
|
1156
|
+
}, yo = "buttonEdit", vo = "A Farris Component", mo = "object", ho = {
|
|
1158
1157
|
basic: {
|
|
1159
1158
|
description: "Basic Infomation",
|
|
1160
1159
|
title: "基本信息",
|
|
@@ -1236,12 +1235,12 @@ const io = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-
|
|
|
1236
1235
|
}
|
|
1237
1236
|
}
|
|
1238
1237
|
}
|
|
1239
|
-
},
|
|
1240
|
-
title:
|
|
1241
|
-
description:
|
|
1242
|
-
type:
|
|
1243
|
-
categories:
|
|
1244
|
-
},
|
|
1238
|
+
}, bo = {
|
|
1239
|
+
title: yo,
|
|
1240
|
+
description: vo,
|
|
1241
|
+
type: mo,
|
|
1242
|
+
categories: ho
|
|
1243
|
+
}, Je = {
|
|
1245
1244
|
/**
|
|
1246
1245
|
* 组件标识
|
|
1247
1246
|
*/
|
|
@@ -1350,66 +1349,66 @@ const io = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-
|
|
|
1350
1349
|
/** 更新方式 blur | change */
|
|
1351
1350
|
updateOn: { type: String, default: "change" }
|
|
1352
1351
|
};
|
|
1353
|
-
|
|
1354
|
-
const
|
|
1352
|
+
ee(Je, fo, oo, ro, bo);
|
|
1353
|
+
const go = {
|
|
1355
1354
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
1356
1355
|
host: { type: Object },
|
|
1357
1356
|
backgroundColor: { type: String, default: "" }
|
|
1358
|
-
},
|
|
1357
|
+
}, Co = /* @__PURE__ */ R({
|
|
1359
1358
|
name: "FOverlay",
|
|
1360
|
-
props:
|
|
1359
|
+
props: go,
|
|
1361
1360
|
emits: ["click"],
|
|
1362
1361
|
setup(e, n) {
|
|
1363
|
-
const t =
|
|
1362
|
+
const t = m(e.popupContentPosition), o = m(e.host), r = x(() => ({
|
|
1364
1363
|
backgroundColor: e.backgroundColor || "",
|
|
1365
1364
|
pointerEvents: "auto"
|
|
1366
1365
|
}));
|
|
1367
|
-
function a(
|
|
1368
|
-
n.emit("click"),
|
|
1366
|
+
function a(s) {
|
|
1367
|
+
n.emit("click"), s.preventDefault(), s.stopPropagation();
|
|
1369
1368
|
}
|
|
1370
|
-
|
|
1371
|
-
const
|
|
1372
|
-
if (
|
|
1373
|
-
const
|
|
1369
|
+
x(() => {
|
|
1370
|
+
const s = o.value;
|
|
1371
|
+
if (s) {
|
|
1372
|
+
const c = s.getBoundingClientRect(), {
|
|
1374
1373
|
left: i,
|
|
1375
1374
|
top: d,
|
|
1376
|
-
height:
|
|
1377
|
-
} =
|
|
1375
|
+
height: u
|
|
1376
|
+
} = c;
|
|
1378
1377
|
return {
|
|
1379
1378
|
left: i,
|
|
1380
|
-
top: d +
|
|
1379
|
+
top: d + u
|
|
1381
1380
|
};
|
|
1382
1381
|
}
|
|
1383
1382
|
return t.value;
|
|
1384
1383
|
});
|
|
1385
|
-
const l =
|
|
1384
|
+
const l = x(() => ({
|
|
1386
1385
|
// position: 'relative',
|
|
1387
1386
|
// left: `${position.value.left}px`,
|
|
1388
1387
|
// top: `${position.value.top}px`
|
|
1389
1388
|
}));
|
|
1390
|
-
return () =>
|
|
1389
|
+
return () => S(an, {
|
|
1391
1390
|
to: "body"
|
|
1392
1391
|
}, {
|
|
1393
1392
|
default: () => {
|
|
1394
|
-
var
|
|
1395
|
-
return [
|
|
1393
|
+
var s, c;
|
|
1394
|
+
return [S("div", {
|
|
1396
1395
|
class: "overlay-container",
|
|
1397
1396
|
onClick: (i) => a(i),
|
|
1398
1397
|
style: r.value
|
|
1399
|
-
}, [
|
|
1398
|
+
}, [S("div", {
|
|
1400
1399
|
style: l.value
|
|
1401
|
-
}, [(
|
|
1400
|
+
}, [(c = (s = n.slots).default) == null ? void 0 : c.call(s)])])];
|
|
1402
1401
|
}
|
|
1403
1402
|
});
|
|
1404
1403
|
}
|
|
1405
1404
|
});
|
|
1406
|
-
function
|
|
1405
|
+
function So(e) {
|
|
1407
1406
|
if (e.content && e.content.render)
|
|
1408
1407
|
return e.content.render;
|
|
1409
1408
|
if (e.render && typeof e.render == "function")
|
|
1410
1409
|
return e.render;
|
|
1411
1410
|
}
|
|
1412
|
-
function
|
|
1411
|
+
function wo(e) {
|
|
1413
1412
|
const n = document.createElement("div");
|
|
1414
1413
|
n.style.display = "contents";
|
|
1415
1414
|
let t;
|
|
@@ -1422,8 +1421,8 @@ function xo(e) {
|
|
|
1422
1421
|
un(() => {
|
|
1423
1422
|
document.body.removeChild(n);
|
|
1424
1423
|
});
|
|
1425
|
-
const a =
|
|
1426
|
-
return () =>
|
|
1424
|
+
const a = So(e);
|
|
1425
|
+
return () => S(Co, {
|
|
1427
1426
|
"popup-content-position": e.popupPosition,
|
|
1428
1427
|
host: e.host,
|
|
1429
1428
|
onClick: r,
|
|
@@ -1434,12 +1433,12 @@ function xo(e) {
|
|
|
1434
1433
|
}
|
|
1435
1434
|
}), document.body.appendChild(n), t.mount(n), t;
|
|
1436
1435
|
}
|
|
1437
|
-
class
|
|
1436
|
+
class xo {
|
|
1438
1437
|
static show(n) {
|
|
1439
|
-
return
|
|
1438
|
+
return wo(n);
|
|
1440
1439
|
}
|
|
1441
1440
|
}
|
|
1442
|
-
const
|
|
1441
|
+
const Vo = Symbol("FModalService");
|
|
1443
1442
|
function Qe(e, n) {
|
|
1444
1443
|
function t() {
|
|
1445
1444
|
const o = e.beforeOpen || e.beforeClickButton || null;
|
|
@@ -1454,79 +1453,79 @@ function Qe(e, n) {
|
|
|
1454
1453
|
}
|
|
1455
1454
|
return { judgeCanOpen: t };
|
|
1456
1455
|
}
|
|
1457
|
-
function
|
|
1458
|
-
const a =
|
|
1456
|
+
function Bo(e, n, t, o, r) {
|
|
1457
|
+
const a = m(e.buttonBehavior), l = m(e.popupOnInput), s = x(() => ({
|
|
1459
1458
|
"input-group-append": !0,
|
|
1460
1459
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
1461
|
-
})), { judgeCanOpen:
|
|
1462
|
-
async function f(
|
|
1463
|
-
if (await
|
|
1464
|
-
const
|
|
1460
|
+
})), { judgeCanOpen: c } = Qe(e, r), i = x(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), d = W(Vo, null), u = m();
|
|
1461
|
+
async function f(v) {
|
|
1462
|
+
if (await c() && i.value) {
|
|
1463
|
+
const h = !!n.slots.default;
|
|
1465
1464
|
if (a.value === "Modal") {
|
|
1466
|
-
const
|
|
1467
|
-
...
|
|
1465
|
+
const g = e.modalOptions, V = d == null ? void 0 : d.open({
|
|
1466
|
+
...g,
|
|
1468
1467
|
render: () => n.slots.default && n.slots.default()
|
|
1469
1468
|
});
|
|
1470
|
-
|
|
1469
|
+
u.value = V == null ? void 0 : V.modalRef;
|
|
1471
1470
|
}
|
|
1472
|
-
a.value === "Overlay" &&
|
|
1471
|
+
a.value === "Overlay" && xo.show({
|
|
1473
1472
|
// host: buttonEditRef.value,
|
|
1474
1473
|
host: document.body,
|
|
1475
1474
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
1476
1475
|
render: () => n.slots.default && n.slots.default()
|
|
1477
|
-
}),
|
|
1476
|
+
}), h && a.value === "Popup" && o.togglePopup(!0), h && l.value && o.hidePopup(), n.emit("clickButton", { origin: v, value: e.modelValue });
|
|
1478
1477
|
}
|
|
1479
1478
|
}
|
|
1480
|
-
function p(
|
|
1481
|
-
n.emit("mouseEnterIcon",
|
|
1479
|
+
function p(v) {
|
|
1480
|
+
n.emit("mouseEnterIcon", v);
|
|
1482
1481
|
}
|
|
1483
|
-
function y(
|
|
1484
|
-
n.emit("mouseLeaveIcon",
|
|
1482
|
+
function y(v) {
|
|
1483
|
+
n.emit("mouseLeaveIcon", v);
|
|
1485
1484
|
}
|
|
1486
1485
|
return {
|
|
1487
|
-
buttonGroupClass:
|
|
1486
|
+
buttonGroupClass: s,
|
|
1488
1487
|
onClickButton: f,
|
|
1489
1488
|
onMouseEnterButton: p,
|
|
1490
1489
|
onMouseLeaveButton: y,
|
|
1491
|
-
modalRef:
|
|
1490
|
+
modalRef: u
|
|
1492
1491
|
};
|
|
1493
1492
|
}
|
|
1494
|
-
function
|
|
1495
|
-
const r =
|
|
1496
|
-
function
|
|
1497
|
-
const
|
|
1498
|
-
|
|
1493
|
+
function To(e, n, t, o) {
|
|
1494
|
+
const r = m(), a = m(!1), { judgeCanOpen: l } = Qe(e, o);
|
|
1495
|
+
function s() {
|
|
1496
|
+
const u = r.value;
|
|
1497
|
+
u && u.show(t.value);
|
|
1499
1498
|
}
|
|
1500
|
-
async function
|
|
1499
|
+
async function c(u = !1) {
|
|
1501
1500
|
if (!!n.slots.default) {
|
|
1502
|
-
if (!
|
|
1501
|
+
if (!u && !a.value && !await l())
|
|
1503
1502
|
return;
|
|
1504
|
-
a.value = !a.value, await
|
|
1503
|
+
a.value = !a.value, await ae(), s();
|
|
1505
1504
|
}
|
|
1506
1505
|
}
|
|
1507
|
-
async function i(
|
|
1506
|
+
async function i(u = !1) {
|
|
1508
1507
|
if (!!n.slots.default) {
|
|
1509
|
-
if (!
|
|
1508
|
+
if (!u && !await l())
|
|
1510
1509
|
return;
|
|
1511
|
-
a.value = !0, await
|
|
1510
|
+
a.value = !0, await ae(), s();
|
|
1512
1511
|
}
|
|
1513
1512
|
}
|
|
1514
1513
|
function d() {
|
|
1515
1514
|
a.value = !1;
|
|
1516
1515
|
}
|
|
1517
|
-
return { hidePopup: d, popup: i, shouldPopupContent: a, togglePopup:
|
|
1516
|
+
return { hidePopup: d, popup: i, shouldPopupContent: a, togglePopup: c, popoverRef: r };
|
|
1518
1517
|
}
|
|
1519
|
-
function
|
|
1518
|
+
function Fo(e, n, t) {
|
|
1520
1519
|
const {
|
|
1521
1520
|
buttonGroupClass: o
|
|
1522
|
-
} = t, r =
|
|
1521
|
+
} = t, r = m();
|
|
1523
1522
|
return {
|
|
1524
|
-
renderButtonGroup: () =>
|
|
1523
|
+
renderButtonGroup: () => S("div", {
|
|
1525
1524
|
id: `${e.id}-button-group`,
|
|
1526
1525
|
class: o.value
|
|
1527
|
-
}, [n.slots.buttonContent ?
|
|
1526
|
+
}, [n.slots.buttonContent ? S("span", {
|
|
1528
1527
|
class: "input-group-text input-group-append-button"
|
|
1529
|
-
}, [n.slots.buttonContent()]) : e.buttonContent ?
|
|
1528
|
+
}, [n.slots.buttonContent()]) : e.buttonContent ? S("span", {
|
|
1530
1529
|
class: "input-group-text input-group-append-button",
|
|
1531
1530
|
innerHTML: e.buttonContent,
|
|
1532
1531
|
ref: r
|
|
@@ -1534,38 +1533,38 @@ function ko(e, n, t) {
|
|
|
1534
1533
|
buttonHandleElement: r
|
|
1535
1534
|
};
|
|
1536
1535
|
}
|
|
1537
|
-
const
|
|
1536
|
+
const ko = /* @__PURE__ */ R({
|
|
1538
1537
|
name: "FButtonEdit",
|
|
1539
|
-
props:
|
|
1538
|
+
props: Je,
|
|
1540
1539
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
1541
1540
|
setup(e, n) {
|
|
1542
|
-
const t =
|
|
1541
|
+
const t = m(), o = W("design-item-context"), r = We(t, o), a = m(e.customClass), l = m(e.modelValue), s = To(e, n, t, l), c = Bo(e, n, t, s, l), i = m(), d = x(() => ({
|
|
1543
1542
|
"f-cmp-inputgroup": !0,
|
|
1544
1543
|
"input-group": !0,
|
|
1545
1544
|
"f-state-disable": !0,
|
|
1546
1545
|
"f-state-editable": !1,
|
|
1547
1546
|
"f-state-readonly": !0
|
|
1548
1547
|
}));
|
|
1549
|
-
|
|
1548
|
+
_(() => {
|
|
1550
1549
|
t.value.componentInstance = r;
|
|
1551
1550
|
}), n.expose(r.value);
|
|
1552
|
-
const
|
|
1551
|
+
const u = x(() => {
|
|
1553
1552
|
const p = {
|
|
1554
1553
|
"f-button-edit": !0,
|
|
1555
1554
|
"f-cmp-inputgroup": !0,
|
|
1556
1555
|
"f-button-edit-nowrap": !e.wrapText
|
|
1557
1556
|
};
|
|
1558
|
-
return a.value && a.value.split(" ").reduce((y,
|
|
1557
|
+
return a.value && a.value.split(" ").reduce((y, v) => (y[v] = !0, y), p), p;
|
|
1559
1558
|
}), {
|
|
1560
1559
|
renderButtonGroup: f
|
|
1561
|
-
} =
|
|
1562
|
-
return () =>
|
|
1560
|
+
} = Fo(e, n, c);
|
|
1561
|
+
return () => S("div", sn(n.attrs, {
|
|
1563
1562
|
ref: t,
|
|
1564
|
-
class:
|
|
1563
|
+
class: u.value,
|
|
1565
1564
|
id: e.id
|
|
1566
|
-
}), [
|
|
1565
|
+
}), [S("div", {
|
|
1567
1566
|
class: d.value
|
|
1568
|
-
}, [
|
|
1567
|
+
}, [S("input", {
|
|
1569
1568
|
ref: i,
|
|
1570
1569
|
class: "form-control",
|
|
1571
1570
|
readonly: !0,
|
|
@@ -1573,10 +1572,10 @@ const Eo = /* @__PURE__ */ G({
|
|
|
1573
1572
|
}, null), f()])]);
|
|
1574
1573
|
}
|
|
1575
1574
|
});
|
|
1576
|
-
function
|
|
1575
|
+
function xe(e, n) {
|
|
1577
1576
|
e.schema;
|
|
1578
|
-
const t =
|
|
1579
|
-
function r(
|
|
1577
|
+
const t = m(!0), o = m(!0);
|
|
1578
|
+
function r(u) {
|
|
1580
1579
|
return !1;
|
|
1581
1580
|
}
|
|
1582
1581
|
function a() {
|
|
@@ -1585,22 +1584,22 @@ function Ve(e, n) {
|
|
|
1585
1584
|
function l() {
|
|
1586
1585
|
return !1;
|
|
1587
1586
|
}
|
|
1588
|
-
function
|
|
1587
|
+
function s() {
|
|
1589
1588
|
return !0;
|
|
1590
1589
|
}
|
|
1591
|
-
function
|
|
1590
|
+
function c(u) {
|
|
1592
1591
|
}
|
|
1593
1592
|
function i() {
|
|
1594
1593
|
}
|
|
1595
|
-
function d(
|
|
1594
|
+
function d(u) {
|
|
1596
1595
|
return null;
|
|
1597
1596
|
}
|
|
1598
1597
|
return {
|
|
1599
1598
|
canAccepts: r,
|
|
1600
1599
|
checkCanDeleteComponent: a,
|
|
1601
1600
|
checkCanMoveComponent: l,
|
|
1602
|
-
hideNestedPaddingInDesginerView:
|
|
1603
|
-
onAcceptMovedChildElement:
|
|
1601
|
+
hideNestedPaddingInDesginerView: s,
|
|
1602
|
+
onAcceptMovedChildElement: c,
|
|
1604
1603
|
resolveComponentContext: i,
|
|
1605
1604
|
triggerBelongedComponentToMoveWhenMoved: t,
|
|
1606
1605
|
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
@@ -1609,18 +1608,18 @@ function Ve(e, n) {
|
|
|
1609
1608
|
}
|
|
1610
1609
|
class Mo {
|
|
1611
1610
|
constructor(n, t) {
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1611
|
+
I(this, "componentId");
|
|
1612
|
+
I(this, "viewModelId");
|
|
1613
|
+
I(this, "eventsEditorUtils");
|
|
1614
|
+
I(this, "formSchemaUtils");
|
|
1615
|
+
I(this, "formMetadataConverter");
|
|
1616
|
+
I(this, "designViewModelUtils");
|
|
1617
|
+
I(this, "designViewModelField");
|
|
1618
|
+
I(this, "controlCreatorUtils");
|
|
1619
|
+
I(this, "designerHostService");
|
|
1620
|
+
I(this, "schemaService", null);
|
|
1621
|
+
I(this, "metadataService", null);
|
|
1622
|
+
I(this, "propertyConfig", {
|
|
1624
1623
|
type: "object",
|
|
1625
1624
|
categories: {}
|
|
1626
1625
|
});
|
|
@@ -1662,7 +1661,7 @@ class Mo {
|
|
|
1662
1661
|
type: "combo-list",
|
|
1663
1662
|
textField: "name",
|
|
1664
1663
|
valueField: "value",
|
|
1665
|
-
data: [{ value: n.type, name:
|
|
1664
|
+
data: [{ value: n.type, name: B[n.type].name }]
|
|
1666
1665
|
}
|
|
1667
1666
|
}
|
|
1668
1667
|
}
|
|
@@ -1698,16 +1697,16 @@ class Mo {
|
|
|
1698
1697
|
const o = t && t.parent && t.parent.schema;
|
|
1699
1698
|
if (!o)
|
|
1700
1699
|
return;
|
|
1701
|
-
const r = o.contents.findIndex((l) => l.id === n), a =
|
|
1700
|
+
const r = o.contents.findIndex((l) => l.id === n), a = F(o.contents[r]);
|
|
1702
1701
|
o.contents.splice(r, 1), o.contents.splice(r, 0, a);
|
|
1703
1702
|
}
|
|
1704
1703
|
}
|
|
1705
|
-
const
|
|
1704
|
+
const Y = class Y {
|
|
1706
1705
|
/**
|
|
1707
1706
|
* 根据绑定字段类型获取可用的输入类控件
|
|
1708
1707
|
*/
|
|
1709
1708
|
static getEditorTypesByMDataType(n) {
|
|
1710
|
-
const t =
|
|
1709
|
+
const t = Y.fieldControlTypeMapping[n];
|
|
1711
1710
|
return t || [{ key: "", value: "" }];
|
|
1712
1711
|
}
|
|
1713
1712
|
/**
|
|
@@ -1715,8 +1714,8 @@ const J = class J {
|
|
|
1715
1714
|
*/
|
|
1716
1715
|
static getAllInputTypes() {
|
|
1717
1716
|
const n = [];
|
|
1718
|
-
for (let t in
|
|
1719
|
-
|
|
1717
|
+
for (let t in Y.fieldControlTypeMapping)
|
|
1718
|
+
Y.fieldControlTypeMapping[t].forEach((o) => {
|
|
1720
1719
|
n.find((r) => r.key === o.key && r.value === o.value) || n.push({ key: o.key, value: o.value });
|
|
1721
1720
|
});
|
|
1722
1721
|
return n;
|
|
@@ -1725,65 +1724,172 @@ const J = class J {
|
|
|
1725
1724
|
/**
|
|
1726
1725
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1727
1726
|
*/
|
|
1728
|
-
|
|
1727
|
+
I(Y, "fieldControlTypeMapping", {
|
|
1729
1728
|
String: [
|
|
1730
|
-
{ key:
|
|
1731
|
-
{ key:
|
|
1732
|
-
{ key:
|
|
1733
|
-
{ key:
|
|
1734
|
-
{ key:
|
|
1735
|
-
{ key:
|
|
1736
|
-
{ key:
|
|
1729
|
+
{ key: B["input-group"].type, value: B["input-group"].name },
|
|
1730
|
+
{ key: B.lookup.type, value: B.lookup.name },
|
|
1731
|
+
{ key: B["date-picker"].type, value: B["date-picker"].name },
|
|
1732
|
+
{ key: B["check-box"].type, value: B["check-box"].name },
|
|
1733
|
+
{ key: B["check-group"].type, value: B["check-group"].name },
|
|
1734
|
+
{ key: B["radio-group"].type, value: B["radio-group"].name },
|
|
1735
|
+
{ key: B["combo-list"].type, value: B["combo-list"].name },
|
|
1736
|
+
{ key: B.textarea.type, value: B.textarea.name }
|
|
1737
1737
|
],
|
|
1738
1738
|
Text: [
|
|
1739
|
-
{ key:
|
|
1740
|
-
{ key:
|
|
1739
|
+
{ key: B.textarea.type, value: B.textarea.name },
|
|
1740
|
+
{ key: B.lookup.type, value: B.lookup.name }
|
|
1741
1741
|
],
|
|
1742
1742
|
Decimal: [
|
|
1743
|
-
{ key:
|
|
1743
|
+
{ key: B["number-spinner"].type, value: B["number-spinner"].name }
|
|
1744
1744
|
],
|
|
1745
1745
|
Integer: [
|
|
1746
|
-
{ key:
|
|
1746
|
+
{ key: B["number-spinner"].type, value: B["number-spinner"].name }
|
|
1747
1747
|
],
|
|
1748
1748
|
Number: [
|
|
1749
|
-
{ key:
|
|
1749
|
+
{ key: B["number-spinner"].type, value: B["number-spinner"].name }
|
|
1750
1750
|
],
|
|
1751
1751
|
BigNumber: [
|
|
1752
|
-
{ key:
|
|
1752
|
+
{ key: B["number-spinner"].type, value: B["number-spinner"].name }
|
|
1753
1753
|
],
|
|
1754
1754
|
Date: [
|
|
1755
|
-
{ key:
|
|
1755
|
+
{ key: B["date-picker"].type, value: B["date-picker"].name }
|
|
1756
1756
|
],
|
|
1757
1757
|
DateTime: [
|
|
1758
|
-
{ key:
|
|
1758
|
+
{ key: B["date-picker"].type, value: B["date-picker"].name }
|
|
1759
1759
|
],
|
|
1760
1760
|
Boolean: [
|
|
1761
|
-
{ key:
|
|
1762
|
-
{ key:
|
|
1761
|
+
{ key: B.switch.type, value: B.switch.name },
|
|
1762
|
+
{ key: B["check-box"].type, value: B["check-box"].name }
|
|
1763
1763
|
],
|
|
1764
1764
|
Enum: [
|
|
1765
|
-
{ key:
|
|
1766
|
-
{ key:
|
|
1765
|
+
{ key: B["combo-list"].type, value: B["combo-list"].name },
|
|
1766
|
+
{ key: B["radio-group"].type, value: B["radio-group"].name }
|
|
1767
1767
|
],
|
|
1768
1768
|
Object: [
|
|
1769
|
-
{ key:
|
|
1770
|
-
{ key:
|
|
1771
|
-
{ key:
|
|
1769
|
+
{ key: B.lookup.type, value: B.lookup.name },
|
|
1770
|
+
{ key: B["combo-list"].type, value: B["combo-list"].name },
|
|
1771
|
+
{ key: B["radio-group"].type, value: B["radio-group"].name }
|
|
1772
1772
|
]
|
|
1773
1773
|
});
|
|
1774
|
-
let
|
|
1775
|
-
const
|
|
1776
|
-
class
|
|
1774
|
+
let le = Y;
|
|
1775
|
+
const Eo = m(0);
|
|
1776
|
+
class Io {
|
|
1777
|
+
constructor() {
|
|
1778
|
+
/** 控件标题 */
|
|
1779
|
+
I(this, "label", "");
|
|
1780
|
+
/** 控件id */
|
|
1781
|
+
I(this, "id", "");
|
|
1782
|
+
/** 每个控件占用的栅格数 */
|
|
1783
|
+
I(this, "columnInSM", 12);
|
|
1784
|
+
I(this, "columnInMD", 6);
|
|
1785
|
+
I(this, "columnInLG", 3);
|
|
1786
|
+
I(this, "columnInEL", 2);
|
|
1787
|
+
/** 每个控件占用的列数 */
|
|
1788
|
+
I(this, "displayWidthInSM", 1);
|
|
1789
|
+
I(this, "displayWidthInMD", 1);
|
|
1790
|
+
I(this, "displayWidthInLG", 1);
|
|
1791
|
+
I(this, "displayWidthInEL", 1);
|
|
1792
|
+
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
1793
|
+
I(this, "displayColumnCountAtBreakPoint", "md");
|
|
1794
|
+
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
1795
|
+
I(this, "tagRow", 0);
|
|
1796
|
+
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
1797
|
+
I(this, "showTopBorder", 0);
|
|
1798
|
+
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
1799
|
+
I(this, "group", 1);
|
|
1800
|
+
/** 控件是否符合标准的class配置(设计器用的) */
|
|
1801
|
+
I(this, "isSupportedClass", !0);
|
|
1802
|
+
/** 控件所在分组id(设计器用的) */
|
|
1803
|
+
I(this, "fieldSetId", "");
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
function Po(e) {
|
|
1807
|
+
let n, t;
|
|
1808
|
+
const o = /* @__PURE__ */ new Map();
|
|
1809
|
+
let r = [];
|
|
1810
|
+
function a(d, u) {
|
|
1811
|
+
const p = d.split(" ").filter((V) => V.startsWith("col-"));
|
|
1812
|
+
if (p.length === 0) {
|
|
1813
|
+
u.isSupportedClass = !1;
|
|
1814
|
+
return;
|
|
1815
|
+
}
|
|
1816
|
+
let y = p.find((V) => /^col-([1-9]|10|11|12)$/.test(V)), v = p.find((V) => /^col-md-([1-9]|10|11|12)$/.test(V)), h = p.find((V) => /^col-xl-([1-9]|10|11|12)$/.test(V)), g = p.find((V) => /^col-el-([1-9]|10|11|12)$/.test(V));
|
|
1817
|
+
y = y || "col-12", u.columnInSM = parseInt(y.replace("col-", ""), 10), u.displayWidthInSM = u.columnInSM / 12, u.displayWidthInSM !== 1 && (u.isSupportedClass = !1), v = v || "col-md-" + u.columnInSM, u.columnInMD = parseInt(v.replace("col-md-", ""), 10), u.displayWidthInMD = u.columnInMD / 6, [1, 2].includes(u.displayWidthInMD) || (u.isSupportedClass = !1), h = h || "col-xl-" + u.columnInMD, u.columnInLG = parseInt(h.replace("col-xl-", ""), 10), u.displayWidthInLG = u.columnInLG / 3, [1, 2, 3, 4].includes(u.displayWidthInLG) || (u.isSupportedClass = !1), g = g || "col-el-" + u.columnInLG, u.columnInEL = parseInt(g.replace("col-el-", ""), 10), u.displayWidthInEL = u.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(u.displayWidthInEL) || (u.isSupportedClass = !1);
|
|
1818
|
+
}
|
|
1819
|
+
function l(d, u, f, p = !1) {
|
|
1820
|
+
let y = !1;
|
|
1821
|
+
d.contents.forEach((v) => {
|
|
1822
|
+
if (v.type === "fieldset") {
|
|
1823
|
+
f += 1, l(v, u, f, !0), y = !0;
|
|
1824
|
+
return;
|
|
1825
|
+
}
|
|
1826
|
+
y && (f += 1, y = !1);
|
|
1827
|
+
const h = v.appearance && v.appearance.class, g = new Io();
|
|
1828
|
+
h ? a(h, g) : g.isSupportedClass = !1, g.label = v.label || v.id, g.id = v.id, g.group = f, p && (g.fieldSetId = d.id), t === v.id && (n = f), o.set(v.id, v), u.push(g);
|
|
1829
|
+
});
|
|
1830
|
+
}
|
|
1831
|
+
function s(d) {
|
|
1832
|
+
const u = e.getComponentById(d);
|
|
1833
|
+
if (!u || !u.componentType || !u.componentType.startsWith("form"))
|
|
1834
|
+
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
1835
|
+
const f = e.selectNode(u, (p) => p.type === De["response-form"].type);
|
|
1836
|
+
return !f || !f.contents || f.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: f };
|
|
1837
|
+
}
|
|
1838
|
+
function c(d, u) {
|
|
1839
|
+
u = u || d.id;
|
|
1840
|
+
const { result: f, message: p, formNode: y } = s(u);
|
|
1841
|
+
if (!f)
|
|
1842
|
+
return { result: f, message: p };
|
|
1843
|
+
t = d.id, r = [], o.clear();
|
|
1844
|
+
const v = y.contents[0].type === De.fieldset.type ? 0 : 1;
|
|
1845
|
+
l(y, r, v);
|
|
1846
|
+
const h = r.find((V) => !V.isSupportedClass);
|
|
1847
|
+
return {
|
|
1848
|
+
defaultState: {
|
|
1849
|
+
defaultGroupNumber: n || 1,
|
|
1850
|
+
model: h ? "customize" : "standard"
|
|
1851
|
+
},
|
|
1852
|
+
importData: r
|
|
1853
|
+
};
|
|
1854
|
+
}
|
|
1855
|
+
function i(d, u) {
|
|
1856
|
+
u = u;
|
|
1857
|
+
const { result: f, formNode: p } = s(u);
|
|
1858
|
+
if (!f)
|
|
1859
|
+
return "";
|
|
1860
|
+
const y = [];
|
|
1861
|
+
return d.forEach((v) => {
|
|
1862
|
+
var V;
|
|
1863
|
+
const h = o.get(v.id), g = h.appearance && h.appearance.class;
|
|
1864
|
+
if (g) {
|
|
1865
|
+
const w = g.split(" ").filter((J) => !J.startsWith("col-")), C = "col-" + v.columnInSM, T = "col-md-" + v.columnInMD, k = "col-xl-" + v.columnInLG, P = "col-el-" + v.columnInEL, U = [C, T, k, P].concat(w);
|
|
1866
|
+
h.appearance.class = U.join(" ");
|
|
1867
|
+
}
|
|
1868
|
+
if (v.fieldSetId) {
|
|
1869
|
+
const E = p.contents.find((C) => C.id === v.fieldSetId), w = y.find((C) => C.id === v.fieldSetId);
|
|
1870
|
+
w ? (V = w.contents) == null || V.push(h) : (y.push(E), E.contents = [h]);
|
|
1871
|
+
} else
|
|
1872
|
+
y.push(h);
|
|
1873
|
+
}), p.contents = y, p.id;
|
|
1874
|
+
}
|
|
1875
|
+
return {
|
|
1876
|
+
checkCanFindFormNode: s,
|
|
1877
|
+
checkCanOpenLayoutEditor: c,
|
|
1878
|
+
changeFormControlsByResponseLayoutConfig: i,
|
|
1879
|
+
getResonseFormLayoutConfig: l
|
|
1880
|
+
};
|
|
1881
|
+
}
|
|
1882
|
+
class Ve extends Mo {
|
|
1777
1883
|
constructor(t, o) {
|
|
1778
1884
|
super(t, o);
|
|
1779
|
-
|
|
1780
|
-
this.responseLayoutEditorFunction =
|
|
1885
|
+
I(this, "responseLayoutEditorFunction");
|
|
1886
|
+
this.responseLayoutEditorFunction = Po(this.formSchemaUtils);
|
|
1781
1887
|
}
|
|
1782
1888
|
getPropertyConfig(t, o) {
|
|
1783
1889
|
return this.propertyConfig.categories.basic = this.getBasicProperties(t, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t, o), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
|
|
1784
1890
|
}
|
|
1785
1891
|
getBasicProperties(t, o) {
|
|
1786
|
-
var
|
|
1892
|
+
var s;
|
|
1787
1893
|
var r = this;
|
|
1788
1894
|
this.setDesignViewModelField(t);
|
|
1789
1895
|
const a = this.formSchemaUtils.getFormMetadataBasicInfo(), l = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
@@ -1808,7 +1914,7 @@ class Be extends Mo {
|
|
|
1808
1914
|
textField: "value",
|
|
1809
1915
|
valueField: "key",
|
|
1810
1916
|
editable: !1,
|
|
1811
|
-
data: r.designViewModelField ?
|
|
1917
|
+
data: r.designViewModelField ? le.getEditorTypesByMDataType((s = r.designViewModelField.type) == null ? void 0 : s.name) : le.getAllInputTypes()
|
|
1812
1918
|
}
|
|
1813
1919
|
},
|
|
1814
1920
|
label: {
|
|
@@ -1837,15 +1943,15 @@ class Be extends Mo {
|
|
|
1837
1943
|
}
|
|
1838
1944
|
}
|
|
1839
1945
|
},
|
|
1840
|
-
setPropertyRelates(
|
|
1841
|
-
if (
|
|
1842
|
-
switch (
|
|
1946
|
+
setPropertyRelates(c, i) {
|
|
1947
|
+
if (c)
|
|
1948
|
+
switch (c && c.propertyID) {
|
|
1843
1949
|
case "type": {
|
|
1844
|
-
r.changeControlType(t,
|
|
1950
|
+
r.changeControlType(t, c, o);
|
|
1845
1951
|
break;
|
|
1846
1952
|
}
|
|
1847
1953
|
case "label": {
|
|
1848
|
-
|
|
1954
|
+
c.needRefreshControlTree = !0;
|
|
1849
1955
|
break;
|
|
1850
1956
|
}
|
|
1851
1957
|
}
|
|
@@ -1905,11 +2011,11 @@ class Be extends Mo {
|
|
|
1905
2011
|
* @param newControlType 新控件类型
|
|
1906
2012
|
*/
|
|
1907
2013
|
changeControlType(t, o, r) {
|
|
1908
|
-
var d,
|
|
2014
|
+
var d, u, f, p;
|
|
1909
2015
|
const a = o.propertyValue, l = r && r.parent && r.parent.schema;
|
|
1910
2016
|
if (!l)
|
|
1911
2017
|
return;
|
|
1912
|
-
const
|
|
2018
|
+
const s = l.contents.findIndex((y) => y.id === t.id), c = l.contents[s];
|
|
1913
2019
|
let i;
|
|
1914
2020
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1915
2021
|
editor: {
|
|
@@ -1918,22 +2024,22 @@ class Be extends Mo {
|
|
|
1918
2024
|
name: this.designViewModelField.name,
|
|
1919
2025
|
require: this.designViewModelField.require,
|
|
1920
2026
|
readonly: this.designViewModelField.readonly
|
|
1921
|
-
}, !1), i = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), i || (i =
|
|
1922
|
-
id:
|
|
1923
|
-
appearance:
|
|
1924
|
-
size:
|
|
1925
|
-
label:
|
|
1926
|
-
binding:
|
|
1927
|
-
visible:
|
|
2027
|
+
}, !1), i = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), i || (i = this.controlCreatorUtils.createFormGroupWithoutField(a)), Object.assign(i, {
|
|
2028
|
+
id: c.id,
|
|
2029
|
+
appearance: c.appearance,
|
|
2030
|
+
size: c.size,
|
|
2031
|
+
label: c.label,
|
|
2032
|
+
binding: c.binding,
|
|
2033
|
+
visible: c.visible
|
|
1928
2034
|
}), Object.assign(i.editor, {
|
|
1929
|
-
isTextArea: i.isTextArea &&
|
|
1930
|
-
placeholder: (d =
|
|
1931
|
-
holdPlace: (
|
|
1932
|
-
readonly: (f =
|
|
1933
|
-
require: (p =
|
|
1934
|
-
}), l.contents.splice(
|
|
2035
|
+
isTextArea: i.isTextArea && c.isTextArea,
|
|
2036
|
+
placeholder: (d = c.editor) == null ? void 0 : d.placeholder,
|
|
2037
|
+
holdPlace: (u = c.editor) == null ? void 0 : u.holdPlace,
|
|
2038
|
+
readonly: (f = c.editor) == null ? void 0 : f.readonly,
|
|
2039
|
+
require: (p = c.editor) == null ? void 0 : p.require
|
|
2040
|
+
}), l.contents.splice(s, 1), l.contents.splice(s, 0, i), r.schema = Object.assign(c, i), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
1935
2041
|
(y) => y.classList.remove("dgComponentSelected")
|
|
1936
|
-
),
|
|
2042
|
+
), Eo.value++;
|
|
1937
2043
|
}
|
|
1938
2044
|
getComponentConfig(t, o = {}, r = {}) {
|
|
1939
2045
|
const a = Object.assign({
|
|
@@ -1973,13 +2079,13 @@ class Be extends Mo {
|
|
|
1973
2079
|
*/
|
|
1974
2080
|
updateUnifiedLayoutAfterControlChanged(t, o, r) {
|
|
1975
2081
|
const a = t.split(" ");
|
|
1976
|
-
let l = a.find((
|
|
1977
|
-
l = l || "col-12",
|
|
2082
|
+
let l = a.find((u) => /^col-([1-9]|10|11|12)$/.test(u)), s = a.find((u) => /^col-md-([1-9]|10|11|12)$/.test(u)), c = a.find((u) => /^col-xl-([1-9]|10|11|12)$/.test(u)), i = a.find((u) => /^col-el-([1-9]|10|11|12)$/.test(u));
|
|
2083
|
+
l = l || "col-12", s = s || "col-md-" + l.replace("col-", ""), c = c || "col-xl-" + s.replace("col-md-", ""), i = i || "col-el-" + c.replace("col-xl-", "");
|
|
1978
2084
|
const d = {
|
|
1979
2085
|
id: o,
|
|
1980
2086
|
columnInSM: parseInt(l.replace("col-", ""), 10),
|
|
1981
|
-
columnInMD: parseInt(
|
|
1982
|
-
columnInLG: parseInt(
|
|
2087
|
+
columnInMD: parseInt(s.replace("col-md-", ""), 10),
|
|
2088
|
+
columnInLG: parseInt(c.replace("col-xl-", ""), 10),
|
|
1983
2089
|
columnInEL: parseInt(i.replace("col-el-", ""), 10)
|
|
1984
2090
|
};
|
|
1985
2091
|
this.updateUnifiedLayoutAfterResponseLayoutChanged(r, d);
|
|
@@ -1995,13 +2101,13 @@ class Be extends Mo {
|
|
|
1995
2101
|
return;
|
|
1996
2102
|
const a = [];
|
|
1997
2103
|
if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(r, a, 1), o) {
|
|
1998
|
-
const y = a.find((
|
|
2104
|
+
const y = a.find((v) => v.id === o.id);
|
|
1999
2105
|
Object.assign(y || {}, o);
|
|
2000
2106
|
}
|
|
2001
|
-
const l = a.map((y) => y.columnInSM),
|
|
2107
|
+
const l = a.map((y) => y.columnInSM), s = a.map((y) => y.columnInMD), c = a.map((y) => y.columnInLG), i = a.map((y) => y.columnInEL), d = this.checkIsUniqueColumn(l) ? l[0] : null, u = this.checkIsUniqueColumn(s) ? s[0] : null, f = this.checkIsUniqueColumn(c) ? c[0] : null, p = this.checkIsUniqueColumn(i) ? i[0] : null;
|
|
2002
2108
|
Object.assign(r.unifiedLayout, {
|
|
2003
2109
|
uniqueColClassInSM: d,
|
|
2004
|
-
uniqueColClassInMD:
|
|
2110
|
+
uniqueColClassInMD: u,
|
|
2005
2111
|
uniqueColClassInLG: f,
|
|
2006
2112
|
uniqueColClassInEL: p
|
|
2007
2113
|
});
|
|
@@ -2014,7 +2120,7 @@ class Be extends Mo {
|
|
|
2014
2120
|
return Array.from(o).length === 1;
|
|
2015
2121
|
}
|
|
2016
2122
|
}
|
|
2017
|
-
class
|
|
2123
|
+
class Ao extends Ve {
|
|
2018
2124
|
constructor(n, t) {
|
|
2019
2125
|
super(n, t);
|
|
2020
2126
|
}
|
|
@@ -2038,19 +2144,19 @@ class Po extends Be {
|
|
|
2038
2144
|
});
|
|
2039
2145
|
}
|
|
2040
2146
|
}
|
|
2041
|
-
function
|
|
2147
|
+
function Oo(e, n) {
|
|
2042
2148
|
const {
|
|
2043
2149
|
canAccepts: t,
|
|
2044
2150
|
checkCanDeleteComponent: o,
|
|
2045
2151
|
checkCanMoveComponent: r,
|
|
2046
2152
|
hideNestedPaddingInDesginerView: a,
|
|
2047
2153
|
onAcceptMovedChildElement: l,
|
|
2048
|
-
resolveComponentContext:
|
|
2049
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2154
|
+
resolveComponentContext: s,
|
|
2155
|
+
triggerBelongedComponentToMoveWhenMoved: c,
|
|
2050
2156
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2051
|
-
} =
|
|
2052
|
-
function
|
|
2053
|
-
return new
|
|
2157
|
+
} = xe(e), d = e.schema;
|
|
2158
|
+
function u(f, p) {
|
|
2159
|
+
return new Ao(f, n).getPropertyConfig(d, p);
|
|
2054
2160
|
}
|
|
2055
2161
|
return {
|
|
2056
2162
|
canAccepts: t,
|
|
@@ -2058,21 +2164,21 @@ function Io(e, n) {
|
|
|
2058
2164
|
checkCanMoveComponent: r,
|
|
2059
2165
|
hideNestedPaddingInDesginerView: a,
|
|
2060
2166
|
onAcceptMovedChildElement: l,
|
|
2061
|
-
resolveComponentContext:
|
|
2062
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2167
|
+
resolveComponentContext: s,
|
|
2168
|
+
triggerBelongedComponentToMoveWhenMoved: c,
|
|
2063
2169
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
2064
|
-
getPropsConfig:
|
|
2170
|
+
getPropsConfig: u
|
|
2065
2171
|
};
|
|
2066
2172
|
}
|
|
2067
|
-
const
|
|
2173
|
+
const No = /* @__PURE__ */ R({
|
|
2068
2174
|
name: "FComboListDesign",
|
|
2069
|
-
props:
|
|
2175
|
+
props: we,
|
|
2070
2176
|
emits: ["clear", "update:modelValue", "change"],
|
|
2071
2177
|
setup(e, n) {
|
|
2072
|
-
const t =
|
|
2073
|
-
return
|
|
2178
|
+
const t = m(), o = W("designer-host-service"), r = W("design-item-context"), a = Oo(r, o), l = We(t, r, a);
|
|
2179
|
+
return _(() => {
|
|
2074
2180
|
t.value.componentInstance = l;
|
|
2075
|
-
}), n.expose(l.value), () =>
|
|
2181
|
+
}), n.expose(l.value), () => S(ko, {
|
|
2076
2182
|
ref: t,
|
|
2077
2183
|
buttonContent: e.dropDownIcon,
|
|
2078
2184
|
readonly: !0,
|
|
@@ -2082,26 +2188,26 @@ const Oo = /* @__PURE__ */ G({
|
|
|
2082
2188
|
enableClear: !0
|
|
2083
2189
|
}, null);
|
|
2084
2190
|
}
|
|
2085
|
-
}),
|
|
2191
|
+
}), Be = (e) => {
|
|
2086
2192
|
const n = e;
|
|
2087
2193
|
return n.install = function(t) {
|
|
2088
2194
|
t.component(n.name, e);
|
|
2089
2195
|
}, e;
|
|
2090
2196
|
};
|
|
2091
|
-
|
|
2092
|
-
e["combo-list"] =
|
|
2197
|
+
q.register = (e, n, t, o) => {
|
|
2198
|
+
e["combo-list"] = q, n["combo-list"] = Xe;
|
|
2093
2199
|
};
|
|
2094
|
-
|
|
2095
|
-
e["combo-list"] =
|
|
2200
|
+
q.registerDesigner = (e, n, t) => {
|
|
2201
|
+
e["combo-list"] = No, n["combo-list"] = Xe;
|
|
2096
2202
|
};
|
|
2097
|
-
|
|
2098
|
-
const
|
|
2099
|
-
["appearance",
|
|
2203
|
+
Be(q);
|
|
2204
|
+
const jo = /* @__PURE__ */ new Map([
|
|
2205
|
+
["appearance", ce]
|
|
2100
2206
|
]);
|
|
2101
|
-
function
|
|
2207
|
+
function Lo(e, n, t) {
|
|
2102
2208
|
return n;
|
|
2103
2209
|
}
|
|
2104
|
-
const
|
|
2210
|
+
const Do = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-design.gitee.io/input-group.schema.json", Uo = "input-group", Go = "A Farris Input Component", Ro = "object", _o = {
|
|
2105
2211
|
id: {
|
|
2106
2212
|
description: "The unique identifier for a Input Group",
|
|
2107
2213
|
type: "string"
|
|
@@ -2303,18 +2409,18 @@ const Lo = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-
|
|
|
2303
2409
|
type: "string",
|
|
2304
2410
|
default: ""
|
|
2305
2411
|
}
|
|
2306
|
-
},
|
|
2412
|
+
}, qo = [
|
|
2307
2413
|
"id",
|
|
2308
2414
|
"type"
|
|
2309
|
-
],
|
|
2310
|
-
$schema:
|
|
2415
|
+
], Wo = {
|
|
2416
|
+
$schema: Do,
|
|
2311
2417
|
$id: $o,
|
|
2312
|
-
title:
|
|
2313
|
-
description:
|
|
2314
|
-
type:
|
|
2418
|
+
title: Uo,
|
|
2419
|
+
description: Go,
|
|
2420
|
+
type: Ro,
|
|
2315
2421
|
properties: _o,
|
|
2316
|
-
required:
|
|
2317
|
-
},
|
|
2422
|
+
required: qo
|
|
2423
|
+
}, Te = {
|
|
2318
2424
|
id: { Type: String, default: "" },
|
|
2319
2425
|
/** 是否自动完成 */
|
|
2320
2426
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -2381,116 +2487,116 @@ const Lo = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-
|
|
|
2381
2487
|
* - input: 输入时更新
|
|
2382
2488
|
*/
|
|
2383
2489
|
updateOn: { type: String, default: "blur" }
|
|
2384
|
-
}, Ke =
|
|
2490
|
+
}, Ke = ee(Te, Wo, jo, Lo);
|
|
2385
2491
|
function Ho(e, n, t, o) {
|
|
2386
|
-
const r =
|
|
2492
|
+
const r = m(e.disabled), a = m(!1), l = m("text"), s = m(e.showBorder), c = m(e.textAlign), i = m(e.updateOn), d = x(() => e.editable || !e.readonly), u = x(() => e.editable && !e.disabled && !e.readonly), f = x(() => !e.disabled && a.value), p = x(() => t.value === "" || t.value === null || t.value === void 0), y = x(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = x(() => e.readonly || !e.editable), h = x(() => e.enableTitle ? t.value : ""), g = x(() => ({
|
|
2387
2493
|
"form-control": !0,
|
|
2388
2494
|
"f-utils-fill": !0,
|
|
2389
|
-
"text-left":
|
|
2390
|
-
"text-center":
|
|
2391
|
-
"text-right":
|
|
2392
|
-
})),
|
|
2393
|
-
const
|
|
2495
|
+
"text-left": c.value === "left",
|
|
2496
|
+
"text-center": c.value === "center",
|
|
2497
|
+
"text-right": c.value === "right"
|
|
2498
|
+
})), V = x(() => {
|
|
2499
|
+
const M = {
|
|
2394
2500
|
"f-cmp-inputgroup": !0,
|
|
2395
2501
|
"input-group": !0,
|
|
2396
2502
|
"f-state-disable": r.value,
|
|
2397
|
-
"f-state-editable":
|
|
2398
|
-
"f-state-readonly":
|
|
2503
|
+
"f-state-editable": u.value,
|
|
2504
|
+
"f-state-readonly": v.value,
|
|
2399
2505
|
"f-state-focus": f.value
|
|
2400
2506
|
};
|
|
2401
|
-
return (e.customClass || "").split(" ").reduce((
|
|
2402
|
-
}),
|
|
2403
|
-
function
|
|
2404
|
-
t.value =
|
|
2507
|
+
return (e.customClass || "").split(" ").reduce((ne, fe) => (ne[fe] = !0, ne), M), M;
|
|
2508
|
+
}), E = x(() => s.value ? "" : "border-width : 0 ");
|
|
2509
|
+
function w(M, L = !0) {
|
|
2510
|
+
t.value = M, o.value !== M && (o.value = M), L && n.emit("change", M), n.emit("update:modelValue", M), n.emit("update:value", M);
|
|
2405
2511
|
}
|
|
2406
2512
|
O(
|
|
2407
2513
|
() => e.modelValue,
|
|
2408
|
-
(
|
|
2409
|
-
|
|
2514
|
+
(M, L) => {
|
|
2515
|
+
M !== L && (t.value = M, o.value = M);
|
|
2410
2516
|
}
|
|
2411
|
-
), O(() => e.disabled, (
|
|
2412
|
-
|
|
2517
|
+
), O(() => e.disabled, (M, L) => {
|
|
2518
|
+
M !== L && (r.value = M);
|
|
2413
2519
|
});
|
|
2414
|
-
function
|
|
2415
|
-
return a.value = !1, n.emit("blur",
|
|
2520
|
+
function C(M) {
|
|
2521
|
+
return a.value = !1, n.emit("blur", M), M.stopPropagation(), !1;
|
|
2416
2522
|
}
|
|
2417
|
-
function
|
|
2418
|
-
n.emit("click",
|
|
2523
|
+
function T(M) {
|
|
2524
|
+
n.emit("click", M);
|
|
2419
2525
|
}
|
|
2420
|
-
function
|
|
2421
|
-
e.disabled || (
|
|
2526
|
+
function k(M) {
|
|
2527
|
+
e.disabled || (s.value && (a.value = !0), d.value && n.emit("focus", M));
|
|
2422
2528
|
}
|
|
2423
|
-
function
|
|
2424
|
-
n.emit("input",
|
|
2425
|
-
const L =
|
|
2529
|
+
function P(M) {
|
|
2530
|
+
n.emit("input", M.target.value);
|
|
2531
|
+
const L = M.target.value;
|
|
2426
2532
|
o.value = L, i.value === "change" && (n.emit("update:modelValue", L), n.emit("update:value", L));
|
|
2427
2533
|
}
|
|
2428
|
-
function
|
|
2429
|
-
n.emit("keydown",
|
|
2534
|
+
function U(M) {
|
|
2535
|
+
n.emit("keydown", M);
|
|
2430
2536
|
}
|
|
2431
|
-
function
|
|
2432
|
-
n.emit("keyup",
|
|
2537
|
+
function J(M) {
|
|
2538
|
+
n.emit("keyup", M);
|
|
2433
2539
|
}
|
|
2434
|
-
function
|
|
2435
|
-
|
|
2540
|
+
function de(M) {
|
|
2541
|
+
M.target.tagName !== "INPUT" && M.preventDefault(), M.stopPropagation();
|
|
2436
2542
|
}
|
|
2437
|
-
function
|
|
2543
|
+
function pe(M) {
|
|
2438
2544
|
if (i.value === "blur") {
|
|
2439
|
-
const L =
|
|
2440
|
-
|
|
2545
|
+
const L = M.target.value;
|
|
2546
|
+
M.stopPropagation(), w(L);
|
|
2441
2547
|
}
|
|
2442
2548
|
}
|
|
2443
2549
|
return {
|
|
2444
|
-
changeTextBoxValue:
|
|
2550
|
+
changeTextBoxValue: w,
|
|
2445
2551
|
disabled: r,
|
|
2446
2552
|
displayText: o,
|
|
2447
|
-
editable:
|
|
2553
|
+
editable: u,
|
|
2448
2554
|
hasFocused: f,
|
|
2449
|
-
inputGroupClass:
|
|
2555
|
+
inputGroupClass: V,
|
|
2450
2556
|
inputType: l,
|
|
2451
2557
|
isEmpty: p,
|
|
2452
2558
|
modelValue: t,
|
|
2453
|
-
readonly:
|
|
2454
|
-
onBlur:
|
|
2455
|
-
onClick:
|
|
2456
|
-
onFocus:
|
|
2457
|
-
onInput:
|
|
2458
|
-
onKeydown:
|
|
2459
|
-
onKeyup:
|
|
2460
|
-
onMousedown:
|
|
2461
|
-
onTextBoxValueChange:
|
|
2559
|
+
readonly: v,
|
|
2560
|
+
onBlur: C,
|
|
2561
|
+
onClick: T,
|
|
2562
|
+
onFocus: k,
|
|
2563
|
+
onInput: P,
|
|
2564
|
+
onKeydown: U,
|
|
2565
|
+
onKeyup: J,
|
|
2566
|
+
onMousedown: de,
|
|
2567
|
+
onTextBoxValueChange: pe,
|
|
2462
2568
|
placeholder: y,
|
|
2463
|
-
textBoxClass:
|
|
2464
|
-
textBoxTitle:
|
|
2465
|
-
inputGroupStyle:
|
|
2569
|
+
textBoxClass: g,
|
|
2570
|
+
textBoxTitle: h,
|
|
2571
|
+
inputGroupStyle: E
|
|
2466
2572
|
};
|
|
2467
2573
|
}
|
|
2468
|
-
function
|
|
2469
|
-
const r =
|
|
2470
|
-
|
|
2471
|
-
const i =
|
|
2574
|
+
function zo(e, n, t, o) {
|
|
2575
|
+
const r = m(e.disabled), a = m(!1), l = m("text"), s = m(e.showBorder), c = m(e.textAlign);
|
|
2576
|
+
x(() => e.editable || !e.readonly);
|
|
2577
|
+
const i = x(() => e.editable && !e.disabled && !e.readonly), d = x(() => !e.disabled && a.value), u = x(() => t.value === "" || t.value === null || t.value === void 0), f = x(() => e.placeholder), p = x(() => e.readonly || !e.editable), y = x(() => e.enableTitle ? t.value : ""), v = x(() => ({
|
|
2472
2578
|
"form-control": !0,
|
|
2473
2579
|
// 'f-utils-fill': true,
|
|
2474
|
-
"text-left":
|
|
2475
|
-
"text-center":
|
|
2476
|
-
"text-right":
|
|
2477
|
-
})),
|
|
2580
|
+
"text-left": c.value === "left",
|
|
2581
|
+
"text-center": c.value === "center",
|
|
2582
|
+
"text-right": c.value === "right"
|
|
2583
|
+
})), h = x(() => ({
|
|
2478
2584
|
"f-cmp-inputgroup": !0,
|
|
2479
2585
|
"input-group": !0,
|
|
2480
2586
|
"f-state-disable": !0,
|
|
2481
2587
|
"f-state-editable": !1,
|
|
2482
2588
|
"f-state-readonly": !0
|
|
2483
2589
|
// 'f-state-focus': hasFocused.value
|
|
2484
|
-
})),
|
|
2590
|
+
})), g = x(() => s.value ? "" : "border-width : 0 ");
|
|
2485
2591
|
return {
|
|
2486
2592
|
// changeTextBoxValue,
|
|
2487
2593
|
disabled: r,
|
|
2488
2594
|
displayText: o,
|
|
2489
2595
|
editable: i,
|
|
2490
2596
|
hasFocused: d,
|
|
2491
|
-
inputGroupClass:
|
|
2597
|
+
inputGroupClass: h,
|
|
2492
2598
|
inputType: l,
|
|
2493
|
-
isEmpty:
|
|
2599
|
+
isEmpty: u,
|
|
2494
2600
|
modelValue: t,
|
|
2495
2601
|
readonly: p,
|
|
2496
2602
|
// onBlur,
|
|
@@ -2502,39 +2608,39 @@ function Wo(e, n, t, o) {
|
|
|
2502
2608
|
// onMousedown,
|
|
2503
2609
|
// onTextBoxValueChange,
|
|
2504
2610
|
placeholder: f,
|
|
2505
|
-
textBoxClass:
|
|
2611
|
+
textBoxClass: v,
|
|
2506
2612
|
textBoxTitle: y,
|
|
2507
|
-
inputGroupStyle:
|
|
2613
|
+
inputGroupStyle: g
|
|
2508
2614
|
};
|
|
2509
2615
|
}
|
|
2510
2616
|
function et(e, n, t) {
|
|
2511
|
-
const o =
|
|
2512
|
-
function i(
|
|
2513
|
-
o.value =
|
|
2617
|
+
const o = m(!1), r = x(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: s, isEmpty: c } = t;
|
|
2618
|
+
function i(v) {
|
|
2619
|
+
o.value = v;
|
|
2514
2620
|
}
|
|
2515
2621
|
O(l, () => {
|
|
2516
|
-
|
|
2622
|
+
s != null && s.value ? i(!!(l != null && l.value)) : i(!1);
|
|
2517
2623
|
});
|
|
2518
|
-
const d =
|
|
2624
|
+
const d = x(() => ({
|
|
2519
2625
|
"input-group-text": !0,
|
|
2520
2626
|
"input-group-clear": !0
|
|
2521
|
-
})),
|
|
2627
|
+
})), u = x(() => ({
|
|
2522
2628
|
width: "24px",
|
|
2523
2629
|
display: o.value ? "flex" : "none"
|
|
2524
2630
|
}));
|
|
2525
|
-
function f(
|
|
2526
|
-
|
|
2631
|
+
function f(v) {
|
|
2632
|
+
v.stopPropagation(), r.value && (a("", !0), i(!o.value), n.emit("clear"));
|
|
2527
2633
|
}
|
|
2528
|
-
function p(
|
|
2529
|
-
r.value && !
|
|
2634
|
+
function p(v) {
|
|
2635
|
+
r.value && !c.value && i(!0);
|
|
2530
2636
|
}
|
|
2531
|
-
function y(
|
|
2637
|
+
function y(v) {
|
|
2532
2638
|
r.value && i(!1);
|
|
2533
2639
|
}
|
|
2534
|
-
return { clearButtonClass: d, clearButtonStyle:
|
|
2640
|
+
return { clearButtonClass: d, clearButtonStyle: u, hasShownClearButton: o, onClearValue: f, onMouseEnter: p, onMouseLeave: y, shouldShowClearButton: r };
|
|
2535
2641
|
}
|
|
2536
|
-
const
|
|
2537
|
-
function
|
|
2642
|
+
const Yo = ["moz", "ms", "webkit"];
|
|
2643
|
+
function Zo() {
|
|
2538
2644
|
let e = 0;
|
|
2539
2645
|
return (n) => {
|
|
2540
2646
|
const t = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (t - e)), r = setTimeout(() => {
|
|
@@ -2543,65 +2649,65 @@ function Yo() {
|
|
|
2543
2649
|
return e = t + o, r;
|
|
2544
2650
|
};
|
|
2545
2651
|
}
|
|
2546
|
-
function
|
|
2652
|
+
function Xo() {
|
|
2547
2653
|
if (typeof window > "u")
|
|
2548
2654
|
return () => 0;
|
|
2549
2655
|
if (window.requestAnimationFrame)
|
|
2550
2656
|
return window.requestAnimationFrame.bind(window);
|
|
2551
|
-
const e =
|
|
2552
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
2657
|
+
const e = Yo.filter((n) => `${n}RequestAnimationFrame` in window)[0];
|
|
2658
|
+
return e ? window[`${e}RequestAnimationFrame`] : Zo();
|
|
2553
2659
|
}
|
|
2554
|
-
|
|
2660
|
+
Xo();
|
|
2555
2661
|
function tt(e, n) {
|
|
2556
|
-
const t =
|
|
2557
|
-
return { appendedButtonClass:
|
|
2662
|
+
const t = m(e.groupText), o = x(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = x(() => e.enableClear || !!e.groupText);
|
|
2663
|
+
return { appendedButtonClass: x(() => ({
|
|
2558
2664
|
"input-group-append": !0,
|
|
2559
2665
|
"append-force-show": o.value
|
|
2560
2666
|
})), appendedContent: t, shouldShowAppendedButton: r };
|
|
2561
2667
|
}
|
|
2562
2668
|
function nt(e, n, t, o) {
|
|
2563
|
-
const { appendedContent: r } = o, a =
|
|
2669
|
+
const { appendedContent: r } = o, a = m(e.enableViewPassword), l = x(() => e.type === "password"), s = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', c = '<span class="f-icon f-icon-eye"></span>', i = m(!1);
|
|
2564
2670
|
O(() => [e.readonly, e.disabled], ([f, p]) => {
|
|
2565
|
-
l.value && (t.value = f || p ? "password" : t.value, r.value = f || p ?
|
|
2671
|
+
l.value && (t.value = f || p ? "password" : t.value, r.value = f || p ? c : r.value);
|
|
2566
2672
|
});
|
|
2567
2673
|
function d() {
|
|
2568
|
-
return i.value = !i.value, t.value = i.value ? "text" : "password", r.value = i.value ?
|
|
2674
|
+
return i.value = !i.value, t.value = i.value ? "text" : "password", r.value = i.value ? s : c, !1;
|
|
2569
2675
|
}
|
|
2570
|
-
function
|
|
2571
|
-
t.value = l.value ? "password" : "text", r.value = l.value ? a.value ?
|
|
2676
|
+
function u() {
|
|
2677
|
+
t.value = l.value ? "password" : "text", r.value = l.value ? a.value ? c : "" : r.value;
|
|
2572
2678
|
}
|
|
2573
|
-
return
|
|
2679
|
+
return u(), { isPassword: l, onClickAppendedButton: d };
|
|
2574
2680
|
}
|
|
2575
2681
|
function ot(e, n, t) {
|
|
2576
|
-
const o =
|
|
2682
|
+
const o = m(), {
|
|
2577
2683
|
onBlurTextBox: r,
|
|
2578
2684
|
onFocusTextBox: a,
|
|
2579
2685
|
onInput: l,
|
|
2580
|
-
onKeyDown:
|
|
2581
|
-
textBoxValue:
|
|
2582
|
-
} = t, i =
|
|
2686
|
+
onKeyDown: s,
|
|
2687
|
+
textBoxValue: c
|
|
2688
|
+
} = t, i = x(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = x(() => ({
|
|
2583
2689
|
"form-control": !0,
|
|
2584
2690
|
"f-utils-fill": !0
|
|
2585
|
-
})),
|
|
2691
|
+
})), u = x(() => ({
|
|
2586
2692
|
"text-align": e.textAlign
|
|
2587
2693
|
}));
|
|
2588
|
-
function f(
|
|
2589
|
-
|
|
2694
|
+
function f(v) {
|
|
2695
|
+
v.stopPropagation();
|
|
2590
2696
|
}
|
|
2591
2697
|
function p() {
|
|
2592
2698
|
e.selectOnCreated, e.focusOnCreated;
|
|
2593
2699
|
}
|
|
2594
|
-
async function y(
|
|
2595
|
-
a(
|
|
2700
|
+
async function y(v) {
|
|
2701
|
+
a(v), await ae, p();
|
|
2596
2702
|
}
|
|
2597
|
-
return
|
|
2598
|
-
await
|
|
2599
|
-
}), () =>
|
|
2703
|
+
return _(async () => {
|
|
2704
|
+
await ae, p();
|
|
2705
|
+
}), () => S("input", {
|
|
2600
2706
|
ref: o,
|
|
2601
2707
|
class: d.value,
|
|
2602
|
-
style:
|
|
2708
|
+
style: u.value,
|
|
2603
2709
|
type: "text",
|
|
2604
|
-
value:
|
|
2710
|
+
value: c.value,
|
|
2605
2711
|
disabled: e.disabled,
|
|
2606
2712
|
readonly: e.readonly || !e.editable,
|
|
2607
2713
|
placeholder: i.value,
|
|
@@ -2609,133 +2715,133 @@ function ot(e, n, t) {
|
|
|
2609
2715
|
onChange: f,
|
|
2610
2716
|
onFocus: y,
|
|
2611
2717
|
onInput: l,
|
|
2612
|
-
onKeydown:
|
|
2718
|
+
onKeydown: s
|
|
2613
2719
|
}, null);
|
|
2614
2720
|
}
|
|
2615
|
-
function
|
|
2721
|
+
function Fe(e, n, t) {
|
|
2616
2722
|
const {
|
|
2617
2723
|
canDownward: o,
|
|
2618
2724
|
canUpward: r,
|
|
2619
2725
|
onClickDownButton: a,
|
|
2620
2726
|
onClickUpButton: l
|
|
2621
|
-
} = t,
|
|
2727
|
+
} = t, s = x(() => ({
|
|
2622
2728
|
"input-group-append": !0,
|
|
2623
2729
|
"btn-group": !0,
|
|
2624
2730
|
"btn-group-number": !0
|
|
2625
|
-
})),
|
|
2731
|
+
})), c = x(() => ({
|
|
2626
2732
|
btn: !0,
|
|
2627
2733
|
"btn-secondary": !0,
|
|
2628
2734
|
"btn-number-flag": !0
|
|
2629
|
-
})), i =
|
|
2735
|
+
})), i = x(() => ({
|
|
2630
2736
|
cursor: r() ? "pointer" : "not-allowed",
|
|
2631
2737
|
"margin-left": 0
|
|
2632
|
-
})), d =
|
|
2738
|
+
})), d = x(() => ({
|
|
2633
2739
|
cursor: o() ? "pointer" : "not-allowed",
|
|
2634
2740
|
"margin-left": 0
|
|
2635
2741
|
}));
|
|
2636
|
-
return () =>
|
|
2637
|
-
class:
|
|
2638
|
-
}, [
|
|
2742
|
+
return () => S("div", {
|
|
2743
|
+
class: s.value
|
|
2744
|
+
}, [S("button", {
|
|
2639
2745
|
title: "upButton",
|
|
2640
|
-
class:
|
|
2746
|
+
class: c.value,
|
|
2641
2747
|
style: i.value,
|
|
2642
2748
|
onClick: l,
|
|
2643
2749
|
disabled: !r()
|
|
2644
|
-
}, [
|
|
2750
|
+
}, [S("span", {
|
|
2645
2751
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
2646
|
-
}, null)]),
|
|
2752
|
+
}, null)]), S("button", {
|
|
2647
2753
|
title: "downButton",
|
|
2648
|
-
class:
|
|
2754
|
+
class: c.value,
|
|
2649
2755
|
style: d.value,
|
|
2650
2756
|
onClick: a,
|
|
2651
2757
|
disabled: !o()
|
|
2652
|
-
}, [
|
|
2758
|
+
}, [S("span", {
|
|
2653
2759
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
2654
2760
|
}, null)])]);
|
|
2655
2761
|
}
|
|
2656
2762
|
function Jo(e, n) {
|
|
2657
|
-
const t =
|
|
2658
|
-
displayValue:
|
|
2659
|
-
modelValue:
|
|
2763
|
+
const t = vn(e, n), o = mn(e, n, t), r = hn(e, n, o, t), a = bn(e, n, o, t, r), l = Fe(e, n, r), {
|
|
2764
|
+
displayValue: s,
|
|
2765
|
+
modelValue: c,
|
|
2660
2766
|
getRealValue: i
|
|
2661
2767
|
} = t, d = ot(e, n, a), {
|
|
2662
|
-
format:
|
|
2768
|
+
format: u
|
|
2663
2769
|
} = o, {
|
|
2664
2770
|
isFocus: f
|
|
2665
|
-
} = a, p =
|
|
2666
|
-
return
|
|
2771
|
+
} = a, p = x(() => !e.disabled && !e.readonly);
|
|
2772
|
+
return _(() => {
|
|
2667
2773
|
const y = i(e.modelValue);
|
|
2668
|
-
|
|
2774
|
+
s.value = u(y);
|
|
2669
2775
|
}), O(() => [e.value], ([y]) => {
|
|
2670
|
-
const
|
|
2671
|
-
|
|
2776
|
+
const v = i(y);
|
|
2777
|
+
c.value = v, s.value = u(v);
|
|
2672
2778
|
}), O(() => [e.modelValue], ([y]) => {
|
|
2673
|
-
y !==
|
|
2779
|
+
y !== c.value && (c.value = y, !f.value && (s.value = u(i(y))));
|
|
2674
2780
|
}), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2675
|
-
|
|
2676
|
-
}), () =>
|
|
2781
|
+
s.value = u(c.value);
|
|
2782
|
+
}), () => S("div", {
|
|
2677
2783
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2678
2784
|
}, [d(), p.value && l()]);
|
|
2679
2785
|
}
|
|
2680
|
-
function
|
|
2681
|
-
const r =
|
|
2682
|
-
isPassword:
|
|
2683
|
-
} = t,
|
|
2684
|
-
disabled:
|
|
2786
|
+
function Qo(e, n, t, o) {
|
|
2787
|
+
const r = m(), a = m(e.autocomplete), l = m(e.enableTitle), {
|
|
2788
|
+
isPassword: s
|
|
2789
|
+
} = t, c = m(e.minLength), i = m(e.maxLength), d = m(e.tabIndex), {
|
|
2790
|
+
disabled: u,
|
|
2685
2791
|
displayText: f,
|
|
2686
2792
|
inputType: p,
|
|
2687
2793
|
onBlur: y,
|
|
2688
|
-
onFocus:
|
|
2689
|
-
onInput:
|
|
2690
|
-
onClick:
|
|
2691
|
-
onKeydown:
|
|
2692
|
-
onKeyup:
|
|
2693
|
-
onMousedown:
|
|
2694
|
-
onTextBoxValueChange:
|
|
2695
|
-
readonly:
|
|
2696
|
-
placeholder:
|
|
2697
|
-
textBoxClass:
|
|
2698
|
-
textBoxTitle:
|
|
2794
|
+
onFocus: v,
|
|
2795
|
+
onInput: h,
|
|
2796
|
+
onClick: g,
|
|
2797
|
+
onKeydown: V,
|
|
2798
|
+
onKeyup: E,
|
|
2799
|
+
onMousedown: w,
|
|
2800
|
+
onTextBoxValueChange: C,
|
|
2801
|
+
readonly: T,
|
|
2802
|
+
placeholder: k,
|
|
2803
|
+
textBoxClass: P,
|
|
2804
|
+
textBoxTitle: U
|
|
2699
2805
|
} = o;
|
|
2700
|
-
return
|
|
2806
|
+
return _(() => {
|
|
2701
2807
|
e.selectOnCreated, e.focusOnCreated;
|
|
2702
|
-
}), () =>
|
|
2808
|
+
}), () => S("input", {
|
|
2703
2809
|
ref: r,
|
|
2704
2810
|
name: "input-group-value",
|
|
2705
2811
|
autocomplete: a.value,
|
|
2706
|
-
class:
|
|
2707
|
-
disabled:
|
|
2812
|
+
class: P.value,
|
|
2813
|
+
disabled: u == null ? void 0 : u.value,
|
|
2708
2814
|
maxlength: i.value,
|
|
2709
|
-
minlength:
|
|
2710
|
-
placeholder:
|
|
2711
|
-
readonly:
|
|
2815
|
+
minlength: c.value,
|
|
2816
|
+
placeholder: k.value,
|
|
2817
|
+
readonly: T == null ? void 0 : T.value,
|
|
2712
2818
|
tabindex: d.value,
|
|
2713
|
-
title: l.value && !
|
|
2819
|
+
title: l.value && !s.value ? U.value : "",
|
|
2714
2820
|
type: p.value,
|
|
2715
2821
|
value: f == null ? void 0 : f.value,
|
|
2716
2822
|
onBlur: y,
|
|
2717
|
-
onClick:
|
|
2718
|
-
onChange:
|
|
2719
|
-
onFocus:
|
|
2720
|
-
onInput:
|
|
2721
|
-
onKeydown:
|
|
2722
|
-
onKeyup:
|
|
2723
|
-
onMousedown:
|
|
2823
|
+
onClick: g,
|
|
2824
|
+
onChange: C,
|
|
2825
|
+
onFocus: v,
|
|
2826
|
+
onInput: h,
|
|
2827
|
+
onKeydown: V,
|
|
2828
|
+
onKeyup: E,
|
|
2829
|
+
onMousedown: w
|
|
2724
2830
|
}, null);
|
|
2725
2831
|
}
|
|
2726
|
-
function
|
|
2727
|
-
const t =
|
|
2832
|
+
function Ko(e, n) {
|
|
2833
|
+
const t = x(() => e.useExtendInfo && !!e.extendInfo), o = cn({
|
|
2728
2834
|
content: e.extendInfo
|
|
2729
2835
|
});
|
|
2730
2836
|
function r() {
|
|
2731
2837
|
n.emit("updateExtendInfo");
|
|
2732
2838
|
}
|
|
2733
|
-
return () => t.value && he(
|
|
2839
|
+
return () => t.value && he(S("span", {
|
|
2734
2840
|
class: "input-group-before-tips",
|
|
2735
2841
|
onMouseenter: r
|
|
2736
|
-
}, [
|
|
2842
|
+
}, [S("i", {
|
|
2737
2843
|
class: "f-icon f-icon-info-circle"
|
|
2738
|
-
}, null),
|
|
2844
|
+
}, null), S("b", {
|
|
2739
2845
|
class: "tips-arrow"
|
|
2740
2846
|
}, null)]), [[dn("tooltip"), o]]);
|
|
2741
2847
|
}
|
|
@@ -2743,104 +2849,104 @@ function rt(e, n, t, o, r) {
|
|
|
2743
2849
|
const {
|
|
2744
2850
|
appendedButtonClass: a,
|
|
2745
2851
|
appendedContent: l
|
|
2746
|
-
} = t,
|
|
2852
|
+
} = t, s = x(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), c = x(() => l.value && !n.slots.groupTextTemplate), i = x(() => !!n.slots.groupTextTemplate), {
|
|
2747
2853
|
clearButtonClass: d,
|
|
2748
|
-
clearButtonStyle:
|
|
2854
|
+
clearButtonStyle: u,
|
|
2749
2855
|
onClearValue: f,
|
|
2750
2856
|
shouldShowClearButton: p
|
|
2751
2857
|
} = o;
|
|
2752
2858
|
function y() {
|
|
2753
|
-
return
|
|
2859
|
+
return S("span", {
|
|
2754
2860
|
id: "clearIcon",
|
|
2755
2861
|
class: d.value,
|
|
2756
|
-
style:
|
|
2757
|
-
onClick: (
|
|
2758
|
-
}, [
|
|
2862
|
+
style: u.value,
|
|
2863
|
+
onClick: (k) => f(k)
|
|
2864
|
+
}, [S("i", {
|
|
2759
2865
|
class: "f-icon modal_close"
|
|
2760
2866
|
}, null)]);
|
|
2761
2867
|
}
|
|
2762
|
-
function
|
|
2763
|
-
n.emit("iconMouseEnter",
|
|
2868
|
+
function v(k) {
|
|
2869
|
+
n.emit("iconMouseEnter", k);
|
|
2764
2870
|
}
|
|
2765
|
-
function
|
|
2766
|
-
n.emit("iconMouseLeave",
|
|
2871
|
+
function h(k) {
|
|
2872
|
+
n.emit("iconMouseLeave", k);
|
|
2767
2873
|
}
|
|
2768
|
-
function
|
|
2769
|
-
|
|
2770
|
-
originalEvent:
|
|
2771
|
-
}),
|
|
2874
|
+
function g(k) {
|
|
2875
|
+
s.value && n.emit("clickHandle", {
|
|
2876
|
+
originalEvent: k
|
|
2877
|
+
}), k.stopPropagation();
|
|
2772
2878
|
}
|
|
2773
|
-
const
|
|
2774
|
-
function
|
|
2775
|
-
return
|
|
2879
|
+
const V = e.type === "password" ? r.onClickAppendedButton : g;
|
|
2880
|
+
function E() {
|
|
2881
|
+
return S("span", {
|
|
2776
2882
|
class: "input-group-text",
|
|
2777
|
-
onMouseenter: (
|
|
2778
|
-
onMouseleave: (
|
|
2883
|
+
onMouseenter: (k) => v(k),
|
|
2884
|
+
onMouseleave: (k) => h(k),
|
|
2779
2885
|
innerHTML: l.value,
|
|
2780
|
-
onClick: (
|
|
2886
|
+
onClick: (k) => V(k)
|
|
2781
2887
|
}, null);
|
|
2782
2888
|
}
|
|
2783
|
-
function
|
|
2889
|
+
function w() {
|
|
2784
2890
|
return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
|
|
2785
2891
|
}
|
|
2786
|
-
function
|
|
2787
|
-
return
|
|
2892
|
+
function C() {
|
|
2893
|
+
return c.value ? E : i.value ? w : "";
|
|
2788
2894
|
}
|
|
2789
|
-
const
|
|
2790
|
-
return () =>
|
|
2895
|
+
const T = C();
|
|
2896
|
+
return () => S("div", {
|
|
2791
2897
|
class: a.value
|
|
2792
|
-
}, [p.value && y(),
|
|
2898
|
+
}, [p.value && y(), T && T()]);
|
|
2793
2899
|
}
|
|
2794
|
-
const
|
|
2900
|
+
const Q = /* @__PURE__ */ R({
|
|
2795
2901
|
name: "FInputGroup",
|
|
2796
|
-
props:
|
|
2902
|
+
props: Te,
|
|
2797
2903
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2798
2904
|
setup(e, n) {
|
|
2799
|
-
const t =
|
|
2905
|
+
const t = m(e.modelValue), o = m(e.modelValue), r = Ho(e, n, t, o), {
|
|
2800
2906
|
inputGroupClass: a,
|
|
2801
2907
|
inputType: l,
|
|
2802
|
-
inputGroupStyle:
|
|
2803
|
-
} = r,
|
|
2908
|
+
inputGroupStyle: s
|
|
2909
|
+
} = r, c = tt(e), {
|
|
2804
2910
|
shouldShowAppendedButton: i
|
|
2805
|
-
} =
|
|
2806
|
-
onMouseEnter:
|
|
2911
|
+
} = c, d = et(e, n, r), {
|
|
2912
|
+
onMouseEnter: u,
|
|
2807
2913
|
onMouseLeave: f
|
|
2808
|
-
} = d, p = nt(e, n, l,
|
|
2809
|
-
O(() => [e.value], ([
|
|
2810
|
-
t.value =
|
|
2811
|
-
}), O(() => [e.modelValue], ([
|
|
2812
|
-
t.value =
|
|
2813
|
-
}),
|
|
2914
|
+
} = d, p = nt(e, n, l, c), y = Jo(e, n), v = Qo(e, n, p, r), h = rt(e, n, c, d, p), g = Ko(e, n), V = x(() => e.type === "number");
|
|
2915
|
+
O(() => [e.value], ([w]) => {
|
|
2916
|
+
t.value = w, o.value = w;
|
|
2917
|
+
}), O(() => [e.modelValue], ([w]) => {
|
|
2918
|
+
t.value = w, o.value = w;
|
|
2919
|
+
}), _(() => {
|
|
2814
2920
|
e.value && (t.value = e.value, o.value = e.value);
|
|
2815
2921
|
});
|
|
2816
|
-
const
|
|
2922
|
+
const E = () => S(be, null, [S("div", {
|
|
2817
2923
|
id: e.id,
|
|
2818
2924
|
class: a.value,
|
|
2819
|
-
style:
|
|
2820
|
-
onMouseenter:
|
|
2925
|
+
style: s.value,
|
|
2926
|
+
onMouseenter: u,
|
|
2821
2927
|
onMouseleave: f
|
|
2822
|
-
}, [
|
|
2823
|
-
return () =>
|
|
2928
|
+
}, [V.value ? y() : S(be, null, [g(), v(), i.value && h()])])]);
|
|
2929
|
+
return () => E();
|
|
2824
2930
|
}
|
|
2825
2931
|
});
|
|
2826
|
-
class
|
|
2932
|
+
class er extends Ve {
|
|
2827
2933
|
constructor(n, t) {
|
|
2828
2934
|
super(n, t);
|
|
2829
2935
|
}
|
|
2830
2936
|
}
|
|
2831
|
-
function
|
|
2937
|
+
function tr(e, n) {
|
|
2832
2938
|
const {
|
|
2833
2939
|
canAccepts: t,
|
|
2834
2940
|
checkCanDeleteComponent: o,
|
|
2835
2941
|
checkCanMoveComponent: r,
|
|
2836
2942
|
hideNestedPaddingInDesginerView: a,
|
|
2837
2943
|
onAcceptMovedChildElement: l,
|
|
2838
|
-
resolveComponentContext:
|
|
2839
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2944
|
+
resolveComponentContext: s,
|
|
2945
|
+
triggerBelongedComponentToMoveWhenMoved: c,
|
|
2840
2946
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2841
|
-
} =
|
|
2842
|
-
function
|
|
2843
|
-
return new
|
|
2947
|
+
} = xe(e), d = e.schema;
|
|
2948
|
+
function u(f, p) {
|
|
2949
|
+
return new er(f, n).getPropertyConfig(d, p);
|
|
2844
2950
|
}
|
|
2845
2951
|
return {
|
|
2846
2952
|
canAccepts: t,
|
|
@@ -2848,23 +2954,23 @@ function er(e, n) {
|
|
|
2848
2954
|
checkCanMoveComponent: r,
|
|
2849
2955
|
hideNestedPaddingInDesginerView: a,
|
|
2850
2956
|
onAcceptMovedChildElement: l,
|
|
2851
|
-
resolveComponentContext:
|
|
2852
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2957
|
+
resolveComponentContext: s,
|
|
2958
|
+
triggerBelongedComponentToMoveWhenMoved: c,
|
|
2853
2959
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
2854
|
-
getPropsConfig:
|
|
2960
|
+
getPropsConfig: u
|
|
2855
2961
|
};
|
|
2856
2962
|
}
|
|
2857
2963
|
function at(e, n, t) {
|
|
2858
|
-
var
|
|
2964
|
+
var w;
|
|
2859
2965
|
function o() {
|
|
2860
2966
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
2861
2967
|
}
|
|
2862
2968
|
o();
|
|
2863
|
-
const r = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", l =
|
|
2864
|
-
function
|
|
2969
|
+
const r = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", l = m();
|
|
2970
|
+
function s() {
|
|
2865
2971
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
2866
2972
|
}
|
|
2867
|
-
function
|
|
2973
|
+
function c() {
|
|
2868
2974
|
return !1;
|
|
2869
2975
|
}
|
|
2870
2976
|
function i() {
|
|
@@ -2873,17 +2979,17 @@ function at(e, n, t) {
|
|
|
2873
2979
|
function d() {
|
|
2874
2980
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
2875
2981
|
}
|
|
2876
|
-
function
|
|
2982
|
+
function u(C) {
|
|
2877
2983
|
if (!C || !C.value)
|
|
2878
2984
|
return null;
|
|
2879
2985
|
if (C.value.schema && C.value.schema.type === "component")
|
|
2880
2986
|
return C.value;
|
|
2881
|
-
const
|
|
2882
|
-
return
|
|
2987
|
+
const T = m(C == null ? void 0 : C.value.parent), k = u(T);
|
|
2988
|
+
return k || null;
|
|
2883
2989
|
}
|
|
2884
2990
|
function f(C = n) {
|
|
2885
|
-
const { componentInstance:
|
|
2886
|
-
return !
|
|
2991
|
+
const { componentInstance: T, designerItemElementRef: k } = C;
|
|
2992
|
+
return !T || !T.value ? null : T.value.canMove ? k : f(C.parent);
|
|
2887
2993
|
}
|
|
2888
2994
|
function p(C) {
|
|
2889
2995
|
return !!t && t.canAccepts(C);
|
|
@@ -2891,102 +2997,93 @@ function at(e, n, t) {
|
|
|
2891
2997
|
function y() {
|
|
2892
2998
|
return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
|
|
2893
2999
|
}
|
|
2894
|
-
function
|
|
2895
|
-
}
|
|
2896
|
-
function b(C, F) {
|
|
2897
|
-
F && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(F);
|
|
3000
|
+
function v() {
|
|
2898
3001
|
}
|
|
2899
|
-
function
|
|
2900
|
-
|
|
2901
|
-
let I = ge(A, C, F);
|
|
2902
|
-
t && t.onResolveNewComponentSchema && (I = t.onResolveNewComponentSchema(C, I));
|
|
2903
|
-
const W = A.toLowerCase().replace("-", "_");
|
|
2904
|
-
return I && !I.id && I.type === A && (I.id = `${W}_${Math.random().toString().slice(2, 6)}`), I;
|
|
3002
|
+
function h(C, T) {
|
|
3003
|
+
T && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(T);
|
|
2905
3004
|
}
|
|
2906
|
-
function
|
|
2907
|
-
const
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
return U && !U.id && U.type === A && (U.id = `${K}_${Math.random().toString().slice(2, 6)}`), U;
|
|
3005
|
+
function g(C, T) {
|
|
3006
|
+
const { componentType: k } = C;
|
|
3007
|
+
let P = Ye(k, C, T);
|
|
3008
|
+
t && t.onResolveNewComponentSchema && (P = t.onResolveNewComponentSchema(C, P));
|
|
3009
|
+
const U = k.toLowerCase().replace("-", "_");
|
|
3010
|
+
return P && !P.id && P.type === k && (P.id = `${U}_${Math.random().toString().slice(2, 6)}`), P;
|
|
2913
3011
|
}
|
|
2914
|
-
function
|
|
3012
|
+
function V(C) {
|
|
2915
3013
|
}
|
|
2916
|
-
function
|
|
3014
|
+
function E(...C) {
|
|
2917
3015
|
if (t && t.getPropsConfig)
|
|
2918
3016
|
return t.getPropsConfig(...C);
|
|
2919
3017
|
}
|
|
2920
3018
|
return l.value = {
|
|
2921
|
-
canMove:
|
|
2922
|
-
canSelectParent:
|
|
3019
|
+
canMove: s(),
|
|
3020
|
+
canSelectParent: c(),
|
|
2923
3021
|
canDelete: i(),
|
|
2924
3022
|
canNested: !d(),
|
|
2925
3023
|
contents: n == null ? void 0 : n.schema.contents,
|
|
2926
3024
|
elementRef: e,
|
|
2927
|
-
parent: (
|
|
3025
|
+
parent: (w = n == null ? void 0 : n.parent) == null ? void 0 : w.componentInstance,
|
|
2928
3026
|
schema: n == null ? void 0 : n.schema,
|
|
2929
3027
|
styles: r,
|
|
2930
3028
|
designerClass: a,
|
|
2931
3029
|
canAccepts: p,
|
|
2932
|
-
getBelongedComponentInstance:
|
|
3030
|
+
getBelongedComponentInstance: u,
|
|
2933
3031
|
getDraggableDesignItemElement: f,
|
|
2934
3032
|
getDraggingDisplayText: y,
|
|
2935
|
-
getPropConfig:
|
|
2936
|
-
getDragScopeElement:
|
|
2937
|
-
onAcceptMovedChildElement:
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
addNewChildComponentSchema: S,
|
|
3033
|
+
getPropConfig: E,
|
|
3034
|
+
getDragScopeElement: v,
|
|
3035
|
+
onAcceptMovedChildElement: h,
|
|
3036
|
+
onChildElementMovedOut: V,
|
|
3037
|
+
addNewChildComponentSchema: g,
|
|
2941
3038
|
updateDragAndDropRules: o,
|
|
2942
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
2943
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
3039
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || m(!1),
|
|
3040
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || m(!1)
|
|
2944
3041
|
}, l;
|
|
2945
3042
|
}
|
|
2946
|
-
const
|
|
3043
|
+
const nr = /* @__PURE__ */ R({
|
|
2947
3044
|
name: "FInputGroupDesign",
|
|
2948
|
-
props:
|
|
3045
|
+
props: Te,
|
|
2949
3046
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
2950
3047
|
setup(e, n) {
|
|
2951
|
-
const t =
|
|
3048
|
+
const t = m(e.modelValue), o = m(e.modelValue), r = zo(e, n, t, o), {
|
|
2952
3049
|
inputGroupClass: a,
|
|
2953
3050
|
inputType: l,
|
|
2954
|
-
inputGroupStyle:
|
|
2955
|
-
} = r,
|
|
3051
|
+
inputGroupStyle: s
|
|
3052
|
+
} = r, c = tt(e), {
|
|
2956
3053
|
shouldShowAppendedButton: i
|
|
2957
|
-
} =
|
|
2958
|
-
onMouseEnter:
|
|
3054
|
+
} = c, d = et(e, n, r), {
|
|
3055
|
+
onMouseEnter: u,
|
|
2959
3056
|
onMouseLeave: f
|
|
2960
|
-
} = d, p = nt(e, n, l,
|
|
2961
|
-
|
|
2962
|
-
y.value.componentInstance =
|
|
2963
|
-
}), n.expose(
|
|
2964
|
-
const
|
|
2965
|
-
return () =>
|
|
3057
|
+
} = d, p = nt(e, n, l, c), y = m(), v = W("designer-host-service"), h = W("design-item-context"), g = tr(h, v), V = at(y, h, g);
|
|
3058
|
+
_(() => {
|
|
3059
|
+
y.value.componentInstance = V;
|
|
3060
|
+
}), n.expose(V.value);
|
|
3061
|
+
const E = rt(e, n, c, d, p), w = m();
|
|
3062
|
+
return () => S("div", {
|
|
2966
3063
|
id: "inputGroup",
|
|
2967
3064
|
ref: y,
|
|
2968
3065
|
class: a.value,
|
|
2969
|
-
style:
|
|
2970
|
-
onMouseenter:
|
|
3066
|
+
style: s.value,
|
|
3067
|
+
onMouseenter: u,
|
|
2971
3068
|
onMouseleave: f
|
|
2972
|
-
}, [
|
|
2973
|
-
ref:
|
|
3069
|
+
}, [S("input", {
|
|
3070
|
+
ref: w,
|
|
2974
3071
|
class: "form-control",
|
|
2975
3072
|
readonly: !0,
|
|
2976
3073
|
placeholder: e.placeholder
|
|
2977
|
-
}, null), i.value &&
|
|
3074
|
+
}, null), i.value && E()]);
|
|
2978
3075
|
}
|
|
2979
3076
|
});
|
|
2980
|
-
|
|
2981
|
-
e["input-group"] =
|
|
3077
|
+
Q.register = (e, n, t, o) => {
|
|
3078
|
+
e["input-group"] = Q, n["input-group"] = Ke;
|
|
2982
3079
|
};
|
|
2983
|
-
|
|
2984
|
-
e["input-group"] =
|
|
3080
|
+
Q.registerDesigner = (e, n, t) => {
|
|
3081
|
+
e["input-group"] = nr, n["input-group"] = Ke;
|
|
2985
3082
|
};
|
|
2986
|
-
|
|
2987
|
-
const
|
|
2988
|
-
["appearance",
|
|
2989
|
-
]),
|
|
3083
|
+
Be(Q);
|
|
3084
|
+
const or = /* @__PURE__ */ new Map([
|
|
3085
|
+
["appearance", ce]
|
|
3086
|
+
]), rr = "https://json-schema.org/draft/2020-12/schema", ar = "https://farris-design.gitee.io/number-spinner.schema.json", lr = "number-spinner", ir = "A Farris Input Component", ur = "object", sr = {
|
|
2990
3087
|
id: {
|
|
2991
3088
|
description: "The unique identifier for a number spinner",
|
|
2992
3089
|
type: "string"
|
|
@@ -3087,27 +3184,27 @@ const nr = /* @__PURE__ */ new Map([
|
|
|
3087
3184
|
type: "sting",
|
|
3088
3185
|
default: ""
|
|
3089
3186
|
}
|
|
3090
|
-
},
|
|
3187
|
+
}, cr = [
|
|
3091
3188
|
"id",
|
|
3092
3189
|
"type"
|
|
3093
|
-
],
|
|
3190
|
+
], dr = [
|
|
3094
3191
|
"id",
|
|
3095
3192
|
"appearance",
|
|
3096
3193
|
"binding"
|
|
3097
|
-
],
|
|
3098
|
-
$schema:
|
|
3099
|
-
$id:
|
|
3100
|
-
title:
|
|
3194
|
+
], pr = {
|
|
3195
|
+
$schema: rr,
|
|
3196
|
+
$id: ar,
|
|
3197
|
+
title: lr,
|
|
3101
3198
|
description: ir,
|
|
3102
|
-
type:
|
|
3103
|
-
properties:
|
|
3104
|
-
required:
|
|
3105
|
-
ignore:
|
|
3199
|
+
type: ur,
|
|
3200
|
+
properties: sr,
|
|
3201
|
+
required: cr,
|
|
3202
|
+
ignore: dr
|
|
3106
3203
|
};
|
|
3107
|
-
function
|
|
3204
|
+
function fr(e, n, t) {
|
|
3108
3205
|
return n;
|
|
3109
3206
|
}
|
|
3110
|
-
const
|
|
3207
|
+
const ke = {
|
|
3111
3208
|
/**
|
|
3112
3209
|
* 组件标识
|
|
3113
3210
|
*/
|
|
@@ -3211,42 +3308,42 @@ const Ee = {
|
|
|
3211
3308
|
* 作为内嵌编辑器被创建后默认选中文本
|
|
3212
3309
|
*/
|
|
3213
3310
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
3214
|
-
},
|
|
3215
|
-
function
|
|
3216
|
-
const { format: r } = t, { displayValue: a, getRealValue: l, modelValue:
|
|
3311
|
+
}, lt = ee(ke, pr, or, fr);
|
|
3312
|
+
function it(e, n, t, o) {
|
|
3313
|
+
const { format: r } = t, { displayValue: a, getRealValue: l, modelValue: s, onNumberValueChanged: c } = o;
|
|
3217
3314
|
function i() {
|
|
3218
|
-
const
|
|
3219
|
-
return !(e.max && !new D(e.max).isNaN() &&
|
|
3315
|
+
const h = new D(s.value || 0);
|
|
3316
|
+
return !(e.max && !new D(e.max).isNaN() && h.gte(new D(e.max)));
|
|
3220
3317
|
}
|
|
3221
3318
|
function d() {
|
|
3222
|
-
const
|
|
3223
|
-
return !(e.min && !new D(e.min).isNaN() &&
|
|
3319
|
+
const h = new D(s.value || 0);
|
|
3320
|
+
return !(e.min && !new D(e.min).isNaN() && h.lte(new D(e.min)));
|
|
3224
3321
|
}
|
|
3225
|
-
function
|
|
3322
|
+
function u(h) {
|
|
3226
3323
|
if (e.readonly || e.disabled)
|
|
3227
3324
|
return;
|
|
3228
|
-
const
|
|
3229
|
-
if (
|
|
3230
|
-
const
|
|
3231
|
-
a.value = r(
|
|
3325
|
+
const g = h === "up" ? i : d, V = h === "up" ? "plus" : "minus";
|
|
3326
|
+
if (g()) {
|
|
3327
|
+
const w = new D(s.value || 0)[V](Number(e.step)), C = w.toFixed();
|
|
3328
|
+
a.value = r(C), c(l(w));
|
|
3232
3329
|
}
|
|
3233
3330
|
}
|
|
3234
3331
|
function f() {
|
|
3235
|
-
|
|
3332
|
+
u("up");
|
|
3236
3333
|
}
|
|
3237
3334
|
function p() {
|
|
3238
|
-
|
|
3335
|
+
u("down");
|
|
3239
3336
|
}
|
|
3240
|
-
function y(
|
|
3241
|
-
f(),
|
|
3337
|
+
function y(h) {
|
|
3338
|
+
f(), h.stopPropagation();
|
|
3242
3339
|
}
|
|
3243
|
-
function
|
|
3244
|
-
p(),
|
|
3340
|
+
function v(h) {
|
|
3341
|
+
p(), h.stopPropagation();
|
|
3245
3342
|
}
|
|
3246
|
-
return { canDownward: d, canUpward: i, downward: p, onClickDownButton:
|
|
3343
|
+
return { canDownward: d, canUpward: i, downward: p, onClickDownButton: v, onClickUpButton: y, upward: f };
|
|
3247
3344
|
}
|
|
3248
3345
|
function ut(e, n, t) {
|
|
3249
|
-
const o =
|
|
3346
|
+
const o = x(() => ({
|
|
3250
3347
|
prefix: e.prefix,
|
|
3251
3348
|
suffix: e.suffix,
|
|
3252
3349
|
decimalSeparator: e.decimalSeparator,
|
|
@@ -3256,107 +3353,107 @@ function ut(e, n, t) {
|
|
|
3256
3353
|
function l(i) {
|
|
3257
3354
|
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;
|
|
3258
3355
|
}
|
|
3259
|
-
function
|
|
3356
|
+
function s(i, d) {
|
|
3260
3357
|
return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value, d) : i.toFormat(d);
|
|
3261
3358
|
}
|
|
3262
|
-
function
|
|
3263
|
-
const d = l(i),
|
|
3264
|
-
return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) :
|
|
3359
|
+
function c(i) {
|
|
3360
|
+
const d = l(i), u = new D(d, 10), f = r(u);
|
|
3361
|
+
return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : s(f, o.value);
|
|
3265
3362
|
}
|
|
3266
|
-
return { cleanFormat: l, format:
|
|
3363
|
+
return { cleanFormat: l, format: c };
|
|
3267
3364
|
}
|
|
3268
3365
|
function st(e, n) {
|
|
3269
|
-
const t =
|
|
3366
|
+
const t = m(""), o = m(e.modelValue), r = x(() => Number(e.precision) || 0);
|
|
3270
3367
|
function a(d) {
|
|
3271
3368
|
return d.toFixed(r.value);
|
|
3272
3369
|
}
|
|
3273
3370
|
function l(d) {
|
|
3274
3371
|
return isNaN(d) || d === null || d === void 0 || d === "";
|
|
3275
3372
|
}
|
|
3276
|
-
function u(d) {
|
|
3277
|
-
const c = l(e.max) ? null : new D(String(e.max), 10), f = l(e.min) ? null : new D(String(e.min), 10);
|
|
3278
|
-
return c && d.gt(c) ? c : f && d.lt(f) ? f : d;
|
|
3279
|
-
}
|
|
3280
3373
|
function s(d) {
|
|
3374
|
+
const u = l(e.max) ? null : new D(String(e.max), 10), f = l(e.min) ? null : new D(String(e.min), 10);
|
|
3375
|
+
return u && d.gt(u) ? u : f && d.lt(f) ? f : d;
|
|
3376
|
+
}
|
|
3377
|
+
function c(d) {
|
|
3281
3378
|
if (e.parser)
|
|
3282
3379
|
return isNaN(Number(d)) ? e.parser(d) : d;
|
|
3283
|
-
let
|
|
3284
|
-
if (
|
|
3380
|
+
let u = s(new D(d, 10));
|
|
3381
|
+
if (u.isNaN()) {
|
|
3285
3382
|
if (e.canNull)
|
|
3286
3383
|
return null;
|
|
3287
3384
|
const p = new D("" + e.min, 10), y = new D("" + e.max, 10);
|
|
3288
3385
|
if (!p.isNaN())
|
|
3289
|
-
|
|
3386
|
+
u = p;
|
|
3290
3387
|
else if (!y.isNaN())
|
|
3291
|
-
|
|
3388
|
+
u = y;
|
|
3292
3389
|
else
|
|
3293
3390
|
return 0;
|
|
3294
3391
|
}
|
|
3295
|
-
return a(
|
|
3392
|
+
return a(u);
|
|
3296
3393
|
}
|
|
3297
3394
|
function i(d) {
|
|
3298
|
-
const
|
|
3299
|
-
o.value =
|
|
3395
|
+
const u = Number(d);
|
|
3396
|
+
o.value = u, n.emit("update:modelValue", u), n.emit("valueChange", u), n.emit("change", u);
|
|
3300
3397
|
}
|
|
3301
|
-
return { displayValue: t, getRealValue:
|
|
3398
|
+
return { displayValue: t, getRealValue: c, modelValue: o, isEmpty: l, onNumberValueChanged: i, precision: r, getValidNumberObject: s };
|
|
3302
3399
|
}
|
|
3303
|
-
function
|
|
3304
|
-
const { cleanFormat: a, format: l } = t, { displayValue:
|
|
3305
|
-
function
|
|
3306
|
-
var
|
|
3307
|
-
if (
|
|
3400
|
+
function yr(e, n, t, o, r) {
|
|
3401
|
+
const { cleanFormat: a, format: l } = t, { displayValue: s, getRealValue: c, modelValue: i, isEmpty: d, onNumberValueChanged: u } = o, { downward: f, upward: p } = r, y = m(!1), v = x(() => s.value);
|
|
3402
|
+
function h(w) {
|
|
3403
|
+
var k;
|
|
3404
|
+
if (w.stopPropagation(), y.value = !1, e.readonly || e.disabled)
|
|
3308
3405
|
return;
|
|
3309
|
-
let
|
|
3310
|
-
e.canNull || (
|
|
3311
|
-
const
|
|
3312
|
-
|
|
3313
|
-
}
|
|
3314
|
-
function
|
|
3315
|
-
|
|
3316
|
-
}
|
|
3317
|
-
function
|
|
3318
|
-
var
|
|
3319
|
-
|
|
3320
|
-
let
|
|
3321
|
-
e.canNull || (
|
|
3322
|
-
const
|
|
3323
|
-
|
|
3324
|
-
}
|
|
3325
|
-
function
|
|
3326
|
-
|
|
3327
|
-
}
|
|
3328
|
-
return { textBoxValue:
|
|
3406
|
+
let C = (k = w.target) == null ? void 0 : k.value;
|
|
3407
|
+
e.canNull || (C = C || 0);
|
|
3408
|
+
const T = a(C);
|
|
3409
|
+
s.value = l(T), u(c(T)), n.emit("blur", { event: w, formatted: s.value, value: i.value });
|
|
3410
|
+
}
|
|
3411
|
+
function g(w) {
|
|
3412
|
+
w.stopPropagation(), y.value = !0, !(e.readonly || e.disabled) && (s.value = d(i.value) || !e.showZero && i.value === "0" ? "" : String(i.value), n.emit("focus", { event: w, formatted: s.value, value: i.value }));
|
|
3413
|
+
}
|
|
3414
|
+
function V(w) {
|
|
3415
|
+
var k;
|
|
3416
|
+
w.stopPropagation();
|
|
3417
|
+
let C = (k = w.target) == null ? void 0 : k.value;
|
|
3418
|
+
e.canNull || (C = C || 0);
|
|
3419
|
+
const T = a(C);
|
|
3420
|
+
s.value = T, u(c(T));
|
|
3421
|
+
}
|
|
3422
|
+
function E(w) {
|
|
3423
|
+
w.key === "ArrowDown" && (w.preventDefault(), f()), w.key === "ArrowUp" && (w.preventDefault(), p()), w.stopPropagation();
|
|
3424
|
+
}
|
|
3425
|
+
return { textBoxValue: v, onBlurTextBox: h, onFocusTextBox: g, onInput: V, onKeyDown: E, isFocus: y };
|
|
3329
3426
|
}
|
|
3330
|
-
const
|
|
3427
|
+
const K = /* @__PURE__ */ R({
|
|
3331
3428
|
name: "FNumberSpinner",
|
|
3332
|
-
props:
|
|
3429
|
+
props: ke,
|
|
3333
3430
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
3334
3431
|
setup(e, n) {
|
|
3335
|
-
const t = st(e, n), o = ut(e, n, t), r =
|
|
3336
|
-
displayValue:
|
|
3337
|
-
modelValue:
|
|
3432
|
+
const t = st(e, n), o = ut(e, n, t), r = it(e, n, o, t), a = yr(e, n, o, t, r), l = Fe(e, n, r), {
|
|
3433
|
+
displayValue: s,
|
|
3434
|
+
modelValue: c,
|
|
3338
3435
|
getRealValue: i
|
|
3339
3436
|
} = t, d = ot(e, n, a), {
|
|
3340
|
-
format:
|
|
3437
|
+
format: u
|
|
3341
3438
|
} = o, {
|
|
3342
3439
|
isFocus: f
|
|
3343
|
-
} = a, p =
|
|
3344
|
-
return
|
|
3440
|
+
} = a, p = x(() => !e.disabled && !e.readonly && e.showButton);
|
|
3441
|
+
return _(() => {
|
|
3345
3442
|
const y = i(e.modelValue);
|
|
3346
|
-
|
|
3443
|
+
s.value = u(y);
|
|
3347
3444
|
}), O(() => [e.value], ([y]) => {
|
|
3348
|
-
const
|
|
3349
|
-
|
|
3445
|
+
const v = i(y);
|
|
3446
|
+
c.value = v, s.value = u(v);
|
|
3350
3447
|
}), O(() => [e.modelValue], ([y]) => {
|
|
3351
|
-
y !==
|
|
3448
|
+
y !== c.value && (c.value = y, !f.value && (s.value = u(i(y))));
|
|
3352
3449
|
}), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
3353
|
-
|
|
3354
|
-
}), () =>
|
|
3450
|
+
s.value = u(c.value);
|
|
3451
|
+
}), () => S("div", {
|
|
3355
3452
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
3356
3453
|
}, [d(), p.value && l()]);
|
|
3357
3454
|
}
|
|
3358
3455
|
});
|
|
3359
|
-
class
|
|
3456
|
+
class vr extends Ve {
|
|
3360
3457
|
constructor(n, t) {
|
|
3361
3458
|
super(n, t);
|
|
3362
3459
|
}
|
|
@@ -3389,19 +3486,19 @@ class yr extends Be {
|
|
|
3389
3486
|
});
|
|
3390
3487
|
}
|
|
3391
3488
|
}
|
|
3392
|
-
function
|
|
3489
|
+
function mr(e, n) {
|
|
3393
3490
|
const {
|
|
3394
3491
|
canAccepts: t,
|
|
3395
3492
|
checkCanDeleteComponent: o,
|
|
3396
3493
|
checkCanMoveComponent: r,
|
|
3397
3494
|
hideNestedPaddingInDesginerView: a,
|
|
3398
3495
|
onAcceptMovedChildElement: l,
|
|
3399
|
-
resolveComponentContext:
|
|
3400
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
3496
|
+
resolveComponentContext: s,
|
|
3497
|
+
triggerBelongedComponentToMoveWhenMoved: c,
|
|
3401
3498
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
3402
|
-
} =
|
|
3403
|
-
function
|
|
3404
|
-
return new
|
|
3499
|
+
} = xe(e), d = e.schema;
|
|
3500
|
+
function u(f, p) {
|
|
3501
|
+
return new vr(f, n).getPropertyConfig(d, p);
|
|
3405
3502
|
}
|
|
3406
3503
|
return {
|
|
3407
3504
|
canAccepts: t,
|
|
@@ -3409,84 +3506,84 @@ function vr(e, n) {
|
|
|
3409
3506
|
checkCanMoveComponent: r,
|
|
3410
3507
|
hideNestedPaddingInDesginerView: a,
|
|
3411
3508
|
onAcceptMovedChildElement: l,
|
|
3412
|
-
resolveComponentContext:
|
|
3413
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
3509
|
+
resolveComponentContext: s,
|
|
3510
|
+
triggerBelongedComponentToMoveWhenMoved: c,
|
|
3414
3511
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
3415
|
-
getPropsConfig:
|
|
3512
|
+
getPropsConfig: u
|
|
3416
3513
|
};
|
|
3417
3514
|
}
|
|
3418
|
-
const
|
|
3515
|
+
const hr = /* @__PURE__ */ R({
|
|
3419
3516
|
name: "FNumberSpinnerDesign",
|
|
3420
|
-
props:
|
|
3517
|
+
props: ke,
|
|
3421
3518
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
3422
3519
|
setup(e, n) {
|
|
3423
|
-
const t = st(e, n), o = ut(e, n, t), r =
|
|
3424
|
-
|
|
3520
|
+
const t = st(e, n), o = ut(e, n, t), r = it(e, n, o, t), a = Fe(e, n, r), l = m(), s = W("designer-host-service"), c = W("design-item-context"), i = mr(c, s), d = at(l, c, i);
|
|
3521
|
+
_(() => {
|
|
3425
3522
|
l.value.componentInstance = d, e.readonly = !0;
|
|
3426
3523
|
}), n.expose(d.value);
|
|
3427
|
-
const
|
|
3428
|
-
return () =>
|
|
3524
|
+
const u = m();
|
|
3525
|
+
return () => S("div", {
|
|
3429
3526
|
ref: l,
|
|
3430
3527
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner test"
|
|
3431
|
-
}, [
|
|
3432
|
-
ref:
|
|
3528
|
+
}, [S("input", {
|
|
3529
|
+
ref: u,
|
|
3433
3530
|
class: "form-control",
|
|
3434
3531
|
readonly: !0,
|
|
3435
3532
|
placeholder: e.placeholder
|
|
3436
3533
|
}, null), a()]);
|
|
3437
3534
|
}
|
|
3438
3535
|
});
|
|
3439
|
-
|
|
3440
|
-
e["number-spinner"] =
|
|
3536
|
+
K.register = (e, n, t, o) => {
|
|
3537
|
+
e["number-spinner"] = K, n["number-spinner"] = lt;
|
|
3441
3538
|
};
|
|
3442
|
-
|
|
3443
|
-
e["number-spinner"] =
|
|
3539
|
+
K.registerDesigner = (e, n, t) => {
|
|
3540
|
+
e["number-spinner"] = hr, n["number-spinner"] = lt;
|
|
3444
3541
|
};
|
|
3445
|
-
|
|
3446
|
-
function
|
|
3447
|
-
const
|
|
3542
|
+
Be(K);
|
|
3543
|
+
function br(e, n, t, o, r, a, l) {
|
|
3544
|
+
const s = m(0), c = m(""), i = m([]), d = m(""), u = m("");
|
|
3448
3545
|
function f() {
|
|
3449
|
-
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (d.value =
|
|
3546
|
+
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (d.value = F(e.value.propertyValue.value), n.value = F(e.value.editorOptions.enums));
|
|
3450
3547
|
}
|
|
3451
3548
|
function p() {
|
|
3452
|
-
e.value.propertyType === "number" && (
|
|
3549
|
+
e.value.propertyType === "number" && (s.value = e.value.propertyValue.value);
|
|
3453
3550
|
}
|
|
3454
3551
|
function y() {
|
|
3455
|
-
t.value.id === "stateMachine" && (o =
|
|
3552
|
+
t.value.id === "stateMachine" && (o = F(e.value.propertyValue.value.id), o ? r.value = F(e.value.propertyValue.value.exist) : r.value = "否");
|
|
3456
3553
|
}
|
|
3457
|
-
function
|
|
3458
|
-
if (t.value.id === "dataStates" && (i.value =
|
|
3459
|
-
const
|
|
3460
|
-
|
|
3554
|
+
function v() {
|
|
3555
|
+
if (t.value.id === "dataStates" && (i.value = F(e.value.editorOptions.dataStates), e.value.propertyValue.value)) {
|
|
3556
|
+
const w = e.value.propertyValue.value, C = i.value.filter((T) => w.includes(T.value)).map((T) => T.value).join(",");
|
|
3557
|
+
c.value = F(C);
|
|
3461
3558
|
}
|
|
3462
3559
|
}
|
|
3463
|
-
function
|
|
3464
|
-
t.value.id === "variable" && (
|
|
3560
|
+
function h() {
|
|
3561
|
+
t.value.id === "variable" && (u.value = e.value.propertyValue.value.path);
|
|
3465
3562
|
}
|
|
3466
|
-
function
|
|
3563
|
+
function g() {
|
|
3467
3564
|
if (t.value.id === "expression") {
|
|
3468
3565
|
l.value = !0;
|
|
3469
|
-
const { handleExpressionValue:
|
|
3470
|
-
|
|
3566
|
+
const { handleExpressionValue: w } = e.value.editorOptions.expressionConfig;
|
|
3567
|
+
w ? a.value = w().value.value : a.value = e.value.editorOptions.expressionConfig.expressionValue.value.value;
|
|
3471
3568
|
}
|
|
3472
3569
|
}
|
|
3473
|
-
function
|
|
3570
|
+
function V() {
|
|
3474
3571
|
t.value.id;
|
|
3475
3572
|
}
|
|
3476
|
-
function
|
|
3477
|
-
f(), p(),
|
|
3573
|
+
function E() {
|
|
3574
|
+
f(), p(), h(), y(), v(), g(), V();
|
|
3478
3575
|
}
|
|
3479
3576
|
return {
|
|
3480
|
-
numberConstValue:
|
|
3481
|
-
bindVariableValue:
|
|
3482
|
-
dataStatesBindValue:
|
|
3577
|
+
numberConstValue: s,
|
|
3578
|
+
bindVariableValue: u,
|
|
3579
|
+
dataStatesBindValue: c,
|
|
3483
3580
|
dataStatesValueArray: i,
|
|
3484
3581
|
constEnumBindValue: d,
|
|
3485
|
-
setValue:
|
|
3582
|
+
setValue: E
|
|
3486
3583
|
};
|
|
3487
3584
|
}
|
|
3488
|
-
function
|
|
3489
|
-
const f =
|
|
3585
|
+
function gr(e, n, t, o, r, a, l, s, c, i, d, u) {
|
|
3586
|
+
const f = m(!1), p = m({
|
|
3490
3587
|
propertyName: "",
|
|
3491
3588
|
/** 属性类型:boolean, string, number, enum */
|
|
3492
3589
|
propertyType: "",
|
|
@@ -3498,104 +3595,104 @@ function br(e, n, t, o, r, a, l, u, s, i, d, c) {
|
|
|
3498
3595
|
hasPrefix: !1
|
|
3499
3596
|
});
|
|
3500
3597
|
function y() {
|
|
3501
|
-
n.value.propertyValue.type === "const" && (n.value.propertyValue.value =
|
|
3598
|
+
n.value.propertyValue.type === "const" && (n.value.propertyValue.value = F(r.value.constValue.value), t.value = F(r.value.constValue.value), o.value = F(n.value.editorOptions.enums));
|
|
3502
3599
|
}
|
|
3503
|
-
function
|
|
3504
|
-
n.value.propertyValue.type === "stateMachine" && (n.value.propertyValue.value =
|
|
3600
|
+
function v() {
|
|
3601
|
+
n.value.propertyValue.type === "stateMachine" && (n.value.propertyValue.value = F(r.value.stateMachineValue.value), a.value = F(n.value.editorOptions.stateMachine), n.value.propertyValue.value.name ? F(n.value.propertyValue.value.id) : (n.value.propertyValue.value = {
|
|
3505
3602
|
id: "",
|
|
3506
3603
|
name: "",
|
|
3507
3604
|
exist: ""
|
|
3508
|
-
},
|
|
3605
|
+
}, s.value = "否"));
|
|
3509
3606
|
}
|
|
3510
|
-
function
|
|
3511
|
-
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value =
|
|
3607
|
+
function h() {
|
|
3608
|
+
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = F(r.value.dataStatesValue.value), c.value = F(n.value.editorOptions.dataStates));
|
|
3512
3609
|
}
|
|
3513
|
-
function
|
|
3610
|
+
function g() {
|
|
3514
3611
|
i.value = "", r.value.expressionValue && (r.value.expressionValue.value = "");
|
|
3515
3612
|
}
|
|
3516
|
-
function
|
|
3517
|
-
d.value || (
|
|
3613
|
+
function V() {
|
|
3614
|
+
d.value || (s.value = s.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = s, r.value.stateMachineValue.value.exist = s, C());
|
|
3518
3615
|
}
|
|
3519
|
-
function
|
|
3616
|
+
function E() {
|
|
3520
3617
|
p.value.propertyValue.value && p.value.propertyValue.value.includes("viewModel.stateMachine") && (r.value.customValue.value = "");
|
|
3521
3618
|
}
|
|
3522
|
-
function
|
|
3523
|
-
p.value.propertyName =
|
|
3619
|
+
function w() {
|
|
3620
|
+
p.value.propertyName = F(n.value.propertyName), p.value.propertyType = F(n.value.propertyType), p.value.propertyValue = F(n.value.propertyValue), p.value.hasPrefix = F(f);
|
|
3524
3621
|
}
|
|
3525
|
-
function
|
|
3622
|
+
function C() {
|
|
3526
3623
|
if (!d.value)
|
|
3527
|
-
switch (
|
|
3624
|
+
switch (w(), p.value.propertyValue.type) {
|
|
3528
3625
|
case "const":
|
|
3529
|
-
(p.value.propertyType === "enum" && p.value.propertyValue.value !== "" || p.value.propertyType === "number" && p.value.propertyValue.value != null || p.value.propertyType === "string") && (
|
|
3626
|
+
(p.value.propertyType === "enum" && p.value.propertyValue.value !== "" || p.value.propertyType === "number" && p.value.propertyValue.value != null || p.value.propertyType === "string") && (g(), e.emit("propertyEditorValueChanged", p));
|
|
3530
3627
|
break;
|
|
3531
3628
|
case "variable":
|
|
3532
|
-
p.value.propertyValue.value.path !== "" && (
|
|
3629
|
+
p.value.propertyValue.value.path !== "" && (g(), e.emit("propertyEditorValueChanged", p));
|
|
3533
3630
|
break;
|
|
3534
3631
|
case "custom":
|
|
3535
|
-
|
|
3632
|
+
g(), E(), e.emit("propertyEditorValueChanged", p);
|
|
3536
3633
|
break;
|
|
3537
3634
|
case "expression":
|
|
3538
3635
|
i.value && e.emit("propertyEditorValueChanged", p);
|
|
3539
3636
|
break;
|
|
3540
3637
|
case "stateMachine":
|
|
3541
|
-
p.value.propertyValue.value.id && (
|
|
3638
|
+
p.value.propertyValue.value.id && (g(), e.emit("propertyEditorValueChanged", p));
|
|
3542
3639
|
break;
|
|
3543
3640
|
case "dataStates":
|
|
3544
3641
|
if (p.value.propertyValue.value !== "") {
|
|
3545
|
-
|
|
3642
|
+
g(), e.emit("propertyEditorValueChanged", p);
|
|
3546
3643
|
break;
|
|
3547
3644
|
}
|
|
3548
3645
|
}
|
|
3549
3646
|
}
|
|
3550
|
-
function
|
|
3551
|
-
n.value.propertyValue = r.value[`${
|
|
3647
|
+
function T() {
|
|
3648
|
+
n.value.propertyValue = r.value[`${u.value.id}Value`], y(), v(), h(), C(), p.value.isNewVariable = !1;
|
|
3552
3649
|
}
|
|
3553
3650
|
return {
|
|
3554
|
-
updateData:
|
|
3555
|
-
changeState:
|
|
3651
|
+
updateData: T,
|
|
3652
|
+
changeState: V,
|
|
3556
3653
|
prefix: f,
|
|
3557
3654
|
propertyEditorValueChange: p
|
|
3558
3655
|
};
|
|
3559
3656
|
}
|
|
3560
|
-
var
|
|
3561
|
-
return
|
|
3657
|
+
var ge = function(e, n) {
|
|
3658
|
+
return ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, o) {
|
|
3562
3659
|
t.__proto__ = o;
|
|
3563
3660
|
} || function(t, o) {
|
|
3564
3661
|
for (var r in o) Object.prototype.hasOwnProperty.call(o, r) && (t[r] = o[r]);
|
|
3565
|
-
},
|
|
3662
|
+
}, ge(e, n);
|
|
3566
3663
|
};
|
|
3567
|
-
function
|
|
3664
|
+
function H(e, n) {
|
|
3568
3665
|
if (typeof n != "function" && n !== null)
|
|
3569
3666
|
throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
|
|
3570
|
-
|
|
3667
|
+
ge(e, n);
|
|
3571
3668
|
function t() {
|
|
3572
3669
|
this.constructor = e;
|
|
3573
3670
|
}
|
|
3574
3671
|
e.prototype = n === null ? Object.create(n) : (t.prototype = n.prototype, new t());
|
|
3575
3672
|
}
|
|
3576
|
-
function
|
|
3673
|
+
function Cr(e, n, t, o) {
|
|
3577
3674
|
function r(a) {
|
|
3578
3675
|
return a instanceof t ? a : new t(function(l) {
|
|
3579
3676
|
l(a);
|
|
3580
3677
|
});
|
|
3581
3678
|
}
|
|
3582
3679
|
return new (t || (t = Promise))(function(a, l) {
|
|
3583
|
-
function
|
|
3680
|
+
function s(d) {
|
|
3584
3681
|
try {
|
|
3585
3682
|
i(o.next(d));
|
|
3586
|
-
} catch (
|
|
3587
|
-
l(
|
|
3683
|
+
} catch (u) {
|
|
3684
|
+
l(u);
|
|
3588
3685
|
}
|
|
3589
3686
|
}
|
|
3590
|
-
function
|
|
3687
|
+
function c(d) {
|
|
3591
3688
|
try {
|
|
3592
3689
|
i(o.throw(d));
|
|
3593
|
-
} catch (
|
|
3594
|
-
l(
|
|
3690
|
+
} catch (u) {
|
|
3691
|
+
l(u);
|
|
3595
3692
|
}
|
|
3596
3693
|
}
|
|
3597
3694
|
function i(d) {
|
|
3598
|
-
d.done ? a(d.value) : r(d.value).then(
|
|
3695
|
+
d.done ? a(d.value) : r(d.value).then(s, c);
|
|
3599
3696
|
}
|
|
3600
3697
|
i((o = o.apply(e, n || [])).next());
|
|
3601
3698
|
});
|
|
@@ -3605,15 +3702,15 @@ function ct(e, n) {
|
|
|
3605
3702
|
if (a[0] & 1) throw a[1];
|
|
3606
3703
|
return a[1];
|
|
3607
3704
|
}, trys: [], ops: [] }, o, r, a, l = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
3608
|
-
return l.next =
|
|
3705
|
+
return l.next = s(0), l.throw = s(1), l.return = s(2), typeof Symbol == "function" && (l[Symbol.iterator] = function() {
|
|
3609
3706
|
return this;
|
|
3610
3707
|
}), l;
|
|
3611
|
-
function
|
|
3708
|
+
function s(i) {
|
|
3612
3709
|
return function(d) {
|
|
3613
|
-
return
|
|
3710
|
+
return c([i, d]);
|
|
3614
3711
|
};
|
|
3615
3712
|
}
|
|
3616
|
-
function
|
|
3713
|
+
function c(i) {
|
|
3617
3714
|
if (o) throw new TypeError("Generator is already executing.");
|
|
3618
3715
|
for (; l && (l = 0, i[0] && (t = 0)), t; ) try {
|
|
3619
3716
|
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;
|
|
@@ -3660,7 +3757,7 @@ function ct(e, n) {
|
|
|
3660
3757
|
return { value: i[0] ? i[1] : void 0, done: !0 };
|
|
3661
3758
|
}
|
|
3662
3759
|
}
|
|
3663
|
-
function
|
|
3760
|
+
function X(e) {
|
|
3664
3761
|
var n = typeof Symbol == "function" && Symbol.iterator, t = n && e[n], o = 0;
|
|
3665
3762
|
if (t) return t.call(e);
|
|
3666
3763
|
if (e && typeof e.length == "number") return {
|
|
@@ -3670,14 +3767,14 @@ function Q(e) {
|
|
|
3670
3767
|
};
|
|
3671
3768
|
throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3672
3769
|
}
|
|
3673
|
-
function
|
|
3770
|
+
function ie(e, n) {
|
|
3674
3771
|
var t = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3675
3772
|
if (!t) return e;
|
|
3676
3773
|
var o = t.call(e), r, a = [], l;
|
|
3677
3774
|
try {
|
|
3678
3775
|
for (; (n === void 0 || n-- > 0) && !(r = o.next()).done; ) a.push(r.value);
|
|
3679
|
-
} catch (
|
|
3680
|
-
l = { error:
|
|
3776
|
+
} catch (s) {
|
|
3777
|
+
l = { error: s };
|
|
3681
3778
|
} finally {
|
|
3682
3779
|
try {
|
|
3683
3780
|
r && !r.done && (t = o.return) && t.call(o);
|
|
@@ -3687,68 +3784,68 @@ function se(e, n) {
|
|
|
3687
3784
|
}
|
|
3688
3785
|
return a;
|
|
3689
3786
|
}
|
|
3690
|
-
function
|
|
3787
|
+
function ue(e, n, t) {
|
|
3691
3788
|
if (t || arguments.length === 2) for (var o = 0, r = n.length, a; o < r; o++)
|
|
3692
3789
|
(a || !(o in n)) && (a || (a = Array.prototype.slice.call(n, 0, o)), a[o] = n[o]);
|
|
3693
3790
|
return e.concat(a || Array.prototype.slice.call(n));
|
|
3694
3791
|
}
|
|
3695
|
-
function
|
|
3696
|
-
return this instanceof
|
|
3792
|
+
function Z(e) {
|
|
3793
|
+
return this instanceof Z ? (this.v = e, this) : new Z(e);
|
|
3697
3794
|
}
|
|
3698
|
-
function
|
|
3795
|
+
function Sr(e, n, t) {
|
|
3699
3796
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3700
3797
|
var o = t.apply(e, n || []), r, a = [];
|
|
3701
|
-
return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype),
|
|
3798
|
+
return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", l), r[Symbol.asyncIterator] = function() {
|
|
3702
3799
|
return this;
|
|
3703
3800
|
}, r;
|
|
3704
3801
|
function l(p) {
|
|
3705
3802
|
return function(y) {
|
|
3706
|
-
return Promise.resolve(y).then(p,
|
|
3803
|
+
return Promise.resolve(y).then(p, u);
|
|
3707
3804
|
};
|
|
3708
3805
|
}
|
|
3709
|
-
function
|
|
3710
|
-
o[p] && (r[p] = function(
|
|
3711
|
-
return new Promise(function(
|
|
3712
|
-
a.push([p,
|
|
3806
|
+
function s(p, y) {
|
|
3807
|
+
o[p] && (r[p] = function(v) {
|
|
3808
|
+
return new Promise(function(h, g) {
|
|
3809
|
+
a.push([p, v, h, g]) > 1 || c(p, v);
|
|
3713
3810
|
});
|
|
3714
3811
|
}, y && (r[p] = y(r[p])));
|
|
3715
3812
|
}
|
|
3716
|
-
function
|
|
3813
|
+
function c(p, y) {
|
|
3717
3814
|
try {
|
|
3718
3815
|
i(o[p](y));
|
|
3719
|
-
} catch (
|
|
3720
|
-
f(a[0][3],
|
|
3816
|
+
} catch (v) {
|
|
3817
|
+
f(a[0][3], v);
|
|
3721
3818
|
}
|
|
3722
3819
|
}
|
|
3723
3820
|
function i(p) {
|
|
3724
|
-
p.value instanceof
|
|
3821
|
+
p.value instanceof Z ? Promise.resolve(p.value.v).then(d, u) : f(a[0][2], p);
|
|
3725
3822
|
}
|
|
3726
3823
|
function d(p) {
|
|
3727
|
-
|
|
3824
|
+
c("next", p);
|
|
3728
3825
|
}
|
|
3729
|
-
function
|
|
3730
|
-
|
|
3826
|
+
function u(p) {
|
|
3827
|
+
c("throw", p);
|
|
3731
3828
|
}
|
|
3732
3829
|
function f(p, y) {
|
|
3733
|
-
p(y), a.shift(), a.length &&
|
|
3830
|
+
p(y), a.shift(), a.length && c(a[0][0], a[0][1]);
|
|
3734
3831
|
}
|
|
3735
3832
|
}
|
|
3736
|
-
function
|
|
3833
|
+
function wr(e) {
|
|
3737
3834
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3738
3835
|
var n = e[Symbol.asyncIterator], t;
|
|
3739
|
-
return n ? n.call(e) : (e = typeof
|
|
3836
|
+
return n ? n.call(e) : (e = typeof X == "function" ? X(e) : e[Symbol.iterator](), t = {}, o("next"), o("throw"), o("return"), t[Symbol.asyncIterator] = function() {
|
|
3740
3837
|
return this;
|
|
3741
3838
|
}, t);
|
|
3742
3839
|
function o(a) {
|
|
3743
3840
|
t[a] = e[a] && function(l) {
|
|
3744
|
-
return new Promise(function(
|
|
3745
|
-
l = e[a](l), r(
|
|
3841
|
+
return new Promise(function(s, c) {
|
|
3842
|
+
l = e[a](l), r(s, c, l.done, l.value);
|
|
3746
3843
|
});
|
|
3747
3844
|
};
|
|
3748
3845
|
}
|
|
3749
|
-
function r(a, l,
|
|
3750
|
-
Promise.resolve(
|
|
3751
|
-
a({ value: i, done:
|
|
3846
|
+
function r(a, l, s, c) {
|
|
3847
|
+
Promise.resolve(c).then(function(i) {
|
|
3848
|
+
a({ value: i, done: s });
|
|
3752
3849
|
}, l);
|
|
3753
3850
|
}
|
|
3754
3851
|
}
|
|
@@ -3770,13 +3867,13 @@ var ye = dt(function(e) {
|
|
|
3770
3867
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
3771
3868
|
};
|
|
3772
3869
|
});
|
|
3773
|
-
function
|
|
3870
|
+
function se(e, n) {
|
|
3774
3871
|
if (e) {
|
|
3775
3872
|
var t = e.indexOf(n);
|
|
3776
3873
|
0 <= t && e.splice(t, 1);
|
|
3777
3874
|
}
|
|
3778
3875
|
}
|
|
3779
|
-
var
|
|
3876
|
+
var te = function() {
|
|
3780
3877
|
function e(n) {
|
|
3781
3878
|
this.initialTeardown = n, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
3782
3879
|
}
|
|
@@ -3788,15 +3885,15 @@ var oe = function() {
|
|
|
3788
3885
|
if (l)
|
|
3789
3886
|
if (this._parentage = null, Array.isArray(l))
|
|
3790
3887
|
try {
|
|
3791
|
-
for (var
|
|
3792
|
-
var i =
|
|
3888
|
+
for (var s = X(l), c = s.next(); !c.done; c = s.next()) {
|
|
3889
|
+
var i = c.value;
|
|
3793
3890
|
i.remove(this);
|
|
3794
3891
|
}
|
|
3795
|
-
} catch (
|
|
3796
|
-
n = { error:
|
|
3892
|
+
} catch (v) {
|
|
3893
|
+
n = { error: v };
|
|
3797
3894
|
} finally {
|
|
3798
3895
|
try {
|
|
3799
|
-
|
|
3896
|
+
c && !c.done && (t = s.return) && t.call(s);
|
|
3800
3897
|
} finally {
|
|
3801
3898
|
if (n) throw n.error;
|
|
3802
3899
|
}
|
|
@@ -3807,23 +3904,23 @@ var oe = function() {
|
|
|
3807
3904
|
if (N(d))
|
|
3808
3905
|
try {
|
|
3809
3906
|
d();
|
|
3810
|
-
} catch (
|
|
3811
|
-
a =
|
|
3907
|
+
} catch (v) {
|
|
3908
|
+
a = v instanceof ye ? v.errors : [v];
|
|
3812
3909
|
}
|
|
3813
|
-
var
|
|
3814
|
-
if (
|
|
3910
|
+
var u = this._finalizers;
|
|
3911
|
+
if (u) {
|
|
3815
3912
|
this._finalizers = null;
|
|
3816
3913
|
try {
|
|
3817
|
-
for (var f =
|
|
3914
|
+
for (var f = X(u), p = f.next(); !p.done; p = f.next()) {
|
|
3818
3915
|
var y = p.value;
|
|
3819
3916
|
try {
|
|
3820
|
-
|
|
3821
|
-
} catch (
|
|
3822
|
-
a = a ?? [],
|
|
3917
|
+
$e(y);
|
|
3918
|
+
} catch (v) {
|
|
3919
|
+
a = a ?? [], v instanceof ye ? a = ue(ue([], ie(a)), ie(v.errors)) : a.push(v);
|
|
3823
3920
|
}
|
|
3824
3921
|
}
|
|
3825
|
-
} catch (
|
|
3826
|
-
o = { error:
|
|
3922
|
+
} catch (v) {
|
|
3923
|
+
o = { error: v };
|
|
3827
3924
|
} finally {
|
|
3828
3925
|
try {
|
|
3829
3926
|
p && !p.done && (r = f.return) && r.call(f);
|
|
@@ -3839,7 +3936,7 @@ var oe = function() {
|
|
|
3839
3936
|
var t;
|
|
3840
3937
|
if (n && n !== this)
|
|
3841
3938
|
if (this.closed)
|
|
3842
|
-
|
|
3939
|
+
$e(n);
|
|
3843
3940
|
else {
|
|
3844
3941
|
if (n instanceof e) {
|
|
3845
3942
|
if (n.closed || n._hasParent(this))
|
|
@@ -3856,19 +3953,19 @@ var oe = function() {
|
|
|
3856
3953
|
this._parentage = Array.isArray(t) ? (t.push(n), t) : t ? [t, n] : n;
|
|
3857
3954
|
}, e.prototype._removeParent = function(n) {
|
|
3858
3955
|
var t = this._parentage;
|
|
3859
|
-
t === n ? this._parentage = null : Array.isArray(t) &&
|
|
3956
|
+
t === n ? this._parentage = null : Array.isArray(t) && se(t, n);
|
|
3860
3957
|
}, e.prototype.remove = function(n) {
|
|
3861
3958
|
var t = this._finalizers;
|
|
3862
|
-
t &&
|
|
3959
|
+
t && se(t, n), n instanceof e && n._removeParent(this);
|
|
3863
3960
|
}, e.EMPTY = function() {
|
|
3864
3961
|
var n = new e();
|
|
3865
3962
|
return n.closed = !0, n;
|
|
3866
3963
|
}(), e;
|
|
3867
|
-
}(), pt =
|
|
3964
|
+
}(), pt = te.EMPTY;
|
|
3868
3965
|
function ft(e) {
|
|
3869
|
-
return e instanceof
|
|
3966
|
+
return e instanceof te || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
3870
3967
|
}
|
|
3871
|
-
function
|
|
3968
|
+
function $e(e) {
|
|
3872
3969
|
N(e) ? e() : e.unsubscribe();
|
|
3873
3970
|
}
|
|
3874
3971
|
var yt = {
|
|
@@ -3877,11 +3974,11 @@ var yt = {
|
|
|
3877
3974
|
Promise: void 0,
|
|
3878
3975
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
3879
3976
|
useDeprecatedNextContext: !1
|
|
3880
|
-
},
|
|
3977
|
+
}, xr = {
|
|
3881
3978
|
setTimeout: function(e, n) {
|
|
3882
3979
|
for (var t = [], o = 2; o < arguments.length; o++)
|
|
3883
3980
|
t[o - 2] = arguments[o];
|
|
3884
|
-
return setTimeout.apply(void 0,
|
|
3981
|
+
return setTimeout.apply(void 0, ue([e, n], ie(t)));
|
|
3885
3982
|
},
|
|
3886
3983
|
clearTimeout: function(e) {
|
|
3887
3984
|
return clearTimeout(e);
|
|
@@ -3889,23 +3986,23 @@ var yt = {
|
|
|
3889
3986
|
delegate: void 0
|
|
3890
3987
|
};
|
|
3891
3988
|
function vt(e) {
|
|
3892
|
-
|
|
3989
|
+
xr.setTimeout(function() {
|
|
3893
3990
|
throw e;
|
|
3894
3991
|
});
|
|
3895
3992
|
}
|
|
3896
3993
|
function Ue() {
|
|
3897
3994
|
}
|
|
3898
|
-
function
|
|
3995
|
+
function re(e) {
|
|
3899
3996
|
e();
|
|
3900
3997
|
}
|
|
3901
3998
|
var Me = function(e) {
|
|
3902
|
-
|
|
3999
|
+
H(n, e);
|
|
3903
4000
|
function n(t) {
|
|
3904
4001
|
var o = e.call(this) || this;
|
|
3905
|
-
return o.isStopped = !1, t ? (o.destination = t, ft(t) && t.add(o)) : o.destination =
|
|
4002
|
+
return o.isStopped = !1, t ? (o.destination = t, ft(t) && t.add(o)) : o.destination = Fr, o;
|
|
3906
4003
|
}
|
|
3907
4004
|
return n.create = function(t, o, r) {
|
|
3908
|
-
return new
|
|
4005
|
+
return new Ce(t, o, r);
|
|
3909
4006
|
}, n.prototype.next = function(t) {
|
|
3910
4007
|
this.isStopped || this._next(t);
|
|
3911
4008
|
}, n.prototype.error = function(t) {
|
|
@@ -3929,11 +4026,11 @@ var Me = function(e) {
|
|
|
3929
4026
|
this.unsubscribe();
|
|
3930
4027
|
}
|
|
3931
4028
|
}, n;
|
|
3932
|
-
}(
|
|
4029
|
+
}(te), Vr = Function.prototype.bind;
|
|
3933
4030
|
function ve(e, n) {
|
|
3934
|
-
return
|
|
4031
|
+
return Vr.call(e, n);
|
|
3935
4032
|
}
|
|
3936
|
-
var
|
|
4033
|
+
var Br = function() {
|
|
3937
4034
|
function e(n) {
|
|
3938
4035
|
this.partialObserver = n;
|
|
3939
4036
|
}
|
|
@@ -3943,7 +4040,7 @@ var Vr = function() {
|
|
|
3943
4040
|
try {
|
|
3944
4041
|
t.next(n);
|
|
3945
4042
|
} catch (o) {
|
|
3946
|
-
|
|
4043
|
+
oe(o);
|
|
3947
4044
|
}
|
|
3948
4045
|
}, e.prototype.error = function(n) {
|
|
3949
4046
|
var t = this.partialObserver;
|
|
@@ -3951,21 +4048,21 @@ var Vr = function() {
|
|
|
3951
4048
|
try {
|
|
3952
4049
|
t.error(n);
|
|
3953
4050
|
} catch (o) {
|
|
3954
|
-
|
|
4051
|
+
oe(o);
|
|
3955
4052
|
}
|
|
3956
4053
|
else
|
|
3957
|
-
|
|
4054
|
+
oe(n);
|
|
3958
4055
|
}, e.prototype.complete = function() {
|
|
3959
4056
|
var n = this.partialObserver;
|
|
3960
4057
|
if (n.complete)
|
|
3961
4058
|
try {
|
|
3962
4059
|
n.complete();
|
|
3963
4060
|
} catch (t) {
|
|
3964
|
-
|
|
4061
|
+
oe(t);
|
|
3965
4062
|
}
|
|
3966
4063
|
}, e;
|
|
3967
|
-
}(),
|
|
3968
|
-
|
|
4064
|
+
}(), Ce = function(e) {
|
|
4065
|
+
H(n, e);
|
|
3969
4066
|
function n(t, o, r) {
|
|
3970
4067
|
var a = e.call(this) || this, l;
|
|
3971
4068
|
if (N(t) || !t)
|
|
@@ -3975,44 +4072,44 @@ var Vr = function() {
|
|
|
3975
4072
|
complete: r ?? void 0
|
|
3976
4073
|
};
|
|
3977
4074
|
else {
|
|
3978
|
-
var
|
|
3979
|
-
a && yt.useDeprecatedNextContext ? (
|
|
4075
|
+
var s;
|
|
4076
|
+
a && yt.useDeprecatedNextContext ? (s = Object.create(t), s.unsubscribe = function() {
|
|
3980
4077
|
return a.unsubscribe();
|
|
3981
4078
|
}, l = {
|
|
3982
|
-
next: t.next && ve(t.next,
|
|
3983
|
-
error: t.error && ve(t.error,
|
|
3984
|
-
complete: t.complete && ve(t.complete,
|
|
4079
|
+
next: t.next && ve(t.next, s),
|
|
4080
|
+
error: t.error && ve(t.error, s),
|
|
4081
|
+
complete: t.complete && ve(t.complete, s)
|
|
3985
4082
|
}) : l = t;
|
|
3986
4083
|
}
|
|
3987
|
-
return a.destination = new
|
|
4084
|
+
return a.destination = new Br(l), a;
|
|
3988
4085
|
}
|
|
3989
4086
|
return n;
|
|
3990
4087
|
}(Me);
|
|
3991
|
-
function
|
|
4088
|
+
function oe(e) {
|
|
3992
4089
|
vt(e);
|
|
3993
4090
|
}
|
|
3994
|
-
function
|
|
4091
|
+
function Tr(e) {
|
|
3995
4092
|
throw e;
|
|
3996
4093
|
}
|
|
3997
|
-
var
|
|
4094
|
+
var Fr = {
|
|
3998
4095
|
closed: !0,
|
|
3999
4096
|
next: Ue,
|
|
4000
|
-
error:
|
|
4097
|
+
error: Tr,
|
|
4001
4098
|
complete: Ue
|
|
4002
|
-
},
|
|
4099
|
+
}, Ee = function() {
|
|
4003
4100
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4004
4101
|
}();
|
|
4005
|
-
function
|
|
4102
|
+
function kr(e) {
|
|
4006
4103
|
return e;
|
|
4007
4104
|
}
|
|
4008
|
-
function
|
|
4009
|
-
return e.length === 0 ?
|
|
4105
|
+
function Mr(e) {
|
|
4106
|
+
return e.length === 0 ? kr : e.length === 1 ? e[0] : function(t) {
|
|
4010
4107
|
return e.reduce(function(o, r) {
|
|
4011
4108
|
return r(o);
|
|
4012
4109
|
}, t);
|
|
4013
4110
|
};
|
|
4014
4111
|
}
|
|
4015
|
-
var
|
|
4112
|
+
var G = function() {
|
|
4016
4113
|
function e(n) {
|
|
4017
4114
|
n && (this._subscribe = n);
|
|
4018
4115
|
}
|
|
@@ -4020,10 +4117,10 @@ var _ = function() {
|
|
|
4020
4117
|
var t = new e();
|
|
4021
4118
|
return t.source = this, t.operator = n, t;
|
|
4022
4119
|
}, e.prototype.subscribe = function(n, t, o) {
|
|
4023
|
-
var r = this, a =
|
|
4024
|
-
return
|
|
4025
|
-
var l = r,
|
|
4026
|
-
a.add(
|
|
4120
|
+
var r = this, a = Ir(n) ? n : new Ce(n, t, o);
|
|
4121
|
+
return re(function() {
|
|
4122
|
+
var l = r, s = l.operator, c = l.source;
|
|
4123
|
+
a.add(s ? s.call(a, c) : c ? r._subscribe(a) : r._trySubscribe(a));
|
|
4027
4124
|
}), a;
|
|
4028
4125
|
}, e.prototype._trySubscribe = function(n) {
|
|
4029
4126
|
try {
|
|
@@ -4033,13 +4130,13 @@ var _ = function() {
|
|
|
4033
4130
|
}
|
|
4034
4131
|
}, e.prototype.forEach = function(n, t) {
|
|
4035
4132
|
var o = this;
|
|
4036
|
-
return t =
|
|
4037
|
-
var l = new
|
|
4038
|
-
next: function(
|
|
4133
|
+
return t = Ge(t), new t(function(r, a) {
|
|
4134
|
+
var l = new Ce({
|
|
4135
|
+
next: function(s) {
|
|
4039
4136
|
try {
|
|
4040
|
-
n(
|
|
4041
|
-
} catch (
|
|
4042
|
-
a(
|
|
4137
|
+
n(s);
|
|
4138
|
+
} catch (c) {
|
|
4139
|
+
a(c), l.unsubscribe();
|
|
4043
4140
|
}
|
|
4044
4141
|
},
|
|
4045
4142
|
error: a,
|
|
@@ -4050,15 +4147,15 @@ var _ = function() {
|
|
|
4050
4147
|
}, e.prototype._subscribe = function(n) {
|
|
4051
4148
|
var t;
|
|
4052
4149
|
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(n);
|
|
4053
|
-
}, e.prototype[
|
|
4150
|
+
}, e.prototype[Ee] = function() {
|
|
4054
4151
|
return this;
|
|
4055
4152
|
}, e.prototype.pipe = function() {
|
|
4056
4153
|
for (var n = [], t = 0; t < arguments.length; t++)
|
|
4057
4154
|
n[t] = arguments[t];
|
|
4058
|
-
return
|
|
4155
|
+
return Mr(n)(this);
|
|
4059
4156
|
}, e.prototype.toPromise = function(n) {
|
|
4060
4157
|
var t = this;
|
|
4061
|
-
return n =
|
|
4158
|
+
return n = Ge(n), new n(function(o, r) {
|
|
4062
4159
|
var a;
|
|
4063
4160
|
t.subscribe(function(l) {
|
|
4064
4161
|
return a = l;
|
|
@@ -4072,22 +4169,22 @@ var _ = function() {
|
|
|
4072
4169
|
return new e(n);
|
|
4073
4170
|
}, e;
|
|
4074
4171
|
}();
|
|
4075
|
-
function
|
|
4172
|
+
function Ge(e) {
|
|
4076
4173
|
var n;
|
|
4077
4174
|
return (n = e ?? yt.Promise) !== null && n !== void 0 ? n : Promise;
|
|
4078
4175
|
}
|
|
4079
4176
|
function Er(e) {
|
|
4080
4177
|
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
4081
4178
|
}
|
|
4082
|
-
function
|
|
4179
|
+
function Ir(e) {
|
|
4083
4180
|
return e && e instanceof Me || Er(e) && ft(e);
|
|
4084
4181
|
}
|
|
4085
|
-
function
|
|
4182
|
+
function Pr(e) {
|
|
4086
4183
|
return N(e == null ? void 0 : e.lift);
|
|
4087
4184
|
}
|
|
4088
|
-
function
|
|
4185
|
+
function Ie(e) {
|
|
4089
4186
|
return function(n) {
|
|
4090
|
-
if (
|
|
4187
|
+
if (Pr(n))
|
|
4091
4188
|
return n.lift(function(t) {
|
|
4092
4189
|
try {
|
|
4093
4190
|
return e(t, this);
|
|
@@ -4099,19 +4196,19 @@ function Pe(e) {
|
|
|
4099
4196
|
};
|
|
4100
4197
|
}
|
|
4101
4198
|
function mt(e, n, t, o, r) {
|
|
4102
|
-
return new
|
|
4199
|
+
return new Ar(e, n, t, o, r);
|
|
4103
4200
|
}
|
|
4104
|
-
var
|
|
4105
|
-
|
|
4106
|
-
function n(t, o, r, a, l,
|
|
4107
|
-
var
|
|
4108
|
-
return
|
|
4201
|
+
var Ar = function(e) {
|
|
4202
|
+
H(n, e);
|
|
4203
|
+
function n(t, o, r, a, l, s) {
|
|
4204
|
+
var c = e.call(this, t) || this;
|
|
4205
|
+
return c.onFinalize = l, c.shouldUnsubscribe = s, c._next = o ? function(i) {
|
|
4109
4206
|
try {
|
|
4110
4207
|
o(i);
|
|
4111
4208
|
} catch (d) {
|
|
4112
4209
|
t.error(d);
|
|
4113
4210
|
}
|
|
4114
|
-
} : e.prototype._next,
|
|
4211
|
+
} : e.prototype._next, c._error = a ? function(i) {
|
|
4115
4212
|
try {
|
|
4116
4213
|
a(i);
|
|
4117
4214
|
} catch (d) {
|
|
@@ -4119,7 +4216,7 @@ var Pr = function(e) {
|
|
|
4119
4216
|
} finally {
|
|
4120
4217
|
this.unsubscribe();
|
|
4121
4218
|
}
|
|
4122
|
-
} : e.prototype._error,
|
|
4219
|
+
} : e.prototype._error, c._complete = r ? function() {
|
|
4123
4220
|
try {
|
|
4124
4221
|
r();
|
|
4125
4222
|
} catch (i) {
|
|
@@ -4127,7 +4224,7 @@ var Pr = function(e) {
|
|
|
4127
4224
|
} finally {
|
|
4128
4225
|
this.unsubscribe();
|
|
4129
4226
|
}
|
|
4130
|
-
} : e.prototype._complete,
|
|
4227
|
+
} : e.prototype._complete, c;
|
|
4131
4228
|
}
|
|
4132
4229
|
return n.prototype.unsubscribe = function() {
|
|
4133
4230
|
var t;
|
|
@@ -4136,38 +4233,38 @@ var Pr = function(e) {
|
|
|
4136
4233
|
e.prototype.unsubscribe.call(this), !o && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
4137
4234
|
}
|
|
4138
4235
|
}, n;
|
|
4139
|
-
}(Me),
|
|
4236
|
+
}(Me), Or = dt(function(e) {
|
|
4140
4237
|
return function() {
|
|
4141
4238
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4142
4239
|
};
|
|
4143
4240
|
}), ht = function(e) {
|
|
4144
|
-
|
|
4241
|
+
H(n, e);
|
|
4145
4242
|
function n() {
|
|
4146
4243
|
var t = e.call(this) || this;
|
|
4147
4244
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
|
4148
4245
|
}
|
|
4149
4246
|
return n.prototype.lift = function(t) {
|
|
4150
|
-
var o = new
|
|
4247
|
+
var o = new Re(this, this);
|
|
4151
4248
|
return o.operator = t, o;
|
|
4152
4249
|
}, n.prototype._throwIfClosed = function() {
|
|
4153
4250
|
if (this.closed)
|
|
4154
|
-
throw new
|
|
4251
|
+
throw new Or();
|
|
4155
4252
|
}, n.prototype.next = function(t) {
|
|
4156
4253
|
var o = this;
|
|
4157
|
-
|
|
4254
|
+
re(function() {
|
|
4158
4255
|
var r, a;
|
|
4159
4256
|
if (o._throwIfClosed(), !o.isStopped) {
|
|
4160
4257
|
o.currentObservers || (o.currentObservers = Array.from(o.observers));
|
|
4161
4258
|
try {
|
|
4162
|
-
for (var l =
|
|
4163
|
-
var
|
|
4164
|
-
|
|
4259
|
+
for (var l = X(o.currentObservers), s = l.next(); !s.done; s = l.next()) {
|
|
4260
|
+
var c = s.value;
|
|
4261
|
+
c.next(t);
|
|
4165
4262
|
}
|
|
4166
4263
|
} catch (i) {
|
|
4167
4264
|
r = { error: i };
|
|
4168
4265
|
} finally {
|
|
4169
4266
|
try {
|
|
4170
|
-
|
|
4267
|
+
s && !s.done && (a = l.return) && a.call(l);
|
|
4171
4268
|
} finally {
|
|
4172
4269
|
if (r) throw r.error;
|
|
4173
4270
|
}
|
|
@@ -4176,7 +4273,7 @@ var Pr = function(e) {
|
|
|
4176
4273
|
});
|
|
4177
4274
|
}, n.prototype.error = function(t) {
|
|
4178
4275
|
var o = this;
|
|
4179
|
-
|
|
4276
|
+
re(function() {
|
|
4180
4277
|
if (o._throwIfClosed(), !o.isStopped) {
|
|
4181
4278
|
o.hasError = o.isStopped = !0, o.thrownError = t;
|
|
4182
4279
|
for (var r = o.observers; r.length; )
|
|
@@ -4185,7 +4282,7 @@ var Pr = function(e) {
|
|
|
4185
4282
|
});
|
|
4186
4283
|
}, n.prototype.complete = function() {
|
|
4187
4284
|
var t = this;
|
|
4188
|
-
|
|
4285
|
+
re(function() {
|
|
4189
4286
|
if (t._throwIfClosed(), !t.isStopped) {
|
|
4190
4287
|
t.isStopped = !0;
|
|
4191
4288
|
for (var o = t.observers; o.length; )
|
|
@@ -4206,21 +4303,21 @@ var Pr = function(e) {
|
|
|
4206
4303
|
}, n.prototype._subscribe = function(t) {
|
|
4207
4304
|
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
|
4208
4305
|
}, n.prototype._innerSubscribe = function(t) {
|
|
4209
|
-
var o = this, r = this, a = r.hasError, l = r.isStopped,
|
|
4210
|
-
return a || l ? pt : (this.currentObservers = null,
|
|
4211
|
-
o.currentObservers = null,
|
|
4306
|
+
var o = this, r = this, a = r.hasError, l = r.isStopped, s = r.observers;
|
|
4307
|
+
return a || l ? pt : (this.currentObservers = null, s.push(t), new te(function() {
|
|
4308
|
+
o.currentObservers = null, se(s, t);
|
|
4212
4309
|
}));
|
|
4213
4310
|
}, n.prototype._checkFinalizedStatuses = function(t) {
|
|
4214
4311
|
var o = this, r = o.hasError, a = o.thrownError, l = o.isStopped;
|
|
4215
4312
|
r ? t.error(a) : l && t.complete();
|
|
4216
4313
|
}, n.prototype.asObservable = function() {
|
|
4217
|
-
var t = new
|
|
4314
|
+
var t = new G();
|
|
4218
4315
|
return t.source = this, t;
|
|
4219
4316
|
}, n.create = function(t, o) {
|
|
4220
|
-
return new
|
|
4317
|
+
return new Re(t, o);
|
|
4221
4318
|
}, n;
|
|
4222
|
-
}(
|
|
4223
|
-
|
|
4319
|
+
}(G), Re = function(e) {
|
|
4320
|
+
H(n, e);
|
|
4224
4321
|
function n(t, o) {
|
|
4225
4322
|
var r = e.call(this) || this;
|
|
4226
4323
|
return r.destination = t, r.source = o, r;
|
|
@@ -4238,31 +4335,31 @@ var Pr = function(e) {
|
|
|
4238
4335
|
var o, r;
|
|
4239
4336
|
return (r = (o = this.source) === null || o === void 0 ? void 0 : o.subscribe(t)) !== null && r !== void 0 ? r : pt;
|
|
4240
4337
|
}, n;
|
|
4241
|
-
}(ht),
|
|
4338
|
+
}(ht), Nr = {
|
|
4242
4339
|
now: function() {
|
|
4243
4340
|
return Date.now();
|
|
4244
4341
|
},
|
|
4245
4342
|
delegate: void 0
|
|
4246
|
-
},
|
|
4247
|
-
|
|
4343
|
+
}, jr = function(e) {
|
|
4344
|
+
H(n, e);
|
|
4248
4345
|
function n(t, o) {
|
|
4249
4346
|
return e.call(this) || this;
|
|
4250
4347
|
}
|
|
4251
4348
|
return n.prototype.schedule = function(t, o) {
|
|
4252
4349
|
return this;
|
|
4253
4350
|
}, n;
|
|
4254
|
-
}(
|
|
4351
|
+
}(te), _e = {
|
|
4255
4352
|
setInterval: function(e, n) {
|
|
4256
4353
|
for (var t = [], o = 2; o < arguments.length; o++)
|
|
4257
4354
|
t[o - 2] = arguments[o];
|
|
4258
|
-
return setInterval.apply(void 0,
|
|
4355
|
+
return setInterval.apply(void 0, ue([e, n], ie(t)));
|
|
4259
4356
|
},
|
|
4260
4357
|
clearInterval: function(e) {
|
|
4261
4358
|
return clearInterval(e);
|
|
4262
4359
|
},
|
|
4263
4360
|
delegate: void 0
|
|
4264
|
-
},
|
|
4265
|
-
|
|
4361
|
+
}, Lr = function(e) {
|
|
4362
|
+
H(n, e);
|
|
4266
4363
|
function n(t, o) {
|
|
4267
4364
|
var r = e.call(this, t, o) || this;
|
|
4268
4365
|
return r.scheduler = t, r.work = o, r.pending = !1, r;
|
|
@@ -4275,11 +4372,11 @@ var Pr = function(e) {
|
|
|
4275
4372
|
var a = this.id, l = this.scheduler;
|
|
4276
4373
|
return a != null && (this.id = this.recycleAsyncId(l, a, o)), this.pending = !0, this.delay = o, this.id = (r = this.id) !== null && r !== void 0 ? r : this.requestAsyncId(l, this.id, o), this;
|
|
4277
4374
|
}, n.prototype.requestAsyncId = function(t, o, r) {
|
|
4278
|
-
return r === void 0 && (r = 0),
|
|
4375
|
+
return r === void 0 && (r = 0), _e.setInterval(t.flush.bind(t, this), r);
|
|
4279
4376
|
}, n.prototype.recycleAsyncId = function(t, o, r) {
|
|
4280
4377
|
if (r === void 0 && (r = 0), r != null && this.delay === r && this.pending === !1)
|
|
4281
4378
|
return o;
|
|
4282
|
-
o != null &&
|
|
4379
|
+
o != null && _e.clearInterval(o);
|
|
4283
4380
|
}, n.prototype.execute = function(t, o) {
|
|
4284
4381
|
if (this.closed)
|
|
4285
4382
|
return new Error("executing a cancelled action");
|
|
@@ -4300,20 +4397,20 @@ var Pr = function(e) {
|
|
|
4300
4397
|
}, n.prototype.unsubscribe = function() {
|
|
4301
4398
|
if (!this.closed) {
|
|
4302
4399
|
var t = this, o = t.id, r = t.scheduler, a = r.actions;
|
|
4303
|
-
this.work = this.state = this.scheduler = null, this.pending = !1,
|
|
4400
|
+
this.work = this.state = this.scheduler = null, this.pending = !1, se(a, this), o != null && (this.id = this.recycleAsyncId(r, o, null)), this.delay = null, e.prototype.unsubscribe.call(this);
|
|
4304
4401
|
}
|
|
4305
4402
|
}, n;
|
|
4306
|
-
}(
|
|
4403
|
+
}(jr), qe = function() {
|
|
4307
4404
|
function e(n, t) {
|
|
4308
4405
|
t === void 0 && (t = e.now), this.schedulerActionCtor = n, this.now = t;
|
|
4309
4406
|
}
|
|
4310
4407
|
return e.prototype.schedule = function(n, t, o) {
|
|
4311
4408
|
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, n).schedule(o, t);
|
|
4312
|
-
}, e.now =
|
|
4313
|
-
}(),
|
|
4314
|
-
|
|
4409
|
+
}, e.now = Nr.now, e;
|
|
4410
|
+
}(), Dr = function(e) {
|
|
4411
|
+
H(n, e);
|
|
4315
4412
|
function n(t, o) {
|
|
4316
|
-
o === void 0 && (o =
|
|
4413
|
+
o === void 0 && (o = qe.now);
|
|
4317
4414
|
var r = e.call(this, t, o) || this;
|
|
4318
4415
|
return r.actions = [], r._active = !1, r;
|
|
4319
4416
|
}
|
|
@@ -4335,15 +4432,15 @@ var Pr = function(e) {
|
|
|
4335
4432
|
throw r;
|
|
4336
4433
|
}
|
|
4337
4434
|
}, n;
|
|
4338
|
-
}(
|
|
4339
|
-
function
|
|
4435
|
+
}(qe), $r = new Dr(Lr);
|
|
4436
|
+
function Ur(e) {
|
|
4340
4437
|
return e && N(e.schedule);
|
|
4341
4438
|
}
|
|
4342
|
-
function
|
|
4439
|
+
function Gr(e) {
|
|
4343
4440
|
return e[e.length - 1];
|
|
4344
4441
|
}
|
|
4345
|
-
function
|
|
4346
|
-
return
|
|
4442
|
+
function Rr(e) {
|
|
4443
|
+
return Ur(Gr(e)) ? e.pop() : void 0;
|
|
4347
4444
|
}
|
|
4348
4445
|
var bt = function(e) {
|
|
4349
4446
|
return e && typeof e.length == "number" && typeof e != "function";
|
|
@@ -4352,7 +4449,7 @@ function gt(e) {
|
|
|
4352
4449
|
return N(e == null ? void 0 : e.then);
|
|
4353
4450
|
}
|
|
4354
4451
|
function Ct(e) {
|
|
4355
|
-
return N(e[
|
|
4452
|
+
return N(e[Ee]);
|
|
4356
4453
|
}
|
|
4357
4454
|
function St(e) {
|
|
4358
4455
|
return Symbol.asyncIterator && N(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
@@ -4368,7 +4465,7 @@ function Vt(e) {
|
|
|
4368
4465
|
return N(e == null ? void 0 : e[xt]);
|
|
4369
4466
|
}
|
|
4370
4467
|
function Bt(e) {
|
|
4371
|
-
return
|
|
4468
|
+
return Sr(this, arguments, function() {
|
|
4372
4469
|
var t, o, r, a;
|
|
4373
4470
|
return ct(this, function(l) {
|
|
4374
4471
|
switch (l.label) {
|
|
@@ -4377,13 +4474,13 @@ function Bt(e) {
|
|
|
4377
4474
|
case 1:
|
|
4378
4475
|
l.trys.push([1, , 9, 10]), l.label = 2;
|
|
4379
4476
|
case 2:
|
|
4380
|
-
return [4,
|
|
4477
|
+
return [4, Z(t.read())];
|
|
4381
4478
|
case 3:
|
|
4382
|
-
return o = l.sent(), r = o.value, a = o.done, a ? [4,
|
|
4479
|
+
return o = l.sent(), r = o.value, a = o.done, a ? [4, Z(void 0)] : [3, 5];
|
|
4383
4480
|
case 4:
|
|
4384
4481
|
return [2, l.sent()];
|
|
4385
4482
|
case 5:
|
|
4386
|
-
return [4,
|
|
4483
|
+
return [4, Z(r)];
|
|
4387
4484
|
case 6:
|
|
4388
4485
|
return [4, l.sent()];
|
|
4389
4486
|
case 7:
|
|
@@ -4401,42 +4498,42 @@ function Bt(e) {
|
|
|
4401
4498
|
function Tt(e) {
|
|
4402
4499
|
return N(e == null ? void 0 : e.getReader);
|
|
4403
4500
|
}
|
|
4404
|
-
function
|
|
4405
|
-
if (e instanceof
|
|
4501
|
+
function Pe(e) {
|
|
4502
|
+
if (e instanceof G)
|
|
4406
4503
|
return e;
|
|
4407
4504
|
if (e != null) {
|
|
4408
4505
|
if (Ct(e))
|
|
4409
|
-
return Gr(e);
|
|
4410
|
-
if (bt(e))
|
|
4411
4506
|
return qr(e);
|
|
4507
|
+
if (bt(e))
|
|
4508
|
+
return Wr(e);
|
|
4412
4509
|
if (gt(e))
|
|
4413
4510
|
return Hr(e);
|
|
4414
4511
|
if (St(e))
|
|
4415
4512
|
return Ft(e);
|
|
4416
4513
|
if (Vt(e))
|
|
4417
|
-
return Wr(e);
|
|
4418
|
-
if (Tt(e))
|
|
4419
4514
|
return zr(e);
|
|
4515
|
+
if (Tt(e))
|
|
4516
|
+
return Yr(e);
|
|
4420
4517
|
}
|
|
4421
4518
|
throw wt(e);
|
|
4422
4519
|
}
|
|
4423
|
-
function
|
|
4424
|
-
return new
|
|
4425
|
-
var t = e[
|
|
4520
|
+
function qr(e) {
|
|
4521
|
+
return new G(function(n) {
|
|
4522
|
+
var t = e[Ee]();
|
|
4426
4523
|
if (N(t.subscribe))
|
|
4427
4524
|
return t.subscribe(n);
|
|
4428
4525
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
4429
4526
|
});
|
|
4430
4527
|
}
|
|
4431
|
-
function
|
|
4432
|
-
return new
|
|
4528
|
+
function Wr(e) {
|
|
4529
|
+
return new G(function(n) {
|
|
4433
4530
|
for (var t = 0; t < e.length && !n.closed; t++)
|
|
4434
4531
|
n.next(e[t]);
|
|
4435
4532
|
n.complete();
|
|
4436
4533
|
});
|
|
4437
4534
|
}
|
|
4438
4535
|
function Hr(e) {
|
|
4439
|
-
return new
|
|
4536
|
+
return new G(function(n) {
|
|
4440
4537
|
e.then(function(t) {
|
|
4441
4538
|
n.closed || (n.next(t), n.complete());
|
|
4442
4539
|
}, function(t) {
|
|
@@ -4444,17 +4541,17 @@ function Hr(e) {
|
|
|
4444
4541
|
}).then(null, vt);
|
|
4445
4542
|
});
|
|
4446
4543
|
}
|
|
4447
|
-
function
|
|
4448
|
-
return new
|
|
4544
|
+
function zr(e) {
|
|
4545
|
+
return new G(function(n) {
|
|
4449
4546
|
var t, o;
|
|
4450
4547
|
try {
|
|
4451
|
-
for (var r =
|
|
4548
|
+
for (var r = X(e), a = r.next(); !a.done; a = r.next()) {
|
|
4452
4549
|
var l = a.value;
|
|
4453
4550
|
if (n.next(l), n.closed)
|
|
4454
4551
|
return;
|
|
4455
4552
|
}
|
|
4456
|
-
} catch (
|
|
4457
|
-
t = { error:
|
|
4553
|
+
} catch (s) {
|
|
4554
|
+
t = { error: s };
|
|
4458
4555
|
} finally {
|
|
4459
4556
|
try {
|
|
4460
4557
|
a && !a.done && (o = r.return) && o.call(r);
|
|
@@ -4466,40 +4563,40 @@ function Wr(e) {
|
|
|
4466
4563
|
});
|
|
4467
4564
|
}
|
|
4468
4565
|
function Ft(e) {
|
|
4469
|
-
return new
|
|
4470
|
-
|
|
4566
|
+
return new G(function(n) {
|
|
4567
|
+
Zr(e, n).catch(function(t) {
|
|
4471
4568
|
return n.error(t);
|
|
4472
4569
|
});
|
|
4473
4570
|
});
|
|
4474
4571
|
}
|
|
4475
|
-
function
|
|
4572
|
+
function Yr(e) {
|
|
4476
4573
|
return Ft(Bt(e));
|
|
4477
4574
|
}
|
|
4478
|
-
function
|
|
4575
|
+
function Zr(e, n) {
|
|
4479
4576
|
var t, o, r, a;
|
|
4480
|
-
return
|
|
4481
|
-
var l,
|
|
4482
|
-
return ct(this, function(
|
|
4483
|
-
switch (
|
|
4577
|
+
return Cr(this, void 0, void 0, function() {
|
|
4578
|
+
var l, s;
|
|
4579
|
+
return ct(this, function(c) {
|
|
4580
|
+
switch (c.label) {
|
|
4484
4581
|
case 0:
|
|
4485
|
-
|
|
4582
|
+
c.trys.push([0, 5, 6, 11]), t = wr(e), c.label = 1;
|
|
4486
4583
|
case 1:
|
|
4487
4584
|
return [4, t.next()];
|
|
4488
4585
|
case 2:
|
|
4489
|
-
if (o =
|
|
4586
|
+
if (o = c.sent(), !!o.done) return [3, 4];
|
|
4490
4587
|
if (l = o.value, n.next(l), n.closed)
|
|
4491
4588
|
return [2];
|
|
4492
|
-
|
|
4589
|
+
c.label = 3;
|
|
4493
4590
|
case 3:
|
|
4494
4591
|
return [3, 1];
|
|
4495
4592
|
case 4:
|
|
4496
4593
|
return [3, 11];
|
|
4497
4594
|
case 5:
|
|
4498
|
-
return
|
|
4595
|
+
return s = c.sent(), r = { error: s }, [3, 11];
|
|
4499
4596
|
case 6:
|
|
4500
|
-
return
|
|
4597
|
+
return c.trys.push([6, , 9, 10]), o && !o.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
|
|
4501
4598
|
case 7:
|
|
4502
|
-
|
|
4599
|
+
c.sent(), c.label = 8;
|
|
4503
4600
|
case 8:
|
|
4504
4601
|
return [3, 10];
|
|
4505
4602
|
case 9:
|
|
@@ -4513,7 +4610,7 @@ function Yr(e, n) {
|
|
|
4513
4610
|
});
|
|
4514
4611
|
});
|
|
4515
4612
|
}
|
|
4516
|
-
function
|
|
4613
|
+
function z(e, n, t, o, r) {
|
|
4517
4614
|
o === void 0 && (o = 0), r === void 0 && (r = !1);
|
|
4518
4615
|
var a = n.schedule(function() {
|
|
4519
4616
|
t(), r ? e.add(this.schedule(null, o)) : this.unsubscribe();
|
|
@@ -4522,53 +4619,53 @@ function Z(e, n, t, o, r) {
|
|
|
4522
4619
|
return a;
|
|
4523
4620
|
}
|
|
4524
4621
|
function kt(e, n) {
|
|
4525
|
-
return n === void 0 && (n = 0),
|
|
4622
|
+
return n === void 0 && (n = 0), Ie(function(t, o) {
|
|
4526
4623
|
t.subscribe(mt(o, function(r) {
|
|
4527
|
-
return
|
|
4624
|
+
return z(o, e, function() {
|
|
4528
4625
|
return o.next(r);
|
|
4529
4626
|
}, n);
|
|
4530
4627
|
}, function() {
|
|
4531
|
-
return
|
|
4628
|
+
return z(o, e, function() {
|
|
4532
4629
|
return o.complete();
|
|
4533
4630
|
}, n);
|
|
4534
4631
|
}, function(r) {
|
|
4535
|
-
return
|
|
4632
|
+
return z(o, e, function() {
|
|
4536
4633
|
return o.error(r);
|
|
4537
4634
|
}, n);
|
|
4538
4635
|
}));
|
|
4539
4636
|
});
|
|
4540
4637
|
}
|
|
4541
|
-
function
|
|
4542
|
-
return n === void 0 && (n = 0),
|
|
4638
|
+
function Mt(e, n) {
|
|
4639
|
+
return n === void 0 && (n = 0), Ie(function(t, o) {
|
|
4543
4640
|
o.add(e.schedule(function() {
|
|
4544
4641
|
return t.subscribe(o);
|
|
4545
4642
|
}, n));
|
|
4546
4643
|
});
|
|
4547
4644
|
}
|
|
4548
|
-
function
|
|
4549
|
-
return
|
|
4645
|
+
function Xr(e, n) {
|
|
4646
|
+
return Pe(e).pipe(Mt(n), kt(n));
|
|
4550
4647
|
}
|
|
4551
4648
|
function Jr(e, n) {
|
|
4552
|
-
return
|
|
4649
|
+
return Pe(e).pipe(Mt(n), kt(n));
|
|
4553
4650
|
}
|
|
4554
|
-
function
|
|
4555
|
-
return new
|
|
4651
|
+
function Qr(e, n) {
|
|
4652
|
+
return new G(function(t) {
|
|
4556
4653
|
var o = 0;
|
|
4557
4654
|
return n.schedule(function() {
|
|
4558
4655
|
o === e.length ? t.complete() : (t.next(e[o++]), t.closed || this.schedule());
|
|
4559
4656
|
});
|
|
4560
4657
|
});
|
|
4561
4658
|
}
|
|
4562
|
-
function
|
|
4563
|
-
return new
|
|
4659
|
+
function Kr(e, n) {
|
|
4660
|
+
return new G(function(t) {
|
|
4564
4661
|
var o;
|
|
4565
|
-
return
|
|
4566
|
-
o = e[xt](),
|
|
4662
|
+
return z(t, n, function() {
|
|
4663
|
+
o = e[xt](), z(t, n, function() {
|
|
4567
4664
|
var r, a, l;
|
|
4568
4665
|
try {
|
|
4569
4666
|
r = o.next(), a = r.value, l = r.done;
|
|
4570
|
-
} catch (
|
|
4571
|
-
t.error(
|
|
4667
|
+
} catch (s) {
|
|
4668
|
+
t.error(s);
|
|
4572
4669
|
return;
|
|
4573
4670
|
}
|
|
4574
4671
|
l ? t.complete() : t.next(a);
|
|
@@ -4578,13 +4675,13 @@ function Qr(e, n) {
|
|
|
4578
4675
|
};
|
|
4579
4676
|
});
|
|
4580
4677
|
}
|
|
4581
|
-
function
|
|
4678
|
+
function Et(e, n) {
|
|
4582
4679
|
if (!e)
|
|
4583
4680
|
throw new Error("Iterable cannot be null");
|
|
4584
|
-
return new
|
|
4585
|
-
|
|
4681
|
+
return new G(function(t) {
|
|
4682
|
+
z(t, n, function() {
|
|
4586
4683
|
var o = e[Symbol.asyncIterator]();
|
|
4587
|
-
|
|
4684
|
+
z(t, n, function() {
|
|
4588
4685
|
o.next().then(function(r) {
|
|
4589
4686
|
r.done ? t.complete() : t.next(r.value);
|
|
4590
4687
|
});
|
|
@@ -4592,235 +4689,235 @@ function Mt(e, n) {
|
|
|
4592
4689
|
});
|
|
4593
4690
|
});
|
|
4594
4691
|
}
|
|
4595
|
-
function Kr(e, n) {
|
|
4596
|
-
return Mt(Bt(e), n);
|
|
4597
|
-
}
|
|
4598
4692
|
function ea(e, n) {
|
|
4693
|
+
return Et(Bt(e), n);
|
|
4694
|
+
}
|
|
4695
|
+
function ta(e, n) {
|
|
4599
4696
|
if (e != null) {
|
|
4600
4697
|
if (Ct(e))
|
|
4601
|
-
return Zr(e, n);
|
|
4602
|
-
if (bt(e))
|
|
4603
4698
|
return Xr(e, n);
|
|
4699
|
+
if (bt(e))
|
|
4700
|
+
return Qr(e, n);
|
|
4604
4701
|
if (gt(e))
|
|
4605
4702
|
return Jr(e, n);
|
|
4606
4703
|
if (St(e))
|
|
4607
|
-
return
|
|
4704
|
+
return Et(e, n);
|
|
4608
4705
|
if (Vt(e))
|
|
4609
|
-
return Qr(e, n);
|
|
4610
|
-
if (Tt(e))
|
|
4611
4706
|
return Kr(e, n);
|
|
4707
|
+
if (Tt(e))
|
|
4708
|
+
return ea(e, n);
|
|
4612
4709
|
}
|
|
4613
4710
|
throw wt(e);
|
|
4614
4711
|
}
|
|
4615
|
-
function
|
|
4616
|
-
return n ?
|
|
4712
|
+
function na(e, n) {
|
|
4713
|
+
return n ? ta(e, n) : Pe(e);
|
|
4617
4714
|
}
|
|
4618
|
-
function
|
|
4715
|
+
function oa() {
|
|
4619
4716
|
for (var e = [], n = 0; n < arguments.length; n++)
|
|
4620
4717
|
e[n] = arguments[n];
|
|
4621
|
-
var t =
|
|
4622
|
-
return
|
|
4718
|
+
var t = Rr(e);
|
|
4719
|
+
return na(e, t);
|
|
4623
4720
|
}
|
|
4624
|
-
function
|
|
4625
|
-
return n === void 0 && (n = $r),
|
|
4626
|
-
var r = null, a = null, l = null,
|
|
4721
|
+
function ra(e, n) {
|
|
4722
|
+
return n === void 0 && (n = $r), Ie(function(t, o) {
|
|
4723
|
+
var r = null, a = null, l = null, s = function() {
|
|
4627
4724
|
if (r) {
|
|
4628
4725
|
r.unsubscribe(), r = null;
|
|
4629
4726
|
var i = a;
|
|
4630
4727
|
a = null, o.next(i);
|
|
4631
4728
|
}
|
|
4632
4729
|
};
|
|
4633
|
-
function
|
|
4730
|
+
function c() {
|
|
4634
4731
|
var i = l + e, d = n.now();
|
|
4635
4732
|
if (d < i) {
|
|
4636
4733
|
r = this.schedule(void 0, i - d), o.add(r);
|
|
4637
4734
|
return;
|
|
4638
4735
|
}
|
|
4639
|
-
|
|
4736
|
+
s();
|
|
4640
4737
|
}
|
|
4641
4738
|
t.subscribe(mt(o, function(i) {
|
|
4642
|
-
a = i, l = n.now(), r || (r = n.schedule(
|
|
4739
|
+
a = i, l = n.now(), r || (r = n.schedule(c, e), o.add(r));
|
|
4643
4740
|
}, function() {
|
|
4644
|
-
|
|
4741
|
+
s(), o.complete();
|
|
4645
4742
|
}, void 0, function() {
|
|
4646
4743
|
a = r = null;
|
|
4647
4744
|
}));
|
|
4648
4745
|
});
|
|
4649
4746
|
}
|
|
4650
|
-
const me = /* @__PURE__ */
|
|
4747
|
+
const me = /* @__PURE__ */ R({
|
|
4651
4748
|
name: "FPropertyEditor",
|
|
4652
4749
|
props: Ze,
|
|
4653
4750
|
emits: ["propertyEditorValueChanged"],
|
|
4654
4751
|
setup(e, n) {
|
|
4655
|
-
const t =
|
|
4752
|
+
const t = m(Rn), o = m(""), r = m("const"), a = m([]), l = m(!1);
|
|
4753
|
+
let s;
|
|
4754
|
+
const c = m(""), i = m(""), d = m([]);
|
|
4656
4755
|
let u;
|
|
4657
|
-
const
|
|
4658
|
-
|
|
4659
|
-
const
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
function K() {
|
|
4675
|
-
S.value = _n.value.filter((h) => t.value.editorOptions.types.includes(h.id));
|
|
4756
|
+
const f = m([]), p = m("是");
|
|
4757
|
+
m("");
|
|
4758
|
+
const y = m(!1), v = m("<span class='f-icon f-icon-more-horizontal'></span>"), h = m(!1), g = m([]), {
|
|
4759
|
+
numberConstValue: V,
|
|
4760
|
+
bindVariableValue: E,
|
|
4761
|
+
dataStatesBindValue: w,
|
|
4762
|
+
dataStatesValueArray: C,
|
|
4763
|
+
constEnumBindValue: T,
|
|
4764
|
+
setValue: k
|
|
4765
|
+
} = br(t, a, r, u, p, o, y), {
|
|
4766
|
+
updateData: P,
|
|
4767
|
+
changeState: U,
|
|
4768
|
+
prefix: J,
|
|
4769
|
+
propertyEditorValueChange: de
|
|
4770
|
+
} = gr(n, t, T, a, A, f, u, p, C, o, h, r);
|
|
4771
|
+
function pe() {
|
|
4772
|
+
g.value = Gn.value.filter((b) => t.value.editorOptions.types.includes(b.id));
|
|
4676
4773
|
}
|
|
4677
|
-
function
|
|
4678
|
-
r.value =
|
|
4774
|
+
function M() {
|
|
4775
|
+
r.value = F(g.value.find((b) => b.id === t.value.propertyValue.type));
|
|
4679
4776
|
}
|
|
4680
4777
|
function L() {
|
|
4681
|
-
|
|
4778
|
+
M(), r.value.id === "variable" && t.value.propertyValue.value === void 0 && (t.value.propertyValue = F(A.value.variableValue)), A.value[`${r.value.id}Value`] = F(t.value.propertyValue), k();
|
|
4682
4779
|
}
|
|
4683
|
-
function
|
|
4684
|
-
r.value =
|
|
4780
|
+
function ne(b) {
|
|
4781
|
+
r.value = F(g.value.find((j) => j.label === b[0].label)), r.value.id === "expression" && (A.value.expressionValue.value && (o.value = A.value.expressionValue.value.value), y.value = !0), r.value.id === "custom" && Rt(), P();
|
|
4685
4782
|
}
|
|
4686
|
-
function fe(
|
|
4687
|
-
|
|
4783
|
+
function fe(b) {
|
|
4784
|
+
T.value = F(b.value), t.value.propertyValue.value = F(b.value), A.value.constValue.value = F(b.value), P();
|
|
4688
4785
|
}
|
|
4689
|
-
function
|
|
4690
|
-
|
|
4786
|
+
function It(b) {
|
|
4787
|
+
A.value.constValue.value = b, P();
|
|
4691
4788
|
}
|
|
4692
|
-
function Pt(
|
|
4693
|
-
|
|
4789
|
+
function Pt(b) {
|
|
4790
|
+
A.value.constValue.value = b, P();
|
|
4694
4791
|
}
|
|
4695
|
-
function
|
|
4696
|
-
const
|
|
4697
|
-
|
|
4792
|
+
function At() {
|
|
4793
|
+
const b = t.value.propertyName, j = b[0].toUpperCase() + b.substr(1), $ = t.value.controlName, Ne = t.value.editorOptions.newVariablePrefix || "", nn = Ne ? $[0].toUpperCase() + $.substr(1) : $[0].toLowerCase() + $.substr(1);
|
|
4794
|
+
s = `${Ne}${nn}${j}`, Ot();
|
|
4698
4795
|
}
|
|
4699
4796
|
function Ot() {
|
|
4700
|
-
Nt(), r.value.id === "variable" && (
|
|
4797
|
+
Nt(), r.value.id === "variable" && (E.value = t.value.propertyValue.value.path), Ae(), i.value !== t.value.propertyValue.value.path && P();
|
|
4701
4798
|
}
|
|
4702
4799
|
function Nt() {
|
|
4703
4800
|
var j;
|
|
4704
|
-
let
|
|
4705
|
-
(j = t.value.editorOptions.variables) == null || j.forEach((
|
|
4706
|
-
|
|
4707
|
-
}), jt(
|
|
4801
|
+
let b = 0;
|
|
4802
|
+
(j = t.value.editorOptions.variables) == null || j.forEach(($) => {
|
|
4803
|
+
$.path !== s ? b += 1 : (i.value = t.value.propertyValue.value.path, t.value.propertyValue.value = F($), A.value.variableValue.value = F($));
|
|
4804
|
+
}), jt(b);
|
|
4708
4805
|
}
|
|
4709
|
-
function jt(
|
|
4806
|
+
function jt(b) {
|
|
4710
4807
|
var j;
|
|
4711
|
-
|
|
4808
|
+
b === ((j = t.value.editorOptions.variables) == null ? void 0 : j.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = s, t.value.propertyValue.value.field = c, t.value.propertyValue.value.fullPath = s, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, de.value.isNewVariable = !0, t.value.editorOptions.variables.push(F(t.value.propertyValue.value)), A.value.variableValue.value = F(t.value.propertyValue.value));
|
|
4712
4809
|
}
|
|
4713
|
-
function Lt(
|
|
4714
|
-
!
|
|
4810
|
+
function Lt(b) {
|
|
4811
|
+
!b || !b.selections || b.selections.length < 1 || (A.value.variableValue.value.category = F(b.selections[0].category), A.value.variableValue.value.path = F(b.selections[0].path), A.value.variableValue.value.fullPath = F(b.selections[0].fullPath), A.value.variableValue.value.field = F(b.selections[0].field), E.value = F(b.value), P());
|
|
4715
4812
|
}
|
|
4716
|
-
function
|
|
4717
|
-
t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "", r.value.id === "variable" && (
|
|
4813
|
+
function Dt() {
|
|
4814
|
+
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();
|
|
4718
4815
|
}
|
|
4719
|
-
function
|
|
4720
|
-
d.value =
|
|
4816
|
+
function Ae() {
|
|
4817
|
+
d.value = F(t.value.editorOptions.variables);
|
|
4721
4818
|
}
|
|
4722
|
-
const
|
|
4723
|
-
const j = t.value.editorOptions.getVariables,
|
|
4819
|
+
const $t = (b) => {
|
|
4820
|
+
const j = t.value.editorOptions.getVariables, $ = {
|
|
4724
4821
|
showDialog: !0
|
|
4725
4822
|
};
|
|
4726
|
-
return j && (d.value = j(),
|
|
4823
|
+
return j && (d.value = j(), b && (b.data = d)), oa($);
|
|
4727
4824
|
};
|
|
4728
|
-
function
|
|
4825
|
+
function Ut(b) {
|
|
4729
4826
|
const j = {
|
|
4730
|
-
id:
|
|
4731
|
-
name:
|
|
4732
|
-
exist:
|
|
4827
|
+
id: b[0].id,
|
|
4828
|
+
name: b[0].exist,
|
|
4829
|
+
exist: b[0].name
|
|
4733
4830
|
};
|
|
4734
|
-
|
|
4831
|
+
A.value.stateMachineValue.value = F(j), p.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", u = F(j.id), P();
|
|
4735
4832
|
}
|
|
4736
|
-
function
|
|
4737
|
-
f.value =
|
|
4833
|
+
function Gt() {
|
|
4834
|
+
f.value = F(t.value.editorOptions.stateMachine), p.value = A.value.stateMachineValue.value.exist === "是" ? "是" : "否";
|
|
4738
4835
|
}
|
|
4739
|
-
const
|
|
4740
|
-
function
|
|
4741
|
-
|
|
4742
|
-
|
|
4836
|
+
const Oe = new ht();
|
|
4837
|
+
function Rt() {
|
|
4838
|
+
Oe.pipe(ra(700)).subscribe((b) => {
|
|
4839
|
+
A.value.customValue.value = b, P();
|
|
4743
4840
|
});
|
|
4744
4841
|
}
|
|
4745
|
-
function
|
|
4746
|
-
|
|
4842
|
+
function _t(b) {
|
|
4843
|
+
Oe.next(b);
|
|
4747
4844
|
}
|
|
4748
4845
|
function qt() {
|
|
4749
4846
|
}
|
|
4750
|
-
function
|
|
4751
|
-
t.value.propertyValue.value =
|
|
4752
|
-
const j =
|
|
4753
|
-
|
|
4847
|
+
function Wt(b) {
|
|
4848
|
+
t.value.propertyValue.value = F(b), A.value.dataStatesValue.value = F(b);
|
|
4849
|
+
const j = b.map(($) => $.valueField).join(",");
|
|
4850
|
+
w.value = F(j), P();
|
|
4754
4851
|
}
|
|
4755
|
-
function
|
|
4756
|
-
return
|
|
4852
|
+
function Ht() {
|
|
4853
|
+
return S("div", {
|
|
4757
4854
|
class: "f-page-single-property-editor-component-right-variable"
|
|
4758
|
-
}, [
|
|
4855
|
+
}, [S(q, {
|
|
4759
4856
|
class: [{
|
|
4760
4857
|
"form-control-select-show": l.value
|
|
4761
4858
|
}, {
|
|
4762
4859
|
"form-control-select-hide": !l.value
|
|
4763
4860
|
}],
|
|
4764
|
-
modelValue:
|
|
4765
|
-
"onUpdate:modelValue": (
|
|
4861
|
+
modelValue: E.value,
|
|
4862
|
+
"onUpdate:modelValue": (b) => E.value = b,
|
|
4766
4863
|
placeholder: "",
|
|
4767
4864
|
viewType: "text",
|
|
4768
4865
|
enableClear: !0,
|
|
4769
4866
|
valueField: "path",
|
|
4770
4867
|
textField: "fullPath",
|
|
4771
4868
|
data: d.value,
|
|
4772
|
-
beforeShow:
|
|
4773
|
-
readonly:
|
|
4869
|
+
beforeShow: $t,
|
|
4870
|
+
readonly: h.value,
|
|
4774
4871
|
editable: !1,
|
|
4775
|
-
onValueChange: (
|
|
4776
|
-
onClear:
|
|
4777
|
-
}, null), l.value ?
|
|
4872
|
+
onValueChange: (b) => Lt(b),
|
|
4873
|
+
onClear: Dt
|
|
4874
|
+
}, null), l.value ? S("div", {
|
|
4778
4875
|
class: "f-page-single-property-editor-component-variable-button"
|
|
4779
|
-
}, [
|
|
4876
|
+
}, [S("button", {
|
|
4780
4877
|
title: "variable-button",
|
|
4781
4878
|
class: "f-variable-button",
|
|
4782
|
-
onClick:
|
|
4783
|
-
}, [
|
|
4879
|
+
onClick: At
|
|
4880
|
+
}, [S("span", {
|
|
4784
4881
|
class: "f-icon f-icon-add",
|
|
4785
4882
|
style: "margin:unset;"
|
|
4786
4883
|
}, null)])]) : ""]);
|
|
4787
4884
|
}
|
|
4788
4885
|
function zt() {
|
|
4789
|
-
return
|
|
4886
|
+
return S("div", {
|
|
4790
4887
|
class: "f-page-single-property-editor-component-right-customize"
|
|
4791
|
-
}, [he(
|
|
4888
|
+
}, [he(S("input", {
|
|
4792
4889
|
class: "form-control",
|
|
4793
4890
|
placeholder: "输入自定义内容",
|
|
4794
|
-
"onUpdate:modelValue": (
|
|
4795
|
-
onChange: (
|
|
4796
|
-
disabled:
|
|
4797
|
-
}, null), [[
|
|
4891
|
+
"onUpdate:modelValue": (b) => A.value.customValue.value = b,
|
|
4892
|
+
onChange: (b) => _t(b.target.value),
|
|
4893
|
+
disabled: h.value
|
|
4894
|
+
}, null), [[je, A.value.customValue.value]])]);
|
|
4798
4895
|
}
|
|
4799
4896
|
function Yt() {
|
|
4800
|
-
return
|
|
4897
|
+
return S("div", {
|
|
4801
4898
|
class: "f-page-single-property-editor-component-right-expression"
|
|
4802
|
-
}, [
|
|
4899
|
+
}, [S(Q, {
|
|
4803
4900
|
editable: !1,
|
|
4804
4901
|
enableClear: !1,
|
|
4805
|
-
readonly:
|
|
4806
|
-
groupText:
|
|
4902
|
+
readonly: h.value,
|
|
4903
|
+
groupText: v.value,
|
|
4807
4904
|
modelValue: o.value,
|
|
4808
|
-
"onUpdate:modelValue": (
|
|
4905
|
+
"onUpdate:modelValue": (b) => o.value = b,
|
|
4809
4906
|
onClickHandle: qt
|
|
4810
4907
|
}, null)]);
|
|
4811
4908
|
}
|
|
4812
4909
|
function Zt() {
|
|
4813
|
-
return
|
|
4910
|
+
return S("div", {
|
|
4814
4911
|
class: "f-page-single-property-editor-component-right-stateMachine"
|
|
4815
|
-
}, [
|
|
4912
|
+
}, [S("div", {
|
|
4816
4913
|
class: "f-stateMachine-exist",
|
|
4817
|
-
onClick:
|
|
4818
|
-
}, [p.value]),
|
|
4914
|
+
onClick: U
|
|
4915
|
+
}, [p.value]), S("div", {
|
|
4819
4916
|
class: "f-stateMachine-combo",
|
|
4820
4917
|
style: "border:unset"
|
|
4821
|
-
}, [
|
|
4822
|
-
modelValue:
|
|
4823
|
-
"onUpdate:modelValue": (
|
|
4918
|
+
}, [S(q, {
|
|
4919
|
+
modelValue: u,
|
|
4920
|
+
"onUpdate:modelValue": (b) => u = b,
|
|
4824
4921
|
placeholder: "",
|
|
4825
4922
|
viewType: "text",
|
|
4826
4923
|
enableClear: !1,
|
|
@@ -4828,18 +4925,18 @@ const me = /* @__PURE__ */ G({
|
|
|
4828
4925
|
textField: "name",
|
|
4829
4926
|
data: f.value,
|
|
4830
4927
|
editable: !1,
|
|
4831
|
-
readonly:
|
|
4832
|
-
onChange: (
|
|
4833
|
-
|
|
4928
|
+
readonly: h.value,
|
|
4929
|
+
onChange: (b) => {
|
|
4930
|
+
Ut(b);
|
|
4834
4931
|
}
|
|
4835
4932
|
}, null)])]);
|
|
4836
4933
|
}
|
|
4837
|
-
function
|
|
4838
|
-
return
|
|
4934
|
+
function Xt() {
|
|
4935
|
+
return S("div", {
|
|
4839
4936
|
class: "f-page-single-property-editor-component-right-dataStates"
|
|
4840
|
-
}, [
|
|
4841
|
-
modelValue:
|
|
4842
|
-
"onUpdate:modelValue": (
|
|
4937
|
+
}, [S(q, {
|
|
4938
|
+
modelValue: w.value,
|
|
4939
|
+
"onUpdate:modelValue": (b) => w.value = b,
|
|
4843
4940
|
placeholder: "",
|
|
4844
4941
|
viewType: "text",
|
|
4845
4942
|
enableClear: !1,
|
|
@@ -4848,27 +4945,27 @@ const me = /* @__PURE__ */ G({
|
|
|
4848
4945
|
valueField: "valueField",
|
|
4849
4946
|
textField: "textField",
|
|
4850
4947
|
titleField: "titleField",
|
|
4851
|
-
data:
|
|
4948
|
+
data: C.value,
|
|
4852
4949
|
editable: !1,
|
|
4853
|
-
readonly:
|
|
4854
|
-
onChange: (
|
|
4950
|
+
readonly: h.value,
|
|
4951
|
+
onChange: (b) => Wt(b)
|
|
4855
4952
|
}, null)]);
|
|
4856
4953
|
}
|
|
4857
|
-
function
|
|
4858
|
-
return he(
|
|
4954
|
+
function Jt() {
|
|
4955
|
+
return he(S("input", {
|
|
4859
4956
|
class: "form-control",
|
|
4860
|
-
"onUpdate:modelValue": (
|
|
4861
|
-
onChange: (
|
|
4862
|
-
Pt(
|
|
4957
|
+
"onUpdate:modelValue": (b) => A.value.constValue.value = b,
|
|
4958
|
+
onChange: (b) => {
|
|
4959
|
+
Pt(b);
|
|
4863
4960
|
},
|
|
4864
|
-
disabled:
|
|
4961
|
+
disabled: h.value,
|
|
4865
4962
|
placeholder: "输入自定义内容"
|
|
4866
|
-
}, null), [[
|
|
4963
|
+
}, null), [[je, A.value.constValue.value]]);
|
|
4867
4964
|
}
|
|
4868
4965
|
function Qt() {
|
|
4869
|
-
return
|
|
4870
|
-
modelValue:
|
|
4871
|
-
"onUpdate:modelValue": (
|
|
4966
|
+
return S(q, {
|
|
4967
|
+
modelValue: T.value,
|
|
4968
|
+
"onUpdate:modelValue": (b) => T.value = b,
|
|
4872
4969
|
placeholder: "",
|
|
4873
4970
|
viewType: "text",
|
|
4874
4971
|
enableClear: !1,
|
|
@@ -4876,48 +4973,48 @@ const me = /* @__PURE__ */ G({
|
|
|
4876
4973
|
textField: "value",
|
|
4877
4974
|
data: a.value,
|
|
4878
4975
|
editable: !1,
|
|
4879
|
-
readonly:
|
|
4880
|
-
onValueChange: (
|
|
4976
|
+
readonly: h.value,
|
|
4977
|
+
onValueChange: (b) => fe(b)
|
|
4881
4978
|
}, null);
|
|
4882
4979
|
}
|
|
4883
4980
|
function Kt() {
|
|
4884
|
-
return
|
|
4981
|
+
return S(K, {
|
|
4885
4982
|
canNull: !0,
|
|
4886
|
-
readonly:
|
|
4887
|
-
modelValue:
|
|
4888
|
-
"onUpdate:modelValue": (
|
|
4889
|
-
onValueChange: (
|
|
4890
|
-
|
|
4983
|
+
readonly: h.value,
|
|
4984
|
+
modelValue: V.value,
|
|
4985
|
+
"onUpdate:modelValue": (b) => V.value = b,
|
|
4986
|
+
onValueChange: (b) => {
|
|
4987
|
+
It(b);
|
|
4891
4988
|
},
|
|
4892
4989
|
class: "f-page-single-property-editor-component-const-number"
|
|
4893
4990
|
}, null);
|
|
4894
4991
|
}
|
|
4895
4992
|
function en() {
|
|
4896
|
-
return
|
|
4993
|
+
return S("div", {
|
|
4897
4994
|
class: "f-page-single-property-editor-component-left-controller"
|
|
4898
|
-
}, [
|
|
4995
|
+
}, [S(q, {
|
|
4899
4996
|
modelValue: r.value.id,
|
|
4900
|
-
"onUpdate:modelValue": (
|
|
4997
|
+
"onUpdate:modelValue": (b) => r.value.id = b,
|
|
4901
4998
|
placeholder: "",
|
|
4902
4999
|
enableClear: !1,
|
|
4903
5000
|
valueField: "id",
|
|
4904
5001
|
textField: "label",
|
|
4905
|
-
data:
|
|
5002
|
+
data: g.value,
|
|
4906
5003
|
editable: !1,
|
|
4907
|
-
readonly:
|
|
4908
|
-
onChange: (
|
|
5004
|
+
readonly: h.value,
|
|
5005
|
+
onChange: (b) => ne(b)
|
|
4909
5006
|
}, null)]);
|
|
4910
5007
|
}
|
|
4911
5008
|
function tn() {
|
|
4912
|
-
return
|
|
5009
|
+
return S("div", {
|
|
4913
5010
|
class: "f-page-single-property-editor-component-right-controller"
|
|
4914
|
-
}, [r.value.id === "const" ?
|
|
5011
|
+
}, [r.value.id === "const" ? S("div", {
|
|
4915
5012
|
class: "f-page-single-property-editor-component-right-const"
|
|
4916
|
-
}, [t.value.propertyType === "string" ?
|
|
5013
|
+
}, [t.value.propertyType === "string" ? Jt() : "", t.value.propertyType === "enum" ? Qt() : "", t.value.propertyType === "number" ? Kt() : ""]) : "", r.value.id === "variable" ? Ht() : "", r.value.id === "custom" ? zt() : "", r.value.id === "expression" && y.value ? Yt() : "", r.value.id === "stateMachine" ? Zt() : "", r.value.id === "dataStates" ? Xt() : ""]);
|
|
4917
5014
|
}
|
|
4918
|
-
return
|
|
4919
|
-
|
|
4920
|
-
}), () =>
|
|
5015
|
+
return _(() => {
|
|
5016
|
+
pe(), L(), Ae(), Gt(), t.value.hasPrefix && t.value.hasPrefix === 2 && (J.value = !0), t.value.controlName !== void 0 && (l.value = !0);
|
|
5017
|
+
}), () => S(be, null, [S("div", {
|
|
4921
5018
|
class: "f-page-single-property-editor-component clearfix"
|
|
4922
5019
|
}, [en(), tn()])]);
|
|
4923
5020
|
}
|