@farris/ui-vue 1.6.5-beta.7 → 1.6.5
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 +65 -65
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +360 -361
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +524 -520
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +134 -134
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +192 -192
- package/components/capsule/index.umd.cjs +1 -1
- package/components/code-editor/index.esm.js +8 -8
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +72 -72
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +291 -289
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +190 -181
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +113 -112
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +3 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +309 -309
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1125 -1124
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +472 -472
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3387 -3321
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1604 -1601
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1082 -1079
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +973 -1040
- package/components/discussion-editor/index.umd.cjs +6 -6
- package/components/dropdown/index.esm.js +335 -330
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +177 -177
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +6 -6
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +344 -344
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +644 -644
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1773 -1760
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +879 -869
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +1091 -1077
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +215 -215
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/html-template/index.esm.js +164 -164
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +198 -198
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +64 -64
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +140 -140
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +111 -111
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +90 -90
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +139 -141
- package/components/list-view/index.umd.cjs +3 -3
- package/components/locale/index.esm.js +833 -901
- package/components/locale/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +1352 -1351
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1387 -1383
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +1059 -1127
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.esm.js +217 -217
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +283 -283
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +106 -106
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +194 -194
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +463 -462
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +883 -876
- package/components/order/index.umd.cjs +4 -4
- package/components/page-footer/index.esm.js +94 -94
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +942 -939
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +82 -82
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +59 -57
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +113 -113
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.esm.js +151 -150
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +739 -739
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4142 -4190
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +182 -182
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +106 -106
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +535 -535
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1456 -1443
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +779 -776
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1875 -1866
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +151 -147
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1236 -1233
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +163 -163
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +1097 -1083
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/splitter/index.esm.js +3 -3
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +133 -133
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +103 -98
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1596 -1593
- package/components/tabs/index.umd.cjs +2 -2
- package/components/tags/index.esm.js +93 -93
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +138 -138
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +684 -684
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.esm.js +935 -929
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +190 -192
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +124 -124
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2363 -2278
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +170 -170
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +196 -196
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +227 -227
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +9 -9
- package/components/weather/index.umd.cjs +2 -2
- package/designer/button-edit/index.esm.js +353 -353
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +7 -3
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +38 -33
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +3562 -3536
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +3 -3
- package/designer/data-view/index.umd.cjs +3 -3
- package/designer/farris-designer.all.esm.js +4203 -4193
- package/designer/farris-designer.all.umd.cjs +9 -9
- package/designer/input-group/index.esm.js +97 -97
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +1868 -1854
- package/designer/list-view/index.umd.cjs +8 -8
- package/designer/radio-group/index.esm.js +954 -949
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +16195 -16126
- package/farris.all.umd.cjs +30 -30
- package/locales/data-grid/ui/en.json +2 -2
- package/locales/designer/en.json +7 -6
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +7 -6
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as P, computed as x, defineComponent as U, watch as _, createVNode as C, Fragment as pe, inject as de, onMounted as me, resolveComponent as ve } from "vue";
|
|
2
2
|
import be from "../button-edit/index.esm.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cloneDeep as X, isPlainObject as J } from "lodash-es";
|
|
4
4
|
import ge from "../list-view/index.esm.js";
|
|
5
5
|
import ye from "../loading/index.esm.js";
|
|
6
6
|
import { getSchemaByTypeForDesigner as he } from "../dynamic-resolver/index.esm.js";
|
|
7
7
|
function Q(e, t) {
|
|
8
8
|
let n;
|
|
9
9
|
function a(o) {
|
|
10
|
-
const { properties: u, title: c, ignore: r } = o, i = r && Array.isArray(r), f = Object.keys(u).reduce((v,
|
|
10
|
+
const { properties: u, title: c, ignore: r } = o, i = r && Array.isArray(r), f = Object.keys(u).reduce((v, F) => ((!i || !r.find((E) => E === F)) && (v[F] = u[F].type === "object" && u[F].properties ? a(u[F]) : X(u[F].default)), v), {});
|
|
11
11
|
if (c && (!i || !r.find((v) => v === "id"))) {
|
|
12
12
|
const v = c.toLowerCase().replace(/-/g, "_");
|
|
13
13
|
f.id = `${v}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -17,7 +17,7 @@ function Q(e, t) {
|
|
|
17
17
|
function g(o) {
|
|
18
18
|
const { properties: u, title: c, required: r } = o;
|
|
19
19
|
if (r && Array.isArray(r)) {
|
|
20
|
-
const i = r.reduce((f, v) => (f[v] = u[v].type === "object" && u[v].properties ? a(u[v]) :
|
|
20
|
+
const i = r.reduce((f, v) => (f[v] = u[v].type === "object" && u[v].properties ? a(u[v]) : X(u[v].default), f), {});
|
|
21
21
|
if (c && r.find((f) => f === "id")) {
|
|
22
22
|
const f = c.toLowerCase().replace(/-/g, "_");
|
|
23
23
|
i.id = `${f}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -28,20 +28,20 @@ function Q(e, t) {
|
|
|
28
28
|
type: c
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function O(o, u = {}, c) {
|
|
32
32
|
const r = e[o];
|
|
33
33
|
if (r) {
|
|
34
34
|
let i = g(r);
|
|
35
35
|
const f = t[o];
|
|
36
|
-
return i = f ? f({ getSchemaByType:
|
|
36
|
+
return i = f ? f({ getSchemaByType: O }, i, u, c) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
|
|
37
37
|
}
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
40
|
function y(o, u) {
|
|
41
41
|
const c = a(u);
|
|
42
|
-
return Object.keys(c).reduce((r, i) => (Object.prototype.hasOwnProperty.call(o, i) && (r[i] &&
|
|
42
|
+
return Object.keys(c).reduce((r, i) => (Object.prototype.hasOwnProperty.call(o, i) && (r[i] && J(r[i]) && J(o[i] || !o[i]) ? Object.assign(r[i], o[i] || {}) : r[i] = o[i]), r), c), c;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function S(o, u) {
|
|
45
45
|
return Object.keys(o).filter((r) => o[r] != null).reduce((r, i) => {
|
|
46
46
|
if (u.has(i)) {
|
|
47
47
|
const f = u.get(i);
|
|
@@ -56,9 +56,9 @@ function Q(e, t) {
|
|
|
56
56
|
return r;
|
|
57
57
|
}, {});
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function w(o, u, c = /* @__PURE__ */ new Map()) {
|
|
60
60
|
const r = y(o, u);
|
|
61
|
-
return
|
|
61
|
+
return S(r, c);
|
|
62
62
|
}
|
|
63
63
|
function d(o) {
|
|
64
64
|
var c;
|
|
@@ -69,8 +69,8 @@ function Q(e, t) {
|
|
|
69
69
|
return o;
|
|
70
70
|
const i = y(o, r), f = ((c = o.editor) == null ? void 0 : c.type) || "";
|
|
71
71
|
if (f) {
|
|
72
|
-
const v = e[f],
|
|
73
|
-
i.editor =
|
|
72
|
+
const v = e[f], F = y(o.editor, v);
|
|
73
|
+
i.editor = F;
|
|
74
74
|
}
|
|
75
75
|
return i;
|
|
76
76
|
}
|
|
@@ -79,10 +79,10 @@ function Q(e, t) {
|
|
|
79
79
|
function l(o) {
|
|
80
80
|
n = o;
|
|
81
81
|
}
|
|
82
|
-
return { getSchemaByType:
|
|
82
|
+
return { getSchemaByType: O, resolveSchemaWithDefaultValue: d, resolveSchemaToProps: w, mappingSchemaToProps: S, setDesignerContext: l };
|
|
83
83
|
}
|
|
84
|
-
const Y = {}, Z = {}, { resolveSchemaWithDefaultValue: Se, resolveSchemaToProps: Fe, mappingSchemaToProps: Te } = Q(Y, Z);
|
|
85
|
-
function
|
|
84
|
+
const Y = {}, Z = {}, { getSchemaByType: yt, resolveSchemaWithDefaultValue: Se, resolveSchemaToProps: Fe, mappingSchemaToProps: Te, setDesignerContext: ht } = Q(Y, Z);
|
|
85
|
+
function Be(e = {}) {
|
|
86
86
|
function t(d, l, o, u) {
|
|
87
87
|
if (typeof o == "number")
|
|
88
88
|
return u[d].length === o;
|
|
@@ -114,7 +114,7 @@ function we(e = {}) {
|
|
|
114
114
|
return { target: o, operator: "getProperty", param: c, value: r };
|
|
115
115
|
}) : [];
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function O(d) {
|
|
118
118
|
return Object.keys(d).reduce((o, u) => {
|
|
119
119
|
const c = g(u, d[u]);
|
|
120
120
|
return o.push(...c), o;
|
|
@@ -127,23 +127,23 @@ function we(e = {}) {
|
|
|
127
127
|
}
|
|
128
128
|
return !1;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
130
|
+
function S(d, l) {
|
|
131
|
+
return O(d).reduce((c, r) => c && y(r, l), !0);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
const o = Object.keys(d), u = o.includes("allOf"), c = o.includes("anyOf"), r = u || c, v = (r ? d[r ? u ? "allOf" : "anyOf" : "allOf"] : [d]).map((E) =>
|
|
133
|
+
function w(d, l) {
|
|
134
|
+
const o = Object.keys(d), u = o.includes("allOf"), c = o.includes("anyOf"), r = u || c, v = (r ? d[r ? u ? "allOf" : "anyOf" : "allOf"] : [d]).map((E) => S(E, l));
|
|
135
135
|
return u ? !v.includes(!1) : v.includes(!0);
|
|
136
136
|
}
|
|
137
|
-
return { parseValueSchema:
|
|
137
|
+
return { parseValueSchema: w };
|
|
138
138
|
}
|
|
139
|
-
const
|
|
139
|
+
const Pe = {
|
|
140
140
|
convertTo: (e, t, n, a) => {
|
|
141
141
|
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
142
142
|
},
|
|
143
143
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
144
|
-
},
|
|
144
|
+
}, Oe = {
|
|
145
145
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
146
|
-
},
|
|
146
|
+
}, we = {
|
|
147
147
|
convertTo: (e, t, n, a) => {
|
|
148
148
|
e.editor && (e.editor[t] = n);
|
|
149
149
|
},
|
|
@@ -298,7 +298,7 @@ const Oe = {
|
|
|
298
298
|
return e.group.showSummary;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, $e = {
|
|
302
302
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
303
303
|
convertTo: (e, t, n) => {
|
|
304
304
|
if (n && n.length > 0) {
|
|
@@ -306,12 +306,12 @@ const Oe = {
|
|
|
306
306
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = a.bindingField, e.binding.field = a.id, e.binding.fullPath = a.path, e.path = a.bindingPath;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
},
|
|
309
|
+
}, Ce = {
|
|
310
310
|
convertTo: (e, t, n, a) => {
|
|
311
311
|
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
312
312
|
},
|
|
313
313
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
314
|
-
},
|
|
314
|
+
}, Ve = {
|
|
315
315
|
convertTo: (e, t, n, a) => {
|
|
316
316
|
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
|
|
317
317
|
},
|
|
@@ -352,7 +352,7 @@ const Oe = {
|
|
|
352
352
|
if (t === "multiSort")
|
|
353
353
|
return !!((g = e.sort) != null && g.multiSort);
|
|
354
354
|
}
|
|
355
|
-
},
|
|
355
|
+
}, xe = {
|
|
356
356
|
convertTo: (e, t, n, a) => {
|
|
357
357
|
e.filter || (e.filter = {}), e.filter[t] = n;
|
|
358
358
|
},
|
|
@@ -361,7 +361,7 @@ const Oe = {
|
|
|
361
361
|
if (t === "mode")
|
|
362
362
|
return ((a = e.filter) == null ? void 0 : a.mode) || "client";
|
|
363
363
|
}
|
|
364
|
-
},
|
|
364
|
+
}, Ue = {
|
|
365
365
|
convertTo: (e, t, n, a) => {
|
|
366
366
|
e.rowOption ? e.rowOption[t] = n : e.rowOption = {
|
|
367
367
|
[t]: n
|
|
@@ -379,9 +379,9 @@ const Oe = {
|
|
|
379
379
|
};
|
|
380
380
|
function I(e, t, n) {
|
|
381
381
|
const a = /* @__PURE__ */ new Map([
|
|
382
|
-
["/converter/appearance.converter",
|
|
383
|
-
["/converter/buttons.converter",
|
|
384
|
-
["/converter/property-editor.converter",
|
|
382
|
+
["/converter/appearance.converter", Pe],
|
|
383
|
+
["/converter/buttons.converter", Oe],
|
|
384
|
+
["/converter/property-editor.converter", we],
|
|
385
385
|
["/converter/items-count.converter", qe],
|
|
386
386
|
["/converter/type.converter", De],
|
|
387
387
|
["/converter/change-editor.converter", Ee],
|
|
@@ -391,15 +391,15 @@ function I(e, t, n) {
|
|
|
391
391
|
["/converter/summary.converter", ke],
|
|
392
392
|
["/converter/group.converter", Ne],
|
|
393
393
|
["/converter/form-group-label.converter", Le],
|
|
394
|
-
["/converter/field-selector.converter",
|
|
395
|
-
["/converter/pagination.converter",
|
|
396
|
-
["/converter/row-number.converter",
|
|
394
|
+
["/converter/field-selector.converter", $e],
|
|
395
|
+
["/converter/pagination.converter", Ce],
|
|
396
|
+
["/converter/row-number.converter", Ve],
|
|
397
397
|
["/converter/grid-selection.converter", Ae],
|
|
398
398
|
["/converter/size.converter", He],
|
|
399
399
|
["/converter/change-formatter-enum.converter", ze],
|
|
400
400
|
["/converter/grid-sort.converter", _e],
|
|
401
|
-
["/converter/grid-filter.converter",
|
|
402
|
-
["/converter/row-option.converter",
|
|
401
|
+
["/converter/grid-filter.converter", xe],
|
|
402
|
+
["/converter/row-option.converter", Ue]
|
|
403
403
|
]), g = /* @__PURE__ */ new Map([
|
|
404
404
|
["string", { type: "input-group", enableClear: !1 }],
|
|
405
405
|
["boolean", {
|
|
@@ -424,75 +424,75 @@ function I(e, t, n) {
|
|
|
424
424
|
["array", { type: "button-edit" }],
|
|
425
425
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
426
426
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
427
|
-
]),
|
|
427
|
+
]), O = Be();
|
|
428
428
|
function y(r, i) {
|
|
429
|
-
return () =>
|
|
429
|
+
return () => O.parseValueSchema(r, i);
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function S(r, i, f) {
|
|
432
432
|
return r.includes("visible") && i.visible !== void 0 ? typeof i.visible == "boolean" ? () => !!i.visible : i.visible === void 0 ? !0 : y(i.visible, f) : () => !0;
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function w(r, i, f) {
|
|
435
435
|
return r.includes("readonly") && i.readonly !== void 0 ? typeof i.readonly == "boolean" ? () => !!i.readonly : y(i.readonly, f) : () => !1;
|
|
436
436
|
}
|
|
437
437
|
function d(r, i) {
|
|
438
438
|
const f = r.$converter || i;
|
|
439
439
|
return typeof f == "string" && f && a.has(f) ? a.get(f) || null : f || null;
|
|
440
440
|
}
|
|
441
|
-
function l(r, i, f, v,
|
|
441
|
+
function l(r, i, f, v, F, E = "", k = "") {
|
|
442
442
|
return Object.keys(r).map((T) => {
|
|
443
|
-
const N =
|
|
444
|
-
m.readonly = m.readonly === void 0 ?
|
|
445
|
-
const M = p.type === "cascade" ? l(p.properties, i, f, v,
|
|
443
|
+
const N = P(1), $ = T, p = r[T], R = Object.keys(p), q = p.title, s = p.type, b = g.get(s) || { type: "input-group", enableClear: !1 }, m = p.editor ? Object.assign({}, b, p.editor) : Object.assign({}, b), h = S(R, p, i), B = w(R, p, i);
|
|
444
|
+
m.readonly = m.readonly === void 0 ? B() : m.readonly;
|
|
445
|
+
const M = p.type === "cascade" ? l(p.properties, i, f, v, F, E, k) : [], L = !0;
|
|
446
446
|
let D = d(p, k);
|
|
447
|
-
const
|
|
447
|
+
const V = x({
|
|
448
448
|
get() {
|
|
449
449
|
if (N.value) {
|
|
450
|
-
if (["class", "style"].find((fe) => fe ===
|
|
451
|
-
return D.convertFrom(f, T,
|
|
450
|
+
if (["class", "style"].find((fe) => fe === $) && !D && (D = a.get("/converter/appearance.converter") || null), D && D.convertFrom)
|
|
451
|
+
return D.convertFrom(f, T, F, E);
|
|
452
452
|
const A = f[T];
|
|
453
453
|
return Object.prototype.hasOwnProperty.call(p, "defaultValue") && (A === void 0 || typeof A == "string" && A === "") ? p.type === "boolean" ? p.defaultValue : p.defaultValue || "" : A;
|
|
454
454
|
}
|
|
455
455
|
return null;
|
|
456
456
|
},
|
|
457
457
|
set(A) {
|
|
458
|
-
N.value += 1, D && D.convertTo ? (D.convertTo(v, T, A,
|
|
458
|
+
N.value += 1, D && D.convertTo ? (D.convertTo(v, T, A, F, E), D.convertTo(f, T, A, F, E)) : (v[T] = A, f[T] = A);
|
|
459
459
|
}
|
|
460
|
-
}), { refreshPanelAfterChanged: H, description: le, isExpand: ue, parentPropertyID: se } = p,
|
|
461
|
-
return i[
|
|
460
|
+
}), { refreshPanelAfterChanged: H, description: le, isExpand: ue, parentPropertyID: se } = p, G = { propertyID: $, propertyName: q, propertyType: s, propertyValue: V, editor: m, visible: h, readonly: B, cascadeConfig: M, hideCascadeTitle: L, refreshPanelAfterChanged: H, description: le, isExpand: ue, parentPropertyID: se };
|
|
461
|
+
return i[$] = G, G;
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
function o(r, i, f = {}) {
|
|
465
|
-
const v = {},
|
|
466
|
-
return
|
|
467
|
-
const j =
|
|
465
|
+
const v = {}, F = e[r];
|
|
466
|
+
return F && F.categories ? Object.keys(F.categories).map((k) => {
|
|
467
|
+
const j = F.categories[k], T = j == null ? void 0 : j.title, N = l(j.properties || {}, v, {}, f, i);
|
|
468
468
|
return { categoryId: k, categoryName: T, properties: N };
|
|
469
469
|
}) : [];
|
|
470
470
|
}
|
|
471
|
-
function u(r, i, f, v,
|
|
472
|
-
const E = i.$ref.schema, k = i.$ref.converter, j = f[E], T = j.type, N = n(j),
|
|
471
|
+
function u(r, i, f, v, F = "") {
|
|
472
|
+
const E = i.$ref.schema, k = i.$ref.converter, j = f[E], T = j.type, N = n(j), $ = {}, p = e[T];
|
|
473
473
|
if (p && p.categories) {
|
|
474
474
|
const R = p.categories[r], q = R == null ? void 0 : R.title;
|
|
475
475
|
k && Object.keys(R.properties).forEach((m) => {
|
|
476
476
|
R.properties[m].$converter = k;
|
|
477
477
|
});
|
|
478
|
-
const s = (R == null ? void 0 : R.properties) || {}, b = l(s,
|
|
478
|
+
const s = (R == null ? void 0 : R.properties) || {}, b = l(s, $, N, j, v, F);
|
|
479
479
|
return { categoryId: r, categoryName: q, properties: b };
|
|
480
480
|
}
|
|
481
481
|
return { categoryId: r, categoryName: "", properties: [] };
|
|
482
482
|
}
|
|
483
|
-
function c(r, i, f, v,
|
|
483
|
+
function c(r, i, f, v, F) {
|
|
484
484
|
const E = r.type, k = n(r), j = {};
|
|
485
|
-
let T =
|
|
485
|
+
let T = F || e[E];
|
|
486
486
|
if (T && Object.keys(T).length === 0 && f && f.getPropConfig && (T = f.getPropConfig(v)), T && T.categories) {
|
|
487
487
|
const N = [];
|
|
488
|
-
return Object.keys(T.categories).map((
|
|
489
|
-
const p = T.categories[
|
|
488
|
+
return Object.keys(T.categories).map(($) => {
|
|
489
|
+
const p = T.categories[$];
|
|
490
490
|
if (p.$ref) {
|
|
491
|
-
N.push(u(
|
|
491
|
+
N.push(u($, p, r, i, v));
|
|
492
492
|
return;
|
|
493
493
|
}
|
|
494
|
-
const R = p == null ? void 0 : p.title, q = p == null ? void 0 : p.tabId, s = p == null ? void 0 : p.tabName, b = p == null ? void 0 : p.hide, m = p == null ? void 0 : p.hideTitle, h = l(p.properties || {}, j, k, r, i, v, p.$converter), { setPropertyRelates:
|
|
495
|
-
N.push({ categoryId:
|
|
494
|
+
const R = p == null ? void 0 : p.title, q = p == null ? void 0 : p.tabId, s = p == null ? void 0 : p.tabName, b = p == null ? void 0 : p.hide, m = p == null ? void 0 : p.hideTitle, h = l(p.properties || {}, j, k, r, i, v, p.$converter), { setPropertyRelates: B } = p, M = p == null ? void 0 : p.parentPropertyID;
|
|
495
|
+
N.push({ categoryId: $, categoryName: R, tabId: q, tabName: s, hide: b, properties: h, hideTitle: m, setPropertyRelates: B, parentPropertyID: M });
|
|
496
496
|
}), N;
|
|
497
497
|
}
|
|
498
498
|
return [];
|
|
@@ -505,21 +505,21 @@ function I(e, t, n) {
|
|
|
505
505
|
}
|
|
506
506
|
const ee = {}, te = {};
|
|
507
507
|
I(ee, te, Se);
|
|
508
|
-
const ne = {}, re = {}, { resolveSchemaWithDefaultValue:
|
|
509
|
-
I(oe, ie,
|
|
510
|
-
function
|
|
511
|
-
return Y[t.title] = t, Z[t.title] = a, ee[t.title] = g, te[t.title] =
|
|
512
|
-
if (!
|
|
508
|
+
const ne = {}, re = {}, { getSchemaByType: St, resolveSchemaWithDefaultValue: We, resolveSchemaToProps: Ft, mappingSchemaToProps: Tt, setDesignerContext: Bt } = Q(ne, re), oe = {}, ie = {};
|
|
509
|
+
I(oe, ie, We);
|
|
510
|
+
function Ge(e, t, n = /* @__PURE__ */ new Map(), a = (y, S, w, d) => S, g = {}, O = (y) => y) {
|
|
511
|
+
return Y[t.title] = t, Z[t.title] = a, ee[t.title] = g, te[t.title] = O, ne[t.title] = t, re[t.title] = a, oe[t.title] = g, ie[t.title] = O, (y = {}, S = !0) => {
|
|
512
|
+
if (!S)
|
|
513
513
|
return Te(y, n);
|
|
514
|
-
const
|
|
515
|
-
return Object.assign(d,
|
|
514
|
+
const w = Fe(y, t, n), d = Object.keys(e).reduce((l, o) => (l[o] = e[o].default, l), {});
|
|
515
|
+
return Object.assign(d, w);
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function Xe(e, t) {
|
|
519
519
|
return { customClass: t.class, customStyle: t.style };
|
|
520
520
|
}
|
|
521
521
|
const Je = /* @__PURE__ */ new Map([
|
|
522
|
-
["appearance",
|
|
522
|
+
["appearance", Xe]
|
|
523
523
|
]), Qe = "https://json-schema.org/draft/2020-12/schema", Ye = "https://farris-design.gitee.io/search-box.schema.json", Ze = "search-box", Ke = "A Farris Component", Ie = "object", et = {
|
|
524
524
|
id: {
|
|
525
525
|
description: "The unique identifier for a search-box",
|
|
@@ -624,7 +624,7 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
|
|
|
624
624
|
description: it,
|
|
625
625
|
type: at,
|
|
626
626
|
categories: ct
|
|
627
|
-
},
|
|
627
|
+
}, W = {
|
|
628
628
|
/**
|
|
629
629
|
* 自定义图标
|
|
630
630
|
*/
|
|
@@ -674,7 +674,7 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
|
|
|
674
674
|
* 值变化事件触发时机
|
|
675
675
|
*/
|
|
676
676
|
updateOn: { default: "blur", type: String }
|
|
677
|
-
}, ae =
|
|
677
|
+
}, ae = Ge(W, nt, Je, rt, lt), ut = {
|
|
678
678
|
data: { type: Array, default: [] },
|
|
679
679
|
/** 确认结果事件 */
|
|
680
680
|
onConfirmResult: { type: Function, default: () => {
|
|
@@ -698,14 +698,14 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
|
|
|
698
698
|
*/
|
|
699
699
|
maxHeight: { default: 350, type: Number },
|
|
700
700
|
loading: { default: !1, type: Boolean }
|
|
701
|
-
}, ce = /* @__PURE__ */
|
|
701
|
+
}, ce = /* @__PURE__ */ U({
|
|
702
702
|
name: "FSearchBoxContainer",
|
|
703
703
|
props: ut,
|
|
704
704
|
emits: ["confirmResult", "searchedValue"],
|
|
705
705
|
setup(e, t) {
|
|
706
|
-
const n =
|
|
706
|
+
const n = P(e.data), a = P(), {
|
|
707
707
|
slots: g
|
|
708
|
-
} = t,
|
|
708
|
+
} = t, O = x(() => ({
|
|
709
709
|
"search-box-container": !0,
|
|
710
710
|
"f-utils-overflow-xhya": !0,
|
|
711
711
|
"position-relative": !0
|
|
@@ -714,13 +714,13 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
|
|
|
714
714
|
var o;
|
|
715
715
|
(o = a.value) == null || o.search(l);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function S(l) {
|
|
718
718
|
l.length && (t.emit("confirmResult", l[0].name), t.emit("searchedValue", l));
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
return g.default ?
|
|
720
|
+
function w(l) {
|
|
721
|
+
return g.default ? C(pe, null, [g.default(l)]) : C("span", null, [l.item[e.textField]]);
|
|
722
722
|
}
|
|
723
|
-
const d =
|
|
723
|
+
const d = x(() => {
|
|
724
724
|
const l = {};
|
|
725
725
|
return l.padding = "8px", e.maxHeight !== void 0 && e.maxHeight > 0 && (l.maxHeight = `${e.maxHeight}px`), l;
|
|
726
726
|
});
|
|
@@ -731,20 +731,20 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
|
|
|
731
731
|
search: y
|
|
732
732
|
}), () => {
|
|
733
733
|
const l = {
|
|
734
|
-
content:
|
|
734
|
+
content: w
|
|
735
735
|
};
|
|
736
|
-
return
|
|
737
|
-
class:
|
|
736
|
+
return C("div", {
|
|
737
|
+
class: O.value,
|
|
738
738
|
style: d.value
|
|
739
|
-
}, [
|
|
739
|
+
}, [C(ye, {
|
|
740
740
|
ref: "loadingInstance",
|
|
741
741
|
isActive: e.loading
|
|
742
|
-
}, null),
|
|
742
|
+
}, null), C(ge, {
|
|
743
743
|
ref: a,
|
|
744
744
|
itemClass: "dropdown-item",
|
|
745
745
|
data: n.value,
|
|
746
746
|
view: "ContentView",
|
|
747
|
-
onClickItem: (o) =>
|
|
747
|
+
onClickItem: (o) => S(o.data),
|
|
748
748
|
idField: e.idField,
|
|
749
749
|
textField: e.textField,
|
|
750
750
|
titleField: e.textField,
|
|
@@ -752,26 +752,30 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
|
|
|
752
752
|
}, l)]);
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
|
-
}), z = /* @__PURE__ */
|
|
755
|
+
}), z = /* @__PURE__ */ U({
|
|
756
756
|
name: "FSearchBox",
|
|
757
|
-
props:
|
|
757
|
+
props: W,
|
|
758
758
|
emits: ["update:modelValue", "change", "selectedValue", "clickButton"],
|
|
759
759
|
setup(e, t) {
|
|
760
|
-
|
|
761
|
-
const n =
|
|
762
|
-
|
|
763
|
-
const
|
|
764
|
-
_(
|
|
760
|
+
P(e.data);
|
|
761
|
+
const n = P(), a = P(), g = P(e.placeholder), O = '<i class="f-icon f-icon-clockwise f-icon-spin"></i>', y = x(() => e.loading ? O : e.buttonContent);
|
|
762
|
+
P(e.editable);
|
|
763
|
+
const S = P(e.modelValue);
|
|
764
|
+
_(S, (c) => {
|
|
765
765
|
var r;
|
|
766
766
|
(r = a.value) == null || r.search(c), t.emit("update:modelValue", c);
|
|
767
767
|
}), _(() => e.modelValue, (c) => {
|
|
768
|
-
|
|
768
|
+
S.value = c;
|
|
769
769
|
});
|
|
770
|
-
function
|
|
770
|
+
function w(c) {
|
|
771
771
|
n.value.commitValue(c);
|
|
772
772
|
}
|
|
773
773
|
function d(c) {
|
|
774
|
-
|
|
774
|
+
const r = S.value;
|
|
775
|
+
t.emit("change", c, {
|
|
776
|
+
oldValue: r,
|
|
777
|
+
newValue: c
|
|
778
|
+
});
|
|
775
779
|
}
|
|
776
780
|
function l(c) {
|
|
777
781
|
t.emit("selectedValue", c);
|
|
@@ -788,7 +792,7 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
|
|
|
788
792
|
const c = {
|
|
789
793
|
default: t.slots.default
|
|
790
794
|
};
|
|
791
|
-
return
|
|
795
|
+
return C(be, {
|
|
792
796
|
ref: n,
|
|
793
797
|
"button-content": y.value,
|
|
794
798
|
"custom-class": e.customClass,
|
|
@@ -799,8 +803,8 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
|
|
|
799
803
|
disable: e.disable,
|
|
800
804
|
"enable-clear": !0,
|
|
801
805
|
"button-behavior": "Execute",
|
|
802
|
-
modelValue:
|
|
803
|
-
"onUpdate:modelValue": (r) =>
|
|
806
|
+
modelValue: S.value,
|
|
807
|
+
"onUpdate:modelValue": (r) => S.value = r,
|
|
804
808
|
"popup-host": e.popupHost,
|
|
805
809
|
"popup-right-boundary": e.popupRightBoundary,
|
|
806
810
|
"popup-offset-x": e.popupOffsetX,
|
|
@@ -809,12 +813,12 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
|
|
|
809
813
|
limitContentBySpace: !0,
|
|
810
814
|
placement: "auto"
|
|
811
815
|
}, {
|
|
812
|
-
default: () => [e.showDropdown &&
|
|
816
|
+
default: () => [e.showDropdown && C(ce, {
|
|
813
817
|
ref: a,
|
|
814
818
|
data: e.data,
|
|
815
819
|
idField: e.idField,
|
|
816
820
|
textField: e.textField,
|
|
817
|
-
onConfirmResult:
|
|
821
|
+
onConfirmResult: w,
|
|
818
822
|
onSearchedValue: (r) => l(r),
|
|
819
823
|
loading: e.loading,
|
|
820
824
|
maxHeight: e.maxHeight
|
|
@@ -826,12 +830,12 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
|
|
|
826
830
|
});
|
|
827
831
|
function st(e, t, n) {
|
|
828
832
|
var q;
|
|
829
|
-
const a = "", g = "",
|
|
833
|
+
const a = "", g = "", O = P();
|
|
830
834
|
let y;
|
|
831
|
-
function
|
|
835
|
+
function S() {
|
|
832
836
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
833
837
|
}
|
|
834
|
-
function
|
|
838
|
+
function w() {
|
|
835
839
|
return !1;
|
|
836
840
|
}
|
|
837
841
|
function d() {
|
|
@@ -845,19 +849,19 @@ function st(e, t, n) {
|
|
|
845
849
|
return null;
|
|
846
850
|
if (s.value.schema && s.value.schema.type === "component")
|
|
847
851
|
return s.value;
|
|
848
|
-
const b =
|
|
852
|
+
const b = P(s == null ? void 0 : s.value.parent), m = o(b);
|
|
849
853
|
return m || null;
|
|
850
854
|
}
|
|
851
855
|
function u(s = t) {
|
|
852
|
-
var
|
|
856
|
+
var B;
|
|
853
857
|
const { componentInstance: b, designerItemElementRef: m } = s;
|
|
854
858
|
if (!b || !b.value)
|
|
855
859
|
return null;
|
|
856
860
|
const { getCustomButtons: h } = b.value;
|
|
857
|
-
return b.value.canMove || h && ((
|
|
861
|
+
return b.value.canMove || h && ((B = h()) != null && B.length) ? m : u(s.parent);
|
|
858
862
|
}
|
|
859
863
|
function c(s) {
|
|
860
|
-
return
|
|
864
|
+
return !!n;
|
|
861
865
|
}
|
|
862
866
|
function r() {
|
|
863
867
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
@@ -871,10 +875,10 @@ function st(e, t, n) {
|
|
|
871
875
|
function v(s, b) {
|
|
872
876
|
const { componentType: m } = s;
|
|
873
877
|
let h = he(m, s, b);
|
|
874
|
-
const
|
|
875
|
-
return h && !h.id && h.type === m && (h.id = `${
|
|
878
|
+
const B = m.toLowerCase().replace(/-/g, "_");
|
|
879
|
+
return h && !h.id && h.type === m && (h.id = `${B}_${Math.random().toString().slice(2, 6)}`), h;
|
|
876
880
|
}
|
|
877
|
-
function
|
|
881
|
+
function F(s) {
|
|
878
882
|
}
|
|
879
883
|
function E(...s) {
|
|
880
884
|
}
|
|
@@ -883,7 +887,7 @@ function st(e, t, n) {
|
|
|
883
887
|
return;
|
|
884
888
|
const b = t == null ? void 0 : t.schema, { formSchemaUtils: m } = s;
|
|
885
889
|
if (b && m.getExpressions().length) {
|
|
886
|
-
const h = m.getExpressions().findIndex((
|
|
890
|
+
const h = m.getExpressions().findIndex((B) => B.target === b.id);
|
|
887
891
|
h > -1 && m.getExpressions().splice(h, 1);
|
|
888
892
|
}
|
|
889
893
|
}
|
|
@@ -898,23 +902,23 @@ function st(e, t, n) {
|
|
|
898
902
|
let m = b.id;
|
|
899
903
|
b.type === "component-ref" && (m = b.component);
|
|
900
904
|
const h = e.value.querySelectorAll(`#${m}-design-item`);
|
|
901
|
-
h != null && h.length && Array.from(h).map((
|
|
905
|
+
h != null && h.length && Array.from(h).map((B) => {
|
|
902
906
|
var M;
|
|
903
|
-
(M =
|
|
907
|
+
(M = B == null ? void 0 : B.componentInstance) != null && M.value.onRemoveComponent && B.componentInstance.value.onRemoveComponent(s);
|
|
904
908
|
});
|
|
905
909
|
});
|
|
906
910
|
}
|
|
907
911
|
function N() {
|
|
908
912
|
}
|
|
909
|
-
function
|
|
913
|
+
function $(s) {
|
|
910
914
|
var m, h;
|
|
911
915
|
if (!((m = t == null ? void 0 : t.schema) != null && m.id))
|
|
912
916
|
return;
|
|
913
917
|
!y && s && (y = s.formSchemaUtils);
|
|
914
918
|
let b = "";
|
|
915
919
|
{
|
|
916
|
-
const { text:
|
|
917
|
-
b =
|
|
920
|
+
const { text: B, title: M, label: L, mainTitle: D, name: V, type: H } = t.schema;
|
|
921
|
+
b = B || M || L || D || V || ((h = K[H]) == null ? void 0 : h.name);
|
|
918
922
|
}
|
|
919
923
|
b && y.getControlBasicInfoMap().set(t.schema.id, {
|
|
920
924
|
componentTitle: b,
|
|
@@ -922,25 +926,25 @@ function st(e, t, n) {
|
|
|
922
926
|
});
|
|
923
927
|
}
|
|
924
928
|
function p(s) {
|
|
925
|
-
var
|
|
929
|
+
var B;
|
|
926
930
|
const { changeObject: b } = s, { propertyID: m, propertyValue: h } = b;
|
|
927
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((
|
|
931
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((B = s == null ? void 0 : s.changeObject) == null ? void 0 : B.propertyID) && m && h && ($(), y)) {
|
|
928
932
|
const M = y.getControlBasicInfoMap(), L = M.keys().toArray().filter((D) => {
|
|
929
|
-
var
|
|
930
|
-
return ((
|
|
933
|
+
var V, H;
|
|
934
|
+
return ((V = M.get(D)) == null ? void 0 : V.reliedComponentId) === ((H = t == null ? void 0 : t.schema) == null ? void 0 : H.id);
|
|
931
935
|
});
|
|
932
936
|
L != null && L.length && L.forEach((D) => {
|
|
933
|
-
const
|
|
934
|
-
|
|
937
|
+
const V = M.get(D).parentPathName.split(" > ");
|
|
938
|
+
V[0] = h, M.get(D).parentPathName = V.join(" > ");
|
|
935
939
|
});
|
|
936
940
|
}
|
|
937
941
|
}
|
|
938
942
|
function R(s) {
|
|
939
943
|
p(s);
|
|
940
944
|
}
|
|
941
|
-
return
|
|
942
|
-
canMove:
|
|
943
|
-
canSelectParent:
|
|
945
|
+
return O.value = {
|
|
946
|
+
canMove: S(),
|
|
947
|
+
canSelectParent: w(),
|
|
944
948
|
canDelete: d(),
|
|
945
949
|
canNested: !l(),
|
|
946
950
|
contents: t == null ? void 0 : t.schema.contents,
|
|
@@ -956,30 +960,30 @@ function st(e, t, n) {
|
|
|
956
960
|
getPropConfig: E,
|
|
957
961
|
getDragScopeElement: i,
|
|
958
962
|
onAcceptMovedChildElement: f,
|
|
959
|
-
onChildElementMovedOut:
|
|
963
|
+
onChildElementMovedOut: F,
|
|
960
964
|
addNewChildComponentSchema: v,
|
|
961
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
962
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
965
|
+
triggerBelongedComponentToMoveWhenMoved: P(!1),
|
|
966
|
+
triggerBelongedComponentToDeleteWhenDeleted: P(!1),
|
|
963
967
|
onRemoveComponent: T,
|
|
964
968
|
getCustomButtons: N,
|
|
965
969
|
onPropertyChanged: R,
|
|
966
|
-
setComponentBasicInfoMap:
|
|
970
|
+
setComponentBasicInfoMap: $,
|
|
967
971
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
968
|
-
},
|
|
972
|
+
}, O;
|
|
969
973
|
}
|
|
970
|
-
const ft = /* @__PURE__ */
|
|
974
|
+
const ft = /* @__PURE__ */ U({
|
|
971
975
|
name: "FSearchBoxDesign",
|
|
972
|
-
props:
|
|
976
|
+
props: W,
|
|
973
977
|
emits: ["update:modelValue", "change"],
|
|
974
978
|
setup(e, t) {
|
|
975
|
-
const n =
|
|
979
|
+
const n = P(e.data), a = P(), g = P(), O = P("请输入关键词"), y = P('<i class="f-icon f-icon-search"></i>'), S = P(e.modelValue), w = P(), d = de("design-item-context"), l = st(w, d);
|
|
976
980
|
me(() => {
|
|
977
|
-
|
|
978
|
-
}), t.expose(l.value), _(
|
|
981
|
+
w.value.componentInstance = l;
|
|
982
|
+
}), t.expose(l.value), _(S, (c) => {
|
|
979
983
|
var r;
|
|
980
984
|
(r = g.value) == null || r.search(c), t.emit("update:modelValue", c);
|
|
981
985
|
}), _(() => e.modelValue, (c) => {
|
|
982
|
-
|
|
986
|
+
S.value = c;
|
|
983
987
|
});
|
|
984
988
|
function o(c) {
|
|
985
989
|
a.value.commitValue(c);
|
|
@@ -987,24 +991,24 @@ const ft = /* @__PURE__ */ W({
|
|
|
987
991
|
function u(c) {
|
|
988
992
|
t.emit("change", c);
|
|
989
993
|
}
|
|
990
|
-
return () =>
|
|
991
|
-
ref:
|
|
992
|
-
}, [
|
|
994
|
+
return () => C("div", {
|
|
995
|
+
ref: w
|
|
996
|
+
}, [C(ve("f-button-edit"), {
|
|
993
997
|
ref: a,
|
|
994
998
|
"button-content": y.value,
|
|
995
|
-
placeholder:
|
|
999
|
+
placeholder: O.value,
|
|
996
1000
|
onChange: u,
|
|
997
1001
|
"enable-clear": !0,
|
|
998
1002
|
"button-behavior": "Execute",
|
|
999
|
-
modelValue:
|
|
1000
|
-
"onUpdate:modelValue": (c) =>
|
|
1003
|
+
modelValue: S.value,
|
|
1004
|
+
"onUpdate:modelValue": (c) => S.value = c,
|
|
1001
1005
|
"popup-host": e.popupHost,
|
|
1002
1006
|
"popup-right-boundary": e.popupRightBoundary,
|
|
1003
1007
|
"popup-offset-x": e.popupOffsetX,
|
|
1004
1008
|
"popup-on-input": !0,
|
|
1005
1009
|
"popup-on-focus": !0
|
|
1006
1010
|
}, {
|
|
1007
|
-
default: () => [
|
|
1011
|
+
default: () => [C(ce, {
|
|
1008
1012
|
ref: g,
|
|
1009
1013
|
data: n.value,
|
|
1010
1014
|
onConfirmResult: o
|
|
@@ -1025,5 +1029,5 @@ export {
|
|
|
1025
1029
|
z as FSearchBox,
|
|
1026
1030
|
z as default,
|
|
1027
1031
|
ae as propsResolver,
|
|
1028
|
-
|
|
1032
|
+
W as searchBoxProps
|
|
1029
1033
|
};
|