@farris/ui-vue 1.6.5-beta.7 → 1.6.5
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 +360 -361
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +524 -520
- 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 +190 -181
- 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 +309 -309
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1125 -1124
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +472 -472
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3387 -3321
- 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 +177 -177
- 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 +644 -644
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1773 -1760
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +879 -869
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +1091 -1077
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +215 -215
- 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 +139 -141
- 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 +1387 -1383
- 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 +217 -217
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +283 -283
- 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 +194 -194
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +463 -462
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +883 -876
- 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 +59 -57
- 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 +739 -739
- 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 +535 -535
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1456 -1443
- 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 +1875 -1866
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +151 -147
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1236 -1233
- 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 +1097 -1083
- 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 +103 -98
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1596 -1593
- 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 +684 -684
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.esm.js +935 -929
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +190 -192
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +124 -124
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2363 -2278
- 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 +227 -227
- 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/designer/button-edit/index.esm.js +353 -353
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +7 -3
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +38 -33
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +3562 -3536
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +3 -3
- package/designer/data-view/index.umd.cjs +3 -3
- package/designer/farris-designer.all.esm.js +4203 -4193
- package/designer/farris-designer.all.umd.cjs +9 -9
- package/designer/input-group/index.esm.js +97 -97
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +1868 -1854
- package/designer/list-view/index.umd.cjs +8 -8
- package/designer/radio-group/index.esm.js +954 -949
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +16195 -16126
- package/farris.all.umd.cjs +30 -30
- package/locales/data-grid/ui/en.json +2 -2
- package/locales/designer/en.json +7 -6
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +7 -6
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
|
@@ -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) => {
|
|
@@ -525,16 +525,16 @@ function An(e, t, n) {
|
|
|
525
525
|
const p = d.$converter || g;
|
|
526
526
|
return typeof p == "string" && p && a.has(p) ? a.get(p) || null : p || null;
|
|
527
527
|
}
|
|
528
|
-
function h(d, g, p, w, k, B = "",
|
|
528
|
+
function h(d, g, p, w, k, B = "", M = "") {
|
|
529
529
|
return Object.keys(d).map((y) => {
|
|
530
|
-
const
|
|
531
|
-
|
|
532
|
-
const
|
|
533
|
-
let j = c(I,
|
|
530
|
+
const x = C(1), E = y, I = d[y], R = Object.keys(I), O = 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, M) : [], V = !0;
|
|
533
|
+
let j = c(I, M);
|
|
534
534
|
const G = N({
|
|
535
535
|
get() {
|
|
536
|
-
if (
|
|
537
|
-
if (["class", "style"].find((de) => de ===
|
|
536
|
+
if (x.value) {
|
|
537
|
+
if (["class", "style"].find((de) => de === E) && !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];
|
|
540
540
|
return Object.prototype.hasOwnProperty.call(I, "defaultValue") && (le === void 0 || typeof le == "string" && le === "") ? I.type === "boolean" ? I.defaultValue : I.defaultValue || "" : le;
|
|
@@ -542,45 +542,45 @@ 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:
|
|
548
|
-
return g[
|
|
547
|
+
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: E, propertyName: O, propertyType: F, propertyValue: G, editor: T, visible: P, readonly: L, cascadeConfig: _, hideCascadeTitle: V, refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve };
|
|
548
|
+
return g[E] = X, X;
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
function f(d, g, p = {}) {
|
|
552
552
|
const w = {}, k = e[d];
|
|
553
|
-
return k && k.categories ? Object.keys(k.categories).map((
|
|
554
|
-
const b = k.categories[
|
|
555
|
-
return { categoryId:
|
|
553
|
+
return k && k.categories ? Object.keys(k.categories).map((M) => {
|
|
554
|
+
const b = k.categories[M], y = b == null ? void 0 : b.title, x = h(b.properties || {}, w, {}, p, g);
|
|
555
|
+
return { categoryId: M, categoryName: y, properties: x };
|
|
556
556
|
}) : [];
|
|
557
557
|
}
|
|
558
558
|
function r(d, g, p, w, k = "") {
|
|
559
|
-
const B = g.$ref.schema,
|
|
559
|
+
const B = g.$ref.schema, M = g.$ref.converter, b = p[B], y = b.type, x = n(b), E = {}, I = e[y];
|
|
560
560
|
if (I && I.categories) {
|
|
561
|
-
const R = I.categories[d],
|
|
562
|
-
|
|
563
|
-
R.properties[
|
|
561
|
+
const R = I.categories[d], O = R == null ? void 0 : R.title;
|
|
562
|
+
M && Object.keys(R.properties).forEach((T) => {
|
|
563
|
+
R.properties[T].$converter = M;
|
|
564
564
|
});
|
|
565
|
-
const
|
|
566
|
-
return { categoryId: d, categoryName:
|
|
565
|
+
const F = (R == null ? void 0 : R.properties) || {}, S = h(F, E, x, b, w, k);
|
|
566
|
+
return { categoryId: d, categoryName: O, properties: S };
|
|
567
567
|
}
|
|
568
568
|
return { categoryId: d, categoryName: "", properties: [] };
|
|
569
569
|
}
|
|
570
570
|
function m(d, g, p, w, k) {
|
|
571
|
-
const B = d.type,
|
|
571
|
+
const B = d.type, M = 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
|
|
575
|
-
return Object.keys(y.categories).map((
|
|
576
|
-
const I = y.categories[
|
|
574
|
+
const x = [];
|
|
575
|
+
return Object.keys(y.categories).map((E) => {
|
|
576
|
+
const I = y.categories[E];
|
|
577
577
|
if (I.$ref) {
|
|
578
|
-
|
|
578
|
+
x.push(r(E, 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, O = 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, M, d, g, w, I.$converter), { setPropertyRelates: L } = I, _ = I == null ? void 0 : I.parentPropertyID;
|
|
582
|
+
x.push({ categoryId: E, categoryName: R, tabId: O, 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
|
-
function
|
|
1260
|
-
const
|
|
1261
|
-
u.value && s.value && c.value && l.value && (u.value.height <
|
|
1259
|
+
function M() {
|
|
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 =
|
|
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(),
|
|
1275
|
+
V.subtract(o.value);
|
|
1276
|
+
const j = V.x, G = V.y;
|
|
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(), M(), 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
|
-
function
|
|
1285
|
+
function E() {
|
|
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
|
-
const j =
|
|
1308
|
+
const j = E();
|
|
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 O(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) => O(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) => O(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) => O(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) => O(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) => O(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) => O(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) => O(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) => O(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 = E(), 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,117 +1380,117 @@ 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(
|
|
1422
|
-
if (
|
|
1421
|
+
function m(x, E) {
|
|
1422
|
+
if (E.tagName === "BUTTON")
|
|
1423
1423
|
return !1;
|
|
1424
|
-
if (
|
|
1424
|
+
if (E === x)
|
|
1425
1425
|
return !0;
|
|
1426
|
-
for (const I in
|
|
1427
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1426
|
+
for (const I in E.children)
|
|
1427
|
+
if (Object.prototype.hasOwnProperty.call(E.children, I) && m(x, E.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, O;
|
|
1433
|
+
let x = f.value.x + h.value.x, E = 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" && (E = ((O = c.value) == null ? void 0 : O.y) || 0, f.value.y = 0);
|
|
1435
|
+
const I = `translate3d(${Math.round(x)}px, ${Math.round(E)}px, 0px)`;
|
|
1436
|
+
a.value && (a.value.style.transform = I), r.value.x = x, r.value.y = E;
|
|
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(), E = a.value.getBoundingClientRect(), I = {
|
|
1442
|
+
top: x.top < E.top,
|
|
1443
|
+
right: x.right > E.right,
|
|
1444
|
+
bottom: x.bottom > E.bottom,
|
|
1445
|
+
left: x.left < E.left
|
|
1446
1446
|
};
|
|
1447
|
-
return I.top || (f.value.y -=
|
|
1447
|
+
return I.top || (f.value.y -= E.top - x.top), I.bottom || (f.value.y -= E.bottom - x.bottom), I.right || (f.value.x -= E.right - x.right), I.left || (f.value.x -= E.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
|
-
function
|
|
1462
|
+
function M() {
|
|
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
|
|
1474
|
-
i.value !== void 0 &&
|
|
1473
|
+
const E = x.target || x.srcElement;
|
|
1474
|
+
i.value !== void 0 && E && !m(E, i.value) || o.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), c.value = re.fromEvent(x, a.value), M(), B());
|
|
1475
1475
|
}
|
|
1476
|
-
function y(
|
|
1477
|
-
if (o.value &&
|
|
1478
|
-
if (
|
|
1479
|
-
i.value =
|
|
1476
|
+
function y(x, E, I) {
|
|
1477
|
+
if (o.value && E) {
|
|
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;
|
|
1483
1483
|
else if (typeof e.dragHandle == "string") {
|
|
1484
|
-
const R =
|
|
1484
|
+
const R = E.querySelector(e.dragHandle);
|
|
1485
1485
|
R && (i.value = R);
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
|
-
a.value =
|
|
1488
|
+
a.value = E, u.value = I, i.value ? (i.value.classList.add("ng-draggable"), i.value.addEventListener("mousedown", b)) : o.value = !1;
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
1491
|
return {
|
|
1492
1492
|
registerDraggle: y,
|
|
1493
|
-
resetTranslate:
|
|
1493
|
+
resetTranslate: M
|
|
1494
1494
|
};
|
|
1495
1495
|
}
|
|
1496
1496
|
function Xn(e, t) {
|
|
@@ -1527,11 +1527,11 @@ const at = /* @__PURE__ */ ae({
|
|
|
1527
1527
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
1528
1528
|
setup(e, t) {
|
|
1529
1529
|
const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), l = C(""), i = C(e.class), u = C(e.fitContent), s = C(e.showHeader), c = C(""), h = C(e.showCloseButton), f = C(e.showMaxButton), r = C(!1), m = C(e.dialogType), d = C(e.src), g = C(""), p = C(e.showButtons), w = C(e.title), k = C(e.containment || null), B = C(), {
|
|
1530
|
-
t:
|
|
1530
|
+
t: M
|
|
1531
1531
|
} = St();
|
|
1532
|
-
w.value === "错误提示" && (w.value =
|
|
1532
|
+
w.value === "错误提示" && (w.value = M("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
|
-
text:
|
|
1547
|
+
text: M("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
|
-
text:
|
|
1554
|
+
text: M("messageBox.ok") || "确定",
|
|
1555
1555
|
class: "btn btn-primary",
|
|
1556
|
-
handle: (
|
|
1557
|
-
y(
|
|
1556
|
+
handle: ($) => {
|
|
1557
|
+
y($, !0);
|
|
1558
1558
|
}
|
|
1559
|
-
}],
|
|
1560
|
-
renderResizeBar:
|
|
1561
|
-
maximize:
|
|
1562
|
-
restore:
|
|
1563
|
-
boundingElement:
|
|
1564
|
-
resizedEventParam:
|
|
1559
|
+
}], E = C(e.buttons && e.buttons.length ? e.buttons : x), I = N(() => !!c.value), R = N(() => !!p.value && !!E.value), O = 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(O.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 && (E.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(O.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
|
-
}, [
|
|
1706
|
-
const Q = C(
|
|
1705
|
+
}, [E.value && E.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: O,
|
|
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(O, F) {
|
|
2204
|
+
var S = arguments.length;
|
|
2205
|
+
S === 1 && Array.isArray(O) === !1 && (F = O, O = []);
|
|
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 = O || []), 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, E(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 = E(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 = E(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 === E(z)) && (G = E(z)), (D === null && H || D !== z && D !== E(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 + M(pe) / 2);
|
|
2496
2496
|
}
|
|
2497
2497
|
function Me(pe) {
|
|
2498
|
-
return pe ?
|
|
2498
|
+
return pe ? E(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(O) {
|
|
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(O))
|
|
2514
|
+
return T;
|
|
2515
2515
|
return null;
|
|
2516
2516
|
}
|
|
2517
|
-
function m(
|
|
2518
|
-
const
|
|
2519
|
-
return
|
|
2520
|
-
const
|
|
2521
|
-
|
|
2522
|
-
}),
|
|
2517
|
+
function m(O) {
|
|
2518
|
+
const F = [];
|
|
2519
|
+
return O.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(O, 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](O, L[S], T) : l.navigator.msPointerEnabled ? u[F](O, _[S], T) : (u[F](O, P[S], T), u[F](O, 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(O) {
|
|
2541
|
+
if (O.touches !== void 0)
|
|
2542
|
+
return O.touches.length;
|
|
2543
|
+
if (O.which !== void 0 && O.which !== 0)
|
|
2544
|
+
return O.which;
|
|
2545
|
+
if (O.buttons !== void 0)
|
|
2546
|
+
return O.buttons;
|
|
2547
|
+
var F = O.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(O, F, S) {
|
|
2552
|
+
O = O || {};
|
|
2553
|
+
var T = O.className || "", P;
|
|
2554
|
+
return O.className += " gu-hide", P = c.elementFromPoint(F, S), O.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(O) {
|
|
2563
|
+
return O.width || O.right - O.left;
|
|
2564
2564
|
}
|
|
2565
|
-
function O
|
|
2566
|
-
return
|
|
2565
|
+
function M(O) {
|
|
2566
|
+
return O.height || O.bottom - O.top;
|
|
2567
2567
|
}
|
|
2568
|
-
function b(
|
|
2569
|
-
return
|
|
2568
|
+
function b(O) {
|
|
2569
|
+
return O.parentNode === c ? null : O.parentNode;
|
|
2570
2570
|
}
|
|
2571
|
-
function y(
|
|
2572
|
-
return
|
|
2571
|
+
function y(O) {
|
|
2572
|
+
return O.tagName === "INPUT" || O.tagName === "TEXTAREA" || O.tagName === "SELECT" || x(O);
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2575
|
-
return !
|
|
2574
|
+
function x(O) {
|
|
2575
|
+
return !O || O.contentEditable === "false" ? !1 : O.contentEditable === "true" ? !0 : x(b(O));
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2578
|
-
return
|
|
2579
|
-
function
|
|
2580
|
-
var
|
|
2577
|
+
function E(O) {
|
|
2578
|
+
return O.nextElementSibling || F();
|
|
2579
|
+
function F() {
|
|
2580
|
+
var S = O;
|
|
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(O) {
|
|
2588
|
+
return O.targetTouches && O.targetTouches.length ? O.targetTouches[0] : O.changedTouches && O.changedTouches.length ? O.changedTouches[0] : O;
|
|
2589
2589
|
}
|
|
2590
|
-
function R(
|
|
2591
|
-
var
|
|
2590
|
+
function R(O, 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 O in T && !(O in S) && T[O] in S && (O = T[O]), S[O];
|
|
2598
2598
|
}
|
|
2599
2599
|
a.exports = f;
|
|
2600
2600
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2657,62 +2657,62 @@ 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, E) {
|
|
2661
|
+
return b.addEventListener(y, x, E);
|
|
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, E) {
|
|
2667
|
+
return b.removeEventListener(y, x, E);
|
|
2668
2668
|
}
|
|
2669
|
-
function g(b, y,
|
|
2670
|
-
var
|
|
2671
|
-
if (
|
|
2672
|
-
return b.detachEvent("on" + y,
|
|
2669
|
+
function g(b, y, x) {
|
|
2670
|
+
var E = B(b, y, x);
|
|
2671
|
+
if (E)
|
|
2672
|
+
return b.detachEvent("on" + y, E);
|
|
2673
2673
|
}
|
|
2674
|
-
function p(b, y,
|
|
2675
|
-
var
|
|
2676
|
-
b.dispatchEvent ? b.dispatchEvent(
|
|
2674
|
+
function p(b, y, x) {
|
|
2675
|
+
var E = u.indexOf(y) === -1 ? R() : I();
|
|
2676
|
+
b.dispatchEvent ? b.dispatchEvent(E) : b.fireEvent("on" + y, E);
|
|
2677
2677
|
function I() {
|
|
2678
|
-
var
|
|
2679
|
-
return s.createEvent ? (
|
|
2678
|
+
var O;
|
|
2679
|
+
return s.createEvent ? (O = s.createEvent("Event"), O.initEvent(y, !0, !0)) : s.createEventObject && (O = s.createEventObject()), O;
|
|
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
|
|
2695
|
+
function k(b, y, x) {
|
|
2696
|
+
var E = B(b, y, x) || w(b, y, x);
|
|
2697
2697
|
return f.push({
|
|
2698
|
-
wrapper:
|
|
2698
|
+
wrapper: E,
|
|
2699
2699
|
element: b,
|
|
2700
2700
|
type: y,
|
|
2701
|
-
fn:
|
|
2702
|
-
}),
|
|
2701
|
+
fn: x
|
|
2702
|
+
}), E;
|
|
2703
2703
|
}
|
|
2704
|
-
function B(b, y,
|
|
2705
|
-
var
|
|
2706
|
-
if (
|
|
2707
|
-
var I = f[
|
|
2708
|
-
return f.splice(
|
|
2704
|
+
function B(b, y, x) {
|
|
2705
|
+
var E = M(b, y, x);
|
|
2706
|
+
if (E) {
|
|
2707
|
+
var I = f[E].wrapper;
|
|
2708
|
+
return f.splice(E, 1), I;
|
|
2709
2709
|
}
|
|
2710
2710
|
}
|
|
2711
|
-
function
|
|
2712
|
-
var
|
|
2713
|
-
for (
|
|
2714
|
-
if (I = f[
|
|
2715
|
-
return
|
|
2711
|
+
function M(b, y, x) {
|
|
2712
|
+
var E, I;
|
|
2713
|
+
for (E = 0; E < f.length; E++)
|
|
2714
|
+
if (I = f[E], I.element === b && I.type === y && I.fn === x)
|
|
2715
|
+
return E;
|
|
2716
2716
|
}
|
|
2717
2717
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2718
2718
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -2770,33 +2770,33 @@ var Jl = { exports: {} };
|
|
|
2770
2770
|
u = c;
|
|
2771
2771
|
}
|
|
2772
2772
|
})();
|
|
2773
|
-
function h(
|
|
2773
|
+
function h(M) {
|
|
2774
2774
|
if (i === setTimeout)
|
|
2775
|
-
return setTimeout(
|
|
2775
|
+
return setTimeout(M, 0);
|
|
2776
2776
|
if ((i === s || !i) && setTimeout)
|
|
2777
|
-
return i = setTimeout, setTimeout(
|
|
2777
|
+
return i = setTimeout, setTimeout(M, 0);
|
|
2778
2778
|
try {
|
|
2779
|
-
return i(
|
|
2779
|
+
return i(M, 0);
|
|
2780
2780
|
} catch {
|
|
2781
2781
|
try {
|
|
2782
|
-
return i.call(null,
|
|
2782
|
+
return i.call(null, M, 0);
|
|
2783
2783
|
} catch {
|
|
2784
|
-
return i.call(this,
|
|
2784
|
+
return i.call(this, M, 0);
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
2787
2787
|
}
|
|
2788
|
-
function f(
|
|
2788
|
+
function f(M) {
|
|
2789
2789
|
if (u === clearTimeout)
|
|
2790
|
-
return clearTimeout(
|
|
2790
|
+
return clearTimeout(M);
|
|
2791
2791
|
if ((u === c || !u) && clearTimeout)
|
|
2792
|
-
return u = clearTimeout, clearTimeout(
|
|
2792
|
+
return u = clearTimeout, clearTimeout(M);
|
|
2793
2793
|
try {
|
|
2794
|
-
return u(
|
|
2794
|
+
return u(M);
|
|
2795
2795
|
} catch {
|
|
2796
2796
|
try {
|
|
2797
|
-
return u.call(null,
|
|
2797
|
+
return u.call(null, M);
|
|
2798
2798
|
} catch {
|
|
2799
|
-
return u.call(this,
|
|
2799
|
+
return u.call(this, M);
|
|
2800
2800
|
}
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
@@ -2806,38 +2806,38 @@ var Jl = { exports: {} };
|
|
|
2806
2806
|
}
|
|
2807
2807
|
function w() {
|
|
2808
2808
|
if (!m) {
|
|
2809
|
-
var
|
|
2809
|
+
var M = h(p);
|
|
2810
2810
|
m = !0;
|
|
2811
2811
|
for (var b = r.length; b; ) {
|
|
2812
2812
|
for (d = r, r = []; ++g < b; )
|
|
2813
2813
|
d && d[g].run();
|
|
2814
2814
|
g = -1, b = r.length;
|
|
2815
2815
|
}
|
|
2816
|
-
d = null, m = !1, f(
|
|
2816
|
+
d = null, m = !1, f(M);
|
|
2817
2817
|
}
|
|
2818
2818
|
}
|
|
2819
|
-
l.nextTick = function(
|
|
2819
|
+
l.nextTick = function(M) {
|
|
2820
2820
|
var b = new Array(arguments.length - 1);
|
|
2821
2821
|
if (arguments.length > 1)
|
|
2822
2822
|
for (var y = 1; y < arguments.length; y++)
|
|
2823
2823
|
b[y - 1] = arguments[y];
|
|
2824
|
-
r.push(new k(
|
|
2824
|
+
r.push(new k(M, b)), r.length === 1 && !m && h(w);
|
|
2825
2825
|
};
|
|
2826
|
-
function k(
|
|
2827
|
-
this.fun =
|
|
2826
|
+
function k(M, b) {
|
|
2827
|
+
this.fun = M, this.array = b;
|
|
2828
2828
|
}
|
|
2829
2829
|
k.prototype.run = function() {
|
|
2830
2830
|
this.fun.apply(null, this.array);
|
|
2831
2831
|
}, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {};
|
|
2832
2832
|
function B() {
|
|
2833
2833
|
}
|
|
2834
|
-
l.on = B, l.addListener = B, l.once = B, l.off = B, l.removeListener = B, l.removeAllListeners = B, l.emit = B, l.prependListener = B, l.prependOnceListener = B, l.listeners = function(
|
|
2834
|
+
l.on = B, l.addListener = B, l.once = B, l.off = B, l.removeListener = B, l.removeAllListeners = B, l.emit = B, l.prependListener = B, l.prependOnceListener = B, l.listeners = function(M) {
|
|
2835
2835
|
return [];
|
|
2836
|
-
}, l.binding = function(
|
|
2836
|
+
}, l.binding = function(M) {
|
|
2837
2837
|
throw new Error("process.binding is not supported");
|
|
2838
2838
|
}, l.cwd = function() {
|
|
2839
2839
|
return "/";
|
|
2840
|
-
}, l.chdir = function(
|
|
2840
|
+
}, l.chdir = function(M) {
|
|
2841
2841
|
throw new Error("process.chdir is not supported");
|
|
2842
2842
|
}, l.umask = function() {
|
|
2843
2843
|
return 0;
|
|
@@ -2918,39 +2918,39 @@ const Ql = {
|
|
|
2918
2918
|
locale: n,
|
|
2919
2919
|
t: a
|
|
2920
2920
|
} = St(), o = C(e.animate), l = "fadeOut", i = N(() => e.options), u = C(!1), s = N(() => i.value.title && i.value.message), c = N(() => !i.value.title && i.value.message), h = N(() => {
|
|
2921
|
-
const
|
|
2921
|
+
const M = {
|
|
2922
2922
|
animated: u.value,
|
|
2923
2923
|
toast: !0,
|
|
2924
2924
|
"toast--only-content": !s.value
|
|
2925
2925
|
};
|
|
2926
|
-
return
|
|
2926
|
+
return M[e.animate] = !1, M[l] = u.value, M["toasty-type-" + i.value.type] = !0, i.value.theme && (M[i.value.theme] = !0), M;
|
|
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"
|
|
2935
2935
|
} : {});
|
|
2936
|
-
function p(
|
|
2937
|
-
|
|
2936
|
+
function p(M) {
|
|
2937
|
+
M.stopPropagation(), M.preventDefault(), u.value = !1, setTimeout(() => {
|
|
2938
2938
|
t.emit("close", i.value);
|
|
2939
2939
|
}, 200);
|
|
2940
2940
|
}
|
|
2941
|
-
function w(
|
|
2941
|
+
function w(M, b) {
|
|
2942
2942
|
}
|
|
2943
|
-
function k(
|
|
2944
|
-
return `f-preten-link ${
|
|
2943
|
+
function k(M) {
|
|
2944
|
+
return `f-preten-link ${M.customClass ? M.customClass : ""}`;
|
|
2945
2945
|
}
|
|
2946
2946
|
Z(o, () => {
|
|
2947
2947
|
o.value;
|
|
2948
2948
|
});
|
|
2949
2949
|
const B = () => {
|
|
2950
|
-
var
|
|
2950
|
+
var M;
|
|
2951
2951
|
return v(ot, null, [v("div", {
|
|
2952
2952
|
class: "after-toast-msg text-right"
|
|
2953
|
-
}, [!t.slots.default && ((
|
|
2953
|
+
}, [!t.slots.default && ((M = i.value.buttons) == null ? void 0 : M.map((b) => v("span", {
|
|
2954
2954
|
class: k(b),
|
|
2955
2955
|
onClick: (y) => void 0
|
|
2956
2956
|
}, [b.text]))), t.slots.default && t.slots.default()])]);
|
|
@@ -3321,51 +3321,51 @@ function ti(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
|
|
|
3321
3321
|
} = l, {
|
|
3322
3322
|
columnContext: k,
|
|
3323
3323
|
hasLeftFixedColumn: B,
|
|
3324
|
-
hasRightFixedColumn:
|
|
3324
|
+
hasRightFixedColumn: M
|
|
3325
3325
|
} = i, {
|
|
3326
3326
|
gridDataStyle: b,
|
|
3327
3327
|
leftFixedGridDataStyle: y,
|
|
3328
|
-
rightFixedGridDataStyle:
|
|
3328
|
+
rightFixedGridDataStyle: x
|
|
3329
3329
|
} = m, {
|
|
3330
|
-
renderDataRow:
|
|
3331
|
-
} = Ya(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [
|
|
3332
|
-
function R(
|
|
3333
|
-
const
|
|
3334
|
-
return p.value.filter((
|
|
3330
|
+
renderDataRow: E
|
|
3331
|
+
} = Ya(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [E];
|
|
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 O() {
|
|
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(O()), P.push(F()), M.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({
|
|
@@ -3379,21 +3379,21 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3379
3379
|
} = i, s = C(), c = C(), h = C(), f = C(), r = C(), m = C([]), d = C(!1), g = C(((pn = e.rowOption) == null ? void 0 : pn.wrapContent) || !1), p = Ja(e, i), w = Qa(e, t), k = Za(e), {
|
|
3380
3380
|
collapseField: B
|
|
3381
3381
|
} = k, {
|
|
3382
|
-
showLoading:
|
|
3382
|
+
showLoading: M,
|
|
3383
3383
|
renderLoading: b
|
|
3384
3384
|
} = Ka(e, s), y = eo(e, /* @__PURE__ */ new Map(), w, k, i), {
|
|
3385
|
-
dataView:
|
|
3386
|
-
} = y,
|
|
3385
|
+
dataView: x
|
|
3386
|
+
} = y, E = to(e, y, i, m, t), {
|
|
3387
3387
|
showSelection: I,
|
|
3388
3388
|
selectedValues: R
|
|
3389
|
-
} =
|
|
3390
|
-
shouldRenderPagination:
|
|
3391
|
-
} =
|
|
3392
|
-
containerStyleObject:
|
|
3393
|
-
} = oo(e),
|
|
3394
|
-
applyCommands:
|
|
3395
|
-
} =
|
|
3396
|
-
|
|
3389
|
+
} = E, O = no(e, m, y, i, E, 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,
|
|
3408
|
+
const le = uo(e, ve), de = co(e, t, E, 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
|
-
} = $e, it = ho(e, ve), Je = go(e,
|
|
3410
|
+
} = $e, it = ho(e, ve), Je = go(e, E), {
|
|
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,13 +3432,13 @@ 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,
|
|
3435
|
+
} = ti(e, t, h, f, r, it, W, y, ne, k, de, E, O, se, $e, U, m), {
|
|
3436
3436
|
renderGridHeader: fe,
|
|
3437
3437
|
renderGridColumnResizeOverlay: Ie,
|
|
3438
3438
|
shouldShowHeader: Lt
|
|
3439
|
-
} = xo(e, t, c, f, r, W, y, ut, st, w, We, Qe, le,
|
|
3439
|
+
} = xo(e, t, c, f, r, W, y, ut, st, w, We, Qe, le, E, Je, ee, se, Oe, m), {
|
|
3440
3440
|
renderDataGridSidebar: $t
|
|
3441
|
-
} = Fo(e, de,
|
|
3441
|
+
} = Fo(e, de, E, Je, se), {
|
|
3442
3442
|
renderDisableMask: At
|
|
3443
3443
|
} = To(), {
|
|
3444
3444
|
renderHorizontalScrollbar: zt
|
|
@@ -3453,9 +3453,9 @@ 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
|
+
})), M.value && b();
|
|
3459
3459
|
}), kt(() => {
|
|
3460
3460
|
}), Z(Oe, () => {
|
|
3461
3461
|
c.value && Ne();
|
|
@@ -3467,24 +3467,24 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3467
3467
|
y.expandTo(q), y.reOrderVisibleIndex(), He();
|
|
3468
3468
|
}
|
|
3469
3469
|
function vt() {
|
|
3470
|
-
const q =
|
|
3470
|
+
const q = E.getSelectionRow();
|
|
3471
3471
|
return q ? q.dataIndex - 1 : -1;
|
|
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 = O.getNextSelectableHierarchyItemId(q);
|
|
3487
|
+
y.removeHierarchyDataItem(q), m.value = Be(0, S.value + 0 - 1), J && O.selectItemById(J);
|
|
3488
3488
|
}
|
|
3489
3489
|
function Tt(q) {
|
|
3490
3490
|
ne.onEditingRow(q);
|
|
@@ -3492,20 +3492,20 @@ 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
|
|
3508
|
-
|
|
3507
|
+
function Y(q) {
|
|
3508
|
+
O.selectItemById(q);
|
|
3509
3509
|
}
|
|
3510
3510
|
function K(q) {
|
|
3511
3511
|
const J = m.value.find((me) => me.raw[i.idField.value] === q);
|
|
@@ -3515,28 +3515,28 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3515
3515
|
de.activeRowById(q);
|
|
3516
3516
|
}
|
|
3517
3517
|
function Te(q) {
|
|
3518
|
-
|
|
3518
|
+
O.selectItemByIds(q);
|
|
3519
3519
|
}
|
|
3520
3520
|
function Ce() {
|
|
3521
|
-
return
|
|
3521
|
+
return E.getSelectedItems();
|
|
3522
3522
|
}
|
|
3523
3523
|
function Se() {
|
|
3524
|
-
|
|
3524
|
+
E.clearSelection();
|
|
3525
3525
|
}
|
|
3526
3526
|
const Me = N(() => !m.value || !m.value.length), {
|
|
3527
3527
|
renderEmpty: pe
|
|
3528
3528
|
} = Mo(e, t);
|
|
3529
3529
|
function Ee() {
|
|
3530
|
-
return
|
|
3530
|
+
return E.getSelectionRow();
|
|
3531
3531
|
}
|
|
3532
3532
|
function xe(q) {
|
|
3533
|
-
|
|
3533
|
+
O.unSelectItemByIds(q);
|
|
3534
3534
|
}
|
|
3535
3535
|
function he() {
|
|
3536
|
-
return
|
|
3536
|
+
return E.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]));
|
|
@@ -3587,7 +3587,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3587
3587
|
me && de.changeRow(me);
|
|
3588
3588
|
}
|
|
3589
3589
|
function xa() {
|
|
3590
|
-
|
|
3590
|
+
E.keepSelectingOnPaging.value || Se(), y.updateVisibleDataSummary(m.value);
|
|
3591
3591
|
}
|
|
3592
3592
|
t.expose({
|
|
3593
3593
|
activeRowById: te,
|
|
@@ -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, E);
|
|
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 O;
|
|
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
|
|
3858
|
-
if (!
|
|
3857
|
+
function M(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(),
|
|
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(), M(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
|
|
3888
|
-
var
|
|
3889
|
-
if (!((
|
|
3887
|
+
function E(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 && (E(), 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: (O = t == null ? void 0 : t.parent) == null ? void 0 : O.componentInstance,
|
|
3933
3933
|
schema: t == null ? void 0 : t.schema,
|
|
3934
3934
|
styles: a,
|
|
3935
3935
|
designerClass: o,
|
|
@@ -3945,9 +3945,9 @@ 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
|
-
setComponentBasicInfoMap:
|
|
3950
|
+
setComponentBasicInfoMap: E,
|
|
3951
3951
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
3952
3952
|
}, l;
|
|
3953
3953
|
}
|
|
@@ -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(O, F = !0) {
|
|
4772
|
+
n.value = O, F && (t.emit("change", O), t.emit("update:modelValue", O));
|
|
4773
4773
|
}
|
|
4774
|
-
function k(
|
|
4775
|
-
u.value = !1, w(
|
|
4774
|
+
function k(O) {
|
|
4775
|
+
u.value = !1, w(O, !0);
|
|
4776
4776
|
}
|
|
4777
4777
|
Z(
|
|
4778
4778
|
() => e.modelValue,
|
|
4779
|
-
(
|
|
4780
|
-
n.value =
|
|
4779
|
+
(O) => {
|
|
4780
|
+
n.value = O;
|
|
4781
4781
|
}
|
|
4782
4782
|
);
|
|
4783
|
-
function B(
|
|
4784
|
-
m.value = !1, t.emit("blur",
|
|
4783
|
+
function B(O) {
|
|
4784
|
+
m.value = !1, t.emit("blur", O), O.stopPropagation();
|
|
4785
4785
|
}
|
|
4786
|
-
function O
|
|
4787
|
-
t.emit("click",
|
|
4786
|
+
function M(O) {
|
|
4787
|
+
t.emit("click", O), 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(O) {
|
|
4790
|
+
!e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus", O), i.value && !u.value && o.popup()));
|
|
4791
4791
|
}
|
|
4792
|
-
function y(
|
|
4793
|
-
t.emit("input",
|
|
4794
|
-
const
|
|
4795
|
-
a.value =
|
|
4792
|
+
function y(O) {
|
|
4793
|
+
t.emit("input", O);
|
|
4794
|
+
const F = O.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(O) {
|
|
4798
|
+
O.target.tagName !== "INPUT" && O.preventDefault(), O.stopPropagation();
|
|
4799
4799
|
}
|
|
4800
|
-
function
|
|
4801
|
-
t.emit("keydown",
|
|
4800
|
+
function E(O) {
|
|
4801
|
+
t.emit("keydown", O);
|
|
4802
4802
|
}
|
|
4803
|
-
function I(
|
|
4804
|
-
|
|
4803
|
+
function I(O) {
|
|
4804
|
+
O.key === "Enter" && (l.value || i.value) && o.hidePopup(), t.emit("keyup", O);
|
|
4805
4805
|
}
|
|
4806
|
-
function R(
|
|
4807
|
-
const
|
|
4808
|
-
|
|
4806
|
+
function R(O) {
|
|
4807
|
+
const F = O.target.value;
|
|
4808
|
+
O.stopPropagation(), w(F);
|
|
4809
4809
|
}
|
|
4810
4810
|
return {
|
|
4811
4811
|
hasFocusedTextBox: d,
|
|
@@ -4818,12 +4818,12 @@ function ir(e, t, n, a, o) {
|
|
|
4818
4818
|
changeTextBoxValue: w,
|
|
4819
4819
|
commitValue: k,
|
|
4820
4820
|
onBlurTextBox: B,
|
|
4821
|
-
onClickTextBox:
|
|
4821
|
+
onClickTextBox: M,
|
|
4822
4822
|
onFocusTextBox: b,
|
|
4823
4823
|
onInput: y,
|
|
4824
|
-
onKeyDownTextBox:
|
|
4824
|
+
onKeyDownTextBox: E,
|
|
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, E;
|
|
4895
|
+
e.selectOnCreated && ((x = a.value) == null || x.select()), e.focusOnCreated && ((E = a.value) == null || E.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),
|
|
4900
|
-
|
|
4901
|
-
}, b = (
|
|
4902
|
-
|
|
4899
|
+
const B = C(!1), M = (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,
|
|
@@ -4929,7 +4929,7 @@ function sr(e, t, n) {
|
|
|
4929
4929
|
onKeyup: m,
|
|
4930
4930
|
onMousedown: d,
|
|
4931
4931
|
onCompositionend: b,
|
|
4932
|
-
onCompositionstart:
|
|
4932
|
+
onCompositionstart: M
|
|
4933
4933
|
}, null);
|
|
4934
4934
|
}
|
|
4935
4935
|
function ur(e, t, n) {
|
|
@@ -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), M = 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 E = C(x());
|
|
5082
5082
|
an(() => {
|
|
5083
|
-
|
|
5083
|
+
E.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)(), !!E.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("+"), E.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: O,
|
|
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: M.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(), O()])]), 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
|
+
onChange: {
|
|
5585
|
+
description: "",
|
|
5586
|
+
type: "string"
|
|
5579
5587
|
}
|
|
5580
5588
|
}, Tr = [
|
|
5581
5589
|
"type"
|
|
@@ -5835,8 +5843,8 @@ const un = {
|
|
|
5835
5843
|
const k = (p = s.value) == null ? void 0 : p[0];
|
|
5836
5844
|
let B = k;
|
|
5837
5845
|
if (!je(k)) {
|
|
5838
|
-
const
|
|
5839
|
-
b === "number" &&
|
|
5846
|
+
const M = typeof k, b = typeof ((w = a.value[0]) == null ? void 0 : w[e.valueField || e.idField]);
|
|
5847
|
+
b === "number" && M !== b && (B = Number(k)), b === "boolean" && M !== b && (B = k === "true" ? !0 : k === "false" ? !1 : k), g(B);
|
|
5840
5848
|
}
|
|
5841
5849
|
}
|
|
5842
5850
|
}), t.expose({
|
|
@@ -5870,8 +5878,8 @@ function Nr(e) {
|
|
|
5870
5878
|
function i(r) {
|
|
5871
5879
|
const m = e.multiSelect ? String(r).split(e.separator) : [String(r)], d = m.map((w) => [w, !0]), g = new Map(d);
|
|
5872
5880
|
return o.value.filter((w) => g.has(String(w[e.valueField]))).sort((w, k) => {
|
|
5873
|
-
const B = m.indexOf(w[e.valueField]),
|
|
5874
|
-
return B -
|
|
5881
|
+
const B = m.indexOf(w[e.valueField]), M = m.indexOf(k[e.valueField]);
|
|
5882
|
+
return B - M;
|
|
5875
5883
|
});
|
|
5876
5884
|
}
|
|
5877
5885
|
function u(r) {
|
|
@@ -5898,9 +5906,9 @@ function Nr(e) {
|
|
|
5898
5906
|
const { url: r, method: m = "GET", headers: d = { "Content-Type": "application/json;charset=utf-8;" }, body: g = null } = e.remote, p = m.toLowerCase() === "get" ? { method: m, headers: d } : { method: m, headers: d, body: g };
|
|
5899
5907
|
let w = !1;
|
|
5900
5908
|
fetch(new Request(r, p)).then((k) => {
|
|
5901
|
-
var
|
|
5909
|
+
var M, b;
|
|
5902
5910
|
if (k.status === 200)
|
|
5903
|
-
return w = !!((b = (
|
|
5911
|
+
return w = !!((b = (M = k.headers) == null ? void 0 : M.get("content-type")) != null && b.includes("application/json")), w ? k.text() : k.json();
|
|
5904
5912
|
throw k.status === 405 ? new Error(t("comboList.remoteError")) : new Error(k.statusText);
|
|
5905
5913
|
}).then((k) => {
|
|
5906
5914
|
k.length && (o.value = w ? JSON.parse(k) : k);
|
|
@@ -5931,56 +5939,60 @@ 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 M(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
|
+
M(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 E(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
|
-
|
|
5973
|
+
const T = d(S);
|
|
5974
|
+
e.viewType;
|
|
5975
|
+
const L = T.map((_) => _[e.idField || e.valueField]).join(e.separator);
|
|
5976
|
+
r.value !== L && (r.value = L, t.emit("update:modelValue", r.value), t.emit("change", T, r.value));
|
|
5965
5977
|
}
|
|
5966
5978
|
}
|
|
5967
|
-
function
|
|
5979
|
+
function R() {
|
|
5968
5980
|
return h.value;
|
|
5969
5981
|
}
|
|
5970
|
-
function
|
|
5982
|
+
function O(S) {
|
|
5971
5983
|
const {
|
|
5972
5984
|
value: T
|
|
5973
5985
|
} = S.target;
|
|
5974
|
-
|
|
5986
|
+
E(T), t.emit("input", T);
|
|
5975
5987
|
}
|
|
5976
|
-
function
|
|
5988
|
+
function F() {
|
|
5977
5989
|
o.value.hidePopup();
|
|
5978
5990
|
}
|
|
5979
5991
|
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 =
|
|
5992
|
+
getDisplayText: R,
|
|
5993
|
+
hidePopup: F
|
|
5994
|
+
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, T, P, L, _]) => {
|
|
5995
|
+
l.value = S, f.value = T, i.value = P, u.value = L, s.value = _;
|
|
5984
5996
|
}), () => v(jn, {
|
|
5985
5997
|
ref: o,
|
|
5986
5998
|
id: e.id,
|
|
@@ -5988,7 +6000,7 @@ const lt = /* @__PURE__ */ ae({
|
|
|
5988
6000
|
readonly: s.value,
|
|
5989
6001
|
forcePlaceholder: e.forcePlaceholder,
|
|
5990
6002
|
editable: f.value,
|
|
5991
|
-
buttonContent:
|
|
6003
|
+
buttonContent: p.value,
|
|
5992
6004
|
placeholder: e.placeholder === "请选择" ? n("comboList.placeholder") : e.placeholder,
|
|
5993
6005
|
enableClear: i.value,
|
|
5994
6006
|
maxLength: e.maxLength,
|
|
@@ -6000,11 +6012,11 @@ const lt = /* @__PURE__ */ ae({
|
|
|
6000
6012
|
"onUpdate:modelValue": (S) => h.value = S,
|
|
6001
6013
|
focusOnCreated: e.focusOnCreated,
|
|
6002
6014
|
selectOnCreated: e.selectOnCreated,
|
|
6003
|
-
onClear:
|
|
6004
|
-
onClick:
|
|
6005
|
-
onChange:
|
|
6006
|
-
onBlur:
|
|
6007
|
-
onInput:
|
|
6015
|
+
onClear: x,
|
|
6016
|
+
onClick: y,
|
|
6017
|
+
onChange: I,
|
|
6018
|
+
onBlur: b,
|
|
6019
|
+
onInput: O,
|
|
6008
6020
|
beforeOpen: e.beforeOpen,
|
|
6009
6021
|
placement: e.placement,
|
|
6010
6022
|
popupMinWidth: e.minPanelWidth,
|
|
@@ -6025,9 +6037,9 @@ const lt = /* @__PURE__ */ ae({
|
|
|
6025
6037
|
enableSearch: u.value,
|
|
6026
6038
|
maxHeight: e.maxHeight,
|
|
6027
6039
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
6028
|
-
width: e.fitEditor ?
|
|
6040
|
+
width: e.fitEditor ? k.value : void 0,
|
|
6029
6041
|
onSelectionChange: (S) => {
|
|
6030
|
-
|
|
6042
|
+
M(S), B();
|
|
6031
6043
|
}
|
|
6032
6044
|
}, null)]
|
|
6033
6045
|
});
|
|
@@ -6043,7 +6055,7 @@ class Ir extends Po {
|
|
|
6043
6055
|
super(t, n);
|
|
6044
6056
|
}
|
|
6045
6057
|
getCommonEditorProperties(t) {
|
|
6046
|
-
var n, a, o
|
|
6058
|
+
var n, a, o;
|
|
6047
6059
|
return {
|
|
6048
6060
|
viewType: {
|
|
6049
6061
|
visible: !!((n = t.editor) != null && n.multiSelect),
|
|
@@ -6077,14 +6089,15 @@ class Ir extends Po {
|
|
|
6077
6089
|
title: "允许编辑",
|
|
6078
6090
|
type: "boolean",
|
|
6079
6091
|
refreshPanelAfterChanged: !0,
|
|
6080
|
-
readonly:
|
|
6081
|
-
|
|
6082
|
-
enableHighlightSearch: {
|
|
6083
|
-
visible: !!((u = t.editor) != null && u.editable),
|
|
6084
|
-
description: "编辑状态下启用高亮搜索",
|
|
6085
|
-
title: "启用高亮搜索",
|
|
6086
|
-
type: "boolean"
|
|
6092
|
+
readonly: !0
|
|
6093
|
+
// readonly: !!propertyData.editor?.multiSelect && (propertyData.editor?.viewType === 'tag' || !propertyData.editor!.viewType)
|
|
6087
6094
|
}
|
|
6095
|
+
// enableHighlightSearch: {
|
|
6096
|
+
// visible: !!propertyData.editor?.editable,
|
|
6097
|
+
// description: "编辑状态下启用高亮搜索",
|
|
6098
|
+
// title: "启用高亮搜索",
|
|
6099
|
+
// type: "boolean"
|
|
6100
|
+
// },
|
|
6088
6101
|
};
|
|
6089
6102
|
}
|
|
6090
6103
|
getEditorProperties(t) {
|
|
@@ -6511,19 +6524,19 @@ function sa(e) {
|
|
|
6511
6524
|
return o.value > 0 && (p.cursor = "n-resize"), p;
|
|
6512
6525
|
});
|
|
6513
6526
|
function h(p, w, k, B) {
|
|
6514
|
-
const
|
|
6515
|
-
if (
|
|
6516
|
-
const { left: b, right: y, width:
|
|
6517
|
-
let
|
|
6518
|
-
B === "right" && (
|
|
6527
|
+
const M = e.value;
|
|
6528
|
+
if (M) {
|
|
6529
|
+
const { left: b, right: y, width: x } = M.getBoundingClientRect();
|
|
6530
|
+
let E = p.clientX - b;
|
|
6531
|
+
B === "right" && (E = y - p.clientX), E > w && (E = w), E < k && (E = k), B === "right" && (E = x - E), a.value = E;
|
|
6519
6532
|
}
|
|
6520
6533
|
}
|
|
6521
6534
|
function f(p, w, k, B) {
|
|
6522
|
-
const
|
|
6523
|
-
if (
|
|
6524
|
-
const { top: b, bottom: y, height:
|
|
6525
|
-
let
|
|
6526
|
-
B === "bottom" && (
|
|
6535
|
+
const M = e.value;
|
|
6536
|
+
if (M) {
|
|
6537
|
+
const { top: b, bottom: y, height: x } = M.getBoundingClientRect();
|
|
6538
|
+
let E = p.clientY - b;
|
|
6539
|
+
B === "bottom" && (E = y - p.clientY), E > w && (E = w), E < k && (E = k), B === "bottom" && (E = x - E), o.value = E;
|
|
6527
6540
|
}
|
|
6528
6541
|
}
|
|
6529
6542
|
function r() {
|
|
@@ -6544,20 +6557,20 @@ function sa(e) {
|
|
|
6544
6557
|
function d(p, w) {
|
|
6545
6558
|
const k = r(), B = m();
|
|
6546
6559
|
if (k && B) {
|
|
6547
|
-
const
|
|
6560
|
+
const M = B == null ? void 0 : B.right, b = B == null ? void 0 : B.left;
|
|
6548
6561
|
if (p === "left" && b)
|
|
6549
|
-
return
|
|
6550
|
-
if (p === "right" &&
|
|
6562
|
+
return M ? k.width - M.clientWidth - w : k.width - w;
|
|
6563
|
+
if (p === "right" && M)
|
|
6551
6564
|
return b ? k.width - b.clientWidth - w : k.width - w;
|
|
6552
6565
|
}
|
|
6553
6566
|
}
|
|
6554
6567
|
function g(p, w) {
|
|
6555
6568
|
const k = r(), B = m();
|
|
6556
6569
|
if (k && B) {
|
|
6557
|
-
const
|
|
6570
|
+
const M = B == null ? void 0 : B.bottom, b = B == null ? void 0 : B.top;
|
|
6558
6571
|
if (p === "top" && b)
|
|
6559
|
-
return
|
|
6560
|
-
if (p === "bottom" &&
|
|
6572
|
+
return M ? k.height - M.clientHeight - w : k.height - w;
|
|
6573
|
+
if (p === "bottom" && M)
|
|
6561
6574
|
return b ? k.height - b.clientHeight - w : k.height - w;
|
|
6562
6575
|
}
|
|
6563
6576
|
}
|
|
@@ -6819,38 +6832,38 @@ function ca(e, t, n, a, o) {
|
|
|
6819
6832
|
let g = "", p, w, k;
|
|
6820
6833
|
function B(y) {
|
|
6821
6834
|
if ((g === "left" || g === "right") && w) {
|
|
6822
|
-
const { left:
|
|
6823
|
-
let R = g === "left" ? (
|
|
6835
|
+
const { left: x } = w.getBoundingClientRect(), { width: E } = p.getBoundingClientRect(), I = y.clientX - x;
|
|
6836
|
+
let R = g === "left" ? (E || 0) + (I - l.value) : (E || 0) - (I - l.value);
|
|
6824
6837
|
R = n.value > 0 ? Math.max(n.value, R) : R;
|
|
6825
|
-
const
|
|
6826
|
-
|
|
6838
|
+
const O = d(g, n.value);
|
|
6839
|
+
O != null && (R = O > R ? R : O), e.value = R;
|
|
6827
6840
|
}
|
|
6828
6841
|
if ((g === "top" || g === "bottom") && w) {
|
|
6829
|
-
const { top:
|
|
6830
|
-
let R = g === "top" ? (
|
|
6842
|
+
const { top: x } = w.getBoundingClientRect(), { height: E } = p.getBoundingClientRect(), I = y.clientY - x;
|
|
6843
|
+
let R = g === "top" ? (E || 0) + (I - c.value) : (E || 0) - (I - c.value);
|
|
6831
6844
|
R = a.value > 0 ? Math.max(a.value, R) : R;
|
|
6832
|
-
const
|
|
6833
|
-
|
|
6845
|
+
const O = m(g, a.value);
|
|
6846
|
+
O != null && (R = O > R ? R : O), t.value = R;
|
|
6834
6847
|
}
|
|
6835
6848
|
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
6849
|
}
|
|
6837
|
-
function
|
|
6838
|
-
if (g =
|
|
6839
|
-
const { left: R } = w.getBoundingClientRect(),
|
|
6840
|
-
i.value =
|
|
6841
|
-
const
|
|
6842
|
-
k = (
|
|
6850
|
+
function M(y, x, E) {
|
|
6851
|
+
if (g = x, p = E, u.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6852
|
+
const { left: R } = w.getBoundingClientRect(), O = y.clientX - R;
|
|
6853
|
+
i.value = O, l.value = O;
|
|
6854
|
+
const F = d(g, n.value) || 0;
|
|
6855
|
+
k = (S) => f(S, F, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6843
6856
|
}
|
|
6844
6857
|
}
|
|
6845
|
-
function b(y,
|
|
6846
|
-
if (g =
|
|
6858
|
+
function b(y, x, E) {
|
|
6859
|
+
if (g = x, p = E, s.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6847
6860
|
const { top: R } = w.getBoundingClientRect();
|
|
6848
6861
|
h.value = y.clientY - R, c.value = y.clientY - R;
|
|
6849
|
-
const
|
|
6850
|
-
k = (
|
|
6862
|
+
const O = m(g, a.value) || 0;
|
|
6863
|
+
k = (F) => r(F, O, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6851
6864
|
}
|
|
6852
6865
|
}
|
|
6853
|
-
return { onClickHorizontalResizeBar:
|
|
6866
|
+
return { onClickHorizontalResizeBar: M, onClickVerticalResizeBar: b };
|
|
6854
6867
|
}
|
|
6855
6868
|
const Re = /* @__PURE__ */ ae({
|
|
6856
6869
|
name: "FLayoutPane",
|
|
@@ -6882,15 +6895,15 @@ const Re = /* @__PURE__ */ ae({
|
|
|
6882
6895
|
"f-page-content-nav": c.value === "left" || c.value === "right",
|
|
6883
6896
|
"f-page-content-main": c.value === "center"
|
|
6884
6897
|
};
|
|
6885
|
-
return e.customClass && String(e.customClass).split(" ").reduce((y,
|
|
6886
|
-
}),
|
|
6898
|
+
return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
|
|
6899
|
+
}), M = N(() => {
|
|
6887
6900
|
const b = {};
|
|
6888
6901
|
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;
|
|
6889
6902
|
});
|
|
6890
6903
|
return () => v("div", {
|
|
6891
6904
|
ref: s,
|
|
6892
6905
|
class: B.value,
|
|
6893
|
-
style:
|
|
6906
|
+
style: M.value,
|
|
6894
6907
|
"data-position": c.value
|
|
6895
6908
|
}, [t.slots.default && t.slots.default(), w.value && v("span", {
|
|
6896
6909
|
class: p.value,
|
|
@@ -6979,8 +6992,8 @@ const ps = /* @__PURE__ */ ae({
|
|
|
6979
6992
|
"f-page-content-nav": f.value === "left" || f.value === "right",
|
|
6980
6993
|
"f-page-content-main": f.value === "center"
|
|
6981
6994
|
};
|
|
6982
|
-
return e.customClass && String(e.customClass).split(" ").reduce((y,
|
|
6983
|
-
}),
|
|
6995
|
+
return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
|
|
6996
|
+
}), M = N(() => {
|
|
6984
6997
|
const b = {
|
|
6985
6998
|
flex: "1"
|
|
6986
6999
|
};
|
|
@@ -6989,7 +7002,7 @@ const ps = /* @__PURE__ */ ae({
|
|
|
6989
7002
|
return () => v("div", {
|
|
6990
7003
|
ref: n,
|
|
6991
7004
|
class: B.value,
|
|
6992
|
-
style:
|
|
7005
|
+
style: M.value
|
|
6993
7006
|
}, [v("div", {
|
|
6994
7007
|
ref: a,
|
|
6995
7008
|
class: "drag-container",
|
|
@@ -9720,143 +9733,143 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9720
9733
|
const n = C("dataEntity"), a = C(e.dataSource), {
|
|
9721
9734
|
entities: o,
|
|
9722
9735
|
variables: l
|
|
9723
|
-
} = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (
|
|
9724
|
-
|
|
9725
|
-
$event:
|
|
9726
|
-
item:
|
|
9736
|
+
} = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (S, T) => {
|
|
9737
|
+
S.stopPropagation(), t.emit("fieldClick", {
|
|
9738
|
+
$event: S,
|
|
9739
|
+
item: T.raw
|
|
9727
9740
|
});
|
|
9728
|
-
}, c = (
|
|
9729
|
-
const
|
|
9741
|
+
}, c = (S, T) => {
|
|
9742
|
+
const P = `${T.raw.name} [${T.raw.bindingPath}]`;
|
|
9730
9743
|
return v("div", {
|
|
9731
9744
|
class: "d-flex align-items-center w-100 entity-field",
|
|
9732
9745
|
style: "justify-content: space-between;"
|
|
9733
9746
|
}, [v("span", {
|
|
9734
|
-
title:
|
|
9747
|
+
title: P,
|
|
9735
9748
|
class: "f-utils-fill text-truncate"
|
|
9736
|
-
}, [
|
|
9749
|
+
}, [P]), v("button", {
|
|
9737
9750
|
title: "插入属性名称",
|
|
9738
9751
|
class: "btn btn-link d-none",
|
|
9739
9752
|
style: "width:24px;height:24px",
|
|
9740
|
-
onClick: (
|
|
9741
|
-
onDblclick: (
|
|
9753
|
+
onClick: (L) => s(L, T),
|
|
9754
|
+
onDblclick: (L) => L.stopPropagation()
|
|
9742
9755
|
}, [v("span", {
|
|
9743
9756
|
class: "f-icon f-icon-new-edit",
|
|
9744
9757
|
style: "font-size: 12px;"
|
|
9745
9758
|
}, null)])]);
|
|
9746
|
-
}, h = C({}), f = C(), r = N(() => (
|
|
9759
|
+
}, h = C({}), f = C(), r = N(() => (S) => ({
|
|
9747
9760
|
"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(() => (
|
|
9761
|
+
"f-utils-fill": n.value === S,
|
|
9762
|
+
expand: n.value === S,
|
|
9763
|
+
collapse: n.value !== S
|
|
9764
|
+
})), m = N(() => (S) => ({
|
|
9765
|
+
"f-icon f-icon-arrow-chevron-up": n.value !== S,
|
|
9766
|
+
"f-icon f-icon-arrow-chevron-down": n.value === S
|
|
9767
|
+
})), d = N(() => (S) => ({
|
|
9755
9768
|
"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
|
|
9769
|
+
open: h.value[S],
|
|
9770
|
+
closed: !h.value[S]
|
|
9771
|
+
})), g = N(() => (S) => ({
|
|
9772
|
+
"f-icon f-icon-arrow-chevron-down": h.value[S],
|
|
9773
|
+
"f-icon f-icon-arrow-chevron-right": !h.value[S]
|
|
9774
|
+
})), p = N(() => (S) => {
|
|
9775
|
+
var T;
|
|
9763
9776
|
return {
|
|
9764
9777
|
"functions-item pl-2": !0,
|
|
9765
|
-
selected: ((
|
|
9778
|
+
selected: ((T = f.value) == null ? void 0 : T.key) === S.key
|
|
9766
9779
|
};
|
|
9767
9780
|
});
|
|
9768
|
-
function w(
|
|
9769
|
-
|
|
9781
|
+
function w(S, T) {
|
|
9782
|
+
S.stopPropagation(), h.value = h.value || {}, h.value[T] = !h.value[T];
|
|
9770
9783
|
}
|
|
9771
|
-
function k(
|
|
9772
|
-
|
|
9784
|
+
function k(S, T) {
|
|
9785
|
+
S.stopPropagation(), f.value = T;
|
|
9773
9786
|
}
|
|
9774
|
-
function B(
|
|
9787
|
+
function B(S, T) {
|
|
9775
9788
|
t.emit("variableItemDblClick", {
|
|
9776
|
-
$event:
|
|
9777
|
-
item:
|
|
9789
|
+
$event: S,
|
|
9790
|
+
item: T
|
|
9778
9791
|
});
|
|
9779
9792
|
}
|
|
9780
|
-
function
|
|
9781
|
-
$event:
|
|
9782
|
-
node:
|
|
9793
|
+
function M({
|
|
9794
|
+
$event: S,
|
|
9795
|
+
node: T
|
|
9783
9796
|
}) {
|
|
9784
9797
|
t.emit("entityItemDblClick", {
|
|
9785
|
-
$event:
|
|
9786
|
-
item:
|
|
9798
|
+
$event: S,
|
|
9799
|
+
item: T.data,
|
|
9787
9800
|
entityCode: o == null ? void 0 : o.entityCode,
|
|
9788
|
-
parentCodes:
|
|
9801
|
+
parentCodes: T.data.parents.join(".")
|
|
9789
9802
|
});
|
|
9790
9803
|
}
|
|
9791
9804
|
function b() {
|
|
9792
9805
|
return v(cu, {
|
|
9793
9806
|
data: u.value,
|
|
9794
9807
|
formatter: c,
|
|
9795
|
-
onDblclickNode:
|
|
9808
|
+
onDblclickNode: M
|
|
9796
9809
|
}, null);
|
|
9797
9810
|
}
|
|
9798
9811
|
function y() {
|
|
9799
9812
|
if (l)
|
|
9800
9813
|
return v("ul", {
|
|
9801
9814
|
class: "w-100 functions-list"
|
|
9802
|
-
}, [Object.keys(l).map((
|
|
9803
|
-
"variable-type":
|
|
9804
|
-
class: d.value(
|
|
9815
|
+
}, [Object.keys(l).map((S) => l[S].visible && v("li", {
|
|
9816
|
+
"variable-type": S,
|
|
9817
|
+
class: d.value(S)
|
|
9805
9818
|
}, [v("div", {
|
|
9806
9819
|
class: "functions-type-name pl-2 d-flex align-items-center",
|
|
9807
|
-
onClick: (
|
|
9808
|
-
w(
|
|
9820
|
+
onClick: (T) => {
|
|
9821
|
+
w(T, S);
|
|
9809
9822
|
}
|
|
9810
9823
|
}, [v("span", {
|
|
9811
|
-
class: g.value(
|
|
9812
|
-
}, null), l[
|
|
9824
|
+
class: g.value(S)
|
|
9825
|
+
}, null), l[S].name]), v("ul", {
|
|
9813
9826
|
class: "pl-3 mr-2"
|
|
9814
|
-
}, [l[
|
|
9815
|
-
class: p.value(
|
|
9816
|
-
onClick: (
|
|
9817
|
-
onDblclick: (
|
|
9818
|
-
}, [
|
|
9819
|
-
}
|
|
9820
|
-
function
|
|
9821
|
-
if (
|
|
9827
|
+
}, [l[S].items.map((T) => v("li", {
|
|
9828
|
+
class: p.value(T),
|
|
9829
|
+
onClick: (P) => k(P, T),
|
|
9830
|
+
onDblclick: (P) => B(P, T)
|
|
9831
|
+
}, [T.name]))])]))]);
|
|
9832
|
+
}
|
|
9833
|
+
function x(S, T) {
|
|
9834
|
+
if (S.stopPropagation(), n.value === T) {
|
|
9822
9835
|
n.value = "";
|
|
9823
9836
|
return;
|
|
9824
9837
|
}
|
|
9825
|
-
n.value =
|
|
9838
|
+
n.value = T;
|
|
9826
9839
|
}
|
|
9827
9840
|
be(() => {
|
|
9828
9841
|
if (l) {
|
|
9829
|
-
const
|
|
9830
|
-
h.value[
|
|
9842
|
+
const S = Object.keys(l)[0];
|
|
9843
|
+
h.value[S] = !0;
|
|
9831
9844
|
}
|
|
9832
9845
|
});
|
|
9833
|
-
function
|
|
9834
|
-
const
|
|
9835
|
-
return
|
|
9846
|
+
function E(S, T) {
|
|
9847
|
+
const P = S.children.map((_) => E(_, T)).filter((_) => _ !== null);
|
|
9848
|
+
return S.data.name.toLowerCase().includes(T.toLowerCase()) || S.data.bindingPath.toLowerCase().includes(T.toLowerCase()) ? {
|
|
9836
9849
|
data: {
|
|
9837
|
-
...
|
|
9850
|
+
...S.data
|
|
9838
9851
|
},
|
|
9839
|
-
children:
|
|
9852
|
+
children: S.children
|
|
9840
9853
|
// 注意这里保留原始子节点
|
|
9841
|
-
} :
|
|
9854
|
+
} : P.length > 0 ? {
|
|
9842
9855
|
data: {
|
|
9843
|
-
...
|
|
9856
|
+
...S.data
|
|
9844
9857
|
},
|
|
9845
|
-
children:
|
|
9858
|
+
children: P
|
|
9846
9859
|
} : null;
|
|
9847
9860
|
}
|
|
9848
|
-
function I(
|
|
9849
|
-
return
|
|
9861
|
+
function I(S, T) {
|
|
9862
|
+
return S.map((P) => E(P, T)).filter((P) => P !== null);
|
|
9850
9863
|
}
|
|
9851
9864
|
function R() {
|
|
9852
|
-
const
|
|
9853
|
-
u.value =
|
|
9865
|
+
const S = I((o == null ? void 0 : o.fields) || [], i.value);
|
|
9866
|
+
u.value = S;
|
|
9854
9867
|
}
|
|
9855
|
-
function
|
|
9868
|
+
function O() {
|
|
9856
9869
|
u.value = (o == null ? void 0 : o.fields) || [];
|
|
9857
9870
|
}
|
|
9858
|
-
function
|
|
9859
|
-
|
|
9871
|
+
function F(S) {
|
|
9872
|
+
S.key === "Enter" && R();
|
|
9860
9873
|
}
|
|
9861
9874
|
return () => v("div", {
|
|
9862
9875
|
class: "f-utils-fill entity-variable"
|
|
@@ -9866,7 +9879,7 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9866
9879
|
class: r.value("dataEntity")
|
|
9867
9880
|
}, [v("div", {
|
|
9868
9881
|
class: "title px-2 d-flex align-items-center",
|
|
9869
|
-
onClick: (
|
|
9882
|
+
onClick: (S) => x(S, "dataEntity")
|
|
9870
9883
|
}, [ie("数据实体"), v("span", {
|
|
9871
9884
|
class: m.value("dataEntity")
|
|
9872
9885
|
}, null)]), v("div", {
|
|
@@ -9880,15 +9893,15 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9880
9893
|
popupOnClick: !0,
|
|
9881
9894
|
placeholder: "请输入名称或编号,按回车查询",
|
|
9882
9895
|
modelValue: i.value,
|
|
9883
|
-
"onUpdate:modelValue": (
|
|
9896
|
+
"onUpdate:modelValue": (S) => i.value = S,
|
|
9884
9897
|
onClickButton: R,
|
|
9885
|
-
onClear:
|
|
9886
|
-
onKeyup:
|
|
9898
|
+
onClear: O,
|
|
9899
|
+
onKeyup: F
|
|
9887
9900
|
}, null)]), b()])]), v("li", {
|
|
9888
9901
|
class: r.value("variables")
|
|
9889
9902
|
}, [v("div", {
|
|
9890
9903
|
class: "title px-2 d-flex align-items-center",
|
|
9891
|
-
onClick: (
|
|
9904
|
+
onClick: (S) => x(S, "variables")
|
|
9892
9905
|
}, [ie("变量"), v("span", {
|
|
9893
9906
|
class: m.value("variables")
|
|
9894
9907
|
}, null)]), v("div", {
|
|
@@ -9931,7 +9944,7 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9931
9944
|
};
|
|
9932
9945
|
}), r = C(Object.keys(s.value));
|
|
9933
9946
|
Z(() => e.functionItems, (b) => {
|
|
9934
|
-
s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y,
|
|
9947
|
+
s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y, x) => (y[x] = !0, y), {}));
|
|
9935
9948
|
});
|
|
9936
9949
|
function m(b) {
|
|
9937
9950
|
b || (b = a.value);
|
|
@@ -9960,12 +9973,12 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9960
9973
|
item: y
|
|
9961
9974
|
});
|
|
9962
9975
|
}
|
|
9963
|
-
Z(() => a.value, (b, y,
|
|
9976
|
+
Z(() => a.value, (b, y, x) => {
|
|
9964
9977
|
if (b) {
|
|
9965
|
-
const
|
|
9978
|
+
const E = setTimeout(() => {
|
|
9966
9979
|
m(b);
|
|
9967
9980
|
}, 200);
|
|
9968
|
-
|
|
9981
|
+
x(() => clearTimeout(E));
|
|
9969
9982
|
}
|
|
9970
9983
|
});
|
|
9971
9984
|
function w() {
|
|
@@ -9977,7 +9990,7 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9977
9990
|
function B(b) {
|
|
9978
9991
|
b.key === "Enter" && w();
|
|
9979
9992
|
}
|
|
9980
|
-
function
|
|
9993
|
+
function M() {
|
|
9981
9994
|
return r.value.length ? r.value.map((b) => v("li", {
|
|
9982
9995
|
"function-type": b,
|
|
9983
9996
|
class: c.value(b)
|
|
@@ -9994,8 +10007,8 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9994
10007
|
if (y.visible !== !1)
|
|
9995
10008
|
return v("li", {
|
|
9996
10009
|
class: f.value(y),
|
|
9997
|
-
onClick: (
|
|
9998
|
-
onDblclick: (
|
|
10010
|
+
onClick: (x) => g(x, y),
|
|
10011
|
+
onDblclick: (x) => p(x, y)
|
|
9999
10012
|
}, [b === "advanced" ? y.key : y.name]);
|
|
10000
10013
|
})])])) : v("li", {
|
|
10001
10014
|
class: "empty-message"
|
|
@@ -10035,7 +10048,7 @@ const ru = /* @__PURE__ */ ae({
|
|
|
10035
10048
|
default: () => [v("ul", {
|
|
10036
10049
|
class: "w-100 functions-list",
|
|
10037
10050
|
style: "user-select: none"
|
|
10038
|
-
}, [
|
|
10051
|
+
}, [M()])]
|
|
10039
10052
|
}), v(Re, {
|
|
10040
10053
|
"custom-class": "position-relative",
|
|
10041
10054
|
position: "bottom",
|
|
@@ -10111,8 +10124,8 @@ function yu(e, t, n) {
|
|
|
10111
10124
|
if (a.value) {
|
|
10112
10125
|
let w = Object.keys(p);
|
|
10113
10126
|
const { types: k, functions: B } = a.value;
|
|
10114
|
-
return k && k.length && (w = w.filter((
|
|
10115
|
-
|
|
10127
|
+
return k && k.length && (w = w.filter((M) => k.includes(M))), B && B.length && Object.values(p).forEach((M) => {
|
|
10128
|
+
M.items.forEach((b) => {
|
|
10116
10129
|
B.includes(b.name) && (b.visible = !1);
|
|
10117
10130
|
});
|
|
10118
10131
|
}), p;
|
|
@@ -10150,20 +10163,20 @@ function yu(e, t, n) {
|
|
|
10150
10163
|
if (!p)
|
|
10151
10164
|
return "";
|
|
10152
10165
|
const w = o(p), k = l(n, "name2key");
|
|
10153
|
-
for (let
|
|
10166
|
+
for (let M = 0; M < w.length; M++) {
|
|
10154
10167
|
let b = 0;
|
|
10155
|
-
if (b === 0 && k && w[
|
|
10156
|
-
const y = w[
|
|
10157
|
-
if (k.has(y) && w[
|
|
10158
|
-
const
|
|
10159
|
-
|
|
10168
|
+
if (b === 0 && k && w[M].length > 2 && w[M][0] === '"' && w[M][w[M].length - 1] === '"') {
|
|
10169
|
+
const y = w[M].substring(1, w[M].length - 1);
|
|
10170
|
+
if (k.has(y) && w[M - 1] === "(" && w[M + 1] === ")") {
|
|
10171
|
+
const x = k.get(y);
|
|
10172
|
+
x !== void 0 && (w[M] = `"${x}"`, b = 1);
|
|
10160
10173
|
}
|
|
10161
10174
|
}
|
|
10162
10175
|
if (b === 0) {
|
|
10163
|
-
const y = Object.values(t).map((
|
|
10164
|
-
for (let
|
|
10165
|
-
if (w[
|
|
10166
|
-
w[
|
|
10176
|
+
const y = Object.values(t).map((x) => x.items).flat();
|
|
10177
|
+
for (let x = 0; x < y.length; x++)
|
|
10178
|
+
if (w[M] === y[x].name) {
|
|
10179
|
+
w[M] = y[x].keyFront + "." + y[x].key, b = 1;
|
|
10167
10180
|
break;
|
|
10168
10181
|
}
|
|
10169
10182
|
}
|
|
@@ -10172,38 +10185,38 @@ function yu(e, t, n) {
|
|
|
10172
10185
|
return JSON.stringify({ expr: B, sexpr: "" });
|
|
10173
10186
|
}
|
|
10174
10187
|
function m(p, w, k, B) {
|
|
10175
|
-
let
|
|
10188
|
+
let M = "";
|
|
10176
10189
|
const b = [];
|
|
10177
10190
|
for (const y of w)
|
|
10178
10191
|
y.keyFront === "Math" && b.push(y.key);
|
|
10179
10192
|
for (let y = 0; y < p.length; y++) {
|
|
10180
10193
|
if (p[y] === "Math" && p[y + 1] === "." && !b.includes(p[y + 2])) {
|
|
10181
|
-
|
|
10194
|
+
M = M + p[y] + p[y + 1] + p[y + 2], y = y + 2;
|
|
10182
10195
|
continue;
|
|
10183
10196
|
}
|
|
10184
10197
|
if (B.includes(p[y]) && p[y + 1] === ".") {
|
|
10185
10198
|
y = y + 1;
|
|
10186
10199
|
continue;
|
|
10187
10200
|
} else {
|
|
10188
|
-
let
|
|
10189
|
-
if (
|
|
10190
|
-
const
|
|
10191
|
-
if (k.has(
|
|
10192
|
-
const I = k.get(
|
|
10193
|
-
I !== void 0 && (
|
|
10201
|
+
let x = 0;
|
|
10202
|
+
if (x === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
|
|
10203
|
+
const E = p[y].substring(1, p[y].length - 1);
|
|
10204
|
+
if (k.has(E) && p[y - 1] === "(" && p[y + 1] === ")") {
|
|
10205
|
+
const I = k.get(E);
|
|
10206
|
+
I !== void 0 && (M = M + `"${I}"`, x = 1);
|
|
10194
10207
|
}
|
|
10195
10208
|
}
|
|
10196
|
-
if (
|
|
10197
|
-
for (let
|
|
10198
|
-
if (p[y] === w[
|
|
10199
|
-
|
|
10209
|
+
if (x === 0) {
|
|
10210
|
+
for (let E = 0; E < w.length; E++)
|
|
10211
|
+
if (p[y] === w[E].key && w[E].type.toLowerCase() !== "advanced") {
|
|
10212
|
+
M = M + w[E].name, x = 1;
|
|
10200
10213
|
break;
|
|
10201
10214
|
}
|
|
10202
10215
|
}
|
|
10203
|
-
|
|
10216
|
+
x === 0 && (M = M + p[y]);
|
|
10204
10217
|
}
|
|
10205
10218
|
}
|
|
10206
|
-
return
|
|
10219
|
+
return M;
|
|
10207
10220
|
}
|
|
10208
10221
|
function d(p) {
|
|
10209
10222
|
if (!p)
|
|
@@ -10251,7 +10264,7 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10251
10264
|
props: Vr,
|
|
10252
10265
|
emits: [],
|
|
10253
10266
|
setup(e, t) {
|
|
10254
|
-
var
|
|
10267
|
+
var O;
|
|
10255
10268
|
const n = C(), a = C(e.validateMessage), o = C(e.messageType), l = C(e.modelValue), i = C(), u = [{
|
|
10256
10269
|
label: "提示",
|
|
10257
10270
|
value: "info"
|
|
@@ -10272,82 +10285,82 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10272
10285
|
onFunctionSearch: g
|
|
10273
10286
|
} = vu(e, d);
|
|
10274
10287
|
function p({
|
|
10275
|
-
$event:
|
|
10276
|
-
item:
|
|
10288
|
+
$event: F,
|
|
10289
|
+
item: S
|
|
10277
10290
|
}) {
|
|
10278
|
-
var
|
|
10279
|
-
const
|
|
10280
|
-
(
|
|
10291
|
+
var P;
|
|
10292
|
+
const T = s(S);
|
|
10293
|
+
(P = i.value) == null || P.insertText(T);
|
|
10281
10294
|
}
|
|
10282
10295
|
function w({
|
|
10283
|
-
$event:
|
|
10284
|
-
item:
|
|
10296
|
+
$event: F,
|
|
10297
|
+
item: S
|
|
10285
10298
|
}) {
|
|
10286
|
-
var
|
|
10287
|
-
const
|
|
10288
|
-
(
|
|
10289
|
-
}
|
|
10290
|
-
function k(
|
|
10291
|
-
return
|
|
10292
|
-
var
|
|
10293
|
-
return
|
|
10299
|
+
var P;
|
|
10300
|
+
const T = c(S);
|
|
10301
|
+
(P = i.value) == null || P.insertText(T);
|
|
10302
|
+
}
|
|
10303
|
+
function k(F) {
|
|
10304
|
+
return F.reduce((S, T) => {
|
|
10305
|
+
var P;
|
|
10306
|
+
return S.push(T.data), (P = T.children) != null && P.length && S.push(...k(T.children)), S;
|
|
10294
10307
|
}, []);
|
|
10295
10308
|
}
|
|
10296
|
-
const B = k(((
|
|
10297
|
-
function
|
|
10298
|
-
return
|
|
10299
|
-
const
|
|
10300
|
-
return
|
|
10309
|
+
const B = k(((O = e == null ? void 0 : e.entities) == null ? void 0 : O.fields) || []);
|
|
10310
|
+
function M(F) {
|
|
10311
|
+
return F.map((S) => {
|
|
10312
|
+
const T = B.find((P) => P.bindingPath === S);
|
|
10313
|
+
return T && T.type === "entity" ? `${S}[0]` : S;
|
|
10301
10314
|
}).join(".");
|
|
10302
10315
|
}
|
|
10303
10316
|
function b({
|
|
10304
|
-
$event:
|
|
10305
|
-
item:
|
|
10306
|
-
parentCodes:
|
|
10307
|
-
entityCode:
|
|
10317
|
+
$event: F,
|
|
10318
|
+
item: S,
|
|
10319
|
+
parentCodes: T,
|
|
10320
|
+
entityCode: P
|
|
10308
10321
|
}) {
|
|
10309
|
-
var
|
|
10310
|
-
const
|
|
10311
|
-
|
|
10312
|
-
let
|
|
10313
|
-
|
|
10322
|
+
var V;
|
|
10323
|
+
const L = f(S);
|
|
10324
|
+
T = e.isServerSide ? M(S.parents) : T;
|
|
10325
|
+
let _ = `${T}.${L}`;
|
|
10326
|
+
P === L && (_ = L), (V = i.value) == null || V.insertText(`${_}`);
|
|
10314
10327
|
}
|
|
10315
10328
|
function y({
|
|
10316
|
-
$event:
|
|
10317
|
-
item:
|
|
10329
|
+
$event: F,
|
|
10330
|
+
item: S
|
|
10318
10331
|
}) {
|
|
10319
|
-
var
|
|
10320
|
-
const
|
|
10321
|
-
(
|
|
10332
|
+
var P;
|
|
10333
|
+
const T = f(S);
|
|
10334
|
+
(P = i.value) == null || P.insertText(`${T}`);
|
|
10322
10335
|
}
|
|
10323
|
-
function
|
|
10324
|
-
var
|
|
10325
|
-
return (
|
|
10336
|
+
function x() {
|
|
10337
|
+
var F;
|
|
10338
|
+
return (F = i.value) == null ? void 0 : F.getContent();
|
|
10326
10339
|
}
|
|
10327
|
-
function
|
|
10328
|
-
var
|
|
10329
|
-
const
|
|
10340
|
+
function E() {
|
|
10341
|
+
var S;
|
|
10342
|
+
const F = (S = i.value) == null ? void 0 : S.getContent();
|
|
10330
10343
|
return {
|
|
10331
|
-
value: r(
|
|
10344
|
+
value: r(F),
|
|
10332
10345
|
message: a.value,
|
|
10333
10346
|
messageType: o.value
|
|
10334
10347
|
};
|
|
10335
10348
|
}
|
|
10336
10349
|
const I = C("");
|
|
10337
10350
|
function R() {
|
|
10338
|
-
var
|
|
10339
|
-
(
|
|
10351
|
+
var F;
|
|
10352
|
+
(F = i.value) == null || F.clearText();
|
|
10340
10353
|
}
|
|
10341
10354
|
return be(async () => {
|
|
10342
10355
|
if (l.value) {
|
|
10343
|
-
const
|
|
10344
|
-
expr:
|
|
10345
|
-
} =
|
|
10346
|
-
|
|
10356
|
+
const F = JSON.parse(l.value), {
|
|
10357
|
+
expr: S
|
|
10358
|
+
} = F;
|
|
10359
|
+
S && (I.value = await m(S) || "");
|
|
10347
10360
|
}
|
|
10348
10361
|
}), t.expose({
|
|
10349
|
-
getExpressionContext:
|
|
10350
|
-
getExpressionValue:
|
|
10362
|
+
getExpressionContext: x,
|
|
10363
|
+
getExpressionValue: E,
|
|
10351
10364
|
resetExpression: R
|
|
10352
10365
|
}), () => v("div", {
|
|
10353
10366
|
ref: n,
|
|
@@ -10373,7 +10386,7 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10373
10386
|
class: "f-utils-fill my-2 ml-1"
|
|
10374
10387
|
}, [v(ru, {
|
|
10375
10388
|
modelValue: I.value,
|
|
10376
|
-
"onUpdate:modelValue": (
|
|
10389
|
+
"onUpdate:modelValue": (F) => I.value = F,
|
|
10377
10390
|
ref: i
|
|
10378
10391
|
}, null)]), e.showMessage && v("div", {
|
|
10379
10392
|
class: "d-flex flex-column p-1",
|
|
@@ -10384,7 +10397,7 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10384
10397
|
style: "width: 75px",
|
|
10385
10398
|
data: u,
|
|
10386
10399
|
modelValue: o.value,
|
|
10387
|
-
"onUpdate:modelValue": (
|
|
10400
|
+
"onUpdate:modelValue": (F) => o.value = F,
|
|
10388
10401
|
textField: "label",
|
|
10389
10402
|
valueField: "value",
|
|
10390
10403
|
idField: "value",
|
|
@@ -10392,7 +10405,7 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10392
10405
|
minPanelWidth: 130,
|
|
10393
10406
|
placement: "auto"
|
|
10394
10407
|
}, null)]), On(v("textarea", {
|
|
10395
|
-
"onUpdate:modelValue": (
|
|
10408
|
+
"onUpdate:modelValue": (F) => a.value = F,
|
|
10396
10409
|
class: "form-control",
|
|
10397
10410
|
style: "resize:none;border:none;outline:1px solid var(--f-neutral-04);"
|
|
10398
10411
|
}, null), [[Va, a.value]])])]
|
|
@@ -10641,11 +10654,11 @@ const Tu = /* @__PURE__ */ ae({
|
|
|
10641
10654
|
if (typeof k == "object") {
|
|
10642
10655
|
const {
|
|
10643
10656
|
canClose: B,
|
|
10644
|
-
message:
|
|
10657
|
+
message: M
|
|
10645
10658
|
} = k;
|
|
10646
10659
|
if (!B)
|
|
10647
|
-
return
|
|
10648
|
-
message:
|
|
10660
|
+
return M && (n == null || n.error({
|
|
10661
|
+
message: M
|
|
10649
10662
|
})), !1;
|
|
10650
10663
|
}
|
|
10651
10664
|
}
|
|
@@ -11337,54 +11350,55 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
11337
11350
|
displayText: r,
|
|
11338
11351
|
editable: m,
|
|
11339
11352
|
modelValue: d,
|
|
11340
|
-
|
|
11341
|
-
|
|
11353
|
+
getSelectedItemsByDisplayText: g,
|
|
11354
|
+
flatTreeNodes: p
|
|
11355
|
+
} = zu(e), w = N(() => e.multiSelect);
|
|
11342
11356
|
N(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
11343
|
-
const
|
|
11344
|
-
var
|
|
11345
|
-
const
|
|
11346
|
-
return
|
|
11357
|
+
const k = N(() => {
|
|
11358
|
+
var S;
|
|
11359
|
+
const F = (S = n.value) == null ? void 0 : S.popoverRef;
|
|
11360
|
+
return F ? F.shown : !1;
|
|
11347
11361
|
}), {
|
|
11348
|
-
onValueChange:
|
|
11349
|
-
resetDataSource:
|
|
11362
|
+
onValueChange: B,
|
|
11363
|
+
resetDataSource: M
|
|
11350
11364
|
} = Hu({
|
|
11351
11365
|
comboEditorRef: n,
|
|
11352
11366
|
dataSource: f,
|
|
11353
11367
|
searchFields: u,
|
|
11354
11368
|
originalValue: s,
|
|
11355
|
-
showPopover:
|
|
11356
|
-
flatTreeNodes:
|
|
11369
|
+
showPopover: k,
|
|
11370
|
+
flatTreeNodes: p
|
|
11357
11371
|
}, e.idField);
|
|
11358
|
-
function
|
|
11359
|
-
!
|
|
11372
|
+
function b() {
|
|
11373
|
+
!w.value && n.value && n.value.hidePopup();
|
|
11360
11374
|
}
|
|
11361
|
-
const
|
|
11362
|
-
function
|
|
11363
|
-
if (!
|
|
11364
|
-
r.value =
|
|
11375
|
+
const y = (F) => e.displayFormatter ? e.displayFormatter(F) : F.map((S) => S[e.textField]).join(e.separator);
|
|
11376
|
+
function x(F = []) {
|
|
11377
|
+
if (!w.value)
|
|
11378
|
+
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
11379
|
else {
|
|
11366
|
-
const
|
|
11367
|
-
r.value =
|
|
11380
|
+
const S = Object.keys(h), T = Object.values(h);
|
|
11381
|
+
r.value = y(T), d.value = S.join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", T, d.value);
|
|
11368
11382
|
}
|
|
11369
|
-
|
|
11383
|
+
b();
|
|
11370
11384
|
}
|
|
11371
|
-
function F
|
|
11372
|
-
var
|
|
11373
|
-
d.value = "",
|
|
11385
|
+
function E(F) {
|
|
11386
|
+
var S;
|
|
11387
|
+
d.value = "", k.value && ((S = n.value) == null || S.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, d.value), t.emit("clear");
|
|
11374
11388
|
}
|
|
11375
|
-
function
|
|
11376
|
-
|
|
11389
|
+
function I(F) {
|
|
11390
|
+
w.value && (delete h[F.id], x());
|
|
11377
11391
|
}
|
|
11378
|
-
function
|
|
11379
|
-
|
|
11392
|
+
function R(F) {
|
|
11393
|
+
w.value && (h[F.id] = F.data, x());
|
|
11380
11394
|
}
|
|
11381
|
-
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, T,
|
|
11382
|
-
a.value =
|
|
11395
|
+
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, S, T, P, L]) => {
|
|
11396
|
+
a.value = F, m.value = S, o.value = T, l.value = P, i.value = L;
|
|
11383
11397
|
});
|
|
11384
|
-
const
|
|
11385
|
-
if (s.value = Le(f.value),
|
|
11386
|
-
const
|
|
11387
|
-
|
|
11398
|
+
const O = () => {
|
|
11399
|
+
if (s.value = Le(f.value), w.value && d.value) {
|
|
11400
|
+
const F = [];
|
|
11401
|
+
p(f.value, F), d.value.split(e.separator).reduce((S, T) => (S[T] = F.find((P) => P.id === T), S), h);
|
|
11388
11402
|
}
|
|
11389
11403
|
};
|
|
11390
11404
|
return () => v(jn, {
|
|
@@ -11403,16 +11417,16 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
11403
11417
|
inputType: e.viewType,
|
|
11404
11418
|
popupOnClick: !0,
|
|
11405
11419
|
modelValue: r.value,
|
|
11406
|
-
"onUpdate:modelValue": (
|
|
11407
|
-
onClear:
|
|
11408
|
-
onInput:
|
|
11420
|
+
"onUpdate:modelValue": (F) => r.value = F,
|
|
11421
|
+
onClear: E,
|
|
11422
|
+
onInput: B,
|
|
11409
11423
|
focusOnCreated: e.focusOnCreated,
|
|
11410
11424
|
selectOnCreated: e.selectOnCreated,
|
|
11411
|
-
beforeOpen:
|
|
11425
|
+
beforeOpen: O,
|
|
11412
11426
|
placement: e.placement,
|
|
11413
11427
|
popupMinWidth: e.minPanelWidth
|
|
11414
11428
|
}, {
|
|
11415
|
-
default: () => [
|
|
11429
|
+
default: () => [k.value && v(Au, {
|
|
11416
11430
|
ref: c,
|
|
11417
11431
|
maxHeight: e.maxHeight,
|
|
11418
11432
|
multiSelect: e.multiSelect,
|
|
@@ -11423,15 +11437,15 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
11423
11437
|
titleField: e.titleField,
|
|
11424
11438
|
data: s.value,
|
|
11425
11439
|
selectedValues: d.value,
|
|
11426
|
-
onSelectionChange:
|
|
11440
|
+
onSelectionChange: x,
|
|
11427
11441
|
formatter: e.formatter,
|
|
11428
11442
|
editorParams: e.editorParams,
|
|
11429
11443
|
repositoryToken: e.repositoryToken,
|
|
11430
11444
|
customRowStatus: e.customRowStatus,
|
|
11431
|
-
searchHandler:
|
|
11432
|
-
onUnSelectItem:
|
|
11433
|
-
onSelectItem:
|
|
11434
|
-
onClearSearch:
|
|
11445
|
+
searchHandler: B,
|
|
11446
|
+
onUnSelectItem: I,
|
|
11447
|
+
onSelectItem: R,
|
|
11448
|
+
onClearSearch: M
|
|
11435
11449
|
}, null)]
|
|
11436
11450
|
});
|
|
11437
11451
|
}
|
|
@@ -11521,14 +11535,14 @@ const Wu = /* @__PURE__ */ ae({
|
|
|
11521
11535
|
itemIntoView: g
|
|
11522
11536
|
} = Ca(e, t, s), p = C(e.expressionOptions || {});
|
|
11523
11537
|
function w(B) {
|
|
11524
|
-
var
|
|
11538
|
+
var M, b;
|
|
11525
11539
|
switch (B.expresstype) {
|
|
11526
11540
|
case Ve.Variable:
|
|
11527
11541
|
return v(Ga, {
|
|
11528
11542
|
modelValue: B.value,
|
|
11529
11543
|
"onUpdate:modelValue": (y) => B.value = y,
|
|
11530
11544
|
showOutline: !1,
|
|
11531
|
-
fieldData: (
|
|
11545
|
+
fieldData: (M = e.formContextData) == null ? void 0 : M.fieldData,
|
|
11532
11546
|
varData: (b = e.formContextData) == null ? void 0 : b.varData
|
|
11533
11547
|
}, null);
|
|
11534
11548
|
case Ve.Expression:
|
|
@@ -11547,9 +11561,9 @@ const Wu = /* @__PURE__ */ ae({
|
|
|
11547
11561
|
}, null);
|
|
11548
11562
|
}
|
|
11549
11563
|
}
|
|
11550
|
-
function k(B,
|
|
11564
|
+
function k(B, M, b) {
|
|
11551
11565
|
return v(lt, {
|
|
11552
|
-
data:
|
|
11566
|
+
data: M,
|
|
11553
11567
|
modelValue: B[b],
|
|
11554
11568
|
"onUpdate:modelValue": (y) => B[b] = y,
|
|
11555
11569
|
textField: "label",
|
|
@@ -11588,24 +11602,24 @@ const Wu = /* @__PURE__ */ ae({
|
|
|
11588
11602
|
style: "width: 60px"
|
|
11589
11603
|
}, [v("b", null, [ie("关系")])])])]), v("tbody", {
|
|
11590
11604
|
ref: s
|
|
11591
|
-
}, [c.value.map((B,
|
|
11592
|
-
index:
|
|
11593
|
-
class: d.value(
|
|
11594
|
-
onClick: (b) => m(B,
|
|
11605
|
+
}, [c.value.map((B, M) => v("tr", {
|
|
11606
|
+
index: M,
|
|
11607
|
+
class: d.value(M),
|
|
11608
|
+
onClick: (b) => m(B, M)
|
|
11595
11609
|
}, [v("td", {
|
|
11596
11610
|
style: "text-overflow: unset;",
|
|
11597
11611
|
align: "center",
|
|
11598
11612
|
class: "px-1"
|
|
11599
11613
|
}, [v("button", {
|
|
11600
11614
|
title: "插入",
|
|
11601
|
-
onClick: (b) => f(
|
|
11615
|
+
onClick: (b) => f(M, b),
|
|
11602
11616
|
type: "button",
|
|
11603
11617
|
class: "btn btn-link p-1 mr-0"
|
|
11604
11618
|
}, [v("span", {
|
|
11605
11619
|
class: "f-icon f-icon-plus"
|
|
11606
11620
|
}, null)]), v("button", {
|
|
11607
11621
|
title: "移除",
|
|
11608
|
-
onClick: (b) => r(
|
|
11622
|
+
onClick: (b) => r(M, b),
|
|
11609
11623
|
type: "button",
|
|
11610
11624
|
class: "btn btn-link p-1 m-0"
|
|
11611
11625
|
}, [v("span", {
|
|
@@ -11806,19 +11820,19 @@ function Uu(e, t) {
|
|
|
11806
11820
|
function h() {
|
|
11807
11821
|
if (e.editorType === "filter")
|
|
11808
11822
|
for (let y = 0; y < t.value.length - 1; y++) {
|
|
11809
|
-
const
|
|
11810
|
-
(
|
|
11823
|
+
const x = t.value[y];
|
|
11824
|
+
(x.relation === ct.Empty || !x.relation) && (x.relation = ct.And);
|
|
11811
11825
|
}
|
|
11812
11826
|
}
|
|
11813
11827
|
function f() {
|
|
11814
11828
|
const y = Object.assign({}, u);
|
|
11815
11829
|
t.value = [...t.value, y];
|
|
11816
|
-
const
|
|
11817
|
-
n.value =
|
|
11830
|
+
const x = t.value.length - 1;
|
|
11831
|
+
n.value = x, h();
|
|
11818
11832
|
}
|
|
11819
11833
|
function r({ index: y }) {
|
|
11820
|
-
const
|
|
11821
|
-
e.insertType === "above" ? y === 0 ? t.value.unshift(
|
|
11834
|
+
const x = Object.assign({}, u);
|
|
11835
|
+
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
11836
|
}
|
|
11823
11837
|
function m({ index: y }) {
|
|
11824
11838
|
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 +11845,14 @@ function Uu(e, t) {
|
|
|
11831
11845
|
}
|
|
11832
11846
|
function p() {
|
|
11833
11847
|
if (n.value >= 0) {
|
|
11834
|
-
const y = n.value,
|
|
11835
|
-
t.value.splice(y - 1, 0, ...
|
|
11848
|
+
const y = n.value, x = t.value.splice(y, 1);
|
|
11849
|
+
t.value.splice(y - 1, 0, ...x), n.value = y - 1;
|
|
11836
11850
|
}
|
|
11837
11851
|
}
|
|
11838
11852
|
function w() {
|
|
11839
11853
|
if (n.value >= 0) {
|
|
11840
|
-
const y = n.value,
|
|
11841
|
-
t.value.splice(y + 1, 0, ...
|
|
11854
|
+
const y = n.value, x = t.value.splice(y, 1);
|
|
11855
|
+
t.value.splice(y + 1, 0, ...x), n.value = y + 1;
|
|
11842
11856
|
}
|
|
11843
11857
|
}
|
|
11844
11858
|
function k() {
|
|
@@ -11847,36 +11861,36 @@ function Uu(e, t) {
|
|
|
11847
11861
|
function B({ index: y }) {
|
|
11848
11862
|
n.value = y;
|
|
11849
11863
|
}
|
|
11850
|
-
function
|
|
11864
|
+
function M(y) {
|
|
11851
11865
|
if (y.length % 2 !== 0)
|
|
11852
11866
|
return !1;
|
|
11853
|
-
let
|
|
11854
|
-
for (const
|
|
11855
|
-
if (
|
|
11856
|
-
|
|
11857
|
-
else if (
|
|
11858
|
-
if (!
|
|
11867
|
+
let x = "";
|
|
11868
|
+
for (const E of y)
|
|
11869
|
+
if (E === "(")
|
|
11870
|
+
x += E;
|
|
11871
|
+
else if (E === ")") {
|
|
11872
|
+
if (!x.endsWith("("))
|
|
11859
11873
|
return !1;
|
|
11860
|
-
|
|
11874
|
+
x = x.slice(0, -1);
|
|
11861
11875
|
}
|
|
11862
|
-
return
|
|
11876
|
+
return x.length === 0;
|
|
11863
11877
|
}
|
|
11864
11878
|
function b() {
|
|
11865
11879
|
const y = t.value.length;
|
|
11866
11880
|
if (!y)
|
|
11867
11881
|
return !0;
|
|
11868
|
-
let
|
|
11882
|
+
let x = !0, E = !0;
|
|
11869
11883
|
if (e.editorType !== "sort") {
|
|
11870
|
-
t.value[y - 1].relation = ct.Empty,
|
|
11871
|
-
(
|
|
11884
|
+
t.value[y - 1].relation = ct.Empty, E = !t.value.slice(0, -1).some(
|
|
11885
|
+
(F) => F.relation === ct.Empty || !F.relation
|
|
11872
11886
|
);
|
|
11873
|
-
const
|
|
11874
|
-
|
|
11887
|
+
const O = t.value.flatMap((F) => [F.lbracket, F.rbracket]).join("");
|
|
11888
|
+
x = M(O);
|
|
11875
11889
|
}
|
|
11876
11890
|
const I = t.value.some((R) => !R[i]);
|
|
11877
11891
|
return [
|
|
11878
|
-
{ result:
|
|
11879
|
-
{ result:
|
|
11892
|
+
{ result: x, message: "括号不匹配,请检查。" },
|
|
11893
|
+
{ result: E, message: "关系设置不完整,请检查。" },
|
|
11880
11894
|
{ result: !I, message: "字段不允许为空,请检查。" }
|
|
11881
11895
|
].find((R) => !R.result);
|
|
11882
11896
|
}
|
|
@@ -11917,18 +11931,18 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11917
11931
|
onMoveTop: w,
|
|
11918
11932
|
onInsert: k,
|
|
11919
11933
|
onRemove: B,
|
|
11920
|
-
activeRowIndex:
|
|
11934
|
+
activeRowIndex: M,
|
|
11921
11935
|
onSelectRow: b,
|
|
11922
11936
|
canClear: y,
|
|
11923
|
-
canMove:
|
|
11924
|
-
validateCondition:
|
|
11937
|
+
canMove: x,
|
|
11938
|
+
validateCondition: E,
|
|
11925
11939
|
resetActiveRow: I
|
|
11926
11940
|
} = Uu(e, c), R = N(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
|
|
11927
|
-
function
|
|
11941
|
+
function O() {
|
|
11928
11942
|
return e.editorType === "sort" ? v(Gu, {
|
|
11929
11943
|
conditions: c.value,
|
|
11930
11944
|
fields: u.value,
|
|
11931
|
-
activeIndex:
|
|
11945
|
+
activeIndex: M.value,
|
|
11932
11946
|
onInsert: (j) => k(j),
|
|
11933
11947
|
onRemove: (j) => B(j),
|
|
11934
11948
|
idField: e.idField,
|
|
@@ -11940,15 +11954,15 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11940
11954
|
conditions: c.value,
|
|
11941
11955
|
fields: u.value,
|
|
11942
11956
|
idField: e.idField,
|
|
11943
|
-
activeIndex:
|
|
11957
|
+
activeIndex: M.value,
|
|
11944
11958
|
onInsert: (j) => k(j),
|
|
11945
11959
|
onRemove: (j) => B(j),
|
|
11946
11960
|
onRowClick: (j) => b(j),
|
|
11947
11961
|
formContextData: i.value
|
|
11948
11962
|
}, null);
|
|
11949
11963
|
}
|
|
11950
|
-
const
|
|
11951
|
-
async function
|
|
11964
|
+
const F = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)), S = N(() => e.disableConfirmWhenUnchanged && F.value);
|
|
11965
|
+
async function T() {
|
|
11952
11966
|
if (t.emit("update:modelValue", c.value), e.onSubmitModal) {
|
|
11953
11967
|
o == null || o.show();
|
|
11954
11968
|
const j = await e.onSubmitModal({
|
|
@@ -11958,11 +11972,11 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11958
11972
|
originalConditions: h,
|
|
11959
11973
|
FMessageBoxService: ft
|
|
11960
11974
|
});
|
|
11961
|
-
return o == null || o.clearAll(), j && (
|
|
11975
|
+
return o == null || o.clearAll(), j && (M.value = -1, a.success("过滤条件配置成功!")), j;
|
|
11962
11976
|
}
|
|
11963
11977
|
return !0;
|
|
11964
11978
|
}
|
|
11965
|
-
const
|
|
11979
|
+
const P = {
|
|
11966
11980
|
title: R.value,
|
|
11967
11981
|
width: 800,
|
|
11968
11982
|
height: 600,
|
|
@@ -11973,7 +11987,7 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11973
11987
|
resizeable: !0,
|
|
11974
11988
|
draggable: !0,
|
|
11975
11989
|
closedCallback: () => {
|
|
11976
|
-
|
|
11990
|
+
M.value = -1;
|
|
11977
11991
|
},
|
|
11978
11992
|
buttons: [{
|
|
11979
11993
|
name: "cancel",
|
|
@@ -11984,14 +11998,14 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11984
11998
|
name: "accept",
|
|
11985
11999
|
text: "确定",
|
|
11986
12000
|
class: "btn btn-primary",
|
|
11987
|
-
disabled:
|
|
12001
|
+
disabled: S,
|
|
11988
12002
|
handle: async (j) => {
|
|
11989
|
-
const G =
|
|
11990
|
-
return
|
|
12003
|
+
const G = E();
|
|
12004
|
+
return F.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await T();
|
|
11991
12005
|
}
|
|
11992
12006
|
}]
|
|
11993
12007
|
};
|
|
11994
|
-
async function
|
|
12008
|
+
async function L() {
|
|
11995
12009
|
if (e.beforeOpen)
|
|
11996
12010
|
try {
|
|
11997
12011
|
o == null || o.show();
|
|
@@ -12023,10 +12037,10 @@ const _u = /* @__PURE__ */ ae({
|
|
|
12023
12037
|
}
|
|
12024
12038
|
return I(), !0;
|
|
12025
12039
|
}
|
|
12026
|
-
function
|
|
12040
|
+
function _() {
|
|
12027
12041
|
t.emit("update:modelValue", "");
|
|
12028
12042
|
}
|
|
12029
|
-
function
|
|
12043
|
+
function V(j) {
|
|
12030
12044
|
t.emit("update:modelValue", j);
|
|
12031
12045
|
}
|
|
12032
12046
|
return () => v(Rt, {
|
|
@@ -12038,20 +12052,20 @@ const _u = /* @__PURE__ */ ae({
|
|
|
12038
12052
|
enableClear: e.enableClear,
|
|
12039
12053
|
buttonContent: s,
|
|
12040
12054
|
buttonBehavior: "Modal",
|
|
12041
|
-
modalOptions:
|
|
12042
|
-
beforeOpen:
|
|
12043
|
-
onClear:
|
|
12055
|
+
modalOptions: P,
|
|
12056
|
+
beforeOpen: L,
|
|
12057
|
+
onClear: _,
|
|
12044
12058
|
enableTitle: e.enableTitle,
|
|
12045
|
-
"onUpdate:modelValue":
|
|
12059
|
+
"onUpdate:modelValue": V
|
|
12046
12060
|
}, {
|
|
12047
12061
|
default: () => [v("div", {
|
|
12048
12062
|
class: "h-100 d-flex flex-column"
|
|
12049
12063
|
}, [v("div", {
|
|
12050
12064
|
style: "border-top: 1px solid white; position: absolute; top: 0; width: 100%; z-index: 2;",
|
|
12051
12065
|
class: "shading-border-top"
|
|
12052
|
-
}, null),
|
|
12066
|
+
}, null), O(), v(qu, {
|
|
12053
12067
|
canClear: y,
|
|
12054
|
-
canMove:
|
|
12068
|
+
canMove: x,
|
|
12055
12069
|
onAdd: r,
|
|
12056
12070
|
onClear: m,
|
|
12057
12071
|
onMoveBottom: d,
|
|
@@ -12075,7 +12089,7 @@ const _u = /* @__PURE__ */ ae({
|
|
|
12075
12089
|
"onUpdate:modelValue": n
|
|
12076
12090
|
}), null);
|
|
12077
12091
|
}
|
|
12078
|
-
}),
|
|
12092
|
+
}), Vd = {
|
|
12079
12093
|
install(e) {
|
|
12080
12094
|
e.component(en.name, en);
|
|
12081
12095
|
},
|
|
@@ -12085,5 +12099,5 @@ const _u = /* @__PURE__ */ ae({
|
|
|
12085
12099
|
};
|
|
12086
12100
|
export {
|
|
12087
12101
|
en as SortConditionEditor,
|
|
12088
|
-
|
|
12102
|
+
Vd as default
|
|
12089
12103
|
};
|