@farris/ui-vue 1.2.8 → 1.2.9
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 +129 -129
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +166 -157
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.esm.js +343 -325
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +338 -338
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +182 -182
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +326 -317
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +118 -118
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.esm.js +338 -325
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +62 -62
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +382 -270
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.esm.js +1018 -895
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +285 -212
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +4761 -4319
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.esm.js +2901 -2664
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.esm.js +1502 -1488
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +27 -27
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +241 -241
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.esm.js +1074 -885
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +99 -94
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +577 -522
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +70 -70
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +2938 -2619
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +4766 -4325
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1231 -1215
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +373 -373
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +398 -394
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +268 -268
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +234 -161
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2288 -2048
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +5776 -5305
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5496 -5036
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +383 -322
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +273 -269
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +292 -283
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1008 -925
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +98 -98
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +949 -847
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +464 -403
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +226 -226
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.esm.js +1110 -1092
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +520 -513
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +1714 -1575
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +67 -67
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +298 -289
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +195 -190
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +112 -112
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.esm.js +902 -877
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +874 -778
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4594 -4289
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +126 -126
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +645 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +120 -120
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +421 -348
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +219 -219
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +232 -222
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.esm.js +1823 -1744
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +399 -401
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +164 -164
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +220 -215
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.esm.js +693 -666
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +422 -413
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +4799 -4358
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.esm.js +2448 -2215
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +164 -164
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +143 -143
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +410 -331
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +901 -901
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +12305 -11403
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -6
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
var Pe = Object.defineProperty;
|
|
2
2
|
var Re = (s, e, o) => e in s ? Pe(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
|
|
3
|
-
var
|
|
4
|
-
import { computed as W, getCurrentInstance as
|
|
3
|
+
var B = (s, e, o) => Re(s, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
+
import { computed as W, getCurrentInstance as ue, createVNode as w, ref as S, defineComponent as X, onMounted as z, onUnmounted as ne, watch as H, inject as L, createTextVNode as fe, provide as Ee, onBeforeUnmount as Se, withModifiers as Me } from "vue";
|
|
5
5
|
import { cloneDeep as ke } from "lodash-es";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { getCustomClass as J, withInstall as Ae } from "../common/index.esm.js";
|
|
7
|
+
import { useDesignerInnerComponent as ge } from "../designer-canvas/index.esm.js";
|
|
8
8
|
class me {
|
|
9
9
|
constructor(e) {
|
|
10
10
|
/** 工具栏项标识 */
|
|
11
|
-
|
|
11
|
+
B(this, "id", "");
|
|
12
12
|
/** 工具栏项自定义样式 */
|
|
13
|
-
|
|
13
|
+
B(this, "class", "btn-secondary");
|
|
14
14
|
/** 图标 */
|
|
15
|
-
|
|
15
|
+
B(this, "icon", "");
|
|
16
16
|
/** 所属分组 */
|
|
17
|
-
|
|
17
|
+
B(this, "groupId", "");
|
|
18
18
|
/** 收藏顺序 */
|
|
19
|
-
|
|
19
|
+
B(this, "order", -1);
|
|
20
20
|
/** 是否作为下拉菜单的顶层按钮 */
|
|
21
|
-
|
|
21
|
+
B(this, "asDropDownTop", !1);
|
|
22
22
|
/** 文本 */
|
|
23
|
-
|
|
23
|
+
B(this, "text", "");
|
|
24
24
|
/** 是否可见 */
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
B(this, "visible", !0);
|
|
26
|
+
B(this, "responsed", !1);
|
|
27
27
|
/** 是否启用提示消息 */
|
|
28
|
-
|
|
28
|
+
B(this, "tipsEnable", !1);
|
|
29
29
|
/** 提示消息内容 */
|
|
30
|
-
|
|
30
|
+
B(this, "tipsText", "");
|
|
31
31
|
/** 记录宽度 */
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
B(this, "width", 0);
|
|
33
|
+
B(this, "onClick", () => {
|
|
34
34
|
});
|
|
35
|
-
|
|
35
|
+
B(this, "options");
|
|
36
36
|
this.options = e;
|
|
37
37
|
const o = [
|
|
38
38
|
"id",
|
|
@@ -67,48 +67,48 @@ class me {
|
|
|
67
67
|
return this.visible ? this.width : !1;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
class
|
|
70
|
+
class Be extends me {
|
|
71
71
|
constructor(e) {
|
|
72
72
|
super(e);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function he() {
|
|
76
76
|
function s(e) {
|
|
77
77
|
const o = [];
|
|
78
|
-
return e.reduce((p,
|
|
78
|
+
return e.reduce((p, u) => (u.children && u.children.length > 0 ? p.push(new G(u)) : p.push(new Be(u)), p), o), o;
|
|
79
79
|
}
|
|
80
80
|
return { buildResponseToolbarItems: s };
|
|
81
81
|
}
|
|
82
|
-
const { buildResponseToolbarItems: Oe } =
|
|
82
|
+
const { buildResponseToolbarItems: Oe } = he();
|
|
83
83
|
class G extends me {
|
|
84
84
|
constructor(o) {
|
|
85
85
|
super(o);
|
|
86
|
-
|
|
86
|
+
B(this, "placement", "");
|
|
87
87
|
// 下拉位置
|
|
88
88
|
/** 下拉class */
|
|
89
|
-
|
|
89
|
+
B(this, "dropdownClass", "");
|
|
90
90
|
/** 下拉菜单class */
|
|
91
|
-
|
|
91
|
+
B(this, "menuClass", "");
|
|
92
92
|
/** 是否用分开的下拉按钮 */
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
B(this, "split", !1);
|
|
94
|
+
B(this, "children", []);
|
|
95
|
+
B(this, "expanded", !1);
|
|
96
96
|
const p = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
|
|
97
|
-
Object.keys(o).filter((
|
|
98
|
-
this[
|
|
97
|
+
Object.keys(o).filter((u) => p.indexOf(u) > -1).forEach((u) => {
|
|
98
|
+
this[u] = o[u];
|
|
99
99
|
}), o.children && o.children.length && (this.children = Oe(o.children));
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
class
|
|
102
|
+
class Lt {
|
|
103
103
|
constructor(e, o) {
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
B(this, "id");
|
|
105
|
+
B(this, "name");
|
|
106
106
|
/** 记录元素的Id */
|
|
107
|
-
|
|
107
|
+
B(this, "presetId", []);
|
|
108
108
|
/** 记录转变为下拉时元素的位置 */
|
|
109
|
-
|
|
109
|
+
B(this, "responsedIndex", []);
|
|
110
110
|
/** 记录宽度 */
|
|
111
|
-
|
|
111
|
+
B(this, "width");
|
|
112
112
|
this.id = e, this.name = o, this.width = 0;
|
|
113
113
|
}
|
|
114
114
|
// 设置宽度
|
|
@@ -144,36 +144,36 @@ class Nt {
|
|
|
144
144
|
return this.presetId.length === this.responsedIndex.length;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
const
|
|
148
|
-
function
|
|
149
|
-
const { properties: e, title: o } = s, p = Object.keys(e).reduce((
|
|
150
|
-
return p.id = `${o}-${Date.now()}
|
|
147
|
+
const oe = {}, be = {};
|
|
148
|
+
function se(s) {
|
|
149
|
+
const { properties: e, title: o, ignore: p } = s, u = p && Array.isArray(p), v = Object.keys(e).reduce((h, D) => ((!u || !p.find((I) => I == D)) && (h[D] = e[D].type === "object" && e[D].properties ? se(e[D]) : ke(e[D].default)), h), {});
|
|
150
|
+
return (!u || !p.find((h) => h == "id")) && (v.id = `${o}-${Date.now()}`), v;
|
|
151
151
|
}
|
|
152
|
-
function q(s, e = {}) {
|
|
153
|
-
const
|
|
154
|
-
if (
|
|
155
|
-
let
|
|
156
|
-
const
|
|
157
|
-
return
|
|
152
|
+
function q(s, e = {}, o) {
|
|
153
|
+
const p = oe[s];
|
|
154
|
+
if (p) {
|
|
155
|
+
let u = se(p);
|
|
156
|
+
const v = be[s];
|
|
157
|
+
return u = v ? v({ getSchemaByType: q }, u, e, o) : u, u;
|
|
158
158
|
}
|
|
159
159
|
return null;
|
|
160
160
|
}
|
|
161
161
|
function _e(s, e) {
|
|
162
|
-
const o =
|
|
163
|
-
return Object.keys(s).reduce((p,
|
|
162
|
+
const o = se(e);
|
|
163
|
+
return Object.keys(s).reduce((p, u) => (p[u] && typeof p[u] == "object" ? Object.assign(p[u], s[u]) : p[u] = s[u], p), o), o;
|
|
164
164
|
}
|
|
165
165
|
function Ne(s, e) {
|
|
166
|
-
return Object.keys(s).filter((p) => s[p] != null).reduce((p,
|
|
167
|
-
if (e.has(
|
|
168
|
-
const
|
|
169
|
-
if (typeof
|
|
170
|
-
p[
|
|
166
|
+
return Object.keys(s).filter((p) => s[p] != null).reduce((p, u) => {
|
|
167
|
+
if (e.has(u)) {
|
|
168
|
+
const v = e.get(u);
|
|
169
|
+
if (typeof v == "string")
|
|
170
|
+
p[v] = s[u];
|
|
171
171
|
else {
|
|
172
|
-
const
|
|
173
|
-
Object.assign(p,
|
|
172
|
+
const h = v(u, s[u], s);
|
|
173
|
+
Object.assign(p, h);
|
|
174
174
|
}
|
|
175
175
|
} else
|
|
176
|
-
p[
|
|
176
|
+
p[u] = s[u];
|
|
177
177
|
return p;
|
|
178
178
|
}, {});
|
|
179
179
|
}
|
|
@@ -182,60 +182,60 @@ function $e(s, e, o = /* @__PURE__ */ new Map()) {
|
|
|
182
182
|
return Ne(p, o);
|
|
183
183
|
}
|
|
184
184
|
function Fe(s = {}) {
|
|
185
|
-
function e(g,
|
|
185
|
+
function e(g, C, l, i) {
|
|
186
186
|
if (typeof l == "number")
|
|
187
|
-
return
|
|
187
|
+
return i[g].length === l;
|
|
188
188
|
if (typeof l == "object") {
|
|
189
|
-
const
|
|
190
|
-
if (
|
|
191
|
-
return Number(
|
|
192
|
-
if (
|
|
193
|
-
return Number(
|
|
194
|
-
if (
|
|
195
|
-
return Number(
|
|
189
|
+
const f = Object.keys(l)[0], c = l[f];
|
|
190
|
+
if (f === "not")
|
|
191
|
+
return Number(i[g].length) !== Number(c);
|
|
192
|
+
if (f === "moreThan")
|
|
193
|
+
return Number(i[g].length) >= Number(c);
|
|
194
|
+
if (f === "lessThan")
|
|
195
|
+
return Number(i[g].length) <= Number(c);
|
|
196
196
|
}
|
|
197
197
|
return !1;
|
|
198
198
|
}
|
|
199
|
-
function o(g,
|
|
200
|
-
return
|
|
199
|
+
function o(g, C, l, i) {
|
|
200
|
+
return i[g] && i[g].propertyValue && String(i[g].propertyValue.value) === String(l);
|
|
201
201
|
}
|
|
202
202
|
const p = /* @__PURE__ */ new Map([
|
|
203
203
|
["length", e],
|
|
204
204
|
["getProperty", o]
|
|
205
205
|
]);
|
|
206
|
-
Object.keys(s).reduce((g,
|
|
207
|
-
function
|
|
206
|
+
Object.keys(s).reduce((g, C) => (g.set(C, s[C]), g), p);
|
|
207
|
+
function u(g, C) {
|
|
208
208
|
const l = g;
|
|
209
|
-
return typeof
|
|
210
|
-
if (
|
|
211
|
-
return { target: l, operator: "length", param: null, value:
|
|
212
|
-
const
|
|
213
|
-
return { target: l, operator: "getProperty", param:
|
|
209
|
+
return typeof C == "number" ? [{ target: l, operator: "length", param: null, value: Number(C) }] : typeof C == "boolean" ? [{ target: l, operator: "getProperty", param: g, value: !!C }] : typeof C == "object" ? Object.keys(C).map((i) => {
|
|
210
|
+
if (i === "length")
|
|
211
|
+
return { target: l, operator: "length", param: null, value: C[i] };
|
|
212
|
+
const f = i, c = C[i];
|
|
213
|
+
return { target: l, operator: "getProperty", param: f, value: c };
|
|
214
214
|
}) : [];
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
return Object.keys(g).reduce((l,
|
|
218
|
-
const
|
|
219
|
-
return l.push(...
|
|
216
|
+
function v(g) {
|
|
217
|
+
return Object.keys(g).reduce((l, i) => {
|
|
218
|
+
const f = u(i, g[i]);
|
|
219
|
+
return l.push(...f), l;
|
|
220
220
|
}, []);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function h(g, C) {
|
|
223
223
|
if (p.has(g.operator)) {
|
|
224
224
|
const l = p.get(g.operator);
|
|
225
|
-
return l && l(g.target, g.param, g.value,
|
|
225
|
+
return l && l(g.target, g.param, g.value, C) || !1;
|
|
226
226
|
}
|
|
227
227
|
return !1;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
return
|
|
229
|
+
function D(g, C) {
|
|
230
|
+
return v(g).reduce((f, c) => f && h(c, C), !0);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
const l = Object.keys(g),
|
|
234
|
-
return
|
|
232
|
+
function I(g, C) {
|
|
233
|
+
const l = Object.keys(g), i = l.includes("allOf"), f = l.includes("anyOf"), c = i || f, T = (c ? g[c ? i ? "allOf" : "anyOf" : "allOf"] : [g]).map((P) => D(P, C));
|
|
234
|
+
return i ? !T.includes(!1) : T.includes(!0);
|
|
235
235
|
}
|
|
236
|
-
return { parseValueSchema:
|
|
236
|
+
return { parseValueSchema: I };
|
|
237
237
|
}
|
|
238
|
-
const
|
|
238
|
+
const re = {
|
|
239
239
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
240
240
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
241
241
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -273,21 +273,30 @@ const se = {
|
|
|
273
273
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
274
274
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
275
275
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
276
|
-
},
|
|
276
|
+
}, ye = {}, Le = {};
|
|
277
277
|
Fe();
|
|
278
|
-
function
|
|
279
|
-
return
|
|
280
|
-
const
|
|
281
|
-
return Object.assign(
|
|
278
|
+
function ve(s, e, o = /* @__PURE__ */ new Map(), p = (h, D, I) => D, u = {}, v = (h) => h) {
|
|
279
|
+
return oe[e.title] = e, be[e.title] = p, ye[e.title] = u, Le[e.title] = v, (h = {}) => {
|
|
280
|
+
const D = $e(h, e, o), I = Object.keys(s).reduce((g, C) => (g[C] = s[C].default, g), {});
|
|
281
|
+
return Object.assign(I, D);
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
function Ve(s, e) {
|
|
285
|
+
return { customClass: e.class, customStyle: e.style };
|
|
286
|
+
}
|
|
287
|
+
const We = /* @__PURE__ */ new Map([
|
|
288
|
+
["buttons", "items"],
|
|
289
|
+
["appearance", Ve]
|
|
290
|
+
]), Ue = /* @__PURE__ */ new Map([
|
|
291
|
+
["appearance", qe]
|
|
286
292
|
]);
|
|
293
|
+
function qe(s, e) {
|
|
294
|
+
return { class: e.class, style: e.style };
|
|
295
|
+
}
|
|
287
296
|
function Ce(s, e, o) {
|
|
288
297
|
return e;
|
|
289
298
|
}
|
|
290
|
-
const
|
|
299
|
+
const ze = "https://json-schema.org/draft/2020-12/schema", Ge = "https://farris-design.gitee.io/response-toolbar.schema.json", He = "response-toolbar", Je = "A Farris Toolbar Component", Qe = "object", Xe = {
|
|
291
300
|
id: {
|
|
292
301
|
description: "The unique identifier for a Response Toolbar",
|
|
293
302
|
type: "string"
|
|
@@ -320,19 +329,19 @@ const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
320
329
|
type: "array",
|
|
321
330
|
default: []
|
|
322
331
|
}
|
|
323
|
-
},
|
|
332
|
+
}, Ye = [
|
|
324
333
|
"id",
|
|
325
334
|
"type",
|
|
326
335
|
"buttons"
|
|
327
|
-
],
|
|
328
|
-
$schema:
|
|
329
|
-
$id:
|
|
330
|
-
title:
|
|
331
|
-
description:
|
|
332
|
-
type:
|
|
333
|
-
properties:
|
|
334
|
-
required:
|
|
335
|
-
},
|
|
336
|
+
], Ze = {
|
|
337
|
+
$schema: ze,
|
|
338
|
+
$id: Ge,
|
|
339
|
+
title: He,
|
|
340
|
+
description: Je,
|
|
341
|
+
type: Qe,
|
|
342
|
+
properties: Xe,
|
|
343
|
+
required: Ye
|
|
344
|
+
}, Ke = "https://json-schema.org/draft/2020-12/schema", et = "https://farris-design.gitee.io/response-toolbar-item.schema.json", tt = "response-toolbar-item", nt = "A Farris Toolbar Item Component", ot = "object", st = {
|
|
336
345
|
id: {
|
|
337
346
|
description: "The unique identifier for a Response Toolbar",
|
|
338
347
|
type: "string"
|
|
@@ -347,7 +356,8 @@ const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
347
356
|
type: "object",
|
|
348
357
|
properties: {
|
|
349
358
|
class: {
|
|
350
|
-
type: "string"
|
|
359
|
+
type: "string",
|
|
360
|
+
default: "btn-primary"
|
|
351
361
|
},
|
|
352
362
|
style: {
|
|
353
363
|
type: "string"
|
|
@@ -355,6 +365,11 @@ const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
355
365
|
},
|
|
356
366
|
default: {}
|
|
357
367
|
},
|
|
368
|
+
alignment: {
|
|
369
|
+
description: "The alignment of Response Toolbar Button.",
|
|
370
|
+
type: "string",
|
|
371
|
+
default: "right"
|
|
372
|
+
},
|
|
358
373
|
text: {
|
|
359
374
|
description: "The items of Response Toolbar.",
|
|
360
375
|
type: "string",
|
|
@@ -370,19 +385,19 @@ const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
370
385
|
type: "string",
|
|
371
386
|
default: ""
|
|
372
387
|
}
|
|
373
|
-
},
|
|
388
|
+
}, rt = [
|
|
374
389
|
"id",
|
|
375
390
|
"type",
|
|
376
391
|
"text"
|
|
377
|
-
],
|
|
378
|
-
$schema:
|
|
379
|
-
$id:
|
|
380
|
-
title:
|
|
381
|
-
description:
|
|
382
|
-
type:
|
|
383
|
-
properties:
|
|
384
|
-
required:
|
|
385
|
-
},
|
|
392
|
+
], te = {
|
|
393
|
+
$schema: Ke,
|
|
394
|
+
$id: et,
|
|
395
|
+
title: tt,
|
|
396
|
+
description: nt,
|
|
397
|
+
type: ot,
|
|
398
|
+
properties: st,
|
|
399
|
+
required: rt
|
|
400
|
+
}, it = "response-toolbar-item", ct = "A Farris Container Component", at = "object", lt = {
|
|
386
401
|
basic: {
|
|
387
402
|
title: "基本信息",
|
|
388
403
|
description: "Basic Infomation",
|
|
@@ -415,12 +430,12 @@ const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
415
430
|
}
|
|
416
431
|
}
|
|
417
432
|
}
|
|
418
|
-
},
|
|
419
|
-
title:
|
|
420
|
-
description:
|
|
421
|
-
type:
|
|
422
|
-
categories:
|
|
423
|
-
},
|
|
433
|
+
}, pe = {
|
|
434
|
+
title: it,
|
|
435
|
+
description: ct,
|
|
436
|
+
type: at,
|
|
437
|
+
categories: lt
|
|
438
|
+
}, ie = {
|
|
424
439
|
/** 组件自定义样式 */
|
|
425
440
|
customClass: { type: String, default: "" },
|
|
426
441
|
alignment: { Type: String, default: "right" },
|
|
@@ -429,26 +444,28 @@ const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
429
444
|
default: []
|
|
430
445
|
}
|
|
431
446
|
};
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
const
|
|
447
|
+
oe[te.title] = te;
|
|
448
|
+
ye[pe.title] = pe;
|
|
449
|
+
const pt = Object.assign({}, ie, {
|
|
435
450
|
componentId: { type: String, default: "" }
|
|
436
|
-
}),
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
451
|
+
}), ce = ve(
|
|
452
|
+
ie,
|
|
453
|
+
Ze,
|
|
454
|
+
We,
|
|
440
455
|
Ce
|
|
441
456
|
), we = {
|
|
442
457
|
id: { type: String, default: "" },
|
|
443
458
|
items: { type: Object, default: {} },
|
|
459
|
+
class: { type: String, default: "" },
|
|
444
460
|
text: { type: String, default: "" },
|
|
445
461
|
disabled: { type: Boolean, default: !1 },
|
|
446
462
|
icon: { type: String, default: "" },
|
|
447
|
-
componentId: { type: String, default: "" }
|
|
448
|
-
|
|
463
|
+
componentId: { type: String, default: "" },
|
|
464
|
+
alignment: { Type: String, default: "right" }
|
|
465
|
+
}, dt = ve(
|
|
449
466
|
we,
|
|
450
|
-
|
|
451
|
-
|
|
467
|
+
te,
|
|
468
|
+
Ue,
|
|
452
469
|
Ce
|
|
453
470
|
);
|
|
454
471
|
function xe() {
|
|
@@ -457,8 +474,8 @@ function xe() {
|
|
|
457
474
|
"f-icon": !0
|
|
458
475
|
};
|
|
459
476
|
if (o.icon) {
|
|
460
|
-
const
|
|
461
|
-
|
|
477
|
+
const u = o.icon.trim().split(" ");
|
|
478
|
+
u && u.length && u.reduce((v, h) => (v[h] = !0, v), p);
|
|
462
479
|
}
|
|
463
480
|
return p;
|
|
464
481
|
}
|
|
@@ -467,279 +484,272 @@ function xe() {
|
|
|
467
484
|
}
|
|
468
485
|
return { iconClass: s, shouldShowIcon: e };
|
|
469
486
|
}
|
|
470
|
-
function
|
|
487
|
+
function ut(s) {
|
|
471
488
|
function e(l) {
|
|
472
|
-
const
|
|
489
|
+
const i = {
|
|
473
490
|
"dropdown-menu": !0
|
|
474
491
|
};
|
|
475
492
|
if (l.class) {
|
|
476
|
-
const
|
|
477
|
-
|
|
493
|
+
const f = l.menuClass.split(" ");
|
|
494
|
+
f && f.length && f.reduce((c, b) => (c[b] = !0, c), i);
|
|
478
495
|
}
|
|
479
|
-
return
|
|
496
|
+
return i;
|
|
480
497
|
}
|
|
481
498
|
function o(l) {
|
|
482
|
-
const
|
|
499
|
+
const i = {
|
|
483
500
|
disabled: !l.enable,
|
|
484
501
|
"dropdown-submenu": !0,
|
|
485
502
|
"f-rt-dropdown": !0
|
|
486
|
-
},
|
|
487
|
-
return
|
|
503
|
+
}, f = l.dropdownClass.split(" ");
|
|
504
|
+
return f && f.length && f.reduce((c, b) => (c[b] = !0, c), i), i;
|
|
488
505
|
}
|
|
489
506
|
function p(l) {
|
|
490
|
-
const
|
|
507
|
+
const i = {
|
|
491
508
|
disabled: !l.enable,
|
|
492
509
|
"dropdown-item": !0,
|
|
493
510
|
"f-rt-btn": !0
|
|
494
|
-
},
|
|
495
|
-
return
|
|
496
|
-
}
|
|
497
|
-
let
|
|
498
|
-
const
|
|
499
|
-
function
|
|
500
|
-
var
|
|
501
|
-
((
|
|
502
|
-
const
|
|
503
|
-
if (
|
|
504
|
-
const
|
|
505
|
-
|
|
511
|
+
}, f = l.class.split(" ");
|
|
512
|
+
return f && f.length && f.reduce((c, b) => (c[b] = !0, c), i), i;
|
|
513
|
+
}
|
|
514
|
+
let u;
|
|
515
|
+
const v = /* @__PURE__ */ new Map();
|
|
516
|
+
function h(l, i, f) {
|
|
517
|
+
var b;
|
|
518
|
+
((b = l.target) == null ? void 0 : b.id) === i.id && l.stopPropagation();
|
|
519
|
+
const c = f ? f.id : "__top_item__";
|
|
520
|
+
if (i.children && i.children.length && (i.expanded = !i.expanded, i.expanded ? v.set(c, i) : v.delete(c)), v.has(c) && v.get(c) !== i) {
|
|
521
|
+
const y = v.get(c);
|
|
522
|
+
y && (y.expanded = !1);
|
|
506
523
|
}
|
|
507
524
|
}
|
|
508
|
-
function
|
|
509
|
-
document.body.click(),
|
|
525
|
+
function D(l, i) {
|
|
526
|
+
document.body.click(), i.enable && i.onClick(l, i.id);
|
|
510
527
|
}
|
|
511
|
-
function
|
|
512
|
-
return l.children.map((
|
|
513
|
-
class: o(
|
|
514
|
-
id:
|
|
515
|
-
onClick: (
|
|
528
|
+
function I(l) {
|
|
529
|
+
return l.children.map((i) => i.children && i.children.length ? w("li", {
|
|
530
|
+
class: o(i),
|
|
531
|
+
id: i.id,
|
|
532
|
+
onClick: (f) => i.enable && h(f, i, l)
|
|
516
533
|
}, [w("span", {
|
|
517
|
-
id:
|
|
518
|
-
class: p(
|
|
519
|
-
onMouseover: (
|
|
520
|
-
}, [
|
|
534
|
+
id: i.id,
|
|
535
|
+
class: p(i),
|
|
536
|
+
onMouseover: (f) => i.enable && h(f, i, l)
|
|
537
|
+
}, [i.text, w("i", {
|
|
521
538
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
522
539
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
523
|
-
}, null)]),
|
|
524
|
-
class: p(
|
|
525
|
-
id:
|
|
526
|
-
onClick: (
|
|
527
|
-
onMouseover: (
|
|
528
|
-
}, [s.shouldShowIcon(
|
|
529
|
-
class: s.iconClass(
|
|
530
|
-
}, null),
|
|
531
|
-
}
|
|
532
|
-
function g(l,
|
|
533
|
-
const
|
|
540
|
+
}, null)]), u(i, i)]) : w("li", {
|
|
541
|
+
class: p(i),
|
|
542
|
+
id: i.id,
|
|
543
|
+
onClick: (f) => D(f, i),
|
|
544
|
+
onMouseover: (f) => i.enable && h(f, i, l)
|
|
545
|
+
}, [s.shouldShowIcon(i) && w("i", {
|
|
546
|
+
class: s.iconClass(i)
|
|
547
|
+
}, null), i.text]));
|
|
548
|
+
}
|
|
549
|
+
function g(l, i, f) {
|
|
550
|
+
const c = {
|
|
534
551
|
display: l.expanded ? "block" : "none",
|
|
535
552
|
position: "fixed",
|
|
536
553
|
maxWidth: "300px",
|
|
537
554
|
width: "auto",
|
|
538
555
|
minWidth: "120px"
|
|
539
|
-
},
|
|
540
|
-
if (
|
|
556
|
+
}, b = document.getElementsByTagName("body")[0].getClientRects()[0].width, y = i, T = y == null ? void 0 : y.getClientRects();
|
|
557
|
+
if (y && T && T.length) {
|
|
541
558
|
const {
|
|
542
559
|
top: O,
|
|
543
560
|
width: P,
|
|
544
|
-
left:
|
|
561
|
+
left: k,
|
|
545
562
|
right: N,
|
|
546
563
|
height: j
|
|
547
|
-
} = T[0],
|
|
548
|
-
|
|
549
|
-
const
|
|
550
|
-
if (
|
|
551
|
-
|
|
552
|
-
const a =
|
|
553
|
-
if (
|
|
554
|
-
|
|
555
|
-
const n = Math.ceil(P +
|
|
556
|
-
|
|
564
|
+
} = T[0], m = Math.ceil(j + O);
|
|
565
|
+
c.top = `${m}px`, c.left = `${k}px`;
|
|
566
|
+
const R = l.id + "_menu", A = i ? i.querySelector("#" + R) : null;
|
|
567
|
+
if (A) {
|
|
568
|
+
c.display === "block" && (A.style.display = "block");
|
|
569
|
+
const a = A.getBoundingClientRect();
|
|
570
|
+
if (f) {
|
|
571
|
+
c.top = `${O - 6}px`;
|
|
572
|
+
const n = Math.ceil(P + k);
|
|
573
|
+
c.left = `${n}px`;
|
|
557
574
|
}
|
|
558
|
-
|
|
575
|
+
b - k - P < a.width && (c.left = `${(f ? k : N) - a.width}px`);
|
|
559
576
|
}
|
|
560
577
|
}
|
|
561
|
-
return
|
|
578
|
+
return c;
|
|
562
579
|
}
|
|
563
|
-
|
|
564
|
-
var
|
|
565
|
-
const
|
|
580
|
+
u = function(l, i) {
|
|
581
|
+
var y, T;
|
|
582
|
+
const f = ue(), c = i ? i.id : l.id, b = (T = (y = f == null ? void 0 : f.exposed) == null ? void 0 : y.elementRef.value) == null ? void 0 : T.querySelector("#" + c);
|
|
566
583
|
return w("ul", {
|
|
567
584
|
class: e(l),
|
|
568
|
-
style: g(l,
|
|
585
|
+
style: g(l, b, i),
|
|
569
586
|
id: l.id + "_menu"
|
|
570
|
-
}, [
|
|
587
|
+
}, [I(l)]);
|
|
571
588
|
};
|
|
572
|
-
function
|
|
573
|
-
|
|
589
|
+
function C() {
|
|
590
|
+
v.forEach((l) => {
|
|
574
591
|
l.expanded = !1;
|
|
575
|
-
}),
|
|
592
|
+
}), v.clear();
|
|
576
593
|
}
|
|
577
594
|
return {
|
|
578
|
-
renderDropdownMenu:
|
|
579
|
-
clearAllDropDownMenu:
|
|
595
|
+
renderDropdownMenu: u,
|
|
596
|
+
clearAllDropDownMenu: C
|
|
580
597
|
};
|
|
581
598
|
}
|
|
582
|
-
function
|
|
599
|
+
function ft(s, e) {
|
|
583
600
|
const o = S(s.alignment), {
|
|
584
601
|
renderDropdownMenu: p,
|
|
585
|
-
clearAllDropDownMenu:
|
|
586
|
-
} =
|
|
587
|
-
function
|
|
602
|
+
clearAllDropDownMenu: u
|
|
603
|
+
} = ut(e);
|
|
604
|
+
function v(C) {
|
|
588
605
|
const l = {
|
|
589
606
|
"btn-group": !0,
|
|
590
607
|
"f-rt-dropdown": !0,
|
|
591
608
|
"f-btn-ml": o.value === "right",
|
|
592
609
|
"f-btn-mr": o.value === "left"
|
|
593
|
-
},
|
|
594
|
-
return
|
|
610
|
+
}, i = C.dropdownClass.split(" ");
|
|
611
|
+
return i && i.length && i.reduce((f, c) => (f[c] = !0, f), l), l;
|
|
595
612
|
}
|
|
596
|
-
function C
|
|
613
|
+
function h(C) {
|
|
597
614
|
const l = {
|
|
598
615
|
btn: !0,
|
|
599
|
-
disabled: !
|
|
616
|
+
disabled: !C.enable,
|
|
600
617
|
"f-rt-btn": !0,
|
|
601
|
-
"btn-icontext": !!(
|
|
618
|
+
"btn-icontext": !!(C.icon && C.icon.trim())
|
|
602
619
|
};
|
|
603
|
-
if (
|
|
604
|
-
const
|
|
605
|
-
|
|
620
|
+
if (C.class) {
|
|
621
|
+
const i = C.class.split(" ");
|
|
622
|
+
i && i.length && i.reduce((f, c) => (f[c] = !0, f), l);
|
|
606
623
|
}
|
|
607
624
|
return l;
|
|
608
625
|
}
|
|
609
|
-
function
|
|
610
|
-
|
|
611
|
-
const
|
|
612
|
-
document.body.click(), l.expanded = !
|
|
626
|
+
function D(C, l) {
|
|
627
|
+
C.stopPropagation();
|
|
628
|
+
const i = l.expanded;
|
|
629
|
+
document.body.click(), l.expanded = !i;
|
|
613
630
|
}
|
|
614
|
-
function
|
|
631
|
+
function I(C) {
|
|
615
632
|
return w("div", {
|
|
616
|
-
id:
|
|
617
|
-
class:
|
|
633
|
+
id: C.id,
|
|
634
|
+
class: v(C)
|
|
618
635
|
}, [w("div", {
|
|
619
|
-
class: C
|
|
636
|
+
class: h(C),
|
|
620
637
|
style: "display: flex;padding-right: 0.1rem;border-top-right-radius: 6px;border-bottom-right-radius: 6px",
|
|
621
|
-
onClick: (l) =>
|
|
622
|
-
}, [e.shouldShowIcon(
|
|
623
|
-
class: e.iconClass(
|
|
624
|
-
}, null), w("span", null, [
|
|
638
|
+
onClick: (l) => C.enable && D(l, C)
|
|
639
|
+
}, [e.shouldShowIcon(C) && w("i", {
|
|
640
|
+
class: e.iconClass(C)
|
|
641
|
+
}, null), w("span", null, [C.text]), w("i", {
|
|
625
642
|
class: "f-icon f-icon-arrow-chevron-down",
|
|
626
643
|
style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
|
|
627
|
-
}, null)]), p(
|
|
644
|
+
}, null)]), p(C)]);
|
|
628
645
|
}
|
|
629
646
|
function g() {
|
|
630
|
-
|
|
647
|
+
u();
|
|
631
648
|
}
|
|
632
649
|
return {
|
|
633
|
-
renderToolbarDropdown:
|
|
650
|
+
renderToolbarDropdown: I,
|
|
634
651
|
clearAllDropDown: g
|
|
635
652
|
};
|
|
636
653
|
}
|
|
637
654
|
const {
|
|
638
|
-
buildResponseToolbarItems:
|
|
639
|
-
} =
|
|
655
|
+
buildResponseToolbarItems: de
|
|
656
|
+
} = he(), Q = /* @__PURE__ */ X({
|
|
640
657
|
name: "FResponseToolbar",
|
|
641
|
-
props:
|
|
658
|
+
props: ie,
|
|
642
659
|
emits: ["click"],
|
|
643
660
|
setup(s, e) {
|
|
644
|
-
const o = S(
|
|
661
|
+
const o = S(de(s.items)), p = S(), u = S(), v = S(), h = S(s.alignment), D = {
|
|
645
662
|
id: "__more_buttons__",
|
|
646
663
|
text: "更多"
|
|
647
|
-
},
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
};
|
|
653
|
-
if (s.customClass) {
|
|
654
|
-
const I = s.customClass.split(" ");
|
|
655
|
-
I && I.length && I.reduce((E, a) => (E[a] = !0, E), b);
|
|
656
|
-
}
|
|
657
|
-
return b;
|
|
658
|
-
}), c = W(() => ({
|
|
664
|
+
}, I = S(new G(D)), g = xe(), C = W(() => I.value.children.length > 0), l = W(() => J({
|
|
665
|
+
"f-toolbar": !0,
|
|
666
|
+
"f-response-toolbar": !0,
|
|
667
|
+
"position-relative": !0
|
|
668
|
+
}, s.customClass)), i = W(() => ({
|
|
659
669
|
"d-flex": !0,
|
|
660
670
|
"flex-nowrap": !0,
|
|
661
|
-
"justify-content-end":
|
|
662
|
-
"justify-content-start":
|
|
671
|
+
"justify-content-end": h.value === "right",
|
|
672
|
+
"justify-content-start": h.value === "left"
|
|
663
673
|
})), {
|
|
664
|
-
renderToolbarDropdown:
|
|
665
|
-
clearAllDropDown:
|
|
666
|
-
} =
|
|
667
|
-
function
|
|
668
|
-
o.value.filter((
|
|
669
|
-
|
|
670
|
-
}),
|
|
674
|
+
renderToolbarDropdown: f,
|
|
675
|
+
clearAllDropDown: c
|
|
676
|
+
} = ft(s, g);
|
|
677
|
+
function b() {
|
|
678
|
+
o.value.filter((m) => m.children && m.children.length > 0).forEach((m) => {
|
|
679
|
+
m.expanded = !1;
|
|
680
|
+
}), I.value.expanded = !1, c();
|
|
671
681
|
}
|
|
672
|
-
function
|
|
673
|
-
const
|
|
682
|
+
function y(m) {
|
|
683
|
+
const R = {
|
|
674
684
|
btn: !0,
|
|
675
685
|
"f-rt-btn": !0,
|
|
676
|
-
"f-btn-ml":
|
|
677
|
-
"f-btn-mr":
|
|
678
|
-
"btn-icontext": !!(
|
|
686
|
+
"f-btn-ml": h.value === "right",
|
|
687
|
+
"f-btn-mr": h.value === "left",
|
|
688
|
+
"btn-icontext": !!(m.icon && m.icon.trim())
|
|
679
689
|
};
|
|
680
|
-
if (
|
|
681
|
-
const
|
|
682
|
-
|
|
690
|
+
if (m.class) {
|
|
691
|
+
const A = m.class.split(" ");
|
|
692
|
+
A && A.length && A.reduce((a, n) => (a[n] = !0, a), R);
|
|
683
693
|
}
|
|
684
|
-
return
|
|
694
|
+
return R;
|
|
685
695
|
}
|
|
686
|
-
function T(
|
|
687
|
-
document.body.click(),
|
|
696
|
+
function T(m, R) {
|
|
697
|
+
document.body.click(), R.onClick(m, R.id), e.emit("click", m, R.id);
|
|
688
698
|
}
|
|
689
|
-
function O(
|
|
699
|
+
function O(m) {
|
|
690
700
|
return w("button", {
|
|
691
701
|
type: "button",
|
|
692
|
-
class:
|
|
693
|
-
id:
|
|
694
|
-
disabled: !
|
|
695
|
-
onClick: (
|
|
696
|
-
}, [g.shouldShowIcon(
|
|
697
|
-
class: g.iconClass(
|
|
698
|
-
}, null),
|
|
702
|
+
class: y(m),
|
|
703
|
+
id: m.id,
|
|
704
|
+
disabled: !m.enable,
|
|
705
|
+
onClick: (R) => T(R, m)
|
|
706
|
+
}, [g.shouldShowIcon(m) && w("i", {
|
|
707
|
+
class: g.iconClass(m)
|
|
708
|
+
}, null), m.text]);
|
|
699
709
|
}
|
|
700
|
-
const P = /* @__PURE__ */ new Map(),
|
|
701
|
-
function N(
|
|
702
|
-
const
|
|
703
|
-
let
|
|
704
|
-
const a = Array.from(
|
|
710
|
+
const P = /* @__PURE__ */ new Map(), k = [];
|
|
711
|
+
function N(m) {
|
|
712
|
+
const R = v.value;
|
|
713
|
+
let A = m;
|
|
714
|
+
const a = Array.from(R.children), n = a[a.length - 1].id === "__more_buttons__" ? a[a.length - 1] : null;
|
|
705
715
|
if (n) {
|
|
706
716
|
const x = n.computedStyleMap().get("margin-left"), M = n.computedStyleMap().get("margin-right"), F = (x ? x.value : 0) + n.getBoundingClientRect().width + (M ? M.value : 0);
|
|
707
|
-
|
|
717
|
+
A -= F;
|
|
708
718
|
}
|
|
709
719
|
const t = a.filter((x) => x.id !== "__more_buttons__");
|
|
710
720
|
for (const x of t) {
|
|
711
721
|
const M = x.computedStyleMap().get("margin-left"), F = x.computedStyleMap().get("margin-right"), _ = (M ? M.value : 0) + x.getBoundingClientRect().width + (F ? F.value : 0);
|
|
712
|
-
|
|
722
|
+
A < _ ? (P.set(x.id, !0), k.push({
|
|
713
723
|
id: x.id,
|
|
714
724
|
width: _
|
|
715
|
-
})) :
|
|
725
|
+
})) : A -= _;
|
|
716
726
|
}
|
|
717
|
-
if (
|
|
718
|
-
for (let x =
|
|
719
|
-
const M =
|
|
720
|
-
if (
|
|
721
|
-
|
|
727
|
+
if (k.length)
|
|
728
|
+
for (let x = k.length - 1; x >= 0; x--) {
|
|
729
|
+
const M = k[x].width;
|
|
730
|
+
if (A >= M)
|
|
731
|
+
A -= M, P.delete(k[x].id), k.pop();
|
|
722
732
|
else
|
|
723
733
|
break;
|
|
724
734
|
}
|
|
725
|
-
const r = Object.assign({},
|
|
735
|
+
const r = Object.assign({}, I.value);
|
|
726
736
|
r.children = [];
|
|
727
|
-
const
|
|
728
|
-
|
|
737
|
+
const d = new G(r), E = o.value.reduce((x, M) => (P.has(M.id) && d.children.push(M), M.visible = !P.has(M.id), x.push(M), x), []);
|
|
738
|
+
I.value = d, o.value = E;
|
|
729
739
|
}
|
|
730
|
-
const j = new ResizeObserver((
|
|
731
|
-
if (
|
|
732
|
-
const
|
|
733
|
-
(
|
|
740
|
+
const j = new ResizeObserver((m) => {
|
|
741
|
+
if (m.length) {
|
|
742
|
+
const A = m[0].contentRect.width, n = v.value.getBoundingClientRect().width;
|
|
743
|
+
(A < n || k.length) && (N(A), b());
|
|
734
744
|
}
|
|
735
745
|
});
|
|
736
746
|
return z(() => {
|
|
737
|
-
const
|
|
738
|
-
j.observe(
|
|
739
|
-
}),
|
|
740
|
-
j.disconnect(), document.body.removeEventListener("click",
|
|
747
|
+
const m = u.value;
|
|
748
|
+
j.observe(m), document.body.addEventListener("click", b), document.body.addEventListener("wheel", b);
|
|
749
|
+
}), ne(() => {
|
|
750
|
+
j.disconnect(), document.body.removeEventListener("click", b), document.body.removeEventListener("wheel", b);
|
|
741
751
|
}), H(() => s.items, () => {
|
|
742
|
-
o.value =
|
|
752
|
+
o.value = de(s.items);
|
|
743
753
|
}, {
|
|
744
754
|
deep: !0
|
|
745
755
|
}), e.expose({
|
|
@@ -748,40 +758,40 @@ const {
|
|
|
748
758
|
class: l.value,
|
|
749
759
|
ref: p
|
|
750
760
|
}, [w("div", {
|
|
751
|
-
ref:
|
|
752
|
-
class:
|
|
761
|
+
ref: u,
|
|
762
|
+
class: i.value
|
|
753
763
|
}, [w("div", {
|
|
754
|
-
ref:
|
|
764
|
+
ref: v,
|
|
755
765
|
class: "d-inline-block f-response-content",
|
|
756
766
|
style: "white-space: nowrap;"
|
|
757
|
-
}, [o.value.filter((
|
|
767
|
+
}, [o.value.filter((m) => m.visible).map((m) => m.children && m.children.length > 0 ? f(m) : O(m)), C.value && f(I.value)])])]);
|
|
758
768
|
}
|
|
759
769
|
});
|
|
760
|
-
function
|
|
770
|
+
function gt(s, e) {
|
|
761
771
|
const o = L("design-item-context"), p = L("toolbar-item-handler", () => {
|
|
762
772
|
});
|
|
763
|
-
function
|
|
773
|
+
function u() {
|
|
764
774
|
p && p();
|
|
765
775
|
}
|
|
766
|
-
function
|
|
776
|
+
function v(n) {
|
|
767
777
|
const t = {
|
|
768
778
|
"dropdown-menu": !0
|
|
769
779
|
};
|
|
770
780
|
if (n.class) {
|
|
771
781
|
const r = n.menuClass.split(" ");
|
|
772
|
-
r && r.length && r.reduce((
|
|
782
|
+
r && r.length && r.reduce((d, E) => (d[E] = !0, d), t);
|
|
773
783
|
}
|
|
774
784
|
return t;
|
|
775
785
|
}
|
|
776
|
-
function
|
|
786
|
+
function h(n) {
|
|
777
787
|
const t = {
|
|
778
788
|
disabled: !n.enable,
|
|
779
789
|
"dropdown-submenu": !0,
|
|
780
790
|
"f-rt-dropdown": !0
|
|
781
791
|
}, r = n.dropdownClass.split(" ");
|
|
782
|
-
return r && r.length && r.reduce((
|
|
792
|
+
return r && r.length && r.reduce((d, E) => (d[E] = !0, d), t), t;
|
|
783
793
|
}
|
|
784
|
-
function
|
|
794
|
+
function D(n) {
|
|
785
795
|
const t = {
|
|
786
796
|
disabled: !n.enable,
|
|
787
797
|
"dropdown-item": !0,
|
|
@@ -789,31 +799,31 @@ function pt(s, e) {
|
|
|
789
799
|
"position-relative": !0,
|
|
790
800
|
"farris-component": !0
|
|
791
801
|
}, r = n.class.split(" ");
|
|
792
|
-
return r && r.length && r.reduce((
|
|
802
|
+
return r && r.length && r.reduce((d, E) => (d[E] = !0, d), t), t;
|
|
793
803
|
}
|
|
794
|
-
let
|
|
804
|
+
let I;
|
|
795
805
|
const g = /* @__PURE__ */ new Map();
|
|
796
|
-
function
|
|
797
|
-
var
|
|
798
|
-
((
|
|
799
|
-
const
|
|
800
|
-
if (t.children && t.children.length && (t.expanded = !t.expanded, t.expanded ? g.set(
|
|
801
|
-
const x = g.get(
|
|
806
|
+
function C(n, t, r) {
|
|
807
|
+
var E;
|
|
808
|
+
((E = n.target) == null ? void 0 : E.id) === t.id && n.stopPropagation();
|
|
809
|
+
const d = r ? r.id : "__top_item__";
|
|
810
|
+
if (t.children && t.children.length && (t.expanded = !t.expanded, t.expanded ? g.set(d, t) : g.delete(d)), g.has(d) && g.get(d) !== t) {
|
|
811
|
+
const x = g.get(d);
|
|
802
812
|
x && (x.expanded = !1);
|
|
803
813
|
}
|
|
804
814
|
}
|
|
805
815
|
function l(n) {
|
|
806
816
|
n && (n.stopPropagation(), n.preventDefault());
|
|
807
817
|
}
|
|
808
|
-
function
|
|
818
|
+
function i() {
|
|
809
819
|
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((t) => t.classList.remove("dgComponentFocused"));
|
|
810
820
|
const n = document.getElementsByClassName("dgComponentSelected");
|
|
811
821
|
Array.from(n).forEach((t) => t.classList.remove("dgComponentSelected"));
|
|
812
822
|
}
|
|
813
|
-
function
|
|
823
|
+
function f(n) {
|
|
814
824
|
n.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
|
|
815
825
|
}
|
|
816
|
-
function
|
|
826
|
+
function c(n) {
|
|
817
827
|
const {
|
|
818
828
|
buttons: t = []
|
|
819
829
|
} = o.schema;
|
|
@@ -821,35 +831,35 @@ function pt(s, e) {
|
|
|
821
831
|
t.forEach((x) => {
|
|
822
832
|
r = r.concat(x.children || []);
|
|
823
833
|
});
|
|
824
|
-
const
|
|
834
|
+
const d = r.findIndex((x) => x.id === n), E = d === -1 ? null : r[d];
|
|
825
835
|
return {
|
|
826
|
-
index:
|
|
827
|
-
item:
|
|
836
|
+
index: d,
|
|
837
|
+
item: E
|
|
828
838
|
};
|
|
829
839
|
}
|
|
830
|
-
function
|
|
840
|
+
function b(n) {
|
|
831
841
|
const {
|
|
832
842
|
buttons: t = []
|
|
833
|
-
} = o.schema, r = t.findIndex((
|
|
843
|
+
} = o.schema, r = t.findIndex((E) => E.id === n), d = r === -1 ? null : t[r];
|
|
834
844
|
return {
|
|
835
845
|
index: r,
|
|
836
|
-
item:
|
|
846
|
+
item: d
|
|
837
847
|
};
|
|
838
848
|
}
|
|
839
|
-
function
|
|
840
|
-
var
|
|
849
|
+
function y(n) {
|
|
850
|
+
var d;
|
|
841
851
|
o.schema;
|
|
842
852
|
const {
|
|
843
853
|
index: t,
|
|
844
854
|
item: r
|
|
845
|
-
} =
|
|
846
|
-
(
|
|
855
|
+
} = c(n);
|
|
856
|
+
(d = o == null ? void 0 : o.setupContext) == null || d.emit("selectionChange", r == null ? void 0 : r.type, r);
|
|
847
857
|
}
|
|
848
858
|
const T = function(n) {
|
|
849
859
|
const {
|
|
850
860
|
componentType: t
|
|
851
|
-
} = n, r = q(t, n),
|
|
852
|
-
return r && !r.id && r.type === t && (r.id = `${
|
|
861
|
+
} = n, r = q(t, n), d = t.toLowerCase().replace("-", "_");
|
|
862
|
+
return r && !r.id && r.type === t && (r.id = `${d}_${Math.random().toString().slice(2, 6)}`), r;
|
|
853
863
|
}, O = function() {
|
|
854
864
|
const n = {
|
|
855
865
|
componentType: "response-toolbar-item",
|
|
@@ -859,60 +869,60 @@ function pt(s, e) {
|
|
|
859
869
|
return T(n);
|
|
860
870
|
};
|
|
861
871
|
function P(n, t) {
|
|
862
|
-
l(n),
|
|
872
|
+
l(n), i(), f(n), y(t.id);
|
|
863
873
|
}
|
|
864
|
-
function
|
|
874
|
+
function k(n, t, r) {
|
|
865
875
|
l(n);
|
|
866
|
-
const
|
|
876
|
+
const d = t.id, E = r && r.id, {
|
|
867
877
|
buttons: x = []
|
|
868
878
|
} = o.schema;
|
|
869
|
-
if (!
|
|
879
|
+
if (!E)
|
|
870
880
|
return;
|
|
871
881
|
const {
|
|
872
882
|
index: M
|
|
873
|
-
} =
|
|
883
|
+
} = b(E);
|
|
874
884
|
if (M === -1)
|
|
875
885
|
return;
|
|
876
886
|
const {
|
|
877
887
|
index: F
|
|
878
|
-
} =
|
|
879
|
-
F !== -1 && (x[M].children.splice(F, 1),
|
|
888
|
+
} = c(d);
|
|
889
|
+
F !== -1 && (x[M].children.splice(F, 1), u());
|
|
880
890
|
}
|
|
881
891
|
function N(n, t, r) {
|
|
882
892
|
l(n);
|
|
883
|
-
const
|
|
884
|
-
buttons:
|
|
893
|
+
const d = r && r.id, {
|
|
894
|
+
buttons: E = []
|
|
885
895
|
} = o.schema;
|
|
886
|
-
if (!
|
|
896
|
+
if (!d)
|
|
887
897
|
return;
|
|
888
898
|
const {
|
|
889
899
|
index: x
|
|
890
|
-
} =
|
|
900
|
+
} = b(d);
|
|
891
901
|
if (x === -1)
|
|
892
902
|
return;
|
|
893
903
|
const M = O(), F = Object.assign({}, M, {
|
|
894
904
|
text: t.text
|
|
895
905
|
});
|
|
896
|
-
|
|
906
|
+
E[x].children.push(F), u();
|
|
897
907
|
}
|
|
898
908
|
function j(n, t, r) {
|
|
899
909
|
l(n);
|
|
900
|
-
const
|
|
901
|
-
buttons:
|
|
910
|
+
const d = r && r.id, {
|
|
911
|
+
buttons: E = []
|
|
902
912
|
} = o.schema;
|
|
903
|
-
if (!
|
|
913
|
+
if (!d)
|
|
904
914
|
return;
|
|
905
915
|
const {
|
|
906
916
|
index: x
|
|
907
|
-
} =
|
|
917
|
+
} = b(d);
|
|
908
918
|
if (x === -1)
|
|
909
919
|
return;
|
|
910
920
|
const M = O(), F = Object.assign({}, M, {
|
|
911
921
|
text: "按钮"
|
|
912
922
|
});
|
|
913
|
-
|
|
923
|
+
E[x].children.push(F), u();
|
|
914
924
|
}
|
|
915
|
-
function
|
|
925
|
+
function m(n, t) {
|
|
916
926
|
return w("div", {
|
|
917
927
|
class: "component-btn-group"
|
|
918
928
|
}, [w("div", null, [w("div", {
|
|
@@ -921,7 +931,7 @@ function pt(s, e) {
|
|
|
921
931
|
title: "删除",
|
|
922
932
|
ref: "removeButton",
|
|
923
933
|
style: "position:static;",
|
|
924
|
-
onClick: (r) =>
|
|
934
|
+
onClick: (r) => k(r, n, t)
|
|
925
935
|
}, [w("i", {
|
|
926
936
|
class: "f-icon f-icon-yxs_delete"
|
|
927
937
|
}, null)]), w("div", {
|
|
@@ -944,36 +954,36 @@ function pt(s, e) {
|
|
|
944
954
|
class: "f-icon f-icon-plus-circle text-white mr-1"
|
|
945
955
|
}, null), w("span", {
|
|
946
956
|
style: "font-size:13px;margin:auto"
|
|
947
|
-
}, [
|
|
957
|
+
}, [fe("新增同级")])])])]);
|
|
948
958
|
}
|
|
949
|
-
function
|
|
959
|
+
function R(n) {
|
|
950
960
|
return n.children.map((t) => t.children && t.children.length ? w("li", {
|
|
951
|
-
class:
|
|
961
|
+
class: h(t),
|
|
952
962
|
id: t.id,
|
|
953
|
-
onClick: (r) => t.enable &&
|
|
963
|
+
onClick: (r) => t.enable && C(r, t, n)
|
|
954
964
|
}, [w("span", {
|
|
955
965
|
id: t.id,
|
|
956
|
-
class:
|
|
957
|
-
onMouseover: (r) => t.enable &&
|
|
966
|
+
class: D(t),
|
|
967
|
+
onMouseover: (r) => t.enable && C(r, t, n)
|
|
958
968
|
}, [t.text, w("i", {
|
|
959
969
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
960
970
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
961
|
-
}, null)]),
|
|
962
|
-
class:
|
|
971
|
+
}, null)]), I(t, t)]) : w("li", {
|
|
972
|
+
class: D(t),
|
|
963
973
|
id: t.id,
|
|
964
974
|
onClick: (r) => P(r, t)
|
|
965
|
-
}, [
|
|
975
|
+
}, [m(t, n), s.shouldShowIcon(t) && w("i", {
|
|
966
976
|
class: s.iconClass(t)
|
|
967
977
|
}, null), t.text]));
|
|
968
978
|
}
|
|
969
|
-
function
|
|
970
|
-
const
|
|
979
|
+
function A(n, t, r) {
|
|
980
|
+
const d = {
|
|
971
981
|
display: n.expanded ? "block" : "none",
|
|
972
982
|
position: "fixed",
|
|
973
983
|
maxWidth: "300px",
|
|
974
984
|
width: "auto",
|
|
975
985
|
minWidth: "120px"
|
|
976
|
-
},
|
|
986
|
+
}, E = document.getElementsByTagName("body")[0].getClientRects()[0].width, x = t, M = x == null ? void 0 : x.getClientRects();
|
|
977
987
|
if (x && M && M.length) {
|
|
978
988
|
const {
|
|
979
989
|
top: F,
|
|
@@ -981,30 +991,30 @@ function pt(s, e) {
|
|
|
981
991
|
left: $,
|
|
982
992
|
right: V,
|
|
983
993
|
height: U
|
|
984
|
-
} = M[0],
|
|
985
|
-
|
|
986
|
-
const
|
|
987
|
-
if (
|
|
988
|
-
|
|
989
|
-
const
|
|
994
|
+
} = M[0], Y = Math.ceil(U + F);
|
|
995
|
+
d.top = `${Y}px`, d.left = `${$}px`;
|
|
996
|
+
const Ie = n.id + "_menu", Z = t ? t.querySelector("#" + Ie) : null;
|
|
997
|
+
if (Z) {
|
|
998
|
+
d.display === "block" && (Z.style.display = "block");
|
|
999
|
+
const le = Z.getBoundingClientRect();
|
|
990
1000
|
if (r) {
|
|
991
|
-
|
|
992
|
-
const
|
|
993
|
-
|
|
1001
|
+
d.top = `${F - 6}px`;
|
|
1002
|
+
const De = Math.ceil(_ + $);
|
|
1003
|
+
d.left = `${De}px`;
|
|
994
1004
|
}
|
|
995
|
-
|
|
1005
|
+
E - $ - _ < le.width && (d.left = `${(r ? $ : V) - le.width}px`);
|
|
996
1006
|
}
|
|
997
1007
|
}
|
|
998
|
-
return
|
|
1008
|
+
return d;
|
|
999
1009
|
}
|
|
1000
|
-
|
|
1010
|
+
I = function(n, t) {
|
|
1001
1011
|
var x, M;
|
|
1002
|
-
const r =
|
|
1012
|
+
const r = ue(), d = t ? t.id : n.id, E = (M = (x = r == null ? void 0 : r.exposed) == null ? void 0 : x.elementRef.value) == null ? void 0 : M.querySelector("#" + d);
|
|
1003
1013
|
return w("ul", {
|
|
1004
|
-
class:
|
|
1005
|
-
style:
|
|
1014
|
+
class: v(n),
|
|
1015
|
+
style: A(n, E, t),
|
|
1006
1016
|
id: n.id + "_menu"
|
|
1007
|
-
}, [
|
|
1017
|
+
}, [R(n)]);
|
|
1008
1018
|
};
|
|
1009
1019
|
function a() {
|
|
1010
1020
|
g.forEach((n) => {
|
|
@@ -1012,18 +1022,18 @@ function pt(s, e) {
|
|
|
1012
1022
|
}), g.clear();
|
|
1013
1023
|
}
|
|
1014
1024
|
return {
|
|
1015
|
-
renderDropdownMenu:
|
|
1025
|
+
renderDropdownMenu: I,
|
|
1016
1026
|
clearAllDropDownMenu: a
|
|
1017
1027
|
};
|
|
1018
1028
|
}
|
|
1019
|
-
function
|
|
1029
|
+
function mt(s, e, o) {
|
|
1020
1030
|
const p = S(s.alignment), {
|
|
1021
|
-
renderDropdownMenu:
|
|
1022
|
-
clearAllDropDownMenu:
|
|
1023
|
-
} =
|
|
1031
|
+
renderDropdownMenu: u,
|
|
1032
|
+
clearAllDropDownMenu: v
|
|
1033
|
+
} = gt(e, o), h = L("design-item-context"), D = L("toolbar-item-handler", () => {
|
|
1024
1034
|
});
|
|
1025
|
-
function
|
|
1026
|
-
|
|
1035
|
+
function I() {
|
|
1036
|
+
D && D();
|
|
1027
1037
|
}
|
|
1028
1038
|
function g(a) {
|
|
1029
1039
|
const n = {
|
|
@@ -1032,9 +1042,9 @@ function dt(s, e, o) {
|
|
|
1032
1042
|
"f-btn-ml": p.value === "right",
|
|
1033
1043
|
"f-btn-mr": p.value === "left"
|
|
1034
1044
|
}, t = a.dropdownClass.split(" ");
|
|
1035
|
-
return t && t.length && t.reduce((r,
|
|
1045
|
+
return t && t.length && t.reduce((r, d) => (r[d] = !0, r), n), n;
|
|
1036
1046
|
}
|
|
1037
|
-
function
|
|
1047
|
+
function C(a) {
|
|
1038
1048
|
const n = {
|
|
1039
1049
|
btn: !0,
|
|
1040
1050
|
disabled: !a.enable,
|
|
@@ -1045,66 +1055,66 @@ function dt(s, e, o) {
|
|
|
1045
1055
|
};
|
|
1046
1056
|
if (a.class) {
|
|
1047
1057
|
const t = a.class.split(" ");
|
|
1048
|
-
t && t.length && t.reduce((r,
|
|
1058
|
+
t && t.length && t.reduce((r, d) => (r[d] = !0, r), n);
|
|
1049
1059
|
}
|
|
1050
1060
|
return n;
|
|
1051
1061
|
}
|
|
1052
1062
|
function l(a) {
|
|
1053
1063
|
a && (a.stopPropagation(), a.preventDefault());
|
|
1054
1064
|
}
|
|
1055
|
-
function
|
|
1065
|
+
function i(a, n) {
|
|
1056
1066
|
l(a);
|
|
1057
1067
|
const t = n.expanded;
|
|
1058
1068
|
document.body.click(), n.expanded = !t;
|
|
1059
1069
|
}
|
|
1060
|
-
const
|
|
1070
|
+
const f = function(a) {
|
|
1061
1071
|
const {
|
|
1062
1072
|
componentType: n
|
|
1063
1073
|
} = a, t = q(n, a), r = n.toLowerCase().replace("-", "_");
|
|
1064
1074
|
return t && !t.id && t.type === n && (t.id = `${r}_${Math.random().toString().slice(2, 6)}`), t;
|
|
1065
|
-
},
|
|
1075
|
+
}, c = function() {
|
|
1066
1076
|
const a = {
|
|
1067
1077
|
componentType: "response-toolbar-item",
|
|
1068
1078
|
parentComponentInstance: o.value,
|
|
1069
1079
|
targetPosition: -1
|
|
1070
1080
|
};
|
|
1071
|
-
return
|
|
1081
|
+
return f(a);
|
|
1072
1082
|
};
|
|
1073
|
-
function
|
|
1074
|
-
const n =
|
|
1083
|
+
function b(a) {
|
|
1084
|
+
const n = h.schema.buttons || h.schema.contents, t = n == null ? void 0 : n.findIndex((d) => d.id === a), r = t === -1 ? null : n[t];
|
|
1075
1085
|
return {
|
|
1076
1086
|
index: t,
|
|
1077
1087
|
toolbarItem: r
|
|
1078
1088
|
};
|
|
1079
1089
|
}
|
|
1080
|
-
function
|
|
1090
|
+
function y(a, n) {
|
|
1081
1091
|
var M;
|
|
1082
1092
|
const {
|
|
1083
1093
|
index: t,
|
|
1084
1094
|
toolbarItem: r
|
|
1085
|
-
} =
|
|
1095
|
+
} = b(n);
|
|
1086
1096
|
if (t === -1)
|
|
1087
1097
|
return;
|
|
1088
|
-
const
|
|
1089
|
-
text:
|
|
1098
|
+
const d = r.text || "按钮", E = c(), x = Object.assign({}, E, {
|
|
1099
|
+
text: d
|
|
1090
1100
|
});
|
|
1091
|
-
(M =
|
|
1101
|
+
(M = h.schema.buttons) == null || M.push(x), I();
|
|
1092
1102
|
}
|
|
1093
1103
|
function T(a, n) {
|
|
1094
1104
|
const {
|
|
1095
1105
|
index: t,
|
|
1096
1106
|
toolbarItem: r
|
|
1097
|
-
} =
|
|
1107
|
+
} = b(n);
|
|
1098
1108
|
if (t === -1)
|
|
1099
1109
|
return;
|
|
1100
|
-
const
|
|
1101
|
-
text:
|
|
1102
|
-
}), M =
|
|
1103
|
-
M.push(x),
|
|
1110
|
+
const d = r.text || "按钮", E = c(), x = Object.assign({}, E, {
|
|
1111
|
+
text: d
|
|
1112
|
+
}), M = h.schema.buttons[t].children || [];
|
|
1113
|
+
M.push(x), h.schema.buttons[t].children = M, I();
|
|
1104
1114
|
}
|
|
1105
1115
|
function O(a, n) {
|
|
1106
|
-
const t =
|
|
1107
|
-
r !== -1 && (t.splice(r, 1),
|
|
1116
|
+
const t = h.schema.buttons || h.schema.contents, r = t == null ? void 0 : t.findIndex((d) => d.id === n);
|
|
1117
|
+
r !== -1 && (t.splice(r, 1), I());
|
|
1108
1118
|
}
|
|
1109
1119
|
function P(a) {
|
|
1110
1120
|
return w("div", {
|
|
@@ -1124,7 +1134,7 @@ function dt(s, e, o) {
|
|
|
1124
1134
|
title: "复制",
|
|
1125
1135
|
ref: "copyButton",
|
|
1126
1136
|
style: "position:static;",
|
|
1127
|
-
onClick: (n) =>
|
|
1137
|
+
onClick: (n) => y(n, a)
|
|
1128
1138
|
}, [w("i", {
|
|
1129
1139
|
class: "f-icon f-icon-yxs_copy"
|
|
1130
1140
|
}, null)]), w("div", {
|
|
@@ -1138,9 +1148,9 @@ function dt(s, e, o) {
|
|
|
1138
1148
|
class: "f-icon f-icon-plus-circle text-white mr-1"
|
|
1139
1149
|
}, null), w("span", {
|
|
1140
1150
|
style: "font-size:13px;margin:auto"
|
|
1141
|
-
}, [
|
|
1151
|
+
}, [fe("新增子级")])])])]);
|
|
1142
1152
|
}
|
|
1143
|
-
function
|
|
1153
|
+
function k() {
|
|
1144
1154
|
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((n) => n.classList.remove("dgComponentFocused"));
|
|
1145
1155
|
const a = document.getElementsByClassName("dgComponentSelected");
|
|
1146
1156
|
Array.from(a).forEach((n) => n.classList.remove("dgComponentSelected"));
|
|
@@ -1149,51 +1159,51 @@ function dt(s, e, o) {
|
|
|
1149
1159
|
a.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
|
|
1150
1160
|
}
|
|
1151
1161
|
function j(a) {
|
|
1152
|
-
var
|
|
1153
|
-
const n =
|
|
1162
|
+
var d;
|
|
1163
|
+
const n = h.schema.buttons || h.schema.contents, t = n == null ? void 0 : n.findIndex((E) => E.id === a);
|
|
1154
1164
|
if (t === -1)
|
|
1155
1165
|
return;
|
|
1156
1166
|
const r = n[t];
|
|
1157
|
-
(
|
|
1167
|
+
(d = h == null ? void 0 : h.setupContext) == null || d.emit("selectionChange", "response-toolbar-item", r);
|
|
1158
1168
|
}
|
|
1159
|
-
function
|
|
1160
|
-
l(a),
|
|
1169
|
+
function m(a, n) {
|
|
1170
|
+
l(a), k(), N(a), l(a), i(a, n), j(n.id);
|
|
1161
1171
|
}
|
|
1162
|
-
function
|
|
1172
|
+
function R(a) {
|
|
1163
1173
|
return w("div", {
|
|
1164
1174
|
id: a.id,
|
|
1165
1175
|
class: g(a)
|
|
1166
1176
|
}, [w("div", {
|
|
1167
|
-
class:
|
|
1177
|
+
class: C(a),
|
|
1168
1178
|
style: "display: flex;padding-right: 0.1rem;",
|
|
1169
|
-
onClick: (n) => a.enable &&
|
|
1179
|
+
onClick: (n) => a.enable && m(n, a)
|
|
1170
1180
|
}, [P(a.id), e.shouldShowIcon(a) && w("i", {
|
|
1171
1181
|
class: e.iconClass(a)
|
|
1172
1182
|
}, null), w("span", null, [a.text]), w("i", {
|
|
1173
1183
|
class: "f-icon f-icon-arrow-chevron-down",
|
|
1174
1184
|
style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
|
|
1175
|
-
}, null)]),
|
|
1185
|
+
}, null)]), u(a)]);
|
|
1176
1186
|
}
|
|
1177
|
-
function
|
|
1178
|
-
|
|
1187
|
+
function A() {
|
|
1188
|
+
v();
|
|
1179
1189
|
}
|
|
1180
1190
|
return {
|
|
1181
|
-
renderToolbarDropdown:
|
|
1182
|
-
clearAllDropDown:
|
|
1191
|
+
renderToolbarDropdown: R,
|
|
1192
|
+
clearAllDropDown: A
|
|
1183
1193
|
};
|
|
1184
1194
|
}
|
|
1185
|
-
function
|
|
1195
|
+
function ht() {
|
|
1186
1196
|
function s(e) {
|
|
1187
|
-
var
|
|
1197
|
+
var u, v;
|
|
1188
1198
|
if (!e)
|
|
1189
1199
|
return !1;
|
|
1190
|
-
const o = ((
|
|
1200
|
+
const o = ((u = e.targetContainer) == null ? void 0 : u.componentInstance) && e.targetContainer.componentInstance.value;
|
|
1191
1201
|
if (!o)
|
|
1192
1202
|
return !1;
|
|
1193
|
-
const p = (
|
|
1203
|
+
const p = (v = o.schema.appearance) == null ? void 0 : v.class;
|
|
1194
1204
|
if (e.controlCategory === "input" || e.controlType === "form-group") {
|
|
1195
|
-
const
|
|
1196
|
-
if (o.schema.type !== "response-layout-item" && !
|
|
1205
|
+
const h = o.schema.type, D = (h === "response-form" || h === "content-container") && p && p.includes("farris-form");
|
|
1206
|
+
if (o.schema.type !== "response-layout-item" && !D)
|
|
1197
1207
|
return !1;
|
|
1198
1208
|
}
|
|
1199
1209
|
return e.controlType !== "field-set";
|
|
@@ -1202,7 +1212,7 @@ function ut() {
|
|
|
1202
1212
|
basalDragulaRuleForContainer: s
|
|
1203
1213
|
};
|
|
1204
1214
|
}
|
|
1205
|
-
const
|
|
1215
|
+
const bt = "https://json-schema.org/draft/2020-12/schema", yt = "https://farris-design.gitee.io/dragging-rules.schema.json", vt = "Dragging Rules", Ct = "The rules of designer canvas", wt = "object", xt = {
|
|
1206
1216
|
"f-page": {
|
|
1207
1217
|
description: "The root class of page designed by farris.",
|
|
1208
1218
|
type: "object",
|
|
@@ -1621,6 +1631,80 @@ const ft = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
|
|
|
1621
1631
|
"f-list-nav-left": {
|
|
1622
1632
|
description: "",
|
|
1623
1633
|
type: "object"
|
|
1634
|
+
},
|
|
1635
|
+
"f-struct-data-grid-in-nav": {
|
|
1636
|
+
description: "",
|
|
1637
|
+
type: "object",
|
|
1638
|
+
properties: {
|
|
1639
|
+
contents: {
|
|
1640
|
+
type: "object",
|
|
1641
|
+
properties: {
|
|
1642
|
+
"f-section-form": {
|
|
1643
|
+
description: "",
|
|
1644
|
+
type: "object",
|
|
1645
|
+
properties: {
|
|
1646
|
+
rules: {
|
|
1647
|
+
type: "object",
|
|
1648
|
+
properties: {
|
|
1649
|
+
canAccept: {
|
|
1650
|
+
type: "boolean",
|
|
1651
|
+
const: !1
|
|
1652
|
+
},
|
|
1653
|
+
fixed: {
|
|
1654
|
+
type: "boolean",
|
|
1655
|
+
const: !0
|
|
1656
|
+
},
|
|
1657
|
+
hidePadding: {
|
|
1658
|
+
type: "boolean",
|
|
1659
|
+
const: !0
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
},
|
|
1665
|
+
"f-section-grid": {
|
|
1666
|
+
description: "",
|
|
1667
|
+
type: "object",
|
|
1668
|
+
properties: {
|
|
1669
|
+
rules: {
|
|
1670
|
+
type: "object",
|
|
1671
|
+
properties: {
|
|
1672
|
+
canAccept: {
|
|
1673
|
+
type: "boolean",
|
|
1674
|
+
const: !1
|
|
1675
|
+
},
|
|
1676
|
+
fixed: {
|
|
1677
|
+
type: "boolean",
|
|
1678
|
+
const: !0
|
|
1679
|
+
},
|
|
1680
|
+
hidePadding: {
|
|
1681
|
+
type: "boolean",
|
|
1682
|
+
const: !0
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
},
|
|
1690
|
+
rules: {
|
|
1691
|
+
type: "object",
|
|
1692
|
+
properties: {
|
|
1693
|
+
canAccept: {
|
|
1694
|
+
type: "boolean",
|
|
1695
|
+
const: !1
|
|
1696
|
+
},
|
|
1697
|
+
fixed: {
|
|
1698
|
+
type: "boolean",
|
|
1699
|
+
const: !0
|
|
1700
|
+
},
|
|
1701
|
+
hidePadding: {
|
|
1702
|
+
type: "boolean",
|
|
1703
|
+
const: !0
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1624
1708
|
}
|
|
1625
1709
|
}
|
|
1626
1710
|
}
|
|
@@ -1766,119 +1850,118 @@ const ft = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
|
|
|
1766
1850
|
description: "",
|
|
1767
1851
|
type: "object"
|
|
1768
1852
|
}
|
|
1769
|
-
},
|
|
1770
|
-
$schema:
|
|
1771
|
-
$id:
|
|
1772
|
-
title:
|
|
1773
|
-
description:
|
|
1774
|
-
type:
|
|
1775
|
-
properties:
|
|
1776
|
-
|
|
1777
|
-
}, Z = /* @__PURE__ */ new Map();
|
|
1853
|
+
}, Tt = {
|
|
1854
|
+
$schema: bt,
|
|
1855
|
+
$id: yt,
|
|
1856
|
+
title: vt,
|
|
1857
|
+
description: Ct,
|
|
1858
|
+
type: wt,
|
|
1859
|
+
properties: xt
|
|
1860
|
+
}, K = /* @__PURE__ */ new Map();
|
|
1778
1861
|
function Te() {
|
|
1779
|
-
function s(
|
|
1862
|
+
function s(c, b, y, T) {
|
|
1780
1863
|
var O;
|
|
1781
|
-
if (typeof
|
|
1782
|
-
return ((O = T[
|
|
1783
|
-
if (typeof
|
|
1784
|
-
const P = Object.keys(
|
|
1864
|
+
if (typeof y == "number")
|
|
1865
|
+
return ((O = T[c]) == null ? void 0 : O.length) === y;
|
|
1866
|
+
if (typeof y == "object") {
|
|
1867
|
+
const P = Object.keys(y)[0], k = y[P];
|
|
1785
1868
|
if (P === "not")
|
|
1786
|
-
return Number(T[
|
|
1869
|
+
return Number(T[c].length) !== Number(k);
|
|
1787
1870
|
if (P === "moreThan")
|
|
1788
|
-
return Number(T[
|
|
1871
|
+
return Number(T[c].length) >= Number(k);
|
|
1789
1872
|
if (P === "lessThan")
|
|
1790
|
-
return Number(T[
|
|
1873
|
+
return Number(T[c].length) <= Number(k);
|
|
1791
1874
|
}
|
|
1792
1875
|
return !1;
|
|
1793
1876
|
}
|
|
1794
|
-
function e(
|
|
1795
|
-
return typeof
|
|
1877
|
+
function e(c, b, y, T) {
|
|
1878
|
+
return typeof y == "boolean" ? T.childrenClassList.includes(b) === !!y : !1;
|
|
1796
1879
|
}
|
|
1797
|
-
function o(
|
|
1798
|
-
return typeof
|
|
1880
|
+
function o(c, b, y, T) {
|
|
1881
|
+
return typeof y == "boolean" ? T.parentClassList.includes(b) === !!y : !1;
|
|
1799
1882
|
}
|
|
1800
|
-
function p(
|
|
1801
|
-
return typeof
|
|
1883
|
+
function p(c, b, y, T) {
|
|
1884
|
+
return typeof y == "boolean" ? T.parentClassList.includes(b) === !!y : !1;
|
|
1802
1885
|
}
|
|
1803
|
-
const
|
|
1886
|
+
const u = /* @__PURE__ */ new Map([
|
|
1804
1887
|
["length", s],
|
|
1805
1888
|
["hasChildren", e],
|
|
1806
1889
|
["hasSibling", p],
|
|
1807
1890
|
["hasParent", o]
|
|
1808
1891
|
]);
|
|
1809
|
-
function
|
|
1810
|
-
const
|
|
1811
|
-
return typeof
|
|
1892
|
+
function v(c, b) {
|
|
1893
|
+
const y = c;
|
|
1894
|
+
return typeof b == "number" ? [{ target: y, operator: "length", param: null, value: Number(b) }] : typeof b == "object" ? Object.keys(b).map((T) => {
|
|
1812
1895
|
if (T === "length")
|
|
1813
|
-
return { target:
|
|
1814
|
-
const O = T, P =
|
|
1815
|
-
return { target:
|
|
1896
|
+
return { target: y, operator: "length", param: null, value: b[T] };
|
|
1897
|
+
const O = T, P = b[T];
|
|
1898
|
+
return { target: y, operator: c === "children" ? "hasChildren" : c === "parent" ? "hasParent" : "hasSibling", param: O, value: P };
|
|
1816
1899
|
}) : [];
|
|
1817
1900
|
}
|
|
1818
|
-
function
|
|
1819
|
-
if (
|
|
1820
|
-
const
|
|
1821
|
-
return
|
|
1901
|
+
function h(c, b) {
|
|
1902
|
+
if (u.has(c.operator)) {
|
|
1903
|
+
const y = u.get(c.operator);
|
|
1904
|
+
return y && y(c.target, c.param, c.value, b) || !1;
|
|
1822
1905
|
}
|
|
1823
1906
|
return !1;
|
|
1824
1907
|
}
|
|
1825
|
-
function
|
|
1826
|
-
return Object.keys(
|
|
1827
|
-
const N =
|
|
1908
|
+
function D(c, b) {
|
|
1909
|
+
return Object.keys(c).reduce((P, k) => {
|
|
1910
|
+
const N = v(k, c[k]);
|
|
1828
1911
|
return P.push(...N), P;
|
|
1829
|
-
}, []).reduce((P,
|
|
1912
|
+
}, []).reduce((P, k) => P && h(k, b), !0);
|
|
1830
1913
|
}
|
|
1831
|
-
function
|
|
1832
|
-
const
|
|
1914
|
+
function I(c, b) {
|
|
1915
|
+
const y = Object.keys(c), T = y.includes("allOf"), O = y.includes("anyOf"), P = T || O, j = (P ? c[P ? T ? "allOf" : "anyOf" : "allOf"] : [c]).map((R) => D(R, b));
|
|
1833
1916
|
return T ? !j.includes(!1) : j.includes(!0);
|
|
1834
1917
|
}
|
|
1835
|
-
function g(
|
|
1836
|
-
const
|
|
1837
|
-
return
|
|
1838
|
-
}
|
|
1839
|
-
function
|
|
1840
|
-
return (
|
|
1841
|
-
const
|
|
1842
|
-
return
|
|
1843
|
-
const P =
|
|
1844
|
-
return T[O] = g(P,
|
|
1845
|
-
},
|
|
1918
|
+
function g(c, b) {
|
|
1919
|
+
const y = c.const;
|
|
1920
|
+
return y ? typeof y == "boolean" ? y : typeof y == "object" ? I(y, b) : !1 : !1;
|
|
1921
|
+
}
|
|
1922
|
+
function C(c) {
|
|
1923
|
+
return (b) => {
|
|
1924
|
+
const y = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1925
|
+
return c && c.properties && Object.keys(c.properties).reduce((T, O) => {
|
|
1926
|
+
const P = c.properties[O];
|
|
1927
|
+
return T[O] = g(P, b), T;
|
|
1928
|
+
}, y), y;
|
|
1846
1929
|
};
|
|
1847
1930
|
}
|
|
1848
|
-
function l(
|
|
1849
|
-
if (
|
|
1850
|
-
const { rules: T, contents: O } =
|
|
1851
|
-
|
|
1852
|
-
(P) => l(P, O.properties[P],
|
|
1931
|
+
function l(c, b, y) {
|
|
1932
|
+
if (b.type === "object" && b.properties) {
|
|
1933
|
+
const { rules: T, contents: O } = b.properties;
|
|
1934
|
+
y.set(c, C(T)), O && Object.keys(O.properties).forEach(
|
|
1935
|
+
(P) => l(P, O.properties[P], y)
|
|
1853
1936
|
);
|
|
1854
1937
|
}
|
|
1855
1938
|
}
|
|
1856
|
-
function
|
|
1857
|
-
const { properties:
|
|
1858
|
-
Object.keys(
|
|
1859
|
-
l(
|
|
1939
|
+
function i() {
|
|
1940
|
+
const { properties: c } = Tt;
|
|
1941
|
+
Object.keys(c).forEach((b) => {
|
|
1942
|
+
l(b, c[b], K);
|
|
1860
1943
|
});
|
|
1861
1944
|
}
|
|
1862
|
-
function
|
|
1863
|
-
const
|
|
1864
|
-
return
|
|
1945
|
+
function f(c, b) {
|
|
1946
|
+
const y = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1947
|
+
return K.has(c) ? K.get(c)(b) : y;
|
|
1865
1948
|
}
|
|
1866
|
-
return
|
|
1949
|
+
return i(), { getRuleValue: f };
|
|
1867
1950
|
}
|
|
1868
|
-
class
|
|
1951
|
+
class ae {
|
|
1869
1952
|
constructor(e, o) {
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1953
|
+
B(this, "componentId");
|
|
1954
|
+
B(this, "viewModelId");
|
|
1955
|
+
B(this, "eventsEditorUtils");
|
|
1956
|
+
B(this, "formSchemaUtils");
|
|
1957
|
+
B(this, "formMetadataConverter");
|
|
1958
|
+
B(this, "designViewModelUtils");
|
|
1959
|
+
B(this, "designViewModelField");
|
|
1960
|
+
B(this, "controlCreatorUtils");
|
|
1961
|
+
B(this, "designerHostService");
|
|
1962
|
+
B(this, "schemaService", null);
|
|
1963
|
+
B(this, "metadataService", null);
|
|
1964
|
+
B(this, "propertyConfig", {
|
|
1882
1965
|
type: "object",
|
|
1883
1966
|
categories: {}
|
|
1884
1967
|
});
|
|
@@ -1894,7 +1977,7 @@ class ce {
|
|
|
1894
1977
|
if (o) {
|
|
1895
1978
|
if (!this.designViewModelField) {
|
|
1896
1979
|
const p = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1897
|
-
this.designViewModelField = p.fields.find((
|
|
1980
|
+
this.designViewModelField = p.fields.find((u) => u.id === o);
|
|
1898
1981
|
}
|
|
1899
1982
|
e.updateOn = this.designViewModelField.updateOn;
|
|
1900
1983
|
}
|
|
@@ -1920,7 +2003,7 @@ class ce {
|
|
|
1920
2003
|
type: "combo-list",
|
|
1921
2004
|
textField: "name",
|
|
1922
2005
|
valueField: "value",
|
|
1923
|
-
data: [{ value: e.type, name:
|
|
2006
|
+
data: [{ value: e.type, name: re[e.type].name }]
|
|
1924
2007
|
}
|
|
1925
2008
|
}
|
|
1926
2009
|
}
|
|
@@ -1947,7 +2030,7 @@ class ce {
|
|
|
1947
2030
|
};
|
|
1948
2031
|
}
|
|
1949
2032
|
}
|
|
1950
|
-
class
|
|
2033
|
+
class jt extends ae {
|
|
1951
2034
|
constructor(e, o) {
|
|
1952
2035
|
super(e, o);
|
|
1953
2036
|
}
|
|
@@ -1973,7 +2056,7 @@ class wt extends ce {
|
|
|
1973
2056
|
type: "combo-list",
|
|
1974
2057
|
textField: "value",
|
|
1975
2058
|
valueField: "key",
|
|
1976
|
-
data: [{ key: "response-toolbar", value:
|
|
2059
|
+
data: [{ key: "response-toolbar", value: re["response-toolbar"].name }]
|
|
1977
2060
|
}
|
|
1978
2061
|
}
|
|
1979
2062
|
}
|
|
@@ -2016,52 +2099,52 @@ class wt extends ce {
|
|
|
2016
2099
|
};
|
|
2017
2100
|
}
|
|
2018
2101
|
}
|
|
2019
|
-
function
|
|
2020
|
-
const
|
|
2021
|
-
let
|
|
2022
|
-
function
|
|
2102
|
+
function It(s, e, o, p) {
|
|
2103
|
+
const u = Te(), v = S(!1), h = S(!1);
|
|
2104
|
+
let D = !0, I = !1, g;
|
|
2105
|
+
function C(j) {
|
|
2023
2106
|
return g && g.componentClassList && g.componentClassList.includes("f-form-layout") && g.componentClassList.includes("farris-form") ? j.sourceType === "control" && j.controlCategory === "input" || j.sourceType === "move" && j.controlType === "form-group" : !0;
|
|
2024
2107
|
}
|
|
2025
2108
|
function l(j) {
|
|
2026
|
-
return !
|
|
2109
|
+
return !ht().basalDragulaRuleForContainer(j) || !D || !C(j), !1;
|
|
2027
2110
|
}
|
|
2028
|
-
function
|
|
2029
|
-
|
|
2030
|
-
const j = s,
|
|
2031
|
-
const U = V && V.appearance ? V.appearance.class : "",
|
|
2032
|
-
return $.push(...
|
|
2033
|
-
}, []) : [],
|
|
2111
|
+
function i() {
|
|
2112
|
+
v.value = !1, h.value = !1;
|
|
2113
|
+
const j = s, m = j.appearance && j.appearance.class || "", R = m.split(" "), A = j.buttons || [], a = A.length ? A[0] : null, n = a && a.appearance ? a.appearance.class : "", t = n ? n.split(" ") : [], r = A.length ? A.reduce(($, V) => {
|
|
2114
|
+
const U = V && V.appearance ? V.appearance.class : "", Y = U ? U.split(" ") : [];
|
|
2115
|
+
return $.push(...Y), $;
|
|
2116
|
+
}, []) : [], d = o == null ? void 0 : o.schema, E = d && d.appearance && d.appearance.class || "", x = E ? E.split(" ") : [];
|
|
2034
2117
|
g = {
|
|
2035
|
-
componentClass:
|
|
2036
|
-
componentClassList:
|
|
2037
|
-
childContents:
|
|
2118
|
+
componentClass: m,
|
|
2119
|
+
componentClassList: R,
|
|
2120
|
+
childContents: A,
|
|
2038
2121
|
firstChildContent: a,
|
|
2039
2122
|
firstChildClass: n,
|
|
2040
2123
|
firstChildClassList: t,
|
|
2041
|
-
parent:
|
|
2042
|
-
parentClass:
|
|
2124
|
+
parent: d,
|
|
2125
|
+
parentClass: E,
|
|
2043
2126
|
parentClassList: x,
|
|
2044
|
-
children:
|
|
2127
|
+
children: A,
|
|
2045
2128
|
childrenClassList: r
|
|
2046
2129
|
};
|
|
2047
|
-
const { canAccept: M, fixed: F, hidePadding: _ } =
|
|
2048
|
-
return
|
|
2130
|
+
const { canAccept: M, fixed: F, hidePadding: _ } = u.getRuleValue(R[0], g);
|
|
2131
|
+
return D = M, I = _, !0;
|
|
2049
2132
|
}
|
|
2050
|
-
function
|
|
2133
|
+
function f(j) {
|
|
2051
2134
|
}
|
|
2052
|
-
function
|
|
2135
|
+
function c() {
|
|
2053
2136
|
return s.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
2054
2137
|
}
|
|
2055
|
-
function
|
|
2056
|
-
return
|
|
2138
|
+
function b(j, m) {
|
|
2139
|
+
return m.text = j.label, m;
|
|
2057
2140
|
}
|
|
2058
|
-
function
|
|
2059
|
-
const
|
|
2060
|
-
if ((
|
|
2141
|
+
function y(j, m, R) {
|
|
2142
|
+
const A = s;
|
|
2143
|
+
if ((A.appearance && A.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
2061
2144
|
const t = String(j.innerText), r = q("form-group");
|
|
2062
|
-
return r.editor =
|
|
2145
|
+
return r.editor = R, r.label = t, r;
|
|
2063
2146
|
}
|
|
2064
|
-
return
|
|
2147
|
+
return R;
|
|
2065
2148
|
}
|
|
2066
2149
|
function T() {
|
|
2067
2150
|
return !1;
|
|
@@ -2072,29 +2155,29 @@ function xt(s, e, o, p) {
|
|
|
2072
2155
|
function P() {
|
|
2073
2156
|
return !0;
|
|
2074
2157
|
}
|
|
2075
|
-
function
|
|
2076
|
-
return
|
|
2158
|
+
function k() {
|
|
2159
|
+
return I;
|
|
2077
2160
|
}
|
|
2078
2161
|
function N(j) {
|
|
2079
|
-
return new
|
|
2162
|
+
return new jt(j, e).getPropertyConfig(s);
|
|
2080
2163
|
}
|
|
2081
2164
|
return {
|
|
2082
2165
|
canAccepts: l,
|
|
2083
2166
|
checkCanAddComponent: P,
|
|
2084
2167
|
checkCanDeleteComponent: O,
|
|
2085
2168
|
checkCanMoveComponent: T,
|
|
2086
|
-
getStyles:
|
|
2087
|
-
hideNestedPaddingInDesginerView:
|
|
2088
|
-
onAcceptNewChildElement:
|
|
2089
|
-
onAcceptMovedChildElement:
|
|
2090
|
-
onResolveNewComponentSchema:
|
|
2091
|
-
resolveComponentContext:
|
|
2169
|
+
getStyles: c,
|
|
2170
|
+
hideNestedPaddingInDesginerView: k,
|
|
2171
|
+
onAcceptNewChildElement: y,
|
|
2172
|
+
onAcceptMovedChildElement: f,
|
|
2173
|
+
onResolveNewComponentSchema: b,
|
|
2174
|
+
resolveComponentContext: i,
|
|
2092
2175
|
getPropsConfig: N,
|
|
2093
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2094
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
2176
|
+
triggerBelongedComponentToMoveWhenMoved: v,
|
|
2177
|
+
triggerBelongedComponentToDeleteWhenDeleted: h
|
|
2095
2178
|
};
|
|
2096
2179
|
}
|
|
2097
|
-
const
|
|
2180
|
+
const Dt = {
|
|
2098
2181
|
id: { type: String, default: "" },
|
|
2099
2182
|
componentId: { type: String, default: "" },
|
|
2100
2183
|
canAdd: { type: Boolean, default: !1 },
|
|
@@ -2107,12 +2190,12 @@ const Tt = {
|
|
|
2107
2190
|
* 组件值
|
|
2108
2191
|
*/
|
|
2109
2192
|
modelValue: { type: Object }
|
|
2110
|
-
},
|
|
2111
|
-
function
|
|
2112
|
-
const o = e.getBoundingClientRect(), p = s.getBoundingClientRect(),
|
|
2113
|
-
return
|
|
2193
|
+
}, ee = S(0);
|
|
2194
|
+
function Pt(s, e) {
|
|
2195
|
+
const o = e.getBoundingClientRect(), p = s.getBoundingClientRect(), u = p.top >= o.top, v = p.top <= o.bottom;
|
|
2196
|
+
return u && v;
|
|
2114
2197
|
}
|
|
2115
|
-
function
|
|
2198
|
+
function Rt(s) {
|
|
2116
2199
|
if (!s)
|
|
2117
2200
|
return;
|
|
2118
2201
|
let e;
|
|
@@ -2123,151 +2206,151 @@ function Dt(s) {
|
|
|
2123
2206
|
return;
|
|
2124
2207
|
const p = e.querySelector(".component-btn-group");
|
|
2125
2208
|
if (p) {
|
|
2126
|
-
if (!
|
|
2209
|
+
if (!Pt(e, s)) {
|
|
2127
2210
|
p.style.display = "none";
|
|
2128
2211
|
return;
|
|
2129
2212
|
}
|
|
2130
2213
|
p.style.display = "";
|
|
2131
|
-
const
|
|
2132
|
-
if (
|
|
2133
|
-
const
|
|
2134
|
-
|
|
2214
|
+
const v = p.getBoundingClientRect(), h = p.querySelector("div");
|
|
2215
|
+
if (h) {
|
|
2216
|
+
const D = h.getBoundingClientRect();
|
|
2217
|
+
h.style.top = v.top + "px", h.style.left = v.left - D.width + "px";
|
|
2135
2218
|
}
|
|
2136
2219
|
}
|
|
2137
2220
|
}
|
|
2138
|
-
function
|
|
2221
|
+
function Et(s, e, o) {
|
|
2139
2222
|
var N;
|
|
2140
2223
|
function p() {
|
|
2141
2224
|
}
|
|
2142
|
-
const
|
|
2143
|
-
function
|
|
2225
|
+
const u = "", v = S();
|
|
2226
|
+
function h() {
|
|
2144
2227
|
return !0;
|
|
2145
2228
|
}
|
|
2146
|
-
function
|
|
2229
|
+
function D() {
|
|
2147
2230
|
return !1;
|
|
2148
2231
|
}
|
|
2149
|
-
function
|
|
2232
|
+
function I() {
|
|
2150
2233
|
return !0;
|
|
2151
2234
|
}
|
|
2152
2235
|
function g() {
|
|
2153
2236
|
return !0;
|
|
2154
2237
|
}
|
|
2155
|
-
function
|
|
2238
|
+
function C() {
|
|
2156
2239
|
return !0;
|
|
2157
2240
|
}
|
|
2158
2241
|
function l(j) {
|
|
2159
2242
|
if (!j || !j.value)
|
|
2160
2243
|
return null;
|
|
2161
|
-
const
|
|
2162
|
-
return
|
|
2244
|
+
const m = S(j == null ? void 0 : j.value.parent), R = l(m);
|
|
2245
|
+
return R || null;
|
|
2163
2246
|
}
|
|
2164
|
-
function
|
|
2165
|
-
const { componentInstance:
|
|
2166
|
-
return !
|
|
2247
|
+
function i(j = e) {
|
|
2248
|
+
const { componentInstance: m, designerItemElementRef: R } = j;
|
|
2249
|
+
return !m || !m.value ? null : m.value.canMove || m.value.canAdd || m.value.canDelete ? R : i(j.parent);
|
|
2167
2250
|
}
|
|
2168
|
-
function
|
|
2251
|
+
function f(j) {
|
|
2169
2252
|
return !!o;
|
|
2170
2253
|
}
|
|
2171
|
-
function
|
|
2254
|
+
function c() {
|
|
2172
2255
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
2173
2256
|
}
|
|
2174
|
-
function
|
|
2257
|
+
function b() {
|
|
2175
2258
|
}
|
|
2176
|
-
function
|
|
2259
|
+
function y(j, m) {
|
|
2177
2260
|
}
|
|
2178
2261
|
function T(j) {
|
|
2179
|
-
const { componentType:
|
|
2180
|
-
let
|
|
2181
|
-
const
|
|
2182
|
-
return
|
|
2183
|
-
}
|
|
2184
|
-
function O(j,
|
|
2185
|
-
const
|
|
2186
|
-
a.parentComponentInstance =
|
|
2187
|
-
let n = q(
|
|
2188
|
-
const t =
|
|
2189
|
-
return n && !n.id && n.type ===
|
|
2262
|
+
const { componentType: m } = j;
|
|
2263
|
+
let R = q(m, j);
|
|
2264
|
+
const A = m.toLowerCase().replace("-", "_");
|
|
2265
|
+
return R && !R.id && R.type === m && (R.id = `${A}_${Math.random().toString().slice(2, 6)}`), R;
|
|
2266
|
+
}
|
|
2267
|
+
function O(j, m) {
|
|
2268
|
+
const R = String(j.getAttribute("data-controltype")), A = j.getAttribute("data-feature"), a = A ? JSON.parse(A) : {};
|
|
2269
|
+
a.parentComponentInstance = v.value;
|
|
2270
|
+
let n = q(R, a);
|
|
2271
|
+
const t = R.toLowerCase().replace("-", "_");
|
|
2272
|
+
return n && !n.id && n.type === R && (n.id = `${t}_${Math.random().toString().slice(2, 6)}`), n;
|
|
2190
2273
|
}
|
|
2191
2274
|
function P(j) {
|
|
2192
2275
|
}
|
|
2193
|
-
function
|
|
2276
|
+
function k(...j) {
|
|
2194
2277
|
return [];
|
|
2195
2278
|
}
|
|
2196
|
-
return
|
|
2197
|
-
canMove:
|
|
2198
|
-
canSelectParent:
|
|
2279
|
+
return v.value = {
|
|
2280
|
+
canMove: h(),
|
|
2281
|
+
canSelectParent: D(),
|
|
2199
2282
|
canAdd: g(),
|
|
2200
|
-
canDelete:
|
|
2201
|
-
canNested: !
|
|
2283
|
+
canDelete: I(),
|
|
2284
|
+
canNested: !C(),
|
|
2202
2285
|
contents: [],
|
|
2203
2286
|
elementRef: s,
|
|
2204
2287
|
parent: (N = e.parent) == null ? void 0 : N.componentInstance,
|
|
2205
2288
|
schema: e.schema,
|
|
2206
|
-
styles:
|
|
2207
|
-
canAccepts:
|
|
2289
|
+
styles: u,
|
|
2290
|
+
canAccepts: f,
|
|
2208
2291
|
getBelongedComponentInstance: l,
|
|
2209
|
-
getDraggableDesignItemElement:
|
|
2210
|
-
getDraggingDisplayText:
|
|
2211
|
-
getPropConfig:
|
|
2212
|
-
getDragScopeElement:
|
|
2213
|
-
onAcceptMovedChildElement:
|
|
2292
|
+
getDraggableDesignItemElement: i,
|
|
2293
|
+
getDraggingDisplayText: c,
|
|
2294
|
+
getPropConfig: k,
|
|
2295
|
+
getDragScopeElement: b,
|
|
2296
|
+
onAcceptMovedChildElement: y,
|
|
2214
2297
|
onAcceptNewChildElement: O,
|
|
2215
2298
|
onChildElementMovedOut: P,
|
|
2216
2299
|
addNewChildComponentSchema: T,
|
|
2217
2300
|
updateDragAndDropRules: p,
|
|
2218
2301
|
triggerBelongedComponentToMoveWhenMoved: S(!1),
|
|
2219
2302
|
triggerBelongedComponentToDeleteWhenDeleted: S(!1)
|
|
2220
|
-
},
|
|
2303
|
+
}, v;
|
|
2221
2304
|
}
|
|
2222
|
-
const
|
|
2305
|
+
const St = /* @__PURE__ */ X({
|
|
2223
2306
|
name: "FDesignerInnerItem",
|
|
2224
|
-
props:
|
|
2307
|
+
props: Dt,
|
|
2225
2308
|
emits: ["selectionChange", "addComponent", "removeComponent"],
|
|
2226
2309
|
setup(s, e) {
|
|
2227
|
-
const o = S(s.canMove), p = S(s.canAdd),
|
|
2310
|
+
const o = S(s.canMove), p = S(s.canAdd), u = S(s.canDelete), v = S(!1), h = S(s.contentKey), D = S(s.childType), I = S(s.childLabel), g = S(s.modelValue), C = S(""), l = S(), i = L("canvas-dragula"), f = S(), c = L("design-item-context"), b = {
|
|
2228
2311
|
designerItemElementRef: l,
|
|
2229
|
-
componentInstance:
|
|
2312
|
+
componentInstance: f,
|
|
2230
2313
|
schema: g.value,
|
|
2231
|
-
parent:
|
|
2314
|
+
parent: c,
|
|
2232
2315
|
setupContext: e
|
|
2233
2316
|
};
|
|
2234
|
-
Ee("design-item-context",
|
|
2235
|
-
const
|
|
2317
|
+
Ee("design-item-context", b);
|
|
2318
|
+
const y = W(() => ({
|
|
2236
2319
|
"farris-component": !0,
|
|
2237
2320
|
// 受position-relative影响,整个容器的高度不能被撑起
|
|
2238
2321
|
"flex-fill": s.id == "root-component",
|
|
2239
|
-
"position-relative": o.value ||
|
|
2240
|
-
"farris-nested":
|
|
2322
|
+
"position-relative": o.value || u.value,
|
|
2323
|
+
"farris-nested": v.value,
|
|
2241
2324
|
"can-move": o.value,
|
|
2242
2325
|
"d-none": l.value && l.value.classList.contains("d-none")
|
|
2243
2326
|
})), T = W(() => {
|
|
2244
2327
|
const t = {};
|
|
2245
|
-
return
|
|
2246
|
-
const [
|
|
2247
|
-
return
|
|
2328
|
+
return C.value && C.value.split(";").reduce((r, d) => {
|
|
2329
|
+
const [E, x] = d.split(":");
|
|
2330
|
+
return E && (r[E] = x), r;
|
|
2248
2331
|
}, t), t;
|
|
2249
2332
|
});
|
|
2250
2333
|
function O(t, r) {
|
|
2251
|
-
if (
|
|
2252
|
-
const
|
|
2253
|
-
if (
|
|
2254
|
-
const
|
|
2255
|
-
|
|
2334
|
+
if (c && c.schema[h.value]) {
|
|
2335
|
+
const d = c.schema[h.value].findIndex((E) => E.id === r.id);
|
|
2336
|
+
if (d > -1) {
|
|
2337
|
+
const E = c.schema[h.value].length, x = c.schema[h.value][d % E];
|
|
2338
|
+
c.designerItemElementRef.value.querySelector(`#${x.id}-design-item`), c.schema[h.value].splice(d, 1), c.componentInstance.value.updateDragAndDropRules(), ee.value++, e.emit("removeComponent");
|
|
2256
2339
|
}
|
|
2257
2340
|
}
|
|
2258
2341
|
}
|
|
2259
2342
|
function P(t) {
|
|
2260
|
-
if (
|
|
2343
|
+
if (f.value.addNewChildComponentSchema) {
|
|
2261
2344
|
const r = {
|
|
2262
|
-
componentType:
|
|
2263
|
-
label:
|
|
2264
|
-
parentComponentInstance:
|
|
2345
|
+
componentType: D.value,
|
|
2346
|
+
label: I.value,
|
|
2347
|
+
parentComponentInstance: f.value,
|
|
2265
2348
|
targetPosition: -1
|
|
2266
|
-
},
|
|
2267
|
-
g.value[
|
|
2349
|
+
}, d = f.value.addNewChildComponentSchema(r);
|
|
2350
|
+
g.value[h.value].push(d), e.emit("addComponent");
|
|
2268
2351
|
}
|
|
2269
2352
|
}
|
|
2270
|
-
function
|
|
2353
|
+
function k() {
|
|
2271
2354
|
return p.value && w("div", {
|
|
2272
2355
|
role: "button",
|
|
2273
2356
|
class: "btn component-settings-button",
|
|
@@ -2281,7 +2364,7 @@ const Pt = /* @__PURE__ */ Q({
|
|
|
2281
2364
|
}, null)]);
|
|
2282
2365
|
}
|
|
2283
2366
|
function N(t) {
|
|
2284
|
-
return
|
|
2367
|
+
return u.value && w("div", {
|
|
2285
2368
|
role: "button",
|
|
2286
2369
|
class: "btn component-settings-button",
|
|
2287
2370
|
title: "删除",
|
|
@@ -2302,59 +2385,59 @@ const Pt = /* @__PURE__ */ Q({
|
|
|
2302
2385
|
class: "cmp_move f-icon f-icon-yxs_move"
|
|
2303
2386
|
}, null)]);
|
|
2304
2387
|
}
|
|
2305
|
-
function
|
|
2388
|
+
function m(t) {
|
|
2306
2389
|
return w("div", {
|
|
2307
2390
|
class: "component-btn-group",
|
|
2308
2391
|
"data-noattach": "true"
|
|
2309
|
-
}, [w("div", null, [
|
|
2392
|
+
}, [w("div", null, [k(), j(), N(t)])]);
|
|
2310
2393
|
}
|
|
2311
2394
|
H(() => s.modelValue, (t) => {
|
|
2312
|
-
g.value = t,
|
|
2395
|
+
g.value = t, b.schema = t;
|
|
2313
2396
|
});
|
|
2314
|
-
function
|
|
2397
|
+
function R(t) {
|
|
2315
2398
|
const r = t.target;
|
|
2316
|
-
|
|
2399
|
+
Rt(r);
|
|
2317
2400
|
}
|
|
2318
|
-
function
|
|
2401
|
+
function A() {
|
|
2319
2402
|
var t, r;
|
|
2320
|
-
(r = (t = g.value) == null ? void 0 : t.contents) != null && r.length && l.value && l.value.addEventListener("scroll",
|
|
2403
|
+
(r = (t = g.value) == null ? void 0 : t.contents) != null && r.length && l.value && l.value.addEventListener("scroll", R);
|
|
2321
2404
|
}
|
|
2322
2405
|
function a() {
|
|
2323
2406
|
const t = l.value, r = S(t.children[1]);
|
|
2324
|
-
return
|
|
2407
|
+
return Et(r, b).value;
|
|
2325
2408
|
}
|
|
2326
2409
|
z(() => {
|
|
2327
2410
|
if (l.value) {
|
|
2328
2411
|
const t = l.value.querySelector(`[data-dragref='${g.value.id}-container']`);
|
|
2329
|
-
|
|
2412
|
+
f.value = t && t.componentInstance ? t.componentInstance.value : a(), i && t && i.attachComponents(t, g.value), v.value = f.value.canNested !== void 0 ? f.value.canNested : v.value, p.value = f.value.canAdd !== void 0 ? f.value.canAdd : p.value, u.value = f.value.canDelete !== void 0 ? f.value.canDelete : u.value, o.value = f.value.canMove !== void 0 ? f.value.canMove : o.value, C.value = f.value.styles || "", l.value && (l.value.componentInstance = f, l.value.designItemContext = b);
|
|
2330
2413
|
}
|
|
2331
|
-
|
|
2414
|
+
A(), ee.value++;
|
|
2332
2415
|
}), Se(() => {
|
|
2333
|
-
l.value && l.value.removeEventListener("scroll",
|
|
2416
|
+
l.value && l.value.removeEventListener("scroll", R);
|
|
2334
2417
|
});
|
|
2335
2418
|
function n(t) {
|
|
2336
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
2419
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((d) => d.classList.remove("dgComponentFocused")), t && (t.preventDefault(), t.stopPropagation());
|
|
2337
2420
|
const r = l.value;
|
|
2338
2421
|
if (r) {
|
|
2339
|
-
const
|
|
2340
|
-
if (!(
|
|
2341
|
-
Array.from(
|
|
2342
|
-
const x =
|
|
2422
|
+
const d = document.getElementsByClassName("dgComponentSelected");
|
|
2423
|
+
if (!(d && d.length === 1 && d[0] === l.value)) {
|
|
2424
|
+
Array.from(d).forEach((M) => M.classList.remove("dgComponentSelected")), r.classList.add("dgComponentFocused"), e.emit("selectionChange", g.value.type, g.value, s.componentId, f.value);
|
|
2425
|
+
const x = f.value.getDraggableDesignItemElement(b);
|
|
2343
2426
|
x && x.value && x.value.classList.add("dgComponentSelected");
|
|
2344
2427
|
}
|
|
2345
2428
|
}
|
|
2346
|
-
|
|
2429
|
+
ee.value++;
|
|
2347
2430
|
}
|
|
2348
2431
|
return () => w("div", {
|
|
2349
2432
|
id: `${s.id}-design-item`,
|
|
2350
2433
|
ref: l,
|
|
2351
|
-
class:
|
|
2434
|
+
class: y.value,
|
|
2352
2435
|
style: T.value,
|
|
2353
2436
|
onClick: n
|
|
2354
|
-
}, [
|
|
2437
|
+
}, [m(g.value), e.slots.default && e.slots.default()]);
|
|
2355
2438
|
}
|
|
2356
2439
|
});
|
|
2357
|
-
class
|
|
2440
|
+
class Mt extends ae {
|
|
2358
2441
|
constructor(e, o) {
|
|
2359
2442
|
super(e, o);
|
|
2360
2443
|
}
|
|
@@ -2417,28 +2500,28 @@ class Rt extends ce {
|
|
|
2417
2500
|
}
|
|
2418
2501
|
];
|
|
2419
2502
|
var p = this;
|
|
2420
|
-
const
|
|
2421
|
-
|
|
2503
|
+
const u = p.eventsEditorUtils.formProperties(e, p.viewModelId, o), v = {};
|
|
2504
|
+
v[p.viewModelId] = {
|
|
2422
2505
|
type: "events-editor",
|
|
2423
2506
|
editor: {
|
|
2424
|
-
initialData:
|
|
2507
|
+
initialData: u
|
|
2425
2508
|
}
|
|
2426
2509
|
}, this.propertyConfig.categories.eventsEditor = {
|
|
2427
2510
|
title: "事件",
|
|
2428
2511
|
hideTitle: !0,
|
|
2429
|
-
properties:
|
|
2512
|
+
properties: v,
|
|
2430
2513
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
2431
2514
|
refreshPanelAfterChanged: !0,
|
|
2432
2515
|
tabId: "commands",
|
|
2433
2516
|
tabName: "交互",
|
|
2434
|
-
setPropertyRelates(
|
|
2435
|
-
const
|
|
2436
|
-
delete e[p.viewModelId],
|
|
2517
|
+
setPropertyRelates(h, D) {
|
|
2518
|
+
const I = h.propertyValue;
|
|
2519
|
+
delete e[p.viewModelId], I && (I.setPropertyRelates = this.setPropertyRelates, p.eventsEditorUtils.saveRelatedParameters(e, p.viewModelId, I.events, I));
|
|
2437
2520
|
}
|
|
2438
2521
|
};
|
|
2439
2522
|
}
|
|
2440
2523
|
}
|
|
2441
|
-
class
|
|
2524
|
+
class kt extends ae {
|
|
2442
2525
|
constructor(e, o) {
|
|
2443
2526
|
super(e, o);
|
|
2444
2527
|
}
|
|
@@ -2464,7 +2547,7 @@ class Et extends ce {
|
|
|
2464
2547
|
type: "combo-list",
|
|
2465
2548
|
textField: "value",
|
|
2466
2549
|
valueField: "key",
|
|
2467
|
-
data: [{ key: "response-toolbar-item", value:
|
|
2550
|
+
data: [{ key: "response-toolbar-item", value: re["response-toolbar-item"].name }]
|
|
2468
2551
|
}
|
|
2469
2552
|
},
|
|
2470
2553
|
text: {
|
|
@@ -2482,6 +2565,22 @@ class Et extends ce {
|
|
|
2482
2565
|
};
|
|
2483
2566
|
}
|
|
2484
2567
|
getAppearanceProperties(e) {
|
|
2568
|
+
this.propertyConfig.categories.appearance = {
|
|
2569
|
+
title: "样式",
|
|
2570
|
+
description: "Appearance",
|
|
2571
|
+
properties: {
|
|
2572
|
+
class: {
|
|
2573
|
+
title: "class",
|
|
2574
|
+
type: "string",
|
|
2575
|
+
description: ""
|
|
2576
|
+
},
|
|
2577
|
+
style: {
|
|
2578
|
+
title: "style",
|
|
2579
|
+
type: "string",
|
|
2580
|
+
description: ""
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
};
|
|
2485
2584
|
}
|
|
2486
2585
|
getEventPropConfig(e) {
|
|
2487
2586
|
const o = [
|
|
@@ -2489,89 +2588,89 @@ class Et extends ce {
|
|
|
2489
2588
|
label: "click",
|
|
2490
2589
|
name: "点击事件"
|
|
2491
2590
|
}
|
|
2492
|
-
], p = this,
|
|
2493
|
-
|
|
2591
|
+
], p = this, u = p.eventsEditorUtils.formProperties(e, p.viewModelId, o), v = {};
|
|
2592
|
+
v[p.viewModelId] = {
|
|
2494
2593
|
type: "events-editor",
|
|
2495
2594
|
editor: {
|
|
2496
|
-
initialData:
|
|
2595
|
+
initialData: u
|
|
2497
2596
|
}
|
|
2498
2597
|
}, this.propertyConfig.categories.eventsEditor = {
|
|
2499
2598
|
title: "事件",
|
|
2500
2599
|
hideTitle: !0,
|
|
2501
|
-
properties:
|
|
2600
|
+
properties: v,
|
|
2502
2601
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
2503
2602
|
refreshPanelAfterChanged: !0,
|
|
2504
2603
|
tabId: "commands",
|
|
2505
2604
|
tabName: "交互",
|
|
2506
|
-
setPropertyRelates(
|
|
2507
|
-
const
|
|
2508
|
-
delete e[p.viewModelId],
|
|
2605
|
+
setPropertyRelates(h, D) {
|
|
2606
|
+
const I = h.propertyValue;
|
|
2607
|
+
delete e[p.viewModelId], I && (I.setPropertyRelates = this.setPropertyRelates, p.eventsEditorUtils.saveRelatedParameters(e, p.viewModelId, I.events, I));
|
|
2509
2608
|
}
|
|
2510
2609
|
};
|
|
2511
2610
|
}
|
|
2512
2611
|
}
|
|
2513
|
-
function
|
|
2612
|
+
function At(s, e) {
|
|
2514
2613
|
Te();
|
|
2515
2614
|
const o = S(!1), p = S(!1);
|
|
2516
|
-
let
|
|
2517
|
-
function
|
|
2615
|
+
let u = !1, v = !1;
|
|
2616
|
+
function h(y) {
|
|
2518
2617
|
return !1;
|
|
2519
2618
|
}
|
|
2520
|
-
function
|
|
2619
|
+
function D(y) {
|
|
2521
2620
|
}
|
|
2522
|
-
function
|
|
2621
|
+
function I() {
|
|
2523
2622
|
return "";
|
|
2524
2623
|
}
|
|
2525
|
-
function g(
|
|
2526
|
-
return T.text =
|
|
2624
|
+
function g(y, T) {
|
|
2625
|
+
return T.text = y.label, T;
|
|
2527
2626
|
}
|
|
2528
|
-
function
|
|
2627
|
+
function C(y, T, O) {
|
|
2529
2628
|
const P = s.schema;
|
|
2530
2629
|
if ((P.appearance && P.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
2531
|
-
const j = String(
|
|
2532
|
-
return
|
|
2630
|
+
const j = String(y.innerText), m = q("form-group");
|
|
2631
|
+
return m.editor = O, m.label = j, m;
|
|
2533
2632
|
}
|
|
2534
2633
|
return O;
|
|
2535
2634
|
}
|
|
2536
2635
|
function l() {
|
|
2537
2636
|
return !1;
|
|
2538
2637
|
}
|
|
2539
|
-
function
|
|
2540
|
-
return !
|
|
2638
|
+
function i() {
|
|
2639
|
+
return !v;
|
|
2541
2640
|
}
|
|
2542
|
-
function
|
|
2641
|
+
function f() {
|
|
2543
2642
|
return !1;
|
|
2544
2643
|
}
|
|
2545
|
-
function
|
|
2546
|
-
return
|
|
2644
|
+
function c() {
|
|
2645
|
+
return u;
|
|
2547
2646
|
}
|
|
2548
|
-
function
|
|
2647
|
+
function b(y) {
|
|
2549
2648
|
let T;
|
|
2550
2649
|
switch (s.schema.type) {
|
|
2551
2650
|
case "tab-toolbar-item":
|
|
2552
|
-
T = new
|
|
2651
|
+
T = new Mt(y, e);
|
|
2553
2652
|
break;
|
|
2554
2653
|
default:
|
|
2555
|
-
T = new
|
|
2654
|
+
T = new kt(y, e);
|
|
2556
2655
|
}
|
|
2557
2656
|
return T.getPropertyConfig(s.schema);
|
|
2558
2657
|
}
|
|
2559
2658
|
return {
|
|
2560
|
-
canAccepts:
|
|
2561
|
-
checkCanAddComponent:
|
|
2562
|
-
checkCanDeleteComponent:
|
|
2659
|
+
canAccepts: h,
|
|
2660
|
+
checkCanAddComponent: f,
|
|
2661
|
+
checkCanDeleteComponent: i,
|
|
2563
2662
|
checkCanMoveComponent: l,
|
|
2564
|
-
getStyles:
|
|
2565
|
-
hideNestedPaddingInDesginerView:
|
|
2566
|
-
onAcceptNewChildElement:
|
|
2567
|
-
onAcceptMovedChildElement:
|
|
2663
|
+
getStyles: I,
|
|
2664
|
+
hideNestedPaddingInDesginerView: c,
|
|
2665
|
+
onAcceptNewChildElement: C,
|
|
2666
|
+
onAcceptMovedChildElement: D,
|
|
2568
2667
|
onResolveNewComponentSchema: g,
|
|
2569
|
-
getPropsConfig:
|
|
2668
|
+
getPropsConfig: b,
|
|
2570
2669
|
triggerBelongedComponentToMoveWhenMoved: o,
|
|
2571
2670
|
triggerBelongedComponentToDeleteWhenDeleted: p
|
|
2572
2671
|
};
|
|
2573
2672
|
}
|
|
2574
|
-
const je = /* @__PURE__ */
|
|
2673
|
+
const je = /* @__PURE__ */ X({
|
|
2575
2674
|
name: "FResponseToolbarItemDesign",
|
|
2576
2675
|
props: we,
|
|
2577
2676
|
emits: ["Click"],
|
|
@@ -2580,103 +2679,95 @@ const je = /* @__PURE__ */ Q({
|
|
|
2580
2679
|
const o = S(s.alignment), p = {
|
|
2581
2680
|
id: "__more_buttons__",
|
|
2582
2681
|
text: "More"
|
|
2583
|
-
},
|
|
2584
|
-
W(() =>
|
|
2585
|
-
const
|
|
2682
|
+
}, u = S(new G(p));
|
|
2683
|
+
W(() => u.value.children.length > 0);
|
|
2684
|
+
const v = S(), h = L("designer-host-service"), D = L("design-item-context"), I = At(D, h), g = ge(v, D, I);
|
|
2586
2685
|
L("toolbar-item-handler", () => {
|
|
2587
2686
|
}), z(() => {
|
|
2588
|
-
|
|
2687
|
+
v.value.componentInstance = g;
|
|
2589
2688
|
}), e.expose(g.value);
|
|
2590
|
-
function
|
|
2591
|
-
const
|
|
2689
|
+
function C() {
|
|
2690
|
+
const f = {
|
|
2592
2691
|
"f-icon": !0
|
|
2593
|
-
};
|
|
2594
|
-
|
|
2595
|
-
const i = s.icon.trim().split(" ");
|
|
2596
|
-
i && i.length && i.reduce((m, h) => (m[h] = !0, m), d);
|
|
2597
|
-
}
|
|
2598
|
-
return d;
|
|
2692
|
+
}, c = s.icon ? s.icon.trim() : "";
|
|
2693
|
+
return J(f, c);
|
|
2599
2694
|
}
|
|
2600
2695
|
function l() {
|
|
2601
2696
|
return !!(s.icon && s.icon.trim());
|
|
2602
2697
|
}
|
|
2603
|
-
function
|
|
2604
|
-
const
|
|
2698
|
+
function i() {
|
|
2699
|
+
const f = {
|
|
2605
2700
|
btn: !0,
|
|
2606
2701
|
"f-rt-btn": !0,
|
|
2607
2702
|
"f-btn-ml": o.value === "right",
|
|
2608
2703
|
"f-btn-mr": o.value === "left",
|
|
2609
2704
|
"btn-icontext": !!(s.icon && s.icon.trim())
|
|
2610
2705
|
};
|
|
2611
|
-
|
|
2612
|
-
const i = s.class.split(" ");
|
|
2613
|
-
i && i.length && i.reduce((m, h) => (m[h] = !0, m), d);
|
|
2614
|
-
}
|
|
2615
|
-
return d;
|
|
2706
|
+
return J(f, s.class);
|
|
2616
2707
|
}
|
|
2617
2708
|
return z(() => {
|
|
2618
|
-
}),
|
|
2709
|
+
}), ne(() => {
|
|
2619
2710
|
}), () => w("div", {
|
|
2620
|
-
ref:
|
|
2621
|
-
"data-dragref": `${
|
|
2711
|
+
ref: v,
|
|
2712
|
+
"data-dragref": `${D.schema.id}-container`,
|
|
2622
2713
|
class: "farris-component position-relative",
|
|
2623
2714
|
style: "display:inline-block!important;"
|
|
2624
2715
|
}, [w("button", {
|
|
2625
2716
|
type: "button",
|
|
2626
|
-
class:
|
|
2717
|
+
class: i(),
|
|
2627
2718
|
id: s.id
|
|
2628
2719
|
}, [l() && w("i", {
|
|
2629
|
-
class:
|
|
2720
|
+
class: C()
|
|
2630
2721
|
}, null), s.text])]);
|
|
2631
2722
|
}
|
|
2632
|
-
}),
|
|
2723
|
+
}), Bt = /* @__PURE__ */ X({
|
|
2633
2724
|
name: "FResponseToolbarDesign",
|
|
2634
|
-
props:
|
|
2725
|
+
props: pt,
|
|
2635
2726
|
emits: ["Click"],
|
|
2636
2727
|
setup(s, e) {
|
|
2637
2728
|
const o = S(s.items);
|
|
2638
2729
|
let p = new Array(o.value.length).fill(S());
|
|
2639
|
-
const
|
|
2730
|
+
const u = S(), v = S(), h = S(s.alignment), D = {
|
|
2640
2731
|
id: "__more_buttons__",
|
|
2641
2732
|
text: "More"
|
|
2642
|
-
},
|
|
2643
|
-
W(() =>
|
|
2644
|
-
const
|
|
2733
|
+
}, I = S(new G(D)), g = xe();
|
|
2734
|
+
W(() => I.value.children.length > 0);
|
|
2735
|
+
const C = S(), l = L("designer-host-service"), i = L("design-item-context"), f = It(i.schema, l, i), c = ge(C, i, f);
|
|
2645
2736
|
L("toolbar-item-handler", () => {
|
|
2646
2737
|
}), z(() => {
|
|
2647
|
-
|
|
2648
|
-
}), e.expose(
|
|
2649
|
-
const
|
|
2738
|
+
C.value.componentInstance = c;
|
|
2739
|
+
}), e.expose(c.value);
|
|
2740
|
+
const b = W(() => J({
|
|
2650
2741
|
"f-toolbar": !0,
|
|
2651
2742
|
"f-response-toolbar": !0,
|
|
2652
2743
|
"position-relative": !0
|
|
2653
|
-
})),
|
|
2744
|
+
}, s.customClass)), y = W(() => ({
|
|
2654
2745
|
"d-flex": !0,
|
|
2655
2746
|
"flex-nowrap": !0,
|
|
2656
|
-
"justify-content-end":
|
|
2657
|
-
"justify-content-start":
|
|
2747
|
+
"justify-content-end": h.value === "right",
|
|
2748
|
+
"justify-content-start": h.value === "left"
|
|
2658
2749
|
})), {
|
|
2659
2750
|
renderToolbarDropdown: T,
|
|
2660
2751
|
clearAllDropDown: O
|
|
2661
|
-
} =
|
|
2752
|
+
} = mt(s, g, c);
|
|
2662
2753
|
function P() {
|
|
2663
2754
|
o.value.filter((a) => a.children && a.children.length > 0).forEach((a) => {
|
|
2664
2755
|
a.expanded = !1;
|
|
2665
|
-
}),
|
|
2756
|
+
}), I.value.expanded = !1, O();
|
|
2666
2757
|
}
|
|
2667
|
-
const
|
|
2758
|
+
const k = /* @__PURE__ */ new Map(), N = [];
|
|
2668
2759
|
function j(a) {
|
|
2669
|
-
const n =
|
|
2760
|
+
const n = v.value;
|
|
2670
2761
|
let t = a;
|
|
2671
|
-
const r = Array.from(n.children),
|
|
2672
|
-
if (
|
|
2673
|
-
const _ =
|
|
2762
|
+
const r = Array.from(n.children), d = r[r.length - 1].id === "__more_buttons__" ? r[r.length - 1] : null;
|
|
2763
|
+
if (d) {
|
|
2764
|
+
const _ = d.computedStyleMap().get("margin-left"), $ = d.computedStyleMap().get("margin-right"), V = (_ ? _.value : 0) + d.getBoundingClientRect().width + ($ ? $.value : 0);
|
|
2674
2765
|
t -= V;
|
|
2675
2766
|
}
|
|
2676
|
-
const
|
|
2677
|
-
for (const _ of
|
|
2767
|
+
const E = r.filter((_) => _.id !== "__more_buttons__");
|
|
2768
|
+
for (const _ of E) {
|
|
2678
2769
|
const $ = _.computedStyleMap().get("margin-left"), V = _.computedStyleMap().get("margin-right"), U = ($ ? $.value : 0) + _.getBoundingClientRect().width + (V ? V.value : 0);
|
|
2679
|
-
t < U ? (
|
|
2770
|
+
t < U ? (k.set(_.id, !0), N.push({
|
|
2680
2771
|
id: _.id,
|
|
2681
2772
|
width: U
|
|
2682
2773
|
})) : t -= U;
|
|
@@ -2685,26 +2776,26 @@ const je = /* @__PURE__ */ Q({
|
|
|
2685
2776
|
for (let _ = N.length - 1; _ >= 0; _--) {
|
|
2686
2777
|
const $ = N[_].width;
|
|
2687
2778
|
if (t >= $)
|
|
2688
|
-
t -= $,
|
|
2779
|
+
t -= $, k.delete(N[_].id), N.pop();
|
|
2689
2780
|
else
|
|
2690
2781
|
break;
|
|
2691
2782
|
}
|
|
2692
|
-
const x = Object.assign({},
|
|
2783
|
+
const x = Object.assign({}, I.value);
|
|
2693
2784
|
x.children = [];
|
|
2694
|
-
const M = new G(x), F = o.value.reduce((_, $) => (
|
|
2695
|
-
|
|
2785
|
+
const M = new G(x), F = o.value.reduce((_, $) => (k.has($.id) && M.children.push($), $.visible = !k.has($.id), _.push($), _), []);
|
|
2786
|
+
I.value = M, o.value = F;
|
|
2696
2787
|
}
|
|
2697
|
-
const
|
|
2788
|
+
const m = new ResizeObserver((a) => {
|
|
2698
2789
|
if (a.length) {
|
|
2699
|
-
const t = a[0].contentRect.width,
|
|
2700
|
-
(t <
|
|
2790
|
+
const t = a[0].contentRect.width, d = v.value.getBoundingClientRect().width;
|
|
2791
|
+
(t < d || N.length) && j(t);
|
|
2701
2792
|
}
|
|
2702
2793
|
});
|
|
2703
2794
|
z(() => {
|
|
2704
|
-
const a =
|
|
2705
|
-
|
|
2706
|
-
}),
|
|
2707
|
-
|
|
2795
|
+
const a = u.value;
|
|
2796
|
+
m.observe(a), document.body.addEventListener("click", P);
|
|
2797
|
+
}), ne(() => {
|
|
2798
|
+
m.disconnect(), document.body.removeEventListener("click", P);
|
|
2708
2799
|
}), H(() => s.items, () => {
|
|
2709
2800
|
o.value = s.items;
|
|
2710
2801
|
}, {
|
|
@@ -2712,25 +2803,25 @@ const je = /* @__PURE__ */ Q({
|
|
|
2712
2803
|
}), H(o, (a) => {
|
|
2713
2804
|
p = new Array(o.value.length).fill(S());
|
|
2714
2805
|
});
|
|
2715
|
-
function
|
|
2716
|
-
|
|
2806
|
+
function R(a, n, t, r) {
|
|
2807
|
+
i && i.setupContext && i.setupContext.emit("selectionChange", a, n, t, r);
|
|
2717
2808
|
}
|
|
2718
|
-
function
|
|
2719
|
-
const a =
|
|
2809
|
+
function A() {
|
|
2810
|
+
const a = v.value.querySelector(".dgComponentFocused.dgComponentSelected");
|
|
2720
2811
|
a == null || a.classList.remove("dgComponentSelected"), a == null || a.classList.remove("dgComponentFocused");
|
|
2721
2812
|
}
|
|
2722
2813
|
return () => w("div", {
|
|
2723
|
-
ref:
|
|
2724
|
-
"data-dragref": `${
|
|
2725
|
-
class:
|
|
2814
|
+
ref: C,
|
|
2815
|
+
"data-dragref": `${i.schema.id}-container`,
|
|
2816
|
+
class: b.value
|
|
2726
2817
|
}, [w("div", {
|
|
2727
|
-
ref:
|
|
2728
|
-
class:
|
|
2818
|
+
ref: u,
|
|
2819
|
+
class: y.value
|
|
2729
2820
|
}, [w("div", {
|
|
2730
|
-
ref:
|
|
2821
|
+
ref: v,
|
|
2731
2822
|
class: "d-inline-block f-response-content",
|
|
2732
2823
|
style: "white-space: nowrap;"
|
|
2733
|
-
}, [o.value.map((a, n) => w(
|
|
2824
|
+
}, [o.value.map((a, n) => w(St, {
|
|
2734
2825
|
ref: p[n],
|
|
2735
2826
|
class: "p-0 display-inline-block",
|
|
2736
2827
|
modelValue: a,
|
|
@@ -2742,31 +2833,36 @@ const je = /* @__PURE__ */ Q({
|
|
|
2742
2833
|
componentId: s.componentId,
|
|
2743
2834
|
id: a.id,
|
|
2744
2835
|
style: "padding:0 !important;display:inline-block",
|
|
2745
|
-
onSelectionChange:
|
|
2746
|
-
onRemoveComponent:
|
|
2836
|
+
onSelectionChange: R,
|
|
2837
|
+
onRemoveComponent: A
|
|
2747
2838
|
}, {
|
|
2748
|
-
default: () =>
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2839
|
+
default: () => {
|
|
2840
|
+
var t;
|
|
2841
|
+
return [w(je, {
|
|
2842
|
+
id: a.id,
|
|
2843
|
+
disable: a.disable,
|
|
2844
|
+
text: a.text,
|
|
2845
|
+
icon: a.icon,
|
|
2846
|
+
class: ((t = a.appearance) == null ? void 0 : t.class) || "btn-secondary",
|
|
2847
|
+
alignment: s.alignment || "right",
|
|
2848
|
+
componentId: s.componentId
|
|
2849
|
+
}, null)];
|
|
2850
|
+
}
|
|
2755
2851
|
}))])])]);
|
|
2756
2852
|
}
|
|
2757
|
-
}),
|
|
2758
|
-
|
|
2759
|
-
s["response-toolbar"] =
|
|
2853
|
+
}), Vt = ce;
|
|
2854
|
+
Q.register = (s, e, o) => {
|
|
2855
|
+
s["response-toolbar"] = Q, e["response-toolbar"] = ce;
|
|
2760
2856
|
};
|
|
2761
|
-
|
|
2762
|
-
s["response-toolbar"] =
|
|
2857
|
+
Q.registerDesigner = (s, e, o) => {
|
|
2858
|
+
s["response-toolbar"] = Bt, e["response-toolbar"] = ce, s["response-toolbar-item"] = je, e["response-toolbar-item"] = dt;
|
|
2763
2859
|
};
|
|
2764
|
-
const
|
|
2860
|
+
const Wt = Ae(Q);
|
|
2765
2861
|
export {
|
|
2766
|
-
|
|
2862
|
+
Q as FResponseToolbar,
|
|
2767
2863
|
G as ResponseToolbarDropDownItem,
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2864
|
+
Lt as ResponseToolbarGroup,
|
|
2865
|
+
Be as ResponseToolbarItem,
|
|
2866
|
+
Wt as default,
|
|
2867
|
+
Vt as responseToolbarResolver
|
|
2772
2868
|
};
|