@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
|
@@ -3,10 +3,10 @@ import { getCustomClass as I, withInstall as K } from "../../components/common/i
|
|
|
3
3
|
import Z, { schemaResolver as J, FResponseToolbarDesign as Q } from "../response-toolbar/index.esm.js";
|
|
4
4
|
import { createPropsResolver as k, resolveAppearance as W, createSectionEventHandlerResolver as X, getSchemaByType as Y } from "../../components/dynamic-resolver/index.esm.js";
|
|
5
5
|
import { responseToolbarProps as ee } from "../../components/response-toolbar/index.esm.js";
|
|
6
|
-
import { DgControl as
|
|
7
|
-
import { computed as
|
|
6
|
+
import { DgControl as P, canvasChanged as te, UseTemplateDragAndDropRules as ne, useDragulaCommonRule as oe, FDesignerInnerItem as ie, setPositionOfSelectedComponentBtnGroup as se, useDesignerComponent as re } from "../../components/designer-canvas/index.esm.js";
|
|
7
|
+
import { computed as b, ref as M, createVNode as p, nextTick as ae, defineComponent as le, inject as N, onMounted as ce } from "vue";
|
|
8
8
|
import { BaseControlProperty as de } from "../../components/property-panel/index.esm.js";
|
|
9
|
-
const ue = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/section-toolbar-item.schema.json", fe = "section-toolbar-item", me = "A Farris Toolbar Item Component", he = "object",
|
|
9
|
+
const ue = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/section-toolbar-item.schema.json", fe = "section-toolbar-item", me = "A Farris Toolbar Item Component", he = "object", ye = {
|
|
10
10
|
id: {
|
|
11
11
|
description: "The unique identifier for a Response Toolbar",
|
|
12
12
|
type: "string"
|
|
@@ -74,56 +74,56 @@ const ue = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-
|
|
|
74
74
|
type: "boolean",
|
|
75
75
|
default: !1
|
|
76
76
|
}
|
|
77
|
-
},
|
|
77
|
+
}, be = [
|
|
78
78
|
"id",
|
|
79
79
|
"type",
|
|
80
80
|
"text"
|
|
81
81
|
], ge = {
|
|
82
82
|
onClick: "点击事件"
|
|
83
|
-
},
|
|
83
|
+
}, Ce = {
|
|
84
84
|
$schema: ue,
|
|
85
85
|
$id: pe,
|
|
86
86
|
title: fe,
|
|
87
87
|
description: me,
|
|
88
88
|
type: he,
|
|
89
|
-
properties:
|
|
90
|
-
required:
|
|
89
|
+
properties: ye,
|
|
90
|
+
required: be,
|
|
91
91
|
events: ge
|
|
92
|
-
},
|
|
92
|
+
}, ve = k(_, Ce);
|
|
93
93
|
function Te(t, e, n) {
|
|
94
94
|
return e ? { enableAccordion: n.accordionMode } : { enableAccordion: "" };
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
var
|
|
98
|
-
|
|
96
|
+
function xe(t, e) {
|
|
97
|
+
var r, i;
|
|
98
|
+
const n = {
|
|
99
99
|
buttons: e.buttons,
|
|
100
100
|
buttonPosition: e.position,
|
|
101
|
-
buttonsClass: (n = e.appearance) == null ? void 0 : n.class,
|
|
102
101
|
buttonsVisible: e.visible
|
|
103
102
|
};
|
|
103
|
+
return (r = e.appearance) != null && r.class && (n.buttonsClass = (i = e.appearance) == null ? void 0 : i.class), n;
|
|
104
104
|
}
|
|
105
105
|
const j = /* @__PURE__ */ new Map([
|
|
106
106
|
["appearance", W],
|
|
107
107
|
["expanded", "expandStatus"],
|
|
108
108
|
["enableAccordion", Te],
|
|
109
|
-
["toolbar",
|
|
109
|
+
["toolbar", xe]
|
|
110
110
|
]);
|
|
111
|
-
function
|
|
111
|
+
function Ae(t, e) {
|
|
112
112
|
var l, u;
|
|
113
113
|
if (!(e != null && e.schema))
|
|
114
114
|
return;
|
|
115
|
-
const n = ((u = (l = e.schema) == null ? void 0 : l.appearance) == null ? void 0 : u.class) || "",
|
|
116
|
-
|
|
115
|
+
const n = ((u = (l = e.schema) == null ? void 0 : l.appearance) == null ? void 0 : u.class) || "", r = e.elementRef, i = window.getComputedStyle(r);
|
|
116
|
+
i && i.display === "flex" && !n.includes("f-page-child-fill") && (t.appearance.class += " d-block");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Se(t, e) {
|
|
119
119
|
var f;
|
|
120
|
-
const n = Math.random().toString().slice(2, 6),
|
|
121
|
-
Object.assign(
|
|
120
|
+
const n = Math.random().toString().slice(2, 6), r = e.parentComponentInstance, i = t.getSchemaByType("section");
|
|
121
|
+
Object.assign(i, {
|
|
122
122
|
id: `section-${n}`,
|
|
123
123
|
appearance: {
|
|
124
124
|
class: "f-section-in-mainsubcard"
|
|
125
125
|
},
|
|
126
|
-
mainTitle: e.mainTitle ||
|
|
126
|
+
mainTitle: e.mainTitle || i.mainTitle || "标题"
|
|
127
127
|
});
|
|
128
128
|
const l = t.getSchemaByType("content-container");
|
|
129
129
|
Object.assign(l, {
|
|
@@ -131,23 +131,23 @@ function we(t, e) {
|
|
|
131
131
|
appearance: {
|
|
132
132
|
class: "f-struct-wrapper"
|
|
133
133
|
},
|
|
134
|
-
contents: [
|
|
134
|
+
contents: [i]
|
|
135
135
|
});
|
|
136
|
-
const u =
|
|
136
|
+
const u = r.schema, x = ((f = u.appearance) == null ? void 0 : f.class) || "";
|
|
137
137
|
switch (u && u.type) {
|
|
138
|
-
case
|
|
139
|
-
|
|
138
|
+
case P["splitter-pane"].type: {
|
|
139
|
+
i.appearance.class = "f-section-in-main", x.includes("f-page-child-fill") && (l.appearance.class += " f-struct-wrapper-child", i.fill = !0);
|
|
140
140
|
break;
|
|
141
141
|
}
|
|
142
|
-
case
|
|
143
|
-
u.isLikeCardContainer &&
|
|
142
|
+
case P["content-container"].type:
|
|
143
|
+
u.isLikeCardContainer && x.includes("f-struct-like-card-child-fill") && (l.appearance.class += " f-struct-wrapper-child", i.fill = !0);
|
|
144
144
|
}
|
|
145
|
-
return
|
|
145
|
+
return Ae(l, r), l;
|
|
146
146
|
}
|
|
147
147
|
function q(t, e, n) {
|
|
148
|
-
return n.parentComponentInstance ?
|
|
148
|
+
return n.parentComponentInstance ? Se(t, n) : e;
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const we = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-design.gitee.io/section.schema.json", He = "section", Pe = "A Farris Container Component", $e = "object", Ie = {
|
|
151
151
|
id: {
|
|
152
152
|
description: "The unique identifier for a Section",
|
|
153
153
|
type: "string"
|
|
@@ -243,7 +243,7 @@ const Me = "https://json-schema.org/draft/2020-12/schema", Pe = "https://farris-
|
|
|
243
243
|
type: "string",
|
|
244
244
|
default: ""
|
|
245
245
|
},
|
|
246
|
-
|
|
246
|
+
extendAreaClass: {
|
|
247
247
|
description: "",
|
|
248
248
|
type: "string",
|
|
249
249
|
default: ""
|
|
@@ -326,17 +326,27 @@ const Me = "https://json-schema.org/draft/2020-12/schema", Pe = "https://farris-
|
|
|
326
326
|
description: "",
|
|
327
327
|
type: "function",
|
|
328
328
|
default: null
|
|
329
|
+
},
|
|
330
|
+
extendedAreaHtml: {
|
|
331
|
+
description: "",
|
|
332
|
+
type: "string",
|
|
333
|
+
default: ""
|
|
334
|
+
},
|
|
335
|
+
extendAreaRenderFunction: {
|
|
336
|
+
description: "",
|
|
337
|
+
type: "function",
|
|
338
|
+
default: null
|
|
329
339
|
}
|
|
330
340
|
}, Re = [
|
|
331
341
|
"id",
|
|
332
342
|
"type",
|
|
333
343
|
"contents"
|
|
334
344
|
], G = {
|
|
335
|
-
$schema:
|
|
336
|
-
$id:
|
|
337
|
-
title:
|
|
338
|
-
description:
|
|
339
|
-
type:
|
|
345
|
+
$schema: we,
|
|
346
|
+
$id: Me,
|
|
347
|
+
title: He,
|
|
348
|
+
description: Pe,
|
|
349
|
+
type: $e,
|
|
340
350
|
properties: Ie,
|
|
341
351
|
required: Re
|
|
342
352
|
}, Fe = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-design.gitee.io/section-toolbar.schema.json", De = "section-toolbar", je = "A Farris Toolbar Component", Be = "object", Ee = {
|
|
@@ -398,10 +408,16 @@ const Me = "https://json-schema.org/draft/2020-12/schema", Pe = "https://farris-
|
|
|
398
408
|
z,
|
|
399
409
|
{
|
|
400
410
|
componentId: { type: String, default: "" },
|
|
411
|
+
// 标题模版
|
|
401
412
|
headerTitleHtml: { type: String, default: "" },
|
|
413
|
+
// 头部模版
|
|
402
414
|
headerHtml: { type: String, default: "" },
|
|
415
|
+
// 头部内容区模版
|
|
403
416
|
headerContentHtml: { type: String, default: "" },
|
|
404
|
-
|
|
417
|
+
// 工具栏模版
|
|
418
|
+
toolbarHtml: { type: String, default: "" },
|
|
419
|
+
// 扩展区域模版
|
|
420
|
+
extendedAreaHtml: { type: String, default: "" }
|
|
405
421
|
}
|
|
406
422
|
), Ue = k(
|
|
407
423
|
ee,
|
|
@@ -414,11 +430,11 @@ class Oe extends de {
|
|
|
414
430
|
super(e, n);
|
|
415
431
|
}
|
|
416
432
|
getPropertyConfig(e) {
|
|
417
|
-
const n = this.getBasicPropConfig(e),
|
|
433
|
+
const n = this.getBasicPropConfig(e), r = this.getAppearanceProperties(e), i = this.getBehaviorConfig(e, ""), l = this.getExtendConfig(e), u = this.getHeaderTemplateConfig(e);
|
|
418
434
|
return this.propertyConfig.categories = {
|
|
419
435
|
basic: n,
|
|
420
|
-
appearance:
|
|
421
|
-
behavior:
|
|
436
|
+
appearance: r,
|
|
437
|
+
behavior: i,
|
|
422
438
|
headerTemplate: u,
|
|
423
439
|
extend: l
|
|
424
440
|
}, this.propertyConfig;
|
|
@@ -463,6 +479,14 @@ class Oe extends de {
|
|
|
463
479
|
showHeader: !0
|
|
464
480
|
}
|
|
465
481
|
},
|
|
482
|
+
enableMaximize: {
|
|
483
|
+
title: "启用最大化",
|
|
484
|
+
type: "string",
|
|
485
|
+
description: "是否显示最大化按钮",
|
|
486
|
+
visible: {
|
|
487
|
+
showHeader: !0
|
|
488
|
+
}
|
|
489
|
+
},
|
|
466
490
|
enableAccordion: {
|
|
467
491
|
title: "面板收折",
|
|
468
492
|
type: "enum",
|
|
@@ -481,6 +505,10 @@ class Oe extends de {
|
|
|
481
505
|
{
|
|
482
506
|
key: "default",
|
|
483
507
|
value: "启用默认收折"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
key: "custom",
|
|
511
|
+
value: "启用自定义收折"
|
|
484
512
|
}
|
|
485
513
|
]
|
|
486
514
|
},
|
|
@@ -509,7 +537,7 @@ class Oe extends de {
|
|
|
509
537
|
visible: e.enableAccordion === "default"
|
|
510
538
|
}
|
|
511
539
|
},
|
|
512
|
-
setPropertyRelates(n,
|
|
540
|
+
setPropertyRelates(n, r) {
|
|
513
541
|
if (n)
|
|
514
542
|
switch (n && n.propertyID) {
|
|
515
543
|
case "mainTitle": {
|
|
@@ -517,8 +545,8 @@ class Oe extends de {
|
|
|
517
545
|
break;
|
|
518
546
|
}
|
|
519
547
|
case "showHeader": {
|
|
520
|
-
const
|
|
521
|
-
Array.from(
|
|
548
|
+
const i = document.getElementsByClassName("dgComponentFocused");
|
|
549
|
+
Array.from(i).forEach((l) => l.classList.remove("dgComponentFocused")), te.value++;
|
|
522
550
|
break;
|
|
523
551
|
}
|
|
524
552
|
}
|
|
@@ -530,10 +558,25 @@ class Oe extends de {
|
|
|
530
558
|
title: "扩展",
|
|
531
559
|
description: "",
|
|
532
560
|
properties: {
|
|
561
|
+
extendedAreaHtml: {
|
|
562
|
+
title: "扩展区域模版",
|
|
563
|
+
type: "string",
|
|
564
|
+
description: "为设置标题栏下方的扩展区域设置HTML模板",
|
|
565
|
+
refreshPanelAfterChanged: !0,
|
|
566
|
+
editor: {
|
|
567
|
+
type: "code-editor",
|
|
568
|
+
language: "html"
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
extendAreaClass: {
|
|
572
|
+
title: "扩展区域class",
|
|
573
|
+
type: "string",
|
|
574
|
+
description: "指定扩展区域class样式"
|
|
575
|
+
},
|
|
533
576
|
contentClass: {
|
|
534
|
-
title: "
|
|
577
|
+
title: "主内容区域class",
|
|
535
578
|
type: "string",
|
|
536
|
-
description: "
|
|
579
|
+
description: "指定主要内容区域class样式"
|
|
537
580
|
}
|
|
538
581
|
}
|
|
539
582
|
};
|
|
@@ -554,6 +597,11 @@ class Oe extends de {
|
|
|
554
597
|
language: "html"
|
|
555
598
|
}
|
|
556
599
|
},
|
|
600
|
+
headerClass: {
|
|
601
|
+
title: "标题栏class",
|
|
602
|
+
type: "string",
|
|
603
|
+
description: "指定标题栏整体区域class样式"
|
|
604
|
+
},
|
|
557
605
|
headerTitleHtml: {
|
|
558
606
|
title: "标题模板",
|
|
559
607
|
type: "string",
|
|
@@ -574,6 +622,11 @@ class Oe extends de {
|
|
|
574
622
|
language: "html"
|
|
575
623
|
}
|
|
576
624
|
},
|
|
625
|
+
headerContentClass: {
|
|
626
|
+
title: "内容区域class",
|
|
627
|
+
type: "string",
|
|
628
|
+
description: "指定标题栏内容区域class样式"
|
|
629
|
+
},
|
|
577
630
|
toolbarHtml: {
|
|
578
631
|
title: "工具栏模板",
|
|
579
632
|
type: "string",
|
|
@@ -583,132 +636,138 @@ class Oe extends de {
|
|
|
583
636
|
type: "code-editor",
|
|
584
637
|
language: "html"
|
|
585
638
|
}
|
|
639
|
+
},
|
|
640
|
+
buttonsClass: {
|
|
641
|
+
title: "工具栏class",
|
|
642
|
+
type: "string",
|
|
643
|
+
description: "指定工具栏区域class样式",
|
|
644
|
+
visible: e.toolbarHtml
|
|
586
645
|
}
|
|
587
646
|
}
|
|
588
647
|
};
|
|
589
648
|
}
|
|
590
649
|
}
|
|
591
650
|
function _e(t, e) {
|
|
592
|
-
const n = new ne(),
|
|
593
|
-
function
|
|
594
|
-
return new Oe(o, e).getPropertyConfig(
|
|
651
|
+
const n = new ne(), r = t.schema;
|
|
652
|
+
function i(o) {
|
|
653
|
+
return new Oe(o, e).getPropertyConfig(r);
|
|
595
654
|
}
|
|
596
655
|
function l(o) {
|
|
597
656
|
var d;
|
|
598
|
-
const { componentType:
|
|
599
|
-
return !!(
|
|
657
|
+
const { componentType: s, sourceType: a, sourceElement: c } = o;
|
|
658
|
+
return !!(a === "control" && s === P["filter-bar"].type || a === "move" && s === P["content-container"].type && ((d = c == null ? void 0 : c.className) != null && d.includes("f-filter-container")));
|
|
600
659
|
}
|
|
601
|
-
function u(o,
|
|
660
|
+
function u(o, s) {
|
|
602
661
|
var d, m;
|
|
603
662
|
const c = (e == null ? void 0 : e.schemaService).getTreeGridUdtFields(o);
|
|
604
663
|
if (c) {
|
|
605
|
-
const
|
|
664
|
+
const v = c.find(($) => $.key === s), T = v && v.field;
|
|
606
665
|
if ((m = (d = T == null ? void 0 : T.type) == null ? void 0 : d.name) != null && m.includes("PathHierarchyInfo"))
|
|
607
666
|
return !0;
|
|
608
667
|
}
|
|
609
668
|
}
|
|
610
|
-
function
|
|
611
|
-
var
|
|
669
|
+
function x(o) {
|
|
670
|
+
var $;
|
|
612
671
|
if (!e)
|
|
613
672
|
return !1;
|
|
614
|
-
const
|
|
615
|
-
if (!(
|
|
673
|
+
const s = ($ = r.appearance) == null ? void 0 : $.class, { sourceType: a } = o, { formSchemaUtils: c } = e;
|
|
674
|
+
if (!(s && s.includes("f-section-grid")))
|
|
616
675
|
return !1;
|
|
617
|
-
const m = c.getViewModelIdByComponentId(t.componentInstance.value.belongedComponentId),
|
|
618
|
-
if (
|
|
676
|
+
const m = c.getViewModelIdByComponentId(t.componentInstance.value.belongedComponentId), v = c.getViewModelById(m);
|
|
677
|
+
if (v && v.bindTo !== "/")
|
|
619
678
|
return !1;
|
|
620
|
-
const T = c.selectNode(
|
|
679
|
+
const T = c.selectNode(r, (B) => B.type === "tree-grid");
|
|
621
680
|
if (T && !u(m, T.udtField))
|
|
622
681
|
return !1;
|
|
623
|
-
if (
|
|
682
|
+
if (a === "move")
|
|
624
683
|
return !0;
|
|
625
|
-
if (
|
|
626
|
-
if (
|
|
684
|
+
if (a === "control") {
|
|
685
|
+
if (r.contents && r.contents.find((D) => {
|
|
627
686
|
var R, L;
|
|
628
|
-
return D.type ===
|
|
687
|
+
return D.type === P["content-container"].type && ((L = (R = D.appearance) == null ? void 0 : R.class) == null ? void 0 : L.includes("f-filter-container"));
|
|
629
688
|
}))
|
|
630
689
|
return !1;
|
|
631
690
|
const E = c.getComponentById("root-component");
|
|
632
|
-
if (E && c.selectNode(E, (R) => R.type ===
|
|
691
|
+
if (E && c.selectNode(E, (R) => R.type === P["query-solution"].type))
|
|
633
692
|
return !1;
|
|
634
693
|
}
|
|
635
694
|
return !0;
|
|
636
695
|
}
|
|
637
696
|
function f(o) {
|
|
638
697
|
if (l(o))
|
|
639
|
-
return
|
|
698
|
+
return x(o);
|
|
640
699
|
if (!oe().basalDragulaRuleForContainer(o, e))
|
|
641
700
|
return !1;
|
|
642
|
-
const { canAccept:
|
|
643
|
-
return
|
|
701
|
+
const { canAccept: a } = n.getTemplateRule(t, e);
|
|
702
|
+
return a;
|
|
644
703
|
}
|
|
645
|
-
function
|
|
704
|
+
function S() {
|
|
646
705
|
const { canDelete: o } = n.getTemplateRule(t, e);
|
|
647
706
|
return o;
|
|
648
707
|
}
|
|
649
|
-
function
|
|
708
|
+
function g() {
|
|
650
709
|
const { canMove: o } = n.getTemplateRule(t, e);
|
|
651
710
|
return o;
|
|
652
711
|
}
|
|
653
712
|
function h() {
|
|
654
|
-
const { canMove: o, canDelete:
|
|
655
|
-
return !o && !
|
|
713
|
+
const { canMove: o, canDelete: s } = n.getTemplateRule(t, e);
|
|
714
|
+
return !o && !s;
|
|
656
715
|
}
|
|
657
|
-
function
|
|
716
|
+
function y(o) {
|
|
658
717
|
o && (o.stopPropagation(), o.preventDefault());
|
|
659
|
-
const { schema:
|
|
660
|
-
(!
|
|
661
|
-
const
|
|
662
|
-
|
|
718
|
+
const { schema: s } = t;
|
|
719
|
+
(!s.toolbar || !s.toolbar.buttons) && (s.toolbar = { id: `${s.id}_toolbar`, type: "section-toolbar", buttons: [] });
|
|
720
|
+
const a = Y("section-toolbar-item");
|
|
721
|
+
a.id = `section_toolbar_item_${Math.random().toString().slice(2, 6)}`, s.toolbar.buttons.push(a);
|
|
663
722
|
}
|
|
664
|
-
function
|
|
723
|
+
function C() {
|
|
665
724
|
var d;
|
|
666
|
-
const { schema: o } = t,
|
|
667
|
-
if (o.showHeader === !1 || !
|
|
725
|
+
const { schema: o } = t, s = e == null ? void 0 : e.formSchemaUtils;
|
|
726
|
+
if (o.showHeader === !1 || !s)
|
|
668
727
|
return;
|
|
669
|
-
const
|
|
670
|
-
if (!
|
|
728
|
+
const a = s.selectNode(o, (m) => m.type === P["response-form"].type), c = ((d = o.toolbar) == null ? void 0 : d.buttons) || [];
|
|
729
|
+
if (!a && c.length === 0)
|
|
671
730
|
return [{
|
|
672
731
|
id: "appendToolbar",
|
|
673
732
|
title: "新增按钮",
|
|
674
733
|
icon: "f-icon f-icon-plus-circle text-white",
|
|
675
|
-
onClick: (m) =>
|
|
734
|
+
onClick: (m) => y(m)
|
|
676
735
|
}];
|
|
677
736
|
}
|
|
678
|
-
function
|
|
737
|
+
function A() {
|
|
679
738
|
var c, d;
|
|
680
739
|
if (!e)
|
|
681
740
|
return;
|
|
682
741
|
const o = e.formSchemaUtils.getExpressions();
|
|
683
742
|
if (!o || !o.length)
|
|
684
743
|
return;
|
|
685
|
-
const { schema:
|
|
686
|
-
if (!((d = (c =
|
|
744
|
+
const { schema: s } = t;
|
|
745
|
+
if (!((d = (c = s.toolbar) == null ? void 0 : c.buttons) != null && d.length))
|
|
687
746
|
return;
|
|
688
|
-
const
|
|
689
|
-
m.forEach((
|
|
690
|
-
const T = o.findIndex((
|
|
691
|
-
T > -1 && o.splice(T, 1),
|
|
747
|
+
const a = (m) => {
|
|
748
|
+
m.forEach((v) => {
|
|
749
|
+
const T = o.findIndex(($) => $.target === v.id);
|
|
750
|
+
T > -1 && o.splice(T, 1), v.children && v.children.length && a(v.children);
|
|
692
751
|
});
|
|
693
752
|
};
|
|
694
|
-
s
|
|
753
|
+
a(s.toolbar.buttons);
|
|
695
754
|
}
|
|
696
|
-
function
|
|
697
|
-
|
|
755
|
+
function H() {
|
|
756
|
+
A();
|
|
698
757
|
}
|
|
699
|
-
function
|
|
700
|
-
var o,
|
|
758
|
+
function w() {
|
|
759
|
+
var o, s;
|
|
701
760
|
if (t && e) {
|
|
702
|
-
const { formSchemaUtils:
|
|
761
|
+
const { formSchemaUtils: a } = e, c = a.getControlBasicInfoMap(), { schema: d } = t;
|
|
703
762
|
c.set(d.id, {
|
|
704
763
|
componentTitle: d.mainTitle,
|
|
705
764
|
parentPathName: d.mainTitle
|
|
706
|
-
}), (
|
|
707
|
-
var
|
|
765
|
+
}), (s = (o = d.toolbar) == null ? void 0 : o.buttons) != null && s.length && d.toolbar.buttons.map((m) => {
|
|
766
|
+
var v;
|
|
708
767
|
c.set(m.id, {
|
|
709
768
|
componentTitle: m.text,
|
|
710
769
|
parentPathName: `${d.mainTitle} > ${m.text}`
|
|
711
|
-
}), (
|
|
770
|
+
}), (v = m.children) != null && v.length && m.children.map((T) => {
|
|
712
771
|
c.set(T.id, {
|
|
713
772
|
componentTitle: T.text,
|
|
714
773
|
parentPathName: `${d.mainTitle} > ${T.text}`
|
|
@@ -719,19 +778,19 @@ function _e(t, e) {
|
|
|
719
778
|
}
|
|
720
779
|
return {
|
|
721
780
|
canAccepts: f,
|
|
722
|
-
checkCanDeleteComponent:
|
|
723
|
-
checkCanMoveComponent:
|
|
781
|
+
checkCanDeleteComponent: S,
|
|
782
|
+
checkCanMoveComponent: g,
|
|
724
783
|
hideNestedPaddingInDesginerView: h,
|
|
725
|
-
getPropsConfig:
|
|
726
|
-
getCustomButtons:
|
|
727
|
-
onRemoveComponent:
|
|
728
|
-
setComponentBasicInfoMap:
|
|
784
|
+
getPropsConfig: i,
|
|
785
|
+
getCustomButtons: C,
|
|
786
|
+
onRemoveComponent: H,
|
|
787
|
+
setComponentBasicInfoMap: w
|
|
729
788
|
};
|
|
730
789
|
}
|
|
731
790
|
function Ke(t, e, n) {
|
|
732
|
-
let
|
|
733
|
-
function
|
|
734
|
-
const
|
|
791
|
+
let r;
|
|
792
|
+
function i(f = 1) {
|
|
793
|
+
const S = [
|
|
735
794
|
"body>.f-datagrid-settings-simple-host",
|
|
736
795
|
"body>div",
|
|
737
796
|
"body>farris-dialog>.farris-modal.show",
|
|
@@ -741,48 +800,48 @@ function Ke(t, e, n) {
|
|
|
741
800
|
"body>.popover.show",
|
|
742
801
|
"body>filter-row-panel>.f-datagrid-filter-panel",
|
|
743
802
|
"body>.f-section-maximize"
|
|
744
|
-
],
|
|
745
|
-
const { display:
|
|
746
|
-
return
|
|
747
|
-
}).filter((
|
|
748
|
-
let h = Math.max(...
|
|
803
|
+
], g = Array.from(document.body.querySelectorAll(S.join(","))).filter((y) => y).map((y) => {
|
|
804
|
+
const { display: C, zIndex: A } = window.getComputedStyle(y);
|
|
805
|
+
return C === "none" ? 0 : parseInt(A, 10);
|
|
806
|
+
}).filter((y) => y);
|
|
807
|
+
let h = Math.max(...g);
|
|
749
808
|
return h < 1040 && (h = 1040), h + f;
|
|
750
809
|
}
|
|
751
810
|
function l() {
|
|
752
|
-
|
|
811
|
+
r = t.value.nextElementSibling;
|
|
753
812
|
const f = document && document.querySelector("body");
|
|
754
|
-
f && (f.appendChild(t.value), t.value.style.zIndex =
|
|
813
|
+
f && (f.appendChild(t.value), t.value.style.zIndex = i());
|
|
755
814
|
}
|
|
756
815
|
function u() {
|
|
757
|
-
|
|
816
|
+
r ? e.value.insertBefore(
|
|
758
817
|
t.value,
|
|
759
|
-
|
|
818
|
+
r
|
|
760
819
|
) : e.value.appendChild(t.value), t.value.style.zIndex = null;
|
|
761
820
|
}
|
|
762
|
-
function
|
|
821
|
+
function x() {
|
|
763
822
|
!t || !e.value || (n.value = !n.value, n.value ? l() : u());
|
|
764
823
|
}
|
|
765
|
-
return { onClickMaxMinIcon:
|
|
824
|
+
return { onClickMaxMinIcon: x };
|
|
766
825
|
}
|
|
767
826
|
function V(t, e) {
|
|
768
827
|
var h;
|
|
769
|
-
const n =
|
|
770
|
-
|
|
771
|
-
const l = t.componentId, u = `${l}-toolbar`,
|
|
772
|
-
function f(
|
|
773
|
-
var
|
|
774
|
-
(
|
|
828
|
+
const n = b(() => "f-section-toolbar col-6" + (t.buttonPosition === "inHead" ? " f-toolbar f-section-header--toolbar" : " f-section-content--toolbar") + (t.buttonsClass ? " " + t.buttonsClass : "")), r = M(t.buttons), i = M(e.schema.toolbar);
|
|
829
|
+
i.value && !i.value.type && (i.value.type = "section-toolbar");
|
|
830
|
+
const l = t.componentId, u = `${l}-toolbar`, x = b(() => t.buttonPosition === "inHead" ? "right" : "left");
|
|
831
|
+
function f(y, C, A, H) {
|
|
832
|
+
var w;
|
|
833
|
+
(w = e.setupContext) == null || w.emit("selectionChange", y, C, A, H);
|
|
775
834
|
}
|
|
776
|
-
function
|
|
777
|
-
var
|
|
778
|
-
return (
|
|
835
|
+
function S() {
|
|
836
|
+
var y, C;
|
|
837
|
+
return (C = (y = i.value) == null ? void 0 : y.buttons) != null && C.length ? p("div", {
|
|
779
838
|
class: n.value
|
|
780
839
|
}, [p("div", {
|
|
781
840
|
class: "w-100",
|
|
782
841
|
style: "flex:1"
|
|
783
842
|
}, [p(ie, {
|
|
784
|
-
modelValue:
|
|
785
|
-
"onUpdate:modelValue": (
|
|
843
|
+
modelValue: i.value,
|
|
844
|
+
"onUpdate:modelValue": (A) => i.value = A,
|
|
786
845
|
class: "w-100 position-relative",
|
|
787
846
|
canAdd: !1,
|
|
788
847
|
childType: "section-toolbar-item",
|
|
@@ -794,13 +853,13 @@ function V(t, e) {
|
|
|
794
853
|
}, {
|
|
795
854
|
default: () => [p(Z, {
|
|
796
855
|
customClass: "d-block text-right",
|
|
797
|
-
items:
|
|
798
|
-
alignment:
|
|
856
|
+
items: r.value,
|
|
857
|
+
alignment: x.value,
|
|
799
858
|
componentId: l
|
|
800
859
|
}, null)]
|
|
801
860
|
})])]) : null;
|
|
802
861
|
}
|
|
803
|
-
function
|
|
862
|
+
function g() {
|
|
804
863
|
return p("div", {
|
|
805
864
|
class: n.value
|
|
806
865
|
}, [p("div", {
|
|
@@ -809,72 +868,69 @@ function V(t, e) {
|
|
|
809
868
|
innerHTML: t.toolbarHtml.trim()
|
|
810
869
|
}, null)]);
|
|
811
870
|
}
|
|
812
|
-
return (h = t.toolbarHtml) != null && h.trim() ?
|
|
871
|
+
return (h = t.toolbarHtml) != null && h.trim() ? g() : S();
|
|
813
872
|
}
|
|
814
|
-
function Ze(t, e, n,
|
|
815
|
-
const
|
|
873
|
+
function Ze(t, e, n, r, i, l, u) {
|
|
874
|
+
const x = b(() => t.buttonPosition), {
|
|
816
875
|
onClickMaxMinIcon: f
|
|
817
|
-
} = Ke(
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
});
|
|
823
|
-
function b(s) {
|
|
824
|
-
s.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value, ae(() => {
|
|
876
|
+
} = Ke(r, i, l), S = b(() => t.enableMaximize), g = b(() => t.enableAccordion !== ""), h = b(() => I({
|
|
877
|
+
"f-section-header": !0
|
|
878
|
+
}, t.headerClass));
|
|
879
|
+
function y(a) {
|
|
880
|
+
a.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value, ae(() => {
|
|
825
881
|
se();
|
|
826
882
|
}));
|
|
827
883
|
}
|
|
828
|
-
function
|
|
829
|
-
const
|
|
884
|
+
function C() {
|
|
885
|
+
const a = b(() => ({
|
|
830
886
|
btn: !0,
|
|
831
887
|
"f-btn-collapse-expand": !0,
|
|
832
888
|
"f-btn-mx": !0,
|
|
833
889
|
"f-state-expand": n.value
|
|
834
|
-
})), c =
|
|
890
|
+
})), c = b(() => ({
|
|
835
891
|
"f-icon": !0,
|
|
836
892
|
"f-icon-maximize": !l.value,
|
|
837
893
|
"f-icon-minimize": l.value
|
|
838
894
|
}));
|
|
839
895
|
return p("div", {
|
|
840
896
|
class: "f-max-accordion"
|
|
841
|
-
}, [
|
|
897
|
+
}, [S.value ? p("span", {
|
|
842
898
|
class: c.value,
|
|
843
899
|
onClick: f
|
|
844
|
-
}, null) : "",
|
|
845
|
-
class:
|
|
846
|
-
onClick:
|
|
900
|
+
}, null) : "", g.value ? p("button", {
|
|
901
|
+
class: a.value,
|
|
902
|
+
onClick: y
|
|
847
903
|
}, [p("span", null, [n.value ? t.collapseLabel : t.expandLabel])]) : ""]);
|
|
848
904
|
}
|
|
849
|
-
function
|
|
905
|
+
function A() {
|
|
850
906
|
return p("div", {
|
|
851
907
|
class: "f-title"
|
|
852
908
|
}, [p("h4", {
|
|
853
909
|
class: "f-title-text"
|
|
854
910
|
}, [t.mainTitle]), t.subTitle && p("span", null, [t.subTitle])]);
|
|
855
911
|
}
|
|
856
|
-
function
|
|
857
|
-
const
|
|
912
|
+
function H() {
|
|
913
|
+
const a = b(() => I({
|
|
858
914
|
"f-content": !0
|
|
859
915
|
}, t.headerContentClass));
|
|
860
916
|
return e.slots.headerContent ? p("div", {
|
|
861
|
-
class:
|
|
917
|
+
class: a.value
|
|
862
918
|
}, [e.slots.headerContent()]) : t.headerContentHtml ? p("div", {
|
|
863
|
-
class:
|
|
919
|
+
class: a.value,
|
|
864
920
|
innerHTML: t.headerContentHtml
|
|
865
921
|
}, null) : null;
|
|
866
922
|
}
|
|
867
|
-
function
|
|
923
|
+
function w() {
|
|
868
924
|
return e.slots.headerTitle ? e.slots.headerTitle() : t.headerTitleHtml ? p("div", {
|
|
869
925
|
innerHTML: t.headerTitleHtml
|
|
870
|
-
}, null) :
|
|
926
|
+
}, null) : A();
|
|
871
927
|
}
|
|
872
928
|
function o() {
|
|
873
929
|
return p("div", {
|
|
874
930
|
class: h.value
|
|
875
|
-
}, [
|
|
931
|
+
}, [w(), H(), x.value === "inHead" && V(t, u), (S.value || g.value) && C()]);
|
|
876
932
|
}
|
|
877
|
-
function
|
|
933
|
+
function s() {
|
|
878
934
|
return e.slots.header ? p("div", {
|
|
879
935
|
class: h.value
|
|
880
936
|
}, [e.slots.header()]) : t.headerHtml ? p("div", {
|
|
@@ -882,62 +938,68 @@ function Ze(t, e, n, a, r, l, u) {
|
|
|
882
938
|
innerHTML: t.headerHtml
|
|
883
939
|
}, null) : o();
|
|
884
940
|
}
|
|
885
|
-
return () => t.showHeader &&
|
|
941
|
+
return () => t.showHeader && s();
|
|
886
942
|
}
|
|
887
943
|
const F = /* @__PURE__ */ le({
|
|
888
944
|
name: "FSectionDesign",
|
|
889
945
|
props: U,
|
|
890
946
|
emits: [],
|
|
891
947
|
setup(t, e) {
|
|
892
|
-
const n =
|
|
948
|
+
const n = M(), r = M(), i = M(), l = N("designer-host-service"), u = N("design-item-context"), x = _e(u, l), f = re(n, u, x);
|
|
893
949
|
f.value.styles = "display: inherit;", ce(() => {
|
|
894
950
|
n.value.componentInstance = f;
|
|
895
951
|
}), e.expose(f.value);
|
|
896
|
-
const
|
|
952
|
+
const S = M(t.customClass), g = b(() => t.enableAccordion), h = M(!0), y = b(() => t.buttonPosition), C = M(!1), A = Ze(t, e, h, r, i, C, u), H = b(() => {
|
|
897
953
|
const d = {
|
|
898
954
|
"f-section": !0,
|
|
899
|
-
"f-section-accordion":
|
|
900
|
-
"f-state-collapse":
|
|
901
|
-
"f-section-custom-accordion":
|
|
955
|
+
"f-section-accordion": g.value === "default",
|
|
956
|
+
"f-state-collapse": g.value && !h.value,
|
|
957
|
+
"f-section-custom-accordion": g.value === "custom",
|
|
902
958
|
"f-section-fill": t.fill,
|
|
903
|
-
"f-section-maximize":
|
|
959
|
+
"f-section-maximize": C.value,
|
|
904
960
|
"f-utils-fill": !0,
|
|
905
961
|
"p-0": !0
|
|
906
962
|
};
|
|
907
|
-
return I(d,
|
|
908
|
-
}),
|
|
963
|
+
return I(d, S.value);
|
|
964
|
+
}), w = b(() => I({
|
|
909
965
|
"f-section-content": !0,
|
|
910
966
|
"drag-container": !0
|
|
911
|
-
}, t.contentClass)), o =
|
|
912
|
-
visibility:
|
|
913
|
-
})),
|
|
967
|
+
}, t.contentClass)), o = b(() => ({
|
|
968
|
+
visibility: g.value && !h.value ? "hidden" : "visible"
|
|
969
|
+
})), s = b(() => I({
|
|
914
970
|
"f-section-extend": !0
|
|
915
|
-
},
|
|
916
|
-
function
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
971
|
+
}, t.extendAreaClass));
|
|
972
|
+
function a() {
|
|
973
|
+
if (e.slots.extend)
|
|
974
|
+
return p("div", {
|
|
975
|
+
class: s.value
|
|
976
|
+
}, [e.slots.extend()]);
|
|
977
|
+
if (t.extendedAreaHtml)
|
|
978
|
+
return p("div", {
|
|
979
|
+
class: s.value,
|
|
980
|
+
innerHTML: t.extendedAreaHtml
|
|
981
|
+
}, null);
|
|
920
982
|
}
|
|
921
983
|
function c() {
|
|
922
984
|
return p("div", {
|
|
923
|
-
class:
|
|
985
|
+
class: w.value,
|
|
924
986
|
ref: n,
|
|
925
987
|
"data-dragref": `${u.schema.id}-container`,
|
|
926
988
|
style: o.value
|
|
927
|
-
}, [
|
|
989
|
+
}, [y.value === "inContent" && V(t, u), e.slots.default && e.slots.default()]);
|
|
928
990
|
}
|
|
929
991
|
return () => p("div", {
|
|
930
|
-
class:
|
|
931
|
-
ref:
|
|
992
|
+
class: H.value,
|
|
993
|
+
ref: r,
|
|
932
994
|
style: t.customStyle
|
|
933
|
-
}, [
|
|
995
|
+
}, [A(), a(), c()]);
|
|
934
996
|
}
|
|
935
997
|
});
|
|
936
|
-
F.register = (t, e, n,
|
|
937
|
-
t.section = O, e.section = qe,
|
|
998
|
+
F.register = (t, e, n, r) => {
|
|
999
|
+
t.section = O, e.section = qe, r.section = { eventHandlerResolver: Ge };
|
|
938
1000
|
};
|
|
939
1001
|
F.registerDesigner = (t, e, n) => {
|
|
940
|
-
t.section = F, e.section = Ve, e["section-toolbar-item"] =
|
|
1002
|
+
t.section = F, e.section = Ve, e["section-toolbar-item"] = ve, t["section-toolbar"] = Q, e["section-toolbar"] = Ue;
|
|
941
1003
|
};
|
|
942
1004
|
const ot = K(F);
|
|
943
1005
|
export {
|