@farris/ui-vue 1.2.9 → 1.3.0
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 +63 -63
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +402 -323
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +98 -96
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +66 -66
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +118 -118
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +539 -460
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +135 -135
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1007 -312
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +97 -97
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +778 -700
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +472 -329
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2231 -1055
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +79 -79
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6408 -5034
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4762 -3511
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3442 -2742
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +14 -13
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2597 -1141
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +114 -71
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +171 -171
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +65 -65
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3075 -2586
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5272 -8511
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1726 -1822
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +126 -126
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +620 -540
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +88 -88
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +71 -71
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3582 -2356
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +10752 -8972
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5601 -5329
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +535 -452
- package/components/nav/index.umd.cjs +2 -2
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +556 -477
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +504 -425
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1833 -1054
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +100 -100
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +899 -870
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +576 -487
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +73 -73
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +1916 -1220
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.esm.js +783 -886
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +3632 -2556
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +72 -72
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +484 -405
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +152 -152
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +73 -73
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1081 -1043
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +753 -738
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4418 -4177
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +119 -119
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +92 -91
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +59 -59
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +103 -103
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +85 -85
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +457 -378
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +1696 -1617
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +53 -53
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +268 -268
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +420 -341
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1062 -981
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +381 -379
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5252 -9560
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +3920 -2692
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +373 -367
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +92 -92
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +597 -417
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +251 -251
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +17125 -16176
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +0 -3
- package/types/combo-list/src/components/list-container.props.d.ts +0 -4
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +1 -1
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/types.d.ts +1 -1
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/types.d.ts +9 -0
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var $ = (e, n, t) =>
|
|
4
|
-
import { ref as
|
|
5
|
-
import { cloneDeep as B } from "lodash-es";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import { useNumber as
|
|
13
|
-
const
|
|
1
|
+
var on = Object.defineProperty;
|
|
2
|
+
var rn = (e, n, t) => n in e ? on(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
+
var $ = (e, n, t) => rn(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { ref as v, defineComponent as G, computed as w, watch as O, createVNode as g, Teleport as an, createApp as ln, onUnmounted as un, inject as z, nextTick as le, onMounted as q, mergeProps as sn, reactive as cn, withDirectives as he, resolveDirective as dn, Fragment as be, vModelText as Le } from "vue";
|
|
5
|
+
import { isPlainObject as $e, cloneDeep as B } from "lodash-es";
|
|
6
|
+
import pn from "../list-view/index.esm.js";
|
|
7
|
+
import fn from "../button-edit/index.esm.js";
|
|
8
|
+
import { resolveAppearance as yn, getSchemaByType as De } from "../dynamic-resolver/index.esm.js";
|
|
9
|
+
import { useDesignerComponent as We } from "../designer-canvas/index.esm.js";
|
|
10
|
+
import { useResponseLayoutEditorSetting as vn } from "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
|
|
11
|
+
import D from "bignumber.js";
|
|
12
|
+
import { useNumber as mn, useFormat as hn, useSpinner as bn, useTextBox as gn } from "../number-spinner/index.esm.js";
|
|
13
|
+
const ze = {}, Ye = {};
|
|
14
14
|
function we(e) {
|
|
15
|
-
const { properties: n, title: t, ignore:
|
|
16
|
-
return (!
|
|
15
|
+
const { properties: n, title: t, ignore: o } = e, r = o && Array.isArray(o), a = Object.keys(n).reduce((l, u) => ((!r || !o.find((s) => s == u)) && (l[u] = n[u].type === "object" && n[u].properties ? we(n[u]) : B(n[u].default)), l), {});
|
|
16
|
+
return (!r || !o.find((l) => l == "id")) && (a.id = `${t}-${Date.now()}`), a;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
21
|
-
let
|
|
22
|
-
const a =
|
|
23
|
-
return
|
|
18
|
+
function ge(e, n = {}, t) {
|
|
19
|
+
const o = ze[e];
|
|
20
|
+
if (o) {
|
|
21
|
+
let r = we(o);
|
|
22
|
+
const a = Ye[e];
|
|
23
|
+
return r = a ? a({ getSchemaByType: ge }, r, n, t) : r, r;
|
|
24
24
|
}
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Cn(e, n) {
|
|
28
28
|
const t = we(n);
|
|
29
|
-
return Object.keys(e).reduce((
|
|
29
|
+
return Object.keys(e).reduce((o, r) => (o[r] && $e(o[r]) && $e(e[r]) ? Object.assign(o[r], e[r]) : o[r] = e[r], o), t), t;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return Object.keys(e).filter((
|
|
33
|
-
if (n.has(
|
|
34
|
-
const a = n.get(
|
|
31
|
+
function Sn(e, n) {
|
|
32
|
+
return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
|
|
33
|
+
if (n.has(r)) {
|
|
34
|
+
const a = n.get(r);
|
|
35
35
|
if (typeof a == "string")
|
|
36
|
-
|
|
36
|
+
o[a] = e[r];
|
|
37
37
|
else {
|
|
38
|
-
const l = a(
|
|
39
|
-
Object.assign(
|
|
38
|
+
const l = a(r, e[r], e);
|
|
39
|
+
Object.assign(o, l);
|
|
40
40
|
}
|
|
41
41
|
} else
|
|
42
|
-
r
|
|
43
|
-
return
|
|
42
|
+
o[r] = e[r];
|
|
43
|
+
return o;
|
|
44
44
|
}, {});
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const
|
|
48
|
-
return
|
|
46
|
+
function wn(e, n, t = /* @__PURE__ */ new Map()) {
|
|
47
|
+
const o = Cn(e, n);
|
|
48
|
+
return Sn(o, t);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function xn(e = {}) {
|
|
51
51
|
function n(i, d, c, f) {
|
|
52
52
|
if (typeof c == "number")
|
|
53
53
|
return f[i].length === c;
|
|
54
54
|
if (typeof c == "object") {
|
|
55
|
-
const p = Object.keys(c)[0],
|
|
55
|
+
const p = Object.keys(c)[0], y = c[p];
|
|
56
56
|
if (p === "not")
|
|
57
|
-
return Number(f[i].length) !== Number(
|
|
57
|
+
return Number(f[i].length) !== Number(y);
|
|
58
58
|
if (p === "moreThan")
|
|
59
|
-
return Number(f[i].length) >= Number(
|
|
59
|
+
return Number(f[i].length) >= Number(y);
|
|
60
60
|
if (p === "lessThan")
|
|
61
|
-
return Number(f[i].length) <= Number(
|
|
61
|
+
return Number(f[i].length) <= Number(y);
|
|
62
62
|
}
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
function t(i, d, c, f) {
|
|
66
66
|
return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(c);
|
|
67
67
|
}
|
|
68
|
-
const
|
|
68
|
+
const o = /* @__PURE__ */ new Map([
|
|
69
69
|
["length", n],
|
|
70
70
|
["getProperty", t]
|
|
71
71
|
]);
|
|
72
|
-
Object.keys(e).reduce((i, d) => (i.set(d, e[d]), i),
|
|
73
|
-
function
|
|
72
|
+
Object.keys(e).reduce((i, d) => (i.set(d, e[d]), i), o);
|
|
73
|
+
function r(i, d) {
|
|
74
74
|
const c = i;
|
|
75
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) => {
|
|
76
76
|
if (f === "length")
|
|
77
77
|
return { target: c, operator: "length", param: null, value: d[f] };
|
|
78
|
-
const p = f,
|
|
79
|
-
return { target: c, operator: "getProperty", param: p, value:
|
|
78
|
+
const p = f, y = d[f];
|
|
79
|
+
return { target: c, operator: "getProperty", param: p, value: y };
|
|
80
80
|
}) : [];
|
|
81
81
|
}
|
|
82
82
|
function a(i) {
|
|
83
83
|
return Object.keys(i).reduce((c, f) => {
|
|
84
|
-
const p =
|
|
84
|
+
const p = r(f, i[f]);
|
|
85
85
|
return c.push(...p), c;
|
|
86
86
|
}, []);
|
|
87
87
|
}
|
|
88
88
|
function l(i, d) {
|
|
89
|
-
if (
|
|
90
|
-
const c =
|
|
89
|
+
if (o.has(i.operator)) {
|
|
90
|
+
const c = o.get(i.operator);
|
|
91
91
|
return c && c(i.target, i.param, i.value, d) || !1;
|
|
92
92
|
}
|
|
93
93
|
return !1;
|
|
94
94
|
}
|
|
95
95
|
function u(i, d) {
|
|
96
|
-
return a(i).reduce((p,
|
|
96
|
+
return a(i).reduce((p, y) => p && l(y, d), !0);
|
|
97
97
|
}
|
|
98
98
|
function s(i, d) {
|
|
99
|
-
const c = Object.keys(i), f = c.includes("allOf"), p = c.includes("anyOf"),
|
|
99
|
+
const c = Object.keys(i), f = c.includes("allOf"), p = c.includes("anyOf"), y = f || p, S = (y ? i[y ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((M) => u(M, d));
|
|
100
100
|
return f ? !S.includes(!1) : S.includes(!0);
|
|
101
101
|
}
|
|
102
102
|
return { parseValueSchema: s };
|
|
@@ -138,25 +138,26 @@ const V = {
|
|
|
138
138
|
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
139
139
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
140
140
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
141
|
-
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
141
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
142
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
143
|
+
}, Vn = {}, Bn = {};
|
|
144
|
+
xn();
|
|
145
|
+
function ne(e, n, t = /* @__PURE__ */ new Map(), o = (l, u, s) => u, r = {}, a = (l) => l) {
|
|
146
|
+
return ze[n.title] = n, Ye[n.title] = o, Vn[n.title] = r, Bn[n.title] = a, (l = {}) => {
|
|
147
|
+
const u = wn(l, n, t), s = Object.keys(e).reduce((i, d) => (i[d] = e[d].default, i), {});
|
|
147
148
|
return Object.assign(s, u);
|
|
148
149
|
};
|
|
149
150
|
}
|
|
150
|
-
function
|
|
151
|
+
function pe(e, n) {
|
|
151
152
|
return { customClass: n.class, customStyle: n.style };
|
|
152
153
|
}
|
|
153
|
-
const
|
|
154
|
-
["appearance",
|
|
154
|
+
const Tn = /* @__PURE__ */ new Map([
|
|
155
|
+
["appearance", pe]
|
|
155
156
|
]);
|
|
156
|
-
function
|
|
157
|
+
function Fn(e, n, t) {
|
|
157
158
|
return n;
|
|
158
159
|
}
|
|
159
|
-
const
|
|
160
|
+
const kn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-design.gitee.io/property-editor.schema.json", Mn = "property-editor", An = "A Farris Component", Pn = "object", In = {
|
|
160
161
|
id: {
|
|
161
162
|
description: "The unique identifier for property-editor",
|
|
162
163
|
type: "string"
|
|
@@ -218,18 +219,18 @@ const Sn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-
|
|
|
218
219
|
type: "boolean",
|
|
219
220
|
default: !0
|
|
220
221
|
}
|
|
221
|
-
},
|
|
222
|
+
}, On = [
|
|
222
223
|
"id",
|
|
223
224
|
"type"
|
|
224
|
-
],
|
|
225
|
-
$schema:
|
|
226
|
-
$id:
|
|
227
|
-
title:
|
|
228
|
-
description:
|
|
229
|
-
type:
|
|
230
|
-
properties:
|
|
231
|
-
required:
|
|
232
|
-
},
|
|
225
|
+
], Nn = {
|
|
226
|
+
$schema: kn,
|
|
227
|
+
$id: En,
|
|
228
|
+
title: Mn,
|
|
229
|
+
description: An,
|
|
230
|
+
type: Pn,
|
|
231
|
+
properties: In,
|
|
232
|
+
required: On
|
|
233
|
+
}, jn = "property-editor", Ln = "A Farris Component", $n = "object", Dn = {
|
|
233
234
|
basic: {
|
|
234
235
|
description: "Basic Infomation",
|
|
235
236
|
title: "基本信息",
|
|
@@ -251,12 +252,12 @@ const Sn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-
|
|
|
251
252
|
}
|
|
252
253
|
}
|
|
253
254
|
}
|
|
254
|
-
},
|
|
255
|
-
title:
|
|
256
|
-
description:
|
|
257
|
-
type:
|
|
258
|
-
categories:
|
|
259
|
-
},
|
|
255
|
+
}, Rn = {
|
|
256
|
+
title: jn,
|
|
257
|
+
description: Ln,
|
|
258
|
+
type: $n,
|
|
259
|
+
categories: Dn
|
|
260
|
+
}, Ze = {}, Un = ne(Ze, Nn, Tn, Fn, Rn), P = v({
|
|
260
261
|
/** 常量值 */
|
|
261
262
|
constValue: {
|
|
262
263
|
/** 值类型:常量(const), 变量(variable), 状态机(state), 自定义(custom) */
|
|
@@ -294,7 +295,7 @@ const Sn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-
|
|
|
294
295
|
type: "dataStates",
|
|
295
296
|
value: ""
|
|
296
297
|
}
|
|
297
|
-
}),
|
|
298
|
+
}), _n = v([
|
|
298
299
|
{
|
|
299
300
|
id: "const",
|
|
300
301
|
label: "常量"
|
|
@@ -319,7 +320,7 @@ const Sn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-
|
|
|
319
320
|
id: "dataStates",
|
|
320
321
|
label: "数据状态"
|
|
321
322
|
}
|
|
322
|
-
]),
|
|
323
|
+
]), Gn = {
|
|
323
324
|
controlName: "userName",
|
|
324
325
|
propertyName: "readonly",
|
|
325
326
|
propertyType: "enum",
|
|
@@ -444,9 +445,9 @@ const Sn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-
|
|
|
444
445
|
},
|
|
445
446
|
/** 状态机是否有前缀viewModel.stateMachine && */
|
|
446
447
|
hasPrefix: 2
|
|
447
|
-
},
|
|
448
|
-
["appearance",
|
|
449
|
-
]),
|
|
448
|
+
}, qn = /* @__PURE__ */ new Map([
|
|
449
|
+
["appearance", pe]
|
|
450
|
+
]), Hn = "https://json-schema.org/draft/2020-12/schema", Wn = "https://farris-design.gitee.io/combo-list.schema.json", zn = "combo-list", Yn = "A Farris Input Component", Zn = "object", Jn = {
|
|
450
451
|
id: {
|
|
451
452
|
description: "The unique identifier for a combo list",
|
|
452
453
|
type: "string"
|
|
@@ -562,27 +563,27 @@ const Sn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-
|
|
|
562
563
|
type: "sting",
|
|
563
564
|
default: ""
|
|
564
565
|
}
|
|
565
|
-
},
|
|
566
|
+
}, Xn = [
|
|
566
567
|
"id",
|
|
567
568
|
"type"
|
|
568
|
-
],
|
|
569
|
+
], Qn = [
|
|
569
570
|
"id",
|
|
570
571
|
"appearance",
|
|
571
572
|
"binding"
|
|
572
|
-
],
|
|
573
|
-
$schema:
|
|
574
|
-
$id:
|
|
575
|
-
title:
|
|
576
|
-
description:
|
|
577
|
-
type:
|
|
578
|
-
properties:
|
|
579
|
-
required:
|
|
580
|
-
ignore:
|
|
573
|
+
], Kn = {
|
|
574
|
+
$schema: Hn,
|
|
575
|
+
$id: Wn,
|
|
576
|
+
title: zn,
|
|
577
|
+
description: Yn,
|
|
578
|
+
type: Zn,
|
|
579
|
+
properties: Jn,
|
|
580
|
+
required: Xn,
|
|
581
|
+
ignore: Qn
|
|
581
582
|
};
|
|
582
|
-
function
|
|
583
|
+
function eo(e, n, t) {
|
|
583
584
|
return n;
|
|
584
585
|
}
|
|
585
|
-
const
|
|
586
|
+
const xe = {
|
|
586
587
|
/**
|
|
587
588
|
* 组件标识
|
|
588
589
|
*/
|
|
@@ -748,7 +749,7 @@ const Ce = {
|
|
|
748
749
|
},
|
|
749
750
|
// 搜索启用高亮
|
|
750
751
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
751
|
-
},
|
|
752
|
+
}, Je = ne(xe, Kn, qn, eo), to = {
|
|
752
753
|
dataSource: { type: Array, default: [] },
|
|
753
754
|
enableSearch: { type: Boolean, default: !1 },
|
|
754
755
|
idField: { type: String, default: "id" },
|
|
@@ -768,15 +769,13 @@ const Ce = {
|
|
|
768
769
|
default: !1
|
|
769
770
|
},
|
|
770
771
|
// 搜索启用高亮
|
|
771
|
-
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
772
|
-
|
|
773
|
-
showCheckbox: { type: Boolean, default: !1 }
|
|
774
|
-
}, Yn = /* @__PURE__ */ W({
|
|
772
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
773
|
+
}, no = /* @__PURE__ */ G({
|
|
775
774
|
name: "FComboListContainer",
|
|
776
|
-
props:
|
|
775
|
+
props: to,
|
|
777
776
|
emits: ["selectionChange"],
|
|
778
777
|
setup(e, n) {
|
|
779
|
-
const t =
|
|
778
|
+
const t = v(), o = v(e.dataSource), r = v([]), a = v(e.separator), l = v(e.width), u = v(e.maxHeight), s = v(String(e.selectedValues).split(a.value)), i = w(() => e.multiSelect), d = w(() => ({
|
|
780
779
|
enableSelectRow: !0,
|
|
781
780
|
multiSelect: e.multiSelect,
|
|
782
781
|
multiSelectMode: "OnCheckAndClick",
|
|
@@ -785,33 +784,33 @@ const Ce = {
|
|
|
785
784
|
showSelection: !0
|
|
786
785
|
}));
|
|
787
786
|
O(e.dataSource, () => {
|
|
788
|
-
|
|
787
|
+
o.value = e.dataSource;
|
|
789
788
|
});
|
|
790
|
-
const c =
|
|
789
|
+
const c = w(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = w(() => {
|
|
791
790
|
const m = {};
|
|
792
791
|
return l.value !== void 0 && (m.width = `${l.value}px`), u.value !== void 0 && u.value > 0 && (m.maxHeight = `${u.value}px`), m;
|
|
793
792
|
});
|
|
794
793
|
function p(m) {
|
|
795
|
-
|
|
794
|
+
r.value = m.map((b) => Object.assign({}, b)), s.value = m.map((b) => b[e.idField]), n.emit("selectionChange", r.value);
|
|
796
795
|
}
|
|
797
|
-
function
|
|
796
|
+
function y(m) {
|
|
798
797
|
if (e.enableHighlightSearch)
|
|
799
798
|
return;
|
|
800
799
|
let b = [];
|
|
801
|
-
typeof e.searchOption == "function" ? b =
|
|
800
|
+
typeof e.searchOption == "function" ? b = o.value.filter((S) => e.searchOption(m, S)) : b = o.value.filter((S) => S[e.valueField].indexOf(m) > -1 || S[e.textField].indexOf(m) > -1), t.value.updateDataSource(b);
|
|
802
801
|
}
|
|
803
802
|
return O([() => e.selectedValues], ([m]) => {
|
|
804
803
|
s.value = m.split(a.value);
|
|
805
|
-
}), () =>
|
|
804
|
+
}), () => g("div", {
|
|
806
805
|
class: "f-combo-list-container pl-1",
|
|
807
806
|
style: f.value
|
|
808
|
-
}, [
|
|
807
|
+
}, [g(pn, {
|
|
809
808
|
ref: t,
|
|
810
809
|
size: "small",
|
|
811
810
|
itemClass: "f-combo-list-item",
|
|
812
811
|
header: c.value,
|
|
813
812
|
headerClass: "f-combo-list-search-box",
|
|
814
|
-
data:
|
|
813
|
+
data: o.value,
|
|
815
814
|
idField: e.idField,
|
|
816
815
|
textField: e.textField,
|
|
817
816
|
titleField: e.titleField,
|
|
@@ -820,145 +819,764 @@ const Ce = {
|
|
|
820
819
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
821
820
|
selectionValues: s.value,
|
|
822
821
|
onSelectionChange: p,
|
|
823
|
-
onAfterSearch:
|
|
822
|
+
onAfterSearch: y
|
|
824
823
|
}, null)]);
|
|
825
824
|
}
|
|
826
|
-
});
|
|
827
|
-
function
|
|
828
|
-
const n =
|
|
829
|
-
function a(c) {
|
|
830
|
-
const f = String(c).split(e.separator), p = f.map((b) => [b, !0]),
|
|
831
|
-
return
|
|
832
|
-
const E = f.indexOf(b[e.valueField]),
|
|
833
|
-
return E -
|
|
834
|
-
});
|
|
825
|
+
});
|
|
826
|
+
function oo(e) {
|
|
827
|
+
const n = v(""), t = v(e.modelValue), o = v(e.data || []), r = v(e.editable);
|
|
828
|
+
function a(c) {
|
|
829
|
+
const f = String(c).split(e.separator), p = f.map((b) => [b, !0]), y = new Map(p);
|
|
830
|
+
return o.value.filter((b) => y.has(String(b[e.valueField]))).sort((b, S) => {
|
|
831
|
+
const E = f.indexOf(b[e.valueField]), M = f.indexOf(S[e.valueField]);
|
|
832
|
+
return E - M;
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
function l(c) {
|
|
836
|
+
const f = a(c).map((p) => p[e.textField]).join(e.separator);
|
|
837
|
+
n.value = r.value ? f || c : f;
|
|
838
|
+
}
|
|
839
|
+
function u(c) {
|
|
840
|
+
const f = c.split(e.separator).map((y) => [y, !0]), p = new Map(f);
|
|
841
|
+
return o.value.filter((y) => p.has(y[e.textField]));
|
|
842
|
+
}
|
|
843
|
+
function s(c) {
|
|
844
|
+
const f = {};
|
|
845
|
+
return f[e.idField] = c, f[e.textField] = c, [f];
|
|
846
|
+
}
|
|
847
|
+
function i(c) {
|
|
848
|
+
let f = u(c);
|
|
849
|
+
const p = f && f.length > 0;
|
|
850
|
+
return r.value && !p && (f = s(c)), f;
|
|
851
|
+
}
|
|
852
|
+
function d() {
|
|
853
|
+
const { url: c, method: f = "GET", headers: p = {}, body: y = null } = e.remote, m = f.toLowerCase() == "get" ? { method: f, headers: p } : { method: f, headers: p, body: y };
|
|
854
|
+
let b = !1;
|
|
855
|
+
fetch(c, m).then((S) => {
|
|
856
|
+
var M, x;
|
|
857
|
+
if (S.status === 200)
|
|
858
|
+
return b = !!((x = (M = S.headers) == null ? void 0 : M.get("content-type")) != null && x.includes("application/json")), b ? S.text() : S.json();
|
|
859
|
+
throw new Error(S.statusText);
|
|
860
|
+
}).then((S) => {
|
|
861
|
+
o.value = b ? JSON.parse(S) : S;
|
|
862
|
+
}).catch((S) => {
|
|
863
|
+
console.error(S);
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
return e.remote && d(), O(() => e.data, () => {
|
|
867
|
+
o.value = e.data;
|
|
868
|
+
}), O([o], ([c]) => {
|
|
869
|
+
if (e.modelValue != null) {
|
|
870
|
+
const f = c.find((p) => p[e.valueField] === e.modelValue);
|
|
871
|
+
f && (n.value = f[e.textField]);
|
|
872
|
+
}
|
|
873
|
+
}), O(() => e.modelValue, (c) => {
|
|
874
|
+
t.value = c, l(c);
|
|
875
|
+
}), l(e.modelValue), { dataSource: o, displayText: n, editable: r, modelValue: t, getItemsByDisplayText: u, getItemsByValue: a, getSelectedItemsByDisplayText: i };
|
|
876
|
+
}
|
|
877
|
+
const H = /* @__PURE__ */ G({
|
|
878
|
+
name: "FComboList",
|
|
879
|
+
props: xe,
|
|
880
|
+
emits: ["clear", "update:modelValue", "change", "input"],
|
|
881
|
+
setup(e, n) {
|
|
882
|
+
const t = v(), o = v(e.disabled), r = v(e.enableClear), a = v(e.enableSearch), l = v(e.readonly), {
|
|
883
|
+
dataSource: u,
|
|
884
|
+
displayText: s,
|
|
885
|
+
editable: i,
|
|
886
|
+
modelValue: d,
|
|
887
|
+
getSelectedItemsByDisplayText: c
|
|
888
|
+
} = oo(e), f = w(() => e.multiSelect), p = w(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
|
|
889
|
+
function y() {
|
|
890
|
+
!f.value && t.value && t.value.hidePopup();
|
|
891
|
+
}
|
|
892
|
+
function m(T) {
|
|
893
|
+
s.value = T.map((C) => C[e.textField]).join(e.separator), T.length === 1 ? d.value = T[0][e.valueField] : d.value = T.map((C) => C[e.valueField]).join(e.separator), n.emit("update:modelValue", d.value), n.emit("change", T, d.value), y();
|
|
894
|
+
}
|
|
895
|
+
function b() {
|
|
896
|
+
l.value || t.value.togglePopup();
|
|
897
|
+
}
|
|
898
|
+
function S(T) {
|
|
899
|
+
d.value = "", n.emit("update:modelValue", ""), n.emit("clear");
|
|
900
|
+
}
|
|
901
|
+
function E(T) {
|
|
902
|
+
const C = c(T);
|
|
903
|
+
m(C);
|
|
904
|
+
}
|
|
905
|
+
function M() {
|
|
906
|
+
return s.value;
|
|
907
|
+
}
|
|
908
|
+
function x(T) {
|
|
909
|
+
n.emit("input", T);
|
|
910
|
+
}
|
|
911
|
+
return n.expose({
|
|
912
|
+
getDisplayText: M
|
|
913
|
+
}), O([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([T, C, F, A, I]) => {
|
|
914
|
+
o.value = T, i.value = C, r.value = F, a.value = A, l.value = I;
|
|
915
|
+
}), () => g(fn, {
|
|
916
|
+
ref: t,
|
|
917
|
+
id: e.id,
|
|
918
|
+
disable: o.value,
|
|
919
|
+
readonly: l.value,
|
|
920
|
+
forcePlaceholder: e.forcePlaceholder,
|
|
921
|
+
editable: i.value,
|
|
922
|
+
buttonContent: e.dropDownIcon,
|
|
923
|
+
placeholder: e.placeholder,
|
|
924
|
+
enableClear: r.value,
|
|
925
|
+
maxLength: e.maxLength,
|
|
926
|
+
tabIndex: e.tabIndex,
|
|
927
|
+
enableTitle: e.enableTitle,
|
|
928
|
+
multiSelect: e.multiSelect,
|
|
929
|
+
inputType: e.multiSelect ? e.viewType : "text",
|
|
930
|
+
modelValue: s.value,
|
|
931
|
+
"onUpdate:modelValue": (T) => s.value = T,
|
|
932
|
+
focusOnCreated: e.focusOnCreated,
|
|
933
|
+
selectOnCreated: e.selectOnCreated,
|
|
934
|
+
onClear: S,
|
|
935
|
+
onClick: b,
|
|
936
|
+
onChange: E,
|
|
937
|
+
onInput: x,
|
|
938
|
+
beforeOpen: e.beforeOpen
|
|
939
|
+
}, {
|
|
940
|
+
default: () => [g(no, {
|
|
941
|
+
idField: e.idField,
|
|
942
|
+
valueField: e.valueField,
|
|
943
|
+
textField: e.textField,
|
|
944
|
+
titleField: e.titleField,
|
|
945
|
+
dataSource: u.value,
|
|
946
|
+
selectedValues: d.value,
|
|
947
|
+
multiSelect: e.multiSelect,
|
|
948
|
+
enableSearch: a.value,
|
|
949
|
+
maxHeight: e.maxHeight,
|
|
950
|
+
enableHighlightSearch: e.enableHighlightSearch,
|
|
951
|
+
width: e.fitEditor ? p.value : void 0,
|
|
952
|
+
onSelectionChange: m
|
|
953
|
+
}, null)]
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
}), ro = /* @__PURE__ */ new Map([
|
|
957
|
+
["appearance", yn]
|
|
958
|
+
]);
|
|
959
|
+
function ao(e, n, t) {
|
|
960
|
+
return n;
|
|
961
|
+
}
|
|
962
|
+
const io = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-design.gitee.io/button-edit.schema.json", uo = "button-edit", so = "A Farris Input Component", co = "object", po = {
|
|
963
|
+
id: {
|
|
964
|
+
description: "The unique identifier for a Input Group",
|
|
965
|
+
type: "string"
|
|
966
|
+
},
|
|
967
|
+
type: {
|
|
968
|
+
description: "The type string of Input Group component",
|
|
969
|
+
type: "string",
|
|
970
|
+
default: "button-edit"
|
|
971
|
+
},
|
|
972
|
+
appearance: {
|
|
973
|
+
description: "",
|
|
974
|
+
type: "object",
|
|
975
|
+
properties: {
|
|
976
|
+
class: {
|
|
977
|
+
type: "string"
|
|
978
|
+
},
|
|
979
|
+
style: {
|
|
980
|
+
type: "string"
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
default: {}
|
|
984
|
+
},
|
|
985
|
+
binding: {
|
|
986
|
+
description: "",
|
|
987
|
+
type: "object",
|
|
988
|
+
default: {}
|
|
989
|
+
},
|
|
990
|
+
disable: {
|
|
991
|
+
type: "string",
|
|
992
|
+
default: !1
|
|
993
|
+
},
|
|
994
|
+
editable: {
|
|
995
|
+
description: "",
|
|
996
|
+
type: "boolean",
|
|
997
|
+
default: !0
|
|
998
|
+
},
|
|
999
|
+
enableLinkLabel: {
|
|
1000
|
+
description: "",
|
|
1001
|
+
type: "boolean",
|
|
1002
|
+
default: !1
|
|
1003
|
+
},
|
|
1004
|
+
label: {
|
|
1005
|
+
description: "",
|
|
1006
|
+
type: "string",
|
|
1007
|
+
default: ""
|
|
1008
|
+
},
|
|
1009
|
+
lableWidth: {
|
|
1010
|
+
description: "",
|
|
1011
|
+
type: "number"
|
|
1012
|
+
},
|
|
1013
|
+
placeholder: {
|
|
1014
|
+
description: "",
|
|
1015
|
+
type: "string",
|
|
1016
|
+
default: ""
|
|
1017
|
+
},
|
|
1018
|
+
readonly: {
|
|
1019
|
+
description: "",
|
|
1020
|
+
type: "boolean",
|
|
1021
|
+
default: !1
|
|
1022
|
+
},
|
|
1023
|
+
require: {
|
|
1024
|
+
description: "",
|
|
1025
|
+
type: "boolean",
|
|
1026
|
+
default: !1
|
|
1027
|
+
},
|
|
1028
|
+
tabindex: {
|
|
1029
|
+
description: "",
|
|
1030
|
+
type: "number",
|
|
1031
|
+
default: -1
|
|
1032
|
+
},
|
|
1033
|
+
textAlign: {
|
|
1034
|
+
description: "",
|
|
1035
|
+
type: "string",
|
|
1036
|
+
enum: [
|
|
1037
|
+
"left",
|
|
1038
|
+
"middle",
|
|
1039
|
+
"right"
|
|
1040
|
+
],
|
|
1041
|
+
default: "left"
|
|
1042
|
+
},
|
|
1043
|
+
visible: {
|
|
1044
|
+
description: "",
|
|
1045
|
+
type: "boolean",
|
|
1046
|
+
default: !0
|
|
1047
|
+
},
|
|
1048
|
+
onBlur: {
|
|
1049
|
+
description: "",
|
|
1050
|
+
type: "string",
|
|
1051
|
+
default: ""
|
|
1052
|
+
},
|
|
1053
|
+
onClickLinkLabel: {
|
|
1054
|
+
description: "",
|
|
1055
|
+
type: "sting",
|
|
1056
|
+
default: ""
|
|
1057
|
+
},
|
|
1058
|
+
autoComplete: {
|
|
1059
|
+
description: "",
|
|
1060
|
+
type: "boolean",
|
|
1061
|
+
default: !1
|
|
1062
|
+
},
|
|
1063
|
+
buttonContent: {
|
|
1064
|
+
description: "",
|
|
1065
|
+
type: "string",
|
|
1066
|
+
default: ""
|
|
1067
|
+
},
|
|
1068
|
+
enableClear: {
|
|
1069
|
+
description: "",
|
|
1070
|
+
type: "boolean",
|
|
1071
|
+
default: !0
|
|
1072
|
+
},
|
|
1073
|
+
inputType: {
|
|
1074
|
+
description: "",
|
|
1075
|
+
type: "string",
|
|
1076
|
+
enum: [
|
|
1077
|
+
"text",
|
|
1078
|
+
"tag"
|
|
1079
|
+
],
|
|
1080
|
+
default: "text"
|
|
1081
|
+
},
|
|
1082
|
+
multiSelect: {
|
|
1083
|
+
description: "",
|
|
1084
|
+
type: "boolean",
|
|
1085
|
+
default: !1
|
|
1086
|
+
},
|
|
1087
|
+
popup: {
|
|
1088
|
+
description: "",
|
|
1089
|
+
type: "object",
|
|
1090
|
+
properties: {
|
|
1091
|
+
footerButtons: {
|
|
1092
|
+
type: "array",
|
|
1093
|
+
default: []
|
|
1094
|
+
},
|
|
1095
|
+
height: {
|
|
1096
|
+
type: "number",
|
|
1097
|
+
default: 600
|
|
1098
|
+
},
|
|
1099
|
+
dataMapping: {
|
|
1100
|
+
type: "object"
|
|
1101
|
+
},
|
|
1102
|
+
contents: {
|
|
1103
|
+
type: "array",
|
|
1104
|
+
default: []
|
|
1105
|
+
},
|
|
1106
|
+
showMaxButton: {
|
|
1107
|
+
type: "boolean",
|
|
1108
|
+
default: !0
|
|
1109
|
+
},
|
|
1110
|
+
showCloseButton: {
|
|
1111
|
+
type: "boolean",
|
|
1112
|
+
default: !0
|
|
1113
|
+
},
|
|
1114
|
+
showFooter: {
|
|
1115
|
+
type: "boolean",
|
|
1116
|
+
default: !0
|
|
1117
|
+
},
|
|
1118
|
+
title: {
|
|
1119
|
+
type: "string",
|
|
1120
|
+
default: ""
|
|
1121
|
+
},
|
|
1122
|
+
width: {
|
|
1123
|
+
type: "number",
|
|
1124
|
+
default: 800
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
},
|
|
1128
|
+
separator: {
|
|
1129
|
+
type: "string",
|
|
1130
|
+
default: ","
|
|
1131
|
+
},
|
|
1132
|
+
showButtonWhenDisabled: {
|
|
1133
|
+
description: "",
|
|
1134
|
+
type: "boolean",
|
|
1135
|
+
default: !1
|
|
1136
|
+
},
|
|
1137
|
+
wrapText: {
|
|
1138
|
+
type: "boolean",
|
|
1139
|
+
default: !1
|
|
1140
|
+
},
|
|
1141
|
+
onClear: {
|
|
1142
|
+
description: "",
|
|
1143
|
+
type: "string",
|
|
1144
|
+
default: ""
|
|
1145
|
+
}
|
|
1146
|
+
}, fo = [
|
|
1147
|
+
"id",
|
|
1148
|
+
"type"
|
|
1149
|
+
], yo = {
|
|
1150
|
+
$schema: io,
|
|
1151
|
+
$id: lo,
|
|
1152
|
+
title: uo,
|
|
1153
|
+
description: so,
|
|
1154
|
+
type: co,
|
|
1155
|
+
properties: po,
|
|
1156
|
+
required: fo
|
|
1157
|
+
}, vo = "buttonEdit", mo = "A Farris Component", ho = "object", bo = {
|
|
1158
|
+
basic: {
|
|
1159
|
+
description: "Basic Infomation",
|
|
1160
|
+
title: "基本信息",
|
|
1161
|
+
properties: {
|
|
1162
|
+
id: {
|
|
1163
|
+
description: "组件标识",
|
|
1164
|
+
title: "标识",
|
|
1165
|
+
type: "string",
|
|
1166
|
+
readonly: !0
|
|
1167
|
+
},
|
|
1168
|
+
type: {
|
|
1169
|
+
description: "组件类型",
|
|
1170
|
+
title: "控件类型",
|
|
1171
|
+
type: "select",
|
|
1172
|
+
editor: {
|
|
1173
|
+
type: "waiting for modification",
|
|
1174
|
+
enum: []
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
},
|
|
1179
|
+
behavior: {
|
|
1180
|
+
description: "Basic Infomation",
|
|
1181
|
+
title: "行为",
|
|
1182
|
+
properties: {
|
|
1183
|
+
editable: {
|
|
1184
|
+
description: "",
|
|
1185
|
+
title: "允许编辑",
|
|
1186
|
+
type: "boolean"
|
|
1187
|
+
},
|
|
1188
|
+
readonly: {
|
|
1189
|
+
description: "",
|
|
1190
|
+
title: "只读",
|
|
1191
|
+
type: "string"
|
|
1192
|
+
},
|
|
1193
|
+
required: {
|
|
1194
|
+
description: "",
|
|
1195
|
+
title: "必填",
|
|
1196
|
+
type: "boolean"
|
|
1197
|
+
},
|
|
1198
|
+
visible: {
|
|
1199
|
+
description: "",
|
|
1200
|
+
title: "可见",
|
|
1201
|
+
type: "boolean"
|
|
1202
|
+
},
|
|
1203
|
+
placeholder: {
|
|
1204
|
+
description: "",
|
|
1205
|
+
title: "提示文本",
|
|
1206
|
+
type: "string"
|
|
1207
|
+
},
|
|
1208
|
+
tabindex: {
|
|
1209
|
+
description: "",
|
|
1210
|
+
title: "tab索引",
|
|
1211
|
+
type: "number"
|
|
1212
|
+
},
|
|
1213
|
+
textAlign: {
|
|
1214
|
+
description: "",
|
|
1215
|
+
title: "对齐方式",
|
|
1216
|
+
type: "enum",
|
|
1217
|
+
editor: {
|
|
1218
|
+
type: "combo-list",
|
|
1219
|
+
textField: "name",
|
|
1220
|
+
valueField: "value",
|
|
1221
|
+
data: [
|
|
1222
|
+
{
|
|
1223
|
+
value: "left",
|
|
1224
|
+
name: "左对齐"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
value: "center",
|
|
1228
|
+
name: "居中对齐"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
value: "right",
|
|
1232
|
+
name: "右对齐"
|
|
1233
|
+
}
|
|
1234
|
+
]
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
}, go = {
|
|
1240
|
+
title: vo,
|
|
1241
|
+
description: mo,
|
|
1242
|
+
type: ho,
|
|
1243
|
+
categories: bo
|
|
1244
|
+
}, Xe = {
|
|
1245
|
+
/**
|
|
1246
|
+
* 组件标识
|
|
1247
|
+
*/
|
|
1248
|
+
id: String,
|
|
1249
|
+
/**
|
|
1250
|
+
* 扩展按钮显示内容,这是一段现在扩展按钮中的html标签
|
|
1251
|
+
*/
|
|
1252
|
+
buttonContent: { type: String, default: '<i class="f-icon f-icon-lookup"></i>' },
|
|
1253
|
+
buttonBehavior: { type: String, default: "Popup" },
|
|
1254
|
+
/**
|
|
1255
|
+
* 启用输入框自动完成功能
|
|
1256
|
+
*/
|
|
1257
|
+
autoComplete: { type: Boolean, default: !1 },
|
|
1258
|
+
/**
|
|
1259
|
+
* 组件自定义样式
|
|
1260
|
+
*/
|
|
1261
|
+
customClass: { type: String, default: "" },
|
|
1262
|
+
/**
|
|
1263
|
+
* 禁用组件,既不允许在输入框中录入,也不允许点击扩展按钮。
|
|
1264
|
+
*/
|
|
1265
|
+
disable: { type: Boolean, default: !1 },
|
|
1266
|
+
/**
|
|
1267
|
+
* 允许在输入框中录入文本。
|
|
1268
|
+
*/
|
|
1269
|
+
editable: { type: Boolean, default: !0 },
|
|
1270
|
+
/**
|
|
1271
|
+
* 显示清空文本按钮
|
|
1272
|
+
*/
|
|
1273
|
+
enableClear: { type: Boolean, default: !1 },
|
|
1274
|
+
/**
|
|
1275
|
+
* 组件值
|
|
1276
|
+
*/
|
|
1277
|
+
modelValue: { type: String, default: "" },
|
|
1278
|
+
/**
|
|
1279
|
+
* 将组件设置为只读,既不允许在输入框中录入,也不允许点击扩展按钮,但是允许复制输入框中的内容。
|
|
1280
|
+
*/
|
|
1281
|
+
readonly: { type: Boolean, default: !1 },
|
|
1282
|
+
/**
|
|
1283
|
+
* 禁用组件时,是否显示扩展按钮
|
|
1284
|
+
*/
|
|
1285
|
+
showButtonWhenDisabled: { type: Boolean, default: !1 },
|
|
1286
|
+
/**
|
|
1287
|
+
* 显示输入框的标签
|
|
1288
|
+
*/
|
|
1289
|
+
enableTitle: { type: Boolean, default: !1 },
|
|
1290
|
+
/**
|
|
1291
|
+
* 输入框类型
|
|
1292
|
+
*/
|
|
1293
|
+
inputType: { type: String, default: "text" },
|
|
1294
|
+
/**
|
|
1295
|
+
* 显示输入框提示信息
|
|
1296
|
+
*/
|
|
1297
|
+
forcePlaceholder: { type: Boolean, default: !1 },
|
|
1298
|
+
/**
|
|
1299
|
+
* 输入框提示文本
|
|
1300
|
+
*/
|
|
1301
|
+
placeholder: { type: String, default: "" },
|
|
1302
|
+
/**
|
|
1303
|
+
* 输入框最小长度
|
|
1304
|
+
*/
|
|
1305
|
+
minLength: Number,
|
|
1306
|
+
/**
|
|
1307
|
+
* 输入框最大长度
|
|
1308
|
+
*/
|
|
1309
|
+
maxLength: Number,
|
|
1310
|
+
/**
|
|
1311
|
+
* 输入框Tab键索引
|
|
1312
|
+
*/
|
|
1313
|
+
tabIndex: Number,
|
|
1314
|
+
popupHost: { type: Object },
|
|
1315
|
+
popupRightBoundary: { type: Object },
|
|
1316
|
+
popupOffsetX: { type: Object },
|
|
1317
|
+
popupOnInput: { type: Boolean, default: !1 },
|
|
1318
|
+
popupOnFocus: { type: Boolean, default: !1 },
|
|
1319
|
+
popupMinWidth: { type: Number, default: 160 },
|
|
1320
|
+
modalOptions: { type: Object, default: {} },
|
|
1321
|
+
wrapText: { type: Boolean, default: !1 },
|
|
1322
|
+
/**
|
|
1323
|
+
* 可选,是否支持多选
|
|
1324
|
+
* 默认`false`
|
|
1325
|
+
*/
|
|
1326
|
+
multiSelect: { type: Boolean, default: !1 },
|
|
1327
|
+
/**
|
|
1328
|
+
* 可选,分隔符
|
|
1329
|
+
* 默认`,`
|
|
1330
|
+
*/
|
|
1331
|
+
separator: { type: String, default: "," },
|
|
1332
|
+
/** 对齐方式 */
|
|
1333
|
+
textAlign: { type: String, default: "left" },
|
|
1334
|
+
/**
|
|
1335
|
+
* 废弃
|
|
1336
|
+
*/
|
|
1337
|
+
beforeClickButton: { type: Function, default: null },
|
|
1338
|
+
/**
|
|
1339
|
+
* 作为内嵌编辑器被创建后默认获得焦点
|
|
1340
|
+
*/
|
|
1341
|
+
focusOnCreated: { type: Boolean, default: !1 },
|
|
1342
|
+
/**
|
|
1343
|
+
* 作为内嵌编辑器被创建后默认选中文本
|
|
1344
|
+
*/
|
|
1345
|
+
selectOnCreated: { type: Boolean, default: !1 },
|
|
1346
|
+
/**
|
|
1347
|
+
* 打开前
|
|
1348
|
+
*/
|
|
1349
|
+
beforeOpen: { type: Function, default: null },
|
|
1350
|
+
/** 更新方式 blur | change */
|
|
1351
|
+
updateOn: { type: String, default: "change" }
|
|
1352
|
+
};
|
|
1353
|
+
ne(Xe, yo, ro, ao, go);
|
|
1354
|
+
const Co = {
|
|
1355
|
+
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
1356
|
+
host: { type: Object },
|
|
1357
|
+
backgroundColor: { type: String, default: "" }
|
|
1358
|
+
}, So = /* @__PURE__ */ G({
|
|
1359
|
+
name: "FOverlay",
|
|
1360
|
+
props: Co,
|
|
1361
|
+
emits: ["click"],
|
|
1362
|
+
setup(e, n) {
|
|
1363
|
+
const t = v(e.popupContentPosition), o = v(e.host), r = w(() => ({
|
|
1364
|
+
backgroundColor: e.backgroundColor || "",
|
|
1365
|
+
pointerEvents: "auto"
|
|
1366
|
+
}));
|
|
1367
|
+
function a(u) {
|
|
1368
|
+
n.emit("click"), u.preventDefault(), u.stopPropagation();
|
|
1369
|
+
}
|
|
1370
|
+
w(() => {
|
|
1371
|
+
const u = o.value;
|
|
1372
|
+
if (u) {
|
|
1373
|
+
const s = u.getBoundingClientRect(), {
|
|
1374
|
+
left: i,
|
|
1375
|
+
top: d,
|
|
1376
|
+
height: c
|
|
1377
|
+
} = s;
|
|
1378
|
+
return {
|
|
1379
|
+
left: i,
|
|
1380
|
+
top: d + c
|
|
1381
|
+
};
|
|
1382
|
+
}
|
|
1383
|
+
return t.value;
|
|
1384
|
+
});
|
|
1385
|
+
const l = w(() => ({
|
|
1386
|
+
// position: 'relative',
|
|
1387
|
+
// left: `${position.value.left}px`,
|
|
1388
|
+
// top: `${position.value.top}px`
|
|
1389
|
+
}));
|
|
1390
|
+
return () => g(an, {
|
|
1391
|
+
to: "body"
|
|
1392
|
+
}, {
|
|
1393
|
+
default: () => {
|
|
1394
|
+
var u, s;
|
|
1395
|
+
return [g("div", {
|
|
1396
|
+
class: "overlay-container",
|
|
1397
|
+
onClick: (i) => a(i),
|
|
1398
|
+
style: r.value
|
|
1399
|
+
}, [g("div", {
|
|
1400
|
+
style: l.value
|
|
1401
|
+
}, [(s = (u = n.slots).default) == null ? void 0 : s.call(u)])])];
|
|
1402
|
+
}
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
function wo(e) {
|
|
1407
|
+
if (e.content && e.content.render)
|
|
1408
|
+
return e.content.render;
|
|
1409
|
+
if (e.render && typeof e.render == "function")
|
|
1410
|
+
return e.render;
|
|
1411
|
+
}
|
|
1412
|
+
function xo(e) {
|
|
1413
|
+
const n = document.createElement("div");
|
|
1414
|
+
n.style.display = "contents";
|
|
1415
|
+
let t;
|
|
1416
|
+
const o = e.onClickCallback || (() => {
|
|
1417
|
+
}), r = () => {
|
|
1418
|
+
o(), t && t.unmount();
|
|
1419
|
+
};
|
|
1420
|
+
return t = ln({
|
|
1421
|
+
setup() {
|
|
1422
|
+
un(() => {
|
|
1423
|
+
document.body.removeChild(n);
|
|
1424
|
+
});
|
|
1425
|
+
const a = wo(e);
|
|
1426
|
+
return () => g(So, {
|
|
1427
|
+
"popup-content-position": e.popupPosition,
|
|
1428
|
+
host: e.host,
|
|
1429
|
+
onClick: r,
|
|
1430
|
+
backgroundColor: e.backgroundColor
|
|
1431
|
+
}, {
|
|
1432
|
+
default: () => [a && a()]
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
}), document.body.appendChild(n), t.mount(n), t;
|
|
1436
|
+
}
|
|
1437
|
+
class Vo {
|
|
1438
|
+
static show(n) {
|
|
1439
|
+
return xo(n);
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
const Bo = Symbol("FModalService");
|
|
1443
|
+
function Qe(e, n) {
|
|
1444
|
+
function t() {
|
|
1445
|
+
const o = e.beforeOpen || e.beforeClickButton || null;
|
|
1446
|
+
let r = Promise.resolve(!0);
|
|
1447
|
+
if (o) {
|
|
1448
|
+
const a = o(n.value);
|
|
1449
|
+
if (typeof a > "u")
|
|
1450
|
+
return r;
|
|
1451
|
+
typeof a == "boolean" ? r = Promise.resolve(a) : r = a;
|
|
1452
|
+
}
|
|
1453
|
+
return r;
|
|
1454
|
+
}
|
|
1455
|
+
return { judgeCanOpen: t };
|
|
1456
|
+
}
|
|
1457
|
+
function To(e, n, t, o, r) {
|
|
1458
|
+
const a = v(e.buttonBehavior), l = v(e.popupOnInput), u = w(() => ({
|
|
1459
|
+
"input-group-append": !0,
|
|
1460
|
+
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
1461
|
+
})), { judgeCanOpen: s } = Qe(e, r), i = w(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), d = z(Bo, null), c = v();
|
|
1462
|
+
async function f(m) {
|
|
1463
|
+
if (await s() && i.value) {
|
|
1464
|
+
const b = !!n.slots.default;
|
|
1465
|
+
if (a.value === "Modal") {
|
|
1466
|
+
const S = e.modalOptions, E = d == null ? void 0 : d.open({
|
|
1467
|
+
...S,
|
|
1468
|
+
render: () => n.slots.default && n.slots.default()
|
|
1469
|
+
});
|
|
1470
|
+
c.value = E == null ? void 0 : E.modalRef;
|
|
1471
|
+
}
|
|
1472
|
+
a.value === "Overlay" && Vo.show({
|
|
1473
|
+
// host: buttonEditRef.value,
|
|
1474
|
+
host: document.body,
|
|
1475
|
+
backgroundColor: "rgba(0,0,0,.15)",
|
|
1476
|
+
render: () => n.slots.default && n.slots.default()
|
|
1477
|
+
}), b && a.value === "Popup" && o.togglePopup(!0), b && l.value && o.hidePopup(), n.emit("clickButton", { origin: m, value: e.modelValue });
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
function p(m) {
|
|
1481
|
+
n.emit("mouseEnterIcon", m);
|
|
835
1482
|
}
|
|
836
|
-
function
|
|
837
|
-
|
|
838
|
-
n.value = o.value ? f || c : f;
|
|
1483
|
+
function y(m) {
|
|
1484
|
+
n.emit("mouseLeaveIcon", m);
|
|
839
1485
|
}
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
1486
|
+
return {
|
|
1487
|
+
buttonGroupClass: u,
|
|
1488
|
+
onClickButton: f,
|
|
1489
|
+
onMouseEnterButton: p,
|
|
1490
|
+
onMouseLeaveButton: y,
|
|
1491
|
+
modalRef: c
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
function Fo(e, n, t, o) {
|
|
1495
|
+
const r = v(), a = v(!1), { judgeCanOpen: l } = Qe(e, o);
|
|
1496
|
+
function u() {
|
|
1497
|
+
const c = r.value;
|
|
1498
|
+
c && c.show(t.value);
|
|
843
1499
|
}
|
|
844
|
-
function s(c) {
|
|
845
|
-
|
|
846
|
-
|
|
1500
|
+
async function s(c = !1) {
|
|
1501
|
+
if (!!n.slots.default) {
|
|
1502
|
+
if (!c && !a.value && !await l())
|
|
1503
|
+
return;
|
|
1504
|
+
a.value = !a.value, await le(), u();
|
|
1505
|
+
}
|
|
847
1506
|
}
|
|
848
|
-
function i(c) {
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
1507
|
+
async function i(c = !1) {
|
|
1508
|
+
if (!!n.slots.default) {
|
|
1509
|
+
if (!c && !await l())
|
|
1510
|
+
return;
|
|
1511
|
+
a.value = !0, await le(), u();
|
|
1512
|
+
}
|
|
852
1513
|
}
|
|
853
1514
|
function d() {
|
|
854
|
-
|
|
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);
|
|
865
|
-
});
|
|
1515
|
+
a.value = !1;
|
|
866
1516
|
}
|
|
867
|
-
return
|
|
868
|
-
r.value = e.data;
|
|
869
|
-
}), O([r], ([c]) => {
|
|
870
|
-
if (e.modelValue) {
|
|
871
|
-
const f = c.find((p) => p[e.valueField] === e.modelValue);
|
|
872
|
-
f && (n.value = f[e.textField]);
|
|
873
|
-
}
|
|
874
|
-
}), O(() => e.modelValue, (c) => {
|
|
875
|
-
t.value = c, l(c);
|
|
876
|
-
}), l(e.modelValue), { dataSource: r, displayText: n, editable: o, modelValue: t, getItemsByDisplayText: u, getItemsByValue: a, getSelectedItemsByDisplayText: i };
|
|
1517
|
+
return { hidePopup: d, popup: i, shouldPopupContent: a, togglePopup: s, popoverRef: r };
|
|
877
1518
|
}
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
1519
|
+
function ko(e, n, t) {
|
|
1520
|
+
const {
|
|
1521
|
+
buttonGroupClass: o
|
|
1522
|
+
} = t, r = v();
|
|
1523
|
+
return {
|
|
1524
|
+
renderButtonGroup: () => g("div", {
|
|
1525
|
+
id: `${e.id}-button-group`,
|
|
1526
|
+
class: o.value
|
|
1527
|
+
}, [n.slots.buttonContent ? g("span", {
|
|
1528
|
+
class: "input-group-text input-group-append-button"
|
|
1529
|
+
}, [n.slots.buttonContent()]) : e.buttonContent ? g("span", {
|
|
1530
|
+
class: "input-group-text input-group-append-button",
|
|
1531
|
+
innerHTML: e.buttonContent,
|
|
1532
|
+
ref: r
|
|
1533
|
+
}, null) : null]),
|
|
1534
|
+
buttonHandleElement: r
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
const Eo = /* @__PURE__ */ G({
|
|
1538
|
+
name: "FButtonEdit",
|
|
1539
|
+
props: Xe,
|
|
1540
|
+
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
882
1541
|
setup(e, n) {
|
|
883
|
-
const t =
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
m(g);
|
|
905
|
-
}
|
|
906
|
-
function k() {
|
|
907
|
-
return s.value;
|
|
908
|
-
}
|
|
909
|
-
function C(T) {
|
|
910
|
-
n.emit("input", T);
|
|
911
|
-
}
|
|
912
|
-
return n.expose({
|
|
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, {
|
|
1542
|
+
const t = v(), o = z("design-item-context"), r = We(t, o), a = v(e.customClass), l = v(e.modelValue), u = Fo(e, n, t, l), s = To(e, n, t, u, l), i = v(), d = w(() => ({
|
|
1543
|
+
"f-cmp-inputgroup": !0,
|
|
1544
|
+
"input-group": !0,
|
|
1545
|
+
"f-state-disable": !0,
|
|
1546
|
+
"f-state-editable": !1,
|
|
1547
|
+
"f-state-readonly": !0
|
|
1548
|
+
}));
|
|
1549
|
+
q(() => {
|
|
1550
|
+
t.value.componentInstance = r;
|
|
1551
|
+
}), n.expose(r.value);
|
|
1552
|
+
const c = w(() => {
|
|
1553
|
+
const p = {
|
|
1554
|
+
"f-button-edit": !0,
|
|
1555
|
+
"f-cmp-inputgroup": !0,
|
|
1556
|
+
"f-button-edit-nowrap": !e.wrapText
|
|
1557
|
+
};
|
|
1558
|
+
return a.value && a.value.split(" ").reduce((y, m) => (y[m] = !0, y), p), p;
|
|
1559
|
+
}), {
|
|
1560
|
+
renderButtonGroup: f
|
|
1561
|
+
} = ko(e, n, s);
|
|
1562
|
+
return () => g("div", sn(n.attrs, {
|
|
917
1563
|
ref: t,
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
enableTitle: e.enableTitle,
|
|
929
|
-
multiSelect: e.multiSelect,
|
|
930
|
-
inputType: e.multiSelect ? e.viewType : "text",
|
|
931
|
-
modelValue: s.value,
|
|
932
|
-
"onUpdate:modelValue": (T) => s.value = T,
|
|
933
|
-
focusOnCreated: e.focusOnCreated,
|
|
934
|
-
selectOnCreated: e.selectOnCreated,
|
|
935
|
-
onClear: S,
|
|
936
|
-
onClick: b,
|
|
937
|
-
onChange: E,
|
|
938
|
-
onInput: C,
|
|
939
|
-
beforeOpen: e.beforeOpen
|
|
940
|
-
}, {
|
|
941
|
-
default: () => [w(Yn, {
|
|
942
|
-
idField: e.idField,
|
|
943
|
-
valueField: e.valueField,
|
|
944
|
-
textField: e.textField,
|
|
945
|
-
titleField: e.titleField,
|
|
946
|
-
dataSource: u.value,
|
|
947
|
-
selectedValues: d.value,
|
|
948
|
-
multiSelect: e.multiSelect,
|
|
949
|
-
enableSearch: a.value,
|
|
950
|
-
maxHeight: e.maxHeight,
|
|
951
|
-
enableHighlightSearch: e.enableHighlightSearch,
|
|
952
|
-
width: e.fitEditor ? p.value : void 0,
|
|
953
|
-
onSelectionChange: m
|
|
954
|
-
}, null)]
|
|
955
|
-
});
|
|
1564
|
+
class: c.value,
|
|
1565
|
+
id: e.id
|
|
1566
|
+
}), [g("div", {
|
|
1567
|
+
class: d.value
|
|
1568
|
+
}, [g("input", {
|
|
1569
|
+
ref: i,
|
|
1570
|
+
class: "form-control",
|
|
1571
|
+
readonly: !0,
|
|
1572
|
+
placeholder: e.placeholder
|
|
1573
|
+
}, null), f()])]);
|
|
956
1574
|
}
|
|
957
1575
|
});
|
|
958
|
-
function
|
|
1576
|
+
function Ve(e, n) {
|
|
959
1577
|
e.schema;
|
|
960
|
-
const t =
|
|
961
|
-
function
|
|
1578
|
+
const t = v(!0), o = v(!0);
|
|
1579
|
+
function r(c) {
|
|
962
1580
|
return !1;
|
|
963
1581
|
}
|
|
964
1582
|
function a() {
|
|
@@ -978,18 +1596,18 @@ function xe(e, n) {
|
|
|
978
1596
|
return null;
|
|
979
1597
|
}
|
|
980
1598
|
return {
|
|
981
|
-
canAccepts:
|
|
1599
|
+
canAccepts: r,
|
|
982
1600
|
checkCanDeleteComponent: a,
|
|
983
1601
|
checkCanMoveComponent: l,
|
|
984
1602
|
hideNestedPaddingInDesginerView: u,
|
|
985
1603
|
onAcceptMovedChildElement: s,
|
|
986
1604
|
resolveComponentContext: i,
|
|
987
1605
|
triggerBelongedComponentToMoveWhenMoved: t,
|
|
988
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1606
|
+
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
989
1607
|
getPropsConfig: d
|
|
990
1608
|
};
|
|
991
1609
|
}
|
|
992
|
-
class
|
|
1610
|
+
class Mo {
|
|
993
1611
|
constructor(n, t) {
|
|
994
1612
|
$(this, "componentId");
|
|
995
1613
|
$(this, "viewModelId");
|
|
@@ -1006,8 +1624,8 @@ class Jn {
|
|
|
1006
1624
|
type: "object",
|
|
1007
1625
|
categories: {}
|
|
1008
1626
|
});
|
|
1009
|
-
var
|
|
1010
|
-
this.componentId = n, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((
|
|
1627
|
+
var o;
|
|
1628
|
+
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;
|
|
1011
1629
|
}
|
|
1012
1630
|
getTableInfo() {
|
|
1013
1631
|
var n;
|
|
@@ -1017,8 +1635,8 @@ class Jn {
|
|
|
1017
1635
|
const t = n.binding && n.binding.type === "Form" && n.binding.field;
|
|
1018
1636
|
if (t) {
|
|
1019
1637
|
if (!this.designViewModelField) {
|
|
1020
|
-
const
|
|
1021
|
-
this.designViewModelField =
|
|
1638
|
+
const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1639
|
+
this.designViewModelField = o.fields.find((r) => r.id === t);
|
|
1022
1640
|
}
|
|
1023
1641
|
n.updateOn = this.designViewModelField.updateOn;
|
|
1024
1642
|
}
|
|
@@ -1070,13 +1688,26 @@ class Jn {
|
|
|
1070
1688
|
}
|
|
1071
1689
|
};
|
|
1072
1690
|
}
|
|
1691
|
+
/**
|
|
1692
|
+
*
|
|
1693
|
+
* @param propertyId
|
|
1694
|
+
* @param componentInstance
|
|
1695
|
+
* @returns
|
|
1696
|
+
*/
|
|
1697
|
+
updateElementByParentContainer(n, t) {
|
|
1698
|
+
const o = t && t.parent && t.parent.schema;
|
|
1699
|
+
if (!o)
|
|
1700
|
+
return;
|
|
1701
|
+
const r = o.contents.findIndex((l) => l.id === n), a = B(o.contents[r]);
|
|
1702
|
+
o.contents.splice(r, 1), o.contents.splice(r, 0, a);
|
|
1703
|
+
}
|
|
1073
1704
|
}
|
|
1074
|
-
const
|
|
1705
|
+
const J = class J {
|
|
1075
1706
|
/**
|
|
1076
1707
|
* 根据绑定字段类型获取可用的输入类控件
|
|
1077
1708
|
*/
|
|
1078
1709
|
static getEditorTypesByMDataType(n) {
|
|
1079
|
-
const t =
|
|
1710
|
+
const t = J.fieldControlTypeMapping[n];
|
|
1080
1711
|
return t || [{ key: "", value: "" }];
|
|
1081
1712
|
}
|
|
1082
1713
|
/**
|
|
@@ -1084,9 +1715,9 @@ const Z = class Z {
|
|
|
1084
1715
|
*/
|
|
1085
1716
|
static getAllInputTypes() {
|
|
1086
1717
|
const n = [];
|
|
1087
|
-
for (let t in
|
|
1088
|
-
|
|
1089
|
-
n.find((
|
|
1718
|
+
for (let t in J.fieldControlTypeMapping)
|
|
1719
|
+
J.fieldControlTypeMapping[t].forEach((o) => {
|
|
1720
|
+
n.find((r) => r.key === o.key && r.value === o.value) || n.push({ key: o.key, value: o.value });
|
|
1090
1721
|
});
|
|
1091
1722
|
return n;
|
|
1092
1723
|
}
|
|
@@ -1094,7 +1725,7 @@ const Z = class Z {
|
|
|
1094
1725
|
/**
|
|
1095
1726
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1096
1727
|
*/
|
|
1097
|
-
$(
|
|
1728
|
+
$(J, "fieldControlTypeMapping", {
|
|
1098
1729
|
String: [
|
|
1099
1730
|
{ key: V["input-group"].type, value: V["input-group"].name },
|
|
1100
1731
|
{ key: V.lookup.type, value: V.lookup.name },
|
|
@@ -1140,20 +1771,22 @@ $(Z, "fieldControlTypeMapping", {
|
|
|
1140
1771
|
{ key: V["radio-group"].type, value: V["radio-group"].name }
|
|
1141
1772
|
]
|
|
1142
1773
|
});
|
|
1143
|
-
let
|
|
1144
|
-
const
|
|
1145
|
-
class
|
|
1146
|
-
constructor(
|
|
1147
|
-
super(
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1774
|
+
let ue = J;
|
|
1775
|
+
const Ao = v(0);
|
|
1776
|
+
class Be extends Mo {
|
|
1777
|
+
constructor(t, o) {
|
|
1778
|
+
super(t, o);
|
|
1779
|
+
$(this, "responseLayoutEditorFunction");
|
|
1780
|
+
this.responseLayoutEditorFunction = vn(this.formSchemaUtils);
|
|
1781
|
+
}
|
|
1782
|
+
getPropertyConfig(t, o) {
|
|
1783
|
+
return this.propertyConfig.categories.basic = this.getBasicProperties(t, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t, o), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
|
|
1784
|
+
}
|
|
1785
|
+
getBasicProperties(t, o) {
|
|
1786
|
+
var u;
|
|
1154
1787
|
var r = this;
|
|
1155
|
-
this.setDesignViewModelField(
|
|
1156
|
-
const
|
|
1788
|
+
this.setDesignViewModelField(t);
|
|
1789
|
+
const a = this.formSchemaUtils.getFormMetadataBasicInfo(), l = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
1157
1790
|
return {
|
|
1158
1791
|
description: "Basic Information",
|
|
1159
1792
|
title: "基本信息",
|
|
@@ -1175,7 +1808,7 @@ class Ve extends Jn {
|
|
|
1175
1808
|
textField: "value",
|
|
1176
1809
|
valueField: "key",
|
|
1177
1810
|
editable: !1,
|
|
1178
|
-
data: r.designViewModelField ?
|
|
1811
|
+
data: r.designViewModelField ? ue.getEditorTypesByMDataType((u = r.designViewModelField.type) == null ? void 0 : u.name) : ue.getAllInputTypes()
|
|
1179
1812
|
}
|
|
1180
1813
|
},
|
|
1181
1814
|
label: {
|
|
@@ -1191,8 +1824,8 @@ class Ve extends Jn {
|
|
|
1191
1824
|
type: "field-selector",
|
|
1192
1825
|
bindingType: { enable: !1 },
|
|
1193
1826
|
editorParams: {
|
|
1194
|
-
propertyData:
|
|
1195
|
-
formBasicInfo:
|
|
1827
|
+
propertyData: t,
|
|
1828
|
+
formBasicInfo: a
|
|
1196
1829
|
},
|
|
1197
1830
|
columns: [
|
|
1198
1831
|
{ field: "name", title: "字段名称" },
|
|
@@ -1200,26 +1833,27 @@ class Ve extends Jn {
|
|
|
1200
1833
|
{ field: "fieldType", title: "字段类型" }
|
|
1201
1834
|
],
|
|
1202
1835
|
textField: "bindingField",
|
|
1203
|
-
data:
|
|
1836
|
+
data: l
|
|
1204
1837
|
}
|
|
1205
1838
|
}
|
|
1206
1839
|
},
|
|
1207
|
-
setPropertyRelates(
|
|
1208
|
-
if (
|
|
1209
|
-
switch (
|
|
1840
|
+
setPropertyRelates(s, i) {
|
|
1841
|
+
if (s)
|
|
1842
|
+
switch (s && s.propertyID) {
|
|
1210
1843
|
case "type": {
|
|
1211
|
-
r.changeControlType(
|
|
1844
|
+
r.changeControlType(t, s, o);
|
|
1212
1845
|
break;
|
|
1213
1846
|
}
|
|
1214
1847
|
case "label": {
|
|
1215
|
-
|
|
1848
|
+
s.needRefreshControlTree = !0;
|
|
1216
1849
|
break;
|
|
1217
1850
|
}
|
|
1218
1851
|
}
|
|
1219
1852
|
}
|
|
1220
1853
|
};
|
|
1221
1854
|
}
|
|
1222
|
-
getAppearanceProperties(
|
|
1855
|
+
getAppearanceProperties(t, o) {
|
|
1856
|
+
var r = this;
|
|
1223
1857
|
return {
|
|
1224
1858
|
title: "样式",
|
|
1225
1859
|
description: "Appearance",
|
|
@@ -1240,61 +1874,74 @@ class Ve extends Jn {
|
|
|
1240
1874
|
description: "响应式列宽",
|
|
1241
1875
|
title: "响应式列宽",
|
|
1242
1876
|
type: "boolean",
|
|
1243
|
-
visible: !
|
|
1877
|
+
visible: !0,
|
|
1878
|
+
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
1879
|
+
refreshPanelAfterChanged: !0,
|
|
1244
1880
|
editor: {
|
|
1245
|
-
type: "response-layout-editor-setting"
|
|
1246
|
-
|
|
1247
|
-
|
|
1881
|
+
type: "response-layout-editor-setting",
|
|
1882
|
+
initialState: r.responseLayoutEditorFunction.checkCanOpenLayoutEditor(t, r.componentId)
|
|
1883
|
+
}
|
|
1248
1884
|
}
|
|
1885
|
+
},
|
|
1886
|
+
setPropertyRelates(a, l) {
|
|
1887
|
+
if (a)
|
|
1888
|
+
switch (a && a.propertyID) {
|
|
1889
|
+
case "responseLayout":
|
|
1890
|
+
r.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(a.propertyValue, r.componentId || t.id), r.updateUnifiedLayoutAfterResponseLayoutChanged(r.componentId), r.updateElementByParentContainer(t.id, o), delete t.responseLayout;
|
|
1891
|
+
break;
|
|
1892
|
+
case "class":
|
|
1893
|
+
r.updateUnifiedLayoutAfterControlChanged(a.propertyValue, t.id, this.componentId), r.updateElementByParentContainer(t.id, o);
|
|
1894
|
+
break;
|
|
1895
|
+
}
|
|
1249
1896
|
}
|
|
1250
1897
|
};
|
|
1251
1898
|
}
|
|
1252
|
-
getEditorProperties(
|
|
1253
|
-
return this.getComponentConfig(
|
|
1899
|
+
getEditorProperties(t) {
|
|
1900
|
+
return this.getComponentConfig(t);
|
|
1254
1901
|
}
|
|
1255
1902
|
/**
|
|
1256
1903
|
* 卡片控件:切换控件类型后事件
|
|
1257
1904
|
* @param propertyData 控件DOM属性
|
|
1258
1905
|
* @param newControlType 新控件类型
|
|
1259
1906
|
*/
|
|
1260
|
-
changeControlType(
|
|
1261
|
-
var
|
|
1262
|
-
const
|
|
1263
|
-
if (!
|
|
1907
|
+
changeControlType(t, o, r) {
|
|
1908
|
+
var d, c, f, p;
|
|
1909
|
+
const a = o.propertyValue, l = r && r.parent && r.parent.schema;
|
|
1910
|
+
if (!l)
|
|
1264
1911
|
return;
|
|
1265
|
-
const
|
|
1266
|
-
let
|
|
1912
|
+
const u = l.contents.findIndex((y) => y.id === t.id), s = l.contents[u];
|
|
1913
|
+
let i;
|
|
1267
1914
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1268
1915
|
editor: {
|
|
1269
|
-
$type:
|
|
1916
|
+
$type: a
|
|
1270
1917
|
},
|
|
1271
1918
|
name: this.designViewModelField.name,
|
|
1272
1919
|
require: this.designViewModelField.require,
|
|
1273
1920
|
readonly: this.designViewModelField.readonly
|
|
1274
|
-
}, !1),
|
|
1275
|
-
id:
|
|
1276
|
-
appearance:
|
|
1277
|
-
size:
|
|
1278
|
-
label:
|
|
1279
|
-
binding:
|
|
1280
|
-
visible:
|
|
1281
|
-
}), Object.assign(
|
|
1282
|
-
isTextArea:
|
|
1283
|
-
placeholder: (
|
|
1284
|
-
holdPlace: (
|
|
1285
|
-
readonly: (
|
|
1286
|
-
require: (
|
|
1287
|
-
}),
|
|
1288
|
-
(
|
|
1289
|
-
),
|
|
1290
|
-
}
|
|
1291
|
-
getComponentConfig(
|
|
1292
|
-
const
|
|
1921
|
+
}, !1), i = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), i || (i = De("form-group") || {}, i.editor = De(a) || {}, delete i.editor.id, delete i.editor.binding, delete i.editor.appearance), Object.assign(i, {
|
|
1922
|
+
id: s.id,
|
|
1923
|
+
appearance: s.appearance,
|
|
1924
|
+
size: s.size,
|
|
1925
|
+
label: s.label,
|
|
1926
|
+
binding: s.binding,
|
|
1927
|
+
visible: s.visible
|
|
1928
|
+
}), Object.assign(i.editor, {
|
|
1929
|
+
isTextArea: i.isTextArea && s.isTextArea,
|
|
1930
|
+
placeholder: (d = s.editor) == null ? void 0 : d.placeholder,
|
|
1931
|
+
holdPlace: (c = s.editor) == null ? void 0 : c.holdPlace,
|
|
1932
|
+
readonly: (f = s.editor) == null ? void 0 : f.readonly,
|
|
1933
|
+
require: (p = s.editor) == null ? void 0 : p.require
|
|
1934
|
+
}), l.contents.splice(u, 1), l.contents.splice(u, 0, i), r.schema = Object.assign(s, i), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
1935
|
+
(y) => y.classList.remove("dgComponentSelected")
|
|
1936
|
+
), Ao.value++;
|
|
1937
|
+
}
|
|
1938
|
+
getComponentConfig(t, o = {}, r = {}) {
|
|
1939
|
+
const a = Object.assign({
|
|
1293
1940
|
description: "编辑器",
|
|
1294
1941
|
title: "编辑器",
|
|
1295
1942
|
type: "input-group",
|
|
1296
1943
|
$converter: "/converter/property-editor.converter"
|
|
1297
|
-
},
|
|
1944
|
+
}, o), l = Object.assign({
|
|
1298
1945
|
readonly: {
|
|
1299
1946
|
description: "",
|
|
1300
1947
|
title: "只读",
|
|
@@ -1316,10 +1963,58 @@ class Ve extends Jn {
|
|
|
1316
1963
|
type: "string"
|
|
1317
1964
|
}
|
|
1318
1965
|
}, r);
|
|
1319
|
-
return { ...
|
|
1966
|
+
return { ...a, properties: { ...l } };
|
|
1967
|
+
}
|
|
1968
|
+
/**
|
|
1969
|
+
* 修改某一输入控件的样式后更新Form的统一布局配置
|
|
1970
|
+
* @param controlClass 控件样式
|
|
1971
|
+
* @param controlId 控件Id
|
|
1972
|
+
* @param componentId 控件所在组件id
|
|
1973
|
+
*/
|
|
1974
|
+
updateUnifiedLayoutAfterControlChanged(t, o, r) {
|
|
1975
|
+
const a = t.split(" ");
|
|
1976
|
+
let l = a.find((c) => /^col-([1-9]|10|11|12)$/.test(c)), u = a.find((c) => /^col-md-([1-9]|10|11|12)$/.test(c)), s = a.find((c) => /^col-xl-([1-9]|10|11|12)$/.test(c)), i = a.find((c) => /^col-el-([1-9]|10|11|12)$/.test(c));
|
|
1977
|
+
l = l || "col-12", u = u || "col-md-" + l.replace("col-", ""), s = s || "col-xl-" + u.replace("col-md-", ""), i = i || "col-el-" + s.replace("col-xl-", "");
|
|
1978
|
+
const d = {
|
|
1979
|
+
id: o,
|
|
1980
|
+
columnInSM: parseInt(l.replace("col-", ""), 10),
|
|
1981
|
+
columnInMD: parseInt(u.replace("col-md-", ""), 10),
|
|
1982
|
+
columnInLG: parseInt(s.replace("col-xl-", ""), 10),
|
|
1983
|
+
columnInEL: parseInt(i.replace("col-el-", ""), 10)
|
|
1984
|
+
};
|
|
1985
|
+
this.updateUnifiedLayoutAfterResponseLayoutChanged(r, d);
|
|
1986
|
+
}
|
|
1987
|
+
/**
|
|
1988
|
+
* 修改控件布局配置后更新Form统一布局配置
|
|
1989
|
+
* @param componentId 组件Id
|
|
1990
|
+
* @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
|
|
1991
|
+
*/
|
|
1992
|
+
updateUnifiedLayoutAfterResponseLayoutChanged(t, o) {
|
|
1993
|
+
const { formNode: r } = this.responseLayoutEditorFunction.checkCanFindFormNode(t);
|
|
1994
|
+
if (!r || !r.unifiedLayout)
|
|
1995
|
+
return;
|
|
1996
|
+
const a = [];
|
|
1997
|
+
if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(r, a, 1), o) {
|
|
1998
|
+
const y = a.find((m) => m.id === o.id);
|
|
1999
|
+
Object.assign(y || {}, o);
|
|
2000
|
+
}
|
|
2001
|
+
const l = a.map((y) => y.columnInSM), u = a.map((y) => y.columnInMD), s = a.map((y) => y.columnInLG), i = a.map((y) => y.columnInEL), d = this.checkIsUniqueColumn(l) ? l[0] : null, c = this.checkIsUniqueColumn(u) ? u[0] : null, f = this.checkIsUniqueColumn(s) ? s[0] : null, p = this.checkIsUniqueColumn(i) ? i[0] : null;
|
|
2002
|
+
Object.assign(r.unifiedLayout, {
|
|
2003
|
+
uniqueColClassInSM: d,
|
|
2004
|
+
uniqueColClassInMD: c,
|
|
2005
|
+
uniqueColClassInLG: f,
|
|
2006
|
+
uniqueColClassInEL: p
|
|
2007
|
+
});
|
|
2008
|
+
}
|
|
2009
|
+
/**
|
|
2010
|
+
* 校验宽度样式值是否一致
|
|
2011
|
+
*/
|
|
2012
|
+
checkIsUniqueColumn(t) {
|
|
2013
|
+
const o = new Set(t);
|
|
2014
|
+
return Array.from(o).length === 1;
|
|
1320
2015
|
}
|
|
1321
2016
|
}
|
|
1322
|
-
class
|
|
2017
|
+
class Po extends Be {
|
|
1323
2018
|
constructor(n, t) {
|
|
1324
2019
|
super(n, t);
|
|
1325
2020
|
}
|
|
@@ -1343,24 +2038,24 @@ class Xn extends Ve {
|
|
|
1343
2038
|
});
|
|
1344
2039
|
}
|
|
1345
2040
|
}
|
|
1346
|
-
function
|
|
2041
|
+
function Io(e, n) {
|
|
1347
2042
|
const {
|
|
1348
2043
|
canAccepts: t,
|
|
1349
|
-
checkCanDeleteComponent:
|
|
1350
|
-
checkCanMoveComponent:
|
|
2044
|
+
checkCanDeleteComponent: o,
|
|
2045
|
+
checkCanMoveComponent: r,
|
|
1351
2046
|
hideNestedPaddingInDesginerView: a,
|
|
1352
2047
|
onAcceptMovedChildElement: l,
|
|
1353
2048
|
resolveComponentContext: u,
|
|
1354
2049
|
triggerBelongedComponentToMoveWhenMoved: s,
|
|
1355
2050
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
1356
|
-
} =
|
|
2051
|
+
} = Ve(e), d = e.schema;
|
|
1357
2052
|
function c(f, p) {
|
|
1358
|
-
return new
|
|
2053
|
+
return new Po(f, n).getPropertyConfig(d, p);
|
|
1359
2054
|
}
|
|
1360
2055
|
return {
|
|
1361
2056
|
canAccepts: t,
|
|
1362
|
-
checkCanDeleteComponent:
|
|
1363
|
-
checkCanMoveComponent:
|
|
2057
|
+
checkCanDeleteComponent: o,
|
|
2058
|
+
checkCanMoveComponent: r,
|
|
1364
2059
|
hideNestedPaddingInDesginerView: a,
|
|
1365
2060
|
onAcceptMovedChildElement: l,
|
|
1366
2061
|
resolveComponentContext: u,
|
|
@@ -1369,15 +2064,15 @@ function Kn(e, n) {
|
|
|
1369
2064
|
getPropsConfig: c
|
|
1370
2065
|
};
|
|
1371
2066
|
}
|
|
1372
|
-
const
|
|
2067
|
+
const Oo = /* @__PURE__ */ G({
|
|
1373
2068
|
name: "FComboListDesign",
|
|
1374
|
-
props:
|
|
2069
|
+
props: xe,
|
|
1375
2070
|
emits: ["clear", "update:modelValue", "change"],
|
|
1376
2071
|
setup(e, n) {
|
|
1377
|
-
const t =
|
|
1378
|
-
return
|
|
2072
|
+
const t = v(), o = z("designer-host-service"), r = z("design-item-context"), a = Io(r, o), l = We(t, r, a);
|
|
2073
|
+
return q(() => {
|
|
1379
2074
|
t.value.componentInstance = l;
|
|
1380
|
-
}), n.expose(l.value), () =>
|
|
2075
|
+
}), n.expose(l.value), () => g(Eo, {
|
|
1381
2076
|
ref: t,
|
|
1382
2077
|
buttonContent: e.dropDownIcon,
|
|
1383
2078
|
readonly: !0,
|
|
@@ -1393,20 +2088,20 @@ const er = /* @__PURE__ */ W({
|
|
|
1393
2088
|
t.component(n.name, e);
|
|
1394
2089
|
}, e;
|
|
1395
2090
|
};
|
|
1396
|
-
|
|
1397
|
-
e["combo-list"] =
|
|
2091
|
+
H.register = (e, n, t, o) => {
|
|
2092
|
+
e["combo-list"] = H, n["combo-list"] = Je;
|
|
1398
2093
|
};
|
|
1399
|
-
|
|
1400
|
-
e["combo-list"] =
|
|
2094
|
+
H.registerDesigner = (e, n, t) => {
|
|
2095
|
+
e["combo-list"] = Oo, n["combo-list"] = Je;
|
|
1401
2096
|
};
|
|
1402
|
-
Te(
|
|
1403
|
-
const
|
|
1404
|
-
["appearance",
|
|
2097
|
+
Te(H);
|
|
2098
|
+
const No = /* @__PURE__ */ new Map([
|
|
2099
|
+
["appearance", pe]
|
|
1405
2100
|
]);
|
|
1406
|
-
function
|
|
2101
|
+
function jo(e, n, t) {
|
|
1407
2102
|
return n;
|
|
1408
2103
|
}
|
|
1409
|
-
const
|
|
2104
|
+
const Lo = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-design.gitee.io/input-group.schema.json", Do = "input-group", Ro = "A Farris Input Component", Uo = "object", _o = {
|
|
1410
2105
|
id: {
|
|
1411
2106
|
description: "The unique identifier for a Input Group",
|
|
1412
2107
|
type: "string"
|
|
@@ -1608,18 +2303,19 @@ const rr = "https://json-schema.org/draft/2020-12/schema", or = "https://farris-
|
|
|
1608
2303
|
type: "string",
|
|
1609
2304
|
default: ""
|
|
1610
2305
|
}
|
|
1611
|
-
},
|
|
2306
|
+
}, Go = [
|
|
1612
2307
|
"id",
|
|
1613
2308
|
"type"
|
|
1614
|
-
],
|
|
1615
|
-
$schema:
|
|
1616
|
-
$id:
|
|
1617
|
-
title:
|
|
1618
|
-
description:
|
|
1619
|
-
type:
|
|
1620
|
-
properties:
|
|
1621
|
-
required:
|
|
1622
|
-
},
|
|
2309
|
+
], qo = {
|
|
2310
|
+
$schema: Lo,
|
|
2311
|
+
$id: $o,
|
|
2312
|
+
title: Do,
|
|
2313
|
+
description: Ro,
|
|
2314
|
+
type: Uo,
|
|
2315
|
+
properties: _o,
|
|
2316
|
+
required: Go
|
|
2317
|
+
}, Fe = {
|
|
2318
|
+
id: { Type: String, default: "" },
|
|
1623
2319
|
/** 是否自动完成 */
|
|
1624
2320
|
autocomplete: { Type: String, default: "off" },
|
|
1625
2321
|
/** 自定义CLASS */
|
|
@@ -1685,69 +2381,69 @@ const rr = "https://json-schema.org/draft/2020-12/schema", or = "https://farris-
|
|
|
1685
2381
|
* - input: 输入时更新
|
|
1686
2382
|
*/
|
|
1687
2383
|
updateOn: { type: String, default: "blur" }
|
|
1688
|
-
},
|
|
1689
|
-
function
|
|
1690
|
-
const
|
|
2384
|
+
}, Ke = ne(Fe, qo, No, jo);
|
|
2385
|
+
function Ho(e, n, t, o) {
|
|
2386
|
+
const r = v(e.disabled), a = v(!1), l = v("text"), u = v(e.showBorder), s = v(e.textAlign), i = v(e.updateOn), d = w(() => e.editable || !e.readonly), c = w(() => e.editable && !e.disabled && !e.readonly), f = w(() => !e.disabled && a.value), p = w(() => t.value === "" || t.value === null || t.value === void 0), y = w(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), m = w(() => e.readonly || !e.editable), b = w(() => e.enableTitle ? t.value : ""), S = w(() => ({
|
|
1691
2387
|
"form-control": !0,
|
|
1692
2388
|
"f-utils-fill": !0,
|
|
1693
2389
|
"text-left": s.value === "left",
|
|
1694
2390
|
"text-center": s.value === "center",
|
|
1695
2391
|
"text-right": s.value === "right"
|
|
1696
|
-
})), E =
|
|
1697
|
-
const
|
|
2392
|
+
})), E = w(() => {
|
|
2393
|
+
const k = {
|
|
1698
2394
|
"f-cmp-inputgroup": !0,
|
|
1699
2395
|
"input-group": !0,
|
|
1700
|
-
"f-state-disable":
|
|
2396
|
+
"f-state-disable": r.value,
|
|
1701
2397
|
"f-state-editable": c.value,
|
|
1702
2398
|
"f-state-readonly": m.value,
|
|
1703
2399
|
"f-state-focus": f.value
|
|
1704
2400
|
};
|
|
1705
|
-
return (e.customClass || "").split(" ").reduce((re,
|
|
1706
|
-
}),
|
|
1707
|
-
function
|
|
1708
|
-
t.value =
|
|
2401
|
+
return (e.customClass || "").split(" ").reduce((re, fe) => (re[fe] = !0, re), k), k;
|
|
2402
|
+
}), M = w(() => u.value ? "" : "border-width : 0 ");
|
|
2403
|
+
function x(k, L = !0) {
|
|
2404
|
+
t.value = k, o.value !== k && (o.value = k), L && n.emit("change", k), n.emit("update:modelValue", k), n.emit("update:value", k);
|
|
1709
2405
|
}
|
|
1710
2406
|
O(
|
|
1711
2407
|
() => e.modelValue,
|
|
1712
|
-
(
|
|
1713
|
-
|
|
2408
|
+
(k, L) => {
|
|
2409
|
+
k !== L && (t.value = k, o.value = k);
|
|
1714
2410
|
}
|
|
1715
|
-
), O(() => e.disabled, (
|
|
1716
|
-
|
|
2411
|
+
), O(() => e.disabled, (k, L) => {
|
|
2412
|
+
k !== L && (r.value = k);
|
|
1717
2413
|
});
|
|
1718
|
-
function T(
|
|
1719
|
-
return a.value = !1, n.emit("blur",
|
|
2414
|
+
function T(k) {
|
|
2415
|
+
return a.value = !1, n.emit("blur", k), k.stopPropagation(), !1;
|
|
1720
2416
|
}
|
|
1721
|
-
function
|
|
1722
|
-
n.emit("click",
|
|
2417
|
+
function C(k) {
|
|
2418
|
+
n.emit("click", k);
|
|
1723
2419
|
}
|
|
1724
|
-
function F(
|
|
1725
|
-
e.disabled || (u.value && (a.value = !0), d.value && n.emit("focus",
|
|
2420
|
+
function F(k) {
|
|
2421
|
+
e.disabled || (u.value && (a.value = !0), d.value && n.emit("focus", k));
|
|
1726
2422
|
}
|
|
1727
|
-
function A(
|
|
1728
|
-
n.emit("input",
|
|
1729
|
-
const
|
|
1730
|
-
|
|
2423
|
+
function A(k) {
|
|
2424
|
+
n.emit("input", k.target.value);
|
|
2425
|
+
const L = k.target.value;
|
|
2426
|
+
o.value = L, i.value === "change" && (n.emit("update:modelValue", L), n.emit("update:value", L));
|
|
1731
2427
|
}
|
|
1732
|
-
function
|
|
1733
|
-
n.emit("keydown",
|
|
2428
|
+
function I(k) {
|
|
2429
|
+
n.emit("keydown", k);
|
|
1734
2430
|
}
|
|
1735
|
-
function
|
|
1736
|
-
n.emit("keyup",
|
|
2431
|
+
function W(k) {
|
|
2432
|
+
n.emit("keyup", k);
|
|
1737
2433
|
}
|
|
1738
|
-
function
|
|
1739
|
-
|
|
2434
|
+
function U(k) {
|
|
2435
|
+
k.target.tagName !== "INPUT" && k.preventDefault(), k.stopPropagation();
|
|
1740
2436
|
}
|
|
1741
|
-
function K(
|
|
2437
|
+
function K(k) {
|
|
1742
2438
|
if (i.value === "blur") {
|
|
1743
|
-
const
|
|
1744
|
-
|
|
2439
|
+
const L = k.target.value;
|
|
2440
|
+
k.stopPropagation(), x(L);
|
|
1745
2441
|
}
|
|
1746
2442
|
}
|
|
1747
2443
|
return {
|
|
1748
|
-
changeTextBoxValue:
|
|
1749
|
-
disabled:
|
|
1750
|
-
displayText:
|
|
2444
|
+
changeTextBoxValue: x,
|
|
2445
|
+
disabled: r,
|
|
2446
|
+
displayText: o,
|
|
1751
2447
|
editable: c,
|
|
1752
2448
|
hasFocused: f,
|
|
1753
2449
|
inputGroupClass: E,
|
|
@@ -1756,40 +2452,40 @@ function dr(e, n, t, r) {
|
|
|
1756
2452
|
modelValue: t,
|
|
1757
2453
|
readonly: m,
|
|
1758
2454
|
onBlur: T,
|
|
1759
|
-
onClick:
|
|
2455
|
+
onClick: C,
|
|
1760
2456
|
onFocus: F,
|
|
1761
2457
|
onInput: A,
|
|
1762
|
-
onKeydown:
|
|
1763
|
-
onKeyup:
|
|
1764
|
-
onMousedown:
|
|
2458
|
+
onKeydown: I,
|
|
2459
|
+
onKeyup: W,
|
|
2460
|
+
onMousedown: U,
|
|
1765
2461
|
onTextBoxValueChange: K,
|
|
1766
|
-
placeholder:
|
|
2462
|
+
placeholder: y,
|
|
1767
2463
|
textBoxClass: S,
|
|
1768
2464
|
textBoxTitle: b,
|
|
1769
|
-
inputGroupStyle:
|
|
2465
|
+
inputGroupStyle: M
|
|
1770
2466
|
};
|
|
1771
2467
|
}
|
|
1772
|
-
function
|
|
1773
|
-
const
|
|
1774
|
-
|
|
1775
|
-
const i =
|
|
2468
|
+
function Wo(e, n, t, o) {
|
|
2469
|
+
const r = v(e.disabled), a = v(!1), l = v("text"), u = v(e.showBorder), s = v(e.textAlign);
|
|
2470
|
+
w(() => e.editable || !e.readonly);
|
|
2471
|
+
const i = w(() => e.editable && !e.disabled && !e.readonly), d = w(() => !e.disabled && a.value), c = w(() => t.value === "" || t.value === null || t.value === void 0), f = w(() => e.placeholder), p = w(() => e.readonly || !e.editable), y = w(() => e.enableTitle ? t.value : ""), m = w(() => ({
|
|
1776
2472
|
"form-control": !0,
|
|
1777
2473
|
// 'f-utils-fill': true,
|
|
1778
2474
|
"text-left": s.value === "left",
|
|
1779
2475
|
"text-center": s.value === "center",
|
|
1780
2476
|
"text-right": s.value === "right"
|
|
1781
|
-
})), b =
|
|
2477
|
+
})), b = w(() => ({
|
|
1782
2478
|
"f-cmp-inputgroup": !0,
|
|
1783
2479
|
"input-group": !0,
|
|
1784
2480
|
"f-state-disable": !0,
|
|
1785
2481
|
"f-state-editable": !1,
|
|
1786
2482
|
"f-state-readonly": !0
|
|
1787
2483
|
// 'f-state-focus': hasFocused.value
|
|
1788
|
-
})), S =
|
|
2484
|
+
})), S = w(() => u.value ? "" : "border-width : 0 ");
|
|
1789
2485
|
return {
|
|
1790
2486
|
// changeTextBoxValue,
|
|
1791
|
-
disabled:
|
|
1792
|
-
displayText:
|
|
2487
|
+
disabled: r,
|
|
2488
|
+
displayText: o,
|
|
1793
2489
|
editable: i,
|
|
1794
2490
|
hasFocused: d,
|
|
1795
2491
|
inputGroupClass: b,
|
|
@@ -1807,86 +2503,86 @@ function pr(e, n, t, r) {
|
|
|
1807
2503
|
// onTextBoxValueChange,
|
|
1808
2504
|
placeholder: f,
|
|
1809
2505
|
textBoxClass: m,
|
|
1810
|
-
textBoxTitle:
|
|
2506
|
+
textBoxTitle: y,
|
|
1811
2507
|
inputGroupStyle: S
|
|
1812
2508
|
};
|
|
1813
2509
|
}
|
|
1814
|
-
function
|
|
1815
|
-
const
|
|
2510
|
+
function et(e, n, t) {
|
|
2511
|
+
const o = v(!1), r = w(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: u, isEmpty: s } = t;
|
|
1816
2512
|
function i(m) {
|
|
1817
|
-
|
|
2513
|
+
o.value = m;
|
|
1818
2514
|
}
|
|
1819
2515
|
O(l, () => {
|
|
1820
2516
|
u != null && u.value ? i(!!(l != null && l.value)) : i(!1);
|
|
1821
2517
|
});
|
|
1822
|
-
const d =
|
|
2518
|
+
const d = w(() => ({
|
|
1823
2519
|
"input-group-text": !0,
|
|
1824
2520
|
"input-group-clear": !0
|
|
1825
|
-
})), c =
|
|
2521
|
+
})), c = w(() => ({
|
|
1826
2522
|
width: "24px",
|
|
1827
|
-
display:
|
|
2523
|
+
display: o.value ? "flex" : "none"
|
|
1828
2524
|
}));
|
|
1829
2525
|
function f(m) {
|
|
1830
|
-
m.stopPropagation(),
|
|
2526
|
+
m.stopPropagation(), r.value && (a("", !0), i(!o.value), n.emit("clear"));
|
|
1831
2527
|
}
|
|
1832
2528
|
function p(m) {
|
|
1833
|
-
|
|
2529
|
+
r.value && !s.value && i(!0);
|
|
1834
2530
|
}
|
|
1835
|
-
function
|
|
1836
|
-
|
|
2531
|
+
function y(m) {
|
|
2532
|
+
r.value && i(!1);
|
|
1837
2533
|
}
|
|
1838
|
-
return { clearButtonClass: d, clearButtonStyle: c, hasShownClearButton:
|
|
2534
|
+
return { clearButtonClass: d, clearButtonStyle: c, hasShownClearButton: o, onClearValue: f, onMouseEnter: p, onMouseLeave: y, shouldShowClearButton: r };
|
|
1839
2535
|
}
|
|
1840
|
-
const
|
|
1841
|
-
function
|
|
2536
|
+
const zo = ["moz", "ms", "webkit"];
|
|
2537
|
+
function Yo() {
|
|
1842
2538
|
let e = 0;
|
|
1843
2539
|
return (n) => {
|
|
1844
|
-
const t = (/* @__PURE__ */ new Date()).getTime(),
|
|
1845
|
-
n(t +
|
|
1846
|
-
},
|
|
1847
|
-
return e = t +
|
|
2540
|
+
const t = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (t - e)), r = setTimeout(() => {
|
|
2541
|
+
n(t + o);
|
|
2542
|
+
}, o);
|
|
2543
|
+
return e = t + o, r;
|
|
1848
2544
|
};
|
|
1849
2545
|
}
|
|
1850
|
-
function
|
|
2546
|
+
function Zo() {
|
|
1851
2547
|
if (typeof window > "u")
|
|
1852
2548
|
return () => 0;
|
|
1853
2549
|
if (window.requestAnimationFrame)
|
|
1854
2550
|
return window.requestAnimationFrame.bind(window);
|
|
1855
|
-
const e =
|
|
1856
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
2551
|
+
const e = zo.filter((n) => `${n}RequestAnimationFrame` in window)[0];
|
|
2552
|
+
return e ? window[`${e}RequestAnimationFrame`] : Yo();
|
|
1857
2553
|
}
|
|
1858
|
-
|
|
1859
|
-
function
|
|
1860
|
-
const t =
|
|
1861
|
-
return { appendedButtonClass:
|
|
2554
|
+
Zo();
|
|
2555
|
+
function tt(e, n) {
|
|
2556
|
+
const t = v(e.groupText), o = w(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = w(() => e.enableClear || !!e.groupText);
|
|
2557
|
+
return { appendedButtonClass: w(() => ({
|
|
1862
2558
|
"input-group-append": !0,
|
|
1863
|
-
"append-force-show":
|
|
1864
|
-
})), appendedContent: t, shouldShowAppendedButton:
|
|
2559
|
+
"append-force-show": o.value
|
|
2560
|
+
})), appendedContent: t, shouldShowAppendedButton: r };
|
|
1865
2561
|
}
|
|
1866
|
-
function
|
|
1867
|
-
const { appendedContent:
|
|
2562
|
+
function nt(e, n, t, o) {
|
|
2563
|
+
const { appendedContent: r } = o, a = v(e.enableViewPassword), l = w(() => 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 = v(!1);
|
|
1868
2564
|
O(() => [e.readonly, e.disabled], ([f, p]) => {
|
|
1869
|
-
l.value && (t.value = f || p ? "password" : t.value,
|
|
2565
|
+
l.value && (t.value = f || p ? "password" : t.value, r.value = f || p ? s : r.value);
|
|
1870
2566
|
});
|
|
1871
2567
|
function d() {
|
|
1872
|
-
return i.value = !i.value, t.value = i.value ? "text" : "password",
|
|
2568
|
+
return i.value = !i.value, t.value = i.value ? "text" : "password", r.value = i.value ? u : s, !1;
|
|
1873
2569
|
}
|
|
1874
2570
|
function c() {
|
|
1875
|
-
t.value = l.value ? "password" : "text",
|
|
2571
|
+
t.value = l.value ? "password" : "text", r.value = l.value ? a.value ? s : "" : r.value;
|
|
1876
2572
|
}
|
|
1877
2573
|
return c(), { isPassword: l, onClickAppendedButton: d };
|
|
1878
2574
|
}
|
|
1879
|
-
function
|
|
1880
|
-
const
|
|
1881
|
-
onBlurTextBox:
|
|
2575
|
+
function ot(e, n, t) {
|
|
2576
|
+
const o = v(), {
|
|
2577
|
+
onBlurTextBox: r,
|
|
1882
2578
|
onFocusTextBox: a,
|
|
1883
2579
|
onInput: l,
|
|
1884
2580
|
onKeyDown: u,
|
|
1885
2581
|
textBoxValue: s
|
|
1886
|
-
} = t, i =
|
|
2582
|
+
} = t, i = w(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = w(() => ({
|
|
1887
2583
|
"form-control": !0,
|
|
1888
2584
|
"f-utils-fill": !0
|
|
1889
|
-
})), c =
|
|
2585
|
+
})), c = w(() => ({
|
|
1890
2586
|
"text-align": e.textAlign
|
|
1891
2587
|
}));
|
|
1892
2588
|
function f(m) {
|
|
@@ -1895,13 +2591,13 @@ function Ke(e, n, t) {
|
|
|
1895
2591
|
function p() {
|
|
1896
2592
|
e.selectOnCreated, e.focusOnCreated;
|
|
1897
2593
|
}
|
|
1898
|
-
async function
|
|
1899
|
-
a(m), await
|
|
2594
|
+
async function y(m) {
|
|
2595
|
+
a(m), await le, p();
|
|
1900
2596
|
}
|
|
1901
|
-
return
|
|
1902
|
-
await
|
|
1903
|
-
}), () =>
|
|
1904
|
-
ref:
|
|
2597
|
+
return q(async () => {
|
|
2598
|
+
await le, p();
|
|
2599
|
+
}), () => g("input", {
|
|
2600
|
+
ref: o,
|
|
1905
2601
|
class: d.value,
|
|
1906
2602
|
style: c.value,
|
|
1907
2603
|
type: "text",
|
|
@@ -1909,102 +2605,102 @@ function Ke(e, n, t) {
|
|
|
1909
2605
|
disabled: e.disabled,
|
|
1910
2606
|
readonly: e.readonly || !e.editable,
|
|
1911
2607
|
placeholder: i.value,
|
|
1912
|
-
onBlur:
|
|
2608
|
+
onBlur: r,
|
|
1913
2609
|
onChange: f,
|
|
1914
|
-
onFocus:
|
|
2610
|
+
onFocus: y,
|
|
1915
2611
|
onInput: l,
|
|
1916
2612
|
onKeydown: u
|
|
1917
2613
|
}, null);
|
|
1918
2614
|
}
|
|
1919
|
-
function
|
|
2615
|
+
function ke(e, n, t) {
|
|
1920
2616
|
const {
|
|
1921
|
-
canDownward:
|
|
1922
|
-
canUpward:
|
|
2617
|
+
canDownward: o,
|
|
2618
|
+
canUpward: r,
|
|
1923
2619
|
onClickDownButton: a,
|
|
1924
2620
|
onClickUpButton: l
|
|
1925
|
-
} = t, u =
|
|
2621
|
+
} = t, u = w(() => ({
|
|
1926
2622
|
"input-group-append": !0,
|
|
1927
2623
|
"btn-group": !0,
|
|
1928
2624
|
"btn-group-number": !0
|
|
1929
|
-
})), s =
|
|
2625
|
+
})), s = w(() => ({
|
|
1930
2626
|
btn: !0,
|
|
1931
2627
|
"btn-secondary": !0,
|
|
1932
2628
|
"btn-number-flag": !0
|
|
1933
|
-
})), i =
|
|
1934
|
-
cursor: o() ? "pointer" : "not-allowed",
|
|
1935
|
-
"margin-left": 0
|
|
1936
|
-
})), d = x(() => ({
|
|
2629
|
+
})), i = w(() => ({
|
|
1937
2630
|
cursor: r() ? "pointer" : "not-allowed",
|
|
1938
2631
|
"margin-left": 0
|
|
2632
|
+
})), d = w(() => ({
|
|
2633
|
+
cursor: o() ? "pointer" : "not-allowed",
|
|
2634
|
+
"margin-left": 0
|
|
1939
2635
|
}));
|
|
1940
|
-
return () =>
|
|
2636
|
+
return () => g("div", {
|
|
1941
2637
|
class: u.value
|
|
1942
|
-
}, [
|
|
2638
|
+
}, [g("button", {
|
|
1943
2639
|
title: "upButton",
|
|
1944
2640
|
class: s.value,
|
|
1945
2641
|
style: i.value,
|
|
1946
2642
|
onClick: l,
|
|
1947
|
-
disabled: !
|
|
1948
|
-
}, [
|
|
2643
|
+
disabled: !r()
|
|
2644
|
+
}, [g("span", {
|
|
1949
2645
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
1950
|
-
}, null)]),
|
|
2646
|
+
}, null)]), g("button", {
|
|
1951
2647
|
title: "downButton",
|
|
1952
2648
|
class: s.value,
|
|
1953
2649
|
style: d.value,
|
|
1954
2650
|
onClick: a,
|
|
1955
|
-
disabled: !
|
|
1956
|
-
}, [
|
|
2651
|
+
disabled: !o()
|
|
2652
|
+
}, [g("span", {
|
|
1957
2653
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1958
2654
|
}, null)])]);
|
|
1959
2655
|
}
|
|
1960
|
-
function
|
|
1961
|
-
const t =
|
|
2656
|
+
function Jo(e, n) {
|
|
2657
|
+
const t = mn(e, n), o = hn(e, n, t), r = bn(e, n, o, t), a = gn(e, n, o, t, r), l = ke(e, n, r), {
|
|
1962
2658
|
displayValue: u,
|
|
1963
2659
|
modelValue: s,
|
|
1964
2660
|
getRealValue: i
|
|
1965
|
-
} = t, d =
|
|
2661
|
+
} = t, d = ot(e, n, a), {
|
|
1966
2662
|
format: c
|
|
1967
|
-
} =
|
|
2663
|
+
} = o, {
|
|
1968
2664
|
isFocus: f
|
|
1969
|
-
} = a, p =
|
|
1970
|
-
return
|
|
1971
|
-
const
|
|
1972
|
-
u.value = c(
|
|
1973
|
-
}), O(() => [e.value], ([
|
|
1974
|
-
const m = i(
|
|
2665
|
+
} = a, p = w(() => !e.disabled && !e.readonly);
|
|
2666
|
+
return q(() => {
|
|
2667
|
+
const y = i(e.modelValue);
|
|
2668
|
+
u.value = c(y);
|
|
2669
|
+
}), O(() => [e.value], ([y]) => {
|
|
2670
|
+
const m = i(y);
|
|
1975
2671
|
s.value = m, u.value = c(m);
|
|
1976
|
-
}), O(() => [e.modelValue], ([
|
|
1977
|
-
|
|
2672
|
+
}), O(() => [e.modelValue], ([y]) => {
|
|
2673
|
+
y !== s.value && (s.value = y, !f.value && (u.value = c(i(y))));
|
|
1978
2674
|
}), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1979
2675
|
u.value = c(s.value);
|
|
1980
|
-
}), () =>
|
|
2676
|
+
}), () => g("div", {
|
|
1981
2677
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1982
2678
|
}, [d(), p.value && l()]);
|
|
1983
2679
|
}
|
|
1984
|
-
function
|
|
1985
|
-
const
|
|
2680
|
+
function Xo(e, n, t, o) {
|
|
2681
|
+
const r = v(), a = v(e.autocomplete), l = v(e.enableTitle), {
|
|
1986
2682
|
isPassword: u
|
|
1987
|
-
} = t, s =
|
|
2683
|
+
} = t, s = v(e.minLength), i = v(e.maxLength), d = v(e.tabIndex), {
|
|
1988
2684
|
disabled: c,
|
|
1989
2685
|
displayText: f,
|
|
1990
2686
|
inputType: p,
|
|
1991
|
-
onBlur:
|
|
2687
|
+
onBlur: y,
|
|
1992
2688
|
onFocus: m,
|
|
1993
2689
|
onInput: b,
|
|
1994
2690
|
onClick: S,
|
|
1995
2691
|
onKeydown: E,
|
|
1996
|
-
onKeyup:
|
|
1997
|
-
onMousedown:
|
|
2692
|
+
onKeyup: M,
|
|
2693
|
+
onMousedown: x,
|
|
1998
2694
|
onTextBoxValueChange: T,
|
|
1999
|
-
readonly:
|
|
2695
|
+
readonly: C,
|
|
2000
2696
|
placeholder: F,
|
|
2001
2697
|
textBoxClass: A,
|
|
2002
|
-
textBoxTitle:
|
|
2003
|
-
} =
|
|
2004
|
-
return
|
|
2698
|
+
textBoxTitle: I
|
|
2699
|
+
} = o;
|
|
2700
|
+
return q(() => {
|
|
2005
2701
|
e.selectOnCreated, e.focusOnCreated;
|
|
2006
|
-
}), () =>
|
|
2007
|
-
ref:
|
|
2702
|
+
}), () => g("input", {
|
|
2703
|
+
ref: r,
|
|
2008
2704
|
name: "input-group-value",
|
|
2009
2705
|
autocomplete: a.value,
|
|
2010
2706
|
class: A.value,
|
|
@@ -2012,54 +2708,54 @@ function hr(e, n, t, r) {
|
|
|
2012
2708
|
maxlength: i.value,
|
|
2013
2709
|
minlength: s.value,
|
|
2014
2710
|
placeholder: F.value,
|
|
2015
|
-
readonly:
|
|
2711
|
+
readonly: C == null ? void 0 : C.value,
|
|
2016
2712
|
tabindex: d.value,
|
|
2017
|
-
title: l.value && !u.value ?
|
|
2713
|
+
title: l.value && !u.value ? I.value : "",
|
|
2018
2714
|
type: p.value,
|
|
2019
2715
|
value: f == null ? void 0 : f.value,
|
|
2020
|
-
onBlur:
|
|
2716
|
+
onBlur: y,
|
|
2021
2717
|
onClick: S,
|
|
2022
2718
|
onChange: T,
|
|
2023
2719
|
onFocus: m,
|
|
2024
2720
|
onInput: b,
|
|
2025
2721
|
onKeydown: E,
|
|
2026
|
-
onKeyup:
|
|
2027
|
-
onMousedown:
|
|
2722
|
+
onKeyup: M,
|
|
2723
|
+
onMousedown: x
|
|
2028
2724
|
}, null);
|
|
2029
2725
|
}
|
|
2030
|
-
function
|
|
2031
|
-
const t =
|
|
2726
|
+
function Qo(e, n) {
|
|
2727
|
+
const t = w(() => e.useExtendInfo && !!e.extendInfo), o = cn({
|
|
2032
2728
|
content: e.extendInfo
|
|
2033
2729
|
});
|
|
2034
|
-
function
|
|
2730
|
+
function r() {
|
|
2035
2731
|
n.emit("updateExtendInfo");
|
|
2036
2732
|
}
|
|
2037
|
-
return () => t.value &&
|
|
2733
|
+
return () => t.value && he(g("span", {
|
|
2038
2734
|
class: "input-group-before-tips",
|
|
2039
|
-
onMouseenter:
|
|
2040
|
-
}, [
|
|
2735
|
+
onMouseenter: r
|
|
2736
|
+
}, [g("i", {
|
|
2041
2737
|
class: "f-icon f-icon-info-circle"
|
|
2042
|
-
}, null),
|
|
2738
|
+
}, null), g("b", {
|
|
2043
2739
|
class: "tips-arrow"
|
|
2044
|
-
}, null)]), [[
|
|
2740
|
+
}, null)]), [[dn("tooltip"), o]]);
|
|
2045
2741
|
}
|
|
2046
|
-
function
|
|
2742
|
+
function rt(e, n, t, o, r) {
|
|
2047
2743
|
const {
|
|
2048
2744
|
appendedButtonClass: a,
|
|
2049
2745
|
appendedContent: l
|
|
2050
|
-
} = t, u =
|
|
2746
|
+
} = t, u = w(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), s = w(() => l.value && !n.slots.groupTextTemplate), i = w(() => !!n.slots.groupTextTemplate), {
|
|
2051
2747
|
clearButtonClass: d,
|
|
2052
2748
|
clearButtonStyle: c,
|
|
2053
2749
|
onClearValue: f,
|
|
2054
2750
|
shouldShowClearButton: p
|
|
2055
|
-
} =
|
|
2056
|
-
function
|
|
2057
|
-
return
|
|
2751
|
+
} = o;
|
|
2752
|
+
function y() {
|
|
2753
|
+
return g("span", {
|
|
2058
2754
|
id: "clearIcon",
|
|
2059
2755
|
class: d.value,
|
|
2060
2756
|
style: c.value,
|
|
2061
2757
|
onClick: (F) => f(F)
|
|
2062
|
-
}, [
|
|
2758
|
+
}, [g("i", {
|
|
2063
2759
|
class: "f-icon modal_close"
|
|
2064
2760
|
}, null)]);
|
|
2065
2761
|
}
|
|
@@ -2074,9 +2770,9 @@ function et(e, n, t, r, o) {
|
|
|
2074
2770
|
originalEvent: F
|
|
2075
2771
|
}), F.stopPropagation();
|
|
2076
2772
|
}
|
|
2077
|
-
const E = e.type === "password" ?
|
|
2078
|
-
function
|
|
2079
|
-
return
|
|
2773
|
+
const E = e.type === "password" ? r.onClickAppendedButton : S;
|
|
2774
|
+
function M() {
|
|
2775
|
+
return g("span", {
|
|
2080
2776
|
class: "input-group-text",
|
|
2081
2777
|
onMouseenter: (F) => m(F),
|
|
2082
2778
|
onMouseleave: (F) => b(F),
|
|
@@ -2084,72 +2780,72 @@ function et(e, n, t, r, o) {
|
|
|
2084
2780
|
onClick: (F) => E(F)
|
|
2085
2781
|
}, null);
|
|
2086
2782
|
}
|
|
2087
|
-
function
|
|
2783
|
+
function x() {
|
|
2088
2784
|
return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
|
|
2089
2785
|
}
|
|
2090
2786
|
function T() {
|
|
2091
|
-
return s.value ?
|
|
2787
|
+
return s.value ? M : i.value ? x : "";
|
|
2092
2788
|
}
|
|
2093
|
-
const
|
|
2094
|
-
return () =>
|
|
2789
|
+
const C = T();
|
|
2790
|
+
return () => g("div", {
|
|
2095
2791
|
class: a.value
|
|
2096
|
-
}, [p.value &&
|
|
2792
|
+
}, [p.value && y(), C && C()]);
|
|
2097
2793
|
}
|
|
2098
|
-
const ee = /* @__PURE__ */
|
|
2794
|
+
const ee = /* @__PURE__ */ G({
|
|
2099
2795
|
name: "FInputGroup",
|
|
2100
|
-
props:
|
|
2796
|
+
props: Fe,
|
|
2101
2797
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2102
2798
|
setup(e, n) {
|
|
2103
|
-
const t =
|
|
2799
|
+
const t = v(e.modelValue), o = v(e.modelValue), r = Ho(e, n, t, o), {
|
|
2104
2800
|
inputGroupClass: a,
|
|
2105
2801
|
inputType: l,
|
|
2106
2802
|
inputGroupStyle: u
|
|
2107
|
-
} =
|
|
2803
|
+
} = r, s = tt(e), {
|
|
2108
2804
|
shouldShowAppendedButton: i
|
|
2109
|
-
} = s, d =
|
|
2805
|
+
} = s, d = et(e, n, r), {
|
|
2110
2806
|
onMouseEnter: c,
|
|
2111
2807
|
onMouseLeave: f
|
|
2112
|
-
} = d, p =
|
|
2113
|
-
O(() => [e.value], ([
|
|
2114
|
-
t.value =
|
|
2115
|
-
}), O(() => [e.modelValue], ([
|
|
2116
|
-
t.value =
|
|
2117
|
-
}),
|
|
2118
|
-
e.value && (t.value = e.value,
|
|
2808
|
+
} = d, p = nt(e, n, l, s), y = Jo(e, n), m = Xo(e, n, p, r), b = rt(e, n, s, d, p), S = Qo(e, n), E = w(() => e.type === "number");
|
|
2809
|
+
O(() => [e.value], ([x]) => {
|
|
2810
|
+
t.value = x, o.value = x;
|
|
2811
|
+
}), O(() => [e.modelValue], ([x]) => {
|
|
2812
|
+
t.value = x, o.value = x;
|
|
2813
|
+
}), q(() => {
|
|
2814
|
+
e.value && (t.value = e.value, o.value = e.value);
|
|
2119
2815
|
});
|
|
2120
|
-
const
|
|
2121
|
-
id:
|
|
2816
|
+
const M = () => g(be, null, [g("div", {
|
|
2817
|
+
id: e.id,
|
|
2122
2818
|
class: a.value,
|
|
2123
2819
|
style: u.value,
|
|
2124
2820
|
onMouseenter: c,
|
|
2125
2821
|
onMouseleave: f
|
|
2126
|
-
}, [E.value ?
|
|
2127
|
-
return () =>
|
|
2822
|
+
}, [E.value ? y() : g(be, null, [S(), m(), i.value && b()])])]);
|
|
2823
|
+
return () => M();
|
|
2128
2824
|
}
|
|
2129
2825
|
});
|
|
2130
|
-
class
|
|
2826
|
+
class Ko extends Be {
|
|
2131
2827
|
constructor(n, t) {
|
|
2132
2828
|
super(n, t);
|
|
2133
2829
|
}
|
|
2134
2830
|
}
|
|
2135
|
-
function
|
|
2831
|
+
function er(e, n) {
|
|
2136
2832
|
const {
|
|
2137
2833
|
canAccepts: t,
|
|
2138
|
-
checkCanDeleteComponent:
|
|
2139
|
-
checkCanMoveComponent:
|
|
2834
|
+
checkCanDeleteComponent: o,
|
|
2835
|
+
checkCanMoveComponent: r,
|
|
2140
2836
|
hideNestedPaddingInDesginerView: a,
|
|
2141
2837
|
onAcceptMovedChildElement: l,
|
|
2142
2838
|
resolveComponentContext: u,
|
|
2143
2839
|
triggerBelongedComponentToMoveWhenMoved: s,
|
|
2144
2840
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2145
|
-
} =
|
|
2841
|
+
} = Ve(e), d = e.schema;
|
|
2146
2842
|
function c(f, p) {
|
|
2147
|
-
return new
|
|
2843
|
+
return new Ko(f, n).getPropertyConfig(d, p);
|
|
2148
2844
|
}
|
|
2149
2845
|
return {
|
|
2150
2846
|
canAccepts: t,
|
|
2151
|
-
checkCanDeleteComponent:
|
|
2152
|
-
checkCanMoveComponent:
|
|
2847
|
+
checkCanDeleteComponent: o,
|
|
2848
|
+
checkCanMoveComponent: r,
|
|
2153
2849
|
hideNestedPaddingInDesginerView: a,
|
|
2154
2850
|
onAcceptMovedChildElement: l,
|
|
2155
2851
|
resolveComponentContext: u,
|
|
@@ -2158,13 +2854,13 @@ function Sr(e, n) {
|
|
|
2158
2854
|
getPropsConfig: c
|
|
2159
2855
|
};
|
|
2160
2856
|
}
|
|
2161
|
-
function
|
|
2857
|
+
function at(e, n, t) {
|
|
2162
2858
|
var T;
|
|
2163
|
-
function
|
|
2859
|
+
function o() {
|
|
2164
2860
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
2165
2861
|
}
|
|
2166
|
-
|
|
2167
|
-
const
|
|
2862
|
+
o();
|
|
2863
|
+
const r = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", l = v();
|
|
2168
2864
|
function u() {
|
|
2169
2865
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
2170
2866
|
}
|
|
@@ -2177,49 +2873,49 @@ function tt(e, n, t) {
|
|
|
2177
2873
|
function d() {
|
|
2178
2874
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
2179
2875
|
}
|
|
2180
|
-
function c(
|
|
2181
|
-
if (!
|
|
2876
|
+
function c(C) {
|
|
2877
|
+
if (!C || !C.value)
|
|
2182
2878
|
return null;
|
|
2183
|
-
if (
|
|
2184
|
-
return
|
|
2185
|
-
const F =
|
|
2879
|
+
if (C.value.schema && C.value.schema.type === "component")
|
|
2880
|
+
return C.value;
|
|
2881
|
+
const F = v(C == null ? void 0 : C.value.parent), A = c(F);
|
|
2186
2882
|
return A || null;
|
|
2187
2883
|
}
|
|
2188
|
-
function f(
|
|
2189
|
-
const { componentInstance: F, designerItemElementRef: A } =
|
|
2190
|
-
return !F || !F.value ? null : F.value.canMove ? A : f(
|
|
2884
|
+
function f(C = n) {
|
|
2885
|
+
const { componentInstance: F, designerItemElementRef: A } = C;
|
|
2886
|
+
return !F || !F.value ? null : F.value.canMove ? A : f(C.parent);
|
|
2191
2887
|
}
|
|
2192
|
-
function p(
|
|
2193
|
-
return !!t && t.canAccepts(
|
|
2888
|
+
function p(C) {
|
|
2889
|
+
return !!t && t.canAccepts(C);
|
|
2194
2890
|
}
|
|
2195
|
-
function
|
|
2891
|
+
function y() {
|
|
2196
2892
|
return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
|
|
2197
2893
|
}
|
|
2198
2894
|
function m() {
|
|
2199
2895
|
}
|
|
2200
|
-
function b(
|
|
2896
|
+
function b(C, F) {
|
|
2201
2897
|
F && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(F);
|
|
2202
2898
|
}
|
|
2203
|
-
function S(
|
|
2204
|
-
const { componentType: A } =
|
|
2205
|
-
let
|
|
2206
|
-
t && t.onResolveNewComponentSchema && (
|
|
2207
|
-
const
|
|
2208
|
-
return
|
|
2209
|
-
}
|
|
2210
|
-
function E(
|
|
2211
|
-
const A = String(
|
|
2212
|
-
|
|
2213
|
-
let
|
|
2214
|
-
t && t.onAcceptNewChildElement && (
|
|
2899
|
+
function S(C, F) {
|
|
2900
|
+
const { componentType: A } = C;
|
|
2901
|
+
let I = ge(A, C, F);
|
|
2902
|
+
t && t.onResolveNewComponentSchema && (I = t.onResolveNewComponentSchema(C, I));
|
|
2903
|
+
const W = A.toLowerCase().replace("-", "_");
|
|
2904
|
+
return I && !I.id && I.type === A && (I.id = `${W}_${Math.random().toString().slice(2, 6)}`), I;
|
|
2905
|
+
}
|
|
2906
|
+
function E(C, F) {
|
|
2907
|
+
const A = String(C.getAttribute("data-controltype")), I = C.getAttribute("data-feature"), W = I ? JSON.parse(I) : {};
|
|
2908
|
+
W.parentComponentInstance = l.value;
|
|
2909
|
+
let U = ge(A, W);
|
|
2910
|
+
t && t.onAcceptNewChildElement && (U = t.onAcceptNewChildElement(C, F, U));
|
|
2215
2911
|
const K = A.toLowerCase().replace("-", "_");
|
|
2216
|
-
return
|
|
2912
|
+
return U && !U.id && U.type === A && (U.id = `${K}_${Math.random().toString().slice(2, 6)}`), U;
|
|
2217
2913
|
}
|
|
2218
|
-
function
|
|
2914
|
+
function M(C) {
|
|
2219
2915
|
}
|
|
2220
|
-
function
|
|
2916
|
+
function x(...C) {
|
|
2221
2917
|
if (t && t.getPropsConfig)
|
|
2222
|
-
return t.getPropsConfig(...
|
|
2918
|
+
return t.getPropsConfig(...C);
|
|
2223
2919
|
}
|
|
2224
2920
|
return l.value = {
|
|
2225
2921
|
canMove: u(),
|
|
@@ -2230,67 +2926,67 @@ function tt(e, n, t) {
|
|
|
2230
2926
|
elementRef: e,
|
|
2231
2927
|
parent: (T = n == null ? void 0 : n.parent) == null ? void 0 : T.componentInstance,
|
|
2232
2928
|
schema: n == null ? void 0 : n.schema,
|
|
2233
|
-
styles:
|
|
2929
|
+
styles: r,
|
|
2234
2930
|
designerClass: a,
|
|
2235
2931
|
canAccepts: p,
|
|
2236
2932
|
getBelongedComponentInstance: c,
|
|
2237
2933
|
getDraggableDesignItemElement: f,
|
|
2238
|
-
getDraggingDisplayText:
|
|
2239
|
-
getPropConfig:
|
|
2934
|
+
getDraggingDisplayText: y,
|
|
2935
|
+
getPropConfig: x,
|
|
2240
2936
|
getDragScopeElement: m,
|
|
2241
2937
|
onAcceptMovedChildElement: b,
|
|
2242
2938
|
onAcceptNewChildElement: E,
|
|
2243
|
-
onChildElementMovedOut:
|
|
2939
|
+
onChildElementMovedOut: M,
|
|
2244
2940
|
addNewChildComponentSchema: S,
|
|
2245
|
-
updateDragAndDropRules:
|
|
2246
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
2247
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
2941
|
+
updateDragAndDropRules: o,
|
|
2942
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || v(!1),
|
|
2943
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || v(!1)
|
|
2248
2944
|
}, l;
|
|
2249
2945
|
}
|
|
2250
|
-
const
|
|
2946
|
+
const tr = /* @__PURE__ */ G({
|
|
2251
2947
|
name: "FInputGroupDesign",
|
|
2252
|
-
props:
|
|
2948
|
+
props: Fe,
|
|
2253
2949
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
2254
2950
|
setup(e, n) {
|
|
2255
|
-
const t =
|
|
2951
|
+
const t = v(e.modelValue), o = v(e.modelValue), r = Wo(e, n, t, o), {
|
|
2256
2952
|
inputGroupClass: a,
|
|
2257
2953
|
inputType: l,
|
|
2258
2954
|
inputGroupStyle: u
|
|
2259
|
-
} =
|
|
2955
|
+
} = r, s = tt(e), {
|
|
2260
2956
|
shouldShowAppendedButton: i
|
|
2261
|
-
} = s, d =
|
|
2957
|
+
} = s, d = et(e, n, r), {
|
|
2262
2958
|
onMouseEnter: c,
|
|
2263
2959
|
onMouseLeave: f
|
|
2264
|
-
} = d, p =
|
|
2265
|
-
|
|
2266
|
-
|
|
2960
|
+
} = d, p = nt(e, n, l, s), y = v(), m = z("designer-host-service"), b = z("design-item-context"), S = er(b, m), E = at(y, b, S);
|
|
2961
|
+
q(() => {
|
|
2962
|
+
y.value.componentInstance = E;
|
|
2267
2963
|
}), n.expose(E.value);
|
|
2268
|
-
const
|
|
2269
|
-
return () =>
|
|
2964
|
+
const M = rt(e, n, s, d, p), x = v();
|
|
2965
|
+
return () => g("div", {
|
|
2270
2966
|
id: "inputGroup",
|
|
2271
|
-
ref:
|
|
2967
|
+
ref: y,
|
|
2272
2968
|
class: a.value,
|
|
2273
2969
|
style: u.value,
|
|
2274
2970
|
onMouseenter: c,
|
|
2275
2971
|
onMouseleave: f
|
|
2276
|
-
}, [
|
|
2277
|
-
ref:
|
|
2972
|
+
}, [g("input", {
|
|
2973
|
+
ref: x,
|
|
2278
2974
|
class: "form-control",
|
|
2279
2975
|
readonly: !0,
|
|
2280
2976
|
placeholder: e.placeholder
|
|
2281
|
-
}, null), i.value &&
|
|
2977
|
+
}, null), i.value && M()]);
|
|
2282
2978
|
}
|
|
2283
2979
|
});
|
|
2284
|
-
ee.register = (e, n, t,
|
|
2285
|
-
e["input-group"] = ee, n["input-group"] =
|
|
2980
|
+
ee.register = (e, n, t, o) => {
|
|
2981
|
+
e["input-group"] = ee, n["input-group"] = Ke;
|
|
2286
2982
|
};
|
|
2287
2983
|
ee.registerDesigner = (e, n, t) => {
|
|
2288
|
-
e["input-group"] =
|
|
2984
|
+
e["input-group"] = tr, n["input-group"] = Ke;
|
|
2289
2985
|
};
|
|
2290
2986
|
Te(ee);
|
|
2291
|
-
const
|
|
2292
|
-
["appearance",
|
|
2293
|
-
]),
|
|
2987
|
+
const nr = /* @__PURE__ */ new Map([
|
|
2988
|
+
["appearance", pe]
|
|
2989
|
+
]), or = "https://json-schema.org/draft/2020-12/schema", rr = "https://farris-design.gitee.io/number-spinner.schema.json", ar = "number-spinner", ir = "A Farris Input Component", lr = "object", ur = {
|
|
2294
2990
|
id: {
|
|
2295
2991
|
description: "The unique identifier for a number spinner",
|
|
2296
2992
|
type: "string"
|
|
@@ -2391,27 +3087,27 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
2391
3087
|
type: "sting",
|
|
2392
3088
|
default: ""
|
|
2393
3089
|
}
|
|
2394
|
-
},
|
|
3090
|
+
}, sr = [
|
|
2395
3091
|
"id",
|
|
2396
3092
|
"type"
|
|
2397
|
-
],
|
|
3093
|
+
], cr = [
|
|
2398
3094
|
"id",
|
|
2399
3095
|
"appearance",
|
|
2400
3096
|
"binding"
|
|
2401
|
-
],
|
|
2402
|
-
$schema:
|
|
2403
|
-
$id:
|
|
2404
|
-
title:
|
|
2405
|
-
description:
|
|
2406
|
-
type:
|
|
2407
|
-
properties:
|
|
2408
|
-
required:
|
|
2409
|
-
ignore:
|
|
3097
|
+
], dr = {
|
|
3098
|
+
$schema: or,
|
|
3099
|
+
$id: rr,
|
|
3100
|
+
title: ar,
|
|
3101
|
+
description: ir,
|
|
3102
|
+
type: lr,
|
|
3103
|
+
properties: ur,
|
|
3104
|
+
required: sr,
|
|
3105
|
+
ignore: cr
|
|
2410
3106
|
};
|
|
2411
|
-
function
|
|
3107
|
+
function pr(e, n, t) {
|
|
2412
3108
|
return n;
|
|
2413
3109
|
}
|
|
2414
|
-
const
|
|
3110
|
+
const Ee = {
|
|
2415
3111
|
/**
|
|
2416
3112
|
* 组件标识
|
|
2417
3113
|
*/
|
|
@@ -2515,24 +3211,24 @@ const Me = {
|
|
|
2515
3211
|
* 作为内嵌编辑器被创建后默认选中文本
|
|
2516
3212
|
*/
|
|
2517
3213
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
2518
|
-
},
|
|
2519
|
-
function
|
|
2520
|
-
const { format:
|
|
3214
|
+
}, it = ne(Ee, dr, nr, pr);
|
|
3215
|
+
function lt(e, n, t, o) {
|
|
3216
|
+
const { format: r } = t, { displayValue: a, getRealValue: l, modelValue: u, onNumberValueChanged: s } = o;
|
|
2521
3217
|
function i() {
|
|
2522
|
-
const b = new
|
|
2523
|
-
return !(e.max && !new
|
|
3218
|
+
const b = new D(u.value || 0);
|
|
3219
|
+
return !(e.max && !new D(e.max).isNaN() && b.gte(new D(e.max)));
|
|
2524
3220
|
}
|
|
2525
3221
|
function d() {
|
|
2526
|
-
const b = new
|
|
2527
|
-
return !(e.min && !new
|
|
3222
|
+
const b = new D(u.value || 0);
|
|
3223
|
+
return !(e.min && !new D(e.min).isNaN() && b.lte(new D(e.min)));
|
|
2528
3224
|
}
|
|
2529
3225
|
function c(b) {
|
|
2530
3226
|
if (e.readonly || e.disabled)
|
|
2531
3227
|
return;
|
|
2532
3228
|
const S = b === "up" ? i : d, E = b === "up" ? "plus" : "minus";
|
|
2533
3229
|
if (S()) {
|
|
2534
|
-
const
|
|
2535
|
-
a.value =
|
|
3230
|
+
const x = new D(u.value || 0)[E](Number(e.step)), T = x.toFixed();
|
|
3231
|
+
a.value = r(T), s(l(x));
|
|
2536
3232
|
}
|
|
2537
3233
|
}
|
|
2538
3234
|
function f() {
|
|
@@ -2541,22 +3237,22 @@ function rt(e, n, t, r) {
|
|
|
2541
3237
|
function p() {
|
|
2542
3238
|
c("down");
|
|
2543
3239
|
}
|
|
2544
|
-
function
|
|
3240
|
+
function y(b) {
|
|
2545
3241
|
f(), b.stopPropagation();
|
|
2546
3242
|
}
|
|
2547
3243
|
function m(b) {
|
|
2548
3244
|
p(), b.stopPropagation();
|
|
2549
3245
|
}
|
|
2550
|
-
return { canDownward: d, canUpward: i, downward: p, onClickDownButton: m, onClickUpButton:
|
|
3246
|
+
return { canDownward: d, canUpward: i, downward: p, onClickDownButton: m, onClickUpButton: y, upward: f };
|
|
2551
3247
|
}
|
|
2552
|
-
function
|
|
2553
|
-
const
|
|
3248
|
+
function ut(e, n, t) {
|
|
3249
|
+
const o = w(() => ({
|
|
2554
3250
|
prefix: e.prefix,
|
|
2555
3251
|
suffix: e.suffix,
|
|
2556
3252
|
decimalSeparator: e.decimalSeparator,
|
|
2557
3253
|
groupSeparator: e.useThousands ? e.groupSeparator : "",
|
|
2558
3254
|
groupSize: e.groupSize
|
|
2559
|
-
})), { getValidNumberObject:
|
|
3255
|
+
})), { getValidNumberObject: r, precision: a } = t;
|
|
2560
3256
|
function l(i) {
|
|
2561
3257
|
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;
|
|
2562
3258
|
}
|
|
@@ -2564,35 +3260,35 @@ function ot(e, n, t) {
|
|
|
2564
3260
|
return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value, d) : i.toFormat(d);
|
|
2565
3261
|
}
|
|
2566
3262
|
function s(i) {
|
|
2567
|
-
const d = l(i), c = new
|
|
2568
|
-
return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : u(f,
|
|
3263
|
+
const d = l(i), c = new D(d, 10), f = r(c);
|
|
3264
|
+
return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : u(f, o.value);
|
|
2569
3265
|
}
|
|
2570
3266
|
return { cleanFormat: l, format: s };
|
|
2571
3267
|
}
|
|
2572
|
-
function
|
|
2573
|
-
const t =
|
|
3268
|
+
function st(e, n) {
|
|
3269
|
+
const t = v(""), o = v(e.modelValue), r = w(() => Number(e.precision) || 0);
|
|
2574
3270
|
function a(d) {
|
|
2575
|
-
return d.toFixed(
|
|
3271
|
+
return d.toFixed(r.value);
|
|
2576
3272
|
}
|
|
2577
3273
|
function l(d) {
|
|
2578
3274
|
return isNaN(d) || d === null || d === void 0 || d === "";
|
|
2579
3275
|
}
|
|
2580
3276
|
function u(d) {
|
|
2581
|
-
const c = l(e.max) ? null : new
|
|
3277
|
+
const c = l(e.max) ? null : new D(String(e.max), 10), f = l(e.min) ? null : new D(String(e.min), 10);
|
|
2582
3278
|
return c && d.gt(c) ? c : f && d.lt(f) ? f : d;
|
|
2583
3279
|
}
|
|
2584
3280
|
function s(d) {
|
|
2585
3281
|
if (e.parser)
|
|
2586
3282
|
return isNaN(Number(d)) ? e.parser(d) : d;
|
|
2587
|
-
let c = u(new
|
|
3283
|
+
let c = u(new D(d, 10));
|
|
2588
3284
|
if (c.isNaN()) {
|
|
2589
3285
|
if (e.canNull)
|
|
2590
3286
|
return null;
|
|
2591
|
-
const p = new
|
|
3287
|
+
const p = new D("" + e.min, 10), y = new D("" + e.max, 10);
|
|
2592
3288
|
if (!p.isNaN())
|
|
2593
3289
|
c = p;
|
|
2594
|
-
else if (!
|
|
2595
|
-
c =
|
|
3290
|
+
else if (!y.isNaN())
|
|
3291
|
+
c = y;
|
|
2596
3292
|
else
|
|
2597
3293
|
return 0;
|
|
2598
3294
|
}
|
|
@@ -2600,67 +3296,67 @@ function at(e, n) {
|
|
|
2600
3296
|
}
|
|
2601
3297
|
function i(d) {
|
|
2602
3298
|
const c = Number(d);
|
|
2603
|
-
|
|
3299
|
+
o.value = c, n.emit("update:modelValue", c), n.emit("valueChange", c), n.emit("change", c);
|
|
2604
3300
|
}
|
|
2605
|
-
return { displayValue: t, getRealValue: s, modelValue:
|
|
3301
|
+
return { displayValue: t, getRealValue: s, modelValue: o, isEmpty: l, onNumberValueChanged: i, precision: r, getValidNumberObject: u };
|
|
2606
3302
|
}
|
|
2607
|
-
function
|
|
2608
|
-
const { cleanFormat: a, format: l } = t, { displayValue: u, getRealValue: s, modelValue: i, isEmpty: d, onNumberValueChanged: c } =
|
|
2609
|
-
function b(
|
|
3303
|
+
function fr(e, n, t, o, r) {
|
|
3304
|
+
const { cleanFormat: a, format: l } = t, { displayValue: u, getRealValue: s, modelValue: i, isEmpty: d, onNumberValueChanged: c } = o, { downward: f, upward: p } = r, y = v(!1), m = w(() => u.value);
|
|
3305
|
+
function b(x) {
|
|
2610
3306
|
var F;
|
|
2611
|
-
if (
|
|
3307
|
+
if (x.stopPropagation(), y.value = !1, e.readonly || e.disabled)
|
|
2612
3308
|
return;
|
|
2613
|
-
let T = (F =
|
|
3309
|
+
let T = (F = x.target) == null ? void 0 : F.value;
|
|
2614
3310
|
e.canNull || (T = T || 0);
|
|
2615
|
-
const
|
|
2616
|
-
u.value = l(
|
|
3311
|
+
const C = a(T);
|
|
3312
|
+
u.value = l(C), c(s(C)), n.emit("blur", { event: x, formatted: u.value, value: i.value });
|
|
2617
3313
|
}
|
|
2618
|
-
function S(
|
|
2619
|
-
|
|
3314
|
+
function S(x) {
|
|
3315
|
+
x.stopPropagation(), y.value = !0, !(e.readonly || e.disabled) && (u.value = d(i.value) || !e.showZero && i.value === "0" ? "" : String(i.value), n.emit("focus", { event: x, formatted: u.value, value: i.value }));
|
|
2620
3316
|
}
|
|
2621
|
-
function E(
|
|
3317
|
+
function E(x) {
|
|
2622
3318
|
var F;
|
|
2623
|
-
|
|
2624
|
-
let T = (F =
|
|
3319
|
+
x.stopPropagation();
|
|
3320
|
+
let T = (F = x.target) == null ? void 0 : F.value;
|
|
2625
3321
|
e.canNull || (T = T || 0);
|
|
2626
|
-
const
|
|
2627
|
-
u.value =
|
|
3322
|
+
const C = a(T);
|
|
3323
|
+
u.value = C, c(s(C));
|
|
2628
3324
|
}
|
|
2629
|
-
function
|
|
2630
|
-
|
|
3325
|
+
function M(x) {
|
|
3326
|
+
x.key === "ArrowDown" && (x.preventDefault(), f()), x.key === "ArrowUp" && (x.preventDefault(), p()), x.stopPropagation();
|
|
2631
3327
|
}
|
|
2632
|
-
return { textBoxValue: m, onBlurTextBox: b, onFocusTextBox: S, onInput: E, onKeyDown:
|
|
3328
|
+
return { textBoxValue: m, onBlurTextBox: b, onFocusTextBox: S, onInput: E, onKeyDown: M, isFocus: y };
|
|
2633
3329
|
}
|
|
2634
|
-
const te = /* @__PURE__ */
|
|
3330
|
+
const te = /* @__PURE__ */ G({
|
|
2635
3331
|
name: "FNumberSpinner",
|
|
2636
|
-
props:
|
|
3332
|
+
props: Ee,
|
|
2637
3333
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
2638
3334
|
setup(e, n) {
|
|
2639
|
-
const t =
|
|
3335
|
+
const t = st(e, n), o = ut(e, n, t), r = lt(e, n, o, t), a = fr(e, n, o, t, r), l = ke(e, n, r), {
|
|
2640
3336
|
displayValue: u,
|
|
2641
3337
|
modelValue: s,
|
|
2642
3338
|
getRealValue: i
|
|
2643
|
-
} = t, d =
|
|
3339
|
+
} = t, d = ot(e, n, a), {
|
|
2644
3340
|
format: c
|
|
2645
|
-
} =
|
|
3341
|
+
} = o, {
|
|
2646
3342
|
isFocus: f
|
|
2647
|
-
} = a, p =
|
|
2648
|
-
return
|
|
2649
|
-
const
|
|
2650
|
-
u.value = c(
|
|
2651
|
-
}), O(() => [e.value], ([
|
|
2652
|
-
const m = i(
|
|
3343
|
+
} = a, p = w(() => !e.disabled && !e.readonly && e.showButton);
|
|
3344
|
+
return q(() => {
|
|
3345
|
+
const y = i(e.modelValue);
|
|
3346
|
+
u.value = c(y);
|
|
3347
|
+
}), O(() => [e.value], ([y]) => {
|
|
3348
|
+
const m = i(y);
|
|
2653
3349
|
s.value = m, u.value = c(m);
|
|
2654
|
-
}), O(() => [e.modelValue], ([
|
|
2655
|
-
|
|
3350
|
+
}), O(() => [e.modelValue], ([y]) => {
|
|
3351
|
+
y !== s.value && (s.value = y, !f.value && (u.value = c(i(y))));
|
|
2656
3352
|
}), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2657
3353
|
u.value = c(s.value);
|
|
2658
|
-
}), () =>
|
|
3354
|
+
}), () => g("div", {
|
|
2659
3355
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2660
3356
|
}, [d(), p.value && l()]);
|
|
2661
3357
|
}
|
|
2662
3358
|
});
|
|
2663
|
-
class
|
|
3359
|
+
class yr extends Be {
|
|
2664
3360
|
constructor(n, t) {
|
|
2665
3361
|
super(n, t);
|
|
2666
3362
|
}
|
|
@@ -2693,24 +3389,24 @@ class Or extends Ve {
|
|
|
2693
3389
|
});
|
|
2694
3390
|
}
|
|
2695
3391
|
}
|
|
2696
|
-
function
|
|
3392
|
+
function vr(e, n) {
|
|
2697
3393
|
const {
|
|
2698
3394
|
canAccepts: t,
|
|
2699
|
-
checkCanDeleteComponent:
|
|
2700
|
-
checkCanMoveComponent:
|
|
3395
|
+
checkCanDeleteComponent: o,
|
|
3396
|
+
checkCanMoveComponent: r,
|
|
2701
3397
|
hideNestedPaddingInDesginerView: a,
|
|
2702
3398
|
onAcceptMovedChildElement: l,
|
|
2703
3399
|
resolveComponentContext: u,
|
|
2704
3400
|
triggerBelongedComponentToMoveWhenMoved: s,
|
|
2705
3401
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2706
|
-
} =
|
|
3402
|
+
} = Ve(e), d = e.schema;
|
|
2707
3403
|
function c(f, p) {
|
|
2708
|
-
return new
|
|
3404
|
+
return new yr(f, n).getPropertyConfig(d, p);
|
|
2709
3405
|
}
|
|
2710
3406
|
return {
|
|
2711
3407
|
canAccepts: t,
|
|
2712
|
-
checkCanDeleteComponent:
|
|
2713
|
-
checkCanMoveComponent:
|
|
3408
|
+
checkCanDeleteComponent: o,
|
|
3409
|
+
checkCanMoveComponent: r,
|
|
2714
3410
|
hideNestedPaddingInDesginerView: a,
|
|
2715
3411
|
onAcceptMovedChildElement: l,
|
|
2716
3412
|
resolveComponentContext: u,
|
|
@@ -2719,20 +3415,20 @@ function Ir(e, n) {
|
|
|
2719
3415
|
getPropsConfig: c
|
|
2720
3416
|
};
|
|
2721
3417
|
}
|
|
2722
|
-
const
|
|
3418
|
+
const mr = /* @__PURE__ */ G({
|
|
2723
3419
|
name: "FNumberSpinnerDesign",
|
|
2724
|
-
props:
|
|
3420
|
+
props: Ee,
|
|
2725
3421
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
2726
3422
|
setup(e, n) {
|
|
2727
|
-
const t =
|
|
2728
|
-
|
|
3423
|
+
const t = st(e, n), o = ut(e, n, t), r = lt(e, n, o, t), a = ke(e, n, r), l = v(), u = z("designer-host-service"), s = z("design-item-context"), i = vr(s, u), d = at(l, s, i);
|
|
3424
|
+
q(() => {
|
|
2729
3425
|
l.value.componentInstance = d, e.readonly = !0;
|
|
2730
3426
|
}), n.expose(d.value);
|
|
2731
|
-
const c =
|
|
2732
|
-
return () =>
|
|
3427
|
+
const c = v();
|
|
3428
|
+
return () => g("div", {
|
|
2733
3429
|
ref: l,
|
|
2734
3430
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner test"
|
|
2735
|
-
}, [
|
|
3431
|
+
}, [g("input", {
|
|
2736
3432
|
ref: c,
|
|
2737
3433
|
class: "form-control",
|
|
2738
3434
|
readonly: !0,
|
|
@@ -2740,27 +3436,27 @@ const jr = /* @__PURE__ */ W({
|
|
|
2740
3436
|
}, null), a()]);
|
|
2741
3437
|
}
|
|
2742
3438
|
});
|
|
2743
|
-
te.register = (e, n, t,
|
|
2744
|
-
e["number-spinner"] = te, n["number-spinner"] =
|
|
3439
|
+
te.register = (e, n, t, o) => {
|
|
3440
|
+
e["number-spinner"] = te, n["number-spinner"] = it;
|
|
2745
3441
|
};
|
|
2746
3442
|
te.registerDesigner = (e, n, t) => {
|
|
2747
|
-
e["number-spinner"] =
|
|
3443
|
+
e["number-spinner"] = mr, n["number-spinner"] = it;
|
|
2748
3444
|
};
|
|
2749
3445
|
Te(te);
|
|
2750
|
-
function
|
|
2751
|
-
const u =
|
|
3446
|
+
function hr(e, n, t, o, r, a, l) {
|
|
3447
|
+
const u = v(0), s = v(""), i = v([]), d = v(""), c = v("");
|
|
2752
3448
|
function f() {
|
|
2753
3449
|
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (d.value = B(e.value.propertyValue.value), n.value = B(e.value.editorOptions.enums));
|
|
2754
3450
|
}
|
|
2755
3451
|
function p() {
|
|
2756
3452
|
e.value.propertyType === "number" && (u.value = e.value.propertyValue.value);
|
|
2757
3453
|
}
|
|
2758
|
-
function
|
|
2759
|
-
t.value.id === "stateMachine" && (
|
|
3454
|
+
function y() {
|
|
3455
|
+
t.value.id === "stateMachine" && (o = B(e.value.propertyValue.value.id), o ? r.value = B(e.value.propertyValue.value.exist) : r.value = "否");
|
|
2760
3456
|
}
|
|
2761
3457
|
function m() {
|
|
2762
3458
|
if (t.value.id === "dataStates" && (i.value = B(e.value.editorOptions.dataStates), e.value.propertyValue.value)) {
|
|
2763
|
-
const
|
|
3459
|
+
const x = e.value.propertyValue.value, T = i.value.filter((C) => x.includes(C.value)).map((C) => C.value).join(",");
|
|
2764
3460
|
s.value = B(T);
|
|
2765
3461
|
}
|
|
2766
3462
|
}
|
|
@@ -2770,15 +3466,15 @@ function Dr(e, n, t, r, o, a, l) {
|
|
|
2770
3466
|
function S() {
|
|
2771
3467
|
if (t.value.id === "expression") {
|
|
2772
3468
|
l.value = !0;
|
|
2773
|
-
const { handleExpressionValue:
|
|
2774
|
-
|
|
3469
|
+
const { handleExpressionValue: x } = e.value.editorOptions.expressionConfig;
|
|
3470
|
+
x ? a.value = x().value.value : a.value = e.value.editorOptions.expressionConfig.expressionValue.value.value;
|
|
2775
3471
|
}
|
|
2776
3472
|
}
|
|
2777
3473
|
function E() {
|
|
2778
3474
|
t.value.id;
|
|
2779
3475
|
}
|
|
2780
|
-
function
|
|
2781
|
-
f(), p(), b(),
|
|
3476
|
+
function M() {
|
|
3477
|
+
f(), p(), b(), y(), m(), S(), E();
|
|
2782
3478
|
}
|
|
2783
3479
|
return {
|
|
2784
3480
|
numberConstValue: u,
|
|
@@ -2786,11 +3482,11 @@ function Dr(e, n, t, r, o, a, l) {
|
|
|
2786
3482
|
dataStatesBindValue: s,
|
|
2787
3483
|
dataStatesValueArray: i,
|
|
2788
3484
|
constEnumBindValue: d,
|
|
2789
|
-
setValue:
|
|
3485
|
+
setValue: M
|
|
2790
3486
|
};
|
|
2791
3487
|
}
|
|
2792
|
-
function
|
|
2793
|
-
const f =
|
|
3488
|
+
function br(e, n, t, o, r, a, l, u, s, i, d, c) {
|
|
3489
|
+
const f = v(!1), p = v({
|
|
2794
3490
|
propertyName: "",
|
|
2795
3491
|
/** 属性类型:boolean, string, number, enum */
|
|
2796
3492
|
propertyType: "",
|
|
@@ -2801,34 +3497,34 @@ function $r(e, n, t, r, o, a, l, u, s, i, d, c) {
|
|
|
2801
3497
|
/** 状态机是否有前缀viewModel.stateMachine && */
|
|
2802
3498
|
hasPrefix: !1
|
|
2803
3499
|
});
|
|
2804
|
-
function
|
|
2805
|
-
n.value.propertyValue.type === "const" && (n.value.propertyValue.value = B(
|
|
3500
|
+
function y() {
|
|
3501
|
+
n.value.propertyValue.type === "const" && (n.value.propertyValue.value = B(r.value.constValue.value), t.value = B(r.value.constValue.value), o.value = B(n.value.editorOptions.enums));
|
|
2806
3502
|
}
|
|
2807
3503
|
function m() {
|
|
2808
|
-
n.value.propertyValue.type === "stateMachine" && (n.value.propertyValue.value = B(
|
|
3504
|
+
n.value.propertyValue.type === "stateMachine" && (n.value.propertyValue.value = B(r.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 = {
|
|
2809
3505
|
id: "",
|
|
2810
3506
|
name: "",
|
|
2811
3507
|
exist: ""
|
|
2812
3508
|
}, u.value = "否"));
|
|
2813
3509
|
}
|
|
2814
3510
|
function b() {
|
|
2815
|
-
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = B(
|
|
3511
|
+
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = B(r.value.dataStatesValue.value), s.value = B(n.value.editorOptions.dataStates));
|
|
2816
3512
|
}
|
|
2817
3513
|
function S() {
|
|
2818
|
-
i.value = "",
|
|
3514
|
+
i.value = "", r.value.expressionValue && (r.value.expressionValue.value = "");
|
|
2819
3515
|
}
|
|
2820
3516
|
function E() {
|
|
2821
|
-
d.value || (u.value = u.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = u,
|
|
3517
|
+
d.value || (u.value = u.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = u, r.value.stateMachineValue.value.exist = u, T());
|
|
2822
3518
|
}
|
|
2823
|
-
function
|
|
2824
|
-
p.value.propertyValue.value && p.value.propertyValue.value.includes("viewModel.stateMachine") && (
|
|
3519
|
+
function M() {
|
|
3520
|
+
p.value.propertyValue.value && p.value.propertyValue.value.includes("viewModel.stateMachine") && (r.value.customValue.value = "");
|
|
2825
3521
|
}
|
|
2826
|
-
function
|
|
3522
|
+
function x() {
|
|
2827
3523
|
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);
|
|
2828
3524
|
}
|
|
2829
3525
|
function T() {
|
|
2830
3526
|
if (!d.value)
|
|
2831
|
-
switch (
|
|
3527
|
+
switch (x(), p.value.propertyValue.type) {
|
|
2832
3528
|
case "const":
|
|
2833
3529
|
(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));
|
|
2834
3530
|
break;
|
|
@@ -2836,7 +3532,7 @@ function $r(e, n, t, r, o, a, l, u, s, i, d, c) {
|
|
|
2836
3532
|
p.value.propertyValue.value.path !== "" && (S(), e.emit("propertyEditorValueChanged", p));
|
|
2837
3533
|
break;
|
|
2838
3534
|
case "custom":
|
|
2839
|
-
S(),
|
|
3535
|
+
S(), M(), e.emit("propertyEditorValueChanged", p);
|
|
2840
3536
|
break;
|
|
2841
3537
|
case "expression":
|
|
2842
3538
|
i.value && e.emit("propertyEditorValueChanged", p);
|
|
@@ -2851,34 +3547,34 @@ function $r(e, n, t, r, o, a, l, u, s, i, d, c) {
|
|
|
2851
3547
|
}
|
|
2852
3548
|
}
|
|
2853
3549
|
}
|
|
2854
|
-
function
|
|
2855
|
-
n.value.propertyValue =
|
|
3550
|
+
function C() {
|
|
3551
|
+
n.value.propertyValue = r.value[`${c.value.id}Value`], y(), m(), b(), T(), p.value.isNewVariable = !1;
|
|
2856
3552
|
}
|
|
2857
3553
|
return {
|
|
2858
|
-
updateData:
|
|
3554
|
+
updateData: C,
|
|
2859
3555
|
changeState: E,
|
|
2860
3556
|
prefix: f,
|
|
2861
3557
|
propertyEditorValueChange: p
|
|
2862
3558
|
};
|
|
2863
3559
|
}
|
|
2864
|
-
var
|
|
2865
|
-
return
|
|
2866
|
-
t.__proto__ =
|
|
2867
|
-
} || function(t,
|
|
2868
|
-
for (var
|
|
2869
|
-
},
|
|
3560
|
+
var Ce = function(e, n) {
|
|
3561
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, o) {
|
|
3562
|
+
t.__proto__ = o;
|
|
3563
|
+
} || function(t, o) {
|
|
3564
|
+
for (var r in o) Object.prototype.hasOwnProperty.call(o, r) && (t[r] = o[r]);
|
|
3565
|
+
}, Ce(e, n);
|
|
2870
3566
|
};
|
|
2871
|
-
function
|
|
3567
|
+
function Y(e, n) {
|
|
2872
3568
|
if (typeof n != "function" && n !== null)
|
|
2873
3569
|
throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
|
|
2874
|
-
|
|
3570
|
+
Ce(e, n);
|
|
2875
3571
|
function t() {
|
|
2876
3572
|
this.constructor = e;
|
|
2877
3573
|
}
|
|
2878
3574
|
e.prototype = n === null ? Object.create(n) : (t.prototype = n.prototype, new t());
|
|
2879
3575
|
}
|
|
2880
|
-
function
|
|
2881
|
-
function
|
|
3576
|
+
function gr(e, n, t, o) {
|
|
3577
|
+
function r(a) {
|
|
2882
3578
|
return a instanceof t ? a : new t(function(l) {
|
|
2883
3579
|
l(a);
|
|
2884
3580
|
});
|
|
@@ -2886,29 +3582,29 @@ function Lr(e, n, t, r) {
|
|
|
2886
3582
|
return new (t || (t = Promise))(function(a, l) {
|
|
2887
3583
|
function u(d) {
|
|
2888
3584
|
try {
|
|
2889
|
-
i(
|
|
3585
|
+
i(o.next(d));
|
|
2890
3586
|
} catch (c) {
|
|
2891
3587
|
l(c);
|
|
2892
3588
|
}
|
|
2893
3589
|
}
|
|
2894
3590
|
function s(d) {
|
|
2895
3591
|
try {
|
|
2896
|
-
i(
|
|
3592
|
+
i(o.throw(d));
|
|
2897
3593
|
} catch (c) {
|
|
2898
3594
|
l(c);
|
|
2899
3595
|
}
|
|
2900
3596
|
}
|
|
2901
3597
|
function i(d) {
|
|
2902
|
-
d.done ? a(d.value) :
|
|
3598
|
+
d.done ? a(d.value) : r(d.value).then(u, s);
|
|
2903
3599
|
}
|
|
2904
|
-
i((
|
|
3600
|
+
i((o = o.apply(e, n || [])).next());
|
|
2905
3601
|
});
|
|
2906
3602
|
}
|
|
2907
|
-
function
|
|
3603
|
+
function ct(e, n) {
|
|
2908
3604
|
var t = { label: 0, sent: function() {
|
|
2909
3605
|
if (a[0] & 1) throw a[1];
|
|
2910
3606
|
return a[1];
|
|
2911
|
-
}, trys: [], ops: [] },
|
|
3607
|
+
}, trys: [], ops: [] }, o, r, a, l = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
2912
3608
|
return l.next = u(0), l.throw = u(1), l.return = u(2), typeof Symbol == "function" && (l[Symbol.iterator] = function() {
|
|
2913
3609
|
return this;
|
|
2914
3610
|
}), l;
|
|
@@ -2918,10 +3614,10 @@ function it(e, n) {
|
|
|
2918
3614
|
};
|
|
2919
3615
|
}
|
|
2920
3616
|
function s(i) {
|
|
2921
|
-
if (
|
|
3617
|
+
if (o) throw new TypeError("Generator is already executing.");
|
|
2922
3618
|
for (; l && (l = 0, i[0] && (t = 0)), t; ) try {
|
|
2923
|
-
if (
|
|
2924
|
-
switch (
|
|
3619
|
+
if (o = 1, r && (a = i[0] & 2 ? r.return : i[0] ? r.throw || ((a = r.return) && a.call(r), 0) : r.next) && !(a = a.call(r, i[1])).done) return a;
|
|
3620
|
+
switch (r = 0, a && (i = [i[0] & 2, a.value]), i[0]) {
|
|
2925
3621
|
case 0:
|
|
2926
3622
|
case 1:
|
|
2927
3623
|
a = i;
|
|
@@ -2929,7 +3625,7 @@ function it(e, n) {
|
|
|
2929
3625
|
case 4:
|
|
2930
3626
|
return t.label++, { value: i[1], done: !1 };
|
|
2931
3627
|
case 5:
|
|
2932
|
-
t.label++,
|
|
3628
|
+
t.label++, r = i[1], i = [0];
|
|
2933
3629
|
continue;
|
|
2934
3630
|
case 7:
|
|
2935
3631
|
i = t.ops.pop(), t.trys.pop();
|
|
@@ -2956,76 +3652,76 @@ function it(e, n) {
|
|
|
2956
3652
|
}
|
|
2957
3653
|
i = n.call(e, t);
|
|
2958
3654
|
} catch (d) {
|
|
2959
|
-
i = [6, d],
|
|
3655
|
+
i = [6, d], r = 0;
|
|
2960
3656
|
} finally {
|
|
2961
|
-
|
|
3657
|
+
o = a = 0;
|
|
2962
3658
|
}
|
|
2963
3659
|
if (i[0] & 5) throw i[1];
|
|
2964
3660
|
return { value: i[0] ? i[1] : void 0, done: !0 };
|
|
2965
3661
|
}
|
|
2966
3662
|
}
|
|
2967
|
-
function
|
|
2968
|
-
var n = typeof Symbol == "function" && Symbol.iterator, t = n && e[n],
|
|
3663
|
+
function Q(e) {
|
|
3664
|
+
var n = typeof Symbol == "function" && Symbol.iterator, t = n && e[n], o = 0;
|
|
2969
3665
|
if (t) return t.call(e);
|
|
2970
3666
|
if (e && typeof e.length == "number") return {
|
|
2971
3667
|
next: function() {
|
|
2972
|
-
return e &&
|
|
3668
|
+
return e && o >= e.length && (e = void 0), { value: e && e[o++], done: !e };
|
|
2973
3669
|
}
|
|
2974
3670
|
};
|
|
2975
3671
|
throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2976
3672
|
}
|
|
2977
|
-
function
|
|
3673
|
+
function se(e, n) {
|
|
2978
3674
|
var t = typeof Symbol == "function" && e[Symbol.iterator];
|
|
2979
3675
|
if (!t) return e;
|
|
2980
|
-
var
|
|
3676
|
+
var o = t.call(e), r, a = [], l;
|
|
2981
3677
|
try {
|
|
2982
|
-
for (; (n === void 0 || n-- > 0) && !(
|
|
3678
|
+
for (; (n === void 0 || n-- > 0) && !(r = o.next()).done; ) a.push(r.value);
|
|
2983
3679
|
} catch (u) {
|
|
2984
3680
|
l = { error: u };
|
|
2985
3681
|
} finally {
|
|
2986
3682
|
try {
|
|
2987
|
-
|
|
3683
|
+
r && !r.done && (t = o.return) && t.call(o);
|
|
2988
3684
|
} finally {
|
|
2989
3685
|
if (l) throw l.error;
|
|
2990
3686
|
}
|
|
2991
3687
|
}
|
|
2992
3688
|
return a;
|
|
2993
3689
|
}
|
|
2994
|
-
function
|
|
2995
|
-
if (t || arguments.length === 2) for (var
|
|
2996
|
-
(a || !(
|
|
3690
|
+
function ce(e, n, t) {
|
|
3691
|
+
if (t || arguments.length === 2) for (var o = 0, r = n.length, a; o < r; o++)
|
|
3692
|
+
(a || !(o in n)) && (a || (a = Array.prototype.slice.call(n, 0, o)), a[o] = n[o]);
|
|
2997
3693
|
return e.concat(a || Array.prototype.slice.call(n));
|
|
2998
3694
|
}
|
|
2999
|
-
function
|
|
3000
|
-
return this instanceof
|
|
3695
|
+
function X(e) {
|
|
3696
|
+
return this instanceof X ? (this.v = e, this) : new X(e);
|
|
3001
3697
|
}
|
|
3002
|
-
function
|
|
3698
|
+
function Cr(e, n, t) {
|
|
3003
3699
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3004
|
-
var
|
|
3005
|
-
return
|
|
3700
|
+
var o = t.apply(e, n || []), r, a = [];
|
|
3701
|
+
return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", l), r[Symbol.asyncIterator] = function() {
|
|
3006
3702
|
return this;
|
|
3007
|
-
},
|
|
3703
|
+
}, r;
|
|
3008
3704
|
function l(p) {
|
|
3009
|
-
return function(
|
|
3010
|
-
return Promise.resolve(
|
|
3705
|
+
return function(y) {
|
|
3706
|
+
return Promise.resolve(y).then(p, c);
|
|
3011
3707
|
};
|
|
3012
3708
|
}
|
|
3013
|
-
function u(p,
|
|
3014
|
-
|
|
3709
|
+
function u(p, y) {
|
|
3710
|
+
o[p] && (r[p] = function(m) {
|
|
3015
3711
|
return new Promise(function(b, S) {
|
|
3016
3712
|
a.push([p, m, b, S]) > 1 || s(p, m);
|
|
3017
3713
|
});
|
|
3018
|
-
},
|
|
3714
|
+
}, y && (r[p] = y(r[p])));
|
|
3019
3715
|
}
|
|
3020
|
-
function s(p,
|
|
3716
|
+
function s(p, y) {
|
|
3021
3717
|
try {
|
|
3022
|
-
i(
|
|
3718
|
+
i(o[p](y));
|
|
3023
3719
|
} catch (m) {
|
|
3024
3720
|
f(a[0][3], m);
|
|
3025
3721
|
}
|
|
3026
3722
|
}
|
|
3027
3723
|
function i(p) {
|
|
3028
|
-
p.value instanceof
|
|
3724
|
+
p.value instanceof X ? Promise.resolve(p.value.v).then(d, c) : f(a[0][2], p);
|
|
3029
3725
|
}
|
|
3030
3726
|
function d(p) {
|
|
3031
3727
|
s("next", p);
|
|
@@ -3033,66 +3729,66 @@ function Ur(e, n, t) {
|
|
|
3033
3729
|
function c(p) {
|
|
3034
3730
|
s("throw", p);
|
|
3035
3731
|
}
|
|
3036
|
-
function f(p,
|
|
3037
|
-
p(
|
|
3732
|
+
function f(p, y) {
|
|
3733
|
+
p(y), a.shift(), a.length && s(a[0][0], a[0][1]);
|
|
3038
3734
|
}
|
|
3039
3735
|
}
|
|
3040
|
-
function
|
|
3736
|
+
function Sr(e) {
|
|
3041
3737
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3042
3738
|
var n = e[Symbol.asyncIterator], t;
|
|
3043
|
-
return n ? n.call(e) : (e = typeof
|
|
3739
|
+
return n ? n.call(e) : (e = typeof Q == "function" ? Q(e) : e[Symbol.iterator](), t = {}, o("next"), o("throw"), o("return"), t[Symbol.asyncIterator] = function() {
|
|
3044
3740
|
return this;
|
|
3045
3741
|
}, t);
|
|
3046
|
-
function
|
|
3742
|
+
function o(a) {
|
|
3047
3743
|
t[a] = e[a] && function(l) {
|
|
3048
3744
|
return new Promise(function(u, s) {
|
|
3049
|
-
l = e[a](l),
|
|
3745
|
+
l = e[a](l), r(u, s, l.done, l.value);
|
|
3050
3746
|
});
|
|
3051
3747
|
};
|
|
3052
3748
|
}
|
|
3053
|
-
function
|
|
3749
|
+
function r(a, l, u, s) {
|
|
3054
3750
|
Promise.resolve(s).then(function(i) {
|
|
3055
3751
|
a({ value: i, done: u });
|
|
3056
3752
|
}, l);
|
|
3057
3753
|
}
|
|
3058
3754
|
}
|
|
3059
|
-
function
|
|
3755
|
+
function N(e) {
|
|
3060
3756
|
return typeof e == "function";
|
|
3061
3757
|
}
|
|
3062
|
-
function
|
|
3063
|
-
var n = function(
|
|
3064
|
-
Error.call(
|
|
3758
|
+
function dt(e) {
|
|
3759
|
+
var n = function(o) {
|
|
3760
|
+
Error.call(o), o.stack = new Error().stack;
|
|
3065
3761
|
}, t = e(n);
|
|
3066
3762
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
3067
3763
|
}
|
|
3068
|
-
var
|
|
3764
|
+
var ye = dt(function(e) {
|
|
3069
3765
|
return function(t) {
|
|
3070
3766
|
e(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
3071
|
-
` + t.map(function(
|
|
3072
|
-
return
|
|
3767
|
+
` + t.map(function(o, r) {
|
|
3768
|
+
return r + 1 + ") " + o.toString();
|
|
3073
3769
|
}).join(`
|
|
3074
3770
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
3075
3771
|
};
|
|
3076
3772
|
});
|
|
3077
|
-
function
|
|
3773
|
+
function de(e, n) {
|
|
3078
3774
|
if (e) {
|
|
3079
3775
|
var t = e.indexOf(n);
|
|
3080
3776
|
0 <= t && e.splice(t, 1);
|
|
3081
3777
|
}
|
|
3082
3778
|
}
|
|
3083
|
-
var
|
|
3779
|
+
var oe = function() {
|
|
3084
3780
|
function e(n) {
|
|
3085
3781
|
this.initialTeardown = n, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
3086
3782
|
}
|
|
3087
3783
|
return e.prototype.unsubscribe = function() {
|
|
3088
|
-
var n, t,
|
|
3784
|
+
var n, t, o, r, a;
|
|
3089
3785
|
if (!this.closed) {
|
|
3090
3786
|
this.closed = !0;
|
|
3091
3787
|
var l = this._parentage;
|
|
3092
3788
|
if (l)
|
|
3093
3789
|
if (this._parentage = null, Array.isArray(l))
|
|
3094
3790
|
try {
|
|
3095
|
-
for (var u =
|
|
3791
|
+
for (var u = Q(l), s = u.next(); !s.done; s = u.next()) {
|
|
3096
3792
|
var i = s.value;
|
|
3097
3793
|
i.remove(this);
|
|
3098
3794
|
}
|
|
@@ -3108,42 +3804,42 @@ var ne = function() {
|
|
|
3108
3804
|
else
|
|
3109
3805
|
l.remove(this);
|
|
3110
3806
|
var d = this.initialTeardown;
|
|
3111
|
-
if (
|
|
3807
|
+
if (N(d))
|
|
3112
3808
|
try {
|
|
3113
3809
|
d();
|
|
3114
3810
|
} catch (m) {
|
|
3115
|
-
a = m instanceof
|
|
3811
|
+
a = m instanceof ye ? m.errors : [m];
|
|
3116
3812
|
}
|
|
3117
3813
|
var c = this._finalizers;
|
|
3118
3814
|
if (c) {
|
|
3119
3815
|
this._finalizers = null;
|
|
3120
3816
|
try {
|
|
3121
|
-
for (var f =
|
|
3122
|
-
var
|
|
3817
|
+
for (var f = Q(c), p = f.next(); !p.done; p = f.next()) {
|
|
3818
|
+
var y = p.value;
|
|
3123
3819
|
try {
|
|
3124
|
-
|
|
3820
|
+
Re(y);
|
|
3125
3821
|
} catch (m) {
|
|
3126
|
-
a = a ?? [], m instanceof
|
|
3822
|
+
a = a ?? [], m instanceof ye ? a = ce(ce([], se(a)), se(m.errors)) : a.push(m);
|
|
3127
3823
|
}
|
|
3128
3824
|
}
|
|
3129
3825
|
} catch (m) {
|
|
3130
|
-
|
|
3826
|
+
o = { error: m };
|
|
3131
3827
|
} finally {
|
|
3132
3828
|
try {
|
|
3133
|
-
p && !p.done && (
|
|
3829
|
+
p && !p.done && (r = f.return) && r.call(f);
|
|
3134
3830
|
} finally {
|
|
3135
|
-
if (
|
|
3831
|
+
if (o) throw o.error;
|
|
3136
3832
|
}
|
|
3137
3833
|
}
|
|
3138
3834
|
}
|
|
3139
3835
|
if (a)
|
|
3140
|
-
throw new
|
|
3836
|
+
throw new ye(a);
|
|
3141
3837
|
}
|
|
3142
3838
|
}, e.prototype.add = function(n) {
|
|
3143
3839
|
var t;
|
|
3144
3840
|
if (n && n !== this)
|
|
3145
3841
|
if (this.closed)
|
|
3146
|
-
|
|
3842
|
+
Re(n);
|
|
3147
3843
|
else {
|
|
3148
3844
|
if (n instanceof e) {
|
|
3149
3845
|
if (n.closed || n._hasParent(this))
|
|
@@ -3160,56 +3856,56 @@ var ne = function() {
|
|
|
3160
3856
|
this._parentage = Array.isArray(t) ? (t.push(n), t) : t ? [t, n] : n;
|
|
3161
3857
|
}, e.prototype._removeParent = function(n) {
|
|
3162
3858
|
var t = this._parentage;
|
|
3163
|
-
t === n ? this._parentage = null : Array.isArray(t) &&
|
|
3859
|
+
t === n ? this._parentage = null : Array.isArray(t) && de(t, n);
|
|
3164
3860
|
}, e.prototype.remove = function(n) {
|
|
3165
3861
|
var t = this._finalizers;
|
|
3166
|
-
t &&
|
|
3862
|
+
t && de(t, n), n instanceof e && n._removeParent(this);
|
|
3167
3863
|
}, e.EMPTY = function() {
|
|
3168
3864
|
var n = new e();
|
|
3169
3865
|
return n.closed = !0, n;
|
|
3170
3866
|
}(), e;
|
|
3171
|
-
}(),
|
|
3172
|
-
function
|
|
3173
|
-
return e instanceof
|
|
3867
|
+
}(), pt = oe.EMPTY;
|
|
3868
|
+
function ft(e) {
|
|
3869
|
+
return e instanceof oe || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
3174
3870
|
}
|
|
3175
|
-
function
|
|
3176
|
-
|
|
3871
|
+
function Re(e) {
|
|
3872
|
+
N(e) ? e() : e.unsubscribe();
|
|
3177
3873
|
}
|
|
3178
|
-
var
|
|
3874
|
+
var yt = {
|
|
3179
3875
|
onUnhandledError: null,
|
|
3180
3876
|
onStoppedNotification: null,
|
|
3181
3877
|
Promise: void 0,
|
|
3182
3878
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
3183
3879
|
useDeprecatedNextContext: !1
|
|
3184
|
-
},
|
|
3880
|
+
}, wr = {
|
|
3185
3881
|
setTimeout: function(e, n) {
|
|
3186
|
-
for (var t = [],
|
|
3187
|
-
t[
|
|
3188
|
-
return setTimeout.apply(void 0,
|
|
3882
|
+
for (var t = [], o = 2; o < arguments.length; o++)
|
|
3883
|
+
t[o - 2] = arguments[o];
|
|
3884
|
+
return setTimeout.apply(void 0, ce([e, n], se(t)));
|
|
3189
3885
|
},
|
|
3190
3886
|
clearTimeout: function(e) {
|
|
3191
3887
|
return clearTimeout(e);
|
|
3192
3888
|
},
|
|
3193
3889
|
delegate: void 0
|
|
3194
3890
|
};
|
|
3195
|
-
function
|
|
3196
|
-
|
|
3891
|
+
function vt(e) {
|
|
3892
|
+
wr.setTimeout(function() {
|
|
3197
3893
|
throw e;
|
|
3198
3894
|
});
|
|
3199
3895
|
}
|
|
3200
3896
|
function Ue() {
|
|
3201
3897
|
}
|
|
3202
|
-
function
|
|
3898
|
+
function ie(e) {
|
|
3203
3899
|
e();
|
|
3204
3900
|
}
|
|
3205
|
-
var
|
|
3206
|
-
|
|
3901
|
+
var Me = function(e) {
|
|
3902
|
+
Y(n, e);
|
|
3207
3903
|
function n(t) {
|
|
3208
|
-
var
|
|
3209
|
-
return
|
|
3904
|
+
var o = e.call(this) || this;
|
|
3905
|
+
return o.isStopped = !1, t ? (o.destination = t, ft(t) && t.add(o)) : o.destination = Tr, o;
|
|
3210
3906
|
}
|
|
3211
|
-
return n.create = function(t,
|
|
3212
|
-
return new Se(t,
|
|
3907
|
+
return n.create = function(t, o, r) {
|
|
3908
|
+
return new Se(t, o, r);
|
|
3213
3909
|
}, n.prototype.next = function(t) {
|
|
3214
3910
|
this.isStopped || this._next(t);
|
|
3215
3911
|
}, n.prototype.error = function(t) {
|
|
@@ -3233,11 +3929,11 @@ var ke = function(e) {
|
|
|
3233
3929
|
this.unsubscribe();
|
|
3234
3930
|
}
|
|
3235
3931
|
}, n;
|
|
3236
|
-
}(
|
|
3932
|
+
}(oe), xr = Function.prototype.bind;
|
|
3237
3933
|
function ve(e, n) {
|
|
3238
|
-
return
|
|
3934
|
+
return xr.call(e, n);
|
|
3239
3935
|
}
|
|
3240
|
-
var
|
|
3936
|
+
var Vr = function() {
|
|
3241
3937
|
function e(n) {
|
|
3242
3938
|
this.partialObserver = n;
|
|
3243
3939
|
}
|
|
@@ -3246,41 +3942,41 @@ var Hr = function() {
|
|
|
3246
3942
|
if (t.next)
|
|
3247
3943
|
try {
|
|
3248
3944
|
t.next(n);
|
|
3249
|
-
} catch (
|
|
3250
|
-
|
|
3945
|
+
} catch (o) {
|
|
3946
|
+
ae(o);
|
|
3251
3947
|
}
|
|
3252
3948
|
}, e.prototype.error = function(n) {
|
|
3253
3949
|
var t = this.partialObserver;
|
|
3254
3950
|
if (t.error)
|
|
3255
3951
|
try {
|
|
3256
3952
|
t.error(n);
|
|
3257
|
-
} catch (
|
|
3258
|
-
|
|
3953
|
+
} catch (o) {
|
|
3954
|
+
ae(o);
|
|
3259
3955
|
}
|
|
3260
3956
|
else
|
|
3261
|
-
|
|
3957
|
+
ae(n);
|
|
3262
3958
|
}, e.prototype.complete = function() {
|
|
3263
3959
|
var n = this.partialObserver;
|
|
3264
3960
|
if (n.complete)
|
|
3265
3961
|
try {
|
|
3266
3962
|
n.complete();
|
|
3267
3963
|
} catch (t) {
|
|
3268
|
-
|
|
3964
|
+
ae(t);
|
|
3269
3965
|
}
|
|
3270
3966
|
}, e;
|
|
3271
3967
|
}(), Se = function(e) {
|
|
3272
|
-
|
|
3273
|
-
function n(t,
|
|
3968
|
+
Y(n, e);
|
|
3969
|
+
function n(t, o, r) {
|
|
3274
3970
|
var a = e.call(this) || this, l;
|
|
3275
|
-
if (
|
|
3971
|
+
if (N(t) || !t)
|
|
3276
3972
|
l = {
|
|
3277
3973
|
next: t ?? void 0,
|
|
3278
|
-
error:
|
|
3279
|
-
complete:
|
|
3974
|
+
error: o ?? void 0,
|
|
3975
|
+
complete: r ?? void 0
|
|
3280
3976
|
};
|
|
3281
3977
|
else {
|
|
3282
3978
|
var u;
|
|
3283
|
-
a &&
|
|
3979
|
+
a && yt.useDeprecatedNextContext ? (u = Object.create(t), u.unsubscribe = function() {
|
|
3284
3980
|
return a.unsubscribe();
|
|
3285
3981
|
}, l = {
|
|
3286
3982
|
next: t.next && ve(t.next, u),
|
|
@@ -3288,46 +3984,46 @@ var Hr = function() {
|
|
|
3288
3984
|
complete: t.complete && ve(t.complete, u)
|
|
3289
3985
|
}) : l = t;
|
|
3290
3986
|
}
|
|
3291
|
-
return a.destination = new
|
|
3987
|
+
return a.destination = new Vr(l), a;
|
|
3292
3988
|
}
|
|
3293
3989
|
return n;
|
|
3294
|
-
}(
|
|
3295
|
-
function
|
|
3296
|
-
|
|
3990
|
+
}(Me);
|
|
3991
|
+
function ae(e) {
|
|
3992
|
+
vt(e);
|
|
3297
3993
|
}
|
|
3298
|
-
function
|
|
3994
|
+
function Br(e) {
|
|
3299
3995
|
throw e;
|
|
3300
3996
|
}
|
|
3301
|
-
var
|
|
3997
|
+
var Tr = {
|
|
3302
3998
|
closed: !0,
|
|
3303
3999
|
next: Ue,
|
|
3304
|
-
error:
|
|
4000
|
+
error: Br,
|
|
3305
4001
|
complete: Ue
|
|
3306
|
-
},
|
|
4002
|
+
}, Ae = function() {
|
|
3307
4003
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
3308
4004
|
}();
|
|
3309
|
-
function
|
|
4005
|
+
function Fr(e) {
|
|
3310
4006
|
return e;
|
|
3311
4007
|
}
|
|
3312
|
-
function
|
|
3313
|
-
return e.length === 0 ?
|
|
3314
|
-
return e.reduce(function(
|
|
3315
|
-
return o
|
|
4008
|
+
function kr(e) {
|
|
4009
|
+
return e.length === 0 ? Fr : e.length === 1 ? e[0] : function(t) {
|
|
4010
|
+
return e.reduce(function(o, r) {
|
|
4011
|
+
return r(o);
|
|
3316
4012
|
}, t);
|
|
3317
4013
|
};
|
|
3318
4014
|
}
|
|
3319
|
-
var
|
|
4015
|
+
var _ = function() {
|
|
3320
4016
|
function e(n) {
|
|
3321
4017
|
n && (this._subscribe = n);
|
|
3322
4018
|
}
|
|
3323
4019
|
return e.prototype.lift = function(n) {
|
|
3324
4020
|
var t = new e();
|
|
3325
4021
|
return t.source = this, t.operator = n, t;
|
|
3326
|
-
}, e.prototype.subscribe = function(n, t,
|
|
3327
|
-
var
|
|
3328
|
-
return
|
|
3329
|
-
var l =
|
|
3330
|
-
a.add(u ? u.call(a, s) : s ?
|
|
4022
|
+
}, e.prototype.subscribe = function(n, t, o) {
|
|
4023
|
+
var r = this, a = Mr(n) ? n : new Se(n, t, o);
|
|
4024
|
+
return ie(function() {
|
|
4025
|
+
var l = r, u = l.operator, s = l.source;
|
|
4026
|
+
a.add(u ? u.call(a, s) : s ? r._subscribe(a) : r._trySubscribe(a));
|
|
3331
4027
|
}), a;
|
|
3332
4028
|
}, e.prototype._trySubscribe = function(n) {
|
|
3333
4029
|
try {
|
|
@@ -3336,8 +4032,8 @@ var R = function() {
|
|
|
3336
4032
|
n.error(t);
|
|
3337
4033
|
}
|
|
3338
4034
|
}, e.prototype.forEach = function(n, t) {
|
|
3339
|
-
var
|
|
3340
|
-
return t = _e(t), new t(function(
|
|
4035
|
+
var o = this;
|
|
4036
|
+
return t = _e(t), new t(function(r, a) {
|
|
3341
4037
|
var l = new Se({
|
|
3342
4038
|
next: function(u) {
|
|
3343
4039
|
try {
|
|
@@ -3347,29 +4043,29 @@ var R = function() {
|
|
|
3347
4043
|
}
|
|
3348
4044
|
},
|
|
3349
4045
|
error: a,
|
|
3350
|
-
complete:
|
|
4046
|
+
complete: r
|
|
3351
4047
|
});
|
|
3352
|
-
|
|
4048
|
+
o.subscribe(l);
|
|
3353
4049
|
});
|
|
3354
4050
|
}, e.prototype._subscribe = function(n) {
|
|
3355
4051
|
var t;
|
|
3356
4052
|
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(n);
|
|
3357
|
-
}, e.prototype[
|
|
4053
|
+
}, e.prototype[Ae] = function() {
|
|
3358
4054
|
return this;
|
|
3359
4055
|
}, e.prototype.pipe = function() {
|
|
3360
4056
|
for (var n = [], t = 0; t < arguments.length; t++)
|
|
3361
4057
|
n[t] = arguments[t];
|
|
3362
|
-
return
|
|
4058
|
+
return kr(n)(this);
|
|
3363
4059
|
}, e.prototype.toPromise = function(n) {
|
|
3364
4060
|
var t = this;
|
|
3365
|
-
return n = _e(n), new n(function(
|
|
4061
|
+
return n = _e(n), new n(function(o, r) {
|
|
3366
4062
|
var a;
|
|
3367
4063
|
t.subscribe(function(l) {
|
|
3368
4064
|
return a = l;
|
|
3369
4065
|
}, function(l) {
|
|
3370
|
-
return
|
|
4066
|
+
return r(l);
|
|
3371
4067
|
}, function() {
|
|
3372
|
-
return
|
|
4068
|
+
return o(a);
|
|
3373
4069
|
});
|
|
3374
4070
|
});
|
|
3375
4071
|
}, e.create = function(n) {
|
|
@@ -3378,40 +4074,40 @@ var R = function() {
|
|
|
3378
4074
|
}();
|
|
3379
4075
|
function _e(e) {
|
|
3380
4076
|
var n;
|
|
3381
|
-
return (n = e ??
|
|
4077
|
+
return (n = e ?? yt.Promise) !== null && n !== void 0 ? n : Promise;
|
|
3382
4078
|
}
|
|
3383
|
-
function
|
|
3384
|
-
return e &&
|
|
4079
|
+
function Er(e) {
|
|
4080
|
+
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
3385
4081
|
}
|
|
3386
|
-
function
|
|
3387
|
-
return e && e instanceof
|
|
4082
|
+
function Mr(e) {
|
|
4083
|
+
return e && e instanceof Me || Er(e) && ft(e);
|
|
3388
4084
|
}
|
|
3389
|
-
function
|
|
3390
|
-
return
|
|
4085
|
+
function Ar(e) {
|
|
4086
|
+
return N(e == null ? void 0 : e.lift);
|
|
3391
4087
|
}
|
|
3392
|
-
function
|
|
4088
|
+
function Pe(e) {
|
|
3393
4089
|
return function(n) {
|
|
3394
|
-
if (
|
|
4090
|
+
if (Ar(n))
|
|
3395
4091
|
return n.lift(function(t) {
|
|
3396
4092
|
try {
|
|
3397
4093
|
return e(t, this);
|
|
3398
|
-
} catch (
|
|
3399
|
-
this.error(
|
|
4094
|
+
} catch (o) {
|
|
4095
|
+
this.error(o);
|
|
3400
4096
|
}
|
|
3401
4097
|
});
|
|
3402
4098
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
3403
4099
|
};
|
|
3404
4100
|
}
|
|
3405
|
-
function
|
|
3406
|
-
return new
|
|
4101
|
+
function mt(e, n, t, o, r) {
|
|
4102
|
+
return new Pr(e, n, t, o, r);
|
|
3407
4103
|
}
|
|
3408
|
-
var
|
|
3409
|
-
|
|
3410
|
-
function n(t,
|
|
4104
|
+
var Pr = function(e) {
|
|
4105
|
+
Y(n, e);
|
|
4106
|
+
function n(t, o, r, a, l, u) {
|
|
3411
4107
|
var s = e.call(this, t) || this;
|
|
3412
|
-
return s.onFinalize = l, s.shouldUnsubscribe = u, s._next =
|
|
4108
|
+
return s.onFinalize = l, s.shouldUnsubscribe = u, s._next = o ? function(i) {
|
|
3413
4109
|
try {
|
|
3414
|
-
|
|
4110
|
+
o(i);
|
|
3415
4111
|
} catch (d) {
|
|
3416
4112
|
t.error(d);
|
|
3417
4113
|
}
|
|
@@ -3423,9 +4119,9 @@ var Xr = function(e) {
|
|
|
3423
4119
|
} finally {
|
|
3424
4120
|
this.unsubscribe();
|
|
3425
4121
|
}
|
|
3426
|
-
} : e.prototype._error, s._complete =
|
|
4122
|
+
} : e.prototype._error, s._complete = r ? function() {
|
|
3427
4123
|
try {
|
|
3428
|
-
|
|
4124
|
+
r();
|
|
3429
4125
|
} catch (i) {
|
|
3430
4126
|
t.error(i);
|
|
3431
4127
|
} finally {
|
|
@@ -3436,64 +4132,64 @@ var Xr = function(e) {
|
|
|
3436
4132
|
return n.prototype.unsubscribe = function() {
|
|
3437
4133
|
var t;
|
|
3438
4134
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
3439
|
-
var
|
|
3440
|
-
e.prototype.unsubscribe.call(this), !
|
|
4135
|
+
var o = this.closed;
|
|
4136
|
+
e.prototype.unsubscribe.call(this), !o && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
3441
4137
|
}
|
|
3442
4138
|
}, n;
|
|
3443
|
-
}(
|
|
4139
|
+
}(Me), Ir = dt(function(e) {
|
|
3444
4140
|
return function() {
|
|
3445
4141
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
3446
4142
|
};
|
|
3447
|
-
}),
|
|
3448
|
-
|
|
4143
|
+
}), ht = function(e) {
|
|
4144
|
+
Y(n, e);
|
|
3449
4145
|
function n() {
|
|
3450
4146
|
var t = e.call(this) || this;
|
|
3451
4147
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
|
3452
4148
|
}
|
|
3453
4149
|
return n.prototype.lift = function(t) {
|
|
3454
|
-
var
|
|
3455
|
-
return
|
|
4150
|
+
var o = new Ge(this, this);
|
|
4151
|
+
return o.operator = t, o;
|
|
3456
4152
|
}, n.prototype._throwIfClosed = function() {
|
|
3457
4153
|
if (this.closed)
|
|
3458
|
-
throw new
|
|
4154
|
+
throw new Ir();
|
|
3459
4155
|
}, n.prototype.next = function(t) {
|
|
3460
|
-
var
|
|
3461
|
-
|
|
3462
|
-
var
|
|
3463
|
-
if (
|
|
3464
|
-
|
|
4156
|
+
var o = this;
|
|
4157
|
+
ie(function() {
|
|
4158
|
+
var r, a;
|
|
4159
|
+
if (o._throwIfClosed(), !o.isStopped) {
|
|
4160
|
+
o.currentObservers || (o.currentObservers = Array.from(o.observers));
|
|
3465
4161
|
try {
|
|
3466
|
-
for (var l =
|
|
4162
|
+
for (var l = Q(o.currentObservers), u = l.next(); !u.done; u = l.next()) {
|
|
3467
4163
|
var s = u.value;
|
|
3468
4164
|
s.next(t);
|
|
3469
4165
|
}
|
|
3470
4166
|
} catch (i) {
|
|
3471
|
-
|
|
4167
|
+
r = { error: i };
|
|
3472
4168
|
} finally {
|
|
3473
4169
|
try {
|
|
3474
4170
|
u && !u.done && (a = l.return) && a.call(l);
|
|
3475
4171
|
} finally {
|
|
3476
|
-
if (
|
|
4172
|
+
if (r) throw r.error;
|
|
3477
4173
|
}
|
|
3478
4174
|
}
|
|
3479
4175
|
}
|
|
3480
4176
|
});
|
|
3481
4177
|
}, n.prototype.error = function(t) {
|
|
3482
|
-
var
|
|
3483
|
-
|
|
3484
|
-
if (
|
|
3485
|
-
|
|
3486
|
-
for (var
|
|
3487
|
-
|
|
4178
|
+
var o = this;
|
|
4179
|
+
ie(function() {
|
|
4180
|
+
if (o._throwIfClosed(), !o.isStopped) {
|
|
4181
|
+
o.hasError = o.isStopped = !0, o.thrownError = t;
|
|
4182
|
+
for (var r = o.observers; r.length; )
|
|
4183
|
+
r.shift().error(t);
|
|
3488
4184
|
}
|
|
3489
4185
|
});
|
|
3490
4186
|
}, n.prototype.complete = function() {
|
|
3491
4187
|
var t = this;
|
|
3492
|
-
|
|
4188
|
+
ie(function() {
|
|
3493
4189
|
if (t._throwIfClosed(), !t.isStopped) {
|
|
3494
4190
|
t.isStopped = !0;
|
|
3495
|
-
for (var
|
|
3496
|
-
|
|
4191
|
+
for (var o = t.observers; o.length; )
|
|
4192
|
+
o.shift().complete();
|
|
3497
4193
|
}
|
|
3498
4194
|
});
|
|
3499
4195
|
}, n.prototype.unsubscribe = function() {
|
|
@@ -3510,184 +4206,184 @@ var Xr = function(e) {
|
|
|
3510
4206
|
}, n.prototype._subscribe = function(t) {
|
|
3511
4207
|
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
|
3512
4208
|
}, n.prototype._innerSubscribe = function(t) {
|
|
3513
|
-
var
|
|
3514
|
-
return a || l ?
|
|
3515
|
-
|
|
4209
|
+
var o = this, r = this, a = r.hasError, l = r.isStopped, u = r.observers;
|
|
4210
|
+
return a || l ? pt : (this.currentObservers = null, u.push(t), new oe(function() {
|
|
4211
|
+
o.currentObservers = null, de(u, t);
|
|
3516
4212
|
}));
|
|
3517
4213
|
}, n.prototype._checkFinalizedStatuses = function(t) {
|
|
3518
|
-
var
|
|
3519
|
-
|
|
4214
|
+
var o = this, r = o.hasError, a = o.thrownError, l = o.isStopped;
|
|
4215
|
+
r ? t.error(a) : l && t.complete();
|
|
3520
4216
|
}, n.prototype.asObservable = function() {
|
|
3521
|
-
var t = new
|
|
4217
|
+
var t = new _();
|
|
3522
4218
|
return t.source = this, t;
|
|
3523
|
-
}, n.create = function(t,
|
|
3524
|
-
return new
|
|
4219
|
+
}, n.create = function(t, o) {
|
|
4220
|
+
return new Ge(t, o);
|
|
3525
4221
|
}, n;
|
|
3526
|
-
}(
|
|
3527
|
-
|
|
3528
|
-
function n(t,
|
|
3529
|
-
var
|
|
3530
|
-
return
|
|
4222
|
+
}(_), Ge = function(e) {
|
|
4223
|
+
Y(n, e);
|
|
4224
|
+
function n(t, o) {
|
|
4225
|
+
var r = e.call(this) || this;
|
|
4226
|
+
return r.destination = t, r.source = o, r;
|
|
3531
4227
|
}
|
|
3532
4228
|
return n.prototype.next = function(t) {
|
|
3533
|
-
var
|
|
3534
|
-
(
|
|
4229
|
+
var o, r;
|
|
4230
|
+
(r = (o = this.destination) === null || o === void 0 ? void 0 : o.next) === null || r === void 0 || r.call(o, t);
|
|
3535
4231
|
}, n.prototype.error = function(t) {
|
|
3536
|
-
var
|
|
3537
|
-
(
|
|
4232
|
+
var o, r;
|
|
4233
|
+
(r = (o = this.destination) === null || o === void 0 ? void 0 : o.error) === null || r === void 0 || r.call(o, t);
|
|
3538
4234
|
}, n.prototype.complete = function() {
|
|
3539
|
-
var t,
|
|
3540
|
-
(
|
|
4235
|
+
var t, o;
|
|
4236
|
+
(o = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || o === void 0 || o.call(t);
|
|
3541
4237
|
}, n.prototype._subscribe = function(t) {
|
|
3542
|
-
var
|
|
3543
|
-
return (
|
|
4238
|
+
var o, r;
|
|
4239
|
+
return (r = (o = this.source) === null || o === void 0 ? void 0 : o.subscribe(t)) !== null && r !== void 0 ? r : pt;
|
|
3544
4240
|
}, n;
|
|
3545
|
-
}(
|
|
4241
|
+
}(ht), Or = {
|
|
3546
4242
|
now: function() {
|
|
3547
4243
|
return Date.now();
|
|
3548
4244
|
},
|
|
3549
4245
|
delegate: void 0
|
|
3550
|
-
},
|
|
3551
|
-
|
|
3552
|
-
function n(t,
|
|
4246
|
+
}, Nr = function(e) {
|
|
4247
|
+
Y(n, e);
|
|
4248
|
+
function n(t, o) {
|
|
3553
4249
|
return e.call(this) || this;
|
|
3554
4250
|
}
|
|
3555
|
-
return n.prototype.schedule = function(t,
|
|
4251
|
+
return n.prototype.schedule = function(t, o) {
|
|
3556
4252
|
return this;
|
|
3557
4253
|
}, n;
|
|
3558
|
-
}(
|
|
4254
|
+
}(oe), qe = {
|
|
3559
4255
|
setInterval: function(e, n) {
|
|
3560
|
-
for (var t = [],
|
|
3561
|
-
t[
|
|
3562
|
-
return setInterval.apply(void 0,
|
|
4256
|
+
for (var t = [], o = 2; o < arguments.length; o++)
|
|
4257
|
+
t[o - 2] = arguments[o];
|
|
4258
|
+
return setInterval.apply(void 0, ce([e, n], se(t)));
|
|
3563
4259
|
},
|
|
3564
4260
|
clearInterval: function(e) {
|
|
3565
4261
|
return clearInterval(e);
|
|
3566
4262
|
},
|
|
3567
4263
|
delegate: void 0
|
|
3568
|
-
},
|
|
3569
|
-
|
|
3570
|
-
function n(t,
|
|
3571
|
-
var
|
|
3572
|
-
return
|
|
4264
|
+
}, jr = function(e) {
|
|
4265
|
+
Y(n, e);
|
|
4266
|
+
function n(t, o) {
|
|
4267
|
+
var r = e.call(this, t, o) || this;
|
|
4268
|
+
return r.scheduler = t, r.work = o, r.pending = !1, r;
|
|
3573
4269
|
}
|
|
3574
|
-
return n.prototype.schedule = function(t,
|
|
3575
|
-
var
|
|
3576
|
-
if (
|
|
4270
|
+
return n.prototype.schedule = function(t, o) {
|
|
4271
|
+
var r;
|
|
4272
|
+
if (o === void 0 && (o = 0), this.closed)
|
|
3577
4273
|
return this;
|
|
3578
4274
|
this.state = t;
|
|
3579
4275
|
var a = this.id, l = this.scheduler;
|
|
3580
|
-
return a != null && (this.id = this.recycleAsyncId(l, a,
|
|
3581
|
-
}, n.prototype.requestAsyncId = function(t,
|
|
3582
|
-
return
|
|
3583
|
-
}, n.prototype.recycleAsyncId = function(t,
|
|
3584
|
-
if (
|
|
3585
|
-
return
|
|
3586
|
-
|
|
3587
|
-
}, n.prototype.execute = function(t,
|
|
4276
|
+
return a != null && (this.id = this.recycleAsyncId(l, a, o)), this.pending = !0, this.delay = o, this.id = (r = this.id) !== null && r !== void 0 ? r : this.requestAsyncId(l, this.id, o), this;
|
|
4277
|
+
}, n.prototype.requestAsyncId = function(t, o, r) {
|
|
4278
|
+
return r === void 0 && (r = 0), qe.setInterval(t.flush.bind(t, this), r);
|
|
4279
|
+
}, n.prototype.recycleAsyncId = function(t, o, r) {
|
|
4280
|
+
if (r === void 0 && (r = 0), r != null && this.delay === r && this.pending === !1)
|
|
4281
|
+
return o;
|
|
4282
|
+
o != null && qe.clearInterval(o);
|
|
4283
|
+
}, n.prototype.execute = function(t, o) {
|
|
3588
4284
|
if (this.closed)
|
|
3589
4285
|
return new Error("executing a cancelled action");
|
|
3590
4286
|
this.pending = !1;
|
|
3591
|
-
var
|
|
3592
|
-
if (
|
|
3593
|
-
return
|
|
4287
|
+
var r = this._execute(t, o);
|
|
4288
|
+
if (r)
|
|
4289
|
+
return r;
|
|
3594
4290
|
this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null));
|
|
3595
|
-
}, n.prototype._execute = function(t,
|
|
3596
|
-
var
|
|
4291
|
+
}, n.prototype._execute = function(t, o) {
|
|
4292
|
+
var r = !1, a;
|
|
3597
4293
|
try {
|
|
3598
4294
|
this.work(t);
|
|
3599
4295
|
} catch (l) {
|
|
3600
|
-
|
|
4296
|
+
r = !0, a = l || new Error("Scheduled action threw falsy error");
|
|
3601
4297
|
}
|
|
3602
|
-
if (
|
|
4298
|
+
if (r)
|
|
3603
4299
|
return this.unsubscribe(), a;
|
|
3604
4300
|
}, n.prototype.unsubscribe = function() {
|
|
3605
4301
|
if (!this.closed) {
|
|
3606
|
-
var t = this,
|
|
3607
|
-
this.work = this.state = this.scheduler = null, this.pending = !1,
|
|
4302
|
+
var t = this, o = t.id, r = t.scheduler, a = r.actions;
|
|
4303
|
+
this.work = this.state = this.scheduler = null, this.pending = !1, de(a, this), o != null && (this.id = this.recycleAsyncId(r, o, null)), this.delay = null, e.prototype.unsubscribe.call(this);
|
|
3608
4304
|
}
|
|
3609
4305
|
}, n;
|
|
3610
|
-
}(
|
|
4306
|
+
}(Nr), He = function() {
|
|
3611
4307
|
function e(n, t) {
|
|
3612
4308
|
t === void 0 && (t = e.now), this.schedulerActionCtor = n, this.now = t;
|
|
3613
4309
|
}
|
|
3614
|
-
return e.prototype.schedule = function(n, t,
|
|
3615
|
-
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, n).schedule(
|
|
3616
|
-
}, e.now =
|
|
3617
|
-
}(),
|
|
3618
|
-
|
|
3619
|
-
function n(t,
|
|
3620
|
-
|
|
3621
|
-
var
|
|
3622
|
-
return
|
|
4310
|
+
return e.prototype.schedule = function(n, t, o) {
|
|
4311
|
+
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, n).schedule(o, t);
|
|
4312
|
+
}, e.now = Or.now, e;
|
|
4313
|
+
}(), Lr = function(e) {
|
|
4314
|
+
Y(n, e);
|
|
4315
|
+
function n(t, o) {
|
|
4316
|
+
o === void 0 && (o = He.now);
|
|
4317
|
+
var r = e.call(this, t, o) || this;
|
|
4318
|
+
return r.actions = [], r._active = !1, r;
|
|
3623
4319
|
}
|
|
3624
4320
|
return n.prototype.flush = function(t) {
|
|
3625
|
-
var
|
|
4321
|
+
var o = this.actions;
|
|
3626
4322
|
if (this._active) {
|
|
3627
|
-
|
|
4323
|
+
o.push(t);
|
|
3628
4324
|
return;
|
|
3629
4325
|
}
|
|
3630
|
-
var
|
|
4326
|
+
var r;
|
|
3631
4327
|
this._active = !0;
|
|
3632
4328
|
do
|
|
3633
|
-
if (
|
|
4329
|
+
if (r = t.execute(t.state, t.delay))
|
|
3634
4330
|
break;
|
|
3635
|
-
while (t =
|
|
3636
|
-
if (this._active = !1,
|
|
3637
|
-
for (; t =
|
|
4331
|
+
while (t = o.shift());
|
|
4332
|
+
if (this._active = !1, r) {
|
|
4333
|
+
for (; t = o.shift(); )
|
|
3638
4334
|
t.unsubscribe();
|
|
3639
|
-
throw
|
|
4335
|
+
throw r;
|
|
3640
4336
|
}
|
|
3641
4337
|
}, n;
|
|
3642
|
-
}(He),
|
|
3643
|
-
function
|
|
3644
|
-
return e &&
|
|
4338
|
+
}(He), $r = new Lr(jr);
|
|
4339
|
+
function Dr(e) {
|
|
4340
|
+
return e && N(e.schedule);
|
|
3645
4341
|
}
|
|
3646
|
-
function
|
|
4342
|
+
function Rr(e) {
|
|
3647
4343
|
return e[e.length - 1];
|
|
3648
4344
|
}
|
|
3649
|
-
function
|
|
3650
|
-
return
|
|
4345
|
+
function Ur(e) {
|
|
4346
|
+
return Dr(Rr(e)) ? e.pop() : void 0;
|
|
3651
4347
|
}
|
|
3652
|
-
var
|
|
4348
|
+
var bt = function(e) {
|
|
3653
4349
|
return e && typeof e.length == "number" && typeof e != "function";
|
|
3654
4350
|
};
|
|
3655
|
-
function
|
|
3656
|
-
return
|
|
4351
|
+
function gt(e) {
|
|
4352
|
+
return N(e == null ? void 0 : e.then);
|
|
3657
4353
|
}
|
|
3658
|
-
function
|
|
3659
|
-
return
|
|
4354
|
+
function Ct(e) {
|
|
4355
|
+
return N(e[Ae]);
|
|
3660
4356
|
}
|
|
3661
|
-
function
|
|
3662
|
-
return Symbol.asyncIterator &&
|
|
4357
|
+
function St(e) {
|
|
4358
|
+
return Symbol.asyncIterator && N(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
3663
4359
|
}
|
|
3664
|
-
function
|
|
4360
|
+
function wt(e) {
|
|
3665
4361
|
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.");
|
|
3666
4362
|
}
|
|
3667
|
-
function
|
|
4363
|
+
function _r() {
|
|
3668
4364
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
3669
4365
|
}
|
|
3670
|
-
var
|
|
3671
|
-
function
|
|
3672
|
-
return
|
|
4366
|
+
var xt = _r();
|
|
4367
|
+
function Vt(e) {
|
|
4368
|
+
return N(e == null ? void 0 : e[xt]);
|
|
3673
4369
|
}
|
|
3674
|
-
function
|
|
3675
|
-
return
|
|
3676
|
-
var t,
|
|
3677
|
-
return
|
|
4370
|
+
function Bt(e) {
|
|
4371
|
+
return Cr(this, arguments, function() {
|
|
4372
|
+
var t, o, r, a;
|
|
4373
|
+
return ct(this, function(l) {
|
|
3678
4374
|
switch (l.label) {
|
|
3679
4375
|
case 0:
|
|
3680
4376
|
t = e.getReader(), l.label = 1;
|
|
3681
4377
|
case 1:
|
|
3682
4378
|
l.trys.push([1, , 9, 10]), l.label = 2;
|
|
3683
4379
|
case 2:
|
|
3684
|
-
return [4,
|
|
4380
|
+
return [4, X(t.read())];
|
|
3685
4381
|
case 3:
|
|
3686
|
-
return
|
|
4382
|
+
return o = l.sent(), r = o.value, a = o.done, a ? [4, X(void 0)] : [3, 5];
|
|
3687
4383
|
case 4:
|
|
3688
4384
|
return [2, l.sent()];
|
|
3689
4385
|
case 5:
|
|
3690
|
-
return [4,
|
|
4386
|
+
return [4, X(r)];
|
|
3691
4387
|
case 6:
|
|
3692
4388
|
return [4, l.sent()];
|
|
3693
4389
|
case 7:
|
|
@@ -3702,57 +4398,57 @@ function wt(e) {
|
|
|
3702
4398
|
});
|
|
3703
4399
|
});
|
|
3704
4400
|
}
|
|
3705
|
-
function
|
|
3706
|
-
return
|
|
4401
|
+
function Tt(e) {
|
|
4402
|
+
return N(e == null ? void 0 : e.getReader);
|
|
3707
4403
|
}
|
|
3708
|
-
function
|
|
3709
|
-
if (e instanceof
|
|
4404
|
+
function Ie(e) {
|
|
4405
|
+
if (e instanceof _)
|
|
3710
4406
|
return e;
|
|
3711
4407
|
if (e != null) {
|
|
3712
|
-
if (mt(e))
|
|
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);
|
|
3722
4408
|
if (Ct(e))
|
|
3723
|
-
return
|
|
4409
|
+
return Gr(e);
|
|
4410
|
+
if (bt(e))
|
|
4411
|
+
return qr(e);
|
|
4412
|
+
if (gt(e))
|
|
4413
|
+
return Hr(e);
|
|
4414
|
+
if (St(e))
|
|
4415
|
+
return Ft(e);
|
|
4416
|
+
if (Vt(e))
|
|
4417
|
+
return Wr(e);
|
|
4418
|
+
if (Tt(e))
|
|
4419
|
+
return zr(e);
|
|
3724
4420
|
}
|
|
3725
|
-
throw
|
|
4421
|
+
throw wt(e);
|
|
3726
4422
|
}
|
|
3727
|
-
function
|
|
3728
|
-
return new
|
|
3729
|
-
var t = e[
|
|
3730
|
-
if (
|
|
4423
|
+
function Gr(e) {
|
|
4424
|
+
return new _(function(n) {
|
|
4425
|
+
var t = e[Ae]();
|
|
4426
|
+
if (N(t.subscribe))
|
|
3731
4427
|
return t.subscribe(n);
|
|
3732
4428
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
3733
4429
|
});
|
|
3734
4430
|
}
|
|
3735
|
-
function
|
|
3736
|
-
return new
|
|
4431
|
+
function qr(e) {
|
|
4432
|
+
return new _(function(n) {
|
|
3737
4433
|
for (var t = 0; t < e.length && !n.closed; t++)
|
|
3738
4434
|
n.next(e[t]);
|
|
3739
4435
|
n.complete();
|
|
3740
4436
|
});
|
|
3741
4437
|
}
|
|
3742
|
-
function
|
|
3743
|
-
return new
|
|
4438
|
+
function Hr(e) {
|
|
4439
|
+
return new _(function(n) {
|
|
3744
4440
|
e.then(function(t) {
|
|
3745
4441
|
n.closed || (n.next(t), n.complete());
|
|
3746
4442
|
}, function(t) {
|
|
3747
4443
|
return n.error(t);
|
|
3748
|
-
}).then(null,
|
|
4444
|
+
}).then(null, vt);
|
|
3749
4445
|
});
|
|
3750
4446
|
}
|
|
3751
|
-
function
|
|
3752
|
-
return new
|
|
3753
|
-
var t,
|
|
4447
|
+
function Wr(e) {
|
|
4448
|
+
return new _(function(n) {
|
|
4449
|
+
var t, o;
|
|
3754
4450
|
try {
|
|
3755
|
-
for (var
|
|
4451
|
+
for (var r = Q(e), a = r.next(); !a.done; a = r.next()) {
|
|
3756
4452
|
var l = a.value;
|
|
3757
4453
|
if (n.next(l), n.closed)
|
|
3758
4454
|
return;
|
|
@@ -3761,7 +4457,7 @@ function fo(e) {
|
|
|
3761
4457
|
t = { error: u };
|
|
3762
4458
|
} finally {
|
|
3763
4459
|
try {
|
|
3764
|
-
a && !a.done && (
|
|
4460
|
+
a && !a.done && (o = r.return) && o.call(r);
|
|
3765
4461
|
} finally {
|
|
3766
4462
|
if (t) throw t.error;
|
|
3767
4463
|
}
|
|
@@ -3769,29 +4465,29 @@ function fo(e) {
|
|
|
3769
4465
|
n.complete();
|
|
3770
4466
|
});
|
|
3771
4467
|
}
|
|
3772
|
-
function
|
|
3773
|
-
return new
|
|
3774
|
-
|
|
4468
|
+
function Ft(e) {
|
|
4469
|
+
return new _(function(n) {
|
|
4470
|
+
Yr(e, n).catch(function(t) {
|
|
3775
4471
|
return n.error(t);
|
|
3776
4472
|
});
|
|
3777
4473
|
});
|
|
3778
4474
|
}
|
|
3779
|
-
function
|
|
3780
|
-
return
|
|
4475
|
+
function zr(e) {
|
|
4476
|
+
return Ft(Bt(e));
|
|
3781
4477
|
}
|
|
3782
|
-
function
|
|
3783
|
-
var t,
|
|
3784
|
-
return
|
|
4478
|
+
function Yr(e, n) {
|
|
4479
|
+
var t, o, r, a;
|
|
4480
|
+
return gr(this, void 0, void 0, function() {
|
|
3785
4481
|
var l, u;
|
|
3786
|
-
return
|
|
4482
|
+
return ct(this, function(s) {
|
|
3787
4483
|
switch (s.label) {
|
|
3788
4484
|
case 0:
|
|
3789
|
-
s.trys.push([0, 5, 6, 11]), t =
|
|
4485
|
+
s.trys.push([0, 5, 6, 11]), t = Sr(e), s.label = 1;
|
|
3790
4486
|
case 1:
|
|
3791
4487
|
return [4, t.next()];
|
|
3792
4488
|
case 2:
|
|
3793
|
-
if (
|
|
3794
|
-
if (l =
|
|
4489
|
+
if (o = s.sent(), !!o.done) return [3, 4];
|
|
4490
|
+
if (l = o.value, n.next(l), n.closed)
|
|
3795
4491
|
return [2];
|
|
3796
4492
|
s.label = 3;
|
|
3797
4493
|
case 3:
|
|
@@ -3799,15 +4495,15 @@ function yo(e, n) {
|
|
|
3799
4495
|
case 4:
|
|
3800
4496
|
return [3, 11];
|
|
3801
4497
|
case 5:
|
|
3802
|
-
return u = s.sent(),
|
|
4498
|
+
return u = s.sent(), r = { error: u }, [3, 11];
|
|
3803
4499
|
case 6:
|
|
3804
|
-
return s.trys.push([6, , 9, 10]),
|
|
4500
|
+
return s.trys.push([6, , 9, 10]), o && !o.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
|
|
3805
4501
|
case 7:
|
|
3806
4502
|
s.sent(), s.label = 8;
|
|
3807
4503
|
case 8:
|
|
3808
4504
|
return [3, 10];
|
|
3809
4505
|
case 9:
|
|
3810
|
-
if (
|
|
4506
|
+
if (r) throw r.error;
|
|
3811
4507
|
return [7];
|
|
3812
4508
|
case 10:
|
|
3813
4509
|
return [7];
|
|
@@ -3817,60 +4513,60 @@ function yo(e, n) {
|
|
|
3817
4513
|
});
|
|
3818
4514
|
});
|
|
3819
4515
|
}
|
|
3820
|
-
function
|
|
3821
|
-
|
|
4516
|
+
function Z(e, n, t, o, r) {
|
|
4517
|
+
o === void 0 && (o = 0), r === void 0 && (r = !1);
|
|
3822
4518
|
var a = n.schedule(function() {
|
|
3823
|
-
t(),
|
|
3824
|
-
},
|
|
3825
|
-
if (e.add(a), !
|
|
4519
|
+
t(), r ? e.add(this.schedule(null, o)) : this.unsubscribe();
|
|
4520
|
+
}, o);
|
|
4521
|
+
if (e.add(a), !r)
|
|
3826
4522
|
return a;
|
|
3827
4523
|
}
|
|
3828
|
-
function
|
|
3829
|
-
return n === void 0 && (n = 0),
|
|
3830
|
-
t.subscribe(
|
|
3831
|
-
return
|
|
3832
|
-
return
|
|
4524
|
+
function kt(e, n) {
|
|
4525
|
+
return n === void 0 && (n = 0), Pe(function(t, o) {
|
|
4526
|
+
t.subscribe(mt(o, function(r) {
|
|
4527
|
+
return Z(o, e, function() {
|
|
4528
|
+
return o.next(r);
|
|
3833
4529
|
}, n);
|
|
3834
4530
|
}, function() {
|
|
3835
|
-
return
|
|
3836
|
-
return
|
|
4531
|
+
return Z(o, e, function() {
|
|
4532
|
+
return o.complete();
|
|
3837
4533
|
}, n);
|
|
3838
|
-
}, function(
|
|
3839
|
-
return
|
|
3840
|
-
return
|
|
4534
|
+
}, function(r) {
|
|
4535
|
+
return Z(o, e, function() {
|
|
4536
|
+
return o.error(r);
|
|
3841
4537
|
}, n);
|
|
3842
4538
|
}));
|
|
3843
4539
|
});
|
|
3844
4540
|
}
|
|
3845
|
-
function
|
|
3846
|
-
return n === void 0 && (n = 0),
|
|
3847
|
-
|
|
3848
|
-
return t.subscribe(
|
|
4541
|
+
function Et(e, n) {
|
|
4542
|
+
return n === void 0 && (n = 0), Pe(function(t, o) {
|
|
4543
|
+
o.add(e.schedule(function() {
|
|
4544
|
+
return t.subscribe(o);
|
|
3849
4545
|
}, n));
|
|
3850
4546
|
});
|
|
3851
4547
|
}
|
|
3852
|
-
function
|
|
3853
|
-
return
|
|
4548
|
+
function Zr(e, n) {
|
|
4549
|
+
return Ie(e).pipe(Et(n), kt(n));
|
|
3854
4550
|
}
|
|
3855
|
-
function
|
|
3856
|
-
return
|
|
4551
|
+
function Jr(e, n) {
|
|
4552
|
+
return Ie(e).pipe(Et(n), kt(n));
|
|
3857
4553
|
}
|
|
3858
|
-
function
|
|
3859
|
-
return new
|
|
3860
|
-
var
|
|
4554
|
+
function Xr(e, n) {
|
|
4555
|
+
return new _(function(t) {
|
|
4556
|
+
var o = 0;
|
|
3861
4557
|
return n.schedule(function() {
|
|
3862
|
-
|
|
4558
|
+
o === e.length ? t.complete() : (t.next(e[o++]), t.closed || this.schedule());
|
|
3863
4559
|
});
|
|
3864
4560
|
});
|
|
3865
4561
|
}
|
|
3866
|
-
function
|
|
3867
|
-
return new
|
|
3868
|
-
var
|
|
3869
|
-
return
|
|
3870
|
-
|
|
3871
|
-
var
|
|
4562
|
+
function Qr(e, n) {
|
|
4563
|
+
return new _(function(t) {
|
|
4564
|
+
var o;
|
|
4565
|
+
return Z(t, n, function() {
|
|
4566
|
+
o = e[xt](), Z(t, n, function() {
|
|
4567
|
+
var r, a, l;
|
|
3872
4568
|
try {
|
|
3873
|
-
|
|
4569
|
+
r = o.next(), a = r.value, l = r.done;
|
|
3874
4570
|
} catch (u) {
|
|
3875
4571
|
t.error(u);
|
|
3876
4572
|
return;
|
|
@@ -3878,158 +4574,158 @@ function go(e, n) {
|
|
|
3878
4574
|
l ? t.complete() : t.next(a);
|
|
3879
4575
|
}, 0, !0);
|
|
3880
4576
|
}), function() {
|
|
3881
|
-
return
|
|
4577
|
+
return N(o == null ? void 0 : o.return) && o.return();
|
|
3882
4578
|
};
|
|
3883
4579
|
});
|
|
3884
4580
|
}
|
|
3885
|
-
function
|
|
4581
|
+
function Mt(e, n) {
|
|
3886
4582
|
if (!e)
|
|
3887
4583
|
throw new Error("Iterable cannot be null");
|
|
3888
|
-
return new
|
|
3889
|
-
|
|
3890
|
-
var
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
4584
|
+
return new _(function(t) {
|
|
4585
|
+
Z(t, n, function() {
|
|
4586
|
+
var o = e[Symbol.asyncIterator]();
|
|
4587
|
+
Z(t, n, function() {
|
|
4588
|
+
o.next().then(function(r) {
|
|
4589
|
+
r.done ? t.complete() : t.next(r.value);
|
|
3894
4590
|
});
|
|
3895
4591
|
}, 0, !0);
|
|
3896
4592
|
});
|
|
3897
4593
|
});
|
|
3898
4594
|
}
|
|
3899
|
-
function
|
|
3900
|
-
return Bt(
|
|
4595
|
+
function Kr(e, n) {
|
|
4596
|
+
return Mt(Bt(e), n);
|
|
3901
4597
|
}
|
|
3902
|
-
function
|
|
4598
|
+
function ea(e, n) {
|
|
3903
4599
|
if (e != null) {
|
|
3904
|
-
if (mt(e))
|
|
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);
|
|
3914
4600
|
if (Ct(e))
|
|
3915
|
-
return
|
|
4601
|
+
return Zr(e, n);
|
|
4602
|
+
if (bt(e))
|
|
4603
|
+
return Xr(e, n);
|
|
4604
|
+
if (gt(e))
|
|
4605
|
+
return Jr(e, n);
|
|
4606
|
+
if (St(e))
|
|
4607
|
+
return Mt(e, n);
|
|
4608
|
+
if (Vt(e))
|
|
4609
|
+
return Qr(e, n);
|
|
4610
|
+
if (Tt(e))
|
|
4611
|
+
return Kr(e, n);
|
|
3916
4612
|
}
|
|
3917
|
-
throw
|
|
4613
|
+
throw wt(e);
|
|
3918
4614
|
}
|
|
3919
|
-
function
|
|
3920
|
-
return n ?
|
|
4615
|
+
function ta(e, n) {
|
|
4616
|
+
return n ? ea(e, n) : Ie(e);
|
|
3921
4617
|
}
|
|
3922
|
-
function
|
|
4618
|
+
function na() {
|
|
3923
4619
|
for (var e = [], n = 0; n < arguments.length; n++)
|
|
3924
4620
|
e[n] = arguments[n];
|
|
3925
|
-
var t =
|
|
3926
|
-
return
|
|
4621
|
+
var t = Ur(e);
|
|
4622
|
+
return ta(e, t);
|
|
3927
4623
|
}
|
|
3928
|
-
function
|
|
3929
|
-
return n === void 0 && (n =
|
|
3930
|
-
var
|
|
3931
|
-
if (
|
|
3932
|
-
|
|
4624
|
+
function oa(e, n) {
|
|
4625
|
+
return n === void 0 && (n = $r), Pe(function(t, o) {
|
|
4626
|
+
var r = null, a = null, l = null, u = function() {
|
|
4627
|
+
if (r) {
|
|
4628
|
+
r.unsubscribe(), r = null;
|
|
3933
4629
|
var i = a;
|
|
3934
|
-
a = null,
|
|
4630
|
+
a = null, o.next(i);
|
|
3935
4631
|
}
|
|
3936
4632
|
};
|
|
3937
4633
|
function s() {
|
|
3938
4634
|
var i = l + e, d = n.now();
|
|
3939
4635
|
if (d < i) {
|
|
3940
|
-
|
|
4636
|
+
r = this.schedule(void 0, i - d), o.add(r);
|
|
3941
4637
|
return;
|
|
3942
4638
|
}
|
|
3943
4639
|
u();
|
|
3944
4640
|
}
|
|
3945
|
-
t.subscribe(
|
|
3946
|
-
a = i, l = n.now(),
|
|
4641
|
+
t.subscribe(mt(o, function(i) {
|
|
4642
|
+
a = i, l = n.now(), r || (r = n.schedule(s, e), o.add(r));
|
|
3947
4643
|
}, function() {
|
|
3948
|
-
u(),
|
|
4644
|
+
u(), o.complete();
|
|
3949
4645
|
}, void 0, function() {
|
|
3950
|
-
a =
|
|
4646
|
+
a = r = null;
|
|
3951
4647
|
}));
|
|
3952
4648
|
});
|
|
3953
4649
|
}
|
|
3954
|
-
const
|
|
4650
|
+
const me = /* @__PURE__ */ G({
|
|
3955
4651
|
name: "FPropertyEditor",
|
|
3956
|
-
props:
|
|
4652
|
+
props: Ze,
|
|
3957
4653
|
emits: ["propertyEditorValueChanged"],
|
|
3958
4654
|
setup(e, n) {
|
|
3959
|
-
const t =
|
|
4655
|
+
const t = v(Gn), o = v(""), r = v("const"), a = v([]), l = v(!1);
|
|
3960
4656
|
let u;
|
|
3961
|
-
const s =
|
|
4657
|
+
const s = v(""), i = v(""), d = v([]);
|
|
3962
4658
|
let c;
|
|
3963
|
-
const f =
|
|
3964
|
-
|
|
3965
|
-
const
|
|
4659
|
+
const f = v([]), p = v("是");
|
|
4660
|
+
v("");
|
|
4661
|
+
const y = v(!1), m = v("<span class='f-icon f-icon-more-horizontal'></span>"), b = v(!1), S = v([]), {
|
|
3966
4662
|
numberConstValue: E,
|
|
3967
|
-
bindVariableValue:
|
|
3968
|
-
dataStatesBindValue:
|
|
4663
|
+
bindVariableValue: M,
|
|
4664
|
+
dataStatesBindValue: x,
|
|
3969
4665
|
dataStatesValueArray: T,
|
|
3970
|
-
constEnumBindValue:
|
|
4666
|
+
constEnumBindValue: C,
|
|
3971
4667
|
setValue: F
|
|
3972
|
-
} =
|
|
4668
|
+
} = hr(t, a, r, c, p, o, y), {
|
|
3973
4669
|
updateData: A,
|
|
3974
|
-
changeState:
|
|
3975
|
-
prefix:
|
|
3976
|
-
propertyEditorValueChange:
|
|
3977
|
-
} =
|
|
4670
|
+
changeState: I,
|
|
4671
|
+
prefix: W,
|
|
4672
|
+
propertyEditorValueChange: U
|
|
4673
|
+
} = br(n, t, C, a, P, f, c, p, T, o, b, r);
|
|
3978
4674
|
function K() {
|
|
3979
|
-
S.value =
|
|
4675
|
+
S.value = _n.value.filter((h) => t.value.editorOptions.types.includes(h.id));
|
|
3980
4676
|
}
|
|
3981
|
-
function
|
|
3982
|
-
|
|
4677
|
+
function k() {
|
|
4678
|
+
r.value = B(S.value.find((h) => h.id === t.value.propertyValue.type));
|
|
3983
4679
|
}
|
|
3984
|
-
function
|
|
3985
|
-
|
|
4680
|
+
function L() {
|
|
4681
|
+
k(), r.value.id === "variable" && t.value.propertyValue.value === void 0 && (t.value.propertyValue = B(P.value.variableValue)), P.value[`${r.value.id}Value`] = B(t.value.propertyValue), F();
|
|
3986
4682
|
}
|
|
3987
4683
|
function re(h) {
|
|
3988
|
-
|
|
4684
|
+
r.value = B(S.value.find((j) => j.label === h[0].label)), r.value.id === "expression" && (P.value.expressionValue.value && (o.value = P.value.expressionValue.value.value), y.value = !0), r.value.id === "custom" && _t(), A();
|
|
3989
4685
|
}
|
|
3990
|
-
function
|
|
3991
|
-
|
|
4686
|
+
function fe(h) {
|
|
4687
|
+
C.value = B(h.value), t.value.propertyValue.value = B(h.value), P.value.constValue.value = B(h.value), A();
|
|
3992
4688
|
}
|
|
3993
|
-
function
|
|
4689
|
+
function At(h) {
|
|
3994
4690
|
P.value.constValue.value = h, A();
|
|
3995
4691
|
}
|
|
3996
|
-
function
|
|
4692
|
+
function Pt(h) {
|
|
3997
4693
|
P.value.constValue.value = h, A();
|
|
3998
4694
|
}
|
|
3999
|
-
function
|
|
4000
|
-
const h = t.value.propertyName, j = h[0].toUpperCase() + h.substr(1),
|
|
4001
|
-
u = `${
|
|
4695
|
+
function It() {
|
|
4696
|
+
const h = t.value.propertyName, j = h[0].toUpperCase() + h.substr(1), R = t.value.controlName, je = t.value.editorOptions.newVariablePrefix || "", nn = je ? R[0].toUpperCase() + R.substr(1) : R[0].toLowerCase() + R.substr(1);
|
|
4697
|
+
u = `${je}${nn}${j}`, Ot();
|
|
4002
4698
|
}
|
|
4003
|
-
function
|
|
4004
|
-
|
|
4699
|
+
function Ot() {
|
|
4700
|
+
Nt(), r.value.id === "variable" && (M.value = t.value.propertyValue.value.path), Oe(), i.value !== t.value.propertyValue.value.path && A();
|
|
4005
4701
|
}
|
|
4006
|
-
function
|
|
4702
|
+
function Nt() {
|
|
4007
4703
|
var j;
|
|
4008
4704
|
let h = 0;
|
|
4009
|
-
(j = t.value.editorOptions.variables) == null || j.forEach((
|
|
4010
|
-
|
|
4011
|
-
}),
|
|
4705
|
+
(j = t.value.editorOptions.variables) == null || j.forEach((R) => {
|
|
4706
|
+
R.path !== u ? h += 1 : (i.value = t.value.propertyValue.value.path, t.value.propertyValue.value = B(R), P.value.variableValue.value = B(R));
|
|
4707
|
+
}), jt(h);
|
|
4012
4708
|
}
|
|
4013
|
-
function
|
|
4709
|
+
function jt(h) {
|
|
4014
4710
|
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,
|
|
4711
|
+
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, U.value.isNewVariable = !0, t.value.editorOptions.variables.push(B(t.value.propertyValue.value)), P.value.variableValue.value = B(t.value.propertyValue.value));
|
|
4016
4712
|
}
|
|
4017
|
-
function
|
|
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),
|
|
4713
|
+
function Lt(h) {
|
|
4714
|
+
!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), M.value = B(h.value), A());
|
|
4019
4715
|
}
|
|
4020
|
-
function
|
|
4021
|
-
t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "",
|
|
4716
|
+
function $t() {
|
|
4717
|
+
t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "", r.value.id === "variable" && (M.value = t.value.propertyValue.value.path), A();
|
|
4022
4718
|
}
|
|
4023
|
-
function
|
|
4719
|
+
function Oe() {
|
|
4024
4720
|
d.value = B(t.value.editorOptions.variables);
|
|
4025
4721
|
}
|
|
4026
|
-
const
|
|
4027
|
-
const j = t.value.editorOptions.getVariables,
|
|
4722
|
+
const Dt = (h) => {
|
|
4723
|
+
const j = t.value.editorOptions.getVariables, R = {
|
|
4028
4724
|
showDialog: !0
|
|
4029
4725
|
};
|
|
4030
|
-
return j && (d.value = j(), h && (h.data = d)),
|
|
4726
|
+
return j && (d.value = j(), h && (h.data = d)), na(R);
|
|
4031
4727
|
};
|
|
4032
|
-
function
|
|
4728
|
+
function Rt(h) {
|
|
4033
4729
|
const j = {
|
|
4034
4730
|
id: h[0].id,
|
|
4035
4731
|
name: h[0].exist,
|
|
@@ -4037,92 +4733,92 @@ const ye = /* @__PURE__ */ W({
|
|
|
4037
4733
|
};
|
|
4038
4734
|
P.value.stateMachineValue.value = B(j), p.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", c = B(j.id), A();
|
|
4039
4735
|
}
|
|
4040
|
-
function
|
|
4736
|
+
function Ut() {
|
|
4041
4737
|
f.value = B(t.value.editorOptions.stateMachine), p.value = P.value.stateMachineValue.value.exist === "是" ? "是" : "否";
|
|
4042
4738
|
}
|
|
4043
|
-
const
|
|
4044
|
-
function
|
|
4045
|
-
|
|
4739
|
+
const Ne = new ht();
|
|
4740
|
+
function _t() {
|
|
4741
|
+
Ne.pipe(oa(700)).subscribe((h) => {
|
|
4046
4742
|
P.value.customValue.value = h, A();
|
|
4047
4743
|
});
|
|
4048
4744
|
}
|
|
4049
|
-
function
|
|
4050
|
-
|
|
4745
|
+
function Gt(h) {
|
|
4746
|
+
Ne.next(h);
|
|
4051
4747
|
}
|
|
4052
|
-
function
|
|
4748
|
+
function qt() {
|
|
4053
4749
|
}
|
|
4054
|
-
function
|
|
4750
|
+
function Ht(h) {
|
|
4055
4751
|
t.value.propertyValue.value = B(h), P.value.dataStatesValue.value = B(h);
|
|
4056
|
-
const j = h.map((
|
|
4057
|
-
|
|
4752
|
+
const j = h.map((R) => R.valueField).join(",");
|
|
4753
|
+
x.value = B(j), A();
|
|
4058
4754
|
}
|
|
4059
|
-
function
|
|
4060
|
-
return
|
|
4755
|
+
function Wt() {
|
|
4756
|
+
return g("div", {
|
|
4061
4757
|
class: "f-page-single-property-editor-component-right-variable"
|
|
4062
|
-
}, [
|
|
4758
|
+
}, [g(H, {
|
|
4063
4759
|
class: [{
|
|
4064
4760
|
"form-control-select-show": l.value
|
|
4065
4761
|
}, {
|
|
4066
4762
|
"form-control-select-hide": !l.value
|
|
4067
4763
|
}],
|
|
4068
|
-
modelValue:
|
|
4069
|
-
"onUpdate:modelValue": (h) =>
|
|
4764
|
+
modelValue: M.value,
|
|
4765
|
+
"onUpdate:modelValue": (h) => M.value = h,
|
|
4070
4766
|
placeholder: "",
|
|
4071
4767
|
viewType: "text",
|
|
4072
4768
|
enableClear: !0,
|
|
4073
4769
|
valueField: "path",
|
|
4074
4770
|
textField: "fullPath",
|
|
4075
4771
|
data: d.value,
|
|
4076
|
-
beforeShow:
|
|
4772
|
+
beforeShow: Dt,
|
|
4077
4773
|
readonly: b.value,
|
|
4078
4774
|
editable: !1,
|
|
4079
|
-
onValueChange: (h) =>
|
|
4080
|
-
onClear:
|
|
4081
|
-
}, null), l.value ?
|
|
4775
|
+
onValueChange: (h) => Lt(h),
|
|
4776
|
+
onClear: $t
|
|
4777
|
+
}, null), l.value ? g("div", {
|
|
4082
4778
|
class: "f-page-single-property-editor-component-variable-button"
|
|
4083
|
-
}, [
|
|
4779
|
+
}, [g("button", {
|
|
4084
4780
|
title: "variable-button",
|
|
4085
4781
|
class: "f-variable-button",
|
|
4086
|
-
onClick:
|
|
4087
|
-
}, [
|
|
4782
|
+
onClick: It
|
|
4783
|
+
}, [g("span", {
|
|
4088
4784
|
class: "f-icon f-icon-add",
|
|
4089
4785
|
style: "margin:unset;"
|
|
4090
4786
|
}, null)])]) : ""]);
|
|
4091
4787
|
}
|
|
4092
|
-
function
|
|
4093
|
-
return
|
|
4788
|
+
function zt() {
|
|
4789
|
+
return g("div", {
|
|
4094
4790
|
class: "f-page-single-property-editor-component-right-customize"
|
|
4095
|
-
}, [
|
|
4791
|
+
}, [he(g("input", {
|
|
4096
4792
|
class: "form-control",
|
|
4097
4793
|
placeholder: "输入自定义内容",
|
|
4098
4794
|
"onUpdate:modelValue": (h) => P.value.customValue.value = h,
|
|
4099
|
-
onChange: (h) =>
|
|
4795
|
+
onChange: (h) => Gt(h.target.value),
|
|
4100
4796
|
disabled: b.value
|
|
4101
|
-
}, null), [[
|
|
4797
|
+
}, null), [[Le, P.value.customValue.value]])]);
|
|
4102
4798
|
}
|
|
4103
|
-
function
|
|
4104
|
-
return
|
|
4799
|
+
function Yt() {
|
|
4800
|
+
return g("div", {
|
|
4105
4801
|
class: "f-page-single-property-editor-component-right-expression"
|
|
4106
|
-
}, [
|
|
4802
|
+
}, [g(ee, {
|
|
4107
4803
|
editable: !1,
|
|
4108
4804
|
enableClear: !1,
|
|
4109
4805
|
readonly: b.value,
|
|
4110
4806
|
groupText: m.value,
|
|
4111
|
-
modelValue:
|
|
4112
|
-
"onUpdate:modelValue": (h) =>
|
|
4113
|
-
onClickHandle:
|
|
4807
|
+
modelValue: o.value,
|
|
4808
|
+
"onUpdate:modelValue": (h) => o.value = h,
|
|
4809
|
+
onClickHandle: qt
|
|
4114
4810
|
}, null)]);
|
|
4115
4811
|
}
|
|
4116
|
-
function
|
|
4117
|
-
return
|
|
4812
|
+
function Zt() {
|
|
4813
|
+
return g("div", {
|
|
4118
4814
|
class: "f-page-single-property-editor-component-right-stateMachine"
|
|
4119
|
-
}, [
|
|
4815
|
+
}, [g("div", {
|
|
4120
4816
|
class: "f-stateMachine-exist",
|
|
4121
|
-
onClick:
|
|
4122
|
-
}, [p.value]),
|
|
4817
|
+
onClick: I
|
|
4818
|
+
}, [p.value]), g("div", {
|
|
4123
4819
|
class: "f-stateMachine-combo",
|
|
4124
4820
|
style: "border:unset"
|
|
4125
|
-
}, [
|
|
4821
|
+
}, [g(H, {
|
|
4126
4822
|
modelValue: c,
|
|
4127
4823
|
"onUpdate:modelValue": (h) => c = h,
|
|
4128
4824
|
placeholder: "",
|
|
@@ -4134,16 +4830,16 @@ const ye = /* @__PURE__ */ W({
|
|
|
4134
4830
|
editable: !1,
|
|
4135
4831
|
readonly: b.value,
|
|
4136
4832
|
onChange: (h) => {
|
|
4137
|
-
|
|
4833
|
+
Rt(h);
|
|
4138
4834
|
}
|
|
4139
4835
|
}, null)])]);
|
|
4140
4836
|
}
|
|
4141
|
-
function
|
|
4142
|
-
return
|
|
4837
|
+
function Jt() {
|
|
4838
|
+
return g("div", {
|
|
4143
4839
|
class: "f-page-single-property-editor-component-right-dataStates"
|
|
4144
|
-
}, [
|
|
4145
|
-
modelValue:
|
|
4146
|
-
"onUpdate:modelValue": (h) =>
|
|
4840
|
+
}, [g(H, {
|
|
4841
|
+
modelValue: x.value,
|
|
4842
|
+
"onUpdate:modelValue": (h) => x.value = h,
|
|
4147
4843
|
placeholder: "",
|
|
4148
4844
|
viewType: "text",
|
|
4149
4845
|
enableClear: !1,
|
|
@@ -4155,24 +4851,24 @@ const ye = /* @__PURE__ */ W({
|
|
|
4155
4851
|
data: T.value,
|
|
4156
4852
|
editable: !1,
|
|
4157
4853
|
readonly: b.value,
|
|
4158
|
-
onChange: (h) =>
|
|
4854
|
+
onChange: (h) => Ht(h)
|
|
4159
4855
|
}, null)]);
|
|
4160
4856
|
}
|
|
4161
|
-
function
|
|
4162
|
-
return
|
|
4857
|
+
function Xt() {
|
|
4858
|
+
return he(g("input", {
|
|
4163
4859
|
class: "form-control",
|
|
4164
4860
|
"onUpdate:modelValue": (h) => P.value.constValue.value = h,
|
|
4165
4861
|
onChange: (h) => {
|
|
4166
|
-
|
|
4862
|
+
Pt(h);
|
|
4167
4863
|
},
|
|
4168
4864
|
disabled: b.value,
|
|
4169
4865
|
placeholder: "输入自定义内容"
|
|
4170
|
-
}, null), [[
|
|
4866
|
+
}, null), [[Le, P.value.constValue.value]]);
|
|
4171
4867
|
}
|
|
4172
|
-
function
|
|
4173
|
-
return
|
|
4174
|
-
modelValue:
|
|
4175
|
-
"onUpdate:modelValue": (h) =>
|
|
4868
|
+
function Qt() {
|
|
4869
|
+
return g(H, {
|
|
4870
|
+
modelValue: C.value,
|
|
4871
|
+
"onUpdate:modelValue": (h) => C.value = h,
|
|
4176
4872
|
placeholder: "",
|
|
4177
4873
|
viewType: "text",
|
|
4178
4874
|
enableClear: !1,
|
|
@@ -4181,27 +4877,27 @@ const ye = /* @__PURE__ */ W({
|
|
|
4181
4877
|
data: a.value,
|
|
4182
4878
|
editable: !1,
|
|
4183
4879
|
readonly: b.value,
|
|
4184
|
-
onValueChange: (h) =>
|
|
4880
|
+
onValueChange: (h) => fe(h)
|
|
4185
4881
|
}, null);
|
|
4186
4882
|
}
|
|
4187
|
-
function
|
|
4188
|
-
return
|
|
4883
|
+
function Kt() {
|
|
4884
|
+
return g(te, {
|
|
4189
4885
|
canNull: !0,
|
|
4190
4886
|
readonly: b.value,
|
|
4191
4887
|
modelValue: E.value,
|
|
4192
4888
|
"onUpdate:modelValue": (h) => E.value = h,
|
|
4193
4889
|
onValueChange: (h) => {
|
|
4194
|
-
|
|
4890
|
+
At(h);
|
|
4195
4891
|
},
|
|
4196
4892
|
class: "f-page-single-property-editor-component-const-number"
|
|
4197
4893
|
}, null);
|
|
4198
4894
|
}
|
|
4199
|
-
function
|
|
4200
|
-
return
|
|
4895
|
+
function en() {
|
|
4896
|
+
return g("div", {
|
|
4201
4897
|
class: "f-page-single-property-editor-component-left-controller"
|
|
4202
|
-
}, [
|
|
4203
|
-
modelValue:
|
|
4204
|
-
"onUpdate:modelValue": (h) =>
|
|
4898
|
+
}, [g(H, {
|
|
4899
|
+
modelValue: r.value.id,
|
|
4900
|
+
"onUpdate:modelValue": (h) => r.value.id = h,
|
|
4205
4901
|
placeholder: "",
|
|
4206
4902
|
enableClear: !1,
|
|
4207
4903
|
valueField: "id",
|
|
@@ -4212,30 +4908,30 @@ const ye = /* @__PURE__ */ W({
|
|
|
4212
4908
|
onChange: (h) => re(h)
|
|
4213
4909
|
}, null)]);
|
|
4214
4910
|
}
|
|
4215
|
-
function
|
|
4216
|
-
return
|
|
4911
|
+
function tn() {
|
|
4912
|
+
return g("div", {
|
|
4217
4913
|
class: "f-page-single-property-editor-component-right-controller"
|
|
4218
|
-
}, [
|
|
4914
|
+
}, [r.value.id === "const" ? g("div", {
|
|
4219
4915
|
class: "f-page-single-property-editor-component-right-const"
|
|
4220
|
-
}, [t.value.propertyType === "string" ?
|
|
4916
|
+
}, [t.value.propertyType === "string" ? Xt() : "", t.value.propertyType === "enum" ? Qt() : "", t.value.propertyType === "number" ? Kt() : ""]) : "", r.value.id === "variable" ? Wt() : "", r.value.id === "custom" ? zt() : "", r.value.id === "expression" && y.value ? Yt() : "", r.value.id === "stateMachine" ? Zt() : "", r.value.id === "dataStates" ? Jt() : ""]);
|
|
4221
4917
|
}
|
|
4222
|
-
return
|
|
4223
|
-
K(),
|
|
4224
|
-
}), () =>
|
|
4918
|
+
return q(() => {
|
|
4919
|
+
K(), L(), Oe(), Ut(), t.value.hasPrefix && t.value.hasPrefix === 2 && (W.value = !0), t.value.controlName !== void 0 && (l.value = !0);
|
|
4920
|
+
}), () => g(be, null, [g("div", {
|
|
4225
4921
|
class: "f-page-single-property-editor-component clearfix"
|
|
4226
|
-
}, [
|
|
4922
|
+
}, [en(), tn()])]);
|
|
4227
4923
|
}
|
|
4228
|
-
}),
|
|
4924
|
+
}), ya = {
|
|
4229
4925
|
install(e) {
|
|
4230
|
-
e.component(
|
|
4926
|
+
e.component(me.name, me);
|
|
4231
4927
|
},
|
|
4232
|
-
register(e, n, t,
|
|
4233
|
-
e["property-editor"] =
|
|
4928
|
+
register(e, n, t, o) {
|
|
4929
|
+
e["property-editor"] = me, n["property-editor"] = Un;
|
|
4234
4930
|
}
|
|
4235
4931
|
};
|
|
4236
4932
|
export {
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4933
|
+
ya as default,
|
|
4934
|
+
me as propertyEditor,
|
|
4935
|
+
Ze as propertyEditorProps,
|
|
4936
|
+
Un as propsResolver
|
|
4241
4937
|
};
|