@farris/ui-vue 1.3.1 → 1.3.3
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 +103 -99
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +301 -351
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +444 -0
- package/components/binding-selector/index.umd.cjs +1 -0
- package/components/binding-selector/package.json +8 -0
- package/components/border-editor/index.esm.js +5 -3
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +143 -139
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +407 -396
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +266 -255
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +628 -641
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +379 -374
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +471 -471
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +155 -148
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +487 -478
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +330 -279
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1171 -1277
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +220 -204
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4743 -4641
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2916 -3019
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2375 -2590
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +9518 -1198
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +2 -1
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +34 -38
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +149 -138
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1602 -1740
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +159 -151
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +218 -218
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +311 -0
- package/components/event-parameter/index.umd.cjs +1 -0
- package/components/event-parameter/package.json +8 -0
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +533 -563
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +95 -91
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2356 -2455
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +3048 -3308
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +10537 -3249
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +9781 -1327
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +353 -341
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +510 -827
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +278 -268
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +144 -136
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +2139 -2237
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +6414 -6367
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +5216 -5114
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +252 -252
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +70 -70
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +486 -984
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +446 -498
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +363 -388
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1050 -1308
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +134 -131
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1072 -1082
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +412 -910
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +214 -203
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1361 -1536
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +650 -677
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +12344 -5048
- package/components/query-solution/index.umd.cjs +6 -1
- package/components/radio-button/index.esm.js +97 -97
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.css +1 -1
- package/components/radio-group/index.esm.js +1821 -565
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +251 -244
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +151 -140
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +707 -676
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +719 -740
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4977 -5249
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +145 -134
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +348 -337
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +141 -130
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +311 -301
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +231 -220
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +385 -432
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1932 -1914
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +351 -340
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +209 -199
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +388 -415
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +619 -666
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +493 -486
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3169 -3278
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2320 -2418
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +563 -554
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +287 -276
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +368 -324
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -487
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +51302 -47651
- package/farris.all.umd.cjs +14 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/binding-selector/index.d.ts +55 -0
- package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
- package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
- package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -6
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
- package/types/common/entity/entity-schema.d.ts +26 -11
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +2 -2
- package/types/condition/src/condition-fields.design.component.d.ts +18 -0
- package/types/condition/src/types.d.ts +6 -6
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
- package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
- package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +2 -2
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
- package/types/date-picker/src/components/month/month.component.d.ts +3 -3
- package/types/date-picker/src/components/year/year.component.d.ts +3 -3
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
- package/types/designer-canvas/src/composition/types.d.ts +49 -40
- package/types/designer-canvas/src/types.d.ts +8 -20
- package/types/dynamic-form/index.d.ts +1 -1
- package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
- package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
- package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
- package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
- package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
- package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
- package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
- package/types/event-parameter/index.d.ts +31 -0
- package/types/event-parameter/src/composition/type.d.ts +77 -0
- package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
- package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
- package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
- package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
- package/types/field-selector/src/field-selector.component.d.ts +1 -2
- package/types/field-selector/src/field-selector.props.d.ts +0 -9
- package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
- package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
- package/types/list-view/src/list-view-table.component.d.ts +15 -0
- package/types/lookup/src/composition/use-user-data.d.ts +2 -2
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
- package/types/modal/src/composition/modal.service.d.ts +2 -1
- package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
- package/types/page-header/src/page-header.component.d.ts +1 -1
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
- package/types/property-panel/src/composition/type.d.ts +0 -13
- package/types/query-solution/src/composition/types.d.ts +35 -4
- package/types/query-solution/src/composition/use-header.d.ts +21 -0
- package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
- package/types/query-solution/src/composition/use-solution.d.ts +20 -0
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
- package/types/query-solution/src/query-solution.d.ts +10 -2
- package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
- package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
- package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
- package/types/section/src/property-config/section.property-config.d.ts +17 -17
- package/types/section/src/schema/schema-resolver.d.ts +1 -2
- package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
- package/types/tabs/src/composition/types.d.ts +4 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
- package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
- package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
- package/types/text/src/composition/types.d.ts +4 -4
- package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
- package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
- package/types/weather/src/composition/use-weather-color.d.ts +15 -0
- package/types/weather/src/composition/use-weather-data.d.ts +15 -0
- package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
- package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
- package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
- package/types/weather/src/composition/types.d.ts +0 -2
- /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
- /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
|
@@ -1,103 +1,107 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var R = (
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { isPlainObject as ue, cloneDeep as
|
|
6
|
-
import
|
|
7
|
-
import { getCustomClass as
|
|
8
|
-
import { useDesignerInnerComponent as
|
|
9
|
-
const
|
|
10
|
-
function re(
|
|
11
|
-
const { properties: e, title: t, ignore: s } =
|
|
12
|
-
|
|
1
|
+
var Ie = Object.defineProperty;
|
|
2
|
+
var Ae = (o, e, t) => e in o ? Ie(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var R = (o, e, t) => Ae(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as W, ref as M, computed as F, watch as z, createVNode as m, createTextVNode as X, getCurrentInstance as he, onMounted as G, onUnmounted as be, inject as V, provide as Oe, onBeforeUnmount as je, withModifiers as _e } from "vue";
|
|
5
|
+
import { isPlainObject as ue, cloneDeep as ye } from "lodash-es";
|
|
6
|
+
import $e from "../response-toolbar/index.esm.js";
|
|
7
|
+
import { getCustomClass as Z, withInstall as Fe } from "../common/index.esm.js";
|
|
8
|
+
import { useDesignerInnerComponent as ve } from "../designer-canvas/index.esm.js";
|
|
9
|
+
const Ce = {}, we = {};
|
|
10
|
+
function re(o) {
|
|
11
|
+
const { properties: e, title: t, ignore: s } = o, i = s && Array.isArray(s), u = Object.keys(e).reduce((d, g) => ((!i || !s.find((w) => w === g)) && (d[g] = e[g].type === "object" && e[g].properties ? re(e[g]) : ye(e[g].default)), d), {});
|
|
12
|
+
if (t && (!i || !s.find((d) => d === "id"))) {
|
|
13
|
+
const d = t.toLowerCase().replace(/-/g, "_");
|
|
14
|
+
u.id = `${d}_${Math.random().toString().slice(2, 6)}`;
|
|
15
|
+
}
|
|
16
|
+
return u;
|
|
13
17
|
}
|
|
14
|
-
function
|
|
15
|
-
const s =
|
|
18
|
+
function Y(o, e = {}, t) {
|
|
19
|
+
const s = Ce[o];
|
|
16
20
|
if (s) {
|
|
17
21
|
let i = re(s);
|
|
18
|
-
const
|
|
19
|
-
return i =
|
|
22
|
+
const u = we[o];
|
|
23
|
+
return i = u ? u({ getSchemaByType: Y }, i, e, t) : i, i;
|
|
20
24
|
}
|
|
21
25
|
return null;
|
|
22
26
|
}
|
|
23
|
-
function
|
|
27
|
+
function Ne(o, e) {
|
|
24
28
|
const t = re(e);
|
|
25
|
-
return Object.keys(
|
|
29
|
+
return Object.keys(t).reduce((s, i) => (s[i] && ue(s[i]) && ue(o[i] || !o[i]) ? Object.assign(s[i], o[i] || {}) : s[i] = o[i], s), t), t;
|
|
26
30
|
}
|
|
27
|
-
function
|
|
28
|
-
return Object.keys(
|
|
31
|
+
function Le(o, e) {
|
|
32
|
+
return Object.keys(o).filter((s) => o[s] != null).reduce((s, i) => {
|
|
29
33
|
if (e.has(i)) {
|
|
30
|
-
const
|
|
31
|
-
if (typeof
|
|
32
|
-
s[
|
|
34
|
+
const u = e.get(i);
|
|
35
|
+
if (typeof u == "string")
|
|
36
|
+
s[u] = o[i];
|
|
33
37
|
else {
|
|
34
|
-
const
|
|
35
|
-
Object.assign(s,
|
|
38
|
+
const d = u(i, o[i], o);
|
|
39
|
+
Object.assign(s, d);
|
|
36
40
|
}
|
|
37
41
|
} else
|
|
38
|
-
s[i] =
|
|
42
|
+
s[i] = o[i];
|
|
39
43
|
return s;
|
|
40
44
|
}, {});
|
|
41
45
|
}
|
|
42
|
-
function
|
|
43
|
-
const s =
|
|
44
|
-
return
|
|
46
|
+
function Ve(o, e, t = /* @__PURE__ */ new Map()) {
|
|
47
|
+
const s = Ne(o, e);
|
|
48
|
+
return Le(s, t);
|
|
45
49
|
}
|
|
46
|
-
function
|
|
47
|
-
function e(h, b,
|
|
48
|
-
if (typeof
|
|
49
|
-
return
|
|
50
|
-
if (typeof
|
|
51
|
-
const f = Object.keys(
|
|
50
|
+
function Ue(o = {}) {
|
|
51
|
+
function e(h, b, c, l) {
|
|
52
|
+
if (typeof c == "number")
|
|
53
|
+
return l[h].length === c;
|
|
54
|
+
if (typeof c == "object") {
|
|
55
|
+
const f = Object.keys(c)[0], v = c[f];
|
|
52
56
|
if (f === "not")
|
|
53
|
-
return Number(
|
|
57
|
+
return Number(l[h].length) !== Number(v);
|
|
54
58
|
if (f === "moreThan")
|
|
55
|
-
return Number(
|
|
59
|
+
return Number(l[h].length) >= Number(v);
|
|
56
60
|
if (f === "lessThan")
|
|
57
|
-
return Number(
|
|
61
|
+
return Number(l[h].length) <= Number(v);
|
|
58
62
|
}
|
|
59
63
|
return !1;
|
|
60
64
|
}
|
|
61
|
-
function t(h, b,
|
|
62
|
-
return
|
|
65
|
+
function t(h, b, c, l) {
|
|
66
|
+
return l[h] && l[h].propertyValue && String(l[h].propertyValue.value) === String(c);
|
|
63
67
|
}
|
|
64
68
|
const s = /* @__PURE__ */ new Map([
|
|
65
69
|
["length", e],
|
|
66
70
|
["getProperty", t]
|
|
67
71
|
]);
|
|
68
|
-
Object.keys(
|
|
72
|
+
Object.keys(o).reduce((h, b) => (h.set(b, o[b]), h), s);
|
|
69
73
|
function i(h, b) {
|
|
70
|
-
const
|
|
71
|
-
return typeof b == "number" ? [{ target:
|
|
72
|
-
if (
|
|
73
|
-
return { target:
|
|
74
|
-
const f =
|
|
75
|
-
return { target:
|
|
74
|
+
const c = h;
|
|
75
|
+
return typeof b == "number" ? [{ target: c, operator: "length", param: null, value: Number(b) }] : typeof b == "boolean" ? [{ target: c, operator: "getProperty", param: h, value: !!b }] : typeof b == "object" ? Object.keys(b).map((l) => {
|
|
76
|
+
if (l === "length")
|
|
77
|
+
return { target: c, operator: "length", param: null, value: b[l] };
|
|
78
|
+
const f = l, v = b[l];
|
|
79
|
+
return { target: c, operator: "getProperty", param: f, value: v };
|
|
76
80
|
}) : [];
|
|
77
81
|
}
|
|
78
|
-
function
|
|
79
|
-
return Object.keys(h).reduce((
|
|
80
|
-
const f = i(
|
|
81
|
-
return
|
|
82
|
+
function u(h) {
|
|
83
|
+
return Object.keys(h).reduce((c, l) => {
|
|
84
|
+
const f = i(l, h[l]);
|
|
85
|
+
return c.push(...f), c;
|
|
82
86
|
}, []);
|
|
83
87
|
}
|
|
84
|
-
function
|
|
88
|
+
function d(h, b) {
|
|
85
89
|
if (s.has(h.operator)) {
|
|
86
|
-
const
|
|
87
|
-
return
|
|
90
|
+
const c = s.get(h.operator);
|
|
91
|
+
return c && c(h.target, h.param, h.value, b) || !1;
|
|
88
92
|
}
|
|
89
93
|
return !1;
|
|
90
94
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
95
|
+
function g(h, b) {
|
|
96
|
+
return u(h).reduce((f, v) => f && d(v, b), !0);
|
|
93
97
|
}
|
|
94
98
|
function w(h, b) {
|
|
95
|
-
const
|
|
96
|
-
return
|
|
99
|
+
const c = Object.keys(h), l = c.includes("allOf"), f = c.includes("anyOf"), v = l || f, j = (v ? h[v ? l ? "allOf" : "anyOf" : "allOf"] : [h]).map((D) => g(D, b));
|
|
100
|
+
return l ? !j.includes(!1) : j.includes(!0);
|
|
97
101
|
}
|
|
98
102
|
return { parseValueSchema: w };
|
|
99
103
|
}
|
|
100
|
-
const
|
|
104
|
+
const ee = {
|
|
101
105
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
102
106
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
103
107
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -135,45 +139,47 @@ const K = {
|
|
|
135
139
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
136
140
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
137
141
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
138
|
-
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
143
|
+
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
144
|
+
}, We = {}, qe = {};
|
|
145
|
+
Ue();
|
|
146
|
+
function ie(o, e, t = /* @__PURE__ */ new Map(), s = (d, g, w, h) => g, i = {}, u = (d) => d) {
|
|
147
|
+
return Ce[e.title] = e, we[e.title] = s, We[e.title] = i, qe[e.title] = u, (d = {}) => {
|
|
148
|
+
const g = Ve(d, e, t), w = Object.keys(o).reduce((h, b) => (h[b] = o[b].default, h), {});
|
|
149
|
+
return Object.assign(w, g);
|
|
145
150
|
};
|
|
146
151
|
}
|
|
147
|
-
function
|
|
152
|
+
function Pe(o, e) {
|
|
148
153
|
return { customClass: e.class, customStyle: e.style };
|
|
149
154
|
}
|
|
150
|
-
function
|
|
155
|
+
function He(o, e) {
|
|
156
|
+
var s, i;
|
|
151
157
|
const t = [];
|
|
152
|
-
return e == null || e.buttons.map((
|
|
153
|
-
const
|
|
154
|
-
Object.keys(
|
|
155
|
-
var
|
|
156
|
-
|
|
157
|
-
}), t.push(
|
|
158
|
-
}), { buttons: t };
|
|
158
|
+
return e == null || e.buttons.map((u) => {
|
|
159
|
+
const d = {};
|
|
160
|
+
Object.keys(u).map((g) => {
|
|
161
|
+
var w;
|
|
162
|
+
g === "appearance" ? d.class = ((w = u[g]) == null ? void 0 : w.class) || "" : d[g] = u[g];
|
|
163
|
+
}), t.push(d);
|
|
164
|
+
}), (s = e.appearance) != null && s.class ? { buttons: t, buttonClass: (i = e.appearance) == null ? void 0 : i.class } : { buttons: t };
|
|
159
165
|
}
|
|
160
|
-
function
|
|
161
|
-
function
|
|
162
|
-
var
|
|
163
|
-
const s = (
|
|
166
|
+
function ze() {
|
|
167
|
+
function o(e, t) {
|
|
168
|
+
var g;
|
|
169
|
+
const s = (g = e.toolbar) == null ? void 0 : g.buttons;
|
|
164
170
|
if (!s || s.length < 1)
|
|
165
171
|
return null;
|
|
166
|
-
const [i,
|
|
167
|
-
return
|
|
172
|
+
const [i, u] = t.payloads, d = s.find((w) => w.id === u);
|
|
173
|
+
return d ? d.onClick || d.click : null;
|
|
168
174
|
}
|
|
169
175
|
return {
|
|
170
|
-
resolve:
|
|
176
|
+
resolve: o
|
|
171
177
|
};
|
|
172
178
|
}
|
|
173
|
-
const
|
|
174
|
-
["appearance",
|
|
175
|
-
["toolbar",
|
|
176
|
-
]),
|
|
179
|
+
const Ge = /* @__PURE__ */ new Map([
|
|
180
|
+
["appearance", Pe],
|
|
181
|
+
["toolbar", He]
|
|
182
|
+
]), Qe = "https://json-schema.org/draft/2020-12/schema", Je = "https://farris-design.gitee.io/page-header.schema.json", Xe = "page-header", Ye = "A Farris Container Component", Ze = "object", Ke = {
|
|
177
183
|
id: {
|
|
178
184
|
description: "The unique identifier for a Page Header",
|
|
179
185
|
type: "string"
|
|
@@ -225,12 +231,22 @@ const Qe = /* @__PURE__ */ new Map([
|
|
|
225
231
|
description: "",
|
|
226
232
|
type: "object",
|
|
227
233
|
properties: {
|
|
234
|
+
appearance: {
|
|
235
|
+
description: "",
|
|
236
|
+
type: "object",
|
|
237
|
+
properties: {
|
|
238
|
+
class: {
|
|
239
|
+
type: "string",
|
|
240
|
+
default: "col-6"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
228
244
|
id: {
|
|
229
|
-
description: "
|
|
245
|
+
description: "",
|
|
230
246
|
type: "string"
|
|
231
247
|
},
|
|
232
248
|
type: {
|
|
233
|
-
description: "
|
|
249
|
+
description: "",
|
|
234
250
|
type: "string",
|
|
235
251
|
default: "response-toolbar"
|
|
236
252
|
},
|
|
@@ -281,15 +297,15 @@ const Qe = /* @__PURE__ */ new Map([
|
|
|
281
297
|
type: "boolean",
|
|
282
298
|
default: !1
|
|
283
299
|
}
|
|
284
|
-
},
|
|
285
|
-
$schema:
|
|
286
|
-
$id:
|
|
287
|
-
title:
|
|
288
|
-
description:
|
|
289
|
-
type:
|
|
290
|
-
properties:
|
|
300
|
+
}, et = {
|
|
301
|
+
$schema: Qe,
|
|
302
|
+
$id: Je,
|
|
303
|
+
title: Xe,
|
|
304
|
+
description: Ye,
|
|
305
|
+
type: Ze,
|
|
306
|
+
properties: Ke
|
|
291
307
|
};
|
|
292
|
-
function
|
|
308
|
+
function tt(o, e, t) {
|
|
293
309
|
return e.title = "标题", e;
|
|
294
310
|
}
|
|
295
311
|
const ae = {
|
|
@@ -321,195 +337,200 @@ const ae = {
|
|
|
321
337
|
prePaginationDisabled: { type: Boolean, default: !0 },
|
|
322
338
|
/** 向后翻页是否禁用 */
|
|
323
339
|
nextPaginationDisabled: { type: Boolean, default: !1 }
|
|
324
|
-
},
|
|
340
|
+
}, nt = Object.assign({}, ae, {
|
|
325
341
|
componentId: { type: String, default: "" }
|
|
326
|
-
}), pe = ie(ae,
|
|
342
|
+
}), pe = ie(ae, et, Ge, tt), ot = ze(), oe = /* @__PURE__ */ W({
|
|
327
343
|
name: "FPageHeader",
|
|
328
344
|
props: ae,
|
|
329
|
-
emits: ["
|
|
330
|
-
setup(
|
|
331
|
-
const t =
|
|
332
|
-
e.emit("
|
|
345
|
+
emits: ["click", "prePaginationClick", "nextPaginationClick"],
|
|
346
|
+
setup(o, e) {
|
|
347
|
+
const t = M(o.buttons), s = (D, I) => {
|
|
348
|
+
e.emit("click", D, I);
|
|
333
349
|
};
|
|
334
|
-
function i(
|
|
335
|
-
|
|
350
|
+
function i(D, I) {
|
|
351
|
+
D && I && I.split(" ").reduce((k, y) => (k[y] = !0, k), D);
|
|
336
352
|
}
|
|
337
|
-
const
|
|
338
|
-
const
|
|
353
|
+
const u = F(() => {
|
|
354
|
+
const D = {
|
|
339
355
|
"f-page-header": !0
|
|
340
356
|
};
|
|
341
|
-
return i(
|
|
342
|
-
}),
|
|
343
|
-
const
|
|
357
|
+
return i(D, o.customClass), D;
|
|
358
|
+
}), d = F(() => {
|
|
359
|
+
const D = {
|
|
344
360
|
"f-title-icon": !0
|
|
345
361
|
};
|
|
346
|
-
return i(
|
|
347
|
-
}),
|
|
348
|
-
const
|
|
362
|
+
return i(D, o.iconClass), D;
|
|
363
|
+
}), g = F(() => {
|
|
364
|
+
const D = {
|
|
349
365
|
"f-icon": !0
|
|
350
366
|
};
|
|
351
|
-
return i(
|
|
352
|
-
}), w =
|
|
353
|
-
const
|
|
367
|
+
return i(D, o.icon), D;
|
|
368
|
+
}), w = F(() => {
|
|
369
|
+
const D = {
|
|
354
370
|
"f-title": !0
|
|
355
371
|
};
|
|
356
|
-
return i(
|
|
357
|
-
}), h =
|
|
358
|
-
const
|
|
372
|
+
return i(D, o.titleContentClass), D;
|
|
373
|
+
}), h = F(() => {
|
|
374
|
+
const D = {
|
|
359
375
|
"f-content": !0
|
|
360
376
|
};
|
|
361
|
-
return i(
|
|
362
|
-
}), b =
|
|
363
|
-
const
|
|
377
|
+
return i(D, o.contentClass), D;
|
|
378
|
+
}), b = F(() => {
|
|
379
|
+
const D = {
|
|
364
380
|
"f-content": !0
|
|
365
381
|
};
|
|
366
|
-
return i(
|
|
367
|
-
}),
|
|
382
|
+
return i(D, o.downContentClass), D;
|
|
383
|
+
}), c = F(() => ({
|
|
368
384
|
"f-icon f-icon-arrow-w": !0,
|
|
369
|
-
"f-state-disabled":
|
|
370
|
-
})),
|
|
385
|
+
"f-state-disabled": o.prePaginationDisabled
|
|
386
|
+
})), l = F(() => ({
|
|
371
387
|
"f-icon f-icon-arrow-e": !0,
|
|
372
|
-
"f-state-disabled":
|
|
388
|
+
"f-state-disabled": o.nextPaginationDisabled
|
|
373
389
|
}));
|
|
374
|
-
function f(
|
|
375
|
-
|
|
390
|
+
function f(D) {
|
|
391
|
+
o.prePaginationDisabled || e.emit("prePaginationClick", D);
|
|
376
392
|
}
|
|
377
|
-
function v(
|
|
378
|
-
|
|
393
|
+
function v(D) {
|
|
394
|
+
o.nextPaginationDisabled || e.emit("nextPaginationClick", D);
|
|
379
395
|
}
|
|
380
|
-
function
|
|
381
|
-
return e.slots.titleContent ?
|
|
396
|
+
function E() {
|
|
397
|
+
return e.slots.titleContent ? m("div", {
|
|
382
398
|
class: w.value
|
|
383
|
-
}, [
|
|
399
|
+
}, [X(" "), e.slots.titleContent()]) : m("div", {
|
|
384
400
|
class: "f-title"
|
|
385
|
-
}, [
|
|
386
|
-
class:
|
|
387
|
-
}, [
|
|
388
|
-
class:
|
|
389
|
-
}, null)]) : "",
|
|
401
|
+
}, [o.showIcon && o.icon ? m("span", {
|
|
402
|
+
class: d.value
|
|
403
|
+
}, [m("i", {
|
|
404
|
+
class: g.value
|
|
405
|
+
}, null)]) : "", m("h4", {
|
|
390
406
|
class: "f-title-text"
|
|
391
|
-
}, [
|
|
407
|
+
}, [o.title]), o.subTitle ? m("h5", {
|
|
392
408
|
class: "f-title-subtitle"
|
|
393
|
-
}, [
|
|
409
|
+
}, [o.subTitle]) : "", o.showPagination ? m("div", {
|
|
394
410
|
class: "f-title-pagination"
|
|
395
|
-
}, [
|
|
396
|
-
class: l.value,
|
|
397
|
-
onClick: f
|
|
398
|
-
}, null), g("span", {
|
|
411
|
+
}, [m("span", {
|
|
399
412
|
class: c.value,
|
|
413
|
+
onClick: f
|
|
414
|
+
}, null), m("span", {
|
|
415
|
+
class: l.value,
|
|
400
416
|
onClick: v
|
|
401
417
|
}, null)]) : ""]);
|
|
402
418
|
}
|
|
403
|
-
function
|
|
404
|
-
return e.slots.content ?
|
|
419
|
+
function O() {
|
|
420
|
+
return e.slots.content ? m("div", {
|
|
405
421
|
class: h.value
|
|
406
|
-
}, [
|
|
422
|
+
}, [X(" "), e.slots.content()]) : "";
|
|
407
423
|
}
|
|
408
|
-
function
|
|
409
|
-
if (
|
|
410
|
-
return
|
|
411
|
-
customClass:
|
|
424
|
+
function j() {
|
|
425
|
+
if (o.buttons && o.buttons.length > 0)
|
|
426
|
+
return m($e, {
|
|
427
|
+
customClass: o.buttonClass,
|
|
412
428
|
items: t.value,
|
|
413
429
|
onClick: s
|
|
414
430
|
}, null);
|
|
415
431
|
}
|
|
416
432
|
function _() {
|
|
417
|
-
return e.slots.downContent ?
|
|
433
|
+
return e.slots.downContent ? m("div", {
|
|
418
434
|
class: b.value
|
|
419
|
-
}, [
|
|
435
|
+
}, [X(" "), e.slots.downContent()]) : "";
|
|
420
436
|
}
|
|
421
|
-
return
|
|
422
|
-
t.value =
|
|
437
|
+
return z(() => o.buttons, (D) => {
|
|
438
|
+
t.value = D;
|
|
423
439
|
}, {
|
|
424
440
|
deep: !0
|
|
425
|
-
}), () =>
|
|
426
|
-
class:
|
|
427
|
-
}, [
|
|
441
|
+
}), () => m("div", {
|
|
442
|
+
class: u.value
|
|
443
|
+
}, [m("nav", {
|
|
428
444
|
class: "f-page-header-base"
|
|
429
|
-
}, [
|
|
445
|
+
}, [E(), O(), j()]), _()]);
|
|
430
446
|
}
|
|
431
447
|
});
|
|
432
|
-
function
|
|
433
|
-
var
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
}
|
|
437
|
-
s();
|
|
438
|
-
const i = t && t.getStyles && t.getStyles() || "", p = t && t.getDesignerClass && t.getDesignerClass() || "", u = S();
|
|
439
|
-
function y() {
|
|
448
|
+
function st(o, e, t) {
|
|
449
|
+
var I;
|
|
450
|
+
const s = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", u = M();
|
|
451
|
+
function d() {
|
|
440
452
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
441
453
|
}
|
|
442
|
-
function
|
|
454
|
+
function g() {
|
|
443
455
|
return !1;
|
|
444
456
|
}
|
|
445
|
-
function
|
|
457
|
+
function w() {
|
|
446
458
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
447
459
|
}
|
|
448
|
-
function
|
|
460
|
+
function h() {
|
|
449
461
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
450
462
|
}
|
|
451
|
-
function
|
|
452
|
-
if (!
|
|
463
|
+
function b(S) {
|
|
464
|
+
if (!S || !S.value)
|
|
453
465
|
return null;
|
|
454
|
-
if (
|
|
455
|
-
return
|
|
456
|
-
const
|
|
457
|
-
return
|
|
466
|
+
if (S.value.schema && S.value.schema.type === "component")
|
|
467
|
+
return S.value;
|
|
468
|
+
const k = M(S == null ? void 0 : S.value.parent), y = b(k);
|
|
469
|
+
return y || null;
|
|
458
470
|
}
|
|
459
|
-
function c(
|
|
460
|
-
const { componentInstance:
|
|
461
|
-
return !
|
|
471
|
+
function c(S = e) {
|
|
472
|
+
const { componentInstance: k, designerItemElementRef: y } = S;
|
|
473
|
+
return !k || !k.value ? null : k.value.canMove ? y : c(S.parent);
|
|
462
474
|
}
|
|
463
|
-
function
|
|
464
|
-
return !!t && t.canAccepts(
|
|
475
|
+
function l(S) {
|
|
476
|
+
return !!t && t.canAccepts(S);
|
|
465
477
|
}
|
|
466
|
-
function
|
|
478
|
+
function f() {
|
|
467
479
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
468
480
|
}
|
|
469
|
-
function
|
|
481
|
+
function v() {
|
|
470
482
|
}
|
|
471
|
-
function
|
|
472
|
-
|
|
483
|
+
function E(S, k) {
|
|
484
|
+
k && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(k);
|
|
473
485
|
}
|
|
474
|
-
function
|
|
475
|
-
const { componentType:
|
|
476
|
-
let
|
|
477
|
-
t && t.onResolveNewComponentSchema && (
|
|
478
|
-
const
|
|
479
|
-
return
|
|
486
|
+
function O(S, k) {
|
|
487
|
+
const { componentType: y } = S;
|
|
488
|
+
let x = Y(y, S, k);
|
|
489
|
+
t && t.onResolveNewComponentSchema && (x = t.onResolveNewComponentSchema(S, x));
|
|
490
|
+
const A = y.toLowerCase().replace(/-/g, "_");
|
|
491
|
+
return x && !x.id && x.type === y && (x.id = `${A}_${Math.random().toString().slice(2, 6)}`), x;
|
|
480
492
|
}
|
|
481
|
-
function
|
|
493
|
+
function j(S) {
|
|
482
494
|
}
|
|
483
|
-
function
|
|
495
|
+
function _(...S) {
|
|
484
496
|
if (t && t.getPropsConfig)
|
|
485
|
-
return t.getPropsConfig(...
|
|
497
|
+
return t.getPropsConfig(...S);
|
|
498
|
+
}
|
|
499
|
+
function D() {
|
|
500
|
+
t && t.onRemoveComponent && t.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((S) => {
|
|
501
|
+
var x;
|
|
502
|
+
let k = S.id;
|
|
503
|
+
S.type === "component-ref" && (k = S.component);
|
|
504
|
+
const y = o.value.querySelector(`#${k}-design-item`);
|
|
505
|
+
(x = y == null ? void 0 : y.componentInstance) != null && x.value.onRemoveComponent && y.componentInstance.value.onRemoveComponent();
|
|
506
|
+
});
|
|
486
507
|
}
|
|
487
508
|
return u.value = {
|
|
488
|
-
canMove:
|
|
489
|
-
canSelectParent:
|
|
490
|
-
canDelete:
|
|
491
|
-
canNested: !
|
|
509
|
+
canMove: d(),
|
|
510
|
+
canSelectParent: g(),
|
|
511
|
+
canDelete: w(),
|
|
512
|
+
canNested: !h(),
|
|
492
513
|
contents: e == null ? void 0 : e.schema.contents,
|
|
493
|
-
elementRef:
|
|
494
|
-
parent: (
|
|
514
|
+
elementRef: o,
|
|
515
|
+
parent: (I = e == null ? void 0 : e.parent) == null ? void 0 : I.componentInstance,
|
|
495
516
|
schema: e == null ? void 0 : e.schema,
|
|
496
|
-
styles:
|
|
497
|
-
designerClass:
|
|
498
|
-
canAccepts:
|
|
499
|
-
getBelongedComponentInstance:
|
|
517
|
+
styles: s,
|
|
518
|
+
designerClass: i,
|
|
519
|
+
canAccepts: l,
|
|
520
|
+
getBelongedComponentInstance: b,
|
|
500
521
|
getDraggableDesignItemElement: c,
|
|
501
|
-
getDraggingDisplayText:
|
|
502
|
-
getPropConfig:
|
|
503
|
-
getDragScopeElement:
|
|
504
|
-
onAcceptMovedChildElement:
|
|
505
|
-
onChildElementMovedOut:
|
|
506
|
-
addNewChildComponentSchema:
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
522
|
+
getDraggingDisplayText: f,
|
|
523
|
+
getPropConfig: _,
|
|
524
|
+
getDragScopeElement: v,
|
|
525
|
+
onAcceptMovedChildElement: E,
|
|
526
|
+
onChildElementMovedOut: j,
|
|
527
|
+
addNewChildComponentSchema: O,
|
|
528
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
|
|
529
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1),
|
|
530
|
+
onRemoveComponent: D
|
|
510
531
|
}, u;
|
|
511
532
|
}
|
|
512
|
-
class
|
|
533
|
+
class te {
|
|
513
534
|
constructor(e, t) {
|
|
514
535
|
R(this, "componentId");
|
|
515
536
|
R(this, "viewModelId");
|
|
@@ -534,13 +555,14 @@ class ee {
|
|
|
534
555
|
return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
|
|
535
556
|
}
|
|
536
557
|
setDesignViewModelField(e) {
|
|
558
|
+
var s;
|
|
537
559
|
const t = e.binding && e.binding.type === "Form" && e.binding.field;
|
|
538
560
|
if (t) {
|
|
539
561
|
if (!this.designViewModelField) {
|
|
540
|
-
const
|
|
541
|
-
this.designViewModelField =
|
|
562
|
+
const i = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
563
|
+
this.designViewModelField = i.fields.find((u) => u.id === t);
|
|
542
564
|
}
|
|
543
|
-
e.updateOn = this.designViewModelField.updateOn;
|
|
565
|
+
e.updateOn = (s = this.designViewModelField) == null ? void 0 : s.updateOn;
|
|
544
566
|
}
|
|
545
567
|
}
|
|
546
568
|
changeFieldEditorType(e, t) {
|
|
@@ -564,7 +586,7 @@ class ee {
|
|
|
564
586
|
type: "combo-list",
|
|
565
587
|
textField: "name",
|
|
566
588
|
valueField: "value",
|
|
567
|
-
data: [{ value: e.type, name:
|
|
589
|
+
data: [{ value: e.type, name: ee[e.type].name }]
|
|
568
590
|
}
|
|
569
591
|
}
|
|
570
592
|
}
|
|
@@ -600,11 +622,11 @@ class ee {
|
|
|
600
622
|
const s = t && t.parent && t.parent.schema;
|
|
601
623
|
if (!s)
|
|
602
624
|
return;
|
|
603
|
-
const i = s.contents.findIndex((
|
|
604
|
-
s.contents.splice(i, 1), s.contents.splice(i, 0,
|
|
625
|
+
const i = s.contents.findIndex((d) => d.id === e), u = ye(s.contents[i]);
|
|
626
|
+
s.contents.splice(i, 1), s.contents.splice(i, 0, u);
|
|
605
627
|
}
|
|
606
628
|
}
|
|
607
|
-
class
|
|
629
|
+
class rt extends te {
|
|
608
630
|
constructor(e, t) {
|
|
609
631
|
super(e, t);
|
|
610
632
|
}
|
|
@@ -630,7 +652,7 @@ class at extends ee {
|
|
|
630
652
|
type: "combo-list",
|
|
631
653
|
textField: "value",
|
|
632
654
|
valueField: "key",
|
|
633
|
-
data: [{ key: "page-header", value:
|
|
655
|
+
data: [{ key: "page-header", value: ee["page-header"].name }]
|
|
634
656
|
}
|
|
635
657
|
},
|
|
636
658
|
icon: {
|
|
@@ -661,12 +683,7 @@ class at extends ee {
|
|
|
661
683
|
description: "Appearance",
|
|
662
684
|
properties: {
|
|
663
685
|
class: {
|
|
664
|
-
title: "class",
|
|
665
|
-
type: "string",
|
|
666
|
-
description: ""
|
|
667
|
-
},
|
|
668
|
-
style: {
|
|
669
|
-
title: "style",
|
|
686
|
+
title: "class样式",
|
|
670
687
|
type: "string",
|
|
671
688
|
description: ""
|
|
672
689
|
}
|
|
@@ -695,15 +712,15 @@ class at extends ee {
|
|
|
695
712
|
refreshPanelAfterChanged: !0,
|
|
696
713
|
tabId: "commands",
|
|
697
714
|
tabName: "交互",
|
|
698
|
-
setPropertyRelates(
|
|
699
|
-
const
|
|
700
|
-
delete e[s.viewModelId],
|
|
715
|
+
setPropertyRelates(u, d) {
|
|
716
|
+
const g = u.propertyValue;
|
|
717
|
+
delete e[s.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, g.events, g));
|
|
701
718
|
}
|
|
702
719
|
};
|
|
703
720
|
}
|
|
704
721
|
}
|
|
705
|
-
function
|
|
706
|
-
function t(
|
|
722
|
+
function it(o, e) {
|
|
723
|
+
function t(g) {
|
|
707
724
|
return !1;
|
|
708
725
|
}
|
|
709
726
|
function s() {
|
|
@@ -712,21 +729,21 @@ function lt(n, e) {
|
|
|
712
729
|
function i() {
|
|
713
730
|
return !1;
|
|
714
731
|
}
|
|
715
|
-
function
|
|
732
|
+
function u() {
|
|
716
733
|
return !0;
|
|
717
734
|
}
|
|
718
|
-
function
|
|
719
|
-
return new
|
|
735
|
+
function d(g) {
|
|
736
|
+
return new rt(g, e).getPropertyConfig(o);
|
|
720
737
|
}
|
|
721
738
|
return {
|
|
722
739
|
canAccepts: t,
|
|
723
|
-
hideNestedPaddingInDesginerView:
|
|
724
|
-
getPropsConfig:
|
|
740
|
+
hideNestedPaddingInDesginerView: u,
|
|
741
|
+
getPropsConfig: d,
|
|
725
742
|
checkCanDeleteComponent: s,
|
|
726
743
|
checkCanMoveComponent: i
|
|
727
744
|
};
|
|
728
745
|
}
|
|
729
|
-
class
|
|
746
|
+
class Se {
|
|
730
747
|
constructor(e) {
|
|
731
748
|
/** 工具栏项标识 */
|
|
732
749
|
R(this, "id", "");
|
|
@@ -777,7 +794,7 @@ class Te {
|
|
|
777
794
|
}
|
|
778
795
|
/** 是否可用 */
|
|
779
796
|
get enable() {
|
|
780
|
-
return Object.keys(this.options).indexOf("disabled") > -1 ? !this.options.disabled :
|
|
797
|
+
return Object.keys(this.options).indexOf("disabled") > -1 ? !this.options.disabled : F(() => !0);
|
|
781
798
|
}
|
|
782
799
|
/** 设置宽度 */
|
|
783
800
|
setWidth(e) {
|
|
@@ -788,20 +805,20 @@ class Te {
|
|
|
788
805
|
return this.visible ? this.width : !1;
|
|
789
806
|
}
|
|
790
807
|
}
|
|
791
|
-
class
|
|
808
|
+
class at extends Se {
|
|
792
809
|
constructor(e) {
|
|
793
810
|
super(e);
|
|
794
811
|
}
|
|
795
812
|
}
|
|
796
|
-
function
|
|
797
|
-
function
|
|
813
|
+
function Te() {
|
|
814
|
+
function o(e) {
|
|
798
815
|
const t = [];
|
|
799
|
-
return e.reduce((s, i) => (i.children && i.children.length > 0 ? s.push(new
|
|
816
|
+
return e.reduce((s, i) => (i.children && i.children.length > 0 ? s.push(new Q(i)) : s.push(new at(i)), s), t), t;
|
|
800
817
|
}
|
|
801
|
-
return { buildResponseToolbarItems:
|
|
818
|
+
return { buildResponseToolbarItems: o };
|
|
802
819
|
}
|
|
803
|
-
const { buildResponseToolbarItems:
|
|
804
|
-
class
|
|
820
|
+
const { buildResponseToolbarItems: ct } = Te();
|
|
821
|
+
class Q extends Se {
|
|
805
822
|
constructor(t) {
|
|
806
823
|
super(t);
|
|
807
824
|
R(this, "placement", "");
|
|
@@ -817,22 +834,23 @@ class z extends Te {
|
|
|
817
834
|
const s = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
|
|
818
835
|
Object.keys(t).filter((i) => s.indexOf(i) > -1).forEach((i) => {
|
|
819
836
|
this[i] = t[i];
|
|
820
|
-
}), t.children && t.children.length && (this.children =
|
|
837
|
+
}), t.children && t.children.length && (this.children = ct(t.children));
|
|
821
838
|
}
|
|
822
839
|
}
|
|
823
|
-
const
|
|
840
|
+
const lt = /* @__PURE__ */ new Map([
|
|
824
841
|
["buttons", "items"],
|
|
825
|
-
["appearance",
|
|
826
|
-
]), pt = /* @__PURE__ */ new Map([
|
|
827
|
-
["appearance", ft]
|
|
842
|
+
["appearance", Pe]
|
|
828
843
|
]);
|
|
829
|
-
function
|
|
844
|
+
function dt(o, e) {
|
|
830
845
|
return { class: e.class, style: e.style };
|
|
831
846
|
}
|
|
832
|
-
|
|
847
|
+
const ut = /* @__PURE__ */ new Map([
|
|
848
|
+
["appearance", dt]
|
|
849
|
+
]);
|
|
850
|
+
function De(o, e, t) {
|
|
833
851
|
return e;
|
|
834
852
|
}
|
|
835
|
-
const
|
|
853
|
+
const pt = "https://json-schema.org/draft/2020-12/schema", ft = "https://farris-design.gitee.io/response-toolbar.schema.json", mt = "response-toolbar", gt = "A Farris Toolbar Component", ht = "object", bt = {
|
|
836
854
|
id: {
|
|
837
855
|
description: "The unique identifier for a Response Toolbar",
|
|
838
856
|
type: "string"
|
|
@@ -847,10 +865,10 @@ const gt = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
|
|
|
847
865
|
type: "object",
|
|
848
866
|
properties: {
|
|
849
867
|
class: {
|
|
850
|
-
type: "string"
|
|
868
|
+
type: "string",
|
|
869
|
+
default: ""
|
|
851
870
|
}
|
|
852
|
-
}
|
|
853
|
-
default: {}
|
|
871
|
+
}
|
|
854
872
|
},
|
|
855
873
|
alignment: {
|
|
856
874
|
description: "The alignment of Response Toolbar Button.",
|
|
@@ -862,19 +880,19 @@ const gt = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
|
|
|
862
880
|
type: "array",
|
|
863
881
|
default: []
|
|
864
882
|
}
|
|
865
|
-
},
|
|
883
|
+
}, yt = [
|
|
866
884
|
"id",
|
|
867
885
|
"type",
|
|
868
886
|
"buttons"
|
|
869
|
-
],
|
|
870
|
-
$schema:
|
|
871
|
-
$id:
|
|
872
|
-
title:
|
|
873
|
-
description:
|
|
874
|
-
type:
|
|
875
|
-
properties:
|
|
876
|
-
required:
|
|
877
|
-
},
|
|
887
|
+
], vt = {
|
|
888
|
+
$schema: pt,
|
|
889
|
+
$id: ft,
|
|
890
|
+
title: mt,
|
|
891
|
+
description: gt,
|
|
892
|
+
type: ht,
|
|
893
|
+
properties: bt,
|
|
894
|
+
required: yt
|
|
895
|
+
}, Ct = "https://json-schema.org/draft/2020-12/schema", wt = "https://farris-design.gitee.io/response-toolbar-item.schema.json", Pt = "response-toolbar-item", St = "A Farris Toolbar Item Component", Tt = "object", Dt = {
|
|
878
896
|
id: {
|
|
879
897
|
description: "The unique identifier for a Response Toolbar",
|
|
880
898
|
type: "string"
|
|
@@ -892,8 +910,7 @@ const gt = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
|
|
|
892
910
|
type: "string",
|
|
893
911
|
default: "btn-secondary"
|
|
894
912
|
}
|
|
895
|
-
}
|
|
896
|
-
default: {}
|
|
913
|
+
}
|
|
897
914
|
},
|
|
898
915
|
alignment: {
|
|
899
916
|
description: "对齐",
|
|
@@ -920,57 +937,19 @@ const gt = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
|
|
|
920
937
|
type: "string",
|
|
921
938
|
default: ""
|
|
922
939
|
}
|
|
923
|
-
},
|
|
940
|
+
}, Mt = [
|
|
924
941
|
"id",
|
|
925
942
|
"type",
|
|
926
943
|
"text"
|
|
927
|
-
],
|
|
928
|
-
$schema:
|
|
929
|
-
$id:
|
|
930
|
-
title:
|
|
944
|
+
], kt = {
|
|
945
|
+
$schema: Ct,
|
|
946
|
+
$id: wt,
|
|
947
|
+
title: Pt,
|
|
931
948
|
description: St,
|
|
932
|
-
type:
|
|
933
|
-
properties:
|
|
934
|
-
required:
|
|
935
|
-
},
|
|
936
|
-
basic: {
|
|
937
|
-
title: "基本信息",
|
|
938
|
-
description: "Basic Infomation",
|
|
939
|
-
properties: {
|
|
940
|
-
id: {
|
|
941
|
-
title: "标识",
|
|
942
|
-
type: "string",
|
|
943
|
-
description: "The identifier of a component.",
|
|
944
|
-
readonly: !0
|
|
945
|
-
},
|
|
946
|
-
type: {
|
|
947
|
-
title: "类型",
|
|
948
|
-
type: "enum",
|
|
949
|
-
description: "The type of a component.",
|
|
950
|
-
editor: {
|
|
951
|
-
type: "combo-list",
|
|
952
|
-
data: []
|
|
953
|
-
}
|
|
954
|
-
},
|
|
955
|
-
text: {
|
|
956
|
-
title: "文本",
|
|
957
|
-
type: "string",
|
|
958
|
-
description: "",
|
|
959
|
-
refreshPanelAfterChanged: !0
|
|
960
|
-
},
|
|
961
|
-
icon: {
|
|
962
|
-
title: "图标",
|
|
963
|
-
type: "string",
|
|
964
|
-
description: ""
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
}, fe = {
|
|
969
|
-
title: Et,
|
|
970
|
-
description: Bt,
|
|
971
|
-
type: It,
|
|
972
|
-
categories: Rt
|
|
973
|
-
}, le = {
|
|
949
|
+
type: Tt,
|
|
950
|
+
properties: Dt,
|
|
951
|
+
required: Mt
|
|
952
|
+
}, ce = {
|
|
974
953
|
/** 组件自定义样式 */
|
|
975
954
|
customClass: { type: String, default: "" },
|
|
976
955
|
alignment: { Type: String, default: "right" },
|
|
@@ -978,16 +957,13 @@ const gt = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
|
|
|
978
957
|
Type: Array,
|
|
979
958
|
default: []
|
|
980
959
|
}
|
|
981
|
-
}
|
|
982
|
-
se[oe.title] = oe;
|
|
983
|
-
Pe[fe.title] = fe;
|
|
984
|
-
const At = Object.assign({}, le, {
|
|
960
|
+
}, Et = Object.assign({}, ce, {
|
|
985
961
|
componentId: { type: String, default: "" }
|
|
986
|
-
}),
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
962
|
+
}), le = ie(
|
|
963
|
+
ce,
|
|
964
|
+
vt,
|
|
965
|
+
lt,
|
|
966
|
+
De
|
|
991
967
|
), Me = {
|
|
992
968
|
id: { type: String, default: "" },
|
|
993
969
|
items: { type: Object, default: {} },
|
|
@@ -997,183 +973,183 @@ const At = Object.assign({}, le, {
|
|
|
997
973
|
icon: { type: String, default: "" },
|
|
998
974
|
componentId: { type: String, default: "" },
|
|
999
975
|
alignment: { Type: String, default: "right" }
|
|
1000
|
-
},
|
|
976
|
+
}, xt = ie(
|
|
1001
977
|
Me,
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
978
|
+
kt,
|
|
979
|
+
ut,
|
|
980
|
+
De
|
|
1005
981
|
);
|
|
1006
|
-
function
|
|
1007
|
-
function
|
|
982
|
+
function ke() {
|
|
983
|
+
function o(t) {
|
|
1008
984
|
const s = {
|
|
1009
985
|
"f-icon": !0
|
|
1010
986
|
};
|
|
1011
987
|
if (t.icon) {
|
|
1012
988
|
const i = t.icon.trim().split(" ");
|
|
1013
|
-
i && i.length && i.reduce((
|
|
989
|
+
i && i.length && i.reduce((u, d) => (u[d] = !0, u), s);
|
|
1014
990
|
}
|
|
1015
991
|
return s;
|
|
1016
992
|
}
|
|
1017
993
|
function e(t) {
|
|
1018
994
|
return !!(t.icon && t.icon.trim());
|
|
1019
995
|
}
|
|
1020
|
-
return { iconClass:
|
|
996
|
+
return { iconClass: o, shouldShowIcon: e };
|
|
1021
997
|
}
|
|
1022
|
-
function
|
|
1023
|
-
function e(
|
|
1024
|
-
const
|
|
998
|
+
function Bt(o) {
|
|
999
|
+
function e(c) {
|
|
1000
|
+
const l = {
|
|
1025
1001
|
"dropdown-menu": !0
|
|
1026
1002
|
};
|
|
1027
|
-
if (
|
|
1028
|
-
const f =
|
|
1029
|
-
f && f.length && f.reduce((v,
|
|
1003
|
+
if (c.class) {
|
|
1004
|
+
const f = c.menuClass.split(" ");
|
|
1005
|
+
f && f.length && f.reduce((v, E) => (v[E] = !0, v), l);
|
|
1030
1006
|
}
|
|
1031
|
-
return
|
|
1007
|
+
return l;
|
|
1032
1008
|
}
|
|
1033
|
-
function t(
|
|
1034
|
-
const
|
|
1035
|
-
disabled: !
|
|
1009
|
+
function t(c) {
|
|
1010
|
+
const l = {
|
|
1011
|
+
disabled: !c.enable,
|
|
1036
1012
|
"dropdown-submenu": !0,
|
|
1037
1013
|
"f-rt-dropdown": !0
|
|
1038
|
-
}, f =
|
|
1039
|
-
return f && f.length && f.reduce((v,
|
|
1014
|
+
}, f = c.dropdownClass.split(" ");
|
|
1015
|
+
return f && f.length && f.reduce((v, E) => (v[E] = !0, v), l), l;
|
|
1040
1016
|
}
|
|
1041
|
-
function s(
|
|
1042
|
-
const
|
|
1043
|
-
disabled: !
|
|
1017
|
+
function s(c) {
|
|
1018
|
+
const l = {
|
|
1019
|
+
disabled: !c.enable,
|
|
1044
1020
|
"dropdown-item": !0,
|
|
1045
1021
|
"f-rt-btn": !0
|
|
1046
|
-
}, f =
|
|
1047
|
-
return f && f.length && f.reduce((v,
|
|
1022
|
+
}, f = c.class.split(" ");
|
|
1023
|
+
return f && f.length && f.reduce((v, E) => (v[E] = !0, v), l), l;
|
|
1048
1024
|
}
|
|
1049
1025
|
let i;
|
|
1050
|
-
const
|
|
1051
|
-
function
|
|
1052
|
-
var
|
|
1053
|
-
((
|
|
1026
|
+
const u = /* @__PURE__ */ new Map();
|
|
1027
|
+
function d(c, l, f) {
|
|
1028
|
+
var E;
|
|
1029
|
+
((E = c.target) == null ? void 0 : E.id) === l.id && c.stopPropagation();
|
|
1054
1030
|
const v = f ? f.id : "__top_item__";
|
|
1055
|
-
if (
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1031
|
+
if (l.children && l.children.length && (l.expanded = !l.expanded, l.expanded ? u.set(v, l) : u.delete(v)), u.has(v) && u.get(v) !== l) {
|
|
1032
|
+
const O = u.get(v);
|
|
1033
|
+
O && (O.expanded = !1);
|
|
1058
1034
|
}
|
|
1059
1035
|
}
|
|
1060
|
-
function
|
|
1061
|
-
document.body.click(),
|
|
1062
|
-
}
|
|
1063
|
-
function w(
|
|
1064
|
-
return
|
|
1065
|
-
class: t(
|
|
1066
|
-
id:
|
|
1067
|
-
onClick: (f) =>
|
|
1068
|
-
}, [
|
|
1069
|
-
id:
|
|
1070
|
-
class: s(
|
|
1071
|
-
onMouseover: (f) =>
|
|
1072
|
-
}, [
|
|
1036
|
+
function g(c, l) {
|
|
1037
|
+
document.body.click(), l.enable && l.onClick(c, l.id);
|
|
1038
|
+
}
|
|
1039
|
+
function w(c) {
|
|
1040
|
+
return c.children.map((l) => l.children && l.children.length ? m("li", {
|
|
1041
|
+
class: t(l),
|
|
1042
|
+
id: l.id,
|
|
1043
|
+
onClick: (f) => l.enable && d(f, l, c)
|
|
1044
|
+
}, [m("span", {
|
|
1045
|
+
id: l.id,
|
|
1046
|
+
class: s(l),
|
|
1047
|
+
onMouseover: (f) => l.enable && d(f, l, c)
|
|
1048
|
+
}, [l.text, m("i", {
|
|
1073
1049
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
1074
1050
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
1075
|
-
}, null)]), i(
|
|
1076
|
-
class: s(
|
|
1077
|
-
id:
|
|
1078
|
-
onClick: (f) =>
|
|
1079
|
-
onMouseover: (f) =>
|
|
1080
|
-
}, [
|
|
1081
|
-
class:
|
|
1082
|
-
}, null),
|
|
1083
|
-
}
|
|
1084
|
-
function h(
|
|
1051
|
+
}, null)]), i(l, l)]) : m("li", {
|
|
1052
|
+
class: s(l),
|
|
1053
|
+
id: l.id,
|
|
1054
|
+
onClick: (f) => g(f, l),
|
|
1055
|
+
onMouseover: (f) => l.enable && d(f, l, c)
|
|
1056
|
+
}, [o.shouldShowIcon(l) && m("i", {
|
|
1057
|
+
class: o.iconClass(l)
|
|
1058
|
+
}, null), l.text]));
|
|
1059
|
+
}
|
|
1060
|
+
function h(c, l, f) {
|
|
1085
1061
|
const v = {
|
|
1086
|
-
display:
|
|
1062
|
+
display: c.expanded ? "block" : "none",
|
|
1087
1063
|
position: "fixed",
|
|
1088
1064
|
maxWidth: "300px",
|
|
1089
1065
|
width: "auto",
|
|
1090
1066
|
minWidth: "120px"
|
|
1091
|
-
},
|
|
1092
|
-
if (
|
|
1067
|
+
}, E = document.getElementsByTagName("body")[0].getClientRects()[0].width, O = l, j = O == null ? void 0 : O.getClientRects();
|
|
1068
|
+
if (O && j && j.length) {
|
|
1093
1069
|
const {
|
|
1094
1070
|
top: _,
|
|
1095
|
-
width:
|
|
1096
|
-
left:
|
|
1097
|
-
right:
|
|
1098
|
-
height:
|
|
1099
|
-
} =
|
|
1100
|
-
v.top = `${
|
|
1101
|
-
const
|
|
1102
|
-
if (
|
|
1103
|
-
v.display === "block" && (
|
|
1104
|
-
const
|
|
1071
|
+
width: D,
|
|
1072
|
+
left: I,
|
|
1073
|
+
right: S,
|
|
1074
|
+
height: k
|
|
1075
|
+
} = j[0], y = Math.ceil(k + _);
|
|
1076
|
+
v.top = `${y}px`, v.left = `${I}px`;
|
|
1077
|
+
const x = c.id + "_menu", A = l ? l.querySelector("#" + x) : null;
|
|
1078
|
+
if (A) {
|
|
1079
|
+
v.display === "block" && (A.style.display = "block");
|
|
1080
|
+
const C = A.getBoundingClientRect();
|
|
1105
1081
|
if (f) {
|
|
1106
1082
|
v.top = `${_ - 6}px`;
|
|
1107
|
-
const r = Math.ceil(
|
|
1083
|
+
const r = Math.ceil(D + I);
|
|
1108
1084
|
v.left = `${r}px`;
|
|
1109
1085
|
}
|
|
1110
|
-
|
|
1086
|
+
E - I - D < C.width && (v.left = `${(f ? I : S) - C.width}px`);
|
|
1111
1087
|
}
|
|
1112
1088
|
}
|
|
1113
1089
|
return v;
|
|
1114
1090
|
}
|
|
1115
|
-
i = function(
|
|
1116
|
-
var
|
|
1117
|
-
const f =
|
|
1118
|
-
return
|
|
1119
|
-
class: e(
|
|
1120
|
-
style: h(
|
|
1121
|
-
id:
|
|
1122
|
-
}, [w(
|
|
1091
|
+
i = function(c, l) {
|
|
1092
|
+
var O, j;
|
|
1093
|
+
const f = he(), v = l ? l.id : c.id, E = (j = (O = f == null ? void 0 : f.exposed) == null ? void 0 : O.elementRef.value) == null ? void 0 : j.querySelector("#" + v);
|
|
1094
|
+
return m("ul", {
|
|
1095
|
+
class: e(c),
|
|
1096
|
+
style: h(c, E, l),
|
|
1097
|
+
id: c.id + "_menu"
|
|
1098
|
+
}, [w(c)]);
|
|
1123
1099
|
};
|
|
1124
1100
|
function b() {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
}),
|
|
1101
|
+
u.forEach((c) => {
|
|
1102
|
+
c.expanded = !1;
|
|
1103
|
+
}), u.clear();
|
|
1128
1104
|
}
|
|
1129
1105
|
return {
|
|
1130
1106
|
renderDropdownMenu: i,
|
|
1131
1107
|
clearAllDropDownMenu: b
|
|
1132
1108
|
};
|
|
1133
1109
|
}
|
|
1134
|
-
function
|
|
1135
|
-
const t =
|
|
1110
|
+
function Rt(o, e) {
|
|
1111
|
+
const t = M(o.alignment), {
|
|
1136
1112
|
renderDropdownMenu: s,
|
|
1137
1113
|
clearAllDropDownMenu: i
|
|
1138
|
-
} =
|
|
1139
|
-
function
|
|
1140
|
-
const
|
|
1114
|
+
} = Bt(e);
|
|
1115
|
+
function u(b) {
|
|
1116
|
+
const c = {
|
|
1141
1117
|
"btn-group": !0,
|
|
1142
1118
|
"f-rt-dropdown": !0,
|
|
1143
1119
|
"f-btn-ml": t.value === "right",
|
|
1144
1120
|
"f-btn-mr": t.value === "left"
|
|
1145
|
-
},
|
|
1146
|
-
return
|
|
1121
|
+
}, l = b.dropdownClass.split(" ");
|
|
1122
|
+
return l && l.length && l.reduce((f, v) => (f[v] = !0, f), c), c;
|
|
1147
1123
|
}
|
|
1148
|
-
function
|
|
1149
|
-
const
|
|
1124
|
+
function d(b) {
|
|
1125
|
+
const c = {
|
|
1150
1126
|
btn: !0,
|
|
1151
1127
|
disabled: !b.enable,
|
|
1152
1128
|
"f-rt-btn": !0,
|
|
1153
1129
|
"btn-icontext": !!(b.icon && b.icon.trim())
|
|
1154
1130
|
};
|
|
1155
1131
|
if (b.class) {
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1132
|
+
const l = b.class.split(" ");
|
|
1133
|
+
l && l.length && l.reduce((f, v) => (f[v] = !0, f), c);
|
|
1158
1134
|
}
|
|
1159
|
-
return
|
|
1135
|
+
return c;
|
|
1160
1136
|
}
|
|
1161
|
-
function
|
|
1137
|
+
function g(b, c) {
|
|
1162
1138
|
b.stopPropagation();
|
|
1163
|
-
const
|
|
1164
|
-
document.body.click(),
|
|
1139
|
+
const l = c.expanded;
|
|
1140
|
+
document.body.click(), c.expanded = !l;
|
|
1165
1141
|
}
|
|
1166
1142
|
function w(b) {
|
|
1167
|
-
return
|
|
1143
|
+
return m("div", {
|
|
1168
1144
|
id: b.id,
|
|
1169
|
-
class:
|
|
1170
|
-
}, [
|
|
1171
|
-
class:
|
|
1145
|
+
class: u(b)
|
|
1146
|
+
}, [m("div", {
|
|
1147
|
+
class: d(b),
|
|
1172
1148
|
style: "display: flex;padding-right: 0.1rem;border-top-right-radius: 6px;border-bottom-right-radius: 6px",
|
|
1173
|
-
onClick: (
|
|
1174
|
-
}, [e.shouldShowIcon(b) &&
|
|
1149
|
+
onClick: (c) => b.enable && g(c, b)
|
|
1150
|
+
}, [e.shouldShowIcon(b) && m("i", {
|
|
1175
1151
|
class: e.iconClass(b)
|
|
1176
|
-
}, null),
|
|
1152
|
+
}, null), m("span", null, [b.text]), m("i", {
|
|
1177
1153
|
class: "f-icon f-icon-arrow-chevron-down",
|
|
1178
1154
|
style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
|
|
1179
1155
|
}, null)]), s(b)]);
|
|
@@ -1187,553 +1163,567 @@ function $t(n, e) {
|
|
|
1187
1163
|
};
|
|
1188
1164
|
}
|
|
1189
1165
|
const {
|
|
1190
|
-
buildResponseToolbarItems:
|
|
1191
|
-
} =
|
|
1166
|
+
buildResponseToolbarItems: fe
|
|
1167
|
+
} = Te(), K = /* @__PURE__ */ W({
|
|
1192
1168
|
name: "FResponseToolbar",
|
|
1193
|
-
props:
|
|
1169
|
+
props: ce,
|
|
1194
1170
|
emits: ["click"],
|
|
1195
|
-
setup(
|
|
1196
|
-
const t =
|
|
1171
|
+
setup(o, e) {
|
|
1172
|
+
const t = M(fe(o.items)), s = M(), i = M(), u = M(), d = M(o.alignment), g = {
|
|
1197
1173
|
id: "__more_buttons__",
|
|
1198
1174
|
text: "更多"
|
|
1199
|
-
}, w =
|
|
1175
|
+
}, w = M(new Q(g)), h = ke(), b = F(() => w.value.children.length > 0), c = F(() => Z({
|
|
1200
1176
|
"f-toolbar": !0,
|
|
1201
1177
|
"f-response-toolbar": !0,
|
|
1202
1178
|
"position-relative": !0
|
|
1203
|
-
},
|
|
1179
|
+
}, o.customClass)), l = F(() => ({
|
|
1204
1180
|
"w-100": !0,
|
|
1205
1181
|
"d-flex": !0,
|
|
1206
1182
|
"flex-nowrap": !0,
|
|
1207
|
-
"justify-content-end":
|
|
1208
|
-
"justify-content-start":
|
|
1183
|
+
"justify-content-end": d.value === "right",
|
|
1184
|
+
"justify-content-start": d.value === "left"
|
|
1209
1185
|
})), {
|
|
1210
1186
|
renderToolbarDropdown: f,
|
|
1211
1187
|
clearAllDropDown: v
|
|
1212
|
-
} =
|
|
1213
|
-
function
|
|
1214
|
-
t.value.filter((
|
|
1215
|
-
|
|
1188
|
+
} = Rt(o, h);
|
|
1189
|
+
function E() {
|
|
1190
|
+
t.value.filter((y) => y.children && y.children.length > 0).forEach((y) => {
|
|
1191
|
+
y.expanded = !1;
|
|
1216
1192
|
}), w.value.expanded = !1, v();
|
|
1217
1193
|
}
|
|
1218
|
-
function
|
|
1219
|
-
const
|
|
1194
|
+
function O(y) {
|
|
1195
|
+
const x = {
|
|
1220
1196
|
btn: !0,
|
|
1221
1197
|
"f-rt-btn": !0,
|
|
1222
|
-
"f-btn-ml":
|
|
1223
|
-
"f-btn-mr":
|
|
1224
|
-
"btn-icontext": !!(
|
|
1198
|
+
"f-btn-ml": d.value === "right",
|
|
1199
|
+
"f-btn-mr": d.value === "left",
|
|
1200
|
+
"btn-icontext": !!(y.icon && y.icon.trim())
|
|
1225
1201
|
};
|
|
1226
|
-
if (
|
|
1227
|
-
const
|
|
1228
|
-
|
|
1202
|
+
if (y.class) {
|
|
1203
|
+
const A = y.class.split(" ");
|
|
1204
|
+
A && A.length && A.reduce((C, r) => (C[r] = !0, C), x);
|
|
1229
1205
|
}
|
|
1230
|
-
return
|
|
1206
|
+
return x;
|
|
1231
1207
|
}
|
|
1232
|
-
function
|
|
1233
|
-
document.body.click(), typeof
|
|
1208
|
+
function j(y, x) {
|
|
1209
|
+
document.body.click(), typeof x.onClick == "function" && x.onClick(y, x.id), e.emit("click", y, x.id);
|
|
1234
1210
|
}
|
|
1235
|
-
function _(
|
|
1236
|
-
return
|
|
1211
|
+
function _(y) {
|
|
1212
|
+
return m("button", {
|
|
1237
1213
|
type: "button",
|
|
1238
|
-
class:
|
|
1239
|
-
id:
|
|
1240
|
-
disabled: !
|
|
1241
|
-
onClick: (
|
|
1242
|
-
}, [h.shouldShowIcon(
|
|
1243
|
-
class: h.iconClass(
|
|
1244
|
-
}, null),
|
|
1214
|
+
class: O(y),
|
|
1215
|
+
id: y.id,
|
|
1216
|
+
disabled: !y.enable,
|
|
1217
|
+
onClick: (x) => j(x, y)
|
|
1218
|
+
}, [h.shouldShowIcon(y) && m("i", {
|
|
1219
|
+
class: h.iconClass(y)
|
|
1220
|
+
}, null), y.text]);
|
|
1245
1221
|
}
|
|
1246
|
-
const
|
|
1247
|
-
function
|
|
1248
|
-
const
|
|
1249
|
-
let
|
|
1250
|
-
const
|
|
1222
|
+
const D = /* @__PURE__ */ new Map(), I = [];
|
|
1223
|
+
function S(y) {
|
|
1224
|
+
const x = u.value;
|
|
1225
|
+
let A = y;
|
|
1226
|
+
const C = Array.from(x.children), r = C[C.length - 1].id === "__more_buttons__" ? C[C.length - 1] : null;
|
|
1251
1227
|
if (r) {
|
|
1252
|
-
const
|
|
1253
|
-
|
|
1228
|
+
const P = r.computedStyleMap().get("margin-left"), B = r.computedStyleMap().get("margin-right"), N = (P ? P.value : 0) + r.getBoundingClientRect().width + (B ? B.value : 0);
|
|
1229
|
+
A -= N;
|
|
1254
1230
|
}
|
|
1255
|
-
const
|
|
1256
|
-
for (const
|
|
1257
|
-
const
|
|
1258
|
-
|
|
1259
|
-
id:
|
|
1260
|
-
width:
|
|
1261
|
-
})) :
|
|
1231
|
+
const n = C.filter((P) => P.id !== "__more_buttons__");
|
|
1232
|
+
for (const P of n) {
|
|
1233
|
+
const B = P.computedStyleMap().get("margin-left"), N = P.computedStyleMap().get("margin-right"), U = (B ? B.value : 0) + P.getBoundingClientRect().width + (N ? N.value : 0);
|
|
1234
|
+
A < U ? (D.set(P.id, !0), I.push({
|
|
1235
|
+
id: P.id,
|
|
1236
|
+
width: U
|
|
1237
|
+
})) : A -= U;
|
|
1262
1238
|
}
|
|
1263
|
-
if (
|
|
1264
|
-
for (let
|
|
1265
|
-
const
|
|
1266
|
-
if (
|
|
1267
|
-
|
|
1239
|
+
if (I.length)
|
|
1240
|
+
for (let P = I.length - 1; P >= 0; P--) {
|
|
1241
|
+
const B = I[P].width;
|
|
1242
|
+
if (A >= B)
|
|
1243
|
+
A -= B, D.delete(I[P].id), I.pop();
|
|
1268
1244
|
else
|
|
1269
1245
|
break;
|
|
1270
1246
|
}
|
|
1271
1247
|
const a = Object.assign({}, w.value);
|
|
1272
1248
|
a.children = [];
|
|
1273
|
-
const
|
|
1274
|
-
w.value =
|
|
1249
|
+
const p = new Q(a), T = t.value.reduce((P, B) => (D.has(B.id) && p.children.push(B), B.visible = !D.has(B.id), P.push(B), P), []);
|
|
1250
|
+
w.value = p, t.value = T;
|
|
1275
1251
|
}
|
|
1276
|
-
const
|
|
1277
|
-
if (
|
|
1278
|
-
const
|
|
1279
|
-
(
|
|
1252
|
+
const k = new ResizeObserver((y) => {
|
|
1253
|
+
if (y.length) {
|
|
1254
|
+
const A = y[0].contentRect.width, r = u.value.getBoundingClientRect().width;
|
|
1255
|
+
(A < r || I.length) && (S(A), E());
|
|
1280
1256
|
}
|
|
1281
1257
|
});
|
|
1282
|
-
return
|
|
1283
|
-
const
|
|
1284
|
-
|
|
1285
|
-
}),
|
|
1286
|
-
|
|
1287
|
-
}),
|
|
1288
|
-
t.value =
|
|
1258
|
+
return G(() => {
|
|
1259
|
+
const y = i.value;
|
|
1260
|
+
k.observe(y), document.body.addEventListener("click", E), document.body.addEventListener("wheel", E);
|
|
1261
|
+
}), be(() => {
|
|
1262
|
+
k.disconnect(), document.body.removeEventListener("click", E), document.body.removeEventListener("wheel", E);
|
|
1263
|
+
}), z(() => o.items, () => {
|
|
1264
|
+
t.value = fe(o.items);
|
|
1289
1265
|
}, {
|
|
1290
1266
|
deep: !0
|
|
1291
1267
|
}), e.expose({
|
|
1292
1268
|
elementRef: s
|
|
1293
|
-
}), () =>
|
|
1294
|
-
class:
|
|
1269
|
+
}), () => m("div", {
|
|
1270
|
+
class: c.value,
|
|
1295
1271
|
ref: s
|
|
1296
|
-
}, [
|
|
1272
|
+
}, [m("div", {
|
|
1297
1273
|
ref: i,
|
|
1298
|
-
class:
|
|
1299
|
-
}, [
|
|
1300
|
-
ref:
|
|
1274
|
+
class: l.value
|
|
1275
|
+
}, [m("div", {
|
|
1276
|
+
ref: u,
|
|
1301
1277
|
class: "d-inline-block f-response-content",
|
|
1302
1278
|
style: "white-space: nowrap;"
|
|
1303
|
-
}, [t.value.filter((
|
|
1279
|
+
}, [t.value.filter((y) => y.visible).map((y) => y.children && y.children.length > 0 ? f(y) : _(y)), b.value && f(w.value)])])]);
|
|
1304
1280
|
}
|
|
1305
1281
|
});
|
|
1306
|
-
function
|
|
1282
|
+
function It(o, e) {
|
|
1307
1283
|
const t = V("design-item-context"), s = V("toolbar-item-handler", () => {
|
|
1308
1284
|
});
|
|
1309
1285
|
function i() {
|
|
1310
1286
|
s && s();
|
|
1311
1287
|
}
|
|
1312
|
-
function
|
|
1313
|
-
const
|
|
1288
|
+
function u(r) {
|
|
1289
|
+
const n = {
|
|
1314
1290
|
"dropdown-menu": !0
|
|
1315
1291
|
};
|
|
1316
1292
|
if (r.class) {
|
|
1317
1293
|
const a = r.menuClass.split(" ");
|
|
1318
|
-
a && a.length && a.reduce((
|
|
1294
|
+
a && a.length && a.reduce((p, T) => (p[T] = !0, p), n);
|
|
1319
1295
|
}
|
|
1320
|
-
return
|
|
1296
|
+
return n;
|
|
1321
1297
|
}
|
|
1322
|
-
function
|
|
1323
|
-
const
|
|
1298
|
+
function d(r) {
|
|
1299
|
+
const n = {
|
|
1324
1300
|
disabled: !r.enable,
|
|
1325
1301
|
"dropdown-submenu": !0,
|
|
1326
1302
|
"f-rt-dropdown": !0
|
|
1327
1303
|
}, a = r.dropdownClass.split(" ");
|
|
1328
|
-
return a && a.length && a.reduce((
|
|
1304
|
+
return a && a.length && a.reduce((p, T) => (p[T] = !0, p), n), n;
|
|
1329
1305
|
}
|
|
1330
|
-
function
|
|
1331
|
-
const
|
|
1306
|
+
function g(r) {
|
|
1307
|
+
const n = {
|
|
1332
1308
|
disabled: !r.enable,
|
|
1333
1309
|
"dropdown-item": !0,
|
|
1334
1310
|
"f-rt-btn": !0,
|
|
1335
1311
|
"position-relative": !0,
|
|
1336
1312
|
"farris-component": !0
|
|
1337
1313
|
}, a = r.class.split(" ");
|
|
1338
|
-
return a && a.length && a.reduce((
|
|
1314
|
+
return a && a.length && a.reduce((p, T) => (p[T] = !0, p), n), n;
|
|
1339
1315
|
}
|
|
1340
1316
|
let w;
|
|
1341
1317
|
const h = /* @__PURE__ */ new Map();
|
|
1342
|
-
function b(r,
|
|
1343
|
-
var
|
|
1344
|
-
((
|
|
1345
|
-
const
|
|
1346
|
-
if (
|
|
1347
|
-
const
|
|
1348
|
-
|
|
1318
|
+
function b(r, n, a) {
|
|
1319
|
+
var T;
|
|
1320
|
+
((T = r.target) == null ? void 0 : T.id) === n.id && r.stopPropagation();
|
|
1321
|
+
const p = a ? a.id : "__top_item__";
|
|
1322
|
+
if (n.children && n.children.length && (n.expanded = !n.expanded, n.expanded ? h.set(p, n) : h.delete(p)), h.has(p) && h.get(p) !== n) {
|
|
1323
|
+
const P = h.get(p);
|
|
1324
|
+
P && (P.expanded = !1);
|
|
1349
1325
|
}
|
|
1350
1326
|
}
|
|
1351
|
-
function
|
|
1327
|
+
function c(r) {
|
|
1352
1328
|
r && (r.stopPropagation(), r.preventDefault());
|
|
1353
1329
|
}
|
|
1354
|
-
function
|
|
1355
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
1330
|
+
function l() {
|
|
1331
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((n) => n.classList.remove("dgComponentFocused"));
|
|
1356
1332
|
const r = document.getElementsByClassName("dgComponentSelected");
|
|
1357
|
-
Array.from(r).forEach((
|
|
1333
|
+
Array.from(r).forEach((n) => n.classList.remove("dgComponentSelected"));
|
|
1358
1334
|
}
|
|
1359
1335
|
function f(r) {
|
|
1360
1336
|
r.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
|
|
1361
1337
|
}
|
|
1362
1338
|
function v(r) {
|
|
1363
1339
|
const {
|
|
1364
|
-
buttons:
|
|
1340
|
+
buttons: n = []
|
|
1365
1341
|
} = t.schema;
|
|
1366
1342
|
let a = [];
|
|
1367
|
-
|
|
1368
|
-
a = a.concat(
|
|
1343
|
+
n.forEach((P) => {
|
|
1344
|
+
a = a.concat(P.children || []);
|
|
1369
1345
|
});
|
|
1370
|
-
const
|
|
1346
|
+
const p = a.findIndex((P) => P.id === r), T = p === -1 ? null : a[p];
|
|
1371
1347
|
return {
|
|
1372
|
-
index:
|
|
1373
|
-
item:
|
|
1348
|
+
index: p,
|
|
1349
|
+
item: T
|
|
1374
1350
|
};
|
|
1375
1351
|
}
|
|
1376
|
-
function
|
|
1352
|
+
function E(r) {
|
|
1377
1353
|
const {
|
|
1378
|
-
buttons:
|
|
1379
|
-
} = t.schema, a =
|
|
1354
|
+
buttons: n = []
|
|
1355
|
+
} = t.schema, a = n.findIndex((T) => T.id === r), p = a === -1 ? null : n[a];
|
|
1380
1356
|
return {
|
|
1381
1357
|
index: a,
|
|
1382
|
-
item:
|
|
1358
|
+
item: p
|
|
1383
1359
|
};
|
|
1384
1360
|
}
|
|
1385
|
-
function
|
|
1386
|
-
var
|
|
1361
|
+
function O(r) {
|
|
1362
|
+
var p;
|
|
1387
1363
|
t.schema;
|
|
1388
1364
|
const {
|
|
1389
|
-
index:
|
|
1365
|
+
index: n,
|
|
1390
1366
|
item: a
|
|
1391
1367
|
} = v(r);
|
|
1392
|
-
(
|
|
1368
|
+
(p = t == null ? void 0 : t.setupContext) == null || p.emit("selectionChange", a == null ? void 0 : a.type, a);
|
|
1393
1369
|
}
|
|
1394
|
-
const
|
|
1370
|
+
const j = function(r) {
|
|
1395
1371
|
const {
|
|
1396
|
-
componentType:
|
|
1397
|
-
} = r, a =
|
|
1398
|
-
return a && !a.id && a.type ===
|
|
1372
|
+
componentType: n
|
|
1373
|
+
} = r, a = Y(n, r), p = n.toLowerCase().replace("-", "_");
|
|
1374
|
+
return a && !a.id && a.type === n && (a.id = `${p}_${Math.random().toString().slice(2, 6)}`), a;
|
|
1399
1375
|
}, _ = function() {
|
|
1400
1376
|
const r = {
|
|
1401
1377
|
componentType: "response-toolbar-item",
|
|
1402
1378
|
parentComponentInstance: e.value,
|
|
1403
1379
|
targetPosition: -1
|
|
1404
1380
|
};
|
|
1405
|
-
return
|
|
1381
|
+
return j(r);
|
|
1406
1382
|
};
|
|
1407
|
-
function
|
|
1408
|
-
|
|
1383
|
+
function D(r, n) {
|
|
1384
|
+
c(r), l(), f(r), O(n.id);
|
|
1409
1385
|
}
|
|
1410
|
-
function
|
|
1411
|
-
|
|
1412
|
-
const
|
|
1413
|
-
buttons:
|
|
1386
|
+
function I(r, n, a) {
|
|
1387
|
+
c(r);
|
|
1388
|
+
const p = n.id, T = a && a.id, {
|
|
1389
|
+
buttons: P = []
|
|
1414
1390
|
} = t.schema;
|
|
1415
|
-
if (!
|
|
1391
|
+
if (!T)
|
|
1416
1392
|
return;
|
|
1417
1393
|
const {
|
|
1418
|
-
index:
|
|
1419
|
-
} =
|
|
1420
|
-
if (
|
|
1394
|
+
index: B
|
|
1395
|
+
} = E(T);
|
|
1396
|
+
if (B === -1)
|
|
1421
1397
|
return;
|
|
1422
1398
|
const {
|
|
1423
|
-
index:
|
|
1424
|
-
} = v(
|
|
1425
|
-
|
|
1426
|
-
}
|
|
1427
|
-
function
|
|
1428
|
-
|
|
1429
|
-
const
|
|
1430
|
-
buttons:
|
|
1399
|
+
index: N
|
|
1400
|
+
} = v(p);
|
|
1401
|
+
N !== -1 && (P[B].children.splice(N, 1), i());
|
|
1402
|
+
}
|
|
1403
|
+
function S(r, n, a) {
|
|
1404
|
+
c(r);
|
|
1405
|
+
const p = a && a.id, {
|
|
1406
|
+
buttons: T = []
|
|
1431
1407
|
} = t.schema;
|
|
1432
|
-
if (!
|
|
1408
|
+
if (!p)
|
|
1433
1409
|
return;
|
|
1434
1410
|
const {
|
|
1435
|
-
index:
|
|
1436
|
-
} =
|
|
1437
|
-
if (
|
|
1411
|
+
index: P
|
|
1412
|
+
} = E(p);
|
|
1413
|
+
if (P === -1)
|
|
1438
1414
|
return;
|
|
1439
|
-
const
|
|
1440
|
-
text:
|
|
1415
|
+
const B = _(), N = Object.assign({}, B, {
|
|
1416
|
+
text: n.text
|
|
1441
1417
|
});
|
|
1442
|
-
|
|
1418
|
+
T[P].children.push(N), i();
|
|
1443
1419
|
}
|
|
1444
|
-
function
|
|
1445
|
-
|
|
1446
|
-
const
|
|
1447
|
-
buttons:
|
|
1420
|
+
function k(r, n, a) {
|
|
1421
|
+
c(r);
|
|
1422
|
+
const p = a && a.id, {
|
|
1423
|
+
buttons: T = []
|
|
1448
1424
|
} = t.schema;
|
|
1449
|
-
if (!
|
|
1425
|
+
if (!p)
|
|
1450
1426
|
return;
|
|
1451
1427
|
const {
|
|
1452
|
-
index:
|
|
1453
|
-
} =
|
|
1454
|
-
if (
|
|
1428
|
+
index: P
|
|
1429
|
+
} = E(p);
|
|
1430
|
+
if (P === -1)
|
|
1455
1431
|
return;
|
|
1456
|
-
const
|
|
1432
|
+
const B = _(), N = Object.assign({}, B, {
|
|
1457
1433
|
text: "按钮"
|
|
1458
1434
|
});
|
|
1459
|
-
|
|
1435
|
+
T[P].children.push(N), i();
|
|
1460
1436
|
}
|
|
1461
|
-
function
|
|
1462
|
-
return
|
|
1437
|
+
function y(r, n) {
|
|
1438
|
+
return m("div", {
|
|
1463
1439
|
class: "component-btn-group"
|
|
1464
|
-
}, [
|
|
1440
|
+
}, [m("div", null, [m("div", {
|
|
1465
1441
|
role: "button",
|
|
1466
1442
|
class: "btn component-settings-button",
|
|
1467
1443
|
title: "删除",
|
|
1468
1444
|
ref: "removeButton",
|
|
1469
1445
|
style: "position:static;",
|
|
1470
|
-
onClick: (a) =>
|
|
1471
|
-
}, [
|
|
1446
|
+
onClick: (a) => I(a, r, n)
|
|
1447
|
+
}, [m("i", {
|
|
1472
1448
|
class: "f-icon f-icon-yxs_delete"
|
|
1473
|
-
}, null)]),
|
|
1449
|
+
}, null)]), m("div", {
|
|
1474
1450
|
role: "button",
|
|
1475
1451
|
class: "btn component-settings-button",
|
|
1476
1452
|
title: "复制",
|
|
1477
1453
|
ref: "copyButton",
|
|
1478
1454
|
style: "position:static;",
|
|
1479
|
-
onClick: (a) =>
|
|
1480
|
-
}, [
|
|
1455
|
+
onClick: (a) => S(a, r, n)
|
|
1456
|
+
}, [m("i", {
|
|
1481
1457
|
class: "f-icon f-icon-yxs_copy"
|
|
1482
|
-
}, null)]),
|
|
1458
|
+
}, null)]), m("div", {
|
|
1483
1459
|
role: "button",
|
|
1484
1460
|
class: "btn component-settings-button",
|
|
1485
1461
|
title: "新增同级",
|
|
1486
1462
|
ref: "appendSame",
|
|
1487
1463
|
style: "width:85px!important;padding:0 5px;position:static;",
|
|
1488
|
-
onClick: (a) =>
|
|
1489
|
-
}, [
|
|
1464
|
+
onClick: (a) => k(a, r, n)
|
|
1465
|
+
}, [m("i", {
|
|
1490
1466
|
class: "f-icon f-icon-plus-circle text-white mr-1"
|
|
1491
|
-
}, null),
|
|
1467
|
+
}, null), m("span", {
|
|
1492
1468
|
style: "font-size:13px;margin:auto"
|
|
1493
|
-
}, [
|
|
1494
|
-
}
|
|
1495
|
-
function
|
|
1496
|
-
return r.children.map((
|
|
1497
|
-
class:
|
|
1498
|
-
id:
|
|
1499
|
-
onClick: (a) =>
|
|
1500
|
-
}, [
|
|
1501
|
-
id:
|
|
1502
|
-
class:
|
|
1503
|
-
onMouseover: (a) =>
|
|
1504
|
-
}, [
|
|
1469
|
+
}, [X("新增同级")])])])]);
|
|
1470
|
+
}
|
|
1471
|
+
function x(r) {
|
|
1472
|
+
return r.children.map((n) => n.children && n.children.length ? m("li", {
|
|
1473
|
+
class: d(n),
|
|
1474
|
+
id: n.id,
|
|
1475
|
+
onClick: (a) => n.enable && b(a, n, r)
|
|
1476
|
+
}, [m("span", {
|
|
1477
|
+
id: n.id,
|
|
1478
|
+
class: g(n),
|
|
1479
|
+
onMouseover: (a) => n.enable && b(a, n, r)
|
|
1480
|
+
}, [n.text, m("i", {
|
|
1505
1481
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
1506
1482
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
1507
|
-
}, null)]), w(
|
|
1508
|
-
class:
|
|
1509
|
-
id:
|
|
1510
|
-
onClick: (a) =>
|
|
1511
|
-
}, [
|
|
1512
|
-
class:
|
|
1513
|
-
}, null),
|
|
1514
|
-
}
|
|
1515
|
-
function
|
|
1516
|
-
const
|
|
1483
|
+
}, null)]), w(n, n)]) : m("li", {
|
|
1484
|
+
class: g(n),
|
|
1485
|
+
id: n.id,
|
|
1486
|
+
onClick: (a) => D(a, n)
|
|
1487
|
+
}, [y(n, r), o.shouldShowIcon(n) && m("i", {
|
|
1488
|
+
class: o.iconClass(n)
|
|
1489
|
+
}, null), n.text]));
|
|
1490
|
+
}
|
|
1491
|
+
function A(r, n, a) {
|
|
1492
|
+
const p = {
|
|
1517
1493
|
display: r.expanded ? "block" : "none",
|
|
1518
1494
|
position: "fixed",
|
|
1519
1495
|
maxWidth: "300px",
|
|
1520
1496
|
width: "auto",
|
|
1521
1497
|
minWidth: "120px"
|
|
1522
|
-
},
|
|
1523
|
-
if (
|
|
1498
|
+
}, T = document.getElementsByTagName("body")[0].getClientRects()[0].width, P = n, B = P == null ? void 0 : P.getClientRects();
|
|
1499
|
+
if (P && B && B.length) {
|
|
1524
1500
|
const {
|
|
1525
|
-
top:
|
|
1526
|
-
width:
|
|
1527
|
-
left:
|
|
1528
|
-
right:
|
|
1529
|
-
height:
|
|
1530
|
-
} =
|
|
1531
|
-
|
|
1532
|
-
const
|
|
1533
|
-
if (
|
|
1534
|
-
|
|
1535
|
-
const de =
|
|
1501
|
+
top: N,
|
|
1502
|
+
width: U,
|
|
1503
|
+
left: q,
|
|
1504
|
+
right: $,
|
|
1505
|
+
height: L
|
|
1506
|
+
} = B[0], H = Math.ceil(L + N);
|
|
1507
|
+
p.top = `${H}px`, p.left = `${q}px`;
|
|
1508
|
+
const J = r.id + "_menu", ne = n ? n.querySelector("#" + J) : null;
|
|
1509
|
+
if (ne) {
|
|
1510
|
+
p.display === "block" && (ne.style.display = "block");
|
|
1511
|
+
const de = ne.getBoundingClientRect();
|
|
1536
1512
|
if (a) {
|
|
1537
|
-
|
|
1538
|
-
const
|
|
1539
|
-
|
|
1513
|
+
p.top = `${N - 6}px`;
|
|
1514
|
+
const Re = Math.ceil(U + q);
|
|
1515
|
+
p.left = `${Re}px`;
|
|
1540
1516
|
}
|
|
1541
|
-
|
|
1517
|
+
T - q - U < de.width && (p.left = `${(a ? q : $) - de.width}px`);
|
|
1542
1518
|
}
|
|
1543
1519
|
}
|
|
1544
|
-
return
|
|
1545
|
-
}
|
|
1546
|
-
w = function(r,
|
|
1547
|
-
var
|
|
1548
|
-
const a =
|
|
1549
|
-
return
|
|
1550
|
-
class:
|
|
1551
|
-
style:
|
|
1520
|
+
return p;
|
|
1521
|
+
}
|
|
1522
|
+
w = function(r, n) {
|
|
1523
|
+
var P, B;
|
|
1524
|
+
const a = he(), p = n ? n.id : r.id, T = (B = (P = a == null ? void 0 : a.exposed) == null ? void 0 : P.elementRef.value) == null ? void 0 : B.querySelector("#" + p);
|
|
1525
|
+
return m("ul", {
|
|
1526
|
+
class: u(r),
|
|
1527
|
+
style: A(r, T, n),
|
|
1552
1528
|
id: r.id + "_menu"
|
|
1553
|
-
}, [
|
|
1529
|
+
}, [x(r)]);
|
|
1554
1530
|
};
|
|
1555
|
-
function
|
|
1531
|
+
function C() {
|
|
1556
1532
|
h.forEach((r) => {
|
|
1557
1533
|
r.expanded = !1;
|
|
1558
1534
|
}), h.clear();
|
|
1559
1535
|
}
|
|
1560
1536
|
return {
|
|
1561
1537
|
renderDropdownMenu: w,
|
|
1562
|
-
clearAllDropDownMenu:
|
|
1538
|
+
clearAllDropDownMenu: C
|
|
1563
1539
|
};
|
|
1564
1540
|
}
|
|
1565
|
-
function
|
|
1566
|
-
const s =
|
|
1541
|
+
function At(o, e, t) {
|
|
1542
|
+
const s = M(o.alignment), {
|
|
1567
1543
|
renderDropdownMenu: i,
|
|
1568
|
-
clearAllDropDownMenu:
|
|
1569
|
-
} =
|
|
1544
|
+
clearAllDropDownMenu: u
|
|
1545
|
+
} = It(e, t), d = V("design-item-context"), g = V("toolbar-item-handler", () => {
|
|
1570
1546
|
});
|
|
1571
1547
|
function w() {
|
|
1572
|
-
|
|
1548
|
+
g && g();
|
|
1573
1549
|
}
|
|
1574
|
-
function h(
|
|
1550
|
+
function h(C) {
|
|
1575
1551
|
const r = {
|
|
1576
1552
|
"btn-group": !0,
|
|
1577
1553
|
"f-rt-dropdown": !0,
|
|
1578
1554
|
"f-btn-ml": s.value === "right",
|
|
1579
1555
|
"f-btn-mr": s.value === "left"
|
|
1580
|
-
},
|
|
1581
|
-
return
|
|
1556
|
+
}, n = C.dropdownClass.split(" ");
|
|
1557
|
+
return n && n.length && n.reduce((a, p) => (a[p] = !0, a), r), r;
|
|
1582
1558
|
}
|
|
1583
|
-
function b(
|
|
1559
|
+
function b(C) {
|
|
1584
1560
|
const r = {
|
|
1585
1561
|
btn: !0,
|
|
1586
|
-
disabled: !
|
|
1562
|
+
disabled: !C.enable,
|
|
1587
1563
|
"position-relative": !0,
|
|
1588
1564
|
"farris-component": !0,
|
|
1589
1565
|
"f-rt-btn": !0,
|
|
1590
|
-
"btn-icontext": !!(
|
|
1566
|
+
"btn-icontext": !!(C.icon && C.icon.trim())
|
|
1591
1567
|
};
|
|
1592
|
-
if (
|
|
1593
|
-
const
|
|
1594
|
-
|
|
1568
|
+
if (C.class) {
|
|
1569
|
+
const n = C.class.split(" ");
|
|
1570
|
+
n && n.length && n.reduce((a, p) => (a[p] = !0, a), r);
|
|
1595
1571
|
}
|
|
1596
1572
|
return r;
|
|
1597
1573
|
}
|
|
1598
|
-
function
|
|
1599
|
-
|
|
1574
|
+
function c(C) {
|
|
1575
|
+
C && (C.stopPropagation(), C.preventDefault());
|
|
1600
1576
|
}
|
|
1601
|
-
function
|
|
1602
|
-
|
|
1603
|
-
const
|
|
1604
|
-
document.body.click(), r.expanded = !
|
|
1577
|
+
function l(C, r) {
|
|
1578
|
+
c(C);
|
|
1579
|
+
const n = r.expanded;
|
|
1580
|
+
document.body.click(), r.expanded = !n;
|
|
1605
1581
|
}
|
|
1606
|
-
const f = function(
|
|
1582
|
+
const f = function(C) {
|
|
1607
1583
|
const {
|
|
1608
1584
|
componentType: r
|
|
1609
|
-
} =
|
|
1610
|
-
return
|
|
1585
|
+
} = C, n = Y(r, C), a = r.toLowerCase().replace("-", "_");
|
|
1586
|
+
return n && !n.id && n.type === r && (n.id = `${a}_${Math.random().toString().slice(2, 6)}`), n;
|
|
1611
1587
|
}, v = function() {
|
|
1612
|
-
const
|
|
1588
|
+
const C = {
|
|
1613
1589
|
componentType: "response-toolbar-item",
|
|
1614
1590
|
parentComponentInstance: t.value,
|
|
1615
1591
|
targetPosition: -1
|
|
1616
1592
|
};
|
|
1617
|
-
return f(
|
|
1593
|
+
return f(C);
|
|
1618
1594
|
};
|
|
1619
|
-
function
|
|
1620
|
-
const r =
|
|
1595
|
+
function E(C) {
|
|
1596
|
+
const r = d.schema.buttons || d.schema.contents, n = r == null ? void 0 : r.findIndex((p) => p.id === C), a = n === -1 ? null : r[n];
|
|
1621
1597
|
return {
|
|
1622
|
-
index:
|
|
1598
|
+
index: n,
|
|
1623
1599
|
toolbarItem: a
|
|
1624
1600
|
};
|
|
1625
1601
|
}
|
|
1626
|
-
function
|
|
1627
|
-
var
|
|
1602
|
+
function O(C, r) {
|
|
1603
|
+
var B;
|
|
1628
1604
|
const {
|
|
1629
|
-
index:
|
|
1605
|
+
index: n,
|
|
1630
1606
|
toolbarItem: a
|
|
1631
|
-
} =
|
|
1632
|
-
if (
|
|
1607
|
+
} = E(r);
|
|
1608
|
+
if (n === -1)
|
|
1633
1609
|
return;
|
|
1634
|
-
const
|
|
1635
|
-
text:
|
|
1610
|
+
const p = a.text || "按钮", T = v(), P = Object.assign({}, T, {
|
|
1611
|
+
text: p
|
|
1636
1612
|
});
|
|
1637
|
-
(
|
|
1613
|
+
(B = d.schema.buttons) == null || B.push(P), w();
|
|
1638
1614
|
}
|
|
1639
|
-
function
|
|
1615
|
+
function j(C, r) {
|
|
1640
1616
|
const {
|
|
1641
|
-
index:
|
|
1617
|
+
index: n,
|
|
1642
1618
|
toolbarItem: a
|
|
1643
|
-
} =
|
|
1644
|
-
if (
|
|
1619
|
+
} = E(r);
|
|
1620
|
+
if (n === -1)
|
|
1645
1621
|
return;
|
|
1646
|
-
const
|
|
1647
|
-
text:
|
|
1648
|
-
}),
|
|
1649
|
-
|
|
1622
|
+
const p = a.text || "按钮", T = v(), P = Object.assign({}, T, {
|
|
1623
|
+
text: p
|
|
1624
|
+
}), B = d.schema.buttons[n].children || [];
|
|
1625
|
+
B.push(P), d.schema.buttons[n].children = B, w();
|
|
1650
1626
|
}
|
|
1651
|
-
function _(
|
|
1652
|
-
const
|
|
1653
|
-
a !== -1 && (
|
|
1627
|
+
function _(C, r) {
|
|
1628
|
+
const n = d.schema.buttons || d.schema.contents, a = n == null ? void 0 : n.findIndex((p) => p.id === r);
|
|
1629
|
+
a !== -1 && (n.splice(a, 1), w());
|
|
1654
1630
|
}
|
|
1655
|
-
function
|
|
1656
|
-
return
|
|
1631
|
+
function D(C) {
|
|
1632
|
+
return m("div", {
|
|
1657
1633
|
class: "component-btn-group"
|
|
1658
|
-
}, [
|
|
1634
|
+
}, [m("div", null, [m("div", {
|
|
1659
1635
|
role: "button",
|
|
1660
1636
|
class: "btn component-settings-button",
|
|
1661
1637
|
title: "删除",
|
|
1662
1638
|
ref: "removeButton",
|
|
1663
1639
|
style: "position:static;",
|
|
1664
|
-
onClick: (r) => _(r,
|
|
1665
|
-
}, [
|
|
1640
|
+
onClick: (r) => _(r, C)
|
|
1641
|
+
}, [m("i", {
|
|
1666
1642
|
class: "f-icon f-icon-yxs_delete"
|
|
1667
|
-
}, null)]),
|
|
1643
|
+
}, null)]), m("div", {
|
|
1668
1644
|
role: "button",
|
|
1669
1645
|
class: "btn component-settings-button",
|
|
1670
1646
|
title: "复制",
|
|
1671
1647
|
ref: "copyButton",
|
|
1672
1648
|
style: "position:static;",
|
|
1673
|
-
onClick: (r) =>
|
|
1674
|
-
}, [
|
|
1649
|
+
onClick: (r) => O(r, C)
|
|
1650
|
+
}, [m("i", {
|
|
1675
1651
|
class: "f-icon f-icon-yxs_copy"
|
|
1676
|
-
}, null)]),
|
|
1652
|
+
}, null)]), m("div", {
|
|
1677
1653
|
role: "button",
|
|
1678
1654
|
class: "btn component-settings-button",
|
|
1679
1655
|
title: "新增子级",
|
|
1680
1656
|
ref: "appendChildButton",
|
|
1681
1657
|
style: "width:85px!important;padding:0 5px;position:static;",
|
|
1682
|
-
onClick: (r) =>
|
|
1683
|
-
}, [
|
|
1658
|
+
onClick: (r) => j(r, C)
|
|
1659
|
+
}, [m("i", {
|
|
1684
1660
|
class: "f-icon f-icon-plus-circle text-white mr-1"
|
|
1685
|
-
}, null),
|
|
1661
|
+
}, null), m("span", {
|
|
1686
1662
|
style: "font-size:13px;margin:auto"
|
|
1687
|
-
}, [
|
|
1663
|
+
}, [X("新增子级")])])])]);
|
|
1688
1664
|
}
|
|
1689
|
-
function
|
|
1665
|
+
function I() {
|
|
1690
1666
|
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((r) => r.classList.remove("dgComponentFocused"));
|
|
1691
|
-
const
|
|
1692
|
-
Array.from(
|
|
1667
|
+
const C = document.getElementsByClassName("dgComponentSelected");
|
|
1668
|
+
Array.from(C).forEach((r) => r.classList.remove("dgComponentSelected"));
|
|
1693
1669
|
}
|
|
1694
|
-
function
|
|
1695
|
-
|
|
1670
|
+
function S(C) {
|
|
1671
|
+
C.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
|
|
1696
1672
|
}
|
|
1697
|
-
function
|
|
1698
|
-
var
|
|
1699
|
-
const r =
|
|
1700
|
-
if (
|
|
1673
|
+
function k(C) {
|
|
1674
|
+
var p;
|
|
1675
|
+
const r = d.schema.buttons || d.schema.contents, n = r == null ? void 0 : r.findIndex((T) => T.id === C);
|
|
1676
|
+
if (n === -1)
|
|
1701
1677
|
return;
|
|
1702
|
-
const a = r[
|
|
1703
|
-
(
|
|
1704
|
-
}
|
|
1705
|
-
function C
|
|
1706
|
-
|
|
1707
|
-
}
|
|
1708
|
-
function
|
|
1709
|
-
return
|
|
1710
|
-
id:
|
|
1711
|
-
class: h(
|
|
1712
|
-
}, [
|
|
1713
|
-
class: b(
|
|
1678
|
+
const a = r[n];
|
|
1679
|
+
(p = d == null ? void 0 : d.setupContext) == null || p.emit("selectionChange", "response-toolbar-item", a);
|
|
1680
|
+
}
|
|
1681
|
+
function y(C, r) {
|
|
1682
|
+
c(C), I(), S(C), c(C), l(C, r), k(r.id);
|
|
1683
|
+
}
|
|
1684
|
+
function x(C) {
|
|
1685
|
+
return m("div", {
|
|
1686
|
+
id: C.id,
|
|
1687
|
+
class: h(C)
|
|
1688
|
+
}, [m("div", {
|
|
1689
|
+
class: b(C),
|
|
1714
1690
|
style: "display: flex;padding-right: 0.1rem;",
|
|
1715
|
-
onClick: (r) =>
|
|
1716
|
-
}, [
|
|
1717
|
-
class: e.iconClass(
|
|
1718
|
-
}, null),
|
|
1691
|
+
onClick: (r) => C.enable && y(r, C)
|
|
1692
|
+
}, [D(C.id), e.shouldShowIcon(C) && m("i", {
|
|
1693
|
+
class: e.iconClass(C)
|
|
1694
|
+
}, null), m("span", null, [C.text]), m("i", {
|
|
1719
1695
|
class: "f-icon f-icon-arrow-chevron-down",
|
|
1720
1696
|
style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
|
|
1721
|
-
}, null)]), i(
|
|
1697
|
+
}, null)]), i(C)]);
|
|
1722
1698
|
}
|
|
1723
|
-
function
|
|
1724
|
-
|
|
1699
|
+
function A() {
|
|
1700
|
+
u();
|
|
1725
1701
|
}
|
|
1726
1702
|
return {
|
|
1727
|
-
renderToolbarDropdown:
|
|
1728
|
-
clearAllDropDown:
|
|
1703
|
+
renderToolbarDropdown: x,
|
|
1704
|
+
clearAllDropDown: A
|
|
1729
1705
|
};
|
|
1730
1706
|
}
|
|
1731
|
-
class
|
|
1707
|
+
class Ot extends te {
|
|
1732
1708
|
constructor(e, t) {
|
|
1733
1709
|
super(e, t);
|
|
1734
1710
|
}
|
|
1735
1711
|
getPropertyConfig(e) {
|
|
1736
|
-
return this.getBasicPropConfig(e), this.getBehaviorProperties(e), this.propertyConfig;
|
|
1712
|
+
return this.getBasicPropConfig(e), this.getAppearancePropConfig(e), this.getBehaviorProperties(e), this.propertyConfig;
|
|
1713
|
+
}
|
|
1714
|
+
getAppearancePropConfig(e) {
|
|
1715
|
+
this.propertyConfig.categories.appearance = {
|
|
1716
|
+
title: "样式",
|
|
1717
|
+
description: "Appearance",
|
|
1718
|
+
properties: {
|
|
1719
|
+
class: {
|
|
1720
|
+
title: "class样式",
|
|
1721
|
+
type: "string",
|
|
1722
|
+
description: "组件的CSS样式",
|
|
1723
|
+
$converter: "/converter/appearance.converter"
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
};
|
|
1737
1727
|
}
|
|
1738
1728
|
getBasicPropConfig(e) {
|
|
1739
1729
|
this.propertyConfig.categories.basic = {
|
|
@@ -1754,7 +1744,7 @@ class Ft extends ee {
|
|
|
1754
1744
|
type: "combo-list",
|
|
1755
1745
|
textField: "value",
|
|
1756
1746
|
valueField: "key",
|
|
1757
|
-
data: [{ key: "response-toolbar", value:
|
|
1747
|
+
data: [{ key: "response-toolbar", value: ee["response-toolbar"].name }]
|
|
1758
1748
|
}
|
|
1759
1749
|
}
|
|
1760
1750
|
}
|
|
@@ -1785,7 +1775,7 @@ class Ft extends ee {
|
|
|
1785
1775
|
]
|
|
1786
1776
|
}
|
|
1787
1777
|
},
|
|
1788
|
-
|
|
1778
|
+
items: {
|
|
1789
1779
|
title: "按钮",
|
|
1790
1780
|
description: "The items of Response Toolbar.",
|
|
1791
1781
|
type: "array",
|
|
@@ -1797,40 +1787,40 @@ class Ft extends ee {
|
|
|
1797
1787
|
};
|
|
1798
1788
|
}
|
|
1799
1789
|
}
|
|
1800
|
-
function
|
|
1801
|
-
const t =
|
|
1790
|
+
function jt(o, e) {
|
|
1791
|
+
const t = o.schema;
|
|
1802
1792
|
function s(b) {
|
|
1803
1793
|
return !1;
|
|
1804
1794
|
}
|
|
1805
|
-
function i(b,
|
|
1806
|
-
return
|
|
1795
|
+
function i(b, c) {
|
|
1796
|
+
return c.text = b.label, c;
|
|
1807
1797
|
}
|
|
1808
|
-
function
|
|
1798
|
+
function u() {
|
|
1809
1799
|
return !1;
|
|
1810
1800
|
}
|
|
1811
|
-
function
|
|
1801
|
+
function d() {
|
|
1812
1802
|
return !1;
|
|
1813
1803
|
}
|
|
1814
|
-
function
|
|
1804
|
+
function g() {
|
|
1815
1805
|
return !0;
|
|
1816
1806
|
}
|
|
1817
1807
|
function w() {
|
|
1818
1808
|
return !0;
|
|
1819
1809
|
}
|
|
1820
1810
|
function h(b) {
|
|
1821
|
-
return new
|
|
1811
|
+
return new Ot(b, e).getPropertyConfig(t);
|
|
1822
1812
|
}
|
|
1823
1813
|
return {
|
|
1824
1814
|
canAccepts: s,
|
|
1825
|
-
checkCanAddComponent:
|
|
1826
|
-
checkCanDeleteComponent:
|
|
1827
|
-
checkCanMoveComponent:
|
|
1815
|
+
checkCanAddComponent: g,
|
|
1816
|
+
checkCanDeleteComponent: d,
|
|
1817
|
+
checkCanMoveComponent: u,
|
|
1828
1818
|
hideNestedPaddingInDesginerView: w,
|
|
1829
1819
|
onResolveNewComponentSchema: i,
|
|
1830
1820
|
getPropsConfig: h
|
|
1831
1821
|
};
|
|
1832
1822
|
}
|
|
1833
|
-
const
|
|
1823
|
+
const _t = {
|
|
1834
1824
|
id: { type: String, default: "" },
|
|
1835
1825
|
componentId: { type: String, default: "" },
|
|
1836
1826
|
canAdd: { type: Boolean, default: !1 },
|
|
@@ -1843,246 +1833,245 @@ const Vt = {
|
|
|
1843
1833
|
* 组件值
|
|
1844
1834
|
*/
|
|
1845
1835
|
modelValue: { type: Object }
|
|
1846
|
-
},
|
|
1847
|
-
function
|
|
1848
|
-
const t = e.getBoundingClientRect(), s =
|
|
1849
|
-
return i &&
|
|
1836
|
+
}, se = M(0);
|
|
1837
|
+
function $t(o, e) {
|
|
1838
|
+
const t = e.getBoundingClientRect(), s = o.getBoundingClientRect(), i = s.top >= t.top, u = s.top <= t.bottom;
|
|
1839
|
+
return i && u;
|
|
1850
1840
|
}
|
|
1851
|
-
function
|
|
1852
|
-
if (!
|
|
1841
|
+
function Ft(o) {
|
|
1842
|
+
if (!o)
|
|
1853
1843
|
return;
|
|
1854
1844
|
let e;
|
|
1855
|
-
if (
|
|
1845
|
+
if (o.className.includes("dgComponentSelected") ? e = o : e = o.querySelector(".dgComponentSelected"), !e)
|
|
1856
1846
|
return;
|
|
1857
1847
|
const t = e.getBoundingClientRect();
|
|
1858
1848
|
if (t.width === 0 && t.height === 0)
|
|
1859
1849
|
return;
|
|
1860
1850
|
const s = e.querySelector(".component-btn-group");
|
|
1861
1851
|
if (s) {
|
|
1862
|
-
if (
|
|
1852
|
+
if (!$t(e, o)) {
|
|
1863
1853
|
s.style.display = "none";
|
|
1864
1854
|
return;
|
|
1865
1855
|
}
|
|
1866
1856
|
s.style.display = "";
|
|
1867
|
-
const
|
|
1868
|
-
if (
|
|
1869
|
-
const
|
|
1870
|
-
|
|
1857
|
+
const u = s.getBoundingClientRect(), d = s.querySelector("div");
|
|
1858
|
+
if (d) {
|
|
1859
|
+
const g = d.getBoundingClientRect();
|
|
1860
|
+
d.style.top = u.top + "px", d.style.left = u.left - g.width + "px";
|
|
1871
1861
|
}
|
|
1872
1862
|
}
|
|
1873
1863
|
}
|
|
1874
|
-
function
|
|
1875
|
-
var
|
|
1876
|
-
|
|
1877
|
-
}
|
|
1878
|
-
const i = "", p = S();
|
|
1864
|
+
function Nt(o, e, t) {
|
|
1865
|
+
var I;
|
|
1866
|
+
const s = "", i = M();
|
|
1879
1867
|
function u() {
|
|
1880
1868
|
return !0;
|
|
1881
1869
|
}
|
|
1882
|
-
function
|
|
1870
|
+
function d() {
|
|
1883
1871
|
return !1;
|
|
1884
1872
|
}
|
|
1885
|
-
function
|
|
1873
|
+
function g() {
|
|
1886
1874
|
return !0;
|
|
1887
1875
|
}
|
|
1888
|
-
function
|
|
1876
|
+
function w() {
|
|
1889
1877
|
return !0;
|
|
1890
1878
|
}
|
|
1891
|
-
function
|
|
1879
|
+
function h() {
|
|
1892
1880
|
return !0;
|
|
1893
1881
|
}
|
|
1894
|
-
function
|
|
1895
|
-
if (!
|
|
1882
|
+
function b(S) {
|
|
1883
|
+
if (!S || !S.value)
|
|
1896
1884
|
return null;
|
|
1897
|
-
const
|
|
1898
|
-
return
|
|
1885
|
+
const k = M(S == null ? void 0 : S.value.parent), y = b(k);
|
|
1886
|
+
return y || null;
|
|
1899
1887
|
}
|
|
1900
|
-
function c(
|
|
1901
|
-
const { componentInstance:
|
|
1902
|
-
return !
|
|
1888
|
+
function c(S = e) {
|
|
1889
|
+
const { componentInstance: k, designerItemElementRef: y } = S;
|
|
1890
|
+
return !k || !k.value ? null : k.value.canMove || k.value.canAdd || k.value.canDelete ? y : c(S.parent);
|
|
1903
1891
|
}
|
|
1904
|
-
function
|
|
1892
|
+
function l(S) {
|
|
1905
1893
|
return !!t;
|
|
1906
1894
|
}
|
|
1907
|
-
function
|
|
1895
|
+
function f() {
|
|
1908
1896
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
1909
1897
|
}
|
|
1910
|
-
function
|
|
1898
|
+
function v() {
|
|
1911
1899
|
}
|
|
1912
|
-
function
|
|
1900
|
+
function E(S, k) {
|
|
1913
1901
|
}
|
|
1914
|
-
function
|
|
1915
|
-
const { componentType:
|
|
1916
|
-
let
|
|
1917
|
-
const
|
|
1918
|
-
return
|
|
1902
|
+
function O(S) {
|
|
1903
|
+
const { componentType: k } = S, y = V("designer-host-service");
|
|
1904
|
+
let x = Y(k, S, y);
|
|
1905
|
+
const A = k.toLowerCase().replace(/-/g, "_");
|
|
1906
|
+
return x && !x.id && x.type === k && (x.id = `${A}_${Math.random().toString().slice(2, 6)}`), x;
|
|
1919
1907
|
}
|
|
1920
|
-
function
|
|
1908
|
+
function j(S) {
|
|
1921
1909
|
}
|
|
1922
|
-
function
|
|
1910
|
+
function _(...S) {
|
|
1923
1911
|
return [];
|
|
1924
1912
|
}
|
|
1925
|
-
|
|
1913
|
+
function D() {
|
|
1914
|
+
}
|
|
1915
|
+
return i.value = {
|
|
1926
1916
|
canMove: u(),
|
|
1927
|
-
canSelectParent:
|
|
1928
|
-
canAdd:
|
|
1929
|
-
canDelete:
|
|
1930
|
-
canNested: !
|
|
1917
|
+
canSelectParent: d(),
|
|
1918
|
+
canAdd: w(),
|
|
1919
|
+
canDelete: g(),
|
|
1920
|
+
canNested: !h(),
|
|
1931
1921
|
contents: [],
|
|
1932
|
-
elementRef:
|
|
1933
|
-
parent: (
|
|
1922
|
+
elementRef: o,
|
|
1923
|
+
parent: (I = e.parent) == null ? void 0 : I.componentInstance,
|
|
1934
1924
|
schema: e.schema,
|
|
1935
|
-
styles:
|
|
1936
|
-
canAccepts:
|
|
1937
|
-
getBelongedComponentInstance:
|
|
1925
|
+
styles: s,
|
|
1926
|
+
canAccepts: l,
|
|
1927
|
+
getBelongedComponentInstance: b,
|
|
1938
1928
|
getDraggableDesignItemElement: c,
|
|
1939
|
-
getDraggingDisplayText:
|
|
1940
|
-
getPropConfig:
|
|
1941
|
-
getDragScopeElement:
|
|
1942
|
-
onAcceptMovedChildElement:
|
|
1943
|
-
onChildElementMovedOut:
|
|
1944
|
-
addNewChildComponentSchema:
|
|
1945
|
-
|
|
1946
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1947
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1948
|
-
},
|
|
1929
|
+
getDraggingDisplayText: f,
|
|
1930
|
+
getPropConfig: _,
|
|
1931
|
+
getDragScopeElement: v,
|
|
1932
|
+
onAcceptMovedChildElement: E,
|
|
1933
|
+
onChildElementMovedOut: j,
|
|
1934
|
+
addNewChildComponentSchema: O,
|
|
1935
|
+
onRemoveComponent: D,
|
|
1936
|
+
triggerBelongedComponentToMoveWhenMoved: M(!1),
|
|
1937
|
+
triggerBelongedComponentToDeleteWhenDeleted: M(!1)
|
|
1938
|
+
}, i;
|
|
1949
1939
|
}
|
|
1950
|
-
const Ee = /* @__PURE__ */
|
|
1940
|
+
const Ee = /* @__PURE__ */ W({
|
|
1951
1941
|
name: "FDesignerInnerItem",
|
|
1952
|
-
props:
|
|
1942
|
+
props: _t,
|
|
1953
1943
|
emits: ["selectionChange", "addComponent", "removeComponent"],
|
|
1954
|
-
setup(
|
|
1955
|
-
const t =
|
|
1956
|
-
designerItemElementRef:
|
|
1944
|
+
setup(o, e) {
|
|
1945
|
+
const t = M(o.canMove), s = M(o.canAdd), i = M(o.canDelete), u = M(!1), d = M(o.contentKey), g = M(o.childType), w = M(o.childLabel), h = M(o.modelValue), b = M(""), c = M(), l = V("canvas-dragula"), f = M(), v = V("design-item-context"), E = {
|
|
1946
|
+
designerItemElementRef: c,
|
|
1957
1947
|
componentInstance: f,
|
|
1958
1948
|
schema: h.value,
|
|
1959
1949
|
parent: v,
|
|
1960
1950
|
setupContext: e
|
|
1961
1951
|
};
|
|
1962
|
-
|
|
1963
|
-
const
|
|
1952
|
+
Oe("design-item-context", E);
|
|
1953
|
+
const O = F(() => ({
|
|
1964
1954
|
"farris-component": !0,
|
|
1965
1955
|
// 受position-relative影响,整个容器的高度不能被撑起
|
|
1966
|
-
"flex-fill":
|
|
1956
|
+
"flex-fill": o.id === "root-component",
|
|
1967
1957
|
"position-relative": t.value || i.value,
|
|
1968
|
-
"farris-nested":
|
|
1958
|
+
"farris-nested": u.value,
|
|
1969
1959
|
"can-move": t.value,
|
|
1970
|
-
"d-none":
|
|
1971
|
-
})),
|
|
1972
|
-
const
|
|
1973
|
-
return b.value && b.value.split(";").reduce((a,
|
|
1974
|
-
const [
|
|
1975
|
-
return
|
|
1976
|
-
},
|
|
1960
|
+
"d-none": c.value && c.value.classList.contains("d-none")
|
|
1961
|
+
})), j = F(() => {
|
|
1962
|
+
const n = {};
|
|
1963
|
+
return b.value && b.value.split(";").reduce((a, p) => {
|
|
1964
|
+
const [T, P] = p.split(":");
|
|
1965
|
+
return T && (a[T] = P), a;
|
|
1966
|
+
}, n), n;
|
|
1977
1967
|
});
|
|
1978
|
-
function _(
|
|
1979
|
-
if (v && v.schema[
|
|
1980
|
-
const
|
|
1981
|
-
if (
|
|
1982
|
-
const
|
|
1983
|
-
v.designerItemElementRef.value.querySelector(`#${
|
|
1968
|
+
function _(n, a) {
|
|
1969
|
+
if (v && v.schema[d.value]) {
|
|
1970
|
+
const p = v.schema[d.value].findIndex((T) => T.id === a.id);
|
|
1971
|
+
if (p > -1) {
|
|
1972
|
+
const T = v.schema[d.value].length, P = v.schema[d.value][p % T];
|
|
1973
|
+
v.designerItemElementRef.value.querySelector(`#${P.id}-design-item`), v.schema[d.value].splice(p, 1), se.value++, e.emit("removeComponent");
|
|
1984
1974
|
}
|
|
1985
1975
|
}
|
|
1986
1976
|
}
|
|
1987
|
-
function
|
|
1977
|
+
function D(n) {
|
|
1988
1978
|
if (f.value.addNewChildComponentSchema) {
|
|
1989
1979
|
const a = {
|
|
1990
|
-
componentType:
|
|
1980
|
+
componentType: g.value,
|
|
1991
1981
|
label: w.value,
|
|
1992
1982
|
parentComponentInstance: f.value,
|
|
1993
1983
|
targetPosition: -1
|
|
1994
|
-
},
|
|
1995
|
-
h.value[
|
|
1984
|
+
}, p = f.value.addNewChildComponentSchema(a);
|
|
1985
|
+
h.value[d.value].push(p), e.emit("addComponent");
|
|
1996
1986
|
}
|
|
1997
1987
|
}
|
|
1998
|
-
function
|
|
1999
|
-
return s.value &&
|
|
1988
|
+
function I() {
|
|
1989
|
+
return s.value && m("div", {
|
|
2000
1990
|
role: "button",
|
|
2001
1991
|
class: "btn component-settings-button",
|
|
2002
1992
|
title: "新增",
|
|
2003
1993
|
ref: "removeComponent",
|
|
2004
|
-
onClick: (
|
|
2005
|
-
|
|
1994
|
+
onClick: (n) => {
|
|
1995
|
+
D();
|
|
2006
1996
|
}
|
|
2007
|
-
}, [
|
|
1997
|
+
}, [m("i", {
|
|
2008
1998
|
class: "f-icon f-icon-plus-circle"
|
|
2009
1999
|
}, null)]);
|
|
2010
2000
|
}
|
|
2011
|
-
function
|
|
2012
|
-
return i.value &&
|
|
2001
|
+
function S(n) {
|
|
2002
|
+
return i.value && m("div", {
|
|
2013
2003
|
role: "button",
|
|
2014
2004
|
class: "btn component-settings-button",
|
|
2015
2005
|
title: "删除",
|
|
2016
2006
|
ref: "removeComponent",
|
|
2017
|
-
onClick:
|
|
2018
|
-
}, [
|
|
2007
|
+
onClick: _e((a) => _(a, n), ["stop"])
|
|
2008
|
+
}, [m("i", {
|
|
2019
2009
|
class: "f-icon f-icon-yxs_delete"
|
|
2020
2010
|
}, null)]);
|
|
2021
2011
|
}
|
|
2022
|
-
function
|
|
2023
|
-
return t.value &&
|
|
2012
|
+
function k() {
|
|
2013
|
+
return t.value && m("div", {
|
|
2024
2014
|
role: "button",
|
|
2025
2015
|
class: "btn component-settings-button",
|
|
2026
2016
|
title: "移动",
|
|
2027
2017
|
ref: "moveComponent"
|
|
2028
|
-
}, [
|
|
2018
|
+
}, [m("i", {
|
|
2029
2019
|
"data-dragging-icon": "true",
|
|
2030
2020
|
class: "cmp_move f-icon f-icon-yxs_move"
|
|
2031
2021
|
}, null)]);
|
|
2032
2022
|
}
|
|
2033
|
-
function
|
|
2034
|
-
return
|
|
2023
|
+
function y(n) {
|
|
2024
|
+
return m("div", {
|
|
2035
2025
|
class: "component-btn-group",
|
|
2036
2026
|
"data-noattach": "true"
|
|
2037
|
-
}, [
|
|
2027
|
+
}, [m("div", null, [I(), k(), S(n)])]);
|
|
2038
2028
|
}
|
|
2039
|
-
|
|
2040
|
-
h.value =
|
|
2029
|
+
z(() => o.modelValue, (n) => {
|
|
2030
|
+
h.value = n, E.schema = n;
|
|
2041
2031
|
});
|
|
2042
|
-
function
|
|
2043
|
-
const a =
|
|
2044
|
-
|
|
2032
|
+
function x(n) {
|
|
2033
|
+
const a = n.target;
|
|
2034
|
+
Ft(a);
|
|
2045
2035
|
}
|
|
2046
|
-
function
|
|
2047
|
-
var
|
|
2048
|
-
(a = (
|
|
2036
|
+
function A() {
|
|
2037
|
+
var n, a;
|
|
2038
|
+
(a = (n = h.value) == null ? void 0 : n.contents) != null && a.length && c.value && c.value.addEventListener("scroll", x);
|
|
2049
2039
|
}
|
|
2050
|
-
function
|
|
2051
|
-
const
|
|
2052
|
-
return
|
|
2040
|
+
function C() {
|
|
2041
|
+
const n = c.value, a = M(n.children[1]);
|
|
2042
|
+
return Nt(a, E).value;
|
|
2053
2043
|
}
|
|
2054
|
-
|
|
2055
|
-
if (
|
|
2056
|
-
const
|
|
2057
|
-
f.value =
|
|
2044
|
+
G(() => {
|
|
2045
|
+
if (c.value) {
|
|
2046
|
+
const n = c.value.querySelector(`[data-dragref='${h.value.id}-container']`);
|
|
2047
|
+
f.value = n && n.componentInstance ? n.componentInstance.value : C(), l && n && l.attachComponents(n, h.value), u.value = f.value.canNested !== void 0 ? f.value.canNested : u.value, s.value = f.value.canAdd !== void 0 ? f.value.canAdd : s.value, i.value = f.value.canDelete !== void 0 ? f.value.canDelete : i.value, t.value = f.value.canMove !== void 0 ? f.value.canMove : t.value, b.value = f.value.styles || "", c.value && (c.value.componentInstance = f, c.value.designItemContext = E);
|
|
2058
2048
|
}
|
|
2059
|
-
|
|
2060
|
-
}),
|
|
2061
|
-
|
|
2049
|
+
A(), se.value++;
|
|
2050
|
+
}), je(() => {
|
|
2051
|
+
c.value && c.value.removeEventListener("scroll", x);
|
|
2062
2052
|
});
|
|
2063
|
-
function r(
|
|
2064
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
const D = f.value.getDraggableDesignItemElement(k);
|
|
2071
|
-
D && D.value && D.value.classList.add("dgComponentSelected");
|
|
2072
|
-
}
|
|
2053
|
+
function r(n) {
|
|
2054
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((T) => T.classList.remove("dgComponentFocused")), n && (n.preventDefault(), n.stopPropagation());
|
|
2055
|
+
let a = E.designerItemElementRef;
|
|
2056
|
+
const p = c.value;
|
|
2057
|
+
if (p) {
|
|
2058
|
+
const T = document.getElementsByClassName("dgComponentSelected");
|
|
2059
|
+
T && T.length === 1 && T[0] === c.value || (Array.from(T).forEach((B) => B.classList.remove("dgComponentSelected")), p.classList.add("dgComponentFocused"), e.emit("selectionChange", h.value.type, h.value, o.componentId, f.value), a = f.value.getDraggableDesignItemElement(E), a && a.value && a.value.classList.add("dgComponentSelected"));
|
|
2073
2060
|
}
|
|
2074
|
-
|
|
2061
|
+
x({
|
|
2062
|
+
target: a == null ? void 0 : a.value
|
|
2063
|
+
});
|
|
2075
2064
|
}
|
|
2076
|
-
return () =>
|
|
2077
|
-
id: `${
|
|
2078
|
-
ref:
|
|
2079
|
-
class:
|
|
2080
|
-
style:
|
|
2065
|
+
return () => m("div", {
|
|
2066
|
+
id: `${o.id}-design-item`,
|
|
2067
|
+
ref: c,
|
|
2068
|
+
class: O.value,
|
|
2069
|
+
style: j.value,
|
|
2081
2070
|
onClick: r
|
|
2082
|
-
}, [
|
|
2071
|
+
}, [y(h.value), e.slots.default && e.slots.default()]);
|
|
2083
2072
|
}
|
|
2084
2073
|
});
|
|
2085
|
-
class
|
|
2074
|
+
class Lt extends te {
|
|
2086
2075
|
constructor(e, t) {
|
|
2087
2076
|
super(e, t);
|
|
2088
2077
|
}
|
|
@@ -2143,10 +2132,8 @@ class Ht extends ee {
|
|
|
2143
2132
|
label: "onClick",
|
|
2144
2133
|
name: "点击事件"
|
|
2145
2134
|
}
|
|
2146
|
-
];
|
|
2147
|
-
|
|
2148
|
-
const i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), p = {};
|
|
2149
|
-
p[s.viewModelId] = {
|
|
2135
|
+
], s = this, i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), u = {};
|
|
2136
|
+
u[s.viewModelId] = {
|
|
2150
2137
|
type: "events-editor",
|
|
2151
2138
|
editor: {
|
|
2152
2139
|
initialData: i
|
|
@@ -2154,19 +2141,19 @@ class Ht extends ee {
|
|
|
2154
2141
|
}, this.propertyConfig.categories.eventsEditor = {
|
|
2155
2142
|
title: "事件",
|
|
2156
2143
|
hideTitle: !0,
|
|
2157
|
-
properties:
|
|
2144
|
+
properties: u,
|
|
2158
2145
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
2159
2146
|
refreshPanelAfterChanged: !0,
|
|
2160
2147
|
tabId: "commands",
|
|
2161
2148
|
tabName: "交互",
|
|
2162
|
-
setPropertyRelates(
|
|
2163
|
-
const w =
|
|
2149
|
+
setPropertyRelates(d, g) {
|
|
2150
|
+
const w = d.propertyValue;
|
|
2164
2151
|
delete e[s.viewModelId], w && (w.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, w.events, w));
|
|
2165
2152
|
}
|
|
2166
2153
|
};
|
|
2167
2154
|
}
|
|
2168
2155
|
}
|
|
2169
|
-
class
|
|
2156
|
+
class Vt extends te {
|
|
2170
2157
|
constructor(e, t) {
|
|
2171
2158
|
super(e, t);
|
|
2172
2159
|
}
|
|
@@ -2192,7 +2179,7 @@ class zt extends ee {
|
|
|
2192
2179
|
type: "combo-list",
|
|
2193
2180
|
textField: "value",
|
|
2194
2181
|
valueField: "key",
|
|
2195
|
-
data: [{ key: "response-toolbar-item", value:
|
|
2182
|
+
data: [{ key: "response-toolbar-item", value: ee["response-toolbar-item"].name }]
|
|
2196
2183
|
}
|
|
2197
2184
|
},
|
|
2198
2185
|
text: {
|
|
@@ -2215,7 +2202,7 @@ class zt extends ee {
|
|
|
2215
2202
|
description: "Behavior",
|
|
2216
2203
|
properties: {
|
|
2217
2204
|
disabled: {
|
|
2218
|
-
title: "
|
|
2205
|
+
title: "禁用",
|
|
2219
2206
|
type: "boolean",
|
|
2220
2207
|
description: "按钮禁用状态",
|
|
2221
2208
|
refreshPanelAfterChanged: !0
|
|
@@ -2229,7 +2216,7 @@ class zt extends ee {
|
|
|
2229
2216
|
description: "Appearance",
|
|
2230
2217
|
properties: {
|
|
2231
2218
|
class: {
|
|
2232
|
-
title: "class",
|
|
2219
|
+
title: "class样式",
|
|
2233
2220
|
type: "string",
|
|
2234
2221
|
description: "",
|
|
2235
2222
|
$converter: "/converter/appearance.converter"
|
|
@@ -2243,8 +2230,8 @@ class zt extends ee {
|
|
|
2243
2230
|
label: "onClick",
|
|
2244
2231
|
name: "点击事件"
|
|
2245
2232
|
}
|
|
2246
|
-
], s = this, i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t),
|
|
2247
|
-
|
|
2233
|
+
], s = this, i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), u = {};
|
|
2234
|
+
u[s.viewModelId] = {
|
|
2248
2235
|
type: "events-editor",
|
|
2249
2236
|
editor: {
|
|
2250
2237
|
initialData: i
|
|
@@ -2252,20 +2239,20 @@ class zt extends ee {
|
|
|
2252
2239
|
}, this.propertyConfig.categories.eventsEditor = {
|
|
2253
2240
|
title: "事件",
|
|
2254
2241
|
hideTitle: !0,
|
|
2255
|
-
properties:
|
|
2242
|
+
properties: u,
|
|
2256
2243
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
2257
2244
|
refreshPanelAfterChanged: !0,
|
|
2258
2245
|
tabId: "commands",
|
|
2259
2246
|
tabName: "交互",
|
|
2260
|
-
setPropertyRelates(
|
|
2261
|
-
const w =
|
|
2247
|
+
setPropertyRelates(d, g) {
|
|
2248
|
+
const w = d.propertyValue;
|
|
2262
2249
|
delete e[s.viewModelId], w && (w.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, w.events, w));
|
|
2263
2250
|
}
|
|
2264
2251
|
};
|
|
2265
2252
|
}
|
|
2266
2253
|
}
|
|
2267
|
-
function
|
|
2268
|
-
function t(
|
|
2254
|
+
function Ut(o, e) {
|
|
2255
|
+
function t(g) {
|
|
2269
2256
|
return !1;
|
|
2270
2257
|
}
|
|
2271
2258
|
function s() {
|
|
@@ -2274,216 +2261,219 @@ function Gt(n, e) {
|
|
|
2274
2261
|
function i() {
|
|
2275
2262
|
return !0;
|
|
2276
2263
|
}
|
|
2277
|
-
function
|
|
2264
|
+
function u() {
|
|
2278
2265
|
return !1;
|
|
2279
2266
|
}
|
|
2280
|
-
function
|
|
2267
|
+
function d(g) {
|
|
2281
2268
|
let w;
|
|
2282
|
-
switch (
|
|
2269
|
+
switch (o.schema.type) {
|
|
2283
2270
|
case "tab-toolbar-item":
|
|
2284
|
-
w = new
|
|
2271
|
+
w = new Lt(g, e);
|
|
2285
2272
|
break;
|
|
2286
2273
|
default:
|
|
2287
|
-
w = new
|
|
2274
|
+
w = new Vt(g, e);
|
|
2288
2275
|
}
|
|
2289
|
-
return w.getPropertyConfig(
|
|
2276
|
+
return w.getPropertyConfig(o.schema);
|
|
2290
2277
|
}
|
|
2291
2278
|
return {
|
|
2292
2279
|
canAccepts: t,
|
|
2293
2280
|
checkCanMoveComponent: s,
|
|
2294
2281
|
checkCanDeleteComponent: i,
|
|
2295
|
-
checkCanAddComponent:
|
|
2296
|
-
getPropsConfig:
|
|
2282
|
+
checkCanAddComponent: u,
|
|
2283
|
+
getPropsConfig: d
|
|
2297
2284
|
};
|
|
2298
2285
|
}
|
|
2299
|
-
const
|
|
2286
|
+
const xe = /* @__PURE__ */ W({
|
|
2300
2287
|
name: "FResponseToolbarItemDesign",
|
|
2301
2288
|
props: Me,
|
|
2302
2289
|
emits: ["Click"],
|
|
2303
|
-
setup(
|
|
2304
|
-
|
|
2305
|
-
const t =
|
|
2290
|
+
setup(o, e) {
|
|
2291
|
+
M(), M();
|
|
2292
|
+
const t = M(o.alignment), s = {
|
|
2306
2293
|
id: "__more_buttons__",
|
|
2307
2294
|
text: "More"
|
|
2308
|
-
}, i =
|
|
2309
|
-
|
|
2310
|
-
const
|
|
2295
|
+
}, i = M(new Q(s));
|
|
2296
|
+
F(() => i.value.children.length > 0);
|
|
2297
|
+
const u = M(), d = V("designer-host-service"), g = V("design-item-context"), w = Ut(g, d), h = ve(u, g, w);
|
|
2311
2298
|
V("toolbar-item-handler", () => {
|
|
2312
|
-
}),
|
|
2313
|
-
|
|
2299
|
+
}), G(() => {
|
|
2300
|
+
u.value.componentInstance = h;
|
|
2314
2301
|
}), e.expose(h.value);
|
|
2315
2302
|
function b() {
|
|
2316
2303
|
const f = {
|
|
2317
2304
|
"f-icon": !0
|
|
2318
|
-
}, v =
|
|
2319
|
-
return
|
|
2320
|
-
}
|
|
2321
|
-
function l() {
|
|
2322
|
-
return !!(n.icon && n.icon.trim());
|
|
2305
|
+
}, v = o.icon ? o.icon.trim() : "";
|
|
2306
|
+
return Z(f, v);
|
|
2323
2307
|
}
|
|
2324
2308
|
function c() {
|
|
2309
|
+
return !!(o.icon && o.icon.trim());
|
|
2310
|
+
}
|
|
2311
|
+
function l() {
|
|
2325
2312
|
const f = {
|
|
2326
2313
|
btn: !0,
|
|
2327
2314
|
"f-rt-btn": !0,
|
|
2328
2315
|
"f-btn-ml": t.value === "right",
|
|
2329
2316
|
"f-btn-mr": t.value === "left",
|
|
2330
|
-
"btn-icontext": !!(
|
|
2331
|
-
disabled:
|
|
2317
|
+
"btn-icontext": !!(o.icon && o.icon.trim()),
|
|
2318
|
+
disabled: o.disabled === !0
|
|
2332
2319
|
};
|
|
2333
|
-
return
|
|
2320
|
+
return Z(f, o.class);
|
|
2334
2321
|
}
|
|
2335
|
-
return () =>
|
|
2336
|
-
ref:
|
|
2337
|
-
"data-dragref": `${
|
|
2322
|
+
return () => m("div", {
|
|
2323
|
+
ref: u,
|
|
2324
|
+
"data-dragref": `${g.schema.id}-container`,
|
|
2338
2325
|
class: "farris-component position-relative",
|
|
2339
2326
|
style: "display:inline-block!important;"
|
|
2340
|
-
}, [
|
|
2327
|
+
}, [m("button", {
|
|
2341
2328
|
type: "button",
|
|
2342
|
-
class:
|
|
2343
|
-
id:
|
|
2344
|
-
}, [
|
|
2329
|
+
class: l(),
|
|
2330
|
+
id: o.id
|
|
2331
|
+
}, [c() && m("i", {
|
|
2345
2332
|
class: b()
|
|
2346
|
-
}, null),
|
|
2333
|
+
}, null), o.text])]);
|
|
2347
2334
|
}
|
|
2348
|
-
}),
|
|
2335
|
+
}), Be = /* @__PURE__ */ W({
|
|
2349
2336
|
name: "FResponseToolbarDesign",
|
|
2350
|
-
props:
|
|
2337
|
+
props: Et,
|
|
2351
2338
|
emits: ["Click"],
|
|
2352
|
-
setup(
|
|
2353
|
-
const t =
|
|
2354
|
-
let s = new Array(t.value.length).fill(
|
|
2355
|
-
const i =
|
|
2339
|
+
setup(o, e) {
|
|
2340
|
+
const t = M(o.items);
|
|
2341
|
+
let s = new Array(t.value.length).fill(M());
|
|
2342
|
+
const i = M(), u = M(), d = M(o.alignment), g = {
|
|
2356
2343
|
id: "__more_buttons__",
|
|
2357
2344
|
text: "More"
|
|
2358
|
-
}, w =
|
|
2359
|
-
|
|
2360
|
-
const b =
|
|
2361
|
-
|
|
2362
|
-
|
|
2345
|
+
}, w = M(new Q(g)), h = ke();
|
|
2346
|
+
F(() => w.value.children.length > 0);
|
|
2347
|
+
const b = M(), c = V("designer-host-service"), l = V("design-item-context"), f = jt(l, c), v = ve(b, l, f), E = V("toolbar-item-handler", () => {
|
|
2348
|
+
});
|
|
2349
|
+
G(() => {
|
|
2363
2350
|
b.value.componentInstance = v;
|
|
2364
2351
|
}), e.expose(v.value);
|
|
2365
|
-
|
|
2352
|
+
function O() {
|
|
2353
|
+
E && E();
|
|
2354
|
+
}
|
|
2355
|
+
const j = F(() => Z({
|
|
2366
2356
|
"f-toolbar": !0,
|
|
2367
2357
|
"f-response-toolbar": !0,
|
|
2368
2358
|
"position-relative": !0
|
|
2369
|
-
},
|
|
2359
|
+
}, o.customClass)), _ = F(() => ({
|
|
2370
2360
|
"d-flex": !0,
|
|
2371
2361
|
"flex-nowrap": !0,
|
|
2372
|
-
"justify-content-end":
|
|
2373
|
-
"justify-content-start":
|
|
2362
|
+
"justify-content-end": d.value === "right",
|
|
2363
|
+
"justify-content-start": d.value === "left"
|
|
2374
2364
|
})), {
|
|
2375
|
-
renderToolbarDropdown:
|
|
2376
|
-
clearAllDropDown:
|
|
2377
|
-
} =
|
|
2378
|
-
function
|
|
2379
|
-
t.value.filter((
|
|
2380
|
-
|
|
2381
|
-
}), w.value.expanded = !1,
|
|
2365
|
+
renderToolbarDropdown: D,
|
|
2366
|
+
clearAllDropDown: I
|
|
2367
|
+
} = At(o, h, v);
|
|
2368
|
+
function S() {
|
|
2369
|
+
t.value.filter((n) => n.children && n.children.length > 0).forEach((n) => {
|
|
2370
|
+
n.expanded = !1;
|
|
2371
|
+
}), w.value.expanded = !1, I();
|
|
2382
2372
|
}
|
|
2383
|
-
const
|
|
2384
|
-
function x(
|
|
2385
|
-
const
|
|
2386
|
-
let
|
|
2387
|
-
const
|
|
2388
|
-
if (
|
|
2389
|
-
const
|
|
2390
|
-
|
|
2373
|
+
const k = /* @__PURE__ */ new Map(), y = [];
|
|
2374
|
+
function x(n) {
|
|
2375
|
+
const a = u.value;
|
|
2376
|
+
let p = n;
|
|
2377
|
+
const T = Array.from(a.children), P = T[T.length - 1].id === "__more_buttons__" ? T[T.length - 1] : null;
|
|
2378
|
+
if (P) {
|
|
2379
|
+
const $ = P.computedStyleMap().get("margin-left"), L = P.computedStyleMap().get("margin-right"), H = ($ ? $.value : 0) + P.getBoundingClientRect().width + (L ? L.value : 0);
|
|
2380
|
+
p -= H;
|
|
2391
2381
|
}
|
|
2392
|
-
const
|
|
2393
|
-
for (const
|
|
2394
|
-
const
|
|
2395
|
-
|
|
2396
|
-
id:
|
|
2397
|
-
width:
|
|
2398
|
-
})) :
|
|
2382
|
+
const B = T.filter(($) => $.id !== "__more_buttons__");
|
|
2383
|
+
for (const $ of B) {
|
|
2384
|
+
const L = $.computedStyleMap().get("margin-left"), H = $.computedStyleMap().get("margin-right"), J = (L ? L.value : 0) + $.getBoundingClientRect().width + (H ? H.value : 0);
|
|
2385
|
+
p < J ? (k.set($.id, !0), y.push({
|
|
2386
|
+
id: $.id,
|
|
2387
|
+
width: J
|
|
2388
|
+
})) : p -= J;
|
|
2399
2389
|
}
|
|
2400
|
-
if (
|
|
2401
|
-
for (let
|
|
2402
|
-
const
|
|
2403
|
-
if (
|
|
2404
|
-
|
|
2390
|
+
if (y.length)
|
|
2391
|
+
for (let $ = y.length - 1; $ >= 0; $--) {
|
|
2392
|
+
const L = y[$].width;
|
|
2393
|
+
if (p >= L)
|
|
2394
|
+
p -= L, k.delete(y[$].id), y.pop();
|
|
2405
2395
|
else
|
|
2406
2396
|
break;
|
|
2407
2397
|
}
|
|
2408
|
-
const
|
|
2409
|
-
|
|
2410
|
-
const
|
|
2411
|
-
w.value =
|
|
2398
|
+
const N = Object.assign({}, w.value);
|
|
2399
|
+
N.children = [];
|
|
2400
|
+
const U = new Q(N), q = t.value.reduce(($, L) => (k.has(L.id) && U.children.push(L), L.visible = !k.has(L.id), $.push(L), $), []);
|
|
2401
|
+
w.value = U, t.value = q;
|
|
2412
2402
|
}
|
|
2413
|
-
const
|
|
2414
|
-
if (
|
|
2415
|
-
const
|
|
2416
|
-
(
|
|
2403
|
+
const A = new ResizeObserver((n) => {
|
|
2404
|
+
if (n.length) {
|
|
2405
|
+
const p = n[0].contentRect.width, P = u.value.getBoundingClientRect().width;
|
|
2406
|
+
(p < P || y.length) && x(p);
|
|
2417
2407
|
}
|
|
2418
2408
|
});
|
|
2419
|
-
|
|
2420
|
-
const
|
|
2421
|
-
|
|
2422
|
-
}),
|
|
2423
|
-
|
|
2424
|
-
}),
|
|
2425
|
-
t.value =
|
|
2409
|
+
G(() => {
|
|
2410
|
+
const n = i.value;
|
|
2411
|
+
A.observe(n), document.body.addEventListener("click", S);
|
|
2412
|
+
}), be(() => {
|
|
2413
|
+
A.disconnect(), document.body.removeEventListener("click", S);
|
|
2414
|
+
}), z(() => o.items, () => {
|
|
2415
|
+
t.value = o.items;
|
|
2426
2416
|
}, {
|
|
2427
2417
|
deep: !0
|
|
2428
|
-
}),
|
|
2429
|
-
s = new Array(t.value.length).fill(
|
|
2418
|
+
}), z(t, (n) => {
|
|
2419
|
+
s = new Array(t.value.length).fill(M());
|
|
2430
2420
|
});
|
|
2431
|
-
function
|
|
2432
|
-
|
|
2421
|
+
function C(n, a, p, T) {
|
|
2422
|
+
l && l.setupContext && l.setupContext.emit("selectionChange", n, a, p, T);
|
|
2433
2423
|
}
|
|
2434
|
-
function
|
|
2435
|
-
const
|
|
2436
|
-
|
|
2424
|
+
function r() {
|
|
2425
|
+
const n = u.value.querySelector(".dgComponentFocused.dgComponentSelected");
|
|
2426
|
+
n == null || n.classList.remove("dgComponentSelected"), n == null || n.classList.remove("dgComponentFocused"), O();
|
|
2437
2427
|
}
|
|
2438
|
-
return () =>
|
|
2428
|
+
return () => m("div", {
|
|
2439
2429
|
ref: b,
|
|
2440
|
-
"data-dragref": `${
|
|
2441
|
-
class:
|
|
2442
|
-
}, [
|
|
2430
|
+
"data-dragref": `${l.schema.id}-container`,
|
|
2431
|
+
class: j.value
|
|
2432
|
+
}, [m("div", {
|
|
2443
2433
|
ref: i,
|
|
2444
|
-
class:
|
|
2445
|
-
}, [
|
|
2446
|
-
ref:
|
|
2434
|
+
class: _.value
|
|
2435
|
+
}, [m("div", {
|
|
2436
|
+
ref: u,
|
|
2447
2437
|
class: "d-inline-block f-response-content",
|
|
2448
2438
|
style: "white-space: nowrap;"
|
|
2449
|
-
}, [t.value.map((
|
|
2450
|
-
ref: s[
|
|
2439
|
+
}, [t.value.map((n, a) => m(Ee, {
|
|
2440
|
+
ref: s[a],
|
|
2451
2441
|
class: "p-0 display-inline-block",
|
|
2452
|
-
modelValue:
|
|
2453
|
-
"onUpdate:modelValue": (
|
|
2442
|
+
modelValue: n,
|
|
2443
|
+
"onUpdate:modelValue": (p) => n = p,
|
|
2454
2444
|
canMove: !0,
|
|
2455
2445
|
childType: "response-toolbar-item",
|
|
2456
2446
|
childLabel: "按钮",
|
|
2457
2447
|
contentKey: "buttons",
|
|
2458
|
-
componentId:
|
|
2459
|
-
id:
|
|
2448
|
+
componentId: o.componentId,
|
|
2449
|
+
id: n.id,
|
|
2460
2450
|
style: "padding:0 !important;display:inline-block",
|
|
2461
|
-
onSelectionChange:
|
|
2462
|
-
onRemoveComponent:
|
|
2451
|
+
onSelectionChange: C,
|
|
2452
|
+
onRemoveComponent: r
|
|
2463
2453
|
}, {
|
|
2464
2454
|
default: () => {
|
|
2465
|
-
var
|
|
2466
|
-
return [
|
|
2467
|
-
id:
|
|
2468
|
-
disabled:
|
|
2469
|
-
text:
|
|
2470
|
-
icon:
|
|
2471
|
-
class: ((
|
|
2472
|
-
alignment:
|
|
2473
|
-
componentId:
|
|
2455
|
+
var p;
|
|
2456
|
+
return [m(xe, {
|
|
2457
|
+
id: n.id,
|
|
2458
|
+
disabled: n.disabled,
|
|
2459
|
+
text: n.text,
|
|
2460
|
+
icon: n.icon,
|
|
2461
|
+
class: ((p = n.appearance) == null ? void 0 : p.class) || "btn-secondary",
|
|
2462
|
+
alignment: o.alignment || "right",
|
|
2463
|
+
componentId: o.componentId
|
|
2474
2464
|
}, null)];
|
|
2475
2465
|
}
|
|
2476
2466
|
}))])])]);
|
|
2477
2467
|
}
|
|
2478
|
-
}), me =
|
|
2479
|
-
|
|
2480
|
-
|
|
2468
|
+
}), me = le;
|
|
2469
|
+
K.register = (o, e, t) => {
|
|
2470
|
+
o["response-toolbar"] = K, e["response-toolbar"] = le;
|
|
2481
2471
|
};
|
|
2482
|
-
|
|
2483
|
-
|
|
2472
|
+
K.registerDesigner = (o, e, t) => {
|
|
2473
|
+
o["response-toolbar"] = Be, e["response-toolbar"] = le, o["response-toolbar-item"] = xe, e["response-toolbar-item"] = xt;
|
|
2484
2474
|
};
|
|
2485
|
-
|
|
2486
|
-
const
|
|
2475
|
+
Fe(K);
|
|
2476
|
+
const Wt = {
|
|
2487
2477
|
id: { type: String, default: "" },
|
|
2488
2478
|
componentId: { type: String, default: "" },
|
|
2489
2479
|
type: { type: String, default: "" },
|
|
@@ -2498,104 +2488,104 @@ const Jt = {
|
|
|
2498
2488
|
*/
|
|
2499
2489
|
modelValue: { type: Object },
|
|
2500
2490
|
ignore: { type: Boolean, default: !1 }
|
|
2501
|
-
},
|
|
2491
|
+
}, ge = /* @__PURE__ */ W({
|
|
2502
2492
|
name: "FDesignerTemplateItem",
|
|
2503
|
-
props:
|
|
2493
|
+
props: Wt,
|
|
2504
2494
|
emits: ["selectionChange"],
|
|
2505
|
-
setup(
|
|
2506
|
-
const t =
|
|
2495
|
+
setup(o, e) {
|
|
2496
|
+
const t = M(), s = F(() => ({
|
|
2507
2497
|
"farris-component": !0
|
|
2508
2498
|
}));
|
|
2509
|
-
function i(
|
|
2510
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
2511
|
-
const
|
|
2512
|
-
if (
|
|
2513
|
-
const
|
|
2514
|
-
|
|
2499
|
+
function i(u) {
|
|
2500
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((g) => g.classList.remove("dgComponentFocused")), u && (u.preventDefault(), u.stopPropagation());
|
|
2501
|
+
const d = t.value;
|
|
2502
|
+
if (d) {
|
|
2503
|
+
const g = document.getElementsByClassName("dgComponentSelected");
|
|
2504
|
+
g && g.length === 1 && g[0] === t.value || (Array.from(g).forEach((h) => h.classList.remove("dgComponentSelected")), d.classList.add("dgComponentFocused"));
|
|
2515
2505
|
}
|
|
2516
|
-
|
|
2506
|
+
se.value++;
|
|
2517
2507
|
}
|
|
2518
|
-
return () =>
|
|
2519
|
-
id: `${
|
|
2508
|
+
return () => m("div", {
|
|
2509
|
+
id: `${o.id}-design-item`,
|
|
2520
2510
|
ref: t,
|
|
2521
2511
|
class: s.value,
|
|
2522
2512
|
onClick: i
|
|
2523
2513
|
}, [e.slots.default && e.slots.default()]);
|
|
2524
2514
|
}
|
|
2525
|
-
}),
|
|
2515
|
+
}), qt = /* @__PURE__ */ W({
|
|
2526
2516
|
name: "FPageHeaderDesign",
|
|
2527
|
-
props:
|
|
2528
|
-
emits: ["
|
|
2529
|
-
setup(
|
|
2530
|
-
const t =
|
|
2517
|
+
props: nt,
|
|
2518
|
+
emits: ["click"],
|
|
2519
|
+
setup(o, e) {
|
|
2520
|
+
const t = M(), s = V("designer-host-service"), i = V("design-item-context"), u = it(i.schema, s), d = st(t, i, u), g = M(i.schema.toolbar || {
|
|
2531
2521
|
type: "response-toolbar",
|
|
2532
2522
|
buttons: []
|
|
2533
|
-
}), w =
|
|
2534
|
-
|
|
2535
|
-
t.value.componentInstance =
|
|
2536
|
-
}),
|
|
2537
|
-
|
|
2523
|
+
}), w = M(me(g.value));
|
|
2524
|
+
G(() => {
|
|
2525
|
+
t.value.componentInstance = d;
|
|
2526
|
+
}), z(() => i.schema.toolbar, () => {
|
|
2527
|
+
g.value = i.schema.toolbar || {
|
|
2538
2528
|
type: "response-toolbar",
|
|
2539
2529
|
buttons: []
|
|
2540
|
-
}, w.value = me(
|
|
2530
|
+
}, w.value = me(g.value);
|
|
2541
2531
|
}, {
|
|
2542
2532
|
deep: !0
|
|
2543
2533
|
});
|
|
2544
|
-
const h =
|
|
2545
|
-
function b(
|
|
2546
|
-
i && i.setupContext && i.setupContext.emit("selectionChange",
|
|
2534
|
+
const h = F(() => [...w.value.items]);
|
|
2535
|
+
function b(c, l, f, v) {
|
|
2536
|
+
i && i.setupContext && i.setupContext.emit("selectionChange", c, l, f, v);
|
|
2547
2537
|
}
|
|
2548
|
-
return e.expose(
|
|
2538
|
+
return e.expose(d.value), () => m("div", {
|
|
2549
2539
|
ref: t
|
|
2550
|
-
}, [
|
|
2540
|
+
}, [m("nav", {
|
|
2551
2541
|
class: "f-page-header-base"
|
|
2552
|
-
}, [
|
|
2542
|
+
}, [m("div", {
|
|
2553
2543
|
class: "f-title"
|
|
2554
|
-
}, [
|
|
2555
|
-
default: () => [
|
|
2544
|
+
}, [m(ge, null, {
|
|
2545
|
+
default: () => [m("span", {
|
|
2556
2546
|
class: "f-title-icon f-text-orna-manage"
|
|
2557
|
-
}, [
|
|
2558
|
-
class:
|
|
2547
|
+
}, [m("i", {
|
|
2548
|
+
class: o.icon
|
|
2559
2549
|
}, null)])]
|
|
2560
|
-
}),
|
|
2561
|
-
default: () => [
|
|
2550
|
+
}), m(ge, null, {
|
|
2551
|
+
default: () => [m("h4", {
|
|
2562
2552
|
class: "f-title-text"
|
|
2563
|
-
}, [
|
|
2564
|
-
})]),
|
|
2553
|
+
}, [o.title])]
|
|
2554
|
+
})]), m(Ee, {
|
|
2565
2555
|
class: "col-6 text-right",
|
|
2566
|
-
modelValue:
|
|
2567
|
-
"onUpdate:modelValue": (
|
|
2556
|
+
modelValue: g.value,
|
|
2557
|
+
"onUpdate:modelValue": (c) => g.value = c,
|
|
2568
2558
|
canAdd: !0,
|
|
2569
2559
|
childType: "response-toolbar-item",
|
|
2570
2560
|
childLabel: "按钮",
|
|
2571
2561
|
contentKey: "buttons",
|
|
2572
|
-
id:
|
|
2573
|
-
componentId:
|
|
2562
|
+
id: g.value.id,
|
|
2563
|
+
componentId: o.componentId,
|
|
2574
2564
|
onSelectionChange: b
|
|
2575
2565
|
}, {
|
|
2576
|
-
default: () => [
|
|
2566
|
+
default: () => [m(Be, {
|
|
2577
2567
|
customClass: "w-100",
|
|
2578
2568
|
items: h.value,
|
|
2579
|
-
componentId:
|
|
2569
|
+
componentId: o.componentId
|
|
2580
2570
|
}, null)]
|
|
2581
2571
|
})])]);
|
|
2582
2572
|
}
|
|
2583
|
-
}),
|
|
2584
|
-
install(
|
|
2585
|
-
|
|
2573
|
+
}), Yt = {
|
|
2574
|
+
install(o) {
|
|
2575
|
+
o.component(oe.name, oe);
|
|
2586
2576
|
},
|
|
2587
|
-
register(
|
|
2588
|
-
|
|
2577
|
+
register(o, e, t, s) {
|
|
2578
|
+
o["page-header"] = oe, e["page-header"] = pe, s["page-header"] = { eventHandlerResolver: ot };
|
|
2589
2579
|
},
|
|
2590
|
-
registerDesigner(
|
|
2591
|
-
|
|
2580
|
+
registerDesigner(o, e, t) {
|
|
2581
|
+
o["page-header"] = qt, e["page-header"] = pe;
|
|
2592
2582
|
}
|
|
2593
2583
|
};
|
|
2594
2584
|
export {
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2585
|
+
oe as PageHeader,
|
|
2586
|
+
Yt as default,
|
|
2587
|
+
ot as eventHandlerResolver,
|
|
2588
|
+
nt as pageHeaderDesignerProps,
|
|
2599
2589
|
ae as pageHeaderProps,
|
|
2600
2590
|
pe as propsResolver
|
|
2601
2591
|
};
|