@farris/ui-vue 1.6.5-beta.1 → 1.6.5-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/accordion/index.esm.js +190 -187
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/package.json +1 -1
- package/components/binding-selector/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.esm.js +745 -753
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/checkbox-group/package.json +1 -1
- package/components/code-editor/package.json +1 -1
- package/components/collection-property-editor/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/package.json +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/event-parameter/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/index.esm.js +1279 -1287
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/fieldset/package.json +1 -1
- package/components/filter-bar/index.esm.js +703 -711
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/filter-condition-editor/index.esm.js +1140 -1148
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/filter-condition-editor/package.json +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/html-template/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/package.json +1 -1
- package/components/json-editor/package.json +1 -1
- package/components/language-textbox/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.esm.js +967 -975
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/menu-lookup/package.json +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/number-range/package.json +1 -1
- package/components/number-spinner/package.json +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/query-solution/index.esm.js +1193 -1201
- package/components/query-solution/index.umd.cjs +4 -4
- package/components/query-solution/package.json +1 -1
- package/components/radio/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.esm.js +1095 -1103
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/sort-condition-editor/index.esm.js +1185 -1193
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/sort-condition-editor/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.esm.js +895 -903
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/package.json +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/designer/data-grid/index.esm.js +1447 -1455
- package/designer/data-grid/index.umd.cjs +4 -4
- package/designer/farris-designer.all.esm.js +1789 -1797
- package/designer/farris-designer.all.umd.cjs +9 -9
- package/designer/radio-group/index.esm.js +1032 -1040
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +2242 -2246
- package/farris.all.umd.cjs +15 -15
- package/package.json +1 -1
- package/types/components.d.ts +4 -3
- package/types/message-box/index.d.ts +6 -6
- package/types/message-box/src/message-box.component.d.ts +3 -3
|
@@ -5,145 +5,145 @@ import { getCustomClass as X } from "../common/index.esm.js";
|
|
|
5
5
|
import { useDesignerComponent as he } from "../designer-canvas/index.esm.js";
|
|
6
6
|
function Y(e, t) {
|
|
7
7
|
let n;
|
|
8
|
-
function
|
|
9
|
-
const { properties: a, title:
|
|
10
|
-
if (
|
|
11
|
-
const m =
|
|
12
|
-
|
|
8
|
+
function o(s) {
|
|
9
|
+
const { properties: a, title: d, ignore: r } = s, i = r && Array.isArray(r), c = Object.keys(a).reduce((m, g) => ((!i || !r.find((T) => T === g)) && (m[g] = a[g].type === "object" && a[g].properties ? o(a[g]) : U(a[g].default)), m), {});
|
|
10
|
+
if (d && (!i || !r.find((m) => m === "id"))) {
|
|
11
|
+
const m = d.toLowerCase().replace(/-/g, "_");
|
|
12
|
+
c.id = `${m}_${Math.random().toString().slice(2, 6)}`;
|
|
13
13
|
}
|
|
14
|
-
return
|
|
14
|
+
return c;
|
|
15
15
|
}
|
|
16
16
|
function p(s) {
|
|
17
|
-
const { properties: a, title:
|
|
18
|
-
if (
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
21
|
-
const
|
|
22
|
-
|
|
17
|
+
const { properties: a, title: d, required: r } = s;
|
|
18
|
+
if (r && Array.isArray(r)) {
|
|
19
|
+
const i = r.reduce((c, m) => (c[m] = a[m].type === "object" && a[m].properties ? o(a[m]) : U(a[m].default), c), {});
|
|
20
|
+
if (d && r.find((c) => c === "id")) {
|
|
21
|
+
const c = d.toLowerCase().replace(/-/g, "_");
|
|
22
|
+
i.id = `${c}_${Math.random().toString().slice(2, 6)}`;
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return i;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
-
type:
|
|
27
|
+
type: d
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function v(s, a = {},
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
33
|
-
let
|
|
34
|
-
const
|
|
35
|
-
return
|
|
30
|
+
function v(s, a = {}, d) {
|
|
31
|
+
const r = e[s];
|
|
32
|
+
if (r) {
|
|
33
|
+
let i = p(r);
|
|
34
|
+
const c = t[s];
|
|
35
|
+
return i = c ? c({ getSchemaByType: v }, i, a, d) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
|
|
36
36
|
}
|
|
37
37
|
return null;
|
|
38
38
|
}
|
|
39
39
|
function b(s, a) {
|
|
40
|
-
const
|
|
41
|
-
return Object.keys(
|
|
40
|
+
const d = o(a);
|
|
41
|
+
return Object.keys(d).reduce((r, i) => (Object.prototype.hasOwnProperty.call(s, i) && (r[i] && W(r[i]) && W(s[i] || !s[i]) ? Object.assign(r[i], s[i] || {}) : r[i] = s[i]), r), d), d;
|
|
42
42
|
}
|
|
43
43
|
function C(s, a) {
|
|
44
|
-
return Object.keys(s).filter((
|
|
45
|
-
if (a.has(
|
|
46
|
-
const
|
|
47
|
-
if (typeof
|
|
48
|
-
|
|
44
|
+
return Object.keys(s).filter((r) => s[r] != null).reduce((r, i) => {
|
|
45
|
+
if (a.has(i)) {
|
|
46
|
+
const c = a.get(i);
|
|
47
|
+
if (typeof c == "string")
|
|
48
|
+
r[c] = s[i];
|
|
49
49
|
else {
|
|
50
|
-
const m =
|
|
51
|
-
Object.assign(
|
|
50
|
+
const m = c(i, s[i], s);
|
|
51
|
+
Object.assign(r, m);
|
|
52
52
|
}
|
|
53
53
|
} else
|
|
54
|
-
i
|
|
55
|
-
return
|
|
54
|
+
r[i] = s[i];
|
|
55
|
+
return r;
|
|
56
56
|
}, {});
|
|
57
57
|
}
|
|
58
|
-
function S(s, a,
|
|
59
|
-
const
|
|
60
|
-
return C(
|
|
58
|
+
function S(s, a, d = /* @__PURE__ */ new Map()) {
|
|
59
|
+
const r = b(s, a);
|
|
60
|
+
return C(r, d);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
var
|
|
62
|
+
function l(s) {
|
|
63
|
+
var d;
|
|
64
64
|
const a = s.type;
|
|
65
65
|
if (a) {
|
|
66
|
-
const
|
|
67
|
-
if (!
|
|
66
|
+
const r = e[a];
|
|
67
|
+
if (!r)
|
|
68
68
|
return s;
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
71
|
-
const m = e[
|
|
72
|
-
|
|
69
|
+
const i = b(s, r), c = ((d = s.editor) == null ? void 0 : d.type) || "";
|
|
70
|
+
if (c) {
|
|
71
|
+
const m = e[c], g = b(s.editor, m);
|
|
72
|
+
i.editor = g;
|
|
73
73
|
}
|
|
74
|
-
return
|
|
74
|
+
return i;
|
|
75
75
|
}
|
|
76
76
|
return s;
|
|
77
77
|
}
|
|
78
78
|
function f(s) {
|
|
79
79
|
n = s;
|
|
80
80
|
}
|
|
81
|
-
return { getSchemaByType: v, resolveSchemaWithDefaultValue:
|
|
81
|
+
return { getSchemaByType: v, resolveSchemaWithDefaultValue: l, resolveSchemaToProps: S, mappingSchemaToProps: C, setDesignerContext: f };
|
|
82
82
|
}
|
|
83
83
|
const Z = {}, V = {}, { getSchemaByType: Tt, resolveSchemaWithDefaultValue: Ce, resolveSchemaToProps: Se, mappingSchemaToProps: Fe, setDesignerContext: wt } = Y(Z, V);
|
|
84
84
|
function Te(e = {}) {
|
|
85
|
-
function t(
|
|
85
|
+
function t(l, f, s, a) {
|
|
86
86
|
if (typeof s == "number")
|
|
87
|
-
return a[
|
|
87
|
+
return a[l].length === s;
|
|
88
88
|
if (typeof s == "object") {
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
-
return Number(a[
|
|
92
|
-
if (
|
|
93
|
-
return Number(a[
|
|
94
|
-
if (
|
|
95
|
-
return Number(a[
|
|
89
|
+
const d = Object.keys(s)[0], r = s[d];
|
|
90
|
+
if (d === "not")
|
|
91
|
+
return Number(a[l].length) !== Number(r);
|
|
92
|
+
if (d === "moreThan")
|
|
93
|
+
return Number(a[l].length) >= Number(r);
|
|
94
|
+
if (d === "lessThan")
|
|
95
|
+
return Number(a[l].length) <= Number(r);
|
|
96
96
|
}
|
|
97
97
|
return !1;
|
|
98
98
|
}
|
|
99
|
-
function n(
|
|
100
|
-
return a[
|
|
99
|
+
function n(l, f, s, a) {
|
|
100
|
+
return a[l] && a[l].propertyValue && String(a[l].propertyValue.value) === String(s);
|
|
101
101
|
}
|
|
102
|
-
const
|
|
102
|
+
const o = /* @__PURE__ */ new Map([
|
|
103
103
|
["length", t],
|
|
104
104
|
["getProperty", n]
|
|
105
105
|
]);
|
|
106
|
-
Object.keys(e).reduce((
|
|
107
|
-
function p(
|
|
108
|
-
const s =
|
|
109
|
-
return typeof f == "number" ? [{ target: s, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: s, operator: "getProperty", param:
|
|
106
|
+
Object.keys(e).reduce((l, f) => (l.set(f, e[f]), l), o);
|
|
107
|
+
function p(l, f) {
|
|
108
|
+
const s = l;
|
|
109
|
+
return typeof f == "number" ? [{ target: s, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: s, operator: "getProperty", param: l, value: !!f }] : typeof f == "object" ? Object.keys(f).map((a) => {
|
|
110
110
|
if (a === "length")
|
|
111
111
|
return { target: s, operator: "length", param: null, value: f[a] };
|
|
112
|
-
const
|
|
113
|
-
return { target: s, operator: "getProperty", param:
|
|
112
|
+
const d = a, r = f[a];
|
|
113
|
+
return { target: s, operator: "getProperty", param: d, value: r };
|
|
114
114
|
}) : [];
|
|
115
115
|
}
|
|
116
|
-
function v(
|
|
117
|
-
return Object.keys(
|
|
118
|
-
const
|
|
119
|
-
return s.push(...
|
|
116
|
+
function v(l) {
|
|
117
|
+
return Object.keys(l).reduce((s, a) => {
|
|
118
|
+
const d = p(a, l[a]);
|
|
119
|
+
return s.push(...d), s;
|
|
120
120
|
}, []);
|
|
121
121
|
}
|
|
122
|
-
function b(
|
|
123
|
-
if (
|
|
124
|
-
const s =
|
|
125
|
-
return s && s(
|
|
122
|
+
function b(l, f) {
|
|
123
|
+
if (o.has(l.operator)) {
|
|
124
|
+
const s = o.get(l.operator);
|
|
125
|
+
return s && s(l.target, l.param, l.value, f) || !1;
|
|
126
126
|
}
|
|
127
127
|
return !1;
|
|
128
128
|
}
|
|
129
|
-
function C(
|
|
130
|
-
return v(
|
|
129
|
+
function C(l, f) {
|
|
130
|
+
return v(l).reduce((d, r) => d && b(r, f), !0);
|
|
131
131
|
}
|
|
132
|
-
function S(
|
|
133
|
-
const s = Object.keys(
|
|
132
|
+
function S(l, f) {
|
|
133
|
+
const s = Object.keys(l), a = s.includes("allOf"), d = s.includes("anyOf"), r = a || d, m = (r ? l[r ? a ? "allOf" : "anyOf" : "allOf"] : [l]).map((T) => C(T, f));
|
|
134
134
|
return a ? !m.includes(!1) : m.includes(!0);
|
|
135
135
|
}
|
|
136
136
|
return { parseValueSchema: S };
|
|
137
137
|
}
|
|
138
138
|
const we = {
|
|
139
|
-
convertTo: (e, t, n,
|
|
139
|
+
convertTo: (e, t, n, o) => {
|
|
140
140
|
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
141
141
|
},
|
|
142
142
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
143
143
|
}, $e = {
|
|
144
144
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
145
145
|
}, Pe = {
|
|
146
|
-
convertTo: (e, t, n,
|
|
146
|
+
convertTo: (e, t, n, o) => {
|
|
147
147
|
e.editor && (e.editor[t] = n);
|
|
148
148
|
},
|
|
149
149
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
@@ -197,16 +197,16 @@ const we = {
|
|
|
197
197
|
}, xe = {
|
|
198
198
|
convertFrom: (e, t, n) => {
|
|
199
199
|
var p;
|
|
200
|
-
const
|
|
201
|
-
return ((p = Oe[
|
|
200
|
+
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
201
|
+
return ((p = Oe[o]) == null ? void 0 : p.name) || o;
|
|
202
202
|
}
|
|
203
203
|
}, je = {
|
|
204
|
-
convertTo: (e, t, n,
|
|
204
|
+
convertTo: (e, t, n, o) => {
|
|
205
205
|
e[t] = e[t];
|
|
206
206
|
},
|
|
207
207
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
208
208
|
}, Me = {
|
|
209
|
-
convertTo: (e, t, n,
|
|
209
|
+
convertTo: (e, t, n, o) => {
|
|
210
210
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
|
|
211
211
|
[t]: n
|
|
212
212
|
});
|
|
@@ -237,7 +237,7 @@ const we = {
|
|
|
237
237
|
return "none";
|
|
238
238
|
}
|
|
239
239
|
}, De = {
|
|
240
|
-
convertTo: (e, t, n,
|
|
240
|
+
convertTo: (e, t, n, o) => {
|
|
241
241
|
e.command ? e.command[t] = n : e.command = {
|
|
242
242
|
[t]: n
|
|
243
243
|
}, t === "enable" && n && (e.command.commands || (e.command.commands = [
|
|
@@ -255,7 +255,7 @@ const we = {
|
|
|
255
255
|
},
|
|
256
256
|
convertFrom: (e, t, n) => e.command && t === "enable" ? e.command.enable : ""
|
|
257
257
|
}, Ee = {
|
|
258
|
-
convertTo: (e, t, n,
|
|
258
|
+
convertTo: (e, t, n, o) => {
|
|
259
259
|
e.column ? e.column[t] = n : e.column = {
|
|
260
260
|
[t]: n
|
|
261
261
|
}, t === "fitColumns" && n && (e.column.fitMode || (e.column.fitMode = "average"));
|
|
@@ -270,7 +270,7 @@ const we = {
|
|
|
270
270
|
return "";
|
|
271
271
|
}
|
|
272
272
|
}, Ne = {
|
|
273
|
-
convertTo: (e, t, n,
|
|
273
|
+
convertTo: (e, t, n, o) => {
|
|
274
274
|
e.summary ? e.summary[t] = n : e.summary = {
|
|
275
275
|
[t]: n
|
|
276
276
|
}, t === "enable" && n && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
|
|
@@ -280,7 +280,7 @@ const we = {
|
|
|
280
280
|
},
|
|
281
281
|
convertFrom: (e, t, n) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
|
|
282
282
|
}, ke = {
|
|
283
|
-
convertTo: (e, t, n,
|
|
283
|
+
convertTo: (e, t, n, o) => {
|
|
284
284
|
e.group ? e.group[t] = n : e.group = {
|
|
285
285
|
[t]: n
|
|
286
286
|
}, t === "enable" && n && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
|
|
@@ -301,22 +301,22 @@ const we = {
|
|
|
301
301
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
302
302
|
convertTo: (e, t, n) => {
|
|
303
303
|
if (n && n.length > 0) {
|
|
304
|
-
const
|
|
305
|
-
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path =
|
|
304
|
+
const o = n[0];
|
|
305
|
+
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}, He = {
|
|
309
|
-
convertTo: (e, t, n,
|
|
309
|
+
convertTo: (e, t, n, o) => {
|
|
310
310
|
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
311
311
|
},
|
|
312
312
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
313
313
|
}, Re = {
|
|
314
|
-
convertTo: (e, t, n,
|
|
314
|
+
convertTo: (e, t, n, o) => {
|
|
315
315
|
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
|
|
316
316
|
},
|
|
317
317
|
convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
318
318
|
}, Be = {
|
|
319
|
-
convertTo: (e, t, n,
|
|
319
|
+
convertTo: (e, t, n, o) => {
|
|
320
320
|
e.selection || (e.selection = {}), e.selection[t] = n;
|
|
321
321
|
},
|
|
322
322
|
convertFrom: (e, t, n) => e.selection ? e.selection[t] : e[t]
|
|
@@ -328,37 +328,37 @@ const we = {
|
|
|
328
328
|
e[t] = n;
|
|
329
329
|
}
|
|
330
330
|
}, ze = {
|
|
331
|
-
convertTo: (e, t, n,
|
|
331
|
+
convertTo: (e, t, n, o) => {
|
|
332
332
|
e.size || (e.size = {}), e.size[t] = n;
|
|
333
333
|
},
|
|
334
334
|
convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
|
|
335
335
|
}, Le = {
|
|
336
336
|
convertFrom: (e, t, n) => {
|
|
337
|
-
var
|
|
338
|
-
return (
|
|
337
|
+
var o, p;
|
|
338
|
+
return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (p = e.formatter) == null ? void 0 : p.data : e.formatterEnumData;
|
|
339
339
|
}
|
|
340
340
|
}, _e = {
|
|
341
|
-
convertTo: (e, t, n,
|
|
341
|
+
convertTo: (e, t, n, o) => {
|
|
342
342
|
e.sort || (e.sort = {}), e.sort[t] = n;
|
|
343
343
|
},
|
|
344
344
|
convertFrom: (e, t, n) => {
|
|
345
|
-
var
|
|
345
|
+
var o, p;
|
|
346
346
|
if (t === "mode")
|
|
347
|
-
return ((
|
|
347
|
+
return ((o = e.sort) == null ? void 0 : o.mode) || "client";
|
|
348
348
|
if (t === "multiSort")
|
|
349
349
|
return !!((p = e.sort) != null && p.multiSort);
|
|
350
350
|
}
|
|
351
351
|
}, Ge = {
|
|
352
|
-
convertTo: (e, t, n,
|
|
352
|
+
convertTo: (e, t, n, o) => {
|
|
353
353
|
e.filter || (e.filter = {}), e.filter[t] = n;
|
|
354
354
|
},
|
|
355
355
|
convertFrom: (e, t, n) => {
|
|
356
|
-
var
|
|
356
|
+
var o;
|
|
357
357
|
if (t === "mode")
|
|
358
|
-
return ((
|
|
358
|
+
return ((o = e.filter) == null ? void 0 : o.mode) || "client";
|
|
359
359
|
}
|
|
360
360
|
}, Ue = {
|
|
361
|
-
convertTo: (e, t, n,
|
|
361
|
+
convertTo: (e, t, n, o) => {
|
|
362
362
|
e.rowOption ? e.rowOption[t] = n : e.rowOption = {
|
|
363
363
|
[t]: n
|
|
364
364
|
};
|
|
@@ -374,7 +374,7 @@ const we = {
|
|
|
374
374
|
}
|
|
375
375
|
};
|
|
376
376
|
function K(e, t, n) {
|
|
377
|
-
const
|
|
377
|
+
const o = /* @__PURE__ */ new Map([
|
|
378
378
|
["/converter/appearance.converter", we],
|
|
379
379
|
["/converter/buttons.converter", $e],
|
|
380
380
|
["/converter/property-editor.converter", Pe],
|
|
@@ -421,94 +421,94 @@ function K(e, t, n) {
|
|
|
421
421
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
422
422
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
423
423
|
]), v = Te();
|
|
424
|
-
function b(
|
|
425
|
-
return () => v.parseValueSchema(
|
|
424
|
+
function b(r, i) {
|
|
425
|
+
return () => v.parseValueSchema(r, i);
|
|
426
426
|
}
|
|
427
|
-
function C(
|
|
428
|
-
return
|
|
427
|
+
function C(r, i, c) {
|
|
428
|
+
return r.includes("visible") && i.visible !== void 0 ? typeof i.visible == "boolean" ? () => !!i.visible : i.visible === void 0 ? !0 : b(i.visible, c) : () => !0;
|
|
429
429
|
}
|
|
430
|
-
function S(
|
|
431
|
-
return
|
|
430
|
+
function S(r, i, c) {
|
|
431
|
+
return r.includes("readonly") && i.readonly !== void 0 ? typeof i.readonly == "boolean" ? () => !!i.readonly : b(i.readonly, c) : () => !1;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
const
|
|
435
|
-
return typeof
|
|
433
|
+
function l(r, i) {
|
|
434
|
+
const c = r.$converter || i;
|
|
435
|
+
return typeof c == "string" && c && o.has(c) ? o.get(c) || null : c || null;
|
|
436
436
|
}
|
|
437
|
-
function f(
|
|
438
|
-
return Object.keys(
|
|
439
|
-
const O = E(1), x = h,
|
|
437
|
+
function f(r, i, c, m, g, T = "", P = "") {
|
|
438
|
+
return Object.keys(r).map((h) => {
|
|
439
|
+
const O = E(1), x = h, u = r[h], w = Object.keys(u), H = u.title, N = u.type, k = p.get(N) || { type: "input-group", enableClear: !1 }, D = u.editor ? Object.assign({}, k, u.editor) : Object.assign({}, k), I = C(w, u, i), R = S(w, u, i);
|
|
440
440
|
D.readonly = D.readonly === void 0 ? R() : D.readonly;
|
|
441
|
-
const q =
|
|
442
|
-
let j = u
|
|
441
|
+
const q = u.type === "cascade" ? f(u.properties, i, c, m, g, T, P) : [], le = !0;
|
|
442
|
+
let j = l(u, P);
|
|
443
443
|
const ue = F({
|
|
444
444
|
get() {
|
|
445
445
|
if (O.value) {
|
|
446
|
-
if (["class", "style"].find((ve) => ve === x) && !j && (j =
|
|
447
|
-
return j.convertFrom(
|
|
448
|
-
const M =
|
|
449
|
-
return Object.prototype.hasOwnProperty.call(
|
|
446
|
+
if (["class", "style"].find((ve) => ve === x) && !j && (j = o.get("/converter/appearance.converter") || null), j && j.convertFrom)
|
|
447
|
+
return j.convertFrom(c, h, g, T);
|
|
448
|
+
const M = c[h];
|
|
449
|
+
return Object.prototype.hasOwnProperty.call(u, "defaultValue") && (M === void 0 || typeof M == "string" && M === "") ? u.type === "boolean" ? u.defaultValue : u.defaultValue || "" : M;
|
|
450
450
|
}
|
|
451
451
|
return null;
|
|
452
452
|
},
|
|
453
453
|
set(M) {
|
|
454
|
-
O.value += 1, j && j.convertTo ? (j.convertTo(m, h, M, g, T), j.convertTo(
|
|
454
|
+
O.value += 1, j && j.convertTo ? (j.convertTo(m, h, M, g, T), j.convertTo(c, h, M, g, T)) : (m[h] = M, c[h] = M);
|
|
455
455
|
}
|
|
456
|
-
}), { refreshPanelAfterChanged: de, description: fe, isExpand: me, parentPropertyID: pe } =
|
|
457
|
-
return
|
|
456
|
+
}), { refreshPanelAfterChanged: de, description: fe, isExpand: me, parentPropertyID: pe } = u, G = { propertyID: x, propertyName: H, propertyType: N, propertyValue: ue, editor: D, visible: I, readonly: R, cascadeConfig: q, hideCascadeTitle: le, refreshPanelAfterChanged: de, description: fe, isExpand: me, parentPropertyID: pe };
|
|
457
|
+
return i[x] = G, G;
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
|
-
function s(
|
|
461
|
-
const m = {}, g = e[
|
|
460
|
+
function s(r, i, c = {}) {
|
|
461
|
+
const m = {}, g = e[r];
|
|
462
462
|
return g && g.categories ? Object.keys(g.categories).map((P) => {
|
|
463
|
-
const $ = g.categories[P], h = $ == null ? void 0 : $.title, O = f($.properties || {}, m, {},
|
|
463
|
+
const $ = g.categories[P], h = $ == null ? void 0 : $.title, O = f($.properties || {}, m, {}, c, i);
|
|
464
464
|
return { categoryId: P, categoryName: h, properties: O };
|
|
465
465
|
}) : [];
|
|
466
466
|
}
|
|
467
|
-
function a(
|
|
468
|
-
const T =
|
|
469
|
-
if (
|
|
470
|
-
const w =
|
|
467
|
+
function a(r, i, c, m, g = "") {
|
|
468
|
+
const T = i.$ref.schema, P = i.$ref.converter, $ = c[T], h = $.type, O = n($), x = {}, u = e[h];
|
|
469
|
+
if (u && u.categories) {
|
|
470
|
+
const w = u.categories[r], H = w == null ? void 0 : w.title;
|
|
471
471
|
P && Object.keys(w.properties).forEach((D) => {
|
|
472
472
|
w.properties[D].$converter = P;
|
|
473
473
|
});
|
|
474
474
|
const N = (w == null ? void 0 : w.properties) || {}, k = f(N, x, O, $, m, g);
|
|
475
|
-
return { categoryId:
|
|
475
|
+
return { categoryId: r, categoryName: H, properties: k };
|
|
476
476
|
}
|
|
477
|
-
return { categoryId:
|
|
477
|
+
return { categoryId: r, categoryName: "", properties: [] };
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
const T =
|
|
479
|
+
function d(r, i, c, m, g) {
|
|
480
|
+
const T = r.type, P = n(r), $ = {};
|
|
481
481
|
let h = g || e[T];
|
|
482
|
-
if (h && Object.keys(h).length === 0 &&
|
|
482
|
+
if (h && Object.keys(h).length === 0 && c && c.getPropConfig && (h = c.getPropConfig(m)), h && h.categories) {
|
|
483
483
|
const O = [];
|
|
484
484
|
return Object.keys(h.categories).map((x) => {
|
|
485
|
-
const
|
|
486
|
-
if (
|
|
487
|
-
O.push(a(x,
|
|
485
|
+
const u = h.categories[x];
|
|
486
|
+
if (u.$ref) {
|
|
487
|
+
O.push(a(x, u, r, i, m));
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
490
|
-
const w =
|
|
490
|
+
const w = u == null ? void 0 : u.title, H = u == null ? void 0 : u.tabId, N = u == null ? void 0 : u.tabName, k = u == null ? void 0 : u.hide, D = u == null ? void 0 : u.hideTitle, I = f(u.properties || {}, $, P, r, i, m, u.$converter), { setPropertyRelates: R } = u, q = u == null ? void 0 : u.parentPropertyID;
|
|
491
491
|
O.push({ categoryId: x, categoryName: w, tabId: H, tabName: N, hide: k, properties: I, hideTitle: D, setPropertyRelates: R, parentPropertyID: q });
|
|
492
492
|
}), O;
|
|
493
493
|
}
|
|
494
494
|
return [];
|
|
495
495
|
}
|
|
496
496
|
return {
|
|
497
|
-
getPropertyConfigBySchema:
|
|
497
|
+
getPropertyConfigBySchema: d,
|
|
498
498
|
getPropertyConfigByType: s,
|
|
499
|
-
propertyConverterMap:
|
|
499
|
+
propertyConverterMap: o
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
502
|
const ee = {}, te = {};
|
|
503
503
|
K(ee, te, Ce);
|
|
504
504
|
const ne = {}, re = {}, { getSchemaByType: $t, resolveSchemaWithDefaultValue: We, resolveSchemaToProps: Pt, mappingSchemaToProps: Ot, setDesignerContext: xt } = Y(ne, re), oe = {}, ie = {};
|
|
505
505
|
K(oe, ie, We);
|
|
506
|
-
function Je(e, t, n = /* @__PURE__ */ new Map(),
|
|
507
|
-
return Z[t.title] = t, V[t.title] =
|
|
506
|
+
function Je(e, t, n = /* @__PURE__ */ new Map(), o = (b, C, S, l) => C, p = {}, v = (b) => b) {
|
|
507
|
+
return Z[t.title] = t, V[t.title] = o, ee[t.title] = p, te[t.title] = v, ne[t.title] = t, re[t.title] = o, oe[t.title] = p, ie[t.title] = v, (b = {}, C = !0) => {
|
|
508
508
|
if (!C)
|
|
509
509
|
return Fe(b, n);
|
|
510
|
-
const S = Se(b, t, n),
|
|
511
|
-
return Object.assign(
|
|
510
|
+
const S = Se(b, t, n), l = Object.keys(e).reduce((f, s) => (f[s] = e[s].default, f), {});
|
|
511
|
+
return Object.assign(l, S);
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
514
|
const se = /* @__PURE__ */ new Map([
|
|
@@ -634,12 +634,12 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
|
|
|
634
634
|
ge("accordionContext", {
|
|
635
635
|
parentProps: e
|
|
636
636
|
});
|
|
637
|
-
const
|
|
637
|
+
const o = F(() => X({
|
|
638
638
|
"farris-panel": !0,
|
|
639
639
|
accordion: !0
|
|
640
640
|
}, e.customClass));
|
|
641
641
|
return () => y("div", {
|
|
642
|
-
class:
|
|
642
|
+
class: o.value,
|
|
643
643
|
style: n.value
|
|
644
644
|
}, [t.slots.default && t.slots.default()]);
|
|
645
645
|
}
|
|
@@ -696,6 +696,7 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
|
|
|
696
696
|
active: { type: Boolean, default: !1 },
|
|
697
697
|
customClass: { type: String, default: "" },
|
|
698
698
|
disabled: { type: Boolean, default: !1 },
|
|
699
|
+
enableFold: { type: Boolean, default: !0 },
|
|
699
700
|
height: { type: Number },
|
|
700
701
|
iconUri: { type: String, default: "" },
|
|
701
702
|
maxHeight: { type: Number },
|
|
@@ -706,62 +707,64 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
|
|
|
706
707
|
props: _,
|
|
707
708
|
emits: ["ClickHeader"],
|
|
708
709
|
setup(e, t) {
|
|
709
|
-
const n = E(),
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
710
|
+
const n = E(), o = J("accordionContext"), p = E(e.title), v = E(e.active), b = F(() => {
|
|
711
|
+
var r;
|
|
712
|
+
return !!((r = o == null ? void 0 : o.parentProps) != null && r.enableFold) && e.enableFold;
|
|
713
|
+
});
|
|
714
|
+
function C() {
|
|
715
|
+
e.disabled || !b.value || (v.value = !v.value);
|
|
713
716
|
}
|
|
714
|
-
function
|
|
715
|
-
t.emit("ClickHeader"),
|
|
717
|
+
function S(r) {
|
|
718
|
+
t.emit("ClickHeader"), C();
|
|
716
719
|
}
|
|
717
|
-
const
|
|
718
|
-
const
|
|
720
|
+
const l = F(() => {
|
|
721
|
+
const r = {
|
|
719
722
|
card: !0,
|
|
720
723
|
"farris-panel-item": !0,
|
|
721
724
|
"f-state-disabled": e.disabled,
|
|
722
725
|
"f-state-selected": v.value
|
|
723
726
|
};
|
|
724
|
-
return X(
|
|
725
|
-
}),
|
|
727
|
+
return X(r, e.customClass);
|
|
728
|
+
}), f = F(() => !0), s = F(() => ({
|
|
726
729
|
"f-icon": !0,
|
|
727
730
|
"f-accordion-collapse": !v.value,
|
|
728
731
|
"f-accordion-expand": v.value
|
|
729
732
|
}));
|
|
730
|
-
function
|
|
733
|
+
function a() {
|
|
731
734
|
return n.value ? n.value.getBoundingClientRect().height : 0;
|
|
732
735
|
}
|
|
733
|
-
const
|
|
734
|
-
const
|
|
736
|
+
const d = F(() => {
|
|
737
|
+
const r = e.maxHeight ? {
|
|
735
738
|
transition: "maxHeight 0.36s ease 0s",
|
|
736
739
|
"max-height": v.value ? `${e.maxHeight}px` : 0
|
|
737
740
|
} : {
|
|
738
741
|
transition: "height 0.36s ease 0s",
|
|
739
|
-
height: v.value ? `${
|
|
742
|
+
height: v.value ? `${a()}px` : 0
|
|
740
743
|
};
|
|
741
|
-
return v.value || (
|
|
744
|
+
return v.value || (r.overflow = "hidden"), r;
|
|
742
745
|
});
|
|
743
746
|
return Q(() => {
|
|
744
|
-
var
|
|
745
|
-
(
|
|
747
|
+
var r;
|
|
748
|
+
(r = o == null ? void 0 : o.parentProps) != null && r.expanded && (v.value = !0);
|
|
746
749
|
}), () => y("div", {
|
|
747
|
-
class:
|
|
750
|
+
class: l.value
|
|
748
751
|
}, [y("div", {
|
|
749
752
|
class: "card-header",
|
|
750
|
-
onClick:
|
|
753
|
+
onClick: S
|
|
751
754
|
}, [y("div", {
|
|
752
755
|
class: "panel-item-title"
|
|
753
756
|
}, [e.iconUri && y("img", {
|
|
754
757
|
class: "panel-item-title-image",
|
|
755
758
|
src: e.iconUri,
|
|
756
759
|
title: "title-icon"
|
|
757
|
-
}, null),
|
|
758
|
-
class:
|
|
760
|
+
}, null), f.value && y("span", null, [p.value]), t.slots.head && t.slots.head(), b.value && y("i", {
|
|
761
|
+
class: s.value
|
|
759
762
|
}, null)]), y("div", {
|
|
760
763
|
class: "panel-item-tool"
|
|
761
764
|
}, [t.slots.toolbar && t.slots.toolbar()]), y("div", {
|
|
762
765
|
class: "panel-item-clear"
|
|
763
766
|
}, null)]), y("div", {
|
|
764
|
-
style:
|
|
767
|
+
style: d.value
|
|
765
768
|
}, [y("div", {
|
|
766
769
|
class: "card-body",
|
|
767
770
|
ref: n
|
|
@@ -775,18 +778,18 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
|
|
|
775
778
|
const n = F(() => ({
|
|
776
779
|
height: e.height ? `${e.height}px` : "",
|
|
777
780
|
width: e.width ? `${e.width}px` : ""
|
|
778
|
-
})),
|
|
781
|
+
})), o = F(() => {
|
|
779
782
|
const C = e.customClass.split(" "), S = {
|
|
780
783
|
"farris-panel": !0,
|
|
781
784
|
accordion: !0
|
|
782
785
|
};
|
|
783
|
-
return C.reduce((
|
|
786
|
+
return C.reduce((l, f) => (l[f] = !0, l), S), S;
|
|
784
787
|
}), p = E(), v = J("design-item-context"), b = he(p, v);
|
|
785
788
|
return Q(() => {
|
|
786
789
|
p.value.componentInstance = b;
|
|
787
790
|
}), t.expose(b.value), () => y("div", {
|
|
788
791
|
ref: p,
|
|
789
|
-
class:
|
|
792
|
+
class: o.value,
|
|
790
793
|
style: n.value
|
|
791
794
|
}, [t.slots.default && t.slots.default()]);
|
|
792
795
|
}
|
|
@@ -795,45 +798,45 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
|
|
|
795
798
|
props: _,
|
|
796
799
|
emits: [],
|
|
797
800
|
setup(e, t) {
|
|
798
|
-
const n = E(e.title),
|
|
801
|
+
const n = E(e.title), o = E(!1), p = E(!1);
|
|
799
802
|
function v() {
|
|
800
|
-
|
|
803
|
+
o.value = !o.value;
|
|
801
804
|
}
|
|
802
|
-
function b(
|
|
805
|
+
function b(i) {
|
|
803
806
|
v();
|
|
804
807
|
}
|
|
805
808
|
const C = F(() => ({
|
|
806
809
|
"f-state-disabled": p.value,
|
|
807
810
|
card: !0,
|
|
808
811
|
"farris-panel-item": !0,
|
|
809
|
-
"f-state-selected":
|
|
810
|
-
})), S = F(() => !0),
|
|
812
|
+
"f-state-selected": o.value
|
|
813
|
+
})), S = F(() => !0), l = F(() => !1), f = F(() => ({
|
|
811
814
|
"f-icon": !0,
|
|
812
|
-
"f-accordion-collapse": !
|
|
813
|
-
"f-accordion-expand":
|
|
815
|
+
"f-accordion-collapse": !o.value,
|
|
816
|
+
"f-accordion-expand": o.value
|
|
814
817
|
})), s = F(() => {
|
|
815
|
-
const
|
|
818
|
+
const i = e.maxHeight ? {
|
|
816
819
|
transition: "maxHeight 0.36s ease 0s",
|
|
817
|
-
"max-height":
|
|
820
|
+
"max-height": o.value ? `${e.maxHeight}px` : 0
|
|
818
821
|
} : {
|
|
819
822
|
transition: "height 0.36s ease 0s",
|
|
820
|
-
height:
|
|
823
|
+
height: o.value ? `${e.height}px` : 0
|
|
821
824
|
};
|
|
822
|
-
return
|
|
825
|
+
return o.value || (i.overflow = "hidden"), i;
|
|
823
826
|
});
|
|
824
827
|
function a() {
|
|
825
828
|
return !0;
|
|
826
829
|
}
|
|
827
|
-
function
|
|
830
|
+
function d() {
|
|
828
831
|
return !1;
|
|
829
832
|
}
|
|
830
|
-
function
|
|
833
|
+
function r() {
|
|
831
834
|
return !0;
|
|
832
835
|
}
|
|
833
836
|
return t.expose({
|
|
834
837
|
canMove: a(),
|
|
835
|
-
canSelectParent:
|
|
836
|
-
canDelete:
|
|
838
|
+
canSelectParent: d(),
|
|
839
|
+
canDelete: r(),
|
|
837
840
|
canNested: !0
|
|
838
841
|
}), () => y("div", {
|
|
839
842
|
class: C.value
|
|
@@ -842,7 +845,7 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
|
|
|
842
845
|
onClick: b
|
|
843
846
|
}, [y("div", {
|
|
844
847
|
class: "panel-item-title"
|
|
845
|
-
}, [S.value && y("span", null, [n.value]),
|
|
848
|
+
}, [S.value && y("span", null, [n.value]), l.value && t.slots.head && t.slots.head(), y("span", {
|
|
846
849
|
class: f.value
|
|
847
850
|
}, null)]), y("div", {
|
|
848
851
|
class: "panel-item-tool"
|
|
@@ -858,7 +861,7 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
|
|
|
858
861
|
A.install = (e) => {
|
|
859
862
|
e.component(A.name, A), e.component(z.name, z);
|
|
860
863
|
};
|
|
861
|
-
A.register = (e, t, n,
|
|
864
|
+
A.register = (e, t, n, o) => {
|
|
862
865
|
e.accordion = A, e["accordion-item"] = z, t.accordion = ae, t["accordion-item"] = ce;
|
|
863
866
|
};
|
|
864
867
|
A.registerDesigner = (e, t, n) => {
|