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