@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,7 +2,7 @@ var Ea = Object.defineProperty;
|
|
|
2
2
|
var Da = (e, t, n) => t in e ? Ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var we = (e, t, n) => Da(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { ref as C, computed as N, defineComponent as ae, createVNode as v, Teleport as Tn, createApp as nn, onUnmounted as kt, Fragment as ot, watch as Z, nextTick as Ue, onBeforeMount as Pa, onMounted as be, Transition as Bn, shallowRef as Na, render as Jt, h as Ia, cloneVNode as ja, mergeProps as pt, reactive as Ge, createTextVNode as ie, inject as ke, withDirectives as On, vShow as Ra, onUpdated as an, onBeforeUnmount as Mn, provide as En, vModelText as Va } from "vue";
|
|
5
|
-
import {
|
|
5
|
+
import { cloneDeep as Le, isPlainObject as yn, isUndefined as je, debounce as Dn } from "lodash-es";
|
|
6
6
|
import { resolveAppearance as Pn, createPropsResolver as on, getSchemaByTypeForDesigner as La } from "../dynamic-resolver/index.esm.js";
|
|
7
7
|
import { useI18n as St } from "vue-i18n";
|
|
8
8
|
import { getMaxZIndex as $a, getCustomClass as Nn, withInstall as Nt, FormSchemaEntityField$Type as vn, FormSchemaEntityFieldTypeName as hn, useGuid as Aa, FormSchemaEntityFieldType$Type as za, getCustomStyle as Ha } from "../common/index.esm.js";
|
|
@@ -168,7 +168,7 @@ function Vn(e, t) {
|
|
|
168
168
|
}
|
|
169
169
|
return { getSchemaByType: l, resolveSchemaWithDefaultValue: c, resolveSchemaToProps: s, mappingSchemaToProps: u, setDesignerContext: h };
|
|
170
170
|
}
|
|
171
|
-
const Ln = {}, $n = {}, { resolveSchemaWithDefaultValue: Ro, resolveSchemaToProps: Vo, mappingSchemaToProps: Lo } = Vn(Ln, $n);
|
|
171
|
+
const Ln = {}, $n = {}, { getSchemaByType: Dd, resolveSchemaWithDefaultValue: Ro, resolveSchemaToProps: Vo, mappingSchemaToProps: Lo, setDesignerContext: Pd } = Vn(Ln, $n);
|
|
172
172
|
function $o(e = {}) {
|
|
173
173
|
function t(c, h, f, r) {
|
|
174
174
|
if (typeof f == "number")
|
|
@@ -235,7 +235,7 @@ const Ao = {
|
|
|
235
235
|
e.editor && (e.editor[t] = n);
|
|
236
236
|
},
|
|
237
237
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
238
|
-
},
|
|
238
|
+
}, A = {
|
|
239
239
|
button: { type: "button", name: "按钮" },
|
|
240
240
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
241
241
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -286,7 +286,7 @@ const Ao = {
|
|
|
286
286
|
convertFrom: (e, t, n) => {
|
|
287
287
|
var o;
|
|
288
288
|
const a = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
289
|
-
return ((o =
|
|
289
|
+
return ((o = A[a]) == null ? void 0 : o.name) || a;
|
|
290
290
|
}
|
|
291
291
|
}, qo = {
|
|
292
292
|
convertTo: (e, t, n, a) => {
|
|
@@ -527,13 +527,13 @@ function An(e, t, n) {
|
|
|
527
527
|
}
|
|
528
528
|
function h(d, g, p, w, k, B = "", O = "") {
|
|
529
529
|
return Object.keys(d).map((y) => {
|
|
530
|
-
const
|
|
531
|
-
|
|
532
|
-
const
|
|
530
|
+
const x = C(1), M = y, I = d[y], R = Object.keys(I), E = I.title, F = I.type, S = o.get(F) || { type: "input-group", enableClear: !1 }, T = I.editor ? Object.assign({}, S, I.editor) : Object.assign({}, S), P = u(R, I, g), L = s(R, I, g);
|
|
531
|
+
T.readonly = T.readonly === void 0 ? L() : T.readonly;
|
|
532
|
+
const _ = I.type === "cascade" ? h(I.properties, g, p, w, k, B, O) : [], V = !0;
|
|
533
533
|
let j = c(I, O);
|
|
534
534
|
const G = N({
|
|
535
535
|
get() {
|
|
536
|
-
if (
|
|
536
|
+
if (x.value) {
|
|
537
537
|
if (["class", "style"].find((de) => de === M) && !j && (j = a.get("/converter/appearance.converter") || null), j && j.convertFrom)
|
|
538
538
|
return j.convertFrom(p, y, k, B);
|
|
539
539
|
const le = p[y];
|
|
@@ -542,28 +542,28 @@ function An(e, t, n) {
|
|
|
542
542
|
return null;
|
|
543
543
|
},
|
|
544
544
|
set(le) {
|
|
545
|
-
|
|
545
|
+
x.value += 1, j && j.convertTo ? (j.convertTo(w, y, le, k, B), j.convertTo(p, y, le, k, B)) : (w[y] = le, p[y] = le);
|
|
546
546
|
}
|
|
547
|
-
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: M, propertyName:
|
|
547
|
+
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: M, propertyName: E, propertyType: F, propertyValue: G, editor: T, visible: P, readonly: L, cascadeConfig: _, hideCascadeTitle: V, refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve };
|
|
548
548
|
return g[M] = X, X;
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
function f(d, g, p = {}) {
|
|
552
552
|
const w = {}, k = e[d];
|
|
553
553
|
return k && k.categories ? Object.keys(k.categories).map((O) => {
|
|
554
|
-
const b = k.categories[O], y = b == null ? void 0 : b.title,
|
|
555
|
-
return { categoryId: O, categoryName: y, properties:
|
|
554
|
+
const b = k.categories[O], y = b == null ? void 0 : b.title, x = h(b.properties || {}, w, {}, p, g);
|
|
555
|
+
return { categoryId: O, categoryName: y, properties: x };
|
|
556
556
|
}) : [];
|
|
557
557
|
}
|
|
558
558
|
function r(d, g, p, w, k = "") {
|
|
559
|
-
const B = g.$ref.schema, O = g.$ref.converter, b = p[B], y = b.type,
|
|
559
|
+
const B = g.$ref.schema, O = g.$ref.converter, b = p[B], y = b.type, x = n(b), M = {}, I = e[y];
|
|
560
560
|
if (I && I.categories) {
|
|
561
|
-
const R = I.categories[d],
|
|
562
|
-
O && Object.keys(R.properties).forEach((
|
|
563
|
-
R.properties[
|
|
561
|
+
const R = I.categories[d], E = R == null ? void 0 : R.title;
|
|
562
|
+
O && Object.keys(R.properties).forEach((T) => {
|
|
563
|
+
R.properties[T].$converter = O;
|
|
564
564
|
});
|
|
565
|
-
const
|
|
566
|
-
return { categoryId: d, categoryName:
|
|
565
|
+
const F = (R == null ? void 0 : R.properties) || {}, S = h(F, M, x, b, w, k);
|
|
566
|
+
return { categoryId: d, categoryName: E, properties: S };
|
|
567
567
|
}
|
|
568
568
|
return { categoryId: d, categoryName: "", properties: [] };
|
|
569
569
|
}
|
|
@@ -571,16 +571,16 @@ function An(e, t, n) {
|
|
|
571
571
|
const B = d.type, O = n(d), b = {};
|
|
572
572
|
let y = k || e[B];
|
|
573
573
|
if (y && Object.keys(y).length === 0 && p && p.getPropConfig && (y = p.getPropConfig(w)), y && y.categories) {
|
|
574
|
-
const
|
|
574
|
+
const x = [];
|
|
575
575
|
return Object.keys(y.categories).map((M) => {
|
|
576
576
|
const I = y.categories[M];
|
|
577
577
|
if (I.$ref) {
|
|
578
|
-
|
|
578
|
+
x.push(r(M, I, d, g, w));
|
|
579
579
|
return;
|
|
580
580
|
}
|
|
581
|
-
const R = I == null ? void 0 : I.title,
|
|
582
|
-
|
|
583
|
-
}),
|
|
581
|
+
const R = I == null ? void 0 : I.title, E = I == null ? void 0 : I.tabId, F = I == null ? void 0 : I.tabName, S = I == null ? void 0 : I.hide, T = I == null ? void 0 : I.hideTitle, P = h(I.properties || {}, b, O, d, g, w, I.$converter), { setPropertyRelates: L } = I, _ = I == null ? void 0 : I.parentPropertyID;
|
|
582
|
+
x.push({ categoryId: M, categoryName: R, tabId: E, tabName: F, hide: S, properties: P, hideTitle: T, setPropertyRelates: L, parentPropertyID: _ });
|
|
583
|
+
}), x;
|
|
584
584
|
}
|
|
585
585
|
return [];
|
|
586
586
|
}
|
|
@@ -592,7 +592,7 @@ function An(e, t, n) {
|
|
|
592
592
|
}
|
|
593
593
|
const zn = {}, Hn = {};
|
|
594
594
|
An(zn, Hn, Ro);
|
|
595
|
-
const Wn = {}, qn = {}, { resolveSchemaWithDefaultValue: rl } = Vn(Wn, qn), Gn = {}, Un = {};
|
|
595
|
+
const Wn = {}, qn = {}, { getSchemaByType: Nd, resolveSchemaWithDefaultValue: rl, resolveSchemaToProps: Id, mappingSchemaToProps: jd, setDesignerContext: Rd } = Vn(Wn, qn), Gn = {}, Un = {};
|
|
596
596
|
An(Gn, Un, rl);
|
|
597
597
|
function Pe(e, t, n = /* @__PURE__ */ new Map(), a = (i, u, s, c) => u, o = {}, l = (i) => i) {
|
|
598
598
|
return Ln[t.title] = t, $n[t.title] = a, zn[t.title] = o, Hn[t.title] = l, Wn[t.title] = t, qn[t.title] = a, Gn[t.title] = o, Un[t.title] = l, (i = {}, u = !0) => {
|
|
@@ -1229,18 +1229,18 @@ class nt {
|
|
|
1229
1229
|
function Rl(e, t) {
|
|
1230
1230
|
const n = C(), a = C(), o = C(), l = C(), i = C(), u = C(), s = C(), c = C(), h = C(), f = C(), r = C(), m = C(e.resizeable), d = C(), g = C(e.draggable), p = C(!1);
|
|
1231
1231
|
function w() {
|
|
1232
|
-
const
|
|
1232
|
+
const V = a.value || document.body, j = window.getComputedStyle(V);
|
|
1233
1233
|
if (!j || !n.value)
|
|
1234
1234
|
return;
|
|
1235
1235
|
const G = re.getTransformInfo(n.value), W = {};
|
|
1236
1236
|
s.value && (W.deltaL = n.value.offsetLeft - s.value.x, W.deltaT = n.value.offsetTop - s.value.y);
|
|
1237
1237
|
const ee = j.getPropertyValue("position");
|
|
1238
|
-
W.width =
|
|
1238
|
+
W.width = V.clientWidth, W.height = V.clientHeight, W.pr = parseInt(j.getPropertyValue("padding-right"), 10), W.pb = parseInt(j.getPropertyValue("padding-bottom"), 10), W.position = j.getPropertyValue("position"), ee === "static" && (V.style.position = "relative"), W.translateX = G.x, W.translateY = G.y, f.value = W;
|
|
1239
1239
|
}
|
|
1240
|
-
function k(
|
|
1240
|
+
function k(V) {
|
|
1241
1241
|
if (n.value) {
|
|
1242
1242
|
l.value = nt.getCurrent(n.value), i.value = re.getCurrent(n.value), u.value = l.value ? nt.copy(l.value) : null, s.value = i.value ? re.copy(i.value) : null, w();
|
|
1243
|
-
const j =
|
|
1243
|
+
const j = V.target.getAttribute("type") || "";
|
|
1244
1244
|
c.value = {
|
|
1245
1245
|
n: !!j.match(/n/),
|
|
1246
1246
|
s: !!j.match(/s/),
|
|
@@ -1250,49 +1250,49 @@ function Rl(e, t) {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
1252
|
function B() {
|
|
1253
|
-
var
|
|
1253
|
+
var V, j, G, W;
|
|
1254
1254
|
if (n.value) {
|
|
1255
1255
|
const ee = n.value;
|
|
1256
|
-
c.value && ((c.value.n || c.value.s) && ((
|
|
1256
|
+
c.value && ((c.value.n || c.value.s) && ((V = u.value) != null && V.height) && (ee.style.height = u.value.height + "px"), (c.value.w || c.value.e) && ((j = u.value) != null && j.width) && (ee.style.width = u.value.width + "px"), s.value && ((G = s.value) != null && G.x && (ee.style.left = s.value.x + "px"), (W = s.value) != null && W.y && (ee.style.top = s.value.y + "px")));
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
function O() {
|
|
1260
|
-
const
|
|
1261
|
-
u.value && s.value && c.value && l.value && (u.value.height <
|
|
1260
|
+
const V = e.minHeight ? e.minHeight : 1, j = e.minWidth ? e.minWidth : 1;
|
|
1261
|
+
u.value && s.value && c.value && l.value && (u.value.height < V && (u.value.height = V, c.value.n && i.value && (s.value.y = i.value.y + (l.value.height - V))), u.value.width < j && (u.value.width = j, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - j))), e.maxHeight && u.value.height > e.maxHeight && (u.value.height = e.maxHeight, i.value && c.value.n && (s.value.y = i.value.y + (l.value.height - e.maxHeight))), e.maxWidth && u.value.width > e.maxWidth && (u.value.width = e.maxWidth, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - e.maxWidth))));
|
|
1262
1262
|
}
|
|
1263
1263
|
function b() {
|
|
1264
1264
|
if (a.value) {
|
|
1265
|
-
const
|
|
1265
|
+
const V = f.value;
|
|
1266
1266
|
if (s.value && u.value && c.value && l.value) {
|
|
1267
|
-
const j =
|
|
1268
|
-
c.value.n && s.value.y +
|
|
1267
|
+
const j = V.width - V.pr - V.deltaL - V.translateX - s.value.x, G = V.height - V.pb - V.deltaT - V.translateY - s.value.y;
|
|
1268
|
+
c.value.n && s.value.y + V.translateY < 0 && i.value && (s.value.y = -V.translateY, u.value.height = l.value.height + i.value.y + V.translateY), c.value.w && s.value.x + V.translateX < 0 && i.value && (s.value.x = -V.translateX, u.value.width = l.value.width + i.value.x + V.translateX), u.value.width > j && (u.value.width = j), u.value.height > G && (u.value.height = G);
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
|
-
function y(
|
|
1272
|
+
function y(V) {
|
|
1273
1273
|
if (!o.value || !l.value || !i.value || !c.value)
|
|
1274
1274
|
return;
|
|
1275
|
-
|
|
1276
|
-
const j =
|
|
1275
|
+
V.subtract(o.value);
|
|
1276
|
+
const j = V.x, G = V.y;
|
|
1277
1277
|
c.value.n ? (s.value.y = i.value.y + G, u.value.height = l.value.height - G) : c.value.s && (u.value.height = l.value.height + G), c.value.e ? u.value.width = l.value.width + j : c.value.w && (u.value.width = l.value.width - j, s.value.x = i.value.x + j), b(), O(), B();
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function x(V) {
|
|
1280
1280
|
if (!h.value)
|
|
1281
1281
|
return;
|
|
1282
|
-
const j = re.fromEvent(
|
|
1282
|
+
const j = re.fromEvent(V);
|
|
1283
1283
|
j && y(j);
|
|
1284
1284
|
}
|
|
1285
1285
|
function M() {
|
|
1286
1286
|
if (n.value) {
|
|
1287
1287
|
const {
|
|
1288
|
-
width:
|
|
1288
|
+
width: V,
|
|
1289
1289
|
height: j,
|
|
1290
1290
|
x: G,
|
|
1291
1291
|
y: W
|
|
1292
1292
|
} = n.value.getBoundingClientRect(), ee = re.getTransformInfo(n.value);
|
|
1293
1293
|
return {
|
|
1294
1294
|
size: {
|
|
1295
|
-
width:
|
|
1295
|
+
width: V,
|
|
1296
1296
|
height: j
|
|
1297
1297
|
},
|
|
1298
1298
|
position: {
|
|
@@ -1303,58 +1303,58 @@ function Rl(e, t) {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
return null;
|
|
1305
1305
|
}
|
|
1306
|
-
function I(
|
|
1306
|
+
function I(V) {
|
|
1307
1307
|
if (n.value) {
|
|
1308
1308
|
const j = M();
|
|
1309
1309
|
r.value = j;
|
|
1310
1310
|
}
|
|
1311
|
-
o.value = void 0, l.value = null, i.value = null, u.value = null, s.value = null, c.value = null, h.value = null, document.removeEventListener("mousemove",
|
|
1311
|
+
o.value = void 0, l.value = null, i.value = null, u.value = null, s.value = null, c.value = null, h.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", I);
|
|
1312
1312
|
}
|
|
1313
1313
|
function R() {
|
|
1314
|
-
document.addEventListener("mousemove",
|
|
1314
|
+
document.addEventListener("mousemove", x), document.addEventListener("mouseup", I);
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1317
|
-
|
|
1316
|
+
function E(V) {
|
|
1317
|
+
V instanceof MouseEvent && V.button === 2 || g.value && (document.body.click(), V.stopPropagation(), V.preventDefault(), o.value = re.fromEvent(V), h.value = V.target, k(V), R());
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return n.value =
|
|
1319
|
+
function F(V) {
|
|
1320
|
+
return n.value = V, m.value && v(ot, null, [v("div", {
|
|
1321
1321
|
class: "fv-resizable-handle fv-resizable-n",
|
|
1322
1322
|
type: "n",
|
|
1323
|
-
onMousedown: (j) =>
|
|
1323
|
+
onMousedown: (j) => E(j)
|
|
1324
1324
|
}, null), v("div", {
|
|
1325
1325
|
class: "fv-resizable-handle fv-resizable-e",
|
|
1326
1326
|
type: "e",
|
|
1327
|
-
onMousedown: (j) =>
|
|
1327
|
+
onMousedown: (j) => E(j)
|
|
1328
1328
|
}, null), v("div", {
|
|
1329
1329
|
class: "fv-resizable-handle fv-resizable-s",
|
|
1330
1330
|
type: "s",
|
|
1331
|
-
onMousedown: (j) =>
|
|
1331
|
+
onMousedown: (j) => E(j)
|
|
1332
1332
|
}, null), v("div", {
|
|
1333
1333
|
class: "fv-resizable-handle fv-resizable-w",
|
|
1334
1334
|
type: "w",
|
|
1335
|
-
onMousedown: (j) =>
|
|
1335
|
+
onMousedown: (j) => E(j)
|
|
1336
1336
|
}, null), v("div", {
|
|
1337
1337
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
1338
1338
|
type: "ne",
|
|
1339
|
-
onMousedown: (j) =>
|
|
1339
|
+
onMousedown: (j) => E(j)
|
|
1340
1340
|
}, null), v("div", {
|
|
1341
1341
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
1342
1342
|
type: "se",
|
|
1343
|
-
onMousedown: (j) =>
|
|
1343
|
+
onMousedown: (j) => E(j)
|
|
1344
1344
|
}, null), v("div", {
|
|
1345
1345
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
1346
1346
|
type: "sw",
|
|
1347
|
-
onMousedown: (j) =>
|
|
1347
|
+
onMousedown: (j) => E(j)
|
|
1348
1348
|
}, null), v("div", {
|
|
1349
1349
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
1350
1350
|
type: "nw",
|
|
1351
|
-
onMousedown: (j) =>
|
|
1351
|
+
onMousedown: (j) => E(j)
|
|
1352
1352
|
}, null)]);
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function S(V = !0) {
|
|
1355
1355
|
document.body.click();
|
|
1356
1356
|
const j = a.value || document.body, G = nt.getCurrent(j), W = n.value;
|
|
1357
|
-
|
|
1357
|
+
V && W && (d.value = M(), d.value.transform = W.style.transform), G && W && (u.value = G, u.value.height -= 14, u.value.width -= 14, W.style.height = u.value.height + "px", W.style.width = u.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", r.value = {
|
|
1358
1358
|
size: u.value,
|
|
1359
1359
|
position: {
|
|
1360
1360
|
x: 0,
|
|
@@ -1362,8 +1362,8 @@ function Rl(e, t) {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
}, g.value = !1, p.value = !0);
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1366
|
-
var
|
|
1365
|
+
function T() {
|
|
1366
|
+
var V, j;
|
|
1367
1367
|
if (document.body.click(), d.value) {
|
|
1368
1368
|
const G = {
|
|
1369
1369
|
width: d.value.size.width || 0,
|
|
@@ -1372,7 +1372,7 @@ function Rl(e, t) {
|
|
|
1372
1372
|
x: (window.innerWidth - G.width) / 2,
|
|
1373
1373
|
y: (window.innerHeight - G.height) / 2
|
|
1374
1374
|
};
|
|
1375
|
-
(
|
|
1375
|
+
(V = u.value) == null || V.set(G), (j = s.value) == null || j.set(W);
|
|
1376
1376
|
const ee = n.value;
|
|
1377
1377
|
ee.style.height = G.height + "px", ee.style.width = G.width + "px", ee.style.left = `${W.x}px`, ee.style.top = `${W.y}px`, ee.style.transform = "", r.value = {
|
|
1378
1378
|
size: G,
|
|
@@ -1380,103 +1380,103 @@ function Rl(e, t) {
|
|
|
1380
1380
|
}, g.value = e.draggable, p.value = !1;
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function P() {
|
|
1384
1384
|
if (n.value) {
|
|
1385
|
-
const
|
|
1386
|
-
if (
|
|
1385
|
+
const V = nt.getCurrent(n.value);
|
|
1386
|
+
if (V) {
|
|
1387
1387
|
const {
|
|
1388
1388
|
width: j,
|
|
1389
1389
|
height: G
|
|
1390
|
-
} =
|
|
1390
|
+
} = V;
|
|
1391
1391
|
n.value.style.left = `${(window.innerWidth - j) / 2}px`, n.value.style.top = `${(window.innerHeight - G) / 2}px`, n.value.style.transform = "";
|
|
1392
1392
|
}
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1396
|
-
const
|
|
1397
|
-
p.value ?
|
|
1395
|
+
function L() {
|
|
1396
|
+
const V = () => {
|
|
1397
|
+
p.value ? S(!1) : P(), document.body.click();
|
|
1398
1398
|
};
|
|
1399
|
-
return window.addEventListener("resize",
|
|
1400
|
-
window.removeEventListener("resize",
|
|
1399
|
+
return window.addEventListener("resize", V), () => {
|
|
1400
|
+
window.removeEventListener("resize", V);
|
|
1401
1401
|
};
|
|
1402
1402
|
}
|
|
1403
|
-
const
|
|
1403
|
+
const _ = L();
|
|
1404
1404
|
return {
|
|
1405
|
-
renderResizeBar:
|
|
1405
|
+
renderResizeBar: F,
|
|
1406
1406
|
boundingElement: a,
|
|
1407
1407
|
resizedEventParam: r,
|
|
1408
|
-
maximize:
|
|
1409
|
-
restore:
|
|
1408
|
+
maximize: S,
|
|
1409
|
+
restore: T,
|
|
1410
1410
|
allowDrag: g,
|
|
1411
1411
|
isMaximized: p,
|
|
1412
|
-
unWindowResizeHandle:
|
|
1413
|
-
moveToCenter:
|
|
1412
|
+
unWindowResizeHandle: _,
|
|
1413
|
+
moveToCenter: P
|
|
1414
1414
|
};
|
|
1415
1415
|
}
|
|
1416
1416
|
function Vl(e, t, n) {
|
|
1417
1417
|
const a = C(), o = C(e.draggable), l = C(e.lockAxis), i = C(), u = C(), s = C(!1), c = C(new re(0, 0)), h = C(new re(0, 0)), f = C(new re(0, 0)), r = C(new re(0, 0));
|
|
1418
|
-
Z(() => n.value, (
|
|
1419
|
-
i.value.style.cursor =
|
|
1418
|
+
Z(() => n.value, (x) => {
|
|
1419
|
+
i.value.style.cursor = x ? "move" : "default";
|
|
1420
1420
|
});
|
|
1421
|
-
function m(
|
|
1421
|
+
function m(x, M) {
|
|
1422
1422
|
if (M.tagName === "BUTTON")
|
|
1423
1423
|
return !1;
|
|
1424
|
-
if (M ===
|
|
1424
|
+
if (M === x)
|
|
1425
1425
|
return !0;
|
|
1426
1426
|
for (const I in M.children)
|
|
1427
|
-
if (Object.prototype.hasOwnProperty.call(M.children, I) && m(
|
|
1427
|
+
if (Object.prototype.hasOwnProperty.call(M.children, I) && m(x, M.children[I]))
|
|
1428
1428
|
return !0;
|
|
1429
1429
|
return !1;
|
|
1430
1430
|
}
|
|
1431
1431
|
function d() {
|
|
1432
|
-
var R,
|
|
1433
|
-
let
|
|
1434
|
-
l.value === "x" ? (
|
|
1435
|
-
const I = `translate3d(${Math.round(
|
|
1436
|
-
a.value && (a.value.style.transform = I), r.value.x =
|
|
1432
|
+
var R, E;
|
|
1433
|
+
let x = f.value.x + h.value.x, M = f.value.y + h.value.y;
|
|
1434
|
+
l.value === "x" ? (x = ((R = c.value) == null ? void 0 : R.x) || 0, f.value.x = 0) : l.value === "y" && (M = ((E = c.value) == null ? void 0 : E.y) || 0, f.value.y = 0);
|
|
1435
|
+
const I = `translate3d(${Math.round(x)}px, ${Math.round(M)}px, 0px)`;
|
|
1436
|
+
a.value && (a.value.style.transform = I), r.value.x = x, r.value.y = M;
|
|
1437
1437
|
}
|
|
1438
1438
|
function g() {
|
|
1439
1439
|
if (!u.value || !a.value)
|
|
1440
1440
|
return null;
|
|
1441
|
-
const
|
|
1442
|
-
top:
|
|
1443
|
-
right:
|
|
1444
|
-
bottom:
|
|
1445
|
-
left:
|
|
1441
|
+
const x = u.value.getBoundingClientRect(), M = a.value.getBoundingClientRect(), I = {
|
|
1442
|
+
top: x.top < M.top,
|
|
1443
|
+
right: x.right > M.right,
|
|
1444
|
+
bottom: x.bottom > M.bottom,
|
|
1445
|
+
left: x.left < M.left
|
|
1446
1446
|
};
|
|
1447
|
-
return I.top || (f.value.y -= M.top -
|
|
1447
|
+
return I.top || (f.value.y -= M.top - x.top), I.bottom || (f.value.y -= M.bottom - x.bottom), I.right || (f.value.x -= M.right - x.right), I.left || (f.value.x -= M.left - x.left), d(), I;
|
|
1448
1448
|
}
|
|
1449
|
-
function p(
|
|
1450
|
-
|
|
1449
|
+
function p(x) {
|
|
1450
|
+
x && (c.value && x.subtract(c.value), f.value.set(x), d(), g());
|
|
1451
1451
|
}
|
|
1452
|
-
function w(
|
|
1453
|
-
s.value && o.value && (
|
|
1452
|
+
function w(x) {
|
|
1453
|
+
s.value && o.value && (x.stopPropagation(), x.preventDefault(), p(re.fromEvent(x, i.value)));
|
|
1454
1454
|
}
|
|
1455
1455
|
function k() {
|
|
1456
|
-
var
|
|
1457
|
-
s.value && (s.value = !1, h.value.add(f.value), f.value.reset(), (
|
|
1456
|
+
var x;
|
|
1457
|
+
s.value && (s.value = !1, h.value.add(f.value), f.value.reset(), (x = a.value) == null || x.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", k));
|
|
1458
1458
|
}
|
|
1459
1459
|
function B() {
|
|
1460
1460
|
!s.value && i.value && (s.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", k));
|
|
1461
1461
|
}
|
|
1462
1462
|
function O() {
|
|
1463
1463
|
if (a.value) {
|
|
1464
|
-
const
|
|
1465
|
-
h.value.set(
|
|
1464
|
+
const x = re.getTransformInfo(a.value);
|
|
1465
|
+
h.value.set(x);
|
|
1466
1466
|
return;
|
|
1467
1467
|
}
|
|
1468
1468
|
h.value.reset();
|
|
1469
1469
|
}
|
|
1470
|
-
function b(
|
|
1471
|
-
if (!n.value ||
|
|
1470
|
+
function b(x) {
|
|
1471
|
+
if (!n.value || x instanceof MouseEvent && x.button === 2)
|
|
1472
1472
|
return;
|
|
1473
|
-
const M =
|
|
1474
|
-
i.value !== void 0 && M && !m(M, i.value) || o.value !== !1 && (document.body.click(),
|
|
1473
|
+
const M = x.target || x.srcElement;
|
|
1474
|
+
i.value !== void 0 && M && !m(M, i.value) || o.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), c.value = re.fromEvent(x, a.value), O(), B());
|
|
1475
1475
|
}
|
|
1476
|
-
function y(
|
|
1476
|
+
function y(x, M, I) {
|
|
1477
1477
|
if (o.value && M) {
|
|
1478
|
-
if (
|
|
1479
|
-
i.value =
|
|
1478
|
+
if (x)
|
|
1479
|
+
i.value = x;
|
|
1480
1480
|
else if (e.dragHandle) {
|
|
1481
1481
|
if (e.dragHandle instanceof HTMLElement)
|
|
1482
1482
|
i.value = e.dragHandle;
|
|
@@ -1531,7 +1531,7 @@ const at = /* @__PURE__ */ ae({
|
|
|
1531
1531
|
} = St();
|
|
1532
1532
|
w.value === "错误提示" && (w.value = O("messageBox.errorTitle"));
|
|
1533
1533
|
const b = C(!1);
|
|
1534
|
-
function y(
|
|
1534
|
+
function y($, Q) {
|
|
1535
1535
|
const ue = Q ? "accept" : "cancel";
|
|
1536
1536
|
Promise.resolve().then(() => {
|
|
1537
1537
|
var fe;
|
|
@@ -1539,29 +1539,29 @@ const at = /* @__PURE__ */ ae({
|
|
|
1539
1539
|
closeType: ue
|
|
1540
1540
|
});
|
|
1541
1541
|
}).then((fe) => {
|
|
1542
|
-
fe && (o.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed",
|
|
1542
|
+
fe && (o.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", $));
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
1545
|
-
const
|
|
1545
|
+
const x = [{
|
|
1546
1546
|
name: "cancel",
|
|
1547
1547
|
text: O("messageBox.cancel") || "取消",
|
|
1548
1548
|
class: "btn btn-secondary",
|
|
1549
|
-
handle: (
|
|
1550
|
-
y(
|
|
1549
|
+
handle: ($) => {
|
|
1550
|
+
y($, !1);
|
|
1551
1551
|
}
|
|
1552
1552
|
}, {
|
|
1553
1553
|
name: "accept",
|
|
1554
1554
|
text: O("messageBox.ok") || "确定",
|
|
1555
1555
|
class: "btn btn-primary",
|
|
1556
|
-
handle: (
|
|
1557
|
-
y(
|
|
1556
|
+
handle: ($) => {
|
|
1557
|
+
y($, !0);
|
|
1558
1558
|
}
|
|
1559
|
-
}], M = C(e.buttons && e.buttons.length ? e.buttons :
|
|
1560
|
-
renderResizeBar:
|
|
1561
|
-
maximize:
|
|
1562
|
-
restore:
|
|
1563
|
-
boundingElement:
|
|
1564
|
-
resizedEventParam:
|
|
1559
|
+
}], M = C(e.buttons && e.buttons.length ? e.buttons : x), I = N(() => !!c.value), R = N(() => !!p.value && !!M.value), E = C(), F = C(), S = C(!1), {
|
|
1560
|
+
renderResizeBar: T,
|
|
1561
|
+
maximize: P,
|
|
1562
|
+
restore: L,
|
|
1563
|
+
boundingElement: _,
|
|
1564
|
+
resizedEventParam: V,
|
|
1565
1565
|
allowDrag: j,
|
|
1566
1566
|
unWindowResizeHandle: G,
|
|
1567
1567
|
moveToCenter: W
|
|
@@ -1572,70 +1572,70 @@ const at = /* @__PURE__ */ ae({
|
|
|
1572
1572
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
1573
1573
|
}
|
|
1574
1574
|
function ve() {
|
|
1575
|
-
const
|
|
1576
|
-
(
|
|
1577
|
-
}
|
|
1578
|
-
Z(() => e.title, (
|
|
1579
|
-
|
|
1580
|
-
}), Z(() => e.modelValue, (
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
}),
|
|
1584
|
-
}), Z(() => e.showHeader, (
|
|
1585
|
-
|
|
1586
|
-
}), Z(() => e.showButtons, (
|
|
1587
|
-
|
|
1588
|
-
}), Z(() =>
|
|
1589
|
-
const ue =
|
|
1575
|
+
const $ = document.querySelectorAll(".farris-modal").length;
|
|
1576
|
+
(!$ || $ - 1 <= 0) && document.body.classList.remove("modal-open"), B.value && B.value.classList.remove("show");
|
|
1577
|
+
}
|
|
1578
|
+
Z(() => e.title, ($, Q) => {
|
|
1579
|
+
$ !== Q && (w.value = $);
|
|
1580
|
+
}), Z(() => e.modelValue, ($, Q) => {
|
|
1581
|
+
$ !== Q && (o.value = $, o.value && e.draggable && Ue(() => {
|
|
1582
|
+
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(E.value, F.value, _.value), W());
|
|
1583
|
+
}), $ || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (S.value = !1, j.value = e.draggable);
|
|
1584
|
+
}), Z(() => e.showHeader, ($, Q) => {
|
|
1585
|
+
$ !== Q && (s.value = $);
|
|
1586
|
+
}), Z(() => e.showButtons, ($, Q) => {
|
|
1587
|
+
$ !== Q && (p.value = $);
|
|
1588
|
+
}), Z(() => V.value, ($, Q) => {
|
|
1589
|
+
const ue = $ || {}, fe = Q || {};
|
|
1590
1590
|
JSON.stringify(ue) !== JSON.stringify(fe) && t.emit("resize", {
|
|
1591
|
-
newSize:
|
|
1591
|
+
newSize: $,
|
|
1592
1592
|
oldSize: Q,
|
|
1593
|
-
isMaximized:
|
|
1593
|
+
isMaximized: S.value
|
|
1594
1594
|
});
|
|
1595
1595
|
});
|
|
1596
1596
|
const X = N(() => (o.value && document.body.classList.add("modal-open"), o.value)), le = N(() => {
|
|
1597
1597
|
var ue;
|
|
1598
|
-
const
|
|
1598
|
+
const $ = {
|
|
1599
1599
|
modal: !0,
|
|
1600
1600
|
"farris-modal": !0,
|
|
1601
1601
|
fade: !0
|
|
1602
1602
|
};
|
|
1603
|
-
|
|
1603
|
+
$["f-modal-fitContent"] = !!u.value, $.show = !!X.value;
|
|
1604
1604
|
const Q = (ue = e.maskClass) == null ? void 0 : ue.split(" ");
|
|
1605
|
-
return Q == null || Q.reduce((fe, Ie) => (fe[Ie] = !0, fe),
|
|
1605
|
+
return Q == null || Q.reduce((fe, Ie) => (fe[Ie] = !0, fe), $), $;
|
|
1606
1606
|
}), de = N(() => {
|
|
1607
1607
|
var ue;
|
|
1608
|
-
const
|
|
1608
|
+
const $ = {
|
|
1609
1609
|
"modal-dialog": !0
|
|
1610
1610
|
}, Q = (ue = i.value) == null ? void 0 : ue.split(" ");
|
|
1611
|
-
return Q == null || Q.reduce((fe, Ie) => (fe[Ie] = !0, fe),
|
|
1611
|
+
return Q == null || Q.reduce((fe, Ie) => (fe[Ie] = !0, fe), $), $;
|
|
1612
1612
|
}), ne = N(() => {
|
|
1613
|
-
const
|
|
1613
|
+
const $ = {
|
|
1614
1614
|
position: "absolute",
|
|
1615
1615
|
top: `${(window.innerHeight - a.value) / 2}px`,
|
|
1616
1616
|
left: `${(window.innerWidth - n.value) / 2}px`,
|
|
1617
1617
|
width: `${n.value}px`,
|
|
1618
1618
|
height: u.value ? "auto" : `${a.value}px`
|
|
1619
1619
|
};
|
|
1620
|
-
return e.mask || (
|
|
1620
|
+
return e.mask || ($.pointerEvents = "auto"), $;
|
|
1621
1621
|
}), U = () => $a() || 1040, oe = N(() => {
|
|
1622
|
-
const
|
|
1622
|
+
const $ = {
|
|
1623
1623
|
display: "block",
|
|
1624
1624
|
zIndex: U()
|
|
1625
1625
|
};
|
|
1626
|
-
return e.mask || (
|
|
1626
|
+
return e.mask || ($.pointerEvents = "none", $.backgroundColor = "transparent"), b.value && ($.backgroundColor = "transparent"), $;
|
|
1627
1627
|
}), Xe = N(() => ({
|
|
1628
1628
|
"modal-content": !0,
|
|
1629
1629
|
"modal-content-has-header": s.value
|
|
1630
1630
|
})), $e = N(() => {
|
|
1631
|
-
const
|
|
1631
|
+
const $ = {
|
|
1632
1632
|
display: s.value ? "" : "none"
|
|
1633
1633
|
};
|
|
1634
|
-
return
|
|
1634
|
+
return $["pointer-events"] = j.value ? "auto" : "none", $;
|
|
1635
1635
|
}), Be = N(() => ({
|
|
1636
1636
|
"f-icon": !0,
|
|
1637
1637
|
modal_maximize: !0,
|
|
1638
|
-
modalrevert:
|
|
1638
|
+
modalrevert: S.value
|
|
1639
1639
|
})), it = N(() => ({
|
|
1640
1640
|
"modal-body": !0,
|
|
1641
1641
|
"f-utils-flex-column": m.value === "iframe",
|
|
@@ -1647,37 +1647,37 @@ const at = /* @__PURE__ */ ae({
|
|
|
1647
1647
|
};
|
|
1648
1648
|
}
|
|
1649
1649
|
const rt = N(() => {
|
|
1650
|
-
const
|
|
1650
|
+
const $ = {
|
|
1651
1651
|
textAlgin: g.value
|
|
1652
1652
|
}, Q = Je();
|
|
1653
|
-
return Object.assign(
|
|
1653
|
+
return Object.assign($, Q);
|
|
1654
1654
|
});
|
|
1655
|
-
function se(
|
|
1656
|
-
if (
|
|
1657
|
-
|
|
1655
|
+
function se($) {
|
|
1656
|
+
if ($ == null || $.stopPropagation(), S.value) {
|
|
1657
|
+
S.value = !1, L();
|
|
1658
1658
|
return;
|
|
1659
1659
|
}
|
|
1660
|
-
|
|
1660
|
+
P(), S.value = !0;
|
|
1661
1661
|
}
|
|
1662
|
-
async function mt(
|
|
1663
|
-
|
|
1662
|
+
async function mt($, Q) {
|
|
1663
|
+
$.handle && await $.handle(Q, $) && t.emit("closed", Q);
|
|
1664
1664
|
}
|
|
1665
|
-
function Ae(
|
|
1666
|
-
|
|
1665
|
+
function Ae($) {
|
|
1666
|
+
$.width && (n.value = $.width), $.height && (a.value = $.height), $.buttons && (M.value = $.buttons), $.title && (w.value = $.title);
|
|
1667
1667
|
}
|
|
1668
1668
|
let ze = null, Oe = null;
|
|
1669
1669
|
Pa(() => {
|
|
1670
1670
|
b.value = ce();
|
|
1671
1671
|
}), be(() => {
|
|
1672
|
-
|
|
1672
|
+
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(E.value, F.value, _.value)), X.value && document.body.classList.add("modal-open"), ze = Ll(e, t), Oe = $l(e, t);
|
|
1673
1673
|
}), kt(() => {
|
|
1674
1674
|
G && G(), ze && ze.remove(), Oe && Oe.remove();
|
|
1675
1675
|
}), t.expose({
|
|
1676
|
-
modalElementRef:
|
|
1676
|
+
modalElementRef: F,
|
|
1677
1677
|
updateModalOptions: Ae,
|
|
1678
1678
|
close: y,
|
|
1679
1679
|
maxDialog: se,
|
|
1680
|
-
isMaximized:
|
|
1680
|
+
isMaximized: S
|
|
1681
1681
|
});
|
|
1682
1682
|
function He() {
|
|
1683
1683
|
return v("ul", null, [r.value && v("li", {
|
|
@@ -1692,7 +1692,7 @@ const at = /* @__PURE__ */ ae({
|
|
|
1692
1692
|
class: Be.value
|
|
1693
1693
|
}, null)]), h.value && v("li", {
|
|
1694
1694
|
class: "f-btn-icon f-bare",
|
|
1695
|
-
onClick: (
|
|
1695
|
+
onClick: ($) => y($, !1),
|
|
1696
1696
|
style: "pointer-events: auto;"
|
|
1697
1697
|
}, [v("span", {
|
|
1698
1698
|
class: "f-icon modal_close"
|
|
@@ -1702,24 +1702,24 @@ const at = /* @__PURE__ */ ae({
|
|
|
1702
1702
|
return v("div", {
|
|
1703
1703
|
class: "modal-footer",
|
|
1704
1704
|
style: rt.value
|
|
1705
|
-
}, [M.value && M.value.map((
|
|
1706
|
-
const Q = C(
|
|
1705
|
+
}, [M.value && M.value.map(($) => {
|
|
1706
|
+
const Q = C($.disabled);
|
|
1707
1707
|
return v("button", {
|
|
1708
|
-
name:
|
|
1708
|
+
name: $.name,
|
|
1709
1709
|
type: "button",
|
|
1710
1710
|
disabled: Q.value,
|
|
1711
|
-
class:
|
|
1711
|
+
class: $.class + ($.iconClass ? " btn-icontext" : ""),
|
|
1712
1712
|
onClick: (ue) => {
|
|
1713
|
-
mt(
|
|
1713
|
+
mt($, ue);
|
|
1714
1714
|
}
|
|
1715
|
-
}, [
|
|
1716
|
-
class:
|
|
1717
|
-
}, null),
|
|
1715
|
+
}, [!!$.iconClass && v("i", {
|
|
1716
|
+
class: $.iconClass
|
|
1717
|
+
}, null), $.text]);
|
|
1718
1718
|
})]);
|
|
1719
1719
|
}
|
|
1720
1720
|
function Qe() {
|
|
1721
1721
|
return v("div", {
|
|
1722
|
-
ref:
|
|
1722
|
+
ref: E,
|
|
1723
1723
|
class: "modal-header",
|
|
1724
1724
|
style: $e.value
|
|
1725
1725
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
|
|
@@ -1736,34 +1736,34 @@ const at = /* @__PURE__ */ ae({
|
|
|
1736
1736
|
function Ne() {
|
|
1737
1737
|
return t.slots.footerTemplate ? t.slots.footerTemplate() : R.value && yt();
|
|
1738
1738
|
}
|
|
1739
|
-
function We(
|
|
1740
|
-
if (
|
|
1741
|
-
if (
|
|
1739
|
+
function We($) {
|
|
1740
|
+
if ($.stopPropagation(), e.allowClickMaskToClose) {
|
|
1741
|
+
if ($.target !== B.value)
|
|
1742
1742
|
return;
|
|
1743
|
-
y(
|
|
1743
|
+
y($, !1);
|
|
1744
1744
|
}
|
|
1745
1745
|
}
|
|
1746
1746
|
function st() {
|
|
1747
|
-
var
|
|
1747
|
+
var $, Q;
|
|
1748
1748
|
return v("div", {
|
|
1749
1749
|
id: l.value,
|
|
1750
1750
|
class: de.value,
|
|
1751
1751
|
style: ne.value,
|
|
1752
|
-
ref:
|
|
1752
|
+
ref: F
|
|
1753
1753
|
}, [v("div", {
|
|
1754
1754
|
class: Xe.value
|
|
1755
1755
|
}, [s.value && Qe(), v("div", {
|
|
1756
1756
|
class: it.value
|
|
1757
|
-
}, [(Q = (
|
|
1757
|
+
}, [(Q = ($ = t.slots).default) == null ? void 0 : Q.call($), m.value === "iframe" && v("iframe", {
|
|
1758
1758
|
title: l.value,
|
|
1759
1759
|
class: "f-utils-fill",
|
|
1760
1760
|
width: "100%",
|
|
1761
1761
|
frameborder: "0",
|
|
1762
1762
|
src: d.value
|
|
1763
|
-
}, null)]), Ne()]), !u.value &&
|
|
1763
|
+
}, null)]), Ne()]), !u.value && F.value && !S.value && T(F.value)]);
|
|
1764
1764
|
}
|
|
1765
|
-
function ut(
|
|
1766
|
-
return
|
|
1765
|
+
function ut($) {
|
|
1766
|
+
return $ || "body";
|
|
1767
1767
|
}
|
|
1768
1768
|
return () => v(Tn, {
|
|
1769
1769
|
to: ut(e.host)
|
|
@@ -1886,14 +1886,14 @@ class Qn {
|
|
|
1886
1886
|
});
|
|
1887
1887
|
let h;
|
|
1888
1888
|
const f = Jn(a.value), r = (b) => {
|
|
1889
|
-
var
|
|
1889
|
+
var x;
|
|
1890
1890
|
o.value = !1;
|
|
1891
|
-
const y = (
|
|
1891
|
+
const y = (x = b == null ? void 0 : b.target) == null ? void 0 : x.classList.contains("modal_close");
|
|
1892
1892
|
u(b, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
|
|
1893
1893
|
}, m = (b) => {
|
|
1894
1894
|
r(b), h && Ue(() => {
|
|
1895
1895
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Jt(null, n), h = null, this.modalRef.value = null, this.modalRefs) {
|
|
1896
|
-
const y = Object.keys(this.modalRefs).map((
|
|
1896
|
+
const y = Object.keys(this.modalRefs).map((x) => Number(x));
|
|
1897
1897
|
y.length > 0 ? this.activeModalIndex.value = Math.max(...y) : this.activeModalIndex.value = 0;
|
|
1898
1898
|
}
|
|
1899
1899
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -2062,10 +2062,10 @@ const dt = class dt {
|
|
|
2062
2062
|
*/
|
|
2063
2063
|
static getEditorTypesByMDataType(t, n = !1, a = "") {
|
|
2064
2064
|
if (n)
|
|
2065
|
-
return [{ key:
|
|
2065
|
+
return [{ key: A["language-textbox"].type, value: A["language-textbox"].name }];
|
|
2066
2066
|
let o = dt.fieldControlTypeMapping[t];
|
|
2067
2067
|
if (a === "data-grid-column" && (o != null && o.length)) {
|
|
2068
|
-
const l = [
|
|
2068
|
+
const l = [A["check-group"].type, A["radio-group"].type];
|
|
2069
2069
|
o = o.filter((i) => !l.includes(i.key));
|
|
2070
2070
|
}
|
|
2071
2071
|
return o;
|
|
@@ -2088,7 +2088,7 @@ const dt = class dt {
|
|
|
2088
2088
|
static mappingDomPropAndSchemaProp(t, n) {
|
|
2089
2089
|
var l;
|
|
2090
2090
|
const a = (l = t.editor) == null ? void 0 : l.type, o = [];
|
|
2091
|
-
return (t.type ===
|
|
2091
|
+
return (t.type === A["data-grid-column"].type || t.type === A["tree-grid-column"].type) && n && n.categoryId && n.categoryId.indexOf("gridFieldEditor") < 0 && o.push({ domField: "title", schemaField: "name" }), o.push({ domField: "label", schemaField: "name" }), o.push({ domField: "editor.required", schemaField: "require" }), o.push({ domField: "editor.readonly", schemaField: "readonly" }), (a === A["input-group"].type || a === A.textarea.type || a === A["number-spinner"].type) && o.push({ domField: "editor.maxLength", schemaField: "type.length" }), a === A["number-spinner"].type && o.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === A["data-grid-column"].type || t.type === A["tree-grid-column"].type) && o.push({ domField: "formatter.precision", schemaField: "type.precision" }), (a === A["combo-list"].type || a === A["radio-group"].type) && o.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === A["data-grid-column"].type || t.type === A["tree-grid-column"].type) && o.push({ domField: "formatter.data", schemaField: "type.enumValues" }), a === A["date-picker"].type && (o.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), o.push({ domField: "editor.fieldType", schemaField: "type.name" })), a === A["number-spinner"].type && (o.push({ domField: "editor.max", schemaField: "editor.maxValue" }), o.push({ domField: "editor.min", schemaField: "editor.minValue" })), a === A.lookup.type && (o.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), o.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), o.push({ domField: "editor.textField", schemaField: "editor.textField" }), o.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), o.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), o.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), o.push({ domField: "path", schemaField: "bindingPath" }), o.push({ domField: "binding.path", schemaField: "bindingField" }), o.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === A["data-grid-column"].type || t.type === A["tree-grid-column"].type) && o.push({ domField: "field", schemaField: "bindingPath" }), o;
|
|
2092
2092
|
}
|
|
2093
2093
|
};
|
|
2094
2094
|
/**
|
|
@@ -2096,53 +2096,53 @@ const dt = class dt {
|
|
|
2096
2096
|
*/
|
|
2097
2097
|
we(dt, "fieldControlTypeMapping", {
|
|
2098
2098
|
String: [
|
|
2099
|
-
{ key:
|
|
2100
|
-
{ key:
|
|
2101
|
-
{ key:
|
|
2102
|
-
{ key:
|
|
2103
|
-
{ key:
|
|
2104
|
-
{ key:
|
|
2105
|
-
{ key:
|
|
2106
|
-
{ key:
|
|
2107
|
-
{ key:
|
|
2108
|
-
{ key:
|
|
2099
|
+
{ key: A["input-group"].type, value: A["input-group"].name },
|
|
2100
|
+
{ key: A.lookup.type, value: A.lookup.name },
|
|
2101
|
+
{ key: A["date-picker"].type, value: A["date-picker"].name },
|
|
2102
|
+
{ key: A.switch.type, value: A.switch.name },
|
|
2103
|
+
{ key: A["check-box"].type, value: A["check-box"].name },
|
|
2104
|
+
{ key: A["check-group"].type, value: A["check-group"].name },
|
|
2105
|
+
{ key: A["radio-group"].type, value: A["radio-group"].name },
|
|
2106
|
+
{ key: A["combo-list"].type, value: A["combo-list"].name },
|
|
2107
|
+
{ key: A.textarea.type, value: A.textarea.name },
|
|
2108
|
+
{ key: A["time-picker"].type, value: A["time-picker"].name }
|
|
2109
2109
|
],
|
|
2110
2110
|
Text: [
|
|
2111
|
-
{ key:
|
|
2112
|
-
{ key:
|
|
2111
|
+
{ key: A.textarea.type, value: A.textarea.name },
|
|
2112
|
+
{ key: A.lookup.type, value: A.lookup.name }
|
|
2113
2113
|
],
|
|
2114
2114
|
Decimal: [
|
|
2115
|
-
{ key:
|
|
2115
|
+
{ key: A["number-spinner"].type, value: A["number-spinner"].name }
|
|
2116
2116
|
],
|
|
2117
2117
|
Integer: [
|
|
2118
|
-
{ key:
|
|
2118
|
+
{ key: A["number-spinner"].type, value: A["number-spinner"].name }
|
|
2119
2119
|
],
|
|
2120
2120
|
Number: [
|
|
2121
|
-
{ key:
|
|
2122
|
-
{ key:
|
|
2123
|
-
{ key:
|
|
2121
|
+
{ key: A["number-spinner"].type, value: A["number-spinner"].name },
|
|
2122
|
+
{ key: A.switch.type, value: A.switch.name },
|
|
2123
|
+
{ key: A["check-box"].type, value: A["check-box"].name }
|
|
2124
2124
|
],
|
|
2125
2125
|
BigNumber: [
|
|
2126
|
-
{ key:
|
|
2126
|
+
{ key: A["number-spinner"].type, value: A["number-spinner"].name }
|
|
2127
2127
|
],
|
|
2128
2128
|
Date: [
|
|
2129
|
-
{ key:
|
|
2129
|
+
{ key: A["date-picker"].type, value: A["date-picker"].name }
|
|
2130
2130
|
],
|
|
2131
2131
|
DateTime: [
|
|
2132
|
-
{ key:
|
|
2132
|
+
{ key: A["date-picker"].type, value: A["date-picker"].name }
|
|
2133
2133
|
],
|
|
2134
2134
|
Boolean: [
|
|
2135
|
-
{ key:
|
|
2136
|
-
{ key:
|
|
2135
|
+
{ key: A.switch.type, value: A.switch.name },
|
|
2136
|
+
{ key: A["check-box"].type, value: A["check-box"].name }
|
|
2137
2137
|
],
|
|
2138
2138
|
Enum: [
|
|
2139
|
-
{ key:
|
|
2140
|
-
{ key:
|
|
2139
|
+
{ key: A["combo-list"].type, value: A["combo-list"].name },
|
|
2140
|
+
{ key: A["radio-group"].type, value: A["radio-group"].name }
|
|
2141
2141
|
],
|
|
2142
2142
|
Object: [
|
|
2143
|
-
{ key:
|
|
2144
|
-
{ key:
|
|
2145
|
-
{ key:
|
|
2143
|
+
{ key: A.lookup.type, value: A.lookup.name },
|
|
2144
|
+
{ key: A["combo-list"].type, value: A["combo-list"].name },
|
|
2145
|
+
{ key: A["radio-group"].type, value: A["radio-group"].name }
|
|
2146
2146
|
]
|
|
2147
2147
|
});
|
|
2148
2148
|
let gn = dt;
|
|
@@ -2200,173 +2200,173 @@ var Jl = { exports: {} };
|
|
|
2200
2200
|
2: [function(n, a, o) {
|
|
2201
2201
|
(function(l) {
|
|
2202
2202
|
var i = n("contra/emitter"), u = n("crossvent"), s = n("./classes"), c = document, h = c.documentElement;
|
|
2203
|
-
function f(
|
|
2204
|
-
var
|
|
2205
|
-
|
|
2206
|
-
var
|
|
2207
|
-
U.moves === void 0 && (U.moves = k), U.accepts === void 0 && (U.accepts = k), U.invalid === void 0 && (U.invalid = yt), U.containers === void 0 && (U.containers =
|
|
2203
|
+
function f(E, F) {
|
|
2204
|
+
var S = arguments.length;
|
|
2205
|
+
S === 1 && Array.isArray(E) === !1 && (F = E, E = []);
|
|
2206
|
+
var T, P, L, _, V, j, G, W, ee, ce = null, ve, X, le = !1, de = 0, ne, U = F || {};
|
|
2207
|
+
U.moves === void 0 && (U.moves = k), U.accepts === void 0 && (U.accepts = k), U.invalid === void 0 && (U.invalid = yt), U.containers === void 0 && (U.containers = E || []), U.isContainer === void 0 && (U.isContainer = w), U.copy === void 0 && (U.copy = !1), U.copySortSource === void 0 && (U.copySortSource = !1), U.revertOnSpill === void 0 && (U.revertOnSpill = !1), U.removeOnSpill === void 0 && (U.removeOnSpill = !1), U.direction === void 0 && (U.direction = "vertical"), U.ignoreInputTextSelection === void 0 && (U.ignoreInputTextSelection = !0), U.mirrorContainer === void 0 && (U.mirrorContainer = c.body);
|
|
2208
2208
|
var oe = i({
|
|
2209
2209
|
containers: U.containers,
|
|
2210
2210
|
start: Oe,
|
|
2211
2211
|
end: Qe,
|
|
2212
|
-
cancel:
|
|
2212
|
+
cancel: $,
|
|
2213
2213
|
remove: ut,
|
|
2214
2214
|
destroy: Je,
|
|
2215
2215
|
canMove: ze,
|
|
2216
2216
|
dragging: !1
|
|
2217
2217
|
});
|
|
2218
2218
|
return U.removeOnSpill === !0 && oe.on("over", $t).on("out", At), $e(), oe;
|
|
2219
|
-
function Xe(
|
|
2220
|
-
return oe.containers.indexOf(
|
|
2219
|
+
function Xe(D) {
|
|
2220
|
+
return oe.containers.indexOf(D) !== -1 || U.isContainer(D);
|
|
2221
2221
|
}
|
|
2222
|
-
function $e(
|
|
2223
|
-
var
|
|
2224
|
-
d(h,
|
|
2222
|
+
function $e(D) {
|
|
2223
|
+
var z = D ? "remove" : "add";
|
|
2224
|
+
d(h, z, "mousedown", se), d(h, z, "mouseup", We);
|
|
2225
2225
|
}
|
|
2226
|
-
function Be(
|
|
2227
|
-
var
|
|
2228
|
-
d(h,
|
|
2226
|
+
function Be(D) {
|
|
2227
|
+
var z = D ? "remove" : "add";
|
|
2228
|
+
d(h, z, "mousemove", mt);
|
|
2229
2229
|
}
|
|
2230
|
-
function it(
|
|
2231
|
-
var
|
|
2232
|
-
u[
|
|
2230
|
+
function it(D) {
|
|
2231
|
+
var z = D ? "remove" : "add";
|
|
2232
|
+
u[z](h, "selectstart", rt), u[z](h, "click", rt);
|
|
2233
2233
|
}
|
|
2234
2234
|
function Je() {
|
|
2235
2235
|
$e(!0), We({});
|
|
2236
2236
|
}
|
|
2237
|
-
function rt(
|
|
2238
|
-
ve &&
|
|
2237
|
+
function rt(D) {
|
|
2238
|
+
ve && D.preventDefault();
|
|
2239
2239
|
}
|
|
2240
|
-
function se(
|
|
2241
|
-
|
|
2242
|
-
var
|
|
2243
|
-
if (!
|
|
2244
|
-
var H =
|
|
2245
|
-
|
|
2240
|
+
function se(D) {
|
|
2241
|
+
_ = D.clientX, V = D.clientY;
|
|
2242
|
+
var z = g(D) !== 1 || D.metaKey || D.ctrlKey;
|
|
2243
|
+
if (!z) {
|
|
2244
|
+
var H = D.target, Y = Ae(H);
|
|
2245
|
+
Y && (ve = Y, Be(), D.type === "mousedown" && (y(H) ? H.focus() : D.preventDefault()));
|
|
2246
2246
|
}
|
|
2247
2247
|
}
|
|
2248
|
-
function mt(
|
|
2248
|
+
function mt(D) {
|
|
2249
2249
|
if (ve) {
|
|
2250
|
-
if (g(
|
|
2250
|
+
if (g(D) === 0) {
|
|
2251
2251
|
We({});
|
|
2252
2252
|
return;
|
|
2253
2253
|
}
|
|
2254
|
-
if (!(
|
|
2254
|
+
if (!(D.clientX !== void 0 && Math.abs(D.clientX - _) <= (U.slideFactorX || 0) && D.clientY !== void 0 && Math.abs(D.clientY - V) <= (U.slideFactorY || 0))) {
|
|
2255
2255
|
if (U.ignoreInputTextSelection) {
|
|
2256
|
-
var
|
|
2257
|
-
if (y(
|
|
2256
|
+
var z = R("clientX", D) || 0, H = R("clientY", D) || 0, Y = c.elementFromPoint(z, H);
|
|
2257
|
+
if (y(Y))
|
|
2258
2258
|
return;
|
|
2259
2259
|
}
|
|
2260
2260
|
var K = ve;
|
|
2261
|
-
Be(!0), it(), Qe(), He(K), s.add(W ||
|
|
2261
|
+
Be(!0), it(), Qe(), He(K), s.add(W || L, "gu-transit"), Ht(), zt(), de = 0, Ie(D);
|
|
2262
2262
|
}
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
|
-
function Ae(
|
|
2266
|
-
if (!(oe.dragging &&
|
|
2267
|
-
for (var
|
|
2268
|
-
if (U.invalid(
|
|
2265
|
+
function Ae(D) {
|
|
2266
|
+
if (!(oe.dragging && T) && !Xe(D)) {
|
|
2267
|
+
for (var z = D; b(D) && Xe(b(D)) === !1; )
|
|
2268
|
+
if (U.invalid(D, z) || (D = b(D), !D))
|
|
2269
2269
|
return;
|
|
2270
|
-
var H = b(
|
|
2271
|
-
if (H && !U.invalid(
|
|
2272
|
-
var
|
|
2273
|
-
if (
|
|
2270
|
+
var H = b(D);
|
|
2271
|
+
if (H && !U.invalid(D, z)) {
|
|
2272
|
+
var Y = U.moves(D, H, z, M(D));
|
|
2273
|
+
if (Y)
|
|
2274
2274
|
return {
|
|
2275
|
-
item:
|
|
2275
|
+
item: D,
|
|
2276
2276
|
source: H
|
|
2277
2277
|
};
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
2280
|
}
|
|
2281
|
-
function ze(
|
|
2282
|
-
return !!Ae(
|
|
2281
|
+
function ze(D) {
|
|
2282
|
+
return !!Ae(D);
|
|
2283
2283
|
}
|
|
2284
|
-
function Oe(
|
|
2285
|
-
var
|
|
2286
|
-
|
|
2284
|
+
function Oe(D) {
|
|
2285
|
+
var z = Ae(D);
|
|
2286
|
+
z && He(z);
|
|
2287
2287
|
}
|
|
2288
|
-
function He(
|
|
2289
|
-
Xt(
|
|
2288
|
+
function He(D) {
|
|
2289
|
+
Xt(D.item, D.source) && (W = D.item.cloneNode(!0), oe.emit("cloned", W, D.item, "copy")), P = D.source, L = D.item, j = G = M(D.item), oe.dragging = !0, oe.emit("drag", L, P);
|
|
2290
2290
|
}
|
|
2291
2291
|
function yt() {
|
|
2292
2292
|
return !1;
|
|
2293
2293
|
}
|
|
2294
2294
|
function Qe() {
|
|
2295
2295
|
if (oe.dragging) {
|
|
2296
|
-
var
|
|
2297
|
-
st(
|
|
2296
|
+
var D = W || L;
|
|
2297
|
+
st(D, b(D));
|
|
2298
2298
|
}
|
|
2299
2299
|
}
|
|
2300
2300
|
function Ne() {
|
|
2301
2301
|
ve = !1, Be(!0), it(!0);
|
|
2302
2302
|
}
|
|
2303
|
-
function We(
|
|
2303
|
+
function We(D) {
|
|
2304
2304
|
if (Ne(), !!oe.dragging) {
|
|
2305
|
-
var
|
|
2306
|
-
te && (W && U.copySortSource || !W || te !==
|
|
2305
|
+
var z = W || L, H = R("clientX", D) || 0, Y = R("clientY", D) || 0, K = p(T, H, Y), te = fe(K, H, Y);
|
|
2306
|
+
te && (W && U.copySortSource || !W || te !== P) ? st(z, te) : U.removeOnSpill ? ut() : $();
|
|
2307
2307
|
}
|
|
2308
2308
|
}
|
|
2309
|
-
function st(
|
|
2310
|
-
var H = b(
|
|
2311
|
-
W && U.copySortSource &&
|
|
2309
|
+
function st(D, z) {
|
|
2310
|
+
var H = b(D);
|
|
2311
|
+
W && U.copySortSource && z === P && H.removeChild(L), ue(z) ? oe.emit("cancel", D, P) : oe.emit("drop", D, z, P, G), Q();
|
|
2312
2312
|
}
|
|
2313
2313
|
function ut() {
|
|
2314
2314
|
if (oe.dragging) {
|
|
2315
|
-
var
|
|
2316
|
-
|
|
2315
|
+
var D = W || L, z = b(D);
|
|
2316
|
+
z && z.removeChild(D), oe.emit(W ? "cancel" : "remove", D, z, P), Q();
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function $(D) {
|
|
2320
2320
|
if (oe.dragging) {
|
|
2321
|
-
var
|
|
2322
|
-
K === !1 &&
|
|
2321
|
+
var z = arguments.length > 0 ? D : U.revertOnSpill, H = W || L, Y = b(H), K = ue(Y);
|
|
2322
|
+
K === !1 && z && (W ? Y && Y.removeChild(W) : P.insertBefore(H, j)), K || z ? oe.emit("cancel", H, P, P) : oe.emit("drop", H, Y, P, G), Q();
|
|
2323
2323
|
}
|
|
2324
2324
|
}
|
|
2325
2325
|
function Q() {
|
|
2326
|
-
var
|
|
2327
|
-
Ne(), Wt(), qt(),
|
|
2326
|
+
var D = W || L;
|
|
2327
|
+
Ne(), Wt(), qt(), D && s.rm(D, "gu-transit"), ee && clearTimeout(ee), oe.dragging = !1, ce && oe.emit("out", D, ce, P), oe.emit("dragend", D, de), P = L = W = j = G = ee = ce = null;
|
|
2328
2328
|
}
|
|
2329
|
-
function ue(
|
|
2329
|
+
function ue(D, z) {
|
|
2330
2330
|
var H;
|
|
2331
|
-
return
|
|
2331
|
+
return z !== void 0 ? H = z : T ? H = G : H = M(W || L), D === P && H === j;
|
|
2332
2332
|
}
|
|
2333
|
-
function fe(
|
|
2334
|
-
for (var
|
|
2335
|
-
|
|
2336
|
-
return
|
|
2333
|
+
function fe(D, z, H) {
|
|
2334
|
+
for (var Y = D; Y && !K(); )
|
|
2335
|
+
Y = b(Y);
|
|
2336
|
+
return Y;
|
|
2337
2337
|
function K() {
|
|
2338
|
-
var te = Xe(
|
|
2338
|
+
var te = Xe(Y);
|
|
2339
2339
|
if (te === !1)
|
|
2340
2340
|
return !1;
|
|
2341
|
-
var Te = Ft(
|
|
2342
|
-
return Se ? !0 : U.accepts(
|
|
2341
|
+
var Te = Ft(Y, D), Ce = Tt(Y, Te, z, H), Se = ue(Y, Ce);
|
|
2342
|
+
return Se ? !0 : U.accepts(L, Y, P, Ce);
|
|
2343
2343
|
}
|
|
2344
2344
|
}
|
|
2345
|
-
function Ie(
|
|
2346
|
-
if (!
|
|
2345
|
+
function Ie(D) {
|
|
2346
|
+
if (!T)
|
|
2347
2347
|
return;
|
|
2348
|
-
|
|
2349
|
-
var
|
|
2350
|
-
|
|
2351
|
-
var
|
|
2348
|
+
D.preventDefault();
|
|
2349
|
+
var z = R("clientX", D) || 0, H = R("clientY", D) || 0;
|
|
2350
|
+
T.style.left = z - 2 + "px", T.style.top = H - 2 + "px";
|
|
2351
|
+
var Y = W || L, K = p(T, z, H), te = fe(K, z, H), Te = te !== null && te !== ce;
|
|
2352
2352
|
(Te || te === null) && (xe(), ce = te, Ee()), Yt(K, H);
|
|
2353
|
-
var Ce = b(
|
|
2354
|
-
if (te ===
|
|
2355
|
-
Ce && Ce.removeChild(
|
|
2353
|
+
var Ce = b(Y);
|
|
2354
|
+
if (te === P && W && !U.copySortSource) {
|
|
2355
|
+
Ce && Ce.removeChild(Y);
|
|
2356
2356
|
return;
|
|
2357
2357
|
}
|
|
2358
2358
|
var Se, Me = Ft(te, K);
|
|
2359
2359
|
if (le = vt(Me, te), Me !== null)
|
|
2360
|
-
Se = Tt(te, Me,
|
|
2360
|
+
Se = Tt(te, Me, z, H);
|
|
2361
2361
|
else if (U.revertOnSpill === !0 && !W)
|
|
2362
|
-
Se = j, te =
|
|
2362
|
+
Se = j, te = P;
|
|
2363
2363
|
else {
|
|
2364
|
-
W && Ce && Ce.removeChild(
|
|
2364
|
+
W && Ce && Ce.removeChild(Y), W && X && (X.style.display = "none");
|
|
2365
2365
|
return;
|
|
2366
2366
|
}
|
|
2367
|
-
X.style.display = "block", Lt(Se,
|
|
2367
|
+
X.style.display = "block", Lt(Se, Y, Te), Se ? Ut(Me, Se) : _t(te);
|
|
2368
2368
|
function pe(he) {
|
|
2369
|
-
oe.emit(he,
|
|
2369
|
+
oe.emit(he, Y, ce, P);
|
|
2370
2370
|
}
|
|
2371
2371
|
function Ee() {
|
|
2372
2372
|
Te && pe("over");
|
|
@@ -2375,64 +2375,64 @@ var Jl = { exports: {} };
|
|
|
2375
2375
|
ce && pe("out");
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
|
-
function Lt(
|
|
2379
|
-
(
|
|
2378
|
+
function Lt(D, z, H) {
|
|
2379
|
+
(D === z || D === M(z)) && (G = M(z)), (D === null && H || D !== z && D !== M(z)) && (G = D);
|
|
2380
2380
|
}
|
|
2381
|
-
function $t(
|
|
2382
|
-
s.rm(
|
|
2381
|
+
function $t(D) {
|
|
2382
|
+
s.rm(D, "gu-hide");
|
|
2383
2383
|
}
|
|
2384
|
-
function At(
|
|
2385
|
-
oe.dragging && s.add(
|
|
2384
|
+
function At(D) {
|
|
2385
|
+
oe.dragging && s.add(D, "gu-hide");
|
|
2386
2386
|
}
|
|
2387
2387
|
function zt() {
|
|
2388
|
-
|
|
2388
|
+
T || (T = document.createElement("div"), T.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", T.innerHTML = U.getMirrorText && U.getMirrorText(L) || "控件", s.add(T, "gu-mirror"), U.mirrorContainer.appendChild(T), d(h, "add", "mousemove", Ie), s.add(U.mirrorContainer, "gu-unselectable"), oe.emit("cloned", T, L, "mirror"));
|
|
2389
2389
|
}
|
|
2390
2390
|
function Ht() {
|
|
2391
|
-
if (X = document.createElement("div"), s.add(X, "gu-insertion"),
|
|
2392
|
-
var
|
|
2393
|
-
X.style.left =
|
|
2391
|
+
if (X = document.createElement("div"), s.add(X, "gu-insertion"), L) {
|
|
2392
|
+
var D = L.getBoundingClientRect();
|
|
2393
|
+
X.style.left = D.left + "px", X.style.top = D.top + "px";
|
|
2394
2394
|
}
|
|
2395
2395
|
le = !1, U.mirrorContainer.appendChild(X);
|
|
2396
2396
|
}
|
|
2397
2397
|
function Wt() {
|
|
2398
|
-
|
|
2398
|
+
T && (s.rm(U.mirrorContainer, "gu-unselectable"), d(h, "remove", "mousemove", Ie), b(T).removeChild(T), T = null);
|
|
2399
2399
|
}
|
|
2400
2400
|
function qt() {
|
|
2401
2401
|
X && (b(X).removeChild(X), X = null);
|
|
2402
2402
|
}
|
|
2403
|
-
function Ft(
|
|
2404
|
-
for (var H =
|
|
2403
|
+
function Ft(D, z) {
|
|
2404
|
+
for (var H = z; H !== D && b(H) !== D; )
|
|
2405
2405
|
H = b(H);
|
|
2406
2406
|
return H === h ? null : H;
|
|
2407
2407
|
}
|
|
2408
|
-
function vt(
|
|
2409
|
-
if (!
|
|
2408
|
+
function vt(D, z) {
|
|
2409
|
+
if (!z)
|
|
2410
2410
|
return le;
|
|
2411
|
-
var H =
|
|
2411
|
+
var H = D || z && z.lastElementChild;
|
|
2412
2412
|
if (!H)
|
|
2413
2413
|
return !0;
|
|
2414
|
-
var
|
|
2414
|
+
var Y = getComputedStyle(D), K = /^inline/.test(Y.getPropertyValue("display")) || /^(left|right)$/.test(Y.getPropertyValue("float"));
|
|
2415
2415
|
if (K)
|
|
2416
2416
|
return !0;
|
|
2417
|
-
if (
|
|
2418
|
-
var te = getComputedStyle(
|
|
2417
|
+
if (z) {
|
|
2418
|
+
var te = getComputedStyle(z), Te = te.getPropertyValue("display");
|
|
2419
2419
|
if (/flex$/.test(Te)) {
|
|
2420
2420
|
var Ce = te.getPropertyValue("flex-direction") || "row";
|
|
2421
2421
|
if (Ce === "row" || Ce === "row-reverse")
|
|
2422
|
-
return !Gt(
|
|
2422
|
+
return !Gt(z);
|
|
2423
2423
|
}
|
|
2424
2424
|
return !1;
|
|
2425
2425
|
}
|
|
2426
2426
|
return !0;
|
|
2427
2427
|
}
|
|
2428
|
-
function Gt(
|
|
2429
|
-
if (!
|
|
2428
|
+
function Gt(D) {
|
|
2429
|
+
if (!D.children || !D.children.length)
|
|
2430
2430
|
return !1;
|
|
2431
|
-
for (const
|
|
2432
|
-
const
|
|
2433
|
-
if (!
|
|
2431
|
+
for (const z of Array.from(D.children)) {
|
|
2432
|
+
const Y = (z.className && z.className.split(" ") || []).filter((K) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(K));
|
|
2433
|
+
if (!Y.length)
|
|
2434
2434
|
return !1;
|
|
2435
|
-
for (const K of
|
|
2435
|
+
for (const K of Y) {
|
|
2436
2436
|
const te = K.slice(K.lastIndexOf("-") + 1);
|
|
2437
2437
|
if (parseInt(te, 10) !== 12)
|
|
2438
2438
|
return !1;
|
|
@@ -2440,118 +2440,118 @@ var Jl = { exports: {} };
|
|
|
2440
2440
|
}
|
|
2441
2441
|
return !0;
|
|
2442
2442
|
}
|
|
2443
|
-
function Ut(
|
|
2444
|
-
const H =
|
|
2443
|
+
function Ut(D, z) {
|
|
2444
|
+
const H = z.getBoundingClientRect();
|
|
2445
2445
|
if (X.style.left = H.left + "px", X.style.top = H.top + "px", le) {
|
|
2446
|
-
if (X.style.height = H.height + "px", X.style.width = "4px",
|
|
2447
|
-
const
|
|
2448
|
-
|
|
2446
|
+
if (X.style.height = H.height + "px", X.style.width = "4px", D) {
|
|
2447
|
+
const Y = D.getBoundingClientRect();
|
|
2448
|
+
Y.top !== H.top && (X.style.left = Y.right + "px", X.style.top = Y.top + "px", X.style.height = Y.height + "px");
|
|
2449
2449
|
}
|
|
2450
2450
|
} else if (X.style.height = "4px", X.style.width = H.width + "px", ne) {
|
|
2451
|
-
const
|
|
2452
|
-
H.top <
|
|
2451
|
+
const Y = ne.getBoundingClientRect();
|
|
2452
|
+
H.top < Y.top && (X.style.display = "none");
|
|
2453
2453
|
}
|
|
2454
|
-
|
|
2454
|
+
z === L && L && (X.style.display = "none");
|
|
2455
2455
|
}
|
|
2456
|
-
function _t(
|
|
2456
|
+
function _t(D) {
|
|
2457
2457
|
G = null;
|
|
2458
|
-
var
|
|
2459
|
-
if (
|
|
2460
|
-
var H =
|
|
2461
|
-
le ? (X.style.left = H.right + "px", X.style.top = H.top + "px", X.style.height = H.height + "px", X.style.width = "4px") : (X.style.left = H.left + "px", X.style.top = H.bottom + "px", X.style.height = "4px", X.style.width = H.width + "px"),
|
|
2458
|
+
var z = D.lastElementChild;
|
|
2459
|
+
if (z) {
|
|
2460
|
+
var H = z.getBoundingClientRect();
|
|
2461
|
+
le ? (X.style.left = H.right + "px", X.style.top = H.top + "px", X.style.height = H.height + "px", X.style.width = "4px") : (X.style.left = H.left + "px", X.style.top = H.bottom + "px", X.style.height = "4px", X.style.width = H.width + "px"), z === L && L && (X.style.display = "none");
|
|
2462
2462
|
} else
|
|
2463
2463
|
X.style.display = "none";
|
|
2464
2464
|
}
|
|
2465
|
-
function Yt(
|
|
2466
|
-
if (!U.mirrorContainer.contains(
|
|
2465
|
+
function Yt(D, z) {
|
|
2466
|
+
if (!U.mirrorContainer.contains(D) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ne = r(D), !ne || !ne.contains(D)))
|
|
2467
2467
|
return;
|
|
2468
|
-
const H = document.querySelector(".dgComponentSelected"),
|
|
2469
|
-
if (
|
|
2468
|
+
const H = document.querySelector(".dgComponentSelected"), Y = ne.getBoundingClientRect();
|
|
2469
|
+
if (z - 30 < Y.top && ne.scrollTop > 0) {
|
|
2470
2470
|
let K = ne.scrollTop < 10 ? ne.scrollTop : 10;
|
|
2471
2471
|
ne.scrollBy(0, -1 * K), H && ne.contains(H) && (de = de + -1 * K);
|
|
2472
2472
|
}
|
|
2473
|
-
if (
|
|
2473
|
+
if (z + 30 > Y.bottom && ne.scrollTop < ne.scrollHeight - ne.clientHeight) {
|
|
2474
2474
|
const K = ne.scrollHeight - ne.clientHeight - ne.scrollTop;
|
|
2475
2475
|
let te = K < 10 ? K : 10;
|
|
2476
2476
|
ne.scrollBy(0, te), H && ne.contains(H) && (de = de + te);
|
|
2477
2477
|
}
|
|
2478
2478
|
}
|
|
2479
|
-
function Tt(
|
|
2480
|
-
var K = U.direction === "horizontal", te = U.direction === "mixed", Te =
|
|
2479
|
+
function Tt(D, z, H, Y) {
|
|
2480
|
+
var K = U.direction === "horizontal", te = U.direction === "mixed", Te = z !== D ? Se() : Ce();
|
|
2481
2481
|
return Te;
|
|
2482
2482
|
function Ce() {
|
|
2483
|
-
var pe =
|
|
2483
|
+
var pe = D.children.length, Ee, xe, he;
|
|
2484
2484
|
for (Ee = 0; Ee < pe; Ee++)
|
|
2485
|
-
if (xe =
|
|
2485
|
+
if (xe = D.children[Ee], he = xe.getBoundingClientRect(), K && he.left + he.width / 2 > H || !te && !K && he.top + he.height / 2 > Y || te && he.left + he.width > H && he.top + he.height > Y)
|
|
2486
2486
|
return xe;
|
|
2487
2487
|
return null;
|
|
2488
2488
|
}
|
|
2489
2489
|
function Se() {
|
|
2490
|
-
var pe =
|
|
2490
|
+
var pe = z.getBoundingClientRect();
|
|
2491
2491
|
if (te) {
|
|
2492
|
-
var Ee =
|
|
2492
|
+
var Ee = Y - pe.top, xe = H - pe.left, he = pe.bottom - Y, ht = pe.right - H, gt = Math.min(xe, ht, Ee, he), bt;
|
|
2493
2493
|
return le ? bt = ht < xe : bt = he === gt || ht === gt || xe === gt, Me(bt);
|
|
2494
2494
|
}
|
|
2495
|
-
return Me(K ? H > pe.left + B(pe) / 2 :
|
|
2495
|
+
return Me(K ? H > pe.left + B(pe) / 2 : Y > pe.top + O(pe) / 2);
|
|
2496
2496
|
}
|
|
2497
2497
|
function Me(pe) {
|
|
2498
|
-
return pe ? M(
|
|
2498
|
+
return pe ? M(z) : z;
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
2501
|
-
function Xt(
|
|
2502
|
-
return typeof U.copy == "boolean" ? U.copy : U.copy(
|
|
2501
|
+
function Xt(D, z) {
|
|
2502
|
+
return typeof U.copy == "boolean" ? U.copy : U.copy(D, z);
|
|
2503
2503
|
}
|
|
2504
2504
|
}
|
|
2505
|
-
function r(
|
|
2506
|
-
const
|
|
2507
|
-
if (
|
|
2508
|
-
const
|
|
2509
|
-
return document.getElementById(
|
|
2505
|
+
function r(E) {
|
|
2506
|
+
const F = Array.from(window.scrollContainerList);
|
|
2507
|
+
if (F.length === 1) {
|
|
2508
|
+
const T = Array.from(window.scrollContainerList)[0];
|
|
2509
|
+
return document.getElementById(T);
|
|
2510
2510
|
}
|
|
2511
|
-
const
|
|
2512
|
-
for (const
|
|
2513
|
-
if (
|
|
2514
|
-
return
|
|
2511
|
+
const S = m(F);
|
|
2512
|
+
for (const T of S)
|
|
2513
|
+
if (T.contains(E))
|
|
2514
|
+
return T;
|
|
2515
2515
|
return null;
|
|
2516
2516
|
}
|
|
2517
|
-
function m(
|
|
2518
|
-
const
|
|
2519
|
-
return
|
|
2520
|
-
const
|
|
2521
|
-
|
|
2522
|
-
}),
|
|
2517
|
+
function m(E) {
|
|
2518
|
+
const F = [];
|
|
2519
|
+
return E.forEach((S) => {
|
|
2520
|
+
const T = document.getElementById(S);
|
|
2521
|
+
T && F.push(T);
|
|
2522
|
+
}), F.sort((S, T) => S.contains(T) ? 1 : T.contains(S) ? -1 : 0), F;
|
|
2523
2523
|
}
|
|
2524
|
-
function d(
|
|
2525
|
-
var
|
|
2524
|
+
function d(E, F, S, T) {
|
|
2525
|
+
var P = {
|
|
2526
2526
|
mouseup: "touchend",
|
|
2527
2527
|
mousedown: "touchstart",
|
|
2528
2528
|
mousemove: "touchmove"
|
|
2529
|
-
},
|
|
2529
|
+
}, L = {
|
|
2530
2530
|
mouseup: "pointerup",
|
|
2531
2531
|
mousedown: "pointerdown",
|
|
2532
2532
|
mousemove: "pointermove"
|
|
2533
|
-
},
|
|
2533
|
+
}, _ = {
|
|
2534
2534
|
mouseup: "MSPointerUp",
|
|
2535
2535
|
mousedown: "MSPointerDown",
|
|
2536
2536
|
mousemove: "MSPointerMove"
|
|
2537
2537
|
};
|
|
2538
|
-
l.navigator.pointerEnabled ? u[
|
|
2538
|
+
l.navigator.pointerEnabled ? u[F](E, L[S], T) : l.navigator.msPointerEnabled ? u[F](E, _[S], T) : (u[F](E, P[S], T), u[F](E, S, T));
|
|
2539
2539
|
}
|
|
2540
|
-
function g(
|
|
2541
|
-
if (
|
|
2542
|
-
return
|
|
2543
|
-
if (
|
|
2544
|
-
return
|
|
2545
|
-
if (
|
|
2546
|
-
return
|
|
2547
|
-
var
|
|
2548
|
-
if (
|
|
2549
|
-
return
|
|
2540
|
+
function g(E) {
|
|
2541
|
+
if (E.touches !== void 0)
|
|
2542
|
+
return E.touches.length;
|
|
2543
|
+
if (E.which !== void 0 && E.which !== 0)
|
|
2544
|
+
return E.which;
|
|
2545
|
+
if (E.buttons !== void 0)
|
|
2546
|
+
return E.buttons;
|
|
2547
|
+
var F = E.button;
|
|
2548
|
+
if (F !== void 0)
|
|
2549
|
+
return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
|
|
2550
2550
|
}
|
|
2551
|
-
function p(
|
|
2552
|
-
|
|
2553
|
-
var
|
|
2554
|
-
return
|
|
2551
|
+
function p(E, F, S) {
|
|
2552
|
+
E = E || {};
|
|
2553
|
+
var T = E.className || "", P;
|
|
2554
|
+
return E.className += " gu-hide", P = c.elementFromPoint(F, S), E.className = T, P;
|
|
2555
2555
|
}
|
|
2556
2556
|
function w() {
|
|
2557
2557
|
return !1;
|
|
@@ -2559,42 +2559,42 @@ var Jl = { exports: {} };
|
|
|
2559
2559
|
function k() {
|
|
2560
2560
|
return !0;
|
|
2561
2561
|
}
|
|
2562
|
-
function B(
|
|
2563
|
-
return
|
|
2562
|
+
function B(E) {
|
|
2563
|
+
return E.width || E.right - E.left;
|
|
2564
2564
|
}
|
|
2565
|
-
function O(
|
|
2566
|
-
return
|
|
2565
|
+
function O(E) {
|
|
2566
|
+
return E.height || E.bottom - E.top;
|
|
2567
2567
|
}
|
|
2568
|
-
function b(
|
|
2569
|
-
return
|
|
2568
|
+
function b(E) {
|
|
2569
|
+
return E.parentNode === c ? null : E.parentNode;
|
|
2570
2570
|
}
|
|
2571
|
-
function y(
|
|
2572
|
-
return
|
|
2571
|
+
function y(E) {
|
|
2572
|
+
return E.tagName === "INPUT" || E.tagName === "TEXTAREA" || E.tagName === "SELECT" || x(E);
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2575
|
-
return !
|
|
2574
|
+
function x(E) {
|
|
2575
|
+
return !E || E.contentEditable === "false" ? !1 : E.contentEditable === "true" ? !0 : x(b(E));
|
|
2576
2576
|
}
|
|
2577
|
-
function M(
|
|
2578
|
-
return
|
|
2579
|
-
function
|
|
2580
|
-
var
|
|
2577
|
+
function M(E) {
|
|
2578
|
+
return E.nextElementSibling || F();
|
|
2579
|
+
function F() {
|
|
2580
|
+
var S = E;
|
|
2581
2581
|
do
|
|
2582
|
-
|
|
2583
|
-
while (
|
|
2584
|
-
return
|
|
2582
|
+
S = S.nextSibling;
|
|
2583
|
+
while (S && S.nodeType !== 1);
|
|
2584
|
+
return S;
|
|
2585
2585
|
}
|
|
2586
2586
|
}
|
|
2587
|
-
function I(
|
|
2588
|
-
return
|
|
2587
|
+
function I(E) {
|
|
2588
|
+
return E.targetTouches && E.targetTouches.length ? E.targetTouches[0] : E.changedTouches && E.changedTouches.length ? E.changedTouches[0] : E;
|
|
2589
2589
|
}
|
|
2590
|
-
function R(
|
|
2591
|
-
var
|
|
2590
|
+
function R(E, F) {
|
|
2591
|
+
var S = I(F), T = {
|
|
2592
2592
|
pageX: "clientX",
|
|
2593
2593
|
// IE8
|
|
2594
2594
|
pageY: "clientY"
|
|
2595
2595
|
// IE8
|
|
2596
2596
|
};
|
|
2597
|
-
return
|
|
2597
|
+
return E in T && !(E in S) && T[E] in S && (E = T[E]), S[E];
|
|
2598
2598
|
}
|
|
2599
2599
|
a.exports = f;
|
|
2600
2600
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2657,61 +2657,61 @@ var Jl = { exports: {} };
|
|
|
2657
2657
|
remove: h,
|
|
2658
2658
|
fabricate: p
|
|
2659
2659
|
};
|
|
2660
|
-
function r(b, y,
|
|
2661
|
-
return b.addEventListener(y,
|
|
2660
|
+
function r(b, y, x, M) {
|
|
2661
|
+
return b.addEventListener(y, x, M);
|
|
2662
2662
|
}
|
|
2663
|
-
function m(b, y,
|
|
2664
|
-
return b.attachEvent("on" + y, k(b, y,
|
|
2663
|
+
function m(b, y, x) {
|
|
2664
|
+
return b.attachEvent("on" + y, k(b, y, x));
|
|
2665
2665
|
}
|
|
2666
|
-
function d(b, y,
|
|
2667
|
-
return b.removeEventListener(y,
|
|
2666
|
+
function d(b, y, x, M) {
|
|
2667
|
+
return b.removeEventListener(y, x, M);
|
|
2668
2668
|
}
|
|
2669
|
-
function g(b, y,
|
|
2670
|
-
var M = B(b, y,
|
|
2669
|
+
function g(b, y, x) {
|
|
2670
|
+
var M = B(b, y, x);
|
|
2671
2671
|
if (M)
|
|
2672
2672
|
return b.detachEvent("on" + y, M);
|
|
2673
2673
|
}
|
|
2674
|
-
function p(b, y,
|
|
2674
|
+
function p(b, y, x) {
|
|
2675
2675
|
var M = u.indexOf(y) === -1 ? R() : I();
|
|
2676
2676
|
b.dispatchEvent ? b.dispatchEvent(M) : b.fireEvent("on" + y, M);
|
|
2677
2677
|
function I() {
|
|
2678
|
-
var
|
|
2679
|
-
return s.createEvent ? (
|
|
2678
|
+
var E;
|
|
2679
|
+
return s.createEvent ? (E = s.createEvent("Event"), E.initEvent(y, !0, !0)) : s.createEventObject && (E = s.createEventObject()), E;
|
|
2680
2680
|
}
|
|
2681
2681
|
function R() {
|
|
2682
|
-
return new i(y, { detail:
|
|
2682
|
+
return new i(y, { detail: x });
|
|
2683
2683
|
}
|
|
2684
2684
|
}
|
|
2685
|
-
function w(b, y,
|
|
2685
|
+
function w(b, y, x) {
|
|
2686
2686
|
return function(I) {
|
|
2687
2687
|
var R = I || l.event;
|
|
2688
2688
|
R.target = R.target || R.srcElement, R.preventDefault = R.preventDefault || function() {
|
|
2689
2689
|
R.returnValue = !1;
|
|
2690
2690
|
}, R.stopPropagation = R.stopPropagation || function() {
|
|
2691
2691
|
R.cancelBubble = !0;
|
|
2692
|
-
}, R.which = R.which || R.keyCode,
|
|
2692
|
+
}, R.which = R.which || R.keyCode, x.call(b, R);
|
|
2693
2693
|
};
|
|
2694
2694
|
}
|
|
2695
|
-
function k(b, y,
|
|
2696
|
-
var M = B(b, y,
|
|
2695
|
+
function k(b, y, x) {
|
|
2696
|
+
var M = B(b, y, x) || w(b, y, x);
|
|
2697
2697
|
return f.push({
|
|
2698
2698
|
wrapper: M,
|
|
2699
2699
|
element: b,
|
|
2700
2700
|
type: y,
|
|
2701
|
-
fn:
|
|
2701
|
+
fn: x
|
|
2702
2702
|
}), M;
|
|
2703
2703
|
}
|
|
2704
|
-
function B(b, y,
|
|
2705
|
-
var M = O(b, y,
|
|
2704
|
+
function B(b, y, x) {
|
|
2705
|
+
var M = O(b, y, x);
|
|
2706
2706
|
if (M) {
|
|
2707
2707
|
var I = f[M].wrapper;
|
|
2708
2708
|
return f.splice(M, 1), I;
|
|
2709
2709
|
}
|
|
2710
2710
|
}
|
|
2711
|
-
function O(b, y,
|
|
2711
|
+
function O(b, y, x) {
|
|
2712
2712
|
var M, I;
|
|
2713
2713
|
for (M = 0; M < f.length; M++)
|
|
2714
|
-
if (I = f[M], I.element === b && I.type === y && I.fn ===
|
|
2714
|
+
if (I = f[M], I.element === b && I.type === y && I.fn === x)
|
|
2715
2715
|
return M;
|
|
2716
2716
|
}
|
|
2717
2717
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2925,10 +2925,10 @@ const Ql = {
|
|
|
2925
2925
|
};
|
|
2926
2926
|
return O[e.animate] = !1, O[l] = u.value, O["toasty-type-" + i.value.type] = !0, i.value.theme && (O[i.value.theme] = !0), O;
|
|
2927
2927
|
}), f = N(() => {
|
|
2928
|
-
const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`,
|
|
2928
|
+
const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, x = {
|
|
2929
2929
|
"f-icon": !0
|
|
2930
2930
|
};
|
|
2931
|
-
return
|
|
2931
|
+
return x[y] = !0, x;
|
|
2932
2932
|
}), r = N(() => i.value.title || i.value.message), m = N(() => e.showCloseButton), d = N(() => !!i.value.buttons || !!t.slots.default), g = N(() => n.value === "en" ? {
|
|
2933
2933
|
wordBreak: "keep-all",
|
|
2934
2934
|
overflowWrap: "break-word"
|
|
@@ -3325,47 +3325,47 @@ function ti(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
|
|
|
3325
3325
|
} = i, {
|
|
3326
3326
|
gridDataStyle: b,
|
|
3327
3327
|
leftFixedGridDataStyle: y,
|
|
3328
|
-
rightFixedGridDataStyle:
|
|
3328
|
+
rightFixedGridDataStyle: x
|
|
3329
3329
|
} = m, {
|
|
3330
3330
|
renderDataRow: M
|
|
3331
3331
|
} = Ya(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [M];
|
|
3332
|
-
function R(
|
|
3333
|
-
const
|
|
3334
|
-
return p.value.filter((
|
|
3332
|
+
function R(P, L) {
|
|
3333
|
+
const _ = w(P);
|
|
3334
|
+
return p.value.filter((V) => V.visible !== !1).map((V, j) => I[V.type](V, _, L, j));
|
|
3335
3335
|
}
|
|
3336
|
-
function
|
|
3336
|
+
function E() {
|
|
3337
3337
|
return v("div", {
|
|
3338
3338
|
ref: a,
|
|
3339
3339
|
class: "fv-grid-content-left-fixed"
|
|
3340
3340
|
}, [v("div", {
|
|
3341
3341
|
class: "fv-grid-data",
|
|
3342
3342
|
style: y.value
|
|
3343
|
-
}, [R(k.value.leftColumns.filter((
|
|
3343
|
+
}, [R(k.value.leftColumns.filter((P) => P.visible), "left")])]);
|
|
3344
3344
|
}
|
|
3345
|
-
function
|
|
3345
|
+
function F() {
|
|
3346
3346
|
return v("div", {
|
|
3347
3347
|
ref: n,
|
|
3348
3348
|
class: "fv-grid-content-primary"
|
|
3349
3349
|
}, [v("div", {
|
|
3350
3350
|
class: "fv-grid-data",
|
|
3351
3351
|
style: b.value
|
|
3352
|
-
}, [R(k.value.primaryColumns.filter((
|
|
3352
|
+
}, [R(k.value.primaryColumns.filter((P) => P.visible), "primary")])]);
|
|
3353
3353
|
}
|
|
3354
|
-
function
|
|
3354
|
+
function S() {
|
|
3355
3355
|
return v("div", {
|
|
3356
3356
|
ref: o,
|
|
3357
3357
|
class: "fv-grid-content-right-fixed"
|
|
3358
3358
|
}, [v("div", {
|
|
3359
3359
|
class: "fv-grid-data",
|
|
3360
|
-
style:
|
|
3361
|
-
}, [R(k.value.rightColumns.filter((
|
|
3360
|
+
style: x.value
|
|
3361
|
+
}, [R(k.value.rightColumns.filter((P) => P.visible), "right")])]);
|
|
3362
3362
|
}
|
|
3363
|
-
function
|
|
3364
|
-
const
|
|
3365
|
-
return B.value &&
|
|
3363
|
+
function T() {
|
|
3364
|
+
const P = [];
|
|
3365
|
+
return B.value && P.push(E()), P.push(F()), O.value && P.push(S()), P;
|
|
3366
3366
|
}
|
|
3367
3367
|
return {
|
|
3368
|
-
renderDataArea:
|
|
3368
|
+
renderDataArea: T
|
|
3369
3369
|
};
|
|
3370
3370
|
}
|
|
3371
3371
|
const ni = /* @__PURE__ */ ae({
|
|
@@ -3382,18 +3382,18 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3382
3382
|
showLoading: O,
|
|
3383
3383
|
renderLoading: b
|
|
3384
3384
|
} = Ka(e, s), y = eo(e, /* @__PURE__ */ new Map(), w, k, i), {
|
|
3385
|
-
dataView:
|
|
3385
|
+
dataView: x
|
|
3386
3386
|
} = y, M = to(e, y, i, m, t), {
|
|
3387
3387
|
showSelection: I,
|
|
3388
3388
|
selectedValues: R
|
|
3389
|
-
} = M,
|
|
3390
|
-
shouldRenderPagination:
|
|
3391
|
-
} =
|
|
3392
|
-
containerStyleObject:
|
|
3393
|
-
} = oo(e),
|
|
3394
|
-
applyCommands:
|
|
3395
|
-
} =
|
|
3396
|
-
|
|
3389
|
+
} = M, E = no(e, m, y, i, M, t), F = N(() => e.disabled), S = N(() => e.virtualized ? Math.min(y.dataView.value.length, o.value) : y.dataView.value.length), T = ao(e, y), {
|
|
3390
|
+
shouldRenderPagination: P
|
|
3391
|
+
} = T, {
|
|
3392
|
+
containerStyleObject: L
|
|
3393
|
+
} = oo(e), _ = lo(e), {
|
|
3394
|
+
applyCommands: V
|
|
3395
|
+
} = _;
|
|
3396
|
+
V(l);
|
|
3397
3397
|
const {
|
|
3398
3398
|
applyColumnSetting: j,
|
|
3399
3399
|
removeColumnSetting: G
|
|
@@ -3405,11 +3405,11 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3405
3405
|
updateColumnRenderContext: X
|
|
3406
3406
|
} = W;
|
|
3407
3407
|
ce(y, ee);
|
|
3408
|
-
const le = uo(e, ve), de = co(e, t, M, i), ne = fo(e, t, i, de, m), U = po(e), oe = mo(e, ne, U), Xe = yo(e, y, ne, k, i, U, oe), $e = vo(e, l, y,
|
|
3408
|
+
const le = uo(e, ve), de = co(e, t, M, i), ne = fo(e, t, i, de, m), U = po(e), oe = mo(e, ne, U), Xe = yo(e, y, ne, k, i, U, oe), $e = vo(e, l, y, S, 0, Xe), {
|
|
3409
3409
|
getVisualData: Be
|
|
3410
3410
|
} = $e, it = ho(e, ve), Je = go(e, M), {
|
|
3411
3411
|
sidebarWidth: rt
|
|
3412
|
-
} = Je, se = bo(e, y, m, ve, $e,
|
|
3412
|
+
} = Je, se = bo(e, y, m, ve, $e, S, 0, rt), {
|
|
3413
3413
|
onWheel: mt,
|
|
3414
3414
|
dataGridWidth: Ae,
|
|
3415
3415
|
viewPortHeight: ze,
|
|
@@ -3418,7 +3418,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3418
3418
|
updateVisibleRowsOnLatestVisibleScope: yt
|
|
3419
3419
|
} = se, Qe = Co(e, ve, c, Oe, le), {
|
|
3420
3420
|
calculateColumnsSize: Ne
|
|
3421
|
-
} = Qe, We = wo(), st = ko(c, r, y, We, se), ut = So(e, t, W, y, le, p, se),
|
|
3421
|
+
} = Qe, We = wo(), st = ko(c, r, y, We, se), ut = So(e, t, W, y, le, p, se), $ = N(() => {
|
|
3422
3422
|
const q = {
|
|
3423
3423
|
"fv-grid": !0,
|
|
3424
3424
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -3432,7 +3432,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3432
3432
|
"fv-grid-wrap-content": g.value
|
|
3433
3433
|
})), {
|
|
3434
3434
|
renderDataArea: ue
|
|
3435
|
-
} = ti(e, t, h, f, r, it, W, y, ne, k, de, M,
|
|
3435
|
+
} = ti(e, t, h, f, r, it, W, y, ne, k, de, M, E, se, $e, U, m), {
|
|
3436
3436
|
renderGridHeader: fe,
|
|
3437
3437
|
renderGridColumnResizeOverlay: Ie,
|
|
3438
3438
|
shouldShowHeader: Lt
|
|
@@ -3453,7 +3453,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3453
3453
|
}
|
|
3454
3454
|
}
|
|
3455
3455
|
be(() => {
|
|
3456
|
-
c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), m.value = Be(0,
|
|
3456
|
+
c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), m.value = Be(0, S.value + 0 - 1), _a(c.value, Wt), Ne(), Ue(() => {
|
|
3457
3457
|
c.value && (Ae.value = c.value.clientWidth), h.value && (Oe.value = h.value.clientWidth, ze.value = h.value.clientHeight);
|
|
3458
3458
|
})), O.value && b();
|
|
3459
3459
|
}), kt(() => {
|
|
@@ -3472,19 +3472,19 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3472
3472
|
}
|
|
3473
3473
|
function Gt() {
|
|
3474
3474
|
const q = vt();
|
|
3475
|
-
y.insertNewDataItem(q), m.value = Be(0,
|
|
3475
|
+
y.insertNewDataItem(q), m.value = Be(0, S.value + 0 - 1);
|
|
3476
3476
|
}
|
|
3477
3477
|
function Ut() {
|
|
3478
3478
|
const q = vt();
|
|
3479
|
-
y.insertNewChildDataItem(q), m.value = Be(0,
|
|
3479
|
+
y.insertNewChildDataItem(q), m.value = Be(0, S.value + 0 - 1);
|
|
3480
3480
|
}
|
|
3481
3481
|
function _t(q, J) {
|
|
3482
3482
|
const me = m.value.find((Fe) => Fe.raw[u.value] === J), ge = me ? me.dataIndex - 1 : -1;
|
|
3483
3483
|
y.insertNewChildDataItems(q, ge);
|
|
3484
3484
|
}
|
|
3485
3485
|
function Yt() {
|
|
3486
|
-
const q = vt(), J =
|
|
3487
|
-
y.removeHierarchyDataItem(q), m.value = Be(0,
|
|
3486
|
+
const q = vt(), J = E.getNextSelectableHierarchyItemId(q);
|
|
3487
|
+
y.removeHierarchyDataItem(q), m.value = Be(0, S.value + 0 - 1), J && M.selectItemById(J);
|
|
3488
3488
|
}
|
|
3489
3489
|
function Tt(q) {
|
|
3490
3490
|
ne.onEditingRow(q);
|
|
@@ -3492,19 +3492,19 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3492
3492
|
function Xt(q) {
|
|
3493
3493
|
ne.acceptEditingRow(q);
|
|
3494
3494
|
}
|
|
3495
|
-
function
|
|
3495
|
+
function D(q) {
|
|
3496
3496
|
ne.cancelEditingRow(q);
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3499
|
-
q && (l.value = q,
|
|
3498
|
+
function z(q) {
|
|
3499
|
+
q && (l.value = q, V(l), X(l.value), ce(y, ee), Ne());
|
|
3500
3500
|
}
|
|
3501
3501
|
Z(() => e.columns, (q) => {
|
|
3502
|
-
|
|
3502
|
+
z(q);
|
|
3503
3503
|
});
|
|
3504
3504
|
function H(q, J) {
|
|
3505
3505
|
q && (y.load(q), y.reOrderVisibleIndex(), J != null && J.keepScrollPosition ? se.scrollTo(se.offsetY.value) : He());
|
|
3506
3506
|
}
|
|
3507
|
-
function
|
|
3507
|
+
function Y(q) {
|
|
3508
3508
|
M.selectItemById(q);
|
|
3509
3509
|
}
|
|
3510
3510
|
function K(q) {
|
|
@@ -3536,7 +3536,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3536
3536
|
return M.currentSelectedDataId.value;
|
|
3537
3537
|
}
|
|
3538
3538
|
function ht(q, J, me) {
|
|
3539
|
-
const ge =
|
|
3539
|
+
const ge = x.value.find((Fe) => Fe[u.value] === q);
|
|
3540
3540
|
if (ge) {
|
|
3541
3541
|
if (Object.keys(ge).forEach((ye) => {
|
|
3542
3542
|
Object.prototype.hasOwnProperty.call(J, ye) && (ge[ye] = J[ye]);
|
|
@@ -3577,7 +3577,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3577
3577
|
return B.value;
|
|
3578
3578
|
}
|
|
3579
3579
|
Z(() => e.showSetting, (q, J) => {
|
|
3580
|
-
q !== J && (q ? j(l) : G(l),
|
|
3580
|
+
q !== J && (q ? j(l) : G(l), z(l.value));
|
|
3581
3581
|
});
|
|
3582
3582
|
function ka(q) {
|
|
3583
3583
|
return m.value.filter((J) => q.includes(J.raw[e.idField]));
|
|
@@ -3599,10 +3599,10 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3599
3599
|
removeDataItem: Yt,
|
|
3600
3600
|
editDataItem: Tt,
|
|
3601
3601
|
acceptDataItem: Xt,
|
|
3602
|
-
cancelDataItem:
|
|
3603
|
-
updateColumns:
|
|
3602
|
+
cancelDataItem: D,
|
|
3603
|
+
updateColumns: z,
|
|
3604
3604
|
updateDataSource: H,
|
|
3605
|
-
selectItemById:
|
|
3605
|
+
selectItemById: Y,
|
|
3606
3606
|
selectItemByIds: Te,
|
|
3607
3607
|
getSelectedItems: Ce,
|
|
3608
3608
|
clearSelection: Se,
|
|
@@ -3622,14 +3622,14 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3622
3622
|
const q = {};
|
|
3623
3623
|
return se.shouldShowHorizontalScrollbar.value && (q.paddingBottom = "10px"), se.shouldShowVirticalScrollbar.value && (q.paddingRight = "10px"), q;
|
|
3624
3624
|
}), Ta = N(() => ({
|
|
3625
|
-
...
|
|
3625
|
+
...L.value,
|
|
3626
3626
|
borderRadius: "5px"
|
|
3627
|
-
}))
|
|
3628
|
-
|
|
3629
|
-
|
|
3627
|
+
}));
|
|
3628
|
+
Eo(e, t, y, se, T, M);
|
|
3629
|
+
const Ba = N(() => ({
|
|
3630
3630
|
"d-flex": !0,
|
|
3631
|
-
"justify-content-between":
|
|
3632
|
-
"justify-content-end":
|
|
3631
|
+
"justify-content-between": P.value && I.value,
|
|
3632
|
+
"justify-content-end": P.value && !I.value,
|
|
3633
3633
|
"position-relative": !0
|
|
3634
3634
|
})), Oa = N(() => ({
|
|
3635
3635
|
"d-flex": !0,
|
|
@@ -3639,7 +3639,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3639
3639
|
} = Do(e, y, W);
|
|
3640
3640
|
return () => v("div", {
|
|
3641
3641
|
ref: s,
|
|
3642
|
-
class:
|
|
3642
|
+
class: $.value,
|
|
3643
3643
|
style: Ta.value,
|
|
3644
3644
|
onWheel: mt
|
|
3645
3645
|
}, [c.value && Lt.value && fe(), v("div", {
|
|
@@ -3652,7 +3652,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3652
3652
|
class: Ba.value
|
|
3653
3653
|
}, [I.value && v("div", {
|
|
3654
3654
|
class: Oa.value
|
|
3655
|
-
}, [v("div", null, ["已选:" + R.value.length, ie(" 条")])])]), Ie(),
|
|
3655
|
+
}, [v("div", null, ["已选:" + R.value.length, ie(" 条")])])]), Ie(), F.value && At()]);
|
|
3656
3656
|
}
|
|
3657
3657
|
});
|
|
3658
3658
|
Nt(ni);
|
|
@@ -3795,7 +3795,7 @@ const li = "https://json-schema.org/draft/2020-12/schema", ii = "https://farris-
|
|
|
3795
3795
|
};
|
|
3796
3796
|
Pe(gi, fi, ai, oi, hi);
|
|
3797
3797
|
function Kn(e, t, n) {
|
|
3798
|
-
var
|
|
3798
|
+
var E;
|
|
3799
3799
|
const a = n && n.getStyles && n.getStyles() || "", o = n && n.getDesignerClass && n.getDesignerClass() || "", l = C();
|
|
3800
3800
|
let i;
|
|
3801
3801
|
function u() {
|
|
@@ -3810,117 +3810,117 @@ function Kn(e, t, n) {
|
|
|
3810
3810
|
function h() {
|
|
3811
3811
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
3812
3812
|
}
|
|
3813
|
-
function f(
|
|
3814
|
-
if (!
|
|
3813
|
+
function f(F) {
|
|
3814
|
+
if (!F || !F.value)
|
|
3815
3815
|
return null;
|
|
3816
|
-
if (
|
|
3817
|
-
return
|
|
3818
|
-
const
|
|
3819
|
-
return
|
|
3816
|
+
if (F.value.schema && F.value.schema.type === "component")
|
|
3817
|
+
return F.value;
|
|
3818
|
+
const S = C(F == null ? void 0 : F.value.parent), T = f(S);
|
|
3819
|
+
return T || null;
|
|
3820
3820
|
}
|
|
3821
|
-
function r(
|
|
3822
|
-
var
|
|
3821
|
+
function r(F = t) {
|
|
3822
|
+
var L;
|
|
3823
3823
|
if (n != null && n.getDraggableDesignItemElement)
|
|
3824
|
-
return n.getDraggableDesignItemElement(
|
|
3825
|
-
const { componentInstance:
|
|
3826
|
-
if (!
|
|
3824
|
+
return n.getDraggableDesignItemElement(F);
|
|
3825
|
+
const { componentInstance: S, designerItemElementRef: T } = F;
|
|
3826
|
+
if (!S || !S.value)
|
|
3827
3827
|
return null;
|
|
3828
|
-
const { getCustomButtons:
|
|
3829
|
-
return
|
|
3828
|
+
const { getCustomButtons: P } = S.value;
|
|
3829
|
+
return S.value.canMove || P && ((L = P()) != null && L.length) ? T : r(F.parent);
|
|
3830
3830
|
}
|
|
3831
|
-
function m(
|
|
3832
|
-
return !!n && n.canAccepts(
|
|
3831
|
+
function m(F) {
|
|
3832
|
+
return !!n && n.canAccepts(F);
|
|
3833
3833
|
}
|
|
3834
3834
|
function d() {
|
|
3835
3835
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
3836
3836
|
}
|
|
3837
3837
|
function g() {
|
|
3838
3838
|
}
|
|
3839
|
-
function p(
|
|
3840
|
-
var
|
|
3841
|
-
!
|
|
3839
|
+
function p(F, S) {
|
|
3840
|
+
var T;
|
|
3841
|
+
!F || !S || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(F, S), (T = t == null ? void 0 : t.setupContext) == null || T.emit("dragEnd"));
|
|
3842
3842
|
}
|
|
3843
|
-
function w(
|
|
3844
|
-
const { componentType:
|
|
3845
|
-
let
|
|
3846
|
-
n && n.onResolveNewComponentSchema && (
|
|
3847
|
-
const
|
|
3848
|
-
return
|
|
3843
|
+
function w(F, S) {
|
|
3844
|
+
const { componentType: T } = F;
|
|
3845
|
+
let P = La(T, F, S);
|
|
3846
|
+
n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(F, P));
|
|
3847
|
+
const L = T.toLowerCase().replace(/-/g, "_");
|
|
3848
|
+
return P && !P.id && P.type === T && (P.id = `${L}_${Math.random().toString().slice(2, 6)}`), P;
|
|
3849
3849
|
}
|
|
3850
|
-
function k(
|
|
3851
|
-
|
|
3850
|
+
function k(F) {
|
|
3851
|
+
F && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(F);
|
|
3852
3852
|
}
|
|
3853
|
-
function B(...
|
|
3853
|
+
function B(...F) {
|
|
3854
3854
|
if (n && n.getPropsConfig)
|
|
3855
|
-
return n.getPropsConfig(...
|
|
3855
|
+
return n.getPropsConfig(...F);
|
|
3856
3856
|
}
|
|
3857
|
-
function O(
|
|
3858
|
-
if (!
|
|
3857
|
+
function O(F) {
|
|
3858
|
+
if (!F)
|
|
3859
3859
|
return;
|
|
3860
|
-
const
|
|
3861
|
-
if (
|
|
3862
|
-
const
|
|
3863
|
-
|
|
3860
|
+
const S = t == null ? void 0 : t.schema, { formSchemaUtils: T } = F;
|
|
3861
|
+
if (S && T.getExpressions().length) {
|
|
3862
|
+
const P = T.getExpressions().findIndex((L) => L.target === S.id);
|
|
3863
|
+
P > -1 && T.getExpressions().splice(P, 1);
|
|
3864
3864
|
}
|
|
3865
3865
|
}
|
|
3866
|
-
function b(
|
|
3867
|
-
if (!
|
|
3866
|
+
function b(F) {
|
|
3867
|
+
if (!F || !(t != null && t.schema))
|
|
3868
3868
|
return;
|
|
3869
|
-
const
|
|
3870
|
-
|
|
3871
|
-
}
|
|
3872
|
-
function y(
|
|
3873
|
-
n && n.onRemoveComponent && n.onRemoveComponent(), O(
|
|
3874
|
-
let
|
|
3875
|
-
|
|
3876
|
-
const
|
|
3877
|
-
|
|
3878
|
-
var
|
|
3879
|
-
(
|
|
3869
|
+
const S = t.schema, { formSchemaUtils: T } = F;
|
|
3870
|
+
T.removeCommunicationInComponent(S);
|
|
3871
|
+
}
|
|
3872
|
+
function y(F) {
|
|
3873
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), O(F), b(F), t != null && t.schema.contents && t.schema.contents.map((S) => {
|
|
3874
|
+
let T = S.id;
|
|
3875
|
+
S.type === "component-ref" && (T = S.component);
|
|
3876
|
+
const P = e.value.querySelectorAll(`#${T}-design-item`);
|
|
3877
|
+
P != null && P.length && Array.from(P).map((L) => {
|
|
3878
|
+
var _;
|
|
3879
|
+
(_ = L == null ? void 0 : L.componentInstance) != null && _.value.onRemoveComponent && L.componentInstance.value.onRemoveComponent(F);
|
|
3880
3880
|
});
|
|
3881
3881
|
});
|
|
3882
3882
|
}
|
|
3883
|
-
function
|
|
3883
|
+
function x() {
|
|
3884
3884
|
if (n && n.getCustomButtons)
|
|
3885
3885
|
return n.getCustomButtons();
|
|
3886
3886
|
}
|
|
3887
|
-
function M(
|
|
3888
|
-
var
|
|
3889
|
-
if (!((
|
|
3887
|
+
function M(F) {
|
|
3888
|
+
var T, P;
|
|
3889
|
+
if (!((T = t == null ? void 0 : t.schema) != null && T.id))
|
|
3890
3890
|
return;
|
|
3891
|
-
if (!i &&
|
|
3891
|
+
if (!i && F && (i = F.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
|
|
3892
3892
|
n.setComponentBasicInfoMap();
|
|
3893
3893
|
return;
|
|
3894
3894
|
}
|
|
3895
|
-
let
|
|
3895
|
+
let S = "";
|
|
3896
3896
|
if (n != null && n.getComponentTitle)
|
|
3897
|
-
|
|
3897
|
+
S = n.getComponentTitle();
|
|
3898
3898
|
else {
|
|
3899
|
-
const { text:
|
|
3900
|
-
|
|
3899
|
+
const { text: L, title: _, label: V, mainTitle: j, name: G, type: W } = t.schema;
|
|
3900
|
+
S = L || _ || V || j || G || ((P = A[W]) == null ? void 0 : P.name);
|
|
3901
3901
|
}
|
|
3902
|
-
|
|
3903
|
-
componentTitle:
|
|
3904
|
-
parentPathName:
|
|
3902
|
+
S && i.getControlBasicInfoMap().set(t.schema.id, {
|
|
3903
|
+
componentTitle: S,
|
|
3904
|
+
parentPathName: S
|
|
3905
3905
|
});
|
|
3906
3906
|
}
|
|
3907
|
-
function I(
|
|
3908
|
-
var
|
|
3909
|
-
const { changeObject:
|
|
3910
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((
|
|
3911
|
-
const
|
|
3907
|
+
function I(F) {
|
|
3908
|
+
var L;
|
|
3909
|
+
const { changeObject: S } = F, { propertyID: T, propertyValue: P } = S;
|
|
3910
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((L = F == null ? void 0 : F.changeObject) == null ? void 0 : L.propertyID) && T && P && (M(), i)) {
|
|
3911
|
+
const _ = i.getControlBasicInfoMap(), V = _.keys().toArray().filter((j) => {
|
|
3912
3912
|
var G, W;
|
|
3913
|
-
return ((G =
|
|
3913
|
+
return ((G = _.get(j)) == null ? void 0 : G.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
|
|
3914
3914
|
});
|
|
3915
|
-
|
|
3916
|
-
const G =
|
|
3917
|
-
G[0] =
|
|
3915
|
+
V != null && V.length && V.forEach((j) => {
|
|
3916
|
+
const G = _.get(j).parentPathName.split(" > ");
|
|
3917
|
+
G[0] = P, _.get(j).parentPathName = G.join(" > ");
|
|
3918
3918
|
});
|
|
3919
3919
|
}
|
|
3920
3920
|
}
|
|
3921
|
-
function R(
|
|
3922
|
-
if (I(
|
|
3923
|
-
return n.onPropertyChanged(
|
|
3921
|
+
function R(F) {
|
|
3922
|
+
if (I(F), n && n.onPropertyChanged)
|
|
3923
|
+
return n.onPropertyChanged(F);
|
|
3924
3924
|
}
|
|
3925
3925
|
return l.value = {
|
|
3926
3926
|
canMove: u(),
|
|
@@ -3929,7 +3929,7 @@ function Kn(e, t, n) {
|
|
|
3929
3929
|
canNested: !h(),
|
|
3930
3930
|
contents: t == null ? void 0 : t.schema.contents,
|
|
3931
3931
|
elementRef: e,
|
|
3932
|
-
parent: (
|
|
3932
|
+
parent: (E = t == null ? void 0 : t.parent) == null ? void 0 : E.componentInstance,
|
|
3933
3933
|
schema: t == null ? void 0 : t.schema,
|
|
3934
3934
|
styles: a,
|
|
3935
3935
|
designerClass: o,
|
|
@@ -3945,7 +3945,7 @@ function Kn(e, t, n) {
|
|
|
3945
3945
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
|
|
3946
3946
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1),
|
|
3947
3947
|
onRemoveComponent: y,
|
|
3948
|
-
getCustomButtons:
|
|
3948
|
+
getCustomButtons: x,
|
|
3949
3949
|
onPropertyChanged: R,
|
|
3950
3950
|
setComponentBasicInfoMap: M,
|
|
3951
3951
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
@@ -4170,7 +4170,7 @@ function Pi() {
|
|
|
4170
4170
|
if (!a)
|
|
4171
4171
|
return !1;
|
|
4172
4172
|
const o = a.schema.type, l = n == null ? void 0 : n.formSchemaUtils.getComponentById(a.belongedComponentId);
|
|
4173
|
-
return !((t.componentCategory === "input" || t.componentType === "form-group") && ![
|
|
4173
|
+
return !((t.componentCategory === "input" || t.componentType === "form-group") && ![A["response-layout-item"].type, A["response-form"].type, A.fieldset.type].includes(o) || (t.componentType === A.tabs.type || t.componentType === A.section.type) && ((l == null ? void 0 : l.componentType) !== "frame" || ![A["content-container"].type, A["splitter-pane"].type, A["response-layout-item"].type].includes(o)) || [A["query-solution"].type, A["filter-bar"].type].includes(t.componentType) || t.componentType === A.fieldset.type && o !== A["response-form"].type);
|
|
4174
4174
|
}
|
|
4175
4175
|
return {
|
|
4176
4176
|
basalDragulaRuleForContainer: e
|
|
@@ -4768,44 +4768,44 @@ function ir(e, t, n, a, o) {
|
|
|
4768
4768
|
"f-state-focus": d.value,
|
|
4769
4769
|
"input-group--has-clear": e.enableClear && c.value
|
|
4770
4770
|
}));
|
|
4771
|
-
function w(
|
|
4772
|
-
n.value =
|
|
4771
|
+
function w(E, F = !0) {
|
|
4772
|
+
n.value = E, F && (t.emit("change", E), t.emit("update:modelValue", E));
|
|
4773
4773
|
}
|
|
4774
|
-
function k(
|
|
4775
|
-
u.value = !1, w(
|
|
4774
|
+
function k(E) {
|
|
4775
|
+
u.value = !1, w(E, !0);
|
|
4776
4776
|
}
|
|
4777
4777
|
Z(
|
|
4778
4778
|
() => e.modelValue,
|
|
4779
|
-
(
|
|
4780
|
-
n.value =
|
|
4779
|
+
(E) => {
|
|
4780
|
+
n.value = E;
|
|
4781
4781
|
}
|
|
4782
4782
|
);
|
|
4783
|
-
function B(
|
|
4784
|
-
m.value = !1, t.emit("blur",
|
|
4783
|
+
function B(E) {
|
|
4784
|
+
m.value = !1, t.emit("blur", E), E.stopPropagation();
|
|
4785
4785
|
}
|
|
4786
|
-
function O(
|
|
4787
|
-
t.emit("click",
|
|
4786
|
+
function O(E) {
|
|
4787
|
+
t.emit("click", E), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
|
|
4788
4788
|
}
|
|
4789
|
-
function b(
|
|
4790
|
-
!e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus",
|
|
4789
|
+
function b(E) {
|
|
4790
|
+
!e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus", E), i.value && !u.value && o.popup()));
|
|
4791
4791
|
}
|
|
4792
|
-
function y(
|
|
4793
|
-
t.emit("input",
|
|
4794
|
-
const
|
|
4795
|
-
a.value =
|
|
4792
|
+
function y(E) {
|
|
4793
|
+
t.emit("input", E);
|
|
4794
|
+
const F = E.target.value;
|
|
4795
|
+
a.value = F, n.value !== F && w(F, e.updateOn === "change"), l.value && !u.value && o.popup();
|
|
4796
4796
|
}
|
|
4797
|
-
function
|
|
4798
|
-
|
|
4797
|
+
function x(E) {
|
|
4798
|
+
E.target.tagName !== "INPUT" && E.preventDefault(), E.stopPropagation();
|
|
4799
4799
|
}
|
|
4800
|
-
function M(
|
|
4801
|
-
t.emit("keydown",
|
|
4800
|
+
function M(E) {
|
|
4801
|
+
t.emit("keydown", E);
|
|
4802
4802
|
}
|
|
4803
|
-
function I(
|
|
4804
|
-
|
|
4803
|
+
function I(E) {
|
|
4804
|
+
E.key === "Enter" && (l.value || i.value) && o.hidePopup(), t.emit("keyup", E);
|
|
4805
4805
|
}
|
|
4806
|
-
function R(
|
|
4807
|
-
const
|
|
4808
|
-
|
|
4806
|
+
function R(E) {
|
|
4807
|
+
const F = E.target.value;
|
|
4808
|
+
E.stopPropagation(), w(F);
|
|
4809
4809
|
}
|
|
4810
4810
|
return {
|
|
4811
4811
|
hasFocusedTextBox: d,
|
|
@@ -4823,7 +4823,7 @@ function ir(e, t, n, a, o) {
|
|
|
4823
4823
|
onInput: y,
|
|
4824
4824
|
onKeyDownTextBox: M,
|
|
4825
4825
|
onKeyUpTextBox: I,
|
|
4826
|
-
onMouseDownTextBox:
|
|
4826
|
+
onMouseDownTextBox: x,
|
|
4827
4827
|
onTextBoxValueChange: R
|
|
4828
4828
|
};
|
|
4829
4829
|
}
|
|
@@ -4891,18 +4891,18 @@ function sr(e, t, n) {
|
|
|
4891
4891
|
"border-bottom-right-radius": "6px"
|
|
4892
4892
|
}));
|
|
4893
4893
|
be(() => {
|
|
4894
|
-
var
|
|
4895
|
-
e.selectOnCreated && ((
|
|
4894
|
+
var x, M;
|
|
4895
|
+
e.selectOnCreated && ((x = a.value) == null || x.select()), e.focusOnCreated && ((M = a.value) == null || M.focus({
|
|
4896
4896
|
preventScroll: !0
|
|
4897
4897
|
})), p.value || (p.value = "button-edit_" + w(8)), p.value = p.value + "-textbox";
|
|
4898
4898
|
});
|
|
4899
|
-
const B = C(!1), O = (
|
|
4900
|
-
|
|
4901
|
-
}, b = (
|
|
4902
|
-
|
|
4899
|
+
const B = C(!1), O = (x) => {
|
|
4900
|
+
x.preventDefault(), B.value = !0;
|
|
4901
|
+
}, b = (x) => {
|
|
4902
|
+
x.preventDefault(), B.value = !1, f(x);
|
|
4903
4903
|
};
|
|
4904
|
-
function y(
|
|
4905
|
-
B.value || f(
|
|
4904
|
+
function y(x) {
|
|
4905
|
+
B.value || f(x);
|
|
4906
4906
|
}
|
|
4907
4907
|
return () => v("input", {
|
|
4908
4908
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -5058,46 +5058,46 @@ const Rt = /* @__PURE__ */ ae({
|
|
|
5058
5058
|
} = r, p = lr(e, t, o, m, f, r), {
|
|
5059
5059
|
onMouseEnterTextBox: w,
|
|
5060
5060
|
onMouseLeaveTextBox: k
|
|
5061
|
-
} = p, B = N(() => {
|
|
5062
|
-
const
|
|
5061
|
+
} = p, B = C(!1), O = N(() => {
|
|
5062
|
+
const L = {
|
|
5063
5063
|
"f-button-edit": !0,
|
|
5064
5064
|
"f-cmp-inputgroup": !0,
|
|
5065
5065
|
"f-button-edit-nowrap": !e.wrapText
|
|
5066
5066
|
};
|
|
5067
|
-
return a.value && a.value.split(" ").reduce((
|
|
5068
|
-
}),
|
|
5067
|
+
return a.value && a.value.split(" ").reduce((_, V) => (_[V] = !0, _), L), L;
|
|
5068
|
+
}), b = N(() => ({
|
|
5069
5069
|
overflow: e.wrapText ? "hidden" : ""
|
|
5070
|
-
})),
|
|
5070
|
+
})), y = N(() => ({
|
|
5071
5071
|
paddingLeft: "3px",
|
|
5072
5072
|
backgroundColor: "#fff"
|
|
5073
5073
|
}));
|
|
5074
|
-
function
|
|
5074
|
+
function x() {
|
|
5075
5075
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
5076
5076
|
return 0;
|
|
5077
|
-
let
|
|
5078
|
-
const
|
|
5079
|
-
return
|
|
5077
|
+
let L = 0;
|
|
5078
|
+
const _ = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
5079
|
+
return _ && _.length && (L = _.map((V) => V.offsetTop).filter((V) => V > 20).length), L;
|
|
5080
5080
|
}
|
|
5081
|
-
const
|
|
5081
|
+
const M = C(x());
|
|
5082
5082
|
an(() => {
|
|
5083
|
-
|
|
5083
|
+
M.value = x();
|
|
5084
5084
|
});
|
|
5085
|
-
function
|
|
5086
|
-
return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [ur(e, o, r)(), !!
|
|
5085
|
+
function I() {
|
|
5086
|
+
return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [ur(e, o, r)(), !!M.value && v("div", {
|
|
5087
5087
|
class: "d-flex flex-row mr-2 more-tags",
|
|
5088
5088
|
"more-tags": !0
|
|
5089
5089
|
}, [v("span", {
|
|
5090
5090
|
class: "multi--more-text"
|
|
5091
|
-
}, [ie("+"),
|
|
5091
|
+
}, [ie("+"), M.value])])]) : sr(e, o, r);
|
|
5092
5092
|
}
|
|
5093
|
-
let
|
|
5093
|
+
let R = I();
|
|
5094
5094
|
Z([() => e.multiSelect, () => e.inputType], () => {
|
|
5095
|
-
|
|
5095
|
+
R = I();
|
|
5096
5096
|
});
|
|
5097
5097
|
const {
|
|
5098
|
-
renderButtonGroup:
|
|
5099
|
-
buttonHandleElement:
|
|
5100
|
-
} = cr(e, t, h, p),
|
|
5098
|
+
renderButtonGroup: E,
|
|
5099
|
+
buttonHandleElement: F
|
|
5100
|
+
} = cr(e, t, h, p), S = dr(e, t, l), T = C(i.value), P = {
|
|
5101
5101
|
displayText: f,
|
|
5102
5102
|
commitValue: d,
|
|
5103
5103
|
elementRef: n,
|
|
@@ -5107,52 +5107,56 @@ const Rt = /* @__PURE__ */ ae({
|
|
|
5107
5107
|
shouldPopupContent: i,
|
|
5108
5108
|
togglePopup: c,
|
|
5109
5109
|
openDialog: () => {
|
|
5110
|
-
|
|
5110
|
+
F.value && e.buttonBehavior === "Modal" && F.value.click();
|
|
5111
5111
|
},
|
|
5112
5112
|
getModal: () => {
|
|
5113
|
-
var
|
|
5114
|
-
return e.buttonBehavior === "Modal" ? (
|
|
5113
|
+
var L;
|
|
5114
|
+
return e.buttonBehavior === "Modal" ? (L = h.modalRef.value) == null ? void 0 : L.value : null;
|
|
5115
5115
|
},
|
|
5116
5116
|
getTextbox: () => {
|
|
5117
|
-
var
|
|
5118
|
-
return (
|
|
5117
|
+
var L;
|
|
5118
|
+
return (L = n.value) == null ? void 0 : L.querySelector("input");
|
|
5119
5119
|
},
|
|
5120
5120
|
forceClosePopup: () => {
|
|
5121
|
-
|
|
5121
|
+
T.value = !1, B.value = !0, i.value = !1;
|
|
5122
5122
|
}
|
|
5123
5123
|
};
|
|
5124
5124
|
return be(() => {
|
|
5125
|
-
n.value.componentInstance =
|
|
5125
|
+
n.value.componentInstance = P, window.onresize = () => {
|
|
5126
5126
|
document.body.click();
|
|
5127
5127
|
};
|
|
5128
5128
|
}), Mn(() => {
|
|
5129
|
-
var
|
|
5130
|
-
window.onresize = null, (
|
|
5131
|
-
}), t.expose(
|
|
5132
|
-
if (
|
|
5129
|
+
var L;
|
|
5130
|
+
window.onresize = null, (L = window[tt]) == null || L.delete(n.value);
|
|
5131
|
+
}), t.expose(P), Z(() => i.value, async (L, _) => {
|
|
5132
|
+
if (B.value) {
|
|
5133
|
+
T.value = L, B.value = !1;
|
|
5134
|
+
return;
|
|
5135
|
+
}
|
|
5136
|
+
if (!L && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
|
|
5133
5137
|
try {
|
|
5134
|
-
const
|
|
5135
|
-
|
|
5136
|
-
} catch (
|
|
5137
|
-
console.error("Error in beforeClosePopup:",
|
|
5138
|
+
const V = await e.beforeClosePopup();
|
|
5139
|
+
T.value = !V, (!V || e.readonly) && (i.value = !0);
|
|
5140
|
+
} catch (V) {
|
|
5141
|
+
console.error("Error in beforeClosePopup:", V), T.value = _, i.value = _;
|
|
5138
5142
|
}
|
|
5139
5143
|
return;
|
|
5140
5144
|
}
|
|
5141
|
-
|
|
5145
|
+
T.value = L;
|
|
5142
5146
|
}), () => {
|
|
5143
|
-
var
|
|
5147
|
+
var L, _;
|
|
5144
5148
|
return v(ot, null, [v("div", pt(t.attrs, {
|
|
5145
5149
|
ref: n,
|
|
5146
|
-
class:
|
|
5150
|
+
class: O.value,
|
|
5147
5151
|
id: e.id ? e.id : void 0,
|
|
5148
|
-
style:
|
|
5152
|
+
style: b.value
|
|
5149
5153
|
}), [v("div", {
|
|
5150
5154
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
5151
5155
|
class: g.value,
|
|
5152
|
-
style:
|
|
5156
|
+
style: y.value,
|
|
5153
5157
|
onMouseenter: w,
|
|
5154
5158
|
onMouseleave: k
|
|
5155
|
-
}, [(
|
|
5159
|
+
}, [(_ = (L = t.slots).precontent) == null ? void 0 : _.call(L), R(), E()])]), T.value && S()]);
|
|
5156
5160
|
};
|
|
5157
5161
|
}
|
|
5158
5162
|
}), fr = "https://json-schema.org/draft/2020-12/schema", pr = "https://farris-design.gitee.io/field-selector.schema.json", mr = "field-selector", yr = "A Farris Input Component", vr = "object", hr = {
|
|
@@ -5576,6 +5580,10 @@ const aa = {
|
|
|
5576
5580
|
description: "启用高亮搜索",
|
|
5577
5581
|
type: "boolean",
|
|
5578
5582
|
default: !1
|
|
5583
|
+
},
|
|
5584
|
+
"onUpdate:modelValue": {
|
|
5585
|
+
description: "",
|
|
5586
|
+
type: "object"
|
|
5579
5587
|
}
|
|
5580
5588
|
}, Tr = [
|
|
5581
5589
|
"type"
|
|
@@ -5931,56 +5939,58 @@ const lt = /* @__PURE__ */ ae({
|
|
|
5931
5939
|
displayText: h,
|
|
5932
5940
|
editable: f,
|
|
5933
5941
|
modelValue: r,
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5942
|
+
getSelectedItemsByDisplayText: m,
|
|
5943
|
+
getItemsByDisplayText: d,
|
|
5944
|
+
getItemsByValue: g
|
|
5945
|
+
} = Nr(e), p = C(e.dropDownIcon);
|
|
5946
|
+
p.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (p.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
|
|
5947
|
+
const w = N(() => e.multiSelect), k = N(() => o.value ? o.value.elementRef.getBoundingClientRect().width : 0);
|
|
5948
|
+
function B() {
|
|
5949
|
+
!w.value && o.value && o.value.hidePopup();
|
|
5940
5950
|
}
|
|
5941
|
-
function
|
|
5942
|
-
h.value = S.map((
|
|
5951
|
+
function O(S) {
|
|
5952
|
+
h.value = S.map((P) => P[e.textField]).join(e.separator);
|
|
5943
5953
|
let T = "";
|
|
5944
|
-
S.length === 1 ? T = S[0][e.valueField] : T = S.map((
|
|
5954
|
+
S.length === 1 ? T = S[0][e.valueField] : T = S.map((P) => P[e.valueField]).join(e.separator), r.value !== T && (r.value = T, t.emit("update:modelValue", r.value), t.emit("change", S, r.value));
|
|
5945
5955
|
}
|
|
5946
|
-
function
|
|
5947
|
-
const S =
|
|
5948
|
-
|
|
5956
|
+
function b() {
|
|
5957
|
+
const S = g(r.value);
|
|
5958
|
+
O(S);
|
|
5949
5959
|
}
|
|
5950
|
-
function
|
|
5960
|
+
function y() {
|
|
5951
5961
|
s.value || h.value;
|
|
5952
5962
|
}
|
|
5953
|
-
function
|
|
5963
|
+
function x(S) {
|
|
5954
5964
|
var T;
|
|
5955
5965
|
r.value = "", (T = a.value) == null || T.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
|
|
5956
5966
|
}
|
|
5957
|
-
function
|
|
5958
|
-
var T,
|
|
5959
|
-
e.enableSearch && e.enableHighlightSearch && ((T = a.value) == null || T.search(S)), (
|
|
5967
|
+
function M(S) {
|
|
5968
|
+
var T, P;
|
|
5969
|
+
e.enableSearch && e.enableHighlightSearch && ((T = a.value) == null || T.search(S)), (P = a.value) == null || P.activeRowById(S), t.emit("change", [r.value], r.value);
|
|
5960
5970
|
}
|
|
5961
|
-
function
|
|
5971
|
+
function I(S) {
|
|
5962
5972
|
if (e.multiSelect) {
|
|
5963
|
-
const T =
|
|
5964
|
-
r.value !==
|
|
5973
|
+
const T = g(r.value), L = T.map((_) => _[e.idField || e.valueField]).join(e.separator);
|
|
5974
|
+
r.value !== L && (r.value = L, t.emit("update:modelValue", r.value), t.emit("change", T, r.value));
|
|
5965
5975
|
}
|
|
5966
5976
|
}
|
|
5967
|
-
function
|
|
5977
|
+
function R() {
|
|
5968
5978
|
return h.value;
|
|
5969
5979
|
}
|
|
5970
|
-
function
|
|
5980
|
+
function E(S) {
|
|
5971
5981
|
const {
|
|
5972
5982
|
value: T
|
|
5973
5983
|
} = S.target;
|
|
5974
|
-
|
|
5984
|
+
M(T), t.emit("input", T);
|
|
5975
5985
|
}
|
|
5976
|
-
function
|
|
5986
|
+
function F() {
|
|
5977
5987
|
o.value.hidePopup();
|
|
5978
5988
|
}
|
|
5979
5989
|
return t.expose({
|
|
5980
|
-
getDisplayText:
|
|
5981
|
-
hidePopup:
|
|
5982
|
-
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, T,
|
|
5983
|
-
l.value = S, f.value = T, i.value =
|
|
5990
|
+
getDisplayText: R,
|
|
5991
|
+
hidePopup: F
|
|
5992
|
+
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, T, P, L, _]) => {
|
|
5993
|
+
l.value = S, f.value = T, i.value = P, u.value = L, s.value = _;
|
|
5984
5994
|
}), () => v(jn, {
|
|
5985
5995
|
ref: o,
|
|
5986
5996
|
id: e.id,
|
|
@@ -5988,7 +5998,7 @@ const lt = /* @__PURE__ */ ae({
|
|
|
5988
5998
|
readonly: s.value,
|
|
5989
5999
|
forcePlaceholder: e.forcePlaceholder,
|
|
5990
6000
|
editable: f.value,
|
|
5991
|
-
buttonContent:
|
|
6001
|
+
buttonContent: p.value,
|
|
5992
6002
|
placeholder: e.placeholder === "请选择" ? n("comboList.placeholder") : e.placeholder,
|
|
5993
6003
|
enableClear: i.value,
|
|
5994
6004
|
maxLength: e.maxLength,
|
|
@@ -6000,11 +6010,11 @@ const lt = /* @__PURE__ */ ae({
|
|
|
6000
6010
|
"onUpdate:modelValue": (S) => h.value = S,
|
|
6001
6011
|
focusOnCreated: e.focusOnCreated,
|
|
6002
6012
|
selectOnCreated: e.selectOnCreated,
|
|
6003
|
-
onClear:
|
|
6004
|
-
onClick:
|
|
6005
|
-
onChange:
|
|
6006
|
-
onBlur:
|
|
6007
|
-
onInput:
|
|
6013
|
+
onClear: x,
|
|
6014
|
+
onClick: y,
|
|
6015
|
+
onChange: I,
|
|
6016
|
+
onBlur: b,
|
|
6017
|
+
onInput: E,
|
|
6008
6018
|
beforeOpen: e.beforeOpen,
|
|
6009
6019
|
placement: e.placement,
|
|
6010
6020
|
popupMinWidth: e.minPanelWidth,
|
|
@@ -6025,9 +6035,9 @@ const lt = /* @__PURE__ */ ae({
|
|
|
6025
6035
|
enableSearch: u.value,
|
|
6026
6036
|
maxHeight: e.maxHeight,
|
|
6027
6037
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
6028
|
-
width: e.fitEditor ?
|
|
6038
|
+
width: e.fitEditor ? k.value : void 0,
|
|
6029
6039
|
onSelectionChange: (S) => {
|
|
6030
|
-
|
|
6040
|
+
O(S), B();
|
|
6031
6041
|
}
|
|
6032
6042
|
}, null)]
|
|
6033
6043
|
});
|
|
@@ -6513,17 +6523,17 @@ function sa(e) {
|
|
|
6513
6523
|
function h(p, w, k, B) {
|
|
6514
6524
|
const O = e.value;
|
|
6515
6525
|
if (O) {
|
|
6516
|
-
const { left: b, right: y, width:
|
|
6526
|
+
const { left: b, right: y, width: x } = O.getBoundingClientRect();
|
|
6517
6527
|
let M = p.clientX - b;
|
|
6518
|
-
B === "right" && (M = y - p.clientX), M > w && (M = w), M < k && (M = k), B === "right" && (M =
|
|
6528
|
+
B === "right" && (M = y - p.clientX), M > w && (M = w), M < k && (M = k), B === "right" && (M = x - M), a.value = M;
|
|
6519
6529
|
}
|
|
6520
6530
|
}
|
|
6521
6531
|
function f(p, w, k, B) {
|
|
6522
6532
|
const O = e.value;
|
|
6523
6533
|
if (O) {
|
|
6524
|
-
const { top: b, bottom: y, height:
|
|
6534
|
+
const { top: b, bottom: y, height: x } = O.getBoundingClientRect();
|
|
6525
6535
|
let M = p.clientY - b;
|
|
6526
|
-
B === "bottom" && (M = y - p.clientY), M > w && (M = w), M < k && (M = k), B === "bottom" && (M =
|
|
6536
|
+
B === "bottom" && (M = y - p.clientY), M > w && (M = w), M < k && (M = k), B === "bottom" && (M = x - M), o.value = M;
|
|
6527
6537
|
}
|
|
6528
6538
|
}
|
|
6529
6539
|
function r() {
|
|
@@ -6819,35 +6829,35 @@ function ca(e, t, n, a, o) {
|
|
|
6819
6829
|
let g = "", p, w, k;
|
|
6820
6830
|
function B(y) {
|
|
6821
6831
|
if ((g === "left" || g === "right") && w) {
|
|
6822
|
-
const { left:
|
|
6832
|
+
const { left: x } = w.getBoundingClientRect(), { width: M } = p.getBoundingClientRect(), I = y.clientX - x;
|
|
6823
6833
|
let R = g === "left" ? (M || 0) + (I - l.value) : (M || 0) - (I - l.value);
|
|
6824
6834
|
R = n.value > 0 ? Math.max(n.value, R) : R;
|
|
6825
|
-
const
|
|
6826
|
-
|
|
6835
|
+
const E = d(g, n.value);
|
|
6836
|
+
E != null && (R = E > R ? R : E), e.value = R;
|
|
6827
6837
|
}
|
|
6828
6838
|
if ((g === "top" || g === "bottom") && w) {
|
|
6829
|
-
const { top:
|
|
6839
|
+
const { top: x } = w.getBoundingClientRect(), { height: M } = p.getBoundingClientRect(), I = y.clientY - x;
|
|
6830
6840
|
let R = g === "top" ? (M || 0) + (I - c.value) : (M || 0) - (I - c.value);
|
|
6831
6841
|
R = a.value > 0 ? Math.max(a.value, R) : R;
|
|
6832
|
-
const
|
|
6833
|
-
|
|
6842
|
+
const E = m(g, a.value);
|
|
6843
|
+
E != null && (R = E > R ? R : E), t.value = R;
|
|
6834
6844
|
}
|
|
6835
6845
|
i.value = 0, h.value = 0, l.value = -1, c.value = -1, u.value = !1, s.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", B), document.body.style.userSelect = "", g = "", p = null, w = null;
|
|
6836
6846
|
}
|
|
6837
|
-
function O(y,
|
|
6838
|
-
if (g =
|
|
6839
|
-
const { left: R } = w.getBoundingClientRect(),
|
|
6840
|
-
i.value =
|
|
6841
|
-
const
|
|
6842
|
-
k = (
|
|
6847
|
+
function O(y, x, M) {
|
|
6848
|
+
if (g = x, p = M, u.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6849
|
+
const { left: R } = w.getBoundingClientRect(), E = y.clientX - R;
|
|
6850
|
+
i.value = E, l.value = E;
|
|
6851
|
+
const F = d(g, n.value) || 0;
|
|
6852
|
+
k = (S) => f(S, F, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6843
6853
|
}
|
|
6844
6854
|
}
|
|
6845
|
-
function b(y,
|
|
6846
|
-
if (g =
|
|
6855
|
+
function b(y, x, M) {
|
|
6856
|
+
if (g = x, p = M, s.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6847
6857
|
const { top: R } = w.getBoundingClientRect();
|
|
6848
6858
|
h.value = y.clientY - R, c.value = y.clientY - R;
|
|
6849
|
-
const
|
|
6850
|
-
k = (
|
|
6859
|
+
const E = m(g, a.value) || 0;
|
|
6860
|
+
k = (F) => r(F, E, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6851
6861
|
}
|
|
6852
6862
|
}
|
|
6853
6863
|
return { onClickHorizontalResizeBar: O, onClickVerticalResizeBar: b };
|
|
@@ -6882,7 +6892,7 @@ const Re = /* @__PURE__ */ ae({
|
|
|
6882
6892
|
"f-page-content-nav": c.value === "left" || c.value === "right",
|
|
6883
6893
|
"f-page-content-main": c.value === "center"
|
|
6884
6894
|
};
|
|
6885
|
-
return e.customClass && String(e.customClass).split(" ").reduce((y,
|
|
6895
|
+
return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
|
|
6886
6896
|
}), O = N(() => {
|
|
6887
6897
|
const b = {};
|
|
6888
6898
|
return (u.value && c.value === "left" || c.value === "right") && (b.width = `${u.value}px`), (i.value && c.value === "bottom" || c.value === "top") && (b.height = `${i.value}px`), e.visible || (b.display = "none"), b;
|
|
@@ -6979,7 +6989,7 @@ const ps = /* @__PURE__ */ ae({
|
|
|
6979
6989
|
"f-page-content-nav": f.value === "left" || f.value === "right",
|
|
6980
6990
|
"f-page-content-main": f.value === "center"
|
|
6981
6991
|
};
|
|
6982
|
-
return e.customClass && String(e.customClass).split(" ").reduce((y,
|
|
6992
|
+
return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
|
|
6983
6993
|
}), O = N(() => {
|
|
6984
6994
|
const b = {
|
|
6985
6995
|
flex: "1"
|
|
@@ -9720,72 +9730,72 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9720
9730
|
const n = C("dataEntity"), a = C(e.dataSource), {
|
|
9721
9731
|
entities: o,
|
|
9722
9732
|
variables: l
|
|
9723
|
-
} = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (
|
|
9724
|
-
|
|
9725
|
-
$event:
|
|
9726
|
-
item:
|
|
9733
|
+
} = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (S, T) => {
|
|
9734
|
+
S.stopPropagation(), t.emit("fieldClick", {
|
|
9735
|
+
$event: S,
|
|
9736
|
+
item: T.raw
|
|
9727
9737
|
});
|
|
9728
|
-
}, c = (
|
|
9729
|
-
const
|
|
9738
|
+
}, c = (S, T) => {
|
|
9739
|
+
const P = `${T.raw.name} [${T.raw.bindingPath}]`;
|
|
9730
9740
|
return v("div", {
|
|
9731
9741
|
class: "d-flex align-items-center w-100 entity-field",
|
|
9732
9742
|
style: "justify-content: space-between;"
|
|
9733
9743
|
}, [v("span", {
|
|
9734
|
-
title:
|
|
9744
|
+
title: P,
|
|
9735
9745
|
class: "f-utils-fill text-truncate"
|
|
9736
|
-
}, [
|
|
9746
|
+
}, [P]), v("button", {
|
|
9737
9747
|
title: "插入属性名称",
|
|
9738
9748
|
class: "btn btn-link d-none",
|
|
9739
9749
|
style: "width:24px;height:24px",
|
|
9740
|
-
onClick: (
|
|
9741
|
-
onDblclick: (
|
|
9750
|
+
onClick: (L) => s(L, T),
|
|
9751
|
+
onDblclick: (L) => L.stopPropagation()
|
|
9742
9752
|
}, [v("span", {
|
|
9743
9753
|
class: "f-icon f-icon-new-edit",
|
|
9744
9754
|
style: "font-size: 12px;"
|
|
9745
9755
|
}, null)])]);
|
|
9746
|
-
}, h = C({}), f = C(), r = N(() => (
|
|
9756
|
+
}, h = C({}), f = C(), r = N(() => (S) => ({
|
|
9747
9757
|
"list-group d-flex flex-column": !0,
|
|
9748
|
-
"f-utils-fill": n.value ===
|
|
9749
|
-
expand: n.value ===
|
|
9750
|
-
collapse: n.value !==
|
|
9751
|
-
})), m = N(() => (
|
|
9752
|
-
"f-icon f-icon-arrow-chevron-up": n.value !==
|
|
9753
|
-
"f-icon f-icon-arrow-chevron-down": n.value ===
|
|
9754
|
-
})), d = N(() => (
|
|
9758
|
+
"f-utils-fill": n.value === S,
|
|
9759
|
+
expand: n.value === S,
|
|
9760
|
+
collapse: n.value !== S
|
|
9761
|
+
})), m = N(() => (S) => ({
|
|
9762
|
+
"f-icon f-icon-arrow-chevron-up": n.value !== S,
|
|
9763
|
+
"f-icon f-icon-arrow-chevron-down": n.value === S
|
|
9764
|
+
})), d = N(() => (S) => ({
|
|
9755
9765
|
"functions-type d-flex flex-column": !0,
|
|
9756
|
-
open: h.value[
|
|
9757
|
-
closed: !h.value[
|
|
9758
|
-
})), g = N(() => (
|
|
9759
|
-
"f-icon f-icon-arrow-chevron-down": h.value[
|
|
9760
|
-
"f-icon f-icon-arrow-chevron-right": !h.value[
|
|
9761
|
-
})), p = N(() => (
|
|
9762
|
-
var
|
|
9766
|
+
open: h.value[S],
|
|
9767
|
+
closed: !h.value[S]
|
|
9768
|
+
})), g = N(() => (S) => ({
|
|
9769
|
+
"f-icon f-icon-arrow-chevron-down": h.value[S],
|
|
9770
|
+
"f-icon f-icon-arrow-chevron-right": !h.value[S]
|
|
9771
|
+
})), p = N(() => (S) => {
|
|
9772
|
+
var T;
|
|
9763
9773
|
return {
|
|
9764
9774
|
"functions-item pl-2": !0,
|
|
9765
|
-
selected: ((
|
|
9775
|
+
selected: ((T = f.value) == null ? void 0 : T.key) === S.key
|
|
9766
9776
|
};
|
|
9767
9777
|
});
|
|
9768
|
-
function w(
|
|
9769
|
-
|
|
9778
|
+
function w(S, T) {
|
|
9779
|
+
S.stopPropagation(), h.value = h.value || {}, h.value[T] = !h.value[T];
|
|
9770
9780
|
}
|
|
9771
|
-
function k(
|
|
9772
|
-
|
|
9781
|
+
function k(S, T) {
|
|
9782
|
+
S.stopPropagation(), f.value = T;
|
|
9773
9783
|
}
|
|
9774
|
-
function B(
|
|
9784
|
+
function B(S, T) {
|
|
9775
9785
|
t.emit("variableItemDblClick", {
|
|
9776
|
-
$event:
|
|
9777
|
-
item:
|
|
9786
|
+
$event: S,
|
|
9787
|
+
item: T
|
|
9778
9788
|
});
|
|
9779
9789
|
}
|
|
9780
9790
|
function O({
|
|
9781
|
-
$event:
|
|
9782
|
-
node:
|
|
9791
|
+
$event: S,
|
|
9792
|
+
node: T
|
|
9783
9793
|
}) {
|
|
9784
9794
|
t.emit("entityItemDblClick", {
|
|
9785
|
-
$event:
|
|
9786
|
-
item:
|
|
9795
|
+
$event: S,
|
|
9796
|
+
item: T.data,
|
|
9787
9797
|
entityCode: o == null ? void 0 : o.entityCode,
|
|
9788
|
-
parentCodes:
|
|
9798
|
+
parentCodes: T.data.parents.join(".")
|
|
9789
9799
|
});
|
|
9790
9800
|
}
|
|
9791
9801
|
function b() {
|
|
@@ -9799,64 +9809,64 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9799
9809
|
if (l)
|
|
9800
9810
|
return v("ul", {
|
|
9801
9811
|
class: "w-100 functions-list"
|
|
9802
|
-
}, [Object.keys(l).map((
|
|
9803
|
-
"variable-type":
|
|
9804
|
-
class: d.value(
|
|
9812
|
+
}, [Object.keys(l).map((S) => l[S].visible && v("li", {
|
|
9813
|
+
"variable-type": S,
|
|
9814
|
+
class: d.value(S)
|
|
9805
9815
|
}, [v("div", {
|
|
9806
9816
|
class: "functions-type-name pl-2 d-flex align-items-center",
|
|
9807
|
-
onClick: (
|
|
9808
|
-
w(
|
|
9817
|
+
onClick: (T) => {
|
|
9818
|
+
w(T, S);
|
|
9809
9819
|
}
|
|
9810
9820
|
}, [v("span", {
|
|
9811
|
-
class: g.value(
|
|
9812
|
-
}, null), l[
|
|
9821
|
+
class: g.value(S)
|
|
9822
|
+
}, null), l[S].name]), v("ul", {
|
|
9813
9823
|
class: "pl-3 mr-2"
|
|
9814
|
-
}, [l[
|
|
9815
|
-
class: p.value(
|
|
9816
|
-
onClick: (
|
|
9817
|
-
onDblclick: (
|
|
9818
|
-
}, [
|
|
9819
|
-
}
|
|
9820
|
-
function
|
|
9821
|
-
if (
|
|
9824
|
+
}, [l[S].items.map((T) => v("li", {
|
|
9825
|
+
class: p.value(T),
|
|
9826
|
+
onClick: (P) => k(P, T),
|
|
9827
|
+
onDblclick: (P) => B(P, T)
|
|
9828
|
+
}, [T.name]))])]))]);
|
|
9829
|
+
}
|
|
9830
|
+
function x(S, T) {
|
|
9831
|
+
if (S.stopPropagation(), n.value === T) {
|
|
9822
9832
|
n.value = "";
|
|
9823
9833
|
return;
|
|
9824
9834
|
}
|
|
9825
|
-
n.value =
|
|
9835
|
+
n.value = T;
|
|
9826
9836
|
}
|
|
9827
9837
|
be(() => {
|
|
9828
9838
|
if (l) {
|
|
9829
|
-
const
|
|
9830
|
-
h.value[
|
|
9839
|
+
const S = Object.keys(l)[0];
|
|
9840
|
+
h.value[S] = !0;
|
|
9831
9841
|
}
|
|
9832
9842
|
});
|
|
9833
|
-
function M(
|
|
9834
|
-
const
|
|
9835
|
-
return
|
|
9843
|
+
function M(S, T) {
|
|
9844
|
+
const P = S.children.map((_) => M(_, T)).filter((_) => _ !== null);
|
|
9845
|
+
return S.data.name.toLowerCase().includes(T.toLowerCase()) || S.data.bindingPath.toLowerCase().includes(T.toLowerCase()) ? {
|
|
9836
9846
|
data: {
|
|
9837
|
-
...
|
|
9847
|
+
...S.data
|
|
9838
9848
|
},
|
|
9839
|
-
children:
|
|
9849
|
+
children: S.children
|
|
9840
9850
|
// 注意这里保留原始子节点
|
|
9841
|
-
} :
|
|
9851
|
+
} : P.length > 0 ? {
|
|
9842
9852
|
data: {
|
|
9843
|
-
...
|
|
9853
|
+
...S.data
|
|
9844
9854
|
},
|
|
9845
|
-
children:
|
|
9855
|
+
children: P
|
|
9846
9856
|
} : null;
|
|
9847
9857
|
}
|
|
9848
|
-
function I(
|
|
9849
|
-
return
|
|
9858
|
+
function I(S, T) {
|
|
9859
|
+
return S.map((P) => M(P, T)).filter((P) => P !== null);
|
|
9850
9860
|
}
|
|
9851
9861
|
function R() {
|
|
9852
|
-
const
|
|
9853
|
-
u.value =
|
|
9862
|
+
const S = I((o == null ? void 0 : o.fields) || [], i.value);
|
|
9863
|
+
u.value = S;
|
|
9854
9864
|
}
|
|
9855
|
-
function
|
|
9865
|
+
function E() {
|
|
9856
9866
|
u.value = (o == null ? void 0 : o.fields) || [];
|
|
9857
9867
|
}
|
|
9858
|
-
function
|
|
9859
|
-
|
|
9868
|
+
function F(S) {
|
|
9869
|
+
S.key === "Enter" && R();
|
|
9860
9870
|
}
|
|
9861
9871
|
return () => v("div", {
|
|
9862
9872
|
class: "f-utils-fill entity-variable"
|
|
@@ -9866,7 +9876,7 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9866
9876
|
class: r.value("dataEntity")
|
|
9867
9877
|
}, [v("div", {
|
|
9868
9878
|
class: "title px-2 d-flex align-items-center",
|
|
9869
|
-
onClick: (
|
|
9879
|
+
onClick: (S) => x(S, "dataEntity")
|
|
9870
9880
|
}, [ie("数据实体"), v("span", {
|
|
9871
9881
|
class: m.value("dataEntity")
|
|
9872
9882
|
}, null)]), v("div", {
|
|
@@ -9880,15 +9890,15 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9880
9890
|
popupOnClick: !0,
|
|
9881
9891
|
placeholder: "请输入名称或编号,按回车查询",
|
|
9882
9892
|
modelValue: i.value,
|
|
9883
|
-
"onUpdate:modelValue": (
|
|
9893
|
+
"onUpdate:modelValue": (S) => i.value = S,
|
|
9884
9894
|
onClickButton: R,
|
|
9885
|
-
onClear:
|
|
9886
|
-
onKeyup:
|
|
9895
|
+
onClear: E,
|
|
9896
|
+
onKeyup: F
|
|
9887
9897
|
}, null)]), b()])]), v("li", {
|
|
9888
9898
|
class: r.value("variables")
|
|
9889
9899
|
}, [v("div", {
|
|
9890
9900
|
class: "title px-2 d-flex align-items-center",
|
|
9891
|
-
onClick: (
|
|
9901
|
+
onClick: (S) => x(S, "variables")
|
|
9892
9902
|
}, [ie("变量"), v("span", {
|
|
9893
9903
|
class: m.value("variables")
|
|
9894
9904
|
}, null)]), v("div", {
|
|
@@ -9931,7 +9941,7 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9931
9941
|
};
|
|
9932
9942
|
}), r = C(Object.keys(s.value));
|
|
9933
9943
|
Z(() => e.functionItems, (b) => {
|
|
9934
|
-
s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y,
|
|
9944
|
+
s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y, x) => (y[x] = !0, y), {}));
|
|
9935
9945
|
});
|
|
9936
9946
|
function m(b) {
|
|
9937
9947
|
b || (b = a.value);
|
|
@@ -9960,12 +9970,12 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9960
9970
|
item: y
|
|
9961
9971
|
});
|
|
9962
9972
|
}
|
|
9963
|
-
Z(() => a.value, (b, y,
|
|
9973
|
+
Z(() => a.value, (b, y, x) => {
|
|
9964
9974
|
if (b) {
|
|
9965
9975
|
const M = setTimeout(() => {
|
|
9966
9976
|
m(b);
|
|
9967
9977
|
}, 200);
|
|
9968
|
-
|
|
9978
|
+
x(() => clearTimeout(M));
|
|
9969
9979
|
}
|
|
9970
9980
|
});
|
|
9971
9981
|
function w() {
|
|
@@ -9994,8 +10004,8 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9994
10004
|
if (y.visible !== !1)
|
|
9995
10005
|
return v("li", {
|
|
9996
10006
|
class: f.value(y),
|
|
9997
|
-
onClick: (
|
|
9998
|
-
onDblclick: (
|
|
10007
|
+
onClick: (x) => g(x, y),
|
|
10008
|
+
onDblclick: (x) => p(x, y)
|
|
9999
10009
|
}, [b === "advanced" ? y.key : y.name]);
|
|
10000
10010
|
})])])) : v("li", {
|
|
10001
10011
|
class: "empty-message"
|
|
@@ -10155,15 +10165,15 @@ function yu(e, t, n) {
|
|
|
10155
10165
|
if (b === 0 && k && w[O].length > 2 && w[O][0] === '"' && w[O][w[O].length - 1] === '"') {
|
|
10156
10166
|
const y = w[O].substring(1, w[O].length - 1);
|
|
10157
10167
|
if (k.has(y) && w[O - 1] === "(" && w[O + 1] === ")") {
|
|
10158
|
-
const
|
|
10159
|
-
|
|
10168
|
+
const x = k.get(y);
|
|
10169
|
+
x !== void 0 && (w[O] = `"${x}"`, b = 1);
|
|
10160
10170
|
}
|
|
10161
10171
|
}
|
|
10162
10172
|
if (b === 0) {
|
|
10163
|
-
const y = Object.values(t).map((
|
|
10164
|
-
for (let
|
|
10165
|
-
if (w[O] === y[
|
|
10166
|
-
w[O] = y[
|
|
10173
|
+
const y = Object.values(t).map((x) => x.items).flat();
|
|
10174
|
+
for (let x = 0; x < y.length; x++)
|
|
10175
|
+
if (w[O] === y[x].name) {
|
|
10176
|
+
w[O] = y[x].keyFront + "." + y[x].key, b = 1;
|
|
10167
10177
|
break;
|
|
10168
10178
|
}
|
|
10169
10179
|
}
|
|
@@ -10185,22 +10195,22 @@ function yu(e, t, n) {
|
|
|
10185
10195
|
y = y + 1;
|
|
10186
10196
|
continue;
|
|
10187
10197
|
} else {
|
|
10188
|
-
let
|
|
10189
|
-
if (
|
|
10198
|
+
let x = 0;
|
|
10199
|
+
if (x === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
|
|
10190
10200
|
const M = p[y].substring(1, p[y].length - 1);
|
|
10191
10201
|
if (k.has(M) && p[y - 1] === "(" && p[y + 1] === ")") {
|
|
10192
10202
|
const I = k.get(M);
|
|
10193
|
-
I !== void 0 && (O = O + `"${I}"`,
|
|
10203
|
+
I !== void 0 && (O = O + `"${I}"`, x = 1);
|
|
10194
10204
|
}
|
|
10195
10205
|
}
|
|
10196
|
-
if (
|
|
10206
|
+
if (x === 0) {
|
|
10197
10207
|
for (let M = 0; M < w.length; M++)
|
|
10198
10208
|
if (p[y] === w[M].key && w[M].type.toLowerCase() !== "advanced") {
|
|
10199
|
-
O = O + w[M].name,
|
|
10209
|
+
O = O + w[M].name, x = 1;
|
|
10200
10210
|
break;
|
|
10201
10211
|
}
|
|
10202
10212
|
}
|
|
10203
|
-
|
|
10213
|
+
x === 0 && (O = O + p[y]);
|
|
10204
10214
|
}
|
|
10205
10215
|
}
|
|
10206
10216
|
return O;
|
|
@@ -10251,7 +10261,7 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10251
10261
|
props: Vr,
|
|
10252
10262
|
emits: [],
|
|
10253
10263
|
setup(e, t) {
|
|
10254
|
-
var
|
|
10264
|
+
var E;
|
|
10255
10265
|
const n = C(), a = C(e.validateMessage), o = C(e.messageType), l = C(e.modelValue), i = C(), u = [{
|
|
10256
10266
|
label: "提示",
|
|
10257
10267
|
value: "info"
|
|
@@ -10272,81 +10282,81 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10272
10282
|
onFunctionSearch: g
|
|
10273
10283
|
} = vu(e, d);
|
|
10274
10284
|
function p({
|
|
10275
|
-
$event:
|
|
10276
|
-
item:
|
|
10285
|
+
$event: F,
|
|
10286
|
+
item: S
|
|
10277
10287
|
}) {
|
|
10278
|
-
var
|
|
10279
|
-
const
|
|
10280
|
-
(
|
|
10288
|
+
var P;
|
|
10289
|
+
const T = s(S);
|
|
10290
|
+
(P = i.value) == null || P.insertText(T);
|
|
10281
10291
|
}
|
|
10282
10292
|
function w({
|
|
10283
|
-
$event:
|
|
10284
|
-
item:
|
|
10293
|
+
$event: F,
|
|
10294
|
+
item: S
|
|
10285
10295
|
}) {
|
|
10286
|
-
var
|
|
10287
|
-
const
|
|
10288
|
-
(
|
|
10289
|
-
}
|
|
10290
|
-
function k(
|
|
10291
|
-
return
|
|
10292
|
-
var
|
|
10293
|
-
return
|
|
10296
|
+
var P;
|
|
10297
|
+
const T = c(S);
|
|
10298
|
+
(P = i.value) == null || P.insertText(T);
|
|
10299
|
+
}
|
|
10300
|
+
function k(F) {
|
|
10301
|
+
return F.reduce((S, T) => {
|
|
10302
|
+
var P;
|
|
10303
|
+
return S.push(T.data), (P = T.children) != null && P.length && S.push(...k(T.children)), S;
|
|
10294
10304
|
}, []);
|
|
10295
10305
|
}
|
|
10296
|
-
const B = k(((
|
|
10297
|
-
function O(
|
|
10298
|
-
return
|
|
10299
|
-
const
|
|
10300
|
-
return
|
|
10306
|
+
const B = k(((E = e == null ? void 0 : e.entities) == null ? void 0 : E.fields) || []);
|
|
10307
|
+
function O(F) {
|
|
10308
|
+
return F.map((S) => {
|
|
10309
|
+
const T = B.find((P) => P.bindingPath === S);
|
|
10310
|
+
return T && T.type === "entity" ? `${S}[0]` : S;
|
|
10301
10311
|
}).join(".");
|
|
10302
10312
|
}
|
|
10303
10313
|
function b({
|
|
10304
|
-
$event:
|
|
10305
|
-
item:
|
|
10306
|
-
parentCodes:
|
|
10307
|
-
entityCode:
|
|
10314
|
+
$event: F,
|
|
10315
|
+
item: S,
|
|
10316
|
+
parentCodes: T,
|
|
10317
|
+
entityCode: P
|
|
10308
10318
|
}) {
|
|
10309
|
-
var
|
|
10310
|
-
const
|
|
10311
|
-
|
|
10312
|
-
let
|
|
10313
|
-
|
|
10319
|
+
var V;
|
|
10320
|
+
const L = f(S);
|
|
10321
|
+
T = e.isServerSide ? O(S.parents) : T;
|
|
10322
|
+
let _ = `${T}.${L}`;
|
|
10323
|
+
P === L && (_ = L), (V = i.value) == null || V.insertText(`${_}`);
|
|
10314
10324
|
}
|
|
10315
10325
|
function y({
|
|
10316
|
-
$event:
|
|
10317
|
-
item:
|
|
10326
|
+
$event: F,
|
|
10327
|
+
item: S
|
|
10318
10328
|
}) {
|
|
10319
|
-
var
|
|
10320
|
-
const
|
|
10321
|
-
(
|
|
10329
|
+
var P;
|
|
10330
|
+
const T = f(S);
|
|
10331
|
+
(P = i.value) == null || P.insertText(`${T}`);
|
|
10322
10332
|
}
|
|
10323
|
-
function
|
|
10324
|
-
var
|
|
10325
|
-
return (
|
|
10333
|
+
function x() {
|
|
10334
|
+
var F;
|
|
10335
|
+
return (F = i.value) == null ? void 0 : F.getContent();
|
|
10326
10336
|
}
|
|
10327
10337
|
function M() {
|
|
10328
|
-
var
|
|
10329
|
-
const
|
|
10338
|
+
var S;
|
|
10339
|
+
const F = (S = i.value) == null ? void 0 : S.getContent();
|
|
10330
10340
|
return {
|
|
10331
|
-
value: r(
|
|
10341
|
+
value: r(F),
|
|
10332
10342
|
message: a.value,
|
|
10333
10343
|
messageType: o.value
|
|
10334
10344
|
};
|
|
10335
10345
|
}
|
|
10336
10346
|
const I = C("");
|
|
10337
10347
|
function R() {
|
|
10338
|
-
var
|
|
10339
|
-
(
|
|
10348
|
+
var F;
|
|
10349
|
+
(F = i.value) == null || F.clearText();
|
|
10340
10350
|
}
|
|
10341
10351
|
return be(async () => {
|
|
10342
10352
|
if (l.value) {
|
|
10343
|
-
const
|
|
10344
|
-
expr:
|
|
10345
|
-
} =
|
|
10346
|
-
|
|
10353
|
+
const F = JSON.parse(l.value), {
|
|
10354
|
+
expr: S
|
|
10355
|
+
} = F;
|
|
10356
|
+
S && (I.value = await m(S) || "");
|
|
10347
10357
|
}
|
|
10348
10358
|
}), t.expose({
|
|
10349
|
-
getExpressionContext:
|
|
10359
|
+
getExpressionContext: x,
|
|
10350
10360
|
getExpressionValue: M,
|
|
10351
10361
|
resetExpression: R
|
|
10352
10362
|
}), () => v("div", {
|
|
@@ -10373,7 +10383,7 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10373
10383
|
class: "f-utils-fill my-2 ml-1"
|
|
10374
10384
|
}, [v(ru, {
|
|
10375
10385
|
modelValue: I.value,
|
|
10376
|
-
"onUpdate:modelValue": (
|
|
10386
|
+
"onUpdate:modelValue": (F) => I.value = F,
|
|
10377
10387
|
ref: i
|
|
10378
10388
|
}, null)]), e.showMessage && v("div", {
|
|
10379
10389
|
class: "d-flex flex-column p-1",
|
|
@@ -10384,7 +10394,7 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10384
10394
|
style: "width: 75px",
|
|
10385
10395
|
data: u,
|
|
10386
10396
|
modelValue: o.value,
|
|
10387
|
-
"onUpdate:modelValue": (
|
|
10397
|
+
"onUpdate:modelValue": (F) => o.value = F,
|
|
10388
10398
|
textField: "label",
|
|
10389
10399
|
valueField: "value",
|
|
10390
10400
|
idField: "value",
|
|
@@ -10392,7 +10402,7 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10392
10402
|
minPanelWidth: 130,
|
|
10393
10403
|
placement: "auto"
|
|
10394
10404
|
}, null)]), On(v("textarea", {
|
|
10395
|
-
"onUpdate:modelValue": (
|
|
10405
|
+
"onUpdate:modelValue": (F) => a.value = F,
|
|
10396
10406
|
class: "form-control",
|
|
10397
10407
|
style: "resize:none;border:none;outline:1px solid var(--f-neutral-04);"
|
|
10398
10408
|
}, null), [[Va, a.value]])])]
|
|
@@ -11337,54 +11347,55 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
11337
11347
|
displayText: r,
|
|
11338
11348
|
editable: m,
|
|
11339
11349
|
modelValue: d,
|
|
11340
|
-
|
|
11341
|
-
|
|
11350
|
+
getSelectedItemsByDisplayText: g,
|
|
11351
|
+
flatTreeNodes: p
|
|
11352
|
+
} = zu(e), w = N(() => e.multiSelect);
|
|
11342
11353
|
N(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
11343
|
-
const
|
|
11344
|
-
var
|
|
11345
|
-
const
|
|
11346
|
-
return
|
|
11354
|
+
const k = N(() => {
|
|
11355
|
+
var S;
|
|
11356
|
+
const F = (S = n.value) == null ? void 0 : S.popoverRef;
|
|
11357
|
+
return F ? F.shown : !1;
|
|
11347
11358
|
}), {
|
|
11348
|
-
onValueChange:
|
|
11349
|
-
resetDataSource:
|
|
11359
|
+
onValueChange: B,
|
|
11360
|
+
resetDataSource: O
|
|
11350
11361
|
} = Hu({
|
|
11351
11362
|
comboEditorRef: n,
|
|
11352
11363
|
dataSource: f,
|
|
11353
11364
|
searchFields: u,
|
|
11354
11365
|
originalValue: s,
|
|
11355
|
-
showPopover:
|
|
11356
|
-
flatTreeNodes:
|
|
11366
|
+
showPopover: k,
|
|
11367
|
+
flatTreeNodes: p
|
|
11357
11368
|
}, e.idField);
|
|
11358
|
-
function
|
|
11359
|
-
!
|
|
11369
|
+
function b() {
|
|
11370
|
+
!w.value && n.value && n.value.hidePopup();
|
|
11360
11371
|
}
|
|
11361
|
-
const
|
|
11362
|
-
function
|
|
11363
|
-
if (!
|
|
11364
|
-
r.value =
|
|
11372
|
+
const y = (F) => e.displayFormatter ? e.displayFormatter(F) : F.map((S) => S[e.textField]).join(e.separator);
|
|
11373
|
+
function x(F = []) {
|
|
11374
|
+
if (!w.value)
|
|
11375
|
+
r.value = y(F), d.value = F.map((S) => S[e.valueField]).join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", F, d.value);
|
|
11365
11376
|
else {
|
|
11366
|
-
const
|
|
11367
|
-
r.value =
|
|
11377
|
+
const S = Object.keys(h), T = Object.values(h);
|
|
11378
|
+
r.value = y(T), d.value = S.join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", T, d.value);
|
|
11368
11379
|
}
|
|
11369
|
-
|
|
11380
|
+
b();
|
|
11370
11381
|
}
|
|
11371
|
-
function F
|
|
11372
|
-
var
|
|
11373
|
-
d.value = "",
|
|
11382
|
+
function M(F) {
|
|
11383
|
+
var S;
|
|
11384
|
+
d.value = "", k.value && ((S = n.value) == null || S.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, d.value), t.emit("clear");
|
|
11374
11385
|
}
|
|
11375
|
-
function
|
|
11376
|
-
|
|
11386
|
+
function I(F) {
|
|
11387
|
+
w.value && (delete h[F.id], x());
|
|
11377
11388
|
}
|
|
11378
|
-
function
|
|
11379
|
-
|
|
11389
|
+
function R(F) {
|
|
11390
|
+
w.value && (h[F.id] = F.data, x());
|
|
11380
11391
|
}
|
|
11381
|
-
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, T,
|
|
11382
|
-
a.value =
|
|
11392
|
+
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, S, T, P, L]) => {
|
|
11393
|
+
a.value = F, m.value = S, o.value = T, l.value = P, i.value = L;
|
|
11383
11394
|
});
|
|
11384
|
-
const
|
|
11385
|
-
if (s.value = Le(f.value),
|
|
11386
|
-
const
|
|
11387
|
-
|
|
11395
|
+
const E = () => {
|
|
11396
|
+
if (s.value = Le(f.value), w.value && d.value) {
|
|
11397
|
+
const F = [];
|
|
11398
|
+
p(f.value, F), d.value.split(e.separator).reduce((S, T) => (S[T] = F.find((P) => P.id === T), S), h);
|
|
11388
11399
|
}
|
|
11389
11400
|
};
|
|
11390
11401
|
return () => v(jn, {
|
|
@@ -11403,16 +11414,16 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
11403
11414
|
inputType: e.viewType,
|
|
11404
11415
|
popupOnClick: !0,
|
|
11405
11416
|
modelValue: r.value,
|
|
11406
|
-
"onUpdate:modelValue": (
|
|
11407
|
-
onClear:
|
|
11408
|
-
onInput:
|
|
11417
|
+
"onUpdate:modelValue": (F) => r.value = F,
|
|
11418
|
+
onClear: M,
|
|
11419
|
+
onInput: B,
|
|
11409
11420
|
focusOnCreated: e.focusOnCreated,
|
|
11410
11421
|
selectOnCreated: e.selectOnCreated,
|
|
11411
|
-
beforeOpen:
|
|
11422
|
+
beforeOpen: E,
|
|
11412
11423
|
placement: e.placement,
|
|
11413
11424
|
popupMinWidth: e.minPanelWidth
|
|
11414
11425
|
}, {
|
|
11415
|
-
default: () => [
|
|
11426
|
+
default: () => [k.value && v(Au, {
|
|
11416
11427
|
ref: c,
|
|
11417
11428
|
maxHeight: e.maxHeight,
|
|
11418
11429
|
multiSelect: e.multiSelect,
|
|
@@ -11423,15 +11434,15 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
11423
11434
|
titleField: e.titleField,
|
|
11424
11435
|
data: s.value,
|
|
11425
11436
|
selectedValues: d.value,
|
|
11426
|
-
onSelectionChange:
|
|
11437
|
+
onSelectionChange: x,
|
|
11427
11438
|
formatter: e.formatter,
|
|
11428
11439
|
editorParams: e.editorParams,
|
|
11429
11440
|
repositoryToken: e.repositoryToken,
|
|
11430
11441
|
customRowStatus: e.customRowStatus,
|
|
11431
|
-
searchHandler:
|
|
11432
|
-
onUnSelectItem:
|
|
11433
|
-
onSelectItem:
|
|
11434
|
-
onClearSearch:
|
|
11442
|
+
searchHandler: B,
|
|
11443
|
+
onUnSelectItem: I,
|
|
11444
|
+
onSelectItem: R,
|
|
11445
|
+
onClearSearch: O
|
|
11435
11446
|
}, null)]
|
|
11436
11447
|
});
|
|
11437
11448
|
}
|
|
@@ -11806,19 +11817,19 @@ function Uu(e, t) {
|
|
|
11806
11817
|
function h() {
|
|
11807
11818
|
if (e.editorType === "filter")
|
|
11808
11819
|
for (let y = 0; y < t.value.length - 1; y++) {
|
|
11809
|
-
const
|
|
11810
|
-
(
|
|
11820
|
+
const x = t.value[y];
|
|
11821
|
+
(x.relation === ct.Empty || !x.relation) && (x.relation = ct.And);
|
|
11811
11822
|
}
|
|
11812
11823
|
}
|
|
11813
11824
|
function f() {
|
|
11814
11825
|
const y = Object.assign({}, u);
|
|
11815
11826
|
t.value = [...t.value, y];
|
|
11816
|
-
const
|
|
11817
|
-
n.value =
|
|
11827
|
+
const x = t.value.length - 1;
|
|
11828
|
+
n.value = x, h();
|
|
11818
11829
|
}
|
|
11819
11830
|
function r({ index: y }) {
|
|
11820
|
-
const
|
|
11821
|
-
e.insertType === "above" ? y === 0 ? t.value.unshift(
|
|
11831
|
+
const x = Object.assign({}, u);
|
|
11832
|
+
e.insertType === "above" ? y === 0 ? t.value.unshift(x) : t.value.splice(y, 0, x) : t.value.splice(y + 1, 0, x), t.value = [...t.value], h();
|
|
11822
11833
|
}
|
|
11823
11834
|
function m({ index: y }) {
|
|
11824
11835
|
t.value.splice(y, 1), t.value = [...t.value], !(n.value < 0) && (y === n.value ? t.value[y] ? n.value = y : t.value[y - 1] ? n.value = y - 1 : n.value = -1 : y < n.value && (t.value[n.value - 1] ? n.value = n.value - 1 : t.value[n.value] || (n.value = -1)));
|
|
@@ -11831,14 +11842,14 @@ function Uu(e, t) {
|
|
|
11831
11842
|
}
|
|
11832
11843
|
function p() {
|
|
11833
11844
|
if (n.value >= 0) {
|
|
11834
|
-
const y = n.value,
|
|
11835
|
-
t.value.splice(y - 1, 0, ...
|
|
11845
|
+
const y = n.value, x = t.value.splice(y, 1);
|
|
11846
|
+
t.value.splice(y - 1, 0, ...x), n.value = y - 1;
|
|
11836
11847
|
}
|
|
11837
11848
|
}
|
|
11838
11849
|
function w() {
|
|
11839
11850
|
if (n.value >= 0) {
|
|
11840
|
-
const y = n.value,
|
|
11841
|
-
t.value.splice(y + 1, 0, ...
|
|
11851
|
+
const y = n.value, x = t.value.splice(y, 1);
|
|
11852
|
+
t.value.splice(y + 1, 0, ...x), n.value = y + 1;
|
|
11842
11853
|
}
|
|
11843
11854
|
}
|
|
11844
11855
|
function k() {
|
|
@@ -11850,32 +11861,32 @@ function Uu(e, t) {
|
|
|
11850
11861
|
function O(y) {
|
|
11851
11862
|
if (y.length % 2 !== 0)
|
|
11852
11863
|
return !1;
|
|
11853
|
-
let
|
|
11864
|
+
let x = "";
|
|
11854
11865
|
for (const M of y)
|
|
11855
11866
|
if (M === "(")
|
|
11856
|
-
|
|
11867
|
+
x += M;
|
|
11857
11868
|
else if (M === ")") {
|
|
11858
|
-
if (!
|
|
11869
|
+
if (!x.endsWith("("))
|
|
11859
11870
|
return !1;
|
|
11860
|
-
|
|
11871
|
+
x = x.slice(0, -1);
|
|
11861
11872
|
}
|
|
11862
|
-
return
|
|
11873
|
+
return x.length === 0;
|
|
11863
11874
|
}
|
|
11864
11875
|
function b() {
|
|
11865
11876
|
const y = t.value.length;
|
|
11866
11877
|
if (!y)
|
|
11867
11878
|
return !0;
|
|
11868
|
-
let
|
|
11879
|
+
let x = !0, M = !0;
|
|
11869
11880
|
if (e.editorType !== "sort") {
|
|
11870
11881
|
t.value[y - 1].relation = ct.Empty, M = !t.value.slice(0, -1).some(
|
|
11871
|
-
(
|
|
11882
|
+
(F) => F.relation === ct.Empty || !F.relation
|
|
11872
11883
|
);
|
|
11873
|
-
const
|
|
11874
|
-
|
|
11884
|
+
const E = t.value.flatMap((F) => [F.lbracket, F.rbracket]).join("");
|
|
11885
|
+
x = O(E);
|
|
11875
11886
|
}
|
|
11876
11887
|
const I = t.value.some((R) => !R[i]);
|
|
11877
11888
|
return [
|
|
11878
|
-
{ result:
|
|
11889
|
+
{ result: x, message: "括号不匹配,请检查。" },
|
|
11879
11890
|
{ result: M, message: "关系设置不完整,请检查。" },
|
|
11880
11891
|
{ result: !I, message: "字段不允许为空,请检查。" }
|
|
11881
11892
|
].find((R) => !R.result);
|
|
@@ -11920,11 +11931,11 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11920
11931
|
activeRowIndex: O,
|
|
11921
11932
|
onSelectRow: b,
|
|
11922
11933
|
canClear: y,
|
|
11923
|
-
canMove:
|
|
11934
|
+
canMove: x,
|
|
11924
11935
|
validateCondition: M,
|
|
11925
11936
|
resetActiveRow: I
|
|
11926
11937
|
} = Uu(e, c), R = N(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
|
|
11927
|
-
function
|
|
11938
|
+
function E() {
|
|
11928
11939
|
return e.editorType === "sort" ? v(Gu, {
|
|
11929
11940
|
conditions: c.value,
|
|
11930
11941
|
fields: u.value,
|
|
@@ -11947,8 +11958,8 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11947
11958
|
formContextData: i.value
|
|
11948
11959
|
}, null);
|
|
11949
11960
|
}
|
|
11950
|
-
const
|
|
11951
|
-
async function
|
|
11961
|
+
const F = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)), S = N(() => e.disableConfirmWhenUnchanged && F.value);
|
|
11962
|
+
async function T() {
|
|
11952
11963
|
if (t.emit("update:modelValue", c.value), e.onSubmitModal) {
|
|
11953
11964
|
o == null || o.show();
|
|
11954
11965
|
const j = await e.onSubmitModal({
|
|
@@ -11962,7 +11973,7 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11962
11973
|
}
|
|
11963
11974
|
return !0;
|
|
11964
11975
|
}
|
|
11965
|
-
const
|
|
11976
|
+
const P = {
|
|
11966
11977
|
title: R.value,
|
|
11967
11978
|
width: 800,
|
|
11968
11979
|
height: 600,
|
|
@@ -11984,14 +11995,14 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11984
11995
|
name: "accept",
|
|
11985
11996
|
text: "确定",
|
|
11986
11997
|
class: "btn btn-primary",
|
|
11987
|
-
disabled:
|
|
11998
|
+
disabled: S,
|
|
11988
11999
|
handle: async (j) => {
|
|
11989
12000
|
const G = M();
|
|
11990
|
-
return
|
|
12001
|
+
return F.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await T();
|
|
11991
12002
|
}
|
|
11992
12003
|
}]
|
|
11993
12004
|
};
|
|
11994
|
-
async function
|
|
12005
|
+
async function L() {
|
|
11995
12006
|
if (e.beforeOpen)
|
|
11996
12007
|
try {
|
|
11997
12008
|
o == null || o.show();
|
|
@@ -12023,10 +12034,10 @@ const _u = /* @__PURE__ */ ae({
|
|
|
12023
12034
|
}
|
|
12024
12035
|
return I(), !0;
|
|
12025
12036
|
}
|
|
12026
|
-
function
|
|
12037
|
+
function _() {
|
|
12027
12038
|
t.emit("update:modelValue", "");
|
|
12028
12039
|
}
|
|
12029
|
-
function
|
|
12040
|
+
function V(j) {
|
|
12030
12041
|
t.emit("update:modelValue", j);
|
|
12031
12042
|
}
|
|
12032
12043
|
return () => v(Rt, {
|
|
@@ -12038,20 +12049,20 @@ const _u = /* @__PURE__ */ ae({
|
|
|
12038
12049
|
enableClear: e.enableClear,
|
|
12039
12050
|
buttonContent: s,
|
|
12040
12051
|
buttonBehavior: "Modal",
|
|
12041
|
-
modalOptions:
|
|
12042
|
-
beforeOpen:
|
|
12043
|
-
onClear:
|
|
12052
|
+
modalOptions: P,
|
|
12053
|
+
beforeOpen: L,
|
|
12054
|
+
onClear: _,
|
|
12044
12055
|
enableTitle: e.enableTitle,
|
|
12045
|
-
"onUpdate:modelValue":
|
|
12056
|
+
"onUpdate:modelValue": V
|
|
12046
12057
|
}, {
|
|
12047
12058
|
default: () => [v("div", {
|
|
12048
12059
|
class: "h-100 d-flex flex-column"
|
|
12049
12060
|
}, [v("div", {
|
|
12050
12061
|
style: "border-top: 1px solid white; position: absolute; top: 0; width: 100%; z-index: 2;",
|
|
12051
12062
|
class: "shading-border-top"
|
|
12052
|
-
}, null),
|
|
12063
|
+
}, null), E(), v(qu, {
|
|
12053
12064
|
canClear: y,
|
|
12054
|
-
canMove:
|
|
12065
|
+
canMove: x,
|
|
12055
12066
|
onAdd: r,
|
|
12056
12067
|
onClear: m,
|
|
12057
12068
|
onMoveBottom: d,
|
|
@@ -12075,7 +12086,7 @@ const _u = /* @__PURE__ */ ae({
|
|
|
12075
12086
|
"onUpdate:modelValue": n
|
|
12076
12087
|
}), null);
|
|
12077
12088
|
}
|
|
12078
|
-
}),
|
|
12089
|
+
}), Vd = {
|
|
12079
12090
|
install(e) {
|
|
12080
12091
|
e.component(en.name, en);
|
|
12081
12092
|
},
|
|
@@ -12085,5 +12096,5 @@ const _u = /* @__PURE__ */ ae({
|
|
|
12085
12096
|
};
|
|
12086
12097
|
export {
|
|
12087
12098
|
en as SortConditionEditor,
|
|
12088
|
-
|
|
12099
|
+
Vd as default
|
|
12089
12100
|
};
|