@farris/ui-vue 1.6.5-beta.7 → 1.6.5-beta.8
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 +65 -65
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +28 -29
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +521 -517
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +134 -134
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +192 -192
- package/components/capsule/index.umd.cjs +1 -1
- package/components/code-editor/index.esm.js +8 -8
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +72 -72
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +291 -289
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +163 -157
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +113 -112
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +3 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +10 -10
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1122 -1121
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +190 -190
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2693 -2693
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1604 -1601
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1082 -1079
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +973 -1040
- package/components/discussion-editor/index.umd.cjs +6 -6
- package/components/dropdown/index.esm.js +335 -330
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +8 -8
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +6 -6
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +344 -344
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +8 -8
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1470 -1460
- package/components/expression-editor/index.umd.cjs +3 -3
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +853 -843
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +922 -911
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +12 -12
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/html-template/index.esm.js +164 -164
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +198 -198
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +64 -64
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +140 -140
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +111 -111
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +90 -90
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +104 -108
- package/components/list-view/index.umd.cjs +3 -3
- package/components/locale/index.esm.js +833 -901
- package/components/locale/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +1352 -1351
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1311 -1307
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +1059 -1127
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.esm.js +7 -7
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +9 -9
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +106 -106
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +326 -326
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +168 -167
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +739 -737
- package/components/order/index.umd.cjs +4 -4
- package/components/page-footer/index.esm.js +94 -94
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +942 -939
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +82 -82
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +1 -1
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +113 -113
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.esm.js +151 -150
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +565 -565
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4142 -4190
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +182 -182
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +106 -106
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +409 -409
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1488 -1478
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +779 -776
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1765 -1762
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/search-box/index.esm.js +114 -114
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1184 -1181
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +163 -163
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +927 -916
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/splitter/index.esm.js +3 -3
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +133 -133
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +76 -72
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1527 -1524
- package/components/tabs/index.umd.cjs +2 -2
- package/components/tags/index.esm.js +93 -93
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +138 -138
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +361 -361
- package/components/textarea/index.umd.cjs +2 -2
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +130 -134
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +25 -25
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +1746 -1743
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +170 -170
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +196 -196
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +8 -8
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +9 -9
- package/components/weather/index.umd.cjs +2 -2
- package/farris.all.esm.js +16987 -17002
- package/farris.all.umd.cjs +27 -27
- package/package.json +1 -1
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
- package/components/time-picker/index.css +0 -1
- package/components/time-picker/index.esm.js +0 -9793
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/time-picker/package.json +0 -8
- package/components/time-picker/style.js +0 -6
- package/designer/button-edit/index.css +0 -1
- package/designer/button-edit/index.esm.js +0 -4856
- package/designer/button-edit/index.umd.cjs +0 -1
- package/designer/checkbox/index.esm.js +0 -250
- package/designer/checkbox/index.umd.cjs +0 -1
- package/designer/checkbox-group/index.esm.js +0 -377
- package/designer/checkbox-group/index.umd.cjs +0 -1
- package/designer/data-grid/index.css +0 -1
- package/designer/data-grid/index.esm.js +0 -15413
- package/designer/data-grid/index.umd.cjs +0 -23
- package/designer/data-view/index.esm.js +0 -854
- package/designer/data-view/index.umd.cjs +0 -38
- package/designer/drawer/index.css +0 -1
- package/designer/drawer/index.esm.js +0 -525
- package/designer/drawer/index.umd.cjs +0 -1
- package/designer/farris-designer.all.esm.js +0 -22320
- package/designer/farris-designer.all.umd.cjs +0 -34
- package/designer/index.css +0 -1
- package/designer/input-group/index.esm.js +0 -1098
- package/designer/input-group/index.umd.cjs +0 -1
- package/designer/list-view/index.css +0 -1
- package/designer/list-view/index.esm.js +0 -4675
- package/designer/list-view/index.umd.cjs +0 -40
- package/designer/radio-group/index.css +0 -1
- package/designer/radio-group/index.esm.js +0 -6980
- package/designer/radio-group/index.umd.cjs +0 -1
- package/designer/tree-grid/index.esm.js +0 -1099
- package/designer/tree-grid/index.umd.cjs +0 -1
|
@@ -8,7 +8,7 @@ import { LocaleService as It } from "../locale/index.esm.js";
|
|
|
8
8
|
import { getCustomClass as dt, withInstall as dr, FormSchemaEntityField$Type as sn, FormSchemaEntityFieldTypeName as cn, getMaxZIndex as fr } from "../common/index.esm.js";
|
|
9
9
|
import { useResizeObserver as pr } from "@vueuse/core";
|
|
10
10
|
import { getHierarchyRow as mr, useIdentify as vr, useGroupData as gr, useFilter as hr, useHierarchy as yr, useLoading as br, useDataView as Cr, useSelection as wr, useSelectHierarchyItem as Sr, usePagination as Tr, useDataViewContainerStyle as Fr, useCommandColumn as xr, useSettingColumn as Br, useColumn as Dr, useSort as kr, useGroupColumn as Er, useRow as Mr, useEdit as Ir, useVisualDataBound as Or, useVisualDataCell as Nr, useVisualDataRow as Pr, useVisualData as jr, useCellPosition as Lr, useSidebar as Vr, useVirtualScroll as $r, useFitColumn as Ar, useFilterHistory as Rr, useColumnFilter as zr, useDragColumn as Hr, getColumnHeader as _r, getSidebar as qr, getDisableMask as Ur, getHorizontalScrollbar as Gr, getVerticalScrollbar as Wr, getEmpty as Yr, getPagination as Xr, getSummary as Jr } from "../data-view/index.esm.js";
|
|
11
|
-
import { getSchemaByTypeForDesigner as bn,
|
|
11
|
+
import { getSchemaByTypeForDesigner as bn, schemaMapForDesigner as Qr, propertyConfigSchemaMapForDesigner as Zr, propertyEffectMapForDesigner as Kr, schemaResolverMapForDesigner as ea, createPropsResolver as Cn, resolveAppearance as ta } from "../dynamic-resolver/index.esm.js";
|
|
12
12
|
import "../designer-canvas/index.esm.js";
|
|
13
13
|
import "../property-panel/index.esm.js";
|
|
14
14
|
import wn from "../accordion/index.esm.js";
|
|
@@ -189,23 +189,23 @@ var xo = { exports: {} };
|
|
|
189
189
|
}
|
|
190
190
|
return r[u].exports;
|
|
191
191
|
}
|
|
192
|
-
for (var f = typeof xt == "function" && xt,
|
|
192
|
+
for (var f = typeof xt == "function" && xt, p = 0; p < l.length; p++) a(l[p]);
|
|
193
193
|
return a;
|
|
194
194
|
}
|
|
195
195
|
return n;
|
|
196
196
|
}())({
|
|
197
197
|
1: [function(n, o, r) {
|
|
198
198
|
var l = {}, a = "(?:^|\\s)", f = "(?:\\s|$)";
|
|
199
|
-
function
|
|
199
|
+
function p(c) {
|
|
200
200
|
var b = l[c];
|
|
201
201
|
return b ? b.lastIndex = 0 : l[c] = b = new RegExp(a + c + f, "g"), b;
|
|
202
202
|
}
|
|
203
203
|
function u(c, b) {
|
|
204
204
|
var i = c.className;
|
|
205
|
-
i.length ?
|
|
205
|
+
i.length ? p(b).test(i) || (c.className += " " + b) : c.className = b;
|
|
206
206
|
}
|
|
207
207
|
function v(c, b) {
|
|
208
|
-
c.className = c.className.replace(
|
|
208
|
+
c.className = c.className.replace(p(b), " ").trim();
|
|
209
209
|
}
|
|
210
210
|
o.exports = {
|
|
211
211
|
add: u,
|
|
@@ -214,12 +214,12 @@ var xo = { exports: {} };
|
|
|
214
214
|
}, {}],
|
|
215
215
|
2: [function(n, o, r) {
|
|
216
216
|
(function(l) {
|
|
217
|
-
var a = n("contra/emitter"), f = n("crossvent"),
|
|
218
|
-
function c(
|
|
217
|
+
var a = n("contra/emitter"), f = n("crossvent"), p = n("./classes"), u = document, v = u.documentElement;
|
|
218
|
+
function c(S, B) {
|
|
219
219
|
var P = arguments.length;
|
|
220
|
-
P === 1 && Array.isArray(
|
|
221
|
-
var
|
|
222
|
-
K.moves === void 0 && (K.moves =
|
|
220
|
+
P === 1 && Array.isArray(S) === !1 && (B = S, S = []);
|
|
221
|
+
var L, H, $, J, N, j, M, O, z, oe = null, le, X, pe = !1, ce = 0, se, K = B || {};
|
|
222
|
+
K.moves === void 0 && (K.moves = D), K.accepts === void 0 && (K.accepts = D), K.invalid === void 0 && (K.invalid = pt), K.containers === void 0 && (K.containers = S || []), K.isContainer === void 0 && (K.isContainer = T), K.copy === void 0 && (K.copy = !1), K.copySortSource === void 0 && (K.copySortSource = !1), K.revertOnSpill === void 0 && (K.revertOnSpill = !1), K.removeOnSpill === void 0 && (K.removeOnSpill = !1), K.direction === void 0 && (K.direction = "vertical"), K.ignoreInputTextSelection === void 0 && (K.ignoreInputTextSelection = !0), K.mirrorContainer === void 0 && (K.mirrorContainer = u.body);
|
|
223
223
|
var fe = a({
|
|
224
224
|
containers: K.containers,
|
|
225
225
|
start: Pe,
|
|
@@ -231,152 +231,152 @@ var xo = { exports: {} };
|
|
|
231
231
|
dragging: !1
|
|
232
232
|
});
|
|
233
233
|
return K.removeOnSpill === !0 && fe.on("over", Pt).on("out", jt), Re(), fe;
|
|
234
|
-
function Je(
|
|
235
|
-
return fe.containers.indexOf(
|
|
234
|
+
function Je(k) {
|
|
235
|
+
return fe.containers.indexOf(k) !== -1 || K.isContainer(k);
|
|
236
236
|
}
|
|
237
|
-
function Re(
|
|
238
|
-
var _ =
|
|
237
|
+
function Re(k) {
|
|
238
|
+
var _ = k ? "remove" : "add";
|
|
239
239
|
s(v, _, "mousedown", he), s(v, _, "mouseup", qe);
|
|
240
240
|
}
|
|
241
|
-
function Ne(
|
|
242
|
-
var _ =
|
|
241
|
+
function Ne(k) {
|
|
242
|
+
var _ = k ? "remove" : "add";
|
|
243
243
|
s(v, _, "mousemove", ft);
|
|
244
244
|
}
|
|
245
|
-
function it(
|
|
246
|
-
var _ =
|
|
245
|
+
function it(k) {
|
|
246
|
+
var _ = k ? "remove" : "add";
|
|
247
247
|
f[_](v, "selectstart", lt), f[_](v, "click", lt);
|
|
248
248
|
}
|
|
249
249
|
function Qe() {
|
|
250
250
|
Re(!0), qe({});
|
|
251
251
|
}
|
|
252
|
-
function lt(
|
|
253
|
-
le &&
|
|
252
|
+
function lt(k) {
|
|
253
|
+
le && k.preventDefault();
|
|
254
254
|
}
|
|
255
|
-
function he(
|
|
256
|
-
J =
|
|
257
|
-
var _ = d(
|
|
255
|
+
function he(k) {
|
|
256
|
+
J = k.clientX, N = k.clientY;
|
|
257
|
+
var _ = d(k) !== 1 || k.metaKey || k.ctrlKey;
|
|
258
258
|
if (!_) {
|
|
259
|
-
var Q =
|
|
260
|
-
re && (le = re, Ne(),
|
|
259
|
+
var Q = k.target, re = ze(Q);
|
|
260
|
+
re && (le = re, Ne(), k.type === "mousedown" && (g(Q) ? Q.focus() : k.preventDefault()));
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
function ft(
|
|
263
|
+
function ft(k) {
|
|
264
264
|
if (le) {
|
|
265
|
-
if (d(
|
|
265
|
+
if (d(k) === 0) {
|
|
266
266
|
qe({});
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
|
-
if (!(
|
|
269
|
+
if (!(k.clientX !== void 0 && Math.abs(k.clientX - J) <= (K.slideFactorX || 0) && k.clientY !== void 0 && Math.abs(k.clientY - N) <= (K.slideFactorY || 0))) {
|
|
270
270
|
if (K.ignoreInputTextSelection) {
|
|
271
|
-
var _ =
|
|
271
|
+
var _ = E("clientX", k) || 0, Q = E("clientY", k) || 0, re = u.elementFromPoint(_, Q);
|
|
272
272
|
if (g(re))
|
|
273
273
|
return;
|
|
274
274
|
}
|
|
275
275
|
var ue = le;
|
|
276
|
-
Ne(!0), it(), Ze(), _e(ue),
|
|
276
|
+
Ne(!0), it(), Ze(), _e(ue), p.add(O || $, "gu-transit"), Vt(), Lt(), ce = 0, Ae(k);
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
function ze(
|
|
281
|
-
if (!(fe.dragging &&
|
|
282
|
-
for (var _ =
|
|
283
|
-
if (K.invalid(
|
|
280
|
+
function ze(k) {
|
|
281
|
+
if (!(fe.dragging && L) && !Je(k)) {
|
|
282
|
+
for (var _ = k; m(k) && Je(m(k)) === !1; )
|
|
283
|
+
if (K.invalid(k, _) || (k = m(k), !k))
|
|
284
284
|
return;
|
|
285
|
-
var Q =
|
|
286
|
-
if (Q && !K.invalid(
|
|
287
|
-
var re = K.moves(
|
|
285
|
+
var Q = m(k);
|
|
286
|
+
if (Q && !K.invalid(k, _)) {
|
|
287
|
+
var re = K.moves(k, Q, _, F(k));
|
|
288
288
|
if (re)
|
|
289
289
|
return {
|
|
290
|
-
item:
|
|
290
|
+
item: k,
|
|
291
291
|
source: Q
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
function He(
|
|
297
|
-
return !!ze(
|
|
296
|
+
function He(k) {
|
|
297
|
+
return !!ze(k);
|
|
298
298
|
}
|
|
299
|
-
function Pe(
|
|
300
|
-
var _ = ze(
|
|
299
|
+
function Pe(k) {
|
|
300
|
+
var _ = ze(k);
|
|
301
301
|
_ && _e(_);
|
|
302
302
|
}
|
|
303
|
-
function _e(
|
|
304
|
-
qt(
|
|
303
|
+
function _e(k) {
|
|
304
|
+
qt(k.item, k.source) && (O = k.item.cloneNode(!0), fe.emit("cloned", O, k.item, "copy")), H = k.source, $ = k.item, j = M = F(k.item), fe.dragging = !0, fe.emit("drag", $, H);
|
|
305
305
|
}
|
|
306
306
|
function pt() {
|
|
307
307
|
return !1;
|
|
308
308
|
}
|
|
309
309
|
function Ze() {
|
|
310
310
|
if (fe.dragging) {
|
|
311
|
-
var
|
|
312
|
-
st(
|
|
311
|
+
var k = O || $;
|
|
312
|
+
st(k, m(k));
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
function $e() {
|
|
316
316
|
le = !1, Ne(!0), it(!0);
|
|
317
317
|
}
|
|
318
|
-
function qe(
|
|
318
|
+
function qe(k) {
|
|
319
319
|
if ($e(), !!fe.dragging) {
|
|
320
|
-
var _ =
|
|
321
|
-
de && (
|
|
320
|
+
var _ = O || $, Q = E("clientX", k) || 0, re = E("clientY", k) || 0, ue = w(L, Q, re), de = be(ue, Q, re);
|
|
321
|
+
de && (O && K.copySortSource || !O || de !== H) ? st(_, de) : K.removeOnSpill ? ct() : A();
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
function st(
|
|
325
|
-
var Q =
|
|
326
|
-
|
|
324
|
+
function st(k, _) {
|
|
325
|
+
var Q = m(k);
|
|
326
|
+
O && K.copySortSource && _ === H && Q.removeChild($), ye(_) ? fe.emit("cancel", k, H) : fe.emit("drop", k, _, H, M), ie();
|
|
327
327
|
}
|
|
328
328
|
function ct() {
|
|
329
329
|
if (fe.dragging) {
|
|
330
|
-
var
|
|
331
|
-
_ && _.removeChild(
|
|
330
|
+
var k = O || $, _ = m(k);
|
|
331
|
+
_ && _.removeChild(k), fe.emit(O ? "cancel" : "remove", k, _, H), ie();
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
function A(
|
|
334
|
+
function A(k) {
|
|
335
335
|
if (fe.dragging) {
|
|
336
|
-
var _ = arguments.length > 0 ?
|
|
337
|
-
ue === !1 && _ && (
|
|
336
|
+
var _ = arguments.length > 0 ? k : K.revertOnSpill, Q = O || $, re = m(Q), ue = ye(re);
|
|
337
|
+
ue === !1 && _ && (O ? re && re.removeChild(O) : H.insertBefore(Q, j)), ue || _ ? fe.emit("cancel", Q, H, H) : fe.emit("drop", Q, re, H, M), ie();
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
function ie() {
|
|
341
|
-
var
|
|
342
|
-
$e(), $t(), At(),
|
|
341
|
+
var k = O || $;
|
|
342
|
+
$e(), $t(), At(), k && p.rm(k, "gu-transit"), z && clearTimeout(z), fe.dragging = !1, oe && fe.emit("out", k, oe, H), fe.emit("dragend", k, ce), H = $ = O = j = M = z = oe = null;
|
|
343
343
|
}
|
|
344
|
-
function ye(
|
|
344
|
+
function ye(k, _) {
|
|
345
345
|
var Q;
|
|
346
|
-
return _ !== void 0 ? Q = _ :
|
|
346
|
+
return _ !== void 0 ? Q = _ : L ? Q = M : Q = F(O || $), k === H && Q === j;
|
|
347
347
|
}
|
|
348
|
-
function be(
|
|
349
|
-
for (var re =
|
|
350
|
-
re =
|
|
348
|
+
function be(k, _, Q) {
|
|
349
|
+
for (var re = k; re && !ue(); )
|
|
350
|
+
re = m(re);
|
|
351
351
|
return re;
|
|
352
352
|
function ue() {
|
|
353
353
|
var de = Je(re);
|
|
354
354
|
if (de === !1)
|
|
355
355
|
return !1;
|
|
356
|
-
var Oe = St(re,
|
|
357
|
-
return ke ? !0 : K.accepts(
|
|
356
|
+
var Oe = St(re, k), xe = Tt(re, Oe, _, Q), ke = ye(re, xe);
|
|
357
|
+
return ke ? !0 : K.accepts($, re, H, xe);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function Ae(
|
|
361
|
-
if (
|
|
360
|
+
function Ae(k) {
|
|
361
|
+
if (!L)
|
|
362
362
|
return;
|
|
363
|
-
|
|
364
|
-
var _ =
|
|
365
|
-
|
|
366
|
-
var re =
|
|
363
|
+
k.preventDefault();
|
|
364
|
+
var _ = E("clientX", k) || 0, Q = E("clientY", k) || 0;
|
|
365
|
+
L.style.left = _ - 2 + "px", L.style.top = Q - 2 + "px";
|
|
366
|
+
var re = O || $, ue = w(L, _, Q), de = be(ue, _, Q), Oe = de !== null && de !== oe;
|
|
367
367
|
(Oe || de === null) && (Ee(), oe = de, Le()), _t(ue, Q);
|
|
368
|
-
var xe =
|
|
369
|
-
if (de === H &&
|
|
368
|
+
var xe = m(re);
|
|
369
|
+
if (de === H && O && !K.copySortSource) {
|
|
370
370
|
xe && xe.removeChild(re);
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
373
373
|
var ke, je = St(de, ue);
|
|
374
374
|
if (pe = mt(je, de), je !== null)
|
|
375
375
|
ke = Tt(de, je, _, Q);
|
|
376
|
-
else if (K.revertOnSpill === !0 && !
|
|
376
|
+
else if (K.revertOnSpill === !0 && !O)
|
|
377
377
|
ke = j, de = H;
|
|
378
378
|
else {
|
|
379
|
-
|
|
379
|
+
O && xe && xe.removeChild(re), O && X && (X.style.display = "none");
|
|
380
380
|
return;
|
|
381
381
|
}
|
|
382
382
|
X.style.display = "block", Nt(ke, re, Oe), ke ? zt(je, ke) : Ht(de);
|
|
@@ -390,43 +390,43 @@ var xo = { exports: {} };
|
|
|
390
390
|
oe && Ce("out");
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
function Nt(
|
|
394
|
-
(
|
|
393
|
+
function Nt(k, _, Q) {
|
|
394
|
+
(k === _ || k === F(_)) && (M = F(_)), (k === null && Q || k !== _ && k !== F(_)) && (M = k);
|
|
395
395
|
}
|
|
396
|
-
function Pt(
|
|
397
|
-
|
|
396
|
+
function Pt(k) {
|
|
397
|
+
p.rm(k, "gu-hide");
|
|
398
398
|
}
|
|
399
|
-
function jt(
|
|
400
|
-
fe.dragging &&
|
|
399
|
+
function jt(k) {
|
|
400
|
+
fe.dragging && p.add(k, "gu-hide");
|
|
401
401
|
}
|
|
402
402
|
function Lt() {
|
|
403
|
-
|
|
403
|
+
L || (L = document.createElement("div"), L.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;", L.innerHTML = K.getMirrorText && K.getMirrorText($) || "控件", p.add(L, "gu-mirror"), K.mirrorContainer.appendChild(L), s(v, "add", "mousemove", Ae), p.add(K.mirrorContainer, "gu-unselectable"), fe.emit("cloned", L, $, "mirror"));
|
|
404
404
|
}
|
|
405
405
|
function Vt() {
|
|
406
|
-
if (X = document.createElement("div"),
|
|
407
|
-
var
|
|
408
|
-
X.style.left =
|
|
406
|
+
if (X = document.createElement("div"), p.add(X, "gu-insertion"), $) {
|
|
407
|
+
var k = $.getBoundingClientRect();
|
|
408
|
+
X.style.left = k.left + "px", X.style.top = k.top + "px";
|
|
409
409
|
}
|
|
410
410
|
pe = !1, K.mirrorContainer.appendChild(X);
|
|
411
411
|
}
|
|
412
412
|
function $t() {
|
|
413
|
-
|
|
413
|
+
L && (p.rm(K.mirrorContainer, "gu-unselectable"), s(v, "remove", "mousemove", Ae), m(L).removeChild(L), L = null);
|
|
414
414
|
}
|
|
415
415
|
function At() {
|
|
416
|
-
X && (
|
|
416
|
+
X && (m(X).removeChild(X), X = null);
|
|
417
417
|
}
|
|
418
|
-
function St(
|
|
419
|
-
for (var Q = _; Q !==
|
|
420
|
-
Q =
|
|
418
|
+
function St(k, _) {
|
|
419
|
+
for (var Q = _; Q !== k && m(Q) !== k; )
|
|
420
|
+
Q = m(Q);
|
|
421
421
|
return Q === v ? null : Q;
|
|
422
422
|
}
|
|
423
|
-
function mt(
|
|
423
|
+
function mt(k, _) {
|
|
424
424
|
if (!_)
|
|
425
425
|
return pe;
|
|
426
|
-
var Q =
|
|
426
|
+
var Q = k || _ && _.lastElementChild;
|
|
427
427
|
if (!Q)
|
|
428
428
|
return !0;
|
|
429
|
-
var re = getComputedStyle(
|
|
429
|
+
var re = getComputedStyle(k), ue = /^inline/.test(re.getPropertyValue("display")) || /^(left|right)$/.test(re.getPropertyValue("float"));
|
|
430
430
|
if (ue)
|
|
431
431
|
return !0;
|
|
432
432
|
if (_) {
|
|
@@ -440,10 +440,10 @@ var xo = { exports: {} };
|
|
|
440
440
|
}
|
|
441
441
|
return !0;
|
|
442
442
|
}
|
|
443
|
-
function Rt(
|
|
444
|
-
if (!
|
|
443
|
+
function Rt(k) {
|
|
444
|
+
if (!k.children || !k.children.length)
|
|
445
445
|
return !1;
|
|
446
|
-
for (const _ of Array.from(
|
|
446
|
+
for (const _ of Array.from(k.children)) {
|
|
447
447
|
const re = (_.className && _.className.split(" ") || []).filter((ue) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(ue));
|
|
448
448
|
if (!re.length)
|
|
449
449
|
return !1;
|
|
@@ -455,30 +455,30 @@ var xo = { exports: {} };
|
|
|
455
455
|
}
|
|
456
456
|
return !0;
|
|
457
457
|
}
|
|
458
|
-
function zt(
|
|
458
|
+
function zt(k, _) {
|
|
459
459
|
const Q = _.getBoundingClientRect();
|
|
460
460
|
if (X.style.left = Q.left + "px", X.style.top = Q.top + "px", pe) {
|
|
461
|
-
if (X.style.height = Q.height + "px", X.style.width = "4px",
|
|
462
|
-
const re =
|
|
461
|
+
if (X.style.height = Q.height + "px", X.style.width = "4px", k) {
|
|
462
|
+
const re = k.getBoundingClientRect();
|
|
463
463
|
re.top !== Q.top && (X.style.left = re.right + "px", X.style.top = re.top + "px", X.style.height = re.height + "px");
|
|
464
464
|
}
|
|
465
465
|
} else if (X.style.height = "4px", X.style.width = Q.width + "px", se) {
|
|
466
466
|
const re = se.getBoundingClientRect();
|
|
467
467
|
Q.top < re.top && (X.style.display = "none");
|
|
468
468
|
}
|
|
469
|
-
_ ===
|
|
469
|
+
_ === $ && $ && (X.style.display = "none");
|
|
470
470
|
}
|
|
471
|
-
function Ht(
|
|
471
|
+
function Ht(k) {
|
|
472
472
|
M = null;
|
|
473
|
-
var _ =
|
|
473
|
+
var _ = k.lastElementChild;
|
|
474
474
|
if (_) {
|
|
475
475
|
var Q = _.getBoundingClientRect();
|
|
476
|
-
pe ? (X.style.left = Q.right + "px", X.style.top = Q.top + "px", X.style.height = Q.height + "px", X.style.width = "4px") : (X.style.left = Q.left + "px", X.style.top = Q.bottom + "px", X.style.height = "4px", X.style.width = Q.width + "px"), _ ===
|
|
476
|
+
pe ? (X.style.left = Q.right + "px", X.style.top = Q.top + "px", X.style.height = Q.height + "px", X.style.width = "4px") : (X.style.left = Q.left + "px", X.style.top = Q.bottom + "px", X.style.height = "4px", X.style.width = Q.width + "px"), _ === $ && $ && (X.style.display = "none");
|
|
477
477
|
} else
|
|
478
478
|
X.style.display = "none";
|
|
479
479
|
}
|
|
480
|
-
function _t(
|
|
481
|
-
if (!K.mirrorContainer.contains(
|
|
480
|
+
function _t(k, _) {
|
|
481
|
+
if (!K.mirrorContainer.contains(k) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (se = b(k), !se || !se.contains(k)))
|
|
482
482
|
return;
|
|
483
483
|
const Q = document.querySelector(".dgComponentSelected"), re = se.getBoundingClientRect();
|
|
484
484
|
if (_ - 30 < re.top && se.scrollTop > 0) {
|
|
@@ -491,13 +491,13 @@ var xo = { exports: {} };
|
|
|
491
491
|
se.scrollBy(0, de), Q && se.contains(Q) && (ce = ce + de);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function Tt(
|
|
495
|
-
var ue = K.direction === "horizontal", de = K.direction === "mixed", Oe = _ !==
|
|
494
|
+
function Tt(k, _, Q, re) {
|
|
495
|
+
var ue = K.direction === "horizontal", de = K.direction === "mixed", Oe = _ !== k ? ke() : xe();
|
|
496
496
|
return Oe;
|
|
497
497
|
function xe() {
|
|
498
|
-
var Ce =
|
|
498
|
+
var Ce = k.children.length, Le, Ee, Te;
|
|
499
499
|
for (Le = 0; Le < Ce; Le++)
|
|
500
|
-
if (Ee =
|
|
500
|
+
if (Ee = k.children[Le], Te = Ee.getBoundingClientRect(), ue && Te.left + Te.width / 2 > Q || !de && !ue && Te.top + Te.height / 2 > re || de && Te.left + Te.width > Q && Te.top + Te.height > re)
|
|
501
501
|
return Ee;
|
|
502
502
|
return null;
|
|
503
503
|
}
|
|
@@ -507,41 +507,41 @@ var xo = { exports: {} };
|
|
|
507
507
|
var Le = re - Ce.top, Ee = Q - Ce.left, Te = Ce.bottom - re, vt = Ce.right - Q, gt = Math.min(Ee, vt, Le, Te), ht;
|
|
508
508
|
return pe ? ht = vt < Ee : ht = Te === gt || vt === gt || Ee === gt, je(ht);
|
|
509
509
|
}
|
|
510
|
-
return je(ue ? Q > Ce.left +
|
|
510
|
+
return je(ue ? Q > Ce.left + V(Ce) / 2 : re > Ce.top + y(Ce) / 2);
|
|
511
511
|
}
|
|
512
512
|
function je(Ce) {
|
|
513
|
-
return Ce ?
|
|
513
|
+
return Ce ? F(_) : _;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function qt(
|
|
517
|
-
return typeof K.copy == "boolean" ? K.copy : K.copy(
|
|
516
|
+
function qt(k, _) {
|
|
517
|
+
return typeof K.copy == "boolean" ? K.copy : K.copy(k, _);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
function b(
|
|
521
|
-
const
|
|
522
|
-
if (
|
|
523
|
-
const
|
|
524
|
-
return document.getElementById(
|
|
520
|
+
function b(S) {
|
|
521
|
+
const B = Array.from(window.scrollContainerList);
|
|
522
|
+
if (B.length === 1) {
|
|
523
|
+
const L = Array.from(window.scrollContainerList)[0];
|
|
524
|
+
return document.getElementById(L);
|
|
525
525
|
}
|
|
526
|
-
const P = i(
|
|
527
|
-
for (const
|
|
528
|
-
if (
|
|
529
|
-
return
|
|
526
|
+
const P = i(B);
|
|
527
|
+
for (const L of P)
|
|
528
|
+
if (L.contains(S))
|
|
529
|
+
return L;
|
|
530
530
|
return null;
|
|
531
531
|
}
|
|
532
|
-
function i(
|
|
533
|
-
const
|
|
534
|
-
return
|
|
535
|
-
const
|
|
536
|
-
|
|
537
|
-
}),
|
|
532
|
+
function i(S) {
|
|
533
|
+
const B = [];
|
|
534
|
+
return S.forEach((P) => {
|
|
535
|
+
const L = document.getElementById(P);
|
|
536
|
+
L && B.push(L);
|
|
537
|
+
}), B.sort((P, L) => P.contains(L) ? 1 : L.contains(P) ? -1 : 0), B;
|
|
538
538
|
}
|
|
539
|
-
function s(
|
|
539
|
+
function s(S, B, P, L) {
|
|
540
540
|
var H = {
|
|
541
541
|
mouseup: "touchend",
|
|
542
542
|
mousedown: "touchstart",
|
|
543
543
|
mousemove: "touchmove"
|
|
544
|
-
},
|
|
544
|
+
}, $ = {
|
|
545
545
|
mouseup: "pointerup",
|
|
546
546
|
mousedown: "pointerdown",
|
|
547
547
|
mousemove: "pointermove"
|
|
@@ -550,66 +550,66 @@ var xo = { exports: {} };
|
|
|
550
550
|
mousedown: "MSPointerDown",
|
|
551
551
|
mousemove: "MSPointerMove"
|
|
552
552
|
};
|
|
553
|
-
l.navigator.pointerEnabled ? f[
|
|
553
|
+
l.navigator.pointerEnabled ? f[B](S, $[P], L) : l.navigator.msPointerEnabled ? f[B](S, J[P], L) : (f[B](S, H[P], L), f[B](S, P, L));
|
|
554
554
|
}
|
|
555
|
-
function d(
|
|
556
|
-
if (
|
|
557
|
-
return
|
|
558
|
-
if (
|
|
559
|
-
return
|
|
560
|
-
if (
|
|
561
|
-
return
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
564
|
-
return
|
|
555
|
+
function d(S) {
|
|
556
|
+
if (S.touches !== void 0)
|
|
557
|
+
return S.touches.length;
|
|
558
|
+
if (S.which !== void 0 && S.which !== 0)
|
|
559
|
+
return S.which;
|
|
560
|
+
if (S.buttons !== void 0)
|
|
561
|
+
return S.buttons;
|
|
562
|
+
var B = S.button;
|
|
563
|
+
if (B !== void 0)
|
|
564
|
+
return B & 1 ? 1 : B & 2 ? 3 : B & 4 ? 2 : 0;
|
|
565
565
|
}
|
|
566
|
-
function w(
|
|
567
|
-
|
|
568
|
-
var
|
|
569
|
-
return
|
|
566
|
+
function w(S, B, P) {
|
|
567
|
+
S = S || {};
|
|
568
|
+
var L = S.className || "", H;
|
|
569
|
+
return S.className += " gu-hide", H = u.elementFromPoint(B, P), S.className = L, H;
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function T() {
|
|
572
572
|
return !1;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function D() {
|
|
575
575
|
return !0;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
return
|
|
577
|
+
function V(S) {
|
|
578
|
+
return S.width || S.right - S.left;
|
|
579
579
|
}
|
|
580
|
-
function y(
|
|
581
|
-
return
|
|
580
|
+
function y(S) {
|
|
581
|
+
return S.height || S.bottom - S.top;
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
return
|
|
583
|
+
function m(S) {
|
|
584
|
+
return S.parentNode === u ? null : S.parentNode;
|
|
585
585
|
}
|
|
586
|
-
function g(
|
|
587
|
-
return
|
|
586
|
+
function g(S) {
|
|
587
|
+
return S.tagName === "INPUT" || S.tagName === "TEXTAREA" || S.tagName === "SELECT" || x(S);
|
|
588
588
|
}
|
|
589
|
-
function
|
|
590
|
-
return !
|
|
589
|
+
function x(S) {
|
|
590
|
+
return !S || S.contentEditable === "false" ? !1 : S.contentEditable === "true" ? !0 : x(m(S));
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
return
|
|
594
|
-
function
|
|
595
|
-
var P =
|
|
592
|
+
function F(S) {
|
|
593
|
+
return S.nextElementSibling || B();
|
|
594
|
+
function B() {
|
|
595
|
+
var P = S;
|
|
596
596
|
do
|
|
597
597
|
P = P.nextSibling;
|
|
598
598
|
while (P && P.nodeType !== 1);
|
|
599
599
|
return P;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
return
|
|
602
|
+
function I(S) {
|
|
603
|
+
return S.targetTouches && S.targetTouches.length ? S.targetTouches[0] : S.changedTouches && S.changedTouches.length ? S.changedTouches[0] : S;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
var P =
|
|
605
|
+
function E(S, B) {
|
|
606
|
+
var P = I(B), L = {
|
|
607
607
|
pageX: "clientX",
|
|
608
608
|
// IE8
|
|
609
609
|
pageY: "clientY"
|
|
610
610
|
// IE8
|
|
611
611
|
};
|
|
612
|
-
return
|
|
612
|
+
return S in L && !(S in P) && L[S] in P && (S = L[S]), P[S];
|
|
613
613
|
}
|
|
614
614
|
o.exports = c;
|
|
615
615
|
}).call(this, typeof Ge < "u" ? Ge : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -621,21 +621,21 @@ var xo = { exports: {} };
|
|
|
621
621
|
}, {}],
|
|
622
622
|
4: [function(n, o, r) {
|
|
623
623
|
var l = n("ticky");
|
|
624
|
-
o.exports = function(f,
|
|
624
|
+
o.exports = function(f, p, u) {
|
|
625
625
|
f && l(function() {
|
|
626
|
-
f.apply(u || null,
|
|
626
|
+
f.apply(u || null, p || []);
|
|
627
627
|
});
|
|
628
628
|
};
|
|
629
629
|
}, { ticky: 10 }],
|
|
630
630
|
5: [function(n, o, r) {
|
|
631
631
|
var l = n("atoa"), a = n("./debounce");
|
|
632
|
-
o.exports = function(
|
|
632
|
+
o.exports = function(p, u) {
|
|
633
633
|
var v = u || {}, c = {};
|
|
634
|
-
return
|
|
635
|
-
return c[b] ? c[b].push(i) : c[b] = [i],
|
|
636
|
-
},
|
|
637
|
-
return i._once = !0,
|
|
638
|
-
},
|
|
634
|
+
return p === void 0 && (p = {}), p.on = function(b, i) {
|
|
635
|
+
return c[b] ? c[b].push(i) : c[b] = [i], p;
|
|
636
|
+
}, p.once = function(b, i) {
|
|
637
|
+
return i._once = !0, p.on(b, i), p;
|
|
638
|
+
}, p.off = function(b, i) {
|
|
639
639
|
var s = arguments.length;
|
|
640
640
|
if (s === 1)
|
|
641
641
|
delete c[b];
|
|
@@ -644,98 +644,98 @@ var xo = { exports: {} };
|
|
|
644
644
|
else {
|
|
645
645
|
var d = c[b];
|
|
646
646
|
if (!d)
|
|
647
|
-
return
|
|
647
|
+
return p;
|
|
648
648
|
d.splice(d.indexOf(i), 1);
|
|
649
649
|
}
|
|
650
|
-
return
|
|
651
|
-
},
|
|
650
|
+
return p;
|
|
651
|
+
}, p.emit = function() {
|
|
652
652
|
var b = l(arguments);
|
|
653
|
-
return
|
|
654
|
-
},
|
|
653
|
+
return p.emitterSnapshot(b.shift()).apply(this, b);
|
|
654
|
+
}, p.emitterSnapshot = function(b) {
|
|
655
655
|
var i = (c[b] || []).slice(0);
|
|
656
656
|
return function() {
|
|
657
|
-
var s = l(arguments), d = this ||
|
|
657
|
+
var s = l(arguments), d = this || p;
|
|
658
658
|
if (b === "error" && v.throws !== !1 && !i.length)
|
|
659
659
|
throw s.length === 1 ? s[0] : s;
|
|
660
|
-
return i.forEach(function(
|
|
661
|
-
v.async ? a(
|
|
662
|
-
}),
|
|
660
|
+
return i.forEach(function(T) {
|
|
661
|
+
v.async ? a(T, s, d) : T.apply(d, s), T._once && p.off(b, T);
|
|
662
|
+
}), p;
|
|
663
663
|
};
|
|
664
|
-
},
|
|
664
|
+
}, p;
|
|
665
665
|
};
|
|
666
666
|
}, { "./debounce": 4, atoa: 3 }],
|
|
667
667
|
6: [function(n, o, r) {
|
|
668
668
|
(function(l) {
|
|
669
|
-
var a = n("custom-event"), f = n("./eventmap"),
|
|
669
|
+
var a = n("custom-event"), f = n("./eventmap"), p = l.document, u = b, v = s, c = [];
|
|
670
670
|
l.addEventListener || (u = i, v = d), o.exports = {
|
|
671
671
|
add: u,
|
|
672
672
|
remove: v,
|
|
673
673
|
fabricate: w
|
|
674
674
|
};
|
|
675
|
-
function b(
|
|
676
|
-
return
|
|
675
|
+
function b(m, g, x, F) {
|
|
676
|
+
return m.addEventListener(g, x, F);
|
|
677
677
|
}
|
|
678
|
-
function i(
|
|
679
|
-
return
|
|
678
|
+
function i(m, g, x) {
|
|
679
|
+
return m.attachEvent("on" + g, D(m, g, x));
|
|
680
680
|
}
|
|
681
|
-
function s(
|
|
682
|
-
return
|
|
681
|
+
function s(m, g, x, F) {
|
|
682
|
+
return m.removeEventListener(g, x, F);
|
|
683
683
|
}
|
|
684
|
-
function d(
|
|
685
|
-
var
|
|
686
|
-
if (
|
|
687
|
-
return
|
|
684
|
+
function d(m, g, x) {
|
|
685
|
+
var F = V(m, g, x);
|
|
686
|
+
if (F)
|
|
687
|
+
return m.detachEvent("on" + g, F);
|
|
688
688
|
}
|
|
689
|
-
function w(
|
|
690
|
-
var
|
|
691
|
-
|
|
692
|
-
function
|
|
693
|
-
var
|
|
694
|
-
return
|
|
689
|
+
function w(m, g, x) {
|
|
690
|
+
var F = f.indexOf(g) === -1 ? E() : I();
|
|
691
|
+
m.dispatchEvent ? m.dispatchEvent(F) : m.fireEvent("on" + g, F);
|
|
692
|
+
function I() {
|
|
693
|
+
var S;
|
|
694
|
+
return p.createEvent ? (S = p.createEvent("Event"), S.initEvent(g, !0, !0)) : p.createEventObject && (S = p.createEventObject()), S;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
return new a(g, { detail:
|
|
696
|
+
function E() {
|
|
697
|
+
return new a(g, { detail: x });
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
return function(
|
|
702
|
-
var
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
},
|
|
706
|
-
|
|
707
|
-
},
|
|
700
|
+
function T(m, g, x) {
|
|
701
|
+
return function(I) {
|
|
702
|
+
var E = I || l.event;
|
|
703
|
+
E.target = E.target || E.srcElement, E.preventDefault = E.preventDefault || function() {
|
|
704
|
+
E.returnValue = !1;
|
|
705
|
+
}, E.stopPropagation = E.stopPropagation || function() {
|
|
706
|
+
E.cancelBubble = !0;
|
|
707
|
+
}, E.which = E.which || E.keyCode, x.call(m, E);
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
var
|
|
710
|
+
function D(m, g, x) {
|
|
711
|
+
var F = V(m, g, x) || T(m, g, x);
|
|
712
712
|
return c.push({
|
|
713
|
-
wrapper:
|
|
714
|
-
element:
|
|
713
|
+
wrapper: F,
|
|
714
|
+
element: m,
|
|
715
715
|
type: g,
|
|
716
|
-
fn:
|
|
717
|
-
}),
|
|
716
|
+
fn: x
|
|
717
|
+
}), F;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
720
|
-
var
|
|
721
|
-
if (
|
|
722
|
-
var
|
|
723
|
-
return c.splice(
|
|
719
|
+
function V(m, g, x) {
|
|
720
|
+
var F = y(m, g, x);
|
|
721
|
+
if (F) {
|
|
722
|
+
var I = c[F].wrapper;
|
|
723
|
+
return c.splice(F, 1), I;
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
function y(
|
|
727
|
-
var
|
|
728
|
-
for (
|
|
729
|
-
if (
|
|
730
|
-
return
|
|
726
|
+
function y(m, g, x) {
|
|
727
|
+
var F, I;
|
|
728
|
+
for (F = 0; F < c.length; F++)
|
|
729
|
+
if (I = c[F], I.element === m && I.type === g && I.fn === x)
|
|
730
|
+
return F;
|
|
731
731
|
}
|
|
732
732
|
}).call(this, typeof Ge < "u" ? Ge : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
733
733
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
734
734
|
7: [function(n, o, r) {
|
|
735
735
|
(function(l) {
|
|
736
|
-
var a = [], f = "",
|
|
736
|
+
var a = [], f = "", p = /^on/;
|
|
737
737
|
for (f in l)
|
|
738
|
-
|
|
738
|
+
p.test(f) && a.push(f.slice(2));
|
|
739
739
|
o.exports = a;
|
|
740
740
|
}).call(this, typeof Ge < "u" ? Ge : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
741
741
|
}, {}],
|
|
@@ -744,8 +744,8 @@ var xo = { exports: {} };
|
|
|
744
744
|
var a = l.CustomEvent;
|
|
745
745
|
function f() {
|
|
746
746
|
try {
|
|
747
|
-
var
|
|
748
|
-
return
|
|
747
|
+
var p = new a("cat", { detail: { foo: "bar" } });
|
|
748
|
+
return p.type === "cat" && p.detail.foo === "bar";
|
|
749
749
|
} catch {
|
|
750
750
|
}
|
|
751
751
|
return !1;
|
|
@@ -767,7 +767,7 @@ var xo = { exports: {} };
|
|
|
767
767
|
}, {}],
|
|
768
768
|
9: [function(n, o, r) {
|
|
769
769
|
var l = o.exports = {}, a, f;
|
|
770
|
-
function
|
|
770
|
+
function p() {
|
|
771
771
|
throw new Error("setTimeout has not been defined");
|
|
772
772
|
}
|
|
773
773
|
function u() {
|
|
@@ -775,9 +775,9 @@ var xo = { exports: {} };
|
|
|
775
775
|
}
|
|
776
776
|
(function() {
|
|
777
777
|
try {
|
|
778
|
-
typeof setTimeout == "function" ? a = setTimeout : a =
|
|
778
|
+
typeof setTimeout == "function" ? a = setTimeout : a = p;
|
|
779
779
|
} catch {
|
|
780
|
-
a =
|
|
780
|
+
a = p;
|
|
781
781
|
}
|
|
782
782
|
try {
|
|
783
783
|
typeof clearTimeout == "function" ? f = clearTimeout : f = u;
|
|
@@ -788,7 +788,7 @@ var xo = { exports: {} };
|
|
|
788
788
|
function v(y) {
|
|
789
789
|
if (a === setTimeout)
|
|
790
790
|
return setTimeout(y, 0);
|
|
791
|
-
if ((a ===
|
|
791
|
+
if ((a === p || !a) && setTimeout)
|
|
792
792
|
return a = setTimeout, setTimeout(y, 0);
|
|
793
793
|
try {
|
|
794
794
|
return a(y, 0);
|
|
@@ -817,36 +817,36 @@ var xo = { exports: {} };
|
|
|
817
817
|
}
|
|
818
818
|
var b = [], i = !1, s, d = -1;
|
|
819
819
|
function w() {
|
|
820
|
-
!i || !s || (i = !1, s.length ? b = s.concat(b) : d = -1, b.length &&
|
|
820
|
+
!i || !s || (i = !1, s.length ? b = s.concat(b) : d = -1, b.length && T());
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function T() {
|
|
823
823
|
if (!i) {
|
|
824
824
|
var y = v(w);
|
|
825
825
|
i = !0;
|
|
826
|
-
for (var
|
|
827
|
-
for (s = b, b = []; ++d <
|
|
826
|
+
for (var m = b.length; m; ) {
|
|
827
|
+
for (s = b, b = []; ++d < m; )
|
|
828
828
|
s && s[d].run();
|
|
829
|
-
d = -1,
|
|
829
|
+
d = -1, m = b.length;
|
|
830
830
|
}
|
|
831
831
|
s = null, i = !1, c(y);
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
834
|
l.nextTick = function(y) {
|
|
835
|
-
var
|
|
835
|
+
var m = new Array(arguments.length - 1);
|
|
836
836
|
if (arguments.length > 1)
|
|
837
837
|
for (var g = 1; g < arguments.length; g++)
|
|
838
|
-
|
|
839
|
-
b.push(new
|
|
838
|
+
m[g - 1] = arguments[g];
|
|
839
|
+
b.push(new D(y, m)), b.length === 1 && !i && v(T);
|
|
840
840
|
};
|
|
841
|
-
function
|
|
842
|
-
this.fun = y, this.array =
|
|
841
|
+
function D(y, m) {
|
|
842
|
+
this.fun = y, this.array = m;
|
|
843
843
|
}
|
|
844
|
-
|
|
844
|
+
D.prototype.run = function() {
|
|
845
845
|
this.fun.apply(null, this.array);
|
|
846
846
|
}, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {};
|
|
847
|
-
function
|
|
847
|
+
function V() {
|
|
848
848
|
}
|
|
849
|
-
l.on =
|
|
849
|
+
l.on = V, l.addListener = V, l.once = V, l.off = V, l.removeListener = V, l.removeAllListeners = V, l.emit = V, l.prependListener = V, l.prependOnceListener = V, l.listeners = function(y) {
|
|
850
850
|
return [];
|
|
851
851
|
}, l.binding = function(y) {
|
|
852
852
|
throw new Error("process.binding is not supported");
|
|
@@ -861,20 +861,20 @@ var xo = { exports: {} };
|
|
|
861
861
|
10: [function(n, o, r) {
|
|
862
862
|
(function(l) {
|
|
863
863
|
var a = typeof l == "function", f;
|
|
864
|
-
a ? f = function(
|
|
865
|
-
l(
|
|
866
|
-
} : f = function(
|
|
867
|
-
setTimeout(
|
|
864
|
+
a ? f = function(p) {
|
|
865
|
+
l(p);
|
|
866
|
+
} : f = function(p) {
|
|
867
|
+
setTimeout(p, 0);
|
|
868
868
|
}, o.exports = f;
|
|
869
869
|
}).call(this, n("timers").setImmediate);
|
|
870
870
|
}, { timers: 11 }],
|
|
871
871
|
11: [function(n, o, r) {
|
|
872
872
|
(function(l, a) {
|
|
873
|
-
var f = n("process/browser.js").nextTick,
|
|
873
|
+
var f = n("process/browser.js").nextTick, p = Function.prototype.apply, u = Array.prototype.slice, v = {}, c = 0;
|
|
874
874
|
r.setTimeout = function() {
|
|
875
|
-
return new b(
|
|
875
|
+
return new b(p.call(setTimeout, window, arguments), clearTimeout);
|
|
876
876
|
}, r.setInterval = function() {
|
|
877
|
-
return new b(
|
|
877
|
+
return new b(p.call(setInterval, window, arguments), clearInterval);
|
|
878
878
|
}, r.clearTimeout = r.clearInterval = function(i) {
|
|
879
879
|
i.close();
|
|
880
880
|
};
|
|
@@ -933,18 +933,18 @@ const un = /* @__PURE__ */ xa(Ba), Da = {
|
|
|
933
933
|
const {
|
|
934
934
|
locale: n,
|
|
935
935
|
t: o
|
|
936
|
-
} = Qt(), r = h(e.animate), l = "fadeOut", a = G(() => e.options), f = h(!1),
|
|
936
|
+
} = Qt(), r = h(e.animate), l = "fadeOut", a = G(() => e.options), f = h(!1), p = G(() => a.value.title && a.value.message), u = G(() => !a.value.title && a.value.message), v = G(() => {
|
|
937
937
|
const y = {
|
|
938
938
|
animated: f.value,
|
|
939
939
|
toast: !0,
|
|
940
|
-
"toast--only-content": !
|
|
940
|
+
"toast--only-content": !p.value
|
|
941
941
|
};
|
|
942
942
|
return y[e.animate] = !1, y[l] = f.value, y["toasty-type-" + a.value.type] = !0, a.value.theme && (y[a.value.theme] = !0), y;
|
|
943
943
|
}), c = G(() => {
|
|
944
|
-
const g = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`,
|
|
944
|
+
const g = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, x = {
|
|
945
945
|
"f-icon": !0
|
|
946
946
|
};
|
|
947
|
-
return
|
|
947
|
+
return x[g] = !0, x;
|
|
948
948
|
}), b = G(() => a.value.title || a.value.message), i = G(() => e.showCloseButton), s = G(() => !!a.value.buttons || !!t.slots.default), d = G(() => n.value === "en" ? {
|
|
949
949
|
wordBreak: "keep-all",
|
|
950
950
|
overflowWrap: "break-word"
|
|
@@ -954,22 +954,22 @@ const un = /* @__PURE__ */ xa(Ba), Da = {
|
|
|
954
954
|
t.emit("close", a.value);
|
|
955
955
|
}, 200);
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function T(y, m) {
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function D(y) {
|
|
960
960
|
return `f-preten-link ${y.customClass ? y.customClass : ""}`;
|
|
961
961
|
}
|
|
962
962
|
ve(r, () => {
|
|
963
963
|
r.value;
|
|
964
964
|
});
|
|
965
|
-
const
|
|
965
|
+
const V = () => {
|
|
966
966
|
var y;
|
|
967
967
|
return C(at, null, [C("div", {
|
|
968
968
|
class: "after-toast-msg text-right"
|
|
969
|
-
}, [!t.slots.default && ((y = a.value.buttons) == null ? void 0 : y.map((
|
|
970
|
-
class:
|
|
969
|
+
}, [!t.slots.default && ((y = a.value.buttons) == null ? void 0 : y.map((m) => C("span", {
|
|
970
|
+
class: D(m),
|
|
971
971
|
onClick: (g) => void 0
|
|
972
|
-
}, [
|
|
972
|
+
}, [m.text]))), t.slots.default && t.slots.default()])]);
|
|
973
973
|
};
|
|
974
974
|
return () => C("div", {
|
|
975
975
|
class: v.value,
|
|
@@ -982,20 +982,20 @@ const un = /* @__PURE__ */ xa(Ba), Da = {
|
|
|
982
982
|
class: "f-icon modal_close"
|
|
983
983
|
}, null)]), b.value && C("section", {
|
|
984
984
|
class: "modal-tips"
|
|
985
|
-
}, [!
|
|
985
|
+
}, [!p.value && C("div", {
|
|
986
986
|
class: "float-left modal-tips-iconwrap"
|
|
987
987
|
}, [C("span", {
|
|
988
988
|
class: c.value
|
|
989
989
|
}, null)]), C("div", {
|
|
990
990
|
class: "modal-tips-content"
|
|
991
|
-
}, [
|
|
991
|
+
}, [p.value && C(at, null, [C("h5", {
|
|
992
992
|
class: "toast-title modal-tips-title",
|
|
993
993
|
innerHTML: a.value.title
|
|
994
994
|
}, null), C("p", {
|
|
995
995
|
class: "toast-msg",
|
|
996
996
|
innerHTML: a.value.message,
|
|
997
997
|
style: d.value
|
|
998
|
-
}, null), s.value &&
|
|
998
|
+
}, null), s.value && V()]), u.value && (a.value.buttons ? C("div", {
|
|
999
999
|
class: "toast-title-btns-wrapper d-flex"
|
|
1000
1000
|
}, [C("h5", {
|
|
1001
1001
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -1003,7 +1003,7 @@ const un = /* @__PURE__ */ xa(Ba), Da = {
|
|
|
1003
1003
|
innerHTML: a.value.message
|
|
1004
1004
|
}, null), C("div", {
|
|
1005
1005
|
class: "after-toast-title text-right ml-auto"
|
|
1006
|
-
}, [
|
|
1006
|
+
}, [V()])]) : C("h5", {
|
|
1007
1007
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
1008
1008
|
style: d.value,
|
|
1009
1009
|
innerHTML: a.value.message
|
|
@@ -1021,7 +1021,7 @@ const un = /* @__PURE__ */ xa(Ba), Da = {
|
|
|
1021
1021
|
right: 12,
|
|
1022
1022
|
top: 20,
|
|
1023
1023
|
bottom: 12
|
|
1024
|
-
}, r = h(), l = h(e.options), a = h(e.showCloseButton), f = G(() => e.position || "bottom-right"),
|
|
1024
|
+
}, r = h(), l = h(e.options), a = h(e.showCloseButton), f = G(() => e.position || "bottom-right"), p = G(() => e.timeout != null ? e.timeout : 3e3), u = G(() => {
|
|
1025
1025
|
const b = e.bottom ? e.bottom : o.bottom, i = e.top ? e.top : o.top, s = {
|
|
1026
1026
|
transition: "all 0.2s ease",
|
|
1027
1027
|
left: f.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
@@ -1034,9 +1034,9 @@ const un = /* @__PURE__ */ xa(Ba), Da = {
|
|
|
1034
1034
|
function v(b) {
|
|
1035
1035
|
t.emit("close");
|
|
1036
1036
|
}
|
|
1037
|
-
|
|
1037
|
+
p.value && setTimeout(() => {
|
|
1038
1038
|
v();
|
|
1039
|
-
},
|
|
1039
|
+
}, p.value), t.expose({
|
|
1040
1040
|
closeToast: v,
|
|
1041
1041
|
container: r,
|
|
1042
1042
|
notifyPosition: f
|
|
@@ -1081,7 +1081,7 @@ class Kt {
|
|
|
1081
1081
|
setup() {
|
|
1082
1082
|
var u;
|
|
1083
1083
|
const f = h();
|
|
1084
|
-
function
|
|
1084
|
+
function p() {
|
|
1085
1085
|
f.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
1086
1086
|
n.updateNotifyPositionForClose(r, f), a.unmount();
|
|
1087
1087
|
}, 220);
|
|
@@ -1105,7 +1105,7 @@ class Kt {
|
|
|
1105
1105
|
default: () => [C(Bt, ot({
|
|
1106
1106
|
ref: f
|
|
1107
1107
|
}, r, {
|
|
1108
|
-
onClose:
|
|
1108
|
+
onClose: p
|
|
1109
1109
|
}), null)]
|
|
1110
1110
|
});
|
|
1111
1111
|
}
|
|
@@ -1340,41 +1340,41 @@ const Ia = {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
1342
|
};
|
|
1343
|
-
function Oa(e, t, n, o, r, l, a, f,
|
|
1343
|
+
function Oa(e, t, n, o, r, l, a, f, p, u, v, c, b, i, s, d, w) {
|
|
1344
1344
|
const {
|
|
1345
|
-
calculateCellPositionInRow:
|
|
1345
|
+
calculateCellPositionInRow: T
|
|
1346
1346
|
} = l, {
|
|
1347
|
-
columnContext:
|
|
1348
|
-
hasLeftFixedColumn:
|
|
1347
|
+
columnContext: D,
|
|
1348
|
+
hasLeftFixedColumn: V,
|
|
1349
1349
|
hasRightFixedColumn: y
|
|
1350
1350
|
} = a, {
|
|
1351
|
-
gridDataStyle:
|
|
1351
|
+
gridDataStyle: m,
|
|
1352
1352
|
leftFixedGridDataStyle: g,
|
|
1353
|
-
rightFixedGridDataStyle:
|
|
1353
|
+
rightFixedGridDataStyle: x
|
|
1354
1354
|
} = i, {
|
|
1355
|
-
renderDataRow:
|
|
1356
|
-
} = mr(e, t,
|
|
1357
|
-
function
|
|
1358
|
-
const J =
|
|
1359
|
-
return w.value.filter((N) => N.visible !== !1).map((N, j) =>
|
|
1355
|
+
renderDataRow: F
|
|
1356
|
+
} = mr(e, t, D, w, f, p, u, v, c, b, i, s, d), I = [F];
|
|
1357
|
+
function E(H, $) {
|
|
1358
|
+
const J = T(H);
|
|
1359
|
+
return w.value.filter((N) => N.visible !== !1).map((N, j) => I[N.type](N, J, $, j));
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function S() {
|
|
1362
1362
|
return C("div", {
|
|
1363
1363
|
ref: o,
|
|
1364
1364
|
class: "fv-grid-content-left-fixed"
|
|
1365
1365
|
}, [C("div", {
|
|
1366
1366
|
class: "fv-grid-data",
|
|
1367
1367
|
style: g.value
|
|
1368
|
-
}, [
|
|
1368
|
+
}, [E(D.value.leftColumns.filter((H) => H.visible), "left")])]);
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function B() {
|
|
1371
1371
|
return C("div", {
|
|
1372
1372
|
ref: n,
|
|
1373
1373
|
class: "fv-grid-content-primary"
|
|
1374
1374
|
}, [C("div", {
|
|
1375
1375
|
class: "fv-grid-data",
|
|
1376
|
-
style:
|
|
1377
|
-
}, [
|
|
1376
|
+
style: m.value
|
|
1377
|
+
}, [E(D.value.primaryColumns.filter((H) => H.visible), "primary")])]);
|
|
1378
1378
|
}
|
|
1379
1379
|
function P() {
|
|
1380
1380
|
return C("div", {
|
|
@@ -1382,15 +1382,15 @@ function Oa(e, t, n, o, r, l, a, f, m, u, v, c, b, i, s, d, w) {
|
|
|
1382
1382
|
class: "fv-grid-content-right-fixed"
|
|
1383
1383
|
}, [C("div", {
|
|
1384
1384
|
class: "fv-grid-data",
|
|
1385
|
-
style:
|
|
1386
|
-
}, [
|
|
1385
|
+
style: x.value
|
|
1386
|
+
}, [E(D.value.rightColumns.filter((H) => H.visible), "right")])]);
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function L() {
|
|
1389
1389
|
const H = [];
|
|
1390
|
-
return
|
|
1390
|
+
return V.value && H.push(S()), H.push(B()), y.value && H.push(P()), H;
|
|
1391
1391
|
}
|
|
1392
1392
|
return {
|
|
1393
|
-
renderDataArea:
|
|
1393
|
+
renderDataArea: L
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
1396
|
const Yt = /* @__PURE__ */ De({
|
|
@@ -1401,20 +1401,20 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1401
1401
|
var nn, on;
|
|
1402
1402
|
const o = ((nn = e.rowOption) == null ? void 0 : nn.height) || 28, r = h(20), l = h(e.columns), a = vr(e), {
|
|
1403
1403
|
idField: f
|
|
1404
|
-
} = a,
|
|
1405
|
-
collapseField:
|
|
1406
|
-
} =
|
|
1404
|
+
} = a, p = h(), u = h(), v = h(), c = h(), b = h(), i = h([]), s = h(!1), d = h(((on = e.rowOption) == null ? void 0 : on.wrapContent) || !1), w = gr(e, a), T = hr(e, t), D = yr(e), {
|
|
1405
|
+
collapseField: V
|
|
1406
|
+
} = D, {
|
|
1407
1407
|
showLoading: y,
|
|
1408
|
-
renderLoading:
|
|
1409
|
-
} = br(e,
|
|
1410
|
-
dataView:
|
|
1411
|
-
} = g,
|
|
1412
|
-
showSelection:
|
|
1413
|
-
selectedValues:
|
|
1414
|
-
} =
|
|
1408
|
+
renderLoading: m
|
|
1409
|
+
} = br(e, p), g = Cr(e, /* @__PURE__ */ new Map(), T, D, a), {
|
|
1410
|
+
dataView: x
|
|
1411
|
+
} = g, F = wr(e, g, a, i, t), {
|
|
1412
|
+
showSelection: I,
|
|
1413
|
+
selectedValues: E
|
|
1414
|
+
} = F, S = Sr(e, i, g, a, F, t), B = G(() => e.disabled), P = G(() => e.virtualized ? Math.min(g.dataView.value.length, r.value) : g.dataView.value.length), L = Tr(e, g), {
|
|
1415
1415
|
shouldRenderPagination: H
|
|
1416
|
-
} =
|
|
1417
|
-
containerStyleObject:
|
|
1416
|
+
} = L, {
|
|
1417
|
+
containerStyleObject: $
|
|
1418
1418
|
} = Fr(e), J = xr(e), {
|
|
1419
1419
|
applyCommands: N
|
|
1420
1420
|
} = J;
|
|
@@ -1424,15 +1424,15 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1424
1424
|
removeColumnSetting: M
|
|
1425
1425
|
} = Br(e);
|
|
1426
1426
|
e.showSetting && j(l);
|
|
1427
|
-
const
|
|
1427
|
+
const O = Dr(e, t), z = kr(e), {
|
|
1428
1428
|
applyColumnSorter: oe,
|
|
1429
1429
|
columnContext: le,
|
|
1430
1430
|
updateColumnRenderContext: X
|
|
1431
|
-
} =
|
|
1431
|
+
} = O;
|
|
1432
1432
|
oe(g, z);
|
|
1433
|
-
const pe = Er(e, le), ce = Mr(e, t,
|
|
1433
|
+
const pe = Er(e, le), ce = Mr(e, t, F, a), se = Ir(e, t, a, ce, i), K = Or(e), fe = Nr(e, se, K), Je = Pr(e, g, se, D, a, K, fe), Re = jr(e, l, g, P, 0, Je), {
|
|
1434
1434
|
getVisualData: Ne
|
|
1435
|
-
} = Re, it = Lr(e, le), Qe = Vr(e,
|
|
1435
|
+
} = Re, it = Lr(e, le), Qe = Vr(e, F), {
|
|
1436
1436
|
sidebarWidth: lt
|
|
1437
1437
|
} = Qe, he = $r(e, g, i, le, Re, P, 0, lt), {
|
|
1438
1438
|
onWheel: ft,
|
|
@@ -1443,7 +1443,7 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1443
1443
|
updateVisibleRowsOnLatestVisibleScope: pt
|
|
1444
1444
|
} = he, Ze = Ar(e, le, u, Pe, pe), {
|
|
1445
1445
|
calculateColumnsSize: $e
|
|
1446
|
-
} = Ze, qe = Rr(), st = zr(u, b, g, qe, he), ct = Hr(e, t,
|
|
1446
|
+
} = Ze, qe = Rr(), st = zr(u, b, g, qe, he), ct = Hr(e, t, O, g, pe, w, he), A = G(() => {
|
|
1447
1447
|
const Z = {
|
|
1448
1448
|
"fv-grid": !0,
|
|
1449
1449
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -1457,13 +1457,13 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1457
1457
|
"fv-grid-wrap-content": d.value
|
|
1458
1458
|
})), {
|
|
1459
1459
|
renderDataArea: ye
|
|
1460
|
-
} = Oa(e, t, v, c, b, it,
|
|
1460
|
+
} = Oa(e, t, v, c, b, it, O, g, se, D, ce, F, S, he, Re, K, i), {
|
|
1461
1461
|
renderGridHeader: be,
|
|
1462
1462
|
renderGridColumnResizeOverlay: Ae,
|
|
1463
1463
|
shouldShowHeader: Nt
|
|
1464
|
-
} = _r(e, t, u, c, b,
|
|
1464
|
+
} = _r(e, t, u, c, b, O, g, ct, st, T, qe, Ze, pe, F, Qe, z, he, Pe, i), {
|
|
1465
1465
|
renderDataGridSidebar: Pt
|
|
1466
|
-
} = qr(e, ce,
|
|
1466
|
+
} = qr(e, ce, F, Qe, he), {
|
|
1467
1467
|
renderDisableMask: jt
|
|
1468
1468
|
} = Ur(), {
|
|
1469
1469
|
renderHorizontalScrollbar: Lt
|
|
@@ -1480,7 +1480,7 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1480
1480
|
Xe(() => {
|
|
1481
1481
|
u.value && (r.value = Math.max(Math.ceil(u.value.clientHeight / o), r.value), i.value = Ne(0, P.value + 0 - 1), pr(u.value, $t), $e(), Jt(() => {
|
|
1482
1482
|
u.value && (ze.value = u.value.clientWidth), v.value && (Pe.value = v.value.clientWidth, He.value = v.value.clientHeight);
|
|
1483
|
-
})), y.value &&
|
|
1483
|
+
})), y.value && m();
|
|
1484
1484
|
}), wt(() => {
|
|
1485
1485
|
}), ve(Pe, () => {
|
|
1486
1486
|
u.value && $e();
|
|
@@ -1492,7 +1492,7 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1492
1492
|
g.expandTo(Z), g.reOrderVisibleIndex(), _e();
|
|
1493
1493
|
}
|
|
1494
1494
|
function mt() {
|
|
1495
|
-
const Z =
|
|
1495
|
+
const Z = F.getSelectionRow();
|
|
1496
1496
|
return Z ? Z.dataIndex - 1 : -1;
|
|
1497
1497
|
}
|
|
1498
1498
|
function Rt() {
|
|
@@ -1508,8 +1508,8 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1508
1508
|
g.insertNewChildDataItems(Z, Fe);
|
|
1509
1509
|
}
|
|
1510
1510
|
function _t() {
|
|
1511
|
-
const Z = mt(), ae =
|
|
1512
|
-
g.removeHierarchyDataItem(Z), i.value = Ne(0, P.value + 0 - 1), ae &&
|
|
1511
|
+
const Z = mt(), ae = S.getNextSelectableHierarchyItemId(Z);
|
|
1512
|
+
g.removeHierarchyDataItem(Z), i.value = Ne(0, P.value + 0 - 1), ae && F.selectItemById(ae);
|
|
1513
1513
|
}
|
|
1514
1514
|
function Tt(Z) {
|
|
1515
1515
|
se.onEditingRow(Z);
|
|
@@ -1517,7 +1517,7 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1517
1517
|
function qt(Z) {
|
|
1518
1518
|
se.acceptEditingRow(Z);
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function k(Z) {
|
|
1521
1521
|
se.cancelEditingRow(Z);
|
|
1522
1522
|
}
|
|
1523
1523
|
function _(Z) {
|
|
@@ -1530,7 +1530,7 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1530
1530
|
Z && (g.load(Z), g.reOrderVisibleIndex(), ae != null && ae.keepScrollPosition ? he.scrollTo(he.offsetY.value) : _e());
|
|
1531
1531
|
}
|
|
1532
1532
|
function re(Z) {
|
|
1533
|
-
|
|
1533
|
+
F.selectItemById(Z);
|
|
1534
1534
|
}
|
|
1535
1535
|
function ue(Z) {
|
|
1536
1536
|
const ae = i.value.find((we) => we.raw[a.idField.value] === Z);
|
|
@@ -1540,28 +1540,28 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1540
1540
|
ce.activeRowById(Z);
|
|
1541
1541
|
}
|
|
1542
1542
|
function Oe(Z) {
|
|
1543
|
-
|
|
1543
|
+
F.selectItemByIds(Z);
|
|
1544
1544
|
}
|
|
1545
1545
|
function xe() {
|
|
1546
|
-
return
|
|
1546
|
+
return F.getSelectedItems();
|
|
1547
1547
|
}
|
|
1548
1548
|
function ke() {
|
|
1549
|
-
|
|
1549
|
+
F.clearSelection();
|
|
1550
1550
|
}
|
|
1551
1551
|
const je = G(() => !i.value || !i.value.length), {
|
|
1552
1552
|
renderEmpty: Ce
|
|
1553
1553
|
} = Yr(e, t);
|
|
1554
1554
|
function Le() {
|
|
1555
|
-
return
|
|
1555
|
+
return F.getSelectionRow();
|
|
1556
1556
|
}
|
|
1557
1557
|
function Ee(Z) {
|
|
1558
|
-
|
|
1558
|
+
F.unSelectItemByIds(Z);
|
|
1559
1559
|
}
|
|
1560
1560
|
function Te() {
|
|
1561
|
-
return
|
|
1561
|
+
return F.currentSelectedDataId.value;
|
|
1562
1562
|
}
|
|
1563
1563
|
function vt(Z, ae, we) {
|
|
1564
|
-
const Fe =
|
|
1564
|
+
const Fe = x.value.find((Me) => Me[f.value] === Z);
|
|
1565
1565
|
if (Fe) {
|
|
1566
1566
|
if (Object.keys(Fe).forEach((Se) => {
|
|
1567
1567
|
Object.prototype.hasOwnProperty.call(ae, Se) && (Fe[Se] = ae[Se]);
|
|
@@ -1596,10 +1596,10 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1596
1596
|
}
|
|
1597
1597
|
function ht(Z) {
|
|
1598
1598
|
const ae = g.dataView.value.find((we) => we[f.value] === Z);
|
|
1599
|
-
return ae ? ae[
|
|
1599
|
+
return ae ? ae[V.value] : "";
|
|
1600
1600
|
}
|
|
1601
1601
|
function Wo() {
|
|
1602
|
-
return
|
|
1602
|
+
return V.value;
|
|
1603
1603
|
}
|
|
1604
1604
|
ve(() => e.showSetting, (Z, ae) => {
|
|
1605
1605
|
Z !== ae && (Z ? j(l) : M(l), _(l.value));
|
|
@@ -1612,7 +1612,7 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1612
1612
|
we && ce.changeRow(we);
|
|
1613
1613
|
}
|
|
1614
1614
|
function Jo() {
|
|
1615
|
-
|
|
1615
|
+
F.keepSelectingOnPaging.value || ke(), g.updateVisibleDataSummary(i.value);
|
|
1616
1616
|
}
|
|
1617
1617
|
t.expose({
|
|
1618
1618
|
activeRowById: de,
|
|
@@ -1624,7 +1624,7 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1624
1624
|
removeDataItem: _t,
|
|
1625
1625
|
editDataItem: Tt,
|
|
1626
1626
|
acceptDataItem: qt,
|
|
1627
|
-
cancelDataItem:
|
|
1627
|
+
cancelDataItem: k,
|
|
1628
1628
|
updateColumns: _,
|
|
1629
1629
|
updateDataSource: Q,
|
|
1630
1630
|
selectItemById: re,
|
|
@@ -1647,23 +1647,23 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1647
1647
|
const Z = {};
|
|
1648
1648
|
return he.shouldShowHorizontalScrollbar.value && (Z.paddingBottom = "10px"), he.shouldShowVirticalScrollbar.value && (Z.paddingRight = "10px"), Z;
|
|
1649
1649
|
}), Zo = G(() => ({
|
|
1650
|
-
|
|
1650
|
+
...$.value,
|
|
1651
1651
|
borderRadius: "5px"
|
|
1652
|
-
}))
|
|
1653
|
-
|
|
1654
|
-
|
|
1652
|
+
}));
|
|
1653
|
+
Xr(e, t, g, he, L, F);
|
|
1654
|
+
const Ko = G(() => ({
|
|
1655
1655
|
"d-flex": !0,
|
|
1656
|
-
"justify-content-between": H.value &&
|
|
1657
|
-
"justify-content-end": H.value && !
|
|
1656
|
+
"justify-content-between": H.value && I.value,
|
|
1657
|
+
"justify-content-end": H.value && !I.value,
|
|
1658
1658
|
"position-relative": !0
|
|
1659
1659
|
})), er = G(() => ({
|
|
1660
1660
|
"d-flex": !0,
|
|
1661
1661
|
"align-items-center": !0
|
|
1662
1662
|
})), {
|
|
1663
1663
|
renderDataGridSummary: tr
|
|
1664
|
-
} = Jr(e, g,
|
|
1664
|
+
} = Jr(e, g, O);
|
|
1665
1665
|
return () => C("div", {
|
|
1666
|
-
ref:
|
|
1666
|
+
ref: p,
|
|
1667
1667
|
class: A.value,
|
|
1668
1668
|
style: Zo.value,
|
|
1669
1669
|
onWheel: ft
|
|
@@ -1673,11 +1673,11 @@ const Yt = /* @__PURE__ */ De({
|
|
|
1673
1673
|
onMouseover: () => s.value = !0,
|
|
1674
1674
|
onMouseleave: () => s.value = !1,
|
|
1675
1675
|
style: Qo.value
|
|
1676
|
-
}, [u.value && Pt(i), u.value && ye(), u.value && je.value && Ce(), u.value && Lt(), u.value && Vt()]), u.value && tr(),
|
|
1676
|
+
}, [u.value && Pt(i), u.value && ye(), u.value && je.value && Ce(), u.value && Lt(), u.value && Vt()]), u.value && tr(), I.value && C("div", {
|
|
1677
1677
|
class: Ko.value
|
|
1678
|
-
}, [
|
|
1678
|
+
}, [I.value && C("div", {
|
|
1679
1679
|
class: er.value
|
|
1680
|
-
}, [C("div", null, ["已选:" +
|
|
1680
|
+
}, [C("div", null, ["已选:" + E.value.length, Ie(" 条")])])]), Ae(), B.value && jt()]);
|
|
1681
1681
|
}
|
|
1682
1682
|
});
|
|
1683
1683
|
dr(Yt);
|
|
@@ -1692,16 +1692,16 @@ function Bo(e) {
|
|
|
1692
1692
|
multiSelectMode: "OnCheckAndClick",
|
|
1693
1693
|
showCheckbox: !0,
|
|
1694
1694
|
showSelectAll: !0
|
|
1695
|
-
}, f = h(!1),
|
|
1695
|
+
}, f = h(!1), p = h(e.componentType);
|
|
1696
1696
|
function u(d) {
|
|
1697
1697
|
const w = [];
|
|
1698
|
-
return d.forEach((
|
|
1699
|
-
let
|
|
1700
|
-
|
|
1701
|
-
const
|
|
1702
|
-
|
|
1703
|
-
data: Object.assign({ displayedTypeName: y, selectable:
|
|
1704
|
-
children:
|
|
1698
|
+
return d.forEach((T) => {
|
|
1699
|
+
let D = [];
|
|
1700
|
+
T.type && T.type.fields && T.type.fields.length > 0 && (D = u(T.type.fields));
|
|
1701
|
+
const V = Ct(T), y = T.multiLanguage ? "多语言" : T.type.displayName, m = D.length ? !1 : !n.has(T.id);
|
|
1702
|
+
m && (f.value = !0), w.push({
|
|
1703
|
+
data: Object.assign({ displayedTypeName: y, selectable: m }, V),
|
|
1704
|
+
children: D
|
|
1705
1705
|
});
|
|
1706
1706
|
}), w;
|
|
1707
1707
|
}
|
|
@@ -1719,17 +1719,17 @@ function Bo(e) {
|
|
|
1719
1719
|
function c(d) {
|
|
1720
1720
|
if (n.clear(), !d)
|
|
1721
1721
|
return;
|
|
1722
|
-
let w = v(
|
|
1722
|
+
let w = v(p.value);
|
|
1723
1723
|
["frame", "table", "form"].includes(w) && (w = "form");
|
|
1724
|
-
const { formSchemaUtils:
|
|
1725
|
-
|
|
1726
|
-
if (!
|
|
1724
|
+
const { formSchemaUtils: T, schemaService: D } = t;
|
|
1725
|
+
T.getFormSchema().module.viewmodels.forEach((V) => {
|
|
1726
|
+
if (!V.fields || V.fields.length === 0)
|
|
1727
1727
|
return;
|
|
1728
|
-
let
|
|
1729
|
-
["frame", "table", "form"].includes(
|
|
1730
|
-
const g =
|
|
1731
|
-
|
|
1732
|
-
n.set(
|
|
1728
|
+
let m = T.getComponentByViewModelId(V.id).componentType;
|
|
1729
|
+
["frame", "table", "form"].includes(m) && (m = "form");
|
|
1730
|
+
const g = D.getTableInfoByViewModelId(V.id);
|
|
1731
|
+
m !== w || !g || g.id !== d.id || V.fields.forEach((x) => {
|
|
1732
|
+
n.set(x.id, !0);
|
|
1733
1733
|
});
|
|
1734
1734
|
});
|
|
1735
1735
|
}
|
|
@@ -1754,37 +1754,37 @@ function Bo(e) {
|
|
|
1754
1754
|
fieldSelectionOption: a,
|
|
1755
1755
|
checkAndGetSelectedFields: s,
|
|
1756
1756
|
hasSelectableField: f,
|
|
1757
|
-
currentComponentType:
|
|
1757
|
+
currentComponentType: p
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
1760
1760
|
function Na(e) {
|
|
1761
1761
|
const { designerHostService: t } = e, n = /* @__PURE__ */ new Map(), o = h(), r = h(), l = h([{ field: "name", title: "实体名称" }]), a = h(), f = h(!1);
|
|
1762
|
-
function
|
|
1762
|
+
function p(s) {
|
|
1763
1763
|
const d = Bo(e);
|
|
1764
1764
|
return d.resolveFieldDataSource(s), d.hasSelectableField.value ? (a.value = a.value || s, !0) : !1;
|
|
1765
1765
|
}
|
|
1766
1766
|
function u(s) {
|
|
1767
|
-
return !(e.bindingEntityId && e.bindingEntityId !== s.id || !
|
|
1767
|
+
return !(e.bindingEntityId && e.bindingEntityId !== s.id || !p(s));
|
|
1768
1768
|
}
|
|
1769
1769
|
function v(s, d = "") {
|
|
1770
1770
|
var y;
|
|
1771
1771
|
if (!s)
|
|
1772
1772
|
return;
|
|
1773
|
-
const w = Ct(s),
|
|
1774
|
-
n.set(w.label,
|
|
1775
|
-
const
|
|
1776
|
-
data: Object.assign({ selectable:
|
|
1773
|
+
const w = Ct(s), T = d ? `${d}/${w.label}` : "/";
|
|
1774
|
+
n.set(w.label, T.replace("//", "/"));
|
|
1775
|
+
const D = u(w), V = {
|
|
1776
|
+
data: Object.assign({ selectable: D }, w),
|
|
1777
1777
|
children: []
|
|
1778
1778
|
};
|
|
1779
1779
|
if (w.type.entities && w.type.entities.length) {
|
|
1780
|
-
const
|
|
1781
|
-
|
|
1780
|
+
const m = w.type.entities.map((g) => v(g, T));
|
|
1781
|
+
V.children = V.children.concat(m);
|
|
1782
1782
|
}
|
|
1783
|
-
return e.bindingEntityId === s.id && (a.value = s), ((y = a.value) == null ? void 0 : y.id) === s.id && !d && (f.value = !0),
|
|
1783
|
+
return e.bindingEntityId === s.id && (a.value = s), ((y = a.value) == null ? void 0 : y.id) === s.id && !d && (f.value = !0), V;
|
|
1784
1784
|
}
|
|
1785
1785
|
function c() {
|
|
1786
|
-
var
|
|
1787
|
-
const { formSchemaUtils: s } = t, d = (
|
|
1786
|
+
var T;
|
|
1787
|
+
const { formSchemaUtils: s } = t, d = (T = s.getFormSchema().module.entity[0]) == null ? void 0 : T.entities[0];
|
|
1788
1788
|
n.clear();
|
|
1789
1789
|
const w = v(d);
|
|
1790
1790
|
r.value = [w];
|
|
@@ -1815,17 +1815,17 @@ function Na(e) {
|
|
|
1815
1815
|
function Do(e, t) {
|
|
1816
1816
|
let n;
|
|
1817
1817
|
function o(c) {
|
|
1818
|
-
const { properties: b, title: i, ignore: s } = c, d = s && Array.isArray(s), w = Object.keys(b).reduce((
|
|
1819
|
-
if (i && (!d || !s.find((
|
|
1820
|
-
const
|
|
1821
|
-
w.id = `${
|
|
1818
|
+
const { properties: b, title: i, ignore: s } = c, d = s && Array.isArray(s), w = Object.keys(b).reduce((T, D) => ((!d || !s.find((V) => V === D)) && (T[D] = b[D].type === "object" && b[D].properties ? o(b[D]) : Ct(b[D].default)), T), {});
|
|
1819
|
+
if (i && (!d || !s.find((T) => T === "id"))) {
|
|
1820
|
+
const T = i.toLowerCase().replace(/-/g, "_");
|
|
1821
|
+
w.id = `${T}_${Math.random().toString().slice(2, 6)}`;
|
|
1822
1822
|
}
|
|
1823
1823
|
return w;
|
|
1824
1824
|
}
|
|
1825
1825
|
function r(c) {
|
|
1826
1826
|
const { properties: b, title: i, required: s } = c;
|
|
1827
1827
|
if (s && Array.isArray(s)) {
|
|
1828
|
-
const d = s.reduce((w,
|
|
1828
|
+
const d = s.reduce((w, T) => (w[T] = b[T].type === "object" && b[T].properties ? o(b[T]) : Ct(b[T].default), w), {});
|
|
1829
1829
|
if (i && s.find((w) => w === "id")) {
|
|
1830
1830
|
const w = i.toLowerCase().replace(/-/g, "_");
|
|
1831
1831
|
d.id = `${w}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -1856,15 +1856,15 @@ function Do(e, t) {
|
|
|
1856
1856
|
if (typeof w == "string")
|
|
1857
1857
|
s[w] = c[d];
|
|
1858
1858
|
else {
|
|
1859
|
-
const
|
|
1860
|
-
Object.assign(s,
|
|
1859
|
+
const T = w(d, c[d], c);
|
|
1860
|
+
Object.assign(s, T);
|
|
1861
1861
|
}
|
|
1862
1862
|
} else
|
|
1863
1863
|
s[d] = c[d];
|
|
1864
1864
|
return s;
|
|
1865
1865
|
}, {});
|
|
1866
1866
|
}
|
|
1867
|
-
function
|
|
1867
|
+
function p(c, b, i = /* @__PURE__ */ new Map()) {
|
|
1868
1868
|
const s = a(c, b);
|
|
1869
1869
|
return f(s, i);
|
|
1870
1870
|
}
|
|
@@ -1877,8 +1877,8 @@ function Do(e, t) {
|
|
|
1877
1877
|
return c;
|
|
1878
1878
|
const d = a(c, s), w = ((i = c.editor) == null ? void 0 : i.type) || "";
|
|
1879
1879
|
if (w) {
|
|
1880
|
-
const
|
|
1881
|
-
d.editor =
|
|
1880
|
+
const T = e[w], D = a(c.editor, T);
|
|
1881
|
+
d.editor = D;
|
|
1882
1882
|
}
|
|
1883
1883
|
return d;
|
|
1884
1884
|
}
|
|
@@ -1887,9 +1887,9 @@ function Do(e, t) {
|
|
|
1887
1887
|
function v(c) {
|
|
1888
1888
|
n = c;
|
|
1889
1889
|
}
|
|
1890
|
-
return { getSchemaByType: l, resolveSchemaWithDefaultValue: u, resolveSchemaToProps:
|
|
1890
|
+
return { getSchemaByType: l, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: p, mappingSchemaToProps: f, setDesignerContext: v };
|
|
1891
1891
|
}
|
|
1892
|
-
const ko = {}, Eo = {}, { resolveSchemaWithDefaultValue: Pa, resolveSchemaToProps: ja, mappingSchemaToProps: La, setDesignerContext: Va } = Do(ko, Eo);
|
|
1892
|
+
const ko = {}, Eo = {}, { getSchemaByType: Ic, resolveSchemaWithDefaultValue: Pa, resolveSchemaToProps: ja, mappingSchemaToProps: La, setDesignerContext: Va } = Do(ko, Eo);
|
|
1893
1893
|
function $a(e = {}) {
|
|
1894
1894
|
function t(u, v, c, b) {
|
|
1895
1895
|
if (typeof c == "number")
|
|
@@ -1938,11 +1938,11 @@ function $a(e = {}) {
|
|
|
1938
1938
|
function f(u, v) {
|
|
1939
1939
|
return l(u).reduce((i, s) => i && a(s, v), !0);
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1942
|
-
const c = Object.keys(u), b = c.includes("allOf"), i = c.includes("anyOf"), s = b || i,
|
|
1943
|
-
return b ? !
|
|
1941
|
+
function p(u, v) {
|
|
1942
|
+
const c = Object.keys(u), b = c.includes("allOf"), i = c.includes("anyOf"), s = b || i, T = (s ? u[s ? b ? "allOf" : "anyOf" : "allOf"] : [u]).map((V) => f(V, v));
|
|
1943
|
+
return b ? !T.includes(!1) : T.includes(!0);
|
|
1944
1944
|
}
|
|
1945
|
-
return { parseValueSchema:
|
|
1945
|
+
return { parseValueSchema: p };
|
|
1946
1946
|
}
|
|
1947
1947
|
const Aa = {
|
|
1948
1948
|
convertTo: (e, t, n, o) => {
|
|
@@ -2239,69 +2239,69 @@ function Mo(e, t, n) {
|
|
|
2239
2239
|
function f(s, d, w) {
|
|
2240
2240
|
return s.includes("visible") && d.visible !== void 0 ? typeof d.visible == "boolean" ? () => !!d.visible : d.visible === void 0 ? !0 : a(d.visible, w) : () => !0;
|
|
2241
2241
|
}
|
|
2242
|
-
function
|
|
2242
|
+
function p(s, d, w) {
|
|
2243
2243
|
return s.includes("readonly") && d.readonly !== void 0 ? typeof d.readonly == "boolean" ? () => !!d.readonly : a(d.readonly, w) : () => !1;
|
|
2244
2244
|
}
|
|
2245
2245
|
function u(s, d) {
|
|
2246
2246
|
const w = s.$converter || d;
|
|
2247
2247
|
return typeof w == "string" && w && o.has(w) ? o.get(w) || null : w || null;
|
|
2248
2248
|
}
|
|
2249
|
-
function v(s, d, w,
|
|
2249
|
+
function v(s, d, w, T, D, V = "", y = "") {
|
|
2250
2250
|
return Object.keys(s).map((g) => {
|
|
2251
|
-
const
|
|
2252
|
-
|
|
2253
|
-
const J =
|
|
2254
|
-
let j = u(
|
|
2251
|
+
const x = h(1), F = g, I = s[g], E = Object.keys(I), S = I.title, B = I.type, P = r.get(B) || { type: "input-group", enableClear: !1 }, L = I.editor ? Object.assign({}, P, I.editor) : Object.assign({}, P), H = f(E, I, d), $ = p(E, I, d);
|
|
2252
|
+
L.readonly = L.readonly === void 0 ? $() : L.readonly;
|
|
2253
|
+
const J = I.type === "cascade" ? v(I.properties, d, w, T, D, V, y) : [], N = !0;
|
|
2254
|
+
let j = u(I, y);
|
|
2255
2255
|
const M = G({
|
|
2256
2256
|
get() {
|
|
2257
|
-
if (
|
|
2258
|
-
if (["class", "style"].find((ce) => ce ===
|
|
2259
|
-
return j.convertFrom(w, g,
|
|
2257
|
+
if (x.value) {
|
|
2258
|
+
if (["class", "style"].find((ce) => ce === F) && !j && (j = o.get("/converter/appearance.converter") || null), j && j.convertFrom)
|
|
2259
|
+
return j.convertFrom(w, g, D, V);
|
|
2260
2260
|
const pe = w[g];
|
|
2261
|
-
return Object.prototype.hasOwnProperty.call(
|
|
2261
|
+
return Object.prototype.hasOwnProperty.call(I, "defaultValue") && (pe === void 0 || typeof pe == "string" && pe === "") ? I.type === "boolean" ? I.defaultValue : I.defaultValue || "" : pe;
|
|
2262
2262
|
}
|
|
2263
2263
|
return null;
|
|
2264
2264
|
},
|
|
2265
2265
|
set(pe) {
|
|
2266
|
-
|
|
2266
|
+
x.value += 1, j && j.convertTo ? (j.convertTo(T, g, pe, D, V), j.convertTo(w, g, pe, D, V)) : (T[g] = pe, w[g] = pe);
|
|
2267
2267
|
}
|
|
2268
|
-
}), { refreshPanelAfterChanged:
|
|
2269
|
-
return d[
|
|
2268
|
+
}), { refreshPanelAfterChanged: O, description: z, isExpand: oe, parentPropertyID: le } = I, X = { propertyID: F, propertyName: S, propertyType: B, propertyValue: M, editor: L, visible: H, readonly: $, cascadeConfig: J, hideCascadeTitle: N, refreshPanelAfterChanged: O, description: z, isExpand: oe, parentPropertyID: le };
|
|
2269
|
+
return d[F] = X, X;
|
|
2270
2270
|
});
|
|
2271
2271
|
}
|
|
2272
2272
|
function c(s, d, w = {}) {
|
|
2273
|
-
const
|
|
2274
|
-
return
|
|
2275
|
-
const
|
|
2276
|
-
return { categoryId: y, categoryName: g, properties:
|
|
2273
|
+
const T = {}, D = e[s];
|
|
2274
|
+
return D && D.categories ? Object.keys(D.categories).map((y) => {
|
|
2275
|
+
const m = D.categories[y], g = m == null ? void 0 : m.title, x = v(m.properties || {}, T, {}, w, d);
|
|
2276
|
+
return { categoryId: y, categoryName: g, properties: x };
|
|
2277
2277
|
}) : [];
|
|
2278
2278
|
}
|
|
2279
|
-
function b(s, d, w,
|
|
2280
|
-
const
|
|
2281
|
-
if (
|
|
2282
|
-
const
|
|
2283
|
-
y && Object.keys(
|
|
2284
|
-
|
|
2279
|
+
function b(s, d, w, T, D = "") {
|
|
2280
|
+
const V = d.$ref.schema, y = d.$ref.converter, m = w[V], g = m.type, x = n(m), F = {}, I = e[g];
|
|
2281
|
+
if (I && I.categories) {
|
|
2282
|
+
const E = I.categories[s], S = E == null ? void 0 : E.title;
|
|
2283
|
+
y && Object.keys(E.properties).forEach((L) => {
|
|
2284
|
+
E.properties[L].$converter = y;
|
|
2285
2285
|
});
|
|
2286
|
-
const
|
|
2287
|
-
return { categoryId: s, categoryName:
|
|
2286
|
+
const B = (E == null ? void 0 : E.properties) || {}, P = v(B, F, x, m, T, D);
|
|
2287
|
+
return { categoryId: s, categoryName: S, properties: P };
|
|
2288
2288
|
}
|
|
2289
2289
|
return { categoryId: s, categoryName: "", properties: [] };
|
|
2290
2290
|
}
|
|
2291
|
-
function i(s, d, w,
|
|
2292
|
-
const
|
|
2293
|
-
let g =
|
|
2294
|
-
if (g && Object.keys(g).length === 0 && w && w.getPropConfig && (g = w.getPropConfig(
|
|
2295
|
-
const
|
|
2296
|
-
return Object.keys(g.categories).map((
|
|
2297
|
-
const
|
|
2298
|
-
if (
|
|
2299
|
-
|
|
2291
|
+
function i(s, d, w, T, D) {
|
|
2292
|
+
const V = s.type, y = n(s), m = {};
|
|
2293
|
+
let g = D || e[V];
|
|
2294
|
+
if (g && Object.keys(g).length === 0 && w && w.getPropConfig && (g = w.getPropConfig(T)), g && g.categories) {
|
|
2295
|
+
const x = [];
|
|
2296
|
+
return Object.keys(g.categories).map((F) => {
|
|
2297
|
+
const I = g.categories[F];
|
|
2298
|
+
if (I.$ref) {
|
|
2299
|
+
x.push(b(F, I, s, d, T));
|
|
2300
2300
|
return;
|
|
2301
2301
|
}
|
|
2302
|
-
const
|
|
2303
|
-
|
|
2304
|
-
}),
|
|
2302
|
+
const E = I == null ? void 0 : I.title, S = I == null ? void 0 : I.tabId, B = I == null ? void 0 : I.tabName, P = I == null ? void 0 : I.hide, L = I == null ? void 0 : I.hideTitle, H = v(I.properties || {}, m, y, s, d, T, I.$converter), { setPropertyRelates: $ } = I, J = I == null ? void 0 : I.parentPropertyID;
|
|
2303
|
+
x.push({ categoryId: F, categoryName: E, tabId: S, tabName: B, hide: P, properties: H, hideTitle: L, setPropertyRelates: $, parentPropertyID: J });
|
|
2304
|
+
}), x;
|
|
2305
2305
|
}
|
|
2306
2306
|
return [];
|
|
2307
2307
|
}
|
|
@@ -2313,14 +2313,14 @@ function Mo(e, t, n) {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
const Io = {}, Oo = {};
|
|
2315
2315
|
Mo(Io, Oo, Pa);
|
|
2316
|
-
const No = {}, Po = {}, { resolveSchemaWithDefaultValue: ii, setDesignerContext: li } = Do(No, Po), jo = {}, Lo = {};
|
|
2316
|
+
const No = {}, Po = {}, { getSchemaByType: Oc, resolveSchemaWithDefaultValue: ii, resolveSchemaToProps: Nc, mappingSchemaToProps: Pc, setDesignerContext: li } = Do(No, Po), jo = {}, Lo = {};
|
|
2317
2317
|
Mo(jo, Lo, ii);
|
|
2318
|
-
function Ot(e, t, n = /* @__PURE__ */ new Map(), o = (a, f,
|
|
2318
|
+
function Ot(e, t, n = /* @__PURE__ */ new Map(), o = (a, f, p, u) => f, r = {}, l = (a) => a) {
|
|
2319
2319
|
return ko[t.title] = t, Eo[t.title] = o, Io[t.title] = r, Oo[t.title] = l, No[t.title] = t, Po[t.title] = o, jo[t.title] = r, Lo[t.title] = l, (a = {}, f = !0) => {
|
|
2320
2320
|
if (!f)
|
|
2321
2321
|
return La(a, n);
|
|
2322
|
-
const
|
|
2323
|
-
return Object.assign(u,
|
|
2322
|
+
const p = ja(a, t, n), u = Object.keys(e).reduce((v, c) => (v[c] = e[c].default, v), {});
|
|
2323
|
+
return Object.assign(u, p);
|
|
2324
2324
|
};
|
|
2325
2325
|
}
|
|
2326
2326
|
function Vo(e, t) {
|
|
@@ -2474,113 +2474,113 @@ const Ti = /* @__PURE__ */ De({
|
|
|
2474
2474
|
"f-progress-step-list-block": n.value === "vertical",
|
|
2475
2475
|
"f-progress-step-horizontal-fill": n.value === "horizontal" && o.value,
|
|
2476
2476
|
"f-progress-step-vertical-fill": n.value === "vertical" && o.value
|
|
2477
|
-
})),
|
|
2477
|
+
})), p = G(() => ({
|
|
2478
2478
|
height: n.value === "vertical" ? `${r.value}px` : ""
|
|
2479
2479
|
}));
|
|
2480
|
-
function u(y,
|
|
2480
|
+
function u(y, m) {
|
|
2481
2481
|
const g = {
|
|
2482
2482
|
step: !0,
|
|
2483
|
-
active:
|
|
2483
|
+
active: m === a.value,
|
|
2484
2484
|
clickable: e.clickable,
|
|
2485
|
-
current:
|
|
2486
|
-
finish:
|
|
2485
|
+
current: m === a.value,
|
|
2486
|
+
finish: m < a.value
|
|
2487
2487
|
};
|
|
2488
2488
|
return y.status && (g[y.status] = !0), dt(g, y.class || "");
|
|
2489
2489
|
}
|
|
2490
|
-
function v(y,
|
|
2490
|
+
function v(y, m) {
|
|
2491
2491
|
if (!e.clickable)
|
|
2492
2492
|
return;
|
|
2493
2493
|
const g = {
|
|
2494
2494
|
step: y,
|
|
2495
|
-
stepIndex:
|
|
2495
|
+
stepIndex: m
|
|
2496
2496
|
};
|
|
2497
2497
|
t.emit("click", g);
|
|
2498
2498
|
}
|
|
2499
|
-
function c(y,
|
|
2499
|
+
function c(y, m) {
|
|
2500
2500
|
const g = {
|
|
2501
2501
|
"f-progressstep-row": !0,
|
|
2502
|
-
"step-active":
|
|
2503
|
-
"step-current":
|
|
2504
|
-
"step-finish":
|
|
2502
|
+
"step-active": m === a.value,
|
|
2503
|
+
"step-current": m === a.value,
|
|
2504
|
+
"step-finish": m < a.value
|
|
2505
2505
|
};
|
|
2506
2506
|
return y.status && (g["step-" + y.status] = !0), g;
|
|
2507
2507
|
}
|
|
2508
|
-
function b(y,
|
|
2508
|
+
function b(y, m) {
|
|
2509
2509
|
return dt({
|
|
2510
2510
|
"step-icon": !0,
|
|
2511
|
-
"step-success":
|
|
2512
|
-
"f-icon":
|
|
2513
|
-
"f-icon-check":
|
|
2511
|
+
"step-success": m,
|
|
2512
|
+
"f-icon": m,
|
|
2513
|
+
"f-icon-check": m
|
|
2514
2514
|
}, y.icon || "");
|
|
2515
2515
|
}
|
|
2516
|
-
function i(y,
|
|
2516
|
+
function i(y, m) {
|
|
2517
2517
|
const g = [];
|
|
2518
2518
|
return y.icon ? g.push(C("span", {
|
|
2519
2519
|
class: b(y, !1)
|
|
2520
|
-
}, null)) :
|
|
2520
|
+
}, null)) : m >= a.value ? g.push(C("span", {
|
|
2521
2521
|
class: "step-icon"
|
|
2522
|
-
}, [
|
|
2522
|
+
}, [m + 1])) : g.push(C("span", {
|
|
2523
2523
|
class: b(y, !0)
|
|
2524
2524
|
}, null)), g;
|
|
2525
2525
|
}
|
|
2526
|
-
function s(y,
|
|
2526
|
+
function s(y, m) {
|
|
2527
2527
|
return {
|
|
2528
2528
|
"step-name": !0,
|
|
2529
|
-
"step-name-success":
|
|
2529
|
+
"step-name-success": m < a.value
|
|
2530
2530
|
};
|
|
2531
2531
|
}
|
|
2532
|
-
function d(y,
|
|
2532
|
+
function d(y, m) {
|
|
2533
2533
|
return C("div", {
|
|
2534
2534
|
class: "f-progress-step-title"
|
|
2535
2535
|
}, [C("p", {
|
|
2536
|
-
class: s(y,
|
|
2536
|
+
class: s(y, m)
|
|
2537
2537
|
}, [y.title])]);
|
|
2538
2538
|
}
|
|
2539
|
-
function w(y,
|
|
2539
|
+
function w(y, m) {
|
|
2540
2540
|
return {
|
|
2541
2541
|
"f-progress-step-line": !0,
|
|
2542
|
-
"f-progress-step-line-success":
|
|
2542
|
+
"f-progress-step-line-success": m === a.value
|
|
2543
2543
|
};
|
|
2544
2544
|
}
|
|
2545
|
-
function
|
|
2546
|
-
return
|
|
2545
|
+
function T(y, m) {
|
|
2546
|
+
return m !== l.value.length - 1;
|
|
2547
2547
|
}
|
|
2548
|
-
const
|
|
2548
|
+
const D = G(() => ({
|
|
2549
2549
|
triangle: !0,
|
|
2550
2550
|
"": n.value === "vertical"
|
|
2551
2551
|
}));
|
|
2552
|
-
function
|
|
2553
|
-
return l.value.map((y,
|
|
2554
|
-
class: u(y,
|
|
2555
|
-
onClick: (g) => v(y,
|
|
2552
|
+
function V() {
|
|
2553
|
+
return l.value.map((y, m) => C("li", {
|
|
2554
|
+
class: u(y, m),
|
|
2555
|
+
onClick: (g) => v(y, m)
|
|
2556
2556
|
}, [C("div", {
|
|
2557
|
-
class: c(y,
|
|
2557
|
+
class: c(y, m)
|
|
2558
2558
|
}, [C("div", {
|
|
2559
2559
|
class: "f-progress-step-content"
|
|
2560
|
-
}, [i(y,
|
|
2561
|
-
class: w(y,
|
|
2560
|
+
}, [i(y, m), d(y, m)]), T(y, m) && C("div", {
|
|
2561
|
+
class: w(y, m)
|
|
2562
2562
|
}, [C("span", {
|
|
2563
|
-
class:
|
|
2563
|
+
class: D.value
|
|
2564
2564
|
}, null)])])]));
|
|
2565
2565
|
}
|
|
2566
2566
|
return ve(() => e.activeIndex, () => {
|
|
2567
|
-
e.activeIndex > -1 && e.activeIndex <= l.value.length && (a.value = e.activeIndex,
|
|
2567
|
+
e.activeIndex > -1 && e.activeIndex <= l.value.length && (a.value = e.activeIndex, V());
|
|
2568
2568
|
}), () => C("div", {
|
|
2569
2569
|
class: "f-progress-step"
|
|
2570
2570
|
}, [C("ul", {
|
|
2571
2571
|
class: f.value,
|
|
2572
|
-
style:
|
|
2573
|
-
}, [
|
|
2572
|
+
style: p.value
|
|
2573
|
+
}, [V()])]);
|
|
2574
2574
|
}
|
|
2575
2575
|
});
|
|
2576
|
-
function
|
|
2577
|
-
var
|
|
2576
|
+
function jc(e, t, n) {
|
|
2577
|
+
var S;
|
|
2578
2578
|
const o = n && n.getStyles && n.getStyles() || "", r = n && n.getDesignerClass && n.getDesignerClass() || "", l = h();
|
|
2579
2579
|
let a;
|
|
2580
2580
|
function f() {
|
|
2581
2581
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2583
|
+
function p() {
|
|
2584
2584
|
return !1;
|
|
2585
2585
|
}
|
|
2586
2586
|
function u() {
|
|
@@ -2589,85 +2589,85 @@ function Oc(e, t, n) {
|
|
|
2589
2589
|
function v() {
|
|
2590
2590
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
2591
2591
|
}
|
|
2592
|
-
function c(
|
|
2593
|
-
if (!
|
|
2592
|
+
function c(B) {
|
|
2593
|
+
if (!B || !B.value)
|
|
2594
2594
|
return null;
|
|
2595
|
-
if (
|
|
2596
|
-
return
|
|
2597
|
-
const P = h(
|
|
2598
|
-
return
|
|
2595
|
+
if (B.value.schema && B.value.schema.type === "component")
|
|
2596
|
+
return B.value;
|
|
2597
|
+
const P = h(B == null ? void 0 : B.value.parent), L = c(P);
|
|
2598
|
+
return L || null;
|
|
2599
2599
|
}
|
|
2600
|
-
function b(
|
|
2601
|
-
var
|
|
2600
|
+
function b(B = t) {
|
|
2601
|
+
var $;
|
|
2602
2602
|
if (n != null && n.getDraggableDesignItemElement)
|
|
2603
|
-
return n.getDraggableDesignItemElement(
|
|
2604
|
-
const { componentInstance: P, designerItemElementRef:
|
|
2603
|
+
return n.getDraggableDesignItemElement(B);
|
|
2604
|
+
const { componentInstance: P, designerItemElementRef: L } = B;
|
|
2605
2605
|
if (!P || !P.value)
|
|
2606
2606
|
return null;
|
|
2607
2607
|
const { getCustomButtons: H } = P.value;
|
|
2608
|
-
return P.value.canMove || H && ((
|
|
2608
|
+
return P.value.canMove || H && (($ = H()) != null && $.length) ? L : b(B.parent);
|
|
2609
2609
|
}
|
|
2610
|
-
function i(
|
|
2611
|
-
return !!n && n.canAccepts(
|
|
2610
|
+
function i(B) {
|
|
2611
|
+
return !!n && n.canAccepts(B);
|
|
2612
2612
|
}
|
|
2613
2613
|
function s() {
|
|
2614
2614
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
2615
2615
|
}
|
|
2616
2616
|
function d() {
|
|
2617
2617
|
}
|
|
2618
|
-
function w(
|
|
2619
|
-
var
|
|
2620
|
-
!
|
|
2618
|
+
function w(B, P) {
|
|
2619
|
+
var L;
|
|
2620
|
+
!B || !P || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(B, P), (L = t == null ? void 0 : t.setupContext) == null || L.emit("dragEnd"));
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2623
|
-
const { componentType:
|
|
2624
|
-
let H = bn(
|
|
2625
|
-
n && n.onResolveNewComponentSchema && (H = n.onResolveNewComponentSchema(
|
|
2626
|
-
const
|
|
2627
|
-
return H && !H.id && H.type ===
|
|
2622
|
+
function T(B, P) {
|
|
2623
|
+
const { componentType: L } = B;
|
|
2624
|
+
let H = bn(L, B, P);
|
|
2625
|
+
n && n.onResolveNewComponentSchema && (H = n.onResolveNewComponentSchema(B, H));
|
|
2626
|
+
const $ = L.toLowerCase().replace(/-/g, "_");
|
|
2627
|
+
return H && !H.id && H.type === L && (H.id = `${$}_${Math.random().toString().slice(2, 6)}`), H;
|
|
2628
2628
|
}
|
|
2629
|
-
function
|
|
2630
|
-
|
|
2629
|
+
function D(B) {
|
|
2630
|
+
B && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(B);
|
|
2631
2631
|
}
|
|
2632
|
-
function
|
|
2632
|
+
function V(...B) {
|
|
2633
2633
|
if (n && n.getPropsConfig)
|
|
2634
|
-
return n.getPropsConfig(...
|
|
2634
|
+
return n.getPropsConfig(...B);
|
|
2635
2635
|
}
|
|
2636
|
-
function y(
|
|
2637
|
-
if (!
|
|
2636
|
+
function y(B) {
|
|
2637
|
+
if (!B)
|
|
2638
2638
|
return;
|
|
2639
|
-
const P = t == null ? void 0 : t.schema, { formSchemaUtils:
|
|
2640
|
-
if (P &&
|
|
2641
|
-
const H =
|
|
2642
|
-
H > -1 &&
|
|
2639
|
+
const P = t == null ? void 0 : t.schema, { formSchemaUtils: L } = B;
|
|
2640
|
+
if (P && L.getExpressions().length) {
|
|
2641
|
+
const H = L.getExpressions().findIndex(($) => $.target === P.id);
|
|
2642
|
+
H > -1 && L.getExpressions().splice(H, 1);
|
|
2643
2643
|
}
|
|
2644
2644
|
}
|
|
2645
|
-
function
|
|
2646
|
-
if (!
|
|
2645
|
+
function m(B) {
|
|
2646
|
+
if (!B || !(t != null && t.schema))
|
|
2647
2647
|
return;
|
|
2648
|
-
const P = t.schema, { formSchemaUtils:
|
|
2649
|
-
|
|
2650
|
-
}
|
|
2651
|
-
function g(
|
|
2652
|
-
n && n.onRemoveComponent && n.onRemoveComponent(), y(
|
|
2653
|
-
let
|
|
2654
|
-
P.type === "component-ref" && (
|
|
2655
|
-
const H = e.value.querySelectorAll(`#${
|
|
2656
|
-
H != null && H.length && Array.from(H).map((
|
|
2648
|
+
const P = t.schema, { formSchemaUtils: L } = B;
|
|
2649
|
+
L.removeCommunicationInComponent(P);
|
|
2650
|
+
}
|
|
2651
|
+
function g(B) {
|
|
2652
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), y(B), m(B), t != null && t.schema.contents && t.schema.contents.map((P) => {
|
|
2653
|
+
let L = P.id;
|
|
2654
|
+
P.type === "component-ref" && (L = P.component);
|
|
2655
|
+
const H = e.value.querySelectorAll(`#${L}-design-item`);
|
|
2656
|
+
H != null && H.length && Array.from(H).map(($) => {
|
|
2657
2657
|
var J;
|
|
2658
|
-
(J =
|
|
2658
|
+
(J = $ == null ? void 0 : $.componentInstance) != null && J.value.onRemoveComponent && $.componentInstance.value.onRemoveComponent(B);
|
|
2659
2659
|
});
|
|
2660
2660
|
});
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2662
|
+
function x() {
|
|
2663
2663
|
if (n && n.getCustomButtons)
|
|
2664
2664
|
return n.getCustomButtons();
|
|
2665
2665
|
}
|
|
2666
|
-
function
|
|
2667
|
-
var
|
|
2668
|
-
if (!((
|
|
2666
|
+
function F(B) {
|
|
2667
|
+
var L, H;
|
|
2668
|
+
if (!((L = t == null ? void 0 : t.schema) != null && L.id))
|
|
2669
2669
|
return;
|
|
2670
|
-
if (!a &&
|
|
2670
|
+
if (!a && B && (a = B.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
|
|
2671
2671
|
n.setComponentBasicInfoMap();
|
|
2672
2672
|
return;
|
|
2673
2673
|
}
|
|
@@ -2675,21 +2675,21 @@ function Oc(e, t, n) {
|
|
|
2675
2675
|
if (n != null && n.getComponentTitle)
|
|
2676
2676
|
P = n.getComponentTitle();
|
|
2677
2677
|
else {
|
|
2678
|
-
const { text:
|
|
2679
|
-
P =
|
|
2678
|
+
const { text: $, title: J, label: N, mainTitle: j, name: M, type: O } = t.schema;
|
|
2679
|
+
P = $ || J || N || j || M || ((H = R[O]) == null ? void 0 : H.name);
|
|
2680
2680
|
}
|
|
2681
2681
|
P && a.getControlBasicInfoMap().set(t.schema.id, {
|
|
2682
2682
|
componentTitle: P,
|
|
2683
2683
|
parentPathName: P
|
|
2684
2684
|
});
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2687
|
-
var
|
|
2688
|
-
const { changeObject: P } =
|
|
2689
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((
|
|
2686
|
+
function I(B) {
|
|
2687
|
+
var $;
|
|
2688
|
+
const { changeObject: P } = B, { propertyID: L, propertyValue: H } = P;
|
|
2689
|
+
if (["text", "title", "label", "name", "mainTitle"].includes(($ = B == null ? void 0 : B.changeObject) == null ? void 0 : $.propertyID) && L && H && (F(), a)) {
|
|
2690
2690
|
const J = a.getControlBasicInfoMap(), N = J.keys().toArray().filter((j) => {
|
|
2691
|
-
var M,
|
|
2692
|
-
return ((M = J.get(j)) == null ? void 0 : M.reliedComponentId) === ((
|
|
2691
|
+
var M, O;
|
|
2692
|
+
return ((M = J.get(j)) == null ? void 0 : M.reliedComponentId) === ((O = t == null ? void 0 : t.schema) == null ? void 0 : O.id);
|
|
2693
2693
|
});
|
|
2694
2694
|
N != null && N.length && N.forEach((j) => {
|
|
2695
2695
|
const M = J.get(j).parentPathName.split(" > ");
|
|
@@ -2697,18 +2697,18 @@ function Oc(e, t, n) {
|
|
|
2697
2697
|
});
|
|
2698
2698
|
}
|
|
2699
2699
|
}
|
|
2700
|
-
function
|
|
2701
|
-
if (
|
|
2702
|
-
return n.onPropertyChanged(
|
|
2700
|
+
function E(B) {
|
|
2701
|
+
if (I(B), n && n.onPropertyChanged)
|
|
2702
|
+
return n.onPropertyChanged(B);
|
|
2703
2703
|
}
|
|
2704
2704
|
return l.value = {
|
|
2705
2705
|
canMove: f(),
|
|
2706
|
-
canSelectParent:
|
|
2706
|
+
canSelectParent: p(),
|
|
2707
2707
|
canDelete: u(),
|
|
2708
2708
|
canNested: !v(),
|
|
2709
2709
|
contents: t == null ? void 0 : t.schema.contents,
|
|
2710
2710
|
elementRef: e,
|
|
2711
|
-
parent: (
|
|
2711
|
+
parent: (S = t == null ? void 0 : t.parent) == null ? void 0 : S.componentInstance,
|
|
2712
2712
|
schema: t == null ? void 0 : t.schema,
|
|
2713
2713
|
styles: o,
|
|
2714
2714
|
designerClass: r,
|
|
@@ -2716,17 +2716,17 @@ function Oc(e, t, n) {
|
|
|
2716
2716
|
getBelongedComponentInstance: c,
|
|
2717
2717
|
getDraggableDesignItemElement: b,
|
|
2718
2718
|
getDraggingDisplayText: s,
|
|
2719
|
-
getPropConfig:
|
|
2719
|
+
getPropConfig: V,
|
|
2720
2720
|
getDragScopeElement: d,
|
|
2721
2721
|
onAcceptMovedChildElement: w,
|
|
2722
|
-
onChildElementMovedOut:
|
|
2723
|
-
addNewChildComponentSchema:
|
|
2722
|
+
onChildElementMovedOut: D,
|
|
2723
|
+
addNewChildComponentSchema: T,
|
|
2724
2724
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || h(!1),
|
|
2725
2725
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || h(!1),
|
|
2726
2726
|
onRemoveComponent: g,
|
|
2727
|
-
getCustomButtons:
|
|
2728
|
-
onPropertyChanged:
|
|
2729
|
-
setComponentBasicInfoMap:
|
|
2727
|
+
getCustomButtons: x,
|
|
2728
|
+
onPropertyChanged: E,
|
|
2729
|
+
setComponentBasicInfoMap: F,
|
|
2730
2730
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
2731
2731
|
}, l;
|
|
2732
2732
|
}
|
|
@@ -2791,7 +2791,7 @@ class Bi {
|
|
|
2791
2791
|
const { selectedFields: l } = t;
|
|
2792
2792
|
l == null || l.forEach((f) => {
|
|
2793
2793
|
if (f.$type === sn.SimpleField) {
|
|
2794
|
-
const
|
|
2794
|
+
const p = Ct(f), u = this.resolveControlClassByFormColumns(t), v = this.controlCreatorUtils.setFormFieldProperty(p, "", u);
|
|
2795
2795
|
v && r.push(v);
|
|
2796
2796
|
}
|
|
2797
2797
|
});
|
|
@@ -2859,12 +2859,12 @@ class Bi {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
}
|
|
2861
2861
|
function Di(e, t, n, o) {
|
|
2862
|
-
var l, a, f,
|
|
2862
|
+
var l, a, f, p, u, v;
|
|
2863
2863
|
const r = n.parentComponentInstance;
|
|
2864
2864
|
if (r && o) {
|
|
2865
2865
|
const c = (l = r.schema) == null ? void 0 : l.type, i = {
|
|
2866
2866
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
2867
|
-
componentName: ((a = n.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((
|
|
2867
|
+
componentName: ((a = n.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((p = (f = n.bindingSourceContext) == null ? void 0 : f.bindingEntity) == null ? void 0 : p.name) || "标题",
|
|
2868
2868
|
componentType: "form",
|
|
2869
2869
|
formColumns: c === "splitter-pane" ? 1 : 4,
|
|
2870
2870
|
parentContainerId: r.schema.id,
|
|
@@ -3053,7 +3053,7 @@ Ot(
|
|
|
3053
3053
|
en,
|
|
3054
3054
|
void 0
|
|
3055
3055
|
);
|
|
3056
|
-
function
|
|
3056
|
+
function Lc() {
|
|
3057
3057
|
function e(t, n) {
|
|
3058
3058
|
var a;
|
|
3059
3059
|
if (!t)
|
|
@@ -3068,16 +3068,16 @@ function Nc() {
|
|
|
3068
3068
|
basalDragulaRuleForContainer: e
|
|
3069
3069
|
};
|
|
3070
3070
|
}
|
|
3071
|
-
class
|
|
3071
|
+
class Vc {
|
|
3072
3072
|
getTemplateRule(t, n) {
|
|
3073
3073
|
const o = n == null ? void 0 : n.formSchemaUtils, r = o == null ? void 0 : o.getFormTemplateRule(), l = { canAccept: !0, canDelete: !0, canMove: !0 };
|
|
3074
3074
|
if (!r)
|
|
3075
3075
|
return l;
|
|
3076
3076
|
const a = this.getComponentContext(t), { componentClassList: f } = a;
|
|
3077
|
-
return f.forEach((
|
|
3078
|
-
if (!
|
|
3077
|
+
return f.forEach((p) => {
|
|
3078
|
+
if (!p || !r[p])
|
|
3079
3079
|
return;
|
|
3080
|
-
const { canMove: u, canDelete: v, canAccept: c } = r[
|
|
3080
|
+
const { canMove: u, canDelete: v, canAccept: c } = r[p];
|
|
3081
3081
|
l.canMove = l.canMove && this.resolveRuleValue(u, a), l.canDelete = l.canDelete && this.resolveRuleValue(v, a), l.canAccept = l.canAccept && this.resolveRuleValue(c, a);
|
|
3082
3082
|
}), l;
|
|
3083
3083
|
}
|
|
@@ -3088,7 +3088,7 @@ class Pc {
|
|
|
3088
3088
|
const o = t.invalidContext || [];
|
|
3089
3089
|
let r = !0;
|
|
3090
3090
|
for (const l of o) {
|
|
3091
|
-
const { firstLevelChild: a, secondLevelChild: f, parent:
|
|
3091
|
+
const { firstLevelChild: a, secondLevelChild: f, parent: p, ...u } = l;
|
|
3092
3092
|
if (u && n.component) {
|
|
3093
3093
|
let v = !0;
|
|
3094
3094
|
for (const c of Object.keys(u))
|
|
@@ -3155,15 +3155,15 @@ class Pc {
|
|
|
3155
3155
|
return !r;
|
|
3156
3156
|
}
|
|
3157
3157
|
getComponentContext(t) {
|
|
3158
|
-
var d, w,
|
|
3159
|
-
const n = t.schema, o = n.appearance && n.appearance.class || "", r = o.split(" ") || [], l = n.contents || [], a = l.length ? l[0] : null, f = a && a.appearance ? a.appearance.class : "",
|
|
3158
|
+
var d, w, T, D;
|
|
3159
|
+
const n = t.schema, o = n.appearance && n.appearance.class || "", r = o.split(" ") || [], l = n.contents || [], a = l.length ? l[0] : null, f = a && a.appearance ? a.appearance.class : "", p = f ? f.split(" ") : [], u = (d = a == null ? void 0 : a.contents) != null && d.length ? a == null ? void 0 : a.contents[0] : null, v = u && u.appearance ? u.appearance.class : "", c = v ? v.split(" ") : [], b = n.type === "component" ? (T = (w = t.parent) == null ? void 0 : w.parent) == null ? void 0 : T.schema : (D = t.parent) == null ? void 0 : D.schema, i = b && b.appearance && b.appearance.class || "", s = i ? i.split(" ") : [];
|
|
3160
3160
|
return {
|
|
3161
3161
|
componentClass: o,
|
|
3162
3162
|
componentClassList: r,
|
|
3163
3163
|
childContents: l,
|
|
3164
3164
|
firstLevelChildSchema: a,
|
|
3165
3165
|
firstLevelChildClass: f,
|
|
3166
|
-
firstLevelChildClassList:
|
|
3166
|
+
firstLevelChildClassList: p,
|
|
3167
3167
|
secondLevelChildSchema: u,
|
|
3168
3168
|
secondLevelChildClass: v,
|
|
3169
3169
|
secondLevelChildClassList: c,
|
|
@@ -3203,13 +3203,13 @@ const Gi = {
|
|
|
3203
3203
|
}), ve([() => e.valid, () => e.inValidTip], ([v, c]) => {
|
|
3204
3204
|
r.value = v, l.value = c;
|
|
3205
3205
|
});
|
|
3206
|
-
const a = G(() => r.value ? o.value : l.value), f = G(() => r.value ? "" : "color:red"),
|
|
3206
|
+
const a = G(() => r.value ? o.value : l.value), f = G(() => r.value ? "" : "color:red"), p = G(() => ({
|
|
3207
3207
|
"col-form-label": !0,
|
|
3208
3208
|
// 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
|
|
3209
3209
|
"f-width-auto": n.value && (e.showType === "none" || !o.value)
|
|
3210
3210
|
})), u = G(() => e.showType === "reserve-space" || n.value || o.value && e.showType !== "none");
|
|
3211
3211
|
return () => u.value && C("label", {
|
|
3212
|
-
class:
|
|
3212
|
+
class: p.value,
|
|
3213
3213
|
title: a.value,
|
|
3214
3214
|
style: f.value
|
|
3215
3215
|
}, [!r.value && C("span", {
|
|
@@ -3236,8 +3236,8 @@ function Xi() {
|
|
|
3236
3236
|
return f;
|
|
3237
3237
|
}
|
|
3238
3238
|
function t(a, f) {
|
|
3239
|
-
const
|
|
3240
|
-
return
|
|
3239
|
+
const p = U[a];
|
|
3240
|
+
return p ? p(f) : {};
|
|
3241
3241
|
}
|
|
3242
3242
|
function n(a) {
|
|
3243
3243
|
switch (a) {
|
|
@@ -3376,35 +3376,35 @@ const Ji = {
|
|
|
3376
3376
|
props: Ro,
|
|
3377
3377
|
emits: ["change", "update:modelValue"],
|
|
3378
3378
|
setup(e, t) {
|
|
3379
|
-
var
|
|
3380
|
-
const n = h(e.id), o = h(e.customClass), r = h(e.editor), l = h(e.label), a = h(e.modelValue), f = h(e.readonly),
|
|
3379
|
+
var x;
|
|
3380
|
+
const n = h(e.id), o = h(e.customClass), r = h(e.editor), l = h(e.label), a = h(e.modelValue), f = h(e.readonly), p = h(((x = e.editor) == null ? void 0 : x.required) || e.required), u = h(e.showLabel), v = h(e.visible);
|
|
3381
3381
|
h(e.type);
|
|
3382
3382
|
const c = h(), b = h(e.errors), i = G(() => u.value ? e.showLabelType : "none"), {
|
|
3383
3383
|
resolveEditorProps: s,
|
|
3384
3384
|
resolveEditorType: d,
|
|
3385
3385
|
getChangeFunctionName: w,
|
|
3386
|
-
getClearFunctionName:
|
|
3387
|
-
} = Xi(),
|
|
3386
|
+
getClearFunctionName: T
|
|
3387
|
+
} = Xi(), D = G(() => ({
|
|
3388
3388
|
"form-group": !0,
|
|
3389
3389
|
"farris-form-group": !0,
|
|
3390
3390
|
"common-group": !0,
|
|
3391
3391
|
"q-state-readonly": f.value
|
|
3392
3392
|
}));
|
|
3393
|
-
function
|
|
3394
|
-
a.value =
|
|
3395
|
-
newValue:
|
|
3396
|
-
newModelValue:
|
|
3397
|
-
parameters:
|
|
3393
|
+
function V(F, I, E) {
|
|
3394
|
+
a.value = I !== void 0 ? I : F, t.emit("update:modelValue", a.value), t.emit("change", a.value, {
|
|
3395
|
+
newValue: F,
|
|
3396
|
+
newModelValue: I,
|
|
3397
|
+
parameters: E
|
|
3398
3398
|
});
|
|
3399
3399
|
}
|
|
3400
3400
|
function y() {
|
|
3401
3401
|
t.emit("update:modelValue", "");
|
|
3402
3402
|
}
|
|
3403
|
-
const
|
|
3404
|
-
const
|
|
3405
|
-
return
|
|
3403
|
+
const m = G(() => {
|
|
3404
|
+
const F = r.value.type || "input-group", I = d(F), E = s(F, r.value), S = w(F), B = T(r.value.type);
|
|
3405
|
+
return B && (E[B] = y), E[S] = V, (E.id == null || E.id === "") && (E.id = n.value), F === "number-range" && r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" ? (r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" && (E.onBeginValueChange = r.value.onBeginValueChange), r.value.onEndValueChange && typeof r.value.onEndValueChange == "function" && (E.onEndValueChange = r.value.onEndValueChange)) : F === "lookup" && r.value["onUpdate:idValue"] && typeof r.value["onUpdate:idValue"] == "function" ? (E["onUpdate:idValue"] = r.value["onUpdate:idValue"], E.id = n.value) : F === "collection-property-editor" && r.value.onSelectionChange && typeof r.value.onSelectionChange == "function" ? E.onSelectionChange = r.value.onSelectionChange : F === "property-editor" && (E.onBeforeOpenVariables = r.value.onBeforeOpenVariables), () => C(I, ot({
|
|
3406
3406
|
ref: c
|
|
3407
|
-
},
|
|
3407
|
+
}, E, {
|
|
3408
3408
|
modelValue: a.value,
|
|
3409
3409
|
"onUpdate:modelValue": (P) => a.value = P
|
|
3410
3410
|
}), t.slots);
|
|
@@ -3415,9 +3415,9 @@ const Ji = {
|
|
|
3415
3415
|
errors: b.value
|
|
3416
3416
|
}, null);
|
|
3417
3417
|
}
|
|
3418
|
-
return ve([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([
|
|
3418
|
+
return ve([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([F, I, E, S, B, P, L, H, $, J]) => {
|
|
3419
3419
|
var N;
|
|
3420
|
-
n.value =
|
|
3420
|
+
n.value = F, o.value = I, r.value = E, l.value = S, a.value = B, f.value = P, p.value = ((N = r.value) == null ? void 0 : N.required) || L, u.value = H, v.value = $, b.value = J;
|
|
3421
3421
|
}), t.expose({
|
|
3422
3422
|
editorRef: c
|
|
3423
3423
|
}), () => v.value && C("div", {
|
|
@@ -3427,16 +3427,16 @@ const Ji = {
|
|
|
3427
3427
|
}, [C("div", {
|
|
3428
3428
|
class: "farris-group-wrap"
|
|
3429
3429
|
}, [C("div", {
|
|
3430
|
-
class:
|
|
3430
|
+
class: D.value
|
|
3431
3431
|
}, [C(Wi, {
|
|
3432
3432
|
id: `${n.value}-lable`,
|
|
3433
3433
|
showType: i.value,
|
|
3434
|
-
required:
|
|
3434
|
+
required: p.value,
|
|
3435
3435
|
text: l.value,
|
|
3436
3436
|
title: l.value
|
|
3437
3437
|
}, null), C("div", {
|
|
3438
3438
|
class: "farris-input-wrap"
|
|
3439
|
-
}, [
|
|
3439
|
+
}, [m.value(), g()])])])]);
|
|
3440
3440
|
}
|
|
3441
3441
|
}), ee = {}, te = {}, ne = {};
|
|
3442
3442
|
let Et = !1;
|
|
@@ -3448,10 +3448,10 @@ function Ki(e) {
|
|
|
3448
3448
|
return;
|
|
3449
3449
|
Et = !0;
|
|
3450
3450
|
const t = {
|
|
3451
|
-
schemaMap:
|
|
3452
|
-
propertyConfigSchemaMap:
|
|
3453
|
-
propertyEffectMap:
|
|
3454
|
-
schemaResolverMap:
|
|
3451
|
+
schemaMap: Qr,
|
|
3452
|
+
propertyConfigSchemaMap: Zr,
|
|
3453
|
+
propertyEffectMap: Kr,
|
|
3454
|
+
schemaResolverMap: ea
|
|
3455
3455
|
};
|
|
3456
3456
|
e.forEach((n) => {
|
|
3457
3457
|
n.registerDesigner && n.registerDesigner(ee, te, ne, t);
|
|
@@ -3658,7 +3658,7 @@ function ml() {
|
|
|
3658
3658
|
return { onCopy: e };
|
|
3659
3659
|
}
|
|
3660
3660
|
function vl(e, t, n, o) {
|
|
3661
|
-
const r = h(14), l = h(140), a = h(""), f = h(o.value.length),
|
|
3661
|
+
const r = h(14), l = h(140), a = h(""), f = h(o.value.length), p = G(() => o.value), u = G(() => ({
|
|
3662
3662
|
"font-size": `${r.value}px`,
|
|
3663
3663
|
height: "100%"
|
|
3664
3664
|
}));
|
|
@@ -3676,7 +3676,7 @@ function vl(e, t, n, o) {
|
|
|
3676
3676
|
rows: "4",
|
|
3677
3677
|
maxlength: l.value,
|
|
3678
3678
|
onInput: (c) => v(c)
|
|
3679
|
-
}, [
|
|
3679
|
+
}, [p.value]), C("span", {
|
|
3680
3680
|
class: "textarea-wordcount",
|
|
3681
3681
|
title: a.value,
|
|
3682
3682
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
@@ -3735,13 +3735,13 @@ function bl(e, t) {
|
|
|
3735
3735
|
if (i !== "" && i !== void 0 && i !== null) {
|
|
3736
3736
|
i = "" + i;
|
|
3737
3737
|
const d = i.length;
|
|
3738
|
-
let w = "",
|
|
3739
|
-
for (let
|
|
3740
|
-
const
|
|
3741
|
-
if (
|
|
3738
|
+
let w = "", T = 0;
|
|
3739
|
+
for (let D = 0; D < d; D++) {
|
|
3740
|
+
const V = i.charAt(D);
|
|
3741
|
+
if (T++, encodeURI(V).length > 4 && T++, w = w.concat(V), T >= s)
|
|
3742
3742
|
return w = w.concat("..."), w;
|
|
3743
3743
|
}
|
|
3744
|
-
if (
|
|
3744
|
+
if (T < s)
|
|
3745
3745
|
return i;
|
|
3746
3746
|
}
|
|
3747
3747
|
return "";
|
|
@@ -3749,18 +3749,18 @@ function bl(e, t) {
|
|
|
3749
3749
|
const r = G(() => !!e.value && !!e.value.date), l = G(() => {
|
|
3750
3750
|
const i = e.value && e.value.date || "";
|
|
3751
3751
|
return `${t.exception.happend} : ${i}`;
|
|
3752
|
-
}), a = G(() => !!e.value && !!e.value.detail), f = G(() => e.value ? n(e.value.detail) > 160 : !1),
|
|
3752
|
+
}), a = G(() => !!e.value && !!e.value.detail), f = G(() => e.value ? n(e.value.detail) > 160 : !1), p = h(!1), u = G(() => p.value ? t.exception.collapse : t.exception.expand), v = G(() => {
|
|
3753
3753
|
const i = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
3754
|
-
return
|
|
3754
|
+
return p.value ? i : o(i, 160);
|
|
3755
3755
|
}), c = G(() => ({
|
|
3756
3756
|
position: "absolute",
|
|
3757
3757
|
right: 0,
|
|
3758
|
-
bottom:
|
|
3758
|
+
bottom: p.value ? 0 : "2px",
|
|
3759
3759
|
color: "#2A87FF",
|
|
3760
3760
|
cursor: "pointer"
|
|
3761
3761
|
}));
|
|
3762
3762
|
function b() {
|
|
3763
|
-
|
|
3763
|
+
p.value = !p.value;
|
|
3764
3764
|
}
|
|
3765
3765
|
return () => C("div", {
|
|
3766
3766
|
class: "toast-msg-detail"
|
|
@@ -3787,9 +3787,9 @@ function wl(e, t, n, o, r) {
|
|
|
3787
3787
|
"f-icon": !0
|
|
3788
3788
|
}, w = `f-icon-${s}`;
|
|
3789
3789
|
return d[w] = !0, d;
|
|
3790
|
-
}), f = G(() => n.value || l.value && l.value.message),
|
|
3790
|
+
}), f = G(() => n.value || l.value && l.value.message), p = G(() => o.value), u = G(() => !!o.value), v = G(() => !!l.value);
|
|
3791
3791
|
function c() {
|
|
3792
|
-
return v.value ? bl(l, r) : u.value ? Cl(
|
|
3792
|
+
return v.value ? bl(l, r) : u.value ? Cl(p) : () => null;
|
|
3793
3793
|
}
|
|
3794
3794
|
const b = c(), i = G(() => r.locale === "en" ? {
|
|
3795
3795
|
wordBreak: "keep-all",
|
|
@@ -3812,11 +3812,11 @@ function Sl(e, t, n, o) {
|
|
|
3812
3812
|
onCopy: r
|
|
3813
3813
|
} = t, {
|
|
3814
3814
|
toShowFeedback: l
|
|
3815
|
-
} = n, a = h(o.exception.copySuccess || "复制成功"), f = h(o.exception.copy || "复制详细信息"),
|
|
3815
|
+
} = n, a = h(o.exception.copySuccess || "复制成功"), f = h(o.exception.copy || "复制详细信息"), p = h(e.exceptionInfo || {
|
|
3816
3816
|
date: "",
|
|
3817
3817
|
message: "",
|
|
3818
3818
|
detail: ""
|
|
3819
|
-
}), u = G(() =>
|
|
3819
|
+
}), u = G(() => p.value && p.value.detail || "");
|
|
3820
3820
|
function v(c) {
|
|
3821
3821
|
r(u.value).catch((b) => {
|
|
3822
3822
|
a.value = o.exception.copyFailed || "复制失败";
|
|
@@ -3834,12 +3834,12 @@ function Sl(e, t, n, o) {
|
|
|
3834
3834
|
}, [f.value])]);
|
|
3835
3835
|
}
|
|
3836
3836
|
function Tl(e, t, n, o, r) {
|
|
3837
|
-
const l = h(e.type), a = h(e.buttons), f = h(e.exceptionInfo),
|
|
3838
|
-
|
|
3839
|
-
function w(
|
|
3837
|
+
const l = h(e.type), a = h(e.buttons), f = h(e.exceptionInfo), p = h(r.ok || e.okButtonText), u = h(r.cancel || e.cancelButtonText), v = h(e.showCancelButton), c = h(e.showOkButton), b = G(() => !!(a.value && a.value.length)), i = G(() => f.value && f.value.message && f.value.detail), s = G(() => !(a.value && a.value.length) && (c.value || v.value)), d = Sl(e, n, o, r);
|
|
3838
|
+
p.value === "关闭" ? p.value = r.close : p.value === "知道了" && (p.value = r.exception.roger);
|
|
3839
|
+
function w(D) {
|
|
3840
3840
|
l.value === "question" && t.emit("reject"), t.emit("close");
|
|
3841
3841
|
}
|
|
3842
|
-
function
|
|
3842
|
+
function T(D) {
|
|
3843
3843
|
l.value === "question" && t.emit("accept"), t.emit("close");
|
|
3844
3844
|
}
|
|
3845
3845
|
return () => C("div", {
|
|
@@ -3851,14 +3851,14 @@ function Tl(e, t, n, o, r) {
|
|
|
3851
3851
|
}, [u.value]), s.value && c.value && C("button", {
|
|
3852
3852
|
type: "button",
|
|
3853
3853
|
class: "btn btn-primary btn-lg",
|
|
3854
|
-
onClick:
|
|
3855
|
-
}, [
|
|
3854
|
+
onClick: T
|
|
3855
|
+
}, [p.value]), b.value && a.value.length && a.value.map((D) => C("button", {
|
|
3856
3856
|
type: "button",
|
|
3857
|
-
onClick:
|
|
3858
|
-
class:
|
|
3859
|
-
}, [
|
|
3860
|
-
class:
|
|
3861
|
-
}, null),
|
|
3857
|
+
onClick: D.handle,
|
|
3858
|
+
class: D.class
|
|
3859
|
+
}, [D.iconClass && C("span", {
|
|
3860
|
+
class: D.iconClass
|
|
3861
|
+
}, null), D.text]))]);
|
|
3862
3862
|
}
|
|
3863
3863
|
function Fl(e) {
|
|
3864
3864
|
const { t, locale: n } = Qt();
|
|
@@ -3892,18 +3892,18 @@ const Dt = /* @__PURE__ */ De({
|
|
|
3892
3892
|
emits: ["accept", "reject", "close"],
|
|
3893
3893
|
setup(e, t) {
|
|
3894
3894
|
const n = Fl(e), o = h(e.type), r = h(e.title), l = h(e.detail), a = G(() => {
|
|
3895
|
-
const
|
|
3895
|
+
const T = {
|
|
3896
3896
|
"modal-tips": !0,
|
|
3897
3897
|
"d-flex": !0,
|
|
3898
3898
|
"flex-row": !0
|
|
3899
|
-
},
|
|
3900
|
-
return
|
|
3899
|
+
}, D = `messager-type-${o.value}`;
|
|
3900
|
+
return T[D] = !0, T;
|
|
3901
3901
|
}), f = G(() => {
|
|
3902
|
-
const
|
|
3902
|
+
const T = {
|
|
3903
3903
|
cursor: "default"
|
|
3904
3904
|
};
|
|
3905
|
-
return o.value === "prompt" ?
|
|
3906
|
-
}),
|
|
3905
|
+
return o.value === "prompt" ? T.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (T.padding = "0.5rem 1.5rem 1rem 1.5rem"), T;
|
|
3906
|
+
}), p = ml(), u = gl(e, o, r, l), v = hl(), {
|
|
3907
3907
|
feedbackStyle: c,
|
|
3908
3908
|
feedbackMessage: b
|
|
3909
3909
|
} = v;
|
|
@@ -3921,7 +3921,7 @@ const Dt = /* @__PURE__ */ De({
|
|
|
3921
3921
|
return wl(e, o, r, l, n);
|
|
3922
3922
|
}
|
|
3923
3923
|
}
|
|
3924
|
-
const d = s(), w = Tl(e, t,
|
|
3924
|
+
const d = s(), w = Tl(e, t, p, v, n);
|
|
3925
3925
|
return () => C("div", {
|
|
3926
3926
|
class: "farris-messager"
|
|
3927
3927
|
}, [!e.exceptionInfo && C("div", {
|
|
@@ -4235,19 +4235,19 @@ class nt {
|
|
|
4235
4235
|
}
|
|
4236
4236
|
}
|
|
4237
4237
|
function Al(e, t) {
|
|
4238
|
-
const n = h(), o = h(), r = h(), l = h(), a = h(), f = h(),
|
|
4239
|
-
function
|
|
4238
|
+
const n = h(), o = h(), r = h(), l = h(), a = h(), f = h(), p = h(), u = h(), v = h(), c = h(), b = h(), i = h(e.resizeable), s = h(), d = h(e.draggable), w = h(!1);
|
|
4239
|
+
function T() {
|
|
4240
4240
|
const N = o.value || document.body, j = window.getComputedStyle(N);
|
|
4241
4241
|
if (!j || !n.value)
|
|
4242
4242
|
return;
|
|
4243
|
-
const M = ge.getTransformInfo(n.value),
|
|
4244
|
-
|
|
4243
|
+
const M = ge.getTransformInfo(n.value), O = {};
|
|
4244
|
+
p.value && (O.deltaL = n.value.offsetLeft - p.value.x, O.deltaT = n.value.offsetTop - p.value.y);
|
|
4245
4245
|
const z = j.getPropertyValue("position");
|
|
4246
|
-
|
|
4246
|
+
O.width = N.clientWidth, O.height = N.clientHeight, O.pr = parseInt(j.getPropertyValue("padding-right"), 10), O.pb = parseInt(j.getPropertyValue("padding-bottom"), 10), O.position = j.getPropertyValue("position"), z === "static" && (N.style.position = "relative"), O.translateX = M.x, O.translateY = M.y, c.value = O;
|
|
4247
4247
|
}
|
|
4248
|
-
function
|
|
4248
|
+
function D(N) {
|
|
4249
4249
|
if (n.value) {
|
|
4250
|
-
l.value = nt.getCurrent(n.value), a.value = ge.getCurrent(n.value), f.value = l.value ? nt.copy(l.value) : null,
|
|
4250
|
+
l.value = nt.getCurrent(n.value), a.value = ge.getCurrent(n.value), f.value = l.value ? nt.copy(l.value) : null, p.value = a.value ? ge.copy(a.value) : null, T();
|
|
4251
4251
|
const j = N.target.getAttribute("type") || "";
|
|
4252
4252
|
u.value = {
|
|
4253
4253
|
n: !!j.match(/n/),
|
|
@@ -4257,23 +4257,23 @@ function Al(e, t) {
|
|
|
4257
4257
|
};
|
|
4258
4258
|
}
|
|
4259
4259
|
}
|
|
4260
|
-
function
|
|
4261
|
-
var N, j, M,
|
|
4260
|
+
function V() {
|
|
4261
|
+
var N, j, M, O;
|
|
4262
4262
|
if (n.value) {
|
|
4263
4263
|
const z = n.value;
|
|
4264
|
-
u.value && ((u.value.n || u.value.s) && ((N = f.value) != null && N.height) && (z.style.height = f.value.height + "px"), (u.value.w || u.value.e) && ((j = f.value) != null && j.width) && (z.style.width = f.value.width + "px"),
|
|
4264
|
+
u.value && ((u.value.n || u.value.s) && ((N = f.value) != null && N.height) && (z.style.height = f.value.height + "px"), (u.value.w || u.value.e) && ((j = f.value) != null && j.width) && (z.style.width = f.value.width + "px"), p.value && ((M = p.value) != null && M.x && (z.style.left = p.value.x + "px"), (O = p.value) != null && O.y && (z.style.top = p.value.y + "px")));
|
|
4265
4265
|
}
|
|
4266
4266
|
}
|
|
4267
4267
|
function y() {
|
|
4268
4268
|
const N = e.minHeight ? e.minHeight : 1, j = e.minWidth ? e.minWidth : 1;
|
|
4269
|
-
f.value &&
|
|
4269
|
+
f.value && p.value && u.value && l.value && (f.value.height < N && (f.value.height = N, u.value.n && a.value && (p.value.y = a.value.y + (l.value.height - N))), f.value.width < j && (f.value.width = j, u.value.w && a.value && (p.value.x = a.value.x + (l.value.width - j))), e.maxHeight && f.value.height > e.maxHeight && (f.value.height = e.maxHeight, a.value && u.value.n && (p.value.y = a.value.y + (l.value.height - e.maxHeight))), e.maxWidth && f.value.width > e.maxWidth && (f.value.width = e.maxWidth, u.value.w && a.value && (p.value.x = a.value.x + (l.value.width - e.maxWidth))));
|
|
4270
4270
|
}
|
|
4271
|
-
function
|
|
4271
|
+
function m() {
|
|
4272
4272
|
if (o.value) {
|
|
4273
4273
|
const N = c.value;
|
|
4274
|
-
if (
|
|
4275
|
-
const j = N.width - N.pr - N.deltaL - N.translateX -
|
|
4276
|
-
u.value.n &&
|
|
4274
|
+
if (p.value && f.value && u.value && l.value) {
|
|
4275
|
+
const j = N.width - N.pr - N.deltaL - N.translateX - p.value.x, M = N.height - N.pb - N.deltaT - N.translateY - p.value.y;
|
|
4276
|
+
u.value.n && p.value.y + N.translateY < 0 && a.value && (p.value.y = -N.translateY, f.value.height = l.value.height + a.value.y + N.translateY), u.value.w && p.value.x + N.translateX < 0 && a.value && (p.value.x = -N.translateX, f.value.width = l.value.width + a.value.x + N.translateX), f.value.width > j && (f.value.width = j), f.value.height > M && (f.value.height = M);
|
|
4277
4277
|
}
|
|
4278
4278
|
}
|
|
4279
4279
|
}
|
|
@@ -4282,21 +4282,21 @@ function Al(e, t) {
|
|
|
4282
4282
|
return;
|
|
4283
4283
|
N.subtract(r.value);
|
|
4284
4284
|
const j = N.x, M = N.y;
|
|
4285
|
-
u.value.n ? (
|
|
4285
|
+
u.value.n ? (p.value.y = a.value.y + M, f.value.height = l.value.height - M) : u.value.s && (f.value.height = l.value.height + M), u.value.e ? f.value.width = l.value.width + j : u.value.w && (f.value.width = l.value.width - j, p.value.x = a.value.x + j), m(), y(), V();
|
|
4286
4286
|
}
|
|
4287
|
-
function
|
|
4287
|
+
function x(N) {
|
|
4288
4288
|
if (!v.value)
|
|
4289
4289
|
return;
|
|
4290
4290
|
const j = ge.fromEvent(N);
|
|
4291
4291
|
j && g(j);
|
|
4292
4292
|
}
|
|
4293
|
-
function
|
|
4293
|
+
function F() {
|
|
4294
4294
|
if (n.value) {
|
|
4295
4295
|
const {
|
|
4296
4296
|
width: N,
|
|
4297
4297
|
height: j,
|
|
4298
4298
|
x: M,
|
|
4299
|
-
y:
|
|
4299
|
+
y: O
|
|
4300
4300
|
} = n.value.getBoundingClientRect(), z = ge.getTransformInfo(n.value);
|
|
4301
4301
|
return {
|
|
4302
4302
|
size: {
|
|
@@ -4305,64 +4305,64 @@ function Al(e, t) {
|
|
|
4305
4305
|
},
|
|
4306
4306
|
position: {
|
|
4307
4307
|
x: M - z.x,
|
|
4308
|
-
y:
|
|
4308
|
+
y: O - z.y
|
|
4309
4309
|
}
|
|
4310
4310
|
};
|
|
4311
4311
|
}
|
|
4312
4312
|
return null;
|
|
4313
4313
|
}
|
|
4314
|
-
function
|
|
4314
|
+
function I(N) {
|
|
4315
4315
|
if (n.value) {
|
|
4316
|
-
const j =
|
|
4316
|
+
const j = F();
|
|
4317
4317
|
b.value = j;
|
|
4318
4318
|
}
|
|
4319
|
-
r.value = void 0, l.value = null, a.value = null, f.value = null,
|
|
4319
|
+
r.value = void 0, l.value = null, a.value = null, f.value = null, p.value = null, u.value = null, v.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", I);
|
|
4320
4320
|
}
|
|
4321
|
-
function
|
|
4322
|
-
document.addEventListener("mousemove",
|
|
4321
|
+
function E() {
|
|
4322
|
+
document.addEventListener("mousemove", x), document.addEventListener("mouseup", I);
|
|
4323
4323
|
}
|
|
4324
|
-
function
|
|
4325
|
-
N instanceof MouseEvent && N.button === 2 || d.value && (document.body.click(), N.stopPropagation(), N.preventDefault(), r.value = ge.fromEvent(N), v.value = N.target,
|
|
4324
|
+
function S(N) {
|
|
4325
|
+
N instanceof MouseEvent && N.button === 2 || d.value && (document.body.click(), N.stopPropagation(), N.preventDefault(), r.value = ge.fromEvent(N), v.value = N.target, D(N), E());
|
|
4326
4326
|
}
|
|
4327
|
-
function
|
|
4327
|
+
function B(N) {
|
|
4328
4328
|
return n.value = N, i.value && C(at, null, [C("div", {
|
|
4329
4329
|
class: "fv-resizable-handle fv-resizable-n",
|
|
4330
4330
|
type: "n",
|
|
4331
|
-
onMousedown: (j) =>
|
|
4331
|
+
onMousedown: (j) => S(j)
|
|
4332
4332
|
}, null), C("div", {
|
|
4333
4333
|
class: "fv-resizable-handle fv-resizable-e",
|
|
4334
4334
|
type: "e",
|
|
4335
|
-
onMousedown: (j) =>
|
|
4335
|
+
onMousedown: (j) => S(j)
|
|
4336
4336
|
}, null), C("div", {
|
|
4337
4337
|
class: "fv-resizable-handle fv-resizable-s",
|
|
4338
4338
|
type: "s",
|
|
4339
|
-
onMousedown: (j) =>
|
|
4339
|
+
onMousedown: (j) => S(j)
|
|
4340
4340
|
}, null), C("div", {
|
|
4341
4341
|
class: "fv-resizable-handle fv-resizable-w",
|
|
4342
4342
|
type: "w",
|
|
4343
|
-
onMousedown: (j) =>
|
|
4343
|
+
onMousedown: (j) => S(j)
|
|
4344
4344
|
}, null), C("div", {
|
|
4345
4345
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
4346
4346
|
type: "ne",
|
|
4347
|
-
onMousedown: (j) =>
|
|
4347
|
+
onMousedown: (j) => S(j)
|
|
4348
4348
|
}, null), C("div", {
|
|
4349
4349
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
4350
4350
|
type: "se",
|
|
4351
|
-
onMousedown: (j) =>
|
|
4351
|
+
onMousedown: (j) => S(j)
|
|
4352
4352
|
}, null), C("div", {
|
|
4353
4353
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
4354
4354
|
type: "sw",
|
|
4355
|
-
onMousedown: (j) =>
|
|
4355
|
+
onMousedown: (j) => S(j)
|
|
4356
4356
|
}, null), C("div", {
|
|
4357
4357
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
4358
4358
|
type: "nw",
|
|
4359
|
-
onMousedown: (j) =>
|
|
4359
|
+
onMousedown: (j) => S(j)
|
|
4360
4360
|
}, null)]);
|
|
4361
4361
|
}
|
|
4362
4362
|
function P(N = !0) {
|
|
4363
4363
|
document.body.click();
|
|
4364
|
-
const j = o.value || document.body, M = nt.getCurrent(j),
|
|
4365
|
-
N &&
|
|
4364
|
+
const j = o.value || document.body, M = nt.getCurrent(j), O = n.value;
|
|
4365
|
+
N && O && (s.value = F(), s.value.transform = O.style.transform), M && O && (f.value = M, f.value.height -= 14, f.value.width -= 14, O.style.height = f.value.height + "px", O.style.width = f.value.width + "px", O.style.left = "7px", O.style.top = "7px", O.style.transform = "", b.value = {
|
|
4366
4366
|
size: f.value,
|
|
4367
4367
|
position: {
|
|
4368
4368
|
x: 0,
|
|
@@ -4370,21 +4370,21 @@ function Al(e, t) {
|
|
|
4370
4370
|
}
|
|
4371
4371
|
}, d.value = !1, w.value = !0);
|
|
4372
4372
|
}
|
|
4373
|
-
function
|
|
4373
|
+
function L() {
|
|
4374
4374
|
var N, j;
|
|
4375
4375
|
if (document.body.click(), s.value) {
|
|
4376
4376
|
const M = {
|
|
4377
4377
|
width: s.value.size.width || 0,
|
|
4378
4378
|
height: s.value.size.height || 0
|
|
4379
|
-
},
|
|
4379
|
+
}, O = {
|
|
4380
4380
|
x: (window.innerWidth - M.width) / 2,
|
|
4381
4381
|
y: (window.innerHeight - M.height) / 2
|
|
4382
4382
|
};
|
|
4383
|
-
(N = f.value) == null || N.set(M), (j =
|
|
4383
|
+
(N = f.value) == null || N.set(M), (j = p.value) == null || j.set(O);
|
|
4384
4384
|
const z = n.value;
|
|
4385
|
-
z.style.height = M.height + "px", z.style.width = M.width + "px", z.style.left = `${
|
|
4385
|
+
z.style.height = M.height + "px", z.style.width = M.width + "px", z.style.left = `${O.x}px`, z.style.top = `${O.y}px`, z.style.transform = "", b.value = {
|
|
4386
4386
|
size: M,
|
|
4387
|
-
position:
|
|
4387
|
+
position: O
|
|
4388
4388
|
}, d.value = e.draggable, w.value = !1;
|
|
4389
4389
|
}
|
|
4390
4390
|
}
|
|
@@ -4400,7 +4400,7 @@ function Al(e, t) {
|
|
|
4400
4400
|
}
|
|
4401
4401
|
}
|
|
4402
4402
|
}
|
|
4403
|
-
function
|
|
4403
|
+
function $() {
|
|
4404
4404
|
const N = () => {
|
|
4405
4405
|
w.value ? P(!1) : H(), document.body.click();
|
|
4406
4406
|
};
|
|
@@ -4408,13 +4408,13 @@ function Al(e, t) {
|
|
|
4408
4408
|
window.removeEventListener("resize", N);
|
|
4409
4409
|
};
|
|
4410
4410
|
}
|
|
4411
|
-
const J =
|
|
4411
|
+
const J = $();
|
|
4412
4412
|
return {
|
|
4413
|
-
renderResizeBar:
|
|
4413
|
+
renderResizeBar: B,
|
|
4414
4414
|
boundingElement: o,
|
|
4415
4415
|
resizedEventParam: b,
|
|
4416
4416
|
maximize: P,
|
|
4417
|
-
restore:
|
|
4417
|
+
restore: L,
|
|
4418
4418
|
allowDrag: d,
|
|
4419
4419
|
isMaximized: w,
|
|
4420
4420
|
unWindowResizeHandle: J,
|
|
@@ -4422,78 +4422,78 @@ function Al(e, t) {
|
|
|
4422
4422
|
};
|
|
4423
4423
|
}
|
|
4424
4424
|
function Rl(e, t, n) {
|
|
4425
|
-
const o = h(), r = h(e.draggable), l = h(e.lockAxis), a = h(), f = h(),
|
|
4426
|
-
ve(() => n.value, (
|
|
4427
|
-
a.value.style.cursor =
|
|
4425
|
+
const o = h(), r = h(e.draggable), l = h(e.lockAxis), a = h(), f = h(), p = h(!1), u = h(new ge(0, 0)), v = h(new ge(0, 0)), c = h(new ge(0, 0)), b = h(new ge(0, 0));
|
|
4426
|
+
ve(() => n.value, (x) => {
|
|
4427
|
+
a.value.style.cursor = x ? "move" : "default";
|
|
4428
4428
|
});
|
|
4429
|
-
function i(
|
|
4430
|
-
if (
|
|
4429
|
+
function i(x, F) {
|
|
4430
|
+
if (F.tagName === "BUTTON")
|
|
4431
4431
|
return !1;
|
|
4432
|
-
if (
|
|
4432
|
+
if (F === x)
|
|
4433
4433
|
return !0;
|
|
4434
|
-
for (const
|
|
4435
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4434
|
+
for (const I in F.children)
|
|
4435
|
+
if (Object.prototype.hasOwnProperty.call(F.children, I) && i(x, F.children[I]))
|
|
4436
4436
|
return !0;
|
|
4437
4437
|
return !1;
|
|
4438
4438
|
}
|
|
4439
4439
|
function s() {
|
|
4440
|
-
var
|
|
4441
|
-
let
|
|
4442
|
-
l.value === "x" ? (
|
|
4443
|
-
const
|
|
4444
|
-
o.value && (o.value.style.transform =
|
|
4440
|
+
var E, S;
|
|
4441
|
+
let x = c.value.x + v.value.x, F = c.value.y + v.value.y;
|
|
4442
|
+
l.value === "x" ? (x = ((E = u.value) == null ? void 0 : E.x) || 0, c.value.x = 0) : l.value === "y" && (F = ((S = u.value) == null ? void 0 : S.y) || 0, c.value.y = 0);
|
|
4443
|
+
const I = `translate3d(${Math.round(x)}px, ${Math.round(F)}px, 0px)`;
|
|
4444
|
+
o.value && (o.value.style.transform = I), b.value.x = x, b.value.y = F;
|
|
4445
4445
|
}
|
|
4446
4446
|
function d() {
|
|
4447
4447
|
if (!f.value || !o.value)
|
|
4448
4448
|
return null;
|
|
4449
|
-
const
|
|
4450
|
-
top:
|
|
4451
|
-
right:
|
|
4452
|
-
bottom:
|
|
4453
|
-
left:
|
|
4449
|
+
const x = f.value.getBoundingClientRect(), F = o.value.getBoundingClientRect(), I = {
|
|
4450
|
+
top: x.top < F.top,
|
|
4451
|
+
right: x.right > F.right,
|
|
4452
|
+
bottom: x.bottom > F.bottom,
|
|
4453
|
+
left: x.left < F.left
|
|
4454
4454
|
};
|
|
4455
|
-
return
|
|
4455
|
+
return I.top || (c.value.y -= F.top - x.top), I.bottom || (c.value.y -= F.bottom - x.bottom), I.right || (c.value.x -= F.right - x.right), I.left || (c.value.x -= F.left - x.left), s(), I;
|
|
4456
4456
|
}
|
|
4457
|
-
function w(
|
|
4458
|
-
|
|
4457
|
+
function w(x) {
|
|
4458
|
+
x && (u.value && x.subtract(u.value), c.value.set(x), s(), d());
|
|
4459
4459
|
}
|
|
4460
|
-
function
|
|
4461
|
-
|
|
4460
|
+
function T(x) {
|
|
4461
|
+
p.value && r.value && (x.stopPropagation(), x.preventDefault(), w(ge.fromEvent(x, a.value)));
|
|
4462
4462
|
}
|
|
4463
|
-
function
|
|
4464
|
-
var
|
|
4465
|
-
|
|
4463
|
+
function D() {
|
|
4464
|
+
var x;
|
|
4465
|
+
p.value && (p.value = !1, v.value.add(c.value), c.value.reset(), (x = o.value) == null || x.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", D));
|
|
4466
4466
|
}
|
|
4467
|
-
function
|
|
4468
|
-
!
|
|
4467
|
+
function V() {
|
|
4468
|
+
!p.value && a.value && (p.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", T), document.addEventListener("mouseup", D));
|
|
4469
4469
|
}
|
|
4470
4470
|
function y() {
|
|
4471
4471
|
if (o.value) {
|
|
4472
|
-
const
|
|
4473
|
-
v.value.set(
|
|
4472
|
+
const x = ge.getTransformInfo(o.value);
|
|
4473
|
+
v.value.set(x);
|
|
4474
4474
|
return;
|
|
4475
4475
|
}
|
|
4476
4476
|
v.value.reset();
|
|
4477
4477
|
}
|
|
4478
|
-
function
|
|
4479
|
-
if (!n.value ||
|
|
4478
|
+
function m(x) {
|
|
4479
|
+
if (!n.value || x instanceof MouseEvent && x.button === 2)
|
|
4480
4480
|
return;
|
|
4481
|
-
const
|
|
4482
|
-
a.value !== void 0 &&
|
|
4481
|
+
const F = x.target || x.srcElement;
|
|
4482
|
+
a.value !== void 0 && F && !i(F, a.value) || r.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), u.value = ge.fromEvent(x, o.value), y(), V());
|
|
4483
4483
|
}
|
|
4484
|
-
function g(
|
|
4485
|
-
if (r.value &&
|
|
4486
|
-
if (
|
|
4487
|
-
a.value =
|
|
4484
|
+
function g(x, F, I) {
|
|
4485
|
+
if (r.value && F) {
|
|
4486
|
+
if (x)
|
|
4487
|
+
a.value = x;
|
|
4488
4488
|
else if (e.dragHandle) {
|
|
4489
4489
|
if (e.dragHandle instanceof HTMLElement)
|
|
4490
4490
|
a.value = e.dragHandle;
|
|
4491
4491
|
else if (typeof e.dragHandle == "string") {
|
|
4492
|
-
const
|
|
4493
|
-
|
|
4492
|
+
const E = F.querySelector(e.dragHandle);
|
|
4493
|
+
E && (a.value = E);
|
|
4494
4494
|
}
|
|
4495
4495
|
}
|
|
4496
|
-
o.value =
|
|
4496
|
+
o.value = F, f.value = I, a.value ? (a.value.classList.add("ng-draggable"), a.value.addEventListener("mousedown", m)) : r.value = !1;
|
|
4497
4497
|
}
|
|
4498
4498
|
}
|
|
4499
4499
|
return {
|
|
@@ -4534,11 +4534,11 @@ const rt = /* @__PURE__ */ De({
|
|
|
4534
4534
|
props: Ho,
|
|
4535
4535
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
4536
4536
|
setup(e, t) {
|
|
4537
|
-
const n = h(e.width || 300), o = h(e.height || 200), r = h(e.modelValue), l = h(""), a = h(e.class), f = h(e.fitContent),
|
|
4537
|
+
const n = h(e.width || 300), o = h(e.height || 200), r = h(e.modelValue), l = h(""), a = h(e.class), f = h(e.fitContent), p = h(e.showHeader), u = h(""), v = h(e.showCloseButton), c = h(e.showMaxButton), b = h(!1), i = h(e.dialogType), s = h(e.src), d = h(""), w = h(e.showButtons), T = h(e.title), D = h(e.containment || null), V = h(), {
|
|
4538
4538
|
t: y
|
|
4539
4539
|
} = Qt();
|
|
4540
|
-
|
|
4541
|
-
const
|
|
4540
|
+
T.value === "错误提示" && (T.value = y("messageBox.errorTitle"));
|
|
4541
|
+
const m = h(!1);
|
|
4542
4542
|
function g(A, ie) {
|
|
4543
4543
|
const ye = ie ? "accept" : "cancel";
|
|
4544
4544
|
Promise.resolve().then(() => {
|
|
@@ -4550,7 +4550,7 @@ const rt = /* @__PURE__ */ De({
|
|
|
4550
4550
|
be && (r.value = !1, t.emit("update:modelValue", !1), ie != null && t.emit(ie ? "accept" : "cancel"), t.emit("closed", A));
|
|
4551
4551
|
});
|
|
4552
4552
|
}
|
|
4553
|
-
const
|
|
4553
|
+
const x = [{
|
|
4554
4554
|
name: "cancel",
|
|
4555
4555
|
text: y("messageBox.cancel") || "取消",
|
|
4556
4556
|
class: "btn btn-secondary",
|
|
@@ -4564,15 +4564,15 @@ const rt = /* @__PURE__ */ De({
|
|
|
4564
4564
|
handle: (A) => {
|
|
4565
4565
|
g(A, !0);
|
|
4566
4566
|
}
|
|
4567
|
-
}],
|
|
4568
|
-
renderResizeBar:
|
|
4567
|
+
}], F = h(e.buttons && e.buttons.length ? e.buttons : x), I = G(() => !!u.value), E = G(() => !!w.value && !!F.value), S = h(), B = h(), P = h(!1), {
|
|
4568
|
+
renderResizeBar: L,
|
|
4569
4569
|
maximize: H,
|
|
4570
|
-
restore:
|
|
4570
|
+
restore: $,
|
|
4571
4571
|
boundingElement: J,
|
|
4572
4572
|
resizedEventParam: N,
|
|
4573
4573
|
allowDrag: j,
|
|
4574
4574
|
unWindowResizeHandle: M,
|
|
4575
|
-
moveToCenter:
|
|
4575
|
+
moveToCenter: O
|
|
4576
4576
|
} = Al(e), {
|
|
4577
4577
|
registerDraggle: z
|
|
4578
4578
|
} = Rl(e, t, j);
|
|
@@ -4581,16 +4581,16 @@ const rt = /* @__PURE__ */ De({
|
|
|
4581
4581
|
}
|
|
4582
4582
|
function le() {
|
|
4583
4583
|
const A = document.querySelectorAll(".farris-modal").length;
|
|
4584
|
-
(!A || A - 1 <= 0) && document.body.classList.remove("modal-open"),
|
|
4584
|
+
(!A || A - 1 <= 0) && document.body.classList.remove("modal-open"), V.value && V.value.classList.remove("show");
|
|
4585
4585
|
}
|
|
4586
4586
|
ve(() => e.title, (A, ie) => {
|
|
4587
|
-
A !== ie && (
|
|
4587
|
+
A !== ie && (T.value = A);
|
|
4588
4588
|
}), ve(() => e.modelValue, (A, ie) => {
|
|
4589
4589
|
A !== ie && (r.value = A, r.value && e.draggable && Jt(() => {
|
|
4590
|
-
|
|
4591
|
-
}), A || (
|
|
4590
|
+
B.value && !D.value && (D.value = B.value.parentElement, J.value = D.value, z(S.value, B.value, J.value), O());
|
|
4591
|
+
}), A || (D.value && (D.value = null), le())), r.value ? m.value = oe() : (P.value = !1, j.value = e.draggable);
|
|
4592
4592
|
}), ve(() => e.showHeader, (A, ie) => {
|
|
4593
|
-
A !== ie && (
|
|
4593
|
+
A !== ie && (p.value = A);
|
|
4594
4594
|
}), ve(() => e.showButtons, (A, ie) => {
|
|
4595
4595
|
A !== ie && (w.value = A);
|
|
4596
4596
|
}), ve(() => N.value, (A, ie) => {
|
|
@@ -4631,13 +4631,13 @@ const rt = /* @__PURE__ */ De({
|
|
|
4631
4631
|
display: "block",
|
|
4632
4632
|
zIndex: K()
|
|
4633
4633
|
};
|
|
4634
|
-
return e.mask || (A.pointerEvents = "none", A.backgroundColor = "transparent"),
|
|
4634
|
+
return e.mask || (A.pointerEvents = "none", A.backgroundColor = "transparent"), m.value && (A.backgroundColor = "transparent"), A;
|
|
4635
4635
|
}), Je = G(() => ({
|
|
4636
4636
|
"modal-content": !0,
|
|
4637
|
-
"modal-content-has-header":
|
|
4637
|
+
"modal-content-has-header": p.value
|
|
4638
4638
|
})), Re = G(() => {
|
|
4639
4639
|
const A = {
|
|
4640
|
-
display:
|
|
4640
|
+
display: p.value ? "" : "none"
|
|
4641
4641
|
};
|
|
4642
4642
|
return A["pointer-events"] = j.value ? "auto" : "none", A;
|
|
4643
4643
|
}), Ne = G(() => ({
|
|
@@ -4662,7 +4662,7 @@ const rt = /* @__PURE__ */ De({
|
|
|
4662
4662
|
});
|
|
4663
4663
|
function he(A) {
|
|
4664
4664
|
if (A == null || A.stopPropagation(), P.value) {
|
|
4665
|
-
P.value = !1,
|
|
4665
|
+
P.value = !1, $();
|
|
4666
4666
|
return;
|
|
4667
4667
|
}
|
|
4668
4668
|
H(), P.value = !0;
|
|
@@ -4671,17 +4671,17 @@ const rt = /* @__PURE__ */ De({
|
|
|
4671
4671
|
A.handle && await A.handle(ie, A) && t.emit("closed", ie);
|
|
4672
4672
|
}
|
|
4673
4673
|
function ze(A) {
|
|
4674
|
-
A.width && (n.value = A.width), A.height && (o.value = A.height), A.buttons && (
|
|
4674
|
+
A.width && (n.value = A.width), A.height && (o.value = A.height), A.buttons && (F.value = A.buttons), A.title && (T.value = A.title);
|
|
4675
4675
|
}
|
|
4676
4676
|
let He = null, Pe = null;
|
|
4677
4677
|
hn(() => {
|
|
4678
|
-
|
|
4678
|
+
m.value = oe();
|
|
4679
4679
|
}), Xe(() => {
|
|
4680
|
-
|
|
4680
|
+
B.value && !D.value && (D.value = B.value.parentElement, J.value = D.value, z(S.value, B.value, J.value)), X.value && document.body.classList.add("modal-open"), He = zl(e, t), Pe = Hl(e, t);
|
|
4681
4681
|
}), wt(() => {
|
|
4682
4682
|
M && M(), He && He.remove(), Pe && Pe.remove();
|
|
4683
4683
|
}), t.expose({
|
|
4684
|
-
modalElementRef:
|
|
4684
|
+
modalElementRef: B,
|
|
4685
4685
|
updateModalOptions: ze,
|
|
4686
4686
|
close: g,
|
|
4687
4687
|
maxDialog: he,
|
|
@@ -4710,7 +4710,7 @@ const rt = /* @__PURE__ */ De({
|
|
|
4710
4710
|
return C("div", {
|
|
4711
4711
|
class: "modal-footer",
|
|
4712
4712
|
style: lt.value
|
|
4713
|
-
}, [
|
|
4713
|
+
}, [F.value && F.value.map((A) => {
|
|
4714
4714
|
const ie = h(A.disabled);
|
|
4715
4715
|
return C("button", {
|
|
4716
4716
|
name: A.name,
|
|
@@ -4727,26 +4727,26 @@ const rt = /* @__PURE__ */ De({
|
|
|
4727
4727
|
}
|
|
4728
4728
|
function Ze() {
|
|
4729
4729
|
return C("div", {
|
|
4730
|
-
ref:
|
|
4730
|
+
ref: S,
|
|
4731
4731
|
class: "modal-header",
|
|
4732
4732
|
style: Re.value
|
|
4733
4733
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : C("div", {
|
|
4734
4734
|
class: "modal-title"
|
|
4735
|
-
}, [
|
|
4735
|
+
}, [I.value && C("span", {
|
|
4736
4736
|
class: u.value,
|
|
4737
4737
|
style: "margin-right: 8px"
|
|
4738
4738
|
}, null), C("span", {
|
|
4739
4739
|
class: "modal-title-label"
|
|
4740
|
-
}, [
|
|
4740
|
+
}, [T.value])]), C("div", {
|
|
4741
4741
|
class: "actions"
|
|
4742
4742
|
}, [_e()])]);
|
|
4743
4743
|
}
|
|
4744
4744
|
function $e() {
|
|
4745
|
-
return t.slots.footerTemplate ? t.slots.footerTemplate() :
|
|
4745
|
+
return t.slots.footerTemplate ? t.slots.footerTemplate() : E.value && pt();
|
|
4746
4746
|
}
|
|
4747
4747
|
function qe(A) {
|
|
4748
4748
|
if (A.stopPropagation(), e.allowClickMaskToClose) {
|
|
4749
|
-
if (A.target !==
|
|
4749
|
+
if (A.target !== V.value)
|
|
4750
4750
|
return;
|
|
4751
4751
|
g(A, !1);
|
|
4752
4752
|
}
|
|
@@ -4757,10 +4757,10 @@ const rt = /* @__PURE__ */ De({
|
|
|
4757
4757
|
id: l.value,
|
|
4758
4758
|
class: ce.value,
|
|
4759
4759
|
style: se.value,
|
|
4760
|
-
ref:
|
|
4760
|
+
ref: B
|
|
4761
4761
|
}, [C("div", {
|
|
4762
4762
|
class: Je.value
|
|
4763
|
-
}, [
|
|
4763
|
+
}, [p.value && Ze(), C("div", {
|
|
4764
4764
|
class: it.value
|
|
4765
4765
|
}, [(ie = (A = t.slots).default) == null ? void 0 : ie.call(A), i.value === "iframe" && C("iframe", {
|
|
4766
4766
|
title: l.value,
|
|
@@ -4768,7 +4768,7 @@ const rt = /* @__PURE__ */ De({
|
|
|
4768
4768
|
width: "100%",
|
|
4769
4769
|
frameborder: "0",
|
|
4770
4770
|
src: s.value
|
|
4771
|
-
}, null)]), $e()]), !f.value &&
|
|
4771
|
+
}, null)]), $e()]), !f.value && B.value && !P.value && L(B.value)]);
|
|
4772
4772
|
}
|
|
4773
4773
|
function ct(A) {
|
|
4774
4774
|
return A || "body";
|
|
@@ -4781,7 +4781,7 @@ const rt = /* @__PURE__ */ De({
|
|
|
4781
4781
|
appear: !0
|
|
4782
4782
|
}, {
|
|
4783
4783
|
default: () => [C("div", {
|
|
4784
|
-
ref:
|
|
4784
|
+
ref: V,
|
|
4785
4785
|
class: pe.value,
|
|
4786
4786
|
style: fe.value,
|
|
4787
4787
|
onClick: qe
|
|
@@ -4804,13 +4804,13 @@ function _l(e) {
|
|
|
4804
4804
|
wt(() => {
|
|
4805
4805
|
document.body.removeChild(t);
|
|
4806
4806
|
});
|
|
4807
|
-
const l = h(), a = h(e.class || ""), f = h(!!e.showButtons),
|
|
4807
|
+
const l = h(), a = h(e.class || ""), f = h(!!e.showButtons), p = h(!!e.showHeader), u = h(e.showCloseButton == null ? !0 : e.showCloseButton), v = h(!0), c = h(e.title || ""), b = e.acceptCallback || (() => {
|
|
4808
4808
|
}), i = e.rejectCallback || (() => {
|
|
4809
|
-
}), s = e.closedCallback || ((
|
|
4810
|
-
}), d = e.resizeHandle || ((
|
|
4811
|
-
}), w = e.stopMoveHandle || ((
|
|
4812
|
-
}),
|
|
4813
|
-
v.value = !1, n.unmount(), s(
|
|
4809
|
+
}), s = e.closedCallback || ((V) => {
|
|
4810
|
+
}), d = e.resizeHandle || ((V) => {
|
|
4811
|
+
}), w = e.stopMoveHandle || ((V) => {
|
|
4812
|
+
}), T = qo(e), D = (V) => {
|
|
4813
|
+
v.value = !1, n.unmount(), s(V);
|
|
4814
4814
|
};
|
|
4815
4815
|
return Xe(() => {
|
|
4816
4816
|
}), r.expose({
|
|
@@ -4819,23 +4819,23 @@ function _l(e) {
|
|
|
4819
4819
|
ref: l,
|
|
4820
4820
|
class: a.value,
|
|
4821
4821
|
modelValue: v.value,
|
|
4822
|
-
"onUpdate:modelValue": (
|
|
4822
|
+
"onUpdate:modelValue": (V) => v.value = V,
|
|
4823
4823
|
title: c.value,
|
|
4824
4824
|
width: e.width,
|
|
4825
4825
|
height: e.height,
|
|
4826
4826
|
buttons: e.buttons,
|
|
4827
|
-
"show-header":
|
|
4827
|
+
"show-header": p.value,
|
|
4828
4828
|
"show-buttons": f.value,
|
|
4829
4829
|
"show-close-button": u.value,
|
|
4830
4830
|
"show-max-button": !1,
|
|
4831
4831
|
onAccept: b,
|
|
4832
4832
|
onCancel: i,
|
|
4833
4833
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
4834
|
-
onClosed:
|
|
4834
|
+
onClosed: D,
|
|
4835
4835
|
onResize: d,
|
|
4836
4836
|
onStopMove: w
|
|
4837
4837
|
}, {
|
|
4838
|
-
default: () => [
|
|
4838
|
+
default: () => [T && T(n)]
|
|
4839
4839
|
});
|
|
4840
4840
|
}
|
|
4841
4841
|
});
|
|
@@ -4888,57 +4888,57 @@ class Uo {
|
|
|
4888
4888
|
showHeader: !0
|
|
4889
4889
|
}, t)), r = h(!0), l = o.value.acceptCallback || (() => {
|
|
4890
4890
|
}), a = o.value.rejectCallback || (() => {
|
|
4891
|
-
}), f = o.value.closedCallback || ((
|
|
4892
|
-
}),
|
|
4893
|
-
}), u = t.stopMoveHandle || ((
|
|
4891
|
+
}), f = o.value.closedCallback || ((m, g) => {
|
|
4892
|
+
}), p = o.value.resizeHandle || ((m) => {
|
|
4893
|
+
}), u = t.stopMoveHandle || ((m) => {
|
|
4894
4894
|
});
|
|
4895
4895
|
let v;
|
|
4896
|
-
const c = qo(o.value), b = (
|
|
4897
|
-
var
|
|
4896
|
+
const c = qo(o.value), b = (m) => {
|
|
4897
|
+
var x;
|
|
4898
4898
|
r.value = !1;
|
|
4899
|
-
const g = (
|
|
4900
|
-
f(
|
|
4901
|
-
}, i = (
|
|
4902
|
-
b(
|
|
4899
|
+
const g = (x = m == null ? void 0 : m.target) == null ? void 0 : x.classList.contains("modal_close");
|
|
4900
|
+
f(m, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
|
|
4901
|
+
}, i = (m) => {
|
|
4902
|
+
b(m), v && Jt(() => {
|
|
4903
4903
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Ut(null, n), v = null, this.modalRef.value = null, this.modalRefs) {
|
|
4904
|
-
const g = Object.keys(this.modalRefs).map((
|
|
4904
|
+
const g = Object.keys(this.modalRefs).map((x) => Number(x));
|
|
4905
4905
|
g.length > 0 ? this.activeModalIndex.value = Math.max(...g) : this.activeModalIndex.value = 0;
|
|
4906
4906
|
}
|
|
4907
4907
|
this.isUseEscCloseModal.value = !1;
|
|
4908
4908
|
});
|
|
4909
|
-
}, s = (
|
|
4909
|
+
}, s = (m) => {
|
|
4910
4910
|
var g;
|
|
4911
|
-
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((g = this.activeModalInstance.value) == null || g.close(
|
|
4911
|
+
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((g = this.activeModalInstance.value) == null || g.close(m == null ? void 0 : m.event));
|
|
4912
4912
|
}, {
|
|
4913
4913
|
width: d,
|
|
4914
4914
|
height: w
|
|
4915
|
-
} = o.value,
|
|
4916
|
-
Object.assign(o.value,
|
|
4917
|
-
const
|
|
4915
|
+
} = o.value, T = this.adaptToWindow(d || 500, w || 320);
|
|
4916
|
+
Object.assign(o.value, T);
|
|
4917
|
+
const D = () => C(rt, ot({
|
|
4918
4918
|
ref: this.modalRef,
|
|
4919
4919
|
modelValue: r.value,
|
|
4920
|
-
"onUpdate:modelValue": (
|
|
4920
|
+
"onUpdate:modelValue": (m) => r.value = m
|
|
4921
4921
|
}, o.value, {
|
|
4922
4922
|
onAccept: l,
|
|
4923
4923
|
onCancel: a,
|
|
4924
4924
|
onClosed: i,
|
|
4925
|
-
onResize:
|
|
4925
|
+
onResize: p,
|
|
4926
4926
|
onEsc: s,
|
|
4927
4927
|
onStopMove: u
|
|
4928
4928
|
}), {
|
|
4929
4929
|
default: () => [c && c(this.app)]
|
|
4930
4930
|
});
|
|
4931
|
-
return v = ((
|
|
4932
|
-
const g = ir(
|
|
4931
|
+
return v = ((m) => {
|
|
4932
|
+
const g = ir(D, m);
|
|
4933
4933
|
return g.appContext = this.appContext, Ut(g, n), g;
|
|
4934
4934
|
})({
|
|
4935
4935
|
...o.value
|
|
4936
4936
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
4937
4937
|
}), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
|
|
4938
|
-
update: (
|
|
4938
|
+
update: (m) => {
|
|
4939
4939
|
o.value = {
|
|
4940
4940
|
...o.value,
|
|
4941
|
-
...
|
|
4941
|
+
...m
|
|
4942
4942
|
}, v && Ut(lr(v, {
|
|
4943
4943
|
...o
|
|
4944
4944
|
}), n);
|
|
@@ -4965,11 +4965,11 @@ const Ve = class Ve {
|
|
|
4965
4965
|
}), o = !1, r = n.type === "error" || n.type === "prompt", l = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", a = n.acceptCallback || (() => {
|
|
4966
4966
|
}), f = n.rejectCallback || (() => {
|
|
4967
4967
|
});
|
|
4968
|
-
let
|
|
4968
|
+
let p = null, u = new Uo(Ve.app);
|
|
4969
4969
|
const v = () => {
|
|
4970
|
-
|
|
4970
|
+
p && (p == null || p.destroy(), u = null);
|
|
4971
4971
|
};
|
|
4972
|
-
return
|
|
4972
|
+
return p = u == null ? void 0 : u.open({
|
|
4973
4973
|
class: "modal-message modal-message-type-info",
|
|
4974
4974
|
title: l,
|
|
4975
4975
|
showButtons: o,
|
|
@@ -5069,7 +5069,7 @@ const ql = /* @__PURE__ */ De({
|
|
|
5069
5069
|
entityDataSource: l,
|
|
5070
5070
|
checkAndGetSelectedEntity: a,
|
|
5071
5071
|
resolveEntityDataSource: f,
|
|
5072
|
-
entityTreeRowOption:
|
|
5072
|
+
entityTreeRowOption: p,
|
|
5073
5073
|
initialSelectedEntity: u,
|
|
5074
5074
|
isMainEntityInitialSelected: v
|
|
5075
5075
|
} = n, c = Bo(e), {
|
|
@@ -5078,20 +5078,20 @@ const ql = /* @__PURE__ */ De({
|
|
|
5078
5078
|
fieldDataSource: s,
|
|
5079
5079
|
fieldTreeGridRef: d,
|
|
5080
5080
|
fieldTreeRowOption: w,
|
|
5081
|
-
fieldSelectionOption:
|
|
5082
|
-
checkAndGetSelectedFields:
|
|
5083
|
-
currentComponentType:
|
|
5081
|
+
fieldSelectionOption: T,
|
|
5082
|
+
checkAndGetSelectedFields: D,
|
|
5083
|
+
currentComponentType: V
|
|
5084
5084
|
} = c, y = new Kt();
|
|
5085
5085
|
y.globalConfig = {
|
|
5086
5086
|
position: "top-center"
|
|
5087
5087
|
};
|
|
5088
|
-
const
|
|
5088
|
+
const m = [{
|
|
5089
5089
|
name: "卡片面板",
|
|
5090
5090
|
value: "response-form"
|
|
5091
5091
|
}, {
|
|
5092
5092
|
name: "表格",
|
|
5093
5093
|
value: "data-grid"
|
|
5094
|
-
}], g = h(),
|
|
5094
|
+
}], g = h(), x = h(""), F = h([{
|
|
5095
5095
|
id: "selectComponentType",
|
|
5096
5096
|
title: "选择组件类型"
|
|
5097
5097
|
}, {
|
|
@@ -5100,28 +5100,28 @@ const ql = /* @__PURE__ */ De({
|
|
|
5100
5100
|
}, {
|
|
5101
5101
|
id: "selectFields",
|
|
5102
5102
|
title: "选择显示字段"
|
|
5103
|
-
}]),
|
|
5103
|
+
}]), I = h(0), E = h(""), S = G(() => (z) => ({
|
|
5104
5104
|
"f-utils-fill": !0,
|
|
5105
5105
|
border: z !== "selectComponentType",
|
|
5106
5106
|
"mx-3": !0,
|
|
5107
5107
|
"my-2": !0,
|
|
5108
5108
|
"position-relative": !0,
|
|
5109
|
-
"d-none":
|
|
5109
|
+
"d-none": F.value[I.value].id !== z
|
|
5110
5110
|
}));
|
|
5111
|
-
function
|
|
5112
|
-
e.bindingEntityId && (u != null && u.value) && (
|
|
5111
|
+
function B() {
|
|
5112
|
+
e.bindingEntityId && (u != null && u.value) && (x.value = u.value.name), e.componentType || (g.value = v.value ? "response-form" : "data-grid");
|
|
5113
5113
|
}
|
|
5114
5114
|
function P() {
|
|
5115
5115
|
const z = a();
|
|
5116
5116
|
z && (i(z), d.value.updateDataSource(s.value));
|
|
5117
5117
|
}
|
|
5118
5118
|
hn(() => {
|
|
5119
|
-
e.steps && (
|
|
5119
|
+
e.steps && (F.value = F.value.filter((z) => e.steps.includes(z.id))), E.value = F.value[0].id, f(), B();
|
|
5120
5120
|
}), Xe(() => {
|
|
5121
5121
|
var z, oe;
|
|
5122
|
-
r && ((z = u.value) != null && z.id) && r.value.selectItemById((oe = u.value) == null ? void 0 : oe.id),
|
|
5122
|
+
r && ((z = u.value) != null && z.id) && r.value.selectItemById((oe = u.value) == null ? void 0 : oe.id), F.value.length === 1 && F.value[0].id === "selectFields" && P();
|
|
5123
5123
|
});
|
|
5124
|
-
function
|
|
5124
|
+
function L(z) {
|
|
5125
5125
|
var oe;
|
|
5126
5126
|
(oe = d == null ? void 0 : d.value) != null && oe.clearSelection && d.value.clearSelection();
|
|
5127
5127
|
}
|
|
@@ -5136,13 +5136,13 @@ const ql = /* @__PURE__ */ De({
|
|
|
5136
5136
|
rowNumber: {
|
|
5137
5137
|
enable: !1
|
|
5138
5138
|
},
|
|
5139
|
-
"row-option":
|
|
5139
|
+
"row-option": p,
|
|
5140
5140
|
columnOption: {
|
|
5141
5141
|
fitColumns: !0
|
|
5142
5142
|
}
|
|
5143
5143
|
}, null);
|
|
5144
5144
|
}
|
|
5145
|
-
function
|
|
5145
|
+
function $() {
|
|
5146
5146
|
return C(Yt, {
|
|
5147
5147
|
key: 2,
|
|
5148
5148
|
ref: d,
|
|
@@ -5163,14 +5163,14 @@ const ql = /* @__PURE__ */ De({
|
|
|
5163
5163
|
fitColumns: !0
|
|
5164
5164
|
},
|
|
5165
5165
|
"row-option": w,
|
|
5166
|
-
selection:
|
|
5166
|
+
selection: T
|
|
5167
5167
|
}, null);
|
|
5168
5168
|
}
|
|
5169
5169
|
function J() {
|
|
5170
5170
|
const z = {
|
|
5171
5171
|
editable: !1,
|
|
5172
5172
|
type: "combo-list",
|
|
5173
|
-
data:
|
|
5173
|
+
data: m,
|
|
5174
5174
|
idField: "value",
|
|
5175
5175
|
valueField: "value",
|
|
5176
5176
|
textField: "name"
|
|
@@ -5199,22 +5199,22 @@ const ql = /* @__PURE__ */ De({
|
|
|
5199
5199
|
"onUpdate:modelValue": (le) => g.value = le,
|
|
5200
5200
|
required: "true",
|
|
5201
5201
|
editor: z,
|
|
5202
|
-
onChange:
|
|
5202
|
+
onChange: L
|
|
5203
5203
|
}, null), C(fn, {
|
|
5204
5204
|
label: "组件标题",
|
|
5205
5205
|
customClass: "col-12",
|
|
5206
|
-
modelValue:
|
|
5207
|
-
"onUpdate:modelValue": (le) =>
|
|
5206
|
+
modelValue: x.value,
|
|
5207
|
+
"onUpdate:modelValue": (le) => x.value = le,
|
|
5208
5208
|
required: "true",
|
|
5209
5209
|
editor: oe
|
|
5210
5210
|
}, null)])])])])]);
|
|
5211
5211
|
}
|
|
5212
5212
|
function N() {
|
|
5213
|
-
|
|
5213
|
+
I.value--, E.value = F.value[I.value].id;
|
|
5214
5214
|
}
|
|
5215
5215
|
function j() {
|
|
5216
5216
|
var z;
|
|
5217
|
-
switch (
|
|
5217
|
+
switch (E.value) {
|
|
5218
5218
|
case "selectEntity": {
|
|
5219
5219
|
P();
|
|
5220
5220
|
break;
|
|
@@ -5224,27 +5224,27 @@ const ql = /* @__PURE__ */ De({
|
|
|
5224
5224
|
y.warning("请先选择组件类型");
|
|
5225
5225
|
return;
|
|
5226
5226
|
}
|
|
5227
|
-
if (!((z =
|
|
5227
|
+
if (!((z = x.value) != null && z.trim())) {
|
|
5228
5228
|
y.warning("请先填写组件标题");
|
|
5229
5229
|
return;
|
|
5230
5230
|
}
|
|
5231
|
-
|
|
5231
|
+
V.value = g.value, i(u.value), d.value.updateDataSource(s.value);
|
|
5232
5232
|
break;
|
|
5233
5233
|
}
|
|
5234
5234
|
}
|
|
5235
|
-
|
|
5235
|
+
I.value++, E.value = F.value[I.value].id;
|
|
5236
5236
|
}
|
|
5237
5237
|
function M() {
|
|
5238
5238
|
t.emit("cancel");
|
|
5239
5239
|
}
|
|
5240
|
-
function
|
|
5240
|
+
function O() {
|
|
5241
5241
|
var le;
|
|
5242
|
-
const z = a(), oe =
|
|
5242
|
+
const z = a(), oe = D();
|
|
5243
5243
|
if (z) {
|
|
5244
5244
|
const X = {
|
|
5245
5245
|
bindingType: "entity"
|
|
5246
5246
|
};
|
|
5247
|
-
X.bindingEntity = z, X.bindTo = n.entityBindToMap.get(((le = X.bindingEntity) == null ? void 0 : le.label) || ""), X.bindingEntityFields = oe, X.entityTitle =
|
|
5247
|
+
X.bindingEntity = z, X.bindTo = n.entityBindToMap.get(((le = X.bindingEntity) == null ? void 0 : le.label) || ""), X.bindingEntityFields = oe, X.entityTitle = x.value, t.emit("submit", {
|
|
5248
5248
|
bindingContext: X,
|
|
5249
5249
|
componentType: g.value
|
|
5250
5250
|
});
|
|
@@ -5254,42 +5254,42 @@ const ql = /* @__PURE__ */ De({
|
|
|
5254
5254
|
var z;
|
|
5255
5255
|
return C("div", {
|
|
5256
5256
|
class: "h-100 d-flex flex-column"
|
|
5257
|
-
}, [((z =
|
|
5258
|
-
steps:
|
|
5259
|
-
activeIndex:
|
|
5257
|
+
}, [((z = F.value) == null ? void 0 : z.length) > 1 ? C(Ti, {
|
|
5258
|
+
steps: F,
|
|
5259
|
+
activeIndex: I,
|
|
5260
5260
|
style: "align-self:center"
|
|
5261
5261
|
}, null) : "", C("div", {
|
|
5262
|
-
class:
|
|
5262
|
+
class: S.value("selectEntity"),
|
|
5263
5263
|
style: "border-radius:10px;"
|
|
5264
5264
|
}, [H()]), C("div", {
|
|
5265
|
-
class:
|
|
5265
|
+
class: S.value("selectComponentType"),
|
|
5266
5266
|
style: "border-radius:10px;"
|
|
5267
5267
|
}, [J()]), C("div", {
|
|
5268
|
-
class:
|
|
5268
|
+
class: S.value("selectFields"),
|
|
5269
5269
|
style: "border-radius:10px;"
|
|
5270
|
-
}, [
|
|
5270
|
+
}, [$()]), C("div", {
|
|
5271
5271
|
class: "modal-footer"
|
|
5272
5272
|
}, [C("button", {
|
|
5273
5273
|
class: "btn btn-secondary",
|
|
5274
5274
|
onClick: M
|
|
5275
|
-
}, [Ie("取消")]),
|
|
5275
|
+
}, [Ie("取消")]), I.value !== 0 ? C("button", {
|
|
5276
5276
|
class: "btn btn-secondary",
|
|
5277
5277
|
onClick: N
|
|
5278
|
-
}, [Ie("上一步")]) : "",
|
|
5278
|
+
}, [Ie("上一步")]) : "", I.value !== F.value.length - 1 ? C("button", {
|
|
5279
5279
|
class: "btn btn-primary",
|
|
5280
5280
|
onClick: j
|
|
5281
|
-
}, [Ie("下一步")]) : "",
|
|
5281
|
+
}, [Ie("下一步")]) : "", I.value === F.value.length - 1 ? C("button", {
|
|
5282
5282
|
class: "btn btn-primary",
|
|
5283
|
-
onClick:
|
|
5283
|
+
onClick: O
|
|
5284
5284
|
}, [Ie("确定")]) : ""])]);
|
|
5285
5285
|
};
|
|
5286
5286
|
}
|
|
5287
5287
|
});
|
|
5288
5288
|
function mn(e) {
|
|
5289
5289
|
let t, n;
|
|
5290
|
-
function o(y,
|
|
5291
|
-
var
|
|
5292
|
-
const
|
|
5290
|
+
function o(y, m, g) {
|
|
5291
|
+
var F;
|
|
5292
|
+
const x = {
|
|
5293
5293
|
componentType: y.getAttribute("data-controltype") || "",
|
|
5294
5294
|
componentFeature: y.getAttribute("data-feature") || "",
|
|
5295
5295
|
componentCategory: y.getAttribute("data-category") || "",
|
|
@@ -5297,34 +5297,34 @@ function mn(e) {
|
|
|
5297
5297
|
sourceType: y.getAttribute("data-sourceType") || "move",
|
|
5298
5298
|
parentComponentInstance: g.componentInstance.value,
|
|
5299
5299
|
sourceElement: y,
|
|
5300
|
-
sourceContainer:
|
|
5300
|
+
sourceContainer: m,
|
|
5301
5301
|
targetContainer: g,
|
|
5302
5302
|
bindingSourceContext: null,
|
|
5303
5303
|
bindingTargetId: y.getAttribute("data-fieldId") || ""
|
|
5304
5304
|
};
|
|
5305
|
-
return y.componentInstance && (
|
|
5305
|
+
return y.componentInstance && (x.componentType = (F = y.componentInstance.value.schema) == null ? void 0 : F.type), x;
|
|
5306
5306
|
}
|
|
5307
5307
|
function r(y) {
|
|
5308
|
-
var
|
|
5308
|
+
var x, F;
|
|
5309
5309
|
const {
|
|
5310
|
-
bindingContext:
|
|
5310
|
+
bindingContext: m,
|
|
5311
5311
|
componentType: g
|
|
5312
5312
|
} = y;
|
|
5313
|
-
n.bindingSourceContext =
|
|
5313
|
+
n.bindingSourceContext = m, g && (n.componentType = g), (x = t == null ? void 0 : t.modalRef) != null && x.value.close && ((F = t == null ? void 0 : t.modalRef) == null || F.value.close());
|
|
5314
5314
|
}
|
|
5315
5315
|
function l() {
|
|
5316
|
-
var y,
|
|
5317
|
-
n.bindingSourceContext = void 0, (y = t == null ? void 0 : t.modalRef) != null && y.value.close && ((
|
|
5316
|
+
var y, m;
|
|
5317
|
+
n.bindingSourceContext = void 0, (y = t == null ? void 0 : t.modalRef) != null && y.value.close && ((m = t == null ? void 0 : t.modalRef) == null || m.value.close());
|
|
5318
5318
|
}
|
|
5319
5319
|
function a() {
|
|
5320
5320
|
const {
|
|
5321
5321
|
componentType: y,
|
|
5322
|
-
bindingTargetId:
|
|
5322
|
+
bindingTargetId: m
|
|
5323
5323
|
} = n;
|
|
5324
5324
|
let g = [];
|
|
5325
|
-
return y && (y === "list-view" ? g = ["selectEntity"] : g = ["selectEntity", "selectFields"]),
|
|
5325
|
+
return y && (y === "list-view" ? g = ["selectEntity"] : g = ["selectEntity", "selectFields"]), m && (g = ["selectComponentType", "selectFields"]), () => C(at, null, [C(ql, {
|
|
5326
5326
|
componentType: y,
|
|
5327
|
-
bindingEntityId:
|
|
5327
|
+
bindingEntityId: m,
|
|
5328
5328
|
steps: g,
|
|
5329
5329
|
designerHostService: e,
|
|
5330
5330
|
onSubmit: r,
|
|
@@ -5334,7 +5334,7 @@ function mn(e) {
|
|
|
5334
5334
|
}), Ie(" ")]);
|
|
5335
5335
|
}
|
|
5336
5336
|
function f() {
|
|
5337
|
-
return new Promise((y,
|
|
5337
|
+
return new Promise((y, m) => {
|
|
5338
5338
|
const {
|
|
5339
5339
|
componentType: g
|
|
5340
5340
|
} = n;
|
|
@@ -5356,48 +5356,48 @@ function mn(e) {
|
|
|
5356
5356
|
});
|
|
5357
5357
|
});
|
|
5358
5358
|
}
|
|
5359
|
-
function
|
|
5360
|
-
var y,
|
|
5361
|
-
n.bindingSourceContext = void 0, (y = t == null ? void 0 : t.modalRef) != null && y.value.close && ((
|
|
5359
|
+
function p() {
|
|
5360
|
+
var y, m;
|
|
5361
|
+
n.bindingSourceContext = void 0, (y = t == null ? void 0 : t.modalRef) != null && y.value.close && ((m = t == null ? void 0 : t.modalRef) == null || m.value.close());
|
|
5362
5362
|
}
|
|
5363
5363
|
function u(y) {
|
|
5364
|
-
let
|
|
5365
|
-
return R["field-set"] && y.schema.type === R["field-set"].type && (
|
|
5366
|
-
groupId:
|
|
5364
|
+
let m = "", g = "";
|
|
5365
|
+
return R["field-set"] && y.schema.type === R["field-set"].type && (m = y.schema.id, g = y.schema.title), {
|
|
5366
|
+
groupId: m,
|
|
5367
5367
|
groupName: g
|
|
5368
5368
|
};
|
|
5369
5369
|
}
|
|
5370
5370
|
function v(y) {
|
|
5371
|
-
var
|
|
5371
|
+
var E, S;
|
|
5372
5372
|
if (!y || !y.selectedData || !y.bindingType)
|
|
5373
5373
|
return;
|
|
5374
5374
|
const {
|
|
5375
|
-
selectedData:
|
|
5375
|
+
selectedData: m,
|
|
5376
5376
|
bindingType: g
|
|
5377
5377
|
} = y, {
|
|
5378
|
-
groupId:
|
|
5379
|
-
groupName:
|
|
5380
|
-
} = u(n.parentComponentInstance),
|
|
5378
|
+
groupId: x,
|
|
5379
|
+
groupName: F
|
|
5380
|
+
} = u(n.parentComponentInstance), I = {
|
|
5381
5381
|
bindingType: "field"
|
|
5382
5382
|
};
|
|
5383
5383
|
if (g === "Form") {
|
|
5384
|
-
const
|
|
5385
|
-
|
|
5386
|
-
groupId:
|
|
5387
|
-
groupName:
|
|
5388
|
-
}), n.bindingSourceContext =
|
|
5384
|
+
const B = m;
|
|
5385
|
+
I.entityFieldNode = B, I.designViewModelField = Ft({}, B, {
|
|
5386
|
+
groupId: x,
|
|
5387
|
+
groupName: F
|
|
5388
|
+
}), n.bindingSourceContext = I;
|
|
5389
5389
|
} else {
|
|
5390
|
-
const
|
|
5391
|
-
|
|
5392
|
-
groupId:
|
|
5393
|
-
groupName:
|
|
5394
|
-
}), n.bindingSourceContext =
|
|
5390
|
+
const B = m;
|
|
5391
|
+
I.variableFieldNode = Ft({}, B, {
|
|
5392
|
+
groupId: x,
|
|
5393
|
+
groupName: F
|
|
5394
|
+
}), n.bindingSourceContext = I;
|
|
5395
5395
|
}
|
|
5396
|
-
(
|
|
5396
|
+
(E = t == null ? void 0 : t.modalRef) != null && E.value.close && ((S = t == null ? void 0 : t.modalRef) == null || S.value.close());
|
|
5397
5397
|
}
|
|
5398
5398
|
function c() {
|
|
5399
|
-
var y,
|
|
5400
|
-
n.bindingSourceContext = null, (y = t == null ? void 0 : t.modalRef) != null && y.value.close && ((
|
|
5399
|
+
var y, m;
|
|
5400
|
+
n.bindingSourceContext = null, (y = t == null ? void 0 : t.modalRef) != null && y.value.close && ((m = t == null ? void 0 : t.modalRef) == null || m.value.close());
|
|
5401
5401
|
}
|
|
5402
5402
|
function b() {
|
|
5403
5403
|
const {
|
|
@@ -5411,22 +5411,22 @@ function mn(e) {
|
|
|
5411
5411
|
type: n.componentType
|
|
5412
5412
|
}
|
|
5413
5413
|
}
|
|
5414
|
-
},
|
|
5414
|
+
}, x = {
|
|
5415
5415
|
enable: !1
|
|
5416
5416
|
};
|
|
5417
5417
|
return () => C(at, null, [C(ia, {
|
|
5418
5418
|
editorParams: g,
|
|
5419
5419
|
showCustomFooter: !0,
|
|
5420
|
-
bindingType:
|
|
5420
|
+
bindingType: x,
|
|
5421
5421
|
onSubmit: v,
|
|
5422
|
-
onCancel:
|
|
5422
|
+
onCancel: p,
|
|
5423
5423
|
onSkip: c
|
|
5424
5424
|
}, {
|
|
5425
5425
|
default: () => [Ie(" ")]
|
|
5426
5426
|
}), Ie(" ")]);
|
|
5427
5427
|
}
|
|
5428
5428
|
function i() {
|
|
5429
|
-
return new Promise((y,
|
|
5429
|
+
return new Promise((y, m) => {
|
|
5430
5430
|
t = e.modalService.open({
|
|
5431
5431
|
title: "选择绑定",
|
|
5432
5432
|
width: 800,
|
|
@@ -5448,60 +5448,60 @@ function mn(e) {
|
|
|
5448
5448
|
function s() {
|
|
5449
5449
|
const {
|
|
5450
5450
|
formSchemaUtils: y
|
|
5451
|
-
} = e,
|
|
5452
|
-
let
|
|
5453
|
-
return (
|
|
5454
|
-
if (!
|
|
5451
|
+
} = e, m = n.parentComponentInstance.belongedComponentId, g = /* @__PURE__ */ new Set(), x = y.getFormSchema().module, F = x.components.find((S) => S.id === m), I = y.getViewModelById(F.viewModel);
|
|
5452
|
+
let E = F.componentType;
|
|
5453
|
+
return (E === "frame" || E === "table") && (E = "form"), x.viewmodels.forEach((S) => {
|
|
5454
|
+
if (!S.fields || S.fields.length === 0)
|
|
5455
5455
|
return;
|
|
5456
|
-
const
|
|
5456
|
+
const B = x.components.find((L) => L.viewModel === S.id);
|
|
5457
5457
|
let {
|
|
5458
5458
|
componentType: P
|
|
5459
|
-
} =
|
|
5460
|
-
(P === "frame" || P === "table") && (P = "form"), !(P !==
|
|
5461
|
-
g.add(
|
|
5459
|
+
} = B;
|
|
5460
|
+
(P === "frame" || P === "table") && (P = "form"), !(P !== E || S.bindTo !== I.bindTo) && S.fields.forEach((L) => {
|
|
5461
|
+
g.add(L.id);
|
|
5462
5462
|
});
|
|
5463
5463
|
}), g;
|
|
5464
5464
|
}
|
|
5465
5465
|
function d() {
|
|
5466
5466
|
const {
|
|
5467
5467
|
bindingTargetId: y,
|
|
5468
|
-
parentComponentInstance:
|
|
5468
|
+
parentComponentInstance: m
|
|
5469
5469
|
} = n;
|
|
5470
5470
|
if (!y) {
|
|
5471
5471
|
n.bindingSourceContext = void 0;
|
|
5472
5472
|
return;
|
|
5473
5473
|
}
|
|
5474
5474
|
if (s().has(y)) {
|
|
5475
|
-
const
|
|
5476
|
-
|
|
5475
|
+
const x = new ba();
|
|
5476
|
+
x.globalConfig = {
|
|
5477
5477
|
position: "top-center"
|
|
5478
|
-
},
|
|
5478
|
+
}, x.warning("表单已经包含此字段,请勿重复添加"), n.bindingSourceContext = void 0;
|
|
5479
5479
|
return;
|
|
5480
5480
|
} else {
|
|
5481
|
-
const
|
|
5481
|
+
const x = {
|
|
5482
5482
|
bindingType: "field"
|
|
5483
|
-
},
|
|
5484
|
-
|
|
5483
|
+
}, F = e.formSchemaUtils.getComponentById(m.belongedComponentId), I = e.schemaService.getFieldByIDAndVMID(y, F.viewModel), E = Ft({}, I.schemaField);
|
|
5484
|
+
x.entityFieldNode = E;
|
|
5485
5485
|
const {
|
|
5486
|
-
groupId:
|
|
5487
|
-
groupName:
|
|
5486
|
+
groupId: S,
|
|
5487
|
+
groupName: B
|
|
5488
5488
|
} = u(n.parentComponentInstance);
|
|
5489
|
-
|
|
5490
|
-
groupId:
|
|
5491
|
-
groupName:
|
|
5492
|
-
}), n.bindingSourceContext =
|
|
5489
|
+
x.designViewModelField = Ft({}, E, {
|
|
5490
|
+
groupId: S,
|
|
5491
|
+
groupName: B
|
|
5492
|
+
}), n.bindingSourceContext = x;
|
|
5493
5493
|
}
|
|
5494
5494
|
}
|
|
5495
5495
|
function w() {
|
|
5496
5496
|
return n.bindingTargetId ? d() : i();
|
|
5497
5497
|
}
|
|
5498
|
-
function
|
|
5498
|
+
function T() {
|
|
5499
5499
|
const {
|
|
5500
5500
|
parentComponentInstance: y
|
|
5501
|
-
} = n,
|
|
5502
|
-
n.componentSchema =
|
|
5501
|
+
} = n, m = y.addNewChildComponentSchema(n, e);
|
|
5502
|
+
n.componentSchema = m;
|
|
5503
5503
|
}
|
|
5504
|
-
async function
|
|
5504
|
+
async function D() {
|
|
5505
5505
|
const {
|
|
5506
5506
|
componentCategory: y
|
|
5507
5507
|
} = n;
|
|
@@ -5516,12 +5516,12 @@ function mn(e) {
|
|
|
5516
5516
|
}
|
|
5517
5517
|
}
|
|
5518
5518
|
}
|
|
5519
|
-
async function
|
|
5520
|
-
return n = o(y,
|
|
5519
|
+
async function V(y, m, g) {
|
|
5520
|
+
return n = o(y, m, g), await D(), n.bindingSourceContext === void 0 ? null : (T(), n);
|
|
5521
5521
|
}
|
|
5522
5522
|
return {
|
|
5523
5523
|
getComponentResolveContext: o,
|
|
5524
|
-
resolveComponentCreationContextByDrop:
|
|
5524
|
+
resolveComponentCreationContextByDrop: V
|
|
5525
5525
|
};
|
|
5526
5526
|
}
|
|
5527
5527
|
function Ul(e, t) {
|
|
@@ -5531,29 +5531,29 @@ function Ul(e, t) {
|
|
|
5531
5531
|
return !1;
|
|
5532
5532
|
const w = !0;
|
|
5533
5533
|
if (i.componentInstance && i.componentInstance.value.getDragScopeElement) {
|
|
5534
|
-
const
|
|
5535
|
-
if (
|
|
5534
|
+
const T = i.componentInstance.value.getDragScopeElement();
|
|
5535
|
+
if (T && !T.contains(s))
|
|
5536
5536
|
return !1;
|
|
5537
5537
|
}
|
|
5538
5538
|
if (s.componentInstance && s.componentInstance.value.canAccepts) {
|
|
5539
|
-
const
|
|
5540
|
-
return s.componentInstance.value.canAccepts(
|
|
5539
|
+
const D = mn(e).getComponentResolveContext(i, d, s);
|
|
5540
|
+
return s.componentInstance.value.canAccepts(D);
|
|
5541
5541
|
}
|
|
5542
5542
|
return w;
|
|
5543
5543
|
}
|
|
5544
5544
|
function r(i, s) {
|
|
5545
|
-
const d = s.getBoundingClientRect(), w = i.getBoundingClientRect(),
|
|
5546
|
-
return
|
|
5545
|
+
const d = s.getBoundingClientRect(), w = i.getBoundingClientRect(), T = w.top >= d.top, D = w.top < d.bottom;
|
|
5546
|
+
return T && D;
|
|
5547
5547
|
}
|
|
5548
5548
|
function l(i, s) {
|
|
5549
5549
|
const d = i.querySelector(".dgComponentSelected");
|
|
5550
5550
|
if (!(!d || s === 0) && r(d, i)) {
|
|
5551
5551
|
const w = d.querySelector(".component-btn-group");
|
|
5552
5552
|
if (w) {
|
|
5553
|
-
const
|
|
5554
|
-
if (
|
|
5555
|
-
const
|
|
5556
|
-
|
|
5553
|
+
const T = w.querySelector("div");
|
|
5554
|
+
if (T && T.style.top) {
|
|
5555
|
+
const D = Number.parseFloat(T.style.top);
|
|
5556
|
+
T.style.top = D - s + "px";
|
|
5557
5557
|
}
|
|
5558
5558
|
}
|
|
5559
5559
|
}
|
|
@@ -5567,9 +5567,9 @@ function Ul(e, t) {
|
|
|
5567
5567
|
if (d.getAttribute("data-noattach"))
|
|
5568
5568
|
w = Number(d.getAttribute("data-position"));
|
|
5569
5569
|
else {
|
|
5570
|
-
const
|
|
5571
|
-
let
|
|
5572
|
-
|
|
5570
|
+
const T = d.componentInstance.value.schema;
|
|
5571
|
+
let D = { id: T.id };
|
|
5572
|
+
T.type === "component" && (D = { component: T.id }), w = ln(i.componentInstance.value.contents, D), w = w === -1 ? 0 : w;
|
|
5573
5573
|
}
|
|
5574
5574
|
w !== -1 && i.componentInstance.value.contents.splice(w, 0, s);
|
|
5575
5575
|
} else
|
|
@@ -5577,22 +5577,22 @@ function Ul(e, t) {
|
|
|
5577
5577
|
return w;
|
|
5578
5578
|
}
|
|
5579
5579
|
function f(i, s, d, w) {
|
|
5580
|
-
mn(e).resolveComponentCreationContextByDrop(i, d, s).then((
|
|
5581
|
-
if (!
|
|
5580
|
+
mn(e).resolveComponentCreationContextByDrop(i, d, s).then((D) => {
|
|
5581
|
+
if (!D)
|
|
5582
5582
|
return;
|
|
5583
|
-
const
|
|
5584
|
-
|
|
5583
|
+
const V = D.componentSchema;
|
|
5584
|
+
V && (t != null && t.appendIdentifyForNewControl && t.appendIdentifyForNewControl(V), a(s, V, w));
|
|
5585
5585
|
}), s.contains(i) && s.removeChild(i);
|
|
5586
5586
|
}
|
|
5587
|
-
function
|
|
5588
|
-
let
|
|
5587
|
+
function p(i, s, d, w) {
|
|
5588
|
+
let T, D = -1;
|
|
5589
5589
|
if (i.componentInstance && i.componentInstance.value.triggerBelongedComponentToMoveWhenMoved) {
|
|
5590
|
-
const
|
|
5591
|
-
|
|
5590
|
+
const m = i.componentInstance.value.getBelongedComponentInstance(i.componentInstance);
|
|
5591
|
+
m && (i = h(m.elementRef).value.parentElement, d = i.parentElement);
|
|
5592
5592
|
}
|
|
5593
|
-
const
|
|
5594
|
-
let y = { id:
|
|
5595
|
-
|
|
5593
|
+
const V = i.componentInstance && i.componentInstance.value.schema;
|
|
5594
|
+
let y = { id: V && V.id };
|
|
5595
|
+
V.type === "component" && (y = { component: V && V.id }), D = ln(d.componentInstance.value.contents, y), D !== -1 && d.componentInstance.value.contents && (T = d.componentInstance.value.contents.splice(D, 1), T = T[0]), a(s, T, w), d.componentInstance && d.componentInstance.value.onChildElementMovedOut && d.componentInstance.value.onChildElementMovedOut(i), s.componentInstance && s.componentInstance.value.onAcceptMovedChildElement && s.componentInstance.value.onAcceptMovedChildElement(i, d);
|
|
5596
5596
|
}
|
|
5597
5597
|
function u(i, s, d, w) {
|
|
5598
5598
|
if (!s || i.contains(s))
|
|
@@ -5605,7 +5605,7 @@ function Ul(e, t) {
|
|
|
5605
5605
|
break;
|
|
5606
5606
|
}
|
|
5607
5607
|
default:
|
|
5608
|
-
d.componentInstance.value.contents ?
|
|
5608
|
+
d.componentInstance.value.contents ? p(i, s, d, w) : s.contains(i) && s.removeChild(i);
|
|
5609
5609
|
}
|
|
5610
5610
|
Ye.value++;
|
|
5611
5611
|
}
|
|
@@ -5617,8 +5617,8 @@ function Ul(e, t) {
|
|
|
5617
5617
|
revertOnSpill: !0,
|
|
5618
5618
|
// 判断是否可移动
|
|
5619
5619
|
moves(s, d, w) {
|
|
5620
|
-
let
|
|
5621
|
-
return s.classList.contains("no-drag") && (
|
|
5620
|
+
let T = !0;
|
|
5621
|
+
return s.classList.contains("no-drag") && (T = !1), s.componentInstance && (T = !!w.getAttribute("data-dragging-icon")), T;
|
|
5622
5622
|
},
|
|
5623
5623
|
// 判断是否可拷贝
|
|
5624
5624
|
copy(s) {
|
|
@@ -5630,15 +5630,15 @@ function Ul(e, t) {
|
|
|
5630
5630
|
},
|
|
5631
5631
|
// 判断目标区域是否可接收拖拽的控件
|
|
5632
5632
|
accepts(s, d, w) {
|
|
5633
|
-
const
|
|
5634
|
-
return
|
|
5633
|
+
const T = o(s, d, w), D = i.lastElementChild;
|
|
5634
|
+
return T ? D.className = D.className.replace("undroppable", "") : D.className.includes("undroppable") || (D.className += " undroppable"), T;
|
|
5635
5635
|
}
|
|
5636
5636
|
}).on("over", (s, d) => {
|
|
5637
5637
|
d.className += " drag-over";
|
|
5638
5638
|
}).on("out", (s, d) => {
|
|
5639
5639
|
d.className = d.className.replace("drag-over", "").replace(" ", "");
|
|
5640
|
-
}).on("drop", (s, d, w,
|
|
5641
|
-
u(s, d, w,
|
|
5640
|
+
}).on("drop", (s, d, w, T) => {
|
|
5641
|
+
u(s, d, w, T);
|
|
5642
5642
|
}).on("dragend", (s, d) => {
|
|
5643
5643
|
l(i, d);
|
|
5644
5644
|
}));
|
|
@@ -5712,7 +5712,7 @@ const Xt = /* @__PURE__ */ De({
|
|
|
5712
5712
|
props: Gl,
|
|
5713
5713
|
emits: ["selectionChange", "dragEnd"],
|
|
5714
5714
|
setup(e, t) {
|
|
5715
|
-
const n = h(`${e.modelValue.id}-component`), o = h(e.canMove), r = h(e.canDelete), l = h(!1), a = h(e.modelValue), f = h(e.componentId || ""),
|
|
5715
|
+
const n = h(`${e.modelValue.id}-component`), o = h(e.canMove), r = h(e.canDelete), l = h(!1), a = h(e.modelValue), f = h(e.componentId || ""), p = h(""), u = h(""), v = h(e.customClass), c = h(), b = me("canvas-dragula"), i = h(), s = me("design-item-context");
|
|
5716
5716
|
function d(M) {
|
|
5717
5717
|
M && Object.assign(a.value, M);
|
|
5718
5718
|
}
|
|
@@ -5725,14 +5725,14 @@ const Xt = /* @__PURE__ */ De({
|
|
|
5725
5725
|
updateContextSchema: d
|
|
5726
5726
|
};
|
|
5727
5727
|
yt("design-item-context", w);
|
|
5728
|
-
const
|
|
5728
|
+
const T = me("useFormSchema"), D = me("designer-host-service"), V = me("external-container-id"), y = G(() => {
|
|
5729
5729
|
var oe;
|
|
5730
|
-
const M = e.modelValue.appearance && e.modelValue.appearance.class || "",
|
|
5730
|
+
const M = e.modelValue.appearance && e.modelValue.appearance.class || "", O = ((oe = i.value) == null ? void 0 : oe.getCustomButtons) && i.value.getCustomButtons();
|
|
5731
5731
|
let z = {
|
|
5732
5732
|
"farris-component": !0,
|
|
5733
5733
|
// 受position-relative影响,整个容器的高度不能被撑起
|
|
5734
5734
|
"flex-fill": a.value.id === "root-component",
|
|
5735
|
-
"position-relative": o.value && r.value || (
|
|
5735
|
+
"position-relative": o.value && r.value || (O == null ? void 0 : O.length),
|
|
5736
5736
|
"farris-nested": l.value,
|
|
5737
5737
|
"can-move": o.value,
|
|
5738
5738
|
"d-none": c.value && c.value.classList.contains("d-none"),
|
|
@@ -5740,19 +5740,19 @@ const Xt = /* @__PURE__ */ De({
|
|
|
5740
5740
|
dgComponentFocused: c.value && c.value.classList.contains("dgComponentFocused")
|
|
5741
5741
|
};
|
|
5742
5742
|
return z[`farris-component-${a.value.type}`] = !0, z = dt(z, M), z = dt(z, u.value), z = dt(z, v.value), z;
|
|
5743
|
-
}),
|
|
5744
|
-
const M = {},
|
|
5745
|
-
return
|
|
5743
|
+
}), m = G(() => {
|
|
5744
|
+
const M = {}, O = e.modelValue.appearance && e.modelValue.appearance.style || "";
|
|
5745
|
+
return O && O.split(";").reduce((z, oe) => {
|
|
5746
5746
|
const [le, X] = oe.split(":");
|
|
5747
5747
|
return z[le] = X, z;
|
|
5748
|
-
}, M),
|
|
5748
|
+
}, M), p.value && p.value.split(";").reduce((z, oe) => {
|
|
5749
5749
|
const [le, X] = oe.split(":");
|
|
5750
5750
|
return le && (z[le] = X), z;
|
|
5751
5751
|
}, M), M;
|
|
5752
5752
|
});
|
|
5753
|
-
function g(M,
|
|
5753
|
+
function g(M, O) {
|
|
5754
5754
|
var le, X, pe;
|
|
5755
|
-
if (M && (M.preventDefault(), M.stopPropagation()), (le =
|
|
5755
|
+
if (M && (M.preventDefault(), M.stopPropagation()), (le = D == null ? void 0 : D.designerContext) != null && le.checkCanDeleteControl && !D.designerContext.checkCanDeleteControl(O))
|
|
5756
5756
|
return;
|
|
5757
5757
|
if (i.value.triggerBelongedComponentToDeleteWhenDeleted) {
|
|
5758
5758
|
const ce = i.value.getBelongedComponentInstance(i);
|
|
@@ -5762,27 +5762,27 @@ const Xt = /* @__PURE__ */ De({
|
|
|
5762
5762
|
}
|
|
5763
5763
|
return;
|
|
5764
5764
|
}
|
|
5765
|
-
i.value.onRemoveComponent(
|
|
5766
|
-
let z = s, oe = (ce) => ce.id ===
|
|
5767
|
-
if (
|
|
5765
|
+
i.value.onRemoveComponent(D);
|
|
5766
|
+
let z = s, oe = (ce) => ce.id === O.id;
|
|
5767
|
+
if (O.type === "component" && (z = s == null ? void 0 : s.parent, oe = (ce) => ce.component === O.id), z && z.schema.contents) {
|
|
5768
5768
|
const ce = z.schema.contents.findIndex(oe);
|
|
5769
5769
|
z.schema.contents.splice(ce, 1), Ye.value++, t.emit("selectionChange");
|
|
5770
5770
|
}
|
|
5771
5771
|
}
|
|
5772
|
-
function
|
|
5772
|
+
function x(M) {
|
|
5773
5773
|
return r.value && C("div", {
|
|
5774
5774
|
role: "button",
|
|
5775
5775
|
class: "btn component-settings-button",
|
|
5776
5776
|
title: "删除",
|
|
5777
5777
|
ref: "removeComponent",
|
|
5778
|
-
onClick: (
|
|
5779
|
-
g(
|
|
5778
|
+
onClick: (O) => {
|
|
5779
|
+
g(O, M);
|
|
5780
5780
|
}
|
|
5781
5781
|
}, [C("i", {
|
|
5782
5782
|
class: "f-icon f-icon-yxs_delete"
|
|
5783
5783
|
}, null)]);
|
|
5784
5784
|
}
|
|
5785
|
-
function
|
|
5785
|
+
function F() {
|
|
5786
5786
|
return o.value && C("div", {
|
|
5787
5787
|
role: "button",
|
|
5788
5788
|
class: "btn component-settings-button",
|
|
@@ -5793,9 +5793,9 @@ const Xt = /* @__PURE__ */ De({
|
|
|
5793
5793
|
class: "cmp_move f-icon f-icon-yxs_move"
|
|
5794
5794
|
}, null)]);
|
|
5795
5795
|
}
|
|
5796
|
-
function
|
|
5797
|
-
var
|
|
5798
|
-
const M = ((
|
|
5796
|
+
function I() {
|
|
5797
|
+
var O;
|
|
5798
|
+
const M = ((O = i.value) == null ? void 0 : O.getCustomButtons) && i.value.getCustomButtons();
|
|
5799
5799
|
return M && !!M.length && M.map((z) => C("div", {
|
|
5800
5800
|
role: "button",
|
|
5801
5801
|
class: `btn component-settings-button ${z.class || ""}`,
|
|
@@ -5806,34 +5806,34 @@ const Xt = /* @__PURE__ */ De({
|
|
|
5806
5806
|
class: z.icon
|
|
5807
5807
|
}, null)]));
|
|
5808
5808
|
}
|
|
5809
|
-
function
|
|
5809
|
+
function E(M) {
|
|
5810
5810
|
return C("div", {
|
|
5811
5811
|
class: "component-btn-group",
|
|
5812
5812
|
"data-noattach": "true"
|
|
5813
|
-
}, [C("div", null, [
|
|
5813
|
+
}, [C("div", null, [x(M), F(), I()])]);
|
|
5814
5814
|
}
|
|
5815
|
-
function
|
|
5816
|
-
t.emit("selectionChange", M,
|
|
5815
|
+
function S(M, O, z, oe) {
|
|
5816
|
+
t.emit("selectionChange", M, O, z, oe);
|
|
5817
5817
|
}
|
|
5818
|
-
function
|
|
5818
|
+
function B() {
|
|
5819
5819
|
t.emit("dragEnd");
|
|
5820
5820
|
}
|
|
5821
5821
|
function P(M) {
|
|
5822
|
-
let
|
|
5822
|
+
let O;
|
|
5823
5823
|
const z = M.type, oe = ee[z], le = te[z], X = le ? le(M) : {};
|
|
5824
5824
|
X.customClass = e.ignore ? X.customClass : "", X.componentId = f.value, X.id = M.id;
|
|
5825
5825
|
const pe = M.contents && M.contents.length === 0;
|
|
5826
5826
|
return M.contents && !!M.contents.length && oe ? C(oe, ot({
|
|
5827
5827
|
ref: i
|
|
5828
|
-
}, X), Xl(
|
|
5828
|
+
}, X), Xl(O = M.contents.map((se) => C(Xt, {
|
|
5829
5829
|
key: se.id,
|
|
5830
5830
|
modelValue: se,
|
|
5831
5831
|
"onUpdate:modelValue": (K) => se = K,
|
|
5832
5832
|
componentId: f.value,
|
|
5833
|
-
onSelectionChange:
|
|
5834
|
-
onDragEnd:
|
|
5835
|
-
}, null))) ?
|
|
5836
|
-
default: () => [
|
|
5833
|
+
onSelectionChange: S,
|
|
5834
|
+
onDragEnd: B
|
|
5835
|
+
}, null))) ? O : {
|
|
5836
|
+
default: () => [O]
|
|
5837
5837
|
}) : oe ? pe ? C(oe, ot({
|
|
5838
5838
|
ref: i
|
|
5839
5839
|
}, X), {
|
|
@@ -5842,43 +5842,43 @@ const Xt = /* @__PURE__ */ De({
|
|
|
5842
5842
|
ref: i
|
|
5843
5843
|
}, X), null) : C("div", null, null);
|
|
5844
5844
|
}
|
|
5845
|
-
function
|
|
5846
|
-
const M =
|
|
5845
|
+
function L() {
|
|
5846
|
+
const M = T.externalFormSchema.get(V);
|
|
5847
5847
|
if (M != null && M.content)
|
|
5848
5848
|
return M == null ? void 0 : M.content;
|
|
5849
5849
|
}
|
|
5850
5850
|
function H(M) {
|
|
5851
5851
|
if (M.type === "component-ref") {
|
|
5852
|
-
const oe = (
|
|
5852
|
+
const oe = (V ? L() : T == null ? void 0 : T.getFormSchema()).module.components.find((X) => X.id === M.component), le = h(oe);
|
|
5853
5853
|
if (oe)
|
|
5854
5854
|
return C(Xt, {
|
|
5855
5855
|
key: oe.id,
|
|
5856
5856
|
modelValue: le.value,
|
|
5857
5857
|
"onUpdate:modelValue": (X) => le.value = X,
|
|
5858
5858
|
componentId: oe.id,
|
|
5859
|
-
onSelectionChange:
|
|
5860
|
-
onDragEnd:
|
|
5859
|
+
onSelectionChange: S,
|
|
5860
|
+
onDragEnd: B
|
|
5861
5861
|
}, null);
|
|
5862
5862
|
}
|
|
5863
5863
|
}
|
|
5864
|
-
ve([() => e.modelValue, () => e.componentId], ([M,
|
|
5865
|
-
a.value = M, n.value = `${M.id}-component`,
|
|
5864
|
+
ve([() => e.modelValue, () => e.componentId], ([M, O]) => {
|
|
5865
|
+
a.value = M, n.value = `${M.id}-component`, O && (f.value = O), sr(c);
|
|
5866
5866
|
}, {
|
|
5867
5867
|
deep: !0
|
|
5868
5868
|
});
|
|
5869
|
-
function
|
|
5869
|
+
function $(M) {
|
|
5870
5870
|
window.scrollContainerList || (window.scrollContainerList = /* @__PURE__ */ new Set());
|
|
5871
|
-
const
|
|
5872
|
-
|
|
5871
|
+
const O = M.getAttribute("id");
|
|
5872
|
+
O && window.scrollContainerList.add(O);
|
|
5873
5873
|
}
|
|
5874
5874
|
function J(M) {
|
|
5875
|
-
const
|
|
5876
|
-
|
|
5875
|
+
const O = M == null ? void 0 : M.target;
|
|
5876
|
+
$(O), bt(O);
|
|
5877
5877
|
}
|
|
5878
5878
|
function N() {
|
|
5879
|
-
var M,
|
|
5879
|
+
var M, O;
|
|
5880
5880
|
if (c.value) {
|
|
5881
|
-
(
|
|
5881
|
+
(O = (M = a.value) == null ? void 0 : M.contents) != null && O.length && c.value.addEventListener("scroll", J);
|
|
5882
5882
|
const z = c.value.querySelector(".drag-container");
|
|
5883
5883
|
z && z.addEventListener("scroll", J);
|
|
5884
5884
|
}
|
|
@@ -5886,43 +5886,43 @@ const Xt = /* @__PURE__ */ De({
|
|
|
5886
5886
|
Xe(() => {
|
|
5887
5887
|
if (c.value && i.value && i.value.schema) {
|
|
5888
5888
|
const M = c.value.querySelector(`[data-dragref='${i.value.schema.id}-container']`);
|
|
5889
|
-
b && M && b.attachComponents(M, a.value), l.value = i.value.canNested !== void 0 ? i.value.canNested : l.value, r.value = i.value.canDelete !== void 0 ? i.value.canDelete : r.value, o.value = i.value.canMove !== void 0 ? i.value.canMove : o.value,
|
|
5889
|
+
b && M && b.attachComponents(M, a.value), l.value = i.value.canNested !== void 0 ? i.value.canNested : l.value, r.value = i.value.canDelete !== void 0 ? i.value.canDelete : r.value, o.value = i.value.canMove !== void 0 ? i.value.canMove : o.value, p.value = i.value.styles || "", u.value = i.value.designerClass || "", c.value && (c.value.componentInstance = i, c.value.designItemContext = w), i.value.belongedComponentId = f.value, i.value.setComponentBasicInfoMap(D);
|
|
5890
5890
|
}
|
|
5891
5891
|
N(), Ye.value++;
|
|
5892
5892
|
}), yn(() => {
|
|
5893
5893
|
c.value && c.value.removeEventListener("scroll", J);
|
|
5894
5894
|
});
|
|
5895
5895
|
function j(M) {
|
|
5896
|
-
if (M && (M.preventDefault(), M.stopPropagation()),
|
|
5897
|
-
const oe = document.getElementById(`${
|
|
5896
|
+
if (M && (M.preventDefault(), M.stopPropagation()), V) {
|
|
5897
|
+
const oe = document.getElementById(`${V}-design-item`);
|
|
5898
5898
|
oe && oe.click();
|
|
5899
5899
|
return;
|
|
5900
5900
|
}
|
|
5901
|
-
let
|
|
5901
|
+
let O = w.designerItemElementRef;
|
|
5902
5902
|
const z = c.value;
|
|
5903
5903
|
if (z) {
|
|
5904
5904
|
const oe = document.getElementsByClassName("dgComponentFocused");
|
|
5905
|
-
oe && oe.length === 1 && oe[0] === c.value || (Array.from(oe).forEach((X) => X.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((X) => X.classList.remove("dgComponentSelected")), z.classList.add("dgComponentFocused"), t.emit("selectionChange", a.value.type, a.value, f.value, i.value), i.value.getDraggableDesignItemElement && (
|
|
5905
|
+
oe && oe.length === 1 && oe[0] === c.value || (Array.from(oe).forEach((X) => X.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((X) => X.classList.remove("dgComponentSelected")), z.classList.add("dgComponentFocused"), t.emit("selectionChange", a.value.type, a.value, f.value, i.value), i.value.getDraggableDesignItemElement && (O = i.value.getDraggableDesignItemElement(w), O && O.value && O.value.classList.add("dgComponentSelected")));
|
|
5906
5906
|
}
|
|
5907
|
-
Zt(
|
|
5907
|
+
Zt(O == null ? void 0 : O.value);
|
|
5908
5908
|
}
|
|
5909
5909
|
return () => {
|
|
5910
|
-
const M =
|
|
5910
|
+
const M = V ? `${V}-` : "";
|
|
5911
5911
|
return a.value.type === "component-ref" ? H(a.value) : C("div", {
|
|
5912
5912
|
id: `${M}${a.value.id}-design-item`,
|
|
5913
5913
|
ref: c,
|
|
5914
5914
|
class: y.value,
|
|
5915
|
-
style:
|
|
5915
|
+
style: m.value,
|
|
5916
5916
|
onClick: j
|
|
5917
|
-
}, [
|
|
5917
|
+
}, [E(a.value), P(a.value)]);
|
|
5918
5918
|
};
|
|
5919
5919
|
}
|
|
5920
|
-
}),
|
|
5920
|
+
}), $c = /* @__PURE__ */ De({
|
|
5921
5921
|
name: "FDesignerCanvas",
|
|
5922
5922
|
props: Fa,
|
|
5923
5923
|
emits: ["init", "selectionChange", "canvasChanged", "dragEnd"],
|
|
5924
5924
|
setup(e, t) {
|
|
5925
|
-
const n = h(), o = h(), r = h(), l = h(), a = h(), f = h(),
|
|
5925
|
+
const n = h(), o = h(), r = h(), l = h(), a = h(), f = h(), p = h(e.componentId), {
|
|
5926
5926
|
canvasMode: u
|
|
5927
5927
|
} = e;
|
|
5928
5928
|
let v, c;
|
|
@@ -5959,33 +5959,33 @@ const Xt = /* @__PURE__ */ De({
|
|
|
5959
5959
|
"flex-column": !0,
|
|
5960
5960
|
[u]: !0
|
|
5961
5961
|
}));
|
|
5962
|
-
ve([() => e.modelValue, () => e.componentId], ([
|
|
5963
|
-
n.value =
|
|
5962
|
+
ve([() => e.modelValue, () => e.componentId], ([m, g]) => {
|
|
5963
|
+
n.value = m, p.value = g;
|
|
5964
5964
|
}), ve(Ye, () => {
|
|
5965
5965
|
bt(r.value), t.emit("canvasChanged");
|
|
5966
5966
|
}, {
|
|
5967
5967
|
flush: "post"
|
|
5968
5968
|
});
|
|
5969
|
-
function
|
|
5969
|
+
function T() {
|
|
5970
5970
|
v = new ResizeObserver(() => {
|
|
5971
5971
|
c && clearTimeout(c), c = setTimeout(() => {
|
|
5972
5972
|
bt(l.value);
|
|
5973
5973
|
});
|
|
5974
5974
|
}), v.observe(l.value);
|
|
5975
5975
|
}
|
|
5976
|
-
function
|
|
5977
|
-
t.emit("selectionChange",
|
|
5976
|
+
function D(m, g, x, F) {
|
|
5977
|
+
t.emit("selectionChange", m, g, x, F);
|
|
5978
5978
|
}
|
|
5979
|
-
function
|
|
5979
|
+
function V() {
|
|
5980
5980
|
t.emit("dragEnd");
|
|
5981
5981
|
}
|
|
5982
5982
|
function y() {
|
|
5983
|
-
l.value.addEventListener("scroll", (
|
|
5983
|
+
l.value.addEventListener("scroll", (m) => {
|
|
5984
5984
|
bt(l.value);
|
|
5985
5985
|
});
|
|
5986
5986
|
}
|
|
5987
5987
|
return Xe(() => {
|
|
5988
|
-
r.value && s.initializeDragula(r.value), n.value = e.modelValue, t.emit("init", s),
|
|
5988
|
+
r.value && s.initializeDragula(r.value), n.value = e.modelValue, t.emit("init", s), T(), y();
|
|
5989
5989
|
}), wt(() => {
|
|
5990
5990
|
v && (v.unobserve(r.value), v.disconnect(), v = null);
|
|
5991
5991
|
}), t.expose({
|
|
@@ -6005,10 +6005,10 @@ const Xt = /* @__PURE__ */ De({
|
|
|
6005
6005
|
}, [n.value && C(Xt, {
|
|
6006
6006
|
key: zo.value,
|
|
6007
6007
|
modelValue: n.value,
|
|
6008
|
-
"onUpdate:modelValue": (
|
|
6009
|
-
onSelectionChange:
|
|
6010
|
-
componentId:
|
|
6011
|
-
onDragEnd:
|
|
6008
|
+
"onUpdate:modelValue": (m) => n.value = m,
|
|
6009
|
+
onSelectionChange: D,
|
|
6010
|
+
componentId: p.value,
|
|
6011
|
+
onDragEnd: V
|
|
6012
6012
|
}, null)])])]);
|
|
6013
6013
|
}
|
|
6014
6014
|
}), Jl = {
|
|
@@ -6026,7 +6026,7 @@ const Xt = /* @__PURE__ */ De({
|
|
|
6026
6026
|
modelValue: { type: Object }
|
|
6027
6027
|
};
|
|
6028
6028
|
function Ql(e, t, n) {
|
|
6029
|
-
var
|
|
6029
|
+
var I;
|
|
6030
6030
|
const o = n && n.getStyles && n.getStyles() || "", r = h();
|
|
6031
6031
|
let l;
|
|
6032
6032
|
function a() {
|
|
@@ -6035,118 +6035,121 @@ function Ql(e, t, n) {
|
|
|
6035
6035
|
function f() {
|
|
6036
6036
|
return !1;
|
|
6037
6037
|
}
|
|
6038
|
-
function
|
|
6038
|
+
function p() {
|
|
6039
6039
|
return n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
6040
6040
|
}
|
|
6041
6041
|
function u() {
|
|
6042
6042
|
return n && n.checkCanAddComponent ? n.checkCanAddComponent() : !0;
|
|
6043
6043
|
}
|
|
6044
|
-
function v(
|
|
6045
|
-
|
|
6044
|
+
function v() {
|
|
6045
|
+
return !0;
|
|
6046
|
+
}
|
|
6047
|
+
function c(E) {
|
|
6048
|
+
if (!E || !E.value)
|
|
6046
6049
|
return null;
|
|
6047
|
-
const
|
|
6048
|
-
return
|
|
6050
|
+
const S = h(E == null ? void 0 : E.value.parent), B = c(S);
|
|
6051
|
+
return B || null;
|
|
6049
6052
|
}
|
|
6050
|
-
function
|
|
6051
|
-
var
|
|
6052
|
-
const { componentInstance:
|
|
6053
|
-
if (!
|
|
6053
|
+
function b(E = t) {
|
|
6054
|
+
var L;
|
|
6055
|
+
const { componentInstance: S, designerItemElementRef: B } = E;
|
|
6056
|
+
if (!S || !S.value)
|
|
6054
6057
|
return null;
|
|
6055
|
-
const { getCustomButtons:
|
|
6056
|
-
return
|
|
6058
|
+
const { getCustomButtons: P } = S.value;
|
|
6059
|
+
return S.value.canMove || S.value.canAdd || S.value.canDelete || P && ((L = P()) != null && L.length) ? B : b(E.parent);
|
|
6057
6060
|
}
|
|
6058
|
-
function
|
|
6061
|
+
function i() {
|
|
6059
6062
|
if (n && n.getCustomButtons)
|
|
6060
6063
|
return n.getCustomButtons();
|
|
6061
6064
|
}
|
|
6062
|
-
function
|
|
6063
|
-
return !!n && n.canAccepts(
|
|
6065
|
+
function s(E) {
|
|
6066
|
+
return !!n && n.canAccepts(E);
|
|
6064
6067
|
}
|
|
6065
|
-
function
|
|
6068
|
+
function d() {
|
|
6066
6069
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
6067
6070
|
}
|
|
6068
|
-
function
|
|
6071
|
+
function w() {
|
|
6069
6072
|
}
|
|
6070
|
-
function
|
|
6071
|
-
!
|
|
6073
|
+
function T(E, S) {
|
|
6074
|
+
!E || !S || n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(E, S);
|
|
6072
6075
|
}
|
|
6073
|
-
function
|
|
6074
|
-
const { componentType:
|
|
6075
|
-
let
|
|
6076
|
-
n && n.onResolveNewComponentSchema && (
|
|
6077
|
-
const
|
|
6078
|
-
return
|
|
6076
|
+
function D(E) {
|
|
6077
|
+
const { componentType: S } = E, B = me("designer-host-service");
|
|
6078
|
+
let P = bn(S, E, B);
|
|
6079
|
+
n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(E, P));
|
|
6080
|
+
const L = S.toLowerCase().replace(/-/g, "_");
|
|
6081
|
+
return P && !P.id && P.type === S && (P.id = `${L}_${Math.random().toString().slice(2, 6)}`), P;
|
|
6079
6082
|
}
|
|
6080
|
-
function
|
|
6083
|
+
function V(E) {
|
|
6081
6084
|
}
|
|
6082
|
-
function
|
|
6083
|
-
return n && n.getPropsConfig ? n.getPropsConfig(...
|
|
6085
|
+
function y(...E) {
|
|
6086
|
+
return n && n.getPropsConfig ? n.getPropsConfig(...E) : [];
|
|
6084
6087
|
}
|
|
6085
|
-
function
|
|
6088
|
+
function m() {
|
|
6086
6089
|
}
|
|
6087
|
-
function
|
|
6088
|
-
var
|
|
6090
|
+
function g(E) {
|
|
6091
|
+
var B;
|
|
6089
6092
|
if (!(t != null && t.schema))
|
|
6090
6093
|
return;
|
|
6091
6094
|
if (n != null && n.setComponentBasicInfoMap) {
|
|
6092
6095
|
n.setComponentBasicInfoMap();
|
|
6093
6096
|
return;
|
|
6094
6097
|
}
|
|
6095
|
-
let
|
|
6098
|
+
let S = "";
|
|
6096
6099
|
if (n != null && n.getComponentTitle)
|
|
6097
|
-
|
|
6100
|
+
S = n.getComponentTitle();
|
|
6098
6101
|
else {
|
|
6099
|
-
const { text:
|
|
6100
|
-
|
|
6102
|
+
const { text: P, title: L, label: H, mainTitle: $, name: J, type: N } = t.schema;
|
|
6103
|
+
S = P || L || H || $ || J || ((B = R[N]) == null ? void 0 : B.name);
|
|
6101
6104
|
}
|
|
6102
|
-
|
|
6103
|
-
componentTitle:
|
|
6104
|
-
parentPathName:
|
|
6105
|
+
S && (!l && E && (l = E.formSchemaUtils), l.getControlBasicInfoMap().set(t.schema.id, {
|
|
6106
|
+
componentTitle: S,
|
|
6107
|
+
parentPathName: S
|
|
6105
6108
|
}));
|
|
6106
6109
|
}
|
|
6107
|
-
function
|
|
6108
|
-
var
|
|
6109
|
-
const { changeObject:
|
|
6110
|
-
["text", "title", "label", "name", "mainTitle"].includes((
|
|
6110
|
+
function x(E) {
|
|
6111
|
+
var L;
|
|
6112
|
+
const { changeObject: S } = E, { propertyID: B, propertyValue: P } = S;
|
|
6113
|
+
["text", "title", "label", "name", "mainTitle"].includes((L = E == null ? void 0 : E.changeObject) == null ? void 0 : L.propertyID) && B && P && g();
|
|
6111
6114
|
}
|
|
6112
|
-
function
|
|
6113
|
-
if (
|
|
6114
|
-
return n.onPropertyChanged(
|
|
6115
|
+
function F(E) {
|
|
6116
|
+
if (x(E), n && n.onPropertyChanged)
|
|
6117
|
+
return n.onPropertyChanged(E);
|
|
6115
6118
|
}
|
|
6116
6119
|
return r.value = {
|
|
6117
6120
|
canMove: a(),
|
|
6118
6121
|
canSelectParent: f(),
|
|
6119
6122
|
canAdd: u(),
|
|
6120
|
-
canDelete:
|
|
6121
|
-
canNested: !
|
|
6123
|
+
canDelete: p(),
|
|
6124
|
+
canNested: !v(),
|
|
6122
6125
|
contents: [],
|
|
6123
6126
|
elementRef: e,
|
|
6124
|
-
parent: (
|
|
6127
|
+
parent: (I = t.parent) == null ? void 0 : I.componentInstance,
|
|
6125
6128
|
schema: t.schema,
|
|
6126
6129
|
styles: o,
|
|
6127
|
-
canAccepts:
|
|
6128
|
-
getBelongedComponentInstance:
|
|
6129
|
-
getDraggableDesignItemElement:
|
|
6130
|
-
getDraggingDisplayText:
|
|
6131
|
-
getPropConfig:
|
|
6132
|
-
getDragScopeElement:
|
|
6133
|
-
onAcceptMovedChildElement:
|
|
6134
|
-
onChildElementMovedOut:
|
|
6135
|
-
addNewChildComponentSchema:
|
|
6136
|
-
onRemoveComponent:
|
|
6130
|
+
canAccepts: s,
|
|
6131
|
+
getBelongedComponentInstance: c,
|
|
6132
|
+
getDraggableDesignItemElement: b,
|
|
6133
|
+
getDraggingDisplayText: d,
|
|
6134
|
+
getPropConfig: y,
|
|
6135
|
+
getDragScopeElement: w,
|
|
6136
|
+
onAcceptMovedChildElement: T,
|
|
6137
|
+
onChildElementMovedOut: V,
|
|
6138
|
+
addNewChildComponentSchema: D,
|
|
6139
|
+
onRemoveComponent: m,
|
|
6137
6140
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || h(!1),
|
|
6138
6141
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || h(!1),
|
|
6139
|
-
onPropertyChanged:
|
|
6140
|
-
getCustomButtons:
|
|
6141
|
-
setComponentBasicInfoMap:
|
|
6142
|
+
onPropertyChanged: F,
|
|
6143
|
+
getCustomButtons: i,
|
|
6144
|
+
setComponentBasicInfoMap: g
|
|
6142
6145
|
}, r;
|
|
6143
6146
|
}
|
|
6144
|
-
const
|
|
6147
|
+
const Ac = /* @__PURE__ */ De({
|
|
6145
6148
|
name: "FDesignerInnerItem",
|
|
6146
6149
|
props: Jl,
|
|
6147
6150
|
emits: ["selectionChange", "addComponent", "removeComponent", "clickButton"],
|
|
6148
6151
|
setup(e, t) {
|
|
6149
|
-
const n = h(e.canMove), o = h(e.canAdd), r = h(e.canDelete), l = h(!1), a = h(e.contentKey), f = h(e.childType),
|
|
6152
|
+
const n = h(e.canMove), o = h(e.canAdd), r = h(e.canDelete), l = h(!1), a = h(e.contentKey), f = h(e.childType), p = h(e.childLabel), u = h(e.modelValue), v = h(""), c = h(), b = me("canvas-dragula"), i = h(), s = me("design-item-context"), d = {
|
|
6150
6153
|
designerItemElementRef: c,
|
|
6151
6154
|
componentInstance: i,
|
|
6152
6155
|
schema: u.value,
|
|
@@ -6154,26 +6157,26 @@ const Lc = /* @__PURE__ */ De({
|
|
|
6154
6157
|
setupContext: t
|
|
6155
6158
|
};
|
|
6156
6159
|
yt("design-item-context", d);
|
|
6157
|
-
const w = me("designer-host-service"),
|
|
6160
|
+
const w = me("designer-host-service"), T = me("external-container-id"), D = G(() => {
|
|
6158
6161
|
var N;
|
|
6159
|
-
const
|
|
6162
|
+
const $ = ((N = i.value) == null ? void 0 : N.getCustomButtons) && i.value.getCustomButtons();
|
|
6160
6163
|
return {
|
|
6161
6164
|
"farris-component": !0,
|
|
6162
6165
|
// 受position-relative影响,整个容器的高度不能被撑起
|
|
6163
6166
|
"flex-fill": e.id === "root-component",
|
|
6164
|
-
"position-relative": n.value || r.value || (
|
|
6167
|
+
"position-relative": n.value || r.value || ($ == null ? void 0 : $.length),
|
|
6165
6168
|
"farris-nested": l.value,
|
|
6166
6169
|
"can-move": n.value,
|
|
6167
6170
|
"d-none": c.value && c.value.classList.contains("d-none")
|
|
6168
6171
|
};
|
|
6169
|
-
}),
|
|
6170
|
-
const
|
|
6172
|
+
}), V = G(() => {
|
|
6173
|
+
const $ = {};
|
|
6171
6174
|
return v.value && v.value.split(";").reduce((J, N) => {
|
|
6172
6175
|
const [j, M] = N.split(":");
|
|
6173
6176
|
return j && (J[j] = M), J;
|
|
6174
|
-
},
|
|
6177
|
+
}, $), $;
|
|
6175
6178
|
});
|
|
6176
|
-
function y(
|
|
6179
|
+
function y($, J) {
|
|
6177
6180
|
if (s && s.schema[a.value]) {
|
|
6178
6181
|
const N = s.schema[a.value].findIndex((j) => j.id === J.id);
|
|
6179
6182
|
if (N > -1) {
|
|
@@ -6182,11 +6185,11 @@ const Lc = /* @__PURE__ */ De({
|
|
|
6182
6185
|
}
|
|
6183
6186
|
}
|
|
6184
6187
|
}
|
|
6185
|
-
function
|
|
6188
|
+
function m($) {
|
|
6186
6189
|
if (i.value.addNewChildComponentSchema) {
|
|
6187
6190
|
const J = {
|
|
6188
6191
|
componentType: f.value,
|
|
6189
|
-
label:
|
|
6192
|
+
label: p.value,
|
|
6190
6193
|
parentComponentInstance: i.value,
|
|
6191
6194
|
targetPosition: -1
|
|
6192
6195
|
}, N = i.value.addNewChildComponentSchema(J);
|
|
@@ -6199,25 +6202,25 @@ const Lc = /* @__PURE__ */ De({
|
|
|
6199
6202
|
class: "btn component-settings-button",
|
|
6200
6203
|
title: "新增",
|
|
6201
6204
|
ref: "removeComponent",
|
|
6202
|
-
onClick: (
|
|
6203
|
-
|
|
6205
|
+
onClick: ($) => {
|
|
6206
|
+
m();
|
|
6204
6207
|
}
|
|
6205
6208
|
}, [C("i", {
|
|
6206
6209
|
class: "f-icon f-icon-plus-circle"
|
|
6207
6210
|
}, null)]);
|
|
6208
6211
|
}
|
|
6209
|
-
function
|
|
6212
|
+
function x($) {
|
|
6210
6213
|
return r.value && C("div", {
|
|
6211
6214
|
role: "button",
|
|
6212
6215
|
class: "btn component-settings-button",
|
|
6213
6216
|
title: "删除",
|
|
6214
6217
|
ref: "removeComponent",
|
|
6215
|
-
onClick: ur((J) => y(J,
|
|
6218
|
+
onClick: ur((J) => y(J, $), ["stop"])
|
|
6216
6219
|
}, [C("i", {
|
|
6217
6220
|
class: "f-icon f-icon-yxs_delete"
|
|
6218
6221
|
}, null)]);
|
|
6219
6222
|
}
|
|
6220
|
-
function
|
|
6223
|
+
function F() {
|
|
6221
6224
|
return n.value && C("div", {
|
|
6222
6225
|
role: "button",
|
|
6223
6226
|
class: "btn component-settings-button",
|
|
@@ -6228,10 +6231,10 @@ const Lc = /* @__PURE__ */ De({
|
|
|
6228
6231
|
class: "cmp_move f-icon f-icon-yxs_move"
|
|
6229
6232
|
}, null)]);
|
|
6230
6233
|
}
|
|
6231
|
-
function
|
|
6234
|
+
function I() {
|
|
6232
6235
|
var J;
|
|
6233
|
-
const
|
|
6234
|
-
return
|
|
6236
|
+
const $ = ((J = i.value) == null ? void 0 : J.getCustomButtons) && i.value.getCustomButtons();
|
|
6237
|
+
return $ && !!$.length && $.map((N) => C("div", {
|
|
6235
6238
|
role: "button",
|
|
6236
6239
|
class: `btn component-settings-button ${N.class || ""} ${N.text ? "settings-button-extend" : ""}`,
|
|
6237
6240
|
title: N.title,
|
|
@@ -6243,44 +6246,44 @@ const Lc = /* @__PURE__ */ De({
|
|
|
6243
6246
|
class: "icon-text"
|
|
6244
6247
|
}, [N.text])]));
|
|
6245
6248
|
}
|
|
6246
|
-
function
|
|
6249
|
+
function E($) {
|
|
6247
6250
|
return C("div", {
|
|
6248
6251
|
class: "component-btn-group",
|
|
6249
6252
|
"data-noattach": "true"
|
|
6250
|
-
}, [C("div", null, [g(),
|
|
6253
|
+
}, [C("div", null, [g(), F(), x($), I()])]);
|
|
6251
6254
|
}
|
|
6252
|
-
ve(() => e.modelValue, (
|
|
6253
|
-
u.value =
|
|
6255
|
+
ve(() => e.modelValue, ($) => {
|
|
6256
|
+
u.value = $, d.schema = $;
|
|
6254
6257
|
});
|
|
6255
|
-
function
|
|
6258
|
+
function S($) {
|
|
6256
6259
|
window.scrollContainerList || (window.scrollContainerList = /* @__PURE__ */ new Set());
|
|
6257
|
-
const J =
|
|
6260
|
+
const J = $.getAttribute("id");
|
|
6258
6261
|
J && window.scrollContainerList.add(J);
|
|
6259
6262
|
}
|
|
6260
|
-
function
|
|
6261
|
-
const J =
|
|
6262
|
-
|
|
6263
|
+
function B($) {
|
|
6264
|
+
const J = $.target;
|
|
6265
|
+
S(J), bt(J);
|
|
6263
6266
|
}
|
|
6264
6267
|
function P() {
|
|
6265
|
-
var
|
|
6266
|
-
(J = (
|
|
6268
|
+
var $, J;
|
|
6269
|
+
(J = ($ = u.value) == null ? void 0 : $.contents) != null && J.length && c.value && c.value.addEventListener("scroll", B);
|
|
6267
6270
|
}
|
|
6268
|
-
function
|
|
6269
|
-
const
|
|
6271
|
+
function L() {
|
|
6272
|
+
const $ = c.value, J = h($.children[1]);
|
|
6270
6273
|
return Ql(J, d).value;
|
|
6271
6274
|
}
|
|
6272
6275
|
Xe(() => {
|
|
6273
6276
|
if (c.value) {
|
|
6274
|
-
const
|
|
6275
|
-
i.value =
|
|
6277
|
+
const $ = c.value.querySelector(`[data-dragref='${u.value.id}-container']`);
|
|
6278
|
+
i.value = $ && $.componentInstance ? $.componentInstance.value : L(), b && $ && b.attachComponents($, u.value), l.value = i.value.canNested !== void 0 ? i.value.canNested : l.value, o.value = i.value.canAdd !== void 0 ? i.value.canAdd : o.value, r.value = i.value.canDelete !== void 0 ? i.value.canDelete : r.value, n.value = i.value.canMove !== void 0 ? i.value.canMove : n.value, v.value = i.value.styles || "", c.value && (c.value.componentInstance = i, c.value.designItemContext = d), i.value.setComponentBasicInfoMap(w);
|
|
6276
6279
|
}
|
|
6277
6280
|
P(), Ye.value++;
|
|
6278
6281
|
}), yn(() => {
|
|
6279
|
-
c.value && c.value.removeEventListener("scroll",
|
|
6282
|
+
c.value && c.value.removeEventListener("scroll", B);
|
|
6280
6283
|
});
|
|
6281
|
-
function H(
|
|
6282
|
-
if (
|
|
6283
|
-
const j = document.getElementById(`${
|
|
6284
|
+
function H($) {
|
|
6285
|
+
if ($ && ($.preventDefault(), $.stopPropagation()), T) {
|
|
6286
|
+
const j = document.getElementById(`${T}-design-item`);
|
|
6284
6287
|
j && j.click();
|
|
6285
6288
|
return;
|
|
6286
6289
|
}
|
|
@@ -6288,27 +6291,27 @@ const Lc = /* @__PURE__ */ De({
|
|
|
6288
6291
|
const N = c.value;
|
|
6289
6292
|
if (N) {
|
|
6290
6293
|
const j = document.getElementsByClassName("dgComponentFocused");
|
|
6291
|
-
j && j.length === 1 && j[0] === c.value && c.value.classList.contains("dgComponentSelected") || (Array.from(j).forEach((
|
|
6294
|
+
j && j.length === 1 && j[0] === c.value && c.value.classList.contains("dgComponentSelected") || (Array.from(j).forEach((O) => O.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((O) => O.classList.remove("dgComponentSelected")), N.classList.add("dgComponentFocused"), t.emit("selectionChange", u.value.type, u.value, e.componentId, i.value), i.value.getDraggableDesignItemElement && (J = i.value.getDraggableDesignItemElement(d), J && J.value && J.value.classList.add("dgComponentSelected")));
|
|
6292
6295
|
}
|
|
6293
6296
|
Zt(J == null ? void 0 : J.value);
|
|
6294
6297
|
}
|
|
6295
6298
|
return () => C("div", {
|
|
6296
6299
|
id: `${e.id}-design-item`,
|
|
6297
6300
|
ref: c,
|
|
6298
|
-
class:
|
|
6299
|
-
style:
|
|
6301
|
+
class: D.value,
|
|
6302
|
+
style: V.value,
|
|
6300
6303
|
onClick: H
|
|
6301
|
-
}, [
|
|
6304
|
+
}, [E(u.value), t.slots.default && t.slots.default()]);
|
|
6302
6305
|
}
|
|
6303
6306
|
});
|
|
6304
6307
|
export {
|
|
6305
6308
|
R as DgControl,
|
|
6306
|
-
|
|
6307
|
-
|
|
6309
|
+
$c as FDesignerCanvas,
|
|
6310
|
+
Ac as FDesignerInnerItem,
|
|
6308
6311
|
Xt as FDesignerItem,
|
|
6309
|
-
|
|
6312
|
+
Vc as UseTemplateDragAndDropRules,
|
|
6310
6313
|
Fa as designerCanvasProps,
|
|
6311
|
-
|
|
6314
|
+
jc as useDesignerComponent,
|
|
6312
6315
|
Ql as useDesignerInnerComponent,
|
|
6313
|
-
|
|
6316
|
+
Lc as useDragulaCommonRule
|
|
6314
6317
|
};
|