@farris/ui-vue 1.2.7 → 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 +136 -136
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +418 -456
- package/components/avatar/index.umd.cjs +1 -1
- package/components/border-editor/index.esm.js +4 -4
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button/index.esm.js +1 -1
- package/components/button/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +363 -436
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +5 -5
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +417 -417
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +176 -176
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +557 -594
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +119 -119
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +502 -535
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +69 -69
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +387 -275
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1219 -983
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +292 -219
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +5718 -5546
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3291 -2930
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2650 -2682
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +945 -932
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +175 -133
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/discussion-editor/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +246 -246
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1319 -1172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +119 -82
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/enum-editor/index.esm.js +3 -3
- package/components/enum-editor/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +569 -514
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +104 -104
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3122 -2686
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +6780 -6608
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1466 -1523
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1048 -1035
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +422 -422
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +674 -716
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +291 -291
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +303 -230
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2486 -2130
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +7474 -7272
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6139 -5949
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +1 -1
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +432 -371
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +1124 -0
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1155 -0
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1215 -1178
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +147 -147
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1240 -1346
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +489 -428
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +220 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1512 -1540
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +749 -815
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +7074 -0
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +86 -86
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +442 -479
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +213 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +116 -116
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +943 -918
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1174 -1295
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5383 -5171
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +201 -201
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +684 -542
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +121 -121
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/spacing-editor/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +1158 -382
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +232 -232
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +451 -487
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2078 -2168
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +318 -320
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +192 -192
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +471 -497
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1421 -1441
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +430 -421
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +6806 -6624
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2793 -2433
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +165 -165
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +255 -255
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +413 -334
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +902 -902
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +54155 -52847
- package/farris.all.umd.cjs +9 -9
- 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/checkbox/index.d.ts +1 -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/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- 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 +19 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +3 -3
- package/types/dynamic-form/index.d.ts +3 -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-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- 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/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
|
@@ -1,61 +1,63 @@
|
|
|
1
1
|
var Kt = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { ref as y, defineComponent as
|
|
5
|
-
import { cloneDeep as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
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";
|
|
9
|
+
import { getSchemaByType as $e } from "../dynamic-resolver/index.esm.js";
|
|
10
|
+
import { useDesignerComponent as ln } from "../designer-canvas/index.esm.js";
|
|
9
11
|
import L from "bignumber.js";
|
|
10
|
-
import { useNumber as
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
const { properties: n, title: t } = e, o = Object.keys(n).reduce((
|
|
14
|
-
return o.id = `${t}-${Date.now()}
|
|
12
|
+
import { useNumber as un, useFormat as sn, useSpinner as cn, useTextBox as dn } from "../number-spinner/index.esm.js";
|
|
13
|
+
const qe = {}, We = {};
|
|
14
|
+
function we(e) {
|
|
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;
|
|
15
17
|
}
|
|
16
|
-
function
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
19
|
-
let o =
|
|
20
|
-
const
|
|
21
|
-
return o =
|
|
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;
|
|
22
24
|
}
|
|
23
25
|
return null;
|
|
24
26
|
}
|
|
25
|
-
function
|
|
26
|
-
const t =
|
|
27
|
-
return Object.keys(e).reduce((
|
|
27
|
+
function pn(e, n) {
|
|
28
|
+
const t = we(n);
|
|
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;
|
|
28
30
|
}
|
|
29
|
-
function
|
|
30
|
-
return Object.keys(e).filter((
|
|
31
|
-
if (n.has(
|
|
32
|
-
const a = n.get(
|
|
31
|
+
function fn(e, n) {
|
|
32
|
+
return Object.keys(e).filter((r) => e[r] != null).reduce((r, o) => {
|
|
33
|
+
if (n.has(o)) {
|
|
34
|
+
const a = n.get(o);
|
|
33
35
|
if (typeof a == "string")
|
|
34
|
-
|
|
36
|
+
r[a] = e[o];
|
|
35
37
|
else {
|
|
36
|
-
const l = a(
|
|
37
|
-
Object.assign(
|
|
38
|
+
const l = a(o, e[o], e);
|
|
39
|
+
Object.assign(r, l);
|
|
38
40
|
}
|
|
39
41
|
} else
|
|
40
|
-
o
|
|
41
|
-
return
|
|
42
|
+
r[o] = e[o];
|
|
43
|
+
return r;
|
|
42
44
|
}, {});
|
|
43
45
|
}
|
|
44
|
-
function
|
|
45
|
-
const
|
|
46
|
-
return
|
|
46
|
+
function vn(e, n, t = /* @__PURE__ */ new Map()) {
|
|
47
|
+
const r = pn(e, n);
|
|
48
|
+
return fn(r, t);
|
|
47
49
|
}
|
|
48
|
-
function
|
|
50
|
+
function yn(e = {}) {
|
|
49
51
|
function n(i, d, c, f) {
|
|
50
52
|
if (typeof c == "number")
|
|
51
53
|
return f[i].length === c;
|
|
52
54
|
if (typeof c == "object") {
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
55
|
+
const p = Object.keys(c)[0], v = c[p];
|
|
56
|
+
if (p === "not")
|
|
55
57
|
return Number(f[i].length) !== Number(v);
|
|
56
|
-
if (
|
|
58
|
+
if (p === "moreThan")
|
|
57
59
|
return Number(f[i].length) >= Number(v);
|
|
58
|
-
if (
|
|
60
|
+
if (p === "lessThan")
|
|
59
61
|
return Number(f[i].length) <= Number(v);
|
|
60
62
|
}
|
|
61
63
|
return !1;
|
|
@@ -63,49 +65,47 @@ function pn(e = {}) {
|
|
|
63
65
|
function t(i, d, c, f) {
|
|
64
66
|
return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(c);
|
|
65
67
|
}
|
|
66
|
-
const
|
|
68
|
+
const r = /* @__PURE__ */ new Map([
|
|
67
69
|
["length", n],
|
|
68
70
|
["getProperty", t]
|
|
69
71
|
]);
|
|
70
|
-
Object.keys(e).reduce((i, d) => (i.set(d, e[d]), i),
|
|
71
|
-
function
|
|
72
|
+
Object.keys(e).reduce((i, d) => (i.set(d, e[d]), i), r);
|
|
73
|
+
function o(i, d) {
|
|
72
74
|
const c = i;
|
|
73
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) => {
|
|
74
76
|
if (f === "length")
|
|
75
77
|
return { target: c, operator: "length", param: null, value: d[f] };
|
|
76
|
-
const
|
|
77
|
-
return { target: c, operator: "getProperty", param:
|
|
78
|
+
const p = f, v = d[f];
|
|
79
|
+
return { target: c, operator: "getProperty", param: p, value: v };
|
|
78
80
|
}) : [];
|
|
79
81
|
}
|
|
80
82
|
function a(i) {
|
|
81
83
|
return Object.keys(i).reduce((c, f) => {
|
|
82
|
-
const
|
|
83
|
-
return c.push(...
|
|
84
|
+
const p = o(f, i[f]);
|
|
85
|
+
return c.push(...p), c;
|
|
84
86
|
}, []);
|
|
85
87
|
}
|
|
86
88
|
function l(i, d) {
|
|
87
|
-
if (
|
|
88
|
-
const c =
|
|
89
|
+
if (r.has(i.operator)) {
|
|
90
|
+
const c = r.get(i.operator);
|
|
89
91
|
return c && c(i.target, i.param, i.value, d) || !1;
|
|
90
92
|
}
|
|
91
93
|
return !1;
|
|
92
94
|
}
|
|
93
95
|
function u(i, d) {
|
|
94
|
-
return a(i).reduce((
|
|
96
|
+
return a(i).reduce((p, v) => p && l(v, d), !0);
|
|
95
97
|
}
|
|
96
|
-
function
|
|
97
|
-
const c = Object.keys(i), f = c.includes("allOf"),
|
|
98
|
-
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);
|
|
99
101
|
}
|
|
100
|
-
return { parseValueSchema:
|
|
102
|
+
return { parseValueSchema: s };
|
|
101
103
|
}
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
104
|
+
const V = {
|
|
105
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
105
106
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
106
|
-
"response-toolbar-item": { type: "response-toolbar-item", name: "
|
|
107
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
107
108
|
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
108
|
-
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
109
109
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
110
110
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
111
111
|
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
@@ -116,118 +116,47 @@ const g = {
|
|
|
116
116
|
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
117
117
|
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
118
118
|
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
FlowLayout: { type: "FlowLayout", name: "流布局" },
|
|
123
|
-
ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
|
|
124
|
-
ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
|
|
119
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
120
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
121
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
125
122
|
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
126
|
-
|
|
127
|
-
FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
|
|
128
|
-
Form: { type: "Form", name: "卡片面板", icon: "Form" },
|
|
129
|
-
QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
|
|
123
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
130
124
|
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
131
125
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
132
|
-
|
|
133
|
-
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
126
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
134
127
|
component: { type: "component", name: "组件", icon: "Component" },
|
|
135
|
-
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
136
|
-
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
137
|
-
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
138
|
-
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
139
|
-
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
140
|
-
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
141
128
|
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
142
129
|
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
143
130
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
144
|
-
|
|
145
|
-
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
146
|
-
HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
|
|
147
|
-
ListView: { type: "ListView", name: "列表", icon: "ListView" },
|
|
148
|
-
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
149
|
-
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
150
|
-
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
131
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
151
132
|
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
WizardDetail: { type: "WizardDetail", name: "向导详情页" },
|
|
159
|
-
WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
|
|
160
|
-
Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
|
|
161
|
-
MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
|
|
162
|
-
Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
|
|
163
|
-
avatar: { type: "avatar", name: "头像", icon: "Avatar" },
|
|
164
|
-
ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
|
|
165
|
-
ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
|
|
166
|
-
NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
|
|
167
|
-
Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
|
|
168
|
-
LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
|
|
169
|
-
ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
|
|
170
|
-
FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
|
|
171
|
-
FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
|
|
172
|
-
ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
|
|
173
|
-
MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
|
|
174
|
-
MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
|
|
175
|
-
Footer: { type: "Footer", name: "页脚" },
|
|
176
|
-
DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
|
|
177
|
-
DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
|
|
178
|
-
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
179
|
-
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
180
|
-
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
133
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
134
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
135
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
136
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
137
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
138
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
181
139
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
191
|
-
HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
|
|
192
|
-
ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
|
|
193
|
-
HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
|
|
194
|
-
ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
|
|
195
|
-
OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
196
|
-
AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
197
|
-
EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
198
|
-
OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
|
|
199
|
-
CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
|
|
200
|
-
ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
|
|
201
|
-
AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
|
|
202
|
-
/** 查询类 start */
|
|
203
|
-
Charts: { type: "Charts", name: "图表", icon: "Charts" },
|
|
204
|
-
QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
|
|
205
|
-
SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
|
|
206
|
-
QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
|
|
207
|
-
QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
|
|
208
|
-
/** 查询类 end */
|
|
209
|
-
/** 审批类 start */
|
|
210
|
-
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
211
|
-
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
212
|
-
/** 审批类 end */
|
|
213
|
-
}, fn = {}, vn = {};
|
|
214
|
-
pn();
|
|
215
|
-
function ue(e, n, t = /* @__PURE__ */ new Map(), o = (l, u, p) => u, r = {}, a = (l) => l) {
|
|
216
|
-
return He[n.title] = n, Ge[n.title] = o, fn[n.title] = r, vn[n.title] = a, (l = {}) => {
|
|
217
|
-
const u = dn(l, n, t), p = Object.keys(e).reduce((i, d) => (i[d] = e[d].default, i), {});
|
|
218
|
-
return Object.assign(p, u);
|
|
140
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
141
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
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);
|
|
219
148
|
};
|
|
220
149
|
}
|
|
221
|
-
function
|
|
150
|
+
function de(e, n) {
|
|
222
151
|
return { customClass: n.class, customStyle: n.style };
|
|
223
152
|
}
|
|
224
|
-
const
|
|
225
|
-
["appearance",
|
|
153
|
+
const bn = /* @__PURE__ */ new Map([
|
|
154
|
+
["appearance", de]
|
|
226
155
|
]);
|
|
227
|
-
function
|
|
156
|
+
function gn(e, n, t) {
|
|
228
157
|
return n;
|
|
229
158
|
}
|
|
230
|
-
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 = {
|
|
231
160
|
id: {
|
|
232
161
|
description: "The unique identifier for property-editor",
|
|
233
162
|
type: "string"
|
|
@@ -289,18 +218,18 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
289
218
|
type: "boolean",
|
|
290
219
|
default: !0
|
|
291
220
|
}
|
|
292
|
-
},
|
|
221
|
+
}, Bn = [
|
|
293
222
|
"id",
|
|
294
223
|
"type"
|
|
295
|
-
],
|
|
296
|
-
$schema:
|
|
297
|
-
$id:
|
|
298
|
-
title:
|
|
299
|
-
description:
|
|
300
|
-
type:
|
|
301
|
-
properties:
|
|
302
|
-
required:
|
|
303
|
-
},
|
|
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 = {
|
|
304
233
|
basic: {
|
|
305
234
|
description: "Basic Infomation",
|
|
306
235
|
title: "基本信息",
|
|
@@ -323,11 +252,11 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
323
252
|
}
|
|
324
253
|
}
|
|
325
254
|
}, Pn = {
|
|
326
|
-
title:
|
|
327
|
-
description:
|
|
328
|
-
type:
|
|
329
|
-
categories:
|
|
330
|
-
},
|
|
255
|
+
title: Mn,
|
|
256
|
+
description: kn,
|
|
257
|
+
type: En,
|
|
258
|
+
categories: An
|
|
259
|
+
}, ze = {}, Nn = ce(ze, Fn, bn, gn, Pn), P = y({
|
|
331
260
|
/** 常量值 */
|
|
332
261
|
constValue: {
|
|
333
262
|
/** 值类型:常量(const), 变量(variable), 状态机(state), 自定义(custom) */
|
|
@@ -365,7 +294,7 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
365
294
|
type: "dataStates",
|
|
366
295
|
value: ""
|
|
367
296
|
}
|
|
368
|
-
}),
|
|
297
|
+
}), On = y([
|
|
369
298
|
{
|
|
370
299
|
id: "const",
|
|
371
300
|
label: "常量"
|
|
@@ -390,7 +319,7 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
390
319
|
id: "dataStates",
|
|
391
320
|
label: "数据状态"
|
|
392
321
|
}
|
|
393
|
-
]),
|
|
322
|
+
]), In = {
|
|
394
323
|
controlName: "userName",
|
|
395
324
|
propertyName: "readonly",
|
|
396
325
|
propertyType: "enum",
|
|
@@ -515,9 +444,9 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
515
444
|
},
|
|
516
445
|
/** 状态机是否有前缀viewModel.stateMachine && */
|
|
517
446
|
hasPrefix: 2
|
|
518
|
-
},
|
|
519
|
-
["appearance",
|
|
520
|
-
]),
|
|
447
|
+
}, jn = /* @__PURE__ */ new Map([
|
|
448
|
+
["appearance", de]
|
|
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 = {
|
|
521
450
|
id: {
|
|
522
451
|
description: "The unique identifier for a combo list",
|
|
523
452
|
type: "string"
|
|
@@ -545,6 +474,11 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
545
474
|
type: "object",
|
|
546
475
|
default: {}
|
|
547
476
|
},
|
|
477
|
+
disabled: {
|
|
478
|
+
description: "",
|
|
479
|
+
type: "boolean",
|
|
480
|
+
default: !1
|
|
481
|
+
},
|
|
548
482
|
editable: {
|
|
549
483
|
description: "",
|
|
550
484
|
type: "boolean",
|
|
@@ -572,7 +506,7 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
572
506
|
valueField: {
|
|
573
507
|
description: "",
|
|
574
508
|
type: "string",
|
|
575
|
-
default: "
|
|
509
|
+
default: "id"
|
|
576
510
|
},
|
|
577
511
|
titleField: {
|
|
578
512
|
description: "",
|
|
@@ -628,22 +562,27 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
628
562
|
type: "sting",
|
|
629
563
|
default: ""
|
|
630
564
|
}
|
|
631
|
-
},
|
|
565
|
+
}, Gn = [
|
|
632
566
|
"id",
|
|
633
567
|
"type"
|
|
634
|
-
],
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
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
|
|
642
581
|
};
|
|
643
|
-
function
|
|
582
|
+
function Wn(e, n, t) {
|
|
644
583
|
return n;
|
|
645
584
|
}
|
|
646
|
-
const
|
|
585
|
+
const Ce = {
|
|
647
586
|
/**
|
|
648
587
|
* 组件标识
|
|
649
588
|
*/
|
|
@@ -720,7 +659,7 @@ const Se = {
|
|
|
720
659
|
* 可选,是否支持多选
|
|
721
660
|
* 默认`false`
|
|
722
661
|
*/
|
|
723
|
-
multiSelect: {
|
|
662
|
+
multiSelect: { type: Boolean, default: !1 },
|
|
724
663
|
/**
|
|
725
664
|
* 绑定值
|
|
726
665
|
*/
|
|
@@ -809,11 +748,11 @@ const Se = {
|
|
|
809
748
|
},
|
|
810
749
|
// 搜索启用高亮
|
|
811
750
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
812
|
-
},
|
|
751
|
+
}, Ye = ce(Ce, qn, jn, Wn), zn = {
|
|
813
752
|
dataSource: { type: Array, default: [] },
|
|
814
753
|
enableSearch: { type: Boolean, default: !1 },
|
|
815
754
|
idField: { type: String, default: "id" },
|
|
816
|
-
multiSelect: {
|
|
755
|
+
multiSelect: { type: Boolean, default: !1 },
|
|
817
756
|
selectedValues: { type: String, default: "" },
|
|
818
757
|
separator: { type: String, default: "," },
|
|
819
758
|
textField: { type: String, default: "name" },
|
|
@@ -829,172 +768,177 @@ const Se = {
|
|
|
829
768
|
default: !1
|
|
830
769
|
},
|
|
831
770
|
// 搜索启用高亮
|
|
832
|
-
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
833
|
-
|
|
771
|
+
enableHighlightSearch: { type: Boolean, default: !0 },
|
|
772
|
+
// 是否展示复选框
|
|
773
|
+
showCheckbox: { type: Boolean, default: !1 }
|
|
774
|
+
}, Yn = /* @__PURE__ */ W({
|
|
834
775
|
name: "FComboListContainer",
|
|
835
|
-
props:
|
|
776
|
+
props: zn,
|
|
836
777
|
emits: ["selectionChange"],
|
|
837
778
|
setup(e, n) {
|
|
838
|
-
const t = y(),
|
|
839
|
-
|
|
840
|
-
|
|
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, () => {
|
|
788
|
+
r.value = e.dataSource;
|
|
841
789
|
});
|
|
842
|
-
const
|
|
843
|
-
const
|
|
844
|
-
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;
|
|
845
793
|
});
|
|
846
|
-
function
|
|
847
|
-
|
|
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);
|
|
848
796
|
}
|
|
849
|
-
function
|
|
797
|
+
function v(m) {
|
|
850
798
|
if (e.enableHighlightSearch)
|
|
851
799
|
return;
|
|
852
|
-
let
|
|
853
|
-
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);
|
|
854
802
|
}
|
|
855
|
-
return
|
|
856
|
-
|
|
857
|
-
}), () =>
|
|
858
|
-
class: "f-combo-list-container pl-
|
|
859
|
-
style:
|
|
860
|
-
}, [
|
|
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, {
|
|
861
809
|
ref: t,
|
|
862
810
|
size: "small",
|
|
863
811
|
itemClass: "f-combo-list-item",
|
|
864
|
-
header:
|
|
812
|
+
header: c.value,
|
|
865
813
|
headerClass: "f-combo-list-search-box",
|
|
866
|
-
data:
|
|
814
|
+
data: r.value,
|
|
867
815
|
idField: e.idField,
|
|
868
816
|
textField: e.textField,
|
|
869
817
|
titleField: e.titleField,
|
|
870
818
|
multiSelect: e.multiSelect,
|
|
871
|
-
selection:
|
|
872
|
-
enableSelectRow: !0,
|
|
873
|
-
multiSelect: !0,
|
|
874
|
-
multiSelectMode: "OnCheckAndClick",
|
|
875
|
-
showCheckbox: !0,
|
|
876
|
-
showSelectAll: !1,
|
|
877
|
-
showSelection: !0
|
|
878
|
-
},
|
|
819
|
+
selection: d.value,
|
|
879
820
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
880
|
-
selectionValues:
|
|
881
|
-
onSelectionChange:
|
|
882
|
-
onAfterSearch:
|
|
821
|
+
selectionValues: s.value,
|
|
822
|
+
onSelectionChange: p,
|
|
823
|
+
onAfterSearch: v
|
|
883
824
|
}, null)]);
|
|
884
825
|
}
|
|
885
826
|
});
|
|
886
|
-
function
|
|
887
|
-
const n = y(""), t = y(e.modelValue),
|
|
827
|
+
function Zn(e) {
|
|
828
|
+
const n = y(""), t = y(e.modelValue), r = y(e.data || []), o = y(e.editable);
|
|
888
829
|
function a(c) {
|
|
889
|
-
const f = String(c).split(e.separator).map((
|
|
890
|
-
return
|
|
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
|
+
});
|
|
891
835
|
}
|
|
892
836
|
function l(c) {
|
|
893
|
-
const f = a(c).map((
|
|
894
|
-
n.value =
|
|
837
|
+
const f = a(c).map((p) => p[e.textField]).join(e.separator);
|
|
838
|
+
n.value = o.value ? f || c : f;
|
|
895
839
|
}
|
|
896
840
|
function u(c) {
|
|
897
|
-
const f = c.split(e.separator).map((v) => [v, !0]),
|
|
898
|
-
return
|
|
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]));
|
|
899
843
|
}
|
|
900
|
-
function
|
|
844
|
+
function s(c) {
|
|
901
845
|
const f = {};
|
|
902
846
|
return f[e.idField] = c, f[e.textField] = c, [f];
|
|
903
847
|
}
|
|
904
848
|
function i(c) {
|
|
905
849
|
let f = u(c);
|
|
906
|
-
const
|
|
907
|
-
return
|
|
850
|
+
const p = f && f.length > 0;
|
|
851
|
+
return o.value && !p && (f = s(c)), f;
|
|
908
852
|
}
|
|
909
853
|
function d() {
|
|
910
|
-
const { url: c, method: f = "GET", headers:
|
|
911
|
-
let
|
|
912
|
-
fetch(c,
|
|
913
|
-
var
|
|
914
|
-
if (
|
|
915
|
-
return
|
|
916
|
-
throw new Error(
|
|
917
|
-
}).then((
|
|
918
|
-
|
|
919
|
-
}).catch((
|
|
920
|
-
console.error(
|
|
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);
|
|
921
865
|
});
|
|
922
866
|
}
|
|
923
|
-
return e.remote && d(),
|
|
924
|
-
|
|
925
|
-
}),
|
|
867
|
+
return e.remote && d(), O(() => e.data, () => {
|
|
868
|
+
r.value = e.data;
|
|
869
|
+
}), O([r], ([c]) => {
|
|
926
870
|
if (e.modelValue) {
|
|
927
|
-
const f = c.find((
|
|
871
|
+
const f = c.find((p) => p[e.valueField] === e.modelValue);
|
|
928
872
|
f && (n.value = f[e.textField]);
|
|
929
873
|
}
|
|
930
|
-
}),
|
|
874
|
+
}), O(() => e.modelValue, (c) => {
|
|
931
875
|
t.value = c, l(c);
|
|
932
|
-
}), l(e.modelValue), { dataSource:
|
|
876
|
+
}), l(e.modelValue), { dataSource: r, displayText: n, editable: o, modelValue: t, getItemsByDisplayText: u, getItemsByValue: a, getSelectedItemsByDisplayText: i };
|
|
933
877
|
}
|
|
934
|
-
const
|
|
878
|
+
const G = /* @__PURE__ */ W({
|
|
935
879
|
name: "FComboList",
|
|
936
|
-
props:
|
|
880
|
+
props: Ce,
|
|
937
881
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
938
882
|
setup(e, n) {
|
|
939
|
-
const t = y(),
|
|
883
|
+
const t = y(), r = y(e.disabled), o = y(e.enableClear), a = y(e.enableSearch), l = y(e.readonly), {
|
|
940
884
|
dataSource: u,
|
|
941
|
-
displayText:
|
|
885
|
+
displayText: s,
|
|
942
886
|
editable: i,
|
|
943
887
|
modelValue: d,
|
|
944
888
|
getSelectedItemsByDisplayText: c
|
|
945
|
-
} =
|
|
889
|
+
} = Zn(e), f = x(() => e.multiSelect), p = x(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
|
|
946
890
|
function v() {
|
|
947
891
|
!f.value && t.value && t.value.hidePopup();
|
|
948
892
|
}
|
|
949
|
-
function
|
|
950
|
-
|
|
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();
|
|
951
895
|
}
|
|
952
|
-
function
|
|
896
|
+
function b() {
|
|
953
897
|
l.value || t.value.togglePopup();
|
|
954
898
|
}
|
|
955
|
-
function
|
|
899
|
+
function S(T) {
|
|
956
900
|
d.value = "", n.emit("update:modelValue", ""), n.emit("clear");
|
|
957
901
|
}
|
|
958
|
-
function
|
|
959
|
-
const
|
|
960
|
-
|
|
902
|
+
function E(T) {
|
|
903
|
+
const g = c(T);
|
|
904
|
+
m(g);
|
|
961
905
|
}
|
|
962
|
-
function
|
|
963
|
-
return
|
|
906
|
+
function k() {
|
|
907
|
+
return s.value;
|
|
964
908
|
}
|
|
965
|
-
function
|
|
966
|
-
n.emit("input",
|
|
909
|
+
function C(T) {
|
|
910
|
+
n.emit("input", T);
|
|
967
911
|
}
|
|
968
912
|
return n.expose({
|
|
969
|
-
getDisplayText:
|
|
970
|
-
}),
|
|
971
|
-
|
|
972
|
-
}), () =>
|
|
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, {
|
|
973
917
|
ref: t,
|
|
974
918
|
id: e.id,
|
|
975
|
-
disable:
|
|
919
|
+
disable: r.value,
|
|
976
920
|
readonly: l.value,
|
|
977
921
|
forcePlaceholder: e.forcePlaceholder,
|
|
978
922
|
editable: i.value,
|
|
979
923
|
buttonContent: e.dropDownIcon,
|
|
980
924
|
placeholder: e.placeholder,
|
|
981
|
-
enableClear:
|
|
925
|
+
enableClear: o.value,
|
|
982
926
|
maxLength: e.maxLength,
|
|
983
927
|
tabIndex: e.tabIndex,
|
|
984
928
|
enableTitle: e.enableTitle,
|
|
985
929
|
multiSelect: e.multiSelect,
|
|
986
930
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
987
|
-
modelValue:
|
|
988
|
-
"onUpdate:modelValue": (
|
|
931
|
+
modelValue: s.value,
|
|
932
|
+
"onUpdate:modelValue": (T) => s.value = T,
|
|
989
933
|
focusOnCreated: e.focusOnCreated,
|
|
990
934
|
selectOnCreated: e.selectOnCreated,
|
|
991
|
-
onClear:
|
|
992
|
-
onClick:
|
|
993
|
-
onChange:
|
|
994
|
-
onInput:
|
|
935
|
+
onClear: S,
|
|
936
|
+
onClick: b,
|
|
937
|
+
onChange: E,
|
|
938
|
+
onInput: C,
|
|
995
939
|
beforeOpen: e.beforeOpen
|
|
996
940
|
}, {
|
|
997
|
-
default: () => [
|
|
941
|
+
default: () => [w(Yn, {
|
|
998
942
|
idField: e.idField,
|
|
999
943
|
valueField: e.valueField,
|
|
1000
944
|
textField: e.textField,
|
|
@@ -1005,16 +949,16 @@ const H = /* @__PURE__ */ q({
|
|
|
1005
949
|
enableSearch: a.value,
|
|
1006
950
|
maxHeight: e.maxHeight,
|
|
1007
951
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
1008
|
-
width: e.fitEditor ?
|
|
1009
|
-
onSelectionChange:
|
|
952
|
+
width: e.fitEditor ? p.value : void 0,
|
|
953
|
+
onSelectionChange: m
|
|
1010
954
|
}, null)]
|
|
1011
955
|
});
|
|
1012
956
|
}
|
|
1013
957
|
});
|
|
1014
|
-
function
|
|
958
|
+
function xe(e, n) {
|
|
1015
959
|
e.schema;
|
|
1016
|
-
const t = y(!0),
|
|
1017
|
-
function
|
|
960
|
+
const t = y(!0), r = y(!0);
|
|
961
|
+
function o(c) {
|
|
1018
962
|
return !1;
|
|
1019
963
|
}
|
|
1020
964
|
function a() {
|
|
@@ -1026,7 +970,7 @@ function Ce(e, n) {
|
|
|
1026
970
|
function u() {
|
|
1027
971
|
return !0;
|
|
1028
972
|
}
|
|
1029
|
-
function
|
|
973
|
+
function s(c) {
|
|
1030
974
|
}
|
|
1031
975
|
function i() {
|
|
1032
976
|
}
|
|
@@ -1034,121 +978,183 @@ function Ce(e, n) {
|
|
|
1034
978
|
return null;
|
|
1035
979
|
}
|
|
1036
980
|
return {
|
|
1037
|
-
canAccepts:
|
|
981
|
+
canAccepts: o,
|
|
1038
982
|
checkCanDeleteComponent: a,
|
|
1039
983
|
checkCanMoveComponent: l,
|
|
1040
984
|
hideNestedPaddingInDesginerView: u,
|
|
1041
|
-
onAcceptMovedChildElement:
|
|
985
|
+
onAcceptMovedChildElement: s,
|
|
1042
986
|
resolveComponentContext: i,
|
|
1043
987
|
triggerBelongedComponentToMoveWhenMoved: t,
|
|
1044
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
988
|
+
triggerBelongedComponentToDeleteWhenDeleted: r,
|
|
1045
989
|
getPropsConfig: d
|
|
1046
990
|
};
|
|
1047
991
|
}
|
|
1048
|
-
class
|
|
992
|
+
class Jn {
|
|
993
|
+
constructor(n, t) {
|
|
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", {
|
|
1006
|
+
type: "object",
|
|
1007
|
+
categories: {}
|
|
1008
|
+
});
|
|
1009
|
+
var r;
|
|
1010
|
+
this.componentId = n, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
|
|
1011
|
+
}
|
|
1012
|
+
getTableInfo() {
|
|
1013
|
+
var n;
|
|
1014
|
+
return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
|
|
1015
|
+
}
|
|
1016
|
+
setDesignViewModelField(n) {
|
|
1017
|
+
const t = n.binding && n.binding.type === "Form" && n.binding.field;
|
|
1018
|
+
if (t) {
|
|
1019
|
+
if (!this.designViewModelField) {
|
|
1020
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1021
|
+
this.designViewModelField = r.fields.find((o) => o.id === t);
|
|
1022
|
+
}
|
|
1023
|
+
n.updateOn = this.designViewModelField.updateOn;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
changeFieldEditorType(n, t) {
|
|
1027
|
+
}
|
|
1028
|
+
getBasicPropConfig(n) {
|
|
1029
|
+
return {
|
|
1030
|
+
description: "Basic Information",
|
|
1031
|
+
title: "基本信息",
|
|
1032
|
+
properties: {
|
|
1033
|
+
id: {
|
|
1034
|
+
description: "组件标识",
|
|
1035
|
+
title: "标识",
|
|
1036
|
+
type: "string",
|
|
1037
|
+
readonly: !0
|
|
1038
|
+
},
|
|
1039
|
+
type: {
|
|
1040
|
+
description: "组件类型",
|
|
1041
|
+
title: "控件类型",
|
|
1042
|
+
type: "select",
|
|
1043
|
+
editor: {
|
|
1044
|
+
type: "combo-list",
|
|
1045
|
+
textField: "name",
|
|
1046
|
+
valueField: "value",
|
|
1047
|
+
data: [{ value: n.type, name: V[n.type].name }]
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
getAppearanceConfig(n = null) {
|
|
1054
|
+
return {
|
|
1055
|
+
title: "样式",
|
|
1056
|
+
description: "Appearance",
|
|
1057
|
+
properties: {
|
|
1058
|
+
class: {
|
|
1059
|
+
title: "class样式",
|
|
1060
|
+
type: "string",
|
|
1061
|
+
description: "组件的CSS样式",
|
|
1062
|
+
$converter: "/converter/appearance.converter"
|
|
1063
|
+
},
|
|
1064
|
+
style: {
|
|
1065
|
+
title: "style样式",
|
|
1066
|
+
type: "string",
|
|
1067
|
+
description: "组件的样式",
|
|
1068
|
+
$converter: "/converter/appearance.converter"
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
};
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
const Z = class Z {
|
|
1075
|
+
/**
|
|
1076
|
+
* 根据绑定字段类型获取可用的输入类控件
|
|
1077
|
+
*/
|
|
1049
1078
|
static getEditorTypesByMDataType(n) {
|
|
1050
|
-
const t =
|
|
1079
|
+
const t = Z.fieldControlTypeMapping[n];
|
|
1051
1080
|
return t || [{ key: "", value: "" }];
|
|
1052
1081
|
}
|
|
1053
|
-
|
|
1082
|
+
/**
|
|
1083
|
+
* 获取所有输入类控件
|
|
1084
|
+
*/
|
|
1085
|
+
static getAllInputTypes() {
|
|
1086
|
+
const n = [];
|
|
1087
|
+
for (let t in Z.fieldControlTypeMapping)
|
|
1088
|
+
Z.fieldControlTypeMapping[t].forEach((r) => {
|
|
1089
|
+
n.find((o) => o.key === r.key && o.value === r.value) || n.push({ key: r.key, value: r.value });
|
|
1090
|
+
});
|
|
1091
|
+
return n;
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1054
1094
|
/**
|
|
1055
1095
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1056
1096
|
*/
|
|
1057
|
-
|
|
1097
|
+
$(Z, "fieldControlTypeMapping", {
|
|
1058
1098
|
String: [
|
|
1059
|
-
{ key:
|
|
1060
|
-
{ key:
|
|
1061
|
-
{ key:
|
|
1062
|
-
{ key:
|
|
1063
|
-
{ key:
|
|
1064
|
-
{ key:
|
|
1065
|
-
{ key:
|
|
1066
|
-
{ key: g.textarea.type, value: g.textarea.name }
|
|
1067
|
-
// { key: DgControl.Tags.type, value: DgControl.Tags.name },
|
|
1099
|
+
{ key: V["input-group"].type, value: V["input-group"].name },
|
|
1100
|
+
{ key: V.lookup.type, value: V.lookup.name },
|
|
1101
|
+
{ key: V["date-picker"].type, value: V["date-picker"].name },
|
|
1102
|
+
{ key: V["check-box"].type, value: V["check-box"].name },
|
|
1103
|
+
{ key: V["radio-group"].type, value: V["radio-group"].name },
|
|
1104
|
+
{ key: V["combo-list"].type, value: V["combo-list"].name },
|
|
1105
|
+
{ key: V.textarea.type, value: V.textarea.name }
|
|
1068
1106
|
],
|
|
1069
1107
|
Text: [
|
|
1070
|
-
{ key:
|
|
1071
|
-
{ key:
|
|
1072
|
-
{ key: g.lookup.type, value: g.lookup.name }
|
|
1108
|
+
{ key: V.textarea.type, value: V.textarea.name },
|
|
1109
|
+
{ key: V.lookup.type, value: V.lookup.name }
|
|
1073
1110
|
],
|
|
1074
1111
|
Decimal: [
|
|
1075
|
-
{ key:
|
|
1112
|
+
{ key: V["number-spinner"].type, value: V["number-spinner"].name }
|
|
1076
1113
|
],
|
|
1077
1114
|
Integer: [
|
|
1078
|
-
{ key:
|
|
1115
|
+
{ key: V["number-spinner"].type, value: V["number-spinner"].name }
|
|
1079
1116
|
],
|
|
1080
1117
|
Number: [
|
|
1081
|
-
{ key:
|
|
1118
|
+
{ key: V["number-spinner"].type, value: V["number-spinner"].name }
|
|
1082
1119
|
],
|
|
1083
1120
|
BigNumber: [
|
|
1084
|
-
{ key:
|
|
1121
|
+
{ key: V["number-spinner"].type, value: V["number-spinner"].name }
|
|
1085
1122
|
],
|
|
1086
1123
|
Date: [
|
|
1087
|
-
{ key:
|
|
1124
|
+
{ key: V["date-picker"].type, value: V["date-picker"].name }
|
|
1088
1125
|
],
|
|
1089
1126
|
DateTime: [
|
|
1090
|
-
{ key:
|
|
1127
|
+
{ key: V["date-picker"].type, value: V["date-picker"].name }
|
|
1091
1128
|
],
|
|
1092
1129
|
Boolean: [
|
|
1093
|
-
{ key:
|
|
1094
|
-
{ key:
|
|
1130
|
+
{ key: V.switch.type, value: V.switch.name },
|
|
1131
|
+
{ key: V["check-box"].type, value: V["check-box"].name }
|
|
1095
1132
|
],
|
|
1096
1133
|
Enum: [
|
|
1097
|
-
{ key:
|
|
1098
|
-
{ key:
|
|
1134
|
+
{ key: V["combo-list"].type, value: V["combo-list"].name },
|
|
1135
|
+
{ key: V["radio-group"].type, value: V["radio-group"].name }
|
|
1099
1136
|
],
|
|
1100
1137
|
Object: [
|
|
1101
|
-
{ key:
|
|
1102
|
-
{ key:
|
|
1103
|
-
{ key:
|
|
1104
|
-
],
|
|
1105
|
-
EmployeeSelector: [
|
|
1106
|
-
{ key: g.EmployeeSelector.type, value: g.EmployeeSelector.name }
|
|
1107
|
-
],
|
|
1108
|
-
AdminOrganizationSelector: [
|
|
1109
|
-
{ key: g.AdminOrganizationSelector.type, value: g.AdminOrganizationSelector.name }
|
|
1138
|
+
{ key: V.lookup.type, value: V.lookup.name },
|
|
1139
|
+
{ key: V["combo-list"].type, value: V["combo-list"].name },
|
|
1140
|
+
{ key: V["radio-group"].type, value: V["radio-group"].name }
|
|
1110
1141
|
]
|
|
1111
1142
|
});
|
|
1112
|
-
|
|
1143
|
+
let ie = Z;
|
|
1144
|
+
const Qn = y(0);
|
|
1145
|
+
class Ve extends Jn {
|
|
1113
1146
|
constructor(n, t) {
|
|
1114
|
-
|
|
1115
|
-
j(this, "viewModelId");
|
|
1116
|
-
j(this, "eventsEditorUtils");
|
|
1117
|
-
j(this, "formSchemaUtils");
|
|
1118
|
-
j(this, "formMetadataConverter");
|
|
1119
|
-
j(this, "designViewModelUtils");
|
|
1120
|
-
j(this, "designViewModelField");
|
|
1121
|
-
j(this, "controlCreatorUtils");
|
|
1122
|
-
j(this, "designerHostService");
|
|
1123
|
-
j(this, "schemaService", null);
|
|
1124
|
-
j(this, "metadataService", null);
|
|
1125
|
-
j(this, "propertyConfig", {
|
|
1126
|
-
type: "object",
|
|
1127
|
-
categories: {}
|
|
1128
|
-
});
|
|
1129
|
-
var o;
|
|
1130
|
-
this.componentId = n, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
|
|
1131
|
-
}
|
|
1132
|
-
getTableInfo() {
|
|
1133
|
-
var n;
|
|
1134
|
-
return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
|
|
1135
|
-
}
|
|
1136
|
-
setDesignViewModelField(n) {
|
|
1137
|
-
const t = n.binding && n.binding.type === "Form" && n.binding.field;
|
|
1138
|
-
if (t) {
|
|
1139
|
-
if (!this.designViewModelField) {
|
|
1140
|
-
const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1141
|
-
this.designViewModelField = o.fields.find((r) => r.id === t);
|
|
1142
|
-
}
|
|
1143
|
-
n.updateOn = this.designViewModelField.updateOn;
|
|
1144
|
-
}
|
|
1147
|
+
super(n, t);
|
|
1145
1148
|
}
|
|
1146
|
-
|
|
1149
|
+
getPropertyConfig(n, t) {
|
|
1150
|
+
return this.propertyConfig.categories.basic = this.getBasicProperties(n, t), this.propertyConfig.categories.appearance = this.getAppearanceProperties(n), this.propertyConfig.categories.editor = this.getEditorProperties(n), this.propertyConfig;
|
|
1147
1151
|
}
|
|
1148
|
-
|
|
1149
|
-
var
|
|
1150
|
-
var
|
|
1151
|
-
|
|
1152
|
+
getBasicProperties(n, t) {
|
|
1153
|
+
var l;
|
|
1154
|
+
var r = this;
|
|
1155
|
+
this.setDesignViewModelField(n);
|
|
1156
|
+
const o = this.formSchemaUtils.getFormMetadataBasicInfo(), a = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
1157
|
+
return {
|
|
1152
1158
|
description: "Basic Information",
|
|
1153
1159
|
title: "基本信息",
|
|
1154
1160
|
properties: {
|
|
@@ -1159,8 +1165,8 @@ class zn {
|
|
|
1159
1165
|
readonly: !0
|
|
1160
1166
|
},
|
|
1161
1167
|
type: {
|
|
1162
|
-
description: "
|
|
1163
|
-
title: "
|
|
1168
|
+
description: "编辑器类型",
|
|
1169
|
+
title: "编辑器类型",
|
|
1164
1170
|
type: "string",
|
|
1165
1171
|
refreshPanelAfterChanged: !0,
|
|
1166
1172
|
$converter: "/converter/change-editor.converter",
|
|
@@ -1168,63 +1174,52 @@ class zn {
|
|
|
1168
1174
|
type: "combo-list",
|
|
1169
1175
|
textField: "value",
|
|
1170
1176
|
valueField: "key",
|
|
1171
|
-
|
|
1172
|
-
|
|
1177
|
+
editable: !1,
|
|
1178
|
+
data: r.designViewModelField ? ie.getEditorTypesByMDataType((l = r.designViewModelField.type) == null ? void 0 : l.name) : ie.getAllInputTypes()
|
|
1173
1179
|
}
|
|
1174
1180
|
},
|
|
1175
1181
|
label: {
|
|
1176
1182
|
title: "标签",
|
|
1177
1183
|
type: "string",
|
|
1178
1184
|
$converter: "/converter/form-group-label.converter"
|
|
1185
|
+
},
|
|
1186
|
+
binding: {
|
|
1187
|
+
description: "绑定的表单字段",
|
|
1188
|
+
title: "绑定",
|
|
1189
|
+
$converter: "/converter/field-selector.converter",
|
|
1190
|
+
editor: {
|
|
1191
|
+
type: "field-selector",
|
|
1192
|
+
bindingType: { enable: !1 },
|
|
1193
|
+
editorParams: {
|
|
1194
|
+
propertyData: n,
|
|
1195
|
+
formBasicInfo: o
|
|
1196
|
+
},
|
|
1197
|
+
columns: [
|
|
1198
|
+
{ field: "name", title: "字段名称" },
|
|
1199
|
+
{ field: "bindingField", title: "绑定字段" },
|
|
1200
|
+
{ field: "fieldType", title: "字段类型" }
|
|
1201
|
+
],
|
|
1202
|
+
textField: "bindingField",
|
|
1203
|
+
data: a
|
|
1204
|
+
}
|
|
1179
1205
|
}
|
|
1180
1206
|
},
|
|
1181
|
-
setPropertyRelates(
|
|
1182
|
-
if (
|
|
1183
|
-
switch (
|
|
1207
|
+
setPropertyRelates(u, s) {
|
|
1208
|
+
if (u)
|
|
1209
|
+
switch (u && u.propertyID) {
|
|
1184
1210
|
case "type": {
|
|
1185
|
-
|
|
1211
|
+
r.changeControlType(n, u, t);
|
|
1212
|
+
break;
|
|
1213
|
+
}
|
|
1214
|
+
case "label": {
|
|
1215
|
+
u.needRefreshControlTree = !0;
|
|
1186
1216
|
break;
|
|
1187
1217
|
}
|
|
1188
1218
|
}
|
|
1189
1219
|
}
|
|
1190
1220
|
};
|
|
1191
1221
|
}
|
|
1192
|
-
|
|
1193
|
-
* 卡片控件:切换控件类型后事件
|
|
1194
|
-
* @param propertyData 控件DOM属性
|
|
1195
|
-
* @param newControlType 新控件类型
|
|
1196
|
-
*/
|
|
1197
|
-
changeControlType(n, t) {
|
|
1198
|
-
var i, d, c, f, s;
|
|
1199
|
-
const o = t.propertyValue, r = this.formSchemaUtils.getComponentById(this.componentId);
|
|
1200
|
-
let a = this.getControlParentContainer(n.id, r);
|
|
1201
|
-
if (!a)
|
|
1202
|
-
return;
|
|
1203
|
-
const l = a.contents.findIndex((v) => v.id === n.id), u = a.contents[l];
|
|
1204
|
-
let p;
|
|
1205
|
-
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1206
|
-
editor: {
|
|
1207
|
-
$type: o
|
|
1208
|
-
},
|
|
1209
|
-
name: this.designViewModelField.name,
|
|
1210
|
-
require: this.designViewModelField.require,
|
|
1211
|
-
readonly: this.designViewModelField.readonly
|
|
1212
|
-
}, !1), p = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(p, {
|
|
1213
|
-
id: u.id,
|
|
1214
|
-
appearance: u.appearance,
|
|
1215
|
-
size: u.size,
|
|
1216
|
-
label: u.label
|
|
1217
|
-
}), Object.assign(p.editor, {
|
|
1218
|
-
isTextArea: p.isTextArea && u.isTextArea,
|
|
1219
|
-
type: o || "",
|
|
1220
|
-
placeHolder: (i = u.editor) == null ? void 0 : i.placeHolder,
|
|
1221
|
-
holdPlace: (d = u.editor) == null ? void 0 : d.holdPlace,
|
|
1222
|
-
readonly: (c = u.editor) == null ? void 0 : c.readonly,
|
|
1223
|
-
require: (f = u.editor) == null ? void 0 : f.require,
|
|
1224
|
-
visible: (s = u.editor) == null ? void 0 : s.visible
|
|
1225
|
-
}), a.contents.splice(l, 1, p);
|
|
1226
|
-
}
|
|
1227
|
-
getAppearanceConfig(n = null) {
|
|
1222
|
+
getAppearanceProperties(n) {
|
|
1228
1223
|
return {
|
|
1229
1224
|
title: "样式",
|
|
1230
1225
|
description: "Appearance",
|
|
@@ -1254,70 +1249,49 @@ class zn {
|
|
|
1254
1249
|
}
|
|
1255
1250
|
};
|
|
1256
1251
|
}
|
|
1257
|
-
/**
|
|
1258
|
-
* 获取控件:以contents为节点进行定位
|
|
1259
|
-
* @param controlId 控件ID
|
|
1260
|
-
* @param domJson 容器
|
|
1261
|
-
*/
|
|
1262
|
-
getControlParentContainer(n, t) {
|
|
1263
|
-
let o;
|
|
1264
|
-
if (!t || !t.contents || t.contents.length === 0)
|
|
1265
|
-
return null;
|
|
1266
|
-
for (const r of t.contents) {
|
|
1267
|
-
if (r.id === n)
|
|
1268
|
-
return o = t, t;
|
|
1269
|
-
if (o = this.getControlParentContainer(n, r), o)
|
|
1270
|
-
return o;
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
}
|
|
1274
|
-
class we extends zn {
|
|
1275
|
-
constructor(n, t) {
|
|
1276
|
-
super(n, t);
|
|
1277
|
-
}
|
|
1278
|
-
getBasicProperties(n) {
|
|
1279
|
-
let t = this.getBasicPropConfig(n);
|
|
1280
|
-
return t.properties.binding = this.getFieldSelectorOptions(n), t;
|
|
1281
|
-
}
|
|
1282
|
-
getAppearanceProperties(n) {
|
|
1283
|
-
return this.getAppearanceConfig(n);
|
|
1284
|
-
}
|
|
1285
1252
|
getEditorProperties(n) {
|
|
1286
1253
|
return this.getComponentConfig(n);
|
|
1287
1254
|
}
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1255
|
+
/**
|
|
1256
|
+
* 卡片控件:切换控件类型后事件
|
|
1257
|
+
* @param propertyData 控件DOM属性
|
|
1258
|
+
* @param newControlType 新控件类型
|
|
1259
|
+
*/
|
|
1260
|
+
changeControlType(n, t, r) {
|
|
1261
|
+
var i, d, c, f;
|
|
1262
|
+
const o = t.propertyValue, a = r && r.parent && r.parent.schema;
|
|
1263
|
+
if (!a)
|
|
1264
|
+
return;
|
|
1265
|
+
const l = a.contents.findIndex((p) => p.id === n.id), u = a.contents[l];
|
|
1266
|
+
let s;
|
|
1267
|
+
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1297
1268
|
editor: {
|
|
1298
|
-
type:
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1269
|
+
$type: o
|
|
1270
|
+
},
|
|
1271
|
+
name: this.designViewModelField.name,
|
|
1272
|
+
require: this.designViewModelField.require,
|
|
1273
|
+
readonly: this.designViewModelField.readonly
|
|
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, {
|
|
1275
|
+
id: u.id,
|
|
1276
|
+
appearance: u.appearance,
|
|
1277
|
+
size: u.size,
|
|
1278
|
+
label: u.label,
|
|
1279
|
+
binding: u.binding,
|
|
1280
|
+
visible: u.visible
|
|
1281
|
+
}), Object.assign(s.editor, {
|
|
1282
|
+
isTextArea: s.isTextArea && u.isTextArea,
|
|
1283
|
+
placeholder: (i = u.editor) == null ? void 0 : i.placeholder,
|
|
1284
|
+
holdPlace: (d = u.editor) == null ? void 0 : d.holdPlace,
|
|
1285
|
+
readonly: (c = u.editor) == null ? void 0 : c.readonly,
|
|
1286
|
+
require: (f = u.editor) == null ? void 0 : f.require
|
|
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++;
|
|
1290
|
+
}
|
|
1291
|
+
getComponentConfig(n, t = {}, r = {}) {
|
|
1292
|
+
const o = Object.assign({
|
|
1293
|
+
description: "编辑器",
|
|
1294
|
+
title: "编辑器",
|
|
1321
1295
|
type: "input-group",
|
|
1322
1296
|
$converter: "/converter/property-editor.converter"
|
|
1323
1297
|
}, t), a = Object.assign({
|
|
@@ -1341,11 +1315,11 @@ class we extends zn {
|
|
|
1341
1315
|
title: "提示文本",
|
|
1342
1316
|
type: "string"
|
|
1343
1317
|
}
|
|
1344
|
-
},
|
|
1345
|
-
return { ...
|
|
1318
|
+
}, r);
|
|
1319
|
+
return { ...o, properties: { ...a } };
|
|
1346
1320
|
}
|
|
1347
1321
|
}
|
|
1348
|
-
class
|
|
1322
|
+
class Xn extends Ve {
|
|
1349
1323
|
constructor(n, t) {
|
|
1350
1324
|
super(n, t);
|
|
1351
1325
|
}
|
|
@@ -1369,77 +1343,70 @@ class Wn extends we {
|
|
|
1369
1343
|
});
|
|
1370
1344
|
}
|
|
1371
1345
|
}
|
|
1372
|
-
function
|
|
1346
|
+
function Kn(e, n) {
|
|
1373
1347
|
const {
|
|
1374
1348
|
canAccepts: t,
|
|
1375
|
-
checkCanDeleteComponent:
|
|
1376
|
-
checkCanMoveComponent:
|
|
1349
|
+
checkCanDeleteComponent: r,
|
|
1350
|
+
checkCanMoveComponent: o,
|
|
1377
1351
|
hideNestedPaddingInDesginerView: a,
|
|
1378
1352
|
onAcceptMovedChildElement: l,
|
|
1379
1353
|
resolveComponentContext: u,
|
|
1380
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1354
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
1381
1355
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
1382
|
-
} =
|
|
1383
|
-
function c(f) {
|
|
1384
|
-
return new
|
|
1356
|
+
} = xe(e), d = e.schema;
|
|
1357
|
+
function c(f, p) {
|
|
1358
|
+
return new Xn(f, n).getPropertyConfig(d, p);
|
|
1385
1359
|
}
|
|
1386
1360
|
return {
|
|
1387
1361
|
canAccepts: t,
|
|
1388
|
-
checkCanDeleteComponent:
|
|
1389
|
-
checkCanMoveComponent:
|
|
1362
|
+
checkCanDeleteComponent: r,
|
|
1363
|
+
checkCanMoveComponent: o,
|
|
1390
1364
|
hideNestedPaddingInDesginerView: a,
|
|
1391
1365
|
onAcceptMovedChildElement: l,
|
|
1392
1366
|
resolveComponentContext: u,
|
|
1393
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1367
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
1394
1368
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
1395
1369
|
getPropsConfig: c
|
|
1396
1370
|
};
|
|
1397
1371
|
}
|
|
1398
|
-
const
|
|
1372
|
+
const er = /* @__PURE__ */ W({
|
|
1399
1373
|
name: "FComboListDesign",
|
|
1400
|
-
props:
|
|
1374
|
+
props: Ce,
|
|
1401
1375
|
emits: ["clear", "update:modelValue", "change"],
|
|
1402
1376
|
setup(e, n) {
|
|
1403
|
-
const t = y(),
|
|
1404
|
-
return
|
|
1377
|
+
const t = y(), r = Q("designer-host-service"), o = Q("design-item-context"), a = Kn(o, r), l = ln(t, o, a);
|
|
1378
|
+
return H(() => {
|
|
1405
1379
|
t.value.componentInstance = l;
|
|
1406
|
-
}), n.expose(l.value), () =>
|
|
1380
|
+
}), n.expose(l.value), () => w(an, {
|
|
1407
1381
|
ref: t,
|
|
1408
|
-
id: e.id,
|
|
1409
|
-
disable: e.disabled,
|
|
1410
|
-
readonly: e.readonly,
|
|
1411
|
-
forcePlaceholder: e.forcePlaceholder,
|
|
1412
|
-
editable: !1,
|
|
1413
1382
|
buttonContent: e.dropDownIcon,
|
|
1383
|
+
readonly: !0,
|
|
1384
|
+
editable: !1,
|
|
1385
|
+
forcePlaceholder: !0,
|
|
1414
1386
|
placeholder: e.placeholder,
|
|
1415
|
-
enableClear: !
|
|
1416
|
-
maxLength: e.maxLength,
|
|
1417
|
-
tabIndex: e.tabIndex,
|
|
1418
|
-
enableTitle: e.enableTitle,
|
|
1419
|
-
multiSelect: e.multiSelect,
|
|
1420
|
-
inputType: e.multiSelect ? "tag" : "text"
|
|
1387
|
+
enableClear: !0
|
|
1421
1388
|
}, null);
|
|
1422
1389
|
}
|
|
1423
|
-
}),
|
|
1390
|
+
}), Te = (e) => {
|
|
1424
1391
|
const n = e;
|
|
1425
1392
|
return n.install = function(t) {
|
|
1426
1393
|
t.component(n.name, e);
|
|
1427
1394
|
}, e;
|
|
1428
1395
|
};
|
|
1429
|
-
|
|
1430
|
-
e["combo-list"] =
|
|
1396
|
+
G.register = (e, n, t, r) => {
|
|
1397
|
+
e["combo-list"] = G, n["combo-list"] = Ye;
|
|
1431
1398
|
};
|
|
1432
|
-
|
|
1433
|
-
e["combo-list"] =
|
|
1399
|
+
G.registerDesigner = (e, n, t) => {
|
|
1400
|
+
e["combo-list"] = er, n["combo-list"] = Ye;
|
|
1434
1401
|
};
|
|
1435
|
-
|
|
1436
|
-
const
|
|
1437
|
-
["appearance",
|
|
1402
|
+
Te(G);
|
|
1403
|
+
const tr = /* @__PURE__ */ new Map([
|
|
1404
|
+
["appearance", de]
|
|
1438
1405
|
]);
|
|
1439
|
-
function
|
|
1406
|
+
function nr(e, n, t) {
|
|
1440
1407
|
return n;
|
|
1441
1408
|
}
|
|
1442
|
-
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 = {
|
|
1443
1410
|
id: {
|
|
1444
1411
|
description: "The unique identifier for a Input Group",
|
|
1445
1412
|
type: "string"
|
|
@@ -1641,18 +1608,18 @@ const Kn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-
|
|
|
1641
1608
|
type: "string",
|
|
1642
1609
|
default: ""
|
|
1643
1610
|
}
|
|
1644
|
-
},
|
|
1611
|
+
}, sr = [
|
|
1645
1612
|
"id",
|
|
1646
1613
|
"type"
|
|
1647
|
-
],
|
|
1648
|
-
$schema:
|
|
1649
|
-
$id:
|
|
1650
|
-
title:
|
|
1651
|
-
description:
|
|
1652
|
-
type:
|
|
1653
|
-
properties:
|
|
1654
|
-
required:
|
|
1655
|
-
},
|
|
1614
|
+
], cr = {
|
|
1615
|
+
$schema: rr,
|
|
1616
|
+
$id: or,
|
|
1617
|
+
title: ar,
|
|
1618
|
+
description: ir,
|
|
1619
|
+
type: lr,
|
|
1620
|
+
properties: ur,
|
|
1621
|
+
required: sr
|
|
1622
|
+
}, Be = {
|
|
1656
1623
|
/** 是否自动完成 */
|
|
1657
1624
|
autocomplete: { Type: String, default: "off" },
|
|
1658
1625
|
/** 自定义CLASS */
|
|
@@ -1718,118 +1685,118 @@ const Kn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-
|
|
|
1718
1685
|
* - input: 输入时更新
|
|
1719
1686
|
*/
|
|
1720
1687
|
updateOn: { type: String, default: "blur" }
|
|
1721
|
-
},
|
|
1722
|
-
function
|
|
1723
|
-
const
|
|
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(() => ({
|
|
1724
1691
|
"form-control": !0,
|
|
1725
1692
|
"f-utils-fill": !0,
|
|
1726
|
-
"text-left":
|
|
1727
|
-
"text-center":
|
|
1728
|
-
"text-right":
|
|
1729
|
-
})),
|
|
1693
|
+
"text-left": s.value === "left",
|
|
1694
|
+
"text-center": s.value === "center",
|
|
1695
|
+
"text-right": s.value === "right"
|
|
1696
|
+
})), E = x(() => {
|
|
1730
1697
|
const M = {
|
|
1731
1698
|
"f-cmp-inputgroup": !0,
|
|
1732
1699
|
"input-group": !0,
|
|
1733
|
-
"f-state-disable":
|
|
1700
|
+
"f-state-disable": o.value,
|
|
1734
1701
|
"f-state-editable": c.value,
|
|
1735
|
-
"f-state-readonly":
|
|
1702
|
+
"f-state-readonly": m.value,
|
|
1736
1703
|
"f-state-focus": f.value
|
|
1737
1704
|
};
|
|
1738
|
-
return (e.customClass || "").split(" ").reduce((
|
|
1739
|
-
}),
|
|
1740
|
-
function
|
|
1741
|
-
t.value = M,
|
|
1705
|
+
return (e.customClass || "").split(" ").reduce((re, pe) => (re[pe] = !0, re), M), 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);
|
|
1742
1709
|
}
|
|
1743
|
-
|
|
1710
|
+
O(
|
|
1744
1711
|
() => e.modelValue,
|
|
1745
1712
|
(M, D) => {
|
|
1746
|
-
M !== D && (t.value = M,
|
|
1713
|
+
M !== D && (t.value = M, r.value = M);
|
|
1747
1714
|
}
|
|
1748
|
-
),
|
|
1749
|
-
M !== D && (
|
|
1715
|
+
), O(() => e.disabled, (M, D) => {
|
|
1716
|
+
M !== D && (o.value = M);
|
|
1750
1717
|
});
|
|
1751
|
-
function
|
|
1718
|
+
function T(M) {
|
|
1752
1719
|
return a.value = !1, n.emit("blur", M), M.stopPropagation(), !1;
|
|
1753
1720
|
}
|
|
1754
|
-
function
|
|
1721
|
+
function g(M) {
|
|
1755
1722
|
n.emit("click", M);
|
|
1756
1723
|
}
|
|
1757
|
-
function
|
|
1724
|
+
function F(M) {
|
|
1758
1725
|
e.disabled || (u.value && (a.value = !0), d.value && n.emit("focus", M));
|
|
1759
1726
|
}
|
|
1760
|
-
function
|
|
1727
|
+
function A(M) {
|
|
1761
1728
|
n.emit("input", M.target.value);
|
|
1762
1729
|
const D = M.target.value;
|
|
1763
|
-
|
|
1730
|
+
r.value = D, i.value === "input" && (n.emit("update:modelValue", D), n.emit("update:value", D));
|
|
1764
1731
|
}
|
|
1765
|
-
function
|
|
1732
|
+
function N(M) {
|
|
1766
1733
|
n.emit("keydown", M);
|
|
1767
1734
|
}
|
|
1768
|
-
function
|
|
1735
|
+
function q(M) {
|
|
1769
1736
|
n.emit("keyup", M);
|
|
1770
1737
|
}
|
|
1771
|
-
function
|
|
1738
|
+
function _(M) {
|
|
1772
1739
|
M.target.tagName !== "INPUT" && M.preventDefault(), M.stopPropagation();
|
|
1773
1740
|
}
|
|
1774
1741
|
function K(M) {
|
|
1775
1742
|
if (i.value === "blur") {
|
|
1776
1743
|
const D = M.target.value;
|
|
1777
|
-
M.stopPropagation(),
|
|
1744
|
+
M.stopPropagation(), C(D);
|
|
1778
1745
|
}
|
|
1779
1746
|
}
|
|
1780
1747
|
return {
|
|
1781
|
-
changeTextBoxValue:
|
|
1782
|
-
disabled:
|
|
1783
|
-
displayText:
|
|
1748
|
+
changeTextBoxValue: C,
|
|
1749
|
+
disabled: o,
|
|
1750
|
+
displayText: r,
|
|
1784
1751
|
editable: c,
|
|
1785
1752
|
hasFocused: f,
|
|
1786
|
-
inputGroupClass:
|
|
1753
|
+
inputGroupClass: E,
|
|
1787
1754
|
inputType: l,
|
|
1788
|
-
isEmpty:
|
|
1755
|
+
isEmpty: p,
|
|
1789
1756
|
modelValue: t,
|
|
1790
|
-
readonly:
|
|
1791
|
-
onBlur:
|
|
1792
|
-
onClick:
|
|
1793
|
-
onFocus:
|
|
1794
|
-
onInput:
|
|
1795
|
-
onKeydown:
|
|
1796
|
-
onKeyup:
|
|
1797
|
-
onMousedown:
|
|
1757
|
+
readonly: m,
|
|
1758
|
+
onBlur: T,
|
|
1759
|
+
onClick: g,
|
|
1760
|
+
onFocus: F,
|
|
1761
|
+
onInput: A,
|
|
1762
|
+
onKeydown: N,
|
|
1763
|
+
onKeyup: q,
|
|
1764
|
+
onMousedown: _,
|
|
1798
1765
|
onTextBoxValueChange: K,
|
|
1799
1766
|
placeholder: v,
|
|
1800
|
-
textBoxClass:
|
|
1801
|
-
textBoxTitle:
|
|
1802
|
-
inputGroupStyle:
|
|
1767
|
+
textBoxClass: S,
|
|
1768
|
+
textBoxTitle: b,
|
|
1769
|
+
inputGroupStyle: k
|
|
1803
1770
|
};
|
|
1804
1771
|
}
|
|
1805
|
-
function
|
|
1806
|
-
const
|
|
1807
|
-
|
|
1808
|
-
const i =
|
|
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);
|
|
1774
|
+
x(() => e.editable || !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(() => ({
|
|
1809
1776
|
"form-control": !0,
|
|
1810
1777
|
// 'f-utils-fill': true,
|
|
1811
|
-
"text-left":
|
|
1812
|
-
"text-center":
|
|
1813
|
-
"text-right":
|
|
1814
|
-
})),
|
|
1778
|
+
"text-left": s.value === "left",
|
|
1779
|
+
"text-center": s.value === "center",
|
|
1780
|
+
"text-right": s.value === "right"
|
|
1781
|
+
})), b = x(() => ({
|
|
1815
1782
|
"f-cmp-inputgroup": !0,
|
|
1816
1783
|
"input-group": !0,
|
|
1817
1784
|
"f-state-disable": !0,
|
|
1818
1785
|
"f-state-editable": !1,
|
|
1819
1786
|
"f-state-readonly": !0
|
|
1820
1787
|
// 'f-state-focus': hasFocused.value
|
|
1821
|
-
})),
|
|
1788
|
+
})), S = x(() => u.value ? "" : "border-width : 0 ");
|
|
1822
1789
|
return {
|
|
1823
1790
|
// changeTextBoxValue,
|
|
1824
|
-
disabled:
|
|
1825
|
-
displayText:
|
|
1791
|
+
disabled: o,
|
|
1792
|
+
displayText: r,
|
|
1826
1793
|
editable: i,
|
|
1827
1794
|
hasFocused: d,
|
|
1828
|
-
inputGroupClass:
|
|
1795
|
+
inputGroupClass: b,
|
|
1829
1796
|
inputType: l,
|
|
1830
1797
|
isEmpty: c,
|
|
1831
1798
|
modelValue: t,
|
|
1832
|
-
readonly:
|
|
1799
|
+
readonly: p,
|
|
1833
1800
|
// onBlur,
|
|
1834
1801
|
// onClick,
|
|
1835
1802
|
// onFocus,
|
|
@@ -1839,369 +1806,369 @@ function lo(e, n, t, o) {
|
|
|
1839
1806
|
// onMousedown,
|
|
1840
1807
|
// onTextBoxValueChange,
|
|
1841
1808
|
placeholder: f,
|
|
1842
|
-
textBoxClass:
|
|
1809
|
+
textBoxClass: m,
|
|
1843
1810
|
textBoxTitle: v,
|
|
1844
|
-
inputGroupStyle:
|
|
1811
|
+
inputGroupStyle: S
|
|
1845
1812
|
};
|
|
1846
1813
|
}
|
|
1847
|
-
function
|
|
1848
|
-
const
|
|
1849
|
-
function i(
|
|
1850
|
-
|
|
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;
|
|
1851
1818
|
}
|
|
1852
|
-
|
|
1819
|
+
O(l, () => {
|
|
1853
1820
|
u != null && u.value ? i(!!(l != null && l.value)) : i(!1);
|
|
1854
1821
|
});
|
|
1855
|
-
const d =
|
|
1822
|
+
const d = x(() => ({
|
|
1856
1823
|
"input-group-text": !0,
|
|
1857
1824
|
"input-group-clear": !0
|
|
1858
|
-
})), c =
|
|
1825
|
+
})), c = x(() => ({
|
|
1859
1826
|
width: "24px",
|
|
1860
|
-
display:
|
|
1827
|
+
display: r.value ? "flex" : "none"
|
|
1861
1828
|
}));
|
|
1862
|
-
function f(
|
|
1863
|
-
|
|
1829
|
+
function f(m) {
|
|
1830
|
+
m.stopPropagation(), o.value && (a("", !0), i(!r.value), n.emit("clear"));
|
|
1864
1831
|
}
|
|
1865
|
-
function
|
|
1866
|
-
|
|
1832
|
+
function p(m) {
|
|
1833
|
+
o.value && !s.value && i(!0);
|
|
1867
1834
|
}
|
|
1868
|
-
function v(
|
|
1869
|
-
|
|
1835
|
+
function v(m) {
|
|
1836
|
+
o.value && i(!1);
|
|
1870
1837
|
}
|
|
1871
|
-
return { clearButtonClass: d, clearButtonStyle: c, hasShownClearButton:
|
|
1838
|
+
return { clearButtonClass: d, clearButtonStyle: c, hasShownClearButton: r, onClearValue: f, onMouseEnter: p, onMouseLeave: v, shouldShowClearButton: o };
|
|
1872
1839
|
}
|
|
1873
|
-
const
|
|
1874
|
-
function
|
|
1840
|
+
const fr = ["moz", "ms", "webkit"];
|
|
1841
|
+
function vr() {
|
|
1875
1842
|
let e = 0;
|
|
1876
1843
|
return (n) => {
|
|
1877
|
-
const t = (/* @__PURE__ */ new Date()).getTime(),
|
|
1878
|
-
n(t +
|
|
1879
|
-
},
|
|
1880
|
-
return e = t +
|
|
1844
|
+
const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - e)), o = setTimeout(() => {
|
|
1845
|
+
n(t + r);
|
|
1846
|
+
}, r);
|
|
1847
|
+
return e = t + r, o;
|
|
1881
1848
|
};
|
|
1882
1849
|
}
|
|
1883
|
-
function
|
|
1850
|
+
function yr() {
|
|
1884
1851
|
if (typeof window > "u")
|
|
1885
1852
|
return () => 0;
|
|
1886
1853
|
if (window.requestAnimationFrame)
|
|
1887
1854
|
return window.requestAnimationFrame.bind(window);
|
|
1888
|
-
const e =
|
|
1889
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
1855
|
+
const e = fr.filter((n) => `${n}RequestAnimationFrame` in window)[0];
|
|
1856
|
+
return e ? window[`${e}RequestAnimationFrame`] : vr();
|
|
1890
1857
|
}
|
|
1891
|
-
|
|
1892
|
-
function
|
|
1893
|
-
const t = y(e.groupText),
|
|
1894
|
-
return { appendedButtonClass:
|
|
1858
|
+
yr();
|
|
1859
|
+
function Qe(e, n) {
|
|
1860
|
+
const t = y(e.groupText), r = x(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), o = x(() => e.enableClear || !!e.groupText);
|
|
1861
|
+
return { appendedButtonClass: x(() => ({
|
|
1895
1862
|
"input-group-append": !0,
|
|
1896
|
-
"append-force-show":
|
|
1897
|
-
})), appendedContent: t, shouldShowAppendedButton:
|
|
1863
|
+
"append-force-show": r.value
|
|
1864
|
+
})), appendedContent: t, shouldShowAppendedButton: o };
|
|
1898
1865
|
}
|
|
1899
|
-
function Xe(e, n, t,
|
|
1900
|
-
const { appendedContent:
|
|
1901
|
-
|
|
1902
|
-
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);
|
|
1903
1870
|
});
|
|
1904
1871
|
function d() {
|
|
1905
|
-
return i.value = !i.value, t.value = i.value ? "text" : "password",
|
|
1872
|
+
return i.value = !i.value, t.value = i.value ? "text" : "password", o.value = i.value ? u : s, !1;
|
|
1906
1873
|
}
|
|
1907
1874
|
function c() {
|
|
1908
|
-
t.value = l.value ? "password" : "text",
|
|
1875
|
+
t.value = l.value ? "password" : "text", o.value = l.value ? a.value ? s : "" : o.value;
|
|
1909
1876
|
}
|
|
1910
1877
|
return c(), { isPassword: l, onClickAppendedButton: d };
|
|
1911
1878
|
}
|
|
1912
1879
|
function Ke(e, n, t) {
|
|
1913
|
-
const
|
|
1914
|
-
onBlurTextBox:
|
|
1880
|
+
const r = y(), {
|
|
1881
|
+
onBlurTextBox: o,
|
|
1915
1882
|
onFocusTextBox: a,
|
|
1916
1883
|
onInput: l,
|
|
1917
1884
|
onKeyDown: u,
|
|
1918
|
-
textBoxValue:
|
|
1919
|
-
} = t, i =
|
|
1885
|
+
textBoxValue: s
|
|
1886
|
+
} = t, i = x(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = x(() => ({
|
|
1920
1887
|
"form-control": !0,
|
|
1921
1888
|
"f-utils-fill": !0
|
|
1922
|
-
})), c =
|
|
1889
|
+
})), c = x(() => ({
|
|
1923
1890
|
"text-align": e.textAlign
|
|
1924
1891
|
}));
|
|
1925
|
-
function f(
|
|
1926
|
-
|
|
1892
|
+
function f(m) {
|
|
1893
|
+
m.stopPropagation();
|
|
1927
1894
|
}
|
|
1928
|
-
function
|
|
1895
|
+
function p() {
|
|
1929
1896
|
e.selectOnCreated, e.focusOnCreated;
|
|
1930
1897
|
}
|
|
1931
|
-
async function v(
|
|
1932
|
-
a(
|
|
1898
|
+
async function v(m) {
|
|
1899
|
+
a(m), await je, p();
|
|
1933
1900
|
}
|
|
1934
|
-
return
|
|
1935
|
-
await
|
|
1936
|
-
}), () =>
|
|
1937
|
-
ref:
|
|
1901
|
+
return H(async () => {
|
|
1902
|
+
await je, p();
|
|
1903
|
+
}), () => w("input", {
|
|
1904
|
+
ref: r,
|
|
1938
1905
|
class: d.value,
|
|
1939
1906
|
style: c.value,
|
|
1940
1907
|
type: "text",
|
|
1941
|
-
value:
|
|
1908
|
+
value: s.value,
|
|
1942
1909
|
disabled: e.disabled,
|
|
1943
1910
|
readonly: e.readonly || !e.editable,
|
|
1944
1911
|
placeholder: i.value,
|
|
1945
|
-
onBlur:
|
|
1912
|
+
onBlur: o,
|
|
1946
1913
|
onChange: f,
|
|
1947
1914
|
onFocus: v,
|
|
1948
1915
|
onInput: l,
|
|
1949
1916
|
onKeydown: u
|
|
1950
1917
|
}, null);
|
|
1951
1918
|
}
|
|
1952
|
-
function
|
|
1919
|
+
function Fe(e, n, t) {
|
|
1953
1920
|
const {
|
|
1954
|
-
canDownward:
|
|
1955
|
-
canUpward:
|
|
1921
|
+
canDownward: r,
|
|
1922
|
+
canUpward: o,
|
|
1956
1923
|
onClickDownButton: a,
|
|
1957
1924
|
onClickUpButton: l
|
|
1958
|
-
} = t, u =
|
|
1925
|
+
} = t, u = x(() => ({
|
|
1959
1926
|
"input-group-append": !0,
|
|
1960
1927
|
"btn-group": !0,
|
|
1961
1928
|
"btn-group-number": !0
|
|
1962
|
-
})),
|
|
1929
|
+
})), s = x(() => ({
|
|
1963
1930
|
btn: !0,
|
|
1964
1931
|
"btn-secondary": !0,
|
|
1965
1932
|
"btn-number-flag": !0
|
|
1966
|
-
})), i =
|
|
1967
|
-
cursor: r() ? "pointer" : "not-allowed",
|
|
1968
|
-
"margin-left": 0
|
|
1969
|
-
})), d = V(() => ({
|
|
1933
|
+
})), i = x(() => ({
|
|
1970
1934
|
cursor: o() ? "pointer" : "not-allowed",
|
|
1971
1935
|
"margin-left": 0
|
|
1936
|
+
})), d = x(() => ({
|
|
1937
|
+
cursor: r() ? "pointer" : "not-allowed",
|
|
1938
|
+
"margin-left": 0
|
|
1972
1939
|
}));
|
|
1973
|
-
return () =>
|
|
1940
|
+
return () => w("div", {
|
|
1974
1941
|
class: u.value
|
|
1975
|
-
}, [
|
|
1942
|
+
}, [w("button", {
|
|
1976
1943
|
title: "upButton",
|
|
1977
|
-
class:
|
|
1944
|
+
class: s.value,
|
|
1978
1945
|
style: i.value,
|
|
1979
1946
|
onClick: l,
|
|
1980
|
-
disabled: !
|
|
1981
|
-
}, [
|
|
1947
|
+
disabled: !o()
|
|
1948
|
+
}, [w("span", {
|
|
1982
1949
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
1983
|
-
}, null)]),
|
|
1950
|
+
}, null)]), w("button", {
|
|
1984
1951
|
title: "downButton",
|
|
1985
|
-
class:
|
|
1952
|
+
class: s.value,
|
|
1986
1953
|
style: d.value,
|
|
1987
1954
|
onClick: a,
|
|
1988
|
-
disabled: !
|
|
1989
|
-
}, [
|
|
1955
|
+
disabled: !r()
|
|
1956
|
+
}, [w("span", {
|
|
1990
1957
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1991
1958
|
}, null)])]);
|
|
1992
1959
|
}
|
|
1993
|
-
function
|
|
1994
|
-
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), {
|
|
1995
1962
|
displayValue: u,
|
|
1996
|
-
modelValue:
|
|
1963
|
+
modelValue: s,
|
|
1997
1964
|
getRealValue: i
|
|
1998
1965
|
} = t, d = Ke(e, n, a), {
|
|
1999
1966
|
format: c
|
|
2000
|
-
} =
|
|
1967
|
+
} = r, {
|
|
2001
1968
|
isFocus: f
|
|
2002
|
-
} = a,
|
|
2003
|
-
return
|
|
1969
|
+
} = a, p = x(() => !e.disabled && !e.readonly);
|
|
1970
|
+
return H(() => {
|
|
2004
1971
|
const v = i(e.modelValue);
|
|
2005
1972
|
u.value = c(v);
|
|
2006
|
-
}),
|
|
2007
|
-
const
|
|
2008
|
-
|
|
2009
|
-
}),
|
|
2010
|
-
v !==
|
|
2011
|
-
}),
|
|
2012
|
-
u.value = c(
|
|
2013
|
-
}), () =>
|
|
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", {
|
|
2014
1981
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2015
|
-
}, [d(),
|
|
1982
|
+
}, [d(), p.value && l()]);
|
|
2016
1983
|
}
|
|
2017
|
-
function
|
|
2018
|
-
const
|
|
1984
|
+
function hr(e, n, t, r) {
|
|
1985
|
+
const o = y(), a = y(e.autocomplete), l = y(e.enableTitle), {
|
|
2019
1986
|
isPassword: u
|
|
2020
|
-
} = t,
|
|
1987
|
+
} = t, s = y(e.minLength), i = y(e.maxLength), d = y(e.tabIndex), {
|
|
2021
1988
|
disabled: c,
|
|
2022
1989
|
displayText: f,
|
|
2023
|
-
inputType:
|
|
1990
|
+
inputType: p,
|
|
2024
1991
|
onBlur: v,
|
|
2025
|
-
onFocus:
|
|
2026
|
-
onInput:
|
|
2027
|
-
onClick:
|
|
2028
|
-
onKeydown:
|
|
2029
|
-
onKeyup:
|
|
2030
|
-
onMousedown:
|
|
2031
|
-
onTextBoxValueChange:
|
|
2032
|
-
readonly:
|
|
2033
|
-
placeholder:
|
|
2034
|
-
textBoxClass:
|
|
2035
|
-
textBoxTitle:
|
|
2036
|
-
} =
|
|
2037
|
-
return
|
|
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
|
|
2003
|
+
} = r;
|
|
2004
|
+
return H(() => {
|
|
2038
2005
|
e.selectOnCreated, e.focusOnCreated;
|
|
2039
|
-
}), () =>
|
|
2040
|
-
ref:
|
|
2006
|
+
}), () => w("input", {
|
|
2007
|
+
ref: o,
|
|
2041
2008
|
name: "input-group-value",
|
|
2042
2009
|
autocomplete: a.value,
|
|
2043
|
-
class:
|
|
2010
|
+
class: A.value,
|
|
2044
2011
|
disabled: c == null ? void 0 : c.value,
|
|
2045
2012
|
maxlength: i.value,
|
|
2046
|
-
minlength:
|
|
2047
|
-
placeholder:
|
|
2048
|
-
readonly:
|
|
2013
|
+
minlength: s.value,
|
|
2014
|
+
placeholder: F.value,
|
|
2015
|
+
readonly: g == null ? void 0 : g.value,
|
|
2049
2016
|
tabindex: d.value,
|
|
2050
|
-
title: l.value && !u.value ?
|
|
2051
|
-
type:
|
|
2017
|
+
title: l.value && !u.value ? N.value : "",
|
|
2018
|
+
type: p.value,
|
|
2052
2019
|
value: f == null ? void 0 : f.value,
|
|
2053
2020
|
onBlur: v,
|
|
2054
|
-
onClick:
|
|
2055
|
-
onChange:
|
|
2056
|
-
onFocus:
|
|
2057
|
-
onInput:
|
|
2058
|
-
onKeydown:
|
|
2059
|
-
onKeyup:
|
|
2060
|
-
onMousedown:
|
|
2021
|
+
onClick: S,
|
|
2022
|
+
onChange: T,
|
|
2023
|
+
onFocus: m,
|
|
2024
|
+
onInput: b,
|
|
2025
|
+
onKeydown: E,
|
|
2026
|
+
onKeyup: k,
|
|
2027
|
+
onMousedown: C
|
|
2061
2028
|
}, null);
|
|
2062
2029
|
}
|
|
2063
|
-
function
|
|
2064
|
-
const t =
|
|
2030
|
+
function br(e, n) {
|
|
2031
|
+
const t = x(() => e.useExtendInfo && !!e.extendInfo), r = tn({
|
|
2065
2032
|
content: e.extendInfo
|
|
2066
2033
|
});
|
|
2067
|
-
function
|
|
2034
|
+
function o() {
|
|
2068
2035
|
n.emit("updateExtendInfo");
|
|
2069
2036
|
}
|
|
2070
|
-
return () => t.value &&
|
|
2037
|
+
return () => t.value && me(w("span", {
|
|
2071
2038
|
class: "input-group-before-tips",
|
|
2072
|
-
onMouseenter:
|
|
2073
|
-
}, [
|
|
2039
|
+
onMouseenter: o
|
|
2040
|
+
}, [w("i", {
|
|
2074
2041
|
class: "f-icon f-icon-info-circle"
|
|
2075
|
-
}, null),
|
|
2042
|
+
}, null), w("b", {
|
|
2076
2043
|
class: "tips-arrow"
|
|
2077
|
-
}, null)]), [[
|
|
2044
|
+
}, null)]), [[nn("tooltip"), r]]);
|
|
2078
2045
|
}
|
|
2079
|
-
function
|
|
2046
|
+
function et(e, n, t, r, o) {
|
|
2080
2047
|
const {
|
|
2081
2048
|
appendedButtonClass: a,
|
|
2082
2049
|
appendedContent: l
|
|
2083
|
-
} = t, u =
|
|
2050
|
+
} = t, u = x(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), s = x(() => l.value && !n.slots.groupTextTemplate), i = x(() => !!n.slots.groupTextTemplate), {
|
|
2084
2051
|
clearButtonClass: d,
|
|
2085
2052
|
clearButtonStyle: c,
|
|
2086
2053
|
onClearValue: f,
|
|
2087
|
-
shouldShowClearButton:
|
|
2088
|
-
} =
|
|
2054
|
+
shouldShowClearButton: p
|
|
2055
|
+
} = r;
|
|
2089
2056
|
function v() {
|
|
2090
|
-
return
|
|
2057
|
+
return w("span", {
|
|
2091
2058
|
id: "clearIcon",
|
|
2092
2059
|
class: d.value,
|
|
2093
2060
|
style: c.value,
|
|
2094
|
-
onClick: (
|
|
2095
|
-
}, [
|
|
2061
|
+
onClick: (F) => f(F)
|
|
2062
|
+
}, [w("i", {
|
|
2096
2063
|
class: "f-icon modal_close"
|
|
2097
2064
|
}, null)]);
|
|
2098
2065
|
}
|
|
2099
|
-
function
|
|
2100
|
-
n.emit("iconMouseEnter",
|
|
2066
|
+
function m(F) {
|
|
2067
|
+
n.emit("iconMouseEnter", F);
|
|
2101
2068
|
}
|
|
2102
|
-
function
|
|
2103
|
-
n.emit("iconMouseLeave",
|
|
2069
|
+
function b(F) {
|
|
2070
|
+
n.emit("iconMouseLeave", F);
|
|
2104
2071
|
}
|
|
2105
|
-
function
|
|
2072
|
+
function S(F) {
|
|
2106
2073
|
u.value && n.emit("clickHandle", {
|
|
2107
|
-
originalEvent:
|
|
2108
|
-
}),
|
|
2074
|
+
originalEvent: F
|
|
2075
|
+
}), F.stopPropagation();
|
|
2109
2076
|
}
|
|
2110
|
-
const
|
|
2111
|
-
function
|
|
2112
|
-
return
|
|
2077
|
+
const E = e.type === "password" ? o.onClickAppendedButton : S;
|
|
2078
|
+
function k() {
|
|
2079
|
+
return w("span", {
|
|
2113
2080
|
class: "input-group-text",
|
|
2114
|
-
onMouseenter: (
|
|
2115
|
-
onMouseleave: (
|
|
2081
|
+
onMouseenter: (F) => m(F),
|
|
2082
|
+
onMouseleave: (F) => b(F),
|
|
2116
2083
|
innerHTML: l.value,
|
|
2117
|
-
onClick: (
|
|
2084
|
+
onClick: (F) => E(F)
|
|
2118
2085
|
}, null);
|
|
2119
2086
|
}
|
|
2120
|
-
function
|
|
2087
|
+
function C() {
|
|
2121
2088
|
return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
|
|
2122
2089
|
}
|
|
2123
|
-
function
|
|
2124
|
-
return
|
|
2090
|
+
function T() {
|
|
2091
|
+
return s.value ? k : i.value ? C : "";
|
|
2125
2092
|
}
|
|
2126
|
-
const
|
|
2127
|
-
return () =>
|
|
2093
|
+
const g = T();
|
|
2094
|
+
return () => w("div", {
|
|
2128
2095
|
class: a.value
|
|
2129
|
-
}, [
|
|
2096
|
+
}, [p.value && v(), g && g()]);
|
|
2130
2097
|
}
|
|
2131
|
-
const
|
|
2098
|
+
const ee = /* @__PURE__ */ W({
|
|
2132
2099
|
name: "FInputGroup",
|
|
2133
|
-
props:
|
|
2100
|
+
props: Be,
|
|
2134
2101
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2135
2102
|
setup(e, n) {
|
|
2136
|
-
const t = y(e.modelValue),
|
|
2103
|
+
const t = y(e.modelValue), r = y(e.modelValue), o = dr(e, n, t, r), {
|
|
2137
2104
|
inputGroupClass: a,
|
|
2138
2105
|
inputType: l,
|
|
2139
2106
|
inputGroupStyle: u
|
|
2140
|
-
} =
|
|
2107
|
+
} = o, s = Qe(e), {
|
|
2141
2108
|
shouldShowAppendedButton: i
|
|
2142
|
-
} =
|
|
2109
|
+
} = s, d = Je(e, n, o), {
|
|
2143
2110
|
onMouseEnter: c,
|
|
2144
2111
|
onMouseLeave: f
|
|
2145
|
-
} = d,
|
|
2146
|
-
|
|
2147
|
-
t.value =
|
|
2148
|
-
}),
|
|
2149
|
-
t.value =
|
|
2150
|
-
}),
|
|
2151
|
-
e.value && (t.value = e.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;
|
|
2117
|
+
}), H(() => {
|
|
2118
|
+
e.value && (t.value = e.value, r.value = e.value);
|
|
2152
2119
|
});
|
|
2153
|
-
const
|
|
2120
|
+
const k = () => w(he, null, [w("div", {
|
|
2154
2121
|
id: "inputGroup",
|
|
2155
2122
|
class: a.value,
|
|
2156
2123
|
style: u.value,
|
|
2157
2124
|
onMouseenter: c,
|
|
2158
2125
|
onMouseleave: f
|
|
2159
|
-
}, [
|
|
2160
|
-
return () =>
|
|
2126
|
+
}, [E.value ? v() : w(he, null, [S(), m(), i.value && b()])])]);
|
|
2127
|
+
return () => k();
|
|
2161
2128
|
}
|
|
2162
2129
|
});
|
|
2163
|
-
class
|
|
2130
|
+
class gr extends Ve {
|
|
2164
2131
|
constructor(n, t) {
|
|
2165
2132
|
super(n, t);
|
|
2166
2133
|
}
|
|
2167
2134
|
}
|
|
2168
|
-
function
|
|
2135
|
+
function Sr(e, n) {
|
|
2169
2136
|
const {
|
|
2170
2137
|
canAccepts: t,
|
|
2171
|
-
checkCanDeleteComponent:
|
|
2172
|
-
checkCanMoveComponent:
|
|
2138
|
+
checkCanDeleteComponent: r,
|
|
2139
|
+
checkCanMoveComponent: o,
|
|
2173
2140
|
hideNestedPaddingInDesginerView: a,
|
|
2174
2141
|
onAcceptMovedChildElement: l,
|
|
2175
2142
|
resolveComponentContext: u,
|
|
2176
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2143
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
2177
2144
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2178
|
-
} =
|
|
2179
|
-
function c(f) {
|
|
2180
|
-
return new
|
|
2145
|
+
} = xe(e), d = e.schema;
|
|
2146
|
+
function c(f, p) {
|
|
2147
|
+
return new gr(f, n).getPropertyConfig(d, p);
|
|
2181
2148
|
}
|
|
2182
2149
|
return {
|
|
2183
2150
|
canAccepts: t,
|
|
2184
|
-
checkCanDeleteComponent:
|
|
2185
|
-
checkCanMoveComponent:
|
|
2151
|
+
checkCanDeleteComponent: r,
|
|
2152
|
+
checkCanMoveComponent: o,
|
|
2186
2153
|
hideNestedPaddingInDesginerView: a,
|
|
2187
2154
|
onAcceptMovedChildElement: l,
|
|
2188
2155
|
resolveComponentContext: u,
|
|
2189
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2156
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
2190
2157
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
2191
2158
|
getPropsConfig: c
|
|
2192
2159
|
};
|
|
2193
2160
|
}
|
|
2194
|
-
function
|
|
2195
|
-
var
|
|
2196
|
-
function
|
|
2161
|
+
function tt(e, n, t) {
|
|
2162
|
+
var T;
|
|
2163
|
+
function r() {
|
|
2197
2164
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
2198
2165
|
}
|
|
2199
|
-
|
|
2200
|
-
const
|
|
2166
|
+
r();
|
|
2167
|
+
const o = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", l = y();
|
|
2201
2168
|
function u() {
|
|
2202
2169
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
2203
2170
|
}
|
|
2204
|
-
function
|
|
2171
|
+
function s() {
|
|
2205
2172
|
return !1;
|
|
2206
2173
|
}
|
|
2207
2174
|
function i() {
|
|
@@ -2210,120 +2177,120 @@ function et(e, n, t) {
|
|
|
2210
2177
|
function d() {
|
|
2211
2178
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
2212
2179
|
}
|
|
2213
|
-
function c(
|
|
2214
|
-
if (!
|
|
2180
|
+
function c(g) {
|
|
2181
|
+
if (!g || !g.value)
|
|
2215
2182
|
return null;
|
|
2216
|
-
if (
|
|
2217
|
-
return
|
|
2218
|
-
const
|
|
2219
|
-
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;
|
|
2220
2187
|
}
|
|
2221
|
-
function f(
|
|
2222
|
-
const { componentInstance:
|
|
2223
|
-
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);
|
|
2224
2191
|
}
|
|
2225
|
-
function
|
|
2226
|
-
return !!t && t.canAccepts(
|
|
2192
|
+
function p(g) {
|
|
2193
|
+
return !!t && t.canAccepts(g);
|
|
2227
2194
|
}
|
|
2228
2195
|
function v() {
|
|
2229
2196
|
return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
|
|
2230
2197
|
}
|
|
2231
|
-
function
|
|
2198
|
+
function m() {
|
|
2232
2199
|
}
|
|
2233
|
-
function
|
|
2234
|
-
|
|
2200
|
+
function b(g, F) {
|
|
2201
|
+
F && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(F);
|
|
2235
2202
|
}
|
|
2236
|
-
function
|
|
2237
|
-
const { componentType:
|
|
2238
|
-
let
|
|
2239
|
-
t && t.onResolveNewComponentSchema && (
|
|
2240
|
-
const
|
|
2241
|
-
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;
|
|
2242
2209
|
}
|
|
2243
|
-
function
|
|
2244
|
-
const
|
|
2245
|
-
|
|
2246
|
-
let
|
|
2247
|
-
t && t.onAcceptNewChildElement && (
|
|
2248
|
-
const K =
|
|
2249
|
-
return
|
|
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)}`), _;
|
|
2250
2217
|
}
|
|
2251
|
-
function
|
|
2218
|
+
function k(g) {
|
|
2252
2219
|
}
|
|
2253
|
-
function
|
|
2220
|
+
function C(...g) {
|
|
2254
2221
|
if (t && t.getPropsConfig)
|
|
2255
|
-
return t.getPropsConfig(...
|
|
2222
|
+
return t.getPropsConfig(...g);
|
|
2256
2223
|
}
|
|
2257
2224
|
return l.value = {
|
|
2258
2225
|
canMove: u(),
|
|
2259
|
-
canSelectParent:
|
|
2226
|
+
canSelectParent: s(),
|
|
2260
2227
|
canDelete: i(),
|
|
2261
2228
|
canNested: !d(),
|
|
2262
2229
|
contents: n == null ? void 0 : n.schema.contents,
|
|
2263
2230
|
elementRef: e,
|
|
2264
|
-
parent: (
|
|
2231
|
+
parent: (T = n == null ? void 0 : n.parent) == null ? void 0 : T.componentInstance,
|
|
2265
2232
|
schema: n == null ? void 0 : n.schema,
|
|
2266
|
-
styles:
|
|
2233
|
+
styles: o,
|
|
2267
2234
|
designerClass: a,
|
|
2268
|
-
canAccepts:
|
|
2235
|
+
canAccepts: p,
|
|
2269
2236
|
getBelongedComponentInstance: c,
|
|
2270
2237
|
getDraggableDesignItemElement: f,
|
|
2271
2238
|
getDraggingDisplayText: v,
|
|
2272
|
-
getPropConfig:
|
|
2273
|
-
getDragScopeElement:
|
|
2274
|
-
onAcceptMovedChildElement:
|
|
2275
|
-
onAcceptNewChildElement:
|
|
2276
|
-
onChildElementMovedOut:
|
|
2277
|
-
addNewChildComponentSchema:
|
|
2278
|
-
updateDragAndDropRules:
|
|
2239
|
+
getPropConfig: C,
|
|
2240
|
+
getDragScopeElement: m,
|
|
2241
|
+
onAcceptMovedChildElement: b,
|
|
2242
|
+
onAcceptNewChildElement: E,
|
|
2243
|
+
onChildElementMovedOut: k,
|
|
2244
|
+
addNewChildComponentSchema: S,
|
|
2245
|
+
updateDragAndDropRules: r,
|
|
2279
2246
|
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || y(!1),
|
|
2280
2247
|
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || y(!1)
|
|
2281
2248
|
}, l;
|
|
2282
2249
|
}
|
|
2283
|
-
const
|
|
2250
|
+
const wr = /* @__PURE__ */ W({
|
|
2284
2251
|
name: "FInputGroupDesign",
|
|
2285
|
-
props:
|
|
2252
|
+
props: Be,
|
|
2286
2253
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
2287
2254
|
setup(e, n) {
|
|
2288
|
-
const t = y(e.modelValue),
|
|
2255
|
+
const t = y(e.modelValue), r = y(e.modelValue), o = pr(e, n, t, r), {
|
|
2289
2256
|
inputGroupClass: a,
|
|
2290
2257
|
inputType: l,
|
|
2291
2258
|
inputGroupStyle: u
|
|
2292
|
-
} =
|
|
2259
|
+
} = o, s = Qe(e), {
|
|
2293
2260
|
shouldShowAppendedButton: i
|
|
2294
|
-
} =
|
|
2261
|
+
} = s, d = Je(e, n, o), {
|
|
2295
2262
|
onMouseEnter: c,
|
|
2296
2263
|
onMouseLeave: f
|
|
2297
|
-
} = d,
|
|
2298
|
-
|
|
2299
|
-
v.value.componentInstance =
|
|
2300
|
-
}), n.expose(
|
|
2301
|
-
const
|
|
2302
|
-
return () =>
|
|
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);
|
|
2265
|
+
H(() => {
|
|
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", {
|
|
2303
2270
|
id: "inputGroup",
|
|
2304
2271
|
ref: v,
|
|
2305
2272
|
class: a.value,
|
|
2306
2273
|
style: u.value,
|
|
2307
2274
|
onMouseenter: c,
|
|
2308
2275
|
onMouseleave: f
|
|
2309
|
-
}, [
|
|
2310
|
-
ref:
|
|
2276
|
+
}, [w("input", {
|
|
2277
|
+
ref: C,
|
|
2311
2278
|
class: "form-control",
|
|
2312
2279
|
readonly: !0,
|
|
2313
2280
|
placeholder: e.placeholder
|
|
2314
|
-
}, null), i.value &&
|
|
2281
|
+
}, null), i.value && k()]);
|
|
2315
2282
|
}
|
|
2316
2283
|
});
|
|
2317
|
-
|
|
2318
|
-
e["input-group"] =
|
|
2284
|
+
ee.register = (e, n, t, r) => {
|
|
2285
|
+
e["input-group"] = ee, n["input-group"] = Ze;
|
|
2319
2286
|
};
|
|
2320
|
-
|
|
2321
|
-
e["input-group"] =
|
|
2287
|
+
ee.registerDesigner = (e, n, t) => {
|
|
2288
|
+
e["input-group"] = wr, n["input-group"] = Ze;
|
|
2322
2289
|
};
|
|
2323
|
-
|
|
2324
|
-
const
|
|
2325
|
-
["appearance",
|
|
2326
|
-
]),
|
|
2290
|
+
Te(ee);
|
|
2291
|
+
const Cr = /* @__PURE__ */ new Map([
|
|
2292
|
+
["appearance", de]
|
|
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 = {
|
|
2327
2294
|
id: {
|
|
2328
2295
|
description: "The unique identifier for a number spinner",
|
|
2329
2296
|
type: "string"
|
|
@@ -2424,22 +2391,27 @@ const bo = /* @__PURE__ */ new Map([
|
|
|
2424
2391
|
type: "sting",
|
|
2425
2392
|
default: ""
|
|
2426
2393
|
}
|
|
2427
|
-
},
|
|
2394
|
+
}, kr = [
|
|
2428
2395
|
"id",
|
|
2429
2396
|
"type"
|
|
2430
|
-
],
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
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
|
|
2438
2410
|
};
|
|
2439
|
-
function
|
|
2411
|
+
function Pr(e, n, t) {
|
|
2440
2412
|
return n;
|
|
2441
2413
|
}
|
|
2442
|
-
const
|
|
2414
|
+
const Me = {
|
|
2443
2415
|
/**
|
|
2444
2416
|
* 组件标识
|
|
2445
2417
|
*/
|
|
@@ -2543,64 +2515,64 @@ const Be = {
|
|
|
2543
2515
|
* 作为内嵌编辑器被创建后默认选中文本
|
|
2544
2516
|
*/
|
|
2545
2517
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
2546
|
-
},
|
|
2547
|
-
function
|
|
2548
|
-
const { format:
|
|
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;
|
|
2549
2521
|
function i() {
|
|
2550
|
-
const
|
|
2551
|
-
return !(e.max && !new L(e.max).isNaN() &&
|
|
2522
|
+
const b = new L(u.value || 0);
|
|
2523
|
+
return !(e.max && !new L(e.max).isNaN() && b.gte(new L(e.max)));
|
|
2552
2524
|
}
|
|
2553
2525
|
function d() {
|
|
2554
|
-
const
|
|
2555
|
-
return !(e.min && !new L(e.min).isNaN() &&
|
|
2526
|
+
const b = new L(u.value || 0);
|
|
2527
|
+
return !(e.min && !new L(e.min).isNaN() && b.lte(new L(e.min)));
|
|
2556
2528
|
}
|
|
2557
|
-
function c(
|
|
2529
|
+
function c(b) {
|
|
2558
2530
|
if (e.readonly || e.disabled)
|
|
2559
2531
|
return;
|
|
2560
|
-
const
|
|
2561
|
-
if (
|
|
2562
|
-
const
|
|
2563
|
-
a.value =
|
|
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));
|
|
2564
2536
|
}
|
|
2565
2537
|
}
|
|
2566
2538
|
function f() {
|
|
2567
2539
|
c("up");
|
|
2568
2540
|
}
|
|
2569
|
-
function
|
|
2541
|
+
function p() {
|
|
2570
2542
|
c("down");
|
|
2571
2543
|
}
|
|
2572
|
-
function v(
|
|
2573
|
-
f(),
|
|
2544
|
+
function v(b) {
|
|
2545
|
+
f(), b.stopPropagation();
|
|
2574
2546
|
}
|
|
2575
|
-
function
|
|
2576
|
-
|
|
2547
|
+
function m(b) {
|
|
2548
|
+
p(), b.stopPropagation();
|
|
2577
2549
|
}
|
|
2578
|
-
return { canDownward: d, canUpward: i, downward:
|
|
2550
|
+
return { canDownward: d, canUpward: i, downward: p, onClickDownButton: m, onClickUpButton: v, upward: f };
|
|
2579
2551
|
}
|
|
2580
2552
|
function ot(e, n, t) {
|
|
2581
|
-
const
|
|
2553
|
+
const r = x(() => ({
|
|
2582
2554
|
prefix: e.prefix,
|
|
2583
2555
|
suffix: e.suffix,
|
|
2584
2556
|
decimalSeparator: e.decimalSeparator,
|
|
2585
2557
|
groupSeparator: e.useThousands ? e.groupSeparator : "",
|
|
2586
2558
|
groupSize: e.groupSize
|
|
2587
|
-
})), { getValidNumberObject:
|
|
2559
|
+
})), { getValidNumberObject: o, precision: a } = t;
|
|
2588
2560
|
function l(i) {
|
|
2589
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;
|
|
2590
2562
|
}
|
|
2591
2563
|
function u(i, d) {
|
|
2592
2564
|
return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value, d) : i.toFormat(d);
|
|
2593
2565
|
}
|
|
2594
|
-
function
|
|
2595
|
-
const d = l(i), c = new L(d, 10), f =
|
|
2596
|
-
return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : u(f,
|
|
2566
|
+
function s(i) {
|
|
2567
|
+
const d = l(i), c = new L(d, 10), f = o(c);
|
|
2568
|
+
return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : u(f, r.value);
|
|
2597
2569
|
}
|
|
2598
|
-
return { cleanFormat: l, format:
|
|
2570
|
+
return { cleanFormat: l, format: s };
|
|
2599
2571
|
}
|
|
2600
|
-
function
|
|
2601
|
-
const t = y(""),
|
|
2572
|
+
function at(e, n) {
|
|
2573
|
+
const t = y(""), r = y(e.modelValue), o = x(() => Number(e.precision) || 0);
|
|
2602
2574
|
function a(d) {
|
|
2603
|
-
return d.toFixed(
|
|
2575
|
+
return d.toFixed(o.value);
|
|
2604
2576
|
}
|
|
2605
2577
|
function l(d) {
|
|
2606
2578
|
return isNaN(d) || d === null || d === void 0 || d === "";
|
|
@@ -2609,16 +2581,16 @@ function rt(e, n) {
|
|
|
2609
2581
|
const c = l(e.max) ? null : new L(String(e.max), 10), f = l(e.min) ? null : new L(String(e.min), 10);
|
|
2610
2582
|
return c && d.gt(c) ? c : f && d.lt(f) ? f : d;
|
|
2611
2583
|
}
|
|
2612
|
-
function
|
|
2584
|
+
function s(d) {
|
|
2613
2585
|
if (e.parser)
|
|
2614
2586
|
return isNaN(Number(d)) ? e.parser(d) : d;
|
|
2615
2587
|
let c = u(new L(d, 10));
|
|
2616
2588
|
if (c.isNaN()) {
|
|
2617
2589
|
if (e.canNull)
|
|
2618
2590
|
return null;
|
|
2619
|
-
const
|
|
2620
|
-
if (!
|
|
2621
|
-
c =
|
|
2591
|
+
const p = new L("" + e.min, 10), v = new L("" + e.max, 10);
|
|
2592
|
+
if (!p.isNaN())
|
|
2593
|
+
c = p;
|
|
2622
2594
|
else if (!v.isNaN())
|
|
2623
2595
|
c = v;
|
|
2624
2596
|
else
|
|
@@ -2628,67 +2600,67 @@ function rt(e, n) {
|
|
|
2628
2600
|
}
|
|
2629
2601
|
function i(d) {
|
|
2630
2602
|
const c = Number(d);
|
|
2631
|
-
|
|
2603
|
+
r.value = c, n.emit("update:modelValue", c), n.emit("valueChange", c), n.emit("change", c);
|
|
2632
2604
|
}
|
|
2633
|
-
return { displayValue: t, getRealValue:
|
|
2605
|
+
return { displayValue: t, getRealValue: s, modelValue: r, isEmpty: l, onNumberValueChanged: i, precision: o, getValidNumberObject: u };
|
|
2634
2606
|
}
|
|
2635
|
-
function
|
|
2636
|
-
const { cleanFormat: a, format: l } = t, { displayValue: u, getRealValue:
|
|
2637
|
-
function C
|
|
2638
|
-
var
|
|
2639
|
-
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)
|
|
2640
2612
|
return;
|
|
2641
|
-
let
|
|
2642
|
-
e.canNull || (
|
|
2643
|
-
const
|
|
2644
|
-
u.value = l(
|
|
2645
|
-
}
|
|
2646
|
-
function
|
|
2647
|
-
|
|
2648
|
-
}
|
|
2649
|
-
function
|
|
2650
|
-
var
|
|
2651
|
-
|
|
2652
|
-
let
|
|
2653
|
-
e.canNull || (
|
|
2654
|
-
const
|
|
2655
|
-
u.value =
|
|
2656
|
-
}
|
|
2657
|
-
function
|
|
2658
|
-
|
|
2659
|
-
}
|
|
2660
|
-
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 };
|
|
2661
2633
|
}
|
|
2662
|
-
const
|
|
2634
|
+
const te = /* @__PURE__ */ W({
|
|
2663
2635
|
name: "FNumberSpinner",
|
|
2664
|
-
props:
|
|
2636
|
+
props: Me,
|
|
2665
2637
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
2666
2638
|
setup(e, n) {
|
|
2667
|
-
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), {
|
|
2668
2640
|
displayValue: u,
|
|
2669
|
-
modelValue:
|
|
2641
|
+
modelValue: s,
|
|
2670
2642
|
getRealValue: i
|
|
2671
2643
|
} = t, d = Ke(e, n, a), {
|
|
2672
2644
|
format: c
|
|
2673
|
-
} =
|
|
2645
|
+
} = r, {
|
|
2674
2646
|
isFocus: f
|
|
2675
|
-
} = a,
|
|
2676
|
-
return
|
|
2647
|
+
} = a, p = x(() => !e.disabled && !e.readonly && e.showButton);
|
|
2648
|
+
return H(() => {
|
|
2677
2649
|
const v = i(e.modelValue);
|
|
2678
2650
|
u.value = c(v);
|
|
2679
|
-
}),
|
|
2680
|
-
const
|
|
2681
|
-
|
|
2682
|
-
}),
|
|
2683
|
-
v !==
|
|
2684
|
-
}),
|
|
2685
|
-
u.value = c(
|
|
2686
|
-
}), () =>
|
|
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", {
|
|
2687
2659
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2688
|
-
}, [d(),
|
|
2660
|
+
}, [d(), p.value && l()]);
|
|
2689
2661
|
}
|
|
2690
2662
|
});
|
|
2691
|
-
class
|
|
2663
|
+
class Or extends Ve {
|
|
2692
2664
|
constructor(n, t) {
|
|
2693
2665
|
super(n, t);
|
|
2694
2666
|
}
|
|
@@ -2721,46 +2693,46 @@ class Po extends we {
|
|
|
2721
2693
|
});
|
|
2722
2694
|
}
|
|
2723
2695
|
}
|
|
2724
|
-
function
|
|
2696
|
+
function Ir(e, n) {
|
|
2725
2697
|
const {
|
|
2726
2698
|
canAccepts: t,
|
|
2727
|
-
checkCanDeleteComponent:
|
|
2728
|
-
checkCanMoveComponent:
|
|
2699
|
+
checkCanDeleteComponent: r,
|
|
2700
|
+
checkCanMoveComponent: o,
|
|
2729
2701
|
hideNestedPaddingInDesginerView: a,
|
|
2730
2702
|
onAcceptMovedChildElement: l,
|
|
2731
2703
|
resolveComponentContext: u,
|
|
2732
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2704
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
2733
2705
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2734
|
-
} =
|
|
2735
|
-
function c(f) {
|
|
2736
|
-
return new
|
|
2706
|
+
} = xe(e), d = e.schema;
|
|
2707
|
+
function c(f, p) {
|
|
2708
|
+
return new Or(f, n).getPropertyConfig(d, p);
|
|
2737
2709
|
}
|
|
2738
2710
|
return {
|
|
2739
2711
|
canAccepts: t,
|
|
2740
|
-
checkCanDeleteComponent:
|
|
2741
|
-
checkCanMoveComponent:
|
|
2712
|
+
checkCanDeleteComponent: r,
|
|
2713
|
+
checkCanMoveComponent: o,
|
|
2742
2714
|
hideNestedPaddingInDesginerView: a,
|
|
2743
2715
|
onAcceptMovedChildElement: l,
|
|
2744
2716
|
resolveComponentContext: u,
|
|
2745
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2717
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
2746
2718
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
2747
2719
|
getPropsConfig: c
|
|
2748
2720
|
};
|
|
2749
2721
|
}
|
|
2750
|
-
const
|
|
2722
|
+
const jr = /* @__PURE__ */ W({
|
|
2751
2723
|
name: "FNumberSpinnerDesign",
|
|
2752
|
-
props:
|
|
2724
|
+
props: Me,
|
|
2753
2725
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
2754
2726
|
setup(e, n) {
|
|
2755
|
-
const t =
|
|
2756
|
-
|
|
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);
|
|
2728
|
+
H(() => {
|
|
2757
2729
|
l.value.componentInstance = d, e.readonly = !0;
|
|
2758
2730
|
}), n.expose(d.value);
|
|
2759
2731
|
const c = y();
|
|
2760
|
-
return () =>
|
|
2732
|
+
return () => w("div", {
|
|
2761
2733
|
ref: l,
|
|
2762
2734
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner test"
|
|
2763
|
-
}, [
|
|
2735
|
+
}, [w("input", {
|
|
2764
2736
|
ref: c,
|
|
2765
2737
|
class: "form-control",
|
|
2766
2738
|
readonly: !0,
|
|
@@ -2768,57 +2740,57 @@ const Ao = /* @__PURE__ */ q({
|
|
|
2768
2740
|
}, null), a()]);
|
|
2769
2741
|
}
|
|
2770
2742
|
});
|
|
2771
|
-
|
|
2772
|
-
e["number-spinner"] =
|
|
2743
|
+
te.register = (e, n, t, r) => {
|
|
2744
|
+
e["number-spinner"] = te, n["number-spinner"] = nt;
|
|
2773
2745
|
};
|
|
2774
|
-
|
|
2775
|
-
e["number-spinner"] =
|
|
2746
|
+
te.registerDesigner = (e, n, t) => {
|
|
2747
|
+
e["number-spinner"] = jr, n["number-spinner"] = nt;
|
|
2776
2748
|
};
|
|
2777
|
-
|
|
2778
|
-
function
|
|
2779
|
-
const u = y(0),
|
|
2749
|
+
Te(te);
|
|
2750
|
+
function Dr(e, n, t, r, o, a, l) {
|
|
2751
|
+
const u = y(0), s = y(""), i = y([]), d = y(""), c = y("");
|
|
2780
2752
|
function f() {
|
|
2781
|
-
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (d.value =
|
|
2753
|
+
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (d.value = B(e.value.propertyValue.value), n.value = B(e.value.editorOptions.enums));
|
|
2782
2754
|
}
|
|
2783
|
-
function
|
|
2755
|
+
function p() {
|
|
2784
2756
|
e.value.propertyType === "number" && (u.value = e.value.propertyValue.value);
|
|
2785
2757
|
}
|
|
2786
2758
|
function v() {
|
|
2787
|
-
t.value.id === "stateMachine" && (
|
|
2759
|
+
t.value.id === "stateMachine" && (r = B(e.value.propertyValue.value.id), r ? o.value = B(e.value.propertyValue.value.exist) : o.value = "否");
|
|
2788
2760
|
}
|
|
2789
|
-
function
|
|
2790
|
-
if (t.value.id === "dataStates" && (i.value =
|
|
2791
|
-
const
|
|
2792
|
-
|
|
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);
|
|
2793
2765
|
}
|
|
2794
2766
|
}
|
|
2795
|
-
function
|
|
2767
|
+
function b() {
|
|
2796
2768
|
t.value.id === "variable" && (c.value = e.value.propertyValue.value.path);
|
|
2797
2769
|
}
|
|
2798
|
-
function
|
|
2770
|
+
function S() {
|
|
2799
2771
|
if (t.value.id === "expression") {
|
|
2800
2772
|
l.value = !0;
|
|
2801
|
-
const { handleExpressionValue:
|
|
2802
|
-
|
|
2773
|
+
const { handleExpressionValue: C } = e.value.editorOptions.expressionConfig;
|
|
2774
|
+
C ? a.value = C().value.value : a.value = e.value.editorOptions.expressionConfig.expressionValue.value.value;
|
|
2803
2775
|
}
|
|
2804
2776
|
}
|
|
2805
|
-
function
|
|
2777
|
+
function E() {
|
|
2806
2778
|
t.value.id;
|
|
2807
2779
|
}
|
|
2808
|
-
function
|
|
2809
|
-
f(),
|
|
2780
|
+
function k() {
|
|
2781
|
+
f(), p(), b(), v(), m(), S(), E();
|
|
2810
2782
|
}
|
|
2811
2783
|
return {
|
|
2812
2784
|
numberConstValue: u,
|
|
2813
2785
|
bindVariableValue: c,
|
|
2814
|
-
dataStatesBindValue:
|
|
2786
|
+
dataStatesBindValue: s,
|
|
2815
2787
|
dataStatesValueArray: i,
|
|
2816
2788
|
constEnumBindValue: d,
|
|
2817
|
-
setValue:
|
|
2789
|
+
setValue: k
|
|
2818
2790
|
};
|
|
2819
2791
|
}
|
|
2820
|
-
function
|
|
2821
|
-
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({
|
|
2822
2794
|
propertyName: "",
|
|
2823
2795
|
/** 属性类型:boolean, string, number, enum */
|
|
2824
2796
|
propertyType: "",
|
|
@@ -2830,83 +2802,83 @@ function No(e, n, t, o, r, a, l, u, p, i, d, c) {
|
|
|
2830
2802
|
hasPrefix: !1
|
|
2831
2803
|
});
|
|
2832
2804
|
function v() {
|
|
2833
|
-
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));
|
|
2834
2806
|
}
|
|
2835
|
-
function
|
|
2836
|
-
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 = {
|
|
2837
2809
|
id: "",
|
|
2838
2810
|
name: "",
|
|
2839
2811
|
exist: ""
|
|
2840
2812
|
}, u.value = "否"));
|
|
2841
2813
|
}
|
|
2842
|
-
function
|
|
2843
|
-
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value =
|
|
2844
|
-
}
|
|
2845
|
-
function x() {
|
|
2846
|
-
i.value = "", r.value.expressionValue && (r.value.expressionValue.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));
|
|
2847
2816
|
}
|
|
2848
|
-
function
|
|
2849
|
-
|
|
2817
|
+
function S() {
|
|
2818
|
+
i.value = "", o.value.expressionValue && (o.value.expressionValue.value = "");
|
|
2850
2819
|
}
|
|
2851
2820
|
function E() {
|
|
2852
|
-
|
|
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 = "");
|
|
2853
2825
|
}
|
|
2854
|
-
function
|
|
2855
|
-
|
|
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);
|
|
2856
2828
|
}
|
|
2857
|
-
function
|
|
2829
|
+
function T() {
|
|
2858
2830
|
if (!d.value)
|
|
2859
|
-
switch (
|
|
2831
|
+
switch (C(), p.value.propertyValue.type) {
|
|
2860
2832
|
case "const":
|
|
2861
|
-
(
|
|
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));
|
|
2862
2834
|
break;
|
|
2863
2835
|
case "variable":
|
|
2864
|
-
|
|
2836
|
+
p.value.propertyValue.value.path !== "" && (S(), e.emit("propertyEditorValueChanged", p));
|
|
2865
2837
|
break;
|
|
2866
2838
|
case "custom":
|
|
2867
|
-
|
|
2839
|
+
S(), k(), e.emit("propertyEditorValueChanged", p);
|
|
2868
2840
|
break;
|
|
2869
2841
|
case "expression":
|
|
2870
|
-
i.value && e.emit("propertyEditorValueChanged",
|
|
2842
|
+
i.value && e.emit("propertyEditorValueChanged", p);
|
|
2871
2843
|
break;
|
|
2872
2844
|
case "stateMachine":
|
|
2873
|
-
|
|
2845
|
+
p.value.propertyValue.value.id && (S(), e.emit("propertyEditorValueChanged", p));
|
|
2874
2846
|
break;
|
|
2875
2847
|
case "dataStates":
|
|
2876
|
-
if (
|
|
2877
|
-
|
|
2848
|
+
if (p.value.propertyValue.value !== "") {
|
|
2849
|
+
S(), e.emit("propertyEditorValueChanged", p);
|
|
2878
2850
|
break;
|
|
2879
2851
|
}
|
|
2880
2852
|
}
|
|
2881
2853
|
}
|
|
2882
|
-
function
|
|
2883
|
-
n.value.propertyValue =
|
|
2854
|
+
function g() {
|
|
2855
|
+
n.value.propertyValue = o.value[`${c.value.id}Value`], v(), m(), b(), T(), p.value.isNewVariable = !1;
|
|
2884
2856
|
}
|
|
2885
2857
|
return {
|
|
2886
|
-
updateData:
|
|
2887
|
-
changeState:
|
|
2858
|
+
updateData: g,
|
|
2859
|
+
changeState: E,
|
|
2888
2860
|
prefix: f,
|
|
2889
|
-
propertyEditorValueChange:
|
|
2861
|
+
propertyEditorValueChange: p
|
|
2890
2862
|
};
|
|
2891
2863
|
}
|
|
2892
|
-
var
|
|
2893
|
-
return
|
|
2894
|
-
t.__proto__ =
|
|
2895
|
-
} || function(t,
|
|
2896
|
-
for (var
|
|
2897
|
-
},
|
|
2864
|
+
var ge = function(e, n) {
|
|
2865
|
+
return ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
2866
|
+
t.__proto__ = r;
|
|
2867
|
+
} || function(t, r) {
|
|
2868
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
2869
|
+
}, ge(e, n);
|
|
2898
2870
|
};
|
|
2899
2871
|
function z(e, n) {
|
|
2900
2872
|
if (typeof n != "function" && n !== null)
|
|
2901
2873
|
throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
|
|
2902
|
-
|
|
2874
|
+
ge(e, n);
|
|
2903
2875
|
function t() {
|
|
2904
2876
|
this.constructor = e;
|
|
2905
2877
|
}
|
|
2906
2878
|
e.prototype = n === null ? Object.create(n) : (t.prototype = n.prototype, new t());
|
|
2907
2879
|
}
|
|
2908
|
-
function
|
|
2909
|
-
function
|
|
2880
|
+
function Lr(e, n, t, r) {
|
|
2881
|
+
function o(a) {
|
|
2910
2882
|
return a instanceof t ? a : new t(function(l) {
|
|
2911
2883
|
l(a);
|
|
2912
2884
|
});
|
|
@@ -2914,42 +2886,42 @@ function Io(e, n, t, o) {
|
|
|
2914
2886
|
return new (t || (t = Promise))(function(a, l) {
|
|
2915
2887
|
function u(d) {
|
|
2916
2888
|
try {
|
|
2917
|
-
i(
|
|
2889
|
+
i(r.next(d));
|
|
2918
2890
|
} catch (c) {
|
|
2919
2891
|
l(c);
|
|
2920
2892
|
}
|
|
2921
2893
|
}
|
|
2922
|
-
function
|
|
2894
|
+
function s(d) {
|
|
2923
2895
|
try {
|
|
2924
|
-
i(
|
|
2896
|
+
i(r.throw(d));
|
|
2925
2897
|
} catch (c) {
|
|
2926
2898
|
l(c);
|
|
2927
2899
|
}
|
|
2928
2900
|
}
|
|
2929
2901
|
function i(d) {
|
|
2930
|
-
d.done ? a(d.value) :
|
|
2902
|
+
d.done ? a(d.value) : o(d.value).then(u, s);
|
|
2931
2903
|
}
|
|
2932
|
-
i((
|
|
2904
|
+
i((r = r.apply(e, n || [])).next());
|
|
2933
2905
|
});
|
|
2934
2906
|
}
|
|
2935
|
-
function
|
|
2907
|
+
function it(e, n) {
|
|
2936
2908
|
var t = { label: 0, sent: function() {
|
|
2937
2909
|
if (a[0] & 1) throw a[1];
|
|
2938
2910
|
return a[1];
|
|
2939
|
-
}, trys: [], ops: [] },
|
|
2911
|
+
}, trys: [], ops: [] }, r, o, a, l = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
2940
2912
|
return l.next = u(0), l.throw = u(1), l.return = u(2), typeof Symbol == "function" && (l[Symbol.iterator] = function() {
|
|
2941
2913
|
return this;
|
|
2942
2914
|
}), l;
|
|
2943
2915
|
function u(i) {
|
|
2944
2916
|
return function(d) {
|
|
2945
|
-
return
|
|
2917
|
+
return s([i, d]);
|
|
2946
2918
|
};
|
|
2947
2919
|
}
|
|
2948
|
-
function
|
|
2949
|
-
if (
|
|
2920
|
+
function s(i) {
|
|
2921
|
+
if (r) throw new TypeError("Generator is already executing.");
|
|
2950
2922
|
for (; l && (l = 0, i[0] && (t = 0)), t; ) try {
|
|
2951
|
-
if (
|
|
2952
|
-
switch (
|
|
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;
|
|
2924
|
+
switch (o = 0, a && (i = [i[0] & 2, a.value]), i[0]) {
|
|
2953
2925
|
case 0:
|
|
2954
2926
|
case 1:
|
|
2955
2927
|
a = i;
|
|
@@ -2957,7 +2929,7 @@ function at(e, n) {
|
|
|
2957
2929
|
case 4:
|
|
2958
2930
|
return t.label++, { value: i[1], done: !1 };
|
|
2959
2931
|
case 5:
|
|
2960
|
-
t.label++,
|
|
2932
|
+
t.label++, o = i[1], i = [0];
|
|
2961
2933
|
continue;
|
|
2962
2934
|
case 7:
|
|
2963
2935
|
i = t.ops.pop(), t.trys.pop();
|
|
@@ -2984,102 +2956,102 @@ function at(e, n) {
|
|
|
2984
2956
|
}
|
|
2985
2957
|
i = n.call(e, t);
|
|
2986
2958
|
} catch (d) {
|
|
2987
|
-
i = [6, d],
|
|
2959
|
+
i = [6, d], o = 0;
|
|
2988
2960
|
} finally {
|
|
2989
|
-
|
|
2961
|
+
r = a = 0;
|
|
2990
2962
|
}
|
|
2991
2963
|
if (i[0] & 5) throw i[1];
|
|
2992
2964
|
return { value: i[0] ? i[1] : void 0, done: !0 };
|
|
2993
2965
|
}
|
|
2994
2966
|
}
|
|
2995
2967
|
function X(e) {
|
|
2996
|
-
var n = typeof Symbol == "function" && Symbol.iterator, t = n && e[n],
|
|
2968
|
+
var n = typeof Symbol == "function" && Symbol.iterator, t = n && e[n], r = 0;
|
|
2997
2969
|
if (t) return t.call(e);
|
|
2998
2970
|
if (e && typeof e.length == "number") return {
|
|
2999
2971
|
next: function() {
|
|
3000
|
-
return e &&
|
|
2972
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
3001
2973
|
}
|
|
3002
2974
|
};
|
|
3003
2975
|
throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3004
2976
|
}
|
|
3005
|
-
function
|
|
2977
|
+
function le(e, n) {
|
|
3006
2978
|
var t = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3007
2979
|
if (!t) return e;
|
|
3008
|
-
var
|
|
2980
|
+
var r = t.call(e), o, a = [], l;
|
|
3009
2981
|
try {
|
|
3010
|
-
for (; (n === void 0 || n-- > 0) && !(
|
|
2982
|
+
for (; (n === void 0 || n-- > 0) && !(o = r.next()).done; ) a.push(o.value);
|
|
3011
2983
|
} catch (u) {
|
|
3012
2984
|
l = { error: u };
|
|
3013
2985
|
} finally {
|
|
3014
2986
|
try {
|
|
3015
|
-
|
|
2987
|
+
o && !o.done && (t = r.return) && t.call(r);
|
|
3016
2988
|
} finally {
|
|
3017
2989
|
if (l) throw l.error;
|
|
3018
2990
|
}
|
|
3019
2991
|
}
|
|
3020
2992
|
return a;
|
|
3021
2993
|
}
|
|
3022
|
-
function
|
|
3023
|
-
if (t || arguments.length === 2) for (var
|
|
3024
|
-
(a || !(
|
|
2994
|
+
function ue(e, n, t) {
|
|
2995
|
+
if (t || arguments.length === 2) for (var r = 0, o = n.length, a; r < o; r++)
|
|
2996
|
+
(a || !(r in n)) && (a || (a = Array.prototype.slice.call(n, 0, r)), a[r] = n[r]);
|
|
3025
2997
|
return e.concat(a || Array.prototype.slice.call(n));
|
|
3026
2998
|
}
|
|
3027
|
-
function
|
|
3028
|
-
return this instanceof
|
|
2999
|
+
function J(e) {
|
|
3000
|
+
return this instanceof J ? (this.v = e, this) : new J(e);
|
|
3029
3001
|
}
|
|
3030
|
-
function
|
|
3002
|
+
function Ur(e, n, t) {
|
|
3031
3003
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3032
|
-
var
|
|
3033
|
-
return
|
|
3004
|
+
var r = t.apply(e, n || []), o, a = [];
|
|
3005
|
+
return o = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", l), o[Symbol.asyncIterator] = function() {
|
|
3034
3006
|
return this;
|
|
3035
|
-
},
|
|
3036
|
-
function l(
|
|
3007
|
+
}, o;
|
|
3008
|
+
function l(p) {
|
|
3037
3009
|
return function(v) {
|
|
3038
|
-
return Promise.resolve(v).then(
|
|
3010
|
+
return Promise.resolve(v).then(p, c);
|
|
3039
3011
|
};
|
|
3040
3012
|
}
|
|
3041
|
-
function u(
|
|
3042
|
-
|
|
3043
|
-
return new Promise(function(
|
|
3044
|
-
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);
|
|
3045
3017
|
});
|
|
3046
|
-
}, v && (
|
|
3018
|
+
}, v && (o[p] = v(o[p])));
|
|
3047
3019
|
}
|
|
3048
|
-
function p
|
|
3020
|
+
function s(p, v) {
|
|
3049
3021
|
try {
|
|
3050
|
-
i(
|
|
3051
|
-
} catch (
|
|
3052
|
-
f(a[0][3],
|
|
3022
|
+
i(r[p](v));
|
|
3023
|
+
} catch (m) {
|
|
3024
|
+
f(a[0][3], m);
|
|
3053
3025
|
}
|
|
3054
3026
|
}
|
|
3055
|
-
function i(
|
|
3056
|
-
|
|
3027
|
+
function i(p) {
|
|
3028
|
+
p.value instanceof J ? Promise.resolve(p.value.v).then(d, c) : f(a[0][2], p);
|
|
3057
3029
|
}
|
|
3058
|
-
function d(
|
|
3059
|
-
|
|
3030
|
+
function d(p) {
|
|
3031
|
+
s("next", p);
|
|
3060
3032
|
}
|
|
3061
|
-
function c(
|
|
3062
|
-
|
|
3033
|
+
function c(p) {
|
|
3034
|
+
s("throw", p);
|
|
3063
3035
|
}
|
|
3064
|
-
function f(
|
|
3065
|
-
|
|
3036
|
+
function f(p, v) {
|
|
3037
|
+
p(v), a.shift(), a.length && s(a[0][0], a[0][1]);
|
|
3066
3038
|
}
|
|
3067
3039
|
}
|
|
3068
|
-
function
|
|
3040
|
+
function _r(e) {
|
|
3069
3041
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3070
3042
|
var n = e[Symbol.asyncIterator], t;
|
|
3071
|
-
return n ? n.call(e) : (e = typeof X == "function" ? X(e) : e[Symbol.iterator](), t = {},
|
|
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() {
|
|
3072
3044
|
return this;
|
|
3073
3045
|
}, t);
|
|
3074
|
-
function
|
|
3046
|
+
function r(a) {
|
|
3075
3047
|
t[a] = e[a] && function(l) {
|
|
3076
|
-
return new Promise(function(u,
|
|
3077
|
-
l = e[a](l),
|
|
3048
|
+
return new Promise(function(u, s) {
|
|
3049
|
+
l = e[a](l), o(u, s, l.done, l.value);
|
|
3078
3050
|
});
|
|
3079
3051
|
};
|
|
3080
3052
|
}
|
|
3081
|
-
function
|
|
3082
|
-
Promise.resolve(
|
|
3053
|
+
function o(a, l, u, s) {
|
|
3054
|
+
Promise.resolve(s).then(function(i) {
|
|
3083
3055
|
a({ value: i, done: u });
|
|
3084
3056
|
}, l);
|
|
3085
3057
|
}
|
|
@@ -3087,48 +3059,48 @@ function Do(e) {
|
|
|
3087
3059
|
function I(e) {
|
|
3088
3060
|
return typeof e == "function";
|
|
3089
3061
|
}
|
|
3090
|
-
function
|
|
3091
|
-
var n = function(
|
|
3092
|
-
Error.call(
|
|
3062
|
+
function lt(e) {
|
|
3063
|
+
var n = function(r) {
|
|
3064
|
+
Error.call(r), r.stack = new Error().stack;
|
|
3093
3065
|
}, t = e(n);
|
|
3094
3066
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
3095
3067
|
}
|
|
3096
|
-
var
|
|
3068
|
+
var fe = lt(function(e) {
|
|
3097
3069
|
return function(t) {
|
|
3098
3070
|
e(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
3099
|
-
` + t.map(function(
|
|
3100
|
-
return
|
|
3071
|
+
` + t.map(function(r, o) {
|
|
3072
|
+
return o + 1 + ") " + r.toString();
|
|
3101
3073
|
}).join(`
|
|
3102
3074
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
3103
3075
|
};
|
|
3104
3076
|
});
|
|
3105
|
-
function
|
|
3077
|
+
function se(e, n) {
|
|
3106
3078
|
if (e) {
|
|
3107
3079
|
var t = e.indexOf(n);
|
|
3108
3080
|
0 <= t && e.splice(t, 1);
|
|
3109
3081
|
}
|
|
3110
3082
|
}
|
|
3111
|
-
var
|
|
3083
|
+
var ne = function() {
|
|
3112
3084
|
function e(n) {
|
|
3113
3085
|
this.initialTeardown = n, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
3114
3086
|
}
|
|
3115
3087
|
return e.prototype.unsubscribe = function() {
|
|
3116
|
-
var n, t,
|
|
3088
|
+
var n, t, r, o, a;
|
|
3117
3089
|
if (!this.closed) {
|
|
3118
3090
|
this.closed = !0;
|
|
3119
3091
|
var l = this._parentage;
|
|
3120
3092
|
if (l)
|
|
3121
3093
|
if (this._parentage = null, Array.isArray(l))
|
|
3122
3094
|
try {
|
|
3123
|
-
for (var u = X(l),
|
|
3124
|
-
var i =
|
|
3095
|
+
for (var u = X(l), s = u.next(); !s.done; s = u.next()) {
|
|
3096
|
+
var i = s.value;
|
|
3125
3097
|
i.remove(this);
|
|
3126
3098
|
}
|
|
3127
|
-
} catch (
|
|
3128
|
-
n = { error:
|
|
3099
|
+
} catch (m) {
|
|
3100
|
+
n = { error: m };
|
|
3129
3101
|
} finally {
|
|
3130
3102
|
try {
|
|
3131
|
-
|
|
3103
|
+
s && !s.done && (t = u.return) && t.call(u);
|
|
3132
3104
|
} finally {
|
|
3133
3105
|
if (n) throw n.error;
|
|
3134
3106
|
}
|
|
@@ -3139,39 +3111,39 @@ var te = function() {
|
|
|
3139
3111
|
if (I(d))
|
|
3140
3112
|
try {
|
|
3141
3113
|
d();
|
|
3142
|
-
} catch (
|
|
3143
|
-
a =
|
|
3114
|
+
} catch (m) {
|
|
3115
|
+
a = m instanceof fe ? m.errors : [m];
|
|
3144
3116
|
}
|
|
3145
3117
|
var c = this._finalizers;
|
|
3146
3118
|
if (c) {
|
|
3147
3119
|
this._finalizers = null;
|
|
3148
3120
|
try {
|
|
3149
|
-
for (var f = X(c),
|
|
3150
|
-
var v =
|
|
3121
|
+
for (var f = X(c), p = f.next(); !p.done; p = f.next()) {
|
|
3122
|
+
var v = p.value;
|
|
3151
3123
|
try {
|
|
3152
|
-
|
|
3153
|
-
} catch (
|
|
3154
|
-
a = a ?? [],
|
|
3124
|
+
Le(v);
|
|
3125
|
+
} catch (m) {
|
|
3126
|
+
a = a ?? [], m instanceof fe ? a = ue(ue([], le(a)), le(m.errors)) : a.push(m);
|
|
3155
3127
|
}
|
|
3156
3128
|
}
|
|
3157
|
-
} catch (
|
|
3158
|
-
|
|
3129
|
+
} catch (m) {
|
|
3130
|
+
r = { error: m };
|
|
3159
3131
|
} finally {
|
|
3160
3132
|
try {
|
|
3161
|
-
|
|
3133
|
+
p && !p.done && (o = f.return) && o.call(f);
|
|
3162
3134
|
} finally {
|
|
3163
|
-
if (
|
|
3135
|
+
if (r) throw r.error;
|
|
3164
3136
|
}
|
|
3165
3137
|
}
|
|
3166
3138
|
}
|
|
3167
3139
|
if (a)
|
|
3168
|
-
throw new
|
|
3140
|
+
throw new fe(a);
|
|
3169
3141
|
}
|
|
3170
3142
|
}, e.prototype.add = function(n) {
|
|
3171
3143
|
var t;
|
|
3172
3144
|
if (n && n !== this)
|
|
3173
3145
|
if (this.closed)
|
|
3174
|
-
|
|
3146
|
+
Le(n);
|
|
3175
3147
|
else {
|
|
3176
3148
|
if (n instanceof e) {
|
|
3177
3149
|
if (n.closed || n._hasParent(this))
|
|
@@ -3188,56 +3160,56 @@ var te = function() {
|
|
|
3188
3160
|
this._parentage = Array.isArray(t) ? (t.push(n), t) : t ? [t, n] : n;
|
|
3189
3161
|
}, e.prototype._removeParent = function(n) {
|
|
3190
3162
|
var t = this._parentage;
|
|
3191
|
-
t === n ? this._parentage = null : Array.isArray(t) &&
|
|
3163
|
+
t === n ? this._parentage = null : Array.isArray(t) && se(t, n);
|
|
3192
3164
|
}, e.prototype.remove = function(n) {
|
|
3193
3165
|
var t = this._finalizers;
|
|
3194
|
-
t &&
|
|
3166
|
+
t && se(t, n), n instanceof e && n._removeParent(this);
|
|
3195
3167
|
}, e.EMPTY = function() {
|
|
3196
3168
|
var n = new e();
|
|
3197
3169
|
return n.closed = !0, n;
|
|
3198
3170
|
}(), e;
|
|
3199
|
-
}(),
|
|
3200
|
-
function
|
|
3201
|
-
return e instanceof
|
|
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);
|
|
3202
3174
|
}
|
|
3203
|
-
function
|
|
3175
|
+
function Le(e) {
|
|
3204
3176
|
I(e) ? e() : e.unsubscribe();
|
|
3205
3177
|
}
|
|
3206
|
-
var
|
|
3178
|
+
var ct = {
|
|
3207
3179
|
onUnhandledError: null,
|
|
3208
3180
|
onStoppedNotification: null,
|
|
3209
3181
|
Promise: void 0,
|
|
3210
3182
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
3211
3183
|
useDeprecatedNextContext: !1
|
|
3212
|
-
},
|
|
3184
|
+
}, Rr = {
|
|
3213
3185
|
setTimeout: function(e, n) {
|
|
3214
|
-
for (var t = [],
|
|
3215
|
-
t[
|
|
3216
|
-
return setTimeout.apply(void 0,
|
|
3186
|
+
for (var t = [], r = 2; r < arguments.length; r++)
|
|
3187
|
+
t[r - 2] = arguments[r];
|
|
3188
|
+
return setTimeout.apply(void 0, ue([e, n], le(t)));
|
|
3217
3189
|
},
|
|
3218
3190
|
clearTimeout: function(e) {
|
|
3219
3191
|
return clearTimeout(e);
|
|
3220
3192
|
},
|
|
3221
3193
|
delegate: void 0
|
|
3222
3194
|
};
|
|
3223
|
-
function
|
|
3224
|
-
|
|
3195
|
+
function dt(e) {
|
|
3196
|
+
Rr.setTimeout(function() {
|
|
3225
3197
|
throw e;
|
|
3226
3198
|
});
|
|
3227
3199
|
}
|
|
3228
|
-
function
|
|
3200
|
+
function Ue() {
|
|
3229
3201
|
}
|
|
3230
|
-
function
|
|
3202
|
+
function ae(e) {
|
|
3231
3203
|
e();
|
|
3232
3204
|
}
|
|
3233
|
-
var
|
|
3205
|
+
var ke = function(e) {
|
|
3234
3206
|
z(n, e);
|
|
3235
3207
|
function n(t) {
|
|
3236
|
-
var
|
|
3237
|
-
return
|
|
3208
|
+
var r = e.call(this) || this;
|
|
3209
|
+
return r.isStopped = !1, t ? (r.destination = t, st(t) && t.add(r)) : r.destination = Wr, r;
|
|
3238
3210
|
}
|
|
3239
|
-
return n.create = function(t,
|
|
3240
|
-
return new
|
|
3211
|
+
return n.create = function(t, r, o) {
|
|
3212
|
+
return new Se(t, r, o);
|
|
3241
3213
|
}, n.prototype.next = function(t) {
|
|
3242
3214
|
this.isStopped || this._next(t);
|
|
3243
3215
|
}, n.prototype.error = function(t) {
|
|
@@ -3261,11 +3233,11 @@ var Fe = function(e) {
|
|
|
3261
3233
|
this.unsubscribe();
|
|
3262
3234
|
}
|
|
3263
3235
|
}, n;
|
|
3264
|
-
}(
|
|
3265
|
-
function
|
|
3266
|
-
return
|
|
3236
|
+
}(ne), Gr = Function.prototype.bind;
|
|
3237
|
+
function ve(e, n) {
|
|
3238
|
+
return Gr.call(e, n);
|
|
3267
3239
|
}
|
|
3268
|
-
var
|
|
3240
|
+
var Hr = function() {
|
|
3269
3241
|
function e(n) {
|
|
3270
3242
|
this.partialObserver = n;
|
|
3271
3243
|
}
|
|
@@ -3274,16 +3246,16 @@ var $o = function() {
|
|
|
3274
3246
|
if (t.next)
|
|
3275
3247
|
try {
|
|
3276
3248
|
t.next(n);
|
|
3277
|
-
} catch (
|
|
3278
|
-
oe(
|
|
3249
|
+
} catch (r) {
|
|
3250
|
+
oe(r);
|
|
3279
3251
|
}
|
|
3280
3252
|
}, e.prototype.error = function(n) {
|
|
3281
3253
|
var t = this.partialObserver;
|
|
3282
3254
|
if (t.error)
|
|
3283
3255
|
try {
|
|
3284
3256
|
t.error(n);
|
|
3285
|
-
} catch (
|
|
3286
|
-
oe(
|
|
3257
|
+
} catch (r) {
|
|
3258
|
+
oe(r);
|
|
3287
3259
|
}
|
|
3288
3260
|
else
|
|
3289
3261
|
oe(n);
|
|
@@ -3296,66 +3268,66 @@ var $o = function() {
|
|
|
3296
3268
|
oe(t);
|
|
3297
3269
|
}
|
|
3298
3270
|
}, e;
|
|
3299
|
-
}(),
|
|
3271
|
+
}(), Se = function(e) {
|
|
3300
3272
|
z(n, e);
|
|
3301
|
-
function n(t,
|
|
3273
|
+
function n(t, r, o) {
|
|
3302
3274
|
var a = e.call(this) || this, l;
|
|
3303
3275
|
if (I(t) || !t)
|
|
3304
3276
|
l = {
|
|
3305
3277
|
next: t ?? void 0,
|
|
3306
|
-
error:
|
|
3307
|
-
complete:
|
|
3278
|
+
error: r ?? void 0,
|
|
3279
|
+
complete: o ?? void 0
|
|
3308
3280
|
};
|
|
3309
3281
|
else {
|
|
3310
3282
|
var u;
|
|
3311
|
-
a &&
|
|
3283
|
+
a && ct.useDeprecatedNextContext ? (u = Object.create(t), u.unsubscribe = function() {
|
|
3312
3284
|
return a.unsubscribe();
|
|
3313
3285
|
}, l = {
|
|
3314
|
-
next: t.next &&
|
|
3315
|
-
error: t.error &&
|
|
3316
|
-
complete: t.complete &&
|
|
3286
|
+
next: t.next && ve(t.next, u),
|
|
3287
|
+
error: t.error && ve(t.error, u),
|
|
3288
|
+
complete: t.complete && ve(t.complete, u)
|
|
3317
3289
|
}) : l = t;
|
|
3318
3290
|
}
|
|
3319
|
-
return a.destination = new
|
|
3291
|
+
return a.destination = new Hr(l), a;
|
|
3320
3292
|
}
|
|
3321
3293
|
return n;
|
|
3322
|
-
}(
|
|
3294
|
+
}(ke);
|
|
3323
3295
|
function oe(e) {
|
|
3324
|
-
|
|
3296
|
+
dt(e);
|
|
3325
3297
|
}
|
|
3326
|
-
function
|
|
3298
|
+
function qr(e) {
|
|
3327
3299
|
throw e;
|
|
3328
3300
|
}
|
|
3329
|
-
var
|
|
3301
|
+
var Wr = {
|
|
3330
3302
|
closed: !0,
|
|
3331
|
-
next:
|
|
3332
|
-
error:
|
|
3333
|
-
complete:
|
|
3334
|
-
},
|
|
3303
|
+
next: Ue,
|
|
3304
|
+
error: qr,
|
|
3305
|
+
complete: Ue
|
|
3306
|
+
}, Ee = function() {
|
|
3335
3307
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
3336
3308
|
}();
|
|
3337
|
-
function
|
|
3309
|
+
function zr(e) {
|
|
3338
3310
|
return e;
|
|
3339
3311
|
}
|
|
3340
|
-
function
|
|
3341
|
-
return e.length === 0 ?
|
|
3342
|
-
return e.reduce(function(
|
|
3343
|
-
return r
|
|
3312
|
+
function Yr(e) {
|
|
3313
|
+
return e.length === 0 ? zr : e.length === 1 ? e[0] : function(t) {
|
|
3314
|
+
return e.reduce(function(r, o) {
|
|
3315
|
+
return o(r);
|
|
3344
3316
|
}, t);
|
|
3345
3317
|
};
|
|
3346
3318
|
}
|
|
3347
|
-
var
|
|
3319
|
+
var R = function() {
|
|
3348
3320
|
function e(n) {
|
|
3349
3321
|
n && (this._subscribe = n);
|
|
3350
3322
|
}
|
|
3351
3323
|
return e.prototype.lift = function(n) {
|
|
3352
3324
|
var t = new e();
|
|
3353
3325
|
return t.source = this, t.operator = n, t;
|
|
3354
|
-
}, e.prototype.subscribe = function(n, t,
|
|
3355
|
-
var
|
|
3356
|
-
return
|
|
3357
|
-
var l =
|
|
3358
|
-
a.add(u ? u.call(a,
|
|
3326
|
+
}, e.prototype.subscribe = function(n, t, r) {
|
|
3327
|
+
var o = this, a = Jr(n) ? n : new Se(n, t, r);
|
|
3328
|
+
return ae(function() {
|
|
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));
|
|
3359
3331
|
}), a;
|
|
3360
3332
|
}, e.prototype._trySubscribe = function(n) {
|
|
3361
3333
|
try {
|
|
@@ -3364,86 +3336,86 @@ var _ = function() {
|
|
|
3364
3336
|
n.error(t);
|
|
3365
3337
|
}
|
|
3366
3338
|
}, e.prototype.forEach = function(n, t) {
|
|
3367
|
-
var
|
|
3368
|
-
return t =
|
|
3369
|
-
var l = new
|
|
3339
|
+
var r = this;
|
|
3340
|
+
return t = _e(t), new t(function(o, a) {
|
|
3341
|
+
var l = new Se({
|
|
3370
3342
|
next: function(u) {
|
|
3371
3343
|
try {
|
|
3372
3344
|
n(u);
|
|
3373
|
-
} catch (
|
|
3374
|
-
a(
|
|
3345
|
+
} catch (s) {
|
|
3346
|
+
a(s), l.unsubscribe();
|
|
3375
3347
|
}
|
|
3376
3348
|
},
|
|
3377
3349
|
error: a,
|
|
3378
|
-
complete:
|
|
3350
|
+
complete: o
|
|
3379
3351
|
});
|
|
3380
|
-
|
|
3352
|
+
r.subscribe(l);
|
|
3381
3353
|
});
|
|
3382
3354
|
}, e.prototype._subscribe = function(n) {
|
|
3383
3355
|
var t;
|
|
3384
3356
|
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(n);
|
|
3385
|
-
}, e.prototype[
|
|
3357
|
+
}, e.prototype[Ee] = function() {
|
|
3386
3358
|
return this;
|
|
3387
3359
|
}, e.prototype.pipe = function() {
|
|
3388
3360
|
for (var n = [], t = 0; t < arguments.length; t++)
|
|
3389
3361
|
n[t] = arguments[t];
|
|
3390
|
-
return
|
|
3362
|
+
return Yr(n)(this);
|
|
3391
3363
|
}, e.prototype.toPromise = function(n) {
|
|
3392
3364
|
var t = this;
|
|
3393
|
-
return n =
|
|
3365
|
+
return n = _e(n), new n(function(r, o) {
|
|
3394
3366
|
var a;
|
|
3395
3367
|
t.subscribe(function(l) {
|
|
3396
3368
|
return a = l;
|
|
3397
3369
|
}, function(l) {
|
|
3398
|
-
return
|
|
3370
|
+
return o(l);
|
|
3399
3371
|
}, function() {
|
|
3400
|
-
return
|
|
3372
|
+
return r(a);
|
|
3401
3373
|
});
|
|
3402
3374
|
});
|
|
3403
3375
|
}, e.create = function(n) {
|
|
3404
3376
|
return new e(n);
|
|
3405
3377
|
}, e;
|
|
3406
3378
|
}();
|
|
3407
|
-
function
|
|
3379
|
+
function _e(e) {
|
|
3408
3380
|
var n;
|
|
3409
|
-
return (n = e ??
|
|
3381
|
+
return (n = e ?? ct.Promise) !== null && n !== void 0 ? n : Promise;
|
|
3410
3382
|
}
|
|
3411
|
-
function
|
|
3383
|
+
function Zr(e) {
|
|
3412
3384
|
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
3413
3385
|
}
|
|
3414
|
-
function
|
|
3415
|
-
return e && e instanceof
|
|
3386
|
+
function Jr(e) {
|
|
3387
|
+
return e && e instanceof ke || Zr(e) && st(e);
|
|
3416
3388
|
}
|
|
3417
|
-
function
|
|
3389
|
+
function Qr(e) {
|
|
3418
3390
|
return I(e == null ? void 0 : e.lift);
|
|
3419
3391
|
}
|
|
3420
|
-
function
|
|
3392
|
+
function Ae(e) {
|
|
3421
3393
|
return function(n) {
|
|
3422
|
-
if (
|
|
3394
|
+
if (Qr(n))
|
|
3423
3395
|
return n.lift(function(t) {
|
|
3424
3396
|
try {
|
|
3425
3397
|
return e(t, this);
|
|
3426
|
-
} catch (
|
|
3427
|
-
this.error(
|
|
3398
|
+
} catch (r) {
|
|
3399
|
+
this.error(r);
|
|
3428
3400
|
}
|
|
3429
3401
|
});
|
|
3430
3402
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
3431
3403
|
};
|
|
3432
3404
|
}
|
|
3433
|
-
function
|
|
3434
|
-
return new
|
|
3405
|
+
function pt(e, n, t, r, o) {
|
|
3406
|
+
return new Xr(e, n, t, r, o);
|
|
3435
3407
|
}
|
|
3436
|
-
var
|
|
3408
|
+
var Xr = function(e) {
|
|
3437
3409
|
z(n, e);
|
|
3438
|
-
function n(t,
|
|
3439
|
-
var
|
|
3440
|
-
return
|
|
3410
|
+
function n(t, r, o, a, l, u) {
|
|
3411
|
+
var s = e.call(this, t) || this;
|
|
3412
|
+
return s.onFinalize = l, s.shouldUnsubscribe = u, s._next = r ? function(i) {
|
|
3441
3413
|
try {
|
|
3442
|
-
|
|
3414
|
+
r(i);
|
|
3443
3415
|
} catch (d) {
|
|
3444
3416
|
t.error(d);
|
|
3445
3417
|
}
|
|
3446
|
-
} : e.prototype._next,
|
|
3418
|
+
} : e.prototype._next, s._error = a ? function(i) {
|
|
3447
3419
|
try {
|
|
3448
3420
|
a(i);
|
|
3449
3421
|
} catch (d) {
|
|
@@ -3451,77 +3423,77 @@ var Wo = function(e) {
|
|
|
3451
3423
|
} finally {
|
|
3452
3424
|
this.unsubscribe();
|
|
3453
3425
|
}
|
|
3454
|
-
} : e.prototype._error,
|
|
3426
|
+
} : e.prototype._error, s._complete = o ? function() {
|
|
3455
3427
|
try {
|
|
3456
|
-
|
|
3428
|
+
o();
|
|
3457
3429
|
} catch (i) {
|
|
3458
3430
|
t.error(i);
|
|
3459
3431
|
} finally {
|
|
3460
3432
|
this.unsubscribe();
|
|
3461
3433
|
}
|
|
3462
|
-
} : e.prototype._complete,
|
|
3434
|
+
} : e.prototype._complete, s;
|
|
3463
3435
|
}
|
|
3464
3436
|
return n.prototype.unsubscribe = function() {
|
|
3465
3437
|
var t;
|
|
3466
3438
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
3467
|
-
var
|
|
3468
|
-
e.prototype.unsubscribe.call(this), !
|
|
3439
|
+
var r = this.closed;
|
|
3440
|
+
e.prototype.unsubscribe.call(this), !r && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
3469
3441
|
}
|
|
3470
3442
|
}, n;
|
|
3471
|
-
}(
|
|
3443
|
+
}(ke), Kr = lt(function(e) {
|
|
3472
3444
|
return function() {
|
|
3473
3445
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
3474
3446
|
};
|
|
3475
|
-
}),
|
|
3447
|
+
}), ft = function(e) {
|
|
3476
3448
|
z(n, e);
|
|
3477
3449
|
function n() {
|
|
3478
3450
|
var t = e.call(this) || this;
|
|
3479
3451
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
|
3480
3452
|
}
|
|
3481
3453
|
return n.prototype.lift = function(t) {
|
|
3482
|
-
var
|
|
3483
|
-
return
|
|
3454
|
+
var r = new Re(this, this);
|
|
3455
|
+
return r.operator = t, r;
|
|
3484
3456
|
}, n.prototype._throwIfClosed = function() {
|
|
3485
3457
|
if (this.closed)
|
|
3486
|
-
throw new
|
|
3458
|
+
throw new Kr();
|
|
3487
3459
|
}, n.prototype.next = function(t) {
|
|
3488
|
-
var
|
|
3489
|
-
|
|
3490
|
-
var
|
|
3491
|
-
if (
|
|
3492
|
-
|
|
3460
|
+
var r = this;
|
|
3461
|
+
ae(function() {
|
|
3462
|
+
var o, a;
|
|
3463
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
3464
|
+
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
3493
3465
|
try {
|
|
3494
|
-
for (var l = X(
|
|
3495
|
-
var
|
|
3496
|
-
|
|
3466
|
+
for (var l = X(r.currentObservers), u = l.next(); !u.done; u = l.next()) {
|
|
3467
|
+
var s = u.value;
|
|
3468
|
+
s.next(t);
|
|
3497
3469
|
}
|
|
3498
3470
|
} catch (i) {
|
|
3499
|
-
|
|
3471
|
+
o = { error: i };
|
|
3500
3472
|
} finally {
|
|
3501
3473
|
try {
|
|
3502
3474
|
u && !u.done && (a = l.return) && a.call(l);
|
|
3503
3475
|
} finally {
|
|
3504
|
-
if (
|
|
3476
|
+
if (o) throw o.error;
|
|
3505
3477
|
}
|
|
3506
3478
|
}
|
|
3507
3479
|
}
|
|
3508
3480
|
});
|
|
3509
3481
|
}, n.prototype.error = function(t) {
|
|
3510
|
-
var
|
|
3511
|
-
|
|
3512
|
-
if (
|
|
3513
|
-
|
|
3514
|
-
for (var
|
|
3515
|
-
|
|
3482
|
+
var r = this;
|
|
3483
|
+
ae(function() {
|
|
3484
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
3485
|
+
r.hasError = r.isStopped = !0, r.thrownError = t;
|
|
3486
|
+
for (var o = r.observers; o.length; )
|
|
3487
|
+
o.shift().error(t);
|
|
3516
3488
|
}
|
|
3517
3489
|
});
|
|
3518
3490
|
}, n.prototype.complete = function() {
|
|
3519
3491
|
var t = this;
|
|
3520
|
-
|
|
3492
|
+
ae(function() {
|
|
3521
3493
|
if (t._throwIfClosed(), !t.isStopped) {
|
|
3522
3494
|
t.isStopped = !0;
|
|
3523
|
-
for (var
|
|
3524
|
-
|
|
3495
|
+
for (var r = t.observers; r.length; )
|
|
3496
|
+
r.shift().complete();
|
|
3525
3497
|
}
|
|
3526
3498
|
});
|
|
3527
3499
|
}, n.prototype.unsubscribe = function() {
|
|
@@ -3538,184 +3510,184 @@ var Wo = function(e) {
|
|
|
3538
3510
|
}, n.prototype._subscribe = function(t) {
|
|
3539
3511
|
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
|
3540
3512
|
}, n.prototype._innerSubscribe = function(t) {
|
|
3541
|
-
var
|
|
3542
|
-
return a || l ?
|
|
3543
|
-
|
|
3513
|
+
var r = this, o = this, a = o.hasError, l = o.isStopped, u = o.observers;
|
|
3514
|
+
return a || l ? ut : (this.currentObservers = null, u.push(t), new ne(function() {
|
|
3515
|
+
r.currentObservers = null, se(u, t);
|
|
3544
3516
|
}));
|
|
3545
3517
|
}, n.prototype._checkFinalizedStatuses = function(t) {
|
|
3546
|
-
var
|
|
3547
|
-
|
|
3518
|
+
var r = this, o = r.hasError, a = r.thrownError, l = r.isStopped;
|
|
3519
|
+
o ? t.error(a) : l && t.complete();
|
|
3548
3520
|
}, n.prototype.asObservable = function() {
|
|
3549
|
-
var t = new
|
|
3521
|
+
var t = new R();
|
|
3550
3522
|
return t.source = this, t;
|
|
3551
|
-
}, n.create = function(t,
|
|
3552
|
-
return new
|
|
3523
|
+
}, n.create = function(t, r) {
|
|
3524
|
+
return new Re(t, r);
|
|
3553
3525
|
}, n;
|
|
3554
|
-
}(
|
|
3526
|
+
}(R), Re = function(e) {
|
|
3555
3527
|
z(n, e);
|
|
3556
|
-
function n(t,
|
|
3557
|
-
var
|
|
3558
|
-
return
|
|
3528
|
+
function n(t, r) {
|
|
3529
|
+
var o = e.call(this) || this;
|
|
3530
|
+
return o.destination = t, o.source = r, o;
|
|
3559
3531
|
}
|
|
3560
3532
|
return n.prototype.next = function(t) {
|
|
3561
|
-
var
|
|
3562
|
-
(
|
|
3533
|
+
var r, o;
|
|
3534
|
+
(o = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || o === void 0 || o.call(r, t);
|
|
3563
3535
|
}, n.prototype.error = function(t) {
|
|
3564
|
-
var
|
|
3565
|
-
(
|
|
3536
|
+
var r, o;
|
|
3537
|
+
(o = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || o === void 0 || o.call(r, t);
|
|
3566
3538
|
}, n.prototype.complete = function() {
|
|
3567
|
-
var t,
|
|
3568
|
-
(
|
|
3539
|
+
var t, r;
|
|
3540
|
+
(r = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || r === void 0 || r.call(t);
|
|
3569
3541
|
}, n.prototype._subscribe = function(t) {
|
|
3570
|
-
var
|
|
3571
|
-
return (
|
|
3542
|
+
var r, o;
|
|
3543
|
+
return (o = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t)) !== null && o !== void 0 ? o : ut;
|
|
3572
3544
|
}, n;
|
|
3573
|
-
}(
|
|
3545
|
+
}(ft), eo = {
|
|
3574
3546
|
now: function() {
|
|
3575
3547
|
return Date.now();
|
|
3576
3548
|
},
|
|
3577
3549
|
delegate: void 0
|
|
3578
|
-
},
|
|
3550
|
+
}, to = function(e) {
|
|
3579
3551
|
z(n, e);
|
|
3580
|
-
function n(t,
|
|
3552
|
+
function n(t, r) {
|
|
3581
3553
|
return e.call(this) || this;
|
|
3582
3554
|
}
|
|
3583
|
-
return n.prototype.schedule = function(t,
|
|
3555
|
+
return n.prototype.schedule = function(t, r) {
|
|
3584
3556
|
return this;
|
|
3585
3557
|
}, n;
|
|
3586
|
-
}(
|
|
3558
|
+
}(ne), Ge = {
|
|
3587
3559
|
setInterval: function(e, n) {
|
|
3588
|
-
for (var t = [],
|
|
3589
|
-
t[
|
|
3590
|
-
return setInterval.apply(void 0,
|
|
3560
|
+
for (var t = [], r = 2; r < arguments.length; r++)
|
|
3561
|
+
t[r - 2] = arguments[r];
|
|
3562
|
+
return setInterval.apply(void 0, ue([e, n], le(t)));
|
|
3591
3563
|
},
|
|
3592
3564
|
clearInterval: function(e) {
|
|
3593
3565
|
return clearInterval(e);
|
|
3594
3566
|
},
|
|
3595
3567
|
delegate: void 0
|
|
3596
|
-
},
|
|
3568
|
+
}, no = function(e) {
|
|
3597
3569
|
z(n, e);
|
|
3598
|
-
function n(t,
|
|
3599
|
-
var
|
|
3600
|
-
return
|
|
3570
|
+
function n(t, r) {
|
|
3571
|
+
var o = e.call(this, t, r) || this;
|
|
3572
|
+
return o.scheduler = t, o.work = r, o.pending = !1, o;
|
|
3601
3573
|
}
|
|
3602
|
-
return n.prototype.schedule = function(t,
|
|
3603
|
-
var
|
|
3604
|
-
if (
|
|
3574
|
+
return n.prototype.schedule = function(t, r) {
|
|
3575
|
+
var o;
|
|
3576
|
+
if (r === void 0 && (r = 0), this.closed)
|
|
3605
3577
|
return this;
|
|
3606
3578
|
this.state = t;
|
|
3607
3579
|
var a = this.id, l = this.scheduler;
|
|
3608
|
-
return a != null && (this.id = this.recycleAsyncId(l, a,
|
|
3609
|
-
}, n.prototype.requestAsyncId = function(t,
|
|
3610
|
-
return
|
|
3611
|
-
}, n.prototype.recycleAsyncId = function(t,
|
|
3612
|
-
if (
|
|
3613
|
-
return
|
|
3614
|
-
|
|
3615
|
-
}, n.prototype.execute = function(t,
|
|
3580
|
+
return a != null && (this.id = this.recycleAsyncId(l, a, r)), this.pending = !0, this.delay = r, this.id = (o = this.id) !== null && o !== void 0 ? o : this.requestAsyncId(l, this.id, r), this;
|
|
3581
|
+
}, n.prototype.requestAsyncId = function(t, r, o) {
|
|
3582
|
+
return o === void 0 && (o = 0), Ge.setInterval(t.flush.bind(t, this), o);
|
|
3583
|
+
}, n.prototype.recycleAsyncId = function(t, r, o) {
|
|
3584
|
+
if (o === void 0 && (o = 0), o != null && this.delay === o && this.pending === !1)
|
|
3585
|
+
return r;
|
|
3586
|
+
r != null && Ge.clearInterval(r);
|
|
3587
|
+
}, n.prototype.execute = function(t, r) {
|
|
3616
3588
|
if (this.closed)
|
|
3617
3589
|
return new Error("executing a cancelled action");
|
|
3618
3590
|
this.pending = !1;
|
|
3619
|
-
var
|
|
3620
|
-
if (
|
|
3621
|
-
return
|
|
3591
|
+
var o = this._execute(t, r);
|
|
3592
|
+
if (o)
|
|
3593
|
+
return o;
|
|
3622
3594
|
this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null));
|
|
3623
|
-
}, n.prototype._execute = function(t,
|
|
3624
|
-
var
|
|
3595
|
+
}, n.prototype._execute = function(t, r) {
|
|
3596
|
+
var o = !1, a;
|
|
3625
3597
|
try {
|
|
3626
3598
|
this.work(t);
|
|
3627
3599
|
} catch (l) {
|
|
3628
|
-
|
|
3600
|
+
o = !0, a = l || new Error("Scheduled action threw falsy error");
|
|
3629
3601
|
}
|
|
3630
|
-
if (
|
|
3602
|
+
if (o)
|
|
3631
3603
|
return this.unsubscribe(), a;
|
|
3632
3604
|
}, n.prototype.unsubscribe = function() {
|
|
3633
3605
|
if (!this.closed) {
|
|
3634
|
-
var t = this,
|
|
3635
|
-
this.work = this.state = this.scheduler = null, this.pending = !1,
|
|
3606
|
+
var t = this, r = t.id, o = t.scheduler, a = o.actions;
|
|
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);
|
|
3636
3608
|
}
|
|
3637
3609
|
}, n;
|
|
3638
|
-
}(
|
|
3610
|
+
}(to), He = function() {
|
|
3639
3611
|
function e(n, t) {
|
|
3640
3612
|
t === void 0 && (t = e.now), this.schedulerActionCtor = n, this.now = t;
|
|
3641
3613
|
}
|
|
3642
|
-
return e.prototype.schedule = function(n, t,
|
|
3643
|
-
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, n).schedule(
|
|
3644
|
-
}, e.now =
|
|
3645
|
-
}(),
|
|
3614
|
+
return e.prototype.schedule = function(n, t, r) {
|
|
3615
|
+
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, n).schedule(r, t);
|
|
3616
|
+
}, e.now = eo.now, e;
|
|
3617
|
+
}(), ro = function(e) {
|
|
3646
3618
|
z(n, e);
|
|
3647
|
-
function n(t,
|
|
3648
|
-
|
|
3649
|
-
var
|
|
3650
|
-
return
|
|
3619
|
+
function n(t, r) {
|
|
3620
|
+
r === void 0 && (r = He.now);
|
|
3621
|
+
var o = e.call(this, t, r) || this;
|
|
3622
|
+
return o.actions = [], o._active = !1, o;
|
|
3651
3623
|
}
|
|
3652
3624
|
return n.prototype.flush = function(t) {
|
|
3653
|
-
var
|
|
3625
|
+
var r = this.actions;
|
|
3654
3626
|
if (this._active) {
|
|
3655
|
-
|
|
3627
|
+
r.push(t);
|
|
3656
3628
|
return;
|
|
3657
3629
|
}
|
|
3658
|
-
var
|
|
3630
|
+
var o;
|
|
3659
3631
|
this._active = !0;
|
|
3660
3632
|
do
|
|
3661
|
-
if (
|
|
3633
|
+
if (o = t.execute(t.state, t.delay))
|
|
3662
3634
|
break;
|
|
3663
|
-
while (t =
|
|
3664
|
-
if (this._active = !1,
|
|
3665
|
-
for (; t =
|
|
3635
|
+
while (t = r.shift());
|
|
3636
|
+
if (this._active = !1, o) {
|
|
3637
|
+
for (; t = r.shift(); )
|
|
3666
3638
|
t.unsubscribe();
|
|
3667
|
-
throw
|
|
3639
|
+
throw o;
|
|
3668
3640
|
}
|
|
3669
3641
|
}, n;
|
|
3670
|
-
}(
|
|
3671
|
-
function
|
|
3642
|
+
}(He), oo = new ro(no);
|
|
3643
|
+
function ao(e) {
|
|
3672
3644
|
return e && I(e.schedule);
|
|
3673
3645
|
}
|
|
3674
|
-
function
|
|
3646
|
+
function io(e) {
|
|
3675
3647
|
return e[e.length - 1];
|
|
3676
3648
|
}
|
|
3677
|
-
function
|
|
3678
|
-
return
|
|
3649
|
+
function lo(e) {
|
|
3650
|
+
return ao(io(e)) ? e.pop() : void 0;
|
|
3679
3651
|
}
|
|
3680
|
-
var
|
|
3652
|
+
var vt = function(e) {
|
|
3681
3653
|
return e && typeof e.length == "number" && typeof e != "function";
|
|
3682
3654
|
};
|
|
3683
|
-
function vt(e) {
|
|
3684
|
-
return I(e == null ? void 0 : e.then);
|
|
3685
|
-
}
|
|
3686
3655
|
function yt(e) {
|
|
3687
|
-
return I(e
|
|
3656
|
+
return I(e == null ? void 0 : e.then);
|
|
3688
3657
|
}
|
|
3689
3658
|
function mt(e) {
|
|
3690
|
-
return
|
|
3659
|
+
return I(e[Ee]);
|
|
3691
3660
|
}
|
|
3692
3661
|
function ht(e) {
|
|
3662
|
+
return Symbol.asyncIterator && I(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
3663
|
+
}
|
|
3664
|
+
function bt(e) {
|
|
3693
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.");
|
|
3694
3666
|
}
|
|
3695
|
-
function
|
|
3667
|
+
function uo() {
|
|
3696
3668
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
3697
3669
|
}
|
|
3698
|
-
var
|
|
3699
|
-
function gt(e) {
|
|
3700
|
-
return I(e == null ? void 0 : e[bt]);
|
|
3701
|
-
}
|
|
3670
|
+
var gt = uo();
|
|
3702
3671
|
function St(e) {
|
|
3703
|
-
return
|
|
3704
|
-
|
|
3705
|
-
|
|
3672
|
+
return I(e == null ? void 0 : e[gt]);
|
|
3673
|
+
}
|
|
3674
|
+
function wt(e) {
|
|
3675
|
+
return Ur(this, arguments, function() {
|
|
3676
|
+
var t, r, o, a;
|
|
3677
|
+
return it(this, function(l) {
|
|
3706
3678
|
switch (l.label) {
|
|
3707
3679
|
case 0:
|
|
3708
3680
|
t = e.getReader(), l.label = 1;
|
|
3709
3681
|
case 1:
|
|
3710
3682
|
l.trys.push([1, , 9, 10]), l.label = 2;
|
|
3711
3683
|
case 2:
|
|
3712
|
-
return [4,
|
|
3684
|
+
return [4, J(t.read())];
|
|
3713
3685
|
case 3:
|
|
3714
|
-
return
|
|
3686
|
+
return r = l.sent(), o = r.value, a = r.done, a ? [4, J(void 0)] : [3, 5];
|
|
3715
3687
|
case 4:
|
|
3716
3688
|
return [2, l.sent()];
|
|
3717
3689
|
case 5:
|
|
3718
|
-
return [4,
|
|
3690
|
+
return [4, J(o)];
|
|
3719
3691
|
case 6:
|
|
3720
3692
|
return [4, l.sent()];
|
|
3721
3693
|
case 7:
|
|
@@ -3733,54 +3705,54 @@ function St(e) {
|
|
|
3733
3705
|
function Ct(e) {
|
|
3734
3706
|
return I(e == null ? void 0 : e.getReader);
|
|
3735
3707
|
}
|
|
3736
|
-
function
|
|
3737
|
-
if (e instanceof
|
|
3708
|
+
function Pe(e) {
|
|
3709
|
+
if (e instanceof R)
|
|
3738
3710
|
return e;
|
|
3739
3711
|
if (e != null) {
|
|
3740
|
-
if (yt(e))
|
|
3741
|
-
return rr(e);
|
|
3742
|
-
if (ft(e))
|
|
3743
|
-
return ar(e);
|
|
3744
|
-
if (vt(e))
|
|
3745
|
-
return ir(e);
|
|
3746
3712
|
if (mt(e))
|
|
3747
|
-
return
|
|
3748
|
-
if (
|
|
3749
|
-
return
|
|
3713
|
+
return so(e);
|
|
3714
|
+
if (vt(e))
|
|
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);
|
|
3750
3722
|
if (Ct(e))
|
|
3751
|
-
return
|
|
3723
|
+
return vo(e);
|
|
3752
3724
|
}
|
|
3753
|
-
throw
|
|
3725
|
+
throw bt(e);
|
|
3754
3726
|
}
|
|
3755
|
-
function
|
|
3756
|
-
return new
|
|
3757
|
-
var t = e[
|
|
3727
|
+
function so(e) {
|
|
3728
|
+
return new R(function(n) {
|
|
3729
|
+
var t = e[Ee]();
|
|
3758
3730
|
if (I(t.subscribe))
|
|
3759
3731
|
return t.subscribe(n);
|
|
3760
3732
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
3761
3733
|
});
|
|
3762
3734
|
}
|
|
3763
|
-
function
|
|
3764
|
-
return new
|
|
3735
|
+
function co(e) {
|
|
3736
|
+
return new R(function(n) {
|
|
3765
3737
|
for (var t = 0; t < e.length && !n.closed; t++)
|
|
3766
3738
|
n.next(e[t]);
|
|
3767
3739
|
n.complete();
|
|
3768
3740
|
});
|
|
3769
3741
|
}
|
|
3770
|
-
function
|
|
3771
|
-
return new
|
|
3742
|
+
function po(e) {
|
|
3743
|
+
return new R(function(n) {
|
|
3772
3744
|
e.then(function(t) {
|
|
3773
3745
|
n.closed || (n.next(t), n.complete());
|
|
3774
3746
|
}, function(t) {
|
|
3775
3747
|
return n.error(t);
|
|
3776
|
-
}).then(null,
|
|
3748
|
+
}).then(null, dt);
|
|
3777
3749
|
});
|
|
3778
3750
|
}
|
|
3779
|
-
function
|
|
3780
|
-
return new
|
|
3781
|
-
var t,
|
|
3751
|
+
function fo(e) {
|
|
3752
|
+
return new R(function(n) {
|
|
3753
|
+
var t, r;
|
|
3782
3754
|
try {
|
|
3783
|
-
for (var
|
|
3755
|
+
for (var o = X(e), a = o.next(); !a.done; a = o.next()) {
|
|
3784
3756
|
var l = a.value;
|
|
3785
3757
|
if (n.next(l), n.closed)
|
|
3786
3758
|
return;
|
|
@@ -3789,7 +3761,7 @@ function lr(e) {
|
|
|
3789
3761
|
t = { error: u };
|
|
3790
3762
|
} finally {
|
|
3791
3763
|
try {
|
|
3792
|
-
a && !a.done && (
|
|
3764
|
+
a && !a.done && (r = o.return) && r.call(o);
|
|
3793
3765
|
} finally {
|
|
3794
3766
|
if (t) throw t.error;
|
|
3795
3767
|
}
|
|
@@ -3797,45 +3769,45 @@ function lr(e) {
|
|
|
3797
3769
|
n.complete();
|
|
3798
3770
|
});
|
|
3799
3771
|
}
|
|
3800
|
-
function
|
|
3801
|
-
return new
|
|
3802
|
-
|
|
3772
|
+
function xt(e) {
|
|
3773
|
+
return new R(function(n) {
|
|
3774
|
+
yo(e, n).catch(function(t) {
|
|
3803
3775
|
return n.error(t);
|
|
3804
3776
|
});
|
|
3805
3777
|
});
|
|
3806
3778
|
}
|
|
3807
|
-
function
|
|
3808
|
-
return wt(
|
|
3779
|
+
function vo(e) {
|
|
3780
|
+
return xt(wt(e));
|
|
3809
3781
|
}
|
|
3810
|
-
function
|
|
3811
|
-
var t,
|
|
3812
|
-
return
|
|
3782
|
+
function yo(e, n) {
|
|
3783
|
+
var t, r, o, a;
|
|
3784
|
+
return Lr(this, void 0, void 0, function() {
|
|
3813
3785
|
var l, u;
|
|
3814
|
-
return
|
|
3815
|
-
switch (
|
|
3786
|
+
return it(this, function(s) {
|
|
3787
|
+
switch (s.label) {
|
|
3816
3788
|
case 0:
|
|
3817
|
-
|
|
3789
|
+
s.trys.push([0, 5, 6, 11]), t = _r(e), s.label = 1;
|
|
3818
3790
|
case 1:
|
|
3819
3791
|
return [4, t.next()];
|
|
3820
3792
|
case 2:
|
|
3821
|
-
if (
|
|
3822
|
-
if (l =
|
|
3793
|
+
if (r = s.sent(), !!r.done) return [3, 4];
|
|
3794
|
+
if (l = r.value, n.next(l), n.closed)
|
|
3823
3795
|
return [2];
|
|
3824
|
-
|
|
3796
|
+
s.label = 3;
|
|
3825
3797
|
case 3:
|
|
3826
3798
|
return [3, 1];
|
|
3827
3799
|
case 4:
|
|
3828
3800
|
return [3, 11];
|
|
3829
3801
|
case 5:
|
|
3830
|
-
return u =
|
|
3802
|
+
return u = s.sent(), o = { error: u }, [3, 11];
|
|
3831
3803
|
case 6:
|
|
3832
|
-
return
|
|
3804
|
+
return s.trys.push([6, , 9, 10]), r && !r.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
|
|
3833
3805
|
case 7:
|
|
3834
|
-
|
|
3806
|
+
s.sent(), s.label = 8;
|
|
3835
3807
|
case 8:
|
|
3836
3808
|
return [3, 10];
|
|
3837
3809
|
case 9:
|
|
3838
|
-
if (
|
|
3810
|
+
if (o) throw o.error;
|
|
3839
3811
|
return [7];
|
|
3840
3812
|
case 10:
|
|
3841
3813
|
return [7];
|
|
@@ -3845,60 +3817,60 @@ function sr(e, n) {
|
|
|
3845
3817
|
});
|
|
3846
3818
|
});
|
|
3847
3819
|
}
|
|
3848
|
-
function
|
|
3849
|
-
|
|
3820
|
+
function Y(e, n, t, r, o) {
|
|
3821
|
+
r === void 0 && (r = 0), o === void 0 && (o = !1);
|
|
3850
3822
|
var a = n.schedule(function() {
|
|
3851
|
-
t(),
|
|
3852
|
-
},
|
|
3853
|
-
if (e.add(a), !
|
|
3823
|
+
t(), o ? e.add(this.schedule(null, r)) : this.unsubscribe();
|
|
3824
|
+
}, r);
|
|
3825
|
+
if (e.add(a), !o)
|
|
3854
3826
|
return a;
|
|
3855
3827
|
}
|
|
3856
|
-
function
|
|
3857
|
-
return n === void 0 && (n = 0),
|
|
3858
|
-
t.subscribe(
|
|
3859
|
-
return
|
|
3860
|
-
return
|
|
3828
|
+
function Vt(e, n) {
|
|
3829
|
+
return n === void 0 && (n = 0), Ae(function(t, r) {
|
|
3830
|
+
t.subscribe(pt(r, function(o) {
|
|
3831
|
+
return Y(r, e, function() {
|
|
3832
|
+
return r.next(o);
|
|
3861
3833
|
}, n);
|
|
3862
3834
|
}, function() {
|
|
3863
|
-
return
|
|
3864
|
-
return
|
|
3835
|
+
return Y(r, e, function() {
|
|
3836
|
+
return r.complete();
|
|
3865
3837
|
}, n);
|
|
3866
|
-
}, function(
|
|
3867
|
-
return
|
|
3868
|
-
return
|
|
3838
|
+
}, function(o) {
|
|
3839
|
+
return Y(r, e, function() {
|
|
3840
|
+
return r.error(o);
|
|
3869
3841
|
}, n);
|
|
3870
3842
|
}));
|
|
3871
3843
|
});
|
|
3872
3844
|
}
|
|
3873
|
-
function
|
|
3874
|
-
return n === void 0 && (n = 0),
|
|
3875
|
-
|
|
3876
|
-
return t.subscribe(
|
|
3845
|
+
function Tt(e, n) {
|
|
3846
|
+
return n === void 0 && (n = 0), Ae(function(t, r) {
|
|
3847
|
+
r.add(e.schedule(function() {
|
|
3848
|
+
return t.subscribe(r);
|
|
3877
3849
|
}, n));
|
|
3878
3850
|
});
|
|
3879
3851
|
}
|
|
3880
|
-
function
|
|
3881
|
-
return
|
|
3852
|
+
function mo(e, n) {
|
|
3853
|
+
return Pe(e).pipe(Tt(n), Vt(n));
|
|
3882
3854
|
}
|
|
3883
|
-
function
|
|
3884
|
-
return
|
|
3855
|
+
function ho(e, n) {
|
|
3856
|
+
return Pe(e).pipe(Tt(n), Vt(n));
|
|
3885
3857
|
}
|
|
3886
|
-
function
|
|
3887
|
-
return new
|
|
3888
|
-
var
|
|
3858
|
+
function bo(e, n) {
|
|
3859
|
+
return new R(function(t) {
|
|
3860
|
+
var r = 0;
|
|
3889
3861
|
return n.schedule(function() {
|
|
3890
|
-
|
|
3862
|
+
r === e.length ? t.complete() : (t.next(e[r++]), t.closed || this.schedule());
|
|
3891
3863
|
});
|
|
3892
3864
|
});
|
|
3893
3865
|
}
|
|
3894
|
-
function
|
|
3895
|
-
return new
|
|
3896
|
-
var
|
|
3897
|
-
return
|
|
3898
|
-
|
|
3899
|
-
var
|
|
3866
|
+
function go(e, n) {
|
|
3867
|
+
return new R(function(t) {
|
|
3868
|
+
var r;
|
|
3869
|
+
return Y(t, n, function() {
|
|
3870
|
+
r = e[gt](), Y(t, n, function() {
|
|
3871
|
+
var o, a, l;
|
|
3900
3872
|
try {
|
|
3901
|
-
|
|
3873
|
+
o = r.next(), a = o.value, l = o.done;
|
|
3902
3874
|
} catch (u) {
|
|
3903
3875
|
t.error(u);
|
|
3904
3876
|
return;
|
|
@@ -3906,195 +3878,195 @@ function fr(e, n) {
|
|
|
3906
3878
|
l ? t.complete() : t.next(a);
|
|
3907
3879
|
}, 0, !0);
|
|
3908
3880
|
}), function() {
|
|
3909
|
-
return I(
|
|
3881
|
+
return I(r == null ? void 0 : r.return) && r.return();
|
|
3910
3882
|
};
|
|
3911
3883
|
});
|
|
3912
3884
|
}
|
|
3913
|
-
function
|
|
3885
|
+
function Bt(e, n) {
|
|
3914
3886
|
if (!e)
|
|
3915
3887
|
throw new Error("Iterable cannot be null");
|
|
3916
|
-
return new
|
|
3917
|
-
|
|
3918
|
-
var
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3888
|
+
return new R(function(t) {
|
|
3889
|
+
Y(t, n, function() {
|
|
3890
|
+
var r = e[Symbol.asyncIterator]();
|
|
3891
|
+
Y(t, n, function() {
|
|
3892
|
+
r.next().then(function(o) {
|
|
3893
|
+
o.done ? t.complete() : t.next(o.value);
|
|
3922
3894
|
});
|
|
3923
3895
|
}, 0, !0);
|
|
3924
3896
|
});
|
|
3925
3897
|
});
|
|
3926
3898
|
}
|
|
3927
|
-
function
|
|
3928
|
-
return
|
|
3899
|
+
function So(e, n) {
|
|
3900
|
+
return Bt(wt(e), n);
|
|
3929
3901
|
}
|
|
3930
|
-
function
|
|
3902
|
+
function wo(e, n) {
|
|
3931
3903
|
if (e != null) {
|
|
3932
|
-
if (yt(e))
|
|
3933
|
-
return cr(e, n);
|
|
3934
|
-
if (ft(e))
|
|
3935
|
-
return pr(e, n);
|
|
3936
|
-
if (vt(e))
|
|
3937
|
-
return dr(e, n);
|
|
3938
3904
|
if (mt(e))
|
|
3939
|
-
return
|
|
3940
|
-
if (
|
|
3941
|
-
return
|
|
3905
|
+
return mo(e, n);
|
|
3906
|
+
if (vt(e))
|
|
3907
|
+
return bo(e, n);
|
|
3908
|
+
if (yt(e))
|
|
3909
|
+
return ho(e, n);
|
|
3910
|
+
if (ht(e))
|
|
3911
|
+
return Bt(e, n);
|
|
3912
|
+
if (St(e))
|
|
3913
|
+
return go(e, n);
|
|
3942
3914
|
if (Ct(e))
|
|
3943
|
-
return
|
|
3915
|
+
return So(e, n);
|
|
3944
3916
|
}
|
|
3945
|
-
throw
|
|
3917
|
+
throw bt(e);
|
|
3946
3918
|
}
|
|
3947
|
-
function
|
|
3948
|
-
return n ?
|
|
3919
|
+
function Co(e, n) {
|
|
3920
|
+
return n ? wo(e, n) : Pe(e);
|
|
3949
3921
|
}
|
|
3950
|
-
function
|
|
3922
|
+
function xo() {
|
|
3951
3923
|
for (var e = [], n = 0; n < arguments.length; n++)
|
|
3952
3924
|
e[n] = arguments[n];
|
|
3953
|
-
var t =
|
|
3954
|
-
return
|
|
3925
|
+
var t = lo(e);
|
|
3926
|
+
return Co(e, t);
|
|
3955
3927
|
}
|
|
3956
|
-
function
|
|
3957
|
-
return n === void 0 && (n =
|
|
3958
|
-
var
|
|
3959
|
-
if (
|
|
3960
|
-
|
|
3928
|
+
function Vo(e, n) {
|
|
3929
|
+
return n === void 0 && (n = oo), Ae(function(t, r) {
|
|
3930
|
+
var o = null, a = null, l = null, u = function() {
|
|
3931
|
+
if (o) {
|
|
3932
|
+
o.unsubscribe(), o = null;
|
|
3961
3933
|
var i = a;
|
|
3962
|
-
a = null,
|
|
3934
|
+
a = null, r.next(i);
|
|
3963
3935
|
}
|
|
3964
3936
|
};
|
|
3965
|
-
function
|
|
3937
|
+
function s() {
|
|
3966
3938
|
var i = l + e, d = n.now();
|
|
3967
3939
|
if (d < i) {
|
|
3968
|
-
|
|
3940
|
+
o = this.schedule(void 0, i - d), r.add(o);
|
|
3969
3941
|
return;
|
|
3970
3942
|
}
|
|
3971
3943
|
u();
|
|
3972
3944
|
}
|
|
3973
|
-
t.subscribe(
|
|
3974
|
-
a = i, l = n.now(),
|
|
3945
|
+
t.subscribe(pt(r, function(i) {
|
|
3946
|
+
a = i, l = n.now(), o || (o = n.schedule(s, e), r.add(o));
|
|
3975
3947
|
}, function() {
|
|
3976
|
-
u(),
|
|
3948
|
+
u(), r.complete();
|
|
3977
3949
|
}, void 0, function() {
|
|
3978
|
-
a =
|
|
3950
|
+
a = o = null;
|
|
3979
3951
|
}));
|
|
3980
3952
|
});
|
|
3981
3953
|
}
|
|
3982
|
-
const
|
|
3954
|
+
const ye = /* @__PURE__ */ W({
|
|
3983
3955
|
name: "FPropertyEditor",
|
|
3984
|
-
props:
|
|
3956
|
+
props: ze,
|
|
3985
3957
|
emits: ["propertyEditorValueChanged"],
|
|
3986
3958
|
setup(e, n) {
|
|
3987
|
-
const t = y(
|
|
3959
|
+
const t = y(In), r = y(""), o = y("const"), a = y([]), l = y(!1);
|
|
3988
3960
|
let u;
|
|
3989
|
-
const
|
|
3961
|
+
const s = y(""), i = y(""), d = y([]);
|
|
3990
3962
|
let c;
|
|
3991
|
-
const f = y([]),
|
|
3963
|
+
const f = y([]), p = y("是");
|
|
3992
3964
|
y("");
|
|
3993
|
-
const v = y(!1),
|
|
3994
|
-
numberConstValue:
|
|
3995
|
-
bindVariableValue:
|
|
3996
|
-
dataStatesBindValue:
|
|
3997
|
-
dataStatesValueArray:
|
|
3998
|
-
constEnumBindValue:
|
|
3999
|
-
setValue:
|
|
4000
|
-
} =
|
|
4001
|
-
updateData:
|
|
4002
|
-
changeState:
|
|
4003
|
-
prefix:
|
|
4004
|
-
propertyEditorValueChange:
|
|
4005
|
-
} =
|
|
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,
|
|
3976
|
+
propertyEditorValueChange: _
|
|
3977
|
+
} = $r(n, t, g, a, P, f, c, p, T, r, b, o);
|
|
4006
3978
|
function K() {
|
|
4007
|
-
|
|
3979
|
+
S.value = On.value.filter((h) => t.value.editorOptions.types.includes(h.id));
|
|
4008
3980
|
}
|
|
4009
3981
|
function M() {
|
|
4010
|
-
|
|
3982
|
+
o.value = B(S.value.find((h) => h.id === t.value.propertyValue.type));
|
|
4011
3983
|
}
|
|
4012
3984
|
function D() {
|
|
4013
|
-
M(),
|
|
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();
|
|
4014
3986
|
}
|
|
4015
|
-
function
|
|
4016
|
-
|
|
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();
|
|
4017
3989
|
}
|
|
4018
|
-
function
|
|
4019
|
-
|
|
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();
|
|
4020
3992
|
}
|
|
4021
|
-
function
|
|
4022
|
-
|
|
3993
|
+
function Ft(h) {
|
|
3994
|
+
P.value.constValue.value = h, A();
|
|
4023
3995
|
}
|
|
4024
|
-
function
|
|
4025
|
-
|
|
3996
|
+
function Mt(h) {
|
|
3997
|
+
P.value.constValue.value = h, A();
|
|
4026
3998
|
}
|
|
4027
|
-
function
|
|
4028
|
-
const
|
|
4029
|
-
u = `${
|
|
4030
|
-
}
|
|
4031
|
-
function Pt() {
|
|
4032
|
-
Et(), r.value.id === "variable" && (E.value = t.value.propertyValue.value.path), Ae(), i.value !== t.value.propertyValue.value.path && P();
|
|
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();
|
|
4033
4002
|
}
|
|
4034
4003
|
function Et() {
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4004
|
+
At(), o.value.id === "variable" && (k.value = t.value.propertyValue.value.path), Ne(), i.value !== t.value.propertyValue.value.path && A();
|
|
4005
|
+
}
|
|
4006
|
+
function At() {
|
|
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);
|
|
4040
4012
|
}
|
|
4041
|
-
function
|
|
4042
|
-
var
|
|
4043
|
-
|
|
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));
|
|
4044
4016
|
}
|
|
4045
|
-
function
|
|
4046
|
-
!
|
|
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());
|
|
4047
4019
|
}
|
|
4048
|
-
function
|
|
4049
|
-
t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "",
|
|
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();
|
|
4050
4022
|
}
|
|
4051
|
-
function
|
|
4052
|
-
d.value =
|
|
4023
|
+
function Ne() {
|
|
4024
|
+
d.value = B(t.value.editorOptions.variables);
|
|
4053
4025
|
}
|
|
4054
|
-
const It = (
|
|
4055
|
-
const
|
|
4026
|
+
const It = (h) => {
|
|
4027
|
+
const j = t.value.editorOptions.getVariables, U = {
|
|
4056
4028
|
showDialog: !0
|
|
4057
4029
|
};
|
|
4058
|
-
return
|
|
4030
|
+
return j && (d.value = j(), h && (h.data = d)), xo(U);
|
|
4059
4031
|
};
|
|
4060
|
-
function
|
|
4061
|
-
const
|
|
4062
|
-
id:
|
|
4063
|
-
name:
|
|
4064
|
-
exist:
|
|
4032
|
+
function jt(h) {
|
|
4033
|
+
const j = {
|
|
4034
|
+
id: h[0].id,
|
|
4035
|
+
name: h[0].exist,
|
|
4036
|
+
exist: h[0].name
|
|
4065
4037
|
};
|
|
4066
|
-
|
|
4038
|
+
P.value.stateMachineValue.value = B(j), p.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", c = B(j.id), A();
|
|
4067
4039
|
}
|
|
4068
4040
|
function Dt() {
|
|
4069
|
-
f.value =
|
|
4041
|
+
f.value = B(t.value.editorOptions.stateMachine), p.value = P.value.stateMachineValue.value.exist === "是" ? "是" : "否";
|
|
4070
4042
|
}
|
|
4071
|
-
const
|
|
4072
|
-
function
|
|
4073
|
-
|
|
4074
|
-
|
|
4043
|
+
const Oe = new ft();
|
|
4044
|
+
function $t() {
|
|
4045
|
+
Oe.pipe(Vo(700)).subscribe((h) => {
|
|
4046
|
+
P.value.customValue.value = h, A();
|
|
4075
4047
|
});
|
|
4076
4048
|
}
|
|
4077
|
-
function Lt(
|
|
4078
|
-
|
|
4049
|
+
function Lt(h) {
|
|
4050
|
+
Oe.next(h);
|
|
4079
4051
|
}
|
|
4080
|
-
function
|
|
4052
|
+
function Ut() {
|
|
4081
4053
|
}
|
|
4082
|
-
function
|
|
4083
|
-
t.value.propertyValue.value =
|
|
4084
|
-
const
|
|
4085
|
-
|
|
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();
|
|
4086
4058
|
}
|
|
4087
4059
|
function Rt() {
|
|
4088
|
-
return
|
|
4060
|
+
return w("div", {
|
|
4089
4061
|
class: "f-page-single-property-editor-component-right-variable"
|
|
4090
|
-
}, [
|
|
4062
|
+
}, [w(G, {
|
|
4091
4063
|
class: [{
|
|
4092
4064
|
"form-control-select-show": l.value
|
|
4093
4065
|
}, {
|
|
4094
4066
|
"form-control-select-hide": !l.value
|
|
4095
4067
|
}],
|
|
4096
|
-
modelValue:
|
|
4097
|
-
"onUpdate:modelValue": (
|
|
4068
|
+
modelValue: k.value,
|
|
4069
|
+
"onUpdate:modelValue": (h) => k.value = h,
|
|
4098
4070
|
placeholder: "",
|
|
4099
4071
|
viewType: "text",
|
|
4100
4072
|
enableClear: !0,
|
|
@@ -4102,57 +4074,57 @@ const fe = /* @__PURE__ */ q({
|
|
|
4102
4074
|
textField: "fullPath",
|
|
4103
4075
|
data: d.value,
|
|
4104
4076
|
beforeShow: It,
|
|
4105
|
-
readonly:
|
|
4077
|
+
readonly: b.value,
|
|
4106
4078
|
editable: !1,
|
|
4107
|
-
onValueChange: (
|
|
4108
|
-
onClear:
|
|
4109
|
-
}, null), l.value ?
|
|
4079
|
+
onValueChange: (h) => Nt(h),
|
|
4080
|
+
onClear: Ot
|
|
4081
|
+
}, null), l.value ? w("div", {
|
|
4110
4082
|
class: "f-page-single-property-editor-component-variable-button"
|
|
4111
|
-
}, [
|
|
4083
|
+
}, [w("button", {
|
|
4112
4084
|
title: "variable-button",
|
|
4113
4085
|
class: "f-variable-button",
|
|
4114
|
-
onClick:
|
|
4115
|
-
}, [
|
|
4086
|
+
onClick: kt
|
|
4087
|
+
}, [w("span", {
|
|
4116
4088
|
class: "f-icon f-icon-add",
|
|
4117
4089
|
style: "margin:unset;"
|
|
4118
4090
|
}, null)])]) : ""]);
|
|
4119
4091
|
}
|
|
4120
|
-
function
|
|
4121
|
-
return
|
|
4092
|
+
function Gt() {
|
|
4093
|
+
return w("div", {
|
|
4122
4094
|
class: "f-page-single-property-editor-component-right-customize"
|
|
4123
|
-
}, [
|
|
4095
|
+
}, [me(w("input", {
|
|
4124
4096
|
class: "form-control",
|
|
4125
4097
|
placeholder: "输入自定义内容",
|
|
4126
|
-
"onUpdate:modelValue": (
|
|
4127
|
-
onChange: (
|
|
4128
|
-
disabled:
|
|
4129
|
-
}, null), [[
|
|
4098
|
+
"onUpdate:modelValue": (h) => P.value.customValue.value = h,
|
|
4099
|
+
onChange: (h) => Lt(h.target.value),
|
|
4100
|
+
disabled: b.value
|
|
4101
|
+
}, null), [[De, P.value.customValue.value]])]);
|
|
4130
4102
|
}
|
|
4131
4103
|
function Ht() {
|
|
4132
|
-
return
|
|
4104
|
+
return w("div", {
|
|
4133
4105
|
class: "f-page-single-property-editor-component-right-expression"
|
|
4134
|
-
}, [
|
|
4106
|
+
}, [w(ee, {
|
|
4135
4107
|
editable: !1,
|
|
4136
4108
|
enableClear: !1,
|
|
4137
|
-
readonly:
|
|
4138
|
-
groupText:
|
|
4139
|
-
modelValue:
|
|
4140
|
-
"onUpdate:modelValue": (
|
|
4141
|
-
onClickHandle:
|
|
4109
|
+
readonly: b.value,
|
|
4110
|
+
groupText: m.value,
|
|
4111
|
+
modelValue: r.value,
|
|
4112
|
+
"onUpdate:modelValue": (h) => r.value = h,
|
|
4113
|
+
onClickHandle: Ut
|
|
4142
4114
|
}, null)]);
|
|
4143
4115
|
}
|
|
4144
|
-
function
|
|
4145
|
-
return
|
|
4116
|
+
function qt() {
|
|
4117
|
+
return w("div", {
|
|
4146
4118
|
class: "f-page-single-property-editor-component-right-stateMachine"
|
|
4147
|
-
}, [
|
|
4119
|
+
}, [w("div", {
|
|
4148
4120
|
class: "f-stateMachine-exist",
|
|
4149
|
-
onClick:
|
|
4150
|
-
}, [
|
|
4121
|
+
onClick: N
|
|
4122
|
+
}, [p.value]), w("div", {
|
|
4151
4123
|
class: "f-stateMachine-combo",
|
|
4152
4124
|
style: "border:unset"
|
|
4153
|
-
}, [
|
|
4125
|
+
}, [w(G, {
|
|
4154
4126
|
modelValue: c,
|
|
4155
|
-
"onUpdate:modelValue": (
|
|
4127
|
+
"onUpdate:modelValue": (h) => c = h,
|
|
4156
4128
|
placeholder: "",
|
|
4157
4129
|
viewType: "text",
|
|
4158
4130
|
enableClear: !1,
|
|
@@ -4160,18 +4132,18 @@ const fe = /* @__PURE__ */ q({
|
|
|
4160
4132
|
textField: "name",
|
|
4161
4133
|
data: f.value,
|
|
4162
4134
|
editable: !1,
|
|
4163
|
-
readonly:
|
|
4164
|
-
onChange: (
|
|
4165
|
-
|
|
4135
|
+
readonly: b.value,
|
|
4136
|
+
onChange: (h) => {
|
|
4137
|
+
jt(h);
|
|
4166
4138
|
}
|
|
4167
4139
|
}, null)])]);
|
|
4168
4140
|
}
|
|
4169
|
-
function
|
|
4170
|
-
return
|
|
4141
|
+
function Wt() {
|
|
4142
|
+
return w("div", {
|
|
4171
4143
|
class: "f-page-single-property-editor-component-right-dataStates"
|
|
4172
|
-
}, [
|
|
4173
|
-
modelValue:
|
|
4174
|
-
"onUpdate:modelValue": (
|
|
4144
|
+
}, [w(G, {
|
|
4145
|
+
modelValue: C.value,
|
|
4146
|
+
"onUpdate:modelValue": (h) => C.value = h,
|
|
4175
4147
|
placeholder: "",
|
|
4176
4148
|
viewType: "text",
|
|
4177
4149
|
enableClear: !1,
|
|
@@ -4180,27 +4152,27 @@ const fe = /* @__PURE__ */ q({
|
|
|
4180
4152
|
valueField: "valueField",
|
|
4181
4153
|
textField: "textField",
|
|
4182
4154
|
titleField: "titleField",
|
|
4183
|
-
data:
|
|
4155
|
+
data: T.value,
|
|
4184
4156
|
editable: !1,
|
|
4185
|
-
readonly:
|
|
4186
|
-
onChange: (
|
|
4157
|
+
readonly: b.value,
|
|
4158
|
+
onChange: (h) => _t(h)
|
|
4187
4159
|
}, null)]);
|
|
4188
4160
|
}
|
|
4189
4161
|
function zt() {
|
|
4190
|
-
return
|
|
4162
|
+
return me(w("input", {
|
|
4191
4163
|
class: "form-control",
|
|
4192
|
-
"onUpdate:modelValue": (
|
|
4193
|
-
onChange: (
|
|
4194
|
-
|
|
4164
|
+
"onUpdate:modelValue": (h) => P.value.constValue.value = h,
|
|
4165
|
+
onChange: (h) => {
|
|
4166
|
+
Mt(h);
|
|
4195
4167
|
},
|
|
4196
|
-
disabled:
|
|
4168
|
+
disabled: b.value,
|
|
4197
4169
|
placeholder: "输入自定义内容"
|
|
4198
|
-
}, null), [[
|
|
4170
|
+
}, null), [[De, P.value.constValue.value]]);
|
|
4199
4171
|
}
|
|
4200
|
-
function
|
|
4201
|
-
return
|
|
4202
|
-
modelValue:
|
|
4203
|
-
"onUpdate:modelValue": (
|
|
4172
|
+
function Yt() {
|
|
4173
|
+
return w(G, {
|
|
4174
|
+
modelValue: g.value,
|
|
4175
|
+
"onUpdate:modelValue": (h) => g.value = h,
|
|
4204
4176
|
placeholder: "",
|
|
4205
4177
|
viewType: "text",
|
|
4206
4178
|
enableClear: !1,
|
|
@@ -4208,62 +4180,62 @@ const fe = /* @__PURE__ */ q({
|
|
|
4208
4180
|
textField: "value",
|
|
4209
4181
|
data: a.value,
|
|
4210
4182
|
editable: !1,
|
|
4211
|
-
readonly:
|
|
4212
|
-
onValueChange: (
|
|
4183
|
+
readonly: b.value,
|
|
4184
|
+
onValueChange: (h) => pe(h)
|
|
4213
4185
|
}, null);
|
|
4214
4186
|
}
|
|
4215
|
-
function
|
|
4216
|
-
return
|
|
4187
|
+
function Zt() {
|
|
4188
|
+
return w(te, {
|
|
4217
4189
|
canNull: !0,
|
|
4218
|
-
readonly:
|
|
4219
|
-
modelValue:
|
|
4220
|
-
"onUpdate:modelValue": (
|
|
4221
|
-
onValueChange: (
|
|
4222
|
-
|
|
4190
|
+
readonly: b.value,
|
|
4191
|
+
modelValue: E.value,
|
|
4192
|
+
"onUpdate:modelValue": (h) => E.value = h,
|
|
4193
|
+
onValueChange: (h) => {
|
|
4194
|
+
Ft(h);
|
|
4223
4195
|
},
|
|
4224
4196
|
class: "f-page-single-property-editor-component-const-number"
|
|
4225
4197
|
}, null);
|
|
4226
4198
|
}
|
|
4227
|
-
function
|
|
4228
|
-
return
|
|
4199
|
+
function Jt() {
|
|
4200
|
+
return w("div", {
|
|
4229
4201
|
class: "f-page-single-property-editor-component-left-controller"
|
|
4230
|
-
}, [
|
|
4231
|
-
modelValue:
|
|
4232
|
-
"onUpdate:modelValue": (
|
|
4202
|
+
}, [w(G, {
|
|
4203
|
+
modelValue: o.value.id,
|
|
4204
|
+
"onUpdate:modelValue": (h) => o.value.id = h,
|
|
4233
4205
|
placeholder: "",
|
|
4234
4206
|
enableClear: !1,
|
|
4235
4207
|
valueField: "id",
|
|
4236
4208
|
textField: "label",
|
|
4237
|
-
data:
|
|
4209
|
+
data: S.value,
|
|
4238
4210
|
editable: !1,
|
|
4239
|
-
readonly:
|
|
4240
|
-
onChange: (
|
|
4211
|
+
readonly: b.value,
|
|
4212
|
+
onChange: (h) => re(h)
|
|
4241
4213
|
}, null)]);
|
|
4242
4214
|
}
|
|
4243
|
-
function
|
|
4244
|
-
return
|
|
4215
|
+
function Qt() {
|
|
4216
|
+
return w("div", {
|
|
4245
4217
|
class: "f-page-single-property-editor-component-right-controller"
|
|
4246
|
-
}, [
|
|
4218
|
+
}, [o.value.id === "const" ? w("div", {
|
|
4247
4219
|
class: "f-page-single-property-editor-component-right-const"
|
|
4248
|
-
}, [t.value.propertyType === "string" ? zt() : "", t.value.propertyType === "enum" ?
|
|
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() : ""]);
|
|
4249
4221
|
}
|
|
4250
|
-
return
|
|
4251
|
-
K(), D(),
|
|
4252
|
-
}), () =>
|
|
4222
|
+
return H(() => {
|
|
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", {
|
|
4253
4225
|
class: "f-page-single-property-editor-component clearfix"
|
|
4254
|
-
}, [
|
|
4226
|
+
}, [Jt(), Qt()])]);
|
|
4255
4227
|
}
|
|
4256
|
-
}),
|
|
4228
|
+
}), Io = {
|
|
4257
4229
|
install(e) {
|
|
4258
|
-
e.component(
|
|
4230
|
+
e.component(ye.name, ye);
|
|
4259
4231
|
},
|
|
4260
|
-
register(e, n, t,
|
|
4261
|
-
e["property-editor"] =
|
|
4232
|
+
register(e, n, t, r) {
|
|
4233
|
+
e["property-editor"] = ye, n["property-editor"] = Nn;
|
|
4262
4234
|
}
|
|
4263
4235
|
};
|
|
4264
4236
|
export {
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4237
|
+
Io as default,
|
|
4238
|
+
ye as propertyEditor,
|
|
4239
|
+
ze as propertyEditorProps,
|
|
4240
|
+
Nn as propsResolver
|
|
4269
4241
|
};
|