@farris/ui-vue 1.2.9 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +64 -64
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +521 -336
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +99 -97
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +496 -504
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +251 -259
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +696 -519
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +368 -376
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1141 -340
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +116 -116
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +986 -798
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +463 -998
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2233 -1057
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +335 -1002
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6193 -4702
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4562 -3294
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3420 -2623
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +914 -883
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +14 -13
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +204 -212
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2795 -1835
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +180 -130
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +328 -336
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +65 -65
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3349 -3626
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5344 -8588
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +2179 -2227
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +684 -675
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +482 -490
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +746 -569
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +409 -385
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +348 -1019
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3606 -2388
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +10871 -8970
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6019 -5631
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +912 -1281
- package/components/nav/index.umd.cjs +3 -3
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +660 -484
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +682 -506
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1848 -1658
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +100 -100
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1120 -1923
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +875 -1214
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +229 -237
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +2314 -1521
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.esm.js +867 -868
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +4332 -3623
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +72 -72
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +613 -437
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +255 -263
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +144 -152
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1101 -1038
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +935 -1750
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5264 -5677
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +151 -154
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +438 -1125
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +93 -101
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +563 -1202
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +248 -256
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +549 -373
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +2436 -3110
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +328 -336
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +339 -347
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +554 -378
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1322 -1144
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +537 -543
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5113 -9426
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +3900 -2677
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +568 -570
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +266 -274
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +553 -1052
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +558 -566
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +22009 -22688
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +0 -3
- package/types/combo-list/src/components/list-container.props.d.ts +0 -4
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/index.d.ts +9 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/condition/src/types.d.ts +2 -1
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +11 -5
- package/types/data-grid/src/data-grid.component.d.ts +4 -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/designer/use-designer-rules.d.ts +2 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +19 -4
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +2 -3
- package/types/designer-canvas/src/types.d.ts +2 -1
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +1 -1
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/types.d.ts +9 -0
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/index.d.ts +2 -0
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/{data-grid/src/designer/use-group-column.d.ts → query-solution/src/designer/query-solution-config/composition/use-property.d.ts} +4 -5
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
import { useIdentify as
|
|
4
|
-
import { FCheckBox as
|
|
1
|
+
import { ref as h, computed as $, createVNode as l, Fragment as B, watch as J, withModifiers as ne, withDirectives as le, vModelText as se, defineComponent as N, createTextVNode as _, inject as ae, onMounted as oe } from "vue";
|
|
2
|
+
import { isPlainObject as U, cloneDeep as ie } from "lodash-es";
|
|
3
|
+
import { useIdentify as re, useHierarchy as ce, useGroupData as ue, usePagination as fe, useDataView as de, useSelection as pe, useEdit as ve, useVisualDataBound as he, useVisualDataCell as ge, useVisualDataRow as me, useVisualGroupRow as ye, useVisualSummaryRow as we, useVisualData as Ce } from "../data-view/index.esm.js";
|
|
4
|
+
import { FCheckBox as G } from "../checkbox/index.esm.js";
|
|
5
5
|
const Q = {}, Y = {};
|
|
6
|
-
function
|
|
7
|
-
const { properties: e, title: n, ignore:
|
|
8
|
-
return (!
|
|
6
|
+
function q(t) {
|
|
7
|
+
const { properties: e, title: n, ignore: c } = t, p = c && Array.isArray(c), s = Object.keys(e).reduce((r, g) => ((!p || !c.find((i) => i == g)) && (r[g] = e[g].type === "object" && e[g].properties ? q(e[g]) : ie(e[g].default)), r), {});
|
|
8
|
+
return n && (!p || !c.find((r) => r == "id")) && (s.id = `${n}-${Date.now()}`), s;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
return
|
|
10
|
+
function Z(t, e = {}, n) {
|
|
11
|
+
const c = Q[t];
|
|
12
|
+
if (c) {
|
|
13
|
+
let p = q(c);
|
|
14
|
+
const s = Y[t];
|
|
15
|
+
return p = s ? s({ getSchemaByType: Z }, p, e, n) : p, p;
|
|
16
16
|
}
|
|
17
17
|
return null;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const n =
|
|
21
|
-
return Object.keys(t).reduce((
|
|
19
|
+
function be(t, e) {
|
|
20
|
+
const n = q(e);
|
|
21
|
+
return Object.keys(t).reduce((c, p) => (c[p] && U(c[p]) && U(t[p]) ? Object.assign(c[p], t[p]) : c[p] = t[p], c), n), n;
|
|
22
22
|
}
|
|
23
23
|
function Se(t, e) {
|
|
24
|
-
return Object.keys(t).filter((
|
|
25
|
-
if (e.has(
|
|
26
|
-
const
|
|
27
|
-
if (typeof
|
|
28
|
-
|
|
24
|
+
return Object.keys(t).filter((c) => t[c] != null).reduce((c, p) => {
|
|
25
|
+
if (e.has(p)) {
|
|
26
|
+
const s = e.get(p);
|
|
27
|
+
if (typeof s == "string")
|
|
28
|
+
c[s] = t[p];
|
|
29
29
|
else {
|
|
30
|
-
const
|
|
31
|
-
Object.assign(
|
|
30
|
+
const r = s(p, t[p], t);
|
|
31
|
+
Object.assign(c, r);
|
|
32
32
|
}
|
|
33
33
|
} else
|
|
34
|
-
|
|
35
|
-
return
|
|
34
|
+
c[p] = t[p];
|
|
35
|
+
return c;
|
|
36
36
|
}, {});
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const
|
|
40
|
-
return Se(
|
|
38
|
+
function ke(t, e, n = /* @__PURE__ */ new Map()) {
|
|
39
|
+
const c = be(t, e);
|
|
40
|
+
return Se(c, n);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
function e(
|
|
44
|
-
if (typeof
|
|
45
|
-
return
|
|
46
|
-
if (typeof
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
49
|
-
return Number(
|
|
50
|
-
if (
|
|
51
|
-
return Number(
|
|
52
|
-
if (
|
|
53
|
-
return Number(
|
|
42
|
+
function Ve(t = {}) {
|
|
43
|
+
function e(d, f, a, o) {
|
|
44
|
+
if (typeof a == "number")
|
|
45
|
+
return o[d].length === a;
|
|
46
|
+
if (typeof a == "object") {
|
|
47
|
+
const V = Object.keys(a)[0], C = a[V];
|
|
48
|
+
if (V === "not")
|
|
49
|
+
return Number(o[d].length) !== Number(C);
|
|
50
|
+
if (V === "moreThan")
|
|
51
|
+
return Number(o[d].length) >= Number(C);
|
|
52
|
+
if (V === "lessThan")
|
|
53
|
+
return Number(o[d].length) <= Number(C);
|
|
54
54
|
}
|
|
55
55
|
return !1;
|
|
56
56
|
}
|
|
57
|
-
function n(
|
|
58
|
-
return
|
|
57
|
+
function n(d, f, a, o) {
|
|
58
|
+
return o[d] && o[d].propertyValue && String(o[d].propertyValue.value) === String(a);
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const c = /* @__PURE__ */ new Map([
|
|
61
61
|
["length", e],
|
|
62
62
|
["getProperty", n]
|
|
63
63
|
]);
|
|
64
|
-
Object.keys(t).reduce((
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
return typeof
|
|
68
|
-
if (
|
|
69
|
-
return { target:
|
|
70
|
-
const
|
|
71
|
-
return { target:
|
|
64
|
+
Object.keys(t).reduce((d, f) => (d.set(f, t[f]), d), c);
|
|
65
|
+
function p(d, f) {
|
|
66
|
+
const a = d;
|
|
67
|
+
return typeof f == "number" ? [{ target: a, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: a, operator: "getProperty", param: d, value: !!f }] : typeof f == "object" ? Object.keys(f).map((o) => {
|
|
68
|
+
if (o === "length")
|
|
69
|
+
return { target: a, operator: "length", param: null, value: f[o] };
|
|
70
|
+
const V = o, C = f[o];
|
|
71
|
+
return { target: a, operator: "getProperty", param: V, value: C };
|
|
72
72
|
}) : [];
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return Object.keys(
|
|
76
|
-
const
|
|
77
|
-
return
|
|
74
|
+
function s(d) {
|
|
75
|
+
return Object.keys(d).reduce((a, o) => {
|
|
76
|
+
const V = p(o, d[o]);
|
|
77
|
+
return a.push(...V), a;
|
|
78
78
|
}, []);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
if (
|
|
82
|
-
const
|
|
83
|
-
return
|
|
80
|
+
function r(d, f) {
|
|
81
|
+
if (c.has(d.operator)) {
|
|
82
|
+
const a = c.get(d.operator);
|
|
83
|
+
return a && a(d.target, d.param, d.value, f) || !1;
|
|
84
84
|
}
|
|
85
85
|
return !1;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function g(d, f) {
|
|
88
|
+
return s(d).reduce((V, C) => V && r(C, f), !0);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
const
|
|
92
|
-
return
|
|
90
|
+
function i(d, f) {
|
|
91
|
+
const a = Object.keys(d), o = a.includes("allOf"), V = a.includes("anyOf"), C = o || V, D = (C ? d[C ? o ? "allOf" : "anyOf" : "allOf"] : [d]).map((T) => g(T, f));
|
|
92
|
+
return o ? !D.includes(!1) : D.includes(!0);
|
|
93
93
|
}
|
|
94
|
-
return { parseValueSchema:
|
|
94
|
+
return { parseValueSchema: i };
|
|
95
95
|
}
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
function
|
|
99
|
-
return Q[e.title] = e, Y[e.title] =
|
|
100
|
-
const
|
|
101
|
-
return Object.assign(
|
|
96
|
+
const Me = {}, De = {};
|
|
97
|
+
Ve();
|
|
98
|
+
function K(t, e, n = /* @__PURE__ */ new Map(), c = (r, g, i) => g, p = {}, s = (r) => r) {
|
|
99
|
+
return Q[e.title] = e, Y[e.title] = c, Me[e.title] = p, De[e.title] = s, (r = {}) => {
|
|
100
|
+
const g = ke(r, e, n), i = Object.keys(t).reduce((d, f) => (d[f] = t[f].default, d), {});
|
|
101
|
+
return Object.assign(i, g);
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function x(t, e) {
|
|
105
105
|
return { customClass: e.class, customStyle: e.style };
|
|
106
106
|
}
|
|
107
|
-
const
|
|
108
|
-
["appearance",
|
|
107
|
+
const Oe = /* @__PURE__ */ new Map([
|
|
108
|
+
["appearance", x]
|
|
109
109
|
]);
|
|
110
110
|
function Te(t, e, n) {
|
|
111
111
|
return e;
|
|
112
112
|
}
|
|
113
|
-
const
|
|
113
|
+
const Fe = "transfer", Ie = "A Farris Component", je = "object", Re = {
|
|
114
114
|
basic: {
|
|
115
115
|
description: "Basic Infomation",
|
|
116
116
|
title: "基本信息",
|
|
@@ -132,12 +132,12 @@ const Oe = "transfer", Ie = "A Farris Component", Fe = "object", je = {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
},
|
|
136
|
-
title:
|
|
135
|
+
}, $e = {
|
|
136
|
+
title: Fe,
|
|
137
137
|
description: Ie,
|
|
138
|
-
type:
|
|
139
|
-
categories:
|
|
140
|
-
},
|
|
138
|
+
type: je,
|
|
139
|
+
categories: Re
|
|
140
|
+
}, Pe = "https://json-schema.org/draft/2020-12/schema", Ae = "https://farris-design.gitee.io/transfer.schema.json", Le = "transfer", Ee = "A Farris Component", He = "object", _e = {
|
|
141
141
|
id: {
|
|
142
142
|
description: "The unique identifier for transfer",
|
|
143
143
|
type: "string"
|
|
@@ -199,18 +199,18 @@ const Oe = "transfer", Ie = "A Farris Component", Fe = "object", je = {
|
|
|
199
199
|
type: "boolean",
|
|
200
200
|
default: !0
|
|
201
201
|
}
|
|
202
|
-
},
|
|
202
|
+
}, Be = [
|
|
203
203
|
"id",
|
|
204
204
|
"type"
|
|
205
205
|
], Ne = {
|
|
206
|
-
$schema:
|
|
207
|
-
$id:
|
|
208
|
-
title:
|
|
209
|
-
description:
|
|
210
|
-
type:
|
|
211
|
-
properties:
|
|
212
|
-
required:
|
|
213
|
-
},
|
|
206
|
+
$schema: Pe,
|
|
207
|
+
$id: Ae,
|
|
208
|
+
title: Le,
|
|
209
|
+
description: Ee,
|
|
210
|
+
type: He,
|
|
211
|
+
properties: _e,
|
|
212
|
+
required: Be
|
|
213
|
+
}, z = {
|
|
214
214
|
dataSource: {
|
|
215
215
|
type: Array,
|
|
216
216
|
default: []
|
|
@@ -222,13 +222,13 @@ const Oe = "transfer", Ie = "A Farris Component", Fe = "object", je = {
|
|
|
222
222
|
placeholder: { type: String, default: "" },
|
|
223
223
|
selections: { type: Array, default: [] },
|
|
224
224
|
selectionValues: { type: Array, default: [] }
|
|
225
|
-
},
|
|
226
|
-
["appearance",
|
|
225
|
+
}, ee = K(z, Ne, Oe, Te, $e), Ge = /* @__PURE__ */ new Map([
|
|
226
|
+
["appearance", x]
|
|
227
227
|
]);
|
|
228
|
-
function
|
|
228
|
+
function qe(t, e, n) {
|
|
229
229
|
return e;
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const ze = "https://json-schema.org/draft/2020-12/schema", Ue = "https://farris-design.gitee.io/list-view.schema.json", We = "list-view", Xe = "A Farris Component", Je = "object", Qe = {
|
|
232
232
|
id: {
|
|
233
233
|
description: "The unique identifier for list-view",
|
|
234
234
|
type: "string"
|
|
@@ -290,18 +290,18 @@ const qe = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-
|
|
|
290
290
|
type: "boolean",
|
|
291
291
|
default: !0
|
|
292
292
|
}
|
|
293
|
-
},
|
|
293
|
+
}, Ye = [
|
|
294
294
|
"id",
|
|
295
295
|
"type"
|
|
296
|
-
],
|
|
297
|
-
$schema:
|
|
298
|
-
$id:
|
|
299
|
-
title:
|
|
300
|
-
description:
|
|
296
|
+
], Ze = {
|
|
297
|
+
$schema: ze,
|
|
298
|
+
$id: Ue,
|
|
299
|
+
title: We,
|
|
300
|
+
description: Xe,
|
|
301
301
|
type: Je,
|
|
302
|
-
properties:
|
|
303
|
-
required:
|
|
304
|
-
},
|
|
302
|
+
properties: Qe,
|
|
303
|
+
required: Ye
|
|
304
|
+
}, Ke = "list-view", xe = "A Farris Component", et = "object", tt = {
|
|
305
305
|
basic: {
|
|
306
306
|
description: "Basic Infomation",
|
|
307
307
|
title: "基本信息",
|
|
@@ -323,12 +323,12 @@ const qe = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
},
|
|
327
|
-
title:
|
|
328
|
-
description:
|
|
329
|
-
type:
|
|
330
|
-
categories:
|
|
331
|
-
},
|
|
326
|
+
}, nt = {
|
|
327
|
+
title: Ke,
|
|
328
|
+
description: xe,
|
|
329
|
+
type: et,
|
|
330
|
+
categories: tt
|
|
331
|
+
}, te = {
|
|
332
332
|
/** 列集合 */
|
|
333
333
|
columns: {
|
|
334
334
|
type: Array,
|
|
@@ -370,193 +370,193 @@ const qe = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-
|
|
|
370
370
|
// 搜索启用高亮
|
|
371
371
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
372
372
|
};
|
|
373
|
-
|
|
374
|
-
function
|
|
375
|
-
function n(
|
|
376
|
-
const
|
|
377
|
-
let
|
|
378
|
-
for (;
|
|
379
|
-
|
|
380
|
-
return
|
|
373
|
+
K(te, Ze, Ge, qe, nt);
|
|
374
|
+
function lt(t, e) {
|
|
375
|
+
function n(s) {
|
|
376
|
+
const r = [];
|
|
377
|
+
let g = s.nextNode();
|
|
378
|
+
for (; g; )
|
|
379
|
+
r.push(g), g = s.nextNode();
|
|
380
|
+
return r;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
const
|
|
384
|
-
return n(
|
|
385
|
-
const
|
|
386
|
-
let
|
|
387
|
-
for (;
|
|
388
|
-
const
|
|
389
|
-
if (
|
|
382
|
+
function c(s, r) {
|
|
383
|
+
const g = document.createTreeWalker(s, NodeFilter.SHOW_TEXT);
|
|
384
|
+
return n(g).map((a) => ({ textNode: a, text: (a.textContent || "").toLocaleLowerCase() })).map(({ textNode: a, text: o }) => {
|
|
385
|
+
const V = [];
|
|
386
|
+
let C = 0;
|
|
387
|
+
for (; C < o.length; ) {
|
|
388
|
+
const k = o.indexOf(r, C);
|
|
389
|
+
if (k === -1)
|
|
390
390
|
break;
|
|
391
|
-
|
|
391
|
+
V.push(k), C = k + r.length;
|
|
392
392
|
}
|
|
393
|
-
return
|
|
394
|
-
const
|
|
395
|
-
return
|
|
393
|
+
return V.map((k) => {
|
|
394
|
+
const F = new Range();
|
|
395
|
+
return F.setStart(a, k), F.setEnd(a, k + r.length), F;
|
|
396
396
|
});
|
|
397
397
|
}).flat();
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
if (!CSS.highlights || (CSS.highlights.clear(), !
|
|
399
|
+
function p(s) {
|
|
400
|
+
if (!CSS.highlights || (CSS.highlights.clear(), !s || !e))
|
|
401
401
|
return;
|
|
402
|
-
const
|
|
403
|
-
CSS.highlights.set("search-result",
|
|
402
|
+
const r = c(e.value, s.toLocaleLowerCase()), g = new Highlight(...r);
|
|
403
|
+
CSS.highlights.set("search-result", g);
|
|
404
404
|
}
|
|
405
|
-
return { search:
|
|
405
|
+
return { search: p };
|
|
406
406
|
}
|
|
407
|
-
function W(t, e, n,
|
|
408
|
-
const
|
|
409
|
-
var
|
|
410
|
-
return ((
|
|
407
|
+
function W(t, e, n, c, p, s, r, g, i, d) {
|
|
408
|
+
const f = h(t.size), a = h(t.textField), o = h(t.titleField), V = h(t.disableField), C = $(() => {
|
|
409
|
+
var m, w;
|
|
410
|
+
return ((m = t.selection) == null ? void 0 : m.multiSelect) && ((w = t.selection) == null ? void 0 : w.showCheckbox);
|
|
411
411
|
}), {
|
|
412
|
-
onMouseenterItem:
|
|
413
|
-
onMouseoverItem:
|
|
412
|
+
onMouseenterItem: k,
|
|
413
|
+
onMouseoverItem: F,
|
|
414
414
|
onMouseoutItem: D
|
|
415
|
-
} =
|
|
415
|
+
} = s, {
|
|
416
416
|
getKey: M,
|
|
417
|
-
listViewItemClass:
|
|
417
|
+
listViewItemClass: T,
|
|
418
418
|
onCheckItem: P,
|
|
419
|
-
onClickItem:
|
|
420
|
-
} =
|
|
421
|
-
margin:
|
|
419
|
+
onClickItem: y
|
|
420
|
+
} = r, O = $(() => ({
|
|
421
|
+
margin: f.value === "small" ? "0.25rem 0" : "10px 0"
|
|
422
422
|
}));
|
|
423
|
-
function
|
|
424
|
-
return
|
|
425
|
-
class:
|
|
426
|
-
id: M(
|
|
427
|
-
key: M(
|
|
428
|
-
onClick: (
|
|
429
|
-
onMouseenter: (
|
|
430
|
-
onMouseover: (
|
|
431
|
-
onMouseout: (
|
|
432
|
-
}, [
|
|
423
|
+
function I(m, w, S) {
|
|
424
|
+
return m.checked = g.findIndexInSelectedItems(m) > -1, l("li", {
|
|
425
|
+
class: T(m, w),
|
|
426
|
+
id: M(m, w),
|
|
427
|
+
key: M(m, w),
|
|
428
|
+
onClick: (u) => y(u, m, w),
|
|
429
|
+
onMouseenter: (u) => k(u, m, w),
|
|
430
|
+
onMouseover: (u) => F(u, m, w),
|
|
431
|
+
onMouseout: (u) => D(u, m, w)
|
|
432
|
+
}, [C.value && l("div", {
|
|
433
433
|
class: "f-list-select",
|
|
434
|
-
onClick: (
|
|
435
|
-
}, [l(
|
|
436
|
-
id: "list-" + M(
|
|
434
|
+
onClick: (u) => u.stopPropagation()
|
|
435
|
+
}, [l(G, {
|
|
436
|
+
id: "list-" + M(m, w),
|
|
437
437
|
customClass: "listview-checkbox",
|
|
438
|
-
disabled:
|
|
439
|
-
checked:
|
|
440
|
-
"onUpdate:checked": (
|
|
441
|
-
onChange: (
|
|
442
|
-
P(
|
|
438
|
+
disabled: m[V.value],
|
|
439
|
+
checked: m.checked,
|
|
440
|
+
"onUpdate:checked": (u) => m.checked = u,
|
|
441
|
+
onChange: (u) => {
|
|
442
|
+
P(m, w, !u.checked);
|
|
443
443
|
}
|
|
444
444
|
}, null)]), l("div", {
|
|
445
445
|
class: "f-list-content"
|
|
446
446
|
}, [l("div", {
|
|
447
|
-
style:
|
|
448
|
-
title:
|
|
449
|
-
}, [
|
|
447
|
+
style: O.value,
|
|
448
|
+
title: m.raw[o.value] || m.raw[a.value]
|
|
449
|
+
}, [m.raw[a.value]])])]);
|
|
450
450
|
}
|
|
451
451
|
return {
|
|
452
|
-
renderItem:
|
|
452
|
+
renderItem: I
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
|
-
function
|
|
456
|
-
const
|
|
457
|
-
onMouseenterItem:
|
|
458
|
-
onMouseoverItem:
|
|
459
|
-
onMouseoutItem:
|
|
460
|
-
} =
|
|
461
|
-
getKey:
|
|
462
|
-
listViewItemClass:
|
|
455
|
+
function st(t, e, n, c, p, s, r, g, i, d) {
|
|
456
|
+
const f = h(t.multiSelect), a = h(t.disableField), {
|
|
457
|
+
onMouseenterItem: o,
|
|
458
|
+
onMouseoverItem: V,
|
|
459
|
+
onMouseoutItem: C
|
|
460
|
+
} = s, {
|
|
461
|
+
getKey: k,
|
|
462
|
+
listViewItemClass: F,
|
|
463
463
|
onCheckItem: D,
|
|
464
464
|
onClickItem: M
|
|
465
|
-
} =
|
|
466
|
-
function
|
|
465
|
+
} = r;
|
|
466
|
+
function T(y, O, I) {
|
|
467
467
|
return e.slots.content ? l(B, null, [e.slots.content && e.slots.content({
|
|
468
|
-
item:
|
|
469
|
-
index:
|
|
470
|
-
selectedItem:
|
|
468
|
+
item: y.raw,
|
|
469
|
+
index: O,
|
|
470
|
+
selectedItem: I
|
|
471
471
|
})]) : l("div", {
|
|
472
472
|
style: "margin: 10px 0;"
|
|
473
|
-
}, [
|
|
473
|
+
}, [y.raw.name]);
|
|
474
474
|
}
|
|
475
|
-
function P(
|
|
475
|
+
function P(y, O, I) {
|
|
476
476
|
return l("li", {
|
|
477
|
-
class:
|
|
478
|
-
id:
|
|
479
|
-
key:
|
|
480
|
-
onClick: (
|
|
481
|
-
onMouseenter: (
|
|
482
|
-
onMouseover: (
|
|
483
|
-
onMouseout: (
|
|
484
|
-
}, [
|
|
477
|
+
class: F(y, O),
|
|
478
|
+
id: k(y, O),
|
|
479
|
+
key: k(y, O),
|
|
480
|
+
onClick: (m) => M(m, y, O),
|
|
481
|
+
onMouseenter: (m) => o(m, y, O),
|
|
482
|
+
onMouseover: (m) => V(m, y, O),
|
|
483
|
+
onMouseout: (m) => C(m, y, O)
|
|
484
|
+
}, [f.value && l("div", {
|
|
485
485
|
class: "f-list-select",
|
|
486
|
-
onClick: (
|
|
487
|
-
}, [l(
|
|
488
|
-
id: "list-" +
|
|
486
|
+
onClick: (m) => m.stopPropagation()
|
|
487
|
+
}, [l(G, {
|
|
488
|
+
id: "list-" + k(y, O),
|
|
489
489
|
customClass: "listview-checkbox",
|
|
490
|
-
disabled:
|
|
491
|
-
checked:
|
|
492
|
-
"onUpdate:checked": (
|
|
493
|
-
onChange: (
|
|
490
|
+
disabled: y[a.value] || !y.checked,
|
|
491
|
+
checked: y.checked,
|
|
492
|
+
"onUpdate:checked": (m) => y.checked = m,
|
|
493
|
+
onChange: (m) => D(y, O, !m.checked)
|
|
494
494
|
}, null)]), l("div", {
|
|
495
495
|
class: "f-list-content"
|
|
496
|
-
}, [
|
|
496
|
+
}, [T(y, O, I)])]);
|
|
497
497
|
}
|
|
498
498
|
return {
|
|
499
499
|
renderItem: P
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
|
-
function
|
|
503
|
-
const
|
|
504
|
-
onMouseenterItem:
|
|
505
|
-
onMouseoverItem:
|
|
506
|
-
onMouseoutItem:
|
|
507
|
-
} =
|
|
508
|
-
getKey:
|
|
509
|
-
listViewItemClass:
|
|
502
|
+
function at(t, e, n, c, p, s, r, g, i, d) {
|
|
503
|
+
const f = h(t.multiSelect), a = h(t.disableField), {
|
|
504
|
+
onMouseenterItem: o,
|
|
505
|
+
onMouseoverItem: V,
|
|
506
|
+
onMouseoutItem: C
|
|
507
|
+
} = s, {
|
|
508
|
+
getKey: k,
|
|
509
|
+
listViewItemClass: F,
|
|
510
510
|
onCheckItem: D,
|
|
511
511
|
onClickItem: M
|
|
512
|
-
} =
|
|
513
|
-
dragstart:
|
|
512
|
+
} = r, {
|
|
513
|
+
dragstart: T,
|
|
514
514
|
dragenter: P,
|
|
515
|
-
dragover:
|
|
516
|
-
dragend:
|
|
517
|
-
} =
|
|
518
|
-
removeItem:
|
|
519
|
-
} =
|
|
520
|
-
margin:
|
|
515
|
+
dragover: y,
|
|
516
|
+
dragend: O
|
|
517
|
+
} = c, {
|
|
518
|
+
removeItem: I
|
|
519
|
+
} = i, m = $(() => ({
|
|
520
|
+
margin: f.value ? "10px 0" : "10px 0px 10px 14px"
|
|
521
521
|
}));
|
|
522
|
-
function
|
|
522
|
+
function w(v) {
|
|
523
523
|
return l("div", {
|
|
524
|
-
style:
|
|
525
|
-
}, [
|
|
524
|
+
style: m.value
|
|
525
|
+
}, [v.raw.name]);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
return e.slots.itemContent ? e.slots.itemContent :
|
|
527
|
+
function S() {
|
|
528
|
+
return e.slots.itemContent ? e.slots.itemContent : w;
|
|
529
529
|
}
|
|
530
|
-
const
|
|
531
|
-
function
|
|
530
|
+
const u = S();
|
|
531
|
+
function b(v, j, A) {
|
|
532
532
|
return l("li", {
|
|
533
|
-
class:
|
|
534
|
-
id:
|
|
535
|
-
key:
|
|
536
|
-
onClick: (R) => M(R,
|
|
537
|
-
onMouseenter: (R) =>
|
|
538
|
-
onMouseover: (R) =>
|
|
539
|
-
onMouseout: (R) =>
|
|
533
|
+
class: F(v, j),
|
|
534
|
+
id: k(v, j),
|
|
535
|
+
key: k(v, j),
|
|
536
|
+
onClick: (R) => M(R, v, j),
|
|
537
|
+
onMouseenter: (R) => o(R, v, j),
|
|
538
|
+
onMouseover: (R) => V(R, v, j),
|
|
539
|
+
onMouseout: (R) => C(R, v, j),
|
|
540
540
|
draggable: "true",
|
|
541
|
-
onDragstart: (R) =>
|
|
541
|
+
onDragstart: (R) => T(R, v, j),
|
|
542
542
|
onDragenter: (R) => P(R, j),
|
|
543
|
-
onDragend: (R) =>
|
|
544
|
-
onDragover: (R) =>
|
|
545
|
-
}, [
|
|
543
|
+
onDragend: (R) => O(R, v),
|
|
544
|
+
onDragover: (R) => y(R, j)
|
|
545
|
+
}, [f.value && l("div", {
|
|
546
546
|
class: "f-list-select",
|
|
547
547
|
onClick: (R) => R.stopPropagation()
|
|
548
|
-
}, [l(
|
|
549
|
-
id: "list-" +
|
|
548
|
+
}, [l(G, {
|
|
549
|
+
id: "list-" + k(v, j),
|
|
550
550
|
customClass: "listview-checkbox",
|
|
551
|
-
disabled:
|
|
552
|
-
checked:
|
|
553
|
-
"onUpdate:checked": (R) =>
|
|
554
|
-
onChange: (R) => D(
|
|
551
|
+
disabled: v[a.value] || !v.checked,
|
|
552
|
+
checked: v.checked,
|
|
553
|
+
"onUpdate:checked": (R) => v.checked = R,
|
|
554
|
+
onChange: (R) => D(v, j, !R.checked)
|
|
555
555
|
}, null)]), l("div", {
|
|
556
556
|
class: "f-list-content"
|
|
557
|
-
}, [
|
|
557
|
+
}, [u(v)]), l("div", {
|
|
558
558
|
class: "f-list-remove",
|
|
559
|
-
onClick: (R) =>
|
|
559
|
+
onClick: (R) => I(j)
|
|
560
560
|
}, [l("div", {
|
|
561
561
|
class: "f-list-remove-icon"
|
|
562
562
|
}, [l("i", {
|
|
@@ -568,272 +568,274 @@ function st(t, e, n, u, v, a, i, m, r, p) {
|
|
|
568
568
|
}, null)])])]);
|
|
569
569
|
}
|
|
570
570
|
return {
|
|
571
|
-
renderItem:
|
|
571
|
+
renderItem: b
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
|
-
function
|
|
575
|
-
var
|
|
576
|
-
const
|
|
577
|
-
collpaseGroupIconClass:
|
|
578
|
-
} =
|
|
579
|
-
toggleGroupRow:
|
|
580
|
-
} =
|
|
581
|
-
function
|
|
582
|
-
D.collapse = !D.collapse, n.value =
|
|
574
|
+
function ot(t, e, n, c, p, s, r, g, i, d) {
|
|
575
|
+
var k;
|
|
576
|
+
const f = h(((k = t.group) == null ? void 0 : k.groupFields) || []), {
|
|
577
|
+
collpaseGroupIconClass: a
|
|
578
|
+
} = p, {
|
|
579
|
+
toggleGroupRow: o
|
|
580
|
+
} = d;
|
|
581
|
+
function V(F, D) {
|
|
582
|
+
D.collapse = !D.collapse, n.value = o(D.collapse ? "collapse" : "expand", D, n.value);
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
return
|
|
584
|
+
function C(F, D, M) {
|
|
585
|
+
return F.layer > -1 && l("div", {
|
|
586
586
|
class: "f-navlookup-recentHeader",
|
|
587
|
-
onClick: (
|
|
587
|
+
onClick: (T) => V(T, F)
|
|
588
588
|
}, [l("div", {
|
|
589
589
|
class: "fv-grid-group-row-icon"
|
|
590
590
|
}, [l("span", {
|
|
591
|
-
class:
|
|
591
|
+
class: a(F)
|
|
592
592
|
}, null)]), l("div", {
|
|
593
593
|
class: "f-navlookup-recommandLabel"
|
|
594
|
-
}, [
|
|
594
|
+
}, [F.raw[f.value[F.layer]]])]);
|
|
595
595
|
}
|
|
596
596
|
return {
|
|
597
|
-
renderItem:
|
|
597
|
+
renderItem: C
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
const t =
|
|
602
|
-
function
|
|
603
|
-
n.value =
|
|
600
|
+
function it() {
|
|
601
|
+
const t = h(-1), e = h(""), n = h(-1), c = h(!1);
|
|
602
|
+
function p(d, f, a) {
|
|
603
|
+
n.value = a;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
|
|
605
|
+
function s(d, f, a) {
|
|
606
|
+
c.value || (n.value = a);
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function r(d, f, a) {
|
|
609
609
|
n.value = -1;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
|
|
611
|
+
function g() {
|
|
612
|
+
c.value = !0;
|
|
613
613
|
}
|
|
614
|
-
function
|
|
615
|
-
|
|
614
|
+
function i() {
|
|
615
|
+
c.value = !1;
|
|
616
616
|
}
|
|
617
617
|
return {
|
|
618
618
|
activeIndex: t,
|
|
619
619
|
focusedItemId: e,
|
|
620
620
|
hoverIndex: n,
|
|
621
|
-
onMouseenterItem:
|
|
622
|
-
onMouseoverItem:
|
|
623
|
-
onMouseoutItem:
|
|
624
|
-
resumeHover:
|
|
625
|
-
suspendHover:
|
|
621
|
+
onMouseenterItem: p,
|
|
622
|
+
onMouseoverItem: s,
|
|
623
|
+
onMouseoutItem: r,
|
|
624
|
+
resumeHover: i,
|
|
625
|
+
suspendHover: g
|
|
626
626
|
};
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
const
|
|
630
|
-
function
|
|
631
|
-
D.stopPropagation(),
|
|
632
|
-
|
|
628
|
+
function rt(t, e, n, c) {
|
|
629
|
+
const p = h(t.idField), { dataView: s } = n, r = h(-1), g = h(!1), { activeIndex: i, focusedItemId: d, hoverIndex: f, resumeHover: a, suspendHover: o } = c;
|
|
630
|
+
function V(D, M, T) {
|
|
631
|
+
D.stopPropagation(), o(), M && setTimeout(() => {
|
|
632
|
+
r.value = T, g.value = !0, M.moving = !0;
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
if (D.preventDefault(),
|
|
637
|
-
const
|
|
638
|
-
P.splice(
|
|
635
|
+
function C(D, M) {
|
|
636
|
+
if (D.preventDefault(), r.value !== M) {
|
|
637
|
+
const T = s.value[r.value], P = s.value;
|
|
638
|
+
P.splice(r.value, 1), P.splice(M, 0, T), r.value = M;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function k(D, M) {
|
|
642
642
|
D.preventDefault(), D.dataTransfer && (D.dataTransfer.dropEffect = "move");
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
M && (M.moving = !1),
|
|
646
|
-
|
|
647
|
-
}),
|
|
644
|
+
function F(D, M) {
|
|
645
|
+
M && (M.moving = !1), s.value.forEach((T, P) => {
|
|
646
|
+
T.__fv_index__ = P;
|
|
647
|
+
}), g.value = !1, a(), f.value = M.raw.__fv_index__, i.value = M.raw.__fv_index__, d.value = M.raw[p.value], e.emit("change", s.value), e.emit("activeChange", M);
|
|
648
648
|
}
|
|
649
649
|
return {
|
|
650
|
-
dragstart:
|
|
651
|
-
dragenter:
|
|
652
|
-
dragover:
|
|
653
|
-
dragend:
|
|
654
|
-
isDragging:
|
|
650
|
+
dragstart: V,
|
|
651
|
+
dragenter: C,
|
|
652
|
+
dragover: k,
|
|
653
|
+
dragend: F,
|
|
654
|
+
isDragging: g
|
|
655
655
|
};
|
|
656
656
|
}
|
|
657
|
-
function
|
|
658
|
-
const { dataView:
|
|
659
|
-
function
|
|
660
|
-
if (
|
|
661
|
-
const
|
|
662
|
-
e.emit("removeItem",
|
|
657
|
+
function ct(t, e, n) {
|
|
658
|
+
const { dataView: c } = n;
|
|
659
|
+
function p(s) {
|
|
660
|
+
if (s > -1 && s < c.value.length) {
|
|
661
|
+
const r = c.value.splice(s, 1);
|
|
662
|
+
e.emit("removeItem", r[0]);
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
return { removeItem:
|
|
665
|
+
return { removeItem: p };
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
const
|
|
669
|
-
function P(
|
|
670
|
-
const
|
|
667
|
+
function ut(t, e, n, c, p, s) {
|
|
668
|
+
const r = h(t.idField), g = h(t.disableField), i = h(t.draggable), d = h(t.itemClass), f = h(t.selection.multiSelect ?? !1), a = h(t.selection.multiSelectMode), { isDragging: o } = c, { activeIndex: V, focusedItemId: C, hoverIndex: k } = p, { clearSelection: F, getSelectedItems: D, toggleSelectItem: M } = s, T = h(D());
|
|
669
|
+
function P(u, b) {
|
|
670
|
+
const v = {
|
|
671
671
|
"f-listview-item": !0,
|
|
672
672
|
"f-list-view-group-item": !0,
|
|
673
|
-
"f-list-view-draggable-item":
|
|
674
|
-
"f-un-click": !
|
|
675
|
-
"f-un-select": !!
|
|
673
|
+
"f-list-view-draggable-item": i.value,
|
|
674
|
+
"f-un-click": !u.checked,
|
|
675
|
+
"f-un-select": !!u.raw[g.value],
|
|
676
676
|
// 'f-listview-active': item.raw.__fv_index__ === activeIndex.value,
|
|
677
677
|
// 多选
|
|
678
|
-
"f-listview-active":
|
|
679
|
-
(A) => A[
|
|
678
|
+
"f-listview-active": T.value.findIndex(
|
|
679
|
+
(A) => A[r.value] === u.raw[r.value]
|
|
680
680
|
) > -1,
|
|
681
|
-
"f-listview-item-active":
|
|
682
|
-
(A) => A[
|
|
681
|
+
"f-listview-item-active": T.value.findIndex(
|
|
682
|
+
(A) => A[r.value] === u.raw[r.value]
|
|
683
683
|
) > -1,
|
|
684
|
-
"f-listview-hover": !
|
|
685
|
-
|
|
684
|
+
"f-listview-hover": !o.value && b === k.value,
|
|
685
|
+
"f-listview-item-hover": !o.value && b === k.value,
|
|
686
|
+
moving: !!u.moving
|
|
686
687
|
};
|
|
687
|
-
return
|
|
688
|
+
return d.value.split(" ").reduce((A, R) => (A[R] = !0, A), v), v;
|
|
688
689
|
}
|
|
689
|
-
function
|
|
690
|
-
return
|
|
690
|
+
function y(u, b) {
|
|
691
|
+
return u.raw[r.value] || "";
|
|
691
692
|
}
|
|
692
|
-
const
|
|
693
|
-
function
|
|
694
|
-
|
|
693
|
+
const O = $(() => !f.value);
|
|
694
|
+
function I(u, b, v) {
|
|
695
|
+
u.checked = v, !u.raw[g.value] && (O.value && (C.value = u.raw[r.value]), M(u));
|
|
695
696
|
}
|
|
696
|
-
const
|
|
697
|
-
function
|
|
698
|
-
if (
|
|
699
|
-
|
|
697
|
+
const m = $(() => f.value && a.value === "OnCheckClearByClick"), w = $(() => !f.value || f.value && (a.value === "OnCheckAndClick" || a.value === "OnClick"));
|
|
698
|
+
function S(u, b, v) {
|
|
699
|
+
if (b.raw[g.value]) {
|
|
700
|
+
u.preventDefault(), u.stopPropagation();
|
|
700
701
|
return;
|
|
701
702
|
}
|
|
702
|
-
|
|
703
|
+
C.value = b.raw[r.value], V.value = v, m.value && F(n.value), w.value && (M(b), T.value = D()), e.emit("clickItem", { data: T.value, index: v }), e.emit("activeChange", T.value);
|
|
703
704
|
}
|
|
704
705
|
return {
|
|
705
|
-
getKey:
|
|
706
|
+
getKey: y,
|
|
706
707
|
listViewItemClass: P,
|
|
707
|
-
onCheckItem:
|
|
708
|
-
onClickItem:
|
|
708
|
+
onCheckItem: I,
|
|
709
|
+
onClickItem: S
|
|
709
710
|
};
|
|
710
711
|
}
|
|
711
|
-
function
|
|
712
|
-
const
|
|
712
|
+
function ft(t, e, n, c, p, s, r) {
|
|
713
|
+
const g = h(t.view), i = h(t.view === "CardView"), d = h({}), f = h("暂无数据"), a = it(), o = rt(t, e, c, a), V = ct(t, e, c), C = ut(t, e, n, o, a, s), k = $(() => ({
|
|
713
714
|
"f-list-view-group": !0,
|
|
714
|
-
"d-flex":
|
|
715
|
-
"flex-wrap":
|
|
716
|
-
})),
|
|
717
|
-
|
|
718
|
-
|
|
715
|
+
"d-flex": i.value,
|
|
716
|
+
"flex-wrap": i.value
|
|
717
|
+
})), F = $(() => !!n.value && n.value.length > 0), D = $(() => n.value.length === 0);
|
|
718
|
+
$(() => D.value && !e.slots.empty);
|
|
719
|
+
function M() {
|
|
720
|
+
return g.value === "SingleView" ? W : g.value === "DraggableView" ? at : (g.value === "ContentView" || g.value === "CardView") && e.slots.content ? st : W;
|
|
719
721
|
}
|
|
720
|
-
const
|
|
721
|
-
renderItem:
|
|
722
|
-
} =
|
|
723
|
-
renderItem:
|
|
724
|
-
} =
|
|
725
|
-
function
|
|
726
|
-
return n.value.filter((
|
|
722
|
+
const T = M(), {
|
|
723
|
+
renderItem: P
|
|
724
|
+
} = T(t, e, n, o, p, a, C, s, V, r), {
|
|
725
|
+
renderItem: y
|
|
726
|
+
} = ot(t, e, n, o, p, a, C, s, V, r), O = [P, y];
|
|
727
|
+
function I() {
|
|
728
|
+
return n.value.filter((S) => S.visible !== !1).map((S, u) => O[S.type](S, u, d));
|
|
727
729
|
}
|
|
728
|
-
function
|
|
730
|
+
function m() {
|
|
729
731
|
return l("div", {
|
|
730
732
|
class: "f-list-view-emptydata"
|
|
731
733
|
}, [l("p", {
|
|
732
734
|
class: "f-empty-title"
|
|
733
|
-
}, [
|
|
735
|
+
}, [e.slots.empty ? e.slots.empty() : f.value])]);
|
|
734
736
|
}
|
|
735
|
-
function
|
|
737
|
+
function w() {
|
|
736
738
|
return l("ul", {
|
|
737
|
-
class:
|
|
739
|
+
class: k.value,
|
|
738
740
|
style: "list-style: none;"
|
|
739
|
-
}, [
|
|
741
|
+
}, [F.value && I(), D.value && m()]);
|
|
740
742
|
}
|
|
741
743
|
return {
|
|
742
|
-
renderListArea:
|
|
744
|
+
renderListArea: w
|
|
743
745
|
};
|
|
744
746
|
}
|
|
745
|
-
function
|
|
746
|
-
function
|
|
747
|
+
function dt(t, e, n) {
|
|
748
|
+
function c() {
|
|
747
749
|
return e.slots.header && l("div", {
|
|
748
750
|
class: "f-list-view-header"
|
|
749
751
|
}, [e.slots.header()]);
|
|
750
752
|
}
|
|
751
753
|
return {
|
|
752
|
-
renderHeader:
|
|
754
|
+
renderHeader: c
|
|
753
755
|
};
|
|
754
756
|
}
|
|
755
|
-
function
|
|
756
|
-
const
|
|
757
|
-
function
|
|
758
|
-
|
|
757
|
+
function X(t, e, n) {
|
|
758
|
+
const c = h(t.headerClass), p = h(t.placeholder), s = h(""), r = $(() => !s.value), g = $(() => !!s.value);
|
|
759
|
+
function i(o) {
|
|
760
|
+
s.value = "";
|
|
759
761
|
}
|
|
760
|
-
|
|
761
|
-
t.enableHighlightSearch && n.search(
|
|
762
|
+
J(s, (o) => {
|
|
763
|
+
t.enableHighlightSearch && n.search(o), e.emit("afterSearch", o);
|
|
762
764
|
});
|
|
763
|
-
const
|
|
764
|
-
const
|
|
765
|
+
const d = $(() => {
|
|
766
|
+
const o = {
|
|
765
767
|
"form-group": !0,
|
|
766
768
|
"farris-form-group": !0
|
|
767
769
|
};
|
|
768
|
-
return
|
|
770
|
+
return c.value && c.value.split(" ").reduce((C, k) => (C[k] = !0, C), o), o;
|
|
769
771
|
});
|
|
770
|
-
function
|
|
772
|
+
function f(o) {
|
|
771
773
|
}
|
|
772
|
-
function
|
|
774
|
+
function a() {
|
|
773
775
|
return l("div", {
|
|
774
776
|
class: "f-list-view-header",
|
|
775
|
-
onClick:
|
|
777
|
+
onClick: ne(() => f, ["prevent", "stop"])
|
|
776
778
|
}, [l("div", {
|
|
777
|
-
class:
|
|
779
|
+
class: d.value
|
|
778
780
|
}, [l("div", {
|
|
779
781
|
class: "farris-input-wrap"
|
|
780
782
|
}, [l("div", {
|
|
781
783
|
class: "f-cmp-inputgroup"
|
|
782
784
|
}, [l("div", {
|
|
783
785
|
class: "input-group f-state-editable"
|
|
784
|
-
}, [
|
|
786
|
+
}, [le(l("input", {
|
|
785
787
|
class: "form-control f-utils-fill text-left",
|
|
786
|
-
"onUpdate:modelValue": (
|
|
788
|
+
"onUpdate:modelValue": (o) => s.value = o,
|
|
787
789
|
name: "input-group-value",
|
|
788
790
|
type: "text",
|
|
789
|
-
placeholder:
|
|
791
|
+
placeholder: p.value,
|
|
790
792
|
autocomplete: "off"
|
|
791
|
-
}, null), [[
|
|
793
|
+
}, null), [[se, s.value]]), l("div", {
|
|
792
794
|
class: "input-group-append"
|
|
793
|
-
}, [
|
|
795
|
+
}, [g.value && l("span", {
|
|
794
796
|
class: "input-group-text input-group-clear",
|
|
795
|
-
onClick: (
|
|
797
|
+
onClick: (o) => i()
|
|
796
798
|
}, [l("i", {
|
|
797
799
|
class: "f-icon f-icon-close-circle"
|
|
798
|
-
}, null)]),
|
|
800
|
+
}, null)]), r.value && l("span", {
|
|
799
801
|
class: "input-group-text"
|
|
800
802
|
}, [l("span", {
|
|
801
803
|
class: "f-icon f-icon-search"
|
|
802
804
|
}, null)])])])])])])]);
|
|
803
805
|
}
|
|
804
806
|
return {
|
|
805
|
-
renderHeader:
|
|
807
|
+
renderHeader: a
|
|
806
808
|
};
|
|
807
809
|
}
|
|
808
|
-
const E = /* @__PURE__ */
|
|
810
|
+
const E = /* @__PURE__ */ N({
|
|
809
811
|
name: "FListView",
|
|
810
|
-
props:
|
|
812
|
+
props: te,
|
|
811
813
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
812
814
|
setup(t, e) {
|
|
813
|
-
const n =
|
|
814
|
-
getVisualData:
|
|
815
|
-
} =
|
|
816
|
-
|
|
817
|
-
const
|
|
815
|
+
const n = h(), c = h(!0), p = h(!1), s = h([]), r = 0, g = h(t.columns), i = re(t), d = ce(t), f = ue(t, i), a = fe(t), o = de(t, /* @__PURE__ */ new Map(), d, i, a), V = pe(t, o, i, s, e), C = lt(t, n), k = $(() => o.dataView.value.length), F = ve(t, e, i), D = he(), M = ge(t, {}, D), T = me(t, F, d, i, D, M), P = ye(t, i, M, T), y = we(t, i, M, T), O = Ce(t, g, o, k, r, T, P, y), {
|
|
816
|
+
getVisualData: I
|
|
817
|
+
} = O;
|
|
818
|
+
s.value = I(0, k.value + r - 1);
|
|
819
|
+
const m = $(() => {
|
|
818
820
|
const L = {
|
|
819
821
|
"f-list-view": !0,
|
|
820
822
|
"f-list-view-multiple": t.multiSelect
|
|
821
823
|
};
|
|
822
824
|
return t.size !== "default" && (L[`${t.size}-item`] = !0), L;
|
|
823
|
-
}),
|
|
824
|
-
function
|
|
825
|
-
return t.header === "SearchBar" ?
|
|
825
|
+
}), w = $(() => !!e.slots.footer || c.value);
|
|
826
|
+
function S() {
|
|
827
|
+
return t.header === "SearchBar" ? X : t.header === "ContentHeader" ? dt : X;
|
|
826
828
|
}
|
|
827
|
-
const
|
|
828
|
-
renderHeader:
|
|
829
|
-
} =
|
|
830
|
-
renderListArea:
|
|
831
|
-
} =
|
|
829
|
+
const u = S(), {
|
|
830
|
+
renderHeader: b
|
|
831
|
+
} = u(t, e, C), {
|
|
832
|
+
renderListArea: v
|
|
833
|
+
} = ft(t, e, s, o, f, V, O);
|
|
832
834
|
function j(L) {
|
|
833
|
-
|
|
835
|
+
C.search(L);
|
|
834
836
|
}
|
|
835
837
|
function A(L) {
|
|
836
|
-
L && (
|
|
838
|
+
L && (o.load(L), s.value = I(0, k.value + r - 1));
|
|
837
839
|
}
|
|
838
840
|
e.expose({
|
|
839
841
|
search: j,
|
|
@@ -843,45 +845,45 @@ const E = /* @__PURE__ */ G({
|
|
|
843
845
|
t.multiSelect && (L.preventDefault(), L.stopPropagation());
|
|
844
846
|
}
|
|
845
847
|
return () => l("div", {
|
|
846
|
-
class:
|
|
848
|
+
class: m.value,
|
|
847
849
|
onClick: R
|
|
848
|
-
}, [
|
|
850
|
+
}, [b(), l("div", {
|
|
849
851
|
ref: n,
|
|
850
852
|
class: "f-list-view-content",
|
|
851
853
|
onMouseover: () => {
|
|
852
|
-
|
|
854
|
+
p.value = !0;
|
|
853
855
|
},
|
|
854
856
|
onMouseleave: () => {
|
|
855
|
-
|
|
857
|
+
p.value = !1;
|
|
856
858
|
}
|
|
857
|
-
}, [
|
|
859
|
+
}, [v()]), w.value && l("div", {
|
|
858
860
|
class: "f-list-view-footer"
|
|
859
861
|
}, [e.slots.footer && e.slots.footer()])]);
|
|
860
862
|
}
|
|
861
|
-
}), H = /* @__PURE__ */
|
|
863
|
+
}), H = /* @__PURE__ */ N({
|
|
862
864
|
name: "FTransfer",
|
|
863
|
-
props:
|
|
865
|
+
props: z,
|
|
864
866
|
emits: ["change", "activeChange"],
|
|
865
867
|
setup(t, e) {
|
|
866
|
-
const n =
|
|
867
|
-
function
|
|
868
|
-
const
|
|
869
|
-
|
|
870
|
-
const
|
|
871
|
-
|
|
872
|
-
const
|
|
873
|
-
|
|
868
|
+
const n = h(t.identifyField), c = h("已选:"), p = h("项数据"), s = h(t.displayType), r = h(!1), g = h(t.dataSource), i = h(t.selections || []), d = $(() => i.value.map((w) => w[n.value])), f = /* @__PURE__ */ new Map(), a = h();
|
|
869
|
+
function o() {
|
|
870
|
+
const w = /* @__PURE__ */ new Map(), S = t.selectionValues || [];
|
|
871
|
+
S.length && S.reduce((b, v) => (b.set(v, !0), b), w);
|
|
872
|
+
const u = t.selections || [];
|
|
873
|
+
u.length && (w.clear(), u.reduce((b, v) => (b.set(v[n.value], !0), b), w)), i.value.length || (i.value = g.value.filter((b) => w.has(b[n.value])).map((b) => Object.assign({}, b))), g.value.forEach((b) => {
|
|
874
|
+
const v = b[n.value], j = w.has(v);
|
|
875
|
+
b.checked = j, j && f.set(v, b);
|
|
874
876
|
});
|
|
875
877
|
}
|
|
876
|
-
|
|
877
|
-
const
|
|
878
|
-
function
|
|
879
|
-
|
|
878
|
+
o();
|
|
879
|
+
const V = $(() => s.value === "List"), C = $(() => s.value === "Tree");
|
|
880
|
+
function k(w) {
|
|
881
|
+
i.value = w.map((S) => Object.assign({}, S)), e.emit("change", i.value);
|
|
880
882
|
}
|
|
881
|
-
function
|
|
883
|
+
function F() {
|
|
882
884
|
return l(E, {
|
|
883
885
|
class: "f-utils-fill",
|
|
884
|
-
data:
|
|
886
|
+
data: g.value,
|
|
885
887
|
multiSelect: !0,
|
|
886
888
|
selection: {
|
|
887
889
|
enableSelectRow: !0,
|
|
@@ -894,8 +896,8 @@ const E = /* @__PURE__ */ G({
|
|
|
894
896
|
draggable: !1,
|
|
895
897
|
header: "Search",
|
|
896
898
|
headerClass: "transfer-search-box",
|
|
897
|
-
"selection-values":
|
|
898
|
-
onSelectionChange:
|
|
899
|
+
"selection-values": d.value,
|
|
900
|
+
onSelectionChange: k
|
|
899
901
|
}, {
|
|
900
902
|
default: () => [_(" ")]
|
|
901
903
|
});
|
|
@@ -910,40 +912,40 @@ const E = /* @__PURE__ */ G({
|
|
|
910
912
|
class: "f-utils-flex-column option-pane-content f-utils-fill"
|
|
911
913
|
}, [l("div", {
|
|
912
914
|
class: "container columns-box d-flex f-utils-fill"
|
|
913
|
-
}, [
|
|
915
|
+
}, [V.value && F(), C.value && D()])])]);
|
|
914
916
|
}
|
|
915
|
-
function
|
|
916
|
-
const
|
|
917
|
-
if (
|
|
918
|
-
|
|
919
|
-
const
|
|
920
|
-
|
|
917
|
+
function T(w) {
|
|
918
|
+
const S = w[n.value];
|
|
919
|
+
if (S !== null || S !== void 0) {
|
|
920
|
+
i.value = i.value.filter((b) => b[n.value] !== S);
|
|
921
|
+
const u = f.get(S);
|
|
922
|
+
u && (u.checked = !1, f.delete(S)), e.emit("change", i.value);
|
|
921
923
|
}
|
|
922
924
|
}
|
|
923
|
-
|
|
924
|
-
|
|
925
|
+
J(i, (w) => {
|
|
926
|
+
a.value.updateDataSource(w);
|
|
925
927
|
});
|
|
926
|
-
function P(
|
|
927
|
-
const
|
|
928
|
-
|
|
928
|
+
function P(w) {
|
|
929
|
+
const S = /* @__PURE__ */ new Map();
|
|
930
|
+
i.value.reduce((u, b) => (u.set(b[n.value], b), u), S), i.value = w.map((u) => S.get(u[n.value])), e.emit("change", i.value);
|
|
929
931
|
}
|
|
930
|
-
function
|
|
931
|
-
e.emit("activeChange",
|
|
932
|
+
function y(w) {
|
|
933
|
+
e.emit("activeChange", w);
|
|
932
934
|
}
|
|
933
|
-
function
|
|
935
|
+
function O() {
|
|
934
936
|
return l(E, {
|
|
935
|
-
ref:
|
|
937
|
+
ref: a,
|
|
936
938
|
style: "flex:1",
|
|
937
|
-
data:
|
|
939
|
+
data: i.value,
|
|
938
940
|
draggable: !0,
|
|
939
941
|
view: "DraggableView",
|
|
940
942
|
"keep-order": !0,
|
|
941
943
|
onChange: P,
|
|
942
|
-
onRemoveItem:
|
|
943
|
-
onActiveChange:
|
|
944
|
+
onRemoveItem: T,
|
|
945
|
+
onActiveChange: y
|
|
944
946
|
}, null);
|
|
945
947
|
}
|
|
946
|
-
function
|
|
948
|
+
function I() {
|
|
947
949
|
return l("div", {
|
|
948
950
|
class: "f-utils-fill selection-pane d-flex flex-column"
|
|
949
951
|
}, [l("div", {
|
|
@@ -952,142 +954,134 @@ const E = /* @__PURE__ */ G({
|
|
|
952
954
|
class: "selection-pane-title"
|
|
953
955
|
}, [l("span", {
|
|
954
956
|
class: "selection-title"
|
|
955
|
-
}, [
|
|
957
|
+
}, [c.value]), l("span", {
|
|
956
958
|
class: "selection-count"
|
|
957
|
-
}, [
|
|
959
|
+
}, [i.value && i.value.length]), l("span", {
|
|
958
960
|
class: "selection-item-title"
|
|
959
|
-
}, [
|
|
961
|
+
}, [p.value])]), l("div", {
|
|
960
962
|
class: "container columns-box f-utils-fill d-flex"
|
|
961
|
-
}, [
|
|
963
|
+
}, [O()])])]);
|
|
962
964
|
}
|
|
963
|
-
const
|
|
965
|
+
const m = $(() => ({
|
|
964
966
|
transfer: !0,
|
|
965
967
|
row: !0,
|
|
966
|
-
"f-utils-fill":
|
|
968
|
+
"f-utils-fill": r.value
|
|
967
969
|
}));
|
|
968
970
|
return () => l("div", {
|
|
969
|
-
class:
|
|
971
|
+
class: m.value,
|
|
970
972
|
style: "height:480px"
|
|
971
|
-
}, [M(),
|
|
973
|
+
}, [M(), I()]);
|
|
972
974
|
}
|
|
973
975
|
});
|
|
974
|
-
function
|
|
975
|
-
var
|
|
976
|
-
function
|
|
976
|
+
function pt(t, e, n) {
|
|
977
|
+
var P;
|
|
978
|
+
function c() {
|
|
977
979
|
}
|
|
978
|
-
const
|
|
979
|
-
function
|
|
980
|
+
const p = "", s = "", r = h();
|
|
981
|
+
function g() {
|
|
980
982
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
981
983
|
}
|
|
982
|
-
function
|
|
984
|
+
function i() {
|
|
983
985
|
return !1;
|
|
984
986
|
}
|
|
985
|
-
function
|
|
987
|
+
function d() {
|
|
986
988
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
987
989
|
}
|
|
988
|
-
function
|
|
990
|
+
function f() {
|
|
989
991
|
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
990
992
|
}
|
|
991
|
-
function
|
|
992
|
-
if (!
|
|
993
|
+
function a(y) {
|
|
994
|
+
if (!y || !y.value)
|
|
993
995
|
return null;
|
|
994
|
-
if (
|
|
995
|
-
return
|
|
996
|
-
const
|
|
997
|
-
return
|
|
996
|
+
if (y.value.schema && y.value.schema.type === "component")
|
|
997
|
+
return y.value;
|
|
998
|
+
const O = h(y == null ? void 0 : y.value.parent), I = a(O);
|
|
999
|
+
return I || null;
|
|
998
1000
|
}
|
|
999
|
-
function
|
|
1000
|
-
const { componentInstance:
|
|
1001
|
-
return !
|
|
1001
|
+
function o(y = e) {
|
|
1002
|
+
const { componentInstance: O, designerItemElementRef: I } = y;
|
|
1003
|
+
return !O || !O.value ? null : O.value.canMove ? I : o(y.parent);
|
|
1002
1004
|
}
|
|
1003
|
-
function
|
|
1005
|
+
function V(y) {
|
|
1004
1006
|
return !!n;
|
|
1005
1007
|
}
|
|
1006
|
-
function
|
|
1008
|
+
function C() {
|
|
1007
1009
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
1008
1010
|
}
|
|
1009
|
-
function
|
|
1010
|
-
}
|
|
1011
|
-
function I(w, F) {
|
|
1011
|
+
function k() {
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1014
|
-
const { componentType: f } = w;
|
|
1015
|
-
let y = N(f, w, F);
|
|
1016
|
-
const b = f.toLowerCase().replace("-", "_");
|
|
1017
|
-
return y && !y.id && y.type === f && (y.id = `${b}_${Math.random().toString().slice(2, 6)}`), y;
|
|
1013
|
+
function F(y, O) {
|
|
1018
1014
|
}
|
|
1019
|
-
function
|
|
1020
|
-
const
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
return s && !s.id && s.type === f && (s.id = `${C}_${Math.random().toString().slice(2, 6)}`), s;
|
|
1015
|
+
function D(y, O) {
|
|
1016
|
+
const { componentType: I } = y;
|
|
1017
|
+
let m = Z(I, y, O);
|
|
1018
|
+
const w = I.toLowerCase().replace("-", "_");
|
|
1019
|
+
return m && !m.id && m.type === I && (m.id = `${w}_${Math.random().toString().slice(2, 6)}`), m;
|
|
1025
1020
|
}
|
|
1026
|
-
function
|
|
1021
|
+
function M(y) {
|
|
1027
1022
|
}
|
|
1028
|
-
function
|
|
1023
|
+
function T(...y) {
|
|
1029
1024
|
}
|
|
1030
|
-
return
|
|
1031
|
-
canMove:
|
|
1032
|
-
canSelectParent:
|
|
1033
|
-
canDelete:
|
|
1034
|
-
canNested: !
|
|
1025
|
+
return r.value = {
|
|
1026
|
+
canMove: g(),
|
|
1027
|
+
canSelectParent: i(),
|
|
1028
|
+
canDelete: d(),
|
|
1029
|
+
canNested: !f(),
|
|
1035
1030
|
contents: e == null ? void 0 : e.schema.contents,
|
|
1036
1031
|
elementRef: t,
|
|
1037
|
-
parent: (
|
|
1032
|
+
parent: (P = e == null ? void 0 : e.parent) == null ? void 0 : P.componentInstance,
|
|
1038
1033
|
schema: e == null ? void 0 : e.schema,
|
|
1039
|
-
styles:
|
|
1040
|
-
designerClass:
|
|
1041
|
-
canAccepts:
|
|
1042
|
-
getBelongedComponentInstance:
|
|
1043
|
-
getDraggableDesignItemElement:
|
|
1044
|
-
getDraggingDisplayText:
|
|
1045
|
-
getPropConfig:
|
|
1046
|
-
getDragScopeElement:
|
|
1047
|
-
onAcceptMovedChildElement:
|
|
1048
|
-
|
|
1049
|
-
onChildElementMovedOut: O,
|
|
1034
|
+
styles: p,
|
|
1035
|
+
designerClass: s,
|
|
1036
|
+
canAccepts: V,
|
|
1037
|
+
getBelongedComponentInstance: a,
|
|
1038
|
+
getDraggableDesignItemElement: o,
|
|
1039
|
+
getDraggingDisplayText: C,
|
|
1040
|
+
getPropConfig: T,
|
|
1041
|
+
getDragScopeElement: k,
|
|
1042
|
+
onAcceptMovedChildElement: F,
|
|
1043
|
+
onChildElementMovedOut: M,
|
|
1050
1044
|
addNewChildComponentSchema: D,
|
|
1051
|
-
updateDragAndDropRules:
|
|
1052
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1053
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1054
|
-
},
|
|
1045
|
+
updateDragAndDropRules: c,
|
|
1046
|
+
triggerBelongedComponentToMoveWhenMoved: h(!1),
|
|
1047
|
+
triggerBelongedComponentToDeleteWhenDeleted: h(!1)
|
|
1048
|
+
}, r;
|
|
1055
1049
|
}
|
|
1056
|
-
const
|
|
1050
|
+
const vt = /* @__PURE__ */ N({
|
|
1057
1051
|
name: "FTransferDesign",
|
|
1058
|
-
props:
|
|
1052
|
+
props: z,
|
|
1059
1053
|
emits: ["change"],
|
|
1060
1054
|
setup(t, e) {
|
|
1061
|
-
const n =
|
|
1062
|
-
function
|
|
1063
|
-
const
|
|
1064
|
-
|
|
1065
|
-
const
|
|
1066
|
-
|
|
1067
|
-
const j =
|
|
1068
|
-
|
|
1055
|
+
const n = h(t.identifyField), c = h("已选:"), p = h("项数据"), s = h(t.displayType), r = h(!1), g = h(t.dataSource), i = h(t.selections || []), d = $(() => i.value.map((S) => S[n.value])), f = /* @__PURE__ */ new Map();
|
|
1056
|
+
function a() {
|
|
1057
|
+
const S = /* @__PURE__ */ new Map(), u = t.selectionValues || [];
|
|
1058
|
+
u.length && u.reduce((v, j) => (v.set(j, !0), v), S);
|
|
1059
|
+
const b = t.selections || [];
|
|
1060
|
+
b.length && (S.clear(), b.reduce((v, j) => (v.set(j[n.value], !0), v), S)), i.value.length || (i.value = g.value.filter((v) => S.has(v[n.value])).map((v) => Object.assign({}, v))), g.value.forEach((v) => {
|
|
1061
|
+
const j = v[n.value], A = S.has(j);
|
|
1062
|
+
v.checked = A, A && f.set(j, v);
|
|
1069
1063
|
});
|
|
1070
1064
|
}
|
|
1071
|
-
|
|
1072
|
-
const
|
|
1073
|
-
function S
|
|
1074
|
-
|
|
1065
|
+
a();
|
|
1066
|
+
const o = $(() => s.value === "List"), V = $(() => s.value === "Tree");
|
|
1067
|
+
function C(S) {
|
|
1068
|
+
i.value = S.map((u) => Object.assign({}, u)), e.emit("change", i.value);
|
|
1075
1069
|
}
|
|
1076
|
-
function
|
|
1070
|
+
function k() {
|
|
1077
1071
|
return l(E, {
|
|
1078
1072
|
class: "f-utils-fill",
|
|
1079
|
-
data:
|
|
1073
|
+
data: g.value,
|
|
1080
1074
|
"multi-select": !0,
|
|
1081
1075
|
draggable: !1,
|
|
1082
1076
|
header: "Search",
|
|
1083
1077
|
headerClass: "transfer-search-box",
|
|
1084
|
-
"selection-values":
|
|
1085
|
-
onSelectionChange:
|
|
1078
|
+
"selection-values": d.value,
|
|
1079
|
+
onSelectionChange: C
|
|
1086
1080
|
}, {
|
|
1087
1081
|
default: () => [_(" ")]
|
|
1088
1082
|
});
|
|
1089
1083
|
}
|
|
1090
|
-
function
|
|
1084
|
+
function F() {
|
|
1091
1085
|
return l(B, null, null);
|
|
1092
1086
|
}
|
|
1093
1087
|
function D() {
|
|
@@ -1097,34 +1091,34 @@ const pt = /* @__PURE__ */ G({
|
|
|
1097
1091
|
class: "f-utils-flex-column option-pane-content f-utils-fill"
|
|
1098
1092
|
}, [l("div", {
|
|
1099
1093
|
class: "container columns-box d-flex f-utils-fill"
|
|
1100
|
-
}, [
|
|
1094
|
+
}, [o.value && k(), V.value && F()])])]);
|
|
1101
1095
|
}
|
|
1102
|
-
function M(
|
|
1103
|
-
const
|
|
1104
|
-
if (
|
|
1105
|
-
|
|
1106
|
-
const
|
|
1107
|
-
|
|
1096
|
+
function M(S) {
|
|
1097
|
+
const u = S[n.value];
|
|
1098
|
+
if (u !== null || u !== void 0) {
|
|
1099
|
+
i.value = i.value.filter((v) => v[n.value] !== u);
|
|
1100
|
+
const b = f.get(u);
|
|
1101
|
+
b && (b.checked = !1, f.delete(u)), e.emit("change", i.value);
|
|
1108
1102
|
}
|
|
1109
1103
|
}
|
|
1110
|
-
function
|
|
1111
|
-
const
|
|
1112
|
-
|
|
1104
|
+
function T(S) {
|
|
1105
|
+
const u = /* @__PURE__ */ new Map();
|
|
1106
|
+
i.value.reduce((b, v) => (b.set(v[n.value], v), b), u), i.value = S.map((b) => u.get(b[n.value])), e.emit("change", i.value);
|
|
1113
1107
|
}
|
|
1114
1108
|
function P() {
|
|
1115
1109
|
return l(E, {
|
|
1116
1110
|
style: "flex:1",
|
|
1117
|
-
data:
|
|
1111
|
+
data: i.value,
|
|
1118
1112
|
draggable: !0,
|
|
1119
1113
|
view: "DraggableView",
|
|
1120
1114
|
"keep-order": !0,
|
|
1121
|
-
onChange:
|
|
1115
|
+
onChange: T,
|
|
1122
1116
|
onRemoveItem: M
|
|
1123
1117
|
}, {
|
|
1124
1118
|
default: () => [_(" ")]
|
|
1125
1119
|
});
|
|
1126
1120
|
}
|
|
1127
|
-
function
|
|
1121
|
+
function y() {
|
|
1128
1122
|
return l("div", {
|
|
1129
1123
|
class: "f-utils-fill selection-pane d-flex flex-column"
|
|
1130
1124
|
}, [l("div", {
|
|
@@ -1133,43 +1127,43 @@ const pt = /* @__PURE__ */ G({
|
|
|
1133
1127
|
class: "selection-pane-title"
|
|
1134
1128
|
}, [l("span", {
|
|
1135
1129
|
class: "selection-title"
|
|
1136
|
-
}, [
|
|
1130
|
+
}, [c.value]), l("span", {
|
|
1137
1131
|
class: "selection-count"
|
|
1138
|
-
}, [
|
|
1132
|
+
}, [i.value && i.value.length]), l("span", {
|
|
1139
1133
|
class: "selection-item-title"
|
|
1140
|
-
}, [
|
|
1134
|
+
}, [p.value])]), l("div", {
|
|
1141
1135
|
class: "container columns-box f-utils-fill d-flex"
|
|
1142
1136
|
}, [P()])])]);
|
|
1143
1137
|
}
|
|
1144
|
-
const
|
|
1138
|
+
const O = $(() => ({
|
|
1145
1139
|
transfer: !0,
|
|
1146
1140
|
row: !0,
|
|
1147
|
-
"f-utils-fill":
|
|
1148
|
-
})),
|
|
1149
|
-
return
|
|
1150
|
-
|
|
1151
|
-
}), e.expose(
|
|
1152
|
-
ref:
|
|
1153
|
-
class:
|
|
1141
|
+
"f-utils-fill": r.value
|
|
1142
|
+
})), I = h(), m = ae("design-item-context"), w = pt(I, m);
|
|
1143
|
+
return oe(() => {
|
|
1144
|
+
I.value.componentInstance = w;
|
|
1145
|
+
}), e.expose(w.value), () => l("div", {
|
|
1146
|
+
ref: I,
|
|
1147
|
+
class: O.value,
|
|
1154
1148
|
style: "height:480px"
|
|
1155
|
-
}, [D(),
|
|
1149
|
+
}, [D(), y()]);
|
|
1156
1150
|
}
|
|
1157
|
-
}),
|
|
1151
|
+
}), ht = (t) => {
|
|
1158
1152
|
const e = t;
|
|
1159
1153
|
return e.install = function(n) {
|
|
1160
1154
|
n.component(e.name, t);
|
|
1161
1155
|
}, t;
|
|
1162
1156
|
};
|
|
1163
1157
|
H.register = (t, e, n) => {
|
|
1164
|
-
t.transfer = H, e.transfer =
|
|
1158
|
+
t.transfer = H, e.transfer = ee;
|
|
1165
1159
|
};
|
|
1166
1160
|
H.registerDesigner = (t, e, n) => {
|
|
1167
|
-
t.transfer =
|
|
1161
|
+
t.transfer = vt, e.transfer = ee;
|
|
1168
1162
|
};
|
|
1169
|
-
const
|
|
1163
|
+
const Ct = ht(H);
|
|
1170
1164
|
export {
|
|
1171
1165
|
H as FTransfer,
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1166
|
+
Ct as default,
|
|
1167
|
+
ee as propsResolver,
|
|
1168
|
+
z as transferProps
|
|
1175
1169
|
};
|