@farris/ui-vue 1.2.8 → 1.3.0
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 +180 -180
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +419 -331
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +346 -326
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +384 -384
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +205 -205
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +555 -467
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +239 -239
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1072 -364
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +129 -129
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.esm.js +778 -700
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +582 -327
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2433 -1134
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +307 -234
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6762 -4946
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4977 -3489
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3525 -2811
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +38 -37
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +282 -282
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2684 -1039
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +149 -101
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +573 -518
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +99 -99
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3607 -2799
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5438 -8236
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1679 -1759
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +421 -421
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +677 -593
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +326 -326
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +272 -199
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3739 -2273
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +11255 -9004
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6046 -5314
- package/components/mapping-editor/index.umd.cjs +1 -0
- 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 -0
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +588 -444
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +568 -485
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +542 -454
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1967 -1105
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +160 -160
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +1282 -1151
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +705 -555
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +270 -270
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +2231 -1517
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +813 -909
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +3781 -2566
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +101 -101
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +538 -450
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +238 -233
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +155 -155
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1243 -1180
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +988 -877
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5413 -4867
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +199 -199
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +646 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +144 -144
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +464 -391
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +249 -249
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +483 -394
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +2366 -2208
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +397 -399
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +394 -394
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +451 -367
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1252 -1144
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +510 -499
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5463 -9330
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +4058 -2597
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +510 -504
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +220 -220
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +653 -394
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +1028 -1028
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +20407 -18556
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +8 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +3 -1
- package/types/data-grid/src/data-grid.props.d.ts +3 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +36 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/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/use-designer-rules.d.ts +2 -2
- 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 +3 -1
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +12 -2
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/index.d.ts +2 -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/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/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/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tags/index.d.ts +36 -5
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- 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,705 +1,706 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { findIndex as Me, cloneDeep as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
1
|
+
import { ref as X, defineComponent as xe, computed as ve, createVNode as z, createTextVNode as yt, inject as ae, provide as ye, watch as ze, onMounted as Je, onBeforeUnmount as Ct, mergeProps as Ae, isVNode as Dt } from "vue";
|
|
2
|
+
import { findIndex as Me, cloneDeep as bt } from "lodash-es";
|
|
3
|
+
import wt from "../accordion/index.esm.js";
|
|
4
|
+
import St from "../avatar/index.esm.js";
|
|
5
|
+
import Tt from "../button-edit/index.esm.js";
|
|
6
|
+
import Et from "../button-group/index.esm.js";
|
|
7
|
+
import Ft from "../calendar/index.esm.js";
|
|
8
|
+
import Pt from "../capsule/index.esm.js";
|
|
9
|
+
import It from "../checkbox/index.esm.js";
|
|
10
|
+
import At from "../color-picker/index.esm.js";
|
|
11
|
+
import Mt from "../combo-list/index.esm.js";
|
|
12
|
+
import Nt from "../content-container/index.esm.js";
|
|
13
|
+
import Bt from "../data-grid/index.esm.js";
|
|
14
|
+
import xt from "../date-picker/index.esm.js";
|
|
15
|
+
import kt from "../dropdown/index.esm.js";
|
|
16
|
+
import _t from "../dynamic-form/index.esm.js";
|
|
17
|
+
import Ot from "../external-container/index.esm.js";
|
|
18
|
+
import Lt from "../events-editor/index.esm.js";
|
|
19
|
+
import Vt from "../filter-bar/index.esm.js";
|
|
20
|
+
import jt from "../image-cropper/index.esm.js";
|
|
21
|
+
import $t from "../input-group/index.esm.js";
|
|
22
|
+
import Ut from "../layout/index.esm.js";
|
|
23
|
+
import qt from "../list-nav/index.esm.js";
|
|
24
|
+
import Ht from "../list-view/index.esm.js";
|
|
25
|
+
import Xt from "../lookup/index.esm.js";
|
|
26
|
+
import Wt from "../nav/index.esm.js";
|
|
27
|
+
import Yt from "../number-spinner/index.esm.js";
|
|
28
|
+
import Gt from "../number-range/index.esm.js";
|
|
29
|
+
import zt from "../order/index.esm.js";
|
|
30
|
+
import Jt from "../page-header/index.esm.js";
|
|
31
|
+
import Qt from "../page-footer/index.esm.js";
|
|
32
32
|
import Kt from "../pagination/index.esm.js";
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
33
|
+
import Zt from "../progress/index.esm.js";
|
|
34
|
+
import Rt from "../query-solution/index.esm.js";
|
|
35
|
+
import en from "../radio-group/index.esm.js";
|
|
36
|
+
import tn from "../rate/index.esm.js";
|
|
37
|
+
import nn from "../response-toolbar/index.esm.js";
|
|
38
|
+
import on from "../response-layout/index.esm.js";
|
|
39
|
+
import rn from "../response-layout-editor/index.esm.js";
|
|
40
|
+
import an from "../search-box/index.esm.js";
|
|
41
|
+
import cn from "../section/index.esm.js";
|
|
42
|
+
import ln from "../smoke-detector/index.esm.js";
|
|
43
|
+
import un from "../splitter/index.esm.js";
|
|
44
|
+
import sn from "../step/index.esm.js";
|
|
45
|
+
import fn from "../switch/index.esm.js";
|
|
46
|
+
import pn from "../tabs/index.esm.js";
|
|
47
|
+
import mn from "../tags/index.esm.js";
|
|
48
|
+
import dn from "../text/index.esm.js";
|
|
49
|
+
import vn from "../time-picker/index.esm.js";
|
|
50
|
+
import gn from "../transfer/index.esm.js";
|
|
51
|
+
import hn from "../tree-view/index.esm.js";
|
|
52
|
+
import yn from "../uploader/index.esm.js";
|
|
53
|
+
import Cn from "../verify-detail/index.esm.js";
|
|
54
|
+
import Dn from "../weather/index.esm.js";
|
|
55
|
+
import bn from "../component/index.esm.js";
|
|
56
|
+
import wn from "../video/index.esm.js";
|
|
57
|
+
import Sn from "../textarea/index.esm.js";
|
|
58
|
+
import Tn from "../tree-grid/index.esm.js";
|
|
59
|
+
import { getCustomClass as Ne } from "../common/index.esm.js";
|
|
60
|
+
const de = X(0);
|
|
61
|
+
function En(A, c) {
|
|
62
|
+
const t = c.getBoundingClientRect(), b = A.getBoundingClientRect(), I = b.top >= t.top, u = b.top <= t.bottom;
|
|
63
|
+
return I && u;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
if (!
|
|
65
|
+
function Qe(A) {
|
|
66
|
+
if (!A)
|
|
66
67
|
return;
|
|
67
|
-
let
|
|
68
|
-
if (
|
|
68
|
+
let c;
|
|
69
|
+
if (A.className.includes("dgComponentSelected") ? c = A : c = A.querySelector(".dgComponentSelected"), !c)
|
|
69
70
|
return;
|
|
70
|
-
const t =
|
|
71
|
+
const t = c.getBoundingClientRect();
|
|
71
72
|
if (t.width === 0 && t.height === 0)
|
|
72
73
|
return;
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
if (!
|
|
76
|
-
|
|
74
|
+
const b = c.querySelector(".component-btn-group");
|
|
75
|
+
if (b) {
|
|
76
|
+
if (!En(c, A)) {
|
|
77
|
+
b.style.display = "none";
|
|
77
78
|
return;
|
|
78
79
|
}
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
if (
|
|
82
|
-
const
|
|
83
|
-
|
|
80
|
+
b.style.display = "";
|
|
81
|
+
const u = b.getBoundingClientRect(), m = b.querySelector("div");
|
|
82
|
+
if (m) {
|
|
83
|
+
const C = m.getBoundingClientRect();
|
|
84
|
+
m.style.top = u.top + "px", m.style.left = u.left - C.width + "px";
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
|
-
const
|
|
88
|
+
const Fn = {
|
|
88
89
|
/**
|
|
89
90
|
* 组件值
|
|
90
91
|
*/
|
|
91
92
|
modelValue: { type: Object, default: {} },
|
|
92
93
|
componentId: { type: String, default: "" }
|
|
93
94
|
};
|
|
94
|
-
var
|
|
95
|
-
function
|
|
96
|
-
return
|
|
95
|
+
var se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
96
|
+
function Pn(A) {
|
|
97
|
+
return A && A.__esModule && Object.prototype.hasOwnProperty.call(A, "default") ? A.default : A;
|
|
97
98
|
}
|
|
98
|
-
function he(
|
|
99
|
-
throw new Error('Could not dynamically require "' +
|
|
99
|
+
function he(A) {
|
|
100
|
+
throw new Error('Could not dynamically require "' + A + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
100
101
|
}
|
|
101
102
|
var Ke = { exports: {} };
|
|
102
|
-
(function(
|
|
103
|
+
(function(A, c) {
|
|
103
104
|
(function(t) {
|
|
104
|
-
|
|
105
|
+
A.exports = t();
|
|
105
106
|
})(function() {
|
|
106
107
|
return (/* @__PURE__ */ function() {
|
|
107
|
-
function t(
|
|
108
|
-
function
|
|
109
|
-
if (!
|
|
110
|
-
if (!
|
|
111
|
-
var
|
|
112
|
-
if (!
|
|
113
|
-
if (
|
|
114
|
-
var
|
|
115
|
-
throw
|
|
108
|
+
function t(b, I, u) {
|
|
109
|
+
function m(x, k) {
|
|
110
|
+
if (!I[x]) {
|
|
111
|
+
if (!b[x]) {
|
|
112
|
+
var s = typeof he == "function" && he;
|
|
113
|
+
if (!k && s) return s(x, !0);
|
|
114
|
+
if (C) return C(x, !0);
|
|
115
|
+
var y = new Error("Cannot find module '" + x + "'");
|
|
116
|
+
throw y.code = "MODULE_NOT_FOUND", y;
|
|
116
117
|
}
|
|
117
|
-
var
|
|
118
|
-
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
},
|
|
118
|
+
var l = I[x] = { exports: {} };
|
|
119
|
+
b[x][0].call(l.exports, function(n) {
|
|
120
|
+
var o = b[x][1][n];
|
|
121
|
+
return m(o || n);
|
|
122
|
+
}, l, l.exports, t, b, I, u);
|
|
122
123
|
}
|
|
123
|
-
return
|
|
124
|
+
return I[x].exports;
|
|
124
125
|
}
|
|
125
|
-
for (var
|
|
126
|
-
return
|
|
126
|
+
for (var C = typeof he == "function" && he, p = 0; p < u.length; p++) m(u[p]);
|
|
127
|
+
return m;
|
|
127
128
|
}
|
|
128
129
|
return t;
|
|
129
130
|
}())({
|
|
130
|
-
1: [function(t,
|
|
131
|
-
var
|
|
132
|
-
function p(
|
|
133
|
-
var
|
|
134
|
-
return
|
|
131
|
+
1: [function(t, b, I) {
|
|
132
|
+
var u = {}, m = "(?:^|\\s)", C = "(?:\\s|$)";
|
|
133
|
+
function p(s) {
|
|
134
|
+
var y = u[s];
|
|
135
|
+
return y ? y.lastIndex = 0 : u[s] = y = new RegExp(m + s + C, "g"), y;
|
|
135
136
|
}
|
|
136
|
-
function x(
|
|
137
|
-
var
|
|
138
|
-
|
|
137
|
+
function x(s, y) {
|
|
138
|
+
var l = s.className;
|
|
139
|
+
l.length ? p(y).test(l) || (s.className += " " + y) : s.className = y;
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
141
|
+
function k(s, y) {
|
|
142
|
+
s.className = s.className.replace(p(y), " ").trim();
|
|
142
143
|
}
|
|
143
|
-
|
|
144
|
+
b.exports = {
|
|
144
145
|
add: x,
|
|
145
|
-
rm:
|
|
146
|
+
rm: k
|
|
146
147
|
};
|
|
147
148
|
}, {}],
|
|
148
|
-
2: [function(t,
|
|
149
|
-
(function(
|
|
150
|
-
var
|
|
151
|
-
function
|
|
152
|
-
var
|
|
153
|
-
|
|
154
|
-
var
|
|
155
|
-
M.moves === void 0 && (M.moves =
|
|
156
|
-
var G =
|
|
149
|
+
2: [function(t, b, I) {
|
|
150
|
+
(function(u) {
|
|
151
|
+
var m = t("contra/emitter"), C = t("crossvent"), p = t("./classes"), x = document, k = x.documentElement;
|
|
152
|
+
function s(r, U) {
|
|
153
|
+
var W = arguments.length;
|
|
154
|
+
W === 1 && Array.isArray(r) === !1 && (U = r, r = []);
|
|
155
|
+
var a, w, F, Y, J, Q, ee, L, ne, oe = null, fe, j, pe = !1, me = 0, K, M = U || {};
|
|
156
|
+
M.moves === void 0 && (M.moves = B), M.accepts === void 0 && (M.accepts = B), M.invalid === void 0 && (M.invalid = rt), M.containers === void 0 && (M.containers = r || []), M.isContainer === void 0 && (M.isContainer = d), M.copy === void 0 && (M.copy = !1), M.copySortSource === void 0 && (M.copySortSource = !1), M.revertOnSpill === void 0 && (M.revertOnSpill = !1), M.removeOnSpill === void 0 && (M.removeOnSpill = !1), M.direction === void 0 && (M.direction = "vertical"), M.ignoreInputTextSelection === void 0 && (M.ignoreInputTextSelection = !0), M.mirrorContainer === void 0 && (M.mirrorContainer = x.body);
|
|
157
|
+
var G = m({
|
|
157
158
|
containers: M.containers,
|
|
158
|
-
start:
|
|
159
|
-
end:
|
|
160
|
-
cancel:
|
|
161
|
-
remove:
|
|
162
|
-
destroy:
|
|
163
|
-
canMove:
|
|
159
|
+
start: ot,
|
|
160
|
+
end: Ve,
|
|
161
|
+
cancel: qe,
|
|
162
|
+
remove: Ue,
|
|
163
|
+
destroy: Re,
|
|
164
|
+
canMove: nt,
|
|
164
165
|
dragging: !1
|
|
165
166
|
});
|
|
166
|
-
return M.removeOnSpill === !0 && G.on("over",
|
|
167
|
-
function Ce(
|
|
168
|
-
return G.containers.indexOf(
|
|
167
|
+
return M.removeOnSpill === !0 && G.on("over", at).on("out", ct), ke(), G;
|
|
168
|
+
function Ce(e) {
|
|
169
|
+
return G.containers.indexOf(e) !== -1 || M.isContainer(e);
|
|
169
170
|
}
|
|
170
|
-
function
|
|
171
|
-
var
|
|
172
|
-
|
|
171
|
+
function ke(e) {
|
|
172
|
+
var f = e ? "remove" : "add";
|
|
173
|
+
n(k, f, "mousedown", et), n(k, f, "mouseup", we);
|
|
173
174
|
}
|
|
174
|
-
function De(
|
|
175
|
-
var
|
|
176
|
-
|
|
175
|
+
function De(e) {
|
|
176
|
+
var f = e ? "remove" : "add";
|
|
177
|
+
n(k, f, "mousemove", tt);
|
|
177
178
|
}
|
|
178
|
-
function
|
|
179
|
-
var
|
|
180
|
-
|
|
179
|
+
function _e(e) {
|
|
180
|
+
var f = e ? "remove" : "add";
|
|
181
|
+
C[f](k, "selectstart", Oe), C[f](k, "click", Oe);
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
-
|
|
183
|
+
function Re() {
|
|
184
|
+
ke(!0), we({});
|
|
184
185
|
}
|
|
185
|
-
function
|
|
186
|
-
|
|
186
|
+
function Oe(e) {
|
|
187
|
+
fe && e.preventDefault();
|
|
187
188
|
}
|
|
188
|
-
function
|
|
189
|
-
|
|
190
|
-
var
|
|
191
|
-
if (!
|
|
192
|
-
var v =
|
|
193
|
-
N && (
|
|
189
|
+
function et(e) {
|
|
190
|
+
Y = e.clientX, J = e.clientY;
|
|
191
|
+
var f = o(e) !== 1 || e.metaKey || e.ctrlKey;
|
|
192
|
+
if (!f) {
|
|
193
|
+
var v = e.target, N = be(v);
|
|
194
|
+
N && (fe = N, De(), e.type === "mousedown" && (i(v) ? v.focus() : e.preventDefault()));
|
|
194
195
|
}
|
|
195
196
|
}
|
|
196
|
-
function
|
|
197
|
-
if (
|
|
198
|
-
if (
|
|
197
|
+
function tt(e) {
|
|
198
|
+
if (fe) {
|
|
199
|
+
if (o(e) === 0) {
|
|
199
200
|
we({});
|
|
200
201
|
return;
|
|
201
202
|
}
|
|
202
|
-
if (!(
|
|
203
|
+
if (!(e.clientX !== void 0 && Math.abs(e.clientX - Y) <= (M.slideFactorX || 0) && e.clientY !== void 0 && Math.abs(e.clientY - J) <= (M.slideFactorY || 0))) {
|
|
203
204
|
if (M.ignoreInputTextSelection) {
|
|
204
|
-
var
|
|
205
|
+
var f = V("clientX", e) || 0, v = V("clientY", e) || 0, N = x.elementFromPoint(f, v);
|
|
205
206
|
if (i(N))
|
|
206
207
|
return;
|
|
207
208
|
}
|
|
208
|
-
var
|
|
209
|
-
De(!0),
|
|
209
|
+
var q = fe;
|
|
210
|
+
De(!0), _e(), Ve(), Le(q), p.add(L || F, "gu-transit"), ut(), lt(), me = 0, Ee(e);
|
|
210
211
|
}
|
|
211
212
|
}
|
|
212
213
|
}
|
|
213
|
-
function be(
|
|
214
|
-
if (!(G.dragging &&
|
|
215
|
-
for (var
|
|
216
|
-
if (M.invalid(
|
|
214
|
+
function be(e) {
|
|
215
|
+
if (!(G.dragging && a) && !Ce(e)) {
|
|
216
|
+
for (var f = e; D(e) && Ce(D(e)) === !1; )
|
|
217
|
+
if (M.invalid(e, f) || (e = D(e), !e))
|
|
217
218
|
return;
|
|
218
|
-
var v =
|
|
219
|
-
if (v && !M.invalid(
|
|
220
|
-
var N = M.moves(
|
|
219
|
+
var v = D(e);
|
|
220
|
+
if (v && !M.invalid(e, f)) {
|
|
221
|
+
var N = M.moves(e, v, f, h(e));
|
|
221
222
|
if (N)
|
|
222
223
|
return {
|
|
223
|
-
item:
|
|
224
|
+
item: e,
|
|
224
225
|
source: v
|
|
225
226
|
};
|
|
226
227
|
}
|
|
227
228
|
}
|
|
228
229
|
}
|
|
229
|
-
function
|
|
230
|
-
return !!be(
|
|
230
|
+
function nt(e) {
|
|
231
|
+
return !!be(e);
|
|
231
232
|
}
|
|
232
|
-
function
|
|
233
|
-
var
|
|
234
|
-
|
|
233
|
+
function ot(e) {
|
|
234
|
+
var f = be(e);
|
|
235
|
+
f && Le(f);
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
237
|
+
function Le(e) {
|
|
238
|
+
ht(e.item, e.source) && (L = e.item.cloneNode(!0), G.emit("cloned", L, e.item, "copy")), w = e.source, F = e.item, Q = ee = h(e.item), G.dragging = !0, G.emit("drag", F, w);
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
+
function rt() {
|
|
240
241
|
return !1;
|
|
241
242
|
}
|
|
242
|
-
function
|
|
243
|
+
function Ve() {
|
|
243
244
|
if (G.dragging) {
|
|
244
|
-
var
|
|
245
|
-
|
|
245
|
+
var e = L || F;
|
|
246
|
+
$e(e, D(e));
|
|
246
247
|
}
|
|
247
248
|
}
|
|
248
|
-
function
|
|
249
|
-
|
|
249
|
+
function je() {
|
|
250
|
+
fe = !1, De(!0), _e(!0);
|
|
250
251
|
}
|
|
251
|
-
function we(
|
|
252
|
-
if (
|
|
253
|
-
var
|
|
254
|
-
|
|
252
|
+
function we(e) {
|
|
253
|
+
if (je(), !!G.dragging) {
|
|
254
|
+
var f = L || F, v = V("clientX", e) || 0, N = V("clientY", e) || 0, q = g(a, v, N), H = He(q, v, N);
|
|
255
|
+
H && (L && M.copySortSource || !L || H !== w) ? $e(f, H) : M.removeOnSpill ? Ue() : qe();
|
|
255
256
|
}
|
|
256
257
|
}
|
|
257
|
-
function
|
|
258
|
-
var v =
|
|
259
|
-
|
|
258
|
+
function $e(e, f) {
|
|
259
|
+
var v = D(e);
|
|
260
|
+
L && M.copySortSource && f === w && v.removeChild(F), Te(f) ? G.emit("cancel", e, w) : G.emit("drop", e, f, w, ee), Se();
|
|
260
261
|
}
|
|
261
|
-
function
|
|
262
|
+
function Ue() {
|
|
262
263
|
if (G.dragging) {
|
|
263
|
-
var
|
|
264
|
-
|
|
264
|
+
var e = L || F, f = D(e);
|
|
265
|
+
f && f.removeChild(e), G.emit(L ? "cancel" : "remove", e, f, w), Se();
|
|
265
266
|
}
|
|
266
267
|
}
|
|
267
|
-
function
|
|
268
|
+
function qe(e) {
|
|
268
269
|
if (G.dragging) {
|
|
269
|
-
var
|
|
270
|
-
|
|
270
|
+
var f = arguments.length > 0 ? e : M.revertOnSpill, v = L || F, N = D(v), q = Te(N);
|
|
271
|
+
q === !1 && f && (L ? N && N.removeChild(L) : w.insertBefore(v, Q)), q || f ? G.emit("cancel", v, w, w) : G.emit("drop", v, N, w, ee), Se();
|
|
271
272
|
}
|
|
272
273
|
}
|
|
273
274
|
function Se() {
|
|
274
|
-
var
|
|
275
|
-
|
|
275
|
+
var e = L || F;
|
|
276
|
+
je(), st(), ft(), e && p.rm(e, "gu-transit"), ne && clearTimeout(ne), G.dragging = !1, oe && G.emit("out", e, oe, w), G.emit("dragend", e, me), w = F = L = Q = ee = ne = oe = null;
|
|
276
277
|
}
|
|
277
|
-
function Te(
|
|
278
|
+
function Te(e, f) {
|
|
278
279
|
var v;
|
|
279
|
-
return
|
|
280
|
+
return f !== void 0 ? v = f : a ? v = ee : v = h(L || F), e === w && v === Q;
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
-
for (var N =
|
|
283
|
-
N =
|
|
282
|
+
function He(e, f, v) {
|
|
283
|
+
for (var N = e; N && !q(); )
|
|
284
|
+
N = D(N);
|
|
284
285
|
return N;
|
|
285
|
-
function
|
|
286
|
-
var
|
|
287
|
-
if (
|
|
286
|
+
function q() {
|
|
287
|
+
var H = Ce(N);
|
|
288
|
+
if (H === !1)
|
|
288
289
|
return !1;
|
|
289
|
-
var
|
|
290
|
-
return
|
|
290
|
+
var ce = Xe(N, e), te = We(N, ce, f, v), ie = Te(N, te);
|
|
291
|
+
return ie ? !0 : M.accepts(F, N, w, te);
|
|
291
292
|
}
|
|
292
293
|
}
|
|
293
|
-
function Ee(
|
|
294
|
-
if (!
|
|
294
|
+
function Ee(e) {
|
|
295
|
+
if (!a)
|
|
295
296
|
return;
|
|
296
|
-
|
|
297
|
-
var
|
|
298
|
-
|
|
299
|
-
var N =
|
|
300
|
-
(
|
|
301
|
-
var
|
|
302
|
-
if (
|
|
303
|
-
|
|
297
|
+
e.preventDefault();
|
|
298
|
+
var f = V("clientX", e) || 0, v = V("clientY", e) || 0;
|
|
299
|
+
a.style.left = f - 2 + "px", a.style.top = v - 2 + "px";
|
|
300
|
+
var N = L || F, q = g(a, f, v), H = He(q, f, v), ce = H !== null && H !== oe;
|
|
301
|
+
(ce || H === null) && (re(), oe = H, ue()), gt(q, v);
|
|
302
|
+
var te = D(N);
|
|
303
|
+
if (H === w && L && !M.copySortSource) {
|
|
304
|
+
te && te.removeChild(N);
|
|
304
305
|
return;
|
|
305
306
|
}
|
|
306
|
-
var
|
|
307
|
-
if (
|
|
308
|
-
|
|
309
|
-
else if (M.revertOnSpill === !0 &&
|
|
310
|
-
|
|
307
|
+
var ie, le = Xe(H, q);
|
|
308
|
+
if (pe = pt(le, H), le !== null)
|
|
309
|
+
ie = We(H, le, f, v);
|
|
310
|
+
else if (M.revertOnSpill === !0 && !L)
|
|
311
|
+
ie = Q, H = w;
|
|
311
312
|
else {
|
|
312
|
-
|
|
313
|
+
L && te && te.removeChild(N), L && j && (j.style.display = "none");
|
|
313
314
|
return;
|
|
314
315
|
}
|
|
315
|
-
|
|
316
|
+
j.style.display = "block", it(ie, N, ce), ie ? dt(le, ie) : vt(H);
|
|
316
317
|
function Z(R) {
|
|
317
|
-
G.emit(R, N,
|
|
318
|
+
G.emit(R, N, oe, w);
|
|
318
319
|
}
|
|
319
|
-
function
|
|
320
|
-
|
|
320
|
+
function ue() {
|
|
321
|
+
ce && Z("over");
|
|
321
322
|
}
|
|
322
|
-
function
|
|
323
|
-
|
|
323
|
+
function re() {
|
|
324
|
+
oe && Z("out");
|
|
324
325
|
}
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
-
(
|
|
327
|
+
function it(e, f, v) {
|
|
328
|
+
(e === f || e === h(f)) && (ee = h(f)), (e === null && v || e !== f && e !== h(f)) && (ee = e);
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
-
p.rm(
|
|
330
|
+
function at(e) {
|
|
331
|
+
p.rm(e, "gu-hide");
|
|
331
332
|
}
|
|
332
|
-
function
|
|
333
|
-
G.dragging && p.add(
|
|
334
|
-
}
|
|
335
|
-
function ct() {
|
|
336
|
-
d || (d = document.createElement("div"), d.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;", d.innerHTML = M.getMirrorText && M.getMirrorText(k) || "控件", p.add(d, "gu-mirror"), M.mirrorContainer.appendChild(d), o(C, "add", "mousemove", Ee), p.add(M.mirrorContainer, "gu-unselectable"), G.emit("cloned", d, k, "mirror"));
|
|
333
|
+
function ct(e) {
|
|
334
|
+
G.dragging && p.add(e, "gu-hide");
|
|
337
335
|
}
|
|
338
336
|
function lt() {
|
|
339
|
-
|
|
340
|
-
var n = k.getBoundingClientRect();
|
|
341
|
-
O.style.left = n.left + "px", O.style.top = n.top + "px";
|
|
342
|
-
}
|
|
343
|
-
fe = !1, M.mirrorContainer.appendChild(O);
|
|
337
|
+
a || (a = document.createElement("div"), a.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;", a.innerHTML = M.getMirrorText && M.getMirrorText(F) || "控件", p.add(a, "gu-mirror"), M.mirrorContainer.appendChild(a), n(k, "add", "mousemove", Ee), p.add(M.mirrorContainer, "gu-unselectable"), G.emit("cloned", a, F, "mirror"));
|
|
344
338
|
}
|
|
345
339
|
function ut() {
|
|
346
|
-
|
|
340
|
+
if (j = document.createElement("div"), p.add(j, "gu-insertion"), F) {
|
|
341
|
+
var e = F.getBoundingClientRect();
|
|
342
|
+
j.style.left = e.left + "px", j.style.top = e.top + "px";
|
|
343
|
+
}
|
|
344
|
+
pe = !1, M.mirrorContainer.appendChild(j);
|
|
347
345
|
}
|
|
348
346
|
function st() {
|
|
349
|
-
|
|
347
|
+
a && (p.rm(M.mirrorContainer, "gu-unselectable"), n(k, "remove", "mousemove", Ee), D(a).removeChild(a), a = null);
|
|
350
348
|
}
|
|
351
|
-
function
|
|
352
|
-
|
|
353
|
-
v = y(v);
|
|
354
|
-
return v === C ? null : v;
|
|
349
|
+
function ft() {
|
|
350
|
+
j && (D(j).removeChild(j), j = null);
|
|
355
351
|
}
|
|
356
|
-
function
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
352
|
+
function Xe(e, f) {
|
|
353
|
+
for (var v = f; v !== e && D(v) !== e; )
|
|
354
|
+
v = D(v);
|
|
355
|
+
return v === k ? null : v;
|
|
356
|
+
}
|
|
357
|
+
function pt(e, f) {
|
|
358
|
+
if (!f)
|
|
359
|
+
return pe;
|
|
360
|
+
var v = e || f && f.lastElementChild;
|
|
360
361
|
if (!v)
|
|
361
362
|
return !0;
|
|
362
|
-
var N = getComputedStyle(
|
|
363
|
-
if (
|
|
363
|
+
var N = getComputedStyle(e), q = /^inline/.test(N.getPropertyValue("display")) || /^(left|right)$/.test(N.getPropertyValue("float"));
|
|
364
|
+
if (q)
|
|
364
365
|
return !0;
|
|
365
|
-
if (
|
|
366
|
-
var
|
|
367
|
-
if (/flex$/.test(
|
|
368
|
-
var
|
|
369
|
-
if (
|
|
370
|
-
return !
|
|
366
|
+
if (f) {
|
|
367
|
+
var H = getComputedStyle(f), ce = H.getPropertyValue("display");
|
|
368
|
+
if (/flex$/.test(ce)) {
|
|
369
|
+
var te = H.getPropertyValue("flex-direction") || "row";
|
|
370
|
+
if (te === "row" || te === "row-reverse")
|
|
371
|
+
return !mt(f);
|
|
371
372
|
}
|
|
372
373
|
return !1;
|
|
373
374
|
}
|
|
374
375
|
return !0;
|
|
375
376
|
}
|
|
376
|
-
function
|
|
377
|
-
if (!
|
|
377
|
+
function mt(e) {
|
|
378
|
+
if (!e.children || !e.children.length)
|
|
378
379
|
return !1;
|
|
379
|
-
for (const
|
|
380
|
-
const N = (
|
|
380
|
+
for (const f of Array.from(e.children)) {
|
|
381
|
+
const N = (f.className && f.className.split(" ") || []).filter((q) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(q));
|
|
381
382
|
if (!N.length)
|
|
382
383
|
return !1;
|
|
383
|
-
for (const
|
|
384
|
-
const
|
|
385
|
-
if (parseInt(
|
|
384
|
+
for (const q of N) {
|
|
385
|
+
const H = q.slice(q.lastIndexOf("-") + 1);
|
|
386
|
+
if (parseInt(H, 10) !== 12)
|
|
386
387
|
return !1;
|
|
387
388
|
}
|
|
388
389
|
}
|
|
389
390
|
return !0;
|
|
390
391
|
}
|
|
391
|
-
function
|
|
392
|
-
const v =
|
|
393
|
-
if (
|
|
394
|
-
if (
|
|
395
|
-
const N =
|
|
396
|
-
N.top !== v.top && (
|
|
392
|
+
function dt(e, f) {
|
|
393
|
+
const v = f.getBoundingClientRect();
|
|
394
|
+
if (j.style.left = v.left + "px", j.style.top = v.top + "px", pe) {
|
|
395
|
+
if (j.style.height = v.height + "px", j.style.width = "4px", e) {
|
|
396
|
+
const N = e.getBoundingClientRect();
|
|
397
|
+
N.top !== v.top && (j.style.left = N.right + "px", j.style.top = N.top + "px", j.style.height = N.height + "px");
|
|
397
398
|
}
|
|
398
|
-
} else if (
|
|
399
|
+
} else if (j.style.height = "4px", j.style.width = v.width + "px", K) {
|
|
399
400
|
const N = K.getBoundingClientRect();
|
|
400
|
-
v.top < N.top && (
|
|
401
|
+
v.top < N.top && (j.style.display = "none");
|
|
401
402
|
}
|
|
402
|
-
|
|
403
|
+
f === F && F && (j.style.display = "none");
|
|
403
404
|
}
|
|
404
|
-
function
|
|
405
|
-
|
|
406
|
-
var
|
|
407
|
-
if (
|
|
408
|
-
var v =
|
|
409
|
-
|
|
405
|
+
function vt(e) {
|
|
406
|
+
ee = null;
|
|
407
|
+
var f = e.lastElementChild;
|
|
408
|
+
if (f) {
|
|
409
|
+
var v = f.getBoundingClientRect();
|
|
410
|
+
pe ? (j.style.left = v.right + "px", j.style.top = v.top + "px", j.style.height = v.height + "px", j.style.width = "4px") : (j.style.left = v.left + "px", j.style.top = v.bottom + "px", j.style.height = "4px", j.style.width = v.width + "px"), f === F && F && (j.style.display = "none");
|
|
410
411
|
} else
|
|
411
|
-
|
|
412
|
+
j.style.display = "none";
|
|
412
413
|
}
|
|
413
|
-
function
|
|
414
|
-
if (!M.mirrorContainer.contains(
|
|
414
|
+
function gt(e, f) {
|
|
415
|
+
if (!M.mirrorContainer.contains(e) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (K = y(e), !K || !K.contains(e)))
|
|
415
416
|
return;
|
|
416
417
|
const v = document.querySelector(".dgComponentSelected"), N = K.getBoundingClientRect();
|
|
417
|
-
if (
|
|
418
|
-
let
|
|
419
|
-
K.scrollBy(0, -1 *
|
|
418
|
+
if (f - 30 < N.top && K.scrollTop > 0) {
|
|
419
|
+
let q = K.scrollTop < 10 ? K.scrollTop : 10;
|
|
420
|
+
K.scrollBy(0, -1 * q), v && K.contains(v) && (me = me + -1 * q);
|
|
420
421
|
}
|
|
421
|
-
if (
|
|
422
|
-
const
|
|
423
|
-
let
|
|
424
|
-
K.scrollBy(0,
|
|
422
|
+
if (f + 30 > N.bottom && K.scrollTop < K.scrollHeight - K.clientHeight) {
|
|
423
|
+
const q = K.scrollHeight - K.clientHeight - K.scrollTop;
|
|
424
|
+
let H = q < 10 ? q : 10;
|
|
425
|
+
K.scrollBy(0, H), v && K.contains(v) && (me = me + H);
|
|
425
426
|
}
|
|
426
427
|
}
|
|
427
|
-
function
|
|
428
|
-
var
|
|
429
|
-
return
|
|
430
|
-
function
|
|
431
|
-
var Z =
|
|
432
|
-
for (
|
|
433
|
-
if (
|
|
434
|
-
return
|
|
428
|
+
function We(e, f, v, N) {
|
|
429
|
+
var q = M.direction === "horizontal", H = M.direction === "mixed", ce = f !== e ? ie() : te();
|
|
430
|
+
return ce;
|
|
431
|
+
function te() {
|
|
432
|
+
var Z = e.children.length, ue, re, R;
|
|
433
|
+
for (ue = 0; ue < Z; ue++)
|
|
434
|
+
if (re = e.children[ue], R = re.getBoundingClientRect(), q && R.left + R.width / 2 > v || !H && !q && R.top + R.height / 2 > N || H && R.left + R.width > v && R.top + R.height > N)
|
|
435
|
+
return re;
|
|
435
436
|
return null;
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
-
var Z =
|
|
439
|
-
if (
|
|
440
|
-
var
|
|
441
|
-
return
|
|
438
|
+
function ie() {
|
|
439
|
+
var Z = f.getBoundingClientRect();
|
|
440
|
+
if (H) {
|
|
441
|
+
var ue = N - Z.top, re = v - Z.left, R = Z.bottom - N, Fe = Z.right - v, Pe = Math.min(re, Fe, ue, R), Ie;
|
|
442
|
+
return pe ? Ie = Fe < re : Ie = R === Pe || Fe === Pe || re === Pe, le(Ie);
|
|
442
443
|
}
|
|
443
|
-
return
|
|
444
|
+
return le(q ? v > Z.left + O(Z) / 2 : N > Z.top + _(Z) / 2);
|
|
444
445
|
}
|
|
445
|
-
function
|
|
446
|
-
return Z ?
|
|
446
|
+
function le(Z) {
|
|
447
|
+
return Z ? h(f) : f;
|
|
447
448
|
}
|
|
448
449
|
}
|
|
449
|
-
function
|
|
450
|
-
return typeof M.copy == "boolean" ? M.copy : M.copy(
|
|
450
|
+
function ht(e, f) {
|
|
451
|
+
return typeof M.copy == "boolean" ? M.copy : M.copy(e, f);
|
|
451
452
|
}
|
|
452
453
|
}
|
|
453
|
-
function
|
|
454
|
-
const
|
|
455
|
-
if (
|
|
456
|
-
const
|
|
457
|
-
return document.getElementById(
|
|
454
|
+
function y(r) {
|
|
455
|
+
const U = Array.from(window.scrollContainerList);
|
|
456
|
+
if (U.length === 1) {
|
|
457
|
+
const a = Array.from(window.scrollContainerList)[0];
|
|
458
|
+
return document.getElementById(a);
|
|
458
459
|
}
|
|
459
|
-
const
|
|
460
|
-
for (const
|
|
461
|
-
if (
|
|
462
|
-
return
|
|
460
|
+
const W = l(U);
|
|
461
|
+
for (const a of W)
|
|
462
|
+
if (a.contains(r))
|
|
463
|
+
return a;
|
|
463
464
|
return null;
|
|
464
465
|
}
|
|
465
|
-
function
|
|
466
|
-
const
|
|
467
|
-
return r.forEach((
|
|
468
|
-
const
|
|
469
|
-
|
|
470
|
-
}),
|
|
466
|
+
function l(r) {
|
|
467
|
+
const U = [];
|
|
468
|
+
return r.forEach((W) => {
|
|
469
|
+
const a = document.getElementById(W);
|
|
470
|
+
a && U.push(a);
|
|
471
|
+
}), U.sort((W, a) => W.contains(a) ? 1 : a.contains(W) ? -1 : 0), U;
|
|
471
472
|
}
|
|
472
|
-
function
|
|
473
|
-
var
|
|
473
|
+
function n(r, U, W, a) {
|
|
474
|
+
var w = {
|
|
474
475
|
mouseup: "touchend",
|
|
475
476
|
mousedown: "touchstart",
|
|
476
477
|
mousemove: "touchmove"
|
|
477
|
-
},
|
|
478
|
+
}, F = {
|
|
478
479
|
mouseup: "pointerup",
|
|
479
480
|
mousedown: "pointerdown",
|
|
480
481
|
mousemove: "pointermove"
|
|
481
|
-
},
|
|
482
|
+
}, Y = {
|
|
482
483
|
mouseup: "MSPointerUp",
|
|
483
484
|
mousedown: "MSPointerDown",
|
|
484
485
|
mousemove: "MSPointerMove"
|
|
485
486
|
};
|
|
486
|
-
|
|
487
|
+
u.navigator.pointerEnabled ? C[U](r, F[W], a) : u.navigator.msPointerEnabled ? C[U](r, Y[W], a) : (C[U](r, w[W], a), C[U](r, W, a));
|
|
487
488
|
}
|
|
488
|
-
function
|
|
489
|
+
function o(r) {
|
|
489
490
|
if (r.touches !== void 0)
|
|
490
491
|
return r.touches.length;
|
|
491
492
|
if (r.which !== void 0 && r.which !== 0)
|
|
492
493
|
return r.which;
|
|
493
494
|
if (r.buttons !== void 0)
|
|
494
495
|
return r.buttons;
|
|
495
|
-
var
|
|
496
|
-
if (
|
|
497
|
-
return
|
|
496
|
+
var U = r.button;
|
|
497
|
+
if (U !== void 0)
|
|
498
|
+
return U & 1 ? 1 : U & 2 ? 3 : U & 4 ? 2 : 0;
|
|
498
499
|
}
|
|
499
|
-
function g(r,
|
|
500
|
+
function g(r, U, W) {
|
|
500
501
|
r = r || {};
|
|
501
|
-
var
|
|
502
|
-
return r.className += " gu-hide",
|
|
502
|
+
var a = r.className || "", w;
|
|
503
|
+
return r.className += " gu-hide", w = x.elementFromPoint(U, W), r.className = a, w;
|
|
503
504
|
}
|
|
504
|
-
function
|
|
505
|
+
function d() {
|
|
505
506
|
return !1;
|
|
506
507
|
}
|
|
507
|
-
function
|
|
508
|
+
function B() {
|
|
508
509
|
return !0;
|
|
509
510
|
}
|
|
510
|
-
function
|
|
511
|
+
function O(r) {
|
|
511
512
|
return r.width || r.right - r.left;
|
|
512
513
|
}
|
|
513
514
|
function _(r) {
|
|
514
515
|
return r.height || r.bottom - r.top;
|
|
515
516
|
}
|
|
516
|
-
function
|
|
517
|
+
function D(r) {
|
|
517
518
|
return r.parentNode === x ? null : r.parentNode;
|
|
518
519
|
}
|
|
519
520
|
function i(r) {
|
|
520
|
-
return r.tagName === "INPUT" || r.tagName === "TEXTAREA" || r.tagName === "SELECT" ||
|
|
521
|
+
return r.tagName === "INPUT" || r.tagName === "TEXTAREA" || r.tagName === "SELECT" || E(r);
|
|
521
522
|
}
|
|
522
|
-
function
|
|
523
|
-
return !r || r.contentEditable === "false" ? !1 : r.contentEditable === "true" ? !0 :
|
|
523
|
+
function E(r) {
|
|
524
|
+
return !r || r.contentEditable === "false" ? !1 : r.contentEditable === "true" ? !0 : E(D(r));
|
|
524
525
|
}
|
|
525
|
-
function
|
|
526
|
-
return r.nextElementSibling ||
|
|
527
|
-
function
|
|
528
|
-
var
|
|
526
|
+
function h(r) {
|
|
527
|
+
return r.nextElementSibling || U();
|
|
528
|
+
function U() {
|
|
529
|
+
var W = r;
|
|
529
530
|
do
|
|
530
|
-
|
|
531
|
-
while (
|
|
532
|
-
return
|
|
531
|
+
W = W.nextSibling;
|
|
532
|
+
while (W && W.nodeType !== 1);
|
|
533
|
+
return W;
|
|
533
534
|
}
|
|
534
535
|
}
|
|
535
|
-
function
|
|
536
|
+
function $(r) {
|
|
536
537
|
return r.targetTouches && r.targetTouches.length ? r.targetTouches[0] : r.changedTouches && r.changedTouches.length ? r.changedTouches[0] : r;
|
|
537
538
|
}
|
|
538
|
-
function
|
|
539
|
-
var
|
|
539
|
+
function V(r, U) {
|
|
540
|
+
var W = $(U), a = {
|
|
540
541
|
pageX: "clientX",
|
|
541
542
|
// IE8
|
|
542
543
|
pageY: "clientY"
|
|
543
544
|
// IE8
|
|
544
545
|
};
|
|
545
|
-
return r in
|
|
546
|
+
return r in a && !(r in W) && a[r] in W && (r = a[r]), W[r];
|
|
546
547
|
}
|
|
547
|
-
|
|
548
|
-
}).call(this, typeof
|
|
548
|
+
b.exports = s;
|
|
549
|
+
}).call(this, typeof se < "u" ? se : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
549
550
|
}, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
|
|
550
|
-
3: [function(t,
|
|
551
|
-
|
|
552
|
-
return Array.prototype.slice.call(
|
|
551
|
+
3: [function(t, b, I) {
|
|
552
|
+
b.exports = function(m, C) {
|
|
553
|
+
return Array.prototype.slice.call(m, C);
|
|
553
554
|
};
|
|
554
555
|
}, {}],
|
|
555
|
-
4: [function(t,
|
|
556
|
-
var
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
556
|
+
4: [function(t, b, I) {
|
|
557
|
+
var u = t("ticky");
|
|
558
|
+
b.exports = function(C, p, x) {
|
|
559
|
+
C && u(function() {
|
|
560
|
+
C.apply(x || null, p || []);
|
|
560
561
|
});
|
|
561
562
|
};
|
|
562
563
|
}, { ticky: 10 }],
|
|
563
|
-
5: [function(t,
|
|
564
|
-
var
|
|
565
|
-
|
|
566
|
-
var
|
|
567
|
-
return p === void 0 && (p = {}), p.on = function(
|
|
568
|
-
return
|
|
569
|
-
}, p.once = function(
|
|
570
|
-
return
|
|
571
|
-
}, p.off = function(
|
|
572
|
-
var
|
|
573
|
-
if (
|
|
574
|
-
delete
|
|
575
|
-
else if (
|
|
576
|
-
|
|
564
|
+
5: [function(t, b, I) {
|
|
565
|
+
var u = t("atoa"), m = t("./debounce");
|
|
566
|
+
b.exports = function(p, x) {
|
|
567
|
+
var k = x || {}, s = {};
|
|
568
|
+
return p === void 0 && (p = {}), p.on = function(y, l) {
|
|
569
|
+
return s[y] ? s[y].push(l) : s[y] = [l], p;
|
|
570
|
+
}, p.once = function(y, l) {
|
|
571
|
+
return l._once = !0, p.on(y, l), p;
|
|
572
|
+
}, p.off = function(y, l) {
|
|
573
|
+
var n = arguments.length;
|
|
574
|
+
if (n === 1)
|
|
575
|
+
delete s[y];
|
|
576
|
+
else if (n === 0)
|
|
577
|
+
s = {};
|
|
577
578
|
else {
|
|
578
|
-
var
|
|
579
|
-
if (!
|
|
579
|
+
var o = s[y];
|
|
580
|
+
if (!o)
|
|
580
581
|
return p;
|
|
581
|
-
|
|
582
|
+
o.splice(o.indexOf(l), 1);
|
|
582
583
|
}
|
|
583
584
|
return p;
|
|
584
585
|
}, p.emit = function() {
|
|
585
|
-
var
|
|
586
|
-
return p.emitterSnapshot(
|
|
587
|
-
}, p.emitterSnapshot = function(
|
|
588
|
-
var
|
|
586
|
+
var y = u(arguments);
|
|
587
|
+
return p.emitterSnapshot(y.shift()).apply(this, y);
|
|
588
|
+
}, p.emitterSnapshot = function(y) {
|
|
589
|
+
var l = (s[y] || []).slice(0);
|
|
589
590
|
return function() {
|
|
590
|
-
var
|
|
591
|
-
if (
|
|
592
|
-
throw
|
|
593
|
-
return
|
|
594
|
-
|
|
591
|
+
var n = u(arguments), o = this || p;
|
|
592
|
+
if (y === "error" && k.throws !== !1 && !l.length)
|
|
593
|
+
throw n.length === 1 ? n[0] : n;
|
|
594
|
+
return l.forEach(function(d) {
|
|
595
|
+
k.async ? m(d, n, o) : d.apply(o, n), d._once && p.off(y, d);
|
|
595
596
|
}), p;
|
|
596
597
|
};
|
|
597
598
|
}, p;
|
|
598
599
|
};
|
|
599
600
|
}, { "./debounce": 4, atoa: 3 }],
|
|
600
|
-
6: [function(t,
|
|
601
|
-
(function(
|
|
602
|
-
var
|
|
603
|
-
|
|
601
|
+
6: [function(t, b, I) {
|
|
602
|
+
(function(u) {
|
|
603
|
+
var m = t("custom-event"), C = t("./eventmap"), p = u.document, x = y, k = n, s = [];
|
|
604
|
+
u.addEventListener || (x = l, k = o), b.exports = {
|
|
604
605
|
add: x,
|
|
605
|
-
remove:
|
|
606
|
+
remove: k,
|
|
606
607
|
fabricate: g
|
|
607
608
|
};
|
|
608
|
-
function
|
|
609
|
-
return
|
|
609
|
+
function y(D, i, E, h) {
|
|
610
|
+
return D.addEventListener(i, E, h);
|
|
610
611
|
}
|
|
611
|
-
function
|
|
612
|
-
return
|
|
612
|
+
function l(D, i, E) {
|
|
613
|
+
return D.attachEvent("on" + i, B(D, i, E));
|
|
613
614
|
}
|
|
614
|
-
function
|
|
615
|
-
return
|
|
615
|
+
function n(D, i, E, h) {
|
|
616
|
+
return D.removeEventListener(i, E, h);
|
|
616
617
|
}
|
|
617
|
-
function
|
|
618
|
-
var
|
|
619
|
-
if (
|
|
620
|
-
return
|
|
618
|
+
function o(D, i, E) {
|
|
619
|
+
var h = O(D, i, E);
|
|
620
|
+
if (h)
|
|
621
|
+
return D.detachEvent("on" + i, h);
|
|
621
622
|
}
|
|
622
|
-
function g(
|
|
623
|
-
var
|
|
624
|
-
|
|
625
|
-
function
|
|
623
|
+
function g(D, i, E) {
|
|
624
|
+
var h = C.indexOf(i) === -1 ? V() : $();
|
|
625
|
+
D.dispatchEvent ? D.dispatchEvent(h) : D.fireEvent("on" + i, h);
|
|
626
|
+
function $() {
|
|
626
627
|
var r;
|
|
627
628
|
return p.createEvent ? (r = p.createEvent("Event"), r.initEvent(i, !0, !0)) : p.createEventObject && (r = p.createEventObject()), r;
|
|
628
629
|
}
|
|
629
|
-
function
|
|
630
|
-
return new
|
|
630
|
+
function V() {
|
|
631
|
+
return new m(i, { detail: E });
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
|
-
function
|
|
634
|
-
return function(
|
|
635
|
-
var
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
},
|
|
639
|
-
|
|
640
|
-
},
|
|
634
|
+
function d(D, i, E) {
|
|
635
|
+
return function($) {
|
|
636
|
+
var V = $ || u.event;
|
|
637
|
+
V.target = V.target || V.srcElement, V.preventDefault = V.preventDefault || function() {
|
|
638
|
+
V.returnValue = !1;
|
|
639
|
+
}, V.stopPropagation = V.stopPropagation || function() {
|
|
640
|
+
V.cancelBubble = !0;
|
|
641
|
+
}, V.which = V.which || V.keyCode, E.call(D, V);
|
|
641
642
|
};
|
|
642
643
|
}
|
|
643
|
-
function
|
|
644
|
-
var
|
|
645
|
-
return
|
|
646
|
-
wrapper:
|
|
647
|
-
element:
|
|
644
|
+
function B(D, i, E) {
|
|
645
|
+
var h = O(D, i, E) || d(D, i, E);
|
|
646
|
+
return s.push({
|
|
647
|
+
wrapper: h,
|
|
648
|
+
element: D,
|
|
648
649
|
type: i,
|
|
649
|
-
fn:
|
|
650
|
-
}),
|
|
650
|
+
fn: E
|
|
651
|
+
}), h;
|
|
651
652
|
}
|
|
652
|
-
function
|
|
653
|
-
var
|
|
654
|
-
if (
|
|
655
|
-
var
|
|
656
|
-
return
|
|
653
|
+
function O(D, i, E) {
|
|
654
|
+
var h = _(D, i, E);
|
|
655
|
+
if (h) {
|
|
656
|
+
var $ = s[h].wrapper;
|
|
657
|
+
return s.splice(h, 1), $;
|
|
657
658
|
}
|
|
658
659
|
}
|
|
659
|
-
function _(
|
|
660
|
-
var
|
|
661
|
-
for (
|
|
662
|
-
if (
|
|
663
|
-
return
|
|
660
|
+
function _(D, i, E) {
|
|
661
|
+
var h, $;
|
|
662
|
+
for (h = 0; h < s.length; h++)
|
|
663
|
+
if ($ = s[h], $.element === D && $.type === i && $.fn === E)
|
|
664
|
+
return h;
|
|
664
665
|
}
|
|
665
|
-
}).call(this, typeof
|
|
666
|
+
}).call(this, typeof se < "u" ? se : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
666
667
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
667
|
-
7: [function(t,
|
|
668
|
-
(function(
|
|
669
|
-
var
|
|
670
|
-
for (
|
|
671
|
-
p.test(
|
|
672
|
-
|
|
673
|
-
}).call(this, typeof
|
|
668
|
+
7: [function(t, b, I) {
|
|
669
|
+
(function(u) {
|
|
670
|
+
var m = [], C = "", p = /^on/;
|
|
671
|
+
for (C in u)
|
|
672
|
+
p.test(C) && m.push(C.slice(2));
|
|
673
|
+
b.exports = m;
|
|
674
|
+
}).call(this, typeof se < "u" ? se : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
674
675
|
}, {}],
|
|
675
|
-
8: [function(t,
|
|
676
|
-
(function(
|
|
677
|
-
var
|
|
678
|
-
function
|
|
676
|
+
8: [function(t, b, I) {
|
|
677
|
+
(function(u) {
|
|
678
|
+
var m = u.CustomEvent;
|
|
679
|
+
function C() {
|
|
679
680
|
try {
|
|
680
|
-
var p = new
|
|
681
|
+
var p = new m("cat", { detail: { foo: "bar" } });
|
|
681
682
|
return p.type === "cat" && p.detail.foo === "bar";
|
|
682
683
|
} catch {
|
|
683
684
|
}
|
|
684
685
|
return !1;
|
|
685
686
|
}
|
|
686
|
-
|
|
687
|
+
b.exports = C() ? m : (
|
|
687
688
|
// IE >= 9
|
|
688
|
-
typeof document < "u" && typeof document.createEvent == "function" ? function(x,
|
|
689
|
-
var
|
|
690
|
-
return
|
|
689
|
+
typeof document < "u" && typeof document.createEvent == "function" ? function(x, k) {
|
|
690
|
+
var s = document.createEvent("CustomEvent");
|
|
691
|
+
return k ? s.initCustomEvent(x, k.bubbles, k.cancelable, k.detail) : s.initCustomEvent(x, !1, !1, void 0), s;
|
|
691
692
|
} : (
|
|
692
693
|
// IE <= 8
|
|
693
|
-
function(x,
|
|
694
|
-
var
|
|
695
|
-
return
|
|
694
|
+
function(x, k) {
|
|
695
|
+
var s = document.createEventObject();
|
|
696
|
+
return s.type = x, k ? (s.bubbles = !!k.bubbles, s.cancelable = !!k.cancelable, s.detail = k.detail) : (s.bubbles = !1, s.cancelable = !1, s.detail = void 0), s;
|
|
696
697
|
}
|
|
697
698
|
)
|
|
698
699
|
);
|
|
699
|
-
}).call(this, typeof
|
|
700
|
+
}).call(this, typeof se < "u" ? se : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
700
701
|
}, {}],
|
|
701
|
-
9: [function(t,
|
|
702
|
-
var
|
|
702
|
+
9: [function(t, b, I) {
|
|
703
|
+
var u = b.exports = {}, m, C;
|
|
703
704
|
function p() {
|
|
704
705
|
throw new Error("setTimeout has not been defined");
|
|
705
706
|
}
|
|
@@ -708,255 +709,256 @@ var Ke = { exports: {} };
|
|
|
708
709
|
}
|
|
709
710
|
(function() {
|
|
710
711
|
try {
|
|
711
|
-
typeof setTimeout == "function" ?
|
|
712
|
+
typeof setTimeout == "function" ? m = setTimeout : m = p;
|
|
712
713
|
} catch {
|
|
713
|
-
|
|
714
|
+
m = p;
|
|
714
715
|
}
|
|
715
716
|
try {
|
|
716
|
-
typeof clearTimeout == "function" ?
|
|
717
|
+
typeof clearTimeout == "function" ? C = clearTimeout : C = x;
|
|
717
718
|
} catch {
|
|
718
|
-
|
|
719
|
+
C = x;
|
|
719
720
|
}
|
|
720
721
|
})();
|
|
721
|
-
function
|
|
722
|
-
if (
|
|
722
|
+
function k(_) {
|
|
723
|
+
if (m === setTimeout)
|
|
723
724
|
return setTimeout(_, 0);
|
|
724
|
-
if ((
|
|
725
|
-
return
|
|
725
|
+
if ((m === p || !m) && setTimeout)
|
|
726
|
+
return m = setTimeout, setTimeout(_, 0);
|
|
726
727
|
try {
|
|
727
|
-
return
|
|
728
|
+
return m(_, 0);
|
|
728
729
|
} catch {
|
|
729
730
|
try {
|
|
730
|
-
return
|
|
731
|
+
return m.call(null, _, 0);
|
|
731
732
|
} catch {
|
|
732
|
-
return
|
|
733
|
+
return m.call(this, _, 0);
|
|
733
734
|
}
|
|
734
735
|
}
|
|
735
736
|
}
|
|
736
|
-
function
|
|
737
|
-
if (
|
|
737
|
+
function s(_) {
|
|
738
|
+
if (C === clearTimeout)
|
|
738
739
|
return clearTimeout(_);
|
|
739
|
-
if ((
|
|
740
|
-
return
|
|
740
|
+
if ((C === x || !C) && clearTimeout)
|
|
741
|
+
return C = clearTimeout, clearTimeout(_);
|
|
741
742
|
try {
|
|
742
|
-
return
|
|
743
|
+
return C(_);
|
|
743
744
|
} catch {
|
|
744
745
|
try {
|
|
745
|
-
return
|
|
746
|
+
return C.call(null, _);
|
|
746
747
|
} catch {
|
|
747
|
-
return
|
|
748
|
+
return C.call(this, _);
|
|
748
749
|
}
|
|
749
750
|
}
|
|
750
751
|
}
|
|
751
|
-
var
|
|
752
|
+
var y = [], l = !1, n, o = -1;
|
|
752
753
|
function g() {
|
|
753
|
-
!
|
|
754
|
+
!l || !n || (l = !1, n.length ? y = n.concat(y) : o = -1, y.length && d());
|
|
754
755
|
}
|
|
755
|
-
function
|
|
756
|
-
if (!
|
|
757
|
-
var _ =
|
|
758
|
-
|
|
759
|
-
for (var
|
|
760
|
-
for (
|
|
761
|
-
|
|
762
|
-
|
|
756
|
+
function d() {
|
|
757
|
+
if (!l) {
|
|
758
|
+
var _ = k(g);
|
|
759
|
+
l = !0;
|
|
760
|
+
for (var D = y.length; D; ) {
|
|
761
|
+
for (n = y, y = []; ++o < D; )
|
|
762
|
+
n && n[o].run();
|
|
763
|
+
o = -1, D = y.length;
|
|
763
764
|
}
|
|
764
|
-
|
|
765
|
+
n = null, l = !1, s(_);
|
|
765
766
|
}
|
|
766
767
|
}
|
|
767
|
-
|
|
768
|
-
var
|
|
768
|
+
u.nextTick = function(_) {
|
|
769
|
+
var D = new Array(arguments.length - 1);
|
|
769
770
|
if (arguments.length > 1)
|
|
770
771
|
for (var i = 1; i < arguments.length; i++)
|
|
771
|
-
|
|
772
|
-
|
|
772
|
+
D[i - 1] = arguments[i];
|
|
773
|
+
y.push(new B(_, D)), y.length === 1 && !l && k(d);
|
|
773
774
|
};
|
|
774
|
-
function
|
|
775
|
-
this.fun = _, this.array =
|
|
775
|
+
function B(_, D) {
|
|
776
|
+
this.fun = _, this.array = D;
|
|
776
777
|
}
|
|
777
|
-
|
|
778
|
+
B.prototype.run = function() {
|
|
778
779
|
this.fun.apply(null, this.array);
|
|
779
|
-
},
|
|
780
|
-
function
|
|
780
|
+
}, u.title = "browser", u.browser = !0, u.env = {}, u.argv = [], u.version = "", u.versions = {};
|
|
781
|
+
function O() {
|
|
781
782
|
}
|
|
782
|
-
|
|
783
|
+
u.on = O, u.addListener = O, u.once = O, u.off = O, u.removeListener = O, u.removeAllListeners = O, u.emit = O, u.prependListener = O, u.prependOnceListener = O, u.listeners = function(_) {
|
|
783
784
|
return [];
|
|
784
|
-
},
|
|
785
|
+
}, u.binding = function(_) {
|
|
785
786
|
throw new Error("process.binding is not supported");
|
|
786
|
-
},
|
|
787
|
+
}, u.cwd = function() {
|
|
787
788
|
return "/";
|
|
788
|
-
},
|
|
789
|
+
}, u.chdir = function(_) {
|
|
789
790
|
throw new Error("process.chdir is not supported");
|
|
790
|
-
},
|
|
791
|
+
}, u.umask = function() {
|
|
791
792
|
return 0;
|
|
792
793
|
};
|
|
793
794
|
}, {}],
|
|
794
|
-
10: [function(t,
|
|
795
|
-
(function(
|
|
796
|
-
var
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
} :
|
|
795
|
+
10: [function(t, b, I) {
|
|
796
|
+
(function(u) {
|
|
797
|
+
var m = typeof u == "function", C;
|
|
798
|
+
m ? C = function(p) {
|
|
799
|
+
u(p);
|
|
800
|
+
} : C = function(p) {
|
|
800
801
|
setTimeout(p, 0);
|
|
801
|
-
},
|
|
802
|
+
}, b.exports = C;
|
|
802
803
|
}).call(this, t("timers").setImmediate);
|
|
803
804
|
}, { timers: 11 }],
|
|
804
|
-
11: [function(t,
|
|
805
|
-
(function(
|
|
806
|
-
var
|
|
807
|
-
|
|
808
|
-
return new
|
|
809
|
-
},
|
|
810
|
-
return new
|
|
811
|
-
},
|
|
812
|
-
|
|
805
|
+
11: [function(t, b, I) {
|
|
806
|
+
(function(u, m) {
|
|
807
|
+
var C = t("process/browser.js").nextTick, p = Function.prototype.apply, x = Array.prototype.slice, k = {}, s = 0;
|
|
808
|
+
I.setTimeout = function() {
|
|
809
|
+
return new y(p.call(setTimeout, window, arguments), clearTimeout);
|
|
810
|
+
}, I.setInterval = function() {
|
|
811
|
+
return new y(p.call(setInterval, window, arguments), clearInterval);
|
|
812
|
+
}, I.clearTimeout = I.clearInterval = function(l) {
|
|
813
|
+
l.close();
|
|
813
814
|
};
|
|
814
|
-
function
|
|
815
|
-
this._id =
|
|
815
|
+
function y(l, n) {
|
|
816
|
+
this._id = l, this._clearFn = n;
|
|
816
817
|
}
|
|
817
|
-
|
|
818
|
-
},
|
|
818
|
+
y.prototype.unref = y.prototype.ref = function() {
|
|
819
|
+
}, y.prototype.close = function() {
|
|
819
820
|
this._clearFn.call(window, this._id);
|
|
820
|
-
},
|
|
821
|
-
clearTimeout(
|
|
822
|
-
},
|
|
823
|
-
clearTimeout(
|
|
824
|
-
},
|
|
825
|
-
clearTimeout(
|
|
826
|
-
var
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
},
|
|
830
|
-
},
|
|
831
|
-
var
|
|
832
|
-
return
|
|
833
|
-
|
|
834
|
-
}),
|
|
835
|
-
},
|
|
836
|
-
delete
|
|
821
|
+
}, I.enroll = function(l, n) {
|
|
822
|
+
clearTimeout(l._idleTimeoutId), l._idleTimeout = n;
|
|
823
|
+
}, I.unenroll = function(l) {
|
|
824
|
+
clearTimeout(l._idleTimeoutId), l._idleTimeout = -1;
|
|
825
|
+
}, I._unrefActive = I.active = function(l) {
|
|
826
|
+
clearTimeout(l._idleTimeoutId);
|
|
827
|
+
var n = l._idleTimeout;
|
|
828
|
+
n >= 0 && (l._idleTimeoutId = setTimeout(function() {
|
|
829
|
+
l._onTimeout && l._onTimeout();
|
|
830
|
+
}, n));
|
|
831
|
+
}, I.setImmediate = typeof u == "function" ? u : function(l) {
|
|
832
|
+
var n = s++, o = arguments.length < 2 ? !1 : x.call(arguments, 1);
|
|
833
|
+
return k[n] = !0, C(function() {
|
|
834
|
+
k[n] && (o ? l.apply(null, o) : l.call(null), I.clearImmediate(n));
|
|
835
|
+
}), n;
|
|
836
|
+
}, I.clearImmediate = typeof m == "function" ? m : function(l) {
|
|
837
|
+
delete k[l];
|
|
837
838
|
};
|
|
838
839
|
}).call(this, t("timers").setImmediate, t("timers").clearImmediate);
|
|
839
840
|
}, { "process/browser.js": 9, timers: 11 }]
|
|
840
841
|
}, {}, [2])(2);
|
|
841
842
|
});
|
|
842
843
|
})(Ke);
|
|
843
|
-
var
|
|
844
|
-
const
|
|
845
|
-
function
|
|
846
|
-
let
|
|
847
|
-
function
|
|
848
|
-
const
|
|
849
|
-
return
|
|
844
|
+
var In = Ke.exports;
|
|
845
|
+
const Ye = /* @__PURE__ */ Pn(In);
|
|
846
|
+
function An(A) {
|
|
847
|
+
let c;
|
|
848
|
+
function t(n, o, g) {
|
|
849
|
+
const d = {};
|
|
850
|
+
return d.sourceElement = n, d.sourceContainer = g, d.targetContainer = o, d.sourceType = n.getAttribute("data-sourceType") || "move", d.controlType = n.getAttribute("data-controlType"), d.controlTypeName = n.getAttribute("data-controlTypeName"), d.controlCategory = n.getAttribute("data-category"), d.controlFeature = n.getAttribute("data-feature"), d.parentComponentInstance = o.componentInstance, d.controlCategory === "input" ? d.bindingType = "field" : d.controlCategory === "dataCollection" && (d.bindingType = "entity"), n.componentInstance && (d.controlType = n.componentInstance.value.schema.type, d.controlCategory = n.componentInstance.value.schema.category), d;
|
|
850
851
|
}
|
|
851
|
-
function
|
|
852
|
-
if (
|
|
852
|
+
function b(n, o, g) {
|
|
853
|
+
if (n.contains(o) || o.classList.contains("no-drop"))
|
|
853
854
|
return !1;
|
|
854
|
-
const
|
|
855
|
-
if (
|
|
856
|
-
const
|
|
857
|
-
if (
|
|
855
|
+
const d = !0;
|
|
856
|
+
if (n.componentInstance && n.componentInstance.value.getDragScopeElement) {
|
|
857
|
+
const B = n.componentInstance.value.getDragScopeElement();
|
|
858
|
+
if (B && !B.contains(o))
|
|
858
859
|
return !1;
|
|
859
860
|
}
|
|
860
861
|
if (o.componentInstance && o.componentInstance.value.canAccepts) {
|
|
861
|
-
const
|
|
862
|
-
return o.componentInstance.value.canAccepts(
|
|
862
|
+
const B = t(n, o, g);
|
|
863
|
+
return o.componentInstance.value.canAccepts(B);
|
|
863
864
|
}
|
|
864
|
-
return
|
|
865
|
+
return d;
|
|
865
866
|
}
|
|
866
|
-
function
|
|
867
|
-
const
|
|
868
|
-
return
|
|
867
|
+
function I(n, o) {
|
|
868
|
+
const g = o.getBoundingClientRect(), d = n.getBoundingClientRect(), B = d.top >= g.top, O = d.top < g.bottom;
|
|
869
|
+
return B && O;
|
|
869
870
|
}
|
|
870
|
-
function
|
|
871
|
-
const
|
|
872
|
-
if (!(!
|
|
873
|
-
const
|
|
874
|
-
if (
|
|
875
|
-
const
|
|
876
|
-
if (
|
|
877
|
-
const
|
|
878
|
-
|
|
871
|
+
function u(n, o) {
|
|
872
|
+
const g = n.querySelector(".dgComponentSelected");
|
|
873
|
+
if (!(!g || o === 0) && I(g, n)) {
|
|
874
|
+
const d = g.querySelector(".component-btn-group");
|
|
875
|
+
if (d) {
|
|
876
|
+
const B = d.querySelector("div");
|
|
877
|
+
if (B && B.style.top) {
|
|
878
|
+
const O = Number.parseFloat(B.style.top);
|
|
879
|
+
B.style.top = O - o + "px";
|
|
879
880
|
}
|
|
880
881
|
}
|
|
881
882
|
}
|
|
882
883
|
}
|
|
883
|
-
function
|
|
884
|
-
|
|
885
|
-
let
|
|
884
|
+
function m(n, o, g) {
|
|
885
|
+
n.componentInstance;
|
|
886
|
+
let d = -1;
|
|
886
887
|
if (!o)
|
|
887
888
|
return -1;
|
|
888
|
-
if (
|
|
889
|
-
if (
|
|
890
|
-
if (
|
|
891
|
-
|
|
889
|
+
if (n.componentInstance.value.contents) {
|
|
890
|
+
if (g && g.componentInstance) {
|
|
891
|
+
if (g.getAttribute("data-noattach"))
|
|
892
|
+
d = Number(g.getAttribute("data-position"));
|
|
892
893
|
else {
|
|
893
|
-
const
|
|
894
|
-
let
|
|
895
|
-
|
|
894
|
+
const B = g.componentInstance.value.schema;
|
|
895
|
+
let O = { id: B.id };
|
|
896
|
+
B.type === "Component" && (O = { component: B.id }), d = Me(n.componentInstance.value.contents, O), d = d === -1 ? 0 : d;
|
|
896
897
|
}
|
|
897
|
-
|
|
898
|
+
d !== -1 && n.componentInstance.value.contents.splice(d, 0, o);
|
|
898
899
|
} else
|
|
899
|
-
|
|
900
|
-
|
|
900
|
+
n.componentInstance.value.contents.push(o);
|
|
901
|
+
n.componentInstance.value.updateDragAndDropRules();
|
|
901
902
|
}
|
|
902
|
-
return
|
|
903
|
+
return d;
|
|
903
904
|
}
|
|
904
|
-
function
|
|
905
|
-
if (!
|
|
905
|
+
function C(n, o) {
|
|
906
|
+
if (!n.componentInstance.value.contents)
|
|
906
907
|
return -1;
|
|
907
|
-
if (
|
|
908
|
+
if (n.componentInstance.value.contents.length === 0)
|
|
908
909
|
return 0;
|
|
909
910
|
if (!o || !o.componentInstance)
|
|
910
|
-
return
|
|
911
|
+
return n.componentInstance.value.contents.length;
|
|
911
912
|
if (o.getAttribute("data-noattach"))
|
|
912
913
|
return Number(o.getAttribute("data-position"));
|
|
913
|
-
const
|
|
914
|
-
let
|
|
915
|
-
|
|
916
|
-
let
|
|
917
|
-
return
|
|
914
|
+
const g = o.componentInstance.value.schema;
|
|
915
|
+
let d;
|
|
916
|
+
g.type === "Component" ? d = { component: g.id } : d = { id: g.id };
|
|
917
|
+
let B = Me(n.componentInstance.value.contents, d);
|
|
918
|
+
return B = B === -1 ? 0 : B, B;
|
|
918
919
|
}
|
|
919
|
-
function
|
|
920
|
+
function p(n, o, g, d) {
|
|
920
921
|
if (o.componentInstance.value.addNewChildComponentSchema) {
|
|
921
|
-
const
|
|
922
|
-
|
|
922
|
+
const B = C(o, d), O = String(n.getAttribute("data-controltype")), _ = n.getAttribute("data-feature"), D = String(n.innerText), i = o.componentInstance.value, E = { componentType: O, label: D, parentComponentInstance: i, targetPosition: B }, h = _ ? JSON.parse(_) : {}, $ = Object.assign(E, h), V = o.componentInstance.value.addNewChildComponentSchema($, A);
|
|
923
|
+
m(o, V, d);
|
|
923
924
|
}
|
|
924
|
-
o.contains(
|
|
925
|
+
o.contains(n) && o.removeChild(n);
|
|
925
926
|
}
|
|
926
|
-
function
|
|
927
|
-
let
|
|
928
|
-
if (
|
|
929
|
-
const
|
|
930
|
-
|
|
927
|
+
function x(n, o, g, d) {
|
|
928
|
+
let B, O = -1;
|
|
929
|
+
if (n.componentInstance && n.componentInstance.value.triggerBelongedComponentToMoveWhenMoved) {
|
|
930
|
+
const i = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
|
|
931
|
+
i && (n = X(i.elementRef).value.parentElement, g = n.parentElement);
|
|
931
932
|
}
|
|
932
|
-
const
|
|
933
|
-
|
|
933
|
+
const _ = n.componentInstance && n.componentInstance.value.schema;
|
|
934
|
+
let D = { id: _ && _.id };
|
|
935
|
+
_.type === "component" && (D = { component: _ && _.id }), O = Me(g.componentInstance.value.contents, D), O !== -1 && g.componentInstance.value.contents && (B = g.componentInstance.value.contents.splice(O, 1), B = B[0]), m(o, B, d), g.componentInstance && g.componentInstance.value.onChildElementMovedOut && g.componentInstance.value.onChildElementMovedOut(n), o.componentInstance && o.componentInstance.value.onAcceptMovedChildElement && o.componentInstance.value.onAcceptMovedChildElement(n, g);
|
|
934
936
|
}
|
|
935
|
-
function
|
|
936
|
-
if (!o ||
|
|
937
|
+
function k(n, o, g, d) {
|
|
938
|
+
if (!o || n.contains(o))
|
|
937
939
|
return;
|
|
938
|
-
switch (
|
|
940
|
+
switch (n.getAttribute("data-sourceType")) {
|
|
939
941
|
case "control":
|
|
940
942
|
case "field":
|
|
941
943
|
case "entity": {
|
|
942
|
-
|
|
944
|
+
p(n, o, g, d);
|
|
943
945
|
break;
|
|
944
946
|
}
|
|
945
947
|
default:
|
|
946
|
-
|
|
948
|
+
g.componentInstance.value.contents ? x(n, o, g, d) : o.contains(n) && o.removeChild(n);
|
|
947
949
|
}
|
|
948
950
|
de.value++;
|
|
949
951
|
}
|
|
950
|
-
function
|
|
951
|
-
|
|
952
|
+
function s(n) {
|
|
953
|
+
c && c.destroy(), Ye && (c = Ye([], {
|
|
952
954
|
// 镜像容器
|
|
953
|
-
mirrorContainer:
|
|
955
|
+
mirrorContainer: n,
|
|
954
956
|
direction: "mixed",
|
|
955
957
|
revertOnSpill: !0,
|
|
956
958
|
// 判断是否可移动
|
|
957
|
-
moves(o,
|
|
958
|
-
let
|
|
959
|
-
return o.classList.contains("no-drag") && (
|
|
959
|
+
moves(o, g, d) {
|
|
960
|
+
let B = !0;
|
|
961
|
+
return o.classList.contains("no-drag") && (B = !1), o.componentInstance && (B = !!d.getAttribute("data-dragging-icon")), B;
|
|
960
962
|
},
|
|
961
963
|
// 判断是否可拷贝
|
|
962
964
|
copy(o) {
|
|
@@ -967,41 +969,41 @@ function In() {
|
|
|
967
969
|
return o.componentInstance && o.componentInstance.value.getDraggingDisplayText ? o.componentInstance.value.getDraggingDisplayText() : o.innerText || "控件";
|
|
968
970
|
},
|
|
969
971
|
// 判断目标区域是否可接收拖拽的控件
|
|
970
|
-
accepts(o,
|
|
971
|
-
const
|
|
972
|
-
return
|
|
972
|
+
accepts(o, g, d) {
|
|
973
|
+
const B = b(o, g, d), O = n.lastElementChild;
|
|
974
|
+
return B ? O.className = O.className.replace("undroppable", "") : O.className.includes("undroppable") || (O.className += " undroppable"), B;
|
|
973
975
|
}
|
|
974
|
-
}).on("over", (o,
|
|
975
|
-
|
|
976
|
-
}).on("out", (o,
|
|
977
|
-
|
|
978
|
-
}).on("drop", (o,
|
|
979
|
-
|
|
980
|
-
}).on("dragend", (o,
|
|
981
|
-
|
|
976
|
+
}).on("over", (o, g) => {
|
|
977
|
+
g.className += " drag-over";
|
|
978
|
+
}).on("out", (o, g) => {
|
|
979
|
+
g.className = g.className.replace("drag-over", "").replace(" ", "");
|
|
980
|
+
}).on("drop", (o, g, d, B) => {
|
|
981
|
+
k(o, g, d, B);
|
|
982
|
+
}).on("dragend", (o, g) => {
|
|
983
|
+
u(o, g);
|
|
982
984
|
}));
|
|
983
985
|
}
|
|
984
|
-
function
|
|
985
|
-
if (!
|
|
986
|
+
function y(n, o) {
|
|
987
|
+
if (!n)
|
|
986
988
|
return;
|
|
987
989
|
if (o.noDragDrop)
|
|
988
|
-
return
|
|
989
|
-
const
|
|
990
|
-
|
|
990
|
+
return n;
|
|
991
|
+
const g = n.querySelector(`[data-dragref='${o.id}-container']`) || n;
|
|
992
|
+
c && g && c.containers.push(g);
|
|
991
993
|
}
|
|
992
|
-
function
|
|
993
|
-
if (!
|
|
994
|
+
function l() {
|
|
995
|
+
if (!c)
|
|
994
996
|
return;
|
|
995
|
-
const
|
|
996
|
-
|
|
997
|
+
const n = document.getElementsByClassName("controlCategory");
|
|
998
|
+
n && (c.containers = c.containers.filter(
|
|
997
999
|
(o) => !o.className.includes("controlCategory")
|
|
998
|
-
), Array.from(
|
|
999
|
-
|
|
1000
|
+
), Array.from(n).forEach((o) => {
|
|
1001
|
+
c.containers.push(o);
|
|
1000
1002
|
}));
|
|
1001
1003
|
}
|
|
1002
|
-
return { attachComponents:
|
|
1004
|
+
return { attachComponents: y, attachToolbox: l, initializeDragula: s };
|
|
1003
1005
|
}
|
|
1004
|
-
const
|
|
1006
|
+
const Mn = {
|
|
1005
1007
|
id: { type: String, default: "" },
|
|
1006
1008
|
componentId: { type: String, default: "" },
|
|
1007
1009
|
type: { type: String, default: "" },
|
|
@@ -1016,22 +1018,20 @@ const An = {
|
|
|
1016
1018
|
*/
|
|
1017
1019
|
modelValue: { type: Object },
|
|
1018
1020
|
ignore: { type: Boolean, default: !1 }
|
|
1019
|
-
},
|
|
1020
|
-
let
|
|
1021
|
-
function
|
|
1022
|
-
|
|
1021
|
+
}, S = {}, T = {}, P = {};
|
|
1022
|
+
let Ge = !1;
|
|
1023
|
+
function Nn() {
|
|
1024
|
+
Ge || (Ge = !0, St.registerDesigner(S, T, P), wt.registerDesigner(S, T, P), Tt.registerDesigner(S, T, P), Et.registerDesigner(S, T, P), Ft.registerDesigner(S, T, P), Pt.registerDesigner(S, T, P), It.registerDesigner(S, T, P), At.registerDesigner(S, T, P), Mt.registerDesigner(S, T, P), Nt.registerDesigner(S, T, P), Bt.registerDesigner(S, T, P), xt.registerDesigner(S, T, P), kt.registerDesigner(S, T, P), _t.registerDesigner(S, T, P), Lt.registerDesigner(S, T, P), Ot.registerDesigner(S, T), Vt.registerDesigner(S, T, P), jt.registerDesigner(S, T, P), $t.registerDesigner(S, T, P), Ut.registerDesigner(S, T, P), Ht.registerDesigner(S, T, P), qt.registerDesigner(S, T, P), Wt.registerDesigner(S, T, P), Xt.registerDesigner(S, T, P), Gt.registerDesigner(S, T, P), Yt.registerDesigner(S, T, P), zt.registerDesigner(S, T, P), Jt.registerDesigner(S, T, P), Qt.registerDesigner(S, T, P), Kt.registerDesigner(S, T, P), Zt.registerDesigner(S, T, P), Rt.registerDesigner(S, T, P), en.registerDesigner(S, T, P), on.registerDesigner(S, T, P), rn.registerDesigner(S, T, P), nn.registerDesigner(S, T, P), tn.registerDesigner(S, T, P), an.registerDesigner(S, T, P), cn.registerDesigner(S, T, P), ln.registerDesigner(S, T, P), un.registerDesigner(S, T, P), sn.registerDesigner(S, T, P), fn.registerDesigner(S, T, P), pn.registerDesigner(S, T, P), mn.registerDesigner(S, T, P), dn.registerDesigner(S, T, P), Dn.registerDesigner(S, T, P), vn.registerDesigner(S, T, P), gn.registerDesigner(S, T, P), hn.registerDesigner(S, T, P), yn.registerDesigner(S, T, P), Cn.registerDesigner(S, T, P), bn.registerDesigner(S, T), wn.registerDesigner(S, T, P), Sn.registerDesigner(S, T, P), Tn.registerDesigner(S, T, P));
|
|
1023
1025
|
}
|
|
1024
|
-
const
|
|
1026
|
+
const Bn = {
|
|
1025
1027
|
id: { type: String }
|
|
1026
|
-
},
|
|
1028
|
+
}, xn = /* @__PURE__ */ xe({
|
|
1027
1029
|
name: "FDesignerPlaceholder",
|
|
1028
|
-
props:
|
|
1030
|
+
props: Bn,
|
|
1029
1031
|
emits: [],
|
|
1030
|
-
setup(
|
|
1031
|
-
const
|
|
1032
|
+
setup(A) {
|
|
1033
|
+
const c = ve(() => ({
|
|
1032
1034
|
"drag-and-drop-alert": !0,
|
|
1033
|
-
alert: !0,
|
|
1034
|
-
"alert-info": !0,
|
|
1035
1035
|
"no-drag": !0,
|
|
1036
1036
|
"w-100": !0
|
|
1037
1037
|
})), t = ve(() => ({
|
|
@@ -1039,353 +1039,363 @@ const Nn = {
|
|
|
1039
1039
|
display: "flex",
|
|
1040
1040
|
"justify-content": "center",
|
|
1041
1041
|
"align-items": "center",
|
|
1042
|
-
margin: 0
|
|
1042
|
+
margin: 0,
|
|
1043
|
+
padding: ".75rem 1.25rem",
|
|
1044
|
+
border: "1px solid transparent",
|
|
1045
|
+
"border-radius": "3px",
|
|
1046
|
+
color: "#315585",
|
|
1047
|
+
"background-color": "#dfedff",
|
|
1048
|
+
"border-color": "#d2e6ff"
|
|
1043
1049
|
}));
|
|
1044
|
-
return () =>
|
|
1045
|
-
class:
|
|
1050
|
+
return () => z("div", {
|
|
1051
|
+
class: c.value,
|
|
1046
1052
|
style: t.value,
|
|
1047
1053
|
role: "alert",
|
|
1048
1054
|
"data-noattach": "true",
|
|
1049
1055
|
"data-position": "0"
|
|
1050
|
-
}, [
|
|
1056
|
+
}, [yt("拖拽组件到这里")]);
|
|
1051
1057
|
}
|
|
1052
1058
|
});
|
|
1053
|
-
function
|
|
1054
|
-
return typeof
|
|
1059
|
+
function kn(A) {
|
|
1060
|
+
return typeof A == "function" || Object.prototype.toString.call(A) === "[object Object]" && !Dt(A);
|
|
1055
1061
|
}
|
|
1056
|
-
const
|
|
1062
|
+
const Be = /* @__PURE__ */ xe({
|
|
1057
1063
|
name: "FDesignerItem",
|
|
1058
|
-
props:
|
|
1064
|
+
props: Mn,
|
|
1059
1065
|
emits: ["selectionChange"],
|
|
1060
|
-
setup(
|
|
1061
|
-
const t =
|
|
1062
|
-
designerItemElementRef:
|
|
1063
|
-
componentInstance:
|
|
1064
|
-
schema:
|
|
1065
|
-
parent:
|
|
1066
|
-
setupContext:
|
|
1066
|
+
setup(A, c) {
|
|
1067
|
+
const t = X(`${A.modelValue.id}-component`), b = X(A.canMove), I = X(A.canDelete), u = X(!1), m = X(A.modelValue), C = X(A.componentId || ""), p = X(""), x = X(""), k = X(A.customClass), s = X(), y = ae("canvas-dragula"), l = X(), n = ae("design-item-context"), o = {
|
|
1068
|
+
designerItemElementRef: s,
|
|
1069
|
+
componentInstance: l,
|
|
1070
|
+
schema: m.value,
|
|
1071
|
+
parent: n,
|
|
1072
|
+
setupContext: c
|
|
1067
1073
|
};
|
|
1068
1074
|
ye("design-item-context", o);
|
|
1069
|
-
const
|
|
1070
|
-
const
|
|
1075
|
+
const g = ae("useFormSchema"), d = ve(() => {
|
|
1076
|
+
const a = A.modelValue.appearance && A.modelValue.appearance.class || "";
|
|
1077
|
+
let w = {
|
|
1071
1078
|
"farris-component": !0,
|
|
1072
1079
|
// 受position-relative影响,整个容器的高度不能被撑起
|
|
1073
|
-
"flex-fill":
|
|
1074
|
-
"position-relative":
|
|
1075
|
-
"farris-nested":
|
|
1076
|
-
"can-move":
|
|
1077
|
-
"d-none":
|
|
1078
|
-
dgComponentSelected:
|
|
1080
|
+
"flex-fill": m.value.id == "root-component",
|
|
1081
|
+
"position-relative": b.value && I.value,
|
|
1082
|
+
"farris-nested": u.value,
|
|
1083
|
+
"can-move": b.value,
|
|
1084
|
+
"d-none": s.value && s.value.classList.contains("d-none"),
|
|
1085
|
+
dgComponentSelected: s.value && s.value.classList.contains("dgComponentSelected"),
|
|
1086
|
+
dgComponentFocused: s.value && s.value.classList.contains("dgComponentFocused")
|
|
1079
1087
|
};
|
|
1080
|
-
return
|
|
1081
|
-
}),
|
|
1082
|
-
const
|
|
1083
|
-
return
|
|
1084
|
-
const [
|
|
1085
|
-
return
|
|
1086
|
-
},
|
|
1087
|
-
const [
|
|
1088
|
-
return
|
|
1089
|
-
},
|
|
1088
|
+
return w[`farris-component-${m.value.type}`] = !0, w = Ne(w, a), w = Ne(w, x.value), w = Ne(w, k.value), w;
|
|
1089
|
+
}), B = ve(() => {
|
|
1090
|
+
const a = {}, w = A.modelValue.appearance && A.modelValue.appearance.style || "";
|
|
1091
|
+
return w && w.split(";").reduce((F, Y) => {
|
|
1092
|
+
const [J, Q] = Y.split(":");
|
|
1093
|
+
return F[J] = Q, F;
|
|
1094
|
+
}, a), p.value && p.value.split(";").reduce((F, Y) => {
|
|
1095
|
+
const [J, Q] = Y.split(":");
|
|
1096
|
+
return J && (F[J] = Q), F;
|
|
1097
|
+
}, a), a;
|
|
1090
1098
|
});
|
|
1091
|
-
function
|
|
1092
|
-
var
|
|
1093
|
-
if (
|
|
1094
|
-
const
|
|
1095
|
-
if (
|
|
1096
|
-
const
|
|
1097
|
-
(Q = (
|
|
1099
|
+
function O(a, w) {
|
|
1100
|
+
var J, Q, ee;
|
|
1101
|
+
if (a && (a.preventDefault(), a.stopPropagation()), l.value.triggerBelongedComponentToDeleteWhenDeleted) {
|
|
1102
|
+
const L = l.value.getBelongedComponentInstance(l);
|
|
1103
|
+
if (L && L.parent) {
|
|
1104
|
+
const ne = X(L == null ? void 0 : L.parent), oe = ne.value.contents.findIndex((fe) => fe.id === L.schema.id);
|
|
1105
|
+
(Q = (J = ne.value) == null ? void 0 : J.contents) == null || Q.splice(oe, 1), (ee = ne.value) == null || ee.updateDragAndDropRules(), de.value++;
|
|
1098
1106
|
}
|
|
1099
1107
|
return;
|
|
1100
1108
|
}
|
|
1101
|
-
let
|
|
1102
|
-
if (
|
|
1103
|
-
const
|
|
1104
|
-
|
|
1109
|
+
let F = n, Y = (L) => L.id === w.id;
|
|
1110
|
+
if (w.type === "component" && (F = n == null ? void 0 : n.parent, Y = (L) => L.component === w.id), F && F.schema.contents) {
|
|
1111
|
+
const L = F.schema.contents.findIndex(Y);
|
|
1112
|
+
F.schema.contents.splice(L, 1), F.componentInstance.value.updateDragAndDropRules(), de.value++, c.emit("selectionChange");
|
|
1105
1113
|
}
|
|
1106
1114
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return
|
|
1115
|
+
function _(a) {
|
|
1116
|
+
return I.value && z("div", {
|
|
1109
1117
|
role: "button",
|
|
1110
1118
|
class: "btn component-settings-button",
|
|
1111
1119
|
title: "删除",
|
|
1112
1120
|
ref: "removeComponent",
|
|
1113
|
-
onClick: (
|
|
1114
|
-
|
|
1121
|
+
onClick: (w) => {
|
|
1122
|
+
O(w, a);
|
|
1115
1123
|
}
|
|
1116
|
-
}, [
|
|
1124
|
+
}, [z("i", {
|
|
1117
1125
|
class: "f-icon f-icon-yxs_delete"
|
|
1118
1126
|
}, null)]);
|
|
1119
1127
|
}
|
|
1120
|
-
function
|
|
1121
|
-
return
|
|
1128
|
+
function D() {
|
|
1129
|
+
return b.value && z("div", {
|
|
1122
1130
|
role: "button",
|
|
1123
1131
|
class: "btn component-settings-button",
|
|
1124
1132
|
title: "移动",
|
|
1125
1133
|
ref: "moveComponent"
|
|
1126
|
-
}, [
|
|
1134
|
+
}, [z("i", {
|
|
1127
1135
|
"data-dragging-icon": "true",
|
|
1128
1136
|
class: "cmp_move f-icon f-icon-yxs_move"
|
|
1129
1137
|
}, null)]);
|
|
1130
1138
|
}
|
|
1131
|
-
function
|
|
1132
|
-
return
|
|
1139
|
+
function i() {
|
|
1140
|
+
return A.customButtons && !!A.customButtons.length && A.customButtons.map((a) => z("div", {
|
|
1133
1141
|
role: "button",
|
|
1134
|
-
class: `btn component-settings-button ${
|
|
1135
|
-
title:
|
|
1136
|
-
ref:
|
|
1137
|
-
}, [
|
|
1138
|
-
class:
|
|
1142
|
+
class: `btn component-settings-button ${a.class || ""}`,
|
|
1143
|
+
title: a.title,
|
|
1144
|
+
ref: a.id
|
|
1145
|
+
}, [z("i", {
|
|
1146
|
+
class: a.icon
|
|
1139
1147
|
}, null)]));
|
|
1140
1148
|
}
|
|
1141
|
-
function
|
|
1142
|
-
return
|
|
1149
|
+
function E(a) {
|
|
1150
|
+
return z("div", {
|
|
1143
1151
|
class: "component-btn-group",
|
|
1144
1152
|
"data-noattach": "true"
|
|
1145
|
-
}, [
|
|
1153
|
+
}, [z("div", null, [_(a), D(), i()])]);
|
|
1146
1154
|
}
|
|
1147
|
-
function
|
|
1148
|
-
|
|
1155
|
+
function h(a, w, F, Y) {
|
|
1156
|
+
c.emit("selectionChange", a, w, F, Y);
|
|
1149
1157
|
}
|
|
1150
|
-
function
|
|
1151
|
-
let
|
|
1152
|
-
const
|
|
1153
|
-
Q.customClass =
|
|
1154
|
-
const
|
|
1155
|
-
return
|
|
1156
|
-
ref:
|
|
1157
|
-
}, Q),
|
|
1158
|
-
key:
|
|
1159
|
-
modelValue:
|
|
1160
|
-
"onUpdate:modelValue": (
|
|
1161
|
-
componentId:
|
|
1162
|
-
onSelectionChange:
|
|
1163
|
-
}, null))) ?
|
|
1164
|
-
default: () => [
|
|
1165
|
-
}) :
|
|
1166
|
-
ref:
|
|
1158
|
+
function $(a) {
|
|
1159
|
+
let w;
|
|
1160
|
+
const F = a.type, Y = S[F], J = T[F], Q = J ? J(a) : {};
|
|
1161
|
+
Q.customClass = A.ignore ? Q.customClass : "", Q.componentId = C.value;
|
|
1162
|
+
const ee = a.contents && a.contents.length === 0;
|
|
1163
|
+
return a.contents && !!a.contents.length && Y ? z(Y, Ae({
|
|
1164
|
+
ref: l
|
|
1165
|
+
}, Q), kn(w = a.contents.map((ne) => z(Be, {
|
|
1166
|
+
key: ne.id,
|
|
1167
|
+
modelValue: ne,
|
|
1168
|
+
"onUpdate:modelValue": (oe) => ne = oe,
|
|
1169
|
+
componentId: C.value,
|
|
1170
|
+
onSelectionChange: h
|
|
1171
|
+
}, null))) ? w : {
|
|
1172
|
+
default: () => [w]
|
|
1173
|
+
}) : Y ? ee ? z(Y, Ae({
|
|
1174
|
+
ref: l
|
|
1167
1175
|
}, Q), {
|
|
1168
|
-
default: () => [
|
|
1169
|
-
}) :
|
|
1170
|
-
ref:
|
|
1171
|
-
}, Q), null) :
|
|
1176
|
+
default: () => [z(xn, null, null)]
|
|
1177
|
+
}) : z(Y, Ae({
|
|
1178
|
+
ref: l
|
|
1179
|
+
}, Q), null) : z("div", null, null);
|
|
1172
1180
|
}
|
|
1173
|
-
function
|
|
1174
|
-
if (
|
|
1175
|
-
let
|
|
1176
|
-
if (
|
|
1177
|
-
return
|
|
1178
|
-
key:
|
|
1179
|
-
modelValue:
|
|
1180
|
-
"onUpdate:modelValue": (
|
|
1181
|
-
componentId:
|
|
1182
|
-
onSelectionChange:
|
|
1181
|
+
function V(a) {
|
|
1182
|
+
if (a.type === "component-ref") {
|
|
1183
|
+
let F = g == null ? void 0 : g.getFormSchema().module.components.find((Y) => Y.id === a.component);
|
|
1184
|
+
if (F)
|
|
1185
|
+
return z(Be, {
|
|
1186
|
+
key: F.id,
|
|
1187
|
+
modelValue: F,
|
|
1188
|
+
"onUpdate:modelValue": (Y) => F = Y,
|
|
1189
|
+
componentId: F.id,
|
|
1190
|
+
onSelectionChange: h
|
|
1183
1191
|
}, null);
|
|
1184
1192
|
}
|
|
1185
1193
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1194
|
+
ze(() => A.modelValue, (a) => {
|
|
1195
|
+
m.value = a, t.value = `${a.id}-component`;
|
|
1188
1196
|
});
|
|
1189
|
-
function
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1197
|
+
function r(a) {
|
|
1198
|
+
const w = a.target;
|
|
1199
|
+
Qe(w);
|
|
1192
1200
|
}
|
|
1193
|
-
function
|
|
1194
|
-
var
|
|
1195
|
-
(
|
|
1201
|
+
function U() {
|
|
1202
|
+
var a, w;
|
|
1203
|
+
(w = (a = m.value) == null ? void 0 : a.contents) != null && w.length && s.value && s.value.addEventListener("scroll", r);
|
|
1196
1204
|
}
|
|
1197
|
-
|
|
1198
|
-
if (
|
|
1199
|
-
const
|
|
1200
|
-
|
|
1205
|
+
Je(() => {
|
|
1206
|
+
if (s.value && l.value && l.value.schema) {
|
|
1207
|
+
const a = s.value.querySelector(`[data-dragref='${l.value.schema.id}-container']`);
|
|
1208
|
+
y && a && y.attachComponents(a, m.value), u.value = l.value.canNested !== void 0 ? l.value.canNested : u.value, I.value = l.value.canDelete !== void 0 ? l.value.canDelete : I.value, b.value = l.value.canMove !== void 0 ? l.value.canMove : b.value, p.value = l.value.styles || "", x.value = l.value.designerClass || "", s.value && (s.value.componentInstance = l, s.value.designItemContext = o);
|
|
1201
1209
|
}
|
|
1202
|
-
|
|
1203
|
-
}),
|
|
1204
|
-
|
|
1210
|
+
U(), de.value++;
|
|
1211
|
+
}), Ct(() => {
|
|
1212
|
+
s.value && s.value.removeEventListener("scroll", r);
|
|
1205
1213
|
});
|
|
1206
|
-
function
|
|
1207
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
1208
|
-
const
|
|
1209
|
-
if (
|
|
1210
|
-
const
|
|
1211
|
-
if (!(
|
|
1212
|
-
const
|
|
1213
|
-
|
|
1214
|
+
function W(a) {
|
|
1215
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((F) => F.classList.remove("dgComponentFocused")), a && (a.preventDefault(), a.stopPropagation());
|
|
1216
|
+
const w = s.value;
|
|
1217
|
+
if (w) {
|
|
1218
|
+
const F = document.getElementsByClassName("dgComponentSelected");
|
|
1219
|
+
if (!(F && F.length === 1 && F[0] === s.value) && (Array.from(F).forEach((J) => J.classList.remove("dgComponentSelected")), w.classList.add("dgComponentFocused"), c.emit("selectionChange", m.value.type, m.value, C.value, l.value), l.value.getDraggableDesignItemElement)) {
|
|
1220
|
+
const J = l.value.getDraggableDesignItemElement(o);
|
|
1221
|
+
J && J.value && J.value.classList.add("dgComponentSelected");
|
|
1214
1222
|
}
|
|
1215
1223
|
}
|
|
1216
|
-
|
|
1224
|
+
r(a);
|
|
1217
1225
|
}
|
|
1218
|
-
return () =>
|
|
1219
|
-
id: `${
|
|
1220
|
-
ref:
|
|
1221
|
-
class:
|
|
1222
|
-
style:
|
|
1223
|
-
onClick:
|
|
1224
|
-
}, [
|
|
1226
|
+
return () => m.value.type === "component-ref" ? V(m.value) : z("div", {
|
|
1227
|
+
id: `${m.value.id}-design-item`,
|
|
1228
|
+
ref: s,
|
|
1229
|
+
class: d.value,
|
|
1230
|
+
style: B.value,
|
|
1231
|
+
onClick: W
|
|
1232
|
+
}, [E(m.value), $(m.value)]);
|
|
1225
1233
|
}
|
|
1226
|
-
}),
|
|
1234
|
+
}), Ho = /* @__PURE__ */ xe({
|
|
1227
1235
|
name: "FDesignerCanvas",
|
|
1228
|
-
props:
|
|
1236
|
+
props: Fn,
|
|
1229
1237
|
emits: ["init", "selectionChange", "canvasChanged"],
|
|
1230
|
-
setup(
|
|
1231
|
-
const t =
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1238
|
+
setup(A, c) {
|
|
1239
|
+
const t = X(), b = X(), I = X(), u = X(), m = X(), C = X(A.componentId), p = {
|
|
1240
|
+
eventsEditorUtils: ae("eventsEditorUtils"),
|
|
1241
|
+
formSchemaUtils: ae("useFormSchema"),
|
|
1242
|
+
formMetadataConverter: ae("formMetadataConverter"),
|
|
1243
|
+
designViewModelUtils: ae("designViewModelUtils"),
|
|
1244
|
+
controlCreatorUtils: ae("controlCreatorUtils"),
|
|
1245
|
+
metadataService: ae("Meatdata_Http_Service_Token"),
|
|
1246
|
+
schemaService: ae("schemaService")
|
|
1247
|
+
};
|
|
1248
|
+
ye("designer-host-service", p);
|
|
1249
|
+
const x = An(p);
|
|
1250
|
+
Nn(), ye("canvas-dragula", x), ye("design-item-context", {
|
|
1251
|
+
designerItemElementRef: u,
|
|
1252
|
+
componentInstance: m,
|
|
1253
|
+
schema: b.value,
|
|
1236
1254
|
parent: void 0
|
|
1237
|
-
}), ye("designer-host-service", {
|
|
1238
|
-
eventsEditorUtils: re("eventsEditorUtils"),
|
|
1239
|
-
formSchemaUtils: re("useFormSchema"),
|
|
1240
|
-
formMetadataConverter: re("formMetadataConverter"),
|
|
1241
|
-
designViewModelUtils: re("designViewModelUtils"),
|
|
1242
|
-
controlCreatorUtils: re("controlCreatorUtils"),
|
|
1243
|
-
metadataService: re("Meatdata_Http_Service_Token"),
|
|
1244
|
-
schemaService: re("schemaService")
|
|
1245
1255
|
});
|
|
1246
|
-
const
|
|
1256
|
+
const k = ve(() => ({
|
|
1247
1257
|
"d-flex": !0,
|
|
1248
1258
|
"flex-fill": !0,
|
|
1249
1259
|
"flex-column": !0
|
|
1250
1260
|
}));
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
}),
|
|
1254
|
-
|
|
1261
|
+
Je(() => {
|
|
1262
|
+
I.value && x.initializeDragula(I.value), t.value = A.modelValue, c.emit("init", x);
|
|
1263
|
+
}), ze(de, () => {
|
|
1264
|
+
Qe(I.value), c.emit("canvasChanged");
|
|
1255
1265
|
}, {
|
|
1256
1266
|
flush: "post"
|
|
1257
1267
|
});
|
|
1258
|
-
function
|
|
1259
|
-
|
|
1268
|
+
function s(y, l, n, o) {
|
|
1269
|
+
c.emit("selectionChange", y, l, n, o);
|
|
1260
1270
|
}
|
|
1261
|
-
return () =>
|
|
1271
|
+
return () => z("div", {
|
|
1262
1272
|
class: "editorDiv flex-fill h-100"
|
|
1263
|
-
}, [
|
|
1273
|
+
}, [z("div", {
|
|
1264
1274
|
class: "editorPanel d-flex flex-fill flex-column PC"
|
|
1265
|
-
}, [
|
|
1266
|
-
ref:
|
|
1267
|
-
class:
|
|
1268
|
-
}, [t.value &&
|
|
1275
|
+
}, [z("div", {
|
|
1276
|
+
ref: I,
|
|
1277
|
+
class: k.value
|
|
1278
|
+
}, [t.value && z(Be, {
|
|
1269
1279
|
modelValue: t.value,
|
|
1270
|
-
"onUpdate:modelValue": (
|
|
1271
|
-
onSelectionChange:
|
|
1272
|
-
componentId:
|
|
1280
|
+
"onUpdate:modelValue": (y) => t.value = y,
|
|
1281
|
+
onSelectionChange: s,
|
|
1282
|
+
componentId: C.value
|
|
1273
1283
|
}, null)])])]);
|
|
1274
1284
|
}
|
|
1275
|
-
}),
|
|
1276
|
-
function
|
|
1277
|
-
const { properties:
|
|
1278
|
-
return
|
|
1285
|
+
}), _n = {}, On = {};
|
|
1286
|
+
function Ze(A) {
|
|
1287
|
+
const { properties: c, title: t, ignore: b } = A, I = b && Array.isArray(b), u = Object.keys(c).reduce((m, C) => ((!I || !b.find((p) => p == C)) && (m[C] = c[C].type === "object" && c[C].properties ? Ze(c[C]) : bt(c[C].default)), m), {});
|
|
1288
|
+
return (!I || !b.find((m) => m == "id")) && (u.id = `${t}-${Date.now()}`), u;
|
|
1279
1289
|
}
|
|
1280
|
-
function ge(
|
|
1281
|
-
const
|
|
1282
|
-
if (
|
|
1283
|
-
let
|
|
1284
|
-
const
|
|
1285
|
-
return
|
|
1290
|
+
function ge(A, c = {}, t) {
|
|
1291
|
+
const b = _n[A];
|
|
1292
|
+
if (b) {
|
|
1293
|
+
let I = Ze(b);
|
|
1294
|
+
const u = On[A];
|
|
1295
|
+
return I = u ? u({ getSchemaByType: ge }, I, c, t) : I, I;
|
|
1286
1296
|
}
|
|
1287
1297
|
return null;
|
|
1288
1298
|
}
|
|
1289
|
-
function
|
|
1290
|
-
var
|
|
1291
|
-
function
|
|
1299
|
+
function Xo(A, c, t) {
|
|
1300
|
+
var D;
|
|
1301
|
+
function b() {
|
|
1292
1302
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
1293
1303
|
}
|
|
1294
|
-
|
|
1295
|
-
const
|
|
1296
|
-
function
|
|
1297
|
-
return (
|
|
1304
|
+
b();
|
|
1305
|
+
const I = t && t.getStyles && t.getStyles() || "", u = t && t.getDesignerClass && t.getDesignerClass() || "", m = X();
|
|
1306
|
+
function C() {
|
|
1307
|
+
return (c == null ? void 0 : c.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
1298
1308
|
}
|
|
1299
1309
|
function p() {
|
|
1300
1310
|
return !1;
|
|
1301
1311
|
}
|
|
1302
1312
|
function x() {
|
|
1303
|
-
return (
|
|
1313
|
+
return (c == null ? void 0 : c.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
1304
1314
|
}
|
|
1305
|
-
function
|
|
1306
|
-
return (
|
|
1315
|
+
function k() {
|
|
1316
|
+
return (c == null ? void 0 : c.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
1307
1317
|
}
|
|
1308
|
-
function
|
|
1318
|
+
function s(i) {
|
|
1309
1319
|
if (!i || !i.value)
|
|
1310
1320
|
return null;
|
|
1311
1321
|
if (i.value.schema && i.value.schema.type === "component")
|
|
1312
1322
|
return i.value;
|
|
1313
|
-
const
|
|
1314
|
-
return
|
|
1323
|
+
const E = X(i == null ? void 0 : i.value.parent), h = s(E);
|
|
1324
|
+
return h || null;
|
|
1315
1325
|
}
|
|
1316
|
-
function
|
|
1317
|
-
const { componentInstance:
|
|
1318
|
-
return !
|
|
1326
|
+
function y(i = c) {
|
|
1327
|
+
const { componentInstance: E, designerItemElementRef: h } = i;
|
|
1328
|
+
return !E || !E.value ? null : E.value.canMove ? h : y(i.parent);
|
|
1319
1329
|
}
|
|
1320
|
-
function
|
|
1330
|
+
function l(i) {
|
|
1321
1331
|
return !!t && t.canAccepts(i);
|
|
1322
1332
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return (
|
|
1333
|
+
function n() {
|
|
1334
|
+
return (c == null ? void 0 : c.schema.label) || (c == null ? void 0 : c.schema.title) || (c == null ? void 0 : c.schema.name);
|
|
1325
1335
|
}
|
|
1326
|
-
function
|
|
1336
|
+
function o() {
|
|
1327
1337
|
}
|
|
1328
|
-
function g(i,
|
|
1329
|
-
|
|
1338
|
+
function g(i, E) {
|
|
1339
|
+
E && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(E);
|
|
1330
1340
|
}
|
|
1331
|
-
function
|
|
1332
|
-
const { componentType:
|
|
1333
|
-
let
|
|
1334
|
-
t && t.onResolveNewComponentSchema && (
|
|
1335
|
-
const
|
|
1336
|
-
return
|
|
1341
|
+
function d(i, E) {
|
|
1342
|
+
const { componentType: h } = i;
|
|
1343
|
+
let $ = ge(h, i, E);
|
|
1344
|
+
t && t.onResolveNewComponentSchema && ($ = t.onResolveNewComponentSchema(i, $));
|
|
1345
|
+
const V = h.toLowerCase().replace("-", "_");
|
|
1346
|
+
return $ && !$.id && $.type === h && ($.id = `${V}_${Math.random().toString().slice(2, 6)}`), $;
|
|
1337
1347
|
}
|
|
1338
|
-
function
|
|
1339
|
-
const
|
|
1340
|
-
|
|
1341
|
-
let r = ge(
|
|
1342
|
-
t && t.onAcceptNewChildElement && (r = t.onAcceptNewChildElement(i,
|
|
1343
|
-
const
|
|
1344
|
-
return r && !r.id && r.type ===
|
|
1348
|
+
function B(i, E) {
|
|
1349
|
+
const h = String(i.getAttribute("data-controltype")), $ = i.getAttribute("data-feature"), V = $ ? JSON.parse($) : {};
|
|
1350
|
+
V.parentComponentInstance = m.value;
|
|
1351
|
+
let r = ge(h, V);
|
|
1352
|
+
t && t.onAcceptNewChildElement && (r = t.onAcceptNewChildElement(i, E, r));
|
|
1353
|
+
const U = h.toLowerCase().replace("-", "_");
|
|
1354
|
+
return r && !r.id && r.type === h && (r.id = `${U}_${Math.random().toString().slice(2, 6)}`), r;
|
|
1345
1355
|
}
|
|
1346
|
-
function
|
|
1356
|
+
function O(i) {
|
|
1347
1357
|
}
|
|
1348
1358
|
function _(...i) {
|
|
1349
1359
|
if (t && t.getPropsConfig)
|
|
1350
1360
|
return t.getPropsConfig(...i);
|
|
1351
1361
|
}
|
|
1352
|
-
return
|
|
1353
|
-
canMove:
|
|
1362
|
+
return m.value = {
|
|
1363
|
+
canMove: C(),
|
|
1354
1364
|
canSelectParent: p(),
|
|
1355
1365
|
canDelete: x(),
|
|
1356
|
-
canNested: !
|
|
1357
|
-
contents:
|
|
1358
|
-
elementRef:
|
|
1359
|
-
parent: (
|
|
1360
|
-
schema:
|
|
1361
|
-
styles:
|
|
1362
|
-
designerClass:
|
|
1363
|
-
canAccepts:
|
|
1364
|
-
getBelongedComponentInstance:
|
|
1365
|
-
getDraggableDesignItemElement:
|
|
1366
|
-
getDraggingDisplayText:
|
|
1366
|
+
canNested: !k(),
|
|
1367
|
+
contents: c == null ? void 0 : c.schema.contents,
|
|
1368
|
+
elementRef: A,
|
|
1369
|
+
parent: (D = c == null ? void 0 : c.parent) == null ? void 0 : D.componentInstance,
|
|
1370
|
+
schema: c == null ? void 0 : c.schema,
|
|
1371
|
+
styles: I,
|
|
1372
|
+
designerClass: u,
|
|
1373
|
+
canAccepts: l,
|
|
1374
|
+
getBelongedComponentInstance: s,
|
|
1375
|
+
getDraggableDesignItemElement: y,
|
|
1376
|
+
getDraggingDisplayText: n,
|
|
1367
1377
|
getPropConfig: _,
|
|
1368
|
-
getDragScopeElement:
|
|
1378
|
+
getDragScopeElement: o,
|
|
1369
1379
|
onAcceptMovedChildElement: g,
|
|
1370
|
-
onAcceptNewChildElement:
|
|
1371
|
-
onChildElementMovedOut:
|
|
1372
|
-
addNewChildComponentSchema:
|
|
1373
|
-
updateDragAndDropRules:
|
|
1374
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
1375
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
1376
|
-
},
|
|
1380
|
+
onAcceptNewChildElement: B,
|
|
1381
|
+
onChildElementMovedOut: O,
|
|
1382
|
+
addNewChildComponentSchema: d,
|
|
1383
|
+
updateDragAndDropRules: b,
|
|
1384
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || X(!1),
|
|
1385
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || X(!1)
|
|
1386
|
+
}, m;
|
|
1377
1387
|
}
|
|
1378
|
-
function
|
|
1379
|
-
var
|
|
1380
|
-
function
|
|
1388
|
+
function Wo(A, c, t) {
|
|
1389
|
+
var D;
|
|
1390
|
+
function b() {
|
|
1381
1391
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
1382
1392
|
}
|
|
1383
|
-
|
|
1384
|
-
const
|
|
1385
|
-
function
|
|
1393
|
+
b();
|
|
1394
|
+
const I = t && t.getStyles && t.getStyles() || "", u = X();
|
|
1395
|
+
function m() {
|
|
1386
1396
|
return t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
1387
1397
|
}
|
|
1388
|
-
function
|
|
1398
|
+
function C() {
|
|
1389
1399
|
return !1;
|
|
1390
1400
|
}
|
|
1391
1401
|
function p() {
|
|
@@ -1394,80 +1404,80 @@ function Ho(S, f, t) {
|
|
|
1394
1404
|
function x() {
|
|
1395
1405
|
return t && t.checkCanAddComponent ? t.checkCanAddComponent() : !0;
|
|
1396
1406
|
}
|
|
1397
|
-
function
|
|
1407
|
+
function k() {
|
|
1398
1408
|
return !0;
|
|
1399
1409
|
}
|
|
1400
|
-
function
|
|
1410
|
+
function s(i) {
|
|
1401
1411
|
if (!i || !i.value)
|
|
1402
1412
|
return null;
|
|
1403
|
-
const
|
|
1404
|
-
return
|
|
1413
|
+
const E = X(i == null ? void 0 : i.value.parent), h = s(E);
|
|
1414
|
+
return h || null;
|
|
1405
1415
|
}
|
|
1406
|
-
function
|
|
1407
|
-
const { componentInstance:
|
|
1408
|
-
return !
|
|
1416
|
+
function y(i = c) {
|
|
1417
|
+
const { componentInstance: E, designerItemElementRef: h } = i;
|
|
1418
|
+
return !E || !E.value ? null : E.value.canMove || E.value.canAdd || E.value.canDelete ? h : y(i.parent);
|
|
1409
1419
|
}
|
|
1410
|
-
function
|
|
1420
|
+
function l(i) {
|
|
1411
1421
|
return !!t && t.canAccepts(i);
|
|
1412
1422
|
}
|
|
1413
|
-
function
|
|
1414
|
-
return (
|
|
1423
|
+
function n() {
|
|
1424
|
+
return (c == null ? void 0 : c.schema.label) || (c == null ? void 0 : c.schema.title) || (c == null ? void 0 : c.schema.name);
|
|
1415
1425
|
}
|
|
1416
|
-
function
|
|
1426
|
+
function o() {
|
|
1417
1427
|
}
|
|
1418
|
-
function g(i,
|
|
1419
|
-
|
|
1428
|
+
function g(i, E) {
|
|
1429
|
+
E && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(E);
|
|
1420
1430
|
}
|
|
1421
|
-
function
|
|
1422
|
-
const { componentType:
|
|
1423
|
-
let
|
|
1424
|
-
t && t.onResolveNewComponentSchema && (
|
|
1425
|
-
const
|
|
1426
|
-
return
|
|
1431
|
+
function d(i) {
|
|
1432
|
+
const { componentType: E } = i;
|
|
1433
|
+
let h = ge(E, i);
|
|
1434
|
+
t && t.onResolveNewComponentSchema && (h = t.onResolveNewComponentSchema(i, h));
|
|
1435
|
+
const $ = E.toLowerCase().replace("-", "_");
|
|
1436
|
+
return h && !h.id && h.type === E && (h.id = `${$}_${Math.random().toString().slice(2, 6)}`), h;
|
|
1427
1437
|
}
|
|
1428
|
-
function
|
|
1429
|
-
const
|
|
1430
|
-
|
|
1431
|
-
let r = ge(
|
|
1432
|
-
t && t.onAcceptNewChildElement && (r = t.onAcceptNewChildElement(i,
|
|
1433
|
-
const
|
|
1434
|
-
return r && !r.id && r.type ===
|
|
1438
|
+
function B(i, E) {
|
|
1439
|
+
const h = String(i.getAttribute("data-controltype")), $ = i.getAttribute("data-feature"), V = $ ? JSON.parse($) : {};
|
|
1440
|
+
V.parentComponentInstance = u.value;
|
|
1441
|
+
let r = ge(h, V);
|
|
1442
|
+
t && t.onAcceptNewChildElement && (r = t.onAcceptNewChildElement(i, E, r));
|
|
1443
|
+
const U = h.toLowerCase().replace("-", "_");
|
|
1444
|
+
return r && !r.id && r.type === h && (r.id = `${U}_${Math.random().toString().slice(2, 6)}`), r;
|
|
1435
1445
|
}
|
|
1436
|
-
function
|
|
1446
|
+
function O(i) {
|
|
1437
1447
|
}
|
|
1438
1448
|
function _(...i) {
|
|
1439
1449
|
return t && t.getPropsConfig ? t.getPropsConfig(...i) : [];
|
|
1440
1450
|
}
|
|
1441
|
-
return
|
|
1442
|
-
canMove:
|
|
1443
|
-
canSelectParent:
|
|
1451
|
+
return u.value = {
|
|
1452
|
+
canMove: m(),
|
|
1453
|
+
canSelectParent: C(),
|
|
1444
1454
|
canAdd: x(),
|
|
1445
1455
|
canDelete: p(),
|
|
1446
|
-
canNested: !
|
|
1456
|
+
canNested: !k(),
|
|
1447
1457
|
contents: [],
|
|
1448
|
-
elementRef:
|
|
1449
|
-
parent: (
|
|
1450
|
-
schema:
|
|
1451
|
-
styles:
|
|
1452
|
-
canAccepts:
|
|
1453
|
-
getBelongedComponentInstance:
|
|
1454
|
-
getDraggableDesignItemElement:
|
|
1455
|
-
getDraggingDisplayText:
|
|
1458
|
+
elementRef: A,
|
|
1459
|
+
parent: (D = c.parent) == null ? void 0 : D.componentInstance,
|
|
1460
|
+
schema: c.schema,
|
|
1461
|
+
styles: I,
|
|
1462
|
+
canAccepts: l,
|
|
1463
|
+
getBelongedComponentInstance: s,
|
|
1464
|
+
getDraggableDesignItemElement: y,
|
|
1465
|
+
getDraggingDisplayText: n,
|
|
1456
1466
|
getPropConfig: _,
|
|
1457
|
-
getDragScopeElement:
|
|
1467
|
+
getDragScopeElement: o,
|
|
1458
1468
|
onAcceptMovedChildElement: g,
|
|
1459
|
-
onAcceptNewChildElement:
|
|
1460
|
-
onChildElementMovedOut:
|
|
1461
|
-
addNewChildComponentSchema:
|
|
1462
|
-
updateDragAndDropRules:
|
|
1463
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
1464
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
1465
|
-
},
|
|
1469
|
+
onAcceptNewChildElement: B,
|
|
1470
|
+
onChildElementMovedOut: O,
|
|
1471
|
+
addNewChildComponentSchema: d,
|
|
1472
|
+
updateDragAndDropRules: b,
|
|
1473
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || X(!1),
|
|
1474
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || X(!1)
|
|
1475
|
+
}, u;
|
|
1466
1476
|
}
|
|
1467
1477
|
export {
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1478
|
+
Ho as FDesignerCanvas,
|
|
1479
|
+
Be as FDesignerItem,
|
|
1480
|
+
Fn as designerCanvasProps,
|
|
1481
|
+
Xo as useDesignerComponent,
|
|
1482
|
+
Wo as useDesignerInnerComponent
|
|
1473
1483
|
};
|