@farris/ui-vue 1.6.5 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/avatar/index.esm.js +1 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +2 -2
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +7 -5
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +1 -1
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +3 -2
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +1 -1
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +498 -495
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1 -1
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +3 -2
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1 -1
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +256 -254
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-bar/index.esm.js +416 -394
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +388 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +80 -81
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +237 -237
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1 -1
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +9 -3
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +114 -112
- package/components/order/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1 -1
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +485 -463
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +544 -545
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +6 -4
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.esm.js +1 -1
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +9 -7
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +77 -78
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +5 -3
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +1 -1
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +2 -2
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/video/index.esm.js +1 -1
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +211 -211
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +1 -1
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +25 -26
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +15 -9
- package/designer/data-grid/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +917 -916
- package/designer/farris-designer.all.umd.cjs +5 -5
- package/designer/input-group/index.esm.js +2 -1
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +685 -689
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/radio-group/index.esm.js +7 -3
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +5641 -5603
- package/farris.all.umd.cjs +21 -21
- package/locales/data-grid/ui/en.json +2 -1
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +2 -1
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +2 -1
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ma = Object.defineProperty;
|
|
2
2
|
var ya = (e, t, n) => t in e ? ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Ce = (e, t, n) => ya(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as b, computed as j, defineComponent as ie, provide as bn, createVNode as k, watch as ee, inject as De, onMounted as he, onBeforeUnmount as Cn, nextTick as
|
|
4
|
+
import { ref as b, computed as j, defineComponent as ie, provide as bn, createVNode as k, watch as ee, inject as De, onMounted as he, onBeforeUnmount as Cn, nextTick as He, createTextVNode as yt, withDirectives as wn, vModelText as va, Teleport as kn, createApp as Jt, onUnmounted as gt, Fragment as et, onBeforeMount as ha, Transition as Sn, shallowRef as ga, render as qt, h as ba, cloneVNode as Ca, mergeProps as Ot, reactive as Ve, vShow as wa, onUpdated as ka } from "vue";
|
|
5
5
|
import { cloneDeep as lt, isPlainObject as sn, isUndefined as Ne, debounce as Sa } from "lodash-es";
|
|
6
6
|
import { getCustomClass as xn, getCustomStyle as xa, FormSchemaEntityFieldType$Type as Fa, withInstall as Fn, getMaxZIndex as Ta, FormSchemaEntityField$Type as un, FormSchemaEntityFieldTypeName as cn, useGuid as Ba } from "../common/index.esm.js";
|
|
7
7
|
import { getSchemaByTypeForDesigner as Ma, resolveAppearance as Tn, createPropsResolver as Qt } from "../dynamic-resolver/index.esm.js";
|
|
@@ -87,7 +87,7 @@ import "../modal/index.esm.js";
|
|
|
87
87
|
import "../external-container/index.esm.js";
|
|
88
88
|
import "../language-textbox/index.esm.js";
|
|
89
89
|
import { useResizeObserver as Ra } from "@vueuse/core";
|
|
90
|
-
import { getHierarchyRow as La, useIdentify as $a, useGroupData as za, useFilter as Aa, useHierarchy as
|
|
90
|
+
import { getHierarchyRow as La, useIdentify as $a, useGroupData as za, useFilter as Aa, useHierarchy as Va, useLoading as Ha, useDataView as Wa, useSelection as qa, useSelectHierarchyItem as Ga, usePagination as _a, useDataViewContainerStyle as Ua, useCommandColumn as Ya, useSettingColumn as Xa, useColumn as Ja, useSort as Qa, useGroupColumn as Za, useRow as Ka, useEdit as eo, useVisualDataBound as to, useVisualDataCell as no, useVisualDataRow as ao, useVisualData as oo, useCellPosition as io, useSidebar as ro, useVirtualScroll as lo, useFitColumn as so, useFilterHistory as uo, useColumnFilter as co, useDragColumn as fo, getColumnHeader as po, getSidebar as mo, getDisableMask as yo, getHorizontalScrollbar as vo, getVerticalScrollbar as ho, getEmpty as go, getPagination as bo, getSummary as Co } from "../data-view/index.esm.js";
|
|
91
91
|
import "../notify/index.esm.js";
|
|
92
92
|
import wo from "../popover/index.esm.js";
|
|
93
93
|
const ko = {
|
|
@@ -460,9 +460,9 @@ const Bo = {
|
|
|
460
460
|
var a, o;
|
|
461
461
|
return t === "showCheckbox" ? (a = e.selection) != null && a.multiSelect ? !0 : (o = e.selection) == null ? void 0 : o.showCheckbox : e.selection ? e.selection[t] : e[t];
|
|
462
462
|
}
|
|
463
|
-
}, Ho = {
|
|
464
|
-
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
465
463
|
}, Vo = {
|
|
464
|
+
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
465
|
+
}, Ho = {
|
|
466
466
|
convertFrom: (e, t) => e[t] || "",
|
|
467
467
|
convertTo: (e, t, n) => {
|
|
468
468
|
e[t] = n;
|
|
@@ -497,7 +497,7 @@ const Bo = {
|
|
|
497
497
|
if (t === "mode")
|
|
498
498
|
return ((a = e.filter) == null ? void 0 : a.mode) || "client";
|
|
499
499
|
}
|
|
500
|
-
},
|
|
500
|
+
}, Uo = {
|
|
501
501
|
convertTo: (e, t, n, a) => {
|
|
502
502
|
e.rowOption ? e.rowOption[t] = n : e.rowOption = {
|
|
503
503
|
[t]: n
|
|
@@ -518,7 +518,7 @@ function En(e, t, n) {
|
|
|
518
518
|
["/converter/appearance.converter", Bo],
|
|
519
519
|
["/converter/buttons.converter", Mo],
|
|
520
520
|
["/converter/property-editor.converter", Oo],
|
|
521
|
-
["/converter/items-count.converter",
|
|
521
|
+
["/converter/items-count.converter", Vo],
|
|
522
522
|
["/converter/type.converter", Do],
|
|
523
523
|
["/converter/change-editor.converter", Eo],
|
|
524
524
|
["/converter/change-formatter.converter", Po],
|
|
@@ -526,7 +526,7 @@ function En(e, t, n) {
|
|
|
526
526
|
["/converter/column-option.converter", jo],
|
|
527
527
|
["/converter/summary.converter", Io],
|
|
528
528
|
["/converter/group.converter", Ro],
|
|
529
|
-
["/converter/form-group-label.converter",
|
|
529
|
+
["/converter/form-group-label.converter", Ho],
|
|
530
530
|
["/converter/field-selector.converter", Lo],
|
|
531
531
|
["/converter/pagination.converter", $o],
|
|
532
532
|
["/converter/row-number.converter", zo],
|
|
@@ -535,7 +535,7 @@ function En(e, t, n) {
|
|
|
535
535
|
["/converter/change-formatter-enum.converter", qo],
|
|
536
536
|
["/converter/grid-sort.converter", Go],
|
|
537
537
|
["/converter/grid-filter.converter", _o],
|
|
538
|
-
["/converter/row-option.converter",
|
|
538
|
+
["/converter/row-option.converter", Uo]
|
|
539
539
|
]), o = /* @__PURE__ */ new Map([
|
|
540
540
|
["string", { type: "input-group", enableClear: !1 }],
|
|
541
541
|
["boolean", {
|
|
@@ -578,9 +578,9 @@ function En(e, t, n) {
|
|
|
578
578
|
return Object.keys(m).map((h) => {
|
|
579
579
|
const T = b(1), B = h, N = m[h], L = Object.keys(N), F = N.title, O = N.type, w = o.get(O) || { type: "input-group", enableClear: !1 }, x = N.editor ? Object.assign({}, w, N.editor) : Object.assign({}, w), P = s(L, N, g), $ = l(L, N, g);
|
|
580
580
|
x.readonly = x.readonly === void 0 ? $() : x.readonly;
|
|
581
|
-
const
|
|
581
|
+
const U = N.type === "cascade" ? p(N.properties, g, y, C, S, D, M) : [], I = !0;
|
|
582
582
|
let A = u(N, M);
|
|
583
|
-
const
|
|
583
|
+
const Y = j({
|
|
584
584
|
get() {
|
|
585
585
|
if (T.value) {
|
|
586
586
|
if (["class", "style"].find((ue) => ue === B) && !A && (A = a.get("/converter/appearance.converter") || null), A && A.convertFrom)
|
|
@@ -593,7 +593,7 @@ function En(e, t, n) {
|
|
|
593
593
|
set(oe) {
|
|
594
594
|
T.value += 1, A && A.convertTo ? (A.convertTo(C, h, oe, S, D), A.convertTo(y, h, oe, S, D)) : (C[h] = oe, y[h] = oe);
|
|
595
595
|
}
|
|
596
|
-
}), { refreshPanelAfterChanged: W, description: te, isExpand: ve, parentPropertyID: ge } = N, J = { propertyID: B, propertyName: F, propertyType: O, propertyValue:
|
|
596
|
+
}), { refreshPanelAfterChanged: W, description: te, isExpand: ve, parentPropertyID: ge } = N, J = { propertyID: B, propertyName: F, propertyType: O, propertyValue: Y, editor: x, visible: P, readonly: $, cascadeConfig: U, hideCascadeTitle: I, refreshPanelAfterChanged: W, description: te, isExpand: ve, parentPropertyID: ge };
|
|
597
597
|
return g[B] = J, J;
|
|
598
598
|
});
|
|
599
599
|
}
|
|
@@ -627,8 +627,8 @@ function En(e, t, n) {
|
|
|
627
627
|
T.push(c(B, N, m, g, C));
|
|
628
628
|
return;
|
|
629
629
|
}
|
|
630
|
-
const L = N == null ? void 0 : N.title, F = N == null ? void 0 : N.tabId, O = N == null ? void 0 : N.tabName, w = N == null ? void 0 : N.hide, x = N == null ? void 0 : N.hideTitle, P = p(N.properties || {}, v, M, m, g, C, N.$converter), { setPropertyRelates: $ } = N,
|
|
631
|
-
T.push({ categoryId: B, categoryName: L, tabId: F, tabName: O, hide: w, properties: P, hideTitle: x, setPropertyRelates: $, parentPropertyID:
|
|
630
|
+
const L = N == null ? void 0 : N.title, F = N == null ? void 0 : N.tabId, O = N == null ? void 0 : N.tabName, w = N == null ? void 0 : N.hide, x = N == null ? void 0 : N.hideTitle, P = p(N.properties || {}, v, M, m, g, C, N.$converter), { setPropertyRelates: $ } = N, U = N == null ? void 0 : N.parentPropertyID;
|
|
631
|
+
T.push({ categoryId: B, categoryName: L, tabId: F, tabName: O, hide: w, properties: P, hideTitle: x, setPropertyRelates: $, parentPropertyID: U });
|
|
632
632
|
}), T;
|
|
633
633
|
}
|
|
634
634
|
return [];
|
|
@@ -641,8 +641,8 @@ function En(e, t, n) {
|
|
|
641
641
|
}
|
|
642
642
|
const Pn = {}, Nn = {};
|
|
643
643
|
En(Pn, Nn, So);
|
|
644
|
-
const jn = {}, In = {}, { getSchemaByType: Lc, resolveSchemaWithDefaultValue:
|
|
645
|
-
En(Rn, Ln,
|
|
644
|
+
const jn = {}, In = {}, { getSchemaByType: Lc, resolveSchemaWithDefaultValue: Yo, resolveSchemaToProps: $c, mappingSchemaToProps: zc, setDesignerContext: Ac } = Mn(jn, In), Rn = {}, Ln = {};
|
|
645
|
+
En(Rn, Ln, Yo);
|
|
646
646
|
function tt(e, t, n = /* @__PURE__ */ new Map(), a = (r, s, l, u) => s, o = {}, i = (r) => r) {
|
|
647
647
|
return On[t.title] = t, Dn[t.title] = a, Pn[t.title] = o, Nn[t.title] = i, jn[t.title] = t, In[t.title] = a, Rn[t.title] = o, Ln[t.title] = i, (r = {}, s = !0) => {
|
|
648
648
|
if (!s)
|
|
@@ -759,7 +759,7 @@ const Xo = "https://json-schema.org/draft/2020-12/schema", Jo = "https://farris-
|
|
|
759
759
|
customStyle: { type: String, defaut: "" },
|
|
760
760
|
customClass: { type: String, defaut: "" }
|
|
761
761
|
}, An = tt(Kt, ni, $n, zn, li);
|
|
762
|
-
function
|
|
762
|
+
function Vn(e) {
|
|
763
763
|
const t = b(-1), n = b(-1), a = b(0), o = b(0), i = b(!1), r = b(!1), s = j(() => ({
|
|
764
764
|
display: i.value ? "block" : "none",
|
|
765
765
|
left: `${a.value}px`,
|
|
@@ -846,7 +846,7 @@ const We = /* @__PURE__ */ ie({
|
|
|
846
846
|
props: Kt,
|
|
847
847
|
emits: [],
|
|
848
848
|
setup(e, t) {
|
|
849
|
-
const n = b(), a =
|
|
849
|
+
const n = b(), a = Vn(n), {
|
|
850
850
|
horizontalResizeHandleStyle: o,
|
|
851
851
|
verticalResizeHandleStyle: i,
|
|
852
852
|
resizeOverlayStyle: r
|
|
@@ -1066,7 +1066,7 @@ const We = /* @__PURE__ */ ie({
|
|
|
1066
1066
|
minWidth: { type: Number, default: 100 },
|
|
1067
1067
|
/** 面板最小高度 */
|
|
1068
1068
|
minHeight: { type: Number, default: 100 }
|
|
1069
|
-
},
|
|
1069
|
+
}, Hn = tt(en, yi, $n, zn, Ci);
|
|
1070
1070
|
function Wn(e, t, n, a, o) {
|
|
1071
1071
|
const {
|
|
1072
1072
|
horizontalResizeBarPosition: i,
|
|
@@ -1249,8 +1249,8 @@ function qn(e, t, n) {
|
|
|
1249
1249
|
w.type === "component-ref" && (x = w.component);
|
|
1250
1250
|
const P = e.value.querySelectorAll(`#${x}-design-item`);
|
|
1251
1251
|
P != null && P.length && Array.from(P).map(($) => {
|
|
1252
|
-
var
|
|
1253
|
-
(
|
|
1252
|
+
var U;
|
|
1253
|
+
(U = $ == null ? void 0 : $.componentInstance) != null && U.value.onRemoveComponent && $.componentInstance.value.onRemoveComponent(O);
|
|
1254
1254
|
});
|
|
1255
1255
|
});
|
|
1256
1256
|
}
|
|
@@ -1270,8 +1270,8 @@ function qn(e, t, n) {
|
|
|
1270
1270
|
if (n != null && n.getComponentTitle)
|
|
1271
1271
|
w = n.getComponentTitle();
|
|
1272
1272
|
else {
|
|
1273
|
-
const { text: $, title:
|
|
1274
|
-
w = $ ||
|
|
1273
|
+
const { text: $, title: U, label: I, mainTitle: A, name: Y, type: W } = t.schema;
|
|
1274
|
+
w = $ || U || I || A || Y || ((P = z[W]) == null ? void 0 : P.name);
|
|
1275
1275
|
}
|
|
1276
1276
|
w && r.getControlBasicInfoMap().set(t.schema.id, {
|
|
1277
1277
|
componentTitle: w,
|
|
@@ -1282,13 +1282,13 @@ function qn(e, t, n) {
|
|
|
1282
1282
|
var $;
|
|
1283
1283
|
const { changeObject: w } = O, { propertyID: x, propertyValue: P } = w;
|
|
1284
1284
|
if (["text", "title", "label", "name", "mainTitle"].includes(($ = O == null ? void 0 : O.changeObject) == null ? void 0 : $.propertyID) && x && P && (B(), r)) {
|
|
1285
|
-
const
|
|
1286
|
-
var
|
|
1287
|
-
return ((
|
|
1285
|
+
const U = r.getControlBasicInfoMap(), I = U.keys().toArray().filter((A) => {
|
|
1286
|
+
var Y, W;
|
|
1287
|
+
return ((Y = U.get(A)) == null ? void 0 : Y.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
|
|
1288
1288
|
});
|
|
1289
1289
|
I != null && I.length && I.forEach((A) => {
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1290
|
+
const Y = U.get(A).parentPathName.split(" > ");
|
|
1291
|
+
Y[0] = P, U.get(A).parentPathName = Y.join(" > ");
|
|
1292
1292
|
});
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
@@ -1333,7 +1333,7 @@ const ki = /* @__PURE__ */ ie({
|
|
|
1333
1333
|
var p;
|
|
1334
1334
|
const n = b(), a = De("design-item-context"), o = wi(a.schema, (p = a.parent) == null ? void 0 : p.schema), i = qn(n, a, o);
|
|
1335
1335
|
i.value.canNested = !1;
|
|
1336
|
-
const r =
|
|
1336
|
+
const r = Vn(n), {
|
|
1337
1337
|
horizontalResizeHandleStyle: s,
|
|
1338
1338
|
verticalResizeHandleStyle: l,
|
|
1339
1339
|
resizeOverlayStyle: u
|
|
@@ -1440,10 +1440,10 @@ We.install = (e) => {
|
|
|
1440
1440
|
e.component(We.name, We), e.component(je.name, je);
|
|
1441
1441
|
};
|
|
1442
1442
|
We.register = (e, t, n, a) => {
|
|
1443
|
-
e.layout = We, t.layout = An, e["layout-pane"] = je, t["layout-pane"] =
|
|
1443
|
+
e.layout = We, t.layout = An, e["layout-pane"] = je, t["layout-pane"] = Hn;
|
|
1444
1444
|
};
|
|
1445
1445
|
We.registerDesigner = (e, t, n) => {
|
|
1446
|
-
e.layout = ki, t.layout = An, e["layout-pane"] = Fi, t["layout-pane"] =
|
|
1446
|
+
e.layout = ki, t.layout = An, e["layout-pane"] = Fi, t["layout-pane"] = Hn;
|
|
1447
1447
|
};
|
|
1448
1448
|
const Ti = /* @__PURE__ */ new Map([
|
|
1449
1449
|
["appearance", Tn]
|
|
@@ -1627,9 +1627,9 @@ const Ti = /* @__PURE__ */ new Map([
|
|
|
1627
1627
|
type: "boolean",
|
|
1628
1628
|
default: !1
|
|
1629
1629
|
},
|
|
1630
|
-
|
|
1630
|
+
"onUpdate:modelValue": {
|
|
1631
1631
|
description: "",
|
|
1632
|
-
type: "
|
|
1632
|
+
type: "object"
|
|
1633
1633
|
}
|
|
1634
1634
|
}, Ni = [
|
|
1635
1635
|
"type"
|
|
@@ -2018,7 +2018,7 @@ const vt = /* @__PURE__ */ ie({
|
|
|
2018
2018
|
if (e.multiSelect) {
|
|
2019
2019
|
const x = m(w);
|
|
2020
2020
|
e.viewType;
|
|
2021
|
-
const $ = x.map((
|
|
2021
|
+
const $ = x.map((U) => U[e.idField || e.valueField]).join(e.separator);
|
|
2022
2022
|
c.value !== $ && (c.value = $, t.emit("update:modelValue", c.value), t.emit("change", x, c.value));
|
|
2023
2023
|
}
|
|
2024
2024
|
}
|
|
@@ -2037,8 +2037,8 @@ const vt = /* @__PURE__ */ ie({
|
|
|
2037
2037
|
return t.expose({
|
|
2038
2038
|
getDisplayText: L,
|
|
2039
2039
|
hidePopup: O
|
|
2040
|
-
}), ee([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([w, x, P, $,
|
|
2041
|
-
i.value = w, d.value = x, r.value = P, s.value = $, l.value =
|
|
2040
|
+
}), ee([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([w, x, P, $, U]) => {
|
|
2041
|
+
i.value = w, d.value = x, r.value = P, s.value = $, l.value = U;
|
|
2042
2042
|
}), () => k(Oa, {
|
|
2043
2043
|
ref: o,
|
|
2044
2044
|
id: e.id,
|
|
@@ -2096,7 +2096,7 @@ const vt = /* @__PURE__ */ ie({
|
|
|
2096
2096
|
e.editor.remote = e.editor.remote || {}, e.editor.remote[t] = n;
|
|
2097
2097
|
}
|
|
2098
2098
|
};
|
|
2099
|
-
class
|
|
2099
|
+
class Vi extends Na {
|
|
2100
2100
|
constructor(t, n) {
|
|
2101
2101
|
super(t, n);
|
|
2102
2102
|
}
|
|
@@ -2210,7 +2210,7 @@ class Hi extends Na {
|
|
|
2210
2210
|
// },
|
|
2211
2211
|
// },
|
|
2212
2212
|
body: {
|
|
2213
|
-
visible:
|
|
2213
|
+
visible: !1,
|
|
2214
2214
|
$converter: dn,
|
|
2215
2215
|
description: "",
|
|
2216
2216
|
title: "服务端API参数",
|
|
@@ -2242,7 +2242,8 @@ class Hi extends Na {
|
|
|
2242
2242
|
editor: {
|
|
2243
2243
|
nullable: !0,
|
|
2244
2244
|
min: 0,
|
|
2245
|
-
useThousands: !1
|
|
2245
|
+
useThousands: !1,
|
|
2246
|
+
needValid: !0
|
|
2246
2247
|
}
|
|
2247
2248
|
},
|
|
2248
2249
|
...this.getCommonEditorProperties(t)
|
|
@@ -2319,7 +2320,8 @@ class Hi extends Na {
|
|
|
2319
2320
|
editor: {
|
|
2320
2321
|
nullable: !0,
|
|
2321
2322
|
min: 0,
|
|
2322
|
-
useThousands: !1
|
|
2323
|
+
useThousands: !1,
|
|
2324
|
+
needValid: !0
|
|
2323
2325
|
}
|
|
2324
2326
|
},
|
|
2325
2327
|
...this.getCommonEditorProperties(t)
|
|
@@ -2364,10 +2366,10 @@ class Hi extends Na {
|
|
|
2364
2366
|
t.editor && ((i = o == null ? void 0 : o.type) == null ? void 0 : i.$type) === Fa.EnumType && (t.editor.data = o.type.enumValues || []);
|
|
2365
2367
|
}
|
|
2366
2368
|
}
|
|
2367
|
-
function
|
|
2369
|
+
function Hi(e, t) {
|
|
2368
2370
|
const n = e.schema;
|
|
2369
2371
|
function a(o, i) {
|
|
2370
|
-
return new
|
|
2372
|
+
return new Vi(o, t).getPropertyConfig(n, i);
|
|
2371
2373
|
}
|
|
2372
2374
|
return {
|
|
2373
2375
|
getPropsConfig: a
|
|
@@ -2378,7 +2380,7 @@ const Wi = /* @__PURE__ */ ie({
|
|
|
2378
2380
|
props: Li,
|
|
2379
2381
|
emits: ["clear", "update:modelValue", "change"],
|
|
2380
2382
|
setup(e, t) {
|
|
2381
|
-
const n = b(), a = De("designer-host-service"), o = De("design-item-context"), i =
|
|
2383
|
+
const n = b(), a = De("designer-host-service"), o = De("design-item-context"), i = Hi(o, a), r = Pa(n, o, i);
|
|
2382
2384
|
return he(() => {
|
|
2383
2385
|
n.value.componentInstance = r;
|
|
2384
2386
|
}), t.expose(r.value), () => k(Ea, {
|
|
@@ -3865,7 +3867,7 @@ const qi = [
|
|
|
3865
3867
|
keyFront: "DefaultFunction",
|
|
3866
3868
|
className: ""
|
|
3867
3869
|
}
|
|
3868
|
-
],
|
|
3870
|
+
], Ui = [
|
|
3869
3871
|
{
|
|
3870
3872
|
key: "NumberThousandSeparator",
|
|
3871
3873
|
name: "数字千位分隔",
|
|
@@ -4015,7 +4017,7 @@ const qi = [
|
|
|
4015
4017
|
keyFront: "DefaultFunction",
|
|
4016
4018
|
className: ""
|
|
4017
4019
|
}
|
|
4018
|
-
],
|
|
4020
|
+
], Yi = [
|
|
4019
4021
|
{
|
|
4020
4022
|
key: "SubString",
|
|
4021
4023
|
name: "取子字符串",
|
|
@@ -4511,8 +4513,8 @@ const qi = [
|
|
|
4511
4513
|
], Ji = {
|
|
4512
4514
|
analytical: { name: "数据", items: Gi },
|
|
4513
4515
|
datetime: { name: "时间", items: _i },
|
|
4514
|
-
string: { name: "字符", items:
|
|
4515
|
-
math: { name: "数字", items:
|
|
4516
|
+
string: { name: "字符", items: Yi },
|
|
4517
|
+
math: { name: "数字", items: Ui },
|
|
4516
4518
|
translate: { name: "转换", items: Xi },
|
|
4517
4519
|
advanced: { name: "高级", items: qi }
|
|
4518
4520
|
};
|
|
@@ -4787,9 +4789,9 @@ var _n = {
|
|
|
4787
4789
|
}, o);
|
|
4788
4790
|
};
|
|
4789
4791
|
};
|
|
4790
|
-
function
|
|
4792
|
+
function Un(e, t) {
|
|
4791
4793
|
return Object.keys(t).forEach(function(n) {
|
|
4792
|
-
t[n] instanceof Object && e[n] && Object.assign(t[n],
|
|
4794
|
+
t[n] instanceof Object && e[n] && Object.assign(t[n], Un(e[n], t[n]));
|
|
4793
4795
|
}), pn(pn({}, e), t);
|
|
4794
4796
|
}
|
|
4795
4797
|
var Mr = {
|
|
@@ -4812,12 +4814,12 @@ var Or = br.create({
|
|
|
4812
4814
|
resolve: null,
|
|
4813
4815
|
reject: null,
|
|
4814
4816
|
monaco: null
|
|
4815
|
-
}),
|
|
4817
|
+
}), Yn = er(Or, 2), Ct = Yn[0], Et = Yn[1];
|
|
4816
4818
|
function Dr(e) {
|
|
4817
4819
|
var t = Tr.config(e), n = t.monaco, a = Ki(t, ["monaco"]);
|
|
4818
4820
|
Et(function(o) {
|
|
4819
4821
|
return {
|
|
4820
|
-
config:
|
|
4822
|
+
config: Un(o.config, a),
|
|
4821
4823
|
monaco: n
|
|
4822
4824
|
};
|
|
4823
4825
|
});
|
|
@@ -4892,7 +4894,7 @@ var _t = new Promise(function(e, t) {
|
|
|
4892
4894
|
resolve: e,
|
|
4893
4895
|
reject: t
|
|
4894
4896
|
});
|
|
4895
|
-
}),
|
|
4897
|
+
}), Ut = {
|
|
4896
4898
|
config: Dr,
|
|
4897
4899
|
init: Er,
|
|
4898
4900
|
__getMonacoInstance: Rr
|
|
@@ -4934,17 +4936,17 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
4934
4936
|
const m = await r(), {
|
|
4935
4937
|
vsPath: g
|
|
4936
4938
|
} = m;
|
|
4937
|
-
|
|
4939
|
+
Ut.config({
|
|
4938
4940
|
paths: {
|
|
4939
4941
|
vs: window.location.origin + g
|
|
4940
4942
|
}
|
|
4941
|
-
}),
|
|
4943
|
+
}), Ut.config({
|
|
4942
4944
|
"vs/nls": {
|
|
4943
4945
|
availableLanguages: {
|
|
4944
4946
|
"*": "zh-cn"
|
|
4945
4947
|
}
|
|
4946
4948
|
}
|
|
4947
|
-
}),
|
|
4949
|
+
}), Ut.init().then((y) => {
|
|
4948
4950
|
a.value = y, o = y.editor.create(n.value, {
|
|
4949
4951
|
value: i.value,
|
|
4950
4952
|
automaticLayout: !0,
|
|
@@ -5074,10 +5076,10 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5074
5076
|
function p({
|
|
5075
5077
|
row: d
|
|
5076
5078
|
}) {
|
|
5077
|
-
|
|
5079
|
+
He(u);
|
|
5078
5080
|
}
|
|
5079
5081
|
return he(() => {
|
|
5080
|
-
|
|
5082
|
+
He(u);
|
|
5081
5083
|
}), () => k("div", {
|
|
5082
5084
|
class: "h-100 f-utils-fill",
|
|
5083
5085
|
style: "overflow:auto",
|
|
@@ -5102,7 +5104,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5102
5104
|
onExpandNode: p
|
|
5103
5105
|
}, null)]);
|
|
5104
5106
|
}
|
|
5105
|
-
}),
|
|
5107
|
+
}), Vr = /* @__PURE__ */ ie({
|
|
5106
5108
|
name: "entity-variable",
|
|
5107
5109
|
props: $r,
|
|
5108
5110
|
emits: ["variableItemDblClick", "entityItemDblClick", "fieldClick"],
|
|
@@ -5221,7 +5223,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5221
5223
|
}
|
|
5222
5224
|
});
|
|
5223
5225
|
function B(w, x) {
|
|
5224
|
-
const P = w.children.map((
|
|
5226
|
+
const P = w.children.map((U) => B(U, x)).filter((U) => U !== null);
|
|
5225
5227
|
return w.data.name.toLowerCase().includes(x.toLowerCase()) || w.data.bindingPath.toLowerCase().includes(x.toLowerCase()) ? {
|
|
5226
5228
|
data: {
|
|
5227
5229
|
...w.data
|
|
@@ -5285,7 +5287,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5285
5287
|
class: "data-area f-utils-fill"
|
|
5286
5288
|
}, [h()])])])]);
|
|
5287
5289
|
}
|
|
5288
|
-
}),
|
|
5290
|
+
}), Hr = {
|
|
5289
5291
|
functionItems: {
|
|
5290
5292
|
type: Array,
|
|
5291
5293
|
default: []
|
|
@@ -5296,7 +5298,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5296
5298
|
}
|
|
5297
5299
|
}, Wr = /* @__PURE__ */ ie({
|
|
5298
5300
|
name: "FExpressionEditor",
|
|
5299
|
-
props:
|
|
5301
|
+
props: Hr,
|
|
5300
5302
|
emits: ["insertFunction", "search"],
|
|
5301
5303
|
setup(e, t) {
|
|
5302
5304
|
const n = b(), a = b(""), o = b(), i = b({}), r = b(""), s = "没有与搜索条件匹配的项", l = b(e.functionItems), u = j(() => (v) => e.singleExpand ? {
|
|
@@ -5636,7 +5638,7 @@ function _r(e, t) {
|
|
|
5636
5638
|
onFunctionSearch: r
|
|
5637
5639
|
};
|
|
5638
5640
|
}
|
|
5639
|
-
const
|
|
5641
|
+
const Ur = /* @__PURE__ */ ie({
|
|
5640
5642
|
name: "FExpressionEditor",
|
|
5641
5643
|
props: ko,
|
|
5642
5644
|
emits: [],
|
|
@@ -5699,8 +5701,8 @@ const Yr = /* @__PURE__ */ ie({
|
|
|
5699
5701
|
var I;
|
|
5700
5702
|
const $ = d(w);
|
|
5701
5703
|
x = e.isServerSide ? M(w.parents) : x;
|
|
5702
|
-
let
|
|
5703
|
-
P === $ && (
|
|
5704
|
+
let U = `${x}.${$}`;
|
|
5705
|
+
P === $ && (U = $), (I = r.value) == null || I.insertText(`${U}`);
|
|
5704
5706
|
}
|
|
5705
5707
|
function h({
|
|
5706
5708
|
$event: O,
|
|
@@ -5791,7 +5793,7 @@ const Yr = /* @__PURE__ */ ie({
|
|
|
5791
5793
|
width: 258,
|
|
5792
5794
|
minWidth: 130
|
|
5793
5795
|
}, {
|
|
5794
|
-
default: () => [k(
|
|
5796
|
+
default: () => [k(Vr, {
|
|
5795
5797
|
dataSource: {
|
|
5796
5798
|
entities: e.entities,
|
|
5797
5799
|
variables: e.variables
|
|
@@ -5803,7 +5805,7 @@ const Yr = /* @__PURE__ */ ie({
|
|
|
5803
5805
|
})]
|
|
5804
5806
|
})]);
|
|
5805
5807
|
}
|
|
5806
|
-
}),
|
|
5808
|
+
}), Yr = {
|
|
5807
5809
|
/**
|
|
5808
5810
|
* 组件标识
|
|
5809
5811
|
*/
|
|
@@ -6323,10 +6325,10 @@ function ml(e, t) {
|
|
|
6323
6325
|
const I = a.value || document.body, A = window.getComputedStyle(I);
|
|
6324
6326
|
if (!A || !n.value)
|
|
6325
6327
|
return;
|
|
6326
|
-
const
|
|
6328
|
+
const Y = re.getTransformInfo(n.value), W = {};
|
|
6327
6329
|
l.value && (W.deltaL = n.value.offsetLeft - l.value.x, W.deltaT = n.value.offsetTop - l.value.y);
|
|
6328
6330
|
const te = A.getPropertyValue("position");
|
|
6329
|
-
W.width = I.clientWidth, W.height = I.clientHeight, W.pr = parseInt(A.getPropertyValue("padding-right"), 10), W.pb = parseInt(A.getPropertyValue("padding-bottom"), 10), W.position = A.getPropertyValue("position"), te === "static" && (I.style.position = "relative"), W.translateX =
|
|
6331
|
+
W.width = I.clientWidth, W.height = I.clientHeight, W.pr = parseInt(A.getPropertyValue("padding-right"), 10), W.pb = parseInt(A.getPropertyValue("padding-bottom"), 10), W.position = A.getPropertyValue("position"), te === "static" && (I.style.position = "relative"), W.translateX = Y.x, W.translateY = Y.y, d.value = W;
|
|
6330
6332
|
}
|
|
6331
6333
|
function S(I) {
|
|
6332
6334
|
if (n.value) {
|
|
@@ -6341,10 +6343,10 @@ function ml(e, t) {
|
|
|
6341
6343
|
}
|
|
6342
6344
|
}
|
|
6343
6345
|
function D() {
|
|
6344
|
-
var I, A,
|
|
6346
|
+
var I, A, Y, W;
|
|
6345
6347
|
if (n.value) {
|
|
6346
6348
|
const te = n.value;
|
|
6347
|
-
u.value && ((u.value.n || u.value.s) && ((I = s.value) != null && I.height) && (te.style.height = s.value.height + "px"), (u.value.w || u.value.e) && ((A = s.value) != null && A.width) && (te.style.width = s.value.width + "px"), l.value && ((
|
|
6349
|
+
u.value && ((u.value.n || u.value.s) && ((I = s.value) != null && I.height) && (te.style.height = s.value.height + "px"), (u.value.w || u.value.e) && ((A = s.value) != null && A.width) && (te.style.width = s.value.width + "px"), l.value && ((Y = l.value) != null && Y.x && (te.style.left = l.value.x + "px"), (W = l.value) != null && W.y && (te.style.top = l.value.y + "px")));
|
|
6348
6350
|
}
|
|
6349
6351
|
}
|
|
6350
6352
|
function M() {
|
|
@@ -6355,8 +6357,8 @@ function ml(e, t) {
|
|
|
6355
6357
|
if (a.value) {
|
|
6356
6358
|
const I = d.value;
|
|
6357
6359
|
if (l.value && s.value && u.value && i.value) {
|
|
6358
|
-
const A = I.width - I.pr - I.deltaL - I.translateX - l.value.x,
|
|
6359
|
-
u.value.n && l.value.y + I.translateY < 0 && r.value && (l.value.y = -I.translateY, s.value.height = i.value.height + r.value.y + I.translateY), u.value.w && l.value.x + I.translateX < 0 && r.value && (l.value.x = -I.translateX, s.value.width = i.value.width + r.value.x + I.translateX), s.value.width > A && (s.value.width = A), s.value.height >
|
|
6360
|
+
const A = I.width - I.pr - I.deltaL - I.translateX - l.value.x, Y = I.height - I.pb - I.deltaT - I.translateY - l.value.y;
|
|
6361
|
+
u.value.n && l.value.y + I.translateY < 0 && r.value && (l.value.y = -I.translateY, s.value.height = i.value.height + r.value.y + I.translateY), u.value.w && l.value.x + I.translateX < 0 && r.value && (l.value.x = -I.translateX, s.value.width = i.value.width + r.value.x + I.translateX), s.value.width > A && (s.value.width = A), s.value.height > Y && (s.value.height = Y);
|
|
6360
6362
|
}
|
|
6361
6363
|
}
|
|
6362
6364
|
}
|
|
@@ -6364,8 +6366,8 @@ function ml(e, t) {
|
|
|
6364
6366
|
if (!o.value || !i.value || !r.value || !u.value)
|
|
6365
6367
|
return;
|
|
6366
6368
|
I.subtract(o.value);
|
|
6367
|
-
const A = I.x,
|
|
6368
|
-
u.value.n ? (l.value.y = r.value.y +
|
|
6369
|
+
const A = I.x, Y = I.y;
|
|
6370
|
+
u.value.n ? (l.value.y = r.value.y + Y, s.value.height = i.value.height - Y) : u.value.s && (s.value.height = i.value.height + Y), u.value.e ? s.value.width = i.value.width + A : u.value.w && (s.value.width = i.value.width - A, l.value.x = r.value.x + A), v(), M(), D();
|
|
6369
6371
|
}
|
|
6370
6372
|
function T(I) {
|
|
6371
6373
|
if (!p.value)
|
|
@@ -6378,7 +6380,7 @@ function ml(e, t) {
|
|
|
6378
6380
|
const {
|
|
6379
6381
|
width: I,
|
|
6380
6382
|
height: A,
|
|
6381
|
-
x:
|
|
6383
|
+
x: Y,
|
|
6382
6384
|
y: W
|
|
6383
6385
|
} = n.value.getBoundingClientRect(), te = re.getTransformInfo(n.value);
|
|
6384
6386
|
return {
|
|
@@ -6387,7 +6389,7 @@ function ml(e, t) {
|
|
|
6387
6389
|
height: A
|
|
6388
6390
|
},
|
|
6389
6391
|
position: {
|
|
6390
|
-
x:
|
|
6392
|
+
x: Y - te.x,
|
|
6391
6393
|
y: W - te.y
|
|
6392
6394
|
}
|
|
6393
6395
|
};
|
|
@@ -6444,8 +6446,8 @@ function ml(e, t) {
|
|
|
6444
6446
|
}
|
|
6445
6447
|
function w(I = !0) {
|
|
6446
6448
|
document.body.click();
|
|
6447
|
-
const A = a.value || document.body,
|
|
6448
|
-
I && W && (m.value = B(), m.value.transform = W.style.transform),
|
|
6449
|
+
const A = a.value || document.body, Y = Ze.getCurrent(A), W = n.value;
|
|
6450
|
+
I && W && (m.value = B(), m.value.transform = W.style.transform), Y && W && (s.value = Y, s.value.height -= 14, s.value.width -= 14, W.style.height = s.value.height + "px", W.style.width = s.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", c.value = {
|
|
6449
6451
|
size: s.value,
|
|
6450
6452
|
position: {
|
|
6451
6453
|
x: 0,
|
|
@@ -6456,17 +6458,17 @@ function ml(e, t) {
|
|
|
6456
6458
|
function x() {
|
|
6457
6459
|
var I, A;
|
|
6458
6460
|
if (document.body.click(), m.value) {
|
|
6459
|
-
const
|
|
6461
|
+
const Y = {
|
|
6460
6462
|
width: m.value.size.width || 0,
|
|
6461
6463
|
height: m.value.size.height || 0
|
|
6462
6464
|
}, W = {
|
|
6463
|
-
x: (window.innerWidth -
|
|
6464
|
-
y: (window.innerHeight -
|
|
6465
|
+
x: (window.innerWidth - Y.width) / 2,
|
|
6466
|
+
y: (window.innerHeight - Y.height) / 2
|
|
6465
6467
|
};
|
|
6466
|
-
(I = s.value) == null || I.set(
|
|
6468
|
+
(I = s.value) == null || I.set(Y), (A = l.value) == null || A.set(W);
|
|
6467
6469
|
const te = n.value;
|
|
6468
|
-
te.style.height =
|
|
6469
|
-
size:
|
|
6470
|
+
te.style.height = Y.height + "px", te.style.width = Y.width + "px", te.style.left = `${W.x}px`, te.style.top = `${W.y}px`, te.style.transform = "", c.value = {
|
|
6471
|
+
size: Y,
|
|
6470
6472
|
position: W
|
|
6471
6473
|
}, g.value = e.draggable, y.value = !1;
|
|
6472
6474
|
}
|
|
@@ -6477,9 +6479,9 @@ function ml(e, t) {
|
|
|
6477
6479
|
if (I) {
|
|
6478
6480
|
const {
|
|
6479
6481
|
width: A,
|
|
6480
|
-
height:
|
|
6482
|
+
height: Y
|
|
6481
6483
|
} = I;
|
|
6482
|
-
n.value.style.left = `${(window.innerWidth - A) / 2}px`, n.value.style.top = `${(window.innerHeight -
|
|
6484
|
+
n.value.style.left = `${(window.innerWidth - A) / 2}px`, n.value.style.top = `${(window.innerHeight - Y) / 2}px`, n.value.style.transform = "";
|
|
6483
6485
|
}
|
|
6484
6486
|
}
|
|
6485
6487
|
}
|
|
@@ -6491,7 +6493,7 @@ function ml(e, t) {
|
|
|
6491
6493
|
window.removeEventListener("resize", I);
|
|
6492
6494
|
};
|
|
6493
6495
|
}
|
|
6494
|
-
const
|
|
6496
|
+
const U = $();
|
|
6495
6497
|
return {
|
|
6496
6498
|
renderResizeBar: O,
|
|
6497
6499
|
boundingElement: a,
|
|
@@ -6500,7 +6502,7 @@ function ml(e, t) {
|
|
|
6500
6502
|
restore: x,
|
|
6501
6503
|
allowDrag: g,
|
|
6502
6504
|
isMaximized: y,
|
|
6503
|
-
unWindowResizeHandle:
|
|
6505
|
+
unWindowResizeHandle: U,
|
|
6504
6506
|
moveToCenter: P
|
|
6505
6507
|
};
|
|
6506
6508
|
}
|
|
@@ -6651,10 +6653,10 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6651
6653
|
renderResizeBar: x,
|
|
6652
6654
|
maximize: P,
|
|
6653
6655
|
restore: $,
|
|
6654
|
-
boundingElement:
|
|
6656
|
+
boundingElement: U,
|
|
6655
6657
|
resizedEventParam: I,
|
|
6656
6658
|
allowDrag: A,
|
|
6657
|
-
unWindowResizeHandle:
|
|
6659
|
+
unWindowResizeHandle: Y,
|
|
6658
6660
|
moveToCenter: W
|
|
6659
6661
|
} = ml(e), {
|
|
6660
6662
|
registerDraggle: te
|
|
@@ -6669,8 +6671,8 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6669
6671
|
ee(() => e.title, (R, Q) => {
|
|
6670
6672
|
R !== Q && (C.value = R);
|
|
6671
6673
|
}), ee(() => e.modelValue, (R, Q) => {
|
|
6672
|
-
R !== Q && (o.value = R, o.value && e.draggable &&
|
|
6673
|
-
O.value && !S.value && (S.value = O.value.parentElement,
|
|
6674
|
+
R !== Q && (o.value = R, o.value && e.draggable && He(() => {
|
|
6675
|
+
O.value && !S.value && (S.value = O.value.parentElement, U.value = S.value, te(F.value, O.value, U.value), W());
|
|
6674
6676
|
}), R || (S.value && (S.value = null), ge())), o.value ? v.value = ve() : (w.value = !1, A.value = e.draggable);
|
|
6675
6677
|
}), ee(() => e.showHeader, (R, Q) => {
|
|
6676
6678
|
R !== Q && (l.value = R);
|
|
@@ -6760,9 +6762,9 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6760
6762
|
ha(() => {
|
|
6761
6763
|
v.value = ve();
|
|
6762
6764
|
}), he(() => {
|
|
6763
|
-
O.value && !S.value && (S.value = O.value.parentElement,
|
|
6765
|
+
O.value && !S.value && (S.value = O.value.parentElement, U.value = S.value, te(F.value, O.value, U.value)), J.value && document.body.classList.add("modal-open"), Le = vl(e, t), Te = hl(e, t);
|
|
6764
6766
|
}), gt(() => {
|
|
6765
|
-
|
|
6767
|
+
Y && Y(), Le && Le.remove(), Te && Te.remove();
|
|
6766
6768
|
}), t.expose({
|
|
6767
6769
|
modalElementRef: O,
|
|
6768
6770
|
updateModalOptions: Re,
|
|
@@ -6808,7 +6810,7 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6808
6810
|
}, null), R.text]);
|
|
6809
6811
|
})]);
|
|
6810
6812
|
}
|
|
6811
|
-
function
|
|
6813
|
+
function Ue() {
|
|
6812
6814
|
return k("div", {
|
|
6813
6815
|
ref: F,
|
|
6814
6816
|
class: "modal-header",
|
|
@@ -6843,7 +6845,7 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6843
6845
|
ref: O
|
|
6844
6846
|
}, [k("div", {
|
|
6845
6847
|
class: Ge.value
|
|
6846
|
-
}, [l.value &&
|
|
6848
|
+
}, [l.value && Ue(), k("div", {
|
|
6847
6849
|
class: nt.value
|
|
6848
6850
|
}, [(Q = (R = t.slots).default) == null ? void 0 : Q.call(R), f.value === "iframe" && k("iframe", {
|
|
6849
6851
|
title: i.value,
|
|
@@ -6982,7 +6984,7 @@ class Kn {
|
|
|
6982
6984
|
const h = (T = v == null ? void 0 : v.target) == null ? void 0 : T.classList.contains("modal_close");
|
|
6983
6985
|
s(v, this.isUseEscCloseModal.value ? "esc" : h ? "icon" : "button");
|
|
6984
6986
|
}, f = (v) => {
|
|
6985
|
-
c(v), p &&
|
|
6987
|
+
c(v), p && He(() => {
|
|
6986
6988
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], qt(null, n), p = null, this.modalRef.value = null, this.modalRefs) {
|
|
6987
6989
|
const h = Object.keys(this.modalRefs).map((T) => Number(T));
|
|
6988
6990
|
h.length > 0 ? this.activeModalIndex.value = Math.max(...h) : this.activeModalIndex.value = 0;
|
|
@@ -7294,12 +7296,12 @@ var Ml = { exports: {} };
|
|
|
7294
7296
|
function d(F, O) {
|
|
7295
7297
|
var w = arguments.length;
|
|
7296
7298
|
w === 1 && Array.isArray(F) === !1 && (O = F, F = []);
|
|
7297
|
-
var x, P, $,
|
|
7299
|
+
var x, P, $, U, I, A, Y, W, te, ve = null, ge, J, oe = !1, ue = 0, ne, G = O || {};
|
|
7298
7300
|
G.moves === void 0 && (G.moves = S), G.accepts === void 0 && (G.accepts = S), G.invalid === void 0 && (G.invalid = ut), G.containers === void 0 && (G.containers = F || []), G.isContainer === void 0 && (G.isContainer = C), G.copy === void 0 && (G.copy = !1), G.copySortSource === void 0 && (G.copySortSource = !1), G.revertOnSpill === void 0 && (G.revertOnSpill = !1), G.removeOnSpill === void 0 && (G.removeOnSpill = !1), G.direction === void 0 && (G.direction = "vertical"), G.ignoreInputTextSelection === void 0 && (G.ignoreInputTextSelection = !0), G.mirrorContainer === void 0 && (G.mirrorContainer = u.body);
|
|
7299
7301
|
var ae = r({
|
|
7300
7302
|
containers: G.containers,
|
|
7301
7303
|
start: Te,
|
|
7302
|
-
end:
|
|
7304
|
+
end: Ue,
|
|
7303
7305
|
cancel: R,
|
|
7304
7306
|
remove: it,
|
|
7305
7307
|
destroy: _e,
|
|
@@ -7311,16 +7313,16 @@ var Ml = { exports: {} };
|
|
|
7311
7313
|
return ae.containers.indexOf(E) !== -1 || G.isContainer(E);
|
|
7312
7314
|
}
|
|
7313
7315
|
function Ie(E) {
|
|
7314
|
-
var
|
|
7315
|
-
m(p,
|
|
7316
|
+
var V = E ? "remove" : "add";
|
|
7317
|
+
m(p, V, "mousedown", le), m(p, V, "mouseup", ze);
|
|
7316
7318
|
}
|
|
7317
7319
|
function Fe(E) {
|
|
7318
|
-
var
|
|
7319
|
-
m(p,
|
|
7320
|
+
var V = E ? "remove" : "add";
|
|
7321
|
+
m(p, V, "mousemove", st);
|
|
7320
7322
|
}
|
|
7321
7323
|
function nt(E) {
|
|
7322
|
-
var
|
|
7323
|
-
s[
|
|
7324
|
+
var V = E ? "remove" : "add";
|
|
7325
|
+
s[V](p, "selectstart", at), s[V](p, "click", at);
|
|
7324
7326
|
}
|
|
7325
7327
|
function _e() {
|
|
7326
7328
|
Ie(!0), ze({});
|
|
@@ -7329,11 +7331,11 @@ var Ml = { exports: {} };
|
|
|
7329
7331
|
ge && E.preventDefault();
|
|
7330
7332
|
}
|
|
7331
7333
|
function le(E) {
|
|
7332
|
-
|
|
7333
|
-
var
|
|
7334
|
-
if (!
|
|
7335
|
-
var
|
|
7336
|
-
_ && (ge = _, Fe(), E.type === "mousedown" && (h(
|
|
7334
|
+
U = E.clientX, I = E.clientY;
|
|
7335
|
+
var V = g(E) !== 1 || E.metaKey || E.ctrlKey;
|
|
7336
|
+
if (!V) {
|
|
7337
|
+
var H = E.target, _ = Re(H);
|
|
7338
|
+
_ && (ge = _, Fe(), E.type === "mousedown" && (h(H) ? H.focus() : E.preventDefault()));
|
|
7337
7339
|
}
|
|
7338
7340
|
}
|
|
7339
7341
|
function st(E) {
|
|
@@ -7342,29 +7344,29 @@ var Ml = { exports: {} };
|
|
|
7342
7344
|
ze({});
|
|
7343
7345
|
return;
|
|
7344
7346
|
}
|
|
7345
|
-
if (!(E.clientX !== void 0 && Math.abs(E.clientX -
|
|
7347
|
+
if (!(E.clientX !== void 0 && Math.abs(E.clientX - U) <= (G.slideFactorX || 0) && E.clientY !== void 0 && Math.abs(E.clientY - I) <= (G.slideFactorY || 0))) {
|
|
7346
7348
|
if (G.ignoreInputTextSelection) {
|
|
7347
|
-
var
|
|
7349
|
+
var V = L("clientX", E) || 0, H = L("clientY", E) || 0, _ = u.elementFromPoint(V, H);
|
|
7348
7350
|
if (h(_))
|
|
7349
7351
|
return;
|
|
7350
7352
|
}
|
|
7351
7353
|
var Z = ge;
|
|
7352
|
-
Fe(!0), nt(),
|
|
7354
|
+
Fe(!0), nt(), Ue(), $e(Z), l.add(W || $, "gu-transit"), Rt(), It(), ue = 0, Pe(E);
|
|
7353
7355
|
}
|
|
7354
7356
|
}
|
|
7355
7357
|
}
|
|
7356
7358
|
function Re(E) {
|
|
7357
7359
|
if (!(ae.dragging && x) && !Ge(E)) {
|
|
7358
|
-
for (var
|
|
7359
|
-
if (G.invalid(E,
|
|
7360
|
+
for (var V = E; v(E) && Ge(v(E)) === !1; )
|
|
7361
|
+
if (G.invalid(E, V) || (E = v(E), !E))
|
|
7360
7362
|
return;
|
|
7361
|
-
var
|
|
7362
|
-
if (
|
|
7363
|
-
var _ = G.moves(E,
|
|
7363
|
+
var H = v(E);
|
|
7364
|
+
if (H && !G.invalid(E, V)) {
|
|
7365
|
+
var _ = G.moves(E, H, V, B(E));
|
|
7364
7366
|
if (_)
|
|
7365
7367
|
return {
|
|
7366
7368
|
item: E,
|
|
7367
|
-
source:
|
|
7369
|
+
source: H
|
|
7368
7370
|
};
|
|
7369
7371
|
}
|
|
7370
7372
|
}
|
|
@@ -7373,16 +7375,16 @@ var Ml = { exports: {} };
|
|
|
7373
7375
|
return !!Re(E);
|
|
7374
7376
|
}
|
|
7375
7377
|
function Te(E) {
|
|
7376
|
-
var
|
|
7377
|
-
|
|
7378
|
+
var V = Re(E);
|
|
7379
|
+
V && $e(V);
|
|
7378
7380
|
}
|
|
7379
7381
|
function $e(E) {
|
|
7380
|
-
Wt(E.item, E.source) && (W = E.item.cloneNode(!0), ae.emit("cloned", W, E.item, "copy")), P = E.source, $ = E.item, A =
|
|
7382
|
+
Wt(E.item, E.source) && (W = E.item.cloneNode(!0), ae.emit("cloned", W, E.item, "copy")), P = E.source, $ = E.item, A = Y = B(E.item), ae.dragging = !0, ae.emit("drag", $, P);
|
|
7381
7383
|
}
|
|
7382
7384
|
function ut() {
|
|
7383
7385
|
return !1;
|
|
7384
7386
|
}
|
|
7385
|
-
function
|
|
7387
|
+
function Ue() {
|
|
7386
7388
|
if (ae.dragging) {
|
|
7387
7389
|
var E = W || $;
|
|
7388
7390
|
ot(E, v(E));
|
|
@@ -7393,35 +7395,35 @@ var Ml = { exports: {} };
|
|
|
7393
7395
|
}
|
|
7394
7396
|
function ze(E) {
|
|
7395
7397
|
if (Ee(), !!ae.dragging) {
|
|
7396
|
-
var
|
|
7397
|
-
K && (W && G.copySortSource || !W || K !== P) ? ot(
|
|
7398
|
+
var V = W || $, H = L("clientX", E) || 0, _ = L("clientY", E) || 0, Z = y(x, H, _), K = ce(Z, H, _);
|
|
7399
|
+
K && (W && G.copySortSource || !W || K !== P) ? ot(V, K) : G.removeOnSpill ? it() : R();
|
|
7398
7400
|
}
|
|
7399
7401
|
}
|
|
7400
|
-
function ot(E,
|
|
7401
|
-
var
|
|
7402
|
-
W && G.copySortSource &&
|
|
7402
|
+
function ot(E, V) {
|
|
7403
|
+
var H = v(E);
|
|
7404
|
+
W && G.copySortSource && V === P && H.removeChild($), se(V) ? ae.emit("cancel", E, P) : ae.emit("drop", E, V, P, Y), Q();
|
|
7403
7405
|
}
|
|
7404
7406
|
function it() {
|
|
7405
7407
|
if (ae.dragging) {
|
|
7406
|
-
var E = W || $,
|
|
7407
|
-
|
|
7408
|
+
var E = W || $, V = v(E);
|
|
7409
|
+
V && V.removeChild(E), ae.emit(W ? "cancel" : "remove", E, V, P), Q();
|
|
7408
7410
|
}
|
|
7409
7411
|
}
|
|
7410
7412
|
function R(E) {
|
|
7411
7413
|
if (ae.dragging) {
|
|
7412
|
-
var
|
|
7413
|
-
Z === !1 &&
|
|
7414
|
+
var V = arguments.length > 0 ? E : G.revertOnSpill, H = W || $, _ = v(H), Z = se(_);
|
|
7415
|
+
Z === !1 && V && (W ? _ && _.removeChild(W) : P.insertBefore(H, A)), Z || V ? ae.emit("cancel", H, P, P) : ae.emit("drop", H, _, P, Y), Q();
|
|
7414
7416
|
}
|
|
7415
7417
|
}
|
|
7416
7418
|
function Q() {
|
|
7417
7419
|
var E = W || $;
|
|
7418
|
-
Ee(), Lt(), $t(), E && l.rm(E, "gu-transit"), te && clearTimeout(te), ae.dragging = !1, ve && ae.emit("out", E, ve, P), ae.emit("dragend", E, ue), P = $ = W = A =
|
|
7420
|
+
Ee(), Lt(), $t(), E && l.rm(E, "gu-transit"), te && clearTimeout(te), ae.dragging = !1, ve && ae.emit("out", E, ve, P), ae.emit("dragend", E, ue), P = $ = W = A = Y = te = ve = null;
|
|
7419
7421
|
}
|
|
7420
|
-
function se(E,
|
|
7421
|
-
var
|
|
7422
|
-
return
|
|
7422
|
+
function se(E, V) {
|
|
7423
|
+
var H;
|
|
7424
|
+
return V !== void 0 ? H = V : x ? H = Y : H = B(W || $), E === P && H === A;
|
|
7423
7425
|
}
|
|
7424
|
-
function ce(E,
|
|
7426
|
+
function ce(E, V, H) {
|
|
7425
7427
|
for (var _ = E; _ && !Z(); )
|
|
7426
7428
|
_ = v(_);
|
|
7427
7429
|
return _;
|
|
@@ -7429,7 +7431,7 @@ var Ml = { exports: {} };
|
|
|
7429
7431
|
var K = Ge(_);
|
|
7430
7432
|
if (K === !1)
|
|
7431
7433
|
return !1;
|
|
7432
|
-
var xe = wt(_, E), be = kt(_, xe,
|
|
7434
|
+
var xe = wt(_, E), be = kt(_, xe, V, H), we = se(_, be);
|
|
7433
7435
|
return we ? !0 : G.accepts($, _, P, be);
|
|
7434
7436
|
}
|
|
7435
7437
|
}
|
|
@@ -7437,10 +7439,10 @@ var Ml = { exports: {} };
|
|
|
7437
7439
|
if (!x)
|
|
7438
7440
|
return;
|
|
7439
7441
|
E.preventDefault();
|
|
7440
|
-
var
|
|
7441
|
-
x.style.left =
|
|
7442
|
-
var _ = W || $, Z = y(x,
|
|
7443
|
-
(xe || K === null) && (ke(), ve = K, Me()),
|
|
7442
|
+
var V = L("clientX", E) || 0, H = L("clientY", E) || 0;
|
|
7443
|
+
x.style.left = V - 2 + "px", x.style.top = H - 2 + "px";
|
|
7444
|
+
var _ = W || $, Z = y(x, V, H), K = ce(Z, V, H), xe = K !== null && K !== ve;
|
|
7445
|
+
(xe || K === null) && (ke(), ve = K, Me()), Ht(Z, H);
|
|
7444
7446
|
var be = v(_);
|
|
7445
7447
|
if (K === P && W && !G.copySortSource) {
|
|
7446
7448
|
be && be.removeChild(_);
|
|
@@ -7448,14 +7450,14 @@ var Ml = { exports: {} };
|
|
|
7448
7450
|
}
|
|
7449
7451
|
var we, Be = wt(K, Z);
|
|
7450
7452
|
if (oe = ct(Be, K), Be !== null)
|
|
7451
|
-
we = kt(K, Be,
|
|
7453
|
+
we = kt(K, Be, V, H);
|
|
7452
7454
|
else if (G.revertOnSpill === !0 && !W)
|
|
7453
7455
|
we = A, K = P;
|
|
7454
7456
|
else {
|
|
7455
7457
|
W && be && be.removeChild(_), W && J && (J.style.display = "none");
|
|
7456
7458
|
return;
|
|
7457
7459
|
}
|
|
7458
|
-
J.style.display = "block", Pt(we, _, xe), we ? At(Be, we) :
|
|
7460
|
+
J.style.display = "block", Pt(we, _, xe), we ? At(Be, we) : Vt(K);
|
|
7459
7461
|
function de(me) {
|
|
7460
7462
|
ae.emit(me, _, ve, P);
|
|
7461
7463
|
}
|
|
@@ -7466,8 +7468,8 @@ var Ml = { exports: {} };
|
|
|
7466
7468
|
ve && de("out");
|
|
7467
7469
|
}
|
|
7468
7470
|
}
|
|
7469
|
-
function Pt(E,
|
|
7470
|
-
(E ===
|
|
7471
|
+
function Pt(E, V, H) {
|
|
7472
|
+
(E === V || E === B(V)) && (Y = B(V)), (E === null && H || E !== V && E !== B(V)) && (Y = E);
|
|
7471
7473
|
}
|
|
7472
7474
|
function Nt(E) {
|
|
7473
7475
|
l.rm(E, "gu-hide");
|
|
@@ -7491,26 +7493,26 @@ var Ml = { exports: {} };
|
|
|
7491
7493
|
function $t() {
|
|
7492
7494
|
J && (v(J).removeChild(J), J = null);
|
|
7493
7495
|
}
|
|
7494
|
-
function wt(E,
|
|
7495
|
-
for (var
|
|
7496
|
-
|
|
7497
|
-
return
|
|
7496
|
+
function wt(E, V) {
|
|
7497
|
+
for (var H = V; H !== E && v(H) !== E; )
|
|
7498
|
+
H = v(H);
|
|
7499
|
+
return H === p ? null : H;
|
|
7498
7500
|
}
|
|
7499
|
-
function ct(E,
|
|
7500
|
-
if (!H)
|
|
7501
|
-
return oe;
|
|
7502
|
-
var V = E || H && H.lastElementChild;
|
|
7501
|
+
function ct(E, V) {
|
|
7503
7502
|
if (!V)
|
|
7503
|
+
return oe;
|
|
7504
|
+
var H = E || V && V.lastElementChild;
|
|
7505
|
+
if (!H)
|
|
7504
7506
|
return !0;
|
|
7505
7507
|
var _ = getComputedStyle(E), Z = /^inline/.test(_.getPropertyValue("display")) || /^(left|right)$/.test(_.getPropertyValue("float"));
|
|
7506
7508
|
if (Z)
|
|
7507
7509
|
return !0;
|
|
7508
|
-
if (
|
|
7509
|
-
var K = getComputedStyle(
|
|
7510
|
+
if (V) {
|
|
7511
|
+
var K = getComputedStyle(V), xe = K.getPropertyValue("display");
|
|
7510
7512
|
if (/flex$/.test(xe)) {
|
|
7511
7513
|
var be = K.getPropertyValue("flex-direction") || "row";
|
|
7512
7514
|
if (be === "row" || be === "row-reverse")
|
|
7513
|
-
return !zt(
|
|
7515
|
+
return !zt(V);
|
|
7514
7516
|
}
|
|
7515
7517
|
return !1;
|
|
7516
7518
|
}
|
|
@@ -7519,8 +7521,8 @@ var Ml = { exports: {} };
|
|
|
7519
7521
|
function zt(E) {
|
|
7520
7522
|
if (!E.children || !E.children.length)
|
|
7521
7523
|
return !1;
|
|
7522
|
-
for (const
|
|
7523
|
-
const _ = (
|
|
7524
|
+
for (const V of Array.from(E.children)) {
|
|
7525
|
+
const _ = (V.className && V.className.split(" ") || []).filter((Z) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(Z));
|
|
7524
7526
|
if (!_.length)
|
|
7525
7527
|
return !1;
|
|
7526
7528
|
for (const Z of _) {
|
|
@@ -7531,66 +7533,66 @@ var Ml = { exports: {} };
|
|
|
7531
7533
|
}
|
|
7532
7534
|
return !0;
|
|
7533
7535
|
}
|
|
7534
|
-
function At(E,
|
|
7535
|
-
const
|
|
7536
|
-
if (J.style.left =
|
|
7537
|
-
if (J.style.height =
|
|
7536
|
+
function At(E, V) {
|
|
7537
|
+
const H = V.getBoundingClientRect();
|
|
7538
|
+
if (J.style.left = H.left + "px", J.style.top = H.top + "px", oe) {
|
|
7539
|
+
if (J.style.height = H.height + "px", J.style.width = "4px", E) {
|
|
7538
7540
|
const _ = E.getBoundingClientRect();
|
|
7539
|
-
_.top !==
|
|
7541
|
+
_.top !== H.top && (J.style.left = _.right + "px", J.style.top = _.top + "px", J.style.height = _.height + "px");
|
|
7540
7542
|
}
|
|
7541
|
-
} else if (J.style.height = "4px", J.style.width =
|
|
7543
|
+
} else if (J.style.height = "4px", J.style.width = H.width + "px", ne) {
|
|
7542
7544
|
const _ = ne.getBoundingClientRect();
|
|
7543
|
-
|
|
7545
|
+
H.top < _.top && (J.style.display = "none");
|
|
7544
7546
|
}
|
|
7545
|
-
|
|
7547
|
+
V === $ && $ && (J.style.display = "none");
|
|
7546
7548
|
}
|
|
7547
|
-
function
|
|
7548
|
-
|
|
7549
|
-
var
|
|
7550
|
-
if (
|
|
7551
|
-
var
|
|
7552
|
-
oe ? (J.style.left =
|
|
7549
|
+
function Vt(E) {
|
|
7550
|
+
Y = null;
|
|
7551
|
+
var V = E.lastElementChild;
|
|
7552
|
+
if (V) {
|
|
7553
|
+
var H = V.getBoundingClientRect();
|
|
7554
|
+
oe ? (J.style.left = H.right + "px", J.style.top = H.top + "px", J.style.height = H.height + "px", J.style.width = "4px") : (J.style.left = H.left + "px", J.style.top = H.bottom + "px", J.style.height = "4px", J.style.width = H.width + "px"), V === $ && $ && (J.style.display = "none");
|
|
7553
7555
|
} else
|
|
7554
7556
|
J.style.display = "none";
|
|
7555
7557
|
}
|
|
7556
|
-
function
|
|
7558
|
+
function Ht(E, V) {
|
|
7557
7559
|
if (!G.mirrorContainer.contains(E) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ne = c(E), !ne || !ne.contains(E)))
|
|
7558
7560
|
return;
|
|
7559
|
-
const
|
|
7560
|
-
if (
|
|
7561
|
+
const H = document.querySelector(".dgComponentSelected"), _ = ne.getBoundingClientRect();
|
|
7562
|
+
if (V - 30 < _.top && ne.scrollTop > 0) {
|
|
7561
7563
|
let Z = ne.scrollTop < 10 ? ne.scrollTop : 10;
|
|
7562
|
-
ne.scrollBy(0, -1 * Z),
|
|
7564
|
+
ne.scrollBy(0, -1 * Z), H && ne.contains(H) && (ue = ue + -1 * Z);
|
|
7563
7565
|
}
|
|
7564
|
-
if (
|
|
7566
|
+
if (V + 30 > _.bottom && ne.scrollTop < ne.scrollHeight - ne.clientHeight) {
|
|
7565
7567
|
const Z = ne.scrollHeight - ne.clientHeight - ne.scrollTop;
|
|
7566
7568
|
let K = Z < 10 ? Z : 10;
|
|
7567
|
-
ne.scrollBy(0, K),
|
|
7569
|
+
ne.scrollBy(0, K), H && ne.contains(H) && (ue = ue + K);
|
|
7568
7570
|
}
|
|
7569
7571
|
}
|
|
7570
|
-
function kt(E,
|
|
7571
|
-
var Z = G.direction === "horizontal", K = G.direction === "mixed", xe =
|
|
7572
|
+
function kt(E, V, H, _) {
|
|
7573
|
+
var Z = G.direction === "horizontal", K = G.direction === "mixed", xe = V !== E ? we() : be();
|
|
7572
7574
|
return xe;
|
|
7573
7575
|
function be() {
|
|
7574
7576
|
var de = E.children.length, Me, ke, me;
|
|
7575
7577
|
for (Me = 0; Me < de; Me++)
|
|
7576
|
-
if (ke = E.children[Me], me = ke.getBoundingClientRect(), Z && me.left + me.width / 2 >
|
|
7578
|
+
if (ke = E.children[Me], me = ke.getBoundingClientRect(), Z && me.left + me.width / 2 > H || !K && !Z && me.top + me.height / 2 > _ || K && me.left + me.width > H && me.top + me.height > _)
|
|
7577
7579
|
return ke;
|
|
7578
7580
|
return null;
|
|
7579
7581
|
}
|
|
7580
7582
|
function we() {
|
|
7581
|
-
var de =
|
|
7583
|
+
var de = V.getBoundingClientRect();
|
|
7582
7584
|
if (K) {
|
|
7583
|
-
var Me = _ - de.top, ke =
|
|
7585
|
+
var Me = _ - de.top, ke = H - de.left, me = de.bottom - _, dt = de.right - H, ft = Math.min(ke, dt, Me, me), pt;
|
|
7584
7586
|
return oe ? pt = dt < ke : pt = me === ft || dt === ft || ke === ft, Be(pt);
|
|
7585
7587
|
}
|
|
7586
|
-
return Be(Z ?
|
|
7588
|
+
return Be(Z ? H > de.left + D(de) / 2 : _ > de.top + M(de) / 2);
|
|
7587
7589
|
}
|
|
7588
7590
|
function Be(de) {
|
|
7589
|
-
return de ? B(
|
|
7591
|
+
return de ? B(V) : V;
|
|
7590
7592
|
}
|
|
7591
7593
|
}
|
|
7592
|
-
function Wt(E,
|
|
7593
|
-
return typeof G.copy == "boolean" ? G.copy : G.copy(E,
|
|
7594
|
+
function Wt(E, V) {
|
|
7595
|
+
return typeof G.copy == "boolean" ? G.copy : G.copy(E, V);
|
|
7594
7596
|
}
|
|
7595
7597
|
}
|
|
7596
7598
|
function c(F) {
|
|
@@ -7621,12 +7623,12 @@ var Ml = { exports: {} };
|
|
|
7621
7623
|
mouseup: "pointerup",
|
|
7622
7624
|
mousedown: "pointerdown",
|
|
7623
7625
|
mousemove: "pointermove"
|
|
7624
|
-
},
|
|
7626
|
+
}, U = {
|
|
7625
7627
|
mouseup: "MSPointerUp",
|
|
7626
7628
|
mousedown: "MSPointerDown",
|
|
7627
7629
|
mousemove: "MSPointerMove"
|
|
7628
7630
|
};
|
|
7629
|
-
i.navigator.pointerEnabled ? s[O](F, $[w], x) : i.navigator.msPointerEnabled ? s[O](F,
|
|
7631
|
+
i.navigator.pointerEnabled ? s[O](F, $[w], x) : i.navigator.msPointerEnabled ? s[O](F, U[w], x) : (s[O](F, P[w], x), s[O](F, w, x));
|
|
7630
7632
|
}
|
|
7631
7633
|
function g(F) {
|
|
7632
7634
|
if (F.touches !== void 0)
|
|
@@ -8134,7 +8136,7 @@ const Ol = {
|
|
|
8134
8136
|
class El {
|
|
8135
8137
|
constructor() {
|
|
8136
8138
|
Ce(this, "notifyRefs", []);
|
|
8137
|
-
Ce(this, "globalConfig",
|
|
8139
|
+
Ce(this, "globalConfig", Ve({}));
|
|
8138
8140
|
}
|
|
8139
8141
|
escapeAllHtml(t) {
|
|
8140
8142
|
if (typeof t != "string" || !t)
|
|
@@ -8421,8 +8423,8 @@ function Nl(e, t, n, a, o, i, r, s, l, u, p, d, c, f, m, g, y) {
|
|
|
8421
8423
|
renderDataRow: B
|
|
8422
8424
|
} = La(e, t, S, y, s, l, u, p, d, c, f, m, g), N = [B];
|
|
8423
8425
|
function L(P, $) {
|
|
8424
|
-
const
|
|
8425
|
-
return y.value.filter((I) => I.visible !== !1).map((I, A) => N[I.type](I,
|
|
8426
|
+
const U = C(P);
|
|
8427
|
+
return y.value.filter((I) => I.visible !== !1).map((I, A) => N[I.type](I, U, $, A));
|
|
8426
8428
|
}
|
|
8427
8429
|
function F() {
|
|
8428
8430
|
return k("div", {
|
|
@@ -8467,12 +8469,12 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8467
8469
|
var on, rn;
|
|
8468
8470
|
const a = ((on = e.rowOption) == null ? void 0 : on.height) || 28, o = b(20), i = b(e.columns), r = $a(e), {
|
|
8469
8471
|
idField: s
|
|
8470
|
-
} = r, l = b(), u = b(), p = b(), d = b(), c = b(), f = b([]), m = b(!1), g = b(((rn = e.rowOption) == null ? void 0 : rn.wrapContent) || !1), y = za(e, r), C = Aa(e, t), S =
|
|
8472
|
+
} = r, l = b(), u = b(), p = b(), d = b(), c = b(), f = b([]), m = b(!1), g = b(((rn = e.rowOption) == null ? void 0 : rn.wrapContent) || !1), y = za(e, r), C = Aa(e, t), S = Va(e), {
|
|
8471
8473
|
collapseField: D
|
|
8472
8474
|
} = S, {
|
|
8473
8475
|
showLoading: M,
|
|
8474
8476
|
renderLoading: v
|
|
8475
|
-
} =
|
|
8477
|
+
} = Ha(e, l), h = Wa(e, /* @__PURE__ */ new Map(), C, S, r), {
|
|
8476
8478
|
dataView: T
|
|
8477
8479
|
} = h, B = qa(e, h, r, f, t), {
|
|
8478
8480
|
showSelection: N,
|
|
@@ -8481,13 +8483,13 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8481
8483
|
shouldRenderPagination: P
|
|
8482
8484
|
} = x, {
|
|
8483
8485
|
containerStyleObject: $
|
|
8484
|
-
} =
|
|
8486
|
+
} = Ua(e), U = Ya(e), {
|
|
8485
8487
|
applyCommands: I
|
|
8486
|
-
} =
|
|
8488
|
+
} = U;
|
|
8487
8489
|
I(i);
|
|
8488
8490
|
const {
|
|
8489
8491
|
applyColumnSetting: A,
|
|
8490
|
-
removeColumnSetting:
|
|
8492
|
+
removeColumnSetting: Y
|
|
8491
8493
|
} = Xa(e);
|
|
8492
8494
|
e.showSetting && A(i);
|
|
8493
8495
|
const W = Ja(e, t), te = Qa(e), {
|
|
@@ -8507,9 +8509,9 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8507
8509
|
viewPortWidth: Te,
|
|
8508
8510
|
resetScroll: $e,
|
|
8509
8511
|
updateVisibleRowsOnLatestVisibleScope: ut
|
|
8510
|
-
} = le,
|
|
8512
|
+
} = le, Ue = so(e, ge, u, Te, oe), {
|
|
8511
8513
|
calculateColumnsSize: Ee
|
|
8512
|
-
} =
|
|
8514
|
+
} = Ue, ze = uo(), ot = co(u, c, h, ze, le), it = fo(e, t, W, h, oe, y, le), R = j(() => {
|
|
8513
8515
|
const q = {
|
|
8514
8516
|
"fv-grid": !0,
|
|
8515
8517
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -8527,7 +8529,7 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8527
8529
|
renderGridHeader: ce,
|
|
8528
8530
|
renderGridColumnResizeOverlay: Pe,
|
|
8529
8531
|
shouldShowHeader: Pt
|
|
8530
|
-
} = po(e, t, u, d, c, W, h, it, ot, C, ze,
|
|
8532
|
+
} = po(e, t, u, d, c, W, h, it, ot, C, ze, Ue, oe, B, _e, te, le, Te, f), {
|
|
8531
8533
|
renderDataGridSidebar: Nt
|
|
8532
8534
|
} = mo(e, ue, B, _e, le), {
|
|
8533
8535
|
renderDisableMask: jt
|
|
@@ -8544,7 +8546,7 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8544
8546
|
}
|
|
8545
8547
|
}
|
|
8546
8548
|
he(() => {
|
|
8547
|
-
u.value && (o.value = Math.max(Math.ceil(u.value.clientHeight / a), o.value), f.value = Fe(0, w.value + 0 - 1), Ra(u.value, Lt), Ee(),
|
|
8549
|
+
u.value && (o.value = Math.max(Math.ceil(u.value.clientHeight / a), o.value), f.value = Fe(0, w.value + 0 - 1), Ra(u.value, Lt), Ee(), He(() => {
|
|
8548
8550
|
u.value && (Re.value = u.value.clientWidth), p.value && (Te.value = p.value.clientWidth, Le.value = p.value.clientHeight);
|
|
8549
8551
|
})), M.value && v();
|
|
8550
8552
|
}), gt(() => {
|
|
@@ -8569,11 +8571,11 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8569
8571
|
const q = ct();
|
|
8570
8572
|
h.insertNewChildDataItem(q), f.value = Fe(0, w.value + 0 - 1);
|
|
8571
8573
|
}
|
|
8572
|
-
function
|
|
8574
|
+
function Vt(q, X) {
|
|
8573
8575
|
const fe = f.value.find((Se) => Se.raw[s.value] === X), ye = fe ? fe.dataIndex - 1 : -1;
|
|
8574
8576
|
h.insertNewChildDataItems(q, ye);
|
|
8575
8577
|
}
|
|
8576
|
-
function
|
|
8578
|
+
function Ht() {
|
|
8577
8579
|
const q = ct(), X = F.getNextSelectableHierarchyItemId(q);
|
|
8578
8580
|
h.removeHierarchyDataItem(q), f.value = Fe(0, w.value + 0 - 1), X && F.selectItemById(X);
|
|
8579
8581
|
}
|
|
@@ -8586,13 +8588,13 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8586
8588
|
function E(q) {
|
|
8587
8589
|
ne.cancelEditingRow(q);
|
|
8588
8590
|
}
|
|
8589
|
-
function
|
|
8591
|
+
function V(q) {
|
|
8590
8592
|
q && (i.value = q, I(i), J(i.value), ve(h, te), Ee());
|
|
8591
8593
|
}
|
|
8592
8594
|
ee(() => e.columns, (q) => {
|
|
8593
|
-
|
|
8595
|
+
V(q);
|
|
8594
8596
|
});
|
|
8595
|
-
function
|
|
8597
|
+
function H(q, X) {
|
|
8596
8598
|
q && (h.load(q), h.reOrderVisibleIndex(), X != null && X.keepScrollPosition ? le.scrollTo(le.offsetY.value) : $e());
|
|
8597
8599
|
}
|
|
8598
8600
|
function _(q) {
|
|
@@ -8634,11 +8636,11 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8634
8636
|
}), fe) {
|
|
8635
8637
|
const {
|
|
8636
8638
|
collapseField: pe,
|
|
8637
|
-
disabledField:
|
|
8639
|
+
disabledField: Ye,
|
|
8638
8640
|
checkedField: Xe,
|
|
8639
8641
|
visibleField: Je
|
|
8640
8642
|
} = fe;
|
|
8641
|
-
pe && !Ne(X[pe]) && (ye.__fv_collapse__ = X[pe]), Xe && !Ne(X[Xe]) && (ye.__fv_checked__ = X[Xe]),
|
|
8643
|
+
pe && !Ne(X[pe]) && (ye.__fv_collapse__ = X[pe]), Xe && !Ne(X[Xe]) && (ye.__fv_checked__ = X[Xe]), Ye && !Ne(X[Ye]) && (ye.__fv_disabled__ = X[Ye]), Je && !Ne(X[Je]) && (ye.__fv_visible__ = X[Je]);
|
|
8642
8644
|
}
|
|
8643
8645
|
const Se = f.value.find((pe) => pe.raw[s.value] === q), ln = f.value.findIndex((pe) => pe.raw[s.value] === q);
|
|
8644
8646
|
if (Se) {
|
|
@@ -8647,11 +8649,11 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8647
8649
|
}), fe) {
|
|
8648
8650
|
const {
|
|
8649
8651
|
collapseField: pe,
|
|
8650
|
-
disabledField:
|
|
8652
|
+
disabledField: Ye,
|
|
8651
8653
|
checkedField: Xe,
|
|
8652
8654
|
visibleField: Je
|
|
8653
8655
|
} = fe;
|
|
8654
|
-
pe && !Ne(X[pe]) && (Se.collapse = X[pe]), Xe && !Ne(X[Xe]) && (Se.checked = X[Xe]),
|
|
8656
|
+
pe && !Ne(X[pe]) && (Se.collapse = X[pe]), Xe && !Ne(X[Xe]) && (Se.checked = X[Xe]), Ye && !Ne(X[Ye]) && (Se.disabled = X[Ye]), Je && !Ne(X[Je]) && (Se.visible = X[Je]);
|
|
8655
8657
|
}
|
|
8656
8658
|
f.value = [...f.value.slice(0, ln), Se, ...f.value.slice(ln + 1)], h.updateSummary();
|
|
8657
8659
|
}
|
|
@@ -8668,7 +8670,7 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8668
8670
|
return D.value;
|
|
8669
8671
|
}
|
|
8670
8672
|
ee(() => e.showSetting, (q, X) => {
|
|
8671
|
-
q !== X && (q ? A(i) :
|
|
8673
|
+
q !== X && (q ? A(i) : Y(i), V(i.value));
|
|
8672
8674
|
});
|
|
8673
8675
|
function ra(q) {
|
|
8674
8676
|
return f.value.filter((X) => q.includes(X.raw[e.idField]));
|
|
@@ -8684,15 +8686,15 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8684
8686
|
activeRowById: K,
|
|
8685
8687
|
addNewDataItem: zt,
|
|
8686
8688
|
addNewChildDataItem: At,
|
|
8687
|
-
addChildrenToNode:
|
|
8689
|
+
addChildrenToNode: Vt,
|
|
8688
8690
|
collapseTo: $t,
|
|
8689
8691
|
expandTo: wt,
|
|
8690
|
-
removeDataItem:
|
|
8692
|
+
removeDataItem: Ht,
|
|
8691
8693
|
editDataItem: kt,
|
|
8692
8694
|
acceptDataItem: Wt,
|
|
8693
8695
|
cancelDataItem: E,
|
|
8694
|
-
updateColumns:
|
|
8695
|
-
updateDataSource:
|
|
8696
|
+
updateColumns: V,
|
|
8697
|
+
updateDataSource: H,
|
|
8696
8698
|
selectItemById: _,
|
|
8697
8699
|
selectItemByIds: xe,
|
|
8698
8700
|
getSelectedItems: be,
|
|
@@ -8753,7 +8755,7 @@ const Il = /* @__PURE__ */ new Map([
|
|
|
8753
8755
|
function Rl(e, t, n) {
|
|
8754
8756
|
return t;
|
|
8755
8757
|
}
|
|
8756
|
-
const Ll = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-design.gitee.io/step.schema.json", zl = "step", Al = "A Farris Component",
|
|
8758
|
+
const Ll = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-design.gitee.io/step.schema.json", zl = "step", Al = "A Farris Component", Vl = "object", Hl = {
|
|
8757
8759
|
id: {
|
|
8758
8760
|
description: "The unique identifier for step",
|
|
8759
8761
|
type: "string"
|
|
@@ -8823,10 +8825,10 @@ const Ll = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-
|
|
|
8823
8825
|
$id: $l,
|
|
8824
8826
|
title: zl,
|
|
8825
8827
|
description: Al,
|
|
8826
|
-
type:
|
|
8827
|
-
properties:
|
|
8828
|
+
type: Vl,
|
|
8829
|
+
properties: Hl,
|
|
8828
8830
|
required: Wl
|
|
8829
|
-
}, Gl = "step", _l = "A Farris Component",
|
|
8831
|
+
}, Gl = "step", _l = "A Farris Component", Ul = "object", Yl = {
|
|
8830
8832
|
basic: {
|
|
8831
8833
|
description: "Basic Infomation",
|
|
8832
8834
|
title: "基本信息",
|
|
@@ -8851,8 +8853,8 @@ const Ll = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-
|
|
|
8851
8853
|
}, Xl = {
|
|
8852
8854
|
title: Gl,
|
|
8853
8855
|
description: _l,
|
|
8854
|
-
type:
|
|
8855
|
-
categories:
|
|
8856
|
+
type: Ul,
|
|
8857
|
+
categories: Yl
|
|
8856
8858
|
}, Jl = {
|
|
8857
8859
|
/** 步骤条方向 */
|
|
8858
8860
|
direction: { type: String, default: "horizontal" },
|
|
@@ -9382,7 +9384,7 @@ function Ps(e, t, n, a) {
|
|
|
9382
9384
|
}, [s.value])]);
|
|
9383
9385
|
}
|
|
9384
9386
|
function Ns(e, t, n, a, o) {
|
|
9385
|
-
const i = b(e.type), r = b(e.buttons), s = b(e.exceptionInfo), l = b(o.ok || e.okButtonText), u = b(o.cancel || e.cancelButtonText), p = b(e.showCancelButton), d = b(e.showOkButton), c = j(() => !!(r.value && r.value.length)), f = j(() => s.value && s.value.
|
|
9387
|
+
const i = b(e.type), r = b(e.buttons), s = b(e.exceptionInfo), l = b(o.ok || e.okButtonText), u = b(o.cancel || e.cancelButtonText), p = b(e.showCancelButton), d = b(e.showOkButton), c = j(() => !!(r.value && r.value.length)), f = j(() => !!(s.value && s.value.detail)), m = j(() => !(r.value && r.value.length) && (d.value || p.value)), g = Ps(e, n, a, o);
|
|
9386
9388
|
l.value === "关闭" ? l.value = o.close : l.value === "知道了" && (l.value = o.exception.roger);
|
|
9387
9389
|
function y(S) {
|
|
9388
9390
|
i.value === "question" && t.emit("reject"), t.emit("close");
|
|
@@ -9482,7 +9484,7 @@ const Tt = /* @__PURE__ */ ie({
|
|
|
9482
9484
|
}
|
|
9483
9485
|
}), Oe = class Oe {
|
|
9484
9486
|
static show(t) {
|
|
9485
|
-
const n =
|
|
9487
|
+
const n = Ve({
|
|
9486
9488
|
...t
|
|
9487
9489
|
}), a = !1, o = n.type === "error" || n.type === "prompt", i = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", r = n.acceptCallback || (() => {
|
|
9488
9490
|
}), s = n.rejectCallback || (() => {
|
|
@@ -9509,7 +9511,7 @@ const Tt = /* @__PURE__ */ ie({
|
|
|
9509
9511
|
}), u == null ? void 0 : u.getCurrentModal();
|
|
9510
9512
|
}
|
|
9511
9513
|
static info(t, n) {
|
|
9512
|
-
const a =
|
|
9514
|
+
const a = Ve({
|
|
9513
9515
|
type: "info",
|
|
9514
9516
|
title: t,
|
|
9515
9517
|
detail: n,
|
|
@@ -9519,7 +9521,7 @@ const Tt = /* @__PURE__ */ ie({
|
|
|
9519
9521
|
Oe.show(a);
|
|
9520
9522
|
}
|
|
9521
9523
|
static warning(t, n) {
|
|
9522
|
-
const a =
|
|
9524
|
+
const a = Ve({
|
|
9523
9525
|
type: "warning",
|
|
9524
9526
|
title: t,
|
|
9525
9527
|
detail: n,
|
|
@@ -9529,7 +9531,7 @@ const Tt = /* @__PURE__ */ ie({
|
|
|
9529
9531
|
Oe.show(a);
|
|
9530
9532
|
}
|
|
9531
9533
|
static success(t, n) {
|
|
9532
|
-
const a =
|
|
9534
|
+
const a = Ve({
|
|
9533
9535
|
type: "success",
|
|
9534
9536
|
title: t,
|
|
9535
9537
|
detail: n,
|
|
@@ -9539,7 +9541,7 @@ const Tt = /* @__PURE__ */ ie({
|
|
|
9539
9541
|
Oe.show(a);
|
|
9540
9542
|
}
|
|
9541
9543
|
static error(t, n, a) {
|
|
9542
|
-
const o =
|
|
9544
|
+
const o = Ve({
|
|
9543
9545
|
width: 500,
|
|
9544
9546
|
type: "error",
|
|
9545
9547
|
okButtonText: "关闭",
|
|
@@ -9553,7 +9555,7 @@ const Tt = /* @__PURE__ */ ie({
|
|
|
9553
9555
|
Oe.show(o);
|
|
9554
9556
|
}
|
|
9555
9557
|
static prompt(t, n) {
|
|
9556
|
-
const a =
|
|
9558
|
+
const a = Ve({
|
|
9557
9559
|
type: "prompt",
|
|
9558
9560
|
title: t,
|
|
9559
9561
|
detail: n,
|
|
@@ -9563,7 +9565,7 @@ const Tt = /* @__PURE__ */ ie({
|
|
|
9563
9565
|
Oe.show(a);
|
|
9564
9566
|
}
|
|
9565
9567
|
static question(t, n, a, o) {
|
|
9566
|
-
const i =
|
|
9568
|
+
const i = Ve({
|
|
9567
9569
|
type: "question",
|
|
9568
9570
|
title: t,
|
|
9569
9571
|
detail: n,
|
|
@@ -9769,21 +9771,21 @@ function $s(e, t, n, a) {
|
|
|
9769
9771
|
if (!!t.slots.default) {
|
|
9770
9772
|
if (!f && !i.value && !await r())
|
|
9771
9773
|
return;
|
|
9772
|
-
i.value = !i.value, await
|
|
9774
|
+
i.value = !i.value, i.value && (await He(), l());
|
|
9773
9775
|
}
|
|
9774
9776
|
}
|
|
9775
9777
|
async function p(f = !1) {
|
|
9776
9778
|
if (!!t.slots.default) {
|
|
9777
9779
|
if (!f && !await r())
|
|
9778
9780
|
return;
|
|
9779
|
-
i.value = !0, await
|
|
9781
|
+
i.value = !0, await He(), l();
|
|
9780
9782
|
}
|
|
9781
9783
|
}
|
|
9782
9784
|
function d() {
|
|
9783
9785
|
i.value = !1;
|
|
9784
9786
|
}
|
|
9785
9787
|
function c() {
|
|
9786
|
-
i.value = !0,
|
|
9788
|
+
i.value = !0, He(() => {
|
|
9787
9789
|
l();
|
|
9788
9790
|
});
|
|
9789
9791
|
}
|
|
@@ -9890,7 +9892,7 @@ function As(e, t, n) {
|
|
|
9890
9892
|
onClick: f
|
|
9891
9893
|
}, null);
|
|
9892
9894
|
}
|
|
9893
|
-
function
|
|
9895
|
+
function Vs(e, t, n, a) {
|
|
9894
9896
|
const {
|
|
9895
9897
|
buttonGroupClass: o,
|
|
9896
9898
|
onClickButton: i,
|
|
@@ -9931,7 +9933,7 @@ function Hs(e, t, n, a) {
|
|
|
9931
9933
|
buttonHandleElement: d
|
|
9932
9934
|
};
|
|
9933
9935
|
}
|
|
9934
|
-
function
|
|
9936
|
+
function Hs(e, t, n) {
|
|
9935
9937
|
const a = b(e.popupMinWidth), {
|
|
9936
9938
|
hidePopup: o,
|
|
9937
9939
|
popoverRef: i
|
|
@@ -9962,7 +9964,7 @@ function Vs(e, t, n) {
|
|
|
9962
9964
|
}
|
|
9963
9965
|
const Ws = /* @__PURE__ */ ie({
|
|
9964
9966
|
name: "FButtonEdit",
|
|
9965
|
-
props:
|
|
9967
|
+
props: Yr,
|
|
9966
9968
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue"],
|
|
9967
9969
|
setup(e, t) {
|
|
9968
9970
|
const n = b(), a = b(e.customClass), o = b(e.modelValue), i = $s(e, t, n, o), {
|
|
@@ -9983,7 +9985,7 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
9983
9985
|
"f-cmp-inputgroup": !0,
|
|
9984
9986
|
"f-button-edit-nowrap": !e.wrapText
|
|
9985
9987
|
};
|
|
9986
|
-
return a.value && a.value.split(" ").reduce((
|
|
9988
|
+
return a.value && a.value.split(" ").reduce((U, I) => (U[I] = !0, U), $), $;
|
|
9987
9989
|
}), v = j(() => ({
|
|
9988
9990
|
overflow: e.wrapText ? "hidden" : ""
|
|
9989
9991
|
})), h = j(() => ({
|
|
@@ -9994,8 +9996,8 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
9994
9996
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
9995
9997
|
return 0;
|
|
9996
9998
|
let $ = 0;
|
|
9997
|
-
const
|
|
9998
|
-
return
|
|
9999
|
+
const U = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
10000
|
+
return U && U.length && ($ = U.map((I) => I.offsetTop).filter((I) => I > 20).length), $;
|
|
9999
10001
|
}
|
|
10000
10002
|
const B = b(T());
|
|
10001
10003
|
ka(() => {
|
|
@@ -10016,7 +10018,7 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10016
10018
|
const {
|
|
10017
10019
|
renderButtonGroup: F,
|
|
10018
10020
|
buttonHandleElement: O
|
|
10019
|
-
} =
|
|
10021
|
+
} = Vs(e, t, p, y), w = Hs(e, t, i), x = b(r.value), P = {
|
|
10020
10022
|
displayText: d,
|
|
10021
10023
|
commitValue: m,
|
|
10022
10024
|
elementRef: n,
|
|
@@ -10047,7 +10049,7 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10047
10049
|
}), Cn(() => {
|
|
10048
10050
|
var $;
|
|
10049
10051
|
window.onresize = null, ($ = window[Qe]) == null || $.delete(n.value);
|
|
10050
|
-
}), t.expose(P), ee(() => r.value, async ($,
|
|
10052
|
+
}), t.expose(P), ee(() => r.value, async ($, U) => {
|
|
10051
10053
|
if (D.value) {
|
|
10052
10054
|
x.value = $, D.value = !1;
|
|
10053
10055
|
return;
|
|
@@ -10057,13 +10059,13 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10057
10059
|
const I = await e.beforeClosePopup();
|
|
10058
10060
|
x.value = !I, (!I || e.readonly) && (r.value = !0);
|
|
10059
10061
|
} catch (I) {
|
|
10060
|
-
console.error("Error in beforeClosePopup:", I), x.value =
|
|
10062
|
+
console.error("Error in beforeClosePopup:", I), x.value = U, r.value = U;
|
|
10061
10063
|
}
|
|
10062
10064
|
return;
|
|
10063
10065
|
}
|
|
10064
10066
|
x.value = $;
|
|
10065
10067
|
}), () => {
|
|
10066
|
-
var $,
|
|
10068
|
+
var $, U;
|
|
10067
10069
|
return k(et, null, [k("div", Ot(t.attrs, {
|
|
10068
10070
|
ref: n,
|
|
10069
10071
|
class: M.value,
|
|
@@ -10075,10 +10077,10 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10075
10077
|
style: h.value,
|
|
10076
10078
|
onMouseenter: C,
|
|
10077
10079
|
onMouseleave: S
|
|
10078
|
-
}, [(
|
|
10080
|
+
}, [(U = ($ = t.slots).precontent) == null ? void 0 : U.call($), L(), F()])]), x.value && w()]);
|
|
10079
10081
|
};
|
|
10080
10082
|
}
|
|
10081
|
-
}), qs = "https://json-schema.org/draft/2020-12/schema", Gs = "https://farris-design.gitee.io/expression-editor.schema.json", _s = "expression-editor",
|
|
10083
|
+
}), qs = "https://json-schema.org/draft/2020-12/schema", Gs = "https://farris-design.gitee.io/expression-editor.schema.json", _s = "expression-editor", Us = "A Farris Expression Editor Component", Ys = "object", Xs = {
|
|
10082
10084
|
id: {
|
|
10083
10085
|
description: "The unique identifier for a Expression Editor",
|
|
10084
10086
|
type: "string"
|
|
@@ -10182,8 +10184,8 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10182
10184
|
$schema: qs,
|
|
10183
10185
|
$id: Gs,
|
|
10184
10186
|
title: _s,
|
|
10185
|
-
description:
|
|
10186
|
-
type:
|
|
10187
|
+
description: Us,
|
|
10188
|
+
type: Ys,
|
|
10187
10189
|
properties: Xs,
|
|
10188
10190
|
required: Js
|
|
10189
10191
|
}, oa = {
|
|
@@ -10283,7 +10285,7 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10283
10285
|
type: Boolean,
|
|
10284
10286
|
default: !1
|
|
10285
10287
|
}
|
|
10286
|
-
}, Zs = tt(oa, Qs),
|
|
10288
|
+
}, Zs = tt(oa, Qs), Yt = /* @__PURE__ */ ie({
|
|
10287
10289
|
name: "f-expression-textbox",
|
|
10288
10290
|
props: oa,
|
|
10289
10291
|
setup(e, t) {
|
|
@@ -10400,7 +10402,7 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10400
10402
|
}, {
|
|
10401
10403
|
default: () => [k("div", {
|
|
10402
10404
|
class: "h-100 d-flex flex-column"
|
|
10403
|
-
}, [k(
|
|
10405
|
+
}, [k(Ur, {
|
|
10404
10406
|
ref: l,
|
|
10405
10407
|
validateMessage: u.value,
|
|
10406
10408
|
showMessageType: e.showMessageType,
|
|
@@ -10418,17 +10420,17 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10418
10420
|
}, null)])]
|
|
10419
10421
|
});
|
|
10420
10422
|
}
|
|
10421
|
-
}),
|
|
10423
|
+
}), Vc = {
|
|
10422
10424
|
install(e) {
|
|
10423
|
-
e.component(
|
|
10425
|
+
e.component(Yt.name, Yt);
|
|
10424
10426
|
},
|
|
10425
10427
|
register(e, t, n, a) {
|
|
10426
|
-
e["expression-editor"] =
|
|
10428
|
+
e["expression-editor"] = Yt, t["expression-editor"] = Zs;
|
|
10427
10429
|
}
|
|
10428
10430
|
};
|
|
10429
10431
|
export {
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10432
|
+
Ur as ExpressionEditor,
|
|
10433
|
+
Yt as FExpressionTextbox,
|
|
10434
|
+
Vc as default,
|
|
10433
10435
|
ko as expressionEditorProps
|
|
10434
10436
|
};
|