@farris/ui-vue 1.2.8 → 1.2.9
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 +129 -129
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +166 -157
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.esm.js +343 -325
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +338 -338
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +182 -182
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +326 -317
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +118 -118
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.esm.js +338 -325
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +62 -62
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +382 -270
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.esm.js +1018 -895
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +285 -212
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +4761 -4319
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.esm.js +2901 -2664
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.esm.js +1502 -1488
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +27 -27
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +241 -241
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.esm.js +1074 -885
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +99 -94
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +577 -522
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +70 -70
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +2938 -2619
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +4766 -4325
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1231 -1215
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +373 -373
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +398 -394
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +268 -268
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +234 -161
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2288 -2048
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +5776 -5305
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5496 -5036
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +383 -322
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +273 -269
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +292 -283
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1008 -925
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +98 -98
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +949 -847
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +464 -403
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +226 -226
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.esm.js +1110 -1092
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +520 -513
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +1714 -1575
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +67 -67
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +298 -289
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +195 -190
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +112 -112
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.esm.js +902 -877
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +874 -778
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4594 -4289
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +126 -126
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +645 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +120 -120
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +421 -348
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +219 -219
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +232 -222
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.esm.js +1823 -1744
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +399 -401
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +164 -164
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +220 -215
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.esm.js +693 -666
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +422 -413
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +4799 -4358
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.esm.js +2448 -2215
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +164 -164
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +143 -143
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +410 -331
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +901 -901
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +12305 -11403
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -6
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { ref as y, defineComponent as
|
|
5
|
-
import { cloneDeep as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
var Kt = Object.defineProperty;
|
|
2
|
+
var en = (e, n, t) => n in e ? Kt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
+
var $ = (e, n, t) => en(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { ref as y, defineComponent as W, computed as x, watch as O, createVNode as w, inject as Q, onMounted as H, nextTick as je, reactive as tn, withDirectives as me, resolveDirective as nn, Fragment as he, vModelText as De } from "vue";
|
|
5
|
+
import { cloneDeep as B } from "lodash-es";
|
|
6
|
+
import rn from "../list-view/index.esm.js";
|
|
7
|
+
import on from "../button-edit/index.esm.js";
|
|
8
|
+
import an from "../button-edit/index.esm.js/src/designer/button-edit.design.component";
|
|
8
9
|
import { getSchemaByType as $e } from "../dynamic-resolver/index.esm.js";
|
|
9
|
-
import { useDesignerComponent as
|
|
10
|
-
import
|
|
11
|
-
import { useNumber as
|
|
12
|
-
const
|
|
10
|
+
import { useDesignerComponent as ln } from "../designer-canvas/index.esm.js";
|
|
11
|
+
import L from "bignumber.js";
|
|
12
|
+
import { useNumber as un, useFormat as sn, useSpinner as cn, useTextBox as dn } from "../number-spinner/index.esm.js";
|
|
13
|
+
const qe = {}, We = {};
|
|
13
14
|
function we(e) {
|
|
14
|
-
const { properties: n, title: t } = e, r = Object.keys(n).reduce((
|
|
15
|
-
return r.id = `${t}-${Date.now()}
|
|
15
|
+
const { properties: n, title: t, ignore: r } = e, o = r && Array.isArray(r), a = Object.keys(n).reduce((l, u) => ((!o || !r.find((s) => s == u)) && (l[u] = n[u].type === "object" && n[u].properties ? we(n[u]) : B(n[u].default)), l), {});
|
|
16
|
+
return (!o || !r.find((l) => l == "id")) && (a.id = `${t}-${Date.now()}`), a;
|
|
16
17
|
}
|
|
17
|
-
function be(e, n = {}) {
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
let
|
|
21
|
-
const
|
|
22
|
-
return
|
|
18
|
+
function be(e, n = {}, t) {
|
|
19
|
+
const r = qe[e];
|
|
20
|
+
if (r) {
|
|
21
|
+
let o = we(r);
|
|
22
|
+
const a = We[e];
|
|
23
|
+
return o = a ? a({ getSchemaByType: be }, o, n, t) : o, o;
|
|
23
24
|
}
|
|
24
25
|
return null;
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function pn(e, n) {
|
|
27
28
|
const t = we(n);
|
|
28
29
|
return Object.keys(e).reduce((r, o) => (r[o] && typeof r[o] == "object" ? Object.assign(r[o], e[o]) : r[o] = e[o], r), t), t;
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
+
function fn(e, n) {
|
|
31
32
|
return Object.keys(e).filter((r) => e[r] != null).reduce((r, o) => {
|
|
32
33
|
if (n.has(o)) {
|
|
33
34
|
const a = n.get(o);
|
|
@@ -42,63 +43,63 @@ function pn(e, n) {
|
|
|
42
43
|
return r;
|
|
43
44
|
}, {});
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
-
const r =
|
|
47
|
-
return
|
|
46
|
+
function vn(e, n, t = /* @__PURE__ */ new Map()) {
|
|
47
|
+
const r = pn(e, n);
|
|
48
|
+
return fn(r, t);
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
function n(i,
|
|
51
|
-
if (typeof
|
|
52
|
-
return f[i].length ===
|
|
53
|
-
if (typeof
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
50
|
+
function yn(e = {}) {
|
|
51
|
+
function n(i, d, c, f) {
|
|
52
|
+
if (typeof c == "number")
|
|
53
|
+
return f[i].length === c;
|
|
54
|
+
if (typeof c == "object") {
|
|
55
|
+
const p = Object.keys(c)[0], v = c[p];
|
|
56
|
+
if (p === "not")
|
|
56
57
|
return Number(f[i].length) !== Number(v);
|
|
57
|
-
if (
|
|
58
|
+
if (p === "moreThan")
|
|
58
59
|
return Number(f[i].length) >= Number(v);
|
|
59
|
-
if (
|
|
60
|
+
if (p === "lessThan")
|
|
60
61
|
return Number(f[i].length) <= Number(v);
|
|
61
62
|
}
|
|
62
63
|
return !1;
|
|
63
64
|
}
|
|
64
|
-
function t(i,
|
|
65
|
-
return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(
|
|
65
|
+
function t(i, d, c, f) {
|
|
66
|
+
return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(c);
|
|
66
67
|
}
|
|
67
68
|
const r = /* @__PURE__ */ new Map([
|
|
68
69
|
["length", n],
|
|
69
70
|
["getProperty", t]
|
|
70
71
|
]);
|
|
71
|
-
Object.keys(e).reduce((i,
|
|
72
|
-
function o(i,
|
|
73
|
-
const
|
|
74
|
-
return typeof
|
|
72
|
+
Object.keys(e).reduce((i, d) => (i.set(d, e[d]), i), r);
|
|
73
|
+
function o(i, d) {
|
|
74
|
+
const c = i;
|
|
75
|
+
return typeof d == "number" ? [{ target: c, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: c, operator: "getProperty", param: i, value: !!d }] : typeof d == "object" ? Object.keys(d).map((f) => {
|
|
75
76
|
if (f === "length")
|
|
76
|
-
return { target:
|
|
77
|
-
const
|
|
78
|
-
return { target:
|
|
77
|
+
return { target: c, operator: "length", param: null, value: d[f] };
|
|
78
|
+
const p = f, v = d[f];
|
|
79
|
+
return { target: c, operator: "getProperty", param: p, value: v };
|
|
79
80
|
}) : [];
|
|
80
81
|
}
|
|
81
82
|
function a(i) {
|
|
82
|
-
return Object.keys(i).reduce((
|
|
83
|
-
const
|
|
84
|
-
return
|
|
83
|
+
return Object.keys(i).reduce((c, f) => {
|
|
84
|
+
const p = o(f, i[f]);
|
|
85
|
+
return c.push(...p), c;
|
|
85
86
|
}, []);
|
|
86
87
|
}
|
|
87
|
-
function l(i,
|
|
88
|
+
function l(i, d) {
|
|
88
89
|
if (r.has(i.operator)) {
|
|
89
|
-
const
|
|
90
|
-
return
|
|
90
|
+
const c = r.get(i.operator);
|
|
91
|
+
return c && c(i.target, i.param, i.value, d) || !1;
|
|
91
92
|
}
|
|
92
93
|
return !1;
|
|
93
94
|
}
|
|
94
|
-
function u(i,
|
|
95
|
-
return a(i).reduce((
|
|
95
|
+
function u(i, d) {
|
|
96
|
+
return a(i).reduce((p, v) => p && l(v, d), !0);
|
|
96
97
|
}
|
|
97
|
-
function
|
|
98
|
-
const
|
|
99
|
-
return f ? !
|
|
98
|
+
function s(i, d) {
|
|
99
|
+
const c = Object.keys(i), f = c.includes("allOf"), p = c.includes("anyOf"), v = f || p, S = (v ? i[v ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((k) => u(k, d));
|
|
100
|
+
return f ? !S.includes(!1) : S.includes(!0);
|
|
100
101
|
}
|
|
101
|
-
return { parseValueSchema:
|
|
102
|
+
return { parseValueSchema: s };
|
|
102
103
|
}
|
|
103
104
|
const V = {
|
|
104
105
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
@@ -138,24 +139,24 @@ const V = {
|
|
|
138
139
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
139
140
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
140
141
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
function ce(e, n, t = /* @__PURE__ */ new Map(), r = (l, u,
|
|
144
|
-
return
|
|
145
|
-
const u =
|
|
146
|
-
return Object.assign(
|
|
142
|
+
}, mn = {}, hn = {};
|
|
143
|
+
yn();
|
|
144
|
+
function ce(e, n, t = /* @__PURE__ */ new Map(), r = (l, u, s) => u, o = {}, a = (l) => l) {
|
|
145
|
+
return qe[n.title] = n, We[n.title] = r, mn[n.title] = o, hn[n.title] = a, (l = {}) => {
|
|
146
|
+
const u = vn(l, n, t), s = Object.keys(e).reduce((i, d) => (i[d] = e[d].default, i), {});
|
|
147
|
+
return Object.assign(s, u);
|
|
147
148
|
};
|
|
148
149
|
}
|
|
149
150
|
function de(e, n) {
|
|
150
151
|
return { customClass: n.class, customStyle: n.style };
|
|
151
152
|
}
|
|
152
|
-
const
|
|
153
|
+
const bn = /* @__PURE__ */ new Map([
|
|
153
154
|
["appearance", de]
|
|
154
155
|
]);
|
|
155
|
-
function
|
|
156
|
+
function gn(e, n, t) {
|
|
156
157
|
return n;
|
|
157
158
|
}
|
|
158
|
-
const
|
|
159
|
+
const Sn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-design.gitee.io/property-editor.schema.json", Cn = "property-editor", xn = "A Farris Component", Vn = "object", Tn = {
|
|
159
160
|
id: {
|
|
160
161
|
description: "The unique identifier for property-editor",
|
|
161
162
|
type: "string"
|
|
@@ -217,18 +218,18 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
217
218
|
type: "boolean",
|
|
218
219
|
default: !0
|
|
219
220
|
}
|
|
220
|
-
},
|
|
221
|
+
}, Bn = [
|
|
221
222
|
"id",
|
|
222
223
|
"type"
|
|
223
|
-
],
|
|
224
|
-
$schema:
|
|
225
|
-
$id:
|
|
226
|
-
title:
|
|
227
|
-
description:
|
|
228
|
-
type:
|
|
229
|
-
properties:
|
|
230
|
-
required:
|
|
231
|
-
},
|
|
224
|
+
], Fn = {
|
|
225
|
+
$schema: Sn,
|
|
226
|
+
$id: wn,
|
|
227
|
+
title: Cn,
|
|
228
|
+
description: xn,
|
|
229
|
+
type: Vn,
|
|
230
|
+
properties: Tn,
|
|
231
|
+
required: Bn
|
|
232
|
+
}, Mn = "property-editor", kn = "A Farris Component", En = "object", An = {
|
|
232
233
|
basic: {
|
|
233
234
|
description: "Basic Infomation",
|
|
234
235
|
title: "基本信息",
|
|
@@ -250,12 +251,12 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
250
251
|
}
|
|
251
252
|
}
|
|
252
253
|
}
|
|
253
|
-
},
|
|
254
|
-
title:
|
|
255
|
-
description:
|
|
256
|
-
type:
|
|
257
|
-
categories:
|
|
258
|
-
},
|
|
254
|
+
}, Pn = {
|
|
255
|
+
title: Mn,
|
|
256
|
+
description: kn,
|
|
257
|
+
type: En,
|
|
258
|
+
categories: An
|
|
259
|
+
}, ze = {}, Nn = ce(ze, Fn, bn, gn, Pn), P = y({
|
|
259
260
|
/** 常量值 */
|
|
260
261
|
constValue: {
|
|
261
262
|
/** 值类型:常量(const), 变量(variable), 状态机(state), 自定义(custom) */
|
|
@@ -293,7 +294,7 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
293
294
|
type: "dataStates",
|
|
294
295
|
value: ""
|
|
295
296
|
}
|
|
296
|
-
}),
|
|
297
|
+
}), On = y([
|
|
297
298
|
{
|
|
298
299
|
id: "const",
|
|
299
300
|
label: "常量"
|
|
@@ -318,7 +319,7 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
318
319
|
id: "dataStates",
|
|
319
320
|
label: "数据状态"
|
|
320
321
|
}
|
|
321
|
-
]),
|
|
322
|
+
]), In = {
|
|
322
323
|
controlName: "userName",
|
|
323
324
|
propertyName: "readonly",
|
|
324
325
|
propertyType: "enum",
|
|
@@ -443,9 +444,9 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
443
444
|
},
|
|
444
445
|
/** 状态机是否有前缀viewModel.stateMachine && */
|
|
445
446
|
hasPrefix: 2
|
|
446
|
-
},
|
|
447
|
+
}, jn = /* @__PURE__ */ new Map([
|
|
447
448
|
["appearance", de]
|
|
448
|
-
]),
|
|
449
|
+
]), Dn = "https://json-schema.org/draft/2020-12/schema", $n = "https://farris-design.gitee.io/combo-list.schema.json", Ln = "combo-list", Un = "A Farris Input Component", _n = "object", Rn = {
|
|
449
450
|
id: {
|
|
450
451
|
description: "The unique identifier for a combo list",
|
|
451
452
|
type: "string"
|
|
@@ -473,6 +474,11 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
473
474
|
type: "object",
|
|
474
475
|
default: {}
|
|
475
476
|
},
|
|
477
|
+
disabled: {
|
|
478
|
+
description: "",
|
|
479
|
+
type: "boolean",
|
|
480
|
+
default: !1
|
|
481
|
+
},
|
|
476
482
|
editable: {
|
|
477
483
|
description: "",
|
|
478
484
|
type: "boolean",
|
|
@@ -500,7 +506,7 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
500
506
|
valueField: {
|
|
501
507
|
description: "",
|
|
502
508
|
type: "string",
|
|
503
|
-
default: "
|
|
509
|
+
default: "id"
|
|
504
510
|
},
|
|
505
511
|
titleField: {
|
|
506
512
|
description: "",
|
|
@@ -556,19 +562,24 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
556
562
|
type: "sting",
|
|
557
563
|
default: ""
|
|
558
564
|
}
|
|
559
|
-
},
|
|
565
|
+
}, Gn = [
|
|
560
566
|
"id",
|
|
561
567
|
"type"
|
|
562
|
-
],
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
], Hn = [
|
|
569
|
+
"id",
|
|
570
|
+
"appearance",
|
|
571
|
+
"binding"
|
|
572
|
+
], qn = {
|
|
573
|
+
$schema: Dn,
|
|
574
|
+
$id: $n,
|
|
575
|
+
title: Ln,
|
|
576
|
+
description: Un,
|
|
577
|
+
type: _n,
|
|
578
|
+
properties: Rn,
|
|
579
|
+
required: Gn,
|
|
580
|
+
ignore: Hn
|
|
570
581
|
};
|
|
571
|
-
function
|
|
582
|
+
function Wn(e, n, t) {
|
|
572
583
|
return n;
|
|
573
584
|
}
|
|
574
585
|
const Ce = {
|
|
@@ -648,7 +659,7 @@ const Ce = {
|
|
|
648
659
|
* 可选,是否支持多选
|
|
649
660
|
* 默认`false`
|
|
650
661
|
*/
|
|
651
|
-
multiSelect: {
|
|
662
|
+
multiSelect: { type: Boolean, default: !1 },
|
|
652
663
|
/**
|
|
653
664
|
* 绑定值
|
|
654
665
|
*/
|
|
@@ -737,11 +748,11 @@ const Ce = {
|
|
|
737
748
|
},
|
|
738
749
|
// 搜索启用高亮
|
|
739
750
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
740
|
-
},
|
|
751
|
+
}, Ye = ce(Ce, qn, jn, Wn), zn = {
|
|
741
752
|
dataSource: { type: Array, default: [] },
|
|
742
753
|
enableSearch: { type: Boolean, default: !1 },
|
|
743
754
|
idField: { type: String, default: "id" },
|
|
744
|
-
multiSelect: {
|
|
755
|
+
multiSelect: { type: Boolean, default: !1 },
|
|
745
756
|
selectedValues: { type: String, default: "" },
|
|
746
757
|
separator: { type: String, default: "," },
|
|
747
758
|
textField: { type: String, default: "name" },
|
|
@@ -757,147 +768,152 @@ const Ce = {
|
|
|
757
768
|
default: !1
|
|
758
769
|
},
|
|
759
770
|
// 搜索启用高亮
|
|
760
|
-
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
761
|
-
|
|
771
|
+
enableHighlightSearch: { type: Boolean, default: !0 },
|
|
772
|
+
// 是否展示复选框
|
|
773
|
+
showCheckbox: { type: Boolean, default: !1 }
|
|
774
|
+
}, Yn = /* @__PURE__ */ W({
|
|
762
775
|
name: "FComboListContainer",
|
|
763
|
-
props:
|
|
776
|
+
props: zn,
|
|
764
777
|
emits: ["selectionChange"],
|
|
765
778
|
setup(e, n) {
|
|
766
|
-
const t = y(), r = y(e.dataSource), o = y([]), a = y(e.separator), l = y(e.width), u = y(e.maxHeight),
|
|
767
|
-
|
|
779
|
+
const t = y(), r = y(e.dataSource), o = y([]), a = y(e.separator), l = y(e.width), u = y(e.maxHeight), s = y(String(e.selectedValues).split(a.value)), i = x(() => e.multiSelect), d = x(() => ({
|
|
780
|
+
enableSelectRow: !0,
|
|
781
|
+
multiSelect: e.multiSelect,
|
|
782
|
+
multiSelectMode: "OnCheckAndClick",
|
|
783
|
+
showCheckbox: i.value,
|
|
784
|
+
showSelectAll: !1,
|
|
785
|
+
showSelection: !0
|
|
786
|
+
}));
|
|
787
|
+
O(e.dataSource, () => {
|
|
768
788
|
r.value = e.dataSource;
|
|
769
789
|
});
|
|
770
|
-
const
|
|
771
|
-
const
|
|
772
|
-
return l.value !== void 0 && (
|
|
790
|
+
const c = x(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = x(() => {
|
|
791
|
+
const m = {};
|
|
792
|
+
return l.value !== void 0 && (m.width = `${l.value}px`), u.value !== void 0 && u.value > 0 && (m.maxHeight = `${u.value}px`), m;
|
|
773
793
|
});
|
|
774
|
-
function
|
|
775
|
-
o.value =
|
|
794
|
+
function p(m) {
|
|
795
|
+
o.value = m.map((b) => Object.assign({}, b)), s.value = m.map((b) => b[e.idField]), n.emit("selectionChange", o.value);
|
|
776
796
|
}
|
|
777
|
-
function
|
|
797
|
+
function v(m) {
|
|
778
798
|
if (e.enableHighlightSearch)
|
|
779
799
|
return;
|
|
780
|
-
let
|
|
781
|
-
typeof e.searchOption == "function" ?
|
|
800
|
+
let b = [];
|
|
801
|
+
typeof e.searchOption == "function" ? b = r.value.filter((S) => e.searchOption(m, S)) : b = r.value.filter((S) => S[e.valueField].indexOf(m) > -1 || S[e.textField].indexOf(m) > -1), t.value.updateDataSource(b);
|
|
782
802
|
}
|
|
783
|
-
return
|
|
784
|
-
|
|
785
|
-
}), () =>
|
|
786
|
-
class: "f-combo-list-container pl-
|
|
787
|
-
style:
|
|
788
|
-
}, [
|
|
803
|
+
return O([() => e.selectedValues], ([m]) => {
|
|
804
|
+
s.value = m.split(a.value);
|
|
805
|
+
}), () => w("div", {
|
|
806
|
+
class: "f-combo-list-container pl-1",
|
|
807
|
+
style: f.value
|
|
808
|
+
}, [w(rn, {
|
|
789
809
|
ref: t,
|
|
790
810
|
size: "small",
|
|
791
811
|
itemClass: "f-combo-list-item",
|
|
792
|
-
header:
|
|
812
|
+
header: c.value,
|
|
793
813
|
headerClass: "f-combo-list-search-box",
|
|
794
814
|
data: r.value,
|
|
795
815
|
idField: e.idField,
|
|
796
816
|
textField: e.textField,
|
|
797
817
|
titleField: e.titleField,
|
|
798
818
|
multiSelect: e.multiSelect,
|
|
799
|
-
selection:
|
|
800
|
-
enableSelectRow: !0,
|
|
801
|
-
multiSelect: !0,
|
|
802
|
-
multiSelectMode: "OnCheckAndClick",
|
|
803
|
-
showCheckbox: !0,
|
|
804
|
-
showSelectAll: !1,
|
|
805
|
-
showSelection: !0
|
|
806
|
-
},
|
|
819
|
+
selection: d.value,
|
|
807
820
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
808
|
-
selectionValues:
|
|
809
|
-
onSelectionChange:
|
|
810
|
-
onAfterSearch:
|
|
821
|
+
selectionValues: s.value,
|
|
822
|
+
onSelectionChange: p,
|
|
823
|
+
onAfterSearch: v
|
|
811
824
|
}, null)]);
|
|
812
825
|
}
|
|
813
826
|
});
|
|
814
|
-
function
|
|
827
|
+
function Zn(e) {
|
|
815
828
|
const n = y(""), t = y(e.modelValue), r = y(e.data || []), o = y(e.editable);
|
|
816
|
-
function a(
|
|
817
|
-
const f = String(
|
|
818
|
-
return r.value.filter((
|
|
829
|
+
function a(c) {
|
|
830
|
+
const f = String(c).split(e.separator), p = f.map((b) => [b, !0]), v = new Map(p);
|
|
831
|
+
return r.value.filter((b) => v.has(String(b[e.valueField]))).sort((b, S) => {
|
|
832
|
+
const E = f.indexOf(b[e.valueField]), k = f.indexOf(S[e.valueField]);
|
|
833
|
+
return E - k;
|
|
834
|
+
});
|
|
819
835
|
}
|
|
820
|
-
function l(
|
|
821
|
-
const f = a(
|
|
822
|
-
n.value = o.value ? f ||
|
|
836
|
+
function l(c) {
|
|
837
|
+
const f = a(c).map((p) => p[e.textField]).join(e.separator);
|
|
838
|
+
n.value = o.value ? f || c : f;
|
|
823
839
|
}
|
|
824
|
-
function u(
|
|
825
|
-
const f =
|
|
826
|
-
return r.value.filter((v) =>
|
|
840
|
+
function u(c) {
|
|
841
|
+
const f = c.split(e.separator).map((v) => [v, !0]), p = new Map(f);
|
|
842
|
+
return r.value.filter((v) => p.has(v[e.textField]));
|
|
827
843
|
}
|
|
828
|
-
function c
|
|
844
|
+
function s(c) {
|
|
829
845
|
const f = {};
|
|
830
|
-
return f[e.idField] =
|
|
846
|
+
return f[e.idField] = c, f[e.textField] = c, [f];
|
|
831
847
|
}
|
|
832
|
-
function i(
|
|
833
|
-
let f = u(
|
|
834
|
-
const
|
|
835
|
-
return o.value && !
|
|
848
|
+
function i(c) {
|
|
849
|
+
let f = u(c);
|
|
850
|
+
const p = f && f.length > 0;
|
|
851
|
+
return o.value && !p && (f = s(c)), f;
|
|
836
852
|
}
|
|
837
|
-
function
|
|
838
|
-
const { url:
|
|
839
|
-
let
|
|
840
|
-
fetch(
|
|
841
|
-
var
|
|
842
|
-
if (
|
|
843
|
-
return
|
|
844
|
-
throw new Error(
|
|
845
|
-
}).then((
|
|
846
|
-
r.value =
|
|
847
|
-
}).catch((
|
|
848
|
-
console.error(
|
|
853
|
+
function d() {
|
|
854
|
+
const { url: c, method: f = "GET", headers: p = {}, body: v = null } = e.remote, m = f.toLowerCase() == "get" ? { method: f, headers: p } : { method: f, headers: p, body: v };
|
|
855
|
+
let b = !1;
|
|
856
|
+
fetch(c, m).then((S) => {
|
|
857
|
+
var k, C;
|
|
858
|
+
if (S.status === 200)
|
|
859
|
+
return b = !!((C = (k = S.headers) == null ? void 0 : k.get("content-type")) != null && C.includes("application/json")), b ? S.text() : S.json();
|
|
860
|
+
throw new Error(S.statusText);
|
|
861
|
+
}).then((S) => {
|
|
862
|
+
r.value = b ? JSON.parse(S) : S;
|
|
863
|
+
}).catch((S) => {
|
|
864
|
+
console.error(S);
|
|
849
865
|
});
|
|
850
866
|
}
|
|
851
|
-
return e.remote &&
|
|
867
|
+
return e.remote && d(), O(() => e.data, () => {
|
|
852
868
|
r.value = e.data;
|
|
853
|
-
}),
|
|
869
|
+
}), O([r], ([c]) => {
|
|
854
870
|
if (e.modelValue) {
|
|
855
|
-
const f =
|
|
871
|
+
const f = c.find((p) => p[e.valueField] === e.modelValue);
|
|
856
872
|
f && (n.value = f[e.textField]);
|
|
857
873
|
}
|
|
858
|
-
}),
|
|
859
|
-
t.value =
|
|
874
|
+
}), O(() => e.modelValue, (c) => {
|
|
875
|
+
t.value = c, l(c);
|
|
860
876
|
}), l(e.modelValue), { dataSource: r, displayText: n, editable: o, modelValue: t, getItemsByDisplayText: u, getItemsByValue: a, getSelectedItemsByDisplayText: i };
|
|
861
877
|
}
|
|
862
|
-
const G = /* @__PURE__ */
|
|
878
|
+
const G = /* @__PURE__ */ W({
|
|
863
879
|
name: "FComboList",
|
|
864
880
|
props: Ce,
|
|
865
881
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
866
882
|
setup(e, n) {
|
|
867
883
|
const t = y(), r = y(e.disabled), o = y(e.enableClear), a = y(e.enableSearch), l = y(e.readonly), {
|
|
868
884
|
dataSource: u,
|
|
869
|
-
displayText:
|
|
885
|
+
displayText: s,
|
|
870
886
|
editable: i,
|
|
871
|
-
modelValue:
|
|
872
|
-
getSelectedItemsByDisplayText:
|
|
873
|
-
} =
|
|
887
|
+
modelValue: d,
|
|
888
|
+
getSelectedItemsByDisplayText: c
|
|
889
|
+
} = Zn(e), f = x(() => e.multiSelect), p = x(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
|
|
874
890
|
function v() {
|
|
875
891
|
!f.value && t.value && t.value.hidePopup();
|
|
876
892
|
}
|
|
877
|
-
function
|
|
878
|
-
|
|
893
|
+
function m(T) {
|
|
894
|
+
s.value = T.map((g) => g[e.textField]).join(e.separator), T.length === 1 ? d.value = T[0][e.valueField] : d.value = T.map((g) => g[e.valueField]).join(e.separator), n.emit("update:modelValue", d.value), n.emit("change", T, d.value), v();
|
|
879
895
|
}
|
|
880
|
-
function
|
|
896
|
+
function b() {
|
|
881
897
|
l.value || t.value.togglePopup();
|
|
882
898
|
}
|
|
883
|
-
function
|
|
884
|
-
|
|
899
|
+
function S(T) {
|
|
900
|
+
d.value = "", n.emit("update:modelValue", ""), n.emit("clear");
|
|
885
901
|
}
|
|
886
|
-
function
|
|
887
|
-
const
|
|
888
|
-
|
|
902
|
+
function E(T) {
|
|
903
|
+
const g = c(T);
|
|
904
|
+
m(g);
|
|
889
905
|
}
|
|
890
|
-
function
|
|
891
|
-
return
|
|
906
|
+
function k() {
|
|
907
|
+
return s.value;
|
|
892
908
|
}
|
|
893
|
-
function
|
|
894
|
-
n.emit("input",
|
|
909
|
+
function C(T) {
|
|
910
|
+
n.emit("input", T);
|
|
895
911
|
}
|
|
896
912
|
return n.expose({
|
|
897
|
-
getDisplayText:
|
|
898
|
-
}),
|
|
899
|
-
r.value =
|
|
900
|
-
}), () =>
|
|
913
|
+
getDisplayText: k
|
|
914
|
+
}), O([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([T, g, F, A, N]) => {
|
|
915
|
+
r.value = T, i.value = g, o.value = F, a.value = A, l.value = N;
|
|
916
|
+
}), () => w(on, {
|
|
901
917
|
ref: t,
|
|
902
918
|
id: e.id,
|
|
903
919
|
disable: r.value,
|
|
@@ -912,29 +928,29 @@ const G = /* @__PURE__ */ q({
|
|
|
912
928
|
enableTitle: e.enableTitle,
|
|
913
929
|
multiSelect: e.multiSelect,
|
|
914
930
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
915
|
-
modelValue:
|
|
916
|
-
"onUpdate:modelValue": (
|
|
931
|
+
modelValue: s.value,
|
|
932
|
+
"onUpdate:modelValue": (T) => s.value = T,
|
|
917
933
|
focusOnCreated: e.focusOnCreated,
|
|
918
934
|
selectOnCreated: e.selectOnCreated,
|
|
919
|
-
onClear:
|
|
920
|
-
onClick:
|
|
921
|
-
onChange:
|
|
922
|
-
onInput:
|
|
935
|
+
onClear: S,
|
|
936
|
+
onClick: b,
|
|
937
|
+
onChange: E,
|
|
938
|
+
onInput: C,
|
|
923
939
|
beforeOpen: e.beforeOpen
|
|
924
940
|
}, {
|
|
925
|
-
default: () => [
|
|
941
|
+
default: () => [w(Yn, {
|
|
926
942
|
idField: e.idField,
|
|
927
943
|
valueField: e.valueField,
|
|
928
944
|
textField: e.textField,
|
|
929
945
|
titleField: e.titleField,
|
|
930
946
|
dataSource: u.value,
|
|
931
|
-
selectedValues:
|
|
947
|
+
selectedValues: d.value,
|
|
932
948
|
multiSelect: e.multiSelect,
|
|
933
949
|
enableSearch: a.value,
|
|
934
950
|
maxHeight: e.maxHeight,
|
|
935
951
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
936
|
-
width: e.fitEditor ?
|
|
937
|
-
onSelectionChange:
|
|
952
|
+
width: e.fitEditor ? p.value : void 0,
|
|
953
|
+
onSelectionChange: m
|
|
938
954
|
}, null)]
|
|
939
955
|
});
|
|
940
956
|
}
|
|
@@ -942,7 +958,7 @@ const G = /* @__PURE__ */ q({
|
|
|
942
958
|
function xe(e, n) {
|
|
943
959
|
e.schema;
|
|
944
960
|
const t = y(!0), r = y(!0);
|
|
945
|
-
function o(
|
|
961
|
+
function o(c) {
|
|
946
962
|
return !1;
|
|
947
963
|
}
|
|
948
964
|
function a() {
|
|
@@ -954,11 +970,11 @@ function xe(e, n) {
|
|
|
954
970
|
function u() {
|
|
955
971
|
return !0;
|
|
956
972
|
}
|
|
957
|
-
function c
|
|
973
|
+
function s(c) {
|
|
958
974
|
}
|
|
959
975
|
function i() {
|
|
960
976
|
}
|
|
961
|
-
function
|
|
977
|
+
function d(c) {
|
|
962
978
|
return null;
|
|
963
979
|
}
|
|
964
980
|
return {
|
|
@@ -966,27 +982,27 @@ function xe(e, n) {
|
|
|
966
982
|
checkCanDeleteComponent: a,
|
|
967
983
|
checkCanMoveComponent: l,
|
|
968
984
|
hideNestedPaddingInDesginerView: u,
|
|
969
|
-
onAcceptMovedChildElement:
|
|
985
|
+
onAcceptMovedChildElement: s,
|
|
970
986
|
resolveComponentContext: i,
|
|
971
987
|
triggerBelongedComponentToMoveWhenMoved: t,
|
|
972
988
|
triggerBelongedComponentToDeleteWhenDeleted: r,
|
|
973
|
-
getPropsConfig:
|
|
989
|
+
getPropsConfig: d
|
|
974
990
|
};
|
|
975
991
|
}
|
|
976
|
-
class
|
|
992
|
+
class Jn {
|
|
977
993
|
constructor(n, t) {
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
994
|
+
$(this, "componentId");
|
|
995
|
+
$(this, "viewModelId");
|
|
996
|
+
$(this, "eventsEditorUtils");
|
|
997
|
+
$(this, "formSchemaUtils");
|
|
998
|
+
$(this, "formMetadataConverter");
|
|
999
|
+
$(this, "designViewModelUtils");
|
|
1000
|
+
$(this, "designViewModelField");
|
|
1001
|
+
$(this, "controlCreatorUtils");
|
|
1002
|
+
$(this, "designerHostService");
|
|
1003
|
+
$(this, "schemaService", null);
|
|
1004
|
+
$(this, "metadataService", null);
|
|
1005
|
+
$(this, "propertyConfig", {
|
|
990
1006
|
type: "object",
|
|
991
1007
|
categories: {}
|
|
992
1008
|
});
|
|
@@ -1078,7 +1094,7 @@ const Z = class Z {
|
|
|
1078
1094
|
/**
|
|
1079
1095
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1080
1096
|
*/
|
|
1081
|
-
|
|
1097
|
+
$(Z, "fieldControlTypeMapping", {
|
|
1082
1098
|
String: [
|
|
1083
1099
|
{ key: V["input-group"].type, value: V["input-group"].name },
|
|
1084
1100
|
{ key: V.lookup.type, value: V.lookup.name },
|
|
@@ -1125,8 +1141,8 @@ D(Z, "fieldControlTypeMapping", {
|
|
|
1125
1141
|
]
|
|
1126
1142
|
});
|
|
1127
1143
|
let ie = Z;
|
|
1128
|
-
const
|
|
1129
|
-
class Ve extends
|
|
1144
|
+
const Qn = y(0);
|
|
1145
|
+
class Ve extends Jn {
|
|
1130
1146
|
constructor(n, t) {
|
|
1131
1147
|
super(n, t);
|
|
1132
1148
|
}
|
|
@@ -1149,8 +1165,8 @@ class Ve extends Yn {
|
|
|
1149
1165
|
readonly: !0
|
|
1150
1166
|
},
|
|
1151
1167
|
type: {
|
|
1152
|
-
description: "
|
|
1153
|
-
title: "
|
|
1168
|
+
description: "编辑器类型",
|
|
1169
|
+
title: "编辑器类型",
|
|
1154
1170
|
type: "string",
|
|
1155
1171
|
refreshPanelAfterChanged: !0,
|
|
1156
1172
|
$converter: "/converter/change-editor.converter",
|
|
@@ -1188,13 +1204,17 @@ class Ve extends Yn {
|
|
|
1188
1204
|
}
|
|
1189
1205
|
}
|
|
1190
1206
|
},
|
|
1191
|
-
setPropertyRelates(u,
|
|
1207
|
+
setPropertyRelates(u, s) {
|
|
1192
1208
|
if (u)
|
|
1193
1209
|
switch (u && u.propertyID) {
|
|
1194
1210
|
case "type": {
|
|
1195
1211
|
r.changeControlType(n, u, t);
|
|
1196
1212
|
break;
|
|
1197
1213
|
}
|
|
1214
|
+
case "label": {
|
|
1215
|
+
u.needRefreshControlTree = !0;
|
|
1216
|
+
break;
|
|
1217
|
+
}
|
|
1198
1218
|
}
|
|
1199
1219
|
}
|
|
1200
1220
|
};
|
|
@@ -1238,12 +1258,12 @@ class Ve extends Yn {
|
|
|
1238
1258
|
* @param newControlType 新控件类型
|
|
1239
1259
|
*/
|
|
1240
1260
|
changeControlType(n, t, r) {
|
|
1241
|
-
var i,
|
|
1261
|
+
var i, d, c, f;
|
|
1242
1262
|
const o = t.propertyValue, a = r && r.parent && r.parent.schema;
|
|
1243
1263
|
if (!a)
|
|
1244
1264
|
return;
|
|
1245
|
-
const l = a.contents.findIndex((
|
|
1246
|
-
let
|
|
1265
|
+
const l = a.contents.findIndex((p) => p.id === n.id), u = a.contents[l];
|
|
1266
|
+
let s;
|
|
1247
1267
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1248
1268
|
editor: {
|
|
1249
1269
|
$type: o
|
|
@@ -1251,27 +1271,27 @@ class Ve extends Yn {
|
|
|
1251
1271
|
name: this.designViewModelField.name,
|
|
1252
1272
|
require: this.designViewModelField.require,
|
|
1253
1273
|
readonly: this.designViewModelField.readonly
|
|
1254
|
-
}, !1),
|
|
1274
|
+
}, !1), s = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, o)), s || (s = $e("form-group") || {}, s.editor = $e(o) || {}, delete s.editor.id, delete s.editor.binding, delete s.editor.appearance), Object.assign(s, {
|
|
1255
1275
|
id: u.id,
|
|
1256
1276
|
appearance: u.appearance,
|
|
1257
1277
|
size: u.size,
|
|
1258
1278
|
label: u.label,
|
|
1259
1279
|
binding: u.binding,
|
|
1260
1280
|
visible: u.visible
|
|
1261
|
-
}), Object.assign(
|
|
1262
|
-
isTextArea:
|
|
1281
|
+
}), Object.assign(s.editor, {
|
|
1282
|
+
isTextArea: s.isTextArea && u.isTextArea,
|
|
1263
1283
|
placeholder: (i = u.editor) == null ? void 0 : i.placeholder,
|
|
1264
|
-
holdPlace: (
|
|
1265
|
-
readonly: (
|
|
1284
|
+
holdPlace: (d = u.editor) == null ? void 0 : d.holdPlace,
|
|
1285
|
+
readonly: (c = u.editor) == null ? void 0 : c.readonly,
|
|
1266
1286
|
require: (f = u.editor) == null ? void 0 : f.require
|
|
1267
|
-
}), a.contents.splice(l, 1), a.contents.splice(l, 0,
|
|
1268
|
-
(
|
|
1269
|
-
),
|
|
1287
|
+
}), a.contents.splice(l, 1), a.contents.splice(l, 0, s), r.schema = Object.assign(u, s), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
1288
|
+
(p) => p.classList.remove("dgComponentSelected")
|
|
1289
|
+
), Qn.value++;
|
|
1270
1290
|
}
|
|
1271
1291
|
getComponentConfig(n, t = {}, r = {}) {
|
|
1272
1292
|
const o = Object.assign({
|
|
1273
|
-
description: "
|
|
1274
|
-
title: "
|
|
1293
|
+
description: "编辑器",
|
|
1294
|
+
title: "编辑器",
|
|
1275
1295
|
type: "input-group",
|
|
1276
1296
|
$converter: "/converter/property-editor.converter"
|
|
1277
1297
|
}, t), a = Object.assign({
|
|
@@ -1299,7 +1319,7 @@ class Ve extends Yn {
|
|
|
1299
1319
|
return { ...o, properties: { ...a } };
|
|
1300
1320
|
}
|
|
1301
1321
|
}
|
|
1302
|
-
class
|
|
1322
|
+
class Xn extends Ve {
|
|
1303
1323
|
constructor(n, t) {
|
|
1304
1324
|
super(n, t);
|
|
1305
1325
|
}
|
|
@@ -1323,7 +1343,7 @@ class Jn extends Ve {
|
|
|
1323
1343
|
});
|
|
1324
1344
|
}
|
|
1325
1345
|
}
|
|
1326
|
-
function
|
|
1346
|
+
function Kn(e, n) {
|
|
1327
1347
|
const {
|
|
1328
1348
|
canAccepts: t,
|
|
1329
1349
|
checkCanDeleteComponent: r,
|
|
@@ -1331,11 +1351,11 @@ function Qn(e, n) {
|
|
|
1331
1351
|
hideNestedPaddingInDesginerView: a,
|
|
1332
1352
|
onAcceptMovedChildElement: l,
|
|
1333
1353
|
resolveComponentContext: u,
|
|
1334
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1354
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
1335
1355
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
1336
|
-
} = xe(e),
|
|
1337
|
-
function
|
|
1338
|
-
return new
|
|
1356
|
+
} = xe(e), d = e.schema;
|
|
1357
|
+
function c(f, p) {
|
|
1358
|
+
return new Xn(f, n).getPropertyConfig(d, p);
|
|
1339
1359
|
}
|
|
1340
1360
|
return {
|
|
1341
1361
|
canAccepts: t,
|
|
@@ -1344,34 +1364,27 @@ function Qn(e, n) {
|
|
|
1344
1364
|
hideNestedPaddingInDesginerView: a,
|
|
1345
1365
|
onAcceptMovedChildElement: l,
|
|
1346
1366
|
resolveComponentContext: u,
|
|
1347
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1367
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
1348
1368
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
1349
|
-
getPropsConfig:
|
|
1369
|
+
getPropsConfig: c
|
|
1350
1370
|
};
|
|
1351
1371
|
}
|
|
1352
|
-
const
|
|
1372
|
+
const er = /* @__PURE__ */ W({
|
|
1353
1373
|
name: "FComboListDesign",
|
|
1354
1374
|
props: Ce,
|
|
1355
1375
|
emits: ["clear", "update:modelValue", "change"],
|
|
1356
1376
|
setup(e, n) {
|
|
1357
|
-
const t = y(), r = Q("designer-host-service"), o = Q("design-item-context"), a =
|
|
1377
|
+
const t = y(), r = Q("designer-host-service"), o = Q("design-item-context"), a = Kn(o, r), l = ln(t, o, a);
|
|
1358
1378
|
return H(() => {
|
|
1359
1379
|
t.value.componentInstance = l;
|
|
1360
|
-
}), n.expose(l.value), () =>
|
|
1380
|
+
}), n.expose(l.value), () => w(an, {
|
|
1361
1381
|
ref: t,
|
|
1362
|
-
id: e.id,
|
|
1363
|
-
disable: e.disabled,
|
|
1364
|
-
readonly: e.readonly,
|
|
1365
|
-
forcePlaceholder: e.forcePlaceholder,
|
|
1366
|
-
editable: !1,
|
|
1367
1382
|
buttonContent: e.dropDownIcon,
|
|
1383
|
+
readonly: !0,
|
|
1384
|
+
editable: !1,
|
|
1385
|
+
forcePlaceholder: !0,
|
|
1368
1386
|
placeholder: e.placeholder,
|
|
1369
|
-
enableClear: !
|
|
1370
|
-
maxLength: e.maxLength,
|
|
1371
|
-
tabIndex: e.tabIndex,
|
|
1372
|
-
enableTitle: e.enableTitle,
|
|
1373
|
-
multiSelect: e.multiSelect,
|
|
1374
|
-
inputType: e.multiSelect ? "tag" : "text"
|
|
1387
|
+
enableClear: !0
|
|
1375
1388
|
}, null);
|
|
1376
1389
|
}
|
|
1377
1390
|
}), Te = (e) => {
|
|
@@ -1381,19 +1394,19 @@ const Xn = /* @__PURE__ */ q({
|
|
|
1381
1394
|
}, e;
|
|
1382
1395
|
};
|
|
1383
1396
|
G.register = (e, n, t, r) => {
|
|
1384
|
-
e["combo-list"] = G, n["combo-list"] =
|
|
1397
|
+
e["combo-list"] = G, n["combo-list"] = Ye;
|
|
1385
1398
|
};
|
|
1386
1399
|
G.registerDesigner = (e, n, t) => {
|
|
1387
|
-
e["combo-list"] =
|
|
1400
|
+
e["combo-list"] = er, n["combo-list"] = Ye;
|
|
1388
1401
|
};
|
|
1389
1402
|
Te(G);
|
|
1390
|
-
const
|
|
1403
|
+
const tr = /* @__PURE__ */ new Map([
|
|
1391
1404
|
["appearance", de]
|
|
1392
1405
|
]);
|
|
1393
|
-
function
|
|
1406
|
+
function nr(e, n, t) {
|
|
1394
1407
|
return n;
|
|
1395
1408
|
}
|
|
1396
|
-
const
|
|
1409
|
+
const rr = "https://json-schema.org/draft/2020-12/schema", or = "https://farris-design.gitee.io/input-group.schema.json", ar = "input-group", ir = "A Farris Input Component", lr = "object", ur = {
|
|
1397
1410
|
id: {
|
|
1398
1411
|
description: "The unique identifier for a Input Group",
|
|
1399
1412
|
type: "string"
|
|
@@ -1595,17 +1608,17 @@ const tr = "https://json-schema.org/draft/2020-12/schema", nr = "https://farris-
|
|
|
1595
1608
|
type: "string",
|
|
1596
1609
|
default: ""
|
|
1597
1610
|
}
|
|
1598
|
-
},
|
|
1611
|
+
}, sr = [
|
|
1599
1612
|
"id",
|
|
1600
1613
|
"type"
|
|
1601
|
-
],
|
|
1602
|
-
$schema:
|
|
1603
|
-
$id:
|
|
1604
|
-
title:
|
|
1605
|
-
description:
|
|
1606
|
-
type:
|
|
1607
|
-
properties:
|
|
1608
|
-
required:
|
|
1614
|
+
], cr = {
|
|
1615
|
+
$schema: rr,
|
|
1616
|
+
$id: or,
|
|
1617
|
+
title: ar,
|
|
1618
|
+
description: ir,
|
|
1619
|
+
type: lr,
|
|
1620
|
+
properties: ur,
|
|
1621
|
+
required: sr
|
|
1609
1622
|
}, Be = {
|
|
1610
1623
|
/** 是否自动完成 */
|
|
1611
1624
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -1672,54 +1685,54 @@ const tr = "https://json-schema.org/draft/2020-12/schema", nr = "https://farris-
|
|
|
1672
1685
|
* - input: 输入时更新
|
|
1673
1686
|
*/
|
|
1674
1687
|
updateOn: { type: String, default: "blur" }
|
|
1675
|
-
},
|
|
1676
|
-
function
|
|
1677
|
-
const o = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder),
|
|
1688
|
+
}, Ze = ce(Be, cr, tr, nr);
|
|
1689
|
+
function dr(e, n, t, r) {
|
|
1690
|
+
const o = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder), s = y(e.textAlign), i = y(e.updateOn), d = x(() => e.editable || !e.readonly), c = x(() => e.editable && !e.disabled && !e.readonly), f = x(() => !e.disabled && a.value), p = x(() => t.value === "" || t.value === null || t.value === void 0), v = x(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), m = x(() => e.readonly || !e.editable), b = x(() => e.enableTitle ? t.value : ""), S = x(() => ({
|
|
1678
1691
|
"form-control": !0,
|
|
1679
1692
|
"f-utils-fill": !0,
|
|
1680
|
-
"text-left":
|
|
1681
|
-
"text-center":
|
|
1682
|
-
"text-right":
|
|
1683
|
-
})),
|
|
1693
|
+
"text-left": s.value === "left",
|
|
1694
|
+
"text-center": s.value === "center",
|
|
1695
|
+
"text-right": s.value === "right"
|
|
1696
|
+
})), E = x(() => {
|
|
1684
1697
|
const M = {
|
|
1685
1698
|
"f-cmp-inputgroup": !0,
|
|
1686
1699
|
"input-group": !0,
|
|
1687
1700
|
"f-state-disable": o.value,
|
|
1688
|
-
"f-state-editable":
|
|
1689
|
-
"f-state-readonly":
|
|
1701
|
+
"f-state-editable": c.value,
|
|
1702
|
+
"f-state-readonly": m.value,
|
|
1690
1703
|
"f-state-focus": f.value
|
|
1691
1704
|
};
|
|
1692
1705
|
return (e.customClass || "").split(" ").reduce((re, pe) => (re[pe] = !0, re), M), M;
|
|
1693
|
-
}),
|
|
1694
|
-
function
|
|
1695
|
-
t.value = M, r.value !== M && (r.value = M),
|
|
1706
|
+
}), k = x(() => u.value ? "" : "border-width : 0 ");
|
|
1707
|
+
function C(M, D = !0) {
|
|
1708
|
+
t.value = M, r.value !== M && (r.value = M), D && n.emit("change", M), n.emit("update:modelValue", M), n.emit("update:value", M);
|
|
1696
1709
|
}
|
|
1697
|
-
|
|
1710
|
+
O(
|
|
1698
1711
|
() => e.modelValue,
|
|
1699
|
-
(M,
|
|
1700
|
-
M !==
|
|
1712
|
+
(M, D) => {
|
|
1713
|
+
M !== D && (t.value = M, r.value = M);
|
|
1701
1714
|
}
|
|
1702
|
-
),
|
|
1703
|
-
M !==
|
|
1715
|
+
), O(() => e.disabled, (M, D) => {
|
|
1716
|
+
M !== D && (o.value = M);
|
|
1704
1717
|
});
|
|
1705
|
-
function
|
|
1718
|
+
function T(M) {
|
|
1706
1719
|
return a.value = !1, n.emit("blur", M), M.stopPropagation(), !1;
|
|
1707
1720
|
}
|
|
1708
|
-
function
|
|
1721
|
+
function g(M) {
|
|
1709
1722
|
n.emit("click", M);
|
|
1710
1723
|
}
|
|
1711
|
-
function
|
|
1712
|
-
e.disabled || (u.value && (a.value = !0),
|
|
1724
|
+
function F(M) {
|
|
1725
|
+
e.disabled || (u.value && (a.value = !0), d.value && n.emit("focus", M));
|
|
1713
1726
|
}
|
|
1714
|
-
function
|
|
1727
|
+
function A(M) {
|
|
1715
1728
|
n.emit("input", M.target.value);
|
|
1716
|
-
const
|
|
1717
|
-
r.value =
|
|
1729
|
+
const D = M.target.value;
|
|
1730
|
+
r.value = D, i.value === "input" && (n.emit("update:modelValue", D), n.emit("update:value", D));
|
|
1718
1731
|
}
|
|
1719
|
-
function
|
|
1732
|
+
function N(M) {
|
|
1720
1733
|
n.emit("keydown", M);
|
|
1721
1734
|
}
|
|
1722
|
-
function
|
|
1735
|
+
function q(M) {
|
|
1723
1736
|
n.emit("keyup", M);
|
|
1724
1737
|
}
|
|
1725
1738
|
function _(M) {
|
|
@@ -1727,63 +1740,63 @@ function sr(e, n, t, r) {
|
|
|
1727
1740
|
}
|
|
1728
1741
|
function K(M) {
|
|
1729
1742
|
if (i.value === "blur") {
|
|
1730
|
-
const
|
|
1731
|
-
M.stopPropagation(),
|
|
1743
|
+
const D = M.target.value;
|
|
1744
|
+
M.stopPropagation(), C(D);
|
|
1732
1745
|
}
|
|
1733
1746
|
}
|
|
1734
1747
|
return {
|
|
1735
|
-
changeTextBoxValue:
|
|
1748
|
+
changeTextBoxValue: C,
|
|
1736
1749
|
disabled: o,
|
|
1737
1750
|
displayText: r,
|
|
1738
|
-
editable:
|
|
1751
|
+
editable: c,
|
|
1739
1752
|
hasFocused: f,
|
|
1740
|
-
inputGroupClass:
|
|
1753
|
+
inputGroupClass: E,
|
|
1741
1754
|
inputType: l,
|
|
1742
|
-
isEmpty:
|
|
1755
|
+
isEmpty: p,
|
|
1743
1756
|
modelValue: t,
|
|
1744
|
-
readonly:
|
|
1745
|
-
onBlur:
|
|
1746
|
-
onClick:
|
|
1747
|
-
onFocus:
|
|
1748
|
-
onInput:
|
|
1749
|
-
onKeydown:
|
|
1750
|
-
onKeyup:
|
|
1757
|
+
readonly: m,
|
|
1758
|
+
onBlur: T,
|
|
1759
|
+
onClick: g,
|
|
1760
|
+
onFocus: F,
|
|
1761
|
+
onInput: A,
|
|
1762
|
+
onKeydown: N,
|
|
1763
|
+
onKeyup: q,
|
|
1751
1764
|
onMousedown: _,
|
|
1752
1765
|
onTextBoxValueChange: K,
|
|
1753
1766
|
placeholder: v,
|
|
1754
|
-
textBoxClass:
|
|
1755
|
-
textBoxTitle:
|
|
1756
|
-
inputGroupStyle:
|
|
1767
|
+
textBoxClass: S,
|
|
1768
|
+
textBoxTitle: b,
|
|
1769
|
+
inputGroupStyle: k
|
|
1757
1770
|
};
|
|
1758
1771
|
}
|
|
1759
|
-
function
|
|
1760
|
-
const o = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder),
|
|
1772
|
+
function pr(e, n, t, r) {
|
|
1773
|
+
const o = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder), s = y(e.textAlign);
|
|
1761
1774
|
x(() => e.editable || !e.readonly);
|
|
1762
|
-
const i = x(() => e.editable && !e.disabled && !e.readonly),
|
|
1775
|
+
const i = x(() => e.editable && !e.disabled && !e.readonly), d = x(() => !e.disabled && a.value), c = x(() => t.value === "" || t.value === null || t.value === void 0), f = x(() => e.placeholder), p = x(() => e.readonly || !e.editable), v = x(() => e.enableTitle ? t.value : ""), m = x(() => ({
|
|
1763
1776
|
"form-control": !0,
|
|
1764
1777
|
// 'f-utils-fill': true,
|
|
1765
|
-
"text-left":
|
|
1766
|
-
"text-center":
|
|
1767
|
-
"text-right":
|
|
1768
|
-
})),
|
|
1778
|
+
"text-left": s.value === "left",
|
|
1779
|
+
"text-center": s.value === "center",
|
|
1780
|
+
"text-right": s.value === "right"
|
|
1781
|
+
})), b = x(() => ({
|
|
1769
1782
|
"f-cmp-inputgroup": !0,
|
|
1770
1783
|
"input-group": !0,
|
|
1771
1784
|
"f-state-disable": !0,
|
|
1772
1785
|
"f-state-editable": !1,
|
|
1773
1786
|
"f-state-readonly": !0
|
|
1774
1787
|
// 'f-state-focus': hasFocused.value
|
|
1775
|
-
})),
|
|
1788
|
+
})), S = x(() => u.value ? "" : "border-width : 0 ");
|
|
1776
1789
|
return {
|
|
1777
1790
|
// changeTextBoxValue,
|
|
1778
1791
|
disabled: o,
|
|
1779
1792
|
displayText: r,
|
|
1780
1793
|
editable: i,
|
|
1781
|
-
hasFocused:
|
|
1782
|
-
inputGroupClass:
|
|
1794
|
+
hasFocused: d,
|
|
1795
|
+
inputGroupClass: b,
|
|
1783
1796
|
inputType: l,
|
|
1784
|
-
isEmpty:
|
|
1797
|
+
isEmpty: c,
|
|
1785
1798
|
modelValue: t,
|
|
1786
|
-
readonly:
|
|
1799
|
+
readonly: p,
|
|
1787
1800
|
// onBlur,
|
|
1788
1801
|
// onClick,
|
|
1789
1802
|
// onFocus,
|
|
@@ -1793,39 +1806,39 @@ function cr(e, n, t, r) {
|
|
|
1793
1806
|
// onMousedown,
|
|
1794
1807
|
// onTextBoxValueChange,
|
|
1795
1808
|
placeholder: f,
|
|
1796
|
-
textBoxClass:
|
|
1809
|
+
textBoxClass: m,
|
|
1797
1810
|
textBoxTitle: v,
|
|
1798
|
-
inputGroupStyle:
|
|
1811
|
+
inputGroupStyle: S
|
|
1799
1812
|
};
|
|
1800
1813
|
}
|
|
1801
|
-
function
|
|
1802
|
-
const r = y(!1), o = x(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: u, isEmpty:
|
|
1803
|
-
function i(
|
|
1804
|
-
r.value =
|
|
1814
|
+
function Je(e, n, t) {
|
|
1815
|
+
const r = y(!1), o = x(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: u, isEmpty: s } = t;
|
|
1816
|
+
function i(m) {
|
|
1817
|
+
r.value = m;
|
|
1805
1818
|
}
|
|
1806
|
-
|
|
1819
|
+
O(l, () => {
|
|
1807
1820
|
u != null && u.value ? i(!!(l != null && l.value)) : i(!1);
|
|
1808
1821
|
});
|
|
1809
|
-
const
|
|
1822
|
+
const d = x(() => ({
|
|
1810
1823
|
"input-group-text": !0,
|
|
1811
1824
|
"input-group-clear": !0
|
|
1812
|
-
})),
|
|
1825
|
+
})), c = x(() => ({
|
|
1813
1826
|
width: "24px",
|
|
1814
1827
|
display: r.value ? "flex" : "none"
|
|
1815
1828
|
}));
|
|
1816
|
-
function f(
|
|
1817
|
-
|
|
1829
|
+
function f(m) {
|
|
1830
|
+
m.stopPropagation(), o.value && (a("", !0), i(!r.value), n.emit("clear"));
|
|
1818
1831
|
}
|
|
1819
|
-
function
|
|
1820
|
-
o.value && !
|
|
1832
|
+
function p(m) {
|
|
1833
|
+
o.value && !s.value && i(!0);
|
|
1821
1834
|
}
|
|
1822
|
-
function v(
|
|
1835
|
+
function v(m) {
|
|
1823
1836
|
o.value && i(!1);
|
|
1824
1837
|
}
|
|
1825
|
-
return { clearButtonClass:
|
|
1838
|
+
return { clearButtonClass: d, clearButtonStyle: c, hasShownClearButton: r, onClearValue: f, onMouseEnter: p, onMouseLeave: v, shouldShowClearButton: o };
|
|
1826
1839
|
}
|
|
1827
|
-
const
|
|
1828
|
-
function
|
|
1840
|
+
const fr = ["moz", "ms", "webkit"];
|
|
1841
|
+
function vr() {
|
|
1829
1842
|
let e = 0;
|
|
1830
1843
|
return (n) => {
|
|
1831
1844
|
const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - e)), o = setTimeout(() => {
|
|
@@ -1834,65 +1847,65 @@ function pr() {
|
|
|
1834
1847
|
return e = t + r, o;
|
|
1835
1848
|
};
|
|
1836
1849
|
}
|
|
1837
|
-
function
|
|
1850
|
+
function yr() {
|
|
1838
1851
|
if (typeof window > "u")
|
|
1839
1852
|
return () => 0;
|
|
1840
1853
|
if (window.requestAnimationFrame)
|
|
1841
1854
|
return window.requestAnimationFrame.bind(window);
|
|
1842
|
-
const e =
|
|
1843
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
1855
|
+
const e = fr.filter((n) => `${n}RequestAnimationFrame` in window)[0];
|
|
1856
|
+
return e ? window[`${e}RequestAnimationFrame`] : vr();
|
|
1844
1857
|
}
|
|
1845
|
-
|
|
1846
|
-
function
|
|
1858
|
+
yr();
|
|
1859
|
+
function Qe(e, n) {
|
|
1847
1860
|
const t = y(e.groupText), r = x(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), o = x(() => e.enableClear || !!e.groupText);
|
|
1848
1861
|
return { appendedButtonClass: x(() => ({
|
|
1849
1862
|
"input-group-append": !0,
|
|
1850
1863
|
"append-force-show": r.value
|
|
1851
1864
|
})), appendedContent: t, shouldShowAppendedButton: o };
|
|
1852
1865
|
}
|
|
1853
|
-
function
|
|
1854
|
-
const { appendedContent: o } = r, a = y(e.enableViewPassword), l = x(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>',
|
|
1855
|
-
|
|
1856
|
-
l.value && (t.value = f ||
|
|
1866
|
+
function Xe(e, n, t, r) {
|
|
1867
|
+
const { appendedContent: o } = r, a = y(e.enableViewPassword), l = x(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', s = '<span class="f-icon f-icon-eye"></span>', i = y(!1);
|
|
1868
|
+
O(() => [e.readonly, e.disabled], ([f, p]) => {
|
|
1869
|
+
l.value && (t.value = f || p ? "password" : t.value, o.value = f || p ? s : o.value);
|
|
1857
1870
|
});
|
|
1858
|
-
function p() {
|
|
1859
|
-
return i.value = !i.value, t.value = i.value ? "text" : "password", o.value = i.value ? u : c, !1;
|
|
1860
|
-
}
|
|
1861
1871
|
function d() {
|
|
1862
|
-
t.value =
|
|
1872
|
+
return i.value = !i.value, t.value = i.value ? "text" : "password", o.value = i.value ? u : s, !1;
|
|
1873
|
+
}
|
|
1874
|
+
function c() {
|
|
1875
|
+
t.value = l.value ? "password" : "text", o.value = l.value ? a.value ? s : "" : o.value;
|
|
1863
1876
|
}
|
|
1864
|
-
return
|
|
1877
|
+
return c(), { isPassword: l, onClickAppendedButton: d };
|
|
1865
1878
|
}
|
|
1866
|
-
function
|
|
1879
|
+
function Ke(e, n, t) {
|
|
1867
1880
|
const r = y(), {
|
|
1868
1881
|
onBlurTextBox: o,
|
|
1869
1882
|
onFocusTextBox: a,
|
|
1870
1883
|
onInput: l,
|
|
1871
1884
|
onKeyDown: u,
|
|
1872
|
-
textBoxValue:
|
|
1873
|
-
} = t, i = x(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder),
|
|
1885
|
+
textBoxValue: s
|
|
1886
|
+
} = t, i = x(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = x(() => ({
|
|
1874
1887
|
"form-control": !0,
|
|
1875
1888
|
"f-utils-fill": !0
|
|
1876
|
-
})),
|
|
1889
|
+
})), c = x(() => ({
|
|
1877
1890
|
"text-align": e.textAlign
|
|
1878
1891
|
}));
|
|
1879
|
-
function f(
|
|
1880
|
-
|
|
1892
|
+
function f(m) {
|
|
1893
|
+
m.stopPropagation();
|
|
1881
1894
|
}
|
|
1882
|
-
function
|
|
1895
|
+
function p() {
|
|
1883
1896
|
e.selectOnCreated, e.focusOnCreated;
|
|
1884
1897
|
}
|
|
1885
|
-
async function v(
|
|
1886
|
-
a(
|
|
1898
|
+
async function v(m) {
|
|
1899
|
+
a(m), await je, p();
|
|
1887
1900
|
}
|
|
1888
1901
|
return H(async () => {
|
|
1889
|
-
await je,
|
|
1890
|
-
}), () =>
|
|
1902
|
+
await je, p();
|
|
1903
|
+
}), () => w("input", {
|
|
1891
1904
|
ref: r,
|
|
1892
|
-
class:
|
|
1893
|
-
style:
|
|
1905
|
+
class: d.value,
|
|
1906
|
+
style: c.value,
|
|
1894
1907
|
type: "text",
|
|
1895
|
-
value:
|
|
1908
|
+
value: s.value,
|
|
1896
1909
|
disabled: e.disabled,
|
|
1897
1910
|
readonly: e.readonly || !e.editable,
|
|
1898
1911
|
placeholder: i.value,
|
|
@@ -1913,213 +1926,213 @@ function Fe(e, n, t) {
|
|
|
1913
1926
|
"input-group-append": !0,
|
|
1914
1927
|
"btn-group": !0,
|
|
1915
1928
|
"btn-group-number": !0
|
|
1916
|
-
})),
|
|
1929
|
+
})), s = x(() => ({
|
|
1917
1930
|
btn: !0,
|
|
1918
1931
|
"btn-secondary": !0,
|
|
1919
1932
|
"btn-number-flag": !0
|
|
1920
1933
|
})), i = x(() => ({
|
|
1921
1934
|
cursor: o() ? "pointer" : "not-allowed",
|
|
1922
1935
|
"margin-left": 0
|
|
1923
|
-
})),
|
|
1936
|
+
})), d = x(() => ({
|
|
1924
1937
|
cursor: r() ? "pointer" : "not-allowed",
|
|
1925
1938
|
"margin-left": 0
|
|
1926
1939
|
}));
|
|
1927
|
-
return () =>
|
|
1940
|
+
return () => w("div", {
|
|
1928
1941
|
class: u.value
|
|
1929
|
-
}, [
|
|
1942
|
+
}, [w("button", {
|
|
1930
1943
|
title: "upButton",
|
|
1931
|
-
class:
|
|
1944
|
+
class: s.value,
|
|
1932
1945
|
style: i.value,
|
|
1933
1946
|
onClick: l,
|
|
1934
1947
|
disabled: !o()
|
|
1935
|
-
}, [
|
|
1948
|
+
}, [w("span", {
|
|
1936
1949
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
1937
|
-
}, null)]),
|
|
1950
|
+
}, null)]), w("button", {
|
|
1938
1951
|
title: "downButton",
|
|
1939
|
-
class:
|
|
1940
|
-
style:
|
|
1952
|
+
class: s.value,
|
|
1953
|
+
style: d.value,
|
|
1941
1954
|
onClick: a,
|
|
1942
1955
|
disabled: !r()
|
|
1943
|
-
}, [
|
|
1956
|
+
}, [w("span", {
|
|
1944
1957
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1945
1958
|
}, null)])]);
|
|
1946
1959
|
}
|
|
1947
|
-
function
|
|
1948
|
-
const t =
|
|
1960
|
+
function mr(e, n) {
|
|
1961
|
+
const t = un(e, n), r = sn(e, n, t), o = cn(e, n, r, t), a = dn(e, n, r, t, o), l = Fe(e, n, o), {
|
|
1949
1962
|
displayValue: u,
|
|
1950
|
-
modelValue:
|
|
1963
|
+
modelValue: s,
|
|
1951
1964
|
getRealValue: i
|
|
1952
|
-
} = t,
|
|
1953
|
-
format:
|
|
1965
|
+
} = t, d = Ke(e, n, a), {
|
|
1966
|
+
format: c
|
|
1954
1967
|
} = r, {
|
|
1955
1968
|
isFocus: f
|
|
1956
|
-
} = a,
|
|
1969
|
+
} = a, p = x(() => !e.disabled && !e.readonly);
|
|
1957
1970
|
return H(() => {
|
|
1958
1971
|
const v = i(e.modelValue);
|
|
1959
|
-
u.value =
|
|
1960
|
-
}),
|
|
1961
|
-
const
|
|
1962
|
-
|
|
1963
|
-
}),
|
|
1964
|
-
v !==
|
|
1965
|
-
}),
|
|
1966
|
-
u.value =
|
|
1967
|
-
}), () =>
|
|
1972
|
+
u.value = c(v);
|
|
1973
|
+
}), O(() => [e.value], ([v]) => {
|
|
1974
|
+
const m = i(v);
|
|
1975
|
+
s.value = m, u.value = c(m);
|
|
1976
|
+
}), O(() => [e.modelValue], ([v]) => {
|
|
1977
|
+
v !== s.value && (s.value = v, !f.value && (u.value = c(i(v))));
|
|
1978
|
+
}), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1979
|
+
u.value = c(s.value);
|
|
1980
|
+
}), () => w("div", {
|
|
1968
1981
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1969
|
-
}, [
|
|
1982
|
+
}, [d(), p.value && l()]);
|
|
1970
1983
|
}
|
|
1971
|
-
function
|
|
1984
|
+
function hr(e, n, t, r) {
|
|
1972
1985
|
const o = y(), a = y(e.autocomplete), l = y(e.enableTitle), {
|
|
1973
1986
|
isPassword: u
|
|
1974
|
-
} = t,
|
|
1975
|
-
disabled:
|
|
1987
|
+
} = t, s = y(e.minLength), i = y(e.maxLength), d = y(e.tabIndex), {
|
|
1988
|
+
disabled: c,
|
|
1976
1989
|
displayText: f,
|
|
1977
|
-
inputType:
|
|
1990
|
+
inputType: p,
|
|
1978
1991
|
onBlur: v,
|
|
1979
|
-
onFocus:
|
|
1980
|
-
onInput:
|
|
1981
|
-
onClick:
|
|
1982
|
-
onKeydown:
|
|
1983
|
-
onKeyup:
|
|
1984
|
-
onMousedown:
|
|
1985
|
-
onTextBoxValueChange:
|
|
1986
|
-
readonly:
|
|
1987
|
-
placeholder:
|
|
1988
|
-
textBoxClass:
|
|
1989
|
-
textBoxTitle:
|
|
1992
|
+
onFocus: m,
|
|
1993
|
+
onInput: b,
|
|
1994
|
+
onClick: S,
|
|
1995
|
+
onKeydown: E,
|
|
1996
|
+
onKeyup: k,
|
|
1997
|
+
onMousedown: C,
|
|
1998
|
+
onTextBoxValueChange: T,
|
|
1999
|
+
readonly: g,
|
|
2000
|
+
placeholder: F,
|
|
2001
|
+
textBoxClass: A,
|
|
2002
|
+
textBoxTitle: N
|
|
1990
2003
|
} = r;
|
|
1991
2004
|
return H(() => {
|
|
1992
2005
|
e.selectOnCreated, e.focusOnCreated;
|
|
1993
|
-
}), () =>
|
|
2006
|
+
}), () => w("input", {
|
|
1994
2007
|
ref: o,
|
|
1995
2008
|
name: "input-group-value",
|
|
1996
2009
|
autocomplete: a.value,
|
|
1997
|
-
class:
|
|
1998
|
-
disabled:
|
|
2010
|
+
class: A.value,
|
|
2011
|
+
disabled: c == null ? void 0 : c.value,
|
|
1999
2012
|
maxlength: i.value,
|
|
2000
|
-
minlength:
|
|
2001
|
-
placeholder:
|
|
2002
|
-
readonly:
|
|
2003
|
-
tabindex:
|
|
2004
|
-
title: l.value && !u.value ?
|
|
2005
|
-
type:
|
|
2013
|
+
minlength: s.value,
|
|
2014
|
+
placeholder: F.value,
|
|
2015
|
+
readonly: g == null ? void 0 : g.value,
|
|
2016
|
+
tabindex: d.value,
|
|
2017
|
+
title: l.value && !u.value ? N.value : "",
|
|
2018
|
+
type: p.value,
|
|
2006
2019
|
value: f == null ? void 0 : f.value,
|
|
2007
2020
|
onBlur: v,
|
|
2008
|
-
onClick:
|
|
2009
|
-
onChange:
|
|
2010
|
-
onFocus:
|
|
2011
|
-
onInput:
|
|
2012
|
-
onKeydown:
|
|
2013
|
-
onKeyup:
|
|
2014
|
-
onMousedown:
|
|
2021
|
+
onClick: S,
|
|
2022
|
+
onChange: T,
|
|
2023
|
+
onFocus: m,
|
|
2024
|
+
onInput: b,
|
|
2025
|
+
onKeydown: E,
|
|
2026
|
+
onKeyup: k,
|
|
2027
|
+
onMousedown: C
|
|
2015
2028
|
}, null);
|
|
2016
2029
|
}
|
|
2017
|
-
function
|
|
2018
|
-
const t = x(() => e.useExtendInfo && !!e.extendInfo), r =
|
|
2030
|
+
function br(e, n) {
|
|
2031
|
+
const t = x(() => e.useExtendInfo && !!e.extendInfo), r = tn({
|
|
2019
2032
|
content: e.extendInfo
|
|
2020
2033
|
});
|
|
2021
2034
|
function o() {
|
|
2022
2035
|
n.emit("updateExtendInfo");
|
|
2023
2036
|
}
|
|
2024
|
-
return () => t.value && me(
|
|
2037
|
+
return () => t.value && me(w("span", {
|
|
2025
2038
|
class: "input-group-before-tips",
|
|
2026
2039
|
onMouseenter: o
|
|
2027
|
-
}, [
|
|
2040
|
+
}, [w("i", {
|
|
2028
2041
|
class: "f-icon f-icon-info-circle"
|
|
2029
|
-
}, null),
|
|
2042
|
+
}, null), w("b", {
|
|
2030
2043
|
class: "tips-arrow"
|
|
2031
|
-
}, null)]), [[
|
|
2044
|
+
}, null)]), [[nn("tooltip"), r]]);
|
|
2032
2045
|
}
|
|
2033
|
-
function
|
|
2046
|
+
function et(e, n, t, r, o) {
|
|
2034
2047
|
const {
|
|
2035
2048
|
appendedButtonClass: a,
|
|
2036
2049
|
appendedContent: l
|
|
2037
|
-
} = t, u = x(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled),
|
|
2038
|
-
clearButtonClass:
|
|
2039
|
-
clearButtonStyle:
|
|
2050
|
+
} = t, u = x(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), s = x(() => l.value && !n.slots.groupTextTemplate), i = x(() => !!n.slots.groupTextTemplate), {
|
|
2051
|
+
clearButtonClass: d,
|
|
2052
|
+
clearButtonStyle: c,
|
|
2040
2053
|
onClearValue: f,
|
|
2041
|
-
shouldShowClearButton:
|
|
2054
|
+
shouldShowClearButton: p
|
|
2042
2055
|
} = r;
|
|
2043
2056
|
function v() {
|
|
2044
|
-
return
|
|
2057
|
+
return w("span", {
|
|
2045
2058
|
id: "clearIcon",
|
|
2046
|
-
class:
|
|
2047
|
-
style:
|
|
2048
|
-
onClick: (
|
|
2049
|
-
}, [
|
|
2059
|
+
class: d.value,
|
|
2060
|
+
style: c.value,
|
|
2061
|
+
onClick: (F) => f(F)
|
|
2062
|
+
}, [w("i", {
|
|
2050
2063
|
class: "f-icon modal_close"
|
|
2051
2064
|
}, null)]);
|
|
2052
2065
|
}
|
|
2053
|
-
function
|
|
2054
|
-
n.emit("iconMouseEnter",
|
|
2066
|
+
function m(F) {
|
|
2067
|
+
n.emit("iconMouseEnter", F);
|
|
2055
2068
|
}
|
|
2056
|
-
function
|
|
2057
|
-
n.emit("iconMouseLeave",
|
|
2069
|
+
function b(F) {
|
|
2070
|
+
n.emit("iconMouseLeave", F);
|
|
2058
2071
|
}
|
|
2059
|
-
function
|
|
2072
|
+
function S(F) {
|
|
2060
2073
|
u.value && n.emit("clickHandle", {
|
|
2061
|
-
originalEvent:
|
|
2062
|
-
}),
|
|
2074
|
+
originalEvent: F
|
|
2075
|
+
}), F.stopPropagation();
|
|
2063
2076
|
}
|
|
2064
|
-
const
|
|
2065
|
-
function
|
|
2066
|
-
return
|
|
2077
|
+
const E = e.type === "password" ? o.onClickAppendedButton : S;
|
|
2078
|
+
function k() {
|
|
2079
|
+
return w("span", {
|
|
2067
2080
|
class: "input-group-text",
|
|
2068
|
-
onMouseenter: (
|
|
2069
|
-
onMouseleave: (
|
|
2081
|
+
onMouseenter: (F) => m(F),
|
|
2082
|
+
onMouseleave: (F) => b(F),
|
|
2070
2083
|
innerHTML: l.value,
|
|
2071
|
-
onClick: (
|
|
2084
|
+
onClick: (F) => E(F)
|
|
2072
2085
|
}, null);
|
|
2073
2086
|
}
|
|
2074
|
-
function
|
|
2087
|
+
function C() {
|
|
2075
2088
|
return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
|
|
2076
2089
|
}
|
|
2077
|
-
function
|
|
2078
|
-
return
|
|
2090
|
+
function T() {
|
|
2091
|
+
return s.value ? k : i.value ? C : "";
|
|
2079
2092
|
}
|
|
2080
|
-
const
|
|
2081
|
-
return () =>
|
|
2093
|
+
const g = T();
|
|
2094
|
+
return () => w("div", {
|
|
2082
2095
|
class: a.value
|
|
2083
|
-
}, [
|
|
2096
|
+
}, [p.value && v(), g && g()]);
|
|
2084
2097
|
}
|
|
2085
|
-
const ee = /* @__PURE__ */
|
|
2098
|
+
const ee = /* @__PURE__ */ W({
|
|
2086
2099
|
name: "FInputGroup",
|
|
2087
2100
|
props: Be,
|
|
2088
2101
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2089
2102
|
setup(e, n) {
|
|
2090
|
-
const t = y(e.modelValue), r = y(e.modelValue), o =
|
|
2103
|
+
const t = y(e.modelValue), r = y(e.modelValue), o = dr(e, n, t, r), {
|
|
2091
2104
|
inputGroupClass: a,
|
|
2092
2105
|
inputType: l,
|
|
2093
2106
|
inputGroupStyle: u
|
|
2094
|
-
} = o,
|
|
2107
|
+
} = o, s = Qe(e), {
|
|
2095
2108
|
shouldShowAppendedButton: i
|
|
2096
|
-
} =
|
|
2097
|
-
onMouseEnter:
|
|
2109
|
+
} = s, d = Je(e, n, o), {
|
|
2110
|
+
onMouseEnter: c,
|
|
2098
2111
|
onMouseLeave: f
|
|
2099
|
-
} =
|
|
2100
|
-
|
|
2101
|
-
t.value =
|
|
2102
|
-
}),
|
|
2103
|
-
t.value =
|
|
2112
|
+
} = d, p = Xe(e, n, l, s), v = mr(e, n), m = hr(e, n, p, o), b = et(e, n, s, d, p), S = br(e, n), E = x(() => e.type === "number");
|
|
2113
|
+
O(() => [e.value], ([C]) => {
|
|
2114
|
+
t.value = C, r.value = C;
|
|
2115
|
+
}), O(() => [e.modelValue], ([C]) => {
|
|
2116
|
+
t.value = C, r.value = C;
|
|
2104
2117
|
}), H(() => {
|
|
2105
2118
|
e.value && (t.value = e.value, r.value = e.value);
|
|
2106
2119
|
});
|
|
2107
|
-
const
|
|
2120
|
+
const k = () => w(he, null, [w("div", {
|
|
2108
2121
|
id: "inputGroup",
|
|
2109
2122
|
class: a.value,
|
|
2110
2123
|
style: u.value,
|
|
2111
|
-
onMouseenter:
|
|
2124
|
+
onMouseenter: c,
|
|
2112
2125
|
onMouseleave: f
|
|
2113
|
-
}, [
|
|
2114
|
-
return () =>
|
|
2126
|
+
}, [E.value ? v() : w(he, null, [S(), m(), i.value && b()])])]);
|
|
2127
|
+
return () => k();
|
|
2115
2128
|
}
|
|
2116
2129
|
});
|
|
2117
|
-
class
|
|
2130
|
+
class gr extends Ve {
|
|
2118
2131
|
constructor(n, t) {
|
|
2119
2132
|
super(n, t);
|
|
2120
2133
|
}
|
|
2121
2134
|
}
|
|
2122
|
-
function
|
|
2135
|
+
function Sr(e, n) {
|
|
2123
2136
|
const {
|
|
2124
2137
|
canAccepts: t,
|
|
2125
2138
|
checkCanDeleteComponent: r,
|
|
@@ -2127,11 +2140,11 @@ function br(e, n) {
|
|
|
2127
2140
|
hideNestedPaddingInDesginerView: a,
|
|
2128
2141
|
onAcceptMovedChildElement: l,
|
|
2129
2142
|
resolveComponentContext: u,
|
|
2130
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2143
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
2131
2144
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2132
|
-
} = xe(e),
|
|
2133
|
-
function
|
|
2134
|
-
return new
|
|
2145
|
+
} = xe(e), d = e.schema;
|
|
2146
|
+
function c(f, p) {
|
|
2147
|
+
return new gr(f, n).getPropertyConfig(d, p);
|
|
2135
2148
|
}
|
|
2136
2149
|
return {
|
|
2137
2150
|
canAccepts: t,
|
|
@@ -2140,13 +2153,13 @@ function br(e, n) {
|
|
|
2140
2153
|
hideNestedPaddingInDesginerView: a,
|
|
2141
2154
|
onAcceptMovedChildElement: l,
|
|
2142
2155
|
resolveComponentContext: u,
|
|
2143
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2156
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
2144
2157
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
2145
|
-
getPropsConfig:
|
|
2158
|
+
getPropsConfig: c
|
|
2146
2159
|
};
|
|
2147
2160
|
}
|
|
2148
|
-
function
|
|
2149
|
-
var
|
|
2161
|
+
function tt(e, n, t) {
|
|
2162
|
+
var T;
|
|
2150
2163
|
function r() {
|
|
2151
2164
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
2152
2165
|
}
|
|
@@ -2155,129 +2168,129 @@ function nt(e, n, t) {
|
|
|
2155
2168
|
function u() {
|
|
2156
2169
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
2157
2170
|
}
|
|
2158
|
-
function
|
|
2171
|
+
function s() {
|
|
2159
2172
|
return !1;
|
|
2160
2173
|
}
|
|
2161
2174
|
function i() {
|
|
2162
2175
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
2163
2176
|
}
|
|
2164
|
-
function
|
|
2177
|
+
function d() {
|
|
2165
2178
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
2166
2179
|
}
|
|
2167
|
-
function
|
|
2168
|
-
if (!
|
|
2180
|
+
function c(g) {
|
|
2181
|
+
if (!g || !g.value)
|
|
2169
2182
|
return null;
|
|
2170
|
-
if (
|
|
2171
|
-
return
|
|
2172
|
-
const
|
|
2173
|
-
return
|
|
2183
|
+
if (g.value.schema && g.value.schema.type === "component")
|
|
2184
|
+
return g.value;
|
|
2185
|
+
const F = y(g == null ? void 0 : g.value.parent), A = c(F);
|
|
2186
|
+
return A || null;
|
|
2174
2187
|
}
|
|
2175
|
-
function f(
|
|
2176
|
-
const { componentInstance:
|
|
2177
|
-
return !
|
|
2188
|
+
function f(g = n) {
|
|
2189
|
+
const { componentInstance: F, designerItemElementRef: A } = g;
|
|
2190
|
+
return !F || !F.value ? null : F.value.canMove ? A : f(g.parent);
|
|
2178
2191
|
}
|
|
2179
|
-
function
|
|
2180
|
-
return !!t && t.canAccepts(
|
|
2192
|
+
function p(g) {
|
|
2193
|
+
return !!t && t.canAccepts(g);
|
|
2181
2194
|
}
|
|
2182
2195
|
function v() {
|
|
2183
2196
|
return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
|
|
2184
2197
|
}
|
|
2185
|
-
function
|
|
2198
|
+
function m() {
|
|
2186
2199
|
}
|
|
2187
|
-
function
|
|
2188
|
-
|
|
2200
|
+
function b(g, F) {
|
|
2201
|
+
F && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(F);
|
|
2189
2202
|
}
|
|
2190
|
-
function
|
|
2191
|
-
const { componentType:
|
|
2192
|
-
let
|
|
2193
|
-
t && t.onResolveNewComponentSchema && (
|
|
2194
|
-
const
|
|
2195
|
-
return
|
|
2203
|
+
function S(g, F) {
|
|
2204
|
+
const { componentType: A } = g;
|
|
2205
|
+
let N = be(A, g, F);
|
|
2206
|
+
t && t.onResolveNewComponentSchema && (N = t.onResolveNewComponentSchema(g, N));
|
|
2207
|
+
const q = A.toLowerCase().replace("-", "_");
|
|
2208
|
+
return N && !N.id && N.type === A && (N.id = `${q}_${Math.random().toString().slice(2, 6)}`), N;
|
|
2196
2209
|
}
|
|
2197
|
-
function
|
|
2198
|
-
const
|
|
2199
|
-
|
|
2200
|
-
let _ = be(
|
|
2201
|
-
t && t.onAcceptNewChildElement && (_ = t.onAcceptNewChildElement(
|
|
2202
|
-
const K =
|
|
2203
|
-
return _ && !_.id && _.type ===
|
|
2210
|
+
function E(g, F) {
|
|
2211
|
+
const A = String(g.getAttribute("data-controltype")), N = g.getAttribute("data-feature"), q = N ? JSON.parse(N) : {};
|
|
2212
|
+
q.parentComponentInstance = l.value;
|
|
2213
|
+
let _ = be(A, q);
|
|
2214
|
+
t && t.onAcceptNewChildElement && (_ = t.onAcceptNewChildElement(g, F, _));
|
|
2215
|
+
const K = A.toLowerCase().replace("-", "_");
|
|
2216
|
+
return _ && !_.id && _.type === A && (_.id = `${K}_${Math.random().toString().slice(2, 6)}`), _;
|
|
2204
2217
|
}
|
|
2205
|
-
function
|
|
2218
|
+
function k(g) {
|
|
2206
2219
|
}
|
|
2207
|
-
function
|
|
2220
|
+
function C(...g) {
|
|
2208
2221
|
if (t && t.getPropsConfig)
|
|
2209
|
-
return t.getPropsConfig(...
|
|
2222
|
+
return t.getPropsConfig(...g);
|
|
2210
2223
|
}
|
|
2211
2224
|
return l.value = {
|
|
2212
2225
|
canMove: u(),
|
|
2213
|
-
canSelectParent:
|
|
2226
|
+
canSelectParent: s(),
|
|
2214
2227
|
canDelete: i(),
|
|
2215
|
-
canNested: !
|
|
2228
|
+
canNested: !d(),
|
|
2216
2229
|
contents: n == null ? void 0 : n.schema.contents,
|
|
2217
2230
|
elementRef: e,
|
|
2218
|
-
parent: (
|
|
2231
|
+
parent: (T = n == null ? void 0 : n.parent) == null ? void 0 : T.componentInstance,
|
|
2219
2232
|
schema: n == null ? void 0 : n.schema,
|
|
2220
2233
|
styles: o,
|
|
2221
2234
|
designerClass: a,
|
|
2222
|
-
canAccepts:
|
|
2223
|
-
getBelongedComponentInstance:
|
|
2235
|
+
canAccepts: p,
|
|
2236
|
+
getBelongedComponentInstance: c,
|
|
2224
2237
|
getDraggableDesignItemElement: f,
|
|
2225
2238
|
getDraggingDisplayText: v,
|
|
2226
|
-
getPropConfig:
|
|
2227
|
-
getDragScopeElement:
|
|
2228
|
-
onAcceptMovedChildElement:
|
|
2229
|
-
onAcceptNewChildElement:
|
|
2230
|
-
onChildElementMovedOut:
|
|
2231
|
-
addNewChildComponentSchema:
|
|
2239
|
+
getPropConfig: C,
|
|
2240
|
+
getDragScopeElement: m,
|
|
2241
|
+
onAcceptMovedChildElement: b,
|
|
2242
|
+
onAcceptNewChildElement: E,
|
|
2243
|
+
onChildElementMovedOut: k,
|
|
2244
|
+
addNewChildComponentSchema: S,
|
|
2232
2245
|
updateDragAndDropRules: r,
|
|
2233
2246
|
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || y(!1),
|
|
2234
2247
|
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || y(!1)
|
|
2235
2248
|
}, l;
|
|
2236
2249
|
}
|
|
2237
|
-
const
|
|
2250
|
+
const wr = /* @__PURE__ */ W({
|
|
2238
2251
|
name: "FInputGroupDesign",
|
|
2239
2252
|
props: Be,
|
|
2240
2253
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
2241
2254
|
setup(e, n) {
|
|
2242
|
-
const t = y(e.modelValue), r = y(e.modelValue), o =
|
|
2255
|
+
const t = y(e.modelValue), r = y(e.modelValue), o = pr(e, n, t, r), {
|
|
2243
2256
|
inputGroupClass: a,
|
|
2244
2257
|
inputType: l,
|
|
2245
2258
|
inputGroupStyle: u
|
|
2246
|
-
} = o,
|
|
2259
|
+
} = o, s = Qe(e), {
|
|
2247
2260
|
shouldShowAppendedButton: i
|
|
2248
|
-
} =
|
|
2249
|
-
onMouseEnter:
|
|
2261
|
+
} = s, d = Je(e, n, o), {
|
|
2262
|
+
onMouseEnter: c,
|
|
2250
2263
|
onMouseLeave: f
|
|
2251
|
-
} =
|
|
2264
|
+
} = d, p = Xe(e, n, l, s), v = y(), m = Q("designer-host-service"), b = Q("design-item-context"), S = Sr(b, m), E = tt(v, b, S);
|
|
2252
2265
|
H(() => {
|
|
2253
|
-
v.value.componentInstance =
|
|
2254
|
-
}), n.expose(
|
|
2255
|
-
const
|
|
2256
|
-
return () =>
|
|
2266
|
+
v.value.componentInstance = E;
|
|
2267
|
+
}), n.expose(E.value);
|
|
2268
|
+
const k = et(e, n, s, d, p), C = y();
|
|
2269
|
+
return () => w("div", {
|
|
2257
2270
|
id: "inputGroup",
|
|
2258
2271
|
ref: v,
|
|
2259
2272
|
class: a.value,
|
|
2260
2273
|
style: u.value,
|
|
2261
|
-
onMouseenter:
|
|
2274
|
+
onMouseenter: c,
|
|
2262
2275
|
onMouseleave: f
|
|
2263
|
-
}, [
|
|
2264
|
-
ref:
|
|
2276
|
+
}, [w("input", {
|
|
2277
|
+
ref: C,
|
|
2265
2278
|
class: "form-control",
|
|
2266
2279
|
readonly: !0,
|
|
2267
2280
|
placeholder: e.placeholder
|
|
2268
|
-
}, null), i.value &&
|
|
2281
|
+
}, null), i.value && k()]);
|
|
2269
2282
|
}
|
|
2270
2283
|
});
|
|
2271
2284
|
ee.register = (e, n, t, r) => {
|
|
2272
|
-
e["input-group"] = ee, n["input-group"] =
|
|
2285
|
+
e["input-group"] = ee, n["input-group"] = Ze;
|
|
2273
2286
|
};
|
|
2274
2287
|
ee.registerDesigner = (e, n, t) => {
|
|
2275
|
-
e["input-group"] =
|
|
2288
|
+
e["input-group"] = wr, n["input-group"] = Ze;
|
|
2276
2289
|
};
|
|
2277
2290
|
Te(ee);
|
|
2278
|
-
const
|
|
2291
|
+
const Cr = /* @__PURE__ */ new Map([
|
|
2279
2292
|
["appearance", de]
|
|
2280
|
-
]),
|
|
2293
|
+
]), xr = "https://json-schema.org/draft/2020-12/schema", Vr = "https://farris-design.gitee.io/number-spinner.schema.json", Tr = "number-spinner", Br = "A Farris Input Component", Fr = "object", Mr = {
|
|
2281
2294
|
id: {
|
|
2282
2295
|
description: "The unique identifier for a number spinner",
|
|
2283
2296
|
type: "string"
|
|
@@ -2378,19 +2391,24 @@ const Sr = /* @__PURE__ */ new Map([
|
|
|
2378
2391
|
type: "sting",
|
|
2379
2392
|
default: ""
|
|
2380
2393
|
}
|
|
2381
|
-
},
|
|
2394
|
+
}, kr = [
|
|
2382
2395
|
"id",
|
|
2383
2396
|
"type"
|
|
2384
|
-
],
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2397
|
+
], Er = [
|
|
2398
|
+
"id",
|
|
2399
|
+
"appearance",
|
|
2400
|
+
"binding"
|
|
2401
|
+
], Ar = {
|
|
2402
|
+
$schema: xr,
|
|
2403
|
+
$id: Vr,
|
|
2404
|
+
title: Tr,
|
|
2405
|
+
description: Br,
|
|
2406
|
+
type: Fr,
|
|
2407
|
+
properties: Mr,
|
|
2408
|
+
required: kr,
|
|
2409
|
+
ignore: Er
|
|
2392
2410
|
};
|
|
2393
|
-
function
|
|
2411
|
+
function Pr(e, n, t) {
|
|
2394
2412
|
return n;
|
|
2395
2413
|
}
|
|
2396
2414
|
const Me = {
|
|
@@ -2497,41 +2515,41 @@ const Me = {
|
|
|
2497
2515
|
* 作为内嵌编辑器被创建后默认选中文本
|
|
2498
2516
|
*/
|
|
2499
2517
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
2500
|
-
},
|
|
2501
|
-
function
|
|
2502
|
-
const { format: o } = t, { displayValue: a, getRealValue: l, modelValue: u, onNumberValueChanged:
|
|
2518
|
+
}, nt = ce(Me, Ar, Cr, Pr);
|
|
2519
|
+
function rt(e, n, t, r) {
|
|
2520
|
+
const { format: o } = t, { displayValue: a, getRealValue: l, modelValue: u, onNumberValueChanged: s } = r;
|
|
2503
2521
|
function i() {
|
|
2504
|
-
const
|
|
2505
|
-
return !(e.max && !new
|
|
2522
|
+
const b = new L(u.value || 0);
|
|
2523
|
+
return !(e.max && !new L(e.max).isNaN() && b.gte(new L(e.max)));
|
|
2506
2524
|
}
|
|
2507
|
-
function
|
|
2508
|
-
const
|
|
2509
|
-
return !(e.min && !new
|
|
2525
|
+
function d() {
|
|
2526
|
+
const b = new L(u.value || 0);
|
|
2527
|
+
return !(e.min && !new L(e.min).isNaN() && b.lte(new L(e.min)));
|
|
2510
2528
|
}
|
|
2511
|
-
function
|
|
2529
|
+
function c(b) {
|
|
2512
2530
|
if (e.readonly || e.disabled)
|
|
2513
2531
|
return;
|
|
2514
|
-
const
|
|
2515
|
-
if (
|
|
2516
|
-
const
|
|
2517
|
-
a.value = o(
|
|
2532
|
+
const S = b === "up" ? i : d, E = b === "up" ? "plus" : "minus";
|
|
2533
|
+
if (S()) {
|
|
2534
|
+
const C = new L(u.value || 0)[E](Number(e.step)), T = C.toFixed();
|
|
2535
|
+
a.value = o(T), s(l(C));
|
|
2518
2536
|
}
|
|
2519
2537
|
}
|
|
2520
2538
|
function f() {
|
|
2521
|
-
|
|
2539
|
+
c("up");
|
|
2522
2540
|
}
|
|
2523
|
-
function
|
|
2524
|
-
|
|
2541
|
+
function p() {
|
|
2542
|
+
c("down");
|
|
2525
2543
|
}
|
|
2526
|
-
function v(
|
|
2527
|
-
f(),
|
|
2544
|
+
function v(b) {
|
|
2545
|
+
f(), b.stopPropagation();
|
|
2528
2546
|
}
|
|
2529
|
-
function
|
|
2530
|
-
|
|
2547
|
+
function m(b) {
|
|
2548
|
+
p(), b.stopPropagation();
|
|
2531
2549
|
}
|
|
2532
|
-
return { canDownward:
|
|
2550
|
+
return { canDownward: d, canUpward: i, downward: p, onClickDownButton: m, onClickUpButton: v, upward: f };
|
|
2533
2551
|
}
|
|
2534
|
-
function
|
|
2552
|
+
function ot(e, n, t) {
|
|
2535
2553
|
const r = x(() => ({
|
|
2536
2554
|
prefix: e.prefix,
|
|
2537
2555
|
suffix: e.suffix,
|
|
@@ -2542,107 +2560,107 @@ function at(e, n, t) {
|
|
|
2542
2560
|
function l(i) {
|
|
2543
2561
|
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;
|
|
2544
2562
|
}
|
|
2545
|
-
function u(i,
|
|
2546
|
-
return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value,
|
|
2563
|
+
function u(i, d) {
|
|
2564
|
+
return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value, d) : i.toFormat(d);
|
|
2547
2565
|
}
|
|
2548
|
-
function
|
|
2549
|
-
const
|
|
2566
|
+
function s(i) {
|
|
2567
|
+
const d = l(i), c = new L(d, 10), f = o(c);
|
|
2550
2568
|
return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : u(f, r.value);
|
|
2551
2569
|
}
|
|
2552
|
-
return { cleanFormat: l, format:
|
|
2570
|
+
return { cleanFormat: l, format: s };
|
|
2553
2571
|
}
|
|
2554
|
-
function
|
|
2572
|
+
function at(e, n) {
|
|
2555
2573
|
const t = y(""), r = y(e.modelValue), o = x(() => Number(e.precision) || 0);
|
|
2556
|
-
function a(
|
|
2557
|
-
return
|
|
2574
|
+
function a(d) {
|
|
2575
|
+
return d.toFixed(o.value);
|
|
2558
2576
|
}
|
|
2559
|
-
function l(
|
|
2560
|
-
return isNaN(
|
|
2577
|
+
function l(d) {
|
|
2578
|
+
return isNaN(d) || d === null || d === void 0 || d === "";
|
|
2561
2579
|
}
|
|
2562
|
-
function u(
|
|
2563
|
-
const
|
|
2564
|
-
return
|
|
2580
|
+
function u(d) {
|
|
2581
|
+
const c = l(e.max) ? null : new L(String(e.max), 10), f = l(e.min) ? null : new L(String(e.min), 10);
|
|
2582
|
+
return c && d.gt(c) ? c : f && d.lt(f) ? f : d;
|
|
2565
2583
|
}
|
|
2566
|
-
function
|
|
2584
|
+
function s(d) {
|
|
2567
2585
|
if (e.parser)
|
|
2568
|
-
return isNaN(Number(
|
|
2569
|
-
let
|
|
2570
|
-
if (
|
|
2586
|
+
return isNaN(Number(d)) ? e.parser(d) : d;
|
|
2587
|
+
let c = u(new L(d, 10));
|
|
2588
|
+
if (c.isNaN()) {
|
|
2571
2589
|
if (e.canNull)
|
|
2572
2590
|
return null;
|
|
2573
|
-
const
|
|
2574
|
-
if (!
|
|
2575
|
-
|
|
2591
|
+
const p = new L("" + e.min, 10), v = new L("" + e.max, 10);
|
|
2592
|
+
if (!p.isNaN())
|
|
2593
|
+
c = p;
|
|
2576
2594
|
else if (!v.isNaN())
|
|
2577
|
-
|
|
2595
|
+
c = v;
|
|
2578
2596
|
else
|
|
2579
2597
|
return 0;
|
|
2580
2598
|
}
|
|
2581
|
-
return a(
|
|
2599
|
+
return a(c);
|
|
2582
2600
|
}
|
|
2583
|
-
function i(
|
|
2584
|
-
const
|
|
2585
|
-
r.value =
|
|
2601
|
+
function i(d) {
|
|
2602
|
+
const c = Number(d);
|
|
2603
|
+
r.value = c, n.emit("update:modelValue", c), n.emit("valueChange", c), n.emit("change", c);
|
|
2586
2604
|
}
|
|
2587
|
-
return { displayValue: t, getRealValue:
|
|
2605
|
+
return { displayValue: t, getRealValue: s, modelValue: r, isEmpty: l, onNumberValueChanged: i, precision: o, getValidNumberObject: u };
|
|
2588
2606
|
}
|
|
2589
|
-
function
|
|
2590
|
-
const { cleanFormat: a, format: l } = t, { displayValue: u, getRealValue:
|
|
2591
|
-
function
|
|
2592
|
-
var
|
|
2593
|
-
if (
|
|
2607
|
+
function Nr(e, n, t, r, o) {
|
|
2608
|
+
const { cleanFormat: a, format: l } = t, { displayValue: u, getRealValue: s, modelValue: i, isEmpty: d, onNumberValueChanged: c } = r, { downward: f, upward: p } = o, v = y(!1), m = x(() => u.value);
|
|
2609
|
+
function b(C) {
|
|
2610
|
+
var F;
|
|
2611
|
+
if (C.stopPropagation(), v.value = !1, e.readonly || e.disabled)
|
|
2594
2612
|
return;
|
|
2595
|
-
let
|
|
2596
|
-
e.canNull || (
|
|
2597
|
-
const
|
|
2598
|
-
u.value = l(
|
|
2599
|
-
}
|
|
2600
|
-
function C
|
|
2601
|
-
|
|
2602
|
-
}
|
|
2603
|
-
function
|
|
2604
|
-
var
|
|
2605
|
-
|
|
2606
|
-
let
|
|
2607
|
-
e.canNull || (
|
|
2608
|
-
const
|
|
2609
|
-
u.value =
|
|
2610
|
-
}
|
|
2611
|
-
function
|
|
2612
|
-
|
|
2613
|
-
}
|
|
2614
|
-
return { textBoxValue:
|
|
2613
|
+
let T = (F = C.target) == null ? void 0 : F.value;
|
|
2614
|
+
e.canNull || (T = T || 0);
|
|
2615
|
+
const g = a(T);
|
|
2616
|
+
u.value = l(g), c(s(g)), n.emit("blur", { event: C, formatted: u.value, value: i.value });
|
|
2617
|
+
}
|
|
2618
|
+
function S(C) {
|
|
2619
|
+
C.stopPropagation(), v.value = !0, !(e.readonly || e.disabled) && (u.value = d(i.value) || !e.showZero && i.value === "0" ? "" : String(i.value), n.emit("focus", { event: C, formatted: u.value, value: i.value }));
|
|
2620
|
+
}
|
|
2621
|
+
function E(C) {
|
|
2622
|
+
var F;
|
|
2623
|
+
C.stopPropagation();
|
|
2624
|
+
let T = (F = C.target) == null ? void 0 : F.value;
|
|
2625
|
+
e.canNull || (T = T || 0);
|
|
2626
|
+
const g = a(T);
|
|
2627
|
+
u.value = g, c(s(g));
|
|
2628
|
+
}
|
|
2629
|
+
function k(C) {
|
|
2630
|
+
C.key === "ArrowDown" && (C.preventDefault(), f()), C.key === "ArrowUp" && (C.preventDefault(), p()), C.stopPropagation();
|
|
2631
|
+
}
|
|
2632
|
+
return { textBoxValue: m, onBlurTextBox: b, onFocusTextBox: S, onInput: E, onKeyDown: k, isFocus: v };
|
|
2615
2633
|
}
|
|
2616
|
-
const te = /* @__PURE__ */
|
|
2634
|
+
const te = /* @__PURE__ */ W({
|
|
2617
2635
|
name: "FNumberSpinner",
|
|
2618
2636
|
props: Me,
|
|
2619
2637
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
2620
2638
|
setup(e, n) {
|
|
2621
|
-
const t =
|
|
2639
|
+
const t = at(e, n), r = ot(e, n, t), o = rt(e, n, r, t), a = Nr(e, n, r, t, o), l = Fe(e, n, o), {
|
|
2622
2640
|
displayValue: u,
|
|
2623
|
-
modelValue:
|
|
2641
|
+
modelValue: s,
|
|
2624
2642
|
getRealValue: i
|
|
2625
|
-
} = t,
|
|
2626
|
-
format:
|
|
2643
|
+
} = t, d = Ke(e, n, a), {
|
|
2644
|
+
format: c
|
|
2627
2645
|
} = r, {
|
|
2628
2646
|
isFocus: f
|
|
2629
|
-
} = a,
|
|
2647
|
+
} = a, p = x(() => !e.disabled && !e.readonly && e.showButton);
|
|
2630
2648
|
return H(() => {
|
|
2631
2649
|
const v = i(e.modelValue);
|
|
2632
|
-
u.value =
|
|
2633
|
-
}),
|
|
2634
|
-
const
|
|
2635
|
-
|
|
2636
|
-
}),
|
|
2637
|
-
v !==
|
|
2638
|
-
}),
|
|
2639
|
-
u.value =
|
|
2640
|
-
}), () =>
|
|
2650
|
+
u.value = c(v);
|
|
2651
|
+
}), O(() => [e.value], ([v]) => {
|
|
2652
|
+
const m = i(v);
|
|
2653
|
+
s.value = m, u.value = c(m);
|
|
2654
|
+
}), O(() => [e.modelValue], ([v]) => {
|
|
2655
|
+
v !== s.value && (s.value = v, !f.value && (u.value = c(i(v))));
|
|
2656
|
+
}), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2657
|
+
u.value = c(s.value);
|
|
2658
|
+
}), () => w("div", {
|
|
2641
2659
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2642
|
-
}, [
|
|
2660
|
+
}, [d(), p.value && l()]);
|
|
2643
2661
|
}
|
|
2644
2662
|
});
|
|
2645
|
-
class
|
|
2663
|
+
class Or extends Ve {
|
|
2646
2664
|
constructor(n, t) {
|
|
2647
2665
|
super(n, t);
|
|
2648
2666
|
}
|
|
@@ -2675,7 +2693,7 @@ class Ar extends Ve {
|
|
|
2675
2693
|
});
|
|
2676
2694
|
}
|
|
2677
2695
|
}
|
|
2678
|
-
function
|
|
2696
|
+
function Ir(e, n) {
|
|
2679
2697
|
const {
|
|
2680
2698
|
canAccepts: t,
|
|
2681
2699
|
checkCanDeleteComponent: r,
|
|
@@ -2683,11 +2701,11 @@ function Pr(e, n) {
|
|
|
2683
2701
|
hideNestedPaddingInDesginerView: a,
|
|
2684
2702
|
onAcceptMovedChildElement: l,
|
|
2685
2703
|
resolveComponentContext: u,
|
|
2686
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2704
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
2687
2705
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2688
|
-
} = xe(e),
|
|
2689
|
-
function
|
|
2690
|
-
return new
|
|
2706
|
+
} = xe(e), d = e.schema;
|
|
2707
|
+
function c(f, p) {
|
|
2708
|
+
return new Or(f, n).getPropertyConfig(d, p);
|
|
2691
2709
|
}
|
|
2692
2710
|
return {
|
|
2693
2711
|
canAccepts: t,
|
|
@@ -2696,26 +2714,26 @@ function Pr(e, n) {
|
|
|
2696
2714
|
hideNestedPaddingInDesginerView: a,
|
|
2697
2715
|
onAcceptMovedChildElement: l,
|
|
2698
2716
|
resolveComponentContext: u,
|
|
2699
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2717
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
2700
2718
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
2701
|
-
getPropsConfig:
|
|
2719
|
+
getPropsConfig: c
|
|
2702
2720
|
};
|
|
2703
2721
|
}
|
|
2704
|
-
const
|
|
2722
|
+
const jr = /* @__PURE__ */ W({
|
|
2705
2723
|
name: "FNumberSpinnerDesign",
|
|
2706
2724
|
props: Me,
|
|
2707
2725
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
2708
2726
|
setup(e, n) {
|
|
2709
|
-
const t =
|
|
2727
|
+
const t = at(e, n), r = ot(e, n, t), o = rt(e, n, r, t), a = Fe(e, n, o), l = y(), u = Q("designer-host-service"), s = Q("design-item-context"), i = Ir(s, u), d = tt(l, s, i);
|
|
2710
2728
|
H(() => {
|
|
2711
|
-
l.value.componentInstance =
|
|
2712
|
-
}), n.expose(
|
|
2713
|
-
const
|
|
2714
|
-
return () =>
|
|
2729
|
+
l.value.componentInstance = d, e.readonly = !0;
|
|
2730
|
+
}), n.expose(d.value);
|
|
2731
|
+
const c = y();
|
|
2732
|
+
return () => w("div", {
|
|
2715
2733
|
ref: l,
|
|
2716
2734
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner test"
|
|
2717
|
-
}, [
|
|
2718
|
-
ref:
|
|
2735
|
+
}, [w("input", {
|
|
2736
|
+
ref: c,
|
|
2719
2737
|
class: "form-control",
|
|
2720
2738
|
readonly: !0,
|
|
2721
2739
|
placeholder: e.placeholder
|
|
@@ -2723,56 +2741,56 @@ const Nr = /* @__PURE__ */ q({
|
|
|
2723
2741
|
}
|
|
2724
2742
|
});
|
|
2725
2743
|
te.register = (e, n, t, r) => {
|
|
2726
|
-
e["number-spinner"] = te, n["number-spinner"] =
|
|
2744
|
+
e["number-spinner"] = te, n["number-spinner"] = nt;
|
|
2727
2745
|
};
|
|
2728
2746
|
te.registerDesigner = (e, n, t) => {
|
|
2729
|
-
e["number-spinner"] =
|
|
2747
|
+
e["number-spinner"] = jr, n["number-spinner"] = nt;
|
|
2730
2748
|
};
|
|
2731
2749
|
Te(te);
|
|
2732
|
-
function
|
|
2733
|
-
const u = y(0),
|
|
2750
|
+
function Dr(e, n, t, r, o, a, l) {
|
|
2751
|
+
const u = y(0), s = y(""), i = y([]), d = y(""), c = y("");
|
|
2734
2752
|
function f() {
|
|
2735
|
-
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (
|
|
2753
|
+
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (d.value = B(e.value.propertyValue.value), n.value = B(e.value.editorOptions.enums));
|
|
2736
2754
|
}
|
|
2737
|
-
function
|
|
2755
|
+
function p() {
|
|
2738
2756
|
e.value.propertyType === "number" && (u.value = e.value.propertyValue.value);
|
|
2739
2757
|
}
|
|
2740
2758
|
function v() {
|
|
2741
|
-
t.value.id === "stateMachine" && (r =
|
|
2759
|
+
t.value.id === "stateMachine" && (r = B(e.value.propertyValue.value.id), r ? o.value = B(e.value.propertyValue.value.exist) : o.value = "否");
|
|
2742
2760
|
}
|
|
2743
|
-
function
|
|
2744
|
-
if (t.value.id === "dataStates" && (i.value =
|
|
2745
|
-
const
|
|
2746
|
-
|
|
2761
|
+
function m() {
|
|
2762
|
+
if (t.value.id === "dataStates" && (i.value = B(e.value.editorOptions.dataStates), e.value.propertyValue.value)) {
|
|
2763
|
+
const C = e.value.propertyValue.value, T = i.value.filter((g) => C.includes(g.value)).map((g) => g.value).join(",");
|
|
2764
|
+
s.value = B(T);
|
|
2747
2765
|
}
|
|
2748
2766
|
}
|
|
2749
|
-
function
|
|
2750
|
-
t.value.id === "variable" && (
|
|
2767
|
+
function b() {
|
|
2768
|
+
t.value.id === "variable" && (c.value = e.value.propertyValue.value.path);
|
|
2751
2769
|
}
|
|
2752
|
-
function
|
|
2770
|
+
function S() {
|
|
2753
2771
|
if (t.value.id === "expression") {
|
|
2754
2772
|
l.value = !0;
|
|
2755
|
-
const { handleExpressionValue:
|
|
2756
|
-
|
|
2773
|
+
const { handleExpressionValue: C } = e.value.editorOptions.expressionConfig;
|
|
2774
|
+
C ? a.value = C().value.value : a.value = e.value.editorOptions.expressionConfig.expressionValue.value.value;
|
|
2757
2775
|
}
|
|
2758
2776
|
}
|
|
2759
|
-
function
|
|
2777
|
+
function E() {
|
|
2760
2778
|
t.value.id;
|
|
2761
2779
|
}
|
|
2762
|
-
function
|
|
2763
|
-
f(),
|
|
2780
|
+
function k() {
|
|
2781
|
+
f(), p(), b(), v(), m(), S(), E();
|
|
2764
2782
|
}
|
|
2765
2783
|
return {
|
|
2766
2784
|
numberConstValue: u,
|
|
2767
|
-
bindVariableValue:
|
|
2768
|
-
dataStatesBindValue:
|
|
2785
|
+
bindVariableValue: c,
|
|
2786
|
+
dataStatesBindValue: s,
|
|
2769
2787
|
dataStatesValueArray: i,
|
|
2770
|
-
constEnumBindValue:
|
|
2771
|
-
setValue:
|
|
2788
|
+
constEnumBindValue: d,
|
|
2789
|
+
setValue: k
|
|
2772
2790
|
};
|
|
2773
2791
|
}
|
|
2774
|
-
function
|
|
2775
|
-
const f = y(!1),
|
|
2792
|
+
function $r(e, n, t, r, o, a, l, u, s, i, d, c) {
|
|
2793
|
+
const f = y(!1), p = y({
|
|
2776
2794
|
propertyName: "",
|
|
2777
2795
|
/** 属性类型:boolean, string, number, enum */
|
|
2778
2796
|
propertyType: "",
|
|
@@ -2784,63 +2802,63 @@ function Ir(e, n, t, r, o, a, l, u, c, i, p, d) {
|
|
|
2784
2802
|
hasPrefix: !1
|
|
2785
2803
|
});
|
|
2786
2804
|
function v() {
|
|
2787
|
-
n.value.propertyValue.type === "const" && (n.value.propertyValue.value =
|
|
2805
|
+
n.value.propertyValue.type === "const" && (n.value.propertyValue.value = B(o.value.constValue.value), t.value = B(o.value.constValue.value), r.value = B(n.value.editorOptions.enums));
|
|
2788
2806
|
}
|
|
2789
|
-
function
|
|
2790
|
-
n.value.propertyValue.type === "stateMachine" && (n.value.propertyValue.value =
|
|
2807
|
+
function m() {
|
|
2808
|
+
n.value.propertyValue.type === "stateMachine" && (n.value.propertyValue.value = B(o.value.stateMachineValue.value), a.value = B(n.value.editorOptions.stateMachine), n.value.propertyValue.value.name ? B(n.value.propertyValue.value.id) : (n.value.propertyValue.value = {
|
|
2791
2809
|
id: "",
|
|
2792
2810
|
name: "",
|
|
2793
2811
|
exist: ""
|
|
2794
2812
|
}, u.value = "否"));
|
|
2795
2813
|
}
|
|
2796
|
-
function
|
|
2797
|
-
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value =
|
|
2814
|
+
function b() {
|
|
2815
|
+
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = B(o.value.dataStatesValue.value), s.value = B(n.value.editorOptions.dataStates));
|
|
2798
2816
|
}
|
|
2799
|
-
function
|
|
2817
|
+
function S() {
|
|
2800
2818
|
i.value = "", o.value.expressionValue && (o.value.expressionValue.value = "");
|
|
2801
2819
|
}
|
|
2802
|
-
function A() {
|
|
2803
|
-
p.value || (u.value = u.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = u, o.value.stateMachineValue.value.exist = u, B());
|
|
2804
|
-
}
|
|
2805
2820
|
function E() {
|
|
2806
|
-
|
|
2821
|
+
d.value || (u.value = u.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = u, o.value.stateMachineValue.value.exist = u, T());
|
|
2822
|
+
}
|
|
2823
|
+
function k() {
|
|
2824
|
+
p.value.propertyValue.value && p.value.propertyValue.value.includes("viewModel.stateMachine") && (o.value.customValue.value = "");
|
|
2807
2825
|
}
|
|
2808
|
-
function
|
|
2809
|
-
|
|
2826
|
+
function C() {
|
|
2827
|
+
p.value.propertyName = B(n.value.propertyName), p.value.propertyType = B(n.value.propertyType), p.value.propertyValue = B(n.value.propertyValue), p.value.hasPrefix = B(f);
|
|
2810
2828
|
}
|
|
2811
|
-
function
|
|
2812
|
-
if (!
|
|
2813
|
-
switch (
|
|
2829
|
+
function T() {
|
|
2830
|
+
if (!d.value)
|
|
2831
|
+
switch (C(), p.value.propertyValue.type) {
|
|
2814
2832
|
case "const":
|
|
2815
|
-
(
|
|
2833
|
+
(p.value.propertyType === "enum" && p.value.propertyValue.value !== "" || p.value.propertyType === "number" && p.value.propertyValue.value != null || p.value.propertyType === "string") && (S(), e.emit("propertyEditorValueChanged", p));
|
|
2816
2834
|
break;
|
|
2817
2835
|
case "variable":
|
|
2818
|
-
|
|
2836
|
+
p.value.propertyValue.value.path !== "" && (S(), e.emit("propertyEditorValueChanged", p));
|
|
2819
2837
|
break;
|
|
2820
2838
|
case "custom":
|
|
2821
|
-
|
|
2839
|
+
S(), k(), e.emit("propertyEditorValueChanged", p);
|
|
2822
2840
|
break;
|
|
2823
2841
|
case "expression":
|
|
2824
|
-
i.value && e.emit("propertyEditorValueChanged",
|
|
2842
|
+
i.value && e.emit("propertyEditorValueChanged", p);
|
|
2825
2843
|
break;
|
|
2826
2844
|
case "stateMachine":
|
|
2827
|
-
|
|
2845
|
+
p.value.propertyValue.value.id && (S(), e.emit("propertyEditorValueChanged", p));
|
|
2828
2846
|
break;
|
|
2829
2847
|
case "dataStates":
|
|
2830
|
-
if (
|
|
2831
|
-
|
|
2848
|
+
if (p.value.propertyValue.value !== "") {
|
|
2849
|
+
S(), e.emit("propertyEditorValueChanged", p);
|
|
2832
2850
|
break;
|
|
2833
2851
|
}
|
|
2834
2852
|
}
|
|
2835
2853
|
}
|
|
2836
|
-
function
|
|
2837
|
-
n.value.propertyValue = o.value[`${
|
|
2854
|
+
function g() {
|
|
2855
|
+
n.value.propertyValue = o.value[`${c.value.id}Value`], v(), m(), b(), T(), p.value.isNewVariable = !1;
|
|
2838
2856
|
}
|
|
2839
2857
|
return {
|
|
2840
|
-
updateData:
|
|
2841
|
-
changeState:
|
|
2858
|
+
updateData: g,
|
|
2859
|
+
changeState: E,
|
|
2842
2860
|
prefix: f,
|
|
2843
|
-
propertyEditorValueChange:
|
|
2861
|
+
propertyEditorValueChange: p
|
|
2844
2862
|
};
|
|
2845
2863
|
}
|
|
2846
2864
|
var ge = function(e, n) {
|
|
@@ -2850,7 +2868,7 @@ var ge = function(e, n) {
|
|
|
2850
2868
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
2851
2869
|
}, ge(e, n);
|
|
2852
2870
|
};
|
|
2853
|
-
function
|
|
2871
|
+
function z(e, n) {
|
|
2854
2872
|
if (typeof n != "function" && n !== null)
|
|
2855
2873
|
throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
|
|
2856
2874
|
ge(e, n);
|
|
@@ -2859,34 +2877,34 @@ function W(e, n) {
|
|
|
2859
2877
|
}
|
|
2860
2878
|
e.prototype = n === null ? Object.create(n) : (t.prototype = n.prototype, new t());
|
|
2861
2879
|
}
|
|
2862
|
-
function
|
|
2880
|
+
function Lr(e, n, t, r) {
|
|
2863
2881
|
function o(a) {
|
|
2864
2882
|
return a instanceof t ? a : new t(function(l) {
|
|
2865
2883
|
l(a);
|
|
2866
2884
|
});
|
|
2867
2885
|
}
|
|
2868
2886
|
return new (t || (t = Promise))(function(a, l) {
|
|
2869
|
-
function u(
|
|
2887
|
+
function u(d) {
|
|
2870
2888
|
try {
|
|
2871
|
-
i(r.next(
|
|
2872
|
-
} catch (
|
|
2873
|
-
l(
|
|
2889
|
+
i(r.next(d));
|
|
2890
|
+
} catch (c) {
|
|
2891
|
+
l(c);
|
|
2874
2892
|
}
|
|
2875
2893
|
}
|
|
2876
|
-
function
|
|
2894
|
+
function s(d) {
|
|
2877
2895
|
try {
|
|
2878
|
-
i(r.throw(
|
|
2879
|
-
} catch (
|
|
2880
|
-
l(
|
|
2896
|
+
i(r.throw(d));
|
|
2897
|
+
} catch (c) {
|
|
2898
|
+
l(c);
|
|
2881
2899
|
}
|
|
2882
2900
|
}
|
|
2883
|
-
function i(
|
|
2884
|
-
|
|
2901
|
+
function i(d) {
|
|
2902
|
+
d.done ? a(d.value) : o(d.value).then(u, s);
|
|
2885
2903
|
}
|
|
2886
2904
|
i((r = r.apply(e, n || [])).next());
|
|
2887
2905
|
});
|
|
2888
2906
|
}
|
|
2889
|
-
function
|
|
2907
|
+
function it(e, n) {
|
|
2890
2908
|
var t = { label: 0, sent: function() {
|
|
2891
2909
|
if (a[0] & 1) throw a[1];
|
|
2892
2910
|
return a[1];
|
|
@@ -2895,11 +2913,11 @@ function lt(e, n) {
|
|
|
2895
2913
|
return this;
|
|
2896
2914
|
}), l;
|
|
2897
2915
|
function u(i) {
|
|
2898
|
-
return function(
|
|
2899
|
-
return
|
|
2916
|
+
return function(d) {
|
|
2917
|
+
return s([i, d]);
|
|
2900
2918
|
};
|
|
2901
2919
|
}
|
|
2902
|
-
function
|
|
2920
|
+
function s(i) {
|
|
2903
2921
|
if (r) throw new TypeError("Generator is already executing.");
|
|
2904
2922
|
for (; l && (l = 0, i[0] && (t = 0)), t; ) try {
|
|
2905
2923
|
if (r = 1, o && (a = i[0] & 2 ? o.return : i[0] ? o.throw || ((a = o.return) && a.call(o), 0) : o.next) && !(a = a.call(o, i[1])).done) return a;
|
|
@@ -2937,8 +2955,8 @@ function lt(e, n) {
|
|
|
2937
2955
|
continue;
|
|
2938
2956
|
}
|
|
2939
2957
|
i = n.call(e, t);
|
|
2940
|
-
} catch (
|
|
2941
|
-
i = [6,
|
|
2958
|
+
} catch (d) {
|
|
2959
|
+
i = [6, d], o = 0;
|
|
2942
2960
|
} finally {
|
|
2943
2961
|
r = a = 0;
|
|
2944
2962
|
}
|
|
@@ -2981,45 +2999,45 @@ function ue(e, n, t) {
|
|
|
2981
2999
|
function J(e) {
|
|
2982
3000
|
return this instanceof J ? (this.v = e, this) : new J(e);
|
|
2983
3001
|
}
|
|
2984
|
-
function
|
|
3002
|
+
function Ur(e, n, t) {
|
|
2985
3003
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2986
3004
|
var r = t.apply(e, n || []), o, a = [];
|
|
2987
3005
|
return o = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", l), o[Symbol.asyncIterator] = function() {
|
|
2988
3006
|
return this;
|
|
2989
3007
|
}, o;
|
|
2990
|
-
function l(
|
|
3008
|
+
function l(p) {
|
|
2991
3009
|
return function(v) {
|
|
2992
|
-
return Promise.resolve(v).then(
|
|
3010
|
+
return Promise.resolve(v).then(p, c);
|
|
2993
3011
|
};
|
|
2994
3012
|
}
|
|
2995
|
-
function u(
|
|
2996
|
-
r[
|
|
2997
|
-
return new Promise(function(
|
|
2998
|
-
a.push([
|
|
3013
|
+
function u(p, v) {
|
|
3014
|
+
r[p] && (o[p] = function(m) {
|
|
3015
|
+
return new Promise(function(b, S) {
|
|
3016
|
+
a.push([p, m, b, S]) > 1 || s(p, m);
|
|
2999
3017
|
});
|
|
3000
|
-
}, v && (o[
|
|
3018
|
+
}, v && (o[p] = v(o[p])));
|
|
3001
3019
|
}
|
|
3002
|
-
function
|
|
3020
|
+
function s(p, v) {
|
|
3003
3021
|
try {
|
|
3004
|
-
i(r[
|
|
3005
|
-
} catch (
|
|
3006
|
-
f(a[0][3],
|
|
3022
|
+
i(r[p](v));
|
|
3023
|
+
} catch (m) {
|
|
3024
|
+
f(a[0][3], m);
|
|
3007
3025
|
}
|
|
3008
3026
|
}
|
|
3009
|
-
function i(
|
|
3010
|
-
|
|
3027
|
+
function i(p) {
|
|
3028
|
+
p.value instanceof J ? Promise.resolve(p.value.v).then(d, c) : f(a[0][2], p);
|
|
3011
3029
|
}
|
|
3012
|
-
function p
|
|
3013
|
-
|
|
3030
|
+
function d(p) {
|
|
3031
|
+
s("next", p);
|
|
3014
3032
|
}
|
|
3015
|
-
function
|
|
3016
|
-
|
|
3033
|
+
function c(p) {
|
|
3034
|
+
s("throw", p);
|
|
3017
3035
|
}
|
|
3018
|
-
function f(
|
|
3019
|
-
|
|
3036
|
+
function f(p, v) {
|
|
3037
|
+
p(v), a.shift(), a.length && s(a[0][0], a[0][1]);
|
|
3020
3038
|
}
|
|
3021
3039
|
}
|
|
3022
|
-
function
|
|
3040
|
+
function _r(e) {
|
|
3023
3041
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3024
3042
|
var n = e[Symbol.asyncIterator], t;
|
|
3025
3043
|
return n ? n.call(e) : (e = typeof X == "function" ? X(e) : e[Symbol.iterator](), t = {}, r("next"), r("throw"), r("return"), t[Symbol.asyncIterator] = function() {
|
|
@@ -3027,27 +3045,27 @@ function $r(e) {
|
|
|
3027
3045
|
}, t);
|
|
3028
3046
|
function r(a) {
|
|
3029
3047
|
t[a] = e[a] && function(l) {
|
|
3030
|
-
return new Promise(function(u,
|
|
3031
|
-
l = e[a](l), o(u,
|
|
3048
|
+
return new Promise(function(u, s) {
|
|
3049
|
+
l = e[a](l), o(u, s, l.done, l.value);
|
|
3032
3050
|
});
|
|
3033
3051
|
};
|
|
3034
3052
|
}
|
|
3035
|
-
function o(a, l, u,
|
|
3036
|
-
Promise.resolve(
|
|
3053
|
+
function o(a, l, u, s) {
|
|
3054
|
+
Promise.resolve(s).then(function(i) {
|
|
3037
3055
|
a({ value: i, done: u });
|
|
3038
3056
|
}, l);
|
|
3039
3057
|
}
|
|
3040
3058
|
}
|
|
3041
|
-
function
|
|
3059
|
+
function I(e) {
|
|
3042
3060
|
return typeof e == "function";
|
|
3043
3061
|
}
|
|
3044
|
-
function
|
|
3062
|
+
function lt(e) {
|
|
3045
3063
|
var n = function(r) {
|
|
3046
3064
|
Error.call(r), r.stack = new Error().stack;
|
|
3047
3065
|
}, t = e(n);
|
|
3048
3066
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
3049
3067
|
}
|
|
3050
|
-
var fe =
|
|
3068
|
+
var fe = lt(function(e) {
|
|
3051
3069
|
return function(t) {
|
|
3052
3070
|
e(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
3053
3071
|
` + t.map(function(r, o) {
|
|
@@ -3074,45 +3092,45 @@ var ne = function() {
|
|
|
3074
3092
|
if (l)
|
|
3075
3093
|
if (this._parentage = null, Array.isArray(l))
|
|
3076
3094
|
try {
|
|
3077
|
-
for (var u = X(l),
|
|
3078
|
-
var i =
|
|
3095
|
+
for (var u = X(l), s = u.next(); !s.done; s = u.next()) {
|
|
3096
|
+
var i = s.value;
|
|
3079
3097
|
i.remove(this);
|
|
3080
3098
|
}
|
|
3081
|
-
} catch (
|
|
3082
|
-
n = { error:
|
|
3099
|
+
} catch (m) {
|
|
3100
|
+
n = { error: m };
|
|
3083
3101
|
} finally {
|
|
3084
3102
|
try {
|
|
3085
|
-
|
|
3103
|
+
s && !s.done && (t = u.return) && t.call(u);
|
|
3086
3104
|
} finally {
|
|
3087
3105
|
if (n) throw n.error;
|
|
3088
3106
|
}
|
|
3089
3107
|
}
|
|
3090
3108
|
else
|
|
3091
3109
|
l.remove(this);
|
|
3092
|
-
var
|
|
3093
|
-
if (
|
|
3110
|
+
var d = this.initialTeardown;
|
|
3111
|
+
if (I(d))
|
|
3094
3112
|
try {
|
|
3095
|
-
|
|
3096
|
-
} catch (
|
|
3097
|
-
a =
|
|
3113
|
+
d();
|
|
3114
|
+
} catch (m) {
|
|
3115
|
+
a = m instanceof fe ? m.errors : [m];
|
|
3098
3116
|
}
|
|
3099
|
-
var
|
|
3100
|
-
if (
|
|
3117
|
+
var c = this._finalizers;
|
|
3118
|
+
if (c) {
|
|
3101
3119
|
this._finalizers = null;
|
|
3102
3120
|
try {
|
|
3103
|
-
for (var f = X(
|
|
3104
|
-
var v =
|
|
3121
|
+
for (var f = X(c), p = f.next(); !p.done; p = f.next()) {
|
|
3122
|
+
var v = p.value;
|
|
3105
3123
|
try {
|
|
3106
3124
|
Le(v);
|
|
3107
|
-
} catch (
|
|
3108
|
-
a = a ?? [],
|
|
3125
|
+
} catch (m) {
|
|
3126
|
+
a = a ?? [], m instanceof fe ? a = ue(ue([], le(a)), le(m.errors)) : a.push(m);
|
|
3109
3127
|
}
|
|
3110
3128
|
}
|
|
3111
|
-
} catch (
|
|
3112
|
-
r = { error:
|
|
3129
|
+
} catch (m) {
|
|
3130
|
+
r = { error: m };
|
|
3113
3131
|
} finally {
|
|
3114
3132
|
try {
|
|
3115
|
-
|
|
3133
|
+
p && !p.done && (o = f.return) && o.call(f);
|
|
3116
3134
|
} finally {
|
|
3117
3135
|
if (r) throw r.error;
|
|
3118
3136
|
}
|
|
@@ -3150,20 +3168,20 @@ var ne = function() {
|
|
|
3150
3168
|
var n = new e();
|
|
3151
3169
|
return n.closed = !0, n;
|
|
3152
3170
|
}(), e;
|
|
3153
|
-
}(),
|
|
3154
|
-
function
|
|
3155
|
-
return e instanceof ne || e && "closed" in e &&
|
|
3171
|
+
}(), ut = ne.EMPTY;
|
|
3172
|
+
function st(e) {
|
|
3173
|
+
return e instanceof ne || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
3156
3174
|
}
|
|
3157
3175
|
function Le(e) {
|
|
3158
|
-
|
|
3176
|
+
I(e) ? e() : e.unsubscribe();
|
|
3159
3177
|
}
|
|
3160
|
-
var
|
|
3178
|
+
var ct = {
|
|
3161
3179
|
onUnhandledError: null,
|
|
3162
3180
|
onStoppedNotification: null,
|
|
3163
3181
|
Promise: void 0,
|
|
3164
3182
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
3165
3183
|
useDeprecatedNextContext: !1
|
|
3166
|
-
},
|
|
3184
|
+
}, Rr = {
|
|
3167
3185
|
setTimeout: function(e, n) {
|
|
3168
3186
|
for (var t = [], r = 2; r < arguments.length; r++)
|
|
3169
3187
|
t[r - 2] = arguments[r];
|
|
@@ -3174,8 +3192,8 @@ var dt = {
|
|
|
3174
3192
|
},
|
|
3175
3193
|
delegate: void 0
|
|
3176
3194
|
};
|
|
3177
|
-
function
|
|
3178
|
-
|
|
3195
|
+
function dt(e) {
|
|
3196
|
+
Rr.setTimeout(function() {
|
|
3179
3197
|
throw e;
|
|
3180
3198
|
});
|
|
3181
3199
|
}
|
|
@@ -3185,10 +3203,10 @@ function ae(e) {
|
|
|
3185
3203
|
e();
|
|
3186
3204
|
}
|
|
3187
3205
|
var ke = function(e) {
|
|
3188
|
-
|
|
3206
|
+
z(n, e);
|
|
3189
3207
|
function n(t) {
|
|
3190
3208
|
var r = e.call(this) || this;
|
|
3191
|
-
return r.isStopped = !1, t ? (r.destination = t,
|
|
3209
|
+
return r.isStopped = !1, t ? (r.destination = t, st(t) && t.add(r)) : r.destination = Wr, r;
|
|
3192
3210
|
}
|
|
3193
3211
|
return n.create = function(t, r, o) {
|
|
3194
3212
|
return new Se(t, r, o);
|
|
@@ -3215,11 +3233,11 @@ var ke = function(e) {
|
|
|
3215
3233
|
this.unsubscribe();
|
|
3216
3234
|
}
|
|
3217
3235
|
}, n;
|
|
3218
|
-
}(ne),
|
|
3236
|
+
}(ne), Gr = Function.prototype.bind;
|
|
3219
3237
|
function ve(e, n) {
|
|
3220
|
-
return
|
|
3238
|
+
return Gr.call(e, n);
|
|
3221
3239
|
}
|
|
3222
|
-
var
|
|
3240
|
+
var Hr = function() {
|
|
3223
3241
|
function e(n) {
|
|
3224
3242
|
this.partialObserver = n;
|
|
3225
3243
|
}
|
|
@@ -3251,10 +3269,10 @@ var _r = function() {
|
|
|
3251
3269
|
}
|
|
3252
3270
|
}, e;
|
|
3253
3271
|
}(), Se = function(e) {
|
|
3254
|
-
|
|
3272
|
+
z(n, e);
|
|
3255
3273
|
function n(t, r, o) {
|
|
3256
3274
|
var a = e.call(this) || this, l;
|
|
3257
|
-
if (
|
|
3275
|
+
if (I(t) || !t)
|
|
3258
3276
|
l = {
|
|
3259
3277
|
next: t ?? void 0,
|
|
3260
3278
|
error: r ?? void 0,
|
|
@@ -3262,7 +3280,7 @@ var _r = function() {
|
|
|
3262
3280
|
};
|
|
3263
3281
|
else {
|
|
3264
3282
|
var u;
|
|
3265
|
-
a &&
|
|
3283
|
+
a && ct.useDeprecatedNextContext ? (u = Object.create(t), u.unsubscribe = function() {
|
|
3266
3284
|
return a.unsubscribe();
|
|
3267
3285
|
}, l = {
|
|
3268
3286
|
next: t.next && ve(t.next, u),
|
|
@@ -3270,29 +3288,29 @@ var _r = function() {
|
|
|
3270
3288
|
complete: t.complete && ve(t.complete, u)
|
|
3271
3289
|
}) : l = t;
|
|
3272
3290
|
}
|
|
3273
|
-
return a.destination = new
|
|
3291
|
+
return a.destination = new Hr(l), a;
|
|
3274
3292
|
}
|
|
3275
3293
|
return n;
|
|
3276
3294
|
}(ke);
|
|
3277
3295
|
function oe(e) {
|
|
3278
|
-
|
|
3296
|
+
dt(e);
|
|
3279
3297
|
}
|
|
3280
|
-
function
|
|
3298
|
+
function qr(e) {
|
|
3281
3299
|
throw e;
|
|
3282
3300
|
}
|
|
3283
|
-
var
|
|
3301
|
+
var Wr = {
|
|
3284
3302
|
closed: !0,
|
|
3285
3303
|
next: Ue,
|
|
3286
|
-
error:
|
|
3304
|
+
error: qr,
|
|
3287
3305
|
complete: Ue
|
|
3288
3306
|
}, Ee = function() {
|
|
3289
3307
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
3290
3308
|
}();
|
|
3291
|
-
function
|
|
3309
|
+
function zr(e) {
|
|
3292
3310
|
return e;
|
|
3293
3311
|
}
|
|
3294
|
-
function
|
|
3295
|
-
return e.length === 0 ?
|
|
3312
|
+
function Yr(e) {
|
|
3313
|
+
return e.length === 0 ? zr : e.length === 1 ? e[0] : function(t) {
|
|
3296
3314
|
return e.reduce(function(r, o) {
|
|
3297
3315
|
return o(r);
|
|
3298
3316
|
}, t);
|
|
@@ -3306,10 +3324,10 @@ var R = function() {
|
|
|
3306
3324
|
var t = new e();
|
|
3307
3325
|
return t.source = this, t.operator = n, t;
|
|
3308
3326
|
}, e.prototype.subscribe = function(n, t, r) {
|
|
3309
|
-
var o = this, a =
|
|
3327
|
+
var o = this, a = Jr(n) ? n : new Se(n, t, r);
|
|
3310
3328
|
return ae(function() {
|
|
3311
|
-
var l = o, u = l.operator,
|
|
3312
|
-
a.add(u ? u.call(a,
|
|
3329
|
+
var l = o, u = l.operator, s = l.source;
|
|
3330
|
+
a.add(u ? u.call(a, s) : s ? o._subscribe(a) : o._trySubscribe(a));
|
|
3313
3331
|
}), a;
|
|
3314
3332
|
}, e.prototype._trySubscribe = function(n) {
|
|
3315
3333
|
try {
|
|
@@ -3324,8 +3342,8 @@ var R = function() {
|
|
|
3324
3342
|
next: function(u) {
|
|
3325
3343
|
try {
|
|
3326
3344
|
n(u);
|
|
3327
|
-
} catch (
|
|
3328
|
-
a(
|
|
3345
|
+
} catch (s) {
|
|
3346
|
+
a(s), l.unsubscribe();
|
|
3329
3347
|
}
|
|
3330
3348
|
},
|
|
3331
3349
|
error: a,
|
|
@@ -3341,7 +3359,7 @@ var R = function() {
|
|
|
3341
3359
|
}, e.prototype.pipe = function() {
|
|
3342
3360
|
for (var n = [], t = 0; t < arguments.length; t++)
|
|
3343
3361
|
n[t] = arguments[t];
|
|
3344
|
-
return
|
|
3362
|
+
return Yr(n)(this);
|
|
3345
3363
|
}, e.prototype.toPromise = function(n) {
|
|
3346
3364
|
var t = this;
|
|
3347
3365
|
return n = _e(n), new n(function(r, o) {
|
|
@@ -3360,20 +3378,20 @@ var R = function() {
|
|
|
3360
3378
|
}();
|
|
3361
3379
|
function _e(e) {
|
|
3362
3380
|
var n;
|
|
3363
|
-
return (n = e ??
|
|
3381
|
+
return (n = e ?? ct.Promise) !== null && n !== void 0 ? n : Promise;
|
|
3364
3382
|
}
|
|
3365
|
-
function
|
|
3366
|
-
return e &&
|
|
3383
|
+
function Zr(e) {
|
|
3384
|
+
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
3367
3385
|
}
|
|
3368
|
-
function
|
|
3369
|
-
return e && e instanceof ke ||
|
|
3386
|
+
function Jr(e) {
|
|
3387
|
+
return e && e instanceof ke || Zr(e) && st(e);
|
|
3370
3388
|
}
|
|
3371
|
-
function
|
|
3372
|
-
return
|
|
3389
|
+
function Qr(e) {
|
|
3390
|
+
return I(e == null ? void 0 : e.lift);
|
|
3373
3391
|
}
|
|
3374
3392
|
function Ae(e) {
|
|
3375
3393
|
return function(n) {
|
|
3376
|
-
if (
|
|
3394
|
+
if (Qr(n))
|
|
3377
3395
|
return n.lift(function(t) {
|
|
3378
3396
|
try {
|
|
3379
3397
|
return e(t, this);
|
|
@@ -3384,28 +3402,28 @@ function Ae(e) {
|
|
|
3384
3402
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
3385
3403
|
};
|
|
3386
3404
|
}
|
|
3387
|
-
function
|
|
3388
|
-
return new
|
|
3405
|
+
function pt(e, n, t, r, o) {
|
|
3406
|
+
return new Xr(e, n, t, r, o);
|
|
3389
3407
|
}
|
|
3390
|
-
var
|
|
3391
|
-
|
|
3408
|
+
var Xr = function(e) {
|
|
3409
|
+
z(n, e);
|
|
3392
3410
|
function n(t, r, o, a, l, u) {
|
|
3393
|
-
var
|
|
3394
|
-
return
|
|
3411
|
+
var s = e.call(this, t) || this;
|
|
3412
|
+
return s.onFinalize = l, s.shouldUnsubscribe = u, s._next = r ? function(i) {
|
|
3395
3413
|
try {
|
|
3396
3414
|
r(i);
|
|
3397
|
-
} catch (
|
|
3398
|
-
t.error(
|
|
3415
|
+
} catch (d) {
|
|
3416
|
+
t.error(d);
|
|
3399
3417
|
}
|
|
3400
|
-
} : e.prototype._next,
|
|
3418
|
+
} : e.prototype._next, s._error = a ? function(i) {
|
|
3401
3419
|
try {
|
|
3402
3420
|
a(i);
|
|
3403
|
-
} catch (
|
|
3404
|
-
t.error(
|
|
3421
|
+
} catch (d) {
|
|
3422
|
+
t.error(d);
|
|
3405
3423
|
} finally {
|
|
3406
3424
|
this.unsubscribe();
|
|
3407
3425
|
}
|
|
3408
|
-
} : e.prototype._error,
|
|
3426
|
+
} : e.prototype._error, s._complete = o ? function() {
|
|
3409
3427
|
try {
|
|
3410
3428
|
o();
|
|
3411
3429
|
} catch (i) {
|
|
@@ -3413,7 +3431,7 @@ var Zr = function(e) {
|
|
|
3413
3431
|
} finally {
|
|
3414
3432
|
this.unsubscribe();
|
|
3415
3433
|
}
|
|
3416
|
-
} : e.prototype._complete,
|
|
3434
|
+
} : e.prototype._complete, s;
|
|
3417
3435
|
}
|
|
3418
3436
|
return n.prototype.unsubscribe = function() {
|
|
3419
3437
|
var t;
|
|
@@ -3422,12 +3440,12 @@ var Zr = function(e) {
|
|
|
3422
3440
|
e.prototype.unsubscribe.call(this), !r && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
3423
3441
|
}
|
|
3424
3442
|
}, n;
|
|
3425
|
-
}(ke),
|
|
3443
|
+
}(ke), Kr = lt(function(e) {
|
|
3426
3444
|
return function() {
|
|
3427
3445
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
3428
3446
|
};
|
|
3429
|
-
}),
|
|
3430
|
-
|
|
3447
|
+
}), ft = function(e) {
|
|
3448
|
+
z(n, e);
|
|
3431
3449
|
function n() {
|
|
3432
3450
|
var t = e.call(this) || this;
|
|
3433
3451
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
|
@@ -3437,7 +3455,7 @@ var Zr = function(e) {
|
|
|
3437
3455
|
return r.operator = t, r;
|
|
3438
3456
|
}, n.prototype._throwIfClosed = function() {
|
|
3439
3457
|
if (this.closed)
|
|
3440
|
-
throw new
|
|
3458
|
+
throw new Kr();
|
|
3441
3459
|
}, n.prototype.next = function(t) {
|
|
3442
3460
|
var r = this;
|
|
3443
3461
|
ae(function() {
|
|
@@ -3446,8 +3464,8 @@ var Zr = function(e) {
|
|
|
3446
3464
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
3447
3465
|
try {
|
|
3448
3466
|
for (var l = X(r.currentObservers), u = l.next(); !u.done; u = l.next()) {
|
|
3449
|
-
var
|
|
3450
|
-
|
|
3467
|
+
var s = u.value;
|
|
3468
|
+
s.next(t);
|
|
3451
3469
|
}
|
|
3452
3470
|
} catch (i) {
|
|
3453
3471
|
o = { error: i };
|
|
@@ -3493,7 +3511,7 @@ var Zr = function(e) {
|
|
|
3493
3511
|
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
|
3494
3512
|
}, n.prototype._innerSubscribe = function(t) {
|
|
3495
3513
|
var r = this, o = this, a = o.hasError, l = o.isStopped, u = o.observers;
|
|
3496
|
-
return a || l ?
|
|
3514
|
+
return a || l ? ut : (this.currentObservers = null, u.push(t), new ne(function() {
|
|
3497
3515
|
r.currentObservers = null, se(u, t);
|
|
3498
3516
|
}));
|
|
3499
3517
|
}, n.prototype._checkFinalizedStatuses = function(t) {
|
|
@@ -3506,7 +3524,7 @@ var Zr = function(e) {
|
|
|
3506
3524
|
return new Re(t, r);
|
|
3507
3525
|
}, n;
|
|
3508
3526
|
}(R), Re = function(e) {
|
|
3509
|
-
|
|
3527
|
+
z(n, e);
|
|
3510
3528
|
function n(t, r) {
|
|
3511
3529
|
var o = e.call(this) || this;
|
|
3512
3530
|
return o.destination = t, o.source = r, o;
|
|
@@ -3522,15 +3540,15 @@ var Zr = function(e) {
|
|
|
3522
3540
|
(r = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || r === void 0 || r.call(t);
|
|
3523
3541
|
}, n.prototype._subscribe = function(t) {
|
|
3524
3542
|
var r, o;
|
|
3525
|
-
return (o = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t)) !== null && o !== void 0 ? o :
|
|
3543
|
+
return (o = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t)) !== null && o !== void 0 ? o : ut;
|
|
3526
3544
|
}, n;
|
|
3527
|
-
}(
|
|
3545
|
+
}(ft), eo = {
|
|
3528
3546
|
now: function() {
|
|
3529
3547
|
return Date.now();
|
|
3530
3548
|
},
|
|
3531
3549
|
delegate: void 0
|
|
3532
|
-
},
|
|
3533
|
-
|
|
3550
|
+
}, to = function(e) {
|
|
3551
|
+
z(n, e);
|
|
3534
3552
|
function n(t, r) {
|
|
3535
3553
|
return e.call(this) || this;
|
|
3536
3554
|
}
|
|
@@ -3547,8 +3565,8 @@ var Zr = function(e) {
|
|
|
3547
3565
|
return clearInterval(e);
|
|
3548
3566
|
},
|
|
3549
3567
|
delegate: void 0
|
|
3550
|
-
},
|
|
3551
|
-
|
|
3568
|
+
}, no = function(e) {
|
|
3569
|
+
z(n, e);
|
|
3552
3570
|
function n(t, r) {
|
|
3553
3571
|
var o = e.call(this, t, r) || this;
|
|
3554
3572
|
return o.scheduler = t, o.work = r, o.pending = !1, o;
|
|
@@ -3589,15 +3607,15 @@ var Zr = function(e) {
|
|
|
3589
3607
|
this.work = this.state = this.scheduler = null, this.pending = !1, se(a, this), r != null && (this.id = this.recycleAsyncId(o, r, null)), this.delay = null, e.prototype.unsubscribe.call(this);
|
|
3590
3608
|
}
|
|
3591
3609
|
}, n;
|
|
3592
|
-
}(
|
|
3610
|
+
}(to), He = function() {
|
|
3593
3611
|
function e(n, t) {
|
|
3594
3612
|
t === void 0 && (t = e.now), this.schedulerActionCtor = n, this.now = t;
|
|
3595
3613
|
}
|
|
3596
3614
|
return e.prototype.schedule = function(n, t, r) {
|
|
3597
3615
|
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, n).schedule(r, t);
|
|
3598
|
-
}, e.now =
|
|
3599
|
-
}(),
|
|
3600
|
-
|
|
3616
|
+
}, e.now = eo.now, e;
|
|
3617
|
+
}(), ro = function(e) {
|
|
3618
|
+
z(n, e);
|
|
3601
3619
|
function n(t, r) {
|
|
3602
3620
|
r === void 0 && (r = He.now);
|
|
3603
3621
|
var o = e.call(this, t, r) || this;
|
|
@@ -3621,42 +3639,42 @@ var Zr = function(e) {
|
|
|
3621
3639
|
throw o;
|
|
3622
3640
|
}
|
|
3623
3641
|
}, n;
|
|
3624
|
-
}(He),
|
|
3625
|
-
function
|
|
3626
|
-
return e &&
|
|
3642
|
+
}(He), oo = new ro(no);
|
|
3643
|
+
function ao(e) {
|
|
3644
|
+
return e && I(e.schedule);
|
|
3627
3645
|
}
|
|
3628
|
-
function
|
|
3646
|
+
function io(e) {
|
|
3629
3647
|
return e[e.length - 1];
|
|
3630
3648
|
}
|
|
3631
|
-
function
|
|
3632
|
-
return
|
|
3649
|
+
function lo(e) {
|
|
3650
|
+
return ao(io(e)) ? e.pop() : void 0;
|
|
3633
3651
|
}
|
|
3634
|
-
var
|
|
3652
|
+
var vt = function(e) {
|
|
3635
3653
|
return e && typeof e.length == "number" && typeof e != "function";
|
|
3636
3654
|
};
|
|
3655
|
+
function yt(e) {
|
|
3656
|
+
return I(e == null ? void 0 : e.then);
|
|
3657
|
+
}
|
|
3637
3658
|
function mt(e) {
|
|
3638
|
-
return
|
|
3659
|
+
return I(e[Ee]);
|
|
3639
3660
|
}
|
|
3640
3661
|
function ht(e) {
|
|
3641
|
-
return
|
|
3662
|
+
return Symbol.asyncIterator && I(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
3642
3663
|
}
|
|
3643
3664
|
function bt(e) {
|
|
3644
|
-
return Symbol.asyncIterator && O(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
3645
|
-
}
|
|
3646
|
-
function gt(e) {
|
|
3647
3665
|
return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
3648
3666
|
}
|
|
3649
|
-
function
|
|
3667
|
+
function uo() {
|
|
3650
3668
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
3651
3669
|
}
|
|
3652
|
-
var
|
|
3653
|
-
function
|
|
3654
|
-
return
|
|
3670
|
+
var gt = uo();
|
|
3671
|
+
function St(e) {
|
|
3672
|
+
return I(e == null ? void 0 : e[gt]);
|
|
3655
3673
|
}
|
|
3656
|
-
function
|
|
3657
|
-
return
|
|
3674
|
+
function wt(e) {
|
|
3675
|
+
return Ur(this, arguments, function() {
|
|
3658
3676
|
var t, r, o, a;
|
|
3659
|
-
return
|
|
3677
|
+
return it(this, function(l) {
|
|
3660
3678
|
switch (l.label) {
|
|
3661
3679
|
case 0:
|
|
3662
3680
|
t = e.getReader(), l.label = 1;
|
|
@@ -3684,53 +3702,53 @@ function Ct(e) {
|
|
|
3684
3702
|
});
|
|
3685
3703
|
});
|
|
3686
3704
|
}
|
|
3687
|
-
function
|
|
3688
|
-
return
|
|
3705
|
+
function Ct(e) {
|
|
3706
|
+
return I(e == null ? void 0 : e.getReader);
|
|
3689
3707
|
}
|
|
3690
3708
|
function Pe(e) {
|
|
3691
3709
|
if (e instanceof R)
|
|
3692
3710
|
return e;
|
|
3693
3711
|
if (e != null) {
|
|
3694
|
-
if (ht(e))
|
|
3695
|
-
return io(e);
|
|
3696
|
-
if (yt(e))
|
|
3697
|
-
return lo(e);
|
|
3698
3712
|
if (mt(e))
|
|
3699
|
-
return uo(e);
|
|
3700
|
-
if (bt(e))
|
|
3701
|
-
return Vt(e);
|
|
3702
|
-
if (wt(e))
|
|
3703
3713
|
return so(e);
|
|
3704
|
-
if (
|
|
3714
|
+
if (vt(e))
|
|
3705
3715
|
return co(e);
|
|
3716
|
+
if (yt(e))
|
|
3717
|
+
return po(e);
|
|
3718
|
+
if (ht(e))
|
|
3719
|
+
return xt(e);
|
|
3720
|
+
if (St(e))
|
|
3721
|
+
return fo(e);
|
|
3722
|
+
if (Ct(e))
|
|
3723
|
+
return vo(e);
|
|
3706
3724
|
}
|
|
3707
|
-
throw
|
|
3725
|
+
throw bt(e);
|
|
3708
3726
|
}
|
|
3709
|
-
function
|
|
3727
|
+
function so(e) {
|
|
3710
3728
|
return new R(function(n) {
|
|
3711
3729
|
var t = e[Ee]();
|
|
3712
|
-
if (
|
|
3730
|
+
if (I(t.subscribe))
|
|
3713
3731
|
return t.subscribe(n);
|
|
3714
3732
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
3715
3733
|
});
|
|
3716
3734
|
}
|
|
3717
|
-
function
|
|
3735
|
+
function co(e) {
|
|
3718
3736
|
return new R(function(n) {
|
|
3719
3737
|
for (var t = 0; t < e.length && !n.closed; t++)
|
|
3720
3738
|
n.next(e[t]);
|
|
3721
3739
|
n.complete();
|
|
3722
3740
|
});
|
|
3723
3741
|
}
|
|
3724
|
-
function
|
|
3742
|
+
function po(e) {
|
|
3725
3743
|
return new R(function(n) {
|
|
3726
3744
|
e.then(function(t) {
|
|
3727
3745
|
n.closed || (n.next(t), n.complete());
|
|
3728
3746
|
}, function(t) {
|
|
3729
3747
|
return n.error(t);
|
|
3730
|
-
}).then(null,
|
|
3748
|
+
}).then(null, dt);
|
|
3731
3749
|
});
|
|
3732
3750
|
}
|
|
3733
|
-
function
|
|
3751
|
+
function fo(e) {
|
|
3734
3752
|
return new R(function(n) {
|
|
3735
3753
|
var t, r;
|
|
3736
3754
|
try {
|
|
@@ -3751,41 +3769,41 @@ function so(e) {
|
|
|
3751
3769
|
n.complete();
|
|
3752
3770
|
});
|
|
3753
3771
|
}
|
|
3754
|
-
function
|
|
3772
|
+
function xt(e) {
|
|
3755
3773
|
return new R(function(n) {
|
|
3756
|
-
|
|
3774
|
+
yo(e, n).catch(function(t) {
|
|
3757
3775
|
return n.error(t);
|
|
3758
3776
|
});
|
|
3759
3777
|
});
|
|
3760
3778
|
}
|
|
3761
|
-
function
|
|
3762
|
-
return
|
|
3779
|
+
function vo(e) {
|
|
3780
|
+
return xt(wt(e));
|
|
3763
3781
|
}
|
|
3764
|
-
function
|
|
3782
|
+
function yo(e, n) {
|
|
3765
3783
|
var t, r, o, a;
|
|
3766
|
-
return
|
|
3784
|
+
return Lr(this, void 0, void 0, function() {
|
|
3767
3785
|
var l, u;
|
|
3768
|
-
return
|
|
3769
|
-
switch (
|
|
3786
|
+
return it(this, function(s) {
|
|
3787
|
+
switch (s.label) {
|
|
3770
3788
|
case 0:
|
|
3771
|
-
|
|
3789
|
+
s.trys.push([0, 5, 6, 11]), t = _r(e), s.label = 1;
|
|
3772
3790
|
case 1:
|
|
3773
3791
|
return [4, t.next()];
|
|
3774
3792
|
case 2:
|
|
3775
|
-
if (r =
|
|
3793
|
+
if (r = s.sent(), !!r.done) return [3, 4];
|
|
3776
3794
|
if (l = r.value, n.next(l), n.closed)
|
|
3777
3795
|
return [2];
|
|
3778
|
-
|
|
3796
|
+
s.label = 3;
|
|
3779
3797
|
case 3:
|
|
3780
3798
|
return [3, 1];
|
|
3781
3799
|
case 4:
|
|
3782
3800
|
return [3, 11];
|
|
3783
3801
|
case 5:
|
|
3784
|
-
return u =
|
|
3802
|
+
return u = s.sent(), o = { error: u }, [3, 11];
|
|
3785
3803
|
case 6:
|
|
3786
|
-
return
|
|
3804
|
+
return s.trys.push([6, , 9, 10]), r && !r.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
|
|
3787
3805
|
case 7:
|
|
3788
|
-
|
|
3806
|
+
s.sent(), s.label = 8;
|
|
3789
3807
|
case 8:
|
|
3790
3808
|
return [3, 10];
|
|
3791
3809
|
case 9:
|
|
@@ -3799,7 +3817,7 @@ function po(e, n) {
|
|
|
3799
3817
|
});
|
|
3800
3818
|
});
|
|
3801
3819
|
}
|
|
3802
|
-
function
|
|
3820
|
+
function Y(e, n, t, r, o) {
|
|
3803
3821
|
r === void 0 && (r = 0), o === void 0 && (o = !1);
|
|
3804
3822
|
var a = n.schedule(function() {
|
|
3805
3823
|
t(), o ? e.add(this.schedule(null, r)) : this.unsubscribe();
|
|
@@ -3807,37 +3825,37 @@ function z(e, n, t, r, o) {
|
|
|
3807
3825
|
if (e.add(a), !o)
|
|
3808
3826
|
return a;
|
|
3809
3827
|
}
|
|
3810
|
-
function
|
|
3828
|
+
function Vt(e, n) {
|
|
3811
3829
|
return n === void 0 && (n = 0), Ae(function(t, r) {
|
|
3812
|
-
t.subscribe(
|
|
3813
|
-
return
|
|
3830
|
+
t.subscribe(pt(r, function(o) {
|
|
3831
|
+
return Y(r, e, function() {
|
|
3814
3832
|
return r.next(o);
|
|
3815
3833
|
}, n);
|
|
3816
3834
|
}, function() {
|
|
3817
|
-
return
|
|
3835
|
+
return Y(r, e, function() {
|
|
3818
3836
|
return r.complete();
|
|
3819
3837
|
}, n);
|
|
3820
3838
|
}, function(o) {
|
|
3821
|
-
return
|
|
3839
|
+
return Y(r, e, function() {
|
|
3822
3840
|
return r.error(o);
|
|
3823
3841
|
}, n);
|
|
3824
3842
|
}));
|
|
3825
3843
|
});
|
|
3826
3844
|
}
|
|
3827
|
-
function
|
|
3845
|
+
function Tt(e, n) {
|
|
3828
3846
|
return n === void 0 && (n = 0), Ae(function(t, r) {
|
|
3829
3847
|
r.add(e.schedule(function() {
|
|
3830
3848
|
return t.subscribe(r);
|
|
3831
3849
|
}, n));
|
|
3832
3850
|
});
|
|
3833
3851
|
}
|
|
3834
|
-
function
|
|
3835
|
-
return Pe(e).pipe(
|
|
3852
|
+
function mo(e, n) {
|
|
3853
|
+
return Pe(e).pipe(Tt(n), Vt(n));
|
|
3836
3854
|
}
|
|
3837
|
-
function
|
|
3838
|
-
return Pe(e).pipe(
|
|
3855
|
+
function ho(e, n) {
|
|
3856
|
+
return Pe(e).pipe(Tt(n), Vt(n));
|
|
3839
3857
|
}
|
|
3840
|
-
function
|
|
3858
|
+
function bo(e, n) {
|
|
3841
3859
|
return new R(function(t) {
|
|
3842
3860
|
var r = 0;
|
|
3843
3861
|
return n.schedule(function() {
|
|
@@ -3845,11 +3863,11 @@ function yo(e, n) {
|
|
|
3845
3863
|
});
|
|
3846
3864
|
});
|
|
3847
3865
|
}
|
|
3848
|
-
function
|
|
3866
|
+
function go(e, n) {
|
|
3849
3867
|
return new R(function(t) {
|
|
3850
3868
|
var r;
|
|
3851
|
-
return
|
|
3852
|
-
r = e[
|
|
3869
|
+
return Y(t, n, function() {
|
|
3870
|
+
r = e[gt](), Y(t, n, function() {
|
|
3853
3871
|
var o, a, l;
|
|
3854
3872
|
try {
|
|
3855
3873
|
o = r.next(), a = o.value, l = o.done;
|
|
@@ -3860,17 +3878,17 @@ function mo(e, n) {
|
|
|
3860
3878
|
l ? t.complete() : t.next(a);
|
|
3861
3879
|
}, 0, !0);
|
|
3862
3880
|
}), function() {
|
|
3863
|
-
return
|
|
3881
|
+
return I(r == null ? void 0 : r.return) && r.return();
|
|
3864
3882
|
};
|
|
3865
3883
|
});
|
|
3866
3884
|
}
|
|
3867
|
-
function
|
|
3885
|
+
function Bt(e, n) {
|
|
3868
3886
|
if (!e)
|
|
3869
3887
|
throw new Error("Iterable cannot be null");
|
|
3870
3888
|
return new R(function(t) {
|
|
3871
|
-
|
|
3889
|
+
Y(t, n, function() {
|
|
3872
3890
|
var r = e[Symbol.asyncIterator]();
|
|
3873
|
-
|
|
3891
|
+
Y(t, n, function() {
|
|
3874
3892
|
r.next().then(function(o) {
|
|
3875
3893
|
o.done ? t.complete() : t.next(o.value);
|
|
3876
3894
|
});
|
|
@@ -3878,37 +3896,37 @@ function Ft(e, n) {
|
|
|
3878
3896
|
});
|
|
3879
3897
|
});
|
|
3880
3898
|
}
|
|
3881
|
-
function
|
|
3882
|
-
return
|
|
3899
|
+
function So(e, n) {
|
|
3900
|
+
return Bt(wt(e), n);
|
|
3883
3901
|
}
|
|
3884
|
-
function
|
|
3902
|
+
function wo(e, n) {
|
|
3885
3903
|
if (e != null) {
|
|
3886
|
-
if (ht(e))
|
|
3887
|
-
return fo(e, n);
|
|
3888
|
-
if (yt(e))
|
|
3889
|
-
return yo(e, n);
|
|
3890
3904
|
if (mt(e))
|
|
3891
|
-
return vo(e, n);
|
|
3892
|
-
if (bt(e))
|
|
3893
|
-
return Ft(e, n);
|
|
3894
|
-
if (wt(e))
|
|
3895
3905
|
return mo(e, n);
|
|
3896
|
-
if (
|
|
3906
|
+
if (vt(e))
|
|
3907
|
+
return bo(e, n);
|
|
3908
|
+
if (yt(e))
|
|
3897
3909
|
return ho(e, n);
|
|
3910
|
+
if (ht(e))
|
|
3911
|
+
return Bt(e, n);
|
|
3912
|
+
if (St(e))
|
|
3913
|
+
return go(e, n);
|
|
3914
|
+
if (Ct(e))
|
|
3915
|
+
return So(e, n);
|
|
3898
3916
|
}
|
|
3899
|
-
throw
|
|
3917
|
+
throw bt(e);
|
|
3900
3918
|
}
|
|
3901
|
-
function
|
|
3902
|
-
return n ?
|
|
3919
|
+
function Co(e, n) {
|
|
3920
|
+
return n ? wo(e, n) : Pe(e);
|
|
3903
3921
|
}
|
|
3904
|
-
function
|
|
3922
|
+
function xo() {
|
|
3905
3923
|
for (var e = [], n = 0; n < arguments.length; n++)
|
|
3906
3924
|
e[n] = arguments[n];
|
|
3907
|
-
var t =
|
|
3908
|
-
return
|
|
3925
|
+
var t = lo(e);
|
|
3926
|
+
return Co(e, t);
|
|
3909
3927
|
}
|
|
3910
|
-
function
|
|
3911
|
-
return n === void 0 && (n =
|
|
3928
|
+
function Vo(e, n) {
|
|
3929
|
+
return n === void 0 && (n = oo), Ae(function(t, r) {
|
|
3912
3930
|
var o = null, a = null, l = null, u = function() {
|
|
3913
3931
|
if (o) {
|
|
3914
3932
|
o.unsubscribe(), o = null;
|
|
@@ -3916,16 +3934,16 @@ function wo(e, n) {
|
|
|
3916
3934
|
a = null, r.next(i);
|
|
3917
3935
|
}
|
|
3918
3936
|
};
|
|
3919
|
-
function
|
|
3920
|
-
var i = l + e,
|
|
3921
|
-
if (
|
|
3922
|
-
o = this.schedule(void 0, i -
|
|
3937
|
+
function s() {
|
|
3938
|
+
var i = l + e, d = n.now();
|
|
3939
|
+
if (d < i) {
|
|
3940
|
+
o = this.schedule(void 0, i - d), r.add(o);
|
|
3923
3941
|
return;
|
|
3924
3942
|
}
|
|
3925
3943
|
u();
|
|
3926
3944
|
}
|
|
3927
|
-
t.subscribe(
|
|
3928
|
-
a = i, l = n.now(), o || (o = n.schedule(
|
|
3945
|
+
t.subscribe(pt(r, function(i) {
|
|
3946
|
+
a = i, l = n.now(), o || (o = n.schedule(s, e), r.add(o));
|
|
3929
3947
|
}, function() {
|
|
3930
3948
|
u(), r.complete();
|
|
3931
3949
|
}, void 0, function() {
|
|
@@ -3933,180 +3951,180 @@ function wo(e, n) {
|
|
|
3933
3951
|
}));
|
|
3934
3952
|
});
|
|
3935
3953
|
}
|
|
3936
|
-
const ye = /* @__PURE__ */
|
|
3954
|
+
const ye = /* @__PURE__ */ W({
|
|
3937
3955
|
name: "FPropertyEditor",
|
|
3938
|
-
props:
|
|
3956
|
+
props: ze,
|
|
3939
3957
|
emits: ["propertyEditorValueChanged"],
|
|
3940
3958
|
setup(e, n) {
|
|
3941
|
-
const t = y(
|
|
3959
|
+
const t = y(In), r = y(""), o = y("const"), a = y([]), l = y(!1);
|
|
3942
3960
|
let u;
|
|
3943
|
-
const
|
|
3944
|
-
let
|
|
3945
|
-
const f = y([]),
|
|
3961
|
+
const s = y(""), i = y(""), d = y([]);
|
|
3962
|
+
let c;
|
|
3963
|
+
const f = y([]), p = y("是");
|
|
3946
3964
|
y("");
|
|
3947
|
-
const v = y(!1),
|
|
3948
|
-
numberConstValue:
|
|
3949
|
-
bindVariableValue:
|
|
3950
|
-
dataStatesBindValue:
|
|
3951
|
-
dataStatesValueArray:
|
|
3952
|
-
constEnumBindValue:
|
|
3953
|
-
setValue:
|
|
3954
|
-
} =
|
|
3955
|
-
updateData:
|
|
3956
|
-
changeState:
|
|
3957
|
-
prefix:
|
|
3965
|
+
const v = y(!1), m = y("<span class='f-icon f-icon-more-horizontal'></span>"), b = y(!1), S = y([]), {
|
|
3966
|
+
numberConstValue: E,
|
|
3967
|
+
bindVariableValue: k,
|
|
3968
|
+
dataStatesBindValue: C,
|
|
3969
|
+
dataStatesValueArray: T,
|
|
3970
|
+
constEnumBindValue: g,
|
|
3971
|
+
setValue: F
|
|
3972
|
+
} = Dr(t, a, o, c, p, r, v), {
|
|
3973
|
+
updateData: A,
|
|
3974
|
+
changeState: N,
|
|
3975
|
+
prefix: q,
|
|
3958
3976
|
propertyEditorValueChange: _
|
|
3959
|
-
} =
|
|
3977
|
+
} = $r(n, t, g, a, P, f, c, p, T, r, b, o);
|
|
3960
3978
|
function K() {
|
|
3961
|
-
|
|
3979
|
+
S.value = On.value.filter((h) => t.value.editorOptions.types.includes(h.id));
|
|
3962
3980
|
}
|
|
3963
3981
|
function M() {
|
|
3964
|
-
o.value =
|
|
3982
|
+
o.value = B(S.value.find((h) => h.id === t.value.propertyValue.type));
|
|
3983
|
+
}
|
|
3984
|
+
function D() {
|
|
3985
|
+
M(), o.value.id === "variable" && t.value.propertyValue.value === void 0 && (t.value.propertyValue = B(P.value.variableValue)), P.value[`${o.value.id}Value`] = B(t.value.propertyValue), F();
|
|
3965
3986
|
}
|
|
3966
|
-
function
|
|
3967
|
-
|
|
3987
|
+
function re(h) {
|
|
3988
|
+
o.value = B(S.value.find((j) => j.label === h[0].label)), o.value.id === "expression" && (P.value.expressionValue.value && (r.value = P.value.expressionValue.value.value), v.value = !0), o.value.id === "custom" && $t(), A();
|
|
3968
3989
|
}
|
|
3969
|
-
function
|
|
3970
|
-
|
|
3990
|
+
function pe(h) {
|
|
3991
|
+
g.value = B(h.value), t.value.propertyValue.value = B(h.value), P.value.constValue.value = B(h.value), A();
|
|
3971
3992
|
}
|
|
3972
|
-
function
|
|
3973
|
-
|
|
3993
|
+
function Ft(h) {
|
|
3994
|
+
P.value.constValue.value = h, A();
|
|
3974
3995
|
}
|
|
3975
|
-
function Mt(
|
|
3976
|
-
P.value.constValue.value =
|
|
3996
|
+
function Mt(h) {
|
|
3997
|
+
P.value.constValue.value = h, A();
|
|
3977
3998
|
}
|
|
3978
|
-
function kt(
|
|
3979
|
-
|
|
3999
|
+
function kt() {
|
|
4000
|
+
const h = t.value.propertyName, j = h[0].toUpperCase() + h.substr(1), U = t.value.controlName, Ie = t.value.editorOptions.newVariablePrefix || "", Xt = Ie ? U[0].toUpperCase() + U.substr(1) : U[0].toLowerCase() + U.substr(1);
|
|
4001
|
+
u = `${Ie}${Xt}${j}`, Et();
|
|
3980
4002
|
}
|
|
3981
4003
|
function Et() {
|
|
3982
|
-
|
|
3983
|
-
u = `${Ie}${Kt}${I}`, At();
|
|
4004
|
+
At(), o.value.id === "variable" && (k.value = t.value.propertyValue.value.path), Ne(), i.value !== t.value.propertyValue.value.path && A();
|
|
3984
4005
|
}
|
|
3985
4006
|
function At() {
|
|
3986
|
-
|
|
4007
|
+
var j;
|
|
4008
|
+
let h = 0;
|
|
4009
|
+
(j = t.value.editorOptions.variables) == null || j.forEach((U) => {
|
|
4010
|
+
U.path !== u ? h += 1 : (i.value = t.value.propertyValue.value.path, t.value.propertyValue.value = B(U), P.value.variableValue.value = B(U));
|
|
4011
|
+
}), Pt(h);
|
|
3987
4012
|
}
|
|
3988
|
-
function Pt() {
|
|
3989
|
-
var
|
|
3990
|
-
|
|
3991
|
-
(I = t.value.editorOptions.variables) == null || I.forEach((U) => {
|
|
3992
|
-
U.path !== u ? m += 1 : (i.value = t.value.propertyValue.value.path, t.value.propertyValue.value = F(U), P.value.variableValue.value = F(U));
|
|
3993
|
-
}), Nt(m);
|
|
4013
|
+
function Pt(h) {
|
|
4014
|
+
var j;
|
|
4015
|
+
h === ((j = t.value.editorOptions.variables) == null ? void 0 : j.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = u, t.value.propertyValue.value.field = s, t.value.propertyValue.value.fullPath = u, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, _.value.isNewVariable = !0, t.value.editorOptions.variables.push(B(t.value.propertyValue.value)), P.value.variableValue.value = B(t.value.propertyValue.value));
|
|
3994
4016
|
}
|
|
3995
|
-
function Nt(
|
|
3996
|
-
|
|
3997
|
-
m === ((I = t.value.editorOptions.variables) == null ? void 0 : I.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = u, t.value.propertyValue.value.field = c, t.value.propertyValue.value.fullPath = u, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, _.value.isNewVariable = !0, t.value.editorOptions.variables.push(F(t.value.propertyValue.value)), P.value.variableValue.value = F(t.value.propertyValue.value));
|
|
4017
|
+
function Nt(h) {
|
|
4018
|
+
!h || !h.selections || h.selections.length < 1 || (P.value.variableValue.value.category = B(h.selections[0].category), P.value.variableValue.value.path = B(h.selections[0].path), P.value.variableValue.value.fullPath = B(h.selections[0].fullPath), P.value.variableValue.value.field = B(h.selections[0].field), k.value = B(h.value), A());
|
|
3998
4019
|
}
|
|
3999
|
-
function Ot(
|
|
4000
|
-
|
|
4001
|
-
}
|
|
4002
|
-
function It() {
|
|
4003
|
-
t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "", o.value.id === "variable" && (E.value = t.value.propertyValue.value.path), k();
|
|
4020
|
+
function Ot() {
|
|
4021
|
+
t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "", o.value.id === "variable" && (k.value = t.value.propertyValue.value.path), A();
|
|
4004
4022
|
}
|
|
4005
4023
|
function Ne() {
|
|
4006
|
-
|
|
4024
|
+
d.value = B(t.value.editorOptions.variables);
|
|
4007
4025
|
}
|
|
4008
|
-
const
|
|
4009
|
-
const
|
|
4026
|
+
const It = (h) => {
|
|
4027
|
+
const j = t.value.editorOptions.getVariables, U = {
|
|
4010
4028
|
showDialog: !0
|
|
4011
4029
|
};
|
|
4012
|
-
return
|
|
4030
|
+
return j && (d.value = j(), h && (h.data = d)), xo(U);
|
|
4013
4031
|
};
|
|
4014
|
-
function
|
|
4015
|
-
const
|
|
4016
|
-
id:
|
|
4017
|
-
name:
|
|
4018
|
-
exist:
|
|
4032
|
+
function jt(h) {
|
|
4033
|
+
const j = {
|
|
4034
|
+
id: h[0].id,
|
|
4035
|
+
name: h[0].exist,
|
|
4036
|
+
exist: h[0].name
|
|
4019
4037
|
};
|
|
4020
|
-
P.value.stateMachineValue.value =
|
|
4038
|
+
P.value.stateMachineValue.value = B(j), p.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", c = B(j.id), A();
|
|
4021
4039
|
}
|
|
4022
|
-
function
|
|
4023
|
-
f.value =
|
|
4040
|
+
function Dt() {
|
|
4041
|
+
f.value = B(t.value.editorOptions.stateMachine), p.value = P.value.stateMachineValue.value.exist === "是" ? "是" : "否";
|
|
4024
4042
|
}
|
|
4025
|
-
const Oe = new
|
|
4026
|
-
function
|
|
4027
|
-
Oe.pipe(
|
|
4028
|
-
P.value.customValue.value =
|
|
4043
|
+
const Oe = new ft();
|
|
4044
|
+
function $t() {
|
|
4045
|
+
Oe.pipe(Vo(700)).subscribe((h) => {
|
|
4046
|
+
P.value.customValue.value = h, A();
|
|
4029
4047
|
});
|
|
4030
4048
|
}
|
|
4031
|
-
function
|
|
4032
|
-
Oe.next(
|
|
4049
|
+
function Lt(h) {
|
|
4050
|
+
Oe.next(h);
|
|
4033
4051
|
}
|
|
4034
|
-
function
|
|
4052
|
+
function Ut() {
|
|
4035
4053
|
}
|
|
4036
|
-
function
|
|
4037
|
-
t.value.propertyValue.value =
|
|
4038
|
-
const
|
|
4039
|
-
|
|
4054
|
+
function _t(h) {
|
|
4055
|
+
t.value.propertyValue.value = B(h), P.value.dataStatesValue.value = B(h);
|
|
4056
|
+
const j = h.map((U) => U.valueField).join(",");
|
|
4057
|
+
C.value = B(j), A();
|
|
4040
4058
|
}
|
|
4041
|
-
function
|
|
4042
|
-
return
|
|
4059
|
+
function Rt() {
|
|
4060
|
+
return w("div", {
|
|
4043
4061
|
class: "f-page-single-property-editor-component-right-variable"
|
|
4044
|
-
}, [
|
|
4062
|
+
}, [w(G, {
|
|
4045
4063
|
class: [{
|
|
4046
4064
|
"form-control-select-show": l.value
|
|
4047
4065
|
}, {
|
|
4048
4066
|
"form-control-select-hide": !l.value
|
|
4049
4067
|
}],
|
|
4050
|
-
modelValue:
|
|
4051
|
-
"onUpdate:modelValue": (
|
|
4068
|
+
modelValue: k.value,
|
|
4069
|
+
"onUpdate:modelValue": (h) => k.value = h,
|
|
4052
4070
|
placeholder: "",
|
|
4053
4071
|
viewType: "text",
|
|
4054
4072
|
enableClear: !0,
|
|
4055
4073
|
valueField: "path",
|
|
4056
4074
|
textField: "fullPath",
|
|
4057
|
-
data:
|
|
4058
|
-
beforeShow:
|
|
4059
|
-
readonly:
|
|
4075
|
+
data: d.value,
|
|
4076
|
+
beforeShow: It,
|
|
4077
|
+
readonly: b.value,
|
|
4060
4078
|
editable: !1,
|
|
4061
|
-
onValueChange: (
|
|
4062
|
-
onClear:
|
|
4063
|
-
}, null), l.value ?
|
|
4079
|
+
onValueChange: (h) => Nt(h),
|
|
4080
|
+
onClear: Ot
|
|
4081
|
+
}, null), l.value ? w("div", {
|
|
4064
4082
|
class: "f-page-single-property-editor-component-variable-button"
|
|
4065
|
-
}, [
|
|
4083
|
+
}, [w("button", {
|
|
4066
4084
|
title: "variable-button",
|
|
4067
4085
|
class: "f-variable-button",
|
|
4068
|
-
onClick:
|
|
4069
|
-
}, [
|
|
4086
|
+
onClick: kt
|
|
4087
|
+
}, [w("span", {
|
|
4070
4088
|
class: "f-icon f-icon-add",
|
|
4071
4089
|
style: "margin:unset;"
|
|
4072
4090
|
}, null)])]) : ""]);
|
|
4073
4091
|
}
|
|
4074
|
-
function
|
|
4075
|
-
return
|
|
4092
|
+
function Gt() {
|
|
4093
|
+
return w("div", {
|
|
4076
4094
|
class: "f-page-single-property-editor-component-right-customize"
|
|
4077
|
-
}, [me(
|
|
4095
|
+
}, [me(w("input", {
|
|
4078
4096
|
class: "form-control",
|
|
4079
4097
|
placeholder: "输入自定义内容",
|
|
4080
|
-
"onUpdate:modelValue": (
|
|
4081
|
-
onChange: (
|
|
4082
|
-
disabled:
|
|
4098
|
+
"onUpdate:modelValue": (h) => P.value.customValue.value = h,
|
|
4099
|
+
onChange: (h) => Lt(h.target.value),
|
|
4100
|
+
disabled: b.value
|
|
4083
4101
|
}, null), [[De, P.value.customValue.value]])]);
|
|
4084
4102
|
}
|
|
4085
|
-
function
|
|
4086
|
-
return
|
|
4103
|
+
function Ht() {
|
|
4104
|
+
return w("div", {
|
|
4087
4105
|
class: "f-page-single-property-editor-component-right-expression"
|
|
4088
|
-
}, [
|
|
4106
|
+
}, [w(ee, {
|
|
4089
4107
|
editable: !1,
|
|
4090
4108
|
enableClear: !1,
|
|
4091
|
-
readonly:
|
|
4092
|
-
groupText:
|
|
4109
|
+
readonly: b.value,
|
|
4110
|
+
groupText: m.value,
|
|
4093
4111
|
modelValue: r.value,
|
|
4094
|
-
"onUpdate:modelValue": (
|
|
4095
|
-
onClickHandle:
|
|
4112
|
+
"onUpdate:modelValue": (h) => r.value = h,
|
|
4113
|
+
onClickHandle: Ut
|
|
4096
4114
|
}, null)]);
|
|
4097
4115
|
}
|
|
4098
|
-
function
|
|
4099
|
-
return
|
|
4116
|
+
function qt() {
|
|
4117
|
+
return w("div", {
|
|
4100
4118
|
class: "f-page-single-property-editor-component-right-stateMachine"
|
|
4101
|
-
}, [
|
|
4119
|
+
}, [w("div", {
|
|
4102
4120
|
class: "f-stateMachine-exist",
|
|
4103
|
-
onClick:
|
|
4104
|
-
}, [
|
|
4121
|
+
onClick: N
|
|
4122
|
+
}, [p.value]), w("div", {
|
|
4105
4123
|
class: "f-stateMachine-combo",
|
|
4106
4124
|
style: "border:unset"
|
|
4107
|
-
}, [
|
|
4108
|
-
modelValue:
|
|
4109
|
-
"onUpdate:modelValue": (
|
|
4125
|
+
}, [w(G, {
|
|
4126
|
+
modelValue: c,
|
|
4127
|
+
"onUpdate:modelValue": (h) => c = h,
|
|
4110
4128
|
placeholder: "",
|
|
4111
4129
|
viewType: "text",
|
|
4112
4130
|
enableClear: !1,
|
|
@@ -4114,18 +4132,18 @@ const ye = /* @__PURE__ */ q({
|
|
|
4114
4132
|
textField: "name",
|
|
4115
4133
|
data: f.value,
|
|
4116
4134
|
editable: !1,
|
|
4117
|
-
readonly:
|
|
4118
|
-
onChange: (
|
|
4119
|
-
|
|
4135
|
+
readonly: b.value,
|
|
4136
|
+
onChange: (h) => {
|
|
4137
|
+
jt(h);
|
|
4120
4138
|
}
|
|
4121
4139
|
}, null)])]);
|
|
4122
4140
|
}
|
|
4123
|
-
function
|
|
4124
|
-
return
|
|
4141
|
+
function Wt() {
|
|
4142
|
+
return w("div", {
|
|
4125
4143
|
class: "f-page-single-property-editor-component-right-dataStates"
|
|
4126
|
-
}, [
|
|
4127
|
-
modelValue:
|
|
4128
|
-
"onUpdate:modelValue": (
|
|
4144
|
+
}, [w(G, {
|
|
4145
|
+
modelValue: C.value,
|
|
4146
|
+
"onUpdate:modelValue": (h) => C.value = h,
|
|
4129
4147
|
placeholder: "",
|
|
4130
4148
|
viewType: "text",
|
|
4131
4149
|
enableClear: !1,
|
|
@@ -4134,27 +4152,27 @@ const ye = /* @__PURE__ */ q({
|
|
|
4134
4152
|
valueField: "valueField",
|
|
4135
4153
|
textField: "textField",
|
|
4136
4154
|
titleField: "titleField",
|
|
4137
|
-
data:
|
|
4155
|
+
data: T.value,
|
|
4138
4156
|
editable: !1,
|
|
4139
|
-
readonly:
|
|
4140
|
-
onChange: (
|
|
4157
|
+
readonly: b.value,
|
|
4158
|
+
onChange: (h) => _t(h)
|
|
4141
4159
|
}, null)]);
|
|
4142
4160
|
}
|
|
4143
|
-
function
|
|
4144
|
-
return me(
|
|
4161
|
+
function zt() {
|
|
4162
|
+
return me(w("input", {
|
|
4145
4163
|
class: "form-control",
|
|
4146
|
-
"onUpdate:modelValue": (
|
|
4147
|
-
onChange: (
|
|
4148
|
-
|
|
4164
|
+
"onUpdate:modelValue": (h) => P.value.constValue.value = h,
|
|
4165
|
+
onChange: (h) => {
|
|
4166
|
+
Mt(h);
|
|
4149
4167
|
},
|
|
4150
|
-
disabled:
|
|
4168
|
+
disabled: b.value,
|
|
4151
4169
|
placeholder: "输入自定义内容"
|
|
4152
4170
|
}, null), [[De, P.value.constValue.value]]);
|
|
4153
4171
|
}
|
|
4154
|
-
function
|
|
4155
|
-
return
|
|
4156
|
-
modelValue:
|
|
4157
|
-
"onUpdate:modelValue": (
|
|
4172
|
+
function Yt() {
|
|
4173
|
+
return w(G, {
|
|
4174
|
+
modelValue: g.value,
|
|
4175
|
+
"onUpdate:modelValue": (h) => g.value = h,
|
|
4158
4176
|
placeholder: "",
|
|
4159
4177
|
viewType: "text",
|
|
4160
4178
|
enableClear: !1,
|
|
@@ -4162,62 +4180,62 @@ const ye = /* @__PURE__ */ q({
|
|
|
4162
4180
|
textField: "value",
|
|
4163
4181
|
data: a.value,
|
|
4164
4182
|
editable: !1,
|
|
4165
|
-
readonly:
|
|
4166
|
-
onValueChange: (
|
|
4183
|
+
readonly: b.value,
|
|
4184
|
+
onValueChange: (h) => pe(h)
|
|
4167
4185
|
}, null);
|
|
4168
4186
|
}
|
|
4169
|
-
function
|
|
4170
|
-
return
|
|
4187
|
+
function Zt() {
|
|
4188
|
+
return w(te, {
|
|
4171
4189
|
canNull: !0,
|
|
4172
|
-
readonly:
|
|
4173
|
-
modelValue:
|
|
4174
|
-
"onUpdate:modelValue": (
|
|
4175
|
-
onValueChange: (
|
|
4176
|
-
|
|
4190
|
+
readonly: b.value,
|
|
4191
|
+
modelValue: E.value,
|
|
4192
|
+
"onUpdate:modelValue": (h) => E.value = h,
|
|
4193
|
+
onValueChange: (h) => {
|
|
4194
|
+
Ft(h);
|
|
4177
4195
|
},
|
|
4178
4196
|
class: "f-page-single-property-editor-component-const-number"
|
|
4179
4197
|
}, null);
|
|
4180
4198
|
}
|
|
4181
|
-
function
|
|
4182
|
-
return
|
|
4199
|
+
function Jt() {
|
|
4200
|
+
return w("div", {
|
|
4183
4201
|
class: "f-page-single-property-editor-component-left-controller"
|
|
4184
|
-
}, [
|
|
4202
|
+
}, [w(G, {
|
|
4185
4203
|
modelValue: o.value.id,
|
|
4186
|
-
"onUpdate:modelValue": (
|
|
4204
|
+
"onUpdate:modelValue": (h) => o.value.id = h,
|
|
4187
4205
|
placeholder: "",
|
|
4188
4206
|
enableClear: !1,
|
|
4189
4207
|
valueField: "id",
|
|
4190
4208
|
textField: "label",
|
|
4191
|
-
data:
|
|
4209
|
+
data: S.value,
|
|
4192
4210
|
editable: !1,
|
|
4193
|
-
readonly:
|
|
4194
|
-
onChange: (
|
|
4211
|
+
readonly: b.value,
|
|
4212
|
+
onChange: (h) => re(h)
|
|
4195
4213
|
}, null)]);
|
|
4196
4214
|
}
|
|
4197
|
-
function
|
|
4198
|
-
return
|
|
4215
|
+
function Qt() {
|
|
4216
|
+
return w("div", {
|
|
4199
4217
|
class: "f-page-single-property-editor-component-right-controller"
|
|
4200
|
-
}, [o.value.id === "const" ?
|
|
4218
|
+
}, [o.value.id === "const" ? w("div", {
|
|
4201
4219
|
class: "f-page-single-property-editor-component-right-const"
|
|
4202
|
-
}, [t.value.propertyType === "string" ?
|
|
4220
|
+
}, [t.value.propertyType === "string" ? zt() : "", t.value.propertyType === "enum" ? Yt() : "", t.value.propertyType === "number" ? Zt() : ""]) : "", o.value.id === "variable" ? Rt() : "", o.value.id === "custom" ? Gt() : "", o.value.id === "expression" && v.value ? Ht() : "", o.value.id === "stateMachine" ? qt() : "", o.value.id === "dataStates" ? Wt() : ""]);
|
|
4203
4221
|
}
|
|
4204
4222
|
return H(() => {
|
|
4205
|
-
K(),
|
|
4206
|
-
}), () =>
|
|
4223
|
+
K(), D(), Ne(), Dt(), t.value.hasPrefix && t.value.hasPrefix === 2 && (q.value = !0), t.value.controlName !== void 0 && (l.value = !0);
|
|
4224
|
+
}), () => w(he, null, [w("div", {
|
|
4207
4225
|
class: "f-page-single-property-editor-component clearfix"
|
|
4208
|
-
}, [
|
|
4226
|
+
}, [Jt(), Qt()])]);
|
|
4209
4227
|
}
|
|
4210
|
-
}),
|
|
4228
|
+
}), Io = {
|
|
4211
4229
|
install(e) {
|
|
4212
4230
|
e.component(ye.name, ye);
|
|
4213
4231
|
},
|
|
4214
4232
|
register(e, n, t, r) {
|
|
4215
|
-
e["property-editor"] = ye, n["property-editor"] =
|
|
4233
|
+
e["property-editor"] = ye, n["property-editor"] = Nn;
|
|
4216
4234
|
}
|
|
4217
4235
|
};
|
|
4218
4236
|
export {
|
|
4219
|
-
|
|
4237
|
+
Io as default,
|
|
4220
4238
|
ye as propertyEditor,
|
|
4221
|
-
|
|
4222
|
-
|
|
4239
|
+
ze as propertyEditorProps,
|
|
4240
|
+
Nn as propsResolver
|
|
4223
4241
|
};
|