@farris/ui-vue 1.4.0 → 1.4.1
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/checkbox/index.esm.js +2 -1
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +2 -1
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/condition/index.css +1 -1
- package/components/condition/index.esm.js +715 -704
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.css +1 -1
- package/components/content-container/index.esm.js +1180 -1169
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +2949 -2901
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.css +1 -1
- package/components/data-view/index.esm.js +609 -598
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +3 -2
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +2081 -2062
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.css +1 -1
- package/components/drawer/index.esm.js +23 -21
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dynamic-form/index.css +1 -1
- package/components/dynamic-form/index.esm.js +2745 -2691
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +1322 -1311
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +85 -74
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +4618 -4320
- package/components/filter-bar/index.umd.cjs +3 -3
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1982 -1963
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +2 -1
- package/components/input-group/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +822 -811
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +3268 -3219
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +1985 -1937
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +136 -135
- 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/order/index.esm.js +2 -1
- package/components/order/index.umd.cjs +1 -1
- package/components/property-editor/index.esm.js +2 -1
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +295 -283
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +5430 -5374
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/radio-group/index.esm.js +2 -1
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +1259 -1248
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.css +1 -1
- package/components/section/index.esm.js +1272 -1261
- package/components/section/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +2 -1
- package/components/switch/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +14 -13
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +2 -1
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +715 -704
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.css +1 -1
- package/components/tree-view/index.esm.js +107 -96
- package/components/tree-view/index.umd.cjs +1 -1
- package/farris.all.esm.js +14687 -14334
- package/farris.all.umd.cjs +11 -11
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +6 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +8 -0
- package/types/dynamic-form/src/composition/form-binding-resolver-design.d.ts +6 -0
- package/types/filter-bar/src/components/drawer.component.d.ts +4 -0
- package/types/filter-bar/src/components/filter-item/filter-item.component.d.ts +10 -0
- package/types/filter-bar/src/components/filter-item/filter-item.props.d.ts +3 -0
- package/types/filter-bar/src/components/filter-item-condition/filter-item-condition.component.d.ts +11 -0
- package/types/filter-bar/src/components/filter-item-condition/filter-item-condition.props.d.ts +3 -0
- package/types/filter-bar/src/composition/types.d.ts +2 -0
- package/types/filter-bar/src/composition/use-condition.d.ts +19 -0
- package/types/filter-bar/src/filter-bar.component.d.ts +2 -1
- package/types/filter-bar/src/types.d.ts +4 -6
- package/types/filter-bar/src/components/filter-item.component.d.ts +0 -5
- /package/types/filter-bar/src/components/{toolbar-component.d.ts → toolbar.component.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var wo = Object.defineProperty;
|
|
2
2
|
var _o = (e, t, n) => t in e ? wo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Q = (e, t, n) => _o(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as _, computed as j, createVNode as x, Fragment as yt, watch as
|
|
5
|
-
import { isPlainObject as tn, cloneDeep as
|
|
4
|
+
import { ref as _, computed as j, createVNode as x, Fragment as yt, watch as he, withModifiers as So, withDirectives as ln, vModelText as xo, defineComponent as Me, resolveComponent as To, createTextVNode as Ke, reactive as rt, createApp as sn, onUnmounted as Vt, onMounted as pt, Transition as un, mergeProps as vt, onBeforeUnmount as cn, resolveDirective as Fo, nextTick as Xt, inject as ht, provide as ko, isVNode as Io, Teleport as Oo, shallowRef as Mo, render as jt, h as Eo, cloneVNode as Vo } from "vue";
|
|
5
|
+
import { isPlainObject as tn, cloneDeep as ft, throttle as Bo, isUndefined as Do } from "lodash-es";
|
|
6
6
|
import { useFilter as dn, useIdentify as fn, useHierarchy as pn, useGroupData as mn, useDataView as vn, useSelection as hn, useRow as gn, useEdit as yn, useVisualDataBound as bn, useVisualDataCell as Cn, useVisualDataRow as wn, useVisualGroupRow as Ro, useVisualSummaryRow as No, useVisualData as _n, useLoading as $o, useSelectHierarchyItem as jo, useDataViewContainerStyle as Po, useCommandColumn as Ho, useColumn as Lo, useSort as Wo, useGroupColumn as Ao, useCellPosition as zo, useSidebar as Go, useVirtualScroll as qo, useFitColumn as Uo, useFilterHistory as Yo, useColumnFilter as Xo, useDragColumn as Ko, getColumnHeader as Qo, getSidebar as Jo, getDisableMask as Zo, getHorizontalScrollbar as ei, getVerticalScrollbar as ti, getEmpty as ni } from "../data-view/index.esm.js";
|
|
7
7
|
import oi, { FCheckbox as Bt } from "../checkbox/index.esm.js";
|
|
8
8
|
import "../modal/index.esm.js";
|
|
@@ -74,7 +74,7 @@ import fa from "../event-parameter/index.esm.js";
|
|
|
74
74
|
import { createPropsResolver as pa } from "../dynamic-resolver/index.esm.js";
|
|
75
75
|
const xn = {}, Tn = {};
|
|
76
76
|
function Kt(e) {
|
|
77
|
-
const { properties: t, title: n, ignore: o } = e, i = o && Array.isArray(o), a = Object.keys(t).reduce((r, u) => ((!i || !o.find((s) => s === u)) && (r[u] = t[u].type === "object" && t[u].properties ? Kt(t[u]) :
|
|
77
|
+
const { properties: t, title: n, ignore: o } = e, i = o && Array.isArray(o), a = Object.keys(t).reduce((r, u) => ((!i || !o.find((s) => s === u)) && (r[u] = t[u].type === "object" && t[u].properties ? Kt(t[u]) : ft(t[u].default)), r), {});
|
|
78
78
|
if (n && (!i || !o.find((r) => r === "id"))) {
|
|
79
79
|
const r = n.toLowerCase().replace(/-/g, "_");
|
|
80
80
|
a.id = `${r}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -84,7 +84,7 @@ function Kt(e) {
|
|
|
84
84
|
function ma(e) {
|
|
85
85
|
const { properties: t, title: n, required: o } = e;
|
|
86
86
|
if (o && Array.isArray(o)) {
|
|
87
|
-
const i = o.reduce((a, r) => (a[r] = t[r].type === "object" && t[r].properties ? Kt(t[r]) :
|
|
87
|
+
const i = o.reduce((a, r) => (a[r] = t[r].type === "object" && t[r].properties ? Kt(t[r]) : ft(t[r].default), a), {});
|
|
88
88
|
if (n && o.find((a) => a === "id")) {
|
|
89
89
|
const a = n.toLowerCase().replace(/-/g, "_");
|
|
90
90
|
i.id = `${a}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -128,56 +128,56 @@ function ga(e, t, n = /* @__PURE__ */ new Map()) {
|
|
|
128
128
|
return ha(o, n);
|
|
129
129
|
}
|
|
130
130
|
function ya(e = {}) {
|
|
131
|
-
function t(
|
|
132
|
-
if (typeof
|
|
133
|
-
return c
|
|
134
|
-
if (typeof
|
|
135
|
-
const y = Object.keys(
|
|
131
|
+
function t(c, d, p, f) {
|
|
132
|
+
if (typeof p == "number")
|
|
133
|
+
return f[c].length === p;
|
|
134
|
+
if (typeof p == "object") {
|
|
135
|
+
const y = Object.keys(p)[0], S = p[y];
|
|
136
136
|
if (y === "not")
|
|
137
|
-
return Number(c
|
|
137
|
+
return Number(f[c].length) !== Number(S);
|
|
138
138
|
if (y === "moreThan")
|
|
139
|
-
return Number(c
|
|
139
|
+
return Number(f[c].length) >= Number(S);
|
|
140
140
|
if (y === "lessThan")
|
|
141
|
-
return Number(c
|
|
141
|
+
return Number(f[c].length) <= Number(S);
|
|
142
142
|
}
|
|
143
143
|
return !1;
|
|
144
144
|
}
|
|
145
|
-
function n(
|
|
146
|
-
return c
|
|
145
|
+
function n(c, d, p, f) {
|
|
146
|
+
return f[c] && f[c].propertyValue && String(f[c].propertyValue.value) === String(p);
|
|
147
147
|
}
|
|
148
148
|
const o = /* @__PURE__ */ new Map([
|
|
149
149
|
["length", t],
|
|
150
150
|
["getProperty", n]
|
|
151
151
|
]);
|
|
152
|
-
Object.keys(e).reduce((
|
|
153
|
-
function i(
|
|
154
|
-
const
|
|
155
|
-
return typeof
|
|
156
|
-
if (
|
|
157
|
-
return { target:
|
|
158
|
-
const y =
|
|
159
|
-
return { target:
|
|
152
|
+
Object.keys(e).reduce((c, d) => (c.set(d, e[d]), c), o);
|
|
153
|
+
function i(c, d) {
|
|
154
|
+
const p = c;
|
|
155
|
+
return typeof d == "number" ? [{ target: p, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: p, operator: "getProperty", param: c, value: !!d }] : typeof d == "object" ? Object.keys(d).map((f) => {
|
|
156
|
+
if (f === "length")
|
|
157
|
+
return { target: p, operator: "length", param: null, value: d[f] };
|
|
158
|
+
const y = f, S = d[f];
|
|
159
|
+
return { target: p, operator: "getProperty", param: y, value: S };
|
|
160
160
|
}) : [];
|
|
161
161
|
}
|
|
162
|
-
function a(
|
|
163
|
-
return Object.keys(
|
|
164
|
-
const y = i(
|
|
165
|
-
return
|
|
162
|
+
function a(c) {
|
|
163
|
+
return Object.keys(c).reduce((p, f) => {
|
|
164
|
+
const y = i(f, c[f]);
|
|
165
|
+
return p.push(...y), p;
|
|
166
166
|
}, []);
|
|
167
167
|
}
|
|
168
|
-
function r(
|
|
169
|
-
if (o.has(
|
|
170
|
-
const
|
|
171
|
-
return
|
|
168
|
+
function r(c, d) {
|
|
169
|
+
if (o.has(c.operator)) {
|
|
170
|
+
const p = o.get(c.operator);
|
|
171
|
+
return p && p(c.target, c.param, c.value, d) || !1;
|
|
172
172
|
}
|
|
173
173
|
return !1;
|
|
174
174
|
}
|
|
175
|
-
function u(
|
|
176
|
-
return a(
|
|
175
|
+
function u(c, d) {
|
|
176
|
+
return a(c).reduce((y, S) => y && r(S, d), !0);
|
|
177
177
|
}
|
|
178
|
-
function s(
|
|
179
|
-
const
|
|
180
|
-
return
|
|
178
|
+
function s(c, d) {
|
|
179
|
+
const p = Object.keys(c), f = p.includes("allOf"), y = p.includes("anyOf"), S = f || y, v = (S ? c[S ? f ? "allOf" : "anyOf" : "allOf"] : [c]).map((F) => u(F, d));
|
|
180
|
+
return f ? !v.includes(!1) : v.includes(!0);
|
|
181
181
|
}
|
|
182
182
|
return { parseValueSchema: s };
|
|
183
183
|
}
|
|
@@ -223,9 +223,9 @@ const re = {
|
|
|
223
223
|
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
224
224
|
}, ba = {}, Ca = {};
|
|
225
225
|
ya();
|
|
226
|
-
function
|
|
226
|
+
function lt(e, t, n = /* @__PURE__ */ new Map(), o = (r, u, s, c) => u, i = {}, a = (r) => r) {
|
|
227
227
|
return xn[t.title] = t, Tn[t.title] = o, ba[t.title] = i, Ca[t.title] = a, (r = {}) => {
|
|
228
|
-
const u = ga(r, t, n), s = Object.keys(e).reduce((
|
|
228
|
+
const u = ga(r, t, n), s = Object.keys(e).reduce((c, d) => (c[d] = e[d].default, c), {});
|
|
229
229
|
return Object.assign(s, u);
|
|
230
230
|
};
|
|
231
231
|
}
|
|
@@ -407,7 +407,7 @@ const xa = "https://json-schema.org/draft/2020-12/schema", Ta = "https://farris-
|
|
|
407
407
|
enableHighlightSearch: { type: Boolean, default: !0 },
|
|
408
408
|
/** 虚拟化渲染数据 */
|
|
409
409
|
virtualized: { type: Boolean, default: !0 }
|
|
410
|
-
}, On =
|
|
410
|
+
}, On = lt(Dt, Ea, kn, In, Na);
|
|
411
411
|
function Mn(e, t) {
|
|
412
412
|
function n(a) {
|
|
413
413
|
const r = [];
|
|
@@ -418,18 +418,18 @@ function Mn(e, t) {
|
|
|
418
418
|
}
|
|
419
419
|
function o(a, r) {
|
|
420
420
|
const u = document.createTreeWalker(a, NodeFilter.SHOW_TEXT);
|
|
421
|
-
return n(u).map((
|
|
421
|
+
return n(u).map((p) => ({ textNode: p, text: (p.textContent || "").toLocaleLowerCase() })).map(({ textNode: p, text: f }) => {
|
|
422
422
|
const y = [];
|
|
423
423
|
let S = 0;
|
|
424
|
-
for (; S <
|
|
425
|
-
const D =
|
|
424
|
+
for (; S < f.length; ) {
|
|
425
|
+
const D = f.indexOf(r, S);
|
|
426
426
|
if (D === -1)
|
|
427
427
|
break;
|
|
428
428
|
y.push(D), S = D + r.length;
|
|
429
429
|
}
|
|
430
430
|
return y.map((D) => {
|
|
431
431
|
const M = new Range();
|
|
432
|
-
return M.setStart(
|
|
432
|
+
return M.setStart(p, D), M.setEnd(p, D + r.length), M;
|
|
433
433
|
});
|
|
434
434
|
}).flat();
|
|
435
435
|
}
|
|
@@ -441,8 +441,8 @@ function Mn(e, t) {
|
|
|
441
441
|
}
|
|
442
442
|
return { search: i };
|
|
443
443
|
}
|
|
444
|
-
function nn(e, t, n, o, i, a, r, u, s,
|
|
445
|
-
const
|
|
444
|
+
function nn(e, t, n, o, i, a, r, u, s, c) {
|
|
445
|
+
const d = _(e.size), p = _(e.textField), f = _(e.titleField), y = _(e.disableField), S = j(() => {
|
|
446
446
|
var b, I;
|
|
447
447
|
return ((b = e.selection) == null ? void 0 : b.multiSelect) && ((I = e.selection) == null ? void 0 : I.showCheckbox);
|
|
448
448
|
}), {
|
|
@@ -455,7 +455,7 @@ function nn(e, t, n, o, i, a, r, u, s, f) {
|
|
|
455
455
|
onCheckItem: m,
|
|
456
456
|
onClickItem: w
|
|
457
457
|
} = r, E = j(() => e.itemClass ? {} : {
|
|
458
|
-
margin:
|
|
458
|
+
margin: d.value === "small" ? "0.25rem 0" : "8px 0"
|
|
459
459
|
});
|
|
460
460
|
function l(b, I, V) {
|
|
461
461
|
return b.checked = u.findIndexInSelectedItems(b) > -1, x("li", {
|
|
@@ -482,16 +482,16 @@ function nn(e, t, n, o, i, a, r, u, s, f) {
|
|
|
482
482
|
class: "f-list-content"
|
|
483
483
|
}, [x("div", {
|
|
484
484
|
style: E.value,
|
|
485
|
-
title: b.raw[
|
|
486
|
-
}, [b.raw[
|
|
485
|
+
title: b.raw[f.value] || b.raw[p.value]
|
|
486
|
+
}, [b.raw[p.value]])])]);
|
|
487
487
|
}
|
|
488
488
|
return {
|
|
489
489
|
renderItem: l
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
|
-
function $a(e, t, n, o, i, a, r, u, s,
|
|
493
|
-
const
|
|
494
|
-
onMouseenterItem:
|
|
492
|
+
function $a(e, t, n, o, i, a, r, u, s, c) {
|
|
493
|
+
const d = _(e.multiSelect), p = _(e.disableField), {
|
|
494
|
+
onMouseenterItem: f,
|
|
495
495
|
onMouseoverItem: y,
|
|
496
496
|
onMouseoutItem: S
|
|
497
497
|
} = a, {
|
|
@@ -515,16 +515,16 @@ function $a(e, t, n, o, i, a, r, u, s, f) {
|
|
|
515
515
|
id: D(w, E),
|
|
516
516
|
key: D(w, E),
|
|
517
517
|
onClick: (b) => g(b, w, E),
|
|
518
|
-
onMouseenter: (b) =>
|
|
518
|
+
onMouseenter: (b) => f(b, w, E),
|
|
519
519
|
onMouseover: (b) => y(b, w, E),
|
|
520
520
|
onMouseout: (b) => S(b, w, E)
|
|
521
|
-
}, [
|
|
521
|
+
}, [d.value && x("div", {
|
|
522
522
|
class: "f-list-select",
|
|
523
523
|
onClick: (b) => b.stopPropagation()
|
|
524
524
|
}, [x(Bt, {
|
|
525
525
|
id: "list-" + D(w, E),
|
|
526
526
|
customClass: "listview-checkbox",
|
|
527
|
-
disabled: w[
|
|
527
|
+
disabled: w[p.value] || !w.checked,
|
|
528
528
|
checked: w.checked,
|
|
529
529
|
"onUpdate:checked": (b) => w.checked = b,
|
|
530
530
|
onChange: (b) => v(w, E, !b.checked)
|
|
@@ -536,9 +536,9 @@ function $a(e, t, n, o, i, a, r, u, s, f) {
|
|
|
536
536
|
renderItem: m
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function ja(e, t, n, o, i, a, r, u, s,
|
|
540
|
-
const
|
|
541
|
-
onMouseenterItem:
|
|
539
|
+
function ja(e, t, n, o, i, a, r, u, s, c) {
|
|
540
|
+
const d = _(e.multiSelect), p = _(e.disableField), {
|
|
541
|
+
onMouseenterItem: f,
|
|
542
542
|
onMouseoverItem: y,
|
|
543
543
|
onMouseoutItem: S
|
|
544
544
|
} = a, {
|
|
@@ -554,7 +554,7 @@ function ja(e, t, n, o, i, a, r, u, s, f) {
|
|
|
554
554
|
} = o, {
|
|
555
555
|
removeItem: l
|
|
556
556
|
} = s, b = j(() => ({
|
|
557
|
-
margin:
|
|
557
|
+
margin: d.value ? "10px 0" : "10px 0px 10px 14px"
|
|
558
558
|
}));
|
|
559
559
|
function I(k) {
|
|
560
560
|
return x("div", {
|
|
@@ -571,7 +571,7 @@ function ja(e, t, n, o, i, a, r, u, s, f) {
|
|
|
571
571
|
id: D(k, T),
|
|
572
572
|
key: D(k, T),
|
|
573
573
|
onClick: (R) => g(R, k, T),
|
|
574
|
-
onMouseenter: (R) =>
|
|
574
|
+
onMouseenter: (R) => f(R, k, T),
|
|
575
575
|
onMouseover: (R) => y(R, k, T),
|
|
576
576
|
onMouseout: (R) => S(R, k, T),
|
|
577
577
|
draggable: "true",
|
|
@@ -579,13 +579,13 @@ function ja(e, t, n, o, i, a, r, u, s, f) {
|
|
|
579
579
|
onDragenter: (R) => m(R, T),
|
|
580
580
|
onDragend: (R) => E(R, k),
|
|
581
581
|
onDragover: (R) => w(R, T)
|
|
582
|
-
}, [
|
|
582
|
+
}, [d.value && x("div", {
|
|
583
583
|
class: "f-list-select",
|
|
584
584
|
onClick: (R) => R.stopPropagation()
|
|
585
585
|
}, [x(Bt, {
|
|
586
586
|
id: "list-" + D(k, T),
|
|
587
587
|
customClass: "listview-checkbox",
|
|
588
|
-
disabled: k[
|
|
588
|
+
disabled: k[p.value] || !k.checked,
|
|
589
589
|
checked: k.checked,
|
|
590
590
|
"onUpdate:checked": (R) => k.checked = R,
|
|
591
591
|
onChange: (R) => v(k, T, !R.checked)
|
|
@@ -608,15 +608,15 @@ function ja(e, t, n, o, i, a, r, u, s, f) {
|
|
|
608
608
|
renderItem: C
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
|
-
function Pa(e, t, n, o, i, a, r, u, s,
|
|
611
|
+
function Pa(e, t, n, o, i, a, r, u, s, c) {
|
|
612
612
|
var D;
|
|
613
|
-
const
|
|
614
|
-
collpaseGroupIconClass:
|
|
613
|
+
const d = _(((D = e.group) == null ? void 0 : D.groupFields) || []), {
|
|
614
|
+
collpaseGroupIconClass: p
|
|
615
615
|
} = i, {
|
|
616
|
-
toggleGroupRow:
|
|
617
|
-
} =
|
|
616
|
+
toggleGroupRow: f
|
|
617
|
+
} = c;
|
|
618
618
|
function y(M, v) {
|
|
619
|
-
v.collapse = !v.collapse, n.value =
|
|
619
|
+
v.collapse = !v.collapse, n.value = f(v.collapse ? "collapse" : "expand", v, n.value);
|
|
620
620
|
}
|
|
621
621
|
function S(M, v, g) {
|
|
622
622
|
return M.layer > -1 && x("div", {
|
|
@@ -625,19 +625,19 @@ function Pa(e, t, n, o, i, a, r, u, s, f) {
|
|
|
625
625
|
}, [x("div", {
|
|
626
626
|
class: "fv-grid-group-row-icon"
|
|
627
627
|
}, [x("span", {
|
|
628
|
-
class:
|
|
628
|
+
class: p(M)
|
|
629
629
|
}, null)]), x("div", {
|
|
630
630
|
class: "f-navlookup-recommandLabel"
|
|
631
|
-
}, [M.raw[
|
|
631
|
+
}, [M.raw[d.value[M.layer]]])]);
|
|
632
632
|
}
|
|
633
633
|
return {
|
|
634
634
|
renderItem: S
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
637
|
function Ha(e, t, n, o) {
|
|
638
|
-
const i = _(e.idField), { dataView: a } = n, r = _(-1), u = _(!1), { activeIndex: s, focusedItemId:
|
|
638
|
+
const i = _(e.idField), { dataView: a } = n, r = _(-1), u = _(!1), { activeIndex: s, focusedItemId: c, hoverIndex: d, resumeHover: p, suspendHover: f } = o;
|
|
639
639
|
function y(v, g, F) {
|
|
640
|
-
v.stopPropagation(),
|
|
640
|
+
v.stopPropagation(), f(), g && setTimeout(() => {
|
|
641
641
|
r.value = F, u.value = !0, g.moving = !0;
|
|
642
642
|
});
|
|
643
643
|
}
|
|
@@ -653,7 +653,7 @@ function Ha(e, t, n, o) {
|
|
|
653
653
|
function M(v, g) {
|
|
654
654
|
g && (g.moving = !1), a.value.forEach((F, m) => {
|
|
655
655
|
F.__fv_index__ = m;
|
|
656
|
-
}), u.value = !1,
|
|
656
|
+
}), u.value = !1, p(), d.value = g.raw.__fv_index__, s.value = g.raw.__fv_index__, c.value = g.raw[i.value], t.emit("change", a.value), t.emit("activeChange", g);
|
|
657
657
|
}
|
|
658
658
|
return {
|
|
659
659
|
dragstart: y,
|
|
@@ -674,7 +674,7 @@ function La(e, t, n) {
|
|
|
674
674
|
return { removeItem: i };
|
|
675
675
|
}
|
|
676
676
|
function Wa(e, t, n, o, i, a) {
|
|
677
|
-
const r = _(e.idField), u = _(e.disableField), s = _(e.draggable),
|
|
677
|
+
const r = _(e.idField), u = _(e.disableField), s = _(e.draggable), c = _(e.itemClass), d = _(e.selection.multiSelect ?? !1), p = _(e.selection.multiSelectMode), { isDragging: f } = o, { activeIndex: y, focusedItemId: S, hoverIndex: D } = i, { clearSelection: M, getSelectedItems: v, toggleSelectItem: g } = a, F = _(v());
|
|
678
678
|
function m(h, C) {
|
|
679
679
|
const k = {
|
|
680
680
|
"f-list-view-group-item": !0,
|
|
@@ -682,19 +682,19 @@ function Wa(e, t, n, o, i, a) {
|
|
|
682
682
|
"f-un-click": !h.checked,
|
|
683
683
|
"f-un-select": !!h.raw[u.value],
|
|
684
684
|
"f-listview-active": h.raw.__fv_index__ === y.value,
|
|
685
|
-
"f-listview-hover": !
|
|
685
|
+
"f-listview-hover": !f.value && C === D.value,
|
|
686
686
|
moving: !!h.moving
|
|
687
687
|
};
|
|
688
|
-
return
|
|
688
|
+
return c.value.split(" ").reduce((O, R) => (O[R] = !0, O), k), k;
|
|
689
689
|
}
|
|
690
690
|
function w(h, C) {
|
|
691
691
|
return h.raw[r.value] || "";
|
|
692
692
|
}
|
|
693
|
-
const E = j(() => !
|
|
693
|
+
const E = j(() => !d.value);
|
|
694
694
|
function l(h, C, k) {
|
|
695
695
|
h.checked = k, !h.raw[u.value] && (E.value && (S.value = h.raw[r.value]), g(h));
|
|
696
696
|
}
|
|
697
|
-
const b = j(() =>
|
|
697
|
+
const b = j(() => d.value && p.value === "OnCheckClearByClick"), I = j(() => !d.value || d.value && (p.value === "OnCheckAndClick" || p.value === "OnClick"));
|
|
698
698
|
function V(h, C, k) {
|
|
699
699
|
if (C.raw[u.value]) {
|
|
700
700
|
h.preventDefault(), h.stopPropagation();
|
|
@@ -710,11 +710,11 @@ function Wa(e, t, n, o, i, a) {
|
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
712
|
function En(e, t, n, o, i, a, r, u) {
|
|
713
|
-
const s = _(e.view),
|
|
713
|
+
const s = _(e.view), c = _(e.view === "CardView"), d = _({}), p = _("暂无数据"), f = Ha(e, t, o, a), y = La(e, t, o), S = Wa(e, t, n, f, a, r), D = j(() => ({
|
|
714
714
|
"f-list-view-group": !0,
|
|
715
715
|
"f-list-view-group-multiselect": e.multiSelect,
|
|
716
|
-
"d-flex":
|
|
717
|
-
"flex-wrap":
|
|
716
|
+
"d-flex": c.value,
|
|
717
|
+
"flex-wrap": c.value
|
|
718
718
|
})), M = j(() => !!n.value && n.value.length > 0), v = j(() => n.value.length === 0);
|
|
719
719
|
j(() => v.value && !t.slots.empty);
|
|
720
720
|
function g() {
|
|
@@ -722,18 +722,18 @@ function En(e, t, n, o, i, a, r, u) {
|
|
|
722
722
|
}
|
|
723
723
|
const F = g(), {
|
|
724
724
|
renderItem: m
|
|
725
|
-
} = F(e, t, n,
|
|
725
|
+
} = F(e, t, n, f, i, a, S, r, y, u), {
|
|
726
726
|
renderItem: w
|
|
727
|
-
} = Pa(e, t, n,
|
|
727
|
+
} = Pa(e, t, n, f, i, a, S, r, y, u), E = [m, w];
|
|
728
728
|
function l() {
|
|
729
|
-
return n.value.filter((V) => V.visible !== !1).map((V, h) => E[V.type](V, h,
|
|
729
|
+
return n.value.filter((V) => V.visible !== !1).map((V, h) => E[V.type](V, h, d));
|
|
730
730
|
}
|
|
731
731
|
function b() {
|
|
732
732
|
return x("div", {
|
|
733
733
|
class: "f-list-view-emptydata"
|
|
734
734
|
}, [x("p", {
|
|
735
735
|
class: "f-empty-title"
|
|
736
|
-
}, [t.slots.empty ? t.slots.empty() :
|
|
736
|
+
}, [t.slots.empty ? t.slots.empty() : p.value])]);
|
|
737
737
|
}
|
|
738
738
|
function I() {
|
|
739
739
|
return x("ul", {
|
|
@@ -757,27 +757,27 @@ function Vn(e, t, n) {
|
|
|
757
757
|
}
|
|
758
758
|
function It(e, t, n) {
|
|
759
759
|
const o = _(e.headerClass), i = _(e.placeholder), a = _(""), r = j(() => !a.value), u = j(() => !!a.value);
|
|
760
|
-
function s(
|
|
760
|
+
function s(f) {
|
|
761
761
|
a.value = "";
|
|
762
762
|
}
|
|
763
|
-
|
|
764
|
-
e.enableHighlightSearch && n.search(
|
|
763
|
+
he(a, (f) => {
|
|
764
|
+
e.enableHighlightSearch && n.search(f), t.emit("afterSearch", f);
|
|
765
765
|
});
|
|
766
|
-
const
|
|
767
|
-
const
|
|
766
|
+
const c = j(() => {
|
|
767
|
+
const f = {
|
|
768
768
|
"form-group": !0,
|
|
769
769
|
"farris-form-group": !0
|
|
770
770
|
};
|
|
771
|
-
return o.value && o.value.split(" ").reduce((S, D) => (S[D] = !0, S),
|
|
771
|
+
return o.value && o.value.split(" ").reduce((S, D) => (S[D] = !0, S), f), f;
|
|
772
772
|
});
|
|
773
|
-
function
|
|
773
|
+
function d(f) {
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function p() {
|
|
776
776
|
return x("div", {
|
|
777
777
|
class: "f-list-view-header",
|
|
778
|
-
onClick: So(() =>
|
|
778
|
+
onClick: So(() => d, ["prevent", "stop"])
|
|
779
779
|
}, [x("div", {
|
|
780
|
-
class:
|
|
780
|
+
class: c.value
|
|
781
781
|
}, [x("div", {
|
|
782
782
|
class: "farris-input-wrap"
|
|
783
783
|
}, [x("div", {
|
|
@@ -786,7 +786,7 @@ function It(e, t, n) {
|
|
|
786
786
|
class: "input-group f-state-editable"
|
|
787
787
|
}, [ln(x("input", {
|
|
788
788
|
class: "form-control f-utils-fill text-left",
|
|
789
|
-
"onUpdate:modelValue": (
|
|
789
|
+
"onUpdate:modelValue": (f) => a.value = f,
|
|
790
790
|
name: "input-group-value",
|
|
791
791
|
type: "text",
|
|
792
792
|
placeholder: i.value,
|
|
@@ -795,7 +795,7 @@ function It(e, t, n) {
|
|
|
795
795
|
class: "input-group-append"
|
|
796
796
|
}, [u.value && x("span", {
|
|
797
797
|
class: "input-group-text input-group-clear",
|
|
798
|
-
onClick: (
|
|
798
|
+
onClick: (f) => s()
|
|
799
799
|
}, [x("i", {
|
|
800
800
|
class: "f-icon f-icon-close-circle"
|
|
801
801
|
}, null)]), r.value && x("span", {
|
|
@@ -805,38 +805,38 @@ function It(e, t, n) {
|
|
|
805
805
|
}, null)])])])])])])]);
|
|
806
806
|
}
|
|
807
807
|
return {
|
|
808
|
-
renderHeader:
|
|
808
|
+
renderHeader: p
|
|
809
809
|
};
|
|
810
810
|
}
|
|
811
811
|
function Bn() {
|
|
812
812
|
const e = _(""), t = _(-1), n = _(""), o = _(-1), i = _(!1);
|
|
813
|
-
function a(
|
|
813
|
+
function a(p, f, y) {
|
|
814
814
|
o.value = y;
|
|
815
815
|
}
|
|
816
|
-
function r(
|
|
816
|
+
function r(p, f, y) {
|
|
817
817
|
i.value || (o.value = y);
|
|
818
818
|
}
|
|
819
|
-
function u(
|
|
819
|
+
function u(p, f, y) {
|
|
820
820
|
o.value = -1;
|
|
821
821
|
}
|
|
822
822
|
function s() {
|
|
823
823
|
i.value = !0;
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function c() {
|
|
826
826
|
i.value = !1;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function d() {
|
|
829
829
|
t.value = -1, e.value = "";
|
|
830
830
|
}
|
|
831
831
|
return {
|
|
832
832
|
activeIndex: t,
|
|
833
833
|
focusedItemId: n,
|
|
834
834
|
hoverIndex: o,
|
|
835
|
-
clearActiveItem:
|
|
835
|
+
clearActiveItem: d,
|
|
836
836
|
onMouseenterItem: a,
|
|
837
837
|
onMouseoverItem: r,
|
|
838
838
|
onMouseoutItem: u,
|
|
839
|
-
resumeHover:
|
|
839
|
+
resumeHover: c,
|
|
840
840
|
suspendHover: s
|
|
841
841
|
};
|
|
842
842
|
}
|
|
@@ -845,7 +845,7 @@ const wt = /* @__PURE__ */ Me({
|
|
|
845
845
|
props: Dt,
|
|
846
846
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
847
847
|
setup(e, t) {
|
|
848
|
-
const n = _(), o = _(!0), i = _(!1), a = _([]), r = 0, u = _(e.columns), s = dn(),
|
|
848
|
+
const n = _(), o = _(!0), i = _(!1), a = _([]), r = 0, u = _(e.columns), s = dn(), c = fn(e), d = pn(e), p = mn(e, c), f = vn(e, /* @__PURE__ */ new Map(), s, d, c), y = hn(e, f, c, a, t), S = Mn(e, n), D = j(() => f.dataView.value.length), M = gn(e, t, y, c), v = yn(e, t, c, M), g = bn(e), F = Cn(e, {}, g), m = wn(e, v, d, c, g, F), w = Ro(e, c, F, m), E = No(e, c, F, m), l = _n(e, u, f, D, r, m, w, E), {
|
|
849
849
|
getVisualData: b
|
|
850
850
|
} = l;
|
|
851
851
|
a.value = b(0, D.value + r - 1);
|
|
@@ -863,12 +863,12 @@ const wt = /* @__PURE__ */ Me({
|
|
|
863
863
|
renderHeader: k
|
|
864
864
|
} = C(e, t, S), T = Bn(), {
|
|
865
865
|
renderListArea: O
|
|
866
|
-
} = En(e, t, a,
|
|
866
|
+
} = En(e, t, a, f, p, T, y, l);
|
|
867
867
|
function R(L) {
|
|
868
868
|
S.search(L);
|
|
869
869
|
}
|
|
870
870
|
function B(L) {
|
|
871
|
-
L && (
|
|
871
|
+
L && (f.load(L), a.value = b(0, D.value + r - 1));
|
|
872
872
|
}
|
|
873
873
|
function $() {
|
|
874
874
|
y.clearSelection(), T.clearActiveItem();
|
|
@@ -910,26 +910,26 @@ function Qt(e, t, n) {
|
|
|
910
910
|
function s() {
|
|
911
911
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function c() {
|
|
914
914
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function d(l) {
|
|
917
917
|
if (!l || !l.value)
|
|
918
918
|
return null;
|
|
919
919
|
if (l.value.schema && l.value.schema.type === "component")
|
|
920
920
|
return l.value;
|
|
921
|
-
const b = _(l == null ? void 0 : l.value.parent), I =
|
|
921
|
+
const b = _(l == null ? void 0 : l.value.parent), I = d(b);
|
|
922
922
|
return I || null;
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function p(l = t) {
|
|
925
925
|
var h;
|
|
926
926
|
const { componentInstance: b, designerItemElementRef: I } = l;
|
|
927
927
|
if (!b || !b.value)
|
|
928
928
|
return null;
|
|
929
929
|
const { getCustomButtons: V } = b.value;
|
|
930
|
-
return b.value.canMove || V && ((h = V()) != null && h.length) ? I :
|
|
930
|
+
return b.value.canMove || V && ((h = V()) != null && h.length) ? I : p(l.parent);
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function f(l) {
|
|
933
933
|
return !!n && n.canAccepts(l);
|
|
934
934
|
}
|
|
935
935
|
function y() {
|
|
@@ -976,16 +976,16 @@ function Qt(e, t, n) {
|
|
|
976
976
|
canMove: r(),
|
|
977
977
|
canSelectParent: u(),
|
|
978
978
|
canDelete: s(),
|
|
979
|
-
canNested: !
|
|
979
|
+
canNested: !c(),
|
|
980
980
|
contents: t == null ? void 0 : t.schema.contents,
|
|
981
981
|
elementRef: e,
|
|
982
982
|
parent: (E = t == null ? void 0 : t.parent) == null ? void 0 : E.componentInstance,
|
|
983
983
|
schema: t == null ? void 0 : t.schema,
|
|
984
984
|
styles: o,
|
|
985
985
|
designerClass: i,
|
|
986
|
-
canAccepts:
|
|
987
|
-
getBelongedComponentInstance:
|
|
988
|
-
getDraggableDesignItemElement:
|
|
986
|
+
canAccepts: f,
|
|
987
|
+
getBelongedComponentInstance: d,
|
|
988
|
+
getDraggableDesignItemElement: p,
|
|
989
989
|
getDraggingDisplayText: y,
|
|
990
990
|
getPropConfig: g,
|
|
991
991
|
getDragScopeElement: S,
|
|
@@ -1037,7 +1037,7 @@ function Aa(e, t) {
|
|
|
1037
1037
|
width: isNaN(Number(D[S.field].width)) ? "100%" : `${D[S.field].width}px`
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function c(S, D, M) {
|
|
1041
1041
|
const g = (D.spanned || []).reduce((m, w) => m + (w.parent.height || 0), 0) + (S.height || 0);
|
|
1042
1042
|
return {
|
|
1043
1043
|
top: `${S.top}px`,
|
|
@@ -1049,13 +1049,13 @@ function Aa(e, t) {
|
|
|
1049
1049
|
// padding: `calc(${rowHeight * cell.rowSpan / 2}px - 1rem) 0`
|
|
1050
1050
|
};
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function d(S, D) {
|
|
1053
1053
|
return `${n}_${S.type}_r_${S.index}_c_${D}_${S.refreshKey || ""}`;
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function p(S) {
|
|
1056
1056
|
return `${n}_${S.type}_r_${S.index}_${S.refreshKey || ""}`;
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function f(S) {
|
|
1059
1059
|
const D = S.height ? `${S.height}px` : "";
|
|
1060
1060
|
return {
|
|
1061
1061
|
top: `${S.top}px`,
|
|
@@ -1063,16 +1063,16 @@ function Aa(e, t) {
|
|
|
1063
1063
|
height: `${D}`
|
|
1064
1064
|
};
|
|
1065
1065
|
}
|
|
1066
|
-
return
|
|
1066
|
+
return he(t, () => {
|
|
1067
1067
|
i.value = t.value.primaryColumnsWidth;
|
|
1068
1068
|
}), {
|
|
1069
1069
|
calculateCellPositionInRow: a,
|
|
1070
|
-
cellKey:
|
|
1070
|
+
cellKey: d,
|
|
1071
1071
|
cellPosition: s,
|
|
1072
1072
|
groupCellPosition: r,
|
|
1073
|
-
rowKey:
|
|
1074
|
-
rowPosition:
|
|
1075
|
-
rowSpanCellPosition:
|
|
1073
|
+
rowKey: p,
|
|
1074
|
+
rowPosition: f,
|
|
1075
|
+
rowSpanCellPosition: c,
|
|
1076
1076
|
summaryCellPosition: u
|
|
1077
1077
|
};
|
|
1078
1078
|
}
|
|
@@ -1080,30 +1080,30 @@ function za(e, t, n) {
|
|
|
1080
1080
|
const { hasChildrenField: o } = n, i = _("#9399a0"), a = _(28);
|
|
1081
1081
|
function r() {
|
|
1082
1082
|
return [].concat(
|
|
1083
|
-
...t.value.filter((
|
|
1084
|
-
).sort((
|
|
1083
|
+
...t.value.filter((f) => f.raw.__fv_descendant_index__.length !== 0).map((f) => [...f.raw.__fv_descendant_index__.slice(-1)]).flat()
|
|
1084
|
+
).sort((f, y) => Number(f) - Number(y));
|
|
1085
1085
|
}
|
|
1086
|
-
function u(
|
|
1087
|
-
const
|
|
1086
|
+
function u(d) {
|
|
1087
|
+
const p = new Array(t.value.length).fill(0);
|
|
1088
1088
|
if (e.showLines) {
|
|
1089
|
-
const
|
|
1089
|
+
const f = r();
|
|
1090
1090
|
t.value.forEach((y, S) => {
|
|
1091
|
-
const D =
|
|
1092
|
-
|
|
1093
|
-
}),
|
|
1091
|
+
const D = f.includes(S), M = y.raw[o.value];
|
|
1092
|
+
p[S] = `repeating-linear-gradient(90deg, ${i.value} 0 1px, transparent 0px 2px) ${M ? "-10px" : "0px"} ${a.value / 2}px/20px 1px no-repeat,repeating-linear-gradient(${i.value} 0 1px, transparent 0px 2px) 0px 0px/1px ${D ? "50%" : "100%"} no-repeat`;
|
|
1093
|
+
}), p[0] = "";
|
|
1094
1094
|
}
|
|
1095
|
-
return d
|
|
1095
|
+
return p[d];
|
|
1096
1096
|
}
|
|
1097
|
-
function s(
|
|
1098
|
-
return
|
|
1099
|
-
|
|
1100
|
-
}),
|
|
1097
|
+
function s(d, p, f) {
|
|
1098
|
+
return f[d].parents.set(d, !0).forEach((S) => {
|
|
1099
|
+
f[S].childsLength = f[S].childWithLines.filter((D) => p[D].visible).length;
|
|
1100
|
+
}), p;
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1103
|
-
const y =
|
|
1104
|
-
left: `${
|
|
1102
|
+
function c(d) {
|
|
1103
|
+
const y = d.raw.__fv_parent_index__ === void 0 || d.raw.__fv_parent_index__ === -1 ? 0 : 8, S = 0, D = d.raw[o.value], M = d.visible ? {
|
|
1104
|
+
left: `${d.layer * 10 + d.layer * y + S}px`,
|
|
1105
1105
|
// paddingBottom: handlePaddingBottomReturnValue(visualTreeNode.index),
|
|
1106
|
-
background: u(
|
|
1106
|
+
background: u(d.index),
|
|
1107
1107
|
display: "flex",
|
|
1108
1108
|
width: "100%",
|
|
1109
1109
|
position: "relative",
|
|
@@ -1113,7 +1113,7 @@ function za(e, t, n) {
|
|
|
1113
1113
|
};
|
|
1114
1114
|
return D || (M.paddingLeft = "2rem"), M;
|
|
1115
1115
|
}
|
|
1116
|
-
return { hierarchyCellContentStyle:
|
|
1116
|
+
return { hierarchyCellContentStyle: c, handleCollapsedPaddingBottom: s };
|
|
1117
1117
|
}
|
|
1118
1118
|
function Ga(e, t, n) {
|
|
1119
1119
|
const o = _(e.iconField);
|
|
@@ -1126,7 +1126,7 @@ function Ga(e, t, n) {
|
|
|
1126
1126
|
return { treeNodeIconsClass: i };
|
|
1127
1127
|
}
|
|
1128
1128
|
function qa(e, t, n, o, i, a, r, u) {
|
|
1129
|
-
const { dataView: s, fold:
|
|
1129
|
+
const { dataView: s, fold: c, hasRealChildren: d, unFold: p, reOrderVisibleIndex: f } = o, { collapseField: y, hasChildrenField: S } = i, { reCalculateVisualDataRows: D, updateVirticalScroll: M } = a;
|
|
1130
1130
|
function v(m, w) {
|
|
1131
1131
|
var I, V;
|
|
1132
1132
|
const E = w[m], l = E.__fv_parents__ ? (I = E.__fv_parents__) == null ? void 0 : I.size : 0;
|
|
@@ -1142,7 +1142,7 @@ function qa(e, t, n, o, i, a, r, u) {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
function g(m, w) {
|
|
1144
1144
|
const E = s.value[m];
|
|
1145
|
-
E[y.value] = !E[y.value], E[S.value] =
|
|
1145
|
+
E[y.value] = !E[y.value], E[S.value] = d(E);
|
|
1146
1146
|
const l = E[y.value];
|
|
1147
1147
|
let b = !1, I = m;
|
|
1148
1148
|
for (; I < s.value.length; ) {
|
|
@@ -1155,7 +1155,7 @@ function qa(e, t, n, o, i, a, r, u) {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
I++;
|
|
1157
1157
|
}
|
|
1158
|
-
|
|
1158
|
+
f();
|
|
1159
1159
|
}
|
|
1160
1160
|
function F(m) {
|
|
1161
1161
|
if (m.raw[S.value]) {
|
|
@@ -1166,7 +1166,7 @@ function qa(e, t, n, o, i, a, r, u) {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
return { toggleTreeNode: F };
|
|
1168
1168
|
}
|
|
1169
|
-
function Ua(e, t, n, o, i, a, r, u, s,
|
|
1169
|
+
function Ua(e, t, n, o, i, a, r, u, s, c, d, p, f) {
|
|
1170
1170
|
const {
|
|
1171
1171
|
onClickCell: y
|
|
1172
1172
|
} = a, {
|
|
@@ -1187,9 +1187,9 @@ function Ua(e, t, n, o, i, a, r, u, s, f, p, d, c) {
|
|
|
1187
1187
|
shouldShowIcon: I
|
|
1188
1188
|
} = r, {
|
|
1189
1189
|
toggleTreeNode: V
|
|
1190
|
-
} = qa(e, t, o, i, r,
|
|
1190
|
+
} = qa(e, t, o, i, r, d), {
|
|
1191
1191
|
toggleSelectHierarchyItem: h
|
|
1192
|
-
} =
|
|
1192
|
+
} = c, {
|
|
1193
1193
|
cellKey: C,
|
|
1194
1194
|
cellPosition: k,
|
|
1195
1195
|
rowKey: T,
|
|
@@ -1338,13 +1338,13 @@ function Xa() {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
function Ka(e) {
|
|
1340
1340
|
const t = _(e.minHeight), n = _(e.minWidth), o = _(e.height), i = _(e.width), a = j(() => o.value <= 0 ? 0 : Math.max(o.value, t.value)), r = j(() => i.value <= 0 ? 0 : Math.max(i.value, n.value));
|
|
1341
|
-
return
|
|
1341
|
+
return he([
|
|
1342
1342
|
() => e.height,
|
|
1343
1343
|
() => e.width,
|
|
1344
1344
|
() => e.minHeight,
|
|
1345
1345
|
() => e.minWidth
|
|
1346
|
-
], ([s,
|
|
1347
|
-
t.value = Number(
|
|
1346
|
+
], ([s, c, d, p]) => {
|
|
1347
|
+
t.value = Number(d), n.value = Number(p), o.value = Number(s), i.value = Number(c);
|
|
1348
1348
|
}), { containerStyleObject: j(() => ({
|
|
1349
1349
|
height: a.value > 0 ? `${a.value}px` : e.fit ? "100%" : "",
|
|
1350
1350
|
width: r.value > 0 ? `${r.value}px` : e.fit ? "100%" : "",
|
|
@@ -1408,11 +1408,11 @@ function Ja(e) {
|
|
|
1408
1408
|
return r.value && r.value.reduce((w, E) => (w.set(E, !0), w), m), F.reduce((w, E) => (E.visible = E.visible !== !1, E.filter = E.filter || Qa, E.fixed === "left" ? (o.value.leftColumns.push(E), o.value.leftColumnsMap.set(E.field, E), o.value.leftColumnsWidth += E.actualWidth) : E.fixed === "right" ? (o.value.rightColumns.push(E), o.value.rightColumnsMap.set(E.field, E), o.value.rightColumnsWidth += E.actualWidth) : (o.value.primaryColumns.push(E), o.value.primaryColumnsMap.set(E.field, E), o.value.primaryColumnsWidth += E.actualWidth), m.has(E.field) && o.value.summaryColumns.push(E), w), o), u(), o;
|
|
1409
1409
|
}
|
|
1410
1410
|
s(e.columns);
|
|
1411
|
-
const
|
|
1412
|
-
function
|
|
1411
|
+
const c = j(() => o.value.leftColumns.length > 0), d = j(() => o.value.rightColumns.length > 0);
|
|
1412
|
+
function p(F, m) {
|
|
1413
1413
|
return m.sortable && m.sort && m.sort !== "none" && F.push(m), F;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function f(F, m) {
|
|
1416
1416
|
return F.sortOrder = F.sortOrder || 0, m.sortOrder = m.sortOrder || 0, F.sortOrder === m.sortOrder ? 0 : F.sortOrder < m.sortOrder ? -1 : 1;
|
|
1417
1417
|
}
|
|
1418
1418
|
function y(F, m) {
|
|
@@ -1427,12 +1427,12 @@ function Ja(e) {
|
|
|
1427
1427
|
}
|
|
1428
1428
|
function M() {
|
|
1429
1429
|
const F = [];
|
|
1430
|
-
o.value.leftColumns.reduce(
|
|
1430
|
+
o.value.leftColumns.reduce(p, F), o.value.primaryColumns.reduce(p, F), o.value.rightColumns.reduce(p, F);
|
|
1431
1431
|
const m = Math.max(...F.map((w) => w.sortOrder || 0));
|
|
1432
1432
|
return F.sort(y).map((w) => {
|
|
1433
1433
|
const E = w.sortOrder || m + 1;
|
|
1434
1434
|
return w.sortOrder = E, w;
|
|
1435
|
-
}).sort(
|
|
1435
|
+
}).sort(f).map((w, E) => {
|
|
1436
1436
|
const l = E + 1;
|
|
1437
1437
|
return w.sortOrder = l, w;
|
|
1438
1438
|
});
|
|
@@ -1454,8 +1454,8 @@ function Ja(e) {
|
|
|
1454
1454
|
applySortableColumns: v,
|
|
1455
1455
|
collectionSortableColumns: M,
|
|
1456
1456
|
columnContext: o,
|
|
1457
|
-
hasLeftFixedColumn:
|
|
1458
|
-
hasRightFixedColumn:
|
|
1457
|
+
hasLeftFixedColumn: c,
|
|
1458
|
+
hasRightFixedColumn: d,
|
|
1459
1459
|
updateColumnRenderContext: s,
|
|
1460
1460
|
updateColumnSettingIcon: u
|
|
1461
1461
|
};
|
|
@@ -1492,33 +1492,33 @@ function Za(e) {
|
|
|
1492
1492
|
return { applyCommands: i };
|
|
1493
1493
|
}
|
|
1494
1494
|
function er(e, t) {
|
|
1495
|
-
var
|
|
1496
|
-
const n = _((
|
|
1497
|
-
function o(
|
|
1495
|
+
var c;
|
|
1496
|
+
const n = _((c = e.columnOption) == null ? void 0 : c.groups);
|
|
1497
|
+
function o(d, p, f, y, S) {
|
|
1498
1498
|
const D = {
|
|
1499
1499
|
actualWidth: 0,
|
|
1500
1500
|
children: [],
|
|
1501
1501
|
depth: 1,
|
|
1502
|
-
field:
|
|
1502
|
+
field: d.field,
|
|
1503
1503
|
layer: 1,
|
|
1504
1504
|
left: 0,
|
|
1505
|
-
parent:
|
|
1505
|
+
parent: f,
|
|
1506
1506
|
resizable: !0,
|
|
1507
|
-
title:
|
|
1507
|
+
title: d.title || "",
|
|
1508
1508
|
status: Ve.none,
|
|
1509
1509
|
popoverRef: _(),
|
|
1510
1510
|
showPopover: !1,
|
|
1511
1511
|
column: null,
|
|
1512
1512
|
sortType: "none"
|
|
1513
1513
|
}, M = y || D;
|
|
1514
|
-
if (
|
|
1514
|
+
if (d.group) {
|
|
1515
1515
|
let v = 1;
|
|
1516
|
-
|
|
1516
|
+
d.group.reduce((g, F) => {
|
|
1517
1517
|
if (typeof F == "string") {
|
|
1518
|
-
const m =
|
|
1518
|
+
const m = p.get(F);
|
|
1519
1519
|
m && (S.fieldToRootMap.set(F, M), g.actualWidth += m.actualWidth, g.children.push(m));
|
|
1520
1520
|
} else {
|
|
1521
|
-
const m = o(F,
|
|
1521
|
+
const m = o(F, p, g, M, S);
|
|
1522
1522
|
v = Math.max(v, m.depth), g.actualWidth += m.actualWidth, g.children.push(m);
|
|
1523
1523
|
}
|
|
1524
1524
|
return g;
|
|
@@ -1526,40 +1526,40 @@ function er(e, t) {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
return t.value.headerDepth = Math.max(t.value.headerDepth, D.depth), D;
|
|
1528
1528
|
}
|
|
1529
|
-
function i(
|
|
1530
|
-
const
|
|
1529
|
+
function i(d) {
|
|
1530
|
+
const p = {
|
|
1531
1531
|
groupedCells: /* @__PURE__ */ new Map(),
|
|
1532
1532
|
fieldToRootMap: /* @__PURE__ */ new Map()
|
|
1533
1533
|
};
|
|
1534
|
-
return n.value && n.value.reduce((
|
|
1535
|
-
const S = o(y,
|
|
1536
|
-
return
|
|
1537
|
-
},
|
|
1534
|
+
return n.value && n.value.reduce((f, y) => {
|
|
1535
|
+
const S = o(y, d, null, null, p);
|
|
1536
|
+
return f.groupedCells.set(y.field, S), f;
|
|
1537
|
+
}, p), p;
|
|
1538
1538
|
}
|
|
1539
|
-
function a(
|
|
1540
|
-
if (!
|
|
1539
|
+
function a(d) {
|
|
1540
|
+
if (!d || d.length === 0)
|
|
1541
1541
|
return 0;
|
|
1542
|
-
const
|
|
1543
|
-
return
|
|
1542
|
+
const p = d[0];
|
|
1543
|
+
return p.children && p.children.length > 0 && (p.left = a(p.children)), p.left;
|
|
1544
1544
|
}
|
|
1545
|
-
function r(
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1548
|
-
y.layer =
|
|
1545
|
+
function r(d, p) {
|
|
1546
|
+
const f = t.value.headerDepth;
|
|
1547
|
+
d.forEach((y) => {
|
|
1548
|
+
y.layer = p ? p.layer + 1 : 1;
|
|
1549
1549
|
const S = y.children && y.children.length === 0;
|
|
1550
|
-
y.depth = S ?
|
|
1550
|
+
y.depth = S ? f - (y.layer - 1) : 1, y.left = S ? y.left : a(y.children), y.children && r(y.children, y);
|
|
1551
1551
|
});
|
|
1552
1552
|
}
|
|
1553
|
-
function u(
|
|
1554
|
-
const
|
|
1555
|
-
return
|
|
1556
|
-
const S =
|
|
1557
|
-
D && !
|
|
1558
|
-
}), r(Array.from(
|
|
1553
|
+
function u(d, p) {
|
|
1554
|
+
const f = /* @__PURE__ */ new Map();
|
|
1555
|
+
return d.forEach((y) => {
|
|
1556
|
+
const S = p.fieldToRootMap.get(y.field), D = S != null;
|
|
1557
|
+
D && !f.has(S.field) && f.set(S.field, S), D || f.set(y.field, y);
|
|
1558
|
+
}), r(Array.from(f.values())), f;
|
|
1559
1559
|
}
|
|
1560
|
-
function s(
|
|
1561
|
-
let
|
|
1562
|
-
if (
|
|
1560
|
+
function s(d) {
|
|
1561
|
+
let p = /* @__PURE__ */ new Map(), f = 0;
|
|
1562
|
+
if (d.reduce((y, S) => {
|
|
1563
1563
|
let D = Ve.none;
|
|
1564
1564
|
D = S.filterable ? D | Ve.filterable : D, D = S.sort && S.sort !== "none" ? D | Ve.sorted | (S.sort === "asc" ? Ve.ascending : Ve.descending) : D;
|
|
1565
1565
|
const M = S.field;
|
|
@@ -1568,7 +1568,7 @@ function er(e, t) {
|
|
|
1568
1568
|
children: [],
|
|
1569
1569
|
depth: 1,
|
|
1570
1570
|
layer: 1,
|
|
1571
|
-
left:
|
|
1571
|
+
left: f,
|
|
1572
1572
|
field: M,
|
|
1573
1573
|
parent: null,
|
|
1574
1574
|
resizable: S.resizable === void 0 ? !0 : S.resizable,
|
|
@@ -1580,12 +1580,12 @@ function er(e, t) {
|
|
|
1580
1580
|
filterValue: null,
|
|
1581
1581
|
sortType: S.sort || "none",
|
|
1582
1582
|
showSetting: S.showSetting
|
|
1583
|
-
}),
|
|
1584
|
-
},
|
|
1585
|
-
const y = i(
|
|
1586
|
-
|
|
1583
|
+
}), f += S.actualWidth || 0, y;
|
|
1584
|
+
}, p), n.value) {
|
|
1585
|
+
const y = i(p);
|
|
1586
|
+
p = u(p, y);
|
|
1587
1587
|
}
|
|
1588
|
-
return
|
|
1588
|
+
return p;
|
|
1589
1589
|
}
|
|
1590
1590
|
return { getGridHeaderCells: s };
|
|
1591
1591
|
}
|
|
@@ -1600,12 +1600,12 @@ function Dn(e, t) {
|
|
|
1600
1600
|
}), s = j(() => {
|
|
1601
1601
|
const g = o.value;
|
|
1602
1602
|
return (g == null ? void 0 : g.groupFields) || [];
|
|
1603
|
-
}),
|
|
1603
|
+
}), c = j(() => {
|
|
1604
1604
|
const g = i.value;
|
|
1605
1605
|
return g && g.showSummary;
|
|
1606
|
-
}),
|
|
1607
|
-
let
|
|
1608
|
-
function
|
|
1606
|
+
}), d = /* @__PURE__ */ new Map();
|
|
1607
|
+
let p = [];
|
|
1608
|
+
function f(g, F, m, w, E) {
|
|
1609
1609
|
const l = w[m];
|
|
1610
1610
|
l && (F.reduce((b, I, V) => {
|
|
1611
1611
|
var k;
|
|
@@ -1629,7 +1629,7 @@ function Dn(e, t) {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
}), C.details.push(I), b;
|
|
1631
1631
|
}, g), m < w.length - 1 && g.forEach((b, I) => {
|
|
1632
|
-
b.nestGroup = /* @__PURE__ */ new Map(),
|
|
1632
|
+
b.nestGroup = /* @__PURE__ */ new Map(), f(b.nestGroup, b.details, m + 1, w, E), b.details = [];
|
|
1633
1633
|
}));
|
|
1634
1634
|
}
|
|
1635
1635
|
function y(g, F) {
|
|
@@ -1650,7 +1650,7 @@ function Dn(e, t) {
|
|
|
1650
1650
|
const l = S(m.nestGroup);
|
|
1651
1651
|
F.push(...l), E += l.length;
|
|
1652
1652
|
}
|
|
1653
|
-
if (m.details && m.details.length && (F.push(...m.details), E += m.details.length),
|
|
1653
|
+
if (m.details && m.details.length && (F.push(...m.details), E += m.details.length), c.value) {
|
|
1654
1654
|
const l = {
|
|
1655
1655
|
__fv_data_grid_group_field__: m.field,
|
|
1656
1656
|
__fv_data_grid_group_layer__: m.layer,
|
|
@@ -1669,7 +1669,7 @@ function Dn(e, t) {
|
|
|
1669
1669
|
}), F;
|
|
1670
1670
|
}
|
|
1671
1671
|
function D(g, F, m) {
|
|
1672
|
-
return !g || g.length === 0 || !F.length ? F : (g.join(","),
|
|
1672
|
+
return !g || g.length === 0 || !F.length ? F : (g.join(","), d.clear(), p = [], F = F.filter((w) => !w.__fv_data_grid_group_row__), f(d, F, 0, g, m), p = S(d), p);
|
|
1673
1673
|
}
|
|
1674
1674
|
function M(g) {
|
|
1675
1675
|
return {
|
|
@@ -1681,8 +1681,8 @@ function Dn(e, t) {
|
|
|
1681
1681
|
return { collpaseGroupIconClass: M, generateGroupData: D, groupFields: a, shouldGroupingData: r, showGroupPanel: u };
|
|
1682
1682
|
}
|
|
1683
1683
|
function tr(e, t, n, o) {
|
|
1684
|
-
const i = _(!!e.hierarchy), { idField: a } = o, { collapseField: r, hasChildrenField: u, parentIdField: s } = n,
|
|
1685
|
-
function
|
|
1684
|
+
const i = _(!!e.hierarchy), { idField: a } = o, { collapseField: r, hasChildrenField: u, parentIdField: s } = n, c = /* @__PURE__ */ new Map();
|
|
1685
|
+
function d(C, k) {
|
|
1686
1686
|
const T = /* @__PURE__ */ new Map();
|
|
1687
1687
|
return C.reduce((O, R) => {
|
|
1688
1688
|
const B = R[s.value] !== void 0 ? R[s.value] : "";
|
|
@@ -1694,14 +1694,14 @@ function tr(e, t, n, o) {
|
|
|
1694
1694
|
return $.push(R), O.set(B, $), O;
|
|
1695
1695
|
}, T), T;
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1697
|
+
function p(C) {
|
|
1698
1698
|
const k = /* @__PURE__ */ new Map();
|
|
1699
1699
|
return C.reduce((T, O) => {
|
|
1700
1700
|
const R = O[a.value];
|
|
1701
1701
|
return T.set(R, O), T;
|
|
1702
1702
|
}, k), k;
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function f(C) {
|
|
1705
1705
|
C.forEach((k) => {
|
|
1706
1706
|
const T = k[a.value];
|
|
1707
1707
|
k.__fv_children_index__.map((R) => C[R]).forEach((R) => {
|
|
@@ -1764,15 +1764,15 @@ function tr(e, t, n, o) {
|
|
|
1764
1764
|
});
|
|
1765
1765
|
}
|
|
1766
1766
|
function w(C) {
|
|
1767
|
-
|
|
1767
|
+
c.clear(), C.forEach((O, R) => {
|
|
1768
1768
|
const B = O[a.value];
|
|
1769
|
-
|
|
1769
|
+
c.set(B, M(B, R));
|
|
1770
1770
|
});
|
|
1771
|
-
const k =
|
|
1772
|
-
return v(
|
|
1771
|
+
const k = p(C), T = d(C, k);
|
|
1772
|
+
return v(c, T), F(C, c), m(c), c;
|
|
1773
1773
|
}
|
|
1774
1774
|
function E(C) {
|
|
1775
|
-
const k = C[a.value], T =
|
|
1775
|
+
const k = C[a.value], T = c.get(k);
|
|
1776
1776
|
return T && T.children.size > 0;
|
|
1777
1777
|
}
|
|
1778
1778
|
function l(C) {
|
|
@@ -1780,17 +1780,17 @@ function tr(e, t, n, o) {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
function b(C) {
|
|
1782
1782
|
w(t.value);
|
|
1783
|
-
const k =
|
|
1783
|
+
const k = p(C), T = d(C, k);
|
|
1784
1784
|
return C.forEach((O, R) => {
|
|
1785
1785
|
var L;
|
|
1786
1786
|
const B = O[a.value], $ = T.has(B) ? (L = T.get(B)) == null ? void 0 : L.map((U) => U.__fv_index__) : [], A = M(B, R);
|
|
1787
1787
|
O.__fv_graph_node__ = A, O.__fv_children_index__ = $, O.__fv_descendant_index__ = [...$], O.__fv_parents__ = /* @__PURE__ */ new Map(), l(O) && (O[r.value] = !0);
|
|
1788
|
-
}),
|
|
1788
|
+
}), f(C), S(C, k), e.showLines && D(C), C;
|
|
1789
1789
|
}
|
|
1790
1790
|
function I(C, k, T) {
|
|
1791
|
-
const R = T.value[C][a.value], B =
|
|
1791
|
+
const R = T.value[C][a.value], B = c.get(R);
|
|
1792
1792
|
if (B) {
|
|
1793
|
-
const $ =
|
|
1793
|
+
const $ = c.get(B.parentId);
|
|
1794
1794
|
let A = T.value.length - 1;
|
|
1795
1795
|
if ($) {
|
|
1796
1796
|
const L = Array.from($.children.keys()).indexOf(B.id);
|
|
@@ -1807,15 +1807,15 @@ function tr(e, t, n, o) {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
function V(C, k, T) {
|
|
1809
1809
|
const O = T.value[C], R = O[a.value];
|
|
1810
|
-
if (
|
|
1810
|
+
if (c.get(R)) {
|
|
1811
1811
|
const A = T.value.findIndex((L) => L[a.value] === R) + 1;
|
|
1812
1812
|
O[u.value] = !0, O[r.value] = !1, k[u.value] = !1, k[s.value] = R, T.value.splice(A, 0, k);
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
1815
|
function h(C, k) {
|
|
1816
|
-
const T = C[a.value], O =
|
|
1816
|
+
const T = C[a.value], O = c.get(T), R = Array.from(O.descendant.keys());
|
|
1817
1817
|
R.unshift(T);
|
|
1818
|
-
const B =
|
|
1818
|
+
const B = c.get(O.parentId);
|
|
1819
1819
|
if (B && (B.children.delete(T), B.children.size === 0)) {
|
|
1820
1820
|
const A = k.find((L) => L[a.value] === O.parentId);
|
|
1821
1821
|
A[u.value] = !1, A[r.value] = !1;
|
|
@@ -1856,7 +1856,7 @@ const nr = {
|
|
|
1856
1856
|
"f-icon": !0
|
|
1857
1857
|
};
|
|
1858
1858
|
return m[F] = !0, m;
|
|
1859
|
-
}), s = j(() => i.value.title || i.value.message),
|
|
1859
|
+
}), s = j(() => i.value.title || i.value.message), c = j(() => i.value.title && i.value.message), d = j(() => !i.value.title && i.value.message), p = j(() => e.showCloseButton), f = j(() => !!i.value.buttons || !!t.slots.default);
|
|
1860
1860
|
function y(v) {
|
|
1861
1861
|
v.stopPropagation(), v.preventDefault(), a.value = !1, setTimeout(() => {
|
|
1862
1862
|
t.emit("close", i.value);
|
|
@@ -1867,7 +1867,7 @@ const nr = {
|
|
|
1867
1867
|
function D(v) {
|
|
1868
1868
|
return `f-preten-link ${v.customClass ? v.customClass : ""}`;
|
|
1869
1869
|
}
|
|
1870
|
-
|
|
1870
|
+
he(n, () => {
|
|
1871
1871
|
n.value;
|
|
1872
1872
|
});
|
|
1873
1873
|
const M = () => {
|
|
@@ -1881,7 +1881,7 @@ const nr = {
|
|
|
1881
1881
|
};
|
|
1882
1882
|
return () => x("div", {
|
|
1883
1883
|
class: r.value
|
|
1884
|
-
}, [
|
|
1884
|
+
}, [p.value && x("button", {
|
|
1885
1885
|
title: "close",
|
|
1886
1886
|
class: "toast-close f-btn-icon f-bare",
|
|
1887
1887
|
onClick: y
|
|
@@ -1895,13 +1895,13 @@ const nr = {
|
|
|
1895
1895
|
class: u.value
|
|
1896
1896
|
}, null)]), x("div", {
|
|
1897
1897
|
class: "modal-tips-content"
|
|
1898
|
-
}, [
|
|
1898
|
+
}, [c.value && x(yt, null, [x("h5", {
|
|
1899
1899
|
class: "toast-title modal-tips-title",
|
|
1900
1900
|
innerHTML: i.value.title
|
|
1901
1901
|
}, null), x("p", {
|
|
1902
1902
|
class: "toast-msg",
|
|
1903
1903
|
innerHTML: i.value.message
|
|
1904
|
-
}, null),
|
|
1904
|
+
}, null), f.value && M()]), d.value && (i.value.buttons ? x("div", {
|
|
1905
1905
|
class: "toast-title-btns-wrapper d-flex"
|
|
1906
1906
|
}, [x("h5", {
|
|
1907
1907
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -1925,38 +1925,38 @@ const nr = {
|
|
|
1925
1925
|
right: 12,
|
|
1926
1926
|
top: 20,
|
|
1927
1927
|
bottom: 12
|
|
1928
|
-
}, i = _(), a = _(e.options), r = _(e.showCloseButton), u = j(() => e.position || "bottom-right"), s = j(() => e.timeout != null ? e.timeout : 3e3),
|
|
1929
|
-
const
|
|
1928
|
+
}, i = _(), a = _(e.options), r = _(e.showCloseButton), u = j(() => e.position || "bottom-right"), s = j(() => e.timeout != null ? e.timeout : 3e3), c = j(() => {
|
|
1929
|
+
const f = e.bottom ? e.bottom : o.bottom, y = e.top ? e.top : o.top, S = {
|
|
1930
1930
|
transition: "all 0.2s ease",
|
|
1931
1931
|
left: u.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
1932
1932
|
right: u.value.indexOf("right") > -1 ? `${e.right ? e.right : o.right}px` : "",
|
|
1933
1933
|
top: u.value.indexOf("top") > -1 ? `${y}px` : "",
|
|
1934
|
-
bottom: u.value.indexOf("bottom") > -1 ? `${
|
|
1934
|
+
bottom: u.value.indexOf("bottom") > -1 ? `${f}px` : ""
|
|
1935
1935
|
};
|
|
1936
1936
|
return u.value.indexOf("center") > -1 && (S.left = "50%", S.marginLeft = "calc(-24rem / 2)", u.value === "center-center" && (S.top = "50%", S.transform = "translate(-50%, -50%)")), S;
|
|
1937
1937
|
});
|
|
1938
|
-
function
|
|
1938
|
+
function d(f) {
|
|
1939
1939
|
t.emit("close");
|
|
1940
1940
|
}
|
|
1941
1941
|
s.value && setTimeout(() => {
|
|
1942
|
-
|
|
1942
|
+
d();
|
|
1943
1943
|
}, s.value), t.expose({
|
|
1944
|
-
closeToast:
|
|
1944
|
+
closeToast: d,
|
|
1945
1945
|
container: i,
|
|
1946
1946
|
notifyPosition: u
|
|
1947
1947
|
});
|
|
1948
|
-
function
|
|
1949
|
-
|
|
1948
|
+
function p(f, y) {
|
|
1949
|
+
d();
|
|
1950
1950
|
}
|
|
1951
1951
|
return () => x("div", {
|
|
1952
1952
|
class: n.value,
|
|
1953
|
-
style:
|
|
1953
|
+
style: c.value,
|
|
1954
1954
|
ref: i
|
|
1955
1955
|
}, [x(Gt, {
|
|
1956
1956
|
options: a.value,
|
|
1957
1957
|
showCloseButton: r.value,
|
|
1958
1958
|
animate: e.animate,
|
|
1959
|
-
onClose: (
|
|
1959
|
+
onClose: (f) => p(f, a.value)
|
|
1960
1960
|
}, null)]);
|
|
1961
1961
|
}
|
|
1962
1962
|
});
|
|
@@ -1983,10 +1983,10 @@ class Rn {
|
|
|
1983
1983
|
}, 220);
|
|
1984
1984
|
}
|
|
1985
1985
|
if (i.position.indexOf("top") > -1) {
|
|
1986
|
-
const
|
|
1987
|
-
if (
|
|
1988
|
-
const
|
|
1989
|
-
i.top =
|
|
1986
|
+
const c = n.getNotifyInstances(i.position), d = c[c.length - 1];
|
|
1987
|
+
if (d) {
|
|
1988
|
+
const p = d.value.container.getBoundingClientRect();
|
|
1989
|
+
i.top = p.bottom;
|
|
1990
1990
|
}
|
|
1991
1991
|
}
|
|
1992
1992
|
return Vt(() => {
|
|
@@ -2037,14 +2037,14 @@ class Rn {
|
|
|
2037
2037
|
buildNotifyProps(t, n) {
|
|
2038
2038
|
let o = "", i = "", a, r, u;
|
|
2039
2039
|
typeof n == "string" ? o = n : n && (o = n.message || "", i = n.title || "", r = n.position || null, u = n.showCloseButton != null ? n.showCloseButton : null, a = n.timeout != null ? n.timeout : null);
|
|
2040
|
-
const
|
|
2040
|
+
const c = {
|
|
2041
2041
|
options: {
|
|
2042
2042
|
type: t,
|
|
2043
2043
|
message: o,
|
|
2044
2044
|
title: i
|
|
2045
2045
|
}
|
|
2046
2046
|
};
|
|
2047
|
-
return r != null && (
|
|
2047
|
+
return r != null && (c.position = r), u != null && (c.showCloseButton = u), a != null && (c.timeout = a), c;
|
|
2048
2048
|
}
|
|
2049
2049
|
info(t) {
|
|
2050
2050
|
const n = this.buildNotifyProps("info", t);
|
|
@@ -2079,7 +2079,7 @@ Ft.install = (e) => {
|
|
|
2079
2079
|
};
|
|
2080
2080
|
function Nn(e, t, n, o, i) {
|
|
2081
2081
|
var it;
|
|
2082
|
-
const a = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(),
|
|
2082
|
+
const a = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), d = _([]), p = _([]), f = Dn(e, i), { generateGroupData: y, groupFields: S, shouldGroupingData: D } = f, M = _(e.data), v = tr(e, M, o, i), {
|
|
2083
2083
|
generateHierarchyData: g,
|
|
2084
2084
|
hasRealChildren: F,
|
|
2085
2085
|
insertSibling: m,
|
|
@@ -2109,7 +2109,7 @@ function Nn(e, t, n, o, i) {
|
|
|
2109
2109
|
h.value = M.value, J.value && ($.value = h.value.length), D.value && (h.value = y(S.value, M.value, t)), B = R.value.reduce((Ce, we) => (Ce.set(we, 0), Ce), B);
|
|
2110
2110
|
const N = 0, G = L(), X = (U.value - 1) * G, ve = X > h.value.length - 1 ? N : X, Fe = Math.min(ve + G, h.value.length);
|
|
2111
2111
|
let _e = 0;
|
|
2112
|
-
const
|
|
2112
|
+
const ge = [];
|
|
2113
2113
|
if (h.value.length) {
|
|
2114
2114
|
I(h.value);
|
|
2115
2115
|
const Ce = b.value !== e.idField;
|
|
@@ -2118,50 +2118,50 @@ function Nn(e, t, n, o, i) {
|
|
|
2118
2118
|
Se.__fv_data_grid_group_row__ ? (_e = 0, Se.__fv_data_index__ = "") : Se.__fv_data_grid_group_summary__ ? Se.__fv_data_index__ = "" : (_e++, Se.__fv_data_index__ = _e + (U.value - 1) * G), Se.__fv_index__ = we, Se.__fv_visible_index__ = we, e.rowOption && e.rowOption.disabledField && (Se.__fv_disabled__ = Se[(xe = e.rowOption) == null ? void 0 : xe.disabledField]), Ce && (Se[b.value] = we), R.value.forEach((He) => {
|
|
2119
2119
|
const bt = B.get(He) || 0;
|
|
2120
2120
|
B.set(He, bt + Se[He]);
|
|
2121
|
-
}),
|
|
2121
|
+
}), ge.push(Se);
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
|
-
return E.value && g(
|
|
2124
|
+
return E.value && g(ge), C.value = [...ge], ge;
|
|
2125
2125
|
}
|
|
2126
2126
|
const H = _(se()), Z = j(() => H.value.filter((N) => N.__fv_visible__ !== !1));
|
|
2127
2127
|
function ue() {
|
|
2128
2128
|
Z.value.forEach((N, G) => (N.__fv_visible_index__ = G, N));
|
|
2129
2129
|
}
|
|
2130
2130
|
function ee(N, G, X = !1) {
|
|
2131
|
-
const ve = (X ? se() : [...C.value]).filter((
|
|
2131
|
+
const ve = (X ? se() : [...C.value]).filter((ge) => n.apply(ge)), Fe = N && N.length ? ve.filter((ge) => N.reduce((xe, Ce) => xe && Ce.filter(ge), !0)) : ve, _e = G && G.length ? Fe.sort((ge, xe) => {
|
|
2132
2132
|
const Ce = [...G], we = Ce.shift();
|
|
2133
|
-
let Se = we.compare(
|
|
2133
|
+
let Se = we.compare(ge[we.field], xe[we.field]);
|
|
2134
2134
|
for (; Se === 0 && Ce.length !== 0; ) {
|
|
2135
2135
|
const He = Ce.shift();
|
|
2136
|
-
He && (Se = He.compare(
|
|
2136
|
+
He && (Se = He.compare(ge[He.field], xe[He.field]));
|
|
2137
2137
|
}
|
|
2138
2138
|
return Se;
|
|
2139
2139
|
}) : Fe;
|
|
2140
|
-
return H.value = _e.map((
|
|
2141
|
-
if (
|
|
2142
|
-
const Ce = `group_of_${
|
|
2143
|
-
|
|
2140
|
+
return H.value = _e.map((ge, xe) => {
|
|
2141
|
+
if (ge.__fv_data_grid_group_row__) {
|
|
2142
|
+
const Ce = `group_of_${ge.__fv_data_grid_group_field__}_${ge.__fv_data_grid_group_value__}`;
|
|
2143
|
+
ge.__fv_data_grid_group_collapse__ = !!a.get(Ce);
|
|
2144
2144
|
}
|
|
2145
|
-
return
|
|
2145
|
+
return ge.__fv_index__ = xe, ge.__fv_visible_index__ = xe, ge;
|
|
2146
2146
|
}), H.value;
|
|
2147
2147
|
}
|
|
2148
2148
|
function W(N) {
|
|
2149
|
-
return
|
|
2149
|
+
return c.clear(), p.value = N, p.value.reduce((G, X) => (G.set(X.field, X), G), c), ee([], p.value);
|
|
2150
2150
|
}
|
|
2151
2151
|
function q(N, G) {
|
|
2152
|
-
return
|
|
2152
|
+
return c.set(N, G), p.value = Array.from(c.values()), ee([], p.value);
|
|
2153
2153
|
}
|
|
2154
2154
|
function me(N) {
|
|
2155
|
-
return
|
|
2155
|
+
return c.delete(N), p.value = Array.from(c.values()), ee([], p.value);
|
|
2156
2156
|
}
|
|
2157
2157
|
function fe(N, G) {
|
|
2158
|
-
return r.set(N, G),
|
|
2158
|
+
return r.set(N, G), d.value = Array.from(r.values()), ee([], Array.from(c.values()));
|
|
2159
2159
|
}
|
|
2160
2160
|
function Ne(N) {
|
|
2161
|
-
return r.delete(N),
|
|
2161
|
+
return r.delete(N), d.value = Array.from(r.values()), ee([], Array.from(c.values()), !0);
|
|
2162
2162
|
}
|
|
2163
2163
|
function Le() {
|
|
2164
|
-
return r.clear(),
|
|
2164
|
+
return r.clear(), d.value = [], ee([], Array.from(c.values()), !0);
|
|
2165
2165
|
}
|
|
2166
2166
|
function Be(N, G) {
|
|
2167
2167
|
const X = `group_of_${N}_${G}`;
|
|
@@ -2173,11 +2173,11 @@ function Nn(e, t, n, o, i) {
|
|
|
2173
2173
|
fieldType: "string",
|
|
2174
2174
|
filterValue: G,
|
|
2175
2175
|
filter: ce
|
|
2176
|
-
}), ee(Array.from(u.values()), Array.from(
|
|
2176
|
+
}), ee(Array.from(u.values()), Array.from(c.values()));
|
|
2177
2177
|
}
|
|
2178
2178
|
function ke(N, G) {
|
|
2179
2179
|
const X = `group_of_${N}_${G}`;
|
|
2180
|
-
return a.set(X, !1), u.delete(`collapse_${N}_${G}`), ee(Array.from(u.values()), Array.from(
|
|
2180
|
+
return a.set(X, !1), u.delete(`collapse_${N}_${G}`), ee(Array.from(u.values()), Array.from(c.values()), !0);
|
|
2181
2181
|
}
|
|
2182
2182
|
function We(N) {
|
|
2183
2183
|
const G = N.raw[b.value], X = (ce) => !ce.__fv_parents__.has(G);
|
|
@@ -2187,32 +2187,32 @@ function Nn(e, t, n, o, i) {
|
|
|
2187
2187
|
fieldType: "string",
|
|
2188
2188
|
filterValue: String(G),
|
|
2189
2189
|
filter: X
|
|
2190
|
-
}), ee(Array.from(s.values()), Array.from(
|
|
2190
|
+
}), ee(Array.from(s.values()), Array.from(c.values())), g(H.value);
|
|
2191
2191
|
}
|
|
2192
2192
|
function $e(N) {
|
|
2193
2193
|
const G = N[b.value];
|
|
2194
2194
|
s.delete(`fold_${G}`);
|
|
2195
2195
|
}
|
|
2196
2196
|
function De(N) {
|
|
2197
|
-
$e(N.raw), ee(Array.from(s.values()), Array.from(
|
|
2197
|
+
$e(N.raw), ee(Array.from(s.values()), Array.from(c.values()), !0), g(H.value);
|
|
2198
2198
|
}
|
|
2199
2199
|
function ye() {
|
|
2200
2200
|
const N = se();
|
|
2201
|
-
H.value = N, e.hierarchy && (ee(Array.from(s.values()), Array.from(
|
|
2201
|
+
H.value = N, e.hierarchy && (ee(Array.from(s.values()), Array.from(c.values())), g(H.value));
|
|
2202
2202
|
}
|
|
2203
2203
|
function Y(N) {
|
|
2204
2204
|
const X = N && N.length && N[0].children ? T(N) : N;
|
|
2205
2205
|
M.value = X, ye();
|
|
2206
2206
|
}
|
|
2207
2207
|
function de(N, G, X) {
|
|
2208
|
-
return (N && N.length ? H.value.filter((ve, Fe) => N.reduce((_e,
|
|
2208
|
+
return (N && N.length ? H.value.filter((ve, Fe) => N.reduce((_e, ge) => _e && ge.filter(ve), !0)) : H.value).slice(G, X);
|
|
2209
2209
|
}
|
|
2210
2210
|
function je(N) {
|
|
2211
2211
|
const G = L(), X = N * G;
|
|
2212
2212
|
0 < X && X <= $.value && (U.value = N, ye());
|
|
2213
2213
|
}
|
|
2214
2214
|
function Pe(N) {
|
|
2215
|
-
M.value.push(
|
|
2215
|
+
M.value.push(ft(N)), H.value = se();
|
|
2216
2216
|
}
|
|
2217
2217
|
function Qe(N = 0) {
|
|
2218
2218
|
if (!(N > -1))
|
|
@@ -2242,7 +2242,7 @@ function Nn(e, t, n, o, i) {
|
|
|
2242
2242
|
}
|
|
2243
2243
|
function Ze() {
|
|
2244
2244
|
const N = u.size > 0 ? Array.from(u.values()) : [];
|
|
2245
|
-
return ee(N, Array.from(
|
|
2245
|
+
return ee(N, Array.from(c.values()));
|
|
2246
2246
|
}
|
|
2247
2247
|
function Ue(N) {
|
|
2248
2248
|
A.value && (A.value.size = N, ye());
|
|
@@ -2271,7 +2271,7 @@ function Nn(e, t, n, o, i) {
|
|
|
2271
2271
|
dataView: H,
|
|
2272
2272
|
editDataItem: nt,
|
|
2273
2273
|
expand: ke,
|
|
2274
|
-
filters:
|
|
2274
|
+
filters: d,
|
|
2275
2275
|
fold: We,
|
|
2276
2276
|
getRange: de,
|
|
2277
2277
|
getSelectionItems: ot,
|
|
@@ -2291,7 +2291,7 @@ function Nn(e, t, n, o, i) {
|
|
|
2291
2291
|
removeSorter: me,
|
|
2292
2292
|
reOrderVisibleIndex: ue,
|
|
2293
2293
|
setSorters: W,
|
|
2294
|
-
sorters:
|
|
2294
|
+
sorters: p,
|
|
2295
2295
|
summaries: B,
|
|
2296
2296
|
totalItems: $,
|
|
2297
2297
|
unFold: De,
|
|
@@ -2352,11 +2352,11 @@ class Pn {
|
|
|
2352
2352
|
return t[n[0]];
|
|
2353
2353
|
}
|
|
2354
2354
|
getTextValue(t) {
|
|
2355
|
-
const n = t.split("."), o = this.value.split(",").map((i) => this.getPropValue(i,
|
|
2355
|
+
const n = t.split("."), o = this.value.split(",").map((i) => this.getPropValue(i, ft(n)));
|
|
2356
2356
|
return o && o.length ? o.join(",") : "";
|
|
2357
2357
|
}
|
|
2358
2358
|
getValue() {
|
|
2359
|
-
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o,
|
|
2359
|
+
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, ft(t)));
|
|
2360
2360
|
return n && n.length ? n.join(",") : "";
|
|
2361
2361
|
}
|
|
2362
2362
|
getDisplayText() {
|
|
@@ -2449,13 +2449,13 @@ class Wn {
|
|
|
2449
2449
|
this.value = t.value;
|
|
2450
2450
|
}
|
|
2451
2451
|
clear() {
|
|
2452
|
-
this.value =
|
|
2452
|
+
this.value = "";
|
|
2453
2453
|
}
|
|
2454
2454
|
getValue() {
|
|
2455
2455
|
return this.value;
|
|
2456
2456
|
}
|
|
2457
2457
|
getDisplayText() {
|
|
2458
|
-
return this.value
|
|
2458
|
+
return this.value;
|
|
2459
2459
|
}
|
|
2460
2460
|
// setValue(data: { value: string; displayText: string }) {
|
|
2461
2461
|
// // this.displayText = data.dispalyText;
|
|
@@ -2471,7 +2471,7 @@ class Wn {
|
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
2473
|
class ar {
|
|
2474
|
-
constructor(t = { value:
|
|
2474
|
+
constructor(t = { value: "", displayText: "", displayField: "", isInputText: !1 }) {
|
|
2475
2475
|
Q(this, "editorType", "input-group");
|
|
2476
2476
|
// 通过弹窗返回的若干个值对象构成的数组
|
|
2477
2477
|
Q(this, "value");
|
|
@@ -2485,7 +2485,7 @@ class ar {
|
|
|
2485
2485
|
this.value = t.value, this.displayText = t.displayText, this.valueField = t.displayField, this.isInputText = t.isInputText;
|
|
2486
2486
|
}
|
|
2487
2487
|
clear() {
|
|
2488
|
-
this.value =
|
|
2488
|
+
this.value = "", this.displayText = "", this.valueField = "";
|
|
2489
2489
|
}
|
|
2490
2490
|
getPropValue(t, n) {
|
|
2491
2491
|
if (n.length > 1) {
|
|
@@ -2495,12 +2495,11 @@ class ar {
|
|
|
2495
2495
|
return t[n[0]];
|
|
2496
2496
|
}
|
|
2497
2497
|
getTextValue(t) {
|
|
2498
|
-
const n = t.split("."), o = this.value.map((i) => this.getPropValue(i,
|
|
2498
|
+
const n = t.split("."), o = this.value.map((i) => this.getPropValue(i, ft(n)));
|
|
2499
2499
|
return o && o.length ? o.join(",") : "";
|
|
2500
2500
|
}
|
|
2501
2501
|
getValue() {
|
|
2502
|
-
|
|
2503
|
-
return n && n.length ? n.join(",") : "";
|
|
2502
|
+
return this.value;
|
|
2504
2503
|
}
|
|
2505
2504
|
getDisplayText() {
|
|
2506
2505
|
return this.getValue();
|
|
@@ -2722,64 +2721,64 @@ function Xn() {
|
|
|
2722
2721
|
}
|
|
2723
2722
|
function Kn(e, t) {
|
|
2724
2723
|
const n = _(e.fields), o = _([]), i = /* @__PURE__ */ new Map(), { createConditionValue: a } = Xn();
|
|
2725
|
-
function r(
|
|
2726
|
-
switch (
|
|
2724
|
+
function r(d) {
|
|
2725
|
+
switch (d.editor ? d.editor.type : "input-group") {
|
|
2727
2726
|
case "date-range":
|
|
2728
|
-
|
|
2727
|
+
d.editor.type = "date-picker";
|
|
2729
2728
|
break;
|
|
2730
2729
|
case "datetime-range":
|
|
2731
|
-
|
|
2730
|
+
d.editor.type = "datetime-picker";
|
|
2732
2731
|
break;
|
|
2733
2732
|
case "number-range":
|
|
2734
|
-
|
|
2733
|
+
d.editor.type = "number-spinner";
|
|
2735
2734
|
break;
|
|
2736
2735
|
}
|
|
2737
|
-
return
|
|
2736
|
+
return d.editor;
|
|
2738
2737
|
}
|
|
2739
|
-
function u(
|
|
2740
|
-
return
|
|
2738
|
+
function u(d) {
|
|
2739
|
+
return d.map((f) => Object.assign({}, f)).map((f) => (f.editor = r(f), f));
|
|
2741
2740
|
}
|
|
2742
|
-
function s(
|
|
2743
|
-
n.value.reduce((
|
|
2741
|
+
function s(d = !0) {
|
|
2742
|
+
n.value.reduce((p, f) => (d || (f.editor = r(f)), p.set(f.labelCode, f), p), i);
|
|
2744
2743
|
}
|
|
2745
|
-
function
|
|
2746
|
-
return
|
|
2747
|
-
if (
|
|
2748
|
-
const
|
|
2749
|
-
|
|
2744
|
+
function c(d) {
|
|
2745
|
+
return d.forEach((p) => {
|
|
2746
|
+
if (p) {
|
|
2747
|
+
const f = i.get(p.fieldCode);
|
|
2748
|
+
p.value = a(f.editor.type, p.value);
|
|
2750
2749
|
}
|
|
2751
|
-
}),
|
|
2750
|
+
}), d;
|
|
2752
2751
|
}
|
|
2753
|
-
return { convertToSingleControl: u, fields: n, fieldMap: i, fieldConditions: o, loadFieldConfigs: s, initialConditionValue:
|
|
2752
|
+
return { convertToSingleControl: u, fields: n, fieldMap: i, fieldConditions: o, loadFieldConfigs: s, initialConditionValue: c };
|
|
2754
2753
|
}
|
|
2755
2754
|
function rr(e, t, n) {
|
|
2756
2755
|
const o = _(null), i = _(n), a = _(0);
|
|
2757
|
-
function r(
|
|
2758
|
-
let
|
|
2756
|
+
function r(d, p) {
|
|
2757
|
+
let f = null;
|
|
2759
2758
|
return function() {
|
|
2760
2759
|
const y = arguments;
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
}, 200)) : (
|
|
2764
|
-
|
|
2760
|
+
f ? (clearTimeout(f), f = setTimeout(() => {
|
|
2761
|
+
f = null, d(...y);
|
|
2762
|
+
}, 200)) : (d(...y), f = setTimeout(() => {
|
|
2763
|
+
f = null;
|
|
2765
2764
|
}, 200));
|
|
2766
2765
|
};
|
|
2767
2766
|
}
|
|
2768
2767
|
function u() {
|
|
2769
|
-
i.value && (o.value = new ResizeObserver(r((
|
|
2770
|
-
const
|
|
2771
|
-
a.value =
|
|
2768
|
+
i.value && (o.value = new ResizeObserver(r((d) => {
|
|
2769
|
+
const p = d[0];
|
|
2770
|
+
a.value = p.contentRect.width;
|
|
2772
2771
|
})), o.value.observe(i.value));
|
|
2773
2772
|
}
|
|
2774
|
-
function s(
|
|
2775
|
-
let
|
|
2776
|
-
return
|
|
2773
|
+
function s(d) {
|
|
2774
|
+
let f = "col-12";
|
|
2775
|
+
return d > 250 * 6 ? f = "col-2" : d > 250 * 4 ? f = "col-3" : d > 250 * 3 ? f = "col-4" : d > 250 * 2 && (f = "col-6"), f;
|
|
2777
2776
|
}
|
|
2778
|
-
const
|
|
2779
|
-
return
|
|
2780
|
-
i.value =
|
|
2777
|
+
const c = j(() => s(a.value));
|
|
2778
|
+
return he([n], ([d]) => {
|
|
2779
|
+
i.value = d, u();
|
|
2781
2780
|
}), {
|
|
2782
|
-
conditionClass:
|
|
2781
|
+
conditionClass: c,
|
|
2783
2782
|
resizeObserver: o
|
|
2784
2783
|
};
|
|
2785
2784
|
}
|
|
@@ -2794,17 +2793,17 @@ const on = /* @__PURE__ */ Me({
|
|
|
2794
2793
|
initialConditionValue: r,
|
|
2795
2794
|
fieldMap: u,
|
|
2796
2795
|
loadFieldConfigs: s
|
|
2797
|
-
} = a,
|
|
2798
|
-
conditionClass:
|
|
2799
|
-
resizeObserver:
|
|
2800
|
-
} =
|
|
2796
|
+
} = a, c = rr(e, t, n), {
|
|
2797
|
+
conditionClass: d,
|
|
2798
|
+
resizeObserver: p
|
|
2799
|
+
} = c;
|
|
2801
2800
|
s(!0), r(i.value), cn(() => {
|
|
2802
2801
|
var M;
|
|
2803
|
-
(M =
|
|
2804
|
-
}),
|
|
2802
|
+
(M = p.value) == null || M.unobserve(n.value);
|
|
2803
|
+
}), he(() => e.conditions, () => {
|
|
2805
2804
|
i.value = e.conditions, r(i.value);
|
|
2806
2805
|
});
|
|
2807
|
-
const
|
|
2806
|
+
const f = j(() => ({
|
|
2808
2807
|
// row: true,
|
|
2809
2808
|
"f-utils-flex-row-wrap": !0,
|
|
2810
2809
|
"farris-form": !0,
|
|
@@ -2840,7 +2839,7 @@ const on = /* @__PURE__ */ Me({
|
|
|
2840
2839
|
});
|
|
2841
2840
|
}
|
|
2842
2841
|
return () => ln(x("div", {
|
|
2843
|
-
class:
|
|
2842
|
+
class: f.value,
|
|
2844
2843
|
key: o.value,
|
|
2845
2844
|
ref: n
|
|
2846
2845
|
}, [D()]), [[Fo("area-response")]]);
|
|
@@ -2907,8 +2906,8 @@ class ur {
|
|
|
2907
2906
|
}), n.contents = [o];
|
|
2908
2907
|
const { selectedFields: a } = t;
|
|
2909
2908
|
a == null || a.forEach((u) => {
|
|
2910
|
-
const s =
|
|
2911
|
-
|
|
2909
|
+
const s = ft(u), c = this.resolveControlClassByFormColumns(t), d = this.controlCreatorUtils.setFormFieldProperty(s, "", c);
|
|
2910
|
+
d && i.push(d);
|
|
2912
2911
|
});
|
|
2913
2912
|
const { templateId: r } = this.formSchemaUtils.getFormSchema().module;
|
|
2914
2913
|
return r === "double-list-in-tab-template" && (n.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", n.fill = !0), [n];
|
|
@@ -2972,17 +2971,17 @@ class ur {
|
|
|
2972
2971
|
}
|
|
2973
2972
|
}
|
|
2974
2973
|
function cr(e, t, n, o) {
|
|
2975
|
-
var a, r, u, s,
|
|
2974
|
+
var a, r, u, s, c, d;
|
|
2976
2975
|
const i = n.parentComponentInstance;
|
|
2977
2976
|
if (i && o) {
|
|
2978
|
-
const
|
|
2977
|
+
const p = (a = i.schema) == null ? void 0 : a.type, y = {
|
|
2979
2978
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
2980
2979
|
componentName: ((r = n.bindingSourceContext) == null ? void 0 : r.entityTitle) || ((s = (u = n.bindingSourceContext) == null ? void 0 : u.bindingEntity) == null ? void 0 : s.name) || "标题",
|
|
2981
2980
|
componentType: "form",
|
|
2982
|
-
formColumns:
|
|
2981
|
+
formColumns: p === "splitter-pane" ? 1 : 4,
|
|
2983
2982
|
parentContainerId: i.schema.id,
|
|
2984
|
-
bindTo: ((
|
|
2985
|
-
selectedFields: (
|
|
2983
|
+
bindTo: ((c = n.bindingSourceContext) == null ? void 0 : c.bindTo) || "/",
|
|
2984
|
+
selectedFields: (d = n.bindingSourceContext) == null ? void 0 : d.bindingEntityFields
|
|
2986
2985
|
};
|
|
2987
2986
|
return new ur(e, o).createComponent(y);
|
|
2988
2987
|
} else
|
|
@@ -3035,7 +3034,7 @@ const fr = "https://json-schema.org/draft/2020-12/schema", pr = "https://farris-
|
|
|
3035
3034
|
customClass: { type: String, default: "" },
|
|
3036
3035
|
customStyle: { type: String, defaut: "" }
|
|
3037
3036
|
};
|
|
3038
|
-
|
|
3037
|
+
lt(Cr, br, Jt, cr);
|
|
3039
3038
|
const wr = "https://json-schema.org/draft/2020-12/schema", _r = "https://farris-design.gitee.io/form-group.schema.json", Sr = "form-group", xr = "A Farris Input Component", Tr = "object", Fr = {
|
|
3040
3039
|
id: {
|
|
3041
3040
|
description: "The unique identifier for a form group",
|
|
@@ -3108,9 +3107,10 @@ const wr = "https://json-schema.org/draft/2020-12/schema", _r = "https://farris-
|
|
|
3108
3107
|
visible: { type: Boolean, default: !0 },
|
|
3109
3108
|
required: { type: Boolean, default: !1 },
|
|
3110
3109
|
showLabel: { type: Boolean, default: !0 },
|
|
3111
|
-
type: { type: String, default: "input-group" }
|
|
3110
|
+
type: { type: String, default: "input-group" },
|
|
3111
|
+
componentId: { type: String, default: "" }
|
|
3112
3112
|
};
|
|
3113
|
-
|
|
3113
|
+
lt(
|
|
3114
3114
|
Jn,
|
|
3115
3115
|
Qn,
|
|
3116
3116
|
Jt,
|
|
@@ -3207,7 +3207,7 @@ class Ir {
|
|
|
3207
3207
|
const o = n && n.parent && n.parent.schema;
|
|
3208
3208
|
if (!o)
|
|
3209
3209
|
return;
|
|
3210
|
-
const i = o.contents.findIndex((r) => r.id === t), a =
|
|
3210
|
+
const i = o.contents.findIndex((r) => r.id === t), a = ft(o.contents[i]);
|
|
3211
3211
|
o.contents.splice(i, 1), o.contents.splice(i, 0, a);
|
|
3212
3212
|
}
|
|
3213
3213
|
}
|
|
@@ -3267,7 +3267,7 @@ function Vr(e) {
|
|
|
3267
3267
|
let t;
|
|
3268
3268
|
e.className.includes("dgComponentSelected") ? t = e : t = e.querySelector(".dgComponentSelected"), t && Zn(t);
|
|
3269
3269
|
}
|
|
3270
|
-
var
|
|
3270
|
+
var ct = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3271
3271
|
function Tt(e) {
|
|
3272
3272
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
3273
3273
|
}
|
|
@@ -3278,22 +3278,22 @@ var Br = { exports: {} };
|
|
|
3278
3278
|
})(function() {
|
|
3279
3279
|
return (/* @__PURE__ */ function() {
|
|
3280
3280
|
function n(o, i, a) {
|
|
3281
|
-
function r(
|
|
3282
|
-
if (!i[
|
|
3283
|
-
if (!o[
|
|
3284
|
-
var
|
|
3285
|
-
if (!
|
|
3286
|
-
if (u) return u(
|
|
3287
|
-
var
|
|
3288
|
-
throw
|
|
3281
|
+
function r(c, d) {
|
|
3282
|
+
if (!i[c]) {
|
|
3283
|
+
if (!o[c]) {
|
|
3284
|
+
var p = typeof Tt == "function" && Tt;
|
|
3285
|
+
if (!d && p) return p(c, !0);
|
|
3286
|
+
if (u) return u(c, !0);
|
|
3287
|
+
var f = new Error("Cannot find module '" + c + "'");
|
|
3288
|
+
throw f.code = "MODULE_NOT_FOUND", f;
|
|
3289
3289
|
}
|
|
3290
|
-
var y = i[
|
|
3291
|
-
o[
|
|
3292
|
-
var D = o[
|
|
3290
|
+
var y = i[c] = { exports: {} };
|
|
3291
|
+
o[c][0].call(y.exports, function(S) {
|
|
3292
|
+
var D = o[c][1][S];
|
|
3293
3293
|
return r(D || S);
|
|
3294
3294
|
}, y, y.exports, n, o, i, a);
|
|
3295
3295
|
}
|
|
3296
|
-
return i[
|
|
3296
|
+
return i[c].exports;
|
|
3297
3297
|
}
|
|
3298
3298
|
for (var u = typeof Tt == "function" && Tt, s = 0; s < a.length; s++) r(a[s]);
|
|
3299
3299
|
return r;
|
|
@@ -3302,30 +3302,30 @@ var Br = { exports: {} };
|
|
|
3302
3302
|
}())({
|
|
3303
3303
|
1: [function(n, o, i) {
|
|
3304
3304
|
var a = {}, r = "(?:^|\\s)", u = "(?:\\s|$)";
|
|
3305
|
-
function s(
|
|
3306
|
-
var
|
|
3307
|
-
return
|
|
3305
|
+
function s(p) {
|
|
3306
|
+
var f = a[p];
|
|
3307
|
+
return f ? f.lastIndex = 0 : a[p] = f = new RegExp(r + p + u, "g"), f;
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3310
|
-
var y =
|
|
3311
|
-
y.length ? s(
|
|
3309
|
+
function c(p, f) {
|
|
3310
|
+
var y = p.className;
|
|
3311
|
+
y.length ? s(f).test(y) || (p.className += " " + f) : p.className = f;
|
|
3312
3312
|
}
|
|
3313
|
-
function p
|
|
3314
|
-
|
|
3313
|
+
function d(p, f) {
|
|
3314
|
+
p.className = p.className.replace(s(f), " ").trim();
|
|
3315
3315
|
}
|
|
3316
3316
|
o.exports = {
|
|
3317
|
-
add:
|
|
3318
|
-
rm:
|
|
3317
|
+
add: c,
|
|
3318
|
+
rm: d
|
|
3319
3319
|
};
|
|
3320
3320
|
}, {}],
|
|
3321
3321
|
2: [function(n, o, i) {
|
|
3322
3322
|
(function(a) {
|
|
3323
|
-
var r = n("contra/emitter"), u = n("crossvent"), s = n("./classes"),
|
|
3324
|
-
function
|
|
3323
|
+
var r = n("contra/emitter"), u = n("crossvent"), s = n("./classes"), c = document, d = c.documentElement;
|
|
3324
|
+
function p(h, C) {
|
|
3325
3325
|
var k = arguments.length;
|
|
3326
3326
|
k === 1 && Array.isArray(h) === !1 && (C = h, h = []);
|
|
3327
3327
|
var T, O, R, B, $, A, L, U, J, ie = null, se, H, Z = !1, ue = 0, ee, W = C || {};
|
|
3328
|
-
W.moves === void 0 && (W.moves = g), W.accepts === void 0 && (W.accepts = g), W.invalid === void 0 && (W.invalid = je), W.containers === void 0 && (W.containers = h || []), W.isContainer === void 0 && (W.isContainer = v), 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 =
|
|
3328
|
+
W.moves === void 0 && (W.moves = g), W.accepts === void 0 && (W.accepts = g), W.invalid === void 0 && (W.invalid = je), W.containers === void 0 && (W.containers = h || []), W.isContainer === void 0 && (W.isContainer = v), W.copy === void 0 && (W.copy = !1), W.copySortSource === void 0 && (W.copySortSource = !1), W.revertOnSpill === void 0 && (W.revertOnSpill = !1), W.removeOnSpill === void 0 && (W.removeOnSpill = !1), W.direction === void 0 && (W.direction = "vertical"), W.ignoreInputTextSelection === void 0 && (W.ignoreInputTextSelection = !0), W.mirrorContainer === void 0 && (W.mirrorContainer = c.body);
|
|
3329
3329
|
var q = r({
|
|
3330
3330
|
containers: W.containers,
|
|
3331
3331
|
start: Y,
|
|
@@ -3342,15 +3342,15 @@ var Br = { exports: {} };
|
|
|
3342
3342
|
}
|
|
3343
3343
|
function fe(P) {
|
|
3344
3344
|
var z = P ? "remove" : "add";
|
|
3345
|
-
S(
|
|
3345
|
+
S(d, z, "mousedown", We), S(d, z, "mouseup", Ae);
|
|
3346
3346
|
}
|
|
3347
3347
|
function Ne(P) {
|
|
3348
3348
|
var z = P ? "remove" : "add";
|
|
3349
|
-
S(
|
|
3349
|
+
S(d, z, "mousemove", $e);
|
|
3350
3350
|
}
|
|
3351
3351
|
function Le(P) {
|
|
3352
3352
|
var z = P ? "remove" : "add";
|
|
3353
|
-
u[z](
|
|
3353
|
+
u[z](d, "selectstart", ke), u[z](d, "click", ke);
|
|
3354
3354
|
}
|
|
3355
3355
|
function Be() {
|
|
3356
3356
|
fe(!0), Ae({});
|
|
@@ -3374,7 +3374,7 @@ var Br = { exports: {} };
|
|
|
3374
3374
|
}
|
|
3375
3375
|
if (!(P.clientX !== void 0 && Math.abs(P.clientX - B) <= (W.slideFactorX || 0) && P.clientY !== void 0 && Math.abs(P.clientY - $) <= (W.slideFactorY || 0))) {
|
|
3376
3376
|
if (W.ignoreInputTextSelection) {
|
|
3377
|
-
var z = V("clientX", P) || 0, K = V("clientY", P) || 0, le =
|
|
3377
|
+
var z = V("clientX", P) || 0, K = V("clientY", P) || 0, le = c.elementFromPoint(z, K);
|
|
3378
3378
|
if (E(le))
|
|
3379
3379
|
return;
|
|
3380
3380
|
}
|
|
@@ -3470,26 +3470,26 @@ var Br = { exports: {} };
|
|
|
3470
3470
|
var z = V("clientX", P) || 0, K = V("clientY", P) || 0;
|
|
3471
3471
|
T.style.left = z - 2 + "px", T.style.top = K - 2 + "px";
|
|
3472
3472
|
var le = U || R, pe = M(T, z, K), be = nt(pe, z, K), at = be !== null && be !== ie;
|
|
3473
|
-
(at || be === null) && (Ye(), ie = be,
|
|
3473
|
+
(at || be === null) && (Ye(), ie = be, ut()), Se(pe, K);
|
|
3474
3474
|
var qe = w(le);
|
|
3475
3475
|
if (be === O && U && !W.copySortSource) {
|
|
3476
3476
|
qe && qe.removeChild(le);
|
|
3477
3477
|
return;
|
|
3478
3478
|
}
|
|
3479
|
-
var et,
|
|
3480
|
-
if (Z =
|
|
3481
|
-
et = He(be,
|
|
3479
|
+
var et, st = _e(be, pe);
|
|
3480
|
+
if (Z = ge(st, be), st !== null)
|
|
3481
|
+
et = He(be, st, z, K);
|
|
3482
3482
|
else if (W.revertOnSpill === !0 && !U)
|
|
3483
3483
|
et = A, be = O;
|
|
3484
3484
|
else {
|
|
3485
3485
|
U && qe && qe.removeChild(le), U && H && (H.style.display = "none");
|
|
3486
3486
|
return;
|
|
3487
3487
|
}
|
|
3488
|
-
H.style.display = "block", it(et, le, at), et ? Ce(
|
|
3488
|
+
H.style.display = "block", it(et, le, at), et ? Ce(st, et) : we(be);
|
|
3489
3489
|
function Ee(Re) {
|
|
3490
3490
|
q.emit(Re, le, ie, O);
|
|
3491
3491
|
}
|
|
3492
|
-
function
|
|
3492
|
+
function ut() {
|
|
3493
3493
|
at && Ee("over");
|
|
3494
3494
|
}
|
|
3495
3495
|
function Ye() {
|
|
@@ -3506,7 +3506,7 @@ var Br = { exports: {} };
|
|
|
3506
3506
|
q.dragging && s.add(P, "gu-hide");
|
|
3507
3507
|
}
|
|
3508
3508
|
function X() {
|
|
3509
|
-
T || (T = document.createElement("div"), T.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", T.innerHTML = W.getMirrorText && W.getMirrorText(R) || "控件", s.add(T, "gu-mirror"), W.mirrorContainer.appendChild(T), S(
|
|
3509
|
+
T || (T = document.createElement("div"), T.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", T.innerHTML = W.getMirrorText && W.getMirrorText(R) || "控件", s.add(T, "gu-mirror"), W.mirrorContainer.appendChild(T), S(d, "add", "mousemove", ot), s.add(W.mirrorContainer, "gu-unselectable"), q.emit("cloned", T, R, "mirror"));
|
|
3510
3510
|
}
|
|
3511
3511
|
function ce() {
|
|
3512
3512
|
if (H = document.createElement("div"), s.add(H, "gu-insertion"), R) {
|
|
@@ -3516,7 +3516,7 @@ var Br = { exports: {} };
|
|
|
3516
3516
|
Z = !1, W.mirrorContainer.appendChild(H);
|
|
3517
3517
|
}
|
|
3518
3518
|
function ve() {
|
|
3519
|
-
T && (s.rm(W.mirrorContainer, "gu-unselectable"), S(
|
|
3519
|
+
T && (s.rm(W.mirrorContainer, "gu-unselectable"), S(d, "remove", "mousemove", ot), w(T).removeChild(T), T = null);
|
|
3520
3520
|
}
|
|
3521
3521
|
function Fe() {
|
|
3522
3522
|
H && (w(H).removeChild(H), H = null);
|
|
@@ -3524,9 +3524,9 @@ var Br = { exports: {} };
|
|
|
3524
3524
|
function _e(P, z) {
|
|
3525
3525
|
for (var K = z; K !== P && w(K) !== P; )
|
|
3526
3526
|
K = w(K);
|
|
3527
|
-
return K ===
|
|
3527
|
+
return K === d ? null : K;
|
|
3528
3528
|
}
|
|
3529
|
-
function
|
|
3529
|
+
function ge(P, z) {
|
|
3530
3530
|
if (!z)
|
|
3531
3531
|
return Z;
|
|
3532
3532
|
var K = P || z && z.lastElementChild;
|
|
@@ -3584,7 +3584,7 @@ var Br = { exports: {} };
|
|
|
3584
3584
|
H.style.display = "none";
|
|
3585
3585
|
}
|
|
3586
3586
|
function Se(P, z) {
|
|
3587
|
-
if (!W.mirrorContainer.contains(P) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ee =
|
|
3587
|
+
if (!W.mirrorContainer.contains(P) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ee = f(P), !ee || !ee.contains(P)))
|
|
3588
3588
|
return;
|
|
3589
3589
|
const K = document.querySelector(".dgComponentSelected"), le = ee.getBoundingClientRect();
|
|
3590
3590
|
if (z - 30 < le.top && ee.scrollTop > 0) {
|
|
@@ -3601,21 +3601,21 @@ var Br = { exports: {} };
|
|
|
3601
3601
|
var pe = W.direction === "horizontal", be = W.direction === "mixed", at = z !== P ? et() : qe();
|
|
3602
3602
|
return at;
|
|
3603
3603
|
function qe() {
|
|
3604
|
-
var Ee = P.children.length,
|
|
3605
|
-
for (
|
|
3606
|
-
if (Ye = P.children[
|
|
3604
|
+
var Ee = P.children.length, ut, Ye, Re;
|
|
3605
|
+
for (ut = 0; ut < Ee; ut++)
|
|
3606
|
+
if (Ye = P.children[ut], Re = Ye.getBoundingClientRect(), pe && Re.left + Re.width / 2 > K || !be && !pe && Re.top + Re.height / 2 > le || be && Re.left + Re.width > K && Re.top + Re.height > le)
|
|
3607
3607
|
return Ye;
|
|
3608
3608
|
return null;
|
|
3609
3609
|
}
|
|
3610
3610
|
function et() {
|
|
3611
3611
|
var Ee = z.getBoundingClientRect();
|
|
3612
3612
|
if (be) {
|
|
3613
|
-
var
|
|
3614
|
-
return Z ? $t = Rt < Ye : $t = Re === Nt || Rt === Nt || Ye === Nt,
|
|
3613
|
+
var ut = le - Ee.top, Ye = K - Ee.left, Re = Ee.bottom - le, Rt = Ee.right - K, Nt = Math.min(Ye, Rt, ut, Re), $t;
|
|
3614
|
+
return Z ? $t = Rt < Ye : $t = Re === Nt || Rt === Nt || Ye === Nt, st($t);
|
|
3615
3615
|
}
|
|
3616
|
-
return
|
|
3616
|
+
return st(pe ? K > Ee.left + F(Ee) / 2 : le > Ee.top + m(Ee) / 2);
|
|
3617
3617
|
}
|
|
3618
|
-
function
|
|
3618
|
+
function st(Ee) {
|
|
3619
3619
|
return Ee ? b(z) : z;
|
|
3620
3620
|
}
|
|
3621
3621
|
}
|
|
@@ -3623,7 +3623,7 @@ var Br = { exports: {} };
|
|
|
3623
3623
|
return typeof W.copy == "boolean" ? W.copy : W.copy(P, z);
|
|
3624
3624
|
}
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function f(h) {
|
|
3627
3627
|
const C = Array.from(window.scrollContainerList);
|
|
3628
3628
|
if (C.length === 1) {
|
|
3629
3629
|
const T = Array.from(window.scrollContainerList)[0];
|
|
@@ -3672,7 +3672,7 @@ var Br = { exports: {} };
|
|
|
3672
3672
|
function M(h, C, k) {
|
|
3673
3673
|
h = h || {};
|
|
3674
3674
|
var T = h.className || "", O;
|
|
3675
|
-
return h.className += " gu-hide", O =
|
|
3675
|
+
return h.className += " gu-hide", O = c.elementFromPoint(C, k), h.className = T, O;
|
|
3676
3676
|
}
|
|
3677
3677
|
function v() {
|
|
3678
3678
|
return !1;
|
|
@@ -3687,7 +3687,7 @@ var Br = { exports: {} };
|
|
|
3687
3687
|
return h.height || h.bottom - h.top;
|
|
3688
3688
|
}
|
|
3689
3689
|
function w(h) {
|
|
3690
|
-
return h.parentNode ===
|
|
3690
|
+
return h.parentNode === c ? null : h.parentNode;
|
|
3691
3691
|
}
|
|
3692
3692
|
function E(h) {
|
|
3693
3693
|
return h.tagName === "INPUT" || h.tagName === "TEXTAREA" || h.tagName === "SELECT" || l(h);
|
|
@@ -3717,8 +3717,8 @@ var Br = { exports: {} };
|
|
|
3717
3717
|
};
|
|
3718
3718
|
return h in T && !(h in k) && T[h] in k && (h = T[h]), k[h];
|
|
3719
3719
|
}
|
|
3720
|
-
o.exports =
|
|
3721
|
-
}).call(this, typeof
|
|
3720
|
+
o.exports = p;
|
|
3721
|
+
}).call(this, typeof ct < "u" ? ct : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
3722
3722
|
}, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
|
|
3723
3723
|
3: [function(n, o, i) {
|
|
3724
3724
|
o.exports = function(r, u) {
|
|
@@ -3727,44 +3727,44 @@ var Br = { exports: {} };
|
|
|
3727
3727
|
}, {}],
|
|
3728
3728
|
4: [function(n, o, i) {
|
|
3729
3729
|
var a = n("ticky");
|
|
3730
|
-
o.exports = function(u, s,
|
|
3730
|
+
o.exports = function(u, s, c) {
|
|
3731
3731
|
u && a(function() {
|
|
3732
|
-
u.apply(
|
|
3732
|
+
u.apply(c || null, s || []);
|
|
3733
3733
|
});
|
|
3734
3734
|
};
|
|
3735
3735
|
}, { ticky: 10 }],
|
|
3736
3736
|
5: [function(n, o, i) {
|
|
3737
3737
|
var a = n("atoa"), r = n("./debounce");
|
|
3738
|
-
o.exports = function(s,
|
|
3739
|
-
var
|
|
3740
|
-
return s === void 0 && (s = {}), s.on = function(
|
|
3741
|
-
return
|
|
3742
|
-
}, s.once = function(
|
|
3743
|
-
return y._once = !0, s.on(
|
|
3744
|
-
}, s.off = function(
|
|
3738
|
+
o.exports = function(s, c) {
|
|
3739
|
+
var d = c || {}, p = {};
|
|
3740
|
+
return s === void 0 && (s = {}), s.on = function(f, y) {
|
|
3741
|
+
return p[f] ? p[f].push(y) : p[f] = [y], s;
|
|
3742
|
+
}, s.once = function(f, y) {
|
|
3743
|
+
return y._once = !0, s.on(f, y), s;
|
|
3744
|
+
}, s.off = function(f, y) {
|
|
3745
3745
|
var S = arguments.length;
|
|
3746
3746
|
if (S === 1)
|
|
3747
|
-
delete
|
|
3747
|
+
delete p[f];
|
|
3748
3748
|
else if (S === 0)
|
|
3749
|
-
|
|
3749
|
+
p = {};
|
|
3750
3750
|
else {
|
|
3751
|
-
var D =
|
|
3751
|
+
var D = p[f];
|
|
3752
3752
|
if (!D)
|
|
3753
3753
|
return s;
|
|
3754
3754
|
D.splice(D.indexOf(y), 1);
|
|
3755
3755
|
}
|
|
3756
3756
|
return s;
|
|
3757
3757
|
}, s.emit = function() {
|
|
3758
|
-
var
|
|
3759
|
-
return s.emitterSnapshot(
|
|
3760
|
-
}, s.emitterSnapshot = function(
|
|
3761
|
-
var y = (
|
|
3758
|
+
var f = a(arguments);
|
|
3759
|
+
return s.emitterSnapshot(f.shift()).apply(this, f);
|
|
3760
|
+
}, s.emitterSnapshot = function(f) {
|
|
3761
|
+
var y = (p[f] || []).slice(0);
|
|
3762
3762
|
return function() {
|
|
3763
3763
|
var S = a(arguments), D = this || s;
|
|
3764
|
-
if (
|
|
3764
|
+
if (f === "error" && d.throws !== !1 && !y.length)
|
|
3765
3765
|
throw S.length === 1 ? S[0] : S;
|
|
3766
3766
|
return y.forEach(function(v) {
|
|
3767
|
-
|
|
3767
|
+
d.async ? r(v, S, D) : v.apply(D, S), v._once && s.off(f, v);
|
|
3768
3768
|
}), s;
|
|
3769
3769
|
};
|
|
3770
3770
|
}, s;
|
|
@@ -3772,13 +3772,13 @@ var Br = { exports: {} };
|
|
|
3772
3772
|
}, { "./debounce": 4, atoa: 3 }],
|
|
3773
3773
|
6: [function(n, o, i) {
|
|
3774
3774
|
(function(a) {
|
|
3775
|
-
var r = n("custom-event"), u = n("./eventmap"), s = a.document,
|
|
3776
|
-
a.addEventListener || (
|
|
3777
|
-
add:
|
|
3778
|
-
remove:
|
|
3775
|
+
var r = n("custom-event"), u = n("./eventmap"), s = a.document, c = f, d = S, p = [];
|
|
3776
|
+
a.addEventListener || (c = y, d = D), o.exports = {
|
|
3777
|
+
add: c,
|
|
3778
|
+
remove: d,
|
|
3779
3779
|
fabricate: M
|
|
3780
3780
|
};
|
|
3781
|
-
function
|
|
3781
|
+
function f(w, E, l, b) {
|
|
3782
3782
|
return w.addEventListener(E, l, b);
|
|
3783
3783
|
}
|
|
3784
3784
|
function y(w, E, l) {
|
|
@@ -3815,7 +3815,7 @@ var Br = { exports: {} };
|
|
|
3815
3815
|
}
|
|
3816
3816
|
function g(w, E, l) {
|
|
3817
3817
|
var b = F(w, E, l) || v(w, E, l);
|
|
3818
|
-
return
|
|
3818
|
+
return p.push({
|
|
3819
3819
|
wrapper: b,
|
|
3820
3820
|
element: w,
|
|
3821
3821
|
type: E,
|
|
@@ -3825,17 +3825,17 @@ var Br = { exports: {} };
|
|
|
3825
3825
|
function F(w, E, l) {
|
|
3826
3826
|
var b = m(w, E, l);
|
|
3827
3827
|
if (b) {
|
|
3828
|
-
var I =
|
|
3829
|
-
return
|
|
3828
|
+
var I = p[b].wrapper;
|
|
3829
|
+
return p.splice(b, 1), I;
|
|
3830
3830
|
}
|
|
3831
3831
|
}
|
|
3832
3832
|
function m(w, E, l) {
|
|
3833
3833
|
var b, I;
|
|
3834
|
-
for (b = 0; b <
|
|
3835
|
-
if (I =
|
|
3834
|
+
for (b = 0; b < p.length; b++)
|
|
3835
|
+
if (I = p[b], I.element === w && I.type === E && I.fn === l)
|
|
3836
3836
|
return b;
|
|
3837
3837
|
}
|
|
3838
|
-
}).call(this, typeof
|
|
3838
|
+
}).call(this, typeof ct < "u" ? ct : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
3839
3839
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
3840
3840
|
7: [function(n, o, i) {
|
|
3841
3841
|
(function(a) {
|
|
@@ -3843,7 +3843,7 @@ var Br = { exports: {} };
|
|
|
3843
3843
|
for (u in a)
|
|
3844
3844
|
s.test(u) && r.push(u.slice(2));
|
|
3845
3845
|
o.exports = r;
|
|
3846
|
-
}).call(this, typeof
|
|
3846
|
+
}).call(this, typeof ct < "u" ? ct : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
3847
3847
|
}, {}],
|
|
3848
3848
|
8: [function(n, o, i) {
|
|
3849
3849
|
(function(a) {
|
|
@@ -3858,25 +3858,25 @@ var Br = { exports: {} };
|
|
|
3858
3858
|
}
|
|
3859
3859
|
o.exports = u() ? r : (
|
|
3860
3860
|
// IE >= 9
|
|
3861
|
-
typeof document < "u" && typeof document.createEvent == "function" ? function(
|
|
3862
|
-
var
|
|
3863
|
-
return
|
|
3861
|
+
typeof document < "u" && typeof document.createEvent == "function" ? function(c, d) {
|
|
3862
|
+
var p = document.createEvent("CustomEvent");
|
|
3863
|
+
return d ? p.initCustomEvent(c, d.bubbles, d.cancelable, d.detail) : p.initCustomEvent(c, !1, !1, void 0), p;
|
|
3864
3864
|
} : (
|
|
3865
3865
|
// IE <= 8
|
|
3866
|
-
function(
|
|
3867
|
-
var
|
|
3868
|
-
return
|
|
3866
|
+
function(c, d) {
|
|
3867
|
+
var p = document.createEventObject();
|
|
3868
|
+
return p.type = c, d ? (p.bubbles = !!d.bubbles, p.cancelable = !!d.cancelable, p.detail = d.detail) : (p.bubbles = !1, p.cancelable = !1, p.detail = void 0), p;
|
|
3869
3869
|
}
|
|
3870
3870
|
)
|
|
3871
3871
|
);
|
|
3872
|
-
}).call(this, typeof
|
|
3872
|
+
}).call(this, typeof ct < "u" ? ct : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
3873
3873
|
}, {}],
|
|
3874
3874
|
9: [function(n, o, i) {
|
|
3875
3875
|
var a = o.exports = {}, r, u;
|
|
3876
3876
|
function s() {
|
|
3877
3877
|
throw new Error("setTimeout has not been defined");
|
|
3878
3878
|
}
|
|
3879
|
-
function
|
|
3879
|
+
function c() {
|
|
3880
3880
|
throw new Error("clearTimeout has not been defined");
|
|
3881
3881
|
}
|
|
3882
3882
|
(function() {
|
|
@@ -3886,12 +3886,12 @@ var Br = { exports: {} };
|
|
|
3886
3886
|
r = s;
|
|
3887
3887
|
}
|
|
3888
3888
|
try {
|
|
3889
|
-
typeof clearTimeout == "function" ? u = clearTimeout : u =
|
|
3889
|
+
typeof clearTimeout == "function" ? u = clearTimeout : u = c;
|
|
3890
3890
|
} catch {
|
|
3891
|
-
u =
|
|
3891
|
+
u = c;
|
|
3892
3892
|
}
|
|
3893
3893
|
})();
|
|
3894
|
-
function
|
|
3894
|
+
function d(m) {
|
|
3895
3895
|
if (r === setTimeout)
|
|
3896
3896
|
return setTimeout(m, 0);
|
|
3897
3897
|
if ((r === s || !r) && setTimeout)
|
|
@@ -3906,10 +3906,10 @@ var Br = { exports: {} };
|
|
|
3906
3906
|
}
|
|
3907
3907
|
}
|
|
3908
3908
|
}
|
|
3909
|
-
function
|
|
3909
|
+
function p(m) {
|
|
3910
3910
|
if (u === clearTimeout)
|
|
3911
3911
|
return clearTimeout(m);
|
|
3912
|
-
if ((u ===
|
|
3912
|
+
if ((u === c || !u) && clearTimeout)
|
|
3913
3913
|
return u = clearTimeout, clearTimeout(m);
|
|
3914
3914
|
try {
|
|
3915
3915
|
return u(m);
|
|
@@ -3921,20 +3921,20 @@ var Br = { exports: {} };
|
|
|
3921
3921
|
}
|
|
3922
3922
|
}
|
|
3923
3923
|
}
|
|
3924
|
-
var
|
|
3924
|
+
var f = [], y = !1, S, D = -1;
|
|
3925
3925
|
function M() {
|
|
3926
|
-
!y || !S || (y = !1, S.length ?
|
|
3926
|
+
!y || !S || (y = !1, S.length ? f = S.concat(f) : D = -1, f.length && v());
|
|
3927
3927
|
}
|
|
3928
3928
|
function v() {
|
|
3929
3929
|
if (!y) {
|
|
3930
|
-
var m =
|
|
3930
|
+
var m = d(M);
|
|
3931
3931
|
y = !0;
|
|
3932
|
-
for (var w =
|
|
3933
|
-
for (S =
|
|
3932
|
+
for (var w = f.length; w; ) {
|
|
3933
|
+
for (S = f, f = []; ++D < w; )
|
|
3934
3934
|
S && S[D].run();
|
|
3935
|
-
D = -1, w =
|
|
3935
|
+
D = -1, w = f.length;
|
|
3936
3936
|
}
|
|
3937
|
-
S = null, y = !1,
|
|
3937
|
+
S = null, y = !1, p(m);
|
|
3938
3938
|
}
|
|
3939
3939
|
}
|
|
3940
3940
|
a.nextTick = function(m) {
|
|
@@ -3942,7 +3942,7 @@ var Br = { exports: {} };
|
|
|
3942
3942
|
if (arguments.length > 1)
|
|
3943
3943
|
for (var E = 1; E < arguments.length; E++)
|
|
3944
3944
|
w[E - 1] = arguments[E];
|
|
3945
|
-
|
|
3945
|
+
f.push(new g(m, w)), f.length === 1 && !y && d(v);
|
|
3946
3946
|
};
|
|
3947
3947
|
function g(m, w) {
|
|
3948
3948
|
this.fun = m, this.array = w;
|
|
@@ -3976,19 +3976,19 @@ var Br = { exports: {} };
|
|
|
3976
3976
|
}, { timers: 11 }],
|
|
3977
3977
|
11: [function(n, o, i) {
|
|
3978
3978
|
(function(a, r) {
|
|
3979
|
-
var u = n("process/browser.js").nextTick, s = Function.prototype.apply,
|
|
3979
|
+
var u = n("process/browser.js").nextTick, s = Function.prototype.apply, c = Array.prototype.slice, d = {}, p = 0;
|
|
3980
3980
|
i.setTimeout = function() {
|
|
3981
|
-
return new
|
|
3981
|
+
return new f(s.call(setTimeout, window, arguments), clearTimeout);
|
|
3982
3982
|
}, i.setInterval = function() {
|
|
3983
|
-
return new
|
|
3983
|
+
return new f(s.call(setInterval, window, arguments), clearInterval);
|
|
3984
3984
|
}, i.clearTimeout = i.clearInterval = function(y) {
|
|
3985
3985
|
y.close();
|
|
3986
3986
|
};
|
|
3987
|
-
function
|
|
3987
|
+
function f(y, S) {
|
|
3988
3988
|
this._id = y, this._clearFn = S;
|
|
3989
3989
|
}
|
|
3990
|
-
|
|
3991
|
-
},
|
|
3990
|
+
f.prototype.unref = f.prototype.ref = function() {
|
|
3991
|
+
}, f.prototype.close = function() {
|
|
3992
3992
|
this._clearFn.call(window, this._id);
|
|
3993
3993
|
}, i.enroll = function(y, S) {
|
|
3994
3994
|
clearTimeout(y._idleTimeoutId), y._idleTimeout = S;
|
|
@@ -4001,12 +4001,12 @@ var Br = { exports: {} };
|
|
|
4001
4001
|
y._onTimeout && y._onTimeout();
|
|
4002
4002
|
}, S));
|
|
4003
4003
|
}, i.setImmediate = typeof a == "function" ? a : function(y) {
|
|
4004
|
-
var S =
|
|
4005
|
-
return
|
|
4006
|
-
|
|
4004
|
+
var S = p++, D = arguments.length < 2 ? !1 : c.call(arguments, 1);
|
|
4005
|
+
return d[S] = !0, u(function() {
|
|
4006
|
+
d[S] && (D ? y.apply(null, D) : y.call(null), i.clearImmediate(S));
|
|
4007
4007
|
}), S;
|
|
4008
4008
|
}, i.clearImmediate = typeof r == "function" ? r : function(y) {
|
|
4009
|
-
delete
|
|
4009
|
+
delete d[y];
|
|
4010
4010
|
};
|
|
4011
4011
|
}).call(this, n("timers").setImmediate, n("timers").clearImmediate);
|
|
4012
4012
|
}, { "process/browser.js": 9, timers: 11 }]
|
|
@@ -4018,13 +4018,13 @@ const eo = /* @__PURE__ */ new Map([
|
|
|
4018
4018
|
["column", "columnOption"]
|
|
4019
4019
|
]);
|
|
4020
4020
|
function Dr(e, t, n) {
|
|
4021
|
-
var
|
|
4022
|
-
const o = n.parentComponentInstance, i = o.schema.type, a = String(((
|
|
4023
|
-
|
|
4024
|
-
let
|
|
4025
|
-
return
|
|
4026
|
-
class:
|
|
4027
|
-
},
|
|
4021
|
+
var p;
|
|
4022
|
+
const o = n.parentComponentInstance, i = o.schema.type, a = String(((p = o.schema.appearance) == null ? void 0 : p.class) || "").split(" "), r = i === "section" || i === "tab-page", u = a.includes("f-page-content-nav"), s = a.includes("f-page-main"), c = e.getSchemaByType("component");
|
|
4023
|
+
c.id = `${t.id}-component`, c.componentType = "data-grid";
|
|
4024
|
+
let d = "";
|
|
4025
|
+
return d += r ? "f-struct-data-grid-in-card f-struct-is-subgrid" : "", d += u ? "f-struct-data-grid-in-nav f-struct-wrapper f-utils-fill-flex-column" : "", d += s ? "f-struct-data-grid f-struct-wrapper" : "", c.appearance = {
|
|
4026
|
+
class: d
|
|
4027
|
+
}, c.contents = [t], c;
|
|
4028
4028
|
}
|
|
4029
4029
|
function Rr(e, t, n) {
|
|
4030
4030
|
const o = n.parentComponentInstance, i = String(o.schema.appearance.class || "").split(" "), a = i.includes("f-page-content-nav"), r = i.includes("f-page-main"), u = e.getSchemaByType("section");
|
|
@@ -4955,8 +4955,8 @@ const $r = "https://json-schema.org/draft/2020-12/schema", jr = "https://farris-
|
|
|
4955
4955
|
width: { type: Number, default: -1 },
|
|
4956
4956
|
/** 启用虚拟渲染 */
|
|
4957
4957
|
virtualized: { type: Boolean, default: !1 }
|
|
4958
|
-
}, zr =
|
|
4959
|
-
function Xr(e, t, n, o, i, a, r, u, s,
|
|
4958
|
+
}, zr = lt(Zt, no, eo, to), Gr = _a(), qr = wa(), oo = Object.assign({}, Zt, { componentId: { type: String, default: "" } }), Ur = lt(oo, no, eo, to), Yr = Sa();
|
|
4959
|
+
function Xr(e, t, n, o, i, a, r, u, s, c, d, p, f, y, S, D, M) {
|
|
4960
4960
|
const {
|
|
4961
4961
|
calculateCellPositionInRow: v
|
|
4962
4962
|
} = a, {
|
|
@@ -4969,7 +4969,7 @@ function Xr(e, t, n, o, i, a, r, u, s, f, p, d, c, y, S, D, M) {
|
|
|
4969
4969
|
rightFixedGridDataStyle: l
|
|
4970
4970
|
} = y, {
|
|
4971
4971
|
renderDataRow: b
|
|
4972
|
-
} = Ua(e, t, g, M, u, s,
|
|
4972
|
+
} = Ua(e, t, g, M, u, s, c, d, p, f, y), I = [b];
|
|
4973
4973
|
function V(O, R) {
|
|
4974
4974
|
const B = v(O);
|
|
4975
4975
|
return M.value.filter(($) => $.visible !== !1).map(($) => I[$.type]($, B, R));
|
|
@@ -5015,10 +5015,10 @@ const Et = /* @__PURE__ */ Me({
|
|
|
5015
5015
|
emits: ["selectionChange", "clickRow", "expandNode"],
|
|
5016
5016
|
setup(e, t) {
|
|
5017
5017
|
var bt, P;
|
|
5018
|
-
const o = ((bt = e.rowOption) == null ? void 0 : bt.height) || 28, i = _(20), a = _(e.columns), r = fn(e), u = _(), s = _(),
|
|
5018
|
+
const o = ((bt = e.rowOption) == null ? void 0 : bt.height) || 28, i = _(20), a = _(e.columns), r = fn(e), u = _(), s = _(), c = _(), d = _(), p = _(), f = _([]), y = _(!1), S = _(((P = e.rowOption) == null ? void 0 : P.wrapContent) || !1), D = mn(e, r), M = dn(), v = pn(e), {
|
|
5019
5019
|
showLoading: g,
|
|
5020
5020
|
renderLoading: F
|
|
5021
|
-
} = $o(e, u), m = vn(e, /* @__PURE__ */ new Map(), M, v, r), w = hn(e, m, r,
|
|
5021
|
+
} = $o(e, u), m = vn(e, /* @__PURE__ */ new Map(), M, v, r), w = hn(e, m, r, f, t), E = jo(e, f, r, w, t), l = j(() => e.disabled), b = j(() => e.virtualized ? Math.min(m.dataView.value.length, i.value) : m.dataView.value.length), {
|
|
5022
5022
|
containerStyleObject: I
|
|
5023
5023
|
} = Po(e), V = Ho(e), {
|
|
5024
5024
|
applyCommands: h
|
|
@@ -5034,7 +5034,7 @@ const Et = /* @__PURE__ */ Me({
|
|
|
5034
5034
|
getVisualData: se
|
|
5035
5035
|
} = ie, H = zo(e, O), Z = Go(e, w), {
|
|
5036
5036
|
sidebarWidth: ue
|
|
5037
|
-
} = Z, ee = qo(e, m,
|
|
5037
|
+
} = Z, ee = qo(e, m, f, O, ie, b, 0, ue), {
|
|
5038
5038
|
onWheel: W,
|
|
5039
5039
|
dataGridWidth: q,
|
|
5040
5040
|
viewPortHeight: me,
|
|
@@ -5043,7 +5043,7 @@ const Et = /* @__PURE__ */ Me({
|
|
|
5043
5043
|
updateVisibleRowsOnLatestVisibleScope: Le
|
|
5044
5044
|
} = ee, Be = Uo(e, O, s, fe, B), {
|
|
5045
5045
|
calculateColumnsSize: ke
|
|
5046
|
-
} = Be, We = Yo(), $e = Xo(s,
|
|
5046
|
+
} = Be, We = Yo(), $e = Xo(s, p, m, We, ee), De = Ko(e, t, C, m, B, D, ee), ye = j(() => ({
|
|
5047
5047
|
"fv-grid": !0,
|
|
5048
5048
|
"fv-grid-bordered": e.showBorder,
|
|
5049
5049
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
@@ -5054,11 +5054,11 @@ const Et = /* @__PURE__ */ Me({
|
|
|
5054
5054
|
"fv-grid-wrap-content": S.value
|
|
5055
5055
|
})), {
|
|
5056
5056
|
renderDataArea: de
|
|
5057
|
-
} = Xr(e, t,
|
|
5057
|
+
} = Xr(e, t, c, d, p, H, C, m, A, v, $, w, E, ee, ie, L, f), {
|
|
5058
5058
|
renderGridHeader: je,
|
|
5059
5059
|
renderGridColumnResizeOverlay: Pe,
|
|
5060
5060
|
shouldShowHeader: Qe
|
|
5061
|
-
} = Qo(e, t, s,
|
|
5061
|
+
} = Qo(e, t, s, d, p, C, m, De, $e, M, We, Be, B, w, Z, k, ee, fe, f), {
|
|
5062
5062
|
renderDataGridSidebar: Ae
|
|
5063
5063
|
} = Jo(e, $, w, Z, ee), {
|
|
5064
5064
|
renderDisableMask: ze
|
|
@@ -5071,15 +5071,15 @@ const Et = /* @__PURE__ */ Me({
|
|
|
5071
5071
|
var z, K, le;
|
|
5072
5072
|
if (s.value && s.value.clientHeight > 0 && ((z = s.value) == null ? void 0 : z.clientWidth) > 0) {
|
|
5073
5073
|
const pe = Math.ceil(s.value.clientHeight / o);
|
|
5074
|
-
pe > i.value && (i.value = pe, Le()), me.value = ((K =
|
|
5074
|
+
pe > i.value && (i.value = pe, Le()), me.value = ((K = c.value) == null ? void 0 : K.clientHeight) || 0, q.value = ((le = s.value) == null ? void 0 : le.clientWidth) || 0, ke();
|
|
5075
5075
|
}
|
|
5076
5076
|
}
|
|
5077
5077
|
pt(() => {
|
|
5078
|
-
s.value && (i.value = Math.max(Math.ceil(s.value.clientHeight / o), i.value),
|
|
5079
|
-
s.value && (q.value = s.value.clientWidth),
|
|
5078
|
+
s.value && (i.value = Math.max(Math.ceil(s.value.clientHeight / o), i.value), f.value = se(0, b.value + 0 - 1), Sn(s.value, Ze), ke(), Xt(() => {
|
|
5079
|
+
s.value && (q.value = s.value.clientWidth), c.value && (fe.value = c.value.clientWidth, me.value = c.value.clientHeight);
|
|
5080
5080
|
})), g.value && F();
|
|
5081
5081
|
}), Vt(() => {
|
|
5082
|
-
}),
|
|
5082
|
+
}), he(fe, () => {
|
|
5083
5083
|
s.value && ke();
|
|
5084
5084
|
});
|
|
5085
5085
|
function Ue() {
|
|
@@ -5088,15 +5088,15 @@ const Et = /* @__PURE__ */ Me({
|
|
|
5088
5088
|
}
|
|
5089
5089
|
function nt() {
|
|
5090
5090
|
const z = Ue();
|
|
5091
|
-
m.insertNewDataItem(z),
|
|
5091
|
+
m.insertNewDataItem(z), f.value = se(0, b.value + 0 - 1);
|
|
5092
5092
|
}
|
|
5093
5093
|
function ot() {
|
|
5094
5094
|
const z = Ue();
|
|
5095
|
-
m.insertNewChildDataItem(z),
|
|
5095
|
+
m.insertNewChildDataItem(z), f.value = se(0, b.value + 0 - 1);
|
|
5096
5096
|
}
|
|
5097
5097
|
function it() {
|
|
5098
5098
|
const z = Ue(), K = E.getNextSelectableHierarchyItemId(z);
|
|
5099
|
-
m.removeHierarchyDataItem(z),
|
|
5099
|
+
m.removeHierarchyDataItem(z), f.value = se(0, b.value + 0 - 1), K && w.selectItemById(K);
|
|
5100
5100
|
}
|
|
5101
5101
|
function N(z) {
|
|
5102
5102
|
A.onEditingRow(z);
|
|
@@ -5117,10 +5117,10 @@ const Et = /* @__PURE__ */ Me({
|
|
|
5117
5117
|
w.selectItemById(z);
|
|
5118
5118
|
}
|
|
5119
5119
|
function _e(z) {
|
|
5120
|
-
const K =
|
|
5120
|
+
const K = f.value.find((le) => le.raw[r.idField.value] === z);
|
|
5121
5121
|
K && $.clickRowItem(K);
|
|
5122
5122
|
}
|
|
5123
|
-
function
|
|
5123
|
+
function ge(z) {
|
|
5124
5124
|
w.selectItemByIds(z);
|
|
5125
5125
|
}
|
|
5126
5126
|
function xe() {
|
|
@@ -5129,7 +5129,7 @@ const Et = /* @__PURE__ */ Me({
|
|
|
5129
5129
|
function Ce() {
|
|
5130
5130
|
w.clearSelection();
|
|
5131
5131
|
}
|
|
5132
|
-
const we = j(() => !
|
|
5132
|
+
const we = j(() => !f.value || !f.value.length), {
|
|
5133
5133
|
renderEmpty: Se
|
|
5134
5134
|
} = ni(t);
|
|
5135
5135
|
function He() {
|
|
@@ -5145,7 +5145,7 @@ const Et = /* @__PURE__ */ Me({
|
|
|
5145
5145
|
updateColumns: ce,
|
|
5146
5146
|
updateDataSource: ve,
|
|
5147
5147
|
selectItemById: Fe,
|
|
5148
|
-
selectItemByIds:
|
|
5148
|
+
selectItemByIds: ge,
|
|
5149
5149
|
getSelectedItems: xe,
|
|
5150
5150
|
clearSelection: Ce,
|
|
5151
5151
|
getSelectionRow: He,
|
|
@@ -5160,7 +5160,7 @@ const Et = /* @__PURE__ */ Me({
|
|
|
5160
5160
|
class: Y.value,
|
|
5161
5161
|
onMouseover: () => y.value = !0,
|
|
5162
5162
|
onMouseleave: () => y.value = !1
|
|
5163
|
-
}, [s.value && Ae(
|
|
5163
|
+
}, [s.value && Ae(f), s.value && de(), s.value && we.value && Se(), s.value && Ge(), s.value && Je()]), Pe(), l.value && ze()]);
|
|
5164
5164
|
}
|
|
5165
5165
|
}), Kr = {
|
|
5166
5166
|
id: { type: String, default: "" },
|
|
@@ -5218,8 +5218,8 @@ const Ut = /* @__PURE__ */ Me({
|
|
|
5218
5218
|
props: Kr,
|
|
5219
5219
|
emits: ["selectionChange"],
|
|
5220
5220
|
setup(e, t) {
|
|
5221
|
-
const n = _(`${e.modelValue.id}-component`), o = _(e.canMove), i = _(e.canDelete), a = _(!1), r = _(e.modelValue), u = _(e.componentId || ""), s = _(""),
|
|
5222
|
-
designerItemElementRef:
|
|
5221
|
+
const n = _(`${e.modelValue.id}-component`), o = _(e.canMove), i = _(e.canDelete), a = _(!1), r = _(e.modelValue), u = _(e.componentId || ""), s = _(""), c = _(""), d = _(e.customClass), p = _(), f = ht("canvas-dragula"), y = _(), S = ht("design-item-context"), D = {
|
|
5222
|
+
designerItemElementRef: p,
|
|
5223
5223
|
componentInstance: y,
|
|
5224
5224
|
schema: r.value,
|
|
5225
5225
|
parent: S,
|
|
@@ -5236,11 +5236,11 @@ const Ut = /* @__PURE__ */ Me({
|
|
|
5236
5236
|
"position-relative": o.value && i.value || (R == null ? void 0 : R.length),
|
|
5237
5237
|
"farris-nested": a.value,
|
|
5238
5238
|
"can-move": o.value,
|
|
5239
|
-
"d-none":
|
|
5240
|
-
dgComponentSelected:
|
|
5241
|
-
dgComponentFocused:
|
|
5239
|
+
"d-none": p.value && p.value.classList.contains("d-none"),
|
|
5240
|
+
dgComponentSelected: p.value && p.value.classList.contains("dgComponentSelected"),
|
|
5241
|
+
dgComponentFocused: p.value && p.value.classList.contains("dgComponentFocused")
|
|
5242
5242
|
};
|
|
5243
|
-
return B[`farris-component-${r.value.type}`] = !0, B = Pt(B, O), B = Pt(B,
|
|
5243
|
+
return B[`farris-component-${r.value.type}`] = !0, B = Pt(B, O), B = Pt(B, c.value), B = Pt(B, d.value), B;
|
|
5244
5244
|
}), g = j(() => {
|
|
5245
5245
|
const O = {}, R = e.modelValue.appearance && e.modelValue.appearance.style || "";
|
|
5246
5246
|
return R && R.split(";").reduce((B, $) => {
|
|
@@ -5350,7 +5350,7 @@ const Ut = /* @__PURE__ */ Me({
|
|
|
5350
5350
|
}, null);
|
|
5351
5351
|
}
|
|
5352
5352
|
}
|
|
5353
|
-
|
|
5353
|
+
he(() => e.modelValue, (O) => {
|
|
5354
5354
|
r.value = O, n.value = `${O.id}-component`;
|
|
5355
5355
|
});
|
|
5356
5356
|
function h(O) {
|
|
@@ -5364,30 +5364,30 @@ const Ut = /* @__PURE__ */ Me({
|
|
|
5364
5364
|
}
|
|
5365
5365
|
function k() {
|
|
5366
5366
|
var O, R;
|
|
5367
|
-
(R = (O = r.value) == null ? void 0 : O.contents) != null && R.length &&
|
|
5367
|
+
(R = (O = r.value) == null ? void 0 : O.contents) != null && R.length && p.value && p.value.addEventListener("scroll", C);
|
|
5368
5368
|
}
|
|
5369
5369
|
pt(() => {
|
|
5370
|
-
if (
|
|
5371
|
-
const O =
|
|
5372
|
-
|
|
5370
|
+
if (p.value && y.value && y.value.schema) {
|
|
5371
|
+
const O = p.value.querySelector(`[data-dragref='${y.value.schema.id}-container']`);
|
|
5372
|
+
f && O && f.attachComponents(O, r.value), a.value = y.value.canNested !== void 0 ? y.value.canNested : a.value, i.value = y.value.canDelete !== void 0 ? y.value.canDelete : i.value, o.value = y.value.canMove !== void 0 ? y.value.canMove : o.value, s.value = y.value.styles || "", c.value = y.value.designerClass || "", p.value && (p.value.componentInstance = y, p.value.designItemContext = D), y.value.belongedComponentId = u.value;
|
|
5373
5373
|
}
|
|
5374
5374
|
k(), Ht.value++;
|
|
5375
5375
|
}), cn(() => {
|
|
5376
|
-
|
|
5376
|
+
p.value && p.value.removeEventListener("scroll", C);
|
|
5377
5377
|
});
|
|
5378
5378
|
function T(O) {
|
|
5379
5379
|
O && (O.preventDefault(), O.stopPropagation());
|
|
5380
5380
|
let R = D.designerItemElementRef;
|
|
5381
|
-
const B =
|
|
5381
|
+
const B = p.value;
|
|
5382
5382
|
if (B) {
|
|
5383
5383
|
const $ = document.getElementsByClassName("dgComponentFocused");
|
|
5384
|
-
$ && $.length === 1 && $[0] ===
|
|
5384
|
+
$ && $.length === 1 && $[0] === p.value || (Array.from($).forEach((L) => L.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((L) => L.classList.remove("dgComponentSelected")), B.classList.add("dgComponentFocused"), t.emit("selectionChange", r.value.type, r.value, u.value, y.value), y.value.getDraggableDesignItemElement && (R = y.value.getDraggableDesignItemElement(D), R && R.value && R.value.classList.add("dgComponentSelected")));
|
|
5385
5385
|
}
|
|
5386
5386
|
Zn(R == null ? void 0 : R.value);
|
|
5387
5387
|
}
|
|
5388
5388
|
return () => r.value.type === "component-ref" ? V(r.value) : x("div", {
|
|
5389
5389
|
id: `${r.value.id}-design-item`,
|
|
5390
|
-
ref:
|
|
5390
|
+
ref: p,
|
|
5391
5391
|
class: v.value,
|
|
5392
5392
|
style: g.value,
|
|
5393
5393
|
onClick: T
|
|
@@ -5401,24 +5401,24 @@ function nl(e, t, n, o, i = "data-grid-column") {
|
|
|
5401
5401
|
hasRightFixedColumn: u
|
|
5402
5402
|
} = n, {
|
|
5403
5403
|
gridHeaderColumnsStyle: s,
|
|
5404
|
-
leftFixedGridHeaderColumnsStyle:
|
|
5405
|
-
rightFixedGridHeaderColumnsStyle:
|
|
5406
|
-
} = o,
|
|
5404
|
+
leftFixedGridHeaderColumnsStyle: c,
|
|
5405
|
+
rightFixedGridHeaderColumnsStyle: d
|
|
5406
|
+
} = o, p = a.value.defaultColumnWidth, f = 32, y = /* @__PURE__ */ new Map([[0, 0]]);
|
|
5407
5407
|
function S(V, h) {
|
|
5408
5408
|
const C = y.get(h) || 0, k = {
|
|
5409
|
-
height: `${V.depth *
|
|
5409
|
+
height: `${V.depth * f}px`,
|
|
5410
5410
|
left: `${V.left}px`,
|
|
5411
|
-
top: `${(V.layer - 1) *
|
|
5411
|
+
top: `${(V.layer - 1) * f}px`,
|
|
5412
5412
|
width: `${V.actualWidth}px`,
|
|
5413
5413
|
padding: 0
|
|
5414
5414
|
};
|
|
5415
|
-
return a.value.headerDepth > 1 && (k["line-height"] = `${V.depth *
|
|
5415
|
+
return a.value.headerDepth > 1 && (k["line-height"] = `${V.depth * f}px`), y.set(h + 1, C + (V.actualWidth || p)), k;
|
|
5416
5416
|
}
|
|
5417
5417
|
const D = j(() => ({
|
|
5418
5418
|
"fv-grid-header": !0,
|
|
5419
5419
|
"fv-grid-header-group-columns": a.value.headerDepth > 1
|
|
5420
5420
|
})), M = j(() => ({
|
|
5421
|
-
height: `${a.value.headerDepth *
|
|
5421
|
+
height: `${a.value.headerDepth * f}px`
|
|
5422
5422
|
})), v = function(V) {
|
|
5423
5423
|
return t.showSetting && !!V.showSetting;
|
|
5424
5424
|
};
|
|
@@ -5473,7 +5473,7 @@ function nl(e, t, n, o, i = "data-grid-column") {
|
|
|
5473
5473
|
class: "fv-grid-header-left-fixed"
|
|
5474
5474
|
}, [x("div", {
|
|
5475
5475
|
class: "fv-grid-header-columns",
|
|
5476
|
-
style:
|
|
5476
|
+
style: c.value
|
|
5477
5477
|
}, [E(a.value.leftHeaderColumns)])]);
|
|
5478
5478
|
}
|
|
5479
5479
|
function b() {
|
|
@@ -5481,7 +5481,7 @@ function nl(e, t, n, o, i = "data-grid-column") {
|
|
|
5481
5481
|
class: "fv-grid-header-right-fixed"
|
|
5482
5482
|
}, [x("div", {
|
|
5483
5483
|
class: "fv-grid-header-columns",
|
|
5484
|
-
style:
|
|
5484
|
+
style: d.value
|
|
5485
5485
|
}, [E(a.value.rightHeaderColumns)])]);
|
|
5486
5486
|
}
|
|
5487
5487
|
function I() {
|
|
@@ -5527,13 +5527,13 @@ class ol extends Ir {
|
|
|
5527
5527
|
readonly: !0
|
|
5528
5528
|
}
|
|
5529
5529
|
},
|
|
5530
|
-
setPropertyRelates(
|
|
5531
|
-
switch (
|
|
5530
|
+
setPropertyRelates(c, d) {
|
|
5531
|
+
switch (c && c.propertyID) {
|
|
5532
5532
|
case "dataSource": {
|
|
5533
|
-
const
|
|
5534
|
-
if (
|
|
5535
|
-
const
|
|
5536
|
-
|
|
5533
|
+
const p = i.formSchemaUtils.getViewModelById(i.viewModelId);
|
|
5534
|
+
if (p) {
|
|
5535
|
+
const f = o.find((y) => y.label === c.propertyValue);
|
|
5536
|
+
p.bindTo = f.bindTo;
|
|
5537
5537
|
}
|
|
5538
5538
|
i.designViewModelUtils.assembleDesignViewModel();
|
|
5539
5539
|
break;
|
|
@@ -5681,8 +5681,8 @@ class ol extends Ir {
|
|
|
5681
5681
|
}
|
|
5682
5682
|
function il(e, t) {
|
|
5683
5683
|
const n = e.schema, o = _(!0), i = _(!0);
|
|
5684
|
-
function a(
|
|
5685
|
-
return
|
|
5684
|
+
function a(d) {
|
|
5685
|
+
return d && d.sourceType === "control" ? d.componentCategory === "input" : !1;
|
|
5686
5686
|
}
|
|
5687
5687
|
function r() {
|
|
5688
5688
|
return !1;
|
|
@@ -5693,8 +5693,8 @@ function il(e, t) {
|
|
|
5693
5693
|
function s() {
|
|
5694
5694
|
return !0;
|
|
5695
5695
|
}
|
|
5696
|
-
function
|
|
5697
|
-
return new ol(
|
|
5696
|
+
function c(d) {
|
|
5697
|
+
return new ol(d, t).getPropertyConfig(n);
|
|
5698
5698
|
}
|
|
5699
5699
|
return {
|
|
5700
5700
|
canAccepts: a,
|
|
@@ -5703,27 +5703,27 @@ function il(e, t) {
|
|
|
5703
5703
|
hideNestedPaddingInDesginerView: s,
|
|
5704
5704
|
triggerBelongedComponentToMoveWhenMoved: o,
|
|
5705
5705
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
5706
|
-
getPropsConfig:
|
|
5706
|
+
getPropsConfig: c
|
|
5707
5707
|
};
|
|
5708
5708
|
}
|
|
5709
5709
|
function al(e, t, n, o, i) {
|
|
5710
5710
|
const { getGridHeaderCells: a } = i, r = 120, u = 50, s = j(() => {
|
|
5711
5711
|
var l;
|
|
5712
5712
|
return ((l = e.rowNumber) == null ? void 0 : l.enable) || !1;
|
|
5713
|
-
}),
|
|
5713
|
+
}), c = j(() => {
|
|
5714
5714
|
var l, b;
|
|
5715
5715
|
return ((l = e.selection) == null ? void 0 : l.multiSelect) || ((b = e.selection) == null ? void 0 : b.showCheckbox) || !1;
|
|
5716
|
-
}),
|
|
5716
|
+
}), d = j(
|
|
5717
5717
|
() => {
|
|
5718
5718
|
var l;
|
|
5719
|
-
return 0 + (s.value ? ((l = e.rowNumber) == null ? void 0 : l.width) || 32 : 0) + (
|
|
5719
|
+
return 0 + (s.value ? ((l = e.rowNumber) == null ? void 0 : l.width) || 32 : 0) + (c.value ? u : 0);
|
|
5720
5720
|
}
|
|
5721
|
-
),
|
|
5721
|
+
), p = j(() => {
|
|
5722
5722
|
var l;
|
|
5723
5723
|
return (l = e.columnOption) == null ? void 0 : l.fitColumns;
|
|
5724
|
-
}),
|
|
5724
|
+
}), f = j(() => {
|
|
5725
5725
|
var l;
|
|
5726
|
-
return
|
|
5726
|
+
return p.value && ((l = e.columnOption) == null ? void 0 : l.fitMode) || "none";
|
|
5727
5727
|
});
|
|
5728
5728
|
function y(l, b, I) {
|
|
5729
5729
|
const V = parseInt(l.width, 10) / 100;
|
|
@@ -5797,7 +5797,7 @@ function al(e, t, n, o, i) {
|
|
|
5797
5797
|
l.value.rightColumns.filter((B) => B.visible).forEach((B) => {
|
|
5798
5798
|
B.actualWidth = S(B, l.value, b), V += B.actualWidth;
|
|
5799
5799
|
});
|
|
5800
|
-
const k = I - V, T = g[
|
|
5800
|
+
const k = I - V, T = g[f.value];
|
|
5801
5801
|
if (T && T(l, k), l.value.primaryColumnsWidth + V <= I)
|
|
5802
5802
|
return l.value.primaryColumns = [...h, ...C], l.value.primaryColumnsWidth += V, l.value.rightColumns = [], l.value.rightColumnsWidth = 0, !0;
|
|
5803
5803
|
const O = /* @__PURE__ */ new Map();
|
|
@@ -5809,7 +5809,7 @@ function al(e, t, n, o, i) {
|
|
|
5809
5809
|
function E() {
|
|
5810
5810
|
if (n.value) {
|
|
5811
5811
|
t.value.leftColumnsWidth = 0, t.value.primaryColumnsWidth = 0, t.value.rightColumnsWidth = 0;
|
|
5812
|
-
const l = n.value.clientWidth -
|
|
5812
|
+
const l = n.value.clientWidth - d.value;
|
|
5813
5813
|
t.value.leftColumns.filter((I) => I.visible).forEach((I) => {
|
|
5814
5814
|
I.actualWidth = S(I, t.value, l), t.value.leftColumnsWidth += I.actualWidth;
|
|
5815
5815
|
});
|
|
@@ -5820,19 +5820,19 @@ function al(e, t, n, o, i) {
|
|
|
5820
5820
|
t.value.rightColumns.filter((h) => h.visible).forEach((h) => {
|
|
5821
5821
|
h.actualWidth = S(h, t.value, l), t.value.rightColumnsWidth += h.actualWidth;
|
|
5822
5822
|
});
|
|
5823
|
-
const I = l - t.value.leftColumnsWidth - t.value.rightColumnsWidth, V = g[
|
|
5823
|
+
const I = l - t.value.leftColumnsWidth - t.value.rightColumnsWidth, V = g[f.value];
|
|
5824
5824
|
V && V(t, I), o.value = I;
|
|
5825
5825
|
}
|
|
5826
5826
|
F(t), t.value = Object.assign({}, t.value);
|
|
5827
5827
|
}
|
|
5828
5828
|
}
|
|
5829
|
-
return
|
|
5829
|
+
return he(() => {
|
|
5830
5830
|
var l;
|
|
5831
5831
|
return (l = e.columnOption) == null ? void 0 : l.fitColumns;
|
|
5832
5832
|
}, (l, b) => {
|
|
5833
5833
|
l !== b && l && E();
|
|
5834
|
-
}),
|
|
5835
|
-
l !== b &&
|
|
5834
|
+
}), he(f, (l, b) => {
|
|
5835
|
+
l !== b && p.value && E();
|
|
5836
5836
|
}), { calculateColumnHeaders: F, calculateColumnsSize: E, calculateColumnsWidth: m };
|
|
5837
5837
|
}
|
|
5838
5838
|
const rl = /* @__PURE__ */ Me({
|
|
@@ -5841,9 +5841,9 @@ const rl = /* @__PURE__ */ Me({
|
|
|
5841
5841
|
emits: [],
|
|
5842
5842
|
setup(e, t) {
|
|
5843
5843
|
var $e, De;
|
|
5844
|
-
const n = _(), o = 0, i = (($e = e.rowOption) == null ? void 0 : $e.height) || 28, a = _(20), r = _(e.columns), u = ho(e), s = _(),
|
|
5844
|
+
const n = _(), o = 0, i = (($e = e.rowOption) == null ? void 0 : $e.height) || 28, a = _(20), r = _(e.columns), u = ho(e), s = _(), c = _(), d = _([]), p = _(!1), f = _(((De = e.rowOption) == null ? void 0 : De.wrapContent) || !1), y = ht("designer-host-service"), S = ht("design-item-context"), D = il(S, y), M = Qt(n, S, D);
|
|
5845
5845
|
M.value.designerClass = "f-utils-fill-flex-column";
|
|
5846
|
-
const v = so(), g = uo(e), F = Nn(e, /* @__PURE__ */ new Map(), v, g, u), m = yo(e, F, u,
|
|
5846
|
+
const v = so(), g = uo(e), F = Nn(e, /* @__PURE__ */ new Map(), v, g, u), m = yo(e, F, u, d, t), w = j(() => F.dataView.value.length), {
|
|
5847
5847
|
containerStyleObject: E
|
|
5848
5848
|
} = Ka(e), l = Za(e), {
|
|
5849
5849
|
applyCommands: b
|
|
@@ -5858,8 +5858,8 @@ const rl = /* @__PURE__ */ Me({
|
|
|
5858
5858
|
} = L, J = Ns(e, m), {
|
|
5859
5859
|
sidebarWidth: ie
|
|
5860
5860
|
} = J;
|
|
5861
|
-
|
|
5862
|
-
const se = Is(e, F,
|
|
5861
|
+
d.value = U(0, w.value + o - 1);
|
|
5862
|
+
const se = Is(e, F, d, h, L, w, o, ie), {
|
|
5863
5863
|
onWheel: H,
|
|
5864
5864
|
dataGridWidth: Z,
|
|
5865
5865
|
viewPortHeight: ue,
|
|
@@ -5874,8 +5874,8 @@ const rl = /* @__PURE__ */ Me({
|
|
|
5874
5874
|
"fv-datagrid-strip": e.showStripe
|
|
5875
5875
|
})), Ne = j(() => ({
|
|
5876
5876
|
"fv-grid-content": !0,
|
|
5877
|
-
"fv-grid-content-hover":
|
|
5878
|
-
"fv-grid-wrap-content":
|
|
5877
|
+
"fv-grid-content-hover": p.value,
|
|
5878
|
+
"fv-grid-wrap-content": f.value
|
|
5879
5879
|
})), {
|
|
5880
5880
|
renderGridHeader: Le
|
|
5881
5881
|
} = nl(S, e, I, se, "tree-grid-column"), {
|
|
@@ -5884,19 +5884,19 @@ const rl = /* @__PURE__ */ Me({
|
|
|
5884
5884
|
function ke() {
|
|
5885
5885
|
var Y, de;
|
|
5886
5886
|
const ye = Math.ceil(s.value.clientHeight / i);
|
|
5887
|
-
ye > a.value && (a.value = ye, W()), ue.value = ((Y =
|
|
5887
|
+
ye > a.value && (a.value = ye, W()), ue.value = ((Y = c.value) == null ? void 0 : Y.clientHeight) || 0, Z.value = ((de = s.value) == null ? void 0 : de.clientWidth) || 0, me();
|
|
5888
5888
|
}
|
|
5889
5889
|
pt(() => {
|
|
5890
|
-
n.value.componentInstance = M, s.value && (a.value = Math.max(Math.ceil(s.value.clientHeight / i), a.value),
|
|
5891
|
-
s.value && (Z.value = s.value.clientWidth),
|
|
5890
|
+
n.value.componentInstance = M, s.value && (a.value = Math.max(Math.ceil(s.value.clientHeight / i), a.value), d.value = U(0, w.value + o - 1), Sn(s.value, ke), me(), Xt(() => {
|
|
5891
|
+
s.value && (Z.value = s.value.clientWidth), c.value && (ee.value = c.value.clientWidth, ue.value = c.value.clientHeight);
|
|
5892
5892
|
}));
|
|
5893
5893
|
});
|
|
5894
5894
|
function We(ye) {
|
|
5895
5895
|
ye && (r.value = ye, b(r), C(r.value), V(F, k), me());
|
|
5896
5896
|
}
|
|
5897
|
-
return
|
|
5897
|
+
return he(() => e.columns, (ye) => {
|
|
5898
5898
|
We(ye);
|
|
5899
|
-
}),
|
|
5899
|
+
}), he(ee, () => {
|
|
5900
5900
|
s.value && me();
|
|
5901
5901
|
}), t.expose(M.value), () => x("div", {
|
|
5902
5902
|
ref: n,
|
|
@@ -5908,10 +5908,10 @@ const rl = /* @__PURE__ */ Me({
|
|
|
5908
5908
|
ref: s,
|
|
5909
5909
|
class: Ne.value,
|
|
5910
5910
|
onMouseover: () => {
|
|
5911
|
-
|
|
5911
|
+
p.value = !0;
|
|
5912
5912
|
},
|
|
5913
5913
|
onMouseleave: () => {
|
|
5914
|
-
|
|
5914
|
+
p.value = !1;
|
|
5915
5915
|
}
|
|
5916
5916
|
}, [Be()])]);
|
|
5917
5917
|
}
|
|
@@ -6060,7 +6060,7 @@ const ul = "https://json-schema.org/draft/2020-12/schema", cl = "https://farris-
|
|
|
6060
6060
|
onClick: { type: Function, default: () => {
|
|
6061
6061
|
} }
|
|
6062
6062
|
};
|
|
6063
|
-
|
|
6063
|
+
lt(_l, hl, ll, sl, wl);
|
|
6064
6064
|
const Sl = {
|
|
6065
6065
|
/**
|
|
6066
6066
|
* 自定义类
|
|
@@ -6208,7 +6208,7 @@ class mt {
|
|
|
6208
6208
|
}
|
|
6209
6209
|
}
|
|
6210
6210
|
function xl(e, t) {
|
|
6211
|
-
const n = _(), o = _(), i = _(), a = _(), r = _(), u = _(), s = _(),
|
|
6211
|
+
const n = _(), o = _(), i = _(), a = _(), r = _(), u = _(), s = _(), c = _(), d = _(), p = _(), f = _(), y = _(), S = _(e.draggable), D = _(!1);
|
|
6212
6212
|
function M() {
|
|
6213
6213
|
const B = o.value || document.body, $ = window.getComputedStyle(B);
|
|
6214
6214
|
if (!$ || !n.value)
|
|
@@ -6216,13 +6216,13 @@ function xl(e, t) {
|
|
|
6216
6216
|
const A = Te.getTransformInfo(n.value), L = {};
|
|
6217
6217
|
s.value && (L.deltaL = n.value.offsetLeft - s.value.x, L.deltaT = n.value.offsetTop - s.value.y);
|
|
6218
6218
|
const U = $.getPropertyValue("position");
|
|
6219
|
-
L.width = B.clientWidth, L.height = B.clientHeight, L.pr = parseInt($.getPropertyValue("padding-right"), 10), L.pb = parseInt($.getPropertyValue("padding-bottom"), 10), L.position = $.getPropertyValue("position"), U === "static" && (B.style.position = "relative"), L.translateX = A.x, L.translateY = A.y,
|
|
6219
|
+
L.width = B.clientWidth, L.height = B.clientHeight, L.pr = parseInt($.getPropertyValue("padding-right"), 10), L.pb = parseInt($.getPropertyValue("padding-bottom"), 10), L.position = $.getPropertyValue("position"), U === "static" && (B.style.position = "relative"), L.translateX = A.x, L.translateY = A.y, p.value = L;
|
|
6220
6220
|
}
|
|
6221
6221
|
function v(B) {
|
|
6222
6222
|
if (n.value) {
|
|
6223
6223
|
a.value = mt.getCurrent(n.value), r.value = Te.getCurrent(n.value), u.value = a.value ? mt.copy(a.value) : null, s.value = r.value ? Te.copy(r.value) : null, M();
|
|
6224
6224
|
const $ = B.target.getAttribute("type") || "";
|
|
6225
|
-
|
|
6225
|
+
c.value = {
|
|
6226
6226
|
n: !!$.match(/n/),
|
|
6227
6227
|
s: !!$.match(/s/),
|
|
6228
6228
|
w: !!$.match(/w/),
|
|
@@ -6234,31 +6234,31 @@ function xl(e, t) {
|
|
|
6234
6234
|
var B, $, A, L;
|
|
6235
6235
|
if (n.value) {
|
|
6236
6236
|
const U = n.value;
|
|
6237
|
-
|
|
6237
|
+
c.value && ((c.value.n || c.value.s) && ((B = u.value) != null && B.height) && (U.style.height = u.value.height + "px"), (c.value.w || c.value.e) && (($ = u.value) != null && $.width) && (U.style.width = u.value.width + "px"), s.value && ((A = s.value) != null && A.x && (U.style.left = s.value.x + "px"), (L = s.value) != null && L.y && (U.style.top = s.value.y + "px")));
|
|
6238
6238
|
}
|
|
6239
6239
|
}
|
|
6240
6240
|
function F() {
|
|
6241
6241
|
const B = e.minHeight ? e.minHeight : 1, $ = e.minWidth ? e.minWidth : 1;
|
|
6242
|
-
u.value && s.value &&
|
|
6242
|
+
u.value && s.value && c.value && a.value && (u.value.height < B && (u.value.height = B, c.value.n && r.value && (s.value.y = r.value.y + (a.value.height - B))), u.value.width < $ && (u.value.width = $, c.value.w && r.value && (s.value.x = r.value.x + (a.value.width - $))), e.maxHeight && u.value.height > e.maxHeight && (u.value.height = e.maxHeight, r.value && c.value.n && (s.value.y = r.value.y + (a.value.height - e.maxHeight))), e.maxWidth && u.value.width > e.maxWidth && (u.value.width = e.maxWidth, c.value.w && r.value && (s.value.x = r.value.x + (a.value.width - e.maxWidth))));
|
|
6243
6243
|
}
|
|
6244
6244
|
function m() {
|
|
6245
6245
|
if (o.value) {
|
|
6246
|
-
const B =
|
|
6247
|
-
if (s.value && u.value &&
|
|
6246
|
+
const B = p.value;
|
|
6247
|
+
if (s.value && u.value && c.value && a.value) {
|
|
6248
6248
|
const $ = B.width - B.pr - B.deltaL - B.translateX - s.value.x, A = B.height - B.pb - B.deltaT - B.translateY - s.value.y;
|
|
6249
|
-
|
|
6249
|
+
c.value.n && s.value.y + B.translateY < 0 && r.value && (s.value.y = -B.translateY, u.value.height = a.value.height + r.value.y + B.translateY), c.value.w && s.value.x + B.translateX < 0 && r.value && (s.value.x = -B.translateX, u.value.width = a.value.width + r.value.x + B.translateX), u.value.width > $ && (u.value.width = $), u.value.height > A && (u.value.height = A);
|
|
6250
6250
|
}
|
|
6251
6251
|
}
|
|
6252
6252
|
}
|
|
6253
6253
|
function w(B) {
|
|
6254
|
-
if (!i.value || !a.value || !r.value || !
|
|
6254
|
+
if (!i.value || !a.value || !r.value || !c.value)
|
|
6255
6255
|
return;
|
|
6256
6256
|
B.subtract(i.value);
|
|
6257
6257
|
const $ = B.x, A = B.y;
|
|
6258
|
-
|
|
6258
|
+
c.value.n ? (s.value.y = r.value.y + A, u.value.height = a.value.height - A) : c.value.s && (u.value.height = a.value.height + A), c.value.e ? u.value.width = a.value.width + $ : c.value.w && (u.value.width = a.value.width - $, s.value.x = r.value.x + $), m(), F(), g();
|
|
6259
6259
|
}
|
|
6260
6260
|
function E(B) {
|
|
6261
|
-
if (!
|
|
6261
|
+
if (!d.value)
|
|
6262
6262
|
return;
|
|
6263
6263
|
const $ = Te.fromEvent(B);
|
|
6264
6264
|
$ && w($);
|
|
@@ -6287,15 +6287,15 @@ function xl(e, t) {
|
|
|
6287
6287
|
function b(B) {
|
|
6288
6288
|
if (n.value) {
|
|
6289
6289
|
const $ = l();
|
|
6290
|
-
|
|
6290
|
+
f.value = $;
|
|
6291
6291
|
}
|
|
6292
|
-
i.value = void 0, a.value = null, r.value = null, u.value = null, s.value = null,
|
|
6292
|
+
i.value = void 0, a.value = null, r.value = null, u.value = null, s.value = null, c.value = null, d.value = null, document.removeEventListener("mousemove", E), document.removeEventListener("mouseup", b);
|
|
6293
6293
|
}
|
|
6294
6294
|
function I() {
|
|
6295
6295
|
document.addEventListener("mousemove", E), document.addEventListener("mouseup", b);
|
|
6296
6296
|
}
|
|
6297
6297
|
function V(B) {
|
|
6298
|
-
B instanceof MouseEvent && B.button === 2 || S.value && (document.body.click(), B.stopPropagation(), B.preventDefault(), i.value = Te.fromEvent(B),
|
|
6298
|
+
B instanceof MouseEvent && B.button === 2 || S.value && (document.body.click(), B.stopPropagation(), B.preventDefault(), i.value = Te.fromEvent(B), d.value = B.target, v(B), I());
|
|
6299
6299
|
}
|
|
6300
6300
|
function h(B) {
|
|
6301
6301
|
return n.value = B, x(yt, null, [x("div", {
|
|
@@ -6335,7 +6335,7 @@ function xl(e, t) {
|
|
|
6335
6335
|
function C(B = !0) {
|
|
6336
6336
|
document.body.click();
|
|
6337
6337
|
const $ = o.value || document.body, A = mt.getCurrent($), L = n.value;
|
|
6338
|
-
B && L && (y.value = l(), y.value.transform = L.style.transform), A && L && (u.value = A, L.style.height = u.value.height - 14 + "px", L.style.width = u.value.width - 14 + "px", L.style.left = "7px", L.style.top = "7px", L.style.transform = "",
|
|
6338
|
+
B && L && (y.value = l(), y.value.transform = L.style.transform), A && L && (u.value = A, L.style.height = u.value.height - 14 + "px", L.style.width = u.value.width - 14 + "px", L.style.left = "7px", L.style.top = "7px", L.style.transform = "", f.value = {
|
|
6339
6339
|
size: u.value,
|
|
6340
6340
|
position: {
|
|
6341
6341
|
x: 0,
|
|
@@ -6355,7 +6355,7 @@ function xl(e, t) {
|
|
|
6355
6355
|
};
|
|
6356
6356
|
(B = u.value) == null || B.set(A), ($ = s.value) == null || $.set(L);
|
|
6357
6357
|
const U = n.value;
|
|
6358
|
-
U.style.height = A.height + "px", U.style.width = A.width + "px", U.style.left = `${L.x}px`, U.style.top = `${L.y}px`, U.style.transform = "",
|
|
6358
|
+
U.style.height = A.height + "px", U.style.width = A.width + "px", U.style.left = `${L.x}px`, U.style.top = `${L.y}px`, U.style.transform = "", f.value = {
|
|
6359
6359
|
size: A,
|
|
6360
6360
|
position: L
|
|
6361
6361
|
}, S.value = e.draggable, D.value = !1;
|
|
@@ -6385,7 +6385,7 @@ function xl(e, t) {
|
|
|
6385
6385
|
return {
|
|
6386
6386
|
renderResizeBar: h,
|
|
6387
6387
|
boundingElement: o,
|
|
6388
|
-
resizedEventParam:
|
|
6388
|
+
resizedEventParam: f,
|
|
6389
6389
|
maximize: C,
|
|
6390
6390
|
restore: k,
|
|
6391
6391
|
allowDrag: S,
|
|
@@ -6394,8 +6394,8 @@ function xl(e, t) {
|
|
|
6394
6394
|
};
|
|
6395
6395
|
}
|
|
6396
6396
|
function Tl(e, t, n) {
|
|
6397
|
-
const o = _(), i = _(e.draggable), a = _(e.lockAxis), r = _(), u = _(), s = _(!1),
|
|
6398
|
-
|
|
6397
|
+
const o = _(), i = _(e.draggable), a = _(e.lockAxis), r = _(), u = _(), s = _(!1), c = _(new Te(0, 0)), d = _(new Te(0, 0)), p = _(new Te(0, 0)), f = _(new Te(0, 0));
|
|
6398
|
+
he(() => n.value, (l) => {
|
|
6399
6399
|
r.value.style.cursor = l ? "move" : "default";
|
|
6400
6400
|
});
|
|
6401
6401
|
function y(l, b) {
|
|
@@ -6410,10 +6410,10 @@ function Tl(e, t, n) {
|
|
|
6410
6410
|
}
|
|
6411
6411
|
function S() {
|
|
6412
6412
|
var V, h;
|
|
6413
|
-
let l =
|
|
6414
|
-
a.value === "x" ? (l = ((V =
|
|
6413
|
+
let l = p.value.x + d.value.x, b = p.value.y + d.value.y;
|
|
6414
|
+
a.value === "x" ? (l = ((V = c.value) == null ? void 0 : V.x) || 0, p.value.x = 0) : a.value === "y" && (b = ((h = c.value) == null ? void 0 : h.y) || 0, p.value.y = 0);
|
|
6415
6415
|
const I = `translate3d(${Math.round(l)}px, ${Math.round(b)}px, 0px)`;
|
|
6416
|
-
o.value && (o.value.style.transform = I),
|
|
6416
|
+
o.value && (o.value.style.transform = I), f.value.x = l, f.value.y = b;
|
|
6417
6417
|
}
|
|
6418
6418
|
function D() {
|
|
6419
6419
|
if (!u.value || !o.value)
|
|
@@ -6424,17 +6424,17 @@ function Tl(e, t, n) {
|
|
|
6424
6424
|
bottom: l.bottom > b.bottom,
|
|
6425
6425
|
left: l.left < b.left
|
|
6426
6426
|
};
|
|
6427
|
-
return I.top || (
|
|
6427
|
+
return I.top || (p.value.y -= b.top - l.top), I.bottom || (p.value.y -= b.bottom - l.bottom), I.right || (p.value.x -= b.right - l.right), I.left || (p.value.x -= b.left - l.left), S(), I;
|
|
6428
6428
|
}
|
|
6429
6429
|
function M(l) {
|
|
6430
|
-
l && (
|
|
6430
|
+
l && (c.value && l.subtract(c.value), p.value.set(l), S(), D());
|
|
6431
6431
|
}
|
|
6432
6432
|
function v(l) {
|
|
6433
6433
|
s.value && i.value && (l.stopPropagation(), l.preventDefault(), M(Te.fromEvent(l, r.value)));
|
|
6434
6434
|
}
|
|
6435
6435
|
function g() {
|
|
6436
6436
|
var l;
|
|
6437
|
-
s.value && (s.value = !1,
|
|
6437
|
+
s.value && (s.value = !1, d.value.add(p.value), p.value.reset(), (l = o.value) == null || l.classList.remove("ng-dragging"), document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", g));
|
|
6438
6438
|
}
|
|
6439
6439
|
function F() {
|
|
6440
6440
|
!s.value && r.value && (s.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", v), document.addEventListener("mouseup", g));
|
|
@@ -6442,16 +6442,16 @@ function Tl(e, t, n) {
|
|
|
6442
6442
|
function m() {
|
|
6443
6443
|
if (o.value) {
|
|
6444
6444
|
const l = Te.getTransformInfo(o.value);
|
|
6445
|
-
|
|
6445
|
+
d.value.set(l);
|
|
6446
6446
|
return;
|
|
6447
6447
|
}
|
|
6448
|
-
|
|
6448
|
+
d.value.reset();
|
|
6449
6449
|
}
|
|
6450
6450
|
function w(l) {
|
|
6451
6451
|
if (!n.value || l instanceof MouseEvent && l.button === 2)
|
|
6452
6452
|
return;
|
|
6453
6453
|
const b = l.target || l.srcElement;
|
|
6454
|
-
r.value !== void 0 && b && !y(b, r.value) || i.value !== !1 && (document.body.click(), l.stopPropagation(), l.preventDefault(),
|
|
6454
|
+
r.value !== void 0 && b && !y(b, r.value) || i.value !== !1 && (document.body.click(), l.stopPropagation(), l.preventDefault(), c.value = Te.fromEvent(l, o.value), m(), F());
|
|
6455
6455
|
}
|
|
6456
6456
|
function E(l, b, I) {
|
|
6457
6457
|
if (i.value && b) {
|
|
@@ -6506,7 +6506,7 @@ const _t = /* @__PURE__ */ Me({
|
|
|
6506
6506
|
props: Sl,
|
|
6507
6507
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
|
|
6508
6508
|
setup(e, t) {
|
|
6509
|
-
const n = _(e.width || 300), o = _(e.height || 200), i = _(e.modelValue), a = _(""), r = _(e.class), u = _(e.fitContent), s = _(e.showHeader),
|
|
6509
|
+
const n = _(e.width || 300), o = _(e.height || 200), i = _(e.modelValue), a = _(""), r = _(e.class), u = _(e.fitContent), s = _(e.showHeader), c = _(""), d = _(e.showCloseButton), p = _(e.showMaxButton), f = _(!1), y = _(e.dialogType), S = _(e.src), D = _(""), M = _(e.showButtons), v = _(e.title), g = _(e.resizeable), F = _(e.containment || null), m = _();
|
|
6510
6510
|
function w(Y, de) {
|
|
6511
6511
|
i.value = !1, t.emit("update:modelValue", !1), de != null && t.emit(de ? "accept" : "cancel"), t.emit("closed", Y);
|
|
6512
6512
|
}
|
|
@@ -6524,7 +6524,7 @@ const _t = /* @__PURE__ */ Me({
|
|
|
6524
6524
|
handle: (Y) => {
|
|
6525
6525
|
w(Y, !0);
|
|
6526
6526
|
}
|
|
6527
|
-
}], l = _(e.buttons && e.buttons.length ? e.buttons : E), b = j(() => !!
|
|
6527
|
+
}], l = _(e.buttons && e.buttons.length ? e.buttons : E), b = j(() => !!c.value), I = j(() => !!M.value && !!l.value), V = _(), h = _(), C = _(!1), {
|
|
6528
6528
|
renderResizeBar: k,
|
|
6529
6529
|
maximize: T,
|
|
6530
6530
|
restore: O,
|
|
@@ -6539,15 +6539,15 @@ const _t = /* @__PURE__ */ Me({
|
|
|
6539
6539
|
const Y = document.querySelectorAll(".farris-modal").length;
|
|
6540
6540
|
(!Y || Y - 1 <= 0) && document.body.classList.remove("modal-open"), m.value && m.value.classList.remove("show");
|
|
6541
6541
|
}
|
|
6542
|
-
|
|
6542
|
+
he(() => e.title, (Y, de) => {
|
|
6543
6543
|
Y !== de && (v.value = Y);
|
|
6544
|
-
}),
|
|
6544
|
+
}), he(() => e.modelValue, (Y, de) => {
|
|
6545
6545
|
Y !== de && (i.value = Y, Y || U());
|
|
6546
|
-
}),
|
|
6546
|
+
}), he(() => e.showHeader, (Y, de) => {
|
|
6547
6547
|
Y !== de && (s.value = Y);
|
|
6548
|
-
}),
|
|
6548
|
+
}), he(() => e.showButtons, (Y, de) => {
|
|
6549
6549
|
Y !== de && (M.value = Y);
|
|
6550
|
-
}),
|
|
6550
|
+
}), he(() => B.value, (Y, de) => {
|
|
6551
6551
|
const je = Y || {}, Pe = de || {};
|
|
6552
6552
|
JSON.stringify(je) !== JSON.stringify(Pe) && t.emit("resize", {
|
|
6553
6553
|
newSize: Y,
|
|
@@ -6623,17 +6623,17 @@ const _t = /* @__PURE__ */ Me({
|
|
|
6623
6623
|
maxDialog: fe
|
|
6624
6624
|
});
|
|
6625
6625
|
function We() {
|
|
6626
|
-
return x("ul", null, [
|
|
6626
|
+
return x("ul", null, [f.value && x("li", {
|
|
6627
6627
|
class: "f-btn-icon f-bare"
|
|
6628
6628
|
}, [x("span", {
|
|
6629
6629
|
class: "f-icon modal_minimize"
|
|
6630
|
-
}, null)]),
|
|
6630
|
+
}, null)]), p.value && x("li", {
|
|
6631
6631
|
onClick: fe,
|
|
6632
6632
|
class: "f-btn-icon f-bare",
|
|
6633
6633
|
style: "pointer-events: auto;"
|
|
6634
6634
|
}, [x("span", {
|
|
6635
6635
|
class: ee.value
|
|
6636
|
-
}, null)]),
|
|
6636
|
+
}, null)]), d.value && x("li", {
|
|
6637
6637
|
class: "f-btn-icon f-bare",
|
|
6638
6638
|
onClick: (Y) => w(Y, !1),
|
|
6639
6639
|
style: "pointer-events: auto;"
|
|
@@ -6664,7 +6664,7 @@ const _t = /* @__PURE__ */ Me({
|
|
|
6664
6664
|
}, [x("div", {
|
|
6665
6665
|
class: "modal-title"
|
|
6666
6666
|
}, [b.value && x("span", {
|
|
6667
|
-
class:
|
|
6667
|
+
class: c.value,
|
|
6668
6668
|
style: "margin-right: 8px"
|
|
6669
6669
|
}, null), x("span", {
|
|
6670
6670
|
class: "modal-title-label"
|
|
@@ -6724,12 +6724,12 @@ function Il(e) {
|
|
|
6724
6724
|
Vt(() => {
|
|
6725
6725
|
document.body.removeChild(t);
|
|
6726
6726
|
});
|
|
6727
|
-
const a = _(), r = _(e.class || ""), u = _(!!e.showButtons), s = _(!!e.showHeader),
|
|
6727
|
+
const a = _(), r = _(e.class || ""), u = _(!!e.showButtons), s = _(!!e.showHeader), c = _(e.showCloseButton == null ? !0 : e.showCloseButton), d = _(!0), p = _(e.title || ""), f = e.acceptCallback || (() => {
|
|
6728
6728
|
}), y = e.rejectCallback || (() => {
|
|
6729
6729
|
}), S = e.closedCallback || ((g) => {
|
|
6730
6730
|
}), D = e.resizeHandle || ((g) => {
|
|
6731
6731
|
}), M = ao(e), v = (g) => {
|
|
6732
|
-
|
|
6732
|
+
d.value = !1, n.unmount(), S(g);
|
|
6733
6733
|
};
|
|
6734
6734
|
return pt(() => {
|
|
6735
6735
|
}), i.expose({
|
|
@@ -6737,17 +6737,17 @@ function Il(e) {
|
|
|
6737
6737
|
}), () => x(_t, {
|
|
6738
6738
|
ref: a,
|
|
6739
6739
|
class: r.value,
|
|
6740
|
-
modelValue:
|
|
6741
|
-
"onUpdate:modelValue": (g) =>
|
|
6742
|
-
title:
|
|
6740
|
+
modelValue: d.value,
|
|
6741
|
+
"onUpdate:modelValue": (g) => d.value = g,
|
|
6742
|
+
title: p.value,
|
|
6743
6743
|
width: e.width,
|
|
6744
6744
|
height: e.height,
|
|
6745
6745
|
buttons: e.buttons,
|
|
6746
6746
|
"show-header": s.value,
|
|
6747
6747
|
"show-buttons": u.value,
|
|
6748
|
-
"show-close-button":
|
|
6748
|
+
"show-close-button": c.value,
|
|
6749
6749
|
"show-max-button": !1,
|
|
6750
|
-
onAccept:
|
|
6750
|
+
onAccept: f,
|
|
6751
6751
|
onCancel: y,
|
|
6752
6752
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
6753
6753
|
onClosed: v,
|
|
@@ -6805,15 +6805,15 @@ class ro {
|
|
|
6805
6805
|
}), u = o.value.closedCallback || ((m, w) => {
|
|
6806
6806
|
}), s = o.value.resizeHandle || ((m) => {
|
|
6807
6807
|
});
|
|
6808
|
-
let
|
|
6809
|
-
const
|
|
6808
|
+
let c;
|
|
6809
|
+
const d = ao(o.value), p = (m) => {
|
|
6810
6810
|
var E;
|
|
6811
6811
|
i.value = !1;
|
|
6812
6812
|
const w = (E = m == null ? void 0 : m.target) == null ? void 0 : E.classList.contains("modal_close");
|
|
6813
6813
|
u(m, this.isUseEscCloseModal.value ? "esc" : w ? "icon" : "button");
|
|
6814
|
-
},
|
|
6815
|
-
|
|
6816
|
-
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], jt(null, n),
|
|
6814
|
+
}, f = (m) => {
|
|
6815
|
+
p(m), c && Xt(() => {
|
|
6816
|
+
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], jt(null, n), c = null, this.modalRef.value = null, this.modalRefs) {
|
|
6817
6817
|
const w = Object.keys(this.modalRefs).map((E) => Number(E));
|
|
6818
6818
|
w.length > 0 ? this.activeModalIndex.value = Math.max(...w) : this.activeModalIndex.value = 0;
|
|
6819
6819
|
}
|
|
@@ -6834,13 +6834,13 @@ class ro {
|
|
|
6834
6834
|
}, o.value, {
|
|
6835
6835
|
onAccept: a,
|
|
6836
6836
|
onCancel: r,
|
|
6837
|
-
onClosed:
|
|
6837
|
+
onClosed: f,
|
|
6838
6838
|
onResize: s,
|
|
6839
6839
|
onEsc: y
|
|
6840
6840
|
}), {
|
|
6841
|
-
default: () => [
|
|
6841
|
+
default: () => [d && d(this.app)]
|
|
6842
6842
|
});
|
|
6843
|
-
return
|
|
6843
|
+
return c = ((m) => {
|
|
6844
6844
|
const w = Eo(v, m);
|
|
6845
6845
|
return w.appContext = this.appContext, jt(w, n), w;
|
|
6846
6846
|
})({
|
|
@@ -6851,11 +6851,11 @@ class ro {
|
|
|
6851
6851
|
o.value = {
|
|
6852
6852
|
...o.value,
|
|
6853
6853
|
...m
|
|
6854
|
-
},
|
|
6854
|
+
}, c && jt(Vo(c, {
|
|
6855
6855
|
...o
|
|
6856
6856
|
}), n);
|
|
6857
6857
|
},
|
|
6858
|
-
destroy:
|
|
6858
|
+
destroy: f,
|
|
6859
6859
|
modalRef: this.activeModalInstance
|
|
6860
6860
|
};
|
|
6861
6861
|
}
|
|
@@ -6870,21 +6870,32 @@ const Ml = {
|
|
|
6870
6870
|
id: { type: String },
|
|
6871
6871
|
required: { type: Boolean, default: !1 },
|
|
6872
6872
|
text: { type: String, default: "" },
|
|
6873
|
-
title: { type: String }
|
|
6873
|
+
title: { type: String },
|
|
6874
|
+
valid: { type: Boolean, default: !0 },
|
|
6875
|
+
inValidTip: { type: String, default: "" }
|
|
6874
6876
|
}, El = /* @__PURE__ */ Me({
|
|
6875
6877
|
name: "FDynamicFormLabel",
|
|
6876
6878
|
props: Ml,
|
|
6877
6879
|
emits: [],
|
|
6878
6880
|
setup(e, t) {
|
|
6879
|
-
const n = _(e.title || e.text), o = _(e.required), i = _(e.text);
|
|
6880
|
-
|
|
6881
|
+
const n = _(e.title || e.text), o = _(e.required), i = _(e.text), a = _(e.valid), r = _(e.inValidTip);
|
|
6882
|
+
he(() => e.text, () => {
|
|
6881
6883
|
i.value = e.text;
|
|
6882
|
-
}),
|
|
6883
|
-
|
|
6884
|
-
}), () =>
|
|
6884
|
+
}), he(() => e.required, (c, d) => {
|
|
6885
|
+
c !== d && (o.value = c);
|
|
6886
|
+
}), he([() => e.valid, () => e.inValidTip], ([c, d]) => {
|
|
6887
|
+
a.value = c, r.value = d;
|
|
6888
|
+
});
|
|
6889
|
+
const u = j(() => a.value ? n.value : r.value), s = j(() => a.value ? "" : "color:red");
|
|
6890
|
+
return () => i.value && x("label", {
|
|
6885
6891
|
class: "col-form-label",
|
|
6886
|
-
title:
|
|
6887
|
-
|
|
6892
|
+
title: u.value,
|
|
6893
|
+
style: s.value
|
|
6894
|
+
}, [!a.value && x("span", {
|
|
6895
|
+
class: "f-icon f-icon-warning mr-1",
|
|
6896
|
+
style: "color: red; min-width: 16px;",
|
|
6897
|
+
title: r.value
|
|
6898
|
+
}, null), o.value && x("span", {
|
|
6888
6899
|
class: "farris-label-info text-danger"
|
|
6889
6900
|
}, [Ke("*")]), x("span", {
|
|
6890
6901
|
class: "farris-label-text"
|
|
@@ -6988,10 +6999,10 @@ const Dl = /* @__PURE__ */ Me({
|
|
|
6988
6999
|
emits: ["change", "update:modelValue"],
|
|
6989
7000
|
setup(e, t) {
|
|
6990
7001
|
var m;
|
|
6991
|
-
const n = _(e.id), o = _(e.customClass), i = _(e.editor), a = _(e.label), r = _(e.modelValue), u = _(e.readonly), s = _(((m = e.editor) == null ? void 0 : m.required) || e.required),
|
|
7002
|
+
const n = _(e.id), o = _(e.customClass), i = _(e.editor), a = _(e.label), r = _(e.modelValue), u = _(e.readonly), s = _(((m = e.editor) == null ? void 0 : m.required) || e.required), c = _(e.showLabel), d = _(e.visible);
|
|
6992
7003
|
_(e.type);
|
|
6993
|
-
const
|
|
6994
|
-
resolveEditorProps:
|
|
7004
|
+
const p = _(), {
|
|
7005
|
+
resolveEditorProps: f,
|
|
6995
7006
|
resolveEditorType: y,
|
|
6996
7007
|
getChangeFunctionName: S,
|
|
6997
7008
|
getClearFunctionName: D
|
|
@@ -7008,20 +7019,20 @@ const Dl = /* @__PURE__ */ Me({
|
|
|
7008
7019
|
t.emit("update:modelValue", "");
|
|
7009
7020
|
}
|
|
7010
7021
|
const F = j(() => {
|
|
7011
|
-
const w = i.value.type || "input-group", E = y(w), l =
|
|
7022
|
+
const w = i.value.type || "input-group", E = y(w), l = f(w, i.value), b = S(w), I = D(i.value.type);
|
|
7012
7023
|
return I && (l[I] = g), l[b] = v, (l.id == null || l.id === "") && (l.id = n.value), w === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (l.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (l.onEndValueChange = i.value.onEndValueChange)) : w === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" && (l["onUpdate:idValue"] = i.value["onUpdate:idValue"]), () => x(E, vt({
|
|
7013
|
-
ref:
|
|
7024
|
+
ref: p
|
|
7014
7025
|
}, l, {
|
|
7015
7026
|
modelValue: r.value,
|
|
7016
7027
|
"onUpdate:modelValue": (V) => r.value = V
|
|
7017
7028
|
}), t.slots);
|
|
7018
7029
|
});
|
|
7019
|
-
return
|
|
7030
|
+
return he([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([w, E, l, b, I, V, h, C, k]) => {
|
|
7020
7031
|
var T;
|
|
7021
|
-
n.value = w, o.value = E, i.value = l, a.value = b, r.value = I, u.value = V, s.value = ((T = i.value) == null ? void 0 : T.required) || h,
|
|
7032
|
+
n.value = w, o.value = E, i.value = l, a.value = b, r.value = I, u.value = V, s.value = ((T = i.value) == null ? void 0 : T.required) || h, c.value = C, d.value = k;
|
|
7022
7033
|
}), t.expose({
|
|
7023
|
-
editorRef:
|
|
7024
|
-
}), () =>
|
|
7034
|
+
editorRef: p
|
|
7035
|
+
}), () => d.value && x("div", {
|
|
7025
7036
|
id: `${n.value}-input-group`,
|
|
7026
7037
|
class: o.value,
|
|
7027
7038
|
style: e.customStyle
|
|
@@ -7029,7 +7040,7 @@ const Dl = /* @__PURE__ */ Me({
|
|
|
7029
7040
|
class: "farris-group-wrap"
|
|
7030
7041
|
}, [x("div", {
|
|
7031
7042
|
class: M.value
|
|
7032
|
-
}, [
|
|
7043
|
+
}, [c.value && x(El, {
|
|
7033
7044
|
id: `${n.value}-lable`,
|
|
7034
7045
|
required: s.value,
|
|
7035
7046
|
text: a.value,
|
|
@@ -7338,7 +7349,7 @@ const $l = "https://json-schema.org/draft/2020-12/schema", jl = "https://farris-
|
|
|
7338
7349
|
*/
|
|
7339
7350
|
updateOn: { type: String, default: "blur" }
|
|
7340
7351
|
};
|
|
7341
|
-
|
|
7352
|
+
lt(ql, Gl, Rl, Nl);
|
|
7342
7353
|
const Ct = class Ct {
|
|
7343
7354
|
/**
|
|
7344
7355
|
* 根据绑定字段类型获取可用的输入类控件
|
|
@@ -7445,7 +7456,7 @@ const Ul = {
|
|
|
7445
7456
|
*/
|
|
7446
7457
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
7447
7458
|
};
|
|
7448
|
-
|
|
7459
|
+
lt(
|
|
7449
7460
|
Ul,
|
|
7450
7461
|
Qn,
|
|
7451
7462
|
Jt,
|
|
@@ -7539,24 +7550,24 @@ function ls() {
|
|
|
7539
7550
|
return { onCopy: e };
|
|
7540
7551
|
}
|
|
7541
7552
|
function ss(e, t, n, o) {
|
|
7542
|
-
const i = _(14), a = _(140), r = _(""), u = _(o.value.length), s = j(() => o.value),
|
|
7553
|
+
const i = _(14), a = _(140), r = _(""), u = _(o.value.length), s = j(() => o.value), c = j(() => ({
|
|
7543
7554
|
"font-size": `${i.value}px`,
|
|
7544
7555
|
height: "100%"
|
|
7545
7556
|
}));
|
|
7546
|
-
function p
|
|
7547
|
-
if (
|
|
7548
|
-
const
|
|
7549
|
-
u.value =
|
|
7557
|
+
function d(p) {
|
|
7558
|
+
if (p.currentTarget) {
|
|
7559
|
+
const f = p.currentTarget.value || "";
|
|
7560
|
+
u.value = f.length;
|
|
7550
7561
|
}
|
|
7551
7562
|
}
|
|
7552
7563
|
return () => x(yt, null, [x("textarea", {
|
|
7553
7564
|
title: "promptMessage",
|
|
7554
7565
|
name: "promptMessage",
|
|
7555
7566
|
class: "form-control",
|
|
7556
|
-
style:
|
|
7567
|
+
style: c.value,
|
|
7557
7568
|
rows: "4",
|
|
7558
7569
|
maxlength: a.value,
|
|
7559
|
-
onInput: (
|
|
7570
|
+
onInput: (p) => d(p)
|
|
7560
7571
|
}, [s.value]), x("span", {
|
|
7561
7572
|
class: "textarea-wordcount",
|
|
7562
7573
|
title: r.value,
|
|
@@ -7634,15 +7645,15 @@ function ps(e) {
|
|
|
7634
7645
|
}
|
|
7635
7646
|
function ms(e, t, n, o) {
|
|
7636
7647
|
const i = _(e.exceptionInfo), a = j(() => {
|
|
7637
|
-
const
|
|
7648
|
+
const f = {
|
|
7638
7649
|
"f-icon": !0
|
|
7639
7650
|
}, y = `f-icon-${t.value}`;
|
|
7640
|
-
return
|
|
7641
|
-
}), r = j(() => n.value || i.value && i.value.message), u = j(() => o.value), s = j(() => !!o.value),
|
|
7642
|
-
function
|
|
7643
|
-
return
|
|
7651
|
+
return f[y] = !0, f;
|
|
7652
|
+
}), r = j(() => n.value || i.value && i.value.message), u = j(() => o.value), s = j(() => !!o.value), c = j(() => !!i.value);
|
|
7653
|
+
function d() {
|
|
7654
|
+
return c.value ? fs(i) : s.value ? ps(u) : () => null;
|
|
7644
7655
|
}
|
|
7645
|
-
const
|
|
7656
|
+
const p = d();
|
|
7646
7657
|
return () => x(yt, null, [x("div", {
|
|
7647
7658
|
class: "float-left modal-tips-iconwrap"
|
|
7648
7659
|
}, [x("span", {
|
|
@@ -7652,7 +7663,7 @@ function ms(e, t, n, o) {
|
|
|
7652
7663
|
}, [x("p", {
|
|
7653
7664
|
class: "toast-msg-title",
|
|
7654
7665
|
innerHTML: r.value
|
|
7655
|
-
}, null),
|
|
7666
|
+
}, null), p()])]);
|
|
7656
7667
|
}
|
|
7657
7668
|
function vs(e, t, n) {
|
|
7658
7669
|
const {
|
|
@@ -7664,8 +7675,8 @@ function vs(e, t, n) {
|
|
|
7664
7675
|
message: "",
|
|
7665
7676
|
detail: ""
|
|
7666
7677
|
}), s = j(() => u.value && u.value.detail || "");
|
|
7667
|
-
function
|
|
7668
|
-
o(s.value).catch((
|
|
7678
|
+
function c(d) {
|
|
7679
|
+
o(s.value).catch((p) => {
|
|
7669
7680
|
a.value = "复制失败";
|
|
7670
7681
|
}).finally(() => {
|
|
7671
7682
|
i.value = !0, setTimeout(() => {
|
|
@@ -7676,12 +7687,12 @@ function vs(e, t, n) {
|
|
|
7676
7687
|
return () => x("span", {
|
|
7677
7688
|
style: "width: 100%;color: #2A87FF;padding-left: 37px;"
|
|
7678
7689
|
}, [x("span", {
|
|
7679
|
-
onClick:
|
|
7690
|
+
onClick: c,
|
|
7680
7691
|
style: "cursor: pointer;"
|
|
7681
7692
|
}, [r.value])]);
|
|
7682
7693
|
}
|
|
7683
7694
|
function hs(e, t, n, o) {
|
|
7684
|
-
const i = _(e.type), a = _(e.buttons), r = _(e.exceptionInfo), u = _(e.okButtonText), s = _(e.cancelButtonText),
|
|
7695
|
+
const i = _(e.type), a = _(e.buttons), r = _(e.exceptionInfo), u = _(e.okButtonText), s = _(e.cancelButtonText), c = _(!0), d = _(!0), p = j(() => !!(a.value && a.value.length)), f = j(() => r.value && r.value.date && r.value.message && r.value.detail), y = j(() => !(a.value && a.value.length) && (u.value || s.value)), S = j(() => d.value && u.value), D = j(() => c.value && s.value), M = vs(e, n, o);
|
|
7685
7696
|
function v(F) {
|
|
7686
7697
|
i.value === "question" && t.emit("reject"), t.emit("close");
|
|
7687
7698
|
}
|
|
@@ -7690,7 +7701,7 @@ function hs(e, t, n, o) {
|
|
|
7690
7701
|
}
|
|
7691
7702
|
return () => x("div", {
|
|
7692
7703
|
class: "modal-footer"
|
|
7693
|
-
}, [
|
|
7704
|
+
}, [f.value && M(), y.value && D.value && x("button", {
|
|
7694
7705
|
type: "button",
|
|
7695
7706
|
class: "btn btn-secondary btn-lg",
|
|
7696
7707
|
onClick: v
|
|
@@ -7698,7 +7709,7 @@ function hs(e, t, n, o) {
|
|
|
7698
7709
|
type: "button",
|
|
7699
7710
|
class: "btn btn-primary btn-lg",
|
|
7700
7711
|
onClick: g
|
|
7701
|
-
}, [u.value]),
|
|
7712
|
+
}, [u.value]), p.value && a.value.length && a.value.map((F) => x("button", {
|
|
7702
7713
|
type: "button",
|
|
7703
7714
|
onClick: F.handle,
|
|
7704
7715
|
class: F.class
|
|
@@ -7721,14 +7732,14 @@ const kt = /* @__PURE__ */ Me({
|
|
|
7721
7732
|
}), r = j(() => {
|
|
7722
7733
|
const M = {};
|
|
7723
7734
|
return n.value === "prompt" ? M.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (M.padding = "0.5rem 1.5rem 1rem 1.5rem"), M;
|
|
7724
|
-
}), u = ls(), s = us(e, n, o, i),
|
|
7725
|
-
feedbackStyle:
|
|
7726
|
-
feedbackMessage:
|
|
7727
|
-
} =
|
|
7728
|
-
function
|
|
7735
|
+
}), u = ls(), s = us(e, n, o, i), c = cs(), {
|
|
7736
|
+
feedbackStyle: d,
|
|
7737
|
+
feedbackMessage: p
|
|
7738
|
+
} = c;
|
|
7739
|
+
function f() {
|
|
7729
7740
|
return x("div", {
|
|
7730
|
-
style:
|
|
7731
|
-
}, [
|
|
7741
|
+
style: d.value
|
|
7742
|
+
}, [p.value]);
|
|
7732
7743
|
}
|
|
7733
7744
|
function y() {
|
|
7734
7745
|
switch (n.value) {
|
|
@@ -7738,27 +7749,27 @@ const kt = /* @__PURE__ */ Me({
|
|
|
7738
7749
|
return ms(e, n, o, i);
|
|
7739
7750
|
}
|
|
7740
7751
|
}
|
|
7741
|
-
const S = y(), D = hs(e, t, u,
|
|
7752
|
+
const S = y(), D = hs(e, t, u, c);
|
|
7742
7753
|
return () => x("div", {
|
|
7743
7754
|
class: "farris-messager"
|
|
7744
7755
|
}, [x("section", {
|
|
7745
7756
|
class: a.value,
|
|
7746
7757
|
style: r.value
|
|
7747
|
-
}, [S()]), D(),
|
|
7758
|
+
}, [S()]), D(), f()]);
|
|
7748
7759
|
}
|
|
7749
7760
|
});
|
|
7750
|
-
class
|
|
7761
|
+
class dt {
|
|
7751
7762
|
static show(t) {
|
|
7752
7763
|
const n = rt({
|
|
7753
7764
|
...t
|
|
7754
7765
|
}), o = !1, i = n.type === "error" || n.type === "prompt", a = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", r = n.acceptCallback || (() => {
|
|
7755
7766
|
}), u = n.rejectCallback || (() => {
|
|
7756
7767
|
});
|
|
7757
|
-
let s = null,
|
|
7758
|
-
const
|
|
7759
|
-
s && (s == null || s.destroy(),
|
|
7768
|
+
let s = null, c = new ro(s);
|
|
7769
|
+
const d = () => {
|
|
7770
|
+
s && (s == null || s.destroy(), c = null);
|
|
7760
7771
|
};
|
|
7761
|
-
return s =
|
|
7772
|
+
return s = c == null ? void 0 : c.open({
|
|
7762
7773
|
class: "modal-message modal-message-type-info",
|
|
7763
7774
|
title: a,
|
|
7764
7775
|
showButtons: o,
|
|
@@ -7770,9 +7781,9 @@ class ft {
|
|
|
7770
7781
|
render: () => x(kt, vt(n, {
|
|
7771
7782
|
onAccept: r,
|
|
7772
7783
|
onReject: u,
|
|
7773
|
-
onClose:
|
|
7784
|
+
onClose: d
|
|
7774
7785
|
}), null)
|
|
7775
|
-
}),
|
|
7786
|
+
}), c == null ? void 0 : c.getCurrentModal();
|
|
7776
7787
|
}
|
|
7777
7788
|
static info(t, n) {
|
|
7778
7789
|
const o = rt({
|
|
@@ -7782,7 +7793,7 @@ class ft {
|
|
|
7782
7793
|
okButtonText: "知道了",
|
|
7783
7794
|
cancelButtonText: ""
|
|
7784
7795
|
});
|
|
7785
|
-
|
|
7796
|
+
dt.show(o);
|
|
7786
7797
|
}
|
|
7787
7798
|
static warning(t, n) {
|
|
7788
7799
|
const o = rt({
|
|
@@ -7792,7 +7803,7 @@ class ft {
|
|
|
7792
7803
|
okButtonText: "知道了",
|
|
7793
7804
|
cancelButtonText: ""
|
|
7794
7805
|
});
|
|
7795
|
-
|
|
7806
|
+
dt.show(o);
|
|
7796
7807
|
}
|
|
7797
7808
|
static success(t, n) {
|
|
7798
7809
|
const o = rt({
|
|
@@ -7802,7 +7813,7 @@ class ft {
|
|
|
7802
7813
|
okButtonText: "关闭",
|
|
7803
7814
|
cancelButtonText: ""
|
|
7804
7815
|
});
|
|
7805
|
-
|
|
7816
|
+
dt.show(o);
|
|
7806
7817
|
}
|
|
7807
7818
|
static error(t, n, o) {
|
|
7808
7819
|
const i = rt({
|
|
@@ -7816,7 +7827,7 @@ class ft {
|
|
|
7816
7827
|
detail: n
|
|
7817
7828
|
}
|
|
7818
7829
|
});
|
|
7819
|
-
|
|
7830
|
+
dt.show(i);
|
|
7820
7831
|
}
|
|
7821
7832
|
static prompt(t, n) {
|
|
7822
7833
|
const o = rt({
|
|
@@ -7826,7 +7837,7 @@ class ft {
|
|
|
7826
7837
|
okButtonText: "确定",
|
|
7827
7838
|
cancelButtonText: "取消"
|
|
7828
7839
|
});
|
|
7829
|
-
|
|
7840
|
+
dt.show(o);
|
|
7830
7841
|
}
|
|
7831
7842
|
static question(t, n, o, i) {
|
|
7832
7843
|
const a = rt({
|
|
@@ -7838,11 +7849,11 @@ class ft {
|
|
|
7838
7849
|
acceptCallback: o,
|
|
7839
7850
|
rejectCallback: i
|
|
7840
7851
|
});
|
|
7841
|
-
|
|
7852
|
+
dt.show(a);
|
|
7842
7853
|
}
|
|
7843
7854
|
}
|
|
7844
7855
|
kt.install = (e) => {
|
|
7845
|
-
e.component(kt.name, kt), e.provide("FMessageBoxService",
|
|
7856
|
+
e.component(kt.name, kt), e.provide("FMessageBoxService", dt);
|
|
7846
7857
|
};
|
|
7847
7858
|
var St = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(St || {}), Xe = /* @__PURE__ */ ((e) => (e.Equal = "0", e.NotEqual = "1", e.Greater = "2", e.GreaterOrEqual = "3", e.Less = "4", e.LessOrEqual = "5", e.Like = "6", e.LikeStartWith = "7", e.LikeEndWith = "8", e.In = "9", e.NotIn = "10", e))(Xe || {});
|
|
7848
7859
|
const gs = [
|
|
@@ -7909,7 +7920,7 @@ function bs(e, t, n) {
|
|
|
7909
7920
|
if (!r)
|
|
7910
7921
|
return [];
|
|
7911
7922
|
const u = r.editor.type, s = new Set(ys[u]);
|
|
7912
|
-
return gs.filter((
|
|
7923
|
+
return gs.filter((d) => s.has(d.value));
|
|
7913
7924
|
}
|
|
7914
7925
|
return { getCompareOperators: i };
|
|
7915
7926
|
}
|
|
@@ -7955,7 +7966,7 @@ function lo() {
|
|
|
7955
7966
|
}
|
|
7956
7967
|
return h;
|
|
7957
7968
|
}
|
|
7958
|
-
function
|
|
7969
|
+
function c(I, V, h, C, k) {
|
|
7959
7970
|
for (let B = V; B <= 0; B++)
|
|
7960
7971
|
C.pop();
|
|
7961
7972
|
const T = C[C.length - 1];
|
|
@@ -7964,12 +7975,12 @@ function lo() {
|
|
|
7964
7975
|
const O = I + V, R = a(k, O);
|
|
7965
7976
|
return T.children.push(R), n.set(R.groupId, T), h = T.children[T.children.length - 1], C.push(h), h;
|
|
7966
7977
|
}
|
|
7967
|
-
function
|
|
7978
|
+
function d(I, V, h, C) {
|
|
7968
7979
|
h.pop();
|
|
7969
7980
|
const k = h[h.length - 1], T = a(C, I);
|
|
7970
7981
|
return k.children.push(T), n.set(T.groupId, k), V = k.children[k.children.length - 1], h.push(V), V;
|
|
7971
7982
|
}
|
|
7972
|
-
function
|
|
7983
|
+
function p(I, V, h, C, k, T) {
|
|
7973
7984
|
let O = I[I.length - 1];
|
|
7974
7985
|
if (!O)
|
|
7975
7986
|
throw new Error("The group path is out of range");
|
|
@@ -7977,12 +7988,12 @@ function lo() {
|
|
|
7977
7988
|
if (h < 0 || h === C)
|
|
7978
7989
|
return I[I.length - 1];
|
|
7979
7990
|
const $ = R - B, A = k && k.relation !== void 0 ? k.relation : 1;
|
|
7980
|
-
return O = $ > 0 ? s(B, $, O, I, A) : O, O = $ < 0 ?
|
|
7991
|
+
return O = $ > 0 ? s(B, $, O, I, A) : O, O = $ < 0 ? c(B, $, O, I, A) : O, O = $ === 0 && B > 0 && R > 0 && k && T && !!k.rBracket && !!T.lBracket ? d(B, O, I, A) : O, O;
|
|
7981
7992
|
}
|
|
7982
|
-
function
|
|
7993
|
+
function f(I) {
|
|
7983
7994
|
const h = { relation: I.length && I[0].relation !== void 0 ? I[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, C = [h], k = u(I);
|
|
7984
7995
|
return I.forEach((T, O) => {
|
|
7985
|
-
const R = O - 1, B = I[R], $ =
|
|
7996
|
+
const R = O - 1, B = I[R], $ = p(C, k, R, O, B, T);
|
|
7986
7997
|
$.items.push(T), t.set(T.conditionId, $);
|
|
7987
7998
|
}), e.value = h, h;
|
|
7988
7999
|
}
|
|
@@ -8075,7 +8086,7 @@ function lo() {
|
|
|
8075
8086
|
group: g,
|
|
8076
8087
|
groupParentMap: n,
|
|
8077
8088
|
insertConditionTo: S,
|
|
8078
|
-
loadConditionGroup:
|
|
8089
|
+
loadConditionGroup: f,
|
|
8079
8090
|
refresh: r,
|
|
8080
8091
|
removeCondition: b,
|
|
8081
8092
|
rootGroup: e,
|
|
@@ -8085,24 +8096,24 @@ function lo() {
|
|
|
8085
8096
|
function Cs(e, t, n) {
|
|
8086
8097
|
const o = _(/* @__PURE__ */ new Set()), i = _(/* @__PURE__ */ new Set()), { conditionGroupMap: a, groupParentMap: r } = n;
|
|
8087
8098
|
let u, s;
|
|
8088
|
-
function
|
|
8099
|
+
function c(v) {
|
|
8089
8100
|
let g = u.level <= v.level ? u : v, F = u.level > v.level ? u : v;
|
|
8090
8101
|
const m = [];
|
|
8091
8102
|
for (; F && g && F !== g; )
|
|
8092
8103
|
F.level > g.level ? (m.push(F), F = r.get(F.groupId)) : F.level === g.level && (g = r.get(g.groupId), g && m.unshift(g));
|
|
8093
8104
|
return m;
|
|
8094
8105
|
}
|
|
8095
|
-
function p(v) {
|
|
8096
|
-
i.value.add(v.groupId), v.items.forEach((g) => o.value.add(g.conditionId)), v.children.forEach((g) => p(g));
|
|
8097
|
-
}
|
|
8098
8106
|
function d(v) {
|
|
8107
|
+
i.value.add(v.groupId), v.items.forEach((g) => o.value.add(g.conditionId)), v.children.forEach((g) => d(g));
|
|
8108
|
+
}
|
|
8109
|
+
function p(v) {
|
|
8099
8110
|
const { conditionId: g } = v;
|
|
8100
8111
|
o.value.add(g), u = o.value.size === 0 ? a.get(g) : u;
|
|
8101
8112
|
const F = a.get(v.conditionId);
|
|
8102
|
-
|
|
8113
|
+
c(F).forEach((w) => d(w));
|
|
8103
8114
|
}
|
|
8104
|
-
const
|
|
8105
|
-
i.value.delete(v.groupId), v.items.forEach((F) => s(F)), v.children.forEach((F) => !
|
|
8115
|
+
const f = j(() => o.value.size === 0 && i.value.size === 1), y = function(v) {
|
|
8116
|
+
i.value.delete(v.groupId), v.items.forEach((F) => s(F)), v.children.forEach((F) => !f.value && y(F));
|
|
8106
8117
|
const g = r.get(v.groupId);
|
|
8107
8118
|
g && i.value.has(g.groupId) && y(g);
|
|
8108
8119
|
};
|
|
@@ -8115,7 +8126,7 @@ function Cs(e, t, n) {
|
|
|
8115
8126
|
};
|
|
8116
8127
|
function S(v) {
|
|
8117
8128
|
const { conditionId: g } = v;
|
|
8118
|
-
o.value.size === 0 && (u = a.get(g)), o.value.has(g) ? s(v) :
|
|
8129
|
+
o.value.size === 0 && (u = a.get(g)), o.value.has(g) ? s(v) : p(v);
|
|
8119
8130
|
}
|
|
8120
8131
|
function D() {
|
|
8121
8132
|
const v = [];
|
|
@@ -8136,10 +8147,10 @@ const Lt = /* @__PURE__ */ Me({
|
|
|
8136
8147
|
fields: r,
|
|
8137
8148
|
fieldMap: u,
|
|
8138
8149
|
loadFieldConfigs: s
|
|
8139
|
-
} = i,
|
|
8140
|
-
addCondition:
|
|
8141
|
-
changeGroupRelation:
|
|
8142
|
-
getConditions:
|
|
8150
|
+
} = i, c = lo(), {
|
|
8151
|
+
addCondition: d,
|
|
8152
|
+
changeGroupRelation: p,
|
|
8153
|
+
getConditions: f,
|
|
8143
8154
|
group: y,
|
|
8144
8155
|
insertConditionTo: S,
|
|
8145
8156
|
loadConditionGroup: D,
|
|
@@ -8147,9 +8158,9 @@ const Lt = /* @__PURE__ */ Me({
|
|
|
8147
8158
|
removeCondition: v,
|
|
8148
8159
|
rootGroup: g,
|
|
8149
8160
|
unGroup: F
|
|
8150
|
-
} =
|
|
8161
|
+
} = c, {
|
|
8151
8162
|
createConditionValue: m
|
|
8152
|
-
} = Xn(), w = Cs(e, t,
|
|
8163
|
+
} = Xn(), w = Cs(e, t, c), {
|
|
8153
8164
|
selectedItems: E,
|
|
8154
8165
|
toggleSelect: l
|
|
8155
8166
|
} = w, {
|
|
@@ -8169,7 +8180,7 @@ const Lt = /* @__PURE__ */ Me({
|
|
|
8169
8180
|
function h() {
|
|
8170
8181
|
}
|
|
8171
8182
|
t.expose({
|
|
8172
|
-
getConditions:
|
|
8183
|
+
getConditions: f
|
|
8173
8184
|
});
|
|
8174
8185
|
function C(J, ie) {
|
|
8175
8186
|
t.emit("valueChange", J, ie);
|
|
@@ -8249,7 +8260,7 @@ const Lt = /* @__PURE__ */ Me({
|
|
|
8249
8260
|
onClick: () => F(J)
|
|
8250
8261
|
}, null), x("span", {
|
|
8251
8262
|
class: "condition-list-relation-text btn-link",
|
|
8252
|
-
onClick: () =>
|
|
8263
|
+
onClick: () => p(J)
|
|
8253
8264
|
}, [J.relation === 1 ? "与" : "或"])]);
|
|
8254
8265
|
}
|
|
8255
8266
|
function A(J) {
|
|
@@ -8267,7 +8278,7 @@ const Lt = /* @__PURE__ */ Me({
|
|
|
8267
8278
|
class: "condition-list-bottom"
|
|
8268
8279
|
}, [x("div", {
|
|
8269
8280
|
class: "add-condition-btn mb-1 mr-3",
|
|
8270
|
-
onClick:
|
|
8281
|
+
onClick: d
|
|
8271
8282
|
}, [x("span", {
|
|
8272
8283
|
class: "f-icon f-icon-filter-add"
|
|
8273
8284
|
}, null), x("span", {
|
|
@@ -8495,26 +8506,26 @@ function so() {
|
|
|
8495
8506
|
const v = `field_filter_${M.field}`;
|
|
8496
8507
|
t.delete(v), e.value = Array.from(t.values());
|
|
8497
8508
|
}
|
|
8498
|
-
function
|
|
8509
|
+
function c(M) {
|
|
8499
8510
|
t.delete(M), e.value = Array.from(t.values());
|
|
8500
8511
|
}
|
|
8501
|
-
function
|
|
8512
|
+
function d() {
|
|
8502
8513
|
t.clear(), e.value = [];
|
|
8503
8514
|
}
|
|
8504
|
-
function
|
|
8515
|
+
function p(M) {
|
|
8505
8516
|
const { valueType: v } = M.value, g = M.compareType || "0", F = ws[Number(g)];
|
|
8506
8517
|
return ks.get(v)[F];
|
|
8507
8518
|
}
|
|
8508
|
-
function
|
|
8519
|
+
function f(M) {
|
|
8509
8520
|
const v = M.relation === 2 ? 0 : 1, g = M.items.map((m) => {
|
|
8510
|
-
const w =
|
|
8521
|
+
const w = p(m);
|
|
8511
8522
|
return (l) => w(l, m.fieldCode, m.value.getValue());
|
|
8512
|
-
}), F = M.children && M.children.length ? M.children.map((m) =>
|
|
8523
|
+
}), F = M.children && M.children.length ? M.children.map((m) => f(m)) : [];
|
|
8513
8524
|
return { relation: v, filterFunctions: g, children: F };
|
|
8514
8525
|
}
|
|
8515
8526
|
function y() {
|
|
8516
8527
|
const M = n(e.value);
|
|
8517
|
-
return
|
|
8528
|
+
return f(M);
|
|
8518
8529
|
}
|
|
8519
8530
|
function S(M, v) {
|
|
8520
8531
|
const g = v.filterFunctions.map((m) => m(M)), F = v.children.map((m) => S(M, m));
|
|
@@ -8524,7 +8535,7 @@ function so() {
|
|
|
8524
8535
|
const v = y();
|
|
8525
8536
|
return S(M, v);
|
|
8526
8537
|
}
|
|
8527
|
-
return { addColumnFilter: u, apply: D, clearCondition:
|
|
8538
|
+
return { addColumnFilter: u, apply: D, clearCondition: d, conditions: e, getFilterEditorType: r, removeColumnFilter: s, removeCondition: c };
|
|
8528
8539
|
}
|
|
8529
8540
|
function uo(e) {
|
|
8530
8541
|
_(e.selection.showCheckbox || !1);
|
|
@@ -8542,34 +8553,34 @@ function uo(e) {
|
|
|
8542
8553
|
}
|
|
8543
8554
|
function Is(e, t, n, o, i, a, r, u) {
|
|
8544
8555
|
var it;
|
|
8545
|
-
const { dataView: s, visibleDataItems:
|
|
8556
|
+
const { dataView: s, visibleDataItems: c } = t, { getVisualData: d, maxVisibleRowIndex: p, minVisibleRowIndex: f } = i, y = j(() => o.value.primaryColumnsWidth), S = j(() => o.value.leftColumnsWidth), D = j(() => o.value.rightColumnsWidth), M = ((it = e.rowOption) == null ? void 0 : it.height) || 28, v = _(0), g = _(0);
|
|
8546
8557
|
let F = 0, m = a.value - 1;
|
|
8547
8558
|
const w = _(0), E = _(0), l = _(0), b = _(e.virtualized), I = 24, V = 1.5;
|
|
8548
8559
|
let h;
|
|
8549
8560
|
function C() {
|
|
8550
|
-
const N =
|
|
8561
|
+
const N = c.value;
|
|
8551
8562
|
if (N.length <= 0)
|
|
8552
8563
|
return 0;
|
|
8553
|
-
const G =
|
|
8554
|
-
return G.__fv_data_position__ > N.length * M ? N.length * M : (G.__fv_data_position__ || 0) + (G.__fv_data_height__ || 0) + Math.max(N.length - 1 -
|
|
8564
|
+
const G = p.value < N.length ? N[p.value] : N[N.length - 1];
|
|
8565
|
+
return G.__fv_data_position__ > N.length * M ? N.length * M : (G.__fv_data_position__ || 0) + (G.__fv_data_height__ || 0) + Math.max(N.length - 1 - p.value, 0) * M;
|
|
8555
8566
|
}
|
|
8556
8567
|
const k = j(() => {
|
|
8557
|
-
const N = C(), G =
|
|
8568
|
+
const N = C(), G = c.value;
|
|
8558
8569
|
let X = G.length > a.value + r ? (a.value + r) / G.length : E.value / Math.max(N, E.value), ce = Math.floor(X * E.value);
|
|
8559
8570
|
for (; E.value > 0 && ce < I; )
|
|
8560
8571
|
X *= V, ce = Math.floor(X * E.value);
|
|
8561
8572
|
return ce;
|
|
8562
8573
|
}), T = j(() => Math.floor(l.value / Math.max(y.value, l.value) * w.value)), O = 0, R = 0, B = j(() => w.value - (S.value + y.value + D.value + u.value));
|
|
8563
8574
|
function $(N) {
|
|
8564
|
-
const X = Math.floor(N / M) + 1, ce =
|
|
8575
|
+
const X = Math.floor(N / M) + 1, ce = c.value;
|
|
8565
8576
|
return ce.length > X ? ce[X].__fv_visible_index__ - 1 : 0;
|
|
8566
8577
|
}
|
|
8567
8578
|
function A(N, G, X) {
|
|
8568
8579
|
let ce = N, ve = G;
|
|
8569
8580
|
const Fe = G - N + 1;
|
|
8570
8581
|
if (Fe < r + a.value + r) {
|
|
8571
|
-
const _e = r + a.value + r - Fe,
|
|
8572
|
-
if (
|
|
8582
|
+
const _e = r + a.value + r - Fe, ge = G + _e <= X, xe = 0 + _e <= N;
|
|
8583
|
+
if (ge)
|
|
8573
8584
|
ve += _e, m = ve;
|
|
8574
8585
|
else if (xe)
|
|
8575
8586
|
ce -= _e, F = ce;
|
|
@@ -8582,12 +8593,12 @@ function Is(e, t, n, o, i, a, r, u) {
|
|
|
8582
8593
|
}
|
|
8583
8594
|
function L(N) {
|
|
8584
8595
|
var Ce, we;
|
|
8585
|
-
const G =
|
|
8596
|
+
const G = c.value;
|
|
8586
8597
|
if (!G.length) {
|
|
8587
8598
|
n.value = [];
|
|
8588
8599
|
return;
|
|
8589
8600
|
}
|
|
8590
|
-
const X = (Ce = e.pagination) != null && Ce.enable ? 0 : Math.max(F - r, 0), ce = G[G.length - 1].__fv_visible_index__, ve = (we = e.pagination) != null && we.enable ? G.length - 1 : Math.min(m + r, ce), { actualStart: Fe, actualEnd: _e } = A(X, ve, ce),
|
|
8601
|
+
const X = (Ce = e.pagination) != null && Ce.enable ? 0 : Math.max(F - r, 0), ce = G[G.length - 1].__fv_visible_index__, ve = (we = e.pagination) != null && we.enable ? G.length - 1 : Math.min(m + r, ce), { actualStart: Fe, actualEnd: _e } = A(X, ve, ce), ge = G[Fe - 1], xe = d(Fe, _e, ge, N);
|
|
8591
8602
|
xe.length && (n.value = [...xe]);
|
|
8592
8603
|
}
|
|
8593
8604
|
const U = j(() => C() > E.value), J = j(() => Math.floor(y.value) > l.value);
|
|
@@ -8597,7 +8608,7 @@ function Is(e, t, n, o, i, a, r, u) {
|
|
|
8597
8608
|
ve && X < E.value - G && (X = E.value - G), (!ve || ce) && (X = O), v.value !== X && (v.value = X);
|
|
8598
8609
|
}
|
|
8599
8610
|
function se() {
|
|
8600
|
-
b.value && (F = $(Math.abs(v.value)), m = F + a.value - 1, (F <
|
|
8611
|
+
b.value && (F = $(Math.abs(v.value)), m = F + a.value - 1, (F < f.value || m > p.value - r / 2) && L());
|
|
8601
8612
|
}
|
|
8602
8613
|
function H(N) {
|
|
8603
8614
|
let G = v.value + N;
|
|
@@ -8623,7 +8634,7 @@ function Is(e, t, n, o, i, a, r, u) {
|
|
|
8623
8634
|
const N = C();
|
|
8624
8635
|
ie(v.value, N);
|
|
8625
8636
|
}
|
|
8626
|
-
|
|
8637
|
+
he([l, y], () => {
|
|
8627
8638
|
Z(0);
|
|
8628
8639
|
});
|
|
8629
8640
|
function q(N) {
|
|
@@ -8734,10 +8745,10 @@ function Is(e, t, n, o, i, a, r, u) {
|
|
|
8734
8745
|
};
|
|
8735
8746
|
}
|
|
8736
8747
|
function co(e, t, n, o, i, a, r, u) {
|
|
8737
|
-
const s = _(o.value - 1 + i),
|
|
8748
|
+
const s = _(o.value - 1 + i), c = _(0), { renderDataRow: d } = a, p = r ? r.renderGroupRow : d, f = u ? u.renderSummaryRow : d;
|
|
8738
8749
|
function y(M) {
|
|
8739
|
-
let v =
|
|
8740
|
-
return M.__fv_data_grid_group_row__ && (v =
|
|
8750
|
+
let v = d;
|
|
8751
|
+
return M.__fv_data_grid_group_row__ && (v = p), M.__fv_data_grid_group_summary__ && (v = f), v;
|
|
8741
8752
|
}
|
|
8742
8753
|
function S(M, v, g, F) {
|
|
8743
8754
|
const { visibleDataItems: m } = n, w = [], E = m.value;
|
|
@@ -8748,7 +8759,7 @@ function co(e, t, n, o, i, a, r, u) {
|
|
|
8748
8759
|
O.refreshKey = l, w.push(O);
|
|
8749
8760
|
}
|
|
8750
8761
|
}
|
|
8751
|
-
return
|
|
8762
|
+
return c.value = w.length > 0 ? w[0].index : 0, s.value = w.length > 0 ? w[w.length - 1].index : 0, w;
|
|
8752
8763
|
}
|
|
8753
8764
|
function D(M, v, g) {
|
|
8754
8765
|
const F = v.groupField || "", { groupValue: m } = v;
|
|
@@ -8756,7 +8767,7 @@ function co(e, t, n, o, i, a, r, u) {
|
|
|
8756
8767
|
const { dataView: w } = n, E = g[0].index, l = Math.min(E + o.value + i + 1, w.value.length - 1);
|
|
8757
8768
|
return S(E, l);
|
|
8758
8769
|
}
|
|
8759
|
-
return { getVisualData: S, maxVisibleRowIndex: s, minVisibleRowIndex:
|
|
8770
|
+
return { getVisualData: S, maxVisibleRowIndex: s, minVisibleRowIndex: c, toggleGroupRow: D };
|
|
8760
8771
|
}
|
|
8761
8772
|
function fo(e) {
|
|
8762
8773
|
var i;
|
|
@@ -8764,8 +8775,8 @@ function fo(e) {
|
|
|
8764
8775
|
function n(a, r) {
|
|
8765
8776
|
const u = a.pre;
|
|
8766
8777
|
if (u) {
|
|
8767
|
-
const s = u ? u.__fv_data_position__ !== void 0 ? u.__fv_data_position__ : u.__fv_index__ * t : 0,
|
|
8768
|
-
a.top =
|
|
8778
|
+
const s = u ? u.__fv_data_position__ !== void 0 ? u.__fv_data_position__ : u.__fv_index__ * t : 0, c = u ? u.__fv_data_height__ !== void 0 ? u.__fv_data_height__ : t : 0, d = a.visible ? s + c : u.__fv_data_position__;
|
|
8779
|
+
a.top = d, r.__fv_data_position__ = d;
|
|
8769
8780
|
} else
|
|
8770
8781
|
a.top = 0, r.__fv_data_position__ = 0;
|
|
8771
8782
|
}
|
|
@@ -8784,8 +8795,8 @@ function Os() {
|
|
|
8784
8795
|
formatter: o
|
|
8785
8796
|
} = t, i = Oe(n.raw, t.field);
|
|
8786
8797
|
if (i.includes(",")) {
|
|
8787
|
-
const r = i.split(","), u = o.data.reduce((
|
|
8788
|
-
return r.map((
|
|
8798
|
+
const r = i.split(","), u = o.data.reduce((c, d) => (c[d.value] = d, c), {});
|
|
8799
|
+
return r.map((c) => u[c].name).join(",");
|
|
8789
8800
|
}
|
|
8790
8801
|
const a = o.data.find((r) => r.value === i);
|
|
8791
8802
|
return (a == null ? void 0 : a.name) || "";
|
|
@@ -8873,15 +8884,15 @@ function Bs() {
|
|
|
8873
8884
|
}
|
|
8874
8885
|
function a(u, s) {
|
|
8875
8886
|
const {
|
|
8876
|
-
formatter:
|
|
8887
|
+
formatter: c
|
|
8877
8888
|
} = s;
|
|
8878
|
-
return
|
|
8889
|
+
return c.customFormat ? new Function(`return ${c.customFormat}`)() : u;
|
|
8879
8890
|
}
|
|
8880
|
-
function r(u, s,
|
|
8881
|
-
const
|
|
8882
|
-
formatter:
|
|
8891
|
+
function r(u, s, c) {
|
|
8892
|
+
const d = Oe(c.raw, [s.field]), {
|
|
8893
|
+
formatter: p
|
|
8883
8894
|
} = s;
|
|
8884
|
-
return
|
|
8895
|
+
return p.type === "none" ? d : p.type === "custom" ? a(d, s) : p.type === "enum" ? t(s, c) : p.type === "number" ? n(s, c) : p.type === "boolean" ? e(s, c) : p.type === "date" ? o(s, c) : d;
|
|
8885
8896
|
}
|
|
8886
8897
|
return {
|
|
8887
8898
|
renderFormatColumn: r
|
|
@@ -8918,7 +8929,7 @@ function po(e, t, n) {
|
|
|
8918
8929
|
};
|
|
8919
8930
|
return l;
|
|
8920
8931
|
}
|
|
8921
|
-
function
|
|
8932
|
+
function c(v, g, F) {
|
|
8922
8933
|
return v.getEditor = (m) => t.getEditor(m, g, m.parent), v.setRef = (m) => a(m, v, F), v.update = (m) => {
|
|
8923
8934
|
m !== void 0 && (v.editingData = m);
|
|
8924
8935
|
}, v.accept = () => {
|
|
@@ -8929,24 +8940,24 @@ function po(e, t, n) {
|
|
|
8929
8940
|
Wt(Oe(m, g.field), F, g.field), v.data = Oe(F, g.field), v.editingData = Oe(F, g.field);
|
|
8930
8941
|
}, v;
|
|
8931
8942
|
}
|
|
8932
|
-
function
|
|
8943
|
+
function d(v, g) {
|
|
8933
8944
|
g.dataType === "commands" ? v.formatter = (F, m) => r(g, m) : g.formatter && (v.formatter = (F, m) => typeof g.formatter == "function" ? g.formatter(F, m) : u(g.dataType, g, m));
|
|
8934
8945
|
}
|
|
8935
|
-
function
|
|
8946
|
+
function p(v, g, F) {
|
|
8936
8947
|
const m = g && g.data[F];
|
|
8937
8948
|
if (m && m.data === v.data) {
|
|
8938
8949
|
const E = m && m.spannedBy || m;
|
|
8939
8950
|
E.rowSpan++, E.spanned = E.spanned || [], E.spanned.push(v), v.colSpan = 0, v.rowSpan = 0, v.spannedBy = E;
|
|
8940
8951
|
}
|
|
8941
8952
|
}
|
|
8942
|
-
function
|
|
8943
|
-
o.value &&
|
|
8953
|
+
function f(v, g, F) {
|
|
8954
|
+
o.value && p(v, g, F.field);
|
|
8944
8955
|
}
|
|
8945
8956
|
function y(v, g) {
|
|
8946
8957
|
g.showEllipsis !== void 0 && (v.showEllipsis = g.showEllipsis), v.column = g, v.align = g.align || "left", v.valign = g.valign || "middle";
|
|
8947
8958
|
}
|
|
8948
8959
|
function S(v, g, F, m) {
|
|
8949
|
-
y(v, g),
|
|
8960
|
+
y(v, g), c(v, g, m), d(v, g), f(v, F, g);
|
|
8950
8961
|
}
|
|
8951
8962
|
function D(v, g, F, m, w) {
|
|
8952
8963
|
const E = v.readonly ? Ie.readonly : Ie.editable, l = s(v.field, E, g, F, m);
|
|
@@ -8956,7 +8967,7 @@ function po(e, t, n) {
|
|
|
8956
8967
|
}
|
|
8957
8968
|
function mo(e, t, n, o, i, a) {
|
|
8958
8969
|
var g, F;
|
|
8959
|
-
const r = _(e.rowOption), u = ((g = r.value) == null ? void 0 : g.height) || 28, s = ((F = r.value) == null ? void 0 : F.wrapContent) || !1, { idField:
|
|
8970
|
+
const r = _(e.rowOption), u = ((g = r.value) == null ? void 0 : g.height) || 28, s = ((F = r.value) == null ? void 0 : F.wrapContent) || !1, { idField: c } = o, { collapseField: d } = n, { updateRowPosition: p } = i, { createCellByColumn: f } = a, y = (m, w, E, l) => {
|
|
8960
8971
|
Wt(Oe(m, l), w, l), E.data[l].data = Oe(w, l), E.data[l].editingData = Oe(w, l);
|
|
8961
8972
|
};
|
|
8962
8973
|
function S(m, w, E, l, b, I, V) {
|
|
@@ -8965,7 +8976,7 @@ function mo(e, t, n, o, i, a) {
|
|
|
8965
8976
|
__fv_data_grid_group_field__: h,
|
|
8966
8977
|
__fv_data_grid_group_value__: C,
|
|
8967
8978
|
__fv_data_index__: k
|
|
8968
|
-
} = E, T = E.__fv_data_grid_group_layer__ || (E.__fv_parents__ ? (H = E.__fv_parents__) == null ? void 0 : H.size : 0) || 0, O = typeof E.parent == "number" ? Number(E.parent) : -1, R = E.__fv_data_grid_group_collapse__ || E[
|
|
8979
|
+
} = E, T = E.__fv_data_grid_group_layer__ || (E.__fv_parents__ ? (H = E.__fv_parents__) == null ? void 0 : H.size : 0) || 0, O = typeof E.parent == "number" ? Number(E.parent) : -1, R = E.__fv_data_grid_group_collapse__ || E[d.value], B = E.__fv_visible__ === void 0 ? !0 : E.__fv_visible__, $ = E.__fv_checked__, A = E.__fv_indeterminate__, L = E.__fv_disabled__ || E[((Z = e.rowOption) == null ? void 0 : Z.disabledField) || "disabled"], U = V == null ? void 0 : V.find((ee) => ee.raw[c.value] === E.parent), J = U && U.collapse;
|
|
8969
8980
|
l && (l.parent, E.parent);
|
|
8970
8981
|
const ie = J || U && !U.visible, se = {
|
|
8971
8982
|
collapse: R,
|
|
@@ -8997,19 +9008,19 @@ function mo(e, t, n, o, i, a) {
|
|
|
8997
9008
|
});
|
|
8998
9009
|
}
|
|
8999
9010
|
};
|
|
9000
|
-
return l || (E.__fv_data_position__ = 0), s || (se.height = u, E.__fv_data_height__ = se.height,
|
|
9011
|
+
return l || (E.__fv_data_position__ = 0), s || (se.height = u, E.__fv_data_height__ = se.height, p(se, E)), (ue = r.value) != null && ue.customRowStatus && (r.value.customRowStatus(se), E.__fv_collapse__ = se.collapse, E.__fv_disabled__ = se.disabled, E.__fv_visible__ = se.visible), se;
|
|
9001
9012
|
}
|
|
9002
9013
|
function D(m, w, E, l, b, I, V) {
|
|
9003
9014
|
const h = S(gt.data, b, w, E, l, I, V);
|
|
9004
9015
|
return m.forEach((C, k) => {
|
|
9005
|
-
h.data[C.field] =
|
|
9016
|
+
h.data[C.field] = f(C, b, w, h, l);
|
|
9006
9017
|
}), h;
|
|
9007
9018
|
}
|
|
9008
9019
|
function M(m, w, E, l, b) {
|
|
9009
9020
|
return Object.assign(m, { index: w, dataIndex: E, top: l, pre: b });
|
|
9010
9021
|
}
|
|
9011
9022
|
function v(m, w, E, l, b, I, V) {
|
|
9012
|
-
const h = m.__fv_data_index__, C = m[
|
|
9023
|
+
const h = m.__fv_data_index__, C = m[c.value], k = t.getEditingSnapshot(C);
|
|
9013
9024
|
return k === null ? D(
|
|
9014
9025
|
I,
|
|
9015
9026
|
m,
|
|
@@ -9024,36 +9035,36 @@ function mo(e, t, n, o, i, a) {
|
|
|
9024
9035
|
}
|
|
9025
9036
|
function Ds(e, t, n, o) {
|
|
9026
9037
|
const i = _(e.summary), { idField: a } = t, { createCellByField: r } = n, { createEmptyRow: u } = o, s = j(() => {
|
|
9027
|
-
const
|
|
9028
|
-
return (
|
|
9029
|
-
}),
|
|
9030
|
-
const
|
|
9031
|
-
return
|
|
9038
|
+
const f = i.value;
|
|
9039
|
+
return (f == null ? void 0 : f.groupFields) || [];
|
|
9040
|
+
}), c = j(() => {
|
|
9041
|
+
const f = i.value;
|
|
9042
|
+
return f && f.enable && f.groupFields && f.groupFields.length > 0;
|
|
9032
9043
|
});
|
|
9033
|
-
function
|
|
9034
|
-
if (
|
|
9035
|
-
const M =
|
|
9044
|
+
function d(f, y, S, D) {
|
|
9045
|
+
if (c.value) {
|
|
9046
|
+
const M = f.data[y];
|
|
9036
9047
|
let v = M.colSpan;
|
|
9037
9048
|
const g = s.value.reduce((F, m) => (F.set(m, !0), F), /* @__PURE__ */ new Map());
|
|
9038
9049
|
D.reduce((F, m, w) => {
|
|
9039
9050
|
if (g.has(m.field)) {
|
|
9040
|
-
const E = r(m.field, Ie.readonly, w, S,
|
|
9041
|
-
|
|
9051
|
+
const E = r(m.field, Ie.readonly, w, S, f);
|
|
9052
|
+
f.data[m.field] = E, v - 1 > w && (v = w);
|
|
9042
9053
|
}
|
|
9043
9054
|
return F;
|
|
9044
|
-
},
|
|
9055
|
+
}, f), M.colSpan = v;
|
|
9045
9056
|
}
|
|
9046
9057
|
}
|
|
9047
|
-
function
|
|
9048
|
-
const F =
|
|
9049
|
-
return m.data[a.value] = r(a.value, Ie.readonly, -1,
|
|
9058
|
+
function p(f, y, S, D, M, v, g) {
|
|
9059
|
+
const F = f.__fv_data_grid_group_field__, m = u(gt.group, D, f, y, S, M);
|
|
9060
|
+
return m.data[a.value] = r(a.value, Ie.readonly, -1, f, m, 0), m.data[F] = r(F, Ie.readonly, 1, f, m, v.length), d(m, F, f, v), m;
|
|
9050
9061
|
}
|
|
9051
|
-
return { renderGroupRow:
|
|
9062
|
+
return { renderGroupRow: p };
|
|
9052
9063
|
}
|
|
9053
9064
|
function Rs(e, t, n, o) {
|
|
9054
9065
|
const { idField: i } = t, { createCellByField: a } = n, { createEmptyRow: r } = o;
|
|
9055
|
-
function u(s,
|
|
9056
|
-
const D = s.__fv_data_grid_group_field__, M = r(gt.summary,
|
|
9066
|
+
function u(s, c, d, p, f, y, S) {
|
|
9067
|
+
const D = s.__fv_data_grid_group_field__, M = r(gt.summary, p, s, c, d, f);
|
|
9057
9068
|
return M.data[i.value] = a(i.value, Ie.readonly, -1, s, M), M.data[D] = a(D, Ie.readonly, 1, s, M, y.length), M;
|
|
9058
9069
|
}
|
|
9059
9070
|
return { renderSummaryRow: u };
|
|
@@ -9065,29 +9076,29 @@ function vo(e, t, n, o) {
|
|
|
9065
9076
|
} = n, a = _(e.editable), r = _(e.editOption), u = _(((h = e.rowOption) == null ? void 0 : h.wrapContent) || !1), {
|
|
9066
9077
|
onClickRow: s
|
|
9067
9078
|
} = o;
|
|
9068
|
-
|
|
9079
|
+
he(() => e.editable, () => {
|
|
9069
9080
|
a.value = e.editable;
|
|
9070
|
-
}),
|
|
9081
|
+
}), he(() => {
|
|
9071
9082
|
var C;
|
|
9072
9083
|
return (C = e.editOption) == null ? void 0 : C.editMode;
|
|
9073
9084
|
}, (C) => {
|
|
9074
9085
|
r.value.editMode = C;
|
|
9075
9086
|
});
|
|
9076
|
-
const
|
|
9077
|
-
let
|
|
9087
|
+
const c = /* @__PURE__ */ new Map([["boolean", "check-box"], ["datetime", "date-picker"], ["enum", "combo-list"], ["number", "number-spinner"], ["string", "input-group"], ["text", "text"], ["commands", "commands-editor"]]);
|
|
9088
|
+
let d, p, f, y;
|
|
9078
9089
|
function S(C) {
|
|
9079
|
-
return
|
|
9090
|
+
return p && p.raw[i.value] === C ? p : null;
|
|
9080
9091
|
}
|
|
9081
9092
|
const D = rt({});
|
|
9082
9093
|
function M(C, k, T = {}) {
|
|
9083
|
-
C.mode = Ie.editing,
|
|
9094
|
+
C.mode = Ie.editing, d = C, p = k, f = Oe(k == null ? void 0 : k.raw, C.field), y = T;
|
|
9084
9095
|
}
|
|
9085
9096
|
function v(C) {
|
|
9086
|
-
C.accept(), C.mode = Ie.editable,
|
|
9097
|
+
C.accept(), C.mode = Ie.editable, d = null, t.emit("endEditCell", {
|
|
9087
9098
|
cell: C,
|
|
9088
|
-
row:
|
|
9089
|
-
newValue: Oe(
|
|
9090
|
-
oldValue:
|
|
9099
|
+
row: p,
|
|
9100
|
+
newValue: Oe(p == null ? void 0 : p.raw, C.field),
|
|
9101
|
+
oldValue: f,
|
|
9091
9102
|
column: y,
|
|
9092
9103
|
editor: D
|
|
9093
9104
|
});
|
|
@@ -9096,10 +9107,10 @@ function vo(e, t, n, o) {
|
|
|
9096
9107
|
if (document.body.classList.contains("lookup-modal-open"))
|
|
9097
9108
|
return;
|
|
9098
9109
|
const T = C.target.closest(".fv-grid-cell");
|
|
9099
|
-
|
|
9110
|
+
d && d.ref && d.ref === T || (d && (v(d), p && (p = void 0)), document.body.removeEventListener("click", g));
|
|
9100
9111
|
}
|
|
9101
9112
|
function F(C, k, T, O = {}) {
|
|
9102
|
-
C.stopPropagation(), s(C, T), a.value && r.value.editMode === "cell" && k.mode === Ie.editable && (
|
|
9113
|
+
C.stopPropagation(), s(C, T), a.value && r.value.editMode === "cell" && k.mode === Ie.editable && (d && v(d), Promise.resolve().then(() => Do(e.beforeEditCell) ? !0 : typeof e.beforeEditCell == "function" ? e.beforeEditCell({
|
|
9103
9114
|
row: T,
|
|
9104
9115
|
cell: k,
|
|
9105
9116
|
rawData: T.raw,
|
|
@@ -9111,15 +9122,15 @@ function vo(e, t, n, o) {
|
|
|
9111
9122
|
function m(C) {
|
|
9112
9123
|
Object.values(C.data).filter((k) => k.mode === Ie.editable && k.field !== "__commands__").forEach((k) => {
|
|
9113
9124
|
k.mode = Ie.editing;
|
|
9114
|
-
}), C.status = tt.editing,
|
|
9125
|
+
}), C.status = tt.editing, p = C;
|
|
9115
9126
|
}
|
|
9116
9127
|
function w(C, k) {
|
|
9117
9128
|
Object.values(C.data).filter((T) => T.mode === Ie.editing).forEach((T) => {
|
|
9118
9129
|
k ? T.accept() : T.cancel(), T.mode = Ie.editable;
|
|
9119
|
-
}), C.status = tt.initial,
|
|
9130
|
+
}), C.status = tt.initial, p === C && (p = void 0);
|
|
9120
9131
|
}
|
|
9121
9132
|
function E(C) {
|
|
9122
|
-
a.value && r.value.editMode === "row" &&
|
|
9133
|
+
a.value && r.value.editMode === "row" && p !== C && (p && w(p, !1), m(C));
|
|
9123
9134
|
}
|
|
9124
9135
|
function l(C) {
|
|
9125
9136
|
w(C, !0), C.status = tt.initial;
|
|
@@ -9129,7 +9140,7 @@ function vo(e, t, n, o) {
|
|
|
9129
9140
|
}
|
|
9130
9141
|
function I(C, k, T) {
|
|
9131
9142
|
const O = k.dataType, R = k.editor || {
|
|
9132
|
-
type:
|
|
9143
|
+
type: c.get(O) || "input-group"
|
|
9133
9144
|
};
|
|
9134
9145
|
return !u.value && R.type === "text" && (R.type = "input-group"), R ? (R.context = {
|
|
9135
9146
|
rowData: T.raw,
|
|
@@ -9146,7 +9157,7 @@ function vo(e, t, n, o) {
|
|
|
9146
9157
|
}, null)) : C.data;
|
|
9147
9158
|
}
|
|
9148
9159
|
function V() {
|
|
9149
|
-
|
|
9160
|
+
d && v(d);
|
|
9150
9161
|
}
|
|
9151
9162
|
return {
|
|
9152
9163
|
onClickCell: F,
|
|
@@ -9174,12 +9185,12 @@ function go(e, t, n, o) {
|
|
|
9174
9185
|
multiSelectOnClickRow: r,
|
|
9175
9186
|
multiSelectOnClickRowWithShift: u,
|
|
9176
9187
|
selectItem: s,
|
|
9177
|
-
selectedValues:
|
|
9178
|
-
toggleSelectItem:
|
|
9179
|
-
enableSelectRow:
|
|
9180
|
-
} = n,
|
|
9188
|
+
selectedValues: c,
|
|
9189
|
+
toggleSelectItem: d,
|
|
9190
|
+
enableSelectRow: p
|
|
9191
|
+
} = n, f = _(0), y = _(-1);
|
|
9181
9192
|
function S(l) {
|
|
9182
|
-
return
|
|
9193
|
+
return p.value && (u.value ? c.value.includes(l.raw[i.value]) : l.raw[i.value] === a.value);
|
|
9183
9194
|
}
|
|
9184
9195
|
function D(l) {
|
|
9185
9196
|
var I;
|
|
@@ -9211,14 +9222,14 @@ function go(e, t, n, o) {
|
|
|
9211
9222
|
return b;
|
|
9212
9223
|
}
|
|
9213
9224
|
function v(l) {
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
}, 250),
|
|
9225
|
+
f.value += 1, setTimeout(() => {
|
|
9226
|
+
f.value === 1 && t.emit("clickRow", l.index, l.raw), f.value = 0;
|
|
9227
|
+
}, 250), f.value > 1 && (t.emit("doubleClickRow", l.index, l.raw), f.value = 0);
|
|
9217
9228
|
}
|
|
9218
9229
|
function g(l, b) {
|
|
9219
9230
|
if (b.disabled)
|
|
9220
9231
|
return;
|
|
9221
|
-
u.value && l.shiftKey || r.value ?
|
|
9232
|
+
u.value && l.shiftKey || r.value ? d(b) : s(b), v(b);
|
|
9222
9233
|
}
|
|
9223
9234
|
function F(l) {
|
|
9224
9235
|
l.disabled || (a.value = l.raw[i.value], v(l));
|
|
@@ -9255,24 +9266,24 @@ function go(e, t, n, o) {
|
|
|
9255
9266
|
};
|
|
9256
9267
|
}
|
|
9257
9268
|
function yo(e, t, n, o, i) {
|
|
9258
|
-
const { idField: a } = n, r = _(""), u = j(() => e.selection.enableSelectRow), s = _(e.selection.multiSelect ?? !1),
|
|
9259
|
-
|
|
9260
|
-
H !== Z && (
|
|
9269
|
+
const { idField: a } = n, r = _(""), u = j(() => e.selection.enableSelectRow), s = _(e.selection.multiSelect ?? !1), c = _(e.selection.multiSelectMode), d = _(e.selection.showCheckbox), p = _(e.selection.showSelectAll), f = _(e.selectionValues);
|
|
9270
|
+
he(() => e.selection.showSelectAll, (H, Z) => {
|
|
9271
|
+
H !== Z && (p.value = H);
|
|
9261
9272
|
});
|
|
9262
9273
|
function y() {
|
|
9263
|
-
return t.getSelectionItems(
|
|
9274
|
+
return t.getSelectionItems(f.value);
|
|
9264
9275
|
}
|
|
9265
9276
|
function S() {
|
|
9266
9277
|
const H = o.value.reduce((ue, ee) => (ue.set(ee.raw[a.value], ee), ue), /* @__PURE__ */ new Map());
|
|
9267
|
-
return
|
|
9278
|
+
return f.value.map((ue) => H.get(ue)).filter((ue) => !!ue);
|
|
9268
9279
|
}
|
|
9269
9280
|
const D = j(() => u.value && s.value), M = j(() => !!e.hierarchy), v = j(() => {
|
|
9270
|
-
const H =
|
|
9281
|
+
const H = d.value && c.value === "DependOnCheck";
|
|
9271
9282
|
return D.value && H;
|
|
9272
|
-
}), g = j(() => D.value && !
|
|
9283
|
+
}), g = j(() => D.value && !d.value), F = j(() => D.value && d.value && c.value === "OnCheckAndClick");
|
|
9273
9284
|
j(() => F.value);
|
|
9274
9285
|
function m() {
|
|
9275
|
-
const H = t.getSelectionItems(
|
|
9286
|
+
const H = t.getSelectionItems(f.value);
|
|
9276
9287
|
i.emit("selectionChange", H);
|
|
9277
9288
|
}
|
|
9278
9289
|
function w(H) {
|
|
@@ -9285,36 +9296,36 @@ function yo(e, t, n, o, i) {
|
|
|
9285
9296
|
Z.checked = !0, Z.raw.__fv_checked__ = !0;
|
|
9286
9297
|
});
|
|
9287
9298
|
}
|
|
9288
|
-
|
|
9299
|
+
he(() => o.value, () => {
|
|
9289
9300
|
E();
|
|
9290
|
-
}),
|
|
9291
|
-
|
|
9292
|
-
}, { immediate: !0 }),
|
|
9293
|
-
s.value = !!H.multiSelect,
|
|
9301
|
+
}), he(() => e.selectionValues, (H) => {
|
|
9302
|
+
f.value = H, E();
|
|
9303
|
+
}, { immediate: !0 }), he(() => e.selection, (H) => {
|
|
9304
|
+
s.value = !!H.multiSelect, c.value = H.multiSelectMode || "DependOnCheck", d.value = !!H.showCheckbox;
|
|
9294
9305
|
});
|
|
9295
9306
|
const l = j(() => !s.value);
|
|
9296
9307
|
function b(H) {
|
|
9297
9308
|
return H.raw[a.value];
|
|
9298
9309
|
}
|
|
9299
9310
|
function I(H) {
|
|
9300
|
-
return
|
|
9311
|
+
return f.value.findIndex((ue) => ue === b(H));
|
|
9301
9312
|
}
|
|
9302
9313
|
function V() {
|
|
9303
9314
|
S().forEach((ue) => {
|
|
9304
9315
|
ue.checked = !1;
|
|
9305
|
-
}), t.getSelectionItems(
|
|
9316
|
+
}), t.getSelectionItems(f.value).forEach((ue) => {
|
|
9306
9317
|
ue.__fv_checked__ = !1;
|
|
9307
|
-
}),
|
|
9318
|
+
}), f.value = [], r.value = "";
|
|
9308
9319
|
}
|
|
9309
9320
|
function h(H) {
|
|
9310
9321
|
const Z = H.raw;
|
|
9311
9322
|
Z.__fv_checked__ = !0, Z.__fv_indeterminate__ = !1;
|
|
9312
|
-
const ue = new Set(
|
|
9313
|
-
ue.add(Z[a.value]),
|
|
9323
|
+
const ue = new Set(f.value);
|
|
9324
|
+
ue.add(Z[a.value]), f.value = Array.from(ue.values()), H.checked = !0, H.indeterminate = !1;
|
|
9314
9325
|
}
|
|
9315
9326
|
function C(H) {
|
|
9316
9327
|
const Z = H.raw;
|
|
9317
|
-
Z.__fv_checked__ = !1, Z.__fv_indeterminate__ = !1,
|
|
9328
|
+
Z.__fv_checked__ = !1, Z.__fv_indeterminate__ = !1, f.value = f.value.filter((ue) => ue !== Z[a.value]), H.checked = !1, H.indeterminate = !1;
|
|
9318
9329
|
}
|
|
9319
9330
|
function k(H) {
|
|
9320
9331
|
h(H), r.value = H.raw[a.value];
|
|
@@ -9324,7 +9335,7 @@ function yo(e, t, n, o, i) {
|
|
|
9324
9335
|
}
|
|
9325
9336
|
function O(H) {
|
|
9326
9337
|
const Z = H.raw;
|
|
9327
|
-
Z.__fv_checked__ = !1, Z.__fv_indeterminate__ = !0,
|
|
9338
|
+
Z.__fv_checked__ = !1, Z.__fv_indeterminate__ = !0, f.value = f.value.filter((ue) => ue !== Z[a.value]), H.checked = !1, H.indeterminate = !0;
|
|
9328
9339
|
}
|
|
9329
9340
|
function R(H) {
|
|
9330
9341
|
l.value && V(), H.checked ? C(H) : h(H), m();
|
|
@@ -9347,7 +9358,7 @@ function yo(e, t, n, o, i) {
|
|
|
9347
9358
|
}
|
|
9348
9359
|
function U(H) {
|
|
9349
9360
|
for (const Z of H)
|
|
9350
|
-
if (
|
|
9361
|
+
if (f.value.includes(Z)) {
|
|
9351
9362
|
const ue = o.value.find((ee) => ee.raw[a.value] === Z);
|
|
9352
9363
|
ue && T(ue);
|
|
9353
9364
|
}
|
|
@@ -9356,7 +9367,7 @@ function yo(e, t, n, o, i) {
|
|
|
9356
9367
|
o.value.forEach((H) => k(H)), m();
|
|
9357
9368
|
}
|
|
9358
9369
|
function ie() {
|
|
9359
|
-
|
|
9370
|
+
f.value.splice(0, f.value.length), o.value.forEach((H) => {
|
|
9360
9371
|
const Z = H.raw;
|
|
9361
9372
|
Z.__fv_checked__ = !1, Z.__fv_indeterminate__ = !1, H.checked = !1, H.indeterminate = !1;
|
|
9362
9373
|
}), m();
|
|
@@ -9374,18 +9385,18 @@ function yo(e, t, n, o, i) {
|
|
|
9374
9385
|
getSelectionRow: se,
|
|
9375
9386
|
indeterminate: O,
|
|
9376
9387
|
isSelectingHirarchyItem: M,
|
|
9377
|
-
multiSelectMode:
|
|
9388
|
+
multiSelectMode: c,
|
|
9378
9389
|
multiSelectOnClickRow: F,
|
|
9379
9390
|
multiSelectOnClickRowWithShift: g,
|
|
9380
9391
|
multiSelectOnlyOnCheck: v,
|
|
9381
9392
|
select: k,
|
|
9382
9393
|
selectAll: J,
|
|
9383
|
-
selectedValues:
|
|
9394
|
+
selectedValues: f,
|
|
9384
9395
|
selectItem: $,
|
|
9385
9396
|
selectItemById: A,
|
|
9386
9397
|
selectItemByIds: L,
|
|
9387
|
-
showCheckBox:
|
|
9388
|
-
showSelectAll:
|
|
9398
|
+
showCheckBox: d,
|
|
9399
|
+
showSelectAll: p,
|
|
9389
9400
|
toggleSelectItem: B,
|
|
9390
9401
|
toggleSelectItemWithoutRow: R,
|
|
9391
9402
|
unSelect: T,
|
|
@@ -9395,22 +9406,22 @@ function yo(e, t, n, o, i) {
|
|
|
9395
9406
|
}
|
|
9396
9407
|
function Ns(e, t) {
|
|
9397
9408
|
var M, v;
|
|
9398
|
-
const n = String(Date.now()), o = 50, { showCheckBox: i, showSelectAll: a } = t, r = _(((M = e.rowNumber) == null ? void 0 : M.enable) ?? !1), u = j(() => e.hierarchy && i.value && e.selection.enableSelectRow && e.selection.multiSelect ? !1 : i.value), s = _(r.value ? ((v = e.rowNumber) == null ? void 0 : v.width) ?? 32 : 0),
|
|
9409
|
+
const n = String(Date.now()), o = 50, { showCheckBox: i, showSelectAll: a } = t, r = _(((M = e.rowNumber) == null ? void 0 : M.enable) ?? !1), u = j(() => e.hierarchy && i.value && e.selection.enableSelectRow && e.selection.multiSelect ? !1 : i.value), s = _(r.value ? ((v = e.rowNumber) == null ? void 0 : v.width) ?? 32 : 0), c = _(u.value ? o : 0), d = j(() => {
|
|
9399
9410
|
var g;
|
|
9400
9411
|
return r.value ? ((g = e.rowNumber) == null ? void 0 : g.heading) ?? "序号" : "";
|
|
9401
|
-
}),
|
|
9402
|
-
|
|
9412
|
+
}), p = j(() => (u.value && !e.hierarchy ? Number(c.value) : 0) + (r.value ? Number(s.value) : 0));
|
|
9413
|
+
he(() => e.rowNumber, (g) => {
|
|
9403
9414
|
g && g.enable !== void 0 && (r.value = g.enable), g && g.width !== void 0 && (s.value = g.width);
|
|
9404
9415
|
});
|
|
9405
|
-
function
|
|
9416
|
+
function f(g) {
|
|
9406
9417
|
return {
|
|
9407
9418
|
top: `${g.top}px`,
|
|
9408
|
-
width: `${
|
|
9419
|
+
width: `${p.value}px`,
|
|
9409
9420
|
height: `${g.height || ""}px`
|
|
9410
9421
|
};
|
|
9411
9422
|
}
|
|
9412
9423
|
const y = j(() => ({
|
|
9413
|
-
width: `${
|
|
9424
|
+
width: `${p.value}px`
|
|
9414
9425
|
}));
|
|
9415
9426
|
function S(g) {
|
|
9416
9427
|
return `${n}_${g.type}_r_${g.index}_${g.refreshKey || ""}`;
|
|
@@ -9418,7 +9429,7 @@ function Ns(e, t) {
|
|
|
9418
9429
|
function D(g) {
|
|
9419
9430
|
return `${n}_${g.type}_r_${g.index}_${g.refreshKey || ""}`;
|
|
9420
9431
|
}
|
|
9421
|
-
return { showRowNumer: r, showSidebarCheckBox: u, sidebarCellPosition:
|
|
9432
|
+
return { showRowNumer: r, showSidebarCheckBox: u, sidebarCellPosition: f, sidebarCornerCellStyle: y, sidebarTitle: d, sidebarWidth: p, rowKey: D, cellKey: S };
|
|
9422
9433
|
}
|
|
9423
9434
|
const $s = {
|
|
9424
9435
|
ascend: (e, t) => e === t ? 0 : e === !1 ? -1 : 1,
|
|
@@ -9463,19 +9474,19 @@ function Ls(e) {
|
|
|
9463
9474
|
return o(r.column);
|
|
9464
9475
|
}
|
|
9465
9476
|
function a(r, u) {
|
|
9466
|
-
const s = i(r),
|
|
9467
|
-
if (
|
|
9468
|
-
const
|
|
9469
|
-
|
|
9477
|
+
const s = i(r), c = (r.status & Ve.sortable) === Ve.sortable && (r.status & Ve.sorted) === Ve.sorted, d = (r.status & Ve.ascending) === Ve.ascending, p = (r.status & Ve.descending) === Ve.descending;
|
|
9478
|
+
if (c && s) {
|
|
9479
|
+
const f = d ? s.ascend : p ? s.decend : void 0;
|
|
9480
|
+
f ? u.addSorter(r.field, { field: r.field, compare: f }) : u.removeSorter(r.field);
|
|
9470
9481
|
} else
|
|
9471
9482
|
u.removeSorter(r.field);
|
|
9472
9483
|
}
|
|
9473
9484
|
return { getSorterByColumn: o, updateSorter: a };
|
|
9474
9485
|
}
|
|
9475
9486
|
function Ws(e) {
|
|
9476
|
-
const t = "parent", n = "layer", o = "hasChildren", i = (a, r = 1, u = [], s = null) => (a = a || [], a.reduce((
|
|
9477
|
-
Object.keys(
|
|
9478
|
-
}), u.push(
|
|
9487
|
+
const t = "parent", n = "layer", o = "hasChildren", i = (a, r = 1, u = [], s = null) => (a = a || [], a.reduce((c, d) => (d.id = d.id || d.data[e.idField], d[t] = s, d[n] = r, d[o] = !1, Object.keys(d.data).forEach((p) => {
|
|
9488
|
+
Object.keys(d).includes(p) || (d[p] = d.data[p]);
|
|
9489
|
+
}), u.push(d), d.children && d.children.length && (d[o] = !0, i(d.children, r + 1, u, d.id)), c), u), u);
|
|
9479
9490
|
return { flatTreeData: i };
|
|
9480
9491
|
}
|
|
9481
9492
|
const As = /* @__PURE__ */ Me({
|
|
@@ -9483,7 +9494,7 @@ const As = /* @__PURE__ */ Me({
|
|
|
9483
9494
|
props: Dt,
|
|
9484
9495
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
|
|
9485
9496
|
setup(e, t) {
|
|
9486
|
-
const n = _(), o = _(!0), i = _(!1), a = _([]), r = 0, u = _(e.columns), s = so(),
|
|
9497
|
+
const n = _(), o = _(!0), i = _(!1), a = _([]), r = 0, u = _(e.columns), s = so(), c = ho(e), d = uo(e), p = Dn(e, c), f = Nn(e, /* @__PURE__ */ new Map(), s, d, c), y = yo(e, f, c, a, t), S = Mn(e, n), D = _(), M = ht("design-item-context"), v = Qt(D, M), g = j(() => f.dataView.value.length), F = go(e, t, y, c), m = vo(e, t, c, F), w = fo(e), E = po(e, {}, w), l = mo(e, m, d, c, w, E), b = Ds(e, c, E, l), I = Rs(e, c, E, l), V = co(e, u, f, g, r, l, b, I), {
|
|
9487
9498
|
getVisualData: h
|
|
9488
9499
|
} = V;
|
|
9489
9500
|
a.value = h(0, g.value + r - 1), pt(() => {
|
|
@@ -9503,7 +9514,7 @@ const As = /* @__PURE__ */ Me({
|
|
|
9503
9514
|
renderHeader: R
|
|
9504
9515
|
} = O(e, t, S), B = Bn(), {
|
|
9505
9516
|
renderListArea: $
|
|
9506
|
-
} = En(e, t, a,
|
|
9517
|
+
} = En(e, t, a, f, p, B, y, V);
|
|
9507
9518
|
function A(L) {
|
|
9508
9519
|
e.multiSelect && (L.preventDefault(), L.stopPropagation());
|
|
9509
9520
|
}
|
|
@@ -9699,7 +9710,7 @@ const As = /* @__PURE__ */ Me({
|
|
|
9699
9710
|
categories: tu
|
|
9700
9711
|
}, bo = {
|
|
9701
9712
|
data: { type: Array, default: [] }
|
|
9702
|
-
}, Co =
|
|
9713
|
+
}, Co = lt(bo, Qs, kn, In, nu), ou = /* @__PURE__ */ Me({
|
|
9703
9714
|
name: "FListViewTableDesign",
|
|
9704
9715
|
props: bo,
|
|
9705
9716
|
emits: ["outputValue", "currentEvent", "selectionChanged"],
|