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