@farris/ui-vue 1.6.0-beta.5 → 1.6.0-beta.7
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 +2 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +2 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/component/index.esm.js +2 -1
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +2 -1
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +2 -1
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2591 -2570
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +2 -1
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/discussion-editor/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +1 -1
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +63 -62
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +2 -1
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +2 -1
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +2 -1
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +2 -1
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +2 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +1 -1
- package/components/locale/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +106 -105
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +2 -1
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +2 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +2 -1
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +2 -1
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +276 -282
- package/components/pagination/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +103 -102
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +2 -1
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +2 -1
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +203 -208
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.esm.js +2 -1
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +2 -1
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2 -1
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +2 -1
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +103 -102
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +265 -261
- package/components/transfer/index.umd.cjs +3 -3
- package/components/tree-grid/index.esm.js +2 -1
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +1146 -1134
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +2 -1
- package/components/video/index.umd.cjs +1 -1
- package/farris.all.esm.js +12256 -10746
- package/farris.all.umd.cjs +21 -21
- package/package.json +1 -1
- package/types/calendar/src/components/header/header.component.d.ts +2 -2
- package/types/chs.d.ts +494 -0
- package/types/cht.d.ts +490 -0
- package/types/data-view/composition/types.d.ts +2 -0
- package/types/en.d.ts +494 -0
- package/types/filter-bar/index.d.ts +3 -3
- package/types/filter-bar/src/components/filter-item-condition/filter-item-condition.component.d.ts +1 -1
- package/types/filter-bar/src/designer/filter-bar.design.component.d.ts +2 -2
- package/types/filter-bar/src/filter-bar.component.d.ts +1 -1
- package/types/index.d.ts +1479 -1
- package/types/order/src/designer/order.design.component.d.ts +3 -3
- package/types/order/src/order.component.d.ts +3 -3
- package/types/schema-selector/src/schema-selector.component.d.ts +1 -1
- package/components/list-view/index.css +0 -1
- package/components/list-view/index.esm.js +0 -11592
- package/components/list-view/index.umd.cjs +0 -20
- package/components/list-view/package.json +0 -8
- package/components/list-view/style.js +0 -2
- package/components/response-layout/index.css +0 -1
- package/components/response-layout/index.esm.js +0 -11550
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout/package.json +0 -8
- package/designer/button-edit/index.css +0 -1
- package/designer/button-edit/index.esm.js +0 -11121
- package/designer/button-edit/index.umd.cjs +0 -1
- package/designer/checkbox/index.esm.js +0 -250
- package/designer/checkbox/index.umd.cjs +0 -1
- package/designer/checkbox-group/index.esm.js +0 -377
- package/designer/checkbox-group/index.umd.cjs +0 -1
- package/designer/data-grid/index.css +0 -1
- package/designer/data-grid/index.esm.js +0 -17844
- package/designer/data-grid/index.umd.cjs +0 -23
- package/designer/drawer/index.css +0 -1
- package/designer/drawer/index.esm.js +0 -2228
- package/designer/drawer/index.umd.cjs +0 -6
- package/designer/farris-designer.all.esm.js +0 -26348
- package/designer/farris-designer.all.umd.cjs +0 -32
- package/designer/index.css +0 -1
- package/designer/input-group/index.esm.js +0 -1035
- package/designer/input-group/index.umd.cjs +0 -1
- package/designer/radio-group/index.css +0 -1
- package/designer/radio-group/index.esm.js +0 -12471
- package/designer/radio-group/index.umd.cjs +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
var tr = Object.defineProperty;
|
|
2
2
|
var nr = (t, e, n) => e in t ? tr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var ee = (t, e, n) => nr(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { ref as E, computed as z, watch as
|
|
5
|
-
import { LocaleService as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
4
|
+
import { ref as E, computed as z, watch as Be, createVNode as R, isVNode as xn, Fragment as Vt, createTextVNode as Tt, defineComponent as Ke, reactive as ht, createApp as Tn, onUnmounted as Xt, onMounted as Ot, Transition as Fn, mergeProps as Et, onBeforeUnmount as En, withDirectives as or, resolveDirective as rr, nextTick as jt, inject as bt, provide as ir, triggerRef as ar, onBeforeMount as lr, Teleport as sr, shallowRef as ur, render as Zt, h as cr, cloneVNode as dr } from "vue";
|
|
5
|
+
import { LocaleService as $t } from "../locale/index.esm.js";
|
|
6
|
+
import { createPropsResolver as an, getSchemaByTypeForDesigner as fr, resolveAppearance as pr } from "../dynamic-resolver/index.esm.js";
|
|
7
|
+
import { cloneDeep as Ct, isPlainObject as mn, isUndefined as ut, throttle as mr } from "lodash-es";
|
|
8
|
+
import { useIdentify as kn, useGroupData as vr, useFilter as On, useHierarchy as In, useLoading as hr, useDataView as Mn, useSelection as Bn, useSelectHierarchyItem as gr, useDataViewContainerStyle as Vn, useCommandColumn as yr, useColumn as Nn, useSort as br, useGroupColumn as Rn, useRow as Pn, useEdit as Dn, useVisualDataBound as jn, useVisualDataCell as $n, useVisualDataRow as Ln, useVisualData as Hn, useCellPosition as Wn, useSidebar as An, useVirtualScroll as zn, useFitColumn as Gn, useFilterHistory as Cr, useColumnFilter as wr, useDragColumn as _r, getColumnHeader as Sr, getSidebar as qn, getDisableMask as xr, getHorizontalScrollbar as Un, getVerticalScrollbar as Yn, getEmpty as Xn } from "../data-view/index.esm.js";
|
|
9
|
+
import { useI18n as pt } from "vue-i18n";
|
|
10
|
+
import Tr from "../modal/index.esm.js";
|
|
11
|
+
import Fr from "../transfer/index.esm.js";
|
|
12
|
+
import Er from "../tabs/index.esm.js";
|
|
13
|
+
import { FCheckbox as kr } from "../checkbox/index.esm.js";
|
|
14
|
+
import { useCommonUtils as Jt, useGuid as Or, useNumberFormat as Jn, resolveField as Ze, useDateFormat as ln, FormSchemaEntityField$Type as vn, FormSchemaEntityFieldTypeName as hn, getCustomClass as Kt, withInstall as Qn, useArrayProcessor as Zn, setFieldValue as tn } from "../common/index.esm.js";
|
|
15
|
+
import Ir from "../filter-bar/index.esm.js";
|
|
15
16
|
import "../tooltip/index.esm.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import { getSchemaByTypeForDesigner as Rr, resolveAppearance as Pr, createPropsResolver as Zn } from "../dynamic-resolver/index.esm.js";
|
|
17
|
+
import Mr from "../pagination/index.esm.js";
|
|
18
|
+
import gn from "../button/index.esm.js";
|
|
19
|
+
import Br from "../search-box/index.esm.js";
|
|
20
|
+
import Vr from "../tags/index.esm.js";
|
|
21
|
+
import Nr, { FDynamicFormGroup as Rr, FDynamicFormInput as Pr } from "../dynamic-form/index.esm.js";
|
|
22
22
|
import "../designer-canvas/index.esm.js";
|
|
23
23
|
import "../property-panel/index.esm.js";
|
|
24
24
|
import Dr from "../accordion/index.esm.js";
|
|
25
|
-
import
|
|
26
|
-
import
|
|
25
|
+
import jr from "../avatar/index.esm.js";
|
|
26
|
+
import $r from "../../designer/button-edit/index.esm.js";
|
|
27
27
|
import Lr from "../button-group/index.esm.js";
|
|
28
28
|
import Hr from "../calendar/index.esm.js";
|
|
29
29
|
import Wr from "../capsule/index.esm.js";
|
|
30
|
-
import
|
|
31
|
-
import
|
|
30
|
+
import yn from "../../designer/checkbox/index.esm.js";
|
|
31
|
+
import bn from "../../designer/checkbox-group/index.esm.js";
|
|
32
32
|
import nn from "../combo-list/index.esm.js";
|
|
33
33
|
import Ar from "../combo-tree/index.esm.js";
|
|
34
34
|
import zr from "../component/index.esm.js";
|
|
@@ -79,8 +79,8 @@ import Ni from "../filter-condition-editor/index.esm.js";
|
|
|
79
79
|
import Ri from "../fieldset/index.esm.js";
|
|
80
80
|
import Pi from "../sort-condition-editor/index.esm.js";
|
|
81
81
|
import Di from "../menu-lookup/index.esm.js";
|
|
82
|
-
import
|
|
83
|
-
import
|
|
82
|
+
import ji from "../../designer/drawer/index.esm.js";
|
|
83
|
+
import $i from "../json-editor/index.esm.js";
|
|
84
84
|
import Li from "../property-editor/index.esm.js";
|
|
85
85
|
import Hi from "../expression-editor/index.esm.js";
|
|
86
86
|
import Wi from "../code-editor/index.esm.js";
|
|
@@ -88,12 +88,12 @@ import Ai from "../html-template/index.esm.js";
|
|
|
88
88
|
import zi from "../collection-property-editor/index.esm.js";
|
|
89
89
|
import Gi from "../external-container/index.esm.js";
|
|
90
90
|
import qi from "../language-textbox/index.esm.js";
|
|
91
|
-
import { useResizeObserver as
|
|
91
|
+
import { useResizeObserver as sn } from "@vueuse/core";
|
|
92
92
|
import "../notify/index.esm.js";
|
|
93
93
|
function Kn(t, e) {
|
|
94
94
|
let n;
|
|
95
95
|
function o(l) {
|
|
96
|
-
const { properties: c, title: v, ignore: f } = l, F = f && Array.isArray(f), _ = Object.keys(c).reduce((y, w) => ((!F || !f.find((m) => m === w)) && (y[w] = c[w].type === "object" && c[w].properties ? o(c[w]) :
|
|
96
|
+
const { properties: c, title: v, ignore: f } = l, F = f && Array.isArray(f), _ = Object.keys(c).reduce((y, w) => ((!F || !f.find((m) => m === w)) && (y[w] = c[w].type === "object" && c[w].properties ? o(c[w]) : Ct(c[w].default)), y), {});
|
|
97
97
|
if (v && (!F || !f.find((y) => y === "id"))) {
|
|
98
98
|
const y = v.toLowerCase().replace(/-/g, "_");
|
|
99
99
|
_.id = `${y}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -103,7 +103,7 @@ function Kn(t, e) {
|
|
|
103
103
|
function i(l) {
|
|
104
104
|
const { properties: c, title: v, required: f } = l;
|
|
105
105
|
if (f && Array.isArray(f)) {
|
|
106
|
-
const F = f.reduce((_, y) => (_[y] = c[y].type === "object" && c[y].properties ? o(c[y]) :
|
|
106
|
+
const F = f.reduce((_, y) => (_[y] = c[y].type === "object" && c[y].properties ? o(c[y]) : Ct(c[y].default), _), {});
|
|
107
107
|
if (v && f.find((_) => _ === "id")) {
|
|
108
108
|
const _ = v.toLowerCase().replace(/-/g, "_");
|
|
109
109
|
F.id = `${_}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -125,7 +125,7 @@ function Kn(t, e) {
|
|
|
125
125
|
}
|
|
126
126
|
function r(l, c) {
|
|
127
127
|
const v = o(c);
|
|
128
|
-
return Object.keys(v).reduce((f, F) => (Object.prototype.hasOwnProperty.call(l, F) && (f[F] &&
|
|
128
|
+
return Object.keys(v).reduce((f, F) => (Object.prototype.hasOwnProperty.call(l, F) && (f[F] && mn(f[F]) && mn(l[F] || !l[F]) ? Object.assign(f[F], l[F] || {}) : f[F] = l[F]), f), v), v;
|
|
129
129
|
}
|
|
130
130
|
function s(l, c) {
|
|
131
131
|
return Object.keys(l).filter((f) => l[f] != null).reduce((f, F) => {
|
|
@@ -465,22 +465,22 @@ function no(t, e, n) {
|
|
|
465
465
|
return Object.keys(f).map((g) => {
|
|
466
466
|
const h = E(1), T = g, C = f[g], k = Object.keys(C), S = C.title, M = C.type, V = i.get(M) || { type: "input-group", enableClear: !1 }, O = C.editor ? Object.assign({}, V, C.editor) : Object.assign({}, V), B = s(k, C, F), L = u(k, C, F);
|
|
467
467
|
O.readonly = O.readonly === void 0 ? L() : O.readonly;
|
|
468
|
-
const X = C.type === "cascade" ? p(C.properties, F, _, y, w, m, x) : [],
|
|
468
|
+
const X = C.type === "cascade" ? p(C.properties, F, _, y, w, m, x) : [], $ = !0;
|
|
469
469
|
let D = d(C, x);
|
|
470
470
|
const P = z({
|
|
471
471
|
get() {
|
|
472
472
|
if (h.value) {
|
|
473
473
|
if (["class", "style"].find((G) => G === T) && !D && (D = o.get("/converter/appearance.converter") || null), D && D.convertFrom)
|
|
474
474
|
return D.convertFrom(_, g, w, m);
|
|
475
|
-
const
|
|
476
|
-
return Object.prototype.hasOwnProperty.call(C, "defaultValue") && (
|
|
475
|
+
const ae = _[g];
|
|
476
|
+
return Object.prototype.hasOwnProperty.call(C, "defaultValue") && (ae === void 0 || typeof ae == "string" && ae === "") ? C.type === "boolean" ? C.defaultValue : C.defaultValue || "" : ae;
|
|
477
477
|
}
|
|
478
478
|
return null;
|
|
479
479
|
},
|
|
480
|
-
set(
|
|
481
|
-
h.value += 1, D && D.convertTo ? (D.convertTo(y, g,
|
|
480
|
+
set(ae) {
|
|
481
|
+
h.value += 1, D && D.convertTo ? (D.convertTo(y, g, ae, w, m), D.convertTo(_, g, ae, w, m)) : (y[g] = ae, _[g] = ae);
|
|
482
482
|
}
|
|
483
|
-
}), { refreshPanelAfterChanged: I, description:
|
|
483
|
+
}), { refreshPanelAfterChanged: I, description: j, isExpand: A, parentPropertyID: J } = C, q = { propertyID: T, propertyName: S, propertyType: M, propertyValue: P, editor: O, visible: B, readonly: L, cascadeConfig: X, hideCascadeTitle: $, refreshPanelAfterChanged: I, description: j, isExpand: A, parentPropertyID: J };
|
|
484
484
|
return F[T] = q, q;
|
|
485
485
|
});
|
|
486
486
|
}
|
|
@@ -530,7 +530,7 @@ const oo = {}, ro = {};
|
|
|
530
530
|
no(oo, ro, Ui);
|
|
531
531
|
const io = {}, ao = {}, { getSchemaByType: Bd, resolveSchemaWithDefaultValue: ma, resolveSchemaToProps: Vd, mappingSchemaToProps: Nd, setDesignerContext: Rd } = Kn(io, ao), lo = {}, so = {};
|
|
532
532
|
no(lo, so, ma);
|
|
533
|
-
function
|
|
533
|
+
function Nt(t, e, n = /* @__PURE__ */ new Map(), o = (r, s, u, d) => s, i = {}, a = (r) => r) {
|
|
534
534
|
return eo[e.title] = e, to[e.title] = o, oo[e.title] = i, ro[e.title] = a, io[e.title] = e, ao[e.title] = o, lo[e.title] = i, so[e.title] = a, (r = {}, s = !0) => {
|
|
535
535
|
if (!s)
|
|
536
536
|
return Xi(r, n);
|
|
@@ -690,7 +690,7 @@ const Ca = "tree-view", wa = "A Farris Component", _a = "object", Sa = {
|
|
|
690
690
|
resizeColumn: { type: Boolean, default: !0 },
|
|
691
691
|
/** 双击表头列自适应内容宽度 */
|
|
692
692
|
resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
|
|
693
|
-
},
|
|
693
|
+
}, un = {
|
|
694
694
|
/** 列集合 */
|
|
695
695
|
columns: {
|
|
696
696
|
type: Array,
|
|
@@ -734,7 +734,7 @@ const Ca = "tree-view", wa = "A Farris Component", _a = "object", Sa = {
|
|
|
734
734
|
default: {
|
|
735
735
|
enable: !1,
|
|
736
736
|
width: 32,
|
|
737
|
-
heading:
|
|
737
|
+
heading: $t.getLocaleValue("datagrid.lineNumberTitle")
|
|
738
738
|
}
|
|
739
739
|
},
|
|
740
740
|
/** 选择配置 */
|
|
@@ -791,9 +791,11 @@ const Ca = "tree-view", wa = "A Farris Component", _a = "object", Sa = {
|
|
|
791
791
|
/** 是否出现省略号 */
|
|
792
792
|
showEllipsis: { type: Boolean, default: !1 },
|
|
793
793
|
/** 自动高度 **/
|
|
794
|
-
autoHeight: { type: Boolean, default: !1 }
|
|
795
|
-
|
|
796
|
-
|
|
794
|
+
autoHeight: { type: Boolean, default: !1 },
|
|
795
|
+
/** async loading data */
|
|
796
|
+
loadData: { type: Function }
|
|
797
|
+
}, uo = an(un, Ba, ya, ba, xa);
|
|
798
|
+
var ot = /* @__PURE__ */ ((t) => (t[t.readonly = 0] = "readonly", t[t.editable = 1] = "editable", t[t.editing = 2] = "editing", t))(ot || {}), ft = /* @__PURE__ */ ((t) => (t[t.initial = 0] = "initial", t[t.editing = 1] = "editing", t))(ft || {}), Rt = /* @__PURE__ */ ((t) => (t[t.data = 0] = "data", t[t.group = 1] = "group", t[t.summary = 2] = "summary", t))(Rt || {}), Qe = /* @__PURE__ */ ((t) => (t[t.none = 0] = "none", t[t.filterable = 1] = "filterable", t[t.sortable = 2] = "sortable", t[t.filtered = 4] = "filtered", t[t.sorted = 8] = "sorted", t[t.ascending = 16] = "ascending", t[t.descending = 32] = "descending", t))(Qe || {}), ct = /* @__PURE__ */ ((t) => (t.DATE = "date", t.DATE_TIME = "datetime", t.NUMBER = "number", t.ENUM = "enum", t.IMAGE = "image", t.BOOLEAN = "boolean", t.BOOLEAN2 = "boolean2", t.TIMEAGO = "timeago", t.NONE = "none", t.CUSTOM = "custom", t.MULTI_LINGUAL = "multilingual", t))(ct || {});
|
|
797
799
|
function co(t, e) {
|
|
798
800
|
var v;
|
|
799
801
|
const n = String(Date.now()), o = ((v = t.rowOption) == null ? void 0 : v.height) || 28, i = E(e.value.primaryColumnsWidth);
|
|
@@ -857,7 +859,7 @@ function co(t, e) {
|
|
|
857
859
|
height: `${F}`
|
|
858
860
|
};
|
|
859
861
|
}
|
|
860
|
-
return
|
|
862
|
+
return Be(e, () => {
|
|
861
863
|
i.value = e.value.primaryColumnsWidth;
|
|
862
864
|
}), {
|
|
863
865
|
calculateCellPositionInRow: a,
|
|
@@ -894,7 +896,7 @@ function Va(t, e, n) {
|
|
|
894
896
|
}), l;
|
|
895
897
|
}
|
|
896
898
|
function d(p) {
|
|
897
|
-
const l = p.raw.__fv_parent_index__ === void 0 || p.raw.__fv_parent_index__ === -1, v = l ? 0 : 8, f = 0, F = p.raw[o.value], _ = `${p.layer * 10 + p.layer * v + f}px`, y = p.visible ||
|
|
899
|
+
const l = p.raw.__fv_parent_index__ === void 0 || p.raw.__fv_parent_index__ === -1, v = l ? 0 : 8, f = 0, F = p.raw[o.value], _ = `${p.layer * 10 + p.layer * v + f}px`, y = p.visible || ut(p.visible) ? {
|
|
898
900
|
paddingLeft: `calc(${_})`,
|
|
899
901
|
// paddingLeft,
|
|
900
902
|
background: s(p.index),
|
|
@@ -989,28 +991,28 @@ function fo(t, e, n, o, i, a, r, s, u, d, p, l, c) {
|
|
|
989
991
|
cellKey: B,
|
|
990
992
|
cellPosition: L,
|
|
991
993
|
rowKey: X,
|
|
992
|
-
rowPosition:
|
|
994
|
+
rowPosition: $
|
|
993
995
|
} = co(t, n), {
|
|
994
996
|
cellContentClass: D,
|
|
995
997
|
cellContentPosition: P,
|
|
996
998
|
cellContentClassWithEllipsis: I
|
|
997
999
|
} = Pa(), {
|
|
998
|
-
hierarchyCellContentStyle:
|
|
1000
|
+
hierarchyCellContentStyle: j
|
|
999
1001
|
} = Va(t, o, r), {
|
|
1000
1002
|
treeNodeIconsClass: A
|
|
1001
1003
|
} = Na(t, C, k);
|
|
1002
1004
|
function J(ne, ve) {
|
|
1003
|
-
const
|
|
1005
|
+
const Ve = ne.raw[k.value];
|
|
1004
1006
|
return {
|
|
1005
|
-
"fv-tree-node-toggle":
|
|
1006
|
-
"fv-tree-node-toggle-minus":
|
|
1007
|
+
"fv-tree-node-toggle": Ve && ne.collapse,
|
|
1008
|
+
"fv-tree-node-toggle-minus": Ve && !ne.collapse
|
|
1007
1009
|
};
|
|
1008
1010
|
}
|
|
1009
1011
|
function q(ne) {
|
|
1010
1012
|
return ne.collapse && t.loadData ? t.loadData(ne) : Promise.resolve();
|
|
1011
1013
|
}
|
|
1012
|
-
function
|
|
1013
|
-
return (ne || []).some((ve) =>
|
|
1014
|
+
function ae(ne) {
|
|
1015
|
+
return (ne || []).some((ve) => xn(ve) ? !(ve.type === Comment || ve.type === Vt && !ae(ve.children)) : !0) ? ne : null;
|
|
1014
1016
|
}
|
|
1015
1017
|
function G(ne, ve) {
|
|
1016
1018
|
ne.stopPropagation(), q(ve).then(() => {
|
|
@@ -1023,7 +1025,7 @@ function fo(t, e, n, o, i, a, r, s, u, d, p, l, c) {
|
|
|
1023
1025
|
function W(ne, ve) {
|
|
1024
1026
|
return R("div", {
|
|
1025
1027
|
class: J(ne),
|
|
1026
|
-
onClick: (
|
|
1028
|
+
onClick: (Ve) => G(Ve, ne),
|
|
1027
1029
|
onDblclick: H
|
|
1028
1030
|
}, null);
|
|
1029
1031
|
}
|
|
@@ -1033,26 +1035,26 @@ function fo(t, e, n, o, i, a, r, s, u, d, p, l, c) {
|
|
|
1033
1035
|
class: A(ne, ve)
|
|
1034
1036
|
}, null);
|
|
1035
1037
|
}
|
|
1036
|
-
function
|
|
1038
|
+
function de(ne) {
|
|
1037
1039
|
x.value ? (ne.checked ? b(ne) : g(ne), O(ne)) : h(ne), T();
|
|
1038
1040
|
}
|
|
1039
|
-
function
|
|
1040
|
-
return S.value && R(
|
|
1041
|
+
function Te(ne, ve) {
|
|
1042
|
+
return S.value && R(kr, {
|
|
1041
1043
|
id: "checkbox_for_" + B(ne, ve.index),
|
|
1042
1044
|
indeterminate: ne.indeterminate,
|
|
1043
1045
|
disabled: ne.disabled,
|
|
1044
1046
|
checked: ne.checked,
|
|
1045
|
-
"onUpdate:checked": (
|
|
1046
|
-
onChange: () =>
|
|
1047
|
+
"onUpdate:checked": (Ve) => ne.checked = Ve,
|
|
1048
|
+
onChange: () => de(ne)
|
|
1047
1049
|
}, null);
|
|
1048
1050
|
}
|
|
1049
1051
|
function be(ne, ve) {
|
|
1050
|
-
var
|
|
1052
|
+
var Ve, Le;
|
|
1051
1053
|
return R("div", {
|
|
1052
1054
|
class: I(ne)
|
|
1053
1055
|
}, [R("span", {
|
|
1054
1056
|
style: "user-select:none"
|
|
1055
|
-
}, [(
|
|
1057
|
+
}, [(Le = (Ve = e.slots).cellTemplate) == null ? void 0 : Le.call(Ve, {
|
|
1056
1058
|
cell: ne,
|
|
1057
1059
|
row: ve
|
|
1058
1060
|
})])]);
|
|
@@ -1064,7 +1066,7 @@ function fo(t, e, n, o, i, a, r, s, u, d, p, l, c) {
|
|
|
1064
1066
|
style: "user-select:none"
|
|
1065
1067
|
}, [ne.formatter(ne, ve)])]);
|
|
1066
1068
|
}
|
|
1067
|
-
function
|
|
1069
|
+
function ke(ne) {
|
|
1068
1070
|
const ve = ne.data !== null && ne.data !== void 0 ? ne.data.toString() : ne.data;
|
|
1069
1071
|
return ne.showTips ? R("div", {
|
|
1070
1072
|
class: I(ne)
|
|
@@ -1081,57 +1083,57 @@ function fo(t, e, n, o, i, a, r, s, u, d, p, l, c) {
|
|
|
1081
1083
|
return ne.getEditor(ne);
|
|
1082
1084
|
}
|
|
1083
1085
|
function oe(ne, ve) {
|
|
1084
|
-
return e.slots.cellTemplate &&
|
|
1086
|
+
return e.slots.cellTemplate && ae(e.slots.cellTemplate({
|
|
1085
1087
|
cell: ve,
|
|
1086
1088
|
row: ne
|
|
1087
|
-
})) ? be(ve, ne) : ve.mode ===
|
|
1089
|
+
})) ? be(ve, ne) : ve.mode === ot.editing ? Y(ve) : ve.formatter ? ye(ve, ne) : ke(ve);
|
|
1088
1090
|
}
|
|
1089
|
-
function
|
|
1090
|
-
const
|
|
1091
|
+
function ue(ne, ve, Ve) {
|
|
1092
|
+
const Le = j(ne);
|
|
1091
1093
|
return R("div", {
|
|
1092
1094
|
ref: ve.setRef,
|
|
1093
1095
|
key: B(ne, ve.index),
|
|
1094
1096
|
class: "fv-grid-hierarchy-cell",
|
|
1095
|
-
style: L(ve,
|
|
1097
|
+
style: L(ve, Ve)
|
|
1096
1098
|
}, [R("div", {
|
|
1097
1099
|
class: D(ve),
|
|
1098
|
-
style:
|
|
1099
|
-
}, [W(ne), Z(ne, ve),
|
|
1100
|
+
style: Le
|
|
1101
|
+
}, [W(ne), Z(ne, ve), Te(ne, ve), oe(ne, ve)])]);
|
|
1100
1102
|
}
|
|
1101
|
-
function
|
|
1103
|
+
function _e(ne, ve, Ve) {
|
|
1102
1104
|
return R("div", {
|
|
1103
1105
|
ref: ve.setRef,
|
|
1104
1106
|
key: B(ne, ve.index),
|
|
1105
1107
|
class: f(ve),
|
|
1106
|
-
style: L(ve,
|
|
1107
|
-
onClick: (
|
|
1108
|
+
style: L(ve, Ve),
|
|
1109
|
+
onClick: (Le) => v(Le, ve, ne, ve.column)
|
|
1108
1110
|
}, [R("div", {
|
|
1109
1111
|
class: D(ve)
|
|
1110
1112
|
}, [oe(ne, ve)])]);
|
|
1111
1113
|
}
|
|
1112
|
-
function
|
|
1114
|
+
function Se(ne, ve) {
|
|
1113
1115
|
return ve === "left" && n.value.leftColumns.length > 0 && n.value.leftColumns[0].field === ne.field || ve === "primary" && n.value.primaryColumns.length > 0 && n.value.primaryColumns[0].field === ne.field;
|
|
1114
1116
|
}
|
|
1115
|
-
function
|
|
1117
|
+
function He(ne, ve) {
|
|
1116
1118
|
e.emit("dblclickNode", {
|
|
1117
1119
|
$event: ne,
|
|
1118
1120
|
node: ve.raw
|
|
1119
1121
|
});
|
|
1120
1122
|
}
|
|
1121
|
-
function
|
|
1123
|
+
function qe(ne, ve, Ve = "primary", Le) {
|
|
1122
1124
|
return R("div", {
|
|
1123
1125
|
ref: ne.setRef,
|
|
1124
1126
|
key: X(ne),
|
|
1125
|
-
class: _(ne,
|
|
1126
|
-
style:
|
|
1127
|
-
onMouseover: (
|
|
1128
|
-
onMouseout: (
|
|
1129
|
-
onClick: (
|
|
1130
|
-
onDblclick: (
|
|
1131
|
-
}, [Object.values(ne.data).filter((
|
|
1127
|
+
class: _(ne, Le),
|
|
1128
|
+
style: $(ne),
|
|
1129
|
+
onMouseover: (Ne) => w(Ne, ne),
|
|
1130
|
+
onMouseout: (Ne) => m(Ne, ne),
|
|
1131
|
+
onClick: (Ne) => y(Ne, ne),
|
|
1132
|
+
onDblclick: (Ne) => He(Ne, ne)
|
|
1133
|
+
}, [Object.values(ne.data).filter((Ne) => ve[Ne.field] && Ne.rowSpan === 1).map((Ne) => Se(Ne, Ve) ? ue(ne, Ne, ve) : _e(ne, Ne, ve))]);
|
|
1132
1134
|
}
|
|
1133
1135
|
return {
|
|
1134
|
-
renderDataRow:
|
|
1136
|
+
renderDataRow: qe
|
|
1135
1137
|
};
|
|
1136
1138
|
}
|
|
1137
1139
|
function Da(t, e, n) {
|
|
@@ -1153,18 +1155,18 @@ function Da(t, e, n) {
|
|
|
1153
1155
|
renderHorizontalScrollbar: r
|
|
1154
1156
|
};
|
|
1155
1157
|
}
|
|
1156
|
-
function
|
|
1158
|
+
function ja(t) {
|
|
1157
1159
|
const {
|
|
1158
1160
|
t: e
|
|
1159
|
-
} =
|
|
1161
|
+
} = pt();
|
|
1160
1162
|
function n(r, s) {
|
|
1161
1163
|
switch (r.command) {
|
|
1162
1164
|
case "edit":
|
|
1163
1165
|
case "remove":
|
|
1164
|
-
return s.status ===
|
|
1166
|
+
return s.status === ft.initial;
|
|
1165
1167
|
case "accept":
|
|
1166
1168
|
case "cancel":
|
|
1167
|
-
return s.status ===
|
|
1169
|
+
return s.status === ft.editing;
|
|
1168
1170
|
default:
|
|
1169
1171
|
return !r.hidden;
|
|
1170
1172
|
}
|
|
@@ -1173,11 +1175,11 @@ function $a(t) {
|
|
|
1173
1175
|
var p, l, c, v, f;
|
|
1174
1176
|
switch ((p = r.onClick) == null || p.call(r, s, u.dataIndex, u), r.command) {
|
|
1175
1177
|
case "edit":
|
|
1176
|
-
u.status,
|
|
1178
|
+
u.status, ft.editing, (c = (l = t.commandOption) == null ? void 0 : l.onClickEditCommand) == null || c.call(l, d, u);
|
|
1177
1179
|
break;
|
|
1178
1180
|
case "accept":
|
|
1179
1181
|
case "cancel":
|
|
1180
|
-
u.status,
|
|
1182
|
+
u.status, ft.initial;
|
|
1181
1183
|
break;
|
|
1182
1184
|
case "remove":
|
|
1183
1185
|
(f = (v = t.commandOption) == null ? void 0 : v.onClickDeleteCommand) == null || f.call(v, d, u);
|
|
@@ -1191,7 +1193,7 @@ function $a(t) {
|
|
|
1191
1193
|
const {
|
|
1192
1194
|
column: u
|
|
1193
1195
|
} = r;
|
|
1194
|
-
return u.commands && u.commands.map((d, p) => p ? n(d, s) && R(
|
|
1196
|
+
return u.commands && u.commands.map((d, p) => p ? n(d, s) && R(gn, {
|
|
1195
1197
|
class: "ml-1",
|
|
1196
1198
|
type: d.type,
|
|
1197
1199
|
size: d.size || "small",
|
|
@@ -1201,7 +1203,7 @@ function $a(t) {
|
|
|
1201
1203
|
}
|
|
1202
1204
|
}, {
|
|
1203
1205
|
default: () => [Tt(" "), i(d.text), Tt(" ")]
|
|
1204
|
-
}) : n(d, s) && R(
|
|
1206
|
+
}) : n(d, s) && R(gn, {
|
|
1205
1207
|
type: d.type,
|
|
1206
1208
|
size: d.size || "small",
|
|
1207
1209
|
onClick: (l) => o(d, l, s, r),
|
|
@@ -1218,7 +1220,7 @@ function $a(t) {
|
|
|
1218
1220
|
}
|
|
1219
1221
|
function po(t) {
|
|
1220
1222
|
const e = E(t.minHeight), n = E(t.minWidth), o = E(t.height), i = E(t.width), a = z(() => o.value <= 0 ? 0 : Math.max(o.value, e.value)), r = z(() => i.value <= 0 ? 0 : Math.max(i.value, n.value));
|
|
1221
|
-
return
|
|
1223
|
+
return Be([
|
|
1222
1224
|
() => t.height,
|
|
1223
1225
|
() => t.width,
|
|
1224
1226
|
() => t.minHeight,
|
|
@@ -1231,7 +1233,7 @@ function po(t) {
|
|
|
1231
1233
|
flex: "1 1 0"
|
|
1232
1234
|
})) };
|
|
1233
1235
|
}
|
|
1234
|
-
const
|
|
1236
|
+
const $a = "";
|
|
1235
1237
|
function La(t) {
|
|
1236
1238
|
const o = E({
|
|
1237
1239
|
defaultColumnWidth: 120,
|
|
@@ -1285,7 +1287,7 @@ function La(t) {
|
|
|
1285
1287
|
function u(m) {
|
|
1286
1288
|
i();
|
|
1287
1289
|
const x = /* @__PURE__ */ new Map();
|
|
1288
|
-
return r.value && r.value.reduce((b, g) => (b.set(g, !0), b), x), m.reduce((b, g) => (g.visible = g.visible !== !1, g.filter = g.filter ||
|
|
1290
|
+
return r.value && r.value.reduce((b, g) => (b.set(g, !0), b), x), m.reduce((b, g) => (g.visible = g.visible !== !1, g.filter = g.filter || $a, g.fixed === "left" ? (o.value.leftColumns.push(g), o.value.leftColumnsMap.set(g.field, g), o.value.leftColumnsWidth += g.actualWidth) : g.fixed === "right" ? (o.value.rightColumns.push(g), o.value.rightColumnsMap.set(g.field, g), o.value.rightColumnsWidth += g.actualWidth) : (o.value.primaryColumns.push(g), o.value.primaryColumnsMap.set(g.field, g), o.value.primaryColumnsWidth += g.actualWidth), x.has(g.field) && o.value.summaryColumns.push(g), b), o), s(), o;
|
|
1289
1291
|
}
|
|
1290
1292
|
u(t.columns);
|
|
1291
1293
|
const d = z(() => o.value.leftColumns.length > 0), p = z(() => o.value.rightColumns.length > 0);
|
|
@@ -1342,7 +1344,7 @@ function La(t) {
|
|
|
1342
1344
|
}
|
|
1343
1345
|
function Ha(t) {
|
|
1344
1346
|
var r, s;
|
|
1345
|
-
const { t: e } =
|
|
1347
|
+
const { t: e } = pt(), n = 150, o = E(((r = t.commandOption) == null ? void 0 : r.enable) || !1), i = E(((s = t.commandOption) == null ? void 0 : s.commands) || []);
|
|
1346
1348
|
function a(u) {
|
|
1347
1349
|
var d;
|
|
1348
1350
|
if (o.value && !(u.value.findIndex((l) => l.dataType === "commands") > -1)) {
|
|
@@ -1377,7 +1379,7 @@ function Wa(t, e) {
|
|
|
1377
1379
|
parent: c,
|
|
1378
1380
|
resizable: !0,
|
|
1379
1381
|
title: p.title || "",
|
|
1380
|
-
status:
|
|
1382
|
+
status: Qe.none,
|
|
1381
1383
|
popoverRef: E(),
|
|
1382
1384
|
showPopover: !1,
|
|
1383
1385
|
column: null,
|
|
@@ -1432,8 +1434,8 @@ function Wa(t, e) {
|
|
|
1432
1434
|
function u(p) {
|
|
1433
1435
|
let l = /* @__PURE__ */ new Map(), c = 0;
|
|
1434
1436
|
if (p.reduce((v, f) => {
|
|
1435
|
-
let F =
|
|
1436
|
-
F = f.filterable ? F |
|
|
1437
|
+
let F = Qe.none;
|
|
1438
|
+
F = f.filterable ? F | Qe.filterable : F, F = f.sort && f.sort !== "none" ? F | Qe.sorted | (f.sort === "asc" ? Qe.ascending : Qe.descending) : F;
|
|
1437
1439
|
const _ = f.field;
|
|
1438
1440
|
return v.set(_, {
|
|
1439
1441
|
actualWidth: f.actualWidth || 0,
|
|
@@ -1464,7 +1466,7 @@ function Wa(t, e) {
|
|
|
1464
1466
|
}
|
|
1465
1467
|
function Aa(t, e) {
|
|
1466
1468
|
var w;
|
|
1467
|
-
|
|
1469
|
+
Or();
|
|
1468
1470
|
const { idField: n } = e, o = E(t.summary), i = E(t.group), a = E(((w = t.group) == null ? void 0 : w.groupFields) || []), r = z(() => {
|
|
1469
1471
|
var m;
|
|
1470
1472
|
return (m = t.group) == null ? void 0 : m.enable;
|
|
@@ -1566,14 +1568,14 @@ function za(t, e, n, o) {
|
|
|
1566
1568
|
const i = E(0), a = E(!!t.hierarchy), { idField: r } = o, { collapseField: s, hasChildrenField: u, parentIdField: d } = n, p = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), { flatTreeData: v, isNestedTree: f } = mo(t);
|
|
1567
1569
|
function F(G, H) {
|
|
1568
1570
|
l.clear(), G.reduce((W, Z) => {
|
|
1569
|
-
const
|
|
1570
|
-
if (
|
|
1571
|
-
const be = H.get(
|
|
1571
|
+
const de = Z[d.value] !== void 0 ? Z[d.value] : "";
|
|
1572
|
+
if (de && H.has(de)) {
|
|
1573
|
+
const be = H.get(de), ye = isNaN(Number(be.__fv_layer__)) ? 1 : Number(be.__fv_layer__);
|
|
1572
1574
|
Z.__fv_layer__ = ye + 1, Z.__fv_parent_index__ = be.__fv_index__, be.__fv_hasChildren__ = !0;
|
|
1573
1575
|
} else
|
|
1574
1576
|
Z.__fv_layer__ = 1;
|
|
1575
|
-
const
|
|
1576
|
-
return
|
|
1577
|
+
const Te = W.has(de) ? W.get(de) : [];
|
|
1578
|
+
return Te.push(Z), W.set(de, Te), W;
|
|
1577
1579
|
}, l);
|
|
1578
1580
|
}
|
|
1579
1581
|
function _(G) {
|
|
@@ -1585,8 +1587,8 @@ function za(t, e, n, o) {
|
|
|
1585
1587
|
function y(G) {
|
|
1586
1588
|
G.forEach((H) => {
|
|
1587
1589
|
const W = H[r.value];
|
|
1588
|
-
H.__fv_children_index__.map((
|
|
1589
|
-
|
|
1590
|
+
H.__fv_children_index__.map((de) => G[de]).forEach((de) => {
|
|
1591
|
+
de.__fv_parents__ = new Map([
|
|
1590
1592
|
...H.__fv_parents__.entries(),
|
|
1591
1593
|
[W, !0]
|
|
1592
1594
|
]);
|
|
@@ -1596,7 +1598,7 @@ function za(t, e, n, o) {
|
|
|
1596
1598
|
function w(G) {
|
|
1597
1599
|
G.forEach((H) => {
|
|
1598
1600
|
const W = new Set(H.__fv_children_index__);
|
|
1599
|
-
H.__fv_children_index__ = [...W].sort((Z,
|
|
1601
|
+
H.__fv_children_index__ = [...W].sort((Z, de) => Z - de);
|
|
1600
1602
|
});
|
|
1601
1603
|
}
|
|
1602
1604
|
function m(G) {
|
|
@@ -1617,9 +1619,9 @@ function za(t, e, n, o) {
|
|
|
1617
1619
|
}
|
|
1618
1620
|
function g(G, H, W) {
|
|
1619
1621
|
Array.from(H.keys()).forEach((Z) => {
|
|
1620
|
-
H.get(Z).reduce((
|
|
1621
|
-
const ye = be[r.value],
|
|
1622
|
-
return Y && oe && (Y.children.set(ye,
|
|
1622
|
+
H.get(Z).reduce((Te, be) => {
|
|
1623
|
+
const ye = be[r.value], ke = G.get(be[r.value]), Y = G.get(Z), oe = W.get(Z);
|
|
1624
|
+
return Y && oe && (Y.children.set(ye, ke), Y.children.set(ye, ke), ke.parentId = Z, ke.parentIndex = Y.index, ke.parents.set(Z, Y)), Te;
|
|
1623
1625
|
}, G);
|
|
1624
1626
|
});
|
|
1625
1627
|
}
|
|
@@ -1633,8 +1635,8 @@ function za(t, e, n, o) {
|
|
|
1633
1635
|
}
|
|
1634
1636
|
function T(G, H) {
|
|
1635
1637
|
G.filter((W) => W[d.value] === void 0 || W[d.value] === "").forEach((W) => {
|
|
1636
|
-
const Z = W[r.value],
|
|
1637
|
-
h(
|
|
1638
|
+
const Z = W[r.value], de = H.get(Z);
|
|
1639
|
+
h(de);
|
|
1638
1640
|
});
|
|
1639
1641
|
}
|
|
1640
1642
|
function C(G) {
|
|
@@ -1666,8 +1668,8 @@ function za(t, e, n, o) {
|
|
|
1666
1668
|
}
|
|
1667
1669
|
function B(G, H) {
|
|
1668
1670
|
H.forEach((W) => {
|
|
1669
|
-
const Z = p.get(W[r.value]),
|
|
1670
|
-
|
|
1671
|
+
const Z = p.get(W[r.value]), de = p.get(G), Te = c.get(G);
|
|
1672
|
+
de && Te && (Z.visibleInHierarchy = !Te[s.value] && de.visibleInHierarchy);
|
|
1671
1673
|
}), O();
|
|
1672
1674
|
}
|
|
1673
1675
|
function L(G) {
|
|
@@ -1680,84 +1682,84 @@ function za(t, e, n, o) {
|
|
|
1680
1682
|
const H = G[r.value];
|
|
1681
1683
|
L(H);
|
|
1682
1684
|
}
|
|
1683
|
-
function
|
|
1685
|
+
function $(G, H, W = 0) {
|
|
1684
1686
|
G.forEach((Z) => {
|
|
1685
|
-
const
|
|
1686
|
-
Z[s.value] =
|
|
1687
|
+
const de = M(Z), Te = Z.__fv_layer__ <= W, be = H === "ToCollapse" ? Z.__fv_layer__ <= W : !(Z.__fv_layer__ <= W), ye = Te ? be : Z[s.value];
|
|
1688
|
+
Z[s.value] = de || ye;
|
|
1687
1689
|
});
|
|
1688
|
-
for (const [Z,
|
|
1689
|
-
B(Z,
|
|
1690
|
+
for (const [Z, de] of l.entries())
|
|
1691
|
+
B(Z, de);
|
|
1690
1692
|
return G;
|
|
1691
1693
|
}
|
|
1692
1694
|
function D(G, H) {
|
|
1693
|
-
|
|
1695
|
+
$(G, "ToCollapse", H);
|
|
1694
1696
|
}
|
|
1695
1697
|
function P(G, H) {
|
|
1696
|
-
|
|
1698
|
+
$(G, "ToExpand", H);
|
|
1697
1699
|
}
|
|
1698
1700
|
function I(G) {
|
|
1699
1701
|
G.forEach((H, W) => {
|
|
1700
1702
|
var be;
|
|
1701
|
-
const Z = H[r.value],
|
|
1702
|
-
H.__fv_graph_node__ =
|
|
1703
|
+
const Z = H[r.value], de = l.has(Z) ? (be = l.get(Z)) == null ? void 0 : be.map((ye) => ye.__fv_index__) : [], Te = b(Z, W);
|
|
1704
|
+
H.__fv_graph_node__ = Te, H.__fv_children_index__ = de, H.__fv_descendant_index__ = [...de], H.__fv_parents__ = /* @__PURE__ */ new Map(), M(H) && (H[s.value] = !0);
|
|
1703
1705
|
});
|
|
1704
1706
|
}
|
|
1705
|
-
function
|
|
1706
|
-
var Z,
|
|
1707
|
+
function j(G) {
|
|
1708
|
+
var Z, de;
|
|
1707
1709
|
k(e.value), I(G), y(G), m(G), t.showLines && x(G);
|
|
1708
|
-
const W = ((Z = t.hierarchy) == null ? void 0 : Z.collapseTo) !== void 0 ? Number((
|
|
1709
|
-
return
|
|
1710
|
+
const W = ((Z = t.hierarchy) == null ? void 0 : Z.collapseTo) !== void 0 ? Number((de = t.hierarchy) == null ? void 0 : de.collapseTo) : 0;
|
|
1711
|
+
return $(G, "ToCollapse", W), G;
|
|
1710
1712
|
}
|
|
1711
1713
|
function A(G, H, W) {
|
|
1712
|
-
const
|
|
1713
|
-
if (
|
|
1714
|
-
const be = p.get(
|
|
1714
|
+
const de = W.value[G][r.value], Te = p.get(de);
|
|
1715
|
+
if (Te) {
|
|
1716
|
+
const be = p.get(Te.parentId);
|
|
1715
1717
|
let ye = W.value.length - 1;
|
|
1716
1718
|
if (be) {
|
|
1717
|
-
const
|
|
1718
|
-
if (
|
|
1719
|
+
const ke = Array.from(be.children.keys()).indexOf(Te.id);
|
|
1720
|
+
if (ke === be.children.size - 1) {
|
|
1719
1721
|
const oe = Array.from(be.descendant.values())[be.descendant.size - 1];
|
|
1720
|
-
ye = W.value.findIndex((
|
|
1722
|
+
ye = W.value.findIndex((_e) => _e[r.value] === oe.id) + 1;
|
|
1721
1723
|
} else {
|
|
1722
|
-
const oe = Array.from(be.children.values())[
|
|
1723
|
-
ye = W.value.findIndex((
|
|
1724
|
+
const oe = Array.from(be.children.values())[ke + 1];
|
|
1725
|
+
ye = W.value.findIndex((_e) => _e[r.value] === oe.id);
|
|
1724
1726
|
}
|
|
1725
1727
|
H[u.value] = !1, H[d.value] = be.id, W.value.splice(ye, 0, H);
|
|
1726
1728
|
}
|
|
1727
1729
|
}
|
|
1728
1730
|
}
|
|
1729
1731
|
function J(G, H, W) {
|
|
1730
|
-
const Z = W.value[G],
|
|
1731
|
-
if (p.get(
|
|
1732
|
-
const ye = W.value.findIndex((
|
|
1733
|
-
Z[u.value] = !0, Z[s.value] = !1, H[u.value] = !1, H[d.value] =
|
|
1732
|
+
const Z = W.value[G], de = Z[r.value];
|
|
1733
|
+
if (p.get(de)) {
|
|
1734
|
+
const ye = W.value.findIndex((ke) => ke[r.value] === de) + 1;
|
|
1735
|
+
Z[u.value] = !0, Z[s.value] = !1, H[u.value] = !1, H[d.value] = de, W.value.splice(ye, 0, H);
|
|
1734
1736
|
}
|
|
1735
1737
|
}
|
|
1736
1738
|
function q(G, H, W) {
|
|
1737
|
-
const
|
|
1738
|
-
if (p.get(
|
|
1739
|
-
const ye = W.value.findIndex((Y) => Y[r.value] ===
|
|
1740
|
-
let
|
|
1741
|
-
f(H) && (
|
|
1742
|
-
Y[d.value] =
|
|
1743
|
-
}), W.value.splice(ye, 0, ...
|
|
1744
|
-
}
|
|
1745
|
-
}
|
|
1746
|
-
function
|
|
1747
|
-
const W = G[r.value], Z = p.get(W),
|
|
1748
|
-
|
|
1749
|
-
const
|
|
1750
|
-
if (
|
|
1751
|
-
const ye = H.find((
|
|
1739
|
+
const de = W.value[G][r.value];
|
|
1740
|
+
if (p.get(de)) {
|
|
1741
|
+
const ye = W.value.findIndex((Y) => Y[r.value] === de) + 1;
|
|
1742
|
+
let ke = H;
|
|
1743
|
+
f(H) && (ke = v(H)), ke.forEach((Y) => {
|
|
1744
|
+
Y[d.value] = de;
|
|
1745
|
+
}), W.value.splice(ye, 0, ...ke);
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
function ae(G, H) {
|
|
1749
|
+
const W = G[r.value], Z = p.get(W), de = Array.from(Z.descendant.keys());
|
|
1750
|
+
de.unshift(W);
|
|
1751
|
+
const Te = p.get(Z.parentId);
|
|
1752
|
+
if (Te && (Te.children.delete(W), Te.children.size === 0)) {
|
|
1753
|
+
const ye = H.find((ke) => ke[r.value] === Z.parentId);
|
|
1752
1754
|
ye[u.value] = !1, ye[s.value] = !1;
|
|
1753
1755
|
}
|
|
1754
|
-
return H.filter((ye) =>
|
|
1756
|
+
return H.filter((ye) => de.indexOf(ye.id) === -1);
|
|
1755
1757
|
}
|
|
1756
1758
|
return {
|
|
1757
1759
|
checkVisibleInHierarchy: i,
|
|
1758
1760
|
collapseTo: D,
|
|
1759
1761
|
expandTo: P,
|
|
1760
|
-
generateHierarchyData:
|
|
1762
|
+
generateHierarchyData: j,
|
|
1761
1763
|
hasRealChildren: S,
|
|
1762
1764
|
insertSibling: A,
|
|
1763
1765
|
insertChild: J,
|
|
@@ -1765,7 +1767,7 @@ function za(t, e, n, o) {
|
|
|
1765
1767
|
isVisibleInTree: V,
|
|
1766
1768
|
shouldStratifyData: a,
|
|
1767
1769
|
toggleChildrenVisibiltyByCollapseStatus: X,
|
|
1768
|
-
trimmedOriginalData:
|
|
1770
|
+
trimmedOriginalData: ae
|
|
1769
1771
|
};
|
|
1770
1772
|
}
|
|
1771
1773
|
const Ga = {
|
|
@@ -1785,7 +1787,7 @@ const Ga = {
|
|
|
1785
1787
|
showCloseButton: { type: Boolean, default: !0 },
|
|
1786
1788
|
animate: { type: String, default: "fadeIn" },
|
|
1787
1789
|
options: { type: Object }
|
|
1788
|
-
}, on = /* @__PURE__ */
|
|
1790
|
+
}, on = /* @__PURE__ */ Ke({
|
|
1789
1791
|
name: "Toast",
|
|
1790
1792
|
props: qa,
|
|
1791
1793
|
emits: ["close", "click"],
|
|
@@ -1793,7 +1795,7 @@ const Ga = {
|
|
|
1793
1795
|
const {
|
|
1794
1796
|
locale: n,
|
|
1795
1797
|
t: o
|
|
1796
|
-
} =
|
|
1798
|
+
} = pt(), i = E(t.animate), a = "fadeOut", r = z(() => t.options), s = E(!1), u = z(() => {
|
|
1797
1799
|
const x = {
|
|
1798
1800
|
animated: s.value,
|
|
1799
1801
|
toast: !0
|
|
@@ -1818,12 +1820,12 @@ const Ga = {
|
|
|
1818
1820
|
function w(x) {
|
|
1819
1821
|
return `f-preten-link ${x.customClass ? x.customClass : ""}`;
|
|
1820
1822
|
}
|
|
1821
|
-
|
|
1823
|
+
Be(i, () => {
|
|
1822
1824
|
i.value;
|
|
1823
1825
|
});
|
|
1824
1826
|
const m = () => {
|
|
1825
1827
|
var x;
|
|
1826
|
-
return R(
|
|
1828
|
+
return R(Vt, null, [R("div", {
|
|
1827
1829
|
class: "after-toast-msg text-right"
|
|
1828
1830
|
}, [!e.slots.default && ((x = r.value.buttons) == null ? void 0 : x.map((b) => R("span", {
|
|
1829
1831
|
class: w(b),
|
|
@@ -1847,7 +1849,7 @@ const Ga = {
|
|
|
1847
1849
|
class: d.value
|
|
1848
1850
|
}, null)]), R("div", {
|
|
1849
1851
|
class: "modal-tips-content"
|
|
1850
|
-
}, [l.value && R(
|
|
1852
|
+
}, [l.value && R(Vt, null, [R("h5", {
|
|
1851
1853
|
class: "toast-title modal-tips-title",
|
|
1852
1854
|
innerHTML: r.value.title
|
|
1853
1855
|
}, null), R("p", {
|
|
@@ -1868,7 +1870,7 @@ const Ga = {
|
|
|
1868
1870
|
innerHTML: r.value.message
|
|
1869
1871
|
}, null))])])]);
|
|
1870
1872
|
}
|
|
1871
|
-
}), Wt = /* @__PURE__ */
|
|
1873
|
+
}), Wt = /* @__PURE__ */ Ke({
|
|
1872
1874
|
name: "Notify",
|
|
1873
1875
|
props: Ga,
|
|
1874
1876
|
emits: ["close", "empty"],
|
|
@@ -1918,7 +1920,7 @@ const Ga = {
|
|
|
1918
1920
|
class vo {
|
|
1919
1921
|
constructor() {
|
|
1920
1922
|
ee(this, "notifyRefs", []);
|
|
1921
|
-
ee(this, "globalConfig",
|
|
1923
|
+
ee(this, "globalConfig", ht({}));
|
|
1922
1924
|
}
|
|
1923
1925
|
escapeAllHtml(e) {
|
|
1924
1926
|
if (typeof e != "string" || !e)
|
|
@@ -1936,7 +1938,7 @@ class vo {
|
|
|
1936
1938
|
...e
|
|
1937
1939
|
}), a = document.createElement("div");
|
|
1938
1940
|
a.style.display = "contents";
|
|
1939
|
-
const r =
|
|
1941
|
+
const r = Tn({
|
|
1940
1942
|
setup() {
|
|
1941
1943
|
var d;
|
|
1942
1944
|
const s = E();
|
|
@@ -1956,7 +1958,7 @@ class vo {
|
|
|
1956
1958
|
document.body.removeChild(a);
|
|
1957
1959
|
}), Ot(() => {
|
|
1958
1960
|
n.updateNotifyPositionForCreate(i, s);
|
|
1959
|
-
}), () => R(
|
|
1961
|
+
}), () => R(Fn, {
|
|
1960
1962
|
mode: "out-in",
|
|
1961
1963
|
name: "fade",
|
|
1962
1964
|
appear: !0
|
|
@@ -1969,7 +1971,7 @@ class vo {
|
|
|
1969
1971
|
});
|
|
1970
1972
|
}
|
|
1971
1973
|
});
|
|
1972
|
-
return r.provide("NotifyService", this), document.body.appendChild(a), r.use(
|
|
1974
|
+
return r.provide("NotifyService", this), document.body.appendChild(a), r.use($t.i18n), r.mount(a), r;
|
|
1973
1975
|
}
|
|
1974
1976
|
getNotifyInstances(e) {
|
|
1975
1977
|
return this.notifyRefs.filter((n) => n.value.notifyPosition === e);
|
|
@@ -2041,7 +2043,7 @@ Wt.install = (t) => {
|
|
|
2041
2043
|
t.provide(Ua, e), t.provide("FNotifyService", e);
|
|
2042
2044
|
};
|
|
2043
2045
|
function ho(t, e, n, o, i) {
|
|
2044
|
-
const { toNumber: a } =
|
|
2046
|
+
const { toNumber: a } = Jn(), r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), l = E([]), c = E([]), v = Aa(t, i), { generateGroupData: f, groupFields: F, shouldGroupingData: _ } = v, y = E(t.data), w = za(t, y, o, i), {
|
|
2045
2047
|
collapseTo: m,
|
|
2046
2048
|
expandTo: x,
|
|
2047
2049
|
generateHierarchyData: b,
|
|
@@ -2054,99 +2056,99 @@ function ho(t, e, n, o, i) {
|
|
|
2054
2056
|
toggleChildrenVisibiltyByCollapseStatus: M,
|
|
2055
2057
|
trimmedOriginalData: V,
|
|
2056
2058
|
checkVisibleInHierarchy: O
|
|
2057
|
-
} = w, { idField: B, reviseIdentifyField: L } = i, X = E(t.newDataItem),
|
|
2059
|
+
} = w, { idField: B, reviseIdentifyField: L } = i, X = E(t.newDataItem), $ = E(t.data || []), D = E(t.data), { flatTreeData: P, isNestedTree: I } = mo(t);
|
|
2058
2060
|
if (t.hierarchy && I(t.data)) {
|
|
2059
2061
|
const Q = P(t.data);
|
|
2060
|
-
y.value = Q,
|
|
2062
|
+
y.value = Q, $.value = Q, D.value = Q;
|
|
2061
2063
|
}
|
|
2062
|
-
const
|
|
2063
|
-
const Q =
|
|
2064
|
+
const j = E(t.summary), A = z(() => {
|
|
2065
|
+
const Q = j.value;
|
|
2064
2066
|
return (Q == null ? void 0 : Q.groupFields) || [];
|
|
2065
2067
|
});
|
|
2066
2068
|
let J = /* @__PURE__ */ new Map();
|
|
2067
|
-
const q = E(
|
|
2069
|
+
const q = E($.value.length), ae = E(t.pagination);
|
|
2068
2070
|
function G() {
|
|
2069
|
-
return
|
|
2071
|
+
return ae.value && ae.value.enable && ae.value.size > 0 ? ae.value.size : $.value.length;
|
|
2070
2072
|
}
|
|
2071
|
-
const H = E(1), W = z(() =>
|
|
2072
|
-
function
|
|
2073
|
+
const H = E(1), W = z(() => ae.value && ae.value.enable && ae.value.mode !== "server"), Z = z(() => ae.value && ae.value.enable && ae.value.mode === "server"), de = new vo();
|
|
2074
|
+
function Te(Q, N) {
|
|
2073
2075
|
const U = Math.ceil(Q.length / N);
|
|
2074
2076
|
let te = 0;
|
|
2075
|
-
const
|
|
2077
|
+
const pe = [], xe = [], Fe = [];
|
|
2076
2078
|
for (; te < U; ) {
|
|
2077
|
-
const
|
|
2078
|
-
|
|
2079
|
+
const Ee = Q.slice(te * N, (te + 1) * N), Pe = f(F.value, Ee, e);
|
|
2080
|
+
xe[te] = Pe.filter((Me) => Me.__fv_data_grid_group_row__).length, pe.push(...Pe), te++;
|
|
2079
2081
|
}
|
|
2080
|
-
return
|
|
2081
|
-
groupData:
|
|
2082
|
-
groupRowSizeList:
|
|
2083
|
-
accumulateGroupRowSize:
|
|
2082
|
+
return xe.reduce((Ee, Pe, Me) => (Ee = Ee + Pe, Fe.push(Ee), Ee), 0), {
|
|
2083
|
+
groupData: pe,
|
|
2084
|
+
groupRowSizeList: xe,
|
|
2085
|
+
accumulateGroupRowSize: Fe
|
|
2084
2086
|
};
|
|
2085
2087
|
}
|
|
2086
2088
|
function be() {
|
|
2087
2089
|
var Pe;
|
|
2088
|
-
|
|
2090
|
+
$.value = y.value, W.value && (q.value = $.value.length), _.value && !W.value && ($.value = f(F.value, y.value, e)), J = A.value.reduce((Me, je) => (Me.set(je, 0), Me), J);
|
|
2089
2091
|
const Q = 0, N = G(), U = (H.value - 1) * N;
|
|
2090
|
-
let
|
|
2092
|
+
let pe = U > $.value.length - 1 || Z.value ? Q : U, xe = Z.value ? $.value.length : Math.min(pe + N, $.value.length);
|
|
2091
2093
|
if (_.value && W.value) {
|
|
2092
|
-
const { accumulateGroupRowSize:
|
|
2093
|
-
|
|
2094
|
-
const
|
|
2095
|
-
|
|
2096
|
-
}
|
|
2097
|
-
let
|
|
2098
|
-
const
|
|
2099
|
-
if (
|
|
2100
|
-
L(
|
|
2101
|
-
const
|
|
2102
|
-
for (let
|
|
2103
|
-
const
|
|
2104
|
-
|
|
2105
|
-
const
|
|
2106
|
-
J.set(
|
|
2107
|
-
}),
|
|
2094
|
+
const { accumulateGroupRowSize: Me, groupData: je, groupRowSizeList: Ie } = Te(y.value, N);
|
|
2095
|
+
$.value = je;
|
|
2096
|
+
const ze = Ie[H.value - 1];
|
|
2097
|
+
pe += H.value - 2 < 0 ? 0 : Me[H.value - 2], xe = pe + N + ze;
|
|
2098
|
+
}
|
|
2099
|
+
let Fe = 0;
|
|
2100
|
+
const Ee = [];
|
|
2101
|
+
if ($.value.length) {
|
|
2102
|
+
L($.value);
|
|
2103
|
+
const Me = B.value !== t.idField;
|
|
2104
|
+
for (let je = pe; je < xe; je++) {
|
|
2105
|
+
const Ie = $.value[je];
|
|
2106
|
+
Ie.__fv_data_grid_group_row__ ? (Fe = 0, Ie.__fv_data_index__ = "") : Ie.__fv_data_grid_group_summary__ ? Ie.__fv_data_index__ = "" : (Fe++, Ie.__fv_data_index__ = Fe + (H.value - 1) * N), Ie.__fv_index__ = je, Ie.__fv_visible_index__ = je, t.rowOption && t.rowOption.disabledField && (Ie.__fv_disabled__ = Ie[(Pe = t.rowOption) == null ? void 0 : Pe.disabledField]), Me && (Ie[B.value] = je), A.value.forEach((ze) => {
|
|
2107
|
+
const Je = J.get(ze) || 0;
|
|
2108
|
+
J.set(ze, Je + Ze(Ie, ze));
|
|
2109
|
+
}), Ee.push(Ie);
|
|
2108
2110
|
}
|
|
2109
2111
|
}
|
|
2110
|
-
return S.value && b(
|
|
2111
|
-
const
|
|
2112
|
-
J.set(
|
|
2113
|
-
}), D.value = [...
|
|
2112
|
+
return S.value && b(Ee), A.value.forEach((Me) => {
|
|
2113
|
+
const je = J.get(Me) || 0;
|
|
2114
|
+
J.set(Me, a(je.toFixed(2)));
|
|
2115
|
+
}), D.value = [...Ee], Ee;
|
|
2114
2116
|
}
|
|
2115
|
-
const ye = E(be()),
|
|
2117
|
+
const ye = E(be()), ke = z(() => (O.value, ye.value.filter((Q) => S.value ? Q.__fv_visible__ !== !1 && k(Q) : Q.__fv_visible__ !== !1)));
|
|
2116
2118
|
function Y() {
|
|
2117
|
-
|
|
2119
|
+
ke.value.forEach((Q, N) => (Q.__fv_visible_index__ = N, Q));
|
|
2118
2120
|
}
|
|
2119
2121
|
function oe(Q, N, U = !1) {
|
|
2120
|
-
const
|
|
2121
|
-
const
|
|
2122
|
-
let
|
|
2123
|
-
for (;
|
|
2124
|
-
const
|
|
2125
|
-
|
|
2122
|
+
const pe = (U ? be() : [...D.value]).filter((Ee) => n.apply(Ee)), xe = Q && Q.length ? pe.filter((Ee) => Q.reduce((Pe, Me) => Pe && Me.filter(Ee), !0)) : pe, Fe = N && N.length ? xe.sort((Ee, Pe) => {
|
|
2123
|
+
const Me = [...N], je = Me.shift();
|
|
2124
|
+
let Ie = je.compare(Ee[je.field], Pe[je.field]);
|
|
2125
|
+
for (; Ie === 0 && Me.length !== 0; ) {
|
|
2126
|
+
const ze = Me.shift();
|
|
2127
|
+
ze && (Ie = ze.compare(Ee[ze.field], Pe[ze.field]));
|
|
2126
2128
|
}
|
|
2127
|
-
return
|
|
2128
|
-
}) :
|
|
2129
|
-
return ye.value =
|
|
2130
|
-
if (
|
|
2131
|
-
const
|
|
2132
|
-
|
|
2129
|
+
return Ie;
|
|
2130
|
+
}) : xe;
|
|
2131
|
+
return ye.value = Fe.map((Ee, Pe) => {
|
|
2132
|
+
if (Ee.__fv_data_grid_group_row__) {
|
|
2133
|
+
const Me = `group_of_${Ee.__fv_data_grid_group_field__}_${Ee.__fv_data_grid_group_value__}`;
|
|
2134
|
+
Ee.__fv_data_grid_group_collapse__ = !!r.get(Me);
|
|
2133
2135
|
}
|
|
2134
|
-
return
|
|
2136
|
+
return Ee.__fv_index__ = Pe, Ee.__fv_visible_index__ = Pe, Ee;
|
|
2135
2137
|
}), ye.value;
|
|
2136
2138
|
}
|
|
2137
|
-
function
|
|
2139
|
+
function ue(Q) {
|
|
2138
2140
|
return p.clear(), c.value = Q, c.value.reduce((N, U) => (N.set(U.field, U), N), p), oe([], c.value);
|
|
2139
2141
|
}
|
|
2140
|
-
function
|
|
2142
|
+
function _e(Q, N) {
|
|
2141
2143
|
return p.set(Q, N), c.value = Array.from(p.values()), oe([], c.value);
|
|
2142
2144
|
}
|
|
2143
|
-
function
|
|
2145
|
+
function Se(Q) {
|
|
2144
2146
|
return p.delete(Q), c.value = Array.from(p.values()), oe([], c.value);
|
|
2145
2147
|
}
|
|
2146
|
-
function
|
|
2148
|
+
function He(Q, N) {
|
|
2147
2149
|
return s.set(Q, N), l.value = Array.from(s.values()), oe([], Array.from(p.values()));
|
|
2148
2150
|
}
|
|
2149
|
-
function
|
|
2151
|
+
function qe(Q) {
|
|
2150
2152
|
return s.delete(Q), l.value = Array.from(s.values()), oe([], Array.from(p.values()), !0);
|
|
2151
2153
|
}
|
|
2152
2154
|
function ne() {
|
|
@@ -2155,7 +2157,7 @@ function ho(t, e, n, o, i) {
|
|
|
2155
2157
|
function ve(Q, N) {
|
|
2156
2158
|
const U = `group_of_${Q}_${N}`;
|
|
2157
2159
|
r.set(U, !0);
|
|
2158
|
-
const te = (
|
|
2160
|
+
const te = (pe) => pe[Q] !== N;
|
|
2159
2161
|
return u.set(`collapse_${Q}_${N}`, {
|
|
2160
2162
|
field: Q,
|
|
2161
2163
|
fieldName: Q,
|
|
@@ -2164,13 +2166,13 @@ function ho(t, e, n, o, i) {
|
|
|
2164
2166
|
filter: te
|
|
2165
2167
|
}), oe(Array.from(u.values()), Array.from(p.values()));
|
|
2166
2168
|
}
|
|
2167
|
-
function
|
|
2169
|
+
function Ve(Q) {
|
|
2168
2170
|
m(ye.value, Q);
|
|
2169
2171
|
}
|
|
2170
|
-
function
|
|
2172
|
+
function Le(Q) {
|
|
2171
2173
|
x(ye.value, Q);
|
|
2172
2174
|
}
|
|
2173
|
-
function
|
|
2175
|
+
function Ne(Q, N) {
|
|
2174
2176
|
const U = `group_of_${Q}_${N}`;
|
|
2175
2177
|
return r.set(U, !1), u.delete(`collapse_${Q}_${N}`), oe(Array.from(u.values()), Array.from(p.values()), !0);
|
|
2176
2178
|
}
|
|
@@ -2184,95 +2186,95 @@ function ho(t, e, n, o, i) {
|
|
|
2184
2186
|
filter: U
|
|
2185
2187
|
}), oe(Array.from(d.values()), Array.from(p.values())), b(ye.value);
|
|
2186
2188
|
}
|
|
2187
|
-
function
|
|
2189
|
+
function we(Q) {
|
|
2188
2190
|
const N = Q[B.value];
|
|
2189
2191
|
d.delete(`fold_${N}`);
|
|
2190
2192
|
}
|
|
2191
|
-
function
|
|
2192
|
-
|
|
2193
|
+
function De(Q) {
|
|
2194
|
+
we(Q.raw), oe(Array.from(d.values()), Array.from(p.values()), !0), b(ye.value);
|
|
2193
2195
|
}
|
|
2194
|
-
function
|
|
2196
|
+
function me() {
|
|
2195
2197
|
const Q = be();
|
|
2196
2198
|
ye.value = Q, t.hierarchy && (oe(Array.from(d.values()), Array.from(p.values())), b(ye.value));
|
|
2197
2199
|
}
|
|
2198
|
-
function
|
|
2200
|
+
function Re(Q) {
|
|
2199
2201
|
const U = t.hierarchy && I(Q) ? P(Q) : Q;
|
|
2200
|
-
y.value = U,
|
|
2202
|
+
y.value = U, me();
|
|
2201
2203
|
}
|
|
2202
|
-
function
|
|
2203
|
-
return (Q && Q.length ? ye.value.filter((
|
|
2204
|
+
function We(Q, N, U) {
|
|
2205
|
+
return (Q && Q.length ? ye.value.filter((pe, xe) => Q.reduce((Fe, Ee) => Fe && Ee.filter(pe), !0)) : ye.value).slice(N, U);
|
|
2204
2206
|
}
|
|
2205
|
-
function
|
|
2207
|
+
function et(Q) {
|
|
2206
2208
|
const N = G(), U = Math.ceil(q.value / N);
|
|
2207
|
-
0 <= Q && Q <= U && (H.value = Q,
|
|
2209
|
+
0 <= Q && Q <= U && (H.value = Q, me());
|
|
2208
2210
|
}
|
|
2209
|
-
function
|
|
2210
|
-
y.value.push(
|
|
2211
|
+
function at(Q) {
|
|
2212
|
+
y.value.push(Ct(Q)), ye.value = be();
|
|
2211
2213
|
}
|
|
2212
|
-
function
|
|
2214
|
+
function mt(Q = 0) {
|
|
2213
2215
|
if (!(Q > -1))
|
|
2214
2216
|
return !1;
|
|
2215
2217
|
const U = X.value();
|
|
2216
|
-
t.hierarchy ? h(Q, U, y) : y.value.splice(Q, 0, U),
|
|
2218
|
+
t.hierarchy ? h(Q, U, y) : y.value.splice(Q, 0, U), me();
|
|
2217
2219
|
}
|
|
2218
2220
|
function wt(Q = 0) {
|
|
2219
2221
|
if (!(Q > -1 && t.hierarchy))
|
|
2220
2222
|
return !1;
|
|
2221
2223
|
const U = X.value(), te = y.value[Q];
|
|
2222
|
-
|
|
2224
|
+
we(te), T(Q, U, y), me();
|
|
2223
2225
|
}
|
|
2224
|
-
function
|
|
2226
|
+
function gt(Q, N = 0) {
|
|
2225
2227
|
if (!(N > -1 && t.hierarchy))
|
|
2226
2228
|
return !1;
|
|
2227
2229
|
const te = y.value[N];
|
|
2228
|
-
|
|
2230
|
+
we(te), C(N, Q, y), me();
|
|
2229
2231
|
}
|
|
2230
2232
|
function ie(Q) {
|
|
2231
2233
|
const N = Q ? Q - 1 : 0;
|
|
2232
|
-
y.value.splice(N, 1),
|
|
2234
|
+
y.value.splice(N, 1), me();
|
|
2233
2235
|
}
|
|
2234
2236
|
function he(Q) {
|
|
2235
2237
|
const N = y.value.findIndex((U) => U[B.value] === Q);
|
|
2236
|
-
N !== -1 && (y.value.splice(N, 1),
|
|
2238
|
+
N !== -1 && (y.value.splice(N, 1), me());
|
|
2237
2239
|
}
|
|
2238
2240
|
function Ce(Q) {
|
|
2239
2241
|
const N = Q > -1 ? y.value[Q] : null;
|
|
2240
2242
|
if (!(N && N.deletable !== !1))
|
|
2241
2243
|
return !1;
|
|
2242
|
-
y.value = V(N, y.value),
|
|
2244
|
+
y.value = V(N, y.value), me();
|
|
2243
2245
|
}
|
|
2244
2246
|
function $e() {
|
|
2245
2247
|
const Q = u.size > 0 ? Array.from(u.values()) : [];
|
|
2246
2248
|
return oe(Q, Array.from(p.values()));
|
|
2247
2249
|
}
|
|
2248
|
-
function
|
|
2249
|
-
|
|
2250
|
+
function Ae(Q) {
|
|
2251
|
+
ae.value.size = Q;
|
|
2250
2252
|
}
|
|
2251
|
-
function
|
|
2252
|
-
|
|
2253
|
+
function Xe(Q) {
|
|
2254
|
+
ae.value && (Ae(Q), me());
|
|
2253
2255
|
}
|
|
2254
|
-
function
|
|
2256
|
+
function rt(Q, N) {
|
|
2255
2257
|
const U = y.value[Number(Q) - 1];
|
|
2256
|
-
U.editable !== !1 ? (U.name = N,
|
|
2258
|
+
U.editable !== !1 ? (U.name = N, me()) : de.show({
|
|
2257
2259
|
showCloseButton: !1,
|
|
2258
2260
|
timeout: 3e3,
|
|
2259
2261
|
animate: "fadeIn",
|
|
2260
2262
|
toasts: [{ type: "string", title: "提示", msg: "当前节点禁止编辑" }]
|
|
2261
2263
|
});
|
|
2262
2264
|
}
|
|
2263
|
-
function
|
|
2265
|
+
function vt(Q) {
|
|
2264
2266
|
return Q.map((U) => {
|
|
2265
|
-
const te = D.value.findIndex((
|
|
2267
|
+
const te = D.value.findIndex((pe) => "" + pe[B.value] == "" + U);
|
|
2266
2268
|
return te > -1 ? D.value[te] : null;
|
|
2267
2269
|
}).filter((U) => U != null);
|
|
2268
2270
|
}
|
|
2269
|
-
function
|
|
2271
|
+
function lt() {
|
|
2270
2272
|
const Q = t.summary.groupFields;
|
|
2271
2273
|
J = Q.reduce((N, U) => (N.set(U, 0), N), J);
|
|
2272
|
-
for (const N of
|
|
2274
|
+
for (const N of $.value)
|
|
2273
2275
|
Q.forEach((U) => {
|
|
2274
2276
|
const te = J.get(U) || 0;
|
|
2275
|
-
J.set(U, te +
|
|
2277
|
+
J.set(U, te + Ze(N, U));
|
|
2276
2278
|
});
|
|
2277
2279
|
Q.forEach((N) => {
|
|
2278
2280
|
const U = J.get(N) || 0;
|
|
@@ -2280,48 +2282,49 @@ function ho(t, e, n, o, i) {
|
|
|
2280
2282
|
});
|
|
2281
2283
|
}
|
|
2282
2284
|
return {
|
|
2283
|
-
addFilter:
|
|
2284
|
-
addNewDataItem:
|
|
2285
|
-
addSorter:
|
|
2286
|
-
updatePageSize:
|
|
2287
|
-
changePageSizeTo:
|
|
2285
|
+
addFilter: He,
|
|
2286
|
+
addNewDataItem: at,
|
|
2287
|
+
addSorter: _e,
|
|
2288
|
+
updatePageSize: Ae,
|
|
2289
|
+
changePageSizeTo: Xe,
|
|
2288
2290
|
collapse: ve,
|
|
2289
|
-
collapseTo:
|
|
2291
|
+
collapseTo: Ve,
|
|
2290
2292
|
dataView: ye,
|
|
2291
|
-
editDataItem:
|
|
2292
|
-
expand:
|
|
2293
|
-
expandTo:
|
|
2293
|
+
editDataItem: rt,
|
|
2294
|
+
expand: Ne,
|
|
2295
|
+
expandTo: Le,
|
|
2294
2296
|
filters: l,
|
|
2295
2297
|
fold: K,
|
|
2296
|
-
getRange:
|
|
2297
|
-
getSelectionItems:
|
|
2298
|
+
getRange: We,
|
|
2299
|
+
getSelectionItems: vt,
|
|
2298
2300
|
hasRealChildren: g,
|
|
2299
2301
|
insertNewChildDataItem: wt,
|
|
2300
|
-
insertNewChildDataItems:
|
|
2301
|
-
insertNewDataItem:
|
|
2302
|
+
insertNewChildDataItems: gt,
|
|
2303
|
+
insertNewDataItem: mt,
|
|
2302
2304
|
isVisibleInTree: k,
|
|
2303
|
-
load:
|
|
2304
|
-
navigatePageTo:
|
|
2305
|
+
load: Re,
|
|
2306
|
+
navigatePageTo: et,
|
|
2305
2307
|
pageIndex: H,
|
|
2306
2308
|
rawView: D,
|
|
2307
2309
|
refresh: $e,
|
|
2308
2310
|
removeAllFilter: ne,
|
|
2309
2311
|
removeDataItem: ie,
|
|
2310
2312
|
removeDataItemById: he,
|
|
2311
|
-
removeFilter:
|
|
2313
|
+
removeFilter: qe,
|
|
2312
2314
|
removeHierarchyDataItem: Ce,
|
|
2313
|
-
removeSorter:
|
|
2315
|
+
removeSorter: Se,
|
|
2314
2316
|
reOrderVisibleIndex: Y,
|
|
2315
|
-
setSorters:
|
|
2317
|
+
setSorters: ue,
|
|
2316
2318
|
sorters: c,
|
|
2317
2319
|
summaries: J,
|
|
2318
|
-
updateSummary:
|
|
2320
|
+
updateSummary: lt,
|
|
2319
2321
|
toggleChildrenVisibiltyByCollapseStatus: M,
|
|
2320
2322
|
totalItems: q,
|
|
2321
|
-
unFold:
|
|
2322
|
-
updateDataView:
|
|
2323
|
-
visibleDataItems:
|
|
2324
|
-
shouldGroupingData: _
|
|
2323
|
+
unFold: De,
|
|
2324
|
+
updateDataView: me,
|
|
2325
|
+
visibleDataItems: ke,
|
|
2326
|
+
shouldGroupingData: _,
|
|
2327
|
+
pagination: ae
|
|
2325
2328
|
};
|
|
2326
2329
|
}
|
|
2327
2330
|
const go = {
|
|
@@ -2389,11 +2392,11 @@ class bo {
|
|
|
2389
2392
|
return e[n[0]];
|
|
2390
2393
|
}
|
|
2391
2394
|
getTextValue(e) {
|
|
2392
|
-
const n = e.split("."), o = this.value.split(",").map((i) => this.getPropValue(i,
|
|
2395
|
+
const n = e.split("."), o = this.value.split(",").map((i) => this.getPropValue(i, Ct(n)));
|
|
2393
2396
|
return o && o.length ? o.join(",") : "";
|
|
2394
2397
|
}
|
|
2395
2398
|
getValue() {
|
|
2396
|
-
const e = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o,
|
|
2399
|
+
const e = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, Ct(e)));
|
|
2397
2400
|
return n && n.length ? n.join(",") : "";
|
|
2398
2401
|
}
|
|
2399
2402
|
getDisplayText() {
|
|
@@ -2418,7 +2421,7 @@ class Lt {
|
|
|
2418
2421
|
this.value = e == null ? void 0 : e.value, this.editiorConfig = Object.assign({}, n), this.displayFormat = (e == null ? void 0 : e.displayFormat) || (n == null ? void 0 : n.displayFormat) || "", this.valueFormat = (e == null ? void 0 : e.valueFormat) || (n == null ? void 0 : n.valueFormat) || "";
|
|
2419
2422
|
}
|
|
2420
2423
|
formatValue() {
|
|
2421
|
-
const { formatTo: e, parseToDate: n } =
|
|
2424
|
+
const { formatTo: e, parseToDate: n } = ln();
|
|
2422
2425
|
if (!this.value)
|
|
2423
2426
|
return "";
|
|
2424
2427
|
const o = n(this.value, this.valueFormat);
|
|
@@ -2457,7 +2460,7 @@ class Dt {
|
|
|
2457
2460
|
this.begin = "", this.end = "", this.value = "";
|
|
2458
2461
|
}
|
|
2459
2462
|
formatValue(e) {
|
|
2460
|
-
const { formatTo: n, parseToDate: o } =
|
|
2463
|
+
const { formatTo: n, parseToDate: o } = ln();
|
|
2461
2464
|
if (!e)
|
|
2462
2465
|
return "";
|
|
2463
2466
|
const i = o(e, this.valueFormat);
|
|
@@ -2557,7 +2560,7 @@ class Ya {
|
|
|
2557
2560
|
return e[n[0]];
|
|
2558
2561
|
}
|
|
2559
2562
|
getTextValue(e) {
|
|
2560
|
-
const n = e.split("."), o = this.value.map((i) => this.getPropValue(i,
|
|
2563
|
+
const n = e.split("."), o = this.value.map((i) => this.getPropValue(i, Ct(n)));
|
|
2561
2564
|
return o && o.length ? o.join(",") : "";
|
|
2562
2565
|
}
|
|
2563
2566
|
getValue() {
|
|
@@ -2592,7 +2595,7 @@ class wo {
|
|
|
2592
2595
|
this.value = "", this.mapFields = [];
|
|
2593
2596
|
}
|
|
2594
2597
|
getValue() {
|
|
2595
|
-
return this.mapFields.map((e) =>
|
|
2598
|
+
return this.mapFields.map((e) => Ze(e, this.valueField || "id")).join(",");
|
|
2596
2599
|
}
|
|
2597
2600
|
getDisplayText() {
|
|
2598
2601
|
return this.value;
|
|
@@ -2845,21 +2848,21 @@ function Qa(t, e, n) {
|
|
|
2845
2848
|
return p > 250 * 6 ? c = "col-2" : p > 250 * 4 ? c = "col-3" : p > 250 * 3 ? c = "col-4" : p > 250 * 2 && (c = "col-6"), c;
|
|
2846
2849
|
}
|
|
2847
2850
|
const d = z(() => u(a.value));
|
|
2848
|
-
return
|
|
2851
|
+
return Be([n], ([p]) => {
|
|
2849
2852
|
i.value = p, s();
|
|
2850
2853
|
}), {
|
|
2851
2854
|
conditionClass: d,
|
|
2852
2855
|
resizeObserver: o
|
|
2853
2856
|
};
|
|
2854
2857
|
}
|
|
2855
|
-
const
|
|
2858
|
+
const Cn = /* @__PURE__ */ Ke({
|
|
2856
2859
|
name: "FConditionFields",
|
|
2857
2860
|
props: go,
|
|
2858
2861
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
2859
2862
|
setup(t, e) {
|
|
2860
2863
|
const n = E(), {
|
|
2861
2864
|
locale: o
|
|
2862
|
-
} =
|
|
2865
|
+
} = pt(), i = E(t.key), a = E(t.conditions), r = Oo(t), {
|
|
2863
2866
|
initialConditionValue: s,
|
|
2864
2867
|
fieldMap: u,
|
|
2865
2868
|
loadFieldConfigs: d
|
|
@@ -2867,10 +2870,10 @@ const bn = /* @__PURE__ */ Ze({
|
|
|
2867
2870
|
conditionClass: l,
|
|
2868
2871
|
resizeObserver: c
|
|
2869
2872
|
} = p;
|
|
2870
|
-
d(!0), s(a.value),
|
|
2873
|
+
d(!0), s(a.value), En(() => {
|
|
2871
2874
|
var _;
|
|
2872
2875
|
(_ = c.value) == null || _.unobserve(n.value);
|
|
2873
|
-
}),
|
|
2876
|
+
}), Be(() => t.conditions, () => {
|
|
2874
2877
|
a.value = t.conditions, s(a.value);
|
|
2875
2878
|
});
|
|
2876
2879
|
const v = z(() => ({
|
|
@@ -2918,7 +2921,7 @@ const bn = /* @__PURE__ */ Ze({
|
|
|
2918
2921
|
return S === ((M = _.value) == null ? void 0 : M.editorType);
|
|
2919
2922
|
}) && (y.beginValue = _.value.begin, y.endValue = _.value.end);
|
|
2920
2923
|
let x = ((k = y == null ? void 0 : y.appearance) == null ? void 0 : k.class) || t.itemClass;
|
|
2921
|
-
return y != null && y.multiLineLabel && (x = x + " farris-group-multi-label"), R(
|
|
2924
|
+
return y != null && y.multiLineLabel && (x = x + " farris-group-multi-label"), R(Rr, {
|
|
2922
2925
|
id: w,
|
|
2923
2926
|
key: w,
|
|
2924
2927
|
customClass: x,
|
|
@@ -2939,7 +2942,7 @@ const bn = /* @__PURE__ */ Ze({
|
|
|
2939
2942
|
ref: n
|
|
2940
2943
|
}, [F()]), [[rr("area-response")]]);
|
|
2941
2944
|
}
|
|
2942
|
-
}),
|
|
2945
|
+
}), cn = /* @__PURE__ */ new Map([
|
|
2943
2946
|
["appearance", Qt]
|
|
2944
2947
|
]), Za = /* @__PURE__ */ new Map([]), Ka = "root-viewmodel";
|
|
2945
2948
|
class el {
|
|
@@ -2999,8 +3002,8 @@ class el {
|
|
|
2999
3002
|
}), n.contents = [o];
|
|
3000
3003
|
const { selectedFields: a } = e;
|
|
3001
3004
|
a == null || a.forEach((s) => {
|
|
3002
|
-
if (s.$type ===
|
|
3003
|
-
const u =
|
|
3005
|
+
if (s.$type === vn.SimpleField) {
|
|
3006
|
+
const u = Ct(s), d = this.resolveControlClassByFormColumns(e), p = this.controlCreatorUtils.setFormFieldProperty(u, "", d);
|
|
3004
3007
|
p && i.push(p);
|
|
3005
3008
|
}
|
|
3006
3009
|
});
|
|
@@ -3051,10 +3054,10 @@ class el {
|
|
|
3051
3054
|
assembleViewModelFields(e) {
|
|
3052
3055
|
const n = [], { selectedFields: o } = e;
|
|
3053
3056
|
return o == null || o.forEach((i) => {
|
|
3054
|
-
if (i.$type ===
|
|
3057
|
+
if (i.$type === vn.SimpleField) {
|
|
3055
3058
|
let a = "blur";
|
|
3056
3059
|
const r = i.type.name;
|
|
3057
|
-
(r ===
|
|
3060
|
+
(r === hn.Enum || r === hn.Boolean) && (a = "change"), n.push({
|
|
3058
3061
|
type: "Form",
|
|
3059
3062
|
id: i.id,
|
|
3060
3063
|
fieldName: i.bindingField,
|
|
@@ -3150,7 +3153,7 @@ const ol = "https://json-schema.org/draft/2020-12/schema", rl = "https://farris-
|
|
|
3150
3153
|
/** 内部控件布局是否响应国际化 */
|
|
3151
3154
|
adaptForLanguage: { type: Boolean, default: !0 }
|
|
3152
3155
|
};
|
|
3153
|
-
|
|
3156
|
+
Nt(dl, cl, cn, tl);
|
|
3154
3157
|
const fl = "https://json-schema.org/draft/2020-12/schema", pl = "https://farris-design.gitee.io/form-group.schema.json", ml = "form-group", vl = "A Farris Input Component", hl = "object", gl = {
|
|
3155
3158
|
id: {
|
|
3156
3159
|
description: "The unique identifier for a form group",
|
|
@@ -3256,10 +3259,10 @@ const fl = "https://json-schema.org/draft/2020-12/schema", pl = "https://farris-
|
|
|
3256
3259
|
componentId: { type: String, default: "" },
|
|
3257
3260
|
errors: { type: Object, default: null }
|
|
3258
3261
|
};
|
|
3259
|
-
|
|
3262
|
+
Nt(
|
|
3260
3263
|
Mo,
|
|
3261
3264
|
Io,
|
|
3262
|
-
|
|
3265
|
+
cn,
|
|
3263
3266
|
void 0
|
|
3264
3267
|
);
|
|
3265
3268
|
function Bo(t, e, n) {
|
|
@@ -3310,7 +3313,7 @@ function Bo(t, e, n) {
|
|
|
3310
3313
|
}
|
|
3311
3314
|
function y(M, V) {
|
|
3312
3315
|
const { componentType: O } = M;
|
|
3313
|
-
let B =
|
|
3316
|
+
let B = fr(O, M, V);
|
|
3314
3317
|
n && n.onResolveNewComponentSchema && (B = n.onResolveNewComponentSchema(M, B));
|
|
3315
3318
|
const L = O.toLowerCase().replace(/-/g, "_");
|
|
3316
3319
|
return B && !B.id && B.type === O && (B.id = `${L}_${Math.random().toString().slice(2, 6)}`), B;
|
|
@@ -3364,8 +3367,8 @@ function Bo(t, e, n) {
|
|
|
3364
3367
|
if (n != null && n.getComponentTitle)
|
|
3365
3368
|
V = n.getComponentTitle();
|
|
3366
3369
|
else {
|
|
3367
|
-
const { text: L, title: X, label:
|
|
3368
|
-
V = L || X ||
|
|
3370
|
+
const { text: L, title: X, label: $, mainTitle: D, name: P, type: I } = e.schema;
|
|
3371
|
+
V = L || X || $ || D || P || ((B = re[I]) == null ? void 0 : B.name);
|
|
3369
3372
|
}
|
|
3370
3373
|
V && r.getControlBasicInfoMap().set(e.schema.id, {
|
|
3371
3374
|
componentTitle: V,
|
|
@@ -3376,11 +3379,11 @@ function Bo(t, e, n) {
|
|
|
3376
3379
|
var L;
|
|
3377
3380
|
const { changeObject: V } = M, { propertyID: O, propertyValue: B } = V;
|
|
3378
3381
|
if (["text", "title", "label", "name", "mainTitle"].includes((L = M == null ? void 0 : M.changeObject) == null ? void 0 : L.propertyID) && O && B && (T(), r)) {
|
|
3379
|
-
const X = r.getControlBasicInfoMap(),
|
|
3382
|
+
const X = r.getControlBasicInfoMap(), $ = X.keys().toArray().filter((D) => {
|
|
3380
3383
|
var P, I;
|
|
3381
3384
|
return ((P = X.get(D)) == null ? void 0 : P.reliedComponentId) === ((I = e == null ? void 0 : e.schema) == null ? void 0 : I.id);
|
|
3382
3385
|
});
|
|
3383
|
-
|
|
3386
|
+
$ != null && $.length && $.forEach((D) => {
|
|
3384
3387
|
const P = X.get(D).parentPathName.split(" > ");
|
|
3385
3388
|
P[0] = B, X.get(D).parentPathName = P.join(" > ");
|
|
3386
3389
|
});
|
|
@@ -3973,7 +3976,7 @@ class El {
|
|
|
3973
3976
|
const o = n && n.parent && n.parent.schema;
|
|
3974
3977
|
if (!o)
|
|
3975
3978
|
return;
|
|
3976
|
-
const i = o.contents.findIndex((r) => r.id === e), a =
|
|
3979
|
+
const i = o.contents.findIndex((r) => r.id === e), a = Ct(o.contents[i]);
|
|
3977
3980
|
o.contents.splice(i, 1), o.contents.splice(i, 0, a), Cl();
|
|
3978
3981
|
}
|
|
3979
3982
|
/**
|
|
@@ -4061,18 +4064,18 @@ const kl = {
|
|
|
4061
4064
|
* 实际支持 'visible'可见 | 'reserve-space' 占位不显示
|
|
4062
4065
|
*/
|
|
4063
4066
|
showType: { type: String, default: "visible" }
|
|
4064
|
-
}, Ol = /* @__PURE__ */
|
|
4067
|
+
}, Ol = /* @__PURE__ */ Ke({
|
|
4065
4068
|
name: "FDynamicFormLabel",
|
|
4066
4069
|
props: kl,
|
|
4067
4070
|
emits: [],
|
|
4068
4071
|
setup(t, e) {
|
|
4069
4072
|
E(t.title || t.text);
|
|
4070
4073
|
const n = E(t.required), o = E(t.text), i = E(t.valid), a = E(t.inValidTip);
|
|
4071
|
-
|
|
4074
|
+
Be(() => t.text, () => {
|
|
4072
4075
|
o.value = t.text;
|
|
4073
|
-
}),
|
|
4076
|
+
}), Be(() => t.required, (p, l) => {
|
|
4074
4077
|
p !== l && (n.value = p);
|
|
4075
|
-
}),
|
|
4078
|
+
}), Be([() => t.valid, () => t.inValidTip], ([p, l]) => {
|
|
4076
4079
|
i.value = p, a.value = l;
|
|
4077
4080
|
});
|
|
4078
4081
|
const r = z(() => i.value ? o.value : a.value), s = z(() => i.value ? "" : "color:red"), u = z(() => ({
|
|
@@ -4094,21 +4097,21 @@ const kl = {
|
|
|
4094
4097
|
class: "farris-label-info text-danger"
|
|
4095
4098
|
}, [Tt("*")]), t.showType === "visible" && o.value])]);
|
|
4096
4099
|
}
|
|
4097
|
-
}),
|
|
4098
|
-
let
|
|
4100
|
+
}), le = {}, se = {}, ce = {}, fe = {};
|
|
4101
|
+
let wn = !1;
|
|
4099
4102
|
function Il() {
|
|
4100
|
-
|
|
4103
|
+
wn || (wn = !0, jr.register(le, se, ce, fe), Dr.register(le, se, ce, fe), $r.register(le, se, ce, fe), Lr.register(le, se, ce, fe), Hr.register(le, se, ce, fe), Wr.register(le, se, ce, fe), yn.register(le, se, ce, fe), bn.register(le, se, ce, fe), yn.register(le, se, ce, fe), bn.register(le, se, ce, fe), nn.register(le, se, ce, fe), Ar.register(le, se, ce, fe), zr.register(le, se, ce, fe), qr.register(le, se, ce, fe), Gr.register(le, se, ce, fe), Ur.register(le, se, ce, fe), Yr.register(le, se, ce, fe), Xr.register(le, se, ce, fe), Nr.register(le, se, ce, fe), Jr.register(le, se, ce, fe), Hi.register(le, se, ce, fe), Ir.register(le, se, ce, fe), Qr.register(le, se, ce, fe), Ni.register(le, se, ce, fe), Kr.register(le, se, ce, fe), ei.register(le, se, ce, fe), ti.register(le, se, ce, fe), oi.register(le, se, ce, fe), ni.register(le, se, ce, fe), ri.register(le, se, ce, fe), ii.register(le, se, ce, fe), ai.register(le, se, ce, fe), li.register(le, se, ce, fe), si.register(le, se, ce, fe), ui.register(le, se, ce, fe), ci.register(le, se, ce, fe), di.register(le, se, ce, fe), Mr.register(le, se, ce, fe), fi.register(le, se, ce, fe), pi.register(le, se, ce, fe), mi.register(le, se, ce, fe), vi.register(le, se, ce, fe), gi.register(le, se, ce, fe), yi.register(le, se, ce, fe), hi.register(le, se, ce, fe), Mi.register(le, se, ce), Br.register(le, se, ce, fe), bi.register(le, se, ce, fe), Ci.register(le, se, ce, fe), wi.register(le, se, ce, fe), _i.register(le, se, ce, fe), Si.register(le, se, ce, fe), Pi.register(le, se, ce, fe), Er.register(le, se, ce, fe), Vr.register(le, se, ce, fe), xi.register(le, se, ce, fe), Ti.register(le, se, ce, fe), Fr.register(le, se, ce, fe), Fi.register(le, se, ce, fe), ki.register(le, se, ce, fe), Ei.register(le, se, ce, fe), Oi.register(le, se, ce, fe), Ii.register(le, se, ce, fe), Bi.register(le, se, ce, fe), Zr.register(le, se, ce, fe), Vi.register(le, se, ce, fe), Ri.register(le, se, ce, fe), Di.register(le, se, ce, fe), ji.register(le, se, ce, fe), $i.register(le, se, ce, fe), Li.register(le, se, ce, fe), Wi.register(le, se, ce, fe), Ai.register(le, se, ce, fe), zi.register(le, se, ce, fe), Tr.register(le, se, ce, fe), Gi.register(le, se, ce, fe), qi.register(le, se, ce, fe));
|
|
4101
4104
|
}
|
|
4102
4105
|
function Ml() {
|
|
4103
4106
|
Il();
|
|
4104
4107
|
function t(r) {
|
|
4105
|
-
const s =
|
|
4108
|
+
const s = le[r];
|
|
4106
4109
|
if (!s)
|
|
4107
4110
|
throw new Error(`Could not find the editor of type '${r}'`);
|
|
4108
4111
|
return s;
|
|
4109
4112
|
}
|
|
4110
4113
|
function e(r, s) {
|
|
4111
|
-
const u =
|
|
4114
|
+
const u = se[r];
|
|
4112
4115
|
return u ? u(s) : {};
|
|
4113
4116
|
}
|
|
4114
4117
|
function n(r) {
|
|
@@ -4213,13 +4216,13 @@ const Bl = {
|
|
|
4213
4216
|
type: Object,
|
|
4214
4217
|
default: null
|
|
4215
4218
|
}
|
|
4216
|
-
}, Vl = /* @__PURE__ */
|
|
4219
|
+
}, Vl = /* @__PURE__ */ Ke({
|
|
4217
4220
|
name: "FValidationMessage",
|
|
4218
4221
|
props: Bl,
|
|
4219
4222
|
emits: [],
|
|
4220
4223
|
setup(t, e) {
|
|
4221
4224
|
const n = E(t.errors);
|
|
4222
|
-
|
|
4225
|
+
Be(() => t.errors, (a) => {
|
|
4223
4226
|
n.value = a;
|
|
4224
4227
|
});
|
|
4225
4228
|
const o = E(!0), i = z(() => {
|
|
@@ -4241,7 +4244,7 @@ const Bl = {
|
|
|
4241
4244
|
class: "f-feedback-message"
|
|
4242
4245
|
}, [i.value])]);
|
|
4243
4246
|
}
|
|
4244
|
-
}), Nl = /* @__PURE__ */
|
|
4247
|
+
}), Nl = /* @__PURE__ */ Ke({
|
|
4245
4248
|
name: "FDynamicFormGroup",
|
|
4246
4249
|
props: Mo,
|
|
4247
4250
|
emits: ["change", "update:modelValue"],
|
|
@@ -4285,9 +4288,9 @@ const Bl = {
|
|
|
4285
4288
|
errors: c.value
|
|
4286
4289
|
}, null);
|
|
4287
4290
|
}
|
|
4288
|
-
return
|
|
4289
|
-
var
|
|
4290
|
-
n.value = T, o.value = C, i.value = k, a.value = S, r.value = M, s.value = V, u.value = ((
|
|
4291
|
+
return Be([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([T, C, k, S, M, V, O, B, L, X]) => {
|
|
4292
|
+
var $;
|
|
4293
|
+
n.value = T, o.value = C, i.value = k, a.value = S, r.value = M, s.value = V, u.value = (($ = i.value) == null ? void 0 : $.required) || O, d.value = B, p.value = L, c.value = X;
|
|
4291
4294
|
}), e.expose({
|
|
4292
4295
|
editorRef: l
|
|
4293
4296
|
}), () => p.value && R("div", {
|
|
@@ -4308,14 +4311,14 @@ const Bl = {
|
|
|
4308
4311
|
class: "farris-input-wrap"
|
|
4309
4312
|
}, [b.value(), g()])])])]);
|
|
4310
4313
|
}
|
|
4311
|
-
}), Rl = {}, Pl = {},
|
|
4314
|
+
}), Rl = {}, Pl = {}, Bt = class Bt {
|
|
4312
4315
|
/**
|
|
4313
4316
|
* 根据绑定字段类型获取可用的输入类控件
|
|
4314
4317
|
*/
|
|
4315
4318
|
static getEditorTypesByMDataType(e, n = !1, o = "") {
|
|
4316
4319
|
if (n)
|
|
4317
4320
|
return [{ key: re["language-textbox"].type, value: re["language-textbox"].name }];
|
|
4318
|
-
let i =
|
|
4321
|
+
let i = Bt.fieldControlTypeMapping[e];
|
|
4319
4322
|
if (o === "data-grid-column" && (i != null && i.length)) {
|
|
4320
4323
|
const a = [re["check-group"].type, re["radio-group"].type];
|
|
4321
4324
|
i = i.filter((r) => !a.includes(r.key));
|
|
@@ -4327,8 +4330,8 @@ const Bl = {
|
|
|
4327
4330
|
*/
|
|
4328
4331
|
static getAllInputTypes() {
|
|
4329
4332
|
const e = [];
|
|
4330
|
-
for (const n in
|
|
4331
|
-
|
|
4333
|
+
for (const n in Bt.fieldControlTypeMapping)
|
|
4334
|
+
Bt.fieldControlTypeMapping[n].forEach((o) => {
|
|
4332
4335
|
e.find((i) => i.key === o.key && i.value === o.value) || e.push({ key: o.key, value: o.value });
|
|
4333
4336
|
});
|
|
4334
4337
|
return e;
|
|
@@ -4346,7 +4349,7 @@ const Bl = {
|
|
|
4346
4349
|
/**
|
|
4347
4350
|
* <字段类型,可配置的控件类型列表>的映射
|
|
4348
4351
|
*/
|
|
4349
|
-
ee(
|
|
4352
|
+
ee(Bt, "fieldControlTypeMapping", {
|
|
4350
4353
|
String: [
|
|
4351
4354
|
{ key: re["input-group"].type, value: re["input-group"].name },
|
|
4352
4355
|
{ key: re.lookup.type, value: re.lookup.name },
|
|
@@ -4397,8 +4400,8 @@ ee(Vt, "fieldControlTypeMapping", {
|
|
|
4397
4400
|
{ key: re["radio-group"].type, value: re["radio-group"].name }
|
|
4398
4401
|
]
|
|
4399
4402
|
});
|
|
4400
|
-
let
|
|
4401
|
-
var
|
|
4403
|
+
let _n = Bt;
|
|
4404
|
+
var yt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4402
4405
|
function Ht(t) {
|
|
4403
4406
|
throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4404
4407
|
}
|
|
@@ -4455,74 +4458,74 @@ var Dl = { exports: {} };
|
|
|
4455
4458
|
function l(S, M) {
|
|
4456
4459
|
var V = arguments.length;
|
|
4457
4460
|
V === 1 && Array.isArray(S) === !1 && (M = S, S = []);
|
|
4458
|
-
var O, B, L, X,
|
|
4461
|
+
var O, B, L, X, $, D, P, I, j, A = null, J, q, ae = !1, G = 0, H, W = M || {};
|
|
4459
4462
|
W.moves === void 0 && (W.moves = w), W.accepts === void 0 && (W.accepts = w), W.invalid === void 0 && (W.invalid = ne), W.containers === void 0 && (W.containers = S || []), W.isContainer === void 0 && (W.isContainer = y), W.copy === void 0 && (W.copy = !1), W.copySortSource === void 0 && (W.copySortSource = !1), W.revertOnSpill === void 0 && (W.revertOnSpill = !1), W.removeOnSpill === void 0 && (W.removeOnSpill = !1), W.direction === void 0 && (W.direction = "vertical"), W.ignoreInputTextSelection === void 0 && (W.ignoreInputTextSelection = !0), W.mirrorContainer === void 0 && (W.mirrorContainer = d.body);
|
|
4460
4463
|
var Z = r({
|
|
4461
4464
|
containers: W.containers,
|
|
4462
|
-
start:
|
|
4465
|
+
start: He,
|
|
4463
4466
|
end: ve,
|
|
4464
|
-
cancel:
|
|
4467
|
+
cancel: we,
|
|
4465
4468
|
remove: K,
|
|
4466
|
-
destroy:
|
|
4467
|
-
canMove:
|
|
4469
|
+
destroy: ke,
|
|
4470
|
+
canMove: Se,
|
|
4468
4471
|
dragging: !1
|
|
4469
4472
|
});
|
|
4470
|
-
return W.removeOnSpill === !0 && Z.on("over",
|
|
4471
|
-
function
|
|
4473
|
+
return W.removeOnSpill === !0 && Z.on("over", at).on("out", mt), Te(), Z;
|
|
4474
|
+
function de(N) {
|
|
4472
4475
|
return Z.containers.indexOf(N) !== -1 || W.isContainer(N);
|
|
4473
4476
|
}
|
|
4474
|
-
function
|
|
4477
|
+
function Te(N) {
|
|
4475
4478
|
var U = N ? "remove" : "add";
|
|
4476
|
-
f(p, U, "mousedown", oe), f(p, U, "mouseup",
|
|
4479
|
+
f(p, U, "mousedown", oe), f(p, U, "mouseup", Le);
|
|
4477
4480
|
}
|
|
4478
4481
|
function be(N) {
|
|
4479
4482
|
var U = N ? "remove" : "add";
|
|
4480
|
-
f(p, U, "mousemove",
|
|
4483
|
+
f(p, U, "mousemove", ue);
|
|
4481
4484
|
}
|
|
4482
4485
|
function ye(N) {
|
|
4483
4486
|
var U = N ? "remove" : "add";
|
|
4484
4487
|
s[U](p, "selectstart", Y), s[U](p, "click", Y);
|
|
4485
4488
|
}
|
|
4486
|
-
function
|
|
4487
|
-
|
|
4489
|
+
function ke() {
|
|
4490
|
+
Te(!0), Le({});
|
|
4488
4491
|
}
|
|
4489
4492
|
function Y(N) {
|
|
4490
4493
|
J && N.preventDefault();
|
|
4491
4494
|
}
|
|
4492
4495
|
function oe(N) {
|
|
4493
|
-
X = N.clientX,
|
|
4496
|
+
X = N.clientX, $ = N.clientY;
|
|
4494
4497
|
var U = F(N) !== 1 || N.metaKey || N.ctrlKey;
|
|
4495
4498
|
if (!U) {
|
|
4496
|
-
var te = N.target,
|
|
4497
|
-
|
|
4499
|
+
var te = N.target, pe = _e(te);
|
|
4500
|
+
pe && (J = pe, be(), N.type === "mousedown" && (g(te) ? te.focus() : N.preventDefault()));
|
|
4498
4501
|
}
|
|
4499
4502
|
}
|
|
4500
|
-
function
|
|
4503
|
+
function ue(N) {
|
|
4501
4504
|
if (J) {
|
|
4502
4505
|
if (F(N) === 0) {
|
|
4503
|
-
|
|
4506
|
+
Le({});
|
|
4504
4507
|
return;
|
|
4505
4508
|
}
|
|
4506
|
-
if (!(N.clientX !== void 0 && Math.abs(N.clientX - X) <= (W.slideFactorX || 0) && N.clientY !== void 0 && Math.abs(N.clientY -
|
|
4509
|
+
if (!(N.clientX !== void 0 && Math.abs(N.clientX - X) <= (W.slideFactorX || 0) && N.clientY !== void 0 && Math.abs(N.clientY - $) <= (W.slideFactorY || 0))) {
|
|
4507
4510
|
if (W.ignoreInputTextSelection) {
|
|
4508
|
-
var U = k("clientX", N) || 0, te = k("clientY", N) || 0,
|
|
4509
|
-
if (g(
|
|
4511
|
+
var U = k("clientX", N) || 0, te = k("clientY", N) || 0, pe = d.elementFromPoint(U, te);
|
|
4512
|
+
if (g(pe))
|
|
4510
4513
|
return;
|
|
4511
4514
|
}
|
|
4512
|
-
var
|
|
4513
|
-
be(!0), ye(), ve(),
|
|
4515
|
+
var xe = J;
|
|
4516
|
+
be(!0), ye(), ve(), qe(xe), u.add(I || L, "gu-transit"), gt(), wt(), G = 0, We(N);
|
|
4514
4517
|
}
|
|
4515
4518
|
}
|
|
4516
4519
|
}
|
|
4517
|
-
function
|
|
4518
|
-
if (!(Z.dragging && O) && !
|
|
4519
|
-
for (var U = N; b(N) &&
|
|
4520
|
+
function _e(N) {
|
|
4521
|
+
if (!(Z.dragging && O) && !de(N)) {
|
|
4522
|
+
for (var U = N; b(N) && de(b(N)) === !1; )
|
|
4520
4523
|
if (W.invalid(N, U) || (N = b(N), !N))
|
|
4521
4524
|
return;
|
|
4522
4525
|
var te = b(N);
|
|
4523
4526
|
if (te && !W.invalid(N, U)) {
|
|
4524
|
-
var
|
|
4525
|
-
if (
|
|
4527
|
+
var pe = W.moves(N, te, U, T(N));
|
|
4528
|
+
if (pe)
|
|
4526
4529
|
return {
|
|
4527
4530
|
item: N,
|
|
4528
4531
|
source: te
|
|
@@ -4530,14 +4533,14 @@ var Dl = { exports: {} };
|
|
|
4530
4533
|
}
|
|
4531
4534
|
}
|
|
4532
4535
|
}
|
|
4533
|
-
function
|
|
4534
|
-
return !!
|
|
4536
|
+
function Se(N) {
|
|
4537
|
+
return !!_e(N);
|
|
4535
4538
|
}
|
|
4536
|
-
function
|
|
4537
|
-
var U =
|
|
4538
|
-
U &&
|
|
4539
|
+
function He(N) {
|
|
4540
|
+
var U = _e(N);
|
|
4541
|
+
U && qe(U);
|
|
4539
4542
|
}
|
|
4540
|
-
function
|
|
4543
|
+
function qe(N) {
|
|
4541
4544
|
Q(N.item, N.source) && (I = N.item.cloneNode(!0), Z.emit("cloned", I, N.item, "copy")), B = N.source, L = N.item, D = P = T(N.item), Z.dragging = !0, Z.emit("drag", L, B);
|
|
4542
4545
|
}
|
|
4543
4546
|
function ne() {
|
|
@@ -4546,108 +4549,108 @@ var Dl = { exports: {} };
|
|
|
4546
4549
|
function ve() {
|
|
4547
4550
|
if (Z.dragging) {
|
|
4548
4551
|
var N = I || L;
|
|
4549
|
-
|
|
4552
|
+
Ne(N, b(N));
|
|
4550
4553
|
}
|
|
4551
4554
|
}
|
|
4552
|
-
function
|
|
4555
|
+
function Ve() {
|
|
4553
4556
|
J = !1, be(!0), ye(!0);
|
|
4554
4557
|
}
|
|
4555
|
-
function
|
|
4556
|
-
if (
|
|
4557
|
-
var U = I || L, te = k("clientX", N) || 0,
|
|
4558
|
-
|
|
4558
|
+
function Le(N) {
|
|
4559
|
+
if (Ve(), !!Z.dragging) {
|
|
4560
|
+
var U = I || L, te = k("clientX", N) || 0, pe = k("clientY", N) || 0, xe = _(O, te, pe), Fe = Re(xe, te, pe);
|
|
4561
|
+
Fe && (I && W.copySortSource || !I || Fe !== B) ? Ne(U, Fe) : W.removeOnSpill ? K() : we();
|
|
4559
4562
|
}
|
|
4560
4563
|
}
|
|
4561
|
-
function
|
|
4564
|
+
function Ne(N, U) {
|
|
4562
4565
|
var te = b(N);
|
|
4563
|
-
I && W.copySortSource && U === B && te.removeChild(L),
|
|
4566
|
+
I && W.copySortSource && U === B && te.removeChild(L), me(U) ? Z.emit("cancel", N, B) : Z.emit("drop", N, U, B, P), De();
|
|
4564
4567
|
}
|
|
4565
4568
|
function K() {
|
|
4566
4569
|
if (Z.dragging) {
|
|
4567
4570
|
var N = I || L, U = b(N);
|
|
4568
|
-
U && U.removeChild(N), Z.emit(I ? "cancel" : "remove", N, U, B),
|
|
4571
|
+
U && U.removeChild(N), Z.emit(I ? "cancel" : "remove", N, U, B), De();
|
|
4569
4572
|
}
|
|
4570
4573
|
}
|
|
4571
|
-
function
|
|
4574
|
+
function we(N) {
|
|
4572
4575
|
if (Z.dragging) {
|
|
4573
|
-
var U = arguments.length > 0 ? N : W.revertOnSpill, te = I || L,
|
|
4574
|
-
|
|
4576
|
+
var U = arguments.length > 0 ? N : W.revertOnSpill, te = I || L, pe = b(te), xe = me(pe);
|
|
4577
|
+
xe === !1 && U && (I ? pe && pe.removeChild(I) : B.insertBefore(te, D)), xe || U ? Z.emit("cancel", te, B, B) : Z.emit("drop", te, pe, B, P), De();
|
|
4575
4578
|
}
|
|
4576
4579
|
}
|
|
4577
|
-
function
|
|
4580
|
+
function De() {
|
|
4578
4581
|
var N = I || L;
|
|
4579
|
-
|
|
4582
|
+
Ve(), ie(), he(), N && u.rm(N, "gu-transit"), j && clearTimeout(j), Z.dragging = !1, A && Z.emit("out", N, A, B), Z.emit("dragend", N, G), B = L = I = D = P = j = A = null;
|
|
4580
4583
|
}
|
|
4581
|
-
function
|
|
4584
|
+
function me(N, U) {
|
|
4582
4585
|
var te;
|
|
4583
4586
|
return U !== void 0 ? te = U : O ? te = P : te = T(I || L), N === B && te === D;
|
|
4584
4587
|
}
|
|
4585
|
-
function
|
|
4586
|
-
for (var
|
|
4587
|
-
|
|
4588
|
-
return
|
|
4589
|
-
function
|
|
4590
|
-
var
|
|
4591
|
-
if (
|
|
4588
|
+
function Re(N, U, te) {
|
|
4589
|
+
for (var pe = N; pe && !xe(); )
|
|
4590
|
+
pe = b(pe);
|
|
4591
|
+
return pe;
|
|
4592
|
+
function xe() {
|
|
4593
|
+
var Fe = de(pe);
|
|
4594
|
+
if (Fe === !1)
|
|
4592
4595
|
return !1;
|
|
4593
|
-
var
|
|
4594
|
-
return
|
|
4596
|
+
var Ee = Ce(pe, N), Pe = lt(pe, Ee, U, te), Me = me(pe, Pe);
|
|
4597
|
+
return Me ? !0 : W.accepts(L, pe, B, Pe);
|
|
4595
4598
|
}
|
|
4596
4599
|
}
|
|
4597
|
-
function
|
|
4600
|
+
function We(N) {
|
|
4598
4601
|
if (!O)
|
|
4599
4602
|
return;
|
|
4600
4603
|
N.preventDefault();
|
|
4601
4604
|
var U = k("clientX", N) || 0, te = k("clientY", N) || 0;
|
|
4602
4605
|
O.style.left = U - 2 + "px", O.style.top = te - 2 + "px";
|
|
4603
|
-
var
|
|
4604
|
-
(
|
|
4605
|
-
var Pe = b(
|
|
4606
|
-
if (
|
|
4607
|
-
Pe && Pe.removeChild(
|
|
4606
|
+
var pe = I || L, xe = _(O, U, te), Fe = Re(xe, U, te), Ee = Fe !== null && Fe !== A;
|
|
4607
|
+
(Ee || Fe === null) && (Je(), A = Fe, ze()), vt(xe, te);
|
|
4608
|
+
var Pe = b(pe);
|
|
4609
|
+
if (Fe === B && I && !W.copySortSource) {
|
|
4610
|
+
Pe && Pe.removeChild(pe);
|
|
4608
4611
|
return;
|
|
4609
4612
|
}
|
|
4610
|
-
var
|
|
4611
|
-
if (
|
|
4612
|
-
|
|
4613
|
+
var Me, je = Ce(Fe, xe);
|
|
4614
|
+
if (ae = $e(je, Fe), je !== null)
|
|
4615
|
+
Me = lt(Fe, je, U, te);
|
|
4613
4616
|
else if (W.revertOnSpill === !0 && !I)
|
|
4614
|
-
|
|
4617
|
+
Me = D, Fe = B;
|
|
4615
4618
|
else {
|
|
4616
|
-
I && Pe && Pe.removeChild(
|
|
4619
|
+
I && Pe && Pe.removeChild(pe), I && q && (q.style.display = "none");
|
|
4617
4620
|
return;
|
|
4618
4621
|
}
|
|
4619
|
-
q.style.display = "block",
|
|
4620
|
-
function
|
|
4621
|
-
Z.emit(
|
|
4622
|
+
q.style.display = "block", et(Me, pe, Ee), Me ? Xe(je, Me) : rt(Fe);
|
|
4623
|
+
function Ie(Ye) {
|
|
4624
|
+
Z.emit(Ye, pe, A, B);
|
|
4622
4625
|
}
|
|
4623
|
-
function
|
|
4624
|
-
|
|
4626
|
+
function ze() {
|
|
4627
|
+
Ee && Ie("over");
|
|
4625
4628
|
}
|
|
4626
|
-
function
|
|
4627
|
-
A &&
|
|
4629
|
+
function Je() {
|
|
4630
|
+
A && Ie("out");
|
|
4628
4631
|
}
|
|
4629
4632
|
}
|
|
4630
|
-
function
|
|
4633
|
+
function et(N, U, te) {
|
|
4631
4634
|
(N === U || N === T(U)) && (P = T(U)), (N === null && te || N !== U && N !== T(U)) && (P = N);
|
|
4632
4635
|
}
|
|
4633
|
-
function
|
|
4636
|
+
function at(N) {
|
|
4634
4637
|
u.rm(N, "gu-hide");
|
|
4635
4638
|
}
|
|
4636
|
-
function
|
|
4639
|
+
function mt(N) {
|
|
4637
4640
|
Z.dragging && u.add(N, "gu-hide");
|
|
4638
4641
|
}
|
|
4639
4642
|
function wt() {
|
|
4640
|
-
O || (O = document.createElement("div"), O.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;", O.innerHTML = W.getMirrorText && W.getMirrorText(L) || "控件", u.add(O, "gu-mirror"), W.mirrorContainer.appendChild(O), f(p, "add", "mousemove",
|
|
4643
|
+
O || (O = document.createElement("div"), O.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;", O.innerHTML = W.getMirrorText && W.getMirrorText(L) || "控件", u.add(O, "gu-mirror"), W.mirrorContainer.appendChild(O), f(p, "add", "mousemove", We), u.add(W.mirrorContainer, "gu-unselectable"), Z.emit("cloned", O, L, "mirror"));
|
|
4641
4644
|
}
|
|
4642
|
-
function
|
|
4645
|
+
function gt() {
|
|
4643
4646
|
if (q = document.createElement("div"), u.add(q, "gu-insertion"), L) {
|
|
4644
4647
|
var N = L.getBoundingClientRect();
|
|
4645
4648
|
q.style.left = N.left + "px", q.style.top = N.top + "px";
|
|
4646
4649
|
}
|
|
4647
|
-
|
|
4650
|
+
ae = !1, W.mirrorContainer.appendChild(q);
|
|
4648
4651
|
}
|
|
4649
4652
|
function ie() {
|
|
4650
|
-
O && (u.rm(W.mirrorContainer, "gu-unselectable"), f(p, "remove", "mousemove",
|
|
4653
|
+
O && (u.rm(W.mirrorContainer, "gu-unselectable"), f(p, "remove", "mousemove", We), b(O).removeChild(O), O = null);
|
|
4651
4654
|
}
|
|
4652
4655
|
function he() {
|
|
4653
4656
|
q && (b(q).removeChild(q), q = null);
|
|
@@ -4659,95 +4662,95 @@ var Dl = { exports: {} };
|
|
|
4659
4662
|
}
|
|
4660
4663
|
function $e(N, U) {
|
|
4661
4664
|
if (!U)
|
|
4662
|
-
return
|
|
4665
|
+
return ae;
|
|
4663
4666
|
var te = N || U && U.lastElementChild;
|
|
4664
4667
|
if (!te)
|
|
4665
4668
|
return !0;
|
|
4666
|
-
var
|
|
4667
|
-
if (
|
|
4669
|
+
var pe = getComputedStyle(N), xe = /^inline/.test(pe.getPropertyValue("display")) || /^(left|right)$/.test(pe.getPropertyValue("float"));
|
|
4670
|
+
if (xe)
|
|
4668
4671
|
return !0;
|
|
4669
4672
|
if (U) {
|
|
4670
|
-
var
|
|
4671
|
-
if (/flex$/.test(
|
|
4672
|
-
var Pe =
|
|
4673
|
+
var Fe = getComputedStyle(U), Ee = Fe.getPropertyValue("display");
|
|
4674
|
+
if (/flex$/.test(Ee)) {
|
|
4675
|
+
var Pe = Fe.getPropertyValue("flex-direction") || "row";
|
|
4673
4676
|
if (Pe === "row" || Pe === "row-reverse")
|
|
4674
|
-
return !
|
|
4677
|
+
return !Ae(U);
|
|
4675
4678
|
}
|
|
4676
4679
|
return !1;
|
|
4677
4680
|
}
|
|
4678
4681
|
return !0;
|
|
4679
4682
|
}
|
|
4680
|
-
function
|
|
4683
|
+
function Ae(N) {
|
|
4681
4684
|
if (!N.children || !N.children.length)
|
|
4682
4685
|
return !1;
|
|
4683
4686
|
for (const U of Array.from(N.children)) {
|
|
4684
|
-
const
|
|
4685
|
-
if (!
|
|
4687
|
+
const pe = (U.className && U.className.split(" ") || []).filter((xe) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(xe));
|
|
4688
|
+
if (!pe.length)
|
|
4686
4689
|
return !1;
|
|
4687
|
-
for (const
|
|
4688
|
-
const
|
|
4689
|
-
if (parseInt(
|
|
4690
|
+
for (const xe of pe) {
|
|
4691
|
+
const Fe = xe.slice(xe.lastIndexOf("-") + 1);
|
|
4692
|
+
if (parseInt(Fe, 10) !== 12)
|
|
4690
4693
|
return !1;
|
|
4691
4694
|
}
|
|
4692
4695
|
}
|
|
4693
4696
|
return !0;
|
|
4694
4697
|
}
|
|
4695
|
-
function
|
|
4698
|
+
function Xe(N, U) {
|
|
4696
4699
|
const te = U.getBoundingClientRect();
|
|
4697
|
-
if (q.style.left = te.left + "px", q.style.top = te.top + "px",
|
|
4700
|
+
if (q.style.left = te.left + "px", q.style.top = te.top + "px", ae) {
|
|
4698
4701
|
if (q.style.height = te.height + "px", q.style.width = "4px", N) {
|
|
4699
|
-
const
|
|
4700
|
-
|
|
4702
|
+
const pe = N.getBoundingClientRect();
|
|
4703
|
+
pe.top !== te.top && (q.style.left = pe.right + "px", q.style.top = pe.top + "px", q.style.height = pe.height + "px");
|
|
4701
4704
|
}
|
|
4702
4705
|
} else if (q.style.height = "4px", q.style.width = te.width + "px", H) {
|
|
4703
|
-
const
|
|
4704
|
-
te.top <
|
|
4706
|
+
const pe = H.getBoundingClientRect();
|
|
4707
|
+
te.top < pe.top && (q.style.display = "none");
|
|
4705
4708
|
}
|
|
4706
4709
|
U === L && L && (q.style.display = "none");
|
|
4707
4710
|
}
|
|
4708
|
-
function
|
|
4711
|
+
function rt(N) {
|
|
4709
4712
|
P = null;
|
|
4710
4713
|
var U = N.lastElementChild;
|
|
4711
4714
|
if (U) {
|
|
4712
4715
|
var te = U.getBoundingClientRect();
|
|
4713
|
-
|
|
4716
|
+
ae ? (q.style.left = te.right + "px", q.style.top = te.top + "px", q.style.height = te.height + "px", q.style.width = "4px") : (q.style.left = te.left + "px", q.style.top = te.bottom + "px", q.style.height = "4px", q.style.width = te.width + "px"), U === L && L && (q.style.display = "none");
|
|
4714
4717
|
} else
|
|
4715
4718
|
q.style.display = "none";
|
|
4716
4719
|
}
|
|
4717
|
-
function
|
|
4720
|
+
function vt(N, U) {
|
|
4718
4721
|
if (!W.mirrorContainer.contains(N) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (H = c(N), !H || !H.contains(N)))
|
|
4719
4722
|
return;
|
|
4720
|
-
const te = document.querySelector(".dgComponentSelected"),
|
|
4721
|
-
if (U - 30 <
|
|
4722
|
-
let
|
|
4723
|
-
H.scrollBy(0, -1 *
|
|
4723
|
+
const te = document.querySelector(".dgComponentSelected"), pe = H.getBoundingClientRect();
|
|
4724
|
+
if (U - 30 < pe.top && H.scrollTop > 0) {
|
|
4725
|
+
let xe = H.scrollTop < 10 ? H.scrollTop : 10;
|
|
4726
|
+
H.scrollBy(0, -1 * xe), te && H.contains(te) && (G = G + -1 * xe);
|
|
4724
4727
|
}
|
|
4725
|
-
if (U + 30 >
|
|
4726
|
-
const
|
|
4727
|
-
let
|
|
4728
|
-
H.scrollBy(0,
|
|
4728
|
+
if (U + 30 > pe.bottom && H.scrollTop < H.scrollHeight - H.clientHeight) {
|
|
4729
|
+
const xe = H.scrollHeight - H.clientHeight - H.scrollTop;
|
|
4730
|
+
let Fe = xe < 10 ? xe : 10;
|
|
4731
|
+
H.scrollBy(0, Fe), te && H.contains(te) && (G = G + Fe);
|
|
4729
4732
|
}
|
|
4730
4733
|
}
|
|
4731
|
-
function
|
|
4732
|
-
var
|
|
4733
|
-
return
|
|
4734
|
+
function lt(N, U, te, pe) {
|
|
4735
|
+
var xe = W.direction === "horizontal", Fe = W.direction === "mixed", Ee = U !== N ? Me() : Pe();
|
|
4736
|
+
return Ee;
|
|
4734
4737
|
function Pe() {
|
|
4735
|
-
var
|
|
4736
|
-
for (
|
|
4737
|
-
if (
|
|
4738
|
-
return
|
|
4738
|
+
var Ie = N.children.length, ze, Je, Ye;
|
|
4739
|
+
for (ze = 0; ze < Ie; ze++)
|
|
4740
|
+
if (Je = N.children[ze], Ye = Je.getBoundingClientRect(), xe && Ye.left + Ye.width / 2 > te || !Fe && !xe && Ye.top + Ye.height / 2 > pe || Fe && Ye.left + Ye.width > te && Ye.top + Ye.height > pe)
|
|
4741
|
+
return Je;
|
|
4739
4742
|
return null;
|
|
4740
4743
|
}
|
|
4741
|
-
function
|
|
4742
|
-
var
|
|
4743
|
-
if (
|
|
4744
|
-
var
|
|
4745
|
-
return
|
|
4744
|
+
function Me() {
|
|
4745
|
+
var Ie = U.getBoundingClientRect();
|
|
4746
|
+
if (Fe) {
|
|
4747
|
+
var ze = pe - Ie.top, Je = te - Ie.left, Ye = Ie.bottom - pe, It = Ie.right - te, Mt = Math.min(Je, It, ze, Ye), ge;
|
|
4748
|
+
return ae ? ge = It < Je : ge = Ye === Mt || It === Mt || Je === Mt, je(ge);
|
|
4746
4749
|
}
|
|
4747
|
-
return
|
|
4750
|
+
return je(xe ? te > Ie.left + m(Ie) / 2 : pe > Ie.top + x(Ie) / 2);
|
|
4748
4751
|
}
|
|
4749
|
-
function
|
|
4750
|
-
return
|
|
4752
|
+
function je(Ie) {
|
|
4753
|
+
return Ie ? T(U) : U;
|
|
4751
4754
|
}
|
|
4752
4755
|
}
|
|
4753
4756
|
function Q(N, U) {
|
|
@@ -4849,7 +4852,7 @@ var Dl = { exports: {} };
|
|
|
4849
4852
|
return S in O && !(S in V) && O[S] in V && (S = O[S]), V[S];
|
|
4850
4853
|
}
|
|
4851
4854
|
o.exports = l;
|
|
4852
|
-
}).call(this, typeof
|
|
4855
|
+
}).call(this, typeof yt < "u" ? yt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
4853
4856
|
}, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
|
|
4854
4857
|
3: [function(n, o, i) {
|
|
4855
4858
|
o.exports = function(r, s) {
|
|
@@ -4966,7 +4969,7 @@ var Dl = { exports: {} };
|
|
|
4966
4969
|
if (C = l[T], C.element === b && C.type === g && C.fn === h)
|
|
4967
4970
|
return T;
|
|
4968
4971
|
}
|
|
4969
|
-
}).call(this, typeof
|
|
4972
|
+
}).call(this, typeof yt < "u" ? yt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
4970
4973
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
4971
4974
|
7: [function(n, o, i) {
|
|
4972
4975
|
(function(a) {
|
|
@@ -4974,7 +4977,7 @@ var Dl = { exports: {} };
|
|
|
4974
4977
|
for (s in a)
|
|
4975
4978
|
u.test(s) && r.push(s.slice(2));
|
|
4976
4979
|
o.exports = r;
|
|
4977
|
-
}).call(this, typeof
|
|
4980
|
+
}).call(this, typeof yt < "u" ? yt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
4978
4981
|
}, {}],
|
|
4979
4982
|
8: [function(n, o, i) {
|
|
4980
4983
|
(function(a) {
|
|
@@ -5000,7 +5003,7 @@ var Dl = { exports: {} };
|
|
|
5000
5003
|
}
|
|
5001
5004
|
)
|
|
5002
5005
|
);
|
|
5003
|
-
}).call(this, typeof
|
|
5006
|
+
}).call(this, typeof yt < "u" ? yt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
5004
5007
|
}, {}],
|
|
5005
5008
|
9: [function(n, o, i) {
|
|
5006
5009
|
var a = o.exports = {}, r, s;
|
|
@@ -5148,7 +5151,7 @@ const No = /* @__PURE__ */ new Map([
|
|
|
5148
5151
|
["appearance", Qt],
|
|
5149
5152
|
["column", "columnOption"]
|
|
5150
5153
|
]);
|
|
5151
|
-
function
|
|
5154
|
+
function jl(t, e, n) {
|
|
5152
5155
|
var l;
|
|
5153
5156
|
const o = n.parentComponentInstance, i = o.schema.type, a = String(((l = o.schema.appearance) == null ? void 0 : l.class) || "").split(" "), r = i === "section" || i === "tab-page", s = a.includes("f-page-content-nav"), u = a.includes("f-page-main"), d = t.getSchemaByType("component");
|
|
5154
5157
|
d.id = `${e.id}-component`, d.componentType = "data-grid";
|
|
@@ -5157,7 +5160,7 @@ function $l(t, e, n) {
|
|
|
5157
5160
|
class: p
|
|
5158
5161
|
}, d.contents = [e], d;
|
|
5159
5162
|
}
|
|
5160
|
-
function
|
|
5163
|
+
function $l(t, e, n) {
|
|
5161
5164
|
const o = n.parentComponentInstance, i = String(o.schema.appearance.class || "").split(" "), a = i.includes("f-page-content-nav"), r = i.includes("f-page-main"), s = t.getSchemaByType("section");
|
|
5162
5165
|
s.id = `${e.id}-section`;
|
|
5163
5166
|
let u = "";
|
|
@@ -5170,8 +5173,8 @@ function Ll(t, e, n) {
|
|
|
5170
5173
|
function Ro(t, e, n) {
|
|
5171
5174
|
const i = n.parentComponentInstance.schema.type, a = i === "section" || i === "tab-page";
|
|
5172
5175
|
e.appearance = { class: "f-component-grid" };
|
|
5173
|
-
const s = (a ? Ll :
|
|
5174
|
-
return
|
|
5176
|
+
const s = (a ? Ll : $l)(t, e, n);
|
|
5177
|
+
return jl(t, s, n);
|
|
5175
5178
|
}
|
|
5176
5179
|
const Hl = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-design.gitee.io/tree-grid.schema.json", Al = "tree-grid", zl = "A Farris Data Grid Component", Gl = "object", ql = {
|
|
5177
5180
|
id: {
|
|
@@ -5963,8 +5966,8 @@ const Hl = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-
|
|
|
5963
5966
|
required: Ul,
|
|
5964
5967
|
events: Yl
|
|
5965
5968
|
};
|
|
5966
|
-
`${
|
|
5967
|
-
const
|
|
5969
|
+
`${$t.getLocaleValue("datagrid.loadingMessage")}`;
|
|
5970
|
+
const dn = {
|
|
5968
5971
|
/** 自动勾选子节点 */
|
|
5969
5972
|
autoCheckChildren: { type: Boolean, default: !1 },
|
|
5970
5973
|
/** 列集合 */
|
|
@@ -6045,7 +6048,7 @@ const cn = {
|
|
|
6045
6048
|
default: {
|
|
6046
6049
|
enable: !0,
|
|
6047
6050
|
width: 32,
|
|
6048
|
-
heading:
|
|
6051
|
+
heading: $t.getLocaleValue("datagrid.lineNumberTitle")
|
|
6049
6052
|
}
|
|
6050
6053
|
},
|
|
6051
6054
|
/** 行配置 */
|
|
@@ -6095,7 +6098,7 @@ const cn = {
|
|
|
6095
6098
|
width: { type: Number, default: -1 },
|
|
6096
6099
|
/** 启用虚拟渲染 */
|
|
6097
6100
|
virtualized: { type: Boolean, default: !1 }
|
|
6098
|
-
}, Xl =
|
|
6101
|
+
}, Xl = Nt(dn, Po, No, Ro), Jl = ha(), Ql = va(), Do = Object.assign({}, dn, { componentId: { type: String, default: "" } }), Zl = Nt(Do, Po, No, Ro), Kl = ga();
|
|
6099
6102
|
function es(t, e, n, o, i, a, r, s, u, d, p, l, c, v, f, F, _) {
|
|
6100
6103
|
const {
|
|
6101
6104
|
calculateCellPositionInRow: y
|
|
@@ -6112,7 +6115,7 @@ function es(t, e, n, o, i, a, r, s, u, d, p, l, c, v, f, F, _) {
|
|
|
6112
6115
|
} = fo(t, e, w, _, s, u, d, p, l, c, v), C = [T];
|
|
6113
6116
|
function k(B, L) {
|
|
6114
6117
|
const X = y(B);
|
|
6115
|
-
return _.value.filter((
|
|
6118
|
+
return _.value.filter(($) => $.visible !== !1).map(($, D) => C[$.type]($, X, L, D));
|
|
6116
6119
|
}
|
|
6117
6120
|
function S() {
|
|
6118
6121
|
return R("div", {
|
|
@@ -6149,47 +6152,47 @@ function es(t, e, n, o, i, a, r, s, u, d, p, l, c, v, f, F, _) {
|
|
|
6149
6152
|
renderDataArea: O
|
|
6150
6153
|
};
|
|
6151
6154
|
}
|
|
6152
|
-
const qt = /* @__PURE__ */
|
|
6155
|
+
const qt = /* @__PURE__ */ Ke({
|
|
6153
6156
|
name: "FTreeGrid",
|
|
6154
|
-
props:
|
|
6157
|
+
props: dn,
|
|
6155
6158
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "unSelectItem", "selectItem"],
|
|
6156
6159
|
setup(t, e) {
|
|
6157
|
-
var
|
|
6158
|
-
const o = ((
|
|
6160
|
+
var It, Mt;
|
|
6161
|
+
const o = ((It = t.rowOption) == null ? void 0 : It.height) || 28, i = E(20), a = E(t.columns), r = kn(t), {
|
|
6159
6162
|
idField: s
|
|
6160
|
-
} = r, u = E(), d = E(), p = E(), l = E(), c = E(), v = E([]), f = E(!1), F = E(((
|
|
6163
|
+
} = r, u = E(), d = E(), p = E(), l = E(), c = E(), v = E([]), f = E(!1), F = E(((Mt = t.rowOption) == null ? void 0 : Mt.wrapContent) || !1), _ = vr(t, r), y = On(), w = In(t), {
|
|
6161
6164
|
collapseField: m
|
|
6162
6165
|
} = w, {
|
|
6163
6166
|
showLoading: x,
|
|
6164
6167
|
renderLoading: b
|
|
6165
|
-
} =
|
|
6168
|
+
} = hr(t, u), g = Mn(t, /* @__PURE__ */ new Map(), y, w, r), {
|
|
6166
6169
|
dataView: h
|
|
6167
|
-
} = g, T =
|
|
6170
|
+
} = g, T = Bn(t, g, r, v, e), C = gr(t, v, g, r, T, e), k = z(() => t.disabled), S = z(() => t.virtualized ? Math.min(g.dataView.value.length, i.value) : g.dataView.value.length), {
|
|
6168
6171
|
containerStyleObject: M
|
|
6169
|
-
} =
|
|
6172
|
+
} = Vn(t), V = yr(t), {
|
|
6170
6173
|
applyCommands: O
|
|
6171
6174
|
} = V;
|
|
6172
6175
|
O(a);
|
|
6173
|
-
const B =
|
|
6176
|
+
const B = Nn(t), L = br(t), {
|
|
6174
6177
|
applyColumnSorter: X,
|
|
6175
|
-
columnContext:
|
|
6178
|
+
columnContext: $,
|
|
6176
6179
|
updateColumnRenderContext: D
|
|
6177
6180
|
} = B;
|
|
6178
6181
|
X(g, L);
|
|
6179
|
-
const P =
|
|
6182
|
+
const P = Rn(t, $), I = Pn(t, e, T, r), j = Dn(t, e, r, I, v), A = jn(t), J = $n(t, j, A), q = Ln(t, g, j, w, r, A, J), ae = Hn(t, a, g, S, 0, q), {
|
|
6180
6183
|
getVisualData: G
|
|
6181
|
-
} =
|
|
6184
|
+
} = ae, H = Wn(t, $), W = An(t, T), {
|
|
6182
6185
|
sidebarWidth: Z
|
|
6183
|
-
} = W,
|
|
6184
|
-
onWheel:
|
|
6186
|
+
} = W, de = zn(t, g, v, $, ae, S, 0, Z), {
|
|
6187
|
+
onWheel: Te,
|
|
6185
6188
|
dataGridWidth: be,
|
|
6186
6189
|
viewPortHeight: ye,
|
|
6187
|
-
viewPortWidth:
|
|
6190
|
+
viewPortWidth: ke,
|
|
6188
6191
|
resetScroll: Y,
|
|
6189
6192
|
updateVisibleRowsOnLatestVisibleScope: oe
|
|
6190
|
-
} =
|
|
6191
|
-
calculateColumnsSize:
|
|
6192
|
-
} =
|
|
6193
|
+
} = de, ue = Gn(t, $, d, ke, P), {
|
|
6194
|
+
calculateColumnsSize: _e
|
|
6195
|
+
} = ue, Se = Cr(), He = wr(d, c, g, Se, de), qe = _r(t, e, B, g, P, _, de), ne = z(() => ({
|
|
6193
6196
|
"fv-grid": !0,
|
|
6194
6197
|
"fv-grid-bordered": t.showBorder,
|
|
6195
6198
|
"fv-grid-horizontal-bordered": t.showHorizontalLines,
|
|
@@ -6199,85 +6202,85 @@ const qt = /* @__PURE__ */ Ze({
|
|
|
6199
6202
|
"fv-grid-content-hover": f.value,
|
|
6200
6203
|
"fv-grid-wrap-content": F.value
|
|
6201
6204
|
})), {
|
|
6202
|
-
renderDataArea:
|
|
6203
|
-
} = es(t, e, p, l, c, H, B, g,
|
|
6204
|
-
renderGridHeader:
|
|
6205
|
-
renderGridColumnResizeOverlay:
|
|
6205
|
+
renderDataArea: Ve
|
|
6206
|
+
} = es(t, e, p, l, c, H, B, g, j, w, I, T, C, de, ae, A, v), {
|
|
6207
|
+
renderGridHeader: Le,
|
|
6208
|
+
renderGridColumnResizeOverlay: Ne,
|
|
6206
6209
|
shouldShowHeader: K
|
|
6207
|
-
} =
|
|
6208
|
-
renderDataGridSidebar:
|
|
6209
|
-
} =
|
|
6210
|
-
renderDisableMask:
|
|
6211
|
-
} =
|
|
6212
|
-
renderHorizontalScrollbar:
|
|
6213
|
-
} =
|
|
6214
|
-
renderVerticalScrollbar:
|
|
6215
|
-
} =
|
|
6216
|
-
function
|
|
6217
|
-
var ge,
|
|
6210
|
+
} = Sr(t, e, d, l, c, B, g, qe, He, y, Se, ue, P, T, W, L, de, ke, v), {
|
|
6211
|
+
renderDataGridSidebar: we
|
|
6212
|
+
} = qn(t, I, T, W, de), {
|
|
6213
|
+
renderDisableMask: De
|
|
6214
|
+
} = xr(), {
|
|
6215
|
+
renderHorizontalScrollbar: me
|
|
6216
|
+
} = Un(t, d, de), {
|
|
6217
|
+
renderVerticalScrollbar: Re
|
|
6218
|
+
} = Yn(t, d, de);
|
|
6219
|
+
function We() {
|
|
6220
|
+
var ge, Oe, tt;
|
|
6218
6221
|
if (d.value && d.value.clientHeight > 0 && ((ge = d.value) == null ? void 0 : ge.clientWidth) > 0) {
|
|
6219
|
-
const
|
|
6220
|
-
|
|
6222
|
+
const nt = Math.ceil(d.value.clientHeight / o);
|
|
6223
|
+
nt > i.value && (i.value = nt, oe()), ye.value = ((Oe = p.value) == null ? void 0 : Oe.clientHeight) || 0, be.value = ((tt = d.value) == null ? void 0 : tt.clientWidth) || 0, _e();
|
|
6221
6224
|
}
|
|
6222
6225
|
}
|
|
6223
6226
|
Ot(() => {
|
|
6224
|
-
d.value && (i.value = Math.max(Math.ceil(d.value.clientHeight / o), i.value), v.value = G(0, S.value + 0 - 1),
|
|
6225
|
-
d.value && (be.value = d.value.clientWidth), p.value && (
|
|
6227
|
+
d.value && (i.value = Math.max(Math.ceil(d.value.clientHeight / o), i.value), v.value = G(0, S.value + 0 - 1), sn(d.value, We), _e(), jt(() => {
|
|
6228
|
+
d.value && (be.value = d.value.clientWidth), p.value && (ke.value = p.value.clientWidth, ye.value = p.value.clientHeight);
|
|
6226
6229
|
})), x.value && b();
|
|
6227
6230
|
}), Xt(() => {
|
|
6228
|
-
}),
|
|
6229
|
-
d.value &&
|
|
6231
|
+
}), Be(ke, () => {
|
|
6232
|
+
d.value && _e();
|
|
6230
6233
|
});
|
|
6231
|
-
function
|
|
6234
|
+
function et(ge) {
|
|
6232
6235
|
g.collapseTo(ge), g.reOrderVisibleIndex(), Y();
|
|
6233
6236
|
}
|
|
6234
|
-
function
|
|
6237
|
+
function at(ge) {
|
|
6235
6238
|
g.expandTo(ge), g.reOrderVisibleIndex(), Y();
|
|
6236
6239
|
}
|
|
6237
|
-
function
|
|
6240
|
+
function mt() {
|
|
6238
6241
|
const ge = T.getSelectionRow();
|
|
6239
6242
|
return ge ? ge.dataIndex - 1 : -1;
|
|
6240
6243
|
}
|
|
6241
6244
|
function wt() {
|
|
6242
|
-
const ge =
|
|
6245
|
+
const ge = mt();
|
|
6243
6246
|
g.insertNewDataItem(ge), v.value = G(0, S.value + 0 - 1);
|
|
6244
6247
|
}
|
|
6245
|
-
function
|
|
6246
|
-
const ge =
|
|
6248
|
+
function gt() {
|
|
6249
|
+
const ge = mt();
|
|
6247
6250
|
g.insertNewChildDataItem(ge), v.value = G(0, S.value + 0 - 1);
|
|
6248
6251
|
}
|
|
6249
|
-
function ie(ge,
|
|
6250
|
-
const
|
|
6251
|
-
g.insertNewChildDataItems(ge,
|
|
6252
|
+
function ie(ge, Oe) {
|
|
6253
|
+
const tt = v.value.find((it) => it.raw[s.value] === Oe), nt = tt ? tt.dataIndex - 1 : -1;
|
|
6254
|
+
g.insertNewChildDataItems(ge, nt);
|
|
6252
6255
|
}
|
|
6253
6256
|
function he() {
|
|
6254
|
-
const ge =
|
|
6255
|
-
g.removeHierarchyDataItem(ge), v.value = G(0, S.value + 0 - 1),
|
|
6257
|
+
const ge = mt(), Oe = C.getNextSelectableHierarchyItemId(ge);
|
|
6258
|
+
g.removeHierarchyDataItem(ge), v.value = G(0, S.value + 0 - 1), Oe && T.selectItemById(Oe);
|
|
6256
6259
|
}
|
|
6257
6260
|
function Ce(ge) {
|
|
6258
|
-
|
|
6261
|
+
j.onEditingRow(ge);
|
|
6259
6262
|
}
|
|
6260
6263
|
function $e(ge) {
|
|
6261
|
-
|
|
6264
|
+
j.acceptEditingRow(ge);
|
|
6262
6265
|
}
|
|
6263
|
-
function
|
|
6264
|
-
|
|
6266
|
+
function Ae(ge) {
|
|
6267
|
+
j.cancelEditingRow(ge);
|
|
6265
6268
|
}
|
|
6266
|
-
function
|
|
6267
|
-
ge && (a.value = ge, O(a), D(a.value), X(g, L),
|
|
6269
|
+
function Xe(ge) {
|
|
6270
|
+
ge && (a.value = ge, O(a), D(a.value), X(g, L), _e());
|
|
6268
6271
|
}
|
|
6269
|
-
|
|
6270
|
-
|
|
6272
|
+
Be(() => t.columns, (ge) => {
|
|
6273
|
+
Xe(ge);
|
|
6271
6274
|
});
|
|
6272
|
-
function
|
|
6273
|
-
ge && (g.load(ge), g.reOrderVisibleIndex(),
|
|
6275
|
+
function rt(ge, Oe) {
|
|
6276
|
+
ge && (g.load(ge), g.reOrderVisibleIndex(), Oe != null && Oe.keepScrollPosition ? de.scrollTo(de.offsetY.value) : Y());
|
|
6274
6277
|
}
|
|
6275
|
-
function
|
|
6278
|
+
function vt(ge) {
|
|
6276
6279
|
T.selectItemById(ge);
|
|
6277
6280
|
}
|
|
6278
|
-
function
|
|
6279
|
-
const
|
|
6280
|
-
|
|
6281
|
+
function lt(ge) {
|
|
6282
|
+
const Oe = v.value.find((tt) => tt.raw[r.idField.value] === ge);
|
|
6283
|
+
Oe && I.clickRowItem(Oe);
|
|
6281
6284
|
}
|
|
6282
6285
|
function Q(ge) {
|
|
6283
6286
|
I.activeRowById(ge);
|
|
@@ -6291,104 +6294,104 @@ const qt = /* @__PURE__ */ Ze({
|
|
|
6291
6294
|
function te() {
|
|
6292
6295
|
T.clearSelection();
|
|
6293
6296
|
}
|
|
6294
|
-
const
|
|
6295
|
-
renderEmpty:
|
|
6296
|
-
} =
|
|
6297
|
-
function
|
|
6297
|
+
const pe = z(() => !v.value || !v.value.length), {
|
|
6298
|
+
renderEmpty: xe
|
|
6299
|
+
} = Xn(e);
|
|
6300
|
+
function Fe() {
|
|
6298
6301
|
return T.getSelectionRow();
|
|
6299
6302
|
}
|
|
6300
|
-
function
|
|
6303
|
+
function Ee(ge) {
|
|
6301
6304
|
T.unSelectItemByIds(ge);
|
|
6302
6305
|
}
|
|
6303
6306
|
function Pe() {
|
|
6304
6307
|
return T.currentSelectedDataId.value;
|
|
6305
6308
|
}
|
|
6306
|
-
function
|
|
6307
|
-
const
|
|
6308
|
-
if (
|
|
6309
|
-
if (Object.keys(
|
|
6310
|
-
Object.prototype.hasOwnProperty.call(
|
|
6311
|
-
}),
|
|
6309
|
+
function Me(ge, Oe, tt) {
|
|
6310
|
+
const nt = h.value.find((it) => it[s.value] === ge);
|
|
6311
|
+
if (nt) {
|
|
6312
|
+
if (Object.keys(nt).forEach((Ue) => {
|
|
6313
|
+
Object.prototype.hasOwnProperty.call(Oe, Ue) && (nt[Ue] = Oe[Ue]);
|
|
6314
|
+
}), tt) {
|
|
6312
6315
|
const {
|
|
6313
|
-
collapseField:
|
|
6316
|
+
collapseField: Ue,
|
|
6314
6317
|
disabledField: _t,
|
|
6315
6318
|
checkedField: St,
|
|
6316
6319
|
visibleField: xt
|
|
6317
|
-
} =
|
|
6318
|
-
|
|
6320
|
+
} = tt;
|
|
6321
|
+
Ue && !ut(Oe[Ue]) && (nt.__fv_collapse__ = Oe[Ue]), St && !ut(Oe[St]) && (nt.__fv_checked__ = Oe[St]), _t && !ut(Oe[_t]) && (nt.__fv_disabled__ = Oe[_t]), xt && !ut(Oe[xt]) && (nt.__fv_visible__ = Oe[xt]);
|
|
6319
6322
|
}
|
|
6320
|
-
const
|
|
6321
|
-
if (
|
|
6322
|
-
if (
|
|
6323
|
-
|
|
6324
|
-
}),
|
|
6323
|
+
const it = v.value.find((Ue) => Ue.raw[s.value] === ge), pn = v.value.findIndex((Ue) => Ue.raw[s.value] === ge);
|
|
6324
|
+
if (it) {
|
|
6325
|
+
if (it.raw = nt, Object.keys(it.data).forEach((Ue) => {
|
|
6326
|
+
it.data[Ue].updateData(nt);
|
|
6327
|
+
}), tt) {
|
|
6325
6328
|
const {
|
|
6326
|
-
collapseField:
|
|
6329
|
+
collapseField: Ue,
|
|
6327
6330
|
disabledField: _t,
|
|
6328
6331
|
checkedField: St,
|
|
6329
6332
|
visibleField: xt
|
|
6330
|
-
} =
|
|
6331
|
-
|
|
6333
|
+
} = tt;
|
|
6334
|
+
Ue && !ut(Oe[Ue]) && (it.collapse = Oe[Ue]), St && !ut(Oe[St]) && (it.checked = Oe[St]), _t && !ut(Oe[_t]) && (it.disabled = Oe[_t]), xt && !ut(Oe[xt]) && (it.visible = Oe[xt]);
|
|
6332
6335
|
}
|
|
6333
|
-
v.value = [...v.value.slice(0,
|
|
6336
|
+
v.value = [...v.value.slice(0, pn), it, ...v.value.slice(pn + 1)];
|
|
6334
6337
|
}
|
|
6335
6338
|
}
|
|
6336
6339
|
}
|
|
6337
|
-
function
|
|
6340
|
+
function je(ge) {
|
|
6338
6341
|
return Object.prototype.hasOwnProperty.call(ge, "raw") ? g.hasRealChildren(ge.raw) : g.hasRealChildren(ge);
|
|
6339
6342
|
}
|
|
6340
|
-
function
|
|
6341
|
-
const
|
|
6342
|
-
return
|
|
6343
|
+
function Ie(ge) {
|
|
6344
|
+
const Oe = g.dataView.value.find((tt) => tt[s.value] === ge);
|
|
6345
|
+
return Oe ? Oe[m.value] : "";
|
|
6343
6346
|
}
|
|
6344
|
-
function
|
|
6347
|
+
function ze() {
|
|
6345
6348
|
return m.value;
|
|
6346
6349
|
}
|
|
6347
6350
|
e.expose({
|
|
6348
6351
|
activeRowById: Q,
|
|
6349
6352
|
addNewDataItem: wt,
|
|
6350
|
-
addNewChildDataItem:
|
|
6353
|
+
addNewChildDataItem: gt,
|
|
6351
6354
|
addChildrenToNode: ie,
|
|
6352
|
-
collapseTo:
|
|
6353
|
-
expandTo:
|
|
6355
|
+
collapseTo: et,
|
|
6356
|
+
expandTo: at,
|
|
6354
6357
|
removeDataItem: he,
|
|
6355
6358
|
editDataItem: Ce,
|
|
6356
6359
|
acceptDataItem: $e,
|
|
6357
|
-
cancelDataItem:
|
|
6358
|
-
updateColumns:
|
|
6359
|
-
updateDataSource:
|
|
6360
|
-
selectItemById:
|
|
6360
|
+
cancelDataItem: Ae,
|
|
6361
|
+
updateColumns: Xe,
|
|
6362
|
+
updateDataSource: rt,
|
|
6363
|
+
selectItemById: vt,
|
|
6361
6364
|
selectItemByIds: N,
|
|
6362
6365
|
getSelectedItems: U,
|
|
6363
6366
|
clearSelection: te,
|
|
6364
|
-
getSelectionRow:
|
|
6365
|
-
clickRowItemById:
|
|
6366
|
-
unSelectItemByIds:
|
|
6367
|
+
getSelectionRow: Fe,
|
|
6368
|
+
clickRowItemById: lt,
|
|
6369
|
+
unSelectItemByIds: Ee,
|
|
6367
6370
|
getCurrentRowId: Pe,
|
|
6368
|
-
reassignRowData:
|
|
6369
|
-
hasChildren:
|
|
6370
|
-
getCollapseField:
|
|
6371
|
-
getCollapseStatusById:
|
|
6371
|
+
reassignRowData: Me,
|
|
6372
|
+
hasChildren: je,
|
|
6373
|
+
getCollapseField: ze,
|
|
6374
|
+
getCollapseStatusById: Ie
|
|
6372
6375
|
});
|
|
6373
|
-
const
|
|
6376
|
+
const Je = z(() => {
|
|
6374
6377
|
const ge = {};
|
|
6375
|
-
return
|
|
6376
|
-
}),
|
|
6378
|
+
return de.shouldShowHorizontalScrollbar.value && (ge.paddingBottom = "10px"), de.shouldShowVirticalScrollbar.value && (ge.paddingRight = "10px"), ge;
|
|
6379
|
+
}), Ye = z(() => ({
|
|
6377
6380
|
...M.value,
|
|
6378
6381
|
borderRadius: "5px"
|
|
6379
6382
|
}));
|
|
6380
6383
|
return () => R("div", {
|
|
6381
6384
|
ref: u,
|
|
6382
6385
|
class: ne.value,
|
|
6383
|
-
style:
|
|
6384
|
-
onWheel:
|
|
6385
|
-
}, [d.value && K.value &&
|
|
6386
|
+
style: Ye.value,
|
|
6387
|
+
onWheel: Te
|
|
6388
|
+
}, [d.value && K.value && Le(), R("div", {
|
|
6386
6389
|
ref: d,
|
|
6387
6390
|
class: ve.value,
|
|
6388
6391
|
onMouseover: () => f.value = !0,
|
|
6389
6392
|
onMouseleave: () => f.value = !1,
|
|
6390
|
-
style:
|
|
6391
|
-
}, [d.value &&
|
|
6393
|
+
style: Je.value
|
|
6394
|
+
}, [d.value && we(v), d.value && Ve(), d.value && pe.value && xe(), d.value && me(), d.value && Re()]), Ne(), k.value && De()]);
|
|
6392
6395
|
}
|
|
6393
6396
|
}), ts = {
|
|
6394
6397
|
id: { type: String, default: "" },
|
|
@@ -6407,7 +6410,7 @@ const qt = /* @__PURE__ */ Ze({
|
|
|
6407
6410
|
ignore: { type: Boolean, default: !1 }
|
|
6408
6411
|
}, ns = {
|
|
6409
6412
|
id: { type: String }
|
|
6410
|
-
}, os = /* @__PURE__ */
|
|
6413
|
+
}, os = /* @__PURE__ */ Ke({
|
|
6411
6414
|
name: "FDesignerPlaceholder",
|
|
6412
6415
|
props: ns,
|
|
6413
6416
|
emits: [],
|
|
@@ -6439,14 +6442,14 @@ const qt = /* @__PURE__ */ Ze({
|
|
|
6439
6442
|
}
|
|
6440
6443
|
});
|
|
6441
6444
|
function rs(t) {
|
|
6442
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
6445
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !xn(t);
|
|
6443
6446
|
}
|
|
6444
|
-
const rn = /* @__PURE__ */
|
|
6447
|
+
const rn = /* @__PURE__ */ Ke({
|
|
6445
6448
|
name: "FDesignerItem",
|
|
6446
6449
|
props: ts,
|
|
6447
6450
|
emits: ["selectionChange", "dragEnd"],
|
|
6448
6451
|
setup(t, e) {
|
|
6449
|
-
const n = E(`${t.modelValue.id}-component`), o = E(t.canMove), i = E(t.canDelete), a = E(!1), r = E(t.modelValue), s = E(t.componentId || ""), u = E(""), d = E(""), p = E(t.customClass), l = E(), c =
|
|
6452
|
+
const n = E(`${t.modelValue.id}-component`), o = E(t.canMove), i = E(t.canDelete), a = E(!1), r = E(t.modelValue), s = E(t.componentId || ""), u = E(""), d = E(""), p = E(t.customClass), l = E(), c = bt("canvas-dragula"), v = E(), f = bt("design-item-context");
|
|
6450
6453
|
function F(P) {
|
|
6451
6454
|
P && Object.assign(r.value, P);
|
|
6452
6455
|
}
|
|
@@ -6459,10 +6462,10 @@ const rn = /* @__PURE__ */ Ze({
|
|
|
6459
6462
|
updateContextSchema: F
|
|
6460
6463
|
};
|
|
6461
6464
|
ir("design-item-context", _);
|
|
6462
|
-
const y =
|
|
6465
|
+
const y = bt("useFormSchema"), w = bt("designer-host-service"), m = bt("external-container-id"), x = z(() => {
|
|
6463
6466
|
var A;
|
|
6464
6467
|
const P = t.modelValue.appearance && t.modelValue.appearance.class || "", I = ((A = v.value) == null ? void 0 : A.getCustomButtons) && v.value.getCustomButtons();
|
|
6465
|
-
let
|
|
6468
|
+
let j = {
|
|
6466
6469
|
"farris-component": !0,
|
|
6467
6470
|
// 受position-relative影响,整个容器的高度不能被撑起
|
|
6468
6471
|
"flex-fill": r.value.id === "root-component",
|
|
@@ -6473,34 +6476,34 @@ const rn = /* @__PURE__ */ Ze({
|
|
|
6473
6476
|
dgComponentSelected: l.value && l.value.classList.contains("dgComponentSelected"),
|
|
6474
6477
|
dgComponentFocused: l.value && l.value.classList.contains("dgComponentFocused")
|
|
6475
6478
|
};
|
|
6476
|
-
return
|
|
6479
|
+
return j[`farris-component-${r.value.type}`] = !0, j = Kt(j, P), j = Kt(j, d.value), j = Kt(j, p.value), j;
|
|
6477
6480
|
}), b = z(() => {
|
|
6478
6481
|
const P = {}, I = t.modelValue.appearance && t.modelValue.appearance.style || "";
|
|
6479
|
-
return I && I.split(";").reduce((
|
|
6482
|
+
return I && I.split(";").reduce((j, A) => {
|
|
6480
6483
|
const [J, q] = A.split(":");
|
|
6481
|
-
return
|
|
6482
|
-
}, P), u.value && u.value.split(";").reduce((
|
|
6484
|
+
return j[J] = q, j;
|
|
6485
|
+
}, P), u.value && u.value.split(";").reduce((j, A) => {
|
|
6483
6486
|
const [J, q] = A.split(":");
|
|
6484
|
-
return J && (
|
|
6487
|
+
return J && (j[J] = q), j;
|
|
6485
6488
|
}, P), P;
|
|
6486
6489
|
});
|
|
6487
6490
|
function g(P, I) {
|
|
6488
|
-
var J, q,
|
|
6491
|
+
var J, q, ae;
|
|
6489
6492
|
if (P && (P.preventDefault(), P.stopPropagation()), (J = w == null ? void 0 : w.designerContext) != null && J.checkCanDeleteControl && !w.designerContext.checkCanDeleteControl(I))
|
|
6490
6493
|
return;
|
|
6491
6494
|
if (v.value.triggerBelongedComponentToDeleteWhenDeleted) {
|
|
6492
6495
|
const G = v.value.getBelongedComponentInstance(v);
|
|
6493
6496
|
if (G && G.parent) {
|
|
6494
6497
|
const H = E(G == null ? void 0 : G.parent), W = H.value.contents.findIndex((Z) => Z.id === G.schema.id);
|
|
6495
|
-
(
|
|
6498
|
+
(ae = (q = H.value) == null ? void 0 : q.contents) == null || ae.splice(W, 1), At.value++;
|
|
6496
6499
|
}
|
|
6497
6500
|
return;
|
|
6498
6501
|
}
|
|
6499
6502
|
v.value.onRemoveComponent(w);
|
|
6500
|
-
let
|
|
6501
|
-
if (I.type === "component" && (
|
|
6502
|
-
const G =
|
|
6503
|
-
|
|
6503
|
+
let j = f, A = (G) => G.id === I.id;
|
|
6504
|
+
if (I.type === "component" && (j = f == null ? void 0 : f.parent, A = (G) => G.component === I.id), j && j.schema.contents) {
|
|
6505
|
+
const G = j.schema.contents.findIndex(A);
|
|
6506
|
+
j.schema.contents.splice(G, 1), At.value++, e.emit("selectionChange");
|
|
6504
6507
|
}
|
|
6505
6508
|
}
|
|
6506
6509
|
function h(P) {
|
|
@@ -6530,14 +6533,14 @@ const rn = /* @__PURE__ */ Ze({
|
|
|
6530
6533
|
function C() {
|
|
6531
6534
|
var I;
|
|
6532
6535
|
const P = ((I = v.value) == null ? void 0 : I.getCustomButtons) && v.value.getCustomButtons();
|
|
6533
|
-
return P && !!P.length && P.map((
|
|
6536
|
+
return P && !!P.length && P.map((j) => R("div", {
|
|
6534
6537
|
role: "button",
|
|
6535
|
-
class: `btn component-settings-button ${
|
|
6536
|
-
title:
|
|
6537
|
-
ref:
|
|
6538
|
-
onClick: (A) =>
|
|
6538
|
+
class: `btn component-settings-button ${j.class || ""}`,
|
|
6539
|
+
title: j.title,
|
|
6540
|
+
ref: j.id,
|
|
6541
|
+
onClick: (A) => j.onClick && j.onClick(A)
|
|
6539
6542
|
}, [R("i", {
|
|
6540
|
-
class:
|
|
6543
|
+
class: j.icon
|
|
6541
6544
|
}, null)]));
|
|
6542
6545
|
}
|
|
6543
6546
|
function k(P) {
|
|
@@ -6546,17 +6549,17 @@ const rn = /* @__PURE__ */ Ze({
|
|
|
6546
6549
|
"data-noattach": "true"
|
|
6547
6550
|
}, [R("div", null, [h(P), T(), C()])]);
|
|
6548
6551
|
}
|
|
6549
|
-
function S(P, I,
|
|
6550
|
-
e.emit("selectionChange", P, I,
|
|
6552
|
+
function S(P, I, j, A) {
|
|
6553
|
+
e.emit("selectionChange", P, I, j, A);
|
|
6551
6554
|
}
|
|
6552
6555
|
function M() {
|
|
6553
6556
|
e.emit("dragEnd");
|
|
6554
6557
|
}
|
|
6555
6558
|
function V(P) {
|
|
6556
6559
|
let I;
|
|
6557
|
-
const
|
|
6560
|
+
const j = P.type, A = Rl[j], J = Pl[j], q = J ? J(P) : {};
|
|
6558
6561
|
q.customClass = t.ignore ? q.customClass : "", q.componentId = s.value, q.id = P.id;
|
|
6559
|
-
const
|
|
6562
|
+
const ae = P.contents && P.contents.length === 0;
|
|
6560
6563
|
return P.contents && !!P.contents.length && A ? R(A, Et({
|
|
6561
6564
|
ref: v
|
|
6562
6565
|
}, q), rs(I = P.contents.map((H) => R(rn, {
|
|
@@ -6568,7 +6571,7 @@ const rn = /* @__PURE__ */ Ze({
|
|
|
6568
6571
|
onDragEnd: M
|
|
6569
6572
|
}, null))) ? I : {
|
|
6570
6573
|
default: () => [I]
|
|
6571
|
-
}) : A ?
|
|
6574
|
+
}) : A ? ae ? R(A, Et({
|
|
6572
6575
|
ref: v
|
|
6573
6576
|
}, q), {
|
|
6574
6577
|
default: () => [R(os, null, null)]
|
|
@@ -6595,7 +6598,7 @@ const rn = /* @__PURE__ */ Ze({
|
|
|
6595
6598
|
}, null);
|
|
6596
6599
|
}
|
|
6597
6600
|
}
|
|
6598
|
-
|
|
6601
|
+
Be([() => t.modelValue, () => t.componentId], ([P, I]) => {
|
|
6599
6602
|
r.value = P, n.value = `${P.id}-component`, I && (s.value = I), ar(l);
|
|
6600
6603
|
}, {
|
|
6601
6604
|
deep: !0
|
|
@@ -6609,12 +6612,12 @@ const rn = /* @__PURE__ */ Ze({
|
|
|
6609
6612
|
const I = P == null ? void 0 : P.target;
|
|
6610
6613
|
L(I), xl(I);
|
|
6611
6614
|
}
|
|
6612
|
-
function
|
|
6615
|
+
function $() {
|
|
6613
6616
|
var P, I;
|
|
6614
6617
|
if (l.value) {
|
|
6615
6618
|
(I = (P = r.value) == null ? void 0 : P.contents) != null && I.length && l.value.addEventListener("scroll", X);
|
|
6616
|
-
const
|
|
6617
|
-
|
|
6619
|
+
const j = l.value.querySelector(".drag-container");
|
|
6620
|
+
j && j.addEventListener("scroll", X);
|
|
6618
6621
|
}
|
|
6619
6622
|
}
|
|
6620
6623
|
Ot(() => {
|
|
@@ -6622,17 +6625,17 @@ const rn = /* @__PURE__ */ Ze({
|
|
|
6622
6625
|
const P = l.value.querySelector(`[data-dragref='${v.value.schema.id}-container']`);
|
|
6623
6626
|
c && P && c.attachComponents(P, r.value), a.value = v.value.canNested !== void 0 ? v.value.canNested : a.value, i.value = v.value.canDelete !== void 0 ? v.value.canDelete : i.value, o.value = v.value.canMove !== void 0 ? v.value.canMove : o.value, u.value = v.value.styles || "", d.value = v.value.designerClass || "", l.value && (l.value.componentInstance = v, l.value.designItemContext = _), v.value.belongedComponentId = s.value, v.value.setComponentBasicInfoMap(w);
|
|
6624
6627
|
}
|
|
6625
|
-
|
|
6626
|
-
}),
|
|
6628
|
+
$(), At.value++;
|
|
6629
|
+
}), En(() => {
|
|
6627
6630
|
l.value && l.value.removeEventListener("scroll", X);
|
|
6628
6631
|
});
|
|
6629
6632
|
function D(P) {
|
|
6630
6633
|
P && (P.preventDefault(), P.stopPropagation());
|
|
6631
6634
|
let I = _.designerItemElementRef;
|
|
6632
|
-
const
|
|
6633
|
-
if (
|
|
6635
|
+
const j = l.value;
|
|
6636
|
+
if (j) {
|
|
6634
6637
|
const A = document.getElementsByClassName("dgComponentFocused");
|
|
6635
|
-
A && A.length === 1 && A[0] === l.value || (Array.from(A).forEach((q) => q.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((q) => q.classList.remove("dgComponentSelected")),
|
|
6638
|
+
A && A.length === 1 && A[0] === l.value || (Array.from(A).forEach((q) => q.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((q) => q.classList.remove("dgComponentSelected")), j.classList.add("dgComponentFocused"), e.emit("selectionChange", r.value.type, r.value, s.value, v.value), v.value.getDraggableDesignItemElement && (I = v.value.getDraggableDesignItemElement(_), I && I.value && I.value.classList.add("dgComponentSelected")));
|
|
6636
6639
|
}
|
|
6637
6640
|
Vo(I == null ? void 0 : I.value);
|
|
6638
6641
|
}
|
|
@@ -7070,9 +7073,9 @@ function ss(t, e, n, o, i) {
|
|
|
7070
7073
|
if (O && O(h, V), h.value.primaryColumnsWidth + k <= C)
|
|
7071
7074
|
return h.value.primaryColumns = [...S, ...M], h.value.primaryColumnsWidth += k, h.value.rightColumns = [], h.value.rightColumnsWidth = 0, !0;
|
|
7072
7075
|
const B = /* @__PURE__ */ new Map();
|
|
7073
|
-
return B.set("primary", []), B.set("right", []), h.value.primaryColumns.reduce((X,
|
|
7076
|
+
return B.set("primary", []), B.set("right", []), h.value.primaryColumns.reduce((X, $) => {
|
|
7074
7077
|
var D, P;
|
|
7075
|
-
return
|
|
7078
|
+
return $.fixed === "right" ? (D = X.get("right")) == null || D.push($) : (P = X.get("primary")) == null || P.push($), X;
|
|
7076
7079
|
}, B), (L = B.get("right")) != null && L.length && (h.value.primaryColumns = [...B.get("primary") || []], h.value.rightColumns = [...B.get("right") || []]), h.value.primaryColumnsWidth = 0, h.value.rightColumnsWidth = 0, !1;
|
|
7077
7080
|
}
|
|
7078
7081
|
function g() {
|
|
@@ -7095,12 +7098,12 @@ function ss(t, e, n, o, i) {
|
|
|
7095
7098
|
m(e), e.value = Object.assign({}, e.value);
|
|
7096
7099
|
}
|
|
7097
7100
|
}
|
|
7098
|
-
return
|
|
7101
|
+
return Be(() => {
|
|
7099
7102
|
var h;
|
|
7100
7103
|
return (h = t.columnOption) == null ? void 0 : h.fitColumns;
|
|
7101
7104
|
}, (h, T) => {
|
|
7102
7105
|
h !== T && h && g();
|
|
7103
|
-
}),
|
|
7106
|
+
}), Be(c, (h, T) => {
|
|
7104
7107
|
h !== T && l.value && g();
|
|
7105
7108
|
}), { calculateColumnHeaders: m, calculateColumnsSize: g, calculateColumnsWidth: x };
|
|
7106
7109
|
}
|
|
@@ -7240,13 +7243,13 @@ function ds(t, e, n, o, i, a, r, s) {
|
|
|
7240
7243
|
}
|
|
7241
7244
|
return { getVisualData: f, maxVisibleRowIndex: u, minVisibleRowIndex: d, toggleGroupRow: F };
|
|
7242
7245
|
}
|
|
7243
|
-
const fs = /* @__PURE__ */
|
|
7246
|
+
const fs = /* @__PURE__ */ Ke({
|
|
7244
7247
|
name: "FTreeGridDesign",
|
|
7245
7248
|
props: Do,
|
|
7246
7249
|
emits: [],
|
|
7247
7250
|
setup(t, e) {
|
|
7248
|
-
var
|
|
7249
|
-
const n = E(), o = 0, i = ((
|
|
7251
|
+
var ue, _e;
|
|
7252
|
+
const n = E(), o = 0, i = ((ue = t.rowOption) == null ? void 0 : ue.height) || 28, a = E(20), r = E(t.columns), s = Qo(t), u = E(), d = E(), p = E([]), l = E(!1), c = E(((_e = t.rowOption) == null ? void 0 : _e.wrapContent) || !1), v = bt("designer-host-service"), f = bt("design-item-context"), F = ls(f, v), _ = Bo(n, f, F);
|
|
7250
7253
|
_.value.designerClass = "f-utils-fill-flex-column";
|
|
7251
7254
|
const y = Ao(), w = zo(t), m = ho(t, /* @__PURE__ */ new Map(), y, w, s), x = Ko(t, m, s, p, e), b = z(() => m.dataView.value.length), {
|
|
7252
7255
|
containerStyleObject: g
|
|
@@ -7258,21 +7261,21 @@ const fs = /* @__PURE__ */ Ze({
|
|
|
7258
7261
|
applyColumnSorter: k,
|
|
7259
7262
|
columnContext: S,
|
|
7260
7263
|
updateColumnRenderContext: M
|
|
7261
|
-
} = C, V = qu(), O = Wa(t, S), B = Zo(t, e, x, s), L = Jo(t, e, s, B), X = Uo(t),
|
|
7264
|
+
} = C, V = qu(), O = Wa(t, S), B = Zo(t, e, x, s), L = Jo(t, e, s, B), X = Uo(t), $ = Yo(t, L, X), D = Xo(t, m, L, w, s, X, $), P = ds(t, r, m, b, o, D), {
|
|
7262
7265
|
getVisualData: I
|
|
7263
|
-
} = P,
|
|
7266
|
+
} = P, j = Hu(t, x), {
|
|
7264
7267
|
sidebarWidth: A
|
|
7265
|
-
} =
|
|
7268
|
+
} = j;
|
|
7266
7269
|
p.value = I(0, b.value + o - 1);
|
|
7267
7270
|
const J = qo(t, m, p, S, P, b, o, A), {
|
|
7268
7271
|
onWheel: q,
|
|
7269
|
-
dataGridWidth:
|
|
7272
|
+
dataGridWidth: ae,
|
|
7270
7273
|
viewPortHeight: G,
|
|
7271
7274
|
viewPortWidth: H,
|
|
7272
7275
|
updateVisibleRowsOnLatestVisibleScope: W
|
|
7273
7276
|
} = J, Z = ss(t, S, u, H, O), {
|
|
7274
|
-
calculateColumnsSize:
|
|
7275
|
-
} = Z,
|
|
7277
|
+
calculateColumnsSize: de
|
|
7278
|
+
} = Z, Te = z(() => ({
|
|
7276
7279
|
"drag-container": !0,
|
|
7277
7280
|
"fv-grid": !0,
|
|
7278
7281
|
"fv-grid-bordered": t.showBorder,
|
|
@@ -7284,28 +7287,28 @@ const fs = /* @__PURE__ */ Ze({
|
|
|
7284
7287
|
})), {
|
|
7285
7288
|
renderGridHeader: ye
|
|
7286
7289
|
} = is(f, t, C, J, "tree-grid-column"), {
|
|
7287
|
-
renderHorizontalScrollbar:
|
|
7290
|
+
renderHorizontalScrollbar: ke
|
|
7288
7291
|
} = Da(t, u, J);
|
|
7289
7292
|
function Y() {
|
|
7290
|
-
var
|
|
7291
|
-
const
|
|
7292
|
-
|
|
7293
|
+
var He, qe;
|
|
7294
|
+
const Se = Math.ceil(u.value.clientHeight / i);
|
|
7295
|
+
Se > a.value && (a.value = Se, W()), G.value = ((He = d.value) == null ? void 0 : He.clientHeight) || 0, ae.value = ((qe = u.value) == null ? void 0 : qe.clientWidth) || 0, de();
|
|
7293
7296
|
}
|
|
7294
7297
|
Ot(() => {
|
|
7295
|
-
n.value.componentInstance = _, u.value && (a.value = Math.max(Math.ceil(u.value.clientHeight / i), a.value), p.value = I(0, b.value + o - 1),
|
|
7296
|
-
u.value && (
|
|
7298
|
+
n.value.componentInstance = _, u.value && (a.value = Math.max(Math.ceil(u.value.clientHeight / i), a.value), p.value = I(0, b.value + o - 1), sn(u.value, Y), de(), jt(() => {
|
|
7299
|
+
u.value && (ae.value = u.value.clientWidth), d.value && (H.value = d.value.clientWidth, G.value = d.value.clientHeight);
|
|
7297
7300
|
}));
|
|
7298
7301
|
});
|
|
7299
|
-
function oe(
|
|
7300
|
-
|
|
7302
|
+
function oe(Se) {
|
|
7303
|
+
Se && (r.value = Se, T(r), M(r.value), k(m, V), de());
|
|
7301
7304
|
}
|
|
7302
|
-
return
|
|
7303
|
-
oe(
|
|
7304
|
-
}),
|
|
7305
|
-
u.value &&
|
|
7305
|
+
return Be(() => t.columns, (Se) => {
|
|
7306
|
+
oe(Se);
|
|
7307
|
+
}), Be(H, () => {
|
|
7308
|
+
u.value && de();
|
|
7306
7309
|
}), e.expose(_.value), () => R("div", {
|
|
7307
7310
|
ref: n,
|
|
7308
|
-
class:
|
|
7311
|
+
class: Te.value,
|
|
7309
7312
|
style: g.value,
|
|
7310
7313
|
onWheel: q,
|
|
7311
7314
|
dragref: `${f.schema.id}-container`
|
|
@@ -7318,7 +7321,7 @@ const fs = /* @__PURE__ */ Ze({
|
|
|
7318
7321
|
onMouseleave: () => {
|
|
7319
7322
|
l.value = !1;
|
|
7320
7323
|
}
|
|
7321
|
-
}, [
|
|
7324
|
+
}, [ke()])]);
|
|
7322
7325
|
}
|
|
7323
7326
|
});
|
|
7324
7327
|
qt.register = (t, e, n, o) => {
|
|
@@ -7327,7 +7330,7 @@ qt.register = (t, e, n, o) => {
|
|
|
7327
7330
|
qt.registerDesigner = (t, e, n) => {
|
|
7328
7331
|
t["tree-grid"] = fs, e["tree-grid"] = Zl;
|
|
7329
7332
|
};
|
|
7330
|
-
|
|
7333
|
+
Qn(qt);
|
|
7331
7334
|
const ps = /* @__PURE__ */ new Map([
|
|
7332
7335
|
["appearance", Qt]
|
|
7333
7336
|
]);
|
|
@@ -7465,7 +7468,7 @@ const vs = "https://json-schema.org/draft/2020-12/schema", hs = "https://farris-
|
|
|
7465
7468
|
onClick: { type: Function, default: () => {
|
|
7466
7469
|
} }
|
|
7467
7470
|
};
|
|
7468
|
-
|
|
7471
|
+
Nt(ks, _s, ps, ms, Es);
|
|
7469
7472
|
const Os = "https://json-schema.org/draft/2020-12/schema", Is = "https://farris-design.gitee.io/modal.schema.json", Ms = "modal", Bs = "弹窗组件", Vs = "object", Ns = {
|
|
7470
7473
|
id: {
|
|
7471
7474
|
description: "组件唯一标识",
|
|
@@ -7585,12 +7588,12 @@ const Os = "https://json-schema.org/draft/2020-12/schema", Is = "https://farris-
|
|
|
7585
7588
|
properties: Ns,
|
|
7586
7589
|
required: Rs
|
|
7587
7590
|
}, Ds = /* @__PURE__ */ new Map([
|
|
7588
|
-
["appearance",
|
|
7591
|
+
["appearance", pr]
|
|
7589
7592
|
]);
|
|
7590
|
-
function
|
|
7593
|
+
function js(t, e, n) {
|
|
7591
7594
|
return e;
|
|
7592
7595
|
}
|
|
7593
|
-
function
|
|
7596
|
+
function $s() {
|
|
7594
7597
|
function t(e, n) {
|
|
7595
7598
|
const o = {};
|
|
7596
7599
|
return o.beforeClose = (i) => n.call("beforeClose", [i, e]), o;
|
|
@@ -7599,7 +7602,7 @@ function js() {
|
|
|
7599
7602
|
resolve: t
|
|
7600
7603
|
};
|
|
7601
7604
|
}
|
|
7602
|
-
const
|
|
7605
|
+
const jo = {
|
|
7603
7606
|
/**
|
|
7604
7607
|
* 允许点击遮罩关闭对话框
|
|
7605
7608
|
*/
|
|
@@ -7679,8 +7682,8 @@ const $o = {
|
|
|
7679
7682
|
src: { type: String, default: "" },
|
|
7680
7683
|
footerHeight: { type: Number, default: 60 },
|
|
7681
7684
|
host: { type: Object, default: "body" }
|
|
7682
|
-
}, Ls =
|
|
7683
|
-
class
|
|
7685
|
+
}, Ls = an(jo, Ps, Ds, js), Hs = $s();
|
|
7686
|
+
class Ge {
|
|
7684
7687
|
constructor(e, n) {
|
|
7685
7688
|
this.x = e, this.y = n;
|
|
7686
7689
|
}
|
|
@@ -7694,12 +7697,12 @@ class Ae {
|
|
|
7694
7697
|
}
|
|
7695
7698
|
static fromEvent(e, n = null) {
|
|
7696
7699
|
if (this.isMouseEvent(e))
|
|
7697
|
-
return new
|
|
7700
|
+
return new Ge(e.clientX, e.clientY);
|
|
7698
7701
|
if (n === null || e.changedTouches.length === 1)
|
|
7699
|
-
return new
|
|
7702
|
+
return new Ge(e.changedTouches[0].clientX, e.changedTouches[0].clientY);
|
|
7700
7703
|
for (let o = 0; o < e.changedTouches.length; o++)
|
|
7701
7704
|
if (e.changedTouches[o].target === n)
|
|
7702
|
-
return new
|
|
7705
|
+
return new Ge(e.changedTouches[o].clientX, e.changedTouches[o].clientY);
|
|
7703
7706
|
}
|
|
7704
7707
|
static isMouseEvent(e) {
|
|
7705
7708
|
return Object.prototype.toString.apply(e).indexOf("MouseEvent") === 8;
|
|
@@ -7708,7 +7711,7 @@ class Ae {
|
|
|
7708
7711
|
return !!e && "x" in e && "y" in e;
|
|
7709
7712
|
}
|
|
7710
7713
|
static getCurrent(e) {
|
|
7711
|
-
const n = new
|
|
7714
|
+
const n = new Ge(0, 0);
|
|
7712
7715
|
if (window) {
|
|
7713
7716
|
const o = window.getComputedStyle(e);
|
|
7714
7717
|
if (o) {
|
|
@@ -7720,7 +7723,7 @@ class Ae {
|
|
|
7720
7723
|
return null;
|
|
7721
7724
|
}
|
|
7722
7725
|
static copy(e) {
|
|
7723
|
-
return new
|
|
7726
|
+
return new Ge(0, 0).set(e);
|
|
7724
7727
|
}
|
|
7725
7728
|
get value() {
|
|
7726
7729
|
return { x: this.x, y: this.y };
|
|
@@ -7766,18 +7769,18 @@ class Ft {
|
|
|
7766
7769
|
function Ws(t, e) {
|
|
7767
7770
|
const n = E(), o = E(), i = E(), a = E(), r = E(), s = E(), u = E(), d = E(), p = E(), l = E(), c = E(), v = E(t.resizeable), f = E(), F = E(t.draggable), _ = E(!1);
|
|
7768
7771
|
function y() {
|
|
7769
|
-
const
|
|
7772
|
+
const $ = o.value || document.body, D = window.getComputedStyle($);
|
|
7770
7773
|
if (!D || !n.value)
|
|
7771
7774
|
return;
|
|
7772
|
-
const P =
|
|
7775
|
+
const P = Ge.getTransformInfo(n.value), I = {};
|
|
7773
7776
|
u.value && (I.deltaL = n.value.offsetLeft - u.value.x, I.deltaT = n.value.offsetTop - u.value.y);
|
|
7774
|
-
const
|
|
7775
|
-
I.width =
|
|
7777
|
+
const j = D.getPropertyValue("position");
|
|
7778
|
+
I.width = $.clientWidth, I.height = $.clientHeight, I.pr = parseInt(D.getPropertyValue("padding-right"), 10), I.pb = parseInt(D.getPropertyValue("padding-bottom"), 10), I.position = D.getPropertyValue("position"), j === "static" && ($.style.position = "relative"), I.translateX = P.x, I.translateY = P.y, l.value = I;
|
|
7776
7779
|
}
|
|
7777
|
-
function w(
|
|
7780
|
+
function w($) {
|
|
7778
7781
|
if (n.value) {
|
|
7779
|
-
a.value = Ft.getCurrent(n.value), r.value =
|
|
7780
|
-
const D =
|
|
7782
|
+
a.value = Ft.getCurrent(n.value), r.value = Ge.getCurrent(n.value), s.value = a.value ? Ft.copy(a.value) : null, u.value = r.value ? Ge.copy(r.value) : null, y();
|
|
7783
|
+
const D = $.target.getAttribute("type") || "";
|
|
7781
7784
|
d.value = {
|
|
7782
7785
|
n: !!D.match(/n/),
|
|
7783
7786
|
s: !!D.match(/s/),
|
|
@@ -7787,60 +7790,60 @@ function Ws(t, e) {
|
|
|
7787
7790
|
}
|
|
7788
7791
|
}
|
|
7789
7792
|
function m() {
|
|
7790
|
-
var
|
|
7793
|
+
var $, D, P, I;
|
|
7791
7794
|
if (n.value) {
|
|
7792
|
-
const
|
|
7793
|
-
d.value && ((d.value.n || d.value.s) && ((
|
|
7795
|
+
const j = n.value;
|
|
7796
|
+
d.value && ((d.value.n || d.value.s) && (($ = s.value) != null && $.height) && (j.style.height = s.value.height + "px"), (d.value.w || d.value.e) && ((D = s.value) != null && D.width) && (j.style.width = s.value.width + "px"), u.value && ((P = u.value) != null && P.x && (j.style.left = u.value.x + "px"), (I = u.value) != null && I.y && (j.style.top = u.value.y + "px")));
|
|
7794
7797
|
}
|
|
7795
7798
|
}
|
|
7796
7799
|
function x() {
|
|
7797
|
-
const
|
|
7798
|
-
s.value && u.value && d.value && a.value && (s.value.height <
|
|
7800
|
+
const $ = t.minHeight ? t.minHeight : 1, D = t.minWidth ? t.minWidth : 1;
|
|
7801
|
+
s.value && u.value && d.value && a.value && (s.value.height < $ && (s.value.height = $, d.value.n && r.value && (u.value.y = r.value.y + (a.value.height - $))), s.value.width < D && (s.value.width = D, d.value.w && r.value && (u.value.x = r.value.x + (a.value.width - D))), t.maxHeight && s.value.height > t.maxHeight && (s.value.height = t.maxHeight, r.value && d.value.n && (u.value.y = r.value.y + (a.value.height - t.maxHeight))), t.maxWidth && s.value.width > t.maxWidth && (s.value.width = t.maxWidth, d.value.w && r.value && (u.value.x = r.value.x + (a.value.width - t.maxWidth))));
|
|
7799
7802
|
}
|
|
7800
7803
|
function b() {
|
|
7801
7804
|
if (o.value) {
|
|
7802
|
-
const
|
|
7805
|
+
const $ = l.value;
|
|
7803
7806
|
if (u.value && s.value && d.value && a.value) {
|
|
7804
|
-
const D =
|
|
7805
|
-
d.value.n && u.value.y +
|
|
7807
|
+
const D = $.width - $.pr - $.deltaL - $.translateX - u.value.x, P = $.height - $.pb - $.deltaT - $.translateY - u.value.y;
|
|
7808
|
+
d.value.n && u.value.y + $.translateY < 0 && r.value && (u.value.y = -$.translateY, s.value.height = a.value.height + r.value.y + $.translateY), d.value.w && u.value.x + $.translateX < 0 && r.value && (u.value.x = -$.translateX, s.value.width = a.value.width + r.value.x + $.translateX), s.value.width > D && (s.value.width = D), s.value.height > P && (s.value.height = P);
|
|
7806
7809
|
}
|
|
7807
7810
|
}
|
|
7808
7811
|
}
|
|
7809
|
-
function g(
|
|
7812
|
+
function g($) {
|
|
7810
7813
|
if (!i.value || !a.value || !r.value || !d.value)
|
|
7811
7814
|
return;
|
|
7812
|
-
|
|
7813
|
-
const D =
|
|
7815
|
+
$.subtract(i.value);
|
|
7816
|
+
const D = $.x, P = $.y;
|
|
7814
7817
|
d.value.n ? (u.value.y = r.value.y + P, s.value.height = a.value.height - P) : d.value.s && (s.value.height = a.value.height + P), d.value.e ? s.value.width = a.value.width + D : d.value.w && (s.value.width = a.value.width - D, u.value.x = r.value.x + D), b(), x(), m();
|
|
7815
7818
|
}
|
|
7816
|
-
function h(
|
|
7819
|
+
function h($) {
|
|
7817
7820
|
if (!p.value)
|
|
7818
7821
|
return;
|
|
7819
|
-
const D =
|
|
7822
|
+
const D = Ge.fromEvent($);
|
|
7820
7823
|
D && g(D);
|
|
7821
7824
|
}
|
|
7822
7825
|
function T() {
|
|
7823
7826
|
if (n.value) {
|
|
7824
7827
|
const {
|
|
7825
|
-
width:
|
|
7828
|
+
width: $,
|
|
7826
7829
|
height: D,
|
|
7827
7830
|
x: P,
|
|
7828
7831
|
y: I
|
|
7829
|
-
} = n.value.getBoundingClientRect(),
|
|
7832
|
+
} = n.value.getBoundingClientRect(), j = Ge.getTransformInfo(n.value);
|
|
7830
7833
|
return {
|
|
7831
7834
|
size: {
|
|
7832
|
-
width:
|
|
7835
|
+
width: $,
|
|
7833
7836
|
height: D
|
|
7834
7837
|
},
|
|
7835
7838
|
position: {
|
|
7836
|
-
x: P -
|
|
7837
|
-
y: I -
|
|
7839
|
+
x: P - j.x,
|
|
7840
|
+
y: I - j.y
|
|
7838
7841
|
}
|
|
7839
7842
|
};
|
|
7840
7843
|
}
|
|
7841
7844
|
return null;
|
|
7842
7845
|
}
|
|
7843
|
-
function C(
|
|
7846
|
+
function C($) {
|
|
7844
7847
|
if (n.value) {
|
|
7845
7848
|
const D = T();
|
|
7846
7849
|
c.value = D;
|
|
@@ -7850,11 +7853,11 @@ function Ws(t, e) {
|
|
|
7850
7853
|
function k() {
|
|
7851
7854
|
document.addEventListener("mousemove", h), document.addEventListener("mouseup", C);
|
|
7852
7855
|
}
|
|
7853
|
-
function S(
|
|
7854
|
-
|
|
7856
|
+
function S($) {
|
|
7857
|
+
$ instanceof MouseEvent && $.button === 2 || F.value && (document.body.click(), $.stopPropagation(), $.preventDefault(), i.value = Ge.fromEvent($), p.value = $.target, w($), k());
|
|
7855
7858
|
}
|
|
7856
|
-
function M(
|
|
7857
|
-
return n.value =
|
|
7859
|
+
function M($) {
|
|
7860
|
+
return n.value = $, v.value && R(Vt, null, [R("div", {
|
|
7858
7861
|
class: "fv-resizable-handle fv-resizable-n",
|
|
7859
7862
|
type: "n",
|
|
7860
7863
|
onMousedown: (D) => S(D)
|
|
@@ -7888,10 +7891,10 @@ function Ws(t, e) {
|
|
|
7888
7891
|
onMousedown: (D) => S(D)
|
|
7889
7892
|
}, null)]);
|
|
7890
7893
|
}
|
|
7891
|
-
function V(
|
|
7894
|
+
function V($ = !0) {
|
|
7892
7895
|
document.body.click();
|
|
7893
7896
|
const D = o.value || document.body, P = Ft.getCurrent(D), I = n.value;
|
|
7894
|
-
|
|
7897
|
+
$ && I && (f.value = T(), f.value.transform = I.style.transform), P && I && (s.value = P, s.value.height -= 14, s.value.width -= 14, I.style.height = s.value.height + "px", I.style.width = s.value.width + "px", I.style.left = "7px", I.style.top = "7px", I.style.transform = "", c.value = {
|
|
7895
7898
|
size: s.value,
|
|
7896
7899
|
position: {
|
|
7897
7900
|
x: 0,
|
|
@@ -7900,7 +7903,7 @@ function Ws(t, e) {
|
|
|
7900
7903
|
}, F.value = !1, _.value = !0);
|
|
7901
7904
|
}
|
|
7902
7905
|
function O() {
|
|
7903
|
-
var
|
|
7906
|
+
var $, D;
|
|
7904
7907
|
if (document.body.click(), f.value) {
|
|
7905
7908
|
const P = {
|
|
7906
7909
|
width: f.value.size.width || 0,
|
|
@@ -7909,9 +7912,9 @@ function Ws(t, e) {
|
|
|
7909
7912
|
x: (window.innerWidth - P.width) / 2,
|
|
7910
7913
|
y: (window.innerHeight - P.height) / 2
|
|
7911
7914
|
};
|
|
7912
|
-
(
|
|
7913
|
-
const
|
|
7914
|
-
|
|
7915
|
+
($ = s.value) == null || $.set(P), (D = u.value) == null || D.set(I);
|
|
7916
|
+
const j = n.value;
|
|
7917
|
+
j.style.height = P.height + "px", j.style.width = P.width + "px", j.style.left = `${I.x}px`, j.style.top = `${I.y}px`, j.style.transform = "", c.value = {
|
|
7915
7918
|
size: P,
|
|
7916
7919
|
position: I
|
|
7917
7920
|
}, F.value = t.draggable, _.value = !1;
|
|
@@ -7919,22 +7922,22 @@ function Ws(t, e) {
|
|
|
7919
7922
|
}
|
|
7920
7923
|
function B() {
|
|
7921
7924
|
if (n.value) {
|
|
7922
|
-
const
|
|
7923
|
-
if (
|
|
7925
|
+
const $ = Ft.getCurrent(n.value);
|
|
7926
|
+
if ($) {
|
|
7924
7927
|
const {
|
|
7925
7928
|
width: D,
|
|
7926
7929
|
height: P
|
|
7927
|
-
} =
|
|
7930
|
+
} = $;
|
|
7928
7931
|
n.value.style.left = `${(window.innerWidth - D) / 2}px`, n.value.style.top = `${(window.innerHeight - P) / 2}px`, n.value.style.transform = "";
|
|
7929
7932
|
}
|
|
7930
7933
|
}
|
|
7931
7934
|
}
|
|
7932
7935
|
function L() {
|
|
7933
|
-
const
|
|
7936
|
+
const $ = () => {
|
|
7934
7937
|
_.value ? V(!1) : B(), document.body.click();
|
|
7935
7938
|
};
|
|
7936
|
-
return window.addEventListener("resize",
|
|
7937
|
-
window.removeEventListener("resize",
|
|
7939
|
+
return window.addEventListener("resize", $), () => {
|
|
7940
|
+
window.removeEventListener("resize", $);
|
|
7938
7941
|
};
|
|
7939
7942
|
}
|
|
7940
7943
|
const X = L();
|
|
@@ -7951,8 +7954,8 @@ function Ws(t, e) {
|
|
|
7951
7954
|
};
|
|
7952
7955
|
}
|
|
7953
7956
|
function As(t, e, n) {
|
|
7954
|
-
const o = E(), i = E(t.draggable), a = E(t.lockAxis), r = E(), s = E(), u = E(!1), d = E(new
|
|
7955
|
-
|
|
7957
|
+
const o = E(), i = E(t.draggable), a = E(t.lockAxis), r = E(), s = E(), u = E(!1), d = E(new Ge(0, 0)), p = E(new Ge(0, 0)), l = E(new Ge(0, 0)), c = E(new Ge(0, 0));
|
|
7958
|
+
Be(() => n.value, (h) => {
|
|
7956
7959
|
r.value.style.cursor = h ? "move" : "default";
|
|
7957
7960
|
});
|
|
7958
7961
|
function v(h, T) {
|
|
@@ -7987,7 +7990,7 @@ function As(t, e, n) {
|
|
|
7987
7990
|
h && (d.value && h.subtract(d.value), l.value.set(h), f(), F());
|
|
7988
7991
|
}
|
|
7989
7992
|
function y(h) {
|
|
7990
|
-
u.value && i.value && (h.stopPropagation(), h.preventDefault(), _(
|
|
7993
|
+
u.value && i.value && (h.stopPropagation(), h.preventDefault(), _(Ge.fromEvent(h, r.value)));
|
|
7991
7994
|
}
|
|
7992
7995
|
function w() {
|
|
7993
7996
|
var h;
|
|
@@ -7998,7 +8001,7 @@ function As(t, e, n) {
|
|
|
7998
8001
|
}
|
|
7999
8002
|
function x() {
|
|
8000
8003
|
if (o.value) {
|
|
8001
|
-
const h =
|
|
8004
|
+
const h = Ge.getTransformInfo(o.value);
|
|
8002
8005
|
p.value.set(h);
|
|
8003
8006
|
return;
|
|
8004
8007
|
}
|
|
@@ -8008,7 +8011,7 @@ function As(t, e, n) {
|
|
|
8008
8011
|
if (!n.value || h instanceof MouseEvent && h.button === 2)
|
|
8009
8012
|
return;
|
|
8010
8013
|
const T = h.target || h.srcElement;
|
|
8011
|
-
r.value !== void 0 && T && !v(T, r.value) || i.value !== !1 && (document.body.click(), h.stopPropagation(), h.preventDefault(), d.value =
|
|
8014
|
+
r.value !== void 0 && T && !v(T, r.value) || i.value !== !1 && (document.body.click(), h.stopPropagation(), h.preventDefault(), d.value = Ge.fromEvent(h, o.value), x(), m());
|
|
8012
8015
|
}
|
|
8013
8016
|
function g(h, T, C) {
|
|
8014
8017
|
if (i.value && T) {
|
|
@@ -8030,7 +8033,7 @@ function As(t, e, n) {
|
|
|
8030
8033
|
resetTranslate: x
|
|
8031
8034
|
};
|
|
8032
8035
|
}
|
|
8033
|
-
function
|
|
8036
|
+
function $o(t, e) {
|
|
8034
8037
|
if (t) {
|
|
8035
8038
|
const n = (o) => {
|
|
8036
8039
|
o.key.toLowerCase() === t.toLowerCase() && e({ event: o, key: t });
|
|
@@ -8043,7 +8046,7 @@ function jo(t, e) {
|
|
|
8043
8046
|
function zs(t, e) {
|
|
8044
8047
|
const n = E(t.enableEsc);
|
|
8045
8048
|
let o = null;
|
|
8046
|
-
return n.value ? (o =
|
|
8049
|
+
return n.value ? (o = $o("Escape", (i) => {
|
|
8047
8050
|
e.emit("esc", { event: i.event, type: "esc" });
|
|
8048
8051
|
}), {
|
|
8049
8052
|
remove: o
|
|
@@ -8052,31 +8055,31 @@ function zs(t, e) {
|
|
|
8052
8055
|
function Gs(t, e) {
|
|
8053
8056
|
const n = E(t.enableEnter);
|
|
8054
8057
|
let o = null;
|
|
8055
|
-
return n.value ? (o =
|
|
8058
|
+
return n.value ? (o = $o("Enter", (i) => {
|
|
8056
8059
|
e.emit("enter", { event: i.event, type: "enter" });
|
|
8057
8060
|
}), {
|
|
8058
8061
|
remove: o
|
|
8059
8062
|
}) : null;
|
|
8060
8063
|
}
|
|
8061
|
-
const kt = /* @__PURE__ */
|
|
8064
|
+
const kt = /* @__PURE__ */ Ke({
|
|
8062
8065
|
name: "FModal",
|
|
8063
|
-
props:
|
|
8066
|
+
props: jo,
|
|
8064
8067
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
8065
8068
|
setup(t, e) {
|
|
8066
8069
|
const n = E(t.width || 300), o = E(t.height || 200), i = E(t.modelValue), a = E(""), r = E(t.class), s = E(t.fitContent), u = E(t.showHeader), d = E(""), p = E(t.showCloseButton), l = E(t.showMaxButton), c = E(!1), v = E(t.dialogType), f = E(t.src), F = E(""), _ = E(t.showButtons), y = E(t.title), w = E(t.containment || null), m = E(), {
|
|
8067
8070
|
t: x
|
|
8068
|
-
} =
|
|
8071
|
+
} = pt();
|
|
8069
8072
|
y.value === "错误提示" && (y.value = x("messageBox.errorTitle"));
|
|
8070
8073
|
const b = E(!1);
|
|
8071
|
-
function g(K,
|
|
8072
|
-
const
|
|
8074
|
+
function g(K, we) {
|
|
8075
|
+
const De = we ? "accept" : "cancel";
|
|
8073
8076
|
Promise.resolve().then(() => {
|
|
8074
|
-
var
|
|
8075
|
-
return (
|
|
8076
|
-
closeType:
|
|
8077
|
+
var me;
|
|
8078
|
+
return (me = t.beforeClose) == null ? void 0 : me.call(t, {
|
|
8079
|
+
closeType: De
|
|
8077
8080
|
});
|
|
8078
|
-
}).then((
|
|
8079
|
-
|
|
8081
|
+
}).then((me) => {
|
|
8082
|
+
me && (i.value = !1, e.emit("update:modelValue", !1), we != null && e.emit(we ? "accept" : "cancel"), e.emit("closed", K));
|
|
8080
8083
|
});
|
|
8081
8084
|
}
|
|
8082
8085
|
const h = [{
|
|
@@ -8098,12 +8101,12 @@ const kt = /* @__PURE__ */ Ze({
|
|
|
8098
8101
|
maximize: B,
|
|
8099
8102
|
restore: L,
|
|
8100
8103
|
boundingElement: X,
|
|
8101
|
-
resizedEventParam:
|
|
8104
|
+
resizedEventParam: $,
|
|
8102
8105
|
allowDrag: D,
|
|
8103
8106
|
unWindowResizeHandle: P,
|
|
8104
8107
|
moveToCenter: I
|
|
8105
8108
|
} = Ws(t), {
|
|
8106
|
-
registerDraggle:
|
|
8109
|
+
registerDraggle: j
|
|
8107
8110
|
} = As(t, e, D);
|
|
8108
8111
|
function A() {
|
|
8109
8112
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
@@ -8112,40 +8115,40 @@ const kt = /* @__PURE__ */ Ze({
|
|
|
8112
8115
|
const K = document.querySelectorAll(".farris-modal").length;
|
|
8113
8116
|
(!K || K - 1 <= 0) && document.body.classList.remove("modal-open"), m.value && m.value.classList.remove("show");
|
|
8114
8117
|
}
|
|
8115
|
-
|
|
8116
|
-
K !==
|
|
8117
|
-
}),
|
|
8118
|
-
K !==
|
|
8119
|
-
M.value && !w.value && (w.value = M.value.parentElement, X.value = w.value,
|
|
8118
|
+
Be(() => t.title, (K, we) => {
|
|
8119
|
+
K !== we && (y.value = K);
|
|
8120
|
+
}), Be(() => t.modelValue, (K, we) => {
|
|
8121
|
+
K !== we && (i.value = K, i.value && t.draggable && jt(() => {
|
|
8122
|
+
M.value && !w.value && (w.value = M.value.parentElement, X.value = w.value, j(S.value, M.value, X.value), I());
|
|
8120
8123
|
}), K || (w.value && (w.value = null), J())), i.value ? b.value = A() : (V.value = !1, D.value = t.draggable);
|
|
8121
|
-
}),
|
|
8122
|
-
K !==
|
|
8123
|
-
}),
|
|
8124
|
-
K !==
|
|
8125
|
-
}),
|
|
8126
|
-
const
|
|
8127
|
-
JSON.stringify(
|
|
8124
|
+
}), Be(() => t.showHeader, (K, we) => {
|
|
8125
|
+
K !== we && (u.value = K);
|
|
8126
|
+
}), Be(() => t.showButtons, (K, we) => {
|
|
8127
|
+
K !== we && (_.value = K);
|
|
8128
|
+
}), Be(() => $.value, (K, we) => {
|
|
8129
|
+
const De = K || {}, me = we || {};
|
|
8130
|
+
JSON.stringify(De) !== JSON.stringify(me) && e.emit("resize", {
|
|
8128
8131
|
newSize: K,
|
|
8129
|
-
oldSize:
|
|
8132
|
+
oldSize: we,
|
|
8130
8133
|
isMaximized: V.value
|
|
8131
8134
|
});
|
|
8132
8135
|
});
|
|
8133
|
-
const q = z(() => (i.value && document.body.classList.add("modal-open"), i.value)),
|
|
8134
|
-
var
|
|
8136
|
+
const q = z(() => (i.value && document.body.classList.add("modal-open"), i.value)), ae = z(() => {
|
|
8137
|
+
var De;
|
|
8135
8138
|
const K = {
|
|
8136
8139
|
modal: !0,
|
|
8137
8140
|
"farris-modal": !0,
|
|
8138
8141
|
fade: !0
|
|
8139
8142
|
};
|
|
8140
8143
|
K["f-modal-fitContent"] = !!s.value, K.show = !!q.value;
|
|
8141
|
-
const
|
|
8142
|
-
return
|
|
8144
|
+
const we = (De = t.maskClass) == null ? void 0 : De.split(" ");
|
|
8145
|
+
return we == null || we.reduce((me, Re) => (me[Re] = !0, me), K), K;
|
|
8143
8146
|
}), G = z(() => {
|
|
8144
|
-
var
|
|
8147
|
+
var De;
|
|
8145
8148
|
const K = {
|
|
8146
8149
|
"modal-dialog": !0
|
|
8147
|
-
},
|
|
8148
|
-
return
|
|
8150
|
+
}, we = (De = r.value) == null ? void 0 : De.split(" ");
|
|
8151
|
+
return we == null || we.reduce((me, Re) => (me[Re] = !0, me), K), K;
|
|
8149
8152
|
}), H = z(() => {
|
|
8150
8153
|
const K = {
|
|
8151
8154
|
position: "absolute",
|
|
@@ -8163,12 +8166,12 @@ const kt = /* @__PURE__ */ Ze({
|
|
|
8163
8166
|
}), Z = z(() => ({
|
|
8164
8167
|
"modal-content": !0,
|
|
8165
8168
|
"modal-content-has-header": u.value
|
|
8166
|
-
})),
|
|
8169
|
+
})), de = z(() => {
|
|
8167
8170
|
const K = {
|
|
8168
8171
|
display: u.value ? "" : "none"
|
|
8169
8172
|
};
|
|
8170
8173
|
return K["pointer-events"] = D.value ? "auto" : "none", K;
|
|
8171
|
-
}),
|
|
8174
|
+
}), Te = z(() => ({
|
|
8172
8175
|
"f-icon": !0,
|
|
8173
8176
|
modal_maximize: !0,
|
|
8174
8177
|
modalrevert: V.value
|
|
@@ -8182,11 +8185,11 @@ const kt = /* @__PURE__ */ Ze({
|
|
|
8182
8185
|
height: `${t.footerHeight || 60}px`
|
|
8183
8186
|
};
|
|
8184
8187
|
}
|
|
8185
|
-
const
|
|
8188
|
+
const ke = z(() => {
|
|
8186
8189
|
const K = {
|
|
8187
8190
|
textAlgin: F.value
|
|
8188
|
-
},
|
|
8189
|
-
return Object.assign(K,
|
|
8191
|
+
}, we = ye();
|
|
8192
|
+
return Object.assign(K, we);
|
|
8190
8193
|
});
|
|
8191
8194
|
function Y(K) {
|
|
8192
8195
|
if (K == null || K.stopPropagation(), V.value) {
|
|
@@ -8195,27 +8198,27 @@ const kt = /* @__PURE__ */ Ze({
|
|
|
8195
8198
|
}
|
|
8196
8199
|
B(), V.value = !0;
|
|
8197
8200
|
}
|
|
8198
|
-
async function oe(K,
|
|
8199
|
-
K.handle && await K.handle(
|
|
8201
|
+
async function oe(K, we) {
|
|
8202
|
+
K.handle && await K.handle(we, K) && e.emit("closed", we);
|
|
8200
8203
|
}
|
|
8201
|
-
function
|
|
8204
|
+
function ue(K) {
|
|
8202
8205
|
K.width && (n.value = K.width), K.height && (o.value = K.height), K.buttons && (T.value = K.buttons), K.title && (y.value = K.title);
|
|
8203
8206
|
}
|
|
8204
|
-
let
|
|
8207
|
+
let _e = null, Se = null;
|
|
8205
8208
|
lr(() => {
|
|
8206
8209
|
b.value = A();
|
|
8207
8210
|
}), Ot(() => {
|
|
8208
|
-
M.value && !w.value && (w.value = M.value.parentElement, X.value = w.value,
|
|
8211
|
+
M.value && !w.value && (w.value = M.value.parentElement, X.value = w.value, j(S.value, M.value, X.value)), q.value && document.body.classList.add("modal-open"), _e = zs(t, e), Se = Gs(t, e);
|
|
8209
8212
|
}), Xt(() => {
|
|
8210
|
-
P && P(),
|
|
8213
|
+
P && P(), _e && _e.remove(), Se && Se.remove();
|
|
8211
8214
|
}), e.expose({
|
|
8212
8215
|
modalElementRef: M,
|
|
8213
|
-
updateModalOptions:
|
|
8216
|
+
updateModalOptions: ue,
|
|
8214
8217
|
close: g,
|
|
8215
8218
|
maxDialog: Y,
|
|
8216
8219
|
isMaximized: V
|
|
8217
8220
|
});
|
|
8218
|
-
function
|
|
8221
|
+
function He() {
|
|
8219
8222
|
return R("ul", null, [c.value && R("li", {
|
|
8220
8223
|
class: "f-btn-icon f-bare"
|
|
8221
8224
|
}, [R("span", {
|
|
@@ -8225,7 +8228,7 @@ const kt = /* @__PURE__ */ Ze({
|
|
|
8225
8228
|
class: "f-btn-icon f-bare",
|
|
8226
8229
|
style: "pointer-events: auto;"
|
|
8227
8230
|
}, [R("span", {
|
|
8228
|
-
class:
|
|
8231
|
+
class: Te.value
|
|
8229
8232
|
}, null)]), p.value && R("li", {
|
|
8230
8233
|
class: "f-btn-icon f-bare",
|
|
8231
8234
|
onClick: (K) => g(K, !1),
|
|
@@ -8234,19 +8237,19 @@ const kt = /* @__PURE__ */ Ze({
|
|
|
8234
8237
|
class: "f-icon modal_close"
|
|
8235
8238
|
}, null)])]);
|
|
8236
8239
|
}
|
|
8237
|
-
function
|
|
8240
|
+
function qe() {
|
|
8238
8241
|
return R("div", {
|
|
8239
8242
|
class: "modal-footer",
|
|
8240
|
-
style:
|
|
8243
|
+
style: ke.value
|
|
8241
8244
|
}, [T.value && T.value.map((K) => {
|
|
8242
|
-
const
|
|
8245
|
+
const we = E(K.disabled);
|
|
8243
8246
|
return R("button", {
|
|
8244
8247
|
name: K.name,
|
|
8245
8248
|
type: "button",
|
|
8246
|
-
disabled:
|
|
8249
|
+
disabled: we.value,
|
|
8247
8250
|
class: K.class + (K.iconClass ? " btn-icontext" : ""),
|
|
8248
|
-
onClick: (
|
|
8249
|
-
oe(K,
|
|
8251
|
+
onClick: (De) => {
|
|
8252
|
+
oe(K, De);
|
|
8250
8253
|
}
|
|
8251
8254
|
}, [!!K.iconClass && R("i", {
|
|
8252
8255
|
class: K.iconClass
|
|
@@ -8257,7 +8260,7 @@ const kt = /* @__PURE__ */ Ze({
|
|
|
8257
8260
|
return R("div", {
|
|
8258
8261
|
ref: S,
|
|
8259
8262
|
class: "modal-header",
|
|
8260
|
-
style:
|
|
8263
|
+
style: de.value
|
|
8261
8264
|
}, [e.slots.headerTemplate ? e.slots.headerTemplate() : R("div", {
|
|
8262
8265
|
class: "modal-title"
|
|
8263
8266
|
}, [C.value && R("span", {
|
|
@@ -8267,20 +8270,20 @@ const kt = /* @__PURE__ */ Ze({
|
|
|
8267
8270
|
class: "modal-title-label"
|
|
8268
8271
|
}, [y.value])]), R("div", {
|
|
8269
8272
|
class: "actions"
|
|
8270
|
-
}, [
|
|
8273
|
+
}, [He()])]);
|
|
8271
8274
|
}
|
|
8272
8275
|
function ve() {
|
|
8273
|
-
return e.slots.footerTemplate ? e.slots.footerTemplate() : k.value &&
|
|
8276
|
+
return e.slots.footerTemplate ? e.slots.footerTemplate() : k.value && qe();
|
|
8274
8277
|
}
|
|
8275
|
-
function
|
|
8278
|
+
function Ve(K) {
|
|
8276
8279
|
if (K.stopPropagation(), t.allowClickMaskToClose) {
|
|
8277
8280
|
if (K.target !== m.value)
|
|
8278
8281
|
return;
|
|
8279
8282
|
g(K, !1);
|
|
8280
8283
|
}
|
|
8281
8284
|
}
|
|
8282
|
-
function
|
|
8283
|
-
var K,
|
|
8285
|
+
function Le() {
|
|
8286
|
+
var K, we;
|
|
8284
8287
|
return R("div", {
|
|
8285
8288
|
id: a.value,
|
|
8286
8289
|
class: G.value,
|
|
@@ -8290,7 +8293,7 @@ const kt = /* @__PURE__ */ Ze({
|
|
|
8290
8293
|
class: Z.value
|
|
8291
8294
|
}, [u.value && ne(), R("div", {
|
|
8292
8295
|
class: be.value
|
|
8293
|
-
}, [(
|
|
8296
|
+
}, [(we = (K = e.slots).default) == null ? void 0 : we.call(K), v.value === "iframe" && R("iframe", {
|
|
8294
8297
|
title: a.value,
|
|
8295
8298
|
class: "f-utils-fill",
|
|
8296
8299
|
width: "100%",
|
|
@@ -8298,22 +8301,22 @@ const kt = /* @__PURE__ */ Ze({
|
|
|
8298
8301
|
src: f.value
|
|
8299
8302
|
}, null)]), ve()]), !s.value && M.value && !V.value && O(M.value)]);
|
|
8300
8303
|
}
|
|
8301
|
-
function
|
|
8304
|
+
function Ne(K) {
|
|
8302
8305
|
return K || "body";
|
|
8303
8306
|
}
|
|
8304
8307
|
return () => R(sr, {
|
|
8305
|
-
to:
|
|
8308
|
+
to: Ne(t.host)
|
|
8306
8309
|
}, {
|
|
8307
|
-
default: () => [q.value && R(
|
|
8310
|
+
default: () => [q.value && R(Fn, {
|
|
8308
8311
|
name: "fade",
|
|
8309
8312
|
appear: !0
|
|
8310
8313
|
}, {
|
|
8311
8314
|
default: () => [R("div", {
|
|
8312
8315
|
ref: m,
|
|
8313
|
-
class:
|
|
8316
|
+
class: ae.value,
|
|
8314
8317
|
style: W.value,
|
|
8315
|
-
onClick:
|
|
8316
|
-
}, [
|
|
8318
|
+
onClick: Ve
|
|
8319
|
+
}, [Le()])]
|
|
8317
8320
|
})]
|
|
8318
8321
|
});
|
|
8319
8322
|
}
|
|
@@ -8327,7 +8330,7 @@ function Lo(t) {
|
|
|
8327
8330
|
function qs(t) {
|
|
8328
8331
|
const e = document.createElement("div");
|
|
8329
8332
|
e.style.display = "contents";
|
|
8330
|
-
const n =
|
|
8333
|
+
const n = Tn({
|
|
8331
8334
|
setup(o, i) {
|
|
8332
8335
|
Xt(() => {
|
|
8333
8336
|
document.body.removeChild(e);
|
|
@@ -8367,7 +8370,7 @@ function qs(t) {
|
|
|
8367
8370
|
});
|
|
8368
8371
|
}
|
|
8369
8372
|
});
|
|
8370
|
-
return document.body.appendChild(e), n.use(
|
|
8373
|
+
return document.body.appendChild(e), n.use($t.i18n), n.mount(e), n;
|
|
8371
8374
|
}
|
|
8372
8375
|
class Ho {
|
|
8373
8376
|
constructor(e) {
|
|
@@ -8427,7 +8430,7 @@ class Ho {
|
|
|
8427
8430
|
const g = (h = b == null ? void 0 : b.target) == null ? void 0 : h.classList.contains("modal_close");
|
|
8428
8431
|
s(b, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
|
|
8429
8432
|
}, v = (b) => {
|
|
8430
|
-
c(b), p &&
|
|
8433
|
+
c(b), p && jt(() => {
|
|
8431
8434
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Zt(null, n), p = null, this.modalRef.value = null, this.modalRefs) {
|
|
8432
8435
|
const g = Object.keys(this.modalRefs).map((h) => Number(h));
|
|
8433
8436
|
g.length > 0 ? this.activeModalIndex.value = Math.max(...g) : this.activeModalIndex.value = 0;
|
|
@@ -8501,10 +8504,10 @@ const Ys = {
|
|
|
8501
8504
|
*/
|
|
8502
8505
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
8503
8506
|
};
|
|
8504
|
-
|
|
8507
|
+
Nt(
|
|
8505
8508
|
Ys,
|
|
8506
8509
|
Io,
|
|
8507
|
-
|
|
8510
|
+
cn,
|
|
8508
8511
|
void 0
|
|
8509
8512
|
);
|
|
8510
8513
|
const Xs = "https://json-schema.org/draft/2020-12/schema", Js = "https://farris-design.gitee.io/grid-field-editor.schema.json", Qs = "response-form-layout-setting", Zs = "A Farris Data Grid Component", Ks = "object", eu = {
|
|
@@ -8543,7 +8546,7 @@ const Xs = "https://json-schema.org/draft/2020-12/schema", Js = "https://farris-
|
|
|
8543
8546
|
}
|
|
8544
8547
|
}
|
|
8545
8548
|
};
|
|
8546
|
-
|
|
8549
|
+
an(ou, nu, Za, nl);
|
|
8547
8550
|
const ru = {
|
|
8548
8551
|
width: { Type: Number, default: 400 },
|
|
8549
8552
|
type: { Type: String, default: "info" },
|
|
@@ -8557,12 +8560,12 @@ const ru = {
|
|
|
8557
8560
|
promptEditorType: { Type: String, default: "text-area" },
|
|
8558
8561
|
buttons: { type: Object, default: [] }
|
|
8559
8562
|
};
|
|
8560
|
-
function
|
|
8563
|
+
function fn() {
|
|
8561
8564
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
8562
8565
|
}
|
|
8563
8566
|
async function iu(t) {
|
|
8564
8567
|
if (!navigator.clipboard)
|
|
8565
|
-
throw
|
|
8568
|
+
throw fn();
|
|
8566
8569
|
return navigator.clipboard.writeText(t);
|
|
8567
8570
|
}
|
|
8568
8571
|
async function au(t) {
|
|
@@ -8577,7 +8580,7 @@ async function au(t) {
|
|
|
8577
8580
|
n == null || n.removeAllRanges(), window.document.body.removeChild(e);
|
|
8578
8581
|
}
|
|
8579
8582
|
if (!i)
|
|
8580
|
-
throw
|
|
8583
|
+
throw fn();
|
|
8581
8584
|
}
|
|
8582
8585
|
async function lu(t) {
|
|
8583
8586
|
try {
|
|
@@ -8586,7 +8589,7 @@ async function lu(t) {
|
|
|
8586
8589
|
try {
|
|
8587
8590
|
await au(t);
|
|
8588
8591
|
} catch (n) {
|
|
8589
|
-
throw n || e ||
|
|
8592
|
+
throw n || e || fn();
|
|
8590
8593
|
}
|
|
8591
8594
|
}
|
|
8592
8595
|
}
|
|
@@ -8607,7 +8610,7 @@ function uu(t, e, n, o) {
|
|
|
8607
8610
|
s.value = c.length;
|
|
8608
8611
|
}
|
|
8609
8612
|
}
|
|
8610
|
-
return () => R(
|
|
8613
|
+
return () => R(Vt, null, [R("textarea", {
|
|
8611
8614
|
title: "promptMessage",
|
|
8612
8615
|
name: "promptMessage",
|
|
8613
8616
|
class: "form-control",
|
|
@@ -8733,7 +8736,7 @@ function vu(t, e, n, o, i) {
|
|
|
8733
8736
|
wordBreak: "keep-all",
|
|
8734
8737
|
overflowWrap: "break-word"
|
|
8735
8738
|
} : {});
|
|
8736
|
-
return () => R(
|
|
8739
|
+
return () => R(Vt, null, [R("div", {
|
|
8737
8740
|
class: "float-left modal-tips-iconwrap"
|
|
8738
8741
|
}, [R("span", {
|
|
8739
8742
|
class: r.value
|
|
@@ -8799,7 +8802,7 @@ function gu(t, e, n, o, i) {
|
|
|
8799
8802
|
}, null), w.text]))]);
|
|
8800
8803
|
}
|
|
8801
8804
|
function yu(t) {
|
|
8802
|
-
const { t: e, locale: n } =
|
|
8805
|
+
const { t: e, locale: n } = pt();
|
|
8803
8806
|
function o(i, a, r) {
|
|
8804
8807
|
return a === r ? e(i) : a;
|
|
8805
8808
|
}
|
|
@@ -8824,7 +8827,7 @@ function yu(t) {
|
|
|
8824
8827
|
locale: n.value
|
|
8825
8828
|
};
|
|
8826
8829
|
}
|
|
8827
|
-
const zt = /* @__PURE__ */
|
|
8830
|
+
const zt = /* @__PURE__ */ Ke({
|
|
8828
8831
|
name: "FMessageBox",
|
|
8829
8832
|
props: ru,
|
|
8830
8833
|
emits: ["accept", "reject", "close"],
|
|
@@ -8870,14 +8873,14 @@ const zt = /* @__PURE__ */ Ze({
|
|
|
8870
8873
|
style: s.value
|
|
8871
8874
|
}, [F()]), _(), v()]);
|
|
8872
8875
|
}
|
|
8873
|
-
}),
|
|
8876
|
+
}), dt = class dt {
|
|
8874
8877
|
static show(e) {
|
|
8875
|
-
const n =
|
|
8878
|
+
const n = ht({
|
|
8876
8879
|
...e
|
|
8877
8880
|
}), o = !1, i = n.type === "error" || n.type === "prompt", a = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", r = n.acceptCallback || (() => {
|
|
8878
8881
|
}), s = n.rejectCallback || (() => {
|
|
8879
8882
|
});
|
|
8880
|
-
let u = null, d = new Ho(
|
|
8883
|
+
let u = null, d = new Ho(dt.app);
|
|
8881
8884
|
const p = () => {
|
|
8882
8885
|
u && (u == null || u.destroy(), d = null);
|
|
8883
8886
|
};
|
|
@@ -8899,37 +8902,37 @@ const zt = /* @__PURE__ */ Ze({
|
|
|
8899
8902
|
}), d == null ? void 0 : d.getCurrentModal();
|
|
8900
8903
|
}
|
|
8901
8904
|
static info(e, n) {
|
|
8902
|
-
const o =
|
|
8905
|
+
const o = ht({
|
|
8903
8906
|
type: "info",
|
|
8904
8907
|
title: e,
|
|
8905
8908
|
detail: n,
|
|
8906
8909
|
okButtonText: "知道了",
|
|
8907
8910
|
showCancelButton: !1
|
|
8908
8911
|
});
|
|
8909
|
-
|
|
8912
|
+
dt.show(o);
|
|
8910
8913
|
}
|
|
8911
8914
|
static warning(e, n) {
|
|
8912
|
-
const o =
|
|
8915
|
+
const o = ht({
|
|
8913
8916
|
type: "warning",
|
|
8914
8917
|
title: e,
|
|
8915
8918
|
detail: n,
|
|
8916
8919
|
okButtonText: "知道了",
|
|
8917
8920
|
showCancelButton: !1
|
|
8918
8921
|
});
|
|
8919
|
-
|
|
8922
|
+
dt.show(o);
|
|
8920
8923
|
}
|
|
8921
8924
|
static success(e, n) {
|
|
8922
|
-
const o =
|
|
8925
|
+
const o = ht({
|
|
8923
8926
|
type: "success",
|
|
8924
8927
|
title: e,
|
|
8925
8928
|
detail: n,
|
|
8926
8929
|
okButtonText: "关闭",
|
|
8927
8930
|
showCancelButton: !1
|
|
8928
8931
|
});
|
|
8929
|
-
|
|
8932
|
+
dt.show(o);
|
|
8930
8933
|
}
|
|
8931
8934
|
static error(e, n, o) {
|
|
8932
|
-
const i =
|
|
8935
|
+
const i = ht({
|
|
8933
8936
|
width: 500,
|
|
8934
8937
|
type: "error",
|
|
8935
8938
|
okButtonText: "关闭",
|
|
@@ -8940,20 +8943,20 @@ const zt = /* @__PURE__ */ Ze({
|
|
|
8940
8943
|
detail: n
|
|
8941
8944
|
}
|
|
8942
8945
|
});
|
|
8943
|
-
|
|
8946
|
+
dt.show(i);
|
|
8944
8947
|
}
|
|
8945
8948
|
static prompt(e, n) {
|
|
8946
|
-
const o =
|
|
8949
|
+
const o = ht({
|
|
8947
8950
|
type: "prompt",
|
|
8948
8951
|
title: e,
|
|
8949
8952
|
detail: n,
|
|
8950
8953
|
okButtonText: "确定",
|
|
8951
8954
|
cancelButtonText: "取消"
|
|
8952
8955
|
});
|
|
8953
|
-
|
|
8956
|
+
dt.show(o);
|
|
8954
8957
|
}
|
|
8955
8958
|
static question(e, n, o, i) {
|
|
8956
|
-
const a =
|
|
8959
|
+
const a = ht({
|
|
8957
8960
|
type: "question",
|
|
8958
8961
|
title: e,
|
|
8959
8962
|
detail: n,
|
|
@@ -8962,17 +8965,17 @@ const zt = /* @__PURE__ */ Ze({
|
|
|
8962
8965
|
acceptCallback: o,
|
|
8963
8966
|
rejectCallback: i
|
|
8964
8967
|
});
|
|
8965
|
-
|
|
8968
|
+
dt.show(a);
|
|
8966
8969
|
}
|
|
8967
8970
|
};
|
|
8968
|
-
ee(
|
|
8969
|
-
let Ut =
|
|
8971
|
+
ee(dt, "app", null);
|
|
8972
|
+
let Ut = dt;
|
|
8970
8973
|
zt.install = (t) => {
|
|
8971
8974
|
t.component(zt.name, zt), Ut.app = t, t.provide("FMessageBoxService", Ut);
|
|
8972
8975
|
};
|
|
8973
8976
|
var Pt = /* @__PURE__ */ ((t) => (t[t.Value = 0] = "Value", t[t.SmartHelp = 1] = "SmartHelp", t[t.Enum = 2] = "Enum", t[t.Express = 3] = "Express", t))(Pt || {});
|
|
8974
8977
|
function bu() {
|
|
8975
|
-
const { t } =
|
|
8978
|
+
const { t } = pt();
|
|
8976
8979
|
return { conditionListLocale: {
|
|
8977
8980
|
// 添加条件
|
|
8978
8981
|
add: t("condition.add"),
|
|
@@ -8985,7 +8988,7 @@ function bu() {
|
|
|
8985
8988
|
} };
|
|
8986
8989
|
}
|
|
8987
8990
|
function Cu() {
|
|
8988
|
-
const { t } =
|
|
8991
|
+
const { t } = pt();
|
|
8989
8992
|
return { operatorsLocale: {
|
|
8990
8993
|
equal: t("operators.equal"),
|
|
8991
8994
|
notEqual: t("operators.notEqual"),
|
|
@@ -8998,7 +9001,7 @@ function Cu() {
|
|
|
8998
9001
|
endWith: t("operators.endWith")
|
|
8999
9002
|
} };
|
|
9000
9003
|
}
|
|
9001
|
-
var
|
|
9004
|
+
var st = /* @__PURE__ */ ((t) => (t.Equal = "0", t.NotEqual = "1", t.Greater = "2", t.GreaterOrEqual = "3", t.Less = "4", t.LessOrEqual = "5", t.Like = "6", t.LikeStartWith = "7", t.LikeEndWith = "8", t.In = "9", t.NotIn = "10", t))(st || {});
|
|
9002
9005
|
function wu() {
|
|
9003
9006
|
const { operatorsLocale: t } = Cu();
|
|
9004
9007
|
return [
|
|
@@ -9088,7 +9091,7 @@ function Wo() {
|
|
|
9088
9091
|
id: "",
|
|
9089
9092
|
fieldCode: "",
|
|
9090
9093
|
fieldName: "",
|
|
9091
|
-
compareType:
|
|
9094
|
+
compareType: st.Equal,
|
|
9092
9095
|
valueType: Pt.Value,
|
|
9093
9096
|
value: new Gt(),
|
|
9094
9097
|
relation: 0,
|
|
@@ -9143,14 +9146,14 @@ function Wo() {
|
|
|
9143
9146
|
const L = k.get(M) || 0, X = k.get(S) || 0;
|
|
9144
9147
|
if (S < 0 || S === M)
|
|
9145
9148
|
return C[C.length - 1];
|
|
9146
|
-
const
|
|
9147
|
-
return B =
|
|
9149
|
+
const $ = L - X, D = V && V.relation !== void 0 ? V.relation : 1;
|
|
9150
|
+
return B = $ > 0 ? u(X, $, B, C, D) : B, B = $ < 0 ? d(X, $, B, C, D) : B, B = $ === 0 && X > 0 && L > 0 && V && O && !!V.rBracket && !!O.lBracket ? p(X, B, C, D) : B, B;
|
|
9148
9151
|
}
|
|
9149
9152
|
function c(C) {
|
|
9150
9153
|
const S = { relation: C.length && C[0].relation !== void 0 ? C[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, M = [S], V = s(C);
|
|
9151
9154
|
return C.forEach((O, B) => {
|
|
9152
|
-
const L = B - 1, X = C[L],
|
|
9153
|
-
|
|
9155
|
+
const L = B - 1, X = C[L], $ = l(M, V, L, B, X, O);
|
|
9156
|
+
$.items.push(O), e.set(O.conditionId, $);
|
|
9154
9157
|
}), t.value = S, S;
|
|
9155
9158
|
}
|
|
9156
9159
|
function v() {
|
|
@@ -9293,7 +9296,7 @@ function xu(t, e, n) {
|
|
|
9293
9296
|
}
|
|
9294
9297
|
return { clear: _, getSelectedGroupItem: F, selectedItems: o, toggleSelect: f };
|
|
9295
9298
|
}
|
|
9296
|
-
const en = /* @__PURE__ */
|
|
9299
|
+
const en = /* @__PURE__ */ Ke({
|
|
9297
9300
|
name: "FConditionList",
|
|
9298
9301
|
props: go,
|
|
9299
9302
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
@@ -9404,7 +9407,7 @@ const en = /* @__PURE__ */ Ze({
|
|
|
9404
9407
|
onClick: () => h(A)
|
|
9405
9408
|
}, null)])];
|
|
9406
9409
|
}
|
|
9407
|
-
function
|
|
9410
|
+
function $(A) {
|
|
9408
9411
|
return A.items.map((J) => R("div", {
|
|
9409
9412
|
class: "condition-list-item",
|
|
9410
9413
|
key: J.conditionId
|
|
@@ -9426,12 +9429,12 @@ const en = /* @__PURE__ */ Ze({
|
|
|
9426
9429
|
class: "condition-list-content"
|
|
9427
9430
|
}, [R("div", {
|
|
9428
9431
|
class: "condition-list-content-group"
|
|
9429
|
-
}, [
|
|
9432
|
+
}, [$(A), A.children && A.children.map((J) => P(J))]), D(A)]);
|
|
9430
9433
|
}
|
|
9431
9434
|
function I() {
|
|
9432
9435
|
v(b.getSelectedGroupItem()), b.clear();
|
|
9433
9436
|
}
|
|
9434
|
-
function
|
|
9437
|
+
function j() {
|
|
9435
9438
|
return R("div", {
|
|
9436
9439
|
class: "condition-list-bottom"
|
|
9437
9440
|
}, [R("div", {
|
|
@@ -9458,11 +9461,11 @@ const en = /* @__PURE__ */ Ze({
|
|
|
9458
9461
|
key: n.value
|
|
9459
9462
|
}, [R("div", {
|
|
9460
9463
|
class: "condition-list-body"
|
|
9461
|
-
}, [P(w.value)]),
|
|
9464
|
+
}, [P(w.value)]), j()]);
|
|
9462
9465
|
}
|
|
9463
9466
|
});
|
|
9464
9467
|
en.install = (t) => {
|
|
9465
|
-
t.component(
|
|
9468
|
+
t.component(Cn.name, Cn).component(en.name, en);
|
|
9466
9469
|
};
|
|
9467
9470
|
const Tu = [
|
|
9468
9471
|
"equal",
|
|
@@ -9641,14 +9644,14 @@ function Ao() {
|
|
|
9641
9644
|
["enum", "combo-list"],
|
|
9642
9645
|
["reference", "lookup"]
|
|
9643
9646
|
]), a = /* @__PURE__ */ new Map([
|
|
9644
|
-
["boolean",
|
|
9645
|
-
["date",
|
|
9646
|
-
["datetime",
|
|
9647
|
-
["number",
|
|
9648
|
-
["string",
|
|
9649
|
-
["text",
|
|
9650
|
-
["enum",
|
|
9651
|
-
["reference",
|
|
9647
|
+
["boolean", st.In],
|
|
9648
|
+
["date", st.Equal],
|
|
9649
|
+
["datetime", st.Equal],
|
|
9650
|
+
["number", st.Equal],
|
|
9651
|
+
["string", st.Equal],
|
|
9652
|
+
["text", st.Equal],
|
|
9653
|
+
["enum", st.In],
|
|
9654
|
+
["reference", st.Equal]
|
|
9652
9655
|
]);
|
|
9653
9656
|
function r(_) {
|
|
9654
9657
|
var w;
|
|
@@ -9657,7 +9660,7 @@ function Ao() {
|
|
|
9657
9660
|
}
|
|
9658
9661
|
function s(_) {
|
|
9659
9662
|
var k, S, M, V, O;
|
|
9660
|
-
const y = `field_filter_${_.field}`, w = Date.now(), m = _.field, x = ((k = _.column) == null ? void 0 : k.title) || "", b = ((S = _.column) == null ? void 0 : S.dataType) || "string", g = a.get(b) ||
|
|
9663
|
+
const y = `field_filter_${_.field}`, w = Date.now(), m = _.field, x = ((k = _.column) == null ? void 0 : k.title) || "", b = ((S = _.column) == null ? void 0 : S.dataType) || "string", g = a.get(b) || st.Equal, h = ((V = (M = _.column) == null ? void 0 : M.editor) == null ? void 0 : V.type) || i.get(b) || "text", T = o(h, (O = _.column) == null ? void 0 : O.filter), C = h === "lookup" || h === "combo-lookup" ? Pt.SmartHelp : h === "combo-list" ? Pt.Enum : Pt.Value;
|
|
9661
9664
|
e.set(y, { id: y, fieldCode: m, fieldName: x, compareType: g, valueType: C, value: T, conditionId: w }), t.value = Array.from(e.values());
|
|
9662
9665
|
}
|
|
9663
9666
|
function u(_) {
|
|
@@ -9711,8 +9714,8 @@ function zo(t) {
|
|
|
9711
9714
|
}
|
|
9712
9715
|
function Bu(t, e, n, o, i) {
|
|
9713
9716
|
var w, m, x, b, g, h;
|
|
9714
|
-
const { getDifference: a, isBInA: r } =
|
|
9715
|
-
|
|
9717
|
+
const { getDifference: a, isBInA: r } = Zn(), { dataView: s, visibleDataItems: u } = n, { idField: d } = o, p = E(((m = (w = t.hierarchy) == null ? void 0 : w.cascadeOption) == null ? void 0 : m.autoCheckChildren) || !1), l = E(((b = (x = t.hierarchy) == null ? void 0 : x.cascadeOption) == null ? void 0 : b.autoCheckParent) || !1), c = E(((h = (g = t.hierarchy) == null ? void 0 : g.cascadeOption) == null ? void 0 : h.selectionRange) || "All");
|
|
9718
|
+
Be(() => {
|
|
9716
9719
|
var T;
|
|
9717
9720
|
return (T = t.hierarchy) == null ? void 0 : T.cascadeOption;
|
|
9718
9721
|
}, (T) => {
|
|
@@ -9721,12 +9724,12 @@ function Bu(t, e, n, o, i) {
|
|
|
9721
9724
|
const v = z(() => c.value === "OnlyParent"), f = z(() => c.value === "OnlyChildren");
|
|
9722
9725
|
function F(T, C) {
|
|
9723
9726
|
let k = T;
|
|
9724
|
-
const S = s.value[C], M = S[d.value], O = Array.from(S.__fv_descendant_index__).map((I) => s.value[I]), B = O.filter((I) => I.__fv_visible__ !== !1).map((I) => I.__fv_visible_index__).filter((I) => e.value[I]).map((I) => e.value[I]), L = B.map((I) => I.raw[d.value]), X = r(T, L),
|
|
9725
|
-
return
|
|
9727
|
+
const S = s.value[C], M = S[d.value], O = Array.from(S.__fv_descendant_index__).map((I) => s.value[I]), B = O.filter((I) => I.__fv_visible__ !== !1).map((I) => I.__fv_visible_index__).filter((I) => e.value[I]).map((I) => e.value[I]), L = B.map((I) => I.raw[d.value]), X = r(T, L), $ = r(T, [M]);
|
|
9728
|
+
return $ && X && v.value && (k = a(T, L), B.forEach((I) => {
|
|
9726
9729
|
I.disabled = !0;
|
|
9727
9730
|
}), O.forEach((I) => {
|
|
9728
9731
|
I.__fv_disabled__ = !0;
|
|
9729
|
-
})),
|
|
9732
|
+
})), $ && X && f.value && (k = a(T, [M]), B.forEach((I) => {
|
|
9730
9733
|
I.disabled = !0;
|
|
9731
9734
|
}), O.forEach((I) => {
|
|
9732
9735
|
I.__fv_disabled__ = !0;
|
|
@@ -9752,7 +9755,7 @@ function Bu(t, e, n, o, i) {
|
|
|
9752
9755
|
return { autoCheckChildren: p, autoCheckParent: l, interactAfterCheckHierarchyItem: y };
|
|
9753
9756
|
}
|
|
9754
9757
|
function Go(t, e, n, o, i, a) {
|
|
9755
|
-
const { getDifference: r, isBInA: s } =
|
|
9758
|
+
const { getDifference: r, isBInA: s } = Zn();
|
|
9756
9759
|
Jt();
|
|
9757
9760
|
const { dataView: u, fold: d, hasRealChildren: p, unFold: l, reOrderVisibleIndex: c } = n, { select: v, selectDataItem: f, unSelect: F, unSelectDataItem: _, indeterminate: y, indeterminateDataItem: w, getSelectedItems: m, selectedValues: x, currentSelectedDataId: b } = i, { autoCheckChildren: g, autoCheckParent: h, interactAfterCheckHierarchyItem: T } = Bu(t, e, n, o), { idField: C } = o;
|
|
9758
9761
|
function k() {
|
|
@@ -9762,18 +9765,18 @@ function Go(t, e, n, o, i, a) {
|
|
|
9762
9765
|
if (!h.value)
|
|
9763
9766
|
return;
|
|
9764
9767
|
const P = k();
|
|
9765
|
-
D.raw.__fv_children_index__.some((
|
|
9768
|
+
D.raw.__fv_children_index__.some((j) => P.includes(j)) && !!D.checked !== !0 && y(D);
|
|
9766
9769
|
}
|
|
9767
9770
|
function M(D, P, I) {
|
|
9768
|
-
const { check:
|
|
9769
|
-
P.length === q.__fv_children_index__.length && P.length !== 0 ? A(D) : P.length === 0 ?
|
|
9771
|
+
const { check: j, uncheck: A, uncertain: J } = I, q = D.raw ? D.raw : D;
|
|
9772
|
+
P.length === q.__fv_children_index__.length && P.length !== 0 ? A(D) : P.length === 0 ? j(D) : P.length < q.__fv_children_index__.length && J(D);
|
|
9770
9773
|
}
|
|
9771
9774
|
function V(D) {
|
|
9772
9775
|
if (!h.value)
|
|
9773
9776
|
return;
|
|
9774
9777
|
let P = D.raw.__fv_parent_index__;
|
|
9775
9778
|
for (; P !== void 0; ) {
|
|
9776
|
-
const I = k(),
|
|
9779
|
+
const I = k(), j = u.value[P], A = r(j.__fv_children_index__, I), J = e.value.find((G) => G.raw[C.value] === j[C.value]), q = j.__fv_visible__ !== !1 && J ? J : j, ae = j.__fv_visible__ !== !1 && J ? {
|
|
9777
9780
|
check: v,
|
|
9778
9781
|
uncheck: F,
|
|
9779
9782
|
uncertain: y
|
|
@@ -9782,19 +9785,19 @@ function Go(t, e, n, o, i, a) {
|
|
|
9782
9785
|
uncheck: _,
|
|
9783
9786
|
uncertain: w
|
|
9784
9787
|
};
|
|
9785
|
-
M(q, A,
|
|
9788
|
+
M(q, A, ae), P = j.__fv_parent_index__;
|
|
9786
9789
|
}
|
|
9787
9790
|
}
|
|
9788
9791
|
function O(D) {
|
|
9789
9792
|
const P = !!D.checked;
|
|
9790
9793
|
if (g.value) {
|
|
9791
|
-
const
|
|
9794
|
+
const j = D.raw.__fv_children_index__.map((H) => u.value[H]).filter((H) => !!H.__fv_checked__ !== P), A = j.filter((H) => H.__fv_visible__ === !1), J = j.filter((H) => H.__fv_visible__ !== !1), q = [], ae = /* @__PURE__ */ new Map();
|
|
9792
9795
|
e.value.forEach((H) => {
|
|
9793
|
-
|
|
9796
|
+
ae.set(H.raw[C.value], H);
|
|
9794
9797
|
});
|
|
9795
9798
|
const G = [];
|
|
9796
9799
|
J.forEach((H) => {
|
|
9797
|
-
|
|
9800
|
+
ae.has(H[C.value]) ? q.push(ae.get(H[C.value])) : G.push(H);
|
|
9798
9801
|
}), q.forEach((H) => {
|
|
9799
9802
|
P ? v(H) : F(H);
|
|
9800
9803
|
}), [...A, ...G].forEach((H) => {
|
|
@@ -9811,26 +9814,26 @@ function Go(t, e, n, o, i, a) {
|
|
|
9811
9814
|
function L(D, P) {
|
|
9812
9815
|
let I = -1;
|
|
9813
9816
|
if (D.raw.__fv_parent_index__ > -1) {
|
|
9814
|
-
const q = e.value[D.raw.__fv_parent_index__].raw.__fv_descendant_index__,
|
|
9815
|
-
I =
|
|
9817
|
+
const q = e.value[D.raw.__fv_parent_index__].raw.__fv_descendant_index__, ae = q.length > 1, G = q.findIndex((W) => W === P), H = G === q.length - 1;
|
|
9818
|
+
I = ae ? H ? q[G - 1] : q[G + 1] : -1;
|
|
9816
9819
|
}
|
|
9817
9820
|
return I > -1 ? e.value[I] : null;
|
|
9818
9821
|
}
|
|
9819
9822
|
function X(D) {
|
|
9820
9823
|
return D.raw.__fv_parent_index__ > -1 ? e.value[D.raw.__fv_parent_index__] : null;
|
|
9821
9824
|
}
|
|
9822
|
-
function
|
|
9825
|
+
function $(D) {
|
|
9823
9826
|
const P = e.value[D];
|
|
9824
9827
|
if (!P)
|
|
9825
9828
|
return null;
|
|
9826
9829
|
const I = L(P, D), A = I !== null ? I : X(P);
|
|
9827
9830
|
return A ? A.raw[C.value] : null;
|
|
9828
9831
|
}
|
|
9829
|
-
return { getNextSelectableHierarchyItemId:
|
|
9832
|
+
return { getNextSelectableHierarchyItemId: $, toggleSelectHierarchyItem: B };
|
|
9830
9833
|
}
|
|
9831
9834
|
function qo(t, e, n, o, i, a, r, s, u) {
|
|
9832
|
-
var
|
|
9833
|
-
const { dataView: d, visibleDataItems: p } = e, { getVisualData: l, maxVisibleRowIndex: c, minVisibleRowIndex: v } = i, f = z(() => o.value.primaryColumnsWidth), F = z(() => o.value.leftColumnsWidth), _ = z(() => o.value.rightColumnsWidth), y = ((
|
|
9835
|
+
var gt;
|
|
9836
|
+
const { dataView: d, visibleDataItems: p } = e, { getVisualData: l, maxVisibleRowIndex: c, minVisibleRowIndex: v } = i, f = z(() => o.value.primaryColumnsWidth), F = z(() => o.value.leftColumnsWidth), _ = z(() => o.value.rightColumnsWidth), y = ((gt = t.rowOption) == null ? void 0 : gt.height) || 28, w = E(0), m = E(0);
|
|
9834
9837
|
let x = 0, b = a.value - 1;
|
|
9835
9838
|
const g = E(0), h = E(0), T = E(0), C = E(t.virtualized), k = 24, S = 1.5;
|
|
9836
9839
|
let M = null;
|
|
@@ -9848,26 +9851,26 @@ function qo(t, e, n, o, i, a, r, s, u) {
|
|
|
9848
9851
|
for (; h.value > 0 && Ce < k; )
|
|
9849
9852
|
he *= S, Ce = Math.floor(he * h.value);
|
|
9850
9853
|
return Ce;
|
|
9851
|
-
}), B = z(() => Math.floor(T.value / Math.max(f.value, T.value) * g.value)), L = 0, X = 0,
|
|
9854
|
+
}), B = z(() => Math.floor(T.value / Math.max(f.value, T.value) * g.value)), L = 0, X = 0, $ = z(() => g.value - (F.value + f.value + _.value + s.value));
|
|
9852
9855
|
function D(ie) {
|
|
9853
9856
|
const Ce = Math.floor(ie / y) + 1, $e = p.value;
|
|
9854
9857
|
return $e.length > Ce ? $e[Ce].__fv_visible_index__ - 1 : 0;
|
|
9855
9858
|
}
|
|
9856
9859
|
function P(ie, he, Ce) {
|
|
9857
|
-
let $e = ie,
|
|
9858
|
-
const
|
|
9859
|
-
if (
|
|
9860
|
-
const
|
|
9861
|
-
if (
|
|
9862
|
-
|
|
9863
|
-
else if (
|
|
9864
|
-
$e -=
|
|
9860
|
+
let $e = ie, Ae = he;
|
|
9861
|
+
const Xe = he - ie + 1;
|
|
9862
|
+
if (Xe < r + a.value + r) {
|
|
9863
|
+
const rt = r + a.value + r - Xe, vt = he + rt <= Ce, lt = 0 + rt <= ie;
|
|
9864
|
+
if (vt)
|
|
9865
|
+
Ae += rt, b = Ae;
|
|
9866
|
+
else if (lt)
|
|
9867
|
+
$e -= rt, x = $e;
|
|
9865
9868
|
else {
|
|
9866
|
-
const Q = Ce - he, N =
|
|
9867
|
-
|
|
9869
|
+
const Q = Ce - he, N = rt - Q;
|
|
9870
|
+
Ae = Math.min(he + Q, Ce), $e = Math.max(ie - N, 0);
|
|
9868
9871
|
}
|
|
9869
9872
|
}
|
|
9870
|
-
return { actualStart: $e, actualEnd:
|
|
9873
|
+
return { actualStart: $e, actualEnd: Ae };
|
|
9871
9874
|
}
|
|
9872
9875
|
function I(ie) {
|
|
9873
9876
|
var Q, N;
|
|
@@ -9876,19 +9879,19 @@ function qo(t, e, n, o, i, a, r, s, u) {
|
|
|
9876
9879
|
n.value = [];
|
|
9877
9880
|
return;
|
|
9878
9881
|
}
|
|
9879
|
-
const Ce = (Q = t.pagination) != null && Q.enable ? 0 : Math.max(x - r, 0), $e = he[he.length - 1].__fv_visible_index__,
|
|
9880
|
-
|
|
9882
|
+
const Ce = (Q = t.pagination) != null && Q.enable ? 0 : Math.max(x - r, 0), $e = he[he.length - 1].__fv_visible_index__, Ae = (N = t.pagination) != null && N.enable ? he.length - 1 : Math.min(b + r, $e), { actualStart: Xe, actualEnd: rt } = P(Ce, Ae, $e), vt = he[Xe - 1], lt = l(Xe, rt, vt, ie);
|
|
9883
|
+
lt.length && (n.value = [...lt]);
|
|
9881
9884
|
}
|
|
9882
|
-
const
|
|
9885
|
+
const j = z(() => V() > h.value), A = z(() => Math.floor(f.value) > T.value);
|
|
9883
9886
|
function J(ie, he) {
|
|
9884
9887
|
let Ce = ie;
|
|
9885
|
-
const $e = Ce > L,
|
|
9886
|
-
|
|
9888
|
+
const $e = Ce > L, Ae = j.value;
|
|
9889
|
+
Ae && Ce < h.value - he && (Ce = h.value - he), (!Ae || $e) && (Ce = L), w.value !== Ce && (w.value = Ce);
|
|
9887
9890
|
}
|
|
9888
9891
|
function q() {
|
|
9889
9892
|
C.value && (x = D(Math.abs(w.value)), b = x + a.value - 1, (x < v.value || b > c.value - r / 2) && I());
|
|
9890
9893
|
}
|
|
9891
|
-
function
|
|
9894
|
+
function ae(ie) {
|
|
9892
9895
|
let he = w.value + ie;
|
|
9893
9896
|
he > L && (he = L);
|
|
9894
9897
|
const Ce = V();
|
|
@@ -9900,7 +9903,7 @@ function qo(t, e, n, o, i, a, r, s, u) {
|
|
|
9900
9903
|
return;
|
|
9901
9904
|
}
|
|
9902
9905
|
let he = m.value + ie;
|
|
9903
|
-
he > X && (he = X), he <
|
|
9906
|
+
he > X && (he = X), he < $.value && (he = $.value), m.value !== he && (m.value = he);
|
|
9904
9907
|
}
|
|
9905
9908
|
function H() {
|
|
9906
9909
|
Math.abs(m.value) + T.value > f.value && (m.value = Math.min(T.value - f.value, 0));
|
|
@@ -9912,21 +9915,21 @@ function qo(t, e, n, o, i, a, r, s, u) {
|
|
|
9912
9915
|
const ie = V();
|
|
9913
9916
|
J(w.value, ie);
|
|
9914
9917
|
}
|
|
9915
|
-
|
|
9918
|
+
Be([T, f], () => {
|
|
9916
9919
|
G(0);
|
|
9917
|
-
}),
|
|
9918
|
-
ie !== he && ie >= d.value.length * y &&
|
|
9920
|
+
}), Be(h, (ie, he) => {
|
|
9921
|
+
ie !== he && ie >= d.value.length * y && ae(0);
|
|
9919
9922
|
});
|
|
9920
|
-
function
|
|
9923
|
+
function de(ie) {
|
|
9921
9924
|
let { deltaX: he } = ie, Ce = -1 * ie.deltaY;
|
|
9922
9925
|
return typeof he > "u" && (he = -1 * ie.wheelDeltaX / 6), typeof Ce > "u" && (Ce = ie.wheelDeltaY / 6), ie.deltaMode && ie.deltaMode === 1 && (he *= 10, Ce *= 10), ie.shiftKey ? { deltaY: -Ce, deltaX: -he } : { deltaX: he, deltaY: Ce };
|
|
9923
9926
|
}
|
|
9924
|
-
function
|
|
9925
|
-
if (t.disabled ||
|
|
9927
|
+
function Te(ie) {
|
|
9928
|
+
if (t.disabled || !j.value || ie.target.tagName === "TEXTAREA")
|
|
9926
9929
|
return;
|
|
9927
9930
|
ie.preventDefault(), ie.stopPropagation();
|
|
9928
|
-
const { deltaX: he, deltaY: Ce } =
|
|
9929
|
-
|
|
9931
|
+
const { deltaX: he, deltaY: Ce } = de(ie);
|
|
9932
|
+
ae(Ce), G(he);
|
|
9930
9933
|
}
|
|
9931
9934
|
const be = z(() => ({
|
|
9932
9935
|
height: `${d.value.length * y}px`,
|
|
@@ -9934,7 +9937,7 @@ function qo(t, e, n, o, i, a, r, s, u) {
|
|
|
9934
9937
|
transform: `translateY(${w.value}px)`
|
|
9935
9938
|
})), ye = z(() => ({
|
|
9936
9939
|
transform: `translateY(${w.value}px)`
|
|
9937
|
-
})),
|
|
9940
|
+
})), ke = z(() => ({
|
|
9938
9941
|
height: `${(t.autoHeight ? p.value : d.value).length * y}px`,
|
|
9939
9942
|
width: `${f.value}px`,
|
|
9940
9943
|
transform: `translate(${m.value}px, ${w.value}px)`
|
|
@@ -9944,17 +9947,17 @@ function qo(t, e, n, o, i, a, r, s, u) {
|
|
|
9944
9947
|
height: `${d.value.length * y}px`,
|
|
9945
9948
|
width: `${_.value}px`,
|
|
9946
9949
|
transform: `translateY(${w.value}px)`
|
|
9947
|
-
})),
|
|
9950
|
+
})), ue = z(() => ({
|
|
9948
9951
|
transform: `translateY(${w.value}px)`
|
|
9949
|
-
})),
|
|
9952
|
+
})), _e = z(() => ({
|
|
9950
9953
|
height: `${d.value.length * y}px`,
|
|
9951
9954
|
width: `${s.value}px`,
|
|
9952
9955
|
transform: `translateY(${w.value}px)`
|
|
9953
|
-
})),
|
|
9956
|
+
})), Se = z(() => ({
|
|
9954
9957
|
width: `${F.value}px`
|
|
9955
|
-
})),
|
|
9958
|
+
})), He = z(() => ({
|
|
9956
9959
|
transform: `translateX(${m.value}px)`
|
|
9957
|
-
})),
|
|
9960
|
+
})), qe = z(() => ({
|
|
9958
9961
|
width: `${_.value}px`
|
|
9959
9962
|
})), ne = z(() => {
|
|
9960
9963
|
const ie = V();
|
|
@@ -9964,81 +9967,81 @@ function qo(t, e, n, o, i, a, r, s, u) {
|
|
|
9964
9967
|
height: `${O.value}px`,
|
|
9965
9968
|
top: `${ne.value}px`,
|
|
9966
9969
|
backgroundColor: "#cccccc !important"
|
|
9967
|
-
})),
|
|
9970
|
+
})), Ve = z(() => m.value / $.value * (g.value - B.value)), Le = z(() => ({
|
|
9968
9971
|
height: "8px",
|
|
9969
9972
|
width: `${B.value}px`,
|
|
9970
|
-
left: `${
|
|
9973
|
+
left: `${Ve.value}px`,
|
|
9971
9974
|
backgroundColor: "#cccccc !important"
|
|
9972
|
-
})),
|
|
9973
|
-
function
|
|
9974
|
-
if (
|
|
9975
|
-
const he =
|
|
9975
|
+
})), Ne = E(!1), K = E(-1), we = E(-1), De = E();
|
|
9976
|
+
function me(ie) {
|
|
9977
|
+
if (Ne.value && we.value !== -1) {
|
|
9978
|
+
const he = we.value - ie.pageX, Ce = g.value - B.value;
|
|
9976
9979
|
if (Math.abs(he) <= Ce) {
|
|
9977
9980
|
const $e = he / (T.value - B.value) * (f.value - T.value);
|
|
9978
|
-
G($e),
|
|
9981
|
+
G($e), we.value = ie.pageX;
|
|
9979
9982
|
}
|
|
9980
9983
|
}
|
|
9981
9984
|
}
|
|
9982
|
-
function
|
|
9983
|
-
if (
|
|
9985
|
+
function Re(ie) {
|
|
9986
|
+
if (Ne.value && K.value !== -1) {
|
|
9984
9987
|
const he = K.value - ie.pageY, Ce = V(), $e = Ce - O.value;
|
|
9985
9988
|
if (Math.abs(he) <= $e) {
|
|
9986
|
-
const
|
|
9987
|
-
|
|
9989
|
+
const Ae = he / (h.value - O.value) * (Ce - h.value);
|
|
9990
|
+
ae(Ae), K.value = ie.pageY;
|
|
9988
9991
|
}
|
|
9989
9992
|
}
|
|
9990
9993
|
}
|
|
9991
|
-
function
|
|
9992
|
-
|
|
9994
|
+
function We(ie) {
|
|
9995
|
+
Ne.value = !1, K.value = -1, we.value = -1, document.removeEventListener("mouseup", We), M && (document.removeEventListener("mousemove", M), M = null), document.body.style.userSelect = "", De.value && (De.value.style.opacity = null);
|
|
9993
9996
|
}
|
|
9994
|
-
function
|
|
9995
|
-
var
|
|
9996
|
-
|
|
9997
|
-
const $e = (
|
|
9998
|
-
$e && ($e.style.opacity = "1",
|
|
9999
|
-
const
|
|
10000
|
-
M || (M =
|
|
9997
|
+
function et(ie, he, Ce) {
|
|
9998
|
+
var Xe;
|
|
9999
|
+
Ne.value = !0;
|
|
10000
|
+
const $e = (Xe = ie.target) == null ? void 0 : Xe.parentElement;
|
|
10001
|
+
$e && ($e.style.opacity = "1", De.value = $e);
|
|
10002
|
+
const Ae = Ce === "horizontal" ? me : mr(Re, 50);
|
|
10003
|
+
M || (M = Ae), Ce === "vertical" && (K.value = ie.pageY), Ce === "horizontal" && (we.value = ie.pageX), he.value && (he.value, document.addEventListener("mousemove", M), document.addEventListener("mouseup", We), document.body.style.userSelect = "none");
|
|
10001
10004
|
}
|
|
10002
|
-
function
|
|
10005
|
+
function at(ie) {
|
|
10003
10006
|
const he = d.value.length * y - h.value;
|
|
10004
10007
|
let Ce = ie * y;
|
|
10005
|
-
Ce >= he && (Ce = he),
|
|
10008
|
+
Ce >= he && (Ce = he), ae(-Ce - w.value);
|
|
10006
10009
|
}
|
|
10007
|
-
function
|
|
10008
|
-
|
|
10010
|
+
function mt() {
|
|
10011
|
+
at(d.value.length);
|
|
10009
10012
|
}
|
|
10010
10013
|
function wt(ie) {
|
|
10011
|
-
|
|
10014
|
+
ae(ie - w.value);
|
|
10012
10015
|
}
|
|
10013
10016
|
return {
|
|
10014
10017
|
dataGridWidth: g,
|
|
10015
10018
|
fitHorizontalScroll: H,
|
|
10016
|
-
gridDataStyle:
|
|
10017
|
-
gridHeaderColumnsStyle:
|
|
10019
|
+
gridDataStyle: ke,
|
|
10020
|
+
gridHeaderColumnsStyle: He,
|
|
10018
10021
|
gridMergedDataStyle: Y,
|
|
10019
|
-
gridSideStyle:
|
|
10020
|
-
horizontalScrollThumbStyle:
|
|
10022
|
+
gridSideStyle: _e,
|
|
10023
|
+
horizontalScrollThumbStyle: Le,
|
|
10021
10024
|
leftFixedGridDataStyle: be,
|
|
10022
|
-
leftFixedGridHeaderColumnsStyle:
|
|
10025
|
+
leftFixedGridHeaderColumnsStyle: Se,
|
|
10023
10026
|
leftFixedGridMergedDataStyle: ye,
|
|
10024
10027
|
offsetX: m,
|
|
10025
10028
|
offsetY: w,
|
|
10026
|
-
onMouseDownScrollThumb:
|
|
10027
|
-
onWheel:
|
|
10029
|
+
onMouseDownScrollThumb: et,
|
|
10030
|
+
onWheel: Te,
|
|
10028
10031
|
reCalculateVisualDataRows: I,
|
|
10029
10032
|
resetScroll: W,
|
|
10030
10033
|
rightFixedGridDataStyle: oe,
|
|
10031
|
-
rightFixedGridHeaderColumnsStyle:
|
|
10032
|
-
rightFixedGridMergedDataStyle:
|
|
10034
|
+
rightFixedGridHeaderColumnsStyle: qe,
|
|
10035
|
+
rightFixedGridMergedDataStyle: ue,
|
|
10033
10036
|
shouldShowHorizontalScrollbar: A,
|
|
10034
|
-
shouldShowVirticalScrollbar:
|
|
10037
|
+
shouldShowVirticalScrollbar: j,
|
|
10035
10038
|
updateVirticalScroll: Z,
|
|
10036
10039
|
updateVisibleRowsOnLatestVisibleScope: q,
|
|
10037
10040
|
verticalScrollThumbStyle: ve,
|
|
10038
10041
|
viewPortWidth: T,
|
|
10039
10042
|
viewPortHeight: h,
|
|
10040
|
-
scrollToBottom:
|
|
10041
|
-
scrollToRowByIndex:
|
|
10043
|
+
scrollToBottom: mt,
|
|
10044
|
+
scrollToRowByIndex: at,
|
|
10042
10045
|
scrollTo: wt
|
|
10043
10046
|
};
|
|
10044
10047
|
}
|
|
@@ -10127,7 +10130,7 @@ function Ru() {
|
|
|
10127
10130
|
function Pu() {
|
|
10128
10131
|
const {
|
|
10129
10132
|
formatTo: t
|
|
10130
|
-
} =
|
|
10133
|
+
} = ln();
|
|
10131
10134
|
function e(o, i) {
|
|
10132
10135
|
if (o) {
|
|
10133
10136
|
let a = "yyyy-MM-dd";
|
|
@@ -10152,7 +10155,7 @@ function Pu() {
|
|
|
10152
10155
|
function Du() {
|
|
10153
10156
|
const {
|
|
10154
10157
|
formatTo: t
|
|
10155
|
-
} =
|
|
10158
|
+
} = Jn();
|
|
10156
10159
|
function e(n, o) {
|
|
10157
10160
|
const i = {
|
|
10158
10161
|
precision: o.precision,
|
|
@@ -10167,7 +10170,7 @@ function Du() {
|
|
|
10167
10170
|
renderNumberColumn: e
|
|
10168
10171
|
};
|
|
10169
10172
|
}
|
|
10170
|
-
function
|
|
10173
|
+
function ju() {
|
|
10171
10174
|
function t(e, n) {
|
|
10172
10175
|
if (e) {
|
|
10173
10176
|
const o = {};
|
|
@@ -10182,10 +10185,10 @@ function $u() {
|
|
|
10182
10185
|
renderImageColumn: t
|
|
10183
10186
|
};
|
|
10184
10187
|
}
|
|
10185
|
-
function
|
|
10188
|
+
function $u() {
|
|
10186
10189
|
const {
|
|
10187
10190
|
locale: t
|
|
10188
|
-
} =
|
|
10191
|
+
} = pt();
|
|
10189
10192
|
function e(n, o) {
|
|
10190
10193
|
return (n == null ? void 0 : n[t.value || "zh-CHS"]) || "";
|
|
10191
10194
|
}
|
|
@@ -10205,9 +10208,9 @@ function Lu() {
|
|
|
10205
10208
|
renderDateTimeColumn: i
|
|
10206
10209
|
} = Pu(), {
|
|
10207
10210
|
renderImageColumn: a
|
|
10208
|
-
} =
|
|
10211
|
+
} = ju(), {
|
|
10209
10212
|
renderMultilingualColumn: r
|
|
10210
|
-
} =
|
|
10213
|
+
} = $u();
|
|
10211
10214
|
function s(p) {
|
|
10212
10215
|
return typeof p == "boolean" ? p.toString() : p;
|
|
10213
10216
|
}
|
|
@@ -10220,8 +10223,8 @@ function Lu() {
|
|
|
10220
10223
|
function d(p, l, c) {
|
|
10221
10224
|
const {
|
|
10222
10225
|
column: v
|
|
10223
|
-
} = p, f =
|
|
10224
|
-
return c.type ===
|
|
10226
|
+
} = p, f = Ze(l.raw, v.field), F = c.options || c;
|
|
10227
|
+
return c.type === ct.NONE ? s(f) : c.type === ct.CUSTOM ? u(f, c, l) : c.type === ct.ENUM ? e(f, F) : c.type === ct.NUMBER ? n(f, F) : c.type === ct.BOOLEAN ? t(f, F) : c.type === ct.DATE ? o(f, F) : c.type === ct.DATE_TIME ? i(f, c) : c.type === ct.IMAGE ? a(f, F) : c.type === ct.MULTI_LINGUAL ? r(f, F) : s(f);
|
|
10225
10228
|
}
|
|
10226
10229
|
return {
|
|
10227
10230
|
renderFormatColumn: d
|
|
@@ -10231,15 +10234,15 @@ function Yo(t, e, n) {
|
|
|
10231
10234
|
var y;
|
|
10232
10235
|
const { isUndefined: o } = Jt(), i = E(t.mergeCell);
|
|
10233
10236
|
(y = E(t.rowOption).value) != null && y.wrapContent;
|
|
10234
|
-
const { updateVisualInfomation: r } = n, { renderCommandColumn: s } =
|
|
10237
|
+
const { updateVisualInfomation: r } = n, { renderCommandColumn: s } = ja(t), { renderFormatColumn: u } = Lu();
|
|
10235
10238
|
function d(w, m, x, b, g, h = 1) {
|
|
10236
10239
|
const T = {
|
|
10237
10240
|
colSpan: h,
|
|
10238
10241
|
rowSpan: 1,
|
|
10239
10242
|
index: x,
|
|
10240
10243
|
field: w,
|
|
10241
|
-
data:
|
|
10242
|
-
editingData:
|
|
10244
|
+
data: Ze(b, w),
|
|
10245
|
+
editingData: Ze(b, w),
|
|
10243
10246
|
parent: g,
|
|
10244
10247
|
mode: m,
|
|
10245
10248
|
align: "left",
|
|
@@ -10262,11 +10265,11 @@ function Yo(t, e, n) {
|
|
|
10262
10265
|
return w.getEditor = (b) => e.getEditor(b, m, b.parent), w.setRef = (b) => r(b, w, x), w.update = (b) => {
|
|
10263
10266
|
b !== void 0 && (w.editingData = b);
|
|
10264
10267
|
}, w.accept = () => {
|
|
10265
|
-
tn(w.editingData, x, m.field), w.data =
|
|
10268
|
+
tn(w.editingData, x, m.field), w.data = Ze(x, m.field);
|
|
10266
10269
|
}, w.cancel = () => {
|
|
10267
10270
|
w.editingData = w.data;
|
|
10268
10271
|
}, w.updateData = (b) => {
|
|
10269
|
-
tn(
|
|
10272
|
+
tn(Ze(b, m.field), x, m.field), w.data = Ze(x, m.field), w.editingData = Ze(x, m.field);
|
|
10270
10273
|
}, w;
|
|
10271
10274
|
}
|
|
10272
10275
|
function l(w, m) {
|
|
@@ -10283,13 +10286,13 @@ function Yo(t, e, n) {
|
|
|
10283
10286
|
i.value && c(w, m, x.field);
|
|
10284
10287
|
}
|
|
10285
10288
|
function f(w, m) {
|
|
10286
|
-
m.showEllipsis !== void 0 && (w.showEllipsis = m.showEllipsis), w.showTips = o(m.showTips) ? !0 : m.showTips, w.column = m, w.align = m.align || "left", w.valign = m.valign || "middle", w.mode = t.editable ?
|
|
10289
|
+
m.showEllipsis !== void 0 && (w.showEllipsis = m.showEllipsis), w.showTips = o(m.showTips) ? !0 : m.showTips, w.column = m, w.align = m.align || "left", w.valign = m.valign || "middle", w.mode = t.editable ? ot.editable : ot.readonly;
|
|
10287
10290
|
}
|
|
10288
10291
|
function F(w, m, x, b) {
|
|
10289
10292
|
f(w, m), p(w, m, b), l(w, m), v(w, x, m);
|
|
10290
10293
|
}
|
|
10291
10294
|
function _(w, m, x, b, g) {
|
|
10292
|
-
const h = t.editable ?
|
|
10295
|
+
const h = t.editable ? ot.editable : ot.readonly, T = d(w.field, h, m, x, b);
|
|
10293
10296
|
return F(T, w, g, x), T;
|
|
10294
10297
|
}
|
|
10295
10298
|
return { createCellByColumn: _, createCellByField: d, updateCellByColumn: F };
|
|
@@ -10297,7 +10300,7 @@ function Yo(t, e, n) {
|
|
|
10297
10300
|
function Xo(t, e, n, o, i, a, r) {
|
|
10298
10301
|
var m, x;
|
|
10299
10302
|
const s = E(t.rowOption), u = ((m = s.value) == null ? void 0 : m.height) || 28, d = ((x = s.value) == null ? void 0 : x.wrapContent) || !1, { idField: p } = i, { collapseField: l } = o, { updateRowPosition: c } = a, { createCellByColumn: v } = r, f = (b, g, h, T) => {
|
|
10300
|
-
tn(
|
|
10303
|
+
tn(Ze(b, T), g, T), h.data[T].data = Ze(g, T), h.data[T].editingData = Ze(g, T);
|
|
10301
10304
|
};
|
|
10302
10305
|
function F(b, g, h, T, C, k) {
|
|
10303
10306
|
var A, J, q;
|
|
@@ -10305,7 +10308,7 @@ function Xo(t, e, n, o, i, a, r) {
|
|
|
10305
10308
|
__fv_data_grid_group_field__: S,
|
|
10306
10309
|
__fv_data_grid_group_value__: M,
|
|
10307
10310
|
__fv_data_index__: V
|
|
10308
|
-
} = h, O = h.__fv_data_grid_group_layer__ || (h.__fv_parents__ ? (A = h.__fv_parents__) == null ? void 0 : A.size : 0) || 0, B = typeof h.parent == "number" ? Number(h.parent) : -1, L = h.__fv_data_grid_group_collapse__ || h[l.value], X = h.__fv_visible__ === void 0 ? !0 : h.__fv_visible__,
|
|
10311
|
+
} = h, O = h.__fv_data_grid_group_layer__ || (h.__fv_parents__ ? (A = h.__fv_parents__) == null ? void 0 : A.size : 0) || 0, B = typeof h.parent == "number" ? Number(h.parent) : -1, L = h.__fv_data_grid_group_collapse__ || h[l.value], X = h.__fv_visible__ === void 0 ? !0 : h.__fv_visible__, $ = h.__fv_checked__, D = h.__fv_indeterminate__, P = h.__fv_disabled__ || h[((J = t.rowOption) == null ? void 0 : J.disabledField) || "disabled"], I = t.hierarchy && e.isVisibleInTree(h), j = {
|
|
10309
10312
|
collapse: L,
|
|
10310
10313
|
data: {},
|
|
10311
10314
|
dataIndex: V,
|
|
@@ -10318,24 +10321,24 @@ function Xo(t, e, n, o, i, a, r) {
|
|
|
10318
10321
|
top: k,
|
|
10319
10322
|
type: b,
|
|
10320
10323
|
raw: h,
|
|
10321
|
-
checked:
|
|
10324
|
+
checked: $,
|
|
10322
10325
|
disabled: P,
|
|
10323
10326
|
indeterminate: D,
|
|
10324
|
-
setRef: (
|
|
10325
|
-
|
|
10327
|
+
setRef: (ae) => {
|
|
10328
|
+
j.ref = ae;
|
|
10326
10329
|
},
|
|
10327
10330
|
visible: X && I || X && !t.hierarchy,
|
|
10328
|
-
status:
|
|
10329
|
-
updateCell: (
|
|
10330
|
-
f(
|
|
10331
|
+
status: ft.initial,
|
|
10332
|
+
updateCell: (ae, G) => {
|
|
10333
|
+
f(ae, h, j, G), e.updateSummary();
|
|
10331
10334
|
},
|
|
10332
|
-
updateCells: (
|
|
10335
|
+
updateCells: (ae, G) => {
|
|
10333
10336
|
G.forEach((H) => {
|
|
10334
|
-
f(
|
|
10337
|
+
f(ae, h, j, H);
|
|
10335
10338
|
});
|
|
10336
10339
|
}
|
|
10337
10340
|
};
|
|
10338
|
-
return T || (h.__fv_data_position__ = 0), d || (
|
|
10341
|
+
return T || (h.__fv_data_position__ = 0), d || (j.height = u, h.__fv_data_height__ = j.height, c(j, h)), (q = s.value) != null && q.customRowStatus && (s.value.customRowStatus(j), h.__fv_disabled__ = j.disabled), j;
|
|
10339
10342
|
}
|
|
10340
10343
|
function _(b, g, h, T, C, k) {
|
|
10341
10344
|
const S = F(Rt.data, C, g, h, T, k);
|
|
@@ -10371,34 +10374,34 @@ function Jo(t, e, n, o, i) {
|
|
|
10371
10374
|
function y(I) {
|
|
10372
10375
|
return v && v.raw[a.value] === I ? v : null;
|
|
10373
10376
|
}
|
|
10374
|
-
const w =
|
|
10375
|
-
function m(I,
|
|
10376
|
-
I.mode =
|
|
10377
|
+
const w = ht({});
|
|
10378
|
+
function m(I, j, A = {}) {
|
|
10379
|
+
I.mode = ot.editing, c = I, v = j, f = Ze(j == null ? void 0 : j.raw, I.field), F = A;
|
|
10377
10380
|
for (const J in w)
|
|
10378
10381
|
delete w[J];
|
|
10379
10382
|
}
|
|
10380
10383
|
function x(I) {
|
|
10381
|
-
I.accept(), I.mode =
|
|
10382
|
-
const
|
|
10384
|
+
I.accept(), I.mode = ot.editable, c = null;
|
|
10385
|
+
const j = {};
|
|
10383
10386
|
v && (Object.keys(v).forEach((A) => {
|
|
10384
|
-
|
|
10387
|
+
j[A] = v == null ? void 0 : v[A];
|
|
10385
10388
|
}), v = null), e.emit("endEditCell", {
|
|
10386
10389
|
cell: I,
|
|
10387
|
-
row:
|
|
10388
|
-
newValue:
|
|
10390
|
+
row: j,
|
|
10391
|
+
newValue: Ze(j == null ? void 0 : j.raw, I.field),
|
|
10389
10392
|
oldValue: f,
|
|
10390
10393
|
column: F,
|
|
10391
10394
|
editor: w
|
|
10392
10395
|
});
|
|
10393
10396
|
}
|
|
10394
10397
|
function b(I) {
|
|
10395
|
-
const
|
|
10396
|
-
return I ?
|
|
10398
|
+
const j = Promise.resolve(!0);
|
|
10399
|
+
return I ? j.then(() => ut(t.beforeEndEditCell) ? !0 : typeof t.beforeEndEditCell == "function" ? t.beforeEndEditCell({
|
|
10397
10400
|
cell: I,
|
|
10398
10401
|
row: v,
|
|
10399
10402
|
newValue: I.editingData,
|
|
10400
10403
|
oldValue: f
|
|
10401
|
-
}) : () => !0).then((A) => (A && (x(I), v && (v = null)), A)) :
|
|
10404
|
+
}) : () => !0).then((A) => (A && (x(I), v && (v = null)), A)) : j;
|
|
10402
10405
|
}
|
|
10403
10406
|
function g(I) {
|
|
10404
10407
|
if (_ && _ !== I.target) {
|
|
@@ -10419,28 +10422,28 @@ function Jo(t, e, n, o, i) {
|
|
|
10419
10422
|
});
|
|
10420
10423
|
}
|
|
10421
10424
|
}
|
|
10422
|
-
function h(I,
|
|
10425
|
+
function h(I, j, A) {
|
|
10423
10426
|
return Promise.resolve().then(() => {
|
|
10424
10427
|
var q;
|
|
10425
10428
|
const J = (q = A.editor) == null ? void 0 : q.readonly;
|
|
10426
|
-
return !
|
|
10429
|
+
return !ut(t.beforeEditCell) && typeof t.beforeEditCell == "function" ? t.beforeEditCell({
|
|
10427
10430
|
row: I,
|
|
10428
|
-
cell:
|
|
10431
|
+
cell: j,
|
|
10429
10432
|
rawData: I.raw,
|
|
10430
10433
|
column: A
|
|
10431
10434
|
}) : !J;
|
|
10432
10435
|
}).then((J) => {
|
|
10433
|
-
J && (m(
|
|
10436
|
+
J && (m(j, I, A), document.body.removeEventListener("click", g, !0), document.body.addEventListener("click", g, !0));
|
|
10434
10437
|
});
|
|
10435
10438
|
}
|
|
10436
|
-
function T(I,
|
|
10437
|
-
I.stopPropagation(), p(I, A), r.value && s.value.editMode === "cell" &&
|
|
10438
|
-
c || h(A,
|
|
10439
|
+
function T(I, j, A, J = {}) {
|
|
10440
|
+
I.stopPropagation(), p(I, A), r.value && s.value.editMode === "cell" && j.mode === ot.editable && b(c).then(() => {
|
|
10441
|
+
c || h(A, j, J);
|
|
10439
10442
|
});
|
|
10440
10443
|
}
|
|
10441
|
-
function C(I,
|
|
10442
|
-
I.stopPropagation(), d(I, A), r.value && s.value.editMode === "cell" &&
|
|
10443
|
-
c || h(A,
|
|
10444
|
+
function C(I, j, A, J = {}) {
|
|
10445
|
+
I.stopPropagation(), d(I, A), r.value && s.value.editMode === "cell" && j.mode === ot.editable && b(c).then(() => {
|
|
10446
|
+
c || h(A, j, J);
|
|
10444
10447
|
});
|
|
10445
10448
|
}
|
|
10446
10449
|
function k(I) {
|
|
@@ -10450,50 +10453,50 @@ function Jo(t, e, n, o, i) {
|
|
|
10450
10453
|
I.stopPropagation(), _ && (_ = null);
|
|
10451
10454
|
}
|
|
10452
10455
|
function M(I) {
|
|
10453
|
-
Object.values(I.data).filter((
|
|
10454
|
-
|
|
10455
|
-
}), I.status =
|
|
10456
|
+
Object.values(I.data).filter((j) => j.mode === ot.editable && j.field !== "__commands__").forEach((j) => {
|
|
10457
|
+
j.mode = ot.editing;
|
|
10458
|
+
}), I.status = ft.editing, v = I;
|
|
10456
10459
|
}
|
|
10457
|
-
function V(I,
|
|
10458
|
-
Object.values(I.data).filter((A) => A.mode ===
|
|
10459
|
-
|
|
10460
|
-
}), I.status =
|
|
10460
|
+
function V(I, j) {
|
|
10461
|
+
Object.values(I.data).filter((A) => A.mode === ot.editing).forEach((A) => {
|
|
10462
|
+
j ? A.accept() : A.cancel(), A.mode = ot.editable;
|
|
10463
|
+
}), I.status = ft.initial, v === I && (v = null);
|
|
10461
10464
|
}
|
|
10462
10465
|
function O(I) {
|
|
10463
10466
|
r.value && s.value.editMode === "row" && v !== I && (v && V(v, !1), M(I));
|
|
10464
10467
|
}
|
|
10465
10468
|
function B(I) {
|
|
10466
|
-
V(I, !0), I.status =
|
|
10469
|
+
V(I, !0), I.status = ft.initial;
|
|
10467
10470
|
}
|
|
10468
10471
|
function L(I) {
|
|
10469
|
-
V(I, !1), I.status =
|
|
10472
|
+
V(I, !1), I.status = ft.initial;
|
|
10470
10473
|
}
|
|
10471
|
-
function X(I,
|
|
10472
|
-
const J =
|
|
10474
|
+
function X(I, j, A) {
|
|
10475
|
+
const J = j.dataType, q = j.editor || {
|
|
10473
10476
|
type: l.get(J) || "input-group"
|
|
10474
10477
|
};
|
|
10475
|
-
return !u.value && q.type === "text" && (q.type = "input-group"), q ? (q.type === "input-group" && (q.textAlign =
|
|
10478
|
+
return !u.value && q.type === "text" && (q.type = "input-group"), q ? (q.type === "input-group" && (q.textAlign = j.align !== "center" && j.align !== "right" ? "left" : j.align, q.updateOn = "change"), q.type === "number-spinner" && (q.updateOn = "change"), q.type === "textarea" && (q.lineBreak = "alt enter"), q.context = {
|
|
10476
10479
|
rowData: A.raw,
|
|
10477
|
-
column:
|
|
10480
|
+
column: j,
|
|
10478
10481
|
cell: I,
|
|
10479
10482
|
editor: w
|
|
10480
|
-
}, q.readonly = !1, R(
|
|
10483
|
+
}, q.readonly = !1, R(Pr, {
|
|
10481
10484
|
focusOnCreated: t.focusOnEditingCell,
|
|
10482
10485
|
selectOnCreated: t.selectOnEditingCell,
|
|
10483
10486
|
editor: q,
|
|
10484
10487
|
modelValue: I.editingData,
|
|
10485
|
-
"onUpdate:modelValue": (
|
|
10486
|
-
id:
|
|
10487
|
-
onMousedown: (
|
|
10488
|
-
onMouseup: (
|
|
10488
|
+
"onUpdate:modelValue": (ae) => I.editingData = ae,
|
|
10489
|
+
id: j.id,
|
|
10490
|
+
onMousedown: (ae) => k(ae),
|
|
10491
|
+
onMouseup: (ae) => S(ae)
|
|
10489
10492
|
}, null)) : I.data;
|
|
10490
10493
|
}
|
|
10491
|
-
function
|
|
10494
|
+
function $() {
|
|
10492
10495
|
b(c);
|
|
10493
10496
|
}
|
|
10494
|
-
|
|
10497
|
+
Be(() => t.editable, () => {
|
|
10495
10498
|
r.value = t.editable;
|
|
10496
|
-
}),
|
|
10499
|
+
}), Be(() => {
|
|
10497
10500
|
var I;
|
|
10498
10501
|
return (I = t.editOption) == null ? void 0 : I.editMode;
|
|
10499
10502
|
}, (I) => {
|
|
@@ -10512,7 +10515,7 @@ function Jo(t, e, n, o, i) {
|
|
|
10512
10515
|
cancelEditingRow: L,
|
|
10513
10516
|
getEditingSnapshot: y,
|
|
10514
10517
|
getEditor: X,
|
|
10515
|
-
endEditCell:
|
|
10518
|
+
endEditCell: $,
|
|
10516
10519
|
onMousedownCell: k,
|
|
10517
10520
|
onMouseupCell: S
|
|
10518
10521
|
};
|
|
@@ -10547,7 +10550,7 @@ function Zo(t, e, n, o) {
|
|
|
10547
10550
|
return c.value && (s.value ? d.value.includes(O.raw[i.value]) : O.raw[i.value] === a.value);
|
|
10548
10551
|
}
|
|
10549
10552
|
function m(O, B) {
|
|
10550
|
-
var
|
|
10553
|
+
var $;
|
|
10551
10554
|
const L = B ?? O.dataIndex, X = {
|
|
10552
10555
|
"fv-grid-row": O.type === Rt.data,
|
|
10553
10556
|
"fv-grid-group-row": O.type === Rt.group,
|
|
@@ -10558,7 +10561,7 @@ function Zo(t, e, n, o) {
|
|
|
10558
10561
|
"fv-grid-row-even": L % 2 === 0,
|
|
10559
10562
|
"fv-grid-disabled": O.disabled
|
|
10560
10563
|
};
|
|
10561
|
-
if ((
|
|
10564
|
+
if (($ = t.rowOption) != null && $.customRowStyle) {
|
|
10562
10565
|
const D = t.rowOption.customRowStyle(O.raw) || {};
|
|
10563
10566
|
return Object.assign({}, X, D);
|
|
10564
10567
|
}
|
|
@@ -10587,9 +10590,9 @@ function Zo(t, e, n, o) {
|
|
|
10587
10590
|
return B;
|
|
10588
10591
|
}
|
|
10589
10592
|
function g(O, B) {
|
|
10590
|
-
var
|
|
10593
|
+
var $, D;
|
|
10591
10594
|
if (s.value && !O.shiftKey || f.value) {
|
|
10592
|
-
(
|
|
10595
|
+
($ = t.selection) != null && $.keepSelectingOnClick ? u(B) : p(B, (D = t.selection) == null ? void 0 : D.keepSelectingOnClick), l();
|
|
10593
10596
|
return;
|
|
10594
10597
|
}
|
|
10595
10598
|
if (s.value && O.shiftKey || r.value) {
|
|
@@ -10617,7 +10620,7 @@ function Zo(t, e, n, o) {
|
|
|
10617
10620
|
function M(O, B) {
|
|
10618
10621
|
}
|
|
10619
10622
|
function V(O, B) {
|
|
10620
|
-
var
|
|
10623
|
+
var $;
|
|
10621
10624
|
const L = B ?? O.dataIndex, X = {
|
|
10622
10625
|
"fv-grid-sidebar-row": !0,
|
|
10623
10626
|
"fv-grid-sidebar-row-hover": L === _.value,
|
|
@@ -10627,7 +10630,7 @@ function Zo(t, e, n, o) {
|
|
|
10627
10630
|
"d-flex": !0,
|
|
10628
10631
|
"align-items-center": !0
|
|
10629
10632
|
};
|
|
10630
|
-
if ((
|
|
10633
|
+
if (($ = t.rowOption) != null && $.customRowStyle) {
|
|
10631
10634
|
const D = t.rowOption.customRowStyle(O.raw) || {};
|
|
10632
10635
|
return Object.assign({}, X, D);
|
|
10633
10636
|
}
|
|
@@ -10648,26 +10651,26 @@ function Zo(t, e, n, o) {
|
|
|
10648
10651
|
}
|
|
10649
10652
|
function Ko(t, e, n, o, i) {
|
|
10650
10653
|
const { idField: a } = n, { dataView: r, getSelectionItems: s } = e, u = E(""), d = z(() => t.selection.enableSelectRow), p = E(t.selection.multiSelect ?? !1), l = E(t.selection.multiSelectMode || "DependOnCheck"), c = E(t.selection.showCheckbox), v = E(t.selection.showSelectAll), f = E(t.selectionValues || []), F = E(!!f.value.length && o.value.length === f.value.length), _ = E(!!f.value.length && o.value.length !== f.value.length);
|
|
10651
|
-
|
|
10654
|
+
Be(() => t.selection.showSelectAll, (Y, oe) => {
|
|
10652
10655
|
Y !== oe && (v.value = Y);
|
|
10653
10656
|
});
|
|
10654
10657
|
function y() {
|
|
10655
|
-
const Y = r.value.every((
|
|
10658
|
+
const Y = r.value.every((ue) => f.value.includes(ue[a.value])), oe = r.value.every((ue) => !f.value.includes(ue[a.value]));
|
|
10656
10659
|
Y && (F.value = !0, _.value = !1), oe && (F.value = !1, _.value = !1), !Y && !oe && (F.value = !1, _.value = !0);
|
|
10657
10660
|
}
|
|
10658
10661
|
function w() {
|
|
10659
10662
|
return s(f.value);
|
|
10660
10663
|
}
|
|
10661
10664
|
function m() {
|
|
10662
|
-
const Y = o.value.reduce((
|
|
10663
|
-
return f.value.map((
|
|
10665
|
+
const Y = o.value.reduce((ue, _e) => (ue.set(_e.raw[a.value], _e), ue), /* @__PURE__ */ new Map());
|
|
10666
|
+
return f.value.map((ue) => Y.get(ue)).filter((ue) => !!ue);
|
|
10664
10667
|
}
|
|
10665
10668
|
function x(Y) {
|
|
10666
|
-
var
|
|
10669
|
+
var ue;
|
|
10667
10670
|
const oe = Y.raw.__fv_children_index__;
|
|
10668
10671
|
if (oe && oe.length) {
|
|
10669
|
-
const
|
|
10670
|
-
(
|
|
10672
|
+
const _e = oe.map((Se) => r.value[Se]);
|
|
10673
|
+
(ue = f.value) != null && ue.length && _e.some((He) => !f.value.includes(He[a.value])) && (Y.indeterminate = !0, Y.raw.__fv_indeterminate__ = !0);
|
|
10671
10674
|
}
|
|
10672
10675
|
}
|
|
10673
10676
|
const b = z(() => d.value && p.value), g = z(
|
|
@@ -10688,21 +10691,21 @@ function Ko(t, e, n, o, i) {
|
|
|
10688
10691
|
i.emit("selectItem", Y);
|
|
10689
10692
|
}
|
|
10690
10693
|
function O() {
|
|
10691
|
-
const Y = o.value.filter((
|
|
10692
|
-
o.value.forEach((
|
|
10693
|
-
|
|
10694
|
-
}), m().forEach((
|
|
10695
|
-
|
|
10696
|
-
}), Y.forEach((
|
|
10697
|
-
const
|
|
10698
|
-
x(
|
|
10694
|
+
const Y = o.value.filter((ue) => ue.indeterminate).map((ue) => ue.raw[a.value]);
|
|
10695
|
+
o.value.forEach((ue) => {
|
|
10696
|
+
ue.checked = !1, ue.indeterminate = !1, ue.raw.__fv_checked__ = !1, ue.raw.__fv_indeterminate__ = !1;
|
|
10697
|
+
}), m().forEach((ue) => {
|
|
10698
|
+
ue.checked = !0, ue.raw.__fv_checked__ = !0;
|
|
10699
|
+
}), Y.forEach((ue) => {
|
|
10700
|
+
const _e = o.value.find((Se) => Se.raw[a.value] === ue);
|
|
10701
|
+
x(_e);
|
|
10699
10702
|
});
|
|
10700
10703
|
}
|
|
10701
|
-
|
|
10704
|
+
Be(() => o.value, () => {
|
|
10702
10705
|
O();
|
|
10703
|
-
}),
|
|
10706
|
+
}), Be(() => t.selectionValues, (Y) => {
|
|
10704
10707
|
f.value = Y, O();
|
|
10705
|
-
}, { immediate: !0 }),
|
|
10708
|
+
}, { immediate: !0 }), Be(() => t.selection, (Y) => {
|
|
10706
10709
|
p.value = !!Y.multiSelect, l.value = Y.multiSelectMode || "DependOnCheck", c.value = !!Y.showCheckbox;
|
|
10707
10710
|
});
|
|
10708
10711
|
const B = z(() => !p.value);
|
|
@@ -10710,88 +10713,88 @@ function Ko(t, e, n, o, i) {
|
|
|
10710
10713
|
return Y.raw[a.value];
|
|
10711
10714
|
}
|
|
10712
10715
|
function X(Y) {
|
|
10713
|
-
return f.value.findIndex((
|
|
10716
|
+
return f.value.findIndex((ue) => ue === L(Y));
|
|
10714
10717
|
}
|
|
10715
|
-
function
|
|
10716
|
-
m().forEach((
|
|
10717
|
-
|
|
10718
|
-
}), s(f.value).forEach((
|
|
10719
|
-
|
|
10718
|
+
function $() {
|
|
10719
|
+
m().forEach((ue) => {
|
|
10720
|
+
ue.checked = !1;
|
|
10721
|
+
}), s(f.value).forEach((ue) => {
|
|
10722
|
+
ue.__fv_checked__ = !1;
|
|
10720
10723
|
}), f.value = [], u.value = "", y();
|
|
10721
10724
|
}
|
|
10722
10725
|
function D(Y) {
|
|
10723
10726
|
const oe = Y;
|
|
10724
10727
|
oe.__fv_checked__ = !0, oe.__fv_indeterminate__ = !1;
|
|
10725
|
-
const
|
|
10726
|
-
|
|
10728
|
+
const ue = new Set(f.value);
|
|
10729
|
+
ue.add(oe[a.value]), f.value = Array.from(ue.values());
|
|
10727
10730
|
}
|
|
10728
10731
|
function P(Y) {
|
|
10729
10732
|
const oe = Y;
|
|
10730
|
-
oe.__fv_checked__ = !1, oe.__fv_indeterminate__ = !1, f.value = f.value.filter((
|
|
10733
|
+
oe.__fv_checked__ = !1, oe.__fv_indeterminate__ = !1, f.value = f.value.filter((ue) => ue !== oe[a.value]);
|
|
10731
10734
|
}
|
|
10732
10735
|
function I(Y) {
|
|
10733
10736
|
const oe = Y.raw;
|
|
10734
10737
|
oe.__fv_checked__ = !0, oe.__fv_indeterminate__ = !1;
|
|
10735
|
-
const
|
|
10736
|
-
|
|
10738
|
+
const ue = new Set(f.value);
|
|
10739
|
+
ue.add(oe[a.value]), f.value = Array.from(ue.values()), Y.checked = !0, Y.indeterminate = !1;
|
|
10737
10740
|
}
|
|
10738
|
-
function
|
|
10741
|
+
function j(Y) {
|
|
10739
10742
|
const oe = Y.raw;
|
|
10740
|
-
oe.__fv_checked__ = !1, oe.__fv_indeterminate__ = !1, f.value = f.value.filter((
|
|
10743
|
+
oe.__fv_checked__ = !1, oe.__fv_indeterminate__ = !1, f.value = f.value.filter((ue) => ue !== oe[a.value]), Y.checked = !1, Y.indeterminate = !1;
|
|
10741
10744
|
}
|
|
10742
10745
|
function A(Y) {
|
|
10743
10746
|
I(Y), u.value = Y.raw[a.value];
|
|
10744
10747
|
}
|
|
10745
10748
|
function J(Y) {
|
|
10746
|
-
|
|
10749
|
+
j(Y), u.value = "";
|
|
10747
10750
|
}
|
|
10748
10751
|
function q(Y) {
|
|
10749
10752
|
Y.__fv_checked__ = !1, Y.__fv_indeterminate__ = !0, f.value = f.value.filter((oe) => oe !== Y[a.value]);
|
|
10750
10753
|
}
|
|
10751
|
-
function
|
|
10754
|
+
function ae(Y) {
|
|
10752
10755
|
const oe = Y.raw;
|
|
10753
|
-
oe.__fv_checked__ = !1, oe.__fv_indeterminate__ = !0, f.value = f.value.filter((
|
|
10756
|
+
oe.__fv_checked__ = !1, oe.__fv_indeterminate__ = !0, f.value = f.value.filter((ue) => ue !== oe[a.value]), Y.checked = !1, Y.indeterminate = !0;
|
|
10754
10757
|
}
|
|
10755
10758
|
function G(Y) {
|
|
10756
|
-
B.value &&
|
|
10759
|
+
B.value && $(), Y.checked ? j(Y) : I(Y), S();
|
|
10757
10760
|
}
|
|
10758
10761
|
function H(Y, oe = !0) {
|
|
10759
|
-
const
|
|
10760
|
-
B.value &&
|
|
10762
|
+
const ue = Y.checked;
|
|
10763
|
+
B.value && $(), oe ? Y.checked ? J(Y) : A(Y) : ue ? J(Y) : A(Y), S(), Y.checked ? V(Y) : M(Y);
|
|
10761
10764
|
}
|
|
10762
10765
|
function W(Y) {
|
|
10763
|
-
Y.raw[a.value] !== u.value && (
|
|
10766
|
+
Y.raw[a.value] !== u.value && ($(), A(Y), S());
|
|
10764
10767
|
}
|
|
10765
10768
|
function Z(Y) {
|
|
10766
|
-
const oe = o.value.find((
|
|
10769
|
+
const oe = o.value.find((ue) => ue.raw[a.value] === Y);
|
|
10767
10770
|
if (oe)
|
|
10768
10771
|
W(oe);
|
|
10769
10772
|
else {
|
|
10770
|
-
const
|
|
10771
|
-
|
|
10773
|
+
const ue = r.value.find((_e) => _e[a.value] === Y);
|
|
10774
|
+
ue && D(ue);
|
|
10772
10775
|
}
|
|
10773
10776
|
}
|
|
10774
|
-
function
|
|
10775
|
-
const oe = o.value.filter((
|
|
10776
|
-
const
|
|
10777
|
-
return !
|
|
10777
|
+
function de(Y) {
|
|
10778
|
+
const oe = o.value.filter((Se) => Y.includes(Se.raw[a.value])), ue = oe.map((Se) => Se.raw[a.value]), _e = r.value.filter((Se) => {
|
|
10779
|
+
const He = Se[a.value];
|
|
10780
|
+
return !ue.includes(He) && Y.includes(He);
|
|
10778
10781
|
});
|
|
10779
|
-
(oe.length ||
|
|
10780
|
-
A(
|
|
10781
|
-
}),
|
|
10782
|
-
D(
|
|
10782
|
+
(oe.length || _e.length) && g.value && (u.value = Y[0]), oe.forEach((Se) => {
|
|
10783
|
+
A(Se);
|
|
10784
|
+
}), _e.forEach((Se) => {
|
|
10785
|
+
D(Se);
|
|
10783
10786
|
}), S();
|
|
10784
10787
|
}
|
|
10785
|
-
function
|
|
10788
|
+
function Te(Y) {
|
|
10786
10789
|
for (const oe of Y) {
|
|
10787
10790
|
if (!f.value.includes(oe))
|
|
10788
10791
|
continue;
|
|
10789
|
-
const
|
|
10790
|
-
if (
|
|
10791
|
-
J(
|
|
10792
|
+
const ue = o.value.find((_e) => _e.raw[a.value] === oe);
|
|
10793
|
+
if (ue)
|
|
10794
|
+
J(ue);
|
|
10792
10795
|
else {
|
|
10793
|
-
const
|
|
10794
|
-
|
|
10796
|
+
const _e = r.value.find((Se) => Se[a.value] === oe);
|
|
10797
|
+
_e && P(_e);
|
|
10795
10798
|
}
|
|
10796
10799
|
}
|
|
10797
10800
|
f.value = f.value.filter(
|
|
@@ -10805,21 +10808,21 @@ function Ko(t, e, n, o, i) {
|
|
|
10805
10808
|
}
|
|
10806
10809
|
function ye() {
|
|
10807
10810
|
o.value.forEach((Y) => {
|
|
10808
|
-
|
|
10811
|
+
j(Y);
|
|
10809
10812
|
}), S();
|
|
10810
10813
|
}
|
|
10811
|
-
function
|
|
10814
|
+
function ke() {
|
|
10812
10815
|
return o.value.find((Y) => Y.raw[a.value] === u.value);
|
|
10813
10816
|
}
|
|
10814
10817
|
return {
|
|
10815
|
-
clearSelection:
|
|
10818
|
+
clearSelection: $,
|
|
10816
10819
|
currentSelectedDataId: u,
|
|
10817
10820
|
enableMultiSelect: p,
|
|
10818
10821
|
enableSelectRow: d,
|
|
10819
10822
|
findIndexInSelectedItems: X,
|
|
10820
10823
|
getSelectedItems: w,
|
|
10821
|
-
getSelectionRow:
|
|
10822
|
-
indeterminate:
|
|
10824
|
+
getSelectionRow: ke,
|
|
10825
|
+
indeterminate: ae,
|
|
10823
10826
|
indeterminateDataItem: q,
|
|
10824
10827
|
isSelectingHirarchyItem: h,
|
|
10825
10828
|
multiSelectMode: l,
|
|
@@ -10832,7 +10835,7 @@ function Ko(t, e, n, o, i) {
|
|
|
10832
10835
|
selectDataItem: D,
|
|
10833
10836
|
selectItem: W,
|
|
10834
10837
|
selectItemById: Z,
|
|
10835
|
-
selectItemByIds:
|
|
10838
|
+
selectItemByIds: de,
|
|
10836
10839
|
showCheckBox: c,
|
|
10837
10840
|
showSelectAll: v,
|
|
10838
10841
|
toggleSelectItem: H,
|
|
@@ -10840,7 +10843,7 @@ function Ko(t, e, n, o, i) {
|
|
|
10840
10843
|
unSelect: J,
|
|
10841
10844
|
unSelectAll: ye,
|
|
10842
10845
|
unSelectDataItem: P,
|
|
10843
|
-
unSelectItemByIds:
|
|
10846
|
+
unSelectItemByIds: Te,
|
|
10844
10847
|
updateSelectAllStatus: y,
|
|
10845
10848
|
selectAllStatus: F,
|
|
10846
10849
|
indeterminateStatus: _,
|
|
@@ -10849,11 +10852,11 @@ function Ko(t, e, n, o, i) {
|
|
|
10849
10852
|
}
|
|
10850
10853
|
function Hu(t, e) {
|
|
10851
10854
|
var y, w;
|
|
10852
|
-
const { t: n } =
|
|
10855
|
+
const { t: n } = pt(), o = String(Date.now()), i = 50, { showCheckBox: a, showSelectAll: r } = e, s = E(((y = t.rowNumber) == null ? void 0 : y.enable) ?? !1), u = z(() => t.hierarchy && a.value && t.selection.enableSelectRow && t.selection.multiSelect ? !1 : a.value), d = E(s.value ? ((w = t.rowNumber) == null ? void 0 : w.width) ?? 32 : 0), p = E(u.value ? i : 0), l = z(() => {
|
|
10853
10856
|
var m, x;
|
|
10854
10857
|
return s.value ? ((m = t.rowNumber) == null ? void 0 : m.heading) === "序号" ? n("datagrid.lineNumberTitle") : (x = t.rowNumber) == null ? void 0 : x.heading : "";
|
|
10855
10858
|
}), c = z(() => (u.value && !t.hierarchy ? Number(p.value) : 0) + (s.value ? Number(d.value) : 0));
|
|
10856
|
-
|
|
10859
|
+
Be(() => t.rowNumber, (m) => {
|
|
10857
10860
|
m && m.enable !== void 0 && (s.value = m.enable), m && m.width !== void 0 && (d.value = m.width);
|
|
10858
10861
|
});
|
|
10859
10862
|
function v(m) {
|
|
@@ -10917,7 +10920,7 @@ function qu(t) {
|
|
|
10917
10920
|
return o(r.column);
|
|
10918
10921
|
}
|
|
10919
10922
|
function a(r, s) {
|
|
10920
|
-
const u = i(r), d = (r.status &
|
|
10923
|
+
const u = i(r), d = (r.status & Qe.sortable) === Qe.sortable && (r.status & Qe.sorted) === Qe.sorted, p = (r.status & Qe.ascending) === Qe.ascending, l = (r.status & Qe.descending) === Qe.descending;
|
|
10921
10924
|
if (d && u) {
|
|
10922
10925
|
const c = p ? u.ascend : l ? u.decend : void 0;
|
|
10923
10926
|
c ? s.addSorter(r.field, { field: r.field, compare: c }) : s.removeSorter(r.field);
|
|
@@ -10956,7 +10959,7 @@ function er(t, e, n, o, i, a, r, s, u, d, p, l, c, v, f) {
|
|
|
10956
10959
|
renderTreeArea: x
|
|
10957
10960
|
};
|
|
10958
10961
|
}
|
|
10959
|
-
function
|
|
10962
|
+
function Sn(t, e) {
|
|
10960
10963
|
function n() {
|
|
10961
10964
|
return e.slots.header && R("div", {
|
|
10962
10965
|
class: "f-tree-view-header"
|
|
@@ -10966,13 +10969,13 @@ function _n(t, e) {
|
|
|
10966
10969
|
renderHeader: n
|
|
10967
10970
|
};
|
|
10968
10971
|
}
|
|
10969
|
-
const Yt = /* @__PURE__ */
|
|
10972
|
+
const Yt = /* @__PURE__ */ Ke({
|
|
10970
10973
|
name: "FTreeView",
|
|
10971
|
-
props:
|
|
10974
|
+
props: un,
|
|
10972
10975
|
emits: ["outputValue", "currentEvent", "clickRow", "selectItem", "unSelectItem", "selectionChange", "expandNode", "dblclickNode", "clickRow", "unSelectItem"],
|
|
10973
10976
|
setup(t, e) {
|
|
10974
|
-
var
|
|
10975
|
-
const n = ((
|
|
10977
|
+
var De;
|
|
10978
|
+
const n = ((De = t.rowOption) == null ? void 0 : De.height) || 28, o = E(), i = E(!1), a = E(), r = E(20), s = E([]), u = On(), d = kn(t), p = In(t), l = Mn(t, /* @__PURE__ */ new Map(), u, p, d), c = Bn(t, l, d, s, e), v = Go(t, s, l, d, c, e), f = z(() => ({
|
|
10976
10979
|
// 'fv-tree': true
|
|
10977
10980
|
"fv-grid": !0,
|
|
10978
10981
|
"fv-tree-view": !0
|
|
@@ -10982,121 +10985,130 @@ const Yt = /* @__PURE__ */ Ze({
|
|
|
10982
10985
|
"fv-grid-content-hover": i.value
|
|
10983
10986
|
})), {
|
|
10984
10987
|
containerStyleObject: _
|
|
10985
|
-
} =
|
|
10988
|
+
} = Vn(t), y = E(t.columns), w = Nn(t), {
|
|
10986
10989
|
columnContext: m
|
|
10987
|
-
} = w, x =
|
|
10990
|
+
} = w, x = Rn(t, m), b = 0, g = z(() => t.virtualized ? Math.min(l.dataView.value.length, r.value) : l.dataView.value.length), h = z(() => !s.value || !s.value.length), T = Pn(t, e, c, d), C = Dn(t, e, d, T, s), k = jn(t), S = $n(t, {}, k), M = Ln(t, l, C, p, d, k, S), V = Hn(t, y, l, g, b, M), {
|
|
10988
10991
|
getVisualData: O
|
|
10989
|
-
} = V, B =
|
|
10990
|
-
onWheel:
|
|
10992
|
+
} = V, B = Wn(t, m), L = zn(t, l, s, m, V, g, b, E(0)), X = An(t, c), {
|
|
10993
|
+
onWheel: $,
|
|
10991
10994
|
dataGridWidth: D,
|
|
10992
10995
|
viewPortHeight: P,
|
|
10993
10996
|
viewPortWidth: I,
|
|
10994
|
-
resetScroll:
|
|
10997
|
+
resetScroll: j,
|
|
10995
10998
|
updateVisibleRowsOnLatestVisibleScope: A
|
|
10996
10999
|
} = L, {
|
|
10997
11000
|
renderVerticalScrollbar: J
|
|
10998
|
-
} =
|
|
11001
|
+
} = Yn(t, o, L), {
|
|
10999
11002
|
renderHorizontalScrollbar: q
|
|
11000
|
-
} =
|
|
11001
|
-
renderDataGridSidebar:
|
|
11002
|
-
} =
|
|
11003
|
+
} = Un(t, o, L), {
|
|
11004
|
+
renderDataGridSidebar: ae
|
|
11005
|
+
} = qn(t, T, c, X, L), G = Gn(t, m, o, I, x), {
|
|
11003
11006
|
calculateColumnsSize: H
|
|
11004
11007
|
} = G;
|
|
11005
11008
|
function W() {
|
|
11006
|
-
return t.header === "ContentHeader",
|
|
11009
|
+
return t.header === "ContentHeader", Sn;
|
|
11007
11010
|
}
|
|
11008
11011
|
const Z = W(), {
|
|
11009
|
-
renderHeader:
|
|
11012
|
+
renderHeader: de
|
|
11010
11013
|
} = Z(t, e), {
|
|
11011
|
-
renderTreeArea:
|
|
11014
|
+
renderTreeArea: Te
|
|
11012
11015
|
} = er(t, e, s, B, w, l, C, p, T, c, v, L, V, k, a);
|
|
11013
11016
|
function be() {
|
|
11014
|
-
const
|
|
11015
|
-
return
|
|
11017
|
+
const me = c.getSelectionRow();
|
|
11018
|
+
return me ? me.dataIndex - 1 : -1;
|
|
11016
11019
|
}
|
|
11017
11020
|
function ye() {
|
|
11018
|
-
var
|
|
11019
|
-
const
|
|
11020
|
-
|
|
11021
|
+
var Re, We;
|
|
11022
|
+
const me = Math.ceil(o.value.clientHeight / n);
|
|
11023
|
+
me > r.value && (r.value = me, A()), P.value = ((Re = a.value) == null ? void 0 : Re.clientHeight) || 0, D.value = ((We = o.value) == null ? void 0 : We.clientWidth) || 0, H();
|
|
11021
11024
|
}
|
|
11022
11025
|
const {
|
|
11023
|
-
renderEmpty:
|
|
11024
|
-
} =
|
|
11026
|
+
renderEmpty: ke
|
|
11027
|
+
} = Xn(e);
|
|
11025
11028
|
Ot(() => {
|
|
11026
|
-
o.value && (r.value = Math.max(Math.ceil(o.value.clientHeight / n), r.value), s.value = O(0, g.value + b - 1),
|
|
11029
|
+
o.value && (r.value = Math.max(Math.ceil(o.value.clientHeight / n), r.value), s.value = O(0, g.value + b - 1), sn(o.value, ye), H(), jt(() => {
|
|
11027
11030
|
o.value && (D.value = o.value.clientWidth), a.value && (I.value = a.value.clientWidth, P.value = a.value.clientHeight);
|
|
11028
11031
|
}));
|
|
11029
11032
|
});
|
|
11030
11033
|
function Y() {
|
|
11031
|
-
const
|
|
11032
|
-
l.insertNewDataItem(
|
|
11034
|
+
const me = be();
|
|
11035
|
+
l.insertNewDataItem(me), s.value = O(0, g.value + b - 1);
|
|
11033
11036
|
}
|
|
11034
11037
|
function oe() {
|
|
11035
|
-
const
|
|
11036
|
-
l.insertNewChildDataItem(
|
|
11038
|
+
const me = be();
|
|
11039
|
+
l.insertNewChildDataItem(me), s.value = O(0, g.value + b - 1);
|
|
11037
11040
|
}
|
|
11038
|
-
function
|
|
11039
|
-
const
|
|
11040
|
-
l.removeHierarchyDataItem(
|
|
11041
|
+
function ue() {
|
|
11042
|
+
const me = be(), Re = v.getNextSelectableHierarchyItemId(me);
|
|
11043
|
+
l.removeHierarchyDataItem(me), s.value = O(0, g.value + b - 1), Re && c.selectItemById(Re);
|
|
11041
11044
|
}
|
|
11042
|
-
function
|
|
11043
|
-
l.editDataItem(
|
|
11045
|
+
function _e(me, Re) {
|
|
11046
|
+
l.editDataItem(me, Re), s.value = O(0, g.value + b - 1);
|
|
11044
11047
|
}
|
|
11045
|
-
function
|
|
11048
|
+
function Se() {
|
|
11046
11049
|
}
|
|
11047
|
-
function
|
|
11050
|
+
function He() {
|
|
11051
|
+
}
|
|
11052
|
+
function qe(me) {
|
|
11053
|
+
return Object.prototype.hasOwnProperty.call(me, "raw") ? l.hasRealChildren(me.raw) : l.hasRealChildren(me);
|
|
11054
|
+
}
|
|
11055
|
+
function ne(me, Re) {
|
|
11056
|
+
const We = s.value.find((at) => at.raw[d.idField.value] === Re), et = We ? We.dataIndex - 1 : -1;
|
|
11057
|
+
l.insertNewChildDataItems(me, et);
|
|
11048
11058
|
}
|
|
11049
|
-
function
|
|
11050
|
-
if (
|
|
11051
|
-
const
|
|
11052
|
-
|
|
11059
|
+
function ve(me) {
|
|
11060
|
+
if (me > -1) {
|
|
11061
|
+
const Re = s.value[me];
|
|
11062
|
+
Re && c.selectItem(Re);
|
|
11053
11063
|
}
|
|
11054
11064
|
}
|
|
11055
|
-
function
|
|
11056
|
-
if (
|
|
11057
|
-
const
|
|
11058
|
-
if (l.load(
|
|
11059
|
-
const
|
|
11060
|
-
|
|
11065
|
+
function Ve(me, Re) {
|
|
11066
|
+
if (me) {
|
|
11067
|
+
const We = c.getSelectionRow();
|
|
11068
|
+
if (l.load(me), l.reOrderVisibleIndex(), Re != null && Re.keepScrollPosition) {
|
|
11069
|
+
const et = L.offsetY.value;
|
|
11070
|
+
j(), L.scrollTo(et);
|
|
11061
11071
|
} else
|
|
11062
|
-
|
|
11063
|
-
if (
|
|
11064
|
-
const
|
|
11065
|
-
|
|
11072
|
+
j();
|
|
11073
|
+
if (We && We.raw && We.raw.originalId) {
|
|
11074
|
+
const et = me.findIndex((at) => at.originalId === We.raw.originalId);
|
|
11075
|
+
et > -1 && ve(et);
|
|
11066
11076
|
}
|
|
11067
11077
|
}
|
|
11068
11078
|
}
|
|
11069
|
-
function
|
|
11079
|
+
function Le() {
|
|
11070
11080
|
c.clearSelection();
|
|
11071
11081
|
}
|
|
11072
|
-
function Ne(
|
|
11073
|
-
c.selectItemById(
|
|
11082
|
+
function Ne(me) {
|
|
11083
|
+
c.selectItemById(me);
|
|
11074
11084
|
}
|
|
11075
|
-
function
|
|
11076
|
-
T.activeRowById(
|
|
11085
|
+
function K(me) {
|
|
11086
|
+
T.activeRowById(me);
|
|
11077
11087
|
}
|
|
11078
11088
|
e.expose({
|
|
11079
11089
|
addNewDataItem: Y,
|
|
11080
11090
|
addNewChildDataItem: oe,
|
|
11081
|
-
removeDataItem:
|
|
11082
|
-
editDataItem:
|
|
11083
|
-
acceptDataItem:
|
|
11084
|
-
cancelDataItem:
|
|
11085
|
-
selectItem:
|
|
11086
|
-
updateDataSource:
|
|
11087
|
-
clearSelection:
|
|
11091
|
+
removeDataItem: ue,
|
|
11092
|
+
editDataItem: _e,
|
|
11093
|
+
acceptDataItem: Se,
|
|
11094
|
+
cancelDataItem: He,
|
|
11095
|
+
selectItem: ve,
|
|
11096
|
+
updateDataSource: Ve,
|
|
11097
|
+
clearSelection: Le,
|
|
11088
11098
|
selectItemById: Ne,
|
|
11089
|
-
activeRowById:
|
|
11099
|
+
activeRowById: K,
|
|
11100
|
+
hasChildren: qe,
|
|
11101
|
+
addChildrenToNode: ne
|
|
11090
11102
|
});
|
|
11091
|
-
const
|
|
11092
|
-
const
|
|
11093
|
-
return L.shouldShowHorizontalScrollbar.value && (
|
|
11103
|
+
const we = z(() => {
|
|
11104
|
+
const me = {};
|
|
11105
|
+
return L.shouldShowHorizontalScrollbar.value && (me.paddingBottom = "10px"), L.shouldShowVirticalScrollbar.value && (me.paddingRight = "10px"), me;
|
|
11094
11106
|
});
|
|
11095
11107
|
return () => R("div", {
|
|
11096
11108
|
class: f.value,
|
|
11097
11109
|
style: _.value,
|
|
11098
|
-
onWheel:
|
|
11099
|
-
}, [
|
|
11110
|
+
onWheel: $
|
|
11111
|
+
}, [de(), R("div", {
|
|
11100
11112
|
ref: o,
|
|
11101
11113
|
class: F.value,
|
|
11102
11114
|
onMouseover: () => {
|
|
@@ -11105,15 +11117,15 @@ const Yt = /* @__PURE__ */ Ze({
|
|
|
11105
11117
|
onMouseleave: () => {
|
|
11106
11118
|
i.value = !1;
|
|
11107
11119
|
},
|
|
11108
|
-
style:
|
|
11109
|
-
}, [o.value &&
|
|
11120
|
+
style: we.value
|
|
11121
|
+
}, [o.value && ae(s), Te(), o.value && h.value && ke(), o.value && q(), o.value && J()])]);
|
|
11110
11122
|
}
|
|
11111
|
-
}), Uu = /* @__PURE__ */
|
|
11123
|
+
}), Uu = /* @__PURE__ */ Ke({
|
|
11112
11124
|
name: "FTreeViewDesign",
|
|
11113
|
-
props:
|
|
11125
|
+
props: un,
|
|
11114
11126
|
emits: ["outputValue", "currentEvent", "selectionChange"],
|
|
11115
11127
|
setup(t, e) {
|
|
11116
|
-
const n = E(), o =
|
|
11128
|
+
const n = E(), o = bt("design-item-context"), i = Bo(n, o), a = E();
|
|
11117
11129
|
E(t.idField);
|
|
11118
11130
|
const r = E(), s = E(!1), u = E([]), d = Ao(), p = zo(t), l = Qo(t), c = ho(t, /* @__PURE__ */ new Map(), d, p, l), v = Ko(t, c, l, u, e), f = Go(t, u, c, l, v, e), F = z(() => ({
|
|
11119
11131
|
"fv-tree": !0
|
|
@@ -11136,9 +11148,9 @@ const Yt = /* @__PURE__ */ Ze({
|
|
|
11136
11148
|
getVisualData: L
|
|
11137
11149
|
} = B, X = co(t, h);
|
|
11138
11150
|
u.value = L(0, C.value + T - 1);
|
|
11139
|
-
const
|
|
11151
|
+
const $ = qo(t, c, u, h, B, C, T, E(0)), {
|
|
11140
11152
|
renderTreeArea: D
|
|
11141
|
-
} = er(t, e, u, X, g, c, S, p, k, v, f,
|
|
11153
|
+
} = er(t, e, u, X, g, c, S, p, k, v, f, $, B, M, a);
|
|
11142
11154
|
return e.expose(i.value), () => R("div", {
|
|
11143
11155
|
class: F.value,
|
|
11144
11156
|
style: y.value,
|
|
@@ -11161,11 +11173,11 @@ Yt.register = (t, e, n) => {
|
|
|
11161
11173
|
Yt.registerDesigner = (t, e, n) => {
|
|
11162
11174
|
t["tree-view"] = Uu, e["tree-view"] = uo;
|
|
11163
11175
|
};
|
|
11164
|
-
const Dd =
|
|
11176
|
+
const Dd = Qn(Yt);
|
|
11165
11177
|
export {
|
|
11166
11178
|
Yt as FTreeView,
|
|
11167
11179
|
Pd as columnOptions,
|
|
11168
11180
|
Dd as default,
|
|
11169
11181
|
uo as propsResolver,
|
|
11170
|
-
|
|
11182
|
+
un as treeViewProps
|
|
11171
11183
|
};
|