@farris/ui-vue 1.6.5-beta.7 → 1.6.5-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +65 -65
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +28 -29
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +521 -517
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +134 -134
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +192 -192
- package/components/capsule/index.umd.cjs +1 -1
- package/components/code-editor/index.esm.js +8 -8
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +72 -72
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +291 -289
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +163 -157
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +113 -112
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +3 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +10 -10
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1122 -1121
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +190 -190
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2693 -2693
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1604 -1601
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1082 -1079
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +973 -1040
- package/components/discussion-editor/index.umd.cjs +6 -6
- package/components/dropdown/index.esm.js +335 -330
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +8 -8
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +6 -6
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +344 -344
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +8 -8
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1470 -1460
- package/components/expression-editor/index.umd.cjs +3 -3
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +853 -843
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +922 -911
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +12 -12
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/html-template/index.esm.js +164 -164
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +198 -198
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +64 -64
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +140 -140
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +111 -111
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +90 -90
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +104 -108
- package/components/list-view/index.umd.cjs +3 -3
- package/components/locale/index.esm.js +833 -901
- package/components/locale/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +1352 -1351
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1311 -1307
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +1059 -1127
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.esm.js +7 -7
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +9 -9
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +106 -106
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +326 -326
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +168 -167
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +739 -737
- package/components/order/index.umd.cjs +4 -4
- package/components/page-footer/index.esm.js +94 -94
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +942 -939
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +82 -82
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +1 -1
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +113 -113
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.esm.js +151 -150
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +565 -565
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4142 -4190
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +182 -182
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +106 -106
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +409 -409
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1488 -1478
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +779 -776
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1765 -1762
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/search-box/index.esm.js +114 -114
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1184 -1181
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +163 -163
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +927 -916
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/splitter/index.esm.js +3 -3
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +133 -133
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +76 -72
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1527 -1524
- package/components/tabs/index.umd.cjs +2 -2
- package/components/tags/index.esm.js +93 -93
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +138 -138
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +361 -361
- package/components/textarea/index.umd.cjs +2 -2
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +130 -134
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +25 -25
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +1746 -1743
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +170 -170
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +196 -196
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +8 -8
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +9 -9
- package/components/weather/index.umd.cjs +2 -2
- package/farris.all.esm.js +16987 -17002
- package/farris.all.umd.cjs +27 -27
- package/package.json +1 -1
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
- package/components/time-picker/index.css +0 -1
- package/components/time-picker/index.esm.js +0 -9793
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/time-picker/package.json +0 -8
- package/components/time-picker/style.js +0 -6
- package/designer/button-edit/index.css +0 -1
- package/designer/button-edit/index.esm.js +0 -4856
- package/designer/button-edit/index.umd.cjs +0 -1
- package/designer/checkbox/index.esm.js +0 -250
- package/designer/checkbox/index.umd.cjs +0 -1
- package/designer/checkbox-group/index.esm.js +0 -377
- package/designer/checkbox-group/index.umd.cjs +0 -1
- package/designer/data-grid/index.css +0 -1
- package/designer/data-grid/index.esm.js +0 -15413
- package/designer/data-grid/index.umd.cjs +0 -23
- package/designer/data-view/index.esm.js +0 -854
- package/designer/data-view/index.umd.cjs +0 -38
- package/designer/drawer/index.css +0 -1
- package/designer/drawer/index.esm.js +0 -525
- package/designer/drawer/index.umd.cjs +0 -1
- package/designer/farris-designer.all.esm.js +0 -22320
- package/designer/farris-designer.all.umd.cjs +0 -34
- package/designer/index.css +0 -1
- package/designer/input-group/index.esm.js +0 -1098
- package/designer/input-group/index.umd.cjs +0 -1
- package/designer/list-view/index.css +0 -1
- package/designer/list-view/index.esm.js +0 -4675
- package/designer/list-view/index.umd.cjs +0 -40
- package/designer/radio-group/index.css +0 -1
- package/designer/radio-group/index.esm.js +0 -6980
- package/designer/radio-group/index.umd.cjs +0 -1
- package/designer/tree-grid/index.esm.js +0 -1099
- package/designer/tree-grid/index.umd.cjs +0 -1
|
@@ -2,11 +2,11 @@ var Rn = Object.defineProperty;
|
|
|
2
2
|
var Ln = (e, n, t) => n in e ? Rn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var K = (e, n, t) => Ln(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
4
|
import { ref as h, computed as H, defineComponent as Re, watch as ye, createVNode as g, createTextVNode as At, mergeProps as xt, reactive as _e, withDirectives as nn, resolveDirective as $n, Fragment as ot, inject as Xt, onMounted as rt, onBeforeMount as on, vModelText as Dn, nextTick as ct, createApp as rn, onUnmounted as St, Transition as an, Teleport as jn, shallowRef as Hn, render as Dt, h as An, cloneVNode as zn } from "vue";
|
|
5
|
-
import {
|
|
5
|
+
import { cloneDeep as yt, isPlainObject as Yt, debounce as Un, isUndefined as Ye } from "lodash-es";
|
|
6
6
|
import qn from "../accordion/index.esm.js";
|
|
7
7
|
import _n from "../avatar/index.esm.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import Wn from "../../designer/button-edit/index.esm.js";
|
|
9
|
+
import Gn from "../button-group/index.esm.js";
|
|
10
10
|
import Xn from "../calendar/index.esm.js";
|
|
11
11
|
import Yn from "../capsule/index.esm.js";
|
|
12
12
|
import Jt from "../../designer/checkbox/index.esm.js";
|
|
@@ -22,8 +22,8 @@ import oo from "../dropdown/index.esm.js";
|
|
|
22
22
|
import io from "../dynamic-form/index.esm.js";
|
|
23
23
|
import ro from "../events-editor/index.esm.js";
|
|
24
24
|
import ao from "../filter-bar/index.esm.js";
|
|
25
|
-
import
|
|
26
|
-
import
|
|
25
|
+
import so from "../field-selector/index.esm.js";
|
|
26
|
+
import lo from "../binding-selector/index.esm.js";
|
|
27
27
|
import uo from "../image-cropper/index.esm.js";
|
|
28
28
|
import co from "../../designer/input-group/index.esm.js";
|
|
29
29
|
import fo from "../layout/index.esm.js";
|
|
@@ -60,8 +60,8 @@ import zo from "../tree-view/index.esm.js";
|
|
|
60
60
|
import Uo from "../uploader/index.esm.js";
|
|
61
61
|
import qo from "../verify-detail/index.esm.js";
|
|
62
62
|
import _o from "../video/index.esm.js";
|
|
63
|
-
import
|
|
64
|
-
import
|
|
63
|
+
import Wo from "../textarea/index.esm.js";
|
|
64
|
+
import Go from "../schema-selector/index.esm.js";
|
|
65
65
|
import Xo from "../../designer/tree-grid/index.esm.js";
|
|
66
66
|
import Yo from "../event-parameter/index.esm.js";
|
|
67
67
|
import Jo from "../filter-condition-editor/index.esm.js";
|
|
@@ -75,16 +75,16 @@ import oi from "../expression-editor/index.esm.js";
|
|
|
75
75
|
import ii from "../code-editor/index.esm.js";
|
|
76
76
|
import ri from "../html-template/index.esm.js";
|
|
77
77
|
import ai from "../collection-property-editor/index.esm.js";
|
|
78
|
-
import
|
|
79
|
-
import
|
|
78
|
+
import si from "../modal/index.esm.js";
|
|
79
|
+
import li from "../external-container/index.esm.js";
|
|
80
80
|
import ui from "../language-textbox/index.esm.js";
|
|
81
81
|
import { DgControl as Zt } from "../designer-canvas/index.esm.js";
|
|
82
82
|
import { getCustomClass as ci, withInstall as di, FormSchemaEntityField$Type as bt, FormSchemaEntityFieldTypeName as Kt, getMaxZIndex as fi, FormSchemaEntityFieldType$Type as pi } from "../common/index.esm.js";
|
|
83
83
|
import { useI18n as zt } from "vue-i18n";
|
|
84
84
|
import { LocaleService as Ft } from "../locale/index.esm.js";
|
|
85
85
|
import { useResizeObserver as mi } from "@vueuse/core";
|
|
86
|
-
import { getHierarchyRow as vi, useIdentify as gi, useGroupData as hi, useFilter as yi, useHierarchy as bi, useLoading as Ci, useDataView as wi, useSelection as xi, useSelectHierarchyItem as Si, usePagination as Fi, useDataViewContainerStyle as Ti, useCommandColumn as Ei, useSettingColumn as Ii, useColumn as Mi, useSort as ki, useGroupColumn as Bi, useRow as Pi, useEdit as Vi, useVisualDataBound as Oi, useVisualDataCell as Ni, useVisualDataRow as Ri, useVisualData as Li, useCellPosition as $i, useSidebar as Di, useVirtualScroll as ji, useFitColumn as Hi, useFilterHistory as Ai, useColumnFilter as zi, useDragColumn as Ui, getColumnHeader as qi, getSidebar as _i, getDisableMask as
|
|
87
|
-
import { createPropsResolver as
|
|
86
|
+
import { getHierarchyRow as vi, useIdentify as gi, useGroupData as hi, useFilter as yi, useHierarchy as bi, useLoading as Ci, useDataView as wi, useSelection as xi, useSelectHierarchyItem as Si, usePagination as Fi, useDataViewContainerStyle as Ti, useCommandColumn as Ei, useSettingColumn as Ii, useColumn as Mi, useSort as ki, useGroupColumn as Bi, useRow as Pi, useEdit as Vi, useVisualDataBound as Oi, useVisualDataCell as Ni, useVisualDataRow as Ri, useVisualData as Li, useCellPosition as $i, useSidebar as Di, useVirtualScroll as ji, useFitColumn as Hi, useFilterHistory as Ai, useColumnFilter as zi, useDragColumn as Ui, getColumnHeader as qi, getSidebar as _i, getDisableMask as Wi, getHorizontalScrollbar as Gi, getVerticalScrollbar as Xi, getEmpty as Yi, getPagination as Ji, getSummary as Qi } from "../data-view/index.esm.js";
|
|
87
|
+
import { createPropsResolver as sn, resolveAppearance as Zi } from "../dynamic-resolver/index.esm.js";
|
|
88
88
|
import "../property-panel/index.esm.js";
|
|
89
89
|
import "../notify/index.esm.js";
|
|
90
90
|
const Ki = {
|
|
@@ -117,11 +117,11 @@ const Ki = {
|
|
|
117
117
|
propertyChanged: { type: Function }
|
|
118
118
|
};
|
|
119
119
|
function er(e = {}) {
|
|
120
|
-
function n(u, m,
|
|
121
|
-
if (typeof
|
|
122
|
-
return p[u].length ===
|
|
123
|
-
if (typeof
|
|
124
|
-
const c = Object.keys(
|
|
120
|
+
function n(u, m, l, p) {
|
|
121
|
+
if (typeof l == "number")
|
|
122
|
+
return p[u].length === l;
|
|
123
|
+
if (typeof l == "object") {
|
|
124
|
+
const c = Object.keys(l)[0], f = l[c];
|
|
125
125
|
if (c === "not")
|
|
126
126
|
return Number(p[u].length) !== Number(f);
|
|
127
127
|
if (c === "moreThan")
|
|
@@ -131,8 +131,8 @@ function er(e = {}) {
|
|
|
131
131
|
}
|
|
132
132
|
return !1;
|
|
133
133
|
}
|
|
134
|
-
function t(u, m,
|
|
135
|
-
return p[u] && p[u].propertyValue && String(p[u].propertyValue.value) === String(
|
|
134
|
+
function t(u, m, l, p) {
|
|
135
|
+
return p[u] && p[u].propertyValue && String(p[u].propertyValue.value) === String(l);
|
|
136
136
|
}
|
|
137
137
|
const o = /* @__PURE__ */ new Map([
|
|
138
138
|
["length", n],
|
|
@@ -140,35 +140,35 @@ function er(e = {}) {
|
|
|
140
140
|
]);
|
|
141
141
|
Object.keys(e).reduce((u, m) => (u.set(m, e[m]), u), o);
|
|
142
142
|
function i(u, m) {
|
|
143
|
-
const
|
|
144
|
-
return typeof m == "number" ? [{ target:
|
|
143
|
+
const l = u;
|
|
144
|
+
return typeof m == "number" ? [{ target: l, operator: "length", param: null, value: Number(m) }] : typeof m == "boolean" ? [{ target: l, operator: "getProperty", param: u, value: !!m }] : typeof m == "object" ? Object.keys(m).map((p) => {
|
|
145
145
|
if (p === "length")
|
|
146
|
-
return { target:
|
|
146
|
+
return { target: l, operator: "length", param: null, value: m[p] };
|
|
147
147
|
const c = p, f = m[p];
|
|
148
|
-
return { target:
|
|
148
|
+
return { target: l, operator: "getProperty", param: c, value: f };
|
|
149
149
|
}) : [];
|
|
150
150
|
}
|
|
151
151
|
function r(u) {
|
|
152
|
-
return Object.keys(u).reduce((
|
|
152
|
+
return Object.keys(u).reduce((l, p) => {
|
|
153
153
|
const c = i(p, u[p]);
|
|
154
|
-
return
|
|
154
|
+
return l.push(...c), l;
|
|
155
155
|
}, []);
|
|
156
156
|
}
|
|
157
157
|
function a(u, m) {
|
|
158
158
|
if (o.has(u.operator)) {
|
|
159
|
-
const
|
|
160
|
-
return
|
|
159
|
+
const l = o.get(u.operator);
|
|
160
|
+
return l && l(u.target, u.param, u.value, m) || !1;
|
|
161
161
|
}
|
|
162
162
|
return !1;
|
|
163
163
|
}
|
|
164
164
|
function d(u, m) {
|
|
165
165
|
return r(u).reduce((c, f) => c && a(f, m), !0);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
const
|
|
167
|
+
function s(u, m) {
|
|
168
|
+
const l = Object.keys(u), p = l.includes("allOf"), c = l.includes("anyOf"), f = p || c, T = (f ? u[f ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((A) => d(A, m));
|
|
169
169
|
return p ? !T.includes(!1) : T.includes(!0);
|
|
170
170
|
}
|
|
171
|
-
return { parseValueSchema:
|
|
171
|
+
return { parseValueSchema: s };
|
|
172
172
|
}
|
|
173
173
|
const tr = {
|
|
174
174
|
convertTo: (e, n, t, o) => {
|
|
@@ -271,7 +271,7 @@ const tr = {
|
|
|
271
271
|
}
|
|
272
272
|
return "none";
|
|
273
273
|
}
|
|
274
|
-
},
|
|
274
|
+
}, sr = {
|
|
275
275
|
convertTo: (e, n, t, o) => {
|
|
276
276
|
e.command ? e.command[n] = t : e.command = {
|
|
277
277
|
[n]: t
|
|
@@ -289,7 +289,7 @@ const tr = {
|
|
|
289
289
|
]));
|
|
290
290
|
},
|
|
291
291
|
convertFrom: (e, n, t) => e.command && n === "enable" ? e.command.enable : ""
|
|
292
|
-
},
|
|
292
|
+
}, lr = {
|
|
293
293
|
convertTo: (e, n, t, o) => {
|
|
294
294
|
e.column ? e.column[n] = t : e.column = {
|
|
295
295
|
[n]: t
|
|
@@ -411,7 +411,7 @@ const tr = {
|
|
|
411
411
|
return "";
|
|
412
412
|
}
|
|
413
413
|
};
|
|
414
|
-
function
|
|
414
|
+
function ln(e, n, t) {
|
|
415
415
|
const o = /* @__PURE__ */ new Map([
|
|
416
416
|
["/converter/appearance.converter", tr],
|
|
417
417
|
["/converter/buttons.converter", nr],
|
|
@@ -420,8 +420,8 @@ function sn(e, n, t) {
|
|
|
420
420
|
["/converter/type.converter", ir],
|
|
421
421
|
["/converter/change-editor.converter", rr],
|
|
422
422
|
["/converter/change-formatter.converter", ar],
|
|
423
|
-
["/converter/column-command.converter",
|
|
424
|
-
["/converter/column-option.converter",
|
|
423
|
+
["/converter/column-command.converter", sr],
|
|
424
|
+
["/converter/column-option.converter", lr],
|
|
425
425
|
["/converter/summary.converter", ur],
|
|
426
426
|
["/converter/group.converter", cr],
|
|
427
427
|
["/converter/form-group-label.converter", gr],
|
|
@@ -465,7 +465,7 @@ function sn(e, n, t) {
|
|
|
465
465
|
function d(f, v, y) {
|
|
466
466
|
return f.includes("visible") && v.visible !== void 0 ? typeof v.visible == "boolean" ? () => !!v.visible : v.visible === void 0 ? !0 : a(v.visible, y) : () => !0;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function s(f, v, y) {
|
|
469
469
|
return f.includes("readonly") && v.readonly !== void 0 ? typeof v.readonly == "boolean" ? () => !!v.readonly : a(v.readonly, y) : () => !1;
|
|
470
470
|
}
|
|
471
471
|
function u(f, v) {
|
|
@@ -474,7 +474,7 @@ function sn(e, n, t) {
|
|
|
474
474
|
}
|
|
475
475
|
function m(f, v, y, T, E, A = "", k = "") {
|
|
476
476
|
return Object.keys(f).map((C) => {
|
|
477
|
-
const x = h(1), w = C, M = f[C], O = Object.keys(M), F = M.title, J = M.type,
|
|
477
|
+
const x = h(1), w = C, M = f[C], O = Object.keys(M), F = M.title, J = M.type, G = i.get(J) || { type: "input-group", enableClear: !1 }, q = M.editor ? Object.assign({}, G, M.editor) : Object.assign({}, G), Q = d(O, M, v), ie = s(O, M, v);
|
|
478
478
|
q.readonly = q.readonly === void 0 ? ie() : q.readonly;
|
|
479
479
|
const fe = M.type === "cascade" ? m(M.properties, v, y, T, E, A, k) : [], N = !0;
|
|
480
480
|
let B = u(M, k);
|
|
@@ -495,7 +495,7 @@ function sn(e, n, t) {
|
|
|
495
495
|
return v[w] = te, te;
|
|
496
496
|
});
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function l(f, v, y = {}) {
|
|
499
499
|
const T = {}, E = e[f];
|
|
500
500
|
return E && E.categories ? Object.keys(E.categories).map((k) => {
|
|
501
501
|
const S = E.categories[k], C = S == null ? void 0 : S.title, x = m(S.properties || {}, T, {}, y, v);
|
|
@@ -509,8 +509,8 @@ function sn(e, n, t) {
|
|
|
509
509
|
k && Object.keys(O.properties).forEach((q) => {
|
|
510
510
|
O.properties[q].$converter = k;
|
|
511
511
|
});
|
|
512
|
-
const J = (O == null ? void 0 : O.properties) || {},
|
|
513
|
-
return { categoryId: f, categoryName: F, properties:
|
|
512
|
+
const J = (O == null ? void 0 : O.properties) || {}, G = m(J, w, x, S, T, E);
|
|
513
|
+
return { categoryId: f, categoryName: F, properties: G };
|
|
514
514
|
}
|
|
515
515
|
return { categoryId: f, categoryName: "", properties: [] };
|
|
516
516
|
}
|
|
@@ -525,30 +525,30 @@ function sn(e, n, t) {
|
|
|
525
525
|
x.push(p(w, M, f, v, T));
|
|
526
526
|
return;
|
|
527
527
|
}
|
|
528
|
-
const O = M == null ? void 0 : M.title, F = M == null ? void 0 : M.tabId, J = M == null ? void 0 : M.tabName,
|
|
529
|
-
x.push({ categoryId: w, categoryName: O, tabId: F, tabName: J, hide:
|
|
528
|
+
const O = M == null ? void 0 : M.title, F = M == null ? void 0 : M.tabId, J = M == null ? void 0 : M.tabName, G = M == null ? void 0 : M.hide, q = M == null ? void 0 : M.hideTitle, Q = m(M.properties || {}, S, k, f, v, T, M.$converter), { setPropertyRelates: ie } = M, fe = M == null ? void 0 : M.parentPropertyID;
|
|
529
|
+
x.push({ categoryId: w, categoryName: O, tabId: F, tabName: J, hide: G, properties: Q, hideTitle: q, setPropertyRelates: ie, parentPropertyID: fe });
|
|
530
530
|
}), x;
|
|
531
531
|
}
|
|
532
532
|
return [];
|
|
533
533
|
}
|
|
534
534
|
return {
|
|
535
535
|
getPropertyConfigBySchema: c,
|
|
536
|
-
getPropertyConfigByType:
|
|
536
|
+
getPropertyConfigByType: l,
|
|
537
537
|
propertyConverterMap: o
|
|
538
538
|
};
|
|
539
539
|
}
|
|
540
540
|
function un(e, n) {
|
|
541
541
|
let t;
|
|
542
|
-
function o(
|
|
543
|
-
const { properties: p, title: c, ignore: f } =
|
|
542
|
+
function o(l) {
|
|
543
|
+
const { properties: p, title: c, ignore: f } = l, v = f && Array.isArray(f), y = Object.keys(p).reduce((T, E) => ((!v || !f.find((A) => A === E)) && (T[E] = p[E].type === "object" && p[E].properties ? o(p[E]) : yt(p[E].default)), T), {});
|
|
544
544
|
if (c && (!v || !f.find((T) => T === "id"))) {
|
|
545
545
|
const T = c.toLowerCase().replace(/-/g, "_");
|
|
546
546
|
y.id = `${T}_${Math.random().toString().slice(2, 6)}`;
|
|
547
547
|
}
|
|
548
548
|
return y;
|
|
549
549
|
}
|
|
550
|
-
function i(
|
|
551
|
-
const { properties: p, title: c, required: f } =
|
|
550
|
+
function i(l) {
|
|
551
|
+
const { properties: p, title: c, required: f } = l;
|
|
552
552
|
if (f && Array.isArray(f)) {
|
|
553
553
|
const v = f.reduce((y, T) => (y[T] = p[T].type === "object" && p[T].properties ? o(p[T]) : yt(p[T].default), y), {});
|
|
554
554
|
if (c && f.find((y) => y === "id")) {
|
|
@@ -561,60 +561,60 @@ function un(e, n) {
|
|
|
561
561
|
type: c
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
|
-
function r(
|
|
565
|
-
const f = e[
|
|
564
|
+
function r(l, p = {}, c) {
|
|
565
|
+
const f = e[l];
|
|
566
566
|
if (f) {
|
|
567
567
|
let v = i(f);
|
|
568
|
-
const y = n[
|
|
568
|
+
const y = n[l];
|
|
569
569
|
return v = y ? y({ getSchemaByType: r }, v, p, c) : v, t != null && t.appendIdentifyForNewControl && t.appendIdentifyForNewControl(v), v;
|
|
570
570
|
}
|
|
571
571
|
return null;
|
|
572
572
|
}
|
|
573
|
-
function a(
|
|
573
|
+
function a(l, p) {
|
|
574
574
|
const c = o(p);
|
|
575
|
-
return Object.keys(c).reduce((f, v) => (Object.prototype.hasOwnProperty.call(
|
|
575
|
+
return Object.keys(c).reduce((f, v) => (Object.prototype.hasOwnProperty.call(l, v) && (f[v] && Yt(f[v]) && Yt(l[v] || !l[v]) ? Object.assign(f[v], l[v] || {}) : f[v] = l[v]), f), c), c;
|
|
576
576
|
}
|
|
577
|
-
function d(
|
|
578
|
-
return Object.keys(
|
|
577
|
+
function d(l, p) {
|
|
578
|
+
return Object.keys(l).filter((f) => l[f] != null).reduce((f, v) => {
|
|
579
579
|
if (p.has(v)) {
|
|
580
580
|
const y = p.get(v);
|
|
581
581
|
if (typeof y == "string")
|
|
582
|
-
f[y] =
|
|
582
|
+
f[y] = l[v];
|
|
583
583
|
else {
|
|
584
|
-
const T = y(v,
|
|
584
|
+
const T = y(v, l[v], l);
|
|
585
585
|
Object.assign(f, T);
|
|
586
586
|
}
|
|
587
587
|
} else
|
|
588
|
-
f[v] =
|
|
588
|
+
f[v] = l[v];
|
|
589
589
|
return f;
|
|
590
590
|
}, {});
|
|
591
591
|
}
|
|
592
|
-
function l
|
|
593
|
-
const f = a(
|
|
592
|
+
function s(l, p, c = /* @__PURE__ */ new Map()) {
|
|
593
|
+
const f = a(l, p);
|
|
594
594
|
return d(f, c);
|
|
595
595
|
}
|
|
596
|
-
function u(
|
|
596
|
+
function u(l) {
|
|
597
597
|
var c;
|
|
598
|
-
const p =
|
|
598
|
+
const p = l.type;
|
|
599
599
|
if (p) {
|
|
600
600
|
const f = e[p];
|
|
601
601
|
if (!f)
|
|
602
|
-
return
|
|
603
|
-
const v = a(
|
|
602
|
+
return l;
|
|
603
|
+
const v = a(l, f), y = ((c = l.editor) == null ? void 0 : c.type) || "";
|
|
604
604
|
if (y) {
|
|
605
|
-
const T = e[y], E = a(
|
|
605
|
+
const T = e[y], E = a(l.editor, T);
|
|
606
606
|
v.editor = E;
|
|
607
607
|
}
|
|
608
608
|
return v;
|
|
609
609
|
}
|
|
610
|
-
return
|
|
610
|
+
return l;
|
|
611
611
|
}
|
|
612
|
-
function m(
|
|
613
|
-
t =
|
|
612
|
+
function m(l) {
|
|
613
|
+
t = l;
|
|
614
614
|
}
|
|
615
|
-
return { getSchemaByType: r, resolveSchemaWithDefaultValue: u, resolveSchemaToProps:
|
|
615
|
+
return { getSchemaByType: r, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: s, mappingSchemaToProps: d, setDesignerContext: m };
|
|
616
616
|
}
|
|
617
|
-
const cn = {}, dn = {}, { resolveSchemaWithDefaultValue: xr } = un(cn, dn), fn = {}, pn = {}, { getPropertyConfigBySchema: jt } =
|
|
617
|
+
const cn = {}, dn = {}, { getSchemaByType: ru, resolveSchemaWithDefaultValue: xr, resolveSchemaToProps: au, mappingSchemaToProps: su, setDesignerContext: lu } = un(cn, dn), fn = {}, pn = {}, { getPropertyConfigBySchema: jt, getPropertyConfigByType: uu, propertyConverterMap: cu } = ln(fn, pn, xr), Sr = {
|
|
618
618
|
/** 某一分类下的属性配置 */
|
|
619
619
|
// as PropType<ElementPropertyConfig>
|
|
620
620
|
category: { type: Object, default: {} },
|
|
@@ -626,14 +626,14 @@ const cn = {}, dn = {}, { resolveSchemaWithDefaultValue: xr } = un(cn, dn), fn =
|
|
|
626
626
|
}, Fr = {
|
|
627
627
|
elementConfig: { type: Object, default: {} },
|
|
628
628
|
category: { type: Object, default: {} }
|
|
629
|
-
}, mn = {}, vn = {}, { resolveSchemaWithDefaultValue: Tr, resolveSchemaToProps: Er, mappingSchemaToProps: Ir } = un(mn, vn), gn = {}, hn = {};
|
|
630
|
-
|
|
631
|
-
function Tt(e, n, t = /* @__PURE__ */ new Map(), o = (a, d,
|
|
629
|
+
}, mn = {}, vn = {}, { getSchemaByType: du, resolveSchemaWithDefaultValue: Tr, resolveSchemaToProps: Er, mappingSchemaToProps: Ir, setDesignerContext: fu } = un(mn, vn), gn = {}, hn = {};
|
|
630
|
+
ln(gn, hn, Tr);
|
|
631
|
+
function Tt(e, n, t = /* @__PURE__ */ new Map(), o = (a, d, s, u) => d, i = {}, r = (a) => a) {
|
|
632
632
|
return mn[n.title] = n, vn[n.title] = o, gn[n.title] = i, hn[n.title] = r, cn[n.title] = n, dn[n.title] = o, fn[n.title] = i, pn[n.title] = r, (a = {}, d = !0) => {
|
|
633
633
|
if (!d)
|
|
634
634
|
return Ir(a, t);
|
|
635
|
-
const
|
|
636
|
-
return Object.assign(u,
|
|
635
|
+
const s = Er(a, n, t), u = Object.keys(e).reduce((m, l) => (m[l] = e[l].default, m), {});
|
|
636
|
+
return Object.assign(u, s);
|
|
637
637
|
};
|
|
638
638
|
}
|
|
639
639
|
function yn(e, n) {
|
|
@@ -772,18 +772,18 @@ const Lr = {
|
|
|
772
772
|
const t = h(e.required), o = h(e.text), i = h(e.valid), r = h(e.inValidTip);
|
|
773
773
|
ye(() => e.text, () => {
|
|
774
774
|
o.value = e.text;
|
|
775
|
-
}), ye(() => e.required, (m,
|
|
776
|
-
m !==
|
|
777
|
-
}), ye([() => e.valid, () => e.inValidTip], ([m,
|
|
778
|
-
i.value = m, r.value =
|
|
775
|
+
}), ye(() => e.required, (m, l) => {
|
|
776
|
+
m !== l && (t.value = m);
|
|
777
|
+
}), ye([() => e.valid, () => e.inValidTip], ([m, l]) => {
|
|
778
|
+
i.value = m, r.value = l;
|
|
779
779
|
});
|
|
780
|
-
const a = H(() => i.value ? o.value : r.value), d = H(() => i.value ? "" : "color:red"),
|
|
780
|
+
const a = H(() => i.value ? o.value : r.value), d = H(() => i.value ? "" : "color:red"), s = H(() => ({
|
|
781
781
|
"col-form-label": !0,
|
|
782
782
|
// 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
|
|
783
783
|
"f-width-auto": t.value && (e.showType === "none" || !o.value)
|
|
784
784
|
})), u = H(() => e.showType === "reserve-space" || t.value || o.value && e.showType !== "none");
|
|
785
785
|
return () => u.value && g("label", {
|
|
786
|
-
class:
|
|
786
|
+
class: s.value,
|
|
787
787
|
title: a.value,
|
|
788
788
|
style: d.value
|
|
789
789
|
}, [!i.value && g("span", {
|
|
@@ -799,7 +799,7 @@ const Lr = {
|
|
|
799
799
|
}), R = {}, L = {}, $ = {}, D = {};
|
|
800
800
|
let en = !1;
|
|
801
801
|
function Dr() {
|
|
802
|
-
en || (en = !0, _n.register(R, L, $, D), qn.register(R, L, $, D),
|
|
802
|
+
en || (en = !0, _n.register(R, L, $, D), qn.register(R, L, $, D), Wn.register(R, L, $, D), Gn.register(R, L, $, D), Xn.register(R, L, $, D), Yn.register(R, L, $, D), Jt.register(R, L, $, D), Qt.register(R, L, $, D), Jt.register(R, L, $, D), Qt.register(R, L, $, D), Jn.register(R, L, $, D), Qn.register(R, L, $, D), Zn.register(R, L, $, D), eo.register(R, L, $, D), Kn.register(R, L, $, D), to.register(R, L, $, D), no.register(R, L, $, D), oo.register(R, L, $, D), io.register(R, L, $, D), ro.register(R, L, $, D), oi.register(R, L, $, D), ao.register(R, L, $, D), so.register(R, L, $, D), Jo.register(R, L, $, D), uo.register(R, L, $, D), co.register(R, L, $, D), fo.register(R, L, $, D), mo.register(R, L, $, D), po.register(R, L, $, D), vo.register(R, L, $, D), go.register(R, L, $, D), ho.register(R, L, $, D), yo.register(R, L, $, D), bo.register(R, L, $, D), Co.register(R, L, $, D), wo.register(R, L, $, D), xo.register(R, L, $, D), So.register(R, L, $, D), Fo.register(R, L, $, D), To.register(R, L, $, D), Eo.register(R, L, $, D), Io.register(R, L, $, D), ko.register(R, L, $, D), Bo.register(R, L, $, D), Mo.register(R, L, $, D), Go.register(R, L, $), Po.register(R, L, $, D), Vo.register(R, L, $, D), Oo.register(R, L, $, D), No.register(R, L, $, D), Ro.register(R, L, $, D), Lo.register(R, L, $, D), Zo.register(R, L, $, D), $o.register(R, L, $, D), Do.register(R, L, $, D), jo.register(R, L, $, D), Ho.register(R, L, $, D), Ao.register(R, L, $, D), zo.register(R, L, $, D), qo.register(R, L, $, D), Uo.register(R, L, $, D), _o.register(R, L, $, D), Wo.register(R, L, $, D), Xo.register(R, L, $, D), lo.register(R, L, $, D), Yo.register(R, L, $, D), Qo.register(R, L, $, D), Ko.register(R, L, $, D), ei.register(R, L, $, D), ti.register(R, L, $, D), ni.register(R, L, $, D), ii.register(R, L, $, D), ri.register(R, L, $, D), ai.register(R, L, $, D), si.register(R, L, $, D), li.register(R, L, $, D), ui.register(R, L, $, D));
|
|
803
803
|
}
|
|
804
804
|
function jr() {
|
|
805
805
|
Dr();
|
|
@@ -810,8 +810,8 @@ function jr() {
|
|
|
810
810
|
return d;
|
|
811
811
|
}
|
|
812
812
|
function n(a, d) {
|
|
813
|
-
const
|
|
814
|
-
return
|
|
813
|
+
const s = L[a];
|
|
814
|
+
return s ? s(d) : {};
|
|
815
815
|
}
|
|
816
816
|
function t(a) {
|
|
817
817
|
switch (a) {
|
|
@@ -951,9 +951,9 @@ const Hr = {
|
|
|
951
951
|
emits: ["change", "update:modelValue"],
|
|
952
952
|
setup(e, n) {
|
|
953
953
|
var x;
|
|
954
|
-
const t = h(e.id), o = h(e.customClass), i = h(e.editor), r = h(e.label), a = h(e.modelValue), d = h(e.readonly),
|
|
954
|
+
const t = h(e.id), o = h(e.customClass), i = h(e.editor), r = h(e.label), a = h(e.modelValue), d = h(e.readonly), s = h(((x = e.editor) == null ? void 0 : x.required) || e.required), u = h(e.showLabel), m = h(e.visible);
|
|
955
955
|
h(e.type);
|
|
956
|
-
const
|
|
956
|
+
const l = h(), p = h(e.errors), c = H(() => u.value ? e.showLabelType : "none"), {
|
|
957
957
|
resolveEditorProps: f,
|
|
958
958
|
resolveEditorType: v,
|
|
959
959
|
getChangeFunctionName: y,
|
|
@@ -977,10 +977,10 @@ const Hr = {
|
|
|
977
977
|
const S = H(() => {
|
|
978
978
|
const w = i.value.type || "input-group", M = v(w), O = f(w, i.value), F = y(w), J = T(i.value.type);
|
|
979
979
|
return J && (O[J] = k), O[F] = A, (O.id == null || O.id === "") && (O.id = t.value), w === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (O.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (O.onEndValueChange = i.value.onEndValueChange)) : w === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? (O["onUpdate:idValue"] = i.value["onUpdate:idValue"], O.id = t.value) : w === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? O.onSelectionChange = i.value.onSelectionChange : w === "property-editor" && (O.onBeforeOpenVariables = i.value.onBeforeOpenVariables), () => g(M, xt({
|
|
980
|
-
ref:
|
|
980
|
+
ref: l
|
|
981
981
|
}, O, {
|
|
982
982
|
modelValue: a.value,
|
|
983
|
-
"onUpdate:modelValue": (
|
|
983
|
+
"onUpdate:modelValue": (G) => a.value = G
|
|
984
984
|
}), n.slots);
|
|
985
985
|
});
|
|
986
986
|
function C() {
|
|
@@ -989,11 +989,11 @@ const Hr = {
|
|
|
989
989
|
errors: p.value
|
|
990
990
|
}, null);
|
|
991
991
|
}
|
|
992
|
-
return ye([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([w, M, O, F, J,
|
|
992
|
+
return ye([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([w, M, O, F, J, G, q, Q, ie, fe]) => {
|
|
993
993
|
var N;
|
|
994
|
-
t.value = w, o.value = M, i.value = O, r.value = F, a.value = J, d.value =
|
|
994
|
+
t.value = w, o.value = M, i.value = O, r.value = F, a.value = J, d.value = G, s.value = ((N = i.value) == null ? void 0 : N.required) || q, u.value = Q, m.value = ie, p.value = fe;
|
|
995
995
|
}), n.expose({
|
|
996
|
-
editorRef:
|
|
996
|
+
editorRef: l
|
|
997
997
|
}), () => m.value && g("div", {
|
|
998
998
|
id: `${t.value}-form-group`,
|
|
999
999
|
class: o.value,
|
|
@@ -1005,7 +1005,7 @@ const Hr = {
|
|
|
1005
1005
|
}, [g($r, {
|
|
1006
1006
|
id: `${t.value}-lable`,
|
|
1007
1007
|
showType: c.value,
|
|
1008
|
-
required:
|
|
1008
|
+
required: s.value,
|
|
1009
1009
|
text: r.value,
|
|
1010
1010
|
title: r.value
|
|
1011
1011
|
}, null), g("div", {
|
|
@@ -1017,8 +1017,8 @@ const Hr = {
|
|
|
1017
1017
|
props: Fr,
|
|
1018
1018
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
1019
1019
|
setup(e, n) {
|
|
1020
|
-
var
|
|
1021
|
-
const t = h((
|
|
1020
|
+
var l;
|
|
1021
|
+
const t = h((l = e.category) == null ? void 0 : l.categoryId), o = h(e.elementConfig.propertyID), i = h(e.elementConfig.propertyName);
|
|
1022
1022
|
h(e.elementConfig.editor);
|
|
1023
1023
|
const r = h(e.elementConfig.propertyValue), a = H(() => {
|
|
1024
1024
|
const p = e.elementConfig.visible;
|
|
@@ -1050,12 +1050,12 @@ const Hr = {
|
|
|
1050
1050
|
};
|
|
1051
1051
|
n.emit("propertyChange", v, f), e.elementConfig.refreshPanelAfterChanged && n.emit("triggerRefreshPanel");
|
|
1052
1052
|
}
|
|
1053
|
-
const
|
|
1053
|
+
const s = e.elementConfig.description ? `<div style="color: gray; "> 描述 :${e.elementConfig.description}</div>` : "", u = _e({
|
|
1054
1054
|
content: `
|
|
1055
1055
|
<div>
|
|
1056
1056
|
<div style="color: black; ">${e.elementConfig.propertyName}</div>
|
|
1057
1057
|
<div style="color: gray; ">ID:${e.elementConfig.propertyID}</div>
|
|
1058
|
-
${
|
|
1058
|
+
${s}
|
|
1059
1059
|
</div>`,
|
|
1060
1060
|
placement: "left"
|
|
1061
1061
|
}), m = h("");
|
|
@@ -1126,7 +1126,7 @@ const Hr = {
|
|
|
1126
1126
|
function d(c) {
|
|
1127
1127
|
return `${e.categoryKey}_${c.propertyID}`;
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function s(c, f) {
|
|
1130
1130
|
c.categoryId = t.value.categoryId, t.value.enableCascade && (c.propertyPath = t.value.parentPropertyID), t.value.setPropertyRelates && t.value.setPropertyRelates(c, e.propertyData, f), n.emit("valueChanged", {
|
|
1131
1131
|
changeObject: c
|
|
1132
1132
|
});
|
|
@@ -1141,11 +1141,11 @@ const Hr = {
|
|
|
1141
1141
|
key: d(c),
|
|
1142
1142
|
elementConfig: c,
|
|
1143
1143
|
category: t.value,
|
|
1144
|
-
onPropertyChange:
|
|
1144
|
+
onPropertyChange: s,
|
|
1145
1145
|
onTriggerRefreshPanel: u
|
|
1146
1146
|
}, null)]);
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function l(c) {
|
|
1149
1149
|
var f;
|
|
1150
1150
|
return g("div", {
|
|
1151
1151
|
class: "propertyCascadeItem farris-panel px-2 mb-2"
|
|
@@ -1170,7 +1170,7 @@ const Hr = {
|
|
|
1170
1170
|
t.value = e.category;
|
|
1171
1171
|
});
|
|
1172
1172
|
function p(c) {
|
|
1173
|
-
return c.propertyType === "cascade" ?
|
|
1173
|
+
return c.propertyType === "cascade" ? l : m;
|
|
1174
1174
|
}
|
|
1175
1175
|
return () => g(ot, null, [t.value.properties.map((c) => p(c)(c))]);
|
|
1176
1176
|
}
|
|
@@ -1179,7 +1179,7 @@ const Hr = {
|
|
|
1179
1179
|
props: Ki,
|
|
1180
1180
|
emits: ["propertyChanged"],
|
|
1181
1181
|
setup(e, n) {
|
|
1182
|
-
const t = h(e.width), o = h(e.isWidePanel), i = h(e.enableSearch), r = h(e.mode), a = h(e.isPersitOpenState), d = h(e.isShowPanel),
|
|
1182
|
+
const t = h(e.width), o = h(e.isWidePanel), i = h(e.enableSearch), r = h(e.mode), a = h(e.isPersitOpenState), d = h(e.isShowPanel), s = h(), u = h(), m = h(e.showCloseBtn), l = h(e.selectedTabId), p = h(!0), c = h(e.isWhiteTheme);
|
|
1183
1183
|
let f = [], v = [];
|
|
1184
1184
|
const y = h(""), T = h(), E = h(), A = Xt("SchemaService");
|
|
1185
1185
|
let k = [], S = null, C = "";
|
|
@@ -1187,37 +1187,37 @@ const Hr = {
|
|
|
1187
1187
|
function F() {
|
|
1188
1188
|
v = [], x.value && x.value.categoryList && Array.isArray(x.value.categoryList) && x.value.categoryList.length > 0 && x.value.categoryList.forEach((Y) => {
|
|
1189
1189
|
if (Y.properties && Array.isArray(Y.properties) && Y.properties.length > 0) {
|
|
1190
|
-
const
|
|
1190
|
+
const W = Y.properties.map((re) => (re.category = Y, re.propertyType === "cascade" && re.cascadeConfig && re.cascadeConfig.map((de) => {
|
|
1191
1191
|
de.category = Y, de.cascadeParent = re, v = v.concat(de);
|
|
1192
1192
|
}), re));
|
|
1193
|
-
v = v.concat(
|
|
1193
|
+
v = v.concat(W);
|
|
1194
1194
|
}
|
|
1195
1195
|
});
|
|
1196
1196
|
}
|
|
1197
1197
|
function J(X) {
|
|
1198
|
-
let Y = X.offsetTop,
|
|
1199
|
-
for (;
|
|
1200
|
-
Y +=
|
|
1198
|
+
let Y = X.offsetTop, W = X.offsetParent;
|
|
1199
|
+
for (; W !== null; )
|
|
1200
|
+
Y += W.offsetTop, W = W.offsetParent;
|
|
1201
1201
|
return Y;
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1204
|
-
X && Y && Object.keys(Y).length > 0 && Object.keys(Y).forEach((
|
|
1203
|
+
function G(X, Y) {
|
|
1204
|
+
X && Y && Object.keys(Y).length > 0 && Object.keys(Y).forEach((W) => {
|
|
1205
1205
|
var de;
|
|
1206
|
-
const re = Y[
|
|
1207
|
-
(de = X.style) == null || de.setProperty(
|
|
1206
|
+
const re = Y[W];
|
|
1207
|
+
(de = X.style) == null || de.setProperty(W, re);
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
1210
1210
|
function q() {
|
|
1211
1211
|
return v.filter((Y) => {
|
|
1212
1212
|
if (typeof Y.visible == "function" && !Y.visible() || typeof Y.visible == "boolean" && !Y.visible)
|
|
1213
1213
|
return !1;
|
|
1214
|
-
const
|
|
1215
|
-
return !!(
|
|
1214
|
+
const W = Y.propertyID.toLowerCase(), re = Y.propertyName.toLowerCase();
|
|
1215
|
+
return !!(W && W.includes(y.value.toLowerCase()) || re && re.includes(y.value.toLowerCase()));
|
|
1216
1216
|
});
|
|
1217
1217
|
}
|
|
1218
|
-
function Q(X, Y,
|
|
1218
|
+
function Q(X, Y, W) {
|
|
1219
1219
|
if (X === 0) {
|
|
1220
|
-
const re = J(Y), ke = J(
|
|
1220
|
+
const re = J(Y), ke = J(W) - re - 5;
|
|
1221
1221
|
Y == null || Y.scroll({
|
|
1222
1222
|
top: ke,
|
|
1223
1223
|
behavior: "smooth"
|
|
@@ -1225,19 +1225,19 @@ const Hr = {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
function ie(X) {
|
|
1228
|
-
k && k.length > 0 && (k.forEach((
|
|
1229
|
-
|
|
1228
|
+
k && k.length > 0 && (k.forEach((W) => {
|
|
1229
|
+
W.style.cssText = "";
|
|
1230
1230
|
}), k = []);
|
|
1231
1231
|
const Y = E.value;
|
|
1232
1232
|
if (!y.value)
|
|
1233
1233
|
T.value && Y && (Y.scrollTop = 0);
|
|
1234
1234
|
else if (F(), v && v.length > 0) {
|
|
1235
|
-
const
|
|
1236
|
-
|
|
1235
|
+
const W = q();
|
|
1236
|
+
W && W.length > 0 && setTimeout(() => {
|
|
1237
1237
|
let re = null, de = -1, ke = !1;
|
|
1238
|
-
|
|
1238
|
+
W.forEach((Te, Xe) => {
|
|
1239
1239
|
const I = Te.propertyType === "cascade" ? `.${Te.category.categoryId}-${Te.propertyID} .farris-label-text` : `.property-item .${Te.category.categoryId}-${Te.propertyID}.col-form-label`, ne = document.querySelector(I);
|
|
1240
|
-
ne && (Te.category.status !== "open" && (Te.category.status = "open", ke = de < 0), Te.cascadeParent && (Te.cascadeParent.isExpand = !0), de < 0 && (re = ne, de = Xe),
|
|
1240
|
+
ne && (Te.category.status !== "open" && (Te.category.status = "open", ke = de < 0), Te.cascadeParent && (Te.cascadeParent.isExpand = !0), de < 0 && (re = ne, de = Xe), G(ne, {
|
|
1241
1241
|
color: "#5B89FE"
|
|
1242
1242
|
}), k.push(ne));
|
|
1243
1243
|
}), de > -1 && (ke ? ct(() => {
|
|
@@ -1270,7 +1270,7 @@ const Hr = {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
function me() {
|
|
1272
1272
|
var X, Y;
|
|
1273
|
-
if (f = [], !
|
|
1273
|
+
if (f = [], !s.value || s.value.length === 0) {
|
|
1274
1274
|
f = [{
|
|
1275
1275
|
tabId: "default",
|
|
1276
1276
|
tabName: "属性",
|
|
@@ -1278,37 +1278,37 @@ const Hr = {
|
|
|
1278
1278
|
}], x.value = null;
|
|
1279
1279
|
return;
|
|
1280
1280
|
}
|
|
1281
|
-
if ((X =
|
|
1282
|
-
if (
|
|
1283
|
-
const re = f.find((de) => de.tabId ===
|
|
1284
|
-
re ? (re.categoryList.push(
|
|
1285
|
-
tabId:
|
|
1286
|
-
tabName:
|
|
1287
|
-
categoryList: [
|
|
1288
|
-
hide:
|
|
1281
|
+
if ((X = s == null ? void 0 : s.value) == null || X.forEach((W) => {
|
|
1282
|
+
if (W.tabId) {
|
|
1283
|
+
const re = f.find((de) => de.tabId === W.tabId);
|
|
1284
|
+
re ? (re.categoryList.push(W), re.hide && (re.hide = W.hide || W.properties.length === 0)) : f.push({
|
|
1285
|
+
tabId: W.tabId,
|
|
1286
|
+
tabName: W.tabName,
|
|
1287
|
+
categoryList: [W],
|
|
1288
|
+
hide: W.hide || W.properties.length === 0
|
|
1289
1289
|
});
|
|
1290
1290
|
} else {
|
|
1291
1291
|
const re = f.find((de) => de.tabId === "default");
|
|
1292
|
-
re ? re.categoryList.push(
|
|
1292
|
+
re ? re.categoryList.push(W) : f.push({
|
|
1293
1293
|
tabId: "default",
|
|
1294
1294
|
tabName: "属性",
|
|
1295
|
-
categoryList: [
|
|
1295
|
+
categoryList: [W]
|
|
1296
1296
|
});
|
|
1297
1297
|
}
|
|
1298
|
-
}),
|
|
1299
|
-
const
|
|
1300
|
-
x.value =
|
|
1298
|
+
}), l.value) {
|
|
1299
|
+
const W = f == null ? void 0 : f.find((re) => re.tabId === l.value && !re.hide);
|
|
1300
|
+
x.value = W || f[0];
|
|
1301
1301
|
} else
|
|
1302
1302
|
x.value = f[0];
|
|
1303
|
-
|
|
1303
|
+
l.value = (Y = x.value) == null ? void 0 : Y.tabId;
|
|
1304
1304
|
}
|
|
1305
1305
|
ye(() => [e.schema, e.isShowPanel], () => {
|
|
1306
|
-
u.value = e.schema, !e.schema || !e.schema.type ?
|
|
1306
|
+
u.value = e.schema, !e.schema || !e.schema.type ? s.value = [] : (s.value = jt(u.value, A, S, C), O.filterPropertyEntity && (s.value = O.filterPropertyEntity(s.value, u.value))), me(), ae(y.value), w.value++;
|
|
1307
1307
|
}), rt(() => {
|
|
1308
1308
|
me();
|
|
1309
1309
|
});
|
|
1310
|
-
function te(X, Y,
|
|
1311
|
-
(!u.value || Y) && (u.value = Y || e.schema),
|
|
1310
|
+
function te(X, Y, W = !0) {
|
|
1311
|
+
(!u.value || Y) && (u.value = Y || e.schema), s.value = jt(u.value, A, S, C, X), O.filterPropertyEntity && (s.value = O.filterPropertyEntity(s.value, u.value)), me(), i.value && ae(y.value), W && w.value++;
|
|
1312
1312
|
}
|
|
1313
1313
|
function pe(X, Y) {
|
|
1314
1314
|
S = X, C = Y;
|
|
@@ -1318,7 +1318,7 @@ const Hr = {
|
|
|
1318
1318
|
fe();
|
|
1319
1319
|
}, 100), t.value = "300px") : t.value = "41px";
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function le() {
|
|
1322
1322
|
if (m.value)
|
|
1323
1323
|
return g("div", {
|
|
1324
1324
|
class: "title-actions"
|
|
@@ -1337,7 +1337,7 @@ const Hr = {
|
|
|
1337
1337
|
}, null)])])])])]);
|
|
1338
1338
|
}
|
|
1339
1339
|
function _() {
|
|
1340
|
-
|
|
1340
|
+
s.value = jt(u.value, A, S, C), O.filterPropertyEntity && (s.value = O.filterPropertyEntity(s.value, u.value)), me();
|
|
1341
1341
|
}
|
|
1342
1342
|
function ce() {
|
|
1343
1343
|
var X;
|
|
@@ -1390,29 +1390,29 @@ const Hr = {
|
|
|
1390
1390
|
class: ["property-grid", {
|
|
1391
1391
|
"wide-panel": o.value
|
|
1392
1392
|
}]
|
|
1393
|
-
}, [(Y = (X = x.value) == null ? void 0 : X.categoryList) == null ? void 0 : Y.map((
|
|
1394
|
-
key: ze(
|
|
1395
|
-
"data-category-id":
|
|
1396
|
-
}, [!
|
|
1393
|
+
}, [(Y = (X = x.value) == null ? void 0 : X.categoryList) == null ? void 0 : Y.map((W) => !W.hide && g("li", {
|
|
1394
|
+
key: ze(W),
|
|
1395
|
+
"data-category-id": W == null ? void 0 : W.categoryId
|
|
1396
|
+
}, [!W.hideTitle && g("span", {
|
|
1397
1397
|
class: "group-label",
|
|
1398
|
-
onClick: () => Ce(
|
|
1398
|
+
onClick: () => Ce(W)
|
|
1399
1399
|
}, [g("span", {
|
|
1400
1400
|
class: ["f-icon mr-2", {
|
|
1401
|
-
"f-legend-show":
|
|
1401
|
+
"f-legend-show": W.status === "closed"
|
|
1402
1402
|
}, {
|
|
1403
|
-
"f-legend-collapse":
|
|
1403
|
+
"f-legend-collapse": W.status === "open" || W.status === void 0
|
|
1404
1404
|
}]
|
|
1405
|
-
}, null),
|
|
1406
|
-
hidden:
|
|
1405
|
+
}, null), W.categoryName]), g("div", {
|
|
1406
|
+
hidden: W.status === "closed"
|
|
1407
1407
|
}, [g(qr, {
|
|
1408
|
-
key: `${
|
|
1409
|
-
category:
|
|
1408
|
+
key: `${W == null ? void 0 : W.categoryId}-${w.value}`,
|
|
1409
|
+
category: W,
|
|
1410
1410
|
propertyData: u.value,
|
|
1411
1411
|
onTriggerRefreshPanel: _,
|
|
1412
1412
|
onValueChanged: Le
|
|
1413
1413
|
}, null)])]))])]);
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function We() {
|
|
1416
1416
|
if (r.value === "sidebar")
|
|
1417
1417
|
return g("div", {
|
|
1418
1418
|
class: "side-panel h-100",
|
|
@@ -1427,7 +1427,7 @@ const Hr = {
|
|
|
1427
1427
|
width: t.value
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function Ge() {
|
|
1431
1431
|
return g("div", {
|
|
1432
1432
|
class: "switcher"
|
|
1433
1433
|
}, [g("i", {
|
|
@@ -1439,7 +1439,7 @@ const Hr = {
|
|
|
1439
1439
|
}, null)]);
|
|
1440
1440
|
}
|
|
1441
1441
|
function ge(X) {
|
|
1442
|
-
x.value && x.value.tabId === X.tabId || (x.value = X,
|
|
1442
|
+
x.value && x.value.tabId === X.tabId || (x.value = X, l.value = x.value.tabId, y.value = "");
|
|
1443
1443
|
}
|
|
1444
1444
|
function Qe() {
|
|
1445
1445
|
return f.map((X) => g("div", {
|
|
@@ -1482,34 +1482,34 @@ const Hr = {
|
|
|
1482
1482
|
}, {
|
|
1483
1483
|
only: M.value
|
|
1484
1484
|
}]
|
|
1485
|
-
}, [Qe(),
|
|
1485
|
+
}, [Qe(), le()]), ce(), Oe()]), Ge(), We()])]);
|
|
1486
1486
|
}
|
|
1487
1487
|
}), _r = h(0);
|
|
1488
|
-
function
|
|
1488
|
+
function Wr() {
|
|
1489
1489
|
_r.value++;
|
|
1490
1490
|
}
|
|
1491
1491
|
const mt = h(0);
|
|
1492
|
-
function
|
|
1492
|
+
function Gr(e) {
|
|
1493
1493
|
const { formSchemaUtils: n, formStateMachineUtils: t } = e;
|
|
1494
|
-
function o(
|
|
1494
|
+
function o(s, u = "") {
|
|
1495
1495
|
return {
|
|
1496
|
-
path: u +
|
|
1497
|
-
field:
|
|
1498
|
-
fullPath:
|
|
1496
|
+
path: u + s.code,
|
|
1497
|
+
field: s.id,
|
|
1498
|
+
fullPath: s.code
|
|
1499
1499
|
};
|
|
1500
1500
|
}
|
|
1501
|
-
function i(
|
|
1502
|
-
return n.getViewModelById(
|
|
1501
|
+
function i(s, u = "") {
|
|
1502
|
+
return n.getViewModelById(s).states.map((l) => o(l, u));
|
|
1503
1503
|
}
|
|
1504
|
-
function r(
|
|
1505
|
-
const u = n.getRootViewModelId(), m = i(
|
|
1506
|
-
if (
|
|
1504
|
+
function r(s) {
|
|
1505
|
+
const u = n.getRootViewModelId(), m = i(s);
|
|
1506
|
+
if (s === u)
|
|
1507
1507
|
return m;
|
|
1508
|
-
const
|
|
1509
|
-
return [...m, ...
|
|
1508
|
+
const l = i(u, "root-component.");
|
|
1509
|
+
return [...m, ...l];
|
|
1510
1510
|
}
|
|
1511
|
-
function a(
|
|
1512
|
-
return
|
|
1511
|
+
function a(s) {
|
|
1512
|
+
return s.binding && s.binding.path || s.id || "";
|
|
1513
1513
|
}
|
|
1514
1514
|
function d() {
|
|
1515
1515
|
return t && t.getRenderStates() || [];
|
|
@@ -1570,11 +1570,11 @@ class wn {
|
|
|
1570
1570
|
return d && d.value || "";
|
|
1571
1571
|
},
|
|
1572
1572
|
convertTo: (o, i, r, a, d) => {
|
|
1573
|
-
var
|
|
1573
|
+
var s;
|
|
1574
1574
|
if (i === "dataPicking" && (r != null && r.target)) {
|
|
1575
1575
|
const u = `${r.target}_dataPicking`;
|
|
1576
|
-
((
|
|
1577
|
-
(
|
|
1576
|
+
((s = r.rules) == null ? void 0 : s.some(
|
|
1577
|
+
(l) => l.id === u && l.value
|
|
1578
1578
|
)) ? o.dictPickingExpressionId = u : delete o.dictPickingExpressionId;
|
|
1579
1579
|
}
|
|
1580
1580
|
a.updateExpression(r);
|
|
@@ -1635,10 +1635,10 @@ class wn {
|
|
|
1635
1635
|
buildChildEntityTreeData(n = null, t) {
|
|
1636
1636
|
const o = [];
|
|
1637
1637
|
return n == null || n.forEach((i) => {
|
|
1638
|
-
var
|
|
1638
|
+
var s, u;
|
|
1639
1639
|
const r = this.createTreeNode(i, t);
|
|
1640
1640
|
r.type = "entity";
|
|
1641
|
-
const a = this.buildEntityFieldsTreeData((
|
|
1641
|
+
const a = this.buildEntityFieldsTreeData((s = i.type) == null ? void 0 : s.fields, [...t, i.label]), d = this.buildChildEntityTreeData((u = i.type) == null ? void 0 : u.entities, [...t, i.label]);
|
|
1642
1642
|
d != null && d.length && (a == null || a.push(...d)), o.push({
|
|
1643
1643
|
data: r,
|
|
1644
1644
|
children: a || [],
|
|
@@ -1688,12 +1688,12 @@ class wn {
|
|
|
1688
1688
|
return r.messageType != null && (d.messageType = r.messageType), d;
|
|
1689
1689
|
}
|
|
1690
1690
|
buildRule(n, t, o, i) {
|
|
1691
|
-
const { expression: r, message: a, messageType: d } = t,
|
|
1691
|
+
const { expression: r, message: a, messageType: d } = t, s = {
|
|
1692
1692
|
id: `${n}_${o}`,
|
|
1693
1693
|
type: o,
|
|
1694
1694
|
value: r
|
|
1695
1695
|
};
|
|
1696
|
-
return (o === "validate" || o === "dataPicking" || o === "required") && (
|
|
1696
|
+
return (o === "validate" || o === "dataPicking" || o === "required") && (s.message = a), o === "dataPicking" && (s.messageType = d), o === "validate" && i && (s.elementId = i), s;
|
|
1697
1697
|
}
|
|
1698
1698
|
getExpressionData() {
|
|
1699
1699
|
const { expressions: n } = this.formSchemaService.getFormSchema().module;
|
|
@@ -1701,32 +1701,32 @@ class wn {
|
|
|
1701
1701
|
}
|
|
1702
1702
|
updateExpression(n, t, o, i) {
|
|
1703
1703
|
const r = t === "Field" ? n.binding.field : n.id, a = this.buildRule(r, o, i, n.type === "form-group" ? n.id : "");
|
|
1704
|
-
let
|
|
1704
|
+
let s = this.getExpressionData().find((m) => m.targetType === t && m.target === r);
|
|
1705
1705
|
const u = (m) => m.value.trim() === "";
|
|
1706
|
-
if (
|
|
1707
|
-
const m =
|
|
1706
|
+
if (s) {
|
|
1707
|
+
const m = s.rules.find((l) => l.id === a.id);
|
|
1708
1708
|
if (m)
|
|
1709
|
-
u(a) ?
|
|
1709
|
+
u(a) ? s.rules = s.rules.filter((l) => l.id !== a.id) : (Object.assign(m, a), i === "validate" && n.type === "form-group" && (m.elementId = n.id));
|
|
1710
1710
|
else {
|
|
1711
1711
|
if (u(a))
|
|
1712
1712
|
return null;
|
|
1713
|
-
|
|
1713
|
+
s.rules = s.rules || [], s.rules.push(a);
|
|
1714
1714
|
}
|
|
1715
1715
|
} else {
|
|
1716
1716
|
if (u(a))
|
|
1717
1717
|
return null;
|
|
1718
|
-
|
|
1718
|
+
s = {
|
|
1719
1719
|
target: `${r}`,
|
|
1720
1720
|
rules: [a],
|
|
1721
1721
|
targetType: t
|
|
1722
1722
|
};
|
|
1723
1723
|
}
|
|
1724
|
-
return
|
|
1724
|
+
return s;
|
|
1725
1725
|
}
|
|
1726
1726
|
getExpressionEditorOptions(n, t, o, i) {
|
|
1727
1727
|
return o.reduce((r, a) => {
|
|
1728
|
-
var
|
|
1729
|
-
const d = t === "Field" ? (
|
|
1728
|
+
var s, u;
|
|
1729
|
+
const d = t === "Field" ? (s = n == null ? void 0 : n.binding) == null ? void 0 : s.field : n.id;
|
|
1730
1730
|
return r[a] = {
|
|
1731
1731
|
hide: t === "Field" ? !!((u = n == null ? void 0 : n.binding) != null && u.field) : !1,
|
|
1732
1732
|
description: "",
|
|
@@ -1742,12 +1742,12 @@ class wn {
|
|
|
1742
1742
|
showMessageType: a === "dataPicking",
|
|
1743
1743
|
beforeOpen: () => this.onBeforeOpenExpression(n, a, t),
|
|
1744
1744
|
onSubmitModal: (m) => {
|
|
1745
|
-
const
|
|
1745
|
+
const l = this.updateExpression(n, t, m, a);
|
|
1746
1746
|
if (i) {
|
|
1747
1747
|
const p = this.buildRule(d, m, a);
|
|
1748
1748
|
i(p);
|
|
1749
1749
|
}
|
|
1750
|
-
return
|
|
1750
|
+
return l;
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
1753
1753
|
}, r;
|
|
@@ -1900,11 +1900,11 @@ class Xr {
|
|
|
1900
1900
|
* @returns
|
|
1901
1901
|
*/
|
|
1902
1902
|
getPropertyEditorParams(n, t = [], o = "visible", i = {}, r = {}, a = "") {
|
|
1903
|
-
const { getVariables: d, getControlName:
|
|
1903
|
+
const { getVariables: d, getControlName: s, getStateMachines: u } = Gr(this.designerHostService), m = this.getRealTargetType(n), l = t && t.length > 0 ? t : ["Const", "Variable", "StateMachine", "Expression"], p = {
|
|
1904
1904
|
type: "property-editor",
|
|
1905
|
-
propertyTypes:
|
|
1905
|
+
propertyTypes: l
|
|
1906
1906
|
};
|
|
1907
|
-
return
|
|
1907
|
+
return l.map((c) => {
|
|
1908
1908
|
switch (c) {
|
|
1909
1909
|
case "Const":
|
|
1910
1910
|
Object.assign(p, {
|
|
@@ -1920,7 +1920,7 @@ class Xr {
|
|
|
1920
1920
|
break;
|
|
1921
1921
|
case "Variable":
|
|
1922
1922
|
Object.assign(p, {
|
|
1923
|
-
controlName:
|
|
1923
|
+
controlName: s(n),
|
|
1924
1924
|
newVariablePrefix: "is",
|
|
1925
1925
|
newVariableType: "Boolean",
|
|
1926
1926
|
variables: d(this.viewModelId),
|
|
@@ -1955,22 +1955,22 @@ class Xr {
|
|
|
1955
1955
|
title: "行为",
|
|
1956
1956
|
description: ""
|
|
1957
1957
|
}, a = this.getVisibleProperty(n, t);
|
|
1958
|
-
for (const
|
|
1959
|
-
a[
|
|
1958
|
+
for (const s in o)
|
|
1959
|
+
a[s] = Object.assign(a[s] || {}, o[s]);
|
|
1960
1960
|
const d = this;
|
|
1961
1961
|
return {
|
|
1962
1962
|
...r,
|
|
1963
1963
|
properties: { ...a },
|
|
1964
|
-
setPropertyRelates(
|
|
1965
|
-
if (
|
|
1966
|
-
switch (
|
|
1964
|
+
setPropertyRelates(s, u) {
|
|
1965
|
+
if (s) {
|
|
1966
|
+
switch (s.propertyID) {
|
|
1967
1967
|
case "disabled":
|
|
1968
1968
|
case "readonly":
|
|
1969
1969
|
case "visible":
|
|
1970
|
-
d.afterMutilEditorChanged(n,
|
|
1970
|
+
d.afterMutilEditorChanged(n, s);
|
|
1971
1971
|
break;
|
|
1972
1972
|
}
|
|
1973
|
-
i && i(
|
|
1973
|
+
i && i(s, u);
|
|
1974
1974
|
}
|
|
1975
1975
|
}
|
|
1976
1976
|
};
|
|
@@ -1994,7 +1994,7 @@ class Xr {
|
|
|
1994
1994
|
if (!o)
|
|
1995
1995
|
return;
|
|
1996
1996
|
const i = o.contents.findIndex((a) => a.id === n), r = yt(o.contents[i]);
|
|
1997
|
-
o.contents.splice(i, 1), o.contents.splice(i, 0, r),
|
|
1997
|
+
o.contents.splice(i, 1), o.contents.splice(i, 0, r), Wr();
|
|
1998
1998
|
}
|
|
1999
1999
|
/**
|
|
2000
2000
|
* 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
|
|
@@ -2023,16 +2023,16 @@ class Xr {
|
|
|
2023
2023
|
const t = n.propertyValue;
|
|
2024
2024
|
if (!((t && t.type) === "Expression" && t.expressionInfo))
|
|
2025
2025
|
return;
|
|
2026
|
-
const { expressionId: r, expressionInfo: a } = t, { targetId: d, targetType:
|
|
2026
|
+
const { expressionId: r, expressionInfo: a } = t, { targetId: d, targetType: s, expressionType: u, value: m, message: l } = a, p = this.formSchemaUtils.getModule();
|
|
2027
2027
|
p.expressions = p.expressions || [];
|
|
2028
2028
|
const { expressions: c } = p;
|
|
2029
2029
|
let f = c.find((y) => y.target === d);
|
|
2030
|
-
f || (f = { target: d, rules: [], targetType:
|
|
2030
|
+
f || (f = { target: d, rules: [], targetType: s }, c.push(f));
|
|
2031
2031
|
const v = f.rules.find((y) => y.type === u);
|
|
2032
2032
|
if (v)
|
|
2033
|
-
v.value = m, v.message =
|
|
2033
|
+
v.value = m, v.message = l;
|
|
2034
2034
|
else {
|
|
2035
|
-
const y = { id: r, type: u, value: m, message:
|
|
2035
|
+
const y = { id: r, type: u, value: m, message: l };
|
|
2036
2036
|
f.rules.push(y);
|
|
2037
2037
|
}
|
|
2038
2038
|
delete t.expressionInfo;
|
|
@@ -2047,8 +2047,8 @@ class Xr {
|
|
|
2047
2047
|
const o = n.propertyValue;
|
|
2048
2048
|
if (o && o.type === "Expression")
|
|
2049
2049
|
return;
|
|
2050
|
-
const r = n.propertyID, a = this.formSchemaUtils.getExpressions(), d = t.binding ? t.binding.field : t.id,
|
|
2051
|
-
!
|
|
2050
|
+
const r = n.propertyID, a = this.formSchemaUtils.getExpressions(), d = t.binding ? t.binding.field : t.id, s = a.find((u) => u.target === d);
|
|
2051
|
+
!s || !s.rules || (s.rules = s.rules.filter((u) => u.type !== r));
|
|
2052
2052
|
}
|
|
2053
2053
|
getExpressionOptions(n, t, o) {
|
|
2054
2054
|
return new wn(this.formSchemaUtils).getExpressionOptions(n, t, o);
|
|
@@ -2195,37 +2195,37 @@ function Qr(e) {
|
|
|
2195
2195
|
let n, t;
|
|
2196
2196
|
const o = /* @__PURE__ */ new Map();
|
|
2197
2197
|
let i = [];
|
|
2198
|
-
function r(m,
|
|
2198
|
+
function r(m, l) {
|
|
2199
2199
|
const c = m.split(" ").filter((E) => E.startsWith("col-"));
|
|
2200
2200
|
if (c.length === 0) {
|
|
2201
|
-
|
|
2201
|
+
l.isSupportedClass = !1;
|
|
2202
2202
|
return;
|
|
2203
2203
|
}
|
|
2204
2204
|
let f = c.find((E) => /^col-([1-9]|10|11|12)$/.test(E)), v = c.find((E) => /^col-md-([1-9]|10|11|12)$/.test(E)), y = c.find((E) => /^col-xl-([1-9]|10|11|12)$/.test(E)), T = c.find((E) => /^col-el-([1-9]|10|11|12)$/.test(E));
|
|
2205
|
-
f = f || "col-12",
|
|
2205
|
+
f = f || "col-12", l.columnInSM = parseInt(f.replace("col-", ""), 10), l.displayWidthInSM = l.columnInSM / 12, l.displayWidthInSM !== 1 && (l.isSupportedClass = !1), v = v || "col-md-" + l.columnInSM, l.columnInMD = parseInt(v.replace("col-md-", ""), 10), l.displayWidthInMD = l.columnInMD / 6, [1, 2].includes(l.displayWidthInMD) || (l.isSupportedClass = !1), y = y || "col-xl-" + l.columnInMD, l.columnInLG = parseInt(y.replace("col-xl-", ""), 10), l.displayWidthInLG = l.columnInLG / 3, [1, 2, 3, 4].includes(l.displayWidthInLG) || (l.isSupportedClass = !1), T = T || "col-el-" + l.columnInLG, l.columnInEL = parseInt(T.replace("col-el-", ""), 10), l.displayWidthInEL = l.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(l.displayWidthInEL) || (l.isSupportedClass = !1);
|
|
2206
2206
|
}
|
|
2207
|
-
function a(m,
|
|
2207
|
+
function a(m, l, p, c = !1) {
|
|
2208
2208
|
let f = !1;
|
|
2209
2209
|
m.contents.forEach((v) => {
|
|
2210
2210
|
if (v.type === "fieldset") {
|
|
2211
|
-
p += 1, a(v,
|
|
2211
|
+
p += 1, a(v, l, p, !0), f = !0;
|
|
2212
2212
|
return;
|
|
2213
2213
|
}
|
|
2214
2214
|
f && (p += 1, f = !1);
|
|
2215
2215
|
const y = v.appearance && v.appearance.class, T = new Jr();
|
|
2216
|
-
y ? r(y, T) : T.isSupportedClass = !1, T.label = v.label || v.id, T.id = v.id, T.group = p, c && (T.fieldSetId = m.id), t === v.id && (n = p), o.set(v.id, v),
|
|
2216
|
+
y ? r(y, T) : T.isSupportedClass = !1, T.label = v.label || v.id, T.id = v.id, T.group = p, c && (T.fieldSetId = m.id), t === v.id && (n = p), o.set(v.id, v), l.push(T);
|
|
2217
2217
|
});
|
|
2218
2218
|
}
|
|
2219
2219
|
function d(m) {
|
|
2220
|
-
const
|
|
2221
|
-
if (!
|
|
2220
|
+
const l = e.getComponentById(m);
|
|
2221
|
+
if (!l || !l.componentType || !l.componentType.startsWith("form"))
|
|
2222
2222
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
2223
|
-
const p = e.selectNode(
|
|
2223
|
+
const p = e.selectNode(l, (c) => c.type === Zt["response-form"].type);
|
|
2224
2224
|
return !p || !p.contents || p.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: p };
|
|
2225
2225
|
}
|
|
2226
|
-
function
|
|
2227
|
-
|
|
2228
|
-
const { result: p, message: c, formNode: f } = d(
|
|
2226
|
+
function s(m, l) {
|
|
2227
|
+
l = l || m.id;
|
|
2228
|
+
const { result: p, message: c, formNode: f } = d(l);
|
|
2229
2229
|
if (!p)
|
|
2230
2230
|
return { result: p, message: c };
|
|
2231
2231
|
t = m.id, i = [], o.clear();
|
|
@@ -2240,9 +2240,9 @@ function Qr(e) {
|
|
|
2240
2240
|
importData: i
|
|
2241
2241
|
};
|
|
2242
2242
|
}
|
|
2243
|
-
function u(m,
|
|
2244
|
-
|
|
2245
|
-
const { result: p, formNode: c } = d(
|
|
2243
|
+
function u(m, l) {
|
|
2244
|
+
l = l;
|
|
2245
|
+
const { result: p, formNode: c } = d(l);
|
|
2246
2246
|
if (!p)
|
|
2247
2247
|
return "";
|
|
2248
2248
|
const f = [];
|
|
@@ -2262,7 +2262,7 @@ function Qr(e) {
|
|
|
2262
2262
|
}
|
|
2263
2263
|
return {
|
|
2264
2264
|
checkCanFindFormNode: d,
|
|
2265
|
-
checkCanOpenLayoutEditor:
|
|
2265
|
+
checkCanOpenLayoutEditor: s,
|
|
2266
2266
|
changeFormControlsByResponseLayoutConfig: u,
|
|
2267
2267
|
getResonseFormLayoutConfig: a
|
|
2268
2268
|
};
|
|
@@ -2281,8 +2281,8 @@ var Zr = { exports: {} };
|
|
|
2281
2281
|
function a(u, m) {
|
|
2282
2282
|
if (!i[u]) {
|
|
2283
2283
|
if (!o[u]) {
|
|
2284
|
-
var
|
|
2285
|
-
if (!m &&
|
|
2284
|
+
var l = typeof pt == "function" && pt;
|
|
2285
|
+
if (!m && l) return l(u, !0);
|
|
2286
2286
|
if (d) return d(u, !0);
|
|
2287
2287
|
var p = new Error("Cannot find module '" + u + "'");
|
|
2288
2288
|
throw p.code = "MODULE_NOT_FOUND", p;
|
|
@@ -2295,23 +2295,23 @@ var Zr = { exports: {} };
|
|
|
2295
2295
|
}
|
|
2296
2296
|
return i[u].exports;
|
|
2297
2297
|
}
|
|
2298
|
-
for (var d = typeof pt == "function" && pt,
|
|
2298
|
+
for (var d = typeof pt == "function" && pt, s = 0; s < r.length; s++) a(r[s]);
|
|
2299
2299
|
return a;
|
|
2300
2300
|
}
|
|
2301
2301
|
return t;
|
|
2302
2302
|
}())({
|
|
2303
2303
|
1: [function(t, o, i) {
|
|
2304
2304
|
var r = {}, a = "(?:^|\\s)", d = "(?:\\s|$)";
|
|
2305
|
-
function l
|
|
2306
|
-
var p = r[
|
|
2307
|
-
return p ? p.lastIndex = 0 : r[
|
|
2305
|
+
function s(l) {
|
|
2306
|
+
var p = r[l];
|
|
2307
|
+
return p ? p.lastIndex = 0 : r[l] = p = new RegExp(a + l + d, "g"), p;
|
|
2308
2308
|
}
|
|
2309
|
-
function u(
|
|
2310
|
-
var c =
|
|
2311
|
-
c.length ?
|
|
2309
|
+
function u(l, p) {
|
|
2310
|
+
var c = l.className;
|
|
2311
|
+
c.length ? s(p).test(c) || (l.className += " " + p) : l.className = p;
|
|
2312
2312
|
}
|
|
2313
|
-
function m(
|
|
2314
|
-
|
|
2313
|
+
function m(l, p) {
|
|
2314
|
+
l.className = l.className.replace(s(p), " ").trim();
|
|
2315
2315
|
}
|
|
2316
2316
|
o.exports = {
|
|
2317
2317
|
add: u,
|
|
@@ -2320,12 +2320,12 @@ var Zr = { exports: {} };
|
|
|
2320
2320
|
}, {}],
|
|
2321
2321
|
2: [function(t, o, i) {
|
|
2322
2322
|
(function(r) {
|
|
2323
|
-
var a = t("contra/emitter"), d = t("crossvent"),
|
|
2324
|
-
function
|
|
2325
|
-
var
|
|
2326
|
-
|
|
2327
|
-
var q, Q, ie, fe, N, B, ee, U, ae, Ce = null, me, te, pe = !1, ve = 0,
|
|
2328
|
-
_.moves === void 0 && (_.moves = E), _.accepts === void 0 && (_.accepts = E), _.invalid === void 0 && (_.invalid =
|
|
2323
|
+
var a = t("contra/emitter"), d = t("crossvent"), s = t("./classes"), u = document, m = u.documentElement;
|
|
2324
|
+
function l(F, J) {
|
|
2325
|
+
var G = arguments.length;
|
|
2326
|
+
G === 1 && Array.isArray(F) === !1 && (J = F, F = []);
|
|
2327
|
+
var q, Q, ie, fe, N, B, ee, U, ae, Ce = null, me, te, pe = !1, ve = 0, le, _ = J || {};
|
|
2328
|
+
_.moves === void 0 && (_.moves = E), _.accepts === void 0 && (_.accepts = E), _.invalid === void 0 && (_.invalid = W), _.containers === void 0 && (_.containers = F || []), _.isContainer === void 0 && (_.isContainer = T), _.copy === void 0 && (_.copy = !1), _.copySortSource === void 0 && (_.copySortSource = !1), _.revertOnSpill === void 0 && (_.revertOnSpill = !1), _.removeOnSpill === void 0 && (_.removeOnSpill = !1), _.direction === void 0 && (_.direction = "vertical"), _.ignoreInputTextSelection === void 0 && (_.ignoreInputTextSelection = !0), _.mirrorContainer === void 0 && (_.mirrorContainer = u.body);
|
|
2329
2329
|
var ce = a({
|
|
2330
2330
|
containers: _.containers,
|
|
2331
2331
|
start: X,
|
|
@@ -2348,14 +2348,14 @@ var Zr = { exports: {} };
|
|
|
2348
2348
|
var P = b ? "remove" : "add";
|
|
2349
2349
|
f(m, P, "mousemove", Qe);
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function We(b) {
|
|
2352
2352
|
var P = b ? "remove" : "add";
|
|
2353
|
-
d[P](m, "selectstart",
|
|
2353
|
+
d[P](m, "selectstart", Ge), d[P](m, "click", Ge);
|
|
2354
2354
|
}
|
|
2355
2355
|
function Ue() {
|
|
2356
2356
|
Le(!0), ke({});
|
|
2357
2357
|
}
|
|
2358
|
-
function
|
|
2358
|
+
function Ge(b) {
|
|
2359
2359
|
me && b.preventDefault();
|
|
2360
2360
|
}
|
|
2361
2361
|
function ge(b) {
|
|
@@ -2378,8 +2378,8 @@ var Zr = { exports: {} };
|
|
|
2378
2378
|
if (C(Z))
|
|
2379
2379
|
return;
|
|
2380
2380
|
}
|
|
2381
|
-
var
|
|
2382
|
-
Oe(!0),
|
|
2381
|
+
var se = me;
|
|
2382
|
+
Oe(!0), We(), re(), Y(se), s.add(U || ie, "gu-transit"), Bt(), kt(), ve = 0, qe(b);
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
2385
2385
|
}
|
|
@@ -2409,7 +2409,7 @@ var Zr = { exports: {} };
|
|
|
2409
2409
|
function Y(b) {
|
|
2410
2410
|
$t(b.item, b.source) && (U = b.item.cloneNode(!0), ce.emit("cloned", U, b.item, "copy")), Q = b.source, ie = b.item, B = ee = w(b.item), ce.dragging = !0, ce.emit("drag", ie, Q);
|
|
2411
2411
|
}
|
|
2412
|
-
function
|
|
2412
|
+
function W() {
|
|
2413
2413
|
return !1;
|
|
2414
2414
|
}
|
|
2415
2415
|
function re() {
|
|
@@ -2419,11 +2419,11 @@ var Zr = { exports: {} };
|
|
|
2419
2419
|
}
|
|
2420
2420
|
}
|
|
2421
2421
|
function de() {
|
|
2422
|
-
me = !1, Oe(!0),
|
|
2422
|
+
me = !1, Oe(!0), We(!0);
|
|
2423
2423
|
}
|
|
2424
2424
|
function ke(b) {
|
|
2425
2425
|
if (de(), !!ce.dragging) {
|
|
2426
|
-
var P = U || ie, j = O("clientX", b) || 0, Z = O("clientY", b) || 0,
|
|
2426
|
+
var P = U || ie, j = O("clientX", b) || 0, Z = O("clientY", b) || 0, se = y(q, j, Z), ue = we(se, j, Z);
|
|
2427
2427
|
ue && (U && _.copySortSource || !U || ue !== Q) ? Te(P, ue) : _.removeOnSpill ? Xe() : I();
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
@@ -2439,23 +2439,23 @@ var Zr = { exports: {} };
|
|
|
2439
2439
|
}
|
|
2440
2440
|
function I(b) {
|
|
2441
2441
|
if (ce.dragging) {
|
|
2442
|
-
var P = arguments.length > 0 ? b : _.revertOnSpill, j = U || ie, Z = S(j),
|
|
2443
|
-
|
|
2442
|
+
var P = arguments.length > 0 ? b : _.revertOnSpill, j = U || ie, Z = S(j), se = be(Z);
|
|
2443
|
+
se === !1 && P && (U ? Z && Z.removeChild(U) : Q.insertBefore(j, B)), se || P ? ce.emit("cancel", j, Q, Q) : ce.emit("drop", j, Z, Q, ee), ne();
|
|
2444
2444
|
}
|
|
2445
2445
|
}
|
|
2446
2446
|
function ne() {
|
|
2447
2447
|
var b = U || ie;
|
|
2448
|
-
de(), Pt(), Vt(), b &&
|
|
2448
|
+
de(), Pt(), Vt(), b && s.rm(b, "gu-transit"), ae && clearTimeout(ae), ce.dragging = !1, Ce && ce.emit("out", b, Ce, Q), ce.emit("dragend", b, ve), Q = ie = U = B = ee = ae = Ce = null;
|
|
2449
2449
|
}
|
|
2450
2450
|
function be(b, P) {
|
|
2451
2451
|
var j;
|
|
2452
2452
|
return P !== void 0 ? j = P : q ? j = ee : j = w(U || ie), b === Q && j === B;
|
|
2453
2453
|
}
|
|
2454
2454
|
function we(b, P, j) {
|
|
2455
|
-
for (var Z = b; Z && !
|
|
2455
|
+
for (var Z = b; Z && !se(); )
|
|
2456
2456
|
Z = S(Z);
|
|
2457
2457
|
return Z;
|
|
2458
|
-
function
|
|
2458
|
+
function se() {
|
|
2459
2459
|
var ue = ze(Z);
|
|
2460
2460
|
if (ue === !1)
|
|
2461
2461
|
return !1;
|
|
@@ -2469,14 +2469,14 @@ var Zr = { exports: {} };
|
|
|
2469
2469
|
b.preventDefault();
|
|
2470
2470
|
var P = O("clientX", b) || 0, j = O("clientY", b) || 0;
|
|
2471
2471
|
q.style.left = P - 2 + "px", q.style.top = j - 2 + "px";
|
|
2472
|
-
var Z = U || ie,
|
|
2473
|
-
(Ne || ue === null) && (Pe(), Ce = ue, He()), Lt(
|
|
2472
|
+
var Z = U || ie, se = y(q, P, j), ue = we(se, P, j), Ne = ue !== null && ue !== Ce;
|
|
2473
|
+
(Ne || ue === null) && (Pe(), Ce = ue, He()), Lt(se, j);
|
|
2474
2474
|
var Me = S(Z);
|
|
2475
2475
|
if (ue === Q && U && !_.copySortSource) {
|
|
2476
2476
|
Me && Me.removeChild(Z);
|
|
2477
2477
|
return;
|
|
2478
2478
|
}
|
|
2479
|
-
var Be, je = dt(ue,
|
|
2479
|
+
var Be, je = dt(ue, se);
|
|
2480
2480
|
if (pe = at(je, ue), je !== null)
|
|
2481
2481
|
Be = ft(ue, je, P, j);
|
|
2482
2482
|
else if (_.revertOnSpill === !0 && !U)
|
|
@@ -2500,23 +2500,23 @@ var Zr = { exports: {} };
|
|
|
2500
2500
|
(b === P || b === w(P)) && (ee = w(P)), (b === null && j || b !== P && b !== w(P)) && (ee = b);
|
|
2501
2501
|
}
|
|
2502
2502
|
function It(b) {
|
|
2503
|
-
|
|
2503
|
+
s.rm(b, "gu-hide");
|
|
2504
2504
|
}
|
|
2505
2505
|
function Mt(b) {
|
|
2506
|
-
ce.dragging &&
|
|
2506
|
+
ce.dragging && s.add(b, "gu-hide");
|
|
2507
2507
|
}
|
|
2508
2508
|
function kt() {
|
|
2509
|
-
q || (q = document.createElement("div"), q.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;", q.innerHTML = _.getMirrorText && _.getMirrorText(ie) || "控件",
|
|
2509
|
+
q || (q = document.createElement("div"), q.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;", q.innerHTML = _.getMirrorText && _.getMirrorText(ie) || "控件", s.add(q, "gu-mirror"), _.mirrorContainer.appendChild(q), f(m, "add", "mousemove", qe), s.add(_.mirrorContainer, "gu-unselectable"), ce.emit("cloned", q, ie, "mirror"));
|
|
2510
2510
|
}
|
|
2511
2511
|
function Bt() {
|
|
2512
|
-
if (te = document.createElement("div"),
|
|
2512
|
+
if (te = document.createElement("div"), s.add(te, "gu-insertion"), ie) {
|
|
2513
2513
|
var b = ie.getBoundingClientRect();
|
|
2514
2514
|
te.style.left = b.left + "px", te.style.top = b.top + "px";
|
|
2515
2515
|
}
|
|
2516
2516
|
pe = !1, _.mirrorContainer.appendChild(te);
|
|
2517
2517
|
}
|
|
2518
2518
|
function Pt() {
|
|
2519
|
-
q && (
|
|
2519
|
+
q && (s.rm(_.mirrorContainer, "gu-unselectable"), f(m, "remove", "mousemove", qe), S(q).removeChild(q), q = null);
|
|
2520
2520
|
}
|
|
2521
2521
|
function Vt() {
|
|
2522
2522
|
te && (S(te).removeChild(te), te = null);
|
|
@@ -2532,8 +2532,8 @@ var Zr = { exports: {} };
|
|
|
2532
2532
|
var j = b || P && P.lastElementChild;
|
|
2533
2533
|
if (!j)
|
|
2534
2534
|
return !0;
|
|
2535
|
-
var Z = getComputedStyle(b),
|
|
2536
|
-
if (
|
|
2535
|
+
var Z = getComputedStyle(b), se = /^inline/.test(Z.getPropertyValue("display")) || /^(left|right)$/.test(Z.getPropertyValue("float"));
|
|
2536
|
+
if (se)
|
|
2537
2537
|
return !0;
|
|
2538
2538
|
if (P) {
|
|
2539
2539
|
var ue = getComputedStyle(P), Ne = ue.getPropertyValue("display");
|
|
@@ -2550,11 +2550,11 @@ var Zr = { exports: {} };
|
|
|
2550
2550
|
if (!b.children || !b.children.length)
|
|
2551
2551
|
return !1;
|
|
2552
2552
|
for (const P of Array.from(b.children)) {
|
|
2553
|
-
const Z = (P.className && P.className.split(" ") || []).filter((
|
|
2553
|
+
const Z = (P.className && P.className.split(" ") || []).filter((se) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(se));
|
|
2554
2554
|
if (!Z.length)
|
|
2555
2555
|
return !1;
|
|
2556
|
-
for (const
|
|
2557
|
-
const ue =
|
|
2556
|
+
for (const se of Z) {
|
|
2557
|
+
const ue = se.slice(se.lastIndexOf("-") + 1);
|
|
2558
2558
|
if (parseInt(ue, 10) !== 12)
|
|
2559
2559
|
return !1;
|
|
2560
2560
|
}
|
|
@@ -2568,8 +2568,8 @@ var Zr = { exports: {} };
|
|
|
2568
2568
|
const Z = b.getBoundingClientRect();
|
|
2569
2569
|
Z.top !== j.top && (te.style.left = Z.right + "px", te.style.top = Z.top + "px", te.style.height = Z.height + "px");
|
|
2570
2570
|
}
|
|
2571
|
-
} else if (te.style.height = "4px", te.style.width = j.width + "px",
|
|
2572
|
-
const Z =
|
|
2571
|
+
} else if (te.style.height = "4px", te.style.width = j.width + "px", le) {
|
|
2572
|
+
const Z = le.getBoundingClientRect();
|
|
2573
2573
|
j.top < Z.top && (te.style.display = "none");
|
|
2574
2574
|
}
|
|
2575
2575
|
P === ie && ie && (te.style.display = "none");
|
|
@@ -2584,36 +2584,36 @@ var Zr = { exports: {} };
|
|
|
2584
2584
|
te.style.display = "none";
|
|
2585
2585
|
}
|
|
2586
2586
|
function Lt(b, P) {
|
|
2587
|
-
if (!_.mirrorContainer.contains(b) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (
|
|
2587
|
+
if (!_.mirrorContainer.contains(b) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (le = p(b), !le || !le.contains(b)))
|
|
2588
2588
|
return;
|
|
2589
|
-
const j = document.querySelector(".dgComponentSelected"), Z =
|
|
2590
|
-
if (P - 30 < Z.top &&
|
|
2591
|
-
let
|
|
2592
|
-
|
|
2589
|
+
const j = document.querySelector(".dgComponentSelected"), Z = le.getBoundingClientRect();
|
|
2590
|
+
if (P - 30 < Z.top && le.scrollTop > 0) {
|
|
2591
|
+
let se = le.scrollTop < 10 ? le.scrollTop : 10;
|
|
2592
|
+
le.scrollBy(0, -1 * se), j && le.contains(j) && (ve = ve + -1 * se);
|
|
2593
2593
|
}
|
|
2594
|
-
if (P + 30 > Z.bottom &&
|
|
2595
|
-
const
|
|
2596
|
-
let ue =
|
|
2597
|
-
|
|
2594
|
+
if (P + 30 > Z.bottom && le.scrollTop < le.scrollHeight - le.clientHeight) {
|
|
2595
|
+
const se = le.scrollHeight - le.clientHeight - le.scrollTop;
|
|
2596
|
+
let ue = se < 10 ? se : 10;
|
|
2597
|
+
le.scrollBy(0, ue), j && le.contains(j) && (ve = ve + ue);
|
|
2598
2598
|
}
|
|
2599
2599
|
}
|
|
2600
2600
|
function ft(b, P, j, Z) {
|
|
2601
|
-
var
|
|
2601
|
+
var se = _.direction === "horizontal", ue = _.direction === "mixed", Ne = P !== b ? Be() : Me();
|
|
2602
2602
|
return Ne;
|
|
2603
2603
|
function Me() {
|
|
2604
2604
|
var xe = b.children.length, He, Pe, Ee;
|
|
2605
2605
|
for (He = 0; He < xe; He++)
|
|
2606
|
-
if (Pe = b.children[He], Ee = Pe.getBoundingClientRect(),
|
|
2606
|
+
if (Pe = b.children[He], Ee = Pe.getBoundingClientRect(), se && Ee.left + Ee.width / 2 > j || !ue && !se && Ee.top + Ee.height / 2 > Z || ue && Ee.left + Ee.width > j && Ee.top + Ee.height > Z)
|
|
2607
2607
|
return Pe;
|
|
2608
2608
|
return null;
|
|
2609
2609
|
}
|
|
2610
2610
|
function Be() {
|
|
2611
2611
|
var xe = P.getBoundingClientRect();
|
|
2612
2612
|
if (ue) {
|
|
2613
|
-
var He = Z - xe.top, Pe = j - xe.left, Ee = xe.bottom - Z,
|
|
2614
|
-
return pe ? ut =
|
|
2613
|
+
var He = Z - xe.top, Pe = j - xe.left, Ee = xe.bottom - Z, st = xe.right - j, lt = Math.min(Pe, st, He, Ee), ut;
|
|
2614
|
+
return pe ? ut = st < Pe : ut = Ee === lt || st === lt || Pe === lt, je(ut);
|
|
2615
2615
|
}
|
|
2616
|
-
return je(
|
|
2616
|
+
return je(se ? j > xe.left + A(xe) / 2 : Z > xe.top + k(xe) / 2);
|
|
2617
2617
|
}
|
|
2618
2618
|
function je(xe) {
|
|
2619
2619
|
return xe ? w(P) : P;
|
|
@@ -2629,20 +2629,20 @@ var Zr = { exports: {} };
|
|
|
2629
2629
|
const q = Array.from(window.scrollContainerList)[0];
|
|
2630
2630
|
return document.getElementById(q);
|
|
2631
2631
|
}
|
|
2632
|
-
const
|
|
2633
|
-
for (const q of
|
|
2632
|
+
const G = c(J);
|
|
2633
|
+
for (const q of G)
|
|
2634
2634
|
if (q.contains(F))
|
|
2635
2635
|
return q;
|
|
2636
2636
|
return null;
|
|
2637
2637
|
}
|
|
2638
2638
|
function c(F) {
|
|
2639
2639
|
const J = [];
|
|
2640
|
-
return F.forEach((
|
|
2641
|
-
const q = document.getElementById(
|
|
2640
|
+
return F.forEach((G) => {
|
|
2641
|
+
const q = document.getElementById(G);
|
|
2642
2642
|
q && J.push(q);
|
|
2643
|
-
}), J.sort((
|
|
2643
|
+
}), J.sort((G, q) => G.contains(q) ? 1 : q.contains(G) ? -1 : 0), J;
|
|
2644
2644
|
}
|
|
2645
|
-
function f(F, J,
|
|
2645
|
+
function f(F, J, G, q) {
|
|
2646
2646
|
var Q = {
|
|
2647
2647
|
mouseup: "touchend",
|
|
2648
2648
|
mousedown: "touchstart",
|
|
@@ -2656,7 +2656,7 @@ var Zr = { exports: {} };
|
|
|
2656
2656
|
mousedown: "MSPointerDown",
|
|
2657
2657
|
mousemove: "MSPointerMove"
|
|
2658
2658
|
};
|
|
2659
|
-
r.navigator.pointerEnabled ? d[J](F, ie[
|
|
2659
|
+
r.navigator.pointerEnabled ? d[J](F, ie[G], q) : r.navigator.msPointerEnabled ? d[J](F, fe[G], q) : (d[J](F, Q[G], q), d[J](F, G, q));
|
|
2660
2660
|
}
|
|
2661
2661
|
function v(F) {
|
|
2662
2662
|
if (F.touches !== void 0)
|
|
@@ -2669,10 +2669,10 @@ var Zr = { exports: {} };
|
|
|
2669
2669
|
if (J !== void 0)
|
|
2670
2670
|
return J & 1 ? 1 : J & 2 ? 3 : J & 4 ? 2 : 0;
|
|
2671
2671
|
}
|
|
2672
|
-
function y(F, J,
|
|
2672
|
+
function y(F, J, G) {
|
|
2673
2673
|
F = F || {};
|
|
2674
2674
|
var q = F.className || "", Q;
|
|
2675
|
-
return F.className += " gu-hide", Q = u.elementFromPoint(J,
|
|
2675
|
+
return F.className += " gu-hide", Q = u.elementFromPoint(J, G), F.className = q, Q;
|
|
2676
2676
|
}
|
|
2677
2677
|
function T() {
|
|
2678
2678
|
return !1;
|
|
@@ -2698,26 +2698,26 @@ var Zr = { exports: {} };
|
|
|
2698
2698
|
function w(F) {
|
|
2699
2699
|
return F.nextElementSibling || J();
|
|
2700
2700
|
function J() {
|
|
2701
|
-
var
|
|
2701
|
+
var G = F;
|
|
2702
2702
|
do
|
|
2703
|
-
|
|
2704
|
-
while (
|
|
2705
|
-
return
|
|
2703
|
+
G = G.nextSibling;
|
|
2704
|
+
while (G && G.nodeType !== 1);
|
|
2705
|
+
return G;
|
|
2706
2706
|
}
|
|
2707
2707
|
}
|
|
2708
2708
|
function M(F) {
|
|
2709
2709
|
return F.targetTouches && F.targetTouches.length ? F.targetTouches[0] : F.changedTouches && F.changedTouches.length ? F.changedTouches[0] : F;
|
|
2710
2710
|
}
|
|
2711
2711
|
function O(F, J) {
|
|
2712
|
-
var
|
|
2712
|
+
var G = M(J), q = {
|
|
2713
2713
|
pageX: "clientX",
|
|
2714
2714
|
// IE8
|
|
2715
2715
|
pageY: "clientY"
|
|
2716
2716
|
// IE8
|
|
2717
2717
|
};
|
|
2718
|
-
return F in q && !(F in
|
|
2718
|
+
return F in q && !(F in G) && q[F] in G && (F = q[F]), G[F];
|
|
2719
2719
|
}
|
|
2720
|
-
o.exports =
|
|
2720
|
+
o.exports = l;
|
|
2721
2721
|
}).call(this, typeof Je < "u" ? Je : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2722
2722
|
}, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
|
|
2723
2723
|
3: [function(t, o, i) {
|
|
@@ -2727,52 +2727,52 @@ var Zr = { exports: {} };
|
|
|
2727
2727
|
}, {}],
|
|
2728
2728
|
4: [function(t, o, i) {
|
|
2729
2729
|
var r = t("ticky");
|
|
2730
|
-
o.exports = function(d,
|
|
2730
|
+
o.exports = function(d, s, u) {
|
|
2731
2731
|
d && r(function() {
|
|
2732
|
-
d.apply(u || null,
|
|
2732
|
+
d.apply(u || null, s || []);
|
|
2733
2733
|
});
|
|
2734
2734
|
};
|
|
2735
2735
|
}, { ticky: 10 }],
|
|
2736
2736
|
5: [function(t, o, i) {
|
|
2737
2737
|
var r = t("atoa"), a = t("./debounce");
|
|
2738
|
-
o.exports = function(
|
|
2739
|
-
var m = u || {},
|
|
2740
|
-
return
|
|
2741
|
-
return
|
|
2742
|
-
},
|
|
2743
|
-
return c._once = !0,
|
|
2744
|
-
},
|
|
2738
|
+
o.exports = function(s, u) {
|
|
2739
|
+
var m = u || {}, l = {};
|
|
2740
|
+
return s === void 0 && (s = {}), s.on = function(p, c) {
|
|
2741
|
+
return l[p] ? l[p].push(c) : l[p] = [c], s;
|
|
2742
|
+
}, s.once = function(p, c) {
|
|
2743
|
+
return c._once = !0, s.on(p, c), s;
|
|
2744
|
+
}, s.off = function(p, c) {
|
|
2745
2745
|
var f = arguments.length;
|
|
2746
2746
|
if (f === 1)
|
|
2747
|
-
delete
|
|
2747
|
+
delete l[p];
|
|
2748
2748
|
else if (f === 0)
|
|
2749
|
-
|
|
2749
|
+
l = {};
|
|
2750
2750
|
else {
|
|
2751
|
-
var v =
|
|
2751
|
+
var v = l[p];
|
|
2752
2752
|
if (!v)
|
|
2753
|
-
return
|
|
2753
|
+
return s;
|
|
2754
2754
|
v.splice(v.indexOf(c), 1);
|
|
2755
2755
|
}
|
|
2756
|
-
return
|
|
2757
|
-
},
|
|
2756
|
+
return s;
|
|
2757
|
+
}, s.emit = function() {
|
|
2758
2758
|
var p = r(arguments);
|
|
2759
|
-
return
|
|
2760
|
-
},
|
|
2761
|
-
var c = (
|
|
2759
|
+
return s.emitterSnapshot(p.shift()).apply(this, p);
|
|
2760
|
+
}, s.emitterSnapshot = function(p) {
|
|
2761
|
+
var c = (l[p] || []).slice(0);
|
|
2762
2762
|
return function() {
|
|
2763
|
-
var f = r(arguments), v = this ||
|
|
2763
|
+
var f = r(arguments), v = this || s;
|
|
2764
2764
|
if (p === "error" && m.throws !== !1 && !c.length)
|
|
2765
2765
|
throw f.length === 1 ? f[0] : f;
|
|
2766
2766
|
return c.forEach(function(T) {
|
|
2767
|
-
m.async ? a(T, f, v) : T.apply(v, f), T._once &&
|
|
2768
|
-
}),
|
|
2767
|
+
m.async ? a(T, f, v) : T.apply(v, f), T._once && s.off(p, T);
|
|
2768
|
+
}), s;
|
|
2769
2769
|
};
|
|
2770
|
-
},
|
|
2770
|
+
}, s;
|
|
2771
2771
|
};
|
|
2772
2772
|
}, { "./debounce": 4, atoa: 3 }],
|
|
2773
2773
|
6: [function(t, o, i) {
|
|
2774
2774
|
(function(r) {
|
|
2775
|
-
var a = t("custom-event"), d = t("./eventmap"),
|
|
2775
|
+
var a = t("custom-event"), d = t("./eventmap"), s = r.document, u = p, m = f, l = [];
|
|
2776
2776
|
r.addEventListener || (u = c, m = v), o.exports = {
|
|
2777
2777
|
add: u,
|
|
2778
2778
|
remove: m,
|
|
@@ -2797,7 +2797,7 @@ var Zr = { exports: {} };
|
|
|
2797
2797
|
S.dispatchEvent ? S.dispatchEvent(w) : S.fireEvent("on" + C, w);
|
|
2798
2798
|
function M() {
|
|
2799
2799
|
var F;
|
|
2800
|
-
return
|
|
2800
|
+
return s.createEvent ? (F = s.createEvent("Event"), F.initEvent(C, !0, !0)) : s.createEventObject && (F = s.createEventObject()), F;
|
|
2801
2801
|
}
|
|
2802
2802
|
function O() {
|
|
2803
2803
|
return new a(C, { detail: x });
|
|
@@ -2815,7 +2815,7 @@ var Zr = { exports: {} };
|
|
|
2815
2815
|
}
|
|
2816
2816
|
function E(S, C, x) {
|
|
2817
2817
|
var w = A(S, C, x) || T(S, C, x);
|
|
2818
|
-
return
|
|
2818
|
+
return l.push({
|
|
2819
2819
|
wrapper: w,
|
|
2820
2820
|
element: S,
|
|
2821
2821
|
type: C,
|
|
@@ -2825,23 +2825,23 @@ var Zr = { exports: {} };
|
|
|
2825
2825
|
function A(S, C, x) {
|
|
2826
2826
|
var w = k(S, C, x);
|
|
2827
2827
|
if (w) {
|
|
2828
|
-
var M =
|
|
2829
|
-
return
|
|
2828
|
+
var M = l[w].wrapper;
|
|
2829
|
+
return l.splice(w, 1), M;
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
2832
|
function k(S, C, x) {
|
|
2833
2833
|
var w, M;
|
|
2834
|
-
for (w = 0; w <
|
|
2835
|
-
if (M =
|
|
2834
|
+
for (w = 0; w < l.length; w++)
|
|
2835
|
+
if (M = l[w], M.element === S && M.type === C && M.fn === x)
|
|
2836
2836
|
return w;
|
|
2837
2837
|
}
|
|
2838
2838
|
}).call(this, typeof Je < "u" ? Je : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2839
2839
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
2840
2840
|
7: [function(t, o, i) {
|
|
2841
2841
|
(function(r) {
|
|
2842
|
-
var a = [], d = "",
|
|
2842
|
+
var a = [], d = "", s = /^on/;
|
|
2843
2843
|
for (d in r)
|
|
2844
|
-
|
|
2844
|
+
s.test(d) && a.push(d.slice(2));
|
|
2845
2845
|
o.exports = a;
|
|
2846
2846
|
}).call(this, typeof Je < "u" ? Je : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2847
2847
|
}, {}],
|
|
@@ -2850,8 +2850,8 @@ var Zr = { exports: {} };
|
|
|
2850
2850
|
var a = r.CustomEvent;
|
|
2851
2851
|
function d() {
|
|
2852
2852
|
try {
|
|
2853
|
-
var
|
|
2854
|
-
return
|
|
2853
|
+
var s = new a("cat", { detail: { foo: "bar" } });
|
|
2854
|
+
return s.type === "cat" && s.detail.foo === "bar";
|
|
2855
2855
|
} catch {
|
|
2856
2856
|
}
|
|
2857
2857
|
return !1;
|
|
@@ -2859,13 +2859,13 @@ var Zr = { exports: {} };
|
|
|
2859
2859
|
o.exports = d() ? a : (
|
|
2860
2860
|
// IE >= 9
|
|
2861
2861
|
typeof document < "u" && typeof document.createEvent == "function" ? function(u, m) {
|
|
2862
|
-
var
|
|
2863
|
-
return m ?
|
|
2862
|
+
var l = document.createEvent("CustomEvent");
|
|
2863
|
+
return m ? l.initCustomEvent(u, m.bubbles, m.cancelable, m.detail) : l.initCustomEvent(u, !1, !1, void 0), l;
|
|
2864
2864
|
} : (
|
|
2865
2865
|
// IE <= 8
|
|
2866
2866
|
function(u, m) {
|
|
2867
|
-
var
|
|
2868
|
-
return
|
|
2867
|
+
var l = document.createEventObject();
|
|
2868
|
+
return l.type = u, m ? (l.bubbles = !!m.bubbles, l.cancelable = !!m.cancelable, l.detail = m.detail) : (l.bubbles = !1, l.cancelable = !1, l.detail = void 0), l;
|
|
2869
2869
|
}
|
|
2870
2870
|
)
|
|
2871
2871
|
);
|
|
@@ -2873,7 +2873,7 @@ var Zr = { exports: {} };
|
|
|
2873
2873
|
}, {}],
|
|
2874
2874
|
9: [function(t, o, i) {
|
|
2875
2875
|
var r = o.exports = {}, a, d;
|
|
2876
|
-
function
|
|
2876
|
+
function s() {
|
|
2877
2877
|
throw new Error("setTimeout has not been defined");
|
|
2878
2878
|
}
|
|
2879
2879
|
function u() {
|
|
@@ -2881,9 +2881,9 @@ var Zr = { exports: {} };
|
|
|
2881
2881
|
}
|
|
2882
2882
|
(function() {
|
|
2883
2883
|
try {
|
|
2884
|
-
typeof setTimeout == "function" ? a = setTimeout : a =
|
|
2884
|
+
typeof setTimeout == "function" ? a = setTimeout : a = s;
|
|
2885
2885
|
} catch {
|
|
2886
|
-
a =
|
|
2886
|
+
a = s;
|
|
2887
2887
|
}
|
|
2888
2888
|
try {
|
|
2889
2889
|
typeof clearTimeout == "function" ? d = clearTimeout : d = u;
|
|
@@ -2894,7 +2894,7 @@ var Zr = { exports: {} };
|
|
|
2894
2894
|
function m(k) {
|
|
2895
2895
|
if (a === setTimeout)
|
|
2896
2896
|
return setTimeout(k, 0);
|
|
2897
|
-
if ((a ===
|
|
2897
|
+
if ((a === s || !a) && setTimeout)
|
|
2898
2898
|
return a = setTimeout, setTimeout(k, 0);
|
|
2899
2899
|
try {
|
|
2900
2900
|
return a(k, 0);
|
|
@@ -2906,7 +2906,7 @@ var Zr = { exports: {} };
|
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
|
-
function
|
|
2909
|
+
function l(k) {
|
|
2910
2910
|
if (d === clearTimeout)
|
|
2911
2911
|
return clearTimeout(k);
|
|
2912
2912
|
if ((d === u || !d) && clearTimeout)
|
|
@@ -2934,7 +2934,7 @@ var Zr = { exports: {} };
|
|
|
2934
2934
|
f && f[v].run();
|
|
2935
2935
|
v = -1, S = p.length;
|
|
2936
2936
|
}
|
|
2937
|
-
f = null, c = !1,
|
|
2937
|
+
f = null, c = !1, l(k);
|
|
2938
2938
|
}
|
|
2939
2939
|
}
|
|
2940
2940
|
r.nextTick = function(k) {
|
|
@@ -2967,20 +2967,20 @@ var Zr = { exports: {} };
|
|
|
2967
2967
|
10: [function(t, o, i) {
|
|
2968
2968
|
(function(r) {
|
|
2969
2969
|
var a = typeof r == "function", d;
|
|
2970
|
-
a ? d = function(
|
|
2971
|
-
r(
|
|
2972
|
-
} : d = function(
|
|
2973
|
-
setTimeout(
|
|
2970
|
+
a ? d = function(s) {
|
|
2971
|
+
r(s);
|
|
2972
|
+
} : d = function(s) {
|
|
2973
|
+
setTimeout(s, 0);
|
|
2974
2974
|
}, o.exports = d;
|
|
2975
2975
|
}).call(this, t("timers").setImmediate);
|
|
2976
2976
|
}, { timers: 11 }],
|
|
2977
2977
|
11: [function(t, o, i) {
|
|
2978
2978
|
(function(r, a) {
|
|
2979
|
-
var d = t("process/browser.js").nextTick,
|
|
2979
|
+
var d = t("process/browser.js").nextTick, s = Function.prototype.apply, u = Array.prototype.slice, m = {}, l = 0;
|
|
2980
2980
|
i.setTimeout = function() {
|
|
2981
|
-
return new p(
|
|
2981
|
+
return new p(s.call(setTimeout, window, arguments), clearTimeout);
|
|
2982
2982
|
}, i.setInterval = function() {
|
|
2983
|
-
return new p(
|
|
2983
|
+
return new p(s.call(setInterval, window, arguments), clearInterval);
|
|
2984
2984
|
}, i.clearTimeout = i.clearInterval = function(c) {
|
|
2985
2985
|
c.close();
|
|
2986
2986
|
};
|
|
@@ -3001,7 +3001,7 @@ var Zr = { exports: {} };
|
|
|
3001
3001
|
c._onTimeout && c._onTimeout();
|
|
3002
3002
|
}, f));
|
|
3003
3003
|
}, i.setImmediate = typeof r == "function" ? r : function(c) {
|
|
3004
|
-
var f =
|
|
3004
|
+
var f = l++, v = arguments.length < 2 ? !1 : u.call(arguments, 1);
|
|
3005
3005
|
return m[f] = !0, d(function() {
|
|
3006
3006
|
m[f] && (v ? c.apply(null, v) : c.call(null), i.clearImmediate(f));
|
|
3007
3007
|
}), f;
|
|
@@ -3038,14 +3038,14 @@ const Kr = {
|
|
|
3038
3038
|
const {
|
|
3039
3039
|
locale: t,
|
|
3040
3040
|
t: o
|
|
3041
|
-
} = zt(), i = h(e.animate), r = "fadeOut", a = H(() => e.options), d = h(!1),
|
|
3041
|
+
} = zt(), i = h(e.animate), r = "fadeOut", a = H(() => e.options), d = h(!1), s = H(() => a.value.title && a.value.message), u = H(() => !a.value.title && a.value.message), m = H(() => {
|
|
3042
3042
|
const k = {
|
|
3043
3043
|
animated: d.value,
|
|
3044
3044
|
toast: !0,
|
|
3045
|
-
"toast--only-content": !
|
|
3045
|
+
"toast--only-content": !s.value
|
|
3046
3046
|
};
|
|
3047
3047
|
return k[e.animate] = !1, k[r] = d.value, k["toasty-type-" + a.value.type] = !0, a.value.theme && (k[a.value.theme] = !0), k;
|
|
3048
|
-
}),
|
|
3048
|
+
}), l = H(() => {
|
|
3049
3049
|
const C = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, x = {
|
|
3050
3050
|
"f-icon": !0
|
|
3051
3051
|
};
|
|
@@ -3087,13 +3087,13 @@ const Kr = {
|
|
|
3087
3087
|
class: "f-icon modal_close"
|
|
3088
3088
|
}, null)]), p.value && g("section", {
|
|
3089
3089
|
class: "modal-tips"
|
|
3090
|
-
}, [!
|
|
3090
|
+
}, [!s.value && g("div", {
|
|
3091
3091
|
class: "float-left modal-tips-iconwrap"
|
|
3092
3092
|
}, [g("span", {
|
|
3093
|
-
class:
|
|
3093
|
+
class: l.value
|
|
3094
3094
|
}, null)]), g("div", {
|
|
3095
3095
|
class: "modal-tips-content"
|
|
3096
|
-
}, [
|
|
3096
|
+
}, [s.value && g(ot, null, [g("h5", {
|
|
3097
3097
|
class: "toast-title modal-tips-title",
|
|
3098
3098
|
innerHTML: a.value.title
|
|
3099
3099
|
}, null), g("p", {
|
|
@@ -3126,7 +3126,7 @@ const Kr = {
|
|
|
3126
3126
|
right: 12,
|
|
3127
3127
|
top: 20,
|
|
3128
3128
|
bottom: 12
|
|
3129
|
-
}, i = h(), r = h(e.options), a = h(e.showCloseButton), d = H(() => e.position || "bottom-right"),
|
|
3129
|
+
}, i = h(), r = h(e.options), a = h(e.showCloseButton), d = H(() => e.position || "bottom-right"), s = H(() => e.timeout != null ? e.timeout : 3e3), u = H(() => {
|
|
3130
3130
|
const p = e.bottom ? e.bottom : o.bottom, c = e.top ? e.top : o.top, f = {
|
|
3131
3131
|
transition: "all 0.2s ease",
|
|
3132
3132
|
left: d.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
@@ -3139,14 +3139,14 @@ const Kr = {
|
|
|
3139
3139
|
function m(p) {
|
|
3140
3140
|
n.emit("close");
|
|
3141
3141
|
}
|
|
3142
|
-
|
|
3142
|
+
s.value && setTimeout(() => {
|
|
3143
3143
|
m();
|
|
3144
|
-
},
|
|
3144
|
+
}, s.value), n.expose({
|
|
3145
3145
|
closeToast: m,
|
|
3146
3146
|
container: i,
|
|
3147
3147
|
notifyPosition: d
|
|
3148
3148
|
});
|
|
3149
|
-
function
|
|
3149
|
+
function l(p, c) {
|
|
3150
3150
|
m();
|
|
3151
3151
|
}
|
|
3152
3152
|
return () => g("div", {
|
|
@@ -3157,7 +3157,7 @@ const Kr = {
|
|
|
3157
3157
|
options: r.value,
|
|
3158
3158
|
showCloseButton: a.value,
|
|
3159
3159
|
animate: e.animate,
|
|
3160
|
-
onClose: (p) =>
|
|
3160
|
+
onClose: (p) => l(p, r.value)
|
|
3161
3161
|
}, null)]);
|
|
3162
3162
|
}
|
|
3163
3163
|
});
|
|
@@ -3186,15 +3186,15 @@ class ta {
|
|
|
3186
3186
|
setup() {
|
|
3187
3187
|
var u;
|
|
3188
3188
|
const d = h();
|
|
3189
|
-
function
|
|
3189
|
+
function s() {
|
|
3190
3190
|
d.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
3191
3191
|
t.updateNotifyPositionForClose(i, d), a.unmount();
|
|
3192
3192
|
}, 220);
|
|
3193
3193
|
}
|
|
3194
3194
|
if (i.position.indexOf("top") > -1) {
|
|
3195
|
-
const m = t.getNotifyInstances(i.position),
|
|
3196
|
-
if (
|
|
3197
|
-
const p =
|
|
3195
|
+
const m = t.getNotifyInstances(i.position), l = m[m.length - 1];
|
|
3196
|
+
if (l) {
|
|
3197
|
+
const p = l.value.container.getBoundingClientRect();
|
|
3198
3198
|
i.top = p.bottom;
|
|
3199
3199
|
}
|
|
3200
3200
|
}
|
|
@@ -3210,7 +3210,7 @@ class ta {
|
|
|
3210
3210
|
default: () => [g(gt, xt({
|
|
3211
3211
|
ref: d
|
|
3212
3212
|
}, i, {
|
|
3213
|
-
onClose:
|
|
3213
|
+
onClose: s
|
|
3214
3214
|
}), null)]
|
|
3215
3215
|
});
|
|
3216
3216
|
}
|
|
@@ -3436,7 +3436,7 @@ const oa = {
|
|
|
3436
3436
|
}
|
|
3437
3437
|
}
|
|
3438
3438
|
};
|
|
3439
|
-
function ia(e, n, t, o, i, r, a, d,
|
|
3439
|
+
function ia(e, n, t, o, i, r, a, d, s, u, m, l, p, c, f, v, y) {
|
|
3440
3440
|
const {
|
|
3441
3441
|
calculateCellPositionInRow: T
|
|
3442
3442
|
} = r, {
|
|
@@ -3449,7 +3449,7 @@ function ia(e, n, t, o, i, r, a, d, l, u, m, s, p, c, f, v, y) {
|
|
|
3449
3449
|
rightFixedGridDataStyle: x
|
|
3450
3450
|
} = c, {
|
|
3451
3451
|
renderDataRow: w
|
|
3452
|
-
} = vi(e, n, E, y, d,
|
|
3452
|
+
} = vi(e, n, E, y, d, s, u, m, l, p, c, f, v), M = [w];
|
|
3453
3453
|
function O(Q, ie) {
|
|
3454
3454
|
const fe = T(Q);
|
|
3455
3455
|
return y.value.filter((N) => N.visible !== !1).map((N, B) => M[N.type](N, fe, ie, B));
|
|
@@ -3472,7 +3472,7 @@ function ia(e, n, t, o, i, r, a, d, l, u, m, s, p, c, f, v, y) {
|
|
|
3472
3472
|
style: S.value
|
|
3473
3473
|
}, [O(E.value.primaryColumns.filter((Q) => Q.visible), "primary")])]);
|
|
3474
3474
|
}
|
|
3475
|
-
function
|
|
3475
|
+
function G() {
|
|
3476
3476
|
return g("div", {
|
|
3477
3477
|
ref: i,
|
|
3478
3478
|
class: "fv-grid-content-right-fixed"
|
|
@@ -3483,7 +3483,7 @@ function ia(e, n, t, o, i, r, a, d, l, u, m, s, p, c, f, v, y) {
|
|
|
3483
3483
|
}
|
|
3484
3484
|
function q() {
|
|
3485
3485
|
const Q = [];
|
|
3486
|
-
return A.value && Q.push(F()), Q.push(J()), k.value && Q.push(
|
|
3486
|
+
return A.value && Q.push(F()), Q.push(J()), k.value && Q.push(G()), Q;
|
|
3487
3487
|
}
|
|
3488
3488
|
return {
|
|
3489
3489
|
renderDataArea: q
|
|
@@ -3494,20 +3494,20 @@ const ra = /* @__PURE__ */ Re({
|
|
|
3494
3494
|
props: oa,
|
|
3495
3495
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged", "selectionUpdate"],
|
|
3496
3496
|
setup(e, n) {
|
|
3497
|
-
var _t,
|
|
3497
|
+
var _t, Wt;
|
|
3498
3498
|
const o = ((_t = e.rowOption) == null ? void 0 : _t.height) || 28, i = h(20), r = h(e.columns), a = gi(e), {
|
|
3499
3499
|
idField: d
|
|
3500
|
-
} = a,
|
|
3500
|
+
} = a, s = h(), u = h(), m = h(), l = h(), p = h(), c = h([]), f = h(!1), v = h(((Wt = e.rowOption) == null ? void 0 : Wt.wrapContent) || !1), y = hi(e, a), T = yi(e, n), E = bi(e), {
|
|
3501
3501
|
collapseField: A
|
|
3502
3502
|
} = E, {
|
|
3503
3503
|
showLoading: k,
|
|
3504
3504
|
renderLoading: S
|
|
3505
|
-
} = Ci(e,
|
|
3505
|
+
} = Ci(e, s), C = wi(e, /* @__PURE__ */ new Map(), T, E, a), {
|
|
3506
3506
|
dataView: x
|
|
3507
3507
|
} = C, w = xi(e, C, a, c, n), {
|
|
3508
3508
|
showSelection: M,
|
|
3509
3509
|
selectedValues: O
|
|
3510
|
-
} = w, F = Si(e, c, C, a, w, n), J = H(() => e.disabled),
|
|
3510
|
+
} = w, F = Si(e, c, C, a, w, n), J = H(() => e.disabled), G = H(() => e.virtualized ? Math.min(C.dataView.value.length, i.value) : C.dataView.value.length), q = Fi(e, C), {
|
|
3511
3511
|
shouldRenderPagination: Q
|
|
3512
3512
|
} = q, {
|
|
3513
3513
|
containerStyleObject: ie
|
|
@@ -3526,17 +3526,17 @@ const ra = /* @__PURE__ */ Re({
|
|
|
3526
3526
|
updateColumnRenderContext: te
|
|
3527
3527
|
} = U;
|
|
3528
3528
|
Ce(C, ae);
|
|
3529
|
-
const pe = Bi(e, me), ve = Pi(e, n, w, a),
|
|
3529
|
+
const pe = Bi(e, me), ve = Pi(e, n, w, a), le = Vi(e, n, a, ve, c), _ = Oi(e), ce = Ni(e, le, _), ze = Ri(e, C, le, E, a, _, ce), Le = Li(e, r, C, G, 0, ze), {
|
|
3530
3530
|
getVisualData: Oe
|
|
3531
|
-
} = Le,
|
|
3532
|
-
sidebarWidth:
|
|
3533
|
-
} = Ue, ge = ji(e, C, c, me, Le,
|
|
3531
|
+
} = Le, We = $i(e, me), Ue = Di(e, w), {
|
|
3532
|
+
sidebarWidth: Ge
|
|
3533
|
+
} = Ue, ge = ji(e, C, c, me, Le, G, 0, Ge), {
|
|
3534
3534
|
onWheel: Qe,
|
|
3535
3535
|
dataGridWidth: $e,
|
|
3536
3536
|
viewPortHeight: De,
|
|
3537
3537
|
viewPortWidth: X,
|
|
3538
3538
|
resetScroll: Y,
|
|
3539
|
-
updateVisibleRowsOnLatestVisibleScope:
|
|
3539
|
+
updateVisibleRowsOnLatestVisibleScope: W
|
|
3540
3540
|
} = ge, re = Hi(e, me, u, X, pe), {
|
|
3541
3541
|
calculateColumnsSize: de
|
|
3542
3542
|
} = re, ke = Ai(), Te = zi(u, p, C, ke, ge), Xe = Ui(e, n, U, C, pe, y, ge), I = H(() => {
|
|
@@ -3553,28 +3553,28 @@ const ra = /* @__PURE__ */ Re({
|
|
|
3553
3553
|
"fv-grid-wrap-content": v.value
|
|
3554
3554
|
})), {
|
|
3555
3555
|
renderDataArea: be
|
|
3556
|
-
} = ia(e, n, m,
|
|
3556
|
+
} = ia(e, n, m, l, p, We, U, C, le, E, ve, w, F, ge, Le, _, c), {
|
|
3557
3557
|
renderGridHeader: we,
|
|
3558
3558
|
renderGridColumnResizeOverlay: qe,
|
|
3559
3559
|
shouldShowHeader: Et
|
|
3560
|
-
} = qi(e, n, u,
|
|
3560
|
+
} = qi(e, n, u, l, p, U, C, Xe, Te, T, ke, re, pe, w, Ue, ae, ge, X, c), {
|
|
3561
3561
|
renderDataGridSidebar: It
|
|
3562
3562
|
} = _i(e, ve, w, Ue, ge), {
|
|
3563
3563
|
renderDisableMask: Mt
|
|
3564
|
-
} =
|
|
3564
|
+
} = Wi(), {
|
|
3565
3565
|
renderHorizontalScrollbar: kt
|
|
3566
|
-
} =
|
|
3566
|
+
} = Gi(e, u, ge), {
|
|
3567
3567
|
renderVerticalScrollbar: Bt
|
|
3568
3568
|
} = Xi(e, u, ge);
|
|
3569
3569
|
function Pt() {
|
|
3570
3570
|
var z, oe, Se;
|
|
3571
3571
|
if (u.value && u.value.clientHeight > 0 && ((z = u.value) == null ? void 0 : z.clientWidth) > 0) {
|
|
3572
3572
|
const Ie = Math.ceil(u.value.clientHeight / o);
|
|
3573
|
-
Ie > i.value && (i.value = Ie,
|
|
3573
|
+
Ie > i.value && (i.value = Ie, W()), De.value = ((oe = m.value) == null ? void 0 : oe.clientHeight) || 0, $e.value = ((Se = u.value) == null ? void 0 : Se.clientWidth) || 0, de();
|
|
3574
3574
|
}
|
|
3575
3575
|
}
|
|
3576
3576
|
rt(() => {
|
|
3577
|
-
u.value && (i.value = Math.max(Math.ceil(u.value.clientHeight / o), i.value), c.value = Oe(0,
|
|
3577
|
+
u.value && (i.value = Math.max(Math.ceil(u.value.clientHeight / o), i.value), c.value = Oe(0, G.value + 0 - 1), mi(u.value, Pt), de(), ct(() => {
|
|
3578
3578
|
u.value && ($e.value = u.value.clientWidth), m.value && (X.value = m.value.clientWidth, De.value = m.value.clientHeight);
|
|
3579
3579
|
})), k.value && S();
|
|
3580
3580
|
}), St(() => {
|
|
@@ -3593,11 +3593,11 @@ const ra = /* @__PURE__ */ Re({
|
|
|
3593
3593
|
}
|
|
3594
3594
|
function Ot() {
|
|
3595
3595
|
const z = at();
|
|
3596
|
-
C.insertNewDataItem(z), c.value = Oe(0,
|
|
3596
|
+
C.insertNewDataItem(z), c.value = Oe(0, G.value + 0 - 1);
|
|
3597
3597
|
}
|
|
3598
3598
|
function Nt() {
|
|
3599
3599
|
const z = at();
|
|
3600
|
-
C.insertNewChildDataItem(z), c.value = Oe(0,
|
|
3600
|
+
C.insertNewChildDataItem(z), c.value = Oe(0, G.value + 0 - 1);
|
|
3601
3601
|
}
|
|
3602
3602
|
function Rt(z, oe) {
|
|
3603
3603
|
const Se = c.value.find((Ve) => Ve.raw[d.value] === oe), Ie = Se ? Se.dataIndex - 1 : -1;
|
|
@@ -3605,16 +3605,16 @@ const ra = /* @__PURE__ */ Re({
|
|
|
3605
3605
|
}
|
|
3606
3606
|
function Lt() {
|
|
3607
3607
|
const z = at(), oe = F.getNextSelectableHierarchyItemId(z);
|
|
3608
|
-
C.removeHierarchyDataItem(z), c.value = Oe(0,
|
|
3608
|
+
C.removeHierarchyDataItem(z), c.value = Oe(0, G.value + 0 - 1), oe && w.selectItemById(oe);
|
|
3609
3609
|
}
|
|
3610
3610
|
function ft(z) {
|
|
3611
|
-
|
|
3611
|
+
le.onEditingRow(z);
|
|
3612
3612
|
}
|
|
3613
3613
|
function $t(z) {
|
|
3614
|
-
|
|
3614
|
+
le.acceptEditingRow(z);
|
|
3615
3615
|
}
|
|
3616
3616
|
function b(z) {
|
|
3617
|
-
|
|
3617
|
+
le.cancelEditingRow(z);
|
|
3618
3618
|
}
|
|
3619
3619
|
function P(z) {
|
|
3620
3620
|
z && (r.value = z, N(r), te(r.value), Ce(C, ae), de());
|
|
@@ -3628,7 +3628,7 @@ const ra = /* @__PURE__ */ Re({
|
|
|
3628
3628
|
function Z(z) {
|
|
3629
3629
|
w.selectItemById(z);
|
|
3630
3630
|
}
|
|
3631
|
-
function
|
|
3631
|
+
function se(z) {
|
|
3632
3632
|
const oe = c.value.find((Se) => Se.raw[a.idField.value] === z);
|
|
3633
3633
|
oe && ve.clickRowItem(oe);
|
|
3634
3634
|
}
|
|
@@ -3656,7 +3656,7 @@ const ra = /* @__PURE__ */ Re({
|
|
|
3656
3656
|
function Ee() {
|
|
3657
3657
|
return w.currentSelectedDataId.value;
|
|
3658
3658
|
}
|
|
3659
|
-
function
|
|
3659
|
+
function st(z, oe, Se) {
|
|
3660
3660
|
const Ie = x.value.find((Ve) => Ve[d.value] === z);
|
|
3661
3661
|
if (Ie) {
|
|
3662
3662
|
if (Object.keys(Ie).forEach((Fe) => {
|
|
@@ -3670,7 +3670,7 @@ const ra = /* @__PURE__ */ Re({
|
|
|
3670
3670
|
} = Se;
|
|
3671
3671
|
Fe && !Ye(oe[Fe]) && (Ie.__fv_collapse__ = oe[Fe]), Ke && !Ye(oe[Ke]) && (Ie.__fv_checked__ = oe[Ke]), Ze && !Ye(oe[Ze]) && (Ie.__fv_disabled__ = oe[Ze]), et && !Ye(oe[et]) && (Ie.__fv_visible__ = oe[et]);
|
|
3672
3672
|
}
|
|
3673
|
-
const Ve = c.value.find((Fe) => Fe.raw[d.value] === z),
|
|
3673
|
+
const Ve = c.value.find((Fe) => Fe.raw[d.value] === z), Gt = c.value.findIndex((Fe) => Fe.raw[d.value] === z);
|
|
3674
3674
|
if (Ve) {
|
|
3675
3675
|
if (Ve.raw = Ie, Object.keys(Ve.data).forEach((Fe) => {
|
|
3676
3676
|
Ve.data[Fe].updateData(Ie);
|
|
@@ -3683,11 +3683,11 @@ const ra = /* @__PURE__ */ Re({
|
|
|
3683
3683
|
} = Se;
|
|
3684
3684
|
Fe && !Ye(oe[Fe]) && (Ve.collapse = oe[Fe]), Ke && !Ye(oe[Ke]) && (Ve.checked = oe[Ke]), Ze && !Ye(oe[Ze]) && (Ve.disabled = oe[Ze]), et && !Ye(oe[et]) && (Ve.visible = oe[et]);
|
|
3685
3685
|
}
|
|
3686
|
-
c.value = [...c.value.slice(0,
|
|
3686
|
+
c.value = [...c.value.slice(0, Gt), Ve, ...c.value.slice(Gt + 1)], C.updateSummary();
|
|
3687
3687
|
}
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
3690
|
-
function
|
|
3690
|
+
function lt(z) {
|
|
3691
3691
|
return Object.prototype.hasOwnProperty.call(z, "raw") ? C.hasRealChildren(z.raw) : C.hasRealChildren(z);
|
|
3692
3692
|
}
|
|
3693
3693
|
function ut(z) {
|
|
@@ -3728,11 +3728,11 @@ const ra = /* @__PURE__ */ Re({
|
|
|
3728
3728
|
getSelectedItems: Me,
|
|
3729
3729
|
clearSelection: Be,
|
|
3730
3730
|
getSelectionRow: He,
|
|
3731
|
-
clickRowItemById:
|
|
3731
|
+
clickRowItemById: se,
|
|
3732
3732
|
unSelectItemByIds: Pe,
|
|
3733
3733
|
getCurrentRowId: Ee,
|
|
3734
|
-
reassignRowData:
|
|
3735
|
-
hasChildren:
|
|
3734
|
+
reassignRowData: st,
|
|
3735
|
+
hasChildren: lt,
|
|
3736
3736
|
getCollapseField: En,
|
|
3737
3737
|
getCollapseStatusById: ut,
|
|
3738
3738
|
getVisibleDataByIds: In,
|
|
@@ -3745,9 +3745,9 @@ const ra = /* @__PURE__ */ Re({
|
|
|
3745
3745
|
}), Pn = H(() => ({
|
|
3746
3746
|
...ie.value,
|
|
3747
3747
|
borderRadius: "5px"
|
|
3748
|
-
}))
|
|
3749
|
-
|
|
3750
|
-
|
|
3748
|
+
}));
|
|
3749
|
+
Ji(e, n, C, ge, q, w);
|
|
3750
|
+
const Vn = H(() => ({
|
|
3751
3751
|
"d-flex": !0,
|
|
3752
3752
|
"justify-content-between": Q.value && M.value,
|
|
3753
3753
|
"justify-content-end": Q.value && !M.value,
|
|
@@ -3759,7 +3759,7 @@ const ra = /* @__PURE__ */ Re({
|
|
|
3759
3759
|
renderDataGridSummary: Nn
|
|
3760
3760
|
} = Qi(e, C, U);
|
|
3761
3761
|
return () => g("div", {
|
|
3762
|
-
ref:
|
|
3762
|
+
ref: s,
|
|
3763
3763
|
class: I.value,
|
|
3764
3764
|
style: Pn.value,
|
|
3765
3765
|
onWheel: Qe
|
|
@@ -3780,10 +3780,10 @@ di(ra);
|
|
|
3780
3780
|
const aa = /* @__PURE__ */ new Map([
|
|
3781
3781
|
["appearance", yn]
|
|
3782
3782
|
]);
|
|
3783
|
-
function
|
|
3783
|
+
function sa(e, n, t) {
|
|
3784
3784
|
return n;
|
|
3785
3785
|
}
|
|
3786
|
-
const
|
|
3786
|
+
const la = "https://json-schema.org/draft/2020-12/schema", ua = "https://farris-design.gitee.io/step.schema.json", ca = "step", da = "A Farris Component", fa = "object", pa = {
|
|
3787
3787
|
id: {
|
|
3788
3788
|
description: "The unique identifier for step",
|
|
3789
3789
|
type: "string"
|
|
@@ -3849,7 +3849,7 @@ const sa = "https://json-schema.org/draft/2020-12/schema", ua = "https://farris-
|
|
|
3849
3849
|
"id",
|
|
3850
3850
|
"type"
|
|
3851
3851
|
], va = {
|
|
3852
|
-
$schema:
|
|
3852
|
+
$schema: la,
|
|
3853
3853
|
$id: ua,
|
|
3854
3854
|
title: ca,
|
|
3855
3855
|
description: da,
|
|
@@ -3914,7 +3914,7 @@ const sa = "https://json-schema.org/draft/2020-12/schema", ua = "https://farris-
|
|
|
3914
3914
|
onClick: { type: Function, default: () => {
|
|
3915
3915
|
} }
|
|
3916
3916
|
};
|
|
3917
|
-
Tt(wa, va, aa,
|
|
3917
|
+
Tt(wa, va, aa, sa, Ca);
|
|
3918
3918
|
const xa = "root-viewmodel";
|
|
3919
3919
|
class Sa {
|
|
3920
3920
|
constructor(n, t) {
|
|
@@ -3974,7 +3974,7 @@ class Sa {
|
|
|
3974
3974
|
const { selectedFields: r } = n;
|
|
3975
3975
|
r == null || r.forEach((d) => {
|
|
3976
3976
|
if (d.$type === bt.SimpleField) {
|
|
3977
|
-
const
|
|
3977
|
+
const s = yt(d), u = this.resolveControlClassByFormColumns(n), m = this.controlCreatorUtils.setFormFieldProperty(s, "", u);
|
|
3978
3978
|
m && i.push(m);
|
|
3979
3979
|
}
|
|
3980
3980
|
});
|
|
@@ -4042,14 +4042,14 @@ class Sa {
|
|
|
4042
4042
|
}
|
|
4043
4043
|
}
|
|
4044
4044
|
function Fa(e, n, t, o) {
|
|
4045
|
-
var r, a, d,
|
|
4045
|
+
var r, a, d, s, u, m;
|
|
4046
4046
|
const i = t.parentComponentInstance;
|
|
4047
4047
|
if (i && o) {
|
|
4048
|
-
const
|
|
4048
|
+
const l = (r = i.schema) == null ? void 0 : r.type, c = {
|
|
4049
4049
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
4050
|
-
componentName: ((a = t.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((
|
|
4050
|
+
componentName: ((a = t.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((s = (d = t.bindingSourceContext) == null ? void 0 : d.bindingEntity) == null ? void 0 : s.name) || "标题",
|
|
4051
4051
|
componentType: "form",
|
|
4052
|
-
formColumns:
|
|
4052
|
+
formColumns: l === "splitter-pane" ? 1 : 4,
|
|
4053
4053
|
parentContainerId: i.schema.id,
|
|
4054
4054
|
bindTo: ((u = t.bindingSourceContext) == null ? void 0 : u.bindTo) || "/",
|
|
4055
4055
|
selectedFields: (m = t.bindingSourceContext) == null ? void 0 : m.bindingEntityFields
|
|
@@ -4182,7 +4182,7 @@ const La = "https://json-schema.org/draft/2020-12/schema", $a = "https://farris-
|
|
|
4182
4182
|
}
|
|
4183
4183
|
}
|
|
4184
4184
|
};
|
|
4185
|
-
|
|
4185
|
+
sn(qa, Ua, Mr, Ta);
|
|
4186
4186
|
const _a = {
|
|
4187
4187
|
width: { Type: Number, default: 400 },
|
|
4188
4188
|
type: { Type: String, default: "info" },
|
|
@@ -4199,12 +4199,12 @@ const _a = {
|
|
|
4199
4199
|
function qt() {
|
|
4200
4200
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
4201
4201
|
}
|
|
4202
|
-
async function
|
|
4202
|
+
async function Wa(e) {
|
|
4203
4203
|
if (!navigator.clipboard)
|
|
4204
4204
|
throw qt();
|
|
4205
4205
|
return navigator.clipboard.writeText(e);
|
|
4206
4206
|
}
|
|
4207
|
-
async function
|
|
4207
|
+
async function Ga(e) {
|
|
4208
4208
|
const n = document.createElement("span");
|
|
4209
4209
|
n.textContent = e, n.style.whiteSpace = "pre", n.style.webkitUserSelect = "auto", n.style.userSelect = "all", document.body.appendChild(n);
|
|
4210
4210
|
const t = window.getSelection(), o = window.document.createRange();
|
|
@@ -4220,10 +4220,10 @@ async function Wa(e) {
|
|
|
4220
4220
|
}
|
|
4221
4221
|
async function Xa(e) {
|
|
4222
4222
|
try {
|
|
4223
|
-
await
|
|
4223
|
+
await Wa(e);
|
|
4224
4224
|
} catch (n) {
|
|
4225
4225
|
try {
|
|
4226
|
-
await
|
|
4226
|
+
await Ga(e);
|
|
4227
4227
|
} catch (t) {
|
|
4228
4228
|
throw t || n || qt();
|
|
4229
4229
|
}
|
|
@@ -4236,13 +4236,13 @@ function Ya() {
|
|
|
4236
4236
|
return { onCopy: e };
|
|
4237
4237
|
}
|
|
4238
4238
|
function Ja(e, n, t, o) {
|
|
4239
|
-
const i = h(14), r = h(140), a = h(""), d = h(o.value.length),
|
|
4239
|
+
const i = h(14), r = h(140), a = h(""), d = h(o.value.length), s = H(() => o.value), u = H(() => ({
|
|
4240
4240
|
"font-size": `${i.value}px`,
|
|
4241
4241
|
height: "100%"
|
|
4242
4242
|
}));
|
|
4243
|
-
function m(
|
|
4244
|
-
if (
|
|
4245
|
-
const p =
|
|
4243
|
+
function m(l) {
|
|
4244
|
+
if (l.currentTarget) {
|
|
4245
|
+
const p = l.currentTarget.value || "";
|
|
4246
4246
|
d.value = p.length;
|
|
4247
4247
|
}
|
|
4248
4248
|
}
|
|
@@ -4253,8 +4253,8 @@ function Ja(e, n, t, o) {
|
|
|
4253
4253
|
style: u.value,
|
|
4254
4254
|
rows: "4",
|
|
4255
4255
|
maxlength: r.value,
|
|
4256
|
-
onInput: (
|
|
4257
|
-
}, [
|
|
4256
|
+
onInput: (l) => m(l)
|
|
4257
|
+
}, [s.value]), g("span", {
|
|
4258
4258
|
class: "textarea-wordcount",
|
|
4259
4259
|
title: a.value,
|
|
4260
4260
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
@@ -4298,7 +4298,7 @@ function Ka(e, n) {
|
|
|
4298
4298
|
const t = n.getEditorRender(e.promptEditorType);
|
|
4299
4299
|
return () => t && t();
|
|
4300
4300
|
}
|
|
4301
|
-
function
|
|
4301
|
+
function es(e, n) {
|
|
4302
4302
|
function t(c) {
|
|
4303
4303
|
if (c == null)
|
|
4304
4304
|
return 0;
|
|
@@ -4327,18 +4327,18 @@ function el(e, n) {
|
|
|
4327
4327
|
const i = H(() => !!e.value && !!e.value.date), r = H(() => {
|
|
4328
4328
|
const c = e.value && e.value.date || "";
|
|
4329
4329
|
return `${n.exception.happend} : ${c}`;
|
|
4330
|
-
}), a = H(() => !!e.value && !!e.value.detail), d = H(() => e.value ? t(e.value.detail) > 160 : !1),
|
|
4330
|
+
}), a = H(() => !!e.value && !!e.value.detail), d = H(() => e.value ? t(e.value.detail) > 160 : !1), s = h(!1), u = H(() => s.value ? n.exception.collapse : n.exception.expand), m = H(() => {
|
|
4331
4331
|
const c = n.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
4332
|
-
return
|
|
4333
|
-
}),
|
|
4332
|
+
return s.value ? c : o(c, 160);
|
|
4333
|
+
}), l = H(() => ({
|
|
4334
4334
|
position: "absolute",
|
|
4335
4335
|
right: 0,
|
|
4336
|
-
bottom:
|
|
4336
|
+
bottom: s.value ? 0 : "2px",
|
|
4337
4337
|
color: "#2A87FF",
|
|
4338
4338
|
cursor: "pointer"
|
|
4339
4339
|
}));
|
|
4340
4340
|
function p() {
|
|
4341
|
-
|
|
4341
|
+
s.value = !s.value;
|
|
4342
4342
|
}
|
|
4343
4343
|
return () => g("div", {
|
|
4344
4344
|
class: "toast-msg-detail"
|
|
@@ -4349,27 +4349,27 @@ function el(e, n) {
|
|
|
4349
4349
|
}, [g("div", {
|
|
4350
4350
|
innerHTML: m.value
|
|
4351
4351
|
}, null), d.value && g("span", {
|
|
4352
|
-
style:
|
|
4352
|
+
style: l.value,
|
|
4353
4353
|
onClick: p
|
|
4354
4354
|
}, [u.value])])])]);
|
|
4355
4355
|
}
|
|
4356
|
-
function
|
|
4356
|
+
function ts(e) {
|
|
4357
4357
|
return () => g("p", {
|
|
4358
4358
|
class: "toast-msg-detail",
|
|
4359
4359
|
innerHTML: e.value
|
|
4360
4360
|
}, null);
|
|
4361
4361
|
}
|
|
4362
|
-
function
|
|
4362
|
+
function ns(e, n, t, o, i) {
|
|
4363
4363
|
const r = h(e.exceptionInfo), a = H(() => {
|
|
4364
4364
|
const f = n.value === "question" ? "warning" : n.value, v = {
|
|
4365
4365
|
"f-icon": !0
|
|
4366
4366
|
}, y = `f-icon-${f}`;
|
|
4367
4367
|
return v[y] = !0, v;
|
|
4368
|
-
}), d = H(() => t.value || r.value && r.value.message),
|
|
4369
|
-
function
|
|
4370
|
-
return m.value ?
|
|
4368
|
+
}), d = H(() => t.value || r.value && r.value.message), s = H(() => o.value), u = H(() => !!o.value), m = H(() => !!r.value);
|
|
4369
|
+
function l() {
|
|
4370
|
+
return m.value ? es(r, i) : u.value ? ts(s) : () => null;
|
|
4371
4371
|
}
|
|
4372
|
-
const p =
|
|
4372
|
+
const p = l(), c = H(() => i.locale === "en" ? {
|
|
4373
4373
|
wordBreak: "keep-all",
|
|
4374
4374
|
overflowWrap: "break-word"
|
|
4375
4375
|
} : {});
|
|
@@ -4385,17 +4385,17 @@ function nl(e, n, t, o, i) {
|
|
|
4385
4385
|
style: c.value
|
|
4386
4386
|
}, null), p()])]);
|
|
4387
4387
|
}
|
|
4388
|
-
function
|
|
4388
|
+
function os(e, n, t, o) {
|
|
4389
4389
|
const {
|
|
4390
4390
|
onCopy: i
|
|
4391
4391
|
} = n, {
|
|
4392
4392
|
toShowFeedback: r
|
|
4393
|
-
} = t, a = h(o.exception.copySuccess || "复制成功"), d = h(o.exception.copy || "复制详细信息"),
|
|
4393
|
+
} = t, a = h(o.exception.copySuccess || "复制成功"), d = h(o.exception.copy || "复制详细信息"), s = h(e.exceptionInfo || {
|
|
4394
4394
|
date: "",
|
|
4395
4395
|
message: "",
|
|
4396
4396
|
detail: ""
|
|
4397
|
-
}), u = H(() =>
|
|
4398
|
-
function m(
|
|
4397
|
+
}), u = H(() => s.value && s.value.detail || "");
|
|
4398
|
+
function m(l) {
|
|
4399
4399
|
i(u.value).catch((p) => {
|
|
4400
4400
|
a.value = o.exception.copyFailed || "复制失败";
|
|
4401
4401
|
}).finally(() => {
|
|
@@ -4411,9 +4411,9 @@ function ol(e, n, t, o) {
|
|
|
4411
4411
|
style: "cursor: pointer;"
|
|
4412
4412
|
}, [d.value])]);
|
|
4413
4413
|
}
|
|
4414
|
-
function
|
|
4415
|
-
const r = h(e.type), a = h(e.buttons), d = h(e.exceptionInfo),
|
|
4416
|
-
|
|
4414
|
+
function is(e, n, t, o, i) {
|
|
4415
|
+
const r = h(e.type), a = h(e.buttons), d = h(e.exceptionInfo), s = h(i.ok || e.okButtonText), u = h(i.cancel || e.cancelButtonText), m = h(e.showCancelButton), l = h(e.showOkButton), p = H(() => !!(a.value && a.value.length)), c = H(() => d.value && d.value.message && d.value.detail), f = H(() => !(a.value && a.value.length) && (l.value || m.value)), v = os(e, t, o, i);
|
|
4416
|
+
s.value === "关闭" ? s.value = i.close : s.value === "知道了" && (s.value = i.exception.roger);
|
|
4417
4417
|
function y(E) {
|
|
4418
4418
|
r.value === "question" && n.emit("reject"), n.emit("close");
|
|
4419
4419
|
}
|
|
@@ -4426,11 +4426,11 @@ function il(e, n, t, o, i) {
|
|
|
4426
4426
|
type: "button",
|
|
4427
4427
|
class: "btn btn-secondary btn-lg",
|
|
4428
4428
|
onClick: y
|
|
4429
|
-
}, [u.value]), f.value &&
|
|
4429
|
+
}, [u.value]), f.value && l.value && g("button", {
|
|
4430
4430
|
type: "button",
|
|
4431
4431
|
class: "btn btn-primary btn-lg",
|
|
4432
4432
|
onClick: T
|
|
4433
|
-
}, [
|
|
4433
|
+
}, [s.value]), p.value && a.value.length && a.value.map((E) => g("button", {
|
|
4434
4434
|
type: "button",
|
|
4435
4435
|
onClick: E.handle,
|
|
4436
4436
|
class: E.class
|
|
@@ -4438,7 +4438,7 @@ function il(e, n, t, o, i) {
|
|
|
4438
4438
|
class: E.iconClass
|
|
4439
4439
|
}, null), E.text]))]);
|
|
4440
4440
|
}
|
|
4441
|
-
function
|
|
4441
|
+
function rs(e) {
|
|
4442
4442
|
const { t: n, locale: t } = zt();
|
|
4443
4443
|
function o(i, r, a) {
|
|
4444
4444
|
return r === a ? n(i) : r;
|
|
@@ -4469,7 +4469,7 @@ const ht = /* @__PURE__ */ Re({
|
|
|
4469
4469
|
props: _a,
|
|
4470
4470
|
emits: ["accept", "reject", "close"],
|
|
4471
4471
|
setup(e, n) {
|
|
4472
|
-
const t =
|
|
4472
|
+
const t = rs(e), o = h(e.type), i = h(e.title), r = h(e.detail), a = H(() => {
|
|
4473
4473
|
const T = {
|
|
4474
4474
|
"modal-tips": !0,
|
|
4475
4475
|
"d-flex": !0,
|
|
@@ -4481,14 +4481,14 @@ const ht = /* @__PURE__ */ Re({
|
|
|
4481
4481
|
cursor: "default"
|
|
4482
4482
|
};
|
|
4483
4483
|
return o.value === "prompt" ? T.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (T.padding = "0.5rem 1.5rem 1rem 1.5rem"), T;
|
|
4484
|
-
}),
|
|
4485
|
-
feedbackStyle:
|
|
4484
|
+
}), s = Ya(), u = Qa(e, o, i, r), m = Za(), {
|
|
4485
|
+
feedbackStyle: l,
|
|
4486
4486
|
feedbackMessage: p
|
|
4487
4487
|
} = m;
|
|
4488
4488
|
p.value = t.exception.copySuccess;
|
|
4489
4489
|
function c() {
|
|
4490
4490
|
return g("div", {
|
|
4491
|
-
style:
|
|
4491
|
+
style: l.value
|
|
4492
4492
|
}, [p.value]);
|
|
4493
4493
|
}
|
|
4494
4494
|
function f() {
|
|
@@ -4496,10 +4496,10 @@ const ht = /* @__PURE__ */ Re({
|
|
|
4496
4496
|
case "prompt":
|
|
4497
4497
|
return Ka(e, u);
|
|
4498
4498
|
default:
|
|
4499
|
-
return
|
|
4499
|
+
return ns(e, o, i, r, t);
|
|
4500
4500
|
}
|
|
4501
4501
|
}
|
|
4502
|
-
const v = f(), y =
|
|
4502
|
+
const v = f(), y = is(e, n, s, m, t);
|
|
4503
4503
|
return () => g("div", {
|
|
4504
4504
|
class: "farris-messager"
|
|
4505
4505
|
}, [!e.exceptionInfo && g("div", {
|
|
@@ -4510,7 +4510,7 @@ const ht = /* @__PURE__ */ Re({
|
|
|
4510
4510
|
style: d.value
|
|
4511
4511
|
}, [v()]), y(), c()]);
|
|
4512
4512
|
}
|
|
4513
|
-
}),
|
|
4513
|
+
}), as = "https://json-schema.org/draft/2020-12/schema", ss = "https://farris-design.gitee.io/modal.schema.json", ls = "modal", us = "弹窗组件", cs = "object", ds = {
|
|
4514
4514
|
id: {
|
|
4515
4515
|
description: "组件唯一标识",
|
|
4516
4516
|
type: "string"
|
|
@@ -4617,29 +4617,29 @@ const ht = /* @__PURE__ */ Re({
|
|
|
4617
4617
|
type: "object",
|
|
4618
4618
|
default: null
|
|
4619
4619
|
}
|
|
4620
|
-
},
|
|
4620
|
+
}, fs = [
|
|
4621
4621
|
"id",
|
|
4622
4622
|
"type"
|
|
4623
|
-
],
|
|
4623
|
+
], ps = {
|
|
4624
4624
|
onAccept: "确定事件",
|
|
4625
4625
|
onCancel: "取消事件",
|
|
4626
4626
|
beforeClose: "关闭前回调"
|
|
4627
|
-
},
|
|
4628
|
-
$schema:
|
|
4629
|
-
$id:
|
|
4630
|
-
title:
|
|
4631
|
-
description:
|
|
4632
|
-
type:
|
|
4633
|
-
properties:
|
|
4634
|
-
required:
|
|
4635
|
-
events:
|
|
4636
|
-
},
|
|
4627
|
+
}, ms = {
|
|
4628
|
+
$schema: as,
|
|
4629
|
+
$id: ss,
|
|
4630
|
+
title: ls,
|
|
4631
|
+
description: us,
|
|
4632
|
+
type: cs,
|
|
4633
|
+
properties: ds,
|
|
4634
|
+
required: fs,
|
|
4635
|
+
events: ps
|
|
4636
|
+
}, vs = /* @__PURE__ */ new Map([
|
|
4637
4637
|
["appearance", Zi]
|
|
4638
4638
|
]);
|
|
4639
|
-
function
|
|
4639
|
+
function gs(e, n, t) {
|
|
4640
4640
|
return n;
|
|
4641
4641
|
}
|
|
4642
|
-
function
|
|
4642
|
+
function hs() {
|
|
4643
4643
|
function e(n, t) {
|
|
4644
4644
|
const o = {};
|
|
4645
4645
|
return o.beforeClose = (i) => t.call("beforeClose", [i, n]), o;
|
|
@@ -4728,7 +4728,7 @@ const xn = {
|
|
|
4728
4728
|
src: { type: String, default: "" },
|
|
4729
4729
|
footerHeight: { type: Number, default: 60 },
|
|
4730
4730
|
host: { type: Object, default: "body" }
|
|
4731
|
-
},
|
|
4731
|
+
}, ys = sn(xn, ms, vs, gs), bs = hs();
|
|
4732
4732
|
class he {
|
|
4733
4733
|
constructor(n, t) {
|
|
4734
4734
|
this.x = n, this.y = t;
|
|
@@ -4812,20 +4812,20 @@ class tt {
|
|
|
4812
4812
|
return this.width = n.width, this.height = n.height, this;
|
|
4813
4813
|
}
|
|
4814
4814
|
}
|
|
4815
|
-
function
|
|
4816
|
-
const t = h(), o = h(), i = h(), r = h(), a = h(), d = h(),
|
|
4815
|
+
function Cs(e, n) {
|
|
4816
|
+
const t = h(), o = h(), i = h(), r = h(), a = h(), d = h(), s = h(), u = h(), m = h(), l = h(), p = h(), c = h(e.resizeable), f = h(), v = h(e.draggable), y = h(!1);
|
|
4817
4817
|
function T() {
|
|
4818
4818
|
const N = o.value || document.body, B = window.getComputedStyle(N);
|
|
4819
4819
|
if (!B || !t.value)
|
|
4820
4820
|
return;
|
|
4821
4821
|
const ee = he.getTransformInfo(t.value), U = {};
|
|
4822
|
-
|
|
4822
|
+
s.value && (U.deltaL = t.value.offsetLeft - s.value.x, U.deltaT = t.value.offsetTop - s.value.y);
|
|
4823
4823
|
const ae = B.getPropertyValue("position");
|
|
4824
|
-
U.width = N.clientWidth, U.height = N.clientHeight, U.pr = parseInt(B.getPropertyValue("padding-right"), 10), U.pb = parseInt(B.getPropertyValue("padding-bottom"), 10), U.position = B.getPropertyValue("position"), ae === "static" && (N.style.position = "relative"), U.translateX = ee.x, U.translateY = ee.y,
|
|
4824
|
+
U.width = N.clientWidth, U.height = N.clientHeight, U.pr = parseInt(B.getPropertyValue("padding-right"), 10), U.pb = parseInt(B.getPropertyValue("padding-bottom"), 10), U.position = B.getPropertyValue("position"), ae === "static" && (N.style.position = "relative"), U.translateX = ee.x, U.translateY = ee.y, l.value = U;
|
|
4825
4825
|
}
|
|
4826
4826
|
function E(N) {
|
|
4827
4827
|
if (t.value) {
|
|
4828
|
-
r.value = tt.getCurrent(t.value), a.value = he.getCurrent(t.value), d.value = r.value ? tt.copy(r.value) : null,
|
|
4828
|
+
r.value = tt.getCurrent(t.value), a.value = he.getCurrent(t.value), d.value = r.value ? tt.copy(r.value) : null, s.value = a.value ? he.copy(a.value) : null, T();
|
|
4829
4829
|
const B = N.target.getAttribute("type") || "";
|
|
4830
4830
|
u.value = {
|
|
4831
4831
|
n: !!B.match(/n/),
|
|
@@ -4839,19 +4839,19 @@ function Cl(e, n) {
|
|
|
4839
4839
|
var N, B, ee, U;
|
|
4840
4840
|
if (t.value) {
|
|
4841
4841
|
const ae = t.value;
|
|
4842
|
-
u.value && ((u.value.n || u.value.s) && ((N = d.value) != null && N.height) && (ae.style.height = d.value.height + "px"), (u.value.w || u.value.e) && ((B = d.value) != null && B.width) && (ae.style.width = d.value.width + "px"),
|
|
4842
|
+
u.value && ((u.value.n || u.value.s) && ((N = d.value) != null && N.height) && (ae.style.height = d.value.height + "px"), (u.value.w || u.value.e) && ((B = d.value) != null && B.width) && (ae.style.width = d.value.width + "px"), s.value && ((ee = s.value) != null && ee.x && (ae.style.left = s.value.x + "px"), (U = s.value) != null && U.y && (ae.style.top = s.value.y + "px")));
|
|
4843
4843
|
}
|
|
4844
4844
|
}
|
|
4845
4845
|
function k() {
|
|
4846
4846
|
const N = e.minHeight ? e.minHeight : 1, B = e.minWidth ? e.minWidth : 1;
|
|
4847
|
-
d.value &&
|
|
4847
|
+
d.value && s.value && u.value && r.value && (d.value.height < N && (d.value.height = N, u.value.n && a.value && (s.value.y = a.value.y + (r.value.height - N))), d.value.width < B && (d.value.width = B, u.value.w && a.value && (s.value.x = a.value.x + (r.value.width - B))), e.maxHeight && d.value.height > e.maxHeight && (d.value.height = e.maxHeight, a.value && u.value.n && (s.value.y = a.value.y + (r.value.height - e.maxHeight))), e.maxWidth && d.value.width > e.maxWidth && (d.value.width = e.maxWidth, u.value.w && a.value && (s.value.x = a.value.x + (r.value.width - e.maxWidth))));
|
|
4848
4848
|
}
|
|
4849
4849
|
function S() {
|
|
4850
4850
|
if (o.value) {
|
|
4851
|
-
const N =
|
|
4852
|
-
if (
|
|
4853
|
-
const B = N.width - N.pr - N.deltaL - N.translateX -
|
|
4854
|
-
u.value.n &&
|
|
4851
|
+
const N = l.value;
|
|
4852
|
+
if (s.value && d.value && u.value && r.value) {
|
|
4853
|
+
const B = N.width - N.pr - N.deltaL - N.translateX - s.value.x, ee = N.height - N.pb - N.deltaT - N.translateY - s.value.y;
|
|
4854
|
+
u.value.n && s.value.y + N.translateY < 0 && a.value && (s.value.y = -N.translateY, d.value.height = r.value.height + a.value.y + N.translateY), u.value.w && s.value.x + N.translateX < 0 && a.value && (s.value.x = -N.translateX, d.value.width = r.value.width + a.value.x + N.translateX), d.value.width > B && (d.value.width = B), d.value.height > ee && (d.value.height = ee);
|
|
4855
4855
|
}
|
|
4856
4856
|
}
|
|
4857
4857
|
}
|
|
@@ -4860,7 +4860,7 @@ function Cl(e, n) {
|
|
|
4860
4860
|
return;
|
|
4861
4861
|
N.subtract(i.value);
|
|
4862
4862
|
const B = N.x, ee = N.y;
|
|
4863
|
-
u.value.n ? (
|
|
4863
|
+
u.value.n ? (s.value.y = a.value.y + ee, d.value.height = r.value.height - ee) : u.value.s && (d.value.height = r.value.height + ee), u.value.e ? d.value.width = r.value.width + B : u.value.w && (d.value.width = r.value.width - B, s.value.x = a.value.x + B), S(), k(), A();
|
|
4864
4864
|
}
|
|
4865
4865
|
function x(N) {
|
|
4866
4866
|
if (!m.value)
|
|
@@ -4894,7 +4894,7 @@ function Cl(e, n) {
|
|
|
4894
4894
|
const B = w();
|
|
4895
4895
|
p.value = B;
|
|
4896
4896
|
}
|
|
4897
|
-
i.value = void 0, r.value = null, a.value = null, d.value = null,
|
|
4897
|
+
i.value = void 0, r.value = null, a.value = null, d.value = null, s.value = null, u.value = null, m.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", M);
|
|
4898
4898
|
}
|
|
4899
4899
|
function O() {
|
|
4900
4900
|
document.addEventListener("mousemove", x), document.addEventListener("mouseup", M);
|
|
@@ -4937,7 +4937,7 @@ function Cl(e, n) {
|
|
|
4937
4937
|
onMousedown: (B) => F(B)
|
|
4938
4938
|
}, null)]);
|
|
4939
4939
|
}
|
|
4940
|
-
function
|
|
4940
|
+
function G(N = !0) {
|
|
4941
4941
|
document.body.click();
|
|
4942
4942
|
const B = o.value || document.body, ee = tt.getCurrent(B), U = t.value;
|
|
4943
4943
|
N && U && (f.value = w(), f.value.transform = U.style.transform), ee && U && (d.value = ee, d.value.height -= 14, d.value.width -= 14, U.style.height = d.value.height + "px", U.style.width = d.value.width + "px", U.style.left = "7px", U.style.top = "7px", U.style.transform = "", p.value = {
|
|
@@ -4958,7 +4958,7 @@ function Cl(e, n) {
|
|
|
4958
4958
|
x: (window.innerWidth - ee.width) / 2,
|
|
4959
4959
|
y: (window.innerHeight - ee.height) / 2
|
|
4960
4960
|
};
|
|
4961
|
-
(N = d.value) == null || N.set(ee), (B =
|
|
4961
|
+
(N = d.value) == null || N.set(ee), (B = s.value) == null || B.set(U);
|
|
4962
4962
|
const ae = t.value;
|
|
4963
4963
|
ae.style.height = ee.height + "px", ae.style.width = ee.width + "px", ae.style.left = `${U.x}px`, ae.style.top = `${U.y}px`, ae.style.transform = "", p.value = {
|
|
4964
4964
|
size: ee,
|
|
@@ -4980,7 +4980,7 @@ function Cl(e, n) {
|
|
|
4980
4980
|
}
|
|
4981
4981
|
function ie() {
|
|
4982
4982
|
const N = () => {
|
|
4983
|
-
y.value ?
|
|
4983
|
+
y.value ? G(!1) : Q(), document.body.click();
|
|
4984
4984
|
};
|
|
4985
4985
|
return window.addEventListener("resize", N), () => {
|
|
4986
4986
|
window.removeEventListener("resize", N);
|
|
@@ -4991,7 +4991,7 @@ function Cl(e, n) {
|
|
|
4991
4991
|
renderResizeBar: J,
|
|
4992
4992
|
boundingElement: o,
|
|
4993
4993
|
resizedEventParam: p,
|
|
4994
|
-
maximize:
|
|
4994
|
+
maximize: G,
|
|
4995
4995
|
restore: q,
|
|
4996
4996
|
allowDrag: v,
|
|
4997
4997
|
isMaximized: y,
|
|
@@ -4999,8 +4999,8 @@ function Cl(e, n) {
|
|
|
4999
4999
|
moveToCenter: Q
|
|
5000
5000
|
};
|
|
5001
5001
|
}
|
|
5002
|
-
function
|
|
5003
|
-
const o = h(), i = h(e.draggable), r = h(e.lockAxis), a = h(), d = h(),
|
|
5002
|
+
function ws(e, n, t) {
|
|
5003
|
+
const o = h(), i = h(e.draggable), r = h(e.lockAxis), a = h(), d = h(), s = h(!1), u = h(new he(0, 0)), m = h(new he(0, 0)), l = h(new he(0, 0)), p = h(new he(0, 0));
|
|
5004
5004
|
ye(() => t.value, (x) => {
|
|
5005
5005
|
a.value.style.cursor = x ? "move" : "default";
|
|
5006
5006
|
});
|
|
@@ -5016,8 +5016,8 @@ function wl(e, n, t) {
|
|
|
5016
5016
|
}
|
|
5017
5017
|
function f() {
|
|
5018
5018
|
var O, F;
|
|
5019
|
-
let x =
|
|
5020
|
-
r.value === "x" ? (x = ((O = u.value) == null ? void 0 : O.x) || 0,
|
|
5019
|
+
let x = l.value.x + m.value.x, w = l.value.y + m.value.y;
|
|
5020
|
+
r.value === "x" ? (x = ((O = u.value) == null ? void 0 : O.x) || 0, l.value.x = 0) : r.value === "y" && (w = ((F = u.value) == null ? void 0 : F.y) || 0, l.value.y = 0);
|
|
5021
5021
|
const M = `translate3d(${Math.round(x)}px, ${Math.round(w)}px, 0px)`;
|
|
5022
5022
|
o.value && (o.value.style.transform = M), p.value.x = x, p.value.y = w;
|
|
5023
5023
|
}
|
|
@@ -5030,20 +5030,20 @@ function wl(e, n, t) {
|
|
|
5030
5030
|
bottom: x.bottom > w.bottom,
|
|
5031
5031
|
left: x.left < w.left
|
|
5032
5032
|
};
|
|
5033
|
-
return M.top || (
|
|
5033
|
+
return M.top || (l.value.y -= w.top - x.top), M.bottom || (l.value.y -= w.bottom - x.bottom), M.right || (l.value.x -= w.right - x.right), M.left || (l.value.x -= w.left - x.left), f(), M;
|
|
5034
5034
|
}
|
|
5035
5035
|
function y(x) {
|
|
5036
|
-
x && (u.value && x.subtract(u.value),
|
|
5036
|
+
x && (u.value && x.subtract(u.value), l.value.set(x), f(), v());
|
|
5037
5037
|
}
|
|
5038
5038
|
function T(x) {
|
|
5039
|
-
|
|
5039
|
+
s.value && i.value && (x.stopPropagation(), x.preventDefault(), y(he.fromEvent(x, a.value)));
|
|
5040
5040
|
}
|
|
5041
5041
|
function E() {
|
|
5042
5042
|
var x;
|
|
5043
|
-
|
|
5043
|
+
s.value && (s.value = !1, m.value.add(l.value), l.value.reset(), (x = o.value) == null || x.classList.remove("ng-dragging"), n.emit("stopMove"), document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", E));
|
|
5044
5044
|
}
|
|
5045
5045
|
function A() {
|
|
5046
|
-
!
|
|
5046
|
+
!s.value && a.value && (s.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", T), document.addEventListener("mouseup", E));
|
|
5047
5047
|
}
|
|
5048
5048
|
function k() {
|
|
5049
5049
|
if (o.value) {
|
|
@@ -5089,7 +5089,7 @@ function Sn(e, n) {
|
|
|
5089
5089
|
};
|
|
5090
5090
|
}
|
|
5091
5091
|
}
|
|
5092
|
-
function
|
|
5092
|
+
function xs(e, n) {
|
|
5093
5093
|
const t = h(e.enableEsc);
|
|
5094
5094
|
let o = null;
|
|
5095
5095
|
return t.value ? (o = Sn("Escape", (i) => {
|
|
@@ -5098,7 +5098,7 @@ function xl(e, n) {
|
|
|
5098
5098
|
remove: o
|
|
5099
5099
|
}) : null;
|
|
5100
5100
|
}
|
|
5101
|
-
function
|
|
5101
|
+
function Ss(e, n) {
|
|
5102
5102
|
const t = h(e.enableEnter);
|
|
5103
5103
|
let o = null;
|
|
5104
5104
|
return t.value ? (o = Sn("Enter", (i) => {
|
|
@@ -5112,7 +5112,7 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5112
5112
|
props: xn,
|
|
5113
5113
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
5114
5114
|
setup(e, n) {
|
|
5115
|
-
const t = h(e.width || 300), o = h(e.height || 200), i = h(e.modelValue), r = h(""), a = h(e.class), d = h(e.fitContent),
|
|
5115
|
+
const t = h(e.width || 300), o = h(e.height || 200), i = h(e.modelValue), r = h(""), a = h(e.class), d = h(e.fitContent), s = h(e.showHeader), u = h(""), m = h(e.showCloseButton), l = h(e.showMaxButton), p = h(!1), c = h(e.dialogType), f = h(e.src), v = h(""), y = h(e.showButtons), T = h(e.title), E = h(e.containment || null), A = h(), {
|
|
5116
5116
|
t: k
|
|
5117
5117
|
} = zt();
|
|
5118
5118
|
T.value === "错误提示" && (T.value = k("messageBox.errorTitle"));
|
|
@@ -5142,7 +5142,7 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5142
5142
|
handle: (I) => {
|
|
5143
5143
|
C(I, !0);
|
|
5144
5144
|
}
|
|
5145
|
-
}], w = h(e.buttons && e.buttons.length ? e.buttons : x), M = H(() => !!u.value), O = H(() => !!y.value && !!w.value), F = h(), J = h(),
|
|
5145
|
+
}], w = h(e.buttons && e.buttons.length ? e.buttons : x), M = H(() => !!u.value), O = H(() => !!y.value && !!w.value), F = h(), J = h(), G = h(!1), {
|
|
5146
5146
|
renderResizeBar: q,
|
|
5147
5147
|
maximize: Q,
|
|
5148
5148
|
restore: ie,
|
|
@@ -5151,9 +5151,9 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5151
5151
|
allowDrag: B,
|
|
5152
5152
|
unWindowResizeHandle: ee,
|
|
5153
5153
|
moveToCenter: U
|
|
5154
|
-
} =
|
|
5154
|
+
} = Cs(e), {
|
|
5155
5155
|
registerDraggle: ae
|
|
5156
|
-
} =
|
|
5156
|
+
} = ws(e, n, B);
|
|
5157
5157
|
function Ce() {
|
|
5158
5158
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
5159
5159
|
}
|
|
@@ -5166,9 +5166,9 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5166
5166
|
}), ye(() => e.modelValue, (I, ne) => {
|
|
5167
5167
|
I !== ne && (i.value = I, i.value && e.draggable && ct(() => {
|
|
5168
5168
|
J.value && !E.value && (E.value = J.value.parentElement, fe.value = E.value, ae(F.value, J.value, fe.value), U());
|
|
5169
|
-
}), I || (E.value && (E.value = null), me())), i.value ? S.value = Ce() : (
|
|
5169
|
+
}), I || (E.value && (E.value = null), me())), i.value ? S.value = Ce() : (G.value = !1, B.value = e.draggable);
|
|
5170
5170
|
}), ye(() => e.showHeader, (I, ne) => {
|
|
5171
|
-
I !== ne && (
|
|
5171
|
+
I !== ne && (s.value = I);
|
|
5172
5172
|
}), ye(() => e.showButtons, (I, ne) => {
|
|
5173
5173
|
I !== ne && (y.value = I);
|
|
5174
5174
|
}), ye(() => N.value, (I, ne) => {
|
|
@@ -5176,7 +5176,7 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5176
5176
|
JSON.stringify(be) !== JSON.stringify(we) && n.emit("resize", {
|
|
5177
5177
|
newSize: I,
|
|
5178
5178
|
oldSize: ne,
|
|
5179
|
-
isMaximized:
|
|
5179
|
+
isMaximized: G.value
|
|
5180
5180
|
});
|
|
5181
5181
|
});
|
|
5182
5182
|
const te = H(() => (i.value && document.body.classList.add("modal-open"), i.value)), pe = H(() => {
|
|
@@ -5195,7 +5195,7 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5195
5195
|
"modal-dialog": !0
|
|
5196
5196
|
}, ne = (be = a.value) == null ? void 0 : be.split(" ");
|
|
5197
5197
|
return ne == null || ne.reduce((we, qe) => (we[qe] = !0, we), I), I;
|
|
5198
|
-
}),
|
|
5198
|
+
}), le = H(() => {
|
|
5199
5199
|
const I = {
|
|
5200
5200
|
position: "absolute",
|
|
5201
5201
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
@@ -5212,17 +5212,17 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5212
5212
|
return e.mask || (I.pointerEvents = "none", I.backgroundColor = "transparent"), S.value && (I.backgroundColor = "transparent"), I;
|
|
5213
5213
|
}), ze = H(() => ({
|
|
5214
5214
|
"modal-content": !0,
|
|
5215
|
-
"modal-content-has-header":
|
|
5215
|
+
"modal-content-has-header": s.value
|
|
5216
5216
|
})), Le = H(() => {
|
|
5217
5217
|
const I = {
|
|
5218
|
-
display:
|
|
5218
|
+
display: s.value ? "" : "none"
|
|
5219
5219
|
};
|
|
5220
5220
|
return I["pointer-events"] = B.value ? "auto" : "none", I;
|
|
5221
5221
|
}), Oe = H(() => ({
|
|
5222
5222
|
"f-icon": !0,
|
|
5223
5223
|
modal_maximize: !0,
|
|
5224
|
-
modalrevert:
|
|
5225
|
-
})),
|
|
5224
|
+
modalrevert: G.value
|
|
5225
|
+
})), We = H(() => ({
|
|
5226
5226
|
"modal-body": !0,
|
|
5227
5227
|
"f-utils-flex-column": c.value === "iframe",
|
|
5228
5228
|
"f-utils-fill": !0
|
|
@@ -5232,18 +5232,18 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5232
5232
|
height: `${e.footerHeight || 60}px`
|
|
5233
5233
|
};
|
|
5234
5234
|
}
|
|
5235
|
-
const
|
|
5235
|
+
const Ge = H(() => {
|
|
5236
5236
|
const I = {
|
|
5237
5237
|
textAlgin: v.value
|
|
5238
5238
|
}, ne = Ue();
|
|
5239
5239
|
return Object.assign(I, ne);
|
|
5240
5240
|
});
|
|
5241
5241
|
function ge(I) {
|
|
5242
|
-
if (I == null || I.stopPropagation(),
|
|
5243
|
-
|
|
5242
|
+
if (I == null || I.stopPropagation(), G.value) {
|
|
5243
|
+
G.value = !1, ie();
|
|
5244
5244
|
return;
|
|
5245
5245
|
}
|
|
5246
|
-
Q(),
|
|
5246
|
+
Q(), G.value = !0;
|
|
5247
5247
|
}
|
|
5248
5248
|
async function Qe(I, ne) {
|
|
5249
5249
|
I.handle && await I.handle(ne, I) && n.emit("closed", ne);
|
|
@@ -5255,7 +5255,7 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5255
5255
|
on(() => {
|
|
5256
5256
|
S.value = Ce();
|
|
5257
5257
|
}), rt(() => {
|
|
5258
|
-
J.value && !E.value && (E.value = J.value.parentElement, fe.value = E.value, ae(F.value, J.value, fe.value)), te.value && document.body.classList.add("modal-open"), De =
|
|
5258
|
+
J.value && !E.value && (E.value = J.value.parentElement, fe.value = E.value, ae(F.value, J.value, fe.value)), te.value && document.body.classList.add("modal-open"), De = xs(e, n), X = Ss(e, n);
|
|
5259
5259
|
}), St(() => {
|
|
5260
5260
|
ee && ee(), De && De.remove(), X && X.remove();
|
|
5261
5261
|
}), n.expose({
|
|
@@ -5263,14 +5263,14 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5263
5263
|
updateModalOptions: $e,
|
|
5264
5264
|
close: C,
|
|
5265
5265
|
maxDialog: ge,
|
|
5266
|
-
isMaximized:
|
|
5266
|
+
isMaximized: G
|
|
5267
5267
|
});
|
|
5268
5268
|
function Y() {
|
|
5269
5269
|
return g("ul", null, [p.value && g("li", {
|
|
5270
5270
|
class: "f-btn-icon f-bare"
|
|
5271
5271
|
}, [g("span", {
|
|
5272
5272
|
class: "f-icon modal_minimize"
|
|
5273
|
-
}, null)]),
|
|
5273
|
+
}, null)]), l.value && g("li", {
|
|
5274
5274
|
onClick: ge,
|
|
5275
5275
|
class: "f-btn-icon f-bare",
|
|
5276
5276
|
style: "pointer-events: auto;"
|
|
@@ -5284,10 +5284,10 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5284
5284
|
class: "f-icon modal_close"
|
|
5285
5285
|
}, null)])]);
|
|
5286
5286
|
}
|
|
5287
|
-
function
|
|
5287
|
+
function W() {
|
|
5288
5288
|
return g("div", {
|
|
5289
5289
|
class: "modal-footer",
|
|
5290
|
-
style:
|
|
5290
|
+
style: Ge.value
|
|
5291
5291
|
}, [w.value && w.value.map((I) => {
|
|
5292
5292
|
const ne = h(I.disabled);
|
|
5293
5293
|
return g("button", {
|
|
@@ -5320,7 +5320,7 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5320
5320
|
}, [Y()])]);
|
|
5321
5321
|
}
|
|
5322
5322
|
function de() {
|
|
5323
|
-
return n.slots.footerTemplate ? n.slots.footerTemplate() : O.value &&
|
|
5323
|
+
return n.slots.footerTemplate ? n.slots.footerTemplate() : O.value && W();
|
|
5324
5324
|
}
|
|
5325
5325
|
function ke(I) {
|
|
5326
5326
|
if (I.stopPropagation(), e.allowClickMaskToClose) {
|
|
@@ -5334,19 +5334,19 @@ const nt = /* @__PURE__ */ Re({
|
|
|
5334
5334
|
return g("div", {
|
|
5335
5335
|
id: r.value,
|
|
5336
5336
|
class: ve.value,
|
|
5337
|
-
style:
|
|
5337
|
+
style: le.value,
|
|
5338
5338
|
ref: J
|
|
5339
5339
|
}, [g("div", {
|
|
5340
5340
|
class: ze.value
|
|
5341
|
-
}, [
|
|
5342
|
-
class:
|
|
5341
|
+
}, [s.value && re(), g("div", {
|
|
5342
|
+
class: We.value
|
|
5343
5343
|
}, [(ne = (I = n.slots).default) == null ? void 0 : ne.call(I), c.value === "iframe" && g("iframe", {
|
|
5344
5344
|
title: r.value,
|
|
5345
5345
|
class: "f-utils-fill",
|
|
5346
5346
|
width: "100%",
|
|
5347
5347
|
frameborder: "0",
|
|
5348
5348
|
src: f.value
|
|
5349
|
-
}, null)]), de()]), !d.value && J.value && !
|
|
5349
|
+
}, null)]), de()]), !d.value && J.value && !G.value && q(J.value)]);
|
|
5350
5350
|
}
|
|
5351
5351
|
function Xe(I) {
|
|
5352
5352
|
return I || "body";
|
|
@@ -5374,7 +5374,7 @@ function Fn(e) {
|
|
|
5374
5374
|
if (e.render && typeof e.render == "function")
|
|
5375
5375
|
return e.render;
|
|
5376
5376
|
}
|
|
5377
|
-
function
|
|
5377
|
+
function Fs(e) {
|
|
5378
5378
|
const n = document.createElement("div");
|
|
5379
5379
|
n.style.display = "contents";
|
|
5380
5380
|
const t = rn({
|
|
@@ -5382,7 +5382,7 @@ function Fl(e) {
|
|
|
5382
5382
|
St(() => {
|
|
5383
5383
|
document.body.removeChild(n);
|
|
5384
5384
|
});
|
|
5385
|
-
const r = h(), a = h(e.class || ""), d = h(!!e.showButtons),
|
|
5385
|
+
const r = h(), a = h(e.class || ""), d = h(!!e.showButtons), s = h(!!e.showHeader), u = h(e.showCloseButton == null ? !0 : e.showCloseButton), m = h(!0), l = h(e.title || ""), p = e.acceptCallback || (() => {
|
|
5386
5386
|
}), c = e.rejectCallback || (() => {
|
|
5387
5387
|
}), f = e.closedCallback || ((A) => {
|
|
5388
5388
|
}), v = e.resizeHandle || ((A) => {
|
|
@@ -5398,11 +5398,11 @@ function Fl(e) {
|
|
|
5398
5398
|
class: a.value,
|
|
5399
5399
|
modelValue: m.value,
|
|
5400
5400
|
"onUpdate:modelValue": (A) => m.value = A,
|
|
5401
|
-
title:
|
|
5401
|
+
title: l.value,
|
|
5402
5402
|
width: e.width,
|
|
5403
5403
|
height: e.height,
|
|
5404
5404
|
buttons: e.buttons,
|
|
5405
|
-
"show-header":
|
|
5405
|
+
"show-header": s.value,
|
|
5406
5406
|
"show-buttons": d.value,
|
|
5407
5407
|
"show-close-button": u.value,
|
|
5408
5408
|
"show-max-button": !1,
|
|
@@ -5451,7 +5451,7 @@ class Tn {
|
|
|
5451
5451
|
showButtons: !0,
|
|
5452
5452
|
showHeader: !0
|
|
5453
5453
|
}, n);
|
|
5454
|
-
return
|
|
5454
|
+
return Fs(t);
|
|
5455
5455
|
}
|
|
5456
5456
|
close(n) {
|
|
5457
5457
|
var t, o;
|
|
@@ -5467,11 +5467,11 @@ class Tn {
|
|
|
5467
5467
|
}, n)), i = h(!0), r = o.value.acceptCallback || (() => {
|
|
5468
5468
|
}), a = o.value.rejectCallback || (() => {
|
|
5469
5469
|
}), d = o.value.closedCallback || ((S, C) => {
|
|
5470
|
-
}),
|
|
5470
|
+
}), s = o.value.resizeHandle || ((S) => {
|
|
5471
5471
|
}), u = n.stopMoveHandle || ((S) => {
|
|
5472
5472
|
});
|
|
5473
5473
|
let m;
|
|
5474
|
-
const
|
|
5474
|
+
const l = Fn(o.value), p = (S) => {
|
|
5475
5475
|
var x;
|
|
5476
5476
|
i.value = !1;
|
|
5477
5477
|
const C = (x = S == null ? void 0 : S.target) == null ? void 0 : x.classList.contains("modal_close");
|
|
@@ -5500,11 +5500,11 @@ class Tn {
|
|
|
5500
5500
|
onAccept: r,
|
|
5501
5501
|
onCancel: a,
|
|
5502
5502
|
onClosed: c,
|
|
5503
|
-
onResize:
|
|
5503
|
+
onResize: s,
|
|
5504
5504
|
onEsc: f,
|
|
5505
5505
|
onStopMove: u
|
|
5506
5506
|
}), {
|
|
5507
|
-
default: () => [
|
|
5507
|
+
default: () => [l && l(this.app)]
|
|
5508
5508
|
});
|
|
5509
5509
|
return m = ((S) => {
|
|
5510
5510
|
const C = An(E, S);
|
|
@@ -5527,14 +5527,14 @@ class Tn {
|
|
|
5527
5527
|
};
|
|
5528
5528
|
}
|
|
5529
5529
|
}
|
|
5530
|
-
const
|
|
5530
|
+
const Ts = Symbol("FModalService");
|
|
5531
5531
|
nt.install = (e) => {
|
|
5532
5532
|
e.component(nt.name, nt);
|
|
5533
5533
|
const n = new Tn(e);
|
|
5534
|
-
e.provide(
|
|
5534
|
+
e.provide(Ts, n), e.provide("FModalService", n);
|
|
5535
5535
|
};
|
|
5536
5536
|
nt.register = (e, n, t, o) => {
|
|
5537
|
-
e.modal = nt, n.modal =
|
|
5537
|
+
e.modal = nt, n.modal = ys, o.modal = { callbackResolver: bs };
|
|
5538
5538
|
};
|
|
5539
5539
|
const Ae = class Ae {
|
|
5540
5540
|
static show(n) {
|
|
@@ -5543,11 +5543,11 @@ const Ae = class Ae {
|
|
|
5543
5543
|
}), o = !1, i = t.type === "error" || t.type === "prompt", r = t.type === "error" ? "错误提示" : t.type === "prompt" && t.title || "", a = t.acceptCallback || (() => {
|
|
5544
5544
|
}), d = t.rejectCallback || (() => {
|
|
5545
5545
|
});
|
|
5546
|
-
let
|
|
5546
|
+
let s = null, u = new Tn(Ae.app);
|
|
5547
5547
|
const m = () => {
|
|
5548
|
-
|
|
5548
|
+
s && (s == null || s.destroy(), u = null);
|
|
5549
5549
|
};
|
|
5550
|
-
return
|
|
5550
|
+
return s = u == null ? void 0 : u.open({
|
|
5551
5551
|
class: "modal-message modal-message-type-info",
|
|
5552
5552
|
title: r,
|
|
5553
5553
|
showButtons: o,
|
|
@@ -5636,7 +5636,7 @@ let wt = Ae;
|
|
|
5636
5636
|
ht.install = (e) => {
|
|
5637
5637
|
e.component(ht.name, ht), wt.app = e, e.provide("FMessageBoxService", wt);
|
|
5638
5638
|
};
|
|
5639
|
-
class
|
|
5639
|
+
class pu extends Xr {
|
|
5640
5640
|
constructor(t, o) {
|
|
5641
5641
|
super(t, o);
|
|
5642
5642
|
K(this, "responseLayoutEditorFunction");
|
|
@@ -5662,7 +5662,7 @@ class au extends Xr {
|
|
|
5662
5662
|
getBasicProperties(t, o, i = "Card") {
|
|
5663
5663
|
const r = this;
|
|
5664
5664
|
this.setDesignViewModelField(t);
|
|
5665
|
-
const { canChangeControlType: a, editorTypeList: d } = this.getAvailableEditorType(t),
|
|
5665
|
+
const { canChangeControlType: a, editorTypeList: d } = this.getAvailableEditorType(t), s = {
|
|
5666
5666
|
description: "Basic Information",
|
|
5667
5667
|
title: "基本信息",
|
|
5668
5668
|
properties: {
|
|
@@ -5720,7 +5720,7 @@ class au extends Xr {
|
|
|
5720
5720
|
readonly: this.formSchemaUtils.designerMode === "PC_RTC" && !t.isRtcControl
|
|
5721
5721
|
}
|
|
5722
5722
|
},
|
|
5723
|
-
setPropertyRelates(u, m,
|
|
5723
|
+
setPropertyRelates(u, m, l) {
|
|
5724
5724
|
if (u)
|
|
5725
5725
|
switch (u && u.propertyID) {
|
|
5726
5726
|
case "type": {
|
|
@@ -5732,13 +5732,13 @@ class au extends Xr {
|
|
|
5732
5732
|
break;
|
|
5733
5733
|
}
|
|
5734
5734
|
case "binding": {
|
|
5735
|
-
r.changeBindingField(t, u,
|
|
5735
|
+
r.changeBindingField(t, u, l);
|
|
5736
5736
|
break;
|
|
5737
5737
|
}
|
|
5738
5738
|
}
|
|
5739
5739
|
}
|
|
5740
5740
|
};
|
|
5741
|
-
return i.toLocaleLowerCase() !== "card" && delete
|
|
5741
|
+
return i.toLocaleLowerCase() !== "card" && delete s.properties.showLabelType, s;
|
|
5742
5742
|
}
|
|
5743
5743
|
/**
|
|
5744
5744
|
* 校验控件是否支持切换类型
|
|
@@ -5839,21 +5839,21 @@ class au extends Xr {
|
|
|
5839
5839
|
const d = a.contents.findIndex((m) => m.id === t.id);
|
|
5840
5840
|
if (d === -1)
|
|
5841
5841
|
return;
|
|
5842
|
-
const
|
|
5842
|
+
const s = a.contents[d];
|
|
5843
5843
|
let u;
|
|
5844
5844
|
if (this.designViewModelField) {
|
|
5845
5845
|
const p = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((f) => f.id === this.designViewModelField.id).fieldSchema || {};
|
|
5846
5846
|
p.editor || (p.editor = {}), p.editor.$type = r, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, p, !1), u = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, r);
|
|
5847
5847
|
}
|
|
5848
5848
|
u || (u = this.controlCreatorUtils.createFormGroupWithoutField(r)), Object.assign(u, {
|
|
5849
|
-
id:
|
|
5850
|
-
appearance:
|
|
5851
|
-
size:
|
|
5852
|
-
label:
|
|
5853
|
-
binding:
|
|
5854
|
-
}), Object.prototype.hasOwnProperty.call(
|
|
5855
|
-
Object.prototype.hasOwnProperty.call(
|
|
5856
|
-
}), i != null && i.updateContextSchema ? i.updateContextSchema(u) : (i.schema = Object.assign(
|
|
5849
|
+
id: s.id,
|
|
5850
|
+
appearance: s.appearance,
|
|
5851
|
+
size: s.size,
|
|
5852
|
+
label: s.label,
|
|
5853
|
+
binding: s.binding
|
|
5854
|
+
}), Object.prototype.hasOwnProperty.call(s, "visible") && Object.assign(u, { visible: s.visible }), s.editor && ["readonly", "required", "placeholder"].map((m) => {
|
|
5855
|
+
Object.prototype.hasOwnProperty.call(s.editor, m) && (u.editor[m] = s.editor[m]);
|
|
5856
|
+
}), i != null && i.updateContextSchema ? i.updateContextSchema(u) : (i.schema = Object.assign(s, u), Object.assign(t, u)), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
5857
5857
|
(m) => m.classList.remove("dgComponentSelected")
|
|
5858
5858
|
), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
|
|
5859
5859
|
(m) => m.classList.remove("dgComponentFocused")
|
|
@@ -5869,11 +5869,11 @@ class au extends Xr {
|
|
|
5869
5869
|
type: "input-group",
|
|
5870
5870
|
$converter: "/converter/property-editor.converter",
|
|
5871
5871
|
parentPropertyID: "editor"
|
|
5872
|
-
}, o), d = (p = t.binding) != null && p.field ? [] : ["Const", "Variable", "StateMachine"],
|
|
5872
|
+
}, o), d = (p = t.binding) != null && p.field ? [] : ["Const", "Variable", "StateMachine"], s = this.getPropertyEditorParams(t, d, "readonly"), u = this.getPropertyEditorParams(t, d, "required"), m = {
|
|
5873
5873
|
readonly: {
|
|
5874
5874
|
description: "",
|
|
5875
5875
|
title: "只读",
|
|
5876
|
-
editor:
|
|
5876
|
+
editor: s
|
|
5877
5877
|
},
|
|
5878
5878
|
required: {
|
|
5879
5879
|
description: "",
|
|
@@ -5889,7 +5889,7 @@ class au extends Xr {
|
|
|
5889
5889
|
};
|
|
5890
5890
|
for (const c in i)
|
|
5891
5891
|
m[c] = Object.assign(m[c] || {}, i[c]);
|
|
5892
|
-
const
|
|
5892
|
+
const l = this;
|
|
5893
5893
|
return {
|
|
5894
5894
|
...a,
|
|
5895
5895
|
properties: { ...m },
|
|
@@ -5898,10 +5898,10 @@ class au extends Xr {
|
|
|
5898
5898
|
switch (c.propertyID) {
|
|
5899
5899
|
case "readonly":
|
|
5900
5900
|
case "required":
|
|
5901
|
-
|
|
5901
|
+
l.afterMutilEditorChanged(t, c);
|
|
5902
5902
|
break;
|
|
5903
5903
|
}
|
|
5904
|
-
r && r.bind(
|
|
5904
|
+
r && r.bind(l)(c, t, f);
|
|
5905
5905
|
}
|
|
5906
5906
|
}
|
|
5907
5907
|
};
|
|
@@ -5914,13 +5914,13 @@ class au extends Xr {
|
|
|
5914
5914
|
*/
|
|
5915
5915
|
updateUnifiedLayoutAfterControlChanged(t, o, i) {
|
|
5916
5916
|
const r = t.split(" ");
|
|
5917
|
-
let a = r.find((
|
|
5918
|
-
a = a || "col-12", d = d || "col-md-" + a.replace("col-", ""),
|
|
5917
|
+
let a = r.find((l) => /^col-([1-9]|10|11|12)$/.test(l)), d = r.find((l) => /^col-md-([1-9]|10|11|12)$/.test(l)), s = r.find((l) => /^col-xl-([1-9]|10|11|12)$/.test(l)), u = r.find((l) => /^col-el-([1-9]|10|11|12)$/.test(l));
|
|
5918
|
+
a = a || "col-12", d = d || "col-md-" + a.replace("col-", ""), s = s || "col-xl-" + d.replace("col-md-", ""), u = u || "col-el-" + s.replace("col-xl-", "");
|
|
5919
5919
|
const m = {
|
|
5920
5920
|
id: o,
|
|
5921
5921
|
columnInSM: parseInt(a.replace("col-", ""), 10),
|
|
5922
5922
|
columnInMD: parseInt(d.replace("col-md-", ""), 10),
|
|
5923
|
-
columnInLG: parseInt(
|
|
5923
|
+
columnInLG: parseInt(s.replace("col-xl-", ""), 10),
|
|
5924
5924
|
columnInEL: parseInt(u.replace("col-el-", ""), 10)
|
|
5925
5925
|
};
|
|
5926
5926
|
this.updateUnifiedLayoutAfterResponseLayoutChanged(i, m);
|
|
@@ -5939,10 +5939,10 @@ class au extends Xr {
|
|
|
5939
5939
|
const f = r.find((v) => v.id === o.id);
|
|
5940
5940
|
Object.assign(f || {}, o);
|
|
5941
5941
|
}
|
|
5942
|
-
const a = r.map((f) => f.columnInSM), d = r.map((f) => f.columnInMD),
|
|
5942
|
+
const a = r.map((f) => f.columnInSM), d = r.map((f) => f.columnInMD), s = r.map((f) => f.columnInLG), u = r.map((f) => f.columnInEL), m = this.checkIsUniqueColumn(a) ? a[0] : null, l = this.checkIsUniqueColumn(d) ? d[0] : null, p = this.checkIsUniqueColumn(s) ? s[0] : null, c = this.checkIsUniqueColumn(u) ? u[0] : null;
|
|
5943
5943
|
Object.assign(i.unifiedLayout, {
|
|
5944
5944
|
uniqueColClassInSM: m,
|
|
5945
|
-
uniqueColClassInMD:
|
|
5945
|
+
uniqueColClassInMD: l,
|
|
5946
5946
|
uniqueColClassInLG: p,
|
|
5947
5947
|
uniqueColClassInEL: c
|
|
5948
5948
|
});
|
|
@@ -6026,16 +6026,16 @@ class au extends Xr {
|
|
|
6026
6026
|
const a = this;
|
|
6027
6027
|
let d = [];
|
|
6028
6028
|
i && (d = d.concat(i)), this.appendFieldValueChangeEvents(t, d);
|
|
6029
|
-
const
|
|
6029
|
+
const s = a.eventsEditorUtils.formProperties(t, a.viewModelId, d);
|
|
6030
6030
|
return {
|
|
6031
6031
|
title: "事件",
|
|
6032
6032
|
hideTitle: !0,
|
|
6033
|
-
properties: a.createBaseEventProperty(
|
|
6033
|
+
properties: a.createBaseEventProperty(s),
|
|
6034
6034
|
tabId: "commands",
|
|
6035
6035
|
tabName: "交互",
|
|
6036
|
-
setPropertyRelates(
|
|
6037
|
-
const c =
|
|
6038
|
-
delete t[a.viewModelId], c && (c.setPropertyRelates = this.setPropertyRelates, c.controlInfo = { type: a.getControlMethodType(t), name: t.title }, a.eventsEditorUtils.saveRelatedParameters(t, a.viewModelId, c.events, c)), r && r(
|
|
6036
|
+
setPropertyRelates(l, p) {
|
|
6037
|
+
const c = l.propertyValue;
|
|
6038
|
+
delete t[a.viewModelId], c && (c.setPropertyRelates = this.setPropertyRelates, c.controlInfo = { type: a.getControlMethodType(t), name: t.title }, a.eventsEditorUtils.saveRelatedParameters(t, a.viewModelId, c.events, c)), r && r(l, p, c);
|
|
6039
6039
|
const f = a.designViewModelUtils.getDgViewModel(a.viewModelId);
|
|
6040
6040
|
f && a.designViewModelField && f.changeField(a.designViewModelField.id, { valueChanging: t.fieldValueChanging, valueChanged: t.fieldValueChanged });
|
|
6041
6041
|
}
|
|
@@ -6074,7 +6074,7 @@ class au extends Xr {
|
|
|
6074
6074
|
};
|
|
6075
6075
|
}
|
|
6076
6076
|
}
|
|
6077
|
-
const
|
|
6077
|
+
const mu = {
|
|
6078
6078
|
install(e) {
|
|
6079
6079
|
e.component(tn.name, tn);
|
|
6080
6080
|
}
|
|
@@ -6084,10 +6084,10 @@ export {
|
|
|
6084
6084
|
wn as ExpressionProperty,
|
|
6085
6085
|
tn as FPropertyPanel,
|
|
6086
6086
|
vt as FormBindingType,
|
|
6087
|
-
|
|
6087
|
+
pu as InputBaseProperty,
|
|
6088
6088
|
Yr as PropertyType,
|
|
6089
6089
|
Ct as SchemaDOMMapping,
|
|
6090
|
-
|
|
6090
|
+
mu as default,
|
|
6091
6091
|
Fr as propertyPanelItemProps,
|
|
6092
6092
|
Ki as propertyPanelProps
|
|
6093
6093
|
};
|