@farris/ui-vue 1.2.5 → 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/accordion/package.json +1 -1
- package/components/avatar/index.esm.js +122 -131
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.css +1 -0
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +216 -223
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +201 -181
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +340 -107
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +36 -29
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +341 -338
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +9 -13
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
- package/components/data-grid/index.esm.js +3415 -3295
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2719 -2717
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +31 -40
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +23 -20
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/index.esm.js +86 -86
- package/components/dropdown/index.umd.cjs +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +578 -584
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/index.esm.js +56 -47
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +287 -278
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.css +1 -0
- package/components/external-container/index.esm.js +1923 -1908
- package/components/external-container/index.umd.cjs +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.css +1 -0
- package/components/field-selector/index.esm.js +3719 -3604
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/{style.css → index.css} +1 -1
- package/components/filter-bar/index.esm.js +483 -470
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.esm.js +37 -34
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/index.esm.js +258 -267
- package/components/input-group/index.umd.cjs +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +1452 -1450
- package/components/list-view/index.umd.cjs +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/index.css +1 -0
- package/components/lookup/index.esm.js +4860 -4657
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.css +1 -0
- package/components/mapping-editor/index.esm.js +4411 -4259
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/message-box/index.css +1 -0
- package/components/message-box/index.esm.js +397 -386
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.css +1 -0
- package/components/modal/index.esm.js +308 -297
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +763 -741
- package/components/order/index.umd.cjs +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/index.esm.js +948 -945
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +485 -466
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +437 -426
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/index.esm.js +98 -107
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/{style.css → index.css} +1 -1
- package/components/response-layout-editor/index.esm.js +840 -800
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/index.esm.js +757 -760
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.css +1 -0
- package/components/schema-selector/index.esm.js +3659 -3432
- package/components/schema-selector/index.umd.cjs +8 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +21 -14
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/index.esm.js +126 -135
- package/components/switch/index.umd.cjs +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.esm.js +1400 -1379
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +97 -106
- package/components/textarea/index.umd.cjs +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +393 -402
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/index.esm.js +124 -122
- package/components/transfer/index.umd.cjs +1 -1
- package/components/transfer/package.json +1 -1
- package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
- package/components/tree-grid/index.esm.js +3531 -3412
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +2046 -2044
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/farris.all.esm.js +12370 -11917
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- 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/combo-tree/src/combo-tree.props.d.ts +4 -0
- package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
- package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
- package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
- package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -5
- package/types/data-grid/src/data-grid.component.d.ts +2 -2
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
- package/types/designer-canvas/src/composition/types.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/converter/pagination.converter.d.ts +6 -0
- package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +7 -3
- package/types/lookup/src/property-config/lookup.property-config.d.ts +31 -27
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/page-header/src/page-header.props.d.ts +7 -0
- package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +2 -16
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
- package/types/response-toolbar/index.d.ts +9 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
- package/types/schema-selector/src/composition/types.d.ts +3 -1
- package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
- package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
- package/types/tabs/src/tabs.props.d.ts +8 -0
- package/components/button-edit/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/lookup/style.css +0 -1
- package/components/mapping-editor/style.css +0 -1
- package/components/message-box/style.css +0 -1
- package/components/modal/style.css +0 -1
- package/components/schema-selector/style.css +0 -1
- package/components/tabs/style.css +0 -1
- package/components/time-picker/style.css +0 -1
- package/style.css +0 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
- /package/components/border-editor/{style.css → index.css} +0 -0
- /package/components/checkbox/{style.css → index.css} +0 -0
- /package/components/date-picker/{style.css → index.css} +0 -0
- /package/components/designer-canvas/{style.css → index.css} +0 -0
- /package/components/designer-outline/{style.css → index.css} +0 -0
- /package/components/designer-toolbox/{style.css → index.css} +0 -0
- /package/components/discussion-editor/{style.css → index.css} +0 -0
- /package/components/discussion-list/{style.css → index.css} +0 -0
- /package/components/drawer/{style.css → index.css} +0 -0
- /package/components/events-editor/{style.css → index.css} +0 -0
- /package/components/flow-canvas/{style.css → index.css} +0 -0
- /package/components/list-view/{style.css → index.css} +0 -0
- /package/components/order/{style.css → index.css} +0 -0
- /package/components/property-editor/{style.css → index.css} +0 -0
- /package/components/property-panel/{style.css → index.css} +0 -0
- /package/components/radio-button/{style.css → index.css} +0 -0
- /package/components/radio-group/{style.css → index.css} +0 -0
- /package/components/smoke-detector/{style.css → index.css} +0 -0
- /package/components/spacing-editor/{style.css → index.css} +0 -0
- /package/components/splitter/{style.css → index.css} +0 -0
- /package/components/switch/{style.css → index.css} +0 -0
- /package/components/transfer/{style.css → index.css} +0 -0
- /package/components/uploader/{style.css → index.css} +0 -0
- /package/components/weather/{style.css → index.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
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 Se } from "@farris/ui-vue/components/data-view";
|
|
4
4
|
import { FCheckBox as q } from "@farris/ui-vue/components/checkbox";
|
|
5
5
|
const Q = {}, Y = {};
|
|
6
6
|
function z(t) {
|
|
@@ -16,7 +16,7 @@ function N(t, e = {}) {
|
|
|
16
16
|
}
|
|
17
17
|
return null;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Ce(t, e) {
|
|
20
20
|
const n = z(e);
|
|
21
21
|
return Object.keys(t).reduce((c, g) => (c[g] = t[g], c), n), n;
|
|
22
22
|
}
|
|
@@ -36,7 +36,7 @@ function we(t, e) {
|
|
|
36
36
|
}, {});
|
|
37
37
|
}
|
|
38
38
|
function be(t, e, n = /* @__PURE__ */ new Map()) {
|
|
39
|
-
const c =
|
|
39
|
+
const c = Ce(t, e);
|
|
40
40
|
return we(c, n);
|
|
41
41
|
}
|
|
42
42
|
function ke(t = {}) {
|
|
@@ -88,8 +88,8 @@ function ke(t = {}) {
|
|
|
88
88
|
return a(d).reduce((b, w) => b && v(w, u), !0);
|
|
89
89
|
}
|
|
90
90
|
function i(d, u) {
|
|
91
|
-
const o = Object.keys(d), r = o.includes("allOf"), b = o.includes("anyOf"), w = r || b,
|
|
92
|
-
return r ? !
|
|
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
|
+
return r ? !D.includes(!1) : D.includes(!0);
|
|
93
93
|
}
|
|
94
94
|
return { parseValueSchema: i };
|
|
95
95
|
}
|
|
@@ -104,10 +104,10 @@ function Z(t, e, n = /* @__PURE__ */ new Map(), c = (v, y, i) => y, g = {}, a =
|
|
|
104
104
|
function K(t, e) {
|
|
105
105
|
return { customClass: e.class, customStyle: e.style };
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const De = /* @__PURE__ */ new Map([
|
|
108
108
|
["appearance", K]
|
|
109
109
|
]);
|
|
110
|
-
function
|
|
110
|
+
function Te(t, e, n) {
|
|
111
111
|
return e;
|
|
112
112
|
}
|
|
113
113
|
const Oe = "transfer", Fe = "A Farris Component", Ie = "object", je = {
|
|
@@ -222,7 +222,7 @@ const Oe = "transfer", Fe = "A Farris Component", Ie = "object", je = {
|
|
|
222
222
|
placeholder: { type: String, default: "" },
|
|
223
223
|
selections: { type: Array, default: [] },
|
|
224
224
|
selectionValues: { type: Array, default: [] }
|
|
225
|
-
}, x = Z(U, Ne,
|
|
225
|
+
}, x = Z(U, Ne, De, Te, Re), Be = /* @__PURE__ */ new Map([
|
|
226
226
|
["appearance", K]
|
|
227
227
|
]);
|
|
228
228
|
function Ge(t, e, n) {
|
|
@@ -366,7 +366,9 @@ const qe = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-
|
|
|
366
366
|
}
|
|
367
367
|
},
|
|
368
368
|
keepOrder: { type: Boolean, default: !1 },
|
|
369
|
-
disableField: { type: String, default: "disabled" }
|
|
369
|
+
disableField: { type: String, default: "disabled" },
|
|
370
|
+
// 搜索启用高亮
|
|
371
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
370
372
|
};
|
|
371
373
|
Z(ee, Ye, Be, Ge, tt);
|
|
372
374
|
function nt(t, e) {
|
|
@@ -406,35 +408,35 @@ function W(t, e, n, c, g, a, v, y, i, d) {
|
|
|
406
408
|
const u = p(t.size), o = p(t.textField), r = p(t.titleField), b = p(t.multiSelect), w = p(t.disableField), {
|
|
407
409
|
onMouseenterItem: V,
|
|
408
410
|
onMouseoverItem: F,
|
|
409
|
-
onMouseoutItem:
|
|
411
|
+
onMouseoutItem: D
|
|
410
412
|
} = a, {
|
|
411
413
|
getKey: M,
|
|
412
414
|
listViewItemClass: I,
|
|
413
415
|
onCheckItem: P,
|
|
414
|
-
onClickItem:
|
|
416
|
+
onClickItem: T
|
|
415
417
|
} = v, m = $(() => ({
|
|
416
418
|
margin: u.value === "small" ? "0.25rem 0" : "10px 0"
|
|
417
419
|
}));
|
|
418
|
-
function O(f,
|
|
420
|
+
function O(f, C, k) {
|
|
419
421
|
return f.checked = y.findIndexInSelectedItems(f) > -1, l("li", {
|
|
420
|
-
class: I(f,
|
|
421
|
-
id: M(f,
|
|
422
|
-
key: M(f,
|
|
423
|
-
onClick: (s) =>
|
|
424
|
-
onMouseenter: (s) => V(s, f,
|
|
425
|
-
onMouseover: (s) => F(s, f,
|
|
426
|
-
onMouseout: (s) =>
|
|
422
|
+
class: I(f, C),
|
|
423
|
+
id: M(f, C),
|
|
424
|
+
key: M(f, C),
|
|
425
|
+
onClick: (s) => T(s, f, C),
|
|
426
|
+
onMouseenter: (s) => V(s, f, C),
|
|
427
|
+
onMouseover: (s) => F(s, f, C),
|
|
428
|
+
onMouseout: (s) => D(s, f, C)
|
|
427
429
|
}, [b.value && l("div", {
|
|
428
430
|
class: "f-list-select",
|
|
429
431
|
onClick: (s) => s.stopPropagation()
|
|
430
432
|
}, [l(q, {
|
|
431
|
-
id: "list-" + M(f,
|
|
433
|
+
id: "list-" + M(f, C),
|
|
432
434
|
customClass: "listview-checkbox",
|
|
433
435
|
disabled: f[w.value],
|
|
434
436
|
checked: f.checked,
|
|
435
437
|
"onUpdate:checked": (s) => f.checked = s,
|
|
436
438
|
onChange: (s) => {
|
|
437
|
-
P(f,
|
|
439
|
+
P(f, C, !s.checked);
|
|
438
440
|
}
|
|
439
441
|
}, null)]), l("div", {
|
|
440
442
|
class: "f-list-content"
|
|
@@ -455,40 +457,40 @@ function lt(t, e, n, c, g, a, v, y, i, d) {
|
|
|
455
457
|
} = a, {
|
|
456
458
|
getKey: V,
|
|
457
459
|
listViewItemClass: F,
|
|
458
|
-
onCheckItem:
|
|
460
|
+
onCheckItem: D,
|
|
459
461
|
onClickItem: M
|
|
460
462
|
} = v;
|
|
461
|
-
function I(
|
|
463
|
+
function I(T, m, O) {
|
|
462
464
|
return e.slots.content ? l(B, null, [e.slots.content && e.slots.content({
|
|
463
|
-
item:
|
|
465
|
+
item: T.raw,
|
|
464
466
|
index: m,
|
|
465
467
|
selectedItem: O
|
|
466
468
|
})]) : l("div", {
|
|
467
469
|
style: "margin: 10px 0;"
|
|
468
|
-
}, [
|
|
470
|
+
}, [T.raw.name]);
|
|
469
471
|
}
|
|
470
|
-
function P(
|
|
472
|
+
function P(T, m, O) {
|
|
471
473
|
return l("li", {
|
|
472
|
-
class: F(
|
|
473
|
-
id: V(
|
|
474
|
-
key: V(
|
|
475
|
-
onClick: (f) => M(f,
|
|
476
|
-
onMouseenter: (f) => r(f,
|
|
477
|
-
onMouseover: (f) => b(f,
|
|
478
|
-
onMouseout: (f) => w(f,
|
|
474
|
+
class: F(T, m),
|
|
475
|
+
id: V(T, m),
|
|
476
|
+
key: V(T, m),
|
|
477
|
+
onClick: (f) => M(f, T, m),
|
|
478
|
+
onMouseenter: (f) => r(f, T, m),
|
|
479
|
+
onMouseover: (f) => b(f, T, m),
|
|
480
|
+
onMouseout: (f) => w(f, T, m)
|
|
479
481
|
}, [u.value && l("div", {
|
|
480
482
|
class: "f-list-select",
|
|
481
483
|
onClick: (f) => f.stopPropagation()
|
|
482
484
|
}, [l(q, {
|
|
483
|
-
id: "list-" + V(
|
|
485
|
+
id: "list-" + V(T, m),
|
|
484
486
|
customClass: "listview-checkbox",
|
|
485
|
-
disabled:
|
|
486
|
-
checked:
|
|
487
|
-
"onUpdate:checked": (f) =>
|
|
488
|
-
onChange: (f) => T
|
|
487
|
+
disabled: T[o.value] || !T.checked,
|
|
488
|
+
checked: T.checked,
|
|
489
|
+
"onUpdate:checked": (f) => T.checked = f,
|
|
490
|
+
onChange: (f) => D(T, m, !f.checked)
|
|
489
491
|
}, null)]), l("div", {
|
|
490
492
|
class: "f-list-content"
|
|
491
|
-
}, [I(
|
|
493
|
+
}, [I(T, m, O)])]);
|
|
492
494
|
}
|
|
493
495
|
return {
|
|
494
496
|
renderItem: P
|
|
@@ -502,28 +504,28 @@ function st(t, e, n, c, g, a, v, y, i, d) {
|
|
|
502
504
|
} = a, {
|
|
503
505
|
getKey: V,
|
|
504
506
|
listViewItemClass: F,
|
|
505
|
-
onCheckItem:
|
|
507
|
+
onCheckItem: D,
|
|
506
508
|
onClickItem: M
|
|
507
509
|
} = v, {
|
|
508
510
|
dragstart: I,
|
|
509
511
|
dragenter: P,
|
|
510
|
-
dragover:
|
|
512
|
+
dragover: T,
|
|
511
513
|
dragend: m
|
|
512
514
|
} = c, {
|
|
513
515
|
removeItem: O
|
|
514
516
|
} = i, f = $(() => ({
|
|
515
517
|
margin: u.value ? "10px 0" : "10px 0px 10px 14px"
|
|
516
518
|
}));
|
|
517
|
-
function
|
|
519
|
+
function C(h) {
|
|
518
520
|
return l("div", {
|
|
519
521
|
style: f.value
|
|
520
522
|
}, [h.raw.name]);
|
|
521
523
|
}
|
|
522
524
|
function k() {
|
|
523
|
-
return e.slots.itemContent ? e.slots.itemContent :
|
|
525
|
+
return e.slots.itemContent ? e.slots.itemContent : C;
|
|
524
526
|
}
|
|
525
527
|
const s = k();
|
|
526
|
-
function
|
|
528
|
+
function S(h, j, E) {
|
|
527
529
|
return l("li", {
|
|
528
530
|
class: F(h, j),
|
|
529
531
|
id: V(h, j),
|
|
@@ -536,7 +538,7 @@ function st(t, e, n, c, g, a, v, y, i, d) {
|
|
|
536
538
|
onDragstart: (R) => I(R, h, j),
|
|
537
539
|
onDragenter: (R) => P(R, j),
|
|
538
540
|
onDragend: (R) => m(R, h),
|
|
539
|
-
onDragover: (R) =>
|
|
541
|
+
onDragover: (R) => T(R, j)
|
|
540
542
|
}, [u.value && l("div", {
|
|
541
543
|
class: "f-list-select",
|
|
542
544
|
onClick: (R) => R.stopPropagation()
|
|
@@ -546,7 +548,7 @@ function st(t, e, n, c, g, a, v, y, i, d) {
|
|
|
546
548
|
disabled: h[o.value] || !h.checked,
|
|
547
549
|
checked: h.checked,
|
|
548
550
|
"onUpdate:checked": (R) => h.checked = R,
|
|
549
|
-
onChange: (R) =>
|
|
551
|
+
onChange: (R) => D(h, j, !R.checked)
|
|
550
552
|
}, null)]), l("div", {
|
|
551
553
|
class: "f-list-content"
|
|
552
554
|
}, [s(h)]), l("div", {
|
|
@@ -563,7 +565,7 @@ function st(t, e, n, c, g, a, v, y, i, d) {
|
|
|
563
565
|
}, null)])])]);
|
|
564
566
|
}
|
|
565
567
|
return {
|
|
566
|
-
renderItem:
|
|
568
|
+
renderItem: S
|
|
567
569
|
};
|
|
568
570
|
}
|
|
569
571
|
function at(t, e, n, c, g, a, v, y, i, d) {
|
|
@@ -573,10 +575,10 @@ function at(t, e, n, c, g, a, v, y, i, d) {
|
|
|
573
575
|
} = g, {
|
|
574
576
|
toggleGroupRow: r
|
|
575
577
|
} = d;
|
|
576
|
-
function b(F,
|
|
577
|
-
|
|
578
|
+
function b(F, D) {
|
|
579
|
+
D.collapse = !D.collapse, n.value = r(D.collapse ? "collapse" : "expand", D, n.value);
|
|
578
580
|
}
|
|
579
|
-
function w(F,
|
|
581
|
+
function w(F, D, M) {
|
|
580
582
|
return F.layer > -1 && l("div", {
|
|
581
583
|
class: "f-navlookup-recentHeader",
|
|
582
584
|
onClick: (I) => b(I, F)
|
|
@@ -622,21 +624,21 @@ function ot() {
|
|
|
622
624
|
}
|
|
623
625
|
function rt(t, e, n, c) {
|
|
624
626
|
const g = p(t.idField), { dataView: a } = n, v = p(-1), y = p(!1), { activeIndex: i, focusedItemId: d, hoverIndex: u, resumeHover: o, suspendHover: r } = c;
|
|
625
|
-
function b(
|
|
626
|
-
|
|
627
|
+
function b(D, M, I) {
|
|
628
|
+
D.stopPropagation(), r(), M && setTimeout(() => {
|
|
627
629
|
v.value = I, y.value = !0, M.moving = !0;
|
|
628
630
|
});
|
|
629
631
|
}
|
|
630
|
-
function w(
|
|
631
|
-
if (
|
|
632
|
+
function w(D, M) {
|
|
633
|
+
if (D.preventDefault(), v.value !== M) {
|
|
632
634
|
const I = a.value[v.value], P = a.value;
|
|
633
635
|
P.splice(v.value, 1), P.splice(M, 0, I), v.value = M;
|
|
634
636
|
}
|
|
635
637
|
}
|
|
636
|
-
function V(
|
|
637
|
-
|
|
638
|
+
function V(D, M) {
|
|
639
|
+
D.preventDefault(), D.dataTransfer && (D.dataTransfer.dropEffect = "move");
|
|
638
640
|
}
|
|
639
|
-
function F(
|
|
641
|
+
function F(D, M) {
|
|
640
642
|
M && (M.moving = !1), a.value.forEach((I, P) => {
|
|
641
643
|
I.__fv_index__ = P;
|
|
642
644
|
}), y.value = !1, o(), u.value = M.raw.__fv_index__, i.value = M.raw.__fv_index__, d.value = M.raw[g.value], e.emit("change", a.value), e.emit("activeChange", M);
|
|
@@ -662,36 +664,36 @@ function it(t, e, n) {
|
|
|
662
664
|
function ct(t, e, n, c, g, a) {
|
|
663
665
|
const v = p(t.idField), y = p(t.disableField), i = p(t.draggable), d = p(t.itemClass), u = p(t.selection.multiSelect ?? !1), o = p(t.selection.multiSelectMode);
|
|
664
666
|
p(!0);
|
|
665
|
-
const { isDragging: r } = c, { activeIndex: b, focusedItemId: w, hoverIndex: V } = g, { clearSelection: F, getSelectedItems:
|
|
666
|
-
function P(s,
|
|
667
|
+
const { isDragging: r } = c, { activeIndex: b, focusedItemId: w, hoverIndex: V } = g, { clearSelection: F, getSelectedItems: D, toggleSelectItem: M } = a, I = p(D());
|
|
668
|
+
function P(s, S) {
|
|
667
669
|
const h = {
|
|
668
670
|
"f-list-view-group-item": !0,
|
|
669
671
|
"f-list-view-draggable-item": i.value,
|
|
670
672
|
"f-un-click": !s.checked,
|
|
671
673
|
"f-un-select": !!s.raw[y.value],
|
|
672
674
|
"f-listview-active": s.raw.__fv_index__ === b.value,
|
|
673
|
-
"f-listview-hover": !r.value &&
|
|
675
|
+
"f-listview-hover": !r.value && S === V.value,
|
|
674
676
|
moving: !!s.moving
|
|
675
677
|
};
|
|
676
678
|
return d.value.split(" ").reduce((E, R) => (E[R] = !0, E), h), h;
|
|
677
679
|
}
|
|
678
|
-
function
|
|
680
|
+
function T(s, S) {
|
|
679
681
|
return s.raw[v.value] || "";
|
|
680
682
|
}
|
|
681
683
|
const m = $(() => !u.value);
|
|
682
|
-
function O(s,
|
|
684
|
+
function O(s, S, h) {
|
|
683
685
|
s.checked = h, !s.raw[y.value] && (m.value && (w.value = s.raw[v.value]), M(s));
|
|
684
686
|
}
|
|
685
|
-
const f = $(() => u.value && o.value === "OnCheckClearByClick"),
|
|
686
|
-
function k(s,
|
|
687
|
-
if (
|
|
687
|
+
const f = $(() => u.value && o.value === "OnCheckClearByClick"), C = $(() => !u.value || u.value && (o.value === "OnCheckAndClick" || o.value === "OnClick"));
|
|
688
|
+
function k(s, S, h) {
|
|
689
|
+
if (S.raw[y.value]) {
|
|
688
690
|
s.preventDefault(), s.stopPropagation();
|
|
689
691
|
return;
|
|
690
692
|
}
|
|
691
|
-
w.value =
|
|
693
|
+
w.value = S.raw[v.value], b.value = h, f.value && F(n.value), C.value && (M(S), I.value = D()), e.emit("clickItem", { data: I.value, index: h }), e.emit("activeChange", I.value);
|
|
692
694
|
}
|
|
693
695
|
return {
|
|
694
|
-
getKey:
|
|
696
|
+
getKey: T,
|
|
695
697
|
listViewItemClass: P,
|
|
696
698
|
onCheckItem: O,
|
|
697
699
|
onClickItem: k
|
|
@@ -702,19 +704,19 @@ function ut(t, e, n, c, g, a, v) {
|
|
|
702
704
|
"f-list-view-group": !0,
|
|
703
705
|
"d-flex": i.value,
|
|
704
706
|
"flex-wrap": i.value
|
|
705
|
-
})), F = $(() => !!n.value && n.value.length > 0),
|
|
707
|
+
})), F = $(() => !!n.value && n.value.length > 0), D = $(() => n.value.length === 0), M = $(() => D.value && !e.slots.empty);
|
|
706
708
|
function I() {
|
|
707
709
|
return y.value === "SingleView" ? W : y.value === "DraggableView" ? st : (y.value === "ContentView" || y.value === "CardView") && e.slots.content ? lt : W;
|
|
708
710
|
}
|
|
709
711
|
const P = I(), {
|
|
710
|
-
renderItem:
|
|
712
|
+
renderItem: T
|
|
711
713
|
} = P(t, e, n, r, g, o, w, a, b, v), {
|
|
712
714
|
renderItem: m
|
|
713
|
-
} = at(t, e, n, r, g, o, w, a, b, v), O = [
|
|
715
|
+
} = at(t, e, n, r, g, o, w, a, b, v), O = [T, m];
|
|
714
716
|
function f() {
|
|
715
|
-
return n.value.filter((s) => s.visible !== !1).map((s,
|
|
717
|
+
return n.value.filter((s) => s.visible !== !1).map((s, S) => O[s.type](s, S, d));
|
|
716
718
|
}
|
|
717
|
-
function
|
|
719
|
+
function C() {
|
|
718
720
|
return l("div", {
|
|
719
721
|
class: "f-list-view-emptydata"
|
|
720
722
|
}, [l("p", {
|
|
@@ -725,7 +727,7 @@ function ut(t, e, n, c, g, a, v) {
|
|
|
725
727
|
return l("ul", {
|
|
726
728
|
class: V.value,
|
|
727
729
|
style: "list-style: none;"
|
|
728
|
-
}, [F.value && f(), M.value &&
|
|
730
|
+
}, [F.value && f(), M.value && C(), e.slots.empty && e.slots.empty()]);
|
|
729
731
|
}
|
|
730
732
|
return {
|
|
731
733
|
renderListArea: k
|
|
@@ -747,7 +749,7 @@ function J(t, e, n) {
|
|
|
747
749
|
a.value = "";
|
|
748
750
|
}
|
|
749
751
|
X(a, (r) => {
|
|
750
|
-
n.search(r);
|
|
752
|
+
t.enableHighlightSearch && n.search(r), e.emit("afterSearch", r);
|
|
751
753
|
});
|
|
752
754
|
const d = $(() => {
|
|
753
755
|
const r = {
|
|
@@ -797,9 +799,9 @@ function J(t, e, n) {
|
|
|
797
799
|
const L = /* @__PURE__ */ G({
|
|
798
800
|
name: "FListView",
|
|
799
801
|
props: ee,
|
|
800
|
-
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
802
|
+
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
801
803
|
setup(t, e) {
|
|
802
|
-
const n = p(), c = p(!0), g = p(!1), a = p([]), v = 0, y = p(t.columns), i = re(t), d = ie(t), u = ce(t, i), o = ue(t), r = fe(t, /* @__PURE__ */ new Map(), d, i, o), b = de(t, r, i, a, e), w = nt(t, n), V = $(() => r.dataView.value.length), F = pe(t, i),
|
|
804
|
+
const n = p(), c = p(!0), g = p(!1), a = p([]), v = 0, y = p(t.columns), i = re(t), d = ie(t), u = ce(t, i), o = ue(t), r = fe(t, /* @__PURE__ */ new Map(), d, i, o), b = de(t, r, i, a, e), w = nt(t, n), V = $(() => r.dataView.value.length), F = pe(t, i), D = ve(), M = he(t, {}, D), I = ge(t, F, d, i, D, M), P = me(t, i, M, I), T = ye(t, i, M, I), m = Se(t, y, r, V, v, I, P, T), {
|
|
803
805
|
getVisualData: O
|
|
804
806
|
} = m;
|
|
805
807
|
a.value = O(0, V.value + v - 1);
|
|
@@ -809,12 +811,12 @@ const L = /* @__PURE__ */ G({
|
|
|
809
811
|
"f-list-view-multiple": t.multiSelect
|
|
810
812
|
};
|
|
811
813
|
return t.size !== "default" && (A[`${t.size}-item`] = !0), A;
|
|
812
|
-
}),
|
|
814
|
+
}), C = $(() => !!e.slots.footer || c.value);
|
|
813
815
|
function k() {
|
|
814
816
|
return t.header === "SearchBar" ? J : t.header === "ContentHeader" ? ft : J;
|
|
815
817
|
}
|
|
816
818
|
const s = k(), {
|
|
817
|
-
renderHeader:
|
|
819
|
+
renderHeader: S
|
|
818
820
|
} = s(t, e, w), {
|
|
819
821
|
renderListArea: h
|
|
820
822
|
} = ut(t, e, a, r, u, b, m);
|
|
@@ -834,7 +836,7 @@ const L = /* @__PURE__ */ G({
|
|
|
834
836
|
return () => l("div", {
|
|
835
837
|
class: f.value,
|
|
836
838
|
onClick: R
|
|
837
|
-
}, [
|
|
839
|
+
}, [S(), l("div", {
|
|
838
840
|
ref: n,
|
|
839
841
|
class: "f-list-view-content",
|
|
840
842
|
onMouseover: () => {
|
|
@@ -843,7 +845,7 @@ const L = /* @__PURE__ */ G({
|
|
|
843
845
|
onMouseleave: () => {
|
|
844
846
|
g.value = !1;
|
|
845
847
|
}
|
|
846
|
-
}, [h()]),
|
|
848
|
+
}, [h()]), C.value && l("div", {
|
|
847
849
|
class: "f-list-view-footer"
|
|
848
850
|
}, [e.slots.footer && e.slots.footer()])]);
|
|
849
851
|
}
|
|
@@ -852,20 +854,20 @@ const L = /* @__PURE__ */ G({
|
|
|
852
854
|
props: U,
|
|
853
855
|
emits: ["change", "activeChange"],
|
|
854
856
|
setup(t, e) {
|
|
855
|
-
const n = p(t.identifyField), c = p("已选:"), g = p("项数据"), a = p(t.displayType), v = p(!1), y = p(t.dataSource), i = p(t.selections || []), d = $(() => i.value.map((
|
|
857
|
+
const n = p(t.identifyField), c = p("已选:"), g = p("项数据"), a = p(t.displayType), v = p(!1), y = p(t.dataSource), i = p(t.selections || []), d = $(() => i.value.map((C) => C[n.value])), u = /* @__PURE__ */ new Map(), o = p();
|
|
856
858
|
function r() {
|
|
857
|
-
const
|
|
858
|
-
k.length && k.reduce((
|
|
859
|
+
const C = /* @__PURE__ */ new Map(), k = t.selectionValues || [];
|
|
860
|
+
k.length && k.reduce((S, h) => (S.set(h, !0), S), C);
|
|
859
861
|
const s = t.selections || [];
|
|
860
|
-
s.length && (
|
|
861
|
-
const h =
|
|
862
|
-
|
|
862
|
+
s.length && (C.clear(), s.reduce((S, h) => (S.set(h[n.value], !0), S), C)), i.value.length || (i.value = y.value.filter((S) => C.has(S[n.value])).map((S) => Object.assign({}, S))), y.value.forEach((S) => {
|
|
863
|
+
const h = S[n.value], j = C.has(h);
|
|
864
|
+
S.checked = j, j && u.set(h, S);
|
|
863
865
|
});
|
|
864
866
|
}
|
|
865
867
|
r();
|
|
866
868
|
const b = $(() => a.value === "List"), w = $(() => a.value === "Tree");
|
|
867
|
-
function V(
|
|
868
|
-
i.value =
|
|
869
|
+
function V(C) {
|
|
870
|
+
i.value = C.map((k) => Object.assign({}, k)), e.emit("change", i.value);
|
|
869
871
|
}
|
|
870
872
|
function F() {
|
|
871
873
|
return l(L, {
|
|
@@ -889,7 +891,7 @@ const L = /* @__PURE__ */ G({
|
|
|
889
891
|
default: () => [H(" ")]
|
|
890
892
|
});
|
|
891
893
|
}
|
|
892
|
-
function
|
|
894
|
+
function D() {
|
|
893
895
|
return l(B, null, null);
|
|
894
896
|
}
|
|
895
897
|
function M() {
|
|
@@ -899,25 +901,25 @@ const L = /* @__PURE__ */ G({
|
|
|
899
901
|
class: "f-utils-flex-column option-pane-content f-utils-fill"
|
|
900
902
|
}, [l("div", {
|
|
901
903
|
class: "container columns-box d-flex f-utils-fill"
|
|
902
|
-
}, [b.value && F(), w.value &&
|
|
904
|
+
}, [b.value && F(), w.value && D()])])]);
|
|
903
905
|
}
|
|
904
|
-
function I(
|
|
905
|
-
const k =
|
|
906
|
+
function I(C) {
|
|
907
|
+
const k = C[n.value];
|
|
906
908
|
if (k !== null || k !== void 0) {
|
|
907
|
-
i.value = i.value.filter((
|
|
909
|
+
i.value = i.value.filter((S) => S[n.value] !== k);
|
|
908
910
|
const s = u.get(k);
|
|
909
911
|
s && (s.checked = !1, u.delete(k)), e.emit("change", i.value);
|
|
910
912
|
}
|
|
911
913
|
}
|
|
912
|
-
X(i, (
|
|
913
|
-
o.value.updateDataSource(
|
|
914
|
+
X(i, (C) => {
|
|
915
|
+
o.value.updateDataSource(C);
|
|
914
916
|
});
|
|
915
|
-
function P(
|
|
917
|
+
function P(C) {
|
|
916
918
|
const k = /* @__PURE__ */ new Map();
|
|
917
|
-
i.value.reduce((s,
|
|
919
|
+
i.value.reduce((s, S) => (s.set(S[n.value], S), s), k), i.value = C.map((s) => k.get(s[n.value])), e.emit("change", i.value);
|
|
918
920
|
}
|
|
919
|
-
function
|
|
920
|
-
e.emit("activeChange",
|
|
921
|
+
function T(C) {
|
|
922
|
+
e.emit("activeChange", C);
|
|
921
923
|
}
|
|
922
924
|
function m() {
|
|
923
925
|
return l(L, {
|
|
@@ -929,7 +931,7 @@ const L = /* @__PURE__ */ G({
|
|
|
929
931
|
"keep-order": !0,
|
|
930
932
|
onChange: P,
|
|
931
933
|
onRemoveItem: I,
|
|
932
|
-
onActiveChange:
|
|
934
|
+
onActiveChange: T
|
|
933
935
|
}, null);
|
|
934
936
|
}
|
|
935
937
|
function O() {
|
|
@@ -961,7 +963,7 @@ const L = /* @__PURE__ */ G({
|
|
|
961
963
|
}
|
|
962
964
|
});
|
|
963
965
|
function dt(t, e, n) {
|
|
964
|
-
var
|
|
966
|
+
var T;
|
|
965
967
|
function c() {
|
|
966
968
|
}
|
|
967
969
|
const g = "", a = "", v = p();
|
|
@@ -999,18 +1001,18 @@ function dt(t, e, n) {
|
|
|
999
1001
|
}
|
|
1000
1002
|
function F(m, O) {
|
|
1001
1003
|
}
|
|
1002
|
-
function
|
|
1004
|
+
function D(m) {
|
|
1003
1005
|
const { componentType: O } = m;
|
|
1004
1006
|
let f = N(O, m);
|
|
1005
|
-
const
|
|
1006
|
-
return f && !f.id && f.type === O && (f.id = `${
|
|
1007
|
+
const C = O.toLowerCase().replace("-", "_");
|
|
1008
|
+
return f && !f.id && f.type === O && (f.id = `${C}_${Math.random().toString().slice(2, 6)}`), f;
|
|
1007
1009
|
}
|
|
1008
1010
|
function M(m, O) {
|
|
1009
|
-
const f = String(m.getAttribute("data-controltype")),
|
|
1011
|
+
const f = String(m.getAttribute("data-controltype")), C = m.getAttribute("data-feature"), k = C ? JSON.parse(C) : {};
|
|
1010
1012
|
k.parentComponentInstance = v.value;
|
|
1011
1013
|
let s = N(f, k);
|
|
1012
|
-
const
|
|
1013
|
-
return s && !s.id && s.type === f && (s.id = `${
|
|
1014
|
+
const S = f.toLowerCase().replace("-", "_");
|
|
1015
|
+
return s && !s.id && s.type === f && (s.id = `${S}_${Math.random().toString().slice(2, 6)}`), s;
|
|
1014
1016
|
}
|
|
1015
1017
|
function I(m) {
|
|
1016
1018
|
}
|
|
@@ -1023,7 +1025,7 @@ function dt(t, e, n) {
|
|
|
1023
1025
|
canNested: !u(),
|
|
1024
1026
|
contents: e == null ? void 0 : e.schema.contents,
|
|
1025
1027
|
elementRef: t,
|
|
1026
|
-
parent: (
|
|
1028
|
+
parent: (T = e == null ? void 0 : e.parent) == null ? void 0 : T.componentInstance,
|
|
1027
1029
|
schema: e == null ? void 0 : e.schema,
|
|
1028
1030
|
styles: g,
|
|
1029
1031
|
designerClass: a,
|
|
@@ -1036,7 +1038,7 @@ function dt(t, e, n) {
|
|
|
1036
1038
|
onAcceptMovedChildElement: F,
|
|
1037
1039
|
onAcceptNewChildElement: M,
|
|
1038
1040
|
onChildElementMovedOut: I,
|
|
1039
|
-
addNewChildComponentSchema:
|
|
1041
|
+
addNewChildComponentSchema: D,
|
|
1040
1042
|
updateDragAndDropRules: c,
|
|
1041
1043
|
triggerBelongedComponentToMoveWhenMoved: p(!1),
|
|
1042
1044
|
triggerBelongedComponentToDeleteWhenDeleted: p(!1)
|
|
@@ -1051,8 +1053,8 @@ const pt = /* @__PURE__ */ G({
|
|
|
1051
1053
|
function o() {
|
|
1052
1054
|
const k = /* @__PURE__ */ new Map(), s = t.selectionValues || [];
|
|
1053
1055
|
s.length && s.reduce((h, j) => (h.set(j, !0), h), k);
|
|
1054
|
-
const
|
|
1055
|
-
|
|
1056
|
+
const S = t.selections || [];
|
|
1057
|
+
S.length && (k.clear(), S.reduce((h, j) => (h.set(j[n.value], !0), h), k)), i.value.length || (i.value = y.value.filter((h) => k.has(h[n.value])).map((h) => Object.assign({}, h))), y.value.forEach((h) => {
|
|
1056
1058
|
const j = h[n.value], E = k.has(j);
|
|
1057
1059
|
h.checked = E, E && u.set(j, h);
|
|
1058
1060
|
});
|
|
@@ -1079,7 +1081,7 @@ const pt = /* @__PURE__ */ G({
|
|
|
1079
1081
|
function F() {
|
|
1080
1082
|
return l(B, null, null);
|
|
1081
1083
|
}
|
|
1082
|
-
function
|
|
1084
|
+
function D() {
|
|
1083
1085
|
return l("div", {
|
|
1084
1086
|
class: "f-utils-fill option-pane d-flex flex-column"
|
|
1085
1087
|
}, [l("div", {
|
|
@@ -1092,13 +1094,13 @@ const pt = /* @__PURE__ */ G({
|
|
|
1092
1094
|
const s = k[n.value];
|
|
1093
1095
|
if (s !== null || s !== void 0) {
|
|
1094
1096
|
i.value = i.value.filter((h) => h[n.value] !== s);
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1097
|
+
const S = u.get(s);
|
|
1098
|
+
S && (S.checked = !1, u.delete(s)), e.emit("change", i.value);
|
|
1097
1099
|
}
|
|
1098
1100
|
}
|
|
1099
1101
|
function I(k) {
|
|
1100
1102
|
const s = /* @__PURE__ */ new Map();
|
|
1101
|
-
i.value.reduce((
|
|
1103
|
+
i.value.reduce((S, h) => (S.set(h[n.value], h), S), s), i.value = k.map((S) => s.get(S[n.value])), e.emit("change", i.value);
|
|
1102
1104
|
}
|
|
1103
1105
|
function P() {
|
|
1104
1106
|
return l(L, {
|
|
@@ -1113,7 +1115,7 @@ const pt = /* @__PURE__ */ G({
|
|
|
1113
1115
|
default: () => [H(" ")]
|
|
1114
1116
|
});
|
|
1115
1117
|
}
|
|
1116
|
-
function
|
|
1118
|
+
function T() {
|
|
1117
1119
|
return l("div", {
|
|
1118
1120
|
class: "f-utils-fill selection-pane d-flex flex-column"
|
|
1119
1121
|
}, [l("div", {
|
|
@@ -1134,14 +1136,14 @@ const pt = /* @__PURE__ */ G({
|
|
|
1134
1136
|
transfer: !0,
|
|
1135
1137
|
row: !0,
|
|
1136
1138
|
"f-utils-fill": v.value
|
|
1137
|
-
})), O = p(), f = se("design-item-context"),
|
|
1139
|
+
})), O = p(), f = se("design-item-context"), C = dt(O, f);
|
|
1138
1140
|
return ae(() => {
|
|
1139
|
-
O.value.componentInstance =
|
|
1140
|
-
}), e.expose(
|
|
1141
|
+
O.value.componentInstance = C;
|
|
1142
|
+
}), e.expose(C.value), () => l("div", {
|
|
1141
1143
|
ref: O,
|
|
1142
1144
|
class: m.value,
|
|
1143
1145
|
style: "height:480px"
|
|
1144
|
-
}, [
|
|
1146
|
+
}, [D(), T()]);
|
|
1145
1147
|
}
|
|
1146
1148
|
}), vt = (t) => {
|
|
1147
1149
|
const e = t;
|
|
@@ -1155,10 +1157,10 @@ _.register = (t, e, n) => {
|
|
|
1155
1157
|
_.registerDesigner = (t, e, n) => {
|
|
1156
1158
|
t.transfer = pt, e.transfer = x;
|
|
1157
1159
|
};
|
|
1158
|
-
const
|
|
1160
|
+
const St = vt(_);
|
|
1159
1161
|
export {
|
|
1160
1162
|
_ as FTransfer,
|
|
1161
|
-
|
|
1163
|
+
St as default,
|
|
1162
1164
|
x as propsResolver,
|
|
1163
1165
|
U as transferProps
|
|
1164
1166
|
};
|