@farris/ui-vue 1.2.6 → 1.2.7
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 +147 -139
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +11 -28
- package/components/avatar/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +33 -50
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +183 -171
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +236 -235
- package/components/condition/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +1531 -1560
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +1299 -1300
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +235 -252
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +127 -143
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +206 -201
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +650 -647
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +1101 -1131
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +335 -332
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +128 -145
- package/components/input-group/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +306 -303
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +2470 -2469
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1928 -1958
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/order/index.esm.js +802 -788
- package/components/order/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +116 -137
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-editor/index.esm.js +533 -521
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +178 -177
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +56 -73
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +547 -518
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +260 -281
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +598 -617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/switch/index.esm.js +137 -154
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +109 -130
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +103 -120
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +172 -189
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +124 -122
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +1600 -1630
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +245 -246
- package/components/tree-view/index.umd.cjs +1 -1
- package/farris.all.esm.js +4123 -4112
- package/farris.all.umd.cjs +8 -8
- package/package.json +1 -1
- 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/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -2
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -16
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var Kt = Object.defineProperty;
|
|
2
2
|
var Jt = (e, n, t) => n in e ? Kt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
-
var
|
|
4
|
-
import { ref as y, defineComponent as q, watch as
|
|
3
|
+
var j = (e, n, t) => Jt(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { ref as y, defineComponent as q, watch as N, computed as V, createVNode as S, inject as Z, onMounted as G, nextTick as Ie, reactive as en, withDirectives as ve, resolveDirective as tn, Fragment as ye, vModelText as Oe } from "vue";
|
|
5
5
|
import { cloneDeep as F } from "lodash-es";
|
|
6
6
|
import nn from "@farris/ui-vue/components/list-view";
|
|
7
7
|
import _e from "@farris/ui-vue/components/button-edit";
|
|
8
8
|
import { useDesignerComponent as on } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-component";
|
|
9
|
-
import
|
|
9
|
+
import L from "bignumber.js";
|
|
10
10
|
import { useNumber as rn, useFormat as an, useSpinner as ln, useTextBox as un } from "@farris/ui-vue/components/number-spinner";
|
|
11
|
-
const
|
|
11
|
+
const He = {}, Ge = {};
|
|
12
12
|
function ge(e) {
|
|
13
13
|
const { properties: n, title: t } = e, o = Object.keys(n).reduce((r, a) => (r[a] = n[a].type === "object" && n[a].properties ? ge(n[a]) : F(n[a].default), r), {});
|
|
14
14
|
return o.id = `${t}-${Date.now()}`, o;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
const t =
|
|
16
|
+
function me(e, n = {}) {
|
|
17
|
+
const t = He[e];
|
|
18
18
|
if (t) {
|
|
19
19
|
let o = ge(t);
|
|
20
|
-
const r =
|
|
21
|
-
return o = r ? r({ getSchemaByType:
|
|
20
|
+
const r = Ge[e];
|
|
21
|
+
return o = r ? r({ getSchemaByType: me }, o, n) : o, o;
|
|
22
22
|
}
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
@@ -46,58 +46,58 @@ function dn(e, n, t = /* @__PURE__ */ new Map()) {
|
|
|
46
46
|
return cn(o, t);
|
|
47
47
|
}
|
|
48
48
|
function pn(e = {}) {
|
|
49
|
-
function n(i,
|
|
50
|
-
if (typeof
|
|
51
|
-
return f[i].length ===
|
|
52
|
-
if (typeof
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
49
|
+
function n(i, d, c, f) {
|
|
50
|
+
if (typeof c == "number")
|
|
51
|
+
return f[i].length === c;
|
|
52
|
+
if (typeof c == "object") {
|
|
53
|
+
const s = Object.keys(c)[0], v = c[s];
|
|
54
|
+
if (s === "not")
|
|
55
55
|
return Number(f[i].length) !== Number(v);
|
|
56
|
-
if (
|
|
56
|
+
if (s === "moreThan")
|
|
57
57
|
return Number(f[i].length) >= Number(v);
|
|
58
|
-
if (
|
|
58
|
+
if (s === "lessThan")
|
|
59
59
|
return Number(f[i].length) <= Number(v);
|
|
60
60
|
}
|
|
61
61
|
return !1;
|
|
62
62
|
}
|
|
63
|
-
function t(i,
|
|
64
|
-
return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(
|
|
63
|
+
function t(i, d, c, f) {
|
|
64
|
+
return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(c);
|
|
65
65
|
}
|
|
66
66
|
const o = /* @__PURE__ */ new Map([
|
|
67
67
|
["length", n],
|
|
68
68
|
["getProperty", t]
|
|
69
69
|
]);
|
|
70
|
-
Object.keys(e).reduce((i,
|
|
71
|
-
function r(i,
|
|
72
|
-
const
|
|
73
|
-
return typeof
|
|
70
|
+
Object.keys(e).reduce((i, d) => (i.set(d, e[d]), i), o);
|
|
71
|
+
function r(i, d) {
|
|
72
|
+
const c = i;
|
|
73
|
+
return typeof d == "number" ? [{ target: c, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: c, operator: "getProperty", param: i, value: !!d }] : typeof d == "object" ? Object.keys(d).map((f) => {
|
|
74
74
|
if (f === "length")
|
|
75
|
-
return { target:
|
|
76
|
-
const
|
|
77
|
-
return { target:
|
|
75
|
+
return { target: c, operator: "length", param: null, value: d[f] };
|
|
76
|
+
const s = f, v = d[f];
|
|
77
|
+
return { target: c, operator: "getProperty", param: s, value: v };
|
|
78
78
|
}) : [];
|
|
79
79
|
}
|
|
80
80
|
function a(i) {
|
|
81
|
-
return Object.keys(i).reduce((
|
|
82
|
-
const
|
|
83
|
-
return
|
|
81
|
+
return Object.keys(i).reduce((c, f) => {
|
|
82
|
+
const s = r(f, i[f]);
|
|
83
|
+
return c.push(...s), c;
|
|
84
84
|
}, []);
|
|
85
85
|
}
|
|
86
|
-
function l(i,
|
|
86
|
+
function l(i, d) {
|
|
87
87
|
if (o.has(i.operator)) {
|
|
88
|
-
const
|
|
89
|
-
return
|
|
88
|
+
const c = o.get(i.operator);
|
|
89
|
+
return c && c(i.target, i.param, i.value, d) || !1;
|
|
90
90
|
}
|
|
91
91
|
return !1;
|
|
92
92
|
}
|
|
93
|
-
function u(i,
|
|
94
|
-
return a(i).reduce((
|
|
93
|
+
function u(i, d) {
|
|
94
|
+
return a(i).reduce((s, v) => s && l(v, d), !0);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
const
|
|
96
|
+
function p(i, d) {
|
|
97
|
+
const c = Object.keys(i), f = c.includes("allOf"), s = c.includes("anyOf"), v = f || s, x = (v ? i[v ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((E) => u(E, d));
|
|
98
98
|
return f ? !x.includes(!1) : x.includes(!0);
|
|
99
99
|
}
|
|
100
|
-
return { parseValueSchema:
|
|
100
|
+
return { parseValueSchema: p };
|
|
101
101
|
}
|
|
102
102
|
const g = {
|
|
103
103
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
@@ -212,19 +212,19 @@ const g = {
|
|
|
212
212
|
/** 审批类 end */
|
|
213
213
|
}, fn = {}, vn = {};
|
|
214
214
|
pn();
|
|
215
|
-
function ue(e, n, t = /* @__PURE__ */ new Map(), o = (l, u,
|
|
216
|
-
return
|
|
217
|
-
const u = dn(l, n, t),
|
|
218
|
-
return Object.assign(
|
|
215
|
+
function ue(e, n, t = /* @__PURE__ */ new Map(), o = (l, u, p) => u, r = {}, a = (l) => l) {
|
|
216
|
+
return He[n.title] = n, Ge[n.title] = o, fn[n.title] = r, vn[n.title] = a, (l = {}) => {
|
|
217
|
+
const u = dn(l, n, t), p = Object.keys(e).reduce((i, d) => (i[d] = e[d].default, i), {});
|
|
218
|
+
return Object.assign(p, u);
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
function se(e, n) {
|
|
222
222
|
return { customClass: n.class, customStyle: n.style };
|
|
223
223
|
}
|
|
224
|
-
const
|
|
224
|
+
const yn = /* @__PURE__ */ new Map([
|
|
225
225
|
["appearance", se]
|
|
226
226
|
]);
|
|
227
|
-
function
|
|
227
|
+
function mn(e, n, t) {
|
|
228
228
|
return n;
|
|
229
229
|
}
|
|
230
230
|
const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-design.gitee.io/property-editor.schema.json", gn = "property-editor", Sn = "A Farris Component", Cn = "object", wn = {
|
|
@@ -327,7 +327,7 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
327
327
|
description: Bn,
|
|
328
328
|
type: Fn,
|
|
329
329
|
categories: Mn
|
|
330
|
-
}, qe = {}, En = ue(qe, Vn,
|
|
330
|
+
}, qe = {}, En = ue(qe, Vn, yn, mn, Pn), k = y({
|
|
331
331
|
/** 常量值 */
|
|
332
332
|
constValue: {
|
|
333
333
|
/** 值类型:常量(const), 变量(variable), 状态机(state), 自定义(custom) */
|
|
@@ -515,9 +515,9 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
515
515
|
},
|
|
516
516
|
/** 状态机是否有前缀viewModel.stateMachine && */
|
|
517
517
|
hasPrefix: 2
|
|
518
|
-
},
|
|
518
|
+
}, Nn = /* @__PURE__ */ new Map([
|
|
519
519
|
["appearance", se]
|
|
520
|
-
]),
|
|
520
|
+
]), In = "https://json-schema.org/draft/2020-12/schema", On = "https://farris-design.gitee.io/combo-list.schema.json", Dn = "combo-list", jn = "A Farris Input Component", Ln = "object", $n = {
|
|
521
521
|
id: {
|
|
522
522
|
description: "The unique identifier for a combo list",
|
|
523
523
|
type: "string"
|
|
@@ -632,11 +632,11 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
|
|
|
632
632
|
"id",
|
|
633
633
|
"type"
|
|
634
634
|
], Rn = {
|
|
635
|
-
$schema:
|
|
635
|
+
$schema: In,
|
|
636
636
|
$id: On,
|
|
637
637
|
title: Dn,
|
|
638
|
-
description:
|
|
639
|
-
type:
|
|
638
|
+
description: jn,
|
|
639
|
+
type: Ln,
|
|
640
640
|
properties: $n,
|
|
641
641
|
required: Un
|
|
642
642
|
};
|
|
@@ -802,8 +802,14 @@ const Se = {
|
|
|
802
802
|
/**
|
|
803
803
|
* 打开前
|
|
804
804
|
*/
|
|
805
|
-
beforeOpen: { type: Function, default: null }
|
|
806
|
-
|
|
805
|
+
beforeOpen: { type: Function, default: null },
|
|
806
|
+
searchOption: {
|
|
807
|
+
type: Object,
|
|
808
|
+
default: !1
|
|
809
|
+
},
|
|
810
|
+
// 搜索启用高亮
|
|
811
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
812
|
+
}, ze = ue(Se, Rn, Nn, _n), Hn = {
|
|
807
813
|
dataSource: { type: Array, default: [] },
|
|
808
814
|
enableSearch: { type: Boolean, default: !1 },
|
|
809
815
|
idField: { type: String, default: "id" },
|
|
@@ -817,71 +823,93 @@ const Se = {
|
|
|
817
823
|
valueField: { type: String, default: "id" },
|
|
818
824
|
/** 值变化事件 */
|
|
819
825
|
onSelectionChange: { type: Function, default: () => {
|
|
820
|
-
} }
|
|
821
|
-
|
|
826
|
+
} },
|
|
827
|
+
searchOption: {
|
|
828
|
+
type: Object,
|
|
829
|
+
default: !1
|
|
830
|
+
},
|
|
831
|
+
// 搜索启用高亮
|
|
832
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
833
|
+
}, Gn = /* @__PURE__ */ q({
|
|
822
834
|
name: "FComboListContainer",
|
|
823
|
-
props:
|
|
835
|
+
props: Hn,
|
|
824
836
|
emits: ["selectionChange"],
|
|
825
837
|
setup(e, n) {
|
|
826
|
-
const t = y(e.dataSource),
|
|
827
|
-
|
|
828
|
-
|
|
838
|
+
const t = y(), o = y(e.dataSource), r = y([]), a = y(e.separator), l = y(e.width), u = y(e.maxHeight), p = y(String(e.selectedValues).split(a.value));
|
|
839
|
+
N(e.dataSource, () => {
|
|
840
|
+
o.value = e.dataSource;
|
|
829
841
|
});
|
|
830
|
-
const
|
|
842
|
+
const i = V(() => e.enableSearch ? "SearchBar" : "ContentHeader"), d = V(() => {
|
|
831
843
|
const s = {};
|
|
832
|
-
return
|
|
844
|
+
return l.value !== void 0 && (s.width = `${l.value}px`), u.value !== void 0 && u.value > 0 && (s.maxHeight = `${u.value}px`), s;
|
|
833
845
|
});
|
|
834
846
|
function c(s) {
|
|
835
|
-
|
|
847
|
+
r.value = s.map((v) => Object.assign({}, v)), p.value = s.map((v) => v[e.idField]), n.emit("selectionChange", r.value);
|
|
848
|
+
}
|
|
849
|
+
function f(s) {
|
|
850
|
+
if (e.enableHighlightSearch)
|
|
851
|
+
return;
|
|
852
|
+
let v = [];
|
|
853
|
+
typeof e.searchOption == "function" ? v = o.value.filter((h) => e.searchOption(s, h)) : v = o.value.filter((h) => h[e.valueField].indexOf(s) > -1 || h[e.textField].indexOf(s) > -1), t.value.updateDataSource(v);
|
|
836
854
|
}
|
|
837
|
-
return
|
|
838
|
-
|
|
855
|
+
return N([() => e.selectedValues], ([s]) => {
|
|
856
|
+
p.value = s.split(a.value);
|
|
839
857
|
}), () => S("div", {
|
|
840
858
|
class: "f-combo-list-container pl-3",
|
|
841
|
-
style:
|
|
859
|
+
style: d.value
|
|
842
860
|
}, [S(nn, {
|
|
861
|
+
ref: t,
|
|
843
862
|
size: "small",
|
|
844
863
|
itemClass: "f-combo-list-item",
|
|
845
|
-
header:
|
|
864
|
+
header: i.value,
|
|
846
865
|
headerClass: "f-combo-list-search-box",
|
|
847
|
-
data:
|
|
866
|
+
data: o.value,
|
|
848
867
|
idField: e.idField,
|
|
849
868
|
textField: e.textField,
|
|
850
869
|
titleField: e.titleField,
|
|
851
870
|
multiSelect: e.multiSelect,
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
871
|
+
selection: {
|
|
872
|
+
enableSelectRow: !0,
|
|
873
|
+
multiSelect: !0,
|
|
874
|
+
multiSelectMode: "OnCheckAndClick",
|
|
875
|
+
showCheckbox: !0,
|
|
876
|
+
showSelectAll: !1,
|
|
877
|
+
showSelection: !0
|
|
878
|
+
},
|
|
879
|
+
enableHighlightSearch: e.enableHighlightSearch,
|
|
880
|
+
selectionValues: p.value,
|
|
881
|
+
onSelectionChange: c,
|
|
882
|
+
onAfterSearch: f
|
|
855
883
|
}, null)]);
|
|
856
884
|
}
|
|
857
885
|
});
|
|
858
886
|
function qn(e) {
|
|
859
887
|
const n = y(""), t = y(e.modelValue), o = y(e.data || []), r = y(e.editable);
|
|
860
|
-
function a(
|
|
861
|
-
const f = String(
|
|
862
|
-
return o.value.filter((v) =>
|
|
888
|
+
function a(c) {
|
|
889
|
+
const f = String(c).split(e.separator).map((v) => [v, !0]), s = new Map(f);
|
|
890
|
+
return o.value.filter((v) => s.has(String(v[e.valueField])));
|
|
863
891
|
}
|
|
864
|
-
function l(
|
|
865
|
-
const f = a(
|
|
866
|
-
n.value = r.value ? f ||
|
|
892
|
+
function l(c) {
|
|
893
|
+
const f = a(c).map((s) => s[e.textField]).join(e.separator);
|
|
894
|
+
n.value = r.value ? f || c : f;
|
|
867
895
|
}
|
|
868
|
-
function u(
|
|
869
|
-
const f =
|
|
870
|
-
return o.value.filter((v) =>
|
|
896
|
+
function u(c) {
|
|
897
|
+
const f = c.split(e.separator).map((v) => [v, !0]), s = new Map(f);
|
|
898
|
+
return o.value.filter((v) => s.has(v[e.textField]));
|
|
871
899
|
}
|
|
872
|
-
function
|
|
900
|
+
function p(c) {
|
|
873
901
|
const f = {};
|
|
874
|
-
return f[e.idField] =
|
|
902
|
+
return f[e.idField] = c, f[e.textField] = c, [f];
|
|
875
903
|
}
|
|
876
|
-
function i(
|
|
877
|
-
let f = u(
|
|
878
|
-
const
|
|
879
|
-
return r.value && !
|
|
904
|
+
function i(c) {
|
|
905
|
+
let f = u(c);
|
|
906
|
+
const s = f && f.length > 0;
|
|
907
|
+
return r.value && !s && (f = p(c)), f;
|
|
880
908
|
}
|
|
881
|
-
function
|
|
882
|
-
const { url:
|
|
909
|
+
function d() {
|
|
910
|
+
const { url: c, method: f = "GET", headers: s = {}, body: v = null } = e.remote, h = f.toLowerCase() == "get" ? { method: f, headers: s } : { method: f, headers: s, body: v };
|
|
883
911
|
let C = !1;
|
|
884
|
-
fetch(
|
|
912
|
+
fetch(c, h).then((x) => {
|
|
885
913
|
var E, w;
|
|
886
914
|
if (x.status === 200)
|
|
887
915
|
return C = !!((w = (E = x.headers) == null ? void 0 : E.get("content-type")) != null && w.includes("application/json")), C ? x.text() : x.json();
|
|
@@ -892,54 +920,54 @@ function qn(e) {
|
|
|
892
920
|
console.error(x);
|
|
893
921
|
});
|
|
894
922
|
}
|
|
895
|
-
return e.remote &&
|
|
923
|
+
return e.remote && d(), N(() => e.data, () => {
|
|
896
924
|
o.value = e.data;
|
|
897
|
-
}),
|
|
925
|
+
}), N([o], ([c]) => {
|
|
898
926
|
if (e.modelValue) {
|
|
899
|
-
const f =
|
|
927
|
+
const f = c.find((s) => s[e.valueField] === e.modelValue);
|
|
900
928
|
f && (n.value = f[e.textField]);
|
|
901
929
|
}
|
|
902
|
-
}),
|
|
903
|
-
t.value =
|
|
930
|
+
}), N(() => e.modelValue, (c) => {
|
|
931
|
+
t.value = c, l(c);
|
|
904
932
|
}), l(e.modelValue), { dataSource: o, displayText: n, editable: r, modelValue: t, getItemsByDisplayText: u, getItemsByValue: a, getSelectedItemsByDisplayText: i };
|
|
905
933
|
}
|
|
906
|
-
const
|
|
934
|
+
const H = /* @__PURE__ */ q({
|
|
907
935
|
name: "FComboList",
|
|
908
936
|
props: Se,
|
|
909
937
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
910
938
|
setup(e, n) {
|
|
911
939
|
const t = y(), o = y(e.disabled), r = y(e.enableClear), a = y(e.enableSearch), l = y(e.readonly), {
|
|
912
940
|
dataSource: u,
|
|
913
|
-
displayText:
|
|
941
|
+
displayText: p,
|
|
914
942
|
editable: i,
|
|
915
|
-
modelValue:
|
|
916
|
-
getSelectedItemsByDisplayText:
|
|
917
|
-
} = qn(e), f = V(() => e.multiSelect),
|
|
943
|
+
modelValue: d,
|
|
944
|
+
getSelectedItemsByDisplayText: c
|
|
945
|
+
} = qn(e), f = V(() => e.multiSelect), s = V(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
|
|
918
946
|
function v() {
|
|
919
947
|
!f.value && t.value && t.value.hidePopup();
|
|
920
948
|
}
|
|
921
949
|
function h(B) {
|
|
922
|
-
|
|
950
|
+
p.value = B.map((b) => b[e.textField]).join(e.separator), B.length === 1 ? d.value = B[0][e.valueField] : d.value = B.map((b) => b[e.valueField]).join(e.separator), n.emit("update:modelValue", d.value), n.emit("change", B, d.value), v();
|
|
923
951
|
}
|
|
924
952
|
function C() {
|
|
925
953
|
l.value || t.value.togglePopup();
|
|
926
954
|
}
|
|
927
955
|
function x(B) {
|
|
928
|
-
|
|
956
|
+
d.value = "", n.emit("update:modelValue", ""), n.emit("clear");
|
|
929
957
|
}
|
|
930
958
|
function A(B) {
|
|
931
|
-
const b =
|
|
959
|
+
const b = c(B);
|
|
932
960
|
h(b);
|
|
933
961
|
}
|
|
934
962
|
function E() {
|
|
935
|
-
return
|
|
963
|
+
return p.value;
|
|
936
964
|
}
|
|
937
965
|
function w(B) {
|
|
938
966
|
n.emit("input", B);
|
|
939
967
|
}
|
|
940
968
|
return n.expose({
|
|
941
969
|
getDisplayText: E
|
|
942
|
-
}),
|
|
970
|
+
}), N([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([B, b, T, P, $]) => {
|
|
943
971
|
o.value = B, i.value = b, r.value = T, a.value = P, l.value = $;
|
|
944
972
|
}), () => S(_e, {
|
|
945
973
|
ref: t,
|
|
@@ -956,8 +984,8 @@ const G = /* @__PURE__ */ q({
|
|
|
956
984
|
enableTitle: e.enableTitle,
|
|
957
985
|
multiSelect: e.multiSelect,
|
|
958
986
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
959
|
-
modelValue:
|
|
960
|
-
"onUpdate:modelValue": (B) =>
|
|
987
|
+
modelValue: p.value,
|
|
988
|
+
"onUpdate:modelValue": (B) => p.value = B,
|
|
961
989
|
focusOnCreated: e.focusOnCreated,
|
|
962
990
|
selectOnCreated: e.selectOnCreated,
|
|
963
991
|
onClear: x,
|
|
@@ -966,17 +994,18 @@ const G = /* @__PURE__ */ q({
|
|
|
966
994
|
onInput: w,
|
|
967
995
|
beforeOpen: e.beforeOpen
|
|
968
996
|
}, {
|
|
969
|
-
default: () => [S(
|
|
997
|
+
default: () => [S(Gn, {
|
|
970
998
|
idField: e.idField,
|
|
971
999
|
valueField: e.valueField,
|
|
972
1000
|
textField: e.textField,
|
|
973
1001
|
titleField: e.titleField,
|
|
974
1002
|
dataSource: u.value,
|
|
975
|
-
selectedValues:
|
|
1003
|
+
selectedValues: d.value,
|
|
976
1004
|
multiSelect: e.multiSelect,
|
|
977
1005
|
enableSearch: a.value,
|
|
978
1006
|
maxHeight: e.maxHeight,
|
|
979
|
-
|
|
1007
|
+
enableHighlightSearch: e.enableHighlightSearch,
|
|
1008
|
+
width: e.fitEditor ? s.value : void 0,
|
|
980
1009
|
onSelectionChange: h
|
|
981
1010
|
}, null)]
|
|
982
1011
|
});
|
|
@@ -985,7 +1014,7 @@ const G = /* @__PURE__ */ q({
|
|
|
985
1014
|
function Ce(e, n) {
|
|
986
1015
|
e.schema;
|
|
987
1016
|
const t = y(!0), o = y(!0);
|
|
988
|
-
function r(
|
|
1017
|
+
function r(c) {
|
|
989
1018
|
return !1;
|
|
990
1019
|
}
|
|
991
1020
|
function a() {
|
|
@@ -997,11 +1026,11 @@ function Ce(e, n) {
|
|
|
997
1026
|
function u() {
|
|
998
1027
|
return !0;
|
|
999
1028
|
}
|
|
1000
|
-
function
|
|
1029
|
+
function p(c) {
|
|
1001
1030
|
}
|
|
1002
1031
|
function i() {
|
|
1003
1032
|
}
|
|
1004
|
-
function c
|
|
1033
|
+
function d(c) {
|
|
1005
1034
|
return null;
|
|
1006
1035
|
}
|
|
1007
1036
|
return {
|
|
@@ -1009,11 +1038,11 @@ function Ce(e, n) {
|
|
|
1009
1038
|
checkCanDeleteComponent: a,
|
|
1010
1039
|
checkCanMoveComponent: l,
|
|
1011
1040
|
hideNestedPaddingInDesginerView: u,
|
|
1012
|
-
onAcceptMovedChildElement:
|
|
1041
|
+
onAcceptMovedChildElement: p,
|
|
1013
1042
|
resolveComponentContext: i,
|
|
1014
1043
|
triggerBelongedComponentToMoveWhenMoved: t,
|
|
1015
1044
|
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
1016
|
-
getPropsConfig:
|
|
1045
|
+
getPropsConfig: d
|
|
1017
1046
|
};
|
|
1018
1047
|
}
|
|
1019
1048
|
class We {
|
|
@@ -1025,7 +1054,7 @@ class We {
|
|
|
1025
1054
|
/**
|
|
1026
1055
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1027
1056
|
*/
|
|
1028
|
-
|
|
1057
|
+
j(We, "fieldControlTypeMapping", {
|
|
1029
1058
|
String: [
|
|
1030
1059
|
{ key: g["input-group"].type, value: g["input-group"].name },
|
|
1031
1060
|
{ key: g.lookup.type, value: g.lookup.name },
|
|
@@ -1082,18 +1111,18 @@ L(We, "fieldControlTypeMapping", {
|
|
|
1082
1111
|
});
|
|
1083
1112
|
class zn {
|
|
1084
1113
|
constructor(n, t) {
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1114
|
+
j(this, "componentId");
|
|
1115
|
+
j(this, "viewModelId");
|
|
1116
|
+
j(this, "eventsEditorUtils");
|
|
1117
|
+
j(this, "formSchemaUtils");
|
|
1118
|
+
j(this, "formMetadataConverter");
|
|
1119
|
+
j(this, "designViewModelUtils");
|
|
1120
|
+
j(this, "designViewModelField");
|
|
1121
|
+
j(this, "controlCreatorUtils");
|
|
1122
|
+
j(this, "designerHostService");
|
|
1123
|
+
j(this, "schemaService", null);
|
|
1124
|
+
j(this, "metadataService", null);
|
|
1125
|
+
j(this, "propertyConfig", {
|
|
1097
1126
|
type: "object",
|
|
1098
1127
|
categories: {}
|
|
1099
1128
|
});
|
|
@@ -1166,13 +1195,13 @@ class zn {
|
|
|
1166
1195
|
* @param newControlType 新控件类型
|
|
1167
1196
|
*/
|
|
1168
1197
|
changeControlType(n, t) {
|
|
1169
|
-
var i,
|
|
1198
|
+
var i, d, c, f, s;
|
|
1170
1199
|
const o = t.propertyValue, r = this.formSchemaUtils.getComponentById(this.componentId);
|
|
1171
1200
|
let a = this.getControlParentContainer(n.id, r);
|
|
1172
1201
|
if (!a)
|
|
1173
1202
|
return;
|
|
1174
1203
|
const l = a.contents.findIndex((v) => v.id === n.id), u = a.contents[l];
|
|
1175
|
-
let
|
|
1204
|
+
let p;
|
|
1176
1205
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1177
1206
|
editor: {
|
|
1178
1207
|
$type: o
|
|
@@ -1180,20 +1209,20 @@ class zn {
|
|
|
1180
1209
|
name: this.designViewModelField.name,
|
|
1181
1210
|
require: this.designViewModelField.require,
|
|
1182
1211
|
readonly: this.designViewModelField.readonly
|
|
1183
|
-
}, !1),
|
|
1212
|
+
}, !1), p = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(p, {
|
|
1184
1213
|
id: u.id,
|
|
1185
1214
|
appearance: u.appearance,
|
|
1186
1215
|
size: u.size,
|
|
1187
1216
|
label: u.label
|
|
1188
|
-
}), Object.assign(
|
|
1189
|
-
isTextArea:
|
|
1217
|
+
}), Object.assign(p.editor, {
|
|
1218
|
+
isTextArea: p.isTextArea && u.isTextArea,
|
|
1190
1219
|
type: o || "",
|
|
1191
1220
|
placeHolder: (i = u.editor) == null ? void 0 : i.placeHolder,
|
|
1192
|
-
holdPlace: (
|
|
1193
|
-
readonly: (
|
|
1221
|
+
holdPlace: (d = u.editor) == null ? void 0 : d.holdPlace,
|
|
1222
|
+
readonly: (c = u.editor) == null ? void 0 : c.readonly,
|
|
1194
1223
|
require: (f = u.editor) == null ? void 0 : f.require,
|
|
1195
|
-
visible: (
|
|
1196
|
-
}), a.contents.splice(l, 1,
|
|
1224
|
+
visible: (s = u.editor) == null ? void 0 : s.visible
|
|
1225
|
+
}), a.contents.splice(l, 1, p);
|
|
1197
1226
|
}
|
|
1198
1227
|
getAppearanceConfig(n = null) {
|
|
1199
1228
|
return {
|
|
@@ -1241,27 +1270,6 @@ class zn {
|
|
|
1241
1270
|
return o;
|
|
1242
1271
|
}
|
|
1243
1272
|
}
|
|
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
1273
|
}
|
|
1266
1274
|
class we extends zn {
|
|
1267
1275
|
constructor(n, t) {
|
|
@@ -1298,10 +1306,14 @@ class we extends zn {
|
|
|
1298
1306
|
{ field: "bindingField", title: "绑定字段" },
|
|
1299
1307
|
{ field: "fieldType", title: "字段类型" }
|
|
1300
1308
|
],
|
|
1309
|
+
textField: "bindingField",
|
|
1301
1310
|
data: o
|
|
1302
1311
|
}
|
|
1303
1312
|
};
|
|
1304
1313
|
}
|
|
1314
|
+
getBindingOtions(n) {
|
|
1315
|
+
return this.getFieldSelectorOptions(n);
|
|
1316
|
+
}
|
|
1305
1317
|
getComponentConfig(n, t = {}, o = {}) {
|
|
1306
1318
|
const r = Object.assign({
|
|
1307
1319
|
description: "组件信息",
|
|
@@ -1365,11 +1377,11 @@ function Qn(e, n) {
|
|
|
1365
1377
|
hideNestedPaddingInDesginerView: a,
|
|
1366
1378
|
onAcceptMovedChildElement: l,
|
|
1367
1379
|
resolveComponentContext: u,
|
|
1368
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1380
|
+
triggerBelongedComponentToMoveWhenMoved: p,
|
|
1369
1381
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
1370
|
-
} = Ce(e),
|
|
1371
|
-
function
|
|
1372
|
-
return new Wn(f, n).getPropertyConfig(
|
|
1382
|
+
} = Ce(e), d = e.schema;
|
|
1383
|
+
function c(f) {
|
|
1384
|
+
return new Wn(f, n).getPropertyConfig(d);
|
|
1373
1385
|
}
|
|
1374
1386
|
return {
|
|
1375
1387
|
canAccepts: t,
|
|
@@ -1378,9 +1390,9 @@ function Qn(e, n) {
|
|
|
1378
1390
|
hideNestedPaddingInDesginerView: a,
|
|
1379
1391
|
onAcceptMovedChildElement: l,
|
|
1380
1392
|
resolveComponentContext: u,
|
|
1381
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1393
|
+
triggerBelongedComponentToMoveWhenMoved: p,
|
|
1382
1394
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
1383
|
-
getPropsConfig:
|
|
1395
|
+
getPropsConfig: c
|
|
1384
1396
|
};
|
|
1385
1397
|
}
|
|
1386
1398
|
const Yn = /* @__PURE__ */ q({
|
|
@@ -1389,7 +1401,7 @@ const Yn = /* @__PURE__ */ q({
|
|
|
1389
1401
|
emits: ["clear", "update:modelValue", "change"],
|
|
1390
1402
|
setup(e, n) {
|
|
1391
1403
|
const t = y(), o = Z("designer-host-service"), r = Z("design-item-context"), a = Qn(r, o), l = on(t, r, a);
|
|
1392
|
-
return
|
|
1404
|
+
return G(() => {
|
|
1393
1405
|
t.value.componentInstance = l;
|
|
1394
1406
|
}), n.expose(l.value), () => S(_e, {
|
|
1395
1407
|
ref: t,
|
|
@@ -1414,13 +1426,13 @@ const Yn = /* @__PURE__ */ q({
|
|
|
1414
1426
|
t.component(n.name, e);
|
|
1415
1427
|
}, e;
|
|
1416
1428
|
};
|
|
1417
|
-
|
|
1418
|
-
e["combo-list"] =
|
|
1429
|
+
H.register = (e, n, t, o) => {
|
|
1430
|
+
e["combo-list"] = H, n["combo-list"] = ze;
|
|
1419
1431
|
};
|
|
1420
|
-
|
|
1432
|
+
H.registerDesigner = (e, n, t) => {
|
|
1421
1433
|
e["combo-list"] = Yn, n["combo-list"] = ze;
|
|
1422
1434
|
};
|
|
1423
|
-
xe(
|
|
1435
|
+
xe(H);
|
|
1424
1436
|
const Zn = /* @__PURE__ */ new Map([
|
|
1425
1437
|
["appearance", se]
|
|
1426
1438
|
]);
|
|
@@ -1708,18 +1720,18 @@ const Kn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-
|
|
|
1708
1720
|
updateOn: { type: String, default: "blur" }
|
|
1709
1721
|
}, Qe = ue(Ve, ao, Zn, Xn);
|
|
1710
1722
|
function io(e, n, t, o) {
|
|
1711
|
-
const r = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder),
|
|
1723
|
+
const r = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder), p = y(e.textAlign), i = y(e.updateOn), d = V(() => e.editable || !e.readonly), c = V(() => e.editable && !e.disabled && !e.readonly), f = V(() => !e.disabled && a.value), s = V(() => t.value === "" || t.value === null || t.value === void 0), v = V(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), h = V(() => e.readonly || !e.editable), C = V(() => e.enableTitle ? t.value : ""), x = V(() => ({
|
|
1712
1724
|
"form-control": !0,
|
|
1713
1725
|
"f-utils-fill": !0,
|
|
1714
|
-
"text-left":
|
|
1715
|
-
"text-center":
|
|
1716
|
-
"text-right":
|
|
1726
|
+
"text-left": p.value === "left",
|
|
1727
|
+
"text-center": p.value === "center",
|
|
1728
|
+
"text-right": p.value === "right"
|
|
1717
1729
|
})), A = V(() => {
|
|
1718
1730
|
const M = {
|
|
1719
1731
|
"f-cmp-inputgroup": !0,
|
|
1720
1732
|
"input-group": !0,
|
|
1721
1733
|
"f-state-disable": r.value,
|
|
1722
|
-
"f-state-editable":
|
|
1734
|
+
"f-state-editable": c.value,
|
|
1723
1735
|
"f-state-readonly": h.value,
|
|
1724
1736
|
"f-state-focus": f.value
|
|
1725
1737
|
};
|
|
@@ -1728,12 +1740,12 @@ function io(e, n, t, o) {
|
|
|
1728
1740
|
function w(M, D = !0) {
|
|
1729
1741
|
t.value = M, o.value !== M && (o.value = M), D && n.emit("change", M), n.emit("update:modelValue", M), n.emit("update:value", M);
|
|
1730
1742
|
}
|
|
1731
|
-
|
|
1743
|
+
N(
|
|
1732
1744
|
() => e.modelValue,
|
|
1733
1745
|
(M, D) => {
|
|
1734
1746
|
M !== D && (t.value = M, o.value = M);
|
|
1735
1747
|
}
|
|
1736
|
-
),
|
|
1748
|
+
), N(() => e.disabled, (M, D) => {
|
|
1737
1749
|
M !== D && (r.value = M);
|
|
1738
1750
|
});
|
|
1739
1751
|
function B(M) {
|
|
@@ -1743,7 +1755,7 @@ function io(e, n, t, o) {
|
|
|
1743
1755
|
n.emit("click", M);
|
|
1744
1756
|
}
|
|
1745
1757
|
function T(M) {
|
|
1746
|
-
e.disabled || (u.value && (a.value = !0),
|
|
1758
|
+
e.disabled || (u.value && (a.value = !0), d.value && n.emit("focus", M));
|
|
1747
1759
|
}
|
|
1748
1760
|
function P(M) {
|
|
1749
1761
|
n.emit("input", M.target.value);
|
|
@@ -1769,11 +1781,11 @@ function io(e, n, t, o) {
|
|
|
1769
1781
|
changeTextBoxValue: w,
|
|
1770
1782
|
disabled: r,
|
|
1771
1783
|
displayText: o,
|
|
1772
|
-
editable:
|
|
1784
|
+
editable: c,
|
|
1773
1785
|
hasFocused: f,
|
|
1774
1786
|
inputGroupClass: A,
|
|
1775
1787
|
inputType: l,
|
|
1776
|
-
isEmpty:
|
|
1788
|
+
isEmpty: s,
|
|
1777
1789
|
modelValue: t,
|
|
1778
1790
|
readonly: h,
|
|
1779
1791
|
onBlur: B,
|
|
@@ -1791,14 +1803,14 @@ function io(e, n, t, o) {
|
|
|
1791
1803
|
};
|
|
1792
1804
|
}
|
|
1793
1805
|
function lo(e, n, t, o) {
|
|
1794
|
-
const r = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder),
|
|
1806
|
+
const r = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder), p = y(e.textAlign);
|
|
1795
1807
|
V(() => e.editable || !e.readonly);
|
|
1796
|
-
const i = V(() => e.editable && !e.disabled && !e.readonly),
|
|
1808
|
+
const i = V(() => e.editable && !e.disabled && !e.readonly), d = V(() => !e.disabled && a.value), c = V(() => t.value === "" || t.value === null || t.value === void 0), f = V(() => e.placeholder), s = V(() => e.readonly || !e.editable), v = V(() => e.enableTitle ? t.value : ""), h = V(() => ({
|
|
1797
1809
|
"form-control": !0,
|
|
1798
1810
|
// 'f-utils-fill': true,
|
|
1799
|
-
"text-left":
|
|
1800
|
-
"text-center":
|
|
1801
|
-
"text-right":
|
|
1811
|
+
"text-left": p.value === "left",
|
|
1812
|
+
"text-center": p.value === "center",
|
|
1813
|
+
"text-right": p.value === "right"
|
|
1802
1814
|
})), C = V(() => ({
|
|
1803
1815
|
"f-cmp-inputgroup": !0,
|
|
1804
1816
|
"input-group": !0,
|
|
@@ -1812,12 +1824,12 @@ function lo(e, n, t, o) {
|
|
|
1812
1824
|
disabled: r,
|
|
1813
1825
|
displayText: o,
|
|
1814
1826
|
editable: i,
|
|
1815
|
-
hasFocused:
|
|
1827
|
+
hasFocused: d,
|
|
1816
1828
|
inputGroupClass: C,
|
|
1817
1829
|
inputType: l,
|
|
1818
|
-
isEmpty:
|
|
1830
|
+
isEmpty: c,
|
|
1819
1831
|
modelValue: t,
|
|
1820
|
-
readonly:
|
|
1832
|
+
readonly: s,
|
|
1821
1833
|
// onBlur,
|
|
1822
1834
|
// onClick,
|
|
1823
1835
|
// onFocus,
|
|
@@ -1833,30 +1845,30 @@ function lo(e, n, t, o) {
|
|
|
1833
1845
|
};
|
|
1834
1846
|
}
|
|
1835
1847
|
function Ye(e, n, t) {
|
|
1836
|
-
const o = y(!1), r = V(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: u, isEmpty:
|
|
1848
|
+
const o = y(!1), r = V(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: u, isEmpty: p } = t;
|
|
1837
1849
|
function i(h) {
|
|
1838
1850
|
o.value = h;
|
|
1839
1851
|
}
|
|
1840
|
-
|
|
1852
|
+
N(l, () => {
|
|
1841
1853
|
u != null && u.value ? i(!!(l != null && l.value)) : i(!1);
|
|
1842
1854
|
});
|
|
1843
|
-
const
|
|
1855
|
+
const d = V(() => ({
|
|
1844
1856
|
"input-group-text": !0,
|
|
1845
1857
|
"input-group-clear": !0
|
|
1846
|
-
})),
|
|
1858
|
+
})), c = V(() => ({
|
|
1847
1859
|
width: "24px",
|
|
1848
1860
|
display: o.value ? "flex" : "none"
|
|
1849
1861
|
}));
|
|
1850
1862
|
function f(h) {
|
|
1851
1863
|
h.stopPropagation(), r.value && (a("", !0), i(!o.value), n.emit("clear"));
|
|
1852
1864
|
}
|
|
1853
|
-
function
|
|
1854
|
-
r.value && !
|
|
1865
|
+
function s(h) {
|
|
1866
|
+
r.value && !p.value && i(!0);
|
|
1855
1867
|
}
|
|
1856
1868
|
function v(h) {
|
|
1857
1869
|
r.value && i(!1);
|
|
1858
1870
|
}
|
|
1859
|
-
return { clearButtonClass:
|
|
1871
|
+
return { clearButtonClass: d, clearButtonStyle: c, hasShownClearButton: o, onClearValue: f, onMouseEnter: s, onMouseLeave: v, shouldShowClearButton: r };
|
|
1860
1872
|
}
|
|
1861
1873
|
const uo = ["moz", "ms", "webkit"];
|
|
1862
1874
|
function so() {
|
|
@@ -1885,17 +1897,17 @@ function Ze(e, n) {
|
|
|
1885
1897
|
})), appendedContent: t, shouldShowAppendedButton: r };
|
|
1886
1898
|
}
|
|
1887
1899
|
function Xe(e, n, t, o) {
|
|
1888
|
-
const { appendedContent: r } = o, a = y(e.enableViewPassword), l = V(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>',
|
|
1889
|
-
|
|
1890
|
-
l.value && (t.value = f ||
|
|
1900
|
+
const { appendedContent: r } = o, a = y(e.enableViewPassword), l = V(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', p = '<span class="f-icon f-icon-eye"></span>', i = y(!1);
|
|
1901
|
+
N(() => [e.readonly, e.disabled], ([f, s]) => {
|
|
1902
|
+
l.value && (t.value = f || s ? "password" : t.value, r.value = f || s ? p : r.value);
|
|
1891
1903
|
});
|
|
1892
|
-
function
|
|
1893
|
-
return i.value = !i.value, t.value = i.value ? "text" : "password", r.value = i.value ? u :
|
|
1904
|
+
function d() {
|
|
1905
|
+
return i.value = !i.value, t.value = i.value ? "text" : "password", r.value = i.value ? u : p, !1;
|
|
1894
1906
|
}
|
|
1895
|
-
function
|
|
1896
|
-
t.value = l.value ? "password" : "text", r.value = l.value ? a.value ?
|
|
1907
|
+
function c() {
|
|
1908
|
+
t.value = l.value ? "password" : "text", r.value = l.value ? a.value ? p : "" : r.value;
|
|
1897
1909
|
}
|
|
1898
|
-
return
|
|
1910
|
+
return c(), { isPassword: l, onClickAppendedButton: d };
|
|
1899
1911
|
}
|
|
1900
1912
|
function Ke(e, n, t) {
|
|
1901
1913
|
const o = y(), {
|
|
@@ -1903,30 +1915,30 @@ function Ke(e, n, t) {
|
|
|
1903
1915
|
onFocusTextBox: a,
|
|
1904
1916
|
onInput: l,
|
|
1905
1917
|
onKeyDown: u,
|
|
1906
|
-
textBoxValue:
|
|
1907
|
-
} = t, i = V(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder),
|
|
1918
|
+
textBoxValue: p
|
|
1919
|
+
} = t, i = V(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = V(() => ({
|
|
1908
1920
|
"form-control": !0,
|
|
1909
1921
|
"f-utils-fill": !0
|
|
1910
|
-
})),
|
|
1922
|
+
})), c = V(() => ({
|
|
1911
1923
|
"text-align": e.textAlign
|
|
1912
1924
|
}));
|
|
1913
1925
|
function f(h) {
|
|
1914
1926
|
h.stopPropagation();
|
|
1915
1927
|
}
|
|
1916
|
-
function
|
|
1928
|
+
function s() {
|
|
1917
1929
|
e.selectOnCreated, e.focusOnCreated;
|
|
1918
1930
|
}
|
|
1919
1931
|
async function v(h) {
|
|
1920
|
-
a(h), await
|
|
1932
|
+
a(h), await Ie, s();
|
|
1921
1933
|
}
|
|
1922
|
-
return
|
|
1923
|
-
await
|
|
1934
|
+
return G(async () => {
|
|
1935
|
+
await Ie, s();
|
|
1924
1936
|
}), () => S("input", {
|
|
1925
1937
|
ref: o,
|
|
1926
|
-
class:
|
|
1927
|
-
style:
|
|
1938
|
+
class: d.value,
|
|
1939
|
+
style: c.value,
|
|
1928
1940
|
type: "text",
|
|
1929
|
-
value:
|
|
1941
|
+
value: p.value,
|
|
1930
1942
|
disabled: e.disabled,
|
|
1931
1943
|
readonly: e.readonly || !e.editable,
|
|
1932
1944
|
placeholder: i.value,
|
|
@@ -1947,14 +1959,14 @@ function Te(e, n, t) {
|
|
|
1947
1959
|
"input-group-append": !0,
|
|
1948
1960
|
"btn-group": !0,
|
|
1949
1961
|
"btn-group-number": !0
|
|
1950
|
-
})),
|
|
1962
|
+
})), p = V(() => ({
|
|
1951
1963
|
btn: !0,
|
|
1952
1964
|
"btn-secondary": !0,
|
|
1953
1965
|
"btn-number-flag": !0
|
|
1954
1966
|
})), i = V(() => ({
|
|
1955
1967
|
cursor: r() ? "pointer" : "not-allowed",
|
|
1956
1968
|
"margin-left": 0
|
|
1957
|
-
})),
|
|
1969
|
+
})), d = V(() => ({
|
|
1958
1970
|
cursor: o() ? "pointer" : "not-allowed",
|
|
1959
1971
|
"margin-left": 0
|
|
1960
1972
|
}));
|
|
@@ -1962,7 +1974,7 @@ function Te(e, n, t) {
|
|
|
1962
1974
|
class: u.value
|
|
1963
1975
|
}, [S("button", {
|
|
1964
1976
|
title: "upButton",
|
|
1965
|
-
class:
|
|
1977
|
+
class: p.value,
|
|
1966
1978
|
style: i.value,
|
|
1967
1979
|
onClick: l,
|
|
1968
1980
|
disabled: !r()
|
|
@@ -1970,8 +1982,8 @@ function Te(e, n, t) {
|
|
|
1970
1982
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
1971
1983
|
}, null)]), S("button", {
|
|
1972
1984
|
title: "downButton",
|
|
1973
|
-
class:
|
|
1974
|
-
style:
|
|
1985
|
+
class: p.value,
|
|
1986
|
+
style: d.value,
|
|
1975
1987
|
onClick: a,
|
|
1976
1988
|
disabled: !o()
|
|
1977
1989
|
}, [S("span", {
|
|
@@ -1981,34 +1993,34 @@ function Te(e, n, t) {
|
|
|
1981
1993
|
function po(e, n) {
|
|
1982
1994
|
const t = rn(e, n), o = an(e, n, t), r = ln(e, n, o, t), a = un(e, n, o, t, r), l = Te(e, n, r), {
|
|
1983
1995
|
displayValue: u,
|
|
1984
|
-
modelValue:
|
|
1996
|
+
modelValue: p,
|
|
1985
1997
|
getRealValue: i
|
|
1986
|
-
} = t,
|
|
1987
|
-
format:
|
|
1998
|
+
} = t, d = Ke(e, n, a), {
|
|
1999
|
+
format: c
|
|
1988
2000
|
} = o, {
|
|
1989
2001
|
isFocus: f
|
|
1990
|
-
} = a,
|
|
1991
|
-
return
|
|
2002
|
+
} = a, s = V(() => !e.disabled && !e.readonly);
|
|
2003
|
+
return G(() => {
|
|
1992
2004
|
const v = i(e.modelValue);
|
|
1993
|
-
u.value =
|
|
1994
|
-
}),
|
|
2005
|
+
u.value = c(v);
|
|
2006
|
+
}), N(() => [e.value], ([v]) => {
|
|
1995
2007
|
const h = i(v);
|
|
1996
|
-
|
|
1997
|
-
}),
|
|
1998
|
-
v !==
|
|
1999
|
-
}),
|
|
2000
|
-
u.value =
|
|
2008
|
+
p.value = h, u.value = c(h);
|
|
2009
|
+
}), N(() => [e.modelValue], ([v]) => {
|
|
2010
|
+
v !== p.value && (p.value = v, !f.value && (u.value = c(i(v))));
|
|
2011
|
+
}), N(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2012
|
+
u.value = c(p.value);
|
|
2001
2013
|
}), () => S("div", {
|
|
2002
2014
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2003
|
-
}, [
|
|
2015
|
+
}, [d(), s.value && l()]);
|
|
2004
2016
|
}
|
|
2005
2017
|
function fo(e, n, t, o) {
|
|
2006
2018
|
const r = y(), a = y(e.autocomplete), l = y(e.enableTitle), {
|
|
2007
2019
|
isPassword: u
|
|
2008
|
-
} = t,
|
|
2009
|
-
disabled:
|
|
2020
|
+
} = t, p = y(e.minLength), i = y(e.maxLength), d = y(e.tabIndex), {
|
|
2021
|
+
disabled: c,
|
|
2010
2022
|
displayText: f,
|
|
2011
|
-
inputType:
|
|
2023
|
+
inputType: s,
|
|
2012
2024
|
onBlur: v,
|
|
2013
2025
|
onFocus: h,
|
|
2014
2026
|
onInput: C,
|
|
@@ -2022,21 +2034,21 @@ function fo(e, n, t, o) {
|
|
|
2022
2034
|
textBoxClass: P,
|
|
2023
2035
|
textBoxTitle: $
|
|
2024
2036
|
} = o;
|
|
2025
|
-
return
|
|
2037
|
+
return G(() => {
|
|
2026
2038
|
e.selectOnCreated, e.focusOnCreated;
|
|
2027
2039
|
}), () => S("input", {
|
|
2028
2040
|
ref: r,
|
|
2029
2041
|
name: "input-group-value",
|
|
2030
2042
|
autocomplete: a.value,
|
|
2031
2043
|
class: P.value,
|
|
2032
|
-
disabled:
|
|
2044
|
+
disabled: c == null ? void 0 : c.value,
|
|
2033
2045
|
maxlength: i.value,
|
|
2034
|
-
minlength:
|
|
2046
|
+
minlength: p.value,
|
|
2035
2047
|
placeholder: T.value,
|
|
2036
2048
|
readonly: b == null ? void 0 : b.value,
|
|
2037
|
-
tabindex:
|
|
2049
|
+
tabindex: d.value,
|
|
2038
2050
|
title: l.value && !u.value ? $.value : "",
|
|
2039
|
-
type:
|
|
2051
|
+
type: s.value,
|
|
2040
2052
|
value: f == null ? void 0 : f.value,
|
|
2041
2053
|
onBlur: v,
|
|
2042
2054
|
onClick: x,
|
|
@@ -2068,17 +2080,17 @@ function Je(e, n, t, o, r) {
|
|
|
2068
2080
|
const {
|
|
2069
2081
|
appendedButtonClass: a,
|
|
2070
2082
|
appendedContent: l
|
|
2071
|
-
} = t, u = V(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled),
|
|
2072
|
-
clearButtonClass:
|
|
2073
|
-
clearButtonStyle:
|
|
2083
|
+
} = t, u = V(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), p = V(() => l.value && !n.slots.groupTextTemplate), i = V(() => !!n.slots.groupTextTemplate), {
|
|
2084
|
+
clearButtonClass: d,
|
|
2085
|
+
clearButtonStyle: c,
|
|
2074
2086
|
onClearValue: f,
|
|
2075
|
-
shouldShowClearButton:
|
|
2087
|
+
shouldShowClearButton: s
|
|
2076
2088
|
} = o;
|
|
2077
2089
|
function v() {
|
|
2078
2090
|
return S("span", {
|
|
2079
2091
|
id: "clearIcon",
|
|
2080
|
-
class:
|
|
2081
|
-
style:
|
|
2092
|
+
class: d.value,
|
|
2093
|
+
style: c.value,
|
|
2082
2094
|
onClick: (T) => f(T)
|
|
2083
2095
|
}, [S("i", {
|
|
2084
2096
|
class: "f-icon modal_close"
|
|
@@ -2109,12 +2121,12 @@ function Je(e, n, t, o, r) {
|
|
|
2109
2121
|
return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
|
|
2110
2122
|
}
|
|
2111
2123
|
function B() {
|
|
2112
|
-
return
|
|
2124
|
+
return p.value ? E : i.value ? w : "";
|
|
2113
2125
|
}
|
|
2114
2126
|
const b = B();
|
|
2115
2127
|
return () => S("div", {
|
|
2116
2128
|
class: a.value
|
|
2117
|
-
}, [
|
|
2129
|
+
}, [s.value && v(), b && b()]);
|
|
2118
2130
|
}
|
|
2119
2131
|
const J = /* @__PURE__ */ q({
|
|
2120
2132
|
name: "FInputGroup",
|
|
@@ -2125,35 +2137,35 @@ const J = /* @__PURE__ */ q({
|
|
|
2125
2137
|
inputGroupClass: a,
|
|
2126
2138
|
inputType: l,
|
|
2127
2139
|
inputGroupStyle: u
|
|
2128
|
-
} = r,
|
|
2140
|
+
} = r, p = Ze(e), {
|
|
2129
2141
|
shouldShowAppendedButton: i
|
|
2130
|
-
} =
|
|
2131
|
-
onMouseEnter:
|
|
2142
|
+
} = p, d = Ye(e, n, r), {
|
|
2143
|
+
onMouseEnter: c,
|
|
2132
2144
|
onMouseLeave: f
|
|
2133
|
-
} =
|
|
2134
|
-
|
|
2145
|
+
} = d, s = Xe(e, n, l, p), v = po(e, n), h = fo(e, n, s, r), C = Je(e, n, p, d, s), x = vo(e, n), A = V(() => e.type === "number");
|
|
2146
|
+
N(() => [e.value], ([w]) => {
|
|
2135
2147
|
t.value = w, o.value = w;
|
|
2136
|
-
}),
|
|
2148
|
+
}), N(() => [e.modelValue], ([w]) => {
|
|
2137
2149
|
t.value = w, o.value = w;
|
|
2138
|
-
}),
|
|
2150
|
+
}), G(() => {
|
|
2139
2151
|
e.value && (t.value = e.value, o.value = e.value);
|
|
2140
2152
|
});
|
|
2141
|
-
const E = () => S(
|
|
2153
|
+
const E = () => S(ye, null, [S("div", {
|
|
2142
2154
|
id: "inputGroup",
|
|
2143
2155
|
class: a.value,
|
|
2144
2156
|
style: u.value,
|
|
2145
|
-
onMouseenter:
|
|
2157
|
+
onMouseenter: c,
|
|
2146
2158
|
onMouseleave: f
|
|
2147
|
-
}, [A.value ? v() : S(
|
|
2159
|
+
}, [A.value ? v() : S(ye, null, [x(), h(), i.value && C()])])]);
|
|
2148
2160
|
return () => E();
|
|
2149
2161
|
}
|
|
2150
2162
|
});
|
|
2151
|
-
class
|
|
2163
|
+
class yo extends we {
|
|
2152
2164
|
constructor(n, t) {
|
|
2153
2165
|
super(n, t);
|
|
2154
2166
|
}
|
|
2155
2167
|
}
|
|
2156
|
-
function
|
|
2168
|
+
function mo(e, n) {
|
|
2157
2169
|
const {
|
|
2158
2170
|
canAccepts: t,
|
|
2159
2171
|
checkCanDeleteComponent: o,
|
|
@@ -2161,11 +2173,11 @@ function yo(e, n) {
|
|
|
2161
2173
|
hideNestedPaddingInDesginerView: a,
|
|
2162
2174
|
onAcceptMovedChildElement: l,
|
|
2163
2175
|
resolveComponentContext: u,
|
|
2164
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2176
|
+
triggerBelongedComponentToMoveWhenMoved: p,
|
|
2165
2177
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2166
|
-
} = Ce(e),
|
|
2167
|
-
function
|
|
2168
|
-
return new
|
|
2178
|
+
} = Ce(e), d = e.schema;
|
|
2179
|
+
function c(f) {
|
|
2180
|
+
return new yo(f, n).getPropertyConfig(d);
|
|
2169
2181
|
}
|
|
2170
2182
|
return {
|
|
2171
2183
|
canAccepts: t,
|
|
@@ -2174,9 +2186,9 @@ function yo(e, n) {
|
|
|
2174
2186
|
hideNestedPaddingInDesginerView: a,
|
|
2175
2187
|
onAcceptMovedChildElement: l,
|
|
2176
2188
|
resolveComponentContext: u,
|
|
2177
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2189
|
+
triggerBelongedComponentToMoveWhenMoved: p,
|
|
2178
2190
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
2179
|
-
getPropsConfig:
|
|
2191
|
+
getPropsConfig: c
|
|
2180
2192
|
};
|
|
2181
2193
|
}
|
|
2182
2194
|
function et(e, n, t) {
|
|
@@ -2189,28 +2201,28 @@ function et(e, n, t) {
|
|
|
2189
2201
|
function u() {
|
|
2190
2202
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
2191
2203
|
}
|
|
2192
|
-
function
|
|
2204
|
+
function p() {
|
|
2193
2205
|
return !1;
|
|
2194
2206
|
}
|
|
2195
2207
|
function i() {
|
|
2196
2208
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
2197
2209
|
}
|
|
2198
|
-
function
|
|
2210
|
+
function d() {
|
|
2199
2211
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
2200
2212
|
}
|
|
2201
|
-
function
|
|
2213
|
+
function c(b) {
|
|
2202
2214
|
if (!b || !b.value)
|
|
2203
2215
|
return null;
|
|
2204
2216
|
if (b.value.schema && b.value.schema.type === "component")
|
|
2205
2217
|
return b.value;
|
|
2206
|
-
const T = y(b == null ? void 0 : b.value.parent), P =
|
|
2218
|
+
const T = y(b == null ? void 0 : b.value.parent), P = c(T);
|
|
2207
2219
|
return P || null;
|
|
2208
2220
|
}
|
|
2209
2221
|
function f(b = n) {
|
|
2210
2222
|
const { componentInstance: T, designerItemElementRef: P } = b;
|
|
2211
2223
|
return !T || !T.value ? null : T.value.canMove ? P : f(b.parent);
|
|
2212
2224
|
}
|
|
2213
|
-
function
|
|
2225
|
+
function s(b) {
|
|
2214
2226
|
return !!t && t.canAccepts(b);
|
|
2215
2227
|
}
|
|
2216
2228
|
function v() {
|
|
@@ -2223,7 +2235,7 @@ function et(e, n, t) {
|
|
|
2223
2235
|
}
|
|
2224
2236
|
function x(b) {
|
|
2225
2237
|
const { componentType: T } = b;
|
|
2226
|
-
let P =
|
|
2238
|
+
let P = me(T, b);
|
|
2227
2239
|
t && t.onResolveNewComponentSchema && (P = t.onResolveNewComponentSchema(b, P));
|
|
2228
2240
|
const $ = T.toLowerCase().replace("-", "_");
|
|
2229
2241
|
return P && !P.id && P.type === T && (P.id = `${$}_${Math.random().toString().slice(2, 6)}`), P;
|
|
@@ -2231,7 +2243,7 @@ function et(e, n, t) {
|
|
|
2231
2243
|
function A(b, T) {
|
|
2232
2244
|
const P = String(b.getAttribute("data-controltype")), $ = b.getAttribute("data-feature"), Q = $ ? JSON.parse($) : {};
|
|
2233
2245
|
Q.parentComponentInstance = l.value;
|
|
2234
|
-
let R =
|
|
2246
|
+
let R = me(P, Q);
|
|
2235
2247
|
t && t.onAcceptNewChildElement && (R = t.onAcceptNewChildElement(b, T, R));
|
|
2236
2248
|
const K = P.toLowerCase().replace("-", "_");
|
|
2237
2249
|
return R && !R.id && R.type === P && (R.id = `${K}_${Math.random().toString().slice(2, 6)}`), R;
|
|
@@ -2244,17 +2256,17 @@ function et(e, n, t) {
|
|
|
2244
2256
|
}
|
|
2245
2257
|
return l.value = {
|
|
2246
2258
|
canMove: u(),
|
|
2247
|
-
canSelectParent:
|
|
2259
|
+
canSelectParent: p(),
|
|
2248
2260
|
canDelete: i(),
|
|
2249
|
-
canNested: !
|
|
2261
|
+
canNested: !d(),
|
|
2250
2262
|
contents: n == null ? void 0 : n.schema.contents,
|
|
2251
2263
|
elementRef: e,
|
|
2252
2264
|
parent: (B = n == null ? void 0 : n.parent) == null ? void 0 : B.componentInstance,
|
|
2253
2265
|
schema: n == null ? void 0 : n.schema,
|
|
2254
2266
|
styles: r,
|
|
2255
2267
|
designerClass: a,
|
|
2256
|
-
canAccepts:
|
|
2257
|
-
getBelongedComponentInstance:
|
|
2268
|
+
canAccepts: s,
|
|
2269
|
+
getBelongedComponentInstance: c,
|
|
2258
2270
|
getDraggableDesignItemElement: f,
|
|
2259
2271
|
getDraggingDisplayText: v,
|
|
2260
2272
|
getPropConfig: w,
|
|
@@ -2277,22 +2289,22 @@ const ho = /* @__PURE__ */ q({
|
|
|
2277
2289
|
inputGroupClass: a,
|
|
2278
2290
|
inputType: l,
|
|
2279
2291
|
inputGroupStyle: u
|
|
2280
|
-
} = r,
|
|
2292
|
+
} = r, p = Ze(e), {
|
|
2281
2293
|
shouldShowAppendedButton: i
|
|
2282
|
-
} =
|
|
2283
|
-
onMouseEnter:
|
|
2294
|
+
} = p, d = Ye(e, n, r), {
|
|
2295
|
+
onMouseEnter: c,
|
|
2284
2296
|
onMouseLeave: f
|
|
2285
|
-
} =
|
|
2286
|
-
|
|
2297
|
+
} = d, s = Xe(e, n, l, p), v = y(), h = Z("designer-host-service"), C = Z("design-item-context"), x = mo(C, h), A = et(v, C, x);
|
|
2298
|
+
G(() => {
|
|
2287
2299
|
v.value.componentInstance = A;
|
|
2288
2300
|
}), n.expose(A.value);
|
|
2289
|
-
const E = Je(e, n,
|
|
2301
|
+
const E = Je(e, n, p, d, s), w = y();
|
|
2290
2302
|
return () => S("div", {
|
|
2291
2303
|
id: "inputGroup",
|
|
2292
2304
|
ref: v,
|
|
2293
2305
|
class: a.value,
|
|
2294
2306
|
style: u.value,
|
|
2295
|
-
onMouseenter:
|
|
2307
|
+
onMouseenter: c,
|
|
2296
2308
|
onMouseleave: f
|
|
2297
2309
|
}, [S("input", {
|
|
2298
2310
|
ref: w,
|
|
@@ -2533,37 +2545,37 @@ const Be = {
|
|
|
2533
2545
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
2534
2546
|
}, tt = ue(Be, Bo, bo, Fo);
|
|
2535
2547
|
function nt(e, n, t, o) {
|
|
2536
|
-
const { format: r } = t, { displayValue: a, getRealValue: l, modelValue: u, onNumberValueChanged:
|
|
2548
|
+
const { format: r } = t, { displayValue: a, getRealValue: l, modelValue: u, onNumberValueChanged: p } = o;
|
|
2537
2549
|
function i() {
|
|
2538
|
-
const C = new
|
|
2539
|
-
return !(e.max && !new
|
|
2550
|
+
const C = new L(u.value || 0);
|
|
2551
|
+
return !(e.max && !new L(e.max).isNaN() && C.gte(new L(e.max)));
|
|
2540
2552
|
}
|
|
2541
|
-
function
|
|
2542
|
-
const C = new
|
|
2543
|
-
return !(e.min && !new
|
|
2553
|
+
function d() {
|
|
2554
|
+
const C = new L(u.value || 0);
|
|
2555
|
+
return !(e.min && !new L(e.min).isNaN() && C.lte(new L(e.min)));
|
|
2544
2556
|
}
|
|
2545
|
-
function
|
|
2557
|
+
function c(C) {
|
|
2546
2558
|
if (e.readonly || e.disabled)
|
|
2547
2559
|
return;
|
|
2548
|
-
const x = C === "up" ? i :
|
|
2560
|
+
const x = C === "up" ? i : d, A = C === "up" ? "plus" : "minus";
|
|
2549
2561
|
if (x()) {
|
|
2550
|
-
const w = new
|
|
2551
|
-
a.value = r(B),
|
|
2562
|
+
const w = new L(u.value || 0)[A](Number(e.step)), B = w.toFixed();
|
|
2563
|
+
a.value = r(B), p(l(w));
|
|
2552
2564
|
}
|
|
2553
2565
|
}
|
|
2554
2566
|
function f() {
|
|
2555
|
-
|
|
2567
|
+
c("up");
|
|
2556
2568
|
}
|
|
2557
|
-
function
|
|
2558
|
-
|
|
2569
|
+
function s() {
|
|
2570
|
+
c("down");
|
|
2559
2571
|
}
|
|
2560
2572
|
function v(C) {
|
|
2561
2573
|
f(), C.stopPropagation();
|
|
2562
2574
|
}
|
|
2563
2575
|
function h(C) {
|
|
2564
|
-
|
|
2576
|
+
s(), C.stopPropagation();
|
|
2565
2577
|
}
|
|
2566
|
-
return { canDownward:
|
|
2578
|
+
return { canDownward: d, canUpward: i, downward: s, onClickDownButton: h, onClickUpButton: v, upward: f };
|
|
2567
2579
|
}
|
|
2568
2580
|
function ot(e, n, t) {
|
|
2569
2581
|
const o = V(() => ({
|
|
@@ -2576,52 +2588,52 @@ function ot(e, n, t) {
|
|
|
2576
2588
|
function l(i) {
|
|
2577
2589
|
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
2590
|
}
|
|
2579
|
-
function u(i,
|
|
2580
|
-
return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value,
|
|
2591
|
+
function u(i, d) {
|
|
2592
|
+
return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value, d) : i.toFormat(d);
|
|
2581
2593
|
}
|
|
2582
|
-
function
|
|
2583
|
-
const
|
|
2594
|
+
function p(i) {
|
|
2595
|
+
const d = l(i), c = new L(d, 10), f = r(c);
|
|
2584
2596
|
return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : u(f, o.value);
|
|
2585
2597
|
}
|
|
2586
|
-
return { cleanFormat: l, format:
|
|
2598
|
+
return { cleanFormat: l, format: p };
|
|
2587
2599
|
}
|
|
2588
2600
|
function rt(e, n) {
|
|
2589
2601
|
const t = y(""), o = y(e.modelValue), r = V(() => Number(e.precision) || 0);
|
|
2590
|
-
function a(
|
|
2591
|
-
return
|
|
2602
|
+
function a(d) {
|
|
2603
|
+
return d.toFixed(r.value);
|
|
2592
2604
|
}
|
|
2593
|
-
function l(
|
|
2594
|
-
return isNaN(
|
|
2605
|
+
function l(d) {
|
|
2606
|
+
return isNaN(d) || d === null || d === void 0 || d === "";
|
|
2595
2607
|
}
|
|
2596
|
-
function u(
|
|
2597
|
-
const
|
|
2598
|
-
return
|
|
2608
|
+
function u(d) {
|
|
2609
|
+
const c = l(e.max) ? null : new L(String(e.max), 10), f = l(e.min) ? null : new L(String(e.min), 10);
|
|
2610
|
+
return c && d.gt(c) ? c : f && d.lt(f) ? f : d;
|
|
2599
2611
|
}
|
|
2600
|
-
function d
|
|
2612
|
+
function p(d) {
|
|
2601
2613
|
if (e.parser)
|
|
2602
|
-
return isNaN(Number(
|
|
2603
|
-
let
|
|
2604
|
-
if (
|
|
2614
|
+
return isNaN(Number(d)) ? e.parser(d) : d;
|
|
2615
|
+
let c = u(new L(d, 10));
|
|
2616
|
+
if (c.isNaN()) {
|
|
2605
2617
|
if (e.canNull)
|
|
2606
2618
|
return null;
|
|
2607
|
-
const
|
|
2608
|
-
if (!
|
|
2609
|
-
|
|
2619
|
+
const s = new L("" + e.min, 10), v = new L("" + e.max, 10);
|
|
2620
|
+
if (!s.isNaN())
|
|
2621
|
+
c = s;
|
|
2610
2622
|
else if (!v.isNaN())
|
|
2611
|
-
|
|
2623
|
+
c = v;
|
|
2612
2624
|
else
|
|
2613
2625
|
return 0;
|
|
2614
2626
|
}
|
|
2615
|
-
return a(
|
|
2627
|
+
return a(c);
|
|
2616
2628
|
}
|
|
2617
|
-
function i(
|
|
2618
|
-
const
|
|
2619
|
-
o.value =
|
|
2629
|
+
function i(d) {
|
|
2630
|
+
const c = Number(d);
|
|
2631
|
+
o.value = c, n.emit("update:modelValue", c), n.emit("valueChange", c), n.emit("change", c);
|
|
2620
2632
|
}
|
|
2621
|
-
return { displayValue: t, getRealValue:
|
|
2633
|
+
return { displayValue: t, getRealValue: p, modelValue: o, isEmpty: l, onNumberValueChanged: i, precision: r, getValidNumberObject: u };
|
|
2622
2634
|
}
|
|
2623
2635
|
function Mo(e, n, t, o, r) {
|
|
2624
|
-
const { cleanFormat: a, format: l } = t, { displayValue: u, getRealValue:
|
|
2636
|
+
const { cleanFormat: a, format: l } = t, { displayValue: u, getRealValue: p, modelValue: i, isEmpty: d, onNumberValueChanged: c } = o, { downward: f, upward: s } = r, v = y(!1), h = V(() => u.value);
|
|
2625
2637
|
function C(w) {
|
|
2626
2638
|
var T;
|
|
2627
2639
|
if (w.stopPropagation(), v.value = !1, e.readonly || e.disabled)
|
|
@@ -2629,10 +2641,10 @@ function Mo(e, n, t, o, r) {
|
|
|
2629
2641
|
let B = (T = w.target) == null ? void 0 : T.value;
|
|
2630
2642
|
e.canNull || (B = B || 0);
|
|
2631
2643
|
const b = a(B);
|
|
2632
|
-
u.value = l(b),
|
|
2644
|
+
u.value = l(b), c(p(b)), n.emit("blur", { event: w, formatted: u.value, value: i.value });
|
|
2633
2645
|
}
|
|
2634
2646
|
function x(w) {
|
|
2635
|
-
w.stopPropagation(), v.value = !0, !(e.readonly || e.disabled) && (u.value =
|
|
2647
|
+
w.stopPropagation(), v.value = !0, !(e.readonly || e.disabled) && (u.value = d(i.value) || !e.showZero && i.value === "0" ? "" : String(i.value), n.emit("focus", { event: w, formatted: u.value, value: i.value }));
|
|
2636
2648
|
}
|
|
2637
2649
|
function A(w) {
|
|
2638
2650
|
var T;
|
|
@@ -2640,10 +2652,10 @@ function Mo(e, n, t, o, r) {
|
|
|
2640
2652
|
let B = (T = w.target) == null ? void 0 : T.value;
|
|
2641
2653
|
e.canNull || (B = B || 0);
|
|
2642
2654
|
const b = a(B);
|
|
2643
|
-
u.value = b,
|
|
2655
|
+
u.value = b, c(p(b));
|
|
2644
2656
|
}
|
|
2645
2657
|
function E(w) {
|
|
2646
|
-
w.key === "ArrowDown" && (w.preventDefault(), f()), w.key === "ArrowUp" && (w.preventDefault(),
|
|
2658
|
+
w.key === "ArrowDown" && (w.preventDefault(), f()), w.key === "ArrowUp" && (w.preventDefault(), s()), w.stopPropagation();
|
|
2647
2659
|
}
|
|
2648
2660
|
return { textBoxValue: h, onBlurTextBox: C, onFocusTextBox: x, onInput: A, onKeyDown: E, isFocus: v };
|
|
2649
2661
|
}
|
|
@@ -2654,26 +2666,26 @@ const ee = /* @__PURE__ */ q({
|
|
|
2654
2666
|
setup(e, n) {
|
|
2655
2667
|
const t = rt(e, n), o = ot(e, n, t), r = nt(e, n, o, t), a = Mo(e, n, o, t, r), l = Te(e, n, r), {
|
|
2656
2668
|
displayValue: u,
|
|
2657
|
-
modelValue:
|
|
2669
|
+
modelValue: p,
|
|
2658
2670
|
getRealValue: i
|
|
2659
|
-
} = t,
|
|
2660
|
-
format:
|
|
2671
|
+
} = t, d = Ke(e, n, a), {
|
|
2672
|
+
format: c
|
|
2661
2673
|
} = o, {
|
|
2662
2674
|
isFocus: f
|
|
2663
|
-
} = a,
|
|
2664
|
-
return
|
|
2675
|
+
} = a, s = V(() => !e.disabled && !e.readonly && e.showButton);
|
|
2676
|
+
return G(() => {
|
|
2665
2677
|
const v = i(e.modelValue);
|
|
2666
|
-
u.value =
|
|
2667
|
-
}),
|
|
2678
|
+
u.value = c(v);
|
|
2679
|
+
}), N(() => [e.value], ([v]) => {
|
|
2668
2680
|
const h = i(v);
|
|
2669
|
-
|
|
2670
|
-
}),
|
|
2671
|
-
v !==
|
|
2672
|
-
}),
|
|
2673
|
-
u.value =
|
|
2681
|
+
p.value = h, u.value = c(h);
|
|
2682
|
+
}), N(() => [e.modelValue], ([v]) => {
|
|
2683
|
+
v !== p.value && (p.value = v, !f.value && (u.value = c(i(v))));
|
|
2684
|
+
}), N(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2685
|
+
u.value = c(p.value);
|
|
2674
2686
|
}), () => S("div", {
|
|
2675
2687
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2676
|
-
}, [
|
|
2688
|
+
}, [d(), s.value && l()]);
|
|
2677
2689
|
}
|
|
2678
2690
|
});
|
|
2679
2691
|
class Po extends we {
|
|
@@ -2717,11 +2729,11 @@ function Eo(e, n) {
|
|
|
2717
2729
|
hideNestedPaddingInDesginerView: a,
|
|
2718
2730
|
onAcceptMovedChildElement: l,
|
|
2719
2731
|
resolveComponentContext: u,
|
|
2720
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2732
|
+
triggerBelongedComponentToMoveWhenMoved: p,
|
|
2721
2733
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2722
|
-
} = Ce(e),
|
|
2723
|
-
function
|
|
2724
|
-
return new Po(f, n).getPropertyConfig(
|
|
2734
|
+
} = Ce(e), d = e.schema;
|
|
2735
|
+
function c(f) {
|
|
2736
|
+
return new Po(f, n).getPropertyConfig(d);
|
|
2725
2737
|
}
|
|
2726
2738
|
return {
|
|
2727
2739
|
canAccepts: t,
|
|
@@ -2730,9 +2742,9 @@ function Eo(e, n) {
|
|
|
2730
2742
|
hideNestedPaddingInDesginerView: a,
|
|
2731
2743
|
onAcceptMovedChildElement: l,
|
|
2732
2744
|
resolveComponentContext: u,
|
|
2733
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2745
|
+
triggerBelongedComponentToMoveWhenMoved: p,
|
|
2734
2746
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
2735
|
-
getPropsConfig:
|
|
2747
|
+
getPropsConfig: c
|
|
2736
2748
|
};
|
|
2737
2749
|
}
|
|
2738
2750
|
const Ao = /* @__PURE__ */ q({
|
|
@@ -2740,16 +2752,16 @@ const Ao = /* @__PURE__ */ q({
|
|
|
2740
2752
|
props: Be,
|
|
2741
2753
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
2742
2754
|
setup(e, n) {
|
|
2743
|
-
const t = rt(e, n), o = ot(e, n, t), r = nt(e, n, o, t), a = Te(e, n, r), l = y(), u = Z("designer-host-service"),
|
|
2744
|
-
|
|
2745
|
-
l.value.componentInstance =
|
|
2746
|
-
}), n.expose(
|
|
2747
|
-
const
|
|
2755
|
+
const t = rt(e, n), o = ot(e, n, t), r = nt(e, n, o, t), a = Te(e, n, r), l = y(), u = Z("designer-host-service"), p = Z("design-item-context"), i = Eo(p, u), d = et(l, p, i);
|
|
2756
|
+
G(() => {
|
|
2757
|
+
l.value.componentInstance = d, e.readonly = !0;
|
|
2758
|
+
}), n.expose(d.value);
|
|
2759
|
+
const c = y();
|
|
2748
2760
|
return () => S("div", {
|
|
2749
2761
|
ref: l,
|
|
2750
2762
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner test"
|
|
2751
2763
|
}, [S("input", {
|
|
2752
|
-
ref:
|
|
2764
|
+
ref: c,
|
|
2753
2765
|
class: "form-control",
|
|
2754
2766
|
readonly: !0,
|
|
2755
2767
|
placeholder: e.placeholder
|
|
@@ -2764,11 +2776,11 @@ ee.registerDesigner = (e, n, t) => {
|
|
|
2764
2776
|
};
|
|
2765
2777
|
xe(ee);
|
|
2766
2778
|
function ko(e, n, t, o, r, a, l) {
|
|
2767
|
-
const u = y(0),
|
|
2779
|
+
const u = y(0), p = y(""), i = y([]), d = y(""), c = y("");
|
|
2768
2780
|
function f() {
|
|
2769
|
-
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (
|
|
2781
|
+
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (d.value = F(e.value.propertyValue.value), n.value = F(e.value.editorOptions.enums));
|
|
2770
2782
|
}
|
|
2771
|
-
function
|
|
2783
|
+
function s() {
|
|
2772
2784
|
e.value.propertyType === "number" && (u.value = e.value.propertyValue.value);
|
|
2773
2785
|
}
|
|
2774
2786
|
function v() {
|
|
@@ -2777,11 +2789,11 @@ function ko(e, n, t, o, r, a, l) {
|
|
|
2777
2789
|
function h() {
|
|
2778
2790
|
if (t.value.id === "dataStates" && (i.value = F(e.value.editorOptions.dataStates), e.value.propertyValue.value)) {
|
|
2779
2791
|
const w = e.value.propertyValue.value, B = i.value.filter((b) => w.includes(b.value)).map((b) => b.value).join(",");
|
|
2780
|
-
|
|
2792
|
+
p.value = F(B);
|
|
2781
2793
|
}
|
|
2782
2794
|
}
|
|
2783
2795
|
function C() {
|
|
2784
|
-
t.value.id === "variable" && (
|
|
2796
|
+
t.value.id === "variable" && (c.value = e.value.propertyValue.value.path);
|
|
2785
2797
|
}
|
|
2786
2798
|
function x() {
|
|
2787
2799
|
if (t.value.id === "expression") {
|
|
@@ -2794,19 +2806,19 @@ function ko(e, n, t, o, r, a, l) {
|
|
|
2794
2806
|
t.value.id;
|
|
2795
2807
|
}
|
|
2796
2808
|
function E() {
|
|
2797
|
-
f(),
|
|
2809
|
+
f(), s(), C(), v(), h(), x(), A();
|
|
2798
2810
|
}
|
|
2799
2811
|
return {
|
|
2800
2812
|
numberConstValue: u,
|
|
2801
|
-
bindVariableValue:
|
|
2802
|
-
dataStatesBindValue:
|
|
2813
|
+
bindVariableValue: c,
|
|
2814
|
+
dataStatesBindValue: p,
|
|
2803
2815
|
dataStatesValueArray: i,
|
|
2804
|
-
constEnumBindValue:
|
|
2816
|
+
constEnumBindValue: d,
|
|
2805
2817
|
setValue: E
|
|
2806
2818
|
};
|
|
2807
2819
|
}
|
|
2808
|
-
function
|
|
2809
|
-
const f = y(!1),
|
|
2820
|
+
function No(e, n, t, o, r, a, l, u, p, i, d, c) {
|
|
2821
|
+
const f = y(!1), s = y({
|
|
2810
2822
|
propertyName: "",
|
|
2811
2823
|
/** 属性类型:boolean, string, number, enum */
|
|
2812
2824
|
propertyType: "",
|
|
@@ -2828,53 +2840,53 @@ function Io(e, n, t, o, r, a, l, u, d, i, c, s) {
|
|
|
2828
2840
|
}, u.value = "否"));
|
|
2829
2841
|
}
|
|
2830
2842
|
function C() {
|
|
2831
|
-
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = F(r.value.dataStatesValue.value),
|
|
2843
|
+
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = F(r.value.dataStatesValue.value), p.value = F(n.value.editorOptions.dataStates));
|
|
2832
2844
|
}
|
|
2833
2845
|
function x() {
|
|
2834
2846
|
i.value = "", r.value.expressionValue && (r.value.expressionValue.value = "");
|
|
2835
2847
|
}
|
|
2836
2848
|
function A() {
|
|
2837
|
-
|
|
2849
|
+
d.value || (u.value = u.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = u, r.value.stateMachineValue.value.exist = u, B());
|
|
2838
2850
|
}
|
|
2839
2851
|
function E() {
|
|
2840
|
-
|
|
2852
|
+
s.value.propertyValue.value && s.value.propertyValue.value.includes("viewModel.stateMachine") && (r.value.customValue.value = "");
|
|
2841
2853
|
}
|
|
2842
2854
|
function w() {
|
|
2843
|
-
|
|
2855
|
+
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
2856
|
}
|
|
2845
2857
|
function B() {
|
|
2846
|
-
if (!
|
|
2847
|
-
switch (w(),
|
|
2858
|
+
if (!d.value)
|
|
2859
|
+
switch (w(), s.value.propertyValue.type) {
|
|
2848
2860
|
case "const":
|
|
2849
|
-
(
|
|
2861
|
+
(s.value.propertyType === "enum" && s.value.propertyValue.value !== "" || s.value.propertyType === "number" && s.value.propertyValue.value != null || s.value.propertyType === "string") && (x(), e.emit("propertyEditorValueChanged", s));
|
|
2850
2862
|
break;
|
|
2851
2863
|
case "variable":
|
|
2852
|
-
|
|
2864
|
+
s.value.propertyValue.value.path !== "" && (x(), e.emit("propertyEditorValueChanged", s));
|
|
2853
2865
|
break;
|
|
2854
2866
|
case "custom":
|
|
2855
|
-
x(), E(), e.emit("propertyEditorValueChanged",
|
|
2867
|
+
x(), E(), e.emit("propertyEditorValueChanged", s);
|
|
2856
2868
|
break;
|
|
2857
2869
|
case "expression":
|
|
2858
|
-
i.value && e.emit("propertyEditorValueChanged",
|
|
2870
|
+
i.value && e.emit("propertyEditorValueChanged", s);
|
|
2859
2871
|
break;
|
|
2860
2872
|
case "stateMachine":
|
|
2861
|
-
|
|
2873
|
+
s.value.propertyValue.value.id && (x(), e.emit("propertyEditorValueChanged", s));
|
|
2862
2874
|
break;
|
|
2863
2875
|
case "dataStates":
|
|
2864
|
-
if (
|
|
2865
|
-
x(), e.emit("propertyEditorValueChanged",
|
|
2876
|
+
if (s.value.propertyValue.value !== "") {
|
|
2877
|
+
x(), e.emit("propertyEditorValueChanged", s);
|
|
2866
2878
|
break;
|
|
2867
2879
|
}
|
|
2868
2880
|
}
|
|
2869
2881
|
}
|
|
2870
2882
|
function b() {
|
|
2871
|
-
n.value.propertyValue = r.value[`${
|
|
2883
|
+
n.value.propertyValue = r.value[`${c.value.id}Value`], v(), h(), C(), B(), s.value.isNewVariable = !1;
|
|
2872
2884
|
}
|
|
2873
2885
|
return {
|
|
2874
2886
|
updateData: b,
|
|
2875
2887
|
changeState: A,
|
|
2876
2888
|
prefix: f,
|
|
2877
|
-
propertyEditorValueChange:
|
|
2889
|
+
propertyEditorValueChange: s
|
|
2878
2890
|
};
|
|
2879
2891
|
}
|
|
2880
2892
|
var he = function(e, n) {
|
|
@@ -2893,29 +2905,29 @@ function z(e, n) {
|
|
|
2893
2905
|
}
|
|
2894
2906
|
e.prototype = n === null ? Object.create(n) : (t.prototype = n.prototype, new t());
|
|
2895
2907
|
}
|
|
2896
|
-
function
|
|
2908
|
+
function Io(e, n, t, o) {
|
|
2897
2909
|
function r(a) {
|
|
2898
2910
|
return a instanceof t ? a : new t(function(l) {
|
|
2899
2911
|
l(a);
|
|
2900
2912
|
});
|
|
2901
2913
|
}
|
|
2902
2914
|
return new (t || (t = Promise))(function(a, l) {
|
|
2903
|
-
function u(
|
|
2915
|
+
function u(d) {
|
|
2904
2916
|
try {
|
|
2905
|
-
i(o.next(
|
|
2906
|
-
} catch (
|
|
2907
|
-
l(
|
|
2917
|
+
i(o.next(d));
|
|
2918
|
+
} catch (c) {
|
|
2919
|
+
l(c);
|
|
2908
2920
|
}
|
|
2909
2921
|
}
|
|
2910
|
-
function d
|
|
2922
|
+
function p(d) {
|
|
2911
2923
|
try {
|
|
2912
|
-
i(o.throw(
|
|
2913
|
-
} catch (
|
|
2914
|
-
l(
|
|
2924
|
+
i(o.throw(d));
|
|
2925
|
+
} catch (c) {
|
|
2926
|
+
l(c);
|
|
2915
2927
|
}
|
|
2916
2928
|
}
|
|
2917
|
-
function i(
|
|
2918
|
-
|
|
2929
|
+
function i(d) {
|
|
2930
|
+
d.done ? a(d.value) : r(d.value).then(u, p);
|
|
2919
2931
|
}
|
|
2920
2932
|
i((o = o.apply(e, n || [])).next());
|
|
2921
2933
|
});
|
|
@@ -2929,11 +2941,11 @@ function at(e, n) {
|
|
|
2929
2941
|
return this;
|
|
2930
2942
|
}), l;
|
|
2931
2943
|
function u(i) {
|
|
2932
|
-
return function(
|
|
2933
|
-
return
|
|
2944
|
+
return function(d) {
|
|
2945
|
+
return p([i, d]);
|
|
2934
2946
|
};
|
|
2935
2947
|
}
|
|
2936
|
-
function
|
|
2948
|
+
function p(i) {
|
|
2937
2949
|
if (o) throw new TypeError("Generator is already executing.");
|
|
2938
2950
|
for (; l && (l = 0, i[0] && (t = 0)), t; ) try {
|
|
2939
2951
|
if (o = 1, r && (a = i[0] & 2 ? r.return : i[0] ? r.throw || ((a = r.return) && a.call(r), 0) : r.next) && !(a = a.call(r, i[1])).done) return a;
|
|
@@ -2971,8 +2983,8 @@ function at(e, n) {
|
|
|
2971
2983
|
continue;
|
|
2972
2984
|
}
|
|
2973
2985
|
i = n.call(e, t);
|
|
2974
|
-
} catch (
|
|
2975
|
-
i = [6,
|
|
2986
|
+
} catch (d) {
|
|
2987
|
+
i = [6, d], r = 0;
|
|
2976
2988
|
} finally {
|
|
2977
2989
|
o = a = 0;
|
|
2978
2990
|
}
|
|
@@ -3021,36 +3033,36 @@ function Oo(e, n, t) {
|
|
|
3021
3033
|
return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", l), r[Symbol.asyncIterator] = function() {
|
|
3022
3034
|
return this;
|
|
3023
3035
|
}, r;
|
|
3024
|
-
function l(
|
|
3036
|
+
function l(s) {
|
|
3025
3037
|
return function(v) {
|
|
3026
|
-
return Promise.resolve(v).then(
|
|
3038
|
+
return Promise.resolve(v).then(s, c);
|
|
3027
3039
|
};
|
|
3028
3040
|
}
|
|
3029
|
-
function u(
|
|
3030
|
-
o[
|
|
3041
|
+
function u(s, v) {
|
|
3042
|
+
o[s] && (r[s] = function(h) {
|
|
3031
3043
|
return new Promise(function(C, x) {
|
|
3032
|
-
a.push([
|
|
3044
|
+
a.push([s, h, C, x]) > 1 || p(s, h);
|
|
3033
3045
|
});
|
|
3034
|
-
}, v && (r[
|
|
3046
|
+
}, v && (r[s] = v(r[s])));
|
|
3035
3047
|
}
|
|
3036
|
-
function
|
|
3048
|
+
function p(s, v) {
|
|
3037
3049
|
try {
|
|
3038
|
-
i(o[
|
|
3050
|
+
i(o[s](v));
|
|
3039
3051
|
} catch (h) {
|
|
3040
3052
|
f(a[0][3], h);
|
|
3041
3053
|
}
|
|
3042
3054
|
}
|
|
3043
|
-
function i(
|
|
3044
|
-
|
|
3055
|
+
function i(s) {
|
|
3056
|
+
s.value instanceof Y ? Promise.resolve(s.value.v).then(d, c) : f(a[0][2], s);
|
|
3045
3057
|
}
|
|
3046
|
-
function
|
|
3047
|
-
|
|
3058
|
+
function d(s) {
|
|
3059
|
+
p("next", s);
|
|
3048
3060
|
}
|
|
3049
|
-
function s
|
|
3050
|
-
|
|
3061
|
+
function c(s) {
|
|
3062
|
+
p("throw", s);
|
|
3051
3063
|
}
|
|
3052
|
-
function f(
|
|
3053
|
-
|
|
3064
|
+
function f(s, v) {
|
|
3065
|
+
s(v), a.shift(), a.length && p(a[0][0], a[0][1]);
|
|
3054
3066
|
}
|
|
3055
3067
|
}
|
|
3056
3068
|
function Do(e) {
|
|
@@ -3061,18 +3073,18 @@ function Do(e) {
|
|
|
3061
3073
|
}, t);
|
|
3062
3074
|
function o(a) {
|
|
3063
3075
|
t[a] = e[a] && function(l) {
|
|
3064
|
-
return new Promise(function(u,
|
|
3065
|
-
l = e[a](l), r(u,
|
|
3076
|
+
return new Promise(function(u, p) {
|
|
3077
|
+
l = e[a](l), r(u, p, l.done, l.value);
|
|
3066
3078
|
});
|
|
3067
3079
|
};
|
|
3068
3080
|
}
|
|
3069
|
-
function r(a, l, u,
|
|
3070
|
-
Promise.resolve(
|
|
3081
|
+
function r(a, l, u, p) {
|
|
3082
|
+
Promise.resolve(p).then(function(i) {
|
|
3071
3083
|
a({ value: i, done: u });
|
|
3072
3084
|
}, l);
|
|
3073
3085
|
}
|
|
3074
3086
|
}
|
|
3075
|
-
function
|
|
3087
|
+
function I(e) {
|
|
3076
3088
|
return typeof e == "function";
|
|
3077
3089
|
}
|
|
3078
3090
|
function it(e) {
|
|
@@ -3108,34 +3120,34 @@ var te = function() {
|
|
|
3108
3120
|
if (l)
|
|
3109
3121
|
if (this._parentage = null, Array.isArray(l))
|
|
3110
3122
|
try {
|
|
3111
|
-
for (var u = X(l),
|
|
3112
|
-
var i =
|
|
3123
|
+
for (var u = X(l), p = u.next(); !p.done; p = u.next()) {
|
|
3124
|
+
var i = p.value;
|
|
3113
3125
|
i.remove(this);
|
|
3114
3126
|
}
|
|
3115
3127
|
} catch (h) {
|
|
3116
3128
|
n = { error: h };
|
|
3117
3129
|
} finally {
|
|
3118
3130
|
try {
|
|
3119
|
-
|
|
3131
|
+
p && !p.done && (t = u.return) && t.call(u);
|
|
3120
3132
|
} finally {
|
|
3121
3133
|
if (n) throw n.error;
|
|
3122
3134
|
}
|
|
3123
3135
|
}
|
|
3124
3136
|
else
|
|
3125
3137
|
l.remove(this);
|
|
3126
|
-
var
|
|
3127
|
-
if (
|
|
3138
|
+
var d = this.initialTeardown;
|
|
3139
|
+
if (I(d))
|
|
3128
3140
|
try {
|
|
3129
|
-
|
|
3141
|
+
d();
|
|
3130
3142
|
} catch (h) {
|
|
3131
3143
|
a = h instanceof de ? h.errors : [h];
|
|
3132
3144
|
}
|
|
3133
|
-
var
|
|
3134
|
-
if (
|
|
3145
|
+
var c = this._finalizers;
|
|
3146
|
+
if (c) {
|
|
3135
3147
|
this._finalizers = null;
|
|
3136
3148
|
try {
|
|
3137
|
-
for (var f = X(
|
|
3138
|
-
var v =
|
|
3149
|
+
for (var f = X(c), s = f.next(); !s.done; s = f.next()) {
|
|
3150
|
+
var v = s.value;
|
|
3139
3151
|
try {
|
|
3140
3152
|
De(v);
|
|
3141
3153
|
} catch (h) {
|
|
@@ -3146,7 +3158,7 @@ var te = function() {
|
|
|
3146
3158
|
o = { error: h };
|
|
3147
3159
|
} finally {
|
|
3148
3160
|
try {
|
|
3149
|
-
|
|
3161
|
+
s && !s.done && (r = f.return) && r.call(f);
|
|
3150
3162
|
} finally {
|
|
3151
3163
|
if (o) throw o.error;
|
|
3152
3164
|
}
|
|
@@ -3186,10 +3198,10 @@ var te = function() {
|
|
|
3186
3198
|
}(), e;
|
|
3187
3199
|
}(), lt = te.EMPTY;
|
|
3188
3200
|
function ut(e) {
|
|
3189
|
-
return e instanceof te || e && "closed" in e &&
|
|
3201
|
+
return e instanceof te || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
3190
3202
|
}
|
|
3191
3203
|
function De(e) {
|
|
3192
|
-
|
|
3204
|
+
I(e) ? e() : e.unsubscribe();
|
|
3193
3205
|
}
|
|
3194
3206
|
var st = {
|
|
3195
3207
|
onUnhandledError: null,
|
|
@@ -3197,7 +3209,7 @@ var st = {
|
|
|
3197
3209
|
Promise: void 0,
|
|
3198
3210
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
3199
3211
|
useDeprecatedNextContext: !1
|
|
3200
|
-
},
|
|
3212
|
+
}, jo = {
|
|
3201
3213
|
setTimeout: function(e, n) {
|
|
3202
3214
|
for (var t = [], o = 2; o < arguments.length; o++)
|
|
3203
3215
|
t[o - 2] = arguments[o];
|
|
@@ -3209,11 +3221,11 @@ var st = {
|
|
|
3209
3221
|
delegate: void 0
|
|
3210
3222
|
};
|
|
3211
3223
|
function ct(e) {
|
|
3212
|
-
|
|
3224
|
+
jo.setTimeout(function() {
|
|
3213
3225
|
throw e;
|
|
3214
3226
|
});
|
|
3215
3227
|
}
|
|
3216
|
-
function
|
|
3228
|
+
function je() {
|
|
3217
3229
|
}
|
|
3218
3230
|
function re(e) {
|
|
3219
3231
|
e();
|
|
@@ -3249,9 +3261,9 @@ var Fe = function(e) {
|
|
|
3249
3261
|
this.unsubscribe();
|
|
3250
3262
|
}
|
|
3251
3263
|
}, n;
|
|
3252
|
-
}(te),
|
|
3264
|
+
}(te), Lo = Function.prototype.bind;
|
|
3253
3265
|
function pe(e, n) {
|
|
3254
|
-
return
|
|
3266
|
+
return Lo.call(e, n);
|
|
3255
3267
|
}
|
|
3256
3268
|
var $o = function() {
|
|
3257
3269
|
function e(n) {
|
|
@@ -3288,7 +3300,7 @@ var $o = function() {
|
|
|
3288
3300
|
z(n, e);
|
|
3289
3301
|
function n(t, o, r) {
|
|
3290
3302
|
var a = e.call(this) || this, l;
|
|
3291
|
-
if (
|
|
3303
|
+
if (I(t) || !t)
|
|
3292
3304
|
l = {
|
|
3293
3305
|
next: t ?? void 0,
|
|
3294
3306
|
error: o ?? void 0,
|
|
@@ -3316,16 +3328,16 @@ function Uo(e) {
|
|
|
3316
3328
|
}
|
|
3317
3329
|
var Ro = {
|
|
3318
3330
|
closed: !0,
|
|
3319
|
-
next:
|
|
3331
|
+
next: je,
|
|
3320
3332
|
error: Uo,
|
|
3321
|
-
complete:
|
|
3333
|
+
complete: je
|
|
3322
3334
|
}, Me = function() {
|
|
3323
3335
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
3324
3336
|
}();
|
|
3325
3337
|
function _o(e) {
|
|
3326
3338
|
return e;
|
|
3327
3339
|
}
|
|
3328
|
-
function
|
|
3340
|
+
function Ho(e) {
|
|
3329
3341
|
return e.length === 0 ? _o : e.length === 1 ? e[0] : function(t) {
|
|
3330
3342
|
return e.reduce(function(o, r) {
|
|
3331
3343
|
return r(o);
|
|
@@ -3342,8 +3354,8 @@ var _ = function() {
|
|
|
3342
3354
|
}, e.prototype.subscribe = function(n, t, o) {
|
|
3343
3355
|
var r = this, a = qo(n) ? n : new be(n, t, o);
|
|
3344
3356
|
return re(function() {
|
|
3345
|
-
var l = r, u = l.operator,
|
|
3346
|
-
a.add(u ? u.call(a,
|
|
3357
|
+
var l = r, u = l.operator, p = l.source;
|
|
3358
|
+
a.add(u ? u.call(a, p) : p ? r._subscribe(a) : r._trySubscribe(a));
|
|
3347
3359
|
}), a;
|
|
3348
3360
|
}, e.prototype._trySubscribe = function(n) {
|
|
3349
3361
|
try {
|
|
@@ -3353,13 +3365,13 @@ var _ = function() {
|
|
|
3353
3365
|
}
|
|
3354
3366
|
}, e.prototype.forEach = function(n, t) {
|
|
3355
3367
|
var o = this;
|
|
3356
|
-
return t =
|
|
3368
|
+
return t = Le(t), new t(function(r, a) {
|
|
3357
3369
|
var l = new be({
|
|
3358
3370
|
next: function(u) {
|
|
3359
3371
|
try {
|
|
3360
3372
|
n(u);
|
|
3361
|
-
} catch (
|
|
3362
|
-
a(
|
|
3373
|
+
} catch (p) {
|
|
3374
|
+
a(p), l.unsubscribe();
|
|
3363
3375
|
}
|
|
3364
3376
|
},
|
|
3365
3377
|
error: a,
|
|
@@ -3375,10 +3387,10 @@ var _ = function() {
|
|
|
3375
3387
|
}, e.prototype.pipe = function() {
|
|
3376
3388
|
for (var n = [], t = 0; t < arguments.length; t++)
|
|
3377
3389
|
n[t] = arguments[t];
|
|
3378
|
-
return
|
|
3390
|
+
return Ho(n)(this);
|
|
3379
3391
|
}, e.prototype.toPromise = function(n) {
|
|
3380
3392
|
var t = this;
|
|
3381
|
-
return n =
|
|
3393
|
+
return n = Le(n), new n(function(o, r) {
|
|
3382
3394
|
var a;
|
|
3383
3395
|
t.subscribe(function(l) {
|
|
3384
3396
|
return a = l;
|
|
@@ -3392,18 +3404,18 @@ var _ = function() {
|
|
|
3392
3404
|
return new e(n);
|
|
3393
3405
|
}, e;
|
|
3394
3406
|
}();
|
|
3395
|
-
function
|
|
3407
|
+
function Le(e) {
|
|
3396
3408
|
var n;
|
|
3397
3409
|
return (n = e ?? st.Promise) !== null && n !== void 0 ? n : Promise;
|
|
3398
3410
|
}
|
|
3399
|
-
function
|
|
3400
|
-
return e &&
|
|
3411
|
+
function Go(e) {
|
|
3412
|
+
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
3401
3413
|
}
|
|
3402
3414
|
function qo(e) {
|
|
3403
|
-
return e && e instanceof Fe ||
|
|
3415
|
+
return e && e instanceof Fe || Go(e) && ut(e);
|
|
3404
3416
|
}
|
|
3405
3417
|
function zo(e) {
|
|
3406
|
-
return
|
|
3418
|
+
return I(e == null ? void 0 : e.lift);
|
|
3407
3419
|
}
|
|
3408
3420
|
function Pe(e) {
|
|
3409
3421
|
return function(n) {
|
|
@@ -3424,22 +3436,22 @@ function dt(e, n, t, o, r) {
|
|
|
3424
3436
|
var Wo = function(e) {
|
|
3425
3437
|
z(n, e);
|
|
3426
3438
|
function n(t, o, r, a, l, u) {
|
|
3427
|
-
var
|
|
3428
|
-
return
|
|
3439
|
+
var p = e.call(this, t) || this;
|
|
3440
|
+
return p.onFinalize = l, p.shouldUnsubscribe = u, p._next = o ? function(i) {
|
|
3429
3441
|
try {
|
|
3430
3442
|
o(i);
|
|
3431
|
-
} catch (
|
|
3432
|
-
t.error(
|
|
3443
|
+
} catch (d) {
|
|
3444
|
+
t.error(d);
|
|
3433
3445
|
}
|
|
3434
|
-
} : e.prototype._next,
|
|
3446
|
+
} : e.prototype._next, p._error = a ? function(i) {
|
|
3435
3447
|
try {
|
|
3436
3448
|
a(i);
|
|
3437
|
-
} catch (
|
|
3438
|
-
t.error(
|
|
3449
|
+
} catch (d) {
|
|
3450
|
+
t.error(d);
|
|
3439
3451
|
} finally {
|
|
3440
3452
|
this.unsubscribe();
|
|
3441
3453
|
}
|
|
3442
|
-
} : e.prototype._error,
|
|
3454
|
+
} : e.prototype._error, p._complete = r ? function() {
|
|
3443
3455
|
try {
|
|
3444
3456
|
r();
|
|
3445
3457
|
} catch (i) {
|
|
@@ -3447,7 +3459,7 @@ var Wo = function(e) {
|
|
|
3447
3459
|
} finally {
|
|
3448
3460
|
this.unsubscribe();
|
|
3449
3461
|
}
|
|
3450
|
-
} : e.prototype._complete,
|
|
3462
|
+
} : e.prototype._complete, p;
|
|
3451
3463
|
}
|
|
3452
3464
|
return n.prototype.unsubscribe = function() {
|
|
3453
3465
|
var t;
|
|
@@ -3480,8 +3492,8 @@ var Wo = function(e) {
|
|
|
3480
3492
|
o.currentObservers || (o.currentObservers = Array.from(o.observers));
|
|
3481
3493
|
try {
|
|
3482
3494
|
for (var l = X(o.currentObservers), u = l.next(); !u.done; u = l.next()) {
|
|
3483
|
-
var
|
|
3484
|
-
|
|
3495
|
+
var p = u.value;
|
|
3496
|
+
p.next(t);
|
|
3485
3497
|
}
|
|
3486
3498
|
} catch (i) {
|
|
3487
3499
|
r = { error: i };
|
|
@@ -3657,7 +3669,7 @@ var Wo = function(e) {
|
|
|
3657
3669
|
}, n;
|
|
3658
3670
|
}(Re), Jo = new Ko(Xo);
|
|
3659
3671
|
function er(e) {
|
|
3660
|
-
return e &&
|
|
3672
|
+
return e && I(e.schedule);
|
|
3661
3673
|
}
|
|
3662
3674
|
function tr(e) {
|
|
3663
3675
|
return e[e.length - 1];
|
|
@@ -3669,13 +3681,13 @@ var ft = function(e) {
|
|
|
3669
3681
|
return e && typeof e.length == "number" && typeof e != "function";
|
|
3670
3682
|
};
|
|
3671
3683
|
function vt(e) {
|
|
3672
|
-
return
|
|
3673
|
-
}
|
|
3674
|
-
function mt(e) {
|
|
3675
|
-
return N(e[Me]);
|
|
3684
|
+
return I(e == null ? void 0 : e.then);
|
|
3676
3685
|
}
|
|
3677
3686
|
function yt(e) {
|
|
3678
|
-
return
|
|
3687
|
+
return I(e[Me]);
|
|
3688
|
+
}
|
|
3689
|
+
function mt(e) {
|
|
3690
|
+
return Symbol.asyncIterator && I(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
3679
3691
|
}
|
|
3680
3692
|
function ht(e) {
|
|
3681
3693
|
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.");
|
|
@@ -3685,7 +3697,7 @@ function or() {
|
|
|
3685
3697
|
}
|
|
3686
3698
|
var bt = or();
|
|
3687
3699
|
function gt(e) {
|
|
3688
|
-
return
|
|
3700
|
+
return I(e == null ? void 0 : e[bt]);
|
|
3689
3701
|
}
|
|
3690
3702
|
function St(e) {
|
|
3691
3703
|
return Oo(this, arguments, function() {
|
|
@@ -3719,19 +3731,19 @@ function St(e) {
|
|
|
3719
3731
|
});
|
|
3720
3732
|
}
|
|
3721
3733
|
function Ct(e) {
|
|
3722
|
-
return
|
|
3734
|
+
return I(e == null ? void 0 : e.getReader);
|
|
3723
3735
|
}
|
|
3724
3736
|
function Ee(e) {
|
|
3725
3737
|
if (e instanceof _)
|
|
3726
3738
|
return e;
|
|
3727
3739
|
if (e != null) {
|
|
3728
|
-
if (
|
|
3740
|
+
if (yt(e))
|
|
3729
3741
|
return rr(e);
|
|
3730
3742
|
if (ft(e))
|
|
3731
3743
|
return ar(e);
|
|
3732
3744
|
if (vt(e))
|
|
3733
3745
|
return ir(e);
|
|
3734
|
-
if (
|
|
3746
|
+
if (mt(e))
|
|
3735
3747
|
return wt(e);
|
|
3736
3748
|
if (gt(e))
|
|
3737
3749
|
return lr(e);
|
|
@@ -3743,7 +3755,7 @@ function Ee(e) {
|
|
|
3743
3755
|
function rr(e) {
|
|
3744
3756
|
return new _(function(n) {
|
|
3745
3757
|
var t = e[Me]();
|
|
3746
|
-
if (
|
|
3758
|
+
if (I(t.subscribe))
|
|
3747
3759
|
return t.subscribe(n);
|
|
3748
3760
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
3749
3761
|
});
|
|
@@ -3797,29 +3809,29 @@ function ur(e) {
|
|
|
3797
3809
|
}
|
|
3798
3810
|
function sr(e, n) {
|
|
3799
3811
|
var t, o, r, a;
|
|
3800
|
-
return
|
|
3812
|
+
return Io(this, void 0, void 0, function() {
|
|
3801
3813
|
var l, u;
|
|
3802
|
-
return at(this, function(
|
|
3803
|
-
switch (
|
|
3814
|
+
return at(this, function(p) {
|
|
3815
|
+
switch (p.label) {
|
|
3804
3816
|
case 0:
|
|
3805
|
-
|
|
3817
|
+
p.trys.push([0, 5, 6, 11]), t = Do(e), p.label = 1;
|
|
3806
3818
|
case 1:
|
|
3807
3819
|
return [4, t.next()];
|
|
3808
3820
|
case 2:
|
|
3809
|
-
if (o =
|
|
3821
|
+
if (o = p.sent(), !!o.done) return [3, 4];
|
|
3810
3822
|
if (l = o.value, n.next(l), n.closed)
|
|
3811
3823
|
return [2];
|
|
3812
|
-
|
|
3824
|
+
p.label = 3;
|
|
3813
3825
|
case 3:
|
|
3814
3826
|
return [3, 1];
|
|
3815
3827
|
case 4:
|
|
3816
3828
|
return [3, 11];
|
|
3817
3829
|
case 5:
|
|
3818
|
-
return u =
|
|
3830
|
+
return u = p.sent(), r = { error: u }, [3, 11];
|
|
3819
3831
|
case 6:
|
|
3820
|
-
return
|
|
3832
|
+
return p.trys.push([6, , 9, 10]), o && !o.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
|
|
3821
3833
|
case 7:
|
|
3822
|
-
|
|
3834
|
+
p.sent(), p.label = 8;
|
|
3823
3835
|
case 8:
|
|
3824
3836
|
return [3, 10];
|
|
3825
3837
|
case 9:
|
|
@@ -3894,7 +3906,7 @@ function fr(e, n) {
|
|
|
3894
3906
|
l ? t.complete() : t.next(a);
|
|
3895
3907
|
}, 0, !0);
|
|
3896
3908
|
}), function() {
|
|
3897
|
-
return
|
|
3909
|
+
return I(o == null ? void 0 : o.return) && o.return();
|
|
3898
3910
|
};
|
|
3899
3911
|
});
|
|
3900
3912
|
}
|
|
@@ -3915,15 +3927,15 @@ function Tt(e, n) {
|
|
|
3915
3927
|
function vr(e, n) {
|
|
3916
3928
|
return Tt(St(e), n);
|
|
3917
3929
|
}
|
|
3918
|
-
function
|
|
3930
|
+
function yr(e, n) {
|
|
3919
3931
|
if (e != null) {
|
|
3920
|
-
if (
|
|
3932
|
+
if (yt(e))
|
|
3921
3933
|
return cr(e, n);
|
|
3922
3934
|
if (ft(e))
|
|
3923
3935
|
return pr(e, n);
|
|
3924
3936
|
if (vt(e))
|
|
3925
3937
|
return dr(e, n);
|
|
3926
|
-
if (
|
|
3938
|
+
if (mt(e))
|
|
3927
3939
|
return Tt(e, n);
|
|
3928
3940
|
if (gt(e))
|
|
3929
3941
|
return fr(e, n);
|
|
@@ -3932,14 +3944,14 @@ function mr(e, n) {
|
|
|
3932
3944
|
}
|
|
3933
3945
|
throw ht(e);
|
|
3934
3946
|
}
|
|
3935
|
-
function
|
|
3936
|
-
return n ?
|
|
3947
|
+
function mr(e, n) {
|
|
3948
|
+
return n ? yr(e, n) : Ee(e);
|
|
3937
3949
|
}
|
|
3938
3950
|
function hr() {
|
|
3939
3951
|
for (var e = [], n = 0; n < arguments.length; n++)
|
|
3940
3952
|
e[n] = arguments[n];
|
|
3941
3953
|
var t = nr(e);
|
|
3942
|
-
return
|
|
3954
|
+
return mr(e, t);
|
|
3943
3955
|
}
|
|
3944
3956
|
function br(e, n) {
|
|
3945
3957
|
return n === void 0 && (n = Jo), Pe(function(t, o) {
|
|
@@ -3950,16 +3962,16 @@ function br(e, n) {
|
|
|
3950
3962
|
a = null, o.next(i);
|
|
3951
3963
|
}
|
|
3952
3964
|
};
|
|
3953
|
-
function
|
|
3954
|
-
var i = l + e,
|
|
3955
|
-
if (
|
|
3956
|
-
r = this.schedule(void 0, i -
|
|
3965
|
+
function p() {
|
|
3966
|
+
var i = l + e, d = n.now();
|
|
3967
|
+
if (d < i) {
|
|
3968
|
+
r = this.schedule(void 0, i - d), o.add(r);
|
|
3957
3969
|
return;
|
|
3958
3970
|
}
|
|
3959
3971
|
u();
|
|
3960
3972
|
}
|
|
3961
3973
|
t.subscribe(dt(o, function(i) {
|
|
3962
|
-
a = i, l = n.now(), r || (r = n.schedule(
|
|
3974
|
+
a = i, l = n.now(), r || (r = n.schedule(p, e), o.add(r));
|
|
3963
3975
|
}, function() {
|
|
3964
3976
|
u(), o.complete();
|
|
3965
3977
|
}, void 0, function() {
|
|
@@ -3974,9 +3986,9 @@ const fe = /* @__PURE__ */ q({
|
|
|
3974
3986
|
setup(e, n) {
|
|
3975
3987
|
const t = y(kn), o = y(""), r = y("const"), a = y([]), l = y(!1);
|
|
3976
3988
|
let u;
|
|
3977
|
-
const
|
|
3978
|
-
let
|
|
3979
|
-
const f = y([]),
|
|
3989
|
+
const p = y(""), i = y(""), d = y([]);
|
|
3990
|
+
let c;
|
|
3991
|
+
const f = y([]), s = y("是");
|
|
3980
3992
|
y("");
|
|
3981
3993
|
const v = y(!1), h = y("<span class='f-icon f-icon-more-horizontal'></span>"), C = y(!1), x = y([]), {
|
|
3982
3994
|
numberConstValue: A,
|
|
@@ -3985,12 +3997,12 @@ const fe = /* @__PURE__ */ q({
|
|
|
3985
3997
|
dataStatesValueArray: B,
|
|
3986
3998
|
constEnumBindValue: b,
|
|
3987
3999
|
setValue: T
|
|
3988
|
-
} = ko(t, a, r,
|
|
4000
|
+
} = ko(t, a, r, c, s, o, v), {
|
|
3989
4001
|
updateData: P,
|
|
3990
4002
|
changeState: $,
|
|
3991
4003
|
prefix: Q,
|
|
3992
4004
|
propertyEditorValueChange: R
|
|
3993
|
-
} =
|
|
4005
|
+
} = No(n, t, b, a, k, f, c, s, B, o, C, r);
|
|
3994
4006
|
function K() {
|
|
3995
4007
|
x.value = An.value.filter((m) => t.value.editorOptions.types.includes(m.id));
|
|
3996
4008
|
}
|
|
@@ -4001,7 +4013,7 @@ const fe = /* @__PURE__ */ q({
|
|
|
4001
4013
|
M(), r.value.id === "variable" && t.value.propertyValue.value === void 0 && (t.value.propertyValue = F(k.value.variableValue)), k.value[`${r.value.id}Value`] = F(t.value.propertyValue), T();
|
|
4002
4014
|
}
|
|
4003
4015
|
function ne(m) {
|
|
4004
|
-
r.value = F(x.value.find((O) => O.label === m[0].label)), r.value.id === "expression" && (k.value.expressionValue.value && (o.value = k.value.expressionValue.value.value), v.value = !0), r.value.id === "custom" &&
|
|
4016
|
+
r.value = F(x.value.find((O) => O.label === m[0].label)), r.value.id === "expression" && (k.value.expressionValue.value && (o.value = k.value.expressionValue.value.value), v.value = !0), r.value.id === "custom" && jt(), P();
|
|
4005
4017
|
}
|
|
4006
4018
|
function ce(m) {
|
|
4007
4019
|
b.value = F(m.value), t.value.propertyValue.value = F(m.value), k.value.constValue.value = F(m.value), P();
|
|
@@ -4013,8 +4025,8 @@ const fe = /* @__PURE__ */ q({
|
|
|
4013
4025
|
k.value.constValue.value = m, P();
|
|
4014
4026
|
}
|
|
4015
4027
|
function Mt() {
|
|
4016
|
-
const m = t.value.propertyName, O = m[0].toUpperCase() + m.substr(1), U = t.value.controlName,
|
|
4017
|
-
u = `${
|
|
4028
|
+
const m = t.value.propertyName, O = m[0].toUpperCase() + m.substr(1), U = t.value.controlName, Ne = t.value.editorOptions.newVariablePrefix || "", Xt = Ne ? U[0].toUpperCase() + U.substr(1) : U[0].toLowerCase() + U.substr(1);
|
|
4029
|
+
u = `${Ne}${Xt}${O}`, Pt();
|
|
4018
4030
|
}
|
|
4019
4031
|
function Pt() {
|
|
4020
4032
|
Et(), r.value.id === "variable" && (E.value = t.value.propertyValue.value.path), Ae(), i.value !== t.value.propertyValue.value.path && P();
|
|
@@ -4028,22 +4040,22 @@ const fe = /* @__PURE__ */ q({
|
|
|
4028
4040
|
}
|
|
4029
4041
|
function At(m) {
|
|
4030
4042
|
var O;
|
|
4031
|
-
m === ((O = t.value.editorOptions.variables) == null ? void 0 : O.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = u, t.value.propertyValue.value.field =
|
|
4043
|
+
m === ((O = t.value.editorOptions.variables) == null ? void 0 : O.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = u, t.value.propertyValue.value.field = p, t.value.propertyValue.value.fullPath = u, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, R.value.isNewVariable = !0, t.value.editorOptions.variables.push(F(t.value.propertyValue.value)), k.value.variableValue.value = F(t.value.propertyValue.value));
|
|
4032
4044
|
}
|
|
4033
4045
|
function kt(m) {
|
|
4034
4046
|
!m || !m.selections || m.selections.length < 1 || (k.value.variableValue.value.category = F(m.selections[0].category), k.value.variableValue.value.path = F(m.selections[0].path), k.value.variableValue.value.fullPath = F(m.selections[0].fullPath), k.value.variableValue.value.field = F(m.selections[0].field), E.value = F(m.value), P());
|
|
4035
4047
|
}
|
|
4036
|
-
function
|
|
4048
|
+
function Nt() {
|
|
4037
4049
|
t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "", r.value.id === "variable" && (E.value = t.value.propertyValue.value.path), P();
|
|
4038
4050
|
}
|
|
4039
4051
|
function Ae() {
|
|
4040
|
-
|
|
4052
|
+
d.value = F(t.value.editorOptions.variables);
|
|
4041
4053
|
}
|
|
4042
|
-
const
|
|
4054
|
+
const It = (m) => {
|
|
4043
4055
|
const O = t.value.editorOptions.getVariables, U = {
|
|
4044
4056
|
showDialog: !0
|
|
4045
4057
|
};
|
|
4046
|
-
return O && (
|
|
4058
|
+
return O && (d.value = O(), m && (m.data = d)), hr(U);
|
|
4047
4059
|
};
|
|
4048
4060
|
function Ot(m) {
|
|
4049
4061
|
const O = {
|
|
@@ -4051,18 +4063,18 @@ const fe = /* @__PURE__ */ q({
|
|
|
4051
4063
|
name: m[0].exist,
|
|
4052
4064
|
exist: m[0].name
|
|
4053
4065
|
};
|
|
4054
|
-
k.value.stateMachineValue.value = F(O),
|
|
4066
|
+
k.value.stateMachineValue.value = F(O), s.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", c = F(O.id), P();
|
|
4055
4067
|
}
|
|
4056
4068
|
function Dt() {
|
|
4057
|
-
f.value = F(t.value.editorOptions.stateMachine),
|
|
4069
|
+
f.value = F(t.value.editorOptions.stateMachine), s.value = k.value.stateMachineValue.value.exist === "是" ? "是" : "否";
|
|
4058
4070
|
}
|
|
4059
4071
|
const ke = new pt();
|
|
4060
|
-
function
|
|
4072
|
+
function jt() {
|
|
4061
4073
|
ke.pipe(br(700)).subscribe((m) => {
|
|
4062
4074
|
k.value.customValue.value = m, P();
|
|
4063
4075
|
});
|
|
4064
4076
|
}
|
|
4065
|
-
function
|
|
4077
|
+
function Lt(m) {
|
|
4066
4078
|
ke.next(m);
|
|
4067
4079
|
}
|
|
4068
4080
|
function $t() {
|
|
@@ -4075,7 +4087,7 @@ const fe = /* @__PURE__ */ q({
|
|
|
4075
4087
|
function Rt() {
|
|
4076
4088
|
return S("div", {
|
|
4077
4089
|
class: "f-page-single-property-editor-component-right-variable"
|
|
4078
|
-
}, [S(
|
|
4090
|
+
}, [S(H, {
|
|
4079
4091
|
class: [{
|
|
4080
4092
|
"form-control-select-show": l.value
|
|
4081
4093
|
}, {
|
|
@@ -4088,12 +4100,12 @@ const fe = /* @__PURE__ */ q({
|
|
|
4088
4100
|
enableClear: !0,
|
|
4089
4101
|
valueField: "path",
|
|
4090
4102
|
textField: "fullPath",
|
|
4091
|
-
data:
|
|
4092
|
-
beforeShow:
|
|
4103
|
+
data: d.value,
|
|
4104
|
+
beforeShow: It,
|
|
4093
4105
|
readonly: C.value,
|
|
4094
4106
|
editable: !1,
|
|
4095
4107
|
onValueChange: (m) => kt(m),
|
|
4096
|
-
onClear:
|
|
4108
|
+
onClear: Nt
|
|
4097
4109
|
}, null), l.value ? S("div", {
|
|
4098
4110
|
class: "f-page-single-property-editor-component-variable-button"
|
|
4099
4111
|
}, [S("button", {
|
|
@@ -4112,11 +4124,11 @@ const fe = /* @__PURE__ */ q({
|
|
|
4112
4124
|
class: "form-control",
|
|
4113
4125
|
placeholder: "输入自定义内容",
|
|
4114
4126
|
"onUpdate:modelValue": (m) => k.value.customValue.value = m,
|
|
4115
|
-
onChange: (m) =>
|
|
4127
|
+
onChange: (m) => Lt(m.target.value),
|
|
4116
4128
|
disabled: C.value
|
|
4117
4129
|
}, null), [[Oe, k.value.customValue.value]])]);
|
|
4118
4130
|
}
|
|
4119
|
-
function
|
|
4131
|
+
function Ht() {
|
|
4120
4132
|
return S("div", {
|
|
4121
4133
|
class: "f-page-single-property-editor-component-right-expression"
|
|
4122
4134
|
}, [S(J, {
|
|
@@ -4129,18 +4141,18 @@ const fe = /* @__PURE__ */ q({
|
|
|
4129
4141
|
onClickHandle: $t
|
|
4130
4142
|
}, null)]);
|
|
4131
4143
|
}
|
|
4132
|
-
function
|
|
4144
|
+
function Gt() {
|
|
4133
4145
|
return S("div", {
|
|
4134
4146
|
class: "f-page-single-property-editor-component-right-stateMachine"
|
|
4135
4147
|
}, [S("div", {
|
|
4136
4148
|
class: "f-stateMachine-exist",
|
|
4137
4149
|
onClick: $
|
|
4138
|
-
}, [
|
|
4150
|
+
}, [s.value]), S("div", {
|
|
4139
4151
|
class: "f-stateMachine-combo",
|
|
4140
4152
|
style: "border:unset"
|
|
4141
|
-
}, [S(
|
|
4142
|
-
modelValue:
|
|
4143
|
-
"onUpdate:modelValue": (m) =>
|
|
4153
|
+
}, [S(H, {
|
|
4154
|
+
modelValue: c,
|
|
4155
|
+
"onUpdate:modelValue": (m) => c = m,
|
|
4144
4156
|
placeholder: "",
|
|
4145
4157
|
viewType: "text",
|
|
4146
4158
|
enableClear: !1,
|
|
@@ -4157,7 +4169,7 @@ const fe = /* @__PURE__ */ q({
|
|
|
4157
4169
|
function qt() {
|
|
4158
4170
|
return S("div", {
|
|
4159
4171
|
class: "f-page-single-property-editor-component-right-dataStates"
|
|
4160
|
-
}, [S(
|
|
4172
|
+
}, [S(H, {
|
|
4161
4173
|
modelValue: w.value,
|
|
4162
4174
|
"onUpdate:modelValue": (m) => w.value = m,
|
|
4163
4175
|
placeholder: "",
|
|
@@ -4186,7 +4198,7 @@ const fe = /* @__PURE__ */ q({
|
|
|
4186
4198
|
}, null), [[Oe, k.value.constValue.value]]);
|
|
4187
4199
|
}
|
|
4188
4200
|
function Wt() {
|
|
4189
|
-
return S(
|
|
4201
|
+
return S(H, {
|
|
4190
4202
|
modelValue: b.value,
|
|
4191
4203
|
"onUpdate:modelValue": (m) => b.value = m,
|
|
4192
4204
|
placeholder: "",
|
|
@@ -4215,7 +4227,7 @@ const fe = /* @__PURE__ */ q({
|
|
|
4215
4227
|
function Yt() {
|
|
4216
4228
|
return S("div", {
|
|
4217
4229
|
class: "f-page-single-property-editor-component-left-controller"
|
|
4218
|
-
}, [S(
|
|
4230
|
+
}, [S(H, {
|
|
4219
4231
|
modelValue: r.value.id,
|
|
4220
4232
|
"onUpdate:modelValue": (m) => r.value.id = m,
|
|
4221
4233
|
placeholder: "",
|
|
@@ -4233,11 +4245,11 @@ const fe = /* @__PURE__ */ q({
|
|
|
4233
4245
|
class: "f-page-single-property-editor-component-right-controller"
|
|
4234
4246
|
}, [r.value.id === "const" ? S("div", {
|
|
4235
4247
|
class: "f-page-single-property-editor-component-right-const"
|
|
4236
|
-
}, [t.value.propertyType === "string" ? zt() : "", t.value.propertyType === "enum" ? Wt() : "", t.value.propertyType === "number" ? Qt() : ""]) : "", r.value.id === "variable" ? Rt() : "", r.value.id === "custom" ? _t() : "", r.value.id === "expression" && v.value ?
|
|
4248
|
+
}, [t.value.propertyType === "string" ? zt() : "", t.value.propertyType === "enum" ? Wt() : "", t.value.propertyType === "number" ? Qt() : ""]) : "", r.value.id === "variable" ? Rt() : "", r.value.id === "custom" ? _t() : "", r.value.id === "expression" && v.value ? Ht() : "", r.value.id === "stateMachine" ? Gt() : "", r.value.id === "dataStates" ? qt() : ""]);
|
|
4237
4249
|
}
|
|
4238
|
-
return
|
|
4250
|
+
return G(() => {
|
|
4239
4251
|
K(), D(), Ae(), Dt(), t.value.hasPrefix && t.value.hasPrefix === 2 && (Q.value = !0), t.value.controlName !== void 0 && (l.value = !0);
|
|
4240
|
-
}), () => S(
|
|
4252
|
+
}), () => S(ye, null, [S("div", {
|
|
4241
4253
|
class: "f-page-single-property-editor-component clearfix"
|
|
4242
4254
|
}, [Yt(), Zt()])]);
|
|
4243
4255
|
}
|