@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,14 +2,14 @@ var Mn = Object.defineProperty;
|
|
|
2
2
|
var Fn = (n, e, t) => e in n ? Mn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var X = (n, e, t) => Fn(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { ref as b, computed as A, defineComponent as _e, watch as xe, onMounted as Ze, createVNode as M, withDirectives as Bn, vModelText as kn, nextTick as at, Fragment as rt, reactive as Le, createApp as Yt, onUnmounted as wt, Transition as Jt, mergeProps as Dt, createTextVNode as In, onBeforeMount as Pn, Teleport as Vn, shallowRef as On, render as Nt, h as Nn, cloneVNode as $n, inject as Wt } from "vue";
|
|
5
|
-
import {
|
|
5
|
+
import { cloneDeep as vt, isPlainObject as _t, isUndefined as $e } from "lodash-es";
|
|
6
6
|
import { useCommonUtils as Dn, useTextBox as Ln, useClear as jn, getCustomClass as Rn, withInstall as Qt, FormSchemaEntityField$Type as ht, FormSchemaEntityFieldTypeName as Gt, getMaxZIndex as Hn, FormSchemaEntityFieldType$Type as An } from "../common/index.esm.js";
|
|
7
7
|
import { getSchemaByTypeForDesigner as zn, createPropsResolver as Zt, resolveAppearance as Un } from "../dynamic-resolver/index.esm.js";
|
|
8
8
|
import { DgControl as Xt } from "../designer-canvas/index.esm.js";
|
|
9
9
|
import { useI18n as Lt } from "vue-i18n";
|
|
10
10
|
import { LocaleService as Ct } from "../locale/index.esm.js";
|
|
11
11
|
import { useResizeObserver as qn } from "@vueuse/core";
|
|
12
|
-
import { getHierarchyRow as Wn, useIdentify as _n, useGroupData as Gn, useFilter as Xn, useHierarchy as Yn, useLoading as Jn, useDataView as Qn, useSelection as Zn, useSelectHierarchyItem as Kn, usePagination as eo, useDataViewContainerStyle as to, useCommandColumn as no, useSettingColumn as oo, useColumn as io, useSort as ro, useGroupColumn as ao, useRow as lo, useEdit as so, useVisualDataBound as
|
|
12
|
+
import { getHierarchyRow as Wn, useIdentify as _n, useGroupData as Gn, useFilter as Xn, useHierarchy as Yn, useLoading as Jn, useDataView as Qn, useSelection as Zn, useSelectHierarchyItem as Kn, usePagination as eo, useDataViewContainerStyle as to, useCommandColumn as no, useSettingColumn as oo, useColumn as io, useSort as ro, useGroupColumn as ao, useRow as lo, useEdit as so, useVisualDataBound as co, useVisualDataCell as uo, useVisualDataRow as fo, useVisualData as po, useCellPosition as mo, useSidebar as vo, useVirtualScroll as ho, useFitColumn as go, useFilterHistory as yo, useColumnFilter as bo, useDragColumn as wo, getColumnHeader as Co, getSidebar as xo, getDisableMask as So, getHorizontalScrollbar as To, getVerticalScrollbar as Eo, getEmpty as Mo, getPagination as Fo, getSummary as Bo } from "../data-view/index.esm.js";
|
|
13
13
|
import "../property-panel/index.esm.js";
|
|
14
14
|
import "../accordion/index.esm.js";
|
|
15
15
|
import "../avatar/index.esm.js";
|
|
@@ -124,7 +124,7 @@ function Kt(n, e) {
|
|
|
124
124
|
const d = o(m);
|
|
125
125
|
return Object.keys(d).reduce((f, v) => (Object.prototype.hasOwnProperty.call(s, v) && (f[v] && _t(f[v]) && _t(s[v] || !s[v]) ? Object.assign(f[v], s[v] || {}) : f[v] = s[v]), f), d), d;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function u(s, m) {
|
|
128
128
|
return Object.keys(s).filter((f) => s[f] != null).reduce((f, v) => {
|
|
129
129
|
if (m.has(v)) {
|
|
130
130
|
const y = m.get(v);
|
|
@@ -141,9 +141,9 @@ function Kt(n, e) {
|
|
|
141
141
|
}
|
|
142
142
|
function l(s, m, d = /* @__PURE__ */ new Map()) {
|
|
143
143
|
const f = a(s, m);
|
|
144
|
-
return
|
|
144
|
+
return u(f, d);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function c(s) {
|
|
147
147
|
var d;
|
|
148
148
|
const m = s.type;
|
|
149
149
|
if (m) {
|
|
@@ -162,59 +162,59 @@ function Kt(n, e) {
|
|
|
162
162
|
function p(s) {
|
|
163
163
|
t = s;
|
|
164
164
|
}
|
|
165
|
-
return { getSchemaByType: r, resolveSchemaWithDefaultValue:
|
|
165
|
+
return { getSchemaByType: r, resolveSchemaWithDefaultValue: c, resolveSchemaToProps: l, mappingSchemaToProps: u, setDesignerContext: p };
|
|
166
166
|
}
|
|
167
|
-
const en = {}, tn = {}, { resolveSchemaWithDefaultValue: ko, resolveSchemaToProps: Io, mappingSchemaToProps: Po } = Kt(en, tn);
|
|
167
|
+
const en = {}, tn = {}, { getSchemaByType: Hl, resolveSchemaWithDefaultValue: ko, resolveSchemaToProps: Io, mappingSchemaToProps: Po, setDesignerContext: Al } = Kt(en, tn);
|
|
168
168
|
function Vo(n = {}) {
|
|
169
|
-
function e(
|
|
169
|
+
function e(c, p, s, m) {
|
|
170
170
|
if (typeof s == "number")
|
|
171
|
-
return m[
|
|
171
|
+
return m[c].length === s;
|
|
172
172
|
if (typeof s == "object") {
|
|
173
173
|
const d = Object.keys(s)[0], f = s[d];
|
|
174
174
|
if (d === "not")
|
|
175
|
-
return Number(m[
|
|
175
|
+
return Number(m[c].length) !== Number(f);
|
|
176
176
|
if (d === "moreThan")
|
|
177
|
-
return Number(m[
|
|
177
|
+
return Number(m[c].length) >= Number(f);
|
|
178
178
|
if (d === "lessThan")
|
|
179
|
-
return Number(m[
|
|
179
|
+
return Number(m[c].length) <= Number(f);
|
|
180
180
|
}
|
|
181
181
|
return !1;
|
|
182
182
|
}
|
|
183
|
-
function t(
|
|
184
|
-
return m[
|
|
183
|
+
function t(c, p, s, m) {
|
|
184
|
+
return m[c] && m[c].propertyValue && String(m[c].propertyValue.value) === String(s);
|
|
185
185
|
}
|
|
186
186
|
const o = /* @__PURE__ */ new Map([
|
|
187
187
|
["length", e],
|
|
188
188
|
["getProperty", t]
|
|
189
189
|
]);
|
|
190
|
-
Object.keys(n).reduce((
|
|
191
|
-
function i(
|
|
192
|
-
const s =
|
|
193
|
-
return typeof p == "number" ? [{ target: s, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: s, operator: "getProperty", param:
|
|
190
|
+
Object.keys(n).reduce((c, p) => (c.set(p, n[p]), c), o);
|
|
191
|
+
function i(c, p) {
|
|
192
|
+
const s = c;
|
|
193
|
+
return typeof p == "number" ? [{ target: s, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: s, operator: "getProperty", param: c, value: !!p }] : typeof p == "object" ? Object.keys(p).map((m) => {
|
|
194
194
|
if (m === "length")
|
|
195
195
|
return { target: s, operator: "length", param: null, value: p[m] };
|
|
196
196
|
const d = m, f = p[m];
|
|
197
197
|
return { target: s, operator: "getProperty", param: d, value: f };
|
|
198
198
|
}) : [];
|
|
199
199
|
}
|
|
200
|
-
function r(
|
|
201
|
-
return Object.keys(
|
|
202
|
-
const d = i(m,
|
|
200
|
+
function r(c) {
|
|
201
|
+
return Object.keys(c).reduce((s, m) => {
|
|
202
|
+
const d = i(m, c[m]);
|
|
203
203
|
return s.push(...d), s;
|
|
204
204
|
}, []);
|
|
205
205
|
}
|
|
206
|
-
function a(
|
|
207
|
-
if (o.has(
|
|
208
|
-
const s = o.get(
|
|
209
|
-
return s && s(
|
|
206
|
+
function a(c, p) {
|
|
207
|
+
if (o.has(c.operator)) {
|
|
208
|
+
const s = o.get(c.operator);
|
|
209
|
+
return s && s(c.target, c.param, c.value, p) || !1;
|
|
210
210
|
}
|
|
211
211
|
return !1;
|
|
212
212
|
}
|
|
213
|
-
function c
|
|
214
|
-
return r(
|
|
213
|
+
function u(c, p) {
|
|
214
|
+
return r(c).reduce((d, f) => d && a(f, p), !0);
|
|
215
215
|
}
|
|
216
|
-
function l(
|
|
217
|
-
const s = Object.keys(
|
|
216
|
+
function l(c, p) {
|
|
217
|
+
const s = Object.keys(c), m = s.includes("allOf"), d = s.includes("anyOf"), f = m || d, T = (f ? c[f ? m ? "allOf" : "anyOf" : "allOf"] : [c]).map((z) => u(z, p));
|
|
218
218
|
return m ? !T.includes(!1) : T.includes(!0);
|
|
219
219
|
}
|
|
220
220
|
return { parseValueSchema: l };
|
|
@@ -511,22 +511,22 @@ function nn(n, e, t) {
|
|
|
511
511
|
function a(f, v) {
|
|
512
512
|
return () => r.parseValueSchema(f, v);
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function u(f, v, y) {
|
|
515
515
|
return f.includes("visible") && v.visible !== void 0 ? typeof v.visible == "boolean" ? () => !!v.visible : v.visible === void 0 ? !0 : a(v.visible, y) : () => !0;
|
|
516
516
|
}
|
|
517
517
|
function l(f, v, y) {
|
|
518
518
|
return f.includes("readonly") && v.readonly !== void 0 ? typeof v.readonly == "boolean" ? () => !!v.readonly : a(v.readonly, y) : () => !1;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function c(f, v) {
|
|
521
521
|
const y = f.$converter || v;
|
|
522
522
|
return typeof y == "string" && y && o.has(y) ? o.get(y) || null : y || null;
|
|
523
523
|
}
|
|
524
524
|
function p(f, v, y, T, B, z = "", L = "") {
|
|
525
525
|
return Object.keys(f).map((g) => {
|
|
526
|
-
const F = b(1), x = g, P = f[g], q = Object.keys(P), C = P.title, E = P.type, N = i.get(E) || { type: "input-group", enableClear: !1 }, V = P.editor ? Object.assign({}, N, P.editor) : Object.assign({}, N), S =
|
|
526
|
+
const F = b(1), x = g, P = f[g], q = Object.keys(P), C = P.title, E = P.type, N = i.get(E) || { type: "input-group", enableClear: !1 }, V = P.editor ? Object.assign({}, N, P.editor) : Object.assign({}, N), S = u(q, P, v), U = l(q, P, v);
|
|
527
527
|
V.readonly = V.readonly === void 0 ? U() : V.readonly;
|
|
528
528
|
const Z = P.type === "cascade" ? p(P.properties, v, y, T, B, z, L) : [], O = !0;
|
|
529
|
-
let I =
|
|
529
|
+
let I = c(P, L);
|
|
530
530
|
const G = A({
|
|
531
531
|
get() {
|
|
532
532
|
if (F.value) {
|
|
@@ -588,14 +588,14 @@ function nn(n, e, t) {
|
|
|
588
588
|
}
|
|
589
589
|
const on = {}, rn = {};
|
|
590
590
|
nn(on, rn, ko);
|
|
591
|
-
const an = {}, ln = {}, { resolveSchemaWithDefaultValue: ei } = Kt(an, ln), sn = {},
|
|
592
|
-
nn(sn,
|
|
593
|
-
function lt(n, e, t = /* @__PURE__ */ new Map(), o = (a,
|
|
594
|
-
return en[e.title] = e, tn[e.title] = o, on[e.title] = i, rn[e.title] = r, an[e.title] = e, ln[e.title] = o, sn[e.title] = i,
|
|
595
|
-
if (!
|
|
591
|
+
const an = {}, ln = {}, { getSchemaByType: zl, resolveSchemaWithDefaultValue: ei, resolveSchemaToProps: Ul, mappingSchemaToProps: ql, setDesignerContext: Wl } = Kt(an, ln), sn = {}, cn = {};
|
|
592
|
+
nn(sn, cn, ei);
|
|
593
|
+
function lt(n, e, t = /* @__PURE__ */ new Map(), o = (a, u, l, c) => u, i = {}, r = (a) => a) {
|
|
594
|
+
return en[e.title] = e, tn[e.title] = o, on[e.title] = i, rn[e.title] = r, an[e.title] = e, ln[e.title] = o, sn[e.title] = i, cn[e.title] = r, (a = {}, u = !0) => {
|
|
595
|
+
if (!u)
|
|
596
596
|
return Po(a, t);
|
|
597
|
-
const l = Io(a, e, t),
|
|
598
|
-
return Object.assign(
|
|
597
|
+
const l = Io(a, e, t), c = Object.keys(n).reduce((p, s) => (p[s] = n[s].default, p), {});
|
|
598
|
+
return Object.assign(c, l);
|
|
599
599
|
};
|
|
600
600
|
}
|
|
601
601
|
function jt(n, e) {
|
|
@@ -706,12 +706,12 @@ const ti = /* @__PURE__ */ new Map([
|
|
|
706
706
|
}
|
|
707
707
|
}, si = [
|
|
708
708
|
"type"
|
|
709
|
-
],
|
|
709
|
+
], ci = [
|
|
710
710
|
"id",
|
|
711
711
|
"appearance",
|
|
712
712
|
"binding",
|
|
713
713
|
"visible"
|
|
714
|
-
],
|
|
714
|
+
], ui = {
|
|
715
715
|
$schema: ni,
|
|
716
716
|
$id: oi,
|
|
717
717
|
title: ii,
|
|
@@ -719,7 +719,7 @@ const ti = /* @__PURE__ */ new Map([
|
|
|
719
719
|
type: ai,
|
|
720
720
|
properties: li,
|
|
721
721
|
required: si,
|
|
722
|
-
ignore:
|
|
722
|
+
ignore: ci
|
|
723
723
|
};
|
|
724
724
|
function di(n, e, t) {
|
|
725
725
|
return e;
|
|
@@ -777,7 +777,7 @@ const Rt = {
|
|
|
777
777
|
lineBreak: { type: Boolean, default: "enter" }
|
|
778
778
|
}, fi = Object.assign({}, Rt, {
|
|
779
779
|
readonly: {}
|
|
780
|
-
}),
|
|
780
|
+
}), un = lt(Rt, ui, ti, di), gt = /* @__PURE__ */ _e({
|
|
781
781
|
name: "FTextarea",
|
|
782
782
|
props: Rt,
|
|
783
783
|
emits: ["update:modelValue", "valueChange", "change", "mousedownEvent", "mouseupEvent"],
|
|
@@ -788,8 +788,8 @@ const Rt = {
|
|
|
788
788
|
} = Dn(), o = b(), i = b(null), r = A(() => n.modelValue), a = A(() => {
|
|
789
789
|
if (!(n.allowUnlimtedWhenEmpty && n.maxLength === 0 || t(n.maxLength)))
|
|
790
790
|
return typeof n.maxLength == "number" && !isNaN(n.maxLength) ? n.maxLength : n.modelValue ? n.modelValue.length : 0;
|
|
791
|
-
}),
|
|
792
|
-
inputGroupClass:
|
|
791
|
+
}), u = b(((V = n.modelValue) == null ? void 0 : V.slice(0, a.value)) || ""), l = Ln(n, e, u, r, o), {
|
|
792
|
+
inputGroupClass: c,
|
|
793
793
|
onBlur: p,
|
|
794
794
|
onFocus: s,
|
|
795
795
|
onMousedown: m,
|
|
@@ -824,11 +824,11 @@ const Rt = {
|
|
|
824
824
|
selectionStart: O,
|
|
825
825
|
selectionEnd: I
|
|
826
826
|
} = i.value;
|
|
827
|
-
|
|
828
|
-
` +
|
|
827
|
+
u.value = u.value.slice(0, O) + `
|
|
828
|
+
` + u.value.slice(I), at(() => {
|
|
829
829
|
var G;
|
|
830
830
|
i.value.selectionStart = O + 1, i.value.selectionEnd = O + 1, (G = i.value) == null || G.focus();
|
|
831
|
-
}), e.emit("update:modelValue",
|
|
831
|
+
}), e.emit("update:modelValue", u.value), e.emit("valueChange", u.value), e.emit("change", u.value);
|
|
832
832
|
return;
|
|
833
833
|
}
|
|
834
834
|
}, P = A(() => ({
|
|
@@ -842,7 +842,7 @@ const Rt = {
|
|
|
842
842
|
} : S;
|
|
843
843
|
}), C = A(() => n.disabled || n.readonly ? "" : n.placeholder);
|
|
844
844
|
xe(() => n.modelValue, (S, U) => {
|
|
845
|
-
S !== U && (
|
|
845
|
+
S !== U && (u.value = S);
|
|
846
846
|
});
|
|
847
847
|
const E = () => i.value;
|
|
848
848
|
e.expose({
|
|
@@ -859,7 +859,7 @@ const Rt = {
|
|
|
859
859
|
N();
|
|
860
860
|
}), () => M("div", {
|
|
861
861
|
ref: o,
|
|
862
|
-
class:
|
|
862
|
+
class: c.value,
|
|
863
863
|
onMouseenter: T,
|
|
864
864
|
onMouseleave: B,
|
|
865
865
|
style: "position:relative"
|
|
@@ -867,7 +867,7 @@ const Rt = {
|
|
|
867
867
|
ref: i,
|
|
868
868
|
class: P.value,
|
|
869
869
|
id: n.id,
|
|
870
|
-
"onUpdate:modelValue": (S) =>
|
|
870
|
+
"onUpdate:modelValue": (S) => u.value = S,
|
|
871
871
|
minlength: n.minLength,
|
|
872
872
|
maxlength: a.value,
|
|
873
873
|
tabindex: n.tabIndex,
|
|
@@ -885,7 +885,7 @@ const Rt = {
|
|
|
885
885
|
onMousedown: m,
|
|
886
886
|
onMouseup: d,
|
|
887
887
|
style: q.value
|
|
888
|
-
}, null), [[kn,
|
|
888
|
+
}, null), [[kn, u.value]]), L.value && M("span", {
|
|
889
889
|
id: "clearIcon",
|
|
890
890
|
class: z.value,
|
|
891
891
|
style: w.value,
|
|
@@ -899,13 +899,13 @@ function pi(n, e, t) {
|
|
|
899
899
|
var C;
|
|
900
900
|
const o = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", r = b();
|
|
901
901
|
let a;
|
|
902
|
-
function
|
|
902
|
+
function u() {
|
|
903
903
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
904
904
|
}
|
|
905
905
|
function l() {
|
|
906
906
|
return !1;
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function c() {
|
|
909
909
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
910
910
|
}
|
|
911
911
|
function p() {
|
|
@@ -1024,9 +1024,9 @@ function pi(n, e, t) {
|
|
|
1024
1024
|
return t.onPropertyChanged(E);
|
|
1025
1025
|
}
|
|
1026
1026
|
return r.value = {
|
|
1027
|
-
canMove:
|
|
1027
|
+
canMove: u(),
|
|
1028
1028
|
canSelectParent: l(),
|
|
1029
|
-
canDelete:
|
|
1029
|
+
canDelete: c(),
|
|
1030
1030
|
canNested: !p(),
|
|
1031
1031
|
contents: e == null ? void 0 : e.schema.contents,
|
|
1032
1032
|
elementRef: n,
|
|
@@ -1059,30 +1059,30 @@ function vi() {
|
|
|
1059
1059
|
const dt = b(0);
|
|
1060
1060
|
function hi(n) {
|
|
1061
1061
|
const { formSchemaUtils: e, formStateMachineUtils: t } = n;
|
|
1062
|
-
function o(l,
|
|
1062
|
+
function o(l, c = "") {
|
|
1063
1063
|
return {
|
|
1064
|
-
path:
|
|
1064
|
+
path: c + l.code,
|
|
1065
1065
|
field: l.id,
|
|
1066
1066
|
fullPath: l.code
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
|
-
function i(l,
|
|
1070
|
-
return e.getViewModelById(l).states.map((s) => o(s,
|
|
1069
|
+
function i(l, c = "") {
|
|
1070
|
+
return e.getViewModelById(l).states.map((s) => o(s, c));
|
|
1071
1071
|
}
|
|
1072
1072
|
function r(l) {
|
|
1073
|
-
const
|
|
1074
|
-
if (l ===
|
|
1073
|
+
const c = e.getRootViewModelId(), p = i(l);
|
|
1074
|
+
if (l === c)
|
|
1075
1075
|
return p;
|
|
1076
|
-
const s = i(
|
|
1076
|
+
const s = i(c, "root-component.");
|
|
1077
1077
|
return [...p, ...s];
|
|
1078
1078
|
}
|
|
1079
1079
|
function a(l) {
|
|
1080
1080
|
return l.binding && l.binding.path || l.id || "";
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function u() {
|
|
1083
1083
|
return t && t.getRenderStates() || [];
|
|
1084
1084
|
}
|
|
1085
|
-
return { getVariables: r, getControlName: a, getStateMachines:
|
|
1085
|
+
return { getVariables: r, getControlName: a, getStateMachines: u };
|
|
1086
1086
|
}
|
|
1087
1087
|
class dn {
|
|
1088
1088
|
constructor(e) {
|
|
@@ -1134,16 +1134,16 @@ class dn {
|
|
|
1134
1134
|
});
|
|
1135
1135
|
X(this, "getExpressionConverter", (e, t) => ({
|
|
1136
1136
|
convertFrom: (o, i, r, a) => {
|
|
1137
|
-
const
|
|
1138
|
-
return
|
|
1137
|
+
const u = r.getExpressionRuleValue(e, t || i);
|
|
1138
|
+
return u && u.value || "";
|
|
1139
1139
|
},
|
|
1140
|
-
convertTo: (o, i, r, a,
|
|
1140
|
+
convertTo: (o, i, r, a, u) => {
|
|
1141
1141
|
var l;
|
|
1142
1142
|
if (i === "dataPicking" && (r != null && r.target)) {
|
|
1143
|
-
const
|
|
1143
|
+
const c = `${r.target}_dataPicking`;
|
|
1144
1144
|
((l = r.rules) == null ? void 0 : l.some(
|
|
1145
|
-
(s) => s.id ===
|
|
1146
|
-
)) ? o.dictPickingExpressionId =
|
|
1145
|
+
(s) => s.id === c && s.value
|
|
1146
|
+
)) ? o.dictPickingExpressionId = c : delete o.dictPickingExpressionId;
|
|
1147
1147
|
}
|
|
1148
1148
|
a.updateExpression(r);
|
|
1149
1149
|
}
|
|
@@ -1190,10 +1190,10 @@ class dn {
|
|
|
1190
1190
|
buildEntityFieldsTreeData(e = null, t) {
|
|
1191
1191
|
const o = [];
|
|
1192
1192
|
return e == null || e.forEach((i) => {
|
|
1193
|
-
var
|
|
1193
|
+
var u;
|
|
1194
1194
|
const r = this.createTreeNode(i, t);
|
|
1195
1195
|
let a = [];
|
|
1196
|
-
(
|
|
1196
|
+
(u = i.type) != null && u.fields && (a = this.buildEntityFieldsTreeData(i.type.fields, [...t, i.label])), o.push({
|
|
1197
1197
|
data: r,
|
|
1198
1198
|
children: a,
|
|
1199
1199
|
expanded: !0
|
|
@@ -1203,11 +1203,11 @@ class dn {
|
|
|
1203
1203
|
buildChildEntityTreeData(e = null, t) {
|
|
1204
1204
|
const o = [];
|
|
1205
1205
|
return e == null || e.forEach((i) => {
|
|
1206
|
-
var l,
|
|
1206
|
+
var l, c;
|
|
1207
1207
|
const r = this.createTreeNode(i, t);
|
|
1208
1208
|
r.type = "entity";
|
|
1209
|
-
const a = this.buildEntityFieldsTreeData((l = i.type) == null ? void 0 : l.fields, [...t, i.label]),
|
|
1210
|
-
|
|
1209
|
+
const a = this.buildEntityFieldsTreeData((l = i.type) == null ? void 0 : l.fields, [...t, i.label]), u = this.buildChildEntityTreeData((c = i.type) == null ? void 0 : c.entities, [...t, i.label]);
|
|
1210
|
+
u != null && u.length && (a == null || a.push(...u)), o.push({
|
|
1211
1211
|
data: r,
|
|
1212
1212
|
children: a || [],
|
|
1213
1213
|
// 空值回退
|
|
@@ -1249,19 +1249,19 @@ class dn {
|
|
|
1249
1249
|
};
|
|
1250
1250
|
}
|
|
1251
1251
|
onBeforeOpenExpression(e, t, o) {
|
|
1252
|
-
const i = o === "Field" ? e.binding.field : e.id, r = this.getExpressionRule(i, t), a = this.getEntitiesAndVariables(),
|
|
1252
|
+
const i = o === "Field" ? e.binding.field : e.id, r = this.getExpressionRule(i, t), a = this.getEntitiesAndVariables(), u = {
|
|
1253
1253
|
message: ["validate", "required", "dataPicking"].includes(t) && r ? r.message : "",
|
|
1254
1254
|
...a
|
|
1255
1255
|
};
|
|
1256
|
-
return r.messageType != null && (
|
|
1256
|
+
return r.messageType != null && (u.messageType = r.messageType), u;
|
|
1257
1257
|
}
|
|
1258
1258
|
buildRule(e, t, o, i) {
|
|
1259
|
-
const { expression: r, message: a, messageType:
|
|
1259
|
+
const { expression: r, message: a, messageType: u } = t, l = {
|
|
1260
1260
|
id: `${e}_${o}`,
|
|
1261
1261
|
type: o,
|
|
1262
1262
|
value: r
|
|
1263
1263
|
};
|
|
1264
|
-
return (o === "validate" || o === "dataPicking" || o === "required") && (l.message = a), o === "dataPicking" && (l.messageType =
|
|
1264
|
+
return (o === "validate" || o === "dataPicking" || o === "required") && (l.message = a), o === "dataPicking" && (l.messageType = u), o === "validate" && i && (l.elementId = i), l;
|
|
1265
1265
|
}
|
|
1266
1266
|
getExpressionData() {
|
|
1267
1267
|
const { expressions: e } = this.formSchemaService.getFormSchema().module;
|
|
@@ -1270,18 +1270,18 @@ class dn {
|
|
|
1270
1270
|
updateExpression(e, t, o, i) {
|
|
1271
1271
|
const r = t === "Field" ? e.binding.field : e.id, a = this.buildRule(r, o, i, e.type === "form-group" ? e.id : "");
|
|
1272
1272
|
let l = this.getExpressionData().find((p) => p.targetType === t && p.target === r);
|
|
1273
|
-
const
|
|
1273
|
+
const c = (p) => p.value.trim() === "";
|
|
1274
1274
|
if (l) {
|
|
1275
1275
|
const p = l.rules.find((s) => s.id === a.id);
|
|
1276
1276
|
if (p)
|
|
1277
|
-
|
|
1277
|
+
c(a) ? l.rules = l.rules.filter((s) => s.id !== a.id) : (Object.assign(p, a), i === "validate" && e.type === "form-group" && (p.elementId = e.id));
|
|
1278
1278
|
else {
|
|
1279
|
-
if (
|
|
1279
|
+
if (c(a))
|
|
1280
1280
|
return null;
|
|
1281
1281
|
l.rules = l.rules || [], l.rules.push(a);
|
|
1282
1282
|
}
|
|
1283
1283
|
} else {
|
|
1284
|
-
if (
|
|
1284
|
+
if (c(a))
|
|
1285
1285
|
return null;
|
|
1286
1286
|
l = {
|
|
1287
1287
|
target: `${r}`,
|
|
@@ -1293,14 +1293,14 @@ class dn {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
getExpressionEditorOptions(e, t, o, i) {
|
|
1295
1295
|
return o.reduce((r, a) => {
|
|
1296
|
-
var l,
|
|
1297
|
-
const
|
|
1296
|
+
var l, c;
|
|
1297
|
+
const u = t === "Field" ? (l = e == null ? void 0 : e.binding) == null ? void 0 : l.field : e.id;
|
|
1298
1298
|
return r[a] = {
|
|
1299
|
-
hide: t === "Field" ? !!((
|
|
1299
|
+
hide: t === "Field" ? !!((c = e == null ? void 0 : e.binding) != null && c.field) : !1,
|
|
1300
1300
|
description: "",
|
|
1301
1301
|
title: this.expressionNames[a],
|
|
1302
1302
|
type: "string",
|
|
1303
|
-
$converter: this.getExpressionConverter(
|
|
1303
|
+
$converter: this.getExpressionConverter(u),
|
|
1304
1304
|
refreshPanelAfterChanged: !0,
|
|
1305
1305
|
editor: {
|
|
1306
1306
|
type: "expression-editor",
|
|
@@ -1312,7 +1312,7 @@ class dn {
|
|
|
1312
1312
|
onSubmitModal: (p) => {
|
|
1313
1313
|
const s = this.updateExpression(e, t, p, a);
|
|
1314
1314
|
if (i) {
|
|
1315
|
-
const m = this.buildRule(
|
|
1315
|
+
const m = this.buildRule(u, p, a);
|
|
1316
1316
|
i(m);
|
|
1317
1317
|
}
|
|
1318
1318
|
return s;
|
|
@@ -1443,7 +1443,7 @@ class gi {
|
|
|
1443
1443
|
return {
|
|
1444
1444
|
...i,
|
|
1445
1445
|
properties: { ...r },
|
|
1446
|
-
setPropertyRelates(a,
|
|
1446
|
+
setPropertyRelates(a, u) {
|
|
1447
1447
|
if (a) {
|
|
1448
1448
|
switch (a && a.propertyID) {
|
|
1449
1449
|
case "class":
|
|
@@ -1452,7 +1452,7 @@ class gi {
|
|
|
1452
1452
|
break;
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
|
-
o && o(a, e,
|
|
1455
|
+
o && o(a, e, u);
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
};
|
|
@@ -1468,7 +1468,7 @@ class gi {
|
|
|
1468
1468
|
* @returns
|
|
1469
1469
|
*/
|
|
1470
1470
|
getPropertyEditorParams(e, t = [], o = "visible", i = {}, r = {}, a = "") {
|
|
1471
|
-
const { getVariables:
|
|
1471
|
+
const { getVariables: u, getControlName: l, getStateMachines: c } = hi(this.designerHostService), p = this.getRealTargetType(e), s = t && t.length > 0 ? t : ["Const", "Variable", "StateMachine", "Expression"], m = {
|
|
1472
1472
|
type: "property-editor",
|
|
1473
1473
|
propertyTypes: s
|
|
1474
1474
|
};
|
|
@@ -1484,16 +1484,16 @@ class gi {
|
|
|
1484
1484
|
m.expressionConfig = this.getExpressionOptions(e, p, a || o);
|
|
1485
1485
|
break;
|
|
1486
1486
|
case "StateMachine":
|
|
1487
|
-
m.stateMachines =
|
|
1487
|
+
m.stateMachines = c();
|
|
1488
1488
|
break;
|
|
1489
1489
|
case "Variable":
|
|
1490
1490
|
Object.assign(m, {
|
|
1491
1491
|
controlName: l(e),
|
|
1492
1492
|
newVariablePrefix: "is",
|
|
1493
1493
|
newVariableType: "Boolean",
|
|
1494
|
-
variables:
|
|
1494
|
+
variables: u(this.viewModelId),
|
|
1495
1495
|
onBeforeOpenVariables: (f) => {
|
|
1496
|
-
f.value =
|
|
1496
|
+
f.value = u(this.viewModelId);
|
|
1497
1497
|
}
|
|
1498
1498
|
}, r);
|
|
1499
1499
|
break;
|
|
@@ -1525,20 +1525,20 @@ class gi {
|
|
|
1525
1525
|
}, a = this.getVisibleProperty(e, t);
|
|
1526
1526
|
for (const l in o)
|
|
1527
1527
|
a[l] = Object.assign(a[l] || {}, o[l]);
|
|
1528
|
-
const
|
|
1528
|
+
const u = this;
|
|
1529
1529
|
return {
|
|
1530
1530
|
...r,
|
|
1531
1531
|
properties: { ...a },
|
|
1532
|
-
setPropertyRelates(l,
|
|
1532
|
+
setPropertyRelates(l, c) {
|
|
1533
1533
|
if (l) {
|
|
1534
1534
|
switch (l.propertyID) {
|
|
1535
1535
|
case "disabled":
|
|
1536
1536
|
case "readonly":
|
|
1537
1537
|
case "visible":
|
|
1538
|
-
|
|
1538
|
+
u.afterMutilEditorChanged(e, l);
|
|
1539
1539
|
break;
|
|
1540
1540
|
}
|
|
1541
|
-
i && i(l,
|
|
1541
|
+
i && i(l, c);
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
1544
|
};
|
|
@@ -1591,16 +1591,16 @@ class gi {
|
|
|
1591
1591
|
const t = e.propertyValue;
|
|
1592
1592
|
if (!((t && t.type) === "Expression" && t.expressionInfo))
|
|
1593
1593
|
return;
|
|
1594
|
-
const { expressionId: r, expressionInfo: a } = t, { targetId:
|
|
1594
|
+
const { expressionId: r, expressionInfo: a } = t, { targetId: u, targetType: l, expressionType: c, value: p, message: s } = a, m = this.formSchemaUtils.getModule();
|
|
1595
1595
|
m.expressions = m.expressions || [];
|
|
1596
1596
|
const { expressions: d } = m;
|
|
1597
|
-
let f = d.find((y) => y.target ===
|
|
1598
|
-
f || (f = { target:
|
|
1599
|
-
const v = f.rules.find((y) => y.type ===
|
|
1597
|
+
let f = d.find((y) => y.target === u);
|
|
1598
|
+
f || (f = { target: u, rules: [], targetType: l }, d.push(f));
|
|
1599
|
+
const v = f.rules.find((y) => y.type === c);
|
|
1600
1600
|
if (v)
|
|
1601
1601
|
v.value = p, v.message = s;
|
|
1602
1602
|
else {
|
|
1603
|
-
const y = { id: r, type:
|
|
1603
|
+
const y = { id: r, type: c, value: p, message: s };
|
|
1604
1604
|
f.rules.push(y);
|
|
1605
1605
|
}
|
|
1606
1606
|
delete t.expressionInfo;
|
|
@@ -1615,8 +1615,8 @@ class gi {
|
|
|
1615
1615
|
const o = e.propertyValue;
|
|
1616
1616
|
if (o && o.type === "Expression")
|
|
1617
1617
|
return;
|
|
1618
|
-
const r = e.propertyID, a = this.formSchemaUtils.getExpressions(),
|
|
1619
|
-
!l || !l.rules || (l.rules = l.rules.filter((
|
|
1618
|
+
const r = e.propertyID, a = this.formSchemaUtils.getExpressions(), u = t.binding ? t.binding.field : t.id, l = a.find((c) => c.target === u);
|
|
1619
|
+
!l || !l.rules || (l.rules = l.rules.filter((c) => c.type !== r));
|
|
1620
1620
|
}
|
|
1621
1621
|
getExpressionOptions(e, t, o) {
|
|
1622
1622
|
return new dn(this.formSchemaUtils).getExpressionOptions(e, t, o);
|
|
@@ -1784,7 +1784,7 @@ function bi(n) {
|
|
|
1784
1784
|
y ? r(y, T) : T.isSupportedClass = !1, T.label = v.label || v.id, T.id = v.id, T.group = m, d && (T.fieldSetId = p.id), t === v.id && (e = m), o.set(v.id, v), s.push(T);
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1787
|
+
function u(p) {
|
|
1788
1788
|
const s = n.getComponentById(p);
|
|
1789
1789
|
if (!s || !s.componentType || !s.componentType.startsWith("form"))
|
|
1790
1790
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
@@ -1793,7 +1793,7 @@ function bi(n) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
function l(p, s) {
|
|
1795
1795
|
s = s || p.id;
|
|
1796
|
-
const { result: m, message: d, formNode: f } =
|
|
1796
|
+
const { result: m, message: d, formNode: f } = u(s);
|
|
1797
1797
|
if (!m)
|
|
1798
1798
|
return { result: m, message: d };
|
|
1799
1799
|
t = p.id, i = [], o.clear();
|
|
@@ -1808,9 +1808,9 @@ function bi(n) {
|
|
|
1808
1808
|
importData: i
|
|
1809
1809
|
};
|
|
1810
1810
|
}
|
|
1811
|
-
function
|
|
1811
|
+
function c(p, s) {
|
|
1812
1812
|
s = s;
|
|
1813
|
-
const { result: m, formNode: d } =
|
|
1813
|
+
const { result: m, formNode: d } = u(s);
|
|
1814
1814
|
if (!m)
|
|
1815
1815
|
return "";
|
|
1816
1816
|
const f = [];
|
|
@@ -1829,14 +1829,14 @@ function bi(n) {
|
|
|
1829
1829
|
}), d.contents = f, d.id;
|
|
1830
1830
|
}
|
|
1831
1831
|
return {
|
|
1832
|
-
checkCanFindFormNode:
|
|
1832
|
+
checkCanFindFormNode: u,
|
|
1833
1833
|
checkCanOpenLayoutEditor: l,
|
|
1834
|
-
changeFormControlsByResponseLayoutConfig:
|
|
1834
|
+
changeFormControlsByResponseLayoutConfig: c,
|
|
1835
1835
|
getResonseFormLayoutConfig: a
|
|
1836
1836
|
};
|
|
1837
1837
|
}
|
|
1838
1838
|
var De = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1839
|
-
function
|
|
1839
|
+
function ut(n) {
|
|
1840
1840
|
throw new Error('Could not dynamically require "' + n + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1841
1841
|
}
|
|
1842
1842
|
var wi = { exports: {} };
|
|
@@ -1846,35 +1846,35 @@ var wi = { exports: {} };
|
|
|
1846
1846
|
})(function() {
|
|
1847
1847
|
return (/* @__PURE__ */ function() {
|
|
1848
1848
|
function t(o, i, r) {
|
|
1849
|
-
function a(
|
|
1850
|
-
if (!i[
|
|
1851
|
-
if (!o[
|
|
1852
|
-
var s = typeof
|
|
1853
|
-
if (!p && s) return s(
|
|
1854
|
-
if (
|
|
1855
|
-
var m = new Error("Cannot find module '" +
|
|
1849
|
+
function a(c, p) {
|
|
1850
|
+
if (!i[c]) {
|
|
1851
|
+
if (!o[c]) {
|
|
1852
|
+
var s = typeof ut == "function" && ut;
|
|
1853
|
+
if (!p && s) return s(c, !0);
|
|
1854
|
+
if (u) return u(c, !0);
|
|
1855
|
+
var m = new Error("Cannot find module '" + c + "'");
|
|
1856
1856
|
throw m.code = "MODULE_NOT_FOUND", m;
|
|
1857
1857
|
}
|
|
1858
|
-
var d = i[
|
|
1859
|
-
o[
|
|
1860
|
-
var v = o[
|
|
1858
|
+
var d = i[c] = { exports: {} };
|
|
1859
|
+
o[c][0].call(d.exports, function(f) {
|
|
1860
|
+
var v = o[c][1][f];
|
|
1861
1861
|
return a(v || f);
|
|
1862
1862
|
}, d, d.exports, t, o, i, r);
|
|
1863
1863
|
}
|
|
1864
|
-
return i[
|
|
1864
|
+
return i[c].exports;
|
|
1865
1865
|
}
|
|
1866
|
-
for (var
|
|
1866
|
+
for (var u = typeof ut == "function" && ut, l = 0; l < r.length; l++) a(r[l]);
|
|
1867
1867
|
return a;
|
|
1868
1868
|
}
|
|
1869
1869
|
return t;
|
|
1870
1870
|
}())({
|
|
1871
1871
|
1: [function(t, o, i) {
|
|
1872
|
-
var r = {}, a = "(?:^|\\s)",
|
|
1872
|
+
var r = {}, a = "(?:^|\\s)", u = "(?:\\s|$)";
|
|
1873
1873
|
function l(s) {
|
|
1874
1874
|
var m = r[s];
|
|
1875
|
-
return m ? m.lastIndex = 0 : r[s] = m = new RegExp(a + s +
|
|
1875
|
+
return m ? m.lastIndex = 0 : r[s] = m = new RegExp(a + s + u, "g"), m;
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function c(s, m) {
|
|
1878
1878
|
var d = s.className;
|
|
1879
1879
|
d.length ? l(m).test(d) || (s.className += " " + m) : s.className = m;
|
|
1880
1880
|
}
|
|
@@ -1882,18 +1882,18 @@ var wi = { exports: {} };
|
|
|
1882
1882
|
s.className = s.className.replace(l(m), " ").trim();
|
|
1883
1883
|
}
|
|
1884
1884
|
o.exports = {
|
|
1885
|
-
add:
|
|
1885
|
+
add: c,
|
|
1886
1886
|
rm: p
|
|
1887
1887
|
};
|
|
1888
1888
|
}, {}],
|
|
1889
1889
|
2: [function(t, o, i) {
|
|
1890
1890
|
(function(r) {
|
|
1891
|
-
var a = t("contra/emitter"),
|
|
1891
|
+
var a = t("contra/emitter"), u = t("crossvent"), l = t("./classes"), c = document, p = c.documentElement;
|
|
1892
1892
|
function s(C, E) {
|
|
1893
1893
|
var N = arguments.length;
|
|
1894
1894
|
N === 1 && Array.isArray(C) === !1 && (E = C, C = []);
|
|
1895
1895
|
var V, S, U, Z, O, I, G, R, te, ve = null, he, J, ie = !1, se = 0, ne, W = E || {};
|
|
1896
|
-
W.moves === void 0 && (W.moves = B), W.accepts === void 0 && (W.accepts = B), W.invalid === void 0 && (W.invalid = et), W.containers === void 0 && (W.containers = C || []), W.isContainer === void 0 && (W.isContainer = T), W.copy === void 0 && (W.copy = !1), W.copySortSource === void 0 && (W.copySortSource = !1), W.revertOnSpill === void 0 && (W.revertOnSpill = !1), W.removeOnSpill === void 0 && (W.removeOnSpill = !1), W.direction === void 0 && (W.direction = "vertical"), W.ignoreInputTextSelection === void 0 && (W.ignoreInputTextSelection = !0), W.mirrorContainer === void 0 && (W.mirrorContainer =
|
|
1896
|
+
W.moves === void 0 && (W.moves = B), W.accepts === void 0 && (W.accepts = B), W.invalid === void 0 && (W.invalid = et), W.containers === void 0 && (W.containers = C || []), W.isContainer === void 0 && (W.isContainer = T), W.copy === void 0 && (W.copy = !1), W.copySortSource === void 0 && (W.copySortSource = !1), W.revertOnSpill === void 0 && (W.revertOnSpill = !1), W.removeOnSpill === void 0 && (W.removeOnSpill = !1), W.direction === void 0 && (W.direction = "vertical"), W.ignoreInputTextSelection === void 0 && (W.ignoreInputTextSelection = !0), W.mirrorContainer === void 0 && (W.mirrorContainer = c.body);
|
|
1897
1897
|
var oe = a({
|
|
1898
1898
|
containers: W.containers,
|
|
1899
1899
|
start: Te,
|
|
@@ -1918,7 +1918,7 @@ var wi = { exports: {} };
|
|
|
1918
1918
|
}
|
|
1919
1919
|
function Ge(h) {
|
|
1920
1920
|
var $ = h ? "remove" : "add";
|
|
1921
|
-
|
|
1921
|
+
u[$](p, "selectstart", Xe), u[$](p, "click", Xe);
|
|
1922
1922
|
}
|
|
1923
1923
|
function Re() {
|
|
1924
1924
|
Ie(!0), Ne({});
|
|
@@ -1942,7 +1942,7 @@ var wi = { exports: {} };
|
|
|
1942
1942
|
}
|
|
1943
1943
|
if (!(h.clientX !== void 0 && Math.abs(h.clientX - Z) <= (W.slideFactorX || 0) && h.clientY !== void 0 && Math.abs(h.clientY - O) <= (W.slideFactorY || 0))) {
|
|
1944
1944
|
if (W.ignoreInputTextSelection) {
|
|
1945
|
-
var $ = q("clientX", h) || 0, j = q("clientY", h) || 0, _ =
|
|
1945
|
+
var $ = q("clientX", h) || 0, j = q("clientY", h) || 0, _ = c.elementFromPoint($, j);
|
|
1946
1946
|
if (g(_))
|
|
1947
1947
|
return;
|
|
1948
1948
|
}
|
|
@@ -1991,7 +1991,7 @@ var wi = { exports: {} };
|
|
|
1991
1991
|
}
|
|
1992
1992
|
function Ne(h) {
|
|
1993
1993
|
if (Be(), !!oe.dragging) {
|
|
1994
|
-
var $ = R || U, j = q("clientX", h) || 0, _ = q("clientY", h) || 0, K = y(V, j, _), ee =
|
|
1994
|
+
var $ = R || U, j = q("clientX", h) || 0, _ = q("clientY", h) || 0, K = y(V, j, _), ee = ce(K, j, _);
|
|
1995
1995
|
ee && (R && W.copySortSource || !R || ee !== S) ? Ye($, ee) : W.removeOnSpill ? Je() : k();
|
|
1996
1996
|
}
|
|
1997
1997
|
}
|
|
@@ -2019,7 +2019,7 @@ var wi = { exports: {} };
|
|
|
2019
2019
|
var j;
|
|
2020
2020
|
return $ !== void 0 ? j = $ : V ? j = G : j = x(R || U), h === S && j === I;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function ce(h, $, j) {
|
|
2023
2023
|
for (var _ = h; _ && !K(); )
|
|
2024
2024
|
_ = w(_);
|
|
2025
2025
|
return _;
|
|
@@ -2027,7 +2027,7 @@ var wi = { exports: {} };
|
|
|
2027
2027
|
var ee = je(_);
|
|
2028
2028
|
if (ee === !1)
|
|
2029
2029
|
return !1;
|
|
2030
|
-
var Ce = st(_, h), ge =
|
|
2030
|
+
var Ce = st(_, h), ge = ct(_, Ce, $, j), ye = le(_, ge);
|
|
2031
2031
|
return ye ? !0 : W.accepts(U, _, S, ge);
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
@@ -2037,7 +2037,7 @@ var wi = { exports: {} };
|
|
|
2037
2037
|
h.preventDefault();
|
|
2038
2038
|
var $ = q("clientX", h) || 0, j = q("clientY", h) || 0;
|
|
2039
2039
|
V.style.left = $ - 2 + "px", V.style.top = j - 2 + "px";
|
|
2040
|
-
var _ = R || U, K = y(V, $, j), ee =
|
|
2040
|
+
var _ = R || U, K = y(V, $, j), ee = ce(K, $, j), Ce = ee !== null && ee !== ve;
|
|
2041
2041
|
(Ce || ee === null) && (be(), ve = ee, Me()), Vt(K, j);
|
|
2042
2042
|
var ge = w(_);
|
|
2043
2043
|
if (ee === S && R && !W.copySortSource) {
|
|
@@ -2046,7 +2046,7 @@ var wi = { exports: {} };
|
|
|
2046
2046
|
}
|
|
2047
2047
|
var ye, Ee = st(ee, K);
|
|
2048
2048
|
if (ie = tt(Ee, ee), Ee !== null)
|
|
2049
|
-
ye =
|
|
2049
|
+
ye = ct(ee, Ee, $, j);
|
|
2050
2050
|
else if (W.revertOnSpill === !0 && !R)
|
|
2051
2051
|
ye = I, ee = S;
|
|
2052
2052
|
else {
|
|
@@ -2054,14 +2054,14 @@ var wi = { exports: {} };
|
|
|
2054
2054
|
return;
|
|
2055
2055
|
}
|
|
2056
2056
|
J.style.display = "block", xt(ye, _, Ce), ye ? It(Ee, ye) : Pt(ee);
|
|
2057
|
-
function
|
|
2057
|
+
function ue(pe) {
|
|
2058
2058
|
oe.emit(pe, _, ve, S);
|
|
2059
2059
|
}
|
|
2060
2060
|
function Me() {
|
|
2061
|
-
Ce &&
|
|
2061
|
+
Ce && ue("over");
|
|
2062
2062
|
}
|
|
2063
2063
|
function be() {
|
|
2064
|
-
ve &&
|
|
2064
|
+
ve && ue("out");
|
|
2065
2065
|
}
|
|
2066
2066
|
}
|
|
2067
2067
|
function xt(h, $, j) {
|
|
@@ -2165,26 +2165,26 @@ var wi = { exports: {} };
|
|
|
2165
2165
|
ne.scrollBy(0, ee), j && ne.contains(j) && (se = se + ee);
|
|
2166
2166
|
}
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function ct(h, $, j, _) {
|
|
2169
2169
|
var K = W.direction === "horizontal", ee = W.direction === "mixed", Ce = $ !== h ? ye() : ge();
|
|
2170
2170
|
return Ce;
|
|
2171
2171
|
function ge() {
|
|
2172
|
-
var
|
|
2173
|
-
for (Me = 0; Me <
|
|
2172
|
+
var ue = h.children.length, Me, be, pe;
|
|
2173
|
+
for (Me = 0; Me < ue; Me++)
|
|
2174
2174
|
if (be = h.children[Me], pe = be.getBoundingClientRect(), K && pe.left + pe.width / 2 > j || !ee && !K && pe.top + pe.height / 2 > _ || ee && pe.left + pe.width > j && pe.top + pe.height > _)
|
|
2175
2175
|
return be;
|
|
2176
2176
|
return null;
|
|
2177
2177
|
}
|
|
2178
2178
|
function ye() {
|
|
2179
|
-
var
|
|
2179
|
+
var ue = $.getBoundingClientRect();
|
|
2180
2180
|
if (ee) {
|
|
2181
|
-
var Me = _ -
|
|
2181
|
+
var Me = _ - ue.top, be = j - ue.left, pe = ue.bottom - _, nt = ue.right - j, ot = Math.min(be, nt, Me, pe), it;
|
|
2182
2182
|
return ie ? it = nt < be : it = pe === ot || nt === ot || be === ot, Ee(it);
|
|
2183
2183
|
}
|
|
2184
|
-
return Ee(K ? j >
|
|
2184
|
+
return Ee(K ? j > ue.left + z(ue) / 2 : _ > ue.top + L(ue) / 2);
|
|
2185
2185
|
}
|
|
2186
|
-
function Ee(
|
|
2187
|
-
return
|
|
2186
|
+
function Ee(ue) {
|
|
2187
|
+
return ue ? x($) : $;
|
|
2188
2188
|
}
|
|
2189
2189
|
}
|
|
2190
2190
|
function Ot(h, $) {
|
|
@@ -2224,7 +2224,7 @@ var wi = { exports: {} };
|
|
|
2224
2224
|
mousedown: "MSPointerDown",
|
|
2225
2225
|
mousemove: "MSPointerMove"
|
|
2226
2226
|
};
|
|
2227
|
-
r.navigator.pointerEnabled ?
|
|
2227
|
+
r.navigator.pointerEnabled ? u[E](C, U[N], V) : r.navigator.msPointerEnabled ? u[E](C, Z[N], V) : (u[E](C, S[N], V), u[E](C, N, V));
|
|
2228
2228
|
}
|
|
2229
2229
|
function v(C) {
|
|
2230
2230
|
if (C.touches !== void 0)
|
|
@@ -2240,7 +2240,7 @@ var wi = { exports: {} };
|
|
|
2240
2240
|
function y(C, E, N) {
|
|
2241
2241
|
C = C || {};
|
|
2242
2242
|
var V = C.className || "", S;
|
|
2243
|
-
return C.className += " gu-hide", S =
|
|
2243
|
+
return C.className += " gu-hide", S = c.elementFromPoint(E, N), C.className = V, S;
|
|
2244
2244
|
}
|
|
2245
2245
|
function T() {
|
|
2246
2246
|
return !1;
|
|
@@ -2255,7 +2255,7 @@ var wi = { exports: {} };
|
|
|
2255
2255
|
return C.height || C.bottom - C.top;
|
|
2256
2256
|
}
|
|
2257
2257
|
function w(C) {
|
|
2258
|
-
return C.parentNode ===
|
|
2258
|
+
return C.parentNode === c ? null : C.parentNode;
|
|
2259
2259
|
}
|
|
2260
2260
|
function g(C) {
|
|
2261
2261
|
return C.tagName === "INPUT" || C.tagName === "TEXTAREA" || C.tagName === "SELECT" || F(C);
|
|
@@ -2289,22 +2289,22 @@ var wi = { exports: {} };
|
|
|
2289
2289
|
}).call(this, typeof De < "u" ? De : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2290
2290
|
}, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
|
|
2291
2291
|
3: [function(t, o, i) {
|
|
2292
|
-
o.exports = function(a,
|
|
2293
|
-
return Array.prototype.slice.call(a,
|
|
2292
|
+
o.exports = function(a, u) {
|
|
2293
|
+
return Array.prototype.slice.call(a, u);
|
|
2294
2294
|
};
|
|
2295
2295
|
}, {}],
|
|
2296
2296
|
4: [function(t, o, i) {
|
|
2297
2297
|
var r = t("ticky");
|
|
2298
|
-
o.exports = function(
|
|
2299
|
-
|
|
2300
|
-
|
|
2298
|
+
o.exports = function(u, l, c) {
|
|
2299
|
+
u && r(function() {
|
|
2300
|
+
u.apply(c || null, l || []);
|
|
2301
2301
|
});
|
|
2302
2302
|
};
|
|
2303
2303
|
}, { ticky: 10 }],
|
|
2304
2304
|
5: [function(t, o, i) {
|
|
2305
2305
|
var r = t("atoa"), a = t("./debounce");
|
|
2306
|
-
o.exports = function(l,
|
|
2307
|
-
var p =
|
|
2306
|
+
o.exports = function(l, c) {
|
|
2307
|
+
var p = c || {}, s = {};
|
|
2308
2308
|
return l === void 0 && (l = {}), l.on = function(m, d) {
|
|
2309
2309
|
return s[m] ? s[m].push(d) : s[m] = [d], l;
|
|
2310
2310
|
}, l.once = function(m, d) {
|
|
@@ -2340,9 +2340,9 @@ var wi = { exports: {} };
|
|
|
2340
2340
|
}, { "./debounce": 4, atoa: 3 }],
|
|
2341
2341
|
6: [function(t, o, i) {
|
|
2342
2342
|
(function(r) {
|
|
2343
|
-
var a = t("custom-event"),
|
|
2344
|
-
r.addEventListener || (
|
|
2345
|
-
add:
|
|
2343
|
+
var a = t("custom-event"), u = t("./eventmap"), l = r.document, c = m, p = f, s = [];
|
|
2344
|
+
r.addEventListener || (c = d, p = v), o.exports = {
|
|
2345
|
+
add: c,
|
|
2346
2346
|
remove: p,
|
|
2347
2347
|
fabricate: y
|
|
2348
2348
|
};
|
|
@@ -2361,7 +2361,7 @@ var wi = { exports: {} };
|
|
|
2361
2361
|
return w.detachEvent("on" + g, x);
|
|
2362
2362
|
}
|
|
2363
2363
|
function y(w, g, F) {
|
|
2364
|
-
var x =
|
|
2364
|
+
var x = u.indexOf(g) === -1 ? q() : P();
|
|
2365
2365
|
w.dispatchEvent ? w.dispatchEvent(x) : w.fireEvent("on" + g, x);
|
|
2366
2366
|
function P() {
|
|
2367
2367
|
var C;
|
|
@@ -2407,16 +2407,16 @@ var wi = { exports: {} };
|
|
|
2407
2407
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
2408
2408
|
7: [function(t, o, i) {
|
|
2409
2409
|
(function(r) {
|
|
2410
|
-
var a = [],
|
|
2411
|
-
for (
|
|
2412
|
-
l.test(
|
|
2410
|
+
var a = [], u = "", l = /^on/;
|
|
2411
|
+
for (u in r)
|
|
2412
|
+
l.test(u) && a.push(u.slice(2));
|
|
2413
2413
|
o.exports = a;
|
|
2414
2414
|
}).call(this, typeof De < "u" ? De : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2415
2415
|
}, {}],
|
|
2416
2416
|
8: [function(t, o, i) {
|
|
2417
2417
|
(function(r) {
|
|
2418
2418
|
var a = r.CustomEvent;
|
|
2419
|
-
function
|
|
2419
|
+
function u() {
|
|
2420
2420
|
try {
|
|
2421
2421
|
var l = new a("cat", { detail: { foo: "bar" } });
|
|
2422
2422
|
return l.type === "cat" && l.detail.foo === "bar";
|
|
@@ -2424,27 +2424,27 @@ var wi = { exports: {} };
|
|
|
2424
2424
|
}
|
|
2425
2425
|
return !1;
|
|
2426
2426
|
}
|
|
2427
|
-
o.exports =
|
|
2427
|
+
o.exports = u() ? a : (
|
|
2428
2428
|
// IE >= 9
|
|
2429
|
-
typeof document < "u" && typeof document.createEvent == "function" ? function(
|
|
2429
|
+
typeof document < "u" && typeof document.createEvent == "function" ? function(c, p) {
|
|
2430
2430
|
var s = document.createEvent("CustomEvent");
|
|
2431
|
-
return p ? s.initCustomEvent(
|
|
2431
|
+
return p ? s.initCustomEvent(c, p.bubbles, p.cancelable, p.detail) : s.initCustomEvent(c, !1, !1, void 0), s;
|
|
2432
2432
|
} : (
|
|
2433
2433
|
// IE <= 8
|
|
2434
|
-
function(
|
|
2434
|
+
function(c, p) {
|
|
2435
2435
|
var s = document.createEventObject();
|
|
2436
|
-
return s.type =
|
|
2436
|
+
return s.type = c, p ? (s.bubbles = !!p.bubbles, s.cancelable = !!p.cancelable, s.detail = p.detail) : (s.bubbles = !1, s.cancelable = !1, s.detail = void 0), s;
|
|
2437
2437
|
}
|
|
2438
2438
|
)
|
|
2439
2439
|
);
|
|
2440
2440
|
}).call(this, typeof De < "u" ? De : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2441
2441
|
}, {}],
|
|
2442
2442
|
9: [function(t, o, i) {
|
|
2443
|
-
var r = o.exports = {}, a,
|
|
2443
|
+
var r = o.exports = {}, a, u;
|
|
2444
2444
|
function l() {
|
|
2445
2445
|
throw new Error("setTimeout has not been defined");
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2447
|
+
function c() {
|
|
2448
2448
|
throw new Error("clearTimeout has not been defined");
|
|
2449
2449
|
}
|
|
2450
2450
|
(function() {
|
|
@@ -2454,9 +2454,9 @@ var wi = { exports: {} };
|
|
|
2454
2454
|
a = l;
|
|
2455
2455
|
}
|
|
2456
2456
|
try {
|
|
2457
|
-
typeof clearTimeout == "function" ?
|
|
2457
|
+
typeof clearTimeout == "function" ? u = clearTimeout : u = c;
|
|
2458
2458
|
} catch {
|
|
2459
|
-
|
|
2459
|
+
u = c;
|
|
2460
2460
|
}
|
|
2461
2461
|
})();
|
|
2462
2462
|
function p(L) {
|
|
@@ -2475,17 +2475,17 @@ var wi = { exports: {} };
|
|
|
2475
2475
|
}
|
|
2476
2476
|
}
|
|
2477
2477
|
function s(L) {
|
|
2478
|
-
if (
|
|
2478
|
+
if (u === clearTimeout)
|
|
2479
2479
|
return clearTimeout(L);
|
|
2480
|
-
if ((
|
|
2481
|
-
return
|
|
2480
|
+
if ((u === c || !u) && clearTimeout)
|
|
2481
|
+
return u = clearTimeout, clearTimeout(L);
|
|
2482
2482
|
try {
|
|
2483
|
-
return
|
|
2483
|
+
return u(L);
|
|
2484
2484
|
} catch {
|
|
2485
2485
|
try {
|
|
2486
|
-
return
|
|
2486
|
+
return u.call(null, L);
|
|
2487
2487
|
} catch {
|
|
2488
|
-
return
|
|
2488
|
+
return u.call(this, L);
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
@@ -2534,17 +2534,17 @@ var wi = { exports: {} };
|
|
|
2534
2534
|
}, {}],
|
|
2535
2535
|
10: [function(t, o, i) {
|
|
2536
2536
|
(function(r) {
|
|
2537
|
-
var a = typeof r == "function",
|
|
2538
|
-
a ?
|
|
2537
|
+
var a = typeof r == "function", u;
|
|
2538
|
+
a ? u = function(l) {
|
|
2539
2539
|
r(l);
|
|
2540
|
-
} :
|
|
2540
|
+
} : u = function(l) {
|
|
2541
2541
|
setTimeout(l, 0);
|
|
2542
|
-
}, o.exports =
|
|
2542
|
+
}, o.exports = u;
|
|
2543
2543
|
}).call(this, t("timers").setImmediate);
|
|
2544
2544
|
}, { timers: 11 }],
|
|
2545
2545
|
11: [function(t, o, i) {
|
|
2546
2546
|
(function(r, a) {
|
|
2547
|
-
var
|
|
2547
|
+
var u = t("process/browser.js").nextTick, l = Function.prototype.apply, c = Array.prototype.slice, p = {}, s = 0;
|
|
2548
2548
|
i.setTimeout = function() {
|
|
2549
2549
|
return new m(l.call(setTimeout, window, arguments), clearTimeout);
|
|
2550
2550
|
}, i.setInterval = function() {
|
|
@@ -2569,8 +2569,8 @@ var wi = { exports: {} };
|
|
|
2569
2569
|
d._onTimeout && d._onTimeout();
|
|
2570
2570
|
}, f));
|
|
2571
2571
|
}, i.setImmediate = typeof r == "function" ? r : function(d) {
|
|
2572
|
-
var f = s++, v = arguments.length < 2 ? !1 :
|
|
2573
|
-
return p[f] = !0,
|
|
2572
|
+
var f = s++, v = arguments.length < 2 ? !1 : c.call(arguments, 1);
|
|
2573
|
+
return p[f] = !0, u(function() {
|
|
2574
2574
|
p[f] && (v ? d.apply(null, v) : d.call(null), i.clearImmediate(f));
|
|
2575
2575
|
}), f;
|
|
2576
2576
|
}, i.clearImmediate = typeof a == "function" ? a : function(d) {
|
|
@@ -2606,13 +2606,13 @@ const Ci = {
|
|
|
2606
2606
|
const {
|
|
2607
2607
|
locale: t,
|
|
2608
2608
|
t: o
|
|
2609
|
-
} = Lt(), i = b(n.animate), r = "fadeOut", a = A(() => n.options),
|
|
2609
|
+
} = Lt(), i = b(n.animate), r = "fadeOut", a = A(() => n.options), u = b(!1), l = A(() => a.value.title && a.value.message), c = A(() => !a.value.title && a.value.message), p = A(() => {
|
|
2610
2610
|
const L = {
|
|
2611
|
-
animated:
|
|
2611
|
+
animated: u.value,
|
|
2612
2612
|
toast: !0,
|
|
2613
2613
|
"toast--only-content": !l.value
|
|
2614
2614
|
};
|
|
2615
|
-
return L[n.animate] = !1, L[r] =
|
|
2615
|
+
return L[n.animate] = !1, L[r] = u.value, L["toasty-type-" + a.value.type] = !0, a.value.theme && (L[a.value.theme] = !0), L;
|
|
2616
2616
|
}), s = A(() => {
|
|
2617
2617
|
const g = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, F = {
|
|
2618
2618
|
"f-icon": !0
|
|
@@ -2623,7 +2623,7 @@ const Ci = {
|
|
|
2623
2623
|
overflowWrap: "break-word"
|
|
2624
2624
|
} : {});
|
|
2625
2625
|
function y(L) {
|
|
2626
|
-
L.stopPropagation(), L.preventDefault(),
|
|
2626
|
+
L.stopPropagation(), L.preventDefault(), u.value = !1, setTimeout(() => {
|
|
2627
2627
|
e.emit("close", a.value);
|
|
2628
2628
|
}, 200);
|
|
2629
2629
|
}
|
|
@@ -2668,7 +2668,7 @@ const Ci = {
|
|
|
2668
2668
|
class: "toast-msg",
|
|
2669
2669
|
innerHTML: a.value.message,
|
|
2670
2670
|
style: v.value
|
|
2671
|
-
}, null), f.value && z()]),
|
|
2671
|
+
}, null), f.value && z()]), c.value && (a.value.buttons ? M("div", {
|
|
2672
2672
|
class: "toast-title-btns-wrapper d-flex"
|
|
2673
2673
|
}, [M("h5", {
|
|
2674
2674
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -2694,15 +2694,15 @@ const Ci = {
|
|
|
2694
2694
|
right: 12,
|
|
2695
2695
|
top: 20,
|
|
2696
2696
|
bottom: 12
|
|
2697
|
-
}, i = b(), r = b(n.options), a = b(n.showCloseButton),
|
|
2697
|
+
}, i = b(), r = b(n.options), a = b(n.showCloseButton), u = A(() => n.position || "bottom-right"), l = A(() => n.timeout != null ? n.timeout : 3e3), c = A(() => {
|
|
2698
2698
|
const m = n.bottom ? n.bottom : o.bottom, d = n.top ? n.top : o.top, f = {
|
|
2699
2699
|
transition: "all 0.2s ease",
|
|
2700
|
-
left:
|
|
2701
|
-
right:
|
|
2702
|
-
top:
|
|
2703
|
-
bottom:
|
|
2700
|
+
left: u.value.indexOf("left") > -1 ? `${n.left ? n.left : o.left}px` : "",
|
|
2701
|
+
right: u.value.indexOf("right") > -1 ? `${n.right ? n.right : o.right}px` : "",
|
|
2702
|
+
top: u.value.indexOf("top") > -1 ? `${d}px` : "",
|
|
2703
|
+
bottom: u.value.indexOf("bottom") > -1 ? `${m}px` : ""
|
|
2704
2704
|
};
|
|
2705
|
-
return
|
|
2705
|
+
return u.value.indexOf("center") > -1 && (f.left = "50%", f.marginLeft = "calc(-24rem / 2)", u.value === "center-center" && (f.top = "50%", f.transform = "translate(-50%, -50%)")), f;
|
|
2706
2706
|
});
|
|
2707
2707
|
function p(m) {
|
|
2708
2708
|
e.emit("close");
|
|
@@ -2712,14 +2712,14 @@ const Ci = {
|
|
|
2712
2712
|
}, l.value), e.expose({
|
|
2713
2713
|
closeToast: p,
|
|
2714
2714
|
container: i,
|
|
2715
|
-
notifyPosition:
|
|
2715
|
+
notifyPosition: u
|
|
2716
2716
|
});
|
|
2717
2717
|
function s(m, d) {
|
|
2718
2718
|
p();
|
|
2719
2719
|
}
|
|
2720
2720
|
return () => M("div", {
|
|
2721
2721
|
class: t.value,
|
|
2722
|
-
style:
|
|
2722
|
+
style: c.value,
|
|
2723
2723
|
ref: i
|
|
2724
2724
|
}, [M($t, {
|
|
2725
2725
|
options: r.value,
|
|
@@ -2752,11 +2752,11 @@ class Si {
|
|
|
2752
2752
|
r.style.display = "contents";
|
|
2753
2753
|
const a = Yt({
|
|
2754
2754
|
setup() {
|
|
2755
|
-
var
|
|
2756
|
-
const
|
|
2755
|
+
var c;
|
|
2756
|
+
const u = b();
|
|
2757
2757
|
function l() {
|
|
2758
|
-
|
|
2759
|
-
t.updateNotifyPositionForClose(i,
|
|
2758
|
+
u.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
2759
|
+
t.updateNotifyPositionForClose(i, u), a.unmount();
|
|
2760
2760
|
}, 220);
|
|
2761
2761
|
}
|
|
2762
2762
|
if (i.position.indexOf("top") > -1) {
|
|
@@ -2766,17 +2766,17 @@ class Si {
|
|
|
2766
2766
|
i.top = m.bottom;
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
2769
|
-
return i.safeHtml && ((
|
|
2769
|
+
return i.safeHtml && ((c = i.options) != null && c.message) && (i.options.message = t.escapeAllHtml(i.options.message)), wt(() => {
|
|
2770
2770
|
document.body.removeChild(r);
|
|
2771
2771
|
}), Ze(() => {
|
|
2772
|
-
t.updateNotifyPositionForCreate(i,
|
|
2772
|
+
t.updateNotifyPositionForCreate(i, u);
|
|
2773
2773
|
}), () => M(Jt, {
|
|
2774
2774
|
mode: "out-in",
|
|
2775
2775
|
name: "fade",
|
|
2776
2776
|
appear: !0
|
|
2777
2777
|
}, {
|
|
2778
2778
|
default: () => [M(pt, Dt({
|
|
2779
|
-
ref:
|
|
2779
|
+
ref: u
|
|
2780
2780
|
}, i, {
|
|
2781
2781
|
onClose: l
|
|
2782
2782
|
}), null)]
|
|
@@ -2812,16 +2812,16 @@ class Si {
|
|
|
2812
2812
|
return this.createNotifyInstance(e);
|
|
2813
2813
|
}
|
|
2814
2814
|
buildNotifyProps(e, t) {
|
|
2815
|
-
let o = "", i = "", r, a,
|
|
2816
|
-
typeof t == "string" ? o = t : t && (o = t.message || "", i = t.title || "", a = t.position || null,
|
|
2817
|
-
const
|
|
2815
|
+
let o = "", i = "", r, a, u;
|
|
2816
|
+
typeof t == "string" ? o = t : t && (o = t.message || "", i = t.title || "", a = t.position || null, u = t.showCloseButton != null ? t.showCloseButton : null, r = t.timeout != null ? t.timeout : null);
|
|
2817
|
+
const c = {
|
|
2818
2818
|
options: {
|
|
2819
2819
|
type: e,
|
|
2820
2820
|
message: o,
|
|
2821
2821
|
title: i
|
|
2822
2822
|
}
|
|
2823
2823
|
};
|
|
2824
|
-
return a != null && (
|
|
2824
|
+
return a != null && (c.position = a), u != null && (c.showCloseButton = u), r != null && (c.timeout = r), c;
|
|
2825
2825
|
}
|
|
2826
2826
|
info(e) {
|
|
2827
2827
|
const t = this.buildNotifyProps("info", e);
|
|
@@ -3004,7 +3004,7 @@ const Ei = {
|
|
|
3004
3004
|
}
|
|
3005
3005
|
}
|
|
3006
3006
|
};
|
|
3007
|
-
function Mi(n, e, t, o, i, r, a,
|
|
3007
|
+
function Mi(n, e, t, o, i, r, a, u, l, c, p, s, m, d, f, v, y) {
|
|
3008
3008
|
const {
|
|
3009
3009
|
calculateCellPositionInRow: T
|
|
3010
3010
|
} = r, {
|
|
@@ -3017,7 +3017,7 @@ function Mi(n, e, t, o, i, r, a, c, l, u, p, s, m, d, f, v, y) {
|
|
|
3017
3017
|
rightFixedGridDataStyle: F
|
|
3018
3018
|
} = d, {
|
|
3019
3019
|
renderDataRow: x
|
|
3020
|
-
} = Wn(n, e, B, y,
|
|
3020
|
+
} = Wn(n, e, B, y, u, l, c, p, s, m, d, f, v), P = [x];
|
|
3021
3021
|
function q(S, U) {
|
|
3022
3022
|
const Z = T(S);
|
|
3023
3023
|
return y.value.filter((O) => O.visible !== !1).map((O, I) => P[O.type](O, Z, U, I));
|
|
@@ -3064,8 +3064,8 @@ const Fi = /* @__PURE__ */ _e({
|
|
|
3064
3064
|
setup(n, e) {
|
|
3065
3065
|
var zt, Ut;
|
|
3066
3066
|
const o = ((zt = n.rowOption) == null ? void 0 : zt.height) || 28, i = b(20), r = b(n.columns), a = _n(n), {
|
|
3067
|
-
idField:
|
|
3068
|
-
} = a, l = b(),
|
|
3067
|
+
idField: u
|
|
3068
|
+
} = a, l = b(), c = b(), p = b(), s = b(), m = b(), d = b([]), f = b(!1), v = b(((Ut = n.rowOption) == null ? void 0 : Ut.wrapContent) || !1), y = Gn(n, a), T = Xn(n, e), B = Yn(n), {
|
|
3069
3069
|
collapseField: z
|
|
3070
3070
|
} = B, {
|
|
3071
3071
|
showLoading: L,
|
|
@@ -3094,7 +3094,7 @@ const Fi = /* @__PURE__ */ _e({
|
|
|
3094
3094
|
updateColumnRenderContext: J
|
|
3095
3095
|
} = R;
|
|
3096
3096
|
ve(g, te);
|
|
3097
|
-
const ie = ao(n, he), se = lo(n, e, x, a), ne = so(n, e, a, se, d), W =
|
|
3097
|
+
const ie = ao(n, he), se = lo(n, e, x, a), ne = so(n, e, a, se, d), W = co(n), oe = uo(n, ne, W), je = fo(n, g, ne, B, a, W, oe), Ie = po(n, r, g, N, 0, je), {
|
|
3098
3098
|
getVisualData: Se
|
|
3099
3099
|
} = Ie, Ge = mo(n, he), Re = vo(n, x), {
|
|
3100
3100
|
sidebarWidth: Xe
|
|
@@ -3105,9 +3105,9 @@ const Fi = /* @__PURE__ */ _e({
|
|
|
3105
3105
|
viewPortWidth: Te,
|
|
3106
3106
|
resetScroll: Oe,
|
|
3107
3107
|
updateVisibleRowsOnLatestVisibleScope: et
|
|
3108
|
-
} = ae, He = go(n, he,
|
|
3108
|
+
} = ae, He = go(n, he, c, Te, ie), {
|
|
3109
3109
|
calculateColumnsSize: Be
|
|
3110
|
-
} = He, Ne = yo(), Ye = bo(
|
|
3110
|
+
} = He, Ne = yo(), Ye = bo(c, m, g, Ne, ae), Je = wo(n, e, R, g, ie, y, ae), k = A(() => {
|
|
3111
3111
|
const H = {
|
|
3112
3112
|
"fv-grid": !0,
|
|
3113
3113
|
"fv-grid-bordered": n.showBorder,
|
|
@@ -3122,32 +3122,32 @@ const Fi = /* @__PURE__ */ _e({
|
|
|
3122
3122
|
})), {
|
|
3123
3123
|
renderDataArea: le
|
|
3124
3124
|
} = Mi(n, e, p, s, m, Ge, R, g, ne, B, se, x, C, ae, Ie, W, d), {
|
|
3125
|
-
renderGridHeader:
|
|
3125
|
+
renderGridHeader: ce,
|
|
3126
3126
|
renderGridColumnResizeOverlay: ke,
|
|
3127
3127
|
shouldShowHeader: xt
|
|
3128
|
-
} = Co(n, e,
|
|
3128
|
+
} = Co(n, e, c, s, m, R, g, Je, Ye, T, Ne, He, ie, x, Re, te, ae, Te, d), {
|
|
3129
3129
|
renderDataGridSidebar: St
|
|
3130
3130
|
} = xo(n, se, x, Re, ae), {
|
|
3131
3131
|
renderDisableMask: Tt
|
|
3132
3132
|
} = So(), {
|
|
3133
3133
|
renderHorizontalScrollbar: Et
|
|
3134
|
-
} = To(n,
|
|
3134
|
+
} = To(n, c, ae), {
|
|
3135
3135
|
renderVerticalScrollbar: Mt
|
|
3136
|
-
} = Eo(n,
|
|
3136
|
+
} = Eo(n, c, ae);
|
|
3137
3137
|
function Ft() {
|
|
3138
3138
|
var H, Y, de;
|
|
3139
|
-
if (
|
|
3140
|
-
const me = Math.ceil(
|
|
3141
|
-
me > i.value && (i.value = me, et()), Ve.value = ((Y = p.value) == null ? void 0 : Y.clientHeight) || 0, Pe.value = ((de =
|
|
3139
|
+
if (c.value && c.value.clientHeight > 0 && ((H = c.value) == null ? void 0 : H.clientWidth) > 0) {
|
|
3140
|
+
const me = Math.ceil(c.value.clientHeight / o);
|
|
3141
|
+
me > i.value && (i.value = me, et()), Ve.value = ((Y = p.value) == null ? void 0 : Y.clientHeight) || 0, Pe.value = ((de = c.value) == null ? void 0 : de.clientWidth) || 0, Be();
|
|
3142
3142
|
}
|
|
3143
3143
|
}
|
|
3144
3144
|
Ze(() => {
|
|
3145
|
-
|
|
3146
|
-
|
|
3145
|
+
c.value && (i.value = Math.max(Math.ceil(c.value.clientHeight / o), i.value), d.value = Se(0, N.value + 0 - 1), qn(c.value, Ft), Be(), at(() => {
|
|
3146
|
+
c.value && (Pe.value = c.value.clientWidth), p.value && (Te.value = p.value.clientWidth, Ve.value = p.value.clientHeight);
|
|
3147
3147
|
})), L.value && w();
|
|
3148
3148
|
}), wt(() => {
|
|
3149
3149
|
}), xe(Te, () => {
|
|
3150
|
-
|
|
3150
|
+
c.value && Be();
|
|
3151
3151
|
});
|
|
3152
3152
|
function Bt(H) {
|
|
3153
3153
|
g.collapseTo(H), g.reOrderVisibleIndex(), Oe();
|
|
@@ -3168,14 +3168,14 @@ const Fi = /* @__PURE__ */ _e({
|
|
|
3168
3168
|
g.insertNewChildDataItem(H), d.value = Se(0, N.value + 0 - 1);
|
|
3169
3169
|
}
|
|
3170
3170
|
function Pt(H, Y) {
|
|
3171
|
-
const de = d.value.find((we) => we.raw[
|
|
3171
|
+
const de = d.value.find((we) => we.raw[u.value] === Y), me = de ? de.dataIndex - 1 : -1;
|
|
3172
3172
|
g.insertNewChildDataItems(H, me);
|
|
3173
3173
|
}
|
|
3174
3174
|
function Vt() {
|
|
3175
3175
|
const H = tt(), Y = C.getNextSelectableHierarchyItemId(H);
|
|
3176
3176
|
g.removeHierarchyDataItem(H), d.value = Se(0, N.value + 0 - 1), Y && x.selectItemById(Y);
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function ct(H) {
|
|
3179
3179
|
ne.onEditingRow(H);
|
|
3180
3180
|
}
|
|
3181
3181
|
function Ot(H) {
|
|
@@ -3213,7 +3213,7 @@ const Fi = /* @__PURE__ */ _e({
|
|
|
3213
3213
|
x.clearSelection();
|
|
3214
3214
|
}
|
|
3215
3215
|
const Ee = A(() => !d.value || !d.value.length), {
|
|
3216
|
-
renderEmpty:
|
|
3216
|
+
renderEmpty: ue
|
|
3217
3217
|
} = Mo(n, e);
|
|
3218
3218
|
function Me() {
|
|
3219
3219
|
return x.getSelectionRow();
|
|
@@ -3225,7 +3225,7 @@ const Fi = /* @__PURE__ */ _e({
|
|
|
3225
3225
|
return x.currentSelectedDataId.value;
|
|
3226
3226
|
}
|
|
3227
3227
|
function nt(H, Y, de) {
|
|
3228
|
-
const me = F.value.find((we) => we[
|
|
3228
|
+
const me = F.value.find((we) => we[u.value] === H);
|
|
3229
3229
|
if (me) {
|
|
3230
3230
|
if (Object.keys(me).forEach((fe) => {
|
|
3231
3231
|
Object.prototype.hasOwnProperty.call(Y, fe) && (me[fe] = Y[fe]);
|
|
@@ -3238,7 +3238,7 @@ const Fi = /* @__PURE__ */ _e({
|
|
|
3238
3238
|
} = de;
|
|
3239
3239
|
fe && !$e(Y[fe]) && (me.__fv_collapse__ = Y[fe]), ze && !$e(Y[ze]) && (me.__fv_checked__ = Y[ze]), Ae && !$e(Y[Ae]) && (me.__fv_disabled__ = Y[Ae]), Ue && !$e(Y[Ue]) && (me.__fv_visible__ = Y[Ue]);
|
|
3240
3240
|
}
|
|
3241
|
-
const we = d.value.find((fe) => fe.raw[
|
|
3241
|
+
const we = d.value.find((fe) => fe.raw[u.value] === H), qt = d.value.findIndex((fe) => fe.raw[u.value] === H);
|
|
3242
3242
|
if (we) {
|
|
3243
3243
|
if (we.raw = me, Object.keys(we.data).forEach((fe) => {
|
|
3244
3244
|
we.data[fe].updateData(me);
|
|
@@ -3259,7 +3259,7 @@ const Fi = /* @__PURE__ */ _e({
|
|
|
3259
3259
|
return Object.prototype.hasOwnProperty.call(H, "raw") ? g.hasRealChildren(H.raw) : g.hasRealChildren(H);
|
|
3260
3260
|
}
|
|
3261
3261
|
function it(H) {
|
|
3262
|
-
const Y = g.dataView.value.find((de) => de[
|
|
3262
|
+
const Y = g.dataView.value.find((de) => de[u.value] === H);
|
|
3263
3263
|
return Y ? Y[z.value] : "";
|
|
3264
3264
|
}
|
|
3265
3265
|
function gn() {
|
|
@@ -3286,7 +3286,7 @@ const Fi = /* @__PURE__ */ _e({
|
|
|
3286
3286
|
collapseTo: Bt,
|
|
3287
3287
|
expandTo: st,
|
|
3288
3288
|
removeDataItem: Vt,
|
|
3289
|
-
editDataItem:
|
|
3289
|
+
editDataItem: ct,
|
|
3290
3290
|
acceptDataItem: Ot,
|
|
3291
3291
|
cancelDataItem: h,
|
|
3292
3292
|
updateColumns: $,
|
|
@@ -3313,9 +3313,9 @@ const Fi = /* @__PURE__ */ _e({
|
|
|
3313
3313
|
}), xn = A(() => ({
|
|
3314
3314
|
...U.value,
|
|
3315
3315
|
borderRadius: "5px"
|
|
3316
|
-
}))
|
|
3317
|
-
|
|
3318
|
-
|
|
3316
|
+
}));
|
|
3317
|
+
Fo(n, e, g, ae, V, x);
|
|
3318
|
+
const Sn = A(() => ({
|
|
3319
3319
|
"d-flex": !0,
|
|
3320
3320
|
"justify-content-between": S.value && P.value,
|
|
3321
3321
|
"justify-content-end": S.value && !P.value,
|
|
@@ -3331,13 +3331,13 @@ const Fi = /* @__PURE__ */ _e({
|
|
|
3331
3331
|
class: k.value,
|
|
3332
3332
|
style: xn.value,
|
|
3333
3333
|
onWheel: Ke
|
|
3334
|
-
}, [
|
|
3335
|
-
ref:
|
|
3334
|
+
}, [c.value && xt.value && ce(), M("div", {
|
|
3335
|
+
ref: c,
|
|
3336
3336
|
class: Q.value,
|
|
3337
3337
|
onMouseover: () => f.value = !0,
|
|
3338
3338
|
onMouseleave: () => f.value = !1,
|
|
3339
3339
|
style: Cn.value
|
|
3340
|
-
}, [
|
|
3340
|
+
}, [c.value && St(d), c.value && le(), c.value && Ee.value && ue(), c.value && Et(), c.value && Mt()]), c.value && En(), P.value && M("div", {
|
|
3341
3341
|
class: Sn.value
|
|
3342
3342
|
}, [P.value && M("div", {
|
|
3343
3343
|
class: Tn.value
|
|
@@ -3542,9 +3542,9 @@ class _i {
|
|
|
3542
3542
|
contents: i
|
|
3543
3543
|
}), t.contents = [o];
|
|
3544
3544
|
const { selectedFields: r } = e;
|
|
3545
|
-
r == null || r.forEach((
|
|
3546
|
-
if (
|
|
3547
|
-
const l = vt(
|
|
3545
|
+
r == null || r.forEach((u) => {
|
|
3546
|
+
if (u.$type === ht.SimpleField) {
|
|
3547
|
+
const l = vt(u), c = this.resolveControlClassByFormColumns(e), p = this.controlCreatorUtils.setFormFieldProperty(l, "", c);
|
|
3548
3548
|
p && i.push(p);
|
|
3549
3549
|
}
|
|
3550
3550
|
});
|
|
@@ -3612,16 +3612,16 @@ class _i {
|
|
|
3612
3612
|
}
|
|
3613
3613
|
}
|
|
3614
3614
|
function Gi(n, e, t, o) {
|
|
3615
|
-
var r, a,
|
|
3615
|
+
var r, a, u, l, c, p;
|
|
3616
3616
|
const i = t.parentComponentInstance;
|
|
3617
3617
|
if (i && o) {
|
|
3618
3618
|
const s = (r = i.schema) == null ? void 0 : r.type, d = {
|
|
3619
3619
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
3620
|
-
componentName: ((a = t.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((l = (
|
|
3620
|
+
componentName: ((a = t.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((l = (u = t.bindingSourceContext) == null ? void 0 : u.bindingEntity) == null ? void 0 : l.name) || "标题",
|
|
3621
3621
|
componentType: "form",
|
|
3622
3622
|
formColumns: s === "splitter-pane" ? 1 : 4,
|
|
3623
3623
|
parentContainerId: i.schema.id,
|
|
3624
|
-
bindTo: ((
|
|
3624
|
+
bindTo: ((c = t.bindingSourceContext) == null ? void 0 : c.bindTo) || "/",
|
|
3625
3625
|
selectedFields: (p = t.bindingSourceContext) == null ? void 0 : p.bindingEntityFields
|
|
3626
3626
|
};
|
|
3627
3627
|
return new _i(n, o).createComponent(d);
|
|
@@ -3695,7 +3695,7 @@ const Yi = "https://json-schema.org/draft/2020-12/schema", Ji = "https://farris-
|
|
|
3695
3695
|
adaptForLanguage: { type: Boolean, default: !0 }
|
|
3696
3696
|
};
|
|
3697
3697
|
lt(or, nr, Ht, Gi);
|
|
3698
|
-
const ir = "https://json-schema.org/draft/2020-12/schema", rr = "https://farris-design.gitee.io/form-group.schema.json", ar = "form-group", lr = "A Farris Input Component", sr = "object",
|
|
3698
|
+
const ir = "https://json-schema.org/draft/2020-12/schema", rr = "https://farris-design.gitee.io/form-group.schema.json", ar = "form-group", lr = "A Farris Input Component", sr = "object", cr = {
|
|
3699
3699
|
id: {
|
|
3700
3700
|
description: "The unique identifier for a form group",
|
|
3701
3701
|
type: "string"
|
|
@@ -3767,7 +3767,7 @@ const ir = "https://json-schema.org/draft/2020-12/schema", rr = "https://farris-
|
|
|
3767
3767
|
type: "string",
|
|
3768
3768
|
default: "visible"
|
|
3769
3769
|
}
|
|
3770
|
-
},
|
|
3770
|
+
}, ur = [
|
|
3771
3771
|
"id",
|
|
3772
3772
|
"type",
|
|
3773
3773
|
"editor"
|
|
@@ -3777,8 +3777,8 @@ const ir = "https://json-schema.org/draft/2020-12/schema", rr = "https://farris-
|
|
|
3777
3777
|
title: ar,
|
|
3778
3778
|
description: lr,
|
|
3779
3779
|
type: sr,
|
|
3780
|
-
properties:
|
|
3781
|
-
required:
|
|
3780
|
+
properties: cr,
|
|
3781
|
+
required: ur
|
|
3782
3782
|
}, dr = {
|
|
3783
3783
|
id: { type: String, default: "" },
|
|
3784
3784
|
customClass: { type: String, default: "" },
|
|
@@ -3917,21 +3917,21 @@ function Mr() {
|
|
|
3917
3917
|
return { onCopy: n };
|
|
3918
3918
|
}
|
|
3919
3919
|
function Fr(n, e, t, o) {
|
|
3920
|
-
const i = b(14), r = b(140), a = b(""),
|
|
3920
|
+
const i = b(14), r = b(140), a = b(""), u = b(o.value.length), l = A(() => o.value), c = A(() => ({
|
|
3921
3921
|
"font-size": `${i.value}px`,
|
|
3922
3922
|
height: "100%"
|
|
3923
3923
|
}));
|
|
3924
3924
|
function p(s) {
|
|
3925
3925
|
if (s.currentTarget) {
|
|
3926
3926
|
const m = s.currentTarget.value || "";
|
|
3927
|
-
|
|
3927
|
+
u.value = m.length;
|
|
3928
3928
|
}
|
|
3929
3929
|
}
|
|
3930
3930
|
return () => M(rt, null, [M("textarea", {
|
|
3931
3931
|
title: "promptMessage",
|
|
3932
3932
|
name: "promptMessage",
|
|
3933
3933
|
class: "form-control",
|
|
3934
|
-
style:
|
|
3934
|
+
style: c.value,
|
|
3935
3935
|
rows: "4",
|
|
3936
3936
|
maxlength: r.value,
|
|
3937
3937
|
onInput: (s) => p(s)
|
|
@@ -3939,12 +3939,12 @@ function Fr(n, e, t, o) {
|
|
|
3939
3939
|
class: "textarea-wordcount",
|
|
3940
3940
|
title: a.value,
|
|
3941
3941
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
3942
|
-
}, [
|
|
3942
|
+
}, [u.value + " / " + r.value])]);
|
|
3943
3943
|
}
|
|
3944
3944
|
function Br(n, e, t, o) {
|
|
3945
3945
|
const i = Fr(n, e, t, o), r = /* @__PURE__ */ new Map([["text-area", i]]);
|
|
3946
|
-
function a(
|
|
3947
|
-
return r.get(
|
|
3946
|
+
function a(u) {
|
|
3947
|
+
return r.get(u) || null;
|
|
3948
3948
|
}
|
|
3949
3949
|
return { getEditorRender: a };
|
|
3950
3950
|
}
|
|
@@ -4008,7 +4008,7 @@ function Pr(n, e) {
|
|
|
4008
4008
|
const i = A(() => !!n.value && !!n.value.date), r = A(() => {
|
|
4009
4009
|
const d = n.value && n.value.date || "";
|
|
4010
4010
|
return `${e.exception.happend} : ${d}`;
|
|
4011
|
-
}), a = A(() => !!n.value && !!n.value.detail),
|
|
4011
|
+
}), a = A(() => !!n.value && !!n.value.detail), u = A(() => n.value ? t(n.value.detail) > 160 : !1), l = b(!1), c = A(() => l.value ? e.exception.collapse : e.exception.expand), p = A(() => {
|
|
4012
4012
|
const d = e.exception.detail + " : " + (n.value && n.value.detail) || "";
|
|
4013
4013
|
return l.value ? d : o(d, 160);
|
|
4014
4014
|
}), s = A(() => ({
|
|
@@ -4029,10 +4029,10 @@ function Pr(n, e) {
|
|
|
4029
4029
|
class: "exception_error_msg"
|
|
4030
4030
|
}, [M("div", {
|
|
4031
4031
|
innerHTML: p.value
|
|
4032
|
-
}, null),
|
|
4032
|
+
}, null), u.value && M("span", {
|
|
4033
4033
|
style: s.value,
|
|
4034
4034
|
onClick: m
|
|
4035
|
-
}, [
|
|
4035
|
+
}, [c.value])])])]);
|
|
4036
4036
|
}
|
|
4037
4037
|
function Vr(n) {
|
|
4038
4038
|
return () => M("p", {
|
|
@@ -4046,9 +4046,9 @@ function Or(n, e, t, o, i) {
|
|
|
4046
4046
|
"f-icon": !0
|
|
4047
4047
|
}, y = `f-icon-${f}`;
|
|
4048
4048
|
return v[y] = !0, v;
|
|
4049
|
-
}),
|
|
4049
|
+
}), u = A(() => t.value || r.value && r.value.message), l = A(() => o.value), c = A(() => !!o.value), p = A(() => !!r.value);
|
|
4050
4050
|
function s() {
|
|
4051
|
-
return p.value ? Pr(r, i) :
|
|
4051
|
+
return p.value ? Pr(r, i) : c.value ? Vr(l) : () => null;
|
|
4052
4052
|
}
|
|
4053
4053
|
const m = s(), d = A(() => i.locale === "en" ? {
|
|
4054
4054
|
wordBreak: "keep-all",
|
|
@@ -4062,7 +4062,7 @@ function Or(n, e, t, o, i) {
|
|
|
4062
4062
|
class: "modal-tips-content"
|
|
4063
4063
|
}, [M("p", {
|
|
4064
4064
|
class: "toast-msg-title",
|
|
4065
|
-
innerHTML:
|
|
4065
|
+
innerHTML: u.value,
|
|
4066
4066
|
style: d.value
|
|
4067
4067
|
}, null), m()])]);
|
|
4068
4068
|
}
|
|
@@ -4071,13 +4071,13 @@ function Nr(n, e, t, o) {
|
|
|
4071
4071
|
onCopy: i
|
|
4072
4072
|
} = e, {
|
|
4073
4073
|
toShowFeedback: r
|
|
4074
|
-
} = t, a = b(o.exception.copySuccess || "复制成功"),
|
|
4074
|
+
} = t, a = b(o.exception.copySuccess || "复制成功"), u = b(o.exception.copy || "复制详细信息"), l = b(n.exceptionInfo || {
|
|
4075
4075
|
date: "",
|
|
4076
4076
|
message: "",
|
|
4077
4077
|
detail: ""
|
|
4078
|
-
}),
|
|
4078
|
+
}), c = A(() => l.value && l.value.detail || "");
|
|
4079
4079
|
function p(s) {
|
|
4080
|
-
i(
|
|
4080
|
+
i(c.value).catch((m) => {
|
|
4081
4081
|
a.value = o.exception.copyFailed || "复制失败";
|
|
4082
4082
|
}).finally(() => {
|
|
4083
4083
|
r.value = !0, setTimeout(() => {
|
|
@@ -4090,10 +4090,10 @@ function Nr(n, e, t, o) {
|
|
|
4090
4090
|
}, [M("span", {
|
|
4091
4091
|
onClick: p,
|
|
4092
4092
|
style: "cursor: pointer;"
|
|
4093
|
-
}, [
|
|
4093
|
+
}, [u.value])]);
|
|
4094
4094
|
}
|
|
4095
4095
|
function $r(n, e, t, o, i) {
|
|
4096
|
-
const r = b(n.type), a = b(n.buttons),
|
|
4096
|
+
const r = b(n.type), a = b(n.buttons), u = b(n.exceptionInfo), l = b(i.ok || n.okButtonText), c = b(i.cancel || n.cancelButtonText), p = b(n.showCancelButton), s = b(n.showOkButton), m = A(() => !!(a.value && a.value.length)), d = A(() => u.value && u.value.message && u.value.detail), f = A(() => !(a.value && a.value.length) && (s.value || p.value)), v = Nr(n, t, o, i);
|
|
4097
4097
|
l.value === "关闭" ? l.value = i.close : l.value === "知道了" && (l.value = i.exception.roger);
|
|
4098
4098
|
function y(B) {
|
|
4099
4099
|
r.value === "question" && e.emit("reject"), e.emit("close");
|
|
@@ -4107,7 +4107,7 @@ function $r(n, e, t, o, i) {
|
|
|
4107
4107
|
type: "button",
|
|
4108
4108
|
class: "btn btn-secondary btn-lg",
|
|
4109
4109
|
onClick: y
|
|
4110
|
-
}, [
|
|
4110
|
+
}, [c.value]), f.value && s.value && M("button", {
|
|
4111
4111
|
type: "button",
|
|
4112
4112
|
class: "btn btn-primary btn-lg",
|
|
4113
4113
|
onClick: T
|
|
@@ -4157,12 +4157,12 @@ const mt = /* @__PURE__ */ _e({
|
|
|
4157
4157
|
"flex-row": !0
|
|
4158
4158
|
}, B = `messager-type-${o.value}`;
|
|
4159
4159
|
return T[B] = !0, T;
|
|
4160
|
-
}),
|
|
4160
|
+
}), u = A(() => {
|
|
4161
4161
|
const T = {
|
|
4162
4162
|
cursor: "default"
|
|
4163
4163
|
};
|
|
4164
4164
|
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;
|
|
4165
|
-
}), l = Mr(),
|
|
4165
|
+
}), l = Mr(), c = Br(n, o, i, r), p = kr(), {
|
|
4166
4166
|
feedbackStyle: s,
|
|
4167
4167
|
feedbackMessage: m
|
|
4168
4168
|
} = p;
|
|
@@ -4175,7 +4175,7 @@ const mt = /* @__PURE__ */ _e({
|
|
|
4175
4175
|
function f() {
|
|
4176
4176
|
switch (o.value) {
|
|
4177
4177
|
case "prompt":
|
|
4178
|
-
return Ir(n,
|
|
4178
|
+
return Ir(n, c);
|
|
4179
4179
|
default:
|
|
4180
4180
|
return Or(n, o, i, r, t);
|
|
4181
4181
|
}
|
|
@@ -4188,7 +4188,7 @@ const mt = /* @__PURE__ */ _e({
|
|
|
4188
4188
|
class: "messager-draggable"
|
|
4189
4189
|
}, null), M("section", {
|
|
4190
4190
|
class: a.value,
|
|
4191
|
-
style:
|
|
4191
|
+
style: u.value
|
|
4192
4192
|
}, [v()]), y(), d()]);
|
|
4193
4193
|
}
|
|
4194
4194
|
}), Lr = "https://json-schema.org/draft/2020-12/schema", jr = "https://farris-design.gitee.io/modal.schema.json", Rr = "modal", Hr = "弹窗组件", Ar = "object", zr = {
|
|
@@ -4494,7 +4494,7 @@ class qe {
|
|
|
4494
4494
|
}
|
|
4495
4495
|
}
|
|
4496
4496
|
function Qr(n, e) {
|
|
4497
|
-
const t = b(), o = b(), i = b(), r = b(), a = b(),
|
|
4497
|
+
const t = b(), o = b(), i = b(), r = b(), a = b(), u = b(), l = b(), c = b(), p = b(), s = b(), m = b(), d = b(n.resizeable), f = b(), v = b(n.draggable), y = b(!1);
|
|
4498
4498
|
function T() {
|
|
4499
4499
|
const O = o.value || document.body, I = window.getComputedStyle(O);
|
|
4500
4500
|
if (!I || !t.value)
|
|
@@ -4506,9 +4506,9 @@ function Qr(n, e) {
|
|
|
4506
4506
|
}
|
|
4507
4507
|
function B(O) {
|
|
4508
4508
|
if (t.value) {
|
|
4509
|
-
r.value = qe.getCurrent(t.value), a.value = re.getCurrent(t.value),
|
|
4509
|
+
r.value = qe.getCurrent(t.value), a.value = re.getCurrent(t.value), u.value = r.value ? qe.copy(r.value) : null, l.value = a.value ? re.copy(a.value) : null, T();
|
|
4510
4510
|
const I = O.target.getAttribute("type") || "";
|
|
4511
|
-
|
|
4511
|
+
c.value = {
|
|
4512
4512
|
n: !!I.match(/n/),
|
|
4513
4513
|
s: !!I.match(/s/),
|
|
4514
4514
|
w: !!I.match(/w/),
|
|
@@ -4520,28 +4520,28 @@ function Qr(n, e) {
|
|
|
4520
4520
|
var O, I, G, R;
|
|
4521
4521
|
if (t.value) {
|
|
4522
4522
|
const te = t.value;
|
|
4523
|
-
|
|
4523
|
+
c.value && ((c.value.n || c.value.s) && ((O = u.value) != null && O.height) && (te.style.height = u.value.height + "px"), (c.value.w || c.value.e) && ((I = u.value) != null && I.width) && (te.style.width = u.value.width + "px"), l.value && ((G = l.value) != null && G.x && (te.style.left = l.value.x + "px"), (R = l.value) != null && R.y && (te.style.top = l.value.y + "px")));
|
|
4524
4524
|
}
|
|
4525
4525
|
}
|
|
4526
4526
|
function L() {
|
|
4527
4527
|
const O = n.minHeight ? n.minHeight : 1, I = n.minWidth ? n.minWidth : 1;
|
|
4528
|
-
|
|
4528
|
+
u.value && l.value && c.value && r.value && (u.value.height < O && (u.value.height = O, c.value.n && a.value && (l.value.y = a.value.y + (r.value.height - O))), u.value.width < I && (u.value.width = I, c.value.w && a.value && (l.value.x = a.value.x + (r.value.width - I))), n.maxHeight && u.value.height > n.maxHeight && (u.value.height = n.maxHeight, a.value && c.value.n && (l.value.y = a.value.y + (r.value.height - n.maxHeight))), n.maxWidth && u.value.width > n.maxWidth && (u.value.width = n.maxWidth, c.value.w && a.value && (l.value.x = a.value.x + (r.value.width - n.maxWidth))));
|
|
4529
4529
|
}
|
|
4530
4530
|
function w() {
|
|
4531
4531
|
if (o.value) {
|
|
4532
4532
|
const O = s.value;
|
|
4533
|
-
if (l.value &&
|
|
4533
|
+
if (l.value && u.value && c.value && r.value) {
|
|
4534
4534
|
const I = O.width - O.pr - O.deltaL - O.translateX - l.value.x, G = O.height - O.pb - O.deltaT - O.translateY - l.value.y;
|
|
4535
|
-
|
|
4535
|
+
c.value.n && l.value.y + O.translateY < 0 && a.value && (l.value.y = -O.translateY, u.value.height = r.value.height + a.value.y + O.translateY), c.value.w && l.value.x + O.translateX < 0 && a.value && (l.value.x = -O.translateX, u.value.width = r.value.width + a.value.x + O.translateX), u.value.width > I && (u.value.width = I), u.value.height > G && (u.value.height = G);
|
|
4536
4536
|
}
|
|
4537
4537
|
}
|
|
4538
4538
|
}
|
|
4539
4539
|
function g(O) {
|
|
4540
|
-
if (!i.value || !r.value || !a.value || !
|
|
4540
|
+
if (!i.value || !r.value || !a.value || !c.value)
|
|
4541
4541
|
return;
|
|
4542
4542
|
O.subtract(i.value);
|
|
4543
4543
|
const I = O.x, G = O.y;
|
|
4544
|
-
|
|
4544
|
+
c.value.n ? (l.value.y = a.value.y + G, u.value.height = r.value.height - G) : c.value.s && (u.value.height = r.value.height + G), c.value.e ? u.value.width = r.value.width + I : c.value.w && (u.value.width = r.value.width - I, l.value.x = a.value.x + I), w(), L(), z();
|
|
4545
4545
|
}
|
|
4546
4546
|
function F(O) {
|
|
4547
4547
|
if (!p.value)
|
|
@@ -4575,7 +4575,7 @@ function Qr(n, e) {
|
|
|
4575
4575
|
const I = x();
|
|
4576
4576
|
m.value = I;
|
|
4577
4577
|
}
|
|
4578
|
-
i.value = void 0, r.value = null, a.value = null,
|
|
4578
|
+
i.value = void 0, r.value = null, a.value = null, u.value = null, l.value = null, c.value = null, p.value = null, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", P);
|
|
4579
4579
|
}
|
|
4580
4580
|
function q() {
|
|
4581
4581
|
document.addEventListener("mousemove", F), document.addEventListener("mouseup", P);
|
|
@@ -4621,8 +4621,8 @@ function Qr(n, e) {
|
|
|
4621
4621
|
function N(O = !0) {
|
|
4622
4622
|
document.body.click();
|
|
4623
4623
|
const I = o.value || document.body, G = qe.getCurrent(I), R = t.value;
|
|
4624
|
-
O && R && (f.value = x(), f.value.transform = R.style.transform), G && R && (
|
|
4625
|
-
size:
|
|
4624
|
+
O && R && (f.value = x(), f.value.transform = R.style.transform), G && R && (u.value = G, u.value.height -= 14, u.value.width -= 14, R.style.height = u.value.height + "px", R.style.width = u.value.width + "px", R.style.left = "7px", R.style.top = "7px", R.style.transform = "", m.value = {
|
|
4625
|
+
size: u.value,
|
|
4626
4626
|
position: {
|
|
4627
4627
|
x: 0,
|
|
4628
4628
|
y: 0
|
|
@@ -4639,7 +4639,7 @@ function Qr(n, e) {
|
|
|
4639
4639
|
x: (window.innerWidth - G.width) / 2,
|
|
4640
4640
|
y: (window.innerHeight - G.height) / 2
|
|
4641
4641
|
};
|
|
4642
|
-
(O =
|
|
4642
|
+
(O = u.value) == null || O.set(G), (I = l.value) == null || I.set(R);
|
|
4643
4643
|
const te = t.value;
|
|
4644
4644
|
te.style.height = G.height + "px", te.style.width = G.width + "px", te.style.left = `${R.x}px`, te.style.top = `${R.y}px`, te.style.transform = "", m.value = {
|
|
4645
4645
|
size: G,
|
|
@@ -4681,7 +4681,7 @@ function Qr(n, e) {
|
|
|
4681
4681
|
};
|
|
4682
4682
|
}
|
|
4683
4683
|
function Zr(n, e, t) {
|
|
4684
|
-
const o = b(), i = b(n.draggable), r = b(n.lockAxis), a = b(),
|
|
4684
|
+
const o = b(), i = b(n.draggable), r = b(n.lockAxis), a = b(), u = b(), l = b(!1), c = b(new re(0, 0)), p = b(new re(0, 0)), s = b(new re(0, 0)), m = b(new re(0, 0));
|
|
4685
4685
|
xe(() => t.value, (F) => {
|
|
4686
4686
|
a.value.style.cursor = F ? "move" : "default";
|
|
4687
4687
|
});
|
|
@@ -4698,14 +4698,14 @@ function Zr(n, e, t) {
|
|
|
4698
4698
|
function f() {
|
|
4699
4699
|
var q, C;
|
|
4700
4700
|
let F = s.value.x + p.value.x, x = s.value.y + p.value.y;
|
|
4701
|
-
r.value === "x" ? (F = ((q =
|
|
4701
|
+
r.value === "x" ? (F = ((q = c.value) == null ? void 0 : q.x) || 0, s.value.x = 0) : r.value === "y" && (x = ((C = c.value) == null ? void 0 : C.y) || 0, s.value.y = 0);
|
|
4702
4702
|
const P = `translate3d(${Math.round(F)}px, ${Math.round(x)}px, 0px)`;
|
|
4703
4703
|
o.value && (o.value.style.transform = P), m.value.x = F, m.value.y = x;
|
|
4704
4704
|
}
|
|
4705
4705
|
function v() {
|
|
4706
|
-
if (!
|
|
4706
|
+
if (!u.value || !o.value)
|
|
4707
4707
|
return null;
|
|
4708
|
-
const F =
|
|
4708
|
+
const F = u.value.getBoundingClientRect(), x = o.value.getBoundingClientRect(), P = {
|
|
4709
4709
|
top: F.top < x.top,
|
|
4710
4710
|
right: F.right > x.right,
|
|
4711
4711
|
bottom: F.bottom > x.bottom,
|
|
@@ -4714,7 +4714,7 @@ function Zr(n, e, t) {
|
|
|
4714
4714
|
return P.top || (s.value.y -= x.top - F.top), P.bottom || (s.value.y -= x.bottom - F.bottom), P.right || (s.value.x -= x.right - F.right), P.left || (s.value.x -= x.left - F.left), f(), P;
|
|
4715
4715
|
}
|
|
4716
4716
|
function y(F) {
|
|
4717
|
-
F && (
|
|
4717
|
+
F && (c.value && F.subtract(c.value), s.value.set(F), f(), v());
|
|
4718
4718
|
}
|
|
4719
4719
|
function T(F) {
|
|
4720
4720
|
l.value && i.value && (F.stopPropagation(), F.preventDefault(), y(re.fromEvent(F, a.value)));
|
|
@@ -4738,7 +4738,7 @@ function Zr(n, e, t) {
|
|
|
4738
4738
|
if (!t.value || F instanceof MouseEvent && F.button === 2)
|
|
4739
4739
|
return;
|
|
4740
4740
|
const x = F.target || F.srcElement;
|
|
4741
|
-
a.value !== void 0 && x && !d(x, a.value) || i.value !== !1 && (document.body.click(), F.stopPropagation(), F.preventDefault(),
|
|
4741
|
+
a.value !== void 0 && x && !d(x, a.value) || i.value !== !1 && (document.body.click(), F.stopPropagation(), F.preventDefault(), c.value = re.fromEvent(F, o.value), L(), z());
|
|
4742
4742
|
}
|
|
4743
4743
|
function g(F, x, P) {
|
|
4744
4744
|
if (i.value && x) {
|
|
@@ -4752,7 +4752,7 @@ function Zr(n, e, t) {
|
|
|
4752
4752
|
q && (a.value = q);
|
|
4753
4753
|
}
|
|
4754
4754
|
}
|
|
4755
|
-
o.value = x,
|
|
4755
|
+
o.value = x, u.value = P, a.value ? (a.value.classList.add("ng-draggable"), a.value.addEventListener("mousedown", w)) : i.value = !1;
|
|
4756
4756
|
}
|
|
4757
4757
|
}
|
|
4758
4758
|
return {
|
|
@@ -4793,7 +4793,7 @@ const We = /* @__PURE__ */ _e({
|
|
|
4793
4793
|
props: pn,
|
|
4794
4794
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
4795
4795
|
setup(n, e) {
|
|
4796
|
-
const t = b(n.width || 300), o = b(n.height || 200), i = b(n.modelValue), r = b(""), a = b(n.class),
|
|
4796
|
+
const t = b(n.width || 300), o = b(n.height || 200), i = b(n.modelValue), r = b(""), a = b(n.class), u = b(n.fitContent), l = b(n.showHeader), c = b(""), p = b(n.showCloseButton), s = b(n.showMaxButton), m = b(!1), d = b(n.dialogType), f = b(n.src), v = b(""), y = b(n.showButtons), T = b(n.title), B = b(n.containment || null), z = b(), {
|
|
4797
4797
|
t: L
|
|
4798
4798
|
} = Lt();
|
|
4799
4799
|
T.value === "错误提示" && (T.value = L("messageBox.errorTitle"));
|
|
@@ -4801,12 +4801,12 @@ const We = /* @__PURE__ */ _e({
|
|
|
4801
4801
|
function g(k, Q) {
|
|
4802
4802
|
const le = Q ? "accept" : "cancel";
|
|
4803
4803
|
Promise.resolve().then(() => {
|
|
4804
|
-
var
|
|
4805
|
-
return (
|
|
4804
|
+
var ce;
|
|
4805
|
+
return (ce = n.beforeClose) == null ? void 0 : ce.call(n, {
|
|
4806
4806
|
closeType: le
|
|
4807
4807
|
});
|
|
4808
|
-
}).then((
|
|
4809
|
-
|
|
4808
|
+
}).then((ce) => {
|
|
4809
|
+
ce && (i.value = !1, e.emit("update:modelValue", !1), Q != null && e.emit(Q ? "accept" : "cancel"), e.emit("closed", k));
|
|
4810
4810
|
});
|
|
4811
4811
|
}
|
|
4812
4812
|
const F = [{
|
|
@@ -4823,7 +4823,7 @@ const We = /* @__PURE__ */ _e({
|
|
|
4823
4823
|
handle: (k) => {
|
|
4824
4824
|
g(k, !0);
|
|
4825
4825
|
}
|
|
4826
|
-
}], x = b(n.buttons && n.buttons.length ? n.buttons : F), P = A(() => !!
|
|
4826
|
+
}], x = b(n.buttons && n.buttons.length ? n.buttons : F), P = A(() => !!c.value), q = A(() => !!y.value && !!x.value), C = b(), E = b(), N = b(!1), {
|
|
4827
4827
|
renderResizeBar: V,
|
|
4828
4828
|
maximize: S,
|
|
4829
4829
|
restore: U,
|
|
@@ -4853,8 +4853,8 @@ const We = /* @__PURE__ */ _e({
|
|
|
4853
4853
|
}), xe(() => n.showButtons, (k, Q) => {
|
|
4854
4854
|
k !== Q && (y.value = k);
|
|
4855
4855
|
}), xe(() => O.value, (k, Q) => {
|
|
4856
|
-
const le = k || {},
|
|
4857
|
-
JSON.stringify(le) !== JSON.stringify(
|
|
4856
|
+
const le = k || {}, ce = Q || {};
|
|
4857
|
+
JSON.stringify(le) !== JSON.stringify(ce) && e.emit("resize", {
|
|
4858
4858
|
newSize: k,
|
|
4859
4859
|
oldSize: Q,
|
|
4860
4860
|
isMaximized: N.value
|
|
@@ -4867,22 +4867,22 @@ const We = /* @__PURE__ */ _e({
|
|
|
4867
4867
|
"farris-modal": !0,
|
|
4868
4868
|
fade: !0
|
|
4869
4869
|
};
|
|
4870
|
-
k["f-modal-fitContent"] = !!
|
|
4870
|
+
k["f-modal-fitContent"] = !!u.value, k.show = !!J.value;
|
|
4871
4871
|
const Q = (le = n.maskClass) == null ? void 0 : le.split(" ");
|
|
4872
|
-
return Q == null || Q.reduce((
|
|
4872
|
+
return Q == null || Q.reduce((ce, ke) => (ce[ke] = !0, ce), k), k;
|
|
4873
4873
|
}), se = A(() => {
|
|
4874
4874
|
var le;
|
|
4875
4875
|
const k = {
|
|
4876
4876
|
"modal-dialog": !0
|
|
4877
4877
|
}, Q = (le = a.value) == null ? void 0 : le.split(" ");
|
|
4878
|
-
return Q == null || Q.reduce((
|
|
4878
|
+
return Q == null || Q.reduce((ce, ke) => (ce[ke] = !0, ce), k), k;
|
|
4879
4879
|
}), ne = A(() => {
|
|
4880
4880
|
const k = {
|
|
4881
4881
|
position: "absolute",
|
|
4882
4882
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
4883
4883
|
left: `${(window.innerWidth - t.value) / 2}px`,
|
|
4884
4884
|
width: `${t.value}px`,
|
|
4885
|
-
height:
|
|
4885
|
+
height: u.value ? "auto" : `${o.value}px`
|
|
4886
4886
|
};
|
|
4887
4887
|
return n.mask || (k.pointerEvents = "auto"), k;
|
|
4888
4888
|
}), W = () => Hn() || 1040, oe = A(() => {
|
|
@@ -4992,7 +4992,7 @@ const We = /* @__PURE__ */ _e({
|
|
|
4992
4992
|
}, [e.slots.headerTemplate ? e.slots.headerTemplate() : M("div", {
|
|
4993
4993
|
class: "modal-title"
|
|
4994
4994
|
}, [P.value && M("span", {
|
|
4995
|
-
class:
|
|
4995
|
+
class: c.value,
|
|
4996
4996
|
style: "margin-right: 8px"
|
|
4997
4997
|
}, null), M("span", {
|
|
4998
4998
|
class: "modal-title-label"
|
|
@@ -5027,7 +5027,7 @@ const We = /* @__PURE__ */ _e({
|
|
|
5027
5027
|
width: "100%",
|
|
5028
5028
|
frameborder: "0",
|
|
5029
5029
|
src: f.value
|
|
5030
|
-
}, null)]), Be()]), !
|
|
5030
|
+
}, null)]), Be()]), !u.value && E.value && !N.value && V(E.value)]);
|
|
5031
5031
|
}
|
|
5032
5032
|
function Je(k) {
|
|
5033
5033
|
return k || "body";
|
|
@@ -5063,7 +5063,7 @@ function ta(n) {
|
|
|
5063
5063
|
wt(() => {
|
|
5064
5064
|
document.body.removeChild(e);
|
|
5065
5065
|
});
|
|
5066
|
-
const r = b(), a = b(n.class || ""),
|
|
5066
|
+
const r = b(), a = b(n.class || ""), u = b(!!n.showButtons), l = b(!!n.showHeader), c = b(n.showCloseButton == null ? !0 : n.showCloseButton), p = b(!0), s = b(n.title || ""), m = n.acceptCallback || (() => {
|
|
5067
5067
|
}), d = n.rejectCallback || (() => {
|
|
5068
5068
|
}), f = n.closedCallback || ((z) => {
|
|
5069
5069
|
}), v = n.resizeHandle || ((z) => {
|
|
@@ -5084,8 +5084,8 @@ function ta(n) {
|
|
|
5084
5084
|
height: n.height,
|
|
5085
5085
|
buttons: n.buttons,
|
|
5086
5086
|
"show-header": l.value,
|
|
5087
|
-
"show-buttons":
|
|
5088
|
-
"show-close-button":
|
|
5087
|
+
"show-buttons": u.value,
|
|
5088
|
+
"show-close-button": c.value,
|
|
5089
5089
|
"show-max-button": !1,
|
|
5090
5090
|
onAccept: m,
|
|
5091
5091
|
onCancel: d,
|
|
@@ -5147,16 +5147,16 @@ class hn {
|
|
|
5147
5147
|
showHeader: !0
|
|
5148
5148
|
}, e)), i = b(!0), r = o.value.acceptCallback || (() => {
|
|
5149
5149
|
}), a = o.value.rejectCallback || (() => {
|
|
5150
|
-
}),
|
|
5150
|
+
}), u = o.value.closedCallback || ((w, g) => {
|
|
5151
5151
|
}), l = o.value.resizeHandle || ((w) => {
|
|
5152
|
-
}),
|
|
5152
|
+
}), c = e.stopMoveHandle || ((w) => {
|
|
5153
5153
|
});
|
|
5154
5154
|
let p;
|
|
5155
5155
|
const s = vn(o.value), m = (w) => {
|
|
5156
5156
|
var F;
|
|
5157
5157
|
i.value = !1;
|
|
5158
5158
|
const g = (F = w == null ? void 0 : w.target) == null ? void 0 : F.classList.contains("modal_close");
|
|
5159
|
-
|
|
5159
|
+
u(w, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
|
|
5160
5160
|
}, d = (w) => {
|
|
5161
5161
|
m(w), p && at(() => {
|
|
5162
5162
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Nt(null, t), p = null, this.modalRef.value = null, this.modalRefs) {
|
|
@@ -5183,7 +5183,7 @@ class hn {
|
|
|
5183
5183
|
onClosed: d,
|
|
5184
5184
|
onResize: l,
|
|
5185
5185
|
onEsc: f,
|
|
5186
|
-
onStopMove:
|
|
5186
|
+
onStopMove: c
|
|
5187
5187
|
}), {
|
|
5188
5188
|
default: () => [s && s(this.app)]
|
|
5189
5189
|
});
|
|
@@ -5222,13 +5222,13 @@ const Fe = class Fe {
|
|
|
5222
5222
|
const t = Le({
|
|
5223
5223
|
...e
|
|
5224
5224
|
}), o = !1, i = t.type === "error" || t.type === "prompt", r = t.type === "error" ? "错误提示" : t.type === "prompt" && t.title || "", a = t.acceptCallback || (() => {
|
|
5225
|
-
}),
|
|
5225
|
+
}), u = t.rejectCallback || (() => {
|
|
5226
5226
|
});
|
|
5227
|
-
let l = null,
|
|
5227
|
+
let l = null, c = new hn(Fe.app);
|
|
5228
5228
|
const p = () => {
|
|
5229
|
-
l && (l == null || l.destroy(),
|
|
5229
|
+
l && (l == null || l.destroy(), c = null);
|
|
5230
5230
|
};
|
|
5231
|
-
return l =
|
|
5231
|
+
return l = c == null ? void 0 : c.open({
|
|
5232
5232
|
class: "modal-message modal-message-type-info",
|
|
5233
5233
|
title: r,
|
|
5234
5234
|
showButtons: o,
|
|
@@ -5240,10 +5240,10 @@ const Fe = class Fe {
|
|
|
5240
5240
|
dragHandle: ".messager-draggable",
|
|
5241
5241
|
render: () => M(mt, Dt(t, {
|
|
5242
5242
|
onAccept: a,
|
|
5243
|
-
onReject:
|
|
5243
|
+
onReject: u,
|
|
5244
5244
|
onClose: p
|
|
5245
5245
|
}), null)
|
|
5246
|
-
}),
|
|
5246
|
+
}), c == null ? void 0 : c.getCurrentModal();
|
|
5247
5247
|
}
|
|
5248
5248
|
static info(e, t) {
|
|
5249
5249
|
const o = Le({
|
|
@@ -5343,7 +5343,7 @@ class oa extends gi {
|
|
|
5343
5343
|
getBasicProperties(t, o, i = "Card") {
|
|
5344
5344
|
const r = this;
|
|
5345
5345
|
this.setDesignViewModelField(t);
|
|
5346
|
-
const { canChangeControlType: a, editorTypeList:
|
|
5346
|
+
const { canChangeControlType: a, editorTypeList: u } = this.getAvailableEditorType(t), l = {
|
|
5347
5347
|
description: "Basic Information",
|
|
5348
5348
|
title: "基本信息",
|
|
5349
5349
|
properties: {
|
|
@@ -5365,7 +5365,7 @@ class oa extends gi {
|
|
|
5365
5365
|
valueField: "key",
|
|
5366
5366
|
idField: "key",
|
|
5367
5367
|
editable: !1,
|
|
5368
|
-
data:
|
|
5368
|
+
data: u,
|
|
5369
5369
|
readonly: !a
|
|
5370
5370
|
}
|
|
5371
5371
|
},
|
|
@@ -5401,19 +5401,19 @@ class oa extends gi {
|
|
|
5401
5401
|
readonly: this.formSchemaUtils.designerMode === "PC_RTC" && !t.isRtcControl
|
|
5402
5402
|
}
|
|
5403
5403
|
},
|
|
5404
|
-
setPropertyRelates(
|
|
5405
|
-
if (
|
|
5406
|
-
switch (
|
|
5404
|
+
setPropertyRelates(c, p, s) {
|
|
5405
|
+
if (c)
|
|
5406
|
+
switch (c && c.propertyID) {
|
|
5407
5407
|
case "type": {
|
|
5408
|
-
r.changeControlType(t,
|
|
5408
|
+
r.changeControlType(t, c, o);
|
|
5409
5409
|
break;
|
|
5410
5410
|
}
|
|
5411
5411
|
case "label": {
|
|
5412
|
-
|
|
5412
|
+
c.needRefreshControlTree = !0;
|
|
5413
5413
|
break;
|
|
5414
5414
|
}
|
|
5415
5415
|
case "binding": {
|
|
5416
|
-
r.changeBindingField(t,
|
|
5416
|
+
r.changeBindingField(t, c, s);
|
|
5417
5417
|
break;
|
|
5418
5418
|
}
|
|
5419
5419
|
}
|
|
@@ -5517,24 +5517,24 @@ class oa extends gi {
|
|
|
5517
5517
|
const r = o.propertyValue, a = i && i.parent && i.parent.schema;
|
|
5518
5518
|
if (!a)
|
|
5519
5519
|
return;
|
|
5520
|
-
const
|
|
5521
|
-
if (
|
|
5520
|
+
const u = a.contents.findIndex((p) => p.id === t.id);
|
|
5521
|
+
if (u === -1)
|
|
5522
5522
|
return;
|
|
5523
|
-
const l = a.contents[
|
|
5524
|
-
let
|
|
5523
|
+
const l = a.contents[u];
|
|
5524
|
+
let c;
|
|
5525
5525
|
if (this.designViewModelField) {
|
|
5526
5526
|
const m = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((f) => f.id === this.designViewModelField.id).fieldSchema || {};
|
|
5527
|
-
m.editor || (m.editor = {}), m.editor.$type = r, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, m, !1),
|
|
5527
|
+
m.editor || (m.editor = {}), m.editor.$type = r, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, m, !1), c = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, r);
|
|
5528
5528
|
}
|
|
5529
|
-
|
|
5529
|
+
c || (c = this.controlCreatorUtils.createFormGroupWithoutField(r)), Object.assign(c, {
|
|
5530
5530
|
id: l.id,
|
|
5531
5531
|
appearance: l.appearance,
|
|
5532
5532
|
size: l.size,
|
|
5533
5533
|
label: l.label,
|
|
5534
5534
|
binding: l.binding
|
|
5535
|
-
}), Object.prototype.hasOwnProperty.call(l, "visible") && Object.assign(
|
|
5536
|
-
Object.prototype.hasOwnProperty.call(l.editor, p) && (
|
|
5537
|
-
}), i != null && i.updateContextSchema ? i.updateContextSchema(
|
|
5535
|
+
}), Object.prototype.hasOwnProperty.call(l, "visible") && Object.assign(c, { visible: l.visible }), l.editor && ["readonly", "required", "placeholder"].map((p) => {
|
|
5536
|
+
Object.prototype.hasOwnProperty.call(l.editor, p) && (c.editor[p] = l.editor[p]);
|
|
5537
|
+
}), i != null && i.updateContextSchema ? i.updateContextSchema(c) : (i.schema = Object.assign(l, c), Object.assign(t, c)), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
5538
5538
|
(p) => p.classList.remove("dgComponentSelected")
|
|
5539
5539
|
), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
|
|
5540
5540
|
(p) => p.classList.remove("dgComponentFocused")
|
|
@@ -5550,7 +5550,7 @@ class oa extends gi {
|
|
|
5550
5550
|
type: "input-group",
|
|
5551
5551
|
$converter: "/converter/property-editor.converter",
|
|
5552
5552
|
parentPropertyID: "editor"
|
|
5553
|
-
}, o),
|
|
5553
|
+
}, o), u = (m = t.binding) != null && m.field ? [] : ["Const", "Variable", "StateMachine"], l = this.getPropertyEditorParams(t, u, "readonly"), c = this.getPropertyEditorParams(t, u, "required"), p = {
|
|
5554
5554
|
readonly: {
|
|
5555
5555
|
description: "",
|
|
5556
5556
|
title: "只读",
|
|
@@ -5560,7 +5560,7 @@ class oa extends gi {
|
|
|
5560
5560
|
description: "",
|
|
5561
5561
|
title: "必填",
|
|
5562
5562
|
type: "boolean",
|
|
5563
|
-
editor:
|
|
5563
|
+
editor: c
|
|
5564
5564
|
},
|
|
5565
5565
|
placeholder: {
|
|
5566
5566
|
description: "当控件没有值时在输入框中显示的文本",
|
|
@@ -5595,14 +5595,14 @@ class oa extends gi {
|
|
|
5595
5595
|
*/
|
|
5596
5596
|
updateUnifiedLayoutAfterControlChanged(t, o, i) {
|
|
5597
5597
|
const r = t.split(" ");
|
|
5598
|
-
let a = r.find((s) => /^col-([1-9]|10|11|12)$/.test(s)),
|
|
5599
|
-
a = a || "col-12",
|
|
5598
|
+
let a = r.find((s) => /^col-([1-9]|10|11|12)$/.test(s)), u = r.find((s) => /^col-md-([1-9]|10|11|12)$/.test(s)), l = r.find((s) => /^col-xl-([1-9]|10|11|12)$/.test(s)), c = r.find((s) => /^col-el-([1-9]|10|11|12)$/.test(s));
|
|
5599
|
+
a = a || "col-12", u = u || "col-md-" + a.replace("col-", ""), l = l || "col-xl-" + u.replace("col-md-", ""), c = c || "col-el-" + l.replace("col-xl-", "");
|
|
5600
5600
|
const p = {
|
|
5601
5601
|
id: o,
|
|
5602
5602
|
columnInSM: parseInt(a.replace("col-", ""), 10),
|
|
5603
|
-
columnInMD: parseInt(
|
|
5603
|
+
columnInMD: parseInt(u.replace("col-md-", ""), 10),
|
|
5604
5604
|
columnInLG: parseInt(l.replace("col-xl-", ""), 10),
|
|
5605
|
-
columnInEL: parseInt(
|
|
5605
|
+
columnInEL: parseInt(c.replace("col-el-", ""), 10)
|
|
5606
5606
|
};
|
|
5607
5607
|
this.updateUnifiedLayoutAfterResponseLayoutChanged(i, p);
|
|
5608
5608
|
}
|
|
@@ -5620,7 +5620,7 @@ class oa extends gi {
|
|
|
5620
5620
|
const f = r.find((v) => v.id === o.id);
|
|
5621
5621
|
Object.assign(f || {}, o);
|
|
5622
5622
|
}
|
|
5623
|
-
const a = r.map((f) => f.columnInSM),
|
|
5623
|
+
const a = r.map((f) => f.columnInSM), u = r.map((f) => f.columnInMD), l = r.map((f) => f.columnInLG), c = r.map((f) => f.columnInEL), p = this.checkIsUniqueColumn(a) ? a[0] : null, s = this.checkIsUniqueColumn(u) ? u[0] : null, m = this.checkIsUniqueColumn(l) ? l[0] : null, d = this.checkIsUniqueColumn(c) ? c[0] : null;
|
|
5624
5624
|
Object.assign(i.unifiedLayout, {
|
|
5625
5625
|
uniqueColClassInSM: p,
|
|
5626
5626
|
uniqueColClassInMD: s,
|
|
@@ -5705,9 +5705,9 @@ class oa extends gi {
|
|
|
5705
5705
|
*/
|
|
5706
5706
|
getEventPropertyConfig(t, o = "card", i, r) {
|
|
5707
5707
|
const a = this;
|
|
5708
|
-
let
|
|
5709
|
-
i && (
|
|
5710
|
-
const l = a.eventsEditorUtils.formProperties(t, a.viewModelId,
|
|
5708
|
+
let u = [];
|
|
5709
|
+
i && (u = u.concat(i)), this.appendFieldValueChangeEvents(t, u);
|
|
5710
|
+
const l = a.eventsEditorUtils.formProperties(t, a.viewModelId, u);
|
|
5711
5711
|
return {
|
|
5712
5712
|
title: "事件",
|
|
5713
5713
|
hideTitle: !0,
|
|
@@ -5743,8 +5743,8 @@ class oa extends gi {
|
|
|
5743
5743
|
setBooleanValue(t, o, i) {
|
|
5744
5744
|
let r = i;
|
|
5745
5745
|
this.getBindingDataType() === "string" && (r = (r || "").trim() || (o === "trueValue" ? "true" : "false"));
|
|
5746
|
-
const
|
|
5747
|
-
t.editor[
|
|
5746
|
+
const u = o === "trueValue" ? "falseValue" : "trueValue";
|
|
5747
|
+
t.editor[u] === r && (r = r + 1), this.updatePropertyValue(t, o, r);
|
|
5748
5748
|
}
|
|
5749
5749
|
getBooleanValueConverter() {
|
|
5750
5750
|
return {
|
|
@@ -5831,9 +5831,9 @@ const aa = /* @__PURE__ */ _e({
|
|
|
5831
5831
|
props: fi,
|
|
5832
5832
|
emits: [""],
|
|
5833
5833
|
setup(n, e) {
|
|
5834
|
-
const t = b(), o = Wt("designer-host-service"), i = Wt("design-item-context"), r = ra(i, o), a = pi(t, i, r),
|
|
5834
|
+
const t = b(), o = Wt("designer-host-service"), i = Wt("design-item-context"), r = ra(i, o), a = pi(t, i, r), u = A(() => n.maxLength ? n.maxLength : n.modelValue.length), l = A(() => ({
|
|
5835
5835
|
position: "relative"
|
|
5836
|
-
})),
|
|
5836
|
+
})), c = A(() => ({
|
|
5837
5837
|
"box-shadow": "0 0 0 1px #dcdfe6 inset",
|
|
5838
5838
|
border: "none",
|
|
5839
5839
|
padding: "5px 10px",
|
|
@@ -5853,25 +5853,25 @@ const aa = /* @__PURE__ */ _e({
|
|
|
5853
5853
|
tabindex: n.tabIndex,
|
|
5854
5854
|
disabled: !1,
|
|
5855
5855
|
readonly: !0,
|
|
5856
|
-
style:
|
|
5856
|
+
style: c.value,
|
|
5857
5857
|
placeholder: n.placeholder,
|
|
5858
5858
|
rows: n.rows
|
|
5859
5859
|
}, null), n.showCount && M("span", {
|
|
5860
5860
|
style: p
|
|
5861
|
-
}, [`${n.modelValue.length}/${
|
|
5861
|
+
}, [`${n.modelValue.length}/${u.value}`])]);
|
|
5862
5862
|
}
|
|
5863
5863
|
});
|
|
5864
5864
|
gt.register = (n, e, t, o) => {
|
|
5865
|
-
n.textarea = gt, e.textarea =
|
|
5865
|
+
n.textarea = gt, e.textarea = un;
|
|
5866
5866
|
};
|
|
5867
5867
|
gt.registerDesigner = (n, e, t) => {
|
|
5868
|
-
n.textarea = aa, e.textarea =
|
|
5868
|
+
n.textarea = aa, e.textarea = un;
|
|
5869
5869
|
};
|
|
5870
|
-
const
|
|
5870
|
+
const _l = Qt(gt);
|
|
5871
5871
|
export {
|
|
5872
5872
|
gt as FTextarea,
|
|
5873
|
-
|
|
5874
|
-
|
|
5873
|
+
_l as default,
|
|
5874
|
+
un as propsResolver,
|
|
5875
5875
|
fi as textAreaDesignProps,
|
|
5876
5876
|
Rt as textAreaProps
|
|
5877
5877
|
};
|