@farris/ui-vue 1.2.5 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +147 -139
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/index.esm.js +122 -131
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.css +1 -0
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +216 -223
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +201 -181
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +340 -107
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +36 -29
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +341 -338
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +9 -13
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
- package/components/data-grid/index.esm.js +3415 -3295
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2719 -2717
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +31 -40
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +23 -20
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/index.esm.js +86 -86
- package/components/dropdown/index.umd.cjs +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +578 -584
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/index.esm.js +56 -47
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +287 -278
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.css +1 -0
- package/components/external-container/index.esm.js +1923 -1908
- package/components/external-container/index.umd.cjs +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.css +1 -0
- package/components/field-selector/index.esm.js +3719 -3604
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/{style.css → index.css} +1 -1
- package/components/filter-bar/index.esm.js +483 -470
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.esm.js +37 -34
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/index.esm.js +258 -267
- package/components/input-group/index.umd.cjs +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +1452 -1450
- package/components/list-view/index.umd.cjs +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/index.css +1 -0
- package/components/lookup/index.esm.js +4860 -4657
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.css +1 -0
- package/components/mapping-editor/index.esm.js +4411 -4259
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/message-box/index.css +1 -0
- package/components/message-box/index.esm.js +397 -386
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.css +1 -0
- package/components/modal/index.esm.js +308 -297
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +763 -741
- package/components/order/index.umd.cjs +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/index.esm.js +948 -945
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +485 -466
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +437 -426
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/index.esm.js +98 -107
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/{style.css → index.css} +1 -1
- package/components/response-layout-editor/index.esm.js +840 -800
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/index.esm.js +757 -760
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.css +1 -0
- package/components/schema-selector/index.esm.js +3659 -3432
- package/components/schema-selector/index.umd.cjs +8 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +21 -14
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/index.esm.js +126 -135
- package/components/switch/index.umd.cjs +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.esm.js +1400 -1379
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +97 -106
- package/components/textarea/index.umd.cjs +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +393 -402
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/index.esm.js +124 -122
- package/components/transfer/index.umd.cjs +1 -1
- package/components/transfer/package.json +1 -1
- package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
- package/components/tree-grid/index.esm.js +3531 -3412
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +2046 -2044
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/farris.all.esm.js +12370 -11917
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
- package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
- package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
- package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
- package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -5
- package/types/data-grid/src/data-grid.component.d.ts +2 -2
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
- package/types/designer-canvas/src/composition/types.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
- package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +7 -3
- package/types/lookup/src/property-config/lookup.property-config.d.ts +31 -27
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/page-header/src/page-header.props.d.ts +7 -0
- package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +2 -16
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
- package/types/response-toolbar/index.d.ts +9 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
- package/types/schema-selector/src/composition/types.d.ts +3 -1
- package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
- package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
- package/types/tabs/src/tabs.props.d.ts +8 -0
- package/components/button-edit/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/lookup/style.css +0 -1
- package/components/mapping-editor/style.css +0 -1
- package/components/message-box/style.css +0 -1
- package/components/modal/style.css +0 -1
- package/components/schema-selector/style.css +0 -1
- package/components/tabs/style.css +0 -1
- package/components/time-picker/style.css +0 -1
- package/style.css +0 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
- /package/components/border-editor/{style.css → index.css} +0 -0
- /package/components/checkbox/{style.css → index.css} +0 -0
- /package/components/date-picker/{style.css → index.css} +0 -0
- /package/components/designer-canvas/{style.css → index.css} +0 -0
- /package/components/designer-outline/{style.css → index.css} +0 -0
- /package/components/designer-toolbox/{style.css → index.css} +0 -0
- /package/components/discussion-editor/{style.css → index.css} +0 -0
- /package/components/discussion-list/{style.css → index.css} +0 -0
- /package/components/drawer/{style.css → index.css} +0 -0
- /package/components/events-editor/{style.css → index.css} +0 -0
- /package/components/flow-canvas/{style.css → index.css} +0 -0
- /package/components/list-view/{style.css → index.css} +0 -0
- /package/components/order/{style.css → index.css} +0 -0
- /package/components/property-editor/{style.css → index.css} +0 -0
- /package/components/property-panel/{style.css → index.css} +0 -0
- /package/components/radio-button/{style.css → index.css} +0 -0
- /package/components/radio-group/{style.css → index.css} +0 -0
- /package/components/smoke-detector/{style.css → index.css} +0 -0
- /package/components/spacing-editor/{style.css → index.css} +0 -0
- /package/components/splitter/{style.css → index.css} +0 -0
- /package/components/switch/{style.css → index.css} +0 -0
- /package/components/transfer/{style.css → index.css} +0 -0
- /package/components/uploader/{style.css → index.css} +0 -0
- /package/components/weather/{style.css → index.css} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ve = Object.defineProperty;
|
|
2
2
|
var ye = (e, t, n) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var w = (e, t, n) => ye(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as I, computed as P, watch as W, defineComponent as Z, onBeforeUnmount as be, createVNode as
|
|
4
|
+
import { ref as I, computed as P, watch as W, defineComponent as Z, onBeforeUnmount as be, createVNode as F, createTextVNode as _, onMounted as J, nextTick as te, reactive as Ce, withDirectives as Fe, resolveDirective as we, Fragment as ne, mergeProps as Te } from "vue";
|
|
5
5
|
import xe, { FDynamicFormGroup as ke } from "@farris/ui-vue/components/dynamic-form";
|
|
6
6
|
import { cloneDeep as Q } from "lodash-es";
|
|
7
7
|
import K from "@farris/ui-vue/components/combo-list";
|
|
@@ -14,53 +14,55 @@ import je from "@farris/ui-vue/components/button-group";
|
|
|
14
14
|
import Le from "@farris/ui-vue/components/calendar";
|
|
15
15
|
import Ae from "@farris/ui-vue/components/capsule";
|
|
16
16
|
import Ne from "@farris/ui-vue/components/checkbox";
|
|
17
|
-
import $e from "@farris/ui-vue/components/
|
|
17
|
+
import $e from "@farris/ui-vue/components/combo-tree";
|
|
18
|
+
import Ge from "@farris/ui-vue/components/component";
|
|
18
19
|
import Re from "@farris/ui-vue/components/color-picker";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
20
|
+
import qe from "@farris/ui-vue/components/content-container";
|
|
21
|
+
import De from "@farris/ui-vue/components/date-picker";
|
|
22
|
+
import We from "@farris/ui-vue/components/data-grid";
|
|
23
|
+
import ze from "@farris/ui-vue/components/dropdown";
|
|
24
|
+
import Ue from "@farris/ui-vue/components/events-editor";
|
|
25
|
+
import He from "@farris/ui-vue/components/filter-bar";
|
|
26
|
+
import Qe from "@farris/ui-vue/components/field-selector";
|
|
27
|
+
import Ze from "@farris/ui-vue/components/image-cropper";
|
|
28
|
+
import _e from "@farris/ui-vue/components/input-group";
|
|
29
|
+
import Je from "@farris/ui-vue/components/layout";
|
|
30
|
+
import Xe from "@farris/ui-vue/components/list-nav";
|
|
31
|
+
import Ye from "@farris/ui-vue/components/list-view";
|
|
32
|
+
import Ke from "@farris/ui-vue/components/lookup";
|
|
33
|
+
import et from "@farris/ui-vue/components/mapping-editor";
|
|
34
|
+
import tt from "@farris/ui-vue/components/nav";
|
|
35
|
+
import nt from "@farris/ui-vue/components/number-range";
|
|
36
|
+
import ot from "@farris/ui-vue/components/order";
|
|
37
|
+
import rt from "@farris/ui-vue/components/page-header";
|
|
38
|
+
import it from "@farris/ui-vue/components/page-footer";
|
|
39
|
+
import at from "@farris/ui-vue/components/pagination";
|
|
40
|
+
import lt from "@farris/ui-vue/components/progress";
|
|
41
|
+
import st from "@farris/ui-vue/components/query-solution";
|
|
42
|
+
import ut from "@farris/ui-vue/components/radio-group";
|
|
43
|
+
import ct from "@farris/ui-vue/components/rate";
|
|
44
|
+
import dt from "@farris/ui-vue/components/response-toolbar";
|
|
45
|
+
import pt from "@farris/ui-vue/components/response-layout";
|
|
46
|
+
import ft from "@farris/ui-vue/components/response-layout-editor";
|
|
47
|
+
import mt from "@farris/ui-vue/components/search-box";
|
|
48
|
+
import gt from "@farris/ui-vue/components/section";
|
|
49
|
+
import ht from "@farris/ui-vue/components/smoke-detector";
|
|
50
|
+
import vt from "@farris/ui-vue/components/splitter";
|
|
51
|
+
import yt from "@farris/ui-vue/components/step";
|
|
52
|
+
import bt from "@farris/ui-vue/components/switch";
|
|
53
|
+
import Ct from "@farris/ui-vue/components/tabs";
|
|
54
|
+
import Ft from "@farris/ui-vue/components/tags";
|
|
55
|
+
import wt from "@farris/ui-vue/components/text";
|
|
56
|
+
import Tt from "@farris/ui-vue/components/time-picker";
|
|
57
|
+
import xt from "@farris/ui-vue/components/transfer";
|
|
58
|
+
import kt from "@farris/ui-vue/components/tree-view";
|
|
59
|
+
import Bt from "@farris/ui-vue/components/uploader";
|
|
60
|
+
import It from "@farris/ui-vue/components/verify-detail";
|
|
61
|
+
import St from "@farris/ui-vue/components/weather";
|
|
62
|
+
import Vt from "@farris/ui-vue/components/video";
|
|
63
|
+
import Et from "@farris/ui-vue/components/textarea";
|
|
64
|
+
import Mt from "@farris/ui-vue/components/schema-selector";
|
|
65
|
+
import Pt from "@farris/ui-vue/components/tree-grid";
|
|
64
66
|
import "@farris/ui-vue/components/external-container";
|
|
65
67
|
const ae = {
|
|
66
68
|
conditions: { type: Array, default: [] },
|
|
@@ -71,7 +73,7 @@ const ae = {
|
|
|
71
73
|
*/
|
|
72
74
|
isControlInline: { type: Boolean, default: !0 }
|
|
73
75
|
};
|
|
74
|
-
class
|
|
76
|
+
class Ot {
|
|
75
77
|
constructor(t = { value: [] }) {
|
|
76
78
|
w(this, "editorType", "check-box");
|
|
77
79
|
w(this, "value");
|
|
@@ -91,7 +93,7 @@ class Mt {
|
|
|
91
93
|
return this.value.length === 0;
|
|
92
94
|
}
|
|
93
95
|
}
|
|
94
|
-
class
|
|
96
|
+
class jt {
|
|
95
97
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
96
98
|
w(this, "editorType", "combo-lookup");
|
|
97
99
|
w(this, "textValue");
|
|
@@ -125,7 +127,7 @@ class Pt {
|
|
|
125
127
|
return !this.valueField;
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
|
-
class
|
|
130
|
+
class Lt {
|
|
129
131
|
constructor(t = { value: "" }) {
|
|
130
132
|
w(this, "editorType", "date-picker");
|
|
131
133
|
w(this, "value");
|
|
@@ -166,7 +168,7 @@ class oe {
|
|
|
166
168
|
return !this.begin || !this.end;
|
|
167
169
|
}
|
|
168
170
|
}
|
|
169
|
-
class
|
|
171
|
+
class At {
|
|
170
172
|
constructor(t = { value: "" }) {
|
|
171
173
|
w(this, "editorType", "datetime-picker");
|
|
172
174
|
w(this, "value");
|
|
@@ -186,7 +188,7 @@ class jt {
|
|
|
186
188
|
return !this.value;
|
|
187
189
|
}
|
|
188
190
|
}
|
|
189
|
-
class
|
|
191
|
+
class Nt {
|
|
190
192
|
// 旧结构无,新结构为选中的value值,多选是以,分割的字符串
|
|
191
193
|
constructor(t = { value: "", dispalyText: "" }) {
|
|
192
194
|
w(this, "editorType", "combo-list");
|
|
@@ -209,7 +211,7 @@ class Lt {
|
|
|
209
211
|
return !this.displayText;
|
|
210
212
|
}
|
|
211
213
|
}
|
|
212
|
-
class
|
|
214
|
+
class $t {
|
|
213
215
|
constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
|
|
214
216
|
w(this, "editorType", "input-group");
|
|
215
217
|
// 通过弹窗返回的若干个值对象构成的数组
|
|
@@ -248,7 +250,7 @@ class At {
|
|
|
248
250
|
return !this.displayText;
|
|
249
251
|
}
|
|
250
252
|
}
|
|
251
|
-
class
|
|
253
|
+
class Gt {
|
|
252
254
|
constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
|
|
253
255
|
w(this, "editorType", "lookup");
|
|
254
256
|
w(this, "textValue");
|
|
@@ -284,7 +286,7 @@ class Nt {
|
|
|
284
286
|
return !this.value.length;
|
|
285
287
|
}
|
|
286
288
|
}
|
|
287
|
-
class
|
|
289
|
+
class Rt {
|
|
288
290
|
constructor(t = { value: "" }) {
|
|
289
291
|
w(this, "editorType", "month-picker");
|
|
290
292
|
w(this, "value");
|
|
@@ -304,7 +306,7 @@ class $t {
|
|
|
304
306
|
return !this.value;
|
|
305
307
|
}
|
|
306
308
|
}
|
|
307
|
-
class
|
|
309
|
+
class qt {
|
|
308
310
|
constructor(t = { begin: "", end: "" }) {
|
|
309
311
|
w(this, "editorType", "month-range");
|
|
310
312
|
w(this, "begin");
|
|
@@ -325,7 +327,7 @@ class Rt {
|
|
|
325
327
|
return !this.begin || !this.end;
|
|
326
328
|
}
|
|
327
329
|
}
|
|
328
|
-
class
|
|
330
|
+
class Dt {
|
|
329
331
|
constructor(t = { begin: null, end: null }) {
|
|
330
332
|
w(this, "editorType", "number-range");
|
|
331
333
|
w(this, "begin");
|
|
@@ -349,7 +351,7 @@ class Gt {
|
|
|
349
351
|
return this.begin == null && this.end == null;
|
|
350
352
|
}
|
|
351
353
|
}
|
|
352
|
-
class
|
|
354
|
+
class Wt {
|
|
353
355
|
constructor(t = { value: "" }) {
|
|
354
356
|
w(this, "editorType", "number-spinner");
|
|
355
357
|
w(this, "value");
|
|
@@ -369,7 +371,7 @@ class qt {
|
|
|
369
371
|
return this.value == null;
|
|
370
372
|
}
|
|
371
373
|
}
|
|
372
|
-
class
|
|
374
|
+
class zt {
|
|
373
375
|
constructor(t = { value: null }) {
|
|
374
376
|
w(this, "editorType", "radio-group");
|
|
375
377
|
w(this, "value");
|
|
@@ -413,33 +415,33 @@ function se() {
|
|
|
413
415
|
function e(t, n) {
|
|
414
416
|
switch (t) {
|
|
415
417
|
case "check-box":
|
|
416
|
-
return new
|
|
418
|
+
return new Ot(n);
|
|
417
419
|
case "combo-list":
|
|
418
|
-
return new
|
|
420
|
+
return new Nt(n);
|
|
419
421
|
case "combo-lookup":
|
|
420
|
-
return new
|
|
422
|
+
return new jt(n);
|
|
421
423
|
case "input-group":
|
|
422
|
-
return new
|
|
424
|
+
return new $t(n);
|
|
423
425
|
case "date-picker":
|
|
424
|
-
return new
|
|
426
|
+
return new Lt(n);
|
|
425
427
|
case "date-range":
|
|
426
428
|
return new oe(n);
|
|
427
429
|
case "datetime-picker":
|
|
428
|
-
return new
|
|
430
|
+
return new At(n);
|
|
429
431
|
case "datetime-range":
|
|
430
432
|
return new oe(n);
|
|
431
433
|
case "lookup":
|
|
432
|
-
return new
|
|
434
|
+
return new Gt(n);
|
|
433
435
|
case "month-picker":
|
|
434
|
-
return new $t(n);
|
|
435
|
-
case "month-range":
|
|
436
436
|
return new Rt(n);
|
|
437
|
+
case "month-range":
|
|
438
|
+
return new qt(n);
|
|
437
439
|
case "number-range":
|
|
438
|
-
return new
|
|
440
|
+
return new Dt(n);
|
|
439
441
|
case "number-spinner":
|
|
440
|
-
return new
|
|
442
|
+
return new Wt(n);
|
|
441
443
|
case "radio-group":
|
|
442
|
-
return new
|
|
444
|
+
return new zt(n);
|
|
443
445
|
default:
|
|
444
446
|
return new le(n);
|
|
445
447
|
}
|
|
@@ -462,7 +464,7 @@ function ue(e, t) {
|
|
|
462
464
|
}
|
|
463
465
|
return l.editor;
|
|
464
466
|
}
|
|
465
|
-
function
|
|
467
|
+
function b(l) {
|
|
466
468
|
return l.map((c) => Object.assign({}, c)).map((c) => (c.editor = d(c), c));
|
|
467
469
|
}
|
|
468
470
|
function k(l = !0) {
|
|
@@ -476,11 +478,11 @@ function ue(e, t) {
|
|
|
476
478
|
}
|
|
477
479
|
}), l;
|
|
478
480
|
}
|
|
479
|
-
return { convertToSingleControl:
|
|
481
|
+
return { convertToSingleControl: b, fields: n, fieldMap: r, fieldConditions: o, loadFieldConfigs: k, initialConditionValue: s };
|
|
480
482
|
}
|
|
481
|
-
function
|
|
483
|
+
function Ut(e, t, n) {
|
|
482
484
|
const o = I(null), r = I(n), p = I(0), d = P(() => s(p.value));
|
|
483
|
-
function
|
|
485
|
+
function b() {
|
|
484
486
|
r.value && (o.value = new ResizeObserver(k((l) => {
|
|
485
487
|
const u = l[0];
|
|
486
488
|
p.value = u.contentRect.width;
|
|
@@ -500,7 +502,7 @@ function Wt(e, t, n) {
|
|
|
500
502
|
return l > 250 * 6 ? c = "col-2" : l > 250 * 4 ? c = "col-3" : l > 250 * 3 ? c = "col-4" : l > 250 * 2 && (c = "col-6"), c;
|
|
501
503
|
}
|
|
502
504
|
return W([n], ([l]) => {
|
|
503
|
-
r.value = l,
|
|
505
|
+
r.value = l, b();
|
|
504
506
|
}), {
|
|
505
507
|
conditionClass: d,
|
|
506
508
|
resizeObserver: o
|
|
@@ -512,14 +514,14 @@ const re = /* @__PURE__ */ Z({
|
|
|
512
514
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
513
515
|
setup(e, t) {
|
|
514
516
|
const n = I(), o = I(e.key), r = I(e.isControlInline), p = I(e.conditions), d = ue(e), {
|
|
515
|
-
initialConditionValue:
|
|
517
|
+
initialConditionValue: b,
|
|
516
518
|
fieldMap: k,
|
|
517
519
|
loadFieldConfigs: s
|
|
518
|
-
} = d, l =
|
|
520
|
+
} = d, l = Ut(e, t, n), {
|
|
519
521
|
conditionClass: u,
|
|
520
522
|
resizeObserver: c
|
|
521
523
|
} = l;
|
|
522
|
-
s(!0),
|
|
524
|
+
s(!0), b(p.value), be(() => {
|
|
523
525
|
var T;
|
|
524
526
|
(T = c.value) == null || T.unobserve(n.value);
|
|
525
527
|
}), W(() => e.conditions, () => {
|
|
@@ -537,7 +539,7 @@ const re = /* @__PURE__ */ Z({
|
|
|
537
539
|
function q() {
|
|
538
540
|
return p.value.map((T) => {
|
|
539
541
|
var x;
|
|
540
|
-
return
|
|
542
|
+
return F(ke, {
|
|
541
543
|
customClass: E.value,
|
|
542
544
|
label: T.fieldName,
|
|
543
545
|
editor: (x = k.get(T.fieldCode)) == null ? void 0 : x.editor,
|
|
@@ -549,22 +551,22 @@ const re = /* @__PURE__ */ Z({
|
|
|
549
551
|
}, null);
|
|
550
552
|
});
|
|
551
553
|
}
|
|
552
|
-
return () =>
|
|
554
|
+
return () => F("div", {
|
|
553
555
|
class: V.value,
|
|
554
556
|
key: o.value,
|
|
555
557
|
ref: n
|
|
556
558
|
}, [q()]);
|
|
557
559
|
}
|
|
558
|
-
}),
|
|
560
|
+
}), Ht = {}, Qt = {};
|
|
559
561
|
function ce(e) {
|
|
560
562
|
const { properties: t, title: n } = e, o = Object.keys(t).reduce((r, p) => (r[p] = t[p].type === "object" && t[p].properties ? ce(t[p]) : Q(t[p].default), r), {});
|
|
561
563
|
return o.id = `${n}-${Date.now()}`, o;
|
|
562
564
|
}
|
|
563
|
-
function
|
|
565
|
+
function Zt(e, t) {
|
|
564
566
|
const n = ce(t);
|
|
565
567
|
return Object.keys(e).reduce((o, r) => (o[r] = e[r], o), n), n;
|
|
566
568
|
}
|
|
567
|
-
function
|
|
569
|
+
function _t(e, t) {
|
|
568
570
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
|
|
569
571
|
if (t.has(r)) {
|
|
570
572
|
const p = t.get(r);
|
|
@@ -579,11 +581,11 @@ function Qt(e, t) {
|
|
|
579
581
|
return o;
|
|
580
582
|
}, {});
|
|
581
583
|
}
|
|
582
|
-
function
|
|
583
|
-
const o =
|
|
584
|
-
return
|
|
584
|
+
function Jt(e, t, n = /* @__PURE__ */ new Map()) {
|
|
585
|
+
const o = Zt(e, t);
|
|
586
|
+
return _t(o, n);
|
|
585
587
|
}
|
|
586
|
-
function
|
|
588
|
+
function Xt(e = {}) {
|
|
587
589
|
function t(s, l, u, c) {
|
|
588
590
|
if (typeof u == "number")
|
|
589
591
|
return c[s].length === u;
|
|
@@ -628,21 +630,21 @@ function _t(e = {}) {
|
|
|
628
630
|
}
|
|
629
631
|
return !1;
|
|
630
632
|
}
|
|
631
|
-
function
|
|
633
|
+
function b(s, l) {
|
|
632
634
|
return p(s).reduce((V, E) => V && d(E, l), !0);
|
|
633
635
|
}
|
|
634
636
|
function k(s, l) {
|
|
635
|
-
const u = Object.keys(s), c = u.includes("allOf"), V = u.includes("anyOf"), E = c || V, T = (E ? s[E ? c ? "allOf" : "anyOf" : "allOf"] : [s]).map((M) =>
|
|
637
|
+
const u = Object.keys(s), c = u.includes("allOf"), V = u.includes("anyOf"), E = c || V, T = (E ? s[E ? c ? "allOf" : "anyOf" : "allOf"] : [s]).map((M) => b(M, l));
|
|
636
638
|
return c ? !T.includes(!1) : T.includes(!0);
|
|
637
639
|
}
|
|
638
640
|
return { parseValueSchema: k };
|
|
639
641
|
}
|
|
640
|
-
const
|
|
641
|
-
|
|
642
|
-
function X(e, t, n = /* @__PURE__ */ new Map(), o = (d,
|
|
643
|
-
return
|
|
644
|
-
const
|
|
645
|
-
return Object.assign(k,
|
|
642
|
+
const Yt = {}, Kt = {};
|
|
643
|
+
Xt();
|
|
644
|
+
function X(e, t, n = /* @__PURE__ */ new Map(), o = (d, b, k) => b, r = {}, p = (d) => d) {
|
|
645
|
+
return Ht[t.title] = t, Qt[t.title] = o, Yt[t.title] = r, Kt[t.title] = p, (d = {}) => {
|
|
646
|
+
const b = Jt(d, t, n), k = Object.keys(e).reduce((s, l) => (s[l] = e[l].default, s), {});
|
|
647
|
+
return Object.assign(k, b);
|
|
646
648
|
};
|
|
647
649
|
}
|
|
648
650
|
function de(e, t) {
|
|
@@ -651,22 +653,22 @@ function de(e, t) {
|
|
|
651
653
|
const ee = /* @__PURE__ */ new Map([
|
|
652
654
|
["appearance", de]
|
|
653
655
|
]);
|
|
654
|
-
function
|
|
656
|
+
function en(e, t, n, o) {
|
|
655
657
|
const r = e.getSchemaByType("section");
|
|
656
658
|
return r.id = `${o}-section`, r.appearance = { class: "f-section-form f-section-in-main" }, r.mainTitle = "标题", r.contents = [t], r;
|
|
657
659
|
}
|
|
658
|
-
function
|
|
660
|
+
function tn(e, t, n, o) {
|
|
659
661
|
const r = e.getSchemaByType("component");
|
|
660
662
|
return r.id = `${o}-component`, r.componentType = "form-col-1", r.appearance = {
|
|
661
663
|
class: "f-struct-form f-struct-wrapper"
|
|
662
664
|
}, r.contents = [t], r;
|
|
663
665
|
}
|
|
664
|
-
function
|
|
666
|
+
function nn(e, t, n) {
|
|
665
667
|
t.appearance = { class: "f-form-layout farris-form farris-form-controls-inline" };
|
|
666
|
-
const o =
|
|
667
|
-
return
|
|
668
|
+
const o = en(e, t, n, t.id);
|
|
669
|
+
return tn(e, o, n, t.id);
|
|
668
670
|
}
|
|
669
|
-
const
|
|
671
|
+
const on = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-design.gitee.io/response-form.schema.json", an = "response-form", ln = "A Farris Data Collection Component", sn = "object", un = {
|
|
670
672
|
id: {
|
|
671
673
|
description: "The unique identifier for a form group",
|
|
672
674
|
type: "string"
|
|
@@ -694,18 +696,18 @@ const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-
|
|
|
694
696
|
type: "array",
|
|
695
697
|
default: []
|
|
696
698
|
}
|
|
697
|
-
},
|
|
699
|
+
}, cn = [
|
|
698
700
|
"id",
|
|
699
701
|
"type"
|
|
700
|
-
],
|
|
701
|
-
$schema:
|
|
702
|
-
$id:
|
|
703
|
-
title:
|
|
704
|
-
description:
|
|
705
|
-
type:
|
|
706
|
-
properties:
|
|
707
|
-
required:
|
|
708
|
-
},
|
|
702
|
+
], dn = {
|
|
703
|
+
$schema: on,
|
|
704
|
+
$id: rn,
|
|
705
|
+
title: an,
|
|
706
|
+
description: ln,
|
|
707
|
+
type: sn,
|
|
708
|
+
properties: un,
|
|
709
|
+
required: cn
|
|
710
|
+
}, pn = "response-form", fn = "A Farris Component", mn = "object", gn = {
|
|
709
711
|
basic: {
|
|
710
712
|
description: "Basic Infomation",
|
|
711
713
|
title: "基本信息",
|
|
@@ -727,16 +729,16 @@ const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-
|
|
|
727
729
|
}
|
|
728
730
|
}
|
|
729
731
|
}
|
|
730
|
-
},
|
|
731
|
-
title:
|
|
732
|
-
description:
|
|
733
|
-
type:
|
|
734
|
-
categories:
|
|
735
|
-
},
|
|
732
|
+
}, hn = {
|
|
733
|
+
title: pn,
|
|
734
|
+
description: fn,
|
|
735
|
+
type: mn,
|
|
736
|
+
categories: gn
|
|
737
|
+
}, vn = {
|
|
736
738
|
customClass: { type: String, default: "" }
|
|
737
739
|
};
|
|
738
|
-
X(
|
|
739
|
-
const
|
|
740
|
+
X(vn, dn, ee, nn, hn);
|
|
741
|
+
const yn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-design.gitee.io/form-group.schema.json", Cn = "form-group", Fn = "A Farris Input Component", wn = "object", Tn = {
|
|
740
742
|
id: {
|
|
741
743
|
description: "The unique identifier for a form group",
|
|
742
744
|
type: "string"
|
|
@@ -777,17 +779,17 @@ const hn = "https://json-schema.org/draft/2020-12/schema", vn = "https://farris-
|
|
|
777
779
|
description: "",
|
|
778
780
|
type: "number"
|
|
779
781
|
}
|
|
780
|
-
},
|
|
782
|
+
}, xn = [
|
|
781
783
|
"id",
|
|
782
784
|
"type"
|
|
783
785
|
], pe = {
|
|
784
|
-
$schema:
|
|
785
|
-
$id:
|
|
786
|
-
title:
|
|
787
|
-
description:
|
|
788
|
-
type:
|
|
789
|
-
properties:
|
|
790
|
-
required:
|
|
786
|
+
$schema: yn,
|
|
787
|
+
$id: bn,
|
|
788
|
+
title: Cn,
|
|
789
|
+
description: Fn,
|
|
790
|
+
type: wn,
|
|
791
|
+
properties: Tn,
|
|
792
|
+
required: xn
|
|
791
793
|
}, fe = {
|
|
792
794
|
id: { type: String, default: "" },
|
|
793
795
|
customClass: { type: String, default: "" },
|
|
@@ -808,14 +810,14 @@ X(
|
|
|
808
810
|
ee,
|
|
809
811
|
void 0
|
|
810
812
|
);
|
|
811
|
-
const
|
|
813
|
+
const kn = {
|
|
812
814
|
id: { type: String },
|
|
813
815
|
required: { type: Boolean, default: !1 },
|
|
814
816
|
text: { type: String, default: "" },
|
|
815
817
|
title: { type: String }
|
|
816
|
-
},
|
|
818
|
+
}, Bn = /* @__PURE__ */ Z({
|
|
817
819
|
name: "FDynamicFormLabel",
|
|
818
|
-
props:
|
|
820
|
+
props: kn,
|
|
819
821
|
emits: [],
|
|
820
822
|
setup(e, t) {
|
|
821
823
|
const n = I(e.title || e.text), o = I(e.required), r = I(e.text);
|
|
@@ -823,22 +825,22 @@ const Tn = {
|
|
|
823
825
|
r.value = e.text;
|
|
824
826
|
}), W(() => e.required, (p, d) => {
|
|
825
827
|
p !== d && (o.value = p);
|
|
826
|
-
}), () =>
|
|
828
|
+
}), () => F("label", {
|
|
827
829
|
class: "col-form-label",
|
|
828
830
|
title: n.value
|
|
829
|
-
}, [o.value &&
|
|
831
|
+
}, [o.value && F("span", {
|
|
830
832
|
class: "farris-label-info text-danger"
|
|
831
|
-
}, [_("*")]),
|
|
833
|
+
}, [_("*")]), F("span", {
|
|
832
834
|
class: "farris-label-text"
|
|
833
835
|
}, [r.value])]);
|
|
834
836
|
}
|
|
835
|
-
}),
|
|
837
|
+
}), In = /* @__PURE__ */ new Map([
|
|
836
838
|
["appearance", de]
|
|
837
839
|
]);
|
|
838
|
-
function
|
|
840
|
+
function Sn(e, t, n) {
|
|
839
841
|
return t;
|
|
840
842
|
}
|
|
841
|
-
const
|
|
843
|
+
const Vn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-design.gitee.io/input-group.schema.json", Mn = "input-group", Pn = "A Farris Input Component", On = "object", jn = {
|
|
842
844
|
id: {
|
|
843
845
|
description: "The unique identifier for a Input Group",
|
|
844
846
|
type: "string"
|
|
@@ -1040,17 +1042,17 @@ const In = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
1040
1042
|
type: "string",
|
|
1041
1043
|
default: ""
|
|
1042
1044
|
}
|
|
1043
|
-
},
|
|
1045
|
+
}, Ln = [
|
|
1044
1046
|
"id",
|
|
1045
1047
|
"type"
|
|
1046
|
-
],
|
|
1047
|
-
$schema:
|
|
1048
|
-
$id:
|
|
1049
|
-
title:
|
|
1050
|
-
description:
|
|
1051
|
-
type:
|
|
1052
|
-
properties:
|
|
1053
|
-
required:
|
|
1048
|
+
], An = {
|
|
1049
|
+
$schema: Vn,
|
|
1050
|
+
$id: En,
|
|
1051
|
+
title: Mn,
|
|
1052
|
+
description: Pn,
|
|
1053
|
+
type: On,
|
|
1054
|
+
properties: jn,
|
|
1055
|
+
required: Ln
|
|
1054
1056
|
}, me = {
|
|
1055
1057
|
/** 是否自动完成 */
|
|
1056
1058
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -1118,9 +1120,9 @@ const In = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
1118
1120
|
*/
|
|
1119
1121
|
updateOn: { type: String, default: "blur" }
|
|
1120
1122
|
};
|
|
1121
|
-
X(me,
|
|
1122
|
-
function
|
|
1123
|
-
const r = I(e.disabled), p = I(!1), d = I("text"),
|
|
1123
|
+
X(me, An, In, Sn);
|
|
1124
|
+
function Nn(e, t, n, o) {
|
|
1125
|
+
const r = I(e.disabled), p = I(!1), d = I("text"), b = I(e.showBorder), k = I(e.textAlign), s = I(e.updateOn), l = P(() => e.editable || !e.readonly), u = P(() => e.editable && !e.disabled && !e.readonly), c = P(() => !e.disabled && p.value), V = P(() => n.value === "" || n.value === null || n.value === void 0), E = P(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), O = P(() => e.readonly || !e.editable), q = P(() => e.enableTitle ? n.value : ""), T = P(() => ({
|
|
1124
1126
|
"form-control": !0,
|
|
1125
1127
|
"f-utils-fill": !0,
|
|
1126
1128
|
"text-left": k.value === "left",
|
|
@@ -1136,31 +1138,31 @@ function Ln(e, t, n, o) {
|
|
|
1136
1138
|
"f-state-focus": c.value
|
|
1137
1139
|
};
|
|
1138
1140
|
return (e.customClass || "").split(" ").reduce((S, D) => (S[D] = !0, S), a), a;
|
|
1139
|
-
}), M = P(() =>
|
|
1140
|
-
function j(a,
|
|
1141
|
-
n.value = a, o.value !== a && (o.value = a),
|
|
1141
|
+
}), M = P(() => b.value ? "" : "border-width : 0 ");
|
|
1142
|
+
function j(a, C = !0) {
|
|
1143
|
+
n.value = a, o.value !== a && (o.value = a), C && t.emit("change", a), t.emit("update:modelValue", a), t.emit("update:value", a);
|
|
1142
1144
|
}
|
|
1143
1145
|
W(
|
|
1144
1146
|
() => e.modelValue,
|
|
1145
|
-
(a,
|
|
1146
|
-
a !==
|
|
1147
|
+
(a, C) => {
|
|
1148
|
+
a !== C && (n.value = a, o.value = a);
|
|
1147
1149
|
}
|
|
1148
|
-
), W(() => e.disabled, (a,
|
|
1149
|
-
a !==
|
|
1150
|
+
), W(() => e.disabled, (a, C) => {
|
|
1151
|
+
a !== C && (r.value = a);
|
|
1150
1152
|
});
|
|
1151
1153
|
function $(a) {
|
|
1152
1154
|
return p.value = !1, t.emit("blur", a), a.stopPropagation(), !1;
|
|
1153
1155
|
}
|
|
1154
|
-
function
|
|
1156
|
+
function G(a) {
|
|
1155
1157
|
t.emit("click", a);
|
|
1156
1158
|
}
|
|
1157
1159
|
function A(a) {
|
|
1158
|
-
e.disabled || (
|
|
1160
|
+
e.disabled || (b.value && (p.value = !0), l.value && t.emit("focus", a));
|
|
1159
1161
|
}
|
|
1160
1162
|
function z(a) {
|
|
1161
1163
|
t.emit("input", a.target.value);
|
|
1162
|
-
const
|
|
1163
|
-
o.value =
|
|
1164
|
+
const C = a.target.value;
|
|
1165
|
+
o.value = C, s.value === "input" && (t.emit("update:modelValue", C), t.emit("update:value", C));
|
|
1164
1166
|
}
|
|
1165
1167
|
function i(a) {
|
|
1166
1168
|
t.emit("keydown", a);
|
|
@@ -1173,8 +1175,8 @@ function Ln(e, t, n, o) {
|
|
|
1173
1175
|
}
|
|
1174
1176
|
function B(a) {
|
|
1175
1177
|
if (s.value === "blur") {
|
|
1176
|
-
const
|
|
1177
|
-
a.stopPropagation(), j(
|
|
1178
|
+
const C = a.target.value;
|
|
1179
|
+
a.stopPropagation(), j(C);
|
|
1178
1180
|
}
|
|
1179
1181
|
}
|
|
1180
1182
|
return {
|
|
@@ -1189,7 +1191,7 @@ function Ln(e, t, n, o) {
|
|
|
1189
1191
|
modelValue: n,
|
|
1190
1192
|
readonly: O,
|
|
1191
1193
|
onBlur: $,
|
|
1192
|
-
onClick:
|
|
1194
|
+
onClick: G,
|
|
1193
1195
|
onFocus: A,
|
|
1194
1196
|
onInput: z,
|
|
1195
1197
|
onKeydown: i,
|
|
@@ -1202,13 +1204,13 @@ function Ln(e, t, n, o) {
|
|
|
1202
1204
|
inputGroupStyle: M
|
|
1203
1205
|
};
|
|
1204
1206
|
}
|
|
1205
|
-
function
|
|
1206
|
-
const o = I(!1), r = P(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: p, displayText: d, hasFocused:
|
|
1207
|
+
function $n(e, t, n) {
|
|
1208
|
+
const o = I(!1), r = P(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: p, displayText: d, hasFocused: b, isEmpty: k } = n;
|
|
1207
1209
|
function s(O) {
|
|
1208
1210
|
o.value = O;
|
|
1209
1211
|
}
|
|
1210
1212
|
W(d, () => {
|
|
1211
|
-
|
|
1213
|
+
b != null && b.value ? s(!!(d != null && d.value)) : s(!1);
|
|
1212
1214
|
});
|
|
1213
1215
|
const l = P(() => ({
|
|
1214
1216
|
"input-group-text": !0,
|
|
@@ -1228,8 +1230,8 @@ function An(e, t, n) {
|
|
|
1228
1230
|
}
|
|
1229
1231
|
return { clearButtonClass: l, clearButtonStyle: u, hasShownClearButton: o, onClearValue: c, onMouseEnter: V, onMouseLeave: E, shouldShowClearButton: r };
|
|
1230
1232
|
}
|
|
1231
|
-
const
|
|
1232
|
-
function
|
|
1233
|
+
const Gn = ["moz", "ms", "webkit"];
|
|
1234
|
+
function Rn() {
|
|
1233
1235
|
let e = 0;
|
|
1234
1236
|
return (t) => {
|
|
1235
1237
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), r = setTimeout(() => {
|
|
@@ -1238,41 +1240,41 @@ function $n() {
|
|
|
1238
1240
|
return e = n + o, r;
|
|
1239
1241
|
};
|
|
1240
1242
|
}
|
|
1241
|
-
function
|
|
1243
|
+
function qn() {
|
|
1242
1244
|
if (typeof window > "u")
|
|
1243
1245
|
return () => 0;
|
|
1244
1246
|
if (window.requestAnimationFrame)
|
|
1245
1247
|
return window.requestAnimationFrame.bind(window);
|
|
1246
|
-
const e =
|
|
1247
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
1248
|
+
const e = Gn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
1249
|
+
return e ? window[`${e}RequestAnimationFrame`] : Rn();
|
|
1248
1250
|
}
|
|
1249
|
-
|
|
1250
|
-
function
|
|
1251
|
+
qn();
|
|
1252
|
+
function Dn(e, t) {
|
|
1251
1253
|
const n = I(e.groupText), o = P(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = P(() => e.enableClear || !!e.groupText);
|
|
1252
1254
|
return { appendedButtonClass: P(() => ({
|
|
1253
1255
|
"input-group-append": !0,
|
|
1254
1256
|
"append-force-show": o.value
|
|
1255
1257
|
})), appendedContent: n, shouldShowAppendedButton: r };
|
|
1256
1258
|
}
|
|
1257
|
-
function
|
|
1258
|
-
const { appendedContent: r } = o, p = I(e.enableViewPassword), d = P(() => e.type === "password"),
|
|
1259
|
+
function Wn(e, t, n, o) {
|
|
1260
|
+
const { appendedContent: r } = o, p = I(e.enableViewPassword), d = P(() => e.type === "password"), b = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', k = '<span class="f-icon f-icon-eye"></span>', s = I(!1);
|
|
1259
1261
|
W(() => [e.readonly, e.disabled], ([c, V]) => {
|
|
1260
1262
|
d.value && (n.value = c || V ? "password" : n.value, r.value = c || V ? k : r.value);
|
|
1261
1263
|
});
|
|
1262
1264
|
function l() {
|
|
1263
|
-
return s.value = !s.value, n.value = s.value ? "text" : "password", r.value = s.value ?
|
|
1265
|
+
return s.value = !s.value, n.value = s.value ? "text" : "password", r.value = s.value ? b : k, !1;
|
|
1264
1266
|
}
|
|
1265
1267
|
function u() {
|
|
1266
1268
|
n.value = d.value ? "password" : "text", r.value = d.value ? p.value ? k : "" : r.value;
|
|
1267
1269
|
}
|
|
1268
1270
|
return u(), { isPassword: d, onClickAppendedButton: l };
|
|
1269
1271
|
}
|
|
1270
|
-
function
|
|
1272
|
+
function zn(e, t, n) {
|
|
1271
1273
|
const o = I(), {
|
|
1272
1274
|
onBlurTextBox: r,
|
|
1273
1275
|
onFocusTextBox: p,
|
|
1274
1276
|
onInput: d,
|
|
1275
|
-
onKeyDown:
|
|
1277
|
+
onKeyDown: b,
|
|
1276
1278
|
textBoxValue: k
|
|
1277
1279
|
} = n, s = P(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), l = P(() => ({
|
|
1278
1280
|
"form-control": !0,
|
|
@@ -1291,7 +1293,7 @@ function Dn(e, t, n) {
|
|
|
1291
1293
|
}
|
|
1292
1294
|
return J(async () => {
|
|
1293
1295
|
await te, V();
|
|
1294
|
-
}), () =>
|
|
1296
|
+
}), () => F("input", {
|
|
1295
1297
|
ref: o,
|
|
1296
1298
|
class: l.value,
|
|
1297
1299
|
style: u.value,
|
|
@@ -1304,16 +1306,16 @@ function Dn(e, t, n) {
|
|
|
1304
1306
|
onChange: c,
|
|
1305
1307
|
onFocus: E,
|
|
1306
1308
|
onInput: d,
|
|
1307
|
-
onKeydown:
|
|
1309
|
+
onKeydown: b
|
|
1308
1310
|
}, null);
|
|
1309
1311
|
}
|
|
1310
|
-
function
|
|
1312
|
+
function Un(e, t, n) {
|
|
1311
1313
|
const {
|
|
1312
1314
|
canDownward: o,
|
|
1313
1315
|
canUpward: r,
|
|
1314
1316
|
onClickDownButton: p,
|
|
1315
1317
|
onClickUpButton: d
|
|
1316
|
-
} = n,
|
|
1318
|
+
} = n, b = P(() => ({
|
|
1317
1319
|
"input-group-append": !0,
|
|
1318
1320
|
"btn-group": !0,
|
|
1319
1321
|
"btn-group-number": !0
|
|
@@ -1328,53 +1330,53 @@ function Wn(e, t, n) {
|
|
|
1328
1330
|
cursor: o() ? "pointer" : "not-allowed",
|
|
1329
1331
|
"margin-left": 0
|
|
1330
1332
|
}));
|
|
1331
|
-
return () =>
|
|
1332
|
-
class:
|
|
1333
|
-
}, [
|
|
1333
|
+
return () => F("div", {
|
|
1334
|
+
class: b.value
|
|
1335
|
+
}, [F("button", {
|
|
1334
1336
|
title: "upButton",
|
|
1335
1337
|
class: k.value,
|
|
1336
1338
|
style: s.value,
|
|
1337
1339
|
onClick: d,
|
|
1338
1340
|
disabled: !r()
|
|
1339
|
-
}, [
|
|
1341
|
+
}, [F("span", {
|
|
1340
1342
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
1341
|
-
}, null)]),
|
|
1343
|
+
}, null)]), F("button", {
|
|
1342
1344
|
title: "downButton",
|
|
1343
1345
|
class: k.value,
|
|
1344
1346
|
style: l.value,
|
|
1345
1347
|
onClick: p,
|
|
1346
1348
|
disabled: !o()
|
|
1347
|
-
}, [
|
|
1349
|
+
}, [F("span", {
|
|
1348
1350
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1349
1351
|
}, null)])]);
|
|
1350
1352
|
}
|
|
1351
|
-
function
|
|
1352
|
-
const n = Ie(e, t), o = Se(e, t, n), r = Ve(e, t, o, n), p = Ee(e, t, o, n, r), d =
|
|
1353
|
-
displayValue:
|
|
1353
|
+
function Hn(e, t) {
|
|
1354
|
+
const n = Ie(e, t), o = Se(e, t, n), r = Ve(e, t, o, n), p = Ee(e, t, o, n, r), d = Un(e, t, r), {
|
|
1355
|
+
displayValue: b,
|
|
1354
1356
|
modelValue: k,
|
|
1355
1357
|
getRealValue: s
|
|
1356
|
-
} = n, l =
|
|
1358
|
+
} = n, l = zn(e, t, p), {
|
|
1357
1359
|
format: u
|
|
1358
1360
|
} = o, {
|
|
1359
1361
|
isFocus: c
|
|
1360
1362
|
} = p, V = P(() => !e.disabled && !e.readonly);
|
|
1361
1363
|
return J(() => {
|
|
1362
1364
|
const E = s(e.modelValue);
|
|
1363
|
-
|
|
1365
|
+
b.value = u(E);
|
|
1364
1366
|
}), W(() => [e.value], ([E]) => {
|
|
1365
1367
|
const O = s(E);
|
|
1366
|
-
k.value = O,
|
|
1368
|
+
k.value = O, b.value = u(O);
|
|
1367
1369
|
}), W(() => [e.modelValue], ([E]) => {
|
|
1368
|
-
E !== k.value && (k.value = E, !c.value && (
|
|
1370
|
+
E !== k.value && (k.value = E, !c.value && (b.value = u(s(E))));
|
|
1369
1371
|
}), W(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1370
|
-
|
|
1371
|
-
}), () =>
|
|
1372
|
+
b.value = u(k.value);
|
|
1373
|
+
}), () => F("div", {
|
|
1372
1374
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1373
1375
|
}, [l(), V.value && d()]);
|
|
1374
1376
|
}
|
|
1375
|
-
function
|
|
1377
|
+
function Qn(e, t, n, o) {
|
|
1376
1378
|
const r = I(), p = I(e.autocomplete), d = I(e.enableTitle), {
|
|
1377
|
-
isPassword:
|
|
1379
|
+
isPassword: b
|
|
1378
1380
|
} = n, k = I(e.minLength), s = I(e.maxLength), l = I(e.tabIndex), {
|
|
1379
1381
|
disabled: u,
|
|
1380
1382
|
displayText: c,
|
|
@@ -1387,14 +1389,14 @@ function Un(e, t, n, o) {
|
|
|
1387
1389
|
onKeyup: M,
|
|
1388
1390
|
onMousedown: j,
|
|
1389
1391
|
onTextBoxValueChange: $,
|
|
1390
|
-
readonly:
|
|
1392
|
+
readonly: G,
|
|
1391
1393
|
placeholder: A,
|
|
1392
1394
|
textBoxClass: z,
|
|
1393
1395
|
textBoxTitle: i
|
|
1394
1396
|
} = o;
|
|
1395
1397
|
return J(() => {
|
|
1396
1398
|
e.selectOnCreated, e.focusOnCreated;
|
|
1397
|
-
}), () =>
|
|
1399
|
+
}), () => F("input", {
|
|
1398
1400
|
ref: r,
|
|
1399
1401
|
name: "input-group-value",
|
|
1400
1402
|
autocomplete: p.value,
|
|
@@ -1403,9 +1405,9 @@ function Un(e, t, n, o) {
|
|
|
1403
1405
|
maxlength: s.value,
|
|
1404
1406
|
minlength: k.value,
|
|
1405
1407
|
placeholder: A.value,
|
|
1406
|
-
readonly:
|
|
1408
|
+
readonly: G == null ? void 0 : G.value,
|
|
1407
1409
|
tabindex: l.value,
|
|
1408
|
-
title: d.value && !
|
|
1410
|
+
title: d.value && !b.value ? i.value : "",
|
|
1409
1411
|
type: V.value,
|
|
1410
1412
|
value: c == null ? void 0 : c.value,
|
|
1411
1413
|
onBlur: E,
|
|
@@ -1418,39 +1420,39 @@ function Un(e, t, n, o) {
|
|
|
1418
1420
|
onMousedown: j
|
|
1419
1421
|
}, null);
|
|
1420
1422
|
}
|
|
1421
|
-
function
|
|
1423
|
+
function Zn(e, t) {
|
|
1422
1424
|
const n = P(() => e.useExtendInfo && !!e.extendInfo), o = Ce({
|
|
1423
1425
|
content: e.extendInfo
|
|
1424
1426
|
});
|
|
1425
1427
|
function r() {
|
|
1426
1428
|
t.emit("updateExtendInfo");
|
|
1427
1429
|
}
|
|
1428
|
-
return () => n.value && Fe(
|
|
1430
|
+
return () => n.value && Fe(F("span", {
|
|
1429
1431
|
class: "input-group-before-tips",
|
|
1430
1432
|
onMouseenter: r
|
|
1431
|
-
}, [
|
|
1433
|
+
}, [F("i", {
|
|
1432
1434
|
class: "f-icon f-icon-info-circle"
|
|
1433
|
-
}, null),
|
|
1435
|
+
}, null), F("b", {
|
|
1434
1436
|
class: "tips-arrow"
|
|
1435
1437
|
}, null)]), [[we("tooltip"), o]]);
|
|
1436
1438
|
}
|
|
1437
|
-
function
|
|
1439
|
+
function _n(e, t, n, o, r) {
|
|
1438
1440
|
const {
|
|
1439
1441
|
appendedButtonClass: p,
|
|
1440
1442
|
appendedContent: d
|
|
1441
|
-
} = n,
|
|
1443
|
+
} = n, b = P(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), k = P(() => d.value && !t.slots.groupTextTemplate), s = P(() => !!t.slots.groupTextTemplate), {
|
|
1442
1444
|
clearButtonClass: l,
|
|
1443
1445
|
clearButtonStyle: u,
|
|
1444
1446
|
onClearValue: c,
|
|
1445
1447
|
shouldShowClearButton: V
|
|
1446
1448
|
} = o;
|
|
1447
1449
|
function E() {
|
|
1448
|
-
return
|
|
1450
|
+
return F("span", {
|
|
1449
1451
|
id: "clearIcon",
|
|
1450
1452
|
class: l.value,
|
|
1451
1453
|
style: u.value,
|
|
1452
1454
|
onClick: (A) => c(A)
|
|
1453
|
-
}, [
|
|
1455
|
+
}, [F("i", {
|
|
1454
1456
|
class: "f-icon modal_close"
|
|
1455
1457
|
}, null)]);
|
|
1456
1458
|
}
|
|
@@ -1461,13 +1463,13 @@ function Qn(e, t, n, o, r) {
|
|
|
1461
1463
|
t.emit("iconMouseLeave", A);
|
|
1462
1464
|
}
|
|
1463
1465
|
function T(A) {
|
|
1464
|
-
|
|
1466
|
+
b.value && t.emit("clickHandle", {
|
|
1465
1467
|
originalEvent: A
|
|
1466
1468
|
}), A.stopPropagation();
|
|
1467
1469
|
}
|
|
1468
1470
|
const x = e.type === "password" ? r.onClickAppendedButton : T;
|
|
1469
1471
|
function M() {
|
|
1470
|
-
return
|
|
1472
|
+
return F("span", {
|
|
1471
1473
|
class: "input-group-text",
|
|
1472
1474
|
onMouseenter: (A) => O(A),
|
|
1473
1475
|
onMouseleave: (A) => q(A),
|
|
@@ -1481,26 +1483,26 @@ function Qn(e, t, n, o, r) {
|
|
|
1481
1483
|
function $() {
|
|
1482
1484
|
return k.value ? M : s.value ? j : "";
|
|
1483
1485
|
}
|
|
1484
|
-
const
|
|
1485
|
-
return () =>
|
|
1486
|
+
const G = $();
|
|
1487
|
+
return () => F("div", {
|
|
1486
1488
|
class: p.value
|
|
1487
|
-
}, [V.value && E(),
|
|
1489
|
+
}, [V.value && E(), G && G()]);
|
|
1488
1490
|
}
|
|
1489
|
-
const
|
|
1491
|
+
const Jn = /* @__PURE__ */ Z({
|
|
1490
1492
|
name: "FInputGroup",
|
|
1491
1493
|
props: me,
|
|
1492
1494
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
1493
1495
|
setup(e, t) {
|
|
1494
|
-
const n = I(e.modelValue), o = I(e.modelValue), r =
|
|
1496
|
+
const n = I(e.modelValue), o = I(e.modelValue), r = Nn(e, t, n, o), {
|
|
1495
1497
|
inputGroupClass: p,
|
|
1496
1498
|
inputType: d,
|
|
1497
|
-
inputGroupStyle:
|
|
1498
|
-
} = r, k =
|
|
1499
|
+
inputGroupStyle: b
|
|
1500
|
+
} = r, k = Dn(e), {
|
|
1499
1501
|
shouldShowAppendedButton: s
|
|
1500
|
-
} = k, l =
|
|
1502
|
+
} = k, l = $n(e, t, r), {
|
|
1501
1503
|
onMouseEnter: u,
|
|
1502
1504
|
onMouseLeave: c
|
|
1503
|
-
} = l, V =
|
|
1505
|
+
} = l, V = Wn(e, t, d, k), E = Hn(e, t), O = Qn(e, t, V, r), q = _n(e, t, k, l, V), T = Zn(e, t), x = P(() => e.type === "number");
|
|
1504
1506
|
W(() => [e.value], ([j]) => {
|
|
1505
1507
|
n.value = j, o.value = j;
|
|
1506
1508
|
}), W(() => [e.modelValue], ([j]) => {
|
|
@@ -1508,28 +1510,28 @@ const Zn = /* @__PURE__ */ Z({
|
|
|
1508
1510
|
}), J(() => {
|
|
1509
1511
|
e.value && (n.value = e.value, o.value = e.value);
|
|
1510
1512
|
});
|
|
1511
|
-
const M = () =>
|
|
1513
|
+
const M = () => F(ne, null, [F("div", {
|
|
1512
1514
|
id: "inputGroup",
|
|
1513
1515
|
class: p.value,
|
|
1514
|
-
style:
|
|
1516
|
+
style: b.value,
|
|
1515
1517
|
onMouseenter: u,
|
|
1516
1518
|
onMouseleave: c
|
|
1517
|
-
}, [x.value ? E() :
|
|
1519
|
+
}, [x.value ? E() : F(ne, null, [T(), O(), s.value && q()])])]);
|
|
1518
1520
|
return () => M();
|
|
1519
1521
|
}
|
|
1520
|
-
}), g = {}, h = {},
|
|
1522
|
+
}), g = {}, h = {}, v = {}, y = {};
|
|
1521
1523
|
let ie = !1;
|
|
1522
|
-
function
|
|
1523
|
-
ie || (ie = !0, Pe.register(g, h,
|
|
1524
|
+
function Xn() {
|
|
1525
|
+
ie || (ie = !0, Pe.register(g, h, v, y), Me.register(g, h, v, y), Oe.register(g, h, v, y), je.register(g, h, v, y), Le.register(g, h, v, y), Ae.register(g, h, v, y), Ne.register(g, h, v, y), K.register(g, h, v, y), $e.register(g, h, v, y), Ge.register(g, h, v, y), qe.register(g, h, v, y), Re.register(g, h, v, y), De.register(g, h, v, y), We.register(g, h, v, y), ze.register(g, h, v, y), xe.register(g, h, v, y), Ue.register(g, h, v, y), He.register(g, h, v, y), Qe.register(g, h, v, y), Ze.register(g, h, v, y), _e.register(g, h, v, y), Je.register(g, h, v, y), Ye.register(g, h, v, y), Xe.register(g, h, v, y), Ke.register(g, h, v, y), et.register(g, h, v, y), tt.register(g, h, v, y), nt.register(g, h, v, y), Be.register(g, h, v, y), ot.register(g, h, v, y), rt.register(g, h, v, y), it.register(g, h, v, y), at.register(g, h, v, y), lt.register(g, h, v, y), st.register(g, h, v, y), ut.register(g, h, v, y), ct.register(g, h, v, y), pt.register(g, h, v, y), ft.register(g, h, v, y), dt.register(g, h, v, y), Mt.register(g, h, v), mt.register(g, h, v, y), gt.register(g, h, v, y), ht.register(g, h, v, y), vt.register(g, h, v, y), yt.register(g, h, v, y), bt.register(g, h, v, y), Ct.register(g, h, v, y), Ft.register(g, h, v, y), wt.register(g, h, v, y), Tt.register(g, h, v, y), xt.register(g, h, v, y), kt.register(g, h, v, y), It.register(g, h, v, y), Bt.register(g, h, v, y), St.register(g, h, v, y), Vt.register(g, h, v, y), Et.register(g, h, v, y), Pt.register(g, h, v, y));
|
|
1524
1526
|
}
|
|
1525
|
-
function
|
|
1526
|
-
|
|
1527
|
+
function Yn() {
|
|
1528
|
+
Xn();
|
|
1527
1529
|
function e(r, p) {
|
|
1528
1530
|
const d = h[r];
|
|
1529
1531
|
return d ? d(p) : {};
|
|
1530
1532
|
}
|
|
1531
1533
|
function t(r) {
|
|
1532
|
-
return g[r] ||
|
|
1534
|
+
return g[r] || Jn;
|
|
1533
1535
|
}
|
|
1534
1536
|
function n(r) {
|
|
1535
1537
|
switch (r) {
|
|
@@ -1540,6 +1542,7 @@ function Jn() {
|
|
|
1540
1542
|
case "check-group":
|
|
1541
1543
|
return "onChangeValue";
|
|
1542
1544
|
case "combo-list":
|
|
1545
|
+
case "combo-tree":
|
|
1543
1546
|
return "onChange";
|
|
1544
1547
|
case "combo-lookup":
|
|
1545
1548
|
return "";
|
|
@@ -1594,23 +1597,23 @@ function Jn() {
|
|
|
1594
1597
|
}
|
|
1595
1598
|
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
|
|
1596
1599
|
}
|
|
1597
|
-
const
|
|
1600
|
+
const Kn = /* @__PURE__ */ Z({
|
|
1598
1601
|
name: "FDynamicFormGroup",
|
|
1599
1602
|
props: fe,
|
|
1600
1603
|
emits: ["change", "update:modelValue"],
|
|
1601
1604
|
setup(e, t) {
|
|
1602
|
-
const n = I(e.id), o = I(e.customClass), r = I(e.editor), p = I(e.label), d = I(e.modelValue),
|
|
1605
|
+
const n = I(e.id), o = I(e.customClass), r = I(e.editor), p = I(e.label), d = I(e.modelValue), b = I(e.readonly), k = I(e.required), s = I(e.showLabel), l = I(e.visible);
|
|
1603
1606
|
I(e.type);
|
|
1604
1607
|
const u = I(), {
|
|
1605
1608
|
resolveEditorProps: c,
|
|
1606
1609
|
resolveEditorType: V,
|
|
1607
1610
|
getChangeFunctionName: E,
|
|
1608
1611
|
getClearFunctionName: O
|
|
1609
|
-
} =
|
|
1612
|
+
} = Yn(), q = P(() => ({
|
|
1610
1613
|
"form-group": !0,
|
|
1611
1614
|
"farris-form-group": !0,
|
|
1612
1615
|
"common-group": !0,
|
|
1613
|
-
"q-state-readonly":
|
|
1616
|
+
"q-state-readonly": b.value
|
|
1614
1617
|
}));
|
|
1615
1618
|
function T(j, $) {
|
|
1616
1619
|
d.value = $ !== void 0 ? $ : j, t.emit("update:modelValue", d.value), t.emit("change", d.value);
|
|
@@ -1619,35 +1622,35 @@ const Xn = /* @__PURE__ */ Z({
|
|
|
1619
1622
|
t.emit("update:modelValue", "");
|
|
1620
1623
|
}
|
|
1621
1624
|
const M = P(() => {
|
|
1622
|
-
const j = r.value.type || "input-group", $ = V(j),
|
|
1623
|
-
return
|
|
1625
|
+
const j = r.value.type || "input-group", $ = V(j), G = c(j, r.value), A = E(j), z = O(r.value.type);
|
|
1626
|
+
return G[A] = T, G[z] = x, () => F($, Te({
|
|
1624
1627
|
ref: u
|
|
1625
|
-
},
|
|
1628
|
+
}, G, {
|
|
1626
1629
|
modelValue: d.value,
|
|
1627
1630
|
"onUpdate:modelValue": (i) => d.value = i
|
|
1628
1631
|
}), null);
|
|
1629
1632
|
});
|
|
1630
|
-
return W([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([j, $,
|
|
1631
|
-
n.value = j, o.value = $, r.value =
|
|
1633
|
+
return W([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([j, $, G, A, z, i, m, f, B]) => {
|
|
1634
|
+
n.value = j, o.value = $, r.value = G, p.value = A, d.value = z, b.value = i, k.value = m, s.value = f, l.value = B;
|
|
1632
1635
|
}), t.expose({
|
|
1633
1636
|
editorRef: u
|
|
1634
|
-
}), () => l.value &&
|
|
1637
|
+
}), () => l.value && F("div", {
|
|
1635
1638
|
id: `${n.value}-input-group`,
|
|
1636
1639
|
class: o.value
|
|
1637
|
-
}, [
|
|
1640
|
+
}, [F("div", {
|
|
1638
1641
|
class: "farris-group-wrap"
|
|
1639
|
-
}, [
|
|
1642
|
+
}, [F("div", {
|
|
1640
1643
|
class: q.value
|
|
1641
|
-
}, [s.value &&
|
|
1644
|
+
}, [s.value && F(Bn, {
|
|
1642
1645
|
id: `${n.value}-lable`,
|
|
1643
1646
|
required: k.value,
|
|
1644
1647
|
text: p.value,
|
|
1645
1648
|
title: p.value
|
|
1646
|
-
}, null),
|
|
1649
|
+
}, null), F("div", {
|
|
1647
1650
|
class: "farris-input-wrap"
|
|
1648
1651
|
}, [M.value()])])])]);
|
|
1649
1652
|
}
|
|
1650
|
-
}),
|
|
1653
|
+
}), eo = {
|
|
1651
1654
|
id: { type: String, default: "" },
|
|
1652
1655
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
1653
1656
|
editor: { type: Object, default: {} },
|
|
@@ -1663,13 +1666,13 @@ const Xn = /* @__PURE__ */ Z({
|
|
|
1663
1666
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
1664
1667
|
};
|
|
1665
1668
|
X(
|
|
1666
|
-
|
|
1669
|
+
eo,
|
|
1667
1670
|
pe,
|
|
1668
1671
|
ee,
|
|
1669
1672
|
void 0
|
|
1670
1673
|
);
|
|
1671
|
-
var
|
|
1672
|
-
const
|
|
1674
|
+
var to = /* @__PURE__ */ ((e) => (e[e.IntType = 0] = "IntType", e[e.StringType = 1] = "StringType", e[e.BoolType = 2] = "BoolType", e))(to || {}), ge = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(ge || {}), he = /* @__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))(he || {});
|
|
1675
|
+
const no = [
|
|
1673
1676
|
{
|
|
1674
1677
|
value: "0",
|
|
1675
1678
|
name: "等于"
|
|
@@ -1706,7 +1709,7 @@ const eo = [
|
|
|
1706
1709
|
value: "8",
|
|
1707
1710
|
name: "结束是"
|
|
1708
1711
|
}
|
|
1709
|
-
],
|
|
1712
|
+
], oo = {
|
|
1710
1713
|
"button-edit": ["0", "1", " 6", "7", "8"],
|
|
1711
1714
|
"check-box": ["0"],
|
|
1712
1715
|
"combo-list": ["0", "1"],
|
|
@@ -1726,18 +1729,18 @@ const eo = [
|
|
|
1726
1729
|
"radio-group": ["0"],
|
|
1727
1730
|
text: ["0", "1", " 6", "7", "8"]
|
|
1728
1731
|
};
|
|
1729
|
-
function
|
|
1732
|
+
function ro(e, t, n) {
|
|
1730
1733
|
const { fieldMap: o } = n;
|
|
1731
1734
|
function r(p) {
|
|
1732
1735
|
const d = o.get(p.fieldCode);
|
|
1733
1736
|
if (!d)
|
|
1734
1737
|
return [];
|
|
1735
|
-
const
|
|
1736
|
-
return
|
|
1738
|
+
const b = d.editor.type, k = new Set(oo[b]);
|
|
1739
|
+
return no.filter((l) => k.has(l.value));
|
|
1737
1740
|
}
|
|
1738
1741
|
return { getCompareOperators: r };
|
|
1739
1742
|
}
|
|
1740
|
-
function
|
|
1743
|
+
function io() {
|
|
1741
1744
|
const e = I({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
1742
1745
|
let o = 0;
|
|
1743
1746
|
function r() {
|
|
@@ -1763,51 +1766,51 @@ function oo() {
|
|
|
1763
1766
|
m.groupId === i.groupId && t.set(f, i);
|
|
1764
1767
|
}), e.value = i;
|
|
1765
1768
|
}
|
|
1766
|
-
function
|
|
1769
|
+
function b(i) {
|
|
1767
1770
|
const m = /* @__PURE__ */ new Map();
|
|
1768
1771
|
let f = 0;
|
|
1769
1772
|
return i.forEach((B, a) => {
|
|
1770
|
-
var
|
|
1771
|
-
if (f += ((
|
|
1773
|
+
var C, S;
|
|
1774
|
+
if (f += ((C = B.lBracket) == null ? void 0 : C.length) || 0, m.set(a, f), f -= ((S = B.rBracket) == null ? void 0 : S.length) || 0, f < 0)
|
|
1772
1775
|
throw new Error("The right bracket is out of range.");
|
|
1773
1776
|
}), m;
|
|
1774
1777
|
}
|
|
1775
1778
|
function k(i, m, f, B, a) {
|
|
1776
|
-
for (let
|
|
1777
|
-
const S = i + (
|
|
1779
|
+
for (let C = 0; C < m; C++) {
|
|
1780
|
+
const S = i + (C + 1), D = p(a, S);
|
|
1778
1781
|
f.children.push(D), n.set(D.groupId, f), f = f.children[f.children.length - 1], B.push(f);
|
|
1779
1782
|
}
|
|
1780
1783
|
return f;
|
|
1781
1784
|
}
|
|
1782
1785
|
function s(i, m, f, B, a) {
|
|
1783
|
-
for (let
|
|
1786
|
+
for (let R = m; R <= 0; R++)
|
|
1784
1787
|
B.pop();
|
|
1785
|
-
const
|
|
1786
|
-
if (!
|
|
1788
|
+
const C = B[B.length - 1];
|
|
1789
|
+
if (!C)
|
|
1787
1790
|
throw new Error("The group path is out of range");
|
|
1788
1791
|
const S = i + m, D = p(a, S);
|
|
1789
|
-
return
|
|
1792
|
+
return C.children.push(D), n.set(D.groupId, C), f = C.children[C.children.length - 1], B.push(f), f;
|
|
1790
1793
|
}
|
|
1791
1794
|
function l(i, m, f, B) {
|
|
1792
1795
|
f.pop();
|
|
1793
|
-
const a = f[f.length - 1],
|
|
1794
|
-
return a.children.push(
|
|
1796
|
+
const a = f[f.length - 1], C = p(B, i);
|
|
1797
|
+
return a.children.push(C), n.set(C.groupId, a), m = a.children[a.children.length - 1], f.push(m), m;
|
|
1795
1798
|
}
|
|
1796
|
-
function u(i, m, f, B, a,
|
|
1799
|
+
function u(i, m, f, B, a, C) {
|
|
1797
1800
|
let S = i[i.length - 1];
|
|
1798
1801
|
if (!S)
|
|
1799
1802
|
throw new Error("The group path is out of range");
|
|
1800
|
-
const D = m.get(B) || 0,
|
|
1803
|
+
const D = m.get(B) || 0, R = m.get(f) || 0;
|
|
1801
1804
|
if (f < 0 || f === B)
|
|
1802
1805
|
return i[i.length - 1];
|
|
1803
|
-
const N = D -
|
|
1804
|
-
return S = N > 0 ? k(
|
|
1806
|
+
const N = D - R, L = a && a.relation !== void 0 ? a.relation : 1;
|
|
1807
|
+
return S = N > 0 ? k(R, N, S, i, L) : S, S = N < 0 ? s(R, N, S, i, L) : S, S = N === 0 && R > 0 && D > 0 && a && C && !!a.rBracket && !!C.lBracket ? l(R, S, i, L) : S, S;
|
|
1805
1808
|
}
|
|
1806
1809
|
function c(i) {
|
|
1807
|
-
const f = { relation: i.length && i[0].relation !== void 0 ? i[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, B = [f], a =
|
|
1808
|
-
return i.forEach((
|
|
1809
|
-
const D = S - 1,
|
|
1810
|
-
N.items.push(
|
|
1810
|
+
const f = { relation: i.length && i[0].relation !== void 0 ? i[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, B = [f], a = b(i);
|
|
1811
|
+
return i.forEach((C, S) => {
|
|
1812
|
+
const D = S - 1, R = i[D], N = u(B, a, D, S, R, C);
|
|
1813
|
+
N.items.push(C), t.set(C.conditionId, N);
|
|
1811
1814
|
}), e.value = f, f;
|
|
1812
1815
|
}
|
|
1813
1816
|
function V() {
|
|
@@ -1828,21 +1831,21 @@ function oo() {
|
|
|
1828
1831
|
m && (m.items = m.items.filter((f) => f.conditionId !== i.conditionId), t.delete(i.conditionId), z(), d());
|
|
1829
1832
|
}
|
|
1830
1833
|
function q(i, m, f, B) {
|
|
1831
|
-
i.reduce((a,
|
|
1832
|
-
const S =
|
|
1834
|
+
i.reduce((a, C) => {
|
|
1835
|
+
const S = C.conditionId !== void 0, D = C.groupId !== void 0;
|
|
1833
1836
|
if (S) {
|
|
1834
|
-
const
|
|
1835
|
-
f.push(
|
|
1837
|
+
const R = C;
|
|
1838
|
+
f.push(R), a.items.set(R.conditionId, R);
|
|
1836
1839
|
}
|
|
1837
1840
|
if (D) {
|
|
1838
|
-
const
|
|
1839
|
-
B.push(
|
|
1841
|
+
const R = C;
|
|
1842
|
+
B.push(R), a.groups.set(R.groupId, R);
|
|
1840
1843
|
}
|
|
1841
1844
|
return a;
|
|
1842
1845
|
}, m);
|
|
1843
1846
|
}
|
|
1844
1847
|
function T(i, m, f, B, a) {
|
|
1845
|
-
i && (i.items = m.length ? i.items.filter((
|
|
1848
|
+
i && (i.items = m.length ? i.items.filter((C) => !f.has(C.conditionId)) : i.items, i.children = B.length ? i.children.filter((C) => !a.has(C.groupId)) : i.children);
|
|
1846
1849
|
}
|
|
1847
1850
|
function x(i, m, f) {
|
|
1848
1851
|
m.forEach((B) => {
|
|
@@ -1852,11 +1855,11 @@ function oo() {
|
|
|
1852
1855
|
});
|
|
1853
1856
|
}
|
|
1854
1857
|
function M(i) {
|
|
1855
|
-
const m = i[0], f = m.conditionId !== void 0 ? t.get(m.conditionId) : n.get(m.groupId), B = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, a = [],
|
|
1858
|
+
const m = i[0], f = m.conditionId !== void 0 ? t.get(m.conditionId) : n.get(m.groupId), B = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, a = [], C = [];
|
|
1856
1859
|
if (f) {
|
|
1857
|
-
q(i, B, a,
|
|
1860
|
+
q(i, B, a, C), T(f, a, B.items, C, B.groups);
|
|
1858
1861
|
const S = p(f.relation, f.level + 1);
|
|
1859
|
-
x(S, a,
|
|
1862
|
+
x(S, a, C), f.children.push(S), n.set(S.groupId, f), d();
|
|
1860
1863
|
}
|
|
1861
1864
|
}
|
|
1862
1865
|
function j(i) {
|
|
@@ -1870,16 +1873,16 @@ function oo() {
|
|
|
1870
1873
|
function $(i) {
|
|
1871
1874
|
i.relation = i.relation === 1 ? 2 : 1, d();
|
|
1872
1875
|
}
|
|
1873
|
-
let
|
|
1876
|
+
let G;
|
|
1874
1877
|
function A(i) {
|
|
1875
1878
|
const { relation: m } = i;
|
|
1876
|
-
return (i.children && i.children.length ? i.children.map((B, a,
|
|
1877
|
-
const S =
|
|
1878
|
-
return S[0].lBracket = (S[0].lBracket || "") + "(", S[S.length - 1].rBracket = (S[S.length - 1].rBracket || "") + ")", S[S.length - 1].relation = a <
|
|
1879
|
+
return (i.children && i.children.length ? i.children.map((B, a, C) => {
|
|
1880
|
+
const S = G(B);
|
|
1881
|
+
return S[0].lBracket = (S[0].lBracket || "") + "(", S[S.length - 1].rBracket = (S[S.length - 1].rBracket || "") + ")", S[S.length - 1].relation = a < C.length - 1 ? m : 0, S;
|
|
1879
1882
|
}) : []).flat();
|
|
1880
1883
|
}
|
|
1881
|
-
|
|
1882
|
-
const { relation: m } = i, f = i.items.map((a,
|
|
1884
|
+
G = (i = e.value) => {
|
|
1885
|
+
const { relation: m } = i, f = i.items.map((a, C, S) => (a.lBracket = C === 0 ? "(" : "", a.rBracket = C === S.length - 1 ? ")" : "", a.relation = C < S.length - 1 ? m || 1 : 0, a)), B = A(i);
|
|
1883
1886
|
return [...f, ...B];
|
|
1884
1887
|
};
|
|
1885
1888
|
function z(i) {
|
|
@@ -1895,7 +1898,7 @@ function oo() {
|
|
|
1895
1898
|
addCondition: V,
|
|
1896
1899
|
changeGroupRelation: $,
|
|
1897
1900
|
conditionGroupMap: t,
|
|
1898
|
-
getConditions:
|
|
1901
|
+
getConditions: G,
|
|
1899
1902
|
group: M,
|
|
1900
1903
|
groupParentMap: n,
|
|
1901
1904
|
insertConditionTo: E,
|
|
@@ -1906,11 +1909,11 @@ function oo() {
|
|
|
1906
1909
|
unGroup: j
|
|
1907
1910
|
};
|
|
1908
1911
|
}
|
|
1909
|
-
function
|
|
1912
|
+
function ao(e, t, n) {
|
|
1910
1913
|
const o = I(/* @__PURE__ */ new Set()), r = I(/* @__PURE__ */ new Set()), { conditionGroupMap: p, groupParentMap: d } = n;
|
|
1911
|
-
let
|
|
1914
|
+
let b, k;
|
|
1912
1915
|
function s(T) {
|
|
1913
|
-
let x =
|
|
1916
|
+
let x = b.level <= T.level ? b : T, M = b.level > T.level ? b : T;
|
|
1914
1917
|
const j = [];
|
|
1915
1918
|
for (; M && x && M !== x; )
|
|
1916
1919
|
M.level > x.level ? (j.push(M), M = d.get(M.groupId)) : M.level === x.level && (x = d.get(x.groupId), x && j.unshift(x));
|
|
@@ -1921,7 +1924,7 @@ function ro(e, t, n) {
|
|
|
1921
1924
|
}
|
|
1922
1925
|
function u(T) {
|
|
1923
1926
|
const { conditionId: x } = T;
|
|
1924
|
-
o.value.add(x),
|
|
1927
|
+
o.value.add(x), b = o.value.size === 0 ? p.get(x) : b;
|
|
1925
1928
|
const M = p.get(T.conditionId);
|
|
1926
1929
|
s(M).forEach(($) => l($));
|
|
1927
1930
|
}
|
|
@@ -1939,11 +1942,11 @@ function ro(e, t, n) {
|
|
|
1939
1942
|
};
|
|
1940
1943
|
function E(T) {
|
|
1941
1944
|
const { conditionId: x } = T;
|
|
1942
|
-
o.value.size === 0 && (
|
|
1945
|
+
o.value.size === 0 && (b = p.get(x)), o.value.has(x) ? k(T) : u(T);
|
|
1943
1946
|
}
|
|
1944
1947
|
function O() {
|
|
1945
1948
|
const T = [];
|
|
1946
|
-
return
|
|
1949
|
+
return b && (b.items.filter((x) => o.value.has(x.conditionId)).forEach((x) => T.push(x)), b.children.filter((x) => r.value.has(x.groupId)).forEach((x) => T.push(x))), T;
|
|
1947
1950
|
}
|
|
1948
1951
|
function q() {
|
|
1949
1952
|
o.value.clear(), r.value.clear();
|
|
@@ -1958,9 +1961,9 @@ const Y = /* @__PURE__ */ Z({
|
|
|
1958
1961
|
const n = I(e.key), o = I(e.conditions), r = ue(e), {
|
|
1959
1962
|
convertToSingleControl: p,
|
|
1960
1963
|
fields: d,
|
|
1961
|
-
fieldMap:
|
|
1964
|
+
fieldMap: b,
|
|
1962
1965
|
loadFieldConfigs: k
|
|
1963
|
-
} = r, s =
|
|
1966
|
+
} = r, s = io(), {
|
|
1964
1967
|
addCondition: l,
|
|
1965
1968
|
changeGroupRelation: u,
|
|
1966
1969
|
getConditions: c,
|
|
@@ -1973,16 +1976,16 @@ const Y = /* @__PURE__ */ Z({
|
|
|
1973
1976
|
unGroup: M
|
|
1974
1977
|
} = s, {
|
|
1975
1978
|
createConditionValue: j
|
|
1976
|
-
} = se(), $ =
|
|
1977
|
-
selectedItems:
|
|
1979
|
+
} = se(), $ = ao(e, t, s), {
|
|
1980
|
+
selectedItems: G,
|
|
1978
1981
|
toggleSelect: A
|
|
1979
1982
|
} = $, {
|
|
1980
1983
|
getCompareOperators: z
|
|
1981
|
-
} =
|
|
1984
|
+
} = ro(e, t, r);
|
|
1982
1985
|
k(!1), d.value = p(d.value), O(o.value);
|
|
1983
1986
|
function i(N) {
|
|
1984
1987
|
var H;
|
|
1985
|
-
const L = ((H =
|
|
1988
|
+
const L = ((H = b.get(N.fieldCode)) == null ? void 0 : H.editor) || {
|
|
1986
1989
|
type: "text"
|
|
1987
1990
|
};
|
|
1988
1991
|
N.value = j(L.type, void 0), t.emit("labelCodeChange", N);
|
|
@@ -2001,12 +2004,12 @@ const Y = /* @__PURE__ */ Z({
|
|
|
2001
2004
|
function a(N) {
|
|
2002
2005
|
return N.items.map((L) => {
|
|
2003
2006
|
var H;
|
|
2004
|
-
return
|
|
2007
|
+
return F("div", {
|
|
2005
2008
|
class: "condition-list-item",
|
|
2006
2009
|
key: L.conditionId
|
|
2007
|
-
}, [
|
|
2010
|
+
}, [F("div", {
|
|
2008
2011
|
class: "condition-list-item-type mr-3"
|
|
2009
|
-
}, [
|
|
2012
|
+
}, [F(K, {
|
|
2010
2013
|
"value-field": "labelCode",
|
|
2011
2014
|
"text-field": "name",
|
|
2012
2015
|
"id-field": "id",
|
|
@@ -2014,9 +2017,9 @@ const Y = /* @__PURE__ */ Z({
|
|
|
2014
2017
|
modelValue: L.fieldCode,
|
|
2015
2018
|
"onUpdate:modelValue": (U) => L.fieldCode = U,
|
|
2016
2019
|
onChange: (U) => i(L)
|
|
2017
|
-
}, null)]),
|
|
2020
|
+
}, null)]), F("div", {
|
|
2018
2021
|
class: "condition-list-item-compare mr-3"
|
|
2019
|
-
}, [
|
|
2022
|
+
}, [F(K, {
|
|
2020
2023
|
"value-field": "value",
|
|
2021
2024
|
"text-field": "name",
|
|
2022
2025
|
"id-field": "id",
|
|
@@ -2024,97 +2027,97 @@ const Y = /* @__PURE__ */ Z({
|
|
|
2024
2027
|
modelValue: L.compareType,
|
|
2025
2028
|
"onUpdate:modelValue": (U) => L.compareType = U,
|
|
2026
2029
|
onChange: (U) => m(U, L)
|
|
2027
|
-
}, null)]),
|
|
2030
|
+
}, null)]), F("div", {
|
|
2028
2031
|
class: "condition-list-item-control mr-3"
|
|
2029
|
-
}, [
|
|
2030
|
-
editor: (H =
|
|
2032
|
+
}, [F(Kn, {
|
|
2033
|
+
editor: (H = b.get(L.fieldCode)) == null ? void 0 : H.editor,
|
|
2031
2034
|
showLabel: !1,
|
|
2032
2035
|
modelValue: L.value.value,
|
|
2033
2036
|
"onUpdate:modelValue": (U) => L.value.value = U,
|
|
2034
2037
|
onChange: (U) => {
|
|
2035
2038
|
B(U, L);
|
|
2036
2039
|
}
|
|
2037
|
-
}, null)]),
|
|
2040
|
+
}, null)]), F("div", {
|
|
2038
2041
|
class: "condition-list-item-extend"
|
|
2039
|
-
}, [
|
|
2042
|
+
}, [F("span", {
|
|
2040
2043
|
class: "f-icon f-icon-plus-sm mr-2",
|
|
2041
2044
|
onClick: () => E(L)
|
|
2042
|
-
}, null),
|
|
2045
|
+
}, null), F("span", {
|
|
2043
2046
|
class: "f-icon f-icon-minus-sm",
|
|
2044
2047
|
onClick: () => T(L)
|
|
2045
|
-
}, null)]),
|
|
2048
|
+
}, null)]), F("div", {
|
|
2046
2049
|
class: "custom-control custom-checkbox"
|
|
2047
|
-
}, [
|
|
2050
|
+
}, [F("input", {
|
|
2048
2051
|
title: "selection",
|
|
2049
2052
|
class: "custom-control-input",
|
|
2050
2053
|
type: "checkbox",
|
|
2051
|
-
checked:
|
|
2052
|
-
}, null),
|
|
2054
|
+
checked: G.value.has(L.conditionId)
|
|
2055
|
+
}, null), F("label", {
|
|
2053
2056
|
class: "custom-control-label",
|
|
2054
2057
|
onClick: () => A(L)
|
|
2055
2058
|
}, null)])]);
|
|
2056
2059
|
});
|
|
2057
2060
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return
|
|
2061
|
+
function C(N) {
|
|
2062
|
+
return F("div", {
|
|
2060
2063
|
class: "condition-list-relation"
|
|
2061
|
-
}, [
|
|
2064
|
+
}, [F("span", {
|
|
2062
2065
|
class: "condition-list-relation-close f-icon-filter-cancel btn-link",
|
|
2063
2066
|
onClick: () => M(N)
|
|
2064
|
-
}, null),
|
|
2067
|
+
}, null), F("span", {
|
|
2065
2068
|
class: "condition-list-relation-text btn-link",
|
|
2066
2069
|
onClick: () => u(N)
|
|
2067
2070
|
}, [N.relation === 1 ? "与" : "或"])]);
|
|
2068
2071
|
}
|
|
2069
2072
|
function S(N) {
|
|
2070
|
-
return
|
|
2073
|
+
return F("div", {
|
|
2071
2074
|
class: "condition-list-content"
|
|
2072
|
-
}, [
|
|
2075
|
+
}, [F("div", {
|
|
2073
2076
|
class: "condition-list-content-group"
|
|
2074
|
-
}, [a(N), N.children && N.children.map((L) => S(L))]),
|
|
2077
|
+
}, [a(N), N.children && N.children.map((L) => S(L))]), C(N)]);
|
|
2075
2078
|
}
|
|
2076
2079
|
function D() {
|
|
2077
2080
|
V($.getSelectedGroupItem()), $.clear();
|
|
2078
2081
|
}
|
|
2079
|
-
function
|
|
2080
|
-
return
|
|
2082
|
+
function R() {
|
|
2083
|
+
return F("div", {
|
|
2081
2084
|
class: "condition-list-bottom"
|
|
2082
|
-
}, [
|
|
2085
|
+
}, [F("div", {
|
|
2083
2086
|
class: "add-condition-btn mb-1 mr-3",
|
|
2084
2087
|
onClick: l
|
|
2085
|
-
}, [
|
|
2088
|
+
}, [F("span", {
|
|
2086
2089
|
class: "f-icon f-icon-filter-add"
|
|
2087
|
-
}, null),
|
|
2090
|
+
}, null), F("span", {
|
|
2088
2091
|
class: "ml-1"
|
|
2089
|
-
}, [_("添加条件")])]),
|
|
2092
|
+
}, [_("添加条件")])]), F("div", {
|
|
2090
2093
|
class: "add-condition-btn mb-1",
|
|
2091
2094
|
onClick: D
|
|
2092
|
-
}, [
|
|
2095
|
+
}, [F("span", {
|
|
2093
2096
|
class: "f-icon f-icon-filter-grouping"
|
|
2094
|
-
}, null),
|
|
2097
|
+
}, null), F("span", {
|
|
2095
2098
|
class: "ml-1"
|
|
2096
|
-
}, [_("生成条件组")])]),
|
|
2099
|
+
}, [_("生成条件组")])]), F("div", {
|
|
2097
2100
|
class: "condition-list-reset add-condition-btn",
|
|
2098
2101
|
onClick: f
|
|
2099
2102
|
}, [_("重置")])]);
|
|
2100
2103
|
}
|
|
2101
|
-
return () =>
|
|
2104
|
+
return () => F("div", {
|
|
2102
2105
|
class: "condition-list",
|
|
2103
2106
|
key: n.value
|
|
2104
|
-
}, [
|
|
2107
|
+
}, [F("div", {
|
|
2105
2108
|
class: "condition-list-body"
|
|
2106
|
-
}, [S(x.value)]),
|
|
2109
|
+
}, [S(x.value)]), R()]);
|
|
2107
2110
|
}
|
|
2108
2111
|
});
|
|
2109
2112
|
Y.install = (e) => {
|
|
2110
2113
|
e.component(re.name, re).component(Y.name, Y);
|
|
2111
2114
|
};
|
|
2112
2115
|
export {
|
|
2113
|
-
|
|
2116
|
+
to as EnumType,
|
|
2114
2117
|
re as FConditionFields,
|
|
2115
2118
|
Y as FConditionList,
|
|
2116
2119
|
ge as ValueType,
|
|
2117
2120
|
ae as conditionProps,
|
|
2118
2121
|
Y as default,
|
|
2119
|
-
|
|
2122
|
+
io as useCondition
|
|
2120
2123
|
};
|