@farris/ui-vue 1.2.9 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +64 -64
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +521 -336
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +99 -97
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +496 -504
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +251 -259
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +696 -519
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +368 -376
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1141 -340
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +116 -116
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +986 -798
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +463 -998
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2233 -1057
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +335 -1002
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6193 -4702
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4562 -3294
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3420 -2623
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +914 -883
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +14 -13
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +204 -212
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2795 -1835
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +180 -130
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +328 -336
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +65 -65
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3349 -3626
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5344 -8588
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +2179 -2227
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +684 -675
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +482 -490
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +746 -569
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +409 -385
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +348 -1019
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3606 -2388
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +10871 -8970
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6019 -5631
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +912 -1281
- package/components/nav/index.umd.cjs +3 -3
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +660 -484
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +682 -506
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1848 -1658
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +100 -100
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1120 -1923
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +875 -1214
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +229 -237
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +2314 -1521
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.esm.js +867 -868
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +4332 -3623
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +72 -72
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +613 -437
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +255 -263
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +144 -152
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1101 -1038
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +935 -1750
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5264 -5677
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +151 -154
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +438 -1125
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +93 -101
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +563 -1202
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +248 -256
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +549 -373
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +2436 -3110
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +328 -336
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +339 -347
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +554 -378
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1322 -1144
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +537 -543
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5113 -9426
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +3900 -2677
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +568 -570
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +266 -274
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +553 -1052
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +558 -566
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +22009 -22688
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +0 -3
- package/types/combo-list/src/components/list-container.props.d.ts +0 -4
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/index.d.ts +9 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/condition/src/types.d.ts +2 -1
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +11 -5
- package/types/data-grid/src/data-grid.component.d.ts +4 -2
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +19 -4
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- 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/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +2 -3
- package/types/designer-canvas/src/types.d.ts +2 -1
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +1 -1
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/types.d.ts +9 -0
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/index.d.ts +2 -0
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/{data-grid/src/designer/use-group-column.d.ts → query-solution/src/designer/query-solution-config/composition/use-property.d.ts} +4 -5
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ref as H, defineComponent as Fe, computed as Te, createVNode as J, createTextVNode as gt, inject as me, provide as
|
|
1
|
+
import { ref as H, defineComponent as Fe, computed as Te, createVNode as J, createTextVNode as gt, inject as me, provide as Oe, watch as He, onMounted as We, onBeforeUnmount as yt, mergeProps as $e, isVNode as ht } from "vue";
|
|
2
2
|
import { findIndex as Ye } from "lodash-es";
|
|
3
3
|
import Ct from "../accordion/index.esm.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import bt from "../avatar/index.esm.js";
|
|
5
|
+
import xt from "../button-edit/index.esm.js";
|
|
6
6
|
import wt from "../button-group/index.esm.js";
|
|
7
7
|
import Pt from "../calendar/index.esm.js";
|
|
8
8
|
import It from "../capsule/index.esm.js";
|
|
9
9
|
import St from "../checkbox/index.esm.js";
|
|
10
10
|
import Tt from "../color-picker/index.esm.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
11
|
+
import Ot from "../combo-list/index.esm.js";
|
|
12
|
+
import Et from "../content-container/index.esm.js";
|
|
13
13
|
import Ft from "../data-grid/index.esm.js";
|
|
14
14
|
import At from "../date-picker/index.esm.js";
|
|
15
15
|
import Nt from "../dropdown/index.esm.js";
|
|
@@ -54,8 +54,8 @@ import gn from "../verify-detail/index.esm.js";
|
|
|
54
54
|
import yn from "../weather/index.esm.js";
|
|
55
55
|
import hn from "../component/index.esm.js";
|
|
56
56
|
import Cn from "../video/index.esm.js";
|
|
57
|
-
import
|
|
58
|
-
import
|
|
57
|
+
import bn from "../textarea/index.esm.js";
|
|
58
|
+
import xn from "../tree-grid/index.esm.js";
|
|
59
59
|
import { getCustomClass as je } from "../common/index.esm.js";
|
|
60
60
|
const wn = {
|
|
61
61
|
/**
|
|
@@ -65,7 +65,7 @@ const wn = {
|
|
|
65
65
|
};
|
|
66
66
|
function Pn() {
|
|
67
67
|
const w = { aroundDirection: "none", left: 2, right: 2, top: 2, bottom: 2, x: 0, y: 0 };
|
|
68
|
-
function
|
|
68
|
+
function N() {
|
|
69
69
|
const e = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
70
70
|
return e.setAttribute("fill", "none"), e.setAttribute("stroke", "#4d53e8"), e.setAttribute("stroke-width", "2"), e.setAttribute("class", ""), e;
|
|
71
71
|
}
|
|
@@ -77,73 +77,73 @@ function Pn() {
|
|
|
77
77
|
const e = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
78
78
|
return e.setAttribute("fill", "none"), e.setAttribute("stroke", "#4d53e8"), e.setAttribute("stroke-width", "2"), e.setAttribute("stroke-linecap", "round"), e;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function x(e, t, u, v) {
|
|
81
81
|
const s = (n) => {
|
|
82
82
|
n.key === "Delete" && (e.indexOf("^"), document.removeEventListener("keydown", s), t.remove());
|
|
83
83
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}),
|
|
87
|
-
|
|
84
|
+
u.addEventListener("mouseenter", () => {
|
|
85
|
+
u.setAttribute("stroke", "#37d0ff"), v.setAttribute("stroke", "#37d0ff"), u.setAttribute("stroke-width", "3"), document.addEventListener("keydown", s);
|
|
86
|
+
}), u.addEventListener("mouseleave", () => {
|
|
87
|
+
u.setAttribute("stroke", "#4d53e8"), u.setAttribute("stroke-width", "2"), v.setAttribute("stroke", "#4d53e8"), document.removeEventListener("keydown", s);
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
function p(e) {
|
|
91
91
|
let t = document.getElementById(e);
|
|
92
92
|
if (t == null) {
|
|
93
|
-
const
|
|
94
|
-
|
|
93
|
+
const u = document.createElementNS("http://www.w3.org/2000/svg", "svg"), v = N();
|
|
94
|
+
u.appendChild(v);
|
|
95
95
|
const s = g();
|
|
96
|
-
|
|
96
|
+
u.appendChild(s);
|
|
97
97
|
const n = C();
|
|
98
|
-
|
|
98
|
+
u.appendChild(n);
|
|
99
99
|
const j = C();
|
|
100
|
-
|
|
100
|
+
u.appendChild(j), t = document.createElement("div"), t.id = e, t.style.position = "absolute", t.appendChild(u), x(e, t, v, s);
|
|
101
101
|
const L = document.getElementById("svg-container");
|
|
102
102
|
return L && L.appendChild(t), t;
|
|
103
103
|
}
|
|
104
104
|
return t;
|
|
105
105
|
}
|
|
106
|
-
function T(e, t,
|
|
106
|
+
function T(e, t, u, v, s) {
|
|
107
107
|
const n = { x: 0, y: 0 };
|
|
108
|
-
return e === "west" && (t === "north_west" && (
|
|
108
|
+
return e === "west" && (t === "north_west" && (u === "north" && (n.x = 0, n.y = 0 - s / 2), u === "west" && (n.x = 0 - v / 2, n.y = 0)), t === "north_east" && (u === "north" && (n.x = -100, n.y = 0 - s / 2), u === "east" && (n.x = -100, n.y = 0 - s / 2)), t === "south_east" && (u === "south" && (n.x = -100, n.y = 0 + s / 2), u === "east" && (n.x = -100, n.y = 0 + s / 2)), t === "south_west" && (u === "south" && (n.x = 0, n.y = 0 + s / 2), u === "west" && (n.x = 0 - v / 2, n.y = 0))), e === "east" && (t === "north_west" && (u === "north" && (n.x = -100, n.y = 0 - s / 2), u === "west" && (n.x = 100, n.y = 0 - s / 2)), t === "north_east" && (u === "north" && (n.x = 0, n.y = 0 - s / 2), u === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_east" && (u === "south" && (n.x = 0, n.y = 0 + s / 2), u === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_west" && (u === "south" && (n.x = 100, n.y = 0 + s / 2), u === "west" && (n.x = 100, n.y = 0 + s / 2))), e === "north" && (t === "north_west" && (u === "north" && (n.x = 0, n.y = 0 - s / 2), u === "west" && (n.x = 0 - v / 2, n.y = 0)), t === "north_east" && (u === "north" && (n.x = 0, n.y = 0 - s / 2), u === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_east" && (u === "south" && (n.x = 0 + v / 2, n.y = -100), u === "east" && (n.x = 0 + v / 2, n.y = -100)), t === "south_west" && (u === "south" && (n.x = 0 - v / 2, n.y = -100), u === "west" && (n.x = 0 - v / 2, n.y = -100))), e === "south" && (t === "north_west" && (u === "north" && (n.x = 0 - v / 2, n.y = 100), u === "west" && (n.x = 0 - v / 2, n.y = 100)), t === "north_east" && (u === "north" && (n.x = 0 + v / 2, n.y = 100), u === "east" && (n.x = 0 + v / 2, n.y = 100)), t === "south_east" && (u === "south" && (n.x = 0, n.y = 0 + s / 2), u === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_west" && (u === "south" && (n.x = 0, n.y = s / 2), u === "west" && (n.x = 0 - v / 2, n.y = 0))), n;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function F(e, t, u, v) {
|
|
111
111
|
const s = { x: 0, y: 0 };
|
|
112
|
-
return e === "south" && (t === "west" && (s.x = -100, s.y = 0 - v / 2), t === "east" && (s.x = 100, s.y = -100), t === "south" && (s.x = 0 -
|
|
112
|
+
return e === "south" && (t === "west" && (s.x = -100, s.y = 0 - v / 2), t === "east" && (s.x = 100, s.y = -100), t === "south" && (s.x = 0 - u / 2, s.y = 100), (t === "north" || t === "center") && (s.x = 0, s.y = 0 - v / 2)), e === "north" && (t === "west" && (s.x = -100, s.y = 100), t === "east" && (s.x = 100, s.y = 100), t === "north" && (s.x = 0 - u / 2, s.y = -100), (t === "south" || t === "center") && (s.x = 0, s.y = v / 2)), e === "east" && (t === "north" && (s.y = -100, s.x = -100), t === "south" && (s.y = 100, s.x = -100), t === "east" && (s.x = 100, s.y = 100), (t === "west" || t === "center") && (s.x = 0 - u / 2, s.y = 0)), e === "west" && (t === "north" && (s.y = -100, s.x = 100), t === "south" && (s.y = 100, s.x = 100), t === "west" && (s.x = -100, s.y = v / 2), (t === "east" || t === "center") && (s.x = u / 2, s.y = 0)), s;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
const L = j === "south" || j === "east" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "east" : "north", ie = j === "center" ? L === "landscape" ? "west" : "south" : j, se = T(ee, n, V, e, t), { x:
|
|
114
|
+
function f(e, t, u, v, s, n, j) {
|
|
115
|
+
const L = j === "south" || j === "east" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "east" : "north", ie = j === "center" ? L === "landscape" ? "west" : "south" : j, se = T(ee, n, V, e, t), { x: D, y: h } = se, W = F(V, ie, e, t), { x: q, y: K } = W;
|
|
116
116
|
K < 0 && (t += Math.abs(K));
|
|
117
|
-
const de = /* @__PURE__ */ new Map([["default", 0 +
|
|
118
|
-
|
|
117
|
+
const de = /* @__PURE__ */ new Map([["default", 0 + D], ["portrait", 0 + D], ["landscape", 0 + D]]), oe = /* @__PURE__ */ new Map([["default", t + h], ["portrait", t + h], ["landscape", t + h]]);
|
|
118
|
+
D < 0 && (e += Math.abs(D)), q > 0 && (e += q);
|
|
119
119
|
const ye = /* @__PURE__ */ new Map([["default", e + q], ["portrait", e + q], ["landscape", e + q]]), ce = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), le = v.left > w.left, ae = v.bottom > w.bottom, pe = le ? 0 : ae ? e / 2 : de.get(L), he = ae ? t + v.bottom : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
|
|
120
120
|
return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: q, y: K }];
|
|
121
121
|
}
|
|
122
|
-
function S(e, t,
|
|
123
|
-
const L = j === "south" || j === "west" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "west" : "north", ie = j, se = T(ee, n, V, e, t), { x:
|
|
124
|
-
K < 0 && (t += Math.abs(K)),
|
|
125
|
-
const de = /* @__PURE__ */ new Map([["default", e +
|
|
122
|
+
function S(e, t, u, v, s, n, j) {
|
|
123
|
+
const L = j === "south" || j === "west" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "west" : "north", ie = j, se = T(ee, n, V, e, t), { x: D, y: h } = se, W = F(V, ie, e, t), { x: q, y: K } = W;
|
|
124
|
+
K < 0 && (t += Math.abs(K)), D > 0 && (e += D), q < 0 && (e += Math.abs(q));
|
|
125
|
+
const de = /* @__PURE__ */ new Map([["default", e + D], ["portrait", e + D], ["landscape", e + D]]), oe = /* @__PURE__ */ new Map([["default", t + h], ["portrait", t + h], ["landscape", t + h]]), ye = /* @__PURE__ */ new Map([["default", 0 + q], ["portrait", 0 + q], ["landscape", 0 + q]]), ce = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), le = v.right > w.right, ae = v.bottom > w.bottom, pe = le ? e + v.right : ae ? e / 2 : de.get(L), he = ae ? t + v.bottom : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
|
|
126
126
|
return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: q, y: K }];
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
const L = j === "north" || j === "east" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "east" : "south", ie = j, se = T(ee, n, V, e, t), { x:
|
|
130
|
-
|
|
128
|
+
function d(e, t, u, v, s, n, j) {
|
|
129
|
+
const L = j === "north" || j === "east" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "east" : "south", ie = j, se = T(ee, n, V, e, t), { x: D, y: h } = se, W = F(V, ie, e, t), { x: q, y: K } = W, de = /* @__PURE__ */ new Map([["default", 0 + D], ["portrait", 0 + D], ["landscape", 0 + D]]), oe = /* @__PURE__ */ new Map([["default", 0 + h], ["portrait", 0 + h], ["landscape", 0 + h]]);
|
|
130
|
+
D < 0 && (e += Math.abs(D)), h < 0 && (t += Math.abs(h)), q > 0 && (e += q), K > 0 && (t += K);
|
|
131
131
|
const ye = /* @__PURE__ */ new Map([["default", e + q], ["portrait", e + q], ["landscape", e + q]]), ce = /* @__PURE__ */ new Map([["default", t + K], ["portrait", t + K], ["landscape", t + K]]), le = v.left > w.left, ae = v.top > w.top, pe = le ? 0 : ae ? e / 2 : de.get(L), he = ae ? 0 : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
|
|
132
132
|
return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: q, y: K }];
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
const L = j === "north" || j === "west" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "west" : "south", ie = j, se = T(ee, n, V, e, t), { x:
|
|
134
|
+
function i(e, t, u, v, s, n, j) {
|
|
135
|
+
const L = j === "north" || j === "west" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "west" : "south", ie = j, se = T(ee, n, V, e, t), { x: D, y: h } = se, W = F(V, ie, e, t), { x: q, y: K } = W;
|
|
136
136
|
q < 0 && (e += Math.abs(q));
|
|
137
|
-
const de = /* @__PURE__ */ new Map([["default", e +
|
|
137
|
+
const de = /* @__PURE__ */ new Map([["default", e + D], ["portrait", e + D], ["landscape", e + D]]), oe = /* @__PURE__ */ new Map([["default", 0 + h], ["portrait", 0 + h], ["landscape", 0 + h]]);
|
|
138
138
|
h < 0 && (t += Math.abs(h)), K > 0 && (t += K);
|
|
139
139
|
const ye = /* @__PURE__ */ new Map([["default", 0 + q], ["portrait", 0 + q], ["landscape", 0 + q]]), ce = /* @__PURE__ */ new Map([["default", t + K], ["portrait", t + K], ["landscape", t + K]]), le = v.right > w.right, ae = v.top > w.top, pe = le ? e + v.right : ae ? e / 2 : de.get(L), he = ae ? 0 : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
|
|
140
140
|
return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: q, y: K }];
|
|
141
141
|
}
|
|
142
|
-
const
|
|
143
|
-
["north_east",
|
|
142
|
+
const o = /* @__PURE__ */ new Map([
|
|
143
|
+
["north_east", f],
|
|
144
144
|
["north_west", S],
|
|
145
|
-
["south_east",
|
|
146
|
-
["south_west",
|
|
145
|
+
["south_east", d],
|
|
146
|
+
["south_west", i]
|
|
147
147
|
]), y = /* @__PURE__ */ new Map([
|
|
148
148
|
["east", ["north_west", "south_west"]],
|
|
149
149
|
["west", ["north_east", "south_east"]],
|
|
@@ -166,7 +166,7 @@ function Pn() {
|
|
|
166
166
|
bottom: t.bottom
|
|
167
167
|
} : t;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function O(e, t) {
|
|
170
170
|
return e === "north_east" ? {
|
|
171
171
|
left: 100,
|
|
172
172
|
right: t.right,
|
|
@@ -208,35 +208,35 @@ function Pn() {
|
|
|
208
208
|
function l(e, t) {
|
|
209
209
|
return t;
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const A = /* @__PURE__ */ new Map([
|
|
212
212
|
["east", a],
|
|
213
|
-
["west",
|
|
213
|
+
["west", O],
|
|
214
214
|
["north", $],
|
|
215
215
|
["south", R],
|
|
216
216
|
["center", l]
|
|
217
217
|
]);
|
|
218
|
-
function U(e, t,
|
|
219
|
-
const s = t.x - e.x, n = t.y - e.y, j = s >= 0 ? "east" : "west", L = n >= 0 ? "south" : "north", ee = `${L}_${j}`, ie = (y.get(
|
|
218
|
+
function U(e, t, u, v) {
|
|
219
|
+
const s = t.x - e.x, n = t.y - e.y, j = s >= 0 ? "east" : "west", L = n >= 0 ? "south" : "north", ee = `${L}_${j}`, ie = (y.get(u) || []).includes(ee), se = A.get(u), D = ie ? se(ee, w) : w, h = Math.abs(s), W = Math.abs(n), q = o.get(`${L}_${j}`), [K, de, oe] = q(
|
|
220
220
|
h,
|
|
221
221
|
W,
|
|
222
222
|
ie,
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
D,
|
|
224
|
+
u,
|
|
225
225
|
ee,
|
|
226
226
|
v
|
|
227
|
-
), ye = j === "west" ? oe.x < 0 ? Math.abs(oe.x) : 0 : oe.x > 0 ? oe.x : 0, ce =
|
|
227
|
+
), ye = j === "west" ? oe.x < 0 ? Math.abs(oe.x) : 0 : oe.x > 0 ? oe.x : 0, ce = D.left + D.right + h + ye, le = L === "north" ? oe.y < 0 ? Math.abs(oe.y) : 0 : oe.y > 0 ? oe.y : 0, ae = D.top + D.bottom + W + le, pe = j === "east" ? e.x - D.left : e.x + D.right - ce, he = L === "south" ? e.y - D.top : e.y + D.bottom - ae, Ce = j === "east" ? D.left : ce - D.right, ve = L === "north" ? ae - D.bottom : D.top, Be = j === "west" ? oe.x < 0 ? Math.abs(oe.x) : 0 : oe.x < 0 ? ce : ce - oe.x, Ae = L === "north" ? oe.y < 0 ? Math.abs(oe.y) : 0 : oe.y < 0 ? ae : ae - oe.y;
|
|
228
228
|
return { width: ce, height: ae, left: pe, top: he, startPoinInBoundray: { x: Ce, y: ve }, firstControlPoint: K, secondControlPoint: de, endPoinInBoundray: { x: Be, y: Ae } };
|
|
229
229
|
}
|
|
230
|
-
function Y(e, t,
|
|
231
|
-
e.style.position = "absolute", e.style.alignItems = "center", e.style.left = `${t}px`, e.style.top = `${
|
|
230
|
+
function Y(e, t, u, v, s) {
|
|
231
|
+
e.style.position = "absolute", e.style.alignItems = "center", e.style.left = `${t}px`, e.style.top = `${u}px`, e.style.width = v + "px", e.style.height = s + "px";
|
|
232
232
|
}
|
|
233
|
-
function re(e, t,
|
|
233
|
+
function re(e, t, u, v, s, n, j) {
|
|
234
234
|
const L = e.childNodes[0];
|
|
235
|
-
L.setAttribute("width", String(t)), L.setAttribute("height", String(
|
|
236
|
-
const ee = L.childNodes[0], V = `${v.x} ${v.y}`, ie = `${s.x} ${s.y}`, se = `${n.x} ${n.y}`,
|
|
235
|
+
L.setAttribute("width", String(t)), L.setAttribute("height", String(u)), e.appendChild(L);
|
|
236
|
+
const ee = L.childNodes[0], V = `${v.x} ${v.y}`, ie = `${s.x} ${s.y}`, se = `${n.x} ${n.y}`, D = `${j.x} ${j.y}`, h = "M ".concat(V).concat(" C ").concat(ie).concat("," + se + ",").concat(D);
|
|
237
237
|
ee.setAttribute("d", h), ee.setAttribute("fill", "none"), ee.setAttribute("stroke", "#4d53e8"), ee.setAttribute("stroke-width", "2"), ee.setAttribute("class", "");
|
|
238
238
|
}
|
|
239
|
-
function Q(e, t,
|
|
239
|
+
function Q(e, t, u, v, s) {
|
|
240
240
|
const {
|
|
241
241
|
width: n,
|
|
242
242
|
height: j,
|
|
@@ -245,40 +245,40 @@ function Pn() {
|
|
|
245
245
|
startPoinInBoundray: V,
|
|
246
246
|
firstControlPoint: ie,
|
|
247
247
|
secondControlPoint: se,
|
|
248
|
-
endPoinInBoundray:
|
|
249
|
-
} = U(t,
|
|
250
|
-
Y(e, L, ee, n, j), re(e, n, j, V, ie, se,
|
|
248
|
+
endPoinInBoundray: D
|
|
249
|
+
} = U(t, u, v, s);
|
|
250
|
+
Y(e, L, ee, n, j), re(e, n, j, V, ie, se, D);
|
|
251
251
|
}
|
|
252
|
-
function m(e, t,
|
|
252
|
+
function m(e, t, u, v, s) {
|
|
253
253
|
const n = p(e);
|
|
254
|
-
Q(n, t,
|
|
254
|
+
Q(n, t, u, v, s);
|
|
255
255
|
}
|
|
256
256
|
function G(e) {
|
|
257
257
|
return Number(e.replace("px", ""));
|
|
258
258
|
}
|
|
259
259
|
function Z(e) {
|
|
260
260
|
if (e !== null) {
|
|
261
|
-
const t = e.parentNode,
|
|
261
|
+
const t = e.parentNode, u = G(t.style.left), v = G(t.style.top);
|
|
262
262
|
return {
|
|
263
|
-
x:
|
|
263
|
+
x: u + e.offsetLeft + e.offsetWidth / 2,
|
|
264
264
|
y: v + e.offsetTop + e.offsetHeight / 2
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
return { x: 0, y: 0 };
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
const
|
|
269
|
+
function c(e, t) {
|
|
270
|
+
const u = document.getElementById(e), v = document.getElementById(t), s = Z(u), n = Z(v), j = s.x + 2, L = s.y, ee = n.x - 2, V = n.y;
|
|
271
271
|
return { startPoint: { x: j, y: L }, endPoint: { x: ee, y: V } };
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
const { startPoint: s, endPoint: n } =
|
|
275
|
-
m(`${e}_${t}`, s, n,
|
|
273
|
+
function E(e, t, u, v) {
|
|
274
|
+
const { startPoint: s, endPoint: n } = c(e, t);
|
|
275
|
+
m(`${e}_${t}`, s, n, u, v);
|
|
276
276
|
}
|
|
277
|
-
return { connect:
|
|
277
|
+
return { connect: E, drawing: m };
|
|
278
278
|
}
|
|
279
|
-
function In(
|
|
280
|
-
const z = H(), I = H(0), w = H(0),
|
|
281
|
-
function
|
|
279
|
+
function In(B) {
|
|
280
|
+
const z = H(), I = H(0), w = H(0), N = H({ x: 0, y: 0 }), g = H(), { drawing: C } = B;
|
|
281
|
+
function x(a) {
|
|
282
282
|
return Number(a.replace("px", ""));
|
|
283
283
|
}
|
|
284
284
|
function p(a) {
|
|
@@ -298,40 +298,40 @@ function In(D) {
|
|
|
298
298
|
return "center";
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function F(a, O, $) {
|
|
302
302
|
const R = $.getBoundingClientRect();
|
|
303
|
-
I.value = R.left, w.value = R.top,
|
|
303
|
+
I.value = R.left, w.value = R.top, N.value = { x: a, y: O }, z.value = T($);
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function f(a) {
|
|
306
306
|
var Y;
|
|
307
|
-
const
|
|
307
|
+
const O = a.clientX - I.value, $ = a.clientY - w.value, R = N.value.x + O, l = N.value.y + $, A = a.target, U = A && typeof A.className == "string" && p(A) ? T(A) : "center";
|
|
308
308
|
C(
|
|
309
309
|
`${(Y = g.value) == null ? void 0 : Y.id}_curve_to`,
|
|
310
|
-
{ x:
|
|
310
|
+
{ x: N.value.x, y: N.value.y },
|
|
311
311
|
{ x: R, y: l },
|
|
312
312
|
z.value,
|
|
313
313
|
U
|
|
314
314
|
);
|
|
315
315
|
}
|
|
316
316
|
function S(a) {
|
|
317
|
-
const
|
|
318
|
-
|
|
317
|
+
const O = document.getElementById(a);
|
|
318
|
+
O && O.remove();
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
document.addEventListener("mousemove",
|
|
320
|
+
function d() {
|
|
321
|
+
document.addEventListener("mousemove", f);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
document.removeEventListener("mousemove",
|
|
323
|
+
function i() {
|
|
324
|
+
document.removeEventListener("mousemove", f);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
g.value = void 0,
|
|
326
|
+
function o(a) {
|
|
327
|
+
g.value = void 0, i();
|
|
328
328
|
}
|
|
329
|
-
function y(a,
|
|
329
|
+
function y(a, O) {
|
|
330
330
|
g.value = document.getElementById(a);
|
|
331
|
-
const $ = g.value.offsetParent, R = g.value.getBoundingClientRect(), l = $.getBoundingClientRect(),
|
|
332
|
-
|
|
331
|
+
const $ = g.value.offsetParent, R = g.value.getBoundingClientRect(), l = $.getBoundingClientRect(), A = x($.style.left) + (R.left - l.left), U = x($.style.top) + (R.top - l.top), Y = A + R.width / 2, re = U + R.height / 2;
|
|
332
|
+
F(Y, re, g.value), d();
|
|
333
333
|
}
|
|
334
|
-
return { drawFrom: y, eraseDrawingLine: S, finishToDraw:
|
|
334
|
+
return { drawFrom: y, eraseDrawingLine: S, finishToDraw: o, getAncherPointPosition: T, isAncherPoint: p };
|
|
335
335
|
}
|
|
336
336
|
const Sn = {
|
|
337
337
|
id: { type: String, default: "" },
|
|
@@ -343,35 +343,35 @@ const Sn = {
|
|
|
343
343
|
x: { type: Number, default: 0 },
|
|
344
344
|
y: { type: Number, default: 0 },
|
|
345
345
|
connection: { type: Array, default: [] }
|
|
346
|
-
},
|
|
347
|
-
function Tn(
|
|
348
|
-
const I = z.getBoundingClientRect(), w =
|
|
349
|
-
return
|
|
346
|
+
}, Ee = H(0);
|
|
347
|
+
function Tn(B, z) {
|
|
348
|
+
const I = z.getBoundingClientRect(), w = B.getBoundingClientRect(), N = w.top >= I.top, g = w.top <= I.bottom;
|
|
349
|
+
return N && g;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
if (!
|
|
351
|
+
function ze(B) {
|
|
352
|
+
if (!B)
|
|
353
353
|
return;
|
|
354
354
|
let z;
|
|
355
|
-
if (
|
|
355
|
+
if (B.className.includes("dgComponentSelected") ? z = B : z = B.querySelector(".dgComponentSelected"), !z)
|
|
356
356
|
return;
|
|
357
357
|
const I = z.getBoundingClientRect();
|
|
358
358
|
if (I.width === 0 && I.height === 0)
|
|
359
359
|
return;
|
|
360
360
|
const w = z.querySelector(".component-btn-group");
|
|
361
361
|
if (w) {
|
|
362
|
-
if (!Tn(z,
|
|
362
|
+
if (!Tn(z, B)) {
|
|
363
363
|
w.style.display = "none";
|
|
364
364
|
return;
|
|
365
365
|
}
|
|
366
366
|
w.style.display = "";
|
|
367
367
|
const g = w.getBoundingClientRect(), C = w.querySelector("div");
|
|
368
368
|
if (C) {
|
|
369
|
-
const
|
|
370
|
-
C.style.top = g.top + "px", C.style.left = g.left -
|
|
369
|
+
const x = C.getBoundingClientRect();
|
|
370
|
+
C.style.top = g.top + "px", C.style.left = g.left - x.width + "px";
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
const
|
|
374
|
+
const On = {
|
|
375
375
|
/**
|
|
376
376
|
* 组件值
|
|
377
377
|
*/
|
|
@@ -379,292 +379,292 @@ const En = {
|
|
|
379
379
|
componentId: { type: String, default: "" }
|
|
380
380
|
};
|
|
381
381
|
var Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
382
|
-
function
|
|
383
|
-
return
|
|
382
|
+
function En(B) {
|
|
383
|
+
return B && B.__esModule && Object.prototype.hasOwnProperty.call(B, "default") ? B.default : B;
|
|
384
384
|
}
|
|
385
|
-
function De(
|
|
386
|
-
throw new Error('Could not dynamically require "' +
|
|
385
|
+
function De(B) {
|
|
386
|
+
throw new Error('Could not dynamically require "' + B + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
387
387
|
}
|
|
388
388
|
var nt = { exports: {} };
|
|
389
|
-
(function(
|
|
389
|
+
(function(B, z) {
|
|
390
390
|
(function(I) {
|
|
391
|
-
|
|
391
|
+
B.exports = I();
|
|
392
392
|
})(function() {
|
|
393
393
|
return (/* @__PURE__ */ function() {
|
|
394
|
-
function I(w,
|
|
395
|
-
function C(T,
|
|
396
|
-
if (!
|
|
394
|
+
function I(w, N, g) {
|
|
395
|
+
function C(T, F) {
|
|
396
|
+
if (!N[T]) {
|
|
397
397
|
if (!w[T]) {
|
|
398
|
-
var
|
|
399
|
-
if (!
|
|
400
|
-
if (
|
|
398
|
+
var f = typeof De == "function" && De;
|
|
399
|
+
if (!F && f) return f(T, !0);
|
|
400
|
+
if (x) return x(T, !0);
|
|
401
401
|
var S = new Error("Cannot find module '" + T + "'");
|
|
402
402
|
throw S.code = "MODULE_NOT_FOUND", S;
|
|
403
403
|
}
|
|
404
|
-
var
|
|
405
|
-
w[T][0].call(
|
|
406
|
-
var
|
|
407
|
-
return C(
|
|
408
|
-
},
|
|
404
|
+
var d = N[T] = { exports: {} };
|
|
405
|
+
w[T][0].call(d.exports, function(i) {
|
|
406
|
+
var o = w[T][1][i];
|
|
407
|
+
return C(o || i);
|
|
408
|
+
}, d, d.exports, I, w, N, g);
|
|
409
409
|
}
|
|
410
|
-
return
|
|
410
|
+
return N[T].exports;
|
|
411
411
|
}
|
|
412
|
-
for (var
|
|
412
|
+
for (var x = typeof De == "function" && De, p = 0; p < g.length; p++) C(g[p]);
|
|
413
413
|
return C;
|
|
414
414
|
}
|
|
415
415
|
return I;
|
|
416
416
|
}())({
|
|
417
|
-
1: [function(I, w,
|
|
418
|
-
var g = {}, C = "(?:^|\\s)",
|
|
419
|
-
function p(
|
|
420
|
-
var S = g[
|
|
421
|
-
return S ? S.lastIndex = 0 : g[
|
|
417
|
+
1: [function(I, w, N) {
|
|
418
|
+
var g = {}, C = "(?:^|\\s)", x = "(?:\\s|$)";
|
|
419
|
+
function p(f) {
|
|
420
|
+
var S = g[f];
|
|
421
|
+
return S ? S.lastIndex = 0 : g[f] = S = new RegExp(C + f + x, "g"), S;
|
|
422
422
|
}
|
|
423
|
-
function T(
|
|
424
|
-
var
|
|
425
|
-
|
|
423
|
+
function T(f, S) {
|
|
424
|
+
var d = f.className;
|
|
425
|
+
d.length ? p(S).test(d) || (f.className += " " + S) : f.className = S;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
|
|
427
|
+
function F(f, S) {
|
|
428
|
+
f.className = f.className.replace(p(S), " ").trim();
|
|
429
429
|
}
|
|
430
430
|
w.exports = {
|
|
431
431
|
add: T,
|
|
432
|
-
rm:
|
|
432
|
+
rm: F
|
|
433
433
|
};
|
|
434
434
|
}, {}],
|
|
435
|
-
2: [function(I, w,
|
|
435
|
+
2: [function(I, w, N) {
|
|
436
436
|
(function(g) {
|
|
437
|
-
var C = I("contra/emitter"),
|
|
438
|
-
function
|
|
437
|
+
var C = I("contra/emitter"), x = I("crossvent"), p = I("./classes"), T = document, F = T.documentElement;
|
|
438
|
+
function f(m, G) {
|
|
439
439
|
var Z = arguments.length;
|
|
440
440
|
Z === 1 && Array.isArray(m) === !1 && (G = m, m = []);
|
|
441
|
-
var
|
|
442
|
-
h.moves === void 0 && (h.moves =
|
|
441
|
+
var c, E, e, t, u, v, s, n, j, L = null, ee, V, ie = !1, se = 0, D, h = G || {};
|
|
442
|
+
h.moves === void 0 && (h.moves = O), h.accepts === void 0 && (h.accepts = O), h.invalid === void 0 && (h.invalid = Be), h.containers === void 0 && (h.containers = m || []), h.isContainer === void 0 && (h.isContainer = a), h.copy === void 0 && (h.copy = !1), h.copySortSource === void 0 && (h.copySortSource = !1), h.revertOnSpill === void 0 && (h.revertOnSpill = !1), h.removeOnSpill === void 0 && (h.removeOnSpill = !1), h.direction === void 0 && (h.direction = "vertical"), h.ignoreInputTextSelection === void 0 && (h.ignoreInputTextSelection = !0), h.mirrorContainer === void 0 && (h.mirrorContainer = T.body);
|
|
443
443
|
var W = C({
|
|
444
444
|
containers: h.containers,
|
|
445
445
|
start: Ce,
|
|
446
446
|
end: Ae,
|
|
447
|
-
cancel:
|
|
448
|
-
remove:
|
|
447
|
+
cancel: Ke,
|
|
448
|
+
remove: Ge,
|
|
449
449
|
destroy: ye,
|
|
450
450
|
canMove: he,
|
|
451
451
|
dragging: !1
|
|
452
452
|
});
|
|
453
453
|
return h.removeOnSpill === !0 && W.on("over", rt).on("out", it), K(), W;
|
|
454
|
-
function q(
|
|
455
|
-
return W.containers.indexOf(
|
|
454
|
+
function q(r) {
|
|
455
|
+
return W.containers.indexOf(r) !== -1 || h.isContainer(r);
|
|
456
456
|
}
|
|
457
|
-
function K(
|
|
458
|
-
var
|
|
459
|
-
|
|
457
|
+
function K(r) {
|
|
458
|
+
var b = r ? "remove" : "add";
|
|
459
|
+
i(F, b, "mousedown", le), i(F, b, "mouseup", Ne);
|
|
460
460
|
}
|
|
461
|
-
function de(
|
|
462
|
-
var
|
|
463
|
-
|
|
461
|
+
function de(r) {
|
|
462
|
+
var b = r ? "remove" : "add";
|
|
463
|
+
i(F, b, "mousemove", ae);
|
|
464
464
|
}
|
|
465
|
-
function oe(
|
|
466
|
-
var
|
|
467
|
-
b
|
|
465
|
+
function oe(r) {
|
|
466
|
+
var b = r ? "remove" : "add";
|
|
467
|
+
x[b](F, "selectstart", ce), x[b](F, "click", ce);
|
|
468
468
|
}
|
|
469
469
|
function ye() {
|
|
470
470
|
K(!0), Ne({});
|
|
471
471
|
}
|
|
472
|
-
function ce(
|
|
473
|
-
ee &&
|
|
472
|
+
function ce(r) {
|
|
473
|
+
ee && r.preventDefault();
|
|
474
474
|
}
|
|
475
|
-
function le(
|
|
476
|
-
t =
|
|
477
|
-
var
|
|
478
|
-
if (!
|
|
479
|
-
var P =
|
|
480
|
-
X && (ee = X, de(),
|
|
475
|
+
function le(r) {
|
|
476
|
+
t = r.clientX, u = r.clientY;
|
|
477
|
+
var b = o(r) !== 1 || r.metaKey || r.ctrlKey;
|
|
478
|
+
if (!b) {
|
|
479
|
+
var P = r.target, X = pe(P);
|
|
480
|
+
X && (ee = X, de(), r.type === "mousedown" && (A(P) ? P.focus() : r.preventDefault()));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function ae(
|
|
483
|
+
function ae(r) {
|
|
484
484
|
if (ee) {
|
|
485
|
-
if (
|
|
485
|
+
if (o(r) === 0) {
|
|
486
486
|
Ne({});
|
|
487
487
|
return;
|
|
488
488
|
}
|
|
489
|
-
if (!(
|
|
489
|
+
if (!(r.clientX !== void 0 && Math.abs(r.clientX - t) <= (h.slideFactorX || 0) && r.clientY !== void 0 && Math.abs(r.clientY - u) <= (h.slideFactorY || 0))) {
|
|
490
490
|
if (h.ignoreInputTextSelection) {
|
|
491
|
-
var
|
|
492
|
-
if (
|
|
491
|
+
var b = Q("clientX", r) || 0, P = Q("clientY", r) || 0, X = T.elementFromPoint(b, P);
|
|
492
|
+
if (A(X))
|
|
493
493
|
return;
|
|
494
494
|
}
|
|
495
495
|
var te = ee;
|
|
496
|
-
de(!0), oe(), Ae(), ve(te), p.add(n || e, "gu-transit"), at(), st(), se = 0, ke(
|
|
496
|
+
de(!0), oe(), Ae(), ve(te), p.add(n || e, "gu-transit"), at(), st(), se = 0, ke(r);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
function pe(
|
|
501
|
-
if (!(W.dragging &&
|
|
502
|
-
for (var
|
|
503
|
-
if (h.invalid(
|
|
500
|
+
function pe(r) {
|
|
501
|
+
if (!(W.dragging && c) && !q(r)) {
|
|
502
|
+
for (var b = r; l(r) && q(l(r)) === !1; )
|
|
503
|
+
if (h.invalid(r, b) || (r = l(r), !r))
|
|
504
504
|
return;
|
|
505
|
-
var P = l(
|
|
506
|
-
if (P && !h.invalid(
|
|
507
|
-
var X = h.moves(
|
|
505
|
+
var P = l(r);
|
|
506
|
+
if (P && !h.invalid(r, b)) {
|
|
507
|
+
var X = h.moves(r, P, b, Y(r));
|
|
508
508
|
if (X)
|
|
509
509
|
return {
|
|
510
|
-
item:
|
|
510
|
+
item: r,
|
|
511
511
|
source: P
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function he(
|
|
517
|
-
return !!pe(
|
|
516
|
+
function he(r) {
|
|
517
|
+
return !!pe(r);
|
|
518
518
|
}
|
|
519
|
-
function Ce(
|
|
520
|
-
var
|
|
521
|
-
|
|
519
|
+
function Ce(r) {
|
|
520
|
+
var b = pe(r);
|
|
521
|
+
b && ve(b);
|
|
522
522
|
}
|
|
523
|
-
function ve(
|
|
524
|
-
vt(
|
|
523
|
+
function ve(r) {
|
|
524
|
+
vt(r.item, r.source) && (n = r.item.cloneNode(!0), W.emit("cloned", n, r.item, "copy")), E = r.source, e = r.item, v = s = Y(r.item), W.dragging = !0, W.emit("drag", e, E);
|
|
525
525
|
}
|
|
526
526
|
function Be() {
|
|
527
527
|
return !1;
|
|
528
528
|
}
|
|
529
529
|
function Ae() {
|
|
530
530
|
if (W.dragging) {
|
|
531
|
-
var
|
|
532
|
-
|
|
531
|
+
var r = n || e;
|
|
532
|
+
qe(r, l(r));
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
function Me() {
|
|
536
536
|
ee = !1, de(!0), oe(!0);
|
|
537
537
|
}
|
|
538
|
-
function Ne(
|
|
538
|
+
function Ne(r) {
|
|
539
539
|
if (Me(), !!W.dragging) {
|
|
540
|
-
var
|
|
541
|
-
ne && (n && h.copySortSource || !n || ne !==
|
|
540
|
+
var b = n || e, P = Q("clientX", r) || 0, X = Q("clientY", r) || 0, te = y(c, P, X), ne = Qe(te, P, X);
|
|
541
|
+
ne && (n && h.copySortSource || !n || ne !== E) ? qe(b, ne) : h.removeOnSpill ? Ge() : Ke();
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
var P = l(
|
|
546
|
-
n && h.copySortSource &&
|
|
544
|
+
function qe(r, b) {
|
|
545
|
+
var P = l(r);
|
|
546
|
+
n && h.copySortSource && b === E && P.removeChild(e), Le(b) ? W.emit("cancel", r, E) : W.emit("drop", r, b, E, s), _e();
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Ge() {
|
|
549
549
|
if (W.dragging) {
|
|
550
|
-
var
|
|
551
|
-
|
|
550
|
+
var r = n || e, b = l(r);
|
|
551
|
+
b && b.removeChild(r), W.emit(n ? "cancel" : "remove", r, b, E), _e();
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Ke(r) {
|
|
555
555
|
if (W.dragging) {
|
|
556
|
-
var
|
|
557
|
-
te === !1 &&
|
|
556
|
+
var b = arguments.length > 0 ? r : h.revertOnSpill, P = n || e, X = l(P), te = Le(X);
|
|
557
|
+
te === !1 && b && (n ? X && X.removeChild(n) : E.insertBefore(P, v)), te || b ? W.emit("cancel", P, E, E) : W.emit("drop", P, X, E, s), _e();
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function _e() {
|
|
561
|
-
var
|
|
562
|
-
Me(), ct(), lt(),
|
|
561
|
+
var r = n || e;
|
|
562
|
+
Me(), ct(), lt(), r && p.rm(r, "gu-transit"), j && clearTimeout(j), W.dragging = !1, L && W.emit("out", r, L, E), W.emit("dragend", r, se), E = e = n = v = s = j = L = null;
|
|
563
563
|
}
|
|
564
|
-
function Le(
|
|
564
|
+
function Le(r, b) {
|
|
565
565
|
var P;
|
|
566
|
-
return
|
|
566
|
+
return b !== void 0 ? P = b : c ? P = s : P = Y(n || e), r === E && P === v;
|
|
567
567
|
}
|
|
568
|
-
function
|
|
569
|
-
for (var X =
|
|
568
|
+
function Qe(r, b, P) {
|
|
569
|
+
for (var X = r; X && !te(); )
|
|
570
570
|
X = l(X);
|
|
571
571
|
return X;
|
|
572
572
|
function te() {
|
|
573
573
|
var ne = q(X);
|
|
574
574
|
if (ne === !1)
|
|
575
575
|
return !1;
|
|
576
|
-
var we =
|
|
577
|
-
return
|
|
576
|
+
var we = Je(X, r), ge = Ze(X, we, b, P), xe = Le(X, ge);
|
|
577
|
+
return xe ? !0 : h.accepts(e, X, E, ge);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
function ke(
|
|
581
|
-
if (!
|
|
580
|
+
function ke(r) {
|
|
581
|
+
if (!c)
|
|
582
582
|
return;
|
|
583
|
-
|
|
584
|
-
var
|
|
585
|
-
|
|
586
|
-
var X = n || e, te = y(
|
|
587
|
-
(we || ne === null) && (
|
|
583
|
+
r.preventDefault();
|
|
584
|
+
var b = Q("clientX", r) || 0, P = Q("clientY", r) || 0;
|
|
585
|
+
c.style.left = b - 2 + "px", c.style.top = P - 2 + "px";
|
|
586
|
+
var X = n || e, te = y(c, b, P), ne = Qe(te, b, P), we = ne !== null && ne !== L;
|
|
587
|
+
(we || ne === null) && (be(), L = ne, Ie()), mt(te, P);
|
|
588
588
|
var ge = l(X);
|
|
589
|
-
if (ne ===
|
|
589
|
+
if (ne === E && n && !h.copySortSource) {
|
|
590
590
|
ge && ge.removeChild(X);
|
|
591
591
|
return;
|
|
592
592
|
}
|
|
593
|
-
var
|
|
593
|
+
var xe, Pe = Je(ne, te);
|
|
594
594
|
if (ie = ut(Pe, ne), Pe !== null)
|
|
595
|
-
|
|
595
|
+
xe = Ze(ne, Pe, b, P);
|
|
596
596
|
else if (h.revertOnSpill === !0 && !n)
|
|
597
|
-
|
|
597
|
+
xe = v, ne = E;
|
|
598
598
|
else {
|
|
599
599
|
n && ge && ge.removeChild(X), n && V && (V.style.display = "none");
|
|
600
600
|
return;
|
|
601
601
|
}
|
|
602
|
-
V.style.display = "block", ot(
|
|
602
|
+
V.style.display = "block", ot(xe, X, we), xe ? dt(Pe, xe) : pt(ne);
|
|
603
603
|
function ue(fe) {
|
|
604
|
-
W.emit(fe, X, L,
|
|
604
|
+
W.emit(fe, X, L, E);
|
|
605
605
|
}
|
|
606
606
|
function Ie() {
|
|
607
607
|
we && ue("over");
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function be() {
|
|
610
610
|
L && ue("out");
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
function ot(
|
|
614
|
-
(
|
|
613
|
+
function ot(r, b, P) {
|
|
614
|
+
(r === b || r === Y(b)) && (s = Y(b)), (r === null && P || r !== b && r !== Y(b)) && (s = r);
|
|
615
615
|
}
|
|
616
|
-
function rt(
|
|
617
|
-
p.rm(
|
|
616
|
+
function rt(r) {
|
|
617
|
+
p.rm(r, "gu-hide");
|
|
618
618
|
}
|
|
619
|
-
function it(
|
|
620
|
-
W.dragging && p.add(
|
|
619
|
+
function it(r) {
|
|
620
|
+
W.dragging && p.add(r, "gu-hide");
|
|
621
621
|
}
|
|
622
622
|
function st() {
|
|
623
|
-
|
|
623
|
+
c || (c = document.createElement("div"), c.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", c.innerHTML = h.getMirrorText && h.getMirrorText(e) || "控件", p.add(c, "gu-mirror"), h.mirrorContainer.appendChild(c), i(F, "add", "mousemove", ke), p.add(h.mirrorContainer, "gu-unselectable"), W.emit("cloned", c, e, "mirror"));
|
|
624
624
|
}
|
|
625
625
|
function at() {
|
|
626
626
|
if (V = document.createElement("div"), p.add(V, "gu-insertion"), e) {
|
|
627
|
-
var
|
|
628
|
-
V.style.left =
|
|
627
|
+
var r = e.getBoundingClientRect();
|
|
628
|
+
V.style.left = r.left + "px", V.style.top = r.top + "px";
|
|
629
629
|
}
|
|
630
630
|
ie = !1, h.mirrorContainer.appendChild(V);
|
|
631
631
|
}
|
|
632
632
|
function ct() {
|
|
633
|
-
|
|
633
|
+
c && (p.rm(h.mirrorContainer, "gu-unselectable"), i(F, "remove", "mousemove", ke), l(c).removeChild(c), c = null);
|
|
634
634
|
}
|
|
635
635
|
function lt() {
|
|
636
636
|
V && (l(V).removeChild(V), V = null);
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
for (var P =
|
|
638
|
+
function Je(r, b) {
|
|
639
|
+
for (var P = b; P !== r && l(P) !== r; )
|
|
640
640
|
P = l(P);
|
|
641
|
-
return P ===
|
|
641
|
+
return P === F ? null : P;
|
|
642
642
|
}
|
|
643
|
-
function ut(
|
|
644
|
-
if (!
|
|
643
|
+
function ut(r, b) {
|
|
644
|
+
if (!b)
|
|
645
645
|
return ie;
|
|
646
|
-
var P =
|
|
646
|
+
var P = r || b && b.lastElementChild;
|
|
647
647
|
if (!P)
|
|
648
648
|
return !0;
|
|
649
|
-
var X = getComputedStyle(
|
|
649
|
+
var X = getComputedStyle(r), te = /^inline/.test(X.getPropertyValue("display")) || /^(left|right)$/.test(X.getPropertyValue("float"));
|
|
650
650
|
if (te)
|
|
651
651
|
return !0;
|
|
652
|
-
if (
|
|
653
|
-
var ne = getComputedStyle(
|
|
652
|
+
if (b) {
|
|
653
|
+
var ne = getComputedStyle(b), we = ne.getPropertyValue("display");
|
|
654
654
|
if (/flex$/.test(we)) {
|
|
655
655
|
var ge = ne.getPropertyValue("flex-direction") || "row";
|
|
656
656
|
if (ge === "row" || ge === "row-reverse")
|
|
657
|
-
return !ft(
|
|
657
|
+
return !ft(b);
|
|
658
658
|
}
|
|
659
659
|
return !1;
|
|
660
660
|
}
|
|
661
661
|
return !0;
|
|
662
662
|
}
|
|
663
|
-
function ft(
|
|
664
|
-
if (!
|
|
663
|
+
function ft(r) {
|
|
664
|
+
if (!r.children || !r.children.length)
|
|
665
665
|
return !1;
|
|
666
|
-
for (const
|
|
667
|
-
const X = (
|
|
666
|
+
for (const b of Array.from(r.children)) {
|
|
667
|
+
const X = (b.className && b.className.split(" ") || []).filter((te) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(te));
|
|
668
668
|
if (!X.length)
|
|
669
669
|
return !1;
|
|
670
670
|
for (const te of X) {
|
|
@@ -675,89 +675,89 @@ var nt = { exports: {} };
|
|
|
675
675
|
}
|
|
676
676
|
return !0;
|
|
677
677
|
}
|
|
678
|
-
function dt(
|
|
679
|
-
const P =
|
|
678
|
+
function dt(r, b) {
|
|
679
|
+
const P = b.getBoundingClientRect();
|
|
680
680
|
if (V.style.left = P.left + "px", V.style.top = P.top + "px", ie) {
|
|
681
|
-
if (V.style.height = P.height + "px", V.style.width = "4px",
|
|
682
|
-
const X =
|
|
681
|
+
if (V.style.height = P.height + "px", V.style.width = "4px", r) {
|
|
682
|
+
const X = r.getBoundingClientRect();
|
|
683
683
|
X.top !== P.top && (V.style.left = X.right + "px", V.style.top = X.top + "px", V.style.height = X.height + "px");
|
|
684
684
|
}
|
|
685
|
-
} else if (V.style.height = "4px", V.style.width = P.width + "px",
|
|
686
|
-
const X =
|
|
685
|
+
} else if (V.style.height = "4px", V.style.width = P.width + "px", D) {
|
|
686
|
+
const X = D.getBoundingClientRect();
|
|
687
687
|
P.top < X.top && (V.style.display = "none");
|
|
688
688
|
}
|
|
689
|
-
|
|
689
|
+
b === e && e && (V.style.display = "none");
|
|
690
690
|
}
|
|
691
|
-
function pt(
|
|
691
|
+
function pt(r) {
|
|
692
692
|
s = null;
|
|
693
|
-
var
|
|
694
|
-
if (
|
|
695
|
-
var P =
|
|
696
|
-
ie ? (V.style.left = P.right + "px", V.style.top = P.top + "px", V.style.height = P.height + "px", V.style.width = "4px") : (V.style.left = P.left + "px", V.style.top = P.bottom + "px", V.style.height = "4px", V.style.width = P.width + "px"),
|
|
693
|
+
var b = r.lastElementChild;
|
|
694
|
+
if (b) {
|
|
695
|
+
var P = b.getBoundingClientRect();
|
|
696
|
+
ie ? (V.style.left = P.right + "px", V.style.top = P.top + "px", V.style.height = P.height + "px", V.style.width = "4px") : (V.style.left = P.left + "px", V.style.top = P.bottom + "px", V.style.height = "4px", V.style.width = P.width + "px"), b === e && e && (V.style.display = "none");
|
|
697
697
|
} else
|
|
698
698
|
V.style.display = "none";
|
|
699
699
|
}
|
|
700
|
-
function mt(
|
|
701
|
-
if (!h.mirrorContainer.contains(
|
|
700
|
+
function mt(r, b) {
|
|
701
|
+
if (!h.mirrorContainer.contains(r) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (D = S(r), !D || !D.contains(r)))
|
|
702
702
|
return;
|
|
703
|
-
const P = document.querySelector(".dgComponentSelected"), X =
|
|
704
|
-
if (
|
|
705
|
-
let te =
|
|
706
|
-
|
|
703
|
+
const P = document.querySelector(".dgComponentSelected"), X = D.getBoundingClientRect();
|
|
704
|
+
if (b - 30 < X.top && D.scrollTop > 0) {
|
|
705
|
+
let te = D.scrollTop < 10 ? D.scrollTop : 10;
|
|
706
|
+
D.scrollBy(0, -1 * te), P && D.contains(P) && (se = se + -1 * te);
|
|
707
707
|
}
|
|
708
|
-
if (
|
|
709
|
-
const te =
|
|
708
|
+
if (b + 30 > X.bottom && D.scrollTop < D.scrollHeight - D.clientHeight) {
|
|
709
|
+
const te = D.scrollHeight - D.clientHeight - D.scrollTop;
|
|
710
710
|
let ne = te < 10 ? te : 10;
|
|
711
|
-
|
|
711
|
+
D.scrollBy(0, ne), P && D.contains(P) && (se = se + ne);
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
var te = h.direction === "horizontal", ne = h.direction === "mixed", we =
|
|
714
|
+
function Ze(r, b, P, X) {
|
|
715
|
+
var te = h.direction === "horizontal", ne = h.direction === "mixed", we = b !== r ? xe() : ge();
|
|
716
716
|
return we;
|
|
717
717
|
function ge() {
|
|
718
|
-
var ue =
|
|
718
|
+
var ue = r.children.length, Ie, be, fe;
|
|
719
719
|
for (Ie = 0; Ie < ue; Ie++)
|
|
720
|
-
if (
|
|
721
|
-
return
|
|
720
|
+
if (be = r.children[Ie], fe = be.getBoundingClientRect(), te && fe.left + fe.width / 2 > P || !ne && !te && fe.top + fe.height / 2 > X || ne && fe.left + fe.width > P && fe.top + fe.height > X)
|
|
721
|
+
return be;
|
|
722
722
|
return null;
|
|
723
723
|
}
|
|
724
|
-
function
|
|
725
|
-
var ue =
|
|
724
|
+
function xe() {
|
|
725
|
+
var ue = b.getBoundingClientRect();
|
|
726
726
|
if (ne) {
|
|
727
|
-
var Ie = X - ue.top,
|
|
728
|
-
return ie ? Xe = Re <
|
|
727
|
+
var Ie = X - ue.top, be = P - ue.left, fe = ue.bottom - X, Re = ue.right - P, Ve = Math.min(be, Re, Ie, fe), Xe;
|
|
728
|
+
return ie ? Xe = Re < be : Xe = fe === Ve || Re === Ve || be === Ve, Pe(Xe);
|
|
729
729
|
}
|
|
730
730
|
return Pe(te ? P > ue.left + $(ue) / 2 : X > ue.top + R(ue) / 2);
|
|
731
731
|
}
|
|
732
732
|
function Pe(ue) {
|
|
733
|
-
return ue ? Y(
|
|
733
|
+
return ue ? Y(b) : b;
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
function vt(
|
|
737
|
-
return typeof h.copy == "boolean" ? h.copy : h.copy(
|
|
736
|
+
function vt(r, b) {
|
|
737
|
+
return typeof h.copy == "boolean" ? h.copy : h.copy(r, b);
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
function S(m) {
|
|
741
741
|
const G = Array.from(window.scrollContainerList);
|
|
742
742
|
if (G.length === 1) {
|
|
743
|
-
const
|
|
744
|
-
return document.getElementById(
|
|
743
|
+
const c = Array.from(window.scrollContainerList)[0];
|
|
744
|
+
return document.getElementById(c);
|
|
745
745
|
}
|
|
746
|
-
const Z =
|
|
747
|
-
for (const
|
|
748
|
-
if (
|
|
749
|
-
return
|
|
746
|
+
const Z = d(G);
|
|
747
|
+
for (const c of Z)
|
|
748
|
+
if (c.contains(m))
|
|
749
|
+
return c;
|
|
750
750
|
return null;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function d(m) {
|
|
753
753
|
const G = [];
|
|
754
754
|
return m.forEach((Z) => {
|
|
755
|
-
const
|
|
756
|
-
|
|
757
|
-
}), G.sort((Z,
|
|
755
|
+
const c = document.getElementById(Z);
|
|
756
|
+
c && G.push(c);
|
|
757
|
+
}), G.sort((Z, c) => Z.contains(c) ? 1 : c.contains(Z) ? -1 : 0), G;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
760
|
-
var
|
|
759
|
+
function i(m, G, Z, c) {
|
|
760
|
+
var E = {
|
|
761
761
|
mouseup: "touchend",
|
|
762
762
|
mousedown: "touchstart",
|
|
763
763
|
mousemove: "touchmove"
|
|
@@ -770,9 +770,9 @@ var nt = { exports: {} };
|
|
|
770
770
|
mousedown: "MSPointerDown",
|
|
771
771
|
mousemove: "MSPointerMove"
|
|
772
772
|
};
|
|
773
|
-
g.navigator.pointerEnabled ?
|
|
773
|
+
g.navigator.pointerEnabled ? x[G](m, e[Z], c) : g.navigator.msPointerEnabled ? x[G](m, t[Z], c) : (x[G](m, E[Z], c), x[G](m, Z, c));
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function o(m) {
|
|
776
776
|
if (m.touches !== void 0)
|
|
777
777
|
return m.touches.length;
|
|
778
778
|
if (m.which !== void 0 && m.which !== 0)
|
|
@@ -785,13 +785,13 @@ var nt = { exports: {} };
|
|
|
785
785
|
}
|
|
786
786
|
function y(m, G, Z) {
|
|
787
787
|
m = m || {};
|
|
788
|
-
var
|
|
789
|
-
return m.className += " gu-hide",
|
|
788
|
+
var c = m.className || "", E;
|
|
789
|
+
return m.className += " gu-hide", E = T.elementFromPoint(G, Z), m.className = c, E;
|
|
790
790
|
}
|
|
791
791
|
function a() {
|
|
792
792
|
return !1;
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function O() {
|
|
795
795
|
return !0;
|
|
796
796
|
}
|
|
797
797
|
function $(m) {
|
|
@@ -803,7 +803,7 @@ var nt = { exports: {} };
|
|
|
803
803
|
function l(m) {
|
|
804
804
|
return m.parentNode === T ? null : m.parentNode;
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function A(m) {
|
|
807
807
|
return m.tagName === "INPUT" || m.tagName === "TEXTAREA" || m.tagName === "SELECT" || U(m);
|
|
808
808
|
}
|
|
809
809
|
function U(m) {
|
|
@@ -823,101 +823,101 @@ var nt = { exports: {} };
|
|
|
823
823
|
return m.targetTouches && m.targetTouches.length ? m.targetTouches[0] : m.changedTouches && m.changedTouches.length ? m.changedTouches[0] : m;
|
|
824
824
|
}
|
|
825
825
|
function Q(m, G) {
|
|
826
|
-
var Z = re(G),
|
|
826
|
+
var Z = re(G), c = {
|
|
827
827
|
pageX: "clientX",
|
|
828
828
|
// IE8
|
|
829
829
|
pageY: "clientY"
|
|
830
830
|
// IE8
|
|
831
831
|
};
|
|
832
|
-
return m in
|
|
832
|
+
return m in c && !(m in Z) && c[m] in Z && (m = c[m]), Z[m];
|
|
833
833
|
}
|
|
834
|
-
w.exports =
|
|
834
|
+
w.exports = f;
|
|
835
835
|
}).call(this, typeof Se < "u" ? Se : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
836
836
|
}, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
|
|
837
|
-
3: [function(I, w,
|
|
838
|
-
w.exports = function(C,
|
|
839
|
-
return Array.prototype.slice.call(C,
|
|
837
|
+
3: [function(I, w, N) {
|
|
838
|
+
w.exports = function(C, x) {
|
|
839
|
+
return Array.prototype.slice.call(C, x);
|
|
840
840
|
};
|
|
841
841
|
}, {}],
|
|
842
|
-
4: [function(I, w,
|
|
842
|
+
4: [function(I, w, N) {
|
|
843
843
|
var g = I("ticky");
|
|
844
|
-
w.exports = function(
|
|
845
|
-
|
|
846
|
-
|
|
844
|
+
w.exports = function(x, p, T) {
|
|
845
|
+
x && g(function() {
|
|
846
|
+
x.apply(T || null, p || []);
|
|
847
847
|
});
|
|
848
848
|
};
|
|
849
849
|
}, { ticky: 10 }],
|
|
850
|
-
5: [function(I, w,
|
|
850
|
+
5: [function(I, w, N) {
|
|
851
851
|
var g = I("atoa"), C = I("./debounce");
|
|
852
852
|
w.exports = function(p, T) {
|
|
853
|
-
var
|
|
854
|
-
return p === void 0 && (p = {}), p.on = function(S,
|
|
855
|
-
return
|
|
856
|
-
}, p.once = function(S,
|
|
857
|
-
return
|
|
858
|
-
}, p.off = function(S,
|
|
859
|
-
var
|
|
860
|
-
if (
|
|
861
|
-
delete
|
|
862
|
-
else if (
|
|
863
|
-
|
|
853
|
+
var F = T || {}, f = {};
|
|
854
|
+
return p === void 0 && (p = {}), p.on = function(S, d) {
|
|
855
|
+
return f[S] ? f[S].push(d) : f[S] = [d], p;
|
|
856
|
+
}, p.once = function(S, d) {
|
|
857
|
+
return d._once = !0, p.on(S, d), p;
|
|
858
|
+
}, p.off = function(S, d) {
|
|
859
|
+
var i = arguments.length;
|
|
860
|
+
if (i === 1)
|
|
861
|
+
delete f[S];
|
|
862
|
+
else if (i === 0)
|
|
863
|
+
f = {};
|
|
864
864
|
else {
|
|
865
|
-
var
|
|
866
|
-
if (!
|
|
865
|
+
var o = f[S];
|
|
866
|
+
if (!o)
|
|
867
867
|
return p;
|
|
868
|
-
|
|
868
|
+
o.splice(o.indexOf(d), 1);
|
|
869
869
|
}
|
|
870
870
|
return p;
|
|
871
871
|
}, p.emit = function() {
|
|
872
872
|
var S = g(arguments);
|
|
873
873
|
return p.emitterSnapshot(S.shift()).apply(this, S);
|
|
874
874
|
}, p.emitterSnapshot = function(S) {
|
|
875
|
-
var
|
|
875
|
+
var d = (f[S] || []).slice(0);
|
|
876
876
|
return function() {
|
|
877
|
-
var
|
|
878
|
-
if (S === "error" &&
|
|
879
|
-
throw
|
|
880
|
-
return
|
|
881
|
-
|
|
877
|
+
var i = g(arguments), o = this || p;
|
|
878
|
+
if (S === "error" && F.throws !== !1 && !d.length)
|
|
879
|
+
throw i.length === 1 ? i[0] : i;
|
|
880
|
+
return d.forEach(function(a) {
|
|
881
|
+
F.async ? C(a, i, o) : a.apply(o, i), a._once && p.off(S, a);
|
|
882
882
|
}), p;
|
|
883
883
|
};
|
|
884
884
|
}, p;
|
|
885
885
|
};
|
|
886
886
|
}, { "./debounce": 4, atoa: 3 }],
|
|
887
|
-
6: [function(I, w,
|
|
887
|
+
6: [function(I, w, N) {
|
|
888
888
|
(function(g) {
|
|
889
|
-
var C = I("custom-event"),
|
|
890
|
-
g.addEventListener || (T =
|
|
889
|
+
var C = I("custom-event"), x = I("./eventmap"), p = g.document, T = S, F = i, f = [];
|
|
890
|
+
g.addEventListener || (T = d, F = o), w.exports = {
|
|
891
891
|
add: T,
|
|
892
|
-
remove:
|
|
892
|
+
remove: F,
|
|
893
893
|
fabricate: y
|
|
894
894
|
};
|
|
895
|
-
function S(l,
|
|
896
|
-
return l.addEventListener(
|
|
895
|
+
function S(l, A, U, Y) {
|
|
896
|
+
return l.addEventListener(A, U, Y);
|
|
897
897
|
}
|
|
898
|
-
function
|
|
899
|
-
return l.attachEvent("on" +
|
|
898
|
+
function d(l, A, U) {
|
|
899
|
+
return l.attachEvent("on" + A, O(l, A, U));
|
|
900
900
|
}
|
|
901
|
-
function
|
|
902
|
-
return l.removeEventListener(
|
|
901
|
+
function i(l, A, U, Y) {
|
|
902
|
+
return l.removeEventListener(A, U, Y);
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
var Y = $(l,
|
|
904
|
+
function o(l, A, U) {
|
|
905
|
+
var Y = $(l, A, U);
|
|
906
906
|
if (Y)
|
|
907
|
-
return l.detachEvent("on" +
|
|
907
|
+
return l.detachEvent("on" + A, Y);
|
|
908
908
|
}
|
|
909
|
-
function y(l,
|
|
910
|
-
var Y =
|
|
911
|
-
l.dispatchEvent ? l.dispatchEvent(Y) : l.fireEvent("on" +
|
|
909
|
+
function y(l, A, U) {
|
|
910
|
+
var Y = x.indexOf(A) === -1 ? Q() : re();
|
|
911
|
+
l.dispatchEvent ? l.dispatchEvent(Y) : l.fireEvent("on" + A, Y);
|
|
912
912
|
function re() {
|
|
913
913
|
var m;
|
|
914
|
-
return p.createEvent ? (m = p.createEvent("Event"), m.initEvent(
|
|
914
|
+
return p.createEvent ? (m = p.createEvent("Event"), m.initEvent(A, !0, !0)) : p.createEventObject && (m = p.createEventObject()), m;
|
|
915
915
|
}
|
|
916
916
|
function Q() {
|
|
917
|
-
return new C(
|
|
917
|
+
return new C(A, { detail: U });
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
|
-
function a(l,
|
|
920
|
+
function a(l, A, U) {
|
|
921
921
|
return function(re) {
|
|
922
922
|
var Q = re || g.event;
|
|
923
923
|
Q.target = Q.target || Q.srcElement, Q.preventDefault = Q.preventDefault || function() {
|
|
@@ -927,42 +927,42 @@ var nt = { exports: {} };
|
|
|
927
927
|
}, Q.which = Q.which || Q.keyCode, U.call(l, Q);
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
|
-
function
|
|
931
|
-
var Y = $(l,
|
|
932
|
-
return
|
|
930
|
+
function O(l, A, U) {
|
|
931
|
+
var Y = $(l, A, U) || a(l, A, U);
|
|
932
|
+
return f.push({
|
|
933
933
|
wrapper: Y,
|
|
934
934
|
element: l,
|
|
935
|
-
type:
|
|
935
|
+
type: A,
|
|
936
936
|
fn: U
|
|
937
937
|
}), Y;
|
|
938
938
|
}
|
|
939
|
-
function $(l,
|
|
940
|
-
var Y = R(l,
|
|
939
|
+
function $(l, A, U) {
|
|
940
|
+
var Y = R(l, A, U);
|
|
941
941
|
if (Y) {
|
|
942
|
-
var re =
|
|
943
|
-
return
|
|
942
|
+
var re = f[Y].wrapper;
|
|
943
|
+
return f.splice(Y, 1), re;
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
|
-
function R(l,
|
|
946
|
+
function R(l, A, U) {
|
|
947
947
|
var Y, re;
|
|
948
|
-
for (Y = 0; Y <
|
|
949
|
-
if (re =
|
|
948
|
+
for (Y = 0; Y < f.length; Y++)
|
|
949
|
+
if (re = f[Y], re.element === l && re.type === A && re.fn === U)
|
|
950
950
|
return Y;
|
|
951
951
|
}
|
|
952
952
|
}).call(this, typeof Se < "u" ? Se : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
953
953
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
954
|
-
7: [function(I, w,
|
|
954
|
+
7: [function(I, w, N) {
|
|
955
955
|
(function(g) {
|
|
956
|
-
var C = [],
|
|
957
|
-
for (
|
|
958
|
-
p.test(
|
|
956
|
+
var C = [], x = "", p = /^on/;
|
|
957
|
+
for (x in g)
|
|
958
|
+
p.test(x) && C.push(x.slice(2));
|
|
959
959
|
w.exports = C;
|
|
960
960
|
}).call(this, typeof Se < "u" ? Se : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
961
961
|
}, {}],
|
|
962
|
-
8: [function(I, w,
|
|
962
|
+
8: [function(I, w, N) {
|
|
963
963
|
(function(g) {
|
|
964
964
|
var C = g.CustomEvent;
|
|
965
|
-
function
|
|
965
|
+
function x() {
|
|
966
966
|
try {
|
|
967
967
|
var p = new C("cat", { detail: { foo: "bar" } });
|
|
968
968
|
return p.type === "cat" && p.detail.foo === "bar";
|
|
@@ -970,23 +970,23 @@ var nt = { exports: {} };
|
|
|
970
970
|
}
|
|
971
971
|
return !1;
|
|
972
972
|
}
|
|
973
|
-
w.exports =
|
|
973
|
+
w.exports = x() ? C : (
|
|
974
974
|
// IE >= 9
|
|
975
|
-
typeof document < "u" && typeof document.createEvent == "function" ? function(T,
|
|
976
|
-
var
|
|
977
|
-
return
|
|
975
|
+
typeof document < "u" && typeof document.createEvent == "function" ? function(T, F) {
|
|
976
|
+
var f = document.createEvent("CustomEvent");
|
|
977
|
+
return F ? f.initCustomEvent(T, F.bubbles, F.cancelable, F.detail) : f.initCustomEvent(T, !1, !1, void 0), f;
|
|
978
978
|
} : (
|
|
979
979
|
// IE <= 8
|
|
980
|
-
function(T,
|
|
981
|
-
var
|
|
982
|
-
return
|
|
980
|
+
function(T, F) {
|
|
981
|
+
var f = document.createEventObject();
|
|
982
|
+
return f.type = T, F ? (f.bubbles = !!F.bubbles, f.cancelable = !!F.cancelable, f.detail = F.detail) : (f.bubbles = !1, f.cancelable = !1, f.detail = void 0), f;
|
|
983
983
|
}
|
|
984
984
|
)
|
|
985
985
|
);
|
|
986
986
|
}).call(this, typeof Se < "u" ? Se : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
987
987
|
}, {}],
|
|
988
|
-
9: [function(I, w,
|
|
989
|
-
var g = w.exports = {}, C,
|
|
988
|
+
9: [function(I, w, N) {
|
|
989
|
+
var g = w.exports = {}, C, x;
|
|
990
990
|
function p() {
|
|
991
991
|
throw new Error("setTimeout has not been defined");
|
|
992
992
|
}
|
|
@@ -1000,12 +1000,12 @@ var nt = { exports: {} };
|
|
|
1000
1000
|
C = p;
|
|
1001
1001
|
}
|
|
1002
1002
|
try {
|
|
1003
|
-
typeof clearTimeout == "function" ?
|
|
1003
|
+
typeof clearTimeout == "function" ? x = clearTimeout : x = T;
|
|
1004
1004
|
} catch {
|
|
1005
|
-
|
|
1005
|
+
x = T;
|
|
1006
1006
|
}
|
|
1007
1007
|
})();
|
|
1008
|
-
function
|
|
1008
|
+
function F(R) {
|
|
1009
1009
|
if (C === setTimeout)
|
|
1010
1010
|
return setTimeout(R, 0);
|
|
1011
1011
|
if ((C === p || !C) && setTimeout)
|
|
@@ -1020,48 +1020,48 @@ var nt = { exports: {} };
|
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1024
|
-
if (
|
|
1023
|
+
function f(R) {
|
|
1024
|
+
if (x === clearTimeout)
|
|
1025
1025
|
return clearTimeout(R);
|
|
1026
|
-
if ((
|
|
1027
|
-
return
|
|
1026
|
+
if ((x === T || !x) && clearTimeout)
|
|
1027
|
+
return x = clearTimeout, clearTimeout(R);
|
|
1028
1028
|
try {
|
|
1029
|
-
return
|
|
1029
|
+
return x(R);
|
|
1030
1030
|
} catch {
|
|
1031
1031
|
try {
|
|
1032
|
-
return
|
|
1032
|
+
return x.call(null, R);
|
|
1033
1033
|
} catch {
|
|
1034
|
-
return
|
|
1034
|
+
return x.call(this, R);
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
|
-
var S = [],
|
|
1038
|
+
var S = [], d = !1, i, o = -1;
|
|
1039
1039
|
function y() {
|
|
1040
|
-
!
|
|
1040
|
+
!d || !i || (d = !1, i.length ? S = i.concat(S) : o = -1, S.length && a());
|
|
1041
1041
|
}
|
|
1042
1042
|
function a() {
|
|
1043
|
-
if (!
|
|
1044
|
-
var R =
|
|
1045
|
-
|
|
1043
|
+
if (!d) {
|
|
1044
|
+
var R = F(y);
|
|
1045
|
+
d = !0;
|
|
1046
1046
|
for (var l = S.length; l; ) {
|
|
1047
|
-
for (
|
|
1048
|
-
|
|
1049
|
-
|
|
1047
|
+
for (i = S, S = []; ++o < l; )
|
|
1048
|
+
i && i[o].run();
|
|
1049
|
+
o = -1, l = S.length;
|
|
1050
1050
|
}
|
|
1051
|
-
|
|
1051
|
+
i = null, d = !1, f(R);
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
1054
|
g.nextTick = function(R) {
|
|
1055
1055
|
var l = new Array(arguments.length - 1);
|
|
1056
1056
|
if (arguments.length > 1)
|
|
1057
|
-
for (var
|
|
1058
|
-
l[
|
|
1059
|
-
S.push(new
|
|
1057
|
+
for (var A = 1; A < arguments.length; A++)
|
|
1058
|
+
l[A - 1] = arguments[A];
|
|
1059
|
+
S.push(new O(R, l)), S.length === 1 && !d && F(a);
|
|
1060
1060
|
};
|
|
1061
|
-
function
|
|
1061
|
+
function O(R, l) {
|
|
1062
1062
|
this.fun = R, this.array = l;
|
|
1063
1063
|
}
|
|
1064
|
-
|
|
1064
|
+
O.prototype.run = function() {
|
|
1065
1065
|
this.fun.apply(null, this.array);
|
|
1066
1066
|
}, g.title = "browser", g.browser = !0, g.env = {}, g.argv = [], g.version = "", g.versions = {};
|
|
1067
1067
|
function $() {
|
|
@@ -1078,49 +1078,49 @@ var nt = { exports: {} };
|
|
|
1078
1078
|
return 0;
|
|
1079
1079
|
};
|
|
1080
1080
|
}, {}],
|
|
1081
|
-
10: [function(I, w,
|
|
1081
|
+
10: [function(I, w, N) {
|
|
1082
1082
|
(function(g) {
|
|
1083
|
-
var C = typeof g == "function",
|
|
1084
|
-
C ?
|
|
1083
|
+
var C = typeof g == "function", x;
|
|
1084
|
+
C ? x = function(p) {
|
|
1085
1085
|
g(p);
|
|
1086
|
-
} :
|
|
1086
|
+
} : x = function(p) {
|
|
1087
1087
|
setTimeout(p, 0);
|
|
1088
|
-
}, w.exports =
|
|
1088
|
+
}, w.exports = x;
|
|
1089
1089
|
}).call(this, I("timers").setImmediate);
|
|
1090
1090
|
}, { timers: 11 }],
|
|
1091
|
-
11: [function(I, w,
|
|
1091
|
+
11: [function(I, w, N) {
|
|
1092
1092
|
(function(g, C) {
|
|
1093
|
-
var
|
|
1094
|
-
|
|
1093
|
+
var x = I("process/browser.js").nextTick, p = Function.prototype.apply, T = Array.prototype.slice, F = {}, f = 0;
|
|
1094
|
+
N.setTimeout = function() {
|
|
1095
1095
|
return new S(p.call(setTimeout, window, arguments), clearTimeout);
|
|
1096
|
-
},
|
|
1096
|
+
}, N.setInterval = function() {
|
|
1097
1097
|
return new S(p.call(setInterval, window, arguments), clearInterval);
|
|
1098
|
-
},
|
|
1099
|
-
|
|
1098
|
+
}, N.clearTimeout = N.clearInterval = function(d) {
|
|
1099
|
+
d.close();
|
|
1100
1100
|
};
|
|
1101
|
-
function S(
|
|
1102
|
-
this._id =
|
|
1101
|
+
function S(d, i) {
|
|
1102
|
+
this._id = d, this._clearFn = i;
|
|
1103
1103
|
}
|
|
1104
1104
|
S.prototype.unref = S.prototype.ref = function() {
|
|
1105
1105
|
}, S.prototype.close = function() {
|
|
1106
1106
|
this._clearFn.call(window, this._id);
|
|
1107
|
-
},
|
|
1108
|
-
clearTimeout(
|
|
1109
|
-
},
|
|
1110
|
-
clearTimeout(
|
|
1111
|
-
},
|
|
1112
|
-
clearTimeout(
|
|
1113
|
-
var
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
},
|
|
1117
|
-
},
|
|
1118
|
-
var
|
|
1119
|
-
return
|
|
1120
|
-
|
|
1121
|
-
}),
|
|
1122
|
-
},
|
|
1123
|
-
delete
|
|
1107
|
+
}, N.enroll = function(d, i) {
|
|
1108
|
+
clearTimeout(d._idleTimeoutId), d._idleTimeout = i;
|
|
1109
|
+
}, N.unenroll = function(d) {
|
|
1110
|
+
clearTimeout(d._idleTimeoutId), d._idleTimeout = -1;
|
|
1111
|
+
}, N._unrefActive = N.active = function(d) {
|
|
1112
|
+
clearTimeout(d._idleTimeoutId);
|
|
1113
|
+
var i = d._idleTimeout;
|
|
1114
|
+
i >= 0 && (d._idleTimeoutId = setTimeout(function() {
|
|
1115
|
+
d._onTimeout && d._onTimeout();
|
|
1116
|
+
}, i));
|
|
1117
|
+
}, N.setImmediate = typeof g == "function" ? g : function(d) {
|
|
1118
|
+
var i = f++, o = arguments.length < 2 ? !1 : T.call(arguments, 1);
|
|
1119
|
+
return F[i] = !0, x(function() {
|
|
1120
|
+
F[i] && (o ? d.apply(null, o) : d.call(null), N.clearImmediate(i));
|
|
1121
|
+
}), i;
|
|
1122
|
+
}, N.clearImmediate = typeof C == "function" ? C : function(d) {
|
|
1123
|
+
delete F[d];
|
|
1124
1124
|
};
|
|
1125
1125
|
}).call(this, I("timers").setImmediate, I("timers").clearImmediate);
|
|
1126
1126
|
}, { "process/browser.js": 9, timers: 11 }]
|
|
@@ -1128,166 +1128,166 @@ var nt = { exports: {} };
|
|
|
1128
1128
|
});
|
|
1129
1129
|
})(nt);
|
|
1130
1130
|
var Fn = nt.exports;
|
|
1131
|
-
const
|
|
1132
|
-
function An(
|
|
1131
|
+
const et = /* @__PURE__ */ En(Fn);
|
|
1132
|
+
function An(B) {
|
|
1133
1133
|
let z;
|
|
1134
|
-
function I(
|
|
1134
|
+
function I(i, o, y) {
|
|
1135
1135
|
const a = {};
|
|
1136
|
-
return a.sourceElement =
|
|
1136
|
+
return a.sourceElement = i, a.sourceContainer = y, a.targetContainer = o, a.sourceType = i.getAttribute("data-sourceType") || "move", a.controlType = i.getAttribute("data-controlType"), a.controlTypeName = i.getAttribute("data-controlTypeName"), a.controlCategory = i.getAttribute("data-category"), a.controlFeature = i.getAttribute("data-feature"), a.parentComponentInstance = o.componentInstance, a.controlCategory === "input" ? a.bindingType = "field" : a.controlCategory === "dataCollection" && (a.bindingType = "entity"), i.componentInstance && (a.controlType = i.componentInstance.value.schema.type, a.controlCategory = i.componentInstance.value.schema.category), a;
|
|
1137
1137
|
}
|
|
1138
|
-
function w(
|
|
1139
|
-
if (
|
|
1138
|
+
function w(i, o, y) {
|
|
1139
|
+
if (i.contains(o) || o.classList.contains("no-drop"))
|
|
1140
1140
|
return !1;
|
|
1141
1141
|
const a = !0;
|
|
1142
|
-
if (
|
|
1143
|
-
const
|
|
1144
|
-
if (
|
|
1142
|
+
if (i.componentInstance && i.componentInstance.value.getDragScopeElement) {
|
|
1143
|
+
const O = i.componentInstance.value.getDragScopeElement();
|
|
1144
|
+
if (O && !O.contains(o))
|
|
1145
1145
|
return !1;
|
|
1146
1146
|
}
|
|
1147
|
-
if (
|
|
1148
|
-
const
|
|
1149
|
-
return
|
|
1147
|
+
if (o.componentInstance && o.componentInstance.value.canAccepts) {
|
|
1148
|
+
const O = I(i, o, y);
|
|
1149
|
+
return o.componentInstance.value.canAccepts(O);
|
|
1150
1150
|
}
|
|
1151
1151
|
return a;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
const y =
|
|
1155
|
-
return
|
|
1153
|
+
function N(i, o) {
|
|
1154
|
+
const y = o.getBoundingClientRect(), a = i.getBoundingClientRect(), O = a.top >= y.top, $ = a.top < y.bottom;
|
|
1155
|
+
return O && $;
|
|
1156
1156
|
}
|
|
1157
|
-
function g(
|
|
1158
|
-
const y =
|
|
1159
|
-
if (!(!y ||
|
|
1157
|
+
function g(i, o) {
|
|
1158
|
+
const y = i.querySelector(".dgComponentSelected");
|
|
1159
|
+
if (!(!y || o === 0) && N(y, i)) {
|
|
1160
1160
|
const a = y.querySelector(".component-btn-group");
|
|
1161
1161
|
if (a) {
|
|
1162
|
-
const
|
|
1163
|
-
if (
|
|
1164
|
-
const $ = Number.parseFloat(
|
|
1165
|
-
|
|
1162
|
+
const O = a.querySelector("div");
|
|
1163
|
+
if (O && O.style.top) {
|
|
1164
|
+
const $ = Number.parseFloat(O.style.top);
|
|
1165
|
+
O.style.top = $ - o + "px";
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
|
-
function C(
|
|
1171
|
-
|
|
1170
|
+
function C(i, o, y) {
|
|
1171
|
+
i.componentInstance;
|
|
1172
1172
|
let a = -1;
|
|
1173
|
-
if (!
|
|
1173
|
+
if (!o)
|
|
1174
1174
|
return -1;
|
|
1175
|
-
if (
|
|
1175
|
+
if (i.componentInstance.value.contents) {
|
|
1176
1176
|
if (y && y.componentInstance) {
|
|
1177
1177
|
if (y.getAttribute("data-noattach"))
|
|
1178
1178
|
a = Number(y.getAttribute("data-position"));
|
|
1179
1179
|
else {
|
|
1180
|
-
const
|
|
1181
|
-
let $ = { id:
|
|
1182
|
-
|
|
1180
|
+
const O = y.componentInstance.value.schema;
|
|
1181
|
+
let $ = { id: O.id };
|
|
1182
|
+
O.type === "Component" && ($ = { component: O.id }), a = Ye(i.componentInstance.value.contents, $), a = a === -1 ? 0 : a;
|
|
1183
1183
|
}
|
|
1184
|
-
a !== -1 &&
|
|
1184
|
+
a !== -1 && i.componentInstance.value.contents.splice(a, 0, o);
|
|
1185
1185
|
} else
|
|
1186
|
-
|
|
1187
|
-
|
|
1186
|
+
i.componentInstance.value.contents.push(o);
|
|
1187
|
+
i.componentInstance.value.updateDragAndDropRules();
|
|
1188
1188
|
}
|
|
1189
1189
|
return a;
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1192
|
-
if (!
|
|
1191
|
+
function x(i, o) {
|
|
1192
|
+
if (!i.componentInstance.value.contents)
|
|
1193
1193
|
return -1;
|
|
1194
|
-
if (
|
|
1194
|
+
if (i.componentInstance.value.contents.length === 0)
|
|
1195
1195
|
return 0;
|
|
1196
|
-
if (!
|
|
1197
|
-
return
|
|
1198
|
-
if (
|
|
1199
|
-
return Number(
|
|
1200
|
-
const y =
|
|
1196
|
+
if (!o || !o.componentInstance)
|
|
1197
|
+
return i.componentInstance.value.contents.length;
|
|
1198
|
+
if (o.getAttribute("data-noattach"))
|
|
1199
|
+
return Number(o.getAttribute("data-position"));
|
|
1200
|
+
const y = o.componentInstance.value.schema;
|
|
1201
1201
|
let a;
|
|
1202
1202
|
y.type === "Component" ? a = { component: y.id } : a = { id: y.id };
|
|
1203
|
-
let
|
|
1204
|
-
return
|
|
1203
|
+
let O = Ye(i.componentInstance.value.contents, a);
|
|
1204
|
+
return O = O === -1 ? 0 : O, O;
|
|
1205
1205
|
}
|
|
1206
|
-
function p(
|
|
1207
|
-
if (
|
|
1208
|
-
const
|
|
1209
|
-
C(
|
|
1206
|
+
function p(i, o, y, a) {
|
|
1207
|
+
if (o.componentInstance.value.addNewChildComponentSchema) {
|
|
1208
|
+
const O = x(o, a), $ = String(i.getAttribute("data-controltype")), R = i.getAttribute("data-feature"), l = String(i.innerText), A = o.componentInstance.value, U = { componentType: $, label: l, parentComponentInstance: A, targetPosition: O }, Y = R ? JSON.parse(R) : {}, re = Object.assign(U, Y), Q = o.componentInstance.value.addNewChildComponentSchema(re, B);
|
|
1209
|
+
C(o, Q, a);
|
|
1210
1210
|
}
|
|
1211
|
-
|
|
1211
|
+
o.contains(i) && o.removeChild(i);
|
|
1212
1212
|
}
|
|
1213
|
-
function T(
|
|
1214
|
-
let
|
|
1215
|
-
if (
|
|
1216
|
-
const
|
|
1217
|
-
|
|
1213
|
+
function T(i, o, y, a) {
|
|
1214
|
+
let O, $ = -1;
|
|
1215
|
+
if (i.componentInstance && i.componentInstance.value.triggerBelongedComponentToMoveWhenMoved) {
|
|
1216
|
+
const A = i.componentInstance.value.getBelongedComponentInstance(i.componentInstance);
|
|
1217
|
+
A && (i = H(A.elementRef).value.parentElement, y = i.parentElement);
|
|
1218
1218
|
}
|
|
1219
|
-
const R =
|
|
1219
|
+
const R = i.componentInstance && i.componentInstance.value.schema;
|
|
1220
1220
|
let l = { id: R && R.id };
|
|
1221
|
-
R.type === "component" && (l = { component: R && R.id }), $ = Ye(y.componentInstance.value.contents, l), $ !== -1 && y.componentInstance.value.contents && (
|
|
1221
|
+
R.type === "component" && (l = { component: R && R.id }), $ = Ye(y.componentInstance.value.contents, l), $ !== -1 && y.componentInstance.value.contents && (O = y.componentInstance.value.contents.splice($, 1), O = O[0]), C(o, O, a), y.componentInstance && y.componentInstance.value.onChildElementMovedOut && y.componentInstance.value.onChildElementMovedOut(i), o.componentInstance && o.componentInstance.value.onAcceptMovedChildElement && o.componentInstance.value.onAcceptMovedChildElement(i, y);
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1224
|
-
if (!
|
|
1223
|
+
function F(i, o, y, a) {
|
|
1224
|
+
if (!o || i.contains(o))
|
|
1225
1225
|
return;
|
|
1226
|
-
switch (
|
|
1226
|
+
switch (i.getAttribute("data-sourceType")) {
|
|
1227
1227
|
case "control":
|
|
1228
1228
|
case "field":
|
|
1229
1229
|
case "entity": {
|
|
1230
|
-
p(
|
|
1230
|
+
p(i, o, y, a);
|
|
1231
1231
|
break;
|
|
1232
1232
|
}
|
|
1233
1233
|
default:
|
|
1234
|
-
y.componentInstance.value.contents ? T(
|
|
1234
|
+
y.componentInstance.value.contents ? T(i, o, y, a) : o.contains(i) && o.removeChild(i);
|
|
1235
1235
|
}
|
|
1236
|
-
|
|
1236
|
+
Ee.value++;
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
z && z.destroy(),
|
|
1238
|
+
function f(i) {
|
|
1239
|
+
z && z.destroy(), et && (z = et([], {
|
|
1240
1240
|
// 镜像容器
|
|
1241
|
-
mirrorContainer:
|
|
1241
|
+
mirrorContainer: i,
|
|
1242
1242
|
direction: "mixed",
|
|
1243
1243
|
revertOnSpill: !0,
|
|
1244
1244
|
// 判断是否可移动
|
|
1245
|
-
moves(
|
|
1246
|
-
let
|
|
1247
|
-
return
|
|
1245
|
+
moves(o, y, a) {
|
|
1246
|
+
let O = !0;
|
|
1247
|
+
return o.classList.contains("no-drag") && (O = !1), o.componentInstance && (O = !!a.getAttribute("data-dragging-icon")), O;
|
|
1248
1248
|
},
|
|
1249
1249
|
// 判断是否可拷贝
|
|
1250
|
-
copy(
|
|
1251
|
-
return
|
|
1250
|
+
copy(o) {
|
|
1251
|
+
return o.classList.contains("drag-copy");
|
|
1252
1252
|
},
|
|
1253
1253
|
// 获取镜像元素的文本内容
|
|
1254
|
-
getMirrorText(
|
|
1255
|
-
return
|
|
1254
|
+
getMirrorText(o) {
|
|
1255
|
+
return o.componentInstance && o.componentInstance.value.getDraggingDisplayText ? o.componentInstance.value.getDraggingDisplayText() : o.innerText || "控件";
|
|
1256
1256
|
},
|
|
1257
1257
|
// 判断目标区域是否可接收拖拽的控件
|
|
1258
|
-
accepts(
|
|
1259
|
-
const
|
|
1260
|
-
return
|
|
1258
|
+
accepts(o, y, a) {
|
|
1259
|
+
const O = w(o, y, a), $ = i.lastElementChild;
|
|
1260
|
+
return O ? $.className = $.className.replace("undroppable", "") : $.className.includes("undroppable") || ($.className += " undroppable"), O;
|
|
1261
1261
|
}
|
|
1262
|
-
}).on("over", (
|
|
1262
|
+
}).on("over", (o, y) => {
|
|
1263
1263
|
y.className += " drag-over";
|
|
1264
|
-
}).on("out", (
|
|
1264
|
+
}).on("out", (o, y) => {
|
|
1265
1265
|
y.className = y.className.replace("drag-over", "").replace(" ", "");
|
|
1266
|
-
}).on("drop", (
|
|
1267
|
-
|
|
1268
|
-
}).on("dragend", (
|
|
1269
|
-
g(
|
|
1266
|
+
}).on("drop", (o, y, a, O) => {
|
|
1267
|
+
F(o, y, a, O);
|
|
1268
|
+
}).on("dragend", (o, y) => {
|
|
1269
|
+
g(o, y);
|
|
1270
1270
|
}));
|
|
1271
1271
|
}
|
|
1272
|
-
function S(
|
|
1273
|
-
if (!
|
|
1272
|
+
function S(i, o) {
|
|
1273
|
+
if (!i)
|
|
1274
1274
|
return;
|
|
1275
|
-
if (
|
|
1276
|
-
return
|
|
1277
|
-
const y =
|
|
1275
|
+
if (o.noDragDrop)
|
|
1276
|
+
return i;
|
|
1277
|
+
const y = i.querySelector(`[data-dragref='${o.id}-container']`) || i;
|
|
1278
1278
|
z && y && z.containers.push(y);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function d() {
|
|
1281
1281
|
if (!z)
|
|
1282
1282
|
return;
|
|
1283
|
-
const
|
|
1284
|
-
|
|
1285
|
-
(
|
|
1286
|
-
), Array.from(
|
|
1287
|
-
z.containers.push(
|
|
1283
|
+
const i = document.getElementsByClassName("controlCategory");
|
|
1284
|
+
i && (z.containers = z.containers.filter(
|
|
1285
|
+
(o) => !o.className.includes("controlCategory")
|
|
1286
|
+
), Array.from(i).forEach((o) => {
|
|
1287
|
+
z.containers.push(o);
|
|
1288
1288
|
}));
|
|
1289
1289
|
}
|
|
1290
|
-
return { attachComponents: S, attachToolbox:
|
|
1290
|
+
return { attachComponents: S, attachToolbox: d, initializeDragula: f };
|
|
1291
1291
|
}
|
|
1292
1292
|
const Nn = {
|
|
1293
1293
|
id: { type: String, default: "" },
|
|
@@ -1305,9 +1305,9 @@ const Nn = {
|
|
|
1305
1305
|
modelValue: { type: Object },
|
|
1306
1306
|
ignore: { type: Boolean, default: !1 }
|
|
1307
1307
|
}, M = {}, _ = {}, k = {};
|
|
1308
|
-
let
|
|
1308
|
+
let tt = !1;
|
|
1309
1309
|
function Dn() {
|
|
1310
|
-
|
|
1310
|
+
tt || (tt = !0, bt.registerDesigner(M, _, k), Ct.registerDesigner(M, _, k), xt.registerDesigner(M, _, k), wt.registerDesigner(M, _, k), Pt.registerDesigner(M, _, k), It.registerDesigner(M, _, k), St.registerDesigner(M, _, k), Tt.registerDesigner(M, _, k), Ot.registerDesigner(M, _, k), Et.registerDesigner(M, _, k), Ft.registerDesigner(M, _, k), At.registerDesigner(M, _, k), Nt.registerDesigner(M, _, k), Dt.registerDesigner(M, _, k), Mt.registerDesigner(M, _, k), Bt.registerDesigner(M, _), _t.registerDesigner(M, _, k), Lt.registerDesigner(M, _, k), kt.registerDesigner(M, _, k), Rt.registerDesigner(M, _, k), Xt.registerDesigner(M, _, k), Vt.registerDesigner(M, _, k), Yt.registerDesigner(M, _, k), $t.registerDesigner(M, _, k), zt.registerDesigner(M, _, k), jt.registerDesigner(M, _, k), Ut.registerDesigner(M, _, k), Ht.registerDesigner(M, _, k), Wt.registerDesigner(M, _, k), qt.registerDesigner(M, _, k), Gt.registerDesigner(M, _, k), Kt.registerDesigner(M, _, k), Qt.registerDesigner(M, _, k), en.registerDesigner(M, _, k), tn.registerDesigner(M, _, k), Zt.registerDesigner(M, _, k), Jt.registerDesigner(M, _, k), nn.registerDesigner(M, _, k), on.registerDesigner(M, _, k), rn.registerDesigner(M, _, k), sn.registerDesigner(M, _, k), an.registerDesigner(M, _, k), cn.registerDesigner(M, _, k), ln.registerDesigner(M, _, k), un.registerDesigner(M, _, k), fn.registerDesigner(M, _, k), yn.registerDesigner(M, _, k), dn.registerDesigner(M, _, k), pn.registerDesigner(M, _, k), mn.registerDesigner(M, _, k), vn.registerDesigner(M, _, k), gn.registerDesigner(M, _, k), hn.registerDesigner(M, _), Cn.registerDesigner(M, _, k), bn.registerDesigner(M, _, k), xn.registerDesigner(M, _, k));
|
|
1311
1311
|
}
|
|
1312
1312
|
const Bn = {
|
|
1313
1313
|
id: { type: String }
|
|
@@ -1315,7 +1315,7 @@ const Bn = {
|
|
|
1315
1315
|
name: "FDesignerPlaceholder",
|
|
1316
1316
|
props: Bn,
|
|
1317
1317
|
emits: [],
|
|
1318
|
-
setup(
|
|
1318
|
+
setup(B) {
|
|
1319
1319
|
const z = Te(() => ({
|
|
1320
1320
|
"drag-and-drop-alert": !0,
|
|
1321
1321
|
"no-drag": !0,
|
|
@@ -1342,70 +1342,70 @@ const Bn = {
|
|
|
1342
1342
|
}, [gt("拖拽组件到这里")]);
|
|
1343
1343
|
}
|
|
1344
1344
|
});
|
|
1345
|
-
function _n(
|
|
1346
|
-
return typeof
|
|
1345
|
+
function _n(B) {
|
|
1346
|
+
return typeof B == "function" || Object.prototype.toString.call(B) === "[object Object]" && !ht(B);
|
|
1347
1347
|
}
|
|
1348
|
-
const
|
|
1348
|
+
const Ue = /* @__PURE__ */ Fe({
|
|
1349
1349
|
name: "FDesignerItem",
|
|
1350
1350
|
props: Nn,
|
|
1351
1351
|
emits: ["selectionChange"],
|
|
1352
|
-
setup(
|
|
1353
|
-
const I = H(`${
|
|
1354
|
-
designerItemElementRef:
|
|
1355
|
-
componentInstance:
|
|
1352
|
+
setup(B, z) {
|
|
1353
|
+
const I = H(`${B.modelValue.id}-component`), w = H(B.canMove), N = H(B.canDelete), g = H(!1), C = H(B.modelValue), x = H(B.componentId || ""), p = H(""), T = H(""), F = H(B.customClass), f = H(), S = me("canvas-dragula"), d = H(), i = me("design-item-context"), o = {
|
|
1354
|
+
designerItemElementRef: f,
|
|
1355
|
+
componentInstance: d,
|
|
1356
1356
|
schema: C.value,
|
|
1357
|
-
parent:
|
|
1357
|
+
parent: i,
|
|
1358
1358
|
setupContext: z
|
|
1359
1359
|
};
|
|
1360
|
-
|
|
1360
|
+
Oe("design-item-context", o);
|
|
1361
1361
|
const y = me("useFormSchema"), a = Te(() => {
|
|
1362
|
-
const
|
|
1363
|
-
let
|
|
1362
|
+
const c = B.modelValue.appearance && B.modelValue.appearance.class || "";
|
|
1363
|
+
let E = {
|
|
1364
1364
|
"farris-component": !0,
|
|
1365
1365
|
// 受position-relative影响,整个容器的高度不能被撑起
|
|
1366
1366
|
"flex-fill": C.value.id == "root-component",
|
|
1367
|
-
"position-relative": w.value &&
|
|
1367
|
+
"position-relative": w.value && N.value,
|
|
1368
1368
|
"farris-nested": g.value,
|
|
1369
1369
|
"can-move": w.value,
|
|
1370
|
-
"d-none":
|
|
1371
|
-
dgComponentSelected:
|
|
1372
|
-
dgComponentFocused:
|
|
1370
|
+
"d-none": f.value && f.value.classList.contains("d-none"),
|
|
1371
|
+
dgComponentSelected: f.value && f.value.classList.contains("dgComponentSelected"),
|
|
1372
|
+
dgComponentFocused: f.value && f.value.classList.contains("dgComponentFocused")
|
|
1373
1373
|
};
|
|
1374
|
-
return
|
|
1375
|
-
}),
|
|
1376
|
-
const
|
|
1377
|
-
return
|
|
1378
|
-
const [
|
|
1379
|
-
return e[
|
|
1380
|
-
},
|
|
1381
|
-
const [
|
|
1382
|
-
return
|
|
1383
|
-
},
|
|
1374
|
+
return E[`farris-component-${C.value.type}`] = !0, E = je(E, c), E = je(E, T.value), E = je(E, F.value), E;
|
|
1375
|
+
}), O = Te(() => {
|
|
1376
|
+
const c = {}, E = B.modelValue.appearance && B.modelValue.appearance.style || "";
|
|
1377
|
+
return E && E.split(";").reduce((e, t) => {
|
|
1378
|
+
const [u, v] = t.split(":");
|
|
1379
|
+
return e[u] = v, e;
|
|
1380
|
+
}, c), p.value && p.value.split(";").reduce((e, t) => {
|
|
1381
|
+
const [u, v] = t.split(":");
|
|
1382
|
+
return u && (e[u] = v), e;
|
|
1383
|
+
}, c), c;
|
|
1384
1384
|
});
|
|
1385
|
-
function $(
|
|
1386
|
-
var
|
|
1387
|
-
if (
|
|
1388
|
-
const n =
|
|
1385
|
+
function $(c, E) {
|
|
1386
|
+
var u, v, s;
|
|
1387
|
+
if (c && (c.preventDefault(), c.stopPropagation()), d.value.triggerBelongedComponentToDeleteWhenDeleted) {
|
|
1388
|
+
const n = d.value.getBelongedComponentInstance(d);
|
|
1389
1389
|
if (n && n.parent) {
|
|
1390
1390
|
const j = H(n == null ? void 0 : n.parent), L = j.value.contents.findIndex((ee) => ee.id === n.schema.id);
|
|
1391
|
-
(v = (
|
|
1391
|
+
(v = (u = j.value) == null ? void 0 : u.contents) == null || v.splice(L, 1), (s = j.value) == null || s.updateDragAndDropRules(), Ee.value++;
|
|
1392
1392
|
}
|
|
1393
1393
|
return;
|
|
1394
1394
|
}
|
|
1395
|
-
let e =
|
|
1396
|
-
if (
|
|
1395
|
+
let e = i, t = (n) => n.id === E.id;
|
|
1396
|
+
if (E.type === "component" && (e = i == null ? void 0 : i.parent, t = (n) => n.component === E.id), e && e.schema.contents) {
|
|
1397
1397
|
const n = e.schema.contents.findIndex(t);
|
|
1398
|
-
e.schema.contents.splice(n, 1), e.componentInstance.value.updateDragAndDropRules(),
|
|
1398
|
+
e.schema.contents.splice(n, 1), e.componentInstance.value.updateDragAndDropRules(), Ee.value++, z.emit("selectionChange");
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
|
-
function R(
|
|
1402
|
-
return
|
|
1401
|
+
function R(c) {
|
|
1402
|
+
return N.value && J("div", {
|
|
1403
1403
|
role: "button",
|
|
1404
1404
|
class: "btn component-settings-button",
|
|
1405
1405
|
title: "删除",
|
|
1406
1406
|
ref: "removeComponent",
|
|
1407
|
-
onClick: (
|
|
1408
|
-
$(
|
|
1407
|
+
onClick: (E) => {
|
|
1408
|
+
$(E, c);
|
|
1409
1409
|
}
|
|
1410
1410
|
}, [J("i", {
|
|
1411
1411
|
class: "f-icon f-icon-yxs_delete"
|
|
@@ -1422,53 +1422,53 @@ const ze = /* @__PURE__ */ Fe({
|
|
|
1422
1422
|
class: "cmp_move f-icon f-icon-yxs_move"
|
|
1423
1423
|
}, null)]);
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1426
|
-
return
|
|
1425
|
+
function A() {
|
|
1426
|
+
return B.customButtons && !!B.customButtons.length && B.customButtons.map((c) => J("div", {
|
|
1427
1427
|
role: "button",
|
|
1428
|
-
class: `btn component-settings-button ${
|
|
1429
|
-
title:
|
|
1430
|
-
ref:
|
|
1428
|
+
class: `btn component-settings-button ${c.class || ""}`,
|
|
1429
|
+
title: c.title,
|
|
1430
|
+
ref: c.id
|
|
1431
1431
|
}, [J("i", {
|
|
1432
|
-
class:
|
|
1432
|
+
class: c.icon
|
|
1433
1433
|
}, null)]));
|
|
1434
1434
|
}
|
|
1435
|
-
function U(
|
|
1435
|
+
function U(c) {
|
|
1436
1436
|
return J("div", {
|
|
1437
1437
|
class: "component-btn-group",
|
|
1438
1438
|
"data-noattach": "true"
|
|
1439
|
-
}, [J("div", null, [R(
|
|
1439
|
+
}, [J("div", null, [R(c), l(), A()])]);
|
|
1440
1440
|
}
|
|
1441
|
-
function Y(
|
|
1442
|
-
z.emit("selectionChange",
|
|
1441
|
+
function Y(c, E, e, t) {
|
|
1442
|
+
z.emit("selectionChange", c, E, e, t);
|
|
1443
1443
|
}
|
|
1444
|
-
function re(
|
|
1445
|
-
let
|
|
1446
|
-
const e =
|
|
1447
|
-
v.customClass =
|
|
1448
|
-
const s =
|
|
1449
|
-
return
|
|
1450
|
-
ref:
|
|
1451
|
-
}, v), _n(
|
|
1444
|
+
function re(c) {
|
|
1445
|
+
let E;
|
|
1446
|
+
const e = c.type, t = M[e], u = _[e], v = u ? u(c) : {};
|
|
1447
|
+
v.customClass = B.ignore ? v.customClass : "", v.componentId = x.value;
|
|
1448
|
+
const s = c.contents && c.contents.length === 0;
|
|
1449
|
+
return c.contents && !!c.contents.length && t ? J(t, $e({
|
|
1450
|
+
ref: d
|
|
1451
|
+
}, v), _n(E = c.contents.map((j) => J(Ue, {
|
|
1452
1452
|
key: j.id,
|
|
1453
1453
|
modelValue: j,
|
|
1454
1454
|
"onUpdate:modelValue": (L) => j = L,
|
|
1455
|
-
componentId:
|
|
1455
|
+
componentId: x.value,
|
|
1456
1456
|
onSelectionChange: Y
|
|
1457
|
-
}, null))) ?
|
|
1458
|
-
default: () => [
|
|
1457
|
+
}, null))) ? E : {
|
|
1458
|
+
default: () => [E]
|
|
1459
1459
|
}) : t ? s ? J(t, $e({
|
|
1460
|
-
ref:
|
|
1460
|
+
ref: d
|
|
1461
1461
|
}, v), {
|
|
1462
1462
|
default: () => [J(Mn, null, null)]
|
|
1463
1463
|
}) : J(t, $e({
|
|
1464
|
-
ref:
|
|
1464
|
+
ref: d
|
|
1465
1465
|
}, v), null) : J("div", null, null);
|
|
1466
1466
|
}
|
|
1467
|
-
function Q(
|
|
1468
|
-
if (
|
|
1469
|
-
let e = y == null ? void 0 : y.getFormSchema().module.components.find((t) => t.id ===
|
|
1467
|
+
function Q(c) {
|
|
1468
|
+
if (c.type === "component-ref") {
|
|
1469
|
+
let e = y == null ? void 0 : y.getFormSchema().module.components.find((t) => t.id === c.component);
|
|
1470
1470
|
if (e)
|
|
1471
|
-
return J(
|
|
1471
|
+
return J(Ue, {
|
|
1472
1472
|
key: e.id,
|
|
1473
1473
|
modelValue: e,
|
|
1474
1474
|
"onUpdate:modelValue": (t) => e = t,
|
|
@@ -1477,52 +1477,54 @@ const ze = /* @__PURE__ */ Fe({
|
|
|
1477
1477
|
}, null);
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
|
-
|
|
1481
|
-
C.value =
|
|
1480
|
+
He(() => B.modelValue, (c) => {
|
|
1481
|
+
C.value = c, I.value = `${c.id}-component`;
|
|
1482
1482
|
});
|
|
1483
|
-
function m(
|
|
1484
|
-
const
|
|
1485
|
-
|
|
1483
|
+
function m(c) {
|
|
1484
|
+
const E = c == null ? void 0 : c.target;
|
|
1485
|
+
ze(E);
|
|
1486
1486
|
}
|
|
1487
1487
|
function G() {
|
|
1488
|
-
var
|
|
1489
|
-
(
|
|
1488
|
+
var c, E;
|
|
1489
|
+
(E = (c = C.value) == null ? void 0 : c.contents) != null && E.length && f.value && f.value.addEventListener("scroll", m);
|
|
1490
1490
|
}
|
|
1491
|
-
|
|
1492
|
-
if (
|
|
1493
|
-
const
|
|
1494
|
-
S &&
|
|
1491
|
+
We(() => {
|
|
1492
|
+
if (f.value && d.value && d.value.schema) {
|
|
1493
|
+
const c = f.value.querySelector(`[data-dragref='${d.value.schema.id}-container']`);
|
|
1494
|
+
S && c && S.attachComponents(c, C.value), g.value = d.value.canNested !== void 0 ? d.value.canNested : g.value, N.value = d.value.canDelete !== void 0 ? d.value.canDelete : N.value, w.value = d.value.canMove !== void 0 ? d.value.canMove : w.value, p.value = d.value.styles || "", T.value = d.value.designerClass || "", f.value && (f.value.componentInstance = d, f.value.designItemContext = o), d.value.belongedComponentId = x.value;
|
|
1495
1495
|
}
|
|
1496
|
-
G(),
|
|
1496
|
+
G(), Ee.value++;
|
|
1497
1497
|
}), yt(() => {
|
|
1498
|
-
|
|
1498
|
+
f.value && f.value.removeEventListener("scroll", m);
|
|
1499
1499
|
});
|
|
1500
|
-
function Z(
|
|
1501
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
c && c.value && c.value.classList.add("dgComponentSelected");
|
|
1508
|
-
}
|
|
1500
|
+
function Z(c) {
|
|
1501
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((t) => t.classList.remove("dgComponentFocused")), c && (c.preventDefault(), c.stopPropagation());
|
|
1502
|
+
let E = o.designerItemElementRef;
|
|
1503
|
+
const e = f.value;
|
|
1504
|
+
if (e) {
|
|
1505
|
+
const t = document.getElementsByClassName("dgComponentSelected");
|
|
1506
|
+
t && t.length === 1 && t[0] === f.value || (Array.from(t).forEach((v) => v.classList.remove("dgComponentSelected")), e.classList.add("dgComponentFocused"), z.emit("selectionChange", C.value.type, C.value, x.value, d.value), d.value.getDraggableDesignItemElement && (E = d.value.getDraggableDesignItemElement(o), E && E.value && E.value.classList.add("dgComponentSelected")));
|
|
1509
1507
|
}
|
|
1510
|
-
m(
|
|
1508
|
+
m({
|
|
1509
|
+
target: E == null ? void 0 : E.value
|
|
1510
|
+
});
|
|
1511
1511
|
}
|
|
1512
1512
|
return () => C.value.type === "component-ref" ? Q(C.value) : J("div", {
|
|
1513
1513
|
id: `${C.value.id}-design-item`,
|
|
1514
|
-
ref:
|
|
1514
|
+
ref: f,
|
|
1515
1515
|
class: a.value,
|
|
1516
|
-
style:
|
|
1516
|
+
style: O.value,
|
|
1517
1517
|
onClick: Z
|
|
1518
1518
|
}, [U(C.value), re(C.value)]);
|
|
1519
1519
|
}
|
|
1520
1520
|
}), Ln = /* @__PURE__ */ Fe({
|
|
1521
1521
|
name: "FDesignerCanvas",
|
|
1522
|
-
props:
|
|
1522
|
+
props: On,
|
|
1523
1523
|
emits: ["init", "selectionChange", "canvasChanged"],
|
|
1524
|
-
setup(
|
|
1525
|
-
const I = H(), w = H(),
|
|
1524
|
+
setup(B, z) {
|
|
1525
|
+
const I = H(), w = H(), N = H(), g = H(), C = H(), x = H(B.componentId);
|
|
1526
|
+
let p, T;
|
|
1527
|
+
const F = {
|
|
1526
1528
|
eventsEditorUtils: me("eventsEditorUtils"),
|
|
1527
1529
|
formSchemaUtils: me("useFormSchema"),
|
|
1528
1530
|
formMetadataConverter: me("formMetadataConverter"),
|
|
@@ -1531,84 +1533,91 @@ const ze = /* @__PURE__ */ Fe({
|
|
|
1531
1533
|
metadataService: me("Meatdata_Http_Service_Token"),
|
|
1532
1534
|
schemaService: me("schemaService")
|
|
1533
1535
|
};
|
|
1534
|
-
|
|
1535
|
-
const
|
|
1536
|
-
Dn(),
|
|
1536
|
+
Oe("designer-host-service", F);
|
|
1537
|
+
const f = An(F);
|
|
1538
|
+
Dn(), Oe("canvas-dragula", f), Oe("design-item-context", {
|
|
1537
1539
|
designerItemElementRef: g,
|
|
1538
1540
|
componentInstance: C,
|
|
1539
1541
|
schema: w.value,
|
|
1540
1542
|
parent: void 0
|
|
1541
1543
|
});
|
|
1542
|
-
const
|
|
1544
|
+
const S = Te(() => ({
|
|
1543
1545
|
"d-flex": !0,
|
|
1544
1546
|
"flex-fill": !0,
|
|
1545
1547
|
"flex-column": !0
|
|
1546
1548
|
}));
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
}),
|
|
1550
|
-
|
|
1549
|
+
We(() => {
|
|
1550
|
+
N.value && f.initializeDragula(N.value), I.value = B.modelValue, z.emit("init", f), d();
|
|
1551
|
+
}), He(Ee, () => {
|
|
1552
|
+
ze(N.value), z.emit("canvasChanged");
|
|
1551
1553
|
}, {
|
|
1552
1554
|
flush: "post"
|
|
1553
1555
|
});
|
|
1554
|
-
function d(
|
|
1555
|
-
|
|
1556
|
+
function d() {
|
|
1557
|
+
p = new ResizeObserver(() => {
|
|
1558
|
+
T && clearTimeout(T), T = setTimeout(() => {
|
|
1559
|
+
ze(N.value);
|
|
1560
|
+
});
|
|
1561
|
+
}), p.observe(N.value);
|
|
1562
|
+
}
|
|
1563
|
+
function i(o, y, a, O) {
|
|
1564
|
+
z.emit("selectionChange", o, y, a, O);
|
|
1556
1565
|
}
|
|
1557
1566
|
return () => J("div", {
|
|
1558
1567
|
class: "editorDiv flex-fill h-100"
|
|
1559
1568
|
}, [J("div", {
|
|
1560
1569
|
class: "editorPanel d-flex flex-fill flex-column PC"
|
|
1561
1570
|
}, [J("div", {
|
|
1562
|
-
ref:
|
|
1563
|
-
class:
|
|
1564
|
-
}, [I.value && J(
|
|
1571
|
+
ref: N,
|
|
1572
|
+
class: S.value
|
|
1573
|
+
}, [I.value && J(Ue, {
|
|
1565
1574
|
modelValue: I.value,
|
|
1566
|
-
"onUpdate:modelValue": (
|
|
1567
|
-
onSelectionChange:
|
|
1568
|
-
componentId:
|
|
1575
|
+
"onUpdate:modelValue": (o) => I.value = o,
|
|
1576
|
+
onSelectionChange: i,
|
|
1577
|
+
componentId: x.value
|
|
1569
1578
|
}, null)])])]);
|
|
1570
1579
|
}
|
|
1571
1580
|
}), kn = /* @__PURE__ */ Fe({
|
|
1572
1581
|
name: "FFlowNodeItem",
|
|
1573
1582
|
props: Sn,
|
|
1574
1583
|
emits: [],
|
|
1575
|
-
setup(
|
|
1576
|
-
const I = H(
|
|
1584
|
+
setup(B, z) {
|
|
1585
|
+
const I = H(B.id), w = H(B.modelValue), N = H(), g = me("use-drawing-bezier-composition"), {
|
|
1577
1586
|
drawFrom: C,
|
|
1578
|
-
eraseDrawingLine:
|
|
1587
|
+
eraseDrawingLine: x,
|
|
1579
1588
|
finishToDraw: p,
|
|
1580
1589
|
getAncherPointPosition: T,
|
|
1581
|
-
isAncherPoint:
|
|
1582
|
-
} = g,
|
|
1590
|
+
isAncherPoint: F
|
|
1591
|
+
} = g, f = me("use-bezier-curve-composition"), {
|
|
1583
1592
|
connect: S
|
|
1584
|
-
} =
|
|
1585
|
-
addConnection:
|
|
1586
|
-
getConnectionsOfNode:
|
|
1587
|
-
} =
|
|
1588
|
-
new Map(
|
|
1593
|
+
} = f, d = me("use-connections-composition"), {
|
|
1594
|
+
addConnection: i,
|
|
1595
|
+
getConnectionsOfNode: o
|
|
1596
|
+
} = d;
|
|
1597
|
+
new Map(B.connection);
|
|
1589
1598
|
const y = Te(() => ({
|
|
1590
|
-
left: `${
|
|
1591
|
-
top: `${
|
|
1599
|
+
left: `${B.x}px`,
|
|
1600
|
+
top: `${B.y}px`
|
|
1592
1601
|
}));
|
|
1593
|
-
function a(l,
|
|
1594
|
-
if (
|
|
1595
|
-
const U = T(l), Y = T(
|
|
1596
|
-
S(l.id,
|
|
1597
|
-
const re = l.id, Q =
|
|
1598
|
-
|
|
1602
|
+
function a(l, A) {
|
|
1603
|
+
if (F(l) && F(A)) {
|
|
1604
|
+
const U = T(l), Y = T(A);
|
|
1605
|
+
S(l.id, A.id, U, Y);
|
|
1606
|
+
const re = l.id, Q = A.id, m = re.split(/(-left-point|-right-point|-top-point|-bottom-point)/, 1)[0], G = Q.split(/(-left-point|-right-point|-top-point|-bottom-point)/, 1)[0];
|
|
1607
|
+
i(m, re, G, Q);
|
|
1599
1608
|
}
|
|
1600
1609
|
}
|
|
1601
|
-
function
|
|
1602
|
-
var
|
|
1603
|
-
document.removeEventListener("mouseup",
|
|
1610
|
+
function O(l) {
|
|
1611
|
+
var A;
|
|
1612
|
+
document.removeEventListener("mouseup", O), p(l), x(`${(A = N.value) == null ? void 0 : A.id}_curve_to`), a(N.value, l.target);
|
|
1604
1613
|
}
|
|
1605
|
-
function $(l,
|
|
1606
|
-
|
|
1614
|
+
function $(l, A) {
|
|
1615
|
+
N.value = document.getElementById(l), C(l, A), document.addEventListener("mouseup", O), A.stopPropagation();
|
|
1607
1616
|
}
|
|
1608
|
-
|
|
1609
|
-
const l =
|
|
1610
|
-
l.length && l.forEach((
|
|
1611
|
-
const U = document.getElementById(
|
|
1617
|
+
He([() => B.x, () => B.y], () => {
|
|
1618
|
+
const l = o(I.value);
|
|
1619
|
+
l.length && l.forEach((A) => {
|
|
1620
|
+
const U = document.getElementById(A.from), Y = document.getElementById(A.to);
|
|
1612
1621
|
U && Y && a(U, Y);
|
|
1613
1622
|
});
|
|
1614
1623
|
});
|
|
@@ -1645,32 +1654,32 @@ const ze = /* @__PURE__ */ Fe({
|
|
|
1645
1654
|
}, null)]);
|
|
1646
1655
|
}
|
|
1647
1656
|
});
|
|
1648
|
-
function Rn(
|
|
1657
|
+
function Rn(B) {
|
|
1649
1658
|
const z = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map();
|
|
1650
|
-
function w(C,
|
|
1659
|
+
function w(C, x) {
|
|
1651
1660
|
const p = I.get(C) || [];
|
|
1652
1661
|
p.filter(
|
|
1653
|
-
(
|
|
1654
|
-
).length > 0 || (p.push(
|
|
1662
|
+
(F) => x.from === F.from && x.to === F.to
|
|
1663
|
+
).length > 0 || (p.push(x), I.set(C, p));
|
|
1655
1664
|
}
|
|
1656
|
-
function
|
|
1657
|
-
const
|
|
1658
|
-
|
|
1659
|
-
const
|
|
1660
|
-
w(C,
|
|
1665
|
+
function N(C, x, p, T) {
|
|
1666
|
+
const F = new Set(z.get(x) || []);
|
|
1667
|
+
F.add(T), z.set(x, [...F]);
|
|
1668
|
+
const f = { from: x, to: T, type: "Curve" };
|
|
1669
|
+
w(C, f), w(p, f);
|
|
1661
1670
|
}
|
|
1662
1671
|
function g(C) {
|
|
1663
1672
|
return I.get(C) || [];
|
|
1664
1673
|
}
|
|
1665
|
-
return { addConnection:
|
|
1674
|
+
return { addConnection: N, getConnectionsOfNode: g };
|
|
1666
1675
|
}
|
|
1667
1676
|
const Uo = /* @__PURE__ */ Fe({
|
|
1668
1677
|
name: "FFlowCanvas",
|
|
1669
1678
|
props: wn,
|
|
1670
1679
|
emits: [],
|
|
1671
|
-
setup(
|
|
1672
|
-
const I = H(), w = Pn(),
|
|
1673
|
-
|
|
1680
|
+
setup(B, z) {
|
|
1681
|
+
const I = H(), w = Pn(), N = In(w), g = Rn();
|
|
1682
|
+
Oe("use-bezier-curve-composition", w), Oe("use-connections-composition", g), Oe("use-drawing-bezier-composition", N);
|
|
1674
1683
|
const C = Te(() => ({
|
|
1675
1684
|
transition: "transform 0.2s",
|
|
1676
1685
|
"background-color": "#F2F3F5",
|
|
@@ -1678,19 +1687,19 @@ const Uo = /* @__PURE__ */ Fe({
|
|
|
1678
1687
|
width: "100%",
|
|
1679
1688
|
position: "relative"
|
|
1680
1689
|
}));
|
|
1681
|
-
|
|
1682
|
-
I.value =
|
|
1690
|
+
We(() => {
|
|
1691
|
+
I.value = B.modelValue;
|
|
1683
1692
|
});
|
|
1684
|
-
const
|
|
1685
|
-
function S(
|
|
1686
|
-
const y =
|
|
1687
|
-
|
|
1693
|
+
const x = H(), p = H(), T = H(), F = H(), f = H();
|
|
1694
|
+
function S(o) {
|
|
1695
|
+
const y = o.clientX - F.value, a = o.clientY - f.value;
|
|
1696
|
+
x.value && x.value.position && (x.value.position.x = p.value + y, x.value.position.y = T.value + a);
|
|
1688
1697
|
}
|
|
1689
|
-
function
|
|
1690
|
-
document.removeEventListener("mousemove", S), document.removeEventListener("mouseup",
|
|
1698
|
+
function d() {
|
|
1699
|
+
document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", d), x.value = void 0, F.value = void 0, f.value = void 0;
|
|
1691
1700
|
}
|
|
1692
|
-
function
|
|
1693
|
-
|
|
1701
|
+
function i(o, y) {
|
|
1702
|
+
x.value = o, p.value = o.position.x, T.value = o.position.y, F.value = y.clientX, f.value = y.clientY, document.addEventListener("mousemove", S), document.addEventListener("mouseup", d);
|
|
1694
1703
|
}
|
|
1695
1704
|
return () => J("div", {
|
|
1696
1705
|
class: "f-flow-canvas editorDiv flex-fill h-100"
|
|
@@ -1698,13 +1707,13 @@ const Uo = /* @__PURE__ */ Fe({
|
|
|
1698
1707
|
id: "svg-container",
|
|
1699
1708
|
class: "f-struct-wrapper flex-fill",
|
|
1700
1709
|
style: C.value
|
|
1701
|
-
}, [I.value && I.value.contents.map((
|
|
1702
|
-
modelValue:
|
|
1703
|
-
"onUpdate:modelValue": (y) =>
|
|
1704
|
-
id:
|
|
1705
|
-
x:
|
|
1706
|
-
y:
|
|
1707
|
-
onMousedown: (y) =>
|
|
1710
|
+
}, [I.value && I.value.contents.map((o) => J(kn, {
|
|
1711
|
+
modelValue: o.content[0],
|
|
1712
|
+
"onUpdate:modelValue": (y) => o.content[0] = y,
|
|
1713
|
+
id: o.id,
|
|
1714
|
+
x: o.position.x,
|
|
1715
|
+
y: o.position.y,
|
|
1716
|
+
onMousedown: (y) => i(o, y)
|
|
1708
1717
|
}, null))])]);
|
|
1709
1718
|
}
|
|
1710
1719
|
});
|