@farris/ui-vue 1.6.5-beta.8 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/avatar/index.esm.js +335 -335
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +6 -6
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +139 -134
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +300 -300
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +7 -6
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +295 -295
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3407 -3338
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +5 -5
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +173 -172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +637 -637
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +737 -732
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +728 -706
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +670 -665
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +205 -205
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +42 -40
- package/components/list-view/index.umd.cjs +2 -2
- package/components/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +482 -483
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +424 -424
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +276 -276
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +161 -161
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +322 -316
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +541 -534
- package/components/order/index.umd.cjs +2 -2
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +216 -216
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +489 -467
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +282 -282
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +875 -873
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +504 -496
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/search-box/index.esm.js +76 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +212 -212
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +382 -377
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/tabs/index.esm.js +584 -582
- package/components/tabs/index.umd.cjs +2 -2
- package/components/textarea/index.esm.js +362 -362
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +9799 -0
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/time-picker/package.json +8 -0
- package/components/time-picker/style.js +6 -0
- package/components/transfer/index.esm.js +81 -79
- package/components/transfer/index.umd.cjs +2 -2
- package/components/tree-grid/index.esm.js +100 -100
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2361 -2279
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +220 -220
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +4856 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +254 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +381 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +15445 -0
- package/designer/data-grid/index.umd.cjs +23 -0
- package/designer/data-view/index.esm.js +854 -0
- package/designer/data-view/index.umd.cjs +38 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +525 -0
- package/designer/drawer/index.umd.cjs +1 -0
- package/designer/farris-designer.all.esm.js +22331 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1099 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/list-view/index.css +1 -0
- package/designer/list-view/index.esm.js +4685 -0
- package/designer/list-view/index.umd.cjs +40 -0
- package/designer/radio-group/index.css +1 -0
- package/designer/radio-group/index.esm.js +6989 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +1099 -0
- package/designer/tree-grid/index.umd.cjs +1 -0
- package/farris.all.esm.js +13299 -13177
- package/farris.all.umd.cjs +25 -25
- package/locales/data-grid/ui/en.json +4 -3
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +9 -7
- package/locales/designer/zh-CHS.json +4 -2
- package/locales/designer/zh-CHT.json +4 -2
- package/locales/ui/en.json +9 -7
- package/locales/ui/zh-CHS.json +4 -2
- package/locales/ui/zh-CHT.json +4 -2
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
|
@@ -43,7 +43,7 @@ function me(e, t) {
|
|
|
43
43
|
const f = u(l);
|
|
44
44
|
return Object.keys(f).reduce((c, r) => (Object.prototype.hasOwnProperty.call(i, r) && (c[r] && se(c[r]) && se(i[r] || !i[r]) ? Object.assign(c[r], i[r] || {}) : c[r] = i[r]), c), f), f;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function M(i, l) {
|
|
47
47
|
return Object.keys(i).filter((c) => i[c] != null).reduce((c, r) => {
|
|
48
48
|
if (l.has(r)) {
|
|
49
49
|
const v = l.get(r);
|
|
@@ -60,7 +60,7 @@ function me(e, t) {
|
|
|
60
60
|
}
|
|
61
61
|
function V(i, l, f = /* @__PURE__ */ new Map()) {
|
|
62
62
|
const c = h(i, l);
|
|
63
|
-
return
|
|
63
|
+
return M(c, f);
|
|
64
64
|
}
|
|
65
65
|
function s(i) {
|
|
66
66
|
var f;
|
|
@@ -81,7 +81,7 @@ function me(e, t) {
|
|
|
81
81
|
function C(i) {
|
|
82
82
|
n = i;
|
|
83
83
|
}
|
|
84
|
-
return { getSchemaByType: S, resolveSchemaWithDefaultValue: s, resolveSchemaToProps: V, mappingSchemaToProps:
|
|
84
|
+
return { getSchemaByType: S, resolveSchemaWithDefaultValue: s, resolveSchemaToProps: V, mappingSchemaToProps: M, setDesignerContext: C };
|
|
85
85
|
}
|
|
86
86
|
const pe = {}, ge = {}, { getSchemaByType: wn, resolveSchemaWithDefaultValue: it, resolveSchemaToProps: st, mappingSchemaToProps: ct, setDesignerContext: Cn } = me(pe, ge);
|
|
87
87
|
function ut(e = {}) {
|
|
@@ -129,11 +129,11 @@ function ut(e = {}) {
|
|
|
129
129
|
}
|
|
130
130
|
return !1;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function M(s, C) {
|
|
133
133
|
return S(s).reduce((f, c) => f && h(c, C), !0);
|
|
134
134
|
}
|
|
135
135
|
function V(s, C) {
|
|
136
|
-
const i = Object.keys(s), l = i.includes("allOf"), f = i.includes("anyOf"), c = l || f, k = (c ? s[c ? l ? "allOf" : "anyOf" : "allOf"] : [s]).map((j) =>
|
|
136
|
+
const i = Object.keys(s), l = i.includes("allOf"), f = i.includes("anyOf"), c = l || f, k = (c ? s[c ? l ? "allOf" : "anyOf" : "allOf"] : [s]).map((j) => M(j, C));
|
|
137
137
|
return l ? !k.includes(!1) : k.includes(!0);
|
|
138
138
|
}
|
|
139
139
|
return { parseValueSchema: V };
|
|
@@ -430,7 +430,7 @@ function ye(e, t, n) {
|
|
|
430
430
|
function h(c, r) {
|
|
431
431
|
return () => S.parseValueSchema(c, r);
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function M(c, r, v) {
|
|
434
434
|
return c.includes("visible") && r.visible !== void 0 ? typeof r.visible == "boolean" ? () => !!r.visible : r.visible === void 0 ? !0 : h(r.visible, v) : () => !0;
|
|
435
435
|
}
|
|
436
436
|
function V(c, r, v) {
|
|
@@ -442,9 +442,9 @@ function ye(e, t, n) {
|
|
|
442
442
|
}
|
|
443
443
|
function C(c, r, v, k, O, j = "", E = "") {
|
|
444
444
|
return Object.keys(c).map((w) => {
|
|
445
|
-
const b = T(1), R = w, o = c[w], y = Object.keys(o), B = o.title, d = o.type, F = I.get(d) || { type: "input-group", enableClear: !1 }, g = o.editor ? Object.assign({}, F, o.editor) : Object.assign({}, F), a =
|
|
445
|
+
const b = T(1), R = w, o = c[w], y = Object.keys(o), B = o.title, d = o.type, F = I.get(d) || { type: "input-group", enableClear: !1 }, g = o.editor ? Object.assign({}, F, o.editor) : Object.assign({}, F), a = M(y, o, r), m = V(y, o, r);
|
|
446
446
|
g.readonly = g.readonly === void 0 ? m() : g.readonly;
|
|
447
|
-
const P = o.type === "cascade" ? C(o.properties, r, v, k, O, j, E) : [],
|
|
447
|
+
const P = o.type === "cascade" ? C(o.properties, r, v, k, O, j, E) : [], D = !0;
|
|
448
448
|
let L = s(o, E);
|
|
449
449
|
const _ = $({
|
|
450
450
|
get() {
|
|
@@ -459,7 +459,7 @@ function ye(e, t, n) {
|
|
|
459
459
|
set(z) {
|
|
460
460
|
b.value += 1, L && L.convertTo ? (L.convertTo(k, w, z, O, j), L.convertTo(v, w, z, O, j)) : (k[w] = z, v[w] = z);
|
|
461
461
|
}
|
|
462
|
-
}), { refreshPanelAfterChanged: H, description: K, isExpand: ee, parentPropertyID: x } = o, q = { propertyID: R, propertyName: B, propertyType: d, propertyValue: _, editor: g, visible: a, readonly: m, cascadeConfig: P, hideCascadeTitle:
|
|
462
|
+
}), { refreshPanelAfterChanged: H, description: K, isExpand: ee, parentPropertyID: x } = o, q = { propertyID: R, propertyName: B, propertyType: d, propertyValue: _, editor: g, visible: a, readonly: m, cascadeConfig: P, hideCascadeTitle: D, refreshPanelAfterChanged: H, description: K, isExpand: ee, parentPropertyID: x };
|
|
463
463
|
return r[R] = q, q;
|
|
464
464
|
});
|
|
465
465
|
}
|
|
@@ -509,9 +509,9 @@ const be = {}, Se = {};
|
|
|
509
509
|
ye(be, Se, it);
|
|
510
510
|
const we = {}, Ce = {}, { getSchemaByType: kn, resolveSchemaWithDefaultValue: Pt, resolveSchemaToProps: Fn, mappingSchemaToProps: Tn, setDesignerContext: On } = me(we, Ce), ke = {}, Fe = {};
|
|
511
511
|
ye(ke, Fe, Pt);
|
|
512
|
-
function jt(e, t, n = /* @__PURE__ */ new Map(), u = (h,
|
|
513
|
-
return pe[t.title] = t, ge[t.title] = u, be[t.title] = I, Se[t.title] = S, we[t.title] = t, Ce[t.title] = u, ke[t.title] = I, Fe[t.title] = S, (h = {},
|
|
514
|
-
if (!
|
|
512
|
+
function jt(e, t, n = /* @__PURE__ */ new Map(), u = (h, M, V, s) => M, I = {}, S = (h) => h) {
|
|
513
|
+
return pe[t.title] = t, ge[t.title] = u, be[t.title] = I, Se[t.title] = S, we[t.title] = t, Ce[t.title] = u, ke[t.title] = I, Fe[t.title] = S, (h = {}, M = !0) => {
|
|
514
|
+
if (!M)
|
|
515
515
|
return ct(h, n);
|
|
516
516
|
const V = st(h, t, n), s = Object.keys(e).reduce((C, i) => (C[i] = e[i].default, C), {});
|
|
517
517
|
return Object.assign(s, V);
|
|
@@ -725,14 +725,14 @@ const At = "transfer", Lt = "A Farris Component", $t = "object", _t = {
|
|
|
725
725
|
function Qt(e, t) {
|
|
726
726
|
function n(S) {
|
|
727
727
|
const h = [];
|
|
728
|
-
let
|
|
729
|
-
for (;
|
|
730
|
-
h.push(
|
|
728
|
+
let M = S.nextNode();
|
|
729
|
+
for (; M; )
|
|
730
|
+
h.push(M), M = S.nextNode();
|
|
731
731
|
return h;
|
|
732
732
|
}
|
|
733
733
|
function u(S, h) {
|
|
734
|
-
const
|
|
735
|
-
return n(
|
|
734
|
+
const M = document.createTreeWalker(S, NodeFilter.SHOW_TEXT);
|
|
735
|
+
return n(M).map((i) => ({ textNode: i, text: (i.textContent || "").toLocaleLowerCase() })).map(({ textNode: i, text: l }) => {
|
|
736
736
|
const f = [];
|
|
737
737
|
let c = 0;
|
|
738
738
|
for (; c < l.length; ) {
|
|
@@ -750,12 +750,12 @@ function Qt(e, t) {
|
|
|
750
750
|
function I(S) {
|
|
751
751
|
if (!CSS.highlights || (CSS.highlights.clear(), !S || !t))
|
|
752
752
|
return;
|
|
753
|
-
const h = u(t.value, S.toLocaleLowerCase()),
|
|
754
|
-
CSS.highlights.set("search-result",
|
|
753
|
+
const h = u(t.value, S.toLocaleLowerCase()), M = new Highlight(...h);
|
|
754
|
+
CSS.highlights.set("search-result", M);
|
|
755
755
|
}
|
|
756
756
|
return { search: I };
|
|
757
757
|
}
|
|
758
|
-
function ue(e, t, n, u, I, S, h,
|
|
758
|
+
function ue(e, t, n, u, I, S, h, M, V, s) {
|
|
759
759
|
const C = T(e.size), i = T(e.textField), l = T(e.titleField), f = T(e.disableField), c = $(() => {
|
|
760
760
|
var o, y;
|
|
761
761
|
return ((o = e.selection) == null ? void 0 : o.multiSelect) && ((y = e.selection) == null ? void 0 : y.showCheckbox);
|
|
@@ -781,7 +781,7 @@ function ue(e, t, n, u, I, S, h, D, V, s) {
|
|
|
781
781
|
};
|
|
782
782
|
});
|
|
783
783
|
function R(o, y, B) {
|
|
784
|
-
return o.checked =
|
|
784
|
+
return o.checked = M.findIndexInSelectedItems(o) > -1, p("li", {
|
|
785
785
|
class: j(o, y),
|
|
786
786
|
id: O(o, y),
|
|
787
787
|
key: O(o, y),
|
|
@@ -814,7 +814,7 @@ function ue(e, t, n, u, I, S, h, D, V, s) {
|
|
|
814
814
|
renderItem: R
|
|
815
815
|
};
|
|
816
816
|
}
|
|
817
|
-
function Zt(e, t, n, u, I, S, h,
|
|
817
|
+
function Zt(e, t, n, u, I, S, h, M, V, s) {
|
|
818
818
|
const C = T(e.multiSelect), i = T(e.disableField), l = T(e.textField), {
|
|
819
819
|
onMouseenterItem: f,
|
|
820
820
|
onMouseoverItem: c,
|
|
@@ -867,7 +867,7 @@ function Zt(e, t, n, u, I, S, h, D, V, s) {
|
|
|
867
867
|
renderItem: w
|
|
868
868
|
};
|
|
869
869
|
}
|
|
870
|
-
function Kt(e, t, n, u, I, S, h,
|
|
870
|
+
function Kt(e, t, n, u, I, S, h, M, V, s) {
|
|
871
871
|
const C = T(e.multiSelect), i = T(e.disableField), l = T(e.textField), {
|
|
872
872
|
onMouseenterItem: f,
|
|
873
873
|
onMouseoverItem: c,
|
|
@@ -906,30 +906,32 @@ function Kt(e, t, n, u, I, S, h, D, V, s) {
|
|
|
906
906
|
class: k(a, m),
|
|
907
907
|
id: v(a, m),
|
|
908
908
|
key: v(a, m),
|
|
909
|
-
onClick: (
|
|
910
|
-
onMouseenter: (
|
|
911
|
-
onMouseover: (
|
|
912
|
-
onMouseout: (
|
|
909
|
+
onClick: (D) => j(a, m, D),
|
|
910
|
+
onMouseenter: (D) => f(D, a, m),
|
|
911
|
+
onMouseover: (D) => c(D, a, m),
|
|
912
|
+
onMouseout: (D) => r(D, a, m),
|
|
913
913
|
draggable: "true",
|
|
914
|
-
onDragstart: (
|
|
915
|
-
onDragenter: (
|
|
916
|
-
onDragend: (
|
|
917
|
-
onDragover: (
|
|
914
|
+
onDragstart: (D) => E(D, a, m),
|
|
915
|
+
onDragenter: (D) => N(D, m),
|
|
916
|
+
onDragend: (D) => b(D, a),
|
|
917
|
+
onDragover: (D) => w(D)
|
|
918
918
|
}, [C.value && p("div", {
|
|
919
919
|
class: "f-list-select",
|
|
920
|
-
onClick: (
|
|
920
|
+
onClick: (D) => D.stopPropagation()
|
|
921
921
|
}, [p(le, {
|
|
922
922
|
id: "list-" + v(a, m),
|
|
923
923
|
customClass: "listview-checkbox",
|
|
924
924
|
disabled: a[i.value] || !a.checked,
|
|
925
925
|
checked: a.checked,
|
|
926
|
-
"onUpdate:checked": (
|
|
927
|
-
onChange: (
|
|
926
|
+
"onUpdate:checked": (D) => a.checked = D,
|
|
927
|
+
onChange: (D) => O(a, m, !D.checked)
|
|
928
928
|
}, null)]), p("div", {
|
|
929
929
|
class: "f-list-content"
|
|
930
930
|
}, [F(a)]), p("div", {
|
|
931
931
|
class: "f-list-remove",
|
|
932
|
-
onClick: (
|
|
932
|
+
onClick: (D) => {
|
|
933
|
+
D.stopPropagation(), R(m);
|
|
934
|
+
}
|
|
933
935
|
}, [p("div", {
|
|
934
936
|
class: "f-list-remove-icon"
|
|
935
937
|
}, [p("i", {
|
|
@@ -944,7 +946,7 @@ function Kt(e, t, n, u, I, S, h, D, V, s) {
|
|
|
944
946
|
renderItem: g
|
|
945
947
|
};
|
|
946
948
|
}
|
|
947
|
-
function en(e, t, n, u, I, S, h,
|
|
949
|
+
function en(e, t, n, u, I, S, h, M, V, s) {
|
|
948
950
|
var v;
|
|
949
951
|
const C = T(((v = e.group) == null ? void 0 : v.groupFields) || []), {
|
|
950
952
|
collpaseGroupIconClass: i
|
|
@@ -979,17 +981,17 @@ function en(e, t, n, u, I, S, h, D, V, s) {
|
|
|
979
981
|
}
|
|
980
982
|
function tn(e, t, n, u) {
|
|
981
983
|
const { dataView: I } = n, { updateSelectedItems: S } = u;
|
|
982
|
-
function h(
|
|
983
|
-
if (
|
|
984
|
-
if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(I.value[
|
|
984
|
+
function h(M) {
|
|
985
|
+
if (M > -1 && M < I.value.length) {
|
|
986
|
+
if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(I.value[M]))
|
|
985
987
|
return;
|
|
986
|
-
const V = I.value.splice(
|
|
988
|
+
const V = I.value.splice(M, 1);
|
|
987
989
|
S(), t.emit("removeItem", V[0]);
|
|
988
990
|
}
|
|
989
991
|
}
|
|
990
992
|
return { removeItem: h };
|
|
991
993
|
}
|
|
992
|
-
function nn(e, t, n, u, I, S, h,
|
|
994
|
+
function nn(e, t, n, u, I, S, h, M, V, s) {
|
|
993
995
|
const {
|
|
994
996
|
t: C
|
|
995
997
|
} = ve(), i = T(e.view), l = T(e.view === "CardView"), f = T({}), c = T(C("listView.emptyMessage")), r = tn(e, t, u, V), v = $(() => ({
|
|
@@ -1004,9 +1006,9 @@ function nn(e, t, n, u, I, S, h, D, V, s) {
|
|
|
1004
1006
|
}
|
|
1005
1007
|
const E = j(), {
|
|
1006
1008
|
renderItem: N
|
|
1007
|
-
} = E(e, t, n, s, I, S, V, h, r,
|
|
1009
|
+
} = E(e, t, n, s, I, S, V, h, r, M), {
|
|
1008
1010
|
renderItem: w
|
|
1009
|
-
} = en(e, t, n, s, I, S, V, h, r,
|
|
1011
|
+
} = en(e, t, n, s, I, S, V, h, r, M), b = [N, w];
|
|
1010
1012
|
function R() {
|
|
1011
1013
|
return n.value.filter((B) => B.visible !== !1).map((B, d) => b[B.type](B, d, f));
|
|
1012
1014
|
}
|
|
@@ -1039,7 +1041,7 @@ function on(e, t, n) {
|
|
|
1039
1041
|
};
|
|
1040
1042
|
}
|
|
1041
1043
|
function fe(e, t, n) {
|
|
1042
|
-
const u = T(e.headerClass), I = T(e.placeholder), S = T(""), h = $(() => !S.value),
|
|
1044
|
+
const u = T(e.headerClass), I = T(e.placeholder), S = T(""), h = $(() => !S.value), M = $(() => !!S.value);
|
|
1043
1045
|
function V(l) {
|
|
1044
1046
|
S.value = "";
|
|
1045
1047
|
}
|
|
@@ -1076,7 +1078,7 @@ function fe(e, t, n) {
|
|
|
1076
1078
|
autocomplete: "off"
|
|
1077
1079
|
}, null), [[Ae, S.value]]), p("div", {
|
|
1078
1080
|
class: "input-group-append"
|
|
1079
|
-
}, [
|
|
1081
|
+
}, [M.value && p("span", {
|
|
1080
1082
|
class: "input-group-text input-group-clear",
|
|
1081
1083
|
onClick: (l) => V()
|
|
1082
1084
|
}, [p("i", {
|
|
@@ -1099,7 +1101,7 @@ function rn() {
|
|
|
1099
1101
|
function h(i, l, f) {
|
|
1100
1102
|
I.value || (u.value = f);
|
|
1101
1103
|
}
|
|
1102
|
-
function
|
|
1104
|
+
function M(i, l, f) {
|
|
1103
1105
|
u.value = -1;
|
|
1104
1106
|
}
|
|
1105
1107
|
function V() {
|
|
@@ -1118,13 +1120,13 @@ function rn() {
|
|
|
1118
1120
|
clearActiveItem: C,
|
|
1119
1121
|
onMouseenterItem: S,
|
|
1120
1122
|
onMouseoverItem: h,
|
|
1121
|
-
onMouseoutItem:
|
|
1123
|
+
onMouseoutItem: M,
|
|
1122
1124
|
resumeHover: s,
|
|
1123
1125
|
suspendHover: V
|
|
1124
1126
|
};
|
|
1125
1127
|
}
|
|
1126
1128
|
function ln(e, t, n, u) {
|
|
1127
|
-
const I = T(e.idField), { dataView: S } = n, h = T(-1),
|
|
1129
|
+
const I = T(e.idField), { dataView: S } = n, h = T(-1), M = T(!1), { activeIndex: V, focusedItemId: s, hoverIndex: C, resumeHover: i, suspendHover: l } = u;
|
|
1128
1130
|
let f, c = 0, r = 0;
|
|
1129
1131
|
function v(w, b) {
|
|
1130
1132
|
const R = w - c, o = b - r;
|
|
@@ -1160,7 +1162,7 @@ function ln(e, t, n, u) {
|
|
|
1160
1162
|
o.src = "", w.dataTransfer.setDragImage(o, 0, 0);
|
|
1161
1163
|
}
|
|
1162
1164
|
c = w.pageX, r = w.pageY, setTimeout(() => {
|
|
1163
|
-
h.value = R,
|
|
1165
|
+
h.value = R, M.value = !0, b.moving = !0;
|
|
1164
1166
|
});
|
|
1165
1167
|
}
|
|
1166
1168
|
}
|
|
@@ -1176,18 +1178,18 @@ function ln(e, t, n, u) {
|
|
|
1176
1178
|
function N(w, b) {
|
|
1177
1179
|
b && (b.moving = !1, f && (document.body.removeChild(f), f = null)), S.value.forEach((R, o) => {
|
|
1178
1180
|
R.__fv_index__ = o;
|
|
1179
|
-
}),
|
|
1181
|
+
}), M.value = !1, i(), C.value = b.raw.__fv_index__, V.value = b.raw.__fv_index__, s.value = b.raw[I.value], t.emit("change", S.value), t.emit("activeChange", [b.raw]);
|
|
1180
1182
|
}
|
|
1181
1183
|
return {
|
|
1182
1184
|
dragstart: O,
|
|
1183
1185
|
dragenter: j,
|
|
1184
1186
|
dragover: E,
|
|
1185
1187
|
dragend: N,
|
|
1186
|
-
isDragging:
|
|
1188
|
+
isDragging: M
|
|
1187
1189
|
};
|
|
1188
1190
|
}
|
|
1189
1191
|
function an(e, t, n, u, I, S) {
|
|
1190
|
-
const h = T(e.idField),
|
|
1192
|
+
const h = T(e.idField), M = T(e.disableField), V = T(e.draggable);
|
|
1191
1193
|
T(e.itemClass);
|
|
1192
1194
|
const s = T(e.selection.multiSelect ?? !1), C = T(e.selection.multiSelectMode), { isDragging: i } = u, { activeIndex: l, focusedItemId: f, hoverIndex: c } = I, { clearSelection: r, getSelectedItems: v, toggleSelectItem: k, currentSelectedDataId: O } = S, j = T(v()), E = (g) => j.value.length === 0 ? !1 : j.value.some((a) => {
|
|
1193
1195
|
let m = "";
|
|
@@ -1204,7 +1206,7 @@ function an(e, t, n, u, I, S) {
|
|
|
1204
1206
|
"f-list-view-group-item": !0,
|
|
1205
1207
|
"f-list-view-draggable-item": V.value,
|
|
1206
1208
|
"f-un-click": !g.checked,
|
|
1207
|
-
"f-un-select": !!g.raw[
|
|
1209
|
+
"f-un-select": !!g.raw[M.value],
|
|
1208
1210
|
"f-listview-active": (
|
|
1209
1211
|
// 多选
|
|
1210
1212
|
s.value && E(w(g)) || // 单选
|
|
@@ -1230,18 +1232,18 @@ function an(e, t, n, u, I, S) {
|
|
|
1230
1232
|
if (m && (P.backgroundColor = "#dae9ff"), typeof e.itemStyle == "string")
|
|
1231
1233
|
return ce(P, e.itemStyle);
|
|
1232
1234
|
if (typeof e.itemStyle == "function") {
|
|
1233
|
-
const
|
|
1234
|
-
return ce(P,
|
|
1235
|
+
const D = e.itemStyle(g);
|
|
1236
|
+
return ce(P, D);
|
|
1235
1237
|
}
|
|
1236
1238
|
return P;
|
|
1237
1239
|
}
|
|
1238
1240
|
const o = $(() => !s.value);
|
|
1239
1241
|
function y(g, a, m) {
|
|
1240
|
-
g.checked = m, !g.raw[
|
|
1242
|
+
g.checked = m, !g.raw[M.value] && (o.value && (f.value = g.raw[h.value]), k(g));
|
|
1241
1243
|
}
|
|
1242
1244
|
const B = $(() => s.value && C.value === "OnCheckClearByClick"), d = $(() => !s.value || s.value && (C.value === "OnCheckAndClick" || C.value === "OnClick"));
|
|
1243
1245
|
function F(g, a, m) {
|
|
1244
|
-
if (g.raw[
|
|
1246
|
+
if (g.raw[M.value]) {
|
|
1245
1247
|
m == null || m.preventDefault(), m == null || m.stopPropagation();
|
|
1246
1248
|
return;
|
|
1247
1249
|
}
|
|
@@ -1262,7 +1264,7 @@ const Q = /* @__PURE__ */ re({
|
|
|
1262
1264
|
props: Jt,
|
|
1263
1265
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
|
|
1264
1266
|
setup(e, t) {
|
|
1265
|
-
const n = T(), u = T(!0), I = T(!1), S = T([]), h = 0,
|
|
1267
|
+
const n = T(), u = T(!0), I = T(!1), S = T([]), h = 0, M = T(e.columns), V = ze(e, t), s = He(e), C = Ge(e), i = Ue(e, s), l = xe(e, /* @__PURE__ */ new Map(), V, C, s), f = qe(e, l, s, S, t), c = Qt(e, n), r = We(e, l), v = $(() => l.dataView.value.length), k = Xe(e, t, f, s), O = Ye(e, t, s, k, S), j = Je(e), E = Qe(e, {}, j), N = Ze(e, l, O, C, s, j, E), w = Ke(e, s, E, N), b = et(e, s, E, N), R = tt(e, M, l, v, h, N, w, b), {
|
|
1266
1268
|
getVisualData: o
|
|
1267
1269
|
} = R;
|
|
1268
1270
|
S.value = o(0, v.value + h - 1);
|
|
@@ -1279,7 +1281,7 @@ const Q = /* @__PURE__ */ re({
|
|
|
1279
1281
|
const F = d(), {
|
|
1280
1282
|
renderHeader: g
|
|
1281
1283
|
} = F(e, t, c), a = rn(), m = ln(e, t, l, a), P = an(e, t, S, m, a, f), {
|
|
1282
|
-
renderListArea:
|
|
1284
|
+
renderListArea: D
|
|
1283
1285
|
} = nn(e, t, S, l, i, a, f, R, P, m);
|
|
1284
1286
|
function L(A) {
|
|
1285
1287
|
c.search(A);
|
|
@@ -1359,7 +1361,7 @@ const Q = /* @__PURE__ */ re({
|
|
|
1359
1361
|
onMouseleave: () => {
|
|
1360
1362
|
I.value = !1;
|
|
1361
1363
|
}
|
|
1362
|
-
}, [
|
|
1364
|
+
}, [D()]), B.value && p("div", {
|
|
1363
1365
|
class: "f-list-view-footer"
|
|
1364
1366
|
}, [e.footerTemplate ? e.footerTemplate() : t.slots.footer && t.slots.footer()])]);
|
|
1365
1367
|
}
|
|
@@ -1373,15 +1375,15 @@ const Q = /* @__PURE__ */ re({
|
|
|
1373
1375
|
} = ve(), u = T(e.identifyField), I = {
|
|
1374
1376
|
selectedStart: n("transfer.selectedStart"),
|
|
1375
1377
|
selectedEnd: n("transfer.selectedEnd")
|
|
1376
|
-
}, S = T(e.displayType), h = T(!1),
|
|
1378
|
+
}, S = T(e.displayType), h = T(!1), M = T(e.dataSource), V = T(e.textField), s = T(e.selections || []), C = $(() => s.value.map((a) => a[u.value])), i = /* @__PURE__ */ new Map(), l = T(), f = T(), c = T();
|
|
1377
1379
|
let r;
|
|
1378
1380
|
function v() {
|
|
1379
1381
|
const a = /* @__PURE__ */ new Map(), m = e.selectionValues || [];
|
|
1380
|
-
m.length && m.reduce((
|
|
1382
|
+
m.length && m.reduce((D, L) => (D.set(L, !0), D), a);
|
|
1381
1383
|
const P = e.selections || [];
|
|
1382
|
-
P.length && (a.clear(), P.reduce((
|
|
1383
|
-
const L =
|
|
1384
|
-
|
|
1384
|
+
P.length && (a.clear(), P.reduce((D, L) => (D.set(L[u.value], !0), D), a)), s.value.length || (s.value = M.value.filter((D) => a.has(D[u.value])).map((D) => Object.assign({}, D))), M.value.forEach((D) => {
|
|
1385
|
+
const L = D[u.value], _ = a.has(L);
|
|
1386
|
+
D.checked = _, _ && i.set(L, D);
|
|
1385
1387
|
});
|
|
1386
1388
|
}
|
|
1387
1389
|
v(), Y(() => e.selections, (a) => {
|
|
@@ -1401,7 +1403,7 @@ const Q = /* @__PURE__ */ re({
|
|
|
1401
1403
|
function w() {
|
|
1402
1404
|
return p(Q, {
|
|
1403
1405
|
class: "f-utils-fill",
|
|
1404
|
-
data:
|
|
1406
|
+
data: M.value,
|
|
1405
1407
|
multiSelect: !0,
|
|
1406
1408
|
itemClass: "f-transfer-list-item",
|
|
1407
1409
|
textField: V.value,
|
|
@@ -1423,7 +1425,7 @@ const Q = /* @__PURE__ */ re({
|
|
|
1423
1425
|
function b() {
|
|
1424
1426
|
return p($e, {
|
|
1425
1427
|
ref: c,
|
|
1426
|
-
data:
|
|
1428
|
+
data: M.value,
|
|
1427
1429
|
columns: e.columns,
|
|
1428
1430
|
virtualized: e.virtualized,
|
|
1429
1431
|
rowOption: e.rowOption,
|
|
@@ -1454,19 +1456,19 @@ const Q = /* @__PURE__ */ re({
|
|
|
1454
1456
|
function o(a) {
|
|
1455
1457
|
const m = a[u.value];
|
|
1456
1458
|
if (m !== null || m !== void 0) {
|
|
1457
|
-
s.value = s.value.filter((
|
|
1459
|
+
s.value = s.value.filter((D) => D[u.value] !== m);
|
|
1458
1460
|
const P = i.get(m);
|
|
1459
1461
|
P && (P.checked = !1, i.delete(m)), t.emit("change", s.value), t.emit("removeItem", a);
|
|
1460
1462
|
}
|
|
1461
1463
|
}
|
|
1462
1464
|
Y(s, (a) => {
|
|
1463
1465
|
l.value.updateDataSource(J(a));
|
|
1464
|
-
const m = r == null ? void 0 : r[u.value], P = a.find((
|
|
1466
|
+
const m = r == null ? void 0 : r[u.value], P = a.find((D) => m === D[u.value]);
|
|
1465
1467
|
P ? l.value.activeRowById(P[u.value]) : (r = null, l.value.activeRowById(""));
|
|
1466
1468
|
});
|
|
1467
1469
|
function y(a) {
|
|
1468
1470
|
const m = /* @__PURE__ */ new Map();
|
|
1469
|
-
s.value.reduce((P,
|
|
1471
|
+
s.value.reduce((P, D) => (P.set(D[u.value], D), P), m), s.value = a.map((P) => m.get(P[u.value])), t.emit("change", s.value);
|
|
1470
1472
|
}
|
|
1471
1473
|
function B(a) {
|
|
1472
1474
|
r = a[0], t.emit("activeChange", a);
|
|
@@ -1531,7 +1533,7 @@ function sn(e, t, n) {
|
|
|
1531
1533
|
var B;
|
|
1532
1534
|
const u = "", I = "", S = T();
|
|
1533
1535
|
let h;
|
|
1534
|
-
function
|
|
1536
|
+
function M() {
|
|
1535
1537
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
1536
1538
|
}
|
|
1537
1539
|
function V() {
|
|
@@ -1616,8 +1618,8 @@ function sn(e, t, n) {
|
|
|
1616
1618
|
!h && d && (h = d.formSchemaUtils);
|
|
1617
1619
|
let F = "";
|
|
1618
1620
|
{
|
|
1619
|
-
const { text: m, title: P, label:
|
|
1620
|
-
F = m || P ||
|
|
1621
|
+
const { text: m, title: P, label: D, mainTitle: L, name: _, type: H } = t.schema;
|
|
1622
|
+
F = m || P || D || L || _ || ((a = he[H]) == null ? void 0 : a.name);
|
|
1621
1623
|
}
|
|
1622
1624
|
F && h.getControlBasicInfoMap().set(t.schema.id, {
|
|
1623
1625
|
componentTitle: F,
|
|
@@ -1628,11 +1630,11 @@ function sn(e, t, n) {
|
|
|
1628
1630
|
var m;
|
|
1629
1631
|
const { changeObject: F } = d, { propertyID: g, propertyValue: a } = F;
|
|
1630
1632
|
if (["text", "title", "label", "name", "mainTitle"].includes((m = d == null ? void 0 : d.changeObject) == null ? void 0 : m.propertyID) && g && a && (R(), h)) {
|
|
1631
|
-
const P = h.getControlBasicInfoMap(),
|
|
1633
|
+
const P = h.getControlBasicInfoMap(), D = P.keys().toArray().filter((L) => {
|
|
1632
1634
|
var _, H;
|
|
1633
1635
|
return ((_ = P.get(L)) == null ? void 0 : _.reliedComponentId) === ((H = t == null ? void 0 : t.schema) == null ? void 0 : H.id);
|
|
1634
1636
|
});
|
|
1635
|
-
|
|
1637
|
+
D != null && D.length && D.forEach((L) => {
|
|
1636
1638
|
const _ = P.get(L).parentPathName.split(" > ");
|
|
1637
1639
|
_[0] = a, P.get(L).parentPathName = _.join(" > ");
|
|
1638
1640
|
});
|
|
@@ -1642,7 +1644,7 @@ function sn(e, t, n) {
|
|
|
1642
1644
|
o(d);
|
|
1643
1645
|
}
|
|
1644
1646
|
return S.value = {
|
|
1645
|
-
canMove:
|
|
1647
|
+
canMove: M(),
|
|
1646
1648
|
canSelectParent: V(),
|
|
1647
1649
|
canDelete: s(),
|
|
1648
1650
|
canNested: !C(),
|
|
@@ -1675,12 +1677,12 @@ const cn = /* @__PURE__ */ re({
|
|
|
1675
1677
|
props: ae,
|
|
1676
1678
|
emits: ["change"],
|
|
1677
1679
|
setup(e, t) {
|
|
1678
|
-
const n = T(e.identifyField), u = T("已选:"), I = T("项数据"), S = T(e.displayType), h = T(!1),
|
|
1680
|
+
const n = T(e.identifyField), u = T("已选:"), I = T("项数据"), S = T(e.displayType), h = T(!1), M = T(e.dataSource), V = T(e.selections || []), s = $(() => V.value.map((y) => y[n.value])), C = /* @__PURE__ */ new Map();
|
|
1679
1681
|
function i() {
|
|
1680
1682
|
const y = /* @__PURE__ */ new Map(), B = e.selectionValues || [];
|
|
1681
1683
|
B.length && B.reduce((F, g) => (F.set(g, !0), F), y);
|
|
1682
1684
|
const d = e.selections || [];
|
|
1683
|
-
d.length && (y.clear(), d.reduce((F, g) => (F.set(g[n.value], !0), F), y)), V.value.length || (V.value =
|
|
1685
|
+
d.length && (y.clear(), d.reduce((F, g) => (F.set(g[n.value], !0), F), y)), V.value.length || (V.value = M.value.filter((F) => y.has(F[n.value])).map((F) => Object.assign({}, F))), M.value.forEach((F) => {
|
|
1684
1686
|
const g = F[n.value], a = y.has(g);
|
|
1685
1687
|
F.checked = a, a && C.set(g, F);
|
|
1686
1688
|
});
|
|
@@ -1693,7 +1695,7 @@ const cn = /* @__PURE__ */ re({
|
|
|
1693
1695
|
function r() {
|
|
1694
1696
|
return p(Q, {
|
|
1695
1697
|
class: "f-utils-fill",
|
|
1696
|
-
data:
|
|
1698
|
+
data: M.value,
|
|
1697
1699
|
"multi-select": !0,
|
|
1698
1700
|
draggable: !1,
|
|
1699
1701
|
header: "Search",
|