@farris/ui-vue 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +147 -139
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +11 -28
- package/components/avatar/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +33 -50
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +183 -171
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +236 -235
- package/components/condition/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +1531 -1560
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +1299 -1300
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +235 -252
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +127 -143
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +206 -201
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +650 -647
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +1101 -1131
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +335 -332
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +128 -145
- package/components/input-group/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +306 -303
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +2470 -2469
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1928 -1958
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/order/index.esm.js +802 -788
- package/components/order/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +116 -137
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-editor/index.esm.js +533 -521
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +178 -177
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +56 -73
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +547 -518
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +260 -281
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +598 -617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/switch/index.esm.js +137 -154
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +109 -130
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +103 -120
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +172 -189
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +124 -122
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +1600 -1630
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +245 -246
- package/components/tree-view/index.umd.cjs +1 -1
- package/farris.all.esm.js +4123 -4112
- package/farris.all.umd.cjs +8 -8
- package/package.json +1 -1
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -2
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -16
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var Ce = Object.defineProperty;
|
|
2
2
|
var Se = (e, t, n) => t in e ? Ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var $ = (e, t, n) => Se(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as
|
|
4
|
+
import { ref as C, computed as B, createVNode as v, Fragment as Q, watch as H, withModifiers as we, withDirectives as Fe, vModelText as ke, defineComponent as N, inject as q, onMounted as ie, nextTick as Te } from "vue";
|
|
5
5
|
import { cloneDeep as Me } from "lodash-es";
|
|
6
|
-
import { useIdentify as Ve, useHierarchy as De, useGroupData as
|
|
6
|
+
import { useIdentify as Ve, useHierarchy as De, useGroupData as je, usePagination as Ie, useDataView as Oe, useSelection as Pe, useEdit as Be, useVisualDataBound as Ae, useVisualDataCell as xe, useVisualDataRow as Le, useVisualGroupRow as $e, useVisualSummaryRow as Ee, useVisualData as He } from "@farris/ui-vue/components/data-view";
|
|
7
7
|
import { FCheckBox as X } from "@farris/ui-vue/components/checkbox";
|
|
8
|
-
import
|
|
8
|
+
import Ne from "@farris/ui-vue/components/list-view";
|
|
9
9
|
import le from "@farris/ui-vue/components/button-edit";
|
|
10
10
|
import { useDesignerComponent as Re } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-component";
|
|
11
11
|
const se = {}, ce = {};
|
|
12
12
|
function Y(e) {
|
|
13
|
-
const { properties: t, title: n } = e, o = Object.keys(t).reduce((c,
|
|
13
|
+
const { properties: t, title: n } = e, o = Object.keys(t).reduce((c, r) => (c[r] = t[r].type === "object" && t[r].properties ? Y(t[r]) : Me(t[r].default), c), {});
|
|
14
14
|
return o.id = `${n}-${Date.now()}`, o;
|
|
15
15
|
}
|
|
16
16
|
function R(e, t = {}) {
|
|
@@ -29,12 +29,12 @@ function Ue(e, t) {
|
|
|
29
29
|
function ze(e, t) {
|
|
30
30
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, c) => {
|
|
31
31
|
if (t.has(c)) {
|
|
32
|
-
const
|
|
33
|
-
if (typeof
|
|
34
|
-
o[
|
|
32
|
+
const r = t.get(c);
|
|
33
|
+
if (typeof r == "string")
|
|
34
|
+
o[r] = e[c];
|
|
35
35
|
else {
|
|
36
|
-
const
|
|
37
|
-
Object.assign(o,
|
|
36
|
+
const d = r(c, e[c], e);
|
|
37
|
+
Object.assign(o, d);
|
|
38
38
|
}
|
|
39
39
|
} else
|
|
40
40
|
o[c] = e[c];
|
|
@@ -46,58 +46,58 @@ function Ge(e, t, n = /* @__PURE__ */ new Map()) {
|
|
|
46
46
|
return ze(o, n);
|
|
47
47
|
}
|
|
48
48
|
function _e(e = {}) {
|
|
49
|
-
function t(
|
|
50
|
-
if (typeof
|
|
51
|
-
return
|
|
52
|
-
if (typeof
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
55
|
-
return Number(
|
|
56
|
-
if (
|
|
57
|
-
return Number(
|
|
58
|
-
if (
|
|
59
|
-
return Number(
|
|
49
|
+
function t(m, g, l, i) {
|
|
50
|
+
if (typeof l == "number")
|
|
51
|
+
return i[m].length === l;
|
|
52
|
+
if (typeof l == "object") {
|
|
53
|
+
const h = Object.keys(l)[0], a = l[h];
|
|
54
|
+
if (h === "not")
|
|
55
|
+
return Number(i[m].length) !== Number(a);
|
|
56
|
+
if (h === "moreThan")
|
|
57
|
+
return Number(i[m].length) >= Number(a);
|
|
58
|
+
if (h === "lessThan")
|
|
59
|
+
return Number(i[m].length) <= Number(a);
|
|
60
60
|
}
|
|
61
61
|
return !1;
|
|
62
62
|
}
|
|
63
|
-
function n(
|
|
64
|
-
return
|
|
63
|
+
function n(m, g, l, i) {
|
|
64
|
+
return i[m] && i[m].propertyValue && String(i[m].propertyValue.value) === String(l);
|
|
65
65
|
}
|
|
66
66
|
const o = /* @__PURE__ */ new Map([
|
|
67
67
|
["length", t],
|
|
68
68
|
["getProperty", n]
|
|
69
69
|
]);
|
|
70
|
-
Object.keys(e).reduce((
|
|
71
|
-
function c(
|
|
72
|
-
const
|
|
73
|
-
return typeof
|
|
74
|
-
if (
|
|
75
|
-
return { target:
|
|
76
|
-
const
|
|
77
|
-
return { target:
|
|
70
|
+
Object.keys(e).reduce((m, g) => (m.set(g, e[g]), m), o);
|
|
71
|
+
function c(m, g) {
|
|
72
|
+
const l = m;
|
|
73
|
+
return typeof g == "number" ? [{ target: l, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: l, operator: "getProperty", param: m, value: !!g }] : typeof g == "object" ? Object.keys(g).map((i) => {
|
|
74
|
+
if (i === "length")
|
|
75
|
+
return { target: l, operator: "length", param: null, value: g[i] };
|
|
76
|
+
const h = i, a = g[i];
|
|
77
|
+
return { target: l, operator: "getProperty", param: h, value: a };
|
|
78
78
|
}) : [];
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return Object.keys(
|
|
82
|
-
const
|
|
83
|
-
return
|
|
80
|
+
function r(m) {
|
|
81
|
+
return Object.keys(m).reduce((l, i) => {
|
|
82
|
+
const h = c(i, m[i]);
|
|
83
|
+
return l.push(...h), l;
|
|
84
84
|
}, []);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
if (o.has(
|
|
88
|
-
const
|
|
89
|
-
return
|
|
86
|
+
function d(m, g) {
|
|
87
|
+
if (o.has(m.operator)) {
|
|
88
|
+
const l = o.get(m.operator);
|
|
89
|
+
return l && l(m.target, m.param, m.value, g) || !1;
|
|
90
90
|
}
|
|
91
91
|
return !1;
|
|
92
92
|
}
|
|
93
|
-
function m
|
|
94
|
-
return
|
|
93
|
+
function y(m, g) {
|
|
94
|
+
return r(m).reduce((h, a) => h && d(a, g), !0);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
const
|
|
98
|
-
return
|
|
96
|
+
function w(m, g) {
|
|
97
|
+
const l = Object.keys(m), i = l.includes("allOf"), h = l.includes("anyOf"), a = i || h, u = (a ? m[a ? i ? "allOf" : "anyOf" : "allOf"] : [m]).map((k) => y(k, g));
|
|
98
|
+
return i ? !u.includes(!1) : u.includes(!0);
|
|
99
99
|
}
|
|
100
|
-
return { parseValueSchema:
|
|
100
|
+
return { parseValueSchema: w };
|
|
101
101
|
}
|
|
102
102
|
const M = {
|
|
103
103
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
@@ -212,10 +212,10 @@ const M = {
|
|
|
212
212
|
/** 审批类 end */
|
|
213
213
|
}, We = {}, qe = {};
|
|
214
214
|
_e();
|
|
215
|
-
function Z(e, t, n = /* @__PURE__ */ new Map(), o = (
|
|
216
|
-
return se[t.title] = t, ce[t.title] = o, We[t.title] = c, qe[t.title] =
|
|
217
|
-
const
|
|
218
|
-
return Object.assign(
|
|
215
|
+
function Z(e, t, n = /* @__PURE__ */ new Map(), o = (d, y, w) => y, c = {}, r = (d) => d) {
|
|
216
|
+
return se[t.title] = t, ce[t.title] = o, We[t.title] = c, qe[t.title] = r, (d = {}) => {
|
|
217
|
+
const y = Ge(d, t, n), w = Object.keys(e).reduce((m, g) => (m[g] = e[g].default, m), {});
|
|
218
|
+
return Object.assign(w, y);
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
function J(e, t) {
|
|
@@ -580,199 +580,201 @@ const dt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-
|
|
|
580
580
|
}
|
|
581
581
|
},
|
|
582
582
|
keepOrder: { type: Boolean, default: !1 },
|
|
583
|
-
disableField: { type: String, default: "disabled" }
|
|
583
|
+
disableField: { type: String, default: "disabled" },
|
|
584
|
+
// 搜索启用高亮
|
|
585
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
584
586
|
};
|
|
585
587
|
Z(ue, vt, ct, ut, Ft);
|
|
586
|
-
function
|
|
587
|
-
function n(
|
|
588
|
-
const
|
|
589
|
-
let
|
|
590
|
-
for (;
|
|
591
|
-
|
|
592
|
-
return
|
|
593
|
-
}
|
|
594
|
-
function o(
|
|
595
|
-
const
|
|
596
|
-
return n(
|
|
597
|
-
const
|
|
598
|
-
let
|
|
599
|
-
for (;
|
|
600
|
-
const
|
|
601
|
-
if (
|
|
588
|
+
function kt(e, t) {
|
|
589
|
+
function n(r) {
|
|
590
|
+
const d = [];
|
|
591
|
+
let y = r.nextNode();
|
|
592
|
+
for (; y; )
|
|
593
|
+
d.push(y), y = r.nextNode();
|
|
594
|
+
return d;
|
|
595
|
+
}
|
|
596
|
+
function o(r, d) {
|
|
597
|
+
const y = document.createTreeWalker(r, NodeFilter.SHOW_TEXT);
|
|
598
|
+
return n(y).map((l) => ({ textNode: l, text: (l.textContent || "").toLocaleLowerCase() })).map(({ textNode: l, text: i }) => {
|
|
599
|
+
const h = [];
|
|
600
|
+
let a = 0;
|
|
601
|
+
for (; a < i.length; ) {
|
|
602
|
+
const f = i.indexOf(d, a);
|
|
603
|
+
if (f === -1)
|
|
602
604
|
break;
|
|
603
|
-
|
|
605
|
+
h.push(f), a = f + d.length;
|
|
604
606
|
}
|
|
605
|
-
return
|
|
606
|
-
const
|
|
607
|
-
return
|
|
607
|
+
return h.map((f) => {
|
|
608
|
+
const s = new Range();
|
|
609
|
+
return s.setStart(l, f), s.setEnd(l, f + d.length), s;
|
|
608
610
|
});
|
|
609
611
|
}).flat();
|
|
610
612
|
}
|
|
611
|
-
function c(
|
|
612
|
-
if (!CSS.highlights || (CSS.highlights.clear(), !
|
|
613
|
+
function c(r) {
|
|
614
|
+
if (!CSS.highlights || (CSS.highlights.clear(), !r || !t))
|
|
613
615
|
return;
|
|
614
|
-
const
|
|
615
|
-
CSS.highlights.set("search-result",
|
|
616
|
+
const d = o(t.value, r.toLocaleLowerCase()), y = new Highlight(...d);
|
|
617
|
+
CSS.highlights.set("search-result", y);
|
|
616
618
|
}
|
|
617
619
|
return { search: c };
|
|
618
620
|
}
|
|
619
|
-
function ae(e, t, n, o, c,
|
|
620
|
-
const
|
|
621
|
-
onMouseenterItem:
|
|
622
|
-
onMouseoverItem:
|
|
623
|
-
onMouseoutItem:
|
|
624
|
-
} =
|
|
621
|
+
function ae(e, t, n, o, c, r, d, y, w, m) {
|
|
622
|
+
const g = C(e.size), l = C(e.textField), i = C(e.titleField), h = C(e.multiSelect), a = C(e.disableField), {
|
|
623
|
+
onMouseenterItem: f,
|
|
624
|
+
onMouseoverItem: s,
|
|
625
|
+
onMouseoutItem: u
|
|
626
|
+
} = r, {
|
|
625
627
|
getKey: F,
|
|
626
|
-
listViewItemClass:
|
|
627
|
-
onCheckItem:
|
|
628
|
-
onClickItem:
|
|
629
|
-
} =
|
|
630
|
-
margin:
|
|
628
|
+
listViewItemClass: k,
|
|
629
|
+
onCheckItem: j,
|
|
630
|
+
onClickItem: S
|
|
631
|
+
} = d, b = B(() => ({
|
|
632
|
+
margin: g.value === "small" ? "0.25rem 0" : "10px 0"
|
|
631
633
|
}));
|
|
632
634
|
function D(p, V, A) {
|
|
633
|
-
return p.checked =
|
|
634
|
-
class:
|
|
635
|
+
return p.checked = y.findIndexInSelectedItems(p) > -1, v("li", {
|
|
636
|
+
class: k(p, V),
|
|
635
637
|
id: F(p, V),
|
|
636
638
|
key: F(p, V),
|
|
637
|
-
onClick: (
|
|
638
|
-
onMouseenter: (
|
|
639
|
-
onMouseover: (
|
|
640
|
-
onMouseout: (
|
|
641
|
-
}, [
|
|
639
|
+
onClick: (T) => S(T, p, V),
|
|
640
|
+
onMouseenter: (T) => f(T, p, V),
|
|
641
|
+
onMouseover: (T) => s(T, p, V),
|
|
642
|
+
onMouseout: (T) => u(T, p, V)
|
|
643
|
+
}, [h.value && v("div", {
|
|
642
644
|
class: "f-list-select",
|
|
643
|
-
onClick: (
|
|
644
|
-
}, [
|
|
645
|
+
onClick: (T) => T.stopPropagation()
|
|
646
|
+
}, [v(X, {
|
|
645
647
|
id: "list-" + F(p, V),
|
|
646
648
|
customClass: "listview-checkbox",
|
|
647
|
-
disabled: p[
|
|
649
|
+
disabled: p[a.value],
|
|
648
650
|
checked: p.checked,
|
|
649
|
-
"onUpdate:checked": (
|
|
650
|
-
onChange: (
|
|
651
|
-
|
|
651
|
+
"onUpdate:checked": (T) => p.checked = T,
|
|
652
|
+
onChange: (T) => {
|
|
653
|
+
j(p, V, !T.checked);
|
|
652
654
|
}
|
|
653
|
-
}, null)]),
|
|
655
|
+
}, null)]), v("div", {
|
|
654
656
|
class: "f-list-content"
|
|
655
|
-
}, [
|
|
656
|
-
style:
|
|
657
|
-
title: p.raw[
|
|
658
|
-
}, [p.raw[
|
|
657
|
+
}, [v("div", {
|
|
658
|
+
style: b.value,
|
|
659
|
+
title: p.raw[i.value] || p.raw[l.value]
|
|
660
|
+
}, [p.raw[l.value]])])]);
|
|
659
661
|
}
|
|
660
662
|
return {
|
|
661
663
|
renderItem: D
|
|
662
664
|
};
|
|
663
665
|
}
|
|
664
|
-
function
|
|
665
|
-
const
|
|
666
|
-
onMouseenterItem:
|
|
667
|
-
onMouseoverItem:
|
|
668
|
-
onMouseoutItem:
|
|
669
|
-
} =
|
|
670
|
-
getKey:
|
|
671
|
-
listViewItemClass:
|
|
672
|
-
onCheckItem:
|
|
666
|
+
function Tt(e, t, n, o, c, r, d, y, w, m) {
|
|
667
|
+
const g = C(e.multiSelect), l = C(e.disableField), {
|
|
668
|
+
onMouseenterItem: i,
|
|
669
|
+
onMouseoverItem: h,
|
|
670
|
+
onMouseoutItem: a
|
|
671
|
+
} = r, {
|
|
672
|
+
getKey: f,
|
|
673
|
+
listViewItemClass: s,
|
|
674
|
+
onCheckItem: u,
|
|
673
675
|
onClickItem: F
|
|
674
|
-
} =
|
|
675
|
-
function
|
|
676
|
-
return t.slots.content ?
|
|
677
|
-
item:
|
|
678
|
-
index:
|
|
676
|
+
} = d;
|
|
677
|
+
function k(S, b, D) {
|
|
678
|
+
return t.slots.content ? v(Q, null, [t.slots.content && t.slots.content({
|
|
679
|
+
item: S.raw,
|
|
680
|
+
index: b,
|
|
679
681
|
selectedItem: D
|
|
680
|
-
})]) :
|
|
682
|
+
})]) : v("div", {
|
|
681
683
|
style: "margin: 10px 0;"
|
|
682
|
-
}, [
|
|
683
|
-
}
|
|
684
|
-
function
|
|
685
|
-
return
|
|
686
|
-
class:
|
|
687
|
-
id:
|
|
688
|
-
key:
|
|
689
|
-
onClick: (p) => F(p,
|
|
690
|
-
onMouseenter: (p) =>
|
|
691
|
-
onMouseover: (p) =>
|
|
692
|
-
onMouseout: (p) =>
|
|
693
|
-
}, [
|
|
684
|
+
}, [S.raw.name]);
|
|
685
|
+
}
|
|
686
|
+
function j(S, b, D) {
|
|
687
|
+
return v("li", {
|
|
688
|
+
class: s(S, b),
|
|
689
|
+
id: f(S, b),
|
|
690
|
+
key: f(S, b),
|
|
691
|
+
onClick: (p) => F(p, S, b),
|
|
692
|
+
onMouseenter: (p) => i(p, S, b),
|
|
693
|
+
onMouseover: (p) => h(p, S, b),
|
|
694
|
+
onMouseout: (p) => a(p, S, b)
|
|
695
|
+
}, [g.value && v("div", {
|
|
694
696
|
class: "f-list-select",
|
|
695
697
|
onClick: (p) => p.stopPropagation()
|
|
696
|
-
}, [
|
|
697
|
-
id: "list-" +
|
|
698
|
+
}, [v(X, {
|
|
699
|
+
id: "list-" + f(S, b),
|
|
698
700
|
customClass: "listview-checkbox",
|
|
699
|
-
disabled:
|
|
700
|
-
checked:
|
|
701
|
-
"onUpdate:checked": (p) =>
|
|
702
|
-
onChange: (p) =>
|
|
703
|
-
}, null)]),
|
|
701
|
+
disabled: S[l.value] || !S.checked,
|
|
702
|
+
checked: S.checked,
|
|
703
|
+
"onUpdate:checked": (p) => S.checked = p,
|
|
704
|
+
onChange: (p) => u(S, b, !p.checked)
|
|
705
|
+
}, null)]), v("div", {
|
|
704
706
|
class: "f-list-content"
|
|
705
|
-
}, [
|
|
707
|
+
}, [k(S, b, D)])]);
|
|
706
708
|
}
|
|
707
709
|
return {
|
|
708
|
-
renderItem:
|
|
710
|
+
renderItem: j
|
|
709
711
|
};
|
|
710
712
|
}
|
|
711
|
-
function Mt(e, t, n, o, c,
|
|
712
|
-
const
|
|
713
|
-
onMouseenterItem:
|
|
714
|
-
onMouseoverItem:
|
|
715
|
-
onMouseoutItem:
|
|
716
|
-
} =
|
|
717
|
-
getKey:
|
|
718
|
-
listViewItemClass:
|
|
719
|
-
onCheckItem:
|
|
713
|
+
function Mt(e, t, n, o, c, r, d, y, w, m) {
|
|
714
|
+
const g = C(e.multiSelect), l = C(e.disableField), {
|
|
715
|
+
onMouseenterItem: i,
|
|
716
|
+
onMouseoverItem: h,
|
|
717
|
+
onMouseoutItem: a
|
|
718
|
+
} = r, {
|
|
719
|
+
getKey: f,
|
|
720
|
+
listViewItemClass: s,
|
|
721
|
+
onCheckItem: u,
|
|
720
722
|
onClickItem: F
|
|
721
|
-
} =
|
|
722
|
-
dragstart:
|
|
723
|
-
dragenter:
|
|
724
|
-
dragover:
|
|
725
|
-
dragend:
|
|
723
|
+
} = d, {
|
|
724
|
+
dragstart: k,
|
|
725
|
+
dragenter: j,
|
|
726
|
+
dragover: S,
|
|
727
|
+
dragend: b
|
|
726
728
|
} = o, {
|
|
727
729
|
removeItem: D
|
|
728
|
-
} =
|
|
729
|
-
margin:
|
|
730
|
+
} = w, p = B(() => ({
|
|
731
|
+
margin: g.value ? "10px 0" : "10px 0px 10px 14px"
|
|
730
732
|
}));
|
|
731
|
-
function V(
|
|
732
|
-
return
|
|
733
|
+
function V(I) {
|
|
734
|
+
return v("div", {
|
|
733
735
|
style: p.value
|
|
734
|
-
}, [
|
|
736
|
+
}, [I.raw.name]);
|
|
735
737
|
}
|
|
736
738
|
function A() {
|
|
737
739
|
return t.slots.itemContent ? t.slots.itemContent : V;
|
|
738
740
|
}
|
|
739
|
-
const
|
|
740
|
-
function x(
|
|
741
|
-
return
|
|
742
|
-
class:
|
|
743
|
-
id:
|
|
744
|
-
key:
|
|
745
|
-
onClick: (
|
|
746
|
-
onMouseenter: (
|
|
747
|
-
onMouseover: (
|
|
748
|
-
onMouseout: (
|
|
741
|
+
const T = A();
|
|
742
|
+
function x(I, P, E) {
|
|
743
|
+
return v("li", {
|
|
744
|
+
class: s(I, P),
|
|
745
|
+
id: f(I, P),
|
|
746
|
+
key: f(I, P),
|
|
747
|
+
onClick: (O) => F(O, I, P),
|
|
748
|
+
onMouseenter: (O) => i(O, I, P),
|
|
749
|
+
onMouseover: (O) => h(O, I, P),
|
|
750
|
+
onMouseout: (O) => a(O, I, P),
|
|
749
751
|
draggable: "true",
|
|
750
|
-
onDragstart: (
|
|
751
|
-
onDragenter: (
|
|
752
|
-
onDragend: (
|
|
753
|
-
onDragover: (
|
|
754
|
-
}, [
|
|
752
|
+
onDragstart: (O) => k(O, I, P),
|
|
753
|
+
onDragenter: (O) => j(O, P),
|
|
754
|
+
onDragend: (O) => b(O, I),
|
|
755
|
+
onDragover: (O) => S(O, P)
|
|
756
|
+
}, [g.value && v("div", {
|
|
755
757
|
class: "f-list-select",
|
|
756
|
-
onClick: (
|
|
757
|
-
}, [
|
|
758
|
-
id: "list-" +
|
|
758
|
+
onClick: (O) => O.stopPropagation()
|
|
759
|
+
}, [v(X, {
|
|
760
|
+
id: "list-" + f(I, P),
|
|
759
761
|
customClass: "listview-checkbox",
|
|
760
|
-
disabled:
|
|
761
|
-
checked:
|
|
762
|
-
"onUpdate:checked": (
|
|
763
|
-
onChange: (
|
|
764
|
-
}, null)]),
|
|
762
|
+
disabled: I[l.value] || !I.checked,
|
|
763
|
+
checked: I.checked,
|
|
764
|
+
"onUpdate:checked": (O) => I.checked = O,
|
|
765
|
+
onChange: (O) => u(I, P, !O.checked)
|
|
766
|
+
}, null)]), v("div", {
|
|
765
767
|
class: "f-list-content"
|
|
766
|
-
}, [
|
|
768
|
+
}, [T(I)]), v("div", {
|
|
767
769
|
class: "f-list-remove",
|
|
768
|
-
onClick: (
|
|
769
|
-
}, [
|
|
770
|
+
onClick: (O) => D(P)
|
|
771
|
+
}, [v("div", {
|
|
770
772
|
class: "f-list-remove-icon"
|
|
771
|
-
}, [
|
|
773
|
+
}, [v("i", {
|
|
772
774
|
class: "f-icon f-icon-remove_face"
|
|
773
|
-
}, null)])]),
|
|
775
|
+
}, null)])]), v("div", {
|
|
774
776
|
class: "f-list-handle"
|
|
775
|
-
}, [
|
|
777
|
+
}, [v("div", null, [v("i", {
|
|
776
778
|
class: "f-icon f-icon-drag-vertical"
|
|
777
779
|
}, null)])])]);
|
|
778
780
|
}
|
|
@@ -780,47 +782,47 @@ function Mt(e, t, n, o, c, i, u, m, S, f) {
|
|
|
780
782
|
renderItem: x
|
|
781
783
|
};
|
|
782
784
|
}
|
|
783
|
-
function Vt(e, t, n, o, c,
|
|
784
|
-
var
|
|
785
|
-
const
|
|
786
|
-
collpaseGroupIconClass:
|
|
785
|
+
function Vt(e, t, n, o, c, r, d, y, w, m) {
|
|
786
|
+
var f;
|
|
787
|
+
const g = C(((f = e.group) == null ? void 0 : f.groupFields) || []), {
|
|
788
|
+
collpaseGroupIconClass: l
|
|
787
789
|
} = c, {
|
|
788
|
-
toggleGroupRow:
|
|
789
|
-
} =
|
|
790
|
-
function
|
|
791
|
-
|
|
790
|
+
toggleGroupRow: i
|
|
791
|
+
} = m;
|
|
792
|
+
function h(s, u) {
|
|
793
|
+
u.collapse = !u.collapse, n.value = i(u.collapse ? "collapse" : "expand", u, n.value);
|
|
792
794
|
}
|
|
793
|
-
function s
|
|
794
|
-
return
|
|
795
|
+
function a(s, u, F) {
|
|
796
|
+
return s.layer > -1 && v("div", {
|
|
795
797
|
class: "f-navlookup-recentHeader",
|
|
796
|
-
onClick: (
|
|
797
|
-
}, [
|
|
798
|
+
onClick: (k) => h(k, s)
|
|
799
|
+
}, [v("div", {
|
|
798
800
|
class: "fv-grid-group-row-icon"
|
|
799
|
-
}, [
|
|
800
|
-
class:
|
|
801
|
-
}, null)]),
|
|
801
|
+
}, [v("span", {
|
|
802
|
+
class: l(s)
|
|
803
|
+
}, null)]), v("div", {
|
|
802
804
|
class: "f-navlookup-recommandLabel"
|
|
803
|
-
}, [
|
|
805
|
+
}, [s.raw[g.value[s.layer]]])]);
|
|
804
806
|
}
|
|
805
807
|
return {
|
|
806
|
-
renderItem:
|
|
808
|
+
renderItem: a
|
|
807
809
|
};
|
|
808
810
|
}
|
|
809
811
|
function Dt() {
|
|
810
|
-
const e =
|
|
811
|
-
function c(
|
|
812
|
-
n.value =
|
|
812
|
+
const e = C(-1), t = C(""), n = C(-1), o = C(!1);
|
|
813
|
+
function c(m, g, l) {
|
|
814
|
+
n.value = l;
|
|
813
815
|
}
|
|
814
|
-
function
|
|
815
|
-
o.value || (n.value =
|
|
816
|
+
function r(m, g, l) {
|
|
817
|
+
o.value || (n.value = l);
|
|
816
818
|
}
|
|
817
|
-
function
|
|
819
|
+
function d(m, g, l) {
|
|
818
820
|
n.value = -1;
|
|
819
821
|
}
|
|
820
|
-
function
|
|
822
|
+
function y() {
|
|
821
823
|
o.value = !0;
|
|
822
824
|
}
|
|
823
|
-
function
|
|
825
|
+
function w() {
|
|
824
826
|
o.value = !1;
|
|
825
827
|
}
|
|
826
828
|
return {
|
|
@@ -828,126 +830,126 @@ function Dt() {
|
|
|
828
830
|
focusedItemId: t,
|
|
829
831
|
hoverIndex: n,
|
|
830
832
|
onMouseenterItem: c,
|
|
831
|
-
onMouseoverItem:
|
|
832
|
-
onMouseoutItem:
|
|
833
|
-
resumeHover:
|
|
834
|
-
suspendHover:
|
|
833
|
+
onMouseoverItem: r,
|
|
834
|
+
onMouseoutItem: d,
|
|
835
|
+
resumeHover: w,
|
|
836
|
+
suspendHover: y
|
|
835
837
|
};
|
|
836
838
|
}
|
|
837
|
-
function
|
|
838
|
-
const c =
|
|
839
|
-
function
|
|
840
|
-
|
|
841
|
-
|
|
839
|
+
function jt(e, t, n, o) {
|
|
840
|
+
const c = C(e.idField), { dataView: r } = n, d = C(-1), y = C(!1), { activeIndex: w, focusedItemId: m, hoverIndex: g, resumeHover: l, suspendHover: i } = o;
|
|
841
|
+
function h(u, F, k) {
|
|
842
|
+
u.stopPropagation(), i(), F && setTimeout(() => {
|
|
843
|
+
d.value = k, y.value = !0, F.moving = !0;
|
|
842
844
|
});
|
|
843
845
|
}
|
|
844
|
-
function
|
|
845
|
-
if (
|
|
846
|
-
const
|
|
847
|
-
|
|
846
|
+
function a(u, F) {
|
|
847
|
+
if (u.preventDefault(), d.value !== F) {
|
|
848
|
+
const k = r.value[d.value], j = r.value;
|
|
849
|
+
j.splice(d.value, 1), j.splice(F, 0, k), d.value = F;
|
|
848
850
|
}
|
|
849
851
|
}
|
|
850
|
-
function
|
|
851
|
-
|
|
852
|
+
function f(u, F) {
|
|
853
|
+
u.preventDefault(), u.dataTransfer && (u.dataTransfer.dropEffect = "move");
|
|
852
854
|
}
|
|
853
|
-
function
|
|
854
|
-
F && (F.moving = !1),
|
|
855
|
-
|
|
856
|
-
}),
|
|
855
|
+
function s(u, F) {
|
|
856
|
+
F && (F.moving = !1), r.value.forEach((k, j) => {
|
|
857
|
+
k.__fv_index__ = j;
|
|
858
|
+
}), y.value = !1, l(), g.value = F.raw.__fv_index__, w.value = F.raw.__fv_index__, m.value = F.raw[c.value], t.emit("change", r.value), t.emit("activeChange", F);
|
|
857
859
|
}
|
|
858
860
|
return {
|
|
859
|
-
dragstart:
|
|
860
|
-
dragenter:
|
|
861
|
-
dragover:
|
|
862
|
-
dragend:
|
|
863
|
-
isDragging:
|
|
861
|
+
dragstart: h,
|
|
862
|
+
dragenter: a,
|
|
863
|
+
dragover: f,
|
|
864
|
+
dragend: s,
|
|
865
|
+
isDragging: y
|
|
864
866
|
};
|
|
865
867
|
}
|
|
866
|
-
function
|
|
868
|
+
function It(e, t, n) {
|
|
867
869
|
const { dataView: o } = n;
|
|
868
|
-
function c(
|
|
869
|
-
if (
|
|
870
|
-
const
|
|
871
|
-
t.emit("removeItem",
|
|
870
|
+
function c(r) {
|
|
871
|
+
if (r > -1 && r < o.value.length) {
|
|
872
|
+
const d = o.value.splice(r, 1);
|
|
873
|
+
t.emit("removeItem", d[0]);
|
|
872
874
|
}
|
|
873
875
|
}
|
|
874
876
|
return { removeItem: c };
|
|
875
877
|
}
|
|
876
|
-
function
|
|
877
|
-
const
|
|
878
|
-
|
|
879
|
-
const { isDragging:
|
|
880
|
-
function
|
|
881
|
-
const
|
|
878
|
+
function Ot(e, t, n, o, c, r) {
|
|
879
|
+
const d = C(e.idField), y = C(e.disableField), w = C(e.draggable), m = C(e.itemClass), g = C(e.selection.multiSelect ?? !1), l = C(e.selection.multiSelectMode);
|
|
880
|
+
C(!0);
|
|
881
|
+
const { isDragging: i } = o, { activeIndex: h, focusedItemId: a, hoverIndex: f } = c, { clearSelection: s, getSelectedItems: u, toggleSelectItem: F } = r, k = C(u());
|
|
882
|
+
function j(T, x) {
|
|
883
|
+
const I = {
|
|
882
884
|
"f-list-view-group-item": !0,
|
|
883
|
-
"f-list-view-draggable-item":
|
|
884
|
-
"f-un-click": !
|
|
885
|
-
"f-un-select": !!
|
|
886
|
-
"f-listview-active":
|
|
887
|
-
"f-listview-hover": !
|
|
888
|
-
moving: !!
|
|
885
|
+
"f-list-view-draggable-item": w.value,
|
|
886
|
+
"f-un-click": !T.checked,
|
|
887
|
+
"f-un-select": !!T.raw[y.value],
|
|
888
|
+
"f-listview-active": T.raw.__fv_index__ === h.value,
|
|
889
|
+
"f-listview-hover": !i.value && x === f.value,
|
|
890
|
+
moving: !!T.moving
|
|
889
891
|
};
|
|
890
|
-
return
|
|
892
|
+
return m.value.split(" ").reduce((E, O) => (E[O] = !0, E), I), I;
|
|
891
893
|
}
|
|
892
|
-
function
|
|
893
|
-
return
|
|
894
|
+
function S(T, x) {
|
|
895
|
+
return T.raw[d.value] || "";
|
|
894
896
|
}
|
|
895
|
-
const
|
|
896
|
-
function D(
|
|
897
|
-
|
|
897
|
+
const b = B(() => !g.value);
|
|
898
|
+
function D(T, x, I) {
|
|
899
|
+
T.checked = I, !T.raw[y.value] && (b.value && (a.value = T.raw[d.value]), F(T));
|
|
898
900
|
}
|
|
899
|
-
const p =
|
|
900
|
-
function A(
|
|
901
|
-
if (x.raw[
|
|
902
|
-
|
|
901
|
+
const p = B(() => g.value && l.value === "OnCheckClearByClick"), V = B(() => !g.value || g.value && (l.value === "OnCheckAndClick" || l.value === "OnClick"));
|
|
902
|
+
function A(T, x, I) {
|
|
903
|
+
if (x.raw[y.value]) {
|
|
904
|
+
T.preventDefault(), T.stopPropagation();
|
|
903
905
|
return;
|
|
904
906
|
}
|
|
905
|
-
|
|
907
|
+
a.value = x.raw[d.value], h.value = I, p.value && s(n.value), V.value && (F(x), k.value = u()), t.emit("clickItem", { data: k.value, index: I }), t.emit("activeChange", k.value);
|
|
906
908
|
}
|
|
907
909
|
return {
|
|
908
|
-
getKey:
|
|
909
|
-
listViewItemClass:
|
|
910
|
+
getKey: S,
|
|
911
|
+
listViewItemClass: j,
|
|
910
912
|
onCheckItem: D,
|
|
911
913
|
onClickItem: A
|
|
912
914
|
};
|
|
913
915
|
}
|
|
914
|
-
function
|
|
915
|
-
const
|
|
916
|
+
function Pt(e, t, n, o, c, r, d) {
|
|
917
|
+
const y = C(e.view), w = C(e.view === "CardView"), m = C({}), g = C("暂无数据"), l = Dt(), i = jt(e, t, o, l), h = It(e, t, o), a = Ot(e, t, n, i, l, r), f = B(() => ({
|
|
916
918
|
"f-list-view-group": !0,
|
|
917
|
-
"d-flex":
|
|
918
|
-
"flex-wrap":
|
|
919
|
-
})),
|
|
920
|
-
function
|
|
921
|
-
return
|
|
922
|
-
}
|
|
923
|
-
const
|
|
924
|
-
renderItem:
|
|
925
|
-
} =
|
|
926
|
-
renderItem:
|
|
927
|
-
} = Vt(e, t, n,
|
|
919
|
+
"d-flex": w.value,
|
|
920
|
+
"flex-wrap": w.value
|
|
921
|
+
})), s = B(() => !!n.value && n.value.length > 0), u = B(() => n.value.length === 0), F = B(() => u.value && !t.slots.empty);
|
|
922
|
+
function k() {
|
|
923
|
+
return y.value === "SingleView" ? ae : y.value === "DraggableView" ? Mt : (y.value === "ContentView" || y.value === "CardView") && t.slots.content ? Tt : ae;
|
|
924
|
+
}
|
|
925
|
+
const j = k(), {
|
|
926
|
+
renderItem: S
|
|
927
|
+
} = j(e, t, n, i, c, l, a, r, h, d), {
|
|
928
|
+
renderItem: b
|
|
929
|
+
} = Vt(e, t, n, i, c, l, a, r, h, d), D = [S, b];
|
|
928
930
|
function p() {
|
|
929
|
-
return n.value.filter((
|
|
931
|
+
return n.value.filter((T) => T.visible !== !1).map((T, x) => D[T.type](T, x, m));
|
|
930
932
|
}
|
|
931
933
|
function V() {
|
|
932
|
-
return
|
|
934
|
+
return v("div", {
|
|
933
935
|
class: "f-list-view-emptydata"
|
|
934
|
-
}, [
|
|
936
|
+
}, [v("p", {
|
|
935
937
|
class: "f-empty-title"
|
|
936
|
-
}, [
|
|
938
|
+
}, [g.value])]);
|
|
937
939
|
}
|
|
938
940
|
function A() {
|
|
939
|
-
return
|
|
940
|
-
class:
|
|
941
|
+
return v("ul", {
|
|
942
|
+
class: f.value,
|
|
941
943
|
style: "list-style: none;"
|
|
942
|
-
}, [
|
|
944
|
+
}, [s.value && p(), F.value && V(), t.slots.empty && t.slots.empty()]);
|
|
943
945
|
}
|
|
944
946
|
return {
|
|
945
947
|
renderListArea: A
|
|
946
948
|
};
|
|
947
949
|
}
|
|
948
|
-
function
|
|
950
|
+
function Bt(e, t, n) {
|
|
949
951
|
function o() {
|
|
950
|
-
return t.slots.header &&
|
|
952
|
+
return t.slots.header && v("div", {
|
|
951
953
|
class: "f-list-view-header"
|
|
952
954
|
}, [t.slots.header()]);
|
|
953
955
|
}
|
|
@@ -956,99 +958,99 @@ function Ot(e, t, n) {
|
|
|
956
958
|
};
|
|
957
959
|
}
|
|
958
960
|
function re(e, t, n) {
|
|
959
|
-
const o =
|
|
960
|
-
function
|
|
961
|
-
|
|
961
|
+
const o = C(e.headerClass), c = C(e.placeholder), r = C(""), d = B(() => !r.value), y = B(() => !!r.value);
|
|
962
|
+
function w(i) {
|
|
963
|
+
r.value = "";
|
|
962
964
|
}
|
|
963
|
-
|
|
964
|
-
n.search(
|
|
965
|
+
H(r, (i) => {
|
|
966
|
+
e.enableHighlightSearch && n.search(i), t.emit("afterSearch", i);
|
|
965
967
|
});
|
|
966
|
-
const
|
|
967
|
-
const
|
|
968
|
+
const m = B(() => {
|
|
969
|
+
const i = {
|
|
968
970
|
"form-group": !0,
|
|
969
971
|
"farris-form-group": !0
|
|
970
972
|
};
|
|
971
|
-
return o.value && o.value.split(" ").reduce((
|
|
973
|
+
return o.value && o.value.split(" ").reduce((a, f) => (a[f] = !0, a), i), i;
|
|
972
974
|
});
|
|
973
|
-
function
|
|
975
|
+
function g(i) {
|
|
974
976
|
}
|
|
975
|
-
function
|
|
976
|
-
return
|
|
977
|
+
function l() {
|
|
978
|
+
return v("div", {
|
|
977
979
|
class: "f-list-view-header",
|
|
978
|
-
onClick: we(() =>
|
|
979
|
-
}, [
|
|
980
|
-
class:
|
|
981
|
-
}, [
|
|
980
|
+
onClick: we(() => g, ["prevent", "stop"])
|
|
981
|
+
}, [v("div", {
|
|
982
|
+
class: m.value
|
|
983
|
+
}, [v("div", {
|
|
982
984
|
class: "farris-input-wrap"
|
|
983
|
-
}, [
|
|
985
|
+
}, [v("div", {
|
|
984
986
|
class: "f-cmp-inputgroup"
|
|
985
|
-
}, [
|
|
987
|
+
}, [v("div", {
|
|
986
988
|
class: "input-group f-state-editable"
|
|
987
|
-
}, [Fe(
|
|
989
|
+
}, [Fe(v("input", {
|
|
988
990
|
class: "form-control f-utils-fill text-left",
|
|
989
|
-
"onUpdate:modelValue": (
|
|
991
|
+
"onUpdate:modelValue": (i) => r.value = i,
|
|
990
992
|
name: "input-group-value",
|
|
991
993
|
type: "text",
|
|
992
994
|
placeholder: c.value,
|
|
993
995
|
autocomplete: "off"
|
|
994
|
-
}, null), [[
|
|
996
|
+
}, null), [[ke, r.value]]), v("div", {
|
|
995
997
|
class: "input-group-append"
|
|
996
|
-
}, [
|
|
998
|
+
}, [y.value && v("span", {
|
|
997
999
|
class: "input-group-text input-group-clear",
|
|
998
|
-
onClick: (
|
|
999
|
-
}, [
|
|
1000
|
+
onClick: (i) => w()
|
|
1001
|
+
}, [v("i", {
|
|
1000
1002
|
class: "f-icon f-icon-close-circle"
|
|
1001
|
-
}, null)]),
|
|
1003
|
+
}, null)]), d.value && v("span", {
|
|
1002
1004
|
class: "input-group-text"
|
|
1003
|
-
}, [
|
|
1005
|
+
}, [v("span", {
|
|
1004
1006
|
class: "f-icon f-icon-search"
|
|
1005
1007
|
}, null)])])])])])])]);
|
|
1006
1008
|
}
|
|
1007
1009
|
return {
|
|
1008
|
-
renderHeader:
|
|
1010
|
+
renderHeader: l
|
|
1009
1011
|
};
|
|
1010
1012
|
}
|
|
1011
|
-
const de = /* @__PURE__ */
|
|
1013
|
+
const de = /* @__PURE__ */ N({
|
|
1012
1014
|
name: "FListView",
|
|
1013
1015
|
props: ue,
|
|
1014
|
-
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
1016
|
+
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
1015
1017
|
setup(e, t) {
|
|
1016
|
-
const n =
|
|
1018
|
+
const n = C(), o = C(!0), c = C(!1), r = C([]), d = 0, y = C(e.columns), w = Ve(e), m = De(e), g = je(e, w), l = Ie(e), i = Oe(e, /* @__PURE__ */ new Map(), m, w, l), h = Pe(e, i, w, r, t), a = kt(e, n), f = B(() => i.dataView.value.length), s = Be(e, w), u = Ae(), F = xe(e, {}, u), k = Le(e, s, m, w, u, F), j = $e(e, w, F, k), S = Ee(e, w, F, k), b = He(e, y, i, f, d, k, j, S), {
|
|
1017
1019
|
getVisualData: D
|
|
1018
|
-
} =
|
|
1019
|
-
|
|
1020
|
-
const p =
|
|
1020
|
+
} = b;
|
|
1021
|
+
r.value = D(0, f.value + d - 1);
|
|
1022
|
+
const p = B(() => {
|
|
1021
1023
|
const L = {
|
|
1022
1024
|
"f-list-view": !0,
|
|
1023
1025
|
"f-list-view-multiple": e.multiSelect
|
|
1024
1026
|
};
|
|
1025
1027
|
return e.size !== "default" && (L[`${e.size}-item`] = !0), L;
|
|
1026
|
-
}), V =
|
|
1028
|
+
}), V = B(() => !!t.slots.footer || o.value);
|
|
1027
1029
|
function A() {
|
|
1028
|
-
return e.header === "SearchBar" ? re : e.header === "ContentHeader" ?
|
|
1030
|
+
return e.header === "SearchBar" ? re : e.header === "ContentHeader" ? Bt : re;
|
|
1029
1031
|
}
|
|
1030
|
-
const
|
|
1032
|
+
const T = A(), {
|
|
1031
1033
|
renderHeader: x
|
|
1032
|
-
} =
|
|
1033
|
-
renderListArea:
|
|
1034
|
-
} =
|
|
1035
|
-
function
|
|
1036
|
-
|
|
1034
|
+
} = T(e, t, a), {
|
|
1035
|
+
renderListArea: I
|
|
1036
|
+
} = Pt(e, t, r, i, g, h, b);
|
|
1037
|
+
function P(L) {
|
|
1038
|
+
a.search(L);
|
|
1037
1039
|
}
|
|
1038
1040
|
function E(L) {
|
|
1039
|
-
L && (
|
|
1041
|
+
L && (i.load(L), r.value = D(0, f.value + d - 1));
|
|
1040
1042
|
}
|
|
1041
1043
|
t.expose({
|
|
1042
|
-
search:
|
|
1044
|
+
search: P,
|
|
1043
1045
|
updateDataSource: E
|
|
1044
1046
|
});
|
|
1045
|
-
function
|
|
1047
|
+
function O(L) {
|
|
1046
1048
|
e.multiSelect && (L.preventDefault(), L.stopPropagation());
|
|
1047
1049
|
}
|
|
1048
|
-
return () =>
|
|
1050
|
+
return () => v("div", {
|
|
1049
1051
|
class: p.value,
|
|
1050
|
-
onClick:
|
|
1051
|
-
}, [x(),
|
|
1052
|
+
onClick: O
|
|
1053
|
+
}, [x(), v("div", {
|
|
1052
1054
|
ref: n,
|
|
1053
1055
|
class: "f-list-view-content",
|
|
1054
1056
|
onMouseover: () => {
|
|
@@ -1057,7 +1059,7 @@ const de = /* @__PURE__ */ H({
|
|
|
1057
1059
|
onMouseleave: () => {
|
|
1058
1060
|
c.value = !1;
|
|
1059
1061
|
}
|
|
1060
|
-
}, [
|
|
1062
|
+
}, [I()]), V.value && v("div", {
|
|
1061
1063
|
class: "f-list-view-footer"
|
|
1062
1064
|
}, [t.slots.footer && t.slots.footer()])]);
|
|
1063
1065
|
}
|
|
@@ -1096,19 +1098,19 @@ function xt(e, t) {
|
|
|
1096
1098
|
};
|
|
1097
1099
|
}
|
|
1098
1100
|
function Lt(e) {
|
|
1099
|
-
const t =
|
|
1101
|
+
const t = B(() => {
|
|
1100
1102
|
const o = {
|
|
1101
1103
|
"f-icon": !0
|
|
1102
1104
|
};
|
|
1103
1105
|
if (e.icon) {
|
|
1104
1106
|
const c = e.icon.trim().split(" ");
|
|
1105
|
-
c && c.length && c.reduce((
|
|
1107
|
+
c && c.length && c.reduce((r, d) => (r[d] = !0, r), o);
|
|
1106
1108
|
}
|
|
1107
1109
|
return o;
|
|
1108
|
-
}), n =
|
|
1110
|
+
}), n = B(() => !!(e.icon && e.icon.trim()));
|
|
1109
1111
|
return { iconClass: t, shouldShowIcon: n };
|
|
1110
1112
|
}
|
|
1111
|
-
const pe = /* @__PURE__ */
|
|
1113
|
+
const pe = /* @__PURE__ */ N({
|
|
1112
1114
|
name: "FButton",
|
|
1113
1115
|
props: At,
|
|
1114
1116
|
emits: ["click"],
|
|
@@ -1118,27 +1120,27 @@ const pe = /* @__PURE__ */ H({
|
|
|
1118
1120
|
} = xt(e, t), {
|
|
1119
1121
|
iconClass: o,
|
|
1120
1122
|
shouldShowIcon: c
|
|
1121
|
-
} = Lt(e),
|
|
1122
|
-
const
|
|
1123
|
+
} = Lt(e), r = B(() => {
|
|
1124
|
+
const d = {
|
|
1123
1125
|
btn: !0,
|
|
1124
1126
|
"btn-lg": e.size === "large",
|
|
1125
1127
|
"btn-md": e.size !== "large" && e.size !== "small",
|
|
1126
1128
|
"btn-sm": e.size === "small",
|
|
1127
1129
|
"btn-icontext": c.value
|
|
1128
1130
|
};
|
|
1129
|
-
return
|
|
1131
|
+
return d[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((y, w) => (y[w] = e.customClass[w], y), d), d;
|
|
1130
1132
|
});
|
|
1131
|
-
return () =>
|
|
1132
|
-
class:
|
|
1133
|
+
return () => v("button", {
|
|
1134
|
+
class: r.value,
|
|
1133
1135
|
disabled: e.disabled,
|
|
1134
|
-
onClick: (
|
|
1135
|
-
}, [c.value &&
|
|
1136
|
+
onClick: (d) => n(d)
|
|
1137
|
+
}, [c.value && v("i", {
|
|
1136
1138
|
class: o.value
|
|
1137
1139
|
}, null), t.slots.default && t.slots.default()]);
|
|
1138
1140
|
}
|
|
1139
1141
|
}), $t = /* @__PURE__ */ new Map([
|
|
1140
1142
|
["appearance", J]
|
|
1141
|
-
]), Et = "https://json-schema.org/draft/2020-12/schema",
|
|
1143
|
+
]), Et = "https://json-schema.org/draft/2020-12/schema", Ht = "https://farris-design.gitee.io/combo-list.schema.json", Nt = "combo-list", Rt = "A Farris Input Component", Ut = "object", zt = {
|
|
1142
1144
|
id: {
|
|
1143
1145
|
description: "The unique identifier for a combo list",
|
|
1144
1146
|
type: "string"
|
|
@@ -1254,8 +1256,8 @@ const pe = /* @__PURE__ */ H({
|
|
|
1254
1256
|
"type"
|
|
1255
1257
|
], _t = {
|
|
1256
1258
|
$schema: Et,
|
|
1257
|
-
$id:
|
|
1258
|
-
title:
|
|
1259
|
+
$id: Ht,
|
|
1260
|
+
title: Nt,
|
|
1259
1261
|
description: Rt,
|
|
1260
1262
|
type: Ut,
|
|
1261
1263
|
properties: zt,
|
|
@@ -1423,7 +1425,13 @@ const ee = {
|
|
|
1423
1425
|
/**
|
|
1424
1426
|
* 打开前
|
|
1425
1427
|
*/
|
|
1426
|
-
beforeOpen: { type: Function, default: null }
|
|
1428
|
+
beforeOpen: { type: Function, default: null },
|
|
1429
|
+
searchOption: {
|
|
1430
|
+
type: Object,
|
|
1431
|
+
default: !1
|
|
1432
|
+
},
|
|
1433
|
+
// 搜索启用高亮
|
|
1434
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
1427
1435
|
}, fe = Z(ee, _t, $t, Wt), qt = {
|
|
1428
1436
|
dataSource: { type: Array, default: [] },
|
|
1429
1437
|
enableSearch: { type: Boolean, default: !1 },
|
|
@@ -1438,137 +1446,159 @@ const ee = {
|
|
|
1438
1446
|
valueField: { type: String, default: "id" },
|
|
1439
1447
|
/** 值变化事件 */
|
|
1440
1448
|
onSelectionChange: { type: Function, default: () => {
|
|
1441
|
-
} }
|
|
1442
|
-
|
|
1449
|
+
} },
|
|
1450
|
+
searchOption: {
|
|
1451
|
+
type: Object,
|
|
1452
|
+
default: !1
|
|
1453
|
+
},
|
|
1454
|
+
// 搜索启用高亮
|
|
1455
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
1456
|
+
}, Qt = /* @__PURE__ */ N({
|
|
1443
1457
|
name: "FComboListContainer",
|
|
1444
1458
|
props: qt,
|
|
1445
1459
|
emits: ["selectionChange"],
|
|
1446
1460
|
setup(e, t) {
|
|
1447
|
-
const n =
|
|
1448
|
-
|
|
1449
|
-
|
|
1461
|
+
const n = C(), o = C(e.dataSource), c = C([]), r = C(e.separator), d = C(e.width), y = C(e.maxHeight), w = C(String(e.selectedValues).split(r.value));
|
|
1462
|
+
H(e.dataSource, () => {
|
|
1463
|
+
o.value = e.dataSource;
|
|
1450
1464
|
});
|
|
1451
|
-
const
|
|
1452
|
-
const
|
|
1453
|
-
return
|
|
1465
|
+
const m = B(() => e.enableSearch ? "SearchBar" : "ContentHeader"), g = B(() => {
|
|
1466
|
+
const h = {};
|
|
1467
|
+
return d.value !== void 0 && (h.width = `${d.value}px`), y.value !== void 0 && y.value > 0 && (h.maxHeight = `${y.value}px`), h;
|
|
1454
1468
|
});
|
|
1455
|
-
function
|
|
1456
|
-
|
|
1469
|
+
function l(h) {
|
|
1470
|
+
c.value = h.map((a) => Object.assign({}, a)), w.value = h.map((a) => a[e.idField]), t.emit("selectionChange", c.value);
|
|
1457
1471
|
}
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1472
|
+
function i(h) {
|
|
1473
|
+
if (e.enableHighlightSearch)
|
|
1474
|
+
return;
|
|
1475
|
+
let a = [];
|
|
1476
|
+
typeof e.searchOption == "function" ? a = o.value.filter((f) => e.searchOption(h, f)) : a = o.value.filter((f) => f[e.valueField].indexOf(h) > -1 || f[e.textField].indexOf(h) > -1), n.value.updateDataSource(a);
|
|
1477
|
+
}
|
|
1478
|
+
return H([() => e.selectedValues], ([h]) => {
|
|
1479
|
+
w.value = h.split(r.value);
|
|
1480
|
+
}), () => v("div", {
|
|
1461
1481
|
class: "f-combo-list-container pl-3",
|
|
1462
|
-
style:
|
|
1463
|
-
}, [
|
|
1482
|
+
style: g.value
|
|
1483
|
+
}, [v(Ne, {
|
|
1484
|
+
ref: n,
|
|
1464
1485
|
size: "small",
|
|
1465
1486
|
itemClass: "f-combo-list-item",
|
|
1466
|
-
header:
|
|
1487
|
+
header: m.value,
|
|
1467
1488
|
headerClass: "f-combo-list-search-box",
|
|
1468
|
-
data:
|
|
1489
|
+
data: o.value,
|
|
1469
1490
|
idField: e.idField,
|
|
1470
1491
|
textField: e.textField,
|
|
1471
1492
|
titleField: e.titleField,
|
|
1472
1493
|
multiSelect: e.multiSelect,
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1494
|
+
selection: {
|
|
1495
|
+
enableSelectRow: !0,
|
|
1496
|
+
multiSelect: !0,
|
|
1497
|
+
multiSelectMode: "OnCheckAndClick",
|
|
1498
|
+
showCheckbox: !0,
|
|
1499
|
+
showSelectAll: !1,
|
|
1500
|
+
showSelection: !0
|
|
1501
|
+
},
|
|
1502
|
+
enableHighlightSearch: e.enableHighlightSearch,
|
|
1503
|
+
selectionValues: w.value,
|
|
1504
|
+
onSelectionChange: l,
|
|
1505
|
+
onAfterSearch: i
|
|
1476
1506
|
}, null)]);
|
|
1477
1507
|
}
|
|
1478
1508
|
});
|
|
1479
1509
|
function Xt(e) {
|
|
1480
|
-
const t =
|
|
1481
|
-
function
|
|
1482
|
-
const
|
|
1483
|
-
return o.value.filter((
|
|
1510
|
+
const t = C(""), n = C(e.modelValue), o = C(e.data || []), c = C(e.editable);
|
|
1511
|
+
function r(l) {
|
|
1512
|
+
const i = String(l).split(e.separator).map((a) => [a, !0]), h = new Map(i);
|
|
1513
|
+
return o.value.filter((a) => h.has(String(a[e.valueField])));
|
|
1484
1514
|
}
|
|
1485
|
-
function
|
|
1486
|
-
const
|
|
1487
|
-
t.value = c.value ?
|
|
1515
|
+
function d(l) {
|
|
1516
|
+
const i = r(l).map((h) => h[e.textField]).join(e.separator);
|
|
1517
|
+
t.value = c.value ? i || l : i;
|
|
1488
1518
|
}
|
|
1489
|
-
function
|
|
1490
|
-
const
|
|
1491
|
-
return o.value.filter((
|
|
1519
|
+
function y(l) {
|
|
1520
|
+
const i = l.split(e.separator).map((a) => [a, !0]), h = new Map(i);
|
|
1521
|
+
return o.value.filter((a) => h.has(a[e.textField]));
|
|
1492
1522
|
}
|
|
1493
|
-
function
|
|
1494
|
-
const
|
|
1495
|
-
return
|
|
1523
|
+
function w(l) {
|
|
1524
|
+
const i = {};
|
|
1525
|
+
return i[e.idField] = l, i[e.textField] = l, [i];
|
|
1496
1526
|
}
|
|
1497
|
-
function
|
|
1498
|
-
let
|
|
1499
|
-
const
|
|
1500
|
-
return c.value && !
|
|
1527
|
+
function m(l) {
|
|
1528
|
+
let i = y(l);
|
|
1529
|
+
const h = i && i.length > 0;
|
|
1530
|
+
return c.value && !h && (i = w(l)), i;
|
|
1501
1531
|
}
|
|
1502
|
-
function
|
|
1503
|
-
const { url:
|
|
1504
|
-
let
|
|
1505
|
-
fetch(
|
|
1506
|
-
var
|
|
1507
|
-
if (
|
|
1508
|
-
return
|
|
1509
|
-
throw new Error(
|
|
1510
|
-
}).then((
|
|
1511
|
-
o.value =
|
|
1512
|
-
}).catch((
|
|
1513
|
-
console.error(
|
|
1532
|
+
function g() {
|
|
1533
|
+
const { url: l, method: i = "GET", headers: h = {}, body: a = null } = e.remote, f = i.toLowerCase() == "get" ? { method: i, headers: h } : { method: i, headers: h, body: a };
|
|
1534
|
+
let s = !1;
|
|
1535
|
+
fetch(l, f).then((u) => {
|
|
1536
|
+
var k, j;
|
|
1537
|
+
if (u.status === 200)
|
|
1538
|
+
return s = !!((j = (k = u.headers) == null ? void 0 : k.get("content-type")) != null && j.includes("application/json")), s ? u.text() : u.json();
|
|
1539
|
+
throw new Error(u.statusText);
|
|
1540
|
+
}).then((u) => {
|
|
1541
|
+
o.value = s ? JSON.parse(u) : u;
|
|
1542
|
+
}).catch((u) => {
|
|
1543
|
+
console.error(u);
|
|
1514
1544
|
});
|
|
1515
1545
|
}
|
|
1516
|
-
return e.remote &&
|
|
1546
|
+
return e.remote && g(), H(() => e.data, () => {
|
|
1517
1547
|
o.value = e.data;
|
|
1518
|
-
}),
|
|
1548
|
+
}), H([o], ([l]) => {
|
|
1519
1549
|
if (e.modelValue) {
|
|
1520
|
-
const
|
|
1521
|
-
|
|
1550
|
+
const i = l.find((h) => h[e.valueField] === e.modelValue);
|
|
1551
|
+
i && (t.value = i[e.textField]);
|
|
1522
1552
|
}
|
|
1523
|
-
}),
|
|
1524
|
-
n.value =
|
|
1525
|
-
}),
|
|
1553
|
+
}), H(() => e.modelValue, (l) => {
|
|
1554
|
+
n.value = l, d(l);
|
|
1555
|
+
}), d(e.modelValue), { dataSource: o, displayText: t, editable: c, modelValue: n, getItemsByDisplayText: y, getItemsByValue: r, getSelectedItemsByDisplayText: m };
|
|
1526
1556
|
}
|
|
1527
|
-
const U = /* @__PURE__ */
|
|
1557
|
+
const U = /* @__PURE__ */ N({
|
|
1528
1558
|
name: "FComboList",
|
|
1529
1559
|
props: ee,
|
|
1530
1560
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
1531
1561
|
setup(e, t) {
|
|
1532
|
-
const n =
|
|
1533
|
-
dataSource:
|
|
1534
|
-
displayText:
|
|
1535
|
-
editable:
|
|
1536
|
-
modelValue:
|
|
1537
|
-
getSelectedItemsByDisplayText:
|
|
1538
|
-
} = Xt(e),
|
|
1539
|
-
function
|
|
1540
|
-
!
|
|
1562
|
+
const n = C(), o = C(e.disabled), c = C(e.enableClear), r = C(e.enableSearch), d = C(e.readonly), {
|
|
1563
|
+
dataSource: y,
|
|
1564
|
+
displayText: w,
|
|
1565
|
+
editable: m,
|
|
1566
|
+
modelValue: g,
|
|
1567
|
+
getSelectedItemsByDisplayText: l
|
|
1568
|
+
} = Xt(e), i = B(() => e.multiSelect), h = B(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
1569
|
+
function a() {
|
|
1570
|
+
!i.value && n.value && n.value.hidePopup();
|
|
1541
1571
|
}
|
|
1542
|
-
function
|
|
1543
|
-
|
|
1572
|
+
function f(S) {
|
|
1573
|
+
w.value = S.map((b) => b[e.textField]).join(e.separator), S.length === 1 ? g.value = S[0][e.valueField] : g.value = S.map((b) => b[e.valueField]).join(e.separator), t.emit("update:modelValue", g.value), t.emit("change", S, g.value), a();
|
|
1544
1574
|
}
|
|
1545
|
-
function
|
|
1546
|
-
|
|
1575
|
+
function s() {
|
|
1576
|
+
d.value || n.value.togglePopup();
|
|
1547
1577
|
}
|
|
1548
|
-
function
|
|
1549
|
-
|
|
1578
|
+
function u(S) {
|
|
1579
|
+
g.value = "", t.emit("update:modelValue", ""), t.emit("clear");
|
|
1550
1580
|
}
|
|
1551
|
-
function F(
|
|
1552
|
-
const
|
|
1553
|
-
|
|
1581
|
+
function F(S) {
|
|
1582
|
+
const b = l(S);
|
|
1583
|
+
f(b);
|
|
1554
1584
|
}
|
|
1555
|
-
function
|
|
1556
|
-
return
|
|
1585
|
+
function k() {
|
|
1586
|
+
return w.value;
|
|
1557
1587
|
}
|
|
1558
|
-
function
|
|
1559
|
-
t.emit("input",
|
|
1588
|
+
function j(S) {
|
|
1589
|
+
t.emit("input", S);
|
|
1560
1590
|
}
|
|
1561
1591
|
return t.expose({
|
|
1562
|
-
getDisplayText:
|
|
1563
|
-
}),
|
|
1564
|
-
o.value =
|
|
1565
|
-
}), () =>
|
|
1592
|
+
getDisplayText: k
|
|
1593
|
+
}), H([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, b, D, p, V]) => {
|
|
1594
|
+
o.value = S, m.value = b, c.value = D, r.value = p, d.value = V;
|
|
1595
|
+
}), () => v(le, {
|
|
1566
1596
|
ref: n,
|
|
1567
1597
|
id: e.id,
|
|
1568
1598
|
disable: o.value,
|
|
1569
|
-
readonly:
|
|
1599
|
+
readonly: d.value,
|
|
1570
1600
|
forcePlaceholder: e.forcePlaceholder,
|
|
1571
|
-
editable:
|
|
1601
|
+
editable: m.value,
|
|
1572
1602
|
buttonContent: e.dropDownIcon,
|
|
1573
1603
|
placeholder: e.placeholder,
|
|
1574
1604
|
enableClear: c.value,
|
|
@@ -1577,64 +1607,65 @@ const U = /* @__PURE__ */ H({
|
|
|
1577
1607
|
enableTitle: e.enableTitle,
|
|
1578
1608
|
multiSelect: e.multiSelect,
|
|
1579
1609
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
1580
|
-
modelValue:
|
|
1581
|
-
"onUpdate:modelValue": (
|
|
1610
|
+
modelValue: w.value,
|
|
1611
|
+
"onUpdate:modelValue": (S) => w.value = S,
|
|
1582
1612
|
focusOnCreated: e.focusOnCreated,
|
|
1583
1613
|
selectOnCreated: e.selectOnCreated,
|
|
1584
|
-
onClear:
|
|
1585
|
-
onClick:
|
|
1614
|
+
onClear: u,
|
|
1615
|
+
onClick: s,
|
|
1586
1616
|
onChange: F,
|
|
1587
|
-
onInput:
|
|
1617
|
+
onInput: j,
|
|
1588
1618
|
beforeOpen: e.beforeOpen
|
|
1589
1619
|
}, {
|
|
1590
|
-
default: () => [
|
|
1620
|
+
default: () => [v(Qt, {
|
|
1591
1621
|
idField: e.idField,
|
|
1592
1622
|
valueField: e.valueField,
|
|
1593
1623
|
textField: e.textField,
|
|
1594
1624
|
titleField: e.titleField,
|
|
1595
|
-
dataSource:
|
|
1596
|
-
selectedValues:
|
|
1625
|
+
dataSource: y.value,
|
|
1626
|
+
selectedValues: g.value,
|
|
1597
1627
|
multiSelect: e.multiSelect,
|
|
1598
|
-
enableSearch:
|
|
1628
|
+
enableSearch: r.value,
|
|
1599
1629
|
maxHeight: e.maxHeight,
|
|
1600
|
-
|
|
1601
|
-
|
|
1630
|
+
enableHighlightSearch: e.enableHighlightSearch,
|
|
1631
|
+
width: e.fitEditor ? h.value : void 0,
|
|
1632
|
+
onSelectionChange: f
|
|
1602
1633
|
}, null)]
|
|
1603
1634
|
});
|
|
1604
1635
|
}
|
|
1605
1636
|
});
|
|
1606
1637
|
function Yt(e, t) {
|
|
1607
1638
|
e.schema;
|
|
1608
|
-
const n =
|
|
1609
|
-
function c(
|
|
1639
|
+
const n = C(!0), o = C(!0);
|
|
1640
|
+
function c(l) {
|
|
1610
1641
|
return !1;
|
|
1611
1642
|
}
|
|
1612
|
-
function
|
|
1643
|
+
function r() {
|
|
1613
1644
|
return !1;
|
|
1614
1645
|
}
|
|
1615
|
-
function
|
|
1646
|
+
function d() {
|
|
1616
1647
|
return !1;
|
|
1617
1648
|
}
|
|
1618
|
-
function
|
|
1649
|
+
function y() {
|
|
1619
1650
|
return !0;
|
|
1620
1651
|
}
|
|
1621
|
-
function
|
|
1652
|
+
function w(l) {
|
|
1622
1653
|
}
|
|
1623
|
-
function
|
|
1654
|
+
function m() {
|
|
1624
1655
|
}
|
|
1625
|
-
function
|
|
1656
|
+
function g(l) {
|
|
1626
1657
|
return null;
|
|
1627
1658
|
}
|
|
1628
1659
|
return {
|
|
1629
1660
|
canAccepts: c,
|
|
1630
|
-
checkCanDeleteComponent:
|
|
1631
|
-
checkCanMoveComponent:
|
|
1632
|
-
hideNestedPaddingInDesginerView:
|
|
1633
|
-
onAcceptMovedChildElement:
|
|
1634
|
-
resolveComponentContext:
|
|
1661
|
+
checkCanDeleteComponent: r,
|
|
1662
|
+
checkCanMoveComponent: d,
|
|
1663
|
+
hideNestedPaddingInDesginerView: y,
|
|
1664
|
+
onAcceptMovedChildElement: w,
|
|
1665
|
+
resolveComponentContext: m,
|
|
1635
1666
|
triggerBelongedComponentToMoveWhenMoved: n,
|
|
1636
1667
|
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
1637
|
-
getPropsConfig:
|
|
1668
|
+
getPropsConfig: g
|
|
1638
1669
|
};
|
|
1639
1670
|
}
|
|
1640
1671
|
class me {
|
|
@@ -1770,11 +1801,11 @@ class Zt {
|
|
|
1770
1801
|
$converter: "/converter/form-group-label.converter"
|
|
1771
1802
|
}
|
|
1772
1803
|
},
|
|
1773
|
-
setPropertyRelates(
|
|
1774
|
-
if (
|
|
1775
|
-
switch (
|
|
1804
|
+
setPropertyRelates(r, d) {
|
|
1805
|
+
if (r)
|
|
1806
|
+
switch (r && r.propertyID) {
|
|
1776
1807
|
case "type": {
|
|
1777
|
-
n.changeControlType(t,
|
|
1808
|
+
n.changeControlType(t, r);
|
|
1778
1809
|
break;
|
|
1779
1810
|
}
|
|
1780
1811
|
}
|
|
@@ -1787,13 +1818,13 @@ class Zt {
|
|
|
1787
1818
|
* @param newControlType 新控件类型
|
|
1788
1819
|
*/
|
|
1789
1820
|
changeControlType(t, n) {
|
|
1790
|
-
var
|
|
1821
|
+
var m, g, l, i, h;
|
|
1791
1822
|
const o = n.propertyValue, c = this.formSchemaUtils.getComponentById(this.componentId);
|
|
1792
|
-
let
|
|
1793
|
-
if (!
|
|
1823
|
+
let r = this.getControlParentContainer(t.id, c);
|
|
1824
|
+
if (!r)
|
|
1794
1825
|
return;
|
|
1795
|
-
const
|
|
1796
|
-
let
|
|
1826
|
+
const d = r.contents.findIndex((a) => a.id === t.id), y = r.contents[d];
|
|
1827
|
+
let w;
|
|
1797
1828
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1798
1829
|
editor: {
|
|
1799
1830
|
$type: o
|
|
@@ -1801,20 +1832,20 @@ class Zt {
|
|
|
1801
1832
|
name: this.designViewModelField.name,
|
|
1802
1833
|
require: this.designViewModelField.require,
|
|
1803
1834
|
readonly: this.designViewModelField.readonly
|
|
1804
|
-
}, !1),
|
|
1805
|
-
id:
|
|
1806
|
-
appearance:
|
|
1807
|
-
size:
|
|
1808
|
-
label:
|
|
1809
|
-
}), Object.assign(
|
|
1810
|
-
isTextArea:
|
|
1835
|
+
}, !1), w = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(w, {
|
|
1836
|
+
id: y.id,
|
|
1837
|
+
appearance: y.appearance,
|
|
1838
|
+
size: y.size,
|
|
1839
|
+
label: y.label
|
|
1840
|
+
}), Object.assign(w.editor, {
|
|
1841
|
+
isTextArea: w.isTextArea && y.isTextArea,
|
|
1811
1842
|
type: o || "",
|
|
1812
|
-
placeHolder: (
|
|
1813
|
-
holdPlace: (
|
|
1814
|
-
readonly: (
|
|
1815
|
-
require: (
|
|
1816
|
-
visible: (
|
|
1817
|
-
}),
|
|
1843
|
+
placeHolder: (m = y.editor) == null ? void 0 : m.placeHolder,
|
|
1844
|
+
holdPlace: (g = y.editor) == null ? void 0 : g.holdPlace,
|
|
1845
|
+
readonly: (l = y.editor) == null ? void 0 : l.readonly,
|
|
1846
|
+
require: (i = y.editor) == null ? void 0 : i.require,
|
|
1847
|
+
visible: (h = y.editor) == null ? void 0 : h.visible
|
|
1848
|
+
}), r.contents.splice(d, 1, w);
|
|
1818
1849
|
}
|
|
1819
1850
|
getAppearanceConfig(t = null) {
|
|
1820
1851
|
return {
|
|
@@ -1862,27 +1893,6 @@ class Zt {
|
|
|
1862
1893
|
return o;
|
|
1863
1894
|
}
|
|
1864
1895
|
}
|
|
1865
|
-
getBindingFieldEditorOptions(t) {
|
|
1866
|
-
const n = this.formSchemaUtils.getFormMetadataBasicInfo();
|
|
1867
|
-
return {
|
|
1868
|
-
type: "field-selector",
|
|
1869
|
-
bindingType: { enable: !1 },
|
|
1870
|
-
editorParams: {
|
|
1871
|
-
propertyData: t,
|
|
1872
|
-
formBasicInfo: n
|
|
1873
|
-
},
|
|
1874
|
-
columns: [
|
|
1875
|
-
{ field: "name", title: "字段名称" },
|
|
1876
|
-
{ field: "bindingField", title: "绑定字段" },
|
|
1877
|
-
{ field: "fieldType", title: "字段类型" }
|
|
1878
|
-
],
|
|
1879
|
-
beforeOpenDialog: (o) => {
|
|
1880
|
-
const c = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
1881
|
-
o.instance.loadData(c);
|
|
1882
|
-
},
|
|
1883
|
-
textField: "bindingField"
|
|
1884
|
-
};
|
|
1885
|
-
}
|
|
1886
1896
|
}
|
|
1887
1897
|
class Jt extends Zt {
|
|
1888
1898
|
constructor(t, n) {
|
|
@@ -1919,17 +1929,21 @@ class Jt extends Zt {
|
|
|
1919
1929
|
{ field: "bindingField", title: "绑定字段" },
|
|
1920
1930
|
{ field: "fieldType", title: "字段类型" }
|
|
1921
1931
|
],
|
|
1932
|
+
textField: "bindingField",
|
|
1922
1933
|
data: o
|
|
1923
1934
|
}
|
|
1924
1935
|
};
|
|
1925
1936
|
}
|
|
1937
|
+
getBindingOtions(t) {
|
|
1938
|
+
return this.getFieldSelectorOptions(t);
|
|
1939
|
+
}
|
|
1926
1940
|
getComponentConfig(t, n = {}, o = {}) {
|
|
1927
1941
|
const c = Object.assign({
|
|
1928
1942
|
description: "组件信息",
|
|
1929
1943
|
title: "组件信息",
|
|
1930
1944
|
type: "input-group",
|
|
1931
1945
|
$converter: "/converter/property-editor.converter"
|
|
1932
|
-
}, n),
|
|
1946
|
+
}, n), r = Object.assign({
|
|
1933
1947
|
readonly: {
|
|
1934
1948
|
description: "",
|
|
1935
1949
|
title: "只读",
|
|
@@ -1951,7 +1965,7 @@ class Jt extends Zt {
|
|
|
1951
1965
|
type: "string"
|
|
1952
1966
|
}
|
|
1953
1967
|
}, o);
|
|
1954
|
-
return { ...c, properties: { ...
|
|
1968
|
+
return { ...c, properties: { ...r } };
|
|
1955
1969
|
}
|
|
1956
1970
|
}
|
|
1957
1971
|
class Kt extends Jt {
|
|
@@ -1983,36 +1997,36 @@ function en(e, t) {
|
|
|
1983
1997
|
canAccepts: n,
|
|
1984
1998
|
checkCanDeleteComponent: o,
|
|
1985
1999
|
checkCanMoveComponent: c,
|
|
1986
|
-
hideNestedPaddingInDesginerView:
|
|
1987
|
-
onAcceptMovedChildElement:
|
|
1988
|
-
resolveComponentContext:
|
|
1989
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1990
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1991
|
-
} = Yt(e),
|
|
1992
|
-
function
|
|
1993
|
-
return new Kt(
|
|
2000
|
+
hideNestedPaddingInDesginerView: r,
|
|
2001
|
+
onAcceptMovedChildElement: d,
|
|
2002
|
+
resolveComponentContext: y,
|
|
2003
|
+
triggerBelongedComponentToMoveWhenMoved: w,
|
|
2004
|
+
triggerBelongedComponentToDeleteWhenDeleted: m
|
|
2005
|
+
} = Yt(e), g = e.schema;
|
|
2006
|
+
function l(i) {
|
|
2007
|
+
return new Kt(i, t).getPropertyConfig(g);
|
|
1994
2008
|
}
|
|
1995
2009
|
return {
|
|
1996
2010
|
canAccepts: n,
|
|
1997
2011
|
checkCanDeleteComponent: o,
|
|
1998
2012
|
checkCanMoveComponent: c,
|
|
1999
|
-
hideNestedPaddingInDesginerView:
|
|
2000
|
-
onAcceptMovedChildElement:
|
|
2001
|
-
resolveComponentContext:
|
|
2002
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2003
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
2004
|
-
getPropsConfig:
|
|
2013
|
+
hideNestedPaddingInDesginerView: r,
|
|
2014
|
+
onAcceptMovedChildElement: d,
|
|
2015
|
+
resolveComponentContext: y,
|
|
2016
|
+
triggerBelongedComponentToMoveWhenMoved: w,
|
|
2017
|
+
triggerBelongedComponentToDeleteWhenDeleted: m,
|
|
2018
|
+
getPropsConfig: l
|
|
2005
2019
|
};
|
|
2006
2020
|
}
|
|
2007
|
-
const tn = /* @__PURE__ */
|
|
2021
|
+
const tn = /* @__PURE__ */ N({
|
|
2008
2022
|
name: "FComboListDesign",
|
|
2009
2023
|
props: ee,
|
|
2010
2024
|
emits: ["clear", "update:modelValue", "change"],
|
|
2011
2025
|
setup(e, t) {
|
|
2012
|
-
const n =
|
|
2026
|
+
const n = C(), o = q("designer-host-service"), c = q("design-item-context"), r = en(c, o), d = Re(n, c, r);
|
|
2013
2027
|
return ie(() => {
|
|
2014
|
-
n.value.componentInstance =
|
|
2015
|
-
}), t.expose(
|
|
2028
|
+
n.value.componentInstance = d;
|
|
2029
|
+
}), t.expose(d.value), () => v(le, {
|
|
2016
2030
|
ref: n,
|
|
2017
2031
|
id: e.id,
|
|
2018
2032
|
disable: e.disabled,
|
|
@@ -2041,210 +2055,210 @@ U.register = (e, t, n, o) => {
|
|
|
2041
2055
|
U.registerDesigner = (e, t, n) => {
|
|
2042
2056
|
e["combo-list"] = tn, t["combo-list"] = fe;
|
|
2043
2057
|
};
|
|
2044
|
-
const z = nn(U), _ = /* @__PURE__ */
|
|
2058
|
+
const z = nn(U), _ = /* @__PURE__ */ N({
|
|
2045
2059
|
name: "FOrder",
|
|
2046
2060
|
props: K,
|
|
2047
2061
|
emits: ["change"],
|
|
2048
2062
|
setup(e, t) {
|
|
2049
|
-
const n =
|
|
2063
|
+
const n = C(e.items), o = C("排序列"), c = C("排序方式"), r = C("添加排序列"), d = [{
|
|
2050
2064
|
id: "asc",
|
|
2051
2065
|
name: "升序"
|
|
2052
2066
|
}, {
|
|
2053
2067
|
id: "desc",
|
|
2054
2068
|
name: "降序"
|
|
2055
|
-
}],
|
|
2056
|
-
function
|
|
2057
|
-
const
|
|
2058
|
-
|
|
2069
|
+
}], y = C(/* @__PURE__ */ new Map());
|
|
2070
|
+
function w() {
|
|
2071
|
+
const s = n.value.map((u) => [u.id, !0]);
|
|
2072
|
+
y.value = new Map(s);
|
|
2059
2073
|
}
|
|
2060
|
-
|
|
2061
|
-
const
|
|
2074
|
+
w();
|
|
2075
|
+
const m = B(() => e.dataSource.map((s) => (s.disabled = y.value.has(s.id), s))), g = B(() => ({
|
|
2062
2076
|
"f-order": !0
|
|
2063
2077
|
}));
|
|
2064
|
-
function
|
|
2065
|
-
n.value = n.value.filter((
|
|
2078
|
+
function l(s) {
|
|
2079
|
+
n.value = n.value.filter((u) => u.id !== s.id), w(), t.emit("change", n.value);
|
|
2066
2080
|
}
|
|
2067
|
-
function
|
|
2081
|
+
function i() {
|
|
2068
2082
|
n.value = [...n.value, {
|
|
2069
2083
|
id: Date.now().toString(),
|
|
2070
2084
|
name: "",
|
|
2071
2085
|
order: "asc"
|
|
2072
|
-
}],
|
|
2086
|
+
}], w(), t.emit("change", n.value);
|
|
2073
2087
|
}
|
|
2074
|
-
function
|
|
2075
|
-
if (
|
|
2076
|
-
const
|
|
2077
|
-
F && (F.name =
|
|
2088
|
+
function h(s) {
|
|
2089
|
+
if (s && s.length === 1) {
|
|
2090
|
+
const u = s[0], F = n.value.find((k) => k.id === u.id);
|
|
2091
|
+
F && (F.name = u.name);
|
|
2078
2092
|
}
|
|
2079
|
-
|
|
2093
|
+
w(), t.emit("change", n.value);
|
|
2080
2094
|
}
|
|
2081
|
-
function s
|
|
2082
|
-
if (
|
|
2083
|
-
const
|
|
2084
|
-
|
|
2095
|
+
function a(s) {
|
|
2096
|
+
if (s && s.length) {
|
|
2097
|
+
const u = /* @__PURE__ */ new Map();
|
|
2098
|
+
s.reduce((F, k) => (F.set(k.id, k), F), u), n.value = s.map((F) => u.get(F.id)), t.emit("change", n.value);
|
|
2085
2099
|
}
|
|
2086
2100
|
}
|
|
2087
|
-
function
|
|
2088
|
-
return
|
|
2101
|
+
function f() {
|
|
2102
|
+
return v(de, {
|
|
2089
2103
|
style: "flex:1",
|
|
2090
2104
|
data: n.value,
|
|
2091
2105
|
draggable: !0,
|
|
2092
2106
|
view: "DraggableView",
|
|
2093
2107
|
"keep-order": !0,
|
|
2094
2108
|
itemClass: "f-order-item",
|
|
2095
|
-
onRemoveItem:
|
|
2096
|
-
onChange:
|
|
2109
|
+
onRemoveItem: l,
|
|
2110
|
+
onChange: a
|
|
2097
2111
|
}, {
|
|
2098
|
-
header: () =>
|
|
2112
|
+
header: () => v("div", {
|
|
2099
2113
|
class: "f-order-header"
|
|
2100
|
-
}, [
|
|
2114
|
+
}, [v("span", {
|
|
2101
2115
|
class: "f-order-header-order-field"
|
|
2102
|
-
}, [o.value]),
|
|
2116
|
+
}, [o.value]), v("span", {
|
|
2103
2117
|
class: "f-order-header-order-type"
|
|
2104
2118
|
}, [c.value])]),
|
|
2105
|
-
itemContent: (
|
|
2119
|
+
itemContent: (s) => v("div", {
|
|
2106
2120
|
class: "f-order-item-content"
|
|
2107
|
-
}, [
|
|
2121
|
+
}, [v(z, {
|
|
2108
2122
|
class: "f-order-item-content-order-field",
|
|
2109
|
-
data:
|
|
2123
|
+
data: m.value,
|
|
2110
2124
|
valueField: "id",
|
|
2111
2125
|
textField: "name",
|
|
2112
2126
|
idField: "id",
|
|
2113
|
-
modelValue:
|
|
2114
|
-
"onUpdate:modelValue": (
|
|
2115
|
-
onChange:
|
|
2116
|
-
onClear:
|
|
2117
|
-
}, null),
|
|
2127
|
+
modelValue: s.id,
|
|
2128
|
+
"onUpdate:modelValue": (u) => s.id = u,
|
|
2129
|
+
onChange: h,
|
|
2130
|
+
onClear: h
|
|
2131
|
+
}, null), v(z, {
|
|
2118
2132
|
class: "f-order-item-content-order-type",
|
|
2119
|
-
data:
|
|
2133
|
+
data: d,
|
|
2120
2134
|
valueField: "id",
|
|
2121
2135
|
textField: "name",
|
|
2122
2136
|
idField: "id",
|
|
2123
|
-
modelValue:
|
|
2124
|
-
"onUpdate:modelValue": (
|
|
2125
|
-
onChange:
|
|
2137
|
+
modelValue: s.order,
|
|
2138
|
+
"onUpdate:modelValue": (u) => s.order = u,
|
|
2139
|
+
onChange: h
|
|
2126
2140
|
}, null)]),
|
|
2127
|
-
footer: () =>
|
|
2141
|
+
footer: () => v("div", {
|
|
2128
2142
|
class: "f-order-footer"
|
|
2129
|
-
}, [
|
|
2143
|
+
}, [v(pe, {
|
|
2130
2144
|
type: "link",
|
|
2131
2145
|
class: "f-order-add-button",
|
|
2132
|
-
onClick:
|
|
2146
|
+
onClick: i
|
|
2133
2147
|
}, {
|
|
2134
|
-
default: () =>
|
|
2148
|
+
default: () => v(Q, null, [v("span", {
|
|
2135
2149
|
class: "f-order-add-icon"
|
|
2136
|
-
}, [
|
|
2150
|
+
}, [v("i", {
|
|
2137
2151
|
class: "f-icon f-icon-add"
|
|
2138
|
-
}, null)]),
|
|
2152
|
+
}, null)]), r.value])
|
|
2139
2153
|
})])
|
|
2140
2154
|
});
|
|
2141
2155
|
}
|
|
2142
|
-
return () =>
|
|
2143
|
-
class:
|
|
2144
|
-
}, [
|
|
2156
|
+
return () => v("div", {
|
|
2157
|
+
class: g.value
|
|
2158
|
+
}, [f()]);
|
|
2145
2159
|
}
|
|
2146
2160
|
});
|
|
2147
2161
|
function on(e, t, n) {
|
|
2148
|
-
var
|
|
2162
|
+
var S;
|
|
2149
2163
|
function o() {
|
|
2150
2164
|
n != null && n.resolveComponentContext && n.resolveComponentContext();
|
|
2151
2165
|
}
|
|
2152
2166
|
o();
|
|
2153
|
-
const c = n && n.getStyles && n.getStyles() || "",
|
|
2154
|
-
function
|
|
2167
|
+
const c = n && n.getStyles && n.getStyles() || "", r = n && n.getDesignerClass && n.getDesignerClass() || "", d = C();
|
|
2168
|
+
function y() {
|
|
2155
2169
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
2156
2170
|
}
|
|
2157
|
-
function
|
|
2171
|
+
function w() {
|
|
2158
2172
|
return !1;
|
|
2159
2173
|
}
|
|
2160
|
-
function
|
|
2174
|
+
function m() {
|
|
2161
2175
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
2162
2176
|
}
|
|
2163
|
-
function
|
|
2177
|
+
function g() {
|
|
2164
2178
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
2165
2179
|
}
|
|
2166
|
-
function
|
|
2167
|
-
if (!
|
|
2180
|
+
function l(b) {
|
|
2181
|
+
if (!b || !b.value)
|
|
2168
2182
|
return null;
|
|
2169
|
-
if (
|
|
2170
|
-
return
|
|
2171
|
-
const D = b
|
|
2183
|
+
if (b.value.schema && b.value.schema.type === "component")
|
|
2184
|
+
return b.value;
|
|
2185
|
+
const D = C(b == null ? void 0 : b.value.parent), p = l(D);
|
|
2172
2186
|
return p || null;
|
|
2173
2187
|
}
|
|
2174
|
-
function
|
|
2175
|
-
const { componentInstance: D, designerItemElementRef: p } =
|
|
2176
|
-
return !D || !D.value ? null : D.value.canMove ? p :
|
|
2188
|
+
function i(b = t) {
|
|
2189
|
+
const { componentInstance: D, designerItemElementRef: p } = b;
|
|
2190
|
+
return !D || !D.value ? null : D.value.canMove ? p : i(b.parent);
|
|
2177
2191
|
}
|
|
2178
|
-
function
|
|
2179
|
-
return !!n && n.canAccepts(
|
|
2192
|
+
function h(b) {
|
|
2193
|
+
return !!n && n.canAccepts(b);
|
|
2180
2194
|
}
|
|
2181
|
-
function
|
|
2195
|
+
function a() {
|
|
2182
2196
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
2183
2197
|
}
|
|
2184
|
-
function
|
|
2198
|
+
function f() {
|
|
2185
2199
|
}
|
|
2186
|
-
function
|
|
2200
|
+
function s(b, D) {
|
|
2187
2201
|
D && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(D);
|
|
2188
2202
|
}
|
|
2189
|
-
function
|
|
2190
|
-
const { componentType: D } =
|
|
2191
|
-
let p = R(D,
|
|
2192
|
-
n && n.onResolveNewComponentSchema && (p = n.onResolveNewComponentSchema(
|
|
2203
|
+
function u(b) {
|
|
2204
|
+
const { componentType: D } = b;
|
|
2205
|
+
let p = R(D, b);
|
|
2206
|
+
n && n.onResolveNewComponentSchema && (p = n.onResolveNewComponentSchema(b, p));
|
|
2193
2207
|
const V = D.toLowerCase().replace("-", "_");
|
|
2194
2208
|
return p && !p.id && p.type === D && (p.id = `${V}_${Math.random().toString().slice(2, 6)}`), p;
|
|
2195
2209
|
}
|
|
2196
|
-
function F(
|
|
2197
|
-
const p = String(
|
|
2198
|
-
A.parentComponentInstance =
|
|
2199
|
-
let
|
|
2200
|
-
n && n.onAcceptNewChildElement && (
|
|
2210
|
+
function F(b, D) {
|
|
2211
|
+
const p = String(b.getAttribute("data-controltype")), V = b.getAttribute("data-feature"), A = V ? JSON.parse(V) : {};
|
|
2212
|
+
A.parentComponentInstance = d.value;
|
|
2213
|
+
let T = R(p, A);
|
|
2214
|
+
n && n.onAcceptNewChildElement && (T = n.onAcceptNewChildElement(b, D, T));
|
|
2201
2215
|
const x = p.toLowerCase().replace("-", "_");
|
|
2202
|
-
return
|
|
2216
|
+
return T && !T.id && T.type === p && (T.id = `${x}_${Math.random().toString().slice(2, 6)}`), T;
|
|
2203
2217
|
}
|
|
2204
|
-
function
|
|
2218
|
+
function k(b) {
|
|
2205
2219
|
}
|
|
2206
|
-
function
|
|
2220
|
+
function j(...b) {
|
|
2207
2221
|
if (n && n.getPropsConfig)
|
|
2208
|
-
return n.getPropsConfig(...
|
|
2222
|
+
return n.getPropsConfig(...b);
|
|
2209
2223
|
}
|
|
2210
|
-
return
|
|
2211
|
-
canMove:
|
|
2212
|
-
canSelectParent:
|
|
2213
|
-
canDelete:
|
|
2214
|
-
canNested: !
|
|
2224
|
+
return d.value = {
|
|
2225
|
+
canMove: y(),
|
|
2226
|
+
canSelectParent: w(),
|
|
2227
|
+
canDelete: m(),
|
|
2228
|
+
canNested: !g(),
|
|
2215
2229
|
contents: t == null ? void 0 : t.schema.contents,
|
|
2216
2230
|
elementRef: e,
|
|
2217
|
-
parent: (
|
|
2231
|
+
parent: (S = t == null ? void 0 : t.parent) == null ? void 0 : S.componentInstance,
|
|
2218
2232
|
schema: t == null ? void 0 : t.schema,
|
|
2219
2233
|
styles: c,
|
|
2220
|
-
designerClass:
|
|
2221
|
-
canAccepts:
|
|
2222
|
-
getBelongedComponentInstance:
|
|
2223
|
-
getDraggableDesignItemElement:
|
|
2224
|
-
getDraggingDisplayText:
|
|
2225
|
-
getPropConfig:
|
|
2226
|
-
getDragScopeElement:
|
|
2227
|
-
onAcceptMovedChildElement:
|
|
2234
|
+
designerClass: r,
|
|
2235
|
+
canAccepts: h,
|
|
2236
|
+
getBelongedComponentInstance: l,
|
|
2237
|
+
getDraggableDesignItemElement: i,
|
|
2238
|
+
getDraggingDisplayText: a,
|
|
2239
|
+
getPropConfig: j,
|
|
2240
|
+
getDragScopeElement: f,
|
|
2241
|
+
onAcceptMovedChildElement: s,
|
|
2228
2242
|
onAcceptNewChildElement: F,
|
|
2229
|
-
onChildElementMovedOut:
|
|
2230
|
-
addNewChildComponentSchema:
|
|
2243
|
+
onChildElementMovedOut: k,
|
|
2244
|
+
addNewChildComponentSchema: u,
|
|
2231
2245
|
updateDragAndDropRules: o,
|
|
2232
|
-
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved ||
|
|
2233
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
2234
|
-
},
|
|
2246
|
+
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
|
|
2247
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1)
|
|
2248
|
+
}, d;
|
|
2235
2249
|
}
|
|
2236
2250
|
function an() {
|
|
2237
2251
|
function e(t) {
|
|
2238
|
-
var c,
|
|
2252
|
+
var c, r;
|
|
2239
2253
|
if (!t)
|
|
2240
2254
|
return !1;
|
|
2241
2255
|
const n = ((c = t.targetContainer) == null ? void 0 : c.componentInstance) && t.targetContainer.componentInstance.value;
|
|
2242
2256
|
if (!n)
|
|
2243
2257
|
return !1;
|
|
2244
|
-
const o = (
|
|
2258
|
+
const o = (r = n.schema.appearance) == null ? void 0 : r.class;
|
|
2245
2259
|
if (t.controlCategory === "input" || t.controlType === "form-group") {
|
|
2246
|
-
const
|
|
2247
|
-
if (n.schema.type !== "response-layout-item" && !
|
|
2260
|
+
const d = n.schema.type, y = (d === "response-form" || d === "content-container") && o && o.includes("farris-form");
|
|
2261
|
+
if (n.schema.type !== "response-layout-item" && !y)
|
|
2248
2262
|
return !1;
|
|
2249
2263
|
}
|
|
2250
2264
|
return t.controlType !== "field-set";
|
|
@@ -2827,29 +2841,29 @@ const rn = "https://json-schema.org/draft/2020-12/schema", ln = "https://farris-
|
|
|
2827
2841
|
required: pn
|
|
2828
2842
|
}, W = /* @__PURE__ */ new Map();
|
|
2829
2843
|
function mn() {
|
|
2830
|
-
function e(
|
|
2844
|
+
function e(a, f, s, u) {
|
|
2831
2845
|
var F;
|
|
2832
|
-
if (typeof
|
|
2833
|
-
return ((F =
|
|
2834
|
-
if (typeof
|
|
2835
|
-
const
|
|
2836
|
-
if (
|
|
2837
|
-
return Number(
|
|
2838
|
-
if (
|
|
2839
|
-
return Number(
|
|
2840
|
-
if (
|
|
2841
|
-
return Number(
|
|
2846
|
+
if (typeof s == "number")
|
|
2847
|
+
return ((F = u[a]) == null ? void 0 : F.length) === s;
|
|
2848
|
+
if (typeof s == "object") {
|
|
2849
|
+
const k = Object.keys(s)[0], j = s[k];
|
|
2850
|
+
if (k === "not")
|
|
2851
|
+
return Number(u[a].length) !== Number(j);
|
|
2852
|
+
if (k === "moreThan")
|
|
2853
|
+
return Number(u[a].length) >= Number(j);
|
|
2854
|
+
if (k === "lessThan")
|
|
2855
|
+
return Number(u[a].length) <= Number(j);
|
|
2842
2856
|
}
|
|
2843
2857
|
return !1;
|
|
2844
2858
|
}
|
|
2845
|
-
function t(
|
|
2846
|
-
return typeof
|
|
2859
|
+
function t(a, f, s, u) {
|
|
2860
|
+
return typeof s == "boolean" ? u.childrenClassList.includes(f) === !!s : !1;
|
|
2847
2861
|
}
|
|
2848
|
-
function n(
|
|
2849
|
-
return typeof
|
|
2862
|
+
function n(a, f, s, u) {
|
|
2863
|
+
return typeof s == "boolean" ? u.parentClassList.includes(f) === !!s : !1;
|
|
2850
2864
|
}
|
|
2851
|
-
function o(
|
|
2852
|
-
return typeof
|
|
2865
|
+
function o(a, f, s, u) {
|
|
2866
|
+
return typeof s == "boolean" ? u.parentClassList.includes(f) === !!s : !1;
|
|
2853
2867
|
}
|
|
2854
2868
|
const c = /* @__PURE__ */ new Map([
|
|
2855
2869
|
["length", e],
|
|
@@ -2857,116 +2871,116 @@ function mn() {
|
|
|
2857
2871
|
["hasSibling", o],
|
|
2858
2872
|
["hasParent", n]
|
|
2859
2873
|
]);
|
|
2860
|
-
function
|
|
2861
|
-
const
|
|
2862
|
-
return typeof
|
|
2863
|
-
if (
|
|
2864
|
-
return { target:
|
|
2865
|
-
const F =
|
|
2866
|
-
return { target:
|
|
2874
|
+
function r(a, f) {
|
|
2875
|
+
const s = a;
|
|
2876
|
+
return typeof f == "number" ? [{ target: s, operator: "length", param: null, value: Number(f) }] : typeof f == "object" ? Object.keys(f).map((u) => {
|
|
2877
|
+
if (u === "length")
|
|
2878
|
+
return { target: s, operator: "length", param: null, value: f[u] };
|
|
2879
|
+
const F = u, k = f[u];
|
|
2880
|
+
return { target: s, operator: a === "children" ? "hasChildren" : a === "parent" ? "hasParent" : "hasSibling", param: F, value: k };
|
|
2867
2881
|
}) : [];
|
|
2868
2882
|
}
|
|
2869
|
-
function
|
|
2870
|
-
if (c.has(
|
|
2871
|
-
const
|
|
2872
|
-
return
|
|
2883
|
+
function d(a, f) {
|
|
2884
|
+
if (c.has(a.operator)) {
|
|
2885
|
+
const s = c.get(a.operator);
|
|
2886
|
+
return s && s(a.target, a.param, a.value, f) || !1;
|
|
2873
2887
|
}
|
|
2874
2888
|
return !1;
|
|
2875
2889
|
}
|
|
2876
|
-
function
|
|
2877
|
-
return Object.keys(
|
|
2878
|
-
const
|
|
2879
|
-
return
|
|
2880
|
-
}, []).reduce((
|
|
2881
|
-
}
|
|
2882
|
-
function
|
|
2883
|
-
const
|
|
2884
|
-
return
|
|
2885
|
-
}
|
|
2886
|
-
function
|
|
2887
|
-
const
|
|
2888
|
-
return
|
|
2889
|
-
}
|
|
2890
|
-
function
|
|
2891
|
-
return (
|
|
2892
|
-
const
|
|
2893
|
-
return
|
|
2894
|
-
const
|
|
2895
|
-
return
|
|
2896
|
-
},
|
|
2890
|
+
function y(a, f) {
|
|
2891
|
+
return Object.keys(a).reduce((k, j) => {
|
|
2892
|
+
const S = r(j, a[j]);
|
|
2893
|
+
return k.push(...S), k;
|
|
2894
|
+
}, []).reduce((k, j) => k && d(j, f), !0);
|
|
2895
|
+
}
|
|
2896
|
+
function w(a, f) {
|
|
2897
|
+
const s = Object.keys(a), u = s.includes("allOf"), F = s.includes("anyOf"), k = u || F, b = (k ? a[k ? u ? "allOf" : "anyOf" : "allOf"] : [a]).map((p) => y(p, f));
|
|
2898
|
+
return u ? !b.includes(!1) : b.includes(!0);
|
|
2899
|
+
}
|
|
2900
|
+
function m(a, f) {
|
|
2901
|
+
const s = a.const;
|
|
2902
|
+
return s ? typeof s == "boolean" ? s : typeof s == "object" ? w(s, f) : !1 : !1;
|
|
2903
|
+
}
|
|
2904
|
+
function g(a) {
|
|
2905
|
+
return (f) => {
|
|
2906
|
+
const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
2907
|
+
return a && a.properties && Object.keys(a.properties).reduce((u, F) => {
|
|
2908
|
+
const k = a.properties[F];
|
|
2909
|
+
return u[F] = m(k, f), u;
|
|
2910
|
+
}, s), s;
|
|
2897
2911
|
};
|
|
2898
2912
|
}
|
|
2899
|
-
function a
|
|
2900
|
-
if (
|
|
2901
|
-
const { rules:
|
|
2902
|
-
|
|
2903
|
-
(
|
|
2913
|
+
function l(a, f, s) {
|
|
2914
|
+
if (f.type === "object" && f.properties) {
|
|
2915
|
+
const { rules: u, contents: F } = f.properties;
|
|
2916
|
+
s.set(a, g(u)), F && Object.keys(F.properties).forEach(
|
|
2917
|
+
(k) => l(k, F.properties[k], s)
|
|
2904
2918
|
);
|
|
2905
2919
|
}
|
|
2906
2920
|
}
|
|
2907
|
-
function
|
|
2908
|
-
const { properties:
|
|
2909
|
-
Object.keys(
|
|
2910
|
-
|
|
2921
|
+
function i() {
|
|
2922
|
+
const { properties: a } = fn;
|
|
2923
|
+
Object.keys(a).forEach((f) => {
|
|
2924
|
+
l(f, a[f], W);
|
|
2911
2925
|
});
|
|
2912
2926
|
}
|
|
2913
|
-
function
|
|
2914
|
-
const
|
|
2915
|
-
return W.has(
|
|
2927
|
+
function h(a, f) {
|
|
2928
|
+
const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
2929
|
+
return W.has(a) ? W.get(a)(f) : s;
|
|
2916
2930
|
}
|
|
2917
|
-
return
|
|
2931
|
+
return i(), { getRuleValue: h };
|
|
2918
2932
|
}
|
|
2919
2933
|
function yn(e, t) {
|
|
2920
2934
|
var D;
|
|
2921
|
-
const n = e.schema, o = (D = e.parent) == null ? void 0 : D.schema, c = mn(),
|
|
2922
|
-
let
|
|
2923
|
-
function
|
|
2924
|
-
return
|
|
2935
|
+
const n = e.schema, o = (D = e.parent) == null ? void 0 : D.schema, c = mn(), r = C(!1), d = C(!1);
|
|
2936
|
+
let y = !0, w = !1, m, g = !1;
|
|
2937
|
+
function l(p) {
|
|
2938
|
+
return m && m.componentClassList && m.componentClassList.includes("f-form-layout") && m.componentClassList.includes("farris-form") ? p.sourceType === "control" && p.controlCategory === "input" || p.sourceType === "move" && p.controlType === "form-group" : !0;
|
|
2925
2939
|
}
|
|
2926
|
-
function
|
|
2927
|
-
return !(!an().basalDragulaRuleForContainer(p) || !
|
|
2940
|
+
function i(p) {
|
|
2941
|
+
return !(!an().basalDragulaRuleForContainer(p) || !y || !l(p));
|
|
2928
2942
|
}
|
|
2929
|
-
function
|
|
2930
|
-
|
|
2931
|
-
const p = n, V = p.appearance && p.appearance.class || "", A = V.split(" "),
|
|
2943
|
+
function h() {
|
|
2944
|
+
r.value = !1, d.value = !1;
|
|
2945
|
+
const p = n, V = p.appearance && p.appearance.class || "", A = V.split(" "), T = p.contents || [], x = T.length ? T[0] : null, I = x && x.appearance ? x.appearance.class : "", P = I ? I.split(" ") : [], E = T.length ? T.reduce((te, G) => {
|
|
2932
2946
|
const ne = G && G.appearance ? G.appearance.class : "", be = ne ? ne.split(" ") : [];
|
|
2933
2947
|
return te.push(...be), te;
|
|
2934
|
-
}, []) : [],
|
|
2935
|
-
|
|
2948
|
+
}, []) : [], O = o, L = O && O.appearance && O.appearance.class || "", ye = L ? L.split(" ") : [];
|
|
2949
|
+
m = {
|
|
2936
2950
|
componentClass: V,
|
|
2937
2951
|
componentClassList: A,
|
|
2938
|
-
childContents:
|
|
2952
|
+
childContents: T,
|
|
2939
2953
|
firstChildContent: x,
|
|
2940
|
-
firstChildClass:
|
|
2941
|
-
firstChildClassList:
|
|
2942
|
-
parent:
|
|
2954
|
+
firstChildClass: I,
|
|
2955
|
+
firstChildClassList: P,
|
|
2956
|
+
parent: O,
|
|
2943
2957
|
parentClass: L,
|
|
2944
2958
|
parentClassList: ye,
|
|
2945
|
-
children:
|
|
2959
|
+
children: T,
|
|
2946
2960
|
childrenClassList: E
|
|
2947
2961
|
};
|
|
2948
|
-
const { canAccept: ge, fixed: he, hidePadding: ve } = c.getRuleValue(A[0],
|
|
2949
|
-
return
|
|
2962
|
+
const { canAccept: ge, fixed: he, hidePadding: ve } = c.getRuleValue(A[0], m);
|
|
2963
|
+
return y = ge, w = ve, g = he, !0;
|
|
2950
2964
|
}
|
|
2951
|
-
function
|
|
2952
|
-
|
|
2965
|
+
function a(p) {
|
|
2966
|
+
Te();
|
|
2953
2967
|
}
|
|
2954
|
-
function
|
|
2968
|
+
function f() {
|
|
2955
2969
|
return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
2956
2970
|
}
|
|
2957
|
-
function
|
|
2971
|
+
function s(p, V) {
|
|
2958
2972
|
const A = n;
|
|
2959
2973
|
if ((A.appearance && A.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
2960
|
-
const { label:
|
|
2961
|
-
return
|
|
2974
|
+
const { label: I } = p, P = R("form-group");
|
|
2975
|
+
return P.editor = V, P.label = I, u(P), delete P.editor.id, delete P.editor.binding, delete P.editor.appearance, delete P.editor.visible, P;
|
|
2962
2976
|
}
|
|
2963
2977
|
return V;
|
|
2964
2978
|
}
|
|
2965
|
-
function
|
|
2979
|
+
function u(p) {
|
|
2966
2980
|
const V = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
|
|
2967
2981
|
if (V && V.schema && V.schema.componentType) {
|
|
2968
|
-
const A = V.schema.componentType,
|
|
2969
|
-
p.appearance || (p.appearance = {}), p.appearance.class =
|
|
2982
|
+
const A = V.schema.componentType, T = F(A);
|
|
2983
|
+
p.appearance || (p.appearance = {}), p.appearance.class = T;
|
|
2970
2984
|
}
|
|
2971
2985
|
}
|
|
2972
2986
|
function F(p) {
|
|
@@ -3003,141 +3017,141 @@ function yn(e, t) {
|
|
|
3003
3017
|
}
|
|
3004
3018
|
return V;
|
|
3005
3019
|
}
|
|
3006
|
-
function
|
|
3007
|
-
const
|
|
3008
|
-
if ((
|
|
3009
|
-
const
|
|
3010
|
-
return E.editor = A, E.label =
|
|
3020
|
+
function k(p, V, A) {
|
|
3021
|
+
const T = n;
|
|
3022
|
+
if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
3023
|
+
const P = String(p.innerText), E = R("form-group");
|
|
3024
|
+
return E.editor = A, E.label = P, E;
|
|
3011
3025
|
}
|
|
3012
3026
|
return A;
|
|
3013
3027
|
}
|
|
3014
|
-
function
|
|
3015
|
-
return !
|
|
3028
|
+
function j() {
|
|
3029
|
+
return !g;
|
|
3016
3030
|
}
|
|
3017
|
-
function
|
|
3018
|
-
return !
|
|
3031
|
+
function S() {
|
|
3032
|
+
return !g;
|
|
3019
3033
|
}
|
|
3020
|
-
function
|
|
3021
|
-
return
|
|
3034
|
+
function b() {
|
|
3035
|
+
return w;
|
|
3022
3036
|
}
|
|
3023
3037
|
return {
|
|
3024
|
-
canAccepts:
|
|
3025
|
-
checkCanDeleteComponent:
|
|
3026
|
-
checkCanMoveComponent:
|
|
3027
|
-
getStyles:
|
|
3028
|
-
hideNestedPaddingInDesginerView:
|
|
3029
|
-
onAcceptNewChildElement:
|
|
3030
|
-
onAcceptMovedChildElement:
|
|
3031
|
-
resolveComponentContext:
|
|
3032
|
-
onResolveNewComponentSchema:
|
|
3033
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
3034
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
3038
|
+
canAccepts: i,
|
|
3039
|
+
checkCanDeleteComponent: S,
|
|
3040
|
+
checkCanMoveComponent: j,
|
|
3041
|
+
getStyles: f,
|
|
3042
|
+
hideNestedPaddingInDesginerView: b,
|
|
3043
|
+
onAcceptNewChildElement: k,
|
|
3044
|
+
onAcceptMovedChildElement: a,
|
|
3045
|
+
resolveComponentContext: h,
|
|
3046
|
+
onResolveNewComponentSchema: s,
|
|
3047
|
+
triggerBelongedComponentToMoveWhenMoved: r,
|
|
3048
|
+
triggerBelongedComponentToDeleteWhenDeleted: d
|
|
3035
3049
|
};
|
|
3036
3050
|
}
|
|
3037
|
-
const gn = /* @__PURE__ */
|
|
3051
|
+
const gn = /* @__PURE__ */ N({
|
|
3038
3052
|
name: "FOrderDesign",
|
|
3039
3053
|
props: K,
|
|
3040
3054
|
emits: ["change"],
|
|
3041
3055
|
setup(e, t) {
|
|
3042
|
-
var
|
|
3043
|
-
const n =
|
|
3056
|
+
var j;
|
|
3057
|
+
const n = C(e.items), o = C("排序列"), c = C("排序方式"), r = C("添加排序列"), d = [{
|
|
3044
3058
|
id: "asc",
|
|
3045
3059
|
name: "升序"
|
|
3046
3060
|
}, {
|
|
3047
3061
|
id: "desc",
|
|
3048
3062
|
name: "降序"
|
|
3049
|
-
}],
|
|
3063
|
+
}], y = C(/* @__PURE__ */ new Map()), w = C(), m = q("design-item-context"), g = yn(m.schema, (j = m.parent) == null ? void 0 : j.schema), l = on(w, m, g);
|
|
3050
3064
|
ie(() => {
|
|
3051
|
-
|
|
3052
|
-
}), t.expose(
|
|
3053
|
-
function
|
|
3054
|
-
const
|
|
3055
|
-
|
|
3065
|
+
w.value.componentInstance = l;
|
|
3066
|
+
}), t.expose(l.value);
|
|
3067
|
+
function i() {
|
|
3068
|
+
const S = n.value.map((b) => [b.id, !0]);
|
|
3069
|
+
y.value = new Map(S);
|
|
3056
3070
|
}
|
|
3057
|
-
|
|
3058
|
-
const
|
|
3071
|
+
i();
|
|
3072
|
+
const h = B(() => e.dataSource.map((S) => (S.disabled = y.value.has(S.id), S))), a = B(() => ({
|
|
3059
3073
|
"f-order": !0
|
|
3060
3074
|
}));
|
|
3061
|
-
function
|
|
3062
|
-
n.value = n.value.filter((
|
|
3075
|
+
function f(S) {
|
|
3076
|
+
n.value = n.value.filter((b) => b.id !== S.id), i(), t.emit("change", n.value);
|
|
3063
3077
|
}
|
|
3064
|
-
function
|
|
3078
|
+
function s() {
|
|
3065
3079
|
n.value = [...n.value, {
|
|
3066
3080
|
id: Date.now().toString(),
|
|
3067
3081
|
name: "",
|
|
3068
3082
|
order: "asc"
|
|
3069
|
-
}],
|
|
3083
|
+
}], i(), t.emit("change", n.value);
|
|
3070
3084
|
}
|
|
3071
|
-
function
|
|
3072
|
-
|
|
3085
|
+
function u(S) {
|
|
3086
|
+
i(), t.emit("change", n.value);
|
|
3073
3087
|
}
|
|
3074
|
-
function F(
|
|
3075
|
-
if (
|
|
3076
|
-
const
|
|
3077
|
-
|
|
3088
|
+
function F(S) {
|
|
3089
|
+
if (S && S.length) {
|
|
3090
|
+
const b = /* @__PURE__ */ new Map();
|
|
3091
|
+
S.reduce((D, p) => (D.set(p.id, p), D), b), n.value = S.map((D) => b.get(D.id)), t.emit("change", n.value);
|
|
3078
3092
|
}
|
|
3079
3093
|
}
|
|
3080
|
-
function
|
|
3081
|
-
return
|
|
3094
|
+
function k() {
|
|
3095
|
+
return v(de, {
|
|
3082
3096
|
style: "flex:1",
|
|
3083
3097
|
data: n.value,
|
|
3084
3098
|
draggable: !0,
|
|
3085
3099
|
view: "DraggableView",
|
|
3086
3100
|
"keep-order": !0,
|
|
3087
3101
|
itemClass: "f-order-item",
|
|
3088
|
-
onRemoveItem:
|
|
3102
|
+
onRemoveItem: f,
|
|
3089
3103
|
onChange: F
|
|
3090
3104
|
}, {
|
|
3091
|
-
header: () =>
|
|
3105
|
+
header: () => v("div", {
|
|
3092
3106
|
class: "f-order-header"
|
|
3093
|
-
}, [
|
|
3107
|
+
}, [v("span", {
|
|
3094
3108
|
class: "f-order-header-order-field"
|
|
3095
|
-
}, [o.value]),
|
|
3109
|
+
}, [o.value]), v("span", {
|
|
3096
3110
|
class: "f-order-header-order-type"
|
|
3097
3111
|
}, [c.value])]),
|
|
3098
|
-
itemContent: (
|
|
3112
|
+
itemContent: (S) => v("div", {
|
|
3099
3113
|
class: "f-order-item-content"
|
|
3100
|
-
}, [
|
|
3114
|
+
}, [v(z, {
|
|
3101
3115
|
class: "f-order-item-content-order-field",
|
|
3102
|
-
data:
|
|
3116
|
+
data: h.value,
|
|
3103
3117
|
valueField: "id",
|
|
3104
3118
|
textField: "name",
|
|
3105
3119
|
idField: "id",
|
|
3106
|
-
modelValue:
|
|
3107
|
-
"onUpdate:modelValue": (
|
|
3108
|
-
onChange:
|
|
3109
|
-
onClear:
|
|
3110
|
-
}, null),
|
|
3120
|
+
modelValue: S.id,
|
|
3121
|
+
"onUpdate:modelValue": (b) => S.id = b,
|
|
3122
|
+
onChange: u,
|
|
3123
|
+
onClear: u
|
|
3124
|
+
}, null), v(z, {
|
|
3111
3125
|
class: "f-order-item-content-order-type",
|
|
3112
|
-
data:
|
|
3126
|
+
data: d,
|
|
3113
3127
|
valueField: "id",
|
|
3114
3128
|
textField: "name",
|
|
3115
3129
|
idField: "id",
|
|
3116
|
-
modelValue:
|
|
3117
|
-
"onUpdate:modelValue": (
|
|
3118
|
-
onChange:
|
|
3130
|
+
modelValue: S.order,
|
|
3131
|
+
"onUpdate:modelValue": (b) => S.order = b,
|
|
3132
|
+
onChange: u
|
|
3119
3133
|
}, null)]),
|
|
3120
|
-
footer: () =>
|
|
3134
|
+
footer: () => v("div", {
|
|
3121
3135
|
class: "f-order-footer"
|
|
3122
|
-
}, [
|
|
3136
|
+
}, [v(pe, {
|
|
3123
3137
|
type: "link",
|
|
3124
3138
|
class: "f-order-add-button",
|
|
3125
|
-
onClick:
|
|
3139
|
+
onClick: s
|
|
3126
3140
|
}, {
|
|
3127
|
-
default: () =>
|
|
3141
|
+
default: () => v(Q, null, [v("span", {
|
|
3128
3142
|
class: "f-order-add-icon"
|
|
3129
|
-
}, [
|
|
3143
|
+
}, [v("i", {
|
|
3130
3144
|
class: "f-icon f-icon-add"
|
|
3131
|
-
}, null)]),
|
|
3145
|
+
}, null)]), r.value])
|
|
3132
3146
|
})])
|
|
3133
3147
|
});
|
|
3134
3148
|
}
|
|
3135
|
-
return () =>
|
|
3136
|
-
ref:
|
|
3137
|
-
class:
|
|
3138
|
-
}, [
|
|
3149
|
+
return () => v("div", {
|
|
3150
|
+
ref: w,
|
|
3151
|
+
class: a.value
|
|
3152
|
+
}, [k()]);
|
|
3139
3153
|
}
|
|
3140
|
-
}),
|
|
3154
|
+
}), Tn = {
|
|
3141
3155
|
install(e) {
|
|
3142
3156
|
e.component(_.name, _);
|
|
3143
3157
|
},
|
|
@@ -3150,7 +3164,7 @@ const gn = /* @__PURE__ */ H({
|
|
|
3150
3164
|
};
|
|
3151
3165
|
export {
|
|
3152
3166
|
_ as FOrder,
|
|
3153
|
-
|
|
3167
|
+
Tn as default,
|
|
3154
3168
|
K as orderProps,
|
|
3155
3169
|
oe as propsResolver
|
|
3156
3170
|
};
|