@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,7 +1,7 @@
|
|
|
1
1
|
var qt = Object.defineProperty;
|
|
2
2
|
var zt = (e, t, n) => t in e ? qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
4
|
-
import { ref as w, computed as
|
|
3
|
+
var z = (e, t, n) => zt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as w, computed as R, createVNode as v, Fragment as me, watch as Q, withModifiers as Wt, withDirectives as We, vModelText as Ut, defineComponent as oe, resolveComponent as Kt, createTextVNode as ue, onBeforeUnmount as Qt, onMounted as pe, nextTick as je, reactive as Ue, resolveDirective as Yt, mergeProps as Ne, createApp as Jt, onUnmounted as Xt, inject as Ke } from "vue";
|
|
5
5
|
import { cloneDeep as he } from "lodash-es";
|
|
6
6
|
import { useIdentify as Zt, useHierarchy as en, useGroupData as tn, usePagination as nn, useDataView as on, useSelection as an, useEdit as rn, useVisualDataBound as sn, useVisualDataCell as ln, useVisualDataRow as un, useVisualGroupRow as cn, useVisualSummaryRow as dn, useVisualData as fn } from "@farris/ui-vue/components/data-view";
|
|
7
7
|
import pn, { FCheckBox as Be } from "@farris/ui-vue/components/checkbox";
|
|
@@ -22,48 +22,50 @@ import In from "@farris/ui-vue/components/button-edit";
|
|
|
22
22
|
import xn from "@farris/ui-vue/components/button-group";
|
|
23
23
|
import En from "@farris/ui-vue/components/calendar";
|
|
24
24
|
import On from "@farris/ui-vue/components/capsule";
|
|
25
|
-
import Nn from "@farris/ui-vue/components/
|
|
26
|
-
import Bn from "@farris/ui-vue/components/
|
|
27
|
-
import Dn from "@farris/ui-vue/components/
|
|
28
|
-
import Rn from "@farris/ui-vue/components/
|
|
29
|
-
import Mn from "@farris/ui-vue/components/
|
|
30
|
-
import $n from "@farris/ui-vue/components/
|
|
31
|
-
import An from "@farris/ui-vue/components/
|
|
32
|
-
import Pn from "@farris/ui-vue/components/
|
|
33
|
-
import Ln from "@farris/ui-vue/components/
|
|
34
|
-
import jn from "@farris/ui-vue/components/
|
|
35
|
-
import Gn from "@farris/ui-vue/components/
|
|
36
|
-
import Hn from "@farris/ui-vue/components/
|
|
37
|
-
import qn from "@farris/ui-vue/components/list-
|
|
38
|
-
import zn from "@farris/ui-vue/components/
|
|
39
|
-
import Wn from "@farris/ui-vue/components/
|
|
40
|
-
import Un from "@farris/ui-vue/components/
|
|
41
|
-
import Kn from "@farris/ui-vue/components/
|
|
42
|
-
import Qn from "@farris/ui-vue/components/
|
|
43
|
-
import Yn from "@farris/ui-vue/components/page-
|
|
44
|
-
import Jn from "@farris/ui-vue/components/
|
|
45
|
-
import Xn from "@farris/ui-vue/components/
|
|
46
|
-
import Zn from "@farris/ui-vue/components/
|
|
47
|
-
import eo from "@farris/ui-vue/components/
|
|
48
|
-
import to from "@farris/ui-vue/components/
|
|
49
|
-
import no from "@farris/ui-vue/components/response-
|
|
50
|
-
import oo from "@farris/ui-vue/components/response-layout
|
|
51
|
-
import ao from "@farris/ui-vue/components/
|
|
52
|
-
import ro from "@farris/ui-vue/components/
|
|
53
|
-
import io from "@farris/ui-vue/components/
|
|
54
|
-
import so from "@farris/ui-vue/components/
|
|
55
|
-
import lo from "@farris/ui-vue/components/
|
|
56
|
-
import uo from "@farris/ui-vue/components/
|
|
57
|
-
import co from "@farris/ui-vue/components/
|
|
58
|
-
import fo from "@farris/ui-vue/components/
|
|
59
|
-
import po from "@farris/ui-vue/components/
|
|
60
|
-
import vo from "@farris/ui-vue/components/
|
|
61
|
-
import mo from "@farris/ui-vue/components/
|
|
62
|
-
import ho from "@farris/ui-vue/components/
|
|
63
|
-
import go from "@farris/ui-vue/components/
|
|
64
|
-
import yo from "@farris/ui-vue/components/
|
|
65
|
-
import _o from "@farris/ui-vue/components/
|
|
66
|
-
import bo from "@farris/ui-vue/components/
|
|
25
|
+
import Nn from "@farris/ui-vue/components/combo-tree";
|
|
26
|
+
import Bn from "@farris/ui-vue/components/component";
|
|
27
|
+
import Dn from "@farris/ui-vue/components/color-picker";
|
|
28
|
+
import Rn from "@farris/ui-vue/components/content-container";
|
|
29
|
+
import Mn from "@farris/ui-vue/components/date-picker";
|
|
30
|
+
import $n from "@farris/ui-vue/components/data-grid";
|
|
31
|
+
import An from "@farris/ui-vue/components/dropdown";
|
|
32
|
+
import Pn from "@farris/ui-vue/components/events-editor";
|
|
33
|
+
import Ln from "@farris/ui-vue/components/field-selector";
|
|
34
|
+
import jn from "@farris/ui-vue/components/image-cropper";
|
|
35
|
+
import Gn from "@farris/ui-vue/components/input-group";
|
|
36
|
+
import Hn from "@farris/ui-vue/components/layout";
|
|
37
|
+
import qn from "@farris/ui-vue/components/list-nav";
|
|
38
|
+
import zn from "@farris/ui-vue/components/list-view";
|
|
39
|
+
import Wn from "@farris/ui-vue/components/lookup";
|
|
40
|
+
import Un from "@farris/ui-vue/components/mapping-editor";
|
|
41
|
+
import Kn from "@farris/ui-vue/components/nav";
|
|
42
|
+
import Qn from "@farris/ui-vue/components/number-range";
|
|
43
|
+
import Yn from "@farris/ui-vue/components/page-header";
|
|
44
|
+
import Jn from "@farris/ui-vue/components/page-footer";
|
|
45
|
+
import Xn from "@farris/ui-vue/components/progress";
|
|
46
|
+
import Zn from "@farris/ui-vue/components/query-solution";
|
|
47
|
+
import eo from "@farris/ui-vue/components/radio-group";
|
|
48
|
+
import to from "@farris/ui-vue/components/rate";
|
|
49
|
+
import no from "@farris/ui-vue/components/response-toolbar";
|
|
50
|
+
import oo from "@farris/ui-vue/components/response-layout";
|
|
51
|
+
import ao from "@farris/ui-vue/components/response-layout-editor";
|
|
52
|
+
import ro from "@farris/ui-vue/components/search-box";
|
|
53
|
+
import io from "@farris/ui-vue/components/section";
|
|
54
|
+
import so from "@farris/ui-vue/components/smoke-detector";
|
|
55
|
+
import lo from "@farris/ui-vue/components/splitter";
|
|
56
|
+
import uo from "@farris/ui-vue/components/step";
|
|
57
|
+
import co from "@farris/ui-vue/components/switch";
|
|
58
|
+
import fo from "@farris/ui-vue/components/tags";
|
|
59
|
+
import po from "@farris/ui-vue/components/text";
|
|
60
|
+
import vo from "@farris/ui-vue/components/time-picker";
|
|
61
|
+
import mo from "@farris/ui-vue/components/tree-view";
|
|
62
|
+
import ho from "@farris/ui-vue/components/uploader";
|
|
63
|
+
import go from "@farris/ui-vue/components/verify-detail";
|
|
64
|
+
import yo from "@farris/ui-vue/components/weather";
|
|
65
|
+
import _o from "@farris/ui-vue/components/video";
|
|
66
|
+
import bo from "@farris/ui-vue/components/textarea";
|
|
67
|
+
import Co from "@farris/ui-vue/components/schema-selector";
|
|
68
|
+
import wo from "@farris/ui-vue/components/tree-grid";
|
|
67
69
|
import "@farris/ui-vue/components/external-container";
|
|
68
70
|
const Qe = {}, Ye = {};
|
|
69
71
|
function De(e) {
|
|
@@ -79,11 +81,11 @@ function xe(e, t = {}) {
|
|
|
79
81
|
}
|
|
80
82
|
return null;
|
|
81
83
|
}
|
|
82
|
-
function
|
|
84
|
+
function So(e, t) {
|
|
83
85
|
const n = De(t);
|
|
84
86
|
return Object.keys(e).reduce((o, a) => (o[a] = e[a], o), n), n;
|
|
85
87
|
}
|
|
86
|
-
function
|
|
88
|
+
function Fo(e, t) {
|
|
87
89
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
|
|
88
90
|
if (t.has(a)) {
|
|
89
91
|
const r = t.get(a);
|
|
@@ -98,40 +100,40 @@ function wo(e, t) {
|
|
|
98
100
|
return o;
|
|
99
101
|
}, {});
|
|
100
102
|
}
|
|
101
|
-
function
|
|
102
|
-
const o =
|
|
103
|
-
return
|
|
103
|
+
function To(e, t, n = /* @__PURE__ */ new Map()) {
|
|
104
|
+
const o = So(e, t);
|
|
105
|
+
return Fo(o, n);
|
|
104
106
|
}
|
|
105
|
-
function
|
|
106
|
-
function t(p,
|
|
107
|
+
function ko(e = {}) {
|
|
108
|
+
function t(p, c, l, i) {
|
|
107
109
|
if (typeof l == "number")
|
|
108
110
|
return i[p].length === l;
|
|
109
111
|
if (typeof l == "object") {
|
|
110
|
-
const I = Object.keys(l)[0],
|
|
112
|
+
const I = Object.keys(l)[0], V = l[I];
|
|
111
113
|
if (I === "not")
|
|
112
|
-
return Number(i[p].length) !== Number(
|
|
114
|
+
return Number(i[p].length) !== Number(V);
|
|
113
115
|
if (I === "moreThan")
|
|
114
|
-
return Number(i[p].length) >= Number(
|
|
116
|
+
return Number(i[p].length) >= Number(V);
|
|
115
117
|
if (I === "lessThan")
|
|
116
|
-
return Number(i[p].length) <= Number(
|
|
118
|
+
return Number(i[p].length) <= Number(V);
|
|
117
119
|
}
|
|
118
120
|
return !1;
|
|
119
121
|
}
|
|
120
|
-
function n(p,
|
|
122
|
+
function n(p, c, l, i) {
|
|
121
123
|
return i[p] && i[p].propertyValue && String(i[p].propertyValue.value) === String(l);
|
|
122
124
|
}
|
|
123
125
|
const o = /* @__PURE__ */ new Map([
|
|
124
126
|
["length", t],
|
|
125
127
|
["getProperty", n]
|
|
126
128
|
]);
|
|
127
|
-
Object.keys(e).reduce((p,
|
|
128
|
-
function a(p,
|
|
129
|
+
Object.keys(e).reduce((p, c) => (p.set(c, e[c]), p), o);
|
|
130
|
+
function a(p, c) {
|
|
129
131
|
const l = p;
|
|
130
|
-
return typeof
|
|
132
|
+
return typeof c == "number" ? [{ target: l, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: l, operator: "getProperty", param: p, value: !!c }] : typeof c == "object" ? Object.keys(c).map((i) => {
|
|
131
133
|
if (i === "length")
|
|
132
|
-
return { target: l, operator: "length", param: null, value:
|
|
133
|
-
const I = i,
|
|
134
|
-
return { target: l, operator: "getProperty", param: I, value:
|
|
134
|
+
return { target: l, operator: "length", param: null, value: c[i] };
|
|
135
|
+
const I = i, V = c[i];
|
|
136
|
+
return { target: l, operator: "getProperty", param: I, value: V };
|
|
135
137
|
}) : [];
|
|
136
138
|
}
|
|
137
139
|
function r(p) {
|
|
@@ -140,28 +142,28 @@ function Fo(e = {}) {
|
|
|
140
142
|
return l.push(...I), l;
|
|
141
143
|
}, []);
|
|
142
144
|
}
|
|
143
|
-
function s(p,
|
|
145
|
+
function s(p, c) {
|
|
144
146
|
if (o.has(p.operator)) {
|
|
145
147
|
const l = o.get(p.operator);
|
|
146
|
-
return l && l(p.target, p.param, p.value,
|
|
148
|
+
return l && l(p.target, p.param, p.value, c) || !1;
|
|
147
149
|
}
|
|
148
150
|
return !1;
|
|
149
151
|
}
|
|
150
|
-
function f(p,
|
|
151
|
-
return r(p).reduce((I,
|
|
152
|
+
function f(p, c) {
|
|
153
|
+
return r(p).reduce((I, V) => I && s(V, c), !0);
|
|
152
154
|
}
|
|
153
|
-
function
|
|
154
|
-
const l = Object.keys(p), i = l.includes("allOf"), I = l.includes("anyOf"),
|
|
155
|
-
return i ? !
|
|
155
|
+
function y(p, c) {
|
|
156
|
+
const l = Object.keys(p), i = l.includes("allOf"), I = l.includes("anyOf"), V = i || I, _ = (V ? p[V ? i ? "allOf" : "anyOf" : "allOf"] : [p]).map((k) => f(k, c));
|
|
157
|
+
return i ? !_.includes(!1) : _.includes(!0);
|
|
156
158
|
}
|
|
157
|
-
return { parseValueSchema:
|
|
159
|
+
return { parseValueSchema: y };
|
|
158
160
|
}
|
|
159
|
-
const
|
|
160
|
-
|
|
161
|
-
function ge(e, t, n = /* @__PURE__ */ new Map(), o = (s, f,
|
|
162
|
-
return Qe[t.title] = t, Ye[t.title] = o,
|
|
163
|
-
const f =
|
|
164
|
-
return Object.assign(
|
|
161
|
+
const Vo = {}, Io = {};
|
|
162
|
+
ko();
|
|
163
|
+
function ge(e, t, n = /* @__PURE__ */ new Map(), o = (s, f, y) => f, a = {}, r = (s) => s) {
|
|
164
|
+
return Qe[t.title] = t, Ye[t.title] = o, Vo[t.title] = a, Io[t.title] = r, (s = {}) => {
|
|
165
|
+
const f = To(s, t, n), y = Object.keys(e).reduce((p, c) => (p[c] = e[c].default, p), {});
|
|
166
|
+
return Object.assign(y, f);
|
|
165
167
|
};
|
|
166
168
|
}
|
|
167
169
|
function Re(e, t) {
|
|
@@ -173,7 +175,7 @@ const Je = /* @__PURE__ */ new Map([
|
|
|
173
175
|
function Xe(e, t, n) {
|
|
174
176
|
return t;
|
|
175
177
|
}
|
|
176
|
-
const
|
|
178
|
+
const xo = "https://json-schema.org/draft/2020-12/schema", Eo = "https://farris-design.gitee.io/list-view.schema.json", Oo = "list-view", No = "A Farris Component", Bo = "object", Do = {
|
|
177
179
|
id: {
|
|
178
180
|
description: "The unique identifier for list-view",
|
|
179
181
|
type: "string"
|
|
@@ -235,18 +237,18 @@ const Vo = "https://json-schema.org/draft/2020-12/schema", Io = "https://farris-
|
|
|
235
237
|
type: "boolean",
|
|
236
238
|
default: !0
|
|
237
239
|
}
|
|
238
|
-
},
|
|
240
|
+
}, Ro = [
|
|
239
241
|
"id",
|
|
240
242
|
"type"
|
|
241
|
-
],
|
|
242
|
-
$schema:
|
|
243
|
-
$id:
|
|
244
|
-
title:
|
|
245
|
-
description:
|
|
246
|
-
type:
|
|
247
|
-
properties:
|
|
248
|
-
required:
|
|
249
|
-
},
|
|
243
|
+
], Mo = {
|
|
244
|
+
$schema: xo,
|
|
245
|
+
$id: Eo,
|
|
246
|
+
title: Oo,
|
|
247
|
+
description: No,
|
|
248
|
+
type: Bo,
|
|
249
|
+
properties: Do,
|
|
250
|
+
required: Ro
|
|
251
|
+
}, $o = "list-view", Ao = "A Farris Component", Po = "object", Lo = {
|
|
250
252
|
basic: {
|
|
251
253
|
description: "Basic Infomation",
|
|
252
254
|
title: "基本信息",
|
|
@@ -268,11 +270,11 @@ const Vo = "https://json-schema.org/draft/2020-12/schema", Io = "https://farris-
|
|
|
268
270
|
}
|
|
269
271
|
}
|
|
270
272
|
}
|
|
271
|
-
},
|
|
272
|
-
title:
|
|
273
|
-
description:
|
|
274
|
-
type:
|
|
275
|
-
categories:
|
|
273
|
+
}, jo = {
|
|
274
|
+
title: $o,
|
|
275
|
+
description: Ao,
|
|
276
|
+
type: Po,
|
|
277
|
+
categories: Lo
|
|
276
278
|
}, we = {
|
|
277
279
|
/** 列集合 */
|
|
278
280
|
columns: {
|
|
@@ -311,8 +313,10 @@ const Vo = "https://json-schema.org/draft/2020-12/schema", Io = "https://farris-
|
|
|
311
313
|
}
|
|
312
314
|
},
|
|
313
315
|
keepOrder: { type: Boolean, default: !1 },
|
|
314
|
-
disableField: { type: String, default: "disabled" }
|
|
315
|
-
|
|
316
|
+
disableField: { type: String, default: "disabled" },
|
|
317
|
+
// 搜索启用高亮
|
|
318
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
319
|
+
}, Ze = ge(we, Mo, Je, Xe, jo);
|
|
316
320
|
function et(e, t) {
|
|
317
321
|
function n(r) {
|
|
318
322
|
const s = [];
|
|
@@ -325,16 +329,16 @@ function et(e, t) {
|
|
|
325
329
|
const f = document.createTreeWalker(r, NodeFilter.SHOW_TEXT);
|
|
326
330
|
return n(f).map((l) => ({ textNode: l, text: (l.textContent || "").toLocaleLowerCase() })).map(({ textNode: l, text: i }) => {
|
|
327
331
|
const I = [];
|
|
328
|
-
let
|
|
329
|
-
for (;
|
|
330
|
-
const
|
|
331
|
-
if (
|
|
332
|
+
let V = 0;
|
|
333
|
+
for (; V < i.length; ) {
|
|
334
|
+
const h = i.indexOf(s, V);
|
|
335
|
+
if (h === -1)
|
|
332
336
|
break;
|
|
333
|
-
I.push(
|
|
337
|
+
I.push(h), V = h + s.length;
|
|
334
338
|
}
|
|
335
|
-
return I.map((
|
|
339
|
+
return I.map((h) => {
|
|
336
340
|
const x = new Range();
|
|
337
|
-
return x.setStart(l,
|
|
341
|
+
return x.setStart(l, h), x.setEnd(l, h + s.length), x;
|
|
338
342
|
});
|
|
339
343
|
}).flat();
|
|
340
344
|
}
|
|
@@ -346,156 +350,156 @@ function et(e, t) {
|
|
|
346
350
|
}
|
|
347
351
|
return { search: a };
|
|
348
352
|
}
|
|
349
|
-
function Ge(e, t, n, o, a, r, s, f,
|
|
350
|
-
const
|
|
351
|
-
onMouseenterItem:
|
|
353
|
+
function Ge(e, t, n, o, a, r, s, f, y, p) {
|
|
354
|
+
const c = w(e.size), l = w(e.textField), i = w(e.titleField), I = w(e.multiSelect), V = w(e.disableField), {
|
|
355
|
+
onMouseenterItem: h,
|
|
352
356
|
onMouseoverItem: x,
|
|
353
|
-
onMouseoutItem:
|
|
357
|
+
onMouseoutItem: _
|
|
354
358
|
} = r, {
|
|
355
|
-
getKey:
|
|
356
|
-
listViewItemClass:
|
|
357
|
-
onCheckItem:
|
|
358
|
-
onClickItem:
|
|
359
|
-
} = s,
|
|
360
|
-
margin:
|
|
359
|
+
getKey: d,
|
|
360
|
+
listViewItemClass: k,
|
|
361
|
+
onCheckItem: T,
|
|
362
|
+
onClickItem: m
|
|
363
|
+
} = s, C = R(() => ({
|
|
364
|
+
margin: c.value === "small" ? "0.25rem 0" : "10px 0"
|
|
361
365
|
}));
|
|
362
|
-
function
|
|
363
|
-
return
|
|
364
|
-
class:
|
|
365
|
-
id:
|
|
366
|
-
key:
|
|
367
|
-
onClick: (
|
|
368
|
-
onMouseenter: (
|
|
369
|
-
onMouseover: (
|
|
370
|
-
onMouseout: (
|
|
366
|
+
function E(N, b, D) {
|
|
367
|
+
return N.checked = f.findIndexInSelectedItems(N) > -1, v("li", {
|
|
368
|
+
class: k(N, b),
|
|
369
|
+
id: d(N, b),
|
|
370
|
+
key: d(N, b),
|
|
371
|
+
onClick: (F) => m(F, N, b),
|
|
372
|
+
onMouseenter: (F) => h(F, N, b),
|
|
373
|
+
onMouseover: (F) => x(F, N, b),
|
|
374
|
+
onMouseout: (F) => _(F, N, b)
|
|
371
375
|
}, [I.value && v("div", {
|
|
372
376
|
class: "f-list-select",
|
|
373
|
-
onClick: (
|
|
377
|
+
onClick: (F) => F.stopPropagation()
|
|
374
378
|
}, [v(Be, {
|
|
375
|
-
id: "list-" +
|
|
379
|
+
id: "list-" + d(N, b),
|
|
376
380
|
customClass: "listview-checkbox",
|
|
377
|
-
disabled:
|
|
378
|
-
checked:
|
|
379
|
-
"onUpdate:checked": (
|
|
380
|
-
onChange: (
|
|
381
|
-
|
|
381
|
+
disabled: N[V.value],
|
|
382
|
+
checked: N.checked,
|
|
383
|
+
"onUpdate:checked": (F) => N.checked = F,
|
|
384
|
+
onChange: (F) => {
|
|
385
|
+
T(N, b, !F.checked);
|
|
382
386
|
}
|
|
383
387
|
}, null)]), v("div", {
|
|
384
388
|
class: "f-list-content"
|
|
385
389
|
}, [v("div", {
|
|
386
|
-
style:
|
|
387
|
-
title:
|
|
388
|
-
}, [
|
|
390
|
+
style: C.value,
|
|
391
|
+
title: N.raw[i.value] || N.raw[l.value]
|
|
392
|
+
}, [N.raw[l.value]])])]);
|
|
389
393
|
}
|
|
390
394
|
return {
|
|
391
|
-
renderItem:
|
|
395
|
+
renderItem: E
|
|
392
396
|
};
|
|
393
397
|
}
|
|
394
|
-
function
|
|
395
|
-
const
|
|
398
|
+
function Go(e, t, n, o, a, r, s, f, y, p) {
|
|
399
|
+
const c = w(e.multiSelect), l = w(e.disableField), {
|
|
396
400
|
onMouseenterItem: i,
|
|
397
401
|
onMouseoverItem: I,
|
|
398
|
-
onMouseoutItem:
|
|
402
|
+
onMouseoutItem: V
|
|
399
403
|
} = r, {
|
|
400
|
-
getKey:
|
|
404
|
+
getKey: h,
|
|
401
405
|
listViewItemClass: x,
|
|
402
|
-
onCheckItem:
|
|
403
|
-
onClickItem:
|
|
406
|
+
onCheckItem: _,
|
|
407
|
+
onClickItem: d
|
|
404
408
|
} = s;
|
|
405
|
-
function
|
|
409
|
+
function k(m, C, E) {
|
|
406
410
|
return t.slots.content ? v(me, null, [t.slots.content && t.slots.content({
|
|
407
|
-
item:
|
|
408
|
-
index:
|
|
409
|
-
selectedItem:
|
|
411
|
+
item: m.raw,
|
|
412
|
+
index: C,
|
|
413
|
+
selectedItem: E
|
|
410
414
|
})]) : v("div", {
|
|
411
415
|
style: "margin: 10px 0;"
|
|
412
|
-
}, [
|
|
416
|
+
}, [m.raw.name]);
|
|
413
417
|
}
|
|
414
|
-
function
|
|
418
|
+
function T(m, C, E) {
|
|
415
419
|
return v("li", {
|
|
416
|
-
class: x(
|
|
417
|
-
id: m
|
|
418
|
-
key: m
|
|
419
|
-
onClick: (
|
|
420
|
-
onMouseenter: (
|
|
421
|
-
onMouseover: (
|
|
422
|
-
onMouseout: (
|
|
423
|
-
}, [
|
|
420
|
+
class: x(m, C),
|
|
421
|
+
id: h(m, C),
|
|
422
|
+
key: h(m, C),
|
|
423
|
+
onClick: (N) => d(N, m, C),
|
|
424
|
+
onMouseenter: (N) => i(N, m, C),
|
|
425
|
+
onMouseover: (N) => I(N, m, C),
|
|
426
|
+
onMouseout: (N) => V(N, m, C)
|
|
427
|
+
}, [c.value && v("div", {
|
|
424
428
|
class: "f-list-select",
|
|
425
|
-
onClick: (
|
|
429
|
+
onClick: (N) => N.stopPropagation()
|
|
426
430
|
}, [v(Be, {
|
|
427
|
-
id: "list-" + m
|
|
431
|
+
id: "list-" + h(m, C),
|
|
428
432
|
customClass: "listview-checkbox",
|
|
429
|
-
disabled:
|
|
430
|
-
checked:
|
|
431
|
-
"onUpdate:checked": (
|
|
432
|
-
onChange: (
|
|
433
|
+
disabled: m[l.value] || !m.checked,
|
|
434
|
+
checked: m.checked,
|
|
435
|
+
"onUpdate:checked": (N) => m.checked = N,
|
|
436
|
+
onChange: (N) => _(m, C, !N.checked)
|
|
433
437
|
}, null)]), v("div", {
|
|
434
438
|
class: "f-list-content"
|
|
435
|
-
}, [
|
|
439
|
+
}, [k(m, C, E)])]);
|
|
436
440
|
}
|
|
437
441
|
return {
|
|
438
|
-
renderItem:
|
|
442
|
+
renderItem: T
|
|
439
443
|
};
|
|
440
444
|
}
|
|
441
|
-
function
|
|
442
|
-
const
|
|
445
|
+
function Ho(e, t, n, o, a, r, s, f, y, p) {
|
|
446
|
+
const c = w(e.multiSelect), l = w(e.disableField), {
|
|
443
447
|
onMouseenterItem: i,
|
|
444
448
|
onMouseoverItem: I,
|
|
445
|
-
onMouseoutItem:
|
|
449
|
+
onMouseoutItem: V
|
|
446
450
|
} = r, {
|
|
447
|
-
getKey:
|
|
451
|
+
getKey: h,
|
|
448
452
|
listViewItemClass: x,
|
|
449
|
-
onCheckItem:
|
|
450
|
-
onClickItem:
|
|
453
|
+
onCheckItem: _,
|
|
454
|
+
onClickItem: d
|
|
451
455
|
} = s, {
|
|
452
|
-
dragstart:
|
|
453
|
-
dragenter:
|
|
454
|
-
dragover:
|
|
455
|
-
dragend:
|
|
456
|
+
dragstart: k,
|
|
457
|
+
dragenter: T,
|
|
458
|
+
dragover: m,
|
|
459
|
+
dragend: C
|
|
456
460
|
} = o, {
|
|
457
|
-
removeItem:
|
|
458
|
-
} =
|
|
459
|
-
margin:
|
|
461
|
+
removeItem: E
|
|
462
|
+
} = y, N = R(() => ({
|
|
463
|
+
margin: c.value ? "10px 0" : "10px 0px 10px 14px"
|
|
460
464
|
}));
|
|
461
|
-
function
|
|
465
|
+
function b(u) {
|
|
462
466
|
return v("div", {
|
|
463
|
-
style:
|
|
467
|
+
style: N.value
|
|
464
468
|
}, [u.raw.name]);
|
|
465
469
|
}
|
|
466
|
-
function
|
|
467
|
-
return t.slots.itemContent ? t.slots.itemContent :
|
|
470
|
+
function D() {
|
|
471
|
+
return t.slots.itemContent ? t.slots.itemContent : b;
|
|
468
472
|
}
|
|
469
|
-
const
|
|
470
|
-
function S(u,
|
|
473
|
+
const F = D();
|
|
474
|
+
function S(u, g, B) {
|
|
471
475
|
return v("li", {
|
|
472
|
-
class: x(u,
|
|
473
|
-
id:
|
|
474
|
-
key:
|
|
475
|
-
onClick: (
|
|
476
|
-
onMouseenter: (
|
|
477
|
-
onMouseover: (
|
|
478
|
-
onMouseout: (
|
|
476
|
+
class: x(u, g),
|
|
477
|
+
id: h(u, g),
|
|
478
|
+
key: h(u, g),
|
|
479
|
+
onClick: (M) => d(M, u, g),
|
|
480
|
+
onMouseenter: (M) => i(M, u, g),
|
|
481
|
+
onMouseover: (M) => I(M, u, g),
|
|
482
|
+
onMouseout: (M) => V(M, u, g),
|
|
479
483
|
draggable: "true",
|
|
480
|
-
onDragstart: (
|
|
481
|
-
onDragenter: (
|
|
482
|
-
onDragend: (
|
|
483
|
-
onDragover: (
|
|
484
|
-
}, [
|
|
484
|
+
onDragstart: (M) => k(M, u, g),
|
|
485
|
+
onDragenter: (M) => T(M, g),
|
|
486
|
+
onDragend: (M) => C(M, u),
|
|
487
|
+
onDragover: (M) => m(M, g)
|
|
488
|
+
}, [c.value && v("div", {
|
|
485
489
|
class: "f-list-select",
|
|
486
|
-
onClick: (
|
|
490
|
+
onClick: (M) => M.stopPropagation()
|
|
487
491
|
}, [v(Be, {
|
|
488
|
-
id: "list-" +
|
|
492
|
+
id: "list-" + h(u, g),
|
|
489
493
|
customClass: "listview-checkbox",
|
|
490
494
|
disabled: u[l.value] || !u.checked,
|
|
491
495
|
checked: u.checked,
|
|
492
|
-
"onUpdate:checked": (
|
|
493
|
-
onChange: (
|
|
496
|
+
"onUpdate:checked": (M) => u.checked = M,
|
|
497
|
+
onChange: (M) => _(u, g, !M.checked)
|
|
494
498
|
}, null)]), v("div", {
|
|
495
499
|
class: "f-list-content"
|
|
496
|
-
}, [
|
|
500
|
+
}, [F(u)]), v("div", {
|
|
497
501
|
class: "f-list-remove",
|
|
498
|
-
onClick: (
|
|
502
|
+
onClick: (M) => E(g)
|
|
499
503
|
}, [v("div", {
|
|
500
504
|
class: "f-list-remove-icon"
|
|
501
505
|
}, [v("i", {
|
|
@@ -510,47 +514,47 @@ function jo(e, t, n, o, a, r, s, f, g, p) {
|
|
|
510
514
|
renderItem: S
|
|
511
515
|
};
|
|
512
516
|
}
|
|
513
|
-
function
|
|
514
|
-
var
|
|
515
|
-
const
|
|
517
|
+
function qo(e, t, n, o, a, r, s, f, y, p) {
|
|
518
|
+
var h;
|
|
519
|
+
const c = w(((h = e.group) == null ? void 0 : h.groupFields) || []), {
|
|
516
520
|
collpaseGroupIconClass: l
|
|
517
521
|
} = a, {
|
|
518
522
|
toggleGroupRow: i
|
|
519
523
|
} = p;
|
|
520
|
-
function I(x,
|
|
521
|
-
|
|
524
|
+
function I(x, _) {
|
|
525
|
+
_.collapse = !_.collapse, n.value = i(_.collapse ? "collapse" : "expand", _, n.value);
|
|
522
526
|
}
|
|
523
|
-
function
|
|
527
|
+
function V(x, _, d) {
|
|
524
528
|
return x.layer > -1 && v("div", {
|
|
525
529
|
class: "f-navlookup-recentHeader",
|
|
526
|
-
onClick: (
|
|
530
|
+
onClick: (k) => I(k, x)
|
|
527
531
|
}, [v("div", {
|
|
528
532
|
class: "fv-grid-group-row-icon"
|
|
529
533
|
}, [v("span", {
|
|
530
534
|
class: l(x)
|
|
531
535
|
}, null)]), v("div", {
|
|
532
536
|
class: "f-navlookup-recommandLabel"
|
|
533
|
-
}, [x.raw[
|
|
537
|
+
}, [x.raw[c.value[x.layer]]])]);
|
|
534
538
|
}
|
|
535
539
|
return {
|
|
536
|
-
renderItem:
|
|
540
|
+
renderItem: V
|
|
537
541
|
};
|
|
538
542
|
}
|
|
539
|
-
function
|
|
543
|
+
function zo() {
|
|
540
544
|
const e = w(-1), t = w(""), n = w(-1), o = w(!1);
|
|
541
|
-
function a(p,
|
|
545
|
+
function a(p, c, l) {
|
|
542
546
|
n.value = l;
|
|
543
547
|
}
|
|
544
|
-
function r(p,
|
|
548
|
+
function r(p, c, l) {
|
|
545
549
|
o.value || (n.value = l);
|
|
546
550
|
}
|
|
547
|
-
function s(p,
|
|
551
|
+
function s(p, c, l) {
|
|
548
552
|
n.value = -1;
|
|
549
553
|
}
|
|
550
554
|
function f() {
|
|
551
555
|
o.value = !0;
|
|
552
556
|
}
|
|
553
|
-
function
|
|
557
|
+
function y() {
|
|
554
558
|
o.value = !1;
|
|
555
559
|
}
|
|
556
560
|
return {
|
|
@@ -560,40 +564,40 @@ function Ho() {
|
|
|
560
564
|
onMouseenterItem: a,
|
|
561
565
|
onMouseoverItem: r,
|
|
562
566
|
onMouseoutItem: s,
|
|
563
|
-
resumeHover:
|
|
567
|
+
resumeHover: y,
|
|
564
568
|
suspendHover: f
|
|
565
569
|
};
|
|
566
570
|
}
|
|
567
|
-
function
|
|
568
|
-
const a = w(e.idField), { dataView: r } = n, s = w(-1), f = w(!1), { activeIndex:
|
|
569
|
-
function I(
|
|
570
|
-
|
|
571
|
-
s.value =
|
|
571
|
+
function Wo(e, t, n, o) {
|
|
572
|
+
const a = w(e.idField), { dataView: r } = n, s = w(-1), f = w(!1), { activeIndex: y, focusedItemId: p, hoverIndex: c, resumeHover: l, suspendHover: i } = o;
|
|
573
|
+
function I(_, d, k) {
|
|
574
|
+
_.stopPropagation(), i(), d && setTimeout(() => {
|
|
575
|
+
s.value = k, f.value = !0, d.moving = !0;
|
|
572
576
|
});
|
|
573
577
|
}
|
|
574
|
-
function
|
|
575
|
-
if (
|
|
576
|
-
const
|
|
577
|
-
|
|
578
|
+
function V(_, d) {
|
|
579
|
+
if (_.preventDefault(), s.value !== d) {
|
|
580
|
+
const k = r.value[s.value], T = r.value;
|
|
581
|
+
T.splice(s.value, 1), T.splice(d, 0, k), s.value = d;
|
|
578
582
|
}
|
|
579
583
|
}
|
|
580
|
-
function
|
|
581
|
-
|
|
584
|
+
function h(_, d) {
|
|
585
|
+
_.preventDefault(), _.dataTransfer && (_.dataTransfer.dropEffect = "move");
|
|
582
586
|
}
|
|
583
|
-
function x(
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
}), f.value = !1, l(),
|
|
587
|
+
function x(_, d) {
|
|
588
|
+
d && (d.moving = !1), r.value.forEach((k, T) => {
|
|
589
|
+
k.__fv_index__ = T;
|
|
590
|
+
}), f.value = !1, l(), c.value = d.raw.__fv_index__, y.value = d.raw.__fv_index__, p.value = d.raw[a.value], t.emit("change", r.value), t.emit("activeChange", d);
|
|
587
591
|
}
|
|
588
592
|
return {
|
|
589
593
|
dragstart: I,
|
|
590
|
-
dragenter:
|
|
591
|
-
dragover:
|
|
594
|
+
dragenter: V,
|
|
595
|
+
dragover: h,
|
|
592
596
|
dragend: x,
|
|
593
597
|
isDragging: f
|
|
594
598
|
};
|
|
595
599
|
}
|
|
596
|
-
function
|
|
600
|
+
function Uo(e, t, n) {
|
|
597
601
|
const { dataView: o } = n;
|
|
598
602
|
function a(r) {
|
|
599
603
|
if (r > -1 && r < o.value.length) {
|
|
@@ -603,76 +607,76 @@ function zo(e, t, n) {
|
|
|
603
607
|
}
|
|
604
608
|
return { removeItem: a };
|
|
605
609
|
}
|
|
606
|
-
function
|
|
607
|
-
const s = w(e.idField), f = w(e.disableField),
|
|
610
|
+
function Ko(e, t, n, o, a, r) {
|
|
611
|
+
const s = w(e.idField), f = w(e.disableField), y = w(e.draggable), p = w(e.itemClass), c = w(e.selection.multiSelect ?? !1), l = w(e.selection.multiSelectMode);
|
|
608
612
|
w(!0);
|
|
609
|
-
const { isDragging: i } = o, { activeIndex: I, focusedItemId:
|
|
610
|
-
function
|
|
613
|
+
const { isDragging: i } = o, { activeIndex: I, focusedItemId: V, hoverIndex: h } = a, { clearSelection: x, getSelectedItems: _, toggleSelectItem: d } = r, k = w(_());
|
|
614
|
+
function T(F, S) {
|
|
611
615
|
const u = {
|
|
612
616
|
"f-list-view-group-item": !0,
|
|
613
|
-
"f-list-view-draggable-item":
|
|
614
|
-
"f-un-click": !
|
|
615
|
-
"f-un-select": !!
|
|
616
|
-
"f-listview-active":
|
|
617
|
-
"f-listview-hover": !i.value && S ===
|
|
618
|
-
moving: !!
|
|
617
|
+
"f-list-view-draggable-item": y.value,
|
|
618
|
+
"f-un-click": !F.checked,
|
|
619
|
+
"f-un-select": !!F.raw[f.value],
|
|
620
|
+
"f-listview-active": F.raw.__fv_index__ === I.value,
|
|
621
|
+
"f-listview-hover": !i.value && S === h.value,
|
|
622
|
+
moving: !!F.moving
|
|
619
623
|
};
|
|
620
|
-
return p.value.split(" ").reduce((
|
|
624
|
+
return p.value.split(" ").reduce((B, M) => (B[M] = !0, B), u), u;
|
|
621
625
|
}
|
|
622
|
-
function
|
|
623
|
-
return
|
|
626
|
+
function m(F, S) {
|
|
627
|
+
return F.raw[s.value] || "";
|
|
624
628
|
}
|
|
625
|
-
const
|
|
626
|
-
function
|
|
627
|
-
|
|
629
|
+
const C = R(() => !c.value);
|
|
630
|
+
function E(F, S, u) {
|
|
631
|
+
F.checked = u, !F.raw[f.value] && (C.value && (V.value = F.raw[s.value]), d(F));
|
|
628
632
|
}
|
|
629
|
-
const
|
|
630
|
-
function
|
|
633
|
+
const N = R(() => c.value && l.value === "OnCheckClearByClick"), b = R(() => !c.value || c.value && (l.value === "OnCheckAndClick" || l.value === "OnClick"));
|
|
634
|
+
function D(F, S, u) {
|
|
631
635
|
if (S.raw[f.value]) {
|
|
632
|
-
|
|
636
|
+
F.preventDefault(), F.stopPropagation();
|
|
633
637
|
return;
|
|
634
638
|
}
|
|
635
|
-
|
|
639
|
+
V.value = S.raw[s.value], I.value = u, N.value && x(n.value), b.value && (d(S), k.value = _()), t.emit("clickItem", { data: k.value, index: u }), t.emit("activeChange", k.value);
|
|
636
640
|
}
|
|
637
641
|
return {
|
|
638
|
-
getKey:
|
|
639
|
-
listViewItemClass:
|
|
640
|
-
onCheckItem:
|
|
641
|
-
onClickItem:
|
|
642
|
+
getKey: m,
|
|
643
|
+
listViewItemClass: T,
|
|
644
|
+
onCheckItem: E,
|
|
645
|
+
onClickItem: D
|
|
642
646
|
};
|
|
643
647
|
}
|
|
644
648
|
function tt(e, t, n, o, a, r, s) {
|
|
645
|
-
const f = w(e.view),
|
|
649
|
+
const f = w(e.view), y = w(e.view === "CardView"), p = w({}), c = w("暂无数据"), l = zo(), i = Wo(e, t, o, l), I = Uo(e, t, o), V = Ko(e, t, n, i, l, r), h = R(() => ({
|
|
646
650
|
"f-list-view-group": !0,
|
|
647
|
-
"d-flex":
|
|
648
|
-
"flex-wrap":
|
|
649
|
-
})), x =
|
|
650
|
-
function
|
|
651
|
-
return f.value === "SingleView" ? Ge : f.value === "DraggableView" ?
|
|
652
|
-
}
|
|
653
|
-
const V = F(), {
|
|
654
|
-
renderItem: c
|
|
655
|
-
} = V(e, t, n, i, a, l, k, r, I, s), {
|
|
656
|
-
renderItem: b
|
|
657
|
-
} = Go(e, t, n, i, a, l, k, r, I, s), D = [c, b];
|
|
658
|
-
function E() {
|
|
659
|
-
return n.value.filter((T) => T.visible !== !1).map((T, S) => D[T.type](T, S, p));
|
|
651
|
+
"d-flex": y.value,
|
|
652
|
+
"flex-wrap": y.value
|
|
653
|
+
})), x = R(() => !!n.value && n.value.length > 0), _ = R(() => n.value.length === 0), d = R(() => _.value && !t.slots.empty);
|
|
654
|
+
function k() {
|
|
655
|
+
return f.value === "SingleView" ? Ge : f.value === "DraggableView" ? Ho : (f.value === "ContentView" || f.value === "CardView") && t.slots.content ? Go : Ge;
|
|
660
656
|
}
|
|
661
|
-
|
|
657
|
+
const T = k(), {
|
|
658
|
+
renderItem: m
|
|
659
|
+
} = T(e, t, n, i, a, l, V, r, I, s), {
|
|
660
|
+
renderItem: C
|
|
661
|
+
} = qo(e, t, n, i, a, l, V, r, I, s), E = [m, C];
|
|
662
|
+
function N() {
|
|
663
|
+
return n.value.filter((F) => F.visible !== !1).map((F, S) => E[F.type](F, S, p));
|
|
664
|
+
}
|
|
665
|
+
function b() {
|
|
662
666
|
return v("div", {
|
|
663
667
|
class: "f-list-view-emptydata"
|
|
664
668
|
}, [v("p", {
|
|
665
669
|
class: "f-empty-title"
|
|
666
|
-
}, [
|
|
670
|
+
}, [c.value])]);
|
|
667
671
|
}
|
|
668
|
-
function
|
|
672
|
+
function D() {
|
|
669
673
|
return v("ul", {
|
|
670
|
-
class:
|
|
674
|
+
class: h.value,
|
|
671
675
|
style: "list-style: none;"
|
|
672
|
-
}, [x.value &&
|
|
676
|
+
}, [x.value && N(), d.value && b(), t.slots.empty && t.slots.empty()]);
|
|
673
677
|
}
|
|
674
678
|
return {
|
|
675
|
-
renderListArea:
|
|
679
|
+
renderListArea: D
|
|
676
680
|
};
|
|
677
681
|
}
|
|
678
682
|
function nt(e, t, n) {
|
|
@@ -686,26 +690,26 @@ function nt(e, t, n) {
|
|
|
686
690
|
};
|
|
687
691
|
}
|
|
688
692
|
function Ce(e, t, n) {
|
|
689
|
-
const o = w(e.headerClass), a = w(e.placeholder), r = w(""), s =
|
|
690
|
-
function
|
|
693
|
+
const o = w(e.headerClass), a = w(e.placeholder), r = w(""), s = R(() => !r.value), f = R(() => !!r.value);
|
|
694
|
+
function y(i) {
|
|
691
695
|
r.value = "";
|
|
692
696
|
}
|
|
693
697
|
Q(r, (i) => {
|
|
694
|
-
n.search(i);
|
|
698
|
+
e.enableHighlightSearch && n.search(i), t.emit("afterSearch", i);
|
|
695
699
|
});
|
|
696
|
-
const p =
|
|
700
|
+
const p = R(() => {
|
|
697
701
|
const i = {
|
|
698
702
|
"form-group": !0,
|
|
699
703
|
"farris-form-group": !0
|
|
700
704
|
};
|
|
701
|
-
return o.value && o.value.split(" ").reduce((
|
|
705
|
+
return o.value && o.value.split(" ").reduce((V, h) => (V[h] = !0, V), i), i;
|
|
702
706
|
});
|
|
703
|
-
function
|
|
707
|
+
function c(i) {
|
|
704
708
|
}
|
|
705
709
|
function l() {
|
|
706
710
|
return v("div", {
|
|
707
711
|
class: "f-list-view-header",
|
|
708
|
-
onClick: Wt(() =>
|
|
712
|
+
onClick: Wt(() => c, ["prevent", "stop"])
|
|
709
713
|
}, [v("div", {
|
|
710
714
|
class: p.value
|
|
711
715
|
}, [v("div", {
|
|
@@ -725,7 +729,7 @@ function Ce(e, t, n) {
|
|
|
725
729
|
class: "input-group-append"
|
|
726
730
|
}, [f.value && v("span", {
|
|
727
731
|
class: "input-group-text input-group-clear",
|
|
728
|
-
onClick: (i) =>
|
|
732
|
+
onClick: (i) => y()
|
|
729
733
|
}, [v("i", {
|
|
730
734
|
class: "f-icon f-icon-close-circle"
|
|
731
735
|
}, null)]), s.value && v("span", {
|
|
@@ -741,43 +745,43 @@ function Ce(e, t, n) {
|
|
|
741
745
|
const ve = /* @__PURE__ */ oe({
|
|
742
746
|
name: "FListView",
|
|
743
747
|
props: we,
|
|
744
|
-
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
748
|
+
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
745
749
|
setup(e, t) {
|
|
746
|
-
const n = w(), o = w(!0), a = w(!1), r = w([]), s = 0, f = w(e.columns),
|
|
747
|
-
getVisualData:
|
|
748
|
-
} =
|
|
749
|
-
r.value =
|
|
750
|
-
const
|
|
750
|
+
const n = w(), o = w(!0), a = w(!1), r = w([]), s = 0, f = w(e.columns), y = Zt(e), p = en(e), c = tn(e, y), l = nn(e), i = on(e, /* @__PURE__ */ new Map(), p, y, l), I = an(e, i, y, r, t), V = et(e, n), h = R(() => i.dataView.value.length), x = rn(e, y), _ = sn(), d = ln(e, {}, _), k = un(e, x, p, y, _, d), T = cn(e, y, d, k), m = dn(e, y, d, k), C = fn(e, f, i, h, s, k, T, m), {
|
|
751
|
+
getVisualData: E
|
|
752
|
+
} = C;
|
|
753
|
+
r.value = E(0, h.value + s - 1);
|
|
754
|
+
const N = R(() => {
|
|
751
755
|
const A = {
|
|
752
756
|
"f-list-view": !0,
|
|
753
757
|
"f-list-view-multiple": e.multiSelect
|
|
754
758
|
};
|
|
755
759
|
return e.size !== "default" && (A[`${e.size}-item`] = !0), A;
|
|
756
|
-
}),
|
|
757
|
-
function
|
|
760
|
+
}), b = R(() => !!t.slots.footer || o.value);
|
|
761
|
+
function D() {
|
|
758
762
|
return e.header === "SearchBar" ? Ce : e.header === "ContentHeader" ? nt : Ce;
|
|
759
763
|
}
|
|
760
|
-
const
|
|
764
|
+
const F = D(), {
|
|
761
765
|
renderHeader: S
|
|
762
|
-
} =
|
|
766
|
+
} = F(e, t, V), {
|
|
763
767
|
renderListArea: u
|
|
764
|
-
} = tt(e, t, r, i,
|
|
765
|
-
function
|
|
766
|
-
|
|
768
|
+
} = tt(e, t, r, i, c, I, C);
|
|
769
|
+
function g(A) {
|
|
770
|
+
V.search(A);
|
|
767
771
|
}
|
|
768
|
-
function
|
|
769
|
-
A && (i.load(A), r.value =
|
|
772
|
+
function B(A) {
|
|
773
|
+
A && (i.load(A), r.value = E(0, h.value + s - 1));
|
|
770
774
|
}
|
|
771
775
|
t.expose({
|
|
772
|
-
search:
|
|
773
|
-
updateDataSource:
|
|
776
|
+
search: g,
|
|
777
|
+
updateDataSource: B
|
|
774
778
|
});
|
|
775
|
-
function
|
|
779
|
+
function M(A) {
|
|
776
780
|
e.multiSelect && (A.preventDefault(), A.stopPropagation());
|
|
777
781
|
}
|
|
778
782
|
return () => v("div", {
|
|
779
|
-
class:
|
|
780
|
-
onClick:
|
|
783
|
+
class: N.value,
|
|
784
|
+
onClick: M
|
|
781
785
|
}, [S(), v("div", {
|
|
782
786
|
ref: n,
|
|
783
787
|
class: "f-list-view-content",
|
|
@@ -787,95 +791,95 @@ const ve = /* @__PURE__ */ oe({
|
|
|
787
791
|
onMouseleave: () => {
|
|
788
792
|
a.value = !1;
|
|
789
793
|
}
|
|
790
|
-
}, [u()]),
|
|
794
|
+
}, [u()]), b.value && v("div", {
|
|
791
795
|
class: "f-list-view-footer"
|
|
792
796
|
}, [t.slots.footer && t.slots.footer()])]);
|
|
793
797
|
}
|
|
794
798
|
});
|
|
795
799
|
function ot(e, t, n) {
|
|
796
|
-
var
|
|
800
|
+
var m;
|
|
797
801
|
function o() {
|
|
798
802
|
}
|
|
799
803
|
const a = "", r = "", s = w();
|
|
800
804
|
function f() {
|
|
801
805
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
802
806
|
}
|
|
803
|
-
function
|
|
807
|
+
function y() {
|
|
804
808
|
return !1;
|
|
805
809
|
}
|
|
806
810
|
function p() {
|
|
807
811
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
808
812
|
}
|
|
809
|
-
function
|
|
813
|
+
function c() {
|
|
810
814
|
return (t == null ? void 0 : t.schema.componentType) === "frame";
|
|
811
815
|
}
|
|
812
|
-
function l(
|
|
813
|
-
if (!
|
|
816
|
+
function l(C) {
|
|
817
|
+
if (!C || !C.value)
|
|
814
818
|
return null;
|
|
815
|
-
if (
|
|
816
|
-
return
|
|
817
|
-
const
|
|
818
|
-
return
|
|
819
|
+
if (C.value.schema && C.value.schema.type === "component")
|
|
820
|
+
return C.value;
|
|
821
|
+
const E = w(C == null ? void 0 : C.value.parent), N = l(E);
|
|
822
|
+
return N || null;
|
|
819
823
|
}
|
|
820
|
-
function i(
|
|
821
|
-
const { componentInstance:
|
|
822
|
-
return !
|
|
824
|
+
function i(C = t) {
|
|
825
|
+
const { componentInstance: E, designerItemElementRef: N } = C;
|
|
826
|
+
return !E || !E.value ? null : E.value.canMove ? N : i(C.parent);
|
|
823
827
|
}
|
|
824
|
-
function I(
|
|
828
|
+
function I(C) {
|
|
825
829
|
return !!n;
|
|
826
830
|
}
|
|
827
|
-
function
|
|
831
|
+
function V() {
|
|
828
832
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
829
833
|
}
|
|
830
|
-
function
|
|
834
|
+
function h() {
|
|
831
835
|
}
|
|
832
|
-
function x(
|
|
836
|
+
function x(C, E) {
|
|
833
837
|
}
|
|
834
|
-
function
|
|
835
|
-
const { componentType:
|
|
836
|
-
let
|
|
837
|
-
const
|
|
838
|
-
return
|
|
838
|
+
function _(C) {
|
|
839
|
+
const { componentType: E } = C;
|
|
840
|
+
let N = xe(E, C);
|
|
841
|
+
const b = E.toLowerCase().replace("-", "_");
|
|
842
|
+
return N && !N.id && N.type === E && (N.id = `${b}_${Math.random().toString().slice(2, 6)}`), N;
|
|
839
843
|
}
|
|
840
|
-
function C
|
|
841
|
-
const
|
|
842
|
-
|
|
843
|
-
let
|
|
844
|
-
const S =
|
|
845
|
-
return
|
|
844
|
+
function d(C, E) {
|
|
845
|
+
const N = String(C.getAttribute("data-controltype")), b = C.getAttribute("data-feature"), D = b ? JSON.parse(b) : {};
|
|
846
|
+
D.parentComponentInstance = s.value;
|
|
847
|
+
let F = xe(N, D);
|
|
848
|
+
const S = N.toLowerCase().replace("-", "_");
|
|
849
|
+
return F && !F.id && F.type === N && (F.id = `${S}_${Math.random().toString().slice(2, 6)}`), F;
|
|
846
850
|
}
|
|
847
|
-
function
|
|
851
|
+
function k(C) {
|
|
848
852
|
}
|
|
849
|
-
function
|
|
853
|
+
function T(...C) {
|
|
850
854
|
}
|
|
851
855
|
return s.value = {
|
|
852
856
|
canMove: f(),
|
|
853
|
-
canSelectParent:
|
|
857
|
+
canSelectParent: y(),
|
|
854
858
|
canDelete: p(),
|
|
855
|
-
canNested: !
|
|
859
|
+
canNested: !c(),
|
|
856
860
|
contents: t == null ? void 0 : t.schema.contents,
|
|
857
861
|
elementRef: e,
|
|
858
|
-
parent: (
|
|
862
|
+
parent: (m = t == null ? void 0 : t.parent) == null ? void 0 : m.componentInstance,
|
|
859
863
|
schema: t == null ? void 0 : t.schema,
|
|
860
864
|
styles: a,
|
|
861
865
|
designerClass: r,
|
|
862
866
|
canAccepts: I,
|
|
863
867
|
getBelongedComponentInstance: l,
|
|
864
868
|
getDraggableDesignItemElement: i,
|
|
865
|
-
getDraggingDisplayText:
|
|
866
|
-
getPropConfig:
|
|
867
|
-
getDragScopeElement:
|
|
869
|
+
getDraggingDisplayText: V,
|
|
870
|
+
getPropConfig: T,
|
|
871
|
+
getDragScopeElement: h,
|
|
868
872
|
onAcceptMovedChildElement: x,
|
|
869
|
-
onAcceptNewChildElement:
|
|
870
|
-
onChildElementMovedOut:
|
|
871
|
-
addNewChildComponentSchema:
|
|
873
|
+
onAcceptNewChildElement: d,
|
|
874
|
+
onChildElementMovedOut: k,
|
|
875
|
+
addNewChildComponentSchema: _,
|
|
872
876
|
updateDragAndDropRules: o,
|
|
873
877
|
triggerBelongedComponentToMoveWhenMoved: w(!1),
|
|
874
878
|
triggerBelongedComponentToDeleteWhenDeleted: w(!1)
|
|
875
879
|
}, s;
|
|
876
880
|
}
|
|
877
881
|
var Z = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(Z || {}), le = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(le || {}), Se = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(Se || {});
|
|
878
|
-
function
|
|
882
|
+
function Qo() {
|
|
879
883
|
function e(n, o) {
|
|
880
884
|
const a = n.pre;
|
|
881
885
|
if (a) {
|
|
@@ -892,7 +896,7 @@ function Uo() {
|
|
|
892
896
|
}
|
|
893
897
|
return { updateRowPosition: e, updateVisualInfomation: t };
|
|
894
898
|
}
|
|
895
|
-
function
|
|
899
|
+
function Yo() {
|
|
896
900
|
function e(o, a) {
|
|
897
901
|
switch (o.command) {
|
|
898
902
|
case "edit":
|
|
@@ -952,11 +956,11 @@ const at = {
|
|
|
952
956
|
*/
|
|
953
957
|
isControlInline: { type: Boolean, default: !0 }
|
|
954
958
|
};
|
|
955
|
-
class
|
|
959
|
+
class Jo {
|
|
956
960
|
constructor(t = { value: [] }) {
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
961
|
+
z(this, "editorType", "check-box");
|
|
962
|
+
z(this, "value");
|
|
963
|
+
z(this, "valueType", "boolean");
|
|
960
964
|
this.value = t.value;
|
|
961
965
|
}
|
|
962
966
|
clear() {
|
|
@@ -972,13 +976,13 @@ class Qo {
|
|
|
972
976
|
return this.value.length === 0;
|
|
973
977
|
}
|
|
974
978
|
}
|
|
975
|
-
class
|
|
979
|
+
class Xo {
|
|
976
980
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
981
|
+
z(this, "editorType", "combo-lookup");
|
|
982
|
+
z(this, "textValue");
|
|
983
|
+
z(this, "value");
|
|
984
|
+
z(this, "valueField");
|
|
985
|
+
z(this, "valueType", "text");
|
|
982
986
|
this.textValue = t.textValue, this.value = t.value, this.valueField = t.valueField;
|
|
983
987
|
}
|
|
984
988
|
clear() {
|
|
@@ -1006,11 +1010,11 @@ class Yo {
|
|
|
1006
1010
|
return !this.valueField;
|
|
1007
1011
|
}
|
|
1008
1012
|
}
|
|
1009
|
-
class
|
|
1013
|
+
class Zo {
|
|
1010
1014
|
constructor(t = { value: "" }) {
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1015
|
+
z(this, "editorType", "date-picker");
|
|
1016
|
+
z(this, "value");
|
|
1017
|
+
z(this, "valueType", "datetime");
|
|
1014
1018
|
this.value = t.value;
|
|
1015
1019
|
}
|
|
1016
1020
|
setValue(t) {
|
|
@@ -1028,10 +1032,10 @@ class Jo {
|
|
|
1028
1032
|
}
|
|
1029
1033
|
class He {
|
|
1030
1034
|
constructor(t = { begin: "", end: "" }) {
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
+
z(this, "editorType", "date-range");
|
|
1036
|
+
z(this, "begin", "");
|
|
1037
|
+
z(this, "end", "");
|
|
1038
|
+
z(this, "valueType", "datetime");
|
|
1035
1039
|
this.begin = t.begin, this.end = t.end;
|
|
1036
1040
|
}
|
|
1037
1041
|
clear() {
|
|
@@ -1047,11 +1051,11 @@ class He {
|
|
|
1047
1051
|
return !this.begin || !this.end;
|
|
1048
1052
|
}
|
|
1049
1053
|
}
|
|
1050
|
-
class
|
|
1054
|
+
class ea {
|
|
1051
1055
|
constructor(t = { value: "" }) {
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1056
|
+
z(this, "editorType", "datetime-picker");
|
|
1057
|
+
z(this, "value");
|
|
1058
|
+
z(this, "valueType", "datetime");
|
|
1055
1059
|
this.value = t.value;
|
|
1056
1060
|
}
|
|
1057
1061
|
clear() {
|
|
@@ -1067,14 +1071,14 @@ class Xo {
|
|
|
1067
1071
|
return !this.value;
|
|
1068
1072
|
}
|
|
1069
1073
|
}
|
|
1070
|
-
class
|
|
1074
|
+
class ta {
|
|
1071
1075
|
// 旧结构无,新结构为选中的value值,多选是以,分割的字符串
|
|
1072
1076
|
constructor(t = { value: "", dispalyText: "" }) {
|
|
1073
|
-
|
|
1074
|
-
|
|
1077
|
+
z(this, "editorType", "combo-list");
|
|
1078
|
+
z(this, "value");
|
|
1075
1079
|
// 旧结构{Type: '', Content: {value: string, name: string}} 新结构Array[{value: string, name: string}]
|
|
1076
|
-
|
|
1077
|
-
|
|
1080
|
+
z(this, "valueType", "enum");
|
|
1081
|
+
z(this, "displayText");
|
|
1078
1082
|
this.displayText = t.dispalyText, this.value = t.value;
|
|
1079
1083
|
}
|
|
1080
1084
|
clear() {
|
|
@@ -1090,18 +1094,18 @@ class Zo {
|
|
|
1090
1094
|
return !this.displayText;
|
|
1091
1095
|
}
|
|
1092
1096
|
}
|
|
1093
|
-
class
|
|
1097
|
+
class na {
|
|
1094
1098
|
constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
|
|
1095
|
-
|
|
1099
|
+
z(this, "editorType", "input-group");
|
|
1096
1100
|
// 通过弹窗返回的若干个值对象构成的数组
|
|
1097
|
-
|
|
1098
|
-
|
|
1101
|
+
z(this, "value");
|
|
1102
|
+
z(this, "valueType", "text");
|
|
1099
1103
|
// 控件内显示的值
|
|
1100
|
-
|
|
1104
|
+
z(this, "displayText");
|
|
1101
1105
|
// 弹窗模式下,取列表中哪个字段的值映射到当前字段
|
|
1102
|
-
|
|
1106
|
+
z(this, "valueField");
|
|
1103
1107
|
// 是否是手动输入的值
|
|
1104
|
-
|
|
1108
|
+
z(this, "isInputText");
|
|
1105
1109
|
this.value = t.value, this.displayText = t.displayText, this.valueField = t.displayField, this.isInputText = t.isInputText;
|
|
1106
1110
|
}
|
|
1107
1111
|
clear() {
|
|
@@ -1129,15 +1133,15 @@ class ea {
|
|
|
1129
1133
|
return !this.displayText;
|
|
1130
1134
|
}
|
|
1131
1135
|
}
|
|
1132
|
-
class
|
|
1136
|
+
class oa {
|
|
1133
1137
|
constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1138
|
+
z(this, "editorType", "lookup");
|
|
1139
|
+
z(this, "textValue");
|
|
1140
|
+
z(this, "value");
|
|
1141
|
+
z(this, "valueField");
|
|
1142
|
+
z(this, "valueType", "text");
|
|
1139
1143
|
// 帮助的值是否为手动输入的任意值,对应帮助的任意输入属性nosearch
|
|
1140
|
-
|
|
1144
|
+
z(this, "isInputText");
|
|
1141
1145
|
this.value = t.value, this.valueField = t.valueField, this.textValue = t.textValue, this.isInputText = t.isInputText;
|
|
1142
1146
|
}
|
|
1143
1147
|
clear() {
|
|
@@ -1165,11 +1169,11 @@ class ta {
|
|
|
1165
1169
|
return !this.value.length;
|
|
1166
1170
|
}
|
|
1167
1171
|
}
|
|
1168
|
-
class
|
|
1172
|
+
class aa {
|
|
1169
1173
|
constructor(t = { value: "" }) {
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1174
|
+
z(this, "editorType", "month-picker");
|
|
1175
|
+
z(this, "value");
|
|
1176
|
+
z(this, "valueType", "datetime");
|
|
1173
1177
|
this.value = t.value;
|
|
1174
1178
|
}
|
|
1175
1179
|
setValue(t) {
|
|
@@ -1185,12 +1189,12 @@ class na {
|
|
|
1185
1189
|
return !this.value;
|
|
1186
1190
|
}
|
|
1187
1191
|
}
|
|
1188
|
-
class
|
|
1192
|
+
class ra {
|
|
1189
1193
|
constructor(t = { begin: "", end: "" }) {
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
+
z(this, "editorType", "month-range");
|
|
1195
|
+
z(this, "begin");
|
|
1196
|
+
z(this, "end");
|
|
1197
|
+
z(this, "valueType", "datetime");
|
|
1194
1198
|
this.begin = t.begin, this.end = t.end;
|
|
1195
1199
|
}
|
|
1196
1200
|
clear() {
|
|
@@ -1206,12 +1210,12 @@ class oa {
|
|
|
1206
1210
|
return !this.begin || !this.end;
|
|
1207
1211
|
}
|
|
1208
1212
|
}
|
|
1209
|
-
class
|
|
1213
|
+
class ia {
|
|
1210
1214
|
constructor(t = { begin: null, end: null }) {
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
+
z(this, "editorType", "number-range");
|
|
1216
|
+
z(this, "begin");
|
|
1217
|
+
z(this, "end");
|
|
1218
|
+
z(this, "valueType", "number");
|
|
1215
1219
|
this.begin = t.begin == null ? null : parseFloat(t.begin), this.end = t.end == null ? null : parseFloat(t.end);
|
|
1216
1220
|
}
|
|
1217
1221
|
clear() {
|
|
@@ -1230,11 +1234,11 @@ class aa {
|
|
|
1230
1234
|
return this.begin == null && this.end == null;
|
|
1231
1235
|
}
|
|
1232
1236
|
}
|
|
1233
|
-
class
|
|
1237
|
+
class sa {
|
|
1234
1238
|
constructor(t = { value: "" }) {
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1239
|
+
z(this, "editorType", "number-spinner");
|
|
1240
|
+
z(this, "value");
|
|
1241
|
+
z(this, "valueType", "number");
|
|
1238
1242
|
this.value = t.value == null ? null : parseFloat(t.value);
|
|
1239
1243
|
}
|
|
1240
1244
|
clear() {
|
|
@@ -1250,11 +1254,11 @@ class ra {
|
|
|
1250
1254
|
return this.value == null;
|
|
1251
1255
|
}
|
|
1252
1256
|
}
|
|
1253
|
-
class
|
|
1257
|
+
class la {
|
|
1254
1258
|
constructor(t = { value: null }) {
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1259
|
+
z(this, "editorType", "radio-group");
|
|
1260
|
+
z(this, "value");
|
|
1261
|
+
z(this, "valueType", "enum");
|
|
1258
1262
|
this.value = t.value;
|
|
1259
1263
|
}
|
|
1260
1264
|
clear() {
|
|
@@ -1272,9 +1276,9 @@ class ia {
|
|
|
1272
1276
|
}
|
|
1273
1277
|
class rt {
|
|
1274
1278
|
constructor(t = { value: "" }) {
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1279
|
+
z(this, "editorType", "text");
|
|
1280
|
+
z(this, "value");
|
|
1281
|
+
z(this, "valueType", "text");
|
|
1278
1282
|
this.value = t.value;
|
|
1279
1283
|
}
|
|
1280
1284
|
clear() {
|
|
@@ -1294,33 +1298,33 @@ function it() {
|
|
|
1294
1298
|
function e(t, n) {
|
|
1295
1299
|
switch (t) {
|
|
1296
1300
|
case "check-box":
|
|
1297
|
-
return new
|
|
1301
|
+
return new Jo(n);
|
|
1298
1302
|
case "combo-list":
|
|
1299
|
-
return new
|
|
1303
|
+
return new ta(n);
|
|
1300
1304
|
case "combo-lookup":
|
|
1301
|
-
return new
|
|
1305
|
+
return new Xo(n);
|
|
1302
1306
|
case "input-group":
|
|
1303
|
-
return new
|
|
1307
|
+
return new na(n);
|
|
1304
1308
|
case "date-picker":
|
|
1305
|
-
return new
|
|
1309
|
+
return new Zo(n);
|
|
1306
1310
|
case "date-range":
|
|
1307
1311
|
return new He(n);
|
|
1308
1312
|
case "datetime-picker":
|
|
1309
|
-
return new
|
|
1313
|
+
return new ea(n);
|
|
1310
1314
|
case "datetime-range":
|
|
1311
1315
|
return new He(n);
|
|
1312
1316
|
case "lookup":
|
|
1313
|
-
return new
|
|
1317
|
+
return new oa(n);
|
|
1314
1318
|
case "month-picker":
|
|
1315
|
-
return new
|
|
1319
|
+
return new aa(n);
|
|
1316
1320
|
case "month-range":
|
|
1317
|
-
return new
|
|
1321
|
+
return new ra(n);
|
|
1318
1322
|
case "number-range":
|
|
1319
|
-
return new
|
|
1323
|
+
return new ia(n);
|
|
1320
1324
|
case "number-spinner":
|
|
1321
|
-
return new
|
|
1325
|
+
return new sa(n);
|
|
1322
1326
|
case "radio-group":
|
|
1323
|
-
return new
|
|
1327
|
+
return new la(n);
|
|
1324
1328
|
default:
|
|
1325
1329
|
return new rt(n);
|
|
1326
1330
|
}
|
|
@@ -1329,59 +1333,59 @@ function it() {
|
|
|
1329
1333
|
}
|
|
1330
1334
|
function st(e, t) {
|
|
1331
1335
|
const n = w(e.fields), o = w([]), a = /* @__PURE__ */ new Map(), { createConditionValue: r } = it();
|
|
1332
|
-
function s(
|
|
1333
|
-
switch (
|
|
1336
|
+
function s(c) {
|
|
1337
|
+
switch (c.editor ? c.editor.type : "input-group") {
|
|
1334
1338
|
case "date-range":
|
|
1335
|
-
|
|
1339
|
+
c.editor.type = "date-picker";
|
|
1336
1340
|
break;
|
|
1337
1341
|
case "datetime-range":
|
|
1338
|
-
|
|
1342
|
+
c.editor.type = "datetime-picker";
|
|
1339
1343
|
break;
|
|
1340
1344
|
case "number-range":
|
|
1341
|
-
|
|
1345
|
+
c.editor.type = "number-spinner";
|
|
1342
1346
|
break;
|
|
1343
1347
|
}
|
|
1344
|
-
return
|
|
1348
|
+
return c.editor;
|
|
1345
1349
|
}
|
|
1346
|
-
function f(
|
|
1347
|
-
return
|
|
1350
|
+
function f(c) {
|
|
1351
|
+
return c.map((i) => Object.assign({}, i)).map((i) => (i.editor = s(i), i));
|
|
1348
1352
|
}
|
|
1349
|
-
function
|
|
1350
|
-
n.value.reduce((l, i) => (
|
|
1353
|
+
function y(c = !0) {
|
|
1354
|
+
n.value.reduce((l, i) => (c || (i.editor = s(i)), l.set(i.labelCode, i), l), a);
|
|
1351
1355
|
}
|
|
1352
|
-
function p(
|
|
1353
|
-
return
|
|
1356
|
+
function p(c) {
|
|
1357
|
+
return c.forEach((l) => {
|
|
1354
1358
|
if (l && typeof l.valueConfig == "object") {
|
|
1355
1359
|
const i = a.get(l.fieldCode);
|
|
1356
1360
|
l.value = r(i.editor.type, l.valueConfig.content);
|
|
1357
1361
|
}
|
|
1358
|
-
}),
|
|
1362
|
+
}), c;
|
|
1359
1363
|
}
|
|
1360
|
-
return { convertToSingleControl: f, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs:
|
|
1364
|
+
return { convertToSingleControl: f, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: y, initialConditionValue: p };
|
|
1361
1365
|
}
|
|
1362
|
-
function
|
|
1363
|
-
const o = w(null), a = w(n), r = w(0), s =
|
|
1366
|
+
function ua(e, t, n) {
|
|
1367
|
+
const o = w(null), a = w(n), r = w(0), s = R(() => p(r.value));
|
|
1364
1368
|
function f() {
|
|
1365
|
-
a.value && (o.value = new ResizeObserver(
|
|
1366
|
-
const l =
|
|
1369
|
+
a.value && (o.value = new ResizeObserver(y((c) => {
|
|
1370
|
+
const l = c[0];
|
|
1367
1371
|
r.value = l.contentRect.width;
|
|
1368
1372
|
})), o.value.observe(a.value));
|
|
1369
1373
|
}
|
|
1370
|
-
function
|
|
1374
|
+
function y(c, l) {
|
|
1371
1375
|
let i = null;
|
|
1372
1376
|
return function() {
|
|
1373
1377
|
const I = arguments;
|
|
1374
1378
|
i || (i = setTimeout(() => {
|
|
1375
1379
|
i = null;
|
|
1376
|
-
}, 500),
|
|
1380
|
+
}, 500), c(...I));
|
|
1377
1381
|
};
|
|
1378
1382
|
}
|
|
1379
|
-
function p(
|
|
1383
|
+
function p(c) {
|
|
1380
1384
|
let i = "col-12";
|
|
1381
|
-
return
|
|
1385
|
+
return c > 250 * 6 ? i = "col-2" : c > 250 * 4 ? i = "col-3" : c > 250 * 3 ? i = "col-4" : c > 250 * 2 && (i = "col-6"), i;
|
|
1382
1386
|
}
|
|
1383
|
-
return Q([n], ([
|
|
1384
|
-
a.value =
|
|
1387
|
+
return Q([n], ([c]) => {
|
|
1388
|
+
a.value = c, f();
|
|
1385
1389
|
}), {
|
|
1386
1390
|
conditionClass: s,
|
|
1387
1391
|
resizeObserver: o
|
|
@@ -1394,38 +1398,38 @@ const qe = /* @__PURE__ */ oe({
|
|
|
1394
1398
|
setup(e, t) {
|
|
1395
1399
|
const n = w(), o = w(e.key), a = w(e.isControlInline), r = w(e.conditions), s = st(e), {
|
|
1396
1400
|
initialConditionValue: f,
|
|
1397
|
-
fieldMap:
|
|
1401
|
+
fieldMap: y,
|
|
1398
1402
|
loadFieldConfigs: p
|
|
1399
|
-
} = s,
|
|
1403
|
+
} = s, c = ua(e, t, n), {
|
|
1400
1404
|
conditionClass: l,
|
|
1401
1405
|
resizeObserver: i
|
|
1402
|
-
} =
|
|
1406
|
+
} = c;
|
|
1403
1407
|
p(!0), f(r.value), Qt(() => {
|
|
1404
|
-
var
|
|
1405
|
-
(
|
|
1408
|
+
var _;
|
|
1409
|
+
(_ = i.value) == null || _.unobserve(n.value);
|
|
1406
1410
|
}), Q(() => e.conditions, () => {
|
|
1407
1411
|
r.value = e.conditions;
|
|
1408
1412
|
});
|
|
1409
|
-
const I =
|
|
1413
|
+
const I = R(() => ({
|
|
1410
1414
|
// row: true,
|
|
1411
1415
|
"f-utils-flex-row-wrap": !0,
|
|
1412
1416
|
"farris-form": !0,
|
|
1413
1417
|
"farris-form-controls-inline": a.value
|
|
1414
|
-
})),
|
|
1415
|
-
function
|
|
1416
|
-
t.emit("valueChange",
|
|
1418
|
+
})), V = R(() => l.value);
|
|
1419
|
+
function h(_, d) {
|
|
1420
|
+
t.emit("valueChange", _, d);
|
|
1417
1421
|
}
|
|
1418
1422
|
function x() {
|
|
1419
|
-
return r.value.map((
|
|
1420
|
-
var
|
|
1423
|
+
return r.value.map((_) => {
|
|
1424
|
+
var d;
|
|
1421
1425
|
return v(bn, {
|
|
1422
|
-
customClass:
|
|
1423
|
-
label:
|
|
1424
|
-
editor: (
|
|
1425
|
-
modelValue:
|
|
1426
|
-
"onUpdate:modelValue": (
|
|
1427
|
-
onChange: (
|
|
1428
|
-
|
|
1426
|
+
customClass: V.value,
|
|
1427
|
+
label: _.fieldName,
|
|
1428
|
+
editor: (d = y.get(_.fieldCode)) == null ? void 0 : d.editor,
|
|
1429
|
+
modelValue: _.value.value,
|
|
1430
|
+
"onUpdate:modelValue": (k) => _.value.value = k,
|
|
1431
|
+
onChange: (k) => {
|
|
1432
|
+
h(k, _);
|
|
1429
1433
|
}
|
|
1430
1434
|
}, null);
|
|
1431
1435
|
});
|
|
@@ -1439,22 +1443,22 @@ const qe = /* @__PURE__ */ oe({
|
|
|
1439
1443
|
}), Me = /* @__PURE__ */ new Map([
|
|
1440
1444
|
["appearance", Re]
|
|
1441
1445
|
]);
|
|
1442
|
-
function
|
|
1446
|
+
function ca(e, t, n, o) {
|
|
1443
1447
|
const a = e.getSchemaByType("section");
|
|
1444
1448
|
return a.id = `${o}-section`, a.appearance = { class: "f-section-form f-section-in-main" }, a.mainTitle = "标题", a.contents = [t], a;
|
|
1445
1449
|
}
|
|
1446
|
-
function
|
|
1450
|
+
function da(e, t, n, o) {
|
|
1447
1451
|
const a = e.getSchemaByType("component");
|
|
1448
1452
|
return a.id = `${o}-component`, a.componentType = "form-col-1", a.appearance = {
|
|
1449
1453
|
class: "f-struct-form f-struct-wrapper"
|
|
1450
1454
|
}, a.contents = [t], a;
|
|
1451
1455
|
}
|
|
1452
|
-
function
|
|
1456
|
+
function fa(e, t, n) {
|
|
1453
1457
|
t.appearance = { class: "f-form-layout farris-form farris-form-controls-inline" };
|
|
1454
|
-
const o =
|
|
1455
|
-
return
|
|
1458
|
+
const o = ca(e, t, n, t.id);
|
|
1459
|
+
return da(e, o, n, t.id);
|
|
1456
1460
|
}
|
|
1457
|
-
const
|
|
1461
|
+
const pa = "https://json-schema.org/draft/2020-12/schema", va = "https://farris-design.gitee.io/response-form.schema.json", ma = "response-form", ha = "A Farris Data Collection Component", ga = "object", ya = {
|
|
1458
1462
|
id: {
|
|
1459
1463
|
description: "The unique identifier for a form group",
|
|
1460
1464
|
type: "string"
|
|
@@ -1482,18 +1486,18 @@ const da = "https://json-schema.org/draft/2020-12/schema", fa = "https://farris-
|
|
|
1482
1486
|
type: "array",
|
|
1483
1487
|
default: []
|
|
1484
1488
|
}
|
|
1485
|
-
},
|
|
1489
|
+
}, _a = [
|
|
1486
1490
|
"id",
|
|
1487
1491
|
"type"
|
|
1488
|
-
],
|
|
1489
|
-
$schema:
|
|
1490
|
-
$id:
|
|
1491
|
-
title:
|
|
1492
|
-
description:
|
|
1493
|
-
type:
|
|
1494
|
-
properties:
|
|
1495
|
-
required:
|
|
1496
|
-
},
|
|
1492
|
+
], ba = {
|
|
1493
|
+
$schema: pa,
|
|
1494
|
+
$id: va,
|
|
1495
|
+
title: ma,
|
|
1496
|
+
description: ha,
|
|
1497
|
+
type: ga,
|
|
1498
|
+
properties: ya,
|
|
1499
|
+
required: _a
|
|
1500
|
+
}, Ca = "response-form", wa = "A Farris Component", Sa = "object", Fa = {
|
|
1497
1501
|
basic: {
|
|
1498
1502
|
description: "Basic Infomation",
|
|
1499
1503
|
title: "基本信息",
|
|
@@ -1515,16 +1519,16 @@ const da = "https://json-schema.org/draft/2020-12/schema", fa = "https://farris-
|
|
|
1515
1519
|
}
|
|
1516
1520
|
}
|
|
1517
1521
|
}
|
|
1518
|
-
},
|
|
1519
|
-
title:
|
|
1520
|
-
description:
|
|
1521
|
-
type:
|
|
1522
|
-
categories:
|
|
1523
|
-
},
|
|
1522
|
+
}, Ta = {
|
|
1523
|
+
title: Ca,
|
|
1524
|
+
description: wa,
|
|
1525
|
+
type: Sa,
|
|
1526
|
+
categories: Fa
|
|
1527
|
+
}, ka = {
|
|
1524
1528
|
customClass: { type: String, default: "" }
|
|
1525
1529
|
};
|
|
1526
|
-
ge(
|
|
1527
|
-
const
|
|
1530
|
+
ge(ka, ba, Me, fa, Ta);
|
|
1531
|
+
const Va = "https://json-schema.org/draft/2020-12/schema", Ia = "https://farris-design.gitee.io/form-group.schema.json", xa = "form-group", Ea = "A Farris Input Component", Oa = "object", Na = {
|
|
1528
1532
|
id: {
|
|
1529
1533
|
description: "The unique identifier for a form group",
|
|
1530
1534
|
type: "string"
|
|
@@ -1565,17 +1569,17 @@ const Ta = "https://json-schema.org/draft/2020-12/schema", ka = "https://farris-
|
|
|
1565
1569
|
description: "",
|
|
1566
1570
|
type: "number"
|
|
1567
1571
|
}
|
|
1568
|
-
},
|
|
1572
|
+
}, Ba = [
|
|
1569
1573
|
"id",
|
|
1570
1574
|
"type"
|
|
1571
1575
|
], lt = {
|
|
1572
|
-
$schema:
|
|
1573
|
-
$id:
|
|
1574
|
-
title:
|
|
1575
|
-
description:
|
|
1576
|
-
type:
|
|
1577
|
-
properties:
|
|
1578
|
-
required:
|
|
1576
|
+
$schema: Va,
|
|
1577
|
+
$id: Ia,
|
|
1578
|
+
title: xa,
|
|
1579
|
+
description: Ea,
|
|
1580
|
+
type: Oa,
|
|
1581
|
+
properties: Na,
|
|
1582
|
+
required: Ba
|
|
1579
1583
|
}, ut = {
|
|
1580
1584
|
id: { type: String, default: "" },
|
|
1581
1585
|
customClass: { type: String, default: "" },
|
|
@@ -1596,14 +1600,14 @@ ge(
|
|
|
1596
1600
|
Me,
|
|
1597
1601
|
void 0
|
|
1598
1602
|
);
|
|
1599
|
-
const
|
|
1603
|
+
const Da = {
|
|
1600
1604
|
id: { type: String },
|
|
1601
1605
|
required: { type: Boolean, default: !1 },
|
|
1602
1606
|
text: { type: String, default: "" },
|
|
1603
1607
|
title: { type: String }
|
|
1604
|
-
},
|
|
1608
|
+
}, Ra = /* @__PURE__ */ oe({
|
|
1605
1609
|
name: "FDynamicFormLabel",
|
|
1606
|
-
props:
|
|
1610
|
+
props: Da,
|
|
1607
1611
|
emits: [],
|
|
1608
1612
|
setup(e, t) {
|
|
1609
1613
|
const n = w(e.title || e.text), o = w(e.required), a = w(e.text);
|
|
@@ -1620,13 +1624,13 @@ const Na = {
|
|
|
1620
1624
|
class: "farris-label-text"
|
|
1621
1625
|
}, [a.value])]);
|
|
1622
1626
|
}
|
|
1623
|
-
}),
|
|
1627
|
+
}), Ma = /* @__PURE__ */ new Map([
|
|
1624
1628
|
["appearance", Re]
|
|
1625
1629
|
]);
|
|
1626
|
-
function
|
|
1630
|
+
function $a(e, t, n) {
|
|
1627
1631
|
return t;
|
|
1628
1632
|
}
|
|
1629
|
-
const
|
|
1633
|
+
const Aa = "https://json-schema.org/draft/2020-12/schema", Pa = "https://farris-design.gitee.io/input-group.schema.json", La = "input-group", ja = "A Farris Input Component", Ga = "object", Ha = {
|
|
1630
1634
|
id: {
|
|
1631
1635
|
description: "The unique identifier for a Input Group",
|
|
1632
1636
|
type: "string"
|
|
@@ -1828,17 +1832,17 @@ const Ma = "https://json-schema.org/draft/2020-12/schema", $a = "https://farris-
|
|
|
1828
1832
|
type: "string",
|
|
1829
1833
|
default: ""
|
|
1830
1834
|
}
|
|
1831
|
-
},
|
|
1835
|
+
}, qa = [
|
|
1832
1836
|
"id",
|
|
1833
1837
|
"type"
|
|
1834
|
-
],
|
|
1835
|
-
$schema:
|
|
1836
|
-
$id:
|
|
1837
|
-
title:
|
|
1838
|
-
description:
|
|
1839
|
-
type:
|
|
1840
|
-
properties:
|
|
1841
|
-
required:
|
|
1838
|
+
], za = {
|
|
1839
|
+
$schema: Aa,
|
|
1840
|
+
$id: Pa,
|
|
1841
|
+
title: La,
|
|
1842
|
+
description: ja,
|
|
1843
|
+
type: Ga,
|
|
1844
|
+
properties: Ha,
|
|
1845
|
+
required: qa
|
|
1842
1846
|
}, ct = {
|
|
1843
1847
|
/** 是否自动完成 */
|
|
1844
1848
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -1906,118 +1910,118 @@ const Ma = "https://json-schema.org/draft/2020-12/schema", $a = "https://farris-
|
|
|
1906
1910
|
*/
|
|
1907
1911
|
updateOn: { type: String, default: "blur" }
|
|
1908
1912
|
};
|
|
1909
|
-
ge(ct,
|
|
1910
|
-
function
|
|
1911
|
-
const a = w(e.disabled), r = w(!1), s = w("text"), f = w(e.showBorder),
|
|
1913
|
+
ge(ct, za, Ma, $a);
|
|
1914
|
+
function Wa(e, t, n, o) {
|
|
1915
|
+
const a = w(e.disabled), r = w(!1), s = w("text"), f = w(e.showBorder), y = w(e.textAlign), p = w(e.updateOn), c = R(() => e.editable || !e.readonly), l = R(() => e.editable && !e.disabled && !e.readonly), i = R(() => !e.disabled && r.value), I = R(() => n.value === "" || n.value === null || n.value === void 0), V = R(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), h = R(() => e.readonly || !e.editable), x = R(() => e.enableTitle ? n.value : ""), _ = R(() => ({
|
|
1912
1916
|
"form-control": !0,
|
|
1913
1917
|
"f-utils-fill": !0,
|
|
1914
|
-
"text-left":
|
|
1915
|
-
"text-center":
|
|
1916
|
-
"text-right":
|
|
1917
|
-
})),
|
|
1918
|
+
"text-left": y.value === "left",
|
|
1919
|
+
"text-center": y.value === "center",
|
|
1920
|
+
"text-right": y.value === "right"
|
|
1921
|
+
})), d = R(() => {
|
|
1918
1922
|
const u = {
|
|
1919
1923
|
"f-cmp-inputgroup": !0,
|
|
1920
1924
|
"input-group": !0,
|
|
1921
1925
|
"f-state-disable": a.value,
|
|
1922
1926
|
"f-state-editable": l.value,
|
|
1923
|
-
"f-state-readonly":
|
|
1927
|
+
"f-state-readonly": h.value,
|
|
1924
1928
|
"f-state-focus": i.value
|
|
1925
1929
|
};
|
|
1926
|
-
return (e.customClass || "").split(" ").reduce((
|
|
1927
|
-
}),
|
|
1928
|
-
function
|
|
1929
|
-
n.value = u, o.value !== u && (o.value = u),
|
|
1930
|
+
return (e.customClass || "").split(" ").reduce((B, M) => (B[M] = !0, B), u), u;
|
|
1931
|
+
}), k = R(() => f.value ? "" : "border-width : 0 ");
|
|
1932
|
+
function T(u, g = !0) {
|
|
1933
|
+
n.value = u, o.value !== u && (o.value = u), g && t.emit("change", u), t.emit("update:modelValue", u), t.emit("update:value", u);
|
|
1930
1934
|
}
|
|
1931
1935
|
Q(
|
|
1932
1936
|
() => e.modelValue,
|
|
1933
|
-
(u,
|
|
1934
|
-
u !==
|
|
1937
|
+
(u, g) => {
|
|
1938
|
+
u !== g && (n.value = u, o.value = u);
|
|
1935
1939
|
}
|
|
1936
|
-
), Q(() => e.disabled, (u,
|
|
1937
|
-
u !==
|
|
1940
|
+
), Q(() => e.disabled, (u, g) => {
|
|
1941
|
+
u !== g && (a.value = u);
|
|
1938
1942
|
});
|
|
1939
|
-
function
|
|
1943
|
+
function m(u) {
|
|
1940
1944
|
return r.value = !1, t.emit("blur", u), u.stopPropagation(), !1;
|
|
1941
1945
|
}
|
|
1942
|
-
function
|
|
1946
|
+
function C(u) {
|
|
1943
1947
|
t.emit("click", u);
|
|
1944
1948
|
}
|
|
1945
|
-
function D(u) {
|
|
1946
|
-
e.disabled || (f.value && (r.value = !0), d.value && t.emit("focus", u));
|
|
1947
|
-
}
|
|
1948
1949
|
function E(u) {
|
|
1950
|
+
e.disabled || (f.value && (r.value = !0), c.value && t.emit("focus", u));
|
|
1951
|
+
}
|
|
1952
|
+
function N(u) {
|
|
1949
1953
|
t.emit("input", u.target.value);
|
|
1950
|
-
const
|
|
1951
|
-
o.value =
|
|
1954
|
+
const g = u.target.value;
|
|
1955
|
+
o.value = g, p.value === "input" && (t.emit("update:modelValue", g), t.emit("update:value", g));
|
|
1952
1956
|
}
|
|
1953
|
-
function
|
|
1957
|
+
function b(u) {
|
|
1954
1958
|
t.emit("keydown", u);
|
|
1955
1959
|
}
|
|
1956
|
-
function
|
|
1960
|
+
function D(u) {
|
|
1957
1961
|
t.emit("keyup", u);
|
|
1958
1962
|
}
|
|
1959
|
-
function
|
|
1963
|
+
function F(u) {
|
|
1960
1964
|
u.target.tagName !== "INPUT" && u.preventDefault(), u.stopPropagation();
|
|
1961
1965
|
}
|
|
1962
1966
|
function S(u) {
|
|
1963
1967
|
if (p.value === "blur") {
|
|
1964
|
-
const
|
|
1965
|
-
u.stopPropagation(),
|
|
1968
|
+
const g = u.target.value;
|
|
1969
|
+
u.stopPropagation(), T(g);
|
|
1966
1970
|
}
|
|
1967
1971
|
}
|
|
1968
1972
|
return {
|
|
1969
|
-
changeTextBoxValue:
|
|
1973
|
+
changeTextBoxValue: T,
|
|
1970
1974
|
disabled: a,
|
|
1971
1975
|
displayText: o,
|
|
1972
1976
|
editable: l,
|
|
1973
1977
|
hasFocused: i,
|
|
1974
|
-
inputGroupClass:
|
|
1978
|
+
inputGroupClass: d,
|
|
1975
1979
|
inputType: s,
|
|
1976
1980
|
isEmpty: I,
|
|
1977
1981
|
modelValue: n,
|
|
1978
|
-
readonly:
|
|
1979
|
-
onBlur:
|
|
1980
|
-
onClick:
|
|
1981
|
-
onFocus:
|
|
1982
|
-
onInput:
|
|
1983
|
-
onKeydown:
|
|
1984
|
-
onKeyup:
|
|
1985
|
-
onMousedown:
|
|
1982
|
+
readonly: h,
|
|
1983
|
+
onBlur: m,
|
|
1984
|
+
onClick: C,
|
|
1985
|
+
onFocus: E,
|
|
1986
|
+
onInput: N,
|
|
1987
|
+
onKeydown: b,
|
|
1988
|
+
onKeyup: D,
|
|
1989
|
+
onMousedown: F,
|
|
1986
1990
|
onTextBoxValueChange: S,
|
|
1987
|
-
placeholder:
|
|
1988
|
-
textBoxClass:
|
|
1991
|
+
placeholder: V,
|
|
1992
|
+
textBoxClass: _,
|
|
1989
1993
|
textBoxTitle: x,
|
|
1990
|
-
inputGroupStyle:
|
|
1994
|
+
inputGroupStyle: k
|
|
1991
1995
|
};
|
|
1992
1996
|
}
|
|
1993
|
-
function
|
|
1994
|
-
const o = w(!1), a =
|
|
1995
|
-
function p(
|
|
1996
|
-
o.value =
|
|
1997
|
+
function Ua(e, t, n) {
|
|
1998
|
+
const o = w(!1), a = R(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: r, displayText: s, hasFocused: f, isEmpty: y } = n;
|
|
1999
|
+
function p(h) {
|
|
2000
|
+
o.value = h;
|
|
1997
2001
|
}
|
|
1998
2002
|
Q(s, () => {
|
|
1999
2003
|
f != null && f.value ? p(!!(s != null && s.value)) : p(!1);
|
|
2000
2004
|
});
|
|
2001
|
-
const
|
|
2005
|
+
const c = R(() => ({
|
|
2002
2006
|
"input-group-text": !0,
|
|
2003
2007
|
"input-group-clear": !0
|
|
2004
|
-
})), l =
|
|
2008
|
+
})), l = R(() => ({
|
|
2005
2009
|
width: "24px",
|
|
2006
2010
|
display: o.value ? "flex" : "none"
|
|
2007
2011
|
}));
|
|
2008
|
-
function i(
|
|
2009
|
-
|
|
2012
|
+
function i(h) {
|
|
2013
|
+
h.stopPropagation(), a.value && (r("", !0), p(!o.value), t.emit("clear"));
|
|
2010
2014
|
}
|
|
2011
|
-
function I(
|
|
2012
|
-
a.value && !
|
|
2015
|
+
function I(h) {
|
|
2016
|
+
a.value && !y.value && p(!0);
|
|
2013
2017
|
}
|
|
2014
|
-
function
|
|
2018
|
+
function V(h) {
|
|
2015
2019
|
a.value && p(!1);
|
|
2016
2020
|
}
|
|
2017
|
-
return { clearButtonClass:
|
|
2021
|
+
return { clearButtonClass: c, clearButtonStyle: l, hasShownClearButton: o, onClearValue: i, onMouseEnter: I, onMouseLeave: V, shouldShowClearButton: a };
|
|
2018
2022
|
}
|
|
2019
|
-
const
|
|
2020
|
-
function
|
|
2023
|
+
const Ka = ["moz", "ms", "webkit"];
|
|
2024
|
+
function Qa() {
|
|
2021
2025
|
let e = 0;
|
|
2022
2026
|
return (t) => {
|
|
2023
2027
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
|
|
@@ -2026,93 +2030,93 @@ function Ua() {
|
|
|
2026
2030
|
return e = n + o, a;
|
|
2027
2031
|
};
|
|
2028
2032
|
}
|
|
2029
|
-
function
|
|
2033
|
+
function Ya() {
|
|
2030
2034
|
if (typeof window > "u")
|
|
2031
2035
|
return () => 0;
|
|
2032
2036
|
if (window.requestAnimationFrame)
|
|
2033
2037
|
return window.requestAnimationFrame.bind(window);
|
|
2034
|
-
const e =
|
|
2035
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
2038
|
+
const e = Ka.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
2039
|
+
return e ? window[`${e}RequestAnimationFrame`] : Qa();
|
|
2036
2040
|
}
|
|
2037
|
-
|
|
2038
|
-
function
|
|
2039
|
-
const n = w(e.groupText), o =
|
|
2040
|
-
return { appendedButtonClass:
|
|
2041
|
+
Ya();
|
|
2042
|
+
function Ja(e, t) {
|
|
2043
|
+
const n = w(e.groupText), o = R(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = R(() => e.enableClear || !!e.groupText);
|
|
2044
|
+
return { appendedButtonClass: R(() => ({
|
|
2041
2045
|
"input-group-append": !0,
|
|
2042
2046
|
"append-force-show": o.value
|
|
2043
2047
|
})), appendedContent: n, shouldShowAppendedButton: a };
|
|
2044
2048
|
}
|
|
2045
|
-
function
|
|
2046
|
-
const { appendedContent: a } = o, r = w(e.enableViewPassword), s =
|
|
2049
|
+
function Xa(e, t, n, o) {
|
|
2050
|
+
const { appendedContent: a } = o, r = w(e.enableViewPassword), s = R(() => e.type === "password"), f = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', y = '<span class="f-icon f-icon-eye"></span>', p = w(!1);
|
|
2047
2051
|
Q(() => [e.readonly, e.disabled], ([i, I]) => {
|
|
2048
|
-
s.value && (n.value = i || I ? "password" : n.value, a.value = i || I ?
|
|
2052
|
+
s.value && (n.value = i || I ? "password" : n.value, a.value = i || I ? y : a.value);
|
|
2049
2053
|
});
|
|
2050
|
-
function
|
|
2051
|
-
return p.value = !p.value, n.value = p.value ? "text" : "password", a.value = p.value ? f :
|
|
2054
|
+
function c() {
|
|
2055
|
+
return p.value = !p.value, n.value = p.value ? "text" : "password", a.value = p.value ? f : y, !1;
|
|
2052
2056
|
}
|
|
2053
2057
|
function l() {
|
|
2054
|
-
n.value = s.value ? "password" : "text", a.value = s.value ? r.value ?
|
|
2058
|
+
n.value = s.value ? "password" : "text", a.value = s.value ? r.value ? y : "" : a.value;
|
|
2055
2059
|
}
|
|
2056
|
-
return l(), { isPassword: s, onClickAppendedButton:
|
|
2060
|
+
return l(), { isPassword: s, onClickAppendedButton: c };
|
|
2057
2061
|
}
|
|
2058
|
-
function
|
|
2062
|
+
function Za(e, t, n) {
|
|
2059
2063
|
const o = w(), {
|
|
2060
2064
|
onBlurTextBox: a,
|
|
2061
2065
|
onFocusTextBox: r,
|
|
2062
2066
|
onInput: s,
|
|
2063
2067
|
onKeyDown: f,
|
|
2064
|
-
textBoxValue:
|
|
2065
|
-
} = n, p =
|
|
2068
|
+
textBoxValue: y
|
|
2069
|
+
} = n, p = R(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), c = R(() => ({
|
|
2066
2070
|
"form-control": !0,
|
|
2067
2071
|
"f-utils-fill": !0
|
|
2068
|
-
})), l =
|
|
2072
|
+
})), l = R(() => ({
|
|
2069
2073
|
"text-align": e.textAlign
|
|
2070
2074
|
}));
|
|
2071
|
-
function i(
|
|
2072
|
-
|
|
2075
|
+
function i(h) {
|
|
2076
|
+
h.stopPropagation();
|
|
2073
2077
|
}
|
|
2074
2078
|
function I() {
|
|
2075
2079
|
e.selectOnCreated, e.focusOnCreated;
|
|
2076
2080
|
}
|
|
2077
|
-
async function
|
|
2078
|
-
r(
|
|
2081
|
+
async function V(h) {
|
|
2082
|
+
r(h), await je, I();
|
|
2079
2083
|
}
|
|
2080
2084
|
return pe(async () => {
|
|
2081
2085
|
await je, I();
|
|
2082
2086
|
}), () => v("input", {
|
|
2083
2087
|
ref: o,
|
|
2084
|
-
class:
|
|
2088
|
+
class: c.value,
|
|
2085
2089
|
style: l.value,
|
|
2086
2090
|
type: "text",
|
|
2087
|
-
value:
|
|
2091
|
+
value: y.value,
|
|
2088
2092
|
disabled: e.disabled,
|
|
2089
2093
|
readonly: e.readonly || !e.editable,
|
|
2090
2094
|
placeholder: p.value,
|
|
2091
2095
|
onBlur: a,
|
|
2092
2096
|
onChange: i,
|
|
2093
|
-
onFocus:
|
|
2097
|
+
onFocus: V,
|
|
2094
2098
|
onInput: s,
|
|
2095
2099
|
onKeydown: f
|
|
2096
2100
|
}, null);
|
|
2097
2101
|
}
|
|
2098
|
-
function
|
|
2102
|
+
function er(e, t, n) {
|
|
2099
2103
|
const {
|
|
2100
2104
|
canDownward: o,
|
|
2101
2105
|
canUpward: a,
|
|
2102
2106
|
onClickDownButton: r,
|
|
2103
2107
|
onClickUpButton: s
|
|
2104
|
-
} = n, f =
|
|
2108
|
+
} = n, f = R(() => ({
|
|
2105
2109
|
"input-group-append": !0,
|
|
2106
2110
|
"btn-group": !0,
|
|
2107
2111
|
"btn-group-number": !0
|
|
2108
|
-
})),
|
|
2112
|
+
})), y = R(() => ({
|
|
2109
2113
|
btn: !0,
|
|
2110
2114
|
"btn-secondary": !0,
|
|
2111
2115
|
"btn-number-flag": !0
|
|
2112
|
-
})), p =
|
|
2116
|
+
})), p = R(() => ({
|
|
2113
2117
|
cursor: a() ? "pointer" : "not-allowed",
|
|
2114
2118
|
"margin-left": 0
|
|
2115
|
-
})),
|
|
2119
|
+
})), c = R(() => ({
|
|
2116
2120
|
cursor: o() ? "pointer" : "not-allowed",
|
|
2117
2121
|
"margin-left": 0
|
|
2118
2122
|
}));
|
|
@@ -2120,7 +2124,7 @@ function Xa(e, t, n) {
|
|
|
2120
2124
|
class: f.value
|
|
2121
2125
|
}, [v("button", {
|
|
2122
2126
|
title: "upButton",
|
|
2123
|
-
class:
|
|
2127
|
+
class: y.value,
|
|
2124
2128
|
style: p.value,
|
|
2125
2129
|
onClick: s,
|
|
2126
2130
|
disabled: !a()
|
|
@@ -2128,57 +2132,57 @@ function Xa(e, t, n) {
|
|
|
2128
2132
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
2129
2133
|
}, null)]), v("button", {
|
|
2130
2134
|
title: "downButton",
|
|
2131
|
-
class:
|
|
2132
|
-
style:
|
|
2135
|
+
class: y.value,
|
|
2136
|
+
style: c.value,
|
|
2133
2137
|
onClick: r,
|
|
2134
2138
|
disabled: !o()
|
|
2135
2139
|
}, [v("span", {
|
|
2136
2140
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
2137
2141
|
}, null)])]);
|
|
2138
2142
|
}
|
|
2139
|
-
function
|
|
2140
|
-
const n = wn(e, t), o = Sn(e, t, n), a = Fn(e, t, o, n), r = Tn(e, t, o, n, a), s =
|
|
2143
|
+
function tr(e, t) {
|
|
2144
|
+
const n = wn(e, t), o = Sn(e, t, n), a = Fn(e, t, o, n), r = Tn(e, t, o, n, a), s = er(e, t, a), {
|
|
2141
2145
|
displayValue: f,
|
|
2142
|
-
modelValue:
|
|
2146
|
+
modelValue: y,
|
|
2143
2147
|
getRealValue: p
|
|
2144
|
-
} = n,
|
|
2148
|
+
} = n, c = Za(e, t, r), {
|
|
2145
2149
|
format: l
|
|
2146
2150
|
} = o, {
|
|
2147
2151
|
isFocus: i
|
|
2148
|
-
} = r, I =
|
|
2152
|
+
} = r, I = R(() => !e.disabled && !e.readonly);
|
|
2149
2153
|
return pe(() => {
|
|
2150
|
-
const
|
|
2151
|
-
f.value = l(
|
|
2152
|
-
}), Q(() => [e.value], ([
|
|
2153
|
-
const
|
|
2154
|
-
|
|
2155
|
-
}), Q(() => [e.modelValue], ([
|
|
2156
|
-
|
|
2154
|
+
const V = p(e.modelValue);
|
|
2155
|
+
f.value = l(V);
|
|
2156
|
+
}), Q(() => [e.value], ([V]) => {
|
|
2157
|
+
const h = p(V);
|
|
2158
|
+
y.value = h, f.value = l(h);
|
|
2159
|
+
}), Q(() => [e.modelValue], ([V]) => {
|
|
2160
|
+
V !== y.value && (y.value = V, !i.value && (f.value = l(p(V))));
|
|
2157
2161
|
}), Q(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2158
|
-
f.value = l(
|
|
2162
|
+
f.value = l(y.value);
|
|
2159
2163
|
}), () => v("div", {
|
|
2160
2164
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2161
|
-
}, [
|
|
2165
|
+
}, [c(), I.value && s()]);
|
|
2162
2166
|
}
|
|
2163
|
-
function
|
|
2167
|
+
function nr(e, t, n, o) {
|
|
2164
2168
|
const a = w(), r = w(e.autocomplete), s = w(e.enableTitle), {
|
|
2165
2169
|
isPassword: f
|
|
2166
|
-
} = n,
|
|
2170
|
+
} = n, y = w(e.minLength), p = w(e.maxLength), c = w(e.tabIndex), {
|
|
2167
2171
|
disabled: l,
|
|
2168
2172
|
displayText: i,
|
|
2169
2173
|
inputType: I,
|
|
2170
|
-
onBlur:
|
|
2171
|
-
onFocus:
|
|
2174
|
+
onBlur: V,
|
|
2175
|
+
onFocus: h,
|
|
2172
2176
|
onInput: x,
|
|
2173
|
-
onClick:
|
|
2174
|
-
onKeydown:
|
|
2175
|
-
onKeyup:
|
|
2176
|
-
onMousedown:
|
|
2177
|
-
onTextBoxValueChange:
|
|
2178
|
-
readonly:
|
|
2179
|
-
placeholder:
|
|
2180
|
-
textBoxClass:
|
|
2181
|
-
textBoxTitle:
|
|
2177
|
+
onClick: _,
|
|
2178
|
+
onKeydown: d,
|
|
2179
|
+
onKeyup: k,
|
|
2180
|
+
onMousedown: T,
|
|
2181
|
+
onTextBoxValueChange: m,
|
|
2182
|
+
readonly: C,
|
|
2183
|
+
placeholder: E,
|
|
2184
|
+
textBoxClass: N,
|
|
2185
|
+
textBoxTitle: b
|
|
2182
2186
|
} = o;
|
|
2183
2187
|
return pe(() => {
|
|
2184
2188
|
e.selectOnCreated, e.focusOnCreated;
|
|
@@ -2186,28 +2190,28 @@ function er(e, t, n, o) {
|
|
|
2186
2190
|
ref: a,
|
|
2187
2191
|
name: "input-group-value",
|
|
2188
2192
|
autocomplete: r.value,
|
|
2189
|
-
class:
|
|
2193
|
+
class: N.value,
|
|
2190
2194
|
disabled: l == null ? void 0 : l.value,
|
|
2191
2195
|
maxlength: p.value,
|
|
2192
|
-
minlength:
|
|
2193
|
-
placeholder:
|
|
2194
|
-
readonly:
|
|
2195
|
-
tabindex:
|
|
2196
|
-
title: s.value && !f.value ?
|
|
2196
|
+
minlength: y.value,
|
|
2197
|
+
placeholder: E.value,
|
|
2198
|
+
readonly: C == null ? void 0 : C.value,
|
|
2199
|
+
tabindex: c.value,
|
|
2200
|
+
title: s.value && !f.value ? b.value : "",
|
|
2197
2201
|
type: I.value,
|
|
2198
2202
|
value: i == null ? void 0 : i.value,
|
|
2199
|
-
onBlur:
|
|
2200
|
-
onClick:
|
|
2201
|
-
onChange:
|
|
2202
|
-
onFocus:
|
|
2203
|
+
onBlur: V,
|
|
2204
|
+
onClick: _,
|
|
2205
|
+
onChange: m,
|
|
2206
|
+
onFocus: h,
|
|
2203
2207
|
onInput: x,
|
|
2204
|
-
onKeydown:
|
|
2205
|
-
onKeyup:
|
|
2206
|
-
onMousedown:
|
|
2208
|
+
onKeydown: d,
|
|
2209
|
+
onKeyup: k,
|
|
2210
|
+
onMousedown: T
|
|
2207
2211
|
}, null);
|
|
2208
2212
|
}
|
|
2209
|
-
function
|
|
2210
|
-
const n =
|
|
2213
|
+
function or(e, t) {
|
|
2214
|
+
const n = R(() => e.useExtendInfo && !!e.extendInfo), o = Ue({
|
|
2211
2215
|
content: e.extendInfo
|
|
2212
2216
|
});
|
|
2213
2217
|
function a() {
|
|
@@ -2222,102 +2226,102 @@ function tr(e, t) {
|
|
|
2222
2226
|
class: "tips-arrow"
|
|
2223
2227
|
}, null)]), [[Yt("tooltip"), o]]);
|
|
2224
2228
|
}
|
|
2225
|
-
function
|
|
2229
|
+
function ar(e, t, n, o, a) {
|
|
2226
2230
|
const {
|
|
2227
2231
|
appendedButtonClass: r,
|
|
2228
2232
|
appendedContent: s
|
|
2229
|
-
} = n, f =
|
|
2230
|
-
clearButtonClass:
|
|
2233
|
+
} = n, f = R(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), y = R(() => s.value && !t.slots.groupTextTemplate), p = R(() => !!t.slots.groupTextTemplate), {
|
|
2234
|
+
clearButtonClass: c,
|
|
2231
2235
|
clearButtonStyle: l,
|
|
2232
2236
|
onClearValue: i,
|
|
2233
2237
|
shouldShowClearButton: I
|
|
2234
2238
|
} = o;
|
|
2235
|
-
function
|
|
2239
|
+
function V() {
|
|
2236
2240
|
return v("span", {
|
|
2237
2241
|
id: "clearIcon",
|
|
2238
|
-
class:
|
|
2242
|
+
class: c.value,
|
|
2239
2243
|
style: l.value,
|
|
2240
|
-
onClick: (
|
|
2244
|
+
onClick: (E) => i(E)
|
|
2241
2245
|
}, [v("i", {
|
|
2242
2246
|
class: "f-icon modal_close"
|
|
2243
2247
|
}, null)]);
|
|
2244
2248
|
}
|
|
2245
|
-
function
|
|
2246
|
-
t.emit("iconMouseEnter",
|
|
2249
|
+
function h(E) {
|
|
2250
|
+
t.emit("iconMouseEnter", E);
|
|
2247
2251
|
}
|
|
2248
|
-
function x(
|
|
2249
|
-
t.emit("iconMouseLeave",
|
|
2252
|
+
function x(E) {
|
|
2253
|
+
t.emit("iconMouseLeave", E);
|
|
2250
2254
|
}
|
|
2251
|
-
function
|
|
2255
|
+
function _(E) {
|
|
2252
2256
|
f.value && t.emit("clickHandle", {
|
|
2253
|
-
originalEvent:
|
|
2254
|
-
}),
|
|
2257
|
+
originalEvent: E
|
|
2258
|
+
}), E.stopPropagation();
|
|
2255
2259
|
}
|
|
2256
|
-
const
|
|
2257
|
-
function
|
|
2260
|
+
const d = e.type === "password" ? a.onClickAppendedButton : _;
|
|
2261
|
+
function k() {
|
|
2258
2262
|
return v("span", {
|
|
2259
2263
|
class: "input-group-text",
|
|
2260
|
-
onMouseenter: (
|
|
2261
|
-
onMouseleave: (
|
|
2264
|
+
onMouseenter: (E) => h(E),
|
|
2265
|
+
onMouseleave: (E) => x(E),
|
|
2262
2266
|
innerHTML: s.value,
|
|
2263
|
-
onClick: (
|
|
2267
|
+
onClick: (E) => d(E)
|
|
2264
2268
|
}, null);
|
|
2265
2269
|
}
|
|
2266
|
-
function
|
|
2270
|
+
function T() {
|
|
2267
2271
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
2268
2272
|
}
|
|
2269
|
-
function
|
|
2270
|
-
return
|
|
2273
|
+
function m() {
|
|
2274
|
+
return y.value ? k : p.value ? T : "";
|
|
2271
2275
|
}
|
|
2272
|
-
const
|
|
2276
|
+
const C = m();
|
|
2273
2277
|
return () => v("div", {
|
|
2274
2278
|
class: r.value
|
|
2275
|
-
}, [I.value &&
|
|
2279
|
+
}, [I.value && V(), C && C()]);
|
|
2276
2280
|
}
|
|
2277
|
-
const
|
|
2281
|
+
const rr = /* @__PURE__ */ oe({
|
|
2278
2282
|
name: "FInputGroup",
|
|
2279
2283
|
props: ct,
|
|
2280
2284
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2281
2285
|
setup(e, t) {
|
|
2282
|
-
const n = w(e.modelValue), o = w(e.modelValue), a =
|
|
2286
|
+
const n = w(e.modelValue), o = w(e.modelValue), a = Wa(e, t, n, o), {
|
|
2283
2287
|
inputGroupClass: r,
|
|
2284
2288
|
inputType: s,
|
|
2285
2289
|
inputGroupStyle: f
|
|
2286
|
-
} = a,
|
|
2290
|
+
} = a, y = Ja(e), {
|
|
2287
2291
|
shouldShowAppendedButton: p
|
|
2288
|
-
} =
|
|
2292
|
+
} = y, c = Ua(e, t, a), {
|
|
2289
2293
|
onMouseEnter: l,
|
|
2290
2294
|
onMouseLeave: i
|
|
2291
|
-
} =
|
|
2292
|
-
Q(() => [e.value], ([
|
|
2293
|
-
n.value =
|
|
2294
|
-
}), Q(() => [e.modelValue], ([
|
|
2295
|
-
n.value =
|
|
2295
|
+
} = c, I = Xa(e, t, s, y), V = tr(e, t), h = nr(e, t, I, a), x = ar(e, t, y, c, I), _ = or(e, t), d = R(() => e.type === "number");
|
|
2296
|
+
Q(() => [e.value], ([T]) => {
|
|
2297
|
+
n.value = T, o.value = T;
|
|
2298
|
+
}), Q(() => [e.modelValue], ([T]) => {
|
|
2299
|
+
n.value = T, o.value = T;
|
|
2296
2300
|
}), pe(() => {
|
|
2297
2301
|
e.value && (n.value = e.value, o.value = e.value);
|
|
2298
2302
|
});
|
|
2299
|
-
const
|
|
2303
|
+
const k = () => v(me, null, [v("div", {
|
|
2300
2304
|
id: "inputGroup",
|
|
2301
2305
|
class: r.value,
|
|
2302
2306
|
style: f.value,
|
|
2303
2307
|
onMouseenter: l,
|
|
2304
2308
|
onMouseleave: i
|
|
2305
|
-
}, [
|
|
2306
|
-
return () =>
|
|
2309
|
+
}, [d.value ? V() : v(me, null, [_(), h(), p.value && x()])])]);
|
|
2310
|
+
return () => k();
|
|
2307
2311
|
}
|
|
2308
|
-
}),
|
|
2312
|
+
}), L = {}, j = {}, G = {}, q = {};
|
|
2309
2313
|
let ze = !1;
|
|
2310
|
-
function
|
|
2311
|
-
ze || (ze = !0, Vn.register(j, G, q
|
|
2314
|
+
function ir() {
|
|
2315
|
+
ze || (ze = !0, Vn.register(L, j, G, q), kn.register(L, j, G, q), In.register(L, j, G, q), xn.register(L, j, G, q), En.register(L, j, G, q), On.register(L, j, G, q), pn.register(L, j, G, q), Ie.register(L, j, G, q), Nn.register(L, j, G, q), Bn.register(L, j, G, q), Rn.register(L, j, G, q), Dn.register(L, j, G, q), Mn.register(L, j, G, q), $n.register(L, j, G, q), An.register(L, j, G, q), _n.register(L, j, G, q), Pn.register(L, j, G, q), gn.register(L, j, G, q), Ln.register(L, j, G, q), jn.register(L, j, G, q), Gn.register(L, j, G, q), Hn.register(L, j, G, q), zn.register(L, j, G, q), qn.register(L, j, G, q), Wn.register(L, j, G, q), Un.register(L, j, G, q), Kn.register(L, j, G, q), Qn.register(L, j, G, q), Cn.register(L, j, G, q), hn.register(L, j, G, q), Yn.register(L, j, G, q), Jn.register(L, j, G, q), yn.register(L, j, G, q), Xn.register(L, j, G, q), Zn.register(L, j, G, q), eo.register(L, j, G, q), to.register(L, j, G, q), oo.register(L, j, G, q), ao.register(L, j, G, q), no.register(L, j, G, q), Co.register(L, j, G), ro.register(L, j, G, q), io.register(L, j, G, q), so.register(L, j, G, q), lo.register(L, j, G, q), uo.register(L, j, G, q), co.register(L, j, G, q), mn.register(L, j, G, q), fo.register(L, j, G, q), po.register(L, j, G, q), vo.register(L, j, G, q), vn.register(L, j, G, q), mo.register(L, j, G, q), go.register(L, j, G, q), ho.register(L, j, G, q), yo.register(L, j, G, q), _o.register(L, j, G, q), bo.register(L, j, G, q), wo.register(L, j, G, q));
|
|
2312
2316
|
}
|
|
2313
2317
|
function dt() {
|
|
2314
|
-
|
|
2318
|
+
ir();
|
|
2315
2319
|
function e(a, r) {
|
|
2316
|
-
const s =
|
|
2320
|
+
const s = j[a];
|
|
2317
2321
|
return s ? s(r) : {};
|
|
2318
2322
|
}
|
|
2319
2323
|
function t(a) {
|
|
2320
|
-
return
|
|
2324
|
+
return L[a] || rr;
|
|
2321
2325
|
}
|
|
2322
2326
|
function n(a) {
|
|
2323
2327
|
switch (a) {
|
|
@@ -2328,6 +2332,7 @@ function dt() {
|
|
|
2328
2332
|
case "check-group":
|
|
2329
2333
|
return "onChangeValue";
|
|
2330
2334
|
case "combo-list":
|
|
2335
|
+
case "combo-tree":
|
|
2331
2336
|
return "onChange";
|
|
2332
2337
|
case "combo-lookup":
|
|
2333
2338
|
return "";
|
|
@@ -2382,58 +2387,58 @@ function dt() {
|
|
|
2382
2387
|
}
|
|
2383
2388
|
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
|
|
2384
2389
|
}
|
|
2385
|
-
const
|
|
2390
|
+
const sr = /* @__PURE__ */ oe({
|
|
2386
2391
|
name: "FDynamicFormGroup",
|
|
2387
2392
|
props: ut,
|
|
2388
2393
|
emits: ["change", "update:modelValue"],
|
|
2389
2394
|
setup(e, t) {
|
|
2390
|
-
const n = w(e.id), o = w(e.customClass), a = w(e.editor), r = w(e.label), s = w(e.modelValue), f = w(e.readonly),
|
|
2395
|
+
const n = w(e.id), o = w(e.customClass), a = w(e.editor), r = w(e.label), s = w(e.modelValue), f = w(e.readonly), y = w(e.required), p = w(e.showLabel), c = w(e.visible);
|
|
2391
2396
|
w(e.type);
|
|
2392
2397
|
const l = w(), {
|
|
2393
2398
|
resolveEditorProps: i,
|
|
2394
2399
|
resolveEditorType: I,
|
|
2395
|
-
getChangeFunctionName:
|
|
2396
|
-
getClearFunctionName:
|
|
2397
|
-
} = dt(), x =
|
|
2400
|
+
getChangeFunctionName: V,
|
|
2401
|
+
getClearFunctionName: h
|
|
2402
|
+
} = dt(), x = R(() => ({
|
|
2398
2403
|
"form-group": !0,
|
|
2399
2404
|
"farris-form-group": !0,
|
|
2400
2405
|
"common-group": !0,
|
|
2401
2406
|
"q-state-readonly": f.value
|
|
2402
2407
|
}));
|
|
2403
|
-
function
|
|
2404
|
-
s.value =
|
|
2408
|
+
function _(T, m) {
|
|
2409
|
+
s.value = m !== void 0 ? m : T, t.emit("update:modelValue", s.value), t.emit("change", s.value);
|
|
2405
2410
|
}
|
|
2406
|
-
function
|
|
2411
|
+
function d() {
|
|
2407
2412
|
t.emit("update:modelValue", "");
|
|
2408
2413
|
}
|
|
2409
|
-
const
|
|
2410
|
-
const
|
|
2411
|
-
return
|
|
2414
|
+
const k = R(() => {
|
|
2415
|
+
const T = a.value.type || "input-group", m = I(T), C = i(T, a.value), E = V(T), N = h(a.value.type);
|
|
2416
|
+
return C[E] = _, C[N] = d, () => v(m, Ne({
|
|
2412
2417
|
ref: l
|
|
2413
|
-
},
|
|
2418
|
+
}, C, {
|
|
2414
2419
|
modelValue: s.value,
|
|
2415
|
-
"onUpdate:modelValue": (
|
|
2420
|
+
"onUpdate:modelValue": (b) => s.value = b
|
|
2416
2421
|
}), null);
|
|
2417
2422
|
});
|
|
2418
|
-
return Q([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([
|
|
2419
|
-
n.value =
|
|
2423
|
+
return Q([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([T, m, C, E, N, b, D, F, S]) => {
|
|
2424
|
+
n.value = T, o.value = m, a.value = C, r.value = E, s.value = N, f.value = b, y.value = D, p.value = F, c.value = S;
|
|
2420
2425
|
}), t.expose({
|
|
2421
2426
|
editorRef: l
|
|
2422
|
-
}), () =>
|
|
2427
|
+
}), () => c.value && v("div", {
|
|
2423
2428
|
id: `${n.value}-input-group`,
|
|
2424
2429
|
class: o.value
|
|
2425
2430
|
}, [v("div", {
|
|
2426
2431
|
class: "farris-group-wrap"
|
|
2427
2432
|
}, [v("div", {
|
|
2428
2433
|
class: x.value
|
|
2429
|
-
}, [p.value && v(
|
|
2434
|
+
}, [p.value && v(Ra, {
|
|
2430
2435
|
id: `${n.value}-lable`,
|
|
2431
|
-
required:
|
|
2436
|
+
required: y.value,
|
|
2432
2437
|
text: r.value,
|
|
2433
2438
|
title: r.value
|
|
2434
2439
|
}, null), v("div", {
|
|
2435
2440
|
class: "farris-input-wrap"
|
|
2436
|
-
}, [
|
|
2441
|
+
}, [k.value()])])])]);
|
|
2437
2442
|
}
|
|
2438
2443
|
}), ft = {
|
|
2439
2444
|
id: { type: String, default: "" },
|
|
@@ -2456,7 +2461,7 @@ ge(
|
|
|
2456
2461
|
Me,
|
|
2457
2462
|
void 0
|
|
2458
2463
|
);
|
|
2459
|
-
const
|
|
2464
|
+
const lr = /* @__PURE__ */ oe({
|
|
2460
2465
|
name: "FDynamicFormInput",
|
|
2461
2466
|
props: ft,
|
|
2462
2467
|
emits: ["change", "update:modelValue"],
|
|
@@ -2466,25 +2471,25 @@ const ir = /* @__PURE__ */ oe({
|
|
|
2466
2471
|
resolveEditorType: s,
|
|
2467
2472
|
getChangeFunctionName: f
|
|
2468
2473
|
} = dt();
|
|
2469
|
-
function
|
|
2470
|
-
a.value = l !== void 0 ? l :
|
|
2474
|
+
function y(c, l) {
|
|
2475
|
+
a.value = l !== void 0 ? l : c, t.emit("update:modelValue", a.value), t.emit("change", a.value);
|
|
2471
2476
|
}
|
|
2472
|
-
const p =
|
|
2473
|
-
const
|
|
2477
|
+
const p = R(() => {
|
|
2478
|
+
const c = s(o.value.type), l = r(o.value.type, o.value);
|
|
2474
2479
|
l.focusOnCreated = e.focusOnCreated, l.selectOnCreated = e.selectOnCreated;
|
|
2475
2480
|
const i = f(o.value.type);
|
|
2476
|
-
return l[i] =
|
|
2481
|
+
return l[i] = y, () => v(c, Ne(l, {
|
|
2477
2482
|
modelValue: a.value,
|
|
2478
2483
|
"onUpdate:modelValue": (I) => a.value = I
|
|
2479
2484
|
}), null);
|
|
2480
2485
|
});
|
|
2481
|
-
return Q([() => e.id, () => e.editor, () => e.modelValue], ([
|
|
2482
|
-
n.value =
|
|
2486
|
+
return Q([() => e.id, () => e.editor, () => e.modelValue], ([c, l, i]) => {
|
|
2487
|
+
n.value = c, o.value = l, a.value = i;
|
|
2483
2488
|
}), () => p.value();
|
|
2484
2489
|
}
|
|
2485
2490
|
});
|
|
2486
2491
|
var pt = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(pt || {}), vt = /* @__PURE__ */ ((e) => (e.Equal = "0", e.NotEqual = "1", e.Greater = "2", e.GreaterOrEqual = "3", e.Less = "4", e.LessOrEqual = "5", e.Like = "6", e.LikeStartWith = "7", e.LikeEndWith = "8", e))(vt || {});
|
|
2487
|
-
const
|
|
2492
|
+
const ur = [
|
|
2488
2493
|
{
|
|
2489
2494
|
value: "0",
|
|
2490
2495
|
name: "等于"
|
|
@@ -2521,7 +2526,7 @@ const sr = [
|
|
|
2521
2526
|
value: "8",
|
|
2522
2527
|
name: "结束是"
|
|
2523
2528
|
}
|
|
2524
|
-
],
|
|
2529
|
+
], cr = {
|
|
2525
2530
|
"button-edit": ["0", "1", " 6", "7", "8"],
|
|
2526
2531
|
"check-box": ["0"],
|
|
2527
2532
|
"combo-list": ["0", "1"],
|
|
@@ -2541,14 +2546,14 @@ const sr = [
|
|
|
2541
2546
|
"radio-group": ["0"],
|
|
2542
2547
|
text: ["0", "1", " 6", "7", "8"]
|
|
2543
2548
|
};
|
|
2544
|
-
function
|
|
2549
|
+
function dr(e, t, n) {
|
|
2545
2550
|
const { fieldMap: o } = n;
|
|
2546
2551
|
function a(r) {
|
|
2547
2552
|
const s = o.get(r.fieldCode);
|
|
2548
2553
|
if (!s)
|
|
2549
2554
|
return [];
|
|
2550
|
-
const f = s.editor.type,
|
|
2551
|
-
return
|
|
2555
|
+
const f = s.editor.type, y = new Set(cr[f]);
|
|
2556
|
+
return ur.filter((c) => y.has(c.value));
|
|
2552
2557
|
}
|
|
2553
2558
|
return { getCompareOperators: a };
|
|
2554
2559
|
}
|
|
@@ -2567,203 +2572,203 @@ function mt() {
|
|
|
2567
2572
|
conditionId: Date.now()
|
|
2568
2573
|
};
|
|
2569
2574
|
}
|
|
2570
|
-
function r(
|
|
2571
|
-
return { relation:
|
|
2575
|
+
function r(b, D) {
|
|
2576
|
+
return { relation: b, items: [], children: [], path: [], groupId: ++o, level: D };
|
|
2572
2577
|
}
|
|
2573
2578
|
function s() {
|
|
2574
|
-
const
|
|
2575
|
-
n.forEach((
|
|
2576
|
-
|
|
2577
|
-
}), t.forEach((
|
|
2578
|
-
|
|
2579
|
-
}), e.value =
|
|
2580
|
-
}
|
|
2581
|
-
function f(
|
|
2582
|
-
const
|
|
2583
|
-
let
|
|
2584
|
-
return
|
|
2585
|
-
var
|
|
2586
|
-
if (
|
|
2579
|
+
const b = Object.assign({}, e.value);
|
|
2580
|
+
n.forEach((D, F) => {
|
|
2581
|
+
D.groupId === b.groupId && n.set(F, b);
|
|
2582
|
+
}), t.forEach((D, F) => {
|
|
2583
|
+
D.groupId === b.groupId && t.set(F, b);
|
|
2584
|
+
}), e.value = b;
|
|
2585
|
+
}
|
|
2586
|
+
function f(b) {
|
|
2587
|
+
const D = /* @__PURE__ */ new Map();
|
|
2588
|
+
let F = 0;
|
|
2589
|
+
return b.forEach((S, u) => {
|
|
2590
|
+
var g, B;
|
|
2591
|
+
if (F += ((g = S.lBracket) == null ? void 0 : g.length) || 0, D.set(u, F), F -= ((B = S.rBracket) == null ? void 0 : B.length) || 0, F < 0)
|
|
2587
2592
|
throw new Error("The right bracket is out of range.");
|
|
2588
|
-
}),
|
|
2593
|
+
}), D;
|
|
2589
2594
|
}
|
|
2590
|
-
function
|
|
2591
|
-
for (let
|
|
2592
|
-
const
|
|
2593
|
-
|
|
2595
|
+
function y(b, D, F, S, u) {
|
|
2596
|
+
for (let g = 0; g < D; g++) {
|
|
2597
|
+
const B = b + (g + 1), M = r(u, B);
|
|
2598
|
+
F.children.push(M), n.set(M.groupId, F), F = F.children[F.children.length - 1], S.push(F);
|
|
2594
2599
|
}
|
|
2595
|
-
return
|
|
2600
|
+
return F;
|
|
2596
2601
|
}
|
|
2597
|
-
function p(
|
|
2598
|
-
for (let A =
|
|
2602
|
+
function p(b, D, F, S, u) {
|
|
2603
|
+
for (let A = D; A <= 0; A++)
|
|
2599
2604
|
S.pop();
|
|
2600
|
-
const
|
|
2601
|
-
if (!
|
|
2605
|
+
const g = S[S.length - 1];
|
|
2606
|
+
if (!g)
|
|
2602
2607
|
throw new Error("The group path is out of range");
|
|
2603
|
-
const
|
|
2604
|
-
return
|
|
2608
|
+
const B = b + D, M = r(u, B);
|
|
2609
|
+
return g.children.push(M), n.set(M.groupId, g), F = g.children[g.children.length - 1], S.push(F), F;
|
|
2605
2610
|
}
|
|
2606
|
-
function
|
|
2607
|
-
|
|
2608
|
-
const u =
|
|
2609
|
-
return u.children.push(
|
|
2611
|
+
function c(b, D, F, S) {
|
|
2612
|
+
F.pop();
|
|
2613
|
+
const u = F[F.length - 1], g = r(S, b);
|
|
2614
|
+
return u.children.push(g), n.set(g.groupId, u), D = u.children[u.children.length - 1], F.push(D), D;
|
|
2610
2615
|
}
|
|
2611
|
-
function l(
|
|
2612
|
-
let
|
|
2613
|
-
if (!
|
|
2616
|
+
function l(b, D, F, S, u, g) {
|
|
2617
|
+
let B = b[b.length - 1];
|
|
2618
|
+
if (!B)
|
|
2614
2619
|
throw new Error("The group path is out of range");
|
|
2615
|
-
const
|
|
2616
|
-
if (
|
|
2617
|
-
return
|
|
2618
|
-
const P =
|
|
2619
|
-
return
|
|
2620
|
-
}
|
|
2621
|
-
function i(
|
|
2622
|
-
const
|
|
2623
|
-
return
|
|
2624
|
-
const
|
|
2625
|
-
P.items.push(
|
|
2626
|
-
}), e.value =
|
|
2620
|
+
const M = D.get(S) || 0, A = D.get(F) || 0;
|
|
2621
|
+
if (F < 0 || F === S)
|
|
2622
|
+
return b[b.length - 1];
|
|
2623
|
+
const P = M - A, O = u && u.relation !== void 0 ? u.relation : 1;
|
|
2624
|
+
return B = P > 0 ? y(A, P, B, b, O) : B, B = P < 0 ? p(A, P, B, b, O) : B, B = P === 0 && A > 0 && M > 0 && u && g && !!u.rBracket && !!g.lBracket ? c(A, B, b, O) : B, B;
|
|
2625
|
+
}
|
|
2626
|
+
function i(b) {
|
|
2627
|
+
const F = { relation: b.length && b[0].relation !== void 0 ? b[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, S = [F], u = f(b);
|
|
2628
|
+
return b.forEach((g, B) => {
|
|
2629
|
+
const M = B - 1, A = b[M], P = l(S, u, M, B, A, g);
|
|
2630
|
+
P.items.push(g), t.set(g.conditionId, P);
|
|
2631
|
+
}), e.value = F, F;
|
|
2627
2632
|
}
|
|
2628
2633
|
function I() {
|
|
2629
|
-
const
|
|
2630
|
-
t.set(
|
|
2634
|
+
const b = a();
|
|
2635
|
+
t.set(b.conditionId, e.value), e.value.items.push(b);
|
|
2631
2636
|
}
|
|
2632
|
-
function
|
|
2633
|
-
if (!
|
|
2637
|
+
function V(b) {
|
|
2638
|
+
if (!b)
|
|
2634
2639
|
return;
|
|
2635
|
-
const
|
|
2636
|
-
if (
|
|
2637
|
-
const
|
|
2638
|
-
t.set(S.conditionId,
|
|
2640
|
+
const D = t.get(b.conditionId);
|
|
2641
|
+
if (D) {
|
|
2642
|
+
const F = D.items.findIndex((u) => u.conditionId === b.conditionId) + 1, S = a();
|
|
2643
|
+
t.set(S.conditionId, D), D.items.splice(F, 0, S), s();
|
|
2639
2644
|
}
|
|
2640
2645
|
}
|
|
2641
|
-
function
|
|
2642
|
-
const
|
|
2643
|
-
|
|
2646
|
+
function h(b) {
|
|
2647
|
+
const D = t.get(b.conditionId);
|
|
2648
|
+
D && (D.items = D.items.filter((F) => F.conditionId !== b.conditionId), t.delete(b.conditionId), N(), s());
|
|
2644
2649
|
}
|
|
2645
|
-
function x(
|
|
2646
|
-
|
|
2647
|
-
const
|
|
2648
|
-
if (
|
|
2649
|
-
const A =
|
|
2650
|
-
|
|
2650
|
+
function x(b, D, F, S) {
|
|
2651
|
+
b.reduce((u, g) => {
|
|
2652
|
+
const B = g.conditionId !== void 0, M = g.groupId !== void 0;
|
|
2653
|
+
if (B) {
|
|
2654
|
+
const A = g;
|
|
2655
|
+
F.push(A), u.items.set(A.conditionId, A);
|
|
2651
2656
|
}
|
|
2652
|
-
if (
|
|
2653
|
-
const A =
|
|
2657
|
+
if (M) {
|
|
2658
|
+
const A = g;
|
|
2654
2659
|
S.push(A), u.groups.set(A.groupId, A);
|
|
2655
2660
|
}
|
|
2656
2661
|
return u;
|
|
2657
|
-
},
|
|
2662
|
+
}, D);
|
|
2658
2663
|
}
|
|
2659
|
-
function
|
|
2660
|
-
|
|
2664
|
+
function _(b, D, F, S, u) {
|
|
2665
|
+
b && (b.items = D.length ? b.items.filter((g) => !F.has(g.conditionId)) : b.items, b.children = S.length ? b.children.filter((g) => !u.has(g.groupId)) : b.children);
|
|
2661
2666
|
}
|
|
2662
|
-
function
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
}),
|
|
2666
|
-
|
|
2667
|
+
function d(b, D, F) {
|
|
2668
|
+
D.forEach((S) => {
|
|
2669
|
+
b.items.push(S), t.set(S.conditionId, b);
|
|
2670
|
+
}), F.forEach((S) => {
|
|
2671
|
+
b.children.push(S), n.set(S.groupId, b);
|
|
2667
2672
|
});
|
|
2668
2673
|
}
|
|
2669
|
-
function
|
|
2670
|
-
const
|
|
2671
|
-
if (
|
|
2672
|
-
x(
|
|
2673
|
-
const
|
|
2674
|
-
|
|
2674
|
+
function k(b) {
|
|
2675
|
+
const D = b[0], F = D.conditionId !== void 0 ? t.get(D.conditionId) : n.get(D.groupId), S = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, u = [], g = [];
|
|
2676
|
+
if (F) {
|
|
2677
|
+
x(b, S, u, g), _(F, u, S.items, g, S.groups);
|
|
2678
|
+
const B = r(F.relation, F.level + 1);
|
|
2679
|
+
d(B, u, g), F.children.push(B), n.set(B.groupId, F), s();
|
|
2675
2680
|
}
|
|
2676
2681
|
}
|
|
2677
|
-
function
|
|
2678
|
-
const
|
|
2679
|
-
S && (S.children = S.children.filter((u) => u.groupId !==
|
|
2682
|
+
function T(b) {
|
|
2683
|
+
const D = [...b.items], F = [...b.children], S = n.get(b.groupId);
|
|
2684
|
+
S && (S.children = S.children.filter((u) => u.groupId !== b.groupId), n.delete(b.groupId), D.forEach((u) => {
|
|
2680
2685
|
S.items.push(u), t.set(u.conditionId, S);
|
|
2681
|
-
}),
|
|
2686
|
+
}), F.forEach((u) => {
|
|
2682
2687
|
S.children.push(u), n.set(u.groupId, S);
|
|
2683
2688
|
}), s());
|
|
2684
2689
|
}
|
|
2685
|
-
function
|
|
2686
|
-
|
|
2690
|
+
function m(b) {
|
|
2691
|
+
b.relation = b.relation === 1 ? 2 : 1, s();
|
|
2687
2692
|
}
|
|
2688
|
-
let
|
|
2689
|
-
function
|
|
2690
|
-
const { relation:
|
|
2691
|
-
return (
|
|
2692
|
-
const
|
|
2693
|
-
return
|
|
2693
|
+
let C;
|
|
2694
|
+
function E(b) {
|
|
2695
|
+
const { relation: D } = b;
|
|
2696
|
+
return (b.children && b.children.length ? b.children.map((S, u, g) => {
|
|
2697
|
+
const B = C(S);
|
|
2698
|
+
return B[0].lBracket = (B[0].lBracket || "") + "(", B[B.length - 1].rBracket = (B[B.length - 1].rBracket || "") + ")", B[B.length - 1].relation = u < g.length - 1 ? D : 0, B;
|
|
2694
2699
|
}) : []).flat();
|
|
2695
2700
|
}
|
|
2696
|
-
|
|
2697
|
-
const { relation:
|
|
2698
|
-
return [...
|
|
2701
|
+
C = (b = e.value) => {
|
|
2702
|
+
const { relation: D } = b, F = b.items.map((u, g, B) => (u.lBracket = g === 0 ? "(" : "", u.rBracket = g === B.length - 1 ? ")" : "", u.relation = g < B.length - 1 ? D || 1 : 0, u)), S = E(b);
|
|
2703
|
+
return [...F, ...S];
|
|
2699
2704
|
};
|
|
2700
|
-
function
|
|
2701
|
-
const
|
|
2702
|
-
if (
|
|
2703
|
-
|
|
2704
|
-
}),
|
|
2705
|
-
const
|
|
2706
|
-
e.value.relation =
|
|
2707
|
-
} else
|
|
2705
|
+
function N(b) {
|
|
2706
|
+
const D = b || e.value;
|
|
2707
|
+
if (D.children.length && D.children.forEach((F) => {
|
|
2708
|
+
N(F);
|
|
2709
|
+
}), D.level === 0 && !D.items.length && D.children.length === 1) {
|
|
2710
|
+
const F = D.children[0];
|
|
2711
|
+
e.value.relation = F.relation, T(F);
|
|
2712
|
+
} else D.items.length === 0 && D.children.length <= 1 && T(D);
|
|
2708
2713
|
}
|
|
2709
2714
|
return {
|
|
2710
2715
|
addCondition: I,
|
|
2711
|
-
changeGroupRelation:
|
|
2716
|
+
changeGroupRelation: m,
|
|
2712
2717
|
conditionGroupMap: t,
|
|
2713
|
-
getConditions:
|
|
2714
|
-
group:
|
|
2718
|
+
getConditions: C,
|
|
2719
|
+
group: k,
|
|
2715
2720
|
groupParentMap: n,
|
|
2716
|
-
insertConditionTo:
|
|
2721
|
+
insertConditionTo: V,
|
|
2717
2722
|
loadConditionGroup: i,
|
|
2718
2723
|
refresh: s,
|
|
2719
|
-
removeCondition:
|
|
2724
|
+
removeCondition: h,
|
|
2720
2725
|
rootGroup: e,
|
|
2721
|
-
unGroup:
|
|
2726
|
+
unGroup: T
|
|
2722
2727
|
};
|
|
2723
2728
|
}
|
|
2724
|
-
function
|
|
2729
|
+
function fr(e, t, n) {
|
|
2725
2730
|
const o = w(/* @__PURE__ */ new Set()), a = w(/* @__PURE__ */ new Set()), { conditionGroupMap: r, groupParentMap: s } = n;
|
|
2726
|
-
let f,
|
|
2727
|
-
function p(
|
|
2728
|
-
let
|
|
2729
|
-
const
|
|
2730
|
-
for (;
|
|
2731
|
-
|
|
2732
|
-
return
|
|
2733
|
-
}
|
|
2734
|
-
function
|
|
2735
|
-
a.value.add(
|
|
2736
|
-
}
|
|
2737
|
-
function l(
|
|
2738
|
-
const { conditionId:
|
|
2739
|
-
o.value.add(
|
|
2740
|
-
const
|
|
2741
|
-
p(
|
|
2742
|
-
}
|
|
2743
|
-
const i =
|
|
2744
|
-
a.value.delete(
|
|
2745
|
-
const
|
|
2746
|
-
|
|
2731
|
+
let f, y;
|
|
2732
|
+
function p(_) {
|
|
2733
|
+
let d = f.level <= _.level ? f : _, k = f.level > _.level ? f : _;
|
|
2734
|
+
const T = [];
|
|
2735
|
+
for (; k && d && k !== d; )
|
|
2736
|
+
k.level > d.level ? (T.push(k), k = s.get(k.groupId)) : k.level === d.level && (d = s.get(d.groupId), d && T.unshift(d));
|
|
2737
|
+
return T;
|
|
2738
|
+
}
|
|
2739
|
+
function c(_) {
|
|
2740
|
+
a.value.add(_.groupId), _.items.forEach((d) => o.value.add(d.conditionId)), _.children.forEach((d) => c(d));
|
|
2741
|
+
}
|
|
2742
|
+
function l(_) {
|
|
2743
|
+
const { conditionId: d } = _;
|
|
2744
|
+
o.value.add(d), f = o.value.size === 0 ? r.get(d) : f;
|
|
2745
|
+
const k = r.get(_.conditionId);
|
|
2746
|
+
p(k).forEach((m) => c(m));
|
|
2747
|
+
}
|
|
2748
|
+
const i = R(() => o.value.size === 0 && a.value.size === 1), I = function(_) {
|
|
2749
|
+
a.value.delete(_.groupId), _.items.forEach((k) => y(k)), _.children.forEach((k) => !i.value && I(k));
|
|
2750
|
+
const d = s.get(_.groupId);
|
|
2751
|
+
d && a.value.has(d.groupId) && I(d);
|
|
2747
2752
|
};
|
|
2748
|
-
|
|
2749
|
-
const { conditionId:
|
|
2750
|
-
if (o.value.has(
|
|
2751
|
-
const
|
|
2752
|
-
|
|
2753
|
+
y = function(_) {
|
|
2754
|
+
const { conditionId: d } = _;
|
|
2755
|
+
if (o.value.has(d) && o.value.delete(d), a.value.size > 0) {
|
|
2756
|
+
const k = r.get(d);
|
|
2757
|
+
k && a.value.has(k.groupId) && I(k);
|
|
2753
2758
|
}
|
|
2754
2759
|
};
|
|
2755
|
-
function
|
|
2756
|
-
const { conditionId:
|
|
2757
|
-
o.value.size === 0 && (f = r.get(
|
|
2760
|
+
function V(_) {
|
|
2761
|
+
const { conditionId: d } = _;
|
|
2762
|
+
o.value.size === 0 && (f = r.get(d)), o.value.has(d) ? y(_) : l(_);
|
|
2758
2763
|
}
|
|
2759
|
-
function
|
|
2760
|
-
const
|
|
2761
|
-
return f && (f.items.filter((
|
|
2764
|
+
function h() {
|
|
2765
|
+
const _ = [];
|
|
2766
|
+
return f && (f.items.filter((d) => o.value.has(d.conditionId)).forEach((d) => _.push(d)), f.children.filter((d) => a.value.has(d.groupId)).forEach((d) => _.push(d))), _;
|
|
2762
2767
|
}
|
|
2763
2768
|
function x() {
|
|
2764
2769
|
o.value.clear(), a.value.clear();
|
|
2765
2770
|
}
|
|
2766
|
-
return { clear: x, getSelectedGroupItem:
|
|
2771
|
+
return { clear: x, getSelectedGroupItem: h, selectedItems: o, toggleSelect: V };
|
|
2767
2772
|
}
|
|
2768
2773
|
const Ve = /* @__PURE__ */ oe({
|
|
2769
2774
|
name: "FConditionList",
|
|
@@ -2774,51 +2779,51 @@ const Ve = /* @__PURE__ */ oe({
|
|
|
2774
2779
|
convertToSingleControl: r,
|
|
2775
2780
|
fields: s,
|
|
2776
2781
|
fieldMap: f,
|
|
2777
|
-
loadFieldConfigs:
|
|
2782
|
+
loadFieldConfigs: y
|
|
2778
2783
|
} = a, p = mt(), {
|
|
2779
|
-
addCondition:
|
|
2784
|
+
addCondition: c,
|
|
2780
2785
|
changeGroupRelation: l,
|
|
2781
2786
|
getConditions: i,
|
|
2782
2787
|
group: I,
|
|
2783
|
-
insertConditionTo:
|
|
2784
|
-
loadConditionGroup:
|
|
2788
|
+
insertConditionTo: V,
|
|
2789
|
+
loadConditionGroup: h,
|
|
2785
2790
|
refresh: x,
|
|
2786
|
-
removeCondition:
|
|
2787
|
-
rootGroup:
|
|
2788
|
-
unGroup:
|
|
2791
|
+
removeCondition: _,
|
|
2792
|
+
rootGroup: d,
|
|
2793
|
+
unGroup: k
|
|
2789
2794
|
} = p, {
|
|
2790
|
-
createConditionValue:
|
|
2791
|
-
} = it(),
|
|
2792
|
-
selectedItems:
|
|
2793
|
-
toggleSelect:
|
|
2794
|
-
} =
|
|
2795
|
-
getCompareOperators:
|
|
2796
|
-
} =
|
|
2797
|
-
|
|
2798
|
-
function
|
|
2799
|
-
var
|
|
2800
|
-
const
|
|
2795
|
+
createConditionValue: T
|
|
2796
|
+
} = it(), m = fr(e, t, p), {
|
|
2797
|
+
selectedItems: C,
|
|
2798
|
+
toggleSelect: E
|
|
2799
|
+
} = m, {
|
|
2800
|
+
getCompareOperators: N
|
|
2801
|
+
} = dr(e, t, a);
|
|
2802
|
+
y(!1), s.value = r(s.value), h(o.value);
|
|
2803
|
+
function b(P) {
|
|
2804
|
+
var H;
|
|
2805
|
+
const O = ((H = f.get(P.fieldCode)) == null ? void 0 : H.editor) || {
|
|
2801
2806
|
type: "text"
|
|
2802
2807
|
};
|
|
2803
|
-
P.value =
|
|
2808
|
+
P.value = T(O.type, void 0), t.emit("labelCodeChange", P);
|
|
2804
2809
|
}
|
|
2805
|
-
function
|
|
2806
|
-
t.emit("compareTypeChange",
|
|
2810
|
+
function D(P, O) {
|
|
2811
|
+
t.emit("compareTypeChange", O);
|
|
2807
2812
|
}
|
|
2808
|
-
function
|
|
2813
|
+
function F() {
|
|
2809
2814
|
}
|
|
2810
2815
|
t.expose({
|
|
2811
2816
|
getConditions: i
|
|
2812
2817
|
});
|
|
2813
|
-
function S(P,
|
|
2814
|
-
t.emit("valueChange", P,
|
|
2818
|
+
function S(P, O) {
|
|
2819
|
+
t.emit("valueChange", P, O);
|
|
2815
2820
|
}
|
|
2816
2821
|
function u(P) {
|
|
2817
|
-
return P.items.map((
|
|
2818
|
-
var
|
|
2822
|
+
return P.items.map((O) => {
|
|
2823
|
+
var H;
|
|
2819
2824
|
return v("div", {
|
|
2820
2825
|
class: "condition-list-item",
|
|
2821
|
-
key:
|
|
2826
|
+
key: O.conditionId
|
|
2822
2827
|
}, [v("div", {
|
|
2823
2828
|
class: "condition-list-item-type mr-3"
|
|
2824
2829
|
}, [v(Ie, {
|
|
@@ -2826,91 +2831,91 @@ const Ve = /* @__PURE__ */ oe({
|
|
|
2826
2831
|
"text-field": "name",
|
|
2827
2832
|
"id-field": "id",
|
|
2828
2833
|
data: s.value,
|
|
2829
|
-
modelValue:
|
|
2830
|
-
"onUpdate:modelValue": (W) =>
|
|
2831
|
-
onChange: (W) =>
|
|
2834
|
+
modelValue: O.fieldCode,
|
|
2835
|
+
"onUpdate:modelValue": (W) => O.fieldCode = W,
|
|
2836
|
+
onChange: (W) => b(O)
|
|
2832
2837
|
}, null)]), v("div", {
|
|
2833
2838
|
class: "condition-list-item-compare mr-3"
|
|
2834
2839
|
}, [v(Ie, {
|
|
2835
2840
|
"value-field": "value",
|
|
2836
2841
|
"text-field": "name",
|
|
2837
2842
|
"id-field": "id",
|
|
2838
|
-
data:
|
|
2839
|
-
modelValue:
|
|
2840
|
-
"onUpdate:modelValue": (W) =>
|
|
2841
|
-
onChange: (W) =>
|
|
2843
|
+
data: N(O),
|
|
2844
|
+
modelValue: O.compareType,
|
|
2845
|
+
"onUpdate:modelValue": (W) => O.compareType = W,
|
|
2846
|
+
onChange: (W) => D(W, O)
|
|
2842
2847
|
}, null)]), v("div", {
|
|
2843
2848
|
class: "condition-list-item-control mr-3"
|
|
2844
|
-
}, [v(
|
|
2845
|
-
editor: (
|
|
2849
|
+
}, [v(sr, {
|
|
2850
|
+
editor: (H = f.get(O.fieldCode)) == null ? void 0 : H.editor,
|
|
2846
2851
|
showLabel: !1,
|
|
2847
|
-
modelValue:
|
|
2848
|
-
"onUpdate:modelValue": (W) =>
|
|
2852
|
+
modelValue: O.value.value,
|
|
2853
|
+
"onUpdate:modelValue": (W) => O.value.value = W,
|
|
2849
2854
|
onChange: (W) => {
|
|
2850
|
-
S(W,
|
|
2855
|
+
S(W, O);
|
|
2851
2856
|
}
|
|
2852
2857
|
}, null)]), v("div", {
|
|
2853
2858
|
class: "condition-list-item-extend"
|
|
2854
2859
|
}, [v("span", {
|
|
2855
2860
|
class: "f-icon f-icon-plus-sm mr-2",
|
|
2856
|
-
onClick: () =>
|
|
2861
|
+
onClick: () => V(O)
|
|
2857
2862
|
}, null), v("span", {
|
|
2858
2863
|
class: "f-icon f-icon-minus-sm",
|
|
2859
|
-
onClick: () =>
|
|
2864
|
+
onClick: () => _(O)
|
|
2860
2865
|
}, null)]), v("div", {
|
|
2861
2866
|
class: "custom-control custom-checkbox"
|
|
2862
2867
|
}, [v("input", {
|
|
2863
2868
|
title: "selection",
|
|
2864
2869
|
class: "custom-control-input",
|
|
2865
2870
|
type: "checkbox",
|
|
2866
|
-
checked:
|
|
2871
|
+
checked: C.value.has(O.conditionId)
|
|
2867
2872
|
}, null), v("label", {
|
|
2868
2873
|
class: "custom-control-label",
|
|
2869
|
-
onClick: () =>
|
|
2874
|
+
onClick: () => E(O)
|
|
2870
2875
|
}, null)])]);
|
|
2871
2876
|
});
|
|
2872
2877
|
}
|
|
2873
|
-
function
|
|
2878
|
+
function g(P) {
|
|
2874
2879
|
return v("div", {
|
|
2875
2880
|
class: "condition-list-relation"
|
|
2876
2881
|
}, [v("span", {
|
|
2877
2882
|
class: "condition-list-relation-close f-icon-filter-cancel btn-link",
|
|
2878
|
-
onClick: () =>
|
|
2883
|
+
onClick: () => k(P)
|
|
2879
2884
|
}, null), v("span", {
|
|
2880
2885
|
class: "condition-list-relation-text btn-link",
|
|
2881
2886
|
onClick: () => l(P)
|
|
2882
2887
|
}, [P.relation === 1 ? "与" : "或"])]);
|
|
2883
2888
|
}
|
|
2884
|
-
function
|
|
2889
|
+
function B(P) {
|
|
2885
2890
|
return v("div", {
|
|
2886
2891
|
class: "condition-list-content"
|
|
2887
2892
|
}, [v("div", {
|
|
2888
2893
|
class: "condition-list-content-group"
|
|
2889
|
-
}, [u(P), P.children && P.children.map((
|
|
2894
|
+
}, [u(P), P.children && P.children.map((O) => B(O))]), g(P)]);
|
|
2890
2895
|
}
|
|
2891
|
-
function
|
|
2892
|
-
I(
|
|
2896
|
+
function M() {
|
|
2897
|
+
I(m.getSelectedGroupItem()), m.clear();
|
|
2893
2898
|
}
|
|
2894
2899
|
function A() {
|
|
2895
2900
|
return v("div", {
|
|
2896
2901
|
class: "condition-list-bottom"
|
|
2897
2902
|
}, [v("div", {
|
|
2898
2903
|
class: "add-condition-btn mb-1 mr-3",
|
|
2899
|
-
onClick:
|
|
2904
|
+
onClick: c
|
|
2900
2905
|
}, [v("span", {
|
|
2901
2906
|
class: "f-icon f-icon-filter-add"
|
|
2902
2907
|
}, null), v("span", {
|
|
2903
2908
|
class: "ml-1"
|
|
2904
2909
|
}, [ue("添加条件")])]), v("div", {
|
|
2905
2910
|
class: "add-condition-btn mb-1",
|
|
2906
|
-
onClick:
|
|
2911
|
+
onClick: M
|
|
2907
2912
|
}, [v("span", {
|
|
2908
2913
|
class: "f-icon f-icon-filter-grouping"
|
|
2909
2914
|
}, null), v("span", {
|
|
2910
2915
|
class: "ml-1"
|
|
2911
2916
|
}, [ue("生成条件组")])]), v("div", {
|
|
2912
2917
|
class: "condition-list-reset add-condition-btn",
|
|
2913
|
-
onClick:
|
|
2918
|
+
onClick: F
|
|
2914
2919
|
}, [ue("重置")])]);
|
|
2915
2920
|
}
|
|
2916
2921
|
return () => v("div", {
|
|
@@ -2918,13 +2923,13 @@ const Ve = /* @__PURE__ */ oe({
|
|
|
2918
2923
|
key: n.value
|
|
2919
2924
|
}, [v("div", {
|
|
2920
2925
|
class: "condition-list-body"
|
|
2921
|
-
}, [
|
|
2926
|
+
}, [B(d.value)]), A()]);
|
|
2922
2927
|
}
|
|
2923
2928
|
});
|
|
2924
2929
|
Ve.install = (e) => {
|
|
2925
2930
|
e.component(qe.name, qe).component(Ve.name, Ve);
|
|
2926
2931
|
};
|
|
2927
|
-
const
|
|
2932
|
+
const pr = [
|
|
2928
2933
|
"equal",
|
|
2929
2934
|
"notEqual",
|
|
2930
2935
|
"greaterThan",
|
|
@@ -2934,16 +2939,16 @@ const dr = [
|
|
|
2934
2939
|
"contain",
|
|
2935
2940
|
"startWidth",
|
|
2936
2941
|
"endWidth"
|
|
2937
|
-
],
|
|
2942
|
+
], vr = {
|
|
2938
2943
|
equal: (e, t, n) => e && e[t] === n,
|
|
2939
2944
|
notEqual: (e, t, n) => e && e[t] !== n,
|
|
2940
2945
|
contain: (e, t, n) => e ? (e[t] || "").indexOf(n) > -1 : !1,
|
|
2941
2946
|
startWidth: (e, t, n) => e ? (e[t] || "").startsWith(n) : !1,
|
|
2942
2947
|
endWidth: (e, t, n) => e ? (e[t] || "").endsWith(n) : !1
|
|
2943
|
-
},
|
|
2948
|
+
}, mr = {
|
|
2944
2949
|
equal: (e, t, n) => e && e[t] === n,
|
|
2945
2950
|
notEqual: (e, t, n) => e && e[t] !== n
|
|
2946
|
-
},
|
|
2951
|
+
}, hr = {
|
|
2947
2952
|
equal: (e, t, n) => {
|
|
2948
2953
|
if (e) {
|
|
2949
2954
|
const o = new Date(new Date(n).toLocaleDateString()).valueOf();
|
|
@@ -2986,10 +2991,10 @@ const dr = [
|
|
|
2986
2991
|
}
|
|
2987
2992
|
return !1;
|
|
2988
2993
|
}
|
|
2989
|
-
},
|
|
2994
|
+
}, gr = {
|
|
2990
2995
|
equal: (e, t, n) => e ? String(n).split(",").includes(String(e[t])) : !1,
|
|
2991
2996
|
notEqual: (e, t, n) => e ? String(n).split(",").findIndex((a) => a === String(e[t])) === -1 : !1
|
|
2992
|
-
},
|
|
2997
|
+
}, yr = {
|
|
2993
2998
|
equal: (e, t, n) => {
|
|
2994
2999
|
if (e) {
|
|
2995
3000
|
const o = Number.parseFloat(String(n)), a = Number.parseFloat(String(e[t]));
|
|
@@ -3033,13 +3038,13 @@ const dr = [
|
|
|
3033
3038
|
return !1;
|
|
3034
3039
|
}
|
|
3035
3040
|
};
|
|
3036
|
-
function
|
|
3041
|
+
function _r() {
|
|
3037
3042
|
const e = w([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } = mt(), o = /* @__PURE__ */ new Map([
|
|
3038
|
-
["boolean",
|
|
3039
|
-
["datetime",
|
|
3040
|
-
["enum",
|
|
3041
|
-
["number",
|
|
3042
|
-
["text",
|
|
3043
|
+
["boolean", mr],
|
|
3044
|
+
["datetime", hr],
|
|
3045
|
+
["enum", gr],
|
|
3046
|
+
["number", yr],
|
|
3047
|
+
["text", vr]
|
|
3043
3048
|
]);
|
|
3044
3049
|
function a(l) {
|
|
3045
3050
|
t.delete(l), e.value = Array.from(t.values());
|
|
@@ -3048,263 +3053,260 @@ function gr() {
|
|
|
3048
3053
|
t.clear(), e.value = [];
|
|
3049
3054
|
}
|
|
3050
3055
|
function s(l) {
|
|
3051
|
-
const { valueType: i } = l.value, I = l.compareType || "0",
|
|
3052
|
-
return o.get(i)[
|
|
3056
|
+
const { valueType: i } = l.value, I = l.compareType || "0", V = pr[Number(I)];
|
|
3057
|
+
return o.get(i)[V];
|
|
3053
3058
|
}
|
|
3054
3059
|
function f(l) {
|
|
3055
|
-
const i = l.relation === 2 ? 0 : 1, I = l.items.map((
|
|
3056
|
-
const x = s(
|
|
3057
|
-
return (
|
|
3058
|
-
}),
|
|
3059
|
-
return { relation: i, filterFunctions: I, children:
|
|
3060
|
+
const i = l.relation === 2 ? 0 : 1, I = l.items.map((h) => {
|
|
3061
|
+
const x = s(h);
|
|
3062
|
+
return (d) => x(d, h.fieldCode, h.value.getValue());
|
|
3063
|
+
}), V = l.children && l.children.length ? l.children.map((h) => f(h)) : [];
|
|
3064
|
+
return { relation: i, filterFunctions: I, children: V };
|
|
3060
3065
|
}
|
|
3061
|
-
function
|
|
3066
|
+
function y() {
|
|
3062
3067
|
const l = n(e.value);
|
|
3063
3068
|
return f(l);
|
|
3064
3069
|
}
|
|
3065
3070
|
function p(l, i) {
|
|
3066
|
-
const I = i.filterFunctions.map((
|
|
3067
|
-
return i.relation === 1 ? I.every((
|
|
3071
|
+
const I = i.filterFunctions.map((h) => h(l)), V = i.children.map((h) => p(l, h));
|
|
3072
|
+
return i.relation === 1 ? I.every((h) => h) && V.every((h) => h) : I.includes(!0) || V.includes(!0);
|
|
3068
3073
|
}
|
|
3069
|
-
function
|
|
3070
|
-
const i =
|
|
3074
|
+
function c(l) {
|
|
3075
|
+
const i = y();
|
|
3071
3076
|
return p(l, i);
|
|
3072
3077
|
}
|
|
3073
|
-
return { apply:
|
|
3078
|
+
return { apply: c, clearCondition: r, conditions: e, removeCondition: a };
|
|
3074
3079
|
}
|
|
3075
3080
|
function ht(e, t) {
|
|
3076
|
-
var
|
|
3077
|
-
const { idField: n } = t, o = w(e.summary), a = w(e.group), r = w(((
|
|
3078
|
-
const
|
|
3079
|
-
return (
|
|
3080
|
-
}),
|
|
3081
|
-
const
|
|
3082
|
-
return
|
|
3081
|
+
var x, _;
|
|
3082
|
+
const { idField: n } = t, o = w(e.summary), a = w(e.group), r = w(((x = e.group) == null ? void 0 : x.groupFields) || []), s = w(((_ = e.group) == null ? void 0 : _.enable) || !1), f = R(() => {
|
|
3083
|
+
const d = o.value;
|
|
3084
|
+
return (d == null ? void 0 : d.groupFields) || [];
|
|
3085
|
+
}), y = R(() => {
|
|
3086
|
+
const d = a.value;
|
|
3087
|
+
return d && d.showSummary;
|
|
3083
3088
|
}), p = /* @__PURE__ */ new Map();
|
|
3084
|
-
let
|
|
3085
|
-
function
|
|
3086
|
-
const E =
|
|
3087
|
-
E && (
|
|
3088
|
-
var
|
|
3089
|
-
const
|
|
3090
|
-
let
|
|
3091
|
-
if (!
|
|
3092
|
-
const
|
|
3093
|
-
|
|
3089
|
+
let c = [];
|
|
3090
|
+
function l(d, k, T, m, C) {
|
|
3091
|
+
const E = m[T];
|
|
3092
|
+
E && (k.reduce((N, b, D) => {
|
|
3093
|
+
var u;
|
|
3094
|
+
const F = b[E];
|
|
3095
|
+
let S = N.get(F);
|
|
3096
|
+
if (!S) {
|
|
3097
|
+
const g = f.value.reduce((B, M) => (B.set(M, 0), B), /* @__PURE__ */ new Map());
|
|
3098
|
+
S = {
|
|
3094
3099
|
field: E,
|
|
3095
|
-
title: ((
|
|
3096
|
-
value:
|
|
3097
|
-
layer:
|
|
3100
|
+
title: ((u = C.get(E)) == null ? void 0 : u.title) || E,
|
|
3101
|
+
value: F,
|
|
3102
|
+
layer: T,
|
|
3098
3103
|
details: [],
|
|
3099
|
-
groupSummaries:
|
|
3100
|
-
},
|
|
3104
|
+
groupSummaries: g
|
|
3105
|
+
}, N.set(F, S);
|
|
3101
3106
|
}
|
|
3102
|
-
return f.value && f.value.forEach((
|
|
3103
|
-
if (
|
|
3104
|
-
const
|
|
3105
|
-
|
|
3107
|
+
return f.value && f.value.forEach((g) => {
|
|
3108
|
+
if (S) {
|
|
3109
|
+
const B = S.groupSummaries.get(g) || 0;
|
|
3110
|
+
S.groupSummaries.set(g, B + b[g]);
|
|
3106
3111
|
}
|
|
3107
|
-
}),
|
|
3108
|
-
},
|
|
3109
|
-
|
|
3112
|
+
}), S.details.push(b), N;
|
|
3113
|
+
}, d), T < m.length - 1 && d.forEach((N, b) => {
|
|
3114
|
+
N.nestGroup = /* @__PURE__ */ new Map(), l(N.nestGroup, N.details, T + 1, m, C), N.details = [];
|
|
3110
3115
|
}));
|
|
3111
3116
|
}
|
|
3112
|
-
function
|
|
3113
|
-
return e.group && e.group.formatter ? e.group.formatter(
|
|
3117
|
+
function i(d, k) {
|
|
3118
|
+
return e.group && e.group.formatter ? e.group.formatter(d.value, { ...d, total: k }) : `${d.title}:${d.value} (${k})`;
|
|
3114
3119
|
}
|
|
3115
|
-
function
|
|
3116
|
-
const
|
|
3117
|
-
return
|
|
3118
|
-
const
|
|
3120
|
+
function I(d) {
|
|
3121
|
+
const k = [];
|
|
3122
|
+
return d.forEach((T) => {
|
|
3123
|
+
const m = {
|
|
3119
3124
|
__fv_data_grid_group_collapse__: !1,
|
|
3120
|
-
__fv_data_grid_group_field__:
|
|
3121
|
-
__fv_data_grid_group_layer__:
|
|
3125
|
+
__fv_data_grid_group_field__: T.field,
|
|
3126
|
+
__fv_data_grid_group_layer__: T.layer,
|
|
3122
3127
|
__fv_data_grid_group_row__: !0,
|
|
3123
|
-
__fv_data_grid_group_value__:
|
|
3128
|
+
__fv_data_grid_group_value__: T.value
|
|
3124
3129
|
};
|
|
3125
|
-
let
|
|
3126
|
-
if (
|
|
3127
|
-
const E =
|
|
3128
|
-
|
|
3130
|
+
let C = 0;
|
|
3131
|
+
if (k.push(m), T.nestGroup) {
|
|
3132
|
+
const E = I(T.nestGroup);
|
|
3133
|
+
k.push(...E), C += E.length;
|
|
3129
3134
|
}
|
|
3130
|
-
if (
|
|
3135
|
+
if (T.details && T.details.length && (k.push(...T.details), C += T.details.length), y.value) {
|
|
3131
3136
|
const E = {
|
|
3132
|
-
__fv_data_grid_group_field__:
|
|
3133
|
-
__fv_data_grid_group_layer__:
|
|
3137
|
+
__fv_data_grid_group_field__: T.field,
|
|
3138
|
+
__fv_data_grid_group_layer__: T.layer,
|
|
3134
3139
|
__fv_data_grid_group_summary__: !0
|
|
3135
3140
|
};
|
|
3136
|
-
E[n.value] = `summary_of_${
|
|
3137
|
-
(
|
|
3141
|
+
E[n.value] = `summary_of_${T.field}_${T.value}`, E[T.field] = Array.from(T.groupSummaries.entries()).reduce(
|
|
3142
|
+
(N, [b, D]) => `${N} ${b} total:${D} `,
|
|
3138
3143
|
""
|
|
3139
|
-
),
|
|
3144
|
+
), k.push(E);
|
|
3140
3145
|
}
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
}),
|
|
3144
|
-
}),
|
|
3145
|
-
|
|
3146
|
-
}),
|
|
3147
|
-
}
|
|
3148
|
-
function
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
return b !== l && (p.clear(), d = [], l = b, i(p, V, 0, F, c), d = k(p)), d;
|
|
3153
|
-
}
|
|
3154
|
-
function x(F) {
|
|
3146
|
+
T.groupSummaries && T.groupSummaries.size && T.groupSummaries.forEach((E, N) => {
|
|
3147
|
+
m[N] = E;
|
|
3148
|
+
}), m[n.value] = `group_of_${T.field}_${T.value}`, m[T.field] = i(T, C);
|
|
3149
|
+
}), k.forEach((T, m) => {
|
|
3150
|
+
T.__fv_data_index__ = m;
|
|
3151
|
+
}), k;
|
|
3152
|
+
}
|
|
3153
|
+
function V(d, k, T) {
|
|
3154
|
+
return !d || d.length === 0 || !k.length ? k : (d.join(","), p.clear(), c = [], l(p, k, 0, d, T), c = I(p), c);
|
|
3155
|
+
}
|
|
3156
|
+
function h(d) {
|
|
3155
3157
|
return {
|
|
3156
3158
|
"f-icon": !0,
|
|
3157
3159
|
"f-icon-arrow-chevron-down": !0,
|
|
3158
|
-
"fv-grid-group-row-icon-collapse":
|
|
3160
|
+
"fv-grid-group-row-icon-collapse": d.collapse
|
|
3159
3161
|
};
|
|
3160
3162
|
}
|
|
3161
|
-
return { collpaseGroupIconClass:
|
|
3163
|
+
return { collpaseGroupIconClass: h, generateGroupData: V, groupFields: r, shouldGroupingData: s };
|
|
3162
3164
|
}
|
|
3163
|
-
function
|
|
3164
|
-
const a = w(!!e.hierarchy), { idField: r } = o, { collapseField: s, hasChildrenField: f, parentIdField:
|
|
3165
|
-
function
|
|
3166
|
-
const
|
|
3167
|
-
return S.reduce((
|
|
3168
|
-
const A =
|
|
3165
|
+
function br(e, t, n, o) {
|
|
3166
|
+
const a = w(!!e.hierarchy), { idField: r } = o, { collapseField: s, hasChildrenField: f, parentIdField: y } = n, p = /* @__PURE__ */ new Map();
|
|
3167
|
+
function c(S, u) {
|
|
3168
|
+
const g = /* @__PURE__ */ new Map();
|
|
3169
|
+
return S.reduce((B, M) => {
|
|
3170
|
+
const A = M[y.value] !== void 0 ? M[y.value] : "";
|
|
3169
3171
|
if (A && u.has(A)) {
|
|
3170
|
-
const
|
|
3171
|
-
|
|
3172
|
+
const O = u.get(A);
|
|
3173
|
+
M.__fv_parent_index__ = O.__fv_index__, O.__fv_hasChildren__ = !0;
|
|
3172
3174
|
}
|
|
3173
|
-
const P =
|
|
3174
|
-
return P.push(
|
|
3175
|
-
},
|
|
3175
|
+
const P = B.has(A) ? B.get(A) : [];
|
|
3176
|
+
return P.push(M), B.set(A, P), B;
|
|
3177
|
+
}, g), g;
|
|
3176
3178
|
}
|
|
3177
3179
|
function l(S) {
|
|
3178
3180
|
const u = /* @__PURE__ */ new Map();
|
|
3179
|
-
return S.reduce((
|
|
3180
|
-
const
|
|
3181
|
-
return
|
|
3181
|
+
return S.reduce((g, B) => {
|
|
3182
|
+
const M = B[r.value];
|
|
3183
|
+
return g.set(M, B), g;
|
|
3182
3184
|
}, u), u;
|
|
3183
3185
|
}
|
|
3184
3186
|
function i(S) {
|
|
3185
3187
|
S.forEach((u) => {
|
|
3186
|
-
const
|
|
3187
|
-
u.__fv_children_index__.map((
|
|
3188
|
-
|
|
3188
|
+
const g = u[r.value];
|
|
3189
|
+
u.__fv_children_index__.map((M) => S[M]).forEach((M) => {
|
|
3190
|
+
M.__fv_parents__ = new Map([
|
|
3189
3191
|
...u.__fv_parents__.entries(),
|
|
3190
|
-
[
|
|
3192
|
+
[g, !0]
|
|
3191
3193
|
]);
|
|
3192
3194
|
});
|
|
3193
3195
|
});
|
|
3194
3196
|
}
|
|
3195
3197
|
function I(S) {
|
|
3196
3198
|
S.forEach((u) => {
|
|
3197
|
-
const
|
|
3198
|
-
u.__fv_children_index__ = [...
|
|
3199
|
+
const g = new Set(u.__fv_children_index__);
|
|
3200
|
+
u.__fv_children_index__ = [...g].sort((B, M) => B - M);
|
|
3199
3201
|
});
|
|
3200
3202
|
}
|
|
3201
|
-
function
|
|
3202
|
-
S.forEach((
|
|
3203
|
-
const
|
|
3204
|
-
Array.from(
|
|
3205
|
-
|
|
3203
|
+
function V(S, u) {
|
|
3204
|
+
S.forEach((g) => {
|
|
3205
|
+
const B = g.__fv_parents__;
|
|
3206
|
+
Array.from(B.keys()).map((M) => u.get(M)).forEach((M) => {
|
|
3207
|
+
M.__fv_children_index__.push(g.__fv_index__);
|
|
3206
3208
|
});
|
|
3207
3209
|
}), I(S);
|
|
3208
3210
|
}
|
|
3209
|
-
function
|
|
3211
|
+
function h(S) {
|
|
3210
3212
|
S.forEach((u) => {
|
|
3211
|
-
u.__fv_child_with_lines__ = [], u.__fv_child_length__ = u.__fv_descendant_index__.length, u.__fv_descendant_index__.map((
|
|
3213
|
+
u.__fv_child_with_lines__ = [], u.__fv_child_length__ = u.__fv_descendant_index__.length, u.__fv_descendant_index__.map((g) => S[g]).reduce((g, B) => (g.__fv_child_length__ += B.__fv_children_index__.length, g.__fv_child_with_lines__.push(...B.__fv_children_index__, B.__fv_index__), g), u);
|
|
3212
3214
|
});
|
|
3213
3215
|
}
|
|
3214
3216
|
function x(S, u) {
|
|
3215
3217
|
return { id: S, index: u, parentId: "", parentIndex: -1, parents: /* @__PURE__ */ new Map(), children: /* @__PURE__ */ new Map(), descendant: /* @__PURE__ */ new Map() };
|
|
3216
3218
|
}
|
|
3217
|
-
function
|
|
3218
|
-
Array.from(u.keys()).forEach((
|
|
3219
|
-
u.get(
|
|
3220
|
-
const P = A[r.value],
|
|
3221
|
-
return
|
|
3219
|
+
function _(S, u) {
|
|
3220
|
+
Array.from(u.keys()).forEach((g) => {
|
|
3221
|
+
u.get(g).reduce((M, A) => {
|
|
3222
|
+
const P = A[r.value], O = S.get(A[r.value]), H = S.get(g);
|
|
3223
|
+
return H && (H.children.set(P, O), H.children.set(P, O), O.parentId = g, O.parentIndex = H.index, O.parents.set(g, H)), M;
|
|
3222
3224
|
}, S);
|
|
3223
3225
|
});
|
|
3224
3226
|
}
|
|
3225
|
-
function
|
|
3226
|
-
S.children.forEach((
|
|
3227
|
-
|
|
3227
|
+
function d(S) {
|
|
3228
|
+
S.children.forEach((g) => {
|
|
3229
|
+
g.parents = new Map([
|
|
3228
3230
|
...S.parents.entries(),
|
|
3229
3231
|
[S.id, S]
|
|
3230
|
-
]),
|
|
3232
|
+
]), d(g);
|
|
3231
3233
|
});
|
|
3232
3234
|
}
|
|
3233
|
-
function
|
|
3234
|
-
S.filter((
|
|
3235
|
-
const
|
|
3236
|
-
|
|
3235
|
+
function k(S, u) {
|
|
3236
|
+
S.filter((g) => g[y.value] === void 0 || g[y.value] === "").forEach((g) => {
|
|
3237
|
+
const B = g[r.value], M = u.get(B);
|
|
3238
|
+
d(M);
|
|
3237
3239
|
});
|
|
3238
3240
|
}
|
|
3239
|
-
function
|
|
3241
|
+
function T(S) {
|
|
3240
3242
|
Array.from(S.values()).forEach((u) => {
|
|
3241
|
-
Array.from(u.parents.values()).forEach((
|
|
3242
|
-
|
|
3243
|
+
Array.from(u.parents.values()).forEach((g) => {
|
|
3244
|
+
g.descendant.set(u.id, u);
|
|
3243
3245
|
});
|
|
3244
3246
|
});
|
|
3245
3247
|
}
|
|
3246
|
-
function
|
|
3247
|
-
p.clear(), S.forEach((
|
|
3248
|
-
const A =
|
|
3249
|
-
p.set(A, x(A,
|
|
3248
|
+
function m(S) {
|
|
3249
|
+
p.clear(), S.forEach((B, M) => {
|
|
3250
|
+
const A = B[r.value];
|
|
3251
|
+
p.set(A, x(A, M));
|
|
3250
3252
|
});
|
|
3251
|
-
const u = l(S),
|
|
3252
|
-
return
|
|
3253
|
-
}
|
|
3254
|
-
function b(S) {
|
|
3255
|
-
const u = S[r.value], _ = p.get(u);
|
|
3256
|
-
return _ && _.children.size > 0;
|
|
3253
|
+
const u = l(S), g = c(S, u);
|
|
3254
|
+
return _(p, g), k(S, p), T(p), p;
|
|
3257
3255
|
}
|
|
3258
|
-
function
|
|
3259
|
-
|
|
3256
|
+
function C(S) {
|
|
3257
|
+
const u = S[r.value], g = p.get(u);
|
|
3258
|
+
return g && g.children.size > 0;
|
|
3260
3259
|
}
|
|
3261
3260
|
function E(S) {
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3261
|
+
return S[f.value] && !C(S);
|
|
3262
|
+
}
|
|
3263
|
+
function N(S) {
|
|
3264
|
+
m(t.value);
|
|
3265
|
+
const u = l(S), g = c(S, u);
|
|
3266
|
+
return S.forEach((B, M) => {
|
|
3267
|
+
var H;
|
|
3268
|
+
const A = B[r.value], P = g.has(A) ? (H = g.get(A)) == null ? void 0 : H.map((W) => W.__fv_index__) : [], O = x(A, M);
|
|
3269
|
+
B.__fv_graph_node__ = O, B.__fv_children_index__ = P, B.__fv_descendant_index__ = [...P], B.__fv_parents__ = /* @__PURE__ */ new Map(), E(B) && (B[s.value] = !0);
|
|
3270
|
+
}), i(S), V(S, u), e.showLines && h(S), S;
|
|
3271
|
+
}
|
|
3272
|
+
function b(S, u, g) {
|
|
3273
|
+
const M = g.value[S][r.value], A = p.get(M);
|
|
3272
3274
|
if (A) {
|
|
3273
3275
|
const P = p.get(A.parentId);
|
|
3274
|
-
let
|
|
3276
|
+
let O = g.value.length - 1;
|
|
3275
3277
|
if (P) {
|
|
3276
|
-
const
|
|
3277
|
-
if (
|
|
3278
|
+
const H = Array.from(P.children.keys()).indexOf(A.id);
|
|
3279
|
+
if (H === P.children.size - 1) {
|
|
3278
3280
|
const J = Array.from(P.descendant.values())[P.descendant.size - 1];
|
|
3279
|
-
|
|
3281
|
+
O = g.value.findIndex((ce) => ce[r.value] === J.id) + 1;
|
|
3280
3282
|
} else {
|
|
3281
|
-
const J = Array.from(P.children.values())[
|
|
3282
|
-
|
|
3283
|
+
const J = Array.from(P.children.values())[H + 1];
|
|
3284
|
+
O = g.value.findIndex((ce) => ce[r.value] === J.id);
|
|
3283
3285
|
}
|
|
3284
|
-
u[f.value] = !1, u[
|
|
3286
|
+
u[f.value] = !1, u[y.value] = P.id, g.value.splice(O, 0, u);
|
|
3285
3287
|
}
|
|
3286
3288
|
}
|
|
3287
3289
|
}
|
|
3288
|
-
function
|
|
3289
|
-
const
|
|
3290
|
-
if (p.get(
|
|
3291
|
-
const
|
|
3292
|
-
|
|
3290
|
+
function D(S, u, g) {
|
|
3291
|
+
const B = g.value[S], M = B[r.value];
|
|
3292
|
+
if (p.get(M)) {
|
|
3293
|
+
const O = g.value.findIndex((H) => H[r.value] === M) + 1;
|
|
3294
|
+
B[f.value] = !0, B[s.value] = !1, u[f.value] = !1, u[y.value] = M, g.value.splice(O, 0, u);
|
|
3293
3295
|
}
|
|
3294
3296
|
}
|
|
3295
|
-
function
|
|
3296
|
-
const
|
|
3297
|
-
|
|
3298
|
-
const A = p.get(
|
|
3299
|
-
if (A && (A.children.delete(
|
|
3300
|
-
const
|
|
3301
|
-
|
|
3297
|
+
function F(S, u) {
|
|
3298
|
+
const g = S[r.value], B = p.get(g), M = Array.from(B.descendant.keys());
|
|
3299
|
+
M.unshift(g);
|
|
3300
|
+
const A = p.get(B.parentId);
|
|
3301
|
+
if (A && (A.children.delete(g), A.children.size === 0)) {
|
|
3302
|
+
const O = u.find((H) => H[r.value] === B.parentId);
|
|
3303
|
+
O[f.value] = !1, O[s.value] = !1;
|
|
3302
3304
|
}
|
|
3303
|
-
return u.filter((
|
|
3305
|
+
return u.filter((O) => M.indexOf(O.id) === -1);
|
|
3304
3306
|
}
|
|
3305
|
-
return { generateHierarchyData:
|
|
3307
|
+
return { generateHierarchyData: N, hasRealChildren: C, insertSibling: b, insertChild: D, shouldStratifyData: a, trimmedOriginalData: F };
|
|
3306
3308
|
}
|
|
3307
|
-
const
|
|
3309
|
+
const Cr = {
|
|
3308
3310
|
showCloseButton: { type: Boolean, default: !0 },
|
|
3309
3311
|
position: { type: String, default: "top-center" },
|
|
3310
3312
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -3316,48 +3318,48 @@ const _r = {
|
|
|
3316
3318
|
id: { type: String },
|
|
3317
3319
|
animate: { type: String, default: "fadeIn" },
|
|
3318
3320
|
options: { type: Object }
|
|
3319
|
-
},
|
|
3321
|
+
}, wr = {
|
|
3320
3322
|
showCloseButton: { type: Boolean, default: !0 },
|
|
3321
3323
|
animate: { type: String, default: "fadeIn" },
|
|
3322
3324
|
options: { type: Object }
|
|
3323
3325
|
}, Ee = /* @__PURE__ */ oe({
|
|
3324
3326
|
name: "Toast",
|
|
3325
|
-
props:
|
|
3327
|
+
props: wr,
|
|
3326
3328
|
emits: ["close", "click"],
|
|
3327
3329
|
setup: (e, t) => {
|
|
3328
|
-
const n = w(e.animate), o = "fadeOut", a =
|
|
3329
|
-
const
|
|
3330
|
+
const n = w(e.animate), o = "fadeOut", a = R(() => e.options), r = w(!1), s = R(() => {
|
|
3331
|
+
const _ = {
|
|
3330
3332
|
animated: r.value,
|
|
3331
3333
|
toast: !0
|
|
3332
3334
|
};
|
|
3333
|
-
return
|
|
3334
|
-
}), f =
|
|
3335
|
-
const
|
|
3335
|
+
return _[e.animate] = !1, _[o] = r.value, _[a.value.type] = !0, a.value.theme && (_[a.value.theme] = !0), _;
|
|
3336
|
+
}), f = R(() => {
|
|
3337
|
+
const k = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, T = {
|
|
3336
3338
|
"f-icon": !0
|
|
3337
3339
|
};
|
|
3338
|
-
return
|
|
3339
|
-
}),
|
|
3340
|
-
function I(
|
|
3341
|
-
|
|
3340
|
+
return T[k] = !0, T;
|
|
3341
|
+
}), y = R(() => a.value.title || a.value.message), p = R(() => a.value.title && a.value.message), c = R(() => !a.value.title && a.value.message), l = R(() => e.showCloseButton), i = R(() => !!a.value.buttons || !!t.slots.default);
|
|
3342
|
+
function I(_) {
|
|
3343
|
+
_.stopPropagation(), _.preventDefault(), r.value = !1, setTimeout(() => {
|
|
3342
3344
|
t.emit("close", a.value);
|
|
3343
3345
|
}, 200);
|
|
3344
3346
|
}
|
|
3345
|
-
function
|
|
3347
|
+
function V(_, d) {
|
|
3346
3348
|
}
|
|
3347
|
-
function
|
|
3348
|
-
return `f-preten-link ${
|
|
3349
|
+
function h(_) {
|
|
3350
|
+
return `f-preten-link ${_.customClass ? _.customClass : ""}`;
|
|
3349
3351
|
}
|
|
3350
3352
|
Q(n, () => {
|
|
3351
3353
|
n.value;
|
|
3352
3354
|
});
|
|
3353
3355
|
const x = () => {
|
|
3354
|
-
var
|
|
3356
|
+
var _;
|
|
3355
3357
|
return v(me, null, [v("div", {
|
|
3356
3358
|
class: "after-toast-msg text-right"
|
|
3357
|
-
}, [!t.slots.default && ((
|
|
3358
|
-
class:
|
|
3359
|
-
onClick: (
|
|
3360
|
-
}, [
|
|
3359
|
+
}, [!t.slots.default && ((_ = a.value.buttons) == null ? void 0 : _.map((d) => v("span", {
|
|
3360
|
+
class: h(d),
|
|
3361
|
+
onClick: (k) => void 0
|
|
3362
|
+
}, [d.text]))), t.slots.default && t.slots.default()])]);
|
|
3361
3363
|
};
|
|
3362
3364
|
return () => v("div", {
|
|
3363
3365
|
class: s.value
|
|
@@ -3367,7 +3369,7 @@ const _r = {
|
|
|
3367
3369
|
onClick: I
|
|
3368
3370
|
}, [v("span", {
|
|
3369
3371
|
class: "f-icon modal_close"
|
|
3370
|
-
}, null)]),
|
|
3372
|
+
}, null)]), y.value && v("section", {
|
|
3371
3373
|
class: "modal-tips"
|
|
3372
3374
|
}, [v("div", {
|
|
3373
3375
|
class: "float-left modal-tips-iconwrap"
|
|
@@ -3381,7 +3383,7 @@ const _r = {
|
|
|
3381
3383
|
}, null), v("p", {
|
|
3382
3384
|
class: "toast-msg",
|
|
3383
3385
|
innerHTML: a.value.message
|
|
3384
|
-
}, null), i.value && x()]),
|
|
3386
|
+
}, null), i.value && x()]), c.value && (a.value.buttons ? v("div", {
|
|
3385
3387
|
class: "toast-title-btns-wrapper d-flex"
|
|
3386
3388
|
}, [v("h5", {
|
|
3387
3389
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -3395,38 +3397,38 @@ const _r = {
|
|
|
3395
3397
|
}
|
|
3396
3398
|
}), be = /* @__PURE__ */ oe({
|
|
3397
3399
|
name: "Notify",
|
|
3398
|
-
props:
|
|
3400
|
+
props: Cr,
|
|
3399
3401
|
emits: ["close", "empty"],
|
|
3400
3402
|
setup(e, t) {
|
|
3401
|
-
const n =
|
|
3403
|
+
const n = R(() => ({
|
|
3402
3404
|
"farris-notify": !0
|
|
3403
3405
|
})), o = {
|
|
3404
3406
|
left: 12,
|
|
3405
3407
|
right: 12,
|
|
3406
3408
|
top: 20,
|
|
3407
3409
|
bottom: 12
|
|
3408
|
-
}, a = w(), r = w(e.options), s = w(e.showCloseButton), f =
|
|
3409
|
-
const i = e.bottom ? e.bottom : o.bottom, I = e.top ? e.top : o.top,
|
|
3410
|
+
}, a = w(), r = w(e.options), s = w(e.showCloseButton), f = R(() => e.position || "bottom-right"), y = R(() => e.timeout != null ? e.timeout : 3e3), p = R(() => {
|
|
3411
|
+
const i = e.bottom ? e.bottom : o.bottom, I = e.top ? e.top : o.top, V = {
|
|
3410
3412
|
transition: "all 0.2s ease",
|
|
3411
3413
|
left: f.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
3412
3414
|
right: f.value.indexOf("right") > -1 ? `${e.right ? e.right : o.right}px` : "",
|
|
3413
3415
|
top: f.value.indexOf("top") > -1 ? `${I}px` : "",
|
|
3414
3416
|
bottom: f.value.indexOf("bottom") > -1 ? `${i}px` : ""
|
|
3415
3417
|
};
|
|
3416
|
-
return f.value.indexOf("center") > -1 && (
|
|
3418
|
+
return f.value.indexOf("center") > -1 && (V.left = "50%", V.marginLeft = "calc(-24rem / 2)", f.value === "center-center" && (V.top = "50%", V.transform = "translate(-50%, -50%)")), V;
|
|
3417
3419
|
});
|
|
3418
|
-
function
|
|
3420
|
+
function c(i) {
|
|
3419
3421
|
t.emit("close");
|
|
3420
3422
|
}
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
},
|
|
3424
|
-
closeToast:
|
|
3423
|
+
y.value && setTimeout(() => {
|
|
3424
|
+
c();
|
|
3425
|
+
}, y.value), t.expose({
|
|
3426
|
+
closeToast: c,
|
|
3425
3427
|
container: a,
|
|
3426
3428
|
notifyPosition: f
|
|
3427
3429
|
});
|
|
3428
3430
|
function l(i, I) {
|
|
3429
|
-
|
|
3431
|
+
c();
|
|
3430
3432
|
}
|
|
3431
3433
|
return () => v("div", {
|
|
3432
3434
|
class: n.value,
|
|
@@ -3442,8 +3444,8 @@ const _r = {
|
|
|
3442
3444
|
});
|
|
3443
3445
|
class gt {
|
|
3444
3446
|
constructor() {
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
+
z(this, "notifyRefs", []);
|
|
3448
|
+
z(this, "globalConfig", Ue({}));
|
|
3447
3449
|
}
|
|
3448
3450
|
createNotifyInstance(t) {
|
|
3449
3451
|
const n = this, a = Object.assign({
|
|
@@ -3457,15 +3459,15 @@ class gt {
|
|
|
3457
3459
|
const s = Jt({
|
|
3458
3460
|
setup() {
|
|
3459
3461
|
const f = w();
|
|
3460
|
-
function
|
|
3462
|
+
function y() {
|
|
3461
3463
|
f.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
3462
3464
|
n.updateNotifyPositionForClose(a, f), s.unmount();
|
|
3463
3465
|
}, 220);
|
|
3464
3466
|
}
|
|
3465
3467
|
if (a.position.indexOf("top") > -1) {
|
|
3466
|
-
const p = n.getNotifyInstances(a.position),
|
|
3467
|
-
if (
|
|
3468
|
-
const l =
|
|
3468
|
+
const p = n.getNotifyInstances(a.position), c = p[p.length - 1];
|
|
3469
|
+
if (c) {
|
|
3470
|
+
const l = c.value.container.getBoundingClientRect();
|
|
3469
3471
|
a.top = l.bottom;
|
|
3470
3472
|
}
|
|
3471
3473
|
}
|
|
@@ -3476,7 +3478,7 @@ class gt {
|
|
|
3476
3478
|
}), () => v(be, Ne({
|
|
3477
3479
|
ref: f
|
|
3478
3480
|
}, a, {
|
|
3479
|
-
onClose:
|
|
3481
|
+
onClose: y
|
|
3480
3482
|
}), null);
|
|
3481
3483
|
}
|
|
3482
3484
|
});
|
|
@@ -3545,56 +3547,56 @@ class gt {
|
|
|
3545
3547
|
}), this.notifyRefs.length = 0;
|
|
3546
3548
|
}
|
|
3547
3549
|
}
|
|
3548
|
-
const
|
|
3550
|
+
const Sr = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
3549
3551
|
be.install = (e) => {
|
|
3550
3552
|
e.component(be.name, be), e.component(Ee.name, Ee);
|
|
3551
3553
|
const t = new gt();
|
|
3552
|
-
e.provide(
|
|
3554
|
+
e.provide(Sr, t), e.provide("FNotifyService", t);
|
|
3553
3555
|
};
|
|
3554
|
-
function
|
|
3556
|
+
function Fr(e, t, n, o, a) {
|
|
3555
3557
|
var Le;
|
|
3556
|
-
const { pageSize: r, total: s, shouldRenderPagination: f, currentPage:
|
|
3557
|
-
generateHierarchyData:
|
|
3558
|
-
hasRealChildren:
|
|
3559
|
-
insertSibling:
|
|
3560
|
-
insertChild:
|
|
3558
|
+
const { pageSize: r, total: s, shouldRenderPagination: f, currentPage: y, mode: p } = a, c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), h = w([]), x = w([]), _ = _r(), d = ht(e, o), { generateGroupData: k, groupFields: T, shouldGroupingData: m } = d, C = w(e.data), E = br(e, C, n, o), {
|
|
3559
|
+
generateHierarchyData: N,
|
|
3560
|
+
hasRealChildren: b,
|
|
3561
|
+
insertSibling: D,
|
|
3562
|
+
insertChild: F,
|
|
3561
3563
|
shouldStratifyData: S,
|
|
3562
3564
|
trimmedOriginalData: u
|
|
3563
|
-
} =
|
|
3565
|
+
} = E, { idField: g, reviseIdentifyField: B } = o, M = w(e.newDataItem), A = w(e.data), P = w(e.data), { flatTreeData: O } = Rr(e);
|
|
3564
3566
|
if (e.data && ((Le = e.data[0]) != null && Le.children)) {
|
|
3565
3567
|
const $ = Ae(e.data);
|
|
3566
|
-
|
|
3568
|
+
C.value = $, A.value = $, P.value = $;
|
|
3567
3569
|
}
|
|
3568
|
-
const
|
|
3569
|
-
const $ =
|
|
3570
|
+
const H = w(e.summary), W = R(() => {
|
|
3571
|
+
const $ = H.value;
|
|
3570
3572
|
return ($ == null ? void 0 : $.groupFields) || [];
|
|
3571
3573
|
});
|
|
3572
3574
|
let J = /* @__PURE__ */ new Map();
|
|
3573
|
-
const re =
|
|
3575
|
+
const re = R(() => A.value.length), ce = w(e.pagination), bt = new gt(), Fe = R(() => f.value ? p.value === "server" ? 0 : (y.value - 1) * r.value : 0), $e = R(() => f.value ? p.value === "server" ? Math.min(r.value, s.value, re.value) : Math.min(Fe.value + r.value, s.value, re.value) : re.value);
|
|
3574
3576
|
function Ae($) {
|
|
3575
|
-
return
|
|
3577
|
+
return O($);
|
|
3576
3578
|
}
|
|
3577
3579
|
function ye() {
|
|
3578
|
-
A.value =
|
|
3580
|
+
A.value = C.value, m.value && (A.value = k(T.value, C.value, t)), J = W.value.reduce((te, ae) => (te.set(ae, 0), te), J);
|
|
3579
3581
|
const $ = Fe.value, U = $e.value;
|
|
3580
3582
|
let K = 0;
|
|
3581
3583
|
const X = [];
|
|
3582
3584
|
if (A.value.length) {
|
|
3583
|
-
|
|
3584
|
-
const te =
|
|
3585
|
+
B(A.value);
|
|
3586
|
+
const te = g.value !== e.idField;
|
|
3585
3587
|
for (let ae = $; ae < U; ae++) {
|
|
3586
3588
|
const ee = A.value[ae];
|
|
3587
|
-
ee.__fv_data_grid_group_row__ ? (K = 0, ee.__fv_data_index__ = "") : ee.__fv_data_grid_group_summary__ ? ee.__fv_data_index__ = "" : (K++, f.value ? ee.__fv_data_index__ = K + (
|
|
3589
|
+
ee.__fv_data_grid_group_row__ ? (K = 0, ee.__fv_data_index__ = "") : ee.__fv_data_grid_group_summary__ ? ee.__fv_data_index__ = "" : (K++, f.value ? ee.__fv_data_index__ = K + (y.value - 1) * r.value : ee.__fv_data_index__ = K), ee.__fv_index__ = ae, te && (ee[g.value] = ae), W.value.forEach((Y) => {
|
|
3588
3590
|
const de = J.get(Y) || 0;
|
|
3589
3591
|
J.set(Y, de + ee[Y]);
|
|
3590
3592
|
}), X.push(ee);
|
|
3591
3593
|
}
|
|
3592
3594
|
}
|
|
3593
|
-
return S.value &&
|
|
3595
|
+
return S.value && N(X), P.value = [...X], X;
|
|
3594
3596
|
}
|
|
3595
3597
|
const ie = w(ye());
|
|
3596
3598
|
function ne($, U, K = !1) {
|
|
3597
|
-
const te = (K ? ye() : [...P.value]).filter((Y) =>
|
|
3599
|
+
const te = (K ? ye() : [...P.value]).filter((Y) => _.apply(Y)), ae = $ && $.length ? te.filter((Y) => $.reduce((de, fe) => de && fe.filter(Y), !0)) : te, ee = U && U.length ? ae.sort((Y, de) => {
|
|
3598
3600
|
const fe = [...U], Te = fe.shift();
|
|
3599
3601
|
let ke = Te.compare(Y[Te.field], de[Te.field]);
|
|
3600
3602
|
for (; ke === 0 && fe.length !== 0; ) {
|
|
@@ -3606,32 +3608,32 @@ function wr(e, t, n, o, a) {
|
|
|
3606
3608
|
return ie.value = ee.map((Y, de) => {
|
|
3607
3609
|
if (Y.__fv_data_grid_group_row__) {
|
|
3608
3610
|
const fe = `group_of_${Y.__fv_data_grid_group_field__}_${Y.__fv_data_grid_group_value__}`;
|
|
3609
|
-
Y.__fv_data_grid_group_collapse__ = !!
|
|
3611
|
+
Y.__fv_data_grid_group_collapse__ = !!c.get(fe);
|
|
3610
3612
|
}
|
|
3611
3613
|
return Y.__fv_index__ = de, Y;
|
|
3612
3614
|
}), ie.value;
|
|
3613
3615
|
}
|
|
3614
3616
|
function Ct($) {
|
|
3615
|
-
return
|
|
3617
|
+
return V.clear(), x.value = $, x.value.reduce((U, K) => (U.set(K.field, K), U), V), ne([], x.value);
|
|
3616
3618
|
}
|
|
3617
3619
|
function wt($, U) {
|
|
3618
|
-
return
|
|
3620
|
+
return V.set($, U), x.value = Array.from(V.values()), ne([], x.value);
|
|
3619
3621
|
}
|
|
3620
3622
|
function St($) {
|
|
3621
|
-
return
|
|
3623
|
+
return V.delete($), x.value = Array.from(V.values()), ne([], x.value);
|
|
3622
3624
|
}
|
|
3623
3625
|
function Ft($, U) {
|
|
3624
|
-
return l.set($, U),
|
|
3626
|
+
return l.set($, U), h.value = Array.from(l.values()), ne([], Array.from(V.values()));
|
|
3625
3627
|
}
|
|
3626
3628
|
function Tt($) {
|
|
3627
|
-
return l.delete($),
|
|
3629
|
+
return l.delete($), h.value = Array.from(l.values()), ne([], Array.from(V.values()), !0);
|
|
3628
3630
|
}
|
|
3629
3631
|
function kt() {
|
|
3630
|
-
return l.clear(),
|
|
3632
|
+
return l.clear(), h.value = [], ne([], Array.from(V.values()), !0);
|
|
3631
3633
|
}
|
|
3632
3634
|
function Vt($, U) {
|
|
3633
3635
|
const K = `group_of_${$}_${U}`;
|
|
3634
|
-
|
|
3636
|
+
c.set(K, !0);
|
|
3635
3637
|
const X = (te) => te[$] !== U;
|
|
3636
3638
|
return i.set(`collapse_${$}_${U}`, {
|
|
3637
3639
|
field: $,
|
|
@@ -3639,40 +3641,40 @@ function wr(e, t, n, o, a) {
|
|
|
3639
3641
|
fieldType: "string",
|
|
3640
3642
|
filterValue: U,
|
|
3641
3643
|
filter: X
|
|
3642
|
-
}), ne(Array.from(i.values()), Array.from(
|
|
3644
|
+
}), ne(Array.from(i.values()), Array.from(V.values()));
|
|
3643
3645
|
}
|
|
3644
3646
|
function It($, U) {
|
|
3645
3647
|
const K = `group_of_${$}_${U}`;
|
|
3646
|
-
return
|
|
3648
|
+
return c.set(K, !1), i.delete(`collapse_${$}_${U}`), ne(Array.from(i.values()), Array.from(V.values()), !0);
|
|
3647
3649
|
}
|
|
3648
3650
|
function xt($) {
|
|
3649
|
-
const U = $.raw[
|
|
3651
|
+
const U = $.raw[g.value], K = (X) => !X.__fv_parents__.has(U);
|
|
3650
3652
|
I.set(`fold_${U}`, {
|
|
3651
3653
|
field: "id",
|
|
3652
3654
|
fieldName: "id",
|
|
3653
3655
|
fieldType: "string",
|
|
3654
3656
|
filterValue: String(U),
|
|
3655
3657
|
filter: K
|
|
3656
|
-
}), ne(Array.from(I.values()), Array.from(
|
|
3658
|
+
}), ne(Array.from(I.values()), Array.from(V.values())), N(ie.value);
|
|
3657
3659
|
}
|
|
3658
3660
|
function Pe($) {
|
|
3659
|
-
const U = $[
|
|
3661
|
+
const U = $[g.value];
|
|
3660
3662
|
I.delete(`fold_${U}`);
|
|
3661
3663
|
}
|
|
3662
3664
|
function Et($) {
|
|
3663
|
-
Pe($.raw), ne(Array.from(I.values()), Array.from(
|
|
3665
|
+
Pe($.raw), ne(Array.from(I.values()), Array.from(V.values()), !0), N(ie.value);
|
|
3664
3666
|
}
|
|
3665
3667
|
function se() {
|
|
3666
3668
|
const $ = ye();
|
|
3667
|
-
ie.value = $, e.hierarchy && (ne(Array.from(I.values()), Array.from(
|
|
3669
|
+
ie.value = $, e.hierarchy && (ne(Array.from(I.values()), Array.from(V.values())), N(ie.value));
|
|
3668
3670
|
}
|
|
3669
3671
|
function Ot($) {
|
|
3670
3672
|
var U;
|
|
3671
3673
|
if ($ && ((U = $[0]) != null && U.children)) {
|
|
3672
3674
|
const K = Ae($);
|
|
3673
|
-
|
|
3675
|
+
C.value = K, A.value = K, P.value = K;
|
|
3674
3676
|
} else
|
|
3675
|
-
|
|
3677
|
+
C.value = $, A.value = $, P.value = $;
|
|
3676
3678
|
se();
|
|
3677
3679
|
}
|
|
3678
3680
|
function Nt($, U, K) {
|
|
@@ -3682,43 +3684,43 @@ function wr(e, t, n, o, a) {
|
|
|
3682
3684
|
($ - 1) * r.value <= re.value && se();
|
|
3683
3685
|
}
|
|
3684
3686
|
function Dt($) {
|
|
3685
|
-
|
|
3687
|
+
C.value.push(he($)), ie.value = ye();
|
|
3686
3688
|
}
|
|
3687
3689
|
function Rt($ = 0) {
|
|
3688
3690
|
if (!($ > -1))
|
|
3689
3691
|
return !1;
|
|
3690
|
-
const K =
|
|
3691
|
-
e.hierarchy ?
|
|
3692
|
+
const K = M.value();
|
|
3693
|
+
e.hierarchy ? D($, K, C) : C.value.splice($, 0, K), se();
|
|
3692
3694
|
}
|
|
3693
3695
|
function Mt($ = 0) {
|
|
3694
3696
|
if (!($ > -1 && e.hierarchy))
|
|
3695
3697
|
return !1;
|
|
3696
|
-
const K =
|
|
3697
|
-
Pe(X),
|
|
3698
|
+
const K = M.value(), X = C.value[$];
|
|
3699
|
+
Pe(X), F($, K, C), se();
|
|
3698
3700
|
}
|
|
3699
3701
|
function $t($) {
|
|
3700
3702
|
const U = $ ? $ - 1 : 0;
|
|
3701
|
-
|
|
3703
|
+
C.value.splice(U, 1), se();
|
|
3702
3704
|
}
|
|
3703
3705
|
function At($) {
|
|
3704
|
-
const U =
|
|
3705
|
-
U !== -1 && (
|
|
3706
|
+
const U = C.value.findIndex((K) => K[g.value] === $);
|
|
3707
|
+
U !== -1 && (C.value.splice(U, 1), se());
|
|
3706
3708
|
}
|
|
3707
3709
|
function Pt($) {
|
|
3708
|
-
const U = $ > -1 ?
|
|
3710
|
+
const U = $ > -1 ? C.value[$] : null;
|
|
3709
3711
|
if (!(U && U.deletable !== !1))
|
|
3710
3712
|
return !1;
|
|
3711
|
-
|
|
3713
|
+
C.value = u(U, C.value), se();
|
|
3712
3714
|
}
|
|
3713
3715
|
function Lt() {
|
|
3714
3716
|
const $ = i.size > 0 ? Array.from(i.values()) : [];
|
|
3715
|
-
return ne($, Array.from(
|
|
3717
|
+
return ne($, Array.from(V.values()));
|
|
3716
3718
|
}
|
|
3717
3719
|
function jt($) {
|
|
3718
3720
|
ce.value && (ce.value.size = $, se());
|
|
3719
3721
|
}
|
|
3720
3722
|
function Gt($, U) {
|
|
3721
|
-
const K =
|
|
3723
|
+
const K = C.value[Number($) - 1];
|
|
3722
3724
|
K.editable !== !1 ? (K.name = U, se()) : bt.show({
|
|
3723
3725
|
showCloseButton: !1,
|
|
3724
3726
|
timeout: 3e3,
|
|
@@ -3728,7 +3730,7 @@ function wr(e, t, n, o, a) {
|
|
|
3728
3730
|
}
|
|
3729
3731
|
function Ht($) {
|
|
3730
3732
|
return $.map((K) => {
|
|
3731
|
-
const X = P.value.findIndex((te) => te[
|
|
3733
|
+
const X = P.value.findIndex((te) => te[g.value] === K);
|
|
3732
3734
|
return X > -1 ? P.value[X] : null;
|
|
3733
3735
|
}).filter((K) => K != null);
|
|
3734
3736
|
}
|
|
@@ -3741,11 +3743,11 @@ function wr(e, t, n, o, a) {
|
|
|
3741
3743
|
dataView: ie,
|
|
3742
3744
|
editDataItem: Gt,
|
|
3743
3745
|
expand: It,
|
|
3744
|
-
filters:
|
|
3746
|
+
filters: h,
|
|
3745
3747
|
fold: xt,
|
|
3746
3748
|
getRange: Nt,
|
|
3747
3749
|
getSelectionItems: Ht,
|
|
3748
|
-
hasRealChildren:
|
|
3750
|
+
hasRealChildren: b,
|
|
3749
3751
|
load: Ot,
|
|
3750
3752
|
navigatePageTo: Bt,
|
|
3751
3753
|
summaries: J,
|
|
@@ -3766,63 +3768,63 @@ function wr(e, t, n, o, a) {
|
|
|
3766
3768
|
unFold: Et,
|
|
3767
3769
|
startIndex: Fe,
|
|
3768
3770
|
endIndex: $e,
|
|
3769
|
-
originalData:
|
|
3771
|
+
originalData: C
|
|
3770
3772
|
};
|
|
3771
3773
|
}
|
|
3772
|
-
function
|
|
3774
|
+
function Tr(e) {
|
|
3773
3775
|
w(e.selection.showCheckbox || !1);
|
|
3774
|
-
const t =
|
|
3776
|
+
const t = R(() => {
|
|
3775
3777
|
var s;
|
|
3776
3778
|
return ((s = e.hierarchy) == null ? void 0 : s.collapseField) || "__fv_collapse__";
|
|
3777
|
-
}), n =
|
|
3779
|
+
}), n = R(() => {
|
|
3778
3780
|
var s;
|
|
3779
3781
|
return ((s = e.hierarchy) == null ? void 0 : s.hasChildrenField) || "__fv_hasChildren__";
|
|
3780
|
-
}), o =
|
|
3782
|
+
}), o = R(() => {
|
|
3781
3783
|
var s;
|
|
3782
3784
|
return ((s = e.hierarchy) == null ? void 0 : s.parentIdField) || "parent";
|
|
3783
|
-
}), a =
|
|
3785
|
+
}), a = R(() => e.hierarchy && e.selection.showCheckbox), r = R(() => (e.treeNodeIconsData.fold || e.iconField) && e.showTreeNodeIcons);
|
|
3784
3786
|
return { collapseField: t, hasChildrenField: n, parentIdField: o, shouldShowCheckBox: a, shouldShowIcon: r };
|
|
3785
3787
|
}
|
|
3786
|
-
function
|
|
3787
|
-
const
|
|
3788
|
+
function kr(e, t, n, o, a, r, s, f) {
|
|
3789
|
+
const y = w(o.value - 1 + a), p = w(0), { renderDataRow: c } = r, l = s ? s.renderGroupRow : c, i = f ? f.renderSummaryRow : c;
|
|
3788
3790
|
function I(x) {
|
|
3789
|
-
let
|
|
3790
|
-
return x.__fv_data_grid_group_row__ && (
|
|
3791
|
-
}
|
|
3792
|
-
function
|
|
3793
|
-
const { dataView:
|
|
3794
|
-
if (
|
|
3795
|
-
const
|
|
3796
|
-
for (let
|
|
3797
|
-
const
|
|
3798
|
-
|
|
3791
|
+
let _ = c;
|
|
3792
|
+
return x.__fv_data_grid_group_row__ && (_ = l), x.__fv_data_grid_group_summary__ && (_ = i), _;
|
|
3793
|
+
}
|
|
3794
|
+
function V(x, _, d, k) {
|
|
3795
|
+
const { dataView: T } = n, m = [];
|
|
3796
|
+
if (T.value.length > 0) {
|
|
3797
|
+
const C = k ? Date.now().toString() : "";
|
|
3798
|
+
for (let E = x, N = 0; E <= _; E++, N++) {
|
|
3799
|
+
const b = T.value[E], D = T.value[E - 1] || d, F = m[N - 1], S = D ? (D.__fv_data_position__ || 0) + (D.__fv_data_height__ || 0) : 0, g = I(b)(b, D, F, E, S, t.value);
|
|
3800
|
+
g.refreshKey = C, m.push(g);
|
|
3799
3801
|
}
|
|
3800
3802
|
}
|
|
3801
|
-
return p.value =
|
|
3803
|
+
return p.value = m.length > 0 ? m[0].index : 0, y.value = m.length > 0 ? m[m.length - 1].index : 0, m;
|
|
3802
3804
|
}
|
|
3803
|
-
function
|
|
3804
|
-
const
|
|
3805
|
-
n[x](
|
|
3806
|
-
const { dataView:
|
|
3807
|
-
return
|
|
3805
|
+
function h(x, _, d) {
|
|
3806
|
+
const k = _.groupField || "", { groupValue: T } = _;
|
|
3807
|
+
n[x](k, T);
|
|
3808
|
+
const { dataView: m } = n, C = d[0].index, E = Math.min(C + o.value + a + 1, m.value.length - 1);
|
|
3809
|
+
return V(C, E);
|
|
3808
3810
|
}
|
|
3809
|
-
return { getVisualData:
|
|
3811
|
+
return { getVisualData: V, maxVisibleRowIndex: y, minVisibleRowIndex: p, toggleGroupRow: h };
|
|
3810
3812
|
}
|
|
3811
|
-
function
|
|
3812
|
-
var
|
|
3813
|
-
const o = w(e.mergeCell), r = ((
|
|
3814
|
-
function
|
|
3815
|
-
const
|
|
3816
|
-
colSpan:
|
|
3813
|
+
function Vr(e, t, n) {
|
|
3814
|
+
var V;
|
|
3815
|
+
const o = w(e.mergeCell), r = ((V = w(e.rowOption).value) == null ? void 0 : V.wrapContent) || !1, { updateVisualInfomation: s } = n, { renderCommandColumn: f } = Yo();
|
|
3816
|
+
function y(h, x, _, d, k, T = 1) {
|
|
3817
|
+
const m = {
|
|
3818
|
+
colSpan: T,
|
|
3817
3819
|
rowSpan: 1,
|
|
3818
|
-
index:
|
|
3819
|
-
field:
|
|
3820
|
-
data:
|
|
3821
|
-
editingData:
|
|
3822
|
-
parent:
|
|
3820
|
+
index: _,
|
|
3821
|
+
field: h,
|
|
3822
|
+
data: d[h],
|
|
3823
|
+
editingData: d[h],
|
|
3824
|
+
parent: k,
|
|
3823
3825
|
mode: x,
|
|
3824
|
-
getEditor: (
|
|
3825
|
-
setRef: (
|
|
3826
|
+
getEditor: (C) => C.data,
|
|
3827
|
+
setRef: (C) => s(C, m, d),
|
|
3826
3828
|
update: () => {
|
|
3827
3829
|
},
|
|
3828
3830
|
accept: () => {
|
|
@@ -3830,194 +3832,194 @@ function Tr(e, t, n) {
|
|
|
3830
3832
|
cancel: () => {
|
|
3831
3833
|
}
|
|
3832
3834
|
};
|
|
3833
|
-
return
|
|
3834
|
-
}
|
|
3835
|
-
function p(
|
|
3836
|
-
return
|
|
3837
|
-
|
|
3838
|
-
},
|
|
3839
|
-
|
|
3840
|
-
},
|
|
3841
|
-
|
|
3842
|
-
},
|
|
3843
|
-
}
|
|
3844
|
-
function
|
|
3845
|
-
x.dataType === "commands" && (
|
|
3846
|
-
var
|
|
3835
|
+
return m;
|
|
3836
|
+
}
|
|
3837
|
+
function p(h, x, _) {
|
|
3838
|
+
return h.getEditor = (d) => t.getEditor(d, x, d.parent), h.setRef = (d) => r && s(d, h, _), h.update = (d) => {
|
|
3839
|
+
d !== void 0 && (h.editingData = d);
|
|
3840
|
+
}, h.accept = () => {
|
|
3841
|
+
_[x.field] = h.editingData, h.data = _[x.field];
|
|
3842
|
+
}, h.cancel = () => {
|
|
3843
|
+
h.editingData = h.data;
|
|
3844
|
+
}, h;
|
|
3845
|
+
}
|
|
3846
|
+
function c(h, x) {
|
|
3847
|
+
x.dataType === "commands" && (h.formatter = (_, d) => f(x, d)), x.formatter && x.dataType !== "commands" && (h.formatter = (_, d) => {
|
|
3848
|
+
var k;
|
|
3847
3849
|
if (x.formatter && typeof x.formatter == "function")
|
|
3848
|
-
return (
|
|
3850
|
+
return (k = x.formatter) == null ? void 0 : k.call(x, _, d);
|
|
3849
3851
|
});
|
|
3850
3852
|
}
|
|
3851
|
-
function l(
|
|
3852
|
-
const
|
|
3853
|
-
if (
|
|
3854
|
-
const
|
|
3855
|
-
|
|
3853
|
+
function l(h, x, _) {
|
|
3854
|
+
const d = x && x.data[_];
|
|
3855
|
+
if (d && d.data === h.data) {
|
|
3856
|
+
const T = d && d.spannedBy || d;
|
|
3857
|
+
T.rowSpan++, T.spanned = T.spanned || [], T.spanned.push(h), h.colSpan = 0, h.rowSpan = 0, h.spannedBy = T;
|
|
3856
3858
|
}
|
|
3857
3859
|
}
|
|
3858
|
-
function i(
|
|
3859
|
-
o.value && l(
|
|
3860
|
+
function i(h, x, _) {
|
|
3861
|
+
o.value && l(h, x, _.field);
|
|
3860
3862
|
}
|
|
3861
|
-
function I(
|
|
3862
|
-
const
|
|
3863
|
-
return p(
|
|
3863
|
+
function I(h, x, _, d, k) {
|
|
3864
|
+
const T = h.readonly ? Z.readonly : Z.editable, m = y(h.field, T, x, _, d);
|
|
3865
|
+
return p(m, h, _), c(m, h), i(m, k, h), m;
|
|
3864
3866
|
}
|
|
3865
|
-
return { createCellByColumn: I, createCellByField:
|
|
3867
|
+
return { createCellByColumn: I, createCellByField: y };
|
|
3866
3868
|
}
|
|
3867
|
-
function
|
|
3868
|
-
var
|
|
3869
|
-
const s = w(e.rowOption), f = ((
|
|
3870
|
-
function I(
|
|
3869
|
+
function Ir(e, t, n, o, a, r) {
|
|
3870
|
+
var _, d;
|
|
3871
|
+
const s = w(e.rowOption), f = ((_ = s.value) == null ? void 0 : _.height) || 28, y = ((d = s.value) == null ? void 0 : d.wrapContent) || !1, { idField: p } = o, { collapseField: c } = n, { updateRowPosition: l } = a, { createCellByColumn: i } = r;
|
|
3872
|
+
function I(k, T, m, C, E, N) {
|
|
3871
3873
|
var J, re;
|
|
3872
3874
|
const {
|
|
3873
|
-
__fv_data_grid_group_field__:
|
|
3874
|
-
__fv_data_grid_group_value__:
|
|
3875
|
-
__fv_data_index__:
|
|
3876
|
-
} =
|
|
3877
|
-
collapse:
|
|
3875
|
+
__fv_data_grid_group_field__: b,
|
|
3876
|
+
__fv_data_grid_group_value__: D,
|
|
3877
|
+
__fv_data_index__: F
|
|
3878
|
+
} = m, S = m.__fv_data_grid_group_layer__ || m.__fv_parents__ ? (J = m.__fv_parents__) == null ? void 0 : J.size : 0, u = typeof m.parent == "number" ? Number(m.parent) : -1, g = m.__fv_data_grid_group_collapse__ || m[c.value], B = m.__fv_visible__ === void 0 ? !0 : m.__fv_visible__, M = m.__fv_checked__, A = m.__fv_indeterminate__, P = C && C[p.value] === m.parent, O = C && C.parent === m.parent, H = P && E && (E.collapse || !E.visible) || O && E && !E.visible, W = {
|
|
3879
|
+
collapse: g,
|
|
3878
3880
|
data: {},
|
|
3879
|
-
dataIndex:
|
|
3880
|
-
groupField:
|
|
3881
|
-
groupValue:
|
|
3881
|
+
dataIndex: F,
|
|
3882
|
+
groupField: b,
|
|
3883
|
+
groupValue: D,
|
|
3882
3884
|
layer: S,
|
|
3883
|
-
index:
|
|
3885
|
+
index: T,
|
|
3884
3886
|
parentIndex: u,
|
|
3885
|
-
pre:
|
|
3886
|
-
top:
|
|
3887
|
-
type:
|
|
3888
|
-
raw:
|
|
3889
|
-
checked:
|
|
3887
|
+
pre: C,
|
|
3888
|
+
top: N,
|
|
3889
|
+
type: k,
|
|
3890
|
+
raw: m,
|
|
3891
|
+
checked: M,
|
|
3890
3892
|
indeterminate: A,
|
|
3891
3893
|
setRef: (ce) => {
|
|
3892
3894
|
W.ref = ce;
|
|
3893
3895
|
},
|
|
3894
|
-
visible:
|
|
3896
|
+
visible: B && !H,
|
|
3895
3897
|
status: le.initial
|
|
3896
3898
|
};
|
|
3897
|
-
return
|
|
3899
|
+
return C || (m.__fv_data_position__ = 0), y || (W.height = f, m.__fv_data_height__ = W.height, l(W, m)), (re = s.value) != null && re.customRowStatus && (s.value.customRowStatus(W), m.__fv_collapse__ = W.collapse, m.__fv_visible__ = W.visible), W;
|
|
3898
3900
|
}
|
|
3899
|
-
function k
|
|
3900
|
-
const
|
|
3901
|
-
return
|
|
3902
|
-
|
|
3903
|
-
}),
|
|
3901
|
+
function V(k, T, m, C, E, N) {
|
|
3902
|
+
const b = I(Se.data, E, T, m, C, N);
|
|
3903
|
+
return k.forEach((D, F) => {
|
|
3904
|
+
b.data[D.field] = i(D, E, T, b, C);
|
|
3905
|
+
}), b;
|
|
3904
3906
|
}
|
|
3905
|
-
function
|
|
3906
|
-
return Object.assign(
|
|
3907
|
+
function h(k, T, m, C, E) {
|
|
3908
|
+
return Object.assign(k, { index: T, dataIndex: m, top: C, pre: E });
|
|
3907
3909
|
}
|
|
3908
|
-
function x(
|
|
3909
|
-
const
|
|
3910
|
-
return
|
|
3910
|
+
function x(k, T, m, C, E, N) {
|
|
3911
|
+
const b = k.__fv_data_index__, D = k[p.value], F = t.getEditingSnapshot(D);
|
|
3912
|
+
return F === null ? V(N, k, T, m, C, E) : h(F, C, b, E, m);
|
|
3911
3913
|
}
|
|
3912
|
-
return { createEmptyRow: I, createNewRowFromDataItem:
|
|
3914
|
+
return { createEmptyRow: I, createNewRowFromDataItem: V, renderDataRow: x };
|
|
3913
3915
|
}
|
|
3914
|
-
function
|
|
3915
|
-
const a = w(e.summary), { idField: r } = t, { createCellByField: s } = n, { createEmptyRow: f } = o,
|
|
3916
|
+
function xr(e, t, n, o) {
|
|
3917
|
+
const a = w(e.summary), { idField: r } = t, { createCellByField: s } = n, { createEmptyRow: f } = o, y = R(() => {
|
|
3916
3918
|
const i = a.value;
|
|
3917
3919
|
return (i == null ? void 0 : i.groupFields) || [];
|
|
3918
|
-
}), p =
|
|
3920
|
+
}), p = R(() => {
|
|
3919
3921
|
const i = a.value;
|
|
3920
3922
|
return i && i.enable && i.groupFields && i.groupFields.length > 0;
|
|
3921
3923
|
});
|
|
3922
|
-
function
|
|
3924
|
+
function c(i, I, V, h) {
|
|
3923
3925
|
if (p.value) {
|
|
3924
3926
|
const x = i.data[I];
|
|
3925
|
-
let
|
|
3926
|
-
const
|
|
3927
|
-
|
|
3928
|
-
if (
|
|
3929
|
-
const
|
|
3930
|
-
i.data[
|
|
3927
|
+
let _ = x.colSpan;
|
|
3928
|
+
const d = y.value.reduce((k, T) => (k.set(T, !0), k), /* @__PURE__ */ new Map());
|
|
3929
|
+
h.reduce((k, T, m) => {
|
|
3930
|
+
if (d.has(T.field)) {
|
|
3931
|
+
const C = s(T.field, Z.readonly, m, V, i);
|
|
3932
|
+
i.data[T.field] = C, _ - 1 > m && (_ = m);
|
|
3931
3933
|
}
|
|
3932
|
-
return
|
|
3933
|
-
}, i), x.colSpan =
|
|
3934
|
+
return k;
|
|
3935
|
+
}, i), x.colSpan = _;
|
|
3934
3936
|
}
|
|
3935
3937
|
}
|
|
3936
|
-
function l(i, I,
|
|
3937
|
-
const
|
|
3938
|
-
return
|
|
3938
|
+
function l(i, I, V, h, x, _) {
|
|
3939
|
+
const d = i.__fv_data_grid_group_field__, k = f(Se.group, h, i, I, V, x);
|
|
3940
|
+
return k.data[r.value] = s(r.value, Z.readonly, -1, i, k, 0), k.data[d] = s(d, Z.readonly, 1, i, k, _.length), c(k, d, i, _), k;
|
|
3939
3941
|
}
|
|
3940
3942
|
return { renderGroupRow: l };
|
|
3941
3943
|
}
|
|
3942
|
-
function
|
|
3944
|
+
function Er(e, t, n, o) {
|
|
3943
3945
|
const { idField: a } = t, { createCellByField: r } = n, { createEmptyRow: s } = o;
|
|
3944
|
-
function f(
|
|
3945
|
-
const
|
|
3946
|
-
return
|
|
3946
|
+
function f(y, p, c, l, i, I) {
|
|
3947
|
+
const V = y.__fv_data_grid_group_field__, h = s(Se.summary, l, y, p, c, i);
|
|
3948
|
+
return h.data[a.value] = r(a.value, Z.readonly, -1, y, h), h.data[V] = r(V, Z.readonly, 1, y, h, I.length), h;
|
|
3947
3949
|
}
|
|
3948
3950
|
return { renderSummaryRow: f };
|
|
3949
3951
|
}
|
|
3950
|
-
function
|
|
3951
|
-
var
|
|
3952
|
+
function Or(e, t) {
|
|
3953
|
+
var T;
|
|
3952
3954
|
const {
|
|
3953
3955
|
idField: n
|
|
3954
|
-
} = t, o = w(e.editable), a = w(e.editOption), r = w(((
|
|
3956
|
+
} = t, o = w(e.editable), a = w(e.editOption), r = w(((T = e.rowOption) == null ? void 0 : T.wrapContent) || !1);
|
|
3955
3957
|
Q(() => e.editable, () => {
|
|
3956
3958
|
o.value = e.editable;
|
|
3957
3959
|
}), Q(() => {
|
|
3958
|
-
var
|
|
3959
|
-
return (
|
|
3960
|
-
}, (
|
|
3961
|
-
a.value.editMode =
|
|
3960
|
+
var m;
|
|
3961
|
+
return (m = e.editOption) == null ? void 0 : m.editMode;
|
|
3962
|
+
}, (m) => {
|
|
3963
|
+
a.value.editMode = m;
|
|
3962
3964
|
});
|
|
3963
3965
|
const s = /* @__PURE__ */ new Map([["boolean", "check-box"], ["datetime", "date-picker"], ["number", "number-spinner"], ["string", "input-group"], ["text", "text"], ["commands", "commands-editor"]]);
|
|
3964
|
-
let f,
|
|
3965
|
-
function p(
|
|
3966
|
-
return
|
|
3966
|
+
let f, y;
|
|
3967
|
+
function p(m) {
|
|
3968
|
+
return y && y.raw[n.value] === m ? y : null;
|
|
3967
3969
|
}
|
|
3968
|
-
function
|
|
3969
|
-
|
|
3970
|
+
function c(m) {
|
|
3971
|
+
m.mode = Z.editing, f = m;
|
|
3970
3972
|
}
|
|
3971
|
-
function l(
|
|
3972
|
-
|
|
3973
|
+
function l(m) {
|
|
3974
|
+
m.accept(), m.mode = Z.editable;
|
|
3973
3975
|
}
|
|
3974
|
-
function i(
|
|
3976
|
+
function i(m) {
|
|
3975
3977
|
f && l(f), document.body.removeEventListener("click", i);
|
|
3976
3978
|
}
|
|
3977
|
-
function I(
|
|
3978
|
-
o.value && a.value.editMode === "cell" &&
|
|
3979
|
+
function I(m, C) {
|
|
3980
|
+
o.value && a.value.editMode === "cell" && C.mode === Z.editable && (f && l(f), c(C), document.body.removeEventListener("click", i), document.body.addEventListener("click", i));
|
|
3979
3981
|
}
|
|
3980
|
-
function
|
|
3981
|
-
Object.values(
|
|
3982
|
-
|
|
3983
|
-
}),
|
|
3982
|
+
function V(m) {
|
|
3983
|
+
Object.values(m.data).filter((C) => C.mode === Z.editable && C.field !== "__commands__").forEach((C) => {
|
|
3984
|
+
C.mode = Z.editing;
|
|
3985
|
+
}), m.status = le.editing, y = m;
|
|
3984
3986
|
}
|
|
3985
|
-
function m
|
|
3986
|
-
Object.values(
|
|
3987
|
-
|
|
3988
|
-
}),
|
|
3987
|
+
function h(m, C) {
|
|
3988
|
+
Object.values(m.data).filter((E) => E.mode === Z.editing).forEach((E) => {
|
|
3989
|
+
C ? E.accept() : E.cancel(), E.mode = Z.editable;
|
|
3990
|
+
}), m.status = le.initial, y === m && (y = null);
|
|
3989
3991
|
}
|
|
3990
|
-
function x(
|
|
3991
|
-
o.value && a.value.editMode === "row" &&
|
|
3992
|
+
function x(m) {
|
|
3993
|
+
o.value && a.value.editMode === "row" && y !== m && (y && h(y, !1), V(m));
|
|
3992
3994
|
}
|
|
3993
|
-
function
|
|
3994
|
-
m
|
|
3995
|
+
function _(m) {
|
|
3996
|
+
h(m, !0), m.status = le.initial;
|
|
3995
3997
|
}
|
|
3996
|
-
function
|
|
3997
|
-
m
|
|
3998
|
+
function d(m) {
|
|
3999
|
+
h(m, !1), m.status = le.initial;
|
|
3998
4000
|
}
|
|
3999
|
-
function
|
|
4000
|
-
const
|
|
4001
|
-
type: s.get(
|
|
4001
|
+
function k(m, C, E) {
|
|
4002
|
+
const N = C.dataType, b = C.editor || {
|
|
4003
|
+
type: s.get(N) || "input-group"
|
|
4002
4004
|
};
|
|
4003
|
-
return !r.value &&
|
|
4005
|
+
return !r.value && b.type === "text" && (b.type = "input-group"), b ? v(lr, {
|
|
4004
4006
|
focusOnCreated: e.focusOnEditingCell,
|
|
4005
4007
|
selectOnCreated: e.selectOnEditingCell,
|
|
4006
|
-
editor:
|
|
4007
|
-
modelValue:
|
|
4008
|
-
"onUpdate:modelValue": (
|
|
4009
|
-
}, null) :
|
|
4008
|
+
editor: b,
|
|
4009
|
+
modelValue: m.editingData,
|
|
4010
|
+
"onUpdate:modelValue": (D) => m.editingData = D
|
|
4011
|
+
}, null) : m.data;
|
|
4010
4012
|
}
|
|
4011
4013
|
return {
|
|
4012
4014
|
onClickCell: I,
|
|
4013
4015
|
onEditingRow: x,
|
|
4014
|
-
acceptEditingRow:
|
|
4015
|
-
cancelEditingRow:
|
|
4016
|
+
acceptEditingRow: _,
|
|
4017
|
+
cancelEditingRow: d,
|
|
4016
4018
|
getEditingSnapshot: p,
|
|
4017
|
-
getEditor:
|
|
4019
|
+
getEditor: k
|
|
4018
4020
|
};
|
|
4019
4021
|
}
|
|
4020
|
-
function
|
|
4022
|
+
function Nr(e) {
|
|
4021
4023
|
const t = w(e.idField);
|
|
4022
4024
|
function n(o) {
|
|
4023
4025
|
if (o && o.length) {
|
|
@@ -4027,127 +4029,127 @@ function Er(e) {
|
|
|
4027
4029
|
}
|
|
4028
4030
|
return { idField: t, reviseIdentifyField: n };
|
|
4029
4031
|
}
|
|
4030
|
-
function
|
|
4031
|
-
const { idField: r } = n, s = w(""), f = w(e.selection.enableSelectRow ?? !0),
|
|
4032
|
-
Q(() => e.selection.showSelectAll, (
|
|
4033
|
-
|
|
4032
|
+
function Br(e, t, n, o, a) {
|
|
4033
|
+
const { idField: r } = n, s = w(""), f = w(e.selection.enableSelectRow ?? !0), y = w(e.selection.multiSelect ?? !1), p = w(e.selection.multiSelectMode), c = w(e.selection.showCheckbox), l = w(e.selection.showSelectAll), i = w(e.selectionValues);
|
|
4034
|
+
Q(() => e.selection.showSelectAll, (O, H) => {
|
|
4035
|
+
O !== H && (l.value = O);
|
|
4034
4036
|
});
|
|
4035
4037
|
function I() {
|
|
4036
4038
|
return t.getSelectionItems(i.value);
|
|
4037
4039
|
}
|
|
4038
|
-
function k() {
|
|
4039
|
-
const B = o.value.reduce((W, J) => (W.set(J.raw[r.value], J), W), /* @__PURE__ */ new Map());
|
|
4040
|
-
return i.value.map((W) => B.get(W)).filter((W) => !!W);
|
|
4041
|
-
}
|
|
4042
|
-
M(() => f.value && !g.value);
|
|
4043
|
-
const m = M(() => f.value && g.value), x = M(() => !!e.hierarchy), y = M(() => {
|
|
4044
|
-
const B = d.value && p.value === "DependOnCheck";
|
|
4045
|
-
return m.value && B;
|
|
4046
|
-
}), C = M(() => m.value && !d.value), F = M(() => m.value && d.value && p.value === "OnCheckAndClick");
|
|
4047
|
-
M(() => F.value);
|
|
4048
4040
|
function V() {
|
|
4049
|
-
const
|
|
4050
|
-
|
|
4041
|
+
const O = o.value.reduce((W, J) => (W.set(J.raw[r.value], J), W), /* @__PURE__ */ new Map());
|
|
4042
|
+
return i.value.map((W) => O.get(W)).filter((W) => !!W);
|
|
4043
|
+
}
|
|
4044
|
+
R(() => f.value && !y.value);
|
|
4045
|
+
const h = R(() => f.value && y.value), x = R(() => !!e.hierarchy), _ = R(() => {
|
|
4046
|
+
const O = c.value && p.value === "DependOnCheck";
|
|
4047
|
+
return h.value && O;
|
|
4048
|
+
}), d = R(() => h.value && !c.value), k = R(() => h.value && c.value && p.value === "OnCheckAndClick");
|
|
4049
|
+
R(() => k.value);
|
|
4050
|
+
function T() {
|
|
4051
|
+
const O = t.getSelectionItems(i.value);
|
|
4052
|
+
a.emit("selectionChange", O);
|
|
4051
4053
|
}
|
|
4052
|
-
function
|
|
4053
|
-
o.value.forEach((
|
|
4054
|
-
|
|
4055
|
-
}),
|
|
4056
|
-
|
|
4054
|
+
function m() {
|
|
4055
|
+
o.value.forEach((H) => {
|
|
4056
|
+
H.checked = !1, H.indeterminate = !1, H.raw.__fv_checked__ = !1, H.raw.__fv_indeterminate__ = !1;
|
|
4057
|
+
}), V().forEach((H) => {
|
|
4058
|
+
H.checked = !0, H.raw.__fv_checked__ = !0;
|
|
4057
4059
|
});
|
|
4058
4060
|
}
|
|
4059
4061
|
Q(() => o.value, () => {
|
|
4060
|
-
|
|
4061
|
-
}), Q(() => e.selectionValues, (
|
|
4062
|
-
i.value =
|
|
4063
|
-
}, { immediate: !0 }), Q(() => e.selection, (
|
|
4064
|
-
f.value = !!
|
|
4062
|
+
m();
|
|
4063
|
+
}), Q(() => e.selectionValues, (O) => {
|
|
4064
|
+
i.value = O, m();
|
|
4065
|
+
}, { immediate: !0 }), Q(() => e.selection, (O) => {
|
|
4066
|
+
f.value = !!O.enableSelectRow, y.value = !!O.multiSelect, p.value = O.multiSelectMode || "DependOnCheck", c.value = !!O.showCheckbox;
|
|
4065
4067
|
});
|
|
4066
|
-
const
|
|
4067
|
-
function
|
|
4068
|
-
return
|
|
4068
|
+
const C = R(() => !y.value);
|
|
4069
|
+
function E(O) {
|
|
4070
|
+
return O.raw[r.value] || "";
|
|
4069
4071
|
}
|
|
4070
|
-
function
|
|
4071
|
-
return i.value.findIndex((W) => W ===
|
|
4072
|
+
function N(O) {
|
|
4073
|
+
return i.value.findIndex((W) => W === E(O));
|
|
4072
4074
|
}
|
|
4073
|
-
function
|
|
4074
|
-
|
|
4075
|
+
function b() {
|
|
4076
|
+
V().forEach((W) => {
|
|
4075
4077
|
W.checked = !1;
|
|
4076
4078
|
}), t.getSelectionItems(i.value).forEach((W) => {
|
|
4077
4079
|
W.__fv_checked__ = !1;
|
|
4078
4080
|
}), i.value = [];
|
|
4079
4081
|
}
|
|
4080
|
-
function O
|
|
4081
|
-
const
|
|
4082
|
-
|
|
4082
|
+
function D(O) {
|
|
4083
|
+
const H = O.raw;
|
|
4084
|
+
H.__fv_checked__ = !0, H.__fv_indeterminate__ = !1;
|
|
4083
4085
|
const W = new Set(i.value);
|
|
4084
|
-
W.add(
|
|
4086
|
+
W.add(H[r.value]), i.value = Array.from(W.values()), O.checked = !0, O.indeterminate = !1, s.value = O.raw[r.value];
|
|
4085
4087
|
}
|
|
4086
|
-
function
|
|
4087
|
-
const
|
|
4088
|
-
|
|
4088
|
+
function F(O) {
|
|
4089
|
+
const H = O.raw;
|
|
4090
|
+
H.__fv_checked__ = !1, H.__fv_indeterminate__ = !1, i.value = i.value.filter((W) => W !== H[r.value]), O.checked = !1, O.indeterminate = !1, s.value = "";
|
|
4089
4091
|
}
|
|
4090
|
-
function S(
|
|
4091
|
-
const
|
|
4092
|
-
|
|
4092
|
+
function S(O) {
|
|
4093
|
+
const H = O.raw;
|
|
4094
|
+
H.__fv_checked__ = !1, H.__fv_indeterminate__ = !0, i.value = i.value.filter((W) => W !== H[r.value]), O.checked = !1, O.indeterminate = !0;
|
|
4093
4095
|
}
|
|
4094
|
-
function u(
|
|
4095
|
-
|
|
4096
|
+
function u(O) {
|
|
4097
|
+
C.value && b(), O.checked ? F(O) : D(O), T();
|
|
4096
4098
|
}
|
|
4097
|
-
function
|
|
4098
|
-
|
|
4099
|
+
function g(O) {
|
|
4100
|
+
O.raw[r.value] !== s.value && (b(), D(O), T());
|
|
4099
4101
|
}
|
|
4100
|
-
function
|
|
4101
|
-
const
|
|
4102
|
-
|
|
4102
|
+
function B(O) {
|
|
4103
|
+
const H = o.value.find((W) => W.raw[r.value] === O);
|
|
4104
|
+
H && g(H);
|
|
4103
4105
|
}
|
|
4104
|
-
function
|
|
4105
|
-
o.value.forEach((
|
|
4106
|
+
function M() {
|
|
4107
|
+
o.value.forEach((O) => D(O)), T();
|
|
4106
4108
|
}
|
|
4107
4109
|
function A() {
|
|
4108
|
-
i.value.splice(0, i.value.length), s.value = "", o.value.forEach((
|
|
4109
|
-
const
|
|
4110
|
-
|
|
4111
|
-
}),
|
|
4110
|
+
i.value.splice(0, i.value.length), s.value = "", o.value.forEach((O) => {
|
|
4111
|
+
const H = O.raw;
|
|
4112
|
+
H.__fv_checked__ = !1, H.__fv_indeterminate__ = !1, O.checked = !1, O.indeterminate = !1;
|
|
4113
|
+
}), T();
|
|
4112
4114
|
}
|
|
4113
4115
|
function P() {
|
|
4114
|
-
return o.value.find((
|
|
4116
|
+
return o.value.find((O) => O.raw[r.value] === s.value);
|
|
4115
4117
|
}
|
|
4116
4118
|
return {
|
|
4117
|
-
clearSelection:
|
|
4119
|
+
clearSelection: b,
|
|
4118
4120
|
currentSelectedDataId: s,
|
|
4119
|
-
enableMultiSelect:
|
|
4121
|
+
enableMultiSelect: y,
|
|
4120
4122
|
enableSelectRow: f,
|
|
4121
|
-
findIndexInSelectedItems:
|
|
4123
|
+
findIndexInSelectedItems: N,
|
|
4122
4124
|
getSelectedItems: I,
|
|
4123
4125
|
getSelectionRow: P,
|
|
4124
4126
|
indeterminate: S,
|
|
4125
4127
|
isSelectingHirarchyItem: x,
|
|
4126
4128
|
multiSelectMode: p,
|
|
4127
|
-
multiSelectOnClickRow:
|
|
4128
|
-
multiSelectOnClickRowWithShift:
|
|
4129
|
-
multiSelectOnlyOnCheck:
|
|
4130
|
-
select:
|
|
4131
|
-
selectAll:
|
|
4129
|
+
multiSelectOnClickRow: k,
|
|
4130
|
+
multiSelectOnClickRowWithShift: d,
|
|
4131
|
+
multiSelectOnlyOnCheck: _,
|
|
4132
|
+
select: D,
|
|
4133
|
+
selectAll: M,
|
|
4132
4134
|
selectedValues: i,
|
|
4133
|
-
selectItem:
|
|
4134
|
-
selectItemById:
|
|
4135
|
-
showCheckBox:
|
|
4135
|
+
selectItem: g,
|
|
4136
|
+
selectItemById: B,
|
|
4137
|
+
showCheckBox: c,
|
|
4136
4138
|
showSelectAll: l,
|
|
4137
4139
|
toggleSelectItem: u,
|
|
4138
|
-
unSelect:
|
|
4140
|
+
unSelect: F,
|
|
4139
4141
|
unSelectAll: A
|
|
4140
4142
|
};
|
|
4141
4143
|
}
|
|
4142
|
-
function
|
|
4143
|
-
var f,
|
|
4144
|
-
const t =
|
|
4144
|
+
function Dr(e) {
|
|
4145
|
+
var f, y, p, c;
|
|
4146
|
+
const t = R(() => {
|
|
4145
4147
|
var l;
|
|
4146
4148
|
return (l = e.pagination) == null ? void 0 : l.enable;
|
|
4147
|
-
}), n = w(((f = e.pagination) == null ? void 0 : f.index) || 1), o = w((
|
|
4149
|
+
}), n = w(((f = e.pagination) == null ? void 0 : f.index) || 1), o = w((y = e.pagination) == null ? void 0 : y.size), a = w((p = e.pagination) == null ? void 0 : p.sizeLimits), r = R(() => {
|
|
4148
4150
|
var l;
|
|
4149
4151
|
return ((l = e.pagination) == null ? void 0 : l.total) || e.data.length;
|
|
4150
|
-
}), s = w((
|
|
4152
|
+
}), s = w((c = e.pagination) == null ? void 0 : c.mode);
|
|
4151
4153
|
return Q(() => {
|
|
4152
4154
|
var l;
|
|
4153
4155
|
return (l = e.pagination) == null ? void 0 : l.sizeLimits;
|
|
@@ -4165,43 +4167,43 @@ function Nr(e) {
|
|
|
4165
4167
|
mode: s
|
|
4166
4168
|
};
|
|
4167
4169
|
}
|
|
4168
|
-
function
|
|
4169
|
-
const t = "parent", n = "layer", o = "hasChildren", a = (r, s = 1, f = [],
|
|
4170
|
+
function Rr(e) {
|
|
4171
|
+
const t = "parent", n = "layer", o = "hasChildren", a = (r, s = 1, f = [], y = null) => (r = r || [], r.reduce((p, c) => (c.id = c.id || c.data[e.idField], c.data[t] = y, c.data[n] = s, c.data[o] = !1, p.push(c.data), c.children && c.children.length && (c.data[o] = !0, a(c.children, s + 1, f, c.id)), p), f), f);
|
|
4170
4172
|
return { flatTreeData: a };
|
|
4171
4173
|
}
|
|
4172
|
-
const
|
|
4174
|
+
const Mr = /* @__PURE__ */ oe({
|
|
4173
4175
|
name: "FListViewDesign",
|
|
4174
4176
|
props: we,
|
|
4175
4177
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
|
|
4176
4178
|
setup(e, t) {
|
|
4177
|
-
const n = w(), o = w(!0), a = w(!1), r = w([]), s = 0, f = w(e.columns),
|
|
4178
|
-
getVisualData:
|
|
4179
|
-
} =
|
|
4180
|
-
r.value =
|
|
4181
|
-
|
|
4182
|
-
}), t.expose(
|
|
4183
|
-
const
|
|
4179
|
+
const n = w(), o = w(!0), a = w(!1), r = w([]), s = 0, f = w(e.columns), y = Nr(e), p = Tr(e), c = ht(e, y), l = Dr(e), i = Fr(e, /* @__PURE__ */ new Map(), p, y, l), I = Br(e, i, y, r, t), V = et(e, n), h = w(), x = Ke("design-item-context"), _ = ot(h, x), d = R(() => i.dataView.value.length), k = Or(e, y), T = Qo(), m = Vr(e, {}, T), C = Ir(e, k, p, y, T, m), E = xr(e, y, m, C), N = Er(e, y, m, C), b = kr(e, f, i, d, s, C, E, N), {
|
|
4180
|
+
getVisualData: D
|
|
4181
|
+
} = b;
|
|
4182
|
+
r.value = D(0, d.value + s - 1), pe(() => {
|
|
4183
|
+
h.value.componentInstance = _;
|
|
4184
|
+
}), t.expose(_.value);
|
|
4185
|
+
const F = R(() => {
|
|
4184
4186
|
const P = {
|
|
4185
4187
|
"f-list-view": !0,
|
|
4186
4188
|
"f-list-view-multiple": e.multiSelect
|
|
4187
4189
|
};
|
|
4188
4190
|
return e.size !== "default" && (P[`${e.size}-item`] = !0), P;
|
|
4189
|
-
}), S =
|
|
4191
|
+
}), S = R(() => !!t.slots.footer || o.value);
|
|
4190
4192
|
function u() {
|
|
4191
4193
|
return e.header === "SearchBar" ? Ce : e.header === "ContentHeader" ? nt : Ce;
|
|
4192
4194
|
}
|
|
4193
|
-
const
|
|
4194
|
-
renderHeader:
|
|
4195
|
-
} =
|
|
4196
|
-
renderListArea:
|
|
4197
|
-
} = tt(e, t, r, i,
|
|
4195
|
+
const g = u(), {
|
|
4196
|
+
renderHeader: B
|
|
4197
|
+
} = g(e, t, V), {
|
|
4198
|
+
renderListArea: M
|
|
4199
|
+
} = tt(e, t, r, i, c, I, b);
|
|
4198
4200
|
function A(P) {
|
|
4199
4201
|
e.multiSelect && (P.preventDefault(), P.stopPropagation());
|
|
4200
4202
|
}
|
|
4201
4203
|
return () => v("div", {
|
|
4202
|
-
class:
|
|
4204
|
+
class: F.value,
|
|
4203
4205
|
onClick: A
|
|
4204
|
-
}, [
|
|
4206
|
+
}, [B(), v("div", {
|
|
4205
4207
|
ref: n,
|
|
4206
4208
|
class: "f-list-view-content",
|
|
4207
4209
|
onMouseover: () => {
|
|
@@ -4210,7 +4212,7 @@ const Dr = /* @__PURE__ */ oe({
|
|
|
4210
4212
|
onMouseleave: () => {
|
|
4211
4213
|
a.value = !1;
|
|
4212
4214
|
}
|
|
4213
|
-
}, [
|
|
4215
|
+
}, [M()]), S.value && v("div", {
|
|
4214
4216
|
class: "f-list-view-footer"
|
|
4215
4217
|
}, [t.slots.footer && t.slots.footer()])]);
|
|
4216
4218
|
}
|
|
@@ -4254,7 +4256,7 @@ const Dr = /* @__PURE__ */ oe({
|
|
|
4254
4256
|
desc: "导游5",
|
|
4255
4257
|
amount: 84.13,
|
|
4256
4258
|
avatar: "./assets/avatar5.png"
|
|
4257
|
-
}], o =
|
|
4259
|
+
}], o = R(() => e.data.length > 0 ? e.data : n);
|
|
4258
4260
|
return () => {
|
|
4259
4261
|
var a;
|
|
4260
4262
|
return v(me, null, [(a = o.value) == null ? void 0 : a.map((r) => v("div", {
|
|
@@ -4288,7 +4290,7 @@ const Dr = /* @__PURE__ */ oe({
|
|
|
4288
4290
|
}, [r.date])])])])]))]);
|
|
4289
4291
|
};
|
|
4290
4292
|
}
|
|
4291
|
-
}),
|
|
4293
|
+
}), $r = "https://json-schema.org/draft/2020-12/schema", Ar = "https://farris-design.gitee.io/list-view-table.schema.json", Pr = "list-view-table", Lr = "A Farris Component", jr = "object", Gr = {
|
|
4292
4294
|
id: {
|
|
4293
4295
|
description: "The unique identifier for list-view-table",
|
|
4294
4296
|
type: "string"
|
|
@@ -4350,18 +4352,18 @@ const Dr = /* @__PURE__ */ oe({
|
|
|
4350
4352
|
type: "boolean",
|
|
4351
4353
|
default: !0
|
|
4352
4354
|
}
|
|
4353
|
-
},
|
|
4355
|
+
}, Hr = [
|
|
4354
4356
|
"id",
|
|
4355
4357
|
"type"
|
|
4356
|
-
],
|
|
4357
|
-
$schema:
|
|
4358
|
-
$id:
|
|
4359
|
-
title:
|
|
4360
|
-
description:
|
|
4361
|
-
type:
|
|
4362
|
-
properties:
|
|
4363
|
-
required:
|
|
4364
|
-
},
|
|
4358
|
+
], qr = {
|
|
4359
|
+
$schema: $r,
|
|
4360
|
+
$id: Ar,
|
|
4361
|
+
title: Pr,
|
|
4362
|
+
description: Lr,
|
|
4363
|
+
type: jr,
|
|
4364
|
+
properties: Gr,
|
|
4365
|
+
required: Hr
|
|
4366
|
+
}, zr = "list-view-table", Wr = "A Farris Component", Ur = "object", Kr = {
|
|
4365
4367
|
basic: {
|
|
4366
4368
|
description: "Basic Infomation",
|
|
4367
4369
|
title: "基本信息",
|
|
@@ -4383,14 +4385,14 @@ const Dr = /* @__PURE__ */ oe({
|
|
|
4383
4385
|
}
|
|
4384
4386
|
}
|
|
4385
4387
|
}
|
|
4386
|
-
},
|
|
4387
|
-
title:
|
|
4388
|
-
description:
|
|
4389
|
-
type:
|
|
4390
|
-
categories:
|
|
4388
|
+
}, Qr = {
|
|
4389
|
+
title: zr,
|
|
4390
|
+
description: Wr,
|
|
4391
|
+
type: Ur,
|
|
4392
|
+
categories: Kr
|
|
4391
4393
|
}, yt = {
|
|
4392
4394
|
data: { type: Array, default: [] }
|
|
4393
|
-
}, _t = ge(yt,
|
|
4395
|
+
}, _t = ge(yt, qr, Je, Xe, Qr), Yr = /* @__PURE__ */ oe({
|
|
4394
4396
|
name: "FListViewTableDesign",
|
|
4395
4397
|
props: yt,
|
|
4396
4398
|
emits: ["outputValue", "currentEvent", "selectionChanged"],
|
|
@@ -4444,30 +4446,30 @@ const Dr = /* @__PURE__ */ oe({
|
|
|
4444
4446
|
desc: "浙江杭州",
|
|
4445
4447
|
amount: 84.13,
|
|
4446
4448
|
avatar: "./assets/avatar7.png"
|
|
4447
|
-
}], o =
|
|
4449
|
+
}], o = R(() => e.data.length > 0 ? e.data : n), a = w(), r = Ke("design-item-context"), s = ot(a, r);
|
|
4448
4450
|
return pe(() => {
|
|
4449
4451
|
a.value.componentInstance = s;
|
|
4450
4452
|
}), t.expose(s.value), () => {
|
|
4451
4453
|
var f;
|
|
4452
4454
|
return v("div", {
|
|
4453
4455
|
ref: a
|
|
4454
|
-
}, [(f = o.value) == null ? void 0 : f.map((
|
|
4456
|
+
}, [(f = o.value) == null ? void 0 : f.map((y) => v("div", {
|
|
4455
4457
|
class: "f-template-listview-row"
|
|
4456
4458
|
}, [v("div", {
|
|
4457
4459
|
class: "list-view-item-title"
|
|
4458
4460
|
}, [v("div", {
|
|
4459
4461
|
class: "item-title-img"
|
|
4460
4462
|
}, [v("img", {
|
|
4461
|
-
src:
|
|
4463
|
+
src: y.avatar,
|
|
4462
4464
|
alt: "",
|
|
4463
4465
|
style: "width: 44px;"
|
|
4464
4466
|
}, null)]), v("div", {
|
|
4465
4467
|
class: "item-title"
|
|
4466
4468
|
}, [v("p", {
|
|
4467
4469
|
class: "item-title-heading"
|
|
4468
|
-
}, [
|
|
4470
|
+
}, [y.code]), v("p", {
|
|
4469
4471
|
class: "item-title-text"
|
|
4470
|
-
}, [
|
|
4472
|
+
}, [y.desc])])]), v("div", {
|
|
4471
4473
|
class: "list-view-item-content"
|
|
4472
4474
|
}, [v("div", {
|
|
4473
4475
|
class: "content-message"
|
|
@@ -4475,11 +4477,11 @@ const Dr = /* @__PURE__ */ oe({
|
|
|
4475
4477
|
class: "ower"
|
|
4476
4478
|
}, [v("p", null, [ue("负责人")]), v("p", {
|
|
4477
4479
|
class: "con"
|
|
4478
|
-
}, [
|
|
4480
|
+
}, [y.name])]), v("div", {
|
|
4479
4481
|
class: "date"
|
|
4480
4482
|
}, [v("p", null, [ue("预约时间")]), v("p", {
|
|
4481
4483
|
class: "con"
|
|
4482
|
-
}, [
|
|
4484
|
+
}, [y.date])])])]), v("div", {
|
|
4483
4485
|
class: "list-view-item-operate"
|
|
4484
4486
|
}, null)]))]);
|
|
4485
4487
|
};
|
|
@@ -4492,7 +4494,7 @@ ve.register = (e, t, n) => {
|
|
|
4492
4494
|
e["list-view"] = ve, t["list-view"] = Ze, e["list-view-table"] = Oe, t["list-view-table"] = _t;
|
|
4493
4495
|
};
|
|
4494
4496
|
ve.registerDesigner = (e, t, n) => {
|
|
4495
|
-
e["list-view"] =
|
|
4497
|
+
e["list-view"] = Mr, t["list-view"] = Ze, e["list-view-table"] = Yr, t["list-view-table"] = _t;
|
|
4496
4498
|
};
|
|
4497
4499
|
export {
|
|
4498
4500
|
ve as FListView,
|