@farris/ui-vue 1.2.6 → 1.2.7
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 +147 -139
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +11 -28
- package/components/avatar/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +33 -50
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +183 -171
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +236 -235
- package/components/condition/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +1531 -1560
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +1299 -1300
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +235 -252
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +127 -143
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +206 -201
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +650 -647
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +1101 -1131
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +335 -332
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +128 -145
- package/components/input-group/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +306 -303
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +2470 -2469
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1928 -1958
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/order/index.esm.js +802 -788
- package/components/order/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +116 -137
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-editor/index.esm.js +533 -521
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +178 -177
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +56 -73
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +547 -518
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +260 -281
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +598 -617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/switch/index.esm.js +137 -154
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +109 -130
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +103 -120
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +172 -189
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +124 -122
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +1600 -1630
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +245 -246
- package/components/tree-view/index.umd.cjs +1 -1
- package/farris.all.esm.js +4123 -4112
- package/farris.all.umd.cjs +8 -8
- package/package.json +1 -1
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -2
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -16
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
|
@@ -91,11 +91,11 @@ function qe(n = {}) {
|
|
|
91
91
|
function P(g, T) {
|
|
92
92
|
return u(g).reduce((f, i) => f && h(i, T), !0);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
const l = Object.keys(g), a = l.includes("allOf"), f = l.includes("anyOf"), i = a || f,
|
|
96
|
-
return a ? !
|
|
94
|
+
function k(g, T) {
|
|
95
|
+
const l = Object.keys(g), a = l.includes("allOf"), f = l.includes("anyOf"), i = a || f, M = (i ? g[i ? a ? "allOf" : "anyOf" : "allOf"] : [g]).map((S) => P(S, T));
|
|
96
|
+
return a ? !M.includes(!1) : M.includes(!0);
|
|
97
97
|
}
|
|
98
|
-
return { parseValueSchema:
|
|
98
|
+
return { parseValueSchema: k };
|
|
99
99
|
}
|
|
100
100
|
const E = {
|
|
101
101
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
@@ -210,10 +210,10 @@ const E = {
|
|
|
210
210
|
/** 审批类 end */
|
|
211
211
|
}, we = {}, Ge = {};
|
|
212
212
|
qe();
|
|
213
|
-
function ce(n, e, t = /* @__PURE__ */ new Map(), s = (h, P,
|
|
213
|
+
function ce(n, e, t = /* @__PURE__ */ new Map(), s = (h, P, k) => P, p = {}, u = (h) => h) {
|
|
214
214
|
return ie[e.title] = e, Ce[e.title] = s, we[e.title] = p, Ge[e.title] = u, (h = {}) => {
|
|
215
|
-
const P = He(h, e, t),
|
|
216
|
-
return Object.assign(
|
|
215
|
+
const P = He(h, e, t), k = Object.keys(n).reduce((g, T) => (g[T] = n[T].default, g), {});
|
|
216
|
+
return Object.assign(k, P);
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
219
|
function Qe(n, e) {
|
|
@@ -401,7 +401,7 @@ const le = {
|
|
|
401
401
|
"f-icon": !0
|
|
402
402
|
};
|
|
403
403
|
return p(S, n.icon), S;
|
|
404
|
-
}),
|
|
404
|
+
}), k = V(() => {
|
|
405
405
|
const S = {
|
|
406
406
|
"f-title": !0
|
|
407
407
|
};
|
|
@@ -431,7 +431,7 @@ const le = {
|
|
|
431
431
|
}
|
|
432
432
|
function C() {
|
|
433
433
|
return e.slots.titleContent ? b("div", {
|
|
434
|
-
class:
|
|
434
|
+
class: k.value
|
|
435
435
|
}, [Y(" "), e.slots.titleContent()]) : b("div", {
|
|
436
436
|
class: "f-title"
|
|
437
437
|
}, [n.showIcon && n.icon ? b("span", {
|
|
@@ -457,7 +457,7 @@ const le = {
|
|
|
457
457
|
class: g.value
|
|
458
458
|
}, [Y(" "), e.slots.content()]) : "";
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function M() {
|
|
461
461
|
if (n.buttons && n.buttons.length > 0)
|
|
462
462
|
return b(_e, {
|
|
463
463
|
customClass: n.buttonClass,
|
|
@@ -478,7 +478,7 @@ const le = {
|
|
|
478
478
|
class: u.value
|
|
479
479
|
}, [b("nav", {
|
|
480
480
|
class: "f-page-header-base"
|
|
481
|
-
}, [C(), w(),
|
|
481
|
+
}, [C(), w(), M()]), R()]);
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
function it(n, e, t) {
|
|
@@ -491,7 +491,7 @@ function it(n, e, t) {
|
|
|
491
491
|
function P() {
|
|
492
492
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function k() {
|
|
495
495
|
return !1;
|
|
496
496
|
}
|
|
497
497
|
function g() {
|
|
@@ -523,7 +523,7 @@ function it(n, e, t) {
|
|
|
523
523
|
function w(v, m) {
|
|
524
524
|
m && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(m);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function M(v) {
|
|
527
527
|
const { componentType: m } = v;
|
|
528
528
|
let D = z(m, v);
|
|
529
529
|
t && t.onResolveNewComponentSchema && (D = t.onResolveNewComponentSchema(v, D));
|
|
@@ -546,7 +546,7 @@ function it(n, e, t) {
|
|
|
546
546
|
}
|
|
547
547
|
return h.value = {
|
|
548
548
|
canMove: P(),
|
|
549
|
-
canSelectParent:
|
|
549
|
+
canSelectParent: k(),
|
|
550
550
|
canDelete: g(),
|
|
551
551
|
canNested: !T(),
|
|
552
552
|
contents: e == null ? void 0 : e.schema.contents,
|
|
@@ -564,7 +564,7 @@ function it(n, e, t) {
|
|
|
564
564
|
onAcceptMovedChildElement: w,
|
|
565
565
|
onAcceptNewChildElement: R,
|
|
566
566
|
onChildElementMovedOut: S,
|
|
567
|
-
addNewChildComponentSchema:
|
|
567
|
+
addNewChildComponentSchema: M,
|
|
568
568
|
updateDragAndDropRules: s,
|
|
569
569
|
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || B(!1),
|
|
570
570
|
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || B(!1)
|
|
@@ -726,7 +726,7 @@ class J {
|
|
|
726
726
|
if (!u)
|
|
727
727
|
return;
|
|
728
728
|
const h = u.contents.findIndex((i) => i.id === e.id), P = u.contents[h];
|
|
729
|
-
let
|
|
729
|
+
let k;
|
|
730
730
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
731
731
|
editor: {
|
|
732
732
|
$type: s
|
|
@@ -734,20 +734,20 @@ class J {
|
|
|
734
734
|
name: this.designViewModelField.name,
|
|
735
735
|
require: this.designViewModelField.require,
|
|
736
736
|
readonly: this.designViewModelField.readonly
|
|
737
|
-
}, !1),
|
|
737
|
+
}, !1), k = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, s)), Object.assign(k, {
|
|
738
738
|
id: P.id,
|
|
739
739
|
appearance: P.appearance,
|
|
740
740
|
size: P.size,
|
|
741
741
|
label: P.label
|
|
742
|
-
}), Object.assign(
|
|
743
|
-
isTextArea:
|
|
742
|
+
}), Object.assign(k.editor, {
|
|
743
|
+
isTextArea: k.isTextArea && P.isTextArea,
|
|
744
744
|
type: s || "",
|
|
745
745
|
placeHolder: (g = P.editor) == null ? void 0 : g.placeHolder,
|
|
746
746
|
holdPlace: (T = P.editor) == null ? void 0 : T.holdPlace,
|
|
747
747
|
readonly: (l = P.editor) == null ? void 0 : l.readonly,
|
|
748
748
|
require: (a = P.editor) == null ? void 0 : a.require,
|
|
749
749
|
visible: (f = P.editor) == null ? void 0 : f.visible
|
|
750
|
-
}), u.contents.splice(h, 1,
|
|
750
|
+
}), u.contents.splice(h, 1, k);
|
|
751
751
|
}
|
|
752
752
|
getAppearanceConfig(e = null) {
|
|
753
753
|
return {
|
|
@@ -795,27 +795,6 @@ class J {
|
|
|
795
795
|
return s;
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
|
-
getBindingFieldEditorOptions(e) {
|
|
799
|
-
const t = this.formSchemaUtils.getFormMetadataBasicInfo();
|
|
800
|
-
return {
|
|
801
|
-
type: "field-selector",
|
|
802
|
-
bindingType: { enable: !1 },
|
|
803
|
-
editorParams: {
|
|
804
|
-
propertyData: e,
|
|
805
|
-
formBasicInfo: t
|
|
806
|
-
},
|
|
807
|
-
columns: [
|
|
808
|
-
{ field: "name", title: "字段名称" },
|
|
809
|
-
{ field: "bindingField", title: "绑定字段" },
|
|
810
|
-
{ field: "fieldType", title: "字段类型" }
|
|
811
|
-
],
|
|
812
|
-
beforeOpenDialog: (s) => {
|
|
813
|
-
const p = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
814
|
-
s.instance.loadData(p);
|
|
815
|
-
},
|
|
816
|
-
textField: "bindingField"
|
|
817
|
-
};
|
|
818
|
-
}
|
|
819
798
|
}
|
|
820
799
|
class at extends J {
|
|
821
800
|
constructor(e, t) {
|
|
@@ -1019,7 +998,7 @@ class X extends Se {
|
|
|
1019
998
|
const De = /* @__PURE__ */ new Map([
|
|
1020
999
|
["buttons", "items"]
|
|
1021
1000
|
]);
|
|
1022
|
-
function
|
|
1001
|
+
function ke(n, e, t) {
|
|
1023
1002
|
return e;
|
|
1024
1003
|
}
|
|
1025
1004
|
const dt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-design.gitee.io/response-toolbar.schema.json", ft = "response-toolbar", mt = "A Farris Toolbar Component", gt = "object", yt = {
|
|
@@ -1117,7 +1096,7 @@ const dt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
|
|
|
1117
1096
|
type: St,
|
|
1118
1097
|
properties: Pt,
|
|
1119
1098
|
required: Dt
|
|
1120
|
-
},
|
|
1099
|
+
}, kt = "response-toolbar-item", Mt = "A Farris Container Component", xt = "object", Et = {
|
|
1121
1100
|
basic: {
|
|
1122
1101
|
title: "基本信息",
|
|
1123
1102
|
description: "Basic Infomation",
|
|
@@ -1151,8 +1130,8 @@ const dt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
|
|
|
1151
1130
|
}
|
|
1152
1131
|
}
|
|
1153
1132
|
}, me = {
|
|
1154
|
-
title:
|
|
1155
|
-
description:
|
|
1133
|
+
title: kt,
|
|
1134
|
+
description: Mt,
|
|
1156
1135
|
type: xt,
|
|
1157
1136
|
categories: Et
|
|
1158
1137
|
}, pe = {
|
|
@@ -1172,8 +1151,8 @@ const Bt = Object.assign({}, pe, {
|
|
|
1172
1151
|
pe,
|
|
1173
1152
|
bt,
|
|
1174
1153
|
De,
|
|
1175
|
-
|
|
1176
|
-
),
|
|
1154
|
+
ke
|
|
1155
|
+
), Me = {
|
|
1177
1156
|
id: { type: String, default: "" },
|
|
1178
1157
|
items: { type: Object, default: {} },
|
|
1179
1158
|
text: { type: String, default: "" },
|
|
@@ -1181,10 +1160,10 @@ const Bt = Object.assign({}, pe, {
|
|
|
1181
1160
|
icon: { type: String, default: "" },
|
|
1182
1161
|
componentId: { type: String, default: "" }
|
|
1183
1162
|
}, jt = ce(
|
|
1184
|
-
|
|
1163
|
+
Me,
|
|
1185
1164
|
re,
|
|
1186
1165
|
De,
|
|
1187
|
-
|
|
1166
|
+
ke
|
|
1188
1167
|
);
|
|
1189
1168
|
function xe() {
|
|
1190
1169
|
function n(t) {
|
|
@@ -1243,7 +1222,7 @@ function At(n) {
|
|
|
1243
1222
|
function P(l, a) {
|
|
1244
1223
|
document.body.click(), a.enable && a.onClick(l, a.id);
|
|
1245
1224
|
}
|
|
1246
|
-
function
|
|
1225
|
+
function k(l) {
|
|
1247
1226
|
return l.children.map((a) => a.children && a.children.length ? b("li", {
|
|
1248
1227
|
class: t(a),
|
|
1249
1228
|
id: a.id,
|
|
@@ -1271,15 +1250,15 @@ function At(n) {
|
|
|
1271
1250
|
maxWidth: "300px",
|
|
1272
1251
|
width: "auto",
|
|
1273
1252
|
minWidth: "120px"
|
|
1274
|
-
}, C = document.getElementsByTagName("body")[0].getClientRects()[0].width, w = a,
|
|
1275
|
-
if (w &&
|
|
1253
|
+
}, C = document.getElementsByTagName("body")[0].getClientRects()[0].width, w = a, M = w == null ? void 0 : w.getClientRects();
|
|
1254
|
+
if (w && M && M.length) {
|
|
1276
1255
|
const {
|
|
1277
1256
|
top: R,
|
|
1278
1257
|
width: S,
|
|
1279
1258
|
left: A,
|
|
1280
1259
|
right: L,
|
|
1281
1260
|
height: v
|
|
1282
|
-
} =
|
|
1261
|
+
} = M[0], m = Math.ceil(v + R);
|
|
1283
1262
|
i.top = `${m}px`, i.left = `${A}px`;
|
|
1284
1263
|
const D = l.id + "_menu", j = a ? a.querySelector("#" + D) : null;
|
|
1285
1264
|
if (j) {
|
|
@@ -1296,13 +1275,13 @@ function At(n) {
|
|
|
1296
1275
|
return i;
|
|
1297
1276
|
}
|
|
1298
1277
|
p = function(l, a) {
|
|
1299
|
-
var w,
|
|
1300
|
-
const f = be(), i = a ? a.id : l.id, C = (
|
|
1278
|
+
var w, M;
|
|
1279
|
+
const f = be(), i = a ? a.id : l.id, C = (M = (w = f == null ? void 0 : f.exposed) == null ? void 0 : w.elementRef.value) == null ? void 0 : M.querySelector("#" + i);
|
|
1301
1280
|
return b("ul", {
|
|
1302
1281
|
class: e(l),
|
|
1303
1282
|
style: g(l, C, a),
|
|
1304
1283
|
id: l.id + "_menu"
|
|
1305
|
-
}, [
|
|
1284
|
+
}, [k(l)]);
|
|
1306
1285
|
};
|
|
1307
1286
|
function T() {
|
|
1308
1287
|
u.forEach((l) => {
|
|
@@ -1346,7 +1325,7 @@ function It(n, e) {
|
|
|
1346
1325
|
const a = l.expanded;
|
|
1347
1326
|
document.body.click(), l.expanded = !a;
|
|
1348
1327
|
}
|
|
1349
|
-
function
|
|
1328
|
+
function k(T) {
|
|
1350
1329
|
return b("div", {
|
|
1351
1330
|
id: T.id,
|
|
1352
1331
|
class: u(T)
|
|
@@ -1365,7 +1344,7 @@ function It(n, e) {
|
|
|
1365
1344
|
p();
|
|
1366
1345
|
}
|
|
1367
1346
|
return {
|
|
1368
|
-
renderToolbarDropdown:
|
|
1347
|
+
renderToolbarDropdown: k,
|
|
1369
1348
|
clearAllDropDown: g
|
|
1370
1349
|
};
|
|
1371
1350
|
}
|
|
@@ -1379,7 +1358,7 @@ const {
|
|
|
1379
1358
|
const t = B(ge(n.items)), s = B(), p = B(), u = B(), h = B(n.alignment), P = {
|
|
1380
1359
|
id: "__more_buttons__",
|
|
1381
1360
|
text: "更多"
|
|
1382
|
-
},
|
|
1361
|
+
}, k = B(new X(P)), g = xe(), T = V(() => k.value.children.length > 0), l = V(() => {
|
|
1383
1362
|
const m = {
|
|
1384
1363
|
"f-toolbar": !0,
|
|
1385
1364
|
"f-response-toolbar": !0,
|
|
@@ -1402,7 +1381,7 @@ const {
|
|
|
1402
1381
|
function C() {
|
|
1403
1382
|
t.value.filter((m) => m.children && m.children.length > 0).forEach((m) => {
|
|
1404
1383
|
m.expanded = !1;
|
|
1405
|
-
}),
|
|
1384
|
+
}), k.value.expanded = !1, i();
|
|
1406
1385
|
}
|
|
1407
1386
|
function w(m) {
|
|
1408
1387
|
const D = {
|
|
@@ -1418,7 +1397,7 @@ const {
|
|
|
1418
1397
|
}
|
|
1419
1398
|
return D;
|
|
1420
1399
|
}
|
|
1421
|
-
function
|
|
1400
|
+
function M(m, D) {
|
|
1422
1401
|
document.body.click(), D.onClick(m, D.id), e.emit("click", m, D.id);
|
|
1423
1402
|
}
|
|
1424
1403
|
function R(m) {
|
|
@@ -1427,7 +1406,7 @@ const {
|
|
|
1427
1406
|
class: w(m),
|
|
1428
1407
|
id: m.id,
|
|
1429
1408
|
disabled: !m.enable,
|
|
1430
|
-
onClick: (D) =>
|
|
1409
|
+
onClick: (D) => M(D, m)
|
|
1431
1410
|
}, [g.shouldShowIcon(m) && b("i", {
|
|
1432
1411
|
class: g.iconClass(m)
|
|
1433
1412
|
}, null), m.text]);
|
|
@@ -1457,10 +1436,10 @@ const {
|
|
|
1457
1436
|
else
|
|
1458
1437
|
break;
|
|
1459
1438
|
}
|
|
1460
|
-
const c = Object.assign({},
|
|
1439
|
+
const c = Object.assign({}, k.value);
|
|
1461
1440
|
c.children = [];
|
|
1462
1441
|
const y = new X(c), I = t.value.reduce((x, F) => (S.has(F.id) && y.children.push(F), F.visible = !S.has(F.id), x.push(F), x), []);
|
|
1463
|
-
|
|
1442
|
+
k.value = y, t.value = I;
|
|
1464
1443
|
}
|
|
1465
1444
|
const v = new ResizeObserver((m) => {
|
|
1466
1445
|
if (m.length) {
|
|
@@ -1489,7 +1468,7 @@ const {
|
|
|
1489
1468
|
ref: u,
|
|
1490
1469
|
class: "d-inline-block f-response-content",
|
|
1491
1470
|
style: "white-space: nowrap;"
|
|
1492
|
-
}, [t.value.filter((m) => m.visible).map((m) => m.children && m.children.length > 0 ? f(m) : R(m)), T.value && f(
|
|
1471
|
+
}, [t.value.filter((m) => m.visible).map((m) => m.children && m.children.length > 0 ? f(m) : R(m)), T.value && f(k.value)])])]);
|
|
1493
1472
|
}
|
|
1494
1473
|
});
|
|
1495
1474
|
function Ft(n, e) {
|
|
@@ -1526,7 +1505,7 @@ function Ft(n, e) {
|
|
|
1526
1505
|
}, c = r.class.split(" ");
|
|
1527
1506
|
return c && c.length && c.reduce((y, I) => (y[I] = !0, y), o), o;
|
|
1528
1507
|
}
|
|
1529
|
-
let
|
|
1508
|
+
let k;
|
|
1530
1509
|
const g = /* @__PURE__ */ new Map();
|
|
1531
1510
|
function T(r, o, c) {
|
|
1532
1511
|
var I;
|
|
@@ -1580,7 +1559,7 @@ function Ft(n, e) {
|
|
|
1580
1559
|
} = i(r);
|
|
1581
1560
|
(y = t == null ? void 0 : t.setupContext) == null || y.emit("selectionChange", c == null ? void 0 : c.type, c);
|
|
1582
1561
|
}
|
|
1583
|
-
const
|
|
1562
|
+
const M = function(r) {
|
|
1584
1563
|
const {
|
|
1585
1564
|
componentType: o
|
|
1586
1565
|
} = r, c = z(o, r), y = o.toLowerCase().replace("-", "_");
|
|
@@ -1591,7 +1570,7 @@ function Ft(n, e) {
|
|
|
1591
1570
|
parentComponentInstance: e.value,
|
|
1592
1571
|
targetPosition: -1
|
|
1593
1572
|
};
|
|
1594
|
-
return
|
|
1573
|
+
return M(r);
|
|
1595
1574
|
};
|
|
1596
1575
|
function S(r, o) {
|
|
1597
1576
|
l(r), a(), f(r), w(o.id);
|
|
@@ -1693,7 +1672,7 @@ function Ft(n, e) {
|
|
|
1693
1672
|
}, [o.text, b("i", {
|
|
1694
1673
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
1695
1674
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
1696
|
-
}, null)]),
|
|
1675
|
+
}, null)]), k(o, o)]) : b("li", {
|
|
1697
1676
|
class: P(o),
|
|
1698
1677
|
id: o.id,
|
|
1699
1678
|
onClick: (c) => S(c, o)
|
|
@@ -1732,7 +1711,7 @@ function Ft(n, e) {
|
|
|
1732
1711
|
}
|
|
1733
1712
|
return y;
|
|
1734
1713
|
}
|
|
1735
|
-
|
|
1714
|
+
k = function(r, o) {
|
|
1736
1715
|
var x, F;
|
|
1737
1716
|
const c = be(), y = o ? o.id : r.id, I = (F = (x = c == null ? void 0 : c.exposed) == null ? void 0 : x.elementRef.value) == null ? void 0 : F.querySelector("#" + y);
|
|
1738
1717
|
return b("ul", {
|
|
@@ -1747,7 +1726,7 @@ function Ft(n, e) {
|
|
|
1747
1726
|
}), g.clear();
|
|
1748
1727
|
}
|
|
1749
1728
|
return {
|
|
1750
|
-
renderDropdownMenu:
|
|
1729
|
+
renderDropdownMenu: k,
|
|
1751
1730
|
clearAllDropDownMenu: d
|
|
1752
1731
|
};
|
|
1753
1732
|
}
|
|
@@ -1757,7 +1736,7 @@ function Rt(n, e, t) {
|
|
|
1757
1736
|
clearAllDropDownMenu: u
|
|
1758
1737
|
} = Ft(e, t), h = U("design-item-context"), P = U("toolbar-item-handler", () => {
|
|
1759
1738
|
});
|
|
1760
|
-
function
|
|
1739
|
+
function k() {
|
|
1761
1740
|
P && P();
|
|
1762
1741
|
}
|
|
1763
1742
|
function g(d) {
|
|
@@ -1823,9 +1802,9 @@ function Rt(n, e, t) {
|
|
|
1823
1802
|
const y = c.text || "按钮", I = i(), x = Object.assign({}, I, {
|
|
1824
1803
|
text: y
|
|
1825
1804
|
});
|
|
1826
|
-
(F = h.schema.buttons) == null || F.push(x),
|
|
1805
|
+
(F = h.schema.buttons) == null || F.push(x), k();
|
|
1827
1806
|
}
|
|
1828
|
-
function
|
|
1807
|
+
function M(d, r) {
|
|
1829
1808
|
const {
|
|
1830
1809
|
index: o,
|
|
1831
1810
|
toolbarItem: c
|
|
@@ -1835,11 +1814,11 @@ function Rt(n, e, t) {
|
|
|
1835
1814
|
const y = c.text || "按钮", I = i(), x = Object.assign({}, I, {
|
|
1836
1815
|
text: y
|
|
1837
1816
|
}), F = h.schema.buttons[o].children || [];
|
|
1838
|
-
F.push(x), h.schema.buttons[o].children = F,
|
|
1817
|
+
F.push(x), h.schema.buttons[o].children = F, k();
|
|
1839
1818
|
}
|
|
1840
1819
|
function R(d, r) {
|
|
1841
1820
|
const o = h.schema.buttons || h.schema.contents, c = o == null ? void 0 : o.findIndex((y) => y.id === r);
|
|
1842
|
-
c !== -1 && (o.splice(c, 1),
|
|
1821
|
+
c !== -1 && (o.splice(c, 1), k());
|
|
1843
1822
|
}
|
|
1844
1823
|
function S(d) {
|
|
1845
1824
|
return b("div", {
|
|
@@ -1868,7 +1847,7 @@ function Rt(n, e, t) {
|
|
|
1868
1847
|
title: "新增子级",
|
|
1869
1848
|
ref: "appendChildButton",
|
|
1870
1849
|
style: "width:85px!important;padding:0 5px;position:static;",
|
|
1871
|
-
onClick: (r) =>
|
|
1850
|
+
onClick: (r) => M(r, d)
|
|
1872
1851
|
}, [b("i", {
|
|
1873
1852
|
class: "f-icon f-icon-plus-circle text-white mr-1"
|
|
1874
1853
|
}, null), b("span", {
|
|
@@ -2511,29 +2490,29 @@ const Lt = "https://json-schema.org/draft/2020-12/schema", Nt = "https://farris-
|
|
|
2511
2490
|
required: Wt
|
|
2512
2491
|
}, oe = /* @__PURE__ */ new Map();
|
|
2513
2492
|
function Ee() {
|
|
2514
|
-
function n(i, C, w,
|
|
2493
|
+
function n(i, C, w, M) {
|
|
2515
2494
|
var R;
|
|
2516
2495
|
if (typeof w == "number")
|
|
2517
|
-
return ((R =
|
|
2496
|
+
return ((R = M[i]) == null ? void 0 : R.length) === w;
|
|
2518
2497
|
if (typeof w == "object") {
|
|
2519
2498
|
const S = Object.keys(w)[0], A = w[S];
|
|
2520
2499
|
if (S === "not")
|
|
2521
|
-
return Number(
|
|
2500
|
+
return Number(M[i].length) !== Number(A);
|
|
2522
2501
|
if (S === "moreThan")
|
|
2523
|
-
return Number(
|
|
2502
|
+
return Number(M[i].length) >= Number(A);
|
|
2524
2503
|
if (S === "lessThan")
|
|
2525
|
-
return Number(
|
|
2504
|
+
return Number(M[i].length) <= Number(A);
|
|
2526
2505
|
}
|
|
2527
2506
|
return !1;
|
|
2528
2507
|
}
|
|
2529
|
-
function e(i, C, w,
|
|
2530
|
-
return typeof w == "boolean" ?
|
|
2508
|
+
function e(i, C, w, M) {
|
|
2509
|
+
return typeof w == "boolean" ? M.childrenClassList.includes(C) === !!w : !1;
|
|
2531
2510
|
}
|
|
2532
|
-
function t(i, C, w,
|
|
2533
|
-
return typeof w == "boolean" ?
|
|
2511
|
+
function t(i, C, w, M) {
|
|
2512
|
+
return typeof w == "boolean" ? M.parentClassList.includes(C) === !!w : !1;
|
|
2534
2513
|
}
|
|
2535
|
-
function s(i, C, w,
|
|
2536
|
-
return typeof w == "boolean" ?
|
|
2514
|
+
function s(i, C, w, M) {
|
|
2515
|
+
return typeof w == "boolean" ? M.parentClassList.includes(C) === !!w : !1;
|
|
2537
2516
|
}
|
|
2538
2517
|
const p = /* @__PURE__ */ new Map([
|
|
2539
2518
|
["length", n],
|
|
@@ -2543,10 +2522,10 @@ function Ee() {
|
|
|
2543
2522
|
]);
|
|
2544
2523
|
function u(i, C) {
|
|
2545
2524
|
const w = i;
|
|
2546
|
-
return typeof C == "number" ? [{ target: w, operator: "length", param: null, value: Number(C) }] : typeof C == "object" ? Object.keys(C).map((
|
|
2547
|
-
if (
|
|
2548
|
-
return { target: w, operator: "length", param: null, value: C[
|
|
2549
|
-
const R =
|
|
2525
|
+
return typeof C == "number" ? [{ target: w, operator: "length", param: null, value: Number(C) }] : typeof C == "object" ? Object.keys(C).map((M) => {
|
|
2526
|
+
if (M === "length")
|
|
2527
|
+
return { target: w, operator: "length", param: null, value: C[M] };
|
|
2528
|
+
const R = M, S = C[M];
|
|
2550
2529
|
return { target: w, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: R, value: S };
|
|
2551
2530
|
}) : [];
|
|
2552
2531
|
}
|
|
@@ -2563,27 +2542,27 @@ function Ee() {
|
|
|
2563
2542
|
return S.push(...L), S;
|
|
2564
2543
|
}, []).reduce((S, A) => S && h(A, C), !0);
|
|
2565
2544
|
}
|
|
2566
|
-
function
|
|
2567
|
-
const w = Object.keys(i),
|
|
2568
|
-
return
|
|
2545
|
+
function k(i, C) {
|
|
2546
|
+
const w = Object.keys(i), M = w.includes("allOf"), R = w.includes("anyOf"), S = M || R, v = (S ? i[S ? M ? "allOf" : "anyOf" : "allOf"] : [i]).map((D) => P(D, C));
|
|
2547
|
+
return M ? !v.includes(!1) : v.includes(!0);
|
|
2569
2548
|
}
|
|
2570
2549
|
function g(i, C) {
|
|
2571
2550
|
const w = i.const;
|
|
2572
|
-
return w ? typeof w == "boolean" ? w : typeof w == "object" ?
|
|
2551
|
+
return w ? typeof w == "boolean" ? w : typeof w == "object" ? k(w, C) : !1 : !1;
|
|
2573
2552
|
}
|
|
2574
2553
|
function T(i) {
|
|
2575
2554
|
return (C) => {
|
|
2576
2555
|
const w = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
2577
|
-
return i && i.properties && Object.keys(i.properties).reduce((
|
|
2556
|
+
return i && i.properties && Object.keys(i.properties).reduce((M, R) => {
|
|
2578
2557
|
const S = i.properties[R];
|
|
2579
|
-
return
|
|
2558
|
+
return M[R] = g(S, C), M;
|
|
2580
2559
|
}, w), w;
|
|
2581
2560
|
};
|
|
2582
2561
|
}
|
|
2583
2562
|
function l(i, C, w) {
|
|
2584
2563
|
if (C.type === "object" && C.properties) {
|
|
2585
|
-
const { rules:
|
|
2586
|
-
w.set(i, T(
|
|
2564
|
+
const { rules: M, contents: R } = C.properties;
|
|
2565
|
+
w.set(i, T(M)), R && Object.keys(R.properties).forEach(
|
|
2587
2566
|
(S) => l(S, R.properties[S], w)
|
|
2588
2567
|
);
|
|
2589
2568
|
}
|
|
@@ -2671,7 +2650,7 @@ class Ht extends J {
|
|
|
2671
2650
|
}
|
|
2672
2651
|
function qt(n, e, t, s) {
|
|
2673
2652
|
const p = Ee(), u = B(!1), h = B(!1);
|
|
2674
|
-
let P = !0,
|
|
2653
|
+
let P = !0, k = !1, g;
|
|
2675
2654
|
function T(v) {
|
|
2676
2655
|
return g && g.componentClassList && g.componentClassList.includes("f-form-layout") && g.componentClassList.includes("farris-form") ? v.sourceType === "control" && v.controlCategory === "input" || v.sourceType === "move" && v.controlType === "form-group" : !0;
|
|
2677
2656
|
}
|
|
@@ -2698,7 +2677,7 @@ function qt(n, e, t, s) {
|
|
|
2698
2677
|
childrenClassList: c
|
|
2699
2678
|
};
|
|
2700
2679
|
const { canAccept: F, fixed: _, hidePadding: N } = p.getRuleValue(D[0], g);
|
|
2701
|
-
return P = F,
|
|
2680
|
+
return P = F, k = N, !0;
|
|
2702
2681
|
}
|
|
2703
2682
|
function f(v) {
|
|
2704
2683
|
}
|
|
@@ -2716,7 +2695,7 @@ function qt(n, e, t, s) {
|
|
|
2716
2695
|
}
|
|
2717
2696
|
return D;
|
|
2718
2697
|
}
|
|
2719
|
-
function
|
|
2698
|
+
function M() {
|
|
2720
2699
|
return !1;
|
|
2721
2700
|
}
|
|
2722
2701
|
function R() {
|
|
@@ -2726,7 +2705,7 @@ function qt(n, e, t, s) {
|
|
|
2726
2705
|
return !0;
|
|
2727
2706
|
}
|
|
2728
2707
|
function A() {
|
|
2729
|
-
return
|
|
2708
|
+
return k;
|
|
2730
2709
|
}
|
|
2731
2710
|
function L(v) {
|
|
2732
2711
|
return new Ht(v, e).getPropertyConfig(n);
|
|
@@ -2735,7 +2714,7 @@ function qt(n, e, t, s) {
|
|
|
2735
2714
|
canAccepts: l,
|
|
2736
2715
|
checkCanAddComponent: S,
|
|
2737
2716
|
checkCanDeleteComponent: R,
|
|
2738
|
-
checkCanMoveComponent:
|
|
2717
|
+
checkCanMoveComponent: M,
|
|
2739
2718
|
getStyles: i,
|
|
2740
2719
|
hideNestedPaddingInDesginerView: A,
|
|
2741
2720
|
onAcceptNewChildElement: w,
|
|
@@ -2799,7 +2778,7 @@ function Yt(n, e, t) {
|
|
|
2799
2778
|
function P() {
|
|
2800
2779
|
return !1;
|
|
2801
2780
|
}
|
|
2802
|
-
function
|
|
2781
|
+
function k() {
|
|
2803
2782
|
return !0;
|
|
2804
2783
|
}
|
|
2805
2784
|
function g() {
|
|
@@ -2828,7 +2807,7 @@ function Yt(n, e, t) {
|
|
|
2828
2807
|
}
|
|
2829
2808
|
function w(v, m) {
|
|
2830
2809
|
}
|
|
2831
|
-
function
|
|
2810
|
+
function M(v) {
|
|
2832
2811
|
const { componentType: m } = v;
|
|
2833
2812
|
let D = z(m, v);
|
|
2834
2813
|
const j = m.toLowerCase().replace("-", "_");
|
|
@@ -2850,7 +2829,7 @@ function Yt(n, e, t) {
|
|
|
2850
2829
|
canMove: h(),
|
|
2851
2830
|
canSelectParent: P(),
|
|
2852
2831
|
canAdd: g(),
|
|
2853
|
-
canDelete:
|
|
2832
|
+
canDelete: k(),
|
|
2854
2833
|
canNested: !T(),
|
|
2855
2834
|
contents: [],
|
|
2856
2835
|
elementRef: n,
|
|
@@ -2866,7 +2845,7 @@ function Yt(n, e, t) {
|
|
|
2866
2845
|
onAcceptMovedChildElement: w,
|
|
2867
2846
|
onAcceptNewChildElement: R,
|
|
2868
2847
|
onChildElementMovedOut: S,
|
|
2869
|
-
addNewChildComponentSchema:
|
|
2848
|
+
addNewChildComponentSchema: M,
|
|
2870
2849
|
updateDragAndDropRules: s,
|
|
2871
2850
|
triggerBelongedComponentToMoveWhenMoved: B(!1),
|
|
2872
2851
|
triggerBelongedComponentToDeleteWhenDeleted: B(!1)
|
|
@@ -2877,7 +2856,7 @@ const Be = /* @__PURE__ */ G({
|
|
|
2877
2856
|
props: Gt,
|
|
2878
2857
|
emits: ["selectionChange", "addComponent", "removeComponent"],
|
|
2879
2858
|
setup(n, e) {
|
|
2880
|
-
const t = B(n.canMove), s = B(n.canAdd), p = B(n.canDelete), u = B(!1), h = B(n.contentKey), P = B(n.childType),
|
|
2859
|
+
const t = B(n.canMove), s = B(n.canAdd), p = B(n.canDelete), u = B(!1), h = B(n.contentKey), P = B(n.childType), k = B(n.childLabel), g = B(n.modelValue), T = B(""), l = B(), a = U("canvas-dragula"), f = B(), i = U("design-item-context"), C = {
|
|
2881
2860
|
designerItemElementRef: l,
|
|
2882
2861
|
componentInstance: f,
|
|
2883
2862
|
schema: g.value,
|
|
@@ -2893,7 +2872,7 @@ const Be = /* @__PURE__ */ G({
|
|
|
2893
2872
|
"farris-nested": u.value,
|
|
2894
2873
|
"can-move": t.value,
|
|
2895
2874
|
"d-none": l.value && l.value.classList.contains("d-none")
|
|
2896
|
-
})),
|
|
2875
|
+
})), M = V(() => {
|
|
2897
2876
|
const o = {};
|
|
2898
2877
|
return T.value && T.value.split(";").reduce((c, y) => {
|
|
2899
2878
|
const [I, x] = y.split(":");
|
|
@@ -2913,7 +2892,7 @@ const Be = /* @__PURE__ */ G({
|
|
|
2913
2892
|
if (f.value.addNewChildComponentSchema) {
|
|
2914
2893
|
const c = {
|
|
2915
2894
|
componentType: P.value,
|
|
2916
|
-
label:
|
|
2895
|
+
label: k.value,
|
|
2917
2896
|
parentComponentInstance: f.value,
|
|
2918
2897
|
targetPosition: -1
|
|
2919
2898
|
}, y = f.value.addNewChildComponentSchema(c);
|
|
@@ -3002,7 +2981,7 @@ const Be = /* @__PURE__ */ G({
|
|
|
3002
2981
|
id: `${n.id}-design-item`,
|
|
3003
2982
|
ref: l,
|
|
3004
2983
|
class: w.value,
|
|
3005
|
-
style:
|
|
2984
|
+
style: M.value,
|
|
3006
2985
|
onClick: r
|
|
3007
2986
|
}, [m(g.value), e.slots.default && e.slots.default()]);
|
|
3008
2987
|
}
|
|
@@ -3085,8 +3064,8 @@ class Zt extends J {
|
|
|
3085
3064
|
tabId: "commands",
|
|
3086
3065
|
tabName: "交互",
|
|
3087
3066
|
setPropertyRelates(h, P) {
|
|
3088
|
-
const
|
|
3089
|
-
delete e[s.viewModelId],
|
|
3067
|
+
const k = h.propertyValue;
|
|
3068
|
+
delete e[s.viewModelId], k && (k.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, k.events, k));
|
|
3090
3069
|
}
|
|
3091
3070
|
};
|
|
3092
3071
|
}
|
|
@@ -3157,8 +3136,8 @@ class Kt extends J {
|
|
|
3157
3136
|
tabId: "commands",
|
|
3158
3137
|
tabName: "交互",
|
|
3159
3138
|
setPropertyRelates(h, P) {
|
|
3160
|
-
const
|
|
3161
|
-
delete e[s.viewModelId],
|
|
3139
|
+
const k = h.propertyValue;
|
|
3140
|
+
delete e[s.viewModelId], k && (k.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, k.events, k));
|
|
3162
3141
|
}
|
|
3163
3142
|
};
|
|
3164
3143
|
}
|
|
@@ -3172,13 +3151,13 @@ function Jt(n, e) {
|
|
|
3172
3151
|
}
|
|
3173
3152
|
function P(w) {
|
|
3174
3153
|
}
|
|
3175
|
-
function
|
|
3154
|
+
function k() {
|
|
3176
3155
|
return "";
|
|
3177
3156
|
}
|
|
3178
|
-
function g(w,
|
|
3179
|
-
return
|
|
3157
|
+
function g(w, M) {
|
|
3158
|
+
return M.text = w.label, M;
|
|
3180
3159
|
}
|
|
3181
|
-
function T(w,
|
|
3160
|
+
function T(w, M, R) {
|
|
3182
3161
|
const S = n.schema;
|
|
3183
3162
|
if ((S.appearance && S.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
3184
3163
|
const v = String(w.innerText), m = z("form-group");
|
|
@@ -3199,22 +3178,22 @@ function Jt(n, e) {
|
|
|
3199
3178
|
return p;
|
|
3200
3179
|
}
|
|
3201
3180
|
function C(w) {
|
|
3202
|
-
let
|
|
3181
|
+
let M;
|
|
3203
3182
|
switch (n.schema.type) {
|
|
3204
3183
|
case "tab-toolbar-item":
|
|
3205
|
-
|
|
3184
|
+
M = new Zt(w, e);
|
|
3206
3185
|
break;
|
|
3207
3186
|
default:
|
|
3208
|
-
|
|
3187
|
+
M = new Kt(w, e);
|
|
3209
3188
|
}
|
|
3210
|
-
return
|
|
3189
|
+
return M.getPropertyConfig(n.schema);
|
|
3211
3190
|
}
|
|
3212
3191
|
return {
|
|
3213
3192
|
canAccepts: h,
|
|
3214
3193
|
checkCanAddComponent: f,
|
|
3215
3194
|
checkCanDeleteComponent: a,
|
|
3216
3195
|
checkCanMoveComponent: l,
|
|
3217
|
-
getStyles:
|
|
3196
|
+
getStyles: k,
|
|
3218
3197
|
hideNestedPaddingInDesginerView: i,
|
|
3219
3198
|
onAcceptNewChildElement: T,
|
|
3220
3199
|
onAcceptMovedChildElement: P,
|
|
@@ -3226,7 +3205,7 @@ function Jt(n, e) {
|
|
|
3226
3205
|
}
|
|
3227
3206
|
const je = /* @__PURE__ */ G({
|
|
3228
3207
|
name: "FResponseToolbarItemDesign",
|
|
3229
|
-
props:
|
|
3208
|
+
props: Me,
|
|
3230
3209
|
emits: ["Click"],
|
|
3231
3210
|
setup(n, e) {
|
|
3232
3211
|
B(), B();
|
|
@@ -3235,7 +3214,7 @@ const je = /* @__PURE__ */ G({
|
|
|
3235
3214
|
text: "More"
|
|
3236
3215
|
}, p = B(new X(s));
|
|
3237
3216
|
V(() => p.value.children.length > 0);
|
|
3238
|
-
const u = B(), h = U("designer-host-service"), P = U("design-item-context"),
|
|
3217
|
+
const u = B(), h = U("designer-host-service"), P = U("design-item-context"), k = Jt(P, h), g = ve(u, P, k);
|
|
3239
3218
|
U("toolbar-item-handler", () => {
|
|
3240
3219
|
}), q(() => {
|
|
3241
3220
|
u.value.componentInstance = g;
|
|
@@ -3292,8 +3271,8 @@ const je = /* @__PURE__ */ G({
|
|
|
3292
3271
|
const p = B(), u = B(), h = B(n.alignment), P = {
|
|
3293
3272
|
id: "__more_buttons__",
|
|
3294
3273
|
text: "More"
|
|
3295
|
-
},
|
|
3296
|
-
V(() =>
|
|
3274
|
+
}, k = B(new X(P)), g = xe();
|
|
3275
|
+
V(() => k.value.children.length > 0);
|
|
3297
3276
|
const T = B(), l = U("designer-host-service"), a = U("design-item-context"), f = qt(a.schema, l, a), i = ve(T, a, f);
|
|
3298
3277
|
U("toolbar-item-handler", () => {
|
|
3299
3278
|
}), q(() => {
|
|
@@ -3309,13 +3288,13 @@ const je = /* @__PURE__ */ G({
|
|
|
3309
3288
|
"justify-content-end": h.value === "right",
|
|
3310
3289
|
"justify-content-start": h.value === "left"
|
|
3311
3290
|
})), {
|
|
3312
|
-
renderToolbarDropdown:
|
|
3291
|
+
renderToolbarDropdown: M,
|
|
3313
3292
|
clearAllDropDown: R
|
|
3314
3293
|
} = Rt(n, g, i);
|
|
3315
3294
|
function S() {
|
|
3316
3295
|
t.value.filter((d) => d.children && d.children.length > 0).forEach((d) => {
|
|
3317
3296
|
d.expanded = !1;
|
|
3318
|
-
}),
|
|
3297
|
+
}), k.value.expanded = !1, R();
|
|
3319
3298
|
}
|
|
3320
3299
|
const A = /* @__PURE__ */ new Map(), L = [];
|
|
3321
3300
|
function v(d) {
|
|
@@ -3342,10 +3321,10 @@ const je = /* @__PURE__ */ G({
|
|
|
3342
3321
|
else
|
|
3343
3322
|
break;
|
|
3344
3323
|
}
|
|
3345
|
-
const x = Object.assign({},
|
|
3324
|
+
const x = Object.assign({}, k.value);
|
|
3346
3325
|
x.children = [];
|
|
3347
3326
|
const F = new X(x), _ = t.value.reduce((N, $) => (A.has($.id) && F.children.push($), $.visible = !A.has($.id), N.push($), N), []);
|
|
3348
|
-
|
|
3327
|
+
k.value = F, t.value = _;
|
|
3349
3328
|
}
|
|
3350
3329
|
const m = new ResizeObserver((d) => {
|
|
3351
3330
|
if (d.length) {
|
|
@@ -3462,18 +3441,18 @@ const en = {
|
|
|
3462
3441
|
const t = B(), s = U("designer-host-service"), p = U("design-item-context"), u = ct(p.schema, s), h = it(t, p, u), P = B(p.schema.toolbar || {
|
|
3463
3442
|
type: "response-toolbar",
|
|
3464
3443
|
buttons: []
|
|
3465
|
-
}),
|
|
3444
|
+
}), k = B(ye(P.value));
|
|
3466
3445
|
q(() => {
|
|
3467
3446
|
t.value.componentInstance = h;
|
|
3468
3447
|
}), Q(() => p.schema.toolbar, () => {
|
|
3469
3448
|
P.value = p.schema.toolbar || {
|
|
3470
3449
|
type: "response-toolbar",
|
|
3471
3450
|
buttons: []
|
|
3472
|
-
},
|
|
3451
|
+
}, k.value = ye(P.value);
|
|
3473
3452
|
}, {
|
|
3474
3453
|
deep: !0
|
|
3475
3454
|
});
|
|
3476
|
-
const g = V(() => [...
|
|
3455
|
+
const g = V(() => [...k.value.items]);
|
|
3477
3456
|
function T(l, a, f, i) {
|
|
3478
3457
|
p && p.setupContext && p.setupContext.emit("selectionChange", l, a, f, i);
|
|
3479
3458
|
}
|