@farris/ui-vue 1.6.5-beta.4 → 1.6.5-beta.6
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/package.json +1 -1
- package/components/avatar/index.esm.js +1 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/binding-selector/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.esm.js +170 -170
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/checkbox-group/package.json +1 -1
- package/components/code-editor/package.json +1 -1
- package/components/collection-property-editor/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +201 -201
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +1 -1
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +1 -1
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +255 -255
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +1 -1
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/event-parameter/package.json +1 -1
- package/components/events-editor/index.esm.js +1 -1
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/index.esm.js +1 -1
- package/components/expression-editor/index.umd.cjs +3 -3
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/fieldset/package.json +1 -1
- package/components/filter-bar/index.esm.js +1 -1
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/filter-condition-editor/index.esm.js +1 -1
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/filter-condition-editor/package.json +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/html-template/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/package.json +1 -1
- package/components/json-editor/package.json +1 -1
- package/components/language-textbox/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.esm.js +1 -1
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/menu-lookup/package.json +1 -1
- package/components/message-box/index.esm.js +1 -1
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/number-range/index.esm.js +1 -1
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-range/package.json +1 -1
- package/components/number-spinner/index.esm.js +1 -1
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/number-spinner/package.json +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +82 -82
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/query-solution/index.esm.js +1 -1
- package/components/query-solution/index.umd.cjs +4 -4
- package/components/query-solution/package.json +1 -1
- package/components/radio/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/index.esm.js +199 -199
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/index.esm.js +1 -1
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.esm.js +1 -1
- package/components/schema-selector/index.umd.cjs +1 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +1 -1
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/sort-condition-editor/index.esm.js +1 -1
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/sort-condition-editor/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.esm.js +1 -1
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +166 -166
- package/components/textarea/index.umd.cjs +2 -2
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.esm.js +1 -1
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/package.json +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/index.esm.js +1 -1
- package/components/video/index.umd.cjs +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/designer/button-edit/index.esm.js +167 -167
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +1 -1
- package/designer/data-grid/index.umd.cjs +1 -1
- package/designer/farris-designer.all.esm.js +1 -1
- package/designer/farris-designer.all.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +1 -1
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +1 -1
- package/farris.all.umd.cjs +1 -1
- package/package.json +1 -1
- package/types/locale/index.d.ts +1 -1
- package/types/step/index.d.ts +1 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var rr = Object.defineProperty;
|
|
2
2
|
var ar = (e, t, n) => t in e ? rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var Be = (e, t, n) => ar(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { ref as g, defineComponent as xe, computed as _, watch as ve, createVNode as h, Fragment as lt, reactive as Ye, createApp as hn, onUnmounted as St, onMounted as Re, Transition as yn, mergeProps as rt, nextTick as Qt, createTextVNode as Ie, inject as me, onBeforeMount as bn, Teleport as ir, shallowRef as lr, render as Gt, h as sr, cloneVNode as cr, provide as bt, triggerRef as ur, onBeforeUnmount as Cn, isVNode as dr, withModifiers as fr } from "vue";
|
|
5
5
|
import { isUndefined as Ge, cloneDeep as wt, isPlainObject as sn, merge as xt, findIndex as cn } from "lodash-es";
|
|
6
6
|
import { useI18n as Zt } from "vue-i18n";
|
|
7
7
|
import { LocaleService as Ot } from "../locale/index.esm.js";
|
|
8
8
|
import { getCustomClass as dt, withInstall as pr, FormSchemaEntityField$Type as un, FormSchemaEntityFieldTypeName as dn } from "../common/index.esm.js";
|
|
9
9
|
import { useResizeObserver as mr } from "@vueuse/core";
|
|
10
|
-
import { getHierarchyRow as vr, useIdentify as gr, useGroupData as hr, useFilter as yr, useHierarchy as br, useLoading as Cr, useDataView as wr, useSelection as Sr, useSelectHierarchyItem as Tr, usePagination as Fr, useDataViewContainerStyle as xr, useCommandColumn as
|
|
10
|
+
import { getHierarchyRow as vr, useIdentify as gr, useGroupData as hr, useFilter as yr, useHierarchy as br, useLoading as Cr, useDataView as wr, useSelection as Sr, useSelectHierarchyItem as Tr, usePagination as Fr, useDataViewContainerStyle as xr, useCommandColumn as Dr, useSettingColumn as Br, useColumn as kr, useSort as Mr, useGroupColumn as Er, useRow as Ir, useEdit as Or, useVisualDataBound as Nr, useVisualDataCell as Pr, useVisualDataRow as jr, useVisualData as Lr, useCellPosition as Vr, useSidebar as $r, useVirtualScroll as Rr, useFitColumn as Ar, useFilterHistory as zr, useColumnFilter as Hr, useDragColumn as _r, getColumnHeader as qr, getSidebar as Ur, getDisableMask as Gr, getHorizontalScrollbar as Wr, getVerticalScrollbar as Yr, getEmpty as Xr, getPagination as Jr, getSummary as Qr } from "../data-view/index.esm.js";
|
|
11
11
|
import { getSchemaByTypeForDesigner as wn, schemaMapForDesigner as Zr, propertyConfigSchemaMapForDesigner as Kr, propertyEffectMapForDesigner as ea, schemaResolverMapForDesigner as ta, createPropsResolver as Sn, resolveAppearance as na } 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 Tn from "../accordion/index.esm.js";
|
|
15
15
|
import Fn from "../avatar/index.esm.js";
|
|
16
16
|
import xn from "../../designer/button-edit/index.esm.js";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
17
|
+
import Dn from "../button-group/index.esm.js";
|
|
18
|
+
import Bn from "../calendar/index.esm.js";
|
|
19
19
|
import kn from "../capsule/index.esm.js";
|
|
20
20
|
import Wt from "../../designer/checkbox/index.esm.js";
|
|
21
21
|
import Mt from "../../designer/checkbox-group/index.esm.js";
|
|
@@ -85,7 +85,7 @@ import Fo from "../html-template/index.esm.js";
|
|
|
85
85
|
import ya from "../collection-property-editor/index.esm.js";
|
|
86
86
|
import ba from "../modal/index.esm.js";
|
|
87
87
|
import xo from "../external-container/index.esm.js";
|
|
88
|
-
import
|
|
88
|
+
import Do from "../language-textbox/index.esm.js";
|
|
89
89
|
import { FNotifyService as Ca } from "../notify/index.esm.js";
|
|
90
90
|
const Xe = g(0);
|
|
91
91
|
function wa() {
|
|
@@ -159,13 +159,13 @@ const xa = {
|
|
|
159
159
|
canvasMode: { type: String, default: "PC" }
|
|
160
160
|
};
|
|
161
161
|
var We = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
162
|
-
function
|
|
162
|
+
function Da(e) {
|
|
163
163
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Dt(e) {
|
|
166
166
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
167
167
|
}
|
|
168
|
-
var
|
|
168
|
+
var Bo = { exports: {} };
|
|
169
169
|
(function(e, t) {
|
|
170
170
|
(function(n) {
|
|
171
171
|
e.exports = n();
|
|
@@ -175,7 +175,7 @@ var Do = { exports: {} };
|
|
|
175
175
|
function a(u, v) {
|
|
176
176
|
if (!r[u]) {
|
|
177
177
|
if (!o[u]) {
|
|
178
|
-
var c = typeof
|
|
178
|
+
var c = typeof Dt == "function" && Dt;
|
|
179
179
|
if (!v && c) return c(u, !0);
|
|
180
180
|
if (f) return f(u, !0);
|
|
181
181
|
var C = new Error("Cannot find module '" + u + "'");
|
|
@@ -189,7 +189,7 @@ var Do = { exports: {} };
|
|
|
189
189
|
}
|
|
190
190
|
return r[u].exports;
|
|
191
191
|
}
|
|
192
|
-
for (var f = typeof
|
|
192
|
+
for (var f = typeof Dt == "function" && Dt, m = 0; m < l.length; m++) a(l[m]);
|
|
193
193
|
return a;
|
|
194
194
|
}
|
|
195
195
|
return n;
|
|
@@ -284,7 +284,7 @@ var Do = { exports: {} };
|
|
|
284
284
|
return;
|
|
285
285
|
var Q = p(E);
|
|
286
286
|
if (Q && !K.invalid(E, q)) {
|
|
287
|
-
var re = K.moves(E, Q, q,
|
|
287
|
+
var re = K.moves(E, Q, q, D(E));
|
|
288
288
|
if (re)
|
|
289
289
|
return {
|
|
290
290
|
item: E,
|
|
@@ -301,7 +301,7 @@ var Do = { exports: {} };
|
|
|
301
301
|
q && _e(q);
|
|
302
302
|
}
|
|
303
303
|
function _e(E) {
|
|
304
|
-
Ut(E.item, E.source) && (N = E.item.cloneNode(!0), fe.emit("cloned", N, E.item, "copy")), H = E.source, $ = E.item, j = I =
|
|
304
|
+
Ut(E.item, E.source) && (N = E.item.cloneNode(!0), fe.emit("cloned", N, E.item, "copy")), H = E.source, $ = E.item, j = I = D(E.item), fe.dragging = !0, fe.emit("drag", $, H);
|
|
305
305
|
}
|
|
306
306
|
function pt() {
|
|
307
307
|
return !1;
|
|
@@ -343,7 +343,7 @@ var Do = { exports: {} };
|
|
|
343
343
|
}
|
|
344
344
|
function ye(E, q) {
|
|
345
345
|
var Q;
|
|
346
|
-
return q !== void 0 ? Q = q : L ? Q = I : Q =
|
|
346
|
+
return q !== void 0 ? Q = q : L ? Q = I : Q = D(N || $), E === H && Q === j;
|
|
347
347
|
}
|
|
348
348
|
function Ue(E, q, Q) {
|
|
349
349
|
for (var re = E; re && !ue(); )
|
|
@@ -353,8 +353,8 @@ var Do = { exports: {} };
|
|
|
353
353
|
var de = Je(re);
|
|
354
354
|
if (de === !1)
|
|
355
355
|
return !1;
|
|
356
|
-
var Oe = Tt(re, E),
|
|
357
|
-
return ke ? !0 : K.accepts($, re, H,
|
|
356
|
+
var Oe = Tt(re, E), De = Ft(re, Oe, q, Q), ke = ye(re, De);
|
|
357
|
+
return ke ? !0 : K.accepts($, re, H, De);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
function mt(E) {
|
|
@@ -365,9 +365,9 @@ var Do = { exports: {} };
|
|
|
365
365
|
L.style.left = q - 2 + "px", L.style.top = Q - 2 + "px";
|
|
366
366
|
var re = N || $, ue = S(L, q, Q), de = Ue(ue, q, Q), Oe = de !== null && de !== oe;
|
|
367
367
|
(Oe || de === null) && (Me(), oe = de, Le()), qt(ue, Q);
|
|
368
|
-
var
|
|
368
|
+
var De = p(re);
|
|
369
369
|
if (de === H && N && !K.copySortSource) {
|
|
370
|
-
|
|
370
|
+
De && De.removeChild(re);
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
373
373
|
var ke, je = Tt(de, ue);
|
|
@@ -376,7 +376,7 @@ var Do = { exports: {} };
|
|
|
376
376
|
else if (K.revertOnSpill === !0 && !N)
|
|
377
377
|
ke = j, de = H;
|
|
378
378
|
else {
|
|
379
|
-
N &&
|
|
379
|
+
N && De && De.removeChild(re), N && X && (X.style.display = "none");
|
|
380
380
|
return;
|
|
381
381
|
}
|
|
382
382
|
X.style.display = "block", Pt(ke, re, Oe), ke ? Ht(je, ke) : _t(de);
|
|
@@ -391,7 +391,7 @@ var Do = { exports: {} };
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
function Pt(E, q, Q) {
|
|
394
|
-
(E === q || E ===
|
|
394
|
+
(E === q || E === D(q)) && (I = D(q)), (E === null && Q || E !== q && E !== D(q)) && (I = E);
|
|
395
395
|
}
|
|
396
396
|
function jt(E) {
|
|
397
397
|
m.rm(E, "gu-hide");
|
|
@@ -432,8 +432,8 @@ var Do = { exports: {} };
|
|
|
432
432
|
if (q) {
|
|
433
433
|
var de = getComputedStyle(q), Oe = de.getPropertyValue("display");
|
|
434
434
|
if (/flex$/.test(Oe)) {
|
|
435
|
-
var
|
|
436
|
-
if (
|
|
435
|
+
var De = de.getPropertyValue("flex-direction") || "row";
|
|
436
|
+
if (De === "row" || De === "row-reverse")
|
|
437
437
|
return !zt(q);
|
|
438
438
|
}
|
|
439
439
|
return !1;
|
|
@@ -492,9 +492,9 @@ var Do = { exports: {} };
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
function Ft(E, q, Q, re) {
|
|
495
|
-
var ue = K.direction === "horizontal", de = K.direction === "mixed", Oe = q !== E ? ke() :
|
|
495
|
+
var ue = K.direction === "horizontal", de = K.direction === "mixed", Oe = q !== E ? ke() : De();
|
|
496
496
|
return Oe;
|
|
497
|
-
function
|
|
497
|
+
function De() {
|
|
498
498
|
var Ce = E.children.length, Le, Me, Te;
|
|
499
499
|
for (Le = 0; Le < Ce; Le++)
|
|
500
500
|
if (Me = E.children[Le], Te = Me.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)
|
|
@@ -510,7 +510,7 @@ var Do = { exports: {} };
|
|
|
510
510
|
return je(ue ? Q > Ce.left + V(Ce) / 2 : re > Ce.top + b(Ce) / 2);
|
|
511
511
|
}
|
|
512
512
|
function je(Ce) {
|
|
513
|
-
return Ce ?
|
|
513
|
+
return Ce ? D(q) : q;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
function Ut(E, q) {
|
|
@@ -584,12 +584,12 @@ var Do = { exports: {} };
|
|
|
584
584
|
return w.parentNode === u ? null : w.parentNode;
|
|
585
585
|
}
|
|
586
586
|
function y(w) {
|
|
587
|
-
return w.tagName === "INPUT" || w.tagName === "TEXTAREA" || w.tagName === "SELECT" ||
|
|
588
|
-
}
|
|
589
|
-
function D(w) {
|
|
590
|
-
return !w || w.contentEditable === "false" ? !1 : w.contentEditable === "true" ? !0 : D(p(w));
|
|
587
|
+
return w.tagName === "INPUT" || w.tagName === "TEXTAREA" || w.tagName === "SELECT" || B(w);
|
|
591
588
|
}
|
|
592
589
|
function B(w) {
|
|
590
|
+
return !w || w.contentEditable === "false" ? !1 : w.contentEditable === "true" ? !0 : B(p(w));
|
|
591
|
+
}
|
|
592
|
+
function D(w) {
|
|
593
593
|
return w.nextElementSibling || k();
|
|
594
594
|
function k() {
|
|
595
595
|
var O = w;
|
|
@@ -672,62 +672,62 @@ var Do = { exports: {} };
|
|
|
672
672
|
remove: v,
|
|
673
673
|
fabricate: S
|
|
674
674
|
};
|
|
675
|
-
function C(p, y,
|
|
676
|
-
return p.addEventListener(y,
|
|
675
|
+
function C(p, y, B, D) {
|
|
676
|
+
return p.addEventListener(y, B, D);
|
|
677
677
|
}
|
|
678
|
-
function i(p, y,
|
|
679
|
-
return p.attachEvent("on" + y, M(p, y,
|
|
678
|
+
function i(p, y, B) {
|
|
679
|
+
return p.attachEvent("on" + y, M(p, y, B));
|
|
680
680
|
}
|
|
681
|
-
function s(p, y,
|
|
682
|
-
return p.removeEventListener(y,
|
|
681
|
+
function s(p, y, B, D) {
|
|
682
|
+
return p.removeEventListener(y, B, D);
|
|
683
683
|
}
|
|
684
|
-
function d(p, y,
|
|
685
|
-
var
|
|
686
|
-
if (
|
|
687
|
-
return p.detachEvent("on" + y,
|
|
684
|
+
function d(p, y, B) {
|
|
685
|
+
var D = V(p, y, B);
|
|
686
|
+
if (D)
|
|
687
|
+
return p.detachEvent("on" + y, D);
|
|
688
688
|
}
|
|
689
|
-
function S(p, y,
|
|
690
|
-
var
|
|
691
|
-
p.dispatchEvent ? p.dispatchEvent(
|
|
689
|
+
function S(p, y, B) {
|
|
690
|
+
var D = f.indexOf(y) === -1 ? F() : x();
|
|
691
|
+
p.dispatchEvent ? p.dispatchEvent(D) : p.fireEvent("on" + y, D);
|
|
692
692
|
function x() {
|
|
693
693
|
var w;
|
|
694
694
|
return m.createEvent ? (w = m.createEvent("Event"), w.initEvent(y, !0, !0)) : m.createEventObject && (w = m.createEventObject()), w;
|
|
695
695
|
}
|
|
696
696
|
function F() {
|
|
697
|
-
return new a(y, { detail:
|
|
697
|
+
return new a(y, { detail: B });
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
function T(p, y,
|
|
700
|
+
function T(p, y, B) {
|
|
701
701
|
return function(x) {
|
|
702
702
|
var F = x || l.event;
|
|
703
703
|
F.target = F.target || F.srcElement, F.preventDefault = F.preventDefault || function() {
|
|
704
704
|
F.returnValue = !1;
|
|
705
705
|
}, F.stopPropagation = F.stopPropagation || function() {
|
|
706
706
|
F.cancelBubble = !0;
|
|
707
|
-
}, F.which = F.which || F.keyCode,
|
|
707
|
+
}, F.which = F.which || F.keyCode, B.call(p, F);
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
|
-
function M(p, y,
|
|
711
|
-
var
|
|
710
|
+
function M(p, y, B) {
|
|
711
|
+
var D = V(p, y, B) || T(p, y, B);
|
|
712
712
|
return c.push({
|
|
713
|
-
wrapper:
|
|
713
|
+
wrapper: D,
|
|
714
714
|
element: p,
|
|
715
715
|
type: y,
|
|
716
|
-
fn:
|
|
717
|
-
}),
|
|
716
|
+
fn: B
|
|
717
|
+
}), D;
|
|
718
718
|
}
|
|
719
|
-
function V(p, y,
|
|
720
|
-
var
|
|
721
|
-
if (
|
|
722
|
-
var x = c[
|
|
723
|
-
return c.splice(
|
|
719
|
+
function V(p, y, B) {
|
|
720
|
+
var D = b(p, y, B);
|
|
721
|
+
if (D) {
|
|
722
|
+
var x = c[D].wrapper;
|
|
723
|
+
return c.splice(D, 1), x;
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
function b(p, y,
|
|
727
|
-
var
|
|
728
|
-
for (
|
|
729
|
-
if (x = c[
|
|
730
|
-
return
|
|
726
|
+
function b(p, y, B) {
|
|
727
|
+
var D, x;
|
|
728
|
+
for (D = 0; D < c.length; D++)
|
|
729
|
+
if (x = c[D], x.element === p && x.type === y && x.fn === B)
|
|
730
|
+
return D;
|
|
731
731
|
}
|
|
732
732
|
}).call(this, typeof We < "u" ? We : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
733
733
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -906,9 +906,9 @@ var Do = { exports: {} };
|
|
|
906
906
|
}, { "process/browser.js": 9, timers: 11 }]
|
|
907
907
|
}, {}, [2])(2);
|
|
908
908
|
});
|
|
909
|
-
})(
|
|
910
|
-
var
|
|
911
|
-
const fn = /* @__PURE__ */ Ba
|
|
909
|
+
})(Bo);
|
|
910
|
+
var Ba = Bo.exports;
|
|
911
|
+
const fn = /* @__PURE__ */ Da(Ba), ka = {
|
|
912
912
|
showCloseButton: { type: Boolean, default: !0 },
|
|
913
913
|
position: { type: String, default: "top-center" },
|
|
914
914
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -941,10 +941,10 @@ const fn = /* @__PURE__ */ Ba(Da), ka = {
|
|
|
941
941
|
};
|
|
942
942
|
return b[e.animate] = !1, b[l] = f.value, b["toasty-type-" + a.value.type] = !0, a.value.theme && (b[a.value.theme] = !0), b;
|
|
943
943
|
}), c = _(() => {
|
|
944
|
-
const y = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`,
|
|
944
|
+
const y = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, B = {
|
|
945
945
|
"f-icon": !0
|
|
946
946
|
};
|
|
947
|
-
return
|
|
947
|
+
return B[y] = !0, B;
|
|
948
948
|
}), C = _(() => a.value.title || a.value.message), i = _(() => e.showCloseButton), s = _(() => !!a.value.buttons || !!t.slots.default), d = _(() => n.value === "en" ? {
|
|
949
949
|
wordBreak: "keep-all",
|
|
950
950
|
overflowWrap: "break-word"
|
|
@@ -1009,7 +1009,7 @@ const fn = /* @__PURE__ */ Ba(Da), ka = {
|
|
|
1009
1009
|
innerHTML: a.value.message
|
|
1010
1010
|
}, null))])])]);
|
|
1011
1011
|
}
|
|
1012
|
-
}),
|
|
1012
|
+
}), Bt = /* @__PURE__ */ xe({
|
|
1013
1013
|
name: "Notify",
|
|
1014
1014
|
props: ka,
|
|
1015
1015
|
emits: ["close", "empty"],
|
|
@@ -1058,8 +1058,8 @@ const fn = /* @__PURE__ */ Ba(Da), ka = {
|
|
|
1058
1058
|
});
|
|
1059
1059
|
class en {
|
|
1060
1060
|
constructor() {
|
|
1061
|
-
|
|
1062
|
-
|
|
1061
|
+
Be(this, "notifyRefs", []);
|
|
1062
|
+
Be(this, "globalConfig", Ye({}));
|
|
1063
1063
|
}
|
|
1064
1064
|
escapeAllHtml(t) {
|
|
1065
1065
|
if (typeof t != "string" || !t)
|
|
@@ -1102,7 +1102,7 @@ class en {
|
|
|
1102
1102
|
name: "fade",
|
|
1103
1103
|
appear: !0
|
|
1104
1104
|
}, {
|
|
1105
|
-
default: () => [h(
|
|
1105
|
+
default: () => [h(Bt, rt({
|
|
1106
1106
|
ref: f
|
|
1107
1107
|
}, r, {
|
|
1108
1108
|
onClose: m
|
|
@@ -1176,8 +1176,8 @@ class en {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
const Ea = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
1179
|
-
|
|
1180
|
-
e.component(
|
|
1179
|
+
Bt.install = (e) => {
|
|
1180
|
+
e.component(Bt.name, Bt), e.component(Yt.name, Yt);
|
|
1181
1181
|
const t = new en();
|
|
1182
1182
|
e.provide(Ea, t), e.provide("FNotifyService", t);
|
|
1183
1183
|
};
|
|
@@ -1350,10 +1350,10 @@ function Na(e, t, n, o, r, l, a, f, m, u, v, c, C, i, s, d, S) {
|
|
|
1350
1350
|
} = a, {
|
|
1351
1351
|
gridDataStyle: p,
|
|
1352
1352
|
leftFixedGridDataStyle: y,
|
|
1353
|
-
rightFixedGridDataStyle:
|
|
1353
|
+
rightFixedGridDataStyle: B
|
|
1354
1354
|
} = i, {
|
|
1355
|
-
renderDataRow:
|
|
1356
|
-
} = vr(e, t, M, S, f, m, u, v, c, C, i, s, d), x = [
|
|
1355
|
+
renderDataRow: D
|
|
1356
|
+
} = vr(e, t, M, S, f, m, u, v, c, C, i, s, d), x = [D];
|
|
1357
1357
|
function F(H, $) {
|
|
1358
1358
|
const J = T(H);
|
|
1359
1359
|
return S.value.filter((P) => P.visible !== !1).map((P, j) => x[P.type](P, J, $, j));
|
|
@@ -1382,7 +1382,7 @@ function Na(e, t, n, o, r, l, a, f, m, u, v, c, C, i, s, d, S) {
|
|
|
1382
1382
|
class: "fv-grid-content-right-fixed"
|
|
1383
1383
|
}, [h("div", {
|
|
1384
1384
|
class: "fv-grid-data",
|
|
1385
|
-
style:
|
|
1385
|
+
style: B.value
|
|
1386
1386
|
}, [F(M.value.rightColumns.filter((H) => H.visible), "right")])]);
|
|
1387
1387
|
}
|
|
1388
1388
|
function L() {
|
|
@@ -1407,22 +1407,22 @@ const Xt = /* @__PURE__ */ xe({
|
|
|
1407
1407
|
showLoading: b,
|
|
1408
1408
|
renderLoading: p
|
|
1409
1409
|
} = Cr(e, m), y = wr(e, /* @__PURE__ */ new Map(), T, M, a), {
|
|
1410
|
-
dataView:
|
|
1411
|
-
} = y,
|
|
1410
|
+
dataView: B
|
|
1411
|
+
} = y, D = Sr(e, y, a, i, t), {
|
|
1412
1412
|
showSelection: x,
|
|
1413
1413
|
selectedValues: F
|
|
1414
|
-
} =
|
|
1414
|
+
} = D, w = Tr(e, i, y, a, D, t), k = _(() => e.disabled), O = _(() => e.virtualized ? Math.min(y.dataView.value.length, r.value) : y.dataView.value.length), L = Fr(e, y), {
|
|
1415
1415
|
shouldRenderPagination: H
|
|
1416
1416
|
} = L, {
|
|
1417
1417
|
containerStyleObject: $
|
|
1418
|
-
} = xr(e), J =
|
|
1418
|
+
} = xr(e), J = Dr(e), {
|
|
1419
1419
|
applyCommands: P
|
|
1420
1420
|
} = J;
|
|
1421
1421
|
P(l);
|
|
1422
1422
|
const {
|
|
1423
1423
|
applyColumnSetting: j,
|
|
1424
1424
|
removeColumnSetting: I
|
|
1425
|
-
} =
|
|
1425
|
+
} = Br(e);
|
|
1426
1426
|
e.showSetting && j(l);
|
|
1427
1427
|
const N = kr(e, t), z = Mr(e), {
|
|
1428
1428
|
applyColumnSorter: oe,
|
|
@@ -1430,9 +1430,9 @@ const Xt = /* @__PURE__ */ xe({
|
|
|
1430
1430
|
updateColumnRenderContext: X
|
|
1431
1431
|
} = N;
|
|
1432
1432
|
oe(y, z);
|
|
1433
|
-
const pe = Er(e, le), ce = Ir(e, t,
|
|
1433
|
+
const pe = Er(e, le), ce = Ir(e, t, D, a), se = Or(e, t, a, ce, i), K = Nr(e), fe = Pr(e, se, K), Je = jr(e, y, se, M, a, K, fe), Ae = Lr(e, l, y, O, 0, Je), {
|
|
1434
1434
|
getVisualData: Ne
|
|
1435
|
-
} = Ae, st = Vr(e, le), Qe = $r(e,
|
|
1435
|
+
} = Ae, st = Vr(e, le), Qe = $r(e, D), {
|
|
1436
1436
|
sidebarWidth: Ze
|
|
1437
1437
|
} = Qe, be = Rr(e, y, i, le, Ae, O, 0, Ze), {
|
|
1438
1438
|
onWheel: ft,
|
|
@@ -1457,13 +1457,13 @@ const Xt = /* @__PURE__ */ xe({
|
|
|
1457
1457
|
"fv-grid-wrap-content": d.value
|
|
1458
1458
|
})), {
|
|
1459
1459
|
renderDataArea: ye
|
|
1460
|
-
} = Na(e, t, v, c, C, st, N, y, se, M, ce,
|
|
1460
|
+
} = Na(e, t, v, c, C, st, N, y, se, M, ce, D, w, be, Ae, K, i), {
|
|
1461
1461
|
renderGridHeader: Ue,
|
|
1462
1462
|
renderGridColumnResizeOverlay: mt,
|
|
1463
1463
|
shouldShowHeader: Pt
|
|
1464
|
-
} = qr(e, t, u, c, C, N, y, R, ct, T, qe, Ke, pe,
|
|
1464
|
+
} = qr(e, t, u, c, C, N, y, R, ct, T, qe, Ke, pe, D, Qe, z, be, He, i), {
|
|
1465
1465
|
renderDataGridSidebar: jt
|
|
1466
|
-
} = Ur(e, ce,
|
|
1466
|
+
} = Ur(e, ce, D, Qe, be), {
|
|
1467
1467
|
renderDisableMask: Lt
|
|
1468
1468
|
} = Gr(), {
|
|
1469
1469
|
renderHorizontalScrollbar: Vt
|
|
@@ -1492,7 +1492,7 @@ const Xt = /* @__PURE__ */ xe({
|
|
|
1492
1492
|
y.expandTo(Z), y.reOrderVisibleIndex(), _e();
|
|
1493
1493
|
}
|
|
1494
1494
|
function vt() {
|
|
1495
|
-
const Z =
|
|
1495
|
+
const Z = D.getSelectionRow();
|
|
1496
1496
|
return Z ? Z.dataIndex - 1 : -1;
|
|
1497
1497
|
}
|
|
1498
1498
|
function zt() {
|
|
@@ -1509,7 +1509,7 @@ const Xt = /* @__PURE__ */ xe({
|
|
|
1509
1509
|
}
|
|
1510
1510
|
function qt() {
|
|
1511
1511
|
const Z = vt(), ae = w.getNextSelectableHierarchyItemId(Z);
|
|
1512
|
-
y.removeHierarchyDataItem(Z), i.value = Ne(0, O.value + 0 - 1), ae &&
|
|
1512
|
+
y.removeHierarchyDataItem(Z), i.value = Ne(0, O.value + 0 - 1), ae && D.selectItemById(ae);
|
|
1513
1513
|
}
|
|
1514
1514
|
function Ft(Z) {
|
|
1515
1515
|
se.onEditingRow(Z);
|
|
@@ -1530,7 +1530,7 @@ const Xt = /* @__PURE__ */ xe({
|
|
|
1530
1530
|
Z && (y.load(Z), y.reOrderVisibleIndex(), ae != null && ae.keepScrollPosition ? be.scrollTo(be.offsetY.value) : _e());
|
|
1531
1531
|
}
|
|
1532
1532
|
function re(Z) {
|
|
1533
|
-
|
|
1533
|
+
D.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 Xt = /* @__PURE__ */ xe({
|
|
|
1540
1540
|
ce.activeRowById(Z);
|
|
1541
1541
|
}
|
|
1542
1542
|
function Oe(Z) {
|
|
1543
|
-
|
|
1543
|
+
D.selectItemByIds(Z);
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1546
|
-
return
|
|
1545
|
+
function De() {
|
|
1546
|
+
return D.getSelectedItems();
|
|
1547
1547
|
}
|
|
1548
1548
|
function ke() {
|
|
1549
|
-
|
|
1549
|
+
D.clearSelection();
|
|
1550
1550
|
}
|
|
1551
1551
|
const je = _(() => !i.value || !i.value.length), {
|
|
1552
1552
|
renderEmpty: Ce
|
|
1553
1553
|
} = Xr(e, t);
|
|
1554
1554
|
function Le() {
|
|
1555
|
-
return
|
|
1555
|
+
return D.getSelectionRow();
|
|
1556
1556
|
}
|
|
1557
1557
|
function Me(Z) {
|
|
1558
|
-
|
|
1558
|
+
D.unSelectItemByIds(Z);
|
|
1559
1559
|
}
|
|
1560
1560
|
function Te() {
|
|
1561
|
-
return
|
|
1561
|
+
return D.currentSelectedDataId.value;
|
|
1562
1562
|
}
|
|
1563
1563
|
function gt(Z, ae, we) {
|
|
1564
|
-
const Fe =
|
|
1564
|
+
const Fe = B.value.find((Ee) => Ee[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]);
|
|
@@ -1612,7 +1612,7 @@ const Xt = /* @__PURE__ */ xe({
|
|
|
1612
1612
|
we && ce.selectRow(we);
|
|
1613
1613
|
}
|
|
1614
1614
|
function Zo() {
|
|
1615
|
-
|
|
1615
|
+
D.keepSelectingOnPaging.value || ke(), y.updateVisibleDataSummary(i.value);
|
|
1616
1616
|
}
|
|
1617
1617
|
t.expose({
|
|
1618
1618
|
activeRowById: de,
|
|
@@ -1629,7 +1629,7 @@ const Xt = /* @__PURE__ */ xe({
|
|
|
1629
1629
|
updateDataSource: Q,
|
|
1630
1630
|
selectItemById: re,
|
|
1631
1631
|
selectItemByIds: Oe,
|
|
1632
|
-
getSelectedItems:
|
|
1632
|
+
getSelectedItems: De,
|
|
1633
1633
|
clearSelection: ke,
|
|
1634
1634
|
getSelectionRow: Le,
|
|
1635
1635
|
clickRowItemById: ue,
|
|
@@ -1650,7 +1650,7 @@ const Xt = /* @__PURE__ */ xe({
|
|
|
1650
1650
|
...$.value,
|
|
1651
1651
|
borderRadius: "5px"
|
|
1652
1652
|
}));
|
|
1653
|
-
Jr(e, t, y, be, L,
|
|
1653
|
+
Jr(e, t, y, be, L, D);
|
|
1654
1654
|
const tr = _(() => ({
|
|
1655
1655
|
"d-flex": !0,
|
|
1656
1656
|
"justify-content-between": H.value && x.value,
|
|
@@ -1728,8 +1728,8 @@ function ko(e) {
|
|
|
1728
1728
|
let p = T.getComponentByViewModelId(V.id).componentType;
|
|
1729
1729
|
["frame", "table", "form"].includes(p) && (p = "form");
|
|
1730
1730
|
const y = M.getTableInfoByViewModelId(V.id);
|
|
1731
|
-
p !== S || !y || y.id !== d.id || V.fields.forEach((
|
|
1732
|
-
n.set(
|
|
1731
|
+
p !== S || !y || y.id !== d.id || V.fields.forEach((B) => {
|
|
1732
|
+
n.set(B.id, !0);
|
|
1733
1733
|
});
|
|
1734
1734
|
});
|
|
1735
1735
|
}
|
|
@@ -2245,14 +2245,14 @@ function Oo(e, t, n) {
|
|
|
2245
2245
|
}
|
|
2246
2246
|
function v(s, d, S, T, M, V = "", b = "") {
|
|
2247
2247
|
return Object.keys(s).map((y) => {
|
|
2248
|
-
const
|
|
2248
|
+
const B = g(1), D = y, x = s[y], F = Object.keys(x), w = x.title, k = x.type, O = r.get(k) || { type: "input-group", enableClear: !1 }, L = x.editor ? Object.assign({}, O, x.editor) : Object.assign({}, O), H = f(F, x, d), $ = m(F, x, d);
|
|
2249
2249
|
L.readonly = L.readonly === void 0 ? $() : L.readonly;
|
|
2250
2250
|
const J = x.type === "cascade" ? v(x.properties, d, S, T, M, V, b) : [], P = !0;
|
|
2251
2251
|
let j = u(x, b);
|
|
2252
2252
|
const I = _({
|
|
2253
2253
|
get() {
|
|
2254
|
-
if (
|
|
2255
|
-
if (["class", "style"].find((ce) => ce ===
|
|
2254
|
+
if (B.value) {
|
|
2255
|
+
if (["class", "style"].find((ce) => ce === D) && !j && (j = o.get("/converter/appearance.converter") || null), j && j.convertFrom)
|
|
2256
2256
|
return j.convertFrom(S, y, M, V);
|
|
2257
2257
|
const pe = S[y];
|
|
2258
2258
|
return Object.prototype.hasOwnProperty.call(x, "defaultValue") && (pe === void 0 || typeof pe == "string" && pe === "") ? x.type === "boolean" ? x.defaultValue : x.defaultValue || "" : pe;
|
|
@@ -2260,27 +2260,27 @@ function Oo(e, t, n) {
|
|
|
2260
2260
|
return null;
|
|
2261
2261
|
},
|
|
2262
2262
|
set(pe) {
|
|
2263
|
-
|
|
2263
|
+
B.value += 1, j && j.convertTo ? (j.convertTo(T, y, pe, M, V), j.convertTo(S, y, pe, M, V)) : (T[y] = pe, S[y] = pe);
|
|
2264
2264
|
}
|
|
2265
|
-
}), { refreshPanelAfterChanged: N, description: z, isExpand: oe, parentPropertyID: le } = x, X = { propertyID:
|
|
2266
|
-
return d[
|
|
2265
|
+
}), { refreshPanelAfterChanged: N, description: z, isExpand: oe, parentPropertyID: le } = x, X = { propertyID: D, propertyName: w, propertyType: k, propertyValue: I, editor: L, visible: H, readonly: $, cascadeConfig: J, hideCascadeTitle: P, refreshPanelAfterChanged: N, description: z, isExpand: oe, parentPropertyID: le };
|
|
2266
|
+
return d[D] = X, X;
|
|
2267
2267
|
});
|
|
2268
2268
|
}
|
|
2269
2269
|
function c(s, d, S = {}) {
|
|
2270
2270
|
const T = {}, M = e[s];
|
|
2271
2271
|
return M && M.categories ? Object.keys(M.categories).map((b) => {
|
|
2272
|
-
const p = M.categories[b], y = p == null ? void 0 : p.title,
|
|
2273
|
-
return { categoryId: b, categoryName: y, properties:
|
|
2272
|
+
const p = M.categories[b], y = p == null ? void 0 : p.title, B = v(p.properties || {}, T, {}, S, d);
|
|
2273
|
+
return { categoryId: b, categoryName: y, properties: B };
|
|
2274
2274
|
}) : [];
|
|
2275
2275
|
}
|
|
2276
2276
|
function C(s, d, S, T, M = "") {
|
|
2277
|
-
const V = d.$ref.schema, b = d.$ref.converter, p = S[V], y = p.type,
|
|
2277
|
+
const V = d.$ref.schema, b = d.$ref.converter, p = S[V], y = p.type, B = n(p), D = {}, x = e[y];
|
|
2278
2278
|
if (x && x.categories) {
|
|
2279
2279
|
const F = x.categories[s], w = F == null ? void 0 : F.title;
|
|
2280
2280
|
b && Object.keys(F.properties).forEach((L) => {
|
|
2281
2281
|
F.properties[L].$converter = b;
|
|
2282
2282
|
});
|
|
2283
|
-
const k = (F == null ? void 0 : F.properties) || {}, O = v(k,
|
|
2283
|
+
const k = (F == null ? void 0 : F.properties) || {}, O = v(k, D, B, p, T, M);
|
|
2284
2284
|
return { categoryId: s, categoryName: w, properties: O };
|
|
2285
2285
|
}
|
|
2286
2286
|
return { categoryId: s, categoryName: "", properties: [] };
|
|
@@ -2289,16 +2289,16 @@ function Oo(e, t, n) {
|
|
|
2289
2289
|
const V = s.type, b = n(s), p = {};
|
|
2290
2290
|
let y = M || e[V];
|
|
2291
2291
|
if (y && Object.keys(y).length === 0 && S && S.getPropConfig && (y = S.getPropConfig(T)), y && y.categories) {
|
|
2292
|
-
const
|
|
2293
|
-
return Object.keys(y.categories).map((
|
|
2294
|
-
const x = y.categories[
|
|
2292
|
+
const B = [];
|
|
2293
|
+
return Object.keys(y.categories).map((D) => {
|
|
2294
|
+
const x = y.categories[D];
|
|
2295
2295
|
if (x.$ref) {
|
|
2296
|
-
|
|
2296
|
+
B.push(C(D, x, s, d, T));
|
|
2297
2297
|
return;
|
|
2298
2298
|
}
|
|
2299
2299
|
const F = x == null ? void 0 : x.title, w = x == null ? void 0 : x.tabId, k = x == null ? void 0 : x.tabName, O = x == null ? void 0 : x.hide, L = x == null ? void 0 : x.hideTitle, H = v(x.properties || {}, p, b, s, d, T, x.$converter), { setPropertyRelates: $ } = x, J = x == null ? void 0 : x.parentPropertyID;
|
|
2300
|
-
|
|
2301
|
-
}),
|
|
2300
|
+
B.push({ categoryId: D, categoryName: F, tabId: w, tabName: k, hide: O, properties: H, hideTitle: L, setPropertyRelates: $, parentPropertyID: J });
|
|
2301
|
+
}), B;
|
|
2302
2302
|
}
|
|
2303
2303
|
return [];
|
|
2304
2304
|
}
|
|
@@ -2654,11 +2654,11 @@ function Fi(e, t, n) {
|
|
|
2654
2654
|
});
|
|
2655
2655
|
});
|
|
2656
2656
|
}
|
|
2657
|
-
function
|
|
2657
|
+
function B() {
|
|
2658
2658
|
if (n && n.getCustomButtons)
|
|
2659
2659
|
return n.getCustomButtons();
|
|
2660
2660
|
}
|
|
2661
|
-
function
|
|
2661
|
+
function D(k) {
|
|
2662
2662
|
var L, H;
|
|
2663
2663
|
if (!((L = t == null ? void 0 : t.schema) != null && L.id))
|
|
2664
2664
|
return;
|
|
@@ -2681,7 +2681,7 @@ function Fi(e, t, n) {
|
|
|
2681
2681
|
function x(k) {
|
|
2682
2682
|
var $;
|
|
2683
2683
|
const { changeObject: O } = k, { propertyID: L, propertyValue: H } = O;
|
|
2684
|
-
if (["text", "title", "label", "name", "mainTitle"].includes(($ = k == null ? void 0 : k.changeObject) == null ? void 0 : $.propertyID) && L && H && (
|
|
2684
|
+
if (["text", "title", "label", "name", "mainTitle"].includes(($ = k == null ? void 0 : k.changeObject) == null ? void 0 : $.propertyID) && L && H && (D(), a)) {
|
|
2685
2685
|
const J = a.getControlBasicInfoMap(), P = J.keys().toArray().filter((j) => {
|
|
2686
2686
|
var I, N;
|
|
2687
2687
|
return ((I = J.get(j)) == null ? void 0 : I.reliedComponentId) === ((N = t == null ? void 0 : t.schema) == null ? void 0 : N.id);
|
|
@@ -2719,9 +2719,9 @@ function Fi(e, t, n) {
|
|
|
2719
2719
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || g(!1),
|
|
2720
2720
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || g(!1),
|
|
2721
2721
|
onRemoveComponent: y,
|
|
2722
|
-
getCustomButtons:
|
|
2722
|
+
getCustomButtons: B,
|
|
2723
2723
|
onPropertyChanged: F,
|
|
2724
|
-
setComponentBasicInfoMap:
|
|
2724
|
+
setComponentBasicInfoMap: D,
|
|
2725
2725
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
2726
2726
|
}, l;
|
|
2727
2727
|
}
|
|
@@ -2803,11 +2803,11 @@ const xi = /* @__PURE__ */ xe({
|
|
|
2803
2803
|
function y(x, F) {
|
|
2804
2804
|
return F !== l.value.length - 1;
|
|
2805
2805
|
}
|
|
2806
|
-
const
|
|
2806
|
+
const B = _(() => ({
|
|
2807
2807
|
triangle: !0,
|
|
2808
2808
|
"": n.value === "vertical"
|
|
2809
2809
|
}));
|
|
2810
|
-
function
|
|
2810
|
+
function D() {
|
|
2811
2811
|
return l.value.map((x, F) => h("li", {
|
|
2812
2812
|
class: s(x, F),
|
|
2813
2813
|
onClick: (w) => void 0
|
|
@@ -2818,7 +2818,7 @@ const xi = /* @__PURE__ */ xe({
|
|
|
2818
2818
|
}, [M(x, F), b(x, F)]), y(x, F) && h("div", {
|
|
2819
2819
|
class: p(x, F)
|
|
2820
2820
|
}, [h("span", {
|
|
2821
|
-
class:
|
|
2821
|
+
class: B.value
|
|
2822
2822
|
}, null)])])]));
|
|
2823
2823
|
}
|
|
2824
2824
|
return () => h("div", {
|
|
@@ -2827,7 +2827,7 @@ const xi = /* @__PURE__ */ xe({
|
|
|
2827
2827
|
}, [h("ul", {
|
|
2828
2828
|
class: C.value,
|
|
2829
2829
|
style: i.value
|
|
2830
|
-
}, [
|
|
2830
|
+
}, [D()])]);
|
|
2831
2831
|
}
|
|
2832
2832
|
});
|
|
2833
2833
|
at.install = (e) => {
|
|
@@ -2841,12 +2841,12 @@ at.registerDesigner = (e, t, n) => {
|
|
|
2841
2841
|
};
|
|
2842
2842
|
const nn = /* @__PURE__ */ new Map([
|
|
2843
2843
|
["appearance", Ro]
|
|
2844
|
-
]),
|
|
2844
|
+
]), Di = /* @__PURE__ */ new Map([]), Bi = "root-viewmodel";
|
|
2845
2845
|
class ki {
|
|
2846
2846
|
constructor(t, n) {
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2847
|
+
Be(this, "formSchemaUtils");
|
|
2848
|
+
Be(this, "controlCreatorUtils");
|
|
2849
|
+
Be(this, "designViewModelUtils");
|
|
2850
2850
|
this.resolver = t, this.designerHostService = n, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.controlCreatorUtils = this.designerHostService.controlCreatorUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils;
|
|
2851
2851
|
}
|
|
2852
2852
|
createComponent(t) {
|
|
@@ -2938,7 +2938,7 @@ class ki {
|
|
|
2938
2938
|
code: `${t.componentId}-component-viewmodel`,
|
|
2939
2939
|
name: t.componentName,
|
|
2940
2940
|
bindTo: t.bindTo,
|
|
2941
|
-
parent:
|
|
2941
|
+
parent: Bi,
|
|
2942
2942
|
fields: this.assembleViewModelFields(t),
|
|
2943
2943
|
commands: [],
|
|
2944
2944
|
states: [],
|
|
@@ -3143,7 +3143,7 @@ const Ai = "https://json-schema.org/draft/2020-12/schema", zi = "https://farris-
|
|
|
3143
3143
|
editor: { type: Object, default: {} },
|
|
3144
3144
|
label: { type: String, default: "" },
|
|
3145
3145
|
/** value is uncertain because type is uncertain, default value should not be set */
|
|
3146
|
-
modelValue: { type:
|
|
3146
|
+
modelValue: { type: Object },
|
|
3147
3147
|
// readonly: { type: Boolean, default: false },
|
|
3148
3148
|
visible: { type: Boolean, default: !0 },
|
|
3149
3149
|
required: { type: Boolean, default: !1 },
|
|
@@ -3334,7 +3334,7 @@ const Yi = {
|
|
|
3334
3334
|
}), U = {}, G = {}, W = {}, Y = {};
|
|
3335
3335
|
let pn = !1;
|
|
3336
3336
|
function Ji() {
|
|
3337
|
-
pn || (pn = !0, Fn.register(U, G, W, Y), Tn.register(U, G, W, Y), xn.register(U, G, W, Y),
|
|
3337
|
+
pn || (pn = !0, Fn.register(U, G, W, Y), Tn.register(U, G, W, Y), xn.register(U, G, W, Y), Dn.register(U, G, W, Y), Bn.register(U, G, W, Y), kn.register(U, G, W, Y), Wt.register(U, G, W, Y), Mt.register(U, G, W, Y), Wt.register(U, G, W, Y), Mt.register(U, G, W, Y), Mn.register(U, G, W, Y), oa.register(U, G, W, Y), En.register(U, G, W, Y), On.register(U, G, W, Y), In.register(U, G, W, Y), Nn.register(U, G, W, Y), Pn.register(U, G, W, Y), jn.register(U, G, W, Y), Ln.register(U, G, W, Y), ra.register(U, G, W, Y), ga.register(U, G, W, Y), Vn.register(U, G, W, Y), aa.register(U, G, W, Y), da.register(U, G, W, Y), $n.register(U, G, W, Y), Rn.register(U, G, W, Y), An.register(U, G, W, Y), Hn.register(U, G, W, Y), zn.register(U, G, W, Y), _n.register(U, G, W, Y), sa.register(U, G, W, Y), qn.register(U, G, W, Y), Un.register(U, G, W, Y), Gn.register(U, G, W, Y), Wn.register(U, G, W, Y), Yn.register(U, G, W, Y), Xn.register(U, G, W, Y), Jn.register(U, G, W, Y), Qn.register(U, G, W, Y), Zn.register(U, G, W, Y), Kn.register(U, G, W, Y), eo.register(U, G, W, Y), no.register(U, G, W, Y), oo.register(U, G, W, Y), to.register(U, G, W, Y), ca.register(U, G, W), ro.register(U, G, W, Y), ao.register(U, G, W, Y), io.register(U, G, W, Y), lo.register(U, G, W, Y), so.register(U, G, W, Y), co.register(U, G, W, Y), fa.register(U, G, W, Y), uo.register(U, G, W, Y), fo.register(U, G, W, Y), po.register(U, G, W, Y), mo.register(U, G, W, Y), vo.register(U, G, W, Y), go.register(U, G, W, Y), yo.register(U, G, W, Y), ho.register(U, G, W, Y), bo.register(U, G, W, Y), Co.register(U, G, W, Y), wo.register(U, G, W, Y), ia.register(U, G, W, Y), ua.register(U, G, W, Y), So.register(U, G, W, Y), pa.register(U, G, W, Y), To.register(U, G, W, Y), ma.register(U, G, W, Y), va.register(U, G, W, Y), ha.register(U, G, W, Y), Fo.register(U, G, W, Y), ya.register(U, G, W, Y), ba.register(U, G, W, Y), xo.register(U, G, W, Y), Do.register(U, G, W, Y));
|
|
3338
3338
|
}
|
|
3339
3339
|
function Qi() {
|
|
3340
3340
|
Ji();
|
|
@@ -3483,8 +3483,8 @@ const Zi = {
|
|
|
3483
3483
|
props: Ho,
|
|
3484
3484
|
emits: ["change", "update:modelValue"],
|
|
3485
3485
|
setup(e, t) {
|
|
3486
|
-
var
|
|
3487
|
-
const n = g(e.id), o = g(e.customClass), r = g(e.editor), l = g(e.label), a = g(e.modelValue), f = g(e.readonly), m = g(((
|
|
3486
|
+
var B;
|
|
3487
|
+
const n = g(e.id), o = g(e.customClass), r = g(e.editor), l = g(e.label), a = g(e.modelValue), f = g(e.readonly), m = g(((B = e.editor) == null ? void 0 : B.required) || e.required), u = g(e.showLabel), v = g(e.visible);
|
|
3488
3488
|
g(e.type);
|
|
3489
3489
|
const c = g(), C = g(e.errors), i = _(() => u.value ? e.showLabelType : "none"), {
|
|
3490
3490
|
resolveEditorProps: s,
|
|
@@ -3497,9 +3497,9 @@ const Zi = {
|
|
|
3497
3497
|
"common-group": !0,
|
|
3498
3498
|
"q-state-readonly": f.value
|
|
3499
3499
|
}));
|
|
3500
|
-
function V(
|
|
3501
|
-
a.value = x !== void 0 ? x :
|
|
3502
|
-
newValue:
|
|
3500
|
+
function V(D, x, F) {
|
|
3501
|
+
a.value = x !== void 0 ? x : D, t.emit("update:modelValue", a.value), t.emit("change", a.value, {
|
|
3502
|
+
newValue: D,
|
|
3503
3503
|
newModelValue: x,
|
|
3504
3504
|
parameters: F
|
|
3505
3505
|
});
|
|
@@ -3508,8 +3508,8 @@ const Zi = {
|
|
|
3508
3508
|
t.emit("update:modelValue", "");
|
|
3509
3509
|
}
|
|
3510
3510
|
const p = _(() => {
|
|
3511
|
-
const
|
|
3512
|
-
return k && (F[k] = b), F[w] = V, (F.id == null || F.id === "") && (F.id = n.value),
|
|
3511
|
+
const D = r.value.type || "input-group", x = d(D), F = s(D, r.value), w = S(D), k = T(r.value.type);
|
|
3512
|
+
return k && (F[k] = b), F[w] = V, (F.id == null || F.id === "") && (F.id = n.value), D === "number-range" && r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" ? (r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" && (F.onBeginValueChange = r.value.onBeginValueChange), r.value.onEndValueChange && typeof r.value.onEndValueChange == "function" && (F.onEndValueChange = r.value.onEndValueChange)) : D === "lookup" && r.value["onUpdate:idValue"] && typeof r.value["onUpdate:idValue"] == "function" ? (F["onUpdate:idValue"] = r.value["onUpdate:idValue"], F.id = n.value) : D === "collection-property-editor" && r.value.onSelectionChange && typeof r.value.onSelectionChange == "function" ? F.onSelectionChange = r.value.onSelectionChange : D === "property-editor" && (F.onBeforeOpenVariables = r.value.onBeforeOpenVariables), () => h(x, rt({
|
|
3513
3513
|
ref: c
|
|
3514
3514
|
}, F, {
|
|
3515
3515
|
modelValue: a.value,
|
|
@@ -3522,9 +3522,9 @@ const Zi = {
|
|
|
3522
3522
|
errors: C.value
|
|
3523
3523
|
}, null);
|
|
3524
3524
|
}
|
|
3525
|
-
return ve([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([
|
|
3525
|
+
return ve([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([D, x, F, w, k, O, L, H, $, J]) => {
|
|
3526
3526
|
var P;
|
|
3527
|
-
n.value =
|
|
3527
|
+
n.value = D, o.value = x, r.value = F, l.value = w, a.value = k, f.value = O, m.value = ((P = r.value) == null ? void 0 : P.required) || L, u.value = H, v.value = $, C.value = J;
|
|
3528
3528
|
}), t.expose({
|
|
3529
3529
|
editorRef: c
|
|
3530
3530
|
}), () => v.value && h("div", {
|
|
@@ -3548,7 +3548,7 @@ const Zi = {
|
|
|
3548
3548
|
}), ee = {}, te = {}, ne = {};
|
|
3549
3549
|
let Et = !1;
|
|
3550
3550
|
function el() {
|
|
3551
|
-
Et || (Et = !0, Fn.registerDesigner(ee, te, ne), Tn.registerDesigner(ee, te, ne), xn.registerDesigner(ee, te, ne),
|
|
3551
|
+
Et || (Et = !0, Fn.registerDesigner(ee, te, ne), Tn.registerDesigner(ee, te, ne), xn.registerDesigner(ee, te, ne), Dn.registerDesigner(ee, te, ne), Bn.registerDesigner(ee, te, ne), kn.registerDesigner(ee, te, ne), Wt.registerDesigner(ee, te, ne), Mt.registerDesigner(ee, te, ne), Mt.registerDesigner(ee, te, ne), In.registerDesigner(ee, te, ne), Mn.registerDesigner(ee, te, ne), On.registerDesigner(ee, te, ne), Pn.registerDesigner(ee, te, ne), Nn.registerDesigner(ee, te, ne), jn.registerDesigner(ee, te, ne), Ln.registerDesigner(ee, te, ne), xo.registerDesigner(ee, te, ne), Vn.registerDesigner(ee, te, ne), $n.registerDesigner(ee, te, ne), Rn.registerDesigner(ee, te, ne), An.registerDesigner(ee, te, ne), Hn.registerDesigner(ee, te, ne), zn.registerDesigner(ee, te, ne), qn.registerDesigner(ee, te, ne), _n.registerDesigner(ee, te, ne), Do.registerDesigner(ee, te, ne), Un.registerDesigner(ee, te, ne), Gn.registerDesigner(ee, te, ne), Wn.registerDesigner(ee, te, ne), Yn.registerDesigner(ee, te, ne), Xn.registerDesigner(ee, te, ne), Jn.registerDesigner(ee, te, ne), Qn.registerDesigner(ee, te, ne), Zn.registerDesigner(ee, te, ne), Kn.registerDesigner(ee, te, ne), no.registerDesigner(ee, te, ne), oo.registerDesigner(ee, te, ne), to.registerDesigner(ee, te, ne), eo.registerDesigner(ee, te, ne), ro.registerDesigner(ee, te, ne), ao.registerDesigner(ee, te, ne), io.registerDesigner(ee, te, ne), lo.registerDesigner(ee, te, ne), so.registerDesigner(ee, te, ne), co.registerDesigner(ee, te, ne), uo.registerDesigner(ee, te, ne), fo.registerDesigner(ee, te, ne), po.registerDesigner(ee, te, ne), mo.registerDesigner(ee, te, ne), vo.registerDesigner(ee, te, ne), go.registerDesigner(ee, te, ne), ho.registerDesigner(ee, te, ne), yo.registerDesigner(ee, te, ne), En.registerDesigner(ee, te), bo.registerDesigner(ee, te, ne), Co.registerDesigner(ee, te, ne), wo.registerDesigner(ee, te, ne), So.registerDesigner(ee, te, ne), To.registerDesigner(ee, te, ne), Fo.registerDesigner(ee, te, ne));
|
|
3552
3552
|
}
|
|
3553
3553
|
function tl(e) {
|
|
3554
3554
|
if (Et)
|
|
@@ -3602,7 +3602,7 @@ const ut = class ut {
|
|
|
3602
3602
|
/**
|
|
3603
3603
|
* <字段类型,可配置的控件类型列表>的映射
|
|
3604
3604
|
*/
|
|
3605
|
-
|
|
3605
|
+
Be(ut, "fieldControlTypeMapping", {
|
|
3606
3606
|
String: [
|
|
3607
3607
|
{ key: A["input-group"].type, value: A["input-group"].name },
|
|
3608
3608
|
{ key: A.lookup.type, value: A.lookup.name },
|
|
@@ -3711,7 +3711,7 @@ const ol = "https://json-schema.org/draft/2020-12/schema", rl = "https://farris-
|
|
|
3711
3711
|
}
|
|
3712
3712
|
}
|
|
3713
3713
|
};
|
|
3714
|
-
Sn(dl, ul,
|
|
3714
|
+
Sn(dl, ul, Di, Ei);
|
|
3715
3715
|
const fl = {
|
|
3716
3716
|
width: { Type: Number, default: 400 },
|
|
3717
3717
|
type: { Type: String, default: "info" },
|
|
@@ -3967,7 +3967,7 @@ function xl(e, t, n, o, r) {
|
|
|
3967
3967
|
class: M.iconClass
|
|
3968
3968
|
}, null), M.text]))]);
|
|
3969
3969
|
}
|
|
3970
|
-
function
|
|
3970
|
+
function Dl(e) {
|
|
3971
3971
|
const { t, locale: n } = Zt();
|
|
3972
3972
|
function o(r, l, a) {
|
|
3973
3973
|
return l === a ? t(r) : l;
|
|
@@ -3998,7 +3998,7 @@ const kt = /* @__PURE__ */ xe({
|
|
|
3998
3998
|
props: fl,
|
|
3999
3999
|
emits: ["accept", "reject", "close"],
|
|
4000
4000
|
setup(e, t) {
|
|
4001
|
-
const n =
|
|
4001
|
+
const n = Dl(e), o = g(e.type), r = g(e.title), l = g(e.detail), a = _(() => {
|
|
4002
4002
|
const T = {
|
|
4003
4003
|
"modal-tips": !0,
|
|
4004
4004
|
"d-flex": !0,
|
|
@@ -4039,7 +4039,7 @@ const kt = /* @__PURE__ */ xe({
|
|
|
4039
4039
|
style: f.value
|
|
4040
4040
|
}, [d()]), S(), i()]);
|
|
4041
4041
|
}
|
|
4042
|
-
}),
|
|
4042
|
+
}), Bl = "https://json-schema.org/draft/2020-12/schema", kl = "https://farris-design.gitee.io/modal.schema.json", Ml = "modal", El = "弹窗组件", Il = "object", Ol = {
|
|
4043
4043
|
id: {
|
|
4044
4044
|
description: "组件唯一标识",
|
|
4045
4045
|
type: "string"
|
|
@@ -4154,7 +4154,7 @@ const kt = /* @__PURE__ */ xe({
|
|
|
4154
4154
|
onCancel: "取消事件",
|
|
4155
4155
|
beforeClose: "关闭前回调"
|
|
4156
4156
|
}, jl = {
|
|
4157
|
-
$schema:
|
|
4157
|
+
$schema: Bl,
|
|
4158
4158
|
$id: kl,
|
|
4159
4159
|
title: Ml,
|
|
4160
4160
|
description: El,
|
|
@@ -4391,13 +4391,13 @@ function zl(e, t) {
|
|
|
4391
4391
|
const j = P.x, I = P.y;
|
|
4392
4392
|
u.value.n ? (m.value.y = a.value.y + I, f.value.height = l.value.height - I) : u.value.s && (f.value.height = l.value.height + I), u.value.e ? f.value.width = l.value.width + j : u.value.w && (f.value.width = l.value.width - j, m.value.x = a.value.x + j), p(), b(), V();
|
|
4393
4393
|
}
|
|
4394
|
-
function
|
|
4394
|
+
function B(P) {
|
|
4395
4395
|
if (!v.value)
|
|
4396
4396
|
return;
|
|
4397
4397
|
const j = ge.fromEvent(P);
|
|
4398
4398
|
j && y(j);
|
|
4399
4399
|
}
|
|
4400
|
-
function
|
|
4400
|
+
function D() {
|
|
4401
4401
|
if (n.value) {
|
|
4402
4402
|
const {
|
|
4403
4403
|
width: P,
|
|
@@ -4420,13 +4420,13 @@ function zl(e, t) {
|
|
|
4420
4420
|
}
|
|
4421
4421
|
function x(P) {
|
|
4422
4422
|
if (n.value) {
|
|
4423
|
-
const j =
|
|
4423
|
+
const j = D();
|
|
4424
4424
|
C.value = j;
|
|
4425
4425
|
}
|
|
4426
|
-
r.value = void 0, l.value = null, a.value = null, f.value = null, m.value = null, u.value = null, v.value = null, document.removeEventListener("mousemove",
|
|
4426
|
+
r.value = void 0, l.value = null, a.value = null, f.value = null, m.value = null, u.value = null, v.value = null, document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", x);
|
|
4427
4427
|
}
|
|
4428
4428
|
function F() {
|
|
4429
|
-
document.addEventListener("mousemove",
|
|
4429
|
+
document.addEventListener("mousemove", B), document.addEventListener("mouseup", x);
|
|
4430
4430
|
}
|
|
4431
4431
|
function w(P) {
|
|
4432
4432
|
P instanceof MouseEvent && P.button === 2 || d.value && (document.body.click(), P.stopPropagation(), P.preventDefault(), r.value = ge.fromEvent(P), v.value = P.target, M(P), F());
|
|
@@ -4469,7 +4469,7 @@ function zl(e, t) {
|
|
|
4469
4469
|
function O(P = !0) {
|
|
4470
4470
|
document.body.click();
|
|
4471
4471
|
const j = o.value || document.body, I = ot.getCurrent(j), N = n.value;
|
|
4472
|
-
P && N && (s.value =
|
|
4472
|
+
P && N && (s.value = D(), s.value.transform = N.style.transform), I && N && (f.value = I, f.value.height -= 14, f.value.width -= 14, N.style.height = f.value.height + "px", N.style.width = f.value.width + "px", N.style.left = "7px", N.style.top = "7px", N.style.transform = "", C.value = {
|
|
4473
4473
|
size: f.value,
|
|
4474
4474
|
position: {
|
|
4475
4475
|
x: 0,
|
|
@@ -4530,77 +4530,77 @@ function zl(e, t) {
|
|
|
4530
4530
|
}
|
|
4531
4531
|
function Hl(e, t, n) {
|
|
4532
4532
|
const o = g(), r = g(e.draggable), l = g(e.lockAxis), a = g(), f = g(), m = g(!1), u = g(new ge(0, 0)), v = g(new ge(0, 0)), c = g(new ge(0, 0)), C = g(new ge(0, 0));
|
|
4533
|
-
ve(() => n.value, (
|
|
4534
|
-
a.value.style.cursor =
|
|
4533
|
+
ve(() => n.value, (B) => {
|
|
4534
|
+
a.value.style.cursor = B ? "move" : "default";
|
|
4535
4535
|
});
|
|
4536
|
-
function i(
|
|
4537
|
-
if (
|
|
4536
|
+
function i(B, D) {
|
|
4537
|
+
if (D.tagName === "BUTTON")
|
|
4538
4538
|
return !1;
|
|
4539
|
-
if (
|
|
4539
|
+
if (D === B)
|
|
4540
4540
|
return !0;
|
|
4541
|
-
for (const x in
|
|
4542
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4541
|
+
for (const x in D.children)
|
|
4542
|
+
if (Object.prototype.hasOwnProperty.call(D.children, x) && i(B, D.children[x]))
|
|
4543
4543
|
return !0;
|
|
4544
4544
|
return !1;
|
|
4545
4545
|
}
|
|
4546
4546
|
function s() {
|
|
4547
4547
|
var F, w;
|
|
4548
|
-
let
|
|
4549
|
-
l.value === "x" ? (
|
|
4550
|
-
const x = `translate3d(${Math.round(
|
|
4551
|
-
o.value && (o.value.style.transform = x), C.value.x =
|
|
4548
|
+
let B = c.value.x + v.value.x, D = c.value.y + v.value.y;
|
|
4549
|
+
l.value === "x" ? (B = ((F = u.value) == null ? void 0 : F.x) || 0, c.value.x = 0) : l.value === "y" && (D = ((w = u.value) == null ? void 0 : w.y) || 0, c.value.y = 0);
|
|
4550
|
+
const x = `translate3d(${Math.round(B)}px, ${Math.round(D)}px, 0px)`;
|
|
4551
|
+
o.value && (o.value.style.transform = x), C.value.x = B, C.value.y = D;
|
|
4552
4552
|
}
|
|
4553
4553
|
function d() {
|
|
4554
4554
|
if (!f.value || !o.value)
|
|
4555
4555
|
return null;
|
|
4556
|
-
const
|
|
4557
|
-
top:
|
|
4558
|
-
right:
|
|
4559
|
-
bottom:
|
|
4560
|
-
left:
|
|
4556
|
+
const B = f.value.getBoundingClientRect(), D = o.value.getBoundingClientRect(), x = {
|
|
4557
|
+
top: B.top < D.top,
|
|
4558
|
+
right: B.right > D.right,
|
|
4559
|
+
bottom: B.bottom > D.bottom,
|
|
4560
|
+
left: B.left < D.left
|
|
4561
4561
|
};
|
|
4562
|
-
return x.top || (c.value.y -=
|
|
4562
|
+
return x.top || (c.value.y -= D.top - B.top), x.bottom || (c.value.y -= D.bottom - B.bottom), x.right || (c.value.x -= D.right - B.right), x.left || (c.value.x -= D.left - B.left), s(), x;
|
|
4563
4563
|
}
|
|
4564
|
-
function S(
|
|
4565
|
-
|
|
4564
|
+
function S(B) {
|
|
4565
|
+
B && (u.value && B.subtract(u.value), c.value.set(B), s(), d());
|
|
4566
4566
|
}
|
|
4567
|
-
function T(
|
|
4568
|
-
m.value && r.value && (
|
|
4567
|
+
function T(B) {
|
|
4568
|
+
m.value && r.value && (B.stopPropagation(), B.preventDefault(), S(ge.fromEvent(B, a.value)));
|
|
4569
4569
|
}
|
|
4570
4570
|
function M() {
|
|
4571
|
-
var
|
|
4572
|
-
m.value && (m.value = !1, v.value.add(c.value), c.value.reset(), (
|
|
4571
|
+
var B;
|
|
4572
|
+
m.value && (m.value = !1, v.value.add(c.value), c.value.reset(), (B = o.value) == null || B.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", M));
|
|
4573
4573
|
}
|
|
4574
4574
|
function V() {
|
|
4575
4575
|
!m.value && a.value && (m.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", T), document.addEventListener("mouseup", M));
|
|
4576
4576
|
}
|
|
4577
4577
|
function b() {
|
|
4578
4578
|
if (o.value) {
|
|
4579
|
-
const
|
|
4580
|
-
v.value.set(
|
|
4579
|
+
const B = ge.getTransformInfo(o.value);
|
|
4580
|
+
v.value.set(B);
|
|
4581
4581
|
return;
|
|
4582
4582
|
}
|
|
4583
4583
|
v.value.reset();
|
|
4584
4584
|
}
|
|
4585
|
-
function p(
|
|
4586
|
-
if (!n.value ||
|
|
4585
|
+
function p(B) {
|
|
4586
|
+
if (!n.value || B instanceof MouseEvent && B.button === 2)
|
|
4587
4587
|
return;
|
|
4588
|
-
const
|
|
4589
|
-
a.value !== void 0 &&
|
|
4588
|
+
const D = B.target || B.srcElement;
|
|
4589
|
+
a.value !== void 0 && D && !i(D, a.value) || r.value !== !1 && (document.body.click(), B.stopPropagation(), B.preventDefault(), u.value = ge.fromEvent(B, o.value), b(), V());
|
|
4590
4590
|
}
|
|
4591
|
-
function y(
|
|
4592
|
-
if (r.value &&
|
|
4593
|
-
if (
|
|
4594
|
-
a.value =
|
|
4591
|
+
function y(B, D, x) {
|
|
4592
|
+
if (r.value && D) {
|
|
4593
|
+
if (B)
|
|
4594
|
+
a.value = B;
|
|
4595
4595
|
else if (e.dragHandle) {
|
|
4596
4596
|
if (e.dragHandle instanceof HTMLElement)
|
|
4597
4597
|
a.value = e.dragHandle;
|
|
4598
4598
|
else if (typeof e.dragHandle == "string") {
|
|
4599
|
-
const F =
|
|
4599
|
+
const F = D.querySelector(e.dragHandle);
|
|
4600
4600
|
F && (a.value = F);
|
|
4601
4601
|
}
|
|
4602
4602
|
}
|
|
4603
|
-
o.value =
|
|
4603
|
+
o.value = D, f.value = x, a.value ? (a.value.classList.add("ng-draggable"), a.value.addEventListener("mousedown", p)) : r.value = !1;
|
|
4604
4604
|
}
|
|
4605
4605
|
}
|
|
4606
4606
|
return {
|
|
@@ -4657,7 +4657,7 @@ const it = /* @__PURE__ */ xe({
|
|
|
4657
4657
|
ye && (r.value = !1, t.emit("update:modelValue", !1), ie != null && t.emit(ie ? "accept" : "cancel"), t.emit("closed", R));
|
|
4658
4658
|
});
|
|
4659
4659
|
}
|
|
4660
|
-
const
|
|
4660
|
+
const B = [{
|
|
4661
4661
|
name: "cancel",
|
|
4662
4662
|
text: b("messageBox.cancel") || "取消",
|
|
4663
4663
|
class: "btn btn-secondary",
|
|
@@ -4671,7 +4671,7 @@ const it = /* @__PURE__ */ xe({
|
|
|
4671
4671
|
handle: (R) => {
|
|
4672
4672
|
y(R, !0);
|
|
4673
4673
|
}
|
|
4674
|
-
}],
|
|
4674
|
+
}], D = g(e.buttons && e.buttons.length ? e.buttons : B), x = _(() => !!u.value), F = _(() => !!S.value && !!D.value), w = g(), k = g(), O = g(!1), {
|
|
4675
4675
|
renderResizeBar: L,
|
|
4676
4676
|
maximize: H,
|
|
4677
4677
|
restore: $,
|
|
@@ -4777,7 +4777,7 @@ const it = /* @__PURE__ */ xe({
|
|
|
4777
4777
|
R.handle && await R.handle(ie, R) && t.emit("closed", ie);
|
|
4778
4778
|
}
|
|
4779
4779
|
function ft(R) {
|
|
4780
|
-
R.width && (n.value = R.width), R.height && (o.value = R.height), R.buttons && (
|
|
4780
|
+
R.width && (n.value = R.width), R.height && (o.value = R.height), R.buttons && (D.value = R.buttons), R.title && (T.value = R.title);
|
|
4781
4781
|
}
|
|
4782
4782
|
let Pe = null, ze = null;
|
|
4783
4783
|
bn(() => {
|
|
@@ -4816,7 +4816,7 @@ const it = /* @__PURE__ */ xe({
|
|
|
4816
4816
|
return h("div", {
|
|
4817
4817
|
class: "modal-footer",
|
|
4818
4818
|
style: Qe.value
|
|
4819
|
-
}, [
|
|
4819
|
+
}, [D.value && D.value.map((R) => {
|
|
4820
4820
|
const ie = g(R.disabled);
|
|
4821
4821
|
return h("button", {
|
|
4822
4822
|
name: R.name,
|
|
@@ -4949,12 +4949,12 @@ function Ul(e) {
|
|
|
4949
4949
|
}
|
|
4950
4950
|
class Wo {
|
|
4951
4951
|
constructor(t) {
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4952
|
+
Be(this, "appContext", null);
|
|
4953
|
+
Be(this, "modalRef", g());
|
|
4954
|
+
Be(this, "activeModalIndex", g(0));
|
|
4955
|
+
Be(this, "modalRefs", {});
|
|
4956
|
+
Be(this, "isUseEscCloseModal", g(!1));
|
|
4957
|
+
Be(this, "activeModalInstance", _(() => this.modalRefs[this.activeModalIndex.value]));
|
|
4958
4958
|
this.app = t, this.appContext = t ? t._context : null;
|
|
4959
4959
|
}
|
|
4960
4960
|
getCurrentModal() {
|
|
@@ -5000,14 +5000,14 @@ class Wo {
|
|
|
5000
5000
|
});
|
|
5001
5001
|
let v;
|
|
5002
5002
|
const c = Go(o.value), C = (p) => {
|
|
5003
|
-
var
|
|
5003
|
+
var B;
|
|
5004
5004
|
r.value = !1;
|
|
5005
|
-
const y = (
|
|
5005
|
+
const y = (B = p == null ? void 0 : p.target) == null ? void 0 : B.classList.contains("modal_close");
|
|
5006
5006
|
f(p, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
|
|
5007
5007
|
}, i = (p) => {
|
|
5008
5008
|
C(p), v && Qt(() => {
|
|
5009
5009
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Gt(null, n), v = null, this.modalRef.value = null, this.modalRefs) {
|
|
5010
|
-
const y = Object.keys(this.modalRefs).map((
|
|
5010
|
+
const y = Object.keys(this.modalRefs).map((B) => Number(B));
|
|
5011
5011
|
y.length > 0 ? this.activeModalIndex.value = Math.max(...y) : this.activeModalIndex.value = 0;
|
|
5012
5012
|
}
|
|
5013
5013
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -5159,7 +5159,7 @@ const Ve = class Ve {
|
|
|
5159
5159
|
Ve.show(l);
|
|
5160
5160
|
}
|
|
5161
5161
|
};
|
|
5162
|
-
|
|
5162
|
+
Be(Ve, "app", null);
|
|
5163
5163
|
let It = Ve;
|
|
5164
5164
|
kt.install = (e) => {
|
|
5165
5165
|
e.component(kt.name, kt), It.app = e, e.provide("FMessageBoxService", It);
|
|
@@ -5197,7 +5197,7 @@ const Gl = /* @__PURE__ */ xe({
|
|
|
5197
5197
|
}, {
|
|
5198
5198
|
name: "表格",
|
|
5199
5199
|
value: "data-grid"
|
|
5200
|
-
}], y = g(),
|
|
5200
|
+
}], y = g(), B = g(""), D = g([{
|
|
5201
5201
|
id: "selectComponentType",
|
|
5202
5202
|
title: "选择组件类型"
|
|
5203
5203
|
}, {
|
|
@@ -5212,20 +5212,20 @@ const Gl = /* @__PURE__ */ xe({
|
|
|
5212
5212
|
"mx-3": !0,
|
|
5213
5213
|
"my-2": !0,
|
|
5214
5214
|
"position-relative": !0,
|
|
5215
|
-
"d-none":
|
|
5215
|
+
"d-none": D.value[x.value].id !== z
|
|
5216
5216
|
}));
|
|
5217
5217
|
function k() {
|
|
5218
|
-
e.bindingEntityId && (u != null && u.value) && (
|
|
5218
|
+
e.bindingEntityId && (u != null && u.value) && (B.value = u.value.name), e.componentType || (y.value = v.value ? "response-form" : "data-grid");
|
|
5219
5219
|
}
|
|
5220
5220
|
function O() {
|
|
5221
5221
|
const z = a();
|
|
5222
5222
|
z && (i(z), d.value.updateDataSource(s.value));
|
|
5223
5223
|
}
|
|
5224
5224
|
bn(() => {
|
|
5225
|
-
e.steps && (
|
|
5225
|
+
e.steps && (D.value = D.value.filter((z) => e.steps.includes(z.id))), F.value = D.value[0].id, f(), k();
|
|
5226
5226
|
}), Re(() => {
|
|
5227
5227
|
var z, oe;
|
|
5228
|
-
r && ((z = u.value) != null && z.id) && r.value.selectItemById((oe = u.value) == null ? void 0 : oe.id),
|
|
5228
|
+
r && ((z = u.value) != null && z.id) && r.value.selectItemById((oe = u.value) == null ? void 0 : oe.id), D.value.length === 1 && D.value[0].id === "selectFields" && O();
|
|
5229
5229
|
});
|
|
5230
5230
|
function L(z) {
|
|
5231
5231
|
var oe;
|
|
@@ -5309,14 +5309,14 @@ const Gl = /* @__PURE__ */ xe({
|
|
|
5309
5309
|
}, null), h(mn, {
|
|
5310
5310
|
label: "组件标题",
|
|
5311
5311
|
customClass: "col-12",
|
|
5312
|
-
modelValue:
|
|
5313
|
-
"onUpdate:modelValue": (le) =>
|
|
5312
|
+
modelValue: B.value,
|
|
5313
|
+
"onUpdate:modelValue": (le) => B.value = le,
|
|
5314
5314
|
required: "true",
|
|
5315
5315
|
editor: oe
|
|
5316
5316
|
}, null)])])])])]);
|
|
5317
5317
|
}
|
|
5318
5318
|
function P() {
|
|
5319
|
-
x.value--, F.value =
|
|
5319
|
+
x.value--, F.value = D.value[x.value].id;
|
|
5320
5320
|
}
|
|
5321
5321
|
function j() {
|
|
5322
5322
|
var z;
|
|
@@ -5330,7 +5330,7 @@ const Gl = /* @__PURE__ */ xe({
|
|
|
5330
5330
|
b.warning("请先选择组件类型");
|
|
5331
5331
|
return;
|
|
5332
5332
|
}
|
|
5333
|
-
if (!((z =
|
|
5333
|
+
if (!((z = B.value) != null && z.trim())) {
|
|
5334
5334
|
b.warning("请先填写组件标题");
|
|
5335
5335
|
return;
|
|
5336
5336
|
}
|
|
@@ -5338,7 +5338,7 @@ const Gl = /* @__PURE__ */ xe({
|
|
|
5338
5338
|
break;
|
|
5339
5339
|
}
|
|
5340
5340
|
}
|
|
5341
|
-
x.value++, F.value =
|
|
5341
|
+
x.value++, F.value = D.value[x.value].id;
|
|
5342
5342
|
}
|
|
5343
5343
|
function I() {
|
|
5344
5344
|
t.emit("cancel");
|
|
@@ -5350,7 +5350,7 @@ const Gl = /* @__PURE__ */ xe({
|
|
|
5350
5350
|
const X = {
|
|
5351
5351
|
bindingType: "entity"
|
|
5352
5352
|
};
|
|
5353
|
-
X.bindingEntity = z, X.bindTo = n.entityBindToMap.get(((le = X.bindingEntity) == null ? void 0 : le.label) || ""), X.bindingEntityFields = oe, X.entityTitle =
|
|
5353
|
+
X.bindingEntity = z, X.bindTo = n.entityBindToMap.get(((le = X.bindingEntity) == null ? void 0 : le.label) || ""), X.bindingEntityFields = oe, X.entityTitle = B.value, t.emit("submit", {
|
|
5354
5354
|
bindingContext: X,
|
|
5355
5355
|
componentType: y.value
|
|
5356
5356
|
});
|
|
@@ -5360,8 +5360,8 @@ const Gl = /* @__PURE__ */ xe({
|
|
|
5360
5360
|
var z;
|
|
5361
5361
|
return h("div", {
|
|
5362
5362
|
class: "h-100 d-flex flex-column"
|
|
5363
|
-
}, [((z =
|
|
5364
|
-
steps:
|
|
5363
|
+
}, [((z = D.value) == null ? void 0 : z.length) > 1 ? h(at, {
|
|
5364
|
+
steps: D,
|
|
5365
5365
|
activeIndex: x,
|
|
5366
5366
|
style: "align-self:center"
|
|
5367
5367
|
}, null) : "", h("div", {
|
|
@@ -5381,10 +5381,10 @@ const Gl = /* @__PURE__ */ xe({
|
|
|
5381
5381
|
}, [Ie("取消")]), x.value !== 0 ? h("button", {
|
|
5382
5382
|
class: "btn btn-secondary",
|
|
5383
5383
|
onClick: P
|
|
5384
|
-
}, [Ie("上一步")]) : "", x.value !==
|
|
5384
|
+
}, [Ie("上一步")]) : "", x.value !== D.value.length - 1 ? h("button", {
|
|
5385
5385
|
class: "btn btn-primary",
|
|
5386
5386
|
onClick: j
|
|
5387
|
-
}, [Ie("下一步")]) : "", x.value ===
|
|
5387
|
+
}, [Ie("下一步")]) : "", x.value === D.value.length - 1 ? h("button", {
|
|
5388
5388
|
class: "btn btn-primary",
|
|
5389
5389
|
onClick: N
|
|
5390
5390
|
}, [Ie("确定")]) : ""])]);
|
|
@@ -5394,8 +5394,8 @@ const Gl = /* @__PURE__ */ xe({
|
|
|
5394
5394
|
function gn(e) {
|
|
5395
5395
|
let t, n;
|
|
5396
5396
|
function o(b, p, y) {
|
|
5397
|
-
var
|
|
5398
|
-
const
|
|
5397
|
+
var D;
|
|
5398
|
+
const B = {
|
|
5399
5399
|
componentType: b.getAttribute("data-controltype") || "",
|
|
5400
5400
|
componentFeature: b.getAttribute("data-feature") || "",
|
|
5401
5401
|
componentCategory: b.getAttribute("data-category") || "",
|
|
@@ -5408,15 +5408,15 @@ function gn(e) {
|
|
|
5408
5408
|
bindingSourceContext: null,
|
|
5409
5409
|
bindingTargetId: b.getAttribute("data-fieldId") || ""
|
|
5410
5410
|
};
|
|
5411
|
-
return b.componentInstance && (
|
|
5411
|
+
return b.componentInstance && (B.componentType = (D = b.componentInstance.value.schema) == null ? void 0 : D.type), B;
|
|
5412
5412
|
}
|
|
5413
5413
|
function r(b) {
|
|
5414
|
-
var
|
|
5414
|
+
var B, D;
|
|
5415
5415
|
const {
|
|
5416
5416
|
bindingContext: p,
|
|
5417
5417
|
componentType: y
|
|
5418
5418
|
} = b;
|
|
5419
|
-
n.bindingSourceContext = p, y && (n.componentType = y), (
|
|
5419
|
+
n.bindingSourceContext = p, y && (n.componentType = y), (B = t == null ? void 0 : t.modalRef) != null && B.value.close && ((D = t == null ? void 0 : t.modalRef) == null || D.value.close());
|
|
5420
5420
|
}
|
|
5421
5421
|
function l() {
|
|
5422
5422
|
var b, p;
|
|
@@ -5481,22 +5481,22 @@ function gn(e) {
|
|
|
5481
5481
|
selectedData: p,
|
|
5482
5482
|
bindingType: y
|
|
5483
5483
|
} = b, {
|
|
5484
|
-
groupId:
|
|
5485
|
-
groupName:
|
|
5484
|
+
groupId: B,
|
|
5485
|
+
groupName: D
|
|
5486
5486
|
} = u(n.parentComponentInstance), x = {
|
|
5487
5487
|
bindingType: "field"
|
|
5488
5488
|
};
|
|
5489
5489
|
if (y === "Form") {
|
|
5490
5490
|
const k = p;
|
|
5491
5491
|
x.entityFieldNode = k, x.designViewModelField = xt({}, k, {
|
|
5492
|
-
groupId:
|
|
5493
|
-
groupName:
|
|
5492
|
+
groupId: B,
|
|
5493
|
+
groupName: D
|
|
5494
5494
|
}), n.bindingSourceContext = x;
|
|
5495
5495
|
} else {
|
|
5496
5496
|
const k = p;
|
|
5497
5497
|
x.variableFieldNode = xt({}, k, {
|
|
5498
|
-
groupId:
|
|
5499
|
-
groupName:
|
|
5498
|
+
groupId: B,
|
|
5499
|
+
groupName: D
|
|
5500
5500
|
}), n.bindingSourceContext = x;
|
|
5501
5501
|
}
|
|
5502
5502
|
(F = t == null ? void 0 : t.modalRef) != null && F.value.close && ((w = t == null ? void 0 : t.modalRef) == null || w.value.close());
|
|
@@ -5517,13 +5517,13 @@ function gn(e) {
|
|
|
5517
5517
|
type: n.componentType
|
|
5518
5518
|
}
|
|
5519
5519
|
}
|
|
5520
|
-
},
|
|
5520
|
+
}, B = {
|
|
5521
5521
|
enable: !1
|
|
5522
5522
|
};
|
|
5523
5523
|
return () => h(lt, null, [h(la, {
|
|
5524
5524
|
editorParams: y,
|
|
5525
5525
|
showCustomFooter: !0,
|
|
5526
|
-
bindingType:
|
|
5526
|
+
bindingType: B,
|
|
5527
5527
|
onSubmit: v,
|
|
5528
5528
|
onCancel: m,
|
|
5529
5529
|
onSkip: c
|
|
@@ -5554,12 +5554,12 @@ function gn(e) {
|
|
|
5554
5554
|
function s() {
|
|
5555
5555
|
const {
|
|
5556
5556
|
formSchemaUtils: b
|
|
5557
|
-
} = e, p = n.parentComponentInstance.belongedComponentId, y = /* @__PURE__ */ new Set(),
|
|
5558
|
-
let F =
|
|
5559
|
-
return (F === "frame" || F === "table") && (F = "form"),
|
|
5557
|
+
} = e, p = n.parentComponentInstance.belongedComponentId, y = /* @__PURE__ */ new Set(), B = b.getFormSchema().module, D = B.components.find((w) => w.id === p), x = b.getViewModelById(D.viewModel);
|
|
5558
|
+
let F = D.componentType;
|
|
5559
|
+
return (F === "frame" || F === "table") && (F = "form"), B.viewmodels.forEach((w) => {
|
|
5560
5560
|
if (!w.fields || w.fields.length === 0)
|
|
5561
5561
|
return;
|
|
5562
|
-
const k =
|
|
5562
|
+
const k = B.components.find((L) => L.viewModel === w.id);
|
|
5563
5563
|
let {
|
|
5564
5564
|
componentType: O
|
|
5565
5565
|
} = k;
|
|
@@ -5578,24 +5578,24 @@ function gn(e) {
|
|
|
5578
5578
|
return;
|
|
5579
5579
|
}
|
|
5580
5580
|
if (s().has(b)) {
|
|
5581
|
-
const
|
|
5582
|
-
|
|
5581
|
+
const B = new Ca();
|
|
5582
|
+
B.globalConfig = {
|
|
5583
5583
|
position: "top-center"
|
|
5584
|
-
},
|
|
5584
|
+
}, B.warning("表单已经包含此字段,请勿重复添加"), n.bindingSourceContext = void 0;
|
|
5585
5585
|
return;
|
|
5586
5586
|
} else {
|
|
5587
|
-
const
|
|
5587
|
+
const B = {
|
|
5588
5588
|
bindingType: "field"
|
|
5589
|
-
},
|
|
5590
|
-
|
|
5589
|
+
}, D = e.formSchemaUtils.getComponentById(p.belongedComponentId), x = e.schemaService.getFieldByIDAndVMID(b, D.viewModel), F = xt({}, x.schemaField);
|
|
5590
|
+
B.entityFieldNode = F;
|
|
5591
5591
|
const {
|
|
5592
5592
|
groupId: w,
|
|
5593
5593
|
groupName: k
|
|
5594
5594
|
} = u(n.parentComponentInstance);
|
|
5595
|
-
|
|
5595
|
+
B.designViewModelField = xt({}, F, {
|
|
5596
5596
|
groupId: w,
|
|
5597
5597
|
groupName: k
|
|
5598
|
-
}), n.bindingSourceContext =
|
|
5598
|
+
}), n.bindingSourceContext = B;
|
|
5599
5599
|
}
|
|
5600
5600
|
}
|
|
5601
5601
|
function S() {
|
|
@@ -5875,7 +5875,7 @@ const Jt = /* @__PURE__ */ xe({
|
|
|
5875
5875
|
z.schema.contents.splice(ce, 1), Xe.value++, t.emit("selectionChange");
|
|
5876
5876
|
}
|
|
5877
5877
|
}
|
|
5878
|
-
function
|
|
5878
|
+
function B(I) {
|
|
5879
5879
|
return r.value && h("div", {
|
|
5880
5880
|
role: "button",
|
|
5881
5881
|
class: "btn component-settings-button",
|
|
@@ -5888,7 +5888,7 @@ const Jt = /* @__PURE__ */ xe({
|
|
|
5888
5888
|
class: "f-icon f-icon-yxs_delete"
|
|
5889
5889
|
}, null)]);
|
|
5890
5890
|
}
|
|
5891
|
-
function
|
|
5891
|
+
function D() {
|
|
5892
5892
|
return o.value && h("div", {
|
|
5893
5893
|
role: "button",
|
|
5894
5894
|
class: "btn component-settings-button",
|
|
@@ -5916,7 +5916,7 @@ const Jt = /* @__PURE__ */ xe({
|
|
|
5916
5916
|
return h("div", {
|
|
5917
5917
|
class: "component-btn-group",
|
|
5918
5918
|
"data-noattach": "true"
|
|
5919
|
-
}, [h("div", null, [
|
|
5919
|
+
}, [h("div", null, [B(I), D(), x()])]);
|
|
5920
5920
|
}
|
|
5921
5921
|
function w(I, N, z, oe) {
|
|
5922
5922
|
t.emit("selectionChange", I, N, z, oe);
|
|
@@ -6079,8 +6079,8 @@ const Jt = /* @__PURE__ */ xe({
|
|
|
6079
6079
|
});
|
|
6080
6080
|
}), v.observe(l.value);
|
|
6081
6081
|
}
|
|
6082
|
-
function M(p, y,
|
|
6083
|
-
t.emit("selectionChange", p, y,
|
|
6082
|
+
function M(p, y, B, D) {
|
|
6083
|
+
t.emit("selectionChange", p, y, B, D);
|
|
6084
6084
|
}
|
|
6085
6085
|
function V() {
|
|
6086
6086
|
t.emit("dragEnd");
|
|
@@ -6213,13 +6213,13 @@ function Kl(e, t, n) {
|
|
|
6213
6213
|
parentPathName: w
|
|
6214
6214
|
}));
|
|
6215
6215
|
}
|
|
6216
|
-
function
|
|
6216
|
+
function B(F) {
|
|
6217
6217
|
var L;
|
|
6218
6218
|
const { changeObject: w } = F, { propertyID: k, propertyValue: O } = w;
|
|
6219
6219
|
["text", "title", "label", "name", "mainTitle"].includes((L = F == null ? void 0 : F.changeObject) == null ? void 0 : L.propertyID) && k && O && y();
|
|
6220
6220
|
}
|
|
6221
|
-
function
|
|
6222
|
-
if (
|
|
6221
|
+
function D(F) {
|
|
6222
|
+
if (B(F), n && n.onPropertyChanged)
|
|
6223
6223
|
return n.onPropertyChanged(F);
|
|
6224
6224
|
}
|
|
6225
6225
|
return r.value = {
|
|
@@ -6245,7 +6245,7 @@ function Kl(e, t, n) {
|
|
|
6245
6245
|
onRemoveComponent: p,
|
|
6246
6246
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || g(!1),
|
|
6247
6247
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || g(!1),
|
|
6248
|
-
onPropertyChanged:
|
|
6248
|
+
onPropertyChanged: D,
|
|
6249
6249
|
getCustomButtons: i,
|
|
6250
6250
|
setComponentBasicInfoMap: y
|
|
6251
6251
|
}, r;
|
|
@@ -6315,7 +6315,7 @@ const Ac = /* @__PURE__ */ xe({
|
|
|
6315
6315
|
class: "f-icon f-icon-plus-circle"
|
|
6316
6316
|
}, null)]);
|
|
6317
6317
|
}
|
|
6318
|
-
function
|
|
6318
|
+
function B($) {
|
|
6319
6319
|
return r.value && h("div", {
|
|
6320
6320
|
role: "button",
|
|
6321
6321
|
class: "btn component-settings-button",
|
|
@@ -6326,7 +6326,7 @@ const Ac = /* @__PURE__ */ xe({
|
|
|
6326
6326
|
class: "f-icon f-icon-yxs_delete"
|
|
6327
6327
|
}, null)]);
|
|
6328
6328
|
}
|
|
6329
|
-
function
|
|
6329
|
+
function D() {
|
|
6330
6330
|
return n.value && h("div", {
|
|
6331
6331
|
role: "button",
|
|
6332
6332
|
class: "btn component-settings-button",
|
|
@@ -6356,7 +6356,7 @@ const Ac = /* @__PURE__ */ xe({
|
|
|
6356
6356
|
return h("div", {
|
|
6357
6357
|
class: "component-btn-group",
|
|
6358
6358
|
"data-noattach": "true"
|
|
6359
|
-
}, [h("div", null, [y(),
|
|
6359
|
+
}, [h("div", null, [y(), D(), B($), x()])]);
|
|
6360
6360
|
}
|
|
6361
6361
|
ve(() => e.modelValue, ($) => {
|
|
6362
6362
|
u.value = $, d.schema = $;
|