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