@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
|
@@ -8,7 +8,7 @@ import { useI18n as Yt } from "vue-i18n";
|
|
|
8
8
|
import { LocaleService as Et } from "../locale/index.esm.js";
|
|
9
9
|
import { getCustomClass as Ct, withInstall as ro, FormSchemaEntityField$Type as an, FormSchemaEntityFieldTypeName as sn } from "../common/index.esm.js";
|
|
10
10
|
import { useResizeObserver as ao } from "@vueuse/core";
|
|
11
|
-
import { getHierarchyRow as so, useIdentify as lo, useGroupData as co, useFilter as uo, useHierarchy as fo, useLoading as po, useDataView as mo, useSelection as vo, useSelectHierarchyItem as ho, usePagination as go, useDataViewContainerStyle as yo, useCommandColumn as bo, useSettingColumn as wo, useColumn as Co, useSort as So, useGroupColumn as To, useRow as Fo, useEdit as xo, useVisualDataBound as Mo, useVisualDataCell as Eo, useVisualDataRow as Bo, useVisualData as ko, useCellPosition as Io, useSidebar as Vo, useVirtualScroll as Oo, useFitColumn as
|
|
11
|
+
import { getHierarchyRow as so, useIdentify as lo, useGroupData as co, useFilter as uo, useHierarchy as fo, useLoading as po, useDataView as mo, useSelection as vo, useSelectHierarchyItem as ho, usePagination as go, useDataViewContainerStyle as yo, useCommandColumn as bo, useSettingColumn as wo, useColumn as Co, useSort as So, useGroupColumn as To, useRow as Fo, useEdit as xo, useVisualDataBound as Mo, useVisualDataCell as Eo, useVisualDataRow as Bo, useVisualData as ko, useCellPosition as Io, useSidebar as Vo, useVirtualScroll as Oo, useFitColumn as Po, useFilterHistory as No, useColumnFilter as Do, useDragColumn as Ro, getColumnHeader as jo, getSidebar as $o, getDisableMask as Lo, getHorizontalScrollbar as Ao, getVerticalScrollbar as Uo, getEmpty as zo, getPagination as qo, getSummary as Ho } from "../data-view/index.esm.js";
|
|
12
12
|
import { DgControl as rt } from "../designer-canvas/index.esm.js";
|
|
13
13
|
import { FormBindingType as Go } from "../property-panel/index.esm.js";
|
|
14
14
|
import _o from "../accordion/index.esm.js";
|
|
@@ -54,8 +54,8 @@ import ki from "../response-toolbar/index.esm.js";
|
|
|
54
54
|
import Ii from "../response-layout/index.esm.js";
|
|
55
55
|
import Vi from "../response-layout-editor/index.esm.js";
|
|
56
56
|
import Oi from "../search-box/index.esm.js";
|
|
57
|
-
import
|
|
58
|
-
import
|
|
57
|
+
import Pi from "../section/index.esm.js";
|
|
58
|
+
import Ni from "../smoke-detector/index.esm.js";
|
|
59
59
|
import Di from "../splitter/index.esm.js";
|
|
60
60
|
import Ri from "../step/index.esm.js";
|
|
61
61
|
import ji from "../switch/index.esm.js";
|
|
@@ -92,7 +92,7 @@ import "bignumber.js";
|
|
|
92
92
|
function yn(n, e) {
|
|
93
93
|
let t;
|
|
94
94
|
function o(d) {
|
|
95
|
-
const { properties: g, title: h, ignore: f } = d, p = f && Array.isArray(f), x = Object.keys(g).reduce((B, V) => ((!p || !f.find((
|
|
95
|
+
const { properties: g, title: h, ignore: f } = d, p = f && Array.isArray(f), x = Object.keys(g).reduce((B, V) => ((!p || !f.find((N) => N === V)) && (B[V] = g[V].type === "object" && g[V].properties ? o(g[V]) : De(g[V].default)), B), {});
|
|
96
96
|
if (h && (!p || !f.find((B) => B === "id"))) {
|
|
97
97
|
const B = h.toLowerCase().replace(/-/g, "_");
|
|
98
98
|
x.id = `${B}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -216,7 +216,7 @@ function hr(n = {}) {
|
|
|
216
216
|
return a(l).reduce((h, f) => h && r(f, u), !0);
|
|
217
217
|
}
|
|
218
218
|
function s(l, u) {
|
|
219
|
-
const d = Object.keys(l), g = d.includes("allOf"), h = d.includes("anyOf"), f = g || h, B = (f ? l[f ? g ? "allOf" : "anyOf" : "allOf"] : [l]).map((
|
|
219
|
+
const d = Object.keys(l), g = d.includes("allOf"), h = d.includes("anyOf"), f = g || h, B = (f ? l[f ? g ? "allOf" : "anyOf" : "allOf"] : [l]).map((N) => c(N, u));
|
|
220
220
|
return g ? !B.includes(!1) : B.includes(!0);
|
|
221
221
|
}
|
|
222
222
|
return { parseValueSchema: s };
|
|
@@ -413,12 +413,12 @@ const gr = {
|
|
|
413
413
|
convertTo: (n, e, t) => {
|
|
414
414
|
n[e] = t;
|
|
415
415
|
}
|
|
416
|
-
},
|
|
416
|
+
}, Pr = {
|
|
417
417
|
convertTo: (n, e, t, o) => {
|
|
418
418
|
n.size || (n.size = {}), n.size[e] = t;
|
|
419
419
|
},
|
|
420
420
|
convertFrom: (n, e, t) => n.size ? n.size[e] : n[e]
|
|
421
|
-
},
|
|
421
|
+
}, Nr = {
|
|
422
422
|
convertFrom: (n, e, t) => {
|
|
423
423
|
var o, i;
|
|
424
424
|
return (o = n.formatter) != null && o.data && e === "formatterEnumData" && !n.formatterEnumData ? (i = n.formatter) == null ? void 0 : i.data : n.formatterEnumData;
|
|
@@ -477,8 +477,8 @@ function wn(n, e, t) {
|
|
|
477
477
|
["/converter/pagination.converter", Br],
|
|
478
478
|
["/converter/row-number.converter", kr],
|
|
479
479
|
["/converter/grid-selection.converter", Ir],
|
|
480
|
-
["/converter/size.converter",
|
|
481
|
-
["/converter/change-formatter-enum.converter",
|
|
480
|
+
["/converter/size.converter", Pr],
|
|
481
|
+
["/converter/change-formatter-enum.converter", Nr],
|
|
482
482
|
["/converter/grid-sort.converter", Dr],
|
|
483
483
|
["/converter/grid-filter.converter", Rr],
|
|
484
484
|
["/converter/row-option.converter", jr]
|
|
@@ -520,26 +520,26 @@ function wn(n, e, t) {
|
|
|
520
520
|
const x = f.$converter || p;
|
|
521
521
|
return typeof x == "string" && x && o.has(x) ? o.get(x) || null : x || null;
|
|
522
522
|
}
|
|
523
|
-
function u(f, p, x, B, V,
|
|
523
|
+
function u(f, p, x, B, V, N = "", M = "") {
|
|
524
524
|
return Object.keys(f).map((S) => {
|
|
525
|
-
const O = T(1), m = S, y = f[S], C = Object.keys(y), b = y.title, F = y.type, I = i.get(F) || { type: "input-group", enableClear: !1 }, E = y.editor ? Object.assign({}, I, y.editor) : Object.assign({}, I),
|
|
525
|
+
const O = T(1), m = S, y = f[S], C = Object.keys(y), b = y.title, F = y.type, I = i.get(F) || { type: "input-group", enableClear: !1 }, E = y.editor ? Object.assign({}, I, y.editor) : Object.assign({}, I), P = c(C, y, p), G = s(C, y, p);
|
|
526
526
|
E.readonly = E.readonly === void 0 ? G() : E.readonly;
|
|
527
|
-
const Q = y.type === "cascade" ? u(y.properties, p, x, B, V,
|
|
527
|
+
const Q = y.type === "cascade" ? u(y.properties, p, x, B, V, N, M) : [], j = !0;
|
|
528
528
|
let D = l(y, M);
|
|
529
529
|
const X = _({
|
|
530
530
|
get() {
|
|
531
531
|
if (O.value) {
|
|
532
532
|
if (["class", "style"].find((ve) => ve === m) && !D && (D = o.get("/converter/appearance.converter") || null), D && D.convertFrom)
|
|
533
|
-
return D.convertFrom(x, S, V,
|
|
533
|
+
return D.convertFrom(x, S, V, N);
|
|
534
534
|
const ue = x[S];
|
|
535
535
|
return Object.prototype.hasOwnProperty.call(y, "defaultValue") && (ue === void 0 || typeof ue == "string" && ue === "") ? y.type === "boolean" ? y.defaultValue : y.defaultValue || "" : ue;
|
|
536
536
|
}
|
|
537
537
|
return null;
|
|
538
538
|
},
|
|
539
539
|
set(ue) {
|
|
540
|
-
O.value += 1, D && D.convertTo ? (D.convertTo(B, S, ue, V,
|
|
540
|
+
O.value += 1, D && D.convertTo ? (D.convertTo(B, S, ue, V, N), D.convertTo(x, S, ue, V, N)) : (B[S] = ue, x[S] = ue);
|
|
541
541
|
}
|
|
542
|
-
}), { refreshPanelAfterChanged: q, description: K, isExpand: le, parentPropertyID: de } = y, ee = { propertyID: m, propertyName: b, propertyType: F, propertyValue: X, editor: E, visible:
|
|
542
|
+
}), { refreshPanelAfterChanged: q, description: K, isExpand: le, parentPropertyID: de } = y, ee = { propertyID: m, propertyName: b, propertyType: F, propertyValue: X, editor: E, visible: P, readonly: G, cascadeConfig: Q, hideCascadeTitle: j, refreshPanelAfterChanged: q, description: K, isExpand: le, parentPropertyID: de };
|
|
543
543
|
return p[m] = ee, ee;
|
|
544
544
|
});
|
|
545
545
|
}
|
|
@@ -551,7 +551,7 @@ function wn(n, e, t) {
|
|
|
551
551
|
}) : [];
|
|
552
552
|
}
|
|
553
553
|
function g(f, p, x, B, V = "") {
|
|
554
|
-
const
|
|
554
|
+
const N = p.$ref.schema, M = p.$ref.converter, w = x[N], S = w.type, O = t(w), m = {}, y = n[S];
|
|
555
555
|
if (y && y.categories) {
|
|
556
556
|
const C = y.categories[f], b = C == null ? void 0 : C.title;
|
|
557
557
|
M && Object.keys(C.properties).forEach((E) => {
|
|
@@ -563,8 +563,8 @@ function wn(n, e, t) {
|
|
|
563
563
|
return { categoryId: f, categoryName: "", properties: [] };
|
|
564
564
|
}
|
|
565
565
|
function h(f, p, x, B, V) {
|
|
566
|
-
const
|
|
567
|
-
let S = V || n[
|
|
566
|
+
const N = f.type, M = t(f), w = {};
|
|
567
|
+
let S = V || n[N];
|
|
568
568
|
if (S && Object.keys(S).length === 0 && x && x.getPropConfig && (S = x.getPropConfig(B)), S && S.categories) {
|
|
569
569
|
const O = [];
|
|
570
570
|
return Object.keys(S.categories).map((m) => {
|
|
@@ -573,8 +573,8 @@ function wn(n, e, t) {
|
|
|
573
573
|
O.push(g(m, y, f, p, B));
|
|
574
574
|
return;
|
|
575
575
|
}
|
|
576
|
-
const C = y == null ? void 0 : y.title, b = y == null ? void 0 : y.tabId, F = y == null ? void 0 : y.tabName, I = y == null ? void 0 : y.hide, E = y == null ? void 0 : y.hideTitle,
|
|
577
|
-
O.push({ categoryId: m, categoryName: C, tabId: b, tabName: F, hide: I, properties:
|
|
576
|
+
const C = y == null ? void 0 : y.title, b = y == null ? void 0 : y.tabId, F = y == null ? void 0 : y.tabName, I = y == null ? void 0 : y.hide, E = y == null ? void 0 : y.hideTitle, P = u(y.properties || {}, w, M, f, p, B, y.$converter), { setPropertyRelates: G } = y, Q = y == null ? void 0 : y.parentPropertyID;
|
|
577
|
+
O.push({ categoryId: m, categoryName: C, tabId: b, tabName: F, hide: I, properties: P, hideTitle: E, setPropertyRelates: G, parentPropertyID: Q });
|
|
578
578
|
}), O;
|
|
579
579
|
}
|
|
580
580
|
return [];
|
|
@@ -728,8 +728,8 @@ function kn(n, e, t) {
|
|
|
728
728
|
const { componentInstance: I, designerItemElementRef: E } = F;
|
|
729
729
|
if (!I || !I.value)
|
|
730
730
|
return null;
|
|
731
|
-
const { getCustomButtons:
|
|
732
|
-
return I.value.canMove ||
|
|
731
|
+
const { getCustomButtons: P } = I.value;
|
|
732
|
+
return I.value.canMove || P && ((G = P()) != null && G.length) ? E : g(F.parent);
|
|
733
733
|
}
|
|
734
734
|
function h(F) {
|
|
735
735
|
return !!t && t.canAccepts(F);
|
|
@@ -745,15 +745,15 @@ function kn(n, e, t) {
|
|
|
745
745
|
}
|
|
746
746
|
function B(F, I) {
|
|
747
747
|
const { componentType: E } = F;
|
|
748
|
-
let
|
|
749
|
-
t && t.onResolveNewComponentSchema && (
|
|
748
|
+
let P = oo(E, F, I);
|
|
749
|
+
t && t.onResolveNewComponentSchema && (P = t.onResolveNewComponentSchema(F, P));
|
|
750
750
|
const G = E.toLowerCase().replace(/-/g, "_");
|
|
751
|
-
return
|
|
751
|
+
return P && !P.id && P.type === E && (P.id = `${G}_${Math.random().toString().slice(2, 6)}`), P;
|
|
752
752
|
}
|
|
753
753
|
function V(F) {
|
|
754
754
|
F && t != null && t.onChildElementMovedOut && t.onChildElementMovedOut(F);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function N(...F) {
|
|
757
757
|
if (t && t.getPropsConfig)
|
|
758
758
|
return t.getPropsConfig(...F);
|
|
759
759
|
}
|
|
@@ -762,8 +762,8 @@ function kn(n, e, t) {
|
|
|
762
762
|
return;
|
|
763
763
|
const I = e == null ? void 0 : e.schema, { formSchemaUtils: E } = F;
|
|
764
764
|
if (I && E.getExpressions().length) {
|
|
765
|
-
const
|
|
766
|
-
|
|
765
|
+
const P = E.getExpressions().findIndex((G) => G.target === I.id);
|
|
766
|
+
P > -1 && E.getExpressions().splice(P, 1);
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
function w(F) {
|
|
@@ -776,8 +776,8 @@ function kn(n, e, t) {
|
|
|
776
776
|
t && t.onRemoveComponent && t.onRemoveComponent(), M(F), w(F), e != null && e.schema.contents && e.schema.contents.map((I) => {
|
|
777
777
|
let E = I.id;
|
|
778
778
|
I.type === "component-ref" && (E = I.component);
|
|
779
|
-
const
|
|
780
|
-
|
|
779
|
+
const P = n.value.querySelectorAll(`#${E}-design-item`);
|
|
780
|
+
P != null && P.length && Array.from(P).map((G) => {
|
|
781
781
|
var Q;
|
|
782
782
|
(Q = G == null ? void 0 : G.componentInstance) != null && Q.value.onRemoveComponent && G.componentInstance.value.onRemoveComponent(F);
|
|
783
783
|
});
|
|
@@ -788,7 +788,7 @@ function kn(n, e, t) {
|
|
|
788
788
|
return t.getCustomButtons();
|
|
789
789
|
}
|
|
790
790
|
function m(F) {
|
|
791
|
-
var E,
|
|
791
|
+
var E, P;
|
|
792
792
|
if (!((E = e == null ? void 0 : e.schema) != null && E.id))
|
|
793
793
|
return;
|
|
794
794
|
if (!r && F && (r = F.formSchemaUtils), t != null && t.setComponentBasicInfoMap) {
|
|
@@ -800,7 +800,7 @@ function kn(n, e, t) {
|
|
|
800
800
|
I = t.getComponentTitle();
|
|
801
801
|
else {
|
|
802
802
|
const { text: G, title: Q, label: j, mainTitle: D, name: X, type: q } = e.schema;
|
|
803
|
-
I = G || Q || j || D || X || ((
|
|
803
|
+
I = G || Q || j || D || X || ((P = $[q]) == null ? void 0 : P.name);
|
|
804
804
|
}
|
|
805
805
|
I && r.getControlBasicInfoMap().set(e.schema.id, {
|
|
806
806
|
componentTitle: I,
|
|
@@ -809,15 +809,15 @@ function kn(n, e, t) {
|
|
|
809
809
|
}
|
|
810
810
|
function y(F) {
|
|
811
811
|
var G;
|
|
812
|
-
const { changeObject: I } = F, { propertyID: E, propertyValue:
|
|
813
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((G = F == null ? void 0 : F.changeObject) == null ? void 0 : G.propertyID) && E &&
|
|
812
|
+
const { changeObject: I } = F, { propertyID: E, propertyValue: P } = I;
|
|
813
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((G = F == null ? void 0 : F.changeObject) == null ? void 0 : G.propertyID) && E && P && (m(), r)) {
|
|
814
814
|
const Q = r.getControlBasicInfoMap(), j = Q.keys().toArray().filter((D) => {
|
|
815
815
|
var X, q;
|
|
816
816
|
return ((X = Q.get(D)) == null ? void 0 : X.reliedComponentId) === ((q = e == null ? void 0 : e.schema) == null ? void 0 : q.id);
|
|
817
817
|
});
|
|
818
818
|
j != null && j.length && j.forEach((D) => {
|
|
819
819
|
const X = Q.get(D).parentPathName.split(" > ");
|
|
820
|
-
X[0] =
|
|
820
|
+
X[0] = P, Q.get(D).parentPathName = X.join(" > ");
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
}
|
|
@@ -840,7 +840,7 @@ function kn(n, e, t) {
|
|
|
840
840
|
getBelongedComponentInstance: d,
|
|
841
841
|
getDraggableDesignItemElement: g,
|
|
842
842
|
getDraggingDisplayText: f,
|
|
843
|
-
getPropConfig:
|
|
843
|
+
getPropConfig: N,
|
|
844
844
|
getDragScopeElement: p,
|
|
845
845
|
onAcceptMovedChildElement: x,
|
|
846
846
|
onChildElementMovedOut: V,
|
|
@@ -1673,7 +1673,7 @@ const ea = {
|
|
|
1673
1673
|
Se(i, () => {
|
|
1674
1674
|
i.value;
|
|
1675
1675
|
});
|
|
1676
|
-
const
|
|
1676
|
+
const N = () => {
|
|
1677
1677
|
var M;
|
|
1678
1678
|
return v(Re, null, [v("div", {
|
|
1679
1679
|
class: "after-toast-msg text-right"
|
|
@@ -1706,7 +1706,7 @@ const ea = {
|
|
|
1706
1706
|
class: "toast-msg",
|
|
1707
1707
|
innerHTML: r.value.message,
|
|
1708
1708
|
style: p.value
|
|
1709
|
-
}, null), f.value &&
|
|
1709
|
+
}, null), f.value && N()]), l.value && (r.value.buttons ? v("div", {
|
|
1710
1710
|
class: "toast-title-btns-wrapper d-flex"
|
|
1711
1711
|
}, [v("h5", {
|
|
1712
1712
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -1714,7 +1714,7 @@ const ea = {
|
|
|
1714
1714
|
innerHTML: r.value.message
|
|
1715
1715
|
}, null), v("div", {
|
|
1716
1716
|
class: "after-toast-title text-right ml-auto"
|
|
1717
|
-
}, [
|
|
1717
|
+
}, [N()])]) : v("h5", {
|
|
1718
1718
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
1719
1719
|
style: p.value,
|
|
1720
1720
|
innerHTML: r.value.message
|
|
@@ -2056,7 +2056,7 @@ function ra(n, e, t, o, i, a, r, c, s, l, u, d, g, h, f, p, x) {
|
|
|
2056
2056
|
calculateCellPositionInRow: B
|
|
2057
2057
|
} = a, {
|
|
2058
2058
|
columnContext: V,
|
|
2059
|
-
hasLeftFixedColumn:
|
|
2059
|
+
hasLeftFixedColumn: N,
|
|
2060
2060
|
hasRightFixedColumn: M
|
|
2061
2061
|
} = r, {
|
|
2062
2062
|
gridDataStyle: w,
|
|
@@ -2065,8 +2065,8 @@ function ra(n, e, t, o, i, a, r, c, s, l, u, d, g, h, f, p, x) {
|
|
|
2065
2065
|
} = h, {
|
|
2066
2066
|
renderDataRow: m
|
|
2067
2067
|
} = so(n, e, V, x, c, s, l, u, d, g, h, f, p), y = [m];
|
|
2068
|
-
function C(
|
|
2069
|
-
const Q = B(
|
|
2068
|
+
function C(P, G) {
|
|
2069
|
+
const Q = B(P);
|
|
2070
2070
|
return x.value.filter((j) => j.visible !== !1).map((j, D) => y[j.type](j, Q, G, D));
|
|
2071
2071
|
}
|
|
2072
2072
|
function b() {
|
|
@@ -2076,7 +2076,7 @@ function ra(n, e, t, o, i, a, r, c, s, l, u, d, g, h, f, p, x) {
|
|
|
2076
2076
|
}, [v("div", {
|
|
2077
2077
|
class: "fv-grid-data",
|
|
2078
2078
|
style: S.value
|
|
2079
|
-
}, [C(V.value.leftColumns.filter((
|
|
2079
|
+
}, [C(V.value.leftColumns.filter((P) => P.visible), "left")])]);
|
|
2080
2080
|
}
|
|
2081
2081
|
function F() {
|
|
2082
2082
|
return v("div", {
|
|
@@ -2085,7 +2085,7 @@ function ra(n, e, t, o, i, a, r, c, s, l, u, d, g, h, f, p, x) {
|
|
|
2085
2085
|
}, [v("div", {
|
|
2086
2086
|
class: "fv-grid-data",
|
|
2087
2087
|
style: w.value
|
|
2088
|
-
}, [C(V.value.primaryColumns.filter((
|
|
2088
|
+
}, [C(V.value.primaryColumns.filter((P) => P.visible), "primary")])]);
|
|
2089
2089
|
}
|
|
2090
2090
|
function I() {
|
|
2091
2091
|
return v("div", {
|
|
@@ -2094,11 +2094,11 @@ function ra(n, e, t, o, i, a, r, c, s, l, u, d, g, h, f, p, x) {
|
|
|
2094
2094
|
}, [v("div", {
|
|
2095
2095
|
class: "fv-grid-data",
|
|
2096
2096
|
style: O.value
|
|
2097
|
-
}, [C(V.value.rightColumns.filter((
|
|
2097
|
+
}, [C(V.value.rightColumns.filter((P) => P.visible), "right")])]);
|
|
2098
2098
|
}
|
|
2099
2099
|
function E() {
|
|
2100
|
-
const
|
|
2101
|
-
return
|
|
2100
|
+
const P = [];
|
|
2101
|
+
return N.value && P.push(b()), P.push(F()), M.value && P.push(I()), P;
|
|
2102
2102
|
}
|
|
2103
2103
|
return {
|
|
2104
2104
|
renderDataArea: E
|
|
@@ -2113,7 +2113,7 @@ const _t = /* @__PURE__ */ Fe({
|
|
|
2113
2113
|
const o = ((tn = n.rowOption) == null ? void 0 : tn.height) || 28, i = T(20), a = T(n.columns), r = lo(n), {
|
|
2114
2114
|
idField: c
|
|
2115
2115
|
} = r, s = T(), l = T(), u = T(), d = T(), g = T(), h = T([]), f = T(!1), p = T(((nn = n.rowOption) == null ? void 0 : nn.wrapContent) || !1), x = co(n, r), B = uo(n, e), V = fo(n), {
|
|
2116
|
-
collapseField:
|
|
2116
|
+
collapseField: N
|
|
2117
2117
|
} = V, {
|
|
2118
2118
|
showLoading: M,
|
|
2119
2119
|
renderLoading: w
|
|
@@ -2123,7 +2123,7 @@ const _t = /* @__PURE__ */ Fe({
|
|
|
2123
2123
|
showSelection: y,
|
|
2124
2124
|
selectedValues: C
|
|
2125
2125
|
} = m, b = ho(n, h, S, r, m, e), F = _(() => n.disabled), I = _(() => n.virtualized ? Math.min(S.dataView.value.length, i.value) : S.dataView.value.length), E = go(n, S), {
|
|
2126
|
-
shouldRenderPagination:
|
|
2126
|
+
shouldRenderPagination: P
|
|
2127
2127
|
} = E, {
|
|
2128
2128
|
containerStyleObject: G
|
|
2129
2129
|
} = yo(n), Q = bo(n), {
|
|
@@ -2152,9 +2152,9 @@ const _t = /* @__PURE__ */ Fe({
|
|
|
2152
2152
|
viewPortWidth: Le,
|
|
2153
2153
|
resetScroll: Ae,
|
|
2154
2154
|
updateVisibleRowsOnLatestVisibleScope: ct
|
|
2155
|
-
} = he, Je =
|
|
2156
|
-
calculateColumnsSize:
|
|
2157
|
-
} = Je, Ue =
|
|
2155
|
+
} = he, Je = Po(n, de, l, Le, ue), {
|
|
2156
|
+
calculateColumnsSize: Ne
|
|
2157
|
+
} = Je, Ue = No(), it = Do(l, g, S, Ue, he), R = Ro(n, e, q, S, ue, x, he), ne = _(() => {
|
|
2158
2158
|
const Y = {
|
|
2159
2159
|
"fv-grid": !0,
|
|
2160
2160
|
"fv-grid-bordered": n.showBorder,
|
|
@@ -2179,22 +2179,22 @@ const _t = /* @__PURE__ */ Fe({
|
|
|
2179
2179
|
} = Lo(), {
|
|
2180
2180
|
renderHorizontalScrollbar: Ot
|
|
2181
2181
|
} = Ao(n, l, he), {
|
|
2182
|
-
renderVerticalScrollbar:
|
|
2182
|
+
renderVerticalScrollbar: Pt
|
|
2183
2183
|
} = Uo(n, l, he);
|
|
2184
|
-
function
|
|
2184
|
+
function Nt() {
|
|
2185
2185
|
var Y, te, ye;
|
|
2186
2186
|
if (l.value && l.value.clientHeight > 0 && ((Y = l.value) == null ? void 0 : Y.clientWidth) > 0) {
|
|
2187
2187
|
const Ce = Math.ceil(l.value.clientHeight / o);
|
|
2188
|
-
Ce > i.value && (i.value = Ce, ct()), $e.value = ((te = u.value) == null ? void 0 : te.clientHeight) || 0, Ie.value = ((ye = l.value) == null ? void 0 : ye.clientWidth) || 0,
|
|
2188
|
+
Ce > i.value && (i.value = Ce, ct()), $e.value = ((te = u.value) == null ? void 0 : te.clientHeight) || 0, Ie.value = ((ye = l.value) == null ? void 0 : ye.clientWidth) || 0, Ne();
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
2191
|
_e(() => {
|
|
2192
|
-
l.value && (i.value = Math.max(Math.ceil(l.value.clientHeight / o), i.value), h.value = ke(0, I.value + 0 - 1), ao(l.value,
|
|
2192
|
+
l.value && (i.value = Math.max(Math.ceil(l.value.clientHeight / o), i.value), h.value = ke(0, I.value + 0 - 1), ao(l.value, Nt), Ne(), Mt(() => {
|
|
2193
2193
|
l.value && (Ie.value = l.value.clientWidth), u.value && (Le.value = u.value.clientWidth, $e.value = u.value.clientHeight);
|
|
2194
2194
|
})), M.value && w();
|
|
2195
2195
|
}), Ft(() => {
|
|
2196
2196
|
}), Se(Le, () => {
|
|
2197
|
-
l.value &&
|
|
2197
|
+
l.value && Ne();
|
|
2198
2198
|
});
|
|
2199
2199
|
function Dt(Y) {
|
|
2200
2200
|
S.collapseTo(Y), S.reOrderVisibleIndex(), Ae();
|
|
@@ -2232,7 +2232,7 @@ const _t = /* @__PURE__ */ Fe({
|
|
|
2232
2232
|
ae.cancelEditingRow(Y);
|
|
2233
2233
|
}
|
|
2234
2234
|
function L(Y) {
|
|
2235
|
-
Y && (a.value = Y, j(a), ee(a.value), le(S, K),
|
|
2235
|
+
Y && (a.value = Y, j(a), ee(a.value), le(S, K), Ne());
|
|
2236
2236
|
}
|
|
2237
2237
|
Se(() => n.columns, (Y) => {
|
|
2238
2238
|
L(Y);
|
|
@@ -2307,10 +2307,10 @@ const _t = /* @__PURE__ */ Fe({
|
|
|
2307
2307
|
}
|
|
2308
2308
|
function mt(Y) {
|
|
2309
2309
|
const te = S.dataView.value.find((ye) => ye[c.value] === Y);
|
|
2310
|
-
return te ? te[
|
|
2310
|
+
return te ? te[N.value] : "";
|
|
2311
2311
|
}
|
|
2312
2312
|
function An() {
|
|
2313
|
-
return
|
|
2313
|
+
return N.value;
|
|
2314
2314
|
}
|
|
2315
2315
|
Se(() => n.showSetting, (Y, te) => {
|
|
2316
2316
|
Y !== te && (Y ? D(a) : X(a), L(a.value));
|
|
@@ -2364,8 +2364,8 @@ const _t = /* @__PURE__ */ Fe({
|
|
|
2364
2364
|
qo(n, e, S, he, E, m);
|
|
2365
2365
|
const _n = _(() => ({
|
|
2366
2366
|
"d-flex": !0,
|
|
2367
|
-
"justify-content-between":
|
|
2368
|
-
"justify-content-end":
|
|
2367
|
+
"justify-content-between": P.value && y.value,
|
|
2368
|
+
"justify-content-end": P.value && !y.value,
|
|
2369
2369
|
"position-relative": !0
|
|
2370
2370
|
})), Wn = _(() => ({
|
|
2371
2371
|
"d-flex": !0,
|
|
@@ -2384,7 +2384,7 @@ const _t = /* @__PURE__ */ Fe({
|
|
|
2384
2384
|
onMouseover: () => f.value = !0,
|
|
2385
2385
|
onMouseleave: () => f.value = !1,
|
|
2386
2386
|
style: Hn.value
|
|
2387
|
-
}, [l.value && It(h), l.value && me(), l.value && Ve.value && ge(), l.value && Ot(), l.value &&
|
|
2387
|
+
}, [l.value && It(h), l.value && me(), l.value && Ve.value && ge(), l.value && Ot(), l.value && Pt()]), l.value && Yn(), y.value && v("div", {
|
|
2388
2388
|
class: _n.value
|
|
2389
2389
|
}, [y.value && v("div", {
|
|
2390
2390
|
class: Wn.value
|
|
@@ -2409,9 +2409,9 @@ function On(n) {
|
|
|
2409
2409
|
return p.forEach((B) => {
|
|
2410
2410
|
let V = [];
|
|
2411
2411
|
B.type && B.type.fields && B.type.fields.length > 0 && (V = l(B.type.fields));
|
|
2412
|
-
const
|
|
2412
|
+
const N = De(B), M = B.multiLanguage ? "多语言" : B.type.displayName, w = V.length ? !1 : !t.has(B.id);
|
|
2413
2413
|
w && (c.value = !0), x.push({
|
|
2414
|
-
data: Object.assign({ displayedTypeName: M, selectable: w },
|
|
2414
|
+
data: Object.assign({ displayedTypeName: M, selectable: w }, N),
|
|
2415
2415
|
children: V
|
|
2416
2416
|
});
|
|
2417
2417
|
}), x;
|
|
@@ -2433,13 +2433,13 @@ function On(n) {
|
|
|
2433
2433
|
let x = u(s.value);
|
|
2434
2434
|
["frame", "table", "form"].includes(x) && (x = "form");
|
|
2435
2435
|
const { formSchemaUtils: B, schemaService: V } = e;
|
|
2436
|
-
B.getFormSchema().module.viewmodels.forEach((
|
|
2437
|
-
if (!
|
|
2436
|
+
B.getFormSchema().module.viewmodels.forEach((N) => {
|
|
2437
|
+
if (!N.fields || N.fields.length === 0)
|
|
2438
2438
|
return;
|
|
2439
|
-
let w = B.getComponentByViewModelId(
|
|
2439
|
+
let w = B.getComponentByViewModelId(N.id).componentType;
|
|
2440
2440
|
["frame", "table", "form"].includes(w) && (w = "form");
|
|
2441
|
-
const S = V.getTableInfoByViewModelId(
|
|
2442
|
-
w !== x || !S || S.id !== p.id ||
|
|
2441
|
+
const S = V.getTableInfoByViewModelId(N.id);
|
|
2442
|
+
w !== x || !S || S.id !== p.id || N.fields.forEach((O) => {
|
|
2443
2443
|
t.set(O.id, !0);
|
|
2444
2444
|
});
|
|
2445
2445
|
});
|
|
@@ -2483,15 +2483,15 @@ function aa(n) {
|
|
|
2483
2483
|
return;
|
|
2484
2484
|
const x = De(f), B = p ? `${p}/${x.label}` : "/";
|
|
2485
2485
|
t.set(x.label, B.replace("//", "/"));
|
|
2486
|
-
const V = l(x),
|
|
2486
|
+
const V = l(x), N = {
|
|
2487
2487
|
data: Object.assign({ selectable: V }, x),
|
|
2488
2488
|
children: []
|
|
2489
2489
|
};
|
|
2490
2490
|
if (x.type.entities && x.type.entities.length) {
|
|
2491
2491
|
const w = x.type.entities.map((S) => u(S, B));
|
|
2492
|
-
|
|
2492
|
+
N.children = N.children.concat(w);
|
|
2493
2493
|
}
|
|
2494
|
-
return n.bindingEntityId === f.id && (r.value = f), ((M = r.value) == null ? void 0 : M.id) === f.id && !p && (c.value = !0),
|
|
2494
|
+
return n.bindingEntityId === f.id && (r.value = f), ((M = r.value) == null ? void 0 : M.id) === f.id && !p && (c.value = !0), N;
|
|
2495
2495
|
}
|
|
2496
2496
|
function d() {
|
|
2497
2497
|
var B;
|
|
@@ -2659,7 +2659,7 @@ const ca = "https://json-schema.org/draft/2020-12/schema", ua = "https://farris-
|
|
|
2659
2659
|
/** 步骤条点击后事件 */
|
|
2660
2660
|
onClick: { type: Function, default: () => {
|
|
2661
2661
|
} }
|
|
2662
|
-
},
|
|
2662
|
+
}, Pn = st(Zt, ha, sa, la, Ca), tt = /* @__PURE__ */ Fe({
|
|
2663
2663
|
name: "FStep",
|
|
2664
2664
|
props: Zt,
|
|
2665
2665
|
emits: ["click"],
|
|
@@ -2744,7 +2744,7 @@ const ca = "https://json-schema.org/draft/2020-12/schema", ua = "https://farris-
|
|
|
2744
2744
|
triangle: !0,
|
|
2745
2745
|
"": t.value === "vertical"
|
|
2746
2746
|
}));
|
|
2747
|
-
function
|
|
2747
|
+
function N() {
|
|
2748
2748
|
return a.value.map((M, w) => v("li", {
|
|
2749
2749
|
class: l(M, w),
|
|
2750
2750
|
onClick: (S) => u(M, w)
|
|
@@ -2759,13 +2759,13 @@ const ca = "https://json-schema.org/draft/2020-12/schema", ua = "https://farris-
|
|
|
2759
2759
|
}, null)])])]));
|
|
2760
2760
|
}
|
|
2761
2761
|
return Se(() => n.activeIndex, () => {
|
|
2762
|
-
n.activeIndex > -1 && n.activeIndex <= a.value.length && (r.value = n.activeIndex,
|
|
2762
|
+
n.activeIndex > -1 && n.activeIndex <= a.value.length && (r.value = n.activeIndex, N());
|
|
2763
2763
|
}), () => v("div", {
|
|
2764
2764
|
class: "f-progress-step"
|
|
2765
2765
|
}, [v("ul", {
|
|
2766
2766
|
class: c.value,
|
|
2767
2767
|
style: s.value
|
|
2768
|
-
}, [
|
|
2768
|
+
}, [N()])]);
|
|
2769
2769
|
}
|
|
2770
2770
|
}), Sa = /* @__PURE__ */ Fe({
|
|
2771
2771
|
name: "FStepDesign",
|
|
@@ -2823,7 +2823,7 @@ const ca = "https://json-schema.org/draft/2020-12/schema", ua = "https://farris-
|
|
|
2823
2823
|
class: B(y, !0)
|
|
2824
2824
|
}, null)), b;
|
|
2825
2825
|
}
|
|
2826
|
-
function
|
|
2826
|
+
function N(y, C) {
|
|
2827
2827
|
return {
|
|
2828
2828
|
"step-name": !0,
|
|
2829
2829
|
"step-name-success": C < r.value
|
|
@@ -2833,7 +2833,7 @@ const ca = "https://json-schema.org/draft/2020-12/schema", ua = "https://farris-
|
|
|
2833
2833
|
return v("div", {
|
|
2834
2834
|
class: "f-progress-step-title"
|
|
2835
2835
|
}, [v("p", {
|
|
2836
|
-
class:
|
|
2836
|
+
class: N(y, C)
|
|
2837
2837
|
}, [y.title])]);
|
|
2838
2838
|
}
|
|
2839
2839
|
function w(y, C) {
|
|
@@ -2876,10 +2876,10 @@ tt.install = (n) => {
|
|
|
2876
2876
|
n.component(tt.name, tt);
|
|
2877
2877
|
};
|
|
2878
2878
|
tt.register = (n, e, t, o) => {
|
|
2879
|
-
n.step = tt, e.step =
|
|
2879
|
+
n.step = tt, e.step = Pn;
|
|
2880
2880
|
};
|
|
2881
2881
|
tt.registerDesigner = (n, e, t) => {
|
|
2882
|
-
n.step = Sa, e.step =
|
|
2882
|
+
n.step = Sa, e.step = Pn;
|
|
2883
2883
|
};
|
|
2884
2884
|
const Kt = /* @__PURE__ */ new Map([
|
|
2885
2885
|
["appearance", Jt]
|
|
@@ -3029,7 +3029,7 @@ function Ma(n, e, t, o) {
|
|
|
3029
3029
|
function Ea(n, e, t) {
|
|
3030
3030
|
return e;
|
|
3031
3031
|
}
|
|
3032
|
-
const Ba = "https://json-schema.org/draft/2020-12/schema", ka = "https://farris-design.gitee.io/response-form.schema.json", Ia = "response-form", Va = "A Farris Data Collection Component", Oa = "object",
|
|
3032
|
+
const Ba = "https://json-schema.org/draft/2020-12/schema", ka = "https://farris-design.gitee.io/response-form.schema.json", Ia = "response-form", Va = "A Farris Data Collection Component", Oa = "object", Pa = {
|
|
3033
3033
|
id: {
|
|
3034
3034
|
description: "The unique identifier for a form group",
|
|
3035
3035
|
type: "string"
|
|
@@ -3072,7 +3072,7 @@ const Ba = "https://json-schema.org/draft/2020-12/schema", ka = "https://farris-
|
|
|
3072
3072
|
type: "boolean",
|
|
3073
3073
|
default: !0
|
|
3074
3074
|
}
|
|
3075
|
-
},
|
|
3075
|
+
}, Na = [
|
|
3076
3076
|
"id",
|
|
3077
3077
|
"type",
|
|
3078
3078
|
"contents"
|
|
@@ -3082,8 +3082,8 @@ const Ba = "https://json-schema.org/draft/2020-12/schema", ka = "https://farris-
|
|
|
3082
3082
|
title: Ia,
|
|
3083
3083
|
description: Va,
|
|
3084
3084
|
type: Oa,
|
|
3085
|
-
properties:
|
|
3086
|
-
required:
|
|
3085
|
+
properties: Pa,
|
|
3086
|
+
required: Na
|
|
3087
3087
|
}, Ra = {
|
|
3088
3088
|
customClass: { type: String, default: "" },
|
|
3089
3089
|
customStyle: { type: String, defaut: "" },
|
|
@@ -3169,7 +3169,7 @@ const ja = "https://json-schema.org/draft/2020-12/schema", $a = "https://farris-
|
|
|
3169
3169
|
"id",
|
|
3170
3170
|
"type",
|
|
3171
3171
|
"editor"
|
|
3172
|
-
],
|
|
3172
|
+
], Nn = {
|
|
3173
3173
|
$schema: ja,
|
|
3174
3174
|
$id: $a,
|
|
3175
3175
|
title: La,
|
|
@@ -3185,7 +3185,7 @@ const ja = "https://json-schema.org/draft/2020-12/schema", $a = "https://farris-
|
|
|
3185
3185
|
editor: { type: Object, default: {} },
|
|
3186
3186
|
label: { type: String, default: "" },
|
|
3187
3187
|
/** value is uncertain because type is uncertain, default value should not be set */
|
|
3188
|
-
modelValue: { type:
|
|
3188
|
+
modelValue: { type: Object },
|
|
3189
3189
|
// readonly: { type: Boolean, default: false },
|
|
3190
3190
|
visible: { type: Boolean, default: !0 },
|
|
3191
3191
|
required: { type: Boolean, default: !1 },
|
|
@@ -3200,7 +3200,7 @@ const ja = "https://json-schema.org/draft/2020-12/schema", $a = "https://farris-
|
|
|
3200
3200
|
};
|
|
3201
3201
|
st(
|
|
3202
3202
|
Dn,
|
|
3203
|
-
|
|
3203
|
+
Nn,
|
|
3204
3204
|
Kt,
|
|
3205
3205
|
void 0
|
|
3206
3206
|
);
|
|
@@ -3251,7 +3251,7 @@ const Ha = {
|
|
|
3251
3251
|
}), A = {}, U = {}, z = {}, H = {};
|
|
3252
3252
|
let dn = !1;
|
|
3253
3253
|
function _a() {
|
|
3254
|
-
dn || (dn = !0, Wo.register(A, U, z, H), _o.register(A, U, z, H), Yo.register(A, U, z, H), Xo.register(A, U, z, H), Jo.register(A, U, z, H), Qo.register(A, U, z, H), ln.register(A, U, z, H), cn.register(A, U, z, H), ln.register(A, U, z, H), cn.register(A, U, z, H), Zo.register(A, U, z, H), Ko.register(A, U, z, H), ei.register(A, U, z, H), ni.register(A, U, z, H), ti.register(A, U, z, H), oi.register(A, U, z, H), ii.register(A, U, z, H), ri.register(A, U, z, H), ai.register(A, U, z, H), si.register(A, U, z, H), ir.register(A, U, z, H), li.register(A, U, z, H), ci.register(A, U, z, H), Qi.register(A, U, z, H), di.register(A, U, z, H), fi.register(A, U, z, H), pi.register(A, U, z, H), vi.register(A, U, z, H), mi.register(A, U, z, H), hi.register(A, U, z, H), gi.register(A, U, z, H), yi.register(A, U, z, H), bi.register(A, U, z, H), wi.register(A, U, z, H), Ci.register(A, U, z, H), Si.register(A, U, z, H), Ti.register(A, U, z, H), Fi.register(A, U, z, H), xi.register(A, U, z, H), Mi.register(A, U, z, H), Ei.register(A, U, z, H), Bi.register(A, U, z, H), Ii.register(A, U, z, H), Vi.register(A, U, z, H), ki.register(A, U, z, H), Yi.register(A, U, z), Oi.register(A, U, z, H),
|
|
3254
|
+
dn || (dn = !0, Wo.register(A, U, z, H), _o.register(A, U, z, H), Yo.register(A, U, z, H), Xo.register(A, U, z, H), Jo.register(A, U, z, H), Qo.register(A, U, z, H), ln.register(A, U, z, H), cn.register(A, U, z, H), ln.register(A, U, z, H), cn.register(A, U, z, H), Zo.register(A, U, z, H), Ko.register(A, U, z, H), ei.register(A, U, z, H), ni.register(A, U, z, H), ti.register(A, U, z, H), oi.register(A, U, z, H), ii.register(A, U, z, H), ri.register(A, U, z, H), ai.register(A, U, z, H), si.register(A, U, z, H), ir.register(A, U, z, H), li.register(A, U, z, H), ci.register(A, U, z, H), Qi.register(A, U, z, H), di.register(A, U, z, H), fi.register(A, U, z, H), pi.register(A, U, z, H), vi.register(A, U, z, H), mi.register(A, U, z, H), hi.register(A, U, z, H), gi.register(A, U, z, H), yi.register(A, U, z, H), bi.register(A, U, z, H), wi.register(A, U, z, H), Ci.register(A, U, z, H), Si.register(A, U, z, H), Ti.register(A, U, z, H), Fi.register(A, U, z, H), xi.register(A, U, z, H), Mi.register(A, U, z, H), Ei.register(A, U, z, H), Bi.register(A, U, z, H), Ii.register(A, U, z, H), Vi.register(A, U, z, H), ki.register(A, U, z, H), Yi.register(A, U, z), Oi.register(A, U, z, H), Pi.register(A, U, z, H), Ni.register(A, U, z, H), Di.register(A, U, z, H), Ri.register(A, U, z, H), ji.register(A, U, z, H), Ki.register(A, U, z, H), $i.register(A, U, z, H), Li.register(A, U, z, H), Ai.register(A, U, z, H), Ui.register(A, U, z, H), zi.register(A, U, z, H), qi.register(A, U, z, H), Gi.register(A, U, z, H), Hi.register(A, U, z, H), _i.register(A, U, z, H), Wi.register(A, U, z, H), Xi.register(A, U, z, H), ui.register(A, U, z, H), Ji.register(A, U, z, H), Zi.register(A, U, z, H), er.register(A, U, z, H), tr.register(A, U, z, H), nr.register(A, U, z, H), or.register(A, U, z, H), rr.register(A, U, z, H), ar.register(A, U, z, H), sr.register(A, U, z, H), lr.register(A, U, z, H), cr.register(A, U, z, H), ur.register(A, U, z, H));
|
|
3255
3255
|
}
|
|
3256
3256
|
function Wa() {
|
|
3257
3257
|
_a();
|
|
@@ -3414,7 +3414,7 @@ const Ya = {
|
|
|
3414
3414
|
"common-group": !0,
|
|
3415
3415
|
"q-state-readonly": c.value
|
|
3416
3416
|
}));
|
|
3417
|
-
function
|
|
3417
|
+
function N(m, y, C) {
|
|
3418
3418
|
r.value = y !== void 0 ? y : m, e.emit("update:modelValue", r.value), e.emit("change", r.value, {
|
|
3419
3419
|
newValue: m,
|
|
3420
3420
|
newModelValue: y,
|
|
@@ -3426,7 +3426,7 @@ const Ya = {
|
|
|
3426
3426
|
}
|
|
3427
3427
|
const w = _(() => {
|
|
3428
3428
|
const m = i.value.type || "input-group", y = p(m), C = f(m, i.value), b = x(m), F = B(i.value.type);
|
|
3429
|
-
return F && (C[F] = M), C[b] =
|
|
3429
|
+
return F && (C[F] = M), C[b] = N, (C.id == null || C.id === "") && (C.id = t.value), m === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (C.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (C.onEndValueChange = i.value.onEndValueChange)) : m === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? (C["onUpdate:idValue"] = i.value["onUpdate:idValue"], C.id = t.value) : m === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? C.onSelectionChange = i.value.onSelectionChange : m === "property-editor" && (C.onBeforeOpenVariables = i.value.onBeforeOpenVariables), () => v(y, xt({
|
|
3430
3430
|
ref: d
|
|
3431
3431
|
}, C, {
|
|
3432
3432
|
modelValue: r.value,
|
|
@@ -3439,9 +3439,9 @@ const Ya = {
|
|
|
3439
3439
|
errors: g.value
|
|
3440
3440
|
}, null);
|
|
3441
3441
|
}
|
|
3442
|
-
return Se([() => n.id, () => n.customClass, () => n.editor, () => n.label, () => n.modelValue, () => n.readonly, () => n.required, () => n.showLabel, () => n.visible, () => n.errors], ([m, y, C, b, F, I, E,
|
|
3442
|
+
return Se([() => n.id, () => n.customClass, () => n.editor, () => n.label, () => n.modelValue, () => n.readonly, () => n.required, () => n.showLabel, () => n.visible, () => n.errors], ([m, y, C, b, F, I, E, P, G, Q]) => {
|
|
3443
3443
|
var j;
|
|
3444
|
-
t.value = m, o.value = y, i.value = C, a.value = b, r.value = F, c.value = I, s.value = ((j = i.value) == null ? void 0 : j.required) || E, l.value =
|
|
3444
|
+
t.value = m, o.value = y, i.value = C, a.value = b, r.value = F, c.value = I, s.value = ((j = i.value) == null ? void 0 : j.required) || E, l.value = P, u.value = G, g.value = Q;
|
|
3445
3445
|
}), e.expose({
|
|
3446
3446
|
editorRef: d
|
|
3447
3447
|
}), () => u.value && v("div", {
|
|
@@ -3609,7 +3609,7 @@ var Ja = { exports: {} };
|
|
|
3609
3609
|
function d(b, F) {
|
|
3610
3610
|
var I = arguments.length;
|
|
3611
3611
|
I === 1 && Array.isArray(b) === !1 && (F = b, b = []);
|
|
3612
|
-
var E,
|
|
3612
|
+
var E, P, G, Q, j, D, X, q, K, le = null, de, ee, ue = !1, ve = 0, ae, J = F || {};
|
|
3613
3613
|
J.moves === void 0 && (J.moves = V), J.accepts === void 0 && (J.accepts = V), J.invalid === void 0 && (J.invalid = ct), J.containers === void 0 && (J.containers = b || []), J.isContainer === void 0 && (J.isContainer = B), J.copy === void 0 && (J.copy = !1), J.copySortSource === void 0 && (J.copySortSource = !1), J.revertOnSpill === void 0 && (J.revertOnSpill = !1), J.removeOnSpill === void 0 && (J.removeOnSpill = !1), J.direction === void 0 && (J.direction = "vertical"), J.ignoreInputTextSelection === void 0 && (J.ignoreInputTextSelection = !0), J.mirrorContainer === void 0 && (J.mirrorContainer = l.body);
|
|
3614
3614
|
var se = r({
|
|
3615
3615
|
containers: J.containers,
|
|
@@ -3664,7 +3664,7 @@ var Ja = { exports: {} };
|
|
|
3664
3664
|
return;
|
|
3665
3665
|
}
|
|
3666
3666
|
var ie = de;
|
|
3667
|
-
ke(!0), ot(), Je(), Ae(ie), s.add(q || G, "gu-transit"),
|
|
3667
|
+
ke(!0), ot(), Je(), Ae(ie), s.add(q || G, "gu-transit"), Pt(), Ot(), ve = 0, ut(k);
|
|
3668
3668
|
}
|
|
3669
3669
|
}
|
|
3670
3670
|
}
|
|
@@ -3692,7 +3692,7 @@ var Ja = { exports: {} };
|
|
|
3692
3692
|
L && Ae(L);
|
|
3693
3693
|
}
|
|
3694
3694
|
function Ae(k) {
|
|
3695
|
-
At(k.item, k.source) && (q = k.item.cloneNode(!0), se.emit("cloned", q, k.item, "copy")),
|
|
3695
|
+
At(k.item, k.source) && (q = k.item.cloneNode(!0), se.emit("cloned", q, k.item, "copy")), P = k.source, G = k.item, D = X = m(k.item), se.dragging = !0, se.emit("drag", G, P);
|
|
3696
3696
|
}
|
|
3697
3697
|
function ct() {
|
|
3698
3698
|
return !1;
|
|
@@ -3703,38 +3703,38 @@ var Ja = { exports: {} };
|
|
|
3703
3703
|
it(k, w(k));
|
|
3704
3704
|
}
|
|
3705
3705
|
}
|
|
3706
|
-
function
|
|
3706
|
+
function Ne() {
|
|
3707
3707
|
de = !1, ke(!0), ot(!0);
|
|
3708
3708
|
}
|
|
3709
3709
|
function Ue(k) {
|
|
3710
|
-
if (
|
|
3710
|
+
if (Ne(), !!se.dragging) {
|
|
3711
3711
|
var L = q || G, W = C("clientX", k) || 0, Z = C("clientY", k) || 0, ie = x(E, W, Z), re = ze(ie, W, Z);
|
|
3712
|
-
re && (q && J.copySortSource || !q || re !==
|
|
3712
|
+
re && (q && J.copySortSource || !q || re !== P) ? it(L, re) : J.removeOnSpill ? R() : ne();
|
|
3713
3713
|
}
|
|
3714
3714
|
}
|
|
3715
3715
|
function it(k, L) {
|
|
3716
3716
|
var W = w(k);
|
|
3717
|
-
q && J.copySortSource && L ===
|
|
3717
|
+
q && J.copySortSource && L === P && W.removeChild(G), me(L) ? se.emit("cancel", k, P) : se.emit("drop", k, L, P, X), pe();
|
|
3718
3718
|
}
|
|
3719
3719
|
function R() {
|
|
3720
3720
|
if (se.dragging) {
|
|
3721
3721
|
var k = q || G, L = w(k);
|
|
3722
|
-
L && L.removeChild(k), se.emit(q ? "cancel" : "remove", k, L,
|
|
3722
|
+
L && L.removeChild(k), se.emit(q ? "cancel" : "remove", k, L, P), pe();
|
|
3723
3723
|
}
|
|
3724
3724
|
}
|
|
3725
3725
|
function ne(k) {
|
|
3726
3726
|
if (se.dragging) {
|
|
3727
3727
|
var L = arguments.length > 0 ? k : J.revertOnSpill, W = q || G, Z = w(W), ie = me(Z);
|
|
3728
|
-
ie === !1 && L && (q ? Z && Z.removeChild(q) :
|
|
3728
|
+
ie === !1 && L && (q ? Z && Z.removeChild(q) : P.insertBefore(W, D)), ie || L ? se.emit("cancel", W, P, P) : se.emit("drop", W, Z, P, X), pe();
|
|
3729
3729
|
}
|
|
3730
3730
|
}
|
|
3731
3731
|
function pe() {
|
|
3732
3732
|
var k = q || G;
|
|
3733
|
-
|
|
3733
|
+
Ne(), Nt(), Dt(), k && s.rm(k, "gu-transit"), K && clearTimeout(K), se.dragging = !1, le && se.emit("out", k, le, P), se.emit("dragend", k, ve), P = G = q = D = X = K = le = null;
|
|
3734
3734
|
}
|
|
3735
3735
|
function me(k, L) {
|
|
3736
3736
|
var W;
|
|
3737
|
-
return L !== void 0 ? W = L : E ? W = X : W = m(q || G), k ===
|
|
3737
|
+
return L !== void 0 ? W = L : E ? W = X : W = m(q || G), k === P && W === D;
|
|
3738
3738
|
}
|
|
3739
3739
|
function ze(k, L, W) {
|
|
3740
3740
|
for (var Z = k; Z && !ie(); )
|
|
@@ -3745,7 +3745,7 @@ var Ja = { exports: {} };
|
|
|
3745
3745
|
if (re === !1)
|
|
3746
3746
|
return !1;
|
|
3747
3747
|
var Be = ht(Z, k), Te = gt(Z, Be, L, W), xe = me(Z, Te);
|
|
3748
|
-
return xe ? !0 : J.accepts(G, Z,
|
|
3748
|
+
return xe ? !0 : J.accepts(G, Z, P, Te);
|
|
3749
3749
|
}
|
|
3750
3750
|
}
|
|
3751
3751
|
function ut(k) {
|
|
@@ -3757,7 +3757,7 @@ var Ja = { exports: {} };
|
|
|
3757
3757
|
var Z = q || G, ie = x(E, L, W), re = ze(ie, L, W), Be = re !== null && re !== le;
|
|
3758
3758
|
(Be || re === null) && (Me(), le = re, Oe()), Lt(ie, W);
|
|
3759
3759
|
var Te = w(Z);
|
|
3760
|
-
if (re ===
|
|
3760
|
+
if (re === P && q && !J.copySortSource) {
|
|
3761
3761
|
Te && Te.removeChild(Z);
|
|
3762
3762
|
return;
|
|
3763
3763
|
}
|
|
@@ -3765,14 +3765,14 @@ var Ja = { exports: {} };
|
|
|
3765
3765
|
if (ue = dt(Ve, re), Ve !== null)
|
|
3766
3766
|
xe = gt(re, Ve, L, W);
|
|
3767
3767
|
else if (J.revertOnSpill === !0 && !q)
|
|
3768
|
-
xe = D, re =
|
|
3768
|
+
xe = D, re = P;
|
|
3769
3769
|
else {
|
|
3770
3770
|
q && Te && Te.removeChild(Z), q && ee && (ee.style.display = "none");
|
|
3771
3771
|
return;
|
|
3772
3772
|
}
|
|
3773
3773
|
ee.style.display = "block", kt(xe, Z, Be), xe ? jt(Ve, xe) : $t(re);
|
|
3774
3774
|
function ge(we) {
|
|
3775
|
-
se.emit(we, Z, le,
|
|
3775
|
+
se.emit(we, Z, le, P);
|
|
3776
3776
|
}
|
|
3777
3777
|
function Oe() {
|
|
3778
3778
|
Be && ge("over");
|
|
@@ -3793,14 +3793,14 @@ var Ja = { exports: {} };
|
|
|
3793
3793
|
function Ot() {
|
|
3794
3794
|
E || (E = document.createElement("div"), E.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;", E.innerHTML = J.getMirrorText && J.getMirrorText(G) || "控件", s.add(E, "gu-mirror"), J.mirrorContainer.appendChild(E), f(u, "add", "mousemove", ut), s.add(J.mirrorContainer, "gu-unselectable"), se.emit("cloned", E, G, "mirror"));
|
|
3795
3795
|
}
|
|
3796
|
-
function
|
|
3796
|
+
function Pt() {
|
|
3797
3797
|
if (ee = document.createElement("div"), s.add(ee, "gu-insertion"), G) {
|
|
3798
3798
|
var k = G.getBoundingClientRect();
|
|
3799
3799
|
ee.style.left = k.left + "px", ee.style.top = k.top + "px";
|
|
3800
3800
|
}
|
|
3801
3801
|
ue = !1, J.mirrorContainer.appendChild(ee);
|
|
3802
3802
|
}
|
|
3803
|
-
function
|
|
3803
|
+
function Nt() {
|
|
3804
3804
|
E && (s.rm(J.mirrorContainer, "gu-unselectable"), f(u, "remove", "mousemove", ut), w(E).removeChild(E), E = null);
|
|
3805
3805
|
}
|
|
3806
3806
|
function Dt() {
|
|
@@ -3898,7 +3898,7 @@ var Ja = { exports: {} };
|
|
|
3898
3898
|
var Oe = Z - ge.top, Me = W - ge.left, we = ge.bottom - Z, ft = ge.right - W, pt = Math.min(Me, ft, Oe, we), mt;
|
|
3899
3899
|
return ue ? mt = ft < Me : mt = we === pt || ft === pt || Me === pt, Ve(mt);
|
|
3900
3900
|
}
|
|
3901
|
-
return Ve(ie ? W > ge.left +
|
|
3901
|
+
return Ve(ie ? W > ge.left + N(ge) / 2 : Z > ge.top + M(ge) / 2);
|
|
3902
3902
|
}
|
|
3903
3903
|
function Ve(ge) {
|
|
3904
3904
|
return ge ? m(L) : L;
|
|
@@ -3928,7 +3928,7 @@ var Ja = { exports: {} };
|
|
|
3928
3928
|
}), F.sort((I, E) => I.contains(E) ? 1 : E.contains(I) ? -1 : 0), F;
|
|
3929
3929
|
}
|
|
3930
3930
|
function f(b, F, I, E) {
|
|
3931
|
-
var
|
|
3931
|
+
var P = {
|
|
3932
3932
|
mouseup: "touchend",
|
|
3933
3933
|
mousedown: "touchstart",
|
|
3934
3934
|
mousemove: "touchmove"
|
|
@@ -3941,7 +3941,7 @@ var Ja = { exports: {} };
|
|
|
3941
3941
|
mousedown: "MSPointerDown",
|
|
3942
3942
|
mousemove: "MSPointerMove"
|
|
3943
3943
|
};
|
|
3944
|
-
a.navigator.pointerEnabled ? c[F](b, G[I], E) : a.navigator.msPointerEnabled ? c[F](b, Q[I], E) : (c[F](b,
|
|
3944
|
+
a.navigator.pointerEnabled ? c[F](b, G[I], E) : a.navigator.msPointerEnabled ? c[F](b, Q[I], E) : (c[F](b, P[I], E), c[F](b, I, E));
|
|
3945
3945
|
}
|
|
3946
3946
|
function p(b) {
|
|
3947
3947
|
if (b.touches !== void 0)
|
|
@@ -3956,8 +3956,8 @@ var Ja = { exports: {} };
|
|
|
3956
3956
|
}
|
|
3957
3957
|
function x(b, F, I) {
|
|
3958
3958
|
b = b || {};
|
|
3959
|
-
var E = b.className || "",
|
|
3960
|
-
return b.className += " gu-hide",
|
|
3959
|
+
var E = b.className || "", P;
|
|
3960
|
+
return b.className += " gu-hide", P = l.elementFromPoint(F, I), b.className = E, P;
|
|
3961
3961
|
}
|
|
3962
3962
|
function B() {
|
|
3963
3963
|
return !1;
|
|
@@ -3965,7 +3965,7 @@ var Ja = { exports: {} };
|
|
|
3965
3965
|
function V() {
|
|
3966
3966
|
return !0;
|
|
3967
3967
|
}
|
|
3968
|
-
function
|
|
3968
|
+
function N(b) {
|
|
3969
3969
|
return b.width || b.right - b.left;
|
|
3970
3970
|
}
|
|
3971
3971
|
function M(b) {
|
|
@@ -4073,7 +4073,7 @@ var Ja = { exports: {} };
|
|
|
4073
4073
|
return w.removeEventListener(S, O, m);
|
|
4074
4074
|
}
|
|
4075
4075
|
function p(w, S, O) {
|
|
4076
|
-
var m =
|
|
4076
|
+
var m = N(w, S, O);
|
|
4077
4077
|
if (m)
|
|
4078
4078
|
return w.detachEvent("on" + S, m);
|
|
4079
4079
|
}
|
|
@@ -4099,7 +4099,7 @@ var Ja = { exports: {} };
|
|
|
4099
4099
|
};
|
|
4100
4100
|
}
|
|
4101
4101
|
function V(w, S, O) {
|
|
4102
|
-
var m =
|
|
4102
|
+
var m = N(w, S, O) || B(w, S, O);
|
|
4103
4103
|
return d.push({
|
|
4104
4104
|
wrapper: m,
|
|
4105
4105
|
element: w,
|
|
@@ -4107,7 +4107,7 @@ var Ja = { exports: {} };
|
|
|
4107
4107
|
fn: O
|
|
4108
4108
|
}), m;
|
|
4109
4109
|
}
|
|
4110
|
-
function
|
|
4110
|
+
function N(w, S, O) {
|
|
4111
4111
|
var m = M(w, S, O);
|
|
4112
4112
|
if (m) {
|
|
4113
4113
|
var y = d[m].wrapper;
|
|
@@ -4235,9 +4235,9 @@ var Ja = { exports: {} };
|
|
|
4235
4235
|
V.prototype.run = function() {
|
|
4236
4236
|
this.fun.apply(null, this.array);
|
|
4237
4237
|
}, a.title = "browser", a.browser = !0, a.env = {}, a.argv = [], a.version = "", a.versions = {};
|
|
4238
|
-
function
|
|
4238
|
+
function N() {
|
|
4239
4239
|
}
|
|
4240
|
-
a.on =
|
|
4240
|
+
a.on = N, a.addListener = N, a.once = N, a.off = N, a.removeListener = N, a.removeAllListeners = N, a.emit = N, a.prependListener = N, a.prependOnceListener = N, a.listeners = function(M) {
|
|
4241
4241
|
return [];
|
|
4242
4242
|
}, a.binding = function(M) {
|
|
4243
4243
|
throw new Error("process.binding is not supported");
|
|
@@ -4623,7 +4623,7 @@ function ds(n, e) {
|
|
|
4623
4623
|
};
|
|
4624
4624
|
}
|
|
4625
4625
|
}
|
|
4626
|
-
function
|
|
4626
|
+
function N() {
|
|
4627
4627
|
var j, D, X, q;
|
|
4628
4628
|
if (t.value) {
|
|
4629
4629
|
const K = t.value;
|
|
@@ -4648,7 +4648,7 @@ function ds(n, e) {
|
|
|
4648
4648
|
return;
|
|
4649
4649
|
j.subtract(i.value);
|
|
4650
4650
|
const D = j.x, X = j.y;
|
|
4651
|
-
l.value.n ? (s.value.y = r.value.y + X, c.value.height = a.value.height - X) : l.value.s && (c.value.height = a.value.height + X), l.value.e ? c.value.width = a.value.width + D : l.value.w && (c.value.width = a.value.width - D, s.value.x = r.value.x + D), w(), M(),
|
|
4651
|
+
l.value.n ? (s.value.y = r.value.y + X, c.value.height = a.value.height - X) : l.value.s && (c.value.height = a.value.height + X), l.value.e ? c.value.width = a.value.width + D : l.value.w && (c.value.width = a.value.width - D, s.value.x = r.value.x + D), w(), M(), N();
|
|
4652
4652
|
}
|
|
4653
4653
|
function O(j) {
|
|
4654
4654
|
if (!u.value)
|
|
@@ -4754,7 +4754,7 @@ function ds(n, e) {
|
|
|
4754
4754
|
}, p.value = n.draggable, x.value = !1;
|
|
4755
4755
|
}
|
|
4756
4756
|
}
|
|
4757
|
-
function
|
|
4757
|
+
function P() {
|
|
4758
4758
|
if (t.value) {
|
|
4759
4759
|
const j = et.getCurrent(t.value);
|
|
4760
4760
|
if (j) {
|
|
@@ -4768,7 +4768,7 @@ function ds(n, e) {
|
|
|
4768
4768
|
}
|
|
4769
4769
|
function G() {
|
|
4770
4770
|
const j = () => {
|
|
4771
|
-
x.value ? I(!1) :
|
|
4771
|
+
x.value ? I(!1) : P(), document.body.click();
|
|
4772
4772
|
};
|
|
4773
4773
|
return window.addEventListener("resize", j), () => {
|
|
4774
4774
|
window.removeEventListener("resize", j);
|
|
@@ -4784,7 +4784,7 @@ function ds(n, e) {
|
|
|
4784
4784
|
allowDrag: p,
|
|
4785
4785
|
isMaximized: x,
|
|
4786
4786
|
unWindowResizeHandle: Q,
|
|
4787
|
-
moveToCenter:
|
|
4787
|
+
moveToCenter: P
|
|
4788
4788
|
};
|
|
4789
4789
|
}
|
|
4790
4790
|
function fs(n, e, t) {
|
|
@@ -4830,7 +4830,7 @@ function fs(n, e, t) {
|
|
|
4830
4830
|
var O;
|
|
4831
4831
|
s.value && (s.value = !1, u.value.add(d.value), d.value.reset(), (O = o.value) == null || O.classList.remove("ng-dragging"), e.emit("stopMove"), document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", V));
|
|
4832
4832
|
}
|
|
4833
|
-
function
|
|
4833
|
+
function N() {
|
|
4834
4834
|
!s.value && r.value && (s.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", B), document.addEventListener("mouseup", V));
|
|
4835
4835
|
}
|
|
4836
4836
|
function M() {
|
|
@@ -4845,7 +4845,7 @@ function fs(n, e, t) {
|
|
|
4845
4845
|
if (!t.value || O instanceof MouseEvent && O.button === 2)
|
|
4846
4846
|
return;
|
|
4847
4847
|
const m = O.target || O.srcElement;
|
|
4848
|
-
r.value !== void 0 && m && !h(m, r.value) || i.value !== !1 && (document.body.click(), O.stopPropagation(), O.preventDefault(), l.value = fe.fromEvent(O, o.value), M(),
|
|
4848
|
+
r.value !== void 0 && m && !h(m, r.value) || i.value !== !1 && (document.body.click(), O.stopPropagation(), O.preventDefault(), l.value = fe.fromEvent(O, o.value), M(), N());
|
|
4849
4849
|
}
|
|
4850
4850
|
function S(O, m, y) {
|
|
4851
4851
|
if (i.value && m) {
|
|
@@ -4900,7 +4900,7 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
4900
4900
|
props: Rn,
|
|
4901
4901
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
4902
4902
|
setup(n, e) {
|
|
4903
|
-
const t = T(n.width || 300), o = T(n.height || 200), i = T(n.modelValue), a = T(""), r = T(n.class), c = T(n.fitContent), s = T(n.showHeader), l = T(""), u = T(n.showCloseButton), d = T(n.showMaxButton), g = T(!1), h = T(n.dialogType), f = T(n.src), p = T(""), x = T(n.showButtons), B = T(n.title), V = T(n.containment || null),
|
|
4903
|
+
const t = T(n.width || 300), o = T(n.height || 200), i = T(n.modelValue), a = T(""), r = T(n.class), c = T(n.fitContent), s = T(n.showHeader), l = T(""), u = T(n.showCloseButton), d = T(n.showMaxButton), g = T(!1), h = T(n.dialogType), f = T(n.src), p = T(""), x = T(n.showButtons), B = T(n.title), V = T(n.containment || null), N = T(), {
|
|
4904
4904
|
t: M
|
|
4905
4905
|
} = Yt();
|
|
4906
4906
|
B.value === "错误提示" && (B.value = M("messageBox.errorTitle"));
|
|
@@ -4932,7 +4932,7 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
4932
4932
|
}
|
|
4933
4933
|
}], m = T(n.buttons && n.buttons.length ? n.buttons : O), y = _(() => !!l.value), C = _(() => !!x.value && !!m.value), b = T(), F = T(), I = T(!1), {
|
|
4934
4934
|
renderResizeBar: E,
|
|
4935
|
-
maximize:
|
|
4935
|
+
maximize: P,
|
|
4936
4936
|
restore: G,
|
|
4937
4937
|
boundingElement: Q,
|
|
4938
4938
|
resizedEventParam: j,
|
|
@@ -4947,7 +4947,7 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
4947
4947
|
}
|
|
4948
4948
|
function de() {
|
|
4949
4949
|
const R = document.querySelectorAll(".farris-modal").length;
|
|
4950
|
-
(!R || R - 1 <= 0) && document.body.classList.remove("modal-open"),
|
|
4950
|
+
(!R || R - 1 <= 0) && document.body.classList.remove("modal-open"), N.value && N.value.classList.remove("show");
|
|
4951
4951
|
}
|
|
4952
4952
|
Se(() => n.title, (R, ne) => {
|
|
4953
4953
|
R !== ne && (B.value = R);
|
|
@@ -5030,7 +5030,7 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
5030
5030
|
I.value = !1, G();
|
|
5031
5031
|
return;
|
|
5032
5032
|
}
|
|
5033
|
-
|
|
5033
|
+
P(), I.value = !0;
|
|
5034
5034
|
}
|
|
5035
5035
|
async function he(R, ne) {
|
|
5036
5036
|
R.handle && await R.handle(ne, R) && e.emit("closed", ne);
|
|
@@ -5109,9 +5109,9 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
5109
5109
|
function Je() {
|
|
5110
5110
|
return e.slots.footerTemplate ? e.slots.footerTemplate() : C.value && Ae();
|
|
5111
5111
|
}
|
|
5112
|
-
function
|
|
5112
|
+
function Ne(R) {
|
|
5113
5113
|
if (R.stopPropagation(), n.allowClickMaskToClose) {
|
|
5114
|
-
if (R.target !==
|
|
5114
|
+
if (R.target !== N.value)
|
|
5115
5115
|
return;
|
|
5116
5116
|
S(R, !1);
|
|
5117
5117
|
}
|
|
@@ -5146,10 +5146,10 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
5146
5146
|
appear: !0
|
|
5147
5147
|
}, {
|
|
5148
5148
|
default: () => [v("div", {
|
|
5149
|
-
ref:
|
|
5149
|
+
ref: N,
|
|
5150
5150
|
class: ue.value,
|
|
5151
5151
|
style: J.value,
|
|
5152
|
-
onClick:
|
|
5152
|
+
onClick: Ne
|
|
5153
5153
|
}, [Ue()])]
|
|
5154
5154
|
})]
|
|
5155
5155
|
});
|
|
@@ -5171,11 +5171,11 @@ function vs(n) {
|
|
|
5171
5171
|
});
|
|
5172
5172
|
const a = T(), r = T(n.class || ""), c = T(!!n.showButtons), s = T(!!n.showHeader), l = T(n.showCloseButton == null ? !0 : n.showCloseButton), u = T(!0), d = T(n.title || ""), g = n.acceptCallback || (() => {
|
|
5173
5173
|
}), h = n.rejectCallback || (() => {
|
|
5174
|
-
}), f = n.closedCallback || ((
|
|
5175
|
-
}), p = n.resizeHandle || ((
|
|
5176
|
-
}), x = n.stopMoveHandle || ((
|
|
5177
|
-
}), B = $n(n), V = (
|
|
5178
|
-
u.value = !1, t.unmount(), f(
|
|
5174
|
+
}), f = n.closedCallback || ((N) => {
|
|
5175
|
+
}), p = n.resizeHandle || ((N) => {
|
|
5176
|
+
}), x = n.stopMoveHandle || ((N) => {
|
|
5177
|
+
}), B = $n(n), V = (N) => {
|
|
5178
|
+
u.value = !1, t.unmount(), f(N);
|
|
5179
5179
|
};
|
|
5180
5180
|
return _e(() => {
|
|
5181
5181
|
}), i.expose({
|
|
@@ -5184,7 +5184,7 @@ function vs(n) {
|
|
|
5184
5184
|
ref: a,
|
|
5185
5185
|
class: r.value,
|
|
5186
5186
|
modelValue: u.value,
|
|
5187
|
-
"onUpdate:modelValue": (
|
|
5187
|
+
"onUpdate:modelValue": (N) => u.value = N,
|
|
5188
5188
|
title: d.value,
|
|
5189
5189
|
width: n.width,
|
|
5190
5190
|
height: n.height,
|
|
@@ -5340,7 +5340,7 @@ const gs = {
|
|
|
5340
5340
|
};
|
|
5341
5341
|
st(
|
|
5342
5342
|
gs,
|
|
5343
|
-
|
|
5343
|
+
Nn,
|
|
5344
5344
|
Kt,
|
|
5345
5345
|
void 0
|
|
5346
5346
|
);
|
|
@@ -5458,14 +5458,14 @@ function Os(n, e, t, o) {
|
|
|
5458
5458
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
5459
5459
|
}, [c.value + " / " + a.value])]);
|
|
5460
5460
|
}
|
|
5461
|
-
function
|
|
5461
|
+
function Ps(n, e, t, o) {
|
|
5462
5462
|
const i = Os(n, e, t, o), a = /* @__PURE__ */ new Map([["text-area", i]]);
|
|
5463
5463
|
function r(c) {
|
|
5464
5464
|
return a.get(c) || null;
|
|
5465
5465
|
}
|
|
5466
5466
|
return { getEditorRender: r };
|
|
5467
5467
|
}
|
|
5468
|
-
function
|
|
5468
|
+
function Ns() {
|
|
5469
5469
|
const n = T(!1), e = T("复制成功");
|
|
5470
5470
|
return {
|
|
5471
5471
|
feedbackStyle: _(() => {
|
|
@@ -5513,8 +5513,8 @@ function Rs(n, e) {
|
|
|
5513
5513
|
const p = h.length;
|
|
5514
5514
|
let x = "", B = 0;
|
|
5515
5515
|
for (let V = 0; V < p; V++) {
|
|
5516
|
-
const
|
|
5517
|
-
if (B++, encodeURI(
|
|
5516
|
+
const N = h.charAt(V);
|
|
5517
|
+
if (B++, encodeURI(N).length > 4 && B++, x = x.concat(N), B >= f)
|
|
5518
5518
|
return x = x.concat("..."), x;
|
|
5519
5519
|
}
|
|
5520
5520
|
if (B < f)
|
|
@@ -5679,7 +5679,7 @@ const wt = /* @__PURE__ */ Fe({
|
|
|
5679
5679
|
cursor: "default"
|
|
5680
5680
|
};
|
|
5681
5681
|
return o.value === "prompt" ? B.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (B.padding = "0.5rem 1.5rem 1rem 1.5rem"), B;
|
|
5682
|
-
}), s = Vs(), l =
|
|
5682
|
+
}), s = Vs(), l = Ps(n, o, i, a), u = Ns(), {
|
|
5683
5683
|
feedbackStyle: d,
|
|
5684
5684
|
feedbackMessage: g
|
|
5685
5685
|
} = u;
|
|
@@ -5708,14 +5708,14 @@ const wt = /* @__PURE__ */ Fe({
|
|
|
5708
5708
|
style: c.value
|
|
5709
5709
|
}, [p()]), x(), h()]);
|
|
5710
5710
|
}
|
|
5711
|
-
}),
|
|
5711
|
+
}), Pe = class Pe {
|
|
5712
5712
|
static show(e) {
|
|
5713
5713
|
const t = Ge({
|
|
5714
5714
|
...e
|
|
5715
5715
|
}), o = !1, i = t.type === "error" || t.type === "prompt", a = t.type === "error" ? "错误提示" : t.type === "prompt" && t.title || "", r = t.acceptCallback || (() => {
|
|
5716
5716
|
}), c = t.rejectCallback || (() => {
|
|
5717
5717
|
});
|
|
5718
|
-
let s = null, l = new Ln(
|
|
5718
|
+
let s = null, l = new Ln(Pe.app);
|
|
5719
5719
|
const u = () => {
|
|
5720
5720
|
s && (s == null || s.destroy(), l = null);
|
|
5721
5721
|
};
|
|
@@ -5744,7 +5744,7 @@ const wt = /* @__PURE__ */ Fe({
|
|
|
5744
5744
|
okButtonText: "知道了",
|
|
5745
5745
|
showCancelButton: !1
|
|
5746
5746
|
});
|
|
5747
|
-
|
|
5747
|
+
Pe.show(o);
|
|
5748
5748
|
}
|
|
5749
5749
|
static warning(e, t) {
|
|
5750
5750
|
const o = Ge({
|
|
@@ -5754,7 +5754,7 @@ const wt = /* @__PURE__ */ Fe({
|
|
|
5754
5754
|
okButtonText: "知道了",
|
|
5755
5755
|
showCancelButton: !1
|
|
5756
5756
|
});
|
|
5757
|
-
|
|
5757
|
+
Pe.show(o);
|
|
5758
5758
|
}
|
|
5759
5759
|
static success(e, t) {
|
|
5760
5760
|
const o = Ge({
|
|
@@ -5764,7 +5764,7 @@ const wt = /* @__PURE__ */ Fe({
|
|
|
5764
5764
|
okButtonText: "关闭",
|
|
5765
5765
|
showCancelButton: !1
|
|
5766
5766
|
});
|
|
5767
|
-
|
|
5767
|
+
Pe.show(o);
|
|
5768
5768
|
}
|
|
5769
5769
|
static error(e, t, o) {
|
|
5770
5770
|
const i = Ge({
|
|
@@ -5778,7 +5778,7 @@ const wt = /* @__PURE__ */ Fe({
|
|
|
5778
5778
|
detail: t
|
|
5779
5779
|
}
|
|
5780
5780
|
});
|
|
5781
|
-
|
|
5781
|
+
Pe.show(i);
|
|
5782
5782
|
}
|
|
5783
5783
|
static prompt(e, t) {
|
|
5784
5784
|
const o = Ge({
|
|
@@ -5788,7 +5788,7 @@ const wt = /* @__PURE__ */ Fe({
|
|
|
5788
5788
|
okButtonText: "确定",
|
|
5789
5789
|
cancelButtonText: "取消"
|
|
5790
5790
|
});
|
|
5791
|
-
|
|
5791
|
+
Pe.show(o);
|
|
5792
5792
|
}
|
|
5793
5793
|
static question(e, t, o, i) {
|
|
5794
5794
|
const a = Ge({
|
|
@@ -5800,11 +5800,11 @@ const wt = /* @__PURE__ */ Fe({
|
|
|
5800
5800
|
acceptCallback: o,
|
|
5801
5801
|
rejectCallback: i
|
|
5802
5802
|
});
|
|
5803
|
-
|
|
5803
|
+
Pe.show(a);
|
|
5804
5804
|
}
|
|
5805
5805
|
};
|
|
5806
|
-
oe(
|
|
5807
|
-
let St =
|
|
5806
|
+
oe(Pe, "app", null);
|
|
5807
|
+
let St = Pe;
|
|
5808
5808
|
wt.install = (n) => {
|
|
5809
5809
|
n.component(wt.name, wt), St.app = n, n.provide("FMessageBoxService", St);
|
|
5810
5810
|
};
|
|
@@ -5830,7 +5830,7 @@ const zs = /* @__PURE__ */ Fe({
|
|
|
5830
5830
|
fieldTreeRowOption: x,
|
|
5831
5831
|
fieldSelectionOption: B,
|
|
5832
5832
|
checkAndGetSelectedFields: V,
|
|
5833
|
-
currentComponentType:
|
|
5833
|
+
currentComponentType: N
|
|
5834
5834
|
} = d, M = new Qt();
|
|
5835
5835
|
M.globalConfig = {
|
|
5836
5836
|
position: "top-center"
|
|
@@ -5875,7 +5875,7 @@ const zs = /* @__PURE__ */ Fe({
|
|
|
5875
5875
|
var le;
|
|
5876
5876
|
(le = p == null ? void 0 : p.value) != null && le.clearSelection && p.value.clearSelection();
|
|
5877
5877
|
}
|
|
5878
|
-
function
|
|
5878
|
+
function P() {
|
|
5879
5879
|
return v(_t, {
|
|
5880
5880
|
key: 1,
|
|
5881
5881
|
ref: i,
|
|
@@ -5978,7 +5978,7 @@ const zs = /* @__PURE__ */ Fe({
|
|
|
5978
5978
|
M.warning("请先填写组件标题");
|
|
5979
5979
|
return;
|
|
5980
5980
|
}
|
|
5981
|
-
|
|
5981
|
+
N.value = S.value, h(l.value), p.value.updateDataSource(f.value);
|
|
5982
5982
|
break;
|
|
5983
5983
|
}
|
|
5984
5984
|
}
|
|
@@ -6011,7 +6011,7 @@ const zs = /* @__PURE__ */ Fe({
|
|
|
6011
6011
|
}, null) : "", v("div", {
|
|
6012
6012
|
class: b.value("selectEntity"),
|
|
6013
6013
|
style: "border-radius:10px;"
|
|
6014
|
-
}, [
|
|
6014
|
+
}, [P()]), v("div", {
|
|
6015
6015
|
class: b.value("selectComponentType"),
|
|
6016
6016
|
style: "border-radius:10px;"
|
|
6017
6017
|
}, [Q()]), v("div", {
|
|
@@ -6038,7 +6038,7 @@ const zs = /* @__PURE__ */ Fe({
|
|
|
6038
6038
|
function qs(n, e) {
|
|
6039
6039
|
let t;
|
|
6040
6040
|
function o(s) {
|
|
6041
|
-
var f, p, x, B, V,
|
|
6041
|
+
var f, p, x, B, V, N;
|
|
6042
6042
|
const l = (p = (f = n.parent) == null ? void 0 : f.parent) == null ? void 0 : p.componentInstance;
|
|
6043
6043
|
if (!((V = (B = (x = l == null ? void 0 : l.value) == null ? void 0 : x.schema) == null ? void 0 : B.contents) != null && V.length))
|
|
6044
6044
|
return;
|
|
@@ -6046,7 +6046,7 @@ function qs(n, e) {
|
|
|
6046
6046
|
componentType: "response-form",
|
|
6047
6047
|
bindingSourceContext: s,
|
|
6048
6048
|
parentComponentInstance: l.value
|
|
6049
|
-
}, d = l.value.addNewChildComponentSchema(u, e), g = (
|
|
6049
|
+
}, d = l.value.addNewChildComponentSchema(u, e), g = (N = n.parent) == null ? void 0 : N.schema, h = l.value.schema.contents.findIndex((M) => M.id === (g == null ? void 0 : g.id));
|
|
6050
6050
|
h > -1 && l.value.schema.contents.splice(h + 1, 0, d);
|
|
6051
6051
|
}
|
|
6052
6052
|
function i(s) {
|
|
@@ -6536,7 +6536,7 @@ function Js(n, e) {
|
|
|
6536
6536
|
var E;
|
|
6537
6537
|
const y = n.componentInstance.value.schema;
|
|
6538
6538
|
let C = {};
|
|
6539
|
-
y.contents && y.contents.length > 0 && (C = y.contents.find((
|
|
6539
|
+
y.contents && y.contents.length > 0 && (C = y.contents.find((P) => P.type === rt.section.type) || {});
|
|
6540
6540
|
const b = Object.assign({}, C, {
|
|
6541
6541
|
id: m + "-section",
|
|
6542
6542
|
mainTitle: o.value,
|
|
@@ -6544,7 +6544,7 @@ function Js(n, e) {
|
|
|
6544
6544
|
class: "f-section-form f-section-in-mainsubcard"
|
|
6545
6545
|
},
|
|
6546
6546
|
contents: []
|
|
6547
|
-
}), F = ((E = C.contents) == null ? void 0 : E.find((
|
|
6547
|
+
}), F = ((E = C.contents) == null ? void 0 : E.find((P) => P.type === rt["response-form"].type)) || {}, I = zt(rt["response-form"].type);
|
|
6548
6548
|
return Object.assign(I, F, {
|
|
6549
6549
|
id: m + "-form",
|
|
6550
6550
|
appearance: F.appearance ? De(F.appearance) : {
|
|
@@ -6561,13 +6561,13 @@ function Js(n, e) {
|
|
|
6561
6561
|
return m.states.forEach((b) => {
|
|
6562
6562
|
i.value.forEach((F) => {
|
|
6563
6563
|
function I(E) {
|
|
6564
|
-
Object.keys(E).forEach((
|
|
6565
|
-
const G = E[
|
|
6564
|
+
Object.keys(E).forEach((P) => {
|
|
6565
|
+
const G = E[P];
|
|
6566
6566
|
if (G && G.type === "Variable" && G.field === b.id) {
|
|
6567
6567
|
let Q = y.find((j) => j.id === b.id);
|
|
6568
6568
|
Q || (Q = Object.assign({}, b, {
|
|
6569
6569
|
newId: mn().guid()
|
|
6570
|
-
}), y.push(Q), r.value.push(b.id)), E[
|
|
6570
|
+
}), y.push(Q), r.value.push(b.id)), E[P].field = Q.newId;
|
|
6571
6571
|
}
|
|
6572
6572
|
});
|
|
6573
6573
|
}
|
|
@@ -6606,12 +6606,12 @@ function Js(n, e) {
|
|
|
6606
6606
|
const F = n.parent.parent.componentInstance.value.schema;
|
|
6607
6607
|
if (!(F != null && F.contents))
|
|
6608
6608
|
return;
|
|
6609
|
-
const I = F.contents.findIndex((
|
|
6609
|
+
const I = F.contents.findIndex((P) => P.component === c);
|
|
6610
6610
|
if (I > -1) {
|
|
6611
6611
|
const {
|
|
6612
|
-
formSchemaUtils:
|
|
6612
|
+
formSchemaUtils: P
|
|
6613
6613
|
} = e;
|
|
6614
|
-
|
|
6614
|
+
P.getComponents().push(m), P.getViewModels().push(C), F.contents.splice(I + 1, 0, y);
|
|
6615
6615
|
}
|
|
6616
6616
|
}
|
|
6617
6617
|
function h() {
|
|
@@ -6622,8 +6622,8 @@ function Js(n, e) {
|
|
|
6622
6622
|
formSchemaUtils: C
|
|
6623
6623
|
} = e, b = C.getViewModelIdByComponentId(c), F = C.getViewModelById(b), {
|
|
6624
6624
|
code: I
|
|
6625
|
-
} = y.getTableInfoByViewModelId(b), E = I + "-" + Math.random().toString(36).slice(2, 6),
|
|
6626
|
-
Object.assign(
|
|
6625
|
+
} = y.getTableInfoByViewModelId(b), E = I + "-" + Math.random().toString(36).slice(2, 6), P = zt("component-ref");
|
|
6626
|
+
Object.assign(P, {
|
|
6627
6627
|
id: E + "-component-ref",
|
|
6628
6628
|
component: E + "-component"
|
|
6629
6629
|
});
|
|
@@ -6635,7 +6635,7 @@ function Js(n, e) {
|
|
|
6635
6635
|
appearance: m.appearance ? De(m.appearance) : null,
|
|
6636
6636
|
formColumns: m.formColumns,
|
|
6637
6637
|
contents: j
|
|
6638
|
-
}), g(Q,
|
|
6638
|
+
}), g(Q, P, G), G;
|
|
6639
6639
|
}
|
|
6640
6640
|
function f() {
|
|
6641
6641
|
if (!e)
|
|
@@ -6678,7 +6678,7 @@ function Js(n, e) {
|
|
|
6678
6678
|
} = e, C = y.getViewModelIdByComponentId(c), b = y.getViewModelById(C), F = {};
|
|
6679
6679
|
i.value.forEach((E) => {
|
|
6680
6680
|
var Q;
|
|
6681
|
-
const
|
|
6681
|
+
const P = E.type === "form-group" && E.editor ? E.editor.type : E.type, G = (Q = Xt[P]) == null ? void 0 : Q.events;
|
|
6682
6682
|
G && Object.keys(E).forEach((j) => {
|
|
6683
6683
|
const D = Object.keys(G).find((X) => X === j);
|
|
6684
6684
|
if (D && E[D]) {
|
|
@@ -6692,14 +6692,14 @@ function Js(n, e) {
|
|
|
6692
6692
|
});
|
|
6693
6693
|
const I = ["valueChanging", "valueChanged"];
|
|
6694
6694
|
m.fields.forEach((E) => {
|
|
6695
|
-
I.forEach((
|
|
6696
|
-
if (E[
|
|
6697
|
-
const G = b.commands.find((Q) => Q.code === E[
|
|
6695
|
+
I.forEach((P) => {
|
|
6696
|
+
if (E[P]) {
|
|
6697
|
+
const G = b.commands.find((Q) => Q.code === E[P]);
|
|
6698
6698
|
if (F[G.code])
|
|
6699
|
-
E[
|
|
6699
|
+
E[P] = F[G.code].code;
|
|
6700
6700
|
else {
|
|
6701
6701
|
const Q = x(G);
|
|
6702
|
-
F[G.code] = Q, m.commands.push(Q), E[
|
|
6702
|
+
F[G.code] = Q, m.commands.push(Q), E[P] = Q.code;
|
|
6703
6703
|
}
|
|
6704
6704
|
}
|
|
6705
6705
|
});
|
|
@@ -6710,19 +6710,19 @@ function Js(n, e) {
|
|
|
6710
6710
|
for (const b of m.contents)
|
|
6711
6711
|
V(b, y, C);
|
|
6712
6712
|
}
|
|
6713
|
-
function
|
|
6713
|
+
function N() {
|
|
6714
6714
|
if (!r.value.length)
|
|
6715
6715
|
return;
|
|
6716
|
-
const m = e == null ? void 0 : e.formSchemaUtils, y = m.getComponentById(c), C = [], b = (E,
|
|
6716
|
+
const m = e == null ? void 0 : e.formSchemaUtils, y = m.getComponentById(c), C = [], b = (E, P) => {
|
|
6717
6717
|
E && (Object.keys(E).forEach((G) => {
|
|
6718
6718
|
const Q = E[G];
|
|
6719
|
-
Q && typeof Q == "object" && Q.type === Go.Variable && r.value.includes(Q.field) && !
|
|
6720
|
-
}), E.editor && b(E.editor,
|
|
6719
|
+
Q && typeof Q == "object" && Q.type === Go.Variable && r.value.includes(Q.field) && !P.includes(Q.field) && P.push(Q.field);
|
|
6720
|
+
}), E.editor && b(E.editor, P));
|
|
6721
6721
|
};
|
|
6722
6722
|
V(y, b, C);
|
|
6723
6723
|
const F = m.getViewModelIdByComponentId(c), I = m.getViewModelById(F);
|
|
6724
6724
|
r.value.forEach((E) => {
|
|
6725
|
-
C.includes(E) || (I.states = I.states.filter((
|
|
6725
|
+
C.includes(E) || (I.states = I.states.filter((P) => P.id !== E));
|
|
6726
6726
|
});
|
|
6727
6727
|
}
|
|
6728
6728
|
function M(m) {
|
|
@@ -6732,7 +6732,7 @@ function Js(n, e) {
|
|
|
6732
6732
|
} = m;
|
|
6733
6733
|
o.value = m.componentTitle, s(y);
|
|
6734
6734
|
const C = h();
|
|
6735
|
-
f(), p(), B(C),
|
|
6735
|
+
f(), p(), B(C), N(), (b = t == null ? void 0 : t.modalRef) != null && b.value.close && ((F = t == null ? void 0 : t.modalRef) == null || F.value.close()), Vn.value++, Mt(() => {
|
|
6736
6736
|
In();
|
|
6737
6737
|
});
|
|
6738
6738
|
}
|
|
@@ -6786,8 +6786,8 @@ function Qs(n, e) {
|
|
|
6786
6786
|
return " display: inherit;flex-direction: inherit;margin-bottom:10px";
|
|
6787
6787
|
}
|
|
6788
6788
|
function u(V) {
|
|
6789
|
-
const
|
|
6790
|
-
return
|
|
6789
|
+
const N = new Kr(V, e), { schema: M } = n;
|
|
6790
|
+
return N.getPropertyConfig(M);
|
|
6791
6791
|
}
|
|
6792
6792
|
function d() {
|
|
6793
6793
|
var S, O, m, y;
|
|
@@ -6807,19 +6807,19 @@ function Qs(n, e) {
|
|
|
6807
6807
|
}
|
|
6808
6808
|
}
|
|
6809
6809
|
function g() {
|
|
6810
|
-
const V = e == null ? void 0 : e.designViewModelUtils,
|
|
6811
|
-
if (V &&
|
|
6812
|
-
const w =
|
|
6813
|
-
V.deleteViewModelById(w),
|
|
6810
|
+
const V = e == null ? void 0 : e.designViewModelUtils, N = e == null ? void 0 : e.formSchemaUtils, M = n == null ? void 0 : n.schema;
|
|
6811
|
+
if (V && N) {
|
|
6812
|
+
const w = N.getViewModelIdByComponentId(M.id);
|
|
6813
|
+
V.deleteViewModelById(w), N.deleteComponent(M.id);
|
|
6814
6814
|
}
|
|
6815
6815
|
}
|
|
6816
6816
|
function h() {
|
|
6817
|
-
const V = e == null ? void 0 : e.designViewModelUtils,
|
|
6817
|
+
const V = e == null ? void 0 : e.designViewModelUtils, N = e == null ? void 0 : e.formSchemaUtils, M = n == null ? void 0 : n.schema, w = N.getViewModelIdByComponentId(M.id), S = V.getDgViewModel(w);
|
|
6818
6818
|
S != null && S.fields && S.fields.forEach((O) => {
|
|
6819
|
-
const m =
|
|
6819
|
+
const m = N.getExpressions();
|
|
6820
6820
|
if (m != null && m.length) {
|
|
6821
6821
|
const y = m.findIndex((C) => C.target === O.id);
|
|
6822
|
-
y > -1 &&
|
|
6822
|
+
y > -1 && N.getExpressions().splice(y, 1);
|
|
6823
6823
|
}
|
|
6824
6824
|
});
|
|
6825
6825
|
}
|
|
@@ -6827,8 +6827,8 @@ function Qs(n, e) {
|
|
|
6827
6827
|
d(), h(), g();
|
|
6828
6828
|
}
|
|
6829
6829
|
function p() {
|
|
6830
|
-
const { schema: V } = n,
|
|
6831
|
-
return V.componentType === "form" &&
|
|
6830
|
+
const { schema: V } = n, N = [];
|
|
6831
|
+
return V.componentType === "form" && N.push(
|
|
6832
6832
|
{
|
|
6833
6833
|
id: "splitFormComponent",
|
|
6834
6834
|
title: "拆分卡片",
|
|
@@ -6845,7 +6845,7 @@ function Qs(n, e) {
|
|
|
6845
6845
|
qs(n, e).addSiblingComponent(M);
|
|
6846
6846
|
}
|
|
6847
6847
|
}
|
|
6848
|
-
),
|
|
6848
|
+
), N;
|
|
6849
6849
|
}
|
|
6850
6850
|
function x() {
|
|
6851
6851
|
if (!e || !(n != null && n.schema))
|
|
@@ -6866,12 +6866,12 @@ function Qs(n, e) {
|
|
|
6866
6866
|
}
|
|
6867
6867
|
}
|
|
6868
6868
|
function B() {
|
|
6869
|
-
var V,
|
|
6869
|
+
var V, N, M;
|
|
6870
6870
|
if (n && e) {
|
|
6871
6871
|
const { formSchemaUtils: w } = e;
|
|
6872
6872
|
let S = "", O = "";
|
|
6873
6873
|
const m = w.getRootViewModelId(), y = w.getComponentByViewModelId(m), C = w.selectNode(y, (F) => F.contents && F.contents.find((I) => I.component === n.schema.id));
|
|
6874
|
-
(C == null ? void 0 : C.type) === ((V = $["tab-page"]) == null ? void 0 : V.type) && ((
|
|
6874
|
+
(C == null ? void 0 : C.type) === ((V = $["tab-page"]) == null ? void 0 : V.type) && ((N = C == null ? void 0 : C.contents) != null && N.length) && (S = C.title || ""), (C == null ? void 0 : C.type) === ((M = $.section) == null ? void 0 : M.type) && (C == null ? void 0 : C.showHeader) !== !1 && (S = C.mainTitle || ""), S = S ? `${S} > ` : "", O = S ? C.id : "";
|
|
6875
6875
|
const b = x();
|
|
6876
6876
|
w.getControlBasicInfoMap().set(n.schema.id, {
|
|
6877
6877
|
componentTitle: b,
|