@farris/ui-vue 1.8.0-alpha.0 → 1.8.0-beta.1
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 +138 -1526
- package/components/avatar/index.umd.cjs +1 -6
- package/components/button/index.css +1 -1
- package/components/button/index.esm.js +15951 -15410
- package/components/button/index.umd.cjs +27 -27
- package/components/calendar/index.esm.js +269 -255
- package/components/calendar/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +243 -229
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +32 -32
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +473 -456
- package/components/comment/index.umd.cjs +6 -6
- package/components/component/index.css +1 -1
- package/components/component/index.esm.js +2503 -2239
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +1064 -954
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +1 -1
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +3894 -3058
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +91 -77
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +220 -215
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +145 -131
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +336 -329
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1611 -1536
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +219 -219
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/external-container/index.esm.js +179 -178
- package/components/external-container/index.umd.cjs +1 -1
- package/components/fieldset/index.esm.js +285 -221
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -0
- package/components/filter-bar/index.esm.js +1512 -1290
- package/components/filter-bar/index.umd.cjs +7 -7
- package/components/filter-condition-editor/index.esm.js +851 -831
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +520 -501
- package/components/flow-canvas/index.umd.cjs +8 -8
- package/components/image/index.esm.js +101 -79
- package/components/image/index.umd.cjs +3 -3
- package/components/language-textbox/index.esm.js +330 -251
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-nav/index.esm.js +399 -313
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +3 -0
- package/components/locale/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +997 -976
- package/components/lookup/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +725 -705
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +542 -522
- package/components/message-box/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +95 -308
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +115 -107
- package/components/number-range/index.umd.cjs +2 -2
- package/components/order/index.esm.js +56 -54
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +135 -123
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +266 -222
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +402 -375
- package/components/property-panel/index.umd.cjs +4 -4
- package/components/query-solution/index.esm.js +3171 -3061
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1620 -1608
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/scroll-navbar/index.esm.js +150 -136
- package/components/scroll-navbar/index.umd.cjs +2 -2
- package/components/section/index.esm.js +323 -311
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +850 -830
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/step/index.esm.js +991 -224
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +356 -334
- package/components/tabs/index.umd.cjs +1 -1
- package/components/wizard/index.esm.js +159 -162
- package/components/wizard/index.umd.cjs +1 -1
- package/designer/avatar/index.esm.js +1721 -0
- package/designer/avatar/index.umd.cjs +6 -0
- package/designer/button-edit/index.esm.js +2 -1
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +693 -659
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +90 -78
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/date-picker/index.esm.js +203 -203
- package/designer/date-picker/index.umd.cjs +1 -1
- package/designer/drawer/index.esm.js +181 -167
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +228 -206
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +10014 -9692
- package/designer/farris-designer.all.umd.cjs +18 -18
- package/designer/index.css +1 -1
- package/designer/input-group/index.esm.js +15 -15
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/nav/index.esm.js +1719 -0
- package/designer/nav/index.umd.cjs +6 -0
- package/designer/number-spinner/index.esm.js +8 -7
- package/designer/number-spinner/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +133 -125
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +864 -863
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +245 -183
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.css +1 -1
- package/designer/tabs/index.esm.js +3667 -2810
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +26 -17
- package/designer/time-picker/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +69 -37
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/designer/wizard/index.esm.js +110 -110
- package/designer/wizard/index.umd.cjs +3 -3
- package/farris.all.esm.js +39993 -39089
- package/farris.all.umd.cjs +36 -36
- package/index.css +1 -1
- package/locales/filter-bar/ui/en.json +1 -0
- package/locales/filter-bar/ui/zh-CHS.json +1 -0
- package/locales/filter-bar/ui/zh-CHT.json +1 -0
- package/locales/ui/en.json +1 -0
- package/locales/ui/zh-CHS.json +1 -0
- package/locales/ui/zh-CHT.json +1 -0
- package/package.json +1 -1
- package/types/avatar/designer.d.ts +28 -0
- package/types/avatar/index.d.ts +0 -15
- package/types/avatar/src/composition/types.d.ts +3 -0
- package/types/avatar/src/composition/use-file.d.ts +19 -0
- package/types/avatar/src/composition/use-image.d.ts +1 -1
- package/types/avatar/src/designer/avatar.design.props.d.ts +24 -0
- package/types/avatar/src/property-config/avatar.property-config.d.ts +11 -13
- package/types/avatar/src/schema/schema-mapper.d.ts +2 -0
- package/types/components.d.ts +3 -0
- package/types/condition/index.d.ts +18 -6
- package/types/condition/src/condition-fields.component.d.ts +9 -3
- package/types/condition/src/condition-fields.design.component.d.ts +9 -3
- package/types/condition/src/condition-list.component.d.ts +9 -3
- package/types/condition/src/condition.props.d.ts +11 -0
- package/types/data-view/designer/property-config/use-appearance.d.ts +17 -10
- package/types/data-view/designer/property-config/use-pagination.d.ts +0 -6
- package/types/designer-canvas/src/composition/dg-control.d.ts +13 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +4 -0
- package/types/dynamic-resolver/src/converter/tree-auto-check.converter.d.ts +3 -0
- package/types/dynamic-view/src/components/maps.d.ts +130 -4
- package/types/filter-bar/src/composition/types.d.ts +2 -0
- package/types/filter-bar/src/filter-bar.props.d.ts +0 -1
- package/types/filter-bar/src/locale/locale.d.ts +2 -1
- package/types/filter-bar/src/property-config/filter-bar.property-config.d.ts +0 -1
- package/types/language-textbox/index.d.ts +65 -2
- package/types/language-textbox/src/designer/language-textbox.design.component.d.ts +36 -0
- package/types/language-textbox/src/language-textbox.component.d.ts +38 -1
- package/types/language-textbox/src/language-textbox.props.d.ts +20 -0
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/lookup/src/composition/use-compat.d.ts +28 -0
- package/types/lookup/src/composition/use-state.d.ts +1 -0
- package/types/message-box/src/message-box.service.d.ts +2 -1
- package/types/nav/designer.d.ts +28 -0
- package/types/nav/index.d.ts +24 -20
- package/types/nav/src/designer/nav.design.props.d.ts +29 -0
- package/types/nav/src/designer/use-design-rules.d.ts +3 -0
- package/types/nav/src/property-config/nav.property-config.d.ts +9 -0
- package/types/nav/src/schema/schema-mapper.d.ts +4 -0
- package/types/page-footer/src/designer/use-designer-rules.d.ts +2 -2
- package/types/page-header/src/designer/use-designer-rules.d.ts +2 -2
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -1
- package/types/section/src/designer/section.design.props.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +39 -0
- package/types/section/src/schema/toolbar-resolver.d.ts +0 -1
- package/types/step/src/designer/use-designer-rules.d.ts +3 -0
- package/types/step/src/designer/use-step-creator.d.ts +6 -0
- package/types/step/src/property-config/step.property-config.d.ts +15 -0
- package/types/step/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +4 -0
- package/types/tabs/src/tabs.props.d.ts +6 -0
- package/types/tooltip/index.d.ts +3 -3
- package/types/tooltip/src/tooltip.component.d.ts +2 -2
|
@@ -5,17 +5,17 @@ import { getSchemaByTypeForDesigner as he } from "../dynamic-resolver/index.esm.
|
|
|
5
5
|
function K(e, t) {
|
|
6
6
|
let n;
|
|
7
7
|
function r(a) {
|
|
8
|
-
const { properties: s, title: f, ignore: i } = a, o = i && Array.isArray(i), l = Object.keys(s).reduce((
|
|
9
|
-
if (f && (!o || !i.find((
|
|
10
|
-
const
|
|
11
|
-
l.id = `${
|
|
8
|
+
const { properties: s, title: f, ignore: i } = a, o = i && Array.isArray(i), l = Object.keys(s).reduce((v, k) => ((!o || !i.find((E) => E === k)) && (v[k] = s[k].type === "object" && s[k].properties ? r(s[k]) : Y(s[k].default)), v), {});
|
|
9
|
+
if (f && (!o || !i.find((v) => v === "id"))) {
|
|
10
|
+
const v = f.toLowerCase().replace(/-/g, "_");
|
|
11
|
+
l.id = `${v}_${Math.random().toString().slice(2, 6)}`;
|
|
12
12
|
}
|
|
13
13
|
return l;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function p(a) {
|
|
16
16
|
const { properties: s, title: f, required: i } = a;
|
|
17
17
|
if (i && Array.isArray(i)) {
|
|
18
|
-
const o = i.reduce((l,
|
|
18
|
+
const o = i.reduce((l, v) => (l[v] = s[v].type === "object" && s[v].properties ? r(s[v]) : Y(s[v].default), l), {});
|
|
19
19
|
if (f && i.find((l) => l === "id")) {
|
|
20
20
|
const l = f.toLowerCase().replace(/-/g, "_");
|
|
21
21
|
o.id = `${l}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -29,7 +29,7 @@ function K(e, t) {
|
|
|
29
29
|
function h(a, s = {}, f) {
|
|
30
30
|
const i = e[a];
|
|
31
31
|
if (i) {
|
|
32
|
-
let o =
|
|
32
|
+
let o = p(i);
|
|
33
33
|
const l = t[a];
|
|
34
34
|
return o = l ? l({ getSchemaByType: h }, o, s, f) : o, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(o), o;
|
|
35
35
|
}
|
|
@@ -46,8 +46,8 @@ function K(e, t) {
|
|
|
46
46
|
if (typeof l == "string")
|
|
47
47
|
i[l] = a[o];
|
|
48
48
|
else {
|
|
49
|
-
const
|
|
50
|
-
Object.assign(i,
|
|
49
|
+
const v = l(o, a[o], a);
|
|
50
|
+
Object.assign(i, v);
|
|
51
51
|
}
|
|
52
52
|
} else
|
|
53
53
|
i[o] = a[o];
|
|
@@ -67,7 +67,7 @@ function K(e, t) {
|
|
|
67
67
|
return a;
|
|
68
68
|
const o = T(a, i), l = ((f = a.editor) == null ? void 0 : f.type) || "";
|
|
69
69
|
if (l) {
|
|
70
|
-
const
|
|
70
|
+
const v = e[l], k = T(a.editor, v);
|
|
71
71
|
o.editor = k;
|
|
72
72
|
}
|
|
73
73
|
return o;
|
|
@@ -103,7 +103,7 @@ function ke(e = {}) {
|
|
|
103
103
|
["getProperty", n]
|
|
104
104
|
]);
|
|
105
105
|
Object.keys(e).reduce((c, m) => (c.set(m, e[m]), c), r);
|
|
106
|
-
function
|
|
106
|
+
function p(c, m) {
|
|
107
107
|
const a = c;
|
|
108
108
|
return typeof m == "number" ? [{ target: a, operator: "length", param: null, value: Number(m) }] : typeof m == "boolean" ? [{ target: a, operator: "getProperty", param: c, value: !!m }] : typeof m == "object" ? Object.keys(m).map((s) => {
|
|
109
109
|
if (s === "length")
|
|
@@ -114,7 +114,7 @@ function ke(e = {}) {
|
|
|
114
114
|
}
|
|
115
115
|
function h(c) {
|
|
116
116
|
return Object.keys(c).reduce((a, s) => {
|
|
117
|
-
const f =
|
|
117
|
+
const f = p(s, c[s]);
|
|
118
118
|
return a.push(...f), a;
|
|
119
119
|
}, []);
|
|
120
120
|
}
|
|
@@ -129,8 +129,8 @@ function ke(e = {}) {
|
|
|
129
129
|
return h(c).reduce((f, i) => f && T(i, m), !0);
|
|
130
130
|
}
|
|
131
131
|
function u(c, m) {
|
|
132
|
-
const a = Object.keys(c), s = a.includes("allOf"), f = a.includes("anyOf"), i = s || f,
|
|
133
|
-
return s ? !
|
|
132
|
+
const a = Object.keys(c), s = a.includes("allOf"), f = a.includes("anyOf"), i = s || f, v = (i ? c[i ? s ? "allOf" : "anyOf" : "allOf"] : [c]).map((E) => b(E, m));
|
|
133
|
+
return s ? !v.includes(!1) : v.includes(!0);
|
|
134
134
|
}
|
|
135
135
|
return { parseValueSchema: u };
|
|
136
136
|
}
|
|
@@ -141,7 +141,7 @@ const Fe = {
|
|
|
141
141
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
142
142
|
}, Pe = {
|
|
143
143
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
144
|
-
},
|
|
144
|
+
}, Oe = {
|
|
145
145
|
convertTo: (e, t, n, r) => {
|
|
146
146
|
e.editor && (e.editor[t] = n);
|
|
147
147
|
},
|
|
@@ -192,10 +192,12 @@ const Fe = {
|
|
|
192
192
|
drawer: { type: "drawer", name: "抽屉" },
|
|
193
193
|
"external-container": { type: "external-container", name: "外部容器", icon: "content-container" },
|
|
194
194
|
"list-nav": { type: "list-nav", name: "列表导航" },
|
|
195
|
+
nav: { type: "nav", name: "标签类导航" },
|
|
195
196
|
"list-view": { type: "list-view", name: "列表" },
|
|
196
197
|
"filter-bar": { type: "filter-bar", name: "筛选条" },
|
|
197
198
|
"language-textbox": { type: "language-textbox", name: "多语输入框" },
|
|
198
199
|
image: { type: "image", name: "图像" },
|
|
200
|
+
avatar: { type: "avatar", name: "头像" },
|
|
199
201
|
"discussion-editor": { type: "discussion-editor", name: "评论编辑区" },
|
|
200
202
|
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
201
203
|
comment: { type: "comment", name: "评论区" },
|
|
@@ -203,14 +205,15 @@ const Fe = {
|
|
|
203
205
|
calendar: { type: "calendar", name: "日历", icon: "date-picker" },
|
|
204
206
|
wizard: { type: "wizard", name: "向导", icon: "wizard" },
|
|
205
207
|
"wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
|
|
206
|
-
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" }
|
|
207
|
-
|
|
208
|
+
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
|
|
209
|
+
step: { type: "step", name: "步骤条", icon: "step" }
|
|
210
|
+
}, De = {
|
|
208
211
|
convertFrom: (e, t, n) => {
|
|
209
|
-
var
|
|
212
|
+
var p;
|
|
210
213
|
const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
211
|
-
return ((
|
|
214
|
+
return ((p = ne[r]) == null ? void 0 : p.name) || r;
|
|
212
215
|
}
|
|
213
|
-
},
|
|
216
|
+
}, Ne = {
|
|
214
217
|
convertTo: (e, t, n, r) => {
|
|
215
218
|
e[t] = e[t];
|
|
216
219
|
},
|
|
@@ -294,10 +297,10 @@ const Fe = {
|
|
|
294
297
|
]), t === "enableType" && n === "unable" && (e.command.enable = !1);
|
|
295
298
|
},
|
|
296
299
|
convertFrom: (e, t, n) => {
|
|
297
|
-
var r,
|
|
300
|
+
var r, p;
|
|
298
301
|
if (e.command) {
|
|
299
302
|
if (t === "enableType") {
|
|
300
|
-
const h = (
|
|
303
|
+
const h = (p = (r = e.command) == null ? void 0 : r.commands) == null ? void 0 : p.find((T) => T.command === "edit" && T.type === "primary");
|
|
301
304
|
return e.command.enable ? h ? "default" : "custom" : "unable";
|
|
302
305
|
}
|
|
303
306
|
if (t === "commands")
|
|
@@ -378,8 +381,8 @@ const Fe = {
|
|
|
378
381
|
e.selection || (e.selection = {}), e.selection[t] = n;
|
|
379
382
|
},
|
|
380
383
|
convertFrom: (e, t, n) => {
|
|
381
|
-
var r,
|
|
382
|
-
return t === "showCheckbox" ? (r = e.selection) != null && r.multiSelect ? !0 : (
|
|
384
|
+
var r, p;
|
|
385
|
+
return t === "showCheckbox" ? (r = e.selection) != null && r.multiSelect ? !0 : (p = e.selection) == null ? void 0 : p.showCheckbox : e.selection ? e.selection[t] : e[t];
|
|
383
386
|
}
|
|
384
387
|
}, Ae = {
|
|
385
388
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
@@ -395,19 +398,19 @@ const Fe = {
|
|
|
395
398
|
convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
|
|
396
399
|
}, He = {
|
|
397
400
|
convertFrom: (e, t, n) => {
|
|
398
|
-
var r,
|
|
399
|
-
return (r = e.formatter) != null && r.data && t === "formatterEnumData" && !e.formatterEnumData ? (
|
|
401
|
+
var r, p;
|
|
402
|
+
return (r = e.formatter) != null && r.data && t === "formatterEnumData" && !e.formatterEnumData ? (p = e.formatter) == null ? void 0 : p.data : e.formatterEnumData;
|
|
400
403
|
}
|
|
401
404
|
}, We = {
|
|
402
405
|
convertTo: (e, t, n, r) => {
|
|
403
406
|
e.sort || (e.sort = {}), e.sort[t] = n;
|
|
404
407
|
},
|
|
405
408
|
convertFrom: (e, t, n) => {
|
|
406
|
-
var r,
|
|
409
|
+
var r, p;
|
|
407
410
|
if (t === "mode")
|
|
408
411
|
return ((r = e.sort) == null ? void 0 : r.mode) || "client";
|
|
409
412
|
if (t === "multiSort")
|
|
410
|
-
return !!((
|
|
413
|
+
return !!((p = e.sort) != null && p.multiSort);
|
|
411
414
|
}
|
|
412
415
|
}, Ue = {
|
|
413
416
|
convertTo: (e, t, n, r) => {
|
|
@@ -447,15 +450,25 @@ const Fe = {
|
|
|
447
450
|
</span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
|
|
448
451
|
},
|
|
449
452
|
convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
453
|
+
}, Xe = {
|
|
454
|
+
convertTo: (e, t, n, r) => {
|
|
455
|
+
e.hierarchy || (e.hierarchy = {
|
|
456
|
+
cascadeOption: {}
|
|
457
|
+
}), e.hierarchy.cascadeOption || (e.hierarchy.cascadeOption = {}), e.hierarchy.cascadeOption[t] = n;
|
|
458
|
+
},
|
|
459
|
+
convertFrom: (e, t, n) => {
|
|
460
|
+
var r, p;
|
|
461
|
+
return !!((p = (r = e.hierarchy) == null ? void 0 : r.cascadeOption) != null && p[t]);
|
|
462
|
+
}
|
|
450
463
|
};
|
|
451
464
|
function re(e, t, n) {
|
|
452
465
|
const r = /* @__PURE__ */ new Map([
|
|
453
466
|
["/converter/appearance.converter", Fe],
|
|
454
467
|
["/converter/buttons.converter", Pe],
|
|
455
|
-
["/converter/property-editor.converter",
|
|
468
|
+
["/converter/property-editor.converter", Oe],
|
|
456
469
|
["/converter/items-count.converter", Ae],
|
|
457
|
-
["/converter/type.converter",
|
|
458
|
-
["/converter/change-editor.converter",
|
|
470
|
+
["/converter/type.converter", De],
|
|
471
|
+
["/converter/change-editor.converter", Ne],
|
|
459
472
|
["/converter/change-formatter.converter", Me],
|
|
460
473
|
["/converter/column-command.converter", Ee],
|
|
461
474
|
["/converter/column-option.converter", $e],
|
|
@@ -471,8 +484,9 @@ function re(e, t, n) {
|
|
|
471
484
|
["/converter/grid-sort.converter", We],
|
|
472
485
|
["/converter/grid-filter.converter", Ue],
|
|
473
486
|
["/converter/row-option.converter", _e],
|
|
474
|
-
["/converter/change-formatter-type.converter", Ge]
|
|
475
|
-
|
|
487
|
+
["/converter/change-formatter-type.converter", Ge],
|
|
488
|
+
["/converter/tree-auto-check.converter", Xe]
|
|
489
|
+
]), p = /* @__PURE__ */ new Map([
|
|
476
490
|
["string", { type: "input-group", enableClear: !1 }],
|
|
477
491
|
["boolean", {
|
|
478
492
|
type: "combo-list",
|
|
@@ -510,61 +524,61 @@ function re(e, t, n) {
|
|
|
510
524
|
const l = i.$converter || o;
|
|
511
525
|
return typeof l == "string" && l && r.has(l) ? r.get(l) || null : l || null;
|
|
512
526
|
}
|
|
513
|
-
function m(i, o, l,
|
|
527
|
+
function m(i, o, l, v, k, E = "", w = "") {
|
|
514
528
|
return Object.keys(i).map((F) => {
|
|
515
|
-
const B = C(1), z = F,
|
|
516
|
-
S.readonly = S.readonly === void 0 ?
|
|
517
|
-
const M =
|
|
518
|
-
let $ = c(
|
|
529
|
+
const B = C(1), z = F, D = i[F], y = Object.keys(D), q = D.title, L = D.type, d = p.get(L) || { type: "input-group", enableClear: !1 }, S = D.editor ? Object.assign({}, d, D.editor) : Object.assign({}, d), P = b(y, D, o), O = u(y, D, o);
|
|
530
|
+
S.readonly = S.readonly === void 0 ? O() : S.readonly;
|
|
531
|
+
const M = D.type === "cascade" ? m(D.properties, o, l, v, k, E, w) : [], j = !0;
|
|
532
|
+
let $ = c(D, w);
|
|
519
533
|
const x = H({
|
|
520
534
|
get() {
|
|
521
535
|
if (B.value) {
|
|
522
536
|
if (["class", "style"].find((de) => de === z) && !$ && ($ = r.get("/converter/appearance.converter") || null), $ && $.convertFrom)
|
|
523
537
|
return $.convertFrom(l, F, k, E);
|
|
524
538
|
const A = l[F];
|
|
525
|
-
return Object.prototype.hasOwnProperty.call(
|
|
539
|
+
return Object.prototype.hasOwnProperty.call(D, "defaultValue") && (A === void 0 || typeof A == "string" && A === "") ? D.type === "boolean" ? D.defaultValue : D.defaultValue || "" : A;
|
|
526
540
|
}
|
|
527
541
|
return null;
|
|
528
542
|
},
|
|
529
543
|
set(A) {
|
|
530
|
-
B.value += 1, $ && $.convertTo ? ($.convertTo(
|
|
544
|
+
B.value += 1, $ && $.convertTo ? ($.convertTo(v, F, A, k, E), $.convertTo(l, F, A, k, E)) : (v[F] = A, l[F] = A);
|
|
531
545
|
}
|
|
532
|
-
}), { refreshPanelAfterChanged: R, description: W, isExpand: fe, parentPropertyID: me } =
|
|
546
|
+
}), { refreshPanelAfterChanged: R, description: W, isExpand: fe, parentPropertyID: me } = D, X = { propertyID: z, propertyName: q, propertyType: L, propertyValue: x, editor: S, visible: P, readonly: O, cascadeConfig: M, hideCascadeTitle: j, refreshPanelAfterChanged: R, description: W, isExpand: fe, parentPropertyID: me };
|
|
533
547
|
return o[z] = X, X;
|
|
534
548
|
});
|
|
535
549
|
}
|
|
536
550
|
function a(i, o, l = {}) {
|
|
537
|
-
const
|
|
551
|
+
const v = {}, k = e[i];
|
|
538
552
|
return k && k.categories ? Object.keys(k.categories).map((w) => {
|
|
539
|
-
const
|
|
553
|
+
const N = k.categories[w], F = N == null ? void 0 : N.title, B = m(N.properties || {}, v, {}, l, o);
|
|
540
554
|
return { categoryId: w, categoryName: F, properties: B };
|
|
541
555
|
}) : [];
|
|
542
556
|
}
|
|
543
|
-
function s(i, o, l,
|
|
544
|
-
const E = o.$ref.schema, w = o.$ref.converter,
|
|
545
|
-
if (
|
|
546
|
-
const y =
|
|
557
|
+
function s(i, o, l, v, k = "") {
|
|
558
|
+
const E = o.$ref.schema, w = o.$ref.converter, N = l[E], F = N.type, B = n(N), z = {}, D = e[F];
|
|
559
|
+
if (D && D.categories) {
|
|
560
|
+
const y = D.categories[i], q = y == null ? void 0 : y.title;
|
|
547
561
|
w && Object.keys(y.properties).forEach((S) => {
|
|
548
562
|
y.properties[S].$converter = w;
|
|
549
563
|
});
|
|
550
|
-
const L = (y == null ? void 0 : y.properties) || {}, d = m(L, z, B,
|
|
564
|
+
const L = (y == null ? void 0 : y.properties) || {}, d = m(L, z, B, N, v, k);
|
|
551
565
|
return { categoryId: i, categoryName: q, properties: d };
|
|
552
566
|
}
|
|
553
567
|
return { categoryId: i, categoryName: "", properties: [] };
|
|
554
568
|
}
|
|
555
|
-
function f(i, o, l,
|
|
556
|
-
const E = i.type, w = n(i),
|
|
569
|
+
function f(i, o, l, v, k) {
|
|
570
|
+
const E = i.type, w = n(i), N = {};
|
|
557
571
|
let F = k || e[E];
|
|
558
|
-
if (!(F && Object.keys(F).length > 0) && l && l.getPropConfig && (F = l.getPropConfig(
|
|
572
|
+
if (!(F && Object.keys(F).length > 0) && l && l.getPropConfig && (F = l.getPropConfig(v)), F && F.categories) {
|
|
559
573
|
const z = [];
|
|
560
|
-
return Object.keys(F.categories).map((
|
|
561
|
-
const y = F.categories[
|
|
574
|
+
return Object.keys(F.categories).map((D) => {
|
|
575
|
+
const y = F.categories[D];
|
|
562
576
|
if (y.$ref) {
|
|
563
|
-
z.push(s(
|
|
577
|
+
z.push(s(D, y, i, o, v));
|
|
564
578
|
return;
|
|
565
579
|
}
|
|
566
|
-
const q = y == null ? void 0 : y.title, L = y == null ? void 0 : y.tabId, d = y == null ? void 0 : y.tabName, S = y == null ? void 0 : y.hide, P = y == null ? void 0 : y.hideTitle,
|
|
567
|
-
z.push({ categoryId:
|
|
580
|
+
const q = y == null ? void 0 : y.title, L = y == null ? void 0 : y.tabId, d = y == null ? void 0 : y.tabName, S = y == null ? void 0 : y.hide, P = y == null ? void 0 : y.hideTitle, O = m(y.properties || {}, N, w, i, o, v, y.$converter), { setPropertyRelates: M } = y, j = y == null ? void 0 : y.parentPropertyID;
|
|
581
|
+
z.push({ categoryId: D, categoryName: q, tabId: L, tabName: d, hide: S, properties: O, hideTitle: P, setPropertyRelates: M, parentPropertyID: j });
|
|
568
582
|
}), z;
|
|
569
583
|
}
|
|
570
584
|
return [];
|
|
@@ -577,21 +591,21 @@ function re(e, t, n) {
|
|
|
577
591
|
}
|
|
578
592
|
const oe = {}, ae = {};
|
|
579
593
|
re(oe, ae, Te);
|
|
580
|
-
const ie = {}, le = {}, { resolveSchemaWithDefaultValue:
|
|
581
|
-
re(se, ce,
|
|
582
|
-
function
|
|
583
|
-
return ee[t.title] = t, te[t.title] = r, oe[t.title] =
|
|
594
|
+
const ie = {}, le = {}, { resolveSchemaWithDefaultValue: Je } = K(ie, le), se = {}, ce = {};
|
|
595
|
+
re(se, ce, Je);
|
|
596
|
+
function Qe(e, t, n = /* @__PURE__ */ new Map(), r = (T, b, u, c) => b, p = {}, h = (T) => T) {
|
|
597
|
+
return ee[t.title] = t, te[t.title] = r, oe[t.title] = p, ae[t.title] = h, ie[t.title] = t, le[t.title] = r, se[t.title] = p, ce[t.title] = h, (T = {}, b = !0) => {
|
|
584
598
|
if (!b)
|
|
585
599
|
return we(T, n);
|
|
586
600
|
const u = Se(T, t, n), c = Object.keys(e).reduce((m, a) => (m[a] = e[a].default, m), {});
|
|
587
601
|
return Object.assign(c, u);
|
|
588
602
|
};
|
|
589
603
|
}
|
|
590
|
-
function
|
|
604
|
+
function Ye(e, t) {
|
|
591
605
|
return { customClass: t.class, customStyle: t.style };
|
|
592
606
|
}
|
|
593
|
-
const
|
|
594
|
-
["appearance",
|
|
607
|
+
const Ze = /* @__PURE__ */ new Map([
|
|
608
|
+
["appearance", Ye],
|
|
595
609
|
["scrollItems", "itemRef"],
|
|
596
610
|
["title", "extendTitle"]
|
|
597
611
|
]);
|
|
@@ -613,20 +627,20 @@ function ue(e, t) {
|
|
|
613
627
|
}
|
|
614
628
|
});
|
|
615
629
|
}
|
|
616
|
-
function
|
|
630
|
+
function Ve(e) {
|
|
617
631
|
var n;
|
|
618
632
|
const t = [];
|
|
619
633
|
return (n = e.module) != null && n.components && e.module.components.forEach((r) => {
|
|
620
634
|
r.contents && ue(r.contents, t);
|
|
621
635
|
}), t;
|
|
622
636
|
}
|
|
623
|
-
function
|
|
637
|
+
function Ie(e, t, n, r) {
|
|
624
638
|
if (!r)
|
|
625
639
|
return console.warn("designerHostService is undefined, returning empty scrollItems"), t.scrollItems = [], t;
|
|
626
|
-
const
|
|
627
|
-
return t.scrollItems =
|
|
640
|
+
const p = Ve(r.formSchemaUtils.getFormSchema());
|
|
641
|
+
return t.scrollItems = p, t;
|
|
628
642
|
}
|
|
629
|
-
const
|
|
643
|
+
const Ke = "https://json-schema.org/draft/2020-12/schema", et = "https://farris-design.gitee.io/scroll-navbar.schema.json", tt = "scroll-navbar", nt = "滚动导航", rt = "object", ot = {
|
|
630
644
|
id: {
|
|
631
645
|
description: "标识",
|
|
632
646
|
type: "string"
|
|
@@ -693,19 +707,19 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
693
707
|
},
|
|
694
708
|
default: {}
|
|
695
709
|
}
|
|
696
|
-
},
|
|
710
|
+
}, at = [
|
|
697
711
|
"id",
|
|
698
712
|
"type",
|
|
699
713
|
"visible",
|
|
700
714
|
"scrollItems"
|
|
701
|
-
],
|
|
702
|
-
$schema:
|
|
703
|
-
$id:
|
|
704
|
-
title:
|
|
705
|
-
description:
|
|
706
|
-
type:
|
|
707
|
-
properties:
|
|
708
|
-
required:
|
|
715
|
+
], it = {
|
|
716
|
+
$schema: Ke,
|
|
717
|
+
$id: et,
|
|
718
|
+
title: tt,
|
|
719
|
+
description: nt,
|
|
720
|
+
type: rt,
|
|
721
|
+
properties: ot,
|
|
722
|
+
required: at
|
|
709
723
|
}, G = {
|
|
710
724
|
/** 是否始终显示导航栏 */
|
|
711
725
|
alwaysShow: { type: Boolean, default: !1 },
|
|
@@ -717,12 +731,12 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
717
731
|
extendTitle: { type: String, default: "" },
|
|
718
732
|
/** 导航项引用配置 */
|
|
719
733
|
itemRef: { type: Array, default: [] }
|
|
720
|
-
}, Z =
|
|
734
|
+
}, Z = Qe(
|
|
721
735
|
G,
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
),
|
|
736
|
+
it,
|
|
737
|
+
Ze,
|
|
738
|
+
Ie
|
|
739
|
+
), lt = (e, t) => {
|
|
726
740
|
const n = C([]), r = (b) => b.map((u) => {
|
|
727
741
|
const { id: c = "", title: m = "", selector: a = "", visible: s = !0 } = u;
|
|
728
742
|
if (!s)
|
|
@@ -738,7 +752,7 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
738
752
|
clientHeight: o,
|
|
739
753
|
element: f
|
|
740
754
|
};
|
|
741
|
-
}).filter((u) => u !== null),
|
|
755
|
+
}).filter((u) => u !== null), p = (b) => {
|
|
742
756
|
const u = [];
|
|
743
757
|
return b.forEach((c) => {
|
|
744
758
|
const m = Array.from(e.value.querySelectorAll(c));
|
|
@@ -758,7 +772,7 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
758
772
|
return n.value;
|
|
759
773
|
try {
|
|
760
774
|
const b = typeof t == "string" ? [t] : t;
|
|
761
|
-
typeof b[0] == "string" ? n.value =
|
|
775
|
+
typeof b[0] == "string" ? n.value = p(b) : n.value = r(b), n.value.sort((u, c) => u.offsetTop - c.offsetTop);
|
|
762
776
|
} catch (b) {
|
|
763
777
|
console.warn("获取导航项时出错:", b);
|
|
764
778
|
}
|
|
@@ -779,7 +793,7 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
779
793
|
getItems: h,
|
|
780
794
|
getTopElementInView: T
|
|
781
795
|
};
|
|
782
|
-
},
|
|
796
|
+
}, st = (e, t, n, r, p, h, T) => {
|
|
783
797
|
let b = 0;
|
|
784
798
|
const u = {
|
|
785
799
|
active: !1,
|
|
@@ -795,7 +809,7 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
795
809
|
h.value = !0;
|
|
796
810
|
return;
|
|
797
811
|
}
|
|
798
|
-
const w =
|
|
812
|
+
const w = p.value[0] ? p.value[0].offsetTop : 0;
|
|
799
813
|
h.value = r.value.scrollTop > w;
|
|
800
814
|
}, f = () => {
|
|
801
815
|
const w = r.value;
|
|
@@ -803,22 +817,22 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
803
817
|
console.warn("Content element is not available for style checking");
|
|
804
818
|
return;
|
|
805
819
|
}
|
|
806
|
-
const
|
|
807
|
-
(!
|
|
820
|
+
const N = getComputedStyle(w), F = ["fixed", "absolute", "relative"];
|
|
821
|
+
(!N.position || !F.includes(N.position)) && (w.style.position = "relative");
|
|
808
822
|
}, i = (w) => {
|
|
809
823
|
u.active = !0, r.value && "scrollTo" in r.value && r.value.scrollTo({
|
|
810
824
|
top: Math.max(0, w.offsetTop - 44),
|
|
811
825
|
behavior: "smooth"
|
|
812
826
|
}), T.value = w.name, t.emit("change", w);
|
|
813
|
-
const
|
|
827
|
+
const N = r.value.scrollTop;
|
|
814
828
|
setTimeout(() => {
|
|
815
|
-
|
|
829
|
+
N === r.value.scrollTop && (u.active = !1);
|
|
816
830
|
}, 500);
|
|
817
831
|
}, o = (w) => {
|
|
818
832
|
i(w.item), console.log(`点击了导航项: ${w.item.title}, 索引: ${w.index}`);
|
|
819
833
|
}, l = (w) => {
|
|
820
834
|
u.end = r.value.scrollTop, u.start === u.end && (u.active = !1, w());
|
|
821
|
-
},
|
|
835
|
+
}, v = () => {
|
|
822
836
|
if (!r.value || !n.value)
|
|
823
837
|
return;
|
|
824
838
|
if (a() && (n.value.classList.contains("f-scroll-navbar-fixed") || (b = n.value.offsetTop), r.value.scrollTop > b ? n.value.classList.add("f-scroll-navbar-fixed") : n.value.classList.remove("f-scroll-navbar-fixed")), u.active) {
|
|
@@ -828,17 +842,17 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
828
842
|
return;
|
|
829
843
|
}
|
|
830
844
|
const { scrollTop: w } = r.value;
|
|
831
|
-
let
|
|
832
|
-
for (const F of
|
|
845
|
+
let N;
|
|
846
|
+
for (const F of p.value)
|
|
833
847
|
if (F.offsetTop + F.clientHeight / 2 > w) {
|
|
834
|
-
|
|
848
|
+
N = F;
|
|
835
849
|
break;
|
|
836
850
|
}
|
|
837
|
-
|
|
851
|
+
N ? T.value = N.name : p.value.length > 0 && (T.value = p.value[p.value.length - 1].name), s();
|
|
838
852
|
}, k = () => {
|
|
839
|
-
r.value && r.value.addEventListener("scroll",
|
|
853
|
+
r.value && r.value.addEventListener("scroll", v);
|
|
840
854
|
}, E = () => {
|
|
841
|
-
r.value && r.value.removeEventListener("scroll",
|
|
855
|
+
r.value && r.value.removeEventListener("scroll", v);
|
|
842
856
|
};
|
|
843
857
|
return _(() => {
|
|
844
858
|
k(), f(), s();
|
|
@@ -856,7 +870,7 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
856
870
|
/** 检查内容样式 */
|
|
857
871
|
checkContentStyle: f,
|
|
858
872
|
/** 滚动处理 */
|
|
859
|
-
handlerScroll:
|
|
873
|
+
handlerScroll: v,
|
|
860
874
|
/** 检查导航栏显示状态 */
|
|
861
875
|
checkNavbarShow: s,
|
|
862
876
|
/** 导航栏显示状态引用 */
|
|
@@ -869,7 +883,7 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
869
883
|
props: G,
|
|
870
884
|
emits: ["change", "update:modelValue"],
|
|
871
885
|
setup(e, t) {
|
|
872
|
-
const n = C(), r = C(e.modelValue),
|
|
886
|
+
const n = C(), r = C(e.modelValue), p = C(!0), h = C(!1), T = H(() => {
|
|
873
887
|
try {
|
|
874
888
|
return document.querySelector(e.contentRef) || document.body;
|
|
875
889
|
} catch {
|
|
@@ -878,7 +892,7 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
878
892
|
}), {
|
|
879
893
|
items: b,
|
|
880
894
|
getItems: u
|
|
881
|
-
} =
|
|
895
|
+
} = lt(T, e.itemRef), c = st(e, t, n, T, b, p, r);
|
|
882
896
|
be(() => e.modelValue, (o) => {
|
|
883
897
|
r.value = o;
|
|
884
898
|
});
|
|
@@ -919,9 +933,9 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
919
933
|
active: o.name === r.value,
|
|
920
934
|
disabled: !1
|
|
921
935
|
}))), i = H(() => {
|
|
922
|
-
const o = f.value.findIndex((E) => E.active), l = 100,
|
|
936
|
+
const o = f.value.findIndex((E) => E.active), l = 100, v = 60, k = o * l + (l - v) / 2;
|
|
923
937
|
return {
|
|
924
|
-
width: `${
|
|
938
|
+
width: `${v}px`,
|
|
925
939
|
transform: `translateX(${k}px)`
|
|
926
940
|
};
|
|
927
941
|
});
|
|
@@ -954,10 +968,10 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
954
968
|
style: {
|
|
955
969
|
width: `${f.value.length * 100}px`
|
|
956
970
|
}
|
|
957
|
-
}, [f.value.map((l,
|
|
971
|
+
}, [f.value.map((l, v) => g("div", {
|
|
958
972
|
key: l.name,
|
|
959
973
|
class: ["fm-tab-bar-item", "fm-tab-bar-item-line", l.active ? "is-active" : "", l.disabled ? "is-disabled" : ""],
|
|
960
|
-
onClick: () => !l.disabled && a(l,
|
|
974
|
+
onClick: () => !l.disabled && a(l, v)
|
|
961
975
|
}, [g("div", {
|
|
962
976
|
class: "fm-tab-bar-item-content"
|
|
963
977
|
}, [g("div", {
|
|
@@ -980,12 +994,12 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
980
994
|
class: "fm-tab-bar-panel-header"
|
|
981
995
|
}, [g("span", null, [e.extendTitle || "更多"])]), g("div", {
|
|
982
996
|
class: "fm-tab-bar-panel-content"
|
|
983
|
-
}, [f.value.map((l,
|
|
997
|
+
}, [f.value.map((l, v) => g("div", {
|
|
984
998
|
key: l.name,
|
|
985
999
|
class: ["fm-tab-bar-panel-item", l.active ? "fm-tab-bar-panel-item-active" : ""],
|
|
986
1000
|
onClick: () => !l.disabled && s({
|
|
987
1001
|
item: l,
|
|
988
|
-
index:
|
|
1002
|
+
index: v
|
|
989
1003
|
})
|
|
990
1004
|
}, [g("span", {
|
|
991
1005
|
class: "fm-tab-bar-panel-item-text"
|
|
@@ -994,9 +1008,9 @@ const Ie = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
994
1008
|
};
|
|
995
1009
|
}
|
|
996
1010
|
});
|
|
997
|
-
function
|
|
1011
|
+
function ct(e, t, n) {
|
|
998
1012
|
var L;
|
|
999
|
-
const r = "",
|
|
1013
|
+
const r = "", p = "", h = C();
|
|
1000
1014
|
let T;
|
|
1001
1015
|
function b() {
|
|
1002
1016
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
@@ -1023,8 +1037,8 @@ function st(e, t, n) {
|
|
|
1023
1037
|
const { componentInstance: S, designerItemElementRef: P } = d;
|
|
1024
1038
|
if (!S || !S.value)
|
|
1025
1039
|
return null;
|
|
1026
|
-
const { getCustomButtons:
|
|
1027
|
-
return S.value.canMove ||
|
|
1040
|
+
const { getCustomButtons: O } = S.value;
|
|
1041
|
+
return S.value.canMove || O && ((M = O()) != null && M.length) ? P : s(d.parent);
|
|
1028
1042
|
}
|
|
1029
1043
|
function f(d) {
|
|
1030
1044
|
return !1;
|
|
@@ -1038,11 +1052,11 @@ function st(e, t, n) {
|
|
|
1038
1052
|
var P;
|
|
1039
1053
|
!d || !S || (P = t == null ? void 0 : t.setupContext) == null || P.emit("dragEnd");
|
|
1040
1054
|
}
|
|
1041
|
-
function
|
|
1055
|
+
function v(d, S) {
|
|
1042
1056
|
const { componentType: P } = d;
|
|
1043
|
-
let
|
|
1057
|
+
let O = he(P, d, S);
|
|
1044
1058
|
const M = P.toLowerCase().replace(/-/g, "_");
|
|
1045
|
-
return
|
|
1059
|
+
return O && !O.id && O.type === P && (O.id = `${M}_${Math.random().toString().slice(2, 6)}`), O;
|
|
1046
1060
|
}
|
|
1047
1061
|
function k(d) {
|
|
1048
1062
|
}
|
|
@@ -1053,22 +1067,22 @@ function st(e, t, n) {
|
|
|
1053
1067
|
return;
|
|
1054
1068
|
const S = t == null ? void 0 : t.schema, { formSchemaUtils: P } = d;
|
|
1055
1069
|
if (S && P.getExpressions().length) {
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1070
|
+
const O = P.getExpressions().findIndex((M) => M.target === S.id);
|
|
1071
|
+
O > -1 && P.getExpressions().splice(O, 1);
|
|
1058
1072
|
}
|
|
1059
1073
|
}
|
|
1060
|
-
function
|
|
1074
|
+
function N(d) {
|
|
1061
1075
|
if (!d || !(t != null && t.schema))
|
|
1062
1076
|
return;
|
|
1063
1077
|
const S = t.schema, { formSchemaUtils: P } = d;
|
|
1064
1078
|
P.removeCommunicationInComponent(S);
|
|
1065
1079
|
}
|
|
1066
1080
|
function F(d) {
|
|
1067
|
-
w(d),
|
|
1081
|
+
w(d), N(d), t != null && t.schema.contents && t.schema.contents.map((S) => {
|
|
1068
1082
|
let P = S.id;
|
|
1069
1083
|
S.type === "component-ref" && (P = S.component);
|
|
1070
|
-
const
|
|
1071
|
-
|
|
1084
|
+
const O = e.value.querySelectorAll(`#${P}-design-item`);
|
|
1085
|
+
O != null && O.length && Array.from(O).map((M) => {
|
|
1072
1086
|
var j;
|
|
1073
1087
|
(j = M == null ? void 0 : M.componentInstance) != null && j.value.onRemoveComponent && M.componentInstance.value.onRemoveComponent(d);
|
|
1074
1088
|
});
|
|
@@ -1077,36 +1091,36 @@ function st(e, t, n) {
|
|
|
1077
1091
|
function B() {
|
|
1078
1092
|
}
|
|
1079
1093
|
function z(d) {
|
|
1080
|
-
var P,
|
|
1094
|
+
var P, O;
|
|
1081
1095
|
if (!((P = t == null ? void 0 : t.schema) != null && P.id))
|
|
1082
1096
|
return;
|
|
1083
1097
|
!T && d && (T = d.formSchemaUtils);
|
|
1084
1098
|
let S = "";
|
|
1085
1099
|
{
|
|
1086
1100
|
const { text: M, title: j, label: $, mainTitle: x, name: R, type: W } = t.schema;
|
|
1087
|
-
S = M || j || $ || x || R || ((
|
|
1101
|
+
S = M || j || $ || x || R || ((O = ne[W]) == null ? void 0 : O.name);
|
|
1088
1102
|
}
|
|
1089
1103
|
S && T.getControlBasicInfoMap().set(t.schema.id, {
|
|
1090
1104
|
componentTitle: S,
|
|
1091
1105
|
parentPathName: S
|
|
1092
1106
|
});
|
|
1093
1107
|
}
|
|
1094
|
-
function
|
|
1108
|
+
function D(d) {
|
|
1095
1109
|
var M;
|
|
1096
|
-
const { changeObject: S } = d, { propertyID: P, propertyValue:
|
|
1097
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((M = d == null ? void 0 : d.changeObject) == null ? void 0 : M.propertyID) && P &&
|
|
1110
|
+
const { changeObject: S } = d, { propertyID: P, propertyValue: O } = S;
|
|
1111
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((M = d == null ? void 0 : d.changeObject) == null ? void 0 : M.propertyID) && P && O && (z(), T)) {
|
|
1098
1112
|
const j = T.getControlBasicInfoMap(), $ = j.keys().toArray().filter((x) => {
|
|
1099
1113
|
var R, W;
|
|
1100
1114
|
return ((R = j.get(x)) == null ? void 0 : R.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
|
|
1101
1115
|
});
|
|
1102
1116
|
$ != null && $.length && $.forEach((x) => {
|
|
1103
1117
|
const R = j.get(x).parentPathName.split(" > ");
|
|
1104
|
-
R[0] =
|
|
1118
|
+
R[0] = O, j.get(x).parentPathName = R.join(" > ");
|
|
1105
1119
|
});
|
|
1106
1120
|
}
|
|
1107
1121
|
}
|
|
1108
1122
|
function y(d) {
|
|
1109
|
-
|
|
1123
|
+
D(d);
|
|
1110
1124
|
}
|
|
1111
1125
|
function q() {
|
|
1112
1126
|
return !0;
|
|
@@ -1121,7 +1135,7 @@ function st(e, t, n) {
|
|
|
1121
1135
|
parent: (L = t == null ? void 0 : t.parent) == null ? void 0 : L.componentInstance,
|
|
1122
1136
|
schema: t == null ? void 0 : t.schema,
|
|
1123
1137
|
styles: r,
|
|
1124
|
-
designerClass:
|
|
1138
|
+
designerClass: p,
|
|
1125
1139
|
canAccepts: f,
|
|
1126
1140
|
getBelongedComponentInstance: a,
|
|
1127
1141
|
getDraggableDesignItemElement: s,
|
|
@@ -1130,7 +1144,7 @@ function st(e, t, n) {
|
|
|
1130
1144
|
getDragScopeElement: o,
|
|
1131
1145
|
onAcceptMovedChildElement: l,
|
|
1132
1146
|
onChildElementMovedOut: k,
|
|
1133
|
-
addNewChildComponentSchema:
|
|
1147
|
+
addNewChildComponentSchema: v,
|
|
1134
1148
|
triggerBelongedComponentToMoveWhenMoved: C(!1),
|
|
1135
1149
|
triggerBelongedComponentToDeleteWhenDeleted: C(!1),
|
|
1136
1150
|
onRemoveComponent: F,
|
|
@@ -1141,17 +1155,17 @@ function st(e, t, n) {
|
|
|
1141
1155
|
shouldApplyClassToComponent: q
|
|
1142
1156
|
}, h;
|
|
1143
1157
|
}
|
|
1144
|
-
const
|
|
1158
|
+
const ut = /* @__PURE__ */ V({
|
|
1145
1159
|
name: "FScrollNavbarDesign",
|
|
1146
1160
|
props: G,
|
|
1147
1161
|
emits: ["clear", "update:modelValue", "change"],
|
|
1148
1162
|
setup(e, t) {
|
|
1149
1163
|
const n = C();
|
|
1150
1164
|
J("designer-host-service");
|
|
1151
|
-
const r = J("design-item-context"),
|
|
1165
|
+
const r = J("design-item-context"), p = ct(n, r), h = C(e.itemRef);
|
|
1152
1166
|
_(() => {
|
|
1153
|
-
n.value.componentInstance =
|
|
1154
|
-
}), t.expose(
|
|
1167
|
+
n.value.componentInstance = p;
|
|
1168
|
+
}), t.expose(p.value);
|
|
1155
1169
|
const T = H(() => {
|
|
1156
1170
|
if (!h.value || h.value.length === 0)
|
|
1157
1171
|
return [{
|
|
@@ -1239,7 +1253,7 @@ const ct = /* @__PURE__ */ V({
|
|
|
1239
1253
|
}, null)]), t.slots.default && t.slots.default()])]);
|
|
1240
1254
|
};
|
|
1241
1255
|
}
|
|
1242
|
-
}),
|
|
1256
|
+
}), vt = pe(U), bt = {
|
|
1243
1257
|
install(e) {
|
|
1244
1258
|
e.component(U.name, U);
|
|
1245
1259
|
},
|
|
@@ -1247,12 +1261,12 @@ const ct = /* @__PURE__ */ V({
|
|
|
1247
1261
|
e["scroll-navbar"] = U, t["scroll-navbar"] = Z;
|
|
1248
1262
|
},
|
|
1249
1263
|
registerDesigner(e, t) {
|
|
1250
|
-
e["scroll-navbar"] =
|
|
1264
|
+
e["scroll-navbar"] = ut, t["scroll-navbar"] = Z;
|
|
1251
1265
|
}
|
|
1252
1266
|
};
|
|
1253
1267
|
export {
|
|
1254
|
-
|
|
1255
|
-
|
|
1268
|
+
vt as ScrollNavbar,
|
|
1269
|
+
bt as default,
|
|
1256
1270
|
Z as propsResolverGenerator,
|
|
1257
1271
|
G as scrollNavbarProps
|
|
1258
1272
|
};
|