@farris/ui-vue 1.3.5 → 1.3.6
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 +16 -16
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +65 -65
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +13 -13
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +504 -490
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +247 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +356 -344
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +159 -145
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +127 -128
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +15 -15
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +101 -87
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +7 -5
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +181 -167
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4057 -4304
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2450 -2467
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +789 -777
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3593 -3585
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +257 -243
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +322 -306
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +177 -163
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +163 -2643
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +500 -486
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +37 -37
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +485 -470
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +2611 -2623
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +3825 -3837
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +3720 -3712
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +402 -388
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +201 -202
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +264 -245
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +157 -143
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +312 -296
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +4748 -4992
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +4215 -4462
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +169 -155
- package/components/nav/index.umd.cjs +2 -2
- package/components/number-range/index.esm.js +150 -137
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +207 -194
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +427 -414
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +22 -22
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +510 -492
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +192 -178
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +234 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +288 -277
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +62 -61
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +3015 -3027
- package/components/query-solution/index.umd.cjs +5 -5
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +293 -280
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +222 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +187 -173
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +554 -542
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +483 -469
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +632 -617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +228 -214
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +419 -406
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +162 -148
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +308 -284
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +279 -265
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +183 -170
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +307 -294
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +320 -306
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +245 -231
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +260 -247
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +409 -396
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +424 -410
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +2994 -3006
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +749 -733
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +325 -311
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +304 -290
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +99 -85
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +947 -933
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +7750 -7990
- package/farris.all.umd.cjs +12 -12
- package/package.json +1 -1
- package/types/data-view/composition/types.d.ts +0 -1
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
- package/components/event-parameter/index.css +0 -1
- package/types/data-grid/src/components/data/data-grid-area.component.d.ts +0 -8
- package/types/data-grid/src/components/data/data-grid-area.props.d.ts +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var tn = Object.defineProperty;
|
|
2
2
|
var nn = (e, n, t) => n in e ? tn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var I = (e, n, t) => nn(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
-
import { ref as b, defineComponent as D, computed as E, watch as
|
|
4
|
+
import { ref as b, defineComponent as D, computed as E, watch as N, createVNode as C, Teleport as on, createApp as rn, onUnmounted as an, inject as _, nextTick as te, onMounted as U, mergeProps as ln, reactive as un, withDirectives as de, resolveDirective as sn, Fragment as pe, vModelText as Ie } from "vue";
|
|
5
5
|
import { isPlainObject as Me, cloneDeep as F } from "lodash-es";
|
|
6
6
|
import cn from "../list-view/index.esm.js";
|
|
7
7
|
import dn from "../button-edit/index.esm.js";
|
|
@@ -19,20 +19,34 @@ function he(e) {
|
|
|
19
19
|
}
|
|
20
20
|
return a;
|
|
21
21
|
}
|
|
22
|
+
function gn(e) {
|
|
23
|
+
const { properties: n, title: t, required: o } = e;
|
|
24
|
+
if (o && Array.isArray(o)) {
|
|
25
|
+
const r = o.reduce((a, i) => (a[i] = n[i].type === "object" && n[i].properties ? he(n[i]) : F(n[i].default), a), {});
|
|
26
|
+
if (t && o.find((a) => a === "id")) {
|
|
27
|
+
const a = t.toLowerCase().replace(/-/g, "_");
|
|
28
|
+
r.id = `${a}_${Math.random().toString().slice(2, 6)}`;
|
|
29
|
+
}
|
|
30
|
+
return r;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
type: t
|
|
34
|
+
};
|
|
35
|
+
}
|
|
22
36
|
function Ge(e, n = {}, t) {
|
|
23
37
|
const o = Ue[e];
|
|
24
38
|
if (o) {
|
|
25
|
-
let r =
|
|
39
|
+
let r = gn(o);
|
|
26
40
|
const a = Re[e];
|
|
27
41
|
return r = a ? a({ getSchemaByType: Ge }, r, n, t) : r, r;
|
|
28
42
|
}
|
|
29
43
|
return null;
|
|
30
44
|
}
|
|
31
|
-
function
|
|
45
|
+
function Sn(e, n) {
|
|
32
46
|
const t = he(n);
|
|
33
|
-
return Object.keys(t).reduce((o, r) => (o[r] && Me(o[r]) && Me(e[r] || !e[r]) ? Object.assign(o[r], e[r] || {}) : o[r] = e[r], o), t), t;
|
|
47
|
+
return Object.keys(t).reduce((o, r) => (Object.prototype.hasOwnProperty.call(e, r) && (o[r] && Me(o[r]) && Me(e[r] || !e[r]) ? Object.assign(o[r], e[r] || {}) : o[r] = e[r]), o), t), t;
|
|
34
48
|
}
|
|
35
|
-
function
|
|
49
|
+
function Cn(e, n) {
|
|
36
50
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
|
|
37
51
|
if (n.has(r)) {
|
|
38
52
|
const a = n.get(r);
|
|
@@ -47,11 +61,11 @@ function Sn(e, n) {
|
|
|
47
61
|
return o;
|
|
48
62
|
}, {});
|
|
49
63
|
}
|
|
50
|
-
function
|
|
51
|
-
const o =
|
|
52
|
-
return
|
|
64
|
+
function wn(e, n, t = /* @__PURE__ */ new Map()) {
|
|
65
|
+
const o = Sn(e, n);
|
|
66
|
+
return Cn(o, t);
|
|
53
67
|
}
|
|
54
|
-
function
|
|
68
|
+
function Vn(e = {}) {
|
|
55
69
|
function n(l, c, u, f) {
|
|
56
70
|
if (typeof u == "number")
|
|
57
71
|
return f[l].length === u;
|
|
@@ -145,24 +159,24 @@ const B = {
|
|
|
145
159
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
146
160
|
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
147
161
|
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
148
|
-
},
|
|
149
|
-
|
|
162
|
+
}, xn = {}, Bn = {};
|
|
163
|
+
Vn();
|
|
150
164
|
function J(e, n, t = /* @__PURE__ */ new Map(), o = (i, s, d, l) => s, r = {}, a = (i) => i) {
|
|
151
|
-
return Ue[n.title] = n, Re[n.title] = o,
|
|
152
|
-
const s =
|
|
165
|
+
return Ue[n.title] = n, Re[n.title] = o, xn[n.title] = r, Bn[n.title] = a, (i = {}) => {
|
|
166
|
+
const s = wn(i, n, t), d = Object.keys(e).reduce((l, c) => (l[c] = e[c].default, l), {});
|
|
153
167
|
return Object.assign(d, s);
|
|
154
168
|
};
|
|
155
169
|
}
|
|
156
170
|
function ie(e, n) {
|
|
157
171
|
return { customClass: n.class, customStyle: n.style };
|
|
158
172
|
}
|
|
159
|
-
const
|
|
173
|
+
const Fn = /* @__PURE__ */ new Map([
|
|
160
174
|
["appearance", ie]
|
|
161
175
|
]);
|
|
162
|
-
function
|
|
176
|
+
function Tn(e, n, t) {
|
|
163
177
|
return n;
|
|
164
178
|
}
|
|
165
|
-
const
|
|
179
|
+
const kn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-design.gitee.io/property-editor.schema.json", In = "property-editor", Mn = "A Farris Component", Pn = "object", An = {
|
|
166
180
|
id: {
|
|
167
181
|
description: "The unique identifier for property-editor",
|
|
168
182
|
type: "string"
|
|
@@ -224,18 +238,18 @@ const Tn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
224
238
|
type: "boolean",
|
|
225
239
|
default: !0
|
|
226
240
|
}
|
|
227
|
-
},
|
|
241
|
+
}, On = [
|
|
228
242
|
"id",
|
|
229
243
|
"type"
|
|
230
244
|
], Nn = {
|
|
231
|
-
$schema:
|
|
232
|
-
$id:
|
|
233
|
-
title:
|
|
234
|
-
description:
|
|
235
|
-
type:
|
|
236
|
-
properties:
|
|
237
|
-
required:
|
|
238
|
-
},
|
|
245
|
+
$schema: kn,
|
|
246
|
+
$id: En,
|
|
247
|
+
title: In,
|
|
248
|
+
description: Mn,
|
|
249
|
+
type: Pn,
|
|
250
|
+
properties: An,
|
|
251
|
+
required: On
|
|
252
|
+
}, Ln = "property-editor", jn = "A Farris Component", $n = "object", Dn = {
|
|
239
253
|
basic: {
|
|
240
254
|
description: "Basic Infomation",
|
|
241
255
|
title: "基本信息",
|
|
@@ -257,12 +271,12 @@ const Tn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
257
271
|
}
|
|
258
272
|
}
|
|
259
273
|
}
|
|
260
|
-
},
|
|
261
|
-
title:
|
|
262
|
-
description:
|
|
263
|
-
type:
|
|
264
|
-
categories:
|
|
265
|
-
}, _e = {},
|
|
274
|
+
}, Un = {
|
|
275
|
+
title: Ln,
|
|
276
|
+
description: jn,
|
|
277
|
+
type: $n,
|
|
278
|
+
categories: Dn
|
|
279
|
+
}, _e = {}, Rn = J(_e, Nn, Fn, Tn, Un), P = b({
|
|
266
280
|
/** 常量值 */
|
|
267
281
|
constValue: {
|
|
268
282
|
/** 值类型:常量(const), 变量(variable), 状态机(state), 自定义(custom) */
|
|
@@ -300,7 +314,7 @@ const Tn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
300
314
|
type: "dataStates",
|
|
301
315
|
value: ""
|
|
302
316
|
}
|
|
303
|
-
}),
|
|
317
|
+
}), Gn = b([
|
|
304
318
|
{
|
|
305
319
|
id: "const",
|
|
306
320
|
label: "常量"
|
|
@@ -325,7 +339,7 @@ const Tn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
325
339
|
id: "dataStates",
|
|
326
340
|
label: "数据状态"
|
|
327
341
|
}
|
|
328
|
-
]),
|
|
342
|
+
]), _n = {
|
|
329
343
|
controlName: "userName",
|
|
330
344
|
propertyName: "readonly",
|
|
331
345
|
propertyType: "enum",
|
|
@@ -450,9 +464,9 @@ const Tn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
450
464
|
},
|
|
451
465
|
/** 状态机是否有前缀viewModel.stateMachine && */
|
|
452
466
|
hasPrefix: 2
|
|
453
|
-
},
|
|
467
|
+
}, qn = /* @__PURE__ */ new Map([
|
|
454
468
|
["appearance", ie]
|
|
455
|
-
]),
|
|
469
|
+
]), Hn = "https://json-schema.org/draft/2020-12/schema", Wn = "https://farris-design.gitee.io/combo-list.schema.json", zn = "combo-list", Yn = "A Farris Input Component", Zn = "object", Xn = {
|
|
456
470
|
id: {
|
|
457
471
|
description: "The unique identifier for a combo list",
|
|
458
472
|
type: "string"
|
|
@@ -578,25 +592,24 @@ const Tn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
578
592
|
type: "sting",
|
|
579
593
|
default: ""
|
|
580
594
|
}
|
|
581
|
-
},
|
|
582
|
-
"id",
|
|
595
|
+
}, Jn = [
|
|
583
596
|
"type"
|
|
584
|
-
],
|
|
597
|
+
], Qn = [
|
|
585
598
|
"id",
|
|
586
599
|
"appearance",
|
|
587
600
|
"binding",
|
|
588
601
|
"visible"
|
|
589
|
-
],
|
|
590
|
-
$schema:
|
|
591
|
-
$id:
|
|
592
|
-
title:
|
|
593
|
-
description:
|
|
594
|
-
type:
|
|
595
|
-
properties:
|
|
596
|
-
required:
|
|
597
|
-
ignore:
|
|
602
|
+
], Kn = {
|
|
603
|
+
$schema: Hn,
|
|
604
|
+
$id: Wn,
|
|
605
|
+
title: zn,
|
|
606
|
+
description: Yn,
|
|
607
|
+
type: Zn,
|
|
608
|
+
properties: Xn,
|
|
609
|
+
required: Jn,
|
|
610
|
+
ignore: Qn
|
|
598
611
|
};
|
|
599
|
-
function
|
|
612
|
+
function eo(e, n, t) {
|
|
600
613
|
return n;
|
|
601
614
|
}
|
|
602
615
|
const be = {
|
|
@@ -765,7 +778,7 @@ const be = {
|
|
|
765
778
|
},
|
|
766
779
|
// 搜索启用高亮
|
|
767
780
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
768
|
-
}, qe = J(be,
|
|
781
|
+
}, qe = J(be, Kn, qn, eo), to = {
|
|
769
782
|
dataSource: { type: Array, default: [] },
|
|
770
783
|
enableSearch: { type: Boolean, default: !1 },
|
|
771
784
|
idField: { type: String, default: "id" },
|
|
@@ -786,9 +799,9 @@ const be = {
|
|
|
786
799
|
},
|
|
787
800
|
// 搜索启用高亮
|
|
788
801
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
789
|
-
},
|
|
802
|
+
}, no = /* @__PURE__ */ D({
|
|
790
803
|
name: "FComboListContainer",
|
|
791
|
-
props:
|
|
804
|
+
props: to,
|
|
792
805
|
emits: ["selectionChange"],
|
|
793
806
|
setup(e, n) {
|
|
794
807
|
const t = b(), o = b(e.dataSource), r = b([]), a = b(e.separator), i = b(e.width), s = b(e.maxHeight), d = b(String(e.selectedValues).split(a.value)), l = E(() => e.multiSelect), c = E(() => ({
|
|
@@ -799,7 +812,7 @@ const be = {
|
|
|
799
812
|
showSelectAll: !1,
|
|
800
813
|
showSelection: !0
|
|
801
814
|
}));
|
|
802
|
-
|
|
815
|
+
N(e.dataSource, () => {
|
|
803
816
|
o.value = e.dataSource;
|
|
804
817
|
});
|
|
805
818
|
const u = E(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = E(() => {
|
|
@@ -818,7 +831,7 @@ const be = {
|
|
|
818
831
|
} = e;
|
|
819
832
|
typeof S == "function" ? m = o.value.filter((V) => S(v, V)) : m = o.value.filter((V) => V[e.valueField].indexOf(v) > -1 || V[e.textField].indexOf(v) > -1), t.value.updateDataSource(m);
|
|
820
833
|
}
|
|
821
|
-
return
|
|
834
|
+
return N([() => e.selectedValues], ([v]) => {
|
|
822
835
|
d.value = v.split(a.value);
|
|
823
836
|
}), () => C("div", {
|
|
824
837
|
class: "f-combo-list-container pl-1",
|
|
@@ -842,7 +855,7 @@ const be = {
|
|
|
842
855
|
}, null)]);
|
|
843
856
|
}
|
|
844
857
|
});
|
|
845
|
-
function
|
|
858
|
+
function oo(e) {
|
|
846
859
|
const n = b(""), t = b(e.modelValue), o = b(e.data || []), r = b(e.editable);
|
|
847
860
|
function a(u) {
|
|
848
861
|
const f = String(u).split(e.separator), p = f.map((m) => [m, !0]), y = new Map(p);
|
|
@@ -882,14 +895,14 @@ function no(e) {
|
|
|
882
895
|
console.error(S);
|
|
883
896
|
});
|
|
884
897
|
}
|
|
885
|
-
return e.remote && c(),
|
|
898
|
+
return e.remote && c(), N(() => e.data, () => {
|
|
886
899
|
o.value = e.data;
|
|
887
|
-
}),
|
|
900
|
+
}), N([o], ([u]) => {
|
|
888
901
|
if (e.modelValue != null) {
|
|
889
902
|
const f = u.find((p) => p[e.valueField] === e.modelValue);
|
|
890
903
|
f && (n.value = f[e.textField]);
|
|
891
904
|
}
|
|
892
|
-
}),
|
|
905
|
+
}), N(() => e.modelValue, (u) => {
|
|
893
906
|
t.value = u, i(u);
|
|
894
907
|
}), i(e.modelValue), { dataSource: o, displayText: n, editable: r, modelValue: t, getItemsByDisplayText: s, getItemsByValue: a, getSelectedItemsByDisplayText: l };
|
|
895
908
|
}
|
|
@@ -904,7 +917,7 @@ const G = /* @__PURE__ */ D({
|
|
|
904
917
|
editable: l,
|
|
905
918
|
modelValue: c,
|
|
906
919
|
getSelectedItemsByDisplayText: u
|
|
907
|
-
} =
|
|
920
|
+
} = oo(e), f = E(() => e.multiSelect), p = E(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
|
|
908
921
|
function y() {
|
|
909
922
|
!f.value && t.value && t.value.hidePopup();
|
|
910
923
|
}
|
|
@@ -929,7 +942,7 @@ const G = /* @__PURE__ */ D({
|
|
|
929
942
|
}
|
|
930
943
|
return n.expose({
|
|
931
944
|
getDisplayText: k
|
|
932
|
-
}),
|
|
945
|
+
}), N([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([g, x, T, M, R]) => {
|
|
933
946
|
o.value = g, l.value = x, r.value = T, a.value = M, i.value = R;
|
|
934
947
|
}), () => C(dn, {
|
|
935
948
|
ref: t,
|
|
@@ -956,7 +969,7 @@ const G = /* @__PURE__ */ D({
|
|
|
956
969
|
onInput: w,
|
|
957
970
|
beforeOpen: e.beforeOpen
|
|
958
971
|
}, {
|
|
959
|
-
default: () => [C(
|
|
972
|
+
default: () => [C(no, {
|
|
960
973
|
idField: e.idField,
|
|
961
974
|
valueField: e.valueField,
|
|
962
975
|
textField: e.textField,
|
|
@@ -972,13 +985,13 @@ const G = /* @__PURE__ */ D({
|
|
|
972
985
|
}, null)]
|
|
973
986
|
});
|
|
974
987
|
}
|
|
975
|
-
}),
|
|
988
|
+
}), ro = /* @__PURE__ */ new Map([
|
|
976
989
|
["appearance", pn]
|
|
977
990
|
]);
|
|
978
|
-
function
|
|
991
|
+
function ao(e, n, t) {
|
|
979
992
|
return n;
|
|
980
993
|
}
|
|
981
|
-
const
|
|
994
|
+
const io = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-design.gitee.io/button-edit.schema.json", uo = "button-edit", so = "A Farris Input Component", co = "object", po = {
|
|
982
995
|
id: {
|
|
983
996
|
description: "The unique identifier for a Input Group",
|
|
984
997
|
type: "string"
|
|
@@ -1162,18 +1175,18 @@ const ao = "https://json-schema.org/draft/2020-12/schema", io = "https://farris-
|
|
|
1162
1175
|
type: "string",
|
|
1163
1176
|
default: ""
|
|
1164
1177
|
}
|
|
1165
|
-
},
|
|
1178
|
+
}, fo = [
|
|
1166
1179
|
"id",
|
|
1167
1180
|
"type"
|
|
1168
|
-
],
|
|
1169
|
-
$schema:
|
|
1170
|
-
$id:
|
|
1171
|
-
title:
|
|
1172
|
-
description:
|
|
1173
|
-
type:
|
|
1174
|
-
properties:
|
|
1175
|
-
required:
|
|
1176
|
-
},
|
|
1181
|
+
], yo = {
|
|
1182
|
+
$schema: io,
|
|
1183
|
+
$id: lo,
|
|
1184
|
+
title: uo,
|
|
1185
|
+
description: so,
|
|
1186
|
+
type: co,
|
|
1187
|
+
properties: po,
|
|
1188
|
+
required: fo
|
|
1189
|
+
}, vo = "buttonEdit", mo = "A Farris Component", ho = "object", bo = {
|
|
1177
1190
|
basic: {
|
|
1178
1191
|
description: "Basic Infomation",
|
|
1179
1192
|
title: "基本信息",
|
|
@@ -1255,11 +1268,11 @@ const ao = "https://json-schema.org/draft/2020-12/schema", io = "https://farris-
|
|
|
1255
1268
|
}
|
|
1256
1269
|
}
|
|
1257
1270
|
}
|
|
1258
|
-
},
|
|
1259
|
-
title:
|
|
1260
|
-
description:
|
|
1261
|
-
type:
|
|
1262
|
-
categories:
|
|
1271
|
+
}, go = {
|
|
1272
|
+
title: vo,
|
|
1273
|
+
description: mo,
|
|
1274
|
+
type: ho,
|
|
1275
|
+
categories: bo
|
|
1263
1276
|
}, He = {
|
|
1264
1277
|
/**
|
|
1265
1278
|
* 组件标识
|
|
@@ -1369,14 +1382,14 @@ const ao = "https://json-schema.org/draft/2020-12/schema", io = "https://farris-
|
|
|
1369
1382
|
/** 更新方式 blur | change */
|
|
1370
1383
|
updateOn: { type: String, default: "change" }
|
|
1371
1384
|
};
|
|
1372
|
-
J(He,
|
|
1373
|
-
const
|
|
1385
|
+
J(He, yo, ro, ao, go);
|
|
1386
|
+
const So = {
|
|
1374
1387
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
1375
1388
|
host: { type: Object },
|
|
1376
1389
|
backgroundColor: { type: String, default: "" }
|
|
1377
|
-
},
|
|
1390
|
+
}, Co = /* @__PURE__ */ D({
|
|
1378
1391
|
name: "FOverlay",
|
|
1379
|
-
props:
|
|
1392
|
+
props: So,
|
|
1380
1393
|
emits: ["click"],
|
|
1381
1394
|
setup(e, n) {
|
|
1382
1395
|
const t = b(e.popupContentPosition), o = b(e.host), r = E(() => ({
|
|
@@ -1422,13 +1435,13 @@ const go = {
|
|
|
1422
1435
|
});
|
|
1423
1436
|
}
|
|
1424
1437
|
});
|
|
1425
|
-
function
|
|
1438
|
+
function wo(e) {
|
|
1426
1439
|
if (e.content && e.content.render)
|
|
1427
1440
|
return e.content.render;
|
|
1428
1441
|
if (e.render && typeof e.render == "function")
|
|
1429
1442
|
return e.render;
|
|
1430
1443
|
}
|
|
1431
|
-
function
|
|
1444
|
+
function Vo(e) {
|
|
1432
1445
|
const n = document.createElement("div");
|
|
1433
1446
|
n.style.display = "contents";
|
|
1434
1447
|
let t;
|
|
@@ -1441,8 +1454,8 @@ function wo(e) {
|
|
|
1441
1454
|
an(() => {
|
|
1442
1455
|
document.body.removeChild(n);
|
|
1443
1456
|
});
|
|
1444
|
-
const a =
|
|
1445
|
-
return () => C(
|
|
1457
|
+
const a = wo(e);
|
|
1458
|
+
return () => C(Co, {
|
|
1446
1459
|
"popup-content-position": e.popupPosition,
|
|
1447
1460
|
host: e.host,
|
|
1448
1461
|
onClick: r,
|
|
@@ -1453,12 +1466,12 @@ function wo(e) {
|
|
|
1453
1466
|
}
|
|
1454
1467
|
}), document.body.appendChild(n), t.mount(n), t;
|
|
1455
1468
|
}
|
|
1456
|
-
class
|
|
1469
|
+
class xo {
|
|
1457
1470
|
static show(n) {
|
|
1458
|
-
return
|
|
1471
|
+
return Vo(n);
|
|
1459
1472
|
}
|
|
1460
1473
|
}
|
|
1461
|
-
const
|
|
1474
|
+
const Bo = Symbol("FModalService");
|
|
1462
1475
|
function We(e, n) {
|
|
1463
1476
|
function t() {
|
|
1464
1477
|
const o = e.beforeOpen || e.beforeClickButton || null;
|
|
@@ -1473,11 +1486,11 @@ function We(e, n) {
|
|
|
1473
1486
|
}
|
|
1474
1487
|
return { judgeCanOpen: t };
|
|
1475
1488
|
}
|
|
1476
|
-
function
|
|
1489
|
+
function Fo(e, n, t, o, r) {
|
|
1477
1490
|
const a = b(e.buttonBehavior), i = b(e.popupOnInput), s = E(() => ({
|
|
1478
1491
|
"input-group-append": !0,
|
|
1479
1492
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
1480
|
-
})), { judgeCanOpen: d } = We(e, r), l = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), c = _(
|
|
1493
|
+
})), { judgeCanOpen: d } = We(e, r), l = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), c = _(Bo, null), u = b();
|
|
1481
1494
|
async function f(v) {
|
|
1482
1495
|
if (await d() && l.value) {
|
|
1483
1496
|
const m = !!n.slots.default;
|
|
@@ -1488,7 +1501,7 @@ function Bo(e, n, t, o, r) {
|
|
|
1488
1501
|
});
|
|
1489
1502
|
u.value = V == null ? void 0 : V.modalRef;
|
|
1490
1503
|
}
|
|
1491
|
-
a.value === "Overlay" &&
|
|
1504
|
+
a.value === "Overlay" && xo.show({
|
|
1492
1505
|
// host: buttonEditRef.value,
|
|
1493
1506
|
host: document.body,
|
|
1494
1507
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
@@ -1510,7 +1523,7 @@ function Bo(e, n, t, o, r) {
|
|
|
1510
1523
|
modalRef: u
|
|
1511
1524
|
};
|
|
1512
1525
|
}
|
|
1513
|
-
function
|
|
1526
|
+
function To(e, n, t, o) {
|
|
1514
1527
|
const r = b(), a = b(!1), { judgeCanOpen: i } = We(e, o);
|
|
1515
1528
|
function s() {
|
|
1516
1529
|
const u = r.value;
|
|
@@ -1535,7 +1548,7 @@ function Fo(e, n, t, o) {
|
|
|
1535
1548
|
}
|
|
1536
1549
|
return { hidePopup: c, popup: l, shouldPopupContent: a, togglePopup: d, popoverRef: r };
|
|
1537
1550
|
}
|
|
1538
|
-
function
|
|
1551
|
+
function ko(e, n, t) {
|
|
1539
1552
|
const {
|
|
1540
1553
|
buttonGroupClass: o
|
|
1541
1554
|
} = t, r = b();
|
|
@@ -1553,12 +1566,12 @@ function To(e, n, t) {
|
|
|
1553
1566
|
buttonHandleElement: r
|
|
1554
1567
|
};
|
|
1555
1568
|
}
|
|
1556
|
-
const
|
|
1569
|
+
const Eo = /* @__PURE__ */ D({
|
|
1557
1570
|
name: "FButtonEdit",
|
|
1558
1571
|
props: He,
|
|
1559
1572
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
1560
1573
|
setup(e, n) {
|
|
1561
|
-
const t = b(), o = _("design-item-context"), r = ve(t, o), a = b(e.customClass), i = b(e.modelValue), s =
|
|
1574
|
+
const t = b(), o = _("design-item-context"), r = ve(t, o), a = b(e.customClass), i = b(e.modelValue), s = To(e, n, t, i), d = Fo(e, n, t, s, i), l = b(), c = E(() => ({
|
|
1562
1575
|
"f-cmp-inputgroup": !0,
|
|
1563
1576
|
"input-group": !0,
|
|
1564
1577
|
"f-state-disable": !0,
|
|
@@ -1577,7 +1590,7 @@ const ko = /* @__PURE__ */ D({
|
|
|
1577
1590
|
return a.value && a.value.split(" ").reduce((y, v) => (y[v] = !0, y), p), p;
|
|
1578
1591
|
}), {
|
|
1579
1592
|
renderButtonGroup: f
|
|
1580
|
-
} =
|
|
1593
|
+
} = ko(e, n, d);
|
|
1581
1594
|
return () => C("div", ln(n.attrs, {
|
|
1582
1595
|
ref: t,
|
|
1583
1596
|
class: u.value,
|
|
@@ -1592,7 +1605,7 @@ const ko = /* @__PURE__ */ D({
|
|
|
1592
1605
|
}, null), f()])]);
|
|
1593
1606
|
}
|
|
1594
1607
|
});
|
|
1595
|
-
class
|
|
1608
|
+
class Io {
|
|
1596
1609
|
constructor(n, t) {
|
|
1597
1610
|
I(this, "componentId");
|
|
1598
1611
|
I(this, "viewModelId");
|
|
@@ -1759,8 +1772,8 @@ I(W, "fieldControlTypeMapping", {
|
|
|
1759
1772
|
]
|
|
1760
1773
|
});
|
|
1761
1774
|
let ne = W;
|
|
1762
|
-
const
|
|
1763
|
-
class
|
|
1775
|
+
const Mo = b(0);
|
|
1776
|
+
class Po {
|
|
1764
1777
|
constructor() {
|
|
1765
1778
|
/** 控件标题 */
|
|
1766
1779
|
I(this, "label", "");
|
|
@@ -1790,7 +1803,7 @@ class Mo {
|
|
|
1790
1803
|
I(this, "fieldSetId", "");
|
|
1791
1804
|
}
|
|
1792
1805
|
}
|
|
1793
|
-
function
|
|
1806
|
+
function Ao(e) {
|
|
1794
1807
|
let n, t;
|
|
1795
1808
|
const o = /* @__PURE__ */ new Map();
|
|
1796
1809
|
let r = [];
|
|
@@ -1811,7 +1824,7 @@ function Po(e) {
|
|
|
1811
1824
|
return;
|
|
1812
1825
|
}
|
|
1813
1826
|
y && (f += 1, y = !1);
|
|
1814
|
-
const m = v.appearance && v.appearance.class, S = new
|
|
1827
|
+
const m = v.appearance && v.appearance.class, S = new Po();
|
|
1815
1828
|
m ? a(m, S) : S.isSupportedClass = !1, S.label = v.label || v.id, S.id = v.id, S.group = f, p && (S.fieldSetId = c.id), t === v.id && (n = f), o.set(v.id, v), u.push(S);
|
|
1816
1829
|
});
|
|
1817
1830
|
}
|
|
@@ -1866,11 +1879,11 @@ function Po(e) {
|
|
|
1866
1879
|
getResonseFormLayoutConfig: i
|
|
1867
1880
|
};
|
|
1868
1881
|
}
|
|
1869
|
-
class ge extends
|
|
1882
|
+
class ge extends Io {
|
|
1870
1883
|
constructor(t, o) {
|
|
1871
1884
|
super(t, o);
|
|
1872
1885
|
I(this, "responseLayoutEditorFunction");
|
|
1873
|
-
this.responseLayoutEditorFunction =
|
|
1886
|
+
this.responseLayoutEditorFunction = Ao(this.formSchemaUtils);
|
|
1874
1887
|
}
|
|
1875
1888
|
getPropertyConfig(t, o) {
|
|
1876
1889
|
return this.propertyConfig.categories.basic = this.getBasicProperties(t, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t, o), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
|
|
@@ -1878,7 +1891,7 @@ class ge extends Eo {
|
|
|
1878
1891
|
getBasicProperties(t, o) {
|
|
1879
1892
|
var a;
|
|
1880
1893
|
const r = this;
|
|
1881
|
-
return this.setDesignViewModelField(t),
|
|
1894
|
+
return this.setDesignViewModelField(t), {
|
|
1882
1895
|
description: "Basic Information",
|
|
1883
1896
|
title: "基本信息",
|
|
1884
1897
|
properties: {
|
|
@@ -2020,7 +2033,7 @@ class ge extends Eo {
|
|
|
2020
2033
|
require: (p = d.editor) == null ? void 0 : p.require
|
|
2021
2034
|
}), i.contents.splice(s, 1), i.contents.splice(s, 0, l), r.schema = Object.assign(d, l), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
2022
2035
|
(y) => y.classList.remove("dgComponentSelected")
|
|
2023
|
-
),
|
|
2036
|
+
), Mo.value++;
|
|
2024
2037
|
}
|
|
2025
2038
|
getComponentConfig(t, o = {}, r = {}) {
|
|
2026
2039
|
const a = Object.assign({
|
|
@@ -2101,7 +2114,7 @@ class ge extends Eo {
|
|
|
2101
2114
|
return Array.from(o).length === 1;
|
|
2102
2115
|
}
|
|
2103
2116
|
}
|
|
2104
|
-
class
|
|
2117
|
+
class Oo extends ge {
|
|
2105
2118
|
constructor(n, t) {
|
|
2106
2119
|
super(n, t);
|
|
2107
2120
|
}
|
|
@@ -2169,13 +2182,13 @@ class Ao extends ge {
|
|
|
2169
2182
|
function No(e, n) {
|
|
2170
2183
|
const t = e.schema;
|
|
2171
2184
|
function o(r, a) {
|
|
2172
|
-
return new
|
|
2185
|
+
return new Oo(r, n).getPropertyConfig(t, a);
|
|
2173
2186
|
}
|
|
2174
2187
|
return {
|
|
2175
2188
|
getPropsConfig: o
|
|
2176
2189
|
};
|
|
2177
2190
|
}
|
|
2178
|
-
const
|
|
2191
|
+
const Lo = /* @__PURE__ */ D({
|
|
2179
2192
|
name: "FComboListDesign",
|
|
2180
2193
|
props: be,
|
|
2181
2194
|
emits: ["clear", "update:modelValue", "change"],
|
|
@@ -2183,7 +2196,7 @@ const Oo = /* @__PURE__ */ D({
|
|
|
2183
2196
|
const t = b(), o = _("designer-host-service"), r = _("design-item-context"), a = No(r, o), i = ve(t, r, a);
|
|
2184
2197
|
return U(() => {
|
|
2185
2198
|
t.value.componentInstance = i;
|
|
2186
|
-
}), n.expose(i.value), () => C(
|
|
2199
|
+
}), n.expose(i.value), () => C(Eo, {
|
|
2187
2200
|
ref: t,
|
|
2188
2201
|
buttonContent: e.dropDownIcon,
|
|
2189
2202
|
readonly: !0,
|
|
@@ -2198,16 +2211,16 @@ G.register = (e, n, t, o) => {
|
|
|
2198
2211
|
e["combo-list"] = G, n["combo-list"] = qe;
|
|
2199
2212
|
};
|
|
2200
2213
|
G.registerDesigner = (e, n, t) => {
|
|
2201
|
-
e["combo-list"] =
|
|
2214
|
+
e["combo-list"] = Lo, n["combo-list"] = qe;
|
|
2202
2215
|
};
|
|
2203
2216
|
me(G);
|
|
2204
|
-
const
|
|
2217
|
+
const jo = /* @__PURE__ */ new Map([
|
|
2205
2218
|
["appearance", ie]
|
|
2206
2219
|
]);
|
|
2207
|
-
function
|
|
2220
|
+
function $o(e, n, t) {
|
|
2208
2221
|
return n;
|
|
2209
2222
|
}
|
|
2210
|
-
const
|
|
2223
|
+
const Do = "https://json-schema.org/draft/2020-12/schema", Uo = "https://farris-design.gitee.io/input-group.schema.json", Ro = "input-group", Go = "A Farris Input Component", _o = "object", qo = {
|
|
2211
2224
|
id: {
|
|
2212
2225
|
description: "The unique identifier for a Input Group",
|
|
2213
2226
|
type: "string"
|
|
@@ -2404,23 +2417,22 @@ const $o = "https://json-schema.org/draft/2020-12/schema", Do = "https://farris-
|
|
|
2404
2417
|
type: "string",
|
|
2405
2418
|
default: ""
|
|
2406
2419
|
}
|
|
2407
|
-
},
|
|
2408
|
-
"id",
|
|
2420
|
+
}, Ho = [
|
|
2409
2421
|
"type"
|
|
2410
|
-
],
|
|
2422
|
+
], Wo = [
|
|
2411
2423
|
"id",
|
|
2412
2424
|
"appearance",
|
|
2413
2425
|
"binding",
|
|
2414
2426
|
"visible"
|
|
2415
|
-
],
|
|
2416
|
-
$schema:
|
|
2417
|
-
$id:
|
|
2418
|
-
title:
|
|
2419
|
-
description:
|
|
2420
|
-
type:
|
|
2421
|
-
properties:
|
|
2422
|
-
required:
|
|
2423
|
-
ignore:
|
|
2427
|
+
], zo = {
|
|
2428
|
+
$schema: Do,
|
|
2429
|
+
$id: Uo,
|
|
2430
|
+
title: Ro,
|
|
2431
|
+
description: Go,
|
|
2432
|
+
type: _o,
|
|
2433
|
+
properties: qo,
|
|
2434
|
+
required: Ho,
|
|
2435
|
+
ignore: Wo
|
|
2424
2436
|
}, Se = {
|
|
2425
2437
|
id: { Type: String, default: "" },
|
|
2426
2438
|
/** 是否自动完成 */
|
|
@@ -2488,7 +2500,7 @@ const $o = "https://json-schema.org/draft/2020-12/schema", Do = "https://farris-
|
|
|
2488
2500
|
* - input: 输入时更新
|
|
2489
2501
|
*/
|
|
2490
2502
|
updateOn: { type: String, default: "blur" }
|
|
2491
|
-
}, ze = J(Se,
|
|
2503
|
+
}, ze = J(Se, zo, jo, $o);
|
|
2492
2504
|
function Ye(e, n) {
|
|
2493
2505
|
const t = b(e.groupText), o = E(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = E(() => e.enableClear || !!e.groupText);
|
|
2494
2506
|
return { appendedButtonClass: E(() => ({
|
|
@@ -2498,7 +2510,7 @@ function Ye(e, n) {
|
|
|
2498
2510
|
}
|
|
2499
2511
|
function Ze(e, n, t, o) {
|
|
2500
2512
|
const { appendedContent: r } = o, a = b(e.enableViewPassword), i = E(() => e.type === "password"), s = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', d = '<span class="f-icon f-icon-eye"></span>', l = b(!1);
|
|
2501
|
-
|
|
2513
|
+
N(() => [e.readonly, e.disabled], ([f, p]) => {
|
|
2502
2514
|
i.value && (t.value = f || p ? "password" : t.value, r.value = f || p ? d : r.value);
|
|
2503
2515
|
});
|
|
2504
2516
|
function c() {
|
|
@@ -2590,7 +2602,7 @@ function Ce(e, n, t) {
|
|
|
2590
2602
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
2591
2603
|
}, null)])]);
|
|
2592
2604
|
}
|
|
2593
|
-
function
|
|
2605
|
+
function Yo(e, n) {
|
|
2594
2606
|
const t = vn(e, n), o = mn(e, n, t), r = hn(e, n, o, t), a = bn(e, n, o, t, r), i = Ce(e, n, r), {
|
|
2595
2607
|
displayValue: s,
|
|
2596
2608
|
modelValue: d,
|
|
@@ -2603,18 +2615,18 @@ function zo(e, n) {
|
|
|
2603
2615
|
return U(() => {
|
|
2604
2616
|
const y = l(e.modelValue);
|
|
2605
2617
|
s.value = u(y);
|
|
2606
|
-
}),
|
|
2618
|
+
}), N(() => [e.value], ([y]) => {
|
|
2607
2619
|
const v = l(y);
|
|
2608
2620
|
d.value = v, s.value = u(v);
|
|
2609
|
-
}),
|
|
2621
|
+
}), N(() => [e.modelValue], ([y]) => {
|
|
2610
2622
|
y !== d.value && (d.value = y, !f.value && (s.value = u(l(y))));
|
|
2611
|
-
}),
|
|
2623
|
+
}), N(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2612
2624
|
s.value = u(d.value);
|
|
2613
2625
|
}), () => C("div", {
|
|
2614
2626
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2615
2627
|
}, [c(), p.value && i()]);
|
|
2616
2628
|
}
|
|
2617
|
-
function
|
|
2629
|
+
function Zo(e, n, t, o) {
|
|
2618
2630
|
const r = b(), a = b(e.autocomplete), i = b(e.enableTitle), {
|
|
2619
2631
|
isPassword: s
|
|
2620
2632
|
} = t, d = b(e.minLength), l = b(e.maxLength), c = b(e.tabIndex), {
|
|
@@ -2660,7 +2672,7 @@ function Yo(e, n, t, o) {
|
|
|
2660
2672
|
onMousedown: w
|
|
2661
2673
|
}, null);
|
|
2662
2674
|
}
|
|
2663
|
-
function
|
|
2675
|
+
function Xo(e, n) {
|
|
2664
2676
|
const t = E(() => e.useExtendInfo && !!e.extendInfo), o = un({
|
|
2665
2677
|
content: e.extendInfo
|
|
2666
2678
|
});
|
|
@@ -2742,10 +2754,10 @@ const Z = /* @__PURE__ */ D({
|
|
|
2742
2754
|
} = d, c = De(e, n, r), {
|
|
2743
2755
|
onMouseEnter: u,
|
|
2744
2756
|
onMouseLeave: f
|
|
2745
|
-
} = c, p = Ze(e, n, i, d), y =
|
|
2746
|
-
|
|
2757
|
+
} = c, p = Ze(e, n, i, d), y = Yo(e, n), v = Zo(e, n, p, r), m = Je(e, n, d, c, p), S = Xo(e, n), V = E(() => e.type === "number");
|
|
2758
|
+
N(() => [e.value], ([w]) => {
|
|
2747
2759
|
t.value = w, o.value = w;
|
|
2748
|
-
}),
|
|
2760
|
+
}), N(() => [e.modelValue], ([w]) => {
|
|
2749
2761
|
t.value = w, o.value = w;
|
|
2750
2762
|
}), U(() => {
|
|
2751
2763
|
e.value && (t.value = e.value, o.value = e.value);
|
|
@@ -2760,19 +2772,19 @@ const Z = /* @__PURE__ */ D({
|
|
|
2760
2772
|
return () => k();
|
|
2761
2773
|
}
|
|
2762
2774
|
});
|
|
2763
|
-
class
|
|
2775
|
+
class Jo extends ge {
|
|
2764
2776
|
constructor(n, t) {
|
|
2765
2777
|
super(n, t);
|
|
2766
2778
|
}
|
|
2767
2779
|
}
|
|
2768
|
-
function
|
|
2780
|
+
function Qo(e, n) {
|
|
2769
2781
|
const t = e.schema;
|
|
2770
2782
|
function o(r, a) {
|
|
2771
|
-
return new
|
|
2783
|
+
return new Jo(r, n).getPropertyConfig(t, a);
|
|
2772
2784
|
}
|
|
2773
2785
|
return { getPropsConfig: o };
|
|
2774
2786
|
}
|
|
2775
|
-
const
|
|
2787
|
+
const Ko = /* @__PURE__ */ D({
|
|
2776
2788
|
name: "FInputGroupDesign",
|
|
2777
2789
|
props: Se,
|
|
2778
2790
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
@@ -2786,7 +2798,7 @@ const Qo = /* @__PURE__ */ D({
|
|
|
2786
2798
|
} = d, c = De(e, n, r), {
|
|
2787
2799
|
onMouseEnter: u,
|
|
2788
2800
|
onMouseLeave: f
|
|
2789
|
-
} = c, p = Ze(e, n, i, d), y = b(), v = _("designer-host-service"), m = _("design-item-context"), S =
|
|
2801
|
+
} = c, p = Ze(e, n, i, d), y = b(), v = _("designer-host-service"), m = _("design-item-context"), S = Qo(m, v), V = ve(y, m, S);
|
|
2790
2802
|
U(() => {
|
|
2791
2803
|
y.value.componentInstance = V;
|
|
2792
2804
|
}), n.expose(V.value);
|
|
@@ -2810,12 +2822,12 @@ Z.register = (e, n, t, o) => {
|
|
|
2810
2822
|
e["input-group"] = Z, n["input-group"] = ze;
|
|
2811
2823
|
};
|
|
2812
2824
|
Z.registerDesigner = (e, n, t) => {
|
|
2813
|
-
e["input-group"] =
|
|
2825
|
+
e["input-group"] = Ko, n["input-group"] = ze;
|
|
2814
2826
|
};
|
|
2815
2827
|
me(Z);
|
|
2816
|
-
const
|
|
2828
|
+
const er = /* @__PURE__ */ new Map([
|
|
2817
2829
|
["appearance", ie]
|
|
2818
|
-
]),
|
|
2830
|
+
]), tr = "https://json-schema.org/draft/2020-12/schema", nr = "https://farris-design.gitee.io/number-spinner.schema.json", or = "number-spinner", rr = "A Farris Input Component", ar = "object", ir = {
|
|
2819
2831
|
id: {
|
|
2820
2832
|
description: "The unique identifier for a number spinner",
|
|
2821
2833
|
type: "string"
|
|
@@ -2916,25 +2928,24 @@ const Ko = /* @__PURE__ */ new Map([
|
|
|
2916
2928
|
type: "sting",
|
|
2917
2929
|
default: ""
|
|
2918
2930
|
}
|
|
2919
|
-
},
|
|
2920
|
-
"id",
|
|
2931
|
+
}, lr = [
|
|
2921
2932
|
"type"
|
|
2922
|
-
],
|
|
2933
|
+
], ur = [
|
|
2923
2934
|
"id",
|
|
2924
2935
|
"appearance",
|
|
2925
2936
|
"binding",
|
|
2926
2937
|
"visible"
|
|
2927
|
-
],
|
|
2928
|
-
$schema:
|
|
2929
|
-
$id:
|
|
2930
|
-
title:
|
|
2931
|
-
description:
|
|
2932
|
-
type:
|
|
2933
|
-
properties:
|
|
2934
|
-
required:
|
|
2935
|
-
ignore:
|
|
2938
|
+
], sr = {
|
|
2939
|
+
$schema: tr,
|
|
2940
|
+
$id: nr,
|
|
2941
|
+
title: or,
|
|
2942
|
+
description: rr,
|
|
2943
|
+
type: ar,
|
|
2944
|
+
properties: ir,
|
|
2945
|
+
required: lr,
|
|
2946
|
+
ignore: ur
|
|
2936
2947
|
};
|
|
2937
|
-
function
|
|
2948
|
+
function cr(e, n, t) {
|
|
2938
2949
|
return n;
|
|
2939
2950
|
}
|
|
2940
2951
|
const we = {
|
|
@@ -3041,7 +3052,7 @@ const we = {
|
|
|
3041
3052
|
* 作为内嵌编辑器被创建后默认选中文本
|
|
3042
3053
|
*/
|
|
3043
3054
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
3044
|
-
}, Qe = J(we,
|
|
3055
|
+
}, Qe = J(we, sr, er, cr);
|
|
3045
3056
|
function Ke(e, n, t, o) {
|
|
3046
3057
|
const { format: r } = t, { displayValue: a, getRealValue: i, modelValue: s, onNumberValueChanged: d } = o;
|
|
3047
3058
|
function l() {
|
|
@@ -3130,7 +3141,7 @@ function tt(e, n) {
|
|
|
3130
3141
|
}
|
|
3131
3142
|
return { displayValue: t, getRealValue: d, modelValue: o, isEmpty: i, onNumberValueChanged: l, precision: r, getValidNumberObject: s };
|
|
3132
3143
|
}
|
|
3133
|
-
function
|
|
3144
|
+
function dr(e, n, t, o, r) {
|
|
3134
3145
|
const { cleanFormat: a, format: i } = t, { displayValue: s, getRealValue: d, modelValue: l, isEmpty: c, onNumberValueChanged: u } = o, { downward: f, upward: p } = r, y = b(!1), v = E(() => s.value);
|
|
3135
3146
|
function m(w) {
|
|
3136
3147
|
var T;
|
|
@@ -3162,7 +3173,7 @@ const X = /* @__PURE__ */ D({
|
|
|
3162
3173
|
props: we,
|
|
3163
3174
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
3164
3175
|
setup(e, n) {
|
|
3165
|
-
const t = tt(e, n), o = et(e, n, t), r = Ke(e, n, o, t), a =
|
|
3176
|
+
const t = tt(e, n), o = et(e, n, t), r = Ke(e, n, o, t), a = dr(e, n, o, t, r), i = Ce(e, n, r), {
|
|
3166
3177
|
displayValue: s,
|
|
3167
3178
|
modelValue: d,
|
|
3168
3179
|
getRealValue: l
|
|
@@ -3174,19 +3185,19 @@ const X = /* @__PURE__ */ D({
|
|
|
3174
3185
|
return U(() => {
|
|
3175
3186
|
const y = l(e.modelValue);
|
|
3176
3187
|
s.value = u(y);
|
|
3177
|
-
}),
|
|
3188
|
+
}), N(() => [e.value], ([y]) => {
|
|
3178
3189
|
const v = l(y);
|
|
3179
3190
|
d.value = v, s.value = u(v);
|
|
3180
|
-
}),
|
|
3191
|
+
}), N(() => [e.modelValue], ([y]) => {
|
|
3181
3192
|
y !== d.value && (d.value = y, !f.value && (s.value = u(l(y))));
|
|
3182
|
-
}),
|
|
3193
|
+
}), N(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
3183
3194
|
s.value = u(d.value);
|
|
3184
3195
|
}), () => C("div", {
|
|
3185
3196
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
3186
3197
|
}, [c(), p.value && i()]);
|
|
3187
3198
|
}
|
|
3188
3199
|
});
|
|
3189
|
-
function
|
|
3200
|
+
function pr(e, n, t) {
|
|
3190
3201
|
var w;
|
|
3191
3202
|
const o = t && t.getStyles && t.getStyles() || "", r = t && t.getDesignerClass && t.getDesignerClass() || "", a = b();
|
|
3192
3203
|
function i() {
|
|
@@ -3271,7 +3282,7 @@ function dr(e, n, t) {
|
|
|
3271
3282
|
onRemoveComponent: k
|
|
3272
3283
|
}, a;
|
|
3273
3284
|
}
|
|
3274
|
-
class
|
|
3285
|
+
class fr extends ge {
|
|
3275
3286
|
constructor(n, t) {
|
|
3276
3287
|
super(n, t);
|
|
3277
3288
|
}
|
|
@@ -3330,19 +3341,19 @@ class pr extends ge {
|
|
|
3330
3341
|
});
|
|
3331
3342
|
}
|
|
3332
3343
|
}
|
|
3333
|
-
function
|
|
3344
|
+
function yr(e, n) {
|
|
3334
3345
|
const t = e.schema;
|
|
3335
3346
|
function o(r, a) {
|
|
3336
|
-
return new
|
|
3347
|
+
return new fr(r, n).getPropertyConfig(t, a);
|
|
3337
3348
|
}
|
|
3338
3349
|
return { getPropsConfig: o };
|
|
3339
3350
|
}
|
|
3340
|
-
const
|
|
3351
|
+
const vr = /* @__PURE__ */ D({
|
|
3341
3352
|
name: "FNumberSpinnerDesign",
|
|
3342
3353
|
props: we,
|
|
3343
3354
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
3344
3355
|
setup(e, n) {
|
|
3345
|
-
const t = tt(e, n), o = et(e, n, t), r = Ke(e, n, o, t), a = Ce(e, n, r), i = b(), s = _("designer-host-service"), d = _("design-item-context"), l =
|
|
3356
|
+
const t = tt(e, n), o = et(e, n, t), r = Ke(e, n, o, t), a = Ce(e, n, r), i = b(), s = _("designer-host-service"), d = _("design-item-context"), l = yr(d, s), c = pr(i, d, l);
|
|
3346
3357
|
U(() => {
|
|
3347
3358
|
i.value.componentInstance = c, e.readonly = !0;
|
|
3348
3359
|
}), n.expose(c.value);
|
|
@@ -3362,10 +3373,10 @@ X.register = (e, n, t, o) => {
|
|
|
3362
3373
|
e["number-spinner"] = X, n["number-spinner"] = Qe;
|
|
3363
3374
|
};
|
|
3364
3375
|
X.registerDesigner = (e, n, t) => {
|
|
3365
|
-
e["number-spinner"] =
|
|
3376
|
+
e["number-spinner"] = vr, n["number-spinner"] = Qe;
|
|
3366
3377
|
};
|
|
3367
3378
|
me(X);
|
|
3368
|
-
function
|
|
3379
|
+
function mr(e, n, t, o, r, a, i) {
|
|
3369
3380
|
const s = b(0), d = b(""), l = b([]), c = b(""), u = b("");
|
|
3370
3381
|
function f() {
|
|
3371
3382
|
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (c.value = F(e.value.propertyValue.value), n.value = F(e.value.editorOptions.enums));
|
|
@@ -3407,7 +3418,7 @@ function vr(e, n, t, o, r, a, i) {
|
|
|
3407
3418
|
setValue: k
|
|
3408
3419
|
};
|
|
3409
3420
|
}
|
|
3410
|
-
function
|
|
3421
|
+
function hr(e, n, t, o, r, a, i, s, d, l, c, u) {
|
|
3411
3422
|
const f = b(!1), p = b({
|
|
3412
3423
|
propertyName: "",
|
|
3413
3424
|
/** 属性类型:boolean, string, number, enum */
|
|
@@ -3495,7 +3506,7 @@ function q(e, n) {
|
|
|
3495
3506
|
}
|
|
3496
3507
|
e.prototype = n === null ? Object.create(n) : (t.prototype = n.prototype, new t());
|
|
3497
3508
|
}
|
|
3498
|
-
function
|
|
3509
|
+
function br(e, n, t, o) {
|
|
3499
3510
|
function r(a) {
|
|
3500
3511
|
return a instanceof t ? a : new t(function(i) {
|
|
3501
3512
|
i(a);
|
|
@@ -3617,7 +3628,7 @@ function re(e, n, t) {
|
|
|
3617
3628
|
function z(e) {
|
|
3618
3629
|
return this instanceof z ? (this.v = e, this) : new z(e);
|
|
3619
3630
|
}
|
|
3620
|
-
function
|
|
3631
|
+
function gr(e, n, t) {
|
|
3621
3632
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3622
3633
|
var o = t.apply(e, n || []), r, a = [];
|
|
3623
3634
|
return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", i), r[Symbol.asyncIterator] = function() {
|
|
@@ -3655,7 +3666,7 @@ function br(e, n, t) {
|
|
|
3655
3666
|
p(y), a.shift(), a.length && d(a[0][0], a[0][1]);
|
|
3656
3667
|
}
|
|
3657
3668
|
}
|
|
3658
|
-
function
|
|
3669
|
+
function Sr(e) {
|
|
3659
3670
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3660
3671
|
var n = e[Symbol.asyncIterator], t;
|
|
3661
3672
|
return n ? n.call(e) : (e = typeof Y == "function" ? Y(e) : e[Symbol.iterator](), t = {}, o("next"), o("throw"), o("return"), t[Symbol.asyncIterator] = function() {
|
|
@@ -3799,7 +3810,7 @@ var it = {
|
|
|
3799
3810
|
Promise: void 0,
|
|
3800
3811
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
3801
3812
|
useDeprecatedNextContext: !1
|
|
3802
|
-
},
|
|
3813
|
+
}, Cr = {
|
|
3803
3814
|
setTimeout: function(e, n) {
|
|
3804
3815
|
for (var t = [], o = 2; o < arguments.length; o++)
|
|
3805
3816
|
t[o - 2] = arguments[o];
|
|
@@ -3811,11 +3822,11 @@ var it = {
|
|
|
3811
3822
|
delegate: void 0
|
|
3812
3823
|
};
|
|
3813
3824
|
function lt(e) {
|
|
3814
|
-
|
|
3825
|
+
Cr.setTimeout(function() {
|
|
3815
3826
|
throw e;
|
|
3816
3827
|
});
|
|
3817
3828
|
}
|
|
3818
|
-
function
|
|
3829
|
+
function Oe() {
|
|
3819
3830
|
}
|
|
3820
3831
|
function ee(e) {
|
|
3821
3832
|
e();
|
|
@@ -3824,7 +3835,7 @@ var Ve = function(e) {
|
|
|
3824
3835
|
q(n, e);
|
|
3825
3836
|
function n(t) {
|
|
3826
3837
|
var o = e.call(this) || this;
|
|
3827
|
-
return o.isStopped = !1, t ? (o.destination = t, at(t) && t.add(o)) : o.destination =
|
|
3838
|
+
return o.isStopped = !1, t ? (o.destination = t, at(t) && t.add(o)) : o.destination = Br, o;
|
|
3828
3839
|
}
|
|
3829
3840
|
return n.create = function(t, o, r) {
|
|
3830
3841
|
return new ye(t, o, r);
|
|
@@ -3851,11 +3862,11 @@ var Ve = function(e) {
|
|
|
3851
3862
|
this.unsubscribe();
|
|
3852
3863
|
}
|
|
3853
3864
|
}, n;
|
|
3854
|
-
}(Q),
|
|
3865
|
+
}(Q), wr = Function.prototype.bind;
|
|
3855
3866
|
function se(e, n) {
|
|
3856
|
-
return
|
|
3867
|
+
return wr.call(e, n);
|
|
3857
3868
|
}
|
|
3858
|
-
var
|
|
3869
|
+
var Vr = function() {
|
|
3859
3870
|
function e(n) {
|
|
3860
3871
|
this.partialObserver = n;
|
|
3861
3872
|
}
|
|
@@ -3906,29 +3917,29 @@ var wr = function() {
|
|
|
3906
3917
|
complete: t.complete && se(t.complete, s)
|
|
3907
3918
|
}) : i = t;
|
|
3908
3919
|
}
|
|
3909
|
-
return a.destination = new
|
|
3920
|
+
return a.destination = new Vr(i), a;
|
|
3910
3921
|
}
|
|
3911
3922
|
return n;
|
|
3912
3923
|
}(Ve);
|
|
3913
3924
|
function K(e) {
|
|
3914
3925
|
lt(e);
|
|
3915
3926
|
}
|
|
3916
|
-
function
|
|
3927
|
+
function xr(e) {
|
|
3917
3928
|
throw e;
|
|
3918
3929
|
}
|
|
3919
|
-
var
|
|
3930
|
+
var Br = {
|
|
3920
3931
|
closed: !0,
|
|
3921
|
-
next:
|
|
3922
|
-
error:
|
|
3923
|
-
complete:
|
|
3932
|
+
next: Oe,
|
|
3933
|
+
error: xr,
|
|
3934
|
+
complete: Oe
|
|
3924
3935
|
}, xe = function() {
|
|
3925
3936
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
3926
3937
|
}();
|
|
3927
|
-
function
|
|
3938
|
+
function Fr(e) {
|
|
3928
3939
|
return e;
|
|
3929
3940
|
}
|
|
3930
|
-
function
|
|
3931
|
-
return e.length === 0 ?
|
|
3941
|
+
function Tr(e) {
|
|
3942
|
+
return e.length === 0 ? Fr : e.length === 1 ? e[0] : function(t) {
|
|
3932
3943
|
return e.reduce(function(o, r) {
|
|
3933
3944
|
return r(o);
|
|
3934
3945
|
}, t);
|
|
@@ -3942,7 +3953,7 @@ var $ = function() {
|
|
|
3942
3953
|
var t = new e();
|
|
3943
3954
|
return t.source = this, t.operator = n, t;
|
|
3944
3955
|
}, e.prototype.subscribe = function(n, t, o) {
|
|
3945
|
-
var r = this, a =
|
|
3956
|
+
var r = this, a = Er(n) ? n : new ye(n, t, o);
|
|
3946
3957
|
return ee(function() {
|
|
3947
3958
|
var i = r, s = i.operator, d = i.source;
|
|
3948
3959
|
a.add(s ? s.call(a, d) : d ? r._subscribe(a) : r._trySubscribe(a));
|
|
@@ -3955,7 +3966,7 @@ var $ = function() {
|
|
|
3955
3966
|
}
|
|
3956
3967
|
}, e.prototype.forEach = function(n, t) {
|
|
3957
3968
|
var o = this;
|
|
3958
|
-
return t =
|
|
3969
|
+
return t = Ne(t), new t(function(r, a) {
|
|
3959
3970
|
var i = new ye({
|
|
3960
3971
|
next: function(s) {
|
|
3961
3972
|
try {
|
|
@@ -3977,10 +3988,10 @@ var $ = function() {
|
|
|
3977
3988
|
}, e.prototype.pipe = function() {
|
|
3978
3989
|
for (var n = [], t = 0; t < arguments.length; t++)
|
|
3979
3990
|
n[t] = arguments[t];
|
|
3980
|
-
return
|
|
3991
|
+
return Tr(n)(this);
|
|
3981
3992
|
}, e.prototype.toPromise = function(n) {
|
|
3982
3993
|
var t = this;
|
|
3983
|
-
return n =
|
|
3994
|
+
return n = Ne(n), new n(function(o, r) {
|
|
3984
3995
|
var a;
|
|
3985
3996
|
t.subscribe(function(i) {
|
|
3986
3997
|
return a = i;
|
|
@@ -3994,22 +4005,22 @@ var $ = function() {
|
|
|
3994
4005
|
return new e(n);
|
|
3995
4006
|
}, e;
|
|
3996
4007
|
}();
|
|
3997
|
-
function
|
|
4008
|
+
function Ne(e) {
|
|
3998
4009
|
var n;
|
|
3999
4010
|
return (n = e ?? it.Promise) !== null && n !== void 0 ? n : Promise;
|
|
4000
4011
|
}
|
|
4001
|
-
function Tr(e) {
|
|
4002
|
-
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
4003
|
-
}
|
|
4004
4012
|
function kr(e) {
|
|
4005
|
-
return e && e
|
|
4013
|
+
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
4006
4014
|
}
|
|
4007
4015
|
function Er(e) {
|
|
4016
|
+
return e && e instanceof Ve || kr(e) && at(e);
|
|
4017
|
+
}
|
|
4018
|
+
function Ir(e) {
|
|
4008
4019
|
return A(e == null ? void 0 : e.lift);
|
|
4009
4020
|
}
|
|
4010
4021
|
function Be(e) {
|
|
4011
4022
|
return function(n) {
|
|
4012
|
-
if (
|
|
4023
|
+
if (Ir(n))
|
|
4013
4024
|
return n.lift(function(t) {
|
|
4014
4025
|
try {
|
|
4015
4026
|
return e(t, this);
|
|
@@ -4021,9 +4032,9 @@ function Be(e) {
|
|
|
4021
4032
|
};
|
|
4022
4033
|
}
|
|
4023
4034
|
function ut(e, n, t, o, r) {
|
|
4024
|
-
return new
|
|
4035
|
+
return new Mr(e, n, t, o, r);
|
|
4025
4036
|
}
|
|
4026
|
-
var
|
|
4037
|
+
var Mr = function(e) {
|
|
4027
4038
|
q(n, e);
|
|
4028
4039
|
function n(t, o, r, a, i, s) {
|
|
4029
4040
|
var d = e.call(this, t) || this;
|
|
@@ -4058,7 +4069,7 @@ var Ir = function(e) {
|
|
|
4058
4069
|
e.prototype.unsubscribe.call(this), !o && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
4059
4070
|
}
|
|
4060
4071
|
}, n;
|
|
4061
|
-
}(Ve),
|
|
4072
|
+
}(Ve), Pr = ot(function(e) {
|
|
4062
4073
|
return function() {
|
|
4063
4074
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4064
4075
|
};
|
|
@@ -4073,7 +4084,7 @@ var Ir = function(e) {
|
|
|
4073
4084
|
return o.operator = t, o;
|
|
4074
4085
|
}, n.prototype._throwIfClosed = function() {
|
|
4075
4086
|
if (this.closed)
|
|
4076
|
-
throw new
|
|
4087
|
+
throw new Pr();
|
|
4077
4088
|
}, n.prototype.next = function(t) {
|
|
4078
4089
|
var o = this;
|
|
4079
4090
|
ee(function() {
|
|
@@ -4160,12 +4171,12 @@ var Ir = function(e) {
|
|
|
4160
4171
|
var o, r;
|
|
4161
4172
|
return (r = (o = this.source) === null || o === void 0 ? void 0 : o.subscribe(t)) !== null && r !== void 0 ? r : rt;
|
|
4162
4173
|
}, n;
|
|
4163
|
-
}(st),
|
|
4174
|
+
}(st), Ar = {
|
|
4164
4175
|
now: function() {
|
|
4165
4176
|
return Date.now();
|
|
4166
4177
|
},
|
|
4167
4178
|
delegate: void 0
|
|
4168
|
-
},
|
|
4179
|
+
}, Or = function(e) {
|
|
4169
4180
|
q(n, e);
|
|
4170
4181
|
function n(t, o) {
|
|
4171
4182
|
return e.call(this) || this;
|
|
@@ -4225,14 +4236,14 @@ var Ir = function(e) {
|
|
|
4225
4236
|
this.work = this.state = this.scheduler = null, this.pending = !1, ae(a, this), o != null && (this.id = this.recycleAsyncId(r, o, null)), this.delay = null, e.prototype.unsubscribe.call(this);
|
|
4226
4237
|
}
|
|
4227
4238
|
}, n;
|
|
4228
|
-
}(
|
|
4239
|
+
}(Or), $e = function() {
|
|
4229
4240
|
function e(n, t) {
|
|
4230
4241
|
t === void 0 && (t = e.now), this.schedulerActionCtor = n, this.now = t;
|
|
4231
4242
|
}
|
|
4232
4243
|
return e.prototype.schedule = function(n, t, o) {
|
|
4233
4244
|
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, n).schedule(o, t);
|
|
4234
|
-
}, e.now =
|
|
4235
|
-
}(),
|
|
4245
|
+
}, e.now = Ar.now, e;
|
|
4246
|
+
}(), Lr = function(e) {
|
|
4236
4247
|
q(n, e);
|
|
4237
4248
|
function n(t, o) {
|
|
4238
4249
|
o === void 0 && (o = $e.now);
|
|
@@ -4257,15 +4268,15 @@ var Ir = function(e) {
|
|
|
4257
4268
|
throw r;
|
|
4258
4269
|
}
|
|
4259
4270
|
}, n;
|
|
4260
|
-
}($e),
|
|
4261
|
-
function
|
|
4271
|
+
}($e), jr = new Lr(Nr);
|
|
4272
|
+
function $r(e) {
|
|
4262
4273
|
return e && A(e.schedule);
|
|
4263
4274
|
}
|
|
4264
|
-
function
|
|
4275
|
+
function Dr(e) {
|
|
4265
4276
|
return e[e.length - 1];
|
|
4266
4277
|
}
|
|
4267
|
-
function
|
|
4268
|
-
return
|
|
4278
|
+
function Ur(e) {
|
|
4279
|
+
return $r(Dr(e)) ? e.pop() : void 0;
|
|
4269
4280
|
}
|
|
4270
4281
|
var ct = function(e) {
|
|
4271
4282
|
return e && typeof e.length == "number" && typeof e != "function";
|
|
@@ -4282,15 +4293,15 @@ function ft(e) {
|
|
|
4282
4293
|
function yt(e) {
|
|
4283
4294
|
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.");
|
|
4284
4295
|
}
|
|
4285
|
-
function
|
|
4296
|
+
function Rr() {
|
|
4286
4297
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
4287
4298
|
}
|
|
4288
|
-
var vt =
|
|
4299
|
+
var vt = Rr();
|
|
4289
4300
|
function mt(e) {
|
|
4290
4301
|
return A(e == null ? void 0 : e[vt]);
|
|
4291
4302
|
}
|
|
4292
4303
|
function ht(e) {
|
|
4293
|
-
return
|
|
4304
|
+
return gr(this, arguments, function() {
|
|
4294
4305
|
var t, o, r, a;
|
|
4295
4306
|
return nt(this, function(i) {
|
|
4296
4307
|
switch (i.label) {
|
|
@@ -4328,21 +4339,21 @@ function Fe(e) {
|
|
|
4328
4339
|
return e;
|
|
4329
4340
|
if (e != null) {
|
|
4330
4341
|
if (pt(e))
|
|
4331
|
-
return Rr(e);
|
|
4332
|
-
if (ct(e))
|
|
4333
4342
|
return Gr(e);
|
|
4334
|
-
if (
|
|
4343
|
+
if (ct(e))
|
|
4335
4344
|
return _r(e);
|
|
4345
|
+
if (dt(e))
|
|
4346
|
+
return qr(e);
|
|
4336
4347
|
if (ft(e))
|
|
4337
4348
|
return gt(e);
|
|
4338
4349
|
if (mt(e))
|
|
4339
|
-
return qr(e);
|
|
4340
|
-
if (bt(e))
|
|
4341
4350
|
return Hr(e);
|
|
4351
|
+
if (bt(e))
|
|
4352
|
+
return Wr(e);
|
|
4342
4353
|
}
|
|
4343
4354
|
throw yt(e);
|
|
4344
4355
|
}
|
|
4345
|
-
function
|
|
4356
|
+
function Gr(e) {
|
|
4346
4357
|
return new $(function(n) {
|
|
4347
4358
|
var t = e[xe]();
|
|
4348
4359
|
if (A(t.subscribe))
|
|
@@ -4350,14 +4361,14 @@ function Rr(e) {
|
|
|
4350
4361
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
4351
4362
|
});
|
|
4352
4363
|
}
|
|
4353
|
-
function
|
|
4364
|
+
function _r(e) {
|
|
4354
4365
|
return new $(function(n) {
|
|
4355
4366
|
for (var t = 0; t < e.length && !n.closed; t++)
|
|
4356
4367
|
n.next(e[t]);
|
|
4357
4368
|
n.complete();
|
|
4358
4369
|
});
|
|
4359
4370
|
}
|
|
4360
|
-
function
|
|
4371
|
+
function qr(e) {
|
|
4361
4372
|
return new $(function(n) {
|
|
4362
4373
|
e.then(function(t) {
|
|
4363
4374
|
n.closed || (n.next(t), n.complete());
|
|
@@ -4366,7 +4377,7 @@ function _r(e) {
|
|
|
4366
4377
|
}).then(null, lt);
|
|
4367
4378
|
});
|
|
4368
4379
|
}
|
|
4369
|
-
function
|
|
4380
|
+
function Hr(e) {
|
|
4370
4381
|
return new $(function(n) {
|
|
4371
4382
|
var t, o;
|
|
4372
4383
|
try {
|
|
@@ -4389,22 +4400,22 @@ function qr(e) {
|
|
|
4389
4400
|
}
|
|
4390
4401
|
function gt(e) {
|
|
4391
4402
|
return new $(function(n) {
|
|
4392
|
-
|
|
4403
|
+
zr(e, n).catch(function(t) {
|
|
4393
4404
|
return n.error(t);
|
|
4394
4405
|
});
|
|
4395
4406
|
});
|
|
4396
4407
|
}
|
|
4397
|
-
function
|
|
4408
|
+
function Wr(e) {
|
|
4398
4409
|
return gt(ht(e));
|
|
4399
4410
|
}
|
|
4400
|
-
function
|
|
4411
|
+
function zr(e, n) {
|
|
4401
4412
|
var t, o, r, a;
|
|
4402
|
-
return
|
|
4413
|
+
return br(this, void 0, void 0, function() {
|
|
4403
4414
|
var i, s;
|
|
4404
4415
|
return nt(this, function(d) {
|
|
4405
4416
|
switch (d.label) {
|
|
4406
4417
|
case 0:
|
|
4407
|
-
d.trys.push([0, 5, 6, 11]), t =
|
|
4418
|
+
d.trys.push([0, 5, 6, 11]), t = Sr(e), d.label = 1;
|
|
4408
4419
|
case 1:
|
|
4409
4420
|
return [4, t.next()];
|
|
4410
4421
|
case 2:
|
|
@@ -4467,13 +4478,13 @@ function Ct(e, n) {
|
|
|
4467
4478
|
}, n));
|
|
4468
4479
|
});
|
|
4469
4480
|
}
|
|
4470
|
-
function zr(e, n) {
|
|
4471
|
-
return Fe(e).pipe(Ct(n), St(n));
|
|
4472
|
-
}
|
|
4473
4481
|
function Yr(e, n) {
|
|
4474
4482
|
return Fe(e).pipe(Ct(n), St(n));
|
|
4475
4483
|
}
|
|
4476
4484
|
function Zr(e, n) {
|
|
4485
|
+
return Fe(e).pipe(Ct(n), St(n));
|
|
4486
|
+
}
|
|
4487
|
+
function Xr(e, n) {
|
|
4477
4488
|
return new $(function(t) {
|
|
4478
4489
|
var o = 0;
|
|
4479
4490
|
return n.schedule(function() {
|
|
@@ -4481,7 +4492,7 @@ function Zr(e, n) {
|
|
|
4481
4492
|
});
|
|
4482
4493
|
});
|
|
4483
4494
|
}
|
|
4484
|
-
function
|
|
4495
|
+
function Jr(e, n) {
|
|
4485
4496
|
return new $(function(t) {
|
|
4486
4497
|
var o;
|
|
4487
4498
|
return H(t, n, function() {
|
|
@@ -4514,37 +4525,37 @@ function wt(e, n) {
|
|
|
4514
4525
|
});
|
|
4515
4526
|
});
|
|
4516
4527
|
}
|
|
4517
|
-
function
|
|
4528
|
+
function Qr(e, n) {
|
|
4518
4529
|
return wt(ht(e), n);
|
|
4519
4530
|
}
|
|
4520
|
-
function
|
|
4531
|
+
function Kr(e, n) {
|
|
4521
4532
|
if (e != null) {
|
|
4522
4533
|
if (pt(e))
|
|
4523
|
-
return
|
|
4534
|
+
return Yr(e, n);
|
|
4524
4535
|
if (ct(e))
|
|
4525
|
-
return
|
|
4536
|
+
return Xr(e, n);
|
|
4526
4537
|
if (dt(e))
|
|
4527
|
-
return
|
|
4538
|
+
return Zr(e, n);
|
|
4528
4539
|
if (ft(e))
|
|
4529
4540
|
return wt(e, n);
|
|
4530
4541
|
if (mt(e))
|
|
4531
|
-
return Xr(e, n);
|
|
4532
|
-
if (bt(e))
|
|
4533
4542
|
return Jr(e, n);
|
|
4543
|
+
if (bt(e))
|
|
4544
|
+
return Qr(e, n);
|
|
4534
4545
|
}
|
|
4535
4546
|
throw yt(e);
|
|
4536
4547
|
}
|
|
4537
|
-
function
|
|
4538
|
-
return n ?
|
|
4548
|
+
function ea(e, n) {
|
|
4549
|
+
return n ? Kr(e, n) : Fe(e);
|
|
4539
4550
|
}
|
|
4540
|
-
function
|
|
4551
|
+
function ta() {
|
|
4541
4552
|
for (var e = [], n = 0; n < arguments.length; n++)
|
|
4542
4553
|
e[n] = arguments[n];
|
|
4543
|
-
var t =
|
|
4544
|
-
return
|
|
4554
|
+
var t = Ur(e);
|
|
4555
|
+
return ea(e, t);
|
|
4545
4556
|
}
|
|
4546
|
-
function
|
|
4547
|
-
return n === void 0 && (n =
|
|
4557
|
+
function na(e, n) {
|
|
4558
|
+
return n === void 0 && (n = jr), Be(function(t, o) {
|
|
4548
4559
|
var r = null, a = null, i = null, s = function() {
|
|
4549
4560
|
if (r) {
|
|
4550
4561
|
r.unsubscribe(), r = null;
|
|
@@ -4574,7 +4585,7 @@ const ce = /* @__PURE__ */ D({
|
|
|
4574
4585
|
props: _e,
|
|
4575
4586
|
emits: ["propertyEditorValueChanged"],
|
|
4576
4587
|
setup(e, n) {
|
|
4577
|
-
const t = b(
|
|
4588
|
+
const t = b(_n), o = b(""), r = b("const"), a = b([]), i = b(!1);
|
|
4578
4589
|
let s;
|
|
4579
4590
|
const d = b(""), l = b(""), c = b([]);
|
|
4580
4591
|
let u;
|
|
@@ -4587,14 +4598,14 @@ const ce = /* @__PURE__ */ D({
|
|
|
4587
4598
|
dataStatesValueArray: g,
|
|
4588
4599
|
constEnumBindValue: x,
|
|
4589
4600
|
setValue: T
|
|
4590
|
-
} =
|
|
4601
|
+
} = mr(t, a, r, u, p, o, y), {
|
|
4591
4602
|
updateData: M,
|
|
4592
4603
|
changeState: R,
|
|
4593
4604
|
prefix: le,
|
|
4594
4605
|
propertyEditorValueChange: Vt
|
|
4595
|
-
} =
|
|
4606
|
+
} = hr(n, t, x, a, P, f, u, p, g, o, m, r);
|
|
4596
4607
|
function xt() {
|
|
4597
|
-
S.value =
|
|
4608
|
+
S.value = Gn.value.filter((h) => t.value.editorOptions.types.includes(h.id));
|
|
4598
4609
|
}
|
|
4599
4610
|
function Bt() {
|
|
4600
4611
|
r.value = F(S.value.find((h) => h.id === t.value.propertyValue.type));
|
|
@@ -4603,7 +4614,7 @@ const ce = /* @__PURE__ */ D({
|
|
|
4603
4614
|
Bt(), r.value.id === "variable" && t.value.propertyValue.value === void 0 && (t.value.propertyValue = F(P.value.variableValue)), P.value[`${r.value.id}Value`] = F(t.value.propertyValue), T();
|
|
4604
4615
|
}
|
|
4605
4616
|
function Tt(h) {
|
|
4606
|
-
r.value = F(S.value.find((
|
|
4617
|
+
r.value = F(S.value.find((O) => O.label === h[0].label)), r.value.id === "expression" && (P.value.expressionValue.value && (o.value = P.value.expressionValue.value.value), y.value = !0), r.value.id === "custom" && Ut(), M();
|
|
4607
4618
|
}
|
|
4608
4619
|
function kt(h) {
|
|
4609
4620
|
x.value = F(h.value), t.value.propertyValue.value = F(h.value), P.value.constValue.value = F(h.value), M();
|
|
@@ -4615,24 +4626,24 @@ const ce = /* @__PURE__ */ D({
|
|
|
4615
4626
|
P.value.constValue.value = h, M();
|
|
4616
4627
|
}
|
|
4617
4628
|
function Mt() {
|
|
4618
|
-
const h = t.value.propertyName,
|
|
4619
|
-
s = `${Ee}${en}${
|
|
4629
|
+
const h = t.value.propertyName, O = h[0].toUpperCase() + h.substr(1), j = t.value.controlName, Ee = t.value.editorOptions.newVariablePrefix || "", en = Ee ? j[0].toUpperCase() + j.substr(1) : j[0].toLowerCase() + j.substr(1);
|
|
4630
|
+
s = `${Ee}${en}${O}`, Pt();
|
|
4620
4631
|
}
|
|
4621
4632
|
function Pt() {
|
|
4622
4633
|
At(), r.value.id === "variable" && (k.value = t.value.propertyValue.value.path), Te(), l.value !== t.value.propertyValue.value.path && M();
|
|
4623
4634
|
}
|
|
4624
4635
|
function At() {
|
|
4625
|
-
var
|
|
4636
|
+
var O;
|
|
4626
4637
|
let h = 0;
|
|
4627
|
-
(
|
|
4638
|
+
(O = t.value.editorOptions.variables) == null || O.forEach((j) => {
|
|
4628
4639
|
j.path !== s ? h += 1 : (l.value = t.value.propertyValue.value.path, t.value.propertyValue.value = F(j), P.value.variableValue.value = F(j));
|
|
4629
|
-
}),
|
|
4630
|
-
}
|
|
4631
|
-
function Nt(h) {
|
|
4632
|
-
var N;
|
|
4633
|
-
h === ((N = t.value.editorOptions.variables) == null ? void 0 : N.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = s, t.value.propertyValue.value.field = d, t.value.propertyValue.value.fullPath = s, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, Vt.value.isNewVariable = !0, t.value.editorOptions.variables.push(F(t.value.propertyValue.value)), P.value.variableValue.value = F(t.value.propertyValue.value));
|
|
4640
|
+
}), Ot(h);
|
|
4634
4641
|
}
|
|
4635
4642
|
function Ot(h) {
|
|
4643
|
+
var O;
|
|
4644
|
+
h === ((O = t.value.editorOptions.variables) == null ? void 0 : O.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = s, t.value.propertyValue.value.field = d, t.value.propertyValue.value.fullPath = s, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, Vt.value.isNewVariable = !0, t.value.editorOptions.variables.push(F(t.value.propertyValue.value)), P.value.variableValue.value = F(t.value.propertyValue.value));
|
|
4645
|
+
}
|
|
4646
|
+
function Nt(h) {
|
|
4636
4647
|
!h || !h.selections || h.selections.length < 1 || (P.value.variableValue.value.category = F(h.selections[0].category), P.value.variableValue.value.path = F(h.selections[0].path), P.value.variableValue.value.fullPath = F(h.selections[0].fullPath), P.value.variableValue.value.field = F(h.selections[0].field), k.value = F(h.value), M());
|
|
4637
4648
|
}
|
|
4638
4649
|
function Lt() {
|
|
@@ -4642,25 +4653,25 @@ const ce = /* @__PURE__ */ D({
|
|
|
4642
4653
|
c.value = F(t.value.editorOptions.variables);
|
|
4643
4654
|
}
|
|
4644
4655
|
const jt = (h) => {
|
|
4645
|
-
const
|
|
4656
|
+
const O = t.value.editorOptions.getVariables, j = {
|
|
4646
4657
|
showDialog: !0
|
|
4647
4658
|
};
|
|
4648
|
-
return
|
|
4659
|
+
return O && (c.value = O(), h && (h.data = c)), ta(j);
|
|
4649
4660
|
};
|
|
4650
4661
|
function $t(h) {
|
|
4651
|
-
const
|
|
4662
|
+
const O = {
|
|
4652
4663
|
id: h[0].id,
|
|
4653
4664
|
name: h[0].exist,
|
|
4654
4665
|
exist: h[0].name
|
|
4655
4666
|
};
|
|
4656
|
-
P.value.stateMachineValue.value = F(
|
|
4667
|
+
P.value.stateMachineValue.value = F(O), p.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", u = F(O.id), M();
|
|
4657
4668
|
}
|
|
4658
4669
|
function Dt() {
|
|
4659
4670
|
f.value = F(t.value.editorOptions.stateMachine), p.value = P.value.stateMachineValue.value.exist === "是" ? "是" : "否";
|
|
4660
4671
|
}
|
|
4661
4672
|
const ke = new st();
|
|
4662
4673
|
function Ut() {
|
|
4663
|
-
ke.pipe(
|
|
4674
|
+
ke.pipe(na(700)).subscribe((h) => {
|
|
4664
4675
|
P.value.customValue.value = h, M();
|
|
4665
4676
|
});
|
|
4666
4677
|
}
|
|
@@ -4671,8 +4682,8 @@ const ce = /* @__PURE__ */ D({
|
|
|
4671
4682
|
}
|
|
4672
4683
|
function _t(h) {
|
|
4673
4684
|
t.value.propertyValue.value = F(h), P.value.dataStatesValue.value = F(h);
|
|
4674
|
-
const
|
|
4675
|
-
w.value = F(
|
|
4685
|
+
const O = h.map((j) => j.valueField).join(",");
|
|
4686
|
+
w.value = F(O), M();
|
|
4676
4687
|
}
|
|
4677
4688
|
function qt() {
|
|
4678
4689
|
return C("div", {
|
|
@@ -4694,7 +4705,7 @@ const ce = /* @__PURE__ */ D({
|
|
|
4694
4705
|
beforeShow: jt,
|
|
4695
4706
|
readonly: m.value,
|
|
4696
4707
|
editable: !1,
|
|
4697
|
-
onValueChange: (h) =>
|
|
4708
|
+
onValueChange: (h) => Nt(h),
|
|
4698
4709
|
onClear: Lt
|
|
4699
4710
|
}, null), i.value ? C("div", {
|
|
4700
4711
|
class: "f-page-single-property-editor-component-variable-button"
|
|
@@ -4843,17 +4854,17 @@ const ce = /* @__PURE__ */ D({
|
|
|
4843
4854
|
class: "f-page-single-property-editor-component clearfix"
|
|
4844
4855
|
}, [Qt(), Kt()])]);
|
|
4845
4856
|
}
|
|
4846
|
-
}),
|
|
4857
|
+
}), fa = {
|
|
4847
4858
|
install(e) {
|
|
4848
4859
|
e.component(ce.name, ce);
|
|
4849
4860
|
},
|
|
4850
4861
|
register(e, n, t, o) {
|
|
4851
|
-
e["property-editor"] = ce, n["property-editor"] =
|
|
4862
|
+
e["property-editor"] = ce, n["property-editor"] = Rn;
|
|
4852
4863
|
}
|
|
4853
4864
|
};
|
|
4854
4865
|
export {
|
|
4855
|
-
|
|
4866
|
+
fa as default,
|
|
4856
4867
|
ce as propertyEditor,
|
|
4857
4868
|
_e as propertyEditorProps,
|
|
4858
|
-
|
|
4869
|
+
Rn as propsResolver
|
|
4859
4870
|
};
|