@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
|
@@ -81,20 +81,34 @@ function xt(e) {
|
|
|
81
81
|
}
|
|
82
82
|
return l;
|
|
83
83
|
}
|
|
84
|
+
function xa(e) {
|
|
85
|
+
const { properties: t, title: n, required: o } = e;
|
|
86
|
+
if (o && Array.isArray(o)) {
|
|
87
|
+
const a = o.reduce((l, r) => (l[r] = t[r].type === "object" && t[r].properties ? xt(t[r]) : Le(t[r].default), l), {});
|
|
88
|
+
if (n && o.find((l) => l === "id")) {
|
|
89
|
+
const l = n.toLowerCase().replace(/-/g, "_");
|
|
90
|
+
a.id = `${l}_${Math.random().toString().slice(2, 6)}`;
|
|
91
|
+
}
|
|
92
|
+
return a;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
type: n
|
|
96
|
+
};
|
|
97
|
+
}
|
|
84
98
|
function Wt(e, t = {}, n) {
|
|
85
99
|
const o = jt[e];
|
|
86
100
|
if (o) {
|
|
87
|
-
let a =
|
|
101
|
+
let a = xa(o);
|
|
88
102
|
const l = Ht[e];
|
|
89
103
|
return a = l ? l({ getSchemaByType: Wt }, a, t, n) : a, a;
|
|
90
104
|
}
|
|
91
105
|
return null;
|
|
92
106
|
}
|
|
93
|
-
function
|
|
107
|
+
function ka(e, t) {
|
|
94
108
|
const n = xt(t);
|
|
95
|
-
return Object.keys(n).reduce((o, a) => (o[a] && Ot(o[a]) && Ot(e[a] || !e[a]) ? Object.assign(o[a], e[a] || {}) : o[a] = e[a], o), n), n;
|
|
109
|
+
return Object.keys(n).reduce((o, a) => (Object.prototype.hasOwnProperty.call(e, a) && (o[a] && Ot(o[a]) && Ot(e[a] || !e[a]) ? Object.assign(o[a], e[a] || {}) : o[a] = e[a]), o), n), n;
|
|
96
110
|
}
|
|
97
|
-
function
|
|
111
|
+
function Ta(e, t) {
|
|
98
112
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
|
|
99
113
|
if (t.has(a)) {
|
|
100
114
|
const l = t.get(a);
|
|
@@ -109,11 +123,11 @@ function ka(e, t) {
|
|
|
109
123
|
return o;
|
|
110
124
|
}, {});
|
|
111
125
|
}
|
|
112
|
-
function
|
|
113
|
-
const o =
|
|
114
|
-
return
|
|
126
|
+
function Fa(e, t, n = /* @__PURE__ */ new Map()) {
|
|
127
|
+
const o = ka(e, t);
|
|
128
|
+
return Ta(o, n);
|
|
115
129
|
}
|
|
116
|
-
function
|
|
130
|
+
function Oa(e = {}) {
|
|
117
131
|
function t(i, f, d, v) {
|
|
118
132
|
if (typeof d == "number")
|
|
119
133
|
return v[i].length === d;
|
|
@@ -207,18 +221,18 @@ const Z = {
|
|
|
207
221
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
208
222
|
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
209
223
|
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
210
|
-
},
|
|
211
|
-
|
|
224
|
+
}, Ba = {}, Ma = {};
|
|
225
|
+
Oa();
|
|
212
226
|
function Xe(e, t, n = /* @__PURE__ */ new Map(), o = (r, u, c, i) => u, a = {}, l = (r) => r) {
|
|
213
|
-
return jt[t.title] = t, Ht[t.title] = o,
|
|
214
|
-
const u =
|
|
227
|
+
return jt[t.title] = t, Ht[t.title] = o, Ba[t.title] = a, Ma[t.title] = l, (r = {}) => {
|
|
228
|
+
const u = Fa(r, t, n), c = Object.keys(e).reduce((i, f) => (i[f] = e[f].default, i), {});
|
|
215
229
|
return Object.assign(c, u);
|
|
216
230
|
};
|
|
217
231
|
}
|
|
218
232
|
function ct(e, t) {
|
|
219
233
|
return { customClass: t.class, customStyle: t.style };
|
|
220
234
|
}
|
|
221
|
-
function
|
|
235
|
+
function Ea() {
|
|
222
236
|
function e(t, n) {
|
|
223
237
|
const { dataSource: o } = t || {};
|
|
224
238
|
return o === void 0 ? {} : {};
|
|
@@ -227,7 +241,7 @@ function Ma() {
|
|
|
227
241
|
resolve: e
|
|
228
242
|
};
|
|
229
243
|
}
|
|
230
|
-
function
|
|
244
|
+
function Ia() {
|
|
231
245
|
function e(t, n) {
|
|
232
246
|
return t.selectItemById(n);
|
|
233
247
|
}
|
|
@@ -239,7 +253,7 @@ const At = /* @__PURE__ */ new Map([
|
|
|
239
253
|
["appearance", ct],
|
|
240
254
|
["column", "columnOption"]
|
|
241
255
|
]);
|
|
242
|
-
function
|
|
256
|
+
function Va(e, t, n) {
|
|
243
257
|
var d;
|
|
244
258
|
const o = n.parentComponentInstance, a = o.schema.type, l = String(((d = o.schema.appearance) == null ? void 0 : d.class) || "").split(" "), r = a === "section" || a === "tab-page", u = l.includes("f-page-content-nav"), c = l.includes("f-page-main"), i = e.getSchemaByType("component");
|
|
245
259
|
i.id = `${t.id}-component`, i.componentType = "data-grid";
|
|
@@ -248,23 +262,23 @@ function Ia(e, t, n) {
|
|
|
248
262
|
class: f
|
|
249
263
|
}, i.contents = [t], i;
|
|
250
264
|
}
|
|
251
|
-
function
|
|
265
|
+
function Na(e, t, n) {
|
|
252
266
|
const o = n.parentComponentInstance, a = String(o.schema.appearance.class || "").split(" "), l = a.includes("f-page-content-nav"), r = a.includes("f-page-main"), u = e.getSchemaByType("section");
|
|
253
267
|
u.id = `${t.id}-section`;
|
|
254
268
|
let c = "";
|
|
255
269
|
return c += l ? "f-section-in-nav " : "", c += r ? "f-section-in-managelist " : "", c += "f-section-grid", u.appearance = { class: c }, u.contents = [t], u;
|
|
256
270
|
}
|
|
257
|
-
function
|
|
271
|
+
function Ra(e, t, n) {
|
|
258
272
|
const o = e.getSchemaByType("content-container");
|
|
259
273
|
return o.id = `${t.id}-layout`, o.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, o.contents = [t], o;
|
|
260
274
|
}
|
|
261
275
|
function Lt(e, t, n) {
|
|
262
276
|
const a = n.parentComponentInstance.schema.type, l = a === "section" || a === "tab-page";
|
|
263
277
|
t.appearance = { class: "f-component-grid" };
|
|
264
|
-
const u = (l ?
|
|
265
|
-
return
|
|
278
|
+
const u = (l ? Ra : Na)(e, t, n);
|
|
279
|
+
return Va(e, u, n);
|
|
266
280
|
}
|
|
267
|
-
const
|
|
281
|
+
const Da = "https://json-schema.org/draft/2020-12/schema", $a = "https://farris-design.gitee.io/tree-grid.schema.json", Pa = "tree-grid", ja = "A Farris Data Grid Component", Ha = "object", Wa = {
|
|
268
282
|
id: {
|
|
269
283
|
description: "The unique identifier for a Input Group",
|
|
270
284
|
type: "string"
|
|
@@ -1037,18 +1051,19 @@ const Ra = "https://json-schema.org/draft/2020-12/schema", Da = "https://farris-
|
|
|
1037
1051
|
type: "string",
|
|
1038
1052
|
default: ""
|
|
1039
1053
|
}
|
|
1040
|
-
},
|
|
1054
|
+
}, Aa = [
|
|
1041
1055
|
"id",
|
|
1042
|
-
"type"
|
|
1056
|
+
"type",
|
|
1057
|
+
"columns"
|
|
1043
1058
|
], Gt = {
|
|
1044
|
-
$schema:
|
|
1045
|
-
$id:
|
|
1046
|
-
title:
|
|
1047
|
-
description:
|
|
1048
|
-
type:
|
|
1049
|
-
properties:
|
|
1050
|
-
required:
|
|
1051
|
-
},
|
|
1059
|
+
$schema: Da,
|
|
1060
|
+
$id: $a,
|
|
1061
|
+
title: Pa,
|
|
1062
|
+
description: ja,
|
|
1063
|
+
type: Ha,
|
|
1064
|
+
properties: Wa,
|
|
1065
|
+
required: Aa
|
|
1066
|
+
}, Bu = {
|
|
1052
1067
|
/** 启用分页 */
|
|
1053
1068
|
enable: { type: Boolean, default: !1 },
|
|
1054
1069
|
/** 当前页码 */
|
|
@@ -1069,7 +1084,7 @@ const Ra = "https://json-schema.org/draft/2020-12/schema", Da = "https://farris-
|
|
|
1069
1084
|
sizeLimits: { type: Array, default: [10, 20, 30, 50, 100] },
|
|
1070
1085
|
/** 总记录数 */
|
|
1071
1086
|
total: { type: Number, default: 0 }
|
|
1072
|
-
},
|
|
1087
|
+
}, Mu = {
|
|
1073
1088
|
/** 启用排序 */
|
|
1074
1089
|
enable: { type: Boolean, default: !1 },
|
|
1075
1090
|
/** 排序字段集合 */
|
|
@@ -1078,7 +1093,7 @@ const Ra = "https://json-schema.org/draft/2020-12/schema", Da = "https://farris-
|
|
|
1078
1093
|
mode: { type: String, default: "client" },
|
|
1079
1094
|
/** 多列排序 */
|
|
1080
1095
|
multiSort: { type: Boolean, default: !1 }
|
|
1081
|
-
},
|
|
1096
|
+
}, Eu = {
|
|
1082
1097
|
/** 自定义分组合计内容 */
|
|
1083
1098
|
customGroupRow: { type: Function, default: () => {
|
|
1084
1099
|
} },
|
|
@@ -1102,7 +1117,7 @@ const Ra = "https://json-schema.org/draft/2020-12/schema", Da = "https://farris-
|
|
|
1102
1117
|
showSummary: { type: Boolean, default: !1 },
|
|
1103
1118
|
/** 显示合计行位置; */
|
|
1104
1119
|
summaryPosition: { type: String, default: "separate" }
|
|
1105
|
-
},
|
|
1120
|
+
}, Iu = {
|
|
1106
1121
|
/** 启用筛选 */
|
|
1107
1122
|
enable: { type: Boolean, default: !1 },
|
|
1108
1123
|
/** DataGrid筛选风格 */
|
|
@@ -1111,10 +1126,10 @@ const Ra = "https://json-schema.org/draft/2020-12/schema", Da = "https://farris-
|
|
|
1111
1126
|
mode: { type: String, default: "server" },
|
|
1112
1127
|
/** 显示过滤条件工具条 */
|
|
1113
1128
|
showSummary: { type: Boolean, default: !0 }
|
|
1114
|
-
},
|
|
1129
|
+
}, Vu = {
|
|
1115
1130
|
/** 允许折行显示列标题 */
|
|
1116
1131
|
wrapHeadings: { type: Boolean, default: !1 }
|
|
1117
|
-
},
|
|
1132
|
+
}, Nu = {
|
|
1118
1133
|
/** 自定义行样式 */
|
|
1119
1134
|
customRowStyle: { type: Function, default: () => {
|
|
1120
1135
|
} },
|
|
@@ -1127,7 +1142,7 @@ const Ra = "https://json-schema.org/draft/2020-12/schema", Da = "https://farris-
|
|
|
1127
1142
|
showHovering: { type: Boolean, default: !0 },
|
|
1128
1143
|
/** 禁止数据折行 */
|
|
1129
1144
|
wrapContent: { type: Boolean, default: !1 }
|
|
1130
|
-
},
|
|
1145
|
+
}, Ru = {
|
|
1131
1146
|
/** 显示合计信息 */
|
|
1132
1147
|
enable: { type: Boolean, default: !1 },
|
|
1133
1148
|
/** 合计行自定义样式,对启用合计行模板无效 */
|
|
@@ -1139,7 +1154,7 @@ const Ra = "https://json-schema.org/draft/2020-12/schema", Da = "https://farris-
|
|
|
1139
1154
|
mode: { type: String, default: "client" },
|
|
1140
1155
|
/** 合计行显示位置, top: 顶部 bottom: 底部, both: 顶部与底部同时显示 */
|
|
1141
1156
|
position: { type: String, default: "bottom" }
|
|
1142
|
-
},
|
|
1157
|
+
}, Du = {
|
|
1143
1158
|
/** 自动列宽。设为true后,所有列将填满表格并不会出现横向滚动条。 */
|
|
1144
1159
|
fitColumns: { type: Boolean, default: !1 },
|
|
1145
1160
|
/** 自动适配列宽度模式 */
|
|
@@ -1151,12 +1166,12 @@ const Ra = "https://json-schema.org/draft/2020-12/schema", Da = "https://farris-
|
|
|
1151
1166
|
resizeColumn: { type: Boolean, default: !0 },
|
|
1152
1167
|
/** 双击表头列自适应内容宽度 */
|
|
1153
1168
|
resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
|
|
1154
|
-
},
|
|
1169
|
+
}, $u = {
|
|
1155
1170
|
/** 编辑时选中文本 */
|
|
1156
1171
|
selectOnEditing: { type: Boolean, default: !1 },
|
|
1157
1172
|
/** 编辑模式; row:整行编辑,cell: 单元格编辑 */
|
|
1158
1173
|
editMode: { type: String, default: "cell" }
|
|
1159
|
-
},
|
|
1174
|
+
}, Pu = {
|
|
1160
1175
|
/** show loading */
|
|
1161
1176
|
show: { type: Boolean, default: !1 },
|
|
1162
1177
|
/** message on display when loading */
|
|
@@ -1275,7 +1290,7 @@ const Ra = "https://json-schema.org/draft/2020-12/schema", Da = "https://farris-
|
|
|
1275
1290
|
autoCheckChildren: { type: Boolean, default: !1 },
|
|
1276
1291
|
/** 显示设置按钮 */
|
|
1277
1292
|
showSetting: { type: Boolean, default: !1 }
|
|
1278
|
-
},
|
|
1293
|
+
}, La = Xe(kt, Gt, At, Lt), Ga = Ia(), za = Ea(), zt = Object.assign({}, kt, { componentId: { type: String, default: "" } }), qa = Xe(zt, Gt, At, Lt);
|
|
1279
1294
|
var Re = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(Re || {}), We = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(We || {}), nt = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(nt || {}), Be = /* @__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))(Be || {}), Ct = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(Ct || {});
|
|
1280
1295
|
function qt(e, t) {
|
|
1281
1296
|
var S;
|
|
@@ -1353,7 +1368,7 @@ function qt(e, t) {
|
|
|
1353
1368
|
summaryCellPosition: u
|
|
1354
1369
|
};
|
|
1355
1370
|
}
|
|
1356
|
-
function
|
|
1371
|
+
function Ua(e, t, n) {
|
|
1357
1372
|
const { hasChildrenField: o } = n, a = g("#9399a0"), l = g(28);
|
|
1358
1373
|
function r() {
|
|
1359
1374
|
return [].concat(
|
|
@@ -1392,7 +1407,7 @@ function qa(e, t, n) {
|
|
|
1392
1407
|
}
|
|
1393
1408
|
return { hierarchyCellContentStyle: i, handleCollapsedPaddingBottom: c };
|
|
1394
1409
|
}
|
|
1395
|
-
function
|
|
1410
|
+
function Ya(e, t, n) {
|
|
1396
1411
|
const o = g(e.iconField);
|
|
1397
1412
|
function a(l, r) {
|
|
1398
1413
|
if (o.value)
|
|
@@ -1419,7 +1434,7 @@ function Ut() {
|
|
|
1419
1434
|
}
|
|
1420
1435
|
return { updateRowPosition: e, updateVisualInfomation: t };
|
|
1421
1436
|
}
|
|
1422
|
-
function
|
|
1437
|
+
function Xa(e, t, n, o, a, l) {
|
|
1423
1438
|
const { dataView: r, fold: u, hasRealChildren: c, unFold: i } = o, { collapseField: f, hasChildrenField: d } = a, { updateRowPosition: v } = Ut();
|
|
1424
1439
|
function S(O, y) {
|
|
1425
1440
|
const h = y[O].layer;
|
|
@@ -1457,7 +1472,7 @@ function Ya(e, t, n, o, a, l) {
|
|
|
1457
1472
|
}
|
|
1458
1473
|
return { toggleTreeNode: V };
|
|
1459
1474
|
}
|
|
1460
|
-
function
|
|
1475
|
+
function Ka(e, t, n, o, a, l, r, u, c, i, f) {
|
|
1461
1476
|
const {
|
|
1462
1477
|
onClickCell: d
|
|
1463
1478
|
} = l, {
|
|
@@ -1483,7 +1498,7 @@ function Xa(e, t, n, o, a, l, r, u, c, i, f) {
|
|
|
1483
1498
|
shouldShowIcon: M
|
|
1484
1499
|
} = r, {
|
|
1485
1500
|
toggleTreeNode: R
|
|
1486
|
-
} =
|
|
1501
|
+
} = Xa(e, t, o, a, r), {
|
|
1487
1502
|
toggleSelectHierarchyItem: k
|
|
1488
1503
|
} = i, {
|
|
1489
1504
|
cellKey: E,
|
|
@@ -1492,9 +1507,9 @@ function Xa(e, t, n, o, a, l, r, u, c, i, f) {
|
|
|
1492
1507
|
rowPosition: N
|
|
1493
1508
|
} = qt(e, n), {
|
|
1494
1509
|
hierarchyCellContentStyle: j
|
|
1495
|
-
} =
|
|
1510
|
+
} = Ua(e, o, r), {
|
|
1496
1511
|
treeNodeIconsClass: D
|
|
1497
|
-
} =
|
|
1512
|
+
} = Ya(e, s, F);
|
|
1498
1513
|
function H(G, z) {
|
|
1499
1514
|
const ue = G.raw[F.value];
|
|
1500
1515
|
return {
|
|
@@ -1574,7 +1589,7 @@ function Xa(e, t, n, o, a, l, r, u, c, i, f) {
|
|
|
1574
1589
|
renderDataRow: me
|
|
1575
1590
|
};
|
|
1576
1591
|
}
|
|
1577
|
-
function
|
|
1592
|
+
function Ja(e, t, n) {
|
|
1578
1593
|
const {
|
|
1579
1594
|
horizontalScrollThumbStyle: o,
|
|
1580
1595
|
onMouseDownScrollThumb: a,
|
|
@@ -1593,7 +1608,7 @@ function Ka(e, t, n) {
|
|
|
1593
1608
|
renderHorizontalScrollbar: r
|
|
1594
1609
|
};
|
|
1595
1610
|
}
|
|
1596
|
-
function
|
|
1611
|
+
function Qa(e, t, n, o, a) {
|
|
1597
1612
|
const {
|
|
1598
1613
|
isSelectingHirarchyItem: l,
|
|
1599
1614
|
multiSelectOnClickRow: r,
|
|
@@ -1671,7 +1686,7 @@ function Ja(e, t, n, o, a) {
|
|
|
1671
1686
|
renderDataGridSidebar: T
|
|
1672
1687
|
};
|
|
1673
1688
|
}
|
|
1674
|
-
function
|
|
1689
|
+
function Za(e, t, n) {
|
|
1675
1690
|
const {
|
|
1676
1691
|
verticalScrollThumbStyle: o,
|
|
1677
1692
|
onMouseDownScrollThumb: a,
|
|
@@ -1690,7 +1705,7 @@ function Qa(e, t, n) {
|
|
|
1690
1705
|
renderVerticalScrollbar: r
|
|
1691
1706
|
};
|
|
1692
1707
|
}
|
|
1693
|
-
function
|
|
1708
|
+
function el() {
|
|
1694
1709
|
function e(o, a) {
|
|
1695
1710
|
switch (o.command) {
|
|
1696
1711
|
case "edit":
|
|
@@ -1728,7 +1743,7 @@ function Za() {
|
|
|
1728
1743
|
renderCommandColumn: n
|
|
1729
1744
|
};
|
|
1730
1745
|
}
|
|
1731
|
-
function
|
|
1746
|
+
function tl(e) {
|
|
1732
1747
|
function t() {
|
|
1733
1748
|
return x("div", {
|
|
1734
1749
|
class: "d-flex flex-column f-datagrid-norecords"
|
|
@@ -1741,7 +1756,7 @@ function el(e) {
|
|
|
1741
1756
|
renderEmpty: t
|
|
1742
1757
|
};
|
|
1743
1758
|
}
|
|
1744
|
-
function
|
|
1759
|
+
function nl(e) {
|
|
1745
1760
|
const t = g(e.minHeight), n = g(e.minWidth), o = g(e.height), a = g(e.width), l = P(() => o.value <= 0 ? 0 : Math.max(o.value, t.value)), r = P(() => a.value <= 0 ? 0 : Math.max(a.value, n.value));
|
|
1746
1761
|
return te([
|
|
1747
1762
|
() => e.height,
|
|
@@ -1755,7 +1770,7 @@ function tl(e) {
|
|
|
1755
1770
|
width: r.value > 0 ? `${r.value}px` : e.fit ? "100%" : ""
|
|
1756
1771
|
})) };
|
|
1757
1772
|
}
|
|
1758
|
-
function
|
|
1773
|
+
function ol(e) {
|
|
1759
1774
|
const o = g({
|
|
1760
1775
|
defaultColumnWidth: 120,
|
|
1761
1776
|
headerDepth: 1,
|
|
@@ -1863,23 +1878,23 @@ function nl(e) {
|
|
|
1863
1878
|
updateColumnSettingIcon: u
|
|
1864
1879
|
};
|
|
1865
1880
|
}
|
|
1866
|
-
const
|
|
1881
|
+
const al = [{
|
|
1867
1882
|
name: "是",
|
|
1868
1883
|
value: !0
|
|
1869
1884
|
}, {
|
|
1870
1885
|
name: "否",
|
|
1871
1886
|
value: !1
|
|
1872
1887
|
}];
|
|
1873
|
-
function
|
|
1888
|
+
function ll(e) {
|
|
1874
1889
|
return e.filter = e.filter || function(t) {
|
|
1875
1890
|
return String(e.filterValue).split(",").includes(String(t[e.field]));
|
|
1876
1891
|
}, x("div", null, [x(Ae("f-checkbox-group"), {
|
|
1877
1892
|
modelValue: e.filterValue,
|
|
1878
1893
|
"onUpdate:modelValue": (t) => e.filterValue = t,
|
|
1879
|
-
"enum-data":
|
|
1894
|
+
"enum-data": al
|
|
1880
1895
|
}, null)]);
|
|
1881
1896
|
}
|
|
1882
|
-
const
|
|
1897
|
+
const rl = g([{
|
|
1883
1898
|
name: "七天",
|
|
1884
1899
|
selectable: !0
|
|
1885
1900
|
}, {
|
|
@@ -1892,7 +1907,7 @@ const ll = g([{
|
|
|
1892
1907
|
name: "半年",
|
|
1893
1908
|
selectable: !0
|
|
1894
1909
|
}]);
|
|
1895
|
-
function
|
|
1910
|
+
function il(e) {
|
|
1896
1911
|
const t = g(!1);
|
|
1897
1912
|
return e.filter = e.filter || function(n) {
|
|
1898
1913
|
const o = new Date(new Date(e.filterValue).toLocaleDateString()).valueOf();
|
|
@@ -1912,12 +1927,12 @@ function rl(e) {
|
|
|
1912
1927
|
"onUpdate:modelValue": (n) => e.filterValue = n
|
|
1913
1928
|
}, null), x(Ae("f-tags"), {
|
|
1914
1929
|
style: "margin-top:10px",
|
|
1915
|
-
data:
|
|
1930
|
+
data: rl.value,
|
|
1916
1931
|
selectable: !0,
|
|
1917
1932
|
"tag-style": "capsule"
|
|
1918
1933
|
}, null)]);
|
|
1919
1934
|
}
|
|
1920
|
-
function
|
|
1935
|
+
function sl(e) {
|
|
1921
1936
|
e.filter = e.filter || function(n) {
|
|
1922
1937
|
const o = Number.parseFloat(e.filterValue), a = Number.parseFloat(n[e.field]);
|
|
1923
1938
|
return isNaN(o) ? isNaN(a) : o === a;
|
|
@@ -1932,7 +1947,7 @@ function il(e) {
|
|
|
1932
1947
|
onValueChange: t
|
|
1933
1948
|
}, null)]);
|
|
1934
1949
|
}
|
|
1935
|
-
function
|
|
1950
|
+
function ul(e, t, n, o, a, l) {
|
|
1936
1951
|
e.filterHistory = e.filterHistory || a.getFilterHistory(e), e.filter = e.filter || function(v) {
|
|
1937
1952
|
return (v[e.field] || "").startsWith(e.filterValue);
|
|
1938
1953
|
};
|
|
@@ -1969,7 +1984,7 @@ function sl(e, t, n, o, a, l) {
|
|
|
1969
1984
|
onChange: c
|
|
1970
1985
|
}, null)]);
|
|
1971
1986
|
}
|
|
1972
|
-
function
|
|
1987
|
+
function cl(e, t, n, o, a, l) {
|
|
1973
1988
|
e.filter = e.filter || function(S) {
|
|
1974
1989
|
return String(e.filterValue).split(",").includes(String(S[e.field]));
|
|
1975
1990
|
};
|
|
@@ -2000,7 +2015,7 @@ function ul(e, t, n, o, a, l) {
|
|
|
2000
2015
|
default: () => [De(" ")]
|
|
2001
2016
|
});
|
|
2002
2017
|
}
|
|
2003
|
-
function
|
|
2018
|
+
function dl(e) {
|
|
2004
2019
|
g("请输入关键词"), g('<i class="f-icon f-icon-search"></i>');
|
|
2005
2020
|
const t = [{
|
|
2006
2021
|
name: "发票类型",
|
|
@@ -2042,7 +2057,7 @@ function cl(e) {
|
|
|
2042
2057
|
default: () => [De(" ")]
|
|
2043
2058
|
});
|
|
2044
2059
|
}
|
|
2045
|
-
function
|
|
2060
|
+
function fl(e, t, n, o, a) {
|
|
2046
2061
|
const l = /* @__PURE__ */ new Map([
|
|
2047
2062
|
["boolean", "boolean-filter"],
|
|
2048
2063
|
["date", "date-filter"],
|
|
@@ -2053,12 +2068,12 @@ function dl(e, t, n, o, a) {
|
|
|
2053
2068
|
["enum", "enum-filter"],
|
|
2054
2069
|
["reference", "list-filter"]
|
|
2055
2070
|
]), r = /* @__PURE__ */ new Map([
|
|
2056
|
-
["boolean-filter",
|
|
2057
|
-
["date-filter",
|
|
2058
|
-
["enum-filter",
|
|
2059
|
-
["list-filter",
|
|
2060
|
-
["numeric-filter",
|
|
2061
|
-
["text-filter",
|
|
2071
|
+
["boolean-filter", ll],
|
|
2072
|
+
["date-filter", il],
|
|
2073
|
+
["enum-filter", cl],
|
|
2074
|
+
["list-filter", dl],
|
|
2075
|
+
["numeric-filter", sl],
|
|
2076
|
+
["text-filter", ul]
|
|
2062
2077
|
]);
|
|
2063
2078
|
function u(c) {
|
|
2064
2079
|
var v, S;
|
|
@@ -2075,7 +2090,7 @@ function dl(e, t, n, o, a) {
|
|
|
2075
2090
|
}
|
|
2076
2091
|
return { getFilterEditor: u };
|
|
2077
2092
|
}
|
|
2078
|
-
function
|
|
2093
|
+
function pl(e) {
|
|
2079
2094
|
const n = g(e.commandOption.enable || !1), o = g(e.commandOption.commands || []);
|
|
2080
2095
|
function a(l) {
|
|
2081
2096
|
if (n.value && !(l.value.findIndex((u) => u.dataType === "commands") > -1)) {
|
|
@@ -2093,7 +2108,7 @@ function fl(e) {
|
|
|
2093
2108
|
}
|
|
2094
2109
|
return { applyCommands: a };
|
|
2095
2110
|
}
|
|
2096
|
-
function
|
|
2111
|
+
function ml(e, t, n, o, a, l, r) {
|
|
2097
2112
|
const { columnContext: u } = n, { getGridHeaderCells: c } = a, { groupFields: i } = l, f = g(-1), d = g(!1), v = P(() => i.value && i.value.map((h) => {
|
|
2098
2113
|
var p;
|
|
2099
2114
|
return {
|
|
@@ -2144,7 +2159,7 @@ function pl(e, t, n, o, a, l, r) {
|
|
|
2144
2159
|
groupColumnItems: v
|
|
2145
2160
|
};
|
|
2146
2161
|
}
|
|
2147
|
-
function
|
|
2162
|
+
function hl(e, t, n, o, a) {
|
|
2148
2163
|
const { getGridHeaderCells: l } = a, r = 120, u = 50, c = P(() => {
|
|
2149
2164
|
var m;
|
|
2150
2165
|
return ((m = e.rowNumber) == null ? void 0 : m.enable) || !1;
|
|
@@ -2280,7 +2295,7 @@ function ml(e, t, n, o, a) {
|
|
|
2280
2295
|
m !== s && d.value && T();
|
|
2281
2296
|
}), { calculateColumnHeaders: b, calculateColumnsSize: T, calculateColumnsWidth: w };
|
|
2282
2297
|
}
|
|
2283
|
-
function
|
|
2298
|
+
function vl(e, t) {
|
|
2284
2299
|
var i;
|
|
2285
2300
|
const n = g((i = e.columnOption) == null ? void 0 : i.groups);
|
|
2286
2301
|
function o(f, d, v, S, C) {
|
|
@@ -2388,7 +2403,7 @@ const Yt = {
|
|
|
2388
2403
|
*/
|
|
2389
2404
|
isControlInline: { type: Boolean, default: !0 }
|
|
2390
2405
|
};
|
|
2391
|
-
class
|
|
2406
|
+
class gl {
|
|
2392
2407
|
constructor(t = { value: [] }) {
|
|
2393
2408
|
L(this, "editorType", "check-box");
|
|
2394
2409
|
L(this, "value");
|
|
@@ -2408,7 +2423,7 @@ class vl {
|
|
|
2408
2423
|
return this.value.length === 0;
|
|
2409
2424
|
}
|
|
2410
2425
|
}
|
|
2411
|
-
class
|
|
2426
|
+
class yl {
|
|
2412
2427
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
2413
2428
|
L(this, "editorType", "combo-lookup");
|
|
2414
2429
|
L(this, "textValue");
|
|
@@ -2442,7 +2457,7 @@ class gl {
|
|
|
2442
2457
|
return !this.valueField;
|
|
2443
2458
|
}
|
|
2444
2459
|
}
|
|
2445
|
-
class
|
|
2460
|
+
class bl {
|
|
2446
2461
|
constructor(t = { value: "" }) {
|
|
2447
2462
|
L(this, "editorType", "date-picker");
|
|
2448
2463
|
L(this, "value");
|
|
@@ -2483,7 +2498,7 @@ class Mt {
|
|
|
2483
2498
|
return !this.begin || !this.end;
|
|
2484
2499
|
}
|
|
2485
2500
|
}
|
|
2486
|
-
class
|
|
2501
|
+
class Cl {
|
|
2487
2502
|
constructor(t = { value: "" }) {
|
|
2488
2503
|
L(this, "editorType", "datetime-picker");
|
|
2489
2504
|
L(this, "value");
|
|
@@ -2503,7 +2518,7 @@ class bl {
|
|
|
2503
2518
|
return !this.value;
|
|
2504
2519
|
}
|
|
2505
2520
|
}
|
|
2506
|
-
class
|
|
2521
|
+
class wl {
|
|
2507
2522
|
// 旧结构无,新结构为选中的value值,多选是以,分割的字符串
|
|
2508
2523
|
constructor(t = { value: "", dispalyText: "" }) {
|
|
2509
2524
|
L(this, "editorType", "combo-list");
|
|
@@ -2526,7 +2541,7 @@ class Cl {
|
|
|
2526
2541
|
return !this.displayText && !this.value;
|
|
2527
2542
|
}
|
|
2528
2543
|
}
|
|
2529
|
-
class
|
|
2544
|
+
class _l {
|
|
2530
2545
|
constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
|
|
2531
2546
|
L(this, "editorType", "input-group");
|
|
2532
2547
|
// 通过弹窗返回的若干个值对象构成的数组
|
|
@@ -2562,10 +2577,10 @@ class wl {
|
|
|
2562
2577
|
throw new Error("Method not implemented.");
|
|
2563
2578
|
}
|
|
2564
2579
|
isEmpty() {
|
|
2565
|
-
return !this.displayText && !this.value;
|
|
2580
|
+
return !this.displayText && !this.value.length;
|
|
2566
2581
|
}
|
|
2567
2582
|
}
|
|
2568
|
-
class
|
|
2583
|
+
class Sl {
|
|
2569
2584
|
constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
|
|
2570
2585
|
L(this, "editorType", "lookup");
|
|
2571
2586
|
L(this, "textValue");
|
|
@@ -2601,7 +2616,7 @@ class _l {
|
|
|
2601
2616
|
return !this.value.length;
|
|
2602
2617
|
}
|
|
2603
2618
|
}
|
|
2604
|
-
class
|
|
2619
|
+
class xl {
|
|
2605
2620
|
constructor(t = { value: "" }) {
|
|
2606
2621
|
L(this, "editorType", "month-picker");
|
|
2607
2622
|
L(this, "value");
|
|
@@ -2621,7 +2636,7 @@ class Sl {
|
|
|
2621
2636
|
return !this.value;
|
|
2622
2637
|
}
|
|
2623
2638
|
}
|
|
2624
|
-
class
|
|
2639
|
+
class kl {
|
|
2625
2640
|
constructor(t = { begin: "", end: "" }) {
|
|
2626
2641
|
L(this, "editorType", "month-range");
|
|
2627
2642
|
L(this, "begin");
|
|
@@ -2642,7 +2657,7 @@ class xl {
|
|
|
2642
2657
|
return !this.begin || !this.end;
|
|
2643
2658
|
}
|
|
2644
2659
|
}
|
|
2645
|
-
class
|
|
2660
|
+
class Tl {
|
|
2646
2661
|
constructor(t = { begin: null, end: null }) {
|
|
2647
2662
|
L(this, "editorType", "number-range");
|
|
2648
2663
|
L(this, "begin");
|
|
@@ -2666,7 +2681,7 @@ class kl {
|
|
|
2666
2681
|
return this.begin == null && this.end == null;
|
|
2667
2682
|
}
|
|
2668
2683
|
}
|
|
2669
|
-
class
|
|
2684
|
+
class Fl {
|
|
2670
2685
|
constructor(t = { value: "" }) {
|
|
2671
2686
|
L(this, "editorType", "number-spinner");
|
|
2672
2687
|
L(this, "value");
|
|
@@ -2683,10 +2698,10 @@ class Tl {
|
|
|
2683
2698
|
this.value = isNaN(parseFloat(t)) ? null : t;
|
|
2684
2699
|
}
|
|
2685
2700
|
isEmpty() {
|
|
2686
|
-
return this.value == null;
|
|
2701
|
+
return this.value == null || isNaN(this.value);
|
|
2687
2702
|
}
|
|
2688
2703
|
}
|
|
2689
|
-
class
|
|
2704
|
+
class Ol {
|
|
2690
2705
|
constructor(t = { value: null }) {
|
|
2691
2706
|
L(this, "editorType", "radio-group");
|
|
2692
2707
|
L(this, "value");
|
|
@@ -2730,33 +2745,33 @@ function Kt() {
|
|
|
2730
2745
|
function e(t, n) {
|
|
2731
2746
|
switch (t) {
|
|
2732
2747
|
case "check-box":
|
|
2733
|
-
return new
|
|
2748
|
+
return new gl(n);
|
|
2734
2749
|
case "combo-list":
|
|
2735
|
-
return new
|
|
2750
|
+
return new wl(n);
|
|
2736
2751
|
case "combo-lookup":
|
|
2737
|
-
return new
|
|
2752
|
+
return new yl(n);
|
|
2738
2753
|
case "input-group":
|
|
2739
|
-
return new
|
|
2754
|
+
return new _l(n);
|
|
2740
2755
|
case "date-picker":
|
|
2741
|
-
return new
|
|
2756
|
+
return new bl(n);
|
|
2742
2757
|
case "date-range":
|
|
2743
2758
|
return new Mt(n);
|
|
2744
2759
|
case "datetime-picker":
|
|
2745
|
-
return new
|
|
2760
|
+
return new Cl(n);
|
|
2746
2761
|
case "datetime-range":
|
|
2747
2762
|
return new Mt(n);
|
|
2748
2763
|
case "lookup":
|
|
2749
|
-
return new _l(n);
|
|
2750
|
-
case "month-picker":
|
|
2751
2764
|
return new Sl(n);
|
|
2752
|
-
case "month-
|
|
2765
|
+
case "month-picker":
|
|
2753
2766
|
return new xl(n);
|
|
2754
|
-
case "
|
|
2767
|
+
case "month-range":
|
|
2755
2768
|
return new kl(n);
|
|
2756
|
-
case "number-
|
|
2769
|
+
case "number-range":
|
|
2757
2770
|
return new Tl(n);
|
|
2758
|
-
case "
|
|
2771
|
+
case "number-spinner":
|
|
2759
2772
|
return new Fl(n);
|
|
2773
|
+
case "radio-group":
|
|
2774
|
+
return new Ol(n);
|
|
2760
2775
|
default:
|
|
2761
2776
|
return new Xt(n);
|
|
2762
2777
|
}
|
|
@@ -2795,7 +2810,7 @@ function Jt(e, t) {
|
|
|
2795
2810
|
}
|
|
2796
2811
|
return { convertToSingleControl: u, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: c, initialConditionValue: i };
|
|
2797
2812
|
}
|
|
2798
|
-
function
|
|
2813
|
+
function Bl(e, t, n) {
|
|
2799
2814
|
const o = g(null), a = g(n), l = g(0);
|
|
2800
2815
|
function r(f, d) {
|
|
2801
2816
|
let v = null;
|
|
@@ -2833,7 +2848,7 @@ const Et = /* @__PURE__ */ Ie({
|
|
|
2833
2848
|
initialConditionValue: u,
|
|
2834
2849
|
fieldMap: c,
|
|
2835
2850
|
loadFieldConfigs: i
|
|
2836
|
-
} = r, f =
|
|
2851
|
+
} = r, f = Bl(e, t, n), {
|
|
2837
2852
|
conditionClass: d,
|
|
2838
2853
|
resizeObserver: v
|
|
2839
2854
|
} = f;
|
|
@@ -2875,10 +2890,10 @@ const Et = /* @__PURE__ */ Ie({
|
|
|
2875
2890
|
}
|
|
2876
2891
|
}), Tt = /* @__PURE__ */ new Map([
|
|
2877
2892
|
["appearance", ct]
|
|
2878
|
-
]),
|
|
2893
|
+
]), Ml = /* @__PURE__ */ new Map([]);
|
|
2879
2894
|
var wt = /* @__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))(wt || {});
|
|
2880
|
-
const
|
|
2881
|
-
class
|
|
2895
|
+
const El = "root-viewmodel";
|
|
2896
|
+
class Il {
|
|
2882
2897
|
constructor(t, n) {
|
|
2883
2898
|
L(this, "formSchemaUtils");
|
|
2884
2899
|
L(this, "controlCreatorUtils");
|
|
@@ -2972,7 +2987,7 @@ class El {
|
|
|
2972
2987
|
code: `${t.componentId}-component-viewmodel`,
|
|
2973
2988
|
name: t.componentName,
|
|
2974
2989
|
bindTo: t.bindTo,
|
|
2975
|
-
parent:
|
|
2990
|
+
parent: El,
|
|
2976
2991
|
fields: this.assembleViewModelFields(t),
|
|
2977
2992
|
commands: [],
|
|
2978
2993
|
states: [],
|
|
@@ -2999,7 +3014,7 @@ class El {
|
|
|
2999
3014
|
}), n;
|
|
3000
3015
|
}
|
|
3001
3016
|
}
|
|
3002
|
-
function
|
|
3017
|
+
function Vl(e, t, n, o) {
|
|
3003
3018
|
var l, r, u, c, i;
|
|
3004
3019
|
const a = n.parentComponentInstance;
|
|
3005
3020
|
if (a && o) {
|
|
@@ -3012,14 +3027,14 @@ function Il(e, t, n, o) {
|
|
|
3012
3027
|
bindTo: ((c = n.bindingSourceContext) == null ? void 0 : c.bindTo) || "/",
|
|
3013
3028
|
selectedFields: (i = n.bindingSourceContext) == null ? void 0 : i.bindingEntityFields
|
|
3014
3029
|
};
|
|
3015
|
-
return new
|
|
3030
|
+
return new Il(e, o).createComponent(v);
|
|
3016
3031
|
} else
|
|
3017
3032
|
return t;
|
|
3018
3033
|
}
|
|
3019
|
-
function
|
|
3034
|
+
function Nl(e, t, n) {
|
|
3020
3035
|
return t;
|
|
3021
3036
|
}
|
|
3022
|
-
const
|
|
3037
|
+
const Rl = "https://json-schema.org/draft/2020-12/schema", Dl = "https://farris-design.gitee.io/response-form.schema.json", $l = "response-form", Pl = "A Farris Data Collection Component", jl = "object", Hl = {
|
|
3023
3038
|
id: {
|
|
3024
3039
|
description: "The unique identifier for a form group",
|
|
3025
3040
|
type: "string"
|
|
@@ -3047,23 +3062,24 @@ const Nl = "https://json-schema.org/draft/2020-12/schema", Rl = "https://farris-
|
|
|
3047
3062
|
type: "array",
|
|
3048
3063
|
default: []
|
|
3049
3064
|
}
|
|
3050
|
-
},
|
|
3065
|
+
}, Wl = [
|
|
3051
3066
|
"id",
|
|
3052
|
-
"type"
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
$
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3067
|
+
"type",
|
|
3068
|
+
"contents"
|
|
3069
|
+
], Al = {
|
|
3070
|
+
$schema: Rl,
|
|
3071
|
+
$id: Dl,
|
|
3072
|
+
title: $l,
|
|
3073
|
+
description: Pl,
|
|
3074
|
+
type: jl,
|
|
3075
|
+
properties: Hl,
|
|
3076
|
+
required: Wl
|
|
3077
|
+
}, Ll = {
|
|
3062
3078
|
customClass: { type: String, default: "" },
|
|
3063
3079
|
customStyle: { type: String, defaut: "" }
|
|
3064
3080
|
};
|
|
3065
|
-
Xe(
|
|
3066
|
-
const
|
|
3081
|
+
Xe(Ll, Al, Tt, Vl);
|
|
3082
|
+
const Gl = "https://json-schema.org/draft/2020-12/schema", zl = "https://farris-design.gitee.io/form-group.schema.json", ql = "form-group", Ul = "A Farris Input Component", Yl = "object", Xl = {
|
|
3067
3083
|
id: {
|
|
3068
3084
|
description: "The unique identifier for a form group",
|
|
3069
3085
|
type: "string"
|
|
@@ -3093,7 +3109,8 @@ const Ll = "https://json-schema.org/draft/2020-12/schema", Gl = "https://farris-
|
|
|
3093
3109
|
},
|
|
3094
3110
|
editor: {
|
|
3095
3111
|
description: "",
|
|
3096
|
-
type: "obejct"
|
|
3112
|
+
type: "obejct",
|
|
3113
|
+
default: {}
|
|
3097
3114
|
},
|
|
3098
3115
|
label: {
|
|
3099
3116
|
description: "",
|
|
@@ -3109,17 +3126,18 @@ const Ll = "https://json-schema.org/draft/2020-12/schema", Gl = "https://farris-
|
|
|
3109
3126
|
type: "object",
|
|
3110
3127
|
default: {}
|
|
3111
3128
|
}
|
|
3112
|
-
},
|
|
3129
|
+
}, Kl = [
|
|
3113
3130
|
"id",
|
|
3114
|
-
"type"
|
|
3131
|
+
"type",
|
|
3132
|
+
"editor"
|
|
3115
3133
|
], Qt = {
|
|
3116
|
-
$schema:
|
|
3117
|
-
$id:
|
|
3118
|
-
title:
|
|
3119
|
-
description:
|
|
3120
|
-
type:
|
|
3121
|
-
properties:
|
|
3122
|
-
required:
|
|
3134
|
+
$schema: Gl,
|
|
3135
|
+
$id: zl,
|
|
3136
|
+
title: ql,
|
|
3137
|
+
description: Ul,
|
|
3138
|
+
type: Yl,
|
|
3139
|
+
properties: Xl,
|
|
3140
|
+
required: Kl
|
|
3123
3141
|
}, Zt = {
|
|
3124
3142
|
id: { type: String, default: "" },
|
|
3125
3143
|
customClass: { type: String, default: "" },
|
|
@@ -3141,7 +3159,7 @@ Xe(
|
|
|
3141
3159
|
Tt,
|
|
3142
3160
|
void 0
|
|
3143
3161
|
);
|
|
3144
|
-
function
|
|
3162
|
+
function Jl(e, t, n) {
|
|
3145
3163
|
var b;
|
|
3146
3164
|
const o = n && n.getStyles && n.getStyles() || "", a = n && n.getDesignerClass && n.getDesignerClass() || "", l = g();
|
|
3147
3165
|
function r() {
|
|
@@ -3226,7 +3244,7 @@ function Kl(e, t, n) {
|
|
|
3226
3244
|
onRemoveComponent: p
|
|
3227
3245
|
}, l;
|
|
3228
3246
|
}
|
|
3229
|
-
class
|
|
3247
|
+
class Ql {
|
|
3230
3248
|
constructor(t, n) {
|
|
3231
3249
|
L(this, "componentId");
|
|
3232
3250
|
L(this, "viewModelId");
|
|
@@ -3322,14 +3340,14 @@ class Jl {
|
|
|
3322
3340
|
o.contents.splice(a, 1), o.contents.splice(a, 0, l);
|
|
3323
3341
|
}
|
|
3324
3342
|
}
|
|
3325
|
-
const
|
|
3343
|
+
const Zl = {
|
|
3326
3344
|
id: { type: String },
|
|
3327
3345
|
required: { type: Boolean, default: !1 },
|
|
3328
3346
|
text: { type: String, default: "" },
|
|
3329
3347
|
title: { type: String }
|
|
3330
|
-
},
|
|
3348
|
+
}, er = /* @__PURE__ */ Ie({
|
|
3331
3349
|
name: "FDynamicFormLabel",
|
|
3332
|
-
props:
|
|
3350
|
+
props: Zl,
|
|
3333
3351
|
emits: [],
|
|
3334
3352
|
setup(e, t) {
|
|
3335
3353
|
const n = g(e.title || e.text), o = g(e.required), a = g(e.text);
|
|
@@ -3346,13 +3364,13 @@ const Ql = {
|
|
|
3346
3364
|
class: "farris-label-text"
|
|
3347
3365
|
}, [a.value])]);
|
|
3348
3366
|
}
|
|
3349
|
-
}),
|
|
3367
|
+
}), tr = /* @__PURE__ */ new Map([
|
|
3350
3368
|
["appearance", ct]
|
|
3351
3369
|
]);
|
|
3352
|
-
function
|
|
3370
|
+
function nr(e, t, n) {
|
|
3353
3371
|
return t;
|
|
3354
3372
|
}
|
|
3355
|
-
const
|
|
3373
|
+
const or = "https://json-schema.org/draft/2020-12/schema", ar = "https://farris-design.gitee.io/input-group.schema.json", lr = "input-group", rr = "A Farris Input Component", ir = "object", sr = {
|
|
3356
3374
|
id: {
|
|
3357
3375
|
description: "The unique identifier for a Input Group",
|
|
3358
3376
|
type: "string"
|
|
@@ -3549,23 +3567,22 @@ const nr = "https://json-schema.org/draft/2020-12/schema", or = "https://farris-
|
|
|
3549
3567
|
type: "string",
|
|
3550
3568
|
default: ""
|
|
3551
3569
|
}
|
|
3552
|
-
},
|
|
3553
|
-
"id",
|
|
3570
|
+
}, ur = [
|
|
3554
3571
|
"type"
|
|
3555
|
-
],
|
|
3572
|
+
], cr = [
|
|
3556
3573
|
"id",
|
|
3557
3574
|
"appearance",
|
|
3558
3575
|
"binding",
|
|
3559
3576
|
"visible"
|
|
3560
|
-
],
|
|
3561
|
-
$schema:
|
|
3562
|
-
$id:
|
|
3563
|
-
title:
|
|
3564
|
-
description:
|
|
3565
|
-
type:
|
|
3566
|
-
properties:
|
|
3567
|
-
required:
|
|
3568
|
-
ignore:
|
|
3577
|
+
], dr = {
|
|
3578
|
+
$schema: or,
|
|
3579
|
+
$id: ar,
|
|
3580
|
+
title: lr,
|
|
3581
|
+
description: rr,
|
|
3582
|
+
type: ir,
|
|
3583
|
+
properties: sr,
|
|
3584
|
+
required: ur,
|
|
3585
|
+
ignore: cr
|
|
3569
3586
|
}, en = {
|
|
3570
3587
|
id: { Type: String, default: "" },
|
|
3571
3588
|
/** 是否自动完成 */
|
|
@@ -3634,15 +3651,15 @@ const nr = "https://json-schema.org/draft/2020-12/schema", or = "https://farris-
|
|
|
3634
3651
|
*/
|
|
3635
3652
|
updateOn: { type: String, default: "blur" }
|
|
3636
3653
|
};
|
|
3637
|
-
Xe(en,
|
|
3638
|
-
function
|
|
3654
|
+
Xe(en, dr, tr, nr);
|
|
3655
|
+
function fr(e, t) {
|
|
3639
3656
|
const n = g(e.groupText), o = P(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = P(() => e.enableClear || !!e.groupText);
|
|
3640
3657
|
return { appendedButtonClass: P(() => ({
|
|
3641
3658
|
"input-group-append": !0,
|
|
3642
3659
|
"append-force-show": o.value
|
|
3643
3660
|
})), appendedContent: n, shouldShowAppendedButton: a };
|
|
3644
3661
|
}
|
|
3645
|
-
function
|
|
3662
|
+
function pr(e, t, n, o) {
|
|
3646
3663
|
const { appendedContent: a } = o, l = g(e.enableViewPassword), r = P(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', c = '<span class="f-icon f-icon-eye"></span>', i = g(!1);
|
|
3647
3664
|
te(() => [e.readonly, e.disabled], ([v, S]) => {
|
|
3648
3665
|
r.value && (n.value = v || S ? "password" : n.value, a.value = v || S ? c : a.value);
|
|
@@ -3655,7 +3672,7 @@ function fr(e, t, n, o) {
|
|
|
3655
3672
|
}
|
|
3656
3673
|
return d(), { isPassword: r, onClickAppendedButton: f };
|
|
3657
3674
|
}
|
|
3658
|
-
function
|
|
3675
|
+
function mr(e, t, n) {
|
|
3659
3676
|
const o = g(), {
|
|
3660
3677
|
onBlurTextBox: a,
|
|
3661
3678
|
onFocusTextBox: l,
|
|
@@ -3695,7 +3712,7 @@ function pr(e, t, n) {
|
|
|
3695
3712
|
onKeydown: u
|
|
3696
3713
|
}, null);
|
|
3697
3714
|
}
|
|
3698
|
-
function
|
|
3715
|
+
function hr(e, t, n) {
|
|
3699
3716
|
const {
|
|
3700
3717
|
canDownward: o,
|
|
3701
3718
|
canUpward: a,
|
|
@@ -3736,12 +3753,12 @@ function mr(e, t, n) {
|
|
|
3736
3753
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
3737
3754
|
}, null)])]);
|
|
3738
3755
|
}
|
|
3739
|
-
function
|
|
3740
|
-
const n = wo(e, t), o = _o(e, t, n), a = So(e, t, o, n), l = xo(e, t, o, n, a), r =
|
|
3756
|
+
function vr(e, t) {
|
|
3757
|
+
const n = wo(e, t), o = _o(e, t, n), a = So(e, t, o, n), l = xo(e, t, o, n, a), r = hr(e, t, a), {
|
|
3741
3758
|
displayValue: u,
|
|
3742
3759
|
modelValue: c,
|
|
3743
3760
|
getRealValue: i
|
|
3744
|
-
} = n, f =
|
|
3761
|
+
} = n, f = mr(e, t, l), {
|
|
3745
3762
|
format: d
|
|
3746
3763
|
} = o, {
|
|
3747
3764
|
isFocus: v
|
|
@@ -3760,7 +3777,7 @@ function hr(e, t) {
|
|
|
3760
3777
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
3761
3778
|
}, [f(), S.value && r()]);
|
|
3762
3779
|
}
|
|
3763
|
-
function
|
|
3780
|
+
function gr(e, t, n, o) {
|
|
3764
3781
|
const a = g(), l = g(e.autocomplete), r = g(e.enableTitle), {
|
|
3765
3782
|
isPassword: u
|
|
3766
3783
|
} = n, c = g(e.minLength), i = g(e.maxLength), f = g(e.tabIndex), {
|
|
@@ -3806,7 +3823,7 @@ function vr(e, t, n, o) {
|
|
|
3806
3823
|
onMousedown: b
|
|
3807
3824
|
}, null);
|
|
3808
3825
|
}
|
|
3809
|
-
function
|
|
3826
|
+
function yr(e, t) {
|
|
3810
3827
|
const n = P(() => e.useExtendInfo && !!e.extendInfo), o = He({
|
|
3811
3828
|
content: e.extendInfo
|
|
3812
3829
|
});
|
|
@@ -3822,7 +3839,7 @@ function gr(e, t) {
|
|
|
3822
3839
|
class: "tips-arrow"
|
|
3823
3840
|
}, null)]), [[vn("tooltip"), o]]);
|
|
3824
3841
|
}
|
|
3825
|
-
function
|
|
3842
|
+
function br(e, t, n, o, a) {
|
|
3826
3843
|
const {
|
|
3827
3844
|
appendedButtonClass: l,
|
|
3828
3845
|
appendedContent: r
|
|
@@ -3874,7 +3891,7 @@ function yr(e, t, n, o, a) {
|
|
|
3874
3891
|
class: l.value
|
|
3875
3892
|
}, [S.value && C(), _ && _()]);
|
|
3876
3893
|
}
|
|
3877
|
-
const
|
|
3894
|
+
const Cr = /* @__PURE__ */ Ie({
|
|
3878
3895
|
name: "FInputGroup",
|
|
3879
3896
|
props: en,
|
|
3880
3897
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
@@ -3883,12 +3900,12 @@ const br = /* @__PURE__ */ Ie({
|
|
|
3883
3900
|
inputGroupClass: l,
|
|
3884
3901
|
inputType: r,
|
|
3885
3902
|
inputGroupStyle: u
|
|
3886
|
-
} = a, c =
|
|
3903
|
+
} = a, c = fr(e), {
|
|
3887
3904
|
shouldShowAppendedButton: i
|
|
3888
3905
|
} = c, f = mo(e, t, a), {
|
|
3889
3906
|
onMouseEnter: d,
|
|
3890
3907
|
onMouseLeave: v
|
|
3891
|
-
} = f, S =
|
|
3908
|
+
} = f, S = pr(e, t, r, c), C = vr(e, t), V = gr(e, t, S, a), O = br(e, t, c, f, S), y = yr(e, t), h = P(() => e.type === "number");
|
|
3892
3909
|
te(() => [e.value], ([b]) => {
|
|
3893
3910
|
n.value = b, o.value = b;
|
|
3894
3911
|
}), te(() => [e.modelValue], ([b]) => {
|
|
@@ -3907,13 +3924,13 @@ const br = /* @__PURE__ */ Ie({
|
|
|
3907
3924
|
}
|
|
3908
3925
|
}), q = {}, U = {}, Y = {}, X = {};
|
|
3909
3926
|
let It = !1;
|
|
3910
|
-
function
|
|
3927
|
+
function wr() {
|
|
3911
3928
|
It || (It = !0, To.register(q, U, Y, X), ko.register(q, U, Y, X), Fo.register(q, U, Y, X), Oo.register(q, U, Y, X), Bo.register(q, U, Y, X), Mo.register(q, U, Y, X), lo.register(q, U, Y, X), bt.register(q, U, Y, X), Eo.register(q, U, Y, X), Io.register(q, U, Y, X), No.register(q, U, Y, X), Vo.register(q, U, Y, X), Ro.register(q, U, Y, X), Do.register(q, U, Y, X), $o.register(q, U, Y, X), uo.register(q, U, Y, X), Po.register(q, U, Y, X), io.register(q, U, Y, X), jo.register(q, U, Y, X), Wo.register(q, U, Y, X), Ao.register(q, U, Y, X), Lo.register(q, U, Y, X), zo.register(q, U, Y, X), Go.register(q, U, Y, X), qo.register(q, U, Y, X), Uo.register(q, U, Y, X), Yo.register(q, U, Y, X), Xo.register(q, U, Y, X), Co.register(q, U, Y, X), ao.register(q, U, Y, X), Ko.register(q, U, Y, X), Jo.register(q, U, Y, X), so.register(q, U, Y, X), Qo.register(q, U, Y, X), Zo.register(q, U, Y, X), ea.register(q, U, Y, X), ta.register(q, U, Y, X), oa.register(q, U, Y, X), aa.register(q, U, Y, X), na.register(q, U, Y, X), Ca.register(q, U, Y), la.register(q, U, Y, X), ra.register(q, U, Y, X), ia.register(q, U, Y, X), sa.register(q, U, Y, X), ua.register(q, U, Y, X), ca.register(q, U, Y, X), oo.register(q, U, Y, X), da.register(q, U, Y, X), fa.register(q, U, Y, X), pa.register(q, U, Y, X), no.register(q, U, Y, X), ma.register(q, U, Y, X), va.register(q, U, Y, X), ha.register(q, U, Y, X), ga.register(q, U, Y, X), ya.register(q, U, Y, X), ba.register(q, U, Y, X), wa.register(q, U, Y, X), Ho.register(q, U, Y, X), _a.register(q, U, Y, X));
|
|
3912
3929
|
}
|
|
3913
|
-
function
|
|
3914
|
-
|
|
3930
|
+
function _r() {
|
|
3931
|
+
wr();
|
|
3915
3932
|
function e(a) {
|
|
3916
|
-
return q[a] ||
|
|
3933
|
+
return q[a] || Cr;
|
|
3917
3934
|
}
|
|
3918
3935
|
function t(a, l) {
|
|
3919
3936
|
const r = U[a];
|
|
@@ -3993,7 +4010,7 @@ function wr() {
|
|
|
3993
4010
|
}
|
|
3994
4011
|
return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
|
|
3995
4012
|
}
|
|
3996
|
-
const
|
|
4013
|
+
const Sr = /* @__PURE__ */ Ie({
|
|
3997
4014
|
name: "FDynamicFormGroup",
|
|
3998
4015
|
props: Zt,
|
|
3999
4016
|
emits: ["change", "update:modelValue"],
|
|
@@ -4005,7 +4022,7 @@ const _r = /* @__PURE__ */ Ie({
|
|
|
4005
4022
|
resolveEditorType: S,
|
|
4006
4023
|
getChangeFunctionName: C,
|
|
4007
4024
|
getClearFunctionName: V
|
|
4008
|
-
} =
|
|
4025
|
+
} = _r(), O = P(() => ({
|
|
4009
4026
|
"form-group": !0,
|
|
4010
4027
|
"farris-form-group": !0,
|
|
4011
4028
|
"common-group": !0,
|
|
@@ -4038,7 +4055,7 @@ const _r = /* @__PURE__ */ Ie({
|
|
|
4038
4055
|
class: "farris-group-wrap"
|
|
4039
4056
|
}, [x("div", {
|
|
4040
4057
|
class: O.value
|
|
4041
|
-
}, [i.value && x(
|
|
4058
|
+
}, [i.value && x(er, {
|
|
4042
4059
|
id: `${n.value}-lable`,
|
|
4043
4060
|
required: c.value,
|
|
4044
4061
|
text: l.value,
|
|
@@ -4047,7 +4064,7 @@ const _r = /* @__PURE__ */ Ie({
|
|
|
4047
4064
|
class: "farris-input-wrap"
|
|
4048
4065
|
}, [p.value()])])])]);
|
|
4049
4066
|
}
|
|
4050
|
-
}),
|
|
4067
|
+
}), xr = {}, kr = {}, Qe = class Qe {
|
|
4051
4068
|
/**
|
|
4052
4069
|
* 根据绑定字段类型获取可用的输入类控件
|
|
4053
4070
|
*/
|
|
@@ -4119,11 +4136,11 @@ L(Qe, "fieldControlTypeMapping", {
|
|
|
4119
4136
|
});
|
|
4120
4137
|
let Vt = Qe;
|
|
4121
4138
|
const gt = g(0);
|
|
4122
|
-
function
|
|
4139
|
+
function Tr(e, t) {
|
|
4123
4140
|
const n = t.getBoundingClientRect(), o = e.getBoundingClientRect(), a = o.top >= n.top, l = o.top <= n.bottom;
|
|
4124
4141
|
return a && l;
|
|
4125
4142
|
}
|
|
4126
|
-
function
|
|
4143
|
+
function Fr(e) {
|
|
4127
4144
|
if (!e)
|
|
4128
4145
|
return;
|
|
4129
4146
|
let t;
|
|
@@ -4134,7 +4151,7 @@ function Tr(e) {
|
|
|
4134
4151
|
return;
|
|
4135
4152
|
const o = t.querySelector(".component-btn-group");
|
|
4136
4153
|
if (o) {
|
|
4137
|
-
if (!
|
|
4154
|
+
if (!Tr(t, e)) {
|
|
4138
4155
|
o.style.display = "none";
|
|
4139
4156
|
return;
|
|
4140
4157
|
}
|
|
@@ -4146,7 +4163,7 @@ function Tr(e) {
|
|
|
4146
4163
|
}
|
|
4147
4164
|
}
|
|
4148
4165
|
}
|
|
4149
|
-
const
|
|
4166
|
+
const Or = {
|
|
4150
4167
|
id: { type: String, default: "" },
|
|
4151
4168
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
4152
4169
|
editor: { type: Object, default: {} },
|
|
@@ -4162,12 +4179,12 @@ const Fr = {
|
|
|
4162
4179
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
4163
4180
|
};
|
|
4164
4181
|
Xe(
|
|
4165
|
-
|
|
4182
|
+
Or,
|
|
4166
4183
|
Qt,
|
|
4167
4184
|
Tt,
|
|
4168
4185
|
void 0
|
|
4169
4186
|
);
|
|
4170
|
-
const
|
|
4187
|
+
const Br = "https://json-schema.org/draft/2020-12/schema", Mr = "https://farris-design.gitee.io/grid-field-editor.schema.json", Er = "response-form-layout-setting", Ir = "A Farris Data Grid Component", Vr = "object", Nr = {
|
|
4171
4188
|
id: {
|
|
4172
4189
|
description: "The unique identifier for a Input Group",
|
|
4173
4190
|
type: "string"
|
|
@@ -4187,18 +4204,18 @@ const Or = "https://json-schema.org/draft/2020-12/schema", Br = "https://farris-
|
|
|
4187
4204
|
type: "Object",
|
|
4188
4205
|
default: null
|
|
4189
4206
|
}
|
|
4190
|
-
},
|
|
4207
|
+
}, Rr = [
|
|
4191
4208
|
"id",
|
|
4192
4209
|
"type"
|
|
4193
|
-
],
|
|
4194
|
-
$schema:
|
|
4195
|
-
$id:
|
|
4196
|
-
title:
|
|
4197
|
-
description:
|
|
4198
|
-
type:
|
|
4199
|
-
properties:
|
|
4200
|
-
required:
|
|
4201
|
-
},
|
|
4210
|
+
], Dr = {
|
|
4211
|
+
$schema: Br,
|
|
4212
|
+
$id: Mr,
|
|
4213
|
+
title: Er,
|
|
4214
|
+
description: Ir,
|
|
4215
|
+
type: Vr,
|
|
4216
|
+
properties: Nr,
|
|
4217
|
+
required: Rr
|
|
4218
|
+
}, $r = {
|
|
4202
4219
|
initialState: {
|
|
4203
4220
|
type: Object,
|
|
4204
4221
|
default: {
|
|
@@ -4209,8 +4226,8 @@ const Or = "https://json-schema.org/draft/2020-12/schema", Br = "https://farris-
|
|
|
4209
4226
|
}
|
|
4210
4227
|
}
|
|
4211
4228
|
};
|
|
4212
|
-
Sa(
|
|
4213
|
-
const
|
|
4229
|
+
Sa($r, Dr, Ml, Nl);
|
|
4230
|
+
const Pr = {
|
|
4214
4231
|
width: { Type: Number, default: 400 },
|
|
4215
4232
|
type: { Type: String, default: "info" },
|
|
4216
4233
|
title: { Type: String, default: "" },
|
|
@@ -4223,12 +4240,12 @@ const $r = {
|
|
|
4223
4240
|
function Ft() {
|
|
4224
4241
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
4225
4242
|
}
|
|
4226
|
-
async function
|
|
4243
|
+
async function jr(e) {
|
|
4227
4244
|
if (!navigator.clipboard)
|
|
4228
4245
|
throw Ft();
|
|
4229
4246
|
return navigator.clipboard.writeText(e);
|
|
4230
4247
|
}
|
|
4231
|
-
async function
|
|
4248
|
+
async function Hr(e) {
|
|
4232
4249
|
const t = document.createElement("span");
|
|
4233
4250
|
t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
|
|
4234
4251
|
const n = window.getSelection(), o = window.document.createRange();
|
|
@@ -4242,24 +4259,24 @@ async function jr(e) {
|
|
|
4242
4259
|
if (!a)
|
|
4243
4260
|
throw Ft();
|
|
4244
4261
|
}
|
|
4245
|
-
async function
|
|
4262
|
+
async function Wr(e) {
|
|
4246
4263
|
try {
|
|
4247
|
-
await
|
|
4264
|
+
await jr(e);
|
|
4248
4265
|
} catch (t) {
|
|
4249
4266
|
try {
|
|
4250
|
-
await
|
|
4267
|
+
await Hr(e);
|
|
4251
4268
|
} catch (n) {
|
|
4252
4269
|
throw n || t || Ft();
|
|
4253
4270
|
}
|
|
4254
4271
|
}
|
|
4255
4272
|
}
|
|
4256
|
-
function
|
|
4273
|
+
function Ar() {
|
|
4257
4274
|
async function e(t) {
|
|
4258
|
-
await
|
|
4275
|
+
await Wr(t);
|
|
4259
4276
|
}
|
|
4260
4277
|
return { onCopy: e };
|
|
4261
4278
|
}
|
|
4262
|
-
function
|
|
4279
|
+
function Lr(e, t, n, o) {
|
|
4263
4280
|
const a = g(14), l = g(140), r = g(""), u = g(o.value.length), c = P(() => o.value), i = P(() => ({
|
|
4264
4281
|
"font-size": `${a.value}px`,
|
|
4265
4282
|
height: "100%"
|
|
@@ -4284,14 +4301,14 @@ function Ar(e, t, n, o) {
|
|
|
4284
4301
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
4285
4302
|
}, [u.value + " / " + l.value])]);
|
|
4286
4303
|
}
|
|
4287
|
-
function
|
|
4288
|
-
const a =
|
|
4304
|
+
function Gr(e, t, n, o) {
|
|
4305
|
+
const a = Lr(e, t, n, o), l = /* @__PURE__ */ new Map([["text-area", a]]);
|
|
4289
4306
|
function r(u) {
|
|
4290
4307
|
return l.get(u) || null;
|
|
4291
4308
|
}
|
|
4292
4309
|
return { getEditorRender: r };
|
|
4293
4310
|
}
|
|
4294
|
-
function
|
|
4311
|
+
function zr() {
|
|
4295
4312
|
const e = g(!1), t = g("复制成功");
|
|
4296
4313
|
return {
|
|
4297
4314
|
feedbackStyle: P(() => {
|
|
@@ -4317,11 +4334,11 @@ function Gr() {
|
|
|
4317
4334
|
toShowFeedback: e
|
|
4318
4335
|
};
|
|
4319
4336
|
}
|
|
4320
|
-
function
|
|
4337
|
+
function qr(e, t) {
|
|
4321
4338
|
const n = t.getEditorRender(e.promptEditorType);
|
|
4322
4339
|
return () => n && n();
|
|
4323
4340
|
}
|
|
4324
|
-
function
|
|
4341
|
+
function Ur(e) {
|
|
4325
4342
|
const t = g(3), n = g(480), o = P(() => !!e.value && !!e.value.date), a = P(() => `发生时间 : ${e.value && e.value.date || ""}`), l = P(() => !!e.value && !!e.value.detail), r = P(() => {
|
|
4326
4343
|
const O = `${n.value}px`;
|
|
4327
4344
|
return {
|
|
@@ -4366,13 +4383,13 @@ function qr(e) {
|
|
|
4366
4383
|
style: "cursor: pointer;"
|
|
4367
4384
|
}, [f.value])])]);
|
|
4368
4385
|
}
|
|
4369
|
-
function
|
|
4386
|
+
function Yr(e) {
|
|
4370
4387
|
return () => x("p", {
|
|
4371
4388
|
class: "toast-msg-detail",
|
|
4372
4389
|
innerHTML: e.value
|
|
4373
4390
|
}, null);
|
|
4374
4391
|
}
|
|
4375
|
-
function
|
|
4392
|
+
function Xr(e, t, n, o) {
|
|
4376
4393
|
const a = g(e.exceptionInfo), l = P(() => {
|
|
4377
4394
|
const v = {
|
|
4378
4395
|
"f-icon": !0
|
|
@@ -4380,7 +4397,7 @@ function Yr(e, t, n, o) {
|
|
|
4380
4397
|
return v[S] = !0, v;
|
|
4381
4398
|
}), r = P(() => n.value || a.value && a.value.message), u = P(() => o.value), c = P(() => !!o.value), i = P(() => !!a.value);
|
|
4382
4399
|
function f() {
|
|
4383
|
-
return i.value ?
|
|
4400
|
+
return i.value ? Ur(a) : c.value ? Yr(u) : () => null;
|
|
4384
4401
|
}
|
|
4385
4402
|
const d = f();
|
|
4386
4403
|
return () => x(qe, null, [x("div", {
|
|
@@ -4394,7 +4411,7 @@ function Yr(e, t, n, o) {
|
|
|
4394
4411
|
innerHTML: r.value
|
|
4395
4412
|
}, null), d()])]);
|
|
4396
4413
|
}
|
|
4397
|
-
function
|
|
4414
|
+
function Kr(e, t, n) {
|
|
4398
4415
|
const {
|
|
4399
4416
|
onCopy: o
|
|
4400
4417
|
} = t, {
|
|
@@ -4420,8 +4437,8 @@ function Xr(e, t, n) {
|
|
|
4420
4437
|
style: "cursor: pointer;"
|
|
4421
4438
|
}, [r.value])]);
|
|
4422
4439
|
}
|
|
4423
|
-
function
|
|
4424
|
-
const a = g(e.type), l = g([]), r = g(e.exceptionInfo), u = g(e.okButtonText), c = g(e.cancelButtonText), i = g(!0), f = g(!0), d = P(() => !!(l.value && l.value.length)), v = P(() => r.value && r.value.date && r.value.message && r.value.detail), S = P(() => !(l.value && l.value.length) && (u.value || c.value)), C = P(() => f.value && u.value), V = P(() => i.value && c.value), O =
|
|
4440
|
+
function Jr(e, t, n, o) {
|
|
4441
|
+
const a = g(e.type), l = g([]), r = g(e.exceptionInfo), u = g(e.okButtonText), c = g(e.cancelButtonText), i = g(!0), f = g(!0), d = P(() => !!(l.value && l.value.length)), v = P(() => r.value && r.value.date && r.value.message && r.value.detail), S = P(() => !(l.value && l.value.length) && (u.value || c.value)), C = P(() => f.value && u.value), V = P(() => i.value && c.value), O = Kr(e, n, o);
|
|
4425
4442
|
function y(p) {
|
|
4426
4443
|
a.value === "question" && t.emit("reject"), t.emit("close");
|
|
4427
4444
|
}
|
|
@@ -4448,7 +4465,7 @@ function Kr(e, t, n, o) {
|
|
|
4448
4465
|
}
|
|
4449
4466
|
const it = /* @__PURE__ */ Ie({
|
|
4450
4467
|
name: "FMessageBox",
|
|
4451
|
-
props:
|
|
4468
|
+
props: Pr,
|
|
4452
4469
|
emits: ["accept", "reject", "close"],
|
|
4453
4470
|
setup(e, t) {
|
|
4454
4471
|
const n = g(e.type), o = g(e.title), a = g(e.detail), l = P(() => {
|
|
@@ -4461,7 +4478,7 @@ const it = /* @__PURE__ */ Ie({
|
|
|
4461
4478
|
}), r = P(() => {
|
|
4462
4479
|
const O = {};
|
|
4463
4480
|
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;
|
|
4464
|
-
}), u =
|
|
4481
|
+
}), u = Ar(), c = Gr(e, n, o, a), i = zr(), {
|
|
4465
4482
|
feedbackStyle: f,
|
|
4466
4483
|
feedbackMessage: d
|
|
4467
4484
|
} = i;
|
|
@@ -4473,12 +4490,12 @@ const it = /* @__PURE__ */ Ie({
|
|
|
4473
4490
|
function S() {
|
|
4474
4491
|
switch (n.value) {
|
|
4475
4492
|
case "prompt":
|
|
4476
|
-
return
|
|
4493
|
+
return qr(e, c);
|
|
4477
4494
|
default:
|
|
4478
|
-
return
|
|
4495
|
+
return Xr(e, n, o, a);
|
|
4479
4496
|
}
|
|
4480
4497
|
}
|
|
4481
|
-
const C = S(), V =
|
|
4498
|
+
const C = S(), V = Jr(e, t, u, i);
|
|
4482
4499
|
return () => x("div", {
|
|
4483
4500
|
class: "farris-messager"
|
|
4484
4501
|
}, [x("section", {
|
|
@@ -4486,7 +4503,7 @@ const it = /* @__PURE__ */ Ie({
|
|
|
4486
4503
|
style: r.value
|
|
4487
4504
|
}, [C()]), V(), v()]);
|
|
4488
4505
|
}
|
|
4489
|
-
}),
|
|
4506
|
+
}), Qr = {
|
|
4490
4507
|
/**
|
|
4491
4508
|
* 自定义类
|
|
4492
4509
|
*/
|
|
@@ -4630,7 +4647,7 @@ class Ue {
|
|
|
4630
4647
|
return this.width = t.width, this.height = t.height, this;
|
|
4631
4648
|
}
|
|
4632
4649
|
}
|
|
4633
|
-
function
|
|
4650
|
+
function Zr(e, t) {
|
|
4634
4651
|
const n = g(), o = g(), a = g(), l = g(), r = g(), u = g(), c = g(), i = g(), f = g(), d = g(), v = g(), S = g(), C = g(e.draggable), V = g(!1);
|
|
4635
4652
|
function O() {
|
|
4636
4653
|
const I = o.value || document.body, N = window.getComputedStyle(I);
|
|
@@ -4815,7 +4832,7 @@ function Qr(e, t) {
|
|
|
4815
4832
|
unWindowResizeHandle: $
|
|
4816
4833
|
};
|
|
4817
4834
|
}
|
|
4818
|
-
function
|
|
4835
|
+
function ei(e, t, n) {
|
|
4819
4836
|
const o = g(), a = g(e.draggable), l = g(e.lockAxis), r = g(), u = g(), c = g(!1), i = g(new ke(0, 0)), f = g(new ke(0, 0)), d = g(new ke(0, 0)), v = g(new ke(0, 0));
|
|
4820
4837
|
te(() => n.value, (T) => {
|
|
4821
4838
|
r.value.style.cursor = T ? "move" : "default";
|
|
@@ -4905,7 +4922,7 @@ function tn(e, t) {
|
|
|
4905
4922
|
};
|
|
4906
4923
|
}
|
|
4907
4924
|
}
|
|
4908
|
-
function
|
|
4925
|
+
function ti(e, t) {
|
|
4909
4926
|
const n = g(e.enableEsc);
|
|
4910
4927
|
let o = null;
|
|
4911
4928
|
return n.value ? (o = tn("Escape", (a) => {
|
|
@@ -4914,7 +4931,7 @@ function ei(e, t) {
|
|
|
4914
4931
|
remove: o
|
|
4915
4932
|
}) : null;
|
|
4916
4933
|
}
|
|
4917
|
-
function
|
|
4934
|
+
function ni(e, t) {
|
|
4918
4935
|
const n = g(e.enableEnter);
|
|
4919
4936
|
let o = null;
|
|
4920
4937
|
return n.value ? (o = tn("Enter", (a) => {
|
|
@@ -4925,7 +4942,7 @@ function ti(e, t) {
|
|
|
4925
4942
|
}
|
|
4926
4943
|
const nn = /* @__PURE__ */ Ie({
|
|
4927
4944
|
name: "FModal",
|
|
4928
|
-
props:
|
|
4945
|
+
props: Qr,
|
|
4929
4946
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
|
|
4930
4947
|
setup(e, t) {
|
|
4931
4948
|
const n = g(e.width || 300), o = g(e.height || 200), a = g(e.modelValue), l = g(""), r = g(e.class), u = g(e.fitContent), c = g(e.showHeader), i = g(""), f = g(e.showCloseButton), d = g(e.showMaxButton), v = g(!1), S = g(""), C = g(""), V = g(""), O = g(e.showButtons), y = g(e.title), h = g(e.reiszeable), p = g(e.containment || null), b = g();
|
|
@@ -4954,9 +4971,9 @@ const nn = /* @__PURE__ */ Ie({
|
|
|
4954
4971
|
resizedEventParam: I,
|
|
4955
4972
|
allowDrag: N,
|
|
4956
4973
|
unWindowResizeHandle: j
|
|
4957
|
-
} =
|
|
4974
|
+
} = Zr(e), {
|
|
4958
4975
|
registerDraggle: D
|
|
4959
|
-
} =
|
|
4976
|
+
} = ei(e, t, N);
|
|
4960
4977
|
te(() => e.title, (A, ae) => {
|
|
4961
4978
|
A !== ae && (y.value = A);
|
|
4962
4979
|
}), te(() => e.modelValue, (A, ae) => {
|
|
@@ -5035,7 +5052,7 @@ const nn = /* @__PURE__ */ Ie({
|
|
|
5035
5052
|
}
|
|
5036
5053
|
let _e = null, ie = null;
|
|
5037
5054
|
Pe(() => {
|
|
5038
|
-
B.value && !p.value && (p.value = B.value.parentElement, $.value = p.value, D(F.value, B.value, $.value)), K.value && document.body.classList.add("modal-open"), _e =
|
|
5055
|
+
B.value && !p.value && (p.value = B.value.parentElement, $.value = p.value, D(F.value, B.value, $.value)), K.value && document.body.classList.add("modal-open"), _e = ti(e, t), ie = ni(e, t);
|
|
5039
5056
|
}), at(() => {
|
|
5040
5057
|
H(), j && j(), _e && _e.remove(), ie && ie.remove();
|
|
5041
5058
|
}), t.expose({
|
|
@@ -5138,7 +5155,7 @@ function on(e) {
|
|
|
5138
5155
|
if (e.render && typeof e.render == "function")
|
|
5139
5156
|
return e.render;
|
|
5140
5157
|
}
|
|
5141
|
-
function
|
|
5158
|
+
function oi(e) {
|
|
5142
5159
|
const t = document.createElement("div");
|
|
5143
5160
|
t.style.display = "contents";
|
|
5144
5161
|
const n = $t({
|
|
@@ -5181,7 +5198,7 @@ function ni(e) {
|
|
|
5181
5198
|
});
|
|
5182
5199
|
return document.body.appendChild(t), n.mount(t), n;
|
|
5183
5200
|
}
|
|
5184
|
-
class
|
|
5201
|
+
class ai {
|
|
5185
5202
|
constructor(t) {
|
|
5186
5203
|
L(this, "appContext", null);
|
|
5187
5204
|
L(this, "modalRef", g());
|
|
@@ -5200,7 +5217,7 @@ class oi {
|
|
|
5200
5217
|
showButtons: !0,
|
|
5201
5218
|
showHeader: !0
|
|
5202
5219
|
}, t);
|
|
5203
|
-
return
|
|
5220
|
+
return oi(n);
|
|
5204
5221
|
}
|
|
5205
5222
|
open(t) {
|
|
5206
5223
|
const n = document.createDocumentFragment();
|
|
@@ -5271,7 +5288,7 @@ class ze {
|
|
|
5271
5288
|
}), o = !1, a = n.type === "error" || n.type === "prompt", l = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", r = n.acceptCallback || (() => {
|
|
5272
5289
|
}), u = n.rejectCallback || (() => {
|
|
5273
5290
|
});
|
|
5274
|
-
let c = null, i = new
|
|
5291
|
+
let c = null, i = new ai(c);
|
|
5275
5292
|
const f = () => {
|
|
5276
5293
|
c && (c == null || c.destroy(), i = null);
|
|
5277
5294
|
};
|
|
@@ -5361,7 +5378,7 @@ it.install = (e) => {
|
|
|
5361
5378
|
e.component(it.name, it), e.provide("FMessageBoxService", ze);
|
|
5362
5379
|
};
|
|
5363
5380
|
var an = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(an || {}), ln = /* @__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))(ln || {});
|
|
5364
|
-
const
|
|
5381
|
+
const li = [
|
|
5365
5382
|
{
|
|
5366
5383
|
value: "0",
|
|
5367
5384
|
name: "等于"
|
|
@@ -5398,7 +5415,7 @@ const ai = [
|
|
|
5398
5415
|
value: "8",
|
|
5399
5416
|
name: "结束是"
|
|
5400
5417
|
}
|
|
5401
|
-
],
|
|
5418
|
+
], ri = {
|
|
5402
5419
|
"button-edit": ["0", "1", " 6", "7", "8"],
|
|
5403
5420
|
"check-box": ["0"],
|
|
5404
5421
|
"combo-list": ["0", "1"],
|
|
@@ -5418,14 +5435,14 @@ const ai = [
|
|
|
5418
5435
|
"radio-group": ["0"],
|
|
5419
5436
|
text: ["0", "1", " 6", "7", "8"]
|
|
5420
5437
|
};
|
|
5421
|
-
function
|
|
5438
|
+
function ii(e, t, n) {
|
|
5422
5439
|
const { fieldMap: o } = n;
|
|
5423
5440
|
function a(l) {
|
|
5424
5441
|
const r = o.get(l.fieldCode);
|
|
5425
5442
|
if (!r)
|
|
5426
5443
|
return [];
|
|
5427
|
-
const u = r.editor.type, c = new Set(
|
|
5428
|
-
return
|
|
5444
|
+
const u = r.editor.type, c = new Set(ri[u]);
|
|
5445
|
+
return li.filter((f) => c.has(f.value));
|
|
5429
5446
|
}
|
|
5430
5447
|
return { getCompareOperators: a };
|
|
5431
5448
|
}
|
|
@@ -5598,7 +5615,7 @@ function rn() {
|
|
|
5598
5615
|
unGroup: p
|
|
5599
5616
|
};
|
|
5600
5617
|
}
|
|
5601
|
-
function
|
|
5618
|
+
function si(e, t, n) {
|
|
5602
5619
|
const o = g(/* @__PURE__ */ new Set()), a = g(/* @__PURE__ */ new Set()), { conditionGroupMap: l, groupParentMap: r } = n;
|
|
5603
5620
|
let u, c;
|
|
5604
5621
|
function i(y) {
|
|
@@ -5665,12 +5682,12 @@ const yt = /* @__PURE__ */ Ie({
|
|
|
5665
5682
|
unGroup: p
|
|
5666
5683
|
} = i, {
|
|
5667
5684
|
createConditionValue: b
|
|
5668
|
-
} = Kt(), w =
|
|
5685
|
+
} = Kt(), w = si(e, t, i), {
|
|
5669
5686
|
selectedItems: _,
|
|
5670
5687
|
toggleSelect: T
|
|
5671
5688
|
} = w, {
|
|
5672
5689
|
getCompareOperators: m
|
|
5673
|
-
} =
|
|
5690
|
+
} = ii(e, t, a);
|
|
5674
5691
|
c(!1), r.value = l(r.value), V(o.value);
|
|
5675
5692
|
function s(N) {
|
|
5676
5693
|
var D;
|
|
@@ -5718,7 +5735,7 @@ const yt = /* @__PURE__ */ Ie({
|
|
|
5718
5735
|
onChange: (H) => F(H, j)
|
|
5719
5736
|
}, null)]), x("div", {
|
|
5720
5737
|
class: "condition-list-item-control mr-3"
|
|
5721
|
-
}, [x(
|
|
5738
|
+
}, [x(Sr, {
|
|
5722
5739
|
editor: (D = u.get(j.fieldCode)) == null ? void 0 : D.editor,
|
|
5723
5740
|
showLabel: !1,
|
|
5724
5741
|
modelValue: j.value.value,
|
|
@@ -5801,7 +5818,7 @@ const yt = /* @__PURE__ */ Ie({
|
|
|
5801
5818
|
yt.install = (e) => {
|
|
5802
5819
|
e.component(Et.name, Et).component(yt.name, yt);
|
|
5803
5820
|
};
|
|
5804
|
-
const
|
|
5821
|
+
const ui = [
|
|
5805
5822
|
"equal",
|
|
5806
5823
|
"notEqual",
|
|
5807
5824
|
"greaterThan",
|
|
@@ -5811,16 +5828,16 @@ const si = [
|
|
|
5811
5828
|
"contain",
|
|
5812
5829
|
"startWidth",
|
|
5813
5830
|
"endWidth"
|
|
5814
|
-
],
|
|
5831
|
+
], ci = {
|
|
5815
5832
|
equal: (e, t, n) => e && e[t] === n,
|
|
5816
5833
|
notEqual: (e, t, n) => e && e[t] !== n,
|
|
5817
5834
|
contain: (e, t, n) => e ? (e[t] || "").indexOf(n) > -1 : !1,
|
|
5818
5835
|
startWidth: (e, t, n) => e ? (e[t] || "").startsWith(n) : !1,
|
|
5819
5836
|
endWidth: (e, t, n) => e ? (e[t] || "").endsWith(n) : !1
|
|
5820
|
-
},
|
|
5837
|
+
}, di = {
|
|
5821
5838
|
equal: (e, t, n) => e && e[t] === n,
|
|
5822
5839
|
notEqual: (e, t, n) => e && e[t] !== n
|
|
5823
|
-
},
|
|
5840
|
+
}, fi = {
|
|
5824
5841
|
equal: (e, t, n) => {
|
|
5825
5842
|
if (e) {
|
|
5826
5843
|
const o = new Date(new Date(n).toLocaleDateString()).valueOf();
|
|
@@ -5863,10 +5880,10 @@ const si = [
|
|
|
5863
5880
|
}
|
|
5864
5881
|
return !1;
|
|
5865
5882
|
}
|
|
5866
|
-
},
|
|
5883
|
+
}, pi = {
|
|
5867
5884
|
equal: (e, t, n) => e ? String(n).split(",").includes(String(e[t])) : !1,
|
|
5868
5885
|
notEqual: (e, t, n) => e ? String(n).split(",").findIndex((a) => a === String(e[t])) === -1 : !1
|
|
5869
|
-
},
|
|
5886
|
+
}, mi = {
|
|
5870
5887
|
equal: (e, t, n) => {
|
|
5871
5888
|
if (e) {
|
|
5872
5889
|
const o = Number.parseFloat(String(n)), a = Number.parseFloat(String(e[t]));
|
|
@@ -5912,11 +5929,11 @@ const si = [
|
|
|
5912
5929
|
};
|
|
5913
5930
|
function sn() {
|
|
5914
5931
|
const e = g([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } = rn(), o = /* @__PURE__ */ new Map([
|
|
5915
|
-
["boolean",
|
|
5916
|
-
["datetime",
|
|
5917
|
-
["enum",
|
|
5918
|
-
["number",
|
|
5919
|
-
["text",
|
|
5932
|
+
["boolean", di],
|
|
5933
|
+
["datetime", fi],
|
|
5934
|
+
["enum", pi],
|
|
5935
|
+
["number", mi],
|
|
5936
|
+
["text", ci]
|
|
5920
5937
|
]);
|
|
5921
5938
|
function a(d) {
|
|
5922
5939
|
t.delete(d), e.value = Array.from(t.values());
|
|
@@ -5925,7 +5942,7 @@ function sn() {
|
|
|
5925
5942
|
t.clear(), e.value = [];
|
|
5926
5943
|
}
|
|
5927
5944
|
function r(d) {
|
|
5928
|
-
const { valueType: v } = d.value, S = d.compareType || "0", C =
|
|
5945
|
+
const { valueType: v } = d.value, S = d.compareType || "0", C = ui[Number(S)];
|
|
5929
5946
|
return o.get(v)[C];
|
|
5930
5947
|
}
|
|
5931
5948
|
function u(d) {
|
|
@@ -6040,7 +6057,7 @@ function un(e, t) {
|
|
|
6040
6057
|
}
|
|
6041
6058
|
return { collpaseGroupIconClass: O, generateGroupData: V, groupFields: l, shouldGroupingData: r, showGroupPanel: u };
|
|
6042
6059
|
}
|
|
6043
|
-
function
|
|
6060
|
+
function hi(e, t, n, o) {
|
|
6044
6061
|
const a = g(!!e.hierarchy), { idField: l } = o, { collapseField: r, hasChildrenField: u, parentIdField: c } = n, i = /* @__PURE__ */ new Map();
|
|
6045
6062
|
function f(M, R) {
|
|
6046
6063
|
const k = /* @__PURE__ */ new Map();
|
|
@@ -6184,7 +6201,7 @@ function mi(e, t, n, o) {
|
|
|
6184
6201
|
}
|
|
6185
6202
|
return { generateHierarchyData: m, hasRealChildren: _, insertSibling: s, insertChild: F, shouldStratifyData: a, trimmedOriginalData: B };
|
|
6186
6203
|
}
|
|
6187
|
-
const
|
|
6204
|
+
const vi = {
|
|
6188
6205
|
showCloseButton: { type: Boolean, default: !0 },
|
|
6189
6206
|
position: { type: String, default: "top-center" },
|
|
6190
6207
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -6196,13 +6213,13 @@ const hi = {
|
|
|
6196
6213
|
id: { type: String },
|
|
6197
6214
|
animate: { type: String, default: "fadeIn" },
|
|
6198
6215
|
options: { type: Object }
|
|
6199
|
-
},
|
|
6216
|
+
}, gi = {
|
|
6200
6217
|
showCloseButton: { type: Boolean, default: !0 },
|
|
6201
6218
|
animate: { type: String, default: "fadeIn" },
|
|
6202
6219
|
options: { type: Object }
|
|
6203
6220
|
}, _t = /* @__PURE__ */ Ie({
|
|
6204
6221
|
name: "Toast",
|
|
6205
|
-
props:
|
|
6222
|
+
props: gi,
|
|
6206
6223
|
emits: ["close", "click"],
|
|
6207
6224
|
setup: (e, t) => {
|
|
6208
6225
|
const n = g(e.animate), o = "fadeOut", a = P(() => e.options), l = g(!1), r = P(() => {
|
|
@@ -6275,7 +6292,7 @@ const hi = {
|
|
|
6275
6292
|
}
|
|
6276
6293
|
}), st = /* @__PURE__ */ Ie({
|
|
6277
6294
|
name: "Notify",
|
|
6278
|
-
props:
|
|
6295
|
+
props: vi,
|
|
6279
6296
|
emits: ["close", "empty"],
|
|
6280
6297
|
setup(e, t) {
|
|
6281
6298
|
const n = P(() => ({
|
|
@@ -6431,22 +6448,22 @@ class cn {
|
|
|
6431
6448
|
}), this.notifyRefs.length = 0;
|
|
6432
6449
|
}
|
|
6433
6450
|
}
|
|
6434
|
-
const
|
|
6451
|
+
const yi = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
6435
6452
|
st.install = (e) => {
|
|
6436
6453
|
e.component(st.name, st), e.component(_t.name, _t);
|
|
6437
6454
|
const t = new cn();
|
|
6438
|
-
e.provide(
|
|
6455
|
+
e.provide(yi, t), e.provide("FNotifyService", t);
|
|
6439
6456
|
};
|
|
6440
|
-
function
|
|
6457
|
+
function bi(e, t, n, o, a) {
|
|
6441
6458
|
var lt;
|
|
6442
|
-
const { pageSize: l, total: r, shouldRenderPagination: u, currentPage: c, mode: i } = a, f = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), V = g([]), O = g([]), y = sn(), h = un(e, o), { generateGroupData: p, groupFields: b, shouldGroupingData: w } = h, _ = g(e.data), T =
|
|
6459
|
+
const { pageSize: l, total: r, shouldRenderPagination: u, currentPage: c, mode: i } = a, f = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), V = g([]), O = g([]), y = sn(), h = un(e, o), { generateGroupData: p, groupFields: b, shouldGroupingData: w } = h, _ = g(e.data), T = hi(e, _, n, o), {
|
|
6443
6460
|
generateHierarchyData: m,
|
|
6444
6461
|
hasRealChildren: s,
|
|
6445
6462
|
insertSibling: F,
|
|
6446
6463
|
insertChild: B,
|
|
6447
6464
|
shouldStratifyData: M,
|
|
6448
6465
|
trimmedOriginalData: R
|
|
6449
|
-
} = T, { idField: k, reviseIdentifyField: E } = o, $ = g(e.newDataItem), I = g(e.data), N = g(e.data), { flatTreeData: j } =
|
|
6466
|
+
} = T, { idField: k, reviseIdentifyField: E } = o, $ = g(e.newDataItem), I = g(e.data), N = g(e.data), { flatTreeData: j } = Gi(e);
|
|
6450
6467
|
function D(W) {
|
|
6451
6468
|
return j(W);
|
|
6452
6469
|
}
|
|
@@ -6662,7 +6679,7 @@ function yi(e, t, n, o, a) {
|
|
|
6662
6679
|
originalData: _
|
|
6663
6680
|
};
|
|
6664
6681
|
}
|
|
6665
|
-
function
|
|
6682
|
+
function Ci() {
|
|
6666
6683
|
function t(r) {
|
|
6667
6684
|
return r.field;
|
|
6668
6685
|
}
|
|
@@ -6686,7 +6703,7 @@ function bi() {
|
|
|
6686
6703
|
}
|
|
6687
6704
|
return { getFilterHistory: n, removeFilterHistory: l, setFilterHistory: o, updateFilterHistory: a };
|
|
6688
6705
|
}
|
|
6689
|
-
function
|
|
6706
|
+
function wi(e) {
|
|
6690
6707
|
g(e.selection.showCheckbox || !1);
|
|
6691
6708
|
const t = P(() => {
|
|
6692
6709
|
var r;
|
|
@@ -6700,7 +6717,7 @@ function Ci(e) {
|
|
|
6700
6717
|
}), a = P(() => e.hierarchy && e.selection.showCheckbox), l = P(() => (e.treeNodeIconsData.fold || e.iconField) && e.showTreeNodeIcons);
|
|
6701
6718
|
return { collapseField: t, hasChildrenField: n, parentIdField: o, shouldShowCheckBox: a, shouldShowIcon: l };
|
|
6702
6719
|
}
|
|
6703
|
-
function
|
|
6720
|
+
function _i(e, t, n, o) {
|
|
6704
6721
|
var V, O, y, h, p, b;
|
|
6705
6722
|
const { idField: a } = n, l = g(((O = (V = e.hierarchy) == null ? void 0 : V.cascadeOption) == null ? void 0 : O.autoCheckChildren) || !1), r = g(((h = (y = e.hierarchy) == null ? void 0 : y.cascadeOption) == null ? void 0 : h.autoCheckParent) || !1), u = g(((b = (p = e.hierarchy) == null ? void 0 : p.cascadeOption) == null ? void 0 : b.selectionRange) || "All");
|
|
6706
6723
|
te(() => {
|
|
@@ -6743,8 +6760,8 @@ function wi(e, t, n, o) {
|
|
|
6743
6760
|
}
|
|
6744
6761
|
return { autoCheckChildren: l, autoCheckParent: r, interactAfterCheckHierarchyItem: C };
|
|
6745
6762
|
}
|
|
6746
|
-
function
|
|
6747
|
-
const { select: l, unSelect: r, indeterminate: u, getSelectedItems: c, selectedValues: i, currentSelectedDataId: f } = o, { autoCheckChildren: d, autoCheckParent: v, interactAfterCheckHierarchyItem: S } =
|
|
6763
|
+
function Si(e, t, n, o, a) {
|
|
6764
|
+
const { select: l, unSelect: r, indeterminate: u, getSelectedItems: c, selectedValues: i, currentSelectedDataId: f } = o, { autoCheckChildren: d, autoCheckParent: v, interactAfterCheckHierarchyItem: S } = _i(e, t, n), { idField: C } = n;
|
|
6748
6765
|
function V() {
|
|
6749
6766
|
return t.value.filter((m) => !!m.checked).map((m) => m.raw.__fv_index__);
|
|
6750
6767
|
}
|
|
@@ -6794,7 +6811,7 @@ function _i(e, t, n, o, a) {
|
|
|
6794
6811
|
}
|
|
6795
6812
|
return { getNextSelectableHierarchyItemId: T, toggleSelectHierarchyItem: b };
|
|
6796
6813
|
}
|
|
6797
|
-
function
|
|
6814
|
+
function xi(e, t, n, o, a, l, r, u) {
|
|
6798
6815
|
var je;
|
|
6799
6816
|
const { dataView: c } = t, { getVisualData: i, maxVisibleRowIndex: f, minVisibleRowIndex: d } = a, v = g(o.value.primaryColumnsWidth), S = g(o.value.leftColumnsWidth), C = g(o.value.rightColumnsWidth), V = ((je = e.rowOption) == null ? void 0 : je.height) || 28, O = g(0), y = g(0);
|
|
6800
6817
|
let h = 0, p = l.value - 1;
|
|
@@ -6953,7 +6970,7 @@ function Si(e, t, n, o, a, l, r, u) {
|
|
|
6953
6970
|
offsetY: O
|
|
6954
6971
|
};
|
|
6955
6972
|
}
|
|
6956
|
-
function
|
|
6973
|
+
function ki(e, t, n, o, a, l, r, u) {
|
|
6957
6974
|
const c = g(o.value - 1 + a), i = g(0), { renderDataRow: f } = l, d = f, v = f;
|
|
6958
6975
|
function S(O) {
|
|
6959
6976
|
let y = f;
|
|
@@ -6978,7 +6995,7 @@ function xi(e, t, n, o, a, l, r, u) {
|
|
|
6978
6995
|
}
|
|
6979
6996
|
return { getVisualData: C, maxVisibleRowIndex: c, minVisibleRowIndex: i, toggleGroupRow: V };
|
|
6980
6997
|
}
|
|
6981
|
-
function
|
|
6998
|
+
function Ti() {
|
|
6982
6999
|
function e(t, n) {
|
|
6983
7000
|
const {
|
|
6984
7001
|
formatter: o
|
|
@@ -6989,7 +7006,7 @@ function ki() {
|
|
|
6989
7006
|
renderEnumColumn: e
|
|
6990
7007
|
};
|
|
6991
7008
|
}
|
|
6992
|
-
function
|
|
7009
|
+
function Fi() {
|
|
6993
7010
|
function e(o, a) {
|
|
6994
7011
|
return o ? x("span", {
|
|
6995
7012
|
innerHTML: a.formatter.trueText
|
|
@@ -7014,7 +7031,7 @@ function Ti() {
|
|
|
7014
7031
|
renderBooleanColumn: n
|
|
7015
7032
|
};
|
|
7016
7033
|
}
|
|
7017
|
-
function
|
|
7034
|
+
function Oi() {
|
|
7018
7035
|
const {
|
|
7019
7036
|
formatTo: e
|
|
7020
7037
|
} = ho();
|
|
@@ -7029,7 +7046,7 @@ function Fi() {
|
|
|
7029
7046
|
renderDateColumn: n
|
|
7030
7047
|
};
|
|
7031
7048
|
}
|
|
7032
|
-
function
|
|
7049
|
+
function Bi() {
|
|
7033
7050
|
const {
|
|
7034
7051
|
formatTo: e
|
|
7035
7052
|
} = vo();
|
|
@@ -7053,16 +7070,16 @@ function Oi() {
|
|
|
7053
7070
|
renderNumberColumn: n
|
|
7054
7071
|
};
|
|
7055
7072
|
}
|
|
7056
|
-
function
|
|
7073
|
+
function Mi() {
|
|
7057
7074
|
const {
|
|
7058
7075
|
renderBooleanColumn: e
|
|
7059
|
-
} =
|
|
7076
|
+
} = Fi(), {
|
|
7060
7077
|
renderEnumColumn: t
|
|
7061
|
-
} =
|
|
7078
|
+
} = Ti(), {
|
|
7062
7079
|
renderNumberColumn: n
|
|
7063
|
-
} =
|
|
7080
|
+
} = Bi(), {
|
|
7064
7081
|
renderDateColumn: o
|
|
7065
|
-
} =
|
|
7082
|
+
} = Oi();
|
|
7066
7083
|
function a(u) {
|
|
7067
7084
|
return u;
|
|
7068
7085
|
}
|
|
@@ -7082,9 +7099,9 @@ function Bi() {
|
|
|
7082
7099
|
renderFormatColumn: r
|
|
7083
7100
|
};
|
|
7084
7101
|
}
|
|
7085
|
-
function
|
|
7102
|
+
function Ei(e, t, n) {
|
|
7086
7103
|
var O;
|
|
7087
|
-
const o = g(e.mergeCell), l = ((O = g(e.rowOption).value) == null ? void 0 : O.wrapContent) || !1, { updateVisualInfomation: r } = n, { renderCommandColumn: u } =
|
|
7104
|
+
const o = g(e.mergeCell), l = ((O = g(e.rowOption).value) == null ? void 0 : O.wrapContent) || !1, { updateVisualInfomation: r } = n, { renderCommandColumn: u } = el(), { renderFormatColumn: c } = Mi();
|
|
7088
7105
|
function i(y, h, p, b, w, _ = 1) {
|
|
7089
7106
|
const T = {
|
|
7090
7107
|
colSpan: _,
|
|
@@ -7144,7 +7161,7 @@ function Mi(e, t, n) {
|
|
|
7144
7161
|
}
|
|
7145
7162
|
return { createCellByColumn: V, createCellByField: i };
|
|
7146
7163
|
}
|
|
7147
|
-
function
|
|
7164
|
+
function Ii(e, t, n, o, a, l) {
|
|
7148
7165
|
var y, h;
|
|
7149
7166
|
const r = g(e.rowOption), u = ((y = r.value) == null ? void 0 : y.height) || 28, c = ((h = r.value) == null ? void 0 : h.wrapContent) || !1, { idField: i } = o, { collapseField: f } = n, { updateRowPosition: d } = a, { createCellByColumn: v } = l;
|
|
7150
7167
|
function S(p, b, w, _, T, m, s) {
|
|
@@ -7202,7 +7219,7 @@ function Ei(e, t, n, o, a, l) {
|
|
|
7202
7219
|
}
|
|
7203
7220
|
return { createEmptyRow: S, createNewRowFromDataItem: C, renderDataRow: O };
|
|
7204
7221
|
}
|
|
7205
|
-
function
|
|
7222
|
+
function Vi(e, t, n) {
|
|
7206
7223
|
var m;
|
|
7207
7224
|
const {
|
|
7208
7225
|
idField: o
|
|
@@ -7286,7 +7303,7 @@ function Ii(e, t, n) {
|
|
|
7286
7303
|
getEditor: T
|
|
7287
7304
|
};
|
|
7288
7305
|
}
|
|
7289
|
-
function
|
|
7306
|
+
function Ni(e) {
|
|
7290
7307
|
const t = g(e.idField);
|
|
7291
7308
|
function n(o) {
|
|
7292
7309
|
if (o && o.length) {
|
|
@@ -7296,7 +7313,7 @@ function Vi(e) {
|
|
|
7296
7313
|
}
|
|
7297
7314
|
return { idField: t, reviseIdentifyField: n };
|
|
7298
7315
|
}
|
|
7299
|
-
function
|
|
7316
|
+
function Ri(e, t, n, o) {
|
|
7300
7317
|
const { idField: a } = o, {
|
|
7301
7318
|
currentSelectedDataId: l,
|
|
7302
7319
|
multiSelectOnClickRow: r,
|
|
@@ -7376,7 +7393,7 @@ function Ni(e, t, n, o) {
|
|
|
7376
7393
|
onMouseoutRow: b
|
|
7377
7394
|
};
|
|
7378
7395
|
}
|
|
7379
|
-
function
|
|
7396
|
+
function Di(e, t, n, o, a) {
|
|
7380
7397
|
const { idField: l } = n, r = g(""), u = P(() => e.selection.enableSelectRow), c = g(e.selection.multiSelect ?? !1), i = g(e.selection.multiSelectMode), f = g(e.selection.showCheckbox), d = g(e.selection.showSelectAll), v = g(e.selectionValues);
|
|
7381
7398
|
te(() => e.selection.showSelectAll, (D, H) => {
|
|
7382
7399
|
D !== H && (d.value = D);
|
|
@@ -7494,7 +7511,7 @@ function Ri(e, t, n, o, a) {
|
|
|
7494
7511
|
unSelectAll: N
|
|
7495
7512
|
};
|
|
7496
7513
|
}
|
|
7497
|
-
function
|
|
7514
|
+
function $i(e, t) {
|
|
7498
7515
|
var O, y;
|
|
7499
7516
|
const n = String(Date.now()), o = 50, { showCheckBox: a, showSelectAll: l } = t, r = g(((O = e.rowNumber) == null ? void 0 : O.enable) ?? !1), u = P(() => e.hierarchy && a.value && e.selection.enableSelectRow && e.selection.multiSelect ? !1 : a.value), c = g(r.value ? ((y = e.rowNumber) == null ? void 0 : y.width) ?? 32 : 0), i = g(u.value ? o : 0), f = P(() => {
|
|
7500
7517
|
var h;
|
|
@@ -7521,10 +7538,10 @@ function Di(e, t) {
|
|
|
7521
7538
|
}
|
|
7522
7539
|
return { showRowNumer: r, showSidebarCheckBox: u, sidebarCellPosition: v, sidebarCornerCellStyle: S, sidebarTitle: f, sidebarWidth: d, rowKey: V, cellKey: C };
|
|
7523
7540
|
}
|
|
7524
|
-
const
|
|
7541
|
+
const Pi = {
|
|
7525
7542
|
ascend: (e, t) => e === t ? 0 : e === !1 ? -1 : 1,
|
|
7526
7543
|
decend: (e, t) => e === t ? 0 : e === !0 ? -1 : 1
|
|
7527
|
-
},
|
|
7544
|
+
}, ji = {
|
|
7528
7545
|
ascend: (e, t) => {
|
|
7529
7546
|
const n = new Date(new Date(e).toLocaleDateString()).valueOf(), o = new Date(new Date(t).toLocaleDateString()).valueOf();
|
|
7530
7547
|
return n === o ? 0 : n < o ? -1 : 1;
|
|
@@ -7533,14 +7550,14 @@ const $i = {
|
|
|
7533
7550
|
const n = new Date(new Date(e).toLocaleDateString()).valueOf(), o = new Date(new Date(t).toLocaleDateString()).valueOf();
|
|
7534
7551
|
return n === o ? 0 : n < o ? 1 : -1;
|
|
7535
7552
|
}
|
|
7536
|
-
},
|
|
7553
|
+
}, Hi = {
|
|
7537
7554
|
ascend: (e, t) => e === t ? 0 : e < t ? -1 : 1,
|
|
7538
7555
|
decend: (e, t) => e === t ? 0 : e < t ? 1 : -1
|
|
7539
|
-
},
|
|
7556
|
+
}, Wi = {
|
|
7540
7557
|
ascend: (e, t) => e === t ? 0 : e < t ? -1 : 1,
|
|
7541
7558
|
decend: (e, t) => e === t ? 0 : e < t ? 1 : -1
|
|
7542
7559
|
};
|
|
7543
|
-
function
|
|
7560
|
+
function Ai(e) {
|
|
7544
7561
|
const t = /* @__PURE__ */ new Map([
|
|
7545
7562
|
["boolean", "boolean-sorter"],
|
|
7546
7563
|
["date", "datetime-sorter"],
|
|
@@ -7551,10 +7568,10 @@ function Wi(e) {
|
|
|
7551
7568
|
["enum", "text-sorter"],
|
|
7552
7569
|
["reference", "text-sorter"]
|
|
7553
7570
|
]), n = /* @__PURE__ */ new Map([
|
|
7554
|
-
["boolean-sorter",
|
|
7555
|
-
["datetime-sorter",
|
|
7556
|
-
["numeric-sorter",
|
|
7557
|
-
["text-sorter",
|
|
7571
|
+
["boolean-sorter", Pi],
|
|
7572
|
+
["datetime-sorter", ji],
|
|
7573
|
+
["numeric-sorter", Hi],
|
|
7574
|
+
["text-sorter", Wi]
|
|
7558
7575
|
]);
|
|
7559
7576
|
function o(r) {
|
|
7560
7577
|
const u = (r == null ? void 0 : r.dataType) || "string", c = t.get(u) || "text-sorter";
|
|
@@ -7576,7 +7593,7 @@ function Wi(e) {
|
|
|
7576
7593
|
function Ge(e) {
|
|
7577
7594
|
return typeof e > "u";
|
|
7578
7595
|
}
|
|
7579
|
-
function
|
|
7596
|
+
function Li(e) {
|
|
7580
7597
|
var d, v, S, C, V, O, y, h;
|
|
7581
7598
|
const t = g((d = e.pagination) == null ? void 0 : d.enable), n = g(((v = e.pagination) == null ? void 0 : v.index) || 1), o = g((S = e.pagination) == null ? void 0 : S.size), a = g((C = e.pagination) == null ? void 0 : C.sizeLimits), l = g((V = e.pagination) == null ? void 0 : V.mode), r = g((O = e.pagination) == null ? void 0 : O.showIndex), u = g((y = e.pagination) == null ? void 0 : y.showLimits), c = g(((h = e.pagination) == null ? void 0 : h.total) || 0), i = g(c.value || e.data.length || 0);
|
|
7582
7599
|
return te(() => {
|
|
@@ -7625,7 +7642,7 @@ function Ai(e) {
|
|
|
7625
7642
|
}
|
|
7626
7643
|
};
|
|
7627
7644
|
}
|
|
7628
|
-
function
|
|
7645
|
+
function Gi(e) {
|
|
7629
7646
|
const t = "parent", n = "layer", o = "hasChildren", a = (l, r = 1, u = [], c = null) => (l = l || [], l.reduce((i, f) => (f.id = f.id || f.data[e.idField], f[t] = c, f[n] = r, f[o] = !1, f = { ...f, ...f.data }, u.push(f), f.children && f.children.length && (f[o] = !0, a(f.children, r + 1, u, f.id)), i), u), u);
|
|
7630
7647
|
return { flatTreeData: a };
|
|
7631
7648
|
}
|
|
@@ -7642,7 +7659,7 @@ function dn(e, t, n, o, a, l, r, u, c, i, f, d, v, S, C, V) {
|
|
|
7642
7659
|
rightFixedGridDataStyle: _
|
|
7643
7660
|
} = S, {
|
|
7644
7661
|
renderDataRow: T
|
|
7645
|
-
} =
|
|
7662
|
+
} = Ka(e, t, y, V, u, c, i, f, d, v), m = [T];
|
|
7646
7663
|
function s(k, E) {
|
|
7647
7664
|
const $ = O(k);
|
|
7648
7665
|
return V.value.filter((I) => I.visible !== !1).map((I) => m[I.type](I, $, E, k));
|
|
@@ -7822,7 +7839,7 @@ const ut = /* @__PURE__ */ Ie({
|
|
|
7822
7839
|
}
|
|
7823
7840
|
}, [ge(i), he(), je(), J()]), ae(), e.disabled && Ve()]);
|
|
7824
7841
|
}
|
|
7825
|
-
}),
|
|
7842
|
+
}), zi = "https://json-schema.org/draft/2020-12/schema", qi = "https://farris-design.gitee.io/check-box.schema.json", Ui = "check-box", Yi = "A Farris Input Component", Xi = "object", Ki = {
|
|
7826
7843
|
id: {
|
|
7827
7844
|
description: "The unique identifier for a check box",
|
|
7828
7845
|
type: "string"
|
|
@@ -7889,27 +7906,26 @@ const ut = /* @__PURE__ */ Ie({
|
|
|
7889
7906
|
type: "boolean",
|
|
7890
7907
|
default: !0
|
|
7891
7908
|
}
|
|
7892
|
-
},
|
|
7893
|
-
"id",
|
|
7909
|
+
}, Ji = [
|
|
7894
7910
|
"type"
|
|
7895
|
-
],
|
|
7911
|
+
], Qi = [
|
|
7896
7912
|
"id",
|
|
7897
7913
|
"appearance",
|
|
7898
7914
|
"binding",
|
|
7899
7915
|
"visible"
|
|
7900
|
-
],
|
|
7901
|
-
$schema:
|
|
7902
|
-
$id:
|
|
7903
|
-
title:
|
|
7904
|
-
description:
|
|
7905
|
-
type:
|
|
7906
|
-
properties:
|
|
7907
|
-
required:
|
|
7908
|
-
ignore:
|
|
7909
|
-
},
|
|
7916
|
+
], Zi = {
|
|
7917
|
+
$schema: zi,
|
|
7918
|
+
$id: qi,
|
|
7919
|
+
title: Ui,
|
|
7920
|
+
description: Yi,
|
|
7921
|
+
type: Xi,
|
|
7922
|
+
properties: Ki,
|
|
7923
|
+
required: Ji,
|
|
7924
|
+
ignore: Qi
|
|
7925
|
+
}, es = /* @__PURE__ */ new Map([
|
|
7910
7926
|
["appearance", ct]
|
|
7911
7927
|
]);
|
|
7912
|
-
function
|
|
7928
|
+
function ts(e, t, n) {
|
|
7913
7929
|
return t;
|
|
7914
7930
|
}
|
|
7915
7931
|
const fn = {
|
|
@@ -7940,8 +7956,8 @@ const fn = {
|
|
|
7940
7956
|
/** 标识是否被选中 */
|
|
7941
7957
|
checked: { type: Boolean, default: !1 }
|
|
7942
7958
|
};
|
|
7943
|
-
Xe(fn,
|
|
7944
|
-
const
|
|
7959
|
+
Xe(fn, Zi, es, ts);
|
|
7960
|
+
const ns = /* @__PURE__ */ Ie({
|
|
7945
7961
|
name: "FCheckBox",
|
|
7946
7962
|
props: fn,
|
|
7947
7963
|
emits: ["change", "changeValue", "update:modelValue", "update:checked"],
|
|
@@ -8002,7 +8018,7 @@ const ts = /* @__PURE__ */ Ie({
|
|
|
8002
8018
|
}, [(w = (b = t.slots).default) == null ? void 0 : w.call(b)])])]);
|
|
8003
8019
|
};
|
|
8004
8020
|
}
|
|
8005
|
-
}),
|
|
8021
|
+
}), os = {
|
|
8006
8022
|
id: { type: String, default: "" },
|
|
8007
8023
|
componentId: { type: String, default: "" },
|
|
8008
8024
|
type: { type: String, default: "" },
|
|
@@ -8017,11 +8033,11 @@ const ts = /* @__PURE__ */ Ie({
|
|
|
8017
8033
|
*/
|
|
8018
8034
|
modelValue: { type: Object },
|
|
8019
8035
|
ignore: { type: Boolean, default: !1 }
|
|
8020
|
-
},
|
|
8036
|
+
}, as = {
|
|
8021
8037
|
id: { type: String }
|
|
8022
|
-
},
|
|
8038
|
+
}, ls = /* @__PURE__ */ Ie({
|
|
8023
8039
|
name: "FDesignerPlaceholder",
|
|
8024
|
-
props:
|
|
8040
|
+
props: as,
|
|
8025
8041
|
emits: [],
|
|
8026
8042
|
setup(e) {
|
|
8027
8043
|
const t = P(() => ({
|
|
@@ -8050,12 +8066,12 @@ const ts = /* @__PURE__ */ Ie({
|
|
|
8050
8066
|
}, [De("拖拽组件到这里")]);
|
|
8051
8067
|
}
|
|
8052
8068
|
});
|
|
8053
|
-
function
|
|
8069
|
+
function rs(e) {
|
|
8054
8070
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !_n(e);
|
|
8055
8071
|
}
|
|
8056
8072
|
const St = /* @__PURE__ */ Ie({
|
|
8057
8073
|
name: "FDesignerItem",
|
|
8058
|
-
props:
|
|
8074
|
+
props: os,
|
|
8059
8075
|
emits: ["selectionChange"],
|
|
8060
8076
|
setup(e, t) {
|
|
8061
8077
|
const n = g(`${e.modelValue.id}-component`), o = g(e.canMove), a = g(e.canDelete), l = g(!1), r = g(e.modelValue), u = g(e.componentId || ""), c = g(""), i = g(""), f = g(e.customClass), d = g(), v = Ze("canvas-dragula"), S = g(), C = Ze("design-item-context"), V = {
|
|
@@ -8152,12 +8168,12 @@ const St = /* @__PURE__ */ Ie({
|
|
|
8152
8168
|
}
|
|
8153
8169
|
function s(k) {
|
|
8154
8170
|
let E;
|
|
8155
|
-
const $ = k.type, I =
|
|
8171
|
+
const $ = k.type, I = xr[$], N = kr[$], j = N ? N(k) : {};
|
|
8156
8172
|
j.customClass = e.ignore ? j.customClass : "", j.componentId = u.value, j.id = k.id;
|
|
8157
8173
|
const D = k.contents && k.contents.length === 0;
|
|
8158
8174
|
return k.contents && !!k.contents.length && I ? x(I, Ye({
|
|
8159
8175
|
ref: S
|
|
8160
|
-
}, j),
|
|
8176
|
+
}, j), rs(E = k.contents.map((K) => x(St, {
|
|
8161
8177
|
key: K.id,
|
|
8162
8178
|
modelValue: K,
|
|
8163
8179
|
"onUpdate:modelValue": (ne) => K = ne,
|
|
@@ -8168,7 +8184,7 @@ const St = /* @__PURE__ */ Ie({
|
|
|
8168
8184
|
}) : I ? D ? x(I, Ye({
|
|
8169
8185
|
ref: S
|
|
8170
8186
|
}, j), {
|
|
8171
|
-
default: () => [x(
|
|
8187
|
+
default: () => [x(ls, null, null)]
|
|
8172
8188
|
}) : x(I, Ye({
|
|
8173
8189
|
ref: S
|
|
8174
8190
|
}, j), null) : x("div", null, null);
|
|
@@ -8191,7 +8207,7 @@ const St = /* @__PURE__ */ Ie({
|
|
|
8191
8207
|
});
|
|
8192
8208
|
function B(k) {
|
|
8193
8209
|
const E = k == null ? void 0 : k.target;
|
|
8194
|
-
|
|
8210
|
+
Fr(E);
|
|
8195
8211
|
}
|
|
8196
8212
|
function M() {
|
|
8197
8213
|
var k, E;
|
|
@@ -8227,7 +8243,7 @@ const St = /* @__PURE__ */ Ie({
|
|
|
8227
8243
|
}, [T(r.value), s(r.value)]);
|
|
8228
8244
|
}
|
|
8229
8245
|
});
|
|
8230
|
-
function
|
|
8246
|
+
function is(e, t, n, o, a, l, r, u, c, i, f, d, v, S, C, V, O, y, h, p = "data-grid-column") {
|
|
8231
8247
|
const {
|
|
8232
8248
|
showSelectAll: b,
|
|
8233
8249
|
selectAll: w,
|
|
@@ -8332,7 +8348,7 @@ function rs(e, t, n, o, a, l, r, u, c, i, f, d, v, S, C, V, O, y, h, p = "data-g
|
|
|
8332
8348
|
return x("div", {
|
|
8333
8349
|
class: "fv-grid-header-corner d-flex",
|
|
8334
8350
|
style: B.value
|
|
8335
|
-
}, [b.value && x(
|
|
8351
|
+
}, [b.value && x(ns, {
|
|
8336
8352
|
id: "checkbox_for_select_all",
|
|
8337
8353
|
indeterminate: ue.value,
|
|
8338
8354
|
modelValue: G.value,
|
|
@@ -8358,7 +8374,7 @@ function rs(e, t, n, o, a, l, r, u, c, i, f, d, v, S, C, V, O, y, h, p = "data-g
|
|
|
8358
8374
|
renderGridHeader: ie
|
|
8359
8375
|
};
|
|
8360
8376
|
}
|
|
8361
|
-
class
|
|
8377
|
+
class ss extends Ql {
|
|
8362
8378
|
constructor(t, n) {
|
|
8363
8379
|
super(t, n);
|
|
8364
8380
|
}
|
|
@@ -8432,19 +8448,6 @@ class is extends Jl {
|
|
|
8432
8448
|
type: "boolean",
|
|
8433
8449
|
description: "是否显示设置按钮"
|
|
8434
8450
|
}
|
|
8435
|
-
// useBlankWhenDataIsEmpty: {
|
|
8436
|
-
// title: '空数据表格显示空白行',
|
|
8437
|
-
// description: '表格没有数据时是否显示空白行',
|
|
8438
|
-
// type: 'boolean',
|
|
8439
|
-
// refreshPanelAfterChanged: true
|
|
8440
|
-
// },
|
|
8441
|
-
// emptyDataHeight: {
|
|
8442
|
-
// title: '空数据高度',
|
|
8443
|
-
// type: 'number',
|
|
8444
|
-
// description: '空数据行高度设置',
|
|
8445
|
-
// min: 1,
|
|
8446
|
-
// max: 1000
|
|
8447
|
-
// },
|
|
8448
8451
|
},
|
|
8449
8452
|
setPropertyRelates(l, r) {
|
|
8450
8453
|
switch (l && l.propertyID) {
|
|
@@ -8494,6 +8497,10 @@ class is extends Jl {
|
|
|
8494
8497
|
{
|
|
8495
8498
|
label: "onSelectionChange",
|
|
8496
8499
|
name: "行切换事件"
|
|
8500
|
+
},
|
|
8501
|
+
{
|
|
8502
|
+
label: "onClickRow",
|
|
8503
|
+
name: "行点击事件"
|
|
8497
8504
|
}
|
|
8498
8505
|
], o = this, a = o.eventsEditorUtils.formProperties(t, o.viewModelId, n), l = {};
|
|
8499
8506
|
l[o.viewModelId] = {
|
|
@@ -8516,7 +8523,7 @@ class is extends Jl {
|
|
|
8516
8523
|
};
|
|
8517
8524
|
}
|
|
8518
8525
|
}
|
|
8519
|
-
function
|
|
8526
|
+
function us(e, t) {
|
|
8520
8527
|
const n = e.schema, o = g(!0), a = g(!0);
|
|
8521
8528
|
function l(f) {
|
|
8522
8529
|
return f && f.sourceType === "control" ? f.componentCategory === "input" : !1;
|
|
@@ -8531,7 +8538,7 @@ function ss(e, t) {
|
|
|
8531
8538
|
return !0;
|
|
8532
8539
|
}
|
|
8533
8540
|
function i(f) {
|
|
8534
|
-
return new
|
|
8541
|
+
return new ss(f, t).getPropertyConfig(n);
|
|
8535
8542
|
}
|
|
8536
8543
|
return {
|
|
8537
8544
|
canAccepts: l,
|
|
@@ -8543,40 +8550,40 @@ function ss(e, t) {
|
|
|
8543
8550
|
getPropsConfig: i
|
|
8544
8551
|
};
|
|
8545
8552
|
}
|
|
8546
|
-
const
|
|
8553
|
+
const cs = /* @__PURE__ */ Ie({
|
|
8547
8554
|
name: "FTreeGridDesign",
|
|
8548
8555
|
props: zt,
|
|
8549
8556
|
emits: [],
|
|
8550
8557
|
setup(e, t) {
|
|
8551
8558
|
var Se;
|
|
8552
|
-
const n = g(), o = 0, a = 100, l = g(), r = g(), u = g(), c = g(), i = g([]), f = g(!1), d = g(((Se = e.rowOption) == null ? void 0 : Se.wrapContent) || !1), v = Ze("designer-host-service"), S = Ze("design-item-context"), C =
|
|
8559
|
+
const n = g(), o = 0, a = 100, l = g(), r = g(), u = g(), c = g(), i = g([]), f = g(!1), d = g(((Se = e.rowOption) == null ? void 0 : Se.wrapContent) || !1), v = Ze("designer-host-service"), S = Ze("design-item-context"), C = us(S, v), V = Jl(n, S, C);
|
|
8553
8560
|
V.value.designerClass = "f-utils-fill-flex-column";
|
|
8554
|
-
const O =
|
|
8561
|
+
const O = Ni(e), y = un(e, O), h = sn(), p = wi(e), b = Li(e), w = bi(e, /* @__PURE__ */ new Map(), p, O, b), _ = Di(e, w, O, i, t), T = Si(e, i, O, _, t), m = P(() => Math.min(w.dataView.value.length, a)), {
|
|
8555
8562
|
containerStyleObject: s
|
|
8556
|
-
} =
|
|
8563
|
+
} = nl(e), F = pl(e), B = g(e.columns), {
|
|
8557
8564
|
applyCommands: M
|
|
8558
8565
|
} = F;
|
|
8559
8566
|
M(B);
|
|
8560
|
-
const R =
|
|
8567
|
+
const R = ol(e), k = Ai(), {
|
|
8561
8568
|
applyColumnSorter: E,
|
|
8562
8569
|
columnContext: $,
|
|
8563
8570
|
updateColumnRenderContext: I
|
|
8564
8571
|
} = R;
|
|
8565
8572
|
E(w, k);
|
|
8566
|
-
const N =
|
|
8573
|
+
const N = vl(e, $), j = Vi(e, t, O), D = Ut(), H = Ei(e, j, D), K = Ii(e, j, p, O, D, H), ne = ki(e, B, w, m, o, K), {
|
|
8567
8574
|
getVisualData: ce
|
|
8568
|
-
} = ne, Fe = qt(e, $), pe =
|
|
8575
|
+
} = ne, Fe = qt(e, $), pe = $i(e, _), {
|
|
8569
8576
|
sidebarWidth: we
|
|
8570
8577
|
} = pe;
|
|
8571
8578
|
i.value = ce(0, m.value + o - 1);
|
|
8572
|
-
const be =
|
|
8579
|
+
const be = xi(e, w, i, $, ne, m, o, we), {
|
|
8573
8580
|
onWheel: Ce,
|
|
8574
8581
|
dataGridWidth: de,
|
|
8575
8582
|
viewPortHeight: me,
|
|
8576
8583
|
viewPortWidth: G
|
|
8577
|
-
} = be, z =
|
|
8584
|
+
} = be, z = hl(e, $, l, G, N), {
|
|
8578
8585
|
calculateColumnsSize: ue
|
|
8579
|
-
} = z, _e =
|
|
8586
|
+
} = z, _e = Ci(), ie = fl(l, c, w, _e, be), oe = Ri(e, t, _, O), fe = ml(e, t, R, w, N, y, be), ve = P(() => ({
|
|
8580
8587
|
"drag-container": !0,
|
|
8581
8588
|
"fv-grid": !0,
|
|
8582
8589
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -8589,13 +8596,13 @@ const us = /* @__PURE__ */ Ie({
|
|
|
8589
8596
|
renderDataArea: A
|
|
8590
8597
|
} = dn(e, t, r, u, c, Fe, R, w, j, p, oe, _, T, be, ne, i), {
|
|
8591
8598
|
renderGridHeader: ae
|
|
8592
|
-
} =
|
|
8599
|
+
} = is(S, e, l, u, c, R, w, fe, ie, h, _e, z, N, _, pe, k, be, G, i, "tree-grid-column"), {
|
|
8593
8600
|
renderDataGridSidebar: ge
|
|
8594
|
-
} =
|
|
8601
|
+
} = Qa(e, oe, _, pe, be), {
|
|
8595
8602
|
renderHorizontalScrollbar: Ve
|
|
8596
|
-
} =
|
|
8603
|
+
} = Ja(e, l, be), {
|
|
8597
8604
|
renderVerticalScrollbar: je
|
|
8598
|
-
} =
|
|
8605
|
+
} = Za(e, l, be);
|
|
8599
8606
|
function J() {
|
|
8600
8607
|
var Oe, Ne;
|
|
8601
8608
|
me.value = ((Oe = r.value) == null ? void 0 : Oe.clientHeight) || 0, de.value = ((Ne = l.value) == null ? void 0 : Ne.clientWidth) || 0, ue();
|
|
@@ -8610,7 +8617,7 @@ const us = /* @__PURE__ */ Ie({
|
|
|
8610
8617
|
});
|
|
8611
8618
|
const ee = P(() => !i.value || !i.value.length), {
|
|
8612
8619
|
renderEmpty: se
|
|
8613
|
-
} =
|
|
8620
|
+
} = tl(t);
|
|
8614
8621
|
return t.expose(V.value), () => x("div", {
|
|
8615
8622
|
ref: n,
|
|
8616
8623
|
dragref: `${S.schema.id}-container`,
|
|
@@ -8630,29 +8637,29 @@ const us = /* @__PURE__ */ Ie({
|
|
|
8630
8637
|
}
|
|
8631
8638
|
});
|
|
8632
8639
|
ut.register = (e, t, n, o) => {
|
|
8633
|
-
e["tree-grid"] = ut, t["tree-grid"] =
|
|
8640
|
+
e["tree-grid"] = ut, t["tree-grid"] = La, o["tree-grid"] = { bindingResolver: za, selectionItemResolver: Ga };
|
|
8634
8641
|
};
|
|
8635
8642
|
ut.registerDesigner = (e, t, n) => {
|
|
8636
|
-
e["tree-grid"] =
|
|
8643
|
+
e["tree-grid"] = cs, t["tree-grid"] = qa;
|
|
8637
8644
|
};
|
|
8638
|
-
const
|
|
8645
|
+
const ju = bo(ut);
|
|
8639
8646
|
export {
|
|
8640
8647
|
ut as FTreeGrid,
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8648
|
+
za as bindingResolver,
|
|
8649
|
+
Du as columnOptions,
|
|
8650
|
+
ju as default,
|
|
8651
|
+
qa as designPropsResolver,
|
|
8652
|
+
$u as editOptions,
|
|
8653
|
+
Iu as filterOptions,
|
|
8654
|
+
Eu as groupOptions,
|
|
8655
|
+
Vu as headerOptions,
|
|
8656
|
+
Pu as loadingOptions,
|
|
8657
|
+
Bu as paginationOptions,
|
|
8658
|
+
La as propsResolver,
|
|
8659
|
+
Nu as rowOptions,
|
|
8660
|
+
Ga as selectionItemResolver,
|
|
8661
|
+
Mu as sortOptions,
|
|
8662
|
+
Ru as summaryOptions,
|
|
8656
8663
|
zt as treeGridDesignProps,
|
|
8657
8664
|
kt as treeGridProps
|
|
8658
8665
|
};
|