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