@farris/ui-vue 1.2.7 → 1.2.8
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 +79 -79
- package/components/avatar/index.esm.js +393 -440
- package/components/border-editor/index.esm.js +4 -4
- package/components/button/index.esm.js +1 -1
- package/components/button-edit/index.esm.js +353 -444
- package/components/button-group/index.esm.js +5 -5
- package/components/calendar/index.esm.js +176 -176
- package/components/capsule/index.esm.js +93 -93
- package/components/checkbox/index.esm.js +496 -542
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +437 -483
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +839 -726
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4702 -4972
- package/components/data-view/index.esm.js +2999 -2875
- package/components/date-picker/index.esm.js +2626 -2672
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.esm.js +478 -475
- package/components/designer-outline/index.esm.js +173 -131
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dynamic-form/index.esm.js +934 -976
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/enum-editor/index.esm.js +3 -3
- package/components/events-editor/index.esm.js +178 -178
- package/components/expression-editor/index.esm.js +105 -105
- package/components/external-container/index.esm.js +1892 -1775
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5245 -5514
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1483 -1556
- package/components/flow-canvas/index.esm.js +678 -675
- package/components/image-cropper/index.esm.js +266 -266
- package/components/input-group/index.esm.js +668 -714
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1679 -1563
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6596 -6865
- package/components/mapping-editor/index.esm.js +5592 -5862
- package/components/message-box/index.esm.js +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/nav/index.esm.js +86 -86
- package/components/number-range/index.esm.js +1120 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1146 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.esm.js +988 -1034
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1296
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1416 -1462
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +757 -830
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +6935 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-group/index.esm.js +452 -498
- package/components/rate/index.esm.js +92 -92
- package/components/response-layout/index.esm.js +33 -33
- package/components/response-layout-editor/index.esm.js +117 -117
- package/components/response-toolbar/index.esm.js +1021 -1238
- package/components/schema-selector/index.esm.js +3215 -3308
- package/components/search-box/index.esm.js +143 -143
- package/components/section/index.esm.js +209 -209
- package/components/smoke-detector/index.esm.js +22 -22
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/splitter/index.esm.js +1097 -394
- package/components/step/index.esm.js +153 -153
- package/components/switch/index.esm.js +442 -488
- package/components/tabs/index.esm.js +1835 -2004
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +451 -482
- package/components/time-picker/index.esm.js +1345 -1392
- package/components/transfer/index.esm.js +135 -135
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5761 -6020
- package/components/tree-view/index.esm.js +2380 -2253
- package/components/uploader/index.esm.js +1 -1
- package/components/verify-detail/index.esm.js +232 -232
- package/components/video/index.esm.js +136 -136
- package/components/weather/index.esm.js +2 -2
- package/farris.all.esm.js +31630 -31224
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/checkbox/index.d.ts +1 -0
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/types.d.ts +1 -1
- package/types/dynamic-form/index.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
- package/components/accordion/index.umd.cjs +0 -1
- package/components/avatar/index.umd.cjs +0 -1
- package/components/border-editor/index.umd.cjs +0 -1
- package/components/button/index.umd.cjs +0 -1
- package/components/button-edit/index.umd.cjs +0 -1
- package/components/button-group/index.umd.cjs +0 -1
- package/components/calculator/index.umd.cjs +0 -1
- package/components/calendar/index.umd.cjs +0 -1
- package/components/capsule/index.umd.cjs +0 -1
- package/components/checkbox/index.umd.cjs +0 -1
- package/components/color-picker/index.umd.cjs +0 -3
- package/components/combo-list/index.umd.cjs +0 -1
- package/components/combo-tree/index.umd.cjs +0 -1
- package/components/common/index.umd.cjs +0 -1
- package/components/component/index.umd.cjs +0 -1
- package/components/condition/index.umd.cjs +0 -1
- package/components/content-container/index.umd.cjs +0 -1
- package/components/data-grid/index.umd.cjs +0 -1
- package/components/data-view/index.umd.cjs +0 -1
- package/components/date-picker/index.umd.cjs +0 -1
- package/components/designer-canvas/index.umd.cjs +0 -1
- package/components/designer-outline/index.umd.cjs +0 -1
- package/components/designer-toolbox/index.umd.cjs +0 -1
- package/components/discussion-editor/index.umd.cjs +0 -3
- package/components/discussion-list/index.umd.cjs +0 -1
- package/components/drawer/index.umd.cjs +0 -1
- package/components/dropdown/index.umd.cjs +0 -2
- package/components/dynamic-form/index.umd.cjs +0 -1
- package/components/dynamic-resolver/index.umd.cjs +0 -1
- package/components/dynamic-view/index.umd.cjs +0 -1
- package/components/enum-editor/index.umd.cjs +0 -1
- package/components/events-editor/index.umd.cjs +0 -1
- package/components/expression-editor/index.umd.cjs +0 -1
- package/components/external-container/index.umd.cjs +0 -1
- package/components/field-selector/index.umd.cjs +0 -1
- package/components/filter-bar/index.umd.cjs +0 -1
- package/components/flow-canvas/index.umd.cjs +0 -1
- package/components/image-cropper/index.umd.cjs +0 -1
- package/components/input-group/index.umd.cjs +0 -1
- package/components/layout/index.umd.cjs +0 -1
- package/components/list-nav/index.umd.cjs +0 -1
- package/components/list-view/index.umd.cjs +0 -1
- package/components/loading/index.umd.cjs +0 -8
- package/components/locale/index.umd.cjs +0 -1
- package/components/lookup/index.umd.cjs +0 -1
- package/components/mapping-editor/index.umd.cjs +0 -1
- package/components/message-box/index.umd.cjs +0 -1
- package/components/modal/index.umd.cjs +0 -1
- package/components/nav/index.umd.cjs +0 -3
- package/components/notify/index.umd.cjs +0 -1
- package/components/order/index.umd.cjs +0 -1
- package/components/page-footer/index.umd.cjs +0 -1
- package/components/page-header/index.umd.cjs +0 -1
- package/components/pagination/index.umd.cjs +0 -1
- package/components/popover/index.umd.cjs +0 -1
- package/components/progress/index.umd.cjs +0 -3
- package/components/property-editor/index.umd.cjs +0 -3
- package/components/property-panel/index.umd.cjs +0 -1
- package/components/radio-button/index.umd.cjs +0 -1
- package/components/radio-group/index.umd.cjs +0 -1
- package/components/rate/index.umd.cjs +0 -1
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout-editor/index.umd.cjs +0 -1
- package/components/response-toolbar/index.umd.cjs +0 -1
- package/components/schema-selector/index.umd.cjs +0 -8
- package/components/search-box/index.umd.cjs +0 -1
- package/components/section/index.umd.cjs +0 -1
- package/components/smoke-detector/index.umd.cjs +0 -1
- package/components/spacing-editor/index.umd.cjs +0 -1
- package/components/splitter/index.umd.cjs +0 -1
- package/components/step/index.umd.cjs +0 -1
- package/components/switch/index.umd.cjs +0 -1
- package/components/tabs/index.umd.cjs +0 -1
- package/components/tags/index.umd.cjs +0 -1
- package/components/text/index.umd.cjs +0 -1
- package/components/textarea/index.umd.cjs +0 -1
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/tooltip/index.umd.cjs +0 -1
- package/components/transfer/index.umd.cjs +0 -1
- package/components/tree-grid/index.umd.cjs +0 -1
- package/components/tree-view/index.umd.cjs +0 -1
- package/components/uploader/index.umd.cjs +0 -2
- package/components/verify-detail/index.umd.cjs +0 -1
- package/components/video/index.umd.cjs +0 -1
- package/components/weather/index.umd.cjs +0 -16
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { ref as p, computed as $, createVNode as l, Fragment as B, watch as X, withModifiers as te, withDirectives as ne, vModelText as le, defineComponent as G, createTextVNode as H, inject as se, onMounted as ae } from "vue";
|
|
2
2
|
import { cloneDeep as oe } from "lodash-es";
|
|
3
|
-
import { useIdentify as re, useHierarchy as ie, useGroupData as ce, usePagination as ue, useDataView as fe, useSelection as de, useEdit as pe, useVisualDataBound as ve, useVisualDataCell as he, useVisualDataRow as ge, useVisualGroupRow as me, useVisualSummaryRow as ye, useVisualData as
|
|
4
|
-
import { FCheckBox as q } from "
|
|
3
|
+
import { useIdentify as re, useHierarchy as ie, useGroupData as ce, usePagination as ue, useDataView as fe, useSelection as de, useEdit as pe, useVisualDataBound as ve, useVisualDataCell as he, useVisualDataRow as ge, useVisualGroupRow as me, useVisualSummaryRow as ye, useVisualData as Ce } from "../data-view/index.esm.js";
|
|
4
|
+
import { FCheckBox as q } from "../checkbox/index.esm.js";
|
|
5
5
|
const Q = {}, Y = {};
|
|
6
6
|
function z(t) {
|
|
7
|
-
const { properties: e, title: n } = t,
|
|
8
|
-
return
|
|
7
|
+
const { properties: e, title: n } = t, i = Object.keys(e).reduce((g, a) => (g[a] = e[a].type === "object" && e[a].properties ? z(e[a]) : oe(e[a].default), g), {});
|
|
8
|
+
return i.id = `${n}-${Date.now()}`, i;
|
|
9
9
|
}
|
|
10
10
|
function N(t, e = {}) {
|
|
11
11
|
const n = Q[t];
|
|
12
12
|
if (n) {
|
|
13
|
-
let
|
|
13
|
+
let i = z(n);
|
|
14
14
|
const g = Y[t];
|
|
15
|
-
return
|
|
15
|
+
return i = g ? g({ getSchemaByType: N }, i, e) : i, i;
|
|
16
16
|
}
|
|
17
17
|
return null;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Se(t, e) {
|
|
20
20
|
const n = z(e);
|
|
21
|
-
return Object.keys(t).reduce((
|
|
21
|
+
return Object.keys(t).reduce((i, g) => (i[g] && typeof i[g] == "object" ? Object.assign(i[g], t[g]) : i[g] = t[g], i), n), n;
|
|
22
22
|
}
|
|
23
23
|
function we(t, e) {
|
|
24
|
-
return Object.keys(t).filter((
|
|
24
|
+
return Object.keys(t).filter((i) => t[i] != null).reduce((i, g) => {
|
|
25
25
|
if (e.has(g)) {
|
|
26
26
|
const a = e.get(g);
|
|
27
27
|
if (typeof a == "string")
|
|
28
|
-
|
|
28
|
+
i[a] = t[g];
|
|
29
29
|
else {
|
|
30
30
|
const v = a(g, t[g], t);
|
|
31
|
-
Object.assign(
|
|
31
|
+
Object.assign(i, v);
|
|
32
32
|
}
|
|
33
33
|
} else
|
|
34
|
-
|
|
35
|
-
return
|
|
34
|
+
i[g] = t[g];
|
|
35
|
+
return i;
|
|
36
36
|
}, {});
|
|
37
37
|
}
|
|
38
38
|
function be(t, e, n = /* @__PURE__ */ new Map()) {
|
|
39
|
-
const
|
|
40
|
-
return we(
|
|
39
|
+
const i = Se(t, e);
|
|
40
|
+
return we(i, n);
|
|
41
41
|
}
|
|
42
42
|
function ke(t = {}) {
|
|
43
43
|
function e(d, u, o, r) {
|
|
@@ -57,11 +57,11 @@ function ke(t = {}) {
|
|
|
57
57
|
function n(d, u, o, r) {
|
|
58
58
|
return r[d] && r[d].propertyValue && String(r[d].propertyValue.value) === String(o);
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const i = /* @__PURE__ */ new Map([
|
|
61
61
|
["length", e],
|
|
62
62
|
["getProperty", n]
|
|
63
63
|
]);
|
|
64
|
-
Object.keys(t).reduce((d, u) => (d.set(u, t[u]), d),
|
|
64
|
+
Object.keys(t).reduce((d, u) => (d.set(u, t[u]), d), i);
|
|
65
65
|
function g(d, u) {
|
|
66
66
|
const o = d;
|
|
67
67
|
return typeof u == "number" ? [{ target: o, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: o, operator: "getProperty", param: d, value: !!u }] : typeof u == "object" ? Object.keys(u).map((r) => {
|
|
@@ -78,8 +78,8 @@ function ke(t = {}) {
|
|
|
78
78
|
}, []);
|
|
79
79
|
}
|
|
80
80
|
function v(d, u) {
|
|
81
|
-
if (
|
|
82
|
-
const o =
|
|
81
|
+
if (i.has(d.operator)) {
|
|
82
|
+
const o = i.get(d.operator);
|
|
83
83
|
return o && o(d.target, d.param, d.value, u) || !1;
|
|
84
84
|
}
|
|
85
85
|
return !1;
|
|
@@ -87,18 +87,18 @@ function ke(t = {}) {
|
|
|
87
87
|
function y(d, u) {
|
|
88
88
|
return a(d).reduce((b, w) => b && v(w, u), !0);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function c(d, u) {
|
|
91
91
|
const o = Object.keys(d), r = o.includes("allOf"), b = o.includes("anyOf"), w = r || b, D = (w ? d[w ? r ? "allOf" : "anyOf" : "allOf"] : [d]).map((I) => y(I, u));
|
|
92
92
|
return r ? !D.includes(!1) : D.includes(!0);
|
|
93
93
|
}
|
|
94
|
-
return { parseValueSchema:
|
|
94
|
+
return { parseValueSchema: c };
|
|
95
95
|
}
|
|
96
96
|
const Ve = {}, Me = {};
|
|
97
97
|
ke();
|
|
98
|
-
function Z(t, e, n = /* @__PURE__ */ new Map(),
|
|
99
|
-
return Q[e.title] = e, Y[e.title] =
|
|
100
|
-
const y = be(v, e, n),
|
|
101
|
-
return Object.assign(
|
|
98
|
+
function Z(t, e, n = /* @__PURE__ */ new Map(), i = (v, y, c) => y, g = {}, a = (v) => v) {
|
|
99
|
+
return Q[e.title] = e, Y[e.title] = i, Ve[e.title] = g, Me[e.title] = a, (v = {}) => {
|
|
100
|
+
const y = be(v, e, n), c = Object.keys(t).reduce((d, u) => (d[u] = t[u].default, d), {});
|
|
101
|
+
return Object.assign(c, y);
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
function K(t, e) {
|
|
@@ -379,7 +379,7 @@ function nt(t, e) {
|
|
|
379
379
|
v.push(y), y = a.nextNode();
|
|
380
380
|
return v;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function i(a, v) {
|
|
383
383
|
const y = document.createTreeWalker(a, NodeFilter.SHOW_TEXT);
|
|
384
384
|
return n(y).map((o) => ({ textNode: o, text: (o.textContent || "").toLocaleLowerCase() })).map(({ textNode: o, text: r }) => {
|
|
385
385
|
const b = [];
|
|
@@ -399,12 +399,12 @@ function nt(t, e) {
|
|
|
399
399
|
function g(a) {
|
|
400
400
|
if (!CSS.highlights || (CSS.highlights.clear(), !a || !e))
|
|
401
401
|
return;
|
|
402
|
-
const v =
|
|
402
|
+
const v = i(e.value, a.toLocaleLowerCase()), y = new Highlight(...v);
|
|
403
403
|
CSS.highlights.set("search-result", y);
|
|
404
404
|
}
|
|
405
405
|
return { search: g };
|
|
406
406
|
}
|
|
407
|
-
function W(t, e, n,
|
|
407
|
+
function W(t, e, n, i, g, a, v, y, c, d) {
|
|
408
408
|
const u = p(t.size), o = p(t.textField), r = p(t.titleField), b = p(t.multiSelect), w = p(t.disableField), {
|
|
409
409
|
onMouseenterItem: V,
|
|
410
410
|
onMouseoverItem: F,
|
|
@@ -417,26 +417,26 @@ function W(t, e, n, c, g, a, v, y, i, d) {
|
|
|
417
417
|
} = v, m = $(() => ({
|
|
418
418
|
margin: u.value === "small" ? "0.25rem 0" : "10px 0"
|
|
419
419
|
}));
|
|
420
|
-
function O(f,
|
|
420
|
+
function O(f, S, k) {
|
|
421
421
|
return f.checked = y.findIndexInSelectedItems(f) > -1, l("li", {
|
|
422
|
-
class: I(f,
|
|
423
|
-
id: M(f,
|
|
424
|
-
key: M(f,
|
|
425
|
-
onClick: (s) => T(s, f,
|
|
426
|
-
onMouseenter: (s) => V(s, f,
|
|
427
|
-
onMouseover: (s) => F(s, f,
|
|
428
|
-
onMouseout: (s) => D(s, f,
|
|
422
|
+
class: I(f, S),
|
|
423
|
+
id: M(f, S),
|
|
424
|
+
key: M(f, S),
|
|
425
|
+
onClick: (s) => T(s, f, S),
|
|
426
|
+
onMouseenter: (s) => V(s, f, S),
|
|
427
|
+
onMouseover: (s) => F(s, f, S),
|
|
428
|
+
onMouseout: (s) => D(s, f, S)
|
|
429
429
|
}, [b.value && l("div", {
|
|
430
430
|
class: "f-list-select",
|
|
431
431
|
onClick: (s) => s.stopPropagation()
|
|
432
432
|
}, [l(q, {
|
|
433
|
-
id: "list-" + M(f,
|
|
433
|
+
id: "list-" + M(f, S),
|
|
434
434
|
customClass: "listview-checkbox",
|
|
435
435
|
disabled: f[w.value],
|
|
436
436
|
checked: f.checked,
|
|
437
437
|
"onUpdate:checked": (s) => f.checked = s,
|
|
438
438
|
onChange: (s) => {
|
|
439
|
-
P(f,
|
|
439
|
+
P(f, S, !s.checked);
|
|
440
440
|
}
|
|
441
441
|
}, null)]), l("div", {
|
|
442
442
|
class: "f-list-content"
|
|
@@ -449,7 +449,7 @@ function W(t, e, n, c, g, a, v, y, i, d) {
|
|
|
449
449
|
renderItem: O
|
|
450
450
|
};
|
|
451
451
|
}
|
|
452
|
-
function lt(t, e, n,
|
|
452
|
+
function lt(t, e, n, i, g, a, v, y, c, d) {
|
|
453
453
|
const u = p(t.multiSelect), o = p(t.disableField), {
|
|
454
454
|
onMouseenterItem: r,
|
|
455
455
|
onMouseoverItem: b,
|
|
@@ -496,7 +496,7 @@ function lt(t, e, n, c, g, a, v, y, i, d) {
|
|
|
496
496
|
renderItem: P
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
|
-
function st(t, e, n,
|
|
499
|
+
function st(t, e, n, i, g, a, v, y, c, d) {
|
|
500
500
|
const u = p(t.multiSelect), o = p(t.disableField), {
|
|
501
501
|
onMouseenterItem: r,
|
|
502
502
|
onMouseoverItem: b,
|
|
@@ -511,21 +511,21 @@ function st(t, e, n, c, g, a, v, y, i, d) {
|
|
|
511
511
|
dragenter: P,
|
|
512
512
|
dragover: T,
|
|
513
513
|
dragend: m
|
|
514
|
-
} =
|
|
514
|
+
} = i, {
|
|
515
515
|
removeItem: O
|
|
516
|
-
} =
|
|
516
|
+
} = c, f = $(() => ({
|
|
517
517
|
margin: u.value ? "10px 0" : "10px 0px 10px 14px"
|
|
518
518
|
}));
|
|
519
|
-
function
|
|
519
|
+
function S(h) {
|
|
520
520
|
return l("div", {
|
|
521
521
|
style: f.value
|
|
522
522
|
}, [h.raw.name]);
|
|
523
523
|
}
|
|
524
524
|
function k() {
|
|
525
|
-
return e.slots.itemContent ? e.slots.itemContent :
|
|
525
|
+
return e.slots.itemContent ? e.slots.itemContent : S;
|
|
526
526
|
}
|
|
527
527
|
const s = k();
|
|
528
|
-
function
|
|
528
|
+
function C(h, j, E) {
|
|
529
529
|
return l("li", {
|
|
530
530
|
class: F(h, j),
|
|
531
531
|
id: V(h, j),
|
|
@@ -565,10 +565,10 @@ function st(t, e, n, c, g, a, v, y, i, d) {
|
|
|
565
565
|
}, null)])])]);
|
|
566
566
|
}
|
|
567
567
|
return {
|
|
568
|
-
renderItem:
|
|
568
|
+
renderItem: C
|
|
569
569
|
};
|
|
570
570
|
}
|
|
571
|
-
function at(t, e, n,
|
|
571
|
+
function at(t, e, n, i, g, a, v, y, c, d) {
|
|
572
572
|
var V;
|
|
573
573
|
const u = p(((V = t.group) == null ? void 0 : V.groupFields) || []), {
|
|
574
574
|
collpaseGroupIconClass: o
|
|
@@ -595,21 +595,21 @@ function at(t, e, n, c, g, a, v, y, i, d) {
|
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
597
|
function ot() {
|
|
598
|
-
const t = p(-1), e = p(""), n = p(-1),
|
|
598
|
+
const t = p(-1), e = p(""), n = p(-1), i = p(!1);
|
|
599
599
|
function g(d, u, o) {
|
|
600
600
|
n.value = o;
|
|
601
601
|
}
|
|
602
602
|
function a(d, u, o) {
|
|
603
|
-
|
|
603
|
+
i.value || (n.value = o);
|
|
604
604
|
}
|
|
605
605
|
function v(d, u, o) {
|
|
606
606
|
n.value = -1;
|
|
607
607
|
}
|
|
608
608
|
function y() {
|
|
609
|
-
|
|
609
|
+
i.value = !0;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
|
|
611
|
+
function c() {
|
|
612
|
+
i.value = !1;
|
|
613
613
|
}
|
|
614
614
|
return {
|
|
615
615
|
activeIndex: t,
|
|
@@ -618,12 +618,12 @@ function ot() {
|
|
|
618
618
|
onMouseenterItem: g,
|
|
619
619
|
onMouseoverItem: a,
|
|
620
620
|
onMouseoutItem: v,
|
|
621
|
-
resumeHover:
|
|
621
|
+
resumeHover: c,
|
|
622
622
|
suspendHover: y
|
|
623
623
|
};
|
|
624
624
|
}
|
|
625
|
-
function rt(t, e, n,
|
|
626
|
-
const g = p(t.idField), { dataView: a } = n, v = p(-1), y = p(!1), { activeIndex:
|
|
625
|
+
function rt(t, e, n, i) {
|
|
626
|
+
const g = p(t.idField), { dataView: a } = n, v = p(-1), y = p(!1), { activeIndex: c, focusedItemId: d, hoverIndex: u, resumeHover: o, suspendHover: r } = i;
|
|
627
627
|
function b(D, M, I) {
|
|
628
628
|
D.stopPropagation(), r(), M && setTimeout(() => {
|
|
629
629
|
v.value = I, y.value = !0, M.moving = !0;
|
|
@@ -641,7 +641,7 @@ function rt(t, e, n, c) {
|
|
|
641
641
|
function F(D, M) {
|
|
642
642
|
M && (M.moving = !1), a.value.forEach((I, P) => {
|
|
643
643
|
I.__fv_index__ = P;
|
|
644
|
-
}), y.value = !1, o(), u.value = M.raw.__fv_index__,
|
|
644
|
+
}), y.value = !1, o(), u.value = M.raw.__fv_index__, c.value = M.raw.__fv_index__, d.value = M.raw[g.value], e.emit("change", a.value), e.emit("activeChange", M);
|
|
645
645
|
}
|
|
646
646
|
return {
|
|
647
647
|
dragstart: b,
|
|
@@ -652,45 +652,45 @@ function rt(t, e, n, c) {
|
|
|
652
652
|
};
|
|
653
653
|
}
|
|
654
654
|
function it(t, e, n) {
|
|
655
|
-
const { dataView:
|
|
655
|
+
const { dataView: i } = n;
|
|
656
656
|
function g(a) {
|
|
657
|
-
if (a > -1 && a <
|
|
658
|
-
const v =
|
|
657
|
+
if (a > -1 && a < i.value.length) {
|
|
658
|
+
const v = i.value.splice(a, 1);
|
|
659
659
|
e.emit("removeItem", v[0]);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
return { removeItem: g };
|
|
663
663
|
}
|
|
664
|
-
function ct(t, e, n,
|
|
665
|
-
const v = p(t.idField), y = p(t.disableField),
|
|
664
|
+
function ct(t, e, n, i, g, a) {
|
|
665
|
+
const v = p(t.idField), y = p(t.disableField), c = p(t.draggable), d = p(t.itemClass), u = p(t.selection.multiSelect ?? !1), o = p(t.selection.multiSelectMode);
|
|
666
666
|
p(!0);
|
|
667
|
-
const { isDragging: r } =
|
|
668
|
-
function P(s,
|
|
667
|
+
const { isDragging: r } = i, { activeIndex: b, focusedItemId: w, hoverIndex: V } = g, { clearSelection: F, getSelectedItems: D, toggleSelectItem: M } = a, I = p(D());
|
|
668
|
+
function P(s, C) {
|
|
669
669
|
const h = {
|
|
670
670
|
"f-list-view-group-item": !0,
|
|
671
|
-
"f-list-view-draggable-item":
|
|
671
|
+
"f-list-view-draggable-item": c.value,
|
|
672
672
|
"f-un-click": !s.checked,
|
|
673
673
|
"f-un-select": !!s.raw[y.value],
|
|
674
674
|
"f-listview-active": s.raw.__fv_index__ === b.value,
|
|
675
|
-
"f-listview-hover": !r.value &&
|
|
675
|
+
"f-listview-hover": !r.value && C === V.value,
|
|
676
676
|
moving: !!s.moving
|
|
677
677
|
};
|
|
678
678
|
return d.value.split(" ").reduce((E, R) => (E[R] = !0, E), h), h;
|
|
679
679
|
}
|
|
680
|
-
function T(s,
|
|
680
|
+
function T(s, C) {
|
|
681
681
|
return s.raw[v.value] || "";
|
|
682
682
|
}
|
|
683
683
|
const m = $(() => !u.value);
|
|
684
|
-
function O(s,
|
|
684
|
+
function O(s, C, h) {
|
|
685
685
|
s.checked = h, !s.raw[y.value] && (m.value && (w.value = s.raw[v.value]), M(s));
|
|
686
686
|
}
|
|
687
|
-
const f = $(() => u.value && o.value === "OnCheckClearByClick"),
|
|
688
|
-
function k(s,
|
|
689
|
-
if (
|
|
687
|
+
const f = $(() => u.value && o.value === "OnCheckClearByClick"), S = $(() => !u.value || u.value && (o.value === "OnCheckAndClick" || o.value === "OnClick"));
|
|
688
|
+
function k(s, C, h) {
|
|
689
|
+
if (C.raw[y.value]) {
|
|
690
690
|
s.preventDefault(), s.stopPropagation();
|
|
691
691
|
return;
|
|
692
692
|
}
|
|
693
|
-
w.value =
|
|
693
|
+
w.value = C.raw[v.value], b.value = h, f.value && F(n.value), S.value && (M(C), I.value = D()), e.emit("clickItem", { data: I.value, index: h }), e.emit("activeChange", I.value);
|
|
694
694
|
}
|
|
695
695
|
return {
|
|
696
696
|
getKey: T,
|
|
@@ -699,11 +699,11 @@ function ct(t, e, n, c, g, a) {
|
|
|
699
699
|
onClickItem: k
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
|
-
function ut(t, e, n,
|
|
703
|
-
const y = p(t.view),
|
|
702
|
+
function ut(t, e, n, i, g, a, v) {
|
|
703
|
+
const y = p(t.view), c = p(t.view === "CardView"), d = p({}), u = p("暂无数据"), o = ot(), r = rt(t, e, i, o), b = it(t, e, i), w = ct(t, e, n, r, o, a), V = $(() => ({
|
|
704
704
|
"f-list-view-group": !0,
|
|
705
|
-
"d-flex":
|
|
706
|
-
"flex-wrap":
|
|
705
|
+
"d-flex": c.value,
|
|
706
|
+
"flex-wrap": c.value
|
|
707
707
|
})), F = $(() => !!n.value && n.value.length > 0), D = $(() => n.value.length === 0), M = $(() => D.value && !e.slots.empty);
|
|
708
708
|
function I() {
|
|
709
709
|
return y.value === "SingleView" ? W : y.value === "DraggableView" ? st : (y.value === "ContentView" || y.value === "CardView") && e.slots.content ? lt : W;
|
|
@@ -714,9 +714,9 @@ function ut(t, e, n, c, g, a, v) {
|
|
|
714
714
|
renderItem: m
|
|
715
715
|
} = at(t, e, n, r, g, o, w, a, b, v), O = [T, m];
|
|
716
716
|
function f() {
|
|
717
|
-
return n.value.filter((s) => s.visible !== !1).map((s,
|
|
717
|
+
return n.value.filter((s) => s.visible !== !1).map((s, C) => O[s.type](s, C, d));
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function S() {
|
|
720
720
|
return l("div", {
|
|
721
721
|
class: "f-list-view-emptydata"
|
|
722
722
|
}, [l("p", {
|
|
@@ -727,25 +727,25 @@ function ut(t, e, n, c, g, a, v) {
|
|
|
727
727
|
return l("ul", {
|
|
728
728
|
class: V.value,
|
|
729
729
|
style: "list-style: none;"
|
|
730
|
-
}, [F.value && f(), M.value &&
|
|
730
|
+
}, [F.value && f(), M.value && S(), e.slots.empty && e.slots.empty()]);
|
|
731
731
|
}
|
|
732
732
|
return {
|
|
733
733
|
renderListArea: k
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
736
|
function ft(t, e, n) {
|
|
737
|
-
function
|
|
737
|
+
function i() {
|
|
738
738
|
return e.slots.header && l("div", {
|
|
739
739
|
class: "f-list-view-header"
|
|
740
740
|
}, [e.slots.header()]);
|
|
741
741
|
}
|
|
742
742
|
return {
|
|
743
|
-
renderHeader:
|
|
743
|
+
renderHeader: i
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
746
|
function J(t, e, n) {
|
|
747
|
-
const
|
|
748
|
-
function
|
|
747
|
+
const i = p(t.headerClass), g = p(t.placeholder), a = p(""), v = $(() => !a.value), y = $(() => !!a.value);
|
|
748
|
+
function c(r) {
|
|
749
749
|
a.value = "";
|
|
750
750
|
}
|
|
751
751
|
X(a, (r) => {
|
|
@@ -756,7 +756,7 @@ function J(t, e, n) {
|
|
|
756
756
|
"form-group": !0,
|
|
757
757
|
"farris-form-group": !0
|
|
758
758
|
};
|
|
759
|
-
return
|
|
759
|
+
return i.value && i.value.split(" ").reduce((w, V) => (w[V] = !0, w), r), r;
|
|
760
760
|
});
|
|
761
761
|
function u(r) {
|
|
762
762
|
}
|
|
@@ -783,7 +783,7 @@ function J(t, e, n) {
|
|
|
783
783
|
class: "input-group-append"
|
|
784
784
|
}, [y.value && l("span", {
|
|
785
785
|
class: "input-group-text input-group-clear",
|
|
786
|
-
onClick: (r) =>
|
|
786
|
+
onClick: (r) => c()
|
|
787
787
|
}, [l("i", {
|
|
788
788
|
class: "f-icon f-icon-close-circle"
|
|
789
789
|
}, null)]), v.value && l("span", {
|
|
@@ -801,7 +801,7 @@ const L = /* @__PURE__ */ G({
|
|
|
801
801
|
props: ee,
|
|
802
802
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
803
803
|
setup(t, e) {
|
|
804
|
-
const n = p(),
|
|
804
|
+
const n = p(), i = p(!0), g = p(!1), a = p([]), v = 0, y = p(t.columns), c = re(t), d = ie(t), u = ce(t, c), o = ue(t), r = fe(t, /* @__PURE__ */ new Map(), d, c, o), b = de(t, r, c, a, e), w = nt(t, n), V = $(() => r.dataView.value.length), F = pe(t, c), D = ve(), M = he(t, {}, D), I = ge(t, F, d, c, D, M), P = me(t, c, M, I), T = ye(t, c, M, I), m = Ce(t, y, r, V, v, I, P, T), {
|
|
805
805
|
getVisualData: O
|
|
806
806
|
} = m;
|
|
807
807
|
a.value = O(0, V.value + v - 1);
|
|
@@ -811,12 +811,12 @@ const L = /* @__PURE__ */ G({
|
|
|
811
811
|
"f-list-view-multiple": t.multiSelect
|
|
812
812
|
};
|
|
813
813
|
return t.size !== "default" && (A[`${t.size}-item`] = !0), A;
|
|
814
|
-
}),
|
|
814
|
+
}), S = $(() => !!e.slots.footer || i.value);
|
|
815
815
|
function k() {
|
|
816
816
|
return t.header === "SearchBar" ? J : t.header === "ContentHeader" ? ft : J;
|
|
817
817
|
}
|
|
818
818
|
const s = k(), {
|
|
819
|
-
renderHeader:
|
|
819
|
+
renderHeader: C
|
|
820
820
|
} = s(t, e, w), {
|
|
821
821
|
renderListArea: h
|
|
822
822
|
} = ut(t, e, a, r, u, b, m);
|
|
@@ -836,7 +836,7 @@ const L = /* @__PURE__ */ G({
|
|
|
836
836
|
return () => l("div", {
|
|
837
837
|
class: f.value,
|
|
838
838
|
onClick: R
|
|
839
|
-
}, [
|
|
839
|
+
}, [C(), l("div", {
|
|
840
840
|
ref: n,
|
|
841
841
|
class: "f-list-view-content",
|
|
842
842
|
onMouseover: () => {
|
|
@@ -845,7 +845,7 @@ const L = /* @__PURE__ */ G({
|
|
|
845
845
|
onMouseleave: () => {
|
|
846
846
|
g.value = !1;
|
|
847
847
|
}
|
|
848
|
-
}, [h()]),
|
|
848
|
+
}, [h()]), S.value && l("div", {
|
|
849
849
|
class: "f-list-view-footer"
|
|
850
850
|
}, [e.slots.footer && e.slots.footer()])]);
|
|
851
851
|
}
|
|
@@ -854,20 +854,20 @@ const L = /* @__PURE__ */ G({
|
|
|
854
854
|
props: U,
|
|
855
855
|
emits: ["change", "activeChange"],
|
|
856
856
|
setup(t, e) {
|
|
857
|
-
const n = p(t.identifyField),
|
|
857
|
+
const n = p(t.identifyField), i = p("已选:"), g = p("项数据"), a = p(t.displayType), v = p(!1), y = p(t.dataSource), c = p(t.selections || []), d = $(() => c.value.map((S) => S[n.value])), u = /* @__PURE__ */ new Map(), o = p();
|
|
858
858
|
function r() {
|
|
859
|
-
const
|
|
860
|
-
k.length && k.reduce((
|
|
859
|
+
const S = /* @__PURE__ */ new Map(), k = t.selectionValues || [];
|
|
860
|
+
k.length && k.reduce((C, h) => (C.set(h, !0), C), S);
|
|
861
861
|
const s = t.selections || [];
|
|
862
|
-
s.length && (
|
|
863
|
-
const h =
|
|
864
|
-
|
|
862
|
+
s.length && (S.clear(), s.reduce((C, h) => (C.set(h[n.value], !0), C), S)), c.value.length || (c.value = y.value.filter((C) => S.has(C[n.value])).map((C) => Object.assign({}, C))), y.value.forEach((C) => {
|
|
863
|
+
const h = C[n.value], j = S.has(h);
|
|
864
|
+
C.checked = j, j && u.set(h, C);
|
|
865
865
|
});
|
|
866
866
|
}
|
|
867
867
|
r();
|
|
868
868
|
const b = $(() => a.value === "List"), w = $(() => a.value === "Tree");
|
|
869
|
-
function V(
|
|
870
|
-
|
|
869
|
+
function V(S) {
|
|
870
|
+
c.value = S.map((k) => Object.assign({}, k)), e.emit("change", c.value);
|
|
871
871
|
}
|
|
872
872
|
function F() {
|
|
873
873
|
return l(L, {
|
|
@@ -903,29 +903,29 @@ const L = /* @__PURE__ */ G({
|
|
|
903
903
|
class: "container columns-box d-flex f-utils-fill"
|
|
904
904
|
}, [b.value && F(), w.value && D()])])]);
|
|
905
905
|
}
|
|
906
|
-
function I(
|
|
907
|
-
const k =
|
|
906
|
+
function I(S) {
|
|
907
|
+
const k = S[n.value];
|
|
908
908
|
if (k !== null || k !== void 0) {
|
|
909
|
-
|
|
909
|
+
c.value = c.value.filter((C) => C[n.value] !== k);
|
|
910
910
|
const s = u.get(k);
|
|
911
|
-
s && (s.checked = !1, u.delete(k)), e.emit("change",
|
|
911
|
+
s && (s.checked = !1, u.delete(k)), e.emit("change", c.value);
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
X(
|
|
915
|
-
o.value.updateDataSource(
|
|
914
|
+
X(c, (S) => {
|
|
915
|
+
o.value.updateDataSource(S);
|
|
916
916
|
});
|
|
917
|
-
function P(
|
|
917
|
+
function P(S) {
|
|
918
918
|
const k = /* @__PURE__ */ new Map();
|
|
919
|
-
|
|
919
|
+
c.value.reduce((s, C) => (s.set(C[n.value], C), s), k), c.value = S.map((s) => k.get(s[n.value])), e.emit("change", c.value);
|
|
920
920
|
}
|
|
921
|
-
function T(
|
|
922
|
-
e.emit("activeChange",
|
|
921
|
+
function T(S) {
|
|
922
|
+
e.emit("activeChange", S);
|
|
923
923
|
}
|
|
924
924
|
function m() {
|
|
925
925
|
return l(L, {
|
|
926
926
|
ref: o,
|
|
927
927
|
style: "flex:1",
|
|
928
|
-
data:
|
|
928
|
+
data: c.value,
|
|
929
929
|
draggable: !0,
|
|
930
930
|
view: "DraggableView",
|
|
931
931
|
"keep-order": !0,
|
|
@@ -943,9 +943,9 @@ const L = /* @__PURE__ */ G({
|
|
|
943
943
|
class: "selection-pane-title"
|
|
944
944
|
}, [l("span", {
|
|
945
945
|
class: "selection-title"
|
|
946
|
-
}, [
|
|
946
|
+
}, [i.value]), l("span", {
|
|
947
947
|
class: "selection-count"
|
|
948
|
-
}, [
|
|
948
|
+
}, [c.value && c.value.length]), l("span", {
|
|
949
949
|
class: "selection-item-title"
|
|
950
950
|
}, [g.value])]), l("div", {
|
|
951
951
|
class: "container columns-box f-utils-fill d-flex"
|
|
@@ -964,13 +964,13 @@ const L = /* @__PURE__ */ G({
|
|
|
964
964
|
});
|
|
965
965
|
function dt(t, e, n) {
|
|
966
966
|
var T;
|
|
967
|
-
function
|
|
967
|
+
function i() {
|
|
968
968
|
}
|
|
969
969
|
const g = "", a = "", v = p();
|
|
970
970
|
function y() {
|
|
971
971
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function c() {
|
|
974
974
|
return !1;
|
|
975
975
|
}
|
|
976
976
|
function d() {
|
|
@@ -1004,15 +1004,15 @@ function dt(t, e, n) {
|
|
|
1004
1004
|
function D(m) {
|
|
1005
1005
|
const { componentType: O } = m;
|
|
1006
1006
|
let f = N(O, m);
|
|
1007
|
-
const
|
|
1008
|
-
return f && !f.id && f.type === O && (f.id = `${
|
|
1007
|
+
const S = O.toLowerCase().replace("-", "_");
|
|
1008
|
+
return f && !f.id && f.type === O && (f.id = `${S}_${Math.random().toString().slice(2, 6)}`), f;
|
|
1009
1009
|
}
|
|
1010
1010
|
function M(m, O) {
|
|
1011
|
-
const f = String(m.getAttribute("data-controltype")),
|
|
1011
|
+
const f = String(m.getAttribute("data-controltype")), S = m.getAttribute("data-feature"), k = S ? JSON.parse(S) : {};
|
|
1012
1012
|
k.parentComponentInstance = v.value;
|
|
1013
1013
|
let s = N(f, k);
|
|
1014
|
-
const
|
|
1015
|
-
return s && !s.id && s.type === f && (s.id = `${
|
|
1014
|
+
const C = f.toLowerCase().replace("-", "_");
|
|
1015
|
+
return s && !s.id && s.type === f && (s.id = `${C}_${Math.random().toString().slice(2, 6)}`), s;
|
|
1016
1016
|
}
|
|
1017
1017
|
function I(m) {
|
|
1018
1018
|
}
|
|
@@ -1020,7 +1020,7 @@ function dt(t, e, n) {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
return v.value = {
|
|
1022
1022
|
canMove: y(),
|
|
1023
|
-
canSelectParent:
|
|
1023
|
+
canSelectParent: c(),
|
|
1024
1024
|
canDelete: d(),
|
|
1025
1025
|
canNested: !u(),
|
|
1026
1026
|
contents: e == null ? void 0 : e.schema.contents,
|
|
@@ -1039,7 +1039,7 @@ function dt(t, e, n) {
|
|
|
1039
1039
|
onAcceptNewChildElement: M,
|
|
1040
1040
|
onChildElementMovedOut: I,
|
|
1041
1041
|
addNewChildComponentSchema: D,
|
|
1042
|
-
updateDragAndDropRules:
|
|
1042
|
+
updateDragAndDropRules: i,
|
|
1043
1043
|
triggerBelongedComponentToMoveWhenMoved: p(!1),
|
|
1044
1044
|
triggerBelongedComponentToDeleteWhenDeleted: p(!1)
|
|
1045
1045
|
}, v;
|
|
@@ -1049,12 +1049,12 @@ const pt = /* @__PURE__ */ G({
|
|
|
1049
1049
|
props: U,
|
|
1050
1050
|
emits: ["change"],
|
|
1051
1051
|
setup(t, e) {
|
|
1052
|
-
const n = p(t.identifyField),
|
|
1052
|
+
const n = p(t.identifyField), i = p("已选:"), g = p("项数据"), a = p(t.displayType), v = p(!1), y = p(t.dataSource), c = p(t.selections || []), d = $(() => c.value.map((k) => k[n.value])), u = /* @__PURE__ */ new Map();
|
|
1053
1053
|
function o() {
|
|
1054
1054
|
const k = /* @__PURE__ */ new Map(), s = t.selectionValues || [];
|
|
1055
1055
|
s.length && s.reduce((h, j) => (h.set(j, !0), h), k);
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1056
|
+
const C = t.selections || [];
|
|
1057
|
+
C.length && (k.clear(), C.reduce((h, j) => (h.set(j[n.value], !0), h), k)), c.value.length || (c.value = y.value.filter((h) => k.has(h[n.value])).map((h) => Object.assign({}, h))), y.value.forEach((h) => {
|
|
1058
1058
|
const j = h[n.value], E = k.has(j);
|
|
1059
1059
|
h.checked = E, E && u.set(j, h);
|
|
1060
1060
|
});
|
|
@@ -1062,7 +1062,7 @@ const pt = /* @__PURE__ */ G({
|
|
|
1062
1062
|
o();
|
|
1063
1063
|
const r = $(() => a.value === "List"), b = $(() => a.value === "Tree");
|
|
1064
1064
|
function w(k) {
|
|
1065
|
-
|
|
1065
|
+
c.value = k.map((s) => Object.assign({}, s)), e.emit("change", c.value);
|
|
1066
1066
|
}
|
|
1067
1067
|
function V() {
|
|
1068
1068
|
return l(L, {
|
|
@@ -1093,19 +1093,19 @@ const pt = /* @__PURE__ */ G({
|
|
|
1093
1093
|
function M(k) {
|
|
1094
1094
|
const s = k[n.value];
|
|
1095
1095
|
if (s !== null || s !== void 0) {
|
|
1096
|
-
|
|
1097
|
-
const
|
|
1098
|
-
|
|
1096
|
+
c.value = c.value.filter((h) => h[n.value] !== s);
|
|
1097
|
+
const C = u.get(s);
|
|
1098
|
+
C && (C.checked = !1, u.delete(s)), e.emit("change", c.value);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
1101
|
function I(k) {
|
|
1102
1102
|
const s = /* @__PURE__ */ new Map();
|
|
1103
|
-
|
|
1103
|
+
c.value.reduce((C, h) => (C.set(h[n.value], h), C), s), c.value = k.map((C) => s.get(C[n.value])), e.emit("change", c.value);
|
|
1104
1104
|
}
|
|
1105
1105
|
function P() {
|
|
1106
1106
|
return l(L, {
|
|
1107
1107
|
style: "flex:1",
|
|
1108
|
-
data:
|
|
1108
|
+
data: c.value,
|
|
1109
1109
|
draggable: !0,
|
|
1110
1110
|
view: "DraggableView",
|
|
1111
1111
|
"keep-order": !0,
|
|
@@ -1124,9 +1124,9 @@ const pt = /* @__PURE__ */ G({
|
|
|
1124
1124
|
class: "selection-pane-title"
|
|
1125
1125
|
}, [l("span", {
|
|
1126
1126
|
class: "selection-title"
|
|
1127
|
-
}, [
|
|
1127
|
+
}, [i.value]), l("span", {
|
|
1128
1128
|
class: "selection-count"
|
|
1129
|
-
}, [
|
|
1129
|
+
}, [c.value && c.value.length]), l("span", {
|
|
1130
1130
|
class: "selection-item-title"
|
|
1131
1131
|
}, [g.value])]), l("div", {
|
|
1132
1132
|
class: "container columns-box f-utils-fill d-flex"
|
|
@@ -1136,10 +1136,10 @@ const pt = /* @__PURE__ */ G({
|
|
|
1136
1136
|
transfer: !0,
|
|
1137
1137
|
row: !0,
|
|
1138
1138
|
"f-utils-fill": v.value
|
|
1139
|
-
})), O = p(), f = se("design-item-context"),
|
|
1139
|
+
})), O = p(), f = se("design-item-context"), S = dt(O, f);
|
|
1140
1140
|
return ae(() => {
|
|
1141
|
-
O.value.componentInstance =
|
|
1142
|
-
}), e.expose(
|
|
1141
|
+
O.value.componentInstance = S;
|
|
1142
|
+
}), e.expose(S.value), () => l("div", {
|
|
1143
1143
|
ref: O,
|
|
1144
1144
|
class: m.value,
|
|
1145
1145
|
style: "height:480px"
|
|
@@ -1157,10 +1157,10 @@ _.register = (t, e, n) => {
|
|
|
1157
1157
|
_.registerDesigner = (t, e, n) => {
|
|
1158
1158
|
t.transfer = pt, e.transfer = x;
|
|
1159
1159
|
};
|
|
1160
|
-
const
|
|
1160
|
+
const Ct = vt(_);
|
|
1161
1161
|
export {
|
|
1162
1162
|
_ as FTransfer,
|
|
1163
|
-
|
|
1163
|
+
Ct as default,
|
|
1164
1164
|
x as propsResolver,
|
|
1165
1165
|
U as transferProps
|
|
1166
1166
|
};
|