@farris/ui-vue 1.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +16 -16
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +65 -65
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +13 -13
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +504 -490
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +247 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +356 -344
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +159 -145
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +127 -128
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +15 -15
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +101 -87
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +9 -7
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +181 -167
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +746 -730
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +9 -7
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +789 -777
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3096 -3069
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +257 -243
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +322 -306
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +177 -163
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +78 -82
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +501 -487
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +37 -37
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +487 -472
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +440 -433
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +594 -587
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +2766 -2739
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +402 -388
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +201 -202
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +264 -245
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +157 -143
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +314 -298
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +862 -843
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1031 -1015
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +169 -155
- package/components/nav/index.umd.cjs +2 -2
- package/components/number-range/index.esm.js +150 -137
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +207 -194
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +427 -414
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +22 -22
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +510 -492
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +192 -178
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +234 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +288 -277
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +62 -61
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +776 -770
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +296 -283
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +222 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +187 -173
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +554 -542
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +483 -469
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +634 -619
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +228 -214
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +419 -406
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +162 -148
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +308 -284
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +279 -265
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +183 -170
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +307 -294
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +320 -306
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +245 -231
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +260 -247
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +409 -396
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +424 -410
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +383 -376
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +595 -575
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +325 -311
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +304 -290
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +99 -85
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +947 -933
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +5492 -5470
- package/farris.all.umd.cjs +13 -13
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var ia = Object.defineProperty;
|
|
2
2
|
var aa = (e, t, n) => t in e ? ia(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var A = (e, t, n) => aa(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as ge, ref as y, computed as R, createVNode as w, Teleport as Yn, createApp as nn, onUnmounted as rt, Fragment as
|
|
5
|
-
import { isPlainObject as $n, cloneDeep as
|
|
4
|
+
import { defineComponent as ge, ref as y, computed as R, createVNode as w, Teleport as Yn, createApp as nn, onUnmounted as rt, Fragment as Qe, watch as G, onMounted as ke, Transition as Jn, shallowRef as la, nextTick as at, render as Gt, h as ra, cloneVNode as sa, mergeProps as nt, inject as ue, withDirectives as jt, vShow as ua, resolveComponent as Je, vModelCheckbox as ca, createTextVNode as qe, onBeforeUnmount as Qn, reactive as ze, resolveDirective as da, provide as _t, isVNode as Zn, withModifiers as fa, vModelText as pa, toRaw as ma } from "vue";
|
|
5
|
+
import { isPlainObject as $n, cloneDeep as Ye, flatten as ga, isEmpty as ha } from "lodash-es";
|
|
6
6
|
import { resolveAppearance as va, createPropsResolver as ya } from "../dynamic-resolver/index.esm.js";
|
|
7
7
|
import { useDesignerComponent as eo, DgControl as Nn } from "../designer-canvas/index.esm.js";
|
|
8
8
|
import to from "../tags/index.esm.js";
|
|
@@ -20,7 +20,7 @@ import ko from "../pagination/index.esm.js";
|
|
|
20
20
|
import Va, { FDynamicFormGroup as Ea, FDynamicFormInput as Da } from "../dynamic-form/index.esm.js";
|
|
21
21
|
import Xt from "../combo-list/index.esm.js";
|
|
22
22
|
import { useTextBox as Ra, useClear as $a, useDateFormat as Na, useNumberFormat as ja, resolveField as Mt, setFieldValue as jn, CHECKBOX_CONTEXT as La, useCheck as Ha, getCustomClass as Wt, withInstall as gn, encrypt as Aa } from "../common/index.esm.js";
|
|
23
|
-
import za, { useNumber as Ga, useFormat as Wa, useSpinner as
|
|
23
|
+
import za, { useNumber as Ga, useFormat as Wa, useSpinner as qa, useTextBox as Ua } from "../number-spinner/index.esm.js";
|
|
24
24
|
import Ka from "../accordion/index.esm.js";
|
|
25
25
|
import Xa from "../avatar/index.esm.js";
|
|
26
26
|
import Io from "../button-edit/index.esm.js";
|
|
@@ -76,27 +76,41 @@ import "../external-container/index.esm.js";
|
|
|
76
76
|
import "bignumber.js";
|
|
77
77
|
const Mo = {}, Oo = {};
|
|
78
78
|
function hn(e) {
|
|
79
|
-
const { properties: t, title: n, ignore: o } = e, i = o && Array.isArray(o), a = Object.keys(t).reduce((l, r) => ((!i || !o.find((c) => c === r)) && (l[r] = t[r].type === "object" && t[r].properties ? hn(t[r]) :
|
|
79
|
+
const { properties: t, title: n, ignore: o } = e, i = o && Array.isArray(o), a = Object.keys(t).reduce((l, r) => ((!i || !o.find((c) => c === r)) && (l[r] = t[r].type === "object" && t[r].properties ? hn(t[r]) : Ye(t[r].default)), l), {});
|
|
80
80
|
if (n && (!i || !o.find((l) => l === "id"))) {
|
|
81
81
|
const l = n.toLowerCase().replace(/-/g, "_");
|
|
82
82
|
a.id = `${l}_${Math.random().toString().slice(2, 6)}`;
|
|
83
83
|
}
|
|
84
84
|
return a;
|
|
85
85
|
}
|
|
86
|
+
function zl(e) {
|
|
87
|
+
const { properties: t, title: n, required: o } = e;
|
|
88
|
+
if (o && Array.isArray(o)) {
|
|
89
|
+
const i = o.reduce((a, l) => (a[l] = t[l].type === "object" && t[l].properties ? hn(t[l]) : Ye(t[l].default), a), {});
|
|
90
|
+
if (n && o.find((a) => a === "id")) {
|
|
91
|
+
const a = n.toLowerCase().replace(/-/g, "_");
|
|
92
|
+
i.id = `${a}_${Math.random().toString().slice(2, 6)}`;
|
|
93
|
+
}
|
|
94
|
+
return i;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
type: n
|
|
98
|
+
};
|
|
99
|
+
}
|
|
86
100
|
function Bo(e, t = {}, n) {
|
|
87
101
|
const o = Mo[e];
|
|
88
102
|
if (o) {
|
|
89
|
-
let i =
|
|
103
|
+
let i = zl(o);
|
|
90
104
|
const a = Oo[e];
|
|
91
105
|
return i = a ? a({ getSchemaByType: Bo }, i, t, n) : i, i;
|
|
92
106
|
}
|
|
93
107
|
return null;
|
|
94
108
|
}
|
|
95
|
-
function
|
|
109
|
+
function Gl(e, t) {
|
|
96
110
|
const n = hn(t);
|
|
97
|
-
return Object.keys(n).reduce((o, i) => (o[i] && $n(o[i]) && $n(e[i] || !e[i]) ? Object.assign(o[i], e[i] || {}) : o[i] = e[i], o), n), n;
|
|
111
|
+
return Object.keys(n).reduce((o, i) => (Object.prototype.hasOwnProperty.call(e, i) && (o[i] && $n(o[i]) && $n(e[i] || !e[i]) ? Object.assign(o[i], e[i] || {}) : o[i] = e[i]), o), n), n;
|
|
98
112
|
}
|
|
99
|
-
function
|
|
113
|
+
function Wl(e, t) {
|
|
100
114
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, i) => {
|
|
101
115
|
if (t.has(i)) {
|
|
102
116
|
const a = t.get(i);
|
|
@@ -111,9 +125,9 @@ function Gl(e, t) {
|
|
|
111
125
|
return o;
|
|
112
126
|
}, {});
|
|
113
127
|
}
|
|
114
|
-
function
|
|
115
|
-
const o =
|
|
116
|
-
return
|
|
128
|
+
function ql(e, t, n = /* @__PURE__ */ new Map()) {
|
|
129
|
+
const o = Gl(e, t);
|
|
130
|
+
return Wl(o, n);
|
|
117
131
|
}
|
|
118
132
|
function Ul(e = {}) {
|
|
119
133
|
function t(u, f, s, p) {
|
|
@@ -209,18 +223,18 @@ const J = {
|
|
|
209
223
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
210
224
|
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
211
225
|
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
212
|
-
},
|
|
226
|
+
}, Kl = {}, Xl = {};
|
|
213
227
|
Ul();
|
|
214
228
|
function Le(e, t, n = /* @__PURE__ */ new Map(), o = (l, r, c, u) => r, i = {}, a = (l) => l) {
|
|
215
|
-
return Mo[t.title] = t, Oo[t.title] = o,
|
|
216
|
-
const r =
|
|
229
|
+
return Mo[t.title] = t, Oo[t.title] = o, Kl[t.title] = i, Xl[t.title] = a, (l = {}) => {
|
|
230
|
+
const r = ql(l, t, n), c = Object.keys(e).reduce((u, f) => (u[f] = e[f].default, u), {});
|
|
217
231
|
return Object.assign(c, r);
|
|
218
232
|
};
|
|
219
233
|
}
|
|
220
234
|
function ot(e, t) {
|
|
221
235
|
return { customClass: t.class, customStyle: t.style };
|
|
222
236
|
}
|
|
223
|
-
function
|
|
237
|
+
function Yl() {
|
|
224
238
|
function e(t, n) {
|
|
225
239
|
const { id: o } = t || {}, { dataSource: i } = t || {};
|
|
226
240
|
return i === void 0 ? {} : {
|
|
@@ -233,7 +247,7 @@ function Xl() {
|
|
|
233
247
|
resolve: e
|
|
234
248
|
};
|
|
235
249
|
}
|
|
236
|
-
function
|
|
250
|
+
function Jl() {
|
|
237
251
|
function e(t, n) {
|
|
238
252
|
const { dataSource: o } = t || {};
|
|
239
253
|
return o === void 0 ? {} : {};
|
|
@@ -242,7 +256,7 @@ function Yl() {
|
|
|
242
256
|
resolve: e
|
|
243
257
|
};
|
|
244
258
|
}
|
|
245
|
-
function
|
|
259
|
+
function Ql() {
|
|
246
260
|
function e(t, n) {
|
|
247
261
|
return t.selectItemById(n);
|
|
248
262
|
}
|
|
@@ -250,7 +264,7 @@ function Jl() {
|
|
|
250
264
|
selectItemById: e
|
|
251
265
|
};
|
|
252
266
|
}
|
|
253
|
-
function
|
|
267
|
+
function Zl() {
|
|
254
268
|
function e(t, n) {
|
|
255
269
|
return t.selectItemById(n);
|
|
256
270
|
}
|
|
@@ -258,13 +272,13 @@ function Ql() {
|
|
|
258
272
|
selectItemById: e
|
|
259
273
|
};
|
|
260
274
|
}
|
|
261
|
-
const
|
|
275
|
+
const er = /* @__PURE__ */ new Map([
|
|
262
276
|
["appearance", va]
|
|
263
277
|
]);
|
|
264
|
-
function
|
|
278
|
+
function tr(e, t, n) {
|
|
265
279
|
return t;
|
|
266
280
|
}
|
|
267
|
-
const
|
|
281
|
+
const nr = "https://json-schema.org/draft/2020-12/schema", or = "https://farris-design.gitee.io/button-edit.schema.json", ir = "button-edit", ar = "A Farris Input Component", lr = "object", rr = {
|
|
268
282
|
id: {
|
|
269
283
|
description: "The unique identifier for a Input Group",
|
|
270
284
|
type: "string"
|
|
@@ -448,18 +462,18 @@ const tr = "https://json-schema.org/draft/2020-12/schema", nr = "https://farris-
|
|
|
448
462
|
type: "string",
|
|
449
463
|
default: ""
|
|
450
464
|
}
|
|
451
|
-
},
|
|
465
|
+
}, sr = [
|
|
452
466
|
"id",
|
|
453
467
|
"type"
|
|
454
|
-
],
|
|
455
|
-
$schema:
|
|
456
|
-
$id:
|
|
457
|
-
title:
|
|
458
|
-
description:
|
|
459
|
-
type:
|
|
460
|
-
properties:
|
|
461
|
-
required:
|
|
462
|
-
},
|
|
468
|
+
], ur = {
|
|
469
|
+
$schema: nr,
|
|
470
|
+
$id: or,
|
|
471
|
+
title: ir,
|
|
472
|
+
description: ar,
|
|
473
|
+
type: lr,
|
|
474
|
+
properties: rr,
|
|
475
|
+
required: sr
|
|
476
|
+
}, cr = "buttonEdit", dr = "A Farris Component", fr = "object", pr = {
|
|
463
477
|
basic: {
|
|
464
478
|
description: "Basic Infomation",
|
|
465
479
|
title: "基本信息",
|
|
@@ -541,11 +555,11 @@ const tr = "https://json-schema.org/draft/2020-12/schema", nr = "https://farris-
|
|
|
541
555
|
}
|
|
542
556
|
}
|
|
543
557
|
}
|
|
544
|
-
},
|
|
545
|
-
title:
|
|
546
|
-
description:
|
|
547
|
-
type:
|
|
548
|
-
categories:
|
|
558
|
+
}, mr = {
|
|
559
|
+
title: cr,
|
|
560
|
+
description: dr,
|
|
561
|
+
type: fr,
|
|
562
|
+
categories: pr
|
|
549
563
|
}, vn = {
|
|
550
564
|
/**
|
|
551
565
|
* 组件标识
|
|
@@ -654,13 +668,13 @@ const tr = "https://json-schema.org/draft/2020-12/schema", nr = "https://farris-
|
|
|
654
668
|
beforeOpen: { type: Function, default: null },
|
|
655
669
|
/** 更新方式 blur | change */
|
|
656
670
|
updateOn: { type: String, default: "change" }
|
|
657
|
-
}, Po = Le(vn,
|
|
671
|
+
}, Po = Le(vn, ur, er, tr, mr), gr = {
|
|
658
672
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
659
673
|
host: { type: Object },
|
|
660
674
|
backgroundColor: { type: String, default: "" }
|
|
661
|
-
},
|
|
675
|
+
}, hr = /* @__PURE__ */ ge({
|
|
662
676
|
name: "FOverlay",
|
|
663
|
-
props:
|
|
677
|
+
props: gr,
|
|
664
678
|
emits: ["click"],
|
|
665
679
|
setup(e, t) {
|
|
666
680
|
const n = y(e.popupContentPosition), o = y(e.host), i = R(() => ({
|
|
@@ -706,13 +720,13 @@ const tr = "https://json-schema.org/draft/2020-12/schema", nr = "https://farris-
|
|
|
706
720
|
});
|
|
707
721
|
}
|
|
708
722
|
});
|
|
709
|
-
function
|
|
723
|
+
function vr(e) {
|
|
710
724
|
if (e.content && e.content.render)
|
|
711
725
|
return e.content.render;
|
|
712
726
|
if (e.render && typeof e.render == "function")
|
|
713
727
|
return e.render;
|
|
714
728
|
}
|
|
715
|
-
function
|
|
729
|
+
function yr(e) {
|
|
716
730
|
const t = document.createElement("div");
|
|
717
731
|
t.style.display = "contents";
|
|
718
732
|
let n;
|
|
@@ -725,8 +739,8 @@ function vr(e) {
|
|
|
725
739
|
rt(() => {
|
|
726
740
|
document.body.removeChild(t);
|
|
727
741
|
});
|
|
728
|
-
const a =
|
|
729
|
-
return () => w(
|
|
742
|
+
const a = vr(e);
|
|
743
|
+
return () => w(hr, {
|
|
730
744
|
"popup-content-position": e.popupPosition,
|
|
731
745
|
host: e.host,
|
|
732
746
|
onClick: i,
|
|
@@ -737,12 +751,12 @@ function vr(e) {
|
|
|
737
751
|
}
|
|
738
752
|
}), document.body.appendChild(t), n.mount(t), n;
|
|
739
753
|
}
|
|
740
|
-
class
|
|
754
|
+
class br {
|
|
741
755
|
static show(t) {
|
|
742
|
-
return
|
|
756
|
+
return yr(t);
|
|
743
757
|
}
|
|
744
758
|
}
|
|
745
|
-
const
|
|
759
|
+
const Cr = {
|
|
746
760
|
/**
|
|
747
761
|
* 自定义类
|
|
748
762
|
*/
|
|
@@ -886,7 +900,7 @@ class ht {
|
|
|
886
900
|
return this.width = t.width, this.height = t.height, this;
|
|
887
901
|
}
|
|
888
902
|
}
|
|
889
|
-
function
|
|
903
|
+
function wr(e, t) {
|
|
890
904
|
const n = y(), o = y(), i = y(), a = y(), l = y(), r = y(), c = y(), u = y(), f = y(), s = y(), p = y(), C = y(), v = y(e.draggable), F = y(!1);
|
|
891
905
|
function h() {
|
|
892
906
|
const V = o.value || document.body, $ = window.getComputedStyle(V);
|
|
@@ -977,7 +991,7 @@ function Cr(e, t) {
|
|
|
977
991
|
V instanceof MouseEvent && V.button === 2 || v.value && (V.stopPropagation(), V.preventDefault(), i.value = je.fromEvent(V), f.value = V.target, m(V), S());
|
|
978
992
|
}
|
|
979
993
|
function P(V) {
|
|
980
|
-
return n.value = V, w(
|
|
994
|
+
return n.value = V, w(Qe, null, [w("div", {
|
|
981
995
|
class: "fv-resizable-handle fv-resizable-n",
|
|
982
996
|
type: "n",
|
|
983
997
|
onMousedown: ($) => T($)
|
|
@@ -1071,7 +1085,7 @@ function Cr(e, t) {
|
|
|
1071
1085
|
unWindowResizeHandle: D
|
|
1072
1086
|
};
|
|
1073
1087
|
}
|
|
1074
|
-
function
|
|
1088
|
+
function Sr(e, t, n) {
|
|
1075
1089
|
const o = y(), i = y(e.draggable), a = y(e.lockAxis), l = y(), r = y(), c = y(!1), u = y(new je(0, 0)), f = y(new je(0, 0)), s = y(new je(0, 0)), p = y(new je(0, 0));
|
|
1076
1090
|
G(() => n.value, (I) => {
|
|
1077
1091
|
l.value.style.cursor = I ? "move" : "default";
|
|
@@ -1161,7 +1175,7 @@ function Vo(e, t) {
|
|
|
1161
1175
|
};
|
|
1162
1176
|
}
|
|
1163
1177
|
}
|
|
1164
|
-
function
|
|
1178
|
+
function xr(e, t) {
|
|
1165
1179
|
const n = y(e.enableEsc);
|
|
1166
1180
|
let o = null;
|
|
1167
1181
|
return n.value ? (o = Vo("Escape", (i) => {
|
|
@@ -1170,7 +1184,7 @@ function Sr(e, t) {
|
|
|
1170
1184
|
remove: o
|
|
1171
1185
|
}) : null;
|
|
1172
1186
|
}
|
|
1173
|
-
function
|
|
1187
|
+
function Fr(e, t) {
|
|
1174
1188
|
const n = y(e.enableEnter);
|
|
1175
1189
|
let o = null;
|
|
1176
1190
|
return n.value ? (o = Vo("Enter", (i) => {
|
|
@@ -1181,7 +1195,7 @@ function xr(e, t) {
|
|
|
1181
1195
|
}
|
|
1182
1196
|
const Eo = /* @__PURE__ */ ge({
|
|
1183
1197
|
name: "FModal",
|
|
1184
|
-
props:
|
|
1198
|
+
props: Cr,
|
|
1185
1199
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
|
|
1186
1200
|
setup(e, t) {
|
|
1187
1201
|
const n = y(e.width || 300), o = y(e.height || 200), i = y(e.modelValue), a = y(""), l = y(e.class), r = y(e.fitContent), c = y(e.showHeader), u = y(""), f = y(e.showCloseButton), s = y(e.showMaxButton), p = y(!1), C = y(""), v = y(""), F = y(""), h = y(e.showButtons), m = y(e.title), d = y(e.reiszeable), g = y(e.containment || null), k = y();
|
|
@@ -1210,9 +1224,9 @@ const Eo = /* @__PURE__ */ ge({
|
|
|
1210
1224
|
resizedEventParam: V,
|
|
1211
1225
|
allowDrag: $,
|
|
1212
1226
|
unWindowResizeHandle: L
|
|
1213
|
-
} =
|
|
1227
|
+
} = wr(e), {
|
|
1214
1228
|
registerDraggle: N
|
|
1215
|
-
} =
|
|
1229
|
+
} = Sr(e, t, $);
|
|
1216
1230
|
G(() => e.title, (j, Y) => {
|
|
1217
1231
|
j !== Y && (m.value = j);
|
|
1218
1232
|
}), G(() => e.modelValue, (j, Y) => {
|
|
@@ -1222,8 +1236,8 @@ const Eo = /* @__PURE__ */ ge({
|
|
|
1222
1236
|
}), G(() => e.showButtons, (j, Y) => {
|
|
1223
1237
|
j !== Y && (h.value = j);
|
|
1224
1238
|
}), G(() => V.value, (j, Y) => {
|
|
1225
|
-
const le = j || {},
|
|
1226
|
-
JSON.stringify(le) !== JSON.stringify(
|
|
1239
|
+
const le = j || {}, U = Y || {};
|
|
1240
|
+
JSON.stringify(le) !== JSON.stringify(U) && t.emit("resize", {
|
|
1227
1241
|
newSize: j,
|
|
1228
1242
|
oldSize: Y
|
|
1229
1243
|
});
|
|
@@ -1232,19 +1246,19 @@ const Eo = /* @__PURE__ */ ge({
|
|
|
1232
1246
|
const j = document.querySelectorAll(".farris-modal").length;
|
|
1233
1247
|
(!j || j - 1 <= 0) && document.body.classList.remove("modal-open"), k.value && k.value.classList.remove("show");
|
|
1234
1248
|
}
|
|
1235
|
-
const
|
|
1249
|
+
const q = R(() => (i.value ? document.body.classList.add("modal-open") : H(), i.value)), oe = R(() => {
|
|
1236
1250
|
const j = {
|
|
1237
1251
|
modal: !0,
|
|
1238
1252
|
"farris-modal": !0,
|
|
1239
1253
|
fade: !0
|
|
1240
1254
|
};
|
|
1241
|
-
return j["f-modal-fitContent"] = !!r.value, j.show = !!
|
|
1255
|
+
return j["f-modal-fitContent"] = !!r.value, j.show = !!q.value, j;
|
|
1242
1256
|
}), pe = R(() => {
|
|
1243
1257
|
var le;
|
|
1244
1258
|
const j = {
|
|
1245
1259
|
"modal-dialog": !0
|
|
1246
1260
|
}, Y = (le = l.value) == null ? void 0 : le.split(" ");
|
|
1247
|
-
return Y == null || Y.reduce((
|
|
1261
|
+
return Y == null || Y.reduce((U, Me) => (U[Me] = !0, U), j), j;
|
|
1248
1262
|
}), Be = R(() => ({
|
|
1249
1263
|
position: "absolute",
|
|
1250
1264
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
@@ -1291,7 +1305,7 @@ const Eo = /* @__PURE__ */ ge({
|
|
|
1291
1305
|
}
|
|
1292
1306
|
let _e = null, re = null;
|
|
1293
1307
|
ke(() => {
|
|
1294
|
-
P.value && !g.value && (g.value = P.value.parentElement, D.value = g.value, N(T.value, P.value, D.value)),
|
|
1308
|
+
P.value && !g.value && (g.value = P.value.parentElement, D.value = g.value, N(T.value, P.value, D.value)), q.value && document.body.classList.add("modal-open"), _e = xr(e, t), re = Fr(e, t);
|
|
1295
1309
|
}), rt(() => {
|
|
1296
1310
|
H(), L && L(), _e && _e.remove(), re && re.remove();
|
|
1297
1311
|
}), t.expose({
|
|
@@ -1356,7 +1370,7 @@ const Eo = /* @__PURE__ */ ge({
|
|
|
1356
1370
|
return () => w(Yn, {
|
|
1357
1371
|
to: "body"
|
|
1358
1372
|
}, {
|
|
1359
|
-
default: () => [
|
|
1373
|
+
default: () => [q.value && w(Jn, {
|
|
1360
1374
|
name: "fade",
|
|
1361
1375
|
appear: !0
|
|
1362
1376
|
}, {
|
|
@@ -1394,7 +1408,7 @@ function Do(e) {
|
|
|
1394
1408
|
if (e.render && typeof e.render == "function")
|
|
1395
1409
|
return e.render;
|
|
1396
1410
|
}
|
|
1397
|
-
function
|
|
1411
|
+
function _r(e) {
|
|
1398
1412
|
const t = document.createElement("div");
|
|
1399
1413
|
t.style.display = "contents";
|
|
1400
1414
|
const n = nn({
|
|
@@ -1437,7 +1451,7 @@ function Fr(e) {
|
|
|
1437
1451
|
});
|
|
1438
1452
|
return document.body.appendChild(t), n.mount(t), n;
|
|
1439
1453
|
}
|
|
1440
|
-
class
|
|
1454
|
+
class kr {
|
|
1441
1455
|
constructor(t) {
|
|
1442
1456
|
A(this, "appContext", null);
|
|
1443
1457
|
A(this, "modalRef", y());
|
|
@@ -1456,7 +1470,7 @@ class _r {
|
|
|
1456
1470
|
showButtons: !0,
|
|
1457
1471
|
showHeader: !0
|
|
1458
1472
|
}, t);
|
|
1459
|
-
return
|
|
1473
|
+
return _r(n);
|
|
1460
1474
|
}
|
|
1461
1475
|
open(t) {
|
|
1462
1476
|
const n = document.createDocumentFragment();
|
|
@@ -1550,7 +1564,7 @@ function No(e, t, n, o, i) {
|
|
|
1550
1564
|
});
|
|
1551
1565
|
s.value = d == null ? void 0 : d.modalRef;
|
|
1552
1566
|
}
|
|
1553
|
-
a.value === "Overlay" &&
|
|
1567
|
+
a.value === "Overlay" && br.show({
|
|
1554
1568
|
// host: buttonEditRef.value,
|
|
1555
1569
|
host: document.body,
|
|
1556
1570
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
@@ -1597,7 +1611,7 @@ function jo(e, t, n, o) {
|
|
|
1597
1611
|
}
|
|
1598
1612
|
return { hidePopup: f, popup: u, shouldPopupContent: a, togglePopup: c, popoverRef: i };
|
|
1599
1613
|
}
|
|
1600
|
-
function
|
|
1614
|
+
function Ir(e, t, n) {
|
|
1601
1615
|
const {
|
|
1602
1616
|
buttonGroupClass: o
|
|
1603
1617
|
} = n, i = y();
|
|
@@ -1639,7 +1653,7 @@ const yn = /* @__PURE__ */ ge({
|
|
|
1639
1653
|
return a.value && a.value.split(" ").reduce((v, F) => (v[F] = !0, v), C), C;
|
|
1640
1654
|
}), {
|
|
1641
1655
|
renderButtonGroup: p
|
|
1642
|
-
} =
|
|
1656
|
+
} = Ir(e, t, c);
|
|
1643
1657
|
return () => w("div", nt(t.attrs, {
|
|
1644
1658
|
ref: n,
|
|
1645
1659
|
class: s.value,
|
|
@@ -1742,7 +1756,7 @@ function It(e, t, n) {
|
|
|
1742
1756
|
function Ln(e) {
|
|
1743
1757
|
return typeof e == "string" && e.startsWith("{") && e.endsWith("}") ? (e = e.replace(/'/g, '"'), { mappingFields: JSON.parse(e) }) : { mappingFields: e };
|
|
1744
1758
|
}
|
|
1745
|
-
const
|
|
1759
|
+
const Tr = /* @__PURE__ */ new Map([
|
|
1746
1760
|
["appearance", ot],
|
|
1747
1761
|
["mappingFields", (e, t, n) => {
|
|
1748
1762
|
if (t)
|
|
@@ -1754,7 +1768,7 @@ const Ir = /* @__PURE__ */ new Map([
|
|
|
1754
1768
|
var o;
|
|
1755
1769
|
return t ? { uri: t } : { uri: (o = n == null ? void 0 : n.dataSource) == null ? void 0 : o.uri };
|
|
1756
1770
|
}]
|
|
1757
|
-
]),
|
|
1771
|
+
]), Mr = "https://json-schema.org/draft/2020-12/schema", Or = "https://farris-design.gitee.io/lookup.schema.json", Br = "lookup", Pr = "A Farris Input Component", Vr = "object", Er = {
|
|
1758
1772
|
id: {
|
|
1759
1773
|
description: "The unique identifier for a combo list",
|
|
1760
1774
|
type: "string"
|
|
@@ -1854,32 +1868,31 @@ const Ir = /* @__PURE__ */ new Map([
|
|
|
1854
1868
|
type: "object",
|
|
1855
1869
|
default: null
|
|
1856
1870
|
}
|
|
1857
|
-
},
|
|
1858
|
-
"id",
|
|
1871
|
+
}, Dr = [
|
|
1859
1872
|
"type"
|
|
1860
|
-
],
|
|
1873
|
+
], Rr = [
|
|
1861
1874
|
"id",
|
|
1862
1875
|
"appearance",
|
|
1863
1876
|
"binding",
|
|
1864
1877
|
"visible"
|
|
1865
|
-
],
|
|
1866
|
-
$schema:
|
|
1867
|
-
$id:
|
|
1868
|
-
title:
|
|
1869
|
-
description:
|
|
1870
|
-
type:
|
|
1871
|
-
properties:
|
|
1872
|
-
required:
|
|
1873
|
-
ignore:
|
|
1878
|
+
], $r = {
|
|
1879
|
+
$schema: Mr,
|
|
1880
|
+
$id: Or,
|
|
1881
|
+
title: Br,
|
|
1882
|
+
description: Pr,
|
|
1883
|
+
type: Vr,
|
|
1884
|
+
properties: Er,
|
|
1885
|
+
required: Dr,
|
|
1886
|
+
ignore: Rr
|
|
1874
1887
|
};
|
|
1875
|
-
function
|
|
1888
|
+
function Nr(e, t, n) {
|
|
1876
1889
|
return t;
|
|
1877
1890
|
}
|
|
1878
1891
|
var dt = /* @__PURE__ */ ((e) => (e.List = "LIST", e.Tree = "TREELIST", e.ListList = "NAVLIST", e.TreeList = "NAVTREELIST", e.ListTree = "NAVLISTTREE", e))(dt || {}), Lo = /* @__PURE__ */ ((e) => (e.default = "default", e.all = "all", e.async = "async", e))(Lo || {});
|
|
1879
|
-
const bn = "__lookup_active_tab__",
|
|
1880
|
-
var
|
|
1892
|
+
const bn = "__lookup_active_tab__", Ag = "__lookup_user_data_id__";
|
|
1893
|
+
var Ue = /* @__PURE__ */ ((e) => (e.dataList = "datalist", e.favorite = "favorite", e))(Ue || {});
|
|
1881
1894
|
const Ho = Symbol("f_lookup-http-service_token");
|
|
1882
|
-
var Ao = /* @__PURE__ */ ((e) => (e[e.Equal = 0] = "Equal", e[e.NotEqual = 1] = "NotEqual", e[e.Greater = 2] = "Greater", e[e.GreaterOrEqual = 3] = "GreaterOrEqual", e[e.Less = 4] = "Less", e[e.LessOrEqual = 5] = "LessOrEqual", e[e.Like = 6] = "Like", e[e.LikeStartWith = 7] = "LikeStartWith", e[e.LikeEndWith = 8] = "LikeEndWith", e[e.NotLike = 9] = "NotLike", e[e.NotLikeStartWith = 10] = "NotLikeStartWith", e[e.NotLikeEndWith = 11] = "NotLikeEndWith", e[e.Is = 12] = "Is", e[e.IsNot = 13] = "IsNot", e[e.In = 14] = "In", e[e.NotIn = 15] = "NotIn", e))(Ao || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Empty = 0] = "Empty", e[e.And = 1] = "And", e[e.Or = 2] = "Or", e))(Yt || {}),
|
|
1895
|
+
var Ao = /* @__PURE__ */ ((e) => (e[e.Equal = 0] = "Equal", e[e.NotEqual = 1] = "NotEqual", e[e.Greater = 2] = "Greater", e[e.GreaterOrEqual = 3] = "GreaterOrEqual", e[e.Less = 4] = "Less", e[e.LessOrEqual = 5] = "LessOrEqual", e[e.Like = 6] = "Like", e[e.LikeStartWith = 7] = "LikeStartWith", e[e.LikeEndWith = 8] = "LikeEndWith", e[e.NotLike = 9] = "NotLike", e[e.NotLikeStartWith = 10] = "NotLikeStartWith", e[e.NotLikeEndWith = 11] = "NotLikeEndWith", e[e.Is = 12] = "Is", e[e.IsNot = 13] = "IsNot", e[e.In = 14] = "In", e[e.NotIn = 15] = "NotIn", e))(Ao || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Empty = 0] = "Empty", e[e.And = 1] = "And", e[e.Or = 2] = "Or", e))(Yt || {}), jr = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.Expression = 1] = "Expression", e.FrontExpress = "frontExpress", e))(jr || {});
|
|
1883
1896
|
const At = {
|
|
1884
1897
|
id: { type: String, require: !0 },
|
|
1885
1898
|
uri: { type: String, default: "" },
|
|
@@ -1933,7 +1946,7 @@ const At = {
|
|
|
1933
1946
|
enableUserData: { type: Boolean, default: !1 },
|
|
1934
1947
|
onReady: { type: Function, default: null },
|
|
1935
1948
|
context: { type: Object, default: {} }
|
|
1936
|
-
}, Hn = Le(At,
|
|
1949
|
+
}, Hn = Le(At, $r, Tr, Nr);
|
|
1937
1950
|
class zt {
|
|
1938
1951
|
constructor(t, n) {
|
|
1939
1952
|
A(this, "componentId");
|
|
@@ -2026,7 +2039,7 @@ class zt {
|
|
|
2026
2039
|
const o = n && n.parent && n.parent.schema;
|
|
2027
2040
|
if (!o)
|
|
2028
2041
|
return;
|
|
2029
|
-
const i = o.contents.findIndex((l) => l.id === t), a =
|
|
2042
|
+
const i = o.contents.findIndex((l) => l.id === t), a = Ye(o.contents[i]);
|
|
2030
2043
|
o.contents.splice(i, 1), o.contents.splice(i, 0, a);
|
|
2031
2044
|
}
|
|
2032
2045
|
}
|
|
@@ -2102,11 +2115,11 @@ A(Ft, "fieldControlTypeMapping", {
|
|
|
2102
2115
|
});
|
|
2103
2116
|
let Bt = Ft;
|
|
2104
2117
|
const Rt = y(0);
|
|
2105
|
-
function
|
|
2118
|
+
function Lr(e, t) {
|
|
2106
2119
|
const n = t.getBoundingClientRect(), o = e.getBoundingClientRect(), i = o.top >= n.top, a = o.top <= n.bottom;
|
|
2107
2120
|
return i && a;
|
|
2108
2121
|
}
|
|
2109
|
-
function
|
|
2122
|
+
function Hr(e) {
|
|
2110
2123
|
if (!e)
|
|
2111
2124
|
return;
|
|
2112
2125
|
let t;
|
|
@@ -2117,7 +2130,7 @@ function Lr(e) {
|
|
|
2117
2130
|
return;
|
|
2118
2131
|
const o = t.querySelector(".component-btn-group");
|
|
2119
2132
|
if (o) {
|
|
2120
|
-
if (!
|
|
2133
|
+
if (!Lr(t, e)) {
|
|
2121
2134
|
o.style.display = "none";
|
|
2122
2135
|
return;
|
|
2123
2136
|
}
|
|
@@ -2129,7 +2142,7 @@ function Lr(e) {
|
|
|
2129
2142
|
}
|
|
2130
2143
|
}
|
|
2131
2144
|
}
|
|
2132
|
-
class
|
|
2145
|
+
class Ar {
|
|
2133
2146
|
constructor() {
|
|
2134
2147
|
/** 控件标题 */
|
|
2135
2148
|
A(this, "label", "");
|
|
@@ -2159,7 +2172,7 @@ class Hr {
|
|
|
2159
2172
|
A(this, "fieldSetId", "");
|
|
2160
2173
|
}
|
|
2161
2174
|
}
|
|
2162
|
-
function
|
|
2175
|
+
function zr(e) {
|
|
2163
2176
|
let t, n;
|
|
2164
2177
|
const o = /* @__PURE__ */ new Map();
|
|
2165
2178
|
let i = [];
|
|
@@ -2180,7 +2193,7 @@ function Ar(e) {
|
|
|
2180
2193
|
return;
|
|
2181
2194
|
}
|
|
2182
2195
|
v && (p += 1, v = !1);
|
|
2183
|
-
const h = F.appearance && F.appearance.class, m = new
|
|
2196
|
+
const h = F.appearance && F.appearance.class, m = new Ar();
|
|
2184
2197
|
h ? a(h, m) : m.isSupportedClass = !1, m.label = F.label || F.id, m.id = F.id, m.group = p, C && (m.fieldSetId = f.id), n === F.id && (t = p), o.set(F.id, F), s.push(m);
|
|
2185
2198
|
});
|
|
2186
2199
|
}
|
|
@@ -2239,7 +2252,7 @@ class Xe extends zt {
|
|
|
2239
2252
|
constructor(n, o) {
|
|
2240
2253
|
super(n, o);
|
|
2241
2254
|
A(this, "responseLayoutEditorFunction");
|
|
2242
|
-
this.responseLayoutEditorFunction =
|
|
2255
|
+
this.responseLayoutEditorFunction = zr(this.formSchemaUtils);
|
|
2243
2256
|
}
|
|
2244
2257
|
getPropertyConfig(n, o) {
|
|
2245
2258
|
return this.propertyConfig.categories.basic = this.getBasicProperties(n, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(n, o), this.propertyConfig.categories.editor = this.getEditorProperties(n), this.propertyConfig;
|
|
@@ -2247,7 +2260,7 @@ class Xe extends zt {
|
|
|
2247
2260
|
getBasicProperties(n, o) {
|
|
2248
2261
|
var a;
|
|
2249
2262
|
const i = this;
|
|
2250
|
-
return this.setDesignViewModelField(n),
|
|
2263
|
+
return this.setDesignViewModelField(n), {
|
|
2251
2264
|
description: "Basic Information",
|
|
2252
2265
|
title: "基本信息",
|
|
2253
2266
|
properties: {
|
|
@@ -2470,7 +2483,7 @@ class Xe extends zt {
|
|
|
2470
2483
|
return Array.from(o).length === 1;
|
|
2471
2484
|
}
|
|
2472
2485
|
}
|
|
2473
|
-
function
|
|
2486
|
+
function Gr(e, t, n, o, i, a) {
|
|
2474
2487
|
const l = y(!1), r = R(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: c } = a;
|
|
2475
2488
|
function u(C) {
|
|
2476
2489
|
l.value = C;
|
|
@@ -2502,7 +2515,7 @@ function zr(e, t, n, o, i, a) {
|
|
|
2502
2515
|
onMouseLeaveTextBox: p
|
|
2503
2516
|
};
|
|
2504
2517
|
}
|
|
2505
|
-
function
|
|
2518
|
+
function Wr(e, t, n, o, i) {
|
|
2506
2519
|
const a = R(() => e.popupOnInput), l = R(() => e.popupOnFocus), { shouldPopupContent: r } = i, c = R(() => e.enableTitle ? n.value : ""), u = R(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), f = R(() => e.readonly || !e.editable), s = y(!1), p = R(() => !e.disable && s.value), C = R(() => ({
|
|
2507
2520
|
"text-left": e.textAlign === "left",
|
|
2508
2521
|
"text-center": e.textAlign === "center",
|
|
@@ -2574,7 +2587,7 @@ function Gr(e, t, n, o, i) {
|
|
|
2574
2587
|
onTextBoxValueChange: x
|
|
2575
2588
|
};
|
|
2576
2589
|
}
|
|
2577
|
-
function
|
|
2590
|
+
function qr(e, t, n) {
|
|
2578
2591
|
const o = y(), {
|
|
2579
2592
|
isTextBoxReadonly: i,
|
|
2580
2593
|
textBoxClass: a,
|
|
@@ -2635,7 +2648,7 @@ function Ur(e, t, n) {
|
|
|
2635
2648
|
onChange: l
|
|
2636
2649
|
}, null);
|
|
2637
2650
|
}
|
|
2638
|
-
function
|
|
2651
|
+
function Kr(e, t, n, o) {
|
|
2639
2652
|
const {
|
|
2640
2653
|
buttonGroupClass: i,
|
|
2641
2654
|
onClickButton: a,
|
|
@@ -2671,7 +2684,7 @@ function qr(e, t, n, o) {
|
|
|
2671
2684
|
buttonHandleElement: s
|
|
2672
2685
|
};
|
|
2673
2686
|
}
|
|
2674
|
-
function
|
|
2687
|
+
function Xr(e, t, n) {
|
|
2675
2688
|
const o = y(e.popupMinWidth), {
|
|
2676
2689
|
hidePopup: i,
|
|
2677
2690
|
popoverRef: a
|
|
@@ -2704,11 +2717,11 @@ const bt = /* @__PURE__ */ ge({
|
|
|
2704
2717
|
shouldPopupContent: l,
|
|
2705
2718
|
hidePopup: r,
|
|
2706
2719
|
togglePopup: c
|
|
2707
|
-
} = a, u = No(e, t, n, a, i), f = y(""), s =
|
|
2720
|
+
} = a, u = No(e, t, n, a, i), f = y(""), s = Wr(e, t, i, f, a), {
|
|
2708
2721
|
hasFocusedTextBox: p,
|
|
2709
2722
|
commitValue: C,
|
|
2710
2723
|
inputGroupClass: v
|
|
2711
|
-
} = s, F =
|
|
2724
|
+
} = s, F = Gr(e, t, i, p, f, s), {
|
|
2712
2725
|
onMouseEnterTextBox: h,
|
|
2713
2726
|
onMouseLeaveTextBox: m
|
|
2714
2727
|
} = F, d = R(() => {
|
|
@@ -2720,7 +2733,7 @@ const bt = /* @__PURE__ */ ge({
|
|
|
2720
2733
|
return o.value && o.value.split(" ").reduce((T, P) => (T[P] = !0, T), S), S;
|
|
2721
2734
|
});
|
|
2722
2735
|
function g() {
|
|
2723
|
-
return e.multiSelect && e.inputType === "tag" ? Ur(e, i, s) :
|
|
2736
|
+
return e.multiSelect && e.inputType === "tag" ? Ur(e, i, s) : qr(e, i, s);
|
|
2724
2737
|
}
|
|
2725
2738
|
let k = g();
|
|
2726
2739
|
G([() => e.multiSelect, () => e.inputType], () => {
|
|
@@ -2729,7 +2742,7 @@ const bt = /* @__PURE__ */ ge({
|
|
|
2729
2742
|
const {
|
|
2730
2743
|
renderButtonGroup: b,
|
|
2731
2744
|
buttonHandleElement: _
|
|
2732
|
-
} =
|
|
2745
|
+
} = Kr(e, t, u, F), I = Xr(e, t, a), x = {
|
|
2733
2746
|
commitValue: C,
|
|
2734
2747
|
elementRef: n,
|
|
2735
2748
|
hidePopup: r,
|
|
@@ -2747,7 +2760,7 @@ const bt = /* @__PURE__ */ ge({
|
|
|
2747
2760
|
n.value.componentInstance = x, window.onresize = () => {
|
|
2748
2761
|
document.body.click();
|
|
2749
2762
|
};
|
|
2750
|
-
}), t.expose(x), () => w(
|
|
2763
|
+
}), t.expose(x), () => w(Qe, null, [w("div", nt(t.attrs, {
|
|
2751
2764
|
ref: n,
|
|
2752
2765
|
class: d.value,
|
|
2753
2766
|
id: e.id
|
|
@@ -2758,7 +2771,7 @@ const bt = /* @__PURE__ */ ge({
|
|
|
2758
2771
|
onMouseleave: m
|
|
2759
2772
|
}, [k(), b()])]), l.value && I()]);
|
|
2760
2773
|
}
|
|
2761
|
-
}),
|
|
2774
|
+
}), Yr = "https://json-schema.org/draft/2020-12/schema", Jr = "https://farris-design.gitee.io/field-selector.schema.json", Qr = "field-selector", Zr = "A Farris Input Component", es = "object", ts = {
|
|
2762
2775
|
disabled: {
|
|
2763
2776
|
description: "",
|
|
2764
2777
|
type: "boolean",
|
|
@@ -2849,24 +2862,24 @@ const bt = /* @__PURE__ */ ge({
|
|
|
2849
2862
|
type: "object",
|
|
2850
2863
|
default: null
|
|
2851
2864
|
}
|
|
2852
|
-
},
|
|
2853
|
-
$schema:
|
|
2854
|
-
$id:
|
|
2855
|
-
title:
|
|
2856
|
-
description:
|
|
2857
|
-
type:
|
|
2858
|
-
properties:
|
|
2859
|
-
},
|
|
2865
|
+
}, ns = {
|
|
2866
|
+
$schema: Yr,
|
|
2867
|
+
$id: Jr,
|
|
2868
|
+
title: Qr,
|
|
2869
|
+
description: Zr,
|
|
2870
|
+
type: es,
|
|
2871
|
+
properties: ts
|
|
2872
|
+
}, os = [
|
|
2860
2873
|
{ field: "code", title: "绑定字段" },
|
|
2861
2874
|
{ field: "name", title: "名称" },
|
|
2862
2875
|
{ field: "fieldType", title: "字段类型" }
|
|
2863
|
-
],
|
|
2876
|
+
], qt = Symbol("Field_Selector Component Repository Service Token"), is = {
|
|
2864
2877
|
disabled: { type: Boolean, default: !1 },
|
|
2865
2878
|
readonly: { type: Boolean, default: !1 },
|
|
2866
2879
|
modelValue: { type: [String, Array], default: null },
|
|
2867
2880
|
data: { type: Array, default: [] },
|
|
2868
2881
|
idField: { type: String, default: "id" },
|
|
2869
|
-
columns: { type: Array, default:
|
|
2882
|
+
columns: { type: Array, default: os },
|
|
2870
2883
|
title: { type: String, default: "字段选择器" },
|
|
2871
2884
|
modalWidth: { type: Number, default: 800 },
|
|
2872
2885
|
modalHeight: { type: Number, default: 600 },
|
|
@@ -2884,12 +2897,12 @@ const bt = /* @__PURE__ */ ge({
|
|
|
2884
2897
|
onFieldSelected: { type: Function, default: null },
|
|
2885
2898
|
repositoryToken: { type: Symbol, default: null }
|
|
2886
2899
|
};
|
|
2887
|
-
Le(
|
|
2900
|
+
Le(is, ns);
|
|
2888
2901
|
const zo = /* @__PURE__ */ new Map([
|
|
2889
2902
|
["appearance", ot],
|
|
2890
2903
|
["column", "columnOption"]
|
|
2891
2904
|
]);
|
|
2892
|
-
function
|
|
2905
|
+
function as(e, t, n) {
|
|
2893
2906
|
var s;
|
|
2894
2907
|
const o = n.parentComponentInstance, i = o.schema.type, a = String(((s = o.schema.appearance) == null ? void 0 : s.class) || "").split(" "), l = i === "section" || i === "tab-page", r = a.includes("f-page-content-nav"), c = a.includes("f-page-main"), u = e.getSchemaByType("component");
|
|
2895
2908
|
u.id = `${t.id}-component`, u.componentType = "data-grid";
|
|
@@ -2898,23 +2911,23 @@ function is(e, t, n) {
|
|
|
2898
2911
|
class: f
|
|
2899
2912
|
}, u.contents = [t], u;
|
|
2900
2913
|
}
|
|
2901
|
-
function
|
|
2914
|
+
function ls(e, t, n) {
|
|
2902
2915
|
const o = n.parentComponentInstance, i = String(o.schema.appearance.class || "").split(" "), a = i.includes("f-page-content-nav"), l = i.includes("f-page-main"), r = e.getSchemaByType("section");
|
|
2903
2916
|
r.id = `${t.id}-section`;
|
|
2904
2917
|
let c = "";
|
|
2905
2918
|
return c += a ? "f-section-in-nav " : "", c += l ? "f-section-in-managelist " : "", c += "f-section-grid", r.appearance = { class: c }, r.contents = [t], r;
|
|
2906
2919
|
}
|
|
2907
|
-
function
|
|
2920
|
+
function rs(e, t, n) {
|
|
2908
2921
|
const o = e.getSchemaByType("content-container");
|
|
2909
2922
|
return o.id = `${t.id}-layout`, o.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, o.contents = [t], o;
|
|
2910
2923
|
}
|
|
2911
2924
|
function Go(e, t, n) {
|
|
2912
2925
|
const i = n.parentComponentInstance.schema.type, a = i === "section" || i === "tab-page";
|
|
2913
2926
|
t.appearance = { class: "f-component-grid" };
|
|
2914
|
-
const r = (a ?
|
|
2915
|
-
return
|
|
2927
|
+
const r = (a ? rs : ls)(e, t, n);
|
|
2928
|
+
return as(e, r, n);
|
|
2916
2929
|
}
|
|
2917
|
-
const
|
|
2930
|
+
const ss = "https://json-schema.org/draft/2020-12/schema", us = "https://farris-design.gitee.io/tree-grid.schema.json", cs = "tree-grid", ds = "A Farris Data Grid Component", fs = "object", ps = {
|
|
2918
2931
|
id: {
|
|
2919
2932
|
description: "The unique identifier for a Input Group",
|
|
2920
2933
|
type: "string"
|
|
@@ -3687,17 +3700,18 @@ const rs = "https://json-schema.org/draft/2020-12/schema", ss = "https://farris-
|
|
|
3687
3700
|
type: "string",
|
|
3688
3701
|
default: ""
|
|
3689
3702
|
}
|
|
3690
|
-
},
|
|
3703
|
+
}, ms = [
|
|
3691
3704
|
"id",
|
|
3692
|
-
"type"
|
|
3705
|
+
"type",
|
|
3706
|
+
"columns"
|
|
3693
3707
|
], Wo = {
|
|
3694
|
-
$schema:
|
|
3695
|
-
$id:
|
|
3696
|
-
title:
|
|
3697
|
-
description:
|
|
3698
|
-
type:
|
|
3699
|
-
properties:
|
|
3700
|
-
required:
|
|
3708
|
+
$schema: ss,
|
|
3709
|
+
$id: us,
|
|
3710
|
+
title: cs,
|
|
3711
|
+
description: ds,
|
|
3712
|
+
type: fs,
|
|
3713
|
+
properties: ps,
|
|
3714
|
+
required: ms
|
|
3701
3715
|
}, Cn = {
|
|
3702
3716
|
/** 列集合 */
|
|
3703
3717
|
columns: { type: Array, default: [] },
|
|
@@ -3812,9 +3826,9 @@ const rs = "https://json-schema.org/draft/2020-12/schema", ss = "https://farris-
|
|
|
3812
3826
|
autoCheckChildren: { type: Boolean, default: !1 },
|
|
3813
3827
|
/** 显示设置按钮 */
|
|
3814
3828
|
showSetting: { type: Boolean, default: !1 }
|
|
3815
|
-
},
|
|
3829
|
+
}, gs = Le(Cn, Wo, zo, Go), hs = Zl(), vs = Jl(), qo = Object.assign({}, Cn, { componentId: { type: String, default: "" } }), ys = Le(qo, Wo, zo, Go);
|
|
3816
3830
|
var Ae = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(Ae || {}), tt = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(tt || {}), vt = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(vt || {}), $e = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.filterable = 1] = "filterable", e[e.sortable = 2] = "sortable", e[e.filtered = 4] = "filtered", e[e.sorted = 8] = "sorted", e[e.ascending = 16] = "ascending", e[e.descending = 32] = "descending", e))($e || {}), Jt = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(Jt || {});
|
|
3817
|
-
function
|
|
3831
|
+
function bs() {
|
|
3818
3832
|
function e() {
|
|
3819
3833
|
return w("div", {
|
|
3820
3834
|
class: "fv-grid-disable"
|
|
@@ -3824,7 +3838,7 @@ function ys() {
|
|
|
3824
3838
|
renderDisableMask: e
|
|
3825
3839
|
};
|
|
3826
3840
|
}
|
|
3827
|
-
function
|
|
3841
|
+
function Cs(e, t, n, o, i) {
|
|
3828
3842
|
const {
|
|
3829
3843
|
columnContext: a
|
|
3830
3844
|
} = t, {
|
|
@@ -3882,7 +3896,7 @@ function bs(e, t, n, o, i) {
|
|
|
3882
3896
|
renderFilterPanel: C
|
|
3883
3897
|
};
|
|
3884
3898
|
}
|
|
3885
|
-
function
|
|
3899
|
+
function ws(e, t, n, o, i) {
|
|
3886
3900
|
const {
|
|
3887
3901
|
dropOnGroupPanel: a,
|
|
3888
3902
|
groupColumnItems: l
|
|
@@ -3902,7 +3916,7 @@ function Cs(e, t, n, o, i) {
|
|
|
3902
3916
|
class: "fv-grid-group-panel",
|
|
3903
3917
|
onDrop: a,
|
|
3904
3918
|
onDragover: p
|
|
3905
|
-
}, [l.value && w(
|
|
3919
|
+
}, [l.value && w(Je("f-tags"), {
|
|
3906
3920
|
ref: f,
|
|
3907
3921
|
style: "margin:0.375rem",
|
|
3908
3922
|
"tag-type": "default",
|
|
@@ -3992,7 +4006,7 @@ function wn(e, t) {
|
|
|
3992
4006
|
summaryCellPosition: r
|
|
3993
4007
|
};
|
|
3994
4008
|
}
|
|
3995
|
-
function
|
|
4009
|
+
function Ss(e, t, n) {
|
|
3996
4010
|
const { hasChildrenField: o } = n, i = y("#9399a0"), a = y(28);
|
|
3997
4011
|
function l() {
|
|
3998
4012
|
return [].concat(
|
|
@@ -4031,7 +4045,7 @@ function ws(e, t, n) {
|
|
|
4031
4045
|
}
|
|
4032
4046
|
return { hierarchyCellContentStyle: u, handleCollapsedPaddingBottom: c };
|
|
4033
4047
|
}
|
|
4034
|
-
function
|
|
4048
|
+
function xs(e, t, n) {
|
|
4035
4049
|
const o = y(e.iconField);
|
|
4036
4050
|
function i(a, l) {
|
|
4037
4051
|
if (o.value)
|
|
@@ -4058,7 +4072,7 @@ function Sn() {
|
|
|
4058
4072
|
}
|
|
4059
4073
|
return { updateRowPosition: e, updateVisualInfomation: t };
|
|
4060
4074
|
}
|
|
4061
|
-
function
|
|
4075
|
+
function Fs(e, t, n, o, i, a) {
|
|
4062
4076
|
const { dataView: l, fold: r, hasRealChildren: c, unFold: u } = o, { collapseField: f, hasChildrenField: s } = i, { updateRowPosition: p } = Sn();
|
|
4063
4077
|
function C(h, m) {
|
|
4064
4078
|
const d = m[h].layer;
|
|
@@ -4096,7 +4110,7 @@ function xs(e, t, n, o, i, a) {
|
|
|
4096
4110
|
}
|
|
4097
4111
|
return { toggleTreeNode: F };
|
|
4098
4112
|
}
|
|
4099
|
-
function
|
|
4113
|
+
function _s(e, t, n, o, i, a, l, r, c, u, f) {
|
|
4100
4114
|
const {
|
|
4101
4115
|
onClickCell: s
|
|
4102
4116
|
} = a, {
|
|
@@ -4122,7 +4136,7 @@ function Fs(e, t, n, o, i, a, l, r, c, u, f) {
|
|
|
4122
4136
|
shouldShowIcon: B
|
|
4123
4137
|
} = l, {
|
|
4124
4138
|
toggleTreeNode: O
|
|
4125
|
-
} =
|
|
4139
|
+
} = Fs(e, t, o, i, l), {
|
|
4126
4140
|
toggleSelectHierarchyItem: M
|
|
4127
4141
|
} = u, {
|
|
4128
4142
|
cellKey: E,
|
|
@@ -4131,9 +4145,9 @@ function Fs(e, t, n, o, i, a, l, r, c, u, f) {
|
|
|
4131
4145
|
rowPosition: $
|
|
4132
4146
|
} = wn(e, n), {
|
|
4133
4147
|
hierarchyCellContentStyle: L
|
|
4134
|
-
} =
|
|
4148
|
+
} = Ss(e, o, l), {
|
|
4135
4149
|
treeNodeIconsClass: N
|
|
4136
|
-
} =
|
|
4150
|
+
} = xs(e, S, T);
|
|
4137
4151
|
function H(W, K) {
|
|
4138
4152
|
const de = W.raw[T.value];
|
|
4139
4153
|
return {
|
|
@@ -4141,13 +4155,13 @@ function Fs(e, t, n, o, i, a, l, r, c, u, f) {
|
|
|
4141
4155
|
"fv-tree-node-toggle-minus": de && !W.collapse
|
|
4142
4156
|
};
|
|
4143
4157
|
}
|
|
4144
|
-
function
|
|
4158
|
+
function q(W, K) {
|
|
4145
4159
|
W.stopPropagation(), O(K);
|
|
4146
4160
|
}
|
|
4147
4161
|
function oe(W, K) {
|
|
4148
4162
|
return w("div", {
|
|
4149
4163
|
class: H(W),
|
|
4150
|
-
onClick: (de) =>
|
|
4164
|
+
onClick: (de) => q(de, W)
|
|
4151
4165
|
}, null);
|
|
4152
4166
|
}
|
|
4153
4167
|
function pe(W, K) {
|
|
@@ -4213,7 +4227,7 @@ function Fs(e, t, n, o, i, a, l, r, c, u, f) {
|
|
|
4213
4227
|
renderDataRow: we
|
|
4214
4228
|
};
|
|
4215
4229
|
}
|
|
4216
|
-
function
|
|
4230
|
+
function Uo(e, t, n) {
|
|
4217
4231
|
const {
|
|
4218
4232
|
horizontalScrollThumbStyle: o,
|
|
4219
4233
|
onMouseDownScrollThumb: i,
|
|
@@ -4232,7 +4246,7 @@ function qo(e, t, n) {
|
|
|
4232
4246
|
renderHorizontalScrollbar: l
|
|
4233
4247
|
};
|
|
4234
4248
|
}
|
|
4235
|
-
function
|
|
4249
|
+
function ks(e, t, n, o, i) {
|
|
4236
4250
|
const {
|
|
4237
4251
|
currentPage: a,
|
|
4238
4252
|
pageSize: l,
|
|
@@ -4374,7 +4388,7 @@ function Ko(e, t, n, o, i) {
|
|
|
4374
4388
|
renderDataGridSidebar: I
|
|
4375
4389
|
};
|
|
4376
4390
|
}
|
|
4377
|
-
function
|
|
4391
|
+
function Is(e, t, n) {
|
|
4378
4392
|
const {
|
|
4379
4393
|
columnContext: o
|
|
4380
4394
|
} = n, i = y(e.summary), a = R(() => {
|
|
@@ -4388,7 +4402,7 @@ function ks(e, t, n) {
|
|
|
4388
4402
|
class: "fv-datagird-summary-panel"
|
|
4389
4403
|
}, [w("span", {
|
|
4390
4404
|
class: "fv-datagrid-summary-title"
|
|
4391
|
-
}, [
|
|
4405
|
+
}, [qe("当页合计")]), w("div", {
|
|
4392
4406
|
class: "fv-datagrid-summary-content"
|
|
4393
4407
|
}, [o.value.summaryColumns.map((r) => w("div", {
|
|
4394
4408
|
class: "fv-datagrid-summary-field"
|
|
@@ -4421,7 +4435,7 @@ function Xo(e, t, n) {
|
|
|
4421
4435
|
renderVerticalScrollbar: l
|
|
4422
4436
|
};
|
|
4423
4437
|
}
|
|
4424
|
-
function
|
|
4438
|
+
function Ts() {
|
|
4425
4439
|
function e(o, i) {
|
|
4426
4440
|
switch (o.command) {
|
|
4427
4441
|
case "edit":
|
|
@@ -4446,27 +4460,27 @@ function Is() {
|
|
|
4446
4460
|
}
|
|
4447
4461
|
}
|
|
4448
4462
|
function n(o, i) {
|
|
4449
|
-
return w("div", null, [o.commands && o.commands.map((a) => e(a, i) && w(
|
|
4463
|
+
return w("div", null, [o.commands && o.commands.map((a) => e(a, i) && w(Je("f-button"), {
|
|
4450
4464
|
class: "ml-2",
|
|
4451
4465
|
type: a.type,
|
|
4452
4466
|
size: a.size || "small",
|
|
4453
4467
|
onClick: (l) => t(a, l, i)
|
|
4454
4468
|
}, {
|
|
4455
|
-
default: () => [
|
|
4469
|
+
default: () => [qe(" "), a.text, qe(" ")]
|
|
4456
4470
|
}))]);
|
|
4457
4471
|
}
|
|
4458
4472
|
return {
|
|
4459
4473
|
renderCommandColumn: n
|
|
4460
4474
|
};
|
|
4461
4475
|
}
|
|
4462
|
-
function
|
|
4476
|
+
function Ms(e) {
|
|
4463
4477
|
function t() {
|
|
4464
4478
|
return w("div", {
|
|
4465
4479
|
class: "d-flex flex-column f-datagrid-norecords"
|
|
4466
4480
|
}, [w("div", {
|
|
4467
4481
|
class: "f-datagrid-norecords-content",
|
|
4468
4482
|
style: "margin: 0;width: 100%;position: relative; top: 0"
|
|
4469
|
-
}, [
|
|
4483
|
+
}, [qe(" "), e.slots.empty && e.slots.empty() || "暂无数据"])]);
|
|
4470
4484
|
}
|
|
4471
4485
|
return {
|
|
4472
4486
|
renderEmpty: t
|
|
@@ -4594,23 +4608,23 @@ function Jo(e) {
|
|
|
4594
4608
|
updateColumnSettingIcon: r
|
|
4595
4609
|
};
|
|
4596
4610
|
}
|
|
4597
|
-
const
|
|
4611
|
+
const Os = [{
|
|
4598
4612
|
name: "是",
|
|
4599
4613
|
value: !0
|
|
4600
4614
|
}, {
|
|
4601
4615
|
name: "否",
|
|
4602
4616
|
value: !1
|
|
4603
4617
|
}];
|
|
4604
|
-
function
|
|
4618
|
+
function Bs(e) {
|
|
4605
4619
|
return e.filter = e.filter || function(t) {
|
|
4606
4620
|
return String(e.filterValue).split(",").includes(String(t[e.field]));
|
|
4607
|
-
}, w("div", null, [w(
|
|
4621
|
+
}, w("div", null, [w(Je("f-checkbox-group"), {
|
|
4608
4622
|
modelValue: e.filterValue,
|
|
4609
4623
|
"onUpdate:modelValue": (t) => e.filterValue = t,
|
|
4610
|
-
"enum-data":
|
|
4624
|
+
"enum-data": Os
|
|
4611
4625
|
}, null)]);
|
|
4612
4626
|
}
|
|
4613
|
-
const
|
|
4627
|
+
const Ps = y([{
|
|
4614
4628
|
name: "七天",
|
|
4615
4629
|
selectable: !0
|
|
4616
4630
|
}, {
|
|
@@ -4623,7 +4637,7 @@ const Bs = y([{
|
|
|
4623
4637
|
name: "半年",
|
|
4624
4638
|
selectable: !0
|
|
4625
4639
|
}]);
|
|
4626
|
-
function
|
|
4640
|
+
function Vs(e) {
|
|
4627
4641
|
const t = y(!1);
|
|
4628
4642
|
return e.filter = e.filter || function(n) {
|
|
4629
4643
|
const o = new Date(new Date(e.filterValue).toLocaleDateString()).valueOf();
|
|
@@ -4634,21 +4648,21 @@ function Ps(e) {
|
|
|
4634
4648
|
style: "display:flex;margin-bottom:6px;"
|
|
4635
4649
|
}, [w("label", {
|
|
4636
4650
|
style: "margin-right:8px"
|
|
4637
|
-
}, [
|
|
4651
|
+
}, [qe("按区间筛选")]), w(Je("f-switch"), {
|
|
4638
4652
|
modelValue: t.value,
|
|
4639
4653
|
"onUpdate:modelValue": (n) => t.value = n,
|
|
4640
4654
|
size: "small"
|
|
4641
|
-
}, null)]), w(
|
|
4655
|
+
}, null)]), w(Je("f-date-picker"), {
|
|
4642
4656
|
modelValue: e.filterValue,
|
|
4643
4657
|
"onUpdate:modelValue": (n) => e.filterValue = n
|
|
4644
|
-
}, null), w(
|
|
4658
|
+
}, null), w(Je("f-tags"), {
|
|
4645
4659
|
style: "margin-top:10px",
|
|
4646
|
-
data:
|
|
4660
|
+
data: Ps.value,
|
|
4647
4661
|
selectable: !0,
|
|
4648
4662
|
"tag-style": "capsule"
|
|
4649
4663
|
}, null)]);
|
|
4650
4664
|
}
|
|
4651
|
-
function
|
|
4665
|
+
function Es(e) {
|
|
4652
4666
|
e.filter = e.filter || function(n) {
|
|
4653
4667
|
const o = Number.parseFloat(e.filterValue), i = Number.parseFloat(n[e.field]);
|
|
4654
4668
|
return isNaN(o) ? isNaN(i) : o === i;
|
|
@@ -4656,14 +4670,14 @@ function Vs(e) {
|
|
|
4656
4670
|
function t(n) {
|
|
4657
4671
|
e.filterValue = n;
|
|
4658
4672
|
}
|
|
4659
|
-
return w("div", null, [w(
|
|
4673
|
+
return w("div", null, [w(Je("f-number-spinner"), {
|
|
4660
4674
|
"can-null": !0,
|
|
4661
4675
|
precision: "2",
|
|
4662
4676
|
value: e.filterValue,
|
|
4663
4677
|
onValueChange: t
|
|
4664
4678
|
}, null)]);
|
|
4665
4679
|
}
|
|
4666
|
-
function
|
|
4680
|
+
function Ds(e, t, n, o, i, a) {
|
|
4667
4681
|
e.filterHistory = e.filterHistory || i.getFilterHistory(e), e.filter = e.filter || function(p) {
|
|
4668
4682
|
return (p[e.field] || "").startsWith(e.filterValue);
|
|
4669
4683
|
};
|
|
@@ -4682,14 +4696,14 @@ function Es(e, t, n, o, i, a) {
|
|
|
4682
4696
|
}));
|
|
4683
4697
|
return w("div", {
|
|
4684
4698
|
style: "display:flex;flex-direction:column;"
|
|
4685
|
-
}, [w(
|
|
4699
|
+
}, [w(Je("f-search-box"), {
|
|
4686
4700
|
modelValue: e.filterValue,
|
|
4687
4701
|
"onUpdate:modelValue": (p) => e.filterValue = p,
|
|
4688
4702
|
"popup-host": t.value,
|
|
4689
4703
|
"popup-right-boundary": n.value,
|
|
4690
4704
|
"popup-offset-x": a.offsetX,
|
|
4691
4705
|
"recommended-data": s
|
|
4692
|
-
}, null), w(
|
|
4706
|
+
}, null), w(Je("f-tags"), {
|
|
4693
4707
|
style: "margin-top:10px",
|
|
4694
4708
|
"tag-type": "default",
|
|
4695
4709
|
data: e.filterHistory,
|
|
@@ -4700,7 +4714,7 @@ function Es(e, t, n, o, i, a) {
|
|
|
4700
4714
|
onChange: c
|
|
4701
4715
|
}, null)]);
|
|
4702
4716
|
}
|
|
4703
|
-
function
|
|
4717
|
+
function Rs(e, t, n, o, i, a) {
|
|
4704
4718
|
e.filter = e.filter || function(C) {
|
|
4705
4719
|
return String(e.filterValue).split(",").includes(String(C[e.field]));
|
|
4706
4720
|
};
|
|
@@ -4717,7 +4731,7 @@ function Ds(e, t, n, o, i, a) {
|
|
|
4717
4731
|
function p(C) {
|
|
4718
4732
|
e.filterValue = s(C);
|
|
4719
4733
|
}
|
|
4720
|
-
return w(
|
|
4734
|
+
return w(Je("f-list-view"), {
|
|
4721
4735
|
data: u,
|
|
4722
4736
|
"multi-select": !0,
|
|
4723
4737
|
"multi-select-mode": "OnCheckAndClick",
|
|
@@ -4728,10 +4742,10 @@ function Ds(e, t, n, o, i, a) {
|
|
|
4728
4742
|
"selection-values": f(e.filterValue),
|
|
4729
4743
|
onSelectChange: (C) => p(C)
|
|
4730
4744
|
}, {
|
|
4731
|
-
default: () => [
|
|
4745
|
+
default: () => [qe(" ")]
|
|
4732
4746
|
});
|
|
4733
4747
|
}
|
|
4734
|
-
function
|
|
4748
|
+
function $s(e) {
|
|
4735
4749
|
y("请输入关键词"), y('<i class="f-icon f-icon-search"></i>');
|
|
4736
4750
|
const t = [{
|
|
4737
4751
|
name: "发票类型",
|
|
@@ -4764,13 +4778,13 @@ function Rs(e) {
|
|
|
4764
4778
|
name: "所属单位",
|
|
4765
4779
|
checked: !1
|
|
4766
4780
|
}];
|
|
4767
|
-
return w(
|
|
4781
|
+
return w(Je("f-list-view"), {
|
|
4768
4782
|
data: t,
|
|
4769
4783
|
"multi-select": !0,
|
|
4770
4784
|
view: "SingleView",
|
|
4771
4785
|
size: "Small"
|
|
4772
4786
|
}, {
|
|
4773
|
-
default: () => [
|
|
4787
|
+
default: () => [qe(" ")]
|
|
4774
4788
|
});
|
|
4775
4789
|
}
|
|
4776
4790
|
function Qo(e, t, n, o, i) {
|
|
@@ -4784,12 +4798,12 @@ function Qo(e, t, n, o, i) {
|
|
|
4784
4798
|
["enum", "enum-filter"],
|
|
4785
4799
|
["reference", "list-filter"]
|
|
4786
4800
|
]), l = /* @__PURE__ */ new Map([
|
|
4787
|
-
["boolean-filter",
|
|
4788
|
-
["date-filter",
|
|
4789
|
-
["enum-filter",
|
|
4790
|
-
["list-filter",
|
|
4791
|
-
["numeric-filter",
|
|
4792
|
-
["text-filter",
|
|
4801
|
+
["boolean-filter", Bs],
|
|
4802
|
+
["date-filter", Vs],
|
|
4803
|
+
["enum-filter", Rs],
|
|
4804
|
+
["list-filter", $s],
|
|
4805
|
+
["numeric-filter", Es],
|
|
4806
|
+
["text-filter", Ds]
|
|
4793
4807
|
]);
|
|
4794
4808
|
function r(c) {
|
|
4795
4809
|
var p, C;
|
|
@@ -5119,7 +5133,7 @@ const oi = {
|
|
|
5119
5133
|
*/
|
|
5120
5134
|
isControlInline: { type: Boolean, default: !0 }
|
|
5121
5135
|
};
|
|
5122
|
-
class
|
|
5136
|
+
class Ns {
|
|
5123
5137
|
constructor(t = { value: [] }) {
|
|
5124
5138
|
A(this, "editorType", "check-box");
|
|
5125
5139
|
A(this, "value");
|
|
@@ -5139,7 +5153,7 @@ class $s {
|
|
|
5139
5153
|
return this.value.length === 0;
|
|
5140
5154
|
}
|
|
5141
5155
|
}
|
|
5142
|
-
class
|
|
5156
|
+
class js {
|
|
5143
5157
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
5144
5158
|
A(this, "editorType", "combo-lookup");
|
|
5145
5159
|
A(this, "textValue");
|
|
@@ -5159,11 +5173,11 @@ class Ns {
|
|
|
5159
5173
|
return t[n[0]];
|
|
5160
5174
|
}
|
|
5161
5175
|
getTextValue(t) {
|
|
5162
|
-
const n = t.split("."), o = this.value.split(",").map((i) => this.getPropValue(i,
|
|
5176
|
+
const n = t.split("."), o = this.value.split(",").map((i) => this.getPropValue(i, Ye(n)));
|
|
5163
5177
|
return o && o.length ? o.join(",") : "";
|
|
5164
5178
|
}
|
|
5165
5179
|
getValue() {
|
|
5166
|
-
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o,
|
|
5180
|
+
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, Ye(t)));
|
|
5167
5181
|
return n && n.length ? n.join(",") : "";
|
|
5168
5182
|
}
|
|
5169
5183
|
setValue(t) {
|
|
@@ -5173,7 +5187,7 @@ class Ns {
|
|
|
5173
5187
|
return !this.valueField;
|
|
5174
5188
|
}
|
|
5175
5189
|
}
|
|
5176
|
-
class
|
|
5190
|
+
class Ls {
|
|
5177
5191
|
constructor(t = { value: "" }) {
|
|
5178
5192
|
A(this, "editorType", "date-picker");
|
|
5179
5193
|
A(this, "value");
|
|
@@ -5214,7 +5228,7 @@ class An {
|
|
|
5214
5228
|
return !this.begin || !this.end;
|
|
5215
5229
|
}
|
|
5216
5230
|
}
|
|
5217
|
-
class
|
|
5231
|
+
class Hs {
|
|
5218
5232
|
constructor(t = { value: "" }) {
|
|
5219
5233
|
A(this, "editorType", "datetime-picker");
|
|
5220
5234
|
A(this, "value");
|
|
@@ -5234,7 +5248,7 @@ class Ls {
|
|
|
5234
5248
|
return !this.value;
|
|
5235
5249
|
}
|
|
5236
5250
|
}
|
|
5237
|
-
class
|
|
5251
|
+
class As {
|
|
5238
5252
|
// 旧结构无,新结构为选中的value值,多选是以,分割的字符串
|
|
5239
5253
|
constructor(t = { value: "", dispalyText: "" }) {
|
|
5240
5254
|
A(this, "editorType", "combo-list");
|
|
@@ -5257,7 +5271,7 @@ class Hs {
|
|
|
5257
5271
|
return !this.displayText && !this.value;
|
|
5258
5272
|
}
|
|
5259
5273
|
}
|
|
5260
|
-
class
|
|
5274
|
+
class zs {
|
|
5261
5275
|
constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
|
|
5262
5276
|
A(this, "editorType", "input-group");
|
|
5263
5277
|
// 通过弹窗返回的若干个值对象构成的数组
|
|
@@ -5282,21 +5296,21 @@ class As {
|
|
|
5282
5296
|
return t[n[0]];
|
|
5283
5297
|
}
|
|
5284
5298
|
getTextValue(t) {
|
|
5285
|
-
const n = t.split("."), o = this.value.map((i) => this.getPropValue(i,
|
|
5299
|
+
const n = t.split("."), o = this.value.map((i) => this.getPropValue(i, Ye(n)));
|
|
5286
5300
|
return o && o.length ? o.join(",") : "";
|
|
5287
5301
|
}
|
|
5288
5302
|
getValue() {
|
|
5289
|
-
const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o,
|
|
5303
|
+
const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, Ye(t)));
|
|
5290
5304
|
return n && n.length ? n.join(",") : "";
|
|
5291
5305
|
}
|
|
5292
5306
|
setValue(t) {
|
|
5293
5307
|
throw new Error("Method not implemented.");
|
|
5294
5308
|
}
|
|
5295
5309
|
isEmpty() {
|
|
5296
|
-
return !this.displayText && !this.value;
|
|
5310
|
+
return !this.displayText && !this.value.length;
|
|
5297
5311
|
}
|
|
5298
5312
|
}
|
|
5299
|
-
class
|
|
5313
|
+
class Gs {
|
|
5300
5314
|
constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
|
|
5301
5315
|
A(this, "editorType", "lookup");
|
|
5302
5316
|
A(this, "textValue");
|
|
@@ -5332,7 +5346,7 @@ class zs {
|
|
|
5332
5346
|
return !this.value.length;
|
|
5333
5347
|
}
|
|
5334
5348
|
}
|
|
5335
|
-
class
|
|
5349
|
+
class Ws {
|
|
5336
5350
|
constructor(t = { value: "" }) {
|
|
5337
5351
|
A(this, "editorType", "month-picker");
|
|
5338
5352
|
A(this, "value");
|
|
@@ -5352,7 +5366,7 @@ class Gs {
|
|
|
5352
5366
|
return !this.value;
|
|
5353
5367
|
}
|
|
5354
5368
|
}
|
|
5355
|
-
class
|
|
5369
|
+
class qs {
|
|
5356
5370
|
constructor(t = { begin: "", end: "" }) {
|
|
5357
5371
|
A(this, "editorType", "month-range");
|
|
5358
5372
|
A(this, "begin");
|
|
@@ -5397,7 +5411,7 @@ class Us {
|
|
|
5397
5411
|
return this.begin == null && this.end == null;
|
|
5398
5412
|
}
|
|
5399
5413
|
}
|
|
5400
|
-
class
|
|
5414
|
+
class Ks {
|
|
5401
5415
|
constructor(t = { value: "" }) {
|
|
5402
5416
|
A(this, "editorType", "number-spinner");
|
|
5403
5417
|
A(this, "value");
|
|
@@ -5414,10 +5428,10 @@ class qs {
|
|
|
5414
5428
|
this.value = isNaN(parseFloat(t)) ? null : t;
|
|
5415
5429
|
}
|
|
5416
5430
|
isEmpty() {
|
|
5417
|
-
return this.value == null;
|
|
5431
|
+
return this.value == null || isNaN(this.value);
|
|
5418
5432
|
}
|
|
5419
5433
|
}
|
|
5420
|
-
class
|
|
5434
|
+
class Xs {
|
|
5421
5435
|
constructor(t = { value: null }) {
|
|
5422
5436
|
A(this, "editorType", "radio-group");
|
|
5423
5437
|
A(this, "value");
|
|
@@ -5461,33 +5475,33 @@ function ai() {
|
|
|
5461
5475
|
function e(t, n) {
|
|
5462
5476
|
switch (t) {
|
|
5463
5477
|
case "check-box":
|
|
5464
|
-
return new
|
|
5478
|
+
return new Ns(n);
|
|
5465
5479
|
case "combo-list":
|
|
5466
|
-
return new
|
|
5480
|
+
return new As(n);
|
|
5467
5481
|
case "combo-lookup":
|
|
5468
|
-
return new
|
|
5482
|
+
return new js(n);
|
|
5469
5483
|
case "input-group":
|
|
5470
|
-
return new
|
|
5484
|
+
return new zs(n);
|
|
5471
5485
|
case "date-picker":
|
|
5472
|
-
return new
|
|
5486
|
+
return new Ls(n);
|
|
5473
5487
|
case "date-range":
|
|
5474
5488
|
return new An(n);
|
|
5475
5489
|
case "datetime-picker":
|
|
5476
|
-
return new
|
|
5490
|
+
return new Hs(n);
|
|
5477
5491
|
case "datetime-range":
|
|
5478
5492
|
return new An(n);
|
|
5479
5493
|
case "lookup":
|
|
5480
|
-
return new zs(n);
|
|
5481
|
-
case "month-picker":
|
|
5482
5494
|
return new Gs(n);
|
|
5483
|
-
case "month-
|
|
5495
|
+
case "month-picker":
|
|
5484
5496
|
return new Ws(n);
|
|
5497
|
+
case "month-range":
|
|
5498
|
+
return new qs(n);
|
|
5485
5499
|
case "number-range":
|
|
5486
5500
|
return new Us(n);
|
|
5487
5501
|
case "number-spinner":
|
|
5488
|
-
return new qs(n);
|
|
5489
|
-
case "radio-group":
|
|
5490
5502
|
return new Ks(n);
|
|
5503
|
+
case "radio-group":
|
|
5504
|
+
return new Xs(n);
|
|
5491
5505
|
default:
|
|
5492
5506
|
return new ii(n);
|
|
5493
5507
|
}
|
|
@@ -5526,7 +5540,7 @@ function li(e, t) {
|
|
|
5526
5540
|
}
|
|
5527
5541
|
return { convertToSingleControl: r, fields: n, fieldMap: i, fieldConditions: o, loadFieldConfigs: c, initialConditionValue: u };
|
|
5528
5542
|
}
|
|
5529
|
-
function
|
|
5543
|
+
function Ys(e, t, n) {
|
|
5530
5544
|
const o = y(null), i = y(n), a = y(0);
|
|
5531
5545
|
function l(f, s) {
|
|
5532
5546
|
let p = null;
|
|
@@ -5564,7 +5578,7 @@ const zn = /* @__PURE__ */ ge({
|
|
|
5564
5578
|
initialConditionValue: r,
|
|
5565
5579
|
fieldMap: c,
|
|
5566
5580
|
loadFieldConfigs: u
|
|
5567
|
-
} = l, f =
|
|
5581
|
+
} = l, f = Ys(e, t, n), {
|
|
5568
5582
|
conditionClass: s,
|
|
5569
5583
|
resizeObserver: p
|
|
5570
5584
|
} = f;
|
|
@@ -5606,10 +5620,10 @@ const zn = /* @__PURE__ */ ge({
|
|
|
5606
5620
|
}
|
|
5607
5621
|
}), xn = /* @__PURE__ */ new Map([
|
|
5608
5622
|
["appearance", ot]
|
|
5609
|
-
]),
|
|
5623
|
+
]), Js = /* @__PURE__ */ new Map([]);
|
|
5610
5624
|
var ri = /* @__PURE__ */ ((e) => (e.SimpleField = "SimpleField", e.ComplexField = "ComplexField", e))(ri || {}), Pt = /* @__PURE__ */ ((e) => (e.String = "String", e.DateTime = "DateTime", e.Date = "Date", e.Enum = "Enum", e.Boolean = "Boolean", e.Number = "Number", e.Text = "Text", e.BigNumber = "BigNumber", e))(Pt || {});
|
|
5611
|
-
const
|
|
5612
|
-
class
|
|
5625
|
+
const Qs = "root-viewmodel";
|
|
5626
|
+
class Zs {
|
|
5613
5627
|
constructor(t, n) {
|
|
5614
5628
|
A(this, "formSchemaUtils");
|
|
5615
5629
|
A(this, "controlCreatorUtils");
|
|
@@ -5666,7 +5680,7 @@ class Qs {
|
|
|
5666
5680
|
}), n.contents = [o];
|
|
5667
5681
|
const { selectedFields: a } = t;
|
|
5668
5682
|
a == null || a.forEach((r) => {
|
|
5669
|
-
const c =
|
|
5683
|
+
const c = Ye(r), u = this.resolveControlClassByFormColumns(t), f = this.controlCreatorUtils.setFormFieldProperty(c, "", u);
|
|
5670
5684
|
f && i.push(f);
|
|
5671
5685
|
});
|
|
5672
5686
|
const { templateId: l } = this.formSchemaUtils.getFormSchema().module;
|
|
@@ -5703,7 +5717,7 @@ class Qs {
|
|
|
5703
5717
|
code: `${t.componentId}-component-viewmodel`,
|
|
5704
5718
|
name: t.componentName,
|
|
5705
5719
|
bindTo: t.bindTo,
|
|
5706
|
-
parent:
|
|
5720
|
+
parent: Qs,
|
|
5707
5721
|
fields: this.assembleViewModelFields(t),
|
|
5708
5722
|
commands: [],
|
|
5709
5723
|
states: [],
|
|
@@ -5730,7 +5744,7 @@ class Qs {
|
|
|
5730
5744
|
}), n;
|
|
5731
5745
|
}
|
|
5732
5746
|
}
|
|
5733
|
-
function
|
|
5747
|
+
function eu(e, t, n, o) {
|
|
5734
5748
|
var a, l, r, c, u;
|
|
5735
5749
|
const i = n.parentComponentInstance;
|
|
5736
5750
|
if (i && o) {
|
|
@@ -5743,14 +5757,14 @@ function Zs(e, t, n, o) {
|
|
|
5743
5757
|
bindTo: ((c = n.bindingSourceContext) == null ? void 0 : c.bindTo) || "/",
|
|
5744
5758
|
selectedFields: (u = n.bindingSourceContext) == null ? void 0 : u.bindingEntityFields
|
|
5745
5759
|
};
|
|
5746
|
-
return new
|
|
5760
|
+
return new Zs(e, o).createComponent(p);
|
|
5747
5761
|
} else
|
|
5748
5762
|
return t;
|
|
5749
5763
|
}
|
|
5750
|
-
function
|
|
5764
|
+
function tu(e, t, n) {
|
|
5751
5765
|
return t;
|
|
5752
5766
|
}
|
|
5753
|
-
const
|
|
5767
|
+
const nu = "https://json-schema.org/draft/2020-12/schema", ou = "https://farris-design.gitee.io/response-form.schema.json", iu = "response-form", au = "A Farris Data Collection Component", lu = "object", ru = {
|
|
5754
5768
|
id: {
|
|
5755
5769
|
description: "The unique identifier for a form group",
|
|
5756
5770
|
type: "string"
|
|
@@ -5778,23 +5792,24 @@ const tu = "https://json-schema.org/draft/2020-12/schema", nu = "https://farris-
|
|
|
5778
5792
|
type: "array",
|
|
5779
5793
|
default: []
|
|
5780
5794
|
}
|
|
5781
|
-
},
|
|
5795
|
+
}, su = [
|
|
5782
5796
|
"id",
|
|
5783
|
-
"type"
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
$
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5797
|
+
"type",
|
|
5798
|
+
"contents"
|
|
5799
|
+
], uu = {
|
|
5800
|
+
$schema: nu,
|
|
5801
|
+
$id: ou,
|
|
5802
|
+
title: iu,
|
|
5803
|
+
description: au,
|
|
5804
|
+
type: lu,
|
|
5805
|
+
properties: ru,
|
|
5806
|
+
required: su
|
|
5807
|
+
}, cu = {
|
|
5793
5808
|
customClass: { type: String, default: "" },
|
|
5794
5809
|
customStyle: { type: String, defaut: "" }
|
|
5795
5810
|
};
|
|
5796
|
-
Le(
|
|
5797
|
-
const
|
|
5811
|
+
Le(cu, uu, xn, eu);
|
|
5812
|
+
const du = "https://json-schema.org/draft/2020-12/schema", fu = "https://farris-design.gitee.io/form-group.schema.json", pu = "form-group", mu = "A Farris Input Component", gu = "object", hu = {
|
|
5798
5813
|
id: {
|
|
5799
5814
|
description: "The unique identifier for a form group",
|
|
5800
5815
|
type: "string"
|
|
@@ -5824,7 +5839,8 @@ const cu = "https://json-schema.org/draft/2020-12/schema", du = "https://farris-
|
|
|
5824
5839
|
},
|
|
5825
5840
|
editor: {
|
|
5826
5841
|
description: "",
|
|
5827
|
-
type: "obejct"
|
|
5842
|
+
type: "obejct",
|
|
5843
|
+
default: {}
|
|
5828
5844
|
},
|
|
5829
5845
|
label: {
|
|
5830
5846
|
description: "",
|
|
@@ -5840,17 +5856,18 @@ const cu = "https://json-schema.org/draft/2020-12/schema", du = "https://farris-
|
|
|
5840
5856
|
type: "object",
|
|
5841
5857
|
default: {}
|
|
5842
5858
|
}
|
|
5843
|
-
},
|
|
5859
|
+
}, vu = [
|
|
5844
5860
|
"id",
|
|
5845
|
-
"type"
|
|
5861
|
+
"type",
|
|
5862
|
+
"editor"
|
|
5846
5863
|
], si = {
|
|
5847
|
-
$schema:
|
|
5848
|
-
$id:
|
|
5849
|
-
title:
|
|
5850
|
-
description:
|
|
5851
|
-
type:
|
|
5852
|
-
properties:
|
|
5853
|
-
required:
|
|
5864
|
+
$schema: du,
|
|
5865
|
+
$id: fu,
|
|
5866
|
+
title: pu,
|
|
5867
|
+
description: mu,
|
|
5868
|
+
type: gu,
|
|
5869
|
+
properties: hu,
|
|
5870
|
+
required: vu
|
|
5854
5871
|
}, ui = {
|
|
5855
5872
|
id: { type: String, default: "" },
|
|
5856
5873
|
customClass: { type: String, default: "" },
|
|
@@ -5872,7 +5889,7 @@ Le(
|
|
|
5872
5889
|
xn,
|
|
5873
5890
|
void 0
|
|
5874
5891
|
);
|
|
5875
|
-
function
|
|
5892
|
+
function yu() {
|
|
5876
5893
|
function e(t, n) {
|
|
5877
5894
|
var l;
|
|
5878
5895
|
if (!t)
|
|
@@ -5887,14 +5904,14 @@ function vu() {
|
|
|
5887
5904
|
basalDragulaRuleForContainer: e
|
|
5888
5905
|
};
|
|
5889
5906
|
}
|
|
5890
|
-
const
|
|
5907
|
+
const bu = {
|
|
5891
5908
|
id: { type: String },
|
|
5892
5909
|
required: { type: Boolean, default: !1 },
|
|
5893
5910
|
text: { type: String, default: "" },
|
|
5894
5911
|
title: { type: String }
|
|
5895
|
-
},
|
|
5912
|
+
}, Cu = /* @__PURE__ */ ge({
|
|
5896
5913
|
name: "FDynamicFormLabel",
|
|
5897
|
-
props:
|
|
5914
|
+
props: bu,
|
|
5898
5915
|
emits: [],
|
|
5899
5916
|
setup(e, t) {
|
|
5900
5917
|
const n = y(e.title || e.text), o = y(e.required), i = y(e.text);
|
|
@@ -5907,17 +5924,17 @@ const yu = {
|
|
|
5907
5924
|
title: n.value
|
|
5908
5925
|
}, [o.value && w("span", {
|
|
5909
5926
|
class: "farris-label-info text-danger"
|
|
5910
|
-
}, [
|
|
5927
|
+
}, [qe("*")]), w("span", {
|
|
5911
5928
|
class: "farris-label-text"
|
|
5912
5929
|
}, [i.value])]);
|
|
5913
5930
|
}
|
|
5914
|
-
}),
|
|
5931
|
+
}), wu = /* @__PURE__ */ new Map([
|
|
5915
5932
|
["appearance", ot]
|
|
5916
5933
|
]);
|
|
5917
|
-
function
|
|
5934
|
+
function Su(e, t, n) {
|
|
5918
5935
|
return t;
|
|
5919
5936
|
}
|
|
5920
|
-
const
|
|
5937
|
+
const xu = "https://json-schema.org/draft/2020-12/schema", Fu = "https://farris-design.gitee.io/input-group.schema.json", _u = "input-group", ku = "A Farris Input Component", Iu = "object", Tu = {
|
|
5921
5938
|
id: {
|
|
5922
5939
|
description: "The unique identifier for a Input Group",
|
|
5923
5940
|
type: "string"
|
|
@@ -6114,23 +6131,22 @@ const Su = "https://json-schema.org/draft/2020-12/schema", xu = "https://farris-
|
|
|
6114
6131
|
type: "string",
|
|
6115
6132
|
default: ""
|
|
6116
6133
|
}
|
|
6117
|
-
},
|
|
6118
|
-
"id",
|
|
6134
|
+
}, Mu = [
|
|
6119
6135
|
"type"
|
|
6120
|
-
],
|
|
6136
|
+
], Ou = [
|
|
6121
6137
|
"id",
|
|
6122
6138
|
"appearance",
|
|
6123
6139
|
"binding",
|
|
6124
6140
|
"visible"
|
|
6125
|
-
],
|
|
6126
|
-
$schema:
|
|
6127
|
-
$id:
|
|
6128
|
-
title:
|
|
6129
|
-
description:
|
|
6130
|
-
type:
|
|
6131
|
-
properties:
|
|
6132
|
-
required:
|
|
6133
|
-
ignore:
|
|
6141
|
+
], Bu = {
|
|
6142
|
+
$schema: xu,
|
|
6143
|
+
$id: Fu,
|
|
6144
|
+
title: _u,
|
|
6145
|
+
description: ku,
|
|
6146
|
+
type: Iu,
|
|
6147
|
+
properties: Tu,
|
|
6148
|
+
required: Mu,
|
|
6149
|
+
ignore: Ou
|
|
6134
6150
|
}, ci = {
|
|
6135
6151
|
id: { Type: String, default: "" },
|
|
6136
6152
|
/** 是否自动完成 */
|
|
@@ -6199,15 +6215,15 @@ const Su = "https://json-schema.org/draft/2020-12/schema", xu = "https://farris-
|
|
|
6199
6215
|
*/
|
|
6200
6216
|
updateOn: { type: String, default: "blur" }
|
|
6201
6217
|
};
|
|
6202
|
-
Le(ci,
|
|
6203
|
-
function
|
|
6218
|
+
Le(ci, Bu, wu, Su);
|
|
6219
|
+
function Pu(e, t) {
|
|
6204
6220
|
const n = y(e.groupText), o = R(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), i = R(() => e.enableClear || !!e.groupText);
|
|
6205
6221
|
return { appendedButtonClass: R(() => ({
|
|
6206
6222
|
"input-group-append": !0,
|
|
6207
6223
|
"append-force-show": o.value
|
|
6208
6224
|
})), appendedContent: n, shouldShowAppendedButton: i };
|
|
6209
6225
|
}
|
|
6210
|
-
function
|
|
6226
|
+
function Vu(e, t, n, o) {
|
|
6211
6227
|
const { appendedContent: i } = o, a = y(e.enableViewPassword), l = R(() => e.type === "password"), r = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', c = '<span class="f-icon f-icon-eye"></span>', u = y(!1);
|
|
6212
6228
|
G(() => [e.readonly, e.disabled], ([p, C]) => {
|
|
6213
6229
|
l.value && (n.value = p || C ? "password" : n.value, i.value = p || C ? c : i.value);
|
|
@@ -6220,7 +6236,7 @@ function Pu(e, t, n, o) {
|
|
|
6220
6236
|
}
|
|
6221
6237
|
return s(), { isPassword: l, onClickAppendedButton: f };
|
|
6222
6238
|
}
|
|
6223
|
-
function
|
|
6239
|
+
function Eu(e, t, n) {
|
|
6224
6240
|
const o = y(), {
|
|
6225
6241
|
onBlurTextBox: i,
|
|
6226
6242
|
onFocusTextBox: a,
|
|
@@ -6260,7 +6276,7 @@ function Vu(e, t, n) {
|
|
|
6260
6276
|
onKeydown: r
|
|
6261
6277
|
}, null);
|
|
6262
6278
|
}
|
|
6263
|
-
function
|
|
6279
|
+
function Du(e, t, n) {
|
|
6264
6280
|
const {
|
|
6265
6281
|
canDownward: o,
|
|
6266
6282
|
canUpward: i,
|
|
@@ -6301,12 +6317,12 @@ function Eu(e, t, n) {
|
|
|
6301
6317
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
6302
6318
|
}, null)])]);
|
|
6303
6319
|
}
|
|
6304
|
-
function
|
|
6305
|
-
const n = Ga(e, t), o = Wa(e, t, n), i =
|
|
6320
|
+
function Ru(e, t) {
|
|
6321
|
+
const n = Ga(e, t), o = Wa(e, t, n), i = qa(e, t, o, n), a = Ua(e, t, o, n, i), l = Du(e, t, i), {
|
|
6306
6322
|
displayValue: r,
|
|
6307
6323
|
modelValue: c,
|
|
6308
6324
|
getRealValue: u
|
|
6309
|
-
} = n, f =
|
|
6325
|
+
} = n, f = Eu(e, t, a), {
|
|
6310
6326
|
format: s
|
|
6311
6327
|
} = o, {
|
|
6312
6328
|
isFocus: p
|
|
@@ -6325,7 +6341,7 @@ function Du(e, t) {
|
|
|
6325
6341
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
6326
6342
|
}, [f(), C.value && l()]);
|
|
6327
6343
|
}
|
|
6328
|
-
function
|
|
6344
|
+
function $u(e, t, n, o) {
|
|
6329
6345
|
const i = y(), a = y(e.autocomplete), l = y(e.enableTitle), {
|
|
6330
6346
|
isPassword: r
|
|
6331
6347
|
} = n, c = y(e.minLength), u = y(e.maxLength), f = y(e.tabIndex), {
|
|
@@ -6371,7 +6387,7 @@ function Ru(e, t, n, o) {
|
|
|
6371
6387
|
onMousedown: k
|
|
6372
6388
|
}, null);
|
|
6373
6389
|
}
|
|
6374
|
-
function
|
|
6390
|
+
function Nu(e, t) {
|
|
6375
6391
|
const n = R(() => e.useExtendInfo && !!e.extendInfo), o = ze({
|
|
6376
6392
|
content: e.extendInfo
|
|
6377
6393
|
});
|
|
@@ -6387,7 +6403,7 @@ function $u(e, t) {
|
|
|
6387
6403
|
class: "tips-arrow"
|
|
6388
6404
|
}, null)]), [[da("tooltip"), o]]);
|
|
6389
6405
|
}
|
|
6390
|
-
function
|
|
6406
|
+
function ju(e, t, n, o, i) {
|
|
6391
6407
|
const {
|
|
6392
6408
|
appendedButtonClass: a,
|
|
6393
6409
|
appendedContent: l
|
|
@@ -6439,7 +6455,7 @@ function Nu(e, t, n, o, i) {
|
|
|
6439
6455
|
class: a.value
|
|
6440
6456
|
}, [C.value && v(), _ && _()]);
|
|
6441
6457
|
}
|
|
6442
|
-
const
|
|
6458
|
+
const Lu = /* @__PURE__ */ ge({
|
|
6443
6459
|
name: "FInputGroup",
|
|
6444
6460
|
props: ci,
|
|
6445
6461
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
@@ -6448,12 +6464,12 @@ const ju = /* @__PURE__ */ ge({
|
|
|
6448
6464
|
inputGroupClass: a,
|
|
6449
6465
|
inputType: l,
|
|
6450
6466
|
inputGroupStyle: r
|
|
6451
|
-
} = i, c =
|
|
6467
|
+
} = i, c = Pu(e), {
|
|
6452
6468
|
shouldShowAppendedButton: u
|
|
6453
6469
|
} = c, f = $a(e, t, i), {
|
|
6454
6470
|
onMouseEnter: s,
|
|
6455
6471
|
onMouseLeave: p
|
|
6456
|
-
} = f, C =
|
|
6472
|
+
} = f, C = Vu(e, t, l, c), v = Ru(e, t), F = $u(e, t, C, i), h = ju(e, t, c, f, C), m = Nu(e, t), d = R(() => e.type === "number");
|
|
6457
6473
|
G(() => [e.value], ([k]) => {
|
|
6458
6474
|
n.value = k, o.value = k;
|
|
6459
6475
|
}), G(() => [e.modelValue], ([k]) => {
|
|
@@ -6461,24 +6477,24 @@ const ju = /* @__PURE__ */ ge({
|
|
|
6461
6477
|
}), ke(() => {
|
|
6462
6478
|
e.value && (n.value = e.value, o.value = e.value);
|
|
6463
6479
|
});
|
|
6464
|
-
const g = () => w(
|
|
6480
|
+
const g = () => w(Qe, null, [w("div", {
|
|
6465
6481
|
id: e.id,
|
|
6466
6482
|
class: a.value,
|
|
6467
6483
|
style: r.value,
|
|
6468
6484
|
onMouseenter: s,
|
|
6469
6485
|
onMouseleave: p
|
|
6470
|
-
}, [d.value ? v() : w(
|
|
6486
|
+
}, [d.value ? v() : w(Qe, null, [m(), F(), u.value && h()])])]);
|
|
6471
6487
|
return () => g();
|
|
6472
6488
|
}
|
|
6473
6489
|
}), Q = {}, Z = {}, ee = {}, te = {};
|
|
6474
6490
|
let Gn = !1;
|
|
6475
|
-
function
|
|
6491
|
+
function Hu() {
|
|
6476
6492
|
Gn || (Gn = !0, Xa.register(Q, Z, ee, te), Ka.register(Q, Z, ee, te), Io.register(Q, Z, ee, te), Ya.register(Q, Z, ee, te), Ja.register(Q, Z, ee, te), Qa.register(Q, Z, ee, te), Oa.register(Q, Z, ee, te), Xt.register(Q, Z, ee, te), Za.register(Q, Z, ee, te), el.register(Q, Z, ee, te), nl.register(Q, Z, ee, te), tl.register(Q, Z, ee, te), ol.register(Q, Z, ee, te), il.register(Q, Z, ee, te), al.register(Q, Z, ee, te), Va.register(Q, Z, ee, te), ll.register(Q, Z, ee, te), Ba.register(Q, Z, ee, te), rl.register(Q, Z, ee, te), ul.register(Q, Z, ee, te), cl.register(Q, Z, ee, te), dl.register(Q, Z, ee, te), To.register(Q, Z, ee, te), fl.register(Q, Z, ee, te), pl.register(Q, Z, ee, te), ml.register(Q, Z, ee, te), gl.register(Q, Z, ee, te), hl.register(Q, Z, ee, te), za.register(Q, Z, ee, te), Ma.register(Q, Z, ee, te), vl.register(Q, Z, ee, te), yl.register(Q, Z, ee, te), ko.register(Q, Z, ee, te), bl.register(Q, Z, ee, te), Cl.register(Q, Z, ee, te), wl.register(Q, Z, ee, te), Sl.register(Q, Z, ee, te), Fl.register(Q, Z, ee, te), _l.register(Q, Z, ee, te), xl.register(Q, Z, ee, te), Ll.register(Q, Z, ee), kl.register(Q, Z, ee, te), Il.register(Q, Z, ee, te), Tl.register(Q, Z, ee, te), Ml.register(Q, Z, ee, te), Ol.register(Q, Z, ee, te), Bl.register(Q, Z, ee, te), Ta.register(Q, Z, ee, te), to.register(Q, Z, ee, te), Pl.register(Q, Z, ee, te), Vl.register(Q, Z, ee, te), Ia.register(Q, Z, ee, te), El.register(Q, Z, ee, te), Rl.register(Q, Z, ee, te), Dl.register(Q, Z, ee, te), $l.register(Q, Z, ee, te), Nl.register(Q, Z, ee, te), jl.register(Q, Z, ee, te), Hl.register(Q, Z, ee, te), sl.register(Q, Z, ee, te), Al.register(Q, Z, ee, te));
|
|
6477
6493
|
}
|
|
6478
|
-
function
|
|
6479
|
-
|
|
6494
|
+
function Au() {
|
|
6495
|
+
Hu();
|
|
6480
6496
|
function e(i) {
|
|
6481
|
-
return Q[i] ||
|
|
6497
|
+
return Q[i] || Lu;
|
|
6482
6498
|
}
|
|
6483
6499
|
function t(i, a) {
|
|
6484
6500
|
const l = Z[i];
|
|
@@ -6558,7 +6574,7 @@ function Hu() {
|
|
|
6558
6574
|
}
|
|
6559
6575
|
return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
|
|
6560
6576
|
}
|
|
6561
|
-
const
|
|
6577
|
+
const zu = /* @__PURE__ */ ge({
|
|
6562
6578
|
name: "FDynamicFormGroup",
|
|
6563
6579
|
props: ui,
|
|
6564
6580
|
emits: ["change", "update:modelValue"],
|
|
@@ -6570,7 +6586,7 @@ const Au = /* @__PURE__ */ ge({
|
|
|
6570
6586
|
resolveEditorType: C,
|
|
6571
6587
|
getChangeFunctionName: v,
|
|
6572
6588
|
getClearFunctionName: F
|
|
6573
|
-
} =
|
|
6589
|
+
} = Au(), h = R(() => ({
|
|
6574
6590
|
"form-group": !0,
|
|
6575
6591
|
"farris-form-group": !0,
|
|
6576
6592
|
"common-group": !0,
|
|
@@ -6603,7 +6619,7 @@ const Au = /* @__PURE__ */ ge({
|
|
|
6603
6619
|
class: "farris-group-wrap"
|
|
6604
6620
|
}, [w("div", {
|
|
6605
6621
|
class: h.value
|
|
6606
|
-
}, [u.value && w(
|
|
6622
|
+
}, [u.value && w(Cu, {
|
|
6607
6623
|
id: `${n.value}-lable`,
|
|
6608
6624
|
required: c.value,
|
|
6609
6625
|
text: a.value,
|
|
@@ -6612,8 +6628,8 @@ const Au = /* @__PURE__ */ ge({
|
|
|
6612
6628
|
class: "farris-input-wrap"
|
|
6613
6629
|
}, [g.value()])])])]);
|
|
6614
6630
|
}
|
|
6615
|
-
}),
|
|
6616
|
-
class
|
|
6631
|
+
}), Gu = {}, Wu = {};
|
|
6632
|
+
class qu extends Xe {
|
|
6617
6633
|
constructor(t, n) {
|
|
6618
6634
|
super(t, n);
|
|
6619
6635
|
}
|
|
@@ -6639,7 +6655,7 @@ Le(
|
|
|
6639
6655
|
xn,
|
|
6640
6656
|
void 0
|
|
6641
6657
|
);
|
|
6642
|
-
const
|
|
6658
|
+
const Ku = "https://json-schema.org/draft/2020-12/schema", Xu = "https://farris-design.gitee.io/grid-field-editor.schema.json", Yu = "response-form-layout-setting", Ju = "A Farris Data Grid Component", Qu = "object", Zu = {
|
|
6643
6659
|
id: {
|
|
6644
6660
|
description: "The unique identifier for a Input Group",
|
|
6645
6661
|
type: "string"
|
|
@@ -6659,18 +6675,18 @@ const qu = "https://json-schema.org/draft/2020-12/schema", Ku = "https://farris-
|
|
|
6659
6675
|
type: "Object",
|
|
6660
6676
|
default: null
|
|
6661
6677
|
}
|
|
6662
|
-
},
|
|
6678
|
+
}, ec = [
|
|
6663
6679
|
"id",
|
|
6664
6680
|
"type"
|
|
6665
|
-
],
|
|
6666
|
-
$schema:
|
|
6667
|
-
$id:
|
|
6668
|
-
title:
|
|
6669
|
-
description:
|
|
6670
|
-
type:
|
|
6671
|
-
properties:
|
|
6672
|
-
required:
|
|
6673
|
-
},
|
|
6681
|
+
], tc = {
|
|
6682
|
+
$schema: Ku,
|
|
6683
|
+
$id: Xu,
|
|
6684
|
+
title: Yu,
|
|
6685
|
+
description: Ju,
|
|
6686
|
+
type: Qu,
|
|
6687
|
+
properties: Zu,
|
|
6688
|
+
required: ec
|
|
6689
|
+
}, nc = {
|
|
6674
6690
|
initialState: {
|
|
6675
6691
|
type: Object,
|
|
6676
6692
|
default: {
|
|
@@ -6681,8 +6697,8 @@ const qu = "https://json-schema.org/draft/2020-12/schema", Ku = "https://farris-
|
|
|
6681
6697
|
}
|
|
6682
6698
|
}
|
|
6683
6699
|
};
|
|
6684
|
-
ya(
|
|
6685
|
-
const
|
|
6700
|
+
ya(nc, tc, Js, tu);
|
|
6701
|
+
const oc = {
|
|
6686
6702
|
width: { Type: Number, default: 400 },
|
|
6687
6703
|
type: { Type: String, default: "info" },
|
|
6688
6704
|
title: { Type: String, default: "" },
|
|
@@ -6695,12 +6711,12 @@ const nc = {
|
|
|
6695
6711
|
function Fn() {
|
|
6696
6712
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
6697
6713
|
}
|
|
6698
|
-
async function
|
|
6714
|
+
async function ic(e) {
|
|
6699
6715
|
if (!navigator.clipboard)
|
|
6700
6716
|
throw Fn();
|
|
6701
6717
|
return navigator.clipboard.writeText(e);
|
|
6702
6718
|
}
|
|
6703
|
-
async function
|
|
6719
|
+
async function ac(e) {
|
|
6704
6720
|
const t = document.createElement("span");
|
|
6705
6721
|
t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
|
|
6706
6722
|
const n = window.getSelection(), o = window.document.createRange();
|
|
@@ -6714,24 +6730,24 @@ async function ic(e) {
|
|
|
6714
6730
|
if (!i)
|
|
6715
6731
|
throw Fn();
|
|
6716
6732
|
}
|
|
6717
|
-
async function
|
|
6733
|
+
async function lc(e) {
|
|
6718
6734
|
try {
|
|
6719
|
-
await
|
|
6735
|
+
await ic(e);
|
|
6720
6736
|
} catch (t) {
|
|
6721
6737
|
try {
|
|
6722
|
-
await
|
|
6738
|
+
await ac(e);
|
|
6723
6739
|
} catch (n) {
|
|
6724
6740
|
throw n || t || Fn();
|
|
6725
6741
|
}
|
|
6726
6742
|
}
|
|
6727
6743
|
}
|
|
6728
|
-
function
|
|
6744
|
+
function rc() {
|
|
6729
6745
|
async function e(t) {
|
|
6730
|
-
await
|
|
6746
|
+
await lc(t);
|
|
6731
6747
|
}
|
|
6732
6748
|
return { onCopy: e };
|
|
6733
6749
|
}
|
|
6734
|
-
function
|
|
6750
|
+
function sc(e, t, n, o) {
|
|
6735
6751
|
const i = y(14), a = y(140), l = y(""), r = y(o.value.length), c = R(() => o.value), u = R(() => ({
|
|
6736
6752
|
"font-size": `${i.value}px`,
|
|
6737
6753
|
height: "100%"
|
|
@@ -6742,7 +6758,7 @@ function rc(e, t, n, o) {
|
|
|
6742
6758
|
r.value = p.length;
|
|
6743
6759
|
}
|
|
6744
6760
|
}
|
|
6745
|
-
return () => w(
|
|
6761
|
+
return () => w(Qe, null, [w("textarea", {
|
|
6746
6762
|
title: "promptMessage",
|
|
6747
6763
|
name: "promptMessage",
|
|
6748
6764
|
class: "form-control",
|
|
@@ -6756,14 +6772,14 @@ function rc(e, t, n, o) {
|
|
|
6756
6772
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
6757
6773
|
}, [r.value + " / " + a.value])]);
|
|
6758
6774
|
}
|
|
6759
|
-
function
|
|
6760
|
-
const i =
|
|
6775
|
+
function uc(e, t, n, o) {
|
|
6776
|
+
const i = sc(e, t, n, o), a = /* @__PURE__ */ new Map([["text-area", i]]);
|
|
6761
6777
|
function l(r) {
|
|
6762
6778
|
return a.get(r) || null;
|
|
6763
6779
|
}
|
|
6764
6780
|
return { getEditorRender: l };
|
|
6765
6781
|
}
|
|
6766
|
-
function
|
|
6782
|
+
function cc() {
|
|
6767
6783
|
const e = y(!1), t = y("复制成功");
|
|
6768
6784
|
return {
|
|
6769
6785
|
feedbackStyle: R(() => {
|
|
@@ -6789,11 +6805,11 @@ function uc() {
|
|
|
6789
6805
|
toShowFeedback: e
|
|
6790
6806
|
};
|
|
6791
6807
|
}
|
|
6792
|
-
function
|
|
6808
|
+
function dc(e, t) {
|
|
6793
6809
|
const n = t.getEditorRender(e.promptEditorType);
|
|
6794
6810
|
return () => n && n();
|
|
6795
6811
|
}
|
|
6796
|
-
function
|
|
6812
|
+
function fc(e) {
|
|
6797
6813
|
const t = y(3), n = y(480), o = R(() => !!e.value && !!e.value.date), i = R(() => `发生时间 : ${e.value && e.value.date || ""}`), a = R(() => !!e.value && !!e.value.detail), l = R(() => {
|
|
6798
6814
|
const h = `${n.value}px`;
|
|
6799
6815
|
return {
|
|
@@ -6826,7 +6842,7 @@ function dc(e) {
|
|
|
6826
6842
|
id: "exception_error_msg",
|
|
6827
6843
|
ref: "exceptionMessageRef",
|
|
6828
6844
|
style: l.value
|
|
6829
|
-
}, [
|
|
6845
|
+
}, [qe("详细信息 : "), w("span", {
|
|
6830
6846
|
innerHTML: r.value
|
|
6831
6847
|
}, null)]), c.value && w("span", {
|
|
6832
6848
|
style: p.value
|
|
@@ -6838,13 +6854,13 @@ function dc(e) {
|
|
|
6838
6854
|
style: "cursor: pointer;"
|
|
6839
6855
|
}, [f.value])])]);
|
|
6840
6856
|
}
|
|
6841
|
-
function
|
|
6857
|
+
function pc(e) {
|
|
6842
6858
|
return () => w("p", {
|
|
6843
6859
|
class: "toast-msg-detail",
|
|
6844
6860
|
innerHTML: e.value
|
|
6845
6861
|
}, null);
|
|
6846
6862
|
}
|
|
6847
|
-
function
|
|
6863
|
+
function mc(e, t, n, o) {
|
|
6848
6864
|
const i = y(e.exceptionInfo), a = R(() => {
|
|
6849
6865
|
const p = {
|
|
6850
6866
|
"f-icon": !0
|
|
@@ -6852,10 +6868,10 @@ function pc(e, t, n, o) {
|
|
|
6852
6868
|
return p[C] = !0, p;
|
|
6853
6869
|
}), l = R(() => n.value || i.value && i.value.message), r = R(() => o.value), c = R(() => !!o.value), u = R(() => !!i.value);
|
|
6854
6870
|
function f() {
|
|
6855
|
-
return u.value ?
|
|
6871
|
+
return u.value ? fc(i) : c.value ? pc(r) : () => null;
|
|
6856
6872
|
}
|
|
6857
6873
|
const s = f();
|
|
6858
|
-
return () => w(
|
|
6874
|
+
return () => w(Qe, null, [w("div", {
|
|
6859
6875
|
class: "float-left modal-tips-iconwrap"
|
|
6860
6876
|
}, [w("span", {
|
|
6861
6877
|
class: a.value
|
|
@@ -6866,7 +6882,7 @@ function pc(e, t, n, o) {
|
|
|
6866
6882
|
innerHTML: l.value
|
|
6867
6883
|
}, null), s()])]);
|
|
6868
6884
|
}
|
|
6869
|
-
function
|
|
6885
|
+
function gc(e, t, n) {
|
|
6870
6886
|
const {
|
|
6871
6887
|
onCopy: o
|
|
6872
6888
|
} = t, {
|
|
@@ -6892,8 +6908,8 @@ function mc(e, t, n) {
|
|
|
6892
6908
|
style: "cursor: pointer;"
|
|
6893
6909
|
}, [l.value])]);
|
|
6894
6910
|
}
|
|
6895
|
-
function
|
|
6896
|
-
const i = y(e.type), a = y([]), l = y(e.exceptionInfo), r = y(e.okButtonText), c = y(e.cancelButtonText), u = y(!0), f = y(!0), s = R(() => !!(a.value && a.value.length)), p = R(() => l.value && l.value.date && l.value.message && l.value.detail), C = R(() => !(a.value && a.value.length) && (r.value || c.value)), v = R(() => f.value && r.value), F = R(() => u.value && c.value), h =
|
|
6911
|
+
function hc(e, t, n, o) {
|
|
6912
|
+
const i = y(e.type), a = y([]), l = y(e.exceptionInfo), r = y(e.okButtonText), c = y(e.cancelButtonText), u = y(!0), f = y(!0), s = R(() => !!(a.value && a.value.length)), p = R(() => l.value && l.value.date && l.value.message && l.value.detail), C = R(() => !(a.value && a.value.length) && (r.value || c.value)), v = R(() => f.value && r.value), F = R(() => u.value && c.value), h = gc(e, n, o);
|
|
6897
6913
|
function m(g) {
|
|
6898
6914
|
i.value === "question" && t.emit("reject"), t.emit("close");
|
|
6899
6915
|
}
|
|
@@ -6920,7 +6936,7 @@ function gc(e, t, n, o) {
|
|
|
6920
6936
|
}
|
|
6921
6937
|
const $t = /* @__PURE__ */ ge({
|
|
6922
6938
|
name: "FMessageBox",
|
|
6923
|
-
props:
|
|
6939
|
+
props: oc,
|
|
6924
6940
|
emits: ["accept", "reject", "close"],
|
|
6925
6941
|
setup(e, t) {
|
|
6926
6942
|
const n = y(e.type), o = y(e.title), i = y(e.detail), a = R(() => {
|
|
@@ -6933,7 +6949,7 @@ const $t = /* @__PURE__ */ ge({
|
|
|
6933
6949
|
}), l = R(() => {
|
|
6934
6950
|
const h = {};
|
|
6935
6951
|
return n.value === "prompt" ? h.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (h.padding = "0.5rem 1.5rem 1rem 1.5rem"), h;
|
|
6936
|
-
}), r =
|
|
6952
|
+
}), r = rc(), c = uc(e, n, o, i), u = cc(), {
|
|
6937
6953
|
feedbackStyle: f,
|
|
6938
6954
|
feedbackMessage: s
|
|
6939
6955
|
} = u;
|
|
@@ -6945,12 +6961,12 @@ const $t = /* @__PURE__ */ ge({
|
|
|
6945
6961
|
function C() {
|
|
6946
6962
|
switch (n.value) {
|
|
6947
6963
|
case "prompt":
|
|
6948
|
-
return
|
|
6964
|
+
return dc(e, c);
|
|
6949
6965
|
default:
|
|
6950
|
-
return
|
|
6966
|
+
return mc(e, n, o, i);
|
|
6951
6967
|
}
|
|
6952
6968
|
}
|
|
6953
|
-
const v = C(), F =
|
|
6969
|
+
const v = C(), F = hc(e, t, r, u);
|
|
6954
6970
|
return () => w("div", {
|
|
6955
6971
|
class: "farris-messager"
|
|
6956
6972
|
}, [w("section", {
|
|
@@ -6966,7 +6982,7 @@ class ft {
|
|
|
6966
6982
|
}), o = !1, i = n.type === "error" || n.type === "prompt", a = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", l = n.acceptCallback || (() => {
|
|
6967
6983
|
}), r = n.rejectCallback || (() => {
|
|
6968
6984
|
});
|
|
6969
|
-
let c = null, u = new
|
|
6985
|
+
let c = null, u = new kr(c);
|
|
6970
6986
|
const f = () => {
|
|
6971
6987
|
c && (c == null || c.destroy(), u = null);
|
|
6972
6988
|
};
|
|
@@ -7056,7 +7072,7 @@ $t.install = (e) => {
|
|
|
7056
7072
|
e.component($t.name, $t), e.provide("FMessageBoxService", ft);
|
|
7057
7073
|
};
|
|
7058
7074
|
var di = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(di || {}), fi = /* @__PURE__ */ ((e) => (e.Equal = "0", e.NotEqual = "1", e.Greater = "2", e.GreaterOrEqual = "3", e.Less = "4", e.LessOrEqual = "5", e.Like = "6", e.LikeStartWith = "7", e.LikeEndWith = "8", e))(fi || {});
|
|
7059
|
-
const
|
|
7075
|
+
const vc = [
|
|
7060
7076
|
{
|
|
7061
7077
|
value: "0",
|
|
7062
7078
|
name: "等于"
|
|
@@ -7093,7 +7109,7 @@ const hc = [
|
|
|
7093
7109
|
value: "8",
|
|
7094
7110
|
name: "结束是"
|
|
7095
7111
|
}
|
|
7096
|
-
],
|
|
7112
|
+
], yc = {
|
|
7097
7113
|
"button-edit": ["0", "1", " 6", "7", "8"],
|
|
7098
7114
|
"check-box": ["0"],
|
|
7099
7115
|
"combo-list": ["0", "1"],
|
|
@@ -7113,14 +7129,14 @@ const hc = [
|
|
|
7113
7129
|
"radio-group": ["0"],
|
|
7114
7130
|
text: ["0", "1", " 6", "7", "8"]
|
|
7115
7131
|
};
|
|
7116
|
-
function
|
|
7132
|
+
function bc(e, t, n) {
|
|
7117
7133
|
const { fieldMap: o } = n;
|
|
7118
7134
|
function i(a) {
|
|
7119
7135
|
const l = o.get(a.fieldCode);
|
|
7120
7136
|
if (!l)
|
|
7121
7137
|
return [];
|
|
7122
|
-
const r = l.editor.type, c = new Set(
|
|
7123
|
-
return
|
|
7138
|
+
const r = l.editor.type, c = new Set(yc[r]);
|
|
7139
|
+
return vc.filter((f) => c.has(f.value));
|
|
7124
7140
|
}
|
|
7125
7141
|
return { getCompareOperators: i };
|
|
7126
7142
|
}
|
|
@@ -7293,7 +7309,7 @@ function pi() {
|
|
|
7293
7309
|
unGroup: g
|
|
7294
7310
|
};
|
|
7295
7311
|
}
|
|
7296
|
-
function
|
|
7312
|
+
function Cc(e, t, n) {
|
|
7297
7313
|
const o = y(/* @__PURE__ */ new Set()), i = y(/* @__PURE__ */ new Set()), { conditionGroupMap: a, groupParentMap: l } = n;
|
|
7298
7314
|
let r, c;
|
|
7299
7315
|
function u(m) {
|
|
@@ -7337,7 +7353,7 @@ function bc(e, t, n) {
|
|
|
7337
7353
|
}
|
|
7338
7354
|
return { clear: h, getSelectedGroupItem: F, selectedItems: o, toggleSelect: v };
|
|
7339
7355
|
}
|
|
7340
|
-
const
|
|
7356
|
+
const Ut = /* @__PURE__ */ ge({
|
|
7341
7357
|
name: "FConditionList",
|
|
7342
7358
|
props: oi,
|
|
7343
7359
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
@@ -7360,12 +7376,12 @@ const qt = /* @__PURE__ */ ge({
|
|
|
7360
7376
|
unGroup: g
|
|
7361
7377
|
} = u, {
|
|
7362
7378
|
createConditionValue: k
|
|
7363
|
-
} = ai(), b =
|
|
7379
|
+
} = ai(), b = Cc(e, t, u), {
|
|
7364
7380
|
selectedItems: _,
|
|
7365
7381
|
toggleSelect: I
|
|
7366
7382
|
} = b, {
|
|
7367
7383
|
getCompareOperators: x
|
|
7368
|
-
} =
|
|
7384
|
+
} = bc(e, t, i);
|
|
7369
7385
|
c(!1), l.value = a(l.value), F(o.value);
|
|
7370
7386
|
function S($) {
|
|
7371
7387
|
var N;
|
|
@@ -7413,7 +7429,7 @@ const qt = /* @__PURE__ */ ge({
|
|
|
7413
7429
|
onChange: (H) => T(H, L)
|
|
7414
7430
|
}, null)]), w("div", {
|
|
7415
7431
|
class: "condition-list-item-control mr-3"
|
|
7416
|
-
}, [w(
|
|
7432
|
+
}, [w(zu, {
|
|
7417
7433
|
editor: (N = r.get(L.fieldCode)) == null ? void 0 : N.editor,
|
|
7418
7434
|
showLabel: !1,
|
|
7419
7435
|
modelValue: L.value.value,
|
|
@@ -7473,17 +7489,17 @@ const qt = /* @__PURE__ */ ge({
|
|
|
7473
7489
|
class: "f-icon f-icon-filter-add"
|
|
7474
7490
|
}, null), w("span", {
|
|
7475
7491
|
class: "ml-1"
|
|
7476
|
-
}, [
|
|
7492
|
+
}, [qe("添加条件")])]), w("div", {
|
|
7477
7493
|
class: "add-condition-btn mb-1",
|
|
7478
7494
|
onClick: D
|
|
7479
7495
|
}, [w("span", {
|
|
7480
7496
|
class: "f-icon f-icon-filter-grouping"
|
|
7481
7497
|
}, null), w("span", {
|
|
7482
7498
|
class: "ml-1"
|
|
7483
|
-
}, [
|
|
7499
|
+
}, [qe("生成条件组")])]), w("div", {
|
|
7484
7500
|
class: "condition-list-reset add-condition-btn",
|
|
7485
7501
|
onClick: P
|
|
7486
|
-
}, [
|
|
7502
|
+
}, [qe("重置")])]);
|
|
7487
7503
|
}
|
|
7488
7504
|
return () => w("div", {
|
|
7489
7505
|
class: "condition-list",
|
|
@@ -7493,10 +7509,10 @@ const qt = /* @__PURE__ */ ge({
|
|
|
7493
7509
|
}, [E(d.value)]), V()]);
|
|
7494
7510
|
}
|
|
7495
7511
|
});
|
|
7496
|
-
|
|
7497
|
-
e.component(zn.name, zn).component(
|
|
7512
|
+
Ut.install = (e) => {
|
|
7513
|
+
e.component(zn.name, zn).component(Ut.name, Ut);
|
|
7498
7514
|
};
|
|
7499
|
-
const
|
|
7515
|
+
const wc = [
|
|
7500
7516
|
"equal",
|
|
7501
7517
|
"notEqual",
|
|
7502
7518
|
"greaterThan",
|
|
@@ -7506,16 +7522,16 @@ const Cc = [
|
|
|
7506
7522
|
"contain",
|
|
7507
7523
|
"startWidth",
|
|
7508
7524
|
"endWidth"
|
|
7509
|
-
],
|
|
7525
|
+
], Sc = {
|
|
7510
7526
|
equal: (e, t, n) => e && e[t] === n,
|
|
7511
7527
|
notEqual: (e, t, n) => e && e[t] !== n,
|
|
7512
7528
|
contain: (e, t, n) => e ? (e[t] || "").indexOf(n) > -1 : !1,
|
|
7513
7529
|
startWidth: (e, t, n) => e ? (e[t] || "").startsWith(n) : !1,
|
|
7514
7530
|
endWidth: (e, t, n) => e ? (e[t] || "").endsWith(n) : !1
|
|
7515
|
-
},
|
|
7531
|
+
}, xc = {
|
|
7516
7532
|
equal: (e, t, n) => e && e[t] === n,
|
|
7517
7533
|
notEqual: (e, t, n) => e && e[t] !== n
|
|
7518
|
-
},
|
|
7534
|
+
}, Fc = {
|
|
7519
7535
|
equal: (e, t, n) => {
|
|
7520
7536
|
if (e) {
|
|
7521
7537
|
const o = new Date(new Date(n).toLocaleDateString()).valueOf();
|
|
@@ -7558,10 +7574,10 @@ const Cc = [
|
|
|
7558
7574
|
}
|
|
7559
7575
|
return !1;
|
|
7560
7576
|
}
|
|
7561
|
-
},
|
|
7577
|
+
}, _c = {
|
|
7562
7578
|
equal: (e, t, n) => e ? String(n).split(",").includes(String(e[t])) : !1,
|
|
7563
7579
|
notEqual: (e, t, n) => e ? String(n).split(",").findIndex((i) => i === String(e[t])) === -1 : !1
|
|
7564
|
-
},
|
|
7580
|
+
}, kc = {
|
|
7565
7581
|
equal: (e, t, n) => {
|
|
7566
7582
|
if (e) {
|
|
7567
7583
|
const o = Number.parseFloat(String(n)), i = Number.parseFloat(String(e[t]));
|
|
@@ -7607,11 +7623,11 @@ const Cc = [
|
|
|
7607
7623
|
};
|
|
7608
7624
|
function _n() {
|
|
7609
7625
|
const e = y([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } = pi(), o = /* @__PURE__ */ new Map([
|
|
7610
|
-
["boolean",
|
|
7611
|
-
["datetime",
|
|
7612
|
-
["enum",
|
|
7613
|
-
["number",
|
|
7614
|
-
["text",
|
|
7626
|
+
["boolean", xc],
|
|
7627
|
+
["datetime", Fc],
|
|
7628
|
+
["enum", _c],
|
|
7629
|
+
["number", kc],
|
|
7630
|
+
["text", Sc]
|
|
7615
7631
|
]);
|
|
7616
7632
|
function i(s) {
|
|
7617
7633
|
t.delete(s), e.value = Array.from(t.values());
|
|
@@ -7620,7 +7636,7 @@ function _n() {
|
|
|
7620
7636
|
t.clear(), e.value = [];
|
|
7621
7637
|
}
|
|
7622
7638
|
function l(s) {
|
|
7623
|
-
const { valueType: p } = s.value, C = s.compareType || "0", v =
|
|
7639
|
+
const { valueType: p } = s.value, C = s.compareType || "0", v = wc[Number(C)];
|
|
7624
7640
|
return o.get(p)[v];
|
|
7625
7641
|
}
|
|
7626
7642
|
function r(s) {
|
|
@@ -7735,7 +7751,7 @@ function kn(e, t) {
|
|
|
7735
7751
|
}
|
|
7736
7752
|
return { collpaseGroupIconClass: h, generateGroupData: F, groupFields: a, shouldGroupingData: l, showGroupPanel: r };
|
|
7737
7753
|
}
|
|
7738
|
-
function
|
|
7754
|
+
function Ic(e, t, n, o) {
|
|
7739
7755
|
const i = y(!!e.hierarchy), { idField: a } = o, { collapseField: l, hasChildrenField: r, parentIdField: c } = n, u = /* @__PURE__ */ new Map();
|
|
7740
7756
|
function f(B, O) {
|
|
7741
7757
|
const M = /* @__PURE__ */ new Map();
|
|
@@ -7850,11 +7866,11 @@ function kc(e, t, n, o) {
|
|
|
7850
7866
|
if ($) {
|
|
7851
7867
|
const N = Array.from($.children.keys()).indexOf(V.id);
|
|
7852
7868
|
if (N === $.children.size - 1) {
|
|
7853
|
-
const
|
|
7854
|
-
L = M.value.findIndex((pe) => pe[a.value] ===
|
|
7869
|
+
const q = Array.from($.descendant.values())[$.descendant.size - 1];
|
|
7870
|
+
L = M.value.findIndex((pe) => pe[a.value] === q.id) + 1;
|
|
7855
7871
|
} else {
|
|
7856
|
-
const
|
|
7857
|
-
L = M.value.findIndex((pe) => pe[a.value] ===
|
|
7872
|
+
const q = Array.from($.children.values())[N + 1];
|
|
7873
|
+
L = M.value.findIndex((pe) => pe[a.value] === q.id);
|
|
7858
7874
|
}
|
|
7859
7875
|
O[r.value] = !1, O[c.value] = $.id, M.value.splice(L, 0, O);
|
|
7860
7876
|
}
|
|
@@ -7879,7 +7895,7 @@ function kc(e, t, n, o) {
|
|
|
7879
7895
|
}
|
|
7880
7896
|
return { generateHierarchyData: x, hasRealChildren: _, insertSibling: S, insertChild: T, shouldStratifyData: i, trimmedOriginalData: P };
|
|
7881
7897
|
}
|
|
7882
|
-
const
|
|
7898
|
+
const Tc = {
|
|
7883
7899
|
showCloseButton: { type: Boolean, default: !0 },
|
|
7884
7900
|
position: { type: String, default: "top-center" },
|
|
7885
7901
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -7891,13 +7907,13 @@ const Ic = {
|
|
|
7891
7907
|
id: { type: String },
|
|
7892
7908
|
animate: { type: String, default: "fadeIn" },
|
|
7893
7909
|
options: { type: Object }
|
|
7894
|
-
},
|
|
7910
|
+
}, Mc = {
|
|
7895
7911
|
showCloseButton: { type: Boolean, default: !0 },
|
|
7896
7912
|
animate: { type: String, default: "fadeIn" },
|
|
7897
7913
|
options: { type: Object }
|
|
7898
7914
|
}, Qt = /* @__PURE__ */ ge({
|
|
7899
7915
|
name: "Toast",
|
|
7900
|
-
props:
|
|
7916
|
+
props: Mc,
|
|
7901
7917
|
emits: ["close", "click"],
|
|
7902
7918
|
setup: (e, t) => {
|
|
7903
7919
|
const n = y(e.animate), o = "fadeOut", i = R(() => e.options), a = y(!1), l = R(() => {
|
|
@@ -7927,7 +7943,7 @@ const Ic = {
|
|
|
7927
7943
|
});
|
|
7928
7944
|
const h = () => {
|
|
7929
7945
|
var m;
|
|
7930
|
-
return w(
|
|
7946
|
+
return w(Qe, null, [w("div", {
|
|
7931
7947
|
class: "after-toast-msg text-right"
|
|
7932
7948
|
}, [!t.slots.default && ((m = i.value.buttons) == null ? void 0 : m.map((d) => w("span", {
|
|
7933
7949
|
class: F(d),
|
|
@@ -7950,7 +7966,7 @@ const Ic = {
|
|
|
7950
7966
|
class: r.value
|
|
7951
7967
|
}, null)]), w("div", {
|
|
7952
7968
|
class: "modal-tips-content"
|
|
7953
|
-
}, [u.value && w(
|
|
7969
|
+
}, [u.value && w(Qe, null, [w("h5", {
|
|
7954
7970
|
class: "toast-title modal-tips-title",
|
|
7955
7971
|
innerHTML: i.value.title
|
|
7956
7972
|
}, null), w("p", {
|
|
@@ -7970,7 +7986,7 @@ const Ic = {
|
|
|
7970
7986
|
}
|
|
7971
7987
|
}), Nt = /* @__PURE__ */ ge({
|
|
7972
7988
|
name: "Notify",
|
|
7973
|
-
props:
|
|
7989
|
+
props: Tc,
|
|
7974
7990
|
emits: ["close", "empty"],
|
|
7975
7991
|
setup(e, t) {
|
|
7976
7992
|
const n = R(() => ({
|
|
@@ -8134,14 +8150,14 @@ Nt.install = (e) => {
|
|
|
8134
8150
|
};
|
|
8135
8151
|
function gi(e, t, n, o, i) {
|
|
8136
8152
|
var st;
|
|
8137
|
-
const { pageSize: a, total: l, shouldRenderPagination: r, currentPage: c, mode: u } = i, f = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), F = y([]), h = y([]), m = _n(), d = kn(e, o), { generateGroupData: g, groupFields: k, shouldGroupingData: b } = d, _ = y(e.data), I =
|
|
8153
|
+
const { pageSize: a, total: l, shouldRenderPagination: r, currentPage: c, mode: u } = i, f = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), F = y([]), h = y([]), m = _n(), d = kn(e, o), { generateGroupData: g, groupFields: k, shouldGroupingData: b } = d, _ = y(e.data), I = Ic(e, _, n, o), {
|
|
8138
8154
|
generateHierarchyData: x,
|
|
8139
8155
|
hasRealChildren: S,
|
|
8140
8156
|
insertSibling: T,
|
|
8141
8157
|
insertChild: P,
|
|
8142
8158
|
shouldStratifyData: B,
|
|
8143
8159
|
trimmedOriginalData: O
|
|
8144
|
-
} = I, { idField: M, reviseIdentifyField: E } = o, D = y(e.newDataItem), V = y(e.data), $ = y(e.data), { flatTreeData: L } =
|
|
8160
|
+
} = I, { idField: M, reviseIdentifyField: E } = o, D = y(e.newDataItem), V = y(e.data), $ = y(e.data), { flatTreeData: L } = Wc(e);
|
|
8145
8161
|
function N(z) {
|
|
8146
8162
|
return L(z);
|
|
8147
8163
|
}
|
|
@@ -8149,7 +8165,7 @@ function gi(e, t, n, o, i) {
|
|
|
8149
8165
|
const z = N(e.data);
|
|
8150
8166
|
_.value = z, V.value = z, $.value = z;
|
|
8151
8167
|
}
|
|
8152
|
-
const H = y(e.summary),
|
|
8168
|
+
const H = y(e.summary), q = R(() => {
|
|
8153
8169
|
const z = H.value;
|
|
8154
8170
|
return (z == null ? void 0 : z.groupFields) || [];
|
|
8155
8171
|
});
|
|
@@ -8163,7 +8179,7 @@ function gi(e, t, n, o, i) {
|
|
|
8163
8179
|
});
|
|
8164
8180
|
function me() {
|
|
8165
8181
|
var Re, ce;
|
|
8166
|
-
V.value =
|
|
8182
|
+
V.value = Ye(_.value), b.value && (V.value = g(k.value, _.value, t)), oe = q.value.reduce((He, Oe) => (He.set(Oe, 0), He), oe);
|
|
8167
8183
|
const z = Ie.value, ne = Te.value;
|
|
8168
8184
|
let se = 0;
|
|
8169
8185
|
const De = [];
|
|
@@ -8172,7 +8188,7 @@ function gi(e, t, n, o, i) {
|
|
|
8172
8188
|
const He = M.value !== e.idField;
|
|
8173
8189
|
for (let Oe = z; Oe < ne; Oe++) {
|
|
8174
8190
|
const Ve = V.value[Oe];
|
|
8175
|
-
Ve.__fv_data_grid_group_row__ ? (se = 0, Ve.__fv_data_index__ = "") : Ve.__fv_data_grid_group_summary__ ? Ve.__fv_data_index__ = "" : (Ve.__fv_disabled__ = Ve[((ce = e.rowOption) == null ? void 0 : ce.disabledField) || "disabled"], se++, r.value ? Ve.__fv_data_index__ = se + (c.value - 1) * a.value : Ve.__fv_data_index__ = se), Ve.__fv_index__ = Oe, He && (Ve[M.value] = Oe),
|
|
8191
|
+
Ve.__fv_data_grid_group_row__ ? (se = 0, Ve.__fv_data_index__ = "") : Ve.__fv_data_grid_group_summary__ ? Ve.__fv_data_index__ = "" : (Ve.__fv_disabled__ = Ve[((ce = e.rowOption) == null ? void 0 : ce.disabledField) || "disabled"], se++, r.value ? Ve.__fv_data_index__ = se + (c.value - 1) * a.value : Ve.__fv_data_index__ = se), Ve.__fv_index__ = Oe, He && (Ve[M.value] = Oe), q.value.forEach((We) => {
|
|
8176
8192
|
const Fe = oe.get(We) || 0;
|
|
8177
8193
|
oe.set(We, Fe + Ve[We]);
|
|
8178
8194
|
}), De.push(Ve);
|
|
@@ -8254,7 +8270,7 @@ function gi(e, t, n, o, i) {
|
|
|
8254
8270
|
const z = me();
|
|
8255
8271
|
he.value = z, e.hierarchy && (we(Array.from(C.values()), Array.from(v.values())), x(he.value));
|
|
8256
8272
|
}
|
|
8257
|
-
function
|
|
8273
|
+
function U(z) {
|
|
8258
8274
|
var ne;
|
|
8259
8275
|
if (z && ((ne = z[0]) != null && ne.children)) {
|
|
8260
8276
|
const se = N(z);
|
|
@@ -8270,7 +8286,7 @@ function gi(e, t, n, o, i) {
|
|
|
8270
8286
|
(z - 1) * a.value <= pe.value && le();
|
|
8271
8287
|
}
|
|
8272
8288
|
function ie(z) {
|
|
8273
|
-
_.value.push(
|
|
8289
|
+
_.value.push(Ye(z)), he.value = me();
|
|
8274
8290
|
}
|
|
8275
8291
|
function ve(z = 0) {
|
|
8276
8292
|
if (!(z > -1))
|
|
@@ -8334,7 +8350,7 @@ function gi(e, t, n, o, i) {
|
|
|
8334
8350
|
getRange: Me,
|
|
8335
8351
|
getSelectionItems: gt,
|
|
8336
8352
|
hasRealChildren: S,
|
|
8337
|
-
load:
|
|
8353
|
+
load: U,
|
|
8338
8354
|
navigatePageTo: X,
|
|
8339
8355
|
summaries: oe,
|
|
8340
8356
|
totalItems: pe,
|
|
@@ -8395,7 +8411,7 @@ function vi(e) {
|
|
|
8395
8411
|
}), i = R(() => e.hierarchy && e.selection.showCheckbox), a = R(() => (e.treeNodeIconsData.fold || e.iconField) && e.showTreeNodeIcons);
|
|
8396
8412
|
return { collapseField: t, hasChildrenField: n, parentIdField: o, shouldShowCheckBox: i, shouldShowIcon: a };
|
|
8397
8413
|
}
|
|
8398
|
-
function
|
|
8414
|
+
function Oc(e, t, n, o) {
|
|
8399
8415
|
var F, h, m, d, g, k;
|
|
8400
8416
|
const { idField: i } = n, a = y(((h = (F = e.hierarchy) == null ? void 0 : F.cascadeOption) == null ? void 0 : h.autoCheckChildren) || !1), l = y(((d = (m = e.hierarchy) == null ? void 0 : m.cascadeOption) == null ? void 0 : d.autoCheckParent) || !1), r = y(((k = (g = e.hierarchy) == null ? void 0 : g.cascadeOption) == null ? void 0 : k.selectionRange) || "All");
|
|
8401
8417
|
G(() => {
|
|
@@ -8438,8 +8454,8 @@ function Mc(e, t, n, o) {
|
|
|
8438
8454
|
}
|
|
8439
8455
|
return { autoCheckChildren: a, autoCheckParent: l, interactAfterCheckHierarchyItem: v };
|
|
8440
8456
|
}
|
|
8441
|
-
function
|
|
8442
|
-
const { select: a, unSelect: l, indeterminate: r, getSelectedItems: c, selectedValues: u, currentSelectedDataId: f } = o, { autoCheckChildren: s, autoCheckParent: p, interactAfterCheckHierarchyItem: C } =
|
|
8457
|
+
function Bc(e, t, n, o, i) {
|
|
8458
|
+
const { select: a, unSelect: l, indeterminate: r, getSelectedItems: c, selectedValues: u, currentSelectedDataId: f } = o, { autoCheckChildren: s, autoCheckParent: p, interactAfterCheckHierarchyItem: C } = Oc(e, t, n), { idField: v } = n;
|
|
8443
8459
|
function F() {
|
|
8444
8460
|
return t.value.filter((x) => !!x.checked).map((x) => x.raw.__fv_index__);
|
|
8445
8461
|
}
|
|
@@ -8547,7 +8563,7 @@ function yi(e, t, n, o, i, a, l, r) {
|
|
|
8547
8563
|
let { deltaX: ie } = X.deltaX, ve = -1 * X.deltaY;
|
|
8548
8564
|
return typeof ie > "u" && (ie = -1 * X.wheelDeltaX / 6), typeof ve > "u" && (ve = X.wheelDeltaY / 6), X.deltaMode && X.deltaMode === 1 && (ie *= 10, ve *= 10), X.shiftKey ? { deltaY: -ve, deltaX: -ie } : { deltaX: ie, deltaY: ve };
|
|
8549
8565
|
}
|
|
8550
|
-
function
|
|
8566
|
+
function q(X) {
|
|
8551
8567
|
if (e.disabled)
|
|
8552
8568
|
return;
|
|
8553
8569
|
X.preventDefault(), X.stopPropagation();
|
|
@@ -8613,7 +8629,7 @@ function yi(e, t, n, o, i, a, l, r) {
|
|
|
8613
8629
|
function le(X) {
|
|
8614
8630
|
ae.value = !1, be.value = -1, Ce.value = -1, document.removeEventListener("mouseup", le), document.removeEventListener("mousemove", j), document.removeEventListener("mousemove", Y), document.body.style.userSelect = "", Se.value && (Se.value.style.opacity = null);
|
|
8615
8631
|
}
|
|
8616
|
-
function
|
|
8632
|
+
function U(X, ie, ve) {
|
|
8617
8633
|
var Ge;
|
|
8618
8634
|
ae.value = !0;
|
|
8619
8635
|
const Pe = (Ge = X.target) == null ? void 0 : Ge.parentElement;
|
|
@@ -8622,8 +8638,8 @@ function yi(e, t, n, o, i, a, l, r) {
|
|
|
8622
8638
|
ve === "vertical" && (be.value = X.pageY), ve === "horizontal" && (Ce.value = X.pageX), ie.value && (ie.value, document.addEventListener("mousemove", Ne), document.addEventListener("mouseup", le), document.body.style.userSelect = "none");
|
|
8623
8639
|
}
|
|
8624
8640
|
return {
|
|
8625
|
-
onMouseDownScrollThumb:
|
|
8626
|
-
onWheel:
|
|
8641
|
+
onMouseDownScrollThumb: U,
|
|
8642
|
+
onWheel: q,
|
|
8627
8643
|
dataGridWidth: k,
|
|
8628
8644
|
gridDataStyle: Be,
|
|
8629
8645
|
gridHeaderColumnsStyle: we,
|
|
@@ -8673,7 +8689,7 @@ function bi(e, t, n, o, i, a, l, r) {
|
|
|
8673
8689
|
}
|
|
8674
8690
|
return { getVisualData: v, maxVisibleRowIndex: c, minVisibleRowIndex: u, toggleGroupRow: F };
|
|
8675
8691
|
}
|
|
8676
|
-
function
|
|
8692
|
+
function Pc() {
|
|
8677
8693
|
function e(t, n) {
|
|
8678
8694
|
const {
|
|
8679
8695
|
formatter: o
|
|
@@ -8684,7 +8700,7 @@ function Bc() {
|
|
|
8684
8700
|
renderEnumColumn: e
|
|
8685
8701
|
};
|
|
8686
8702
|
}
|
|
8687
|
-
function
|
|
8703
|
+
function Vc() {
|
|
8688
8704
|
function e(o, i) {
|
|
8689
8705
|
return o ? w("span", {
|
|
8690
8706
|
innerHTML: i.formatter.trueText
|
|
@@ -8709,7 +8725,7 @@ function Pc() {
|
|
|
8709
8725
|
renderBooleanColumn: n
|
|
8710
8726
|
};
|
|
8711
8727
|
}
|
|
8712
|
-
function
|
|
8728
|
+
function Ec() {
|
|
8713
8729
|
const {
|
|
8714
8730
|
formatTo: e
|
|
8715
8731
|
} = Na();
|
|
@@ -8724,7 +8740,7 @@ function Vc() {
|
|
|
8724
8740
|
renderDateColumn: n
|
|
8725
8741
|
};
|
|
8726
8742
|
}
|
|
8727
|
-
function
|
|
8743
|
+
function Dc() {
|
|
8728
8744
|
const {
|
|
8729
8745
|
formatTo: e
|
|
8730
8746
|
} = ja();
|
|
@@ -8748,16 +8764,16 @@ function Ec() {
|
|
|
8748
8764
|
renderNumberColumn: n
|
|
8749
8765
|
};
|
|
8750
8766
|
}
|
|
8751
|
-
function
|
|
8767
|
+
function Rc() {
|
|
8752
8768
|
const {
|
|
8753
8769
|
renderBooleanColumn: e
|
|
8754
|
-
} =
|
|
8770
|
+
} = Vc(), {
|
|
8755
8771
|
renderEnumColumn: t
|
|
8756
|
-
} =
|
|
8772
|
+
} = Pc(), {
|
|
8757
8773
|
renderNumberColumn: n
|
|
8758
|
-
} =
|
|
8774
|
+
} = Dc(), {
|
|
8759
8775
|
renderDateColumn: o
|
|
8760
|
-
} =
|
|
8776
|
+
} = Ec();
|
|
8761
8777
|
function i(r) {
|
|
8762
8778
|
return r;
|
|
8763
8779
|
}
|
|
@@ -8779,7 +8795,7 @@ function Dc() {
|
|
|
8779
8795
|
}
|
|
8780
8796
|
function Ci(e, t, n) {
|
|
8781
8797
|
var h;
|
|
8782
|
-
const o = y(e.mergeCell), a = ((h = y(e.rowOption).value) == null ? void 0 : h.wrapContent) || !1, { updateVisualInfomation: l } = n, { renderCommandColumn: r } =
|
|
8798
|
+
const o = y(e.mergeCell), a = ((h = y(e.rowOption).value) == null ? void 0 : h.wrapContent) || !1, { updateVisualInfomation: l } = n, { renderCommandColumn: r } = Ts(), { renderFormatColumn: c } = Rc();
|
|
8783
8799
|
function u(m, d, g, k, b, _ = 1) {
|
|
8784
8800
|
const I = {
|
|
8785
8801
|
colSpan: _,
|
|
@@ -8850,7 +8866,7 @@ function wi(e, t, n, o, i, a) {
|
|
|
8850
8866
|
__fv_data_index__: B
|
|
8851
8867
|
} = b, O = b.__fv_data_grid_group_layer__ || (b.__fv_parents__ ? (pe = b.__fv_parents__) == null ? void 0 : pe.size : 0) || 0, M = typeof b.parent == "number" ? Number(b.parent) : -1, E = b.__fv_data_grid_group_collapse__ || b[f.value], D = b.__fv_visible__ === void 0 ? !0 : b.__fv_visible__, V = b.__fv_checked__, $ = b.__fv_indeterminate__, L = b.__fv_disabled__ || b[((Be = e.rowOption) == null ? void 0 : Be.disabledField) || "disabled"], N = S == null ? void 0 : S.find((Ie) => Ie.raw[u.value] === b.parent), H = N && N.collapse;
|
|
8852
8868
|
_ && (_.parent, b.parent);
|
|
8853
|
-
const
|
|
8869
|
+
const q = H || N && !N.visible, oe = {
|
|
8854
8870
|
collapse: E,
|
|
8855
8871
|
data: {},
|
|
8856
8872
|
dataIndex: B,
|
|
@@ -8869,7 +8885,7 @@ function wi(e, t, n, o, i, a) {
|
|
|
8869
8885
|
setRef: (Ie) => {
|
|
8870
8886
|
oe.ref = Ie;
|
|
8871
8887
|
},
|
|
8872
|
-
visible: D && !
|
|
8888
|
+
visible: D && !q,
|
|
8873
8889
|
status: tt.initial
|
|
8874
8890
|
};
|
|
8875
8891
|
return _ || (b.__fv_data_position__ = 0), c || (oe.height = r, b.__fv_data_height__ = oe.height, s(oe, b)), (ye = l.value) != null && ye.customRowStatus && (l.value.customRowStatus(oe), b.__fv_collapse__ = oe.collapse, b.__fv_visible__ = oe.visible, b.__fv_disabled__ = oe.disabled), oe;
|
|
@@ -8897,7 +8913,7 @@ function wi(e, t, n, o, i, a) {
|
|
|
8897
8913
|
}
|
|
8898
8914
|
return { createEmptyRow: C, createNewRowFromDataItem: v, renderDataRow: h };
|
|
8899
8915
|
}
|
|
8900
|
-
function
|
|
8916
|
+
function $c(e, t, n, o) {
|
|
8901
8917
|
const i = y(e.summary), { idField: a } = t, { createCellByField: l } = n, { createEmptyRow: r } = o, c = R(() => {
|
|
8902
8918
|
const p = i.value;
|
|
8903
8919
|
return (p == null ? void 0 : p.groupFields) || [];
|
|
@@ -8925,7 +8941,7 @@ function Rc(e, t, n, o) {
|
|
|
8925
8941
|
}
|
|
8926
8942
|
return { renderGroupRow: s };
|
|
8927
8943
|
}
|
|
8928
|
-
function
|
|
8944
|
+
function Nc(e, t, n, o) {
|
|
8929
8945
|
const { idField: i } = t, { createCellByField: a } = n, { createEmptyRow: l } = o;
|
|
8930
8946
|
function r(c, u, f, s, p, C, v) {
|
|
8931
8947
|
const F = c.__fv_data_grid_group_field__, h = l(vt.summary, s, c, u, f, p);
|
|
@@ -9027,7 +9043,7 @@ function xi(e) {
|
|
|
9027
9043
|
}
|
|
9028
9044
|
return { idField: t, reviseIdentifyField: n };
|
|
9029
9045
|
}
|
|
9030
|
-
function
|
|
9046
|
+
function jc(e, t, n, o, i, a) {
|
|
9031
9047
|
const { addNewDataItemAtLast: l } = n, { columnContext: r } = o, { onClickCell: c } = i;
|
|
9032
9048
|
function u(v, F) {
|
|
9033
9049
|
const h = r.value.primaryColumns.findIndex((I) => I.field === v.field), m = v.parent, d = m.index, g = r.value.primaryColumns.length - 1, k = a.value.length - 1, b = h === g, _ = d === k;
|
|
@@ -9176,8 +9192,8 @@ function _i(e, t, n, o, i) {
|
|
|
9176
9192
|
return t.getSelectionItems(p.value);
|
|
9177
9193
|
}
|
|
9178
9194
|
function v() {
|
|
9179
|
-
const N = o.value.reduce((
|
|
9180
|
-
return p.value.map((
|
|
9195
|
+
const N = o.value.reduce((q, oe) => (q.set(oe.raw[a.value], oe), q), /* @__PURE__ */ new Map());
|
|
9196
|
+
return p.value.map((q) => N.get(q)).filter((q) => !!q);
|
|
9181
9197
|
}
|
|
9182
9198
|
const F = R(() => r.value && c.value), h = R(() => !!e.hierarchy), m = R(() => {
|
|
9183
9199
|
const N = f.value && u.value === "DependOnCheck";
|
|
@@ -9207,28 +9223,28 @@ function _i(e, t, n, o, i) {
|
|
|
9207
9223
|
return N.raw[a.value] || "";
|
|
9208
9224
|
}
|
|
9209
9225
|
function x(N) {
|
|
9210
|
-
return p.value.findIndex((
|
|
9226
|
+
return p.value.findIndex((q) => q === I(N));
|
|
9211
9227
|
}
|
|
9212
9228
|
function S() {
|
|
9213
|
-
v().forEach((
|
|
9214
|
-
|
|
9215
|
-
}), t.getSelectionItems(p.value).forEach((
|
|
9216
|
-
|
|
9229
|
+
v().forEach((q) => {
|
|
9230
|
+
q.checked = !1;
|
|
9231
|
+
}), t.getSelectionItems(p.value).forEach((q) => {
|
|
9232
|
+
q.__fv_checked__ = !1;
|
|
9217
9233
|
}), p.value = [], l.value = "";
|
|
9218
9234
|
}
|
|
9219
9235
|
function T(N) {
|
|
9220
9236
|
const H = N.raw;
|
|
9221
9237
|
H.__fv_checked__ = !0, H.__fv_indeterminate__ = !1;
|
|
9222
|
-
const
|
|
9223
|
-
|
|
9238
|
+
const q = new Set(p.value);
|
|
9239
|
+
q.add(H[a.value]), p.value = Array.from(q.values()), N.checked = !0, N.indeterminate = !1, l.value = N.raw[a.value];
|
|
9224
9240
|
}
|
|
9225
9241
|
function P(N) {
|
|
9226
9242
|
const H = N.raw;
|
|
9227
|
-
H.__fv_checked__ = !1, H.__fv_indeterminate__ = !1, p.value = p.value.filter((
|
|
9243
|
+
H.__fv_checked__ = !1, H.__fv_indeterminate__ = !1, p.value = p.value.filter((q) => q !== H[a.value]), N.checked = !1, N.indeterminate = !1, l.value = "";
|
|
9228
9244
|
}
|
|
9229
9245
|
function B(N) {
|
|
9230
9246
|
const H = N.raw;
|
|
9231
|
-
H.__fv_checked__ = !1, H.__fv_indeterminate__ = !0, p.value = p.value.filter((
|
|
9247
|
+
H.__fv_checked__ = !1, H.__fv_indeterminate__ = !0, p.value = p.value.filter((q) => q !== H[a.value]), N.checked = !1, N.indeterminate = !0;
|
|
9232
9248
|
}
|
|
9233
9249
|
function O(N) {
|
|
9234
9250
|
_.value && S(), N.checked ? P(N) : T(N), k();
|
|
@@ -9237,13 +9253,13 @@ function _i(e, t, n, o, i) {
|
|
|
9237
9253
|
N.raw[a.value] !== l.value && (S(), T(N), k());
|
|
9238
9254
|
}
|
|
9239
9255
|
function E(N) {
|
|
9240
|
-
const H = o.value.find((
|
|
9256
|
+
const H = o.value.find((q) => q.raw[a.value] === N);
|
|
9241
9257
|
H && M(H);
|
|
9242
9258
|
}
|
|
9243
9259
|
function D(N) {
|
|
9244
|
-
const H = o.value.filter((
|
|
9245
|
-
H && H.length && (S(), H.forEach((
|
|
9246
|
-
T(
|
|
9260
|
+
const H = o.value.filter((q) => N.includes(q.raw[a.value]));
|
|
9261
|
+
H && H.length && (S(), H.forEach((q) => {
|
|
9262
|
+
T(q);
|
|
9247
9263
|
}), k());
|
|
9248
9264
|
}
|
|
9249
9265
|
function V() {
|
|
@@ -9312,10 +9328,10 @@ function ki(e, t) {
|
|
|
9312
9328
|
}
|
|
9313
9329
|
return { showRowNumer: l, showSidebarCheckBox: r, sidebarCellPosition: p, sidebarCornerCellStyle: C, sidebarTitle: f, sidebarWidth: s, rowKey: F, cellKey: v };
|
|
9314
9330
|
}
|
|
9315
|
-
const
|
|
9331
|
+
const Lc = {
|
|
9316
9332
|
ascend: (e, t) => e === t ? 0 : e === !1 ? -1 : 1,
|
|
9317
9333
|
decend: (e, t) => e === t ? 0 : e === !0 ? -1 : 1
|
|
9318
|
-
},
|
|
9334
|
+
}, Hc = {
|
|
9319
9335
|
ascend: (e, t) => {
|
|
9320
9336
|
const n = new Date(new Date(e).toLocaleDateString()).valueOf(), o = new Date(new Date(t).toLocaleDateString()).valueOf();
|
|
9321
9337
|
return n === o ? 0 : n < o ? -1 : 1;
|
|
@@ -9324,10 +9340,10 @@ const jc = {
|
|
|
9324
9340
|
const n = new Date(new Date(e).toLocaleDateString()).valueOf(), o = new Date(new Date(t).toLocaleDateString()).valueOf();
|
|
9325
9341
|
return n === o ? 0 : n < o ? 1 : -1;
|
|
9326
9342
|
}
|
|
9327
|
-
},
|
|
9343
|
+
}, Ac = {
|
|
9328
9344
|
ascend: (e, t) => e === t ? 0 : e < t ? -1 : 1,
|
|
9329
9345
|
decend: (e, t) => e === t ? 0 : e < t ? 1 : -1
|
|
9330
|
-
},
|
|
9346
|
+
}, zc = {
|
|
9331
9347
|
ascend: (e, t) => e === t ? 0 : e < t ? -1 : 1,
|
|
9332
9348
|
decend: (e, t) => e === t ? 0 : e < t ? 1 : -1
|
|
9333
9349
|
};
|
|
@@ -9342,10 +9358,10 @@ function Ii(e) {
|
|
|
9342
9358
|
["enum", "text-sorter"],
|
|
9343
9359
|
["reference", "text-sorter"]
|
|
9344
9360
|
]), n = /* @__PURE__ */ new Map([
|
|
9345
|
-
["boolean-sorter",
|
|
9346
|
-
["datetime-sorter",
|
|
9347
|
-
["numeric-sorter",
|
|
9348
|
-
["text-sorter",
|
|
9361
|
+
["boolean-sorter", Lc],
|
|
9362
|
+
["datetime-sorter", Hc],
|
|
9363
|
+
["numeric-sorter", Ac],
|
|
9364
|
+
["text-sorter", zc]
|
|
9349
9365
|
]);
|
|
9350
9366
|
function o(l) {
|
|
9351
9367
|
const r = (l == null ? void 0 : l.dataType) || "string", c = t.get(r) || "text-sorter";
|
|
@@ -9364,7 +9380,7 @@ function Ii(e) {
|
|
|
9364
9380
|
}
|
|
9365
9381
|
return { getSorterByColumn: o, updateSorter: a };
|
|
9366
9382
|
}
|
|
9367
|
-
function
|
|
9383
|
+
function Gc(e) {
|
|
9368
9384
|
function t(i) {
|
|
9369
9385
|
return {};
|
|
9370
9386
|
}
|
|
@@ -9446,7 +9462,7 @@ function Ti(e) {
|
|
|
9446
9462
|
}
|
|
9447
9463
|
};
|
|
9448
9464
|
}
|
|
9449
|
-
function
|
|
9465
|
+
function Wc(e) {
|
|
9450
9466
|
const t = "parent", n = "layer", o = "hasChildren", i = (a, l = 1, r = [], c = null) => (a = a || [], a.reduce((u, f) => (f.id = f.id || f.data[e.idField], f[t] = c, f[n] = l, f[o] = !1, f = { ...f, ...f.data }, r.push(f), f.children && f.children.length && (f[o] = !0, i(f.children, l + 1, r, f.id)), u), r), r);
|
|
9451
9467
|
return { flatTreeData: i };
|
|
9452
9468
|
}
|
|
@@ -9463,7 +9479,7 @@ function Mi(e, t, n, o, i, a, l, r, c, u, f, s, p, C, v, F) {
|
|
|
9463
9479
|
rightFixedGridDataStyle: _
|
|
9464
9480
|
} = C, {
|
|
9465
9481
|
renderDataRow: I
|
|
9466
|
-
} =
|
|
9482
|
+
} = _s(e, t, m, F, r, c, u, f, s, p), x = [I];
|
|
9467
9483
|
function S(M, E) {
|
|
9468
9484
|
const D = h(M);
|
|
9469
9485
|
return F.value.filter((V) => V.visible !== !1).map((V) => x[V.type](V, D, E, M));
|
|
@@ -9525,11 +9541,11 @@ const Ct = /* @__PURE__ */ ge({
|
|
|
9525
9541
|
} = P;
|
|
9526
9542
|
O(g, B);
|
|
9527
9543
|
const D = so(e, M), V = cn(e, t, v), $ = dn(), L = fn(e, V, $), N = pn(e, V, m, v, $, L), H = mn(e, S, g, _, 0, N), {
|
|
9528
|
-
getVisualData:
|
|
9544
|
+
getVisualData: q
|
|
9529
9545
|
} = H, oe = uo(e, M), pe = co(e, k), {
|
|
9530
9546
|
sidebarWidth: Be
|
|
9531
9547
|
} = pe;
|
|
9532
|
-
u.value =
|
|
9548
|
+
u.value = q(0, _.value + 0 - 1);
|
|
9533
9549
|
const ye = fo(e, g, u, M, H, _, 0, Be), {
|
|
9534
9550
|
onWheel: Ie,
|
|
9535
9551
|
dataGridWidth: Te,
|
|
@@ -9554,7 +9570,7 @@ const Ct = /* @__PURE__ */ ge({
|
|
|
9554
9570
|
} = yo(e, a, r, c, P, g, ae, _e, h, de, W, D, k, pe, B, ye, he, u), {
|
|
9555
9571
|
renderDataGridSidebar: le
|
|
9556
9572
|
} = bo(e, re, k, pe, ye), {
|
|
9557
|
-
renderDisableMask:
|
|
9573
|
+
renderDisableMask: U
|
|
9558
9574
|
} = Co(), {
|
|
9559
9575
|
renderHorizontalScrollbar: Me
|
|
9560
9576
|
} = wo(e, a, ye), {
|
|
@@ -9578,15 +9594,15 @@ const Ct = /* @__PURE__ */ ge({
|
|
|
9578
9594
|
}
|
|
9579
9595
|
function Pe() {
|
|
9580
9596
|
const ce = ve();
|
|
9581
|
-
g.insertNewDataItem(ce), u.value =
|
|
9597
|
+
g.insertNewDataItem(ce), u.value = q(0, _.value + 0 - 1);
|
|
9582
9598
|
}
|
|
9583
9599
|
function Ne() {
|
|
9584
9600
|
const ce = ve();
|
|
9585
|
-
g.insertNewChildDataItem(ce), u.value =
|
|
9601
|
+
g.insertNewChildDataItem(ce), u.value = q(0, _.value + 0 - 1);
|
|
9586
9602
|
}
|
|
9587
9603
|
function Ge() {
|
|
9588
9604
|
const ce = ve(), He = b.getNextSelectableHierarchyItemId(ce);
|
|
9589
|
-
g.removeHierarchyDataItem(ce), u.value =
|
|
9605
|
+
g.removeHierarchyDataItem(ce), u.value = q(0, _.value + 0 - 1), He && k.selectItemById(He);
|
|
9590
9606
|
}
|
|
9591
9607
|
function Ze(ce) {
|
|
9592
9608
|
V.onEditingRow(ce);
|
|
@@ -9601,7 +9617,7 @@ const Ct = /* @__PURE__ */ ge({
|
|
|
9601
9617
|
ce && (S.value = ce, T(S), E(S.value), O(g, B), K());
|
|
9602
9618
|
}
|
|
9603
9619
|
function gt(ce) {
|
|
9604
|
-
ce && (we(), g.load(ce), u.value =
|
|
9620
|
+
ce && (we(), g.load(ce), u.value = q(0, _.value + 0 - 1));
|
|
9605
9621
|
}
|
|
9606
9622
|
function st(ce) {
|
|
9607
9623
|
k.selectItemById(ce);
|
|
@@ -9641,9 +9657,9 @@ const Ct = /* @__PURE__ */ ge({
|
|
|
9641
9657
|
onMouseleave: () => {
|
|
9642
9658
|
f.value = !1;
|
|
9643
9659
|
}
|
|
9644
|
-
}, [le(u), Se(), Me(), X()]), Y(), e.disabled &&
|
|
9660
|
+
}, [le(u), Se(), Me(), X()]), Y(), e.disabled && U()]);
|
|
9645
9661
|
}
|
|
9646
|
-
}),
|
|
9662
|
+
}), qc = "https://json-schema.org/draft/2020-12/schema", Uc = "https://farris-design.gitee.io/check-box.schema.json", Kc = "check-box", Xc = "A Farris Input Component", Yc = "object", Jc = {
|
|
9647
9663
|
id: {
|
|
9648
9664
|
description: "The unique identifier for a check box",
|
|
9649
9665
|
type: "string"
|
|
@@ -9710,27 +9726,26 @@ const Ct = /* @__PURE__ */ ge({
|
|
|
9710
9726
|
type: "boolean",
|
|
9711
9727
|
default: !0
|
|
9712
9728
|
}
|
|
9713
|
-
},
|
|
9714
|
-
"id",
|
|
9729
|
+
}, Qc = [
|
|
9715
9730
|
"type"
|
|
9716
|
-
],
|
|
9731
|
+
], Zc = [
|
|
9717
9732
|
"id",
|
|
9718
9733
|
"appearance",
|
|
9719
9734
|
"binding",
|
|
9720
9735
|
"visible"
|
|
9721
|
-
],
|
|
9722
|
-
$schema:
|
|
9736
|
+
], ed = {
|
|
9737
|
+
$schema: qc,
|
|
9723
9738
|
$id: Uc,
|
|
9724
|
-
title:
|
|
9725
|
-
description:
|
|
9726
|
-
type:
|
|
9727
|
-
properties:
|
|
9728
|
-
required:
|
|
9729
|
-
ignore:
|
|
9730
|
-
},
|
|
9739
|
+
title: Kc,
|
|
9740
|
+
description: Xc,
|
|
9741
|
+
type: Yc,
|
|
9742
|
+
properties: Jc,
|
|
9743
|
+
required: Qc,
|
|
9744
|
+
ignore: Zc
|
|
9745
|
+
}, td = /* @__PURE__ */ new Map([
|
|
9731
9746
|
["appearance", ot]
|
|
9732
9747
|
]);
|
|
9733
|
-
function
|
|
9748
|
+
function nd(e, t, n) {
|
|
9734
9749
|
return t;
|
|
9735
9750
|
}
|
|
9736
9751
|
const Oi = {
|
|
@@ -9761,8 +9776,8 @@ const Oi = {
|
|
|
9761
9776
|
/** 标识是否被选中 */
|
|
9762
9777
|
checked: { type: Boolean, default: !1 }
|
|
9763
9778
|
};
|
|
9764
|
-
Le(Oi,
|
|
9765
|
-
const
|
|
9779
|
+
Le(Oi, ed, td, nd);
|
|
9780
|
+
const od = /* @__PURE__ */ ge({
|
|
9766
9781
|
name: "FCheckBox",
|
|
9767
9782
|
props: Oi,
|
|
9768
9783
|
emits: ["change", "changeValue", "update:modelValue", "update:checked"],
|
|
@@ -9793,7 +9808,7 @@ const nd = /* @__PURE__ */ ge({
|
|
|
9793
9808
|
}), ke(() => {
|
|
9794
9809
|
}), () => {
|
|
9795
9810
|
var h, m, d, g, k, b;
|
|
9796
|
-
return w(
|
|
9811
|
+
return w(Qe, null, [l.value && w("div", {
|
|
9797
9812
|
class: o.value,
|
|
9798
9813
|
style: "border-radius:0;border: 1px solid #E8EBF2;",
|
|
9799
9814
|
onClick: s
|
|
@@ -9823,7 +9838,7 @@ const nd = /* @__PURE__ */ ge({
|
|
|
9823
9838
|
}, [(b = (k = t.slots).default) == null ? void 0 : b.call(k)])])]);
|
|
9824
9839
|
};
|
|
9825
9840
|
}
|
|
9826
|
-
}),
|
|
9841
|
+
}), id = {
|
|
9827
9842
|
id: { type: String, default: "" },
|
|
9828
9843
|
componentId: { type: String, default: "" },
|
|
9829
9844
|
type: { type: String, default: "" },
|
|
@@ -9838,11 +9853,11 @@ const nd = /* @__PURE__ */ ge({
|
|
|
9838
9853
|
*/
|
|
9839
9854
|
modelValue: { type: Object },
|
|
9840
9855
|
ignore: { type: Boolean, default: !1 }
|
|
9841
|
-
},
|
|
9856
|
+
}, ad = {
|
|
9842
9857
|
id: { type: String }
|
|
9843
|
-
},
|
|
9858
|
+
}, ld = /* @__PURE__ */ ge({
|
|
9844
9859
|
name: "FDesignerPlaceholder",
|
|
9845
|
-
props:
|
|
9860
|
+
props: ad,
|
|
9846
9861
|
emits: [],
|
|
9847
9862
|
setup(e) {
|
|
9848
9863
|
const t = R(() => ({
|
|
@@ -9868,15 +9883,15 @@ const nd = /* @__PURE__ */ ge({
|
|
|
9868
9883
|
role: "alert",
|
|
9869
9884
|
"data-noattach": "true",
|
|
9870
9885
|
"data-position": "0"
|
|
9871
|
-
}, [
|
|
9886
|
+
}, [qe("拖拽组件到这里")]);
|
|
9872
9887
|
}
|
|
9873
9888
|
});
|
|
9874
|
-
function
|
|
9889
|
+
function rd(e) {
|
|
9875
9890
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Zn(e);
|
|
9876
9891
|
}
|
|
9877
9892
|
const Zt = /* @__PURE__ */ ge({
|
|
9878
9893
|
name: "FDesignerItem",
|
|
9879
|
-
props:
|
|
9894
|
+
props: id,
|
|
9880
9895
|
emits: ["selectionChange"],
|
|
9881
9896
|
setup(e, t) {
|
|
9882
9897
|
const n = y(`${e.modelValue.id}-component`), o = y(e.canMove), i = y(e.canDelete), a = y(!1), l = y(e.modelValue), r = y(e.componentId || ""), c = y(""), u = y(""), f = y(e.customClass), s = y(), p = ue("canvas-dragula"), C = y(), v = ue("design-item-context"), F = {
|
|
@@ -9916,8 +9931,8 @@ const Zt = /* @__PURE__ */ ge({
|
|
|
9916
9931
|
if (M && (M.preventDefault(), M.stopPropagation()), C.value.triggerBelongedComponentToDeleteWhenDeleted) {
|
|
9917
9932
|
const N = C.value.getBelongedComponentInstance(C);
|
|
9918
9933
|
if (N && N.parent) {
|
|
9919
|
-
const H = y(N == null ? void 0 : N.parent),
|
|
9920
|
-
(L = ($ = H.value) == null ? void 0 : $.contents) == null || L.splice(
|
|
9934
|
+
const H = y(N == null ? void 0 : N.parent), q = H.value.contents.findIndex((oe) => oe.id === N.schema.id);
|
|
9935
|
+
(L = ($ = H.value) == null ? void 0 : $.contents) == null || L.splice(q, 1), Rt.value++;
|
|
9921
9936
|
}
|
|
9922
9937
|
return;
|
|
9923
9938
|
}
|
|
@@ -9973,15 +9988,15 @@ const Zt = /* @__PURE__ */ ge({
|
|
|
9973
9988
|
}
|
|
9974
9989
|
function S(M) {
|
|
9975
9990
|
let E;
|
|
9976
|
-
const D = M.type, V =
|
|
9991
|
+
const D = M.type, V = Gu[D], $ = Wu[D], L = $ ? $(M) : {};
|
|
9977
9992
|
L.customClass = e.ignore ? L.customClass : "", L.componentId = r.value, L.id = M.id;
|
|
9978
9993
|
const N = M.contents && M.contents.length === 0;
|
|
9979
9994
|
return M.contents && !!M.contents.length && V ? w(V, nt({
|
|
9980
9995
|
ref: C
|
|
9981
|
-
}, L),
|
|
9982
|
-
key:
|
|
9983
|
-
modelValue:
|
|
9984
|
-
"onUpdate:modelValue": (oe) =>
|
|
9996
|
+
}, L), rd(E = M.contents.map((q) => w(Zt, {
|
|
9997
|
+
key: q.id,
|
|
9998
|
+
modelValue: q,
|
|
9999
|
+
"onUpdate:modelValue": (oe) => q = oe,
|
|
9985
10000
|
componentId: r.value,
|
|
9986
10001
|
onSelectionChange: x
|
|
9987
10002
|
}, null))) ? E : {
|
|
@@ -9989,7 +10004,7 @@ const Zt = /* @__PURE__ */ ge({
|
|
|
9989
10004
|
}) : V ? N ? w(V, nt({
|
|
9990
10005
|
ref: C
|
|
9991
10006
|
}, L), {
|
|
9992
|
-
default: () => [w(
|
|
10007
|
+
default: () => [w(ld, null, null)]
|
|
9993
10008
|
}) : w(V, nt({
|
|
9994
10009
|
ref: C
|
|
9995
10010
|
}, L), null) : w("div", null, null);
|
|
@@ -10012,7 +10027,7 @@ const Zt = /* @__PURE__ */ ge({
|
|
|
10012
10027
|
});
|
|
10013
10028
|
function P(M) {
|
|
10014
10029
|
const E = M == null ? void 0 : M.target;
|
|
10015
|
-
|
|
10030
|
+
Hr(E);
|
|
10016
10031
|
}
|
|
10017
10032
|
function B() {
|
|
10018
10033
|
var M, E;
|
|
@@ -10068,7 +10083,7 @@ function Bi(e, t, n, o, i, a, l, r, c, u, f, s, p, C, v, F, h, m, d, g = "data-g
|
|
|
10068
10083
|
leftFixedGridHeaderColumnsStyle: D,
|
|
10069
10084
|
rightFixedGridHeaderColumnsStyle: V
|
|
10070
10085
|
} = h, $ = R(() => k.value || S.value || x.value), L = B.value.defaultColumnWidth, N = 32, H = /* @__PURE__ */ new Map([[0, 0]]);
|
|
10071
|
-
function
|
|
10086
|
+
function q(ae, be) {
|
|
10072
10087
|
const Ce = H.get(be) || 0, Se = {
|
|
10073
10088
|
height: `${ae.depth * N}px`,
|
|
10074
10089
|
left: `${ae.left}px`,
|
|
@@ -10102,7 +10117,7 @@ function Bi(e, t, n, o, i, a, l, r, c, u, f, s, p, C, v, F, h, m, d, g = "data-g
|
|
|
10102
10117
|
const Se = y(ae.column);
|
|
10103
10118
|
return w("div", {
|
|
10104
10119
|
class: "fv-grid-header-cell",
|
|
10105
|
-
style:
|
|
10120
|
+
style: q(ae, Ce)
|
|
10106
10121
|
}, [w(Zt, {
|
|
10107
10122
|
modelValue: Se.value,
|
|
10108
10123
|
"onUpdate:modelValue": (Y) => Se.value = Y,
|
|
@@ -10153,7 +10168,7 @@ function Bi(e, t, n, o, i, a, l, r, c, u, f, s, p, C, v, F, h, m, d, g = "data-g
|
|
|
10153
10168
|
return w("div", {
|
|
10154
10169
|
class: "fv-grid-header-corner d-flex",
|
|
10155
10170
|
style: P.value
|
|
10156
|
-
}, [k.value && w(
|
|
10171
|
+
}, [k.value && w(od, {
|
|
10157
10172
|
id: "checkbox_for_select_all",
|
|
10158
10173
|
indeterminate: de.value,
|
|
10159
10174
|
modelValue: W.value,
|
|
@@ -10179,7 +10194,7 @@ function Bi(e, t, n, o, i, a, l, r, c, u, f, s, p, C, v, F, h, m, d, g = "data-g
|
|
|
10179
10194
|
renderGridHeader: re
|
|
10180
10195
|
};
|
|
10181
10196
|
}
|
|
10182
|
-
class
|
|
10197
|
+
class sd extends zt {
|
|
10183
10198
|
constructor(t, n) {
|
|
10184
10199
|
super(t, n);
|
|
10185
10200
|
}
|
|
@@ -10253,19 +10268,6 @@ class rd extends zt {
|
|
|
10253
10268
|
type: "boolean",
|
|
10254
10269
|
description: "是否显示设置按钮"
|
|
10255
10270
|
}
|
|
10256
|
-
// useBlankWhenDataIsEmpty: {
|
|
10257
|
-
// title: '空数据表格显示空白行',
|
|
10258
|
-
// description: '表格没有数据时是否显示空白行',
|
|
10259
|
-
// type: 'boolean',
|
|
10260
|
-
// refreshPanelAfterChanged: true
|
|
10261
|
-
// },
|
|
10262
|
-
// emptyDataHeight: {
|
|
10263
|
-
// title: '空数据高度',
|
|
10264
|
-
// type: 'number',
|
|
10265
|
-
// description: '空数据行高度设置',
|
|
10266
|
-
// min: 1,
|
|
10267
|
-
// max: 1000
|
|
10268
|
-
// },
|
|
10269
10271
|
},
|
|
10270
10272
|
setPropertyRelates(a, l) {
|
|
10271
10273
|
switch (a && a.propertyID) {
|
|
@@ -10315,6 +10317,10 @@ class rd extends zt {
|
|
|
10315
10317
|
{
|
|
10316
10318
|
label: "onSelectionChange",
|
|
10317
10319
|
name: "行切换事件"
|
|
10320
|
+
},
|
|
10321
|
+
{
|
|
10322
|
+
label: "onClickRow",
|
|
10323
|
+
name: "行点击事件"
|
|
10318
10324
|
}
|
|
10319
10325
|
], o = this, i = o.eventsEditorUtils.formProperties(t, o.viewModelId, n), a = {};
|
|
10320
10326
|
a[o.viewModelId] = {
|
|
@@ -10337,7 +10343,7 @@ class rd extends zt {
|
|
|
10337
10343
|
};
|
|
10338
10344
|
}
|
|
10339
10345
|
}
|
|
10340
|
-
function
|
|
10346
|
+
function ud(e, t) {
|
|
10341
10347
|
const n = e.schema, o = y(!0), i = y(!0);
|
|
10342
10348
|
function a(f) {
|
|
10343
10349
|
return f && f.sourceType === "control" ? f.componentCategory === "input" : !1;
|
|
@@ -10352,7 +10358,7 @@ function sd(e, t) {
|
|
|
10352
10358
|
return !0;
|
|
10353
10359
|
}
|
|
10354
10360
|
function u(f) {
|
|
10355
|
-
return new
|
|
10361
|
+
return new sd(f, t).getPropertyConfig(n);
|
|
10356
10362
|
}
|
|
10357
10363
|
return {
|
|
10358
10364
|
canAccepts: a,
|
|
@@ -10364,15 +10370,15 @@ function sd(e, t) {
|
|
|
10364
10370
|
getPropsConfig: u
|
|
10365
10371
|
};
|
|
10366
10372
|
}
|
|
10367
|
-
const
|
|
10373
|
+
const cd = /* @__PURE__ */ ge({
|
|
10368
10374
|
name: "FTreeGridDesign",
|
|
10369
|
-
props:
|
|
10375
|
+
props: qo,
|
|
10370
10376
|
emits: [],
|
|
10371
10377
|
setup(e, t) {
|
|
10372
10378
|
var Pe;
|
|
10373
|
-
const n = y(), o = 0, i = 100, a = y(), l = y(), r = y(), c = y(), u = y([]), f = y(!1), s = y(((Pe = e.rowOption) == null ? void 0 : Pe.wrapContent) || !1), p = ue("designer-host-service"), C = ue("design-item-context"), v =
|
|
10379
|
+
const n = y(), o = 0, i = 100, a = y(), l = y(), r = y(), c = y(), u = y([]), f = y(!1), s = y(((Pe = e.rowOption) == null ? void 0 : Pe.wrapContent) || !1), p = ue("designer-host-service"), C = ue("design-item-context"), v = ud(C, p), F = It(n, C, v);
|
|
10374
10380
|
F.value.designerClass = "f-utils-fill-flex-column";
|
|
10375
|
-
const h = xi(e), m = kn(e, h), d = _n(), g = vi(e), k = Ti(e), b = gi(e, /* @__PURE__ */ new Map(), g, h, k), _ = _i(e, b, h, u, t), I =
|
|
10381
|
+
const h = xi(e), m = kn(e, h), d = _n(), g = vi(e), k = Ti(e), b = gi(e, /* @__PURE__ */ new Map(), g, h, k), _ = _i(e, b, h, u, t), I = Bc(e, u, h, _, t), x = R(() => Math.min(b.dataView.value.length, i)), {
|
|
10376
10382
|
containerStyleObject: S
|
|
10377
10383
|
} = Yo(e), T = Zo(e), P = y(e.columns), {
|
|
10378
10384
|
applyCommands: B
|
|
@@ -10384,7 +10390,7 @@ const ud = /* @__PURE__ */ ge({
|
|
|
10384
10390
|
updateColumnRenderContext: V
|
|
10385
10391
|
} = O;
|
|
10386
10392
|
E(b, M);
|
|
10387
|
-
const $ = ni(e, D), L = Si(e, t, h), N = Sn(), H = Ci(e, L, N),
|
|
10393
|
+
const $ = ni(e, D), L = Si(e, t, h), N = Sn(), H = Ci(e, L, N), q = wi(e, L, g, h, N, H), oe = bi(e, P, b, x, o, q), {
|
|
10388
10394
|
getVisualData: pe
|
|
10389
10395
|
} = oe, Be = wn(e, D), ye = ki(e, _), {
|
|
10390
10396
|
sidebarWidth: Ie
|
|
@@ -10413,8 +10419,8 @@ const ud = /* @__PURE__ */ ge({
|
|
|
10413
10419
|
} = Bi(C, e, a, r, c, O, b, be, re, d, _e, K, $, _, ye, M, Te, W, u, "tree-grid-column"), {
|
|
10414
10420
|
renderDataGridSidebar: le
|
|
10415
10421
|
} = Ko(e, ae, _, ye, Te), {
|
|
10416
|
-
renderHorizontalScrollbar:
|
|
10417
|
-
} =
|
|
10422
|
+
renderHorizontalScrollbar: U
|
|
10423
|
+
} = Uo(e, a, Te), {
|
|
10418
10424
|
renderVerticalScrollbar: Me
|
|
10419
10425
|
} = Xo(e, a, Te);
|
|
10420
10426
|
function X() {
|
|
@@ -10431,7 +10437,7 @@ const ud = /* @__PURE__ */ ge({
|
|
|
10431
10437
|
});
|
|
10432
10438
|
const ie = R(() => !u.value || !u.value.length), {
|
|
10433
10439
|
renderEmpty: ve
|
|
10434
|
-
} =
|
|
10440
|
+
} = Ms(t);
|
|
10435
10441
|
return t.expose(F.value), () => w("div", {
|
|
10436
10442
|
ref: n,
|
|
10437
10443
|
dragref: `${C.schema.id}-container`,
|
|
@@ -10447,14 +10453,14 @@ const ud = /* @__PURE__ */ ge({
|
|
|
10447
10453
|
onMouseleave: () => {
|
|
10448
10454
|
f.value = !1;
|
|
10449
10455
|
}
|
|
10450
|
-
}, [le(u), j(),
|
|
10456
|
+
}, [le(u), j(), U(), Me()])]);
|
|
10451
10457
|
}
|
|
10452
10458
|
});
|
|
10453
10459
|
Ct.register = (e, t, n, o) => {
|
|
10454
|
-
e["tree-grid"] = Ct, t["tree-grid"] =
|
|
10460
|
+
e["tree-grid"] = Ct, t["tree-grid"] = gs, o["tree-grid"] = { bindingResolver: vs, selectionItemResolver: hs };
|
|
10455
10461
|
};
|
|
10456
10462
|
Ct.registerDesigner = (e, t, n) => {
|
|
10457
|
-
e["tree-grid"] =
|
|
10463
|
+
e["tree-grid"] = cd, t["tree-grid"] = ys;
|
|
10458
10464
|
};
|
|
10459
10465
|
gn(Ct);
|
|
10460
10466
|
const xt = {
|
|
@@ -10462,17 +10468,17 @@ const xt = {
|
|
|
10462
10468
|
convertTo: (e, t, n) => {
|
|
10463
10469
|
e.editor[t] = n;
|
|
10464
10470
|
}
|
|
10465
|
-
},
|
|
10471
|
+
}, dd = {
|
|
10466
10472
|
convertFrom: (e, t) => e[t] == null ? !0 : e[t],
|
|
10467
10473
|
convertTo: (e, t, n) => {
|
|
10468
10474
|
e[t] = n;
|
|
10469
10475
|
}
|
|
10470
10476
|
};
|
|
10471
|
-
function
|
|
10477
|
+
function fd(e) {
|
|
10472
10478
|
let t = "form_group_" + Date.now();
|
|
10473
10479
|
return e && (t = e.replaceAll("-", "_").replaceAll(".", "_")), "lookup." + t;
|
|
10474
10480
|
}
|
|
10475
|
-
const
|
|
10481
|
+
const pd = {
|
|
10476
10482
|
convertFrom: (e, t) => {
|
|
10477
10483
|
var n;
|
|
10478
10484
|
return (n = e.editor[t]) == null ? void 0 : n.displayName;
|
|
@@ -10482,10 +10488,10 @@ const fd = {
|
|
|
10482
10488
|
const o = n[0], { name: i, id: a, metadataContent: l } = o;
|
|
10483
10489
|
e.editor.dataSource || (e.editor.dataSource = {}), e.editor.dataSource.displayName = i, e.editor.helpId = a;
|
|
10484
10490
|
const { displayType: r, idField: c, textField: u } = l;
|
|
10485
|
-
e.editor.displayType = r, e.editor.dataSource.idField = c, e.editor.textField = u, e.editor.dataSource.type = "ViewObject", e.editor.dataSource.uri || (e.editor.dataSource.uri =
|
|
10491
|
+
e.editor.displayType = r, e.editor.dataSource.idField = c, e.editor.textField = u, e.editor.dataSource.type = "ViewObject", e.editor.dataSource.uri || (e.editor.dataSource.uri = fd(e.id));
|
|
10486
10492
|
}
|
|
10487
10493
|
}
|
|
10488
|
-
},
|
|
10494
|
+
}, md = {
|
|
10489
10495
|
convertFrom: (e, t) => {
|
|
10490
10496
|
var n;
|
|
10491
10497
|
return (n = e.editor.dataSource) == null ? void 0 : n.idField;
|
|
@@ -10496,7 +10502,7 @@ const fd = {
|
|
|
10496
10502
|
e.editor.dataSource.idField = o == null ? void 0 : o.bindingPath;
|
|
10497
10503
|
}
|
|
10498
10504
|
}
|
|
10499
|
-
},
|
|
10505
|
+
}, gd = {
|
|
10500
10506
|
convertFrom: (e, t) => {
|
|
10501
10507
|
var n;
|
|
10502
10508
|
return (n = e.editor) == null ? void 0 : n.textField;
|
|
@@ -10507,12 +10513,12 @@ const fd = {
|
|
|
10507
10513
|
e.editor.textField = o == null ? void 0 : o.bindingPath;
|
|
10508
10514
|
}
|
|
10509
10515
|
}
|
|
10510
|
-
},
|
|
10516
|
+
}, hd = {
|
|
10511
10517
|
convertFrom: (e, t) => e.editor.displayType ? e.editor.displayType.toUpperCase() : "LIST",
|
|
10512
10518
|
convertTo: (e, t, n) => {
|
|
10513
10519
|
e.editor.displayType = n;
|
|
10514
10520
|
}
|
|
10515
|
-
},
|
|
10521
|
+
}, vd = Symbol("schema_repository_token");
|
|
10516
10522
|
class Pi extends Xe {
|
|
10517
10523
|
getPropertyConfig(t, n) {
|
|
10518
10524
|
const o = this.getBasicProperties(t, n), i = this.getAppearanceConfig(), a = this.getBehaviorConfig(t), l = this.getLookupConfig(t.editor);
|
|
@@ -10554,7 +10560,7 @@ class Pi extends Xe {
|
|
|
10554
10560
|
description: "",
|
|
10555
10561
|
title: "可见",
|
|
10556
10562
|
type: "boolean",
|
|
10557
|
-
$converter:
|
|
10563
|
+
$converter: dd
|
|
10558
10564
|
},
|
|
10559
10565
|
placeHolder: {
|
|
10560
10566
|
visible: !1,
|
|
@@ -10600,7 +10606,7 @@ class Pi extends Xe {
|
|
|
10600
10606
|
},
|
|
10601
10607
|
{ id: "total", title: "全部", type: "List", dataSource: "Total" }
|
|
10602
10608
|
],
|
|
10603
|
-
repositoryToken:
|
|
10609
|
+
repositoryToken: vd,
|
|
10604
10610
|
onSubmitModal: (n) => {
|
|
10605
10611
|
if (n) {
|
|
10606
10612
|
const o = this.formSchemaUtils.getFormMetadataBasicInfo();
|
|
@@ -10608,13 +10614,13 @@ class Pi extends Xe {
|
|
|
10608
10614
|
}
|
|
10609
10615
|
}
|
|
10610
10616
|
},
|
|
10611
|
-
$converter:
|
|
10617
|
+
$converter: pd
|
|
10612
10618
|
},
|
|
10613
10619
|
displayType: {
|
|
10614
10620
|
description: "类型: 树列表、列表、双列表、左树右列表",
|
|
10615
10621
|
title: "展示类型",
|
|
10616
10622
|
type: "string",
|
|
10617
|
-
$converter:
|
|
10623
|
+
$converter: hd,
|
|
10618
10624
|
editor: {
|
|
10619
10625
|
type: "combo-list",
|
|
10620
10626
|
editable: !1,
|
|
@@ -10647,15 +10653,15 @@ class Pi extends Xe {
|
|
|
10647
10653
|
{ field: "code", title: "编号" },
|
|
10648
10654
|
{ field: "bindingPath", title: "绑定字段" }
|
|
10649
10655
|
],
|
|
10650
|
-
repositoryToken:
|
|
10656
|
+
repositoryToken: qt
|
|
10651
10657
|
},
|
|
10652
|
-
$converter:
|
|
10658
|
+
$converter: md
|
|
10653
10659
|
},
|
|
10654
10660
|
textField: {
|
|
10655
10661
|
description: "显示文本字段",
|
|
10656
10662
|
title: "文本字段",
|
|
10657
10663
|
type: "string",
|
|
10658
|
-
$converter:
|
|
10664
|
+
$converter: gd,
|
|
10659
10665
|
editor: {
|
|
10660
10666
|
type: "field-selector",
|
|
10661
10667
|
textField: "bindingPath",
|
|
@@ -10669,7 +10675,7 @@ class Pi extends Xe {
|
|
|
10669
10675
|
{ field: "code", title: "编号" },
|
|
10670
10676
|
{ field: "bindingPath", title: "绑定字段" }
|
|
10671
10677
|
],
|
|
10672
|
-
repositoryToken:
|
|
10678
|
+
repositoryToken: qt
|
|
10673
10679
|
}
|
|
10674
10680
|
},
|
|
10675
10681
|
mappingFields: {
|
|
@@ -10692,7 +10698,7 @@ class Pi extends Xe {
|
|
|
10692
10698
|
idField: "id",
|
|
10693
10699
|
textField: "bindingPath",
|
|
10694
10700
|
valueField: "bindingPath",
|
|
10695
|
-
repositoryToken:
|
|
10701
|
+
repositoryToken: qt
|
|
10696
10702
|
},
|
|
10697
10703
|
toData: {
|
|
10698
10704
|
idField: "id",
|
|
@@ -10725,19 +10731,19 @@ class Pi extends Xe {
|
|
|
10725
10731
|
};
|
|
10726
10732
|
}
|
|
10727
10733
|
}
|
|
10728
|
-
function
|
|
10734
|
+
function yd(e, t) {
|
|
10729
10735
|
function n(o, i) {
|
|
10730
10736
|
const a = e.schema;
|
|
10731
10737
|
return new Pi(o, t).getPropertyConfig(a, i);
|
|
10732
10738
|
}
|
|
10733
10739
|
return { getPropsConfig: n };
|
|
10734
10740
|
}
|
|
10735
|
-
const
|
|
10741
|
+
const bd = /* @__PURE__ */ ge({
|
|
10736
10742
|
name: "FLookupDesign",
|
|
10737
10743
|
props: At,
|
|
10738
10744
|
emits: [],
|
|
10739
10745
|
setup(e, t) {
|
|
10740
|
-
const n = y(), o = ue("design-item-context"), i = ue("designer-host-service"), a =
|
|
10746
|
+
const n = y(), o = ue("design-item-context"), i = ue("designer-host-service"), a = yd(o, i), l = It(n, o, a);
|
|
10741
10747
|
return ke(() => {
|
|
10742
10748
|
n.value.componentInstance = l;
|
|
10743
10749
|
}), t.expose(l.value), () => w("div", {
|
|
@@ -10764,7 +10770,7 @@ const Vi = /* @__PURE__ */ new Map([
|
|
|
10764
10770
|
function Ei(e, t, n) {
|
|
10765
10771
|
return t;
|
|
10766
10772
|
}
|
|
10767
|
-
const
|
|
10773
|
+
const Cd = "https://json-schema.org/draft/2020-12/schema", wd = "https://farris-design.gitee.io/layout.schema.json", Sd = "layout", xd = "A Farris Container Component", Fd = "object", _d = {
|
|
10768
10774
|
id: {
|
|
10769
10775
|
description: "The unique identifier for layout component",
|
|
10770
10776
|
type: "string"
|
|
@@ -10807,19 +10813,19 @@ const bd = "https://json-schema.org/draft/2020-12/schema", Cd = "https://farris-
|
|
|
10807
10813
|
type: "boolean",
|
|
10808
10814
|
default: !0
|
|
10809
10815
|
}
|
|
10810
|
-
},
|
|
10816
|
+
}, kd = [
|
|
10811
10817
|
"id",
|
|
10812
10818
|
"type",
|
|
10813
10819
|
"contents"
|
|
10814
|
-
],
|
|
10815
|
-
$schema:
|
|
10816
|
-
$id:
|
|
10817
|
-
title:
|
|
10818
|
-
description:
|
|
10819
|
-
type:
|
|
10820
|
-
properties:
|
|
10821
|
-
required:
|
|
10822
|
-
},
|
|
10820
|
+
], Id = {
|
|
10821
|
+
$schema: Cd,
|
|
10822
|
+
$id: wd,
|
|
10823
|
+
title: Sd,
|
|
10824
|
+
description: xd,
|
|
10825
|
+
type: Fd,
|
|
10826
|
+
properties: _d,
|
|
10827
|
+
required: kd
|
|
10828
|
+
}, Td = "layout", Md = "A Farris Component", Od = "object", Bd = {
|
|
10823
10829
|
basic: {
|
|
10824
10830
|
description: "Basic Infomation",
|
|
10825
10831
|
title: "基本信息",
|
|
@@ -10854,15 +10860,15 @@ const bd = "https://json-schema.org/draft/2020-12/schema", Cd = "https://farris-
|
|
|
10854
10860
|
}
|
|
10855
10861
|
}
|
|
10856
10862
|
}
|
|
10857
|
-
},
|
|
10858
|
-
title:
|
|
10859
|
-
description:
|
|
10860
|
-
type:
|
|
10861
|
-
categories:
|
|
10863
|
+
}, Pd = {
|
|
10864
|
+
title: Td,
|
|
10865
|
+
description: Md,
|
|
10866
|
+
type: Od,
|
|
10867
|
+
categories: Bd
|
|
10862
10868
|
}, Tn = {
|
|
10863
10869
|
customStyle: { type: String, defaut: "" },
|
|
10864
10870
|
customClass: { type: String, defaut: "" }
|
|
10865
|
-
}, Di = Le(Tn,
|
|
10871
|
+
}, Di = Le(Tn, Id, Vi, Ei, Pd);
|
|
10866
10872
|
function Ri(e) {
|
|
10867
10873
|
const t = y(-1), n = y(-1), o = y(0), i = y(0), a = y(!1), l = y(!1), r = R(() => ({
|
|
10868
10874
|
display: a.value ? "block" : "none",
|
|
@@ -10965,8 +10971,8 @@ function Wn() {
|
|
|
10965
10971
|
}
|
|
10966
10972
|
return { guid: e, uuid: t };
|
|
10967
10973
|
}
|
|
10968
|
-
const
|
|
10969
|
-
function
|
|
10974
|
+
const Vd = ["moz", "ms", "webkit"];
|
|
10975
|
+
function Ed() {
|
|
10970
10976
|
let e = 0;
|
|
10971
10977
|
return (t) => {
|
|
10972
10978
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), i = setTimeout(() => {
|
|
@@ -10975,19 +10981,19 @@ function Vd() {
|
|
|
10975
10981
|
return e = n + o, i;
|
|
10976
10982
|
};
|
|
10977
10983
|
}
|
|
10978
|
-
function
|
|
10984
|
+
function Dd() {
|
|
10979
10985
|
if (typeof window > "u")
|
|
10980
10986
|
return () => 0;
|
|
10981
10987
|
if (window.requestAnimationFrame)
|
|
10982
10988
|
return window.requestAnimationFrame.bind(window);
|
|
10983
|
-
const e =
|
|
10984
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
10989
|
+
const e = Vd.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
10990
|
+
return e ? window[`${e}RequestAnimationFrame`] : Ed();
|
|
10985
10991
|
}
|
|
10986
|
-
|
|
10987
|
-
function
|
|
10992
|
+
Dd();
|
|
10993
|
+
function Rd(e, t) {
|
|
10988
10994
|
return ((t == null ? void 0 : t.split(" ")) || []).reduce((o, i) => (i && (o[i] = !0), o), e), e;
|
|
10989
10995
|
}
|
|
10990
|
-
function
|
|
10996
|
+
function $d(e, t) {
|
|
10991
10997
|
return ((t == null ? void 0 : t.split(";")) || []).reduce((o, i) => {
|
|
10992
10998
|
if (i) {
|
|
10993
10999
|
const a = i.split(":");
|
|
@@ -11009,9 +11015,9 @@ const yt = /* @__PURE__ */ ge({
|
|
|
11009
11015
|
_t("layout", {
|
|
11010
11016
|
useResizeHandleComposition: o
|
|
11011
11017
|
});
|
|
11012
|
-
const r = R(() =>
|
|
11018
|
+
const r = R(() => Rd({
|
|
11013
11019
|
"f-layout": !0
|
|
11014
|
-
}, e == null ? void 0 : e.customClass)), c = R(() =>
|
|
11020
|
+
}, e == null ? void 0 : e.customClass)), c = R(() => $d({}, e == null ? void 0 : e.customStyle));
|
|
11015
11021
|
return () => w("div", {
|
|
11016
11022
|
class: r.value,
|
|
11017
11023
|
style: c.value,
|
|
@@ -11027,7 +11033,7 @@ const yt = /* @__PURE__ */ ge({
|
|
|
11027
11033
|
style: a.value
|
|
11028
11034
|
}, null)]);
|
|
11029
11035
|
}
|
|
11030
|
-
}),
|
|
11036
|
+
}), Nd = "https://json-schema.org/draft/2020-12/schema", jd = "https://farris-design.gitee.io/layout-pane.schema.json", Ld = "layout-pane", Hd = "A Farris Container Component", Ad = "object", zd = {
|
|
11031
11037
|
id: {
|
|
11032
11038
|
description: "The unique identifier for a layout pane",
|
|
11033
11039
|
type: "string"
|
|
@@ -11090,14 +11096,19 @@ const yt = /* @__PURE__ */ ge({
|
|
|
11090
11096
|
type: "number",
|
|
11091
11097
|
default: !0
|
|
11092
11098
|
}
|
|
11093
|
-
},
|
|
11094
|
-
|
|
11095
|
-
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11099
|
+
}, Gd = [
|
|
11100
|
+
"id",
|
|
11101
|
+
"type",
|
|
11102
|
+
"contents"
|
|
11103
|
+
], Wd = {
|
|
11104
|
+
$schema: Nd,
|
|
11105
|
+
$id: jd,
|
|
11106
|
+
title: Ld,
|
|
11107
|
+
description: Hd,
|
|
11108
|
+
type: Ad,
|
|
11109
|
+
properties: zd,
|
|
11110
|
+
required: Gd
|
|
11111
|
+
}, qd = "layout-pane", Ud = "A Farris Container Component", Kd = "object", Xd = {
|
|
11101
11112
|
basic: {
|
|
11102
11113
|
description: "Basic Infomation",
|
|
11103
11114
|
title: "基本信息",
|
|
@@ -11192,11 +11203,11 @@ const yt = /* @__PURE__ */ ge({
|
|
|
11192
11203
|
}
|
|
11193
11204
|
}
|
|
11194
11205
|
}
|
|
11195
|
-
},
|
|
11196
|
-
title:
|
|
11197
|
-
description:
|
|
11198
|
-
type:
|
|
11199
|
-
categories:
|
|
11206
|
+
}, Yd = {
|
|
11207
|
+
title: qd,
|
|
11208
|
+
description: Ud,
|
|
11209
|
+
type: Kd,
|
|
11210
|
+
categories: Xd
|
|
11200
11211
|
}, Mn = {
|
|
11201
11212
|
customClass: { type: String, defaut: "" },
|
|
11202
11213
|
customStyle: { type: String, defaut: "" },
|
|
@@ -11216,7 +11227,7 @@ const yt = /* @__PURE__ */ ge({
|
|
|
11216
11227
|
minWidth: { type: Number, default: 100 },
|
|
11217
11228
|
/** 面板最小高度 */
|
|
11218
11229
|
minHeight: { type: Number, default: 100 }
|
|
11219
|
-
}, $i = Le(Mn,
|
|
11230
|
+
}, $i = Le(Mn, Wd, Vi, Ei, Yd);
|
|
11220
11231
|
function Ni(e, t, n, o, i) {
|
|
11221
11232
|
const {
|
|
11222
11233
|
horizontalResizeBarPosition: a,
|
|
@@ -11312,19 +11323,19 @@ const Vt = /* @__PURE__ */ ge({
|
|
|
11312
11323
|
}, null)]);
|
|
11313
11324
|
}
|
|
11314
11325
|
});
|
|
11315
|
-
function
|
|
11326
|
+
function Jd(e, t) {
|
|
11316
11327
|
function n() {
|
|
11317
11328
|
return !1;
|
|
11318
11329
|
}
|
|
11319
11330
|
return { canAccepts: n };
|
|
11320
11331
|
}
|
|
11321
|
-
const
|
|
11332
|
+
const Qd = /* @__PURE__ */ ge({
|
|
11322
11333
|
name: "FLayoutDesign",
|
|
11323
11334
|
props: Tn,
|
|
11324
11335
|
emits: [],
|
|
11325
11336
|
setup(e, t) {
|
|
11326
11337
|
var f;
|
|
11327
|
-
const n = y(), o = ue("design-item-context"), i =
|
|
11338
|
+
const n = y(), o = ue("design-item-context"), i = Jd(o.schema, (f = o.parent) == null ? void 0 : f.schema), a = It(n, o, i);
|
|
11328
11339
|
a.value.canNested = !1;
|
|
11329
11340
|
const l = Ri(n), {
|
|
11330
11341
|
horizontalResizeHandleStyle: r,
|
|
@@ -11350,10 +11361,10 @@ const Yd = /* @__PURE__ */ ge({
|
|
|
11350
11361
|
}, null)]);
|
|
11351
11362
|
}
|
|
11352
11363
|
});
|
|
11353
|
-
function
|
|
11364
|
+
function Zd(e, t) {
|
|
11354
11365
|
const n = e.schema;
|
|
11355
11366
|
function o(a) {
|
|
11356
|
-
return !!
|
|
11367
|
+
return !!yu().basalDragulaRuleForContainer(a);
|
|
11357
11368
|
}
|
|
11358
11369
|
function i() {
|
|
11359
11370
|
const a = ["f-layout-pane"];
|
|
@@ -11361,14 +11372,14 @@ function Jd(e, t) {
|
|
|
11361
11372
|
}
|
|
11362
11373
|
return { canAccepts: o, getDesignerClass: i };
|
|
11363
11374
|
}
|
|
11364
|
-
const
|
|
11375
|
+
const ef = /* @__PURE__ */ ge({
|
|
11365
11376
|
name: "FLayoutPaneDesign",
|
|
11366
11377
|
props: Mn,
|
|
11367
11378
|
emits: [],
|
|
11368
11379
|
setup(e, t) {
|
|
11369
11380
|
const n = y(), o = y();
|
|
11370
11381
|
ue("designer-host-service");
|
|
11371
|
-
const i = ue("design-item-context"), a =
|
|
11382
|
+
const i = ue("design-item-context"), a = Zd(i), l = It(o, i, a);
|
|
11372
11383
|
l.value.canNested = !1, l.value.canMove = !1, l.value.canDelete = !1, ke(() => {
|
|
11373
11384
|
o.value.componentInstance = l;
|
|
11374
11385
|
}), t.expose(l.value);
|
|
@@ -11421,14 +11432,14 @@ yt.register = (e, t, n, o) => {
|
|
|
11421
11432
|
e.layout = yt, t.layout = Di, e["layout-pane"] = Vt, t["layout-pane"] = $i;
|
|
11422
11433
|
};
|
|
11423
11434
|
yt.registerDesigner = (e, t, n) => {
|
|
11424
|
-
e.layout =
|
|
11435
|
+
e.layout = Qd, t.layout = Di, e["layout-pane"] = ef, t["layout-pane"] = $i;
|
|
11425
11436
|
};
|
|
11426
11437
|
const ji = /* @__PURE__ */ new Map([
|
|
11427
11438
|
["appearance", ot],
|
|
11428
11439
|
["column", "columnOption"]
|
|
11429
11440
|
// ['fields', resolveGridColumns]
|
|
11430
|
-
]), Li = /* @__PURE__ */ new Map([]),
|
|
11431
|
-
class
|
|
11441
|
+
]), Li = /* @__PURE__ */ new Map([]), tf = "root-viewmodel";
|
|
11442
|
+
class nf {
|
|
11432
11443
|
constructor(t, n) {
|
|
11433
11444
|
A(this, "formSchemaUtils");
|
|
11434
11445
|
A(this, "controlCreatorUtils");
|
|
@@ -11586,7 +11597,7 @@ class ef {
|
|
|
11586
11597
|
code: `${t.componentId}-component-viewmodel`,
|
|
11587
11598
|
name: t.componentName,
|
|
11588
11599
|
bindTo: t.bindTo,
|
|
11589
|
-
parent:
|
|
11600
|
+
parent: tf,
|
|
11590
11601
|
fields: this.assembleViewModelFields(t),
|
|
11591
11602
|
commands: [],
|
|
11592
11603
|
states: [],
|
|
@@ -11642,7 +11653,7 @@ class ef {
|
|
|
11642
11653
|
return l == null || l.forEach((r) => {
|
|
11643
11654
|
if (r.$type === ri.ComplexField)
|
|
11644
11655
|
return;
|
|
11645
|
-
const c =
|
|
11656
|
+
const c = Ye(r), u = this.controlCreatorUtils.setGridFieldProperty("data-grid-column", c, "", t.editable);
|
|
11646
11657
|
u && a.push(u);
|
|
11647
11658
|
}), [o];
|
|
11648
11659
|
}
|
|
@@ -11681,14 +11692,14 @@ function Hi(e, t, n, o) {
|
|
|
11681
11692
|
dataSource: (u = (c = n.bindingSourceContext) == null ? void 0 : c.bindingEntity) == null ? void 0 : u.label,
|
|
11682
11693
|
selectedFields: (f = n.bindingSourceContext) == null ? void 0 : f.bindingEntityFields
|
|
11683
11694
|
};
|
|
11684
|
-
return new
|
|
11695
|
+
return new nf(e, o).createComponent(p);
|
|
11685
11696
|
} else
|
|
11686
11697
|
return t;
|
|
11687
11698
|
}
|
|
11688
11699
|
function Ai(e, t, n) {
|
|
11689
11700
|
return t;
|
|
11690
11701
|
}
|
|
11691
|
-
const
|
|
11702
|
+
const of = "https://json-schema.org/draft/2020-12/schema", af = "https://farris-design.gitee.io/data-grid.schema.json", lf = "data-grid", rf = "A Farris Data Grid Component", sf = "object", uf = {
|
|
11692
11703
|
id: {
|
|
11693
11704
|
description: "The unique identifier for a Input Group",
|
|
11694
11705
|
type: "string"
|
|
@@ -12472,17 +12483,18 @@ const tf = "https://json-schema.org/draft/2020-12/schema", nf = "https://farris-
|
|
|
12472
12483
|
default: !1
|
|
12473
12484
|
}
|
|
12474
12485
|
}
|
|
12475
|
-
},
|
|
12486
|
+
}, cf = [
|
|
12476
12487
|
"id",
|
|
12477
|
-
"type"
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
$
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12488
|
+
"type",
|
|
12489
|
+
"columns"
|
|
12490
|
+
], df = {
|
|
12491
|
+
$schema: of,
|
|
12492
|
+
$id: af,
|
|
12493
|
+
title: lf,
|
|
12494
|
+
description: rf,
|
|
12495
|
+
type: sf,
|
|
12496
|
+
properties: uf,
|
|
12497
|
+
required: cf
|
|
12486
12498
|
}, On = {
|
|
12487
12499
|
/** 变更策略 默认主动更新 */
|
|
12488
12500
|
changePolicy: { type: String, default: "push" },
|
|
@@ -12609,7 +12621,7 @@ const tf = "https://json-schema.org/draft/2020-12/schema", nf = "https://farris-
|
|
|
12609
12621
|
type: Boolean,
|
|
12610
12622
|
default: !1
|
|
12611
12623
|
}
|
|
12612
|
-
},
|
|
12624
|
+
}, ff = Object.assign({}, On, { componentId: { type: String, default: "" } }), zi = Le(On, df, ji, Hi), pf = Yl(), mf = Ql();
|
|
12613
12625
|
function Gi(e, t, n, o, i, a, l, r, c, u, f, s, p, C, v) {
|
|
12614
12626
|
const {
|
|
12615
12627
|
calculateCellPositionInRow: F,
|
|
@@ -12643,7 +12655,7 @@ function Gi(e, t, n, o, i, a, l, r, c, u, f, s, p, C, v) {
|
|
|
12643
12655
|
} = r, {
|
|
12644
12656
|
navigateOnKeyUp: H
|
|
12645
12657
|
} = f, {
|
|
12646
|
-
gridDataStyle:
|
|
12658
|
+
gridDataStyle: q,
|
|
12647
12659
|
gridMergedDataStyle: oe,
|
|
12648
12660
|
leftFixedGridDataStyle: pe,
|
|
12649
12661
|
leftFixedGridMergedDataStyle: Be,
|
|
@@ -12663,13 +12675,13 @@ function Gi(e, t, n, o, i, a, l, r, c, u, f, s, p, C, v) {
|
|
|
12663
12675
|
}, [w("span", {
|
|
12664
12676
|
class: T(j)
|
|
12665
12677
|
}, null)]));
|
|
12666
|
-
const
|
|
12678
|
+
const U = j.data[j.groupField];
|
|
12667
12679
|
le.push(w("div", {
|
|
12668
|
-
ref:
|
|
12680
|
+
ref: U.setRef,
|
|
12669
12681
|
key: h(j, j.layer + 1),
|
|
12670
12682
|
class: "fv-grid-cell",
|
|
12671
|
-
style: b(
|
|
12672
|
-
}, [
|
|
12683
|
+
style: b(U, Y, j.layer)
|
|
12684
|
+
}, [U.data])), Object.values(j.data).filter((Me) => Me.field !== j.groupField && Me.colSpan !== 0).forEach((Me) => {
|
|
12673
12685
|
le.push(w("div", {
|
|
12674
12686
|
ref: Me.setRef,
|
|
12675
12687
|
key: h(j, Me.index),
|
|
@@ -12686,20 +12698,20 @@ function Gi(e, t, n, o, i, a, l, r, c, u, f, s, p, C, v) {
|
|
|
12686
12698
|
key: d(j),
|
|
12687
12699
|
class: B(j),
|
|
12688
12700
|
style: g(j),
|
|
12689
|
-
onClick: (
|
|
12690
|
-
onMouseover: (
|
|
12701
|
+
onClick: (U) => O(U, j),
|
|
12702
|
+
onMouseover: (U) => M(U, j)
|
|
12691
12703
|
}, [me(j, Y)]);
|
|
12692
12704
|
}
|
|
12693
12705
|
function we(j, Y) {
|
|
12694
12706
|
const le = [];
|
|
12695
12707
|
if (j.groupField && Y[j.groupField]) {
|
|
12696
|
-
const
|
|
12708
|
+
const U = j.data[j.groupField];
|
|
12697
12709
|
le.push(w("div", {
|
|
12698
|
-
ref:
|
|
12710
|
+
ref: U.setRef,
|
|
12699
12711
|
key: h(j, j.layer + 1),
|
|
12700
12712
|
class: "fv-grid-cell",
|
|
12701
|
-
style: _(
|
|
12702
|
-
}, [
|
|
12713
|
+
style: _(U, Y, j.layer)
|
|
12714
|
+
}, [U.data]));
|
|
12703
12715
|
}
|
|
12704
12716
|
return le;
|
|
12705
12717
|
}
|
|
@@ -12709,8 +12721,8 @@ function Gi(e, t, n, o, i, a, l, r, c, u, f, s, p, C, v) {
|
|
|
12709
12721
|
key: d(j),
|
|
12710
12722
|
class: B(j),
|
|
12711
12723
|
style: g(j),
|
|
12712
|
-
onClick: (
|
|
12713
|
-
onMouseover: (
|
|
12724
|
+
onClick: (U) => O(U, j),
|
|
12725
|
+
onMouseover: (U) => M(U, j)
|
|
12714
12726
|
}, [we(j, Y)]);
|
|
12715
12727
|
}
|
|
12716
12728
|
function K(j, Y, le) {
|
|
@@ -12719,41 +12731,41 @@ function Gi(e, t, n, o, i, a, l, r, c, u, f, s, p, C, v) {
|
|
|
12719
12731
|
key: d(j),
|
|
12720
12732
|
class: B(j),
|
|
12721
12733
|
style: g(j),
|
|
12722
|
-
onClick: (
|
|
12723
|
-
onMouseover: (
|
|
12724
|
-
onMouseout: (
|
|
12725
|
-
}, [Object.values(j.data).filter((
|
|
12726
|
-
const Me = le == null ? void 0 : le.find((X) => X.field ===
|
|
12734
|
+
onClick: (U) => O(U, j),
|
|
12735
|
+
onMouseover: (U) => M(U, j),
|
|
12736
|
+
onMouseout: (U) => E(U, j)
|
|
12737
|
+
}, [Object.values(j.data).filter((U) => Y[U.field] && U.rowSpan === 1).map((U) => {
|
|
12738
|
+
const Me = le == null ? void 0 : le.find((X) => X.field === U.field);
|
|
12727
12739
|
return w("div", {
|
|
12728
|
-
ref:
|
|
12729
|
-
key: h(j,
|
|
12730
|
-
class: P(
|
|
12731
|
-
style: m(
|
|
12732
|
-
onClick: (X) => D(X,
|
|
12733
|
-
onKeyup: (X) => H(X,
|
|
12740
|
+
ref: U.setRef,
|
|
12741
|
+
key: h(j, U.index),
|
|
12742
|
+
class: P(U),
|
|
12743
|
+
style: m(U, Y),
|
|
12744
|
+
onClick: (X) => D(X, U, j, Me),
|
|
12745
|
+
onKeyup: (X) => H(X, U)
|
|
12734
12746
|
}, [w("div", {
|
|
12735
|
-
class: I(
|
|
12736
|
-
style: x(
|
|
12747
|
+
class: I(U, Me),
|
|
12748
|
+
style: x(U)
|
|
12737
12749
|
}, [w("div", {
|
|
12738
|
-
class: S(
|
|
12739
|
-
}, [
|
|
12740
|
-
cell:
|
|
12750
|
+
class: S(U)
|
|
12751
|
+
}, [U.data != null && t.slots.cellTemplate ? t.slots.cellTemplate({
|
|
12752
|
+
cell: U,
|
|
12741
12753
|
row: j
|
|
12742
|
-
}) :
|
|
12754
|
+
}) : U.mode === Ae.editing ? U.getEditor(U) : U.formatter ? U.formatter(U, j) : U.data != null ? U.data.toString() : U.data])])]);
|
|
12743
12755
|
})]);
|
|
12744
12756
|
}
|
|
12745
12757
|
const de = [K, he, W];
|
|
12746
12758
|
function _e(j, Y) {
|
|
12747
12759
|
const le = F(j);
|
|
12748
|
-
return v.value.map((
|
|
12760
|
+
return v.value.map((U) => de[U.type](U, le, j));
|
|
12749
12761
|
}
|
|
12750
12762
|
function re(j) {
|
|
12751
12763
|
const Y = F(j);
|
|
12752
|
-
return v.value.map((le) => Object.values(le.data).filter((
|
|
12753
|
-
key: h(le,
|
|
12764
|
+
return v.value.map((le) => Object.values(le.data).filter((U) => Y[U.field] && U.rowSpan > 1).map((U) => w("div", {
|
|
12765
|
+
key: h(le, U.index),
|
|
12754
12766
|
class: "fv-grid-cell fv-grid-merged-cell",
|
|
12755
|
-
style: k(le,
|
|
12756
|
-
}, [
|
|
12767
|
+
style: k(le, U, Y)
|
|
12768
|
+
}, [U.data])));
|
|
12757
12769
|
}
|
|
12758
12770
|
function ae() {
|
|
12759
12771
|
return w("div", {
|
|
@@ -12773,7 +12785,7 @@ function Gi(e, t, n, o, i, a, l, r, c, u, f, s, p, C, v) {
|
|
|
12773
12785
|
class: "fv-grid-content-primary"
|
|
12774
12786
|
}, [w("div", {
|
|
12775
12787
|
class: "fv-grid-data",
|
|
12776
|
-
style:
|
|
12788
|
+
style: q.value
|
|
12777
12789
|
}, [_e($.value.primaryColumns.filter((j) => j.visible))]), w("div", {
|
|
12778
12790
|
class: "fv-grid-merge-date",
|
|
12779
12791
|
style: oe.value
|
|
@@ -12824,7 +12836,7 @@ const it = /* @__PURE__ */ ge({
|
|
|
12824
12836
|
updateColumnRenderContext: E
|
|
12825
12837
|
} = P;
|
|
12826
12838
|
O(b, B);
|
|
12827
|
-
const D = so(e, M), V = cn(e, t, a), $ = dn(), L = fn(e, V, $), N = pn(e, V, h, a, $, L), H = Fo(e, a, L, N),
|
|
12839
|
+
const D = so(e, M), V = cn(e, t, a), $ = dn(), L = fn(e, V, $), N = pn(e, V, h, a, $, L), H = Fo(e, a, L, N), q = _o(e, a, L, N), oe = mn(e, i, b, I, 0, N, H, q), {
|
|
12828
12840
|
getVisualData: pe
|
|
12829
12841
|
} = oe, Be = wa(M), ye = uo(e, M), Ie = co(e, _), {
|
|
12830
12842
|
sidebarWidth: Te
|
|
@@ -12847,7 +12859,7 @@ const it = /* @__PURE__ */ ge({
|
|
|
12847
12859
|
"fv-grid-wrap-content": C.value
|
|
12848
12860
|
})), {
|
|
12849
12861
|
renderGridHeader: le,
|
|
12850
|
-
renderGridColumnResizeOverlay:
|
|
12862
|
+
renderGridColumnResizeOverlay: U
|
|
12851
12863
|
} = yo(e, r, u, f, P, b, Se, be, F, ae, _e, D, _, Ie, B, me, K, s), {
|
|
12852
12864
|
renderDataGridPagination: Me
|
|
12853
12865
|
} = Sa(e, t, b, me, g), {
|
|
@@ -12962,10 +12974,10 @@ const it = /* @__PURE__ */ ge({
|
|
|
12962
12974
|
onMouseleave: () => {
|
|
12963
12975
|
p.value = !1;
|
|
12964
12976
|
}
|
|
12965
|
-
}, [X(s), wt(), Pe(), Ne()]), ve(), k.value && Me(),
|
|
12977
|
+
}, [X(s), wt(), Pe(), Ne()]), ve(), k.value && Me(), U(), e.disabled && ie()]);
|
|
12966
12978
|
}
|
|
12967
12979
|
});
|
|
12968
|
-
class
|
|
12980
|
+
class gf extends zt {
|
|
12969
12981
|
constructor(t, n) {
|
|
12970
12982
|
super(t, n);
|
|
12971
12983
|
}
|
|
@@ -13197,7 +13209,7 @@ class pf extends zt {
|
|
|
13197
13209
|
};
|
|
13198
13210
|
}
|
|
13199
13211
|
}
|
|
13200
|
-
function
|
|
13212
|
+
function hf(e, t) {
|
|
13201
13213
|
const n = e.schema, o = y(!0), i = y(!0);
|
|
13202
13214
|
function a(f) {
|
|
13203
13215
|
return f && f.sourceType === "control" ? f.componentCategory === "input" : !1;
|
|
@@ -13212,7 +13224,7 @@ function mf(e, t) {
|
|
|
13212
13224
|
return !0;
|
|
13213
13225
|
}
|
|
13214
13226
|
function u(f) {
|
|
13215
|
-
return new
|
|
13227
|
+
return new gf(f, t).getPropertyConfig(n);
|
|
13216
13228
|
}
|
|
13217
13229
|
return {
|
|
13218
13230
|
canAccepts: a,
|
|
@@ -13226,11 +13238,11 @@ function mf(e, t) {
|
|
|
13226
13238
|
}
|
|
13227
13239
|
const en = /* @__PURE__ */ ge({
|
|
13228
13240
|
name: "FDataGridDesign",
|
|
13229
|
-
props:
|
|
13241
|
+
props: ff,
|
|
13230
13242
|
emits: ["ClickRow", "DoubleClickRow", "selectionChange", "enterUpInLastCell", "pageIndexChanged", "pageSizeChanged"],
|
|
13231
13243
|
setup(e, t) {
|
|
13232
13244
|
var We;
|
|
13233
|
-
const n = y(), o = ue("designer-host-service"), i = ue("design-item-context"), a =
|
|
13245
|
+
const n = y(), o = ue("designer-host-service"), i = ue("design-item-context"), a = hf(i, o), l = It(n, i, a);
|
|
13234
13246
|
l.value.styles = "display:flex;flex:1;", ke(() => {
|
|
13235
13247
|
n.value.componentInstance = l;
|
|
13236
13248
|
}), t.expose(l.value);
|
|
@@ -13246,9 +13258,9 @@ const en = /* @__PURE__ */ ge({
|
|
|
13246
13258
|
updateColumnRenderContext: $
|
|
13247
13259
|
} = M;
|
|
13248
13260
|
D(I, E);
|
|
13249
|
-
const L = ni(e, V), N = Si(e, t, u), H = Sn(),
|
|
13261
|
+
const L = ni(e, V), N = Si(e, t, u), H = Sn(), q = Ci(e, N, H), oe = wi(e, N, b, u, H, q), pe = $c(e, u, q, oe), Be = Nc(e, u, q, oe), ye = bi(e, r, I, T, f, oe, pe, Be), {
|
|
13250
13262
|
getVisualData: Ie
|
|
13251
|
-
} = ye, Te =
|
|
13263
|
+
} = ye, Te = Gc(), me = wn(e, V), he = ki(e, x), {
|
|
13252
13264
|
sidebarWidth: we
|
|
13253
13265
|
} = he;
|
|
13254
13266
|
h.value = Ie(0, T.value + f - 1);
|
|
@@ -13260,7 +13272,7 @@ const en = /* @__PURE__ */ ge({
|
|
|
13260
13272
|
resetScroll: ae
|
|
13261
13273
|
} = W, be = ti(e, V, s, re, L), {
|
|
13262
13274
|
calculateColumnsSize: Ce
|
|
13263
|
-
} = be, Se = hi(), j = Qo(s, v, I, Se, W), Y = Fi(e, t, x, u), le = ei(e, t, M, I, L, g, W),
|
|
13275
|
+
} = be, Se = hi(), j = Qo(s, v, I, Se, W), Y = Fi(e, t, x, u), le = ei(e, t, M, I, L, g, W), U = R(() => ({
|
|
13264
13276
|
"fv-grid": !0,
|
|
13265
13277
|
"fv-datagrid-strip": F.value
|
|
13266
13278
|
})), Me = R(() => ({
|
|
@@ -13270,22 +13282,22 @@ const en = /* @__PURE__ */ ge({
|
|
|
13270
13282
|
})), {
|
|
13271
13283
|
renderGridHeader: X
|
|
13272
13284
|
} = Bi(i, e, s, C, v, M, I, le, j, k, Se, be, L, x, he, E, W, re, h);
|
|
13273
|
-
|
|
13285
|
+
ks(e, t, I, W, _);
|
|
13274
13286
|
const {
|
|
13275
13287
|
renderDataGridSidebar: ie
|
|
13276
13288
|
} = Ko(e, Y, x, he, W), {
|
|
13277
13289
|
renderDisableMask: ve
|
|
13278
|
-
} =
|
|
13290
|
+
} = bs(), {
|
|
13279
13291
|
renderDataGridSummery: Pe
|
|
13280
|
-
} =
|
|
13292
|
+
} = Is(e, I, M), {
|
|
13281
13293
|
renderHorizontalScrollbar: Ne
|
|
13282
|
-
} =
|
|
13294
|
+
} = Uo(e, s, W), {
|
|
13283
13295
|
renderVerticalScrollbar: Ge
|
|
13284
13296
|
} = Xo(e, s, W), {
|
|
13285
13297
|
renderFilterPanel: Ze
|
|
13286
|
-
} =
|
|
13298
|
+
} = Cs(e, M, I, k, W), {
|
|
13287
13299
|
renderGroupPanel: et
|
|
13288
|
-
} =
|
|
13300
|
+
} = ws(e, I, le, g, W);
|
|
13289
13301
|
function pt() {
|
|
13290
13302
|
var Fe, ut;
|
|
13291
13303
|
_e.value = ((Fe = p.value) == null ? void 0 : Fe.clientHeight) || 0, de.value = ((ut = s.value) == null ? void 0 : ut.clientWidth) || 0, Ce();
|
|
@@ -13325,7 +13337,7 @@ const en = /* @__PURE__ */ ge({
|
|
|
13325
13337
|
function ce(Fe) {
|
|
13326
13338
|
Fe && (I.load(Fe), h.value = Ie(0, T.value + f - 1));
|
|
13327
13339
|
}
|
|
13328
|
-
const Oe =
|
|
13340
|
+
const Oe = jc(e, t, {
|
|
13329
13341
|
addNewDataItem: mt,
|
|
13330
13342
|
addNewDataItemAtLast: gt,
|
|
13331
13343
|
removeDataItem: z,
|
|
@@ -13344,7 +13356,7 @@ const en = /* @__PURE__ */ ge({
|
|
|
13344
13356
|
} = Gi(e, t, p, C, v, Te, me, M, N, g, Oe, Y, ye, W, h);
|
|
13345
13357
|
return () => w("div", {
|
|
13346
13358
|
ref: n,
|
|
13347
|
-
class:
|
|
13359
|
+
class: U.value,
|
|
13348
13360
|
style: P.value,
|
|
13349
13361
|
onWheel: K
|
|
13350
13362
|
}, [Ze(), et(), X(), w("div", {
|
|
@@ -13358,7 +13370,7 @@ const en = /* @__PURE__ */ ge({
|
|
|
13358
13370
|
}
|
|
13359
13371
|
}, [ie(h), Ve(), Ne(), Ge()]), Pe(), S.value && ve()]);
|
|
13360
13372
|
}
|
|
13361
|
-
}),
|
|
13373
|
+
}), vf = "https://json-schema.org/draft/2020-12/schema", yf = "https://farris-design.gitee.io/grid-field-editor.schema.json", bf = "grid-field-editor", Cf = "A Farris Data Grid Component", wf = "object", Sf = {
|
|
13362
13374
|
id: {
|
|
13363
13375
|
description: "The unique identifier for a Input Group",
|
|
13364
13376
|
type: "string"
|
|
@@ -13378,17 +13390,17 @@ const en = /* @__PURE__ */ ge({
|
|
|
13378
13390
|
type: "Object",
|
|
13379
13391
|
default: null
|
|
13380
13392
|
}
|
|
13381
|
-
},
|
|
13393
|
+
}, xf = [
|
|
13382
13394
|
"id",
|
|
13383
13395
|
"type"
|
|
13384
|
-
],
|
|
13385
|
-
$schema:
|
|
13386
|
-
$id:
|
|
13387
|
-
title:
|
|
13388
|
-
description:
|
|
13389
|
-
type:
|
|
13390
|
-
properties:
|
|
13391
|
-
required:
|
|
13396
|
+
], Ff = {
|
|
13397
|
+
$schema: vf,
|
|
13398
|
+
$id: yf,
|
|
13399
|
+
title: bf,
|
|
13400
|
+
description: Cf,
|
|
13401
|
+
type: wf,
|
|
13402
|
+
properties: Sf,
|
|
13403
|
+
required: xf
|
|
13392
13404
|
}, Wi = {
|
|
13393
13405
|
modelValue: { type: String, default: "" },
|
|
13394
13406
|
/** 组件唯一标识 */
|
|
@@ -13398,13 +13410,13 @@ const en = /* @__PURE__ */ ge({
|
|
|
13398
13410
|
gridType: { Type: String, default: "data-grid-column" },
|
|
13399
13411
|
/** 弹出选择窗口前,获取最新的表格数据 */
|
|
13400
13412
|
getLatestGridData: { Type: Function }
|
|
13401
|
-
},
|
|
13413
|
+
}, _f = Le(Wi, Ff, ji, Hi), kf = /* @__PURE__ */ new Map([
|
|
13402
13414
|
["appearance", ot]
|
|
13403
13415
|
]);
|
|
13404
|
-
function
|
|
13416
|
+
function If(e, t, n) {
|
|
13405
13417
|
return t;
|
|
13406
13418
|
}
|
|
13407
|
-
const
|
|
13419
|
+
const Tf = "transfer", Mf = "A Farris Component", Of = "object", Bf = {
|
|
13408
13420
|
basic: {
|
|
13409
13421
|
description: "Basic Infomation",
|
|
13410
13422
|
title: "基本信息",
|
|
@@ -13426,12 +13438,12 @@ const kf = "transfer", If = "A Farris Component", Tf = "object", Mf = {
|
|
|
13426
13438
|
}
|
|
13427
13439
|
}
|
|
13428
13440
|
}
|
|
13429
|
-
},
|
|
13430
|
-
title:
|
|
13431
|
-
description:
|
|
13432
|
-
type:
|
|
13433
|
-
categories:
|
|
13434
|
-
},
|
|
13441
|
+
}, Pf = {
|
|
13442
|
+
title: Tf,
|
|
13443
|
+
description: Mf,
|
|
13444
|
+
type: Of,
|
|
13445
|
+
categories: Bf
|
|
13446
|
+
}, Vf = "https://json-schema.org/draft/2020-12/schema", Ef = "https://farris-design.gitee.io/transfer.schema.json", Df = "transfer", Rf = "A Farris Component", $f = "object", Nf = {
|
|
13435
13447
|
id: {
|
|
13436
13448
|
description: "The unique identifier for transfer",
|
|
13437
13449
|
type: "string"
|
|
@@ -13493,18 +13505,18 @@ const kf = "transfer", If = "A Farris Component", Tf = "object", Mf = {
|
|
|
13493
13505
|
type: "boolean",
|
|
13494
13506
|
default: !0
|
|
13495
13507
|
}
|
|
13496
|
-
},
|
|
13508
|
+
}, jf = [
|
|
13497
13509
|
"id",
|
|
13498
13510
|
"type"
|
|
13499
|
-
],
|
|
13500
|
-
$schema:
|
|
13501
|
-
$id:
|
|
13502
|
-
title:
|
|
13503
|
-
description:
|
|
13504
|
-
type:
|
|
13505
|
-
properties:
|
|
13506
|
-
required:
|
|
13507
|
-
},
|
|
13511
|
+
], Lf = {
|
|
13512
|
+
$schema: Vf,
|
|
13513
|
+
$id: Ef,
|
|
13514
|
+
title: Df,
|
|
13515
|
+
description: Rf,
|
|
13516
|
+
type: $f,
|
|
13517
|
+
properties: Nf,
|
|
13518
|
+
required: jf
|
|
13519
|
+
}, qi = {
|
|
13508
13520
|
dataSource: {
|
|
13509
13521
|
type: Array,
|
|
13510
13522
|
default: []
|
|
@@ -13517,14 +13529,14 @@ const kf = "transfer", If = "A Farris Component", Tf = "object", Mf = {
|
|
|
13517
13529
|
selections: { type: Array, default: [] },
|
|
13518
13530
|
selectionValues: { type: Array, default: [] }
|
|
13519
13531
|
};
|
|
13520
|
-
Le(
|
|
13521
|
-
const
|
|
13532
|
+
Le(qi, Lf, kf, If, Pf);
|
|
13533
|
+
const Hf = /* @__PURE__ */ new Map([
|
|
13522
13534
|
["appearance", ot]
|
|
13523
13535
|
]);
|
|
13524
|
-
function
|
|
13536
|
+
function Af(e, t, n) {
|
|
13525
13537
|
return t;
|
|
13526
13538
|
}
|
|
13527
|
-
const
|
|
13539
|
+
const zf = "https://json-schema.org/draft/2020-12/schema", Gf = "https://farris-design.gitee.io/list-view.schema.json", Wf = "list-view", qf = "A Farris Component", Uf = "object", Kf = {
|
|
13528
13540
|
id: {
|
|
13529
13541
|
description: "The unique identifier for list-view",
|
|
13530
13542
|
type: "string"
|
|
@@ -13586,18 +13598,18 @@ const Hf = "https://json-schema.org/draft/2020-12/schema", Af = "https://farris-
|
|
|
13586
13598
|
type: "boolean",
|
|
13587
13599
|
default: !0
|
|
13588
13600
|
}
|
|
13589
|
-
},
|
|
13601
|
+
}, Xf = [
|
|
13590
13602
|
"id",
|
|
13591
13603
|
"type"
|
|
13592
|
-
],
|
|
13593
|
-
$schema:
|
|
13594
|
-
$id:
|
|
13595
|
-
title:
|
|
13596
|
-
description:
|
|
13597
|
-
type:
|
|
13598
|
-
properties:
|
|
13599
|
-
required:
|
|
13600
|
-
},
|
|
13604
|
+
], Yf = {
|
|
13605
|
+
$schema: zf,
|
|
13606
|
+
$id: Gf,
|
|
13607
|
+
title: Wf,
|
|
13608
|
+
description: qf,
|
|
13609
|
+
type: Uf,
|
|
13610
|
+
properties: Kf,
|
|
13611
|
+
required: Xf
|
|
13612
|
+
}, Jf = "list-view", Qf = "A Farris Component", Zf = "object", ep = {
|
|
13601
13613
|
basic: {
|
|
13602
13614
|
description: "Basic Infomation",
|
|
13603
13615
|
title: "基本信息",
|
|
@@ -13619,12 +13631,12 @@ const Hf = "https://json-schema.org/draft/2020-12/schema", Af = "https://farris-
|
|
|
13619
13631
|
}
|
|
13620
13632
|
}
|
|
13621
13633
|
}
|
|
13622
|
-
},
|
|
13623
|
-
title:
|
|
13624
|
-
description:
|
|
13625
|
-
type:
|
|
13626
|
-
categories:
|
|
13627
|
-
},
|
|
13634
|
+
}, tp = {
|
|
13635
|
+
title: Jf,
|
|
13636
|
+
description: Qf,
|
|
13637
|
+
type: Zf,
|
|
13638
|
+
categories: ep
|
|
13639
|
+
}, Ui = {
|
|
13628
13640
|
/** 列集合 */
|
|
13629
13641
|
columns: {
|
|
13630
13642
|
type: Array,
|
|
@@ -13666,8 +13678,8 @@ const Hf = "https://json-schema.org/draft/2020-12/schema", Af = "https://farris-
|
|
|
13666
13678
|
// 搜索启用高亮
|
|
13667
13679
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
13668
13680
|
};
|
|
13669
|
-
Le(
|
|
13670
|
-
function
|
|
13681
|
+
Le(Ui, Yf, Hf, Af, tp);
|
|
13682
|
+
function np(e, t) {
|
|
13671
13683
|
function n(a) {
|
|
13672
13684
|
const l = [];
|
|
13673
13685
|
let r = a.nextNode();
|
|
@@ -13700,7 +13712,7 @@ function ep(e, t) {
|
|
|
13700
13712
|
}
|
|
13701
13713
|
return { search: i };
|
|
13702
13714
|
}
|
|
13703
|
-
function
|
|
13715
|
+
function qn(e, t, n, o, i, a, l, r, c, u) {
|
|
13704
13716
|
const f = y(e.size), s = y(e.textField), p = y(e.titleField), C = y(e.disableField), v = R(() => {
|
|
13705
13717
|
var x, S;
|
|
13706
13718
|
return ((x = e.selection) == null ? void 0 : x.multiSelect) && ((S = e.selection) == null ? void 0 : S.showCheckbox);
|
|
@@ -13748,7 +13760,7 @@ function Un(e, t, n, o, i, a, l, r, c, u) {
|
|
|
13748
13760
|
renderItem: I
|
|
13749
13761
|
};
|
|
13750
13762
|
}
|
|
13751
|
-
function
|
|
13763
|
+
function op(e, t, n, o, i, a, l, r, c, u) {
|
|
13752
13764
|
const f = y(e.multiSelect), s = y(e.disableField), {
|
|
13753
13765
|
onMouseenterItem: p,
|
|
13754
13766
|
onMouseoverItem: C,
|
|
@@ -13760,7 +13772,7 @@ function tp(e, t, n, o, i, a, l, r, c, u) {
|
|
|
13760
13772
|
onClickItem: d
|
|
13761
13773
|
} = l;
|
|
13762
13774
|
function g(b, _, I) {
|
|
13763
|
-
return t.slots.content ? w(
|
|
13775
|
+
return t.slots.content ? w(Qe, null, [t.slots.content && t.slots.content({
|
|
13764
13776
|
item: b.raw,
|
|
13765
13777
|
index: _,
|
|
13766
13778
|
selectedItem: I
|
|
@@ -13795,7 +13807,7 @@ function tp(e, t, n, o, i, a, l, r, c, u) {
|
|
|
13795
13807
|
renderItem: k
|
|
13796
13808
|
};
|
|
13797
13809
|
}
|
|
13798
|
-
function
|
|
13810
|
+
function ip(e, t, n, o, i, a, l, r, c, u) {
|
|
13799
13811
|
const f = y(e.multiSelect), s = y(e.disableField), {
|
|
13800
13812
|
onMouseenterItem: p,
|
|
13801
13813
|
onMouseoverItem: C,
|
|
@@ -13867,7 +13879,7 @@ function np(e, t, n, o, i, a, l, r, c, u) {
|
|
|
13867
13879
|
renderItem: B
|
|
13868
13880
|
};
|
|
13869
13881
|
}
|
|
13870
|
-
function
|
|
13882
|
+
function ap(e, t, n, o, i, a, l, r, c, u) {
|
|
13871
13883
|
var F;
|
|
13872
13884
|
const f = y(((F = e.group) == null ? void 0 : F.groupFields) || []), {
|
|
13873
13885
|
collpaseGroupIconClass: s
|
|
@@ -13893,7 +13905,7 @@ function op(e, t, n, o, i, a, l, r, c, u) {
|
|
|
13893
13905
|
renderItem: v
|
|
13894
13906
|
};
|
|
13895
13907
|
}
|
|
13896
|
-
function
|
|
13908
|
+
function lp() {
|
|
13897
13909
|
const e = y(-1), t = y(""), n = y(-1), o = y(!1);
|
|
13898
13910
|
function i(u, f, s) {
|
|
13899
13911
|
n.value = s;
|
|
@@ -13921,7 +13933,7 @@ function ip() {
|
|
|
13921
13933
|
suspendHover: r
|
|
13922
13934
|
};
|
|
13923
13935
|
}
|
|
13924
|
-
function
|
|
13936
|
+
function rp(e, t, n, o) {
|
|
13925
13937
|
const i = y(e.idField), { dataView: a } = n, l = y(-1), r = y(!1), { activeIndex: c, focusedItemId: u, hoverIndex: f, resumeHover: s, suspendHover: p } = o;
|
|
13926
13938
|
function C(m, d, g) {
|
|
13927
13939
|
m.stopPropagation(), p(), d && setTimeout(() => {
|
|
@@ -13950,7 +13962,7 @@ function ap(e, t, n, o) {
|
|
|
13950
13962
|
isDragging: r
|
|
13951
13963
|
};
|
|
13952
13964
|
}
|
|
13953
|
-
function
|
|
13965
|
+
function sp(e, t, n) {
|
|
13954
13966
|
const { dataView: o } = n;
|
|
13955
13967
|
function i(a) {
|
|
13956
13968
|
if (a > -1 && a < o.value.length) {
|
|
@@ -13960,7 +13972,7 @@ function lp(e, t, n) {
|
|
|
13960
13972
|
}
|
|
13961
13973
|
return { removeItem: i };
|
|
13962
13974
|
}
|
|
13963
|
-
function
|
|
13975
|
+
function up(e, t, n, o, i, a) {
|
|
13964
13976
|
const l = y(e.idField), r = y(e.disableField), c = y(e.draggable), u = y(e.itemClass), f = y(e.selection.multiSelect ?? !1), s = y(e.selection.multiSelectMode), { isDragging: p } = o, { activeIndex: C, focusedItemId: v, hoverIndex: F } = i, { clearSelection: h, getSelectedItems: m, toggleSelectItem: d } = a, g = y(m());
|
|
13965
13977
|
function k(P, B) {
|
|
13966
13978
|
const O = {
|
|
@@ -14005,21 +14017,21 @@ function rp(e, t, n, o, i, a) {
|
|
|
14005
14017
|
onClickItem: T
|
|
14006
14018
|
};
|
|
14007
14019
|
}
|
|
14008
|
-
function
|
|
14009
|
-
const r = y(e.view), c = y(e.view === "CardView"), u = y({}), f = y("暂无数据"), s =
|
|
14020
|
+
function cp(e, t, n, o, i, a, l) {
|
|
14021
|
+
const r = y(e.view), c = y(e.view === "CardView"), u = y({}), f = y("暂无数据"), s = lp(), p = rp(e, t, o, s), C = sp(e, t, o), v = up(e, t, n, p, s, a), F = R(() => ({
|
|
14010
14022
|
"f-list-view-group": !0,
|
|
14011
14023
|
"d-flex": c.value,
|
|
14012
14024
|
"flex-wrap": c.value
|
|
14013
14025
|
})), h = R(() => !!n.value && n.value.length > 0), m = R(() => n.value.length === 0);
|
|
14014
14026
|
R(() => m.value && !t.slots.empty);
|
|
14015
14027
|
function d() {
|
|
14016
|
-
return r.value === "SingleView" ?
|
|
14028
|
+
return r.value === "SingleView" ? qn : r.value === "DraggableView" ? ip : (r.value === "ContentView" || r.value === "CardView") && t.slots.content ? op : qn;
|
|
14017
14029
|
}
|
|
14018
14030
|
const g = d(), {
|
|
14019
14031
|
renderItem: k
|
|
14020
14032
|
} = g(e, t, n, p, i, s, v, a, C, l), {
|
|
14021
14033
|
renderItem: b
|
|
14022
|
-
} =
|
|
14034
|
+
} = ap(e, t, n, p, i, s, v, a, C, l), _ = [k, b];
|
|
14023
14035
|
function I() {
|
|
14024
14036
|
return n.value.filter((T) => T.visible !== !1).map((T, P) => _[T.type](T, P, u));
|
|
14025
14037
|
}
|
|
@@ -14040,7 +14052,7 @@ function sp(e, t, n, o, i, a, l) {
|
|
|
14040
14052
|
renderListArea: S
|
|
14041
14053
|
};
|
|
14042
14054
|
}
|
|
14043
|
-
function
|
|
14055
|
+
function dp(e, t, n) {
|
|
14044
14056
|
function o() {
|
|
14045
14057
|
return t.slots.header && w("div", {
|
|
14046
14058
|
class: "f-list-view-header"
|
|
@@ -14050,7 +14062,7 @@ function up(e, t, n) {
|
|
|
14050
14062
|
renderHeader: o
|
|
14051
14063
|
};
|
|
14052
14064
|
}
|
|
14053
|
-
function
|
|
14065
|
+
function Un(e, t, n) {
|
|
14054
14066
|
const o = y(e.headerClass), i = y(e.placeholder), a = y(""), l = R(() => !a.value), r = R(() => !!a.value);
|
|
14055
14067
|
function c(p) {
|
|
14056
14068
|
a.value = "";
|
|
@@ -14105,10 +14117,10 @@ function qn(e, t, n) {
|
|
|
14105
14117
|
}
|
|
14106
14118
|
const Kn = /* @__PURE__ */ ge({
|
|
14107
14119
|
name: "FListView",
|
|
14108
|
-
props:
|
|
14120
|
+
props: Ui,
|
|
14109
14121
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
14110
14122
|
setup(e, t) {
|
|
14111
|
-
const n = y(), o = y(!0), i = y(!1), a = y([]), l = 0, r = y(e.columns), c = on(e), u = ln(e), f = an(e, c), s = rn(e), p = sn(e, /* @__PURE__ */ new Map(), u, c, s), C = un(e, p, c, a, t), v =
|
|
14123
|
+
const n = y(), o = y(!0), i = y(!1), a = y([]), l = 0, r = y(e.columns), c = on(e), u = ln(e), f = an(e, c), s = rn(e), p = sn(e, /* @__PURE__ */ new Map(), u, c, s), C = un(e, p, c, a, t), v = np(e, n), F = R(() => p.dataView.value.length), h = cn(e, t, c), m = dn(), d = fn(e, {}, m), g = pn(e, h, u, c, m, d), k = Fo(e, c, d, g), b = _o(e, c, d, g), _ = mn(e, r, p, F, l, g, k, b), {
|
|
14112
14124
|
getVisualData: I
|
|
14113
14125
|
} = _;
|
|
14114
14126
|
a.value = I(0, F.value + l - 1);
|
|
@@ -14120,13 +14132,13 @@ const Kn = /* @__PURE__ */ ge({
|
|
|
14120
14132
|
return e.size !== "default" && (V[`${e.size}-item`] = !0), V;
|
|
14121
14133
|
}), S = R(() => !!t.slots.footer || o.value);
|
|
14122
14134
|
function T() {
|
|
14123
|
-
return e.header === "SearchBar" ?
|
|
14135
|
+
return e.header === "SearchBar" ? Un : e.header === "ContentHeader" ? dp : Un;
|
|
14124
14136
|
}
|
|
14125
14137
|
const P = T(), {
|
|
14126
14138
|
renderHeader: B
|
|
14127
14139
|
} = P(e, t, v), {
|
|
14128
14140
|
renderListArea: O
|
|
14129
|
-
} =
|
|
14141
|
+
} = cp(e, t, a, p, f, C, _);
|
|
14130
14142
|
function M(V) {
|
|
14131
14143
|
v.search(V);
|
|
14132
14144
|
}
|
|
@@ -14156,9 +14168,9 @@ const Kn = /* @__PURE__ */ ge({
|
|
|
14156
14168
|
class: "f-list-view-footer"
|
|
14157
14169
|
}, [t.slots.footer && t.slots.footer()])]);
|
|
14158
14170
|
}
|
|
14159
|
-
}),
|
|
14171
|
+
}), fp = /* @__PURE__ */ ge({
|
|
14160
14172
|
name: "FTransfer",
|
|
14161
|
-
props:
|
|
14173
|
+
props: qi,
|
|
14162
14174
|
emits: ["change", "activeChange"],
|
|
14163
14175
|
setup(e, t) {
|
|
14164
14176
|
const n = y(e.identifyField), o = y("已选:"), i = y("项数据"), a = y(e.displayType), l = y(!1), r = y(e.dataSource), c = y(e.selections || []), u = R(() => c.value.map((S) => S[n.value])), f = /* @__PURE__ */ new Map(), s = y();
|
|
@@ -14195,11 +14207,11 @@ const Kn = /* @__PURE__ */ ge({
|
|
|
14195
14207
|
"selection-values": u.value,
|
|
14196
14208
|
onSelectionChange: F
|
|
14197
14209
|
}, {
|
|
14198
|
-
default: () => [
|
|
14210
|
+
default: () => [qe(" ")]
|
|
14199
14211
|
});
|
|
14200
14212
|
}
|
|
14201
14213
|
function m() {
|
|
14202
|
-
return w(
|
|
14214
|
+
return w(Qe, null, null);
|
|
14203
14215
|
}
|
|
14204
14216
|
function d() {
|
|
14205
14217
|
return w("div", {
|
|
@@ -14268,7 +14280,7 @@ const Kn = /* @__PURE__ */ ge({
|
|
|
14268
14280
|
style: "height:480px"
|
|
14269
14281
|
}, [d(), I()]);
|
|
14270
14282
|
}
|
|
14271
|
-
}),
|
|
14283
|
+
}), pp = /* @__PURE__ */ ge({
|
|
14272
14284
|
name: "FGridFieldEditor",
|
|
14273
14285
|
props: Wi,
|
|
14274
14286
|
emits: ["change"],
|
|
@@ -14356,7 +14368,7 @@ const Kn = /* @__PURE__ */ ge({
|
|
|
14356
14368
|
}, {
|
|
14357
14369
|
default: () => [w("div", {
|
|
14358
14370
|
class: "f-utils-absolute-all"
|
|
14359
|
-
}, [w(
|
|
14371
|
+
}, [w(fp, {
|
|
14360
14372
|
selections: c.value,
|
|
14361
14373
|
"data-source": u.value,
|
|
14362
14374
|
class: "mx-2",
|
|
@@ -14364,11 +14376,11 @@ const Kn = /* @__PURE__ */ ge({
|
|
|
14364
14376
|
}, null)])]
|
|
14365
14377
|
});
|
|
14366
14378
|
}
|
|
14367
|
-
}),
|
|
14379
|
+
}), mp = "https://json-schema.org/draft/2020-12/schema", gp = "https://farris-design.gitee.io/data-grid-column.schema.json", hp = "data-grid-column", vp = "A Farris data-grid-column Component", yp = "object", bp = {
|
|
14368
14380
|
id: {
|
|
14369
14381
|
description: "The unique identifier for a data-grid-column",
|
|
14370
14382
|
type: "string",
|
|
14371
|
-
default: "
|
|
14383
|
+
default: ""
|
|
14372
14384
|
},
|
|
14373
14385
|
type: {
|
|
14374
14386
|
description: "The type string of data-grid-column component",
|
|
@@ -14489,14 +14501,18 @@ const Kn = /* @__PURE__ */ ge({
|
|
|
14489
14501
|
type: "number",
|
|
14490
14502
|
default: 120
|
|
14491
14503
|
}
|
|
14492
|
-
},
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
|
|
14504
|
+
}, Cp = [
|
|
14505
|
+
"id",
|
|
14506
|
+
"type"
|
|
14507
|
+
], wp = {
|
|
14508
|
+
$schema: mp,
|
|
14509
|
+
$id: gp,
|
|
14510
|
+
title: hp,
|
|
14511
|
+
description: vp,
|
|
14512
|
+
type: yp,
|
|
14513
|
+
properties: bp,
|
|
14514
|
+
required: Cp
|
|
14515
|
+
}, Sp = "https://json-schema.org/draft/2020-12/schema", xp = "https://farris-design.gitee.io/data-grid-column.schema.json", Fp = "tree-grid-column", _p = "A Farris data-grid-column Component", kp = "object", Ip = {
|
|
14500
14516
|
id: {
|
|
14501
14517
|
description: "The unique identifier for a data-grid-column",
|
|
14502
14518
|
type: "string"
|
|
@@ -14617,13 +14633,17 @@ const Kn = /* @__PURE__ */ ge({
|
|
|
14617
14633
|
description: "",
|
|
14618
14634
|
type: "number"
|
|
14619
14635
|
}
|
|
14620
|
-
},
|
|
14621
|
-
|
|
14622
|
-
|
|
14623
|
-
|
|
14624
|
-
|
|
14625
|
-
|
|
14626
|
-
|
|
14636
|
+
}, Tp = [
|
|
14637
|
+
"id",
|
|
14638
|
+
"type"
|
|
14639
|
+
], Mp = {
|
|
14640
|
+
$schema: Sp,
|
|
14641
|
+
$id: xp,
|
|
14642
|
+
title: Fp,
|
|
14643
|
+
description: _p,
|
|
14644
|
+
type: kp,
|
|
14645
|
+
properties: Ip,
|
|
14646
|
+
required: Tp
|
|
14627
14647
|
}, Bn = {
|
|
14628
14648
|
id: { type: String, default: "" },
|
|
14629
14649
|
type: { type: String, default: "" },
|
|
@@ -14686,8 +14706,8 @@ const Kn = /* @__PURE__ */ ge({
|
|
|
14686
14706
|
formatter: { type: Function, default: () => {
|
|
14687
14707
|
} },
|
|
14688
14708
|
componentId: { type: String, default: "" }
|
|
14689
|
-
},
|
|
14690
|
-
class
|
|
14709
|
+
}, Op = Le(Bn, wp, Li, Ai), Bp = Le(Bn, Mp, Li, Ai);
|
|
14710
|
+
class Pp extends Xe {
|
|
14691
14711
|
constructor(t, n) {
|
|
14692
14712
|
super(t, n);
|
|
14693
14713
|
}
|
|
@@ -14722,7 +14742,7 @@ class Tp extends Xe {
|
|
|
14722
14742
|
};
|
|
14723
14743
|
}
|
|
14724
14744
|
}
|
|
14725
|
-
class
|
|
14745
|
+
class Vp extends Xe {
|
|
14726
14746
|
constructor(t, n) {
|
|
14727
14747
|
super(t, n);
|
|
14728
14748
|
}
|
|
@@ -14775,7 +14795,7 @@ class Mp extends Xe {
|
|
|
14775
14795
|
}, n;
|
|
14776
14796
|
}
|
|
14777
14797
|
}
|
|
14778
|
-
class
|
|
14798
|
+
class Ep extends Xe {
|
|
14779
14799
|
constructor(t, n) {
|
|
14780
14800
|
super(t, n);
|
|
14781
14801
|
}
|
|
@@ -14865,7 +14885,7 @@ class Ki extends Xe {
|
|
|
14865
14885
|
}, n;
|
|
14866
14886
|
}
|
|
14867
14887
|
}
|
|
14868
|
-
class
|
|
14888
|
+
class Dp extends Xe {
|
|
14869
14889
|
constructor(t, n) {
|
|
14870
14890
|
super(t, n);
|
|
14871
14891
|
}
|
|
@@ -14884,7 +14904,7 @@ class Bp extends Xe {
|
|
|
14884
14904
|
});
|
|
14885
14905
|
}
|
|
14886
14906
|
}
|
|
14887
|
-
class
|
|
14907
|
+
class Rp extends Xe {
|
|
14888
14908
|
constructor(t, n) {
|
|
14889
14909
|
super(t, n);
|
|
14890
14910
|
}
|
|
@@ -14967,7 +14987,7 @@ class Pp extends Xe {
|
|
|
14967
14987
|
});
|
|
14968
14988
|
}
|
|
14969
14989
|
}
|
|
14970
|
-
class
|
|
14990
|
+
class $p extends Xe {
|
|
14971
14991
|
constructor(t, n) {
|
|
14972
14992
|
super(t, n);
|
|
14973
14993
|
}
|
|
@@ -14981,7 +15001,7 @@ class Vp extends Xe {
|
|
|
14981
15001
|
});
|
|
14982
15002
|
}
|
|
14983
15003
|
}
|
|
14984
|
-
class
|
|
15004
|
+
class Np extends Xe {
|
|
14985
15005
|
constructor(t, n) {
|
|
14986
15006
|
super(t, n);
|
|
14987
15007
|
}
|
|
@@ -15040,7 +15060,7 @@ class Ep extends Xe {
|
|
|
15040
15060
|
});
|
|
15041
15061
|
}
|
|
15042
15062
|
}
|
|
15043
|
-
class
|
|
15063
|
+
class jp extends Xe {
|
|
15044
15064
|
constructor(t, n) {
|
|
15045
15065
|
super(t, n);
|
|
15046
15066
|
}
|
|
@@ -15100,7 +15120,7 @@ class Dp extends Xe {
|
|
|
15100
15120
|
}, n;
|
|
15101
15121
|
}
|
|
15102
15122
|
}
|
|
15103
|
-
class
|
|
15123
|
+
class Lp extends Xe {
|
|
15104
15124
|
constructor(t, n) {
|
|
15105
15125
|
super(t, n);
|
|
15106
15126
|
}
|
|
@@ -15156,7 +15176,7 @@ class Rp extends Xe {
|
|
|
15156
15176
|
});
|
|
15157
15177
|
}
|
|
15158
15178
|
}
|
|
15159
|
-
class
|
|
15179
|
+
class Hp extends Xe {
|
|
15160
15180
|
constructor(t, n) {
|
|
15161
15181
|
super(t, n);
|
|
15162
15182
|
}
|
|
@@ -15196,7 +15216,7 @@ class $p extends Xe {
|
|
|
15196
15216
|
});
|
|
15197
15217
|
}
|
|
15198
15218
|
}
|
|
15199
|
-
class
|
|
15219
|
+
class Ap extends zt {
|
|
15200
15220
|
constructor(t, n) {
|
|
15201
15221
|
super(t, n);
|
|
15202
15222
|
}
|
|
@@ -15271,43 +15291,43 @@ class Np extends zt {
|
|
|
15271
15291
|
let a;
|
|
15272
15292
|
switch (i) {
|
|
15273
15293
|
case "avatar":
|
|
15274
|
-
a = new
|
|
15294
|
+
a = new Pp(this.componentId, this.designerHostService);
|
|
15275
15295
|
break;
|
|
15276
15296
|
case "check-group":
|
|
15277
|
-
a = new
|
|
15297
|
+
a = new Vp(this.componentId, this.designerHostService);
|
|
15278
15298
|
break;
|
|
15279
15299
|
case "check-box":
|
|
15280
|
-
a = new
|
|
15300
|
+
a = new Ep(this.componentId, this.designerHostService);
|
|
15281
15301
|
break;
|
|
15282
15302
|
case "combo-list":
|
|
15283
15303
|
a = new Ki(this.componentId, this.designerHostService);
|
|
15284
15304
|
break;
|
|
15285
15305
|
case "date-picker":
|
|
15286
|
-
a = new
|
|
15306
|
+
a = new Rp(this.componentId, this.designerHostService);
|
|
15287
15307
|
break;
|
|
15288
15308
|
case "lookup":
|
|
15289
15309
|
a = new Pi(this.componentId, this.designerHostService);
|
|
15290
15310
|
break;
|
|
15291
15311
|
case "number-range":
|
|
15292
|
-
a = new
|
|
15312
|
+
a = new $p(this.componentId, this.designerHostService);
|
|
15293
15313
|
break;
|
|
15294
15314
|
case "number-spinner":
|
|
15295
|
-
a = new
|
|
15315
|
+
a = new Np(this.componentId, this.designerHostService);
|
|
15296
15316
|
break;
|
|
15297
15317
|
case "radio-group":
|
|
15298
|
-
a = new
|
|
15318
|
+
a = new jp(this.componentId, this.designerHostService);
|
|
15299
15319
|
break;
|
|
15300
15320
|
case "switch":
|
|
15301
|
-
a = new
|
|
15321
|
+
a = new Lp(this.componentId, this.designerHostService);
|
|
15302
15322
|
break;
|
|
15303
15323
|
case "textarea":
|
|
15304
|
-
a = new
|
|
15324
|
+
a = new Dp(this.componentId, this.designerHostService);
|
|
15305
15325
|
break;
|
|
15306
15326
|
case "time-picker":
|
|
15307
|
-
a = new
|
|
15327
|
+
a = new Hp(this.componentId, this.designerHostService);
|
|
15308
15328
|
break;
|
|
15309
15329
|
default:
|
|
15310
|
-
a = new
|
|
15330
|
+
a = new qu(this.componentId, this.designerHostService);
|
|
15311
15331
|
}
|
|
15312
15332
|
this.setDesignViewModelField(t);
|
|
15313
15333
|
const l = this;
|
|
@@ -15394,7 +15414,7 @@ class Np extends zt {
|
|
|
15394
15414
|
}));
|
|
15395
15415
|
}
|
|
15396
15416
|
}
|
|
15397
|
-
function
|
|
15417
|
+
function zp(e, t) {
|
|
15398
15418
|
const n = e.schema, o = y(!0), i = y(!0);
|
|
15399
15419
|
function a(s) {
|
|
15400
15420
|
return !1;
|
|
@@ -15412,7 +15432,7 @@ function jp(e, t) {
|
|
|
15412
15432
|
}
|
|
15413
15433
|
function f(s) {
|
|
15414
15434
|
var C;
|
|
15415
|
-
return new
|
|
15435
|
+
return new Ap(s, t).getPropertyConfig(n, (C = e == null ? void 0 : e.parent) == null ? void 0 : C.schema);
|
|
15416
15436
|
}
|
|
15417
15437
|
return {
|
|
15418
15438
|
canAccepts: a,
|
|
@@ -15430,7 +15450,7 @@ const Xn = /* @__PURE__ */ ge({
|
|
|
15430
15450
|
props: Bn,
|
|
15431
15451
|
emits: [],
|
|
15432
15452
|
setup(e, t) {
|
|
15433
|
-
const n = y(), o = ue("designer-host-service"), i = ue("design-item-context"), a =
|
|
15453
|
+
const n = y(), o = ue("designer-host-service"), i = ue("design-item-context"), a = zp(i, o), l = It(n, i, a);
|
|
15434
15454
|
ke(() => {
|
|
15435
15455
|
n.value.componentInstance = l;
|
|
15436
15456
|
}), t.expose(l.value);
|
|
@@ -15449,10 +15469,10 @@ it.install = (e) => {
|
|
|
15449
15469
|
e.component(it.name, it), e.component(en.name, en);
|
|
15450
15470
|
};
|
|
15451
15471
|
it.register = (e, t, n, o) => {
|
|
15452
|
-
e["data-grid"] = it, t["data-grid"] = zi, e["grid-field-editor"] =
|
|
15472
|
+
e["data-grid"] = it, t["data-grid"] = zi, e["grid-field-editor"] = pp, t["grid-field-editor"] = _f, o["data-grid"] = { bindingResolver: pf, selectionItemResolver: mf };
|
|
15453
15473
|
};
|
|
15454
15474
|
it.registerDesigner = (e, t, n) => {
|
|
15455
|
-
e["data-grid"] = en, t["data-grid"] = zi, t["data-grid-column"] =
|
|
15475
|
+
e["data-grid"] = en, t["data-grid"] = zi, t["data-grid-column"] = Op, e["data-grid-column"] = Xn, t["tree-grid-column"] = Bp, e["tree-grid-column"] = Xn;
|
|
15456
15476
|
};
|
|
15457
15477
|
function Tt(e) {
|
|
15458
15478
|
function t(u) {
|
|
@@ -15518,7 +15538,7 @@ function Xi(e) {
|
|
|
15518
15538
|
};
|
|
15519
15539
|
}
|
|
15520
15540
|
const tn = y(), Dt = "F_LOOKUP_HTTP_COMPOSITION_TOKEN";
|
|
15521
|
-
function
|
|
15541
|
+
function Gp(e, t) {
|
|
15522
15542
|
const n = ue("FLoadingService"), o = ue(Ho), { searchFieldItems: i } = Xi(e), a = y(e.uri), l = y(e.idValue);
|
|
15523
15543
|
function r(h, m, d = !1) {
|
|
15524
15544
|
if (!m.trim())
|
|
@@ -15627,14 +15647,14 @@ function Yi(e) {
|
|
|
15627
15647
|
};
|
|
15628
15648
|
}
|
|
15629
15649
|
const Pn = "F_LOOKUP_USER_DATA_SERVICE";
|
|
15630
|
-
function
|
|
15650
|
+
function Wp(e, t) {
|
|
15631
15651
|
const n = ue("FLoadingService", null), o = ue(Ho, null), i = y(e.id);
|
|
15632
15652
|
function a() {
|
|
15633
15653
|
return Aa(i.value);
|
|
15634
15654
|
}
|
|
15635
15655
|
const l = ze({ key: a(), data: {} });
|
|
15636
15656
|
function r() {
|
|
15637
|
-
return e.enableFavorite && o ? o.getSettings(l.key).then((p) => (p && p.textValue ? l.data = JSON.parse(p.textValue) : l.data = {}, e.enableUserData || (l.data.tabIndex =
|
|
15657
|
+
return e.enableFavorite && o ? o.getSettings(l.key).then((p) => (p && p.textValue ? l.data = JSON.parse(p.textValue) : l.data = {}, e.enableUserData || (l.data.tabIndex = Ue.dataList), p)) : Promise.resolve();
|
|
15638
15658
|
}
|
|
15639
15659
|
function c({ width: p, height: C }) {
|
|
15640
15660
|
var v;
|
|
@@ -15730,14 +15750,14 @@ function Ji(e) {
|
|
|
15730
15750
|
}, null)
|
|
15731
15751
|
};
|
|
15732
15752
|
return G(() => fe == null ? void 0 : fe.columns, (p) => {
|
|
15733
|
-
i.value =
|
|
15753
|
+
i.value = Ye([...p || []]);
|
|
15734
15754
|
}), {
|
|
15735
15755
|
favorite: s,
|
|
15736
15756
|
columns: i,
|
|
15737
15757
|
removeFavoriteItem: l
|
|
15738
15758
|
};
|
|
15739
15759
|
}
|
|
15740
|
-
function
|
|
15760
|
+
function qp(e, t, n) {
|
|
15741
15761
|
const o = ue(Dt), {
|
|
15742
15762
|
checkPaination: i,
|
|
15743
15763
|
checkMultiSelect: a,
|
|
@@ -15884,7 +15904,7 @@ function Ap(e, t, n) {
|
|
|
15884
15904
|
renderDataGrid: B
|
|
15885
15905
|
};
|
|
15886
15906
|
}
|
|
15887
|
-
function
|
|
15907
|
+
function Up(e, t) {
|
|
15888
15908
|
const n = ue(Dt), {
|
|
15889
15909
|
checkMultiSelect: o,
|
|
15890
15910
|
checkColumnOptions: i
|
|
@@ -15948,9 +15968,9 @@ function zp(e, t) {
|
|
|
15948
15968
|
renderTreeGrid: h
|
|
15949
15969
|
};
|
|
15950
15970
|
}
|
|
15951
|
-
const
|
|
15971
|
+
const Kp = /* @__PURE__ */ new Map([
|
|
15952
15972
|
["appearance", ot]
|
|
15953
|
-
]),
|
|
15973
|
+
]), Xp = "https://json-schema.org/draft/2020-12/schema", Yp = "https://farris-design.gitee.io/combo-list.schema.json", Jp = "combo-list", Qp = "A Farris Input Component", Zp = "object", em = {
|
|
15954
15974
|
id: {
|
|
15955
15975
|
description: "The unique identifier for a combo list",
|
|
15956
15976
|
type: "string"
|
|
@@ -16076,25 +16096,24 @@ const Gp = /* @__PURE__ */ new Map([
|
|
|
16076
16096
|
type: "sting",
|
|
16077
16097
|
default: ""
|
|
16078
16098
|
}
|
|
16079
|
-
},
|
|
16080
|
-
"id",
|
|
16099
|
+
}, tm = [
|
|
16081
16100
|
"type"
|
|
16082
|
-
],
|
|
16101
|
+
], nm = [
|
|
16083
16102
|
"id",
|
|
16084
16103
|
"appearance",
|
|
16085
16104
|
"binding",
|
|
16086
16105
|
"visible"
|
|
16087
|
-
],
|
|
16088
|
-
$schema:
|
|
16089
|
-
$id:
|
|
16090
|
-
title:
|
|
16091
|
-
description:
|
|
16092
|
-
type:
|
|
16093
|
-
properties:
|
|
16094
|
-
required:
|
|
16095
|
-
ignore:
|
|
16106
|
+
], om = {
|
|
16107
|
+
$schema: Xp,
|
|
16108
|
+
$id: Yp,
|
|
16109
|
+
title: Jp,
|
|
16110
|
+
description: Qp,
|
|
16111
|
+
type: Zp,
|
|
16112
|
+
properties: em,
|
|
16113
|
+
required: tm,
|
|
16114
|
+
ignore: nm
|
|
16096
16115
|
};
|
|
16097
|
-
function
|
|
16116
|
+
function im(e, t, n) {
|
|
16098
16117
|
return t;
|
|
16099
16118
|
}
|
|
16100
16119
|
const Vn = {
|
|
@@ -16263,7 +16282,7 @@ const Vn = {
|
|
|
16263
16282
|
},
|
|
16264
16283
|
// 搜索启用高亮
|
|
16265
16284
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
16266
|
-
}, Qi = Le(Vn,
|
|
16285
|
+
}, Qi = Le(Vn, om, Kp, im), am = {
|
|
16267
16286
|
dataSource: { type: Array, default: [] },
|
|
16268
16287
|
enableSearch: { type: Boolean, default: !1 },
|
|
16269
16288
|
idField: { type: String, default: "id" },
|
|
@@ -16284,9 +16303,9 @@ const Vn = {
|
|
|
16284
16303
|
},
|
|
16285
16304
|
// 搜索启用高亮
|
|
16286
16305
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
16287
|
-
},
|
|
16306
|
+
}, lm = /* @__PURE__ */ ge({
|
|
16288
16307
|
name: "FComboListContainer",
|
|
16289
|
-
props:
|
|
16308
|
+
props: am,
|
|
16290
16309
|
emits: ["selectionChange"],
|
|
16291
16310
|
setup(e, t) {
|
|
16292
16311
|
const n = y(), o = y(e.dataSource), i = y([]), a = y(e.separator), l = y(e.width), r = y(e.maxHeight), c = y(String(e.selectedValues).split(a.value)), u = R(() => e.multiSelect), f = R(() => ({
|
|
@@ -16340,7 +16359,7 @@ const Vn = {
|
|
|
16340
16359
|
}, null)]);
|
|
16341
16360
|
}
|
|
16342
16361
|
});
|
|
16343
|
-
function
|
|
16362
|
+
function rm(e) {
|
|
16344
16363
|
const t = y(""), n = y(e.modelValue), o = y(e.data || []), i = y(e.editable);
|
|
16345
16364
|
function a(s) {
|
|
16346
16365
|
const p = String(s).split(e.separator), C = p.map((h) => [h, !0]), v = new Map(C);
|
|
@@ -16402,7 +16421,7 @@ const Et = /* @__PURE__ */ ge({
|
|
|
16402
16421
|
editable: u,
|
|
16403
16422
|
modelValue: f,
|
|
16404
16423
|
getSelectedItemsByDisplayText: s
|
|
16405
|
-
} =
|
|
16424
|
+
} = rm(e), p = R(() => e.multiSelect), C = R(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
16406
16425
|
function v() {
|
|
16407
16426
|
!p.value && n.value && n.value.hidePopup();
|
|
16408
16427
|
}
|
|
@@ -16454,7 +16473,7 @@ const Et = /* @__PURE__ */ ge({
|
|
|
16454
16473
|
onInput: k,
|
|
16455
16474
|
beforeOpen: e.beforeOpen
|
|
16456
16475
|
}, {
|
|
16457
|
-
default: () => [w(
|
|
16476
|
+
default: () => [w(lm, {
|
|
16458
16477
|
idField: e.idField,
|
|
16459
16478
|
valueField: e.valueField,
|
|
16460
16479
|
textField: e.textField,
|
|
@@ -16471,7 +16490,7 @@ const Et = /* @__PURE__ */ ge({
|
|
|
16471
16490
|
});
|
|
16472
16491
|
}
|
|
16473
16492
|
});
|
|
16474
|
-
function
|
|
16493
|
+
function sm(e, t) {
|
|
16475
16494
|
const n = e.schema;
|
|
16476
16495
|
function o(i, a) {
|
|
16477
16496
|
return new Ki(i, t).getPropertyConfig(n, a);
|
|
@@ -16480,12 +16499,12 @@ function im(e, t) {
|
|
|
16480
16499
|
getPropsConfig: o
|
|
16481
16500
|
};
|
|
16482
16501
|
}
|
|
16483
|
-
const
|
|
16502
|
+
const um = /* @__PURE__ */ ge({
|
|
16484
16503
|
name: "FComboListDesign",
|
|
16485
16504
|
props: Vn,
|
|
16486
16505
|
emits: ["clear", "update:modelValue", "change"],
|
|
16487
16506
|
setup(e, t) {
|
|
16488
|
-
const n = y(), o = ue("designer-host-service"), i = ue("design-item-context"), a =
|
|
16507
|
+
const n = y(), o = ue("designer-host-service"), i = ue("design-item-context"), a = sm(i, o), l = eo(n, i, a);
|
|
16489
16508
|
return ke(() => {
|
|
16490
16509
|
n.value.componentInstance = l;
|
|
16491
16510
|
}), t.expose(l.value), () => w(yn, {
|
|
@@ -16503,15 +16522,15 @@ Et.register = (e, t, n, o) => {
|
|
|
16503
16522
|
e["combo-list"] = Et, t["combo-list"] = Qi;
|
|
16504
16523
|
};
|
|
16505
16524
|
Et.registerDesigner = (e, t, n) => {
|
|
16506
|
-
e["combo-list"] =
|
|
16525
|
+
e["combo-list"] = um, t["combo-list"] = Qi;
|
|
16507
16526
|
};
|
|
16508
16527
|
gn(Et);
|
|
16509
|
-
const
|
|
16528
|
+
const cm = {
|
|
16510
16529
|
fields: { type: Array, default: () => [] },
|
|
16511
16530
|
showAllColumns: { type: Boolean, default: !0 }
|
|
16512
|
-
},
|
|
16531
|
+
}, dm = /* @__PURE__ */ ge({
|
|
16513
16532
|
name: "FLookupSearchBar",
|
|
16514
|
-
props:
|
|
16533
|
+
props: cm,
|
|
16515
16534
|
emits: ["search"],
|
|
16516
16535
|
setup(e, t) {
|
|
16517
16536
|
const n = y(e.fields || []), o = y(""), i = y(kt.value), a = R(() => ({
|
|
@@ -16597,7 +16616,7 @@ function Zi(e, t) {
|
|
|
16597
16616
|
if (e.enableSearchBar && c.value.length > 0)
|
|
16598
16617
|
return w("div", {
|
|
16599
16618
|
class: "p-2"
|
|
16600
|
-
}, [w(
|
|
16619
|
+
}, [w(dm, {
|
|
16601
16620
|
fields: c.value,
|
|
16602
16621
|
showAllColumns: e.showSearchAllColumns,
|
|
16603
16622
|
onSearch: r
|
|
@@ -16607,7 +16626,7 @@ function Zi(e, t) {
|
|
|
16607
16626
|
renderSearchBar: u
|
|
16608
16627
|
};
|
|
16609
16628
|
}
|
|
16610
|
-
function
|
|
16629
|
+
function fm(e, t) {
|
|
16611
16630
|
var B;
|
|
16612
16631
|
const n = ue(Dt), {
|
|
16613
16632
|
renderSearchBar: o
|
|
@@ -16648,13 +16667,13 @@ function sm(e, t) {
|
|
|
16648
16667
|
pageIndex: L,
|
|
16649
16668
|
pageSize: N,
|
|
16650
16669
|
enablePager: H,
|
|
16651
|
-
pageList:
|
|
16670
|
+
pageList: q
|
|
16652
16671
|
} = E;
|
|
16653
16672
|
Object.assign($, {
|
|
16654
16673
|
index: L,
|
|
16655
16674
|
size: N,
|
|
16656
16675
|
enable: H,
|
|
16657
|
-
sizeLimits:
|
|
16676
|
+
sizeLimits: q
|
|
16658
16677
|
});
|
|
16659
16678
|
}
|
|
16660
16679
|
r($, !0), (D = v.value) == null || D.updateDataSource(O);
|
|
@@ -16769,7 +16788,7 @@ function sm(e, t) {
|
|
|
16769
16788
|
} = E, $ = {
|
|
16770
16789
|
fieldName: V,
|
|
16771
16790
|
fieldValue: ""
|
|
16772
|
-
}, L = O.map((N) => D.split(".").reduce((H,
|
|
16791
|
+
}, L = O.map((N) => D.split(".").reduce((H, q) => H[q], N));
|
|
16773
16792
|
return $.fieldValue = L.join(","), $;
|
|
16774
16793
|
}) : "";
|
|
16775
16794
|
}
|
|
@@ -16780,15 +16799,15 @@ function sm(e, t) {
|
|
|
16780
16799
|
getRelationFilter: P
|
|
16781
16800
|
};
|
|
16782
16801
|
}
|
|
16783
|
-
function
|
|
16802
|
+
function pm(e) {
|
|
16784
16803
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Zn(e);
|
|
16785
16804
|
}
|
|
16786
|
-
const
|
|
16805
|
+
const mm = /* @__PURE__ */ ge({
|
|
16787
16806
|
name: "LookupContainer",
|
|
16788
16807
|
props: At,
|
|
16789
16808
|
emits: ["update:modelValue", "search", "navSelectionsChanged", "pageIndexChanged", "pageSizeChanged", "changeDialogOptions", "clearSearch"],
|
|
16790
16809
|
setup(e, t) {
|
|
16791
|
-
const n = ue(bn, y(
|
|
16810
|
+
const n = ue(bn, y(Ue.dataList)), o = ue(Dt), {
|
|
16792
16811
|
renderSearchBar: i
|
|
16793
16812
|
} = Zi(e, !1), {
|
|
16794
16813
|
isDoubleList: a,
|
|
@@ -16799,17 +16818,17 @@ const cm = /* @__PURE__ */ ge({
|
|
|
16799
16818
|
selectedItems: u,
|
|
16800
16819
|
getNavigationIdField: f,
|
|
16801
16820
|
getRelationFilter: s
|
|
16802
|
-
} =
|
|
16821
|
+
} = fm(e, t);
|
|
16803
16822
|
function p() {
|
|
16804
16823
|
if (r()) {
|
|
16805
16824
|
const {
|
|
16806
16825
|
renderTreeGrid: d
|
|
16807
|
-
} =
|
|
16826
|
+
} = Up(e, t);
|
|
16808
16827
|
return d;
|
|
16809
16828
|
}
|
|
16810
16829
|
const {
|
|
16811
16830
|
renderDataGrid: m
|
|
16812
|
-
} =
|
|
16831
|
+
} = qp(e, t, {
|
|
16813
16832
|
navSelectedItems: u,
|
|
16814
16833
|
getNavigationIdField: f,
|
|
16815
16834
|
getRelationFilter: s
|
|
@@ -16873,7 +16892,7 @@ const cm = /* @__PURE__ */ ge({
|
|
|
16873
16892
|
width: v == null ? void 0 : v.width,
|
|
16874
16893
|
minWidth: v == null ? void 0 : v.minWidth,
|
|
16875
16894
|
visible: a()
|
|
16876
|
-
},
|
|
16895
|
+
}, pm(m = c()) ? m : {
|
|
16877
16896
|
default: () => [m]
|
|
16878
16897
|
}), w(Vt, {
|
|
16879
16898
|
position: "center"
|
|
@@ -16888,18 +16907,18 @@ const cm = /* @__PURE__ */ ge({
|
|
|
16888
16907
|
});
|
|
16889
16908
|
};
|
|
16890
16909
|
}
|
|
16891
|
-
}),
|
|
16910
|
+
}), gm = {
|
|
16892
16911
|
multiSelect: { type: Boolean, default: !1 },
|
|
16893
16912
|
idField: { type: String },
|
|
16894
16913
|
displayType: { type: String, default: "list" }
|
|
16895
|
-
},
|
|
16914
|
+
}, hm = /* @__PURE__ */ ge({
|
|
16896
16915
|
name: "FLookupFavorite",
|
|
16897
|
-
props:
|
|
16916
|
+
props: gm,
|
|
16898
16917
|
setup(e, t) {
|
|
16899
16918
|
const {
|
|
16900
16919
|
userDataState: n,
|
|
16901
16920
|
getFavoriteData: o
|
|
16902
|
-
} = ue(Pn), i = ue(bn, y(
|
|
16921
|
+
} = ue(Pn), i = ue(bn, y(Ue.dataList)), {
|
|
16903
16922
|
columns: a,
|
|
16904
16923
|
favorite: l,
|
|
16905
16924
|
removeFavoriteItem: r
|
|
@@ -16922,9 +16941,9 @@ const cm = /* @__PURE__ */ ge({
|
|
|
16922
16941
|
});
|
|
16923
16942
|
}
|
|
16924
16943
|
G(() => i.value, (g, k) => {
|
|
16925
|
-
g ===
|
|
16944
|
+
g === Ue.favorite && (s() ? C() : p([], null));
|
|
16926
16945
|
}), G(() => r.value, (g, k) => {
|
|
16927
|
-
i.value ===
|
|
16946
|
+
i.value === Ue.favorite && g && (c() ? C() : p(n.favoriteItems || [], null), r.value = !1);
|
|
16928
16947
|
});
|
|
16929
16948
|
const v = {
|
|
16930
16949
|
fitColumns: !0,
|
|
@@ -16978,19 +16997,19 @@ const cm = /* @__PURE__ */ ge({
|
|
|
16978
16997
|
}
|
|
16979
16998
|
return () => c() ? m() : d();
|
|
16980
16999
|
}
|
|
16981
|
-
}),
|
|
17000
|
+
}), vm = {
|
|
16982
17001
|
title: { type: String },
|
|
16983
17002
|
height: { type: Number, default: 50 },
|
|
16984
17003
|
draggable: { type: Boolean, default: !0 },
|
|
16985
17004
|
enableFavorite: { type: Boolean, default: !1 },
|
|
16986
17005
|
useHttpComposition: { type: Object, default: {} },
|
|
16987
17006
|
userDataService: { type: Object, default: {} }
|
|
16988
|
-
},
|
|
17007
|
+
}, ym = /* @__PURE__ */ ge({
|
|
16989
17008
|
name: "FLookupModalContainer",
|
|
16990
|
-
props:
|
|
17009
|
+
props: vm,
|
|
16991
17010
|
emits: ["closeModal", "maximize"],
|
|
16992
17011
|
setup(e, t) {
|
|
16993
|
-
const n = y(
|
|
17012
|
+
const n = y(Ue.dataList);
|
|
16994
17013
|
_t(bn, n), _t(Dt, e.useHttpComposition), _t(Pn, e.userDataService);
|
|
16995
17014
|
const {
|
|
16996
17015
|
userDataState: o,
|
|
@@ -17006,14 +17025,14 @@ const cm = /* @__PURE__ */ ge({
|
|
|
17006
17025
|
n.value = f, o.data.tabIndex = f;
|
|
17007
17026
|
}
|
|
17008
17027
|
const c = R(() => ({
|
|
17009
|
-
transform: `translate3d(${n.value ===
|
|
17028
|
+
transform: `translate3d(${n.value === Ue.favorite ? 84 : 0}px, 0px, 0px)`
|
|
17010
17029
|
})), u = R(() => (f) => ({
|
|
17011
17030
|
display: n.value === f ? "block" : "none!important"
|
|
17012
17031
|
}));
|
|
17013
17032
|
return ke(() => {
|
|
17014
17033
|
i().then((f) => {
|
|
17015
17034
|
var s;
|
|
17016
|
-
o.data.favorites && o.data.favorites.length && (n.value = ((s = o.data) == null ? void 0 : s.tabIndex) ||
|
|
17035
|
+
o.data.favorites && o.data.favorites.length && (n.value = ((s = o.data) == null ? void 0 : s.tabIndex) || Ue.dataList);
|
|
17017
17036
|
});
|
|
17018
17037
|
}), () => w("div", {
|
|
17019
17038
|
class: "d-flex flex-column h-100 lookup-modal"
|
|
@@ -17032,15 +17051,15 @@ const cm = /* @__PURE__ */ ge({
|
|
|
17032
17051
|
style: c.value
|
|
17033
17052
|
}, null), w("div", {
|
|
17034
17053
|
class: ["tab-item", "d-flex", {
|
|
17035
|
-
active: n.value ===
|
|
17054
|
+
active: n.value === Ue.dataList
|
|
17036
17055
|
}],
|
|
17037
|
-
onClick: () => r(
|
|
17038
|
-
}, [
|
|
17056
|
+
onClick: () => r(Ue.dataList)
|
|
17057
|
+
}, [qe("数据列表")]), w("div", {
|
|
17039
17058
|
class: ["tab-item", "d-flex", {
|
|
17040
|
-
active: n.value ===
|
|
17059
|
+
active: n.value === Ue.favorite
|
|
17041
17060
|
}],
|
|
17042
|
-
onClick: () => r(
|
|
17043
|
-
}, [
|
|
17061
|
+
onClick: () => r(Ue.favorite)
|
|
17062
|
+
}, [qe("收藏夹")])])]), w("div", {
|
|
17044
17063
|
class: "d-flex flex-row h-100 justify-content-between align-items-center lookup-modal-header-buttons",
|
|
17045
17064
|
onMousedown: (f) => f.stopPropagation()
|
|
17046
17065
|
}, [w("span", {
|
|
@@ -17055,14 +17074,14 @@ const cm = /* @__PURE__ */ ge({
|
|
|
17055
17074
|
class: "f-utils-fill"
|
|
17056
17075
|
}, [w("div", {
|
|
17057
17076
|
class: "h-100 d-flex flex-column mx-2 f-utils-fill",
|
|
17058
|
-
style: u.value(
|
|
17077
|
+
style: u.value(Ue.dataList)
|
|
17059
17078
|
}, [t.slots.default && t.slots.default()]), w("div", {
|
|
17060
17079
|
class: "h-100 d-flex flex-column mx-2 f-utils-fill",
|
|
17061
|
-
style: u.value(
|
|
17080
|
+
style: u.value(Ue.favorite)
|
|
17062
17081
|
}, [t.slots.fav && t.slots.fav()])])]);
|
|
17063
17082
|
}
|
|
17064
17083
|
});
|
|
17065
|
-
function
|
|
17084
|
+
function bm(e, t, n, {
|
|
17066
17085
|
dictPicked: o,
|
|
17067
17086
|
modelValue: i,
|
|
17068
17087
|
buttonEditInstance: a,
|
|
@@ -17117,8 +17136,8 @@ function gm(e, t, n, {
|
|
|
17117
17136
|
return V;
|
|
17118
17137
|
}
|
|
17119
17138
|
function b() {
|
|
17120
|
-
var H,
|
|
17121
|
-
const D = ((H = u.value) == null ? void 0 : H.height) || 620, V = ((
|
|
17139
|
+
var H, q, oe, pe, Be;
|
|
17140
|
+
const D = ((H = u.value) == null ? void 0 : H.height) || 620, V = ((q = u.value) == null ? void 0 : q.width) || 590, $ = ((oe = u.value) == null ? void 0 : oe.minWidth) || 300, L = ((pe = u.value) == null ? void 0 : pe.minHeight) || 200, N = {
|
|
17122
17141
|
height: D,
|
|
17123
17142
|
width: V,
|
|
17124
17143
|
minWidth: $,
|
|
@@ -17187,13 +17206,13 @@ function gm(e, t, n, {
|
|
|
17187
17206
|
updateModelValue: v
|
|
17188
17207
|
};
|
|
17189
17208
|
}
|
|
17190
|
-
function
|
|
17209
|
+
function Cm(e) {
|
|
17191
17210
|
const { mapFields: t, separator: n } = e, o = { mapFields: t, separator: n };
|
|
17192
17211
|
return { dictPicked: async (a) => {
|
|
17193
17212
|
e.dictPicked && typeof e.dictPicked == "function" && await e.dictPicked(a, o);
|
|
17194
17213
|
} };
|
|
17195
17214
|
}
|
|
17196
|
-
function
|
|
17215
|
+
function wm(e, t, n) {
|
|
17197
17216
|
const o = R(() => e.textChangeType === "blur" || e.textChangeType === "any"), i = R(() => e.textChangeType === "enter" || e.textChangeType === "any"), { beforeOpenDialog: a, updateModelValue: l, selectedItems: r, openDialog: c, modelValue: u, useHttpComposition: f } = n;
|
|
17198
17217
|
function s(h) {
|
|
17199
17218
|
if (ha(h))
|
|
@@ -17242,19 +17261,19 @@ const Kt = /* @__PURE__ */ ge({
|
|
|
17242
17261
|
setup(e, t) {
|
|
17243
17262
|
const n = '<i class="f-icon f-icon-lookup"></i>', o = y(), i = y(e.modelValue), a = y();
|
|
17244
17263
|
tn.value = y(e.customData);
|
|
17245
|
-
const l =
|
|
17264
|
+
const l = Gp(e), r = Wp(e);
|
|
17246
17265
|
function c() {
|
|
17247
17266
|
o.value && !o.value.getModal() && o.value.openDialog();
|
|
17248
17267
|
}
|
|
17249
17268
|
const {
|
|
17250
17269
|
dictPicked: u
|
|
17251
|
-
} =
|
|
17270
|
+
} = Cm(e), {
|
|
17252
17271
|
modalOptions: f,
|
|
17253
17272
|
beforeOpenDialog: s,
|
|
17254
17273
|
dialogSize: p,
|
|
17255
17274
|
customData: C,
|
|
17256
17275
|
updateModelValue: v
|
|
17257
|
-
} =
|
|
17276
|
+
} = bm(e, t, Ot, {
|
|
17258
17277
|
dictPicked: u,
|
|
17259
17278
|
modelValue: i,
|
|
17260
17279
|
buttonEditInstance: o,
|
|
@@ -17262,7 +17281,7 @@ const Kt = /* @__PURE__ */ ge({
|
|
|
17262
17281
|
}), {
|
|
17263
17282
|
onInputBlur: F,
|
|
17264
17283
|
onEnterKeyDown: h
|
|
17265
|
-
} =
|
|
17284
|
+
} = wm(e, t, {
|
|
17266
17285
|
beforeOpenDialog: s,
|
|
17267
17286
|
updateModelValue: v,
|
|
17268
17287
|
selectedItems: Ot,
|
|
@@ -17342,7 +17361,7 @@ const Kt = /* @__PURE__ */ ge({
|
|
|
17342
17361
|
onBlur: F,
|
|
17343
17362
|
onKeydown: h
|
|
17344
17363
|
}, {
|
|
17345
|
-
default: () => [w(
|
|
17364
|
+
default: () => [w(ym, {
|
|
17346
17365
|
title: a.value || "请选择",
|
|
17347
17366
|
enableFavorite: e.enableFavorite,
|
|
17348
17367
|
onCloseModal: T,
|
|
@@ -17350,21 +17369,21 @@ const Kt = /* @__PURE__ */ ge({
|
|
|
17350
17369
|
useHttpComposition: l,
|
|
17351
17370
|
userDataService: r
|
|
17352
17371
|
}, {
|
|
17353
|
-
default: () => w(
|
|
17372
|
+
default: () => w(mm, nt(e, {
|
|
17354
17373
|
onSearch: b,
|
|
17355
17374
|
onNavSelectionsChanged: _,
|
|
17356
17375
|
onPageIndexChanged: I,
|
|
17357
17376
|
onPageSizeChanged: x,
|
|
17358
17377
|
onChangeDialogOptions: S
|
|
17359
17378
|
}), null),
|
|
17360
|
-
fav: () => w(
|
|
17379
|
+
fav: () => w(hm, {
|
|
17361
17380
|
idField: e.idField,
|
|
17362
17381
|
displayType: e.displayType
|
|
17363
17382
|
}, null)
|
|
17364
17383
|
})]
|
|
17365
17384
|
});
|
|
17366
17385
|
}
|
|
17367
|
-
}),
|
|
17386
|
+
}), zg = {
|
|
17368
17387
|
install(e) {
|
|
17369
17388
|
e.component(Kt.name, Kt);
|
|
17370
17389
|
},
|
|
@@ -17372,22 +17391,22 @@ const Kt = /* @__PURE__ */ ge({
|
|
|
17372
17391
|
e.lookup = Kt, t.lookup = Hn;
|
|
17373
17392
|
},
|
|
17374
17393
|
registerDesigner(e, t, n) {
|
|
17375
|
-
e.lookup =
|
|
17394
|
+
e.lookup = bd, t.lookup = Hn;
|
|
17376
17395
|
}
|
|
17377
17396
|
};
|
|
17378
17397
|
export {
|
|
17379
17398
|
Ao as Compare,
|
|
17380
|
-
|
|
17399
|
+
jr as ExpressValueType,
|
|
17381
17400
|
Kt as FLookup,
|
|
17382
17401
|
Ho as F_LOOKUP_HTTP_SERVICE_TOKEN,
|
|
17383
17402
|
Yt as FilterRelation,
|
|
17384
17403
|
bn as LOOKUP_ACTIVE_TAB,
|
|
17385
|
-
|
|
17404
|
+
Ag as LOOKUP_USER_DATA_ID,
|
|
17386
17405
|
Lo as LoadTreeDataType,
|
|
17387
17406
|
dt as LookupDisplayType,
|
|
17388
|
-
|
|
17389
|
-
|
|
17390
|
-
|
|
17407
|
+
vd as LookupSchemaRepositoryToken,
|
|
17408
|
+
Ue as LookupTabs,
|
|
17409
|
+
zg as default,
|
|
17391
17410
|
At as lookupProps,
|
|
17392
17411
|
Hn as propsResolver
|
|
17393
17412
|
};
|