@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 wn = Object.defineProperty;
|
|
2
2
|
var _n = (e, t, n) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var L = (e, t, n) => _n(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as Fe, ref as h, computed as R, createVNode as C, Teleport as Ht, createApp as Tt, onUnmounted as tt, Fragment as
|
|
5
|
-
import { isPlainObject as Rt, cloneDeep as
|
|
4
|
+
import { defineComponent as Fe, ref as h, computed as R, createVNode as C, Teleport as Ht, createApp as Tt, onUnmounted as tt, Fragment as Ge, watch as Z, onMounted as Ve, Transition as Wt, shallowRef as Sn, nextTick as Je, render as ht, h as xn, cloneVNode as kn, mergeProps as Xe, inject as Ye, withDirectives as Ft, vShow as Tn, vModelCheckbox as Fn, resolveComponent as Ae, createTextVNode as Pe, onBeforeUnmount as At, reactive as He, resolveDirective as Bn, provide as On, isVNode as Mn } from "vue";
|
|
5
|
+
import { isPlainObject as Rt, cloneDeep as Le } from "lodash-es";
|
|
6
6
|
import { resolveAppearance as En, createPropsResolver as In } from "../dynamic-resolver/index.esm.js";
|
|
7
7
|
import Lt from "../tags/index.esm.js";
|
|
8
8
|
import Vn from "../popover/index.esm.js";
|
|
@@ -75,27 +75,41 @@ import Ia from "../event-parameter/index.esm.js";
|
|
|
75
75
|
import "../external-container/index.esm.js";
|
|
76
76
|
const zt = {}, qt = {};
|
|
77
77
|
function Bt(e) {
|
|
78
|
-
const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), l = Object.keys(t).reduce((i, r) => ((!a || !o.find((d) => d === r)) && (i[r] = t[r].type === "object" && t[r].properties ? Bt(t[r]) :
|
|
78
|
+
const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), l = Object.keys(t).reduce((i, r) => ((!a || !o.find((d) => d === r)) && (i[r] = t[r].type === "object" && t[r].properties ? Bt(t[r]) : Le(t[r].default)), i), {});
|
|
79
79
|
if (n && (!a || !o.find((i) => i === "id"))) {
|
|
80
80
|
const i = n.toLowerCase().replace(/-/g, "_");
|
|
81
81
|
l.id = `${i}_${Math.random().toString().slice(2, 6)}`;
|
|
82
82
|
}
|
|
83
83
|
return l;
|
|
84
84
|
}
|
|
85
|
+
function Va(e) {
|
|
86
|
+
const { properties: t, title: n, required: o } = e;
|
|
87
|
+
if (o && Array.isArray(o)) {
|
|
88
|
+
const a = o.reduce((l, i) => (l[i] = t[i].type === "object" && t[i].properties ? Bt(t[i]) : Le(t[i].default), l), {});
|
|
89
|
+
if (n && o.find((l) => l === "id")) {
|
|
90
|
+
const l = n.toLowerCase().replace(/-/g, "_");
|
|
91
|
+
a.id = `${l}_${Math.random().toString().slice(2, 6)}`;
|
|
92
|
+
}
|
|
93
|
+
return a;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
type: n
|
|
97
|
+
};
|
|
98
|
+
}
|
|
85
99
|
function Ut(e, t = {}, n) {
|
|
86
100
|
const o = zt[e];
|
|
87
101
|
if (o) {
|
|
88
|
-
let a =
|
|
102
|
+
let a = Va(o);
|
|
89
103
|
const l = qt[e];
|
|
90
104
|
return a = l ? l({ getSchemaByType: Ut }, a, t, n) : a, a;
|
|
91
105
|
}
|
|
92
106
|
return null;
|
|
93
107
|
}
|
|
94
|
-
function
|
|
108
|
+
function Ra(e, t) {
|
|
95
109
|
const n = Bt(t);
|
|
96
|
-
return Object.keys(n).reduce((o, a) => (o[a] && Rt(o[a]) && Rt(e[a] || !e[a]) ? Object.assign(o[a], e[a] || {}) : o[a] = e[a], o), n), n;
|
|
110
|
+
return Object.keys(n).reduce((o, a) => (Object.prototype.hasOwnProperty.call(e, a) && (o[a] && Rt(o[a]) && Rt(e[a] || !e[a]) ? Object.assign(o[a], e[a] || {}) : o[a] = e[a]), o), n), n;
|
|
97
111
|
}
|
|
98
|
-
function
|
|
112
|
+
function Na(e, t) {
|
|
99
113
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
|
|
100
114
|
if (t.has(a)) {
|
|
101
115
|
const l = t.get(a);
|
|
@@ -110,11 +124,11 @@ function Ra(e, t) {
|
|
|
110
124
|
return o;
|
|
111
125
|
}, {});
|
|
112
126
|
}
|
|
113
|
-
function
|
|
114
|
-
const o =
|
|
115
|
-
return
|
|
127
|
+
function Da(e, t, n = /* @__PURE__ */ new Map()) {
|
|
128
|
+
const o = Ra(e, t);
|
|
129
|
+
return Na(o, n);
|
|
116
130
|
}
|
|
117
|
-
function
|
|
131
|
+
function Pa(e = {}) {
|
|
118
132
|
function t(s, f, c, v) {
|
|
119
133
|
if (typeof c == "number")
|
|
120
134
|
return v[s].length === c;
|
|
@@ -208,18 +222,18 @@ const ee = {
|
|
|
208
222
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
209
223
|
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
210
224
|
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
211
|
-
},
|
|
212
|
-
|
|
225
|
+
}, $a = {}, ja = {};
|
|
226
|
+
Pa();
|
|
213
227
|
function ze(e, t, n = /* @__PURE__ */ new Map(), o = (i, r, d, s) => r, a = {}, l = (i) => i) {
|
|
214
|
-
return zt[t.title] = t, qt[t.title] = o,
|
|
215
|
-
const r =
|
|
228
|
+
return zt[t.title] = t, qt[t.title] = o, $a[t.title] = a, ja[t.title] = l, (i = {}) => {
|
|
229
|
+
const r = Da(i, t, n), d = Object.keys(e).reduce((s, f) => (s[f] = e[f].default, s), {});
|
|
216
230
|
return Object.assign(d, r);
|
|
217
231
|
};
|
|
218
232
|
}
|
|
219
233
|
function ct(e, t) {
|
|
220
234
|
return { customClass: t.class, customStyle: t.style };
|
|
221
235
|
}
|
|
222
|
-
function
|
|
236
|
+
function Ha() {
|
|
223
237
|
function e(t, n) {
|
|
224
238
|
const { dataSource: o } = t || {};
|
|
225
239
|
return o === void 0 ? {} : {};
|
|
@@ -228,7 +242,7 @@ function ja() {
|
|
|
228
242
|
resolve: e
|
|
229
243
|
};
|
|
230
244
|
}
|
|
231
|
-
function
|
|
245
|
+
function Wa() {
|
|
232
246
|
function e(t, n) {
|
|
233
247
|
return t.selectItemById(n);
|
|
234
248
|
}
|
|
@@ -236,13 +250,13 @@ function Ha() {
|
|
|
236
250
|
selectItemById: e
|
|
237
251
|
};
|
|
238
252
|
}
|
|
239
|
-
const
|
|
253
|
+
const Aa = /* @__PURE__ */ new Map([
|
|
240
254
|
["appearance", En]
|
|
241
255
|
]);
|
|
242
|
-
function
|
|
256
|
+
function La(e, t, n) {
|
|
243
257
|
return t;
|
|
244
258
|
}
|
|
245
|
-
const
|
|
259
|
+
const Ga = "https://json-schema.org/draft/2020-12/schema", za = "https://farris-design.gitee.io/button-edit.schema.json", qa = "button-edit", Ua = "A Farris Input Component", Xa = "object", Ya = {
|
|
246
260
|
id: {
|
|
247
261
|
description: "The unique identifier for a Input Group",
|
|
248
262
|
type: "string"
|
|
@@ -426,18 +440,18 @@ const La = "https://json-schema.org/draft/2020-12/schema", Ga = "https://farris-
|
|
|
426
440
|
type: "string",
|
|
427
441
|
default: ""
|
|
428
442
|
}
|
|
429
|
-
},
|
|
443
|
+
}, Ka = [
|
|
430
444
|
"id",
|
|
431
445
|
"type"
|
|
432
|
-
],
|
|
433
|
-
$schema:
|
|
434
|
-
$id:
|
|
435
|
-
title:
|
|
436
|
-
description:
|
|
437
|
-
type:
|
|
438
|
-
properties:
|
|
439
|
-
required:
|
|
440
|
-
},
|
|
446
|
+
], Ja = {
|
|
447
|
+
$schema: Ga,
|
|
448
|
+
$id: za,
|
|
449
|
+
title: qa,
|
|
450
|
+
description: Ua,
|
|
451
|
+
type: Xa,
|
|
452
|
+
properties: Ya,
|
|
453
|
+
required: Ka
|
|
454
|
+
}, Qa = "buttonEdit", Za = "A Farris Component", el = "object", tl = {
|
|
441
455
|
basic: {
|
|
442
456
|
description: "Basic Infomation",
|
|
443
457
|
title: "基本信息",
|
|
@@ -519,11 +533,11 @@ const La = "https://json-schema.org/draft/2020-12/schema", Ga = "https://farris-
|
|
|
519
533
|
}
|
|
520
534
|
}
|
|
521
535
|
}
|
|
522
|
-
},
|
|
523
|
-
title:
|
|
524
|
-
description:
|
|
525
|
-
type:
|
|
526
|
-
categories:
|
|
536
|
+
}, nl = {
|
|
537
|
+
title: Qa,
|
|
538
|
+
description: Za,
|
|
539
|
+
type: el,
|
|
540
|
+
categories: tl
|
|
527
541
|
}, Xt = {
|
|
528
542
|
/**
|
|
529
543
|
* 组件标识
|
|
@@ -633,14 +647,14 @@ const La = "https://json-schema.org/draft/2020-12/schema", Ga = "https://farris-
|
|
|
633
647
|
/** 更新方式 blur | change */
|
|
634
648
|
updateOn: { type: String, default: "change" }
|
|
635
649
|
};
|
|
636
|
-
ze(Xt,
|
|
637
|
-
const
|
|
650
|
+
ze(Xt, Ja, Aa, La, nl);
|
|
651
|
+
const ol = {
|
|
638
652
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
639
653
|
host: { type: Object },
|
|
640
654
|
backgroundColor: { type: String, default: "" }
|
|
641
|
-
},
|
|
655
|
+
}, al = /* @__PURE__ */ Fe({
|
|
642
656
|
name: "FOverlay",
|
|
643
|
-
props:
|
|
657
|
+
props: ol,
|
|
644
658
|
emits: ["click"],
|
|
645
659
|
setup(e, t) {
|
|
646
660
|
const n = h(e.popupContentPosition), o = h(e.host), a = R(() => ({
|
|
@@ -686,13 +700,13 @@ const nl = {
|
|
|
686
700
|
});
|
|
687
701
|
}
|
|
688
702
|
});
|
|
689
|
-
function
|
|
703
|
+
function ll(e) {
|
|
690
704
|
if (e.content && e.content.render)
|
|
691
705
|
return e.content.render;
|
|
692
706
|
if (e.render && typeof e.render == "function")
|
|
693
707
|
return e.render;
|
|
694
708
|
}
|
|
695
|
-
function
|
|
709
|
+
function il(e) {
|
|
696
710
|
const t = document.createElement("div");
|
|
697
711
|
t.style.display = "contents";
|
|
698
712
|
let n;
|
|
@@ -705,8 +719,8 @@ function ll(e) {
|
|
|
705
719
|
tt(() => {
|
|
706
720
|
document.body.removeChild(t);
|
|
707
721
|
});
|
|
708
|
-
const l =
|
|
709
|
-
return () => C(
|
|
722
|
+
const l = ll(e);
|
|
723
|
+
return () => C(al, {
|
|
710
724
|
"popup-content-position": e.popupPosition,
|
|
711
725
|
host: e.host,
|
|
712
726
|
onClick: a,
|
|
@@ -717,12 +731,12 @@ function ll(e) {
|
|
|
717
731
|
}
|
|
718
732
|
}), document.body.appendChild(t), n.mount(t), n;
|
|
719
733
|
}
|
|
720
|
-
class
|
|
734
|
+
class rl {
|
|
721
735
|
static show(t) {
|
|
722
|
-
return
|
|
736
|
+
return il(t);
|
|
723
737
|
}
|
|
724
738
|
}
|
|
725
|
-
const
|
|
739
|
+
const sl = {
|
|
726
740
|
/**
|
|
727
741
|
* 自定义类
|
|
728
742
|
*/
|
|
@@ -866,7 +880,7 @@ class Ke {
|
|
|
866
880
|
return this.width = t.width, this.height = t.height, this;
|
|
867
881
|
}
|
|
868
882
|
}
|
|
869
|
-
function
|
|
883
|
+
function ul(e, t) {
|
|
870
884
|
const n = h(), o = h(), a = h(), l = h(), i = h(), r = h(), d = h(), s = h(), f = h(), c = h(), v = h(), b = h(), w = h(e.draggable), F = h(!1);
|
|
871
885
|
function O() {
|
|
872
886
|
const V = o.value || document.body, N = window.getComputedStyle(V);
|
|
@@ -957,7 +971,7 @@ function sl(e, t) {
|
|
|
957
971
|
V instanceof MouseEvent && V.button === 2 || w.value && (V.stopPropagation(), V.preventDefault(), a.value = ke.fromEvent(V), f.value = V.target, y(V), u());
|
|
958
972
|
}
|
|
959
973
|
function M(V) {
|
|
960
|
-
return n.value = V, C(
|
|
974
|
+
return n.value = V, C(Ge, null, [C("div", {
|
|
961
975
|
class: "fv-resizable-handle fv-resizable-n",
|
|
962
976
|
type: "n",
|
|
963
977
|
onMousedown: (N) => k(N)
|
|
@@ -1051,7 +1065,7 @@ function sl(e, t) {
|
|
|
1051
1065
|
unWindowResizeHandle: $
|
|
1052
1066
|
};
|
|
1053
1067
|
}
|
|
1054
|
-
function
|
|
1068
|
+
function cl(e, t, n) {
|
|
1055
1069
|
const o = h(), a = h(e.draggable), l = h(e.lockAxis), i = h(), r = h(), d = h(!1), s = h(new ke(0, 0)), f = h(new ke(0, 0)), c = h(new ke(0, 0)), v = h(new ke(0, 0));
|
|
1056
1070
|
Z(() => n.value, (B) => {
|
|
1057
1071
|
i.value.style.cursor = B ? "move" : "default";
|
|
@@ -1141,7 +1155,7 @@ function Yt(e, t) {
|
|
|
1141
1155
|
};
|
|
1142
1156
|
}
|
|
1143
1157
|
}
|
|
1144
|
-
function
|
|
1158
|
+
function dl(e, t) {
|
|
1145
1159
|
const n = h(e.enableEsc);
|
|
1146
1160
|
let o = null;
|
|
1147
1161
|
return n.value ? (o = Yt("Escape", (a) => {
|
|
@@ -1150,7 +1164,7 @@ function cl(e, t) {
|
|
|
1150
1164
|
remove: o
|
|
1151
1165
|
}) : null;
|
|
1152
1166
|
}
|
|
1153
|
-
function
|
|
1167
|
+
function fl(e, t) {
|
|
1154
1168
|
const n = h(e.enableEnter);
|
|
1155
1169
|
let o = null;
|
|
1156
1170
|
return n.value ? (o = Yt("Enter", (a) => {
|
|
@@ -1161,7 +1175,7 @@ function dl(e, t) {
|
|
|
1161
1175
|
}
|
|
1162
1176
|
const Kt = /* @__PURE__ */ Fe({
|
|
1163
1177
|
name: "FModal",
|
|
1164
|
-
props:
|
|
1178
|
+
props: sl,
|
|
1165
1179
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
|
|
1166
1180
|
setup(e, t) {
|
|
1167
1181
|
const n = h(e.width || 300), o = h(e.height || 200), a = h(e.modelValue), l = h(""), i = h(e.class), r = h(e.fitContent), d = h(e.showHeader), s = h(""), f = h(e.showCloseButton), c = h(e.showMaxButton), v = h(!1), b = h(""), w = h(""), F = h(""), O = h(e.showButtons), y = h(e.title), g = h(e.reiszeable), p = h(e.containment || null), _ = h();
|
|
@@ -1190,9 +1204,9 @@ const Kt = /* @__PURE__ */ Fe({
|
|
|
1190
1204
|
resizedEventParam: V,
|
|
1191
1205
|
allowDrag: N,
|
|
1192
1206
|
unWindowResizeHandle: j
|
|
1193
|
-
} =
|
|
1207
|
+
} = ul(e), {
|
|
1194
1208
|
registerDraggle: P
|
|
1195
|
-
} =
|
|
1209
|
+
} = cl(e, t, N);
|
|
1196
1210
|
Z(() => e.title, (A, ae) => {
|
|
1197
1211
|
A !== ae && (y.value = A);
|
|
1198
1212
|
}), Z(() => e.modelValue, (A, ae) => {
|
|
@@ -1271,7 +1285,7 @@ const Kt = /* @__PURE__ */ Fe({
|
|
|
1271
1285
|
}
|
|
1272
1286
|
let _e = null, re = null;
|
|
1273
1287
|
Ve(() => {
|
|
1274
|
-
M.value && !p.value && (p.value = M.value.parentElement, $.value = p.value, P(k.value, M.value, $.value)), K.value && document.body.classList.add("modal-open"), _e =
|
|
1288
|
+
M.value && !p.value && (p.value = M.value.parentElement, $.value = p.value, P(k.value, M.value, $.value)), K.value && document.body.classList.add("modal-open"), _e = dl(e, t), re = fl(e, t);
|
|
1275
1289
|
}), tt(() => {
|
|
1276
1290
|
H(), j && j(), _e && _e.remove(), re && re.remove();
|
|
1277
1291
|
}), t.expose({
|
|
@@ -1374,7 +1388,7 @@ function Jt(e) {
|
|
|
1374
1388
|
if (e.render && typeof e.render == "function")
|
|
1375
1389
|
return e.render;
|
|
1376
1390
|
}
|
|
1377
|
-
function
|
|
1391
|
+
function pl(e) {
|
|
1378
1392
|
const t = document.createElement("div");
|
|
1379
1393
|
t.style.display = "contents";
|
|
1380
1394
|
const n = Tt({
|
|
@@ -1417,7 +1431,7 @@ function fl(e) {
|
|
|
1417
1431
|
});
|
|
1418
1432
|
return document.body.appendChild(t), n.mount(t), n;
|
|
1419
1433
|
}
|
|
1420
|
-
class
|
|
1434
|
+
class ml {
|
|
1421
1435
|
constructor(t) {
|
|
1422
1436
|
L(this, "appContext", null);
|
|
1423
1437
|
L(this, "modalRef", h());
|
|
@@ -1436,7 +1450,7 @@ class pl {
|
|
|
1436
1450
|
showButtons: !0,
|
|
1437
1451
|
showHeader: !0
|
|
1438
1452
|
}, t);
|
|
1439
|
-
return
|
|
1453
|
+
return pl(n);
|
|
1440
1454
|
}
|
|
1441
1455
|
open(t) {
|
|
1442
1456
|
const n = document.createDocumentFragment();
|
|
@@ -1500,7 +1514,7 @@ class pl {
|
|
|
1500
1514
|
};
|
|
1501
1515
|
}
|
|
1502
1516
|
}
|
|
1503
|
-
const
|
|
1517
|
+
const hl = Symbol("FModalService");
|
|
1504
1518
|
function Qt(e, t) {
|
|
1505
1519
|
function n() {
|
|
1506
1520
|
const o = e.beforeOpen || e.beforeClickButton || null;
|
|
@@ -1515,11 +1529,11 @@ function Qt(e, t) {
|
|
|
1515
1529
|
}
|
|
1516
1530
|
return { judgeCanOpen: n };
|
|
1517
1531
|
}
|
|
1518
|
-
function
|
|
1532
|
+
function vl(e, t, n, o, a) {
|
|
1519
1533
|
const l = h(e.buttonBehavior), i = h(e.popupOnInput), r = R(() => ({
|
|
1520
1534
|
"input-group-append": !0,
|
|
1521
1535
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
1522
|
-
})), { judgeCanOpen: d } = Qt(e, a), s = R(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), f = Ye(
|
|
1536
|
+
})), { judgeCanOpen: d } = Qt(e, a), s = R(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), f = Ye(hl, null), c = h();
|
|
1523
1537
|
async function v(F) {
|
|
1524
1538
|
if (await d() && s.value) {
|
|
1525
1539
|
const O = !!t.slots.default;
|
|
@@ -1530,7 +1544,7 @@ function hl(e, t, n, o, a) {
|
|
|
1530
1544
|
});
|
|
1531
1545
|
c.value = g == null ? void 0 : g.modalRef;
|
|
1532
1546
|
}
|
|
1533
|
-
l.value === "Overlay" &&
|
|
1547
|
+
l.value === "Overlay" && rl.show({
|
|
1534
1548
|
// host: buttonEditRef.value,
|
|
1535
1549
|
host: document.body,
|
|
1536
1550
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
@@ -1552,7 +1566,7 @@ function hl(e, t, n, o, a) {
|
|
|
1552
1566
|
modalRef: c
|
|
1553
1567
|
};
|
|
1554
1568
|
}
|
|
1555
|
-
function
|
|
1569
|
+
function gl(e, t, n, o, a, l) {
|
|
1556
1570
|
const i = h(!1), r = R(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: d } = l;
|
|
1557
1571
|
function s(b) {
|
|
1558
1572
|
i.value = b;
|
|
@@ -1584,7 +1598,7 @@ function vl(e, t, n, o, a, l) {
|
|
|
1584
1598
|
onMouseLeaveTextBox: v
|
|
1585
1599
|
};
|
|
1586
1600
|
}
|
|
1587
|
-
function
|
|
1601
|
+
function yl(e, t, n, o, a) {
|
|
1588
1602
|
const l = R(() => e.popupOnInput), i = R(() => e.popupOnFocus), { shouldPopupContent: r } = a, d = R(() => e.enableTitle ? n.value : ""), s = R(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), f = R(() => e.readonly || !e.editable), c = h(!1), v = R(() => !e.disable && c.value), b = R(() => ({
|
|
1589
1603
|
"text-left": e.textAlign === "left",
|
|
1590
1604
|
"text-center": e.textAlign === "center",
|
|
@@ -1656,7 +1670,7 @@ function gl(e, t, n, o, a) {
|
|
|
1656
1670
|
onTextBoxValueChange: m
|
|
1657
1671
|
};
|
|
1658
1672
|
}
|
|
1659
|
-
function
|
|
1673
|
+
function bl(e, t, n, o) {
|
|
1660
1674
|
const a = h(), l = h(!1), { judgeCanOpen: i } = Qt(e, o);
|
|
1661
1675
|
function r() {
|
|
1662
1676
|
const c = a.value;
|
|
@@ -1681,7 +1695,7 @@ function yl(e, t, n, o) {
|
|
|
1681
1695
|
}
|
|
1682
1696
|
return { hidePopup: f, popup: s, shouldPopupContent: l, togglePopup: d, popoverRef: a };
|
|
1683
1697
|
}
|
|
1684
|
-
function
|
|
1698
|
+
function Cl(e, t, n) {
|
|
1685
1699
|
const o = h(), {
|
|
1686
1700
|
isTextBoxReadonly: a,
|
|
1687
1701
|
textBoxClass: l,
|
|
@@ -1723,7 +1737,7 @@ function bl(e, t, n) {
|
|
|
1723
1737
|
onMousedown: w
|
|
1724
1738
|
}, null);
|
|
1725
1739
|
}
|
|
1726
|
-
function
|
|
1740
|
+
function wl(e, t, n) {
|
|
1727
1741
|
const o = h(e.separator), {
|
|
1728
1742
|
changeTextBoxValue: a
|
|
1729
1743
|
} = n, l = R(() => t.value ? t.value.split(o.value).map((r) => ({
|
|
@@ -1742,7 +1756,7 @@ function Cl(e, t, n) {
|
|
|
1742
1756
|
onChange: i
|
|
1743
1757
|
}, null);
|
|
1744
1758
|
}
|
|
1745
|
-
function
|
|
1759
|
+
function _l(e, t, n, o) {
|
|
1746
1760
|
const {
|
|
1747
1761
|
buttonGroupClass: a,
|
|
1748
1762
|
onClickButton: l,
|
|
@@ -1778,7 +1792,7 @@ function wl(e, t, n, o) {
|
|
|
1778
1792
|
buttonHandleElement: c
|
|
1779
1793
|
};
|
|
1780
1794
|
}
|
|
1781
|
-
function
|
|
1795
|
+
function Sl(e, t, n) {
|
|
1782
1796
|
const o = h(e.popupMinWidth), {
|
|
1783
1797
|
hidePopup: a,
|
|
1784
1798
|
popoverRef: l
|
|
@@ -1802,20 +1816,20 @@ function _l(e, t, n) {
|
|
|
1802
1816
|
}
|
|
1803
1817
|
});
|
|
1804
1818
|
}
|
|
1805
|
-
const
|
|
1819
|
+
const xl = /* @__PURE__ */ Fe({
|
|
1806
1820
|
name: "FButtonEdit",
|
|
1807
1821
|
props: Xt,
|
|
1808
1822
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
1809
1823
|
setup(e, t) {
|
|
1810
|
-
const n = h(), o = h(e.customClass), a = h(e.modelValue), l =
|
|
1824
|
+
const n = h(), o = h(e.customClass), a = h(e.modelValue), l = bl(e, t, n, a), {
|
|
1811
1825
|
shouldPopupContent: i,
|
|
1812
1826
|
hidePopup: r,
|
|
1813
1827
|
togglePopup: d
|
|
1814
|
-
} = l, s =
|
|
1828
|
+
} = l, s = vl(e, t, n, l, a), f = h(""), c = yl(e, t, a, f, l), {
|
|
1815
1829
|
hasFocusedTextBox: v,
|
|
1816
1830
|
commitValue: b,
|
|
1817
1831
|
inputGroupClass: w
|
|
1818
|
-
} = c, F =
|
|
1832
|
+
} = c, F = gl(e, t, a, v, f, c), {
|
|
1819
1833
|
onMouseEnterTextBox: O,
|
|
1820
1834
|
onMouseLeaveTextBox: y
|
|
1821
1835
|
} = F, g = R(() => {
|
|
@@ -1827,7 +1841,7 @@ const Sl = /* @__PURE__ */ Fe({
|
|
|
1827
1841
|
return o.value && o.value.split(" ").reduce((k, M) => (k[M] = !0, k), u), u;
|
|
1828
1842
|
});
|
|
1829
1843
|
function p() {
|
|
1830
|
-
return e.multiSelect && e.inputType === "tag" ?
|
|
1844
|
+
return e.multiSelect && e.inputType === "tag" ? wl(e, a, c) : Cl(e, a, c);
|
|
1831
1845
|
}
|
|
1832
1846
|
let _ = p();
|
|
1833
1847
|
Z([() => e.multiSelect, () => e.inputType], () => {
|
|
@@ -1836,7 +1850,7 @@ const Sl = /* @__PURE__ */ Fe({
|
|
|
1836
1850
|
const {
|
|
1837
1851
|
renderButtonGroup: S,
|
|
1838
1852
|
buttonHandleElement: x
|
|
1839
|
-
} =
|
|
1853
|
+
} = _l(e, t, s, F), B = Sl(e, t, l), m = {
|
|
1840
1854
|
commitValue: b,
|
|
1841
1855
|
elementRef: n,
|
|
1842
1856
|
hidePopup: r,
|
|
@@ -1854,7 +1868,7 @@ const Sl = /* @__PURE__ */ Fe({
|
|
|
1854
1868
|
n.value.componentInstance = m, window.onresize = () => {
|
|
1855
1869
|
document.body.click();
|
|
1856
1870
|
};
|
|
1857
|
-
}), t.expose(m), () => C(
|
|
1871
|
+
}), t.expose(m), () => C(Ge, null, [C("div", Xe(t.attrs, {
|
|
1858
1872
|
ref: n,
|
|
1859
1873
|
class: g.value,
|
|
1860
1874
|
id: e.id
|
|
@@ -1865,7 +1879,7 @@ const Sl = /* @__PURE__ */ Fe({
|
|
|
1865
1879
|
onMouseleave: y
|
|
1866
1880
|
}, [_(), S()])]), i.value && B()]);
|
|
1867
1881
|
}
|
|
1868
|
-
}),
|
|
1882
|
+
}), kl = "https://json-schema.org/draft/2020-12/schema", Tl = "https://farris-design.gitee.io/field-selector.schema.json", Fl = "field-selector", Bl = "A Farris Input Component", Ol = "object", Ml = {
|
|
1869
1883
|
disabled: {
|
|
1870
1884
|
description: "",
|
|
1871
1885
|
type: "boolean",
|
|
@@ -1956,24 +1970,24 @@ const Sl = /* @__PURE__ */ Fe({
|
|
|
1956
1970
|
type: "object",
|
|
1957
1971
|
default: null
|
|
1958
1972
|
}
|
|
1959
|
-
},
|
|
1960
|
-
$schema:
|
|
1961
|
-
$id:
|
|
1962
|
-
title:
|
|
1963
|
-
description:
|
|
1964
|
-
type:
|
|
1965
|
-
properties:
|
|
1966
|
-
},
|
|
1973
|
+
}, El = {
|
|
1974
|
+
$schema: kl,
|
|
1975
|
+
$id: Tl,
|
|
1976
|
+
title: Fl,
|
|
1977
|
+
description: Bl,
|
|
1978
|
+
type: Ol,
|
|
1979
|
+
properties: Ml
|
|
1980
|
+
}, Il = [
|
|
1967
1981
|
{ field: "code", title: "绑定字段" },
|
|
1968
1982
|
{ field: "name", title: "名称" },
|
|
1969
1983
|
{ field: "fieldType", title: "字段类型" }
|
|
1970
|
-
],
|
|
1984
|
+
], xc = Symbol("Field_Selector Component Repository Service Token"), Ot = {
|
|
1971
1985
|
disabled: { type: Boolean, default: !1 },
|
|
1972
1986
|
readonly: { type: Boolean, default: !1 },
|
|
1973
1987
|
modelValue: { type: [String, Array], default: null },
|
|
1974
1988
|
data: { type: Array, default: [] },
|
|
1975
1989
|
idField: { type: String, default: "id" },
|
|
1976
|
-
columns: { type: Array, default:
|
|
1990
|
+
columns: { type: Array, default: Il },
|
|
1977
1991
|
title: { type: String, default: "字段选择器" },
|
|
1978
1992
|
modalWidth: { type: Number, default: 800 },
|
|
1979
1993
|
modalHeight: { type: Number, default: 600 },
|
|
@@ -1990,11 +2004,11 @@ const Sl = /* @__PURE__ */ Fe({
|
|
|
1990
2004
|
onSubmitModal: { type: Function, default: null },
|
|
1991
2005
|
onFieldSelected: { type: Function, default: null },
|
|
1992
2006
|
repositoryToken: { type: Symbol, default: null }
|
|
1993
|
-
},
|
|
2007
|
+
}, Vl = ze(Ot, El), Zt = /* @__PURE__ */ new Map([
|
|
1994
2008
|
["appearance", ct],
|
|
1995
2009
|
["column", "columnOption"]
|
|
1996
2010
|
]);
|
|
1997
|
-
function
|
|
2011
|
+
function Rl(e, t, n) {
|
|
1998
2012
|
var c;
|
|
1999
2013
|
const o = n.parentComponentInstance, a = o.schema.type, l = String(((c = o.schema.appearance) == null ? void 0 : c.class) || "").split(" "), i = a === "section" || a === "tab-page", r = l.includes("f-page-content-nav"), d = l.includes("f-page-main"), s = e.getSchemaByType("component");
|
|
2000
2014
|
s.id = `${t.id}-component`, s.componentType = "data-grid";
|
|
@@ -2003,23 +2017,23 @@ function Vl(e, t, n) {
|
|
|
2003
2017
|
class: f
|
|
2004
2018
|
}, s.contents = [t], s;
|
|
2005
2019
|
}
|
|
2006
|
-
function
|
|
2020
|
+
function Nl(e, t, n) {
|
|
2007
2021
|
const o = n.parentComponentInstance, a = String(o.schema.appearance.class || "").split(" "), l = a.includes("f-page-content-nav"), i = a.includes("f-page-main"), r = e.getSchemaByType("section");
|
|
2008
2022
|
r.id = `${t.id}-section`;
|
|
2009
2023
|
let d = "";
|
|
2010
2024
|
return d += l ? "f-section-in-nav " : "", d += i ? "f-section-in-managelist " : "", d += "f-section-grid", r.appearance = { class: d }, r.contents = [t], r;
|
|
2011
2025
|
}
|
|
2012
|
-
function
|
|
2026
|
+
function Dl(e, t, n) {
|
|
2013
2027
|
const o = e.getSchemaByType("content-container");
|
|
2014
2028
|
return o.id = `${t.id}-layout`, o.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, o.contents = [t], o;
|
|
2015
2029
|
}
|
|
2016
2030
|
function en(e, t, n) {
|
|
2017
2031
|
const a = n.parentComponentInstance.schema.type, l = a === "section" || a === "tab-page";
|
|
2018
2032
|
t.appearance = { class: "f-component-grid" };
|
|
2019
|
-
const r = (l ?
|
|
2020
|
-
return
|
|
2033
|
+
const r = (l ? Dl : Nl)(e, t, n);
|
|
2034
|
+
return Rl(e, r, n);
|
|
2021
2035
|
}
|
|
2022
|
-
const
|
|
2036
|
+
const Pl = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-design.gitee.io/tree-grid.schema.json", jl = "tree-grid", Hl = "A Farris Data Grid Component", Wl = "object", Al = {
|
|
2023
2037
|
id: {
|
|
2024
2038
|
description: "The unique identifier for a Input Group",
|
|
2025
2039
|
type: "string"
|
|
@@ -2792,17 +2806,18 @@ const Dl = "https://json-schema.org/draft/2020-12/schema", Pl = "https://farris-
|
|
|
2792
2806
|
type: "string",
|
|
2793
2807
|
default: ""
|
|
2794
2808
|
}
|
|
2795
|
-
},
|
|
2809
|
+
}, Ll = [
|
|
2796
2810
|
"id",
|
|
2797
|
-
"type"
|
|
2811
|
+
"type",
|
|
2812
|
+
"columns"
|
|
2798
2813
|
], tn = {
|
|
2799
|
-
$schema:
|
|
2800
|
-
$id:
|
|
2801
|
-
title:
|
|
2802
|
-
description:
|
|
2803
|
-
type:
|
|
2804
|
-
properties:
|
|
2805
|
-
required:
|
|
2814
|
+
$schema: Pl,
|
|
2815
|
+
$id: $l,
|
|
2816
|
+
title: jl,
|
|
2817
|
+
description: Hl,
|
|
2818
|
+
type: Wl,
|
|
2819
|
+
properties: Al,
|
|
2820
|
+
required: Ll
|
|
2806
2821
|
}, Mt = {
|
|
2807
2822
|
/** 列集合 */
|
|
2808
2823
|
columns: { type: Array, default: [] },
|
|
@@ -2917,7 +2932,7 @@ const Dl = "https://json-schema.org/draft/2020-12/schema", Pl = "https://farris-
|
|
|
2917
2932
|
autoCheckChildren: { type: Boolean, default: !1 },
|
|
2918
2933
|
/** 显示设置按钮 */
|
|
2919
2934
|
showSetting: { type: Boolean, default: !1 }
|
|
2920
|
-
},
|
|
2935
|
+
}, Gl = ze(Mt, tn, Zt, en), zl = Wa(), ql = Ha(), nn = Object.assign({}, Mt, { componentId: { type: String, default: "" } }), Ul = ze(nn, tn, Zt, en);
|
|
2921
2936
|
var De = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(De || {}), We = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(We || {}), at = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(at || {}), Me = /* @__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))(Me || {}), wt = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(wt || {});
|
|
2922
2937
|
function on(e, t) {
|
|
2923
2938
|
var b;
|
|
@@ -2995,7 +3010,7 @@ function on(e, t) {
|
|
|
2995
3010
|
summaryCellPosition: r
|
|
2996
3011
|
};
|
|
2997
3012
|
}
|
|
2998
|
-
function
|
|
3013
|
+
function Xl(e, t, n) {
|
|
2999
3014
|
const { hasChildrenField: o } = n, a = h("#9399a0"), l = h(28);
|
|
3000
3015
|
function i() {
|
|
3001
3016
|
return [].concat(
|
|
@@ -3034,7 +3049,7 @@ function Ul(e, t, n) {
|
|
|
3034
3049
|
}
|
|
3035
3050
|
return { hierarchyCellContentStyle: s, handleCollapsedPaddingBottom: d };
|
|
3036
3051
|
}
|
|
3037
|
-
function
|
|
3052
|
+
function Yl(e, t, n) {
|
|
3038
3053
|
const o = h(e.iconField);
|
|
3039
3054
|
function a(l, i) {
|
|
3040
3055
|
if (o.value)
|
|
@@ -3061,7 +3076,7 @@ function an() {
|
|
|
3061
3076
|
}
|
|
3062
3077
|
return { updateRowPosition: e, updateVisualInfomation: t };
|
|
3063
3078
|
}
|
|
3064
|
-
function
|
|
3079
|
+
function Kl(e, t, n, o, a, l) {
|
|
3065
3080
|
const { dataView: i, fold: r, hasRealChildren: d, unFold: s } = o, { collapseField: f, hasChildrenField: c } = a, { updateRowPosition: v } = an();
|
|
3066
3081
|
function b(O, y) {
|
|
3067
3082
|
const g = y[O].layer;
|
|
@@ -3099,7 +3114,7 @@ function Yl(e, t, n, o, a, l) {
|
|
|
3099
3114
|
}
|
|
3100
3115
|
return { toggleTreeNode: F };
|
|
3101
3116
|
}
|
|
3102
|
-
function
|
|
3117
|
+
function Jl(e, t, n, o, a, l, i, r, d, s, f) {
|
|
3103
3118
|
const {
|
|
3104
3119
|
onClickCell: c
|
|
3105
3120
|
} = l, {
|
|
@@ -3125,7 +3140,7 @@ function Kl(e, t, n, o, a, l, i, r, d, s, f) {
|
|
|
3125
3140
|
shouldShowIcon: E
|
|
3126
3141
|
} = i, {
|
|
3127
3142
|
toggleTreeNode: D
|
|
3128
|
-
} =
|
|
3143
|
+
} = Kl(e, t, o, a, i), {
|
|
3129
3144
|
toggleSelectHierarchyItem: T
|
|
3130
3145
|
} = s, {
|
|
3131
3146
|
cellKey: I,
|
|
@@ -3134,9 +3149,9 @@ function Kl(e, t, n, o, a, l, i, r, d, s, f) {
|
|
|
3134
3149
|
rowPosition: N
|
|
3135
3150
|
} = on(e, n), {
|
|
3136
3151
|
hierarchyCellContentStyle: j
|
|
3137
|
-
} =
|
|
3152
|
+
} = Xl(e, o, i), {
|
|
3138
3153
|
treeNodeIconsClass: P
|
|
3139
|
-
} =
|
|
3154
|
+
} = Yl(e, u, k);
|
|
3140
3155
|
function H(G, z) {
|
|
3141
3156
|
const ue = G.raw[k.value];
|
|
3142
3157
|
return {
|
|
@@ -3216,7 +3231,7 @@ function Kl(e, t, n, o, a, l, i, r, d, s, f) {
|
|
|
3216
3231
|
renderDataRow: me
|
|
3217
3232
|
};
|
|
3218
3233
|
}
|
|
3219
|
-
function
|
|
3234
|
+
function Ql(e, t, n) {
|
|
3220
3235
|
const {
|
|
3221
3236
|
horizontalScrollThumbStyle: o,
|
|
3222
3237
|
onMouseDownScrollThumb: a,
|
|
@@ -3235,7 +3250,7 @@ function Jl(e, t, n) {
|
|
|
3235
3250
|
renderHorizontalScrollbar: i
|
|
3236
3251
|
};
|
|
3237
3252
|
}
|
|
3238
|
-
function
|
|
3253
|
+
function Zl(e, t, n, o, a) {
|
|
3239
3254
|
const {
|
|
3240
3255
|
isSelectingHirarchyItem: l,
|
|
3241
3256
|
multiSelectOnClickRow: i,
|
|
@@ -3313,7 +3328,7 @@ function Ql(e, t, n, o, a) {
|
|
|
3313
3328
|
renderDataGridSidebar: B
|
|
3314
3329
|
};
|
|
3315
3330
|
}
|
|
3316
|
-
function
|
|
3331
|
+
function ei(e, t, n) {
|
|
3317
3332
|
const {
|
|
3318
3333
|
verticalScrollThumbStyle: o,
|
|
3319
3334
|
onMouseDownScrollThumb: a,
|
|
@@ -3332,7 +3347,7 @@ function Zl(e, t, n) {
|
|
|
3332
3347
|
renderVerticalScrollbar: i
|
|
3333
3348
|
};
|
|
3334
3349
|
}
|
|
3335
|
-
function
|
|
3350
|
+
function ti() {
|
|
3336
3351
|
function e(o, a) {
|
|
3337
3352
|
switch (o.command) {
|
|
3338
3353
|
case "edit":
|
|
@@ -3370,7 +3385,7 @@ function ei() {
|
|
|
3370
3385
|
renderCommandColumn: n
|
|
3371
3386
|
};
|
|
3372
3387
|
}
|
|
3373
|
-
function
|
|
3388
|
+
function ni(e) {
|
|
3374
3389
|
function t() {
|
|
3375
3390
|
return C("div", {
|
|
3376
3391
|
class: "d-flex flex-column f-datagrid-norecords"
|
|
@@ -3383,7 +3398,7 @@ function ti(e) {
|
|
|
3383
3398
|
renderEmpty: t
|
|
3384
3399
|
};
|
|
3385
3400
|
}
|
|
3386
|
-
function
|
|
3401
|
+
function oi(e) {
|
|
3387
3402
|
const t = h(e.minHeight), n = h(e.minWidth), o = h(e.height), a = h(e.width), l = R(() => o.value <= 0 ? 0 : Math.max(o.value, t.value)), i = R(() => a.value <= 0 ? 0 : Math.max(a.value, n.value));
|
|
3388
3403
|
return Z([
|
|
3389
3404
|
() => e.height,
|
|
@@ -3397,7 +3412,7 @@ function ni(e) {
|
|
|
3397
3412
|
width: i.value > 0 ? `${i.value}px` : e.fit ? "100%" : ""
|
|
3398
3413
|
})) };
|
|
3399
3414
|
}
|
|
3400
|
-
function
|
|
3415
|
+
function ai(e) {
|
|
3401
3416
|
const o = h({
|
|
3402
3417
|
defaultColumnWidth: 120,
|
|
3403
3418
|
headerDepth: 1,
|
|
@@ -3505,23 +3520,23 @@ function oi(e) {
|
|
|
3505
3520
|
updateColumnSettingIcon: r
|
|
3506
3521
|
};
|
|
3507
3522
|
}
|
|
3508
|
-
const
|
|
3523
|
+
const li = [{
|
|
3509
3524
|
name: "是",
|
|
3510
3525
|
value: !0
|
|
3511
3526
|
}, {
|
|
3512
3527
|
name: "否",
|
|
3513
3528
|
value: !1
|
|
3514
3529
|
}];
|
|
3515
|
-
function
|
|
3530
|
+
function ii(e) {
|
|
3516
3531
|
return e.filter = e.filter || function(t) {
|
|
3517
3532
|
return String(e.filterValue).split(",").includes(String(t[e.field]));
|
|
3518
3533
|
}, C("div", null, [C(Ae("f-checkbox-group"), {
|
|
3519
3534
|
modelValue: e.filterValue,
|
|
3520
3535
|
"onUpdate:modelValue": (t) => e.filterValue = t,
|
|
3521
|
-
"enum-data":
|
|
3536
|
+
"enum-data": li
|
|
3522
3537
|
}, null)]);
|
|
3523
3538
|
}
|
|
3524
|
-
const
|
|
3539
|
+
const ri = h([{
|
|
3525
3540
|
name: "七天",
|
|
3526
3541
|
selectable: !0
|
|
3527
3542
|
}, {
|
|
@@ -3534,7 +3549,7 @@ const ii = h([{
|
|
|
3534
3549
|
name: "半年",
|
|
3535
3550
|
selectable: !0
|
|
3536
3551
|
}]);
|
|
3537
|
-
function
|
|
3552
|
+
function si(e) {
|
|
3538
3553
|
const t = h(!1);
|
|
3539
3554
|
return e.filter = e.filter || function(n) {
|
|
3540
3555
|
const o = new Date(new Date(e.filterValue).toLocaleDateString()).valueOf();
|
|
@@ -3554,12 +3569,12 @@ function ri(e) {
|
|
|
3554
3569
|
"onUpdate:modelValue": (n) => e.filterValue = n
|
|
3555
3570
|
}, null), C(Ae("f-tags"), {
|
|
3556
3571
|
style: "margin-top:10px",
|
|
3557
|
-
data:
|
|
3572
|
+
data: ri.value,
|
|
3558
3573
|
selectable: !0,
|
|
3559
3574
|
"tag-style": "capsule"
|
|
3560
3575
|
}, null)]);
|
|
3561
3576
|
}
|
|
3562
|
-
function
|
|
3577
|
+
function ui(e) {
|
|
3563
3578
|
e.filter = e.filter || function(n) {
|
|
3564
3579
|
const o = Number.parseFloat(e.filterValue), a = Number.parseFloat(n[e.field]);
|
|
3565
3580
|
return isNaN(o) ? isNaN(a) : o === a;
|
|
@@ -3574,7 +3589,7 @@ function si(e) {
|
|
|
3574
3589
|
onValueChange: t
|
|
3575
3590
|
}, null)]);
|
|
3576
3591
|
}
|
|
3577
|
-
function
|
|
3592
|
+
function ci(e, t, n, o, a, l) {
|
|
3578
3593
|
e.filterHistory = e.filterHistory || a.getFilterHistory(e), e.filter = e.filter || function(v) {
|
|
3579
3594
|
return (v[e.field] || "").startsWith(e.filterValue);
|
|
3580
3595
|
};
|
|
@@ -3611,7 +3626,7 @@ function ui(e, t, n, o, a, l) {
|
|
|
3611
3626
|
onChange: d
|
|
3612
3627
|
}, null)]);
|
|
3613
3628
|
}
|
|
3614
|
-
function
|
|
3629
|
+
function di(e, t, n, o, a, l) {
|
|
3615
3630
|
e.filter = e.filter || function(b) {
|
|
3616
3631
|
return String(e.filterValue).split(",").includes(String(b[e.field]));
|
|
3617
3632
|
};
|
|
@@ -3642,7 +3657,7 @@ function ci(e, t, n, o, a, l) {
|
|
|
3642
3657
|
default: () => [Pe(" ")]
|
|
3643
3658
|
});
|
|
3644
3659
|
}
|
|
3645
|
-
function
|
|
3660
|
+
function fi(e) {
|
|
3646
3661
|
h("请输入关键词"), h('<i class="f-icon f-icon-search"></i>');
|
|
3647
3662
|
const t = [{
|
|
3648
3663
|
name: "发票类型",
|
|
@@ -3684,7 +3699,7 @@ function di(e) {
|
|
|
3684
3699
|
default: () => [Pe(" ")]
|
|
3685
3700
|
});
|
|
3686
3701
|
}
|
|
3687
|
-
function
|
|
3702
|
+
function pi(e, t, n, o, a) {
|
|
3688
3703
|
const l = /* @__PURE__ */ new Map([
|
|
3689
3704
|
["boolean", "boolean-filter"],
|
|
3690
3705
|
["date", "date-filter"],
|
|
@@ -3695,12 +3710,12 @@ function fi(e, t, n, o, a) {
|
|
|
3695
3710
|
["enum", "enum-filter"],
|
|
3696
3711
|
["reference", "list-filter"]
|
|
3697
3712
|
]), i = /* @__PURE__ */ new Map([
|
|
3698
|
-
["boolean-filter",
|
|
3699
|
-
["date-filter",
|
|
3700
|
-
["enum-filter",
|
|
3701
|
-
["list-filter",
|
|
3702
|
-
["numeric-filter",
|
|
3703
|
-
["text-filter",
|
|
3713
|
+
["boolean-filter", ii],
|
|
3714
|
+
["date-filter", si],
|
|
3715
|
+
["enum-filter", di],
|
|
3716
|
+
["list-filter", fi],
|
|
3717
|
+
["numeric-filter", ui],
|
|
3718
|
+
["text-filter", ci]
|
|
3704
3719
|
]);
|
|
3705
3720
|
function r(d) {
|
|
3706
3721
|
var v, b;
|
|
@@ -3717,7 +3732,7 @@ function fi(e, t, n, o, a) {
|
|
|
3717
3732
|
}
|
|
3718
3733
|
return { getFilterEditor: r };
|
|
3719
3734
|
}
|
|
3720
|
-
function
|
|
3735
|
+
function mi(e) {
|
|
3721
3736
|
const n = h(e.commandOption.enable || !1), o = h(e.commandOption.commands || []);
|
|
3722
3737
|
function a(l) {
|
|
3723
3738
|
if (n.value && !(l.value.findIndex((r) => r.dataType === "commands") > -1)) {
|
|
@@ -3735,7 +3750,7 @@ function pi(e) {
|
|
|
3735
3750
|
}
|
|
3736
3751
|
return { applyCommands: a };
|
|
3737
3752
|
}
|
|
3738
|
-
function
|
|
3753
|
+
function hi(e, t, n, o, a, l, i) {
|
|
3739
3754
|
const { columnContext: r } = n, { getGridHeaderCells: d } = a, { groupFields: s } = l, f = h(-1), c = h(!1), v = R(() => s.value && s.value.map((g) => {
|
|
3740
3755
|
var p;
|
|
3741
3756
|
return {
|
|
@@ -3786,7 +3801,7 @@ function mi(e, t, n, o, a, l, i) {
|
|
|
3786
3801
|
groupColumnItems: v
|
|
3787
3802
|
};
|
|
3788
3803
|
}
|
|
3789
|
-
function
|
|
3804
|
+
function vi(e, t, n, o, a) {
|
|
3790
3805
|
const { getGridHeaderCells: l } = a, i = 120, r = 50, d = R(() => {
|
|
3791
3806
|
var m;
|
|
3792
3807
|
return ((m = e.rowNumber) == null ? void 0 : m.enable) || !1;
|
|
@@ -3922,7 +3937,7 @@ function hi(e, t, n, o, a) {
|
|
|
3922
3937
|
m !== u && c.value && B();
|
|
3923
3938
|
}), { calculateColumnHeaders: _, calculateColumnsSize: B, calculateColumnsWidth: S };
|
|
3924
3939
|
}
|
|
3925
|
-
function
|
|
3940
|
+
function gi(e, t) {
|
|
3926
3941
|
var s;
|
|
3927
3942
|
const n = h((s = e.columnOption) == null ? void 0 : s.groups);
|
|
3928
3943
|
function o(f, c, v, b, w) {
|
|
@@ -4030,7 +4045,7 @@ const ln = {
|
|
|
4030
4045
|
*/
|
|
4031
4046
|
isControlInline: { type: Boolean, default: !0 }
|
|
4032
4047
|
};
|
|
4033
|
-
class
|
|
4048
|
+
class yi {
|
|
4034
4049
|
constructor(t = { value: [] }) {
|
|
4035
4050
|
L(this, "editorType", "check-box");
|
|
4036
4051
|
L(this, "value");
|
|
@@ -4050,7 +4065,7 @@ class gi {
|
|
|
4050
4065
|
return this.value.length === 0;
|
|
4051
4066
|
}
|
|
4052
4067
|
}
|
|
4053
|
-
class
|
|
4068
|
+
class bi {
|
|
4054
4069
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
4055
4070
|
L(this, "editorType", "combo-lookup");
|
|
4056
4071
|
L(this, "textValue");
|
|
@@ -4070,11 +4085,11 @@ class yi {
|
|
|
4070
4085
|
return t[n[0]];
|
|
4071
4086
|
}
|
|
4072
4087
|
getTextValue(t) {
|
|
4073
|
-
const n = t.split("."), o = this.value.split(",").map((a) => this.getPropValue(a,
|
|
4088
|
+
const n = t.split("."), o = this.value.split(",").map((a) => this.getPropValue(a, Le(n)));
|
|
4074
4089
|
return o && o.length ? o.join(",") : "";
|
|
4075
4090
|
}
|
|
4076
4091
|
getValue() {
|
|
4077
|
-
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o,
|
|
4092
|
+
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, Le(t)));
|
|
4078
4093
|
return n && n.length ? n.join(",") : "";
|
|
4079
4094
|
}
|
|
4080
4095
|
setValue(t) {
|
|
@@ -4084,7 +4099,7 @@ class yi {
|
|
|
4084
4099
|
return !this.valueField;
|
|
4085
4100
|
}
|
|
4086
4101
|
}
|
|
4087
|
-
class
|
|
4102
|
+
class Ci {
|
|
4088
4103
|
constructor(t = { value: "" }) {
|
|
4089
4104
|
L(this, "editorType", "date-picker");
|
|
4090
4105
|
L(this, "value");
|
|
@@ -4125,7 +4140,7 @@ class Dt {
|
|
|
4125
4140
|
return !this.begin || !this.end;
|
|
4126
4141
|
}
|
|
4127
4142
|
}
|
|
4128
|
-
class
|
|
4143
|
+
class wi {
|
|
4129
4144
|
constructor(t = { value: "" }) {
|
|
4130
4145
|
L(this, "editorType", "datetime-picker");
|
|
4131
4146
|
L(this, "value");
|
|
@@ -4145,7 +4160,7 @@ class Ci {
|
|
|
4145
4160
|
return !this.value;
|
|
4146
4161
|
}
|
|
4147
4162
|
}
|
|
4148
|
-
class
|
|
4163
|
+
class _i {
|
|
4149
4164
|
// 旧结构无,新结构为选中的value值,多选是以,分割的字符串
|
|
4150
4165
|
constructor(t = { value: "", dispalyText: "" }) {
|
|
4151
4166
|
L(this, "editorType", "combo-list");
|
|
@@ -4168,7 +4183,7 @@ class wi {
|
|
|
4168
4183
|
return !this.displayText && !this.value;
|
|
4169
4184
|
}
|
|
4170
4185
|
}
|
|
4171
|
-
class
|
|
4186
|
+
class Si {
|
|
4172
4187
|
constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
|
|
4173
4188
|
L(this, "editorType", "input-group");
|
|
4174
4189
|
// 通过弹窗返回的若干个值对象构成的数组
|
|
@@ -4193,21 +4208,21 @@ class _i {
|
|
|
4193
4208
|
return t[n[0]];
|
|
4194
4209
|
}
|
|
4195
4210
|
getTextValue(t) {
|
|
4196
|
-
const n = t.split("."), o = this.value.map((a) => this.getPropValue(a,
|
|
4211
|
+
const n = t.split("."), o = this.value.map((a) => this.getPropValue(a, Le(n)));
|
|
4197
4212
|
return o && o.length ? o.join(",") : "";
|
|
4198
4213
|
}
|
|
4199
4214
|
getValue() {
|
|
4200
|
-
const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o,
|
|
4215
|
+
const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, Le(t)));
|
|
4201
4216
|
return n && n.length ? n.join(",") : "";
|
|
4202
4217
|
}
|
|
4203
4218
|
setValue(t) {
|
|
4204
4219
|
throw new Error("Method not implemented.");
|
|
4205
4220
|
}
|
|
4206
4221
|
isEmpty() {
|
|
4207
|
-
return !this.displayText && !this.value;
|
|
4222
|
+
return !this.displayText && !this.value.length;
|
|
4208
4223
|
}
|
|
4209
4224
|
}
|
|
4210
|
-
class
|
|
4225
|
+
class xi {
|
|
4211
4226
|
constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
|
|
4212
4227
|
L(this, "editorType", "lookup");
|
|
4213
4228
|
L(this, "textValue");
|
|
@@ -4243,7 +4258,7 @@ class Si {
|
|
|
4243
4258
|
return !this.value.length;
|
|
4244
4259
|
}
|
|
4245
4260
|
}
|
|
4246
|
-
class
|
|
4261
|
+
class ki {
|
|
4247
4262
|
constructor(t = { value: "" }) {
|
|
4248
4263
|
L(this, "editorType", "month-picker");
|
|
4249
4264
|
L(this, "value");
|
|
@@ -4263,7 +4278,7 @@ class xi {
|
|
|
4263
4278
|
return !this.value;
|
|
4264
4279
|
}
|
|
4265
4280
|
}
|
|
4266
|
-
class
|
|
4281
|
+
class Ti {
|
|
4267
4282
|
constructor(t = { begin: "", end: "" }) {
|
|
4268
4283
|
L(this, "editorType", "month-range");
|
|
4269
4284
|
L(this, "begin");
|
|
@@ -4284,7 +4299,7 @@ class ki {
|
|
|
4284
4299
|
return !this.begin || !this.end;
|
|
4285
4300
|
}
|
|
4286
4301
|
}
|
|
4287
|
-
class
|
|
4302
|
+
class Fi {
|
|
4288
4303
|
constructor(t = { begin: null, end: null }) {
|
|
4289
4304
|
L(this, "editorType", "number-range");
|
|
4290
4305
|
L(this, "begin");
|
|
@@ -4308,7 +4323,7 @@ class Ti {
|
|
|
4308
4323
|
return this.begin == null && this.end == null;
|
|
4309
4324
|
}
|
|
4310
4325
|
}
|
|
4311
|
-
class
|
|
4326
|
+
class Bi {
|
|
4312
4327
|
constructor(t = { value: "" }) {
|
|
4313
4328
|
L(this, "editorType", "number-spinner");
|
|
4314
4329
|
L(this, "value");
|
|
@@ -4325,10 +4340,10 @@ class Fi {
|
|
|
4325
4340
|
this.value = isNaN(parseFloat(t)) ? null : t;
|
|
4326
4341
|
}
|
|
4327
4342
|
isEmpty() {
|
|
4328
|
-
return this.value == null;
|
|
4343
|
+
return this.value == null || isNaN(this.value);
|
|
4329
4344
|
}
|
|
4330
4345
|
}
|
|
4331
|
-
class
|
|
4346
|
+
class Oi {
|
|
4332
4347
|
constructor(t = { value: null }) {
|
|
4333
4348
|
L(this, "editorType", "radio-group");
|
|
4334
4349
|
L(this, "value");
|
|
@@ -4372,33 +4387,33 @@ function sn() {
|
|
|
4372
4387
|
function e(t, n) {
|
|
4373
4388
|
switch (t) {
|
|
4374
4389
|
case "check-box":
|
|
4375
|
-
return new
|
|
4390
|
+
return new yi(n);
|
|
4376
4391
|
case "combo-list":
|
|
4377
|
-
return new
|
|
4392
|
+
return new _i(n);
|
|
4378
4393
|
case "combo-lookup":
|
|
4379
|
-
return new
|
|
4394
|
+
return new bi(n);
|
|
4380
4395
|
case "input-group":
|
|
4381
|
-
return new
|
|
4396
|
+
return new Si(n);
|
|
4382
4397
|
case "date-picker":
|
|
4383
|
-
return new
|
|
4398
|
+
return new Ci(n);
|
|
4384
4399
|
case "date-range":
|
|
4385
4400
|
return new Dt(n);
|
|
4386
4401
|
case "datetime-picker":
|
|
4387
|
-
return new
|
|
4402
|
+
return new wi(n);
|
|
4388
4403
|
case "datetime-range":
|
|
4389
4404
|
return new Dt(n);
|
|
4390
4405
|
case "lookup":
|
|
4391
|
-
return new Si(n);
|
|
4392
|
-
case "month-picker":
|
|
4393
4406
|
return new xi(n);
|
|
4394
|
-
case "month-
|
|
4407
|
+
case "month-picker":
|
|
4395
4408
|
return new ki(n);
|
|
4396
|
-
case "
|
|
4409
|
+
case "month-range":
|
|
4397
4410
|
return new Ti(n);
|
|
4398
|
-
case "number-
|
|
4411
|
+
case "number-range":
|
|
4399
4412
|
return new Fi(n);
|
|
4400
|
-
case "
|
|
4413
|
+
case "number-spinner":
|
|
4401
4414
|
return new Bi(n);
|
|
4415
|
+
case "radio-group":
|
|
4416
|
+
return new Oi(n);
|
|
4402
4417
|
default:
|
|
4403
4418
|
return new rn(n);
|
|
4404
4419
|
}
|
|
@@ -4437,7 +4452,7 @@ function un(e, t) {
|
|
|
4437
4452
|
}
|
|
4438
4453
|
return { convertToSingleControl: r, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: d, initialConditionValue: s };
|
|
4439
4454
|
}
|
|
4440
|
-
function
|
|
4455
|
+
function Mi(e, t, n) {
|
|
4441
4456
|
const o = h(null), a = h(n), l = h(0);
|
|
4442
4457
|
function i(f, c) {
|
|
4443
4458
|
let v = null;
|
|
@@ -4475,7 +4490,7 @@ const Pt = /* @__PURE__ */ Fe({
|
|
|
4475
4490
|
initialConditionValue: r,
|
|
4476
4491
|
fieldMap: d,
|
|
4477
4492
|
loadFieldConfigs: s
|
|
4478
|
-
} = i, f =
|
|
4493
|
+
} = i, f = Mi(e, t, n), {
|
|
4479
4494
|
conditionClass: c,
|
|
4480
4495
|
resizeObserver: v
|
|
4481
4496
|
} = f;
|
|
@@ -4517,10 +4532,10 @@ const Pt = /* @__PURE__ */ Fe({
|
|
|
4517
4532
|
}
|
|
4518
4533
|
}), Et = /* @__PURE__ */ new Map([
|
|
4519
4534
|
["appearance", ct]
|
|
4520
|
-
]),
|
|
4535
|
+
]), Ei = /* @__PURE__ */ new Map([]);
|
|
4521
4536
|
var cn = /* @__PURE__ */ ((e) => (e.SimpleField = "SimpleField", e.ComplexField = "ComplexField", e))(cn || {}), _t = /* @__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))(_t || {});
|
|
4522
|
-
const
|
|
4523
|
-
class
|
|
4537
|
+
const Ii = "root-viewmodel";
|
|
4538
|
+
class Vi {
|
|
4524
4539
|
constructor(t, n) {
|
|
4525
4540
|
L(this, "formSchemaUtils");
|
|
4526
4541
|
L(this, "controlCreatorUtils");
|
|
@@ -4577,7 +4592,7 @@ class Ii {
|
|
|
4577
4592
|
}), n.contents = [o];
|
|
4578
4593
|
const { selectedFields: l } = t;
|
|
4579
4594
|
l == null || l.forEach((r) => {
|
|
4580
|
-
const d =
|
|
4595
|
+
const d = Le(r), s = this.resolveControlClassByFormColumns(t), f = this.controlCreatorUtils.setFormFieldProperty(d, "", s);
|
|
4581
4596
|
f && a.push(f);
|
|
4582
4597
|
});
|
|
4583
4598
|
const { templateId: i } = this.formSchemaUtils.getFormSchema().module;
|
|
@@ -4614,7 +4629,7 @@ class Ii {
|
|
|
4614
4629
|
code: `${t.componentId}-component-viewmodel`,
|
|
4615
4630
|
name: t.componentName,
|
|
4616
4631
|
bindTo: t.bindTo,
|
|
4617
|
-
parent:
|
|
4632
|
+
parent: Ii,
|
|
4618
4633
|
fields: this.assembleViewModelFields(t),
|
|
4619
4634
|
commands: [],
|
|
4620
4635
|
states: [],
|
|
@@ -4641,7 +4656,7 @@ class Ii {
|
|
|
4641
4656
|
}), n;
|
|
4642
4657
|
}
|
|
4643
4658
|
}
|
|
4644
|
-
function
|
|
4659
|
+
function Ri(e, t, n, o) {
|
|
4645
4660
|
var l, i, r, d, s;
|
|
4646
4661
|
const a = n.parentComponentInstance;
|
|
4647
4662
|
if (a && o) {
|
|
@@ -4654,14 +4669,14 @@ function Vi(e, t, n, o) {
|
|
|
4654
4669
|
bindTo: ((d = n.bindingSourceContext) == null ? void 0 : d.bindTo) || "/",
|
|
4655
4670
|
selectedFields: (s = n.bindingSourceContext) == null ? void 0 : s.bindingEntityFields
|
|
4656
4671
|
};
|
|
4657
|
-
return new
|
|
4672
|
+
return new Vi(e, o).createComponent(v);
|
|
4658
4673
|
} else
|
|
4659
4674
|
return t;
|
|
4660
4675
|
}
|
|
4661
|
-
function
|
|
4676
|
+
function Ni(e, t, n) {
|
|
4662
4677
|
return t;
|
|
4663
4678
|
}
|
|
4664
|
-
const
|
|
4679
|
+
const Di = "https://json-schema.org/draft/2020-12/schema", Pi = "https://farris-design.gitee.io/response-form.schema.json", $i = "response-form", ji = "A Farris Data Collection Component", Hi = "object", Wi = {
|
|
4665
4680
|
id: {
|
|
4666
4681
|
description: "The unique identifier for a form group",
|
|
4667
4682
|
type: "string"
|
|
@@ -4689,23 +4704,24 @@ const Ni = "https://json-schema.org/draft/2020-12/schema", Di = "https://farris-
|
|
|
4689
4704
|
type: "array",
|
|
4690
4705
|
default: []
|
|
4691
4706
|
}
|
|
4692
|
-
},
|
|
4707
|
+
}, Ai = [
|
|
4693
4708
|
"id",
|
|
4694
|
-
"type"
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
$
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4709
|
+
"type",
|
|
4710
|
+
"contents"
|
|
4711
|
+
], Li = {
|
|
4712
|
+
$schema: Di,
|
|
4713
|
+
$id: Pi,
|
|
4714
|
+
title: $i,
|
|
4715
|
+
description: ji,
|
|
4716
|
+
type: Hi,
|
|
4717
|
+
properties: Wi,
|
|
4718
|
+
required: Ai
|
|
4719
|
+
}, Gi = {
|
|
4704
4720
|
customClass: { type: String, default: "" },
|
|
4705
4721
|
customStyle: { type: String, defaut: "" }
|
|
4706
4722
|
};
|
|
4707
|
-
ze(
|
|
4708
|
-
const
|
|
4723
|
+
ze(Gi, Li, Et, Ri);
|
|
4724
|
+
const zi = "https://json-schema.org/draft/2020-12/schema", qi = "https://farris-design.gitee.io/form-group.schema.json", Ui = "form-group", Xi = "A Farris Input Component", Yi = "object", Ki = {
|
|
4709
4725
|
id: {
|
|
4710
4726
|
description: "The unique identifier for a form group",
|
|
4711
4727
|
type: "string"
|
|
@@ -4735,7 +4751,8 @@ const Gi = "https://json-schema.org/draft/2020-12/schema", zi = "https://farris-
|
|
|
4735
4751
|
},
|
|
4736
4752
|
editor: {
|
|
4737
4753
|
description: "",
|
|
4738
|
-
type: "obejct"
|
|
4754
|
+
type: "obejct",
|
|
4755
|
+
default: {}
|
|
4739
4756
|
},
|
|
4740
4757
|
label: {
|
|
4741
4758
|
description: "",
|
|
@@ -4751,17 +4768,18 @@ const Gi = "https://json-schema.org/draft/2020-12/schema", zi = "https://farris-
|
|
|
4751
4768
|
type: "object",
|
|
4752
4769
|
default: {}
|
|
4753
4770
|
}
|
|
4754
|
-
},
|
|
4771
|
+
}, Ji = [
|
|
4755
4772
|
"id",
|
|
4756
|
-
"type"
|
|
4773
|
+
"type",
|
|
4774
|
+
"editor"
|
|
4757
4775
|
], dn = {
|
|
4758
|
-
$schema:
|
|
4759
|
-
$id:
|
|
4760
|
-
title:
|
|
4761
|
-
description:
|
|
4762
|
-
type:
|
|
4763
|
-
properties:
|
|
4764
|
-
required:
|
|
4776
|
+
$schema: zi,
|
|
4777
|
+
$id: qi,
|
|
4778
|
+
title: Ui,
|
|
4779
|
+
description: Xi,
|
|
4780
|
+
type: Yi,
|
|
4781
|
+
properties: Ki,
|
|
4782
|
+
required: Ji
|
|
4765
4783
|
}, fn = {
|
|
4766
4784
|
id: { type: String, default: "" },
|
|
4767
4785
|
customClass: { type: String, default: "" },
|
|
@@ -4783,7 +4801,7 @@ ze(
|
|
|
4783
4801
|
Et,
|
|
4784
4802
|
void 0
|
|
4785
4803
|
);
|
|
4786
|
-
function
|
|
4804
|
+
function Qi(e, t, n) {
|
|
4787
4805
|
var _;
|
|
4788
4806
|
const o = n && n.getStyles && n.getStyles() || "", a = n && n.getDesignerClass && n.getDesignerClass() || "", l = h();
|
|
4789
4807
|
function i() {
|
|
@@ -4868,7 +4886,7 @@ function Ji(e, t, n) {
|
|
|
4868
4886
|
onRemoveComponent: p
|
|
4869
4887
|
}, l;
|
|
4870
4888
|
}
|
|
4871
|
-
class
|
|
4889
|
+
class Zi {
|
|
4872
4890
|
constructor(t, n) {
|
|
4873
4891
|
L(this, "componentId");
|
|
4874
4892
|
L(this, "viewModelId");
|
|
@@ -4960,18 +4978,18 @@ class Qi {
|
|
|
4960
4978
|
const o = n && n.parent && n.parent.schema;
|
|
4961
4979
|
if (!o)
|
|
4962
4980
|
return;
|
|
4963
|
-
const a = o.contents.findIndex((i) => i.id === t), l =
|
|
4981
|
+
const a = o.contents.findIndex((i) => i.id === t), l = Le(o.contents[a]);
|
|
4964
4982
|
o.contents.splice(a, 1), o.contents.splice(a, 0, l);
|
|
4965
4983
|
}
|
|
4966
4984
|
}
|
|
4967
|
-
const
|
|
4985
|
+
const er = {
|
|
4968
4986
|
id: { type: String },
|
|
4969
4987
|
required: { type: Boolean, default: !1 },
|
|
4970
4988
|
text: { type: String, default: "" },
|
|
4971
4989
|
title: { type: String }
|
|
4972
|
-
},
|
|
4990
|
+
}, tr = /* @__PURE__ */ Fe({
|
|
4973
4991
|
name: "FDynamicFormLabel",
|
|
4974
|
-
props:
|
|
4992
|
+
props: er,
|
|
4975
4993
|
emits: [],
|
|
4976
4994
|
setup(e, t) {
|
|
4977
4995
|
const n = h(e.title || e.text), o = h(e.required), a = h(e.text);
|
|
@@ -4988,13 +5006,13 @@ const Zi = {
|
|
|
4988
5006
|
class: "farris-label-text"
|
|
4989
5007
|
}, [a.value])]);
|
|
4990
5008
|
}
|
|
4991
|
-
}),
|
|
5009
|
+
}), nr = /* @__PURE__ */ new Map([
|
|
4992
5010
|
["appearance", ct]
|
|
4993
5011
|
]);
|
|
4994
|
-
function
|
|
5012
|
+
function or(e, t, n) {
|
|
4995
5013
|
return t;
|
|
4996
5014
|
}
|
|
4997
|
-
const
|
|
5015
|
+
const ar = "https://json-schema.org/draft/2020-12/schema", lr = "https://farris-design.gitee.io/input-group.schema.json", ir = "input-group", rr = "A Farris Input Component", sr = "object", ur = {
|
|
4998
5016
|
id: {
|
|
4999
5017
|
description: "The unique identifier for a Input Group",
|
|
5000
5018
|
type: "string"
|
|
@@ -5191,23 +5209,22 @@ const or = "https://json-schema.org/draft/2020-12/schema", ar = "https://farris-
|
|
|
5191
5209
|
type: "string",
|
|
5192
5210
|
default: ""
|
|
5193
5211
|
}
|
|
5194
|
-
},
|
|
5195
|
-
"id",
|
|
5212
|
+
}, cr = [
|
|
5196
5213
|
"type"
|
|
5197
|
-
],
|
|
5214
|
+
], dr = [
|
|
5198
5215
|
"id",
|
|
5199
5216
|
"appearance",
|
|
5200
5217
|
"binding",
|
|
5201
5218
|
"visible"
|
|
5202
|
-
],
|
|
5203
|
-
$schema:
|
|
5204
|
-
$id:
|
|
5205
|
-
title:
|
|
5206
|
-
description:
|
|
5207
|
-
type:
|
|
5208
|
-
properties:
|
|
5209
|
-
required:
|
|
5210
|
-
ignore:
|
|
5219
|
+
], fr = {
|
|
5220
|
+
$schema: ar,
|
|
5221
|
+
$id: lr,
|
|
5222
|
+
title: ir,
|
|
5223
|
+
description: rr,
|
|
5224
|
+
type: sr,
|
|
5225
|
+
properties: ur,
|
|
5226
|
+
required: cr,
|
|
5227
|
+
ignore: dr
|
|
5211
5228
|
}, pn = {
|
|
5212
5229
|
id: { Type: String, default: "" },
|
|
5213
5230
|
/** 是否自动完成 */
|
|
@@ -5276,15 +5293,15 @@ const or = "https://json-schema.org/draft/2020-12/schema", ar = "https://farris-
|
|
|
5276
5293
|
*/
|
|
5277
5294
|
updateOn: { type: String, default: "blur" }
|
|
5278
5295
|
};
|
|
5279
|
-
ze(pn,
|
|
5280
|
-
function
|
|
5296
|
+
ze(pn, fr, nr, or);
|
|
5297
|
+
function pr(e, t) {
|
|
5281
5298
|
const n = h(e.groupText), o = R(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = R(() => e.enableClear || !!e.groupText);
|
|
5282
5299
|
return { appendedButtonClass: R(() => ({
|
|
5283
5300
|
"input-group-append": !0,
|
|
5284
5301
|
"append-force-show": o.value
|
|
5285
5302
|
})), appendedContent: n, shouldShowAppendedButton: a };
|
|
5286
5303
|
}
|
|
5287
|
-
function
|
|
5304
|
+
function mr(e, t, n, o) {
|
|
5288
5305
|
const { appendedContent: a } = o, l = h(e.enableViewPassword), i = R(() => e.type === "password"), r = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', d = '<span class="f-icon f-icon-eye"></span>', s = h(!1);
|
|
5289
5306
|
Z(() => [e.readonly, e.disabled], ([v, b]) => {
|
|
5290
5307
|
i.value && (n.value = v || b ? "password" : n.value, a.value = v || b ? d : a.value);
|
|
@@ -5297,7 +5314,7 @@ function pr(e, t, n, o) {
|
|
|
5297
5314
|
}
|
|
5298
5315
|
return c(), { isPassword: i, onClickAppendedButton: f };
|
|
5299
5316
|
}
|
|
5300
|
-
function
|
|
5317
|
+
function hr(e, t, n) {
|
|
5301
5318
|
const o = h(), {
|
|
5302
5319
|
onBlurTextBox: a,
|
|
5303
5320
|
onFocusTextBox: l,
|
|
@@ -5337,7 +5354,7 @@ function mr(e, t, n) {
|
|
|
5337
5354
|
onKeydown: r
|
|
5338
5355
|
}, null);
|
|
5339
5356
|
}
|
|
5340
|
-
function
|
|
5357
|
+
function vr(e, t, n) {
|
|
5341
5358
|
const {
|
|
5342
5359
|
canDownward: o,
|
|
5343
5360
|
canUpward: a,
|
|
@@ -5378,12 +5395,12 @@ function hr(e, t, n) {
|
|
|
5378
5395
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
5379
5396
|
}, null)])]);
|
|
5380
5397
|
}
|
|
5381
|
-
function
|
|
5382
|
-
const n = Io(e, t), o = Vo(e, t, n), a = Ro(e, t, o, n), l = No(e, t, o, n, a), i =
|
|
5398
|
+
function gr(e, t) {
|
|
5399
|
+
const n = Io(e, t), o = Vo(e, t, n), a = Ro(e, t, o, n), l = No(e, t, o, n, a), i = vr(e, t, a), {
|
|
5383
5400
|
displayValue: r,
|
|
5384
5401
|
modelValue: d,
|
|
5385
5402
|
getRealValue: s
|
|
5386
|
-
} = n, f =
|
|
5403
|
+
} = n, f = hr(e, t, l), {
|
|
5387
5404
|
format: c
|
|
5388
5405
|
} = o, {
|
|
5389
5406
|
isFocus: v
|
|
@@ -5402,7 +5419,7 @@ function vr(e, t) {
|
|
|
5402
5419
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
5403
5420
|
}, [f(), b.value && i()]);
|
|
5404
5421
|
}
|
|
5405
|
-
function
|
|
5422
|
+
function yr(e, t, n, o) {
|
|
5406
5423
|
const a = h(), l = h(e.autocomplete), i = h(e.enableTitle), {
|
|
5407
5424
|
isPassword: r
|
|
5408
5425
|
} = n, d = h(e.minLength), s = h(e.maxLength), f = h(e.tabIndex), {
|
|
@@ -5448,7 +5465,7 @@ function gr(e, t, n, o) {
|
|
|
5448
5465
|
onMousedown: _
|
|
5449
5466
|
}, null);
|
|
5450
5467
|
}
|
|
5451
|
-
function
|
|
5468
|
+
function br(e, t) {
|
|
5452
5469
|
const n = R(() => e.useExtendInfo && !!e.extendInfo), o = He({
|
|
5453
5470
|
content: e.extendInfo
|
|
5454
5471
|
});
|
|
@@ -5464,7 +5481,7 @@ function yr(e, t) {
|
|
|
5464
5481
|
class: "tips-arrow"
|
|
5465
5482
|
}, null)]), [[Bn("tooltip"), o]]);
|
|
5466
5483
|
}
|
|
5467
|
-
function
|
|
5484
|
+
function Cr(e, t, n, o, a) {
|
|
5468
5485
|
const {
|
|
5469
5486
|
appendedButtonClass: l,
|
|
5470
5487
|
appendedContent: i
|
|
@@ -5516,7 +5533,7 @@ function br(e, t, n, o, a) {
|
|
|
5516
5533
|
class: l.value
|
|
5517
5534
|
}, [b.value && w(), x && x()]);
|
|
5518
5535
|
}
|
|
5519
|
-
const
|
|
5536
|
+
const wr = /* @__PURE__ */ Fe({
|
|
5520
5537
|
name: "FInputGroup",
|
|
5521
5538
|
props: pn,
|
|
5522
5539
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
@@ -5525,12 +5542,12 @@ const Cr = /* @__PURE__ */ Fe({
|
|
|
5525
5542
|
inputGroupClass: l,
|
|
5526
5543
|
inputType: i,
|
|
5527
5544
|
inputGroupStyle: r
|
|
5528
|
-
} = a, d =
|
|
5545
|
+
} = a, d = pr(e), {
|
|
5529
5546
|
shouldShowAppendedButton: s
|
|
5530
5547
|
} = d, f = ko(e, t, a), {
|
|
5531
5548
|
onMouseEnter: c,
|
|
5532
5549
|
onMouseLeave: v
|
|
5533
|
-
} = f, b =
|
|
5550
|
+
} = f, b = mr(e, t, i, d), w = gr(e, t), F = yr(e, t, b, a), O = Cr(e, t, d, f, b), y = br(e, t), g = R(() => e.type === "number");
|
|
5534
5551
|
Z(() => [e.value], ([_]) => {
|
|
5535
5552
|
n.value = _, o.value = _;
|
|
5536
5553
|
}), Z(() => [e.modelValue], ([_]) => {
|
|
@@ -5538,24 +5555,24 @@ const Cr = /* @__PURE__ */ Fe({
|
|
|
5538
5555
|
}), Ve(() => {
|
|
5539
5556
|
e.value && (n.value = e.value, o.value = e.value);
|
|
5540
5557
|
});
|
|
5541
|
-
const p = () => C(
|
|
5558
|
+
const p = () => C(Ge, null, [C("div", {
|
|
5542
5559
|
id: e.id,
|
|
5543
5560
|
class: l.value,
|
|
5544
5561
|
style: r.value,
|
|
5545
5562
|
onMouseenter: c,
|
|
5546
5563
|
onMouseleave: v
|
|
5547
|
-
}, [g.value ? w() : C(
|
|
5564
|
+
}, [g.value ? w() : C(Ge, null, [y(), F(), s.value && O()])])]);
|
|
5548
5565
|
return () => p();
|
|
5549
5566
|
}
|
|
5550
5567
|
}), q = {}, U = {}, X = {}, Y = {};
|
|
5551
5568
|
let $t = !1;
|
|
5552
|
-
function
|
|
5569
|
+
function _r() {
|
|
5553
5570
|
$t || ($t = !0, Po.register(q, U, X, Y), Do.register(q, U, X, Y), $o.register(q, U, X, Y), jo.register(q, U, X, Y), Ho.register(q, U, X, Y), Wo.register(q, U, X, Y), go.register(q, U, X, Y), Ct.register(q, U, X, Y), Ao.register(q, U, X, Y), Lo.register(q, U, X, Y), zo.register(q, U, X, Y), Go.register(q, U, X, Y), qo.register(q, U, X, Y), Uo.register(q, U, X, Y), Xo.register(q, U, X, Y), wo.register(q, U, X, Y), Yo.register(q, U, X, Y), bo.register(q, U, X, Y), Ko.register(q, U, X, Y), Qo.register(q, U, X, Y), Zo.register(q, U, X, Y), ea.register(q, U, X, Y), na.register(q, U, X, Y), ta.register(q, U, X, Y), oa.register(q, U, X, Y), aa.register(q, U, X, Y), la.register(q, U, X, Y), ia.register(q, U, X, Y), Eo.register(q, U, X, Y), vo.register(q, U, X, Y), ra.register(q, U, X, Y), sa.register(q, U, X, Y), Co.register(q, U, X, Y), ua.register(q, U, X, Y), ca.register(q, U, X, Y), da.register(q, U, X, Y), fa.register(q, U, X, Y), ma.register(q, U, X, Y), ha.register(q, U, X, Y), pa.register(q, U, X, Y), Ma.register(q, U, X), va.register(q, U, X, Y), ga.register(q, U, X, Y), ya.register(q, U, X, Y), ba.register(q, U, X, Y), Ca.register(q, U, X, Y), wa.register(q, U, X, Y), ho.register(q, U, X, Y), Lt.register(q, U, X, Y), _a.register(q, U, X, Y), Sa.register(q, U, X, Y), mo.register(q, U, X, Y), xa.register(q, U, X, Y), Ta.register(q, U, X, Y), ka.register(q, U, X, Y), Fa.register(q, U, X, Y), Ba.register(q, U, X, Y), Oa.register(q, U, X, Y), Ea.register(q, U, X, Y), Jo.register(q, U, X, Y), Ia.register(q, U, X, Y));
|
|
5554
5571
|
}
|
|
5555
|
-
function
|
|
5556
|
-
|
|
5572
|
+
function Sr() {
|
|
5573
|
+
_r();
|
|
5557
5574
|
function e(a) {
|
|
5558
|
-
return q[a] ||
|
|
5575
|
+
return q[a] || wr;
|
|
5559
5576
|
}
|
|
5560
5577
|
function t(a, l) {
|
|
5561
5578
|
const i = U[a];
|
|
@@ -5635,7 +5652,7 @@ function _r() {
|
|
|
5635
5652
|
}
|
|
5636
5653
|
return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
|
|
5637
5654
|
}
|
|
5638
|
-
const
|
|
5655
|
+
const xr = /* @__PURE__ */ Fe({
|
|
5639
5656
|
name: "FDynamicFormGroup",
|
|
5640
5657
|
props: fn,
|
|
5641
5658
|
emits: ["change", "update:modelValue"],
|
|
@@ -5647,7 +5664,7 @@ const Sr = /* @__PURE__ */ Fe({
|
|
|
5647
5664
|
resolveEditorType: b,
|
|
5648
5665
|
getChangeFunctionName: w,
|
|
5649
5666
|
getClearFunctionName: F
|
|
5650
|
-
} =
|
|
5667
|
+
} = Sr(), O = R(() => ({
|
|
5651
5668
|
"form-group": !0,
|
|
5652
5669
|
"farris-form-group": !0,
|
|
5653
5670
|
"common-group": !0,
|
|
@@ -5680,7 +5697,7 @@ const Sr = /* @__PURE__ */ Fe({
|
|
|
5680
5697
|
class: "farris-group-wrap"
|
|
5681
5698
|
}, [C("div", {
|
|
5682
5699
|
class: O.value
|
|
5683
|
-
}, [s.value && C(
|
|
5700
|
+
}, [s.value && C(tr, {
|
|
5684
5701
|
id: `${n.value}-lable`,
|
|
5685
5702
|
required: d.value,
|
|
5686
5703
|
text: l.value,
|
|
@@ -5689,7 +5706,7 @@ const Sr = /* @__PURE__ */ Fe({
|
|
|
5689
5706
|
class: "farris-input-wrap"
|
|
5690
5707
|
}, [p.value()])])])]);
|
|
5691
5708
|
}
|
|
5692
|
-
}),
|
|
5709
|
+
}), kr = {}, Tr = {}, et = class et {
|
|
5693
5710
|
/**
|
|
5694
5711
|
* 根据绑定字段类型获取可用的输入类控件
|
|
5695
5712
|
*/
|
|
@@ -5761,11 +5778,11 @@ L(et, "fieldControlTypeMapping", {
|
|
|
5761
5778
|
});
|
|
5762
5779
|
let jt = et;
|
|
5763
5780
|
const gt = h(0);
|
|
5764
|
-
function
|
|
5781
|
+
function Fr(e, t) {
|
|
5765
5782
|
const n = t.getBoundingClientRect(), o = e.getBoundingClientRect(), a = o.top >= n.top, l = o.top <= n.bottom;
|
|
5766
5783
|
return a && l;
|
|
5767
5784
|
}
|
|
5768
|
-
function
|
|
5785
|
+
function Br(e) {
|
|
5769
5786
|
if (!e)
|
|
5770
5787
|
return;
|
|
5771
5788
|
let t;
|
|
@@ -5776,7 +5793,7 @@ function Fr(e) {
|
|
|
5776
5793
|
return;
|
|
5777
5794
|
const o = t.querySelector(".component-btn-group");
|
|
5778
5795
|
if (o) {
|
|
5779
|
-
if (!
|
|
5796
|
+
if (!Fr(t, e)) {
|
|
5780
5797
|
o.style.display = "none";
|
|
5781
5798
|
return;
|
|
5782
5799
|
}
|
|
@@ -5788,7 +5805,7 @@ function Fr(e) {
|
|
|
5788
5805
|
}
|
|
5789
5806
|
}
|
|
5790
5807
|
}
|
|
5791
|
-
const
|
|
5808
|
+
const Or = {
|
|
5792
5809
|
id: { type: String, default: "" },
|
|
5793
5810
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
5794
5811
|
editor: { type: Object, default: {} },
|
|
@@ -5804,12 +5821,12 @@ const Br = {
|
|
|
5804
5821
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
5805
5822
|
};
|
|
5806
5823
|
ze(
|
|
5807
|
-
|
|
5824
|
+
Or,
|
|
5808
5825
|
dn,
|
|
5809
5826
|
Et,
|
|
5810
5827
|
void 0
|
|
5811
5828
|
);
|
|
5812
|
-
const
|
|
5829
|
+
const Mr = "https://json-schema.org/draft/2020-12/schema", Er = "https://farris-design.gitee.io/grid-field-editor.schema.json", Ir = "response-form-layout-setting", Vr = "A Farris Data Grid Component", Rr = "object", Nr = {
|
|
5813
5830
|
id: {
|
|
5814
5831
|
description: "The unique identifier for a Input Group",
|
|
5815
5832
|
type: "string"
|
|
@@ -5829,18 +5846,18 @@ const Or = "https://json-schema.org/draft/2020-12/schema", Mr = "https://farris-
|
|
|
5829
5846
|
type: "Object",
|
|
5830
5847
|
default: null
|
|
5831
5848
|
}
|
|
5832
|
-
},
|
|
5849
|
+
}, Dr = [
|
|
5833
5850
|
"id",
|
|
5834
5851
|
"type"
|
|
5835
|
-
],
|
|
5836
|
-
$schema:
|
|
5837
|
-
$id:
|
|
5838
|
-
title:
|
|
5839
|
-
description:
|
|
5840
|
-
type:
|
|
5841
|
-
properties:
|
|
5842
|
-
required:
|
|
5843
|
-
},
|
|
5852
|
+
], Pr = {
|
|
5853
|
+
$schema: Mr,
|
|
5854
|
+
$id: Er,
|
|
5855
|
+
title: Ir,
|
|
5856
|
+
description: Vr,
|
|
5857
|
+
type: Rr,
|
|
5858
|
+
properties: Nr,
|
|
5859
|
+
required: Dr
|
|
5860
|
+
}, $r = {
|
|
5844
5861
|
initialState: {
|
|
5845
5862
|
type: Object,
|
|
5846
5863
|
default: {
|
|
@@ -5851,8 +5868,8 @@ const Or = "https://json-schema.org/draft/2020-12/schema", Mr = "https://farris-
|
|
|
5851
5868
|
}
|
|
5852
5869
|
}
|
|
5853
5870
|
};
|
|
5854
|
-
In(
|
|
5855
|
-
const
|
|
5871
|
+
In($r, Pr, Ei, Ni);
|
|
5872
|
+
const jr = {
|
|
5856
5873
|
width: { Type: Number, default: 400 },
|
|
5857
5874
|
type: { Type: String, default: "info" },
|
|
5858
5875
|
title: { Type: String, default: "" },
|
|
@@ -5865,12 +5882,12 @@ const $r = {
|
|
|
5865
5882
|
function It() {
|
|
5866
5883
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
5867
5884
|
}
|
|
5868
|
-
async function
|
|
5885
|
+
async function Hr(e) {
|
|
5869
5886
|
if (!navigator.clipboard)
|
|
5870
5887
|
throw It();
|
|
5871
5888
|
return navigator.clipboard.writeText(e);
|
|
5872
5889
|
}
|
|
5873
|
-
async function
|
|
5890
|
+
async function Wr(e) {
|
|
5874
5891
|
const t = document.createElement("span");
|
|
5875
5892
|
t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
|
|
5876
5893
|
const n = window.getSelection(), o = window.document.createRange();
|
|
@@ -5884,24 +5901,24 @@ async function Hr(e) {
|
|
|
5884
5901
|
if (!a)
|
|
5885
5902
|
throw It();
|
|
5886
5903
|
}
|
|
5887
|
-
async function
|
|
5904
|
+
async function Ar(e) {
|
|
5888
5905
|
try {
|
|
5889
|
-
await
|
|
5906
|
+
await Hr(e);
|
|
5890
5907
|
} catch (t) {
|
|
5891
5908
|
try {
|
|
5892
|
-
await
|
|
5909
|
+
await Wr(e);
|
|
5893
5910
|
} catch (n) {
|
|
5894
5911
|
throw n || t || It();
|
|
5895
5912
|
}
|
|
5896
5913
|
}
|
|
5897
5914
|
}
|
|
5898
|
-
function
|
|
5915
|
+
function Lr() {
|
|
5899
5916
|
async function e(t) {
|
|
5900
|
-
await
|
|
5917
|
+
await Ar(t);
|
|
5901
5918
|
}
|
|
5902
5919
|
return { onCopy: e };
|
|
5903
5920
|
}
|
|
5904
|
-
function
|
|
5921
|
+
function Gr(e, t, n, o) {
|
|
5905
5922
|
const a = h(14), l = h(140), i = h(""), r = h(o.value.length), d = R(() => o.value), s = R(() => ({
|
|
5906
5923
|
"font-size": `${a.value}px`,
|
|
5907
5924
|
height: "100%"
|
|
@@ -5912,7 +5929,7 @@ function Lr(e, t, n, o) {
|
|
|
5912
5929
|
r.value = v.length;
|
|
5913
5930
|
}
|
|
5914
5931
|
}
|
|
5915
|
-
return () => C(
|
|
5932
|
+
return () => C(Ge, null, [C("textarea", {
|
|
5916
5933
|
title: "promptMessage",
|
|
5917
5934
|
name: "promptMessage",
|
|
5918
5935
|
class: "form-control",
|
|
@@ -5926,14 +5943,14 @@ function Lr(e, t, n, o) {
|
|
|
5926
5943
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
5927
5944
|
}, [r.value + " / " + l.value])]);
|
|
5928
5945
|
}
|
|
5929
|
-
function
|
|
5930
|
-
const a =
|
|
5946
|
+
function zr(e, t, n, o) {
|
|
5947
|
+
const a = Gr(e, t, n, o), l = /* @__PURE__ */ new Map([["text-area", a]]);
|
|
5931
5948
|
function i(r) {
|
|
5932
5949
|
return l.get(r) || null;
|
|
5933
5950
|
}
|
|
5934
5951
|
return { getEditorRender: i };
|
|
5935
5952
|
}
|
|
5936
|
-
function
|
|
5953
|
+
function qr() {
|
|
5937
5954
|
const e = h(!1), t = h("复制成功");
|
|
5938
5955
|
return {
|
|
5939
5956
|
feedbackStyle: R(() => {
|
|
@@ -5959,11 +5976,11 @@ function zr() {
|
|
|
5959
5976
|
toShowFeedback: e
|
|
5960
5977
|
};
|
|
5961
5978
|
}
|
|
5962
|
-
function
|
|
5979
|
+
function Ur(e, t) {
|
|
5963
5980
|
const n = t.getEditorRender(e.promptEditorType);
|
|
5964
5981
|
return () => n && n();
|
|
5965
5982
|
}
|
|
5966
|
-
function
|
|
5983
|
+
function Xr(e) {
|
|
5967
5984
|
const t = h(3), n = h(480), o = R(() => !!e.value && !!e.value.date), a = R(() => `发生时间 : ${e.value && e.value.date || ""}`), l = R(() => !!e.value && !!e.value.detail), i = R(() => {
|
|
5968
5985
|
const O = `${n.value}px`;
|
|
5969
5986
|
return {
|
|
@@ -6008,13 +6025,13 @@ function Ur(e) {
|
|
|
6008
6025
|
style: "cursor: pointer;"
|
|
6009
6026
|
}, [f.value])])]);
|
|
6010
6027
|
}
|
|
6011
|
-
function
|
|
6028
|
+
function Yr(e) {
|
|
6012
6029
|
return () => C("p", {
|
|
6013
6030
|
class: "toast-msg-detail",
|
|
6014
6031
|
innerHTML: e.value
|
|
6015
6032
|
}, null);
|
|
6016
6033
|
}
|
|
6017
|
-
function
|
|
6034
|
+
function Kr(e, t, n, o) {
|
|
6018
6035
|
const a = h(e.exceptionInfo), l = R(() => {
|
|
6019
6036
|
const v = {
|
|
6020
6037
|
"f-icon": !0
|
|
@@ -6022,10 +6039,10 @@ function Yr(e, t, n, o) {
|
|
|
6022
6039
|
return v[b] = !0, v;
|
|
6023
6040
|
}), i = R(() => n.value || a.value && a.value.message), r = R(() => o.value), d = R(() => !!o.value), s = R(() => !!a.value);
|
|
6024
6041
|
function f() {
|
|
6025
|
-
return s.value ?
|
|
6042
|
+
return s.value ? Xr(a) : d.value ? Yr(r) : () => null;
|
|
6026
6043
|
}
|
|
6027
6044
|
const c = f();
|
|
6028
|
-
return () => C(
|
|
6045
|
+
return () => C(Ge, null, [C("div", {
|
|
6029
6046
|
class: "float-left modal-tips-iconwrap"
|
|
6030
6047
|
}, [C("span", {
|
|
6031
6048
|
class: l.value
|
|
@@ -6036,7 +6053,7 @@ function Yr(e, t, n, o) {
|
|
|
6036
6053
|
innerHTML: i.value
|
|
6037
6054
|
}, null), c()])]);
|
|
6038
6055
|
}
|
|
6039
|
-
function
|
|
6056
|
+
function Jr(e, t, n) {
|
|
6040
6057
|
const {
|
|
6041
6058
|
onCopy: o
|
|
6042
6059
|
} = t, {
|
|
@@ -6062,8 +6079,8 @@ function Kr(e, t, n) {
|
|
|
6062
6079
|
style: "cursor: pointer;"
|
|
6063
6080
|
}, [i.value])]);
|
|
6064
6081
|
}
|
|
6065
|
-
function
|
|
6066
|
-
const a = h(e.type), l = h([]), i = h(e.exceptionInfo), r = h(e.okButtonText), d = h(e.cancelButtonText), s = h(!0), f = h(!0), c = R(() => !!(l.value && l.value.length)), v = R(() => i.value && i.value.date && i.value.message && i.value.detail), b = R(() => !(l.value && l.value.length) && (r.value || d.value)), w = R(() => f.value && r.value), F = R(() => s.value && d.value), O =
|
|
6082
|
+
function Qr(e, t, n, o) {
|
|
6083
|
+
const a = h(e.type), l = h([]), i = h(e.exceptionInfo), r = h(e.okButtonText), d = h(e.cancelButtonText), s = h(!0), f = h(!0), c = R(() => !!(l.value && l.value.length)), v = R(() => i.value && i.value.date && i.value.message && i.value.detail), b = R(() => !(l.value && l.value.length) && (r.value || d.value)), w = R(() => f.value && r.value), F = R(() => s.value && d.value), O = Jr(e, n, o);
|
|
6067
6084
|
function y(p) {
|
|
6068
6085
|
a.value === "question" && t.emit("reject"), t.emit("close");
|
|
6069
6086
|
}
|
|
@@ -6090,7 +6107,7 @@ function Jr(e, t, n, o) {
|
|
|
6090
6107
|
}
|
|
6091
6108
|
const st = /* @__PURE__ */ Fe({
|
|
6092
6109
|
name: "FMessageBox",
|
|
6093
|
-
props:
|
|
6110
|
+
props: jr,
|
|
6094
6111
|
emits: ["accept", "reject", "close"],
|
|
6095
6112
|
setup(e, t) {
|
|
6096
6113
|
const n = h(e.type), o = h(e.title), a = h(e.detail), l = R(() => {
|
|
@@ -6103,7 +6120,7 @@ const st = /* @__PURE__ */ Fe({
|
|
|
6103
6120
|
}), i = R(() => {
|
|
6104
6121
|
const O = {};
|
|
6105
6122
|
return n.value === "prompt" ? O.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (O.padding = "0.5rem 1.5rem 1rem 1.5rem"), O;
|
|
6106
|
-
}), r =
|
|
6123
|
+
}), r = Lr(), d = zr(e, n, o, a), s = qr(), {
|
|
6107
6124
|
feedbackStyle: f,
|
|
6108
6125
|
feedbackMessage: c
|
|
6109
6126
|
} = s;
|
|
@@ -6115,12 +6132,12 @@ const st = /* @__PURE__ */ Fe({
|
|
|
6115
6132
|
function b() {
|
|
6116
6133
|
switch (n.value) {
|
|
6117
6134
|
case "prompt":
|
|
6118
|
-
return
|
|
6135
|
+
return Ur(e, d);
|
|
6119
6136
|
default:
|
|
6120
|
-
return
|
|
6137
|
+
return Kr(e, n, o, a);
|
|
6121
6138
|
}
|
|
6122
6139
|
}
|
|
6123
|
-
const w = b(), F =
|
|
6140
|
+
const w = b(), F = Qr(e, t, r, s);
|
|
6124
6141
|
return () => C("div", {
|
|
6125
6142
|
class: "farris-messager"
|
|
6126
6143
|
}, [C("section", {
|
|
@@ -6136,7 +6153,7 @@ class Ue {
|
|
|
6136
6153
|
}), o = !1, a = n.type === "error" || n.type === "prompt", l = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", i = n.acceptCallback || (() => {
|
|
6137
6154
|
}), r = n.rejectCallback || (() => {
|
|
6138
6155
|
});
|
|
6139
|
-
let d = null, s = new
|
|
6156
|
+
let d = null, s = new ml(d);
|
|
6140
6157
|
const f = () => {
|
|
6141
6158
|
d && (d == null || d.destroy(), s = null);
|
|
6142
6159
|
};
|
|
@@ -6226,7 +6243,7 @@ st.install = (e) => {
|
|
|
6226
6243
|
e.component(st.name, st), e.provide("FMessageBoxService", Ue);
|
|
6227
6244
|
};
|
|
6228
6245
|
var mn = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(mn || {}), hn = /* @__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))(hn || {});
|
|
6229
|
-
const
|
|
6246
|
+
const Zr = [
|
|
6230
6247
|
{
|
|
6231
6248
|
value: "0",
|
|
6232
6249
|
name: "等于"
|
|
@@ -6263,7 +6280,7 @@ const Qr = [
|
|
|
6263
6280
|
value: "8",
|
|
6264
6281
|
name: "结束是"
|
|
6265
6282
|
}
|
|
6266
|
-
],
|
|
6283
|
+
], es = {
|
|
6267
6284
|
"button-edit": ["0", "1", " 6", "7", "8"],
|
|
6268
6285
|
"check-box": ["0"],
|
|
6269
6286
|
"combo-list": ["0", "1"],
|
|
@@ -6283,14 +6300,14 @@ const Qr = [
|
|
|
6283
6300
|
"radio-group": ["0"],
|
|
6284
6301
|
text: ["0", "1", " 6", "7", "8"]
|
|
6285
6302
|
};
|
|
6286
|
-
function
|
|
6303
|
+
function ts(e, t, n) {
|
|
6287
6304
|
const { fieldMap: o } = n;
|
|
6288
6305
|
function a(l) {
|
|
6289
6306
|
const i = o.get(l.fieldCode);
|
|
6290
6307
|
if (!i)
|
|
6291
6308
|
return [];
|
|
6292
|
-
const r = i.editor.type, d = new Set(
|
|
6293
|
-
return
|
|
6309
|
+
const r = i.editor.type, d = new Set(es[r]);
|
|
6310
|
+
return Zr.filter((f) => d.has(f.value));
|
|
6294
6311
|
}
|
|
6295
6312
|
return { getCompareOperators: a };
|
|
6296
6313
|
}
|
|
@@ -6463,7 +6480,7 @@ function vn() {
|
|
|
6463
6480
|
unGroup: p
|
|
6464
6481
|
};
|
|
6465
6482
|
}
|
|
6466
|
-
function
|
|
6483
|
+
function ns(e, t, n) {
|
|
6467
6484
|
const o = h(/* @__PURE__ */ new Set()), a = h(/* @__PURE__ */ new Set()), { conditionGroupMap: l, groupParentMap: i } = n;
|
|
6468
6485
|
let r, d;
|
|
6469
6486
|
function s(y) {
|
|
@@ -6530,12 +6547,12 @@ const yt = /* @__PURE__ */ Fe({
|
|
|
6530
6547
|
unGroup: p
|
|
6531
6548
|
} = s, {
|
|
6532
6549
|
createConditionValue: _
|
|
6533
|
-
} = sn(), S =
|
|
6550
|
+
} = sn(), S = ns(e, t, s), {
|
|
6534
6551
|
selectedItems: x,
|
|
6535
6552
|
toggleSelect: B
|
|
6536
6553
|
} = S, {
|
|
6537
6554
|
getCompareOperators: m
|
|
6538
|
-
} =
|
|
6555
|
+
} = ts(e, t, a);
|
|
6539
6556
|
d(!1), i.value = l(i.value), F(o.value);
|
|
6540
6557
|
function u(N) {
|
|
6541
6558
|
var P;
|
|
@@ -6583,7 +6600,7 @@ const yt = /* @__PURE__ */ Fe({
|
|
|
6583
6600
|
onChange: (H) => k(H, j)
|
|
6584
6601
|
}, null)]), C("div", {
|
|
6585
6602
|
class: "condition-list-item-control mr-3"
|
|
6586
|
-
}, [C(
|
|
6603
|
+
}, [C(xr, {
|
|
6587
6604
|
editor: (P = r.get(j.fieldCode)) == null ? void 0 : P.editor,
|
|
6588
6605
|
showLabel: !1,
|
|
6589
6606
|
modelValue: j.value.value,
|
|
@@ -6666,7 +6683,7 @@ const yt = /* @__PURE__ */ Fe({
|
|
|
6666
6683
|
yt.install = (e) => {
|
|
6667
6684
|
e.component(Pt.name, Pt).component(yt.name, yt);
|
|
6668
6685
|
};
|
|
6669
|
-
const
|
|
6686
|
+
const os = [
|
|
6670
6687
|
"equal",
|
|
6671
6688
|
"notEqual",
|
|
6672
6689
|
"greaterThan",
|
|
@@ -6676,16 +6693,16 @@ const ns = [
|
|
|
6676
6693
|
"contain",
|
|
6677
6694
|
"startWidth",
|
|
6678
6695
|
"endWidth"
|
|
6679
|
-
],
|
|
6696
|
+
], as = {
|
|
6680
6697
|
equal: (e, t, n) => e && e[t] === n,
|
|
6681
6698
|
notEqual: (e, t, n) => e && e[t] !== n,
|
|
6682
6699
|
contain: (e, t, n) => e ? (e[t] || "").indexOf(n) > -1 : !1,
|
|
6683
6700
|
startWidth: (e, t, n) => e ? (e[t] || "").startsWith(n) : !1,
|
|
6684
6701
|
endWidth: (e, t, n) => e ? (e[t] || "").endsWith(n) : !1
|
|
6685
|
-
},
|
|
6702
|
+
}, ls = {
|
|
6686
6703
|
equal: (e, t, n) => e && e[t] === n,
|
|
6687
6704
|
notEqual: (e, t, n) => e && e[t] !== n
|
|
6688
|
-
},
|
|
6705
|
+
}, is = {
|
|
6689
6706
|
equal: (e, t, n) => {
|
|
6690
6707
|
if (e) {
|
|
6691
6708
|
const o = new Date(new Date(n).toLocaleDateString()).valueOf();
|
|
@@ -6728,10 +6745,10 @@ const ns = [
|
|
|
6728
6745
|
}
|
|
6729
6746
|
return !1;
|
|
6730
6747
|
}
|
|
6731
|
-
},
|
|
6748
|
+
}, rs = {
|
|
6732
6749
|
equal: (e, t, n) => e ? String(n).split(",").includes(String(e[t])) : !1,
|
|
6733
6750
|
notEqual: (e, t, n) => e ? String(n).split(",").findIndex((a) => a === String(e[t])) === -1 : !1
|
|
6734
|
-
},
|
|
6751
|
+
}, ss = {
|
|
6735
6752
|
equal: (e, t, n) => {
|
|
6736
6753
|
if (e) {
|
|
6737
6754
|
const o = Number.parseFloat(String(n)), a = Number.parseFloat(String(e[t]));
|
|
@@ -6777,11 +6794,11 @@ const ns = [
|
|
|
6777
6794
|
};
|
|
6778
6795
|
function gn() {
|
|
6779
6796
|
const e = h([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } = vn(), o = /* @__PURE__ */ new Map([
|
|
6780
|
-
["boolean",
|
|
6781
|
-
["datetime",
|
|
6782
|
-
["enum",
|
|
6783
|
-
["number",
|
|
6784
|
-
["text",
|
|
6797
|
+
["boolean", ls],
|
|
6798
|
+
["datetime", is],
|
|
6799
|
+
["enum", rs],
|
|
6800
|
+
["number", ss],
|
|
6801
|
+
["text", as]
|
|
6785
6802
|
]);
|
|
6786
6803
|
function a(c) {
|
|
6787
6804
|
t.delete(c), e.value = Array.from(t.values());
|
|
@@ -6790,7 +6807,7 @@ function gn() {
|
|
|
6790
6807
|
t.clear(), e.value = [];
|
|
6791
6808
|
}
|
|
6792
6809
|
function i(c) {
|
|
6793
|
-
const { valueType: v } = c.value, b = c.compareType || "0", w =
|
|
6810
|
+
const { valueType: v } = c.value, b = c.compareType || "0", w = os[Number(b)];
|
|
6794
6811
|
return o.get(v)[w];
|
|
6795
6812
|
}
|
|
6796
6813
|
function r(c) {
|
|
@@ -6905,7 +6922,7 @@ function yn(e, t) {
|
|
|
6905
6922
|
}
|
|
6906
6923
|
return { collpaseGroupIconClass: O, generateGroupData: F, groupFields: l, shouldGroupingData: i, showGroupPanel: r };
|
|
6907
6924
|
}
|
|
6908
|
-
function
|
|
6925
|
+
function us(e, t, n, o) {
|
|
6909
6926
|
const a = h(!!e.hierarchy), { idField: l } = o, { collapseField: i, hasChildrenField: r, parentIdField: d } = n, s = /* @__PURE__ */ new Map();
|
|
6910
6927
|
function f(E, D) {
|
|
6911
6928
|
const T = /* @__PURE__ */ new Map();
|
|
@@ -7049,7 +7066,7 @@ function ss(e, t, n, o) {
|
|
|
7049
7066
|
}
|
|
7050
7067
|
return { generateHierarchyData: m, hasRealChildren: x, insertSibling: u, insertChild: k, shouldStratifyData: a, trimmedOriginalData: M };
|
|
7051
7068
|
}
|
|
7052
|
-
const
|
|
7069
|
+
const cs = {
|
|
7053
7070
|
showCloseButton: { type: Boolean, default: !0 },
|
|
7054
7071
|
position: { type: String, default: "top-center" },
|
|
7055
7072
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -7061,13 +7078,13 @@ const us = {
|
|
|
7061
7078
|
id: { type: String },
|
|
7062
7079
|
animate: { type: String, default: "fadeIn" },
|
|
7063
7080
|
options: { type: Object }
|
|
7064
|
-
},
|
|
7081
|
+
}, ds = {
|
|
7065
7082
|
showCloseButton: { type: Boolean, default: !0 },
|
|
7066
7083
|
animate: { type: String, default: "fadeIn" },
|
|
7067
7084
|
options: { type: Object }
|
|
7068
7085
|
}, St = /* @__PURE__ */ Fe({
|
|
7069
7086
|
name: "Toast",
|
|
7070
|
-
props:
|
|
7087
|
+
props: ds,
|
|
7071
7088
|
emits: ["close", "click"],
|
|
7072
7089
|
setup: (e, t) => {
|
|
7073
7090
|
const n = h(e.animate), o = "fadeOut", a = R(() => e.options), l = h(!1), i = R(() => {
|
|
@@ -7097,7 +7114,7 @@ const us = {
|
|
|
7097
7114
|
});
|
|
7098
7115
|
const O = () => {
|
|
7099
7116
|
var y;
|
|
7100
|
-
return C(
|
|
7117
|
+
return C(Ge, null, [C("div", {
|
|
7101
7118
|
class: "after-toast-msg text-right"
|
|
7102
7119
|
}, [!t.slots.default && ((y = a.value.buttons) == null ? void 0 : y.map((g) => C("span", {
|
|
7103
7120
|
class: F(g),
|
|
@@ -7120,7 +7137,7 @@ const us = {
|
|
|
7120
7137
|
class: r.value
|
|
7121
7138
|
}, null)]), C("div", {
|
|
7122
7139
|
class: "modal-tips-content"
|
|
7123
|
-
}, [s.value && C(
|
|
7140
|
+
}, [s.value && C(Ge, null, [C("h5", {
|
|
7124
7141
|
class: "toast-title modal-tips-title",
|
|
7125
7142
|
innerHTML: a.value.title
|
|
7126
7143
|
}, null), C("p", {
|
|
@@ -7140,7 +7157,7 @@ const us = {
|
|
|
7140
7157
|
}
|
|
7141
7158
|
}), ut = /* @__PURE__ */ Fe({
|
|
7142
7159
|
name: "Notify",
|
|
7143
|
-
props:
|
|
7160
|
+
props: cs,
|
|
7144
7161
|
emits: ["close", "empty"],
|
|
7145
7162
|
setup(e, t) {
|
|
7146
7163
|
const n = R(() => ({
|
|
@@ -7296,22 +7313,22 @@ class Vt {
|
|
|
7296
7313
|
}), this.notifyRefs.length = 0;
|
|
7297
7314
|
}
|
|
7298
7315
|
}
|
|
7299
|
-
const
|
|
7316
|
+
const fs = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
7300
7317
|
ut.install = (e) => {
|
|
7301
7318
|
e.component(ut.name, ut), e.component(St.name, St);
|
|
7302
7319
|
const t = new Vt();
|
|
7303
|
-
e.provide(
|
|
7320
|
+
e.provide(fs, t), e.provide("FNotifyService", t);
|
|
7304
7321
|
};
|
|
7305
|
-
function
|
|
7322
|
+
function ps(e, t, n, o, a) {
|
|
7306
7323
|
var it;
|
|
7307
|
-
const { pageSize: l, total: i, shouldRenderPagination: r, currentPage: d, mode: s } = a, f = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), F = h([]), O = h([]), y = gn(), g = yn(e, o), { generateGroupData: p, groupFields: _, shouldGroupingData: S } = g, x = h(e.data), B =
|
|
7324
|
+
const { pageSize: l, total: i, shouldRenderPagination: r, currentPage: d, mode: s } = a, f = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), F = h([]), O = h([]), y = gn(), g = yn(e, o), { generateGroupData: p, groupFields: _, shouldGroupingData: S } = g, x = h(e.data), B = us(e, x, n, o), {
|
|
7308
7325
|
generateHierarchyData: m,
|
|
7309
7326
|
hasRealChildren: u,
|
|
7310
7327
|
insertSibling: k,
|
|
7311
7328
|
insertChild: M,
|
|
7312
7329
|
shouldStratifyData: E,
|
|
7313
7330
|
trimmedOriginalData: D
|
|
7314
|
-
} = B, { idField: T, reviseIdentifyField: I } = o, $ = h(e.newDataItem), V = h(e.data), N = h(e.data), { flatTreeData: j } =
|
|
7331
|
+
} = B, { idField: T, reviseIdentifyField: I } = o, $ = h(e.newDataItem), V = h(e.data), N = h(e.data), { flatTreeData: j } = $s(e);
|
|
7315
7332
|
function P(W) {
|
|
7316
7333
|
return j(W);
|
|
7317
7334
|
}
|
|
@@ -7333,7 +7350,7 @@ function fs(e, t, n, o, a) {
|
|
|
7333
7350
|
});
|
|
7334
7351
|
function Ce() {
|
|
7335
7352
|
var Ie, ie;
|
|
7336
|
-
V.value =
|
|
7353
|
+
V.value = Le(x.value), S.value && (V.value = p(_.value, x.value, t)), ne = K.value.reduce((Ee, ye) => (Ee.set(ye, 0), Ee), ne);
|
|
7337
7354
|
const W = we.value, Q = be.value;
|
|
7338
7355
|
let le = 0;
|
|
7339
7356
|
const Te = [];
|
|
@@ -7440,7 +7457,7 @@ function fs(e, t, n, o, a) {
|
|
|
7440
7457
|
(W - 1) * l.value <= ce.value && ge();
|
|
7441
7458
|
}
|
|
7442
7459
|
function te(W) {
|
|
7443
|
-
x.value.push(
|
|
7460
|
+
x.value.push(Le(W)), de.value = Ce();
|
|
7444
7461
|
}
|
|
7445
7462
|
function se(W = 0) {
|
|
7446
7463
|
if (!(W > -1))
|
|
@@ -7527,7 +7544,7 @@ function fs(e, t, n, o, a) {
|
|
|
7527
7544
|
originalData: x
|
|
7528
7545
|
};
|
|
7529
7546
|
}
|
|
7530
|
-
function
|
|
7547
|
+
function ms() {
|
|
7531
7548
|
function t(i) {
|
|
7532
7549
|
return i.field;
|
|
7533
7550
|
}
|
|
@@ -7551,7 +7568,7 @@ function ps() {
|
|
|
7551
7568
|
}
|
|
7552
7569
|
return { getFilterHistory: n, removeFilterHistory: l, setFilterHistory: o, updateFilterHistory: a };
|
|
7553
7570
|
}
|
|
7554
|
-
function
|
|
7571
|
+
function hs(e) {
|
|
7555
7572
|
h(e.selection.showCheckbox || !1);
|
|
7556
7573
|
const t = R(() => {
|
|
7557
7574
|
var i;
|
|
@@ -7565,7 +7582,7 @@ function ms(e) {
|
|
|
7565
7582
|
}), a = R(() => e.hierarchy && e.selection.showCheckbox), l = R(() => (e.treeNodeIconsData.fold || e.iconField) && e.showTreeNodeIcons);
|
|
7566
7583
|
return { collapseField: t, hasChildrenField: n, parentIdField: o, shouldShowCheckBox: a, shouldShowIcon: l };
|
|
7567
7584
|
}
|
|
7568
|
-
function
|
|
7585
|
+
function vs(e, t, n, o) {
|
|
7569
7586
|
var F, O, y, g, p, _;
|
|
7570
7587
|
const { idField: a } = n, l = h(((O = (F = e.hierarchy) == null ? void 0 : F.cascadeOption) == null ? void 0 : O.autoCheckChildren) || !1), i = h(((g = (y = e.hierarchy) == null ? void 0 : y.cascadeOption) == null ? void 0 : g.autoCheckParent) || !1), r = h(((_ = (p = e.hierarchy) == null ? void 0 : p.cascadeOption) == null ? void 0 : _.selectionRange) || "All");
|
|
7571
7588
|
Z(() => {
|
|
@@ -7608,8 +7625,8 @@ function hs(e, t, n, o) {
|
|
|
7608
7625
|
}
|
|
7609
7626
|
return { autoCheckChildren: l, autoCheckParent: i, interactAfterCheckHierarchyItem: w };
|
|
7610
7627
|
}
|
|
7611
|
-
function
|
|
7612
|
-
const { select: l, unSelect: i, indeterminate: r, getSelectedItems: d, selectedValues: s, currentSelectedDataId: f } = o, { autoCheckChildren: c, autoCheckParent: v, interactAfterCheckHierarchyItem: b } =
|
|
7628
|
+
function gs(e, t, n, o, a) {
|
|
7629
|
+
const { select: l, unSelect: i, indeterminate: r, getSelectedItems: d, selectedValues: s, currentSelectedDataId: f } = o, { autoCheckChildren: c, autoCheckParent: v, interactAfterCheckHierarchyItem: b } = vs(e, t, n), { idField: w } = n;
|
|
7613
7630
|
function F() {
|
|
7614
7631
|
return t.value.filter((m) => !!m.checked).map((m) => m.raw.__fv_index__);
|
|
7615
7632
|
}
|
|
@@ -7659,7 +7676,7 @@ function vs(e, t, n, o, a) {
|
|
|
7659
7676
|
}
|
|
7660
7677
|
return { getNextSelectableHierarchyItemId: B, toggleSelectHierarchyItem: _ };
|
|
7661
7678
|
}
|
|
7662
|
-
function
|
|
7679
|
+
function ys(e, t, n, o, a, l, i, r) {
|
|
7663
7680
|
var je;
|
|
7664
7681
|
const { dataView: d } = t, { getVisualData: s, maxVisibleRowIndex: f, minVisibleRowIndex: c } = a, v = h(o.value.primaryColumnsWidth), b = h(o.value.leftColumnsWidth), w = h(o.value.rightColumnsWidth), F = ((je = e.rowOption) == null ? void 0 : je.height) || 28, O = h(0), y = h(0);
|
|
7665
7682
|
let g = 0, p = l.value - 1;
|
|
@@ -7818,7 +7835,7 @@ function gs(e, t, n, o, a, l, i, r) {
|
|
|
7818
7835
|
offsetY: O
|
|
7819
7836
|
};
|
|
7820
7837
|
}
|
|
7821
|
-
function
|
|
7838
|
+
function bs(e, t, n, o, a, l, i, r) {
|
|
7822
7839
|
const d = h(o.value - 1 + a), s = h(0), { renderDataRow: f } = l, c = f, v = f;
|
|
7823
7840
|
function b(O) {
|
|
7824
7841
|
let y = f;
|
|
@@ -7843,7 +7860,7 @@ function ys(e, t, n, o, a, l, i, r) {
|
|
|
7843
7860
|
}
|
|
7844
7861
|
return { getVisualData: w, maxVisibleRowIndex: d, minVisibleRowIndex: s, toggleGroupRow: F };
|
|
7845
7862
|
}
|
|
7846
|
-
function
|
|
7863
|
+
function Cs() {
|
|
7847
7864
|
function e(t, n) {
|
|
7848
7865
|
const {
|
|
7849
7866
|
formatter: o
|
|
@@ -7854,7 +7871,7 @@ function bs() {
|
|
|
7854
7871
|
renderEnumColumn: e
|
|
7855
7872
|
};
|
|
7856
7873
|
}
|
|
7857
|
-
function
|
|
7874
|
+
function ws() {
|
|
7858
7875
|
function e(o, a) {
|
|
7859
7876
|
return o ? C("span", {
|
|
7860
7877
|
innerHTML: a.formatter.trueText
|
|
@@ -7879,7 +7896,7 @@ function Cs() {
|
|
|
7879
7896
|
renderBooleanColumn: n
|
|
7880
7897
|
};
|
|
7881
7898
|
}
|
|
7882
|
-
function
|
|
7899
|
+
function _s() {
|
|
7883
7900
|
const {
|
|
7884
7901
|
formatTo: e
|
|
7885
7902
|
} = To();
|
|
@@ -7894,7 +7911,7 @@ function ws() {
|
|
|
7894
7911
|
renderDateColumn: n
|
|
7895
7912
|
};
|
|
7896
7913
|
}
|
|
7897
|
-
function
|
|
7914
|
+
function Ss() {
|
|
7898
7915
|
const {
|
|
7899
7916
|
formatTo: e
|
|
7900
7917
|
} = Fo();
|
|
@@ -7918,16 +7935,16 @@ function _s() {
|
|
|
7918
7935
|
renderNumberColumn: n
|
|
7919
7936
|
};
|
|
7920
7937
|
}
|
|
7921
|
-
function
|
|
7938
|
+
function xs() {
|
|
7922
7939
|
const {
|
|
7923
7940
|
renderBooleanColumn: e
|
|
7924
|
-
} =
|
|
7941
|
+
} = ws(), {
|
|
7925
7942
|
renderEnumColumn: t
|
|
7926
|
-
} =
|
|
7943
|
+
} = Cs(), {
|
|
7927
7944
|
renderNumberColumn: n
|
|
7928
|
-
} =
|
|
7945
|
+
} = Ss(), {
|
|
7929
7946
|
renderDateColumn: o
|
|
7930
|
-
} =
|
|
7947
|
+
} = _s();
|
|
7931
7948
|
function a(r) {
|
|
7932
7949
|
return r;
|
|
7933
7950
|
}
|
|
@@ -7947,9 +7964,9 @@ function Ss() {
|
|
|
7947
7964
|
renderFormatColumn: i
|
|
7948
7965
|
};
|
|
7949
7966
|
}
|
|
7950
|
-
function
|
|
7967
|
+
function ks(e, t, n) {
|
|
7951
7968
|
var O;
|
|
7952
|
-
const o = h(e.mergeCell), l = ((O = h(e.rowOption).value) == null ? void 0 : O.wrapContent) || !1, { updateVisualInfomation: i } = n, { renderCommandColumn: r } =
|
|
7969
|
+
const o = h(e.mergeCell), l = ((O = h(e.rowOption).value) == null ? void 0 : O.wrapContent) || !1, { updateVisualInfomation: i } = n, { renderCommandColumn: r } = ti(), { renderFormatColumn: d } = xs();
|
|
7953
7970
|
function s(y, g, p, _, S, x = 1) {
|
|
7954
7971
|
const B = {
|
|
7955
7972
|
colSpan: x,
|
|
@@ -8009,7 +8026,7 @@ function xs(e, t, n) {
|
|
|
8009
8026
|
}
|
|
8010
8027
|
return { createCellByColumn: F, createCellByField: s };
|
|
8011
8028
|
}
|
|
8012
|
-
function
|
|
8029
|
+
function Ts(e, t, n, o, a, l) {
|
|
8013
8030
|
var y, g;
|
|
8014
8031
|
const i = h(e.rowOption), r = ((y = i.value) == null ? void 0 : y.height) || 28, d = ((g = i.value) == null ? void 0 : g.wrapContent) || !1, { idField: s } = o, { collapseField: f } = n, { updateRowPosition: c } = a, { createCellByColumn: v } = l;
|
|
8015
8032
|
function b(p, _, S, x, B, m, u) {
|
|
@@ -8067,7 +8084,7 @@ function ks(e, t, n, o, a, l) {
|
|
|
8067
8084
|
}
|
|
8068
8085
|
return { createEmptyRow: b, createNewRowFromDataItem: w, renderDataRow: O };
|
|
8069
8086
|
}
|
|
8070
|
-
function
|
|
8087
|
+
function Fs(e, t, n) {
|
|
8071
8088
|
var m;
|
|
8072
8089
|
const {
|
|
8073
8090
|
idField: o
|
|
@@ -8151,7 +8168,7 @@ function Ts(e, t, n) {
|
|
|
8151
8168
|
getEditor: B
|
|
8152
8169
|
};
|
|
8153
8170
|
}
|
|
8154
|
-
function
|
|
8171
|
+
function Bs(e) {
|
|
8155
8172
|
const t = h(e.idField);
|
|
8156
8173
|
function n(o) {
|
|
8157
8174
|
if (o && o.length) {
|
|
@@ -8161,7 +8178,7 @@ function Fs(e) {
|
|
|
8161
8178
|
}
|
|
8162
8179
|
return { idField: t, reviseIdentifyField: n };
|
|
8163
8180
|
}
|
|
8164
|
-
function
|
|
8181
|
+
function Os(e, t, n, o) {
|
|
8165
8182
|
const { idField: a } = o, {
|
|
8166
8183
|
currentSelectedDataId: l,
|
|
8167
8184
|
multiSelectOnClickRow: i,
|
|
@@ -8241,7 +8258,7 @@ function Bs(e, t, n, o) {
|
|
|
8241
8258
|
onMouseoutRow: _
|
|
8242
8259
|
};
|
|
8243
8260
|
}
|
|
8244
|
-
function
|
|
8261
|
+
function Ms(e, t, n, o, a) {
|
|
8245
8262
|
const { idField: l } = n, i = h(""), r = R(() => e.selection.enableSelectRow), d = h(e.selection.multiSelect ?? !1), s = h(e.selection.multiSelectMode), f = h(e.selection.showCheckbox), c = h(e.selection.showSelectAll), v = h(e.selectionValues);
|
|
8246
8263
|
Z(() => e.selection.showSelectAll, (P, H) => {
|
|
8247
8264
|
P !== H && (c.value = P);
|
|
@@ -8359,7 +8376,7 @@ function Os(e, t, n, o, a) {
|
|
|
8359
8376
|
unSelectAll: N
|
|
8360
8377
|
};
|
|
8361
8378
|
}
|
|
8362
|
-
function
|
|
8379
|
+
function Es(e, t) {
|
|
8363
8380
|
var O, y;
|
|
8364
8381
|
const n = String(Date.now()), o = 50, { showCheckBox: a, showSelectAll: l } = t, i = h(((O = e.rowNumber) == null ? void 0 : O.enable) ?? !1), r = R(() => e.hierarchy && a.value && e.selection.enableSelectRow && e.selection.multiSelect ? !1 : a.value), d = h(i.value ? ((y = e.rowNumber) == null ? void 0 : y.width) ?? 32 : 0), s = h(r.value ? o : 0), f = R(() => {
|
|
8365
8382
|
var g;
|
|
@@ -8386,10 +8403,10 @@ function Ms(e, t) {
|
|
|
8386
8403
|
}
|
|
8387
8404
|
return { showRowNumer: i, showSidebarCheckBox: r, sidebarCellPosition: v, sidebarCornerCellStyle: b, sidebarTitle: f, sidebarWidth: c, rowKey: F, cellKey: w };
|
|
8388
8405
|
}
|
|
8389
|
-
const
|
|
8406
|
+
const Is = {
|
|
8390
8407
|
ascend: (e, t) => e === t ? 0 : e === !1 ? -1 : 1,
|
|
8391
8408
|
decend: (e, t) => e === t ? 0 : e === !0 ? -1 : 1
|
|
8392
|
-
},
|
|
8409
|
+
}, Vs = {
|
|
8393
8410
|
ascend: (e, t) => {
|
|
8394
8411
|
const n = new Date(new Date(e).toLocaleDateString()).valueOf(), o = new Date(new Date(t).toLocaleDateString()).valueOf();
|
|
8395
8412
|
return n === o ? 0 : n < o ? -1 : 1;
|
|
@@ -8398,14 +8415,14 @@ const Es = {
|
|
|
8398
8415
|
const n = new Date(new Date(e).toLocaleDateString()).valueOf(), o = new Date(new Date(t).toLocaleDateString()).valueOf();
|
|
8399
8416
|
return n === o ? 0 : n < o ? 1 : -1;
|
|
8400
8417
|
}
|
|
8401
|
-
},
|
|
8418
|
+
}, Rs = {
|
|
8402
8419
|
ascend: (e, t) => e === t ? 0 : e < t ? -1 : 1,
|
|
8403
8420
|
decend: (e, t) => e === t ? 0 : e < t ? 1 : -1
|
|
8404
|
-
},
|
|
8421
|
+
}, Ns = {
|
|
8405
8422
|
ascend: (e, t) => e === t ? 0 : e < t ? -1 : 1,
|
|
8406
8423
|
decend: (e, t) => e === t ? 0 : e < t ? 1 : -1
|
|
8407
8424
|
};
|
|
8408
|
-
function
|
|
8425
|
+
function Ds(e) {
|
|
8409
8426
|
const t = /* @__PURE__ */ new Map([
|
|
8410
8427
|
["boolean", "boolean-sorter"],
|
|
8411
8428
|
["date", "datetime-sorter"],
|
|
@@ -8416,10 +8433,10 @@ function Ns(e) {
|
|
|
8416
8433
|
["enum", "text-sorter"],
|
|
8417
8434
|
["reference", "text-sorter"]
|
|
8418
8435
|
]), n = /* @__PURE__ */ new Map([
|
|
8419
|
-
["boolean-sorter",
|
|
8420
|
-
["datetime-sorter",
|
|
8421
|
-
["numeric-sorter",
|
|
8422
|
-
["text-sorter",
|
|
8436
|
+
["boolean-sorter", Is],
|
|
8437
|
+
["datetime-sorter", Vs],
|
|
8438
|
+
["numeric-sorter", Rs],
|
|
8439
|
+
["text-sorter", Ns]
|
|
8423
8440
|
]);
|
|
8424
8441
|
function o(i) {
|
|
8425
8442
|
const r = (i == null ? void 0 : i.dataType) || "string", d = t.get(r) || "text-sorter";
|
|
@@ -8441,7 +8458,7 @@ function Ns(e) {
|
|
|
8441
8458
|
function qe(e) {
|
|
8442
8459
|
return typeof e > "u";
|
|
8443
8460
|
}
|
|
8444
|
-
function
|
|
8461
|
+
function Ps(e) {
|
|
8445
8462
|
var c, v, b, w, F, O, y, g;
|
|
8446
8463
|
const t = h((c = e.pagination) == null ? void 0 : c.enable), n = h(((v = e.pagination) == null ? void 0 : v.index) || 1), o = h((b = e.pagination) == null ? void 0 : b.size), a = h((w = e.pagination) == null ? void 0 : w.sizeLimits), l = h((F = e.pagination) == null ? void 0 : F.mode), i = h((O = e.pagination) == null ? void 0 : O.showIndex), r = h((y = e.pagination) == null ? void 0 : y.showLimits), d = h(((g = e.pagination) == null ? void 0 : g.total) || 0), s = h(d.value || e.data.length || 0);
|
|
8447
8464
|
return Z(() => {
|
|
@@ -8490,7 +8507,7 @@ function Ds(e) {
|
|
|
8490
8507
|
}
|
|
8491
8508
|
};
|
|
8492
8509
|
}
|
|
8493
|
-
function
|
|
8510
|
+
function $s(e) {
|
|
8494
8511
|
const t = "parent", n = "layer", o = "hasChildren", a = (l, i = 1, r = [], d = null) => (l = l || [], l.reduce((s, f) => (f.id = f.id || f.data[e.idField], f[t] = d, f[n] = i, f[o] = !1, f = { ...f, ...f.data }, r.push(f), f.children && f.children.length && (f[o] = !0, a(f.children, i + 1, r, f.id)), s), r), r);
|
|
8495
8512
|
return { flatTreeData: a };
|
|
8496
8513
|
}
|
|
@@ -8507,7 +8524,7 @@ function bn(e, t, n, o, a, l, i, r, d, s, f, c, v, b, w, F) {
|
|
|
8507
8524
|
rightFixedGridDataStyle: x
|
|
8508
8525
|
} = b, {
|
|
8509
8526
|
renderDataRow: B
|
|
8510
|
-
} =
|
|
8527
|
+
} = Jl(e, t, y, F, r, d, s, f, c, v), m = [B];
|
|
8511
8528
|
function u(T, I) {
|
|
8512
8529
|
const $ = O(T);
|
|
8513
8530
|
return F.value.filter((V) => V.visible !== !1).map((V) => m[V.type](V, $, I, T));
|
|
@@ -8687,7 +8704,7 @@ const lt = /* @__PURE__ */ Fe({
|
|
|
8687
8704
|
}
|
|
8688
8705
|
}, [ge(s), he(), je(), J()]), ae(), e.disabled && Re()]);
|
|
8689
8706
|
}
|
|
8690
|
-
}),
|
|
8707
|
+
}), js = "https://json-schema.org/draft/2020-12/schema", Hs = "https://farris-design.gitee.io/check-box.schema.json", Ws = "check-box", As = "A Farris Input Component", Ls = "object", Gs = {
|
|
8691
8708
|
id: {
|
|
8692
8709
|
description: "The unique identifier for a check box",
|
|
8693
8710
|
type: "string"
|
|
@@ -8754,27 +8771,26 @@ const lt = /* @__PURE__ */ Fe({
|
|
|
8754
8771
|
type: "boolean",
|
|
8755
8772
|
default: !0
|
|
8756
8773
|
}
|
|
8757
|
-
},
|
|
8758
|
-
"id",
|
|
8774
|
+
}, zs = [
|
|
8759
8775
|
"type"
|
|
8760
|
-
],
|
|
8776
|
+
], qs = [
|
|
8761
8777
|
"id",
|
|
8762
8778
|
"appearance",
|
|
8763
8779
|
"binding",
|
|
8764
8780
|
"visible"
|
|
8765
|
-
],
|
|
8766
|
-
$schema:
|
|
8767
|
-
$id:
|
|
8768
|
-
title:
|
|
8769
|
-
description:
|
|
8770
|
-
type:
|
|
8771
|
-
properties:
|
|
8772
|
-
required:
|
|
8773
|
-
ignore:
|
|
8774
|
-
},
|
|
8781
|
+
], Us = {
|
|
8782
|
+
$schema: js,
|
|
8783
|
+
$id: Hs,
|
|
8784
|
+
title: Ws,
|
|
8785
|
+
description: As,
|
|
8786
|
+
type: Ls,
|
|
8787
|
+
properties: Gs,
|
|
8788
|
+
required: zs,
|
|
8789
|
+
ignore: qs
|
|
8790
|
+
}, Xs = /* @__PURE__ */ new Map([
|
|
8775
8791
|
["appearance", ct]
|
|
8776
8792
|
]);
|
|
8777
|
-
function
|
|
8793
|
+
function Ys(e, t, n) {
|
|
8778
8794
|
return t;
|
|
8779
8795
|
}
|
|
8780
8796
|
const Cn = {
|
|
@@ -8805,8 +8821,8 @@ const Cn = {
|
|
|
8805
8821
|
/** 标识是否被选中 */
|
|
8806
8822
|
checked: { type: Boolean, default: !1 }
|
|
8807
8823
|
};
|
|
8808
|
-
ze(Cn,
|
|
8809
|
-
const
|
|
8824
|
+
ze(Cn, Us, Xs, Ys);
|
|
8825
|
+
const Ks = /* @__PURE__ */ Fe({
|
|
8810
8826
|
name: "FCheckBox",
|
|
8811
8827
|
props: Cn,
|
|
8812
8828
|
emits: ["change", "changeValue", "update:modelValue", "update:checked"],
|
|
@@ -8837,7 +8853,7 @@ const Ys = /* @__PURE__ */ Fe({
|
|
|
8837
8853
|
}), Ve(() => {
|
|
8838
8854
|
}), () => {
|
|
8839
8855
|
var O, y, g, p, _, S;
|
|
8840
|
-
return C(
|
|
8856
|
+
return C(Ge, null, [i.value && C("div", {
|
|
8841
8857
|
class: o.value,
|
|
8842
8858
|
style: "border-radius:0;border: 1px solid #E8EBF2;",
|
|
8843
8859
|
onClick: c
|
|
@@ -8867,7 +8883,7 @@ const Ys = /* @__PURE__ */ Fe({
|
|
|
8867
8883
|
}, [(S = (_ = t.slots).default) == null ? void 0 : S.call(_)])])]);
|
|
8868
8884
|
};
|
|
8869
8885
|
}
|
|
8870
|
-
}),
|
|
8886
|
+
}), Js = {
|
|
8871
8887
|
id: { type: String, default: "" },
|
|
8872
8888
|
componentId: { type: String, default: "" },
|
|
8873
8889
|
type: { type: String, default: "" },
|
|
@@ -8882,11 +8898,11 @@ const Ys = /* @__PURE__ */ Fe({
|
|
|
8882
8898
|
*/
|
|
8883
8899
|
modelValue: { type: Object },
|
|
8884
8900
|
ignore: { type: Boolean, default: !1 }
|
|
8885
|
-
},
|
|
8901
|
+
}, Qs = {
|
|
8886
8902
|
id: { type: String }
|
|
8887
|
-
},
|
|
8903
|
+
}, Zs = /* @__PURE__ */ Fe({
|
|
8888
8904
|
name: "FDesignerPlaceholder",
|
|
8889
|
-
props:
|
|
8905
|
+
props: Qs,
|
|
8890
8906
|
emits: [],
|
|
8891
8907
|
setup(e) {
|
|
8892
8908
|
const t = R(() => ({
|
|
@@ -8915,12 +8931,12 @@ const Ys = /* @__PURE__ */ Fe({
|
|
|
8915
8931
|
}, [Pe("拖拽组件到这里")]);
|
|
8916
8932
|
}
|
|
8917
8933
|
});
|
|
8918
|
-
function
|
|
8934
|
+
function eu(e) {
|
|
8919
8935
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Mn(e);
|
|
8920
8936
|
}
|
|
8921
8937
|
const xt = /* @__PURE__ */ Fe({
|
|
8922
8938
|
name: "FDesignerItem",
|
|
8923
|
-
props:
|
|
8939
|
+
props: Js,
|
|
8924
8940
|
emits: ["selectionChange"],
|
|
8925
8941
|
setup(e, t) {
|
|
8926
8942
|
const n = h(`${e.modelValue.id}-component`), o = h(e.canMove), a = h(e.canDelete), l = h(!1), i = h(e.modelValue), r = h(e.componentId || ""), d = h(""), s = h(""), f = h(e.customClass), c = h(), v = Ye("canvas-dragula"), b = h(), w = Ye("design-item-context"), F = {
|
|
@@ -9017,12 +9033,12 @@ const xt = /* @__PURE__ */ Fe({
|
|
|
9017
9033
|
}
|
|
9018
9034
|
function u(T) {
|
|
9019
9035
|
let I;
|
|
9020
|
-
const $ = T.type, V =
|
|
9036
|
+
const $ = T.type, V = kr[$], N = Tr[$], j = N ? N(T) : {};
|
|
9021
9037
|
j.customClass = e.ignore ? j.customClass : "", j.componentId = r.value, j.id = T.id;
|
|
9022
9038
|
const P = T.contents && T.contents.length === 0;
|
|
9023
9039
|
return T.contents && !!T.contents.length && V ? C(V, Xe({
|
|
9024
9040
|
ref: b
|
|
9025
|
-
}, j),
|
|
9041
|
+
}, j), eu(I = T.contents.map((K) => C(xt, {
|
|
9026
9042
|
key: K.id,
|
|
9027
9043
|
modelValue: K,
|
|
9028
9044
|
"onUpdate:modelValue": (ne) => K = ne,
|
|
@@ -9033,7 +9049,7 @@ const xt = /* @__PURE__ */ Fe({
|
|
|
9033
9049
|
}) : V ? P ? C(V, Xe({
|
|
9034
9050
|
ref: b
|
|
9035
9051
|
}, j), {
|
|
9036
|
-
default: () => [C(
|
|
9052
|
+
default: () => [C(Zs, null, null)]
|
|
9037
9053
|
}) : C(V, Xe({
|
|
9038
9054
|
ref: b
|
|
9039
9055
|
}, j), null) : C("div", null, null);
|
|
@@ -9056,7 +9072,7 @@ const xt = /* @__PURE__ */ Fe({
|
|
|
9056
9072
|
});
|
|
9057
9073
|
function M(T) {
|
|
9058
9074
|
const I = T == null ? void 0 : T.target;
|
|
9059
|
-
|
|
9075
|
+
Br(I);
|
|
9060
9076
|
}
|
|
9061
9077
|
function E() {
|
|
9062
9078
|
var T, I;
|
|
@@ -9092,7 +9108,7 @@ const xt = /* @__PURE__ */ Fe({
|
|
|
9092
9108
|
}, [B(i.value), u(i.value)]);
|
|
9093
9109
|
}
|
|
9094
9110
|
});
|
|
9095
|
-
function
|
|
9111
|
+
function tu(e, t, n, o, a, l, i, r, d, s, f, c, v, b, w, F, O, y, g, p = "data-grid-column") {
|
|
9096
9112
|
const {
|
|
9097
9113
|
showSelectAll: _,
|
|
9098
9114
|
selectAll: S,
|
|
@@ -9197,7 +9213,7 @@ function eu(e, t, n, o, a, l, i, r, d, s, f, c, v, b, w, F, O, y, g, p = "data-g
|
|
|
9197
9213
|
return C("div", {
|
|
9198
9214
|
class: "fv-grid-header-corner d-flex",
|
|
9199
9215
|
style: M.value
|
|
9200
|
-
}, [_.value && C(
|
|
9216
|
+
}, [_.value && C(Ks, {
|
|
9201
9217
|
id: "checkbox_for_select_all",
|
|
9202
9218
|
indeterminate: ue.value,
|
|
9203
9219
|
modelValue: G.value,
|
|
@@ -9223,7 +9239,7 @@ function eu(e, t, n, o, a, l, i, r, d, s, f, c, v, b, w, F, O, y, g, p = "data-g
|
|
|
9223
9239
|
renderGridHeader: re
|
|
9224
9240
|
};
|
|
9225
9241
|
}
|
|
9226
|
-
class
|
|
9242
|
+
class nu extends Zi {
|
|
9227
9243
|
constructor(t, n) {
|
|
9228
9244
|
super(t, n);
|
|
9229
9245
|
}
|
|
@@ -9297,19 +9313,6 @@ class tu extends Qi {
|
|
|
9297
9313
|
type: "boolean",
|
|
9298
9314
|
description: "是否显示设置按钮"
|
|
9299
9315
|
}
|
|
9300
|
-
// useBlankWhenDataIsEmpty: {
|
|
9301
|
-
// title: '空数据表格显示空白行',
|
|
9302
|
-
// description: '表格没有数据时是否显示空白行',
|
|
9303
|
-
// type: 'boolean',
|
|
9304
|
-
// refreshPanelAfterChanged: true
|
|
9305
|
-
// },
|
|
9306
|
-
// emptyDataHeight: {
|
|
9307
|
-
// title: '空数据高度',
|
|
9308
|
-
// type: 'number',
|
|
9309
|
-
// description: '空数据行高度设置',
|
|
9310
|
-
// min: 1,
|
|
9311
|
-
// max: 1000
|
|
9312
|
-
// },
|
|
9313
9316
|
},
|
|
9314
9317
|
setPropertyRelates(l, i) {
|
|
9315
9318
|
switch (l && l.propertyID) {
|
|
@@ -9359,6 +9362,10 @@ class tu extends Qi {
|
|
|
9359
9362
|
{
|
|
9360
9363
|
label: "onSelectionChange",
|
|
9361
9364
|
name: "行切换事件"
|
|
9365
|
+
},
|
|
9366
|
+
{
|
|
9367
|
+
label: "onClickRow",
|
|
9368
|
+
name: "行点击事件"
|
|
9362
9369
|
}
|
|
9363
9370
|
], o = this, a = o.eventsEditorUtils.formProperties(t, o.viewModelId, n), l = {};
|
|
9364
9371
|
l[o.viewModelId] = {
|
|
@@ -9381,7 +9388,7 @@ class tu extends Qi {
|
|
|
9381
9388
|
};
|
|
9382
9389
|
}
|
|
9383
9390
|
}
|
|
9384
|
-
function
|
|
9391
|
+
function ou(e, t) {
|
|
9385
9392
|
const n = e.schema, o = h(!0), a = h(!0);
|
|
9386
9393
|
function l(f) {
|
|
9387
9394
|
return f && f.sourceType === "control" ? f.componentCategory === "input" : !1;
|
|
@@ -9396,7 +9403,7 @@ function nu(e, t) {
|
|
|
9396
9403
|
return !0;
|
|
9397
9404
|
}
|
|
9398
9405
|
function s(f) {
|
|
9399
|
-
return new
|
|
9406
|
+
return new nu(f, t).getPropertyConfig(n);
|
|
9400
9407
|
}
|
|
9401
9408
|
return {
|
|
9402
9409
|
canAccepts: l,
|
|
@@ -9408,40 +9415,40 @@ function nu(e, t) {
|
|
|
9408
9415
|
getPropsConfig: s
|
|
9409
9416
|
};
|
|
9410
9417
|
}
|
|
9411
|
-
const
|
|
9418
|
+
const au = /* @__PURE__ */ Fe({
|
|
9412
9419
|
name: "FTreeGridDesign",
|
|
9413
9420
|
props: nn,
|
|
9414
9421
|
emits: [],
|
|
9415
9422
|
setup(e, t) {
|
|
9416
9423
|
var Se;
|
|
9417
|
-
const n = h(), o = 0, a = 100, l = h(), i = h(), r = h(), d = h(), s = h([]), f = h(!1), c = h(((Se = e.rowOption) == null ? void 0 : Se.wrapContent) || !1), v = Ye("designer-host-service"), b = Ye("design-item-context"), w =
|
|
9424
|
+
const n = h(), o = 0, a = 100, l = h(), i = h(), r = h(), d = h(), s = h([]), f = h(!1), c = h(((Se = e.rowOption) == null ? void 0 : Se.wrapContent) || !1), v = Ye("designer-host-service"), b = Ye("design-item-context"), w = ou(b, v), F = Qi(n, b, w);
|
|
9418
9425
|
F.value.designerClass = "f-utils-fill-flex-column";
|
|
9419
|
-
const O =
|
|
9426
|
+
const O = Bs(e), y = yn(e, O), g = gn(), p = hs(e), _ = Ps(e), S = ps(e, /* @__PURE__ */ new Map(), p, O, _), x = Ms(e, S, O, s, t), B = gs(e, s, O, x, t), m = R(() => Math.min(S.dataView.value.length, a)), {
|
|
9420
9427
|
containerStyleObject: u
|
|
9421
|
-
} =
|
|
9428
|
+
} = oi(e), k = mi(e), M = h(e.columns), {
|
|
9422
9429
|
applyCommands: E
|
|
9423
9430
|
} = k;
|
|
9424
9431
|
E(M);
|
|
9425
|
-
const D =
|
|
9432
|
+
const D = ai(e), T = Ds(), {
|
|
9426
9433
|
applyColumnSorter: I,
|
|
9427
9434
|
columnContext: $,
|
|
9428
9435
|
updateColumnRenderContext: V
|
|
9429
9436
|
} = D;
|
|
9430
9437
|
I(S, T);
|
|
9431
|
-
const N =
|
|
9438
|
+
const N = gi(e, $), j = Fs(e, t, O), P = an(), H = ks(e, j, P), K = Ts(e, j, p, O, P, H), ne = bs(e, M, S, m, o, K), {
|
|
9432
9439
|
getVisualData: ce
|
|
9433
|
-
} = ne, Be = on(e, $), pe =
|
|
9440
|
+
} = ne, Be = on(e, $), pe = Es(e, x), {
|
|
9434
9441
|
sidebarWidth: we
|
|
9435
9442
|
} = pe;
|
|
9436
9443
|
s.value = ce(0, m.value + o - 1);
|
|
9437
|
-
const be =
|
|
9444
|
+
const be = ys(e, S, s, $, ne, m, o, we), {
|
|
9438
9445
|
onWheel: Ce,
|
|
9439
9446
|
dataGridWidth: de,
|
|
9440
9447
|
viewPortHeight: me,
|
|
9441
9448
|
viewPortWidth: G
|
|
9442
|
-
} = be, z =
|
|
9449
|
+
} = be, z = vi(e, $, l, G, N), {
|
|
9443
9450
|
calculateColumnsSize: ue
|
|
9444
|
-
} = z, _e =
|
|
9451
|
+
} = z, _e = ms(), re = pi(l, d, S, _e, be), oe = Os(e, t, x, O), fe = hi(e, t, D, S, N, y, be), ve = R(() => ({
|
|
9445
9452
|
"drag-container": !0,
|
|
9446
9453
|
"fv-grid": !0,
|
|
9447
9454
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -9454,13 +9461,13 @@ const ou = /* @__PURE__ */ Fe({
|
|
|
9454
9461
|
renderDataArea: A
|
|
9455
9462
|
} = bn(e, t, i, r, d, Be, D, S, j, p, oe, x, B, be, ne, s), {
|
|
9456
9463
|
renderGridHeader: ae
|
|
9457
|
-
} =
|
|
9464
|
+
} = tu(b, e, l, r, d, D, S, fe, re, g, _e, z, N, x, pe, T, be, G, s, "tree-grid-column"), {
|
|
9458
9465
|
renderDataGridSidebar: ge
|
|
9459
|
-
} =
|
|
9466
|
+
} = Zl(e, oe, x, pe, be), {
|
|
9460
9467
|
renderHorizontalScrollbar: Re
|
|
9461
|
-
} =
|
|
9468
|
+
} = Ql(e, l, be), {
|
|
9462
9469
|
renderVerticalScrollbar: je
|
|
9463
|
-
} =
|
|
9470
|
+
} = ei(e, l, be);
|
|
9464
9471
|
function J() {
|
|
9465
9472
|
var Oe, Ne;
|
|
9466
9473
|
me.value = ((Oe = i.value) == null ? void 0 : Oe.clientHeight) || 0, de.value = ((Ne = l.value) == null ? void 0 : Ne.clientWidth) || 0, ue();
|
|
@@ -9475,7 +9482,7 @@ const ou = /* @__PURE__ */ Fe({
|
|
|
9475
9482
|
});
|
|
9476
9483
|
const te = R(() => !s.value || !s.value.length), {
|
|
9477
9484
|
renderEmpty: se
|
|
9478
|
-
} =
|
|
9485
|
+
} = ni(t);
|
|
9479
9486
|
return t.expose(F.value), () => C("div", {
|
|
9480
9487
|
ref: n,
|
|
9481
9488
|
dragref: `${b.schema.id}-container`,
|
|
@@ -9495,10 +9502,10 @@ const ou = /* @__PURE__ */ Fe({
|
|
|
9495
9502
|
}
|
|
9496
9503
|
});
|
|
9497
9504
|
lt.register = (e, t, n, o) => {
|
|
9498
|
-
e["tree-grid"] = lt, t["tree-grid"] =
|
|
9505
|
+
e["tree-grid"] = lt, t["tree-grid"] = Gl, o["tree-grid"] = { bindingResolver: ql, selectionItemResolver: zl };
|
|
9499
9506
|
};
|
|
9500
9507
|
lt.registerDesigner = (e, t, n) => {
|
|
9501
|
-
e["tree-grid"] =
|
|
9508
|
+
e["tree-grid"] = au, t["tree-grid"] = Ul;
|
|
9502
9509
|
};
|
|
9503
9510
|
Mo(lt);
|
|
9504
9511
|
const kt = /* @__PURE__ */ Fe({
|
|
@@ -9622,7 +9629,7 @@ const kt = /* @__PURE__ */ Fe({
|
|
|
9622
9629
|
}
|
|
9623
9630
|
i && (i == null || i.getData(e.editorParams).then((F) => f(F)));
|
|
9624
9631
|
}
|
|
9625
|
-
return () => C(
|
|
9632
|
+
return () => C(xl, {
|
|
9626
9633
|
modelValue: r.value,
|
|
9627
9634
|
"onUpdate:modelValue": (F) => r.value = F,
|
|
9628
9635
|
editable: !1,
|
|
@@ -9640,18 +9647,18 @@ const kt = /* @__PURE__ */ Fe({
|
|
|
9640
9647
|
}, [c()])]
|
|
9641
9648
|
});
|
|
9642
9649
|
}
|
|
9643
|
-
}),
|
|
9650
|
+
}), kc = {
|
|
9644
9651
|
install(e) {
|
|
9645
9652
|
e.component(bt.name, bt), e.component(kt.name, kt);
|
|
9646
9653
|
},
|
|
9647
9654
|
register(e, t, n, o) {
|
|
9648
|
-
e["field-selector"] = bt, t["field-selector"] =
|
|
9655
|
+
e["field-selector"] = bt, t["field-selector"] = Vl;
|
|
9649
9656
|
}
|
|
9650
9657
|
};
|
|
9651
9658
|
export {
|
|
9652
9659
|
bt as FieldSelector,
|
|
9653
|
-
|
|
9654
|
-
|
|
9660
|
+
xc as FieldSelectorRepositoryToken,
|
|
9661
|
+
kc as default,
|
|
9655
9662
|
Ot as fieldSelectorProps,
|
|
9656
|
-
|
|
9663
|
+
Vl as propsResolver
|
|
9657
9664
|
};
|