@farris/ui-vue 1.7.2-beta.1 → 1.7.2-beta.2
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/avatar/index.esm.js +155 -148
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +226 -224
- package/components/calendar/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +225 -223
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +76 -71
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +169 -167
- package/components/comment/index.umd.cjs +6 -6
- package/components/component/index.esm.js +3691 -3043
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +2015 -1352
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +407 -430
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3082 -3196
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3364 -2713
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +66 -64
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1176 -524
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +182 -180
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +531 -455
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +2352 -1700
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +8 -3
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-bar/index.esm.js +422 -413
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +8 -3
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/image/index.esm.js +363 -354
- package/components/image/index.umd.cjs +2 -2
- package/components/language-textbox/index.esm.js +189 -187
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-view/index.esm.js +388 -389
- package/components/list-view/index.umd.cjs +5 -5
- package/components/mapping-editor/index.esm.js +1465 -1488
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +180 -173
- package/components/number-range/index.umd.cjs +1 -1
- package/components/order/index.esm.js +815 -811
- package/components/order/index.umd.cjs +5 -5
- package/components/property-panel/index.esm.js +429 -420
- package/components/property-panel/index.umd.cjs +3 -3
- package/components/query-solution/index.esm.js +4746 -4085
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/schema-selector/index.esm.js +1401 -1402
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/section/index.esm.js +102 -100
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +8 -3
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +537 -538
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +280 -283
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +200 -202
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +533 -519
- package/components/uploader/index.umd.cjs +2 -2
- package/designer/data-grid/index.esm.js +3806 -3905
- package/designer/data-grid/index.umd.cjs +9 -9
- package/designer/drawer/index.esm.js +188 -186
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +1562 -1073
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +9793 -8613
- package/designer/farris-designer.all.umd.cjs +8 -8
- package/designer/list-view/index.esm.js +564 -564
- package/designer/list-view/index.umd.cjs +6 -6
- package/designer/radio-group/index.esm.js +236 -229
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +178 -171
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +3154 -2508
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +193 -186
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +444 -447
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +60126 -59649
- package/farris.all.umd.cjs +30 -30
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/components.d.ts +1 -1
- package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
- package/types/data-grid/index.d.ts +2 -5
- package/types/data-grid/src/data-grid.component.d.ts +1 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/appearance/use-cell-position.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +0 -4
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +2 -2
- package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +2 -3
- package/types/data-view/composition/visualization/use-visual-data-row.d.ts +1 -2
- package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
- package/types/dynamic-form/designer.d.ts +0 -1
- package/types/dynamic-form/index.d.ts +4 -3
- package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
- package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
- package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
- package/types/dynamic-form/src/response-form.props.d.ts +13 -1
- package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -0
- package/types/dynamic-resolver/src/types.d.ts +1 -0
- package/types/dynamic-view/index.d.ts +43 -3
- package/types/dynamic-view/src/components/maps.d.ts +6 -6
- package/types/dynamic-view/src/composition/index.d.ts +5 -0
- package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
- package/types/language-textbox/index.d.ts +3 -3
- package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
- package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/tree-grid/src/components/data/data-area.component.d.ts +2 -2
- package/types/tree-grid/src/tree-grid.props.d.ts +0 -1
- package/types/tree-view/src/components/data/tree-area.component.d.ts +1 -1
- package/types/tree-view/src/tree-view.props.d.ts +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var S = (i, t, e) =>
|
|
4
|
-
import { ref as w, computed as $, createVNode as b, defineComponent as Q, inject as _, onMounted as K, mergeProps as
|
|
5
|
-
import { resolveAppearance as
|
|
6
|
-
import { DgControl as v, canvasChanged as
|
|
7
|
-
import { useGuid as se, getMaxZIndex as
|
|
8
|
-
import { useConditionValue as
|
|
9
|
-
import { useCondition as
|
|
10
|
-
import { FNotifyService as
|
|
11
|
-
import { LocaleService as
|
|
12
|
-
import { cloneDeep as
|
|
13
|
-
import { FDynamicFormGroup as
|
|
14
|
-
import { radioGroupProps as
|
|
15
|
-
import { useDataSource as
|
|
16
|
-
import { DgControl as
|
|
17
|
-
const
|
|
18
|
-
["appearance",
|
|
1
|
+
var $e = Object.defineProperty;
|
|
2
|
+
var je = (i, t, e) => t in i ? $e(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var S = (i, t, e) => je(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { ref as w, computed as $, createVNode as b, defineComponent as Q, inject as _, onMounted as K, mergeProps as qe, createTextVNode as z, Fragment as ce, Teleport as We, nextTick as te, provide as ue, watch as fe, onUnmounted as pe } from "vue";
|
|
5
|
+
import { resolveAppearance as ze, getSchemaByType as oe, createPropsResolver as Ge } from "../dynamic-resolver/index.esm.js";
|
|
6
|
+
import { DgControl as v, canvasChanged as J, refreshCanvas as De, useDesignerComponent as Qe } from "../designer-canvas/index.esm.js";
|
|
7
|
+
import { useGuid as se, getMaxZIndex as _e, getCustomStyle as me, FormSchemaEntityField$Type as le, FormSchemaEntityFieldType$Type as Xe } from "../common/index.esm.js";
|
|
8
|
+
import { useConditionValue as Ze, useConditionUtils as ie } from "../condition/index.esm.js";
|
|
9
|
+
import { useCondition as Je, useSolutionUtils as ge } from "../query-solution/index.esm.js";
|
|
10
|
+
import { FNotifyService as Ye } from "../notify/index.esm.js";
|
|
11
|
+
import { LocaleService as ve } from "../locale/index.esm.js";
|
|
12
|
+
import { cloneDeep as X, isPlainObject as ae } from "lodash-es";
|
|
13
|
+
import { FDynamicFormGroup as He, useTypeResolver as he } from "../dynamic-form/index.esm.js";
|
|
14
|
+
import { radioGroupProps as Ke } from "../radio-group/index.esm.js";
|
|
15
|
+
import { useDataSource as et, FComboListContainer as tt } from "../combo-list/index.esm.js";
|
|
16
|
+
import { DgControl as it } from "../designer-canvas/index.esm.js/";
|
|
17
|
+
const ye = /* @__PURE__ */ new Map([
|
|
18
|
+
["appearance", ze]
|
|
19
19
|
]);
|
|
20
|
-
function
|
|
20
|
+
function nt(i, t) {
|
|
21
21
|
const e = t == null ? void 0 : t.formSchemaUtils, n = i.parentComponentInstance, r = "54bddc89-5f7e-4b91-9c45-80dd6606cfe9";
|
|
22
22
|
function s() {
|
|
23
|
-
const u = oe(v["content-container"].type),
|
|
24
|
-
if (!u || !
|
|
23
|
+
const u = oe(v["content-container"].type), d = oe(v["filter-bar"].type);
|
|
24
|
+
if (!u || !d)
|
|
25
25
|
return;
|
|
26
26
|
const o = Math.random().toString(36).substr(2, 4);
|
|
27
27
|
Object.assign(u, {
|
|
@@ -29,12 +29,12 @@ function it(i, t) {
|
|
|
29
29
|
appearance: {
|
|
30
30
|
class: "f-filter-container"
|
|
31
31
|
},
|
|
32
|
-
contents: [
|
|
33
|
-
}), Object.assign(
|
|
32
|
+
contents: [d]
|
|
33
|
+
}), Object.assign(d, {
|
|
34
34
|
id: "filter-" + o,
|
|
35
35
|
fields: []
|
|
36
36
|
});
|
|
37
|
-
const
|
|
37
|
+
const c = n.belongedComponentId, g = e.getViewModelIdByComponentId(c), f = e.getViewModelById(g);
|
|
38
38
|
return f != null && f.states && (f.states.find((p) => p.code === "originalFilterConditionList") || f.states.push(
|
|
39
39
|
{
|
|
40
40
|
id: se().guid(),
|
|
@@ -43,16 +43,16 @@ function it(i, t) {
|
|
|
43
43
|
name: "筛选条过滤条件",
|
|
44
44
|
type: "String"
|
|
45
45
|
}
|
|
46
|
-
)), { filterBar:
|
|
46
|
+
)), { filterBar: d, filterBarContainer: u };
|
|
47
47
|
}
|
|
48
48
|
function l() {
|
|
49
|
-
const u = e.getViewModelIdByComponentId(n.belongedComponentId),
|
|
49
|
+
const u = e.getViewModelIdByComponentId(n.belongedComponentId), d = e.getViewModelById(u);
|
|
50
50
|
let o;
|
|
51
|
-
if (
|
|
52
|
-
if (o =
|
|
51
|
+
if (d && d.commands) {
|
|
52
|
+
if (o = d.commands.find((c) => c.handlerName === "Filter" && c.cmpId === r), !o)
|
|
53
53
|
o = {
|
|
54
54
|
id: se().guid(),
|
|
55
|
-
code: `${
|
|
55
|
+
code: `${d.id.replace(/-/g, "").replace("component", "").replace("viewmodel", "")}Filter1`,
|
|
56
56
|
name: "过滤并加载数据1",
|
|
57
57
|
params: [
|
|
58
58
|
{
|
|
@@ -70,25 +70,25 @@ function it(i, t) {
|
|
|
70
70
|
],
|
|
71
71
|
handlerName: "Filter",
|
|
72
72
|
cmpId: r
|
|
73
|
-
},
|
|
73
|
+
}, d.commands.push(o);
|
|
74
74
|
else if (o.params && o.params.length) {
|
|
75
|
-
const
|
|
76
|
-
|
|
75
|
+
const c = o.params.find((g) => g.name === "filter");
|
|
76
|
+
c && (c.value = `{UISTATE~/#{${n.belongedComponentId}}/originalFilterConditionList}`);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
return { filterInGridViewModel: o };
|
|
80
80
|
}
|
|
81
81
|
function m(u) {
|
|
82
|
-
const
|
|
83
|
-
if (!
|
|
82
|
+
const d = e.getCommands();
|
|
83
|
+
if (!d)
|
|
84
84
|
return;
|
|
85
|
-
let o =
|
|
85
|
+
let o = d.find((c) => c.id === r);
|
|
86
86
|
o || (o = {
|
|
87
87
|
id: r,
|
|
88
88
|
path: "igix/Web/WebCmp/bo-webcmp/metadata/webcmd/data-commands",
|
|
89
89
|
name: "LoadCommands.webcmd",
|
|
90
90
|
refedHandlers: []
|
|
91
|
-
}, e.getCommands().push(o)), u && !o.refedHandlers.find((
|
|
91
|
+
}, e.getCommands().push(o)), u && !o.refedHandlers.find((c) => c.host === u.id) && o.refedHandlers.push(
|
|
92
92
|
{
|
|
93
93
|
host: u.id,
|
|
94
94
|
handler: "Filter"
|
|
@@ -96,22 +96,22 @@ function it(i, t) {
|
|
|
96
96
|
);
|
|
97
97
|
}
|
|
98
98
|
function a() {
|
|
99
|
-
const { filterBar: u, filterBarContainer:
|
|
99
|
+
const { filterBar: u, filterBarContainer: d } = s(), { filterInGridViewModel: o } = l();
|
|
100
100
|
u && o && (u.onQuery = o.code), m(o);
|
|
101
|
-
const
|
|
102
|
-
return
|
|
101
|
+
const c = t == null ? void 0 : t.useFormCommand;
|
|
102
|
+
return c && c.checkCommands(), d;
|
|
103
103
|
}
|
|
104
104
|
return { createFilterBar: a };
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function be(i, t, e, n) {
|
|
107
107
|
if (e.parentComponentInstance && n) {
|
|
108
|
-
const l =
|
|
108
|
+
const l = nt(e, n).createFilterBar();
|
|
109
109
|
if (l)
|
|
110
110
|
return l;
|
|
111
111
|
}
|
|
112
112
|
return t;
|
|
113
113
|
}
|
|
114
|
-
const
|
|
114
|
+
const rt = "https://json-schema.org/draft/2020-12/schema", ot = "https://farris-design.gitee.io/filter-bar.schema.json", st = "filter-bar", lt = "A Farris Component", at = "object", dt = {
|
|
115
115
|
id: {
|
|
116
116
|
description: "The unique identifier for filter-bar",
|
|
117
117
|
type: "string"
|
|
@@ -155,20 +155,20 @@ const nt = "https://json-schema.org/draft/2020-12/schema", rt = "https://farris-
|
|
|
155
155
|
description: "",
|
|
156
156
|
type: "string"
|
|
157
157
|
}
|
|
158
|
-
},
|
|
158
|
+
}, ct = [
|
|
159
159
|
"id",
|
|
160
160
|
"type"
|
|
161
|
-
],
|
|
161
|
+
], ut = {
|
|
162
162
|
onQuery: "查询事件"
|
|
163
|
-
},
|
|
164
|
-
$schema:
|
|
165
|
-
$id:
|
|
166
|
-
title:
|
|
167
|
-
description:
|
|
168
|
-
type:
|
|
169
|
-
properties:
|
|
170
|
-
required:
|
|
171
|
-
events:
|
|
163
|
+
}, Ce = {
|
|
164
|
+
$schema: rt,
|
|
165
|
+
$id: ot,
|
|
166
|
+
title: st,
|
|
167
|
+
description: lt,
|
|
168
|
+
type: at,
|
|
169
|
+
properties: dt,
|
|
170
|
+
required: ct,
|
|
171
|
+
events: ut
|
|
172
172
|
}, ne = {
|
|
173
173
|
/** 指定已设的筛选条件列表 */
|
|
174
174
|
defaultValues: {
|
|
@@ -187,9 +187,9 @@ const nt = "https://json-schema.org/draft/2020-12/schema", rt = "https://farris-
|
|
|
187
187
|
resetText: { type: String, default: "清空筛选" },
|
|
188
188
|
customClass: { type: String, default: "" },
|
|
189
189
|
customStyle: { type: String, default: "" }
|
|
190
|
-
},
|
|
190
|
+
}, ft = Ge(ne, Ce, ye, be);
|
|
191
191
|
function ee() {
|
|
192
|
-
const { getLocaleValue: i } =
|
|
192
|
+
const { getLocaleValue: i } = ve;
|
|
193
193
|
return {
|
|
194
194
|
confirm: i("filterBar.confirm"),
|
|
195
195
|
cancel: i("filterBar.cancel"),
|
|
@@ -200,19 +200,19 @@ function ee() {
|
|
|
200
200
|
require: i("filterBar.require")
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
return
|
|
203
|
+
function pt(i) {
|
|
204
|
+
return ve.getRealPropertyValue(i, "清空筛选", "filterBar.reset");
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function mt(i, t, e, n) {
|
|
207
207
|
const r = w([]), s = w([]), l = w([]), m = w("");
|
|
208
208
|
w(i.mode);
|
|
209
|
-
const a = /* @__PURE__ */ new Map(), { createConditionValue: u } =
|
|
209
|
+
const a = /* @__PURE__ */ new Map(), { createConditionValue: u } = Ze(), { convertToControls: d } = ie("filter-bar"), o = Je(i, t), { getFilterConditions: c } = o, { fieldToCondition: g, judgeLoadNewValue: f } = ge(), p = new Ye(), h = ee();
|
|
210
210
|
let y = "[]";
|
|
211
211
|
function C(I) {
|
|
212
212
|
return !i.disabled && !I.value.isEmpty();
|
|
213
213
|
}
|
|
214
214
|
function V(I) {
|
|
215
|
-
s.value =
|
|
215
|
+
s.value = d(I), s.value.reduce((P, U) => (P.set(U.labelCode, U), P), a);
|
|
216
216
|
}
|
|
217
217
|
function B(I) {
|
|
218
218
|
const P = Array.isArray(I) ? I : [];
|
|
@@ -235,11 +235,11 @@ function pt(i, t, e, n) {
|
|
|
235
235
|
return P.value && !((U = P.value) != null && U.isEmpty());
|
|
236
236
|
})) > -1;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function R(I, P = []) {
|
|
239
239
|
const U = JSON.stringify(I || []);
|
|
240
240
|
U !== y && (t.emit("conditionChange", I), y = U, P.length === 0 && t.emit("query", I));
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function N() {
|
|
243
243
|
var x;
|
|
244
244
|
k();
|
|
245
245
|
const I = [];
|
|
@@ -247,29 +247,29 @@ function pt(i, t, e, n) {
|
|
|
247
247
|
E.required && (!E.value || E.value.isEmpty()) && I.push(E.fieldName || "");
|
|
248
248
|
});
|
|
249
249
|
const P = (x = l.value) == null ? void 0 : x.filter((E) => {
|
|
250
|
-
var
|
|
251
|
-
return E.value && !((
|
|
250
|
+
var A;
|
|
251
|
+
return E.value && !((A = E.value) != null && A.isEmpty());
|
|
252
252
|
});
|
|
253
253
|
if (I.length > 0) {
|
|
254
254
|
p.warning({ message: h.require.replace("[fields]", I.join(",")), position: "top-center" });
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
|
-
const U =
|
|
258
|
-
|
|
257
|
+
const U = c(P, s.value);
|
|
258
|
+
R(U, I);
|
|
259
259
|
}
|
|
260
260
|
function T(I, P, U = !0) {
|
|
261
|
-
V(I), B(P), U &&
|
|
261
|
+
V(I), B(P), U && N();
|
|
262
262
|
}
|
|
263
263
|
function F(I) {
|
|
264
|
-
I.value.clear(), r.value = r.value.filter((P) => P.fieldCode !== I.fieldCode), t.emit("clear", I.fieldCode),
|
|
264
|
+
I.value.clear(), r.value = r.value.filter((P) => P.fieldCode !== I.fieldCode), t.emit("clear", I.fieldCode), N();
|
|
265
265
|
}
|
|
266
266
|
function j() {
|
|
267
267
|
l.value.forEach((I) => I.value.clear());
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function O() {
|
|
270
270
|
l.value.forEach((I) => {
|
|
271
271
|
I.value.clear();
|
|
272
|
-
}), t.emit("reset"),
|
|
272
|
+
}), t.emit("reset"), N(), n.resizeFilerBar();
|
|
273
273
|
}
|
|
274
274
|
return {
|
|
275
275
|
clearAll: j,
|
|
@@ -280,27 +280,27 @@ function pt(i, t, e, n) {
|
|
|
280
280
|
fieldMap: a,
|
|
281
281
|
loadFilterItems: T,
|
|
282
282
|
removeFilterItem: M,
|
|
283
|
-
reset:
|
|
283
|
+
reset: O,
|
|
284
284
|
shouldShowClearButtonInFilterItem: C,
|
|
285
|
-
handleQuery:
|
|
285
|
+
handleQuery: N
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
const r = w([]), s = ee(), l = w(s.advancedFilter), m = w(
|
|
288
|
+
function gt(i, t, e, n) {
|
|
289
|
+
const r = w([]), s = ee(), l = w(s.advancedFilter), m = w(pt(i.resetText)), a = w(!1), {
|
|
290
290
|
clearAll: u,
|
|
291
|
-
reset:
|
|
291
|
+
reset: d,
|
|
292
292
|
filterItems: o
|
|
293
293
|
} = e;
|
|
294
|
-
function
|
|
294
|
+
function c() {
|
|
295
295
|
r.value = o.value.filter((h) => h.isExtend);
|
|
296
296
|
}
|
|
297
|
-
|
|
297
|
+
c();
|
|
298
298
|
const g = $(() => r.value && r.value.length > 0);
|
|
299
299
|
function f(h) {
|
|
300
300
|
a.value = !0;
|
|
301
301
|
}
|
|
302
302
|
function p(h) {
|
|
303
|
-
i.mode === "display-only" ? u() :
|
|
303
|
+
i.mode === "display-only" ? u() : d();
|
|
304
304
|
}
|
|
305
305
|
return () => b("div", {
|
|
306
306
|
class: "f-filter-toolbars"
|
|
@@ -312,7 +312,7 @@ function mt(i, t, e, n) {
|
|
|
312
312
|
onClick: (h) => p()
|
|
313
313
|
}, [m.value])]);
|
|
314
314
|
}
|
|
315
|
-
const
|
|
315
|
+
const vt = {
|
|
316
316
|
filterItem: { type: Object, default: null },
|
|
317
317
|
position: { type: Object, default: null },
|
|
318
318
|
/**
|
|
@@ -321,22 +321,22 @@ const gt = {
|
|
|
321
321
|
reference: {
|
|
322
322
|
type: Object
|
|
323
323
|
}
|
|
324
|
-
},
|
|
324
|
+
}, ht = Object.assign({}, Ke), yt = /* @__PURE__ */ Q({
|
|
325
325
|
name: "FFilterRadioGroup",
|
|
326
|
-
props:
|
|
326
|
+
props: ht,
|
|
327
327
|
emits: ["update:modelValue", "change"],
|
|
328
328
|
setup(i, t) {
|
|
329
329
|
const e = w(), {
|
|
330
330
|
dataSource: n,
|
|
331
331
|
displayText: r,
|
|
332
332
|
modelValue: s
|
|
333
|
-
} =
|
|
333
|
+
} = et(i, t);
|
|
334
334
|
function l(m) {
|
|
335
335
|
r.value = m.map((u) => u[i.textField]).join(i.separator);
|
|
336
336
|
let a = "";
|
|
337
337
|
m.length === 1 ? a = m[0][i.valueField] : a = m.map((u) => u[i.valueField]).join(i.separator), s.value !== a && (s.value = a, t.emit("update:modelValue", s.value), t.emit("change", s.value));
|
|
338
338
|
}
|
|
339
|
-
return () => b(
|
|
339
|
+
return () => b(tt, {
|
|
340
340
|
style: "margin: -2px -15px;padding: 0;",
|
|
341
341
|
ref: e,
|
|
342
342
|
idField: i.valueField,
|
|
@@ -352,21 +352,21 @@ const gt = {
|
|
|
352
352
|
}
|
|
353
353
|
}, null);
|
|
354
354
|
}
|
|
355
|
-
}),
|
|
355
|
+
}), bt = /* @__PURE__ */ Q({
|
|
356
356
|
name: "FFilterBarItemCondition",
|
|
357
|
-
props:
|
|
357
|
+
props: vt,
|
|
358
358
|
emits: ["cancel", "confirm", "clearFilter"],
|
|
359
359
|
setup(i, t) {
|
|
360
|
-
const e = w(
|
|
360
|
+
const e = w(X(i.filterItem)), n = w(), r = ee(), s = w("0px"), l = w("0px"), m = w("0px"), a = w("auto"), u = $(() => ({
|
|
361
361
|
left: a.value === "auto" ? "26px" : "auto",
|
|
362
362
|
right: a.value
|
|
363
|
-
})),
|
|
363
|
+
})), d = $(() => ({
|
|
364
364
|
left: s.value,
|
|
365
365
|
top: l.value
|
|
366
366
|
})), o = $(() => ({
|
|
367
367
|
width: m.value === "0px" ? null : m.value,
|
|
368
368
|
maxWidth: m.value === "0px" ? null : m.value
|
|
369
|
-
})),
|
|
369
|
+
})), c = w(), {
|
|
370
370
|
useFilterItemsComposition: g,
|
|
371
371
|
resolveEditorProps: f
|
|
372
372
|
} = _("useFilterItemsComposition"), {
|
|
@@ -378,57 +378,57 @@ const gt = {
|
|
|
378
378
|
let V = !1, B = {};
|
|
379
379
|
const M = w(!0);
|
|
380
380
|
function k() {
|
|
381
|
-
var q,
|
|
382
|
-
if (!i.reference || !
|
|
381
|
+
var q, Z;
|
|
382
|
+
if (!i.reference || !c.value)
|
|
383
383
|
return;
|
|
384
384
|
const x = (q = i.reference) == null ? void 0 : q.getBoundingClientRect();
|
|
385
|
-
let E = (
|
|
386
|
-
const
|
|
387
|
-
E >
|
|
385
|
+
let E = (Z = c.value) == null ? void 0 : Z.getBoundingClientRect().width;
|
|
386
|
+
const A = document.body.clientWidth - x.x - 30, L = document.body.clientWidth - x.y - 30;
|
|
387
|
+
E > A && E > L && (E = Math.max(A, L)), x.left > document.body.clientWidth - E - 20 ? (s.value = x.left + x.width - E + "px", l.value = x.top + x.height + "px", a.value = "26px") : (s.value = x.left + "px", l.value = x.top + x.height + "px", a.value = "auto"), m.value = E + "px";
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function R(x, E, A, L) {
|
|
390
390
|
V = !0, B = {
|
|
391
391
|
value: E,
|
|
392
|
-
editor:
|
|
393
|
-
option:
|
|
392
|
+
editor: A,
|
|
393
|
+
option: L
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function N() {
|
|
397
397
|
if (!n.value)
|
|
398
398
|
return !1;
|
|
399
399
|
const x = n.value.parentElement, E = Array.from(x.children);
|
|
400
|
-
return E ? !!E.find((
|
|
400
|
+
return E ? !!E.find((L) => !L || !L.classList ? !1 : L.classList.contains("popover") && L.style.visibility === "visible") : !1;
|
|
401
401
|
}
|
|
402
|
-
function T(x, E,
|
|
403
|
-
y(x, E,
|
|
402
|
+
function T(x, E, A, L) {
|
|
403
|
+
y(x, E, A, L), t.emit("confirm", e.value);
|
|
404
404
|
}
|
|
405
405
|
function F() {
|
|
406
406
|
const {
|
|
407
407
|
id: x,
|
|
408
408
|
editor: E,
|
|
409
|
-
needEmitChange:
|
|
410
|
-
} = h(p, e.value,
|
|
409
|
+
needEmitChange: A
|
|
410
|
+
} = h(p, e.value, R);
|
|
411
411
|
if (C.value = "filter-panel--" + E.type, E.type === "radio-group") {
|
|
412
|
-
const
|
|
413
|
-
return M.value = !1, b(
|
|
412
|
+
const L = f(E.type, E);
|
|
413
|
+
return M.value = !1, b(yt, qe(L, {
|
|
414
414
|
modelValue: e.value.value.value,
|
|
415
415
|
"onUpdate:modelValue": (q) => e.value.value.value = q,
|
|
416
416
|
onChange: (q) => {
|
|
417
417
|
T(e.value, q, E);
|
|
418
418
|
}
|
|
419
419
|
}), {
|
|
420
|
-
default: () => [
|
|
420
|
+
default: () => [z(" ")]
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
|
-
return b(
|
|
423
|
+
return b(He, {
|
|
424
424
|
showLabelType: "force-none",
|
|
425
425
|
id: x,
|
|
426
426
|
key: x,
|
|
427
427
|
editor: E,
|
|
428
428
|
modelValue: e.value.value.value,
|
|
429
|
-
"onUpdate:modelValue": (
|
|
430
|
-
onChange: (
|
|
431
|
-
|
|
429
|
+
"onUpdate:modelValue": (L) => e.value.value.value = L,
|
|
430
|
+
onChange: (L, q) => {
|
|
431
|
+
A && R(e.value, L, E, q);
|
|
432
432
|
}
|
|
433
433
|
}, null);
|
|
434
434
|
}
|
|
@@ -437,16 +437,16 @@ const gt = {
|
|
|
437
437
|
});
|
|
438
438
|
function j(x) {
|
|
439
439
|
const E = C.value.replace("filter-panel--", "");
|
|
440
|
-
["input", "radio-group", "switch"].findIndex((
|
|
440
|
+
["input", "radio-group", "switch"].findIndex((A) => A === E) > -1 ? t.emit("cancel") : N() || t.emit("cancel");
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function O(x) {
|
|
443
443
|
x.stopPropagation(), V && y(e.value, B.value, B.editor, B.option), t.emit("confirm", e.value);
|
|
444
444
|
}
|
|
445
445
|
function I(x) {
|
|
446
446
|
e.value.value.clear(), x.stopPropagation(), t.emit("confirm", e.value);
|
|
447
447
|
}
|
|
448
448
|
function P() {
|
|
449
|
-
const x =
|
|
449
|
+
const x = _e();
|
|
450
450
|
return {
|
|
451
451
|
zIndex: Math.max(x, 1050)
|
|
452
452
|
};
|
|
@@ -461,8 +461,8 @@ const gt = {
|
|
|
461
461
|
}
|
|
462
462
|
}, [b("div", {
|
|
463
463
|
class: "f-filter-panel " + C.value,
|
|
464
|
-
ref:
|
|
465
|
-
style:
|
|
464
|
+
ref: c,
|
|
465
|
+
style: d.value
|
|
466
466
|
}, [b("div", {
|
|
467
467
|
class: "f-filter-panel-inner",
|
|
468
468
|
style: o.value,
|
|
@@ -485,15 +485,15 @@ const gt = {
|
|
|
485
485
|
onClick: j
|
|
486
486
|
}, [r.cancel]), b("button", {
|
|
487
487
|
class: "filter-panel-submit btn btn-primary",
|
|
488
|
-
onClick:
|
|
488
|
+
onClick: O
|
|
489
489
|
}, [r.confirm])])])])])]);
|
|
490
490
|
}
|
|
491
|
-
}),
|
|
491
|
+
}), Fe = {
|
|
492
492
|
filterItem: { type: Object, default: null },
|
|
493
493
|
disabled: { type: Boolean, default: !1 }
|
|
494
|
-
},
|
|
494
|
+
}, Ct = /* @__PURE__ */ Q({
|
|
495
495
|
name: "FFilterBarItem",
|
|
496
|
-
props:
|
|
496
|
+
props: Fe,
|
|
497
497
|
emits: ["confirm"],
|
|
498
498
|
setup(i, t) {
|
|
499
499
|
const e = w(i.filterItem), {
|
|
@@ -503,7 +503,7 @@ const gt = {
|
|
|
503
503
|
currentFilterId: s,
|
|
504
504
|
removeFilterItem: l,
|
|
505
505
|
shouldShowClearButtonInFilterItem: m
|
|
506
|
-
} = n, a = w(!1), u = w(!1),
|
|
506
|
+
} = n, a = w(!1), u = w(!1), d = w(), o = w(""), c = w(), g = function() {
|
|
507
507
|
return {
|
|
508
508
|
"f-filter-item": !0,
|
|
509
509
|
"f-state-disabled": i.disabled,
|
|
@@ -523,7 +523,7 @@ const gt = {
|
|
|
523
523
|
a.value = !1;
|
|
524
524
|
}
|
|
525
525
|
function y() {
|
|
526
|
-
|
|
526
|
+
c.value && c.value.scrollWidth > c.value.clientWidth ? o.value = c.value.innerHTML : o.value = "";
|
|
527
527
|
}
|
|
528
528
|
function C(M) {
|
|
529
529
|
a.value = !1, e.value.value = M.value, t.emit("confirm", M), te(() => {
|
|
@@ -546,17 +546,17 @@ const gt = {
|
|
|
546
546
|
onMouseleave: () => B()
|
|
547
547
|
}, [b("div", {
|
|
548
548
|
class: "f-filter-item-inner",
|
|
549
|
-
ref:
|
|
549
|
+
ref: d,
|
|
550
550
|
onClick: (M) => p()
|
|
551
551
|
}, [e.value.required && b("span", {
|
|
552
552
|
class: "f-filter-item-required text-danger"
|
|
553
|
-
}, [
|
|
553
|
+
}, [z("*")]), b("span", {
|
|
554
554
|
class: "f-filter-item-text"
|
|
555
|
-
}, [e.value.fieldName]), !e.value.value.isEmpty() && b(
|
|
555
|
+
}, [e.value.fieldName]), !e.value.value.isEmpty() && b(ce, null, [b("span", {
|
|
556
556
|
class: "f-filter-item-tip"
|
|
557
|
-
}, [
|
|
557
|
+
}, [z(":")]), b("span", {
|
|
558
558
|
class: "f-filter-item-content",
|
|
559
|
-
ref:
|
|
559
|
+
ref: c,
|
|
560
560
|
title: o.value
|
|
561
561
|
}, [e.value.value.getDisplayText()])]), !i.disabled && b("span", {
|
|
562
562
|
class: "f-filter-item-arrow f-icon f-icon-arrow-chevron-down"
|
|
@@ -565,47 +565,47 @@ const gt = {
|
|
|
565
565
|
onClick: (M) => f()
|
|
566
566
|
}, [b("span", {
|
|
567
567
|
class: "f-icon f-icon-close-circle"
|
|
568
|
-
}, null)]), a.value && b(
|
|
568
|
+
}, null)]), a.value && b(We, {
|
|
569
569
|
to: "body"
|
|
570
570
|
}, {
|
|
571
|
-
default: () => [b(
|
|
571
|
+
default: () => [b(bt, {
|
|
572
572
|
filterItem: e.value,
|
|
573
|
-
reference:
|
|
573
|
+
reference: d.value,
|
|
574
574
|
onConfirm: C,
|
|
575
575
|
onCancel: h
|
|
576
576
|
}, null)]
|
|
577
577
|
})]);
|
|
578
578
|
}
|
|
579
579
|
});
|
|
580
|
-
function
|
|
580
|
+
function we(i, t) {
|
|
581
581
|
const e = w(null), n = 15;
|
|
582
582
|
let r = 0;
|
|
583
583
|
function s(a = -1, u = -1) {
|
|
584
584
|
var f;
|
|
585
585
|
if (!i.value)
|
|
586
586
|
return;
|
|
587
|
-
const
|
|
588
|
-
if (!
|
|
587
|
+
const d = (f = i.value) == null ? void 0 : f.querySelector(".f-filter-list");
|
|
588
|
+
if (!d)
|
|
589
589
|
return;
|
|
590
|
-
const o =
|
|
590
|
+
const o = d.children;
|
|
591
591
|
if (!o || o.length === 0 || (a < 0 && (a = i.value.clientWidth), r = u < 0 ? r : u, Math.abs(a - r) < n))
|
|
592
592
|
return;
|
|
593
593
|
Array.from(o).forEach((p) => {
|
|
594
594
|
p.style.display = "flex";
|
|
595
|
-
}), t.value =
|
|
596
|
-
let
|
|
595
|
+
}), t.value = d.clientWidth < d.scrollWidth;
|
|
596
|
+
let c = !1, g = 0;
|
|
597
597
|
for (let p = 0; p < o.length; p++) {
|
|
598
598
|
const h = o[p], y = Math.ceil(h.offsetWidth + (parseFloat(getComputedStyle(h).marginRight) || 0) + parseFloat(getComputedStyle(h).marginLeft));
|
|
599
|
-
!
|
|
599
|
+
!c && g + y <= a ? g += y : (h.style.display = "none", c = !0);
|
|
600
600
|
}
|
|
601
601
|
r = a;
|
|
602
602
|
}
|
|
603
603
|
function l() {
|
|
604
|
-
var u,
|
|
604
|
+
var u, d;
|
|
605
605
|
if (!i.value)
|
|
606
606
|
return;
|
|
607
607
|
(u = e.value) == null || u.unobserve(i.value);
|
|
608
|
-
const a = ((
|
|
608
|
+
const a = ((d = i.value.querySelector(".f-filter-list")) == null ? void 0 : d.children) || [];
|
|
609
609
|
Array.from(a).forEach((o) => {
|
|
610
610
|
o.style.display = "flex";
|
|
611
611
|
}), r = 0;
|
|
@@ -614,8 +614,8 @@ function Fe(i, t) {
|
|
|
614
614
|
if (!i.value)
|
|
615
615
|
return;
|
|
616
616
|
const a = new ResizeObserver((u) => {
|
|
617
|
-
const
|
|
618
|
-
s(
|
|
617
|
+
const d = u[0].contentRect.width;
|
|
618
|
+
s(d);
|
|
619
619
|
});
|
|
620
620
|
return a.observe(i.value), e.value = a, a;
|
|
621
621
|
}
|
|
@@ -630,39 +630,39 @@ const D = /* @__PURE__ */ Q({
|
|
|
630
630
|
props: ne,
|
|
631
631
|
emits: ["clear", "remove", "reset", "conditionChange", "change", "query"],
|
|
632
632
|
setup(i, t) {
|
|
633
|
-
const e = w(!1), n = w(!1), r = w(null), s = w(!1), l = w(0), m =
|
|
633
|
+
const e = w(!1), n = w(!1), r = w(null), s = w(!1), l = w(0), m = we(r, n), {
|
|
634
634
|
cancelWidthObserver: a,
|
|
635
635
|
setupWidthObserver: u,
|
|
636
|
-
handleVisibleChildren:
|
|
636
|
+
handleVisibleChildren: d
|
|
637
637
|
} = m, o = {
|
|
638
638
|
resizeFilerBar: () => {
|
|
639
639
|
e.value || te(() => {
|
|
640
|
-
|
|
640
|
+
d(-1, 0);
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
|
-
},
|
|
643
|
+
}, c = mt(i, t, s, o), {
|
|
644
644
|
filterFields: g,
|
|
645
645
|
filterItems: f,
|
|
646
646
|
loadFilterItems: p,
|
|
647
647
|
handleQuery: h
|
|
648
|
-
} =
|
|
648
|
+
} = c, {
|
|
649
649
|
resolveEditorProps: y
|
|
650
|
-
} =
|
|
651
|
-
|
|
652
|
-
useFilterItemsComposition:
|
|
650
|
+
} = he();
|
|
651
|
+
ue("useFilterItemsComposition", {
|
|
652
|
+
useFilterItemsComposition: c,
|
|
653
653
|
resolveEditorProps: y
|
|
654
654
|
});
|
|
655
655
|
const C = ee(), V = $(() => {
|
|
656
|
-
const
|
|
656
|
+
const O = {
|
|
657
657
|
display: g.value && g.value.length ? "" : "none"
|
|
658
658
|
};
|
|
659
|
-
return
|
|
659
|
+
return me(O, i == null ? void 0 : i.customStyle);
|
|
660
660
|
});
|
|
661
|
-
p(i.fields, i.defaultValues, !!(i.defaultValues && i.defaultValues.length > 0)),
|
|
662
|
-
p(I,
|
|
661
|
+
p(i.fields, i.defaultValues, !!(i.defaultValues && i.defaultValues.length > 0)), fe([() => i.defaultValues, () => i.fields], ([O, I]) => {
|
|
662
|
+
p(I, O), l.value++, o.resizeFilerBar();
|
|
663
663
|
}), K(() => {
|
|
664
664
|
u();
|
|
665
|
-
}),
|
|
665
|
+
}), pe(() => {
|
|
666
666
|
a();
|
|
667
667
|
});
|
|
668
668
|
const B = $(() => ({
|
|
@@ -675,28 +675,28 @@ const D = /* @__PURE__ */ Q({
|
|
|
675
675
|
"f-icon-arrow-chevron-up": e.value,
|
|
676
676
|
"f-icon-arrow-chevron-down": !e.value
|
|
677
677
|
})), k = $(() => !e.value && n.value);
|
|
678
|
-
function
|
|
678
|
+
function R() {
|
|
679
679
|
e.value = !e.value, e.value ? a() : u();
|
|
680
680
|
}
|
|
681
|
-
const
|
|
682
|
-
function T(
|
|
683
|
-
t.emit("change",
|
|
681
|
+
const N = gt(i, t, c, s);
|
|
682
|
+
function T(O) {
|
|
683
|
+
t.emit("change", O), h(), o.resizeFilerBar();
|
|
684
684
|
}
|
|
685
685
|
function F() {
|
|
686
686
|
return b("div", {
|
|
687
687
|
class: B.value,
|
|
688
688
|
key: i.id + "-main-" + l.value
|
|
689
|
-
}, [f.value.map((
|
|
690
|
-
filterItem:
|
|
689
|
+
}, [f.value.map((O, I) => !O.isExtend && b(Ct, {
|
|
690
|
+
filterItem: O,
|
|
691
691
|
onConfirm: T,
|
|
692
|
-
disabled: i.disabled ||
|
|
693
|
-
}, null)), e.value &&
|
|
692
|
+
disabled: i.disabled || O.disabled
|
|
693
|
+
}, null)), e.value && N()]);
|
|
694
694
|
}
|
|
695
695
|
function j() {
|
|
696
696
|
return k.value && b("div", {
|
|
697
697
|
class: "f-filter-list-ellipsis",
|
|
698
|
-
onClick: (
|
|
699
|
-
}, [
|
|
698
|
+
onClick: (O) => R()
|
|
699
|
+
}, [z("...")]);
|
|
700
700
|
}
|
|
701
701
|
return () => b("div", {
|
|
702
702
|
class: "f-filter-wrapper " + i.customClass,
|
|
@@ -708,11 +708,11 @@ const D = /* @__PURE__ */ Q({
|
|
|
708
708
|
}, [b("div", {
|
|
709
709
|
class: "f-filter-list-wrapper flex-fill",
|
|
710
710
|
ref: r
|
|
711
|
-
}, [F()]), j(), !e.value &&
|
|
711
|
+
}, [F()]), j(), !e.value && N()]), n.value && b("div", {
|
|
712
712
|
class: "f-filter-extend-btn"
|
|
713
713
|
}, [b("button", {
|
|
714
714
|
class: "btn btn-link",
|
|
715
|
-
onClick:
|
|
715
|
+
onClick: R
|
|
716
716
|
}, [b("span", {
|
|
717
717
|
class: "extend-btn-text"
|
|
718
718
|
}, [e.value ? C.fold : C.expand]), b("span", {
|
|
@@ -720,22 +720,22 @@ const D = /* @__PURE__ */ Q({
|
|
|
720
720
|
}, null)])])])]);
|
|
721
721
|
}
|
|
722
722
|
});
|
|
723
|
-
function
|
|
723
|
+
function Ft(i, t) {
|
|
724
724
|
w([]);
|
|
725
725
|
const e = w([]), n = w([]), r = w("");
|
|
726
726
|
w(!1), w(i.mode);
|
|
727
|
-
const s = /* @__PURE__ */ new Map(), { convertToControls: l } = ie("filter-bar"), { fieldToCondition: m } =
|
|
728
|
-
function a(
|
|
729
|
-
return !
|
|
727
|
+
const s = /* @__PURE__ */ new Map(), { convertToControls: l } = ie("filter-bar"), { fieldToCondition: m } = ge();
|
|
728
|
+
function a(c) {
|
|
729
|
+
return !c.value.isEmpty();
|
|
730
730
|
}
|
|
731
|
-
function u(
|
|
732
|
-
e.value =
|
|
731
|
+
function u(c) {
|
|
732
|
+
e.value = X(c), e.value.reduce((g, f) => (g.set(f.labelCode, f), g), s);
|
|
733
733
|
}
|
|
734
|
-
function c
|
|
734
|
+
function d(c) {
|
|
735
735
|
n.value = e.value.map((g) => m(g));
|
|
736
736
|
}
|
|
737
|
-
function o(
|
|
738
|
-
u(
|
|
737
|
+
function o(c, g) {
|
|
738
|
+
u(c), d();
|
|
739
739
|
}
|
|
740
740
|
return o(i.fields), {
|
|
741
741
|
currentFilterId: r,
|
|
@@ -746,7 +746,7 @@ function Ct(i, t) {
|
|
|
746
746
|
shouldShowClearButtonInFilterItem: a
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function wt(i, t, e) {
|
|
750
750
|
const n = w([]), r = w("更多筛选"), {
|
|
751
751
|
filterItems: s
|
|
752
752
|
} = e;
|
|
@@ -761,9 +761,9 @@ function Ft(i, t, e) {
|
|
|
761
761
|
class: "btn btn-link"
|
|
762
762
|
}, [r.value])]);
|
|
763
763
|
}
|
|
764
|
-
const
|
|
764
|
+
const It = /* @__PURE__ */ Q({
|
|
765
765
|
name: "FFilterBarItemDesign",
|
|
766
|
-
props:
|
|
766
|
+
props: Fe,
|
|
767
767
|
emits: ["confirm"],
|
|
768
768
|
setup(i, t) {
|
|
769
769
|
const e = w(i.filterItem), {
|
|
@@ -787,11 +787,11 @@ const wt = /* @__PURE__ */ Q({
|
|
|
787
787
|
class: "f-filter-item-inner"
|
|
788
788
|
}, [e.value.required && b("span", {
|
|
789
789
|
class: "f-filter-item-required text-danger"
|
|
790
|
-
}, [
|
|
790
|
+
}, [z("*")]), b("span", {
|
|
791
791
|
class: "f-filter-item-text"
|
|
792
|
-
}, [e.value.fieldName]), e.value.value.getDisplayText() && b(
|
|
792
|
+
}, [e.value.fieldName]), e.value.value.getDisplayText() && b(ce, null, [b("span", {
|
|
793
793
|
class: "f-filter-item-tip"
|
|
794
|
-
}, [
|
|
794
|
+
}, [z(":")]), b("span", {
|
|
795
795
|
class: "f-filter-item-content"
|
|
796
796
|
}, [e.value.value.getDisplayText()])]), !l.value && b("span", {
|
|
797
797
|
class: "f-filter-item-arrow f-icon f-icon-arrow-chevron-down"
|
|
@@ -802,7 +802,7 @@ const wt = /* @__PURE__ */ Q({
|
|
|
802
802
|
}, null)])]);
|
|
803
803
|
}
|
|
804
804
|
});
|
|
805
|
-
function
|
|
805
|
+
function Et(i) {
|
|
806
806
|
const { formSchemaUtils: t, formStateMachineUtils: e } = i;
|
|
807
807
|
function n(a, u = "") {
|
|
808
808
|
return {
|
|
@@ -812,15 +812,15 @@ function It(i) {
|
|
|
812
812
|
};
|
|
813
813
|
}
|
|
814
814
|
function r(a, u = "") {
|
|
815
|
-
const
|
|
816
|
-
return
|
|
815
|
+
const d = t.getViewModelById(a);
|
|
816
|
+
return d ? d.states.map((o) => n(o, u)) : [];
|
|
817
817
|
}
|
|
818
818
|
function s(a) {
|
|
819
|
-
const u = t.getRootViewModelId(),
|
|
819
|
+
const u = t.getRootViewModelId(), d = r(a);
|
|
820
820
|
if (a === u)
|
|
821
|
-
return
|
|
821
|
+
return d;
|
|
822
822
|
const o = r(u, "root-component.");
|
|
823
|
-
return [...
|
|
823
|
+
return [...d, ...o];
|
|
824
824
|
}
|
|
825
825
|
function l(a) {
|
|
826
826
|
return a.binding && a.binding.path || a.id || "";
|
|
@@ -830,7 +830,7 @@ function It(i) {
|
|
|
830
830
|
}
|
|
831
831
|
return { getVariables: s, getControlName: l, getStateMachines: m };
|
|
832
832
|
}
|
|
833
|
-
class
|
|
833
|
+
class Ie {
|
|
834
834
|
constructor(t) {
|
|
835
835
|
S(this, "sessionVariables", [
|
|
836
836
|
{
|
|
@@ -1015,12 +1015,12 @@ class we {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
updateExpression(t, e, n, r) {
|
|
1017
1017
|
const s = e === "Field" ? t.binding.field : t.id, l = this.buildRule(s, n, r, t.type === "form-group" ? t.id : "");
|
|
1018
|
-
let a = this.getExpressionData().find((
|
|
1019
|
-
const u = (
|
|
1018
|
+
let a = this.getExpressionData().find((d) => d.targetType === e && d.target === s);
|
|
1019
|
+
const u = (d) => d.value.trim() === "";
|
|
1020
1020
|
if (a) {
|
|
1021
|
-
const
|
|
1022
|
-
if (
|
|
1023
|
-
u(l) ? a.rules = a.rules.filter((o) => o.id !== l.id) : (Object.assign(
|
|
1021
|
+
const d = a.rules.find((o) => o.id === l.id);
|
|
1022
|
+
if (d)
|
|
1023
|
+
u(l) ? a.rules = a.rules.filter((o) => o.id !== l.id) : (Object.assign(d, l), r === "validate" && t.type === "form-group" && (d.elementId = t.id));
|
|
1024
1024
|
else {
|
|
1025
1025
|
if (u(l))
|
|
1026
1026
|
return null;
|
|
@@ -1055,11 +1055,11 @@ class we {
|
|
|
1055
1055
|
showMessage: l === "validate" || l === "dataPicking" || l === "required",
|
|
1056
1056
|
showMessageType: l === "dataPicking",
|
|
1057
1057
|
beforeOpen: () => this.onBeforeOpenExpression(t, l, e),
|
|
1058
|
-
onSubmitModal: (
|
|
1059
|
-
const o = this.updateExpression(t, e,
|
|
1058
|
+
onSubmitModal: (d) => {
|
|
1059
|
+
const o = this.updateExpression(t, e, d, l);
|
|
1060
1060
|
if (r) {
|
|
1061
|
-
const
|
|
1062
|
-
r(
|
|
1061
|
+
const c = this.buildRule(m, d, l);
|
|
1062
|
+
r(c);
|
|
1063
1063
|
}
|
|
1064
1064
|
return o;
|
|
1065
1065
|
}
|
|
@@ -1097,7 +1097,7 @@ class we {
|
|
|
1097
1097
|
};
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
|
-
class
|
|
1100
|
+
class xt {
|
|
1101
1101
|
constructor(t, e) {
|
|
1102
1102
|
S(this, "componentId");
|
|
1103
1103
|
S(this, "viewModelId");
|
|
@@ -1194,7 +1194,7 @@ class Et {
|
|
|
1194
1194
|
switch (l && l.propertyID) {
|
|
1195
1195
|
case "class":
|
|
1196
1196
|
case "style": {
|
|
1197
|
-
|
|
1197
|
+
J.value++;
|
|
1198
1198
|
break;
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
@@ -1214,26 +1214,26 @@ class Et {
|
|
|
1214
1214
|
* @returns
|
|
1215
1215
|
*/
|
|
1216
1216
|
getPropertyEditorParams(t, e = [], n = "visible", r = {}, s = {}, l = "") {
|
|
1217
|
-
const { getVariables: m, getControlName: a, getStateMachines: u } =
|
|
1217
|
+
const { getVariables: m, getControlName: a, getStateMachines: u } = Et(this.designerHostService), d = this.getRealTargetType(t), o = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], c = {
|
|
1218
1218
|
type: "property-editor",
|
|
1219
1219
|
propertyTypes: o
|
|
1220
1220
|
};
|
|
1221
1221
|
return o.map((g) => {
|
|
1222
1222
|
switch (g) {
|
|
1223
1223
|
case "Const":
|
|
1224
|
-
Object.assign(
|
|
1224
|
+
Object.assign(c, {
|
|
1225
1225
|
constType: "enum",
|
|
1226
1226
|
constEnums: [{ id: !0, name: "是" }, { id: !1, name: "否" }]
|
|
1227
1227
|
}, r);
|
|
1228
1228
|
break;
|
|
1229
1229
|
case "Expression":
|
|
1230
|
-
|
|
1230
|
+
c.expressionConfig = this.getExpressionOptions(t, d, l || n);
|
|
1231
1231
|
break;
|
|
1232
1232
|
case "StateMachine":
|
|
1233
|
-
|
|
1233
|
+
c.stateMachines = u();
|
|
1234
1234
|
break;
|
|
1235
1235
|
case "Variable":
|
|
1236
|
-
Object.assign(
|
|
1236
|
+
Object.assign(c, {
|
|
1237
1237
|
controlName: a(t),
|
|
1238
1238
|
newVariablePrefix: "is",
|
|
1239
1239
|
newVariableType: "Boolean",
|
|
@@ -1242,10 +1242,10 @@ class Et {
|
|
|
1242
1242
|
onBeforeOpenVariables: (f) => {
|
|
1243
1243
|
f.value = m(this.viewModelId);
|
|
1244
1244
|
}
|
|
1245
|
-
}, s), this.designerContext.designerMode === "PC_RTC" && (
|
|
1245
|
+
}, s), this.designerContext.designerMode === "PC_RTC" && (c.newVariablePrefix = "ext_" + c.newVariablePrefix);
|
|
1246
1246
|
break;
|
|
1247
1247
|
}
|
|
1248
|
-
}),
|
|
1248
|
+
}), c;
|
|
1249
1249
|
}
|
|
1250
1250
|
getVisibleProperty(t, e = "") {
|
|
1251
1251
|
var s;
|
|
@@ -1308,8 +1308,8 @@ class Et {
|
|
|
1308
1308
|
const n = e && e.parent && e.parent.schema;
|
|
1309
1309
|
if (!n)
|
|
1310
1310
|
return;
|
|
1311
|
-
const r = n.contents.findIndex((l) => l.id === t), s =
|
|
1312
|
-
n.contents.splice(r, 1), n.contents.splice(r, 0, s),
|
|
1311
|
+
const r = n.contents.findIndex((l) => l.id === t), s = X(n.contents[r]);
|
|
1312
|
+
n.contents.splice(r, 1), n.contents.splice(r, 0, s), De();
|
|
1313
1313
|
}
|
|
1314
1314
|
/**
|
|
1315
1315
|
* 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
|
|
@@ -1339,16 +1339,16 @@ class Et {
|
|
|
1339
1339
|
const e = t.propertyValue;
|
|
1340
1340
|
if (!((e && e.type) === "Expression" && e.expressionInfo))
|
|
1341
1341
|
return;
|
|
1342
|
-
const { expressionId: s, expressionInfo: l } = e, { targetId: m, targetType: a, expressionType: u, value:
|
|
1343
|
-
|
|
1344
|
-
const { expressions: g } =
|
|
1342
|
+
const { expressionId: s, expressionInfo: l } = e, { targetId: m, targetType: a, expressionType: u, value: d, message: o } = l, c = this.formSchemaUtils.getModule();
|
|
1343
|
+
c.expressions = c.expressions || [];
|
|
1344
|
+
const { expressions: g } = c;
|
|
1345
1345
|
let f = g.find((h) => h.target === m);
|
|
1346
1346
|
f || (f = { target: m, rules: [], targetType: a }, g.push(f));
|
|
1347
1347
|
const p = f.rules.find((h) => h.type === u);
|
|
1348
1348
|
if (p)
|
|
1349
|
-
p.value =
|
|
1349
|
+
p.value = d, p.message = o;
|
|
1350
1350
|
else {
|
|
1351
|
-
const h = { id: s, type: u, value:
|
|
1351
|
+
const h = { id: s, type: u, value: d, message: o };
|
|
1352
1352
|
f.rules.push(h);
|
|
1353
1353
|
}
|
|
1354
1354
|
delete e.expressionInfo;
|
|
@@ -1367,7 +1367,7 @@ class Et {
|
|
|
1367
1367
|
!a || !a.rules || (a.rules = a.rules.filter((u) => u.type !== s));
|
|
1368
1368
|
}
|
|
1369
1369
|
getExpressionOptions(t, e, n) {
|
|
1370
|
-
return new
|
|
1370
|
+
return new Ie(this.formSchemaUtils).getExpressionOptions(t, e, n);
|
|
1371
1371
|
}
|
|
1372
1372
|
getRealTargetType(t) {
|
|
1373
1373
|
return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item", "drawer-toolbar-item"].indexOf(t.type) > -1 ? "Button" : t.binding && t.binding.field ? "Field" : "Container";
|
|
@@ -1386,14 +1386,14 @@ class Et {
|
|
|
1386
1386
|
}, e;
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
|
-
const
|
|
1389
|
+
const G = class G {
|
|
1390
1390
|
/**
|
|
1391
1391
|
* 根据绑定字段类型获取可用的输入类控件
|
|
1392
1392
|
*/
|
|
1393
1393
|
static getEditorTypesByMDataType(t, e = !1, n = "") {
|
|
1394
1394
|
if (e)
|
|
1395
1395
|
return [{ key: v["language-textbox"].type, value: v["language-textbox"].name }];
|
|
1396
|
-
let r =
|
|
1396
|
+
let r = G.fieldControlTypeMapping[t];
|
|
1397
1397
|
if (n === "data-grid-column" && (r != null && r.length)) {
|
|
1398
1398
|
const s = [v["check-group"].type, v["radio-group"].type, v.image.type, v["rich-text-editor"].type];
|
|
1399
1399
|
r = r.filter((l) => !s.includes(l.key));
|
|
@@ -1405,8 +1405,8 @@ const z = class z {
|
|
|
1405
1405
|
*/
|
|
1406
1406
|
static getAllInputTypes() {
|
|
1407
1407
|
const t = [];
|
|
1408
|
-
for (const e in
|
|
1409
|
-
|
|
1408
|
+
for (const e in G.fieldControlTypeMapping)
|
|
1409
|
+
G.fieldControlTypeMapping[e].forEach((n) => {
|
|
1410
1410
|
t.find((r) => r.key === n.key && r.value === n.value) || t.push({ key: n.key, value: n.value });
|
|
1411
1411
|
});
|
|
1412
1412
|
return t;
|
|
@@ -1424,7 +1424,7 @@ const z = class z {
|
|
|
1424
1424
|
/**
|
|
1425
1425
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1426
1426
|
*/
|
|
1427
|
-
S(
|
|
1427
|
+
S(G, "fieldControlTypeMapping", {
|
|
1428
1428
|
String: [
|
|
1429
1429
|
{ key: v["input-group"].type, value: v["input-group"].name },
|
|
1430
1430
|
{ key: v.lookup.type, value: v.lookup.name },
|
|
@@ -1478,9 +1478,9 @@ S(z, "fieldControlTypeMapping", {
|
|
|
1478
1478
|
{ key: v["radio-group"].type, value: v["radio-group"].name }
|
|
1479
1479
|
]
|
|
1480
1480
|
});
|
|
1481
|
-
let
|
|
1482
|
-
var
|
|
1483
|
-
class
|
|
1481
|
+
let H = G;
|
|
1482
|
+
var Y = /* @__PURE__ */ ((i) => (i.Form = "Form", i.Variable = "Variable", i))(Y || {});
|
|
1483
|
+
class de {
|
|
1484
1484
|
constructor() {
|
|
1485
1485
|
/** 控件标题 */
|
|
1486
1486
|
S(this, "label", "");
|
|
@@ -1514,8 +1514,8 @@ function St(i) {
|
|
|
1514
1514
|
let t, e;
|
|
1515
1515
|
const n = /* @__PURE__ */ new Map();
|
|
1516
1516
|
let r = [];
|
|
1517
|
-
function s(
|
|
1518
|
-
const g =
|
|
1517
|
+
function s(d, o) {
|
|
1518
|
+
const g = ((d == null ? void 0 : d.split(" ")) || []).filter((C) => C.startsWith("col-"));
|
|
1519
1519
|
if (g.length === 0) {
|
|
1520
1520
|
o.isSupportedClass = !1;
|
|
1521
1521
|
return;
|
|
@@ -1523,31 +1523,38 @@ function St(i) {
|
|
|
1523
1523
|
let f = g.find((C) => /^col-([1-9]|10|11|12)$/.test(C)), p = g.find((C) => /^col-md-([1-9]|10|11|12)$/.test(C)), h = g.find((C) => /^col-xl-([1-9]|10|11|12)$/.test(C)), y = g.find((C) => /^col-el-([1-9]|10|11|12)$/.test(C));
|
|
1524
1524
|
f = f || "col-12", o.columnInSM = parseInt(f.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), p = p || "col-md-" + o.columnInSM, o.columnInMD = parseInt(p.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), h = h || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(h.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), y = y || "col-el-" + o.columnInLG, o.columnInEL = parseInt(y.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
|
|
1525
1525
|
}
|
|
1526
|
-
function l(
|
|
1526
|
+
function l(d, o, c, g = !1) {
|
|
1527
1527
|
let f = !1;
|
|
1528
|
-
|
|
1528
|
+
if (!d.contents || d.contents.length === 0) {
|
|
1529
|
+
const p = new de();
|
|
1530
|
+
s(d.layout, p), o.push(p);
|
|
1531
|
+
return;
|
|
1532
|
+
}
|
|
1533
|
+
d.contents.forEach((p) => {
|
|
1529
1534
|
if (p.type === "fieldset") {
|
|
1530
|
-
|
|
1535
|
+
c += 1, l(p, o, c, !0), f = !0;
|
|
1531
1536
|
return;
|
|
1532
1537
|
}
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1538
|
+
if (p.type === "dynamic-form")
|
|
1539
|
+
return;
|
|
1540
|
+
f && (c += 1, f = !1);
|
|
1541
|
+
const h = p.appearance && p.appearance.class, y = new de();
|
|
1542
|
+
h ? s(h, y) : y.isSupportedClass = !1, y.label = p.label || p.id, y.id = p.id, y.group = c, g && (y.fieldSetId = d.id), e === p.id && (t = c), n.set(p.id, p), o.push(y);
|
|
1536
1543
|
});
|
|
1537
1544
|
}
|
|
1538
|
-
function m(
|
|
1539
|
-
const o = i.getComponentById(
|
|
1545
|
+
function m(d) {
|
|
1546
|
+
const o = i.getComponentById(d);
|
|
1540
1547
|
if (!o || !o.componentType || !o.componentType.startsWith("form"))
|
|
1541
1548
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
1542
|
-
const
|
|
1543
|
-
return !
|
|
1549
|
+
const c = i.selectNode(o, (g) => g.type === v["response-form"].type);
|
|
1550
|
+
return !c || !c.contents || c.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: c };
|
|
1544
1551
|
}
|
|
1545
|
-
function a(
|
|
1546
|
-
o = o ||
|
|
1547
|
-
const { result:
|
|
1548
|
-
if (!
|
|
1549
|
-
return { result:
|
|
1550
|
-
e =
|
|
1552
|
+
function a(d, o) {
|
|
1553
|
+
o = o || d.id;
|
|
1554
|
+
const { result: c, message: g, formNode: f } = m(o);
|
|
1555
|
+
if (!c)
|
|
1556
|
+
return { result: c, message: g };
|
|
1557
|
+
e = d.id, r = [], n.clear();
|
|
1551
1558
|
const p = f.contents[0].type === v.fieldset.type ? 0 : 1;
|
|
1552
1559
|
l(f, r, p);
|
|
1553
1560
|
const h = r.find((C) => !C.isSupportedClass);
|
|
@@ -1559,17 +1566,17 @@ function St(i) {
|
|
|
1559
1566
|
importData: r
|
|
1560
1567
|
};
|
|
1561
1568
|
}
|
|
1562
|
-
function u(
|
|
1569
|
+
function u(d, o) {
|
|
1563
1570
|
o = o;
|
|
1564
|
-
const { result:
|
|
1565
|
-
if (!
|
|
1571
|
+
const { result: c, formNode: g } = m(o);
|
|
1572
|
+
if (!c)
|
|
1566
1573
|
return "";
|
|
1567
1574
|
const f = [];
|
|
1568
|
-
return
|
|
1575
|
+
return d.forEach((p) => {
|
|
1569
1576
|
var C;
|
|
1570
1577
|
const h = n.get(p.id), y = h.appearance && h.appearance.class;
|
|
1571
1578
|
if (y) {
|
|
1572
|
-
const B = y.split(" ").filter((F) => !F.startsWith("col-")), M = "col-" + p.columnInSM, k = "col-md-" + p.columnInMD,
|
|
1579
|
+
const B = y.split(" ").filter((F) => !F.startsWith("col-")), M = "col-" + p.columnInSM, k = "col-md-" + p.columnInMD, R = "col-xl-" + p.columnInLG, N = "col-el-" + p.columnInEL, T = [M, k, R, N].concat(B);
|
|
1573
1580
|
h.appearance.class = T.join(" ");
|
|
1574
1581
|
}
|
|
1575
1582
|
if (p.fieldSetId) {
|
|
@@ -1586,7 +1593,7 @@ function St(i) {
|
|
|
1586
1593
|
getResonseFormLayoutConfig: l
|
|
1587
1594
|
};
|
|
1588
1595
|
}
|
|
1589
|
-
class Mt extends
|
|
1596
|
+
class Mt extends xt {
|
|
1590
1597
|
constructor(e, n) {
|
|
1591
1598
|
super(e, n);
|
|
1592
1599
|
S(this, "responseLayoutEditorFunction");
|
|
@@ -1672,19 +1679,19 @@ class Mt extends Et {
|
|
|
1672
1679
|
readonly: this.formSchemaUtils.designerMode === "PC_RTC" && !e.isRtcControl
|
|
1673
1680
|
}
|
|
1674
1681
|
},
|
|
1675
|
-
setPropertyRelates(
|
|
1676
|
-
if (
|
|
1677
|
-
switch (
|
|
1682
|
+
setPropertyRelates(d, o, c) {
|
|
1683
|
+
if (d)
|
|
1684
|
+
switch (d && d.propertyID) {
|
|
1678
1685
|
case "type": {
|
|
1679
|
-
s.changeControlType(e,
|
|
1686
|
+
s.changeControlType(e, d, n);
|
|
1680
1687
|
break;
|
|
1681
1688
|
}
|
|
1682
1689
|
case "label": {
|
|
1683
|
-
|
|
1690
|
+
d.needRefreshControlTree = !0;
|
|
1684
1691
|
break;
|
|
1685
1692
|
}
|
|
1686
1693
|
case "binding": {
|
|
1687
|
-
s.changeBindingField(e,
|
|
1694
|
+
s.changeBindingField(e, d, c);
|
|
1688
1695
|
break;
|
|
1689
1696
|
}
|
|
1690
1697
|
}
|
|
@@ -1721,7 +1728,7 @@ class Mt extends Et {
|
|
|
1721
1728
|
}]
|
|
1722
1729
|
};
|
|
1723
1730
|
let r = [];
|
|
1724
|
-
return this.designViewModelField && this.designViewModelField.$type === le.SimpleField ? r =
|
|
1731
|
+
return this.designViewModelField && this.designViewModelField.$type === le.SimpleField ? r = H.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (r = H.getEditorTypesByMDataType(this.bindingVarible.type, !!((l = this.designViewModelField) != null && l.multiLanguage))), { canChangeControlType: n, editorTypeList: r };
|
|
1725
1732
|
}
|
|
1726
1733
|
changeBindingField(e, n, r) {
|
|
1727
1734
|
n.needRefreshEntityTree = !0;
|
|
@@ -1772,10 +1779,10 @@ class Mt extends Et {
|
|
|
1772
1779
|
r.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(s.propertyValue, r.componentId || e.id), r.updateUnifiedLayoutAfterResponseLayoutChanged(r.componentId), r.updateElementByParentContainer(e.id, n), delete e.responseLayout;
|
|
1773
1780
|
break;
|
|
1774
1781
|
case "class":
|
|
1775
|
-
r.updateUnifiedLayoutAfterControlChanged(s.propertyValue, e.id, this.componentId),
|
|
1782
|
+
r.updateUnifiedLayoutAfterControlChanged(s.propertyValue, e.id, this.componentId), J.value++;
|
|
1776
1783
|
break;
|
|
1777
1784
|
case "style": {
|
|
1778
|
-
|
|
1785
|
+
J.value++;
|
|
1779
1786
|
break;
|
|
1780
1787
|
}
|
|
1781
1788
|
}
|
|
@@ -1794,14 +1801,14 @@ class Mt extends Et {
|
|
|
1794
1801
|
const s = n.propertyValue, l = r && r.parent && r.parent.schema;
|
|
1795
1802
|
if (!l)
|
|
1796
1803
|
return;
|
|
1797
|
-
const m = l.contents.findIndex((
|
|
1804
|
+
const m = l.contents.findIndex((d) => d.id === e.id);
|
|
1798
1805
|
if (m === -1)
|
|
1799
1806
|
return;
|
|
1800
1807
|
const a = l.contents[m];
|
|
1801
1808
|
let u;
|
|
1802
1809
|
if (this.designViewModelField) {
|
|
1803
|
-
const
|
|
1804
|
-
|
|
1810
|
+
const c = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((f) => f.id === this.designViewModelField.id).fieldSchema || {};
|
|
1811
|
+
c.editor || (c.editor = {}), c.editor.$type = s, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, c, !1), u = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, s);
|
|
1805
1812
|
}
|
|
1806
1813
|
u || (u = this.controlCreatorUtils.createFormGroupWithoutField(s)), Object.assign(u, {
|
|
1807
1814
|
id: a.id,
|
|
@@ -1809,25 +1816,25 @@ class Mt extends Et {
|
|
|
1809
1816
|
size: a.size,
|
|
1810
1817
|
label: a.label,
|
|
1811
1818
|
binding: a.binding
|
|
1812
|
-
}), Object.prototype.hasOwnProperty.call(a, "visible") && Object.assign(u, { visible: a.visible }), a.editor && ["readonly", "required", "placeholder"].map((
|
|
1813
|
-
Object.prototype.hasOwnProperty.call(a.editor,
|
|
1819
|
+
}), Object.prototype.hasOwnProperty.call(a, "visible") && Object.assign(u, { visible: a.visible }), a.editor && ["readonly", "required", "placeholder"].map((d) => {
|
|
1820
|
+
Object.prototype.hasOwnProperty.call(a.editor, d) && (u.editor[d] = a.editor[d]);
|
|
1814
1821
|
}), r != null && r.updateContextSchema ? r.updateContextSchema(u) : (r.schema = Object.assign(a, u), Object.assign(e, u)), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
1815
|
-
(
|
|
1822
|
+
(d) => d.classList.remove("dgComponentSelected")
|
|
1816
1823
|
), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
|
|
1817
|
-
(
|
|
1818
|
-
),
|
|
1824
|
+
(d) => d.classList.remove("dgComponentFocused")
|
|
1825
|
+
), J.value++, te(() => {
|
|
1819
1826
|
this.getFormDesignerInstance().reloadPropertyPanel();
|
|
1820
1827
|
});
|
|
1821
1828
|
}
|
|
1822
1829
|
getComponentConfig(e, n = {}, r = {}, s) {
|
|
1823
|
-
var
|
|
1830
|
+
var c, g;
|
|
1824
1831
|
const l = Object.assign({
|
|
1825
1832
|
description: "编辑器",
|
|
1826
1833
|
title: "编辑器",
|
|
1827
1834
|
type: "input-group",
|
|
1828
1835
|
$converter: "/converter/property-editor.converter",
|
|
1829
1836
|
parentPropertyID: "editor"
|
|
1830
|
-
}, n), m = (
|
|
1837
|
+
}, n), m = (c = e.binding) != null && c.field ? [] : ["Const", "Variable", "StateMachine"], a = this.getPropertyEditorParams(e, m, "readonly"), u = this.getPropertyEditorParams(e, m, "required"), d = {
|
|
1831
1838
|
readonly: {
|
|
1832
1839
|
description: "",
|
|
1833
1840
|
title: "只读",
|
|
@@ -1847,11 +1854,11 @@ class Mt extends Et {
|
|
|
1847
1854
|
}
|
|
1848
1855
|
};
|
|
1849
1856
|
for (const f in r)
|
|
1850
|
-
|
|
1857
|
+
d[f] = Object.assign(d[f] || {}, r[f]);
|
|
1851
1858
|
const o = this;
|
|
1852
1859
|
return {
|
|
1853
1860
|
...l,
|
|
1854
|
-
properties: { ...
|
|
1861
|
+
properties: { ...d },
|
|
1855
1862
|
setPropertyRelates(f, p) {
|
|
1856
1863
|
if (f) {
|
|
1857
1864
|
switch (f.propertyID) {
|
|
@@ -1875,14 +1882,14 @@ class Mt extends Et {
|
|
|
1875
1882
|
const s = e.split(" ");
|
|
1876
1883
|
let l = s.find((o) => /^col-([1-9]|10|11|12)$/.test(o)), m = s.find((o) => /^col-md-([1-9]|10|11|12)$/.test(o)), a = s.find((o) => /^col-xl-([1-9]|10|11|12)$/.test(o)), u = s.find((o) => /^col-el-([1-9]|10|11|12)$/.test(o));
|
|
1877
1884
|
l = l || "col-12", m = m || "col-md-" + l.replace("col-", ""), a = a || "col-xl-" + m.replace("col-md-", ""), u = u || "col-el-" + a.replace("col-xl-", "");
|
|
1878
|
-
const
|
|
1885
|
+
const d = {
|
|
1879
1886
|
id: n,
|
|
1880
1887
|
columnInSM: parseInt(l.replace("col-", ""), 10),
|
|
1881
1888
|
columnInMD: parseInt(m.replace("col-md-", ""), 10),
|
|
1882
1889
|
columnInLG: parseInt(a.replace("col-xl-", ""), 10),
|
|
1883
1890
|
columnInEL: parseInt(u.replace("col-el-", ""), 10)
|
|
1884
1891
|
};
|
|
1885
|
-
this.updateUnifiedLayoutAfterResponseLayoutChanged(r,
|
|
1892
|
+
this.updateUnifiedLayoutAfterResponseLayoutChanged(r, d);
|
|
1886
1893
|
}
|
|
1887
1894
|
/**
|
|
1888
1895
|
* 修改控件布局配置后更新Form统一布局配置
|
|
@@ -1898,11 +1905,11 @@ class Mt extends Et {
|
|
|
1898
1905
|
const f = s.find((p) => p.id === n.id);
|
|
1899
1906
|
Object.assign(f || {}, n);
|
|
1900
1907
|
}
|
|
1901
|
-
const l = s.map((f) => f.columnInSM), m = s.map((f) => f.columnInMD), a = s.map((f) => f.columnInLG), u = s.map((f) => f.columnInEL),
|
|
1908
|
+
const l = s.map((f) => f.columnInSM), m = s.map((f) => f.columnInMD), a = s.map((f) => f.columnInLG), u = s.map((f) => f.columnInEL), d = this.checkIsUniqueColumn(l) ? l[0] : null, o = this.checkIsUniqueColumn(m) ? m[0] : null, c = this.checkIsUniqueColumn(a) ? a[0] : null, g = this.checkIsUniqueColumn(u) ? u[0] : null;
|
|
1902
1909
|
Object.assign(r.unifiedLayout, {
|
|
1903
|
-
uniqueColClassInSM:
|
|
1910
|
+
uniqueColClassInSM: d,
|
|
1904
1911
|
uniqueColClassInMD: o,
|
|
1905
|
-
uniqueColClassInLG:
|
|
1912
|
+
uniqueColClassInLG: c,
|
|
1906
1913
|
uniqueColClassInEL: g
|
|
1907
1914
|
});
|
|
1908
1915
|
}
|
|
@@ -1944,22 +1951,22 @@ class Mt extends Et {
|
|
|
1944
1951
|
* @param propertyData 下拉框控件属性值
|
|
1945
1952
|
*/
|
|
1946
1953
|
checkEnumDataReadonly(e) {
|
|
1947
|
-
return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type ===
|
|
1954
|
+
return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === Xe.EnumType);
|
|
1948
1955
|
}
|
|
1949
1956
|
/**
|
|
1950
1957
|
* 将字段值变化前事件、变化后事件追加到交互面板
|
|
1951
1958
|
* 注意:因为绑定字段值变化后事件与下拉框的值变化事件(valueChanged)重名,所以这里将事件label都重命名下
|
|
1952
1959
|
*/
|
|
1953
1960
|
appendFieldValueChangeEvents(e, n) {
|
|
1954
|
-
e.binding && e.binding.type ===
|
|
1961
|
+
e.binding && e.binding.type === Y.Form && e.binding.field ? (n.find((r) => r.label === "fieldValueChanging"), n.find((r) => r.label === "fieldValueChanged"), this.designViewModelField && (e.fieldValueChanging = this.designViewModelField.valueChanging, e.fieldValueChanged = this.designViewModelField.valueChanged)) : n = n.filter((r) => r.label !== "fieldValueChanging" && r.label !== "fieldValueChanged");
|
|
1955
1962
|
}
|
|
1956
1963
|
getControlMethodType(e) {
|
|
1957
1964
|
if (!e.binding)
|
|
1958
1965
|
return e.type;
|
|
1959
1966
|
switch (e.binding.type) {
|
|
1960
|
-
case
|
|
1967
|
+
case Y.Form:
|
|
1961
1968
|
return e.binding.path || e.type;
|
|
1962
|
-
case
|
|
1969
|
+
case Y.Variable:
|
|
1963
1970
|
return e.binding.fullPath || e.type;
|
|
1964
1971
|
}
|
|
1965
1972
|
return e.type;
|
|
@@ -1991,16 +1998,16 @@ class Mt extends Et {
|
|
|
1991
1998
|
properties: l.createBaseEventProperty(a),
|
|
1992
1999
|
tabId: "commands",
|
|
1993
2000
|
tabName: "交互",
|
|
1994
|
-
setPropertyRelates(o,
|
|
2001
|
+
setPropertyRelates(o, c) {
|
|
1995
2002
|
const g = o.propertyValue;
|
|
1996
|
-
delete e[l.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, g.controlInfo = { type: l.getControlMethodType(e), name: e.title }, l.eventsEditorUtils.saveRelatedParameters(e, l.viewModelId, g.events, g)), s && s(o,
|
|
2003
|
+
delete e[l.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, g.controlInfo = { type: l.getControlMethodType(e), name: e.title }, l.eventsEditorUtils.saveRelatedParameters(e, l.viewModelId, g.events, g)), s && s(o, c, g);
|
|
1997
2004
|
const f = l.designViewModelUtils.getDgViewModel(l.viewModelId);
|
|
1998
2005
|
f && l.designViewModelField && f.changeField(l.designViewModelField.id, { valueChanging: e.fieldValueChanging, valueChanged: e.fieldValueChanged });
|
|
1999
2006
|
}
|
|
2000
2007
|
};
|
|
2001
2008
|
}
|
|
2002
2009
|
getExpressionConfig(e, n, r = ["compute", "dependency", "validate"], s) {
|
|
2003
|
-
return new
|
|
2010
|
+
return new Ie(this.formSchemaUtils).getExpressionConfig(
|
|
2004
2011
|
e,
|
|
2005
2012
|
n,
|
|
2006
2013
|
r,
|
|
@@ -2148,14 +2155,14 @@ function Pt(i, t) {
|
|
|
2148
2155
|
function l() {
|
|
2149
2156
|
var m;
|
|
2150
2157
|
if (i && t) {
|
|
2151
|
-
const { formSchemaUtils: a } = t, u = a.getControlBasicInfoMap(), { schema:
|
|
2152
|
-
u.set(
|
|
2158
|
+
const { formSchemaUtils: a } = t, u = a.getControlBasicInfoMap(), { schema: d } = i, o = it["filter-bar"].name;
|
|
2159
|
+
u.set(d.id, {
|
|
2153
2160
|
componentTitle: o,
|
|
2154
2161
|
parentPathName: o
|
|
2155
|
-
}), (m =
|
|
2156
|
-
u.set(
|
|
2157
|
-
componentTitle:
|
|
2158
|
-
parentPathName: `${o} > ${
|
|
2162
|
+
}), (m = d.fields) != null && m.length && d.fields.map((c) => {
|
|
2163
|
+
u.set(c.id, {
|
|
2164
|
+
componentTitle: c.name,
|
|
2165
|
+
parentPathName: `${o} > ${c.name}`
|
|
2159
2166
|
});
|
|
2160
2167
|
});
|
|
2161
2168
|
}
|
|
@@ -2168,10 +2175,10 @@ function Pt(i, t) {
|
|
|
2168
2175
|
setComponentBasicInfoMap: l
|
|
2169
2176
|
};
|
|
2170
2177
|
}
|
|
2171
|
-
function
|
|
2178
|
+
function Ee(i, t) {
|
|
2172
2179
|
let e;
|
|
2173
2180
|
function n(o) {
|
|
2174
|
-
const { properties:
|
|
2181
|
+
const { properties: c, title: g, ignore: f } = o, p = f && Array.isArray(f), h = Object.keys(c).reduce((y, C) => ((!p || !f.find((V) => V === C)) && (y[C] = c[C].type === "object" && c[C].properties ? n(c[C]) : X(c[C].default)), y), {});
|
|
2175
2182
|
if (g && (!p || !f.find((y) => y === "id"))) {
|
|
2176
2183
|
const y = g.toLowerCase().replace(/-/g, "_");
|
|
2177
2184
|
h.id = `${y}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -2179,9 +2186,9 @@ function Ie(i, t) {
|
|
|
2179
2186
|
return h;
|
|
2180
2187
|
}
|
|
2181
2188
|
function r(o) {
|
|
2182
|
-
const { properties:
|
|
2189
|
+
const { properties: c, title: g, required: f } = o;
|
|
2183
2190
|
if (f && Array.isArray(f)) {
|
|
2184
|
-
const p = f.reduce((h, y) => (h[y] =
|
|
2191
|
+
const p = f.reduce((h, y) => (h[y] = c[y].type === "object" && c[y].properties ? n(c[y]) : X(c[y].default), h), {});
|
|
2185
2192
|
if (g && f.find((h) => h === "id")) {
|
|
2186
2193
|
const h = g.toLowerCase().replace(/-/g, "_");
|
|
2187
2194
|
p.id = `${h}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -2192,23 +2199,23 @@ function Ie(i, t) {
|
|
|
2192
2199
|
type: g
|
|
2193
2200
|
};
|
|
2194
2201
|
}
|
|
2195
|
-
function s(o,
|
|
2202
|
+
function s(o, c = {}, g) {
|
|
2196
2203
|
const f = i[o];
|
|
2197
2204
|
if (f) {
|
|
2198
2205
|
let p = r(f);
|
|
2199
2206
|
const h = t[o];
|
|
2200
|
-
return p = h ? h({ getSchemaByType: s }, p,
|
|
2207
|
+
return p = h ? h({ getSchemaByType: s }, p, c, g) : p, e != null && e.appendIdentifyForNewControl && e.appendIdentifyForNewControl(p), p;
|
|
2201
2208
|
}
|
|
2202
2209
|
return null;
|
|
2203
2210
|
}
|
|
2204
|
-
function l(o,
|
|
2205
|
-
const g = n(
|
|
2211
|
+
function l(o, c) {
|
|
2212
|
+
const g = n(c);
|
|
2206
2213
|
return Object.keys(g).reduce((f, p) => (Object.prototype.hasOwnProperty.call(o, p) && (f[p] && ae(f[p]) && ae(o[p] || !o[p]) ? Object.assign(f[p], o[p] || {}) : f[p] = o[p]), f), g), g;
|
|
2207
2214
|
}
|
|
2208
|
-
function m(o,
|
|
2215
|
+
function m(o, c) {
|
|
2209
2216
|
return Object.keys(o).filter((f) => o[f] != null).reduce((f, p) => {
|
|
2210
|
-
if (
|
|
2211
|
-
const h =
|
|
2217
|
+
if (c.has(p)) {
|
|
2218
|
+
const h = c.get(p);
|
|
2212
2219
|
if (typeof h == "string")
|
|
2213
2220
|
f[h] = o[p];
|
|
2214
2221
|
else {
|
|
@@ -2220,15 +2227,15 @@ function Ie(i, t) {
|
|
|
2220
2227
|
return f;
|
|
2221
2228
|
}, {});
|
|
2222
2229
|
}
|
|
2223
|
-
function a(o,
|
|
2224
|
-
const f = l(o,
|
|
2230
|
+
function a(o, c, g = /* @__PURE__ */ new Map()) {
|
|
2231
|
+
const f = l(o, c);
|
|
2225
2232
|
return m(f, g);
|
|
2226
2233
|
}
|
|
2227
2234
|
function u(o) {
|
|
2228
2235
|
var g;
|
|
2229
|
-
const
|
|
2230
|
-
if (
|
|
2231
|
-
const f = i[
|
|
2236
|
+
const c = o.type;
|
|
2237
|
+
if (c) {
|
|
2238
|
+
const f = i[c];
|
|
2232
2239
|
if (!f)
|
|
2233
2240
|
return o;
|
|
2234
2241
|
const p = l(o, f), h = ((g = o.editor) == null ? void 0 : g.type) || "";
|
|
@@ -2240,79 +2247,79 @@ function Ie(i, t) {
|
|
|
2240
2247
|
}
|
|
2241
2248
|
return o;
|
|
2242
2249
|
}
|
|
2243
|
-
function
|
|
2250
|
+
function d(o) {
|
|
2244
2251
|
e = o;
|
|
2245
2252
|
}
|
|
2246
|
-
return { getSchemaByType: s, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: a, mappingSchemaToProps: m, setDesignerContext:
|
|
2253
|
+
return { getSchemaByType: s, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: a, mappingSchemaToProps: m, setDesignerContext: d };
|
|
2247
2254
|
}
|
|
2248
|
-
const
|
|
2249
|
-
function
|
|
2250
|
-
function t(u,
|
|
2255
|
+
const xe = {}, Se = {}, { resolveSchemaWithDefaultValue: kt, resolveSchemaToProps: Vt, mappingSchemaToProps: Bt } = Ee(xe, Se);
|
|
2256
|
+
function Lt(i = {}) {
|
|
2257
|
+
function t(u, d, o, c) {
|
|
2251
2258
|
if (typeof o == "number")
|
|
2252
|
-
return
|
|
2259
|
+
return c[u].length === o;
|
|
2253
2260
|
if (typeof o == "object") {
|
|
2254
2261
|
const g = Object.keys(o)[0], f = o[g];
|
|
2255
2262
|
if (g === "not")
|
|
2256
|
-
return Number(
|
|
2263
|
+
return Number(c[u].length) !== Number(f);
|
|
2257
2264
|
if (g === "moreThan")
|
|
2258
|
-
return Number(
|
|
2265
|
+
return Number(c[u].length) >= Number(f);
|
|
2259
2266
|
if (g === "lessThan")
|
|
2260
|
-
return Number(
|
|
2267
|
+
return Number(c[u].length) <= Number(f);
|
|
2261
2268
|
}
|
|
2262
2269
|
return !1;
|
|
2263
2270
|
}
|
|
2264
|
-
function e(u,
|
|
2265
|
-
return
|
|
2271
|
+
function e(u, d, o, c) {
|
|
2272
|
+
return c[u] && c[u].propertyValue && String(c[u].propertyValue.value) === String(o);
|
|
2266
2273
|
}
|
|
2267
2274
|
const n = /* @__PURE__ */ new Map([
|
|
2268
2275
|
["length", t],
|
|
2269
2276
|
["getProperty", e]
|
|
2270
2277
|
]);
|
|
2271
|
-
Object.keys(i).reduce((u,
|
|
2272
|
-
function r(u,
|
|
2278
|
+
Object.keys(i).reduce((u, d) => (u.set(d, i[d]), u), n);
|
|
2279
|
+
function r(u, d) {
|
|
2273
2280
|
const o = u;
|
|
2274
|
-
return typeof
|
|
2275
|
-
if (
|
|
2276
|
-
return { target: o, operator: "length", param: null, value: c
|
|
2277
|
-
const g =
|
|
2281
|
+
return typeof d == "number" ? [{ target: o, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: o, operator: "getProperty", param: u, value: !!d }] : typeof d == "object" ? Object.keys(d).map((c) => {
|
|
2282
|
+
if (c === "length")
|
|
2283
|
+
return { target: o, operator: "length", param: null, value: d[c] };
|
|
2284
|
+
const g = c, f = d[c];
|
|
2278
2285
|
return { target: o, operator: "getProperty", param: g, value: f };
|
|
2279
2286
|
}) : [];
|
|
2280
2287
|
}
|
|
2281
2288
|
function s(u) {
|
|
2282
|
-
return Object.keys(u).reduce((o,
|
|
2283
|
-
const g = r(
|
|
2289
|
+
return Object.keys(u).reduce((o, c) => {
|
|
2290
|
+
const g = r(c, u[c]);
|
|
2284
2291
|
return o.push(...g), o;
|
|
2285
2292
|
}, []);
|
|
2286
2293
|
}
|
|
2287
|
-
function l(u,
|
|
2294
|
+
function l(u, d) {
|
|
2288
2295
|
if (n.has(u.operator)) {
|
|
2289
2296
|
const o = n.get(u.operator);
|
|
2290
|
-
return o && o(u.target, u.param, u.value,
|
|
2297
|
+
return o && o(u.target, u.param, u.value, d) || !1;
|
|
2291
2298
|
}
|
|
2292
2299
|
return !1;
|
|
2293
2300
|
}
|
|
2294
|
-
function m(u,
|
|
2295
|
-
return s(u).reduce((g, f) => g && l(f,
|
|
2301
|
+
function m(u, d) {
|
|
2302
|
+
return s(u).reduce((g, f) => g && l(f, d), !0);
|
|
2296
2303
|
}
|
|
2297
|
-
function a(u,
|
|
2298
|
-
const o = Object.keys(u),
|
|
2299
|
-
return
|
|
2304
|
+
function a(u, d) {
|
|
2305
|
+
const o = Object.keys(u), c = o.includes("allOf"), g = o.includes("anyOf"), f = c || g, y = (f ? u[f ? c ? "allOf" : "anyOf" : "allOf"] : [u]).map((V) => m(V, d));
|
|
2306
|
+
return c ? !y.includes(!1) : y.includes(!0);
|
|
2300
2307
|
}
|
|
2301
2308
|
return { parseValueSchema: a };
|
|
2302
2309
|
}
|
|
2303
|
-
const
|
|
2310
|
+
const Nt = {
|
|
2304
2311
|
convertTo: (i, t, e, n) => {
|
|
2305
2312
|
i.appearance || (i.appearance = {}), i.appearance[t] = e;
|
|
2306
2313
|
},
|
|
2307
2314
|
convertFrom: (i, t, e) => i.appearance ? i.appearance[t] : i[t]
|
|
2308
|
-
},
|
|
2315
|
+
}, Ot = {
|
|
2309
2316
|
convertFrom: (i, t, e) => i.buttons && i.buttons.length ? `共 ${i.buttons.length} 项` : "无"
|
|
2310
2317
|
}, Ut = {
|
|
2311
2318
|
convertTo: (i, t, e, n) => {
|
|
2312
2319
|
i.editor && (i.editor[t] = e);
|
|
2313
2320
|
},
|
|
2314
2321
|
convertFrom: (i, t, e) => i.editor && Object.prototype.hasOwnProperty.call(i.editor, t) ? i.editor[t] : i[t]
|
|
2315
|
-
},
|
|
2322
|
+
}, Rt = {
|
|
2316
2323
|
button: { type: "button", name: "按钮" },
|
|
2317
2324
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
2318
2325
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -2366,12 +2373,17 @@ const Ot = {
|
|
|
2366
2373
|
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
2367
2374
|
comment: { type: "comment", name: "评论区" },
|
|
2368
2375
|
"rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
|
|
2369
|
-
calendar: { type: "calendar", name: "日历", icon: "date-picker" }
|
|
2370
|
-
|
|
2376
|
+
calendar: { type: "calendar", name: "日历", icon: "date-picker" },
|
|
2377
|
+
wizard: { type: "wizard", name: "向导", icon: "wizard" },
|
|
2378
|
+
"wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
|
|
2379
|
+
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
|
|
2380
|
+
step: { type: "step", name: "步骤条", icon: "step" },
|
|
2381
|
+
"dynamic-form": { type: "dynamic-form", name: "动态表单" }
|
|
2382
|
+
}, At = {
|
|
2371
2383
|
convertFrom: (i, t, e) => {
|
|
2372
2384
|
var r;
|
|
2373
2385
|
const n = i.editor && i.editor[t] ? i.editor[t] : i[t];
|
|
2374
|
-
return ((r =
|
|
2386
|
+
return ((r = Rt[n]) == null ? void 0 : r.name) || n;
|
|
2375
2387
|
}
|
|
2376
2388
|
}, $t = {
|
|
2377
2389
|
convertTo: (i, t, e, n) => {
|
|
@@ -2406,6 +2418,8 @@ const Ot = {
|
|
|
2406
2418
|
return i.formatter.customFormat;
|
|
2407
2419
|
if (t === "type")
|
|
2408
2420
|
return i.formatter.type || "none";
|
|
2421
|
+
if (t === "customFormat")
|
|
2422
|
+
return i.formmater.customFormat;
|
|
2409
2423
|
}
|
|
2410
2424
|
return "none";
|
|
2411
2425
|
}
|
|
@@ -2427,29 +2441,17 @@ const Ot = {
|
|
|
2427
2441
|
]), t === "enableType" && e === "custom" && (i.command.enable = !0, i.command.commands = [
|
|
2428
2442
|
{
|
|
2429
2443
|
value: "add",
|
|
2430
|
-
text:
|
|
2431
|
-
en: "add",
|
|
2432
|
-
"zh-CHS": "增加",
|
|
2433
|
-
"zh-CHT": "增加"
|
|
2434
|
-
},
|
|
2444
|
+
text: "增加",
|
|
2435
2445
|
type: "link"
|
|
2436
2446
|
},
|
|
2437
2447
|
{
|
|
2438
2448
|
value: "edit",
|
|
2439
|
-
text:
|
|
2440
|
-
en: "edit",
|
|
2441
|
-
"zh-CHS": "编辑",
|
|
2442
|
-
"zh-CHT": "編輯"
|
|
2443
|
-
},
|
|
2449
|
+
text: "编辑",
|
|
2444
2450
|
type: "danger"
|
|
2445
2451
|
},
|
|
2446
2452
|
{
|
|
2447
2453
|
value: "remove",
|
|
2448
|
-
text:
|
|
2449
|
-
en: "remove",
|
|
2450
|
-
"zh-CHS": "删除",
|
|
2451
|
-
"zh-CHT": "刪除"
|
|
2452
|
-
},
|
|
2454
|
+
text: "删除",
|
|
2453
2455
|
type: "remove"
|
|
2454
2456
|
}
|
|
2455
2457
|
]), t === "enableType" && e === "unable" && (i.command.enable = !1);
|
|
@@ -2467,6 +2469,8 @@ const Ot = {
|
|
|
2467
2469
|
return i.command.formatter;
|
|
2468
2470
|
if (t === "count")
|
|
2469
2471
|
return i.command.count;
|
|
2472
|
+
if (t === "columnWidth")
|
|
2473
|
+
return i.command.columnWidth || 150;
|
|
2470
2474
|
}
|
|
2471
2475
|
return "";
|
|
2472
2476
|
}
|
|
@@ -2485,7 +2489,7 @@ const Ot = {
|
|
|
2485
2489
|
}
|
|
2486
2490
|
return "";
|
|
2487
2491
|
}
|
|
2488
|
-
},
|
|
2492
|
+
}, zt = {
|
|
2489
2493
|
convertTo: (i, t, e, n) => {
|
|
2490
2494
|
i.summary ? i.summary[t] = e : i.summary = {
|
|
2491
2495
|
[t]: e
|
|
@@ -2494,8 +2498,11 @@ const Ot = {
|
|
|
2494
2498
|
groupFields: []
|
|
2495
2499
|
});
|
|
2496
2500
|
},
|
|
2497
|
-
convertFrom: (i, t, e) =>
|
|
2498
|
-
|
|
2501
|
+
convertFrom: (i, t, e) => {
|
|
2502
|
+
var n;
|
|
2503
|
+
return t === "customSummaryStyle" ? i.summary.customSummaryStyle : t === "position" ? ((n = i.summary) == null ? void 0 : n[t]) || "bottom" : i.summary && t === "enable" ? i.summary.enable : i.type === "data-grid-column" ? i.enableSummary === void 0 ? !1 : i.enableSummary : "";
|
|
2504
|
+
}
|
|
2505
|
+
}, Gt = {
|
|
2499
2506
|
convertTo: (i, t, e, n) => {
|
|
2500
2507
|
i.group ? i.group[t] = e : i.group = {
|
|
2501
2508
|
[t]: e
|
|
@@ -2523,15 +2530,15 @@ const Ot = {
|
|
|
2523
2530
|
}
|
|
2524
2531
|
}, Qt = {
|
|
2525
2532
|
convertTo: (i, t, e, n) => {
|
|
2526
|
-
i.pagination || (i.pagination = {}), i.pagination[t] = e;
|
|
2533
|
+
i.pagination || (i.pagination = {}), t === "sizeLimits" ? i.pagination.sizeLimits = e.split(",") : i.pagination[t] = e;
|
|
2527
2534
|
},
|
|
2528
|
-
convertFrom: (i, t, e) => i.pagination ? i.pagination[t] : i[t]
|
|
2535
|
+
convertFrom: (i, t, e) => i.pagination ? t === "sizeLimits" ? i.pagination.sizeLimits.join(",") : i.pagination[t] : i[t]
|
|
2529
2536
|
}, _t = {
|
|
2530
2537
|
convertTo: (i, t, e, n) => {
|
|
2531
2538
|
i.rowNumber || (i.rowNumber = {}), i.rowNumber[t] = e;
|
|
2532
2539
|
},
|
|
2533
2540
|
convertFrom: (i, t, e) => i.rowNumber ? i.rowNumber[t] : i[t]
|
|
2534
|
-
},
|
|
2541
|
+
}, Xt = {
|
|
2535
2542
|
convertTo: (i, t, e, n) => {
|
|
2536
2543
|
i.selection || (i.selection = {}), i.selection[t] = e;
|
|
2537
2544
|
},
|
|
@@ -2539,19 +2546,19 @@ const Ot = {
|
|
|
2539
2546
|
var n, r;
|
|
2540
2547
|
return t === "showCheckbox" ? (n = i.selection) != null && n.multiSelect ? !0 : (r = i.selection) == null ? void 0 : r.showCheckbox : i.selection ? i.selection[t] : i[t];
|
|
2541
2548
|
}
|
|
2542
|
-
}, Xt = {
|
|
2543
|
-
convertFrom: (i, t, e) => i[t] && i[t].length ? `共 ${i[t].length} 项` : ""
|
|
2544
2549
|
}, Zt = {
|
|
2550
|
+
convertFrom: (i, t, e) => i[t] && i[t].length ? `共 ${i[t].length} 项` : ""
|
|
2551
|
+
}, Jt = {
|
|
2545
2552
|
convertFrom: (i, t) => i[t] || "",
|
|
2546
2553
|
convertTo: (i, t, e) => {
|
|
2547
2554
|
i[t] = e;
|
|
2548
2555
|
}
|
|
2549
|
-
},
|
|
2556
|
+
}, Yt = {
|
|
2550
2557
|
convertTo: (i, t, e, n) => {
|
|
2551
2558
|
i.size || (i.size = {}), i.size[t] = e;
|
|
2552
2559
|
},
|
|
2553
2560
|
convertFrom: (i, t, e) => i.size ? i.size[t] : i[t]
|
|
2554
|
-
},
|
|
2561
|
+
}, Ht = {
|
|
2555
2562
|
convertFrom: (i, t, e) => {
|
|
2556
2563
|
var n, r;
|
|
2557
2564
|
return (n = i.formatter) != null && n.data && t === "formatterEnumData" && !i.formatterEnumData ? (r = i.formatter) == null ? void 0 : r.data : i.formatterEnumData;
|
|
@@ -2588,6 +2595,8 @@ const Ot = {
|
|
|
2588
2595
|
return i.rowOption.customRowStyle;
|
|
2589
2596
|
if (t === "customCellStyle")
|
|
2590
2597
|
return i.rowOption.customCellStyle;
|
|
2598
|
+
if (t === "height")
|
|
2599
|
+
return i.rowOption.height;
|
|
2591
2600
|
}
|
|
2592
2601
|
return "";
|
|
2593
2602
|
}
|
|
@@ -2604,26 +2613,26 @@ const Ot = {
|
|
|
2604
2613
|
},
|
|
2605
2614
|
convertFrom: (i, t, e) => t === "columnTemplate" ? i.columnTemplate : t === "columnTemplateType" ? i.columnTemplateType ? i.columnTemplateType || "default" : i.columnTemplate && !i.onClickLinkCommand ? "custom" : i.columnTemplate && i.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
2606
2615
|
};
|
|
2607
|
-
function
|
|
2616
|
+
function Me(i, t, e) {
|
|
2608
2617
|
const n = /* @__PURE__ */ new Map([
|
|
2609
|
-
["/converter/appearance.converter",
|
|
2610
|
-
["/converter/buttons.converter",
|
|
2618
|
+
["/converter/appearance.converter", Nt],
|
|
2619
|
+
["/converter/buttons.converter", Ot],
|
|
2611
2620
|
["/converter/property-editor.converter", Ut],
|
|
2612
|
-
["/converter/items-count.converter",
|
|
2613
|
-
["/converter/type.converter",
|
|
2621
|
+
["/converter/items-count.converter", Zt],
|
|
2622
|
+
["/converter/type.converter", At],
|
|
2614
2623
|
["/converter/change-editor.converter", $t],
|
|
2615
2624
|
["/converter/change-formatter.converter", jt],
|
|
2616
2625
|
["/converter/column-command.converter", qt],
|
|
2617
2626
|
["/converter/column-option.converter", Wt],
|
|
2618
|
-
["/converter/summary.converter",
|
|
2619
|
-
["/converter/group.converter",
|
|
2620
|
-
["/converter/form-group-label.converter",
|
|
2627
|
+
["/converter/summary.converter", zt],
|
|
2628
|
+
["/converter/group.converter", Gt],
|
|
2629
|
+
["/converter/form-group-label.converter", Jt],
|
|
2621
2630
|
["/converter/field-selector.converter", Dt],
|
|
2622
2631
|
["/converter/pagination.converter", Qt],
|
|
2623
2632
|
["/converter/row-number.converter", _t],
|
|
2624
|
-
["/converter/grid-selection.converter",
|
|
2625
|
-
["/converter/size.converter",
|
|
2626
|
-
["/converter/change-formatter-enum.converter",
|
|
2633
|
+
["/converter/grid-selection.converter", Xt],
|
|
2634
|
+
["/converter/size.converter", Yt],
|
|
2635
|
+
["/converter/change-formatter-enum.converter", Ht],
|
|
2627
2636
|
["/converter/grid-sort.converter", Kt],
|
|
2628
2637
|
["/converter/grid-filter.converter", ei],
|
|
2629
2638
|
["/converter/row-option.converter", ti],
|
|
@@ -2652,7 +2661,7 @@ function Se(i, t, e) {
|
|
|
2652
2661
|
["array", { type: "button-edit" }],
|
|
2653
2662
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
2654
2663
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
2655
|
-
]), s =
|
|
2664
|
+
]), s = Lt();
|
|
2656
2665
|
function l(f, p) {
|
|
2657
2666
|
return () => s.parseValueSchema(f, p);
|
|
2658
2667
|
}
|
|
@@ -2666,44 +2675,44 @@ function Se(i, t, e) {
|
|
|
2666
2675
|
const h = f.$converter || p;
|
|
2667
2676
|
return typeof h == "string" && h && n.has(h) ? n.get(h) || null : h || null;
|
|
2668
2677
|
}
|
|
2669
|
-
function
|
|
2678
|
+
function d(f, p, h, y, C, V = "", B = "") {
|
|
2670
2679
|
return Object.keys(f).map((k) => {
|
|
2671
|
-
const
|
|
2680
|
+
const R = w(1), N = k, T = f[k], F = Object.keys(T), j = T.title, O = T.type, I = r.get(O) || { type: "input-group", enableClear: !1 }, P = T.editor ? Object.assign({}, I, T.editor) : Object.assign({}, I), U = m(F, T, p), x = a(F, T, p);
|
|
2672
2681
|
P.readonly = P.readonly === void 0 ? x() : P.readonly;
|
|
2673
|
-
const E = T.type === "cascade" ?
|
|
2674
|
-
let
|
|
2682
|
+
const E = T.type === "cascade" ? d(T.properties, p, h, y, C, V, B) : [], A = !0;
|
|
2683
|
+
let L = u(T, B);
|
|
2675
2684
|
const q = $({
|
|
2676
2685
|
get() {
|
|
2677
|
-
if (
|
|
2678
|
-
if (["class", "style"].find((Ae) => Ae ===
|
|
2679
|
-
return
|
|
2686
|
+
if (R.value) {
|
|
2687
|
+
if (["class", "style"].find((Ae) => Ae === N) && !L && (L = n.get("/converter/appearance.converter") || null), L && L.convertFrom)
|
|
2688
|
+
return L.convertFrom(h, k, C, V);
|
|
2680
2689
|
const W = h[k];
|
|
2681
2690
|
return Object.prototype.hasOwnProperty.call(T, "defaultValue") && (W === void 0 || typeof W == "string" && W === "") ? T.type === "boolean" ? T.defaultValue : T.defaultValue || "" : W;
|
|
2682
2691
|
}
|
|
2683
2692
|
return null;
|
|
2684
2693
|
},
|
|
2685
2694
|
set(W) {
|
|
2686
|
-
|
|
2695
|
+
R.value += 1, L && L.convertTo ? (L.convertTo(y, k, W, C, V), L.convertTo(h, k, W, C, V)) : (y[k] = W, h[k] = W);
|
|
2687
2696
|
}
|
|
2688
|
-
}), { refreshPanelAfterChanged:
|
|
2689
|
-
return p[
|
|
2697
|
+
}), { refreshPanelAfterChanged: Z, description: Oe, isExpand: Ue, parentPropertyID: Re } = T, re = { propertyID: N, propertyName: j, propertyType: O, propertyValue: q, editor: P, visible: U, readonly: x, cascadeConfig: E, hideCascadeTitle: A, refreshPanelAfterChanged: Z, description: Oe, isExpand: Ue, parentPropertyID: Re };
|
|
2698
|
+
return p[N] = re, re;
|
|
2690
2699
|
});
|
|
2691
2700
|
}
|
|
2692
2701
|
function o(f, p, h = {}) {
|
|
2693
2702
|
const y = {}, C = i[f];
|
|
2694
2703
|
return C && C.categories ? Object.keys(C.categories).map((B) => {
|
|
2695
|
-
const M = C.categories[B], k = M == null ? void 0 : M.title,
|
|
2696
|
-
return { categoryId: B, categoryName: k, properties:
|
|
2704
|
+
const M = C.categories[B], k = M == null ? void 0 : M.title, R = d(M.properties || {}, y, {}, h, p);
|
|
2705
|
+
return { categoryId: B, categoryName: k, properties: R };
|
|
2697
2706
|
}) : [];
|
|
2698
2707
|
}
|
|
2699
|
-
function
|
|
2700
|
-
const V = p.$ref.schema, B = p.$ref.converter, M = h[V], k = M.type,
|
|
2708
|
+
function c(f, p, h, y, C = "") {
|
|
2709
|
+
const V = p.$ref.schema, B = p.$ref.converter, M = h[V], k = M.type, R = e(M), N = {}, T = i[k];
|
|
2701
2710
|
if (T && T.categories) {
|
|
2702
2711
|
const F = T.categories[f], j = F == null ? void 0 : F.title;
|
|
2703
2712
|
B && Object.keys(F.properties).forEach((P) => {
|
|
2704
2713
|
F.properties[P].$converter = B;
|
|
2705
2714
|
});
|
|
2706
|
-
const
|
|
2715
|
+
const O = (F == null ? void 0 : F.properties) || {}, I = d(O, N, R, M, y, C);
|
|
2707
2716
|
return { categoryId: f, categoryName: j, properties: I };
|
|
2708
2717
|
}
|
|
2709
2718
|
return { categoryId: f, categoryName: "", properties: [] };
|
|
@@ -2712,16 +2721,16 @@ function Se(i, t, e) {
|
|
|
2712
2721
|
const V = f.type, B = e(f), M = {};
|
|
2713
2722
|
let k = C || i[V];
|
|
2714
2723
|
if (!(k && Object.keys(k).length > 0) && h && h.getPropConfig && (k = h.getPropConfig(y)), k && k.categories) {
|
|
2715
|
-
const
|
|
2724
|
+
const N = [];
|
|
2716
2725
|
return Object.keys(k.categories).map((T) => {
|
|
2717
2726
|
const F = k.categories[T];
|
|
2718
2727
|
if (F.$ref) {
|
|
2719
|
-
|
|
2728
|
+
N.push(c(T, F, f, p, y));
|
|
2720
2729
|
return;
|
|
2721
2730
|
}
|
|
2722
|
-
const j = F == null ? void 0 : F.title,
|
|
2723
|
-
|
|
2724
|
-
}),
|
|
2731
|
+
const j = F == null ? void 0 : F.title, O = F == null ? void 0 : F.tabId, I = F == null ? void 0 : F.tabName, P = F == null ? void 0 : F.hide, U = F == null ? void 0 : F.hideTitle, x = d(F.properties || {}, M, B, f, p, y, F.$converter), { setPropertyRelates: E } = F, A = F == null ? void 0 : F.parentPropertyID;
|
|
2732
|
+
N.push({ categoryId: T, categoryName: j, tabId: O, tabName: I, hide: P, properties: x, hideTitle: U, setPropertyRelates: E, parentPropertyID: A });
|
|
2733
|
+
}), N;
|
|
2725
2734
|
}
|
|
2726
2735
|
return [];
|
|
2727
2736
|
}
|
|
@@ -2731,36 +2740,36 @@ function Se(i, t, e) {
|
|
|
2731
2740
|
propertyConverterMap: n
|
|
2732
2741
|
};
|
|
2733
2742
|
}
|
|
2734
|
-
const
|
|
2735
|
-
|
|
2736
|
-
const
|
|
2737
|
-
|
|
2743
|
+
const Te = {}, Pe = {};
|
|
2744
|
+
Me(Te, Pe, kt);
|
|
2745
|
+
const ke = {}, Ve = {}, { resolveSchemaWithDefaultValue: ni } = Ee(ke, Ve), Be = {}, Le = {};
|
|
2746
|
+
Me(Be, Le, ni);
|
|
2738
2747
|
function ri(i, t, e = /* @__PURE__ */ new Map(), n = (l, m, a, u) => m, r = {}, s = (l) => l) {
|
|
2739
|
-
return
|
|
2748
|
+
return xe[t.title] = t, Se[t.title] = n, Te[t.title] = r, Pe[t.title] = s, ke[t.title] = t, Ve[t.title] = n, Be[t.title] = r, Le[t.title] = s, (l = {}, m = !0) => {
|
|
2740
2749
|
if (!m)
|
|
2741
2750
|
return Bt(l, e);
|
|
2742
|
-
const a = Vt(l, t, e), u = Object.keys(i).reduce((
|
|
2751
|
+
const a = Vt(l, t, e), u = Object.keys(i).reduce((d, o) => (d[o] = i[o].default, d), {});
|
|
2743
2752
|
return Object.assign(u, a);
|
|
2744
2753
|
};
|
|
2745
2754
|
}
|
|
2746
2755
|
const Ne = Object.assign({}, ne, {
|
|
2747
2756
|
componentId: { type: String, default: "" }
|
|
2748
|
-
}), oi = ri(Ne,
|
|
2757
|
+
}), oi = ri(Ne, Ce, ye, be), si = /* @__PURE__ */ Q({
|
|
2749
2758
|
name: "FFilterBarDesign",
|
|
2750
2759
|
props: Ne,
|
|
2751
2760
|
emits: ["Clear", "Remove", "Reset"],
|
|
2752
2761
|
setup(i, t) {
|
|
2753
|
-
const e = w(!1), n = w(!1), r = w(!1), s = w(null), l =
|
|
2762
|
+
const e = w(!1), n = w(!1), r = w(!1), s = w(null), l = Ft(i), {
|
|
2754
2763
|
filterFields: m,
|
|
2755
2764
|
filterItems: a,
|
|
2756
2765
|
loadFilterItems: u
|
|
2757
|
-
} = l,
|
|
2766
|
+
} = l, d = w(0), o = w(), c = _("design-item-context"), g = _("designer-host-service"), f = Pt(c, g), p = Qe(o, c, f), h = we(s, r), {
|
|
2758
2767
|
cancelWidthObserver: y,
|
|
2759
2768
|
setupWidthObserver: C
|
|
2760
2769
|
} = h, {
|
|
2761
2770
|
resolveEditorProps: V
|
|
2762
|
-
} =
|
|
2763
|
-
|
|
2771
|
+
} = he();
|
|
2772
|
+
ue("useFilterItemsComposition", {
|
|
2764
2773
|
useFilterItemsComposition: l,
|
|
2765
2774
|
resolveEditorProps: V
|
|
2766
2775
|
});
|
|
@@ -2768,14 +2777,14 @@ const Ne = Object.assign({}, ne, {
|
|
|
2768
2777
|
const F = {
|
|
2769
2778
|
display: m.value && m.value.length ? "" : "none"
|
|
2770
2779
|
};
|
|
2771
|
-
return
|
|
2780
|
+
return me(F, i == null ? void 0 : i.customStyle);
|
|
2772
2781
|
});
|
|
2773
2782
|
K(() => {
|
|
2774
2783
|
o.value.componentInstance = p, C();
|
|
2775
|
-
}),
|
|
2784
|
+
}), pe(() => {
|
|
2776
2785
|
y();
|
|
2777
|
-
}), t.expose(p.value),
|
|
2778
|
-
u(F, []),
|
|
2786
|
+
}), t.expose(p.value), fe(() => i.fields, (F) => {
|
|
2787
|
+
u(F, []), d.value++;
|
|
2779
2788
|
}, {
|
|
2780
2789
|
immediate: !0
|
|
2781
2790
|
});
|
|
@@ -2783,20 +2792,20 @@ const Ne = Object.assign({}, ne, {
|
|
|
2783
2792
|
"f-filter-list": !0,
|
|
2784
2793
|
"f-filter-list-extend": M.value
|
|
2785
2794
|
}));
|
|
2786
|
-
function
|
|
2795
|
+
function R() {
|
|
2787
2796
|
return b("div", {
|
|
2788
2797
|
class: k.value,
|
|
2789
|
-
key: i.id + "-main-" +
|
|
2790
|
-
}, [a.value.map((F, j) => b(
|
|
2798
|
+
key: i.id + "-main-" + d.value
|
|
2799
|
+
}, [a.value.map((F, j) => b(It, {
|
|
2791
2800
|
filterItem: F
|
|
2792
2801
|
}, null))]);
|
|
2793
2802
|
}
|
|
2794
|
-
function
|
|
2803
|
+
function N() {
|
|
2795
2804
|
return r.value && b("div", {
|
|
2796
2805
|
class: "f-filter-list-ellipsis"
|
|
2797
|
-
}, [
|
|
2806
|
+
}, [z("...")]);
|
|
2798
2807
|
}
|
|
2799
|
-
const T =
|
|
2808
|
+
const T = wt(i, t, l);
|
|
2800
2809
|
return () => b("div", {
|
|
2801
2810
|
ref: o,
|
|
2802
2811
|
class: "f-filter-wrapper " + i.customClass,
|
|
@@ -2808,13 +2817,13 @@ const Ne = Object.assign({}, ne, {
|
|
|
2808
2817
|
}, [b("div", {
|
|
2809
2818
|
class: "f-filter-list-wrapper flex-fill",
|
|
2810
2819
|
ref: s
|
|
2811
|
-
}, [
|
|
2820
|
+
}, [R()]), N(), T()]), r.value && b("div", {
|
|
2812
2821
|
class: "f-filter-extend-btn"
|
|
2813
2822
|
}, [b("button", {
|
|
2814
2823
|
class: "btn btn-link"
|
|
2815
2824
|
}, [b("span", {
|
|
2816
2825
|
class: "extend-btn-text"
|
|
2817
|
-
}, [
|
|
2826
|
+
}, [z("展开")]), b("span", {
|
|
2818
2827
|
class: "extend-btn-arrow f-icon f-icon-arrow-chevron-down"
|
|
2819
2828
|
}, null)])])])]);
|
|
2820
2829
|
}
|
|
@@ -2823,7 +2832,7 @@ D.install = (i) => {
|
|
|
2823
2832
|
i.component(D.name, D);
|
|
2824
2833
|
};
|
|
2825
2834
|
D.register = (i, t, e, n) => {
|
|
2826
|
-
i["filter-bar"] = D, t["filter-bar"] =
|
|
2835
|
+
i["filter-bar"] = D, t["filter-bar"] = ft;
|
|
2827
2836
|
};
|
|
2828
2837
|
D.registerDesigner = (i, t, e) => {
|
|
2829
2838
|
i["filter-bar"] = si, t["filter-bar"] = oi;
|
|
@@ -2832,5 +2841,5 @@ export {
|
|
|
2832
2841
|
D as FFilterBar,
|
|
2833
2842
|
D as default,
|
|
2834
2843
|
ne as filterBarProps,
|
|
2835
|
-
|
|
2844
|
+
ft as propsResolver
|
|
2836
2845
|
};
|