@farris/ui-vue 1.8.5-beta.3 → 1.8.5-beta.4
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/batch-editor/index.esm.js +6850 -6840
- package/components/batch-editor/index.umd.cjs +20 -20
- package/components/button/index.esm.js +6852 -6842
- package/components/button/index.umd.cjs +20 -20
- package/components/button-edit/index.esm.js +140 -140
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +46 -45
- package/components/button-group/index.umd.cjs +1 -1
- package/components/common/index.esm.js +16 -12
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +411 -411
- package/components/component/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +6500 -6487
- package/components/data-view/index.umd.cjs +21 -21
- package/components/designer-canvas/index.esm.js +269 -269
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +458 -458
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +386 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1100 -1100
- package/components/flow-canvas/index.umd.cjs +7 -7
- package/components/mapping-editor/index.esm.js +243 -243
- package/components/mapping-editor/index.umd.cjs +2 -2
- package/components/message-box/index.esm.js +82 -82
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +76 -76
- package/components/modal/index.umd.cjs +1 -1
- package/components/order/index.esm.js +139 -138
- package/components/order/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +891 -891
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +151 -149
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +947 -941
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/section/index.esm.js +121 -121
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +539 -539
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +448 -442
- package/components/tabs/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +97 -97
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +6483 -6470
- package/designer/data-grid/index.umd.cjs +21 -21
- package/designer/farris-designer.all.esm.js +1891 -1885
- package/designer/farris-designer.all.umd.cjs +14 -14
- package/designer/radio-group/index.esm.js +183 -183
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +558 -556
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +416 -416
- package/designer/tabs/index.umd.cjs +2 -2
- package/farris.all.esm.js +9133 -9119
- package/farris.all.umd.cjs +35 -35
- package/package.json +1 -1
- package/types/common/index.d.ts +1 -0
- package/types/common/utils/attrs.d.ts +26 -0
- package/types/modal/src/composition/type.d.ts +2 -0
- package/types/tabs/src/composition/types.d.ts +2 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
var Qt = Object.defineProperty;
|
|
2
2
|
var en = (e, t, n) => t in e ? Qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Q = (e, t, n) => en(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as y, computed as D, defineComponent as U, provide as tt, createVNode as v, watch as $, inject as _, onMounted as K, reactive as ce, onBeforeUnmount as nt, nextTick as ee, createTextVNode as se, withDirectives as at, vModelText as tn, Teleport as lt, createApp as Ve, onUnmounted as xe, Fragment as oe, onBeforeMount as nn, watchEffect as an, Transition as it, shallowRef as ln, render as Ee, h as on, cloneVNode as sn,
|
|
4
|
+
import { ref as y, computed as D, defineComponent as U, provide as tt, createVNode as v, watch as $, inject as _, onMounted as K, reactive as ce, onBeforeUnmount as nt, nextTick as ee, createTextVNode as se, withDirectives as at, vModelText as tn, Teleport as lt, createApp as Ve, onUnmounted as xe, Fragment as oe, onBeforeMount as nn, watchEffect as an, Transition as it, mergeProps as de, shallowRef as ln, render as Ee, h as on, cloneVNode as sn, vShow as rn, onUpdated as un } from "vue";
|
|
5
5
|
import { resolveAppearance as ot, createPropsResolver as we, getPropsResolverGenerator as cn } from "../dynamic-resolver/index.esm.js";
|
|
6
|
-
import { getCustomClass as dn, getCustomStyle as fn, useTouchMomentum as mn, useTouch as yn, useCommonUtils as Fe, useBem as st, useFarrisConfig as pn, FormSchemaEntityFieldType$Type as
|
|
7
|
-
import { useDesignerComponent as Le, useDragulaCommonRule as
|
|
8
|
-
import
|
|
6
|
+
import { getCustomClass as dn, getCustomStyle as fn, useTouchMomentum as mn, useTouch as yn, useCommonUtils as Fe, useBem as st, useFarrisConfig as pn, FormSchemaEntityFieldType$Type as he, EVENT_PROPERTY_TAB_IDS as vn, withInstall as hn, isMobilePhone as fe, getMaxZIndex as Ue, extractDataAttrs as gn, useGuid as bn } from "../common/index.esm.js";
|
|
7
|
+
import { useDesignerComponent as Le, useDragulaCommonRule as Cn } from "../designer-canvas/index.esm.js";
|
|
8
|
+
import kn, { FButtonEdit as rt } from "../button-edit/index.esm.js";
|
|
9
9
|
import { LocaleService as J } from "../locale/index.esm.js";
|
|
10
|
-
import
|
|
11
|
-
import { isUndefined as
|
|
10
|
+
import xn from "../list-view/index.esm.js";
|
|
11
|
+
import { isUndefined as wn, cloneDeep as je, debounce as ut } from "lodash-es";
|
|
12
12
|
import "bignumber.js";
|
|
13
|
-
import
|
|
14
|
-
import { InputBaseProperty as
|
|
15
|
-
import
|
|
13
|
+
import Fn from "../../designer/button-edit/index.esm.js";
|
|
14
|
+
import { InputBaseProperty as Sn } from "../property-panel/index.esm.js";
|
|
15
|
+
import Tn from "../tree-view/index.esm.js";
|
|
16
16
|
import He from "../drawer/index.esm.js";
|
|
17
17
|
import "../button/index.esm.js";
|
|
18
18
|
import "../field-selector/index.esm.js";
|
|
19
19
|
import "../collection-property-editor/index.esm.js/src/use-button-items.designer";
|
|
20
|
-
import
|
|
21
|
-
import { useInputExpand as
|
|
22
|
-
import
|
|
23
|
-
const
|
|
20
|
+
import Mn from "../tags/index.esm.js";
|
|
21
|
+
import { useInputExpand as On } from "../common/index.esm.js/text-box/use-input-expand";
|
|
22
|
+
import Bn from "../popover/index.esm.js";
|
|
23
|
+
const En = {
|
|
24
24
|
modelValue: {
|
|
25
25
|
type: String,
|
|
26
26
|
default: ""
|
|
@@ -75,7 +75,7 @@ const Bn = {
|
|
|
75
75
|
function dt(e, t, n) {
|
|
76
76
|
return t;
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const Dn = "https://json-schema.org/draft/2020-12/schema", Pn = "https://farris-design.gitee.io/layout.schema.json", In = "layout", Nn = "A Farris Container Component", jn = "object", Rn = {
|
|
79
79
|
id: {
|
|
80
80
|
description: "The unique identifier for layout component",
|
|
81
81
|
type: "string"
|
|
@@ -118,19 +118,19 @@ const En = "https://json-schema.org/draft/2020-12/schema", Dn = "https://farris-
|
|
|
118
118
|
type: "boolean",
|
|
119
119
|
default: !0
|
|
120
120
|
}
|
|
121
|
-
},
|
|
121
|
+
}, Vn = [
|
|
122
122
|
"id",
|
|
123
123
|
"type",
|
|
124
124
|
"contents"
|
|
125
|
-
],
|
|
126
|
-
$schema:
|
|
127
|
-
$id:
|
|
128
|
-
title:
|
|
129
|
-
description:
|
|
130
|
-
type:
|
|
131
|
-
properties:
|
|
132
|
-
required:
|
|
133
|
-
},
|
|
125
|
+
], Ln = {
|
|
126
|
+
$schema: Dn,
|
|
127
|
+
$id: Pn,
|
|
128
|
+
title: In,
|
|
129
|
+
description: Nn,
|
|
130
|
+
type: jn,
|
|
131
|
+
properties: Rn,
|
|
132
|
+
required: Vn
|
|
133
|
+
}, Hn = "layout", zn = "A Farris Component", An = "object", $n = {
|
|
134
134
|
basic: {
|
|
135
135
|
description: "Basic Infomation",
|
|
136
136
|
title: "基本信息",
|
|
@@ -165,18 +165,18 @@ const En = "https://json-schema.org/draft/2020-12/schema", Dn = "https://farris-
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
},
|
|
169
|
-
title:
|
|
170
|
-
description:
|
|
171
|
-
type:
|
|
172
|
-
categories:
|
|
168
|
+
}, Wn = {
|
|
169
|
+
title: Hn,
|
|
170
|
+
description: zn,
|
|
171
|
+
type: An,
|
|
172
|
+
categories: $n
|
|
173
173
|
}, ze = {
|
|
174
174
|
customStyle: { type: String, defaut: "" },
|
|
175
175
|
/**
|
|
176
176
|
* 自定义样式
|
|
177
177
|
*/
|
|
178
178
|
customClass: { type: String, defaut: "" }
|
|
179
|
-
}, ft = we(ze,
|
|
179
|
+
}, ft = we(ze, Ln, ct, dt, Wn);
|
|
180
180
|
function mt(e) {
|
|
181
181
|
const t = y(-1), n = y(-1), a = y(0), l = y(0), o = y(!1), i = y(!1), f = D(() => ({
|
|
182
182
|
display: o.value ? "block" : "none",
|
|
@@ -290,7 +290,7 @@ const te = /* @__PURE__ */ U({
|
|
|
290
290
|
style: o.value
|
|
291
291
|
}, null)]);
|
|
292
292
|
}
|
|
293
|
-
}),
|
|
293
|
+
}), Yn = "https://json-schema.org/draft/2020-12/schema", qn = "https://farris-design.gitee.io/layout-pane.schema.json", Un = "layout-pane", Gn = "A Farris Container Component", Xn = "object", Kn = {
|
|
294
294
|
id: {
|
|
295
295
|
description: "The unique identifier for a layout pane",
|
|
296
296
|
type: "string"
|
|
@@ -353,19 +353,19 @@ const te = /* @__PURE__ */ U({
|
|
|
353
353
|
type: "number",
|
|
354
354
|
default: !0
|
|
355
355
|
}
|
|
356
|
-
},
|
|
356
|
+
}, _n = [
|
|
357
357
|
"id",
|
|
358
358
|
"type",
|
|
359
359
|
"contents"
|
|
360
|
-
],
|
|
361
|
-
$schema:
|
|
362
|
-
$id:
|
|
363
|
-
title:
|
|
364
|
-
description:
|
|
365
|
-
type:
|
|
366
|
-
properties:
|
|
367
|
-
required:
|
|
368
|
-
},
|
|
360
|
+
], Jn = {
|
|
361
|
+
$schema: Yn,
|
|
362
|
+
$id: qn,
|
|
363
|
+
title: Un,
|
|
364
|
+
description: Gn,
|
|
365
|
+
type: Xn,
|
|
366
|
+
properties: Kn,
|
|
367
|
+
required: _n
|
|
368
|
+
}, Zn = "layout-pane", Qn = "A Farris Container Component", ea = "object", ta = {
|
|
369
369
|
basic: {
|
|
370
370
|
description: "Basic Infomation",
|
|
371
371
|
title: "基本信息",
|
|
@@ -460,11 +460,11 @@ const te = /* @__PURE__ */ U({
|
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
},
|
|
464
|
-
title:
|
|
465
|
-
description:
|
|
466
|
-
type:
|
|
467
|
-
categories:
|
|
463
|
+
}, na = {
|
|
464
|
+
title: Zn,
|
|
465
|
+
description: Qn,
|
|
466
|
+
type: ea,
|
|
467
|
+
categories: ta
|
|
468
468
|
}, Ae = {
|
|
469
469
|
customClass: { type: String, defaut: "" },
|
|
470
470
|
customStyle: { type: String, defaut: "" },
|
|
@@ -485,7 +485,7 @@ const te = /* @__PURE__ */ U({
|
|
|
485
485
|
/** 面板最小高度 */
|
|
486
486
|
minHeight: { type: Number, default: 100 },
|
|
487
487
|
maxWidth: { type: Number, default: null }
|
|
488
|
-
}, yt = we(Ae,
|
|
488
|
+
}, yt = we(Ae, Jn, ct, dt, na);
|
|
489
489
|
function pt(e, t, n, a, l, o) {
|
|
490
490
|
const {
|
|
491
491
|
horizontalResizeBarPosition: i,
|
|
@@ -582,19 +582,19 @@ const Z = /* @__PURE__ */ U({
|
|
|
582
582
|
}, null)]);
|
|
583
583
|
}
|
|
584
584
|
});
|
|
585
|
-
function
|
|
585
|
+
function aa(e, t) {
|
|
586
586
|
function n() {
|
|
587
587
|
return !1;
|
|
588
588
|
}
|
|
589
589
|
return { canAccepts: n };
|
|
590
590
|
}
|
|
591
|
-
const
|
|
591
|
+
const la = /* @__PURE__ */ U({
|
|
592
592
|
name: "FLayoutDesign",
|
|
593
593
|
props: ze,
|
|
594
594
|
emits: [],
|
|
595
595
|
setup(e, t) {
|
|
596
596
|
var g;
|
|
597
|
-
const n = y(), a = _("design-item-context"), l =
|
|
597
|
+
const n = y(), a = _("design-item-context"), l = aa(a.schema, (g = a.parent) == null ? void 0 : g.schema), o = Le(n, a, l);
|
|
598
598
|
o.value.canNested = !1;
|
|
599
599
|
const i = mt(n), {
|
|
600
600
|
horizontalResizeHandleStyle: f,
|
|
@@ -620,10 +620,10 @@ const aa = /* @__PURE__ */ U({
|
|
|
620
620
|
}, null)]);
|
|
621
621
|
}
|
|
622
622
|
});
|
|
623
|
-
function
|
|
623
|
+
function ia(e, t) {
|
|
624
624
|
const n = e.schema;
|
|
625
625
|
function a(o) {
|
|
626
|
-
return !!
|
|
626
|
+
return !!Cn().basalDragulaRuleForContainer(o);
|
|
627
627
|
}
|
|
628
628
|
function l() {
|
|
629
629
|
const o = ["f-layout-pane"];
|
|
@@ -631,14 +631,14 @@ function la(e, t) {
|
|
|
631
631
|
}
|
|
632
632
|
return { canAccepts: a, getDesignerClass: l };
|
|
633
633
|
}
|
|
634
|
-
const
|
|
634
|
+
const oa = /* @__PURE__ */ U({
|
|
635
635
|
name: "FLayoutPaneDesign",
|
|
636
636
|
props: Ae,
|
|
637
637
|
emits: [],
|
|
638
638
|
setup(e, t) {
|
|
639
639
|
const n = y(), a = y();
|
|
640
640
|
_("designer-host-service");
|
|
641
|
-
const l = _("design-item-context"), o =
|
|
641
|
+
const l = _("design-item-context"), o = ia(l), i = Le(a, l, o);
|
|
642
642
|
i.value.canNested = !1, i.value.canMove = !1, i.value.canDelete = !1, K(() => {
|
|
643
643
|
a.value.componentInstance = i;
|
|
644
644
|
}), t.expose(i.value);
|
|
@@ -691,11 +691,11 @@ te.register = (e, t, n, a) => {
|
|
|
691
691
|
e.layout = te, t.layout = ft, e["layout-pane"] = Z, t["layout-pane"] = yt;
|
|
692
692
|
};
|
|
693
693
|
te.registerDesigner = (e, t, n) => {
|
|
694
|
-
e.layout =
|
|
694
|
+
e.layout = la, t.layout = ft, e["layout-pane"] = oa, t["layout-pane"] = yt;
|
|
695
695
|
};
|
|
696
696
|
const vt = /* @__PURE__ */ new Map([
|
|
697
697
|
["appearance", ot]
|
|
698
|
-
]),
|
|
698
|
+
]), sa = "https://json-schema.org/draft/2020-12/schema", ra = "https://farris-design.gitee.io/combo-list.schema.json", ua = "combo-list", ca = "A Farris Input Component", da = "object", fa = {
|
|
699
699
|
id: {
|
|
700
700
|
description: "The unique identifier for a combo list",
|
|
701
701
|
type: "string"
|
|
@@ -950,14 +950,14 @@ const vt = /* @__PURE__ */ new Map([
|
|
|
950
950
|
type: "boolean",
|
|
951
951
|
default: !1
|
|
952
952
|
}
|
|
953
|
-
},
|
|
953
|
+
}, ma = [
|
|
954
954
|
"type"
|
|
955
|
-
],
|
|
955
|
+
], ya = [
|
|
956
956
|
"id",
|
|
957
957
|
"appearance",
|
|
958
958
|
"binding",
|
|
959
959
|
"visible"
|
|
960
|
-
],
|
|
960
|
+
], pa = {
|
|
961
961
|
onClear: "清空事件",
|
|
962
962
|
onShown: "面板打开事件",
|
|
963
963
|
onHidden: "面板关闭事件",
|
|
@@ -965,20 +965,20 @@ const vt = /* @__PURE__ */ new Map([
|
|
|
965
965
|
beforeOpen: "打开面板前事件",
|
|
966
966
|
beforeHide: "关闭面板前事件"
|
|
967
967
|
}, ht = {
|
|
968
|
-
$schema:
|
|
969
|
-
$id:
|
|
970
|
-
title:
|
|
971
|
-
description:
|
|
972
|
-
type:
|
|
973
|
-
properties:
|
|
974
|
-
required:
|
|
975
|
-
ignore:
|
|
976
|
-
events:
|
|
968
|
+
$schema: sa,
|
|
969
|
+
$id: ra,
|
|
970
|
+
title: ua,
|
|
971
|
+
description: ca,
|
|
972
|
+
type: da,
|
|
973
|
+
properties: fa,
|
|
974
|
+
required: ma,
|
|
975
|
+
ignore: ya,
|
|
976
|
+
events: pa
|
|
977
977
|
};
|
|
978
978
|
function gt(e, t, n) {
|
|
979
979
|
return t;
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function va() {
|
|
982
982
|
function e(t, n, a) {
|
|
983
983
|
const l = {};
|
|
984
984
|
return l.beforeOpen = (o) => n.call("beforeOpen", t, [o, t], a), l;
|
|
@@ -1265,7 +1265,7 @@ const Se = {
|
|
|
1265
1265
|
* @default false
|
|
1266
1266
|
*/
|
|
1267
1267
|
hideDisabledItems: { type: Boolean, default: !1 }
|
|
1268
|
-
},
|
|
1268
|
+
}, ha = Object.assign({}, Se, {
|
|
1269
1269
|
readonly: {}
|
|
1270
1270
|
});
|
|
1271
1271
|
we(Se, ht, vt, gt);
|
|
@@ -1274,7 +1274,7 @@ const bt = cn(
|
|
|
1274
1274
|
ht,
|
|
1275
1275
|
vt,
|
|
1276
1276
|
gt
|
|
1277
|
-
),
|
|
1277
|
+
), ga = va(), ba = {
|
|
1278
1278
|
dataSource: { type: Array, default: [] },
|
|
1279
1279
|
enableSearch: { type: Boolean, default: !1 },
|
|
1280
1280
|
idField: { type: String, default: "id" },
|
|
@@ -1297,9 +1297,9 @@ const bt = cn(
|
|
|
1297
1297
|
},
|
|
1298
1298
|
// 搜索启用高亮
|
|
1299
1299
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
1300
|
-
},
|
|
1300
|
+
}, Ca = /* @__PURE__ */ U({
|
|
1301
1301
|
name: "FComboListContainer",
|
|
1302
|
-
props:
|
|
1302
|
+
props: ba,
|
|
1303
1303
|
emits: ["selectionChange"],
|
|
1304
1304
|
setup(e, t) {
|
|
1305
1305
|
const n = y(), a = y(e.dataSource), l = y(e.dataSource), o = y([]), i = y(e.separator), f = y(e.width), c = y(e.maxHeight), m = D(() => e.multiSelect), g = y(e.multiSelect ? String(e.selectedValues).split(i.value) : [e.selectedValues]), h = D(() => ({
|
|
@@ -1344,7 +1344,7 @@ const bt = cn(
|
|
|
1344
1344
|
const k = (s = g.value) == null ? void 0 : s[0];
|
|
1345
1345
|
let b = k;
|
|
1346
1346
|
const r = a.value.map((d) => d[e.valueField || e.idField]);
|
|
1347
|
-
if (!
|
|
1347
|
+
if (!wn(k) && r.includes(k)) {
|
|
1348
1348
|
const d = typeof k, C = typeof ((u = a.value[0]) == null ? void 0 : u[e.valueField || e.idField]);
|
|
1349
1349
|
C === "number" && d !== C && (b = Number(k)), C === "boolean" && d !== C && (b = k === "true" ? !0 : k === "false" ? !1 : k), p(b);
|
|
1350
1350
|
}
|
|
@@ -1355,7 +1355,7 @@ const bt = cn(
|
|
|
1355
1355
|
}), () => v("div", {
|
|
1356
1356
|
class: "f-combo-list-container",
|
|
1357
1357
|
style: x.value
|
|
1358
|
-
}, [v(
|
|
1358
|
+
}, [v(xn, {
|
|
1359
1359
|
ref: n,
|
|
1360
1360
|
size: "small",
|
|
1361
1361
|
itemClass: "f-combo-list-item",
|
|
@@ -1379,7 +1379,7 @@ const bt = cn(
|
|
|
1379
1379
|
duration: 0.3,
|
|
1380
1380
|
timingFunction: "cubic-bezier(0.17, 0.89, 0.45, 1)",
|
|
1381
1381
|
delay: 0
|
|
1382
|
-
},
|
|
1382
|
+
}, ka = (e, t) => {
|
|
1383
1383
|
const n = e.lineHeight / 2, a = mn({ maxOverflowY: 44 }), l = ce({ ...Ge }), o = (b) => {
|
|
1384
1384
|
t.emit("change", b);
|
|
1385
1385
|
}, i = ce({
|
|
@@ -1451,7 +1451,7 @@ const bt = cn(
|
|
|
1451
1451
|
},
|
|
1452
1452
|
updateTranslate: h
|
|
1453
1453
|
};
|
|
1454
|
-
},
|
|
1454
|
+
}, xa = {
|
|
1455
1455
|
column: { type: Array, default: () => [] },
|
|
1456
1456
|
valueField: { type: String, default: "value" },
|
|
1457
1457
|
textField: { type: String, default: "text" },
|
|
@@ -1460,8 +1460,8 @@ const bt = cn(
|
|
|
1460
1460
|
showIcon: { type: Boolean, default: !1 },
|
|
1461
1461
|
lineHeight: { type: Number, default: 0 },
|
|
1462
1462
|
visiableOptionCount: { type: Number, default: 5 }
|
|
1463
|
-
},
|
|
1464
|
-
props:
|
|
1463
|
+
}, wa = /* @__PURE__ */ U({
|
|
1464
|
+
props: xa,
|
|
1465
1465
|
emits: ["change", "click"],
|
|
1466
1466
|
setup(e, t) {
|
|
1467
1467
|
const {
|
|
@@ -1475,7 +1475,7 @@ const bt = cn(
|
|
|
1475
1475
|
onTouchMove: f,
|
|
1476
1476
|
onTouchEnd: c,
|
|
1477
1477
|
onTransitionend: m
|
|
1478
|
-
} =
|
|
1478
|
+
} = ka(e, t), g = (F) => {
|
|
1479
1479
|
t.emit("click", F);
|
|
1480
1480
|
}, h = D(() => ({
|
|
1481
1481
|
transform: `translateY(${n(l.value)})`,
|
|
@@ -1495,7 +1495,7 @@ const bt = cn(
|
|
|
1495
1495
|
class: `f-icon f-icon-check ${a("column-item-icon")}`
|
|
1496
1496
|
}, null)]))]);
|
|
1497
1497
|
}
|
|
1498
|
-
}),
|
|
1498
|
+
}), Fa = {
|
|
1499
1499
|
modelValue: { type: [String, Array], default: "" },
|
|
1500
1500
|
columns: { type: Array, default: () => [] },
|
|
1501
1501
|
title: { type: String, default: "" },
|
|
@@ -1510,7 +1510,7 @@ const bt = cn(
|
|
|
1510
1510
|
visiableOptionCount: { type: Number, default: 5 },
|
|
1511
1511
|
showToolbar: { type: Boolean, default: !0 },
|
|
1512
1512
|
separator: { type: String, default: "," }
|
|
1513
|
-
},
|
|
1513
|
+
}, Sa = (e, t) => {
|
|
1514
1514
|
const { finalValue: n, initValue: a, setSelectedByIndex: l, getSelectedValueByIndex: o } = t, { isArray: i, isFunction: f, isObject: c } = Fe(), m = (r) => r && r[0], g = D(() => {
|
|
1515
1515
|
var r;
|
|
1516
1516
|
return ((r = e.columns) == null ? void 0 : r.length) > 0 && i(e.columns[0]);
|
|
@@ -1569,7 +1569,7 @@ const bt = cn(
|
|
|
1569
1569
|
getValue: u,
|
|
1570
1570
|
getTextValue: k
|
|
1571
1571
|
};
|
|
1572
|
-
},
|
|
1572
|
+
}, Ta = (e) => {
|
|
1573
1573
|
const { isArray: t, isMultiArray: n, isString: a, isDef: l } = Fe(), o = (s) => {
|
|
1574
1574
|
let u = [];
|
|
1575
1575
|
return t(s) ? u = s : a(s) ? u = s.split(e.separator) : l(s) && (u = [s]), e.multiSelect ? n(u) ? u : [u] : u;
|
|
@@ -1591,15 +1591,15 @@ const bt = cn(
|
|
|
1591
1591
|
getSelectedByIndex: (s) => e.multiSelect ? g[s] : c[s],
|
|
1592
1592
|
getSelectedValueByIndex: (s) => e.multiSelect ? h.value[s] : m.value[s]
|
|
1593
1593
|
};
|
|
1594
|
-
},
|
|
1595
|
-
props:
|
|
1594
|
+
}, Ma = /* @__PURE__ */ U({
|
|
1595
|
+
props: Fa,
|
|
1596
1596
|
emits: ["change", "confirm", "cancel", "update:modelValue"],
|
|
1597
1597
|
setup(e, t) {
|
|
1598
1598
|
const {
|
|
1599
1599
|
emit: n
|
|
1600
1600
|
} = t, {
|
|
1601
1601
|
addUnit: a
|
|
1602
|
-
} = Fe(), l =
|
|
1602
|
+
} = Fe(), l = Ta(e), {
|
|
1603
1603
|
finalValue: o,
|
|
1604
1604
|
getSelectedValue: i,
|
|
1605
1605
|
getSelectedValueByIndex: f,
|
|
@@ -1607,7 +1607,7 @@ const bt = cn(
|
|
|
1607
1607
|
setSelectedByIndex: m
|
|
1608
1608
|
} = l, {
|
|
1609
1609
|
columns: g
|
|
1610
|
-
} =
|
|
1610
|
+
} = Sa(e, l), h = (k, b = !0) => {
|
|
1611
1611
|
const {
|
|
1612
1612
|
value: r,
|
|
1613
1613
|
index: d
|
|
@@ -1644,7 +1644,7 @@ const bt = cn(
|
|
|
1644
1644
|
}, [v("div", {
|
|
1645
1645
|
class: S("columns"),
|
|
1646
1646
|
style: p.value
|
|
1647
|
-
}, [g.value.map((k, b) => v(
|
|
1647
|
+
}, [g.value.map((k, b) => v(wa, {
|
|
1648
1648
|
column: k,
|
|
1649
1649
|
value: f(b),
|
|
1650
1650
|
showIcon: e.multiSelect,
|
|
@@ -1672,7 +1672,7 @@ const bt = cn(
|
|
|
1672
1672
|
}, [e.showToolbar && T(), u()]);
|
|
1673
1673
|
}
|
|
1674
1674
|
});
|
|
1675
|
-
function
|
|
1675
|
+
function Oa(e, t) {
|
|
1676
1676
|
const n = y(""), a = y(e.modelValue), l = y(e.data || []), o = y(e.editable), i = D(() => e.hideDisabledItems ? l.value.filter((s) => !s.disabled) : l.value);
|
|
1677
1677
|
function f(s) {
|
|
1678
1678
|
const u = e.multiSelect ? String(s).split(e.separator) : [String(s)], k = u.map((d) => [d, !0]), b = new Map(k);
|
|
@@ -1757,8 +1757,8 @@ function Ma(e, t) {
|
|
|
1757
1757
|
getSelectedItemsByDisplayText: h
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
1760
|
-
const
|
|
1761
|
-
function
|
|
1760
|
+
const Ba = ["moz", "ms", "webkit"];
|
|
1761
|
+
function Ea() {
|
|
1762
1762
|
let e = 0;
|
|
1763
1763
|
return (t) => {
|
|
1764
1764
|
const n = (/* @__PURE__ */ new Date()).getTime(), a = Math.max(0, 16 - (n - e)), l = setTimeout(() => {
|
|
@@ -1767,15 +1767,15 @@ function Ba() {
|
|
|
1767
1767
|
return e = n + a, l;
|
|
1768
1768
|
};
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1770
|
+
function Da() {
|
|
1771
1771
|
if (typeof window > "u")
|
|
1772
1772
|
return () => 0;
|
|
1773
1773
|
if (window.requestAnimationFrame)
|
|
1774
1774
|
return window.requestAnimationFrame.bind(window);
|
|
1775
|
-
const e =
|
|
1776
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
1775
|
+
const e = Ba.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
1776
|
+
return e ? window[`${e}RequestAnimationFrame`] : Ea();
|
|
1777
1777
|
}
|
|
1778
|
-
|
|
1778
|
+
Da();
|
|
1779
1779
|
y("");
|
|
1780
1780
|
function Ce() {
|
|
1781
1781
|
if (typeof window > "u" || typeof navigator > "u")
|
|
@@ -1810,12 +1810,12 @@ function Ce() {
|
|
|
1810
1810
|
const a = "ontouchstart" in window || navigator.maxTouchPoints > 0, l = screen.width, o = screen.height, i = Math.min(l, o);
|
|
1811
1811
|
return !!(a && i <= 768);
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1813
|
+
function Pa() {
|
|
1814
1814
|
const e = Ce();
|
|
1815
1815
|
return e && document.body.classList.add("f-mobile"), e;
|
|
1816
1816
|
}
|
|
1817
|
-
typeof document < "u" &&
|
|
1818
|
-
const
|
|
1817
|
+
typeof document < "u" && Pa();
|
|
1818
|
+
const me = /* @__PURE__ */ U({
|
|
1819
1819
|
name: "FComboList",
|
|
1820
1820
|
props: Se,
|
|
1821
1821
|
emits: ["clear", "update:modelValue", "change", "input", "dataChanged", "expandClick", "hidden", "shown"],
|
|
@@ -1829,7 +1829,7 @@ const fe = /* @__PURE__ */ U({
|
|
|
1829
1829
|
getItemsByDisplayText: F,
|
|
1830
1830
|
getItemsByValue: S,
|
|
1831
1831
|
beforeOpenList: T
|
|
1832
|
-
} =
|
|
1832
|
+
} = Oa(e, t), p = y(e.dropDownIcon);
|
|
1833
1833
|
p.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (p.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
|
|
1834
1834
|
const s = D(() => e.multiSelect), u = D(() => a.value ? a.value.elementRef.getBoundingClientRect().width : 0);
|
|
1835
1835
|
function k() {
|
|
@@ -1837,8 +1837,8 @@ const fe = /* @__PURE__ */ U({
|
|
|
1837
1837
|
}
|
|
1838
1838
|
function b(R) {
|
|
1839
1839
|
m.value = R.map((E) => E[e.textField]).join(e.separator) || h.value;
|
|
1840
|
-
let
|
|
1841
|
-
R.length === 1 ?
|
|
1840
|
+
let B = "";
|
|
1841
|
+
R.length === 1 ? B = R[0][e.valueField] : B = R.map((E) => E[e.valueField]).join(e.separator), h.value !== B && (h.value = B, t.emit("update:modelValue", h.value), t.emit("change", R, h.value));
|
|
1842
1842
|
}
|
|
1843
1843
|
function r() {
|
|
1844
1844
|
const R = S(h.value);
|
|
@@ -1848,19 +1848,19 @@ const fe = /* @__PURE__ */ U({
|
|
|
1848
1848
|
f.value || m.value;
|
|
1849
1849
|
}
|
|
1850
1850
|
function C(R) {
|
|
1851
|
-
var
|
|
1852
|
-
h.value = "", (
|
|
1851
|
+
var B;
|
|
1852
|
+
h.value = "", (B = n.value) == null || B.activeRowById(""), t.emit("clear");
|
|
1853
1853
|
}
|
|
1854
1854
|
function w(R) {
|
|
1855
|
-
var
|
|
1856
|
-
e.enableSearch && e.enableHighlightSearch && ((
|
|
1855
|
+
var B, E;
|
|
1856
|
+
e.enableSearch && e.enableHighlightSearch && ((B = n.value) == null || B.search(R)), (E = n.value) == null || E.activeRowById(R), t.emit("change", [h.value], h.value);
|
|
1857
1857
|
}
|
|
1858
1858
|
function j(R) {
|
|
1859
1859
|
if (e.multiSelect) {
|
|
1860
|
-
const
|
|
1860
|
+
const B = F(R);
|
|
1861
1861
|
e.viewType;
|
|
1862
|
-
const L =
|
|
1863
|
-
h.value !== L && (h.value = L, t.emit("update:modelValue", h.value), t.emit("change",
|
|
1862
|
+
const L = B.map((A) => A[e.idField || e.valueField]).join(e.separator);
|
|
1863
|
+
h.value !== L && (h.value = L, t.emit("update:modelValue", h.value), t.emit("change", B, h.value));
|
|
1864
1864
|
} else R !== h.value && (h.value = R, t.emit("update:modelValue", h.value), t.emit("change", [], R));
|
|
1865
1865
|
}
|
|
1866
1866
|
function V() {
|
|
@@ -1868,9 +1868,9 @@ const fe = /* @__PURE__ */ U({
|
|
|
1868
1868
|
}
|
|
1869
1869
|
function I(R) {
|
|
1870
1870
|
const {
|
|
1871
|
-
value:
|
|
1871
|
+
value: B
|
|
1872
1872
|
} = R.target;
|
|
1873
|
-
w(
|
|
1873
|
+
w(B), t.emit("input", B);
|
|
1874
1874
|
}
|
|
1875
1875
|
function P() {
|
|
1876
1876
|
a.value.hidePopup();
|
|
@@ -1887,13 +1887,13 @@ const fe = /* @__PURE__ */ U({
|
|
|
1887
1887
|
updateDataSource: M,
|
|
1888
1888
|
getData: N
|
|
1889
1889
|
};
|
|
1890
|
-
t.expose(z), $([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([R,
|
|
1891
|
-
l.value = R, g.value =
|
|
1890
|
+
t.expose(z), $([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([R, B, E, L, A]) => {
|
|
1891
|
+
l.value = R, g.value = B, o.value = E, i.value = L, f.value = A;
|
|
1892
1892
|
});
|
|
1893
1893
|
const Y = () => {
|
|
1894
1894
|
t.emit("expandClick");
|
|
1895
1895
|
};
|
|
1896
|
-
return () => v(
|
|
1896
|
+
return () => v(kn, {
|
|
1897
1897
|
ref: a,
|
|
1898
1898
|
id: e.id,
|
|
1899
1899
|
disable: l.value,
|
|
@@ -1931,7 +1931,7 @@ const fe = /* @__PURE__ */ U({
|
|
|
1931
1931
|
onHidden: () => t.emit("hidden"),
|
|
1932
1932
|
onShown: () => t.emit("shown")
|
|
1933
1933
|
}, {
|
|
1934
|
-
default: () => [Ce() ? v(
|
|
1934
|
+
default: () => [Ce() ? v(Ma, {
|
|
1935
1935
|
modelValue: h.value,
|
|
1936
1936
|
valueField: e.valueField,
|
|
1937
1937
|
textField: e.textField,
|
|
@@ -1939,13 +1939,13 @@ const fe = /* @__PURE__ */ U({
|
|
|
1939
1939
|
multiSelect: e.multiSelect,
|
|
1940
1940
|
separator: e.separator,
|
|
1941
1941
|
onConfirm: (R) => {
|
|
1942
|
-
const
|
|
1943
|
-
b(
|
|
1942
|
+
const B = e.multiSelect ? R[0] || [] : R;
|
|
1943
|
+
b(B), a == null || a.value.hidePopup();
|
|
1944
1944
|
},
|
|
1945
1945
|
onCancel: () => {
|
|
1946
1946
|
a == null || a.value.hidePopup();
|
|
1947
1947
|
}
|
|
1948
|
-
}, null) : v(
|
|
1948
|
+
}, null) : v(Ca, {
|
|
1949
1949
|
class: e.popupClass,
|
|
1950
1950
|
ref: n,
|
|
1951
1951
|
idField: e.idField,
|
|
@@ -1973,7 +1973,7 @@ const fe = /* @__PURE__ */ U({
|
|
|
1973
1973
|
e.editor.remote = e.editor.remote || {}, e.editor.remote[t] = n;
|
|
1974
1974
|
}
|
|
1975
1975
|
};
|
|
1976
|
-
class
|
|
1976
|
+
class Ia extends Sn {
|
|
1977
1977
|
constructor(t, n) {
|
|
1978
1978
|
super(t, n);
|
|
1979
1979
|
}
|
|
@@ -2045,7 +2045,7 @@ class Pa extends Fn {
|
|
|
2045
2045
|
const r = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
|
|
2046
2046
|
(m = r == null ? void 0 : r.schemaField) != null && m.type && (a = r.schemaField.type.$type);
|
|
2047
2047
|
}
|
|
2048
|
-
const l = this.getPropertyEditorParams(t, ["Variable"]), o = !t.editor.dataSourceType || t.editor.dataSourceType === "static", i = (((h = (g = this.designViewModelField) == null ? void 0 : g.type) == null ? void 0 : h.$type) ===
|
|
2048
|
+
const l = this.getPropertyEditorParams(t, ["Variable"]), o = !t.editor.dataSourceType || t.editor.dataSourceType === "static", i = (((h = (g = this.designViewModelField) == null ? void 0 : g.type) == null ? void 0 : h.$type) === he.StringType || !!this.formRule && ((x = this.designerHostService.schemaService.getFieldByID(t.binding.field)) == null ? void 0 : x.type.$type) === he.StringType) && ((F = t.editor) == null ? void 0 : F.type) === "combo-list" && ((S = t.editor) == null ? void 0 : S.dataSourceType) === "dynamic" && !((p = (T = t.editor) == null ? void 0 : T.remote) != null && p.url) && !((s = t.editor) != null && s.multiSelect);
|
|
2049
2049
|
return n.getComponentConfig(
|
|
2050
2050
|
t,
|
|
2051
2051
|
{ type: "combo-list" },
|
|
@@ -2188,7 +2188,7 @@ class Pa extends Fn {
|
|
|
2188
2188
|
const r = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
|
|
2189
2189
|
(m = r == null ? void 0 : r.schemaField) != null && m.type && (l = r.schemaField.type.$type);
|
|
2190
2190
|
}
|
|
2191
|
-
const o = ((h = (g = this.designViewModelField) == null ? void 0 : g.type) == null ? void 0 : h.$type) ===
|
|
2191
|
+
const o = ((h = (g = this.designViewModelField) == null ? void 0 : g.type) == null ? void 0 : h.$type) === he.StringType && ((x = t.editor) == null ? void 0 : x.type) === "combo-list" && ((F = t.editor) == null ? void 0 : F.dataSourceType) === "dynamic" && !((S = t.editor) != null && S.multiSelect), i = this.getPropertyEditorParams(t, ["Variable"]);
|
|
2192
2192
|
return a.getComponentConfig(
|
|
2193
2193
|
t,
|
|
2194
2194
|
{ type: "combo-list" },
|
|
@@ -2311,7 +2311,7 @@ class Pa extends Fn {
|
|
|
2311
2311
|
var o;
|
|
2312
2312
|
super.changeBindingField(t, n);
|
|
2313
2313
|
const l = a;
|
|
2314
|
-
t.editor && ((o = l == null ? void 0 : l.type) == null ? void 0 : o.$type) ===
|
|
2314
|
+
t.editor && ((o = l == null ? void 0 : l.type) == null ? void 0 : o.$type) === he.EnumType && (t.editor.data = l.type.enumValues || []);
|
|
2315
2315
|
}
|
|
2316
2316
|
/**
|
|
2317
2317
|
* 组装输入类控件的交互面板:包含标签超链、绑定字段值变化前后事件等。
|
|
@@ -2368,24 +2368,24 @@ class Pa extends Fn {
|
|
|
2368
2368
|
};
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
|
-
function
|
|
2371
|
+
function Na(e, t) {
|
|
2372
2372
|
const n = e.schema;
|
|
2373
2373
|
function a(l, o) {
|
|
2374
|
-
return new
|
|
2374
|
+
return new Ia(l, t).getPropertyConfig(n, o);
|
|
2375
2375
|
}
|
|
2376
2376
|
return {
|
|
2377
2377
|
getPropsConfig: a
|
|
2378
2378
|
};
|
|
2379
2379
|
}
|
|
2380
|
-
const
|
|
2380
|
+
const ja = /* @__PURE__ */ U({
|
|
2381
2381
|
name: "FComboListDesign",
|
|
2382
|
-
props:
|
|
2382
|
+
props: ha,
|
|
2383
2383
|
emits: ["clear", "update:modelValue", "change"],
|
|
2384
2384
|
setup(e, t) {
|
|
2385
|
-
const n = y(), a = _("designer-host-service"), l = _("design-item-context"), o =
|
|
2385
|
+
const n = y(), a = _("designer-host-service"), l = _("design-item-context"), o = Na(l, a), i = Le(n, l, o);
|
|
2386
2386
|
return K(() => {
|
|
2387
2387
|
n.value.componentInstance = i;
|
|
2388
|
-
}), t.expose(i.value), () => v(
|
|
2388
|
+
}), t.expose(i.value), () => v(Fn, {
|
|
2389
2389
|
ref: n,
|
|
2390
2390
|
buttonContent: e.dropDownIcon,
|
|
2391
2391
|
readonly: !0,
|
|
@@ -2399,14 +2399,14 @@ const Na = /* @__PURE__ */ U({
|
|
|
2399
2399
|
}, null);
|
|
2400
2400
|
}
|
|
2401
2401
|
});
|
|
2402
|
-
|
|
2403
|
-
e["combo-list"] =
|
|
2402
|
+
me.register = (e, t, n, a, l) => {
|
|
2403
|
+
e["combo-list"] = me, t["combo-list"] = bt(l), a["combo-list"] = { callbackResolver: ga };
|
|
2404
2404
|
};
|
|
2405
|
-
|
|
2406
|
-
e["combo-list"] =
|
|
2405
|
+
me.registerDesigner = (e, t, n, a) => {
|
|
2406
|
+
e["combo-list"] = ja, t["combo-list"] = bt(a);
|
|
2407
2407
|
};
|
|
2408
|
-
hn(
|
|
2409
|
-
const
|
|
2408
|
+
hn(me);
|
|
2409
|
+
const Ra = [
|
|
2410
2410
|
{
|
|
2411
2411
|
key: "if",
|
|
2412
2412
|
name: `if() {
|
|
@@ -2479,7 +2479,7 @@ const ja = [
|
|
|
2479
2479
|
keyFront: "",
|
|
2480
2480
|
className: ""
|
|
2481
2481
|
}
|
|
2482
|
-
],
|
|
2482
|
+
], Va = [
|
|
2483
2483
|
{
|
|
2484
2484
|
key: "IsNull",
|
|
2485
2485
|
name: "是空值",
|
|
@@ -3205,7 +3205,7 @@ const ja = [
|
|
|
3205
3205
|
keyFront: "DefaultFunction",
|
|
3206
3206
|
className: ""
|
|
3207
3207
|
}
|
|
3208
|
-
],
|
|
3208
|
+
], La = [
|
|
3209
3209
|
{
|
|
3210
3210
|
key: "DayDifference",
|
|
3211
3211
|
name: "天数差",
|
|
@@ -3872,7 +3872,7 @@ const ja = [
|
|
|
3872
3872
|
keyFront: "DefaultFunction",
|
|
3873
3873
|
className: ""
|
|
3874
3874
|
}
|
|
3875
|
-
],
|
|
3875
|
+
], Ha = [
|
|
3876
3876
|
{
|
|
3877
3877
|
key: "NumberThousandSeparator",
|
|
3878
3878
|
name: "数字千位分隔",
|
|
@@ -4022,7 +4022,7 @@ const ja = [
|
|
|
4022
4022
|
keyFront: "DefaultFunction",
|
|
4023
4023
|
className: ""
|
|
4024
4024
|
}
|
|
4025
|
-
],
|
|
4025
|
+
], za = [
|
|
4026
4026
|
{
|
|
4027
4027
|
key: "SubString",
|
|
4028
4028
|
name: "取子字符串",
|
|
@@ -4345,7 +4345,7 @@ const ja = [
|
|
|
4345
4345
|
keyFront: "DefaultFunction",
|
|
4346
4346
|
className: ""
|
|
4347
4347
|
}
|
|
4348
|
-
],
|
|
4348
|
+
], Aa = [
|
|
4349
4349
|
{
|
|
4350
4350
|
key: "ToStringX",
|
|
4351
4351
|
name: "转字符串",
|
|
@@ -4515,15 +4515,15 @@ const ja = [
|
|
|
4515
4515
|
keyFront: "DefaultFunction",
|
|
4516
4516
|
className: ""
|
|
4517
4517
|
}
|
|
4518
|
-
],
|
|
4519
|
-
analytical: { name: "数据", items:
|
|
4520
|
-
datetime: { name: "时间", items:
|
|
4521
|
-
string: { name: "字符", items:
|
|
4522
|
-
math: { name: "数字", items:
|
|
4523
|
-
translate: { name: "转换", items:
|
|
4524
|
-
advanced: { name: "高级", items:
|
|
4518
|
+
], $a = {
|
|
4519
|
+
analytical: { name: "数据", items: Va },
|
|
4520
|
+
datetime: { name: "时间", items: La },
|
|
4521
|
+
string: { name: "字符", items: za },
|
|
4522
|
+
math: { name: "数字", items: Ha },
|
|
4523
|
+
translate: { name: "转换", items: Aa },
|
|
4524
|
+
advanced: { name: "高级", items: Ra }
|
|
4525
4525
|
};
|
|
4526
|
-
function
|
|
4526
|
+
function Wa(e, t, n) {
|
|
4527
4527
|
return t in e ? Object.defineProperty(e, t, {
|
|
4528
4528
|
value: n,
|
|
4529
4529
|
enumerable: !0,
|
|
@@ -4545,23 +4545,23 @@ function _e(e) {
|
|
|
4545
4545
|
for (var t = 1; t < arguments.length; t++) {
|
|
4546
4546
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
4547
4547
|
t % 2 ? Ke(Object(n), !0).forEach(function(a) {
|
|
4548
|
-
|
|
4548
|
+
Wa(e, a, n[a]);
|
|
4549
4549
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ke(Object(n)).forEach(function(a) {
|
|
4550
4550
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
4551
4551
|
});
|
|
4552
4552
|
}
|
|
4553
4553
|
return e;
|
|
4554
4554
|
}
|
|
4555
|
-
function
|
|
4555
|
+
function Ya(e, t) {
|
|
4556
4556
|
if (e == null) return {};
|
|
4557
4557
|
var n = {}, a = Object.keys(e), l, o;
|
|
4558
4558
|
for (o = 0; o < a.length; o++)
|
|
4559
4559
|
l = a[o], !(t.indexOf(l) >= 0) && (n[l] = e[l]);
|
|
4560
4560
|
return n;
|
|
4561
4561
|
}
|
|
4562
|
-
function
|
|
4562
|
+
function qa(e, t) {
|
|
4563
4563
|
if (e == null) return {};
|
|
4564
|
-
var n =
|
|
4564
|
+
var n = Ya(e, t), a, l;
|
|
4565
4565
|
if (Object.getOwnPropertySymbols) {
|
|
4566
4566
|
var o = Object.getOwnPropertySymbols(e);
|
|
4567
4567
|
for (l = 0; l < o.length; l++)
|
|
@@ -4569,13 +4569,13 @@ function Ya(e, t) {
|
|
|
4569
4569
|
}
|
|
4570
4570
|
return n;
|
|
4571
4571
|
}
|
|
4572
|
-
function
|
|
4573
|
-
return
|
|
4572
|
+
function Ua(e, t) {
|
|
4573
|
+
return Ga(e) || Xa(e, t) || Ka(e, t) || _a();
|
|
4574
4574
|
}
|
|
4575
|
-
function
|
|
4575
|
+
function Ga(e) {
|
|
4576
4576
|
if (Array.isArray(e)) return e;
|
|
4577
4577
|
}
|
|
4578
|
-
function
|
|
4578
|
+
function Xa(e, t) {
|
|
4579
4579
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
|
|
4580
4580
|
var n = [], a = !0, l = !1, o = void 0;
|
|
4581
4581
|
try {
|
|
@@ -4593,7 +4593,7 @@ function Ga(e, t) {
|
|
|
4593
4593
|
return n;
|
|
4594
4594
|
}
|
|
4595
4595
|
}
|
|
4596
|
-
function
|
|
4596
|
+
function Ka(e, t) {
|
|
4597
4597
|
if (e) {
|
|
4598
4598
|
if (typeof e == "string") return Je(e, t);
|
|
4599
4599
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -4606,11 +4606,11 @@ function Je(e, t) {
|
|
|
4606
4606
|
for (var n = 0, a = new Array(t); n < t; n++) a[n] = e[n];
|
|
4607
4607
|
return a;
|
|
4608
4608
|
}
|
|
4609
|
-
function
|
|
4609
|
+
function _a() {
|
|
4610
4610
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4611
4611
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4612
4612
|
}
|
|
4613
|
-
function
|
|
4613
|
+
function Ja(e, t, n) {
|
|
4614
4614
|
return t in e ? Object.defineProperty(e, t, {
|
|
4615
4615
|
value: n,
|
|
4616
4616
|
enumerable: !0,
|
|
@@ -4632,14 +4632,14 @@ function Qe(e) {
|
|
|
4632
4632
|
for (var t = 1; t < arguments.length; t++) {
|
|
4633
4633
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
4634
4634
|
t % 2 ? Ze(Object(n), !0).forEach(function(a) {
|
|
4635
|
-
|
|
4635
|
+
Ja(e, a, n[a]);
|
|
4636
4636
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ze(Object(n)).forEach(function(a) {
|
|
4637
4637
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
4638
4638
|
});
|
|
4639
4639
|
}
|
|
4640
4640
|
return e;
|
|
4641
4641
|
}
|
|
4642
|
-
function
|
|
4642
|
+
function Za() {
|
|
4643
4643
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
4644
4644
|
t[n] = arguments[n];
|
|
4645
4645
|
return function(a) {
|
|
@@ -4662,35 +4662,35 @@ function re(e) {
|
|
|
4662
4662
|
function ke(e) {
|
|
4663
4663
|
return {}.toString.call(e).includes("Object");
|
|
4664
4664
|
}
|
|
4665
|
-
function
|
|
4665
|
+
function Qa(e) {
|
|
4666
4666
|
return !Object.keys(e).length;
|
|
4667
4667
|
}
|
|
4668
|
-
function
|
|
4668
|
+
function ye(e) {
|
|
4669
4669
|
return typeof e == "function";
|
|
4670
4670
|
}
|
|
4671
|
-
function
|
|
4671
|
+
function el(e, t) {
|
|
4672
4672
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
4673
4673
|
}
|
|
4674
|
-
function
|
|
4674
|
+
function tl(e, t) {
|
|
4675
4675
|
return ke(t) || ne("changeType"), Object.keys(t).some(function(n) {
|
|
4676
|
-
return !
|
|
4676
|
+
return !el(e, n);
|
|
4677
4677
|
}) && ne("changeField"), t;
|
|
4678
4678
|
}
|
|
4679
|
-
function tl(e) {
|
|
4680
|
-
me(e) || ne("selectorType");
|
|
4681
|
-
}
|
|
4682
4679
|
function nl(e) {
|
|
4683
|
-
|
|
4684
|
-
return !me(t);
|
|
4685
|
-
}) && ne("handlersType");
|
|
4680
|
+
ye(e) || ne("selectorType");
|
|
4686
4681
|
}
|
|
4687
4682
|
function al(e) {
|
|
4688
|
-
e ||
|
|
4683
|
+
ye(e) || ke(e) || ne("handlerType"), ke(e) && Object.values(e).some(function(t) {
|
|
4684
|
+
return !ye(t);
|
|
4685
|
+
}) && ne("handlersType");
|
|
4689
4686
|
}
|
|
4690
|
-
function ll(e
|
|
4687
|
+
function ll(e) {
|
|
4688
|
+
e || ne("initialIsRequired"), ke(e) || ne("initialType"), Qa(e) && ne("initialContent");
|
|
4689
|
+
}
|
|
4690
|
+
function il(e, t) {
|
|
4691
4691
|
throw new Error(e[t] || e.default);
|
|
4692
4692
|
}
|
|
4693
|
-
var
|
|
4693
|
+
var ol = {
|
|
4694
4694
|
initialIsRequired: "initial state is required",
|
|
4695
4695
|
initialType: "initial state should be an object",
|
|
4696
4696
|
initialContent: "initial state shouldn't be an empty object",
|
|
@@ -4700,49 +4700,49 @@ var il = {
|
|
|
4700
4700
|
changeType: "provided value of changes should be an object",
|
|
4701
4701
|
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
|
4702
4702
|
default: "an unknown error accured in `state-local` package"
|
|
4703
|
-
}, ne = re(
|
|
4704
|
-
changes:
|
|
4705
|
-
selector:
|
|
4706
|
-
handler:
|
|
4707
|
-
initial:
|
|
4703
|
+
}, ne = re(il)(ol), ge = {
|
|
4704
|
+
changes: tl,
|
|
4705
|
+
selector: nl,
|
|
4706
|
+
handler: al,
|
|
4707
|
+
initial: ll
|
|
4708
4708
|
};
|
|
4709
|
-
function
|
|
4709
|
+
function sl(e) {
|
|
4710
4710
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4711
|
-
|
|
4711
|
+
ge.initial(e), ge.handler(t);
|
|
4712
4712
|
var n = {
|
|
4713
4713
|
current: e
|
|
4714
|
-
}, a = re(
|
|
4714
|
+
}, a = re(cl)(n, t), l = re(ul)(n), o = re(ge.changes)(e), i = re(rl)(n);
|
|
4715
4715
|
function f() {
|
|
4716
4716
|
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(g) {
|
|
4717
4717
|
return g;
|
|
4718
4718
|
};
|
|
4719
|
-
return
|
|
4719
|
+
return ge.selector(m), m(n.current);
|
|
4720
4720
|
}
|
|
4721
4721
|
function c(m) {
|
|
4722
|
-
|
|
4722
|
+
Za(a, l, o, i)(m);
|
|
4723
4723
|
}
|
|
4724
4724
|
return [f, c];
|
|
4725
4725
|
}
|
|
4726
|
-
function sl(e, t) {
|
|
4727
|
-
return me(t) ? t(e.current) : t;
|
|
4728
|
-
}
|
|
4729
4726
|
function rl(e, t) {
|
|
4727
|
+
return ye(t) ? t(e.current) : t;
|
|
4728
|
+
}
|
|
4729
|
+
function ul(e, t) {
|
|
4730
4730
|
return e.current = Qe(Qe({}, e.current), t), t;
|
|
4731
4731
|
}
|
|
4732
|
-
function
|
|
4733
|
-
return
|
|
4732
|
+
function cl(e, t, n) {
|
|
4733
|
+
return ye(t) ? t(e.current) : Object.keys(n).forEach(function(a) {
|
|
4734
4734
|
var l;
|
|
4735
4735
|
return (l = t[a]) === null || l === void 0 ? void 0 : l.call(t, e.current[a]);
|
|
4736
4736
|
}), n;
|
|
4737
4737
|
}
|
|
4738
|
-
var
|
|
4739
|
-
create:
|
|
4740
|
-
},
|
|
4738
|
+
var dl = {
|
|
4739
|
+
create: sl
|
|
4740
|
+
}, fl = {
|
|
4741
4741
|
paths: {
|
|
4742
4742
|
vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"
|
|
4743
4743
|
}
|
|
4744
4744
|
};
|
|
4745
|
-
function
|
|
4745
|
+
function ml(e) {
|
|
4746
4746
|
return function t() {
|
|
4747
4747
|
for (var n = this, a = arguments.length, l = new Array(a), o = 0; o < a; o++)
|
|
4748
4748
|
l[o] = arguments[o];
|
|
@@ -4753,20 +4753,20 @@ function fl(e) {
|
|
|
4753
4753
|
};
|
|
4754
4754
|
};
|
|
4755
4755
|
}
|
|
4756
|
-
function
|
|
4756
|
+
function yl(e) {
|
|
4757
4757
|
return {}.toString.call(e).includes("Object");
|
|
4758
4758
|
}
|
|
4759
|
-
function
|
|
4760
|
-
return e || et("configIsRequired"),
|
|
4759
|
+
function pl(e) {
|
|
4760
|
+
return e || et("configIsRequired"), yl(e) || et("configType"), e.urls ? (vl(), {
|
|
4761
4761
|
paths: {
|
|
4762
4762
|
vs: e.urls.monacoBase
|
|
4763
4763
|
}
|
|
4764
4764
|
}) : e;
|
|
4765
4765
|
}
|
|
4766
|
-
function
|
|
4766
|
+
function vl() {
|
|
4767
4767
|
console.warn(Ct.deprecation);
|
|
4768
4768
|
}
|
|
4769
|
-
function
|
|
4769
|
+
function hl(e, t) {
|
|
4770
4770
|
throw new Error(e[t] || e.default);
|
|
4771
4771
|
}
|
|
4772
4772
|
var Ct = {
|
|
@@ -4783,9 +4783,9 @@ var Ct = {
|
|
|
4783
4783
|
|
|
4784
4784
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
4785
4785
|
`
|
|
4786
|
-
}, et =
|
|
4787
|
-
config:
|
|
4788
|
-
},
|
|
4786
|
+
}, et = ml(hl)(Ct), gl = {
|
|
4787
|
+
config: pl
|
|
4788
|
+
}, bl = function() {
|
|
4789
4789
|
for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
|
|
4790
4790
|
n[a] = arguments[a];
|
|
4791
4791
|
return function(l) {
|
|
@@ -4799,29 +4799,29 @@ function kt(e, t) {
|
|
|
4799
4799
|
t[n] instanceof Object && e[n] && Object.assign(t[n], kt(e[n], t[n]));
|
|
4800
4800
|
}), _e(_e({}, e), t);
|
|
4801
4801
|
}
|
|
4802
|
-
var
|
|
4802
|
+
var Cl = {
|
|
4803
4803
|
type: "cancelation",
|
|
4804
4804
|
msg: "operation is manually canceled"
|
|
4805
4805
|
};
|
|
4806
4806
|
function De(e) {
|
|
4807
4807
|
var t = !1, n = new Promise(function(a, l) {
|
|
4808
4808
|
e.then(function(o) {
|
|
4809
|
-
return t ? l(
|
|
4809
|
+
return t ? l(Cl) : a(o);
|
|
4810
4810
|
}), e.catch(l);
|
|
4811
4811
|
});
|
|
4812
4812
|
return n.cancel = function() {
|
|
4813
4813
|
return t = !0;
|
|
4814
4814
|
}, n;
|
|
4815
4815
|
}
|
|
4816
|
-
var
|
|
4817
|
-
config:
|
|
4816
|
+
var kl = dl.create({
|
|
4817
|
+
config: fl,
|
|
4818
4818
|
isInitialized: !1,
|
|
4819
4819
|
resolve: null,
|
|
4820
4820
|
reject: null,
|
|
4821
4821
|
monaco: null
|
|
4822
|
-
}), xt =
|
|
4823
|
-
function
|
|
4824
|
-
var t =
|
|
4822
|
+
}), xt = Ua(kl, 2), pe = xt[0], Te = xt[1];
|
|
4823
|
+
function xl(e) {
|
|
4824
|
+
var t = gl.config(e), n = t.monaco, a = qa(t, ["monaco"]);
|
|
4825
4825
|
Te(function(l) {
|
|
4826
4826
|
return {
|
|
4827
4827
|
config: kt(l.config, a),
|
|
@@ -4829,8 +4829,8 @@ function kl(e) {
|
|
|
4829
4829
|
};
|
|
4830
4830
|
});
|
|
4831
4831
|
}
|
|
4832
|
-
function
|
|
4833
|
-
var e =
|
|
4832
|
+
function wl() {
|
|
4833
|
+
var e = pe(function(t) {
|
|
4834
4834
|
var n = t.monaco, a = t.isInitialized, l = t.resolve;
|
|
4835
4835
|
return {
|
|
4836
4836
|
monaco: n,
|
|
@@ -4845,31 +4845,31 @@ function xl() {
|
|
|
4845
4845
|
return e.resolve(e.monaco), De(Pe);
|
|
4846
4846
|
if (window.monaco && window.monaco.editor)
|
|
4847
4847
|
return wt(window.monaco), e.resolve(window.monaco), De(Pe);
|
|
4848
|
-
|
|
4848
|
+
bl(Fl, Tl)(Ml);
|
|
4849
4849
|
}
|
|
4850
4850
|
return De(Pe);
|
|
4851
4851
|
}
|
|
4852
|
-
function
|
|
4852
|
+
function Fl(e) {
|
|
4853
4853
|
return document.body.appendChild(e);
|
|
4854
4854
|
}
|
|
4855
|
-
function
|
|
4855
|
+
function Sl(e) {
|
|
4856
4856
|
var t = document.createElement("script");
|
|
4857
4857
|
return e && (t.src = e), t;
|
|
4858
4858
|
}
|
|
4859
|
-
function
|
|
4860
|
-
var t =
|
|
4859
|
+
function Tl(e) {
|
|
4860
|
+
var t = pe(function(a) {
|
|
4861
4861
|
var l = a.config, o = a.reject;
|
|
4862
4862
|
return {
|
|
4863
4863
|
config: l,
|
|
4864
4864
|
reject: o
|
|
4865
4865
|
};
|
|
4866
|
-
}), n =
|
|
4866
|
+
}), n = Sl("".concat(t.config.paths.vs, "/loader.js"));
|
|
4867
4867
|
return n.onload = function() {
|
|
4868
4868
|
return e();
|
|
4869
4869
|
}, n.onerror = t.reject, n;
|
|
4870
4870
|
}
|
|
4871
|
-
function
|
|
4872
|
-
var e =
|
|
4871
|
+
function Ml() {
|
|
4872
|
+
var e = pe(function(n) {
|
|
4873
4873
|
var a = n.config, l = n.resolve, o = n.reject;
|
|
4874
4874
|
return {
|
|
4875
4875
|
config: a,
|
|
@@ -4884,12 +4884,12 @@ function Tl() {
|
|
|
4884
4884
|
});
|
|
4885
4885
|
}
|
|
4886
4886
|
function wt(e) {
|
|
4887
|
-
|
|
4887
|
+
pe().monaco || Te({
|
|
4888
4888
|
monaco: e
|
|
4889
4889
|
});
|
|
4890
4890
|
}
|
|
4891
|
-
function
|
|
4892
|
-
return
|
|
4891
|
+
function Ol() {
|
|
4892
|
+
return pe(function(e) {
|
|
4893
4893
|
var t = e.monaco;
|
|
4894
4894
|
return t;
|
|
4895
4895
|
});
|
|
@@ -4900,11 +4900,11 @@ var Pe = new Promise(function(e, t) {
|
|
|
4900
4900
|
reject: t
|
|
4901
4901
|
});
|
|
4902
4902
|
}), Ie = {
|
|
4903
|
-
config:
|
|
4904
|
-
init:
|
|
4905
|
-
__getMonacoInstance:
|
|
4903
|
+
config: xl,
|
|
4904
|
+
init: wl,
|
|
4905
|
+
__getMonacoInstance: Ol
|
|
4906
4906
|
};
|
|
4907
|
-
const
|
|
4907
|
+
const Bl = /* @__PURE__ */ U({
|
|
4908
4908
|
name: "expression-code",
|
|
4909
4909
|
props: {
|
|
4910
4910
|
modelValue: {
|
|
@@ -5033,20 +5033,20 @@ const Ol = /* @__PURE__ */ U({
|
|
|
5033
5033
|
ref: n
|
|
5034
5034
|
}, null);
|
|
5035
5035
|
}
|
|
5036
|
-
}),
|
|
5036
|
+
}), El = {
|
|
5037
5037
|
dataSource: {
|
|
5038
5038
|
type: Object,
|
|
5039
5039
|
default: {}
|
|
5040
5040
|
}
|
|
5041
|
-
},
|
|
5041
|
+
}, Dl = {
|
|
5042
5042
|
data: { type: Array, default: [] },
|
|
5043
5043
|
idField: { type: String, default: "id" },
|
|
5044
5044
|
textField: { type: String, default: "name" },
|
|
5045
5045
|
formatter: { type: Function },
|
|
5046
5046
|
customRowStatus: { type: Object, default: null }
|
|
5047
|
-
},
|
|
5047
|
+
}, Pl = /* @__PURE__ */ U({
|
|
5048
5048
|
name: "FEntitiesTree",
|
|
5049
|
-
props:
|
|
5049
|
+
props: Dl,
|
|
5050
5050
|
emits: ["dblclickNode"],
|
|
5051
5051
|
setup(e, t) {
|
|
5052
5052
|
const n = y(e.data), a = y(), l = y();
|
|
@@ -5096,7 +5096,7 @@ const Ol = /* @__PURE__ */ U({
|
|
|
5096
5096
|
class: "h-100 f-utils-fill",
|
|
5097
5097
|
style: "overflow:auto",
|
|
5098
5098
|
id: "entity-tree-view"
|
|
5099
|
-
}, [v(
|
|
5099
|
+
}, [v(Tn, {
|
|
5100
5100
|
ref: a,
|
|
5101
5101
|
fit: !1,
|
|
5102
5102
|
rowNumber: {
|
|
@@ -5116,9 +5116,9 @@ const Ol = /* @__PURE__ */ U({
|
|
|
5116
5116
|
onExpandNode: g
|
|
5117
5117
|
}, null)]);
|
|
5118
5118
|
}
|
|
5119
|
-
}),
|
|
5119
|
+
}), Il = /* @__PURE__ */ U({
|
|
5120
5120
|
name: "entity-variable",
|
|
5121
|
-
props:
|
|
5121
|
+
props: El,
|
|
5122
5122
|
emits: ["variableItemDblClick", "entityItemDblClick", "fieldClick"],
|
|
5123
5123
|
setup(e, t) {
|
|
5124
5124
|
const n = y("dataEntity"), a = y(e.dataSource), {
|
|
@@ -5193,7 +5193,7 @@ const Ol = /* @__PURE__ */ U({
|
|
|
5193
5193
|
});
|
|
5194
5194
|
}
|
|
5195
5195
|
function r() {
|
|
5196
|
-
return v(
|
|
5196
|
+
return v(Pl, {
|
|
5197
5197
|
data: f.value,
|
|
5198
5198
|
formatter: m,
|
|
5199
5199
|
onDblclickNode: b
|
|
@@ -5300,7 +5300,7 @@ const Ol = /* @__PURE__ */ U({
|
|
|
5300
5300
|
class: "data-area f-utils-fill"
|
|
5301
5301
|
}, [d()])])])]);
|
|
5302
5302
|
}
|
|
5303
|
-
}),
|
|
5303
|
+
}), Nl = {
|
|
5304
5304
|
functionItems: {
|
|
5305
5305
|
type: Array,
|
|
5306
5306
|
default: []
|
|
@@ -5309,9 +5309,9 @@ const Ol = /* @__PURE__ */ U({
|
|
|
5309
5309
|
type: Boolean,
|
|
5310
5310
|
default: !0
|
|
5311
5311
|
}
|
|
5312
|
-
},
|
|
5312
|
+
}, jl = /* @__PURE__ */ U({
|
|
5313
5313
|
name: "FExpressionEditor",
|
|
5314
|
-
props:
|
|
5314
|
+
props: Nl,
|
|
5315
5315
|
emits: ["insertFunction", "search"],
|
|
5316
5316
|
setup(e, t) {
|
|
5317
5317
|
const n = y(), a = y(""), l = y(), o = y({}), i = y(""), f = "没有与搜索条件匹配的项", c = y(e.functionItems), m = D(() => (r) => e.singleExpand ? {
|
|
@@ -5458,7 +5458,7 @@ const Ol = /* @__PURE__ */ U({
|
|
|
5458
5458
|
})]);
|
|
5459
5459
|
}
|
|
5460
5460
|
});
|
|
5461
|
-
function
|
|
5461
|
+
function Rl(e) {
|
|
5462
5462
|
async function t() {
|
|
5463
5463
|
return fetch(e.esprimaPath).then((i) => i.json());
|
|
5464
5464
|
}
|
|
@@ -5509,8 +5509,8 @@ function jl(e) {
|
|
|
5509
5509
|
runWithEsprima: o
|
|
5510
5510
|
};
|
|
5511
5511
|
}
|
|
5512
|
-
function
|
|
5513
|
-
const a = y(e.disabledFunctions), { getTokens: l, getVariableMaps: o, runWithEsprima: i } =
|
|
5512
|
+
function Vl(e, t, n) {
|
|
5513
|
+
const a = y(e.disabledFunctions), { getTokens: l, getVariableMaps: o, runWithEsprima: i } = Rl(e);
|
|
5514
5514
|
function f() {
|
|
5515
5515
|
const p = je(t);
|
|
5516
5516
|
if (a.value) {
|
|
@@ -5628,7 +5628,7 @@ function Rl(e, t, n) {
|
|
|
5628
5628
|
getExpressionTextValue: T
|
|
5629
5629
|
};
|
|
5630
5630
|
}
|
|
5631
|
-
function
|
|
5631
|
+
function Ll(e, t) {
|
|
5632
5632
|
const n = y([]), a = je(t.value), l = Object.values(a).map((f) => f.items).flat();
|
|
5633
5633
|
function o(f) {
|
|
5634
5634
|
const c = je(a);
|
|
@@ -5651,9 +5651,9 @@ function Vl(e, t) {
|
|
|
5651
5651
|
onFunctionSearch: i
|
|
5652
5652
|
};
|
|
5653
5653
|
}
|
|
5654
|
-
const
|
|
5654
|
+
const Hl = /* @__PURE__ */ U({
|
|
5655
5655
|
name: "FExpressionEditor",
|
|
5656
|
-
props:
|
|
5656
|
+
props: En,
|
|
5657
5657
|
emits: [],
|
|
5658
5658
|
setup(e, t) {
|
|
5659
5659
|
var I;
|
|
@@ -5673,9 +5673,9 @@ const Ll = /* @__PURE__ */ U({
|
|
|
5673
5673
|
getFieldExpression: h,
|
|
5674
5674
|
getExpressionCodeValue: x,
|
|
5675
5675
|
getExpressionTextValue: F
|
|
5676
|
-
} =
|
|
5676
|
+
} = Vl(e, $a, e.variables), S = y(g()), {
|
|
5677
5677
|
onFunctionSearch: T
|
|
5678
|
-
} =
|
|
5678
|
+
} = Ll(e, S);
|
|
5679
5679
|
function p({
|
|
5680
5680
|
$event: P,
|
|
5681
5681
|
item: M
|
|
@@ -5711,11 +5711,11 @@ const Ll = /* @__PURE__ */ U({
|
|
|
5711
5711
|
parentCodes: N,
|
|
5712
5712
|
entityCode: z
|
|
5713
5713
|
}) {
|
|
5714
|
-
var
|
|
5714
|
+
var B;
|
|
5715
5715
|
const Y = h(M);
|
|
5716
5716
|
N = e.isServerSide ? b(M.parents) : N;
|
|
5717
5717
|
let R = `${N}.${Y}`;
|
|
5718
|
-
z === Y && (R = Y), (
|
|
5718
|
+
z === Y && (R = Y), (B = i.value) == null || B.insertText(`${R}`);
|
|
5719
5719
|
}
|
|
5720
5720
|
function d({
|
|
5721
5721
|
$event: P,
|
|
@@ -5763,7 +5763,7 @@ const Ll = /* @__PURE__ */ U({
|
|
|
5763
5763
|
width: 248,
|
|
5764
5764
|
minWidth: 130
|
|
5765
5765
|
}, {
|
|
5766
|
-
default: () => [v(
|
|
5766
|
+
default: () => [v(jl, {
|
|
5767
5767
|
functionItems: S.value,
|
|
5768
5768
|
singleExpand: e.singleExpand,
|
|
5769
5769
|
onInsertFunction: p,
|
|
@@ -5776,7 +5776,7 @@ const Ll = /* @__PURE__ */ U({
|
|
|
5776
5776
|
}, {
|
|
5777
5777
|
default: () => [v("div", {
|
|
5778
5778
|
class: "f-utils-fill my-2 ml-1"
|
|
5779
|
-
}, [v(
|
|
5779
|
+
}, [v(Bl, {
|
|
5780
5780
|
modelValue: j.value,
|
|
5781
5781
|
"onUpdate:modelValue": (P) => j.value = P,
|
|
5782
5782
|
ref: i
|
|
@@ -5785,7 +5785,7 @@ const Ll = /* @__PURE__ */ U({
|
|
|
5785
5785
|
style: "background: #fafafa"
|
|
5786
5786
|
}, [v("div", {
|
|
5787
5787
|
class: "d-flex align-items-center py-1"
|
|
5788
|
-
}, [v("b", null, [se("提示信息:")]), e.showMessageType && v(
|
|
5788
|
+
}, [v("b", null, [se("提示信息:")]), e.showMessageType && v(me, {
|
|
5789
5789
|
style: "width: 75px",
|
|
5790
5790
|
data: f,
|
|
5791
5791
|
modelValue: l.value,
|
|
@@ -5806,7 +5806,7 @@ const Ll = /* @__PURE__ */ U({
|
|
|
5806
5806
|
width: 258,
|
|
5807
5807
|
minWidth: 130
|
|
5808
5808
|
}, {
|
|
5809
|
-
default: () => [v(
|
|
5809
|
+
default: () => [v(Il, {
|
|
5810
5810
|
dataSource: {
|
|
5811
5811
|
entities: e.entities,
|
|
5812
5812
|
variables: e.variables
|
|
@@ -5818,7 +5818,7 @@ const Ll = /* @__PURE__ */ U({
|
|
|
5818
5818
|
})]
|
|
5819
5819
|
})]);
|
|
5820
5820
|
}
|
|
5821
|
-
}),
|
|
5821
|
+
}), zl = {
|
|
5822
5822
|
/**
|
|
5823
5823
|
* 标记组件的唯一标识
|
|
5824
5824
|
*/
|
|
@@ -5989,23 +5989,23 @@ const Ll = /* @__PURE__ */ U({
|
|
|
5989
5989
|
* 扩展按钮是否禁用
|
|
5990
5990
|
*/
|
|
5991
5991
|
expandDisabled: { type: Boolean, default: !1 }
|
|
5992
|
-
},
|
|
5992
|
+
}, Al = {
|
|
5993
5993
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
5994
5994
|
host: { type: Object },
|
|
5995
5995
|
backgroundColor: { type: String, default: "" }
|
|
5996
5996
|
};
|
|
5997
|
-
function
|
|
5997
|
+
function $l() {
|
|
5998
5998
|
const e = y(!1);
|
|
5999
5999
|
return K(() => {
|
|
6000
6000
|
e.value = !0;
|
|
6001
6001
|
}), e;
|
|
6002
6002
|
}
|
|
6003
|
-
const
|
|
6003
|
+
const Wl = /* @__PURE__ */ U({
|
|
6004
6004
|
name: "FOverlay",
|
|
6005
|
-
props:
|
|
6005
|
+
props: Al,
|
|
6006
6006
|
emits: ["click"],
|
|
6007
6007
|
setup(e, t) {
|
|
6008
|
-
const n = y(e.popupContentPosition), a = y(e.host), l =
|
|
6008
|
+
const n = y(e.popupContentPosition), a = y(e.host), l = $l(), o = D(() => ({
|
|
6009
6009
|
backgroundColor: e.backgroundColor || "",
|
|
6010
6010
|
pointerEvents: "auto"
|
|
6011
6011
|
}));
|
|
@@ -6048,13 +6048,13 @@ const $l = /* @__PURE__ */ U({
|
|
|
6048
6048
|
}) : null;
|
|
6049
6049
|
}
|
|
6050
6050
|
});
|
|
6051
|
-
function
|
|
6051
|
+
function Yl(e) {
|
|
6052
6052
|
if (e.content && e.content.render)
|
|
6053
6053
|
return e.content.render;
|
|
6054
6054
|
if (e.render && typeof e.render == "function")
|
|
6055
6055
|
return e.render;
|
|
6056
6056
|
}
|
|
6057
|
-
function
|
|
6057
|
+
function ql(e) {
|
|
6058
6058
|
const t = document.createElement("div");
|
|
6059
6059
|
t.style.display = "contents";
|
|
6060
6060
|
let n;
|
|
@@ -6067,8 +6067,8 @@ function Yl(e) {
|
|
|
6067
6067
|
xe(() => {
|
|
6068
6068
|
document.body.removeChild(t);
|
|
6069
6069
|
});
|
|
6070
|
-
const o =
|
|
6071
|
-
return () => v(
|
|
6070
|
+
const o = Yl(e);
|
|
6071
|
+
return () => v(Wl, {
|
|
6072
6072
|
"popup-content-position": e.popupPosition,
|
|
6073
6073
|
host: e.host,
|
|
6074
6074
|
onClick: l,
|
|
@@ -6079,12 +6079,12 @@ function Yl(e) {
|
|
|
6079
6079
|
}
|
|
6080
6080
|
}), document.body.appendChild(t), n.mount(t), n;
|
|
6081
6081
|
}
|
|
6082
|
-
class
|
|
6082
|
+
class Ul {
|
|
6083
6083
|
static show(t) {
|
|
6084
|
-
return
|
|
6084
|
+
return ql(t);
|
|
6085
6085
|
}
|
|
6086
6086
|
}
|
|
6087
|
-
const
|
|
6087
|
+
const Gl = {
|
|
6088
6088
|
/**
|
|
6089
6089
|
* 允许点击蒙层关闭对话框
|
|
6090
6090
|
* @default false
|
|
@@ -6302,21 +6302,21 @@ class ie {
|
|
|
6302
6302
|
return this.width = t.width, this.height = t.height, this;
|
|
6303
6303
|
}
|
|
6304
6304
|
}
|
|
6305
|
-
function
|
|
6305
|
+
function Xl(e, t) {
|
|
6306
6306
|
const n = y(), a = y(), l = y(), o = y(), i = y(), f = y(), c = y(), m = y(), g = y(), h = y(), x = y(), F = y(e.resizeable), S = y(), T = y(e.draggable), p = y(!1);
|
|
6307
6307
|
function s() {
|
|
6308
|
-
const
|
|
6308
|
+
const B = a.value || document.body, E = window.getComputedStyle(B);
|
|
6309
6309
|
if (!E || !n.value)
|
|
6310
6310
|
return;
|
|
6311
6311
|
const L = G.getTransformInfo(n.value), A = {};
|
|
6312
6312
|
c.value && (A.deltaL = n.value.offsetLeft - c.value.x, A.deltaT = n.value.offsetTop - c.value.y);
|
|
6313
6313
|
const X = E.getPropertyValue("position");
|
|
6314
|
-
A.width =
|
|
6314
|
+
A.width = B.clientWidth, A.height = B.clientHeight, A.pr = parseInt(E.getPropertyValue("padding-right"), 10), A.pb = parseInt(E.getPropertyValue("padding-bottom"), 10), A.position = E.getPropertyValue("position"), X === "static" && (B.style.position = "relative"), A.translateX = L.x, A.translateY = L.y, h.value = A;
|
|
6315
6315
|
}
|
|
6316
|
-
function u(
|
|
6316
|
+
function u(B) {
|
|
6317
6317
|
if (n.value) {
|
|
6318
6318
|
o.value = ie.getCurrent(n.value), i.value = G.getCurrent(n.value), f.value = o.value ? ie.copy(o.value) : null, c.value = i.value ? G.copy(i.value) : null, s();
|
|
6319
|
-
const E =
|
|
6319
|
+
const E = B.target.getAttribute("type") || "";
|
|
6320
6320
|
m.value = {
|
|
6321
6321
|
n: !!E.match(/n/),
|
|
6322
6322
|
s: !!E.match(/s/),
|
|
@@ -6326,49 +6326,49 @@ function Gl(e, t) {
|
|
|
6326
6326
|
}
|
|
6327
6327
|
}
|
|
6328
6328
|
function k() {
|
|
6329
|
-
var
|
|
6329
|
+
var B, E, L, A;
|
|
6330
6330
|
if (n.value) {
|
|
6331
6331
|
const X = n.value;
|
|
6332
|
-
m.value && ((m.value.n || m.value.s) && ((
|
|
6332
|
+
m.value && ((m.value.n || m.value.s) && ((B = f.value) != null && B.height) && (X.style.height = f.value.height + "px"), (m.value.w || m.value.e) && ((E = f.value) != null && E.width) && (X.style.width = f.value.width + "px"), c.value && ((L = c.value) != null && L.x && (X.style.left = c.value.x + "px"), (A = c.value) != null && A.y && (X.style.top = c.value.y + "px")));
|
|
6333
6333
|
}
|
|
6334
6334
|
}
|
|
6335
6335
|
function b() {
|
|
6336
|
-
const
|
|
6337
|
-
f.value && c.value && m.value && o.value && (f.value.height <
|
|
6336
|
+
const B = e.minHeight ? e.minHeight : 1, E = e.minWidth ? e.minWidth : 1;
|
|
6337
|
+
f.value && c.value && m.value && o.value && (f.value.height < B && (f.value.height = B, m.value.n && i.value && (c.value.y = i.value.y + (o.value.height - B))), f.value.width < E && (f.value.width = E, m.value.w && i.value && (c.value.x = i.value.x + (o.value.width - E))), e.maxHeight && f.value.height > e.maxHeight && (f.value.height = e.maxHeight, i.value && m.value.n && (c.value.y = i.value.y + (o.value.height - e.maxHeight))), e.maxWidth && f.value.width > e.maxWidth && (f.value.width = e.maxWidth, m.value.w && i.value && (c.value.x = i.value.x + (o.value.width - e.maxWidth))));
|
|
6338
6338
|
}
|
|
6339
6339
|
function r() {
|
|
6340
6340
|
if (a.value) {
|
|
6341
|
-
const
|
|
6341
|
+
const B = h.value;
|
|
6342
6342
|
if (c.value && f.value && m.value && o.value) {
|
|
6343
|
-
const E =
|
|
6344
|
-
m.value.n && c.value.y +
|
|
6343
|
+
const E = B.width - B.pr - B.deltaL - B.translateX - c.value.x, L = B.height - B.pb - B.deltaT - B.translateY - c.value.y;
|
|
6344
|
+
m.value.n && c.value.y + B.translateY < 0 && i.value && (c.value.y = -B.translateY, f.value.height = o.value.height + i.value.y + B.translateY), m.value.w && c.value.x + B.translateX < 0 && i.value && (c.value.x = -B.translateX, f.value.width = o.value.width + i.value.x + B.translateX), f.value.width > E && (f.value.width = E), f.value.height > L && (f.value.height = L);
|
|
6345
6345
|
}
|
|
6346
6346
|
}
|
|
6347
6347
|
}
|
|
6348
|
-
function d(
|
|
6348
|
+
function d(B) {
|
|
6349
6349
|
if (!l.value || !o.value || !i.value || !m.value)
|
|
6350
6350
|
return;
|
|
6351
|
-
|
|
6352
|
-
const E =
|
|
6351
|
+
B.subtract(l.value);
|
|
6352
|
+
const E = B.x, L = B.y;
|
|
6353
6353
|
m.value.n ? (c.value.y = i.value.y + L, f.value.height = o.value.height - L) : m.value.s && (f.value.height = o.value.height + L), m.value.e ? f.value.width = o.value.width + E : m.value.w && (f.value.width = o.value.width - E, c.value.x = i.value.x + E), r(), b(), k();
|
|
6354
6354
|
}
|
|
6355
|
-
function C(
|
|
6355
|
+
function C(B) {
|
|
6356
6356
|
if (!g.value)
|
|
6357
6357
|
return;
|
|
6358
|
-
const E = G.fromEvent(
|
|
6358
|
+
const E = G.fromEvent(B);
|
|
6359
6359
|
E && d(E);
|
|
6360
6360
|
}
|
|
6361
6361
|
function w() {
|
|
6362
6362
|
if (n.value) {
|
|
6363
6363
|
const {
|
|
6364
|
-
width:
|
|
6364
|
+
width: B,
|
|
6365
6365
|
height: E,
|
|
6366
6366
|
x: L,
|
|
6367
6367
|
y: A
|
|
6368
6368
|
} = n.value.getBoundingClientRect(), X = G.getTransformInfo(n.value);
|
|
6369
6369
|
return {
|
|
6370
6370
|
size: {
|
|
6371
|
-
width:
|
|
6371
|
+
width: B,
|
|
6372
6372
|
height: E
|
|
6373
6373
|
},
|
|
6374
6374
|
position: {
|
|
@@ -6379,7 +6379,7 @@ function Gl(e, t) {
|
|
|
6379
6379
|
}
|
|
6380
6380
|
return null;
|
|
6381
6381
|
}
|
|
6382
|
-
function j(
|
|
6382
|
+
function j(B) {
|
|
6383
6383
|
if (n.value) {
|
|
6384
6384
|
const E = w();
|
|
6385
6385
|
x.value = E;
|
|
@@ -6389,11 +6389,11 @@ function Gl(e, t) {
|
|
|
6389
6389
|
function V() {
|
|
6390
6390
|
document.addEventListener("mousemove", C), document.addEventListener("mouseup", j);
|
|
6391
6391
|
}
|
|
6392
|
-
function I(
|
|
6393
|
-
|
|
6392
|
+
function I(B) {
|
|
6393
|
+
B instanceof MouseEvent && B.button === 2 || T.value && (document.body.click(), B.stopPropagation(), B.preventDefault(), l.value = G.fromEvent(B), g.value = B.target, u(B), V());
|
|
6394
6394
|
}
|
|
6395
|
-
function P(
|
|
6396
|
-
return n.value =
|
|
6395
|
+
function P(B) {
|
|
6396
|
+
return n.value = B, F.value && v(oe, null, [v("div", {
|
|
6397
6397
|
class: "fv-resizable-handle fv-resizable-n",
|
|
6398
6398
|
type: "n",
|
|
6399
6399
|
onMousedown: (E) => I(E)
|
|
@@ -6427,10 +6427,10 @@ function Gl(e, t) {
|
|
|
6427
6427
|
onMousedown: (E) => I(E)
|
|
6428
6428
|
}, null)]);
|
|
6429
6429
|
}
|
|
6430
|
-
function M(
|
|
6430
|
+
function M(B = !0) {
|
|
6431
6431
|
document.body.click();
|
|
6432
6432
|
const E = a.value || document.body, L = ie.getCurrent(E), A = n.value;
|
|
6433
|
-
|
|
6433
|
+
B && A && (S.value = w(), S.value.transform = A.style.transform), L && A && (f.value = L, f.value.height -= 14, f.value.width -= 14, A.style.height = f.value.height + "px", A.style.width = f.value.width + "px", A.style.left = "7px", A.style.top = "7px", A.style.transform = "", x.value = {
|
|
6434
6434
|
size: f.value,
|
|
6435
6435
|
position: {
|
|
6436
6436
|
x: 0,
|
|
@@ -6439,7 +6439,7 @@ function Gl(e, t) {
|
|
|
6439
6439
|
}, T.value = !1, p.value = !0);
|
|
6440
6440
|
}
|
|
6441
6441
|
function N() {
|
|
6442
|
-
var
|
|
6442
|
+
var B, E;
|
|
6443
6443
|
if (document.body.click(), S.value) {
|
|
6444
6444
|
const L = {
|
|
6445
6445
|
width: S.value.size.width || 0,
|
|
@@ -6448,7 +6448,7 @@ function Gl(e, t) {
|
|
|
6448
6448
|
x: (window.innerWidth - L.width) / 2,
|
|
6449
6449
|
y: (window.innerHeight - L.height) / 2
|
|
6450
6450
|
};
|
|
6451
|
-
(
|
|
6451
|
+
(B = f.value) == null || B.set(L), (E = c.value) == null || E.set(A);
|
|
6452
6452
|
const X = n.value;
|
|
6453
6453
|
X.style.height = L.height + "px", X.style.width = L.width + "px", X.style.left = `${A.x}px`, X.style.top = `${A.y}px`, X.style.transform = "", x.value = {
|
|
6454
6454
|
size: L,
|
|
@@ -6458,22 +6458,22 @@ function Gl(e, t) {
|
|
|
6458
6458
|
}
|
|
6459
6459
|
function z() {
|
|
6460
6460
|
if (n.value) {
|
|
6461
|
-
const
|
|
6462
|
-
if (
|
|
6461
|
+
const B = ie.getCurrent(n.value);
|
|
6462
|
+
if (B) {
|
|
6463
6463
|
const {
|
|
6464
6464
|
width: E,
|
|
6465
6465
|
height: L
|
|
6466
|
-
} =
|
|
6466
|
+
} = B;
|
|
6467
6467
|
n.value.style.left = `${(window.innerWidth - E) / 2}px`, n.value.style.top = `${(window.innerHeight - L) / 2}px`, n.value.style.transform = "";
|
|
6468
6468
|
}
|
|
6469
6469
|
}
|
|
6470
6470
|
}
|
|
6471
6471
|
function Y() {
|
|
6472
|
-
const
|
|
6472
|
+
const B = () => {
|
|
6473
6473
|
p.value ? M(!1) : z(), document.body.click();
|
|
6474
6474
|
};
|
|
6475
|
-
return window.addEventListener("resize",
|
|
6476
|
-
window.removeEventListener("resize",
|
|
6475
|
+
return window.addEventListener("resize", B), () => {
|
|
6476
|
+
window.removeEventListener("resize", B);
|
|
6477
6477
|
};
|
|
6478
6478
|
}
|
|
6479
6479
|
const R = Y();
|
|
@@ -6489,7 +6489,7 @@ function Gl(e, t) {
|
|
|
6489
6489
|
moveToCenter: z
|
|
6490
6490
|
};
|
|
6491
6491
|
}
|
|
6492
|
-
function
|
|
6492
|
+
function Kl(e, t, n) {
|
|
6493
6493
|
const a = y(), l = y(e.draggable), o = y(e.lockAxis), i = y(), f = y(), c = y(!1), m = y(new G(0, 0)), g = y(new G(0, 0)), h = y(new G(0, 0)), x = y(new G(0, 0));
|
|
6494
6494
|
$(() => n.value, (C) => {
|
|
6495
6495
|
i.value.style.cursor = C ? "move" : "default";
|
|
@@ -6585,7 +6585,7 @@ function Ft(e, t) {
|
|
|
6585
6585
|
};
|
|
6586
6586
|
}
|
|
6587
6587
|
}
|
|
6588
|
-
function
|
|
6588
|
+
function _l(e, t) {
|
|
6589
6589
|
const n = y(e.enableEsc);
|
|
6590
6590
|
let a = null;
|
|
6591
6591
|
return n.value ? (a = Ft("Escape", (l) => {
|
|
@@ -6594,7 +6594,7 @@ function Kl(e, t) {
|
|
|
6594
6594
|
remove: a
|
|
6595
6595
|
}) : null;
|
|
6596
6596
|
}
|
|
6597
|
-
function
|
|
6597
|
+
function Jl(e, t) {
|
|
6598
6598
|
const n = y(e.enableEnter);
|
|
6599
6599
|
let a = null;
|
|
6600
6600
|
return n.value ? (a = Ft("Enter", (l) => {
|
|
@@ -6605,17 +6605,17 @@ function _l(e, t) {
|
|
|
6605
6605
|
}
|
|
6606
6606
|
const ue = /* @__PURE__ */ U({
|
|
6607
6607
|
name: "FModal",
|
|
6608
|
-
props:
|
|
6608
|
+
props: Gl,
|
|
6609
6609
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove", "buttonClick"],
|
|
6610
6610
|
setup(e, t) {
|
|
6611
6611
|
const n = y(e.width || 300), a = y(e.height || 200), l = y(e.modelValue), o = y(""), i = y(e.class), f = y(e.fitContent), c = y(e.showHeader), m = y(""), g = y(e.showCloseButton), h = y(e.showMaxButton), x = y(!1), F = y(e.dialogType), S = y(e.src), T = y(""), p = y(e.showButtons), s = y(e.title), u = y(e.containment || null), k = y();
|
|
6612
6612
|
s.value === "错误提示" && (s.value = J.getLocaleValue("messageBox.errorTitle"));
|
|
6613
6613
|
const b = y(!1);
|
|
6614
6614
|
function r() {
|
|
6615
|
-
const
|
|
6616
|
-
(!
|
|
6615
|
+
const O = document.querySelectorAll(".farris-modal").length;
|
|
6616
|
+
(!O || O - 1 <= 0) && k.value === document.querySelectorAll(".farris-modal")[0] && document.body.classList.remove("modal-open"), k.value && k.value.classList.remove("show");
|
|
6617
6617
|
}
|
|
6618
|
-
function d(
|
|
6618
|
+
function d(O, H) {
|
|
6619
6619
|
const W = H ? "accept" : "cancel";
|
|
6620
6620
|
Promise.resolve().then(() => {
|
|
6621
6621
|
var q;
|
|
@@ -6623,79 +6623,79 @@ const ue = /* @__PURE__ */ U({
|
|
|
6623
6623
|
closeType: W
|
|
6624
6624
|
});
|
|
6625
6625
|
}).then((q) => {
|
|
6626
|
-
q && (l.value = !1, t.emit("update:modelValue", !1), H != null && t.emit(H ? "accept" : "cancel"), t.emit("closed",
|
|
6626
|
+
q && (l.value = !1, t.emit("update:modelValue", !1), H != null && t.emit(H ? "accept" : "cancel"), t.emit("closed", O), r());
|
|
6627
6627
|
});
|
|
6628
6628
|
}
|
|
6629
6629
|
const C = [{
|
|
6630
6630
|
name: "cancel",
|
|
6631
6631
|
text: J.getLocaleValue("messageBox.cancel") || "取消",
|
|
6632
6632
|
class: "btn btn-secondary",
|
|
6633
|
-
handle: (
|
|
6634
|
-
d(
|
|
6633
|
+
handle: (O) => {
|
|
6634
|
+
d(O, !1);
|
|
6635
6635
|
}
|
|
6636
6636
|
}, {
|
|
6637
6637
|
name: "accept",
|
|
6638
6638
|
text: J.getLocaleValue("messageBox.ok") || "确定",
|
|
6639
6639
|
class: "btn btn-primary",
|
|
6640
|
-
handle: (
|
|
6641
|
-
d(
|
|
6640
|
+
handle: (O) => {
|
|
6641
|
+
d(O, !0);
|
|
6642
6642
|
}
|
|
6643
6643
|
}], w = y(e.buttons && e.buttons.length ? e.buttons : C), j = D(() => !!m.value), V = D(() => !!p.value && !!w.value), I = y(), P = y(), M = y(e.maximized || !1), {
|
|
6644
6644
|
renderResizeBar: N,
|
|
6645
6645
|
maximize: z,
|
|
6646
6646
|
restore: Y,
|
|
6647
6647
|
boundingElement: R,
|
|
6648
|
-
resizedEventParam:
|
|
6648
|
+
resizedEventParam: B,
|
|
6649
6649
|
allowDrag: E,
|
|
6650
6650
|
unWindowResizeHandle: L,
|
|
6651
6651
|
moveToCenter: A
|
|
6652
|
-
} =
|
|
6652
|
+
} = Xl(e), {
|
|
6653
6653
|
registerDraggle: X
|
|
6654
|
-
} =
|
|
6654
|
+
} = Kl(e, t, E);
|
|
6655
6655
|
function $e() {
|
|
6656
6656
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
6657
6657
|
}
|
|
6658
|
-
$(() => e.title, (
|
|
6659
|
-
|
|
6660
|
-
}), $(() => e.modelValue, (
|
|
6661
|
-
|
|
6658
|
+
$(() => e.title, (O, H) => {
|
|
6659
|
+
O !== H && (s.value = O);
|
|
6660
|
+
}), $(() => e.modelValue, (O, H) => {
|
|
6661
|
+
O !== H && (l.value = O, l.value && e.draggable && ee(() => {
|
|
6662
6662
|
P.value && !u.value && (u.value = P.value.parentElement, R.value = u.value, X(I.value, P.value, R.value), A());
|
|
6663
|
-
}),
|
|
6664
|
-
}), $(() => e.showHeader, (
|
|
6665
|
-
|
|
6666
|
-
}), $(() => e.showButtons, (
|
|
6667
|
-
|
|
6668
|
-
}), $(() =>
|
|
6669
|
-
const W =
|
|
6663
|
+
}), O || (u.value && (u.value = null), r())), l.value ? b.value = $e() : (M.value = !1, E.value = e.draggable);
|
|
6664
|
+
}), $(() => e.showHeader, (O, H) => {
|
|
6665
|
+
O !== H && (c.value = O);
|
|
6666
|
+
}), $(() => e.showButtons, (O, H) => {
|
|
6667
|
+
O !== H && (p.value = O);
|
|
6668
|
+
}), $(() => B.value, (O, H) => {
|
|
6669
|
+
const W = O || {}, q = H || {};
|
|
6670
6670
|
JSON.stringify(W) !== JSON.stringify(q) && t.emit("resize", {
|
|
6671
|
-
newSize:
|
|
6671
|
+
newSize: O,
|
|
6672
6672
|
oldSize: H,
|
|
6673
6673
|
isMaximized: M.value
|
|
6674
6674
|
});
|
|
6675
|
-
}), $([() => e.width, () => e.height], (
|
|
6676
|
-
(
|
|
6677
|
-
}), $(() => e.class, (
|
|
6678
|
-
i.value =
|
|
6675
|
+
}), $([() => e.width, () => e.height], (O, H) => {
|
|
6676
|
+
(O[0] !== H[0] || O[1] !== H[1]) && (n.value = O[0] || 500, a.value = O[1] || 600);
|
|
6677
|
+
}), $(() => e.class, (O, H) => {
|
|
6678
|
+
i.value = O;
|
|
6679
6679
|
});
|
|
6680
|
-
const
|
|
6680
|
+
const ve = D(() => (l.value && document.body.classList.add("modal-open"), l.value)), Et = D(() => {
|
|
6681
6681
|
var W;
|
|
6682
|
-
const
|
|
6682
|
+
const O = {
|
|
6683
6683
|
modal: !0,
|
|
6684
6684
|
"farris-modal": !0,
|
|
6685
6685
|
fade: !0,
|
|
6686
6686
|
"fe-cmp-page-modal": !!e.showFloatingClose
|
|
6687
6687
|
};
|
|
6688
|
-
|
|
6688
|
+
O["f-modal-fitContent"] = !!f.value, O.show = !!ve.value;
|
|
6689
6689
|
const H = (W = e.maskClass) == null ? void 0 : W.split(" ");
|
|
6690
|
-
return H == null || H.reduce((q, ae) => (q[ae] = !0, q),
|
|
6690
|
+
return H == null || H.reduce((q, ae) => (q[ae] = !0, q), O), O;
|
|
6691
6691
|
}), Dt = D(() => {
|
|
6692
6692
|
var W;
|
|
6693
|
-
const
|
|
6693
|
+
const O = {
|
|
6694
6694
|
"modal-dialog": !0
|
|
6695
6695
|
}, H = (W = i.value) == null ? void 0 : W.split(" ");
|
|
6696
|
-
return H == null || H.reduce((q, ae) => (q[ae] = !0, q),
|
|
6697
|
-
}), Pt = () =>
|
|
6698
|
-
const
|
|
6696
|
+
return H == null || H.reduce((q, ae) => (q[ae] = !0, q), O), O;
|
|
6697
|
+
}), Pt = () => fe() && !e.isMessager || !!e.fullscreen, It = D(() => {
|
|
6698
|
+
const O = document.documentElement.clientWidth, H = document.documentElement.clientHeight;
|
|
6699
6699
|
if (M.value)
|
|
6700
6700
|
return {
|
|
6701
6701
|
position: "fixed",
|
|
@@ -6705,29 +6705,29 @@ const ue = /* @__PURE__ */ U({
|
|
|
6705
6705
|
height: "100vh",
|
|
6706
6706
|
margin: "0"
|
|
6707
6707
|
};
|
|
6708
|
-
const W = Math.min(n.value,
|
|
6708
|
+
const W = Math.min(n.value, O), q = e.position === "right" ? "100%" : f.value ? "auto" : `${Math.min(a.value, H - 10)}px`, ae = `${(window.innerHeight - (q === "100%" || q === "auto" ? 0 : parseInt(q))) / 2}px`, Zt = e.position === "right" ? `${window.innerWidth - W}px` : `${(window.innerWidth - W) / 2}px`, qe = {
|
|
6709
6709
|
position: "absolute",
|
|
6710
6710
|
top: ae,
|
|
6711
6711
|
left: Zt,
|
|
6712
|
-
width:
|
|
6712
|
+
width: fe() ? "auto" : `${W}px`,
|
|
6713
6713
|
height: q
|
|
6714
6714
|
};
|
|
6715
6715
|
return e.mask || (qe.pointerEvents = "auto"), qe;
|
|
6716
6716
|
}), We = y(Ue() || 1050), Nt = D(() => {
|
|
6717
|
-
const
|
|
6717
|
+
const O = {
|
|
6718
6718
|
display: "block",
|
|
6719
6719
|
overflow: "hidden"
|
|
6720
6720
|
};
|
|
6721
|
-
return e.mask || (
|
|
6721
|
+
return e.mask || (O.pointerEvents = "none", O.backgroundColor = "transparent"), b.value && (O.backgroundColor = "transparent"), O.zIndex = We.value, O;
|
|
6722
6722
|
}), jt = D(() => ({
|
|
6723
6723
|
"modal-content": !0,
|
|
6724
6724
|
"modal-content-has-header": c.value,
|
|
6725
6725
|
"is-mobile": Pt()
|
|
6726
6726
|
})), Rt = D(() => {
|
|
6727
|
-
const
|
|
6727
|
+
const O = {
|
|
6728
6728
|
display: c.value ? "" : "none"
|
|
6729
6729
|
};
|
|
6730
|
-
return
|
|
6730
|
+
return O["pointer-events"] = E.value ? "auto" : "none", O;
|
|
6731
6731
|
}), Vt = D(() => ({
|
|
6732
6732
|
"f-icon": !0,
|
|
6733
6733
|
modal_maximize: !0,
|
|
@@ -6743,32 +6743,32 @@ const ue = /* @__PURE__ */ U({
|
|
|
6743
6743
|
};
|
|
6744
6744
|
}
|
|
6745
6745
|
const zt = D(() => {
|
|
6746
|
-
const
|
|
6746
|
+
const O = {
|
|
6747
6747
|
textAlgin: T.value
|
|
6748
6748
|
}, H = Ht();
|
|
6749
|
-
return Object.assign(
|
|
6749
|
+
return Object.assign(O, H);
|
|
6750
6750
|
});
|
|
6751
|
-
function Me(
|
|
6752
|
-
if (
|
|
6751
|
+
function Me(O) {
|
|
6752
|
+
if (O == null || O.stopPropagation(), M.value) {
|
|
6753
6753
|
M.value = !1, Y();
|
|
6754
6754
|
return;
|
|
6755
6755
|
}
|
|
6756
6756
|
z(), M.value = !0;
|
|
6757
6757
|
}
|
|
6758
|
-
async function At(
|
|
6759
|
-
|
|
6760
|
-
button:
|
|
6758
|
+
async function At(O, H) {
|
|
6759
|
+
O.handle ? await O.handle(H, O) && t.emit("closed", H) : t.emit("buttonClick", {
|
|
6760
|
+
button: O,
|
|
6761
6761
|
$event: H
|
|
6762
6762
|
});
|
|
6763
6763
|
}
|
|
6764
|
-
function $t(
|
|
6765
|
-
|
|
6764
|
+
function $t(O) {
|
|
6765
|
+
O.width && (n.value = O.width), O.height && (a.value = O.height), O.buttons && (w.value = O.buttons), O.title && (s.value = O.title);
|
|
6766
6766
|
}
|
|
6767
6767
|
let Oe = null, Be = null;
|
|
6768
6768
|
nn(() => {
|
|
6769
6769
|
b.value = $e();
|
|
6770
6770
|
}), K(() => {
|
|
6771
|
-
P.value && !u.value && (u.value = P.value.parentElement, R.value = u.value, X(I.value, P.value, R.value)),
|
|
6771
|
+
P.value && !u.value && (u.value = P.value.parentElement, R.value = u.value, X(I.value, P.value, R.value)), ve.value && document.body.classList.add("modal-open"), Oe = _l(e, t), Be = Jl(e, t);
|
|
6772
6772
|
}), xe(() => {
|
|
6773
6773
|
L && L(), Oe && Oe.remove(), Be && Be.remove();
|
|
6774
6774
|
}), t.expose({
|
|
@@ -6777,16 +6777,16 @@ const ue = /* @__PURE__ */ U({
|
|
|
6777
6777
|
close: d,
|
|
6778
6778
|
maxDialog: Me,
|
|
6779
6779
|
isMaximized: M,
|
|
6780
|
-
disableButtons: (
|
|
6780
|
+
disableButtons: (O, H = !0) => {
|
|
6781
6781
|
w.value.forEach((W) => {
|
|
6782
|
-
W.name &&
|
|
6782
|
+
W.name && O.includes(W.name) && (W.disabled = H);
|
|
6783
6783
|
});
|
|
6784
6784
|
}
|
|
6785
6785
|
});
|
|
6786
6786
|
function Wt() {
|
|
6787
6787
|
return v("div", {
|
|
6788
6788
|
class: "action-wrapper",
|
|
6789
|
-
onClick: (
|
|
6789
|
+
onClick: (O) => d(O, !1)
|
|
6790
6790
|
}, [v("span", {
|
|
6791
6791
|
class: "close-icon"
|
|
6792
6792
|
}, [v("i", {
|
|
@@ -6806,15 +6806,15 @@ const ue = /* @__PURE__ */ U({
|
|
|
6806
6806
|
class: Vt.value
|
|
6807
6807
|
}, null)]), g.value && v("li", {
|
|
6808
6808
|
class: "f-btn-icon f-bare",
|
|
6809
|
-
onClick: (
|
|
6809
|
+
onClick: (O) => d(O, !1),
|
|
6810
6810
|
style: "pointer-events: auto;"
|
|
6811
6811
|
}, [v("span", {
|
|
6812
6812
|
class: "f-icon modal_close"
|
|
6813
6813
|
}, null)])]);
|
|
6814
6814
|
}
|
|
6815
|
-
const qt = (
|
|
6816
|
-
|
|
6817
|
-
const H =
|
|
6815
|
+
const qt = (O) => {
|
|
6816
|
+
O.preventDefault();
|
|
6817
|
+
const H = O.currentTarget, W = O.deltaY * 0.5;
|
|
6818
6818
|
H.scrollLeft += W;
|
|
6819
6819
|
};
|
|
6820
6820
|
function Ut() {
|
|
@@ -6824,36 +6824,36 @@ const ue = /* @__PURE__ */ U({
|
|
|
6824
6824
|
}, [w.value && v("div", {
|
|
6825
6825
|
class: "buttons",
|
|
6826
6826
|
onWheel: qt
|
|
6827
|
-
}, [w.value.map((
|
|
6827
|
+
}, [w.value.map((O) => {
|
|
6828
6828
|
var q;
|
|
6829
|
-
const H = y(
|
|
6830
|
-
return v("button", {
|
|
6831
|
-
name:
|
|
6832
|
-
style:
|
|
6829
|
+
const H = y(O.disabled), W = O.class || ((q = O.appearance) == null ? void 0 : q.class) || "btn btn-secondary";
|
|
6830
|
+
return v("button", de(gn(O), {
|
|
6831
|
+
name: O.name,
|
|
6832
|
+
style: O.styles,
|
|
6833
6833
|
type: "button",
|
|
6834
6834
|
disabled: H.value,
|
|
6835
|
-
class: W + (
|
|
6835
|
+
class: W + (O.iconClass ? " btn-icontext" : "") + (O.visible === !1 ? "d-none" : ""),
|
|
6836
6836
|
onClick: (ae) => {
|
|
6837
|
-
At(
|
|
6837
|
+
At(O, ae);
|
|
6838
6838
|
}
|
|
6839
|
-
}, [!!
|
|
6840
|
-
class:
|
|
6841
|
-
}, null),
|
|
6839
|
+
}), [!!O.iconClass && v("i", {
|
|
6840
|
+
class: O.iconClass
|
|
6841
|
+
}, null), O.text]);
|
|
6842
6842
|
})])]);
|
|
6843
6843
|
}
|
|
6844
|
-
function Ye(
|
|
6844
|
+
function Ye(O) {
|
|
6845
6845
|
h.value && Me();
|
|
6846
6846
|
}
|
|
6847
6847
|
function Gt() {
|
|
6848
6848
|
return v(oe, null, [M.value && v("div", {
|
|
6849
6849
|
class: "modal-header",
|
|
6850
6850
|
style: "position: absolute;background: transparent;height: 45px;width: 100%;",
|
|
6851
|
-
onDblclick: (
|
|
6851
|
+
onDblclick: (O) => Ye()
|
|
6852
6852
|
}, null), v("div", {
|
|
6853
6853
|
ref: I,
|
|
6854
6854
|
class: "modal-header",
|
|
6855
6855
|
style: Rt.value,
|
|
6856
|
-
onDblclick: (
|
|
6856
|
+
onDblclick: (O) => Ye()
|
|
6857
6857
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
|
|
6858
6858
|
class: "modal-title"
|
|
6859
6859
|
}, [j.value && v("span", {
|
|
@@ -6868,15 +6868,15 @@ const ue = /* @__PURE__ */ U({
|
|
|
6868
6868
|
function Xt() {
|
|
6869
6869
|
return t.slots.footerTemplate ? t.slots.footerTemplate() : V.value && Ut();
|
|
6870
6870
|
}
|
|
6871
|
-
function Kt(
|
|
6872
|
-
if (
|
|
6873
|
-
if (
|
|
6871
|
+
function Kt(O) {
|
|
6872
|
+
if (O.stopPropagation(), e.allowClickMaskToClose) {
|
|
6873
|
+
if (O.target !== k.value)
|
|
6874
6874
|
return;
|
|
6875
|
-
d(
|
|
6875
|
+
d(O, !1);
|
|
6876
6876
|
}
|
|
6877
6877
|
}
|
|
6878
6878
|
function _t() {
|
|
6879
|
-
var
|
|
6879
|
+
var O, H;
|
|
6880
6880
|
return v("div", {
|
|
6881
6881
|
id: o.value,
|
|
6882
6882
|
class: Dt.value,
|
|
@@ -6886,7 +6886,7 @@ const ue = /* @__PURE__ */ U({
|
|
|
6886
6886
|
class: jt.value
|
|
6887
6887
|
}, [c.value && Gt(), v("div", {
|
|
6888
6888
|
class: Lt.value
|
|
6889
|
-
}, [(H = (
|
|
6889
|
+
}, [(H = (O = t.slots).default) == null ? void 0 : H.call(O), F.value === "iframe" && v("iframe", {
|
|
6890
6890
|
title: o.value,
|
|
6891
6891
|
class: "f-utils-fill",
|
|
6892
6892
|
width: "100%",
|
|
@@ -6894,15 +6894,15 @@ const ue = /* @__PURE__ */ U({
|
|
|
6894
6894
|
src: S.value
|
|
6895
6895
|
}, null)]), Xt()]), !f.value && P.value && !M.value && N(P.value)]);
|
|
6896
6896
|
}
|
|
6897
|
-
function Jt(
|
|
6898
|
-
return
|
|
6897
|
+
function Jt(O) {
|
|
6898
|
+
return O || "body";
|
|
6899
6899
|
}
|
|
6900
6900
|
return an(() => {
|
|
6901
|
-
|
|
6901
|
+
ve.value && (We.value = Ue() || 1050);
|
|
6902
6902
|
}), () => v(lt, {
|
|
6903
6903
|
to: Jt(e.host)
|
|
6904
6904
|
}, {
|
|
6905
|
-
default: () => [
|
|
6905
|
+
default: () => [ve.value && v(it, {
|
|
6906
6906
|
name: "fade",
|
|
6907
6907
|
appear: !0
|
|
6908
6908
|
}, {
|
|
@@ -6922,7 +6922,7 @@ function St(e) {
|
|
|
6922
6922
|
if (e.render && typeof e.render == "function")
|
|
6923
6923
|
return e.render;
|
|
6924
6924
|
}
|
|
6925
|
-
function
|
|
6925
|
+
function Zl(e) {
|
|
6926
6926
|
const t = document.createElement("div");
|
|
6927
6927
|
t.style.display = "contents";
|
|
6928
6928
|
const n = e.type || "modal", a = Ve({
|
|
@@ -6992,7 +6992,7 @@ function Jl(e) {
|
|
|
6992
6992
|
});
|
|
6993
6993
|
return document.body.appendChild(t), a.use(J.i18n), a.mount(t), a;
|
|
6994
6994
|
}
|
|
6995
|
-
class
|
|
6995
|
+
class Ql {
|
|
6996
6996
|
// private activeModalInstance = computed(() => {
|
|
6997
6997
|
// return this.modalRefs[this.activeModalIndex.value];
|
|
6998
6998
|
// });
|
|
@@ -7026,7 +7026,7 @@ class Zl {
|
|
|
7026
7026
|
showButtons: !0,
|
|
7027
7027
|
showHeader: !0
|
|
7028
7028
|
}, t);
|
|
7029
|
-
return
|
|
7029
|
+
return Zl(n);
|
|
7030
7030
|
}
|
|
7031
7031
|
close(t) {
|
|
7032
7032
|
var n, a;
|
|
@@ -7060,7 +7060,7 @@ class Zl {
|
|
|
7060
7060
|
}, x = y();
|
|
7061
7061
|
let F;
|
|
7062
7062
|
if (a === "drawer")
|
|
7063
|
-
F = () => v(He,
|
|
7063
|
+
F = () => v(He, de({
|
|
7064
7064
|
ref: x,
|
|
7065
7065
|
modelValue: o.value,
|
|
7066
7066
|
"onUpdate:modelValue": (s) => o.value = s,
|
|
@@ -7082,7 +7082,7 @@ class Zl {
|
|
|
7082
7082
|
width: d,
|
|
7083
7083
|
height: C
|
|
7084
7084
|
} = l.value, w = this.adaptToWindow(Number(d) || 500, Number(C) || 320);
|
|
7085
|
-
Object.assign(l.value, w), F = () => v(ue,
|
|
7085
|
+
Object.assign(l.value, w), F = () => v(ue, de({
|
|
7086
7086
|
ref: x,
|
|
7087
7087
|
modelValue: o.value,
|
|
7088
7088
|
"onUpdate:modelValue": (j) => o.value = j
|
|
@@ -7135,7 +7135,7 @@ class Zl {
|
|
|
7135
7135
|
const Tt = Symbol("FModalService");
|
|
7136
7136
|
ue.install = (e) => {
|
|
7137
7137
|
e.component(ue.name, ue);
|
|
7138
|
-
const t = new
|
|
7138
|
+
const t = new Ql(e);
|
|
7139
7139
|
e.provide(Tt, t), e.provide("FModalService", t);
|
|
7140
7140
|
};
|
|
7141
7141
|
function Mt(e, t) {
|
|
@@ -7152,7 +7152,7 @@ function Mt(e, t) {
|
|
|
7152
7152
|
}
|
|
7153
7153
|
return { judgeCanOpen: n };
|
|
7154
7154
|
}
|
|
7155
|
-
function
|
|
7155
|
+
function ei(e, t, n, a, l) {
|
|
7156
7156
|
const o = y(e.buttonBehavior), i = y(e.popupOnInput), f = D(() => ({
|
|
7157
7157
|
"input-group-append": !0,
|
|
7158
7158
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
@@ -7167,7 +7167,7 @@ function Ql(e, t, n, a, l) {
|
|
|
7167
7167
|
});
|
|
7168
7168
|
h.value = u == null ? void 0 : u.modalRef;
|
|
7169
7169
|
}
|
|
7170
|
-
o.value === "Overlay" &&
|
|
7170
|
+
o.value === "Overlay" && Ul.show({
|
|
7171
7171
|
// host: buttonEditRef.value,
|
|
7172
7172
|
host: document.body,
|
|
7173
7173
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
@@ -7189,8 +7189,8 @@ function Ql(e, t, n, a, l) {
|
|
|
7189
7189
|
modalRef: h
|
|
7190
7190
|
};
|
|
7191
7191
|
}
|
|
7192
|
-
function
|
|
7193
|
-
const i = y(!1), f = D(() => e.enableClear && !e.readonly && !e.disable && !
|
|
7192
|
+
function ti(e, t, n, a, l, o) {
|
|
7193
|
+
const i = y(!1), f = D(() => e.enableClear && !e.readonly && !e.disable && !fe()), { changeTextBoxValue: c, hasClearClass: m } = o, g = y(!1);
|
|
7194
7194
|
function h(p) {
|
|
7195
7195
|
i.value = p, m.value = p;
|
|
7196
7196
|
}
|
|
@@ -7222,8 +7222,8 @@ function ei(e, t, n, a, l, o) {
|
|
|
7222
7222
|
onMouseLeaveTextBox: T
|
|
7223
7223
|
};
|
|
7224
7224
|
}
|
|
7225
|
-
function
|
|
7226
|
-
const o = D(() => e.popupOnInput), i = D(() => e.popupOnFocus), { shouldPopupContent: f, closeAllPopover: c } = l, m = y(!1), g = D(() => e.enableTitle ? n.value : ""), h = D(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), x = D(() => e.readonly || !e.editable ||
|
|
7225
|
+
function ni(e, t, n, a, l) {
|
|
7226
|
+
const o = D(() => e.popupOnInput), i = D(() => e.popupOnFocus), { shouldPopupContent: f, closeAllPopover: c } = l, m = y(!1), g = D(() => e.enableTitle ? n.value : ""), h = D(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), x = D(() => e.readonly || !e.editable || fe()), F = y(!1), S = D(() => !e.disable && F.value), T = D(() => ({
|
|
7227
7227
|
"text-left": e.textAlign === "left",
|
|
7228
7228
|
"text-center": e.textAlign === "center",
|
|
7229
7229
|
"text-right": e.textAlign === "right",
|
|
@@ -7297,7 +7297,7 @@ function ti(e, t, n, a, l) {
|
|
|
7297
7297
|
};
|
|
7298
7298
|
}
|
|
7299
7299
|
const le = "FarrisVue_PopoverInstancesKey";
|
|
7300
|
-
function
|
|
7300
|
+
function ai(e, t, n, a) {
|
|
7301
7301
|
const l = y(), o = y(!1), { judgeCanOpen: i } = Mt(e, a);
|
|
7302
7302
|
$(() => l.value, (F, S) => {
|
|
7303
7303
|
window[le] = window[le] || /* @__PURE__ */ new WeakMap(), F ? window[le].set(n.value, F) : window[le].delete(n.value);
|
|
@@ -7339,7 +7339,7 @@ function ni(e, t, n, a) {
|
|
|
7339
7339
|
}
|
|
7340
7340
|
return { hidePopup: h, showPopup: x, popup: g, shouldPopupContent: o, togglePopup: m, popoverRef: l, closeAllPopover: f };
|
|
7341
7341
|
}
|
|
7342
|
-
function
|
|
7342
|
+
function li(e, t, n) {
|
|
7343
7343
|
const a = y(), {
|
|
7344
7344
|
isTextBoxReadonly: l,
|
|
7345
7345
|
textBoxClass: o,
|
|
@@ -7355,7 +7355,7 @@ function ai(e, t, n) {
|
|
|
7355
7355
|
onTextBoxValueChange: T
|
|
7356
7356
|
} = n, p = y(e.id), {
|
|
7357
7357
|
uuid: s
|
|
7358
|
-
} =
|
|
7358
|
+
} = bn(), u = D(() => ({
|
|
7359
7359
|
// 'border-top-right-radius': '6px',
|
|
7360
7360
|
// 'border-bottom-right-radius': '6px'
|
|
7361
7361
|
}));
|
|
@@ -7401,7 +7401,7 @@ function ai(e, t, n) {
|
|
|
7401
7401
|
onCompositionstart: b
|
|
7402
7402
|
}, null);
|
|
7403
7403
|
}
|
|
7404
|
-
function
|
|
7404
|
+
function ii(e, t, n) {
|
|
7405
7405
|
const a = y(e.separator), l = D(() => e.readonly || e.disable), {
|
|
7406
7406
|
changeTextBoxValue: o,
|
|
7407
7407
|
onFocusTextBox: i,
|
|
@@ -7425,7 +7425,7 @@ function li(e, t, n) {
|
|
|
7425
7425
|
function F(S) {
|
|
7426
7426
|
c(S);
|
|
7427
7427
|
}
|
|
7428
|
-
return () => v(
|
|
7428
|
+
return () => v(Mn, {
|
|
7429
7429
|
tabindex: e.tabIndex,
|
|
7430
7430
|
onFocus: i,
|
|
7431
7431
|
onBlur: f,
|
|
@@ -7440,7 +7440,7 @@ function li(e, t, n) {
|
|
|
7440
7440
|
onClick: F
|
|
7441
7441
|
}, null);
|
|
7442
7442
|
}
|
|
7443
|
-
function
|
|
7443
|
+
function oi(e, t, n, a) {
|
|
7444
7444
|
const {
|
|
7445
7445
|
buttonGroupClass: l,
|
|
7446
7446
|
onClickButton: o,
|
|
@@ -7456,7 +7456,7 @@ function ii(e, t, n, a) {
|
|
|
7456
7456
|
t.emit("beforeClearValue");
|
|
7457
7457
|
}, {
|
|
7458
7458
|
renderExpandContent: S
|
|
7459
|
-
} =
|
|
7459
|
+
} = On(e, t);
|
|
7460
7460
|
return {
|
|
7461
7461
|
renderButtonGroup: () => v(oe, null, [v("div", {
|
|
7462
7462
|
id: e.id ? `${e.id}-button-group` : void 0,
|
|
@@ -7483,7 +7483,7 @@ function ii(e, t, n, a) {
|
|
|
7483
7483
|
buttonHandleElement: h
|
|
7484
7484
|
};
|
|
7485
7485
|
}
|
|
7486
|
-
function
|
|
7486
|
+
function si(e, t, n) {
|
|
7487
7487
|
const a = y(e.popupMinWidth), {
|
|
7488
7488
|
hidePopup: l,
|
|
7489
7489
|
popoverRef: o
|
|
@@ -7492,7 +7492,7 @@ function oi(e, t, n) {
|
|
|
7492
7492
|
}, f = () => {
|
|
7493
7493
|
l(), t.emit("hidden");
|
|
7494
7494
|
};
|
|
7495
|
-
return () =>
|
|
7495
|
+
return () => fe() ? v(He, {
|
|
7496
7496
|
id: `${e.id}-drawer`,
|
|
7497
7497
|
ref: o,
|
|
7498
7498
|
position: e.placement,
|
|
@@ -7508,7 +7508,7 @@ function oi(e, t, n) {
|
|
|
7508
7508
|
var c, m;
|
|
7509
7509
|
return [se(" "), (m = (c = t.slots).default) == null ? void 0 : m.call(c), se(" ")];
|
|
7510
7510
|
}
|
|
7511
|
-
}) : v(
|
|
7511
|
+
}) : v(Bn, {
|
|
7512
7512
|
id: `${e.id}-popover`,
|
|
7513
7513
|
ref: o,
|
|
7514
7514
|
placement: e.placement,
|
|
@@ -7531,31 +7531,31 @@ function oi(e, t, n) {
|
|
|
7531
7531
|
}
|
|
7532
7532
|
});
|
|
7533
7533
|
}
|
|
7534
|
-
const
|
|
7534
|
+
const ri = /* @__PURE__ */ U({
|
|
7535
7535
|
name: "FButtonEdit",
|
|
7536
|
-
props:
|
|
7536
|
+
props: zl,
|
|
7537
7537
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue", "expandClick", "hidden", "shown"],
|
|
7538
7538
|
setup(e, t) {
|
|
7539
|
-
const n = y(), a = y(e.customClass), l = y(e.modelValue), o =
|
|
7539
|
+
const n = y(), a = y(e.customClass), l = y(e.modelValue), o = ai(e, t, n, l), {
|
|
7540
7540
|
shouldPopupContent: i,
|
|
7541
7541
|
hidePopup: f,
|
|
7542
7542
|
showPopup: c,
|
|
7543
7543
|
togglePopup: m
|
|
7544
|
-
} = o, g =
|
|
7544
|
+
} = o, g = ei(e, t, n, o, l), h = y(""), x = ni(e, t, l, h, o), {
|
|
7545
7545
|
hasFocusedTextBox: F,
|
|
7546
7546
|
commitValue: S,
|
|
7547
7547
|
inputGroupClass: T,
|
|
7548
7548
|
changeTextBoxValue: p
|
|
7549
|
-
} = x, s =
|
|
7549
|
+
} = x, s = ti(e, t, l, F, h, x), {
|
|
7550
7550
|
onMouseEnterTextBox: u,
|
|
7551
7551
|
onMouseLeaveTextBox: k
|
|
7552
7552
|
} = s, b = y(!1), r = D(() => {
|
|
7553
|
-
const
|
|
7553
|
+
const B = {
|
|
7554
7554
|
"f-button-edit": !0,
|
|
7555
7555
|
"f-cmp-inputgroup": !0,
|
|
7556
7556
|
"f-button-edit-nowrap": !e.wrapText
|
|
7557
7557
|
};
|
|
7558
|
-
return a.value && a.value.split(" ").reduce((E, L) => (E[L] = !0, E),
|
|
7558
|
+
return a.value && a.value.split(" ").reduce((E, L) => (E[L] = !0, E), B), B;
|
|
7559
7559
|
}), d = D(() => ({
|
|
7560
7560
|
overflow: e.wrapText ? "hidden" : ""
|
|
7561
7561
|
})), C = D(() => ({
|
|
@@ -7565,21 +7565,21 @@ const si = /* @__PURE__ */ U({
|
|
|
7565
7565
|
function j() {
|
|
7566
7566
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
7567
7567
|
return 0;
|
|
7568
|
-
let
|
|
7568
|
+
let B = 0;
|
|
7569
7569
|
const E = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
7570
|
-
return E && E.length && (
|
|
7570
|
+
return E && E.length && (B = E.map((L) => L.offsetTop).filter((L) => L > 20).length), B;
|
|
7571
7571
|
}
|
|
7572
7572
|
const V = y(j());
|
|
7573
7573
|
un(() => {
|
|
7574
7574
|
V.value = j();
|
|
7575
7575
|
});
|
|
7576
7576
|
function I() {
|
|
7577
|
-
return e.multiSelect && e.inputType === "tag" ? () => v(oe, null, [
|
|
7577
|
+
return e.multiSelect && e.inputType === "tag" ? () => v(oe, null, [ii(e, l, x)(), !!V.value && v("div", {
|
|
7578
7578
|
class: "d-flex flex-row mr-2 more-tags",
|
|
7579
7579
|
"more-tags": !0
|
|
7580
7580
|
}, [v("span", {
|
|
7581
7581
|
class: "multi--more-text"
|
|
7582
|
-
}, [se("+"), V.value])])]) :
|
|
7582
|
+
}, [se("+"), V.value])])]) : li(e, l, x);
|
|
7583
7583
|
}
|
|
7584
7584
|
let P = I();
|
|
7585
7585
|
$([() => e.multiSelect, () => e.inputType], () => {
|
|
@@ -7588,7 +7588,7 @@ const si = /* @__PURE__ */ U({
|
|
|
7588
7588
|
const {
|
|
7589
7589
|
renderButtonGroup: M,
|
|
7590
7590
|
buttonHandleElement: N
|
|
7591
|
-
} =
|
|
7591
|
+
} = oi(e, t, g, s), z = si(e, t, o), Y = y(i.value), R = {
|
|
7592
7592
|
displayText: h,
|
|
7593
7593
|
commitValue: S,
|
|
7594
7594
|
elementRef: n,
|
|
@@ -7603,12 +7603,12 @@ const si = /* @__PURE__ */ U({
|
|
|
7603
7603
|
}, e.buttonBehavior === "Modal" ? 0 : 200)();
|
|
7604
7604
|
},
|
|
7605
7605
|
getModal: () => {
|
|
7606
|
-
var
|
|
7607
|
-
return e.buttonBehavior === "Modal" ? (
|
|
7606
|
+
var B;
|
|
7607
|
+
return e.buttonBehavior === "Modal" ? (B = g.modalRef.value) == null ? void 0 : B.value : null;
|
|
7608
7608
|
},
|
|
7609
7609
|
getTextbox: () => {
|
|
7610
|
-
var
|
|
7611
|
-
return (
|
|
7610
|
+
var B;
|
|
7611
|
+
return (B = n.value) == null ? void 0 : B.querySelector("input");
|
|
7612
7612
|
},
|
|
7613
7613
|
forceClosePopup: () => {
|
|
7614
7614
|
Y.value = !1, b.value = !0, i.value = !1;
|
|
@@ -7616,8 +7616,8 @@ const si = /* @__PURE__ */ U({
|
|
|
7616
7616
|
clear: () => {
|
|
7617
7617
|
p(""), h.value = "";
|
|
7618
7618
|
},
|
|
7619
|
-
setText: (
|
|
7620
|
-
p(
|
|
7619
|
+
setText: (B) => {
|
|
7620
|
+
p(B, !1), h.value = B;
|
|
7621
7621
|
}
|
|
7622
7622
|
};
|
|
7623
7623
|
return K(() => {
|
|
@@ -7625,14 +7625,14 @@ const si = /* @__PURE__ */ U({
|
|
|
7625
7625
|
document.body.click();
|
|
7626
7626
|
};
|
|
7627
7627
|
}), nt(() => {
|
|
7628
|
-
var
|
|
7629
|
-
window.onresize = null, (
|
|
7630
|
-
}), t.expose(R), $(() => i.value, async (
|
|
7628
|
+
var B;
|
|
7629
|
+
window.onresize = null, (B = window[le]) == null || B.delete(n.value);
|
|
7630
|
+
}), t.expose(R), $(() => i.value, async (B, E) => {
|
|
7631
7631
|
if (b.value) {
|
|
7632
|
-
Y.value =
|
|
7632
|
+
Y.value = B, b.value = !1;
|
|
7633
7633
|
return;
|
|
7634
7634
|
}
|
|
7635
|
-
if (!
|
|
7635
|
+
if (!B && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
|
|
7636
7636
|
try {
|
|
7637
7637
|
const L = await e.beforeClosePopup();
|
|
7638
7638
|
Y.value = !L, (!L || e.readonly) && (i.value = !0);
|
|
@@ -7641,10 +7641,10 @@ const si = /* @__PURE__ */ U({
|
|
|
7641
7641
|
}
|
|
7642
7642
|
return;
|
|
7643
7643
|
}
|
|
7644
|
-
Y.value =
|
|
7644
|
+
Y.value = B;
|
|
7645
7645
|
}), () => {
|
|
7646
|
-
var
|
|
7647
|
-
return v(oe, null, [v("div",
|
|
7646
|
+
var B, E;
|
|
7647
|
+
return v(oe, null, [v("div", de(t.attrs, {
|
|
7648
7648
|
ref: n,
|
|
7649
7649
|
class: r.value,
|
|
7650
7650
|
id: e.id ? e.id : void 0,
|
|
@@ -7655,10 +7655,10 @@ const si = /* @__PURE__ */ U({
|
|
|
7655
7655
|
style: C.value,
|
|
7656
7656
|
onMouseenter: u,
|
|
7657
7657
|
onMouseleave: k
|
|
7658
|
-
}, [(E = (
|
|
7658
|
+
}, [(E = (B = t.slots).precontent) == null ? void 0 : E.call(B), t.slots.content ? t.slots.content() : P(), t.slots.content ? null : w.value && M()])]), Y.value && z()]);
|
|
7659
7659
|
};
|
|
7660
7660
|
}
|
|
7661
|
-
}),
|
|
7661
|
+
}), ui = "https://json-schema.org/draft/2020-12/schema", ci = "https://farris-design.gitee.io/expression-editor.schema.json", di = "expression-editor", fi = "A Farris Expression Editor Component", mi = "object", yi = {
|
|
7662
7662
|
id: {
|
|
7663
7663
|
description: "The unique identifier for a Expression Editor",
|
|
7664
7664
|
type: "string"
|
|
@@ -7755,17 +7755,17 @@ const si = /* @__PURE__ */ U({
|
|
|
7755
7755
|
type: "boolean",
|
|
7756
7756
|
default: !0
|
|
7757
7757
|
}
|
|
7758
|
-
},
|
|
7758
|
+
}, pi = [
|
|
7759
7759
|
"id",
|
|
7760
7760
|
"type"
|
|
7761
|
-
],
|
|
7762
|
-
$schema:
|
|
7763
|
-
$id:
|
|
7764
|
-
title:
|
|
7765
|
-
description:
|
|
7766
|
-
type:
|
|
7767
|
-
properties:
|
|
7768
|
-
required:
|
|
7761
|
+
], vi = {
|
|
7762
|
+
$schema: ui,
|
|
7763
|
+
$id: ci,
|
|
7764
|
+
title: di,
|
|
7765
|
+
description: fi,
|
|
7766
|
+
type: mi,
|
|
7767
|
+
properties: yi,
|
|
7768
|
+
required: pi
|
|
7769
7769
|
}, Ot = {
|
|
7770
7770
|
disabled: {
|
|
7771
7771
|
type: Boolean,
|
|
@@ -7863,7 +7863,7 @@ const si = /* @__PURE__ */ U({
|
|
|
7863
7863
|
type: Boolean,
|
|
7864
7864
|
default: !1
|
|
7865
7865
|
}
|
|
7866
|
-
},
|
|
7866
|
+
}, hi = we(Ot, vi), gi = {
|
|
7867
7867
|
showCloseButton: { type: Boolean, default: !0 },
|
|
7868
7868
|
position: { type: String, default: "top-center" },
|
|
7869
7869
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -7876,13 +7876,13 @@ const si = /* @__PURE__ */ U({
|
|
|
7876
7876
|
animate: { type: String, default: "fadeIn" },
|
|
7877
7877
|
options: { type: Object },
|
|
7878
7878
|
safeHtml: { type: Boolean, default: !0 }
|
|
7879
|
-
},
|
|
7879
|
+
}, bi = {
|
|
7880
7880
|
showCloseButton: { type: Boolean, default: !0 },
|
|
7881
7881
|
animate: { type: String, default: "fadeIn" },
|
|
7882
7882
|
options: { type: Object }
|
|
7883
7883
|
}, Re = /* @__PURE__ */ U({
|
|
7884
7884
|
name: "Toast",
|
|
7885
|
-
props:
|
|
7885
|
+
props: bi,
|
|
7886
7886
|
emits: ["close", "click"],
|
|
7887
7887
|
setup: (e, t) => {
|
|
7888
7888
|
const n = y(e.animate), a = "fadeOut", l = D(() => e.options), o = y(!1), i = D(() => l.value.title && l.value.message), f = D(() => !l.value.title && l.value.message), c = D(() => {
|
|
@@ -7961,9 +7961,9 @@ const si = /* @__PURE__ */ U({
|
|
|
7961
7961
|
innerHTML: l.value.message
|
|
7962
7962
|
}, null))])])]);
|
|
7963
7963
|
}
|
|
7964
|
-
}),
|
|
7964
|
+
}), be = /* @__PURE__ */ U({
|
|
7965
7965
|
name: "Notify",
|
|
7966
|
-
props:
|
|
7966
|
+
props: gi,
|
|
7967
7967
|
emits: ["close", "empty"],
|
|
7968
7968
|
setup(e, t) {
|
|
7969
7969
|
var T;
|
|
@@ -8016,7 +8016,7 @@ const si = /* @__PURE__ */ U({
|
|
|
8016
8016
|
};
|
|
8017
8017
|
}
|
|
8018
8018
|
});
|
|
8019
|
-
class
|
|
8019
|
+
class Ci {
|
|
8020
8020
|
constructor() {
|
|
8021
8021
|
Q(this, "notifyRefs", []);
|
|
8022
8022
|
Q(this, "globalConfig", ce({}));
|
|
@@ -8062,7 +8062,7 @@ class bi {
|
|
|
8062
8062
|
name: "fade",
|
|
8063
8063
|
appear: !0
|
|
8064
8064
|
}, {
|
|
8065
|
-
default: () => [v(
|
|
8065
|
+
default: () => [v(be, de({
|
|
8066
8066
|
ref: f
|
|
8067
8067
|
}, l, {
|
|
8068
8068
|
onClose: c
|
|
@@ -8136,9 +8136,9 @@ class bi {
|
|
|
8136
8136
|
}
|
|
8137
8137
|
}
|
|
8138
8138
|
const Bt = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
8139
|
-
|
|
8140
|
-
e.component(
|
|
8141
|
-
const t = new
|
|
8139
|
+
be.install = (e) => {
|
|
8140
|
+
e.component(be.name, be), e.component(Re.name, Re);
|
|
8141
|
+
const t = new Ci();
|
|
8142
8142
|
e.provide(Bt, t), e.provide("FNotifyService", t);
|
|
8143
8143
|
};
|
|
8144
8144
|
const Ne = /* @__PURE__ */ U({
|
|
@@ -8241,7 +8241,7 @@ const Ne = /* @__PURE__ */ U({
|
|
|
8241
8241
|
}
|
|
8242
8242
|
return $(() => e.modelValue, (T) => {
|
|
8243
8243
|
o.value = T;
|
|
8244
|
-
}), () => v(
|
|
8244
|
+
}), () => v(ri, {
|
|
8245
8245
|
editable: !1,
|
|
8246
8246
|
enableTitle: !0,
|
|
8247
8247
|
modelValue: o.value,
|
|
@@ -8258,7 +8258,7 @@ const Ne = /* @__PURE__ */ U({
|
|
|
8258
8258
|
}, {
|
|
8259
8259
|
default: () => [v("div", {
|
|
8260
8260
|
class: "h-100 d-flex flex-column"
|
|
8261
|
-
}, [v(
|
|
8261
|
+
}, [v(Hl, {
|
|
8262
8262
|
ref: c,
|
|
8263
8263
|
validateMessage: m.value,
|
|
8264
8264
|
showMessageType: e.showMessageType,
|
|
@@ -8276,18 +8276,18 @@ const Ne = /* @__PURE__ */ U({
|
|
|
8276
8276
|
}, null)])]
|
|
8277
8277
|
});
|
|
8278
8278
|
}
|
|
8279
|
-
}),
|
|
8279
|
+
}), Ai = {
|
|
8280
8280
|
install(e) {
|
|
8281
8281
|
e.component(Ne.name, Ne);
|
|
8282
8282
|
},
|
|
8283
8283
|
register(e, t, n, a) {
|
|
8284
|
-
e["expression-editor"] = Ne, t["expression-editor"] =
|
|
8284
|
+
e["expression-editor"] = Ne, t["expression-editor"] = hi;
|
|
8285
8285
|
}
|
|
8286
8286
|
};
|
|
8287
8287
|
export {
|
|
8288
|
-
|
|
8289
|
-
|
|
8288
|
+
Bl as ExpressCodeEditor,
|
|
8289
|
+
Hl as ExpressionEditor,
|
|
8290
8290
|
Ne as FExpressionTextbox,
|
|
8291
|
-
|
|
8292
|
-
|
|
8291
|
+
Ai as default,
|
|
8292
|
+
En as expressionEditorProps
|
|
8293
8293
|
};
|