@farris/ui-vue 1.3.1 → 1.3.3
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 +103 -99
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +301 -351
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +444 -0
- package/components/binding-selector/index.umd.cjs +1 -0
- package/components/binding-selector/package.json +8 -0
- package/components/border-editor/index.esm.js +5 -3
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +143 -139
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +407 -396
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +266 -255
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +628 -641
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +379 -374
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +471 -471
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +155 -148
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +487 -478
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +330 -279
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1171 -1277
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +220 -204
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4743 -4641
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2916 -3019
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2375 -2590
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +9518 -1198
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +2 -1
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +34 -38
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +149 -138
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1602 -1740
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +159 -151
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +218 -218
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +311 -0
- package/components/event-parameter/index.umd.cjs +1 -0
- package/components/event-parameter/package.json +8 -0
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +533 -563
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +95 -91
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2356 -2455
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +3048 -3308
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +10537 -3249
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +9781 -1327
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +353 -341
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +510 -827
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +278 -268
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +144 -136
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +2139 -2237
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +6414 -6367
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +5216 -5114
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +252 -252
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +70 -70
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +486 -984
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +446 -498
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +363 -388
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1050 -1308
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +134 -131
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1072 -1082
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +412 -910
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +214 -203
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1361 -1536
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +650 -677
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +12344 -5048
- package/components/query-solution/index.umd.cjs +6 -1
- package/components/radio-button/index.esm.js +97 -97
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.css +1 -1
- package/components/radio-group/index.esm.js +1821 -565
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +251 -244
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +151 -140
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +707 -676
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +719 -740
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4977 -5249
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +145 -134
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +348 -337
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +141 -130
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +311 -301
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +231 -220
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +385 -432
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1932 -1914
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +351 -340
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +209 -199
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +388 -415
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +619 -666
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +493 -486
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3169 -3278
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2320 -2418
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +563 -554
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +287 -276
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +368 -324
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -487
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +51302 -47651
- package/farris.all.umd.cjs +14 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/binding-selector/index.d.ts +55 -0
- package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
- package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
- package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -6
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
- package/types/common/entity/entity-schema.d.ts +26 -11
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +2 -2
- package/types/condition/src/condition-fields.design.component.d.ts +18 -0
- package/types/condition/src/types.d.ts +6 -6
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
- package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
- package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +2 -2
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
- package/types/date-picker/src/components/month/month.component.d.ts +3 -3
- package/types/date-picker/src/components/year/year.component.d.ts +3 -3
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
- package/types/designer-canvas/src/composition/types.d.ts +49 -40
- package/types/designer-canvas/src/types.d.ts +8 -20
- package/types/dynamic-form/index.d.ts +1 -1
- package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
- package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
- package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
- package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
- package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
- package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
- package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
- package/types/event-parameter/index.d.ts +31 -0
- package/types/event-parameter/src/composition/type.d.ts +77 -0
- package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
- package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
- package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
- package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
- package/types/field-selector/src/field-selector.component.d.ts +1 -2
- package/types/field-selector/src/field-selector.props.d.ts +0 -9
- package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
- package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
- package/types/list-view/src/list-view-table.component.d.ts +15 -0
- package/types/lookup/src/composition/use-user-data.d.ts +2 -2
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
- package/types/modal/src/composition/modal.service.d.ts +2 -1
- package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
- package/types/page-header/src/page-header.component.d.ts +1 -1
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
- package/types/property-panel/src/composition/type.d.ts +0 -13
- package/types/query-solution/src/composition/types.d.ts +35 -4
- package/types/query-solution/src/composition/use-header.d.ts +21 -0
- package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
- package/types/query-solution/src/composition/use-solution.d.ts +20 -0
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
- package/types/query-solution/src/query-solution.d.ts +10 -2
- package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
- package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
- package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
- package/types/section/src/property-config/section.property-config.d.ts +17 -17
- package/types/section/src/schema/schema-resolver.d.ts +1 -2
- package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
- package/types/tabs/src/composition/types.d.ts +4 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
- package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
- package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
- package/types/text/src/composition/types.d.ts +4 -4
- package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
- package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
- package/types/weather/src/composition/use-weather-color.d.ts +15 -0
- package/types/weather/src/composition/use-weather-data.d.ts +15 -0
- package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
- package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
- package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
- package/types/weather/src/composition/types.d.ts +0 -2
- /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
- /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
|
@@ -1,69 +1,71 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { ref as
|
|
5
|
-
import { isPlainObject as se, cloneDeep as
|
|
6
|
-
import "
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
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
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
|
|
1
|
+
var $e = Object.defineProperty;
|
|
2
|
+
var Ae = (e, t, n) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var D = (e, t, n) => Ae(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as F, computed as N, defineComponent as W, watch as R, createVNode as l, createTextVNode as pe, onMounted as q, nextTick as le, reactive as Ge, withDirectives as Ue, resolveDirective as qe, Fragment as z, mergeProps as We, inject as He, onBeforeMount as Qe } from "vue";
|
|
5
|
+
import { isPlainObject as se, cloneDeep as fe } from "lodash-es";
|
|
6
|
+
import { useTextBox as _e, useClear as ze } from "../common/index.esm.js";
|
|
7
|
+
import Ze, { useNumber as Je, useFormat as Xe, useSpinner as Ye, useTextBox as Ke } from "../number-spinner/index.esm.js";
|
|
8
|
+
import et from "../accordion/index.esm.js";
|
|
9
|
+
import tt from "../avatar/index.esm.js";
|
|
10
|
+
import nt from "../button-edit/index.esm.js";
|
|
11
|
+
import ot from "../button-group/index.esm.js";
|
|
12
|
+
import rt from "../calendar/index.esm.js";
|
|
13
|
+
import at from "../capsule/index.esm.js";
|
|
14
|
+
import it from "../checkbox/index.esm.js";
|
|
15
|
+
import lt from "../combo-list/index.esm.js";
|
|
16
|
+
import st from "../combo-tree/index.esm.js";
|
|
17
|
+
import ut from "../component/index.esm.js";
|
|
18
|
+
import ct from "../color-picker/index.esm.js";
|
|
19
|
+
import dt from "../content-container/index.esm.js";
|
|
20
|
+
import pt from "../date-picker/index.esm.js";
|
|
21
|
+
import ft from "../data-grid/index.esm.js";
|
|
22
|
+
import mt from "../dropdown/index.esm.js";
|
|
23
|
+
import gt from "../dynamic-form/index.esm.js";
|
|
24
|
+
import yt from "../events-editor/index.esm.js";
|
|
25
|
+
import vt from "../filter-bar/index.esm.js";
|
|
26
|
+
import bt from "../field-selector/index.esm.js";
|
|
27
|
+
import ht from "../binding-selector/index.esm.js";
|
|
28
|
+
import Ct from "../image-cropper/index.esm.js";
|
|
29
|
+
import Ft from "../input-group/index.esm.js";
|
|
30
|
+
import xt from "../layout/index.esm.js";
|
|
31
|
+
import Tt from "../list-nav/index.esm.js";
|
|
32
|
+
import wt from "../list-view/index.esm.js";
|
|
33
|
+
import kt from "../lookup/index.esm.js";
|
|
34
|
+
import Bt from "../mapping-editor/index.esm.js";
|
|
35
|
+
import St from "../nav/index.esm.js";
|
|
36
|
+
import Pt from "../number-range/index.esm.js";
|
|
37
|
+
import Et from "../order/index.esm.js";
|
|
38
|
+
import It from "../page-header/index.esm.js";
|
|
39
|
+
import Ot from "../page-footer/index.esm.js";
|
|
40
|
+
import Nt from "../pagination/index.esm.js";
|
|
41
|
+
import Mt from "../progress/index.esm.js";
|
|
42
|
+
import Vt from "../query-solution/index.esm.js";
|
|
43
|
+
import jt from "../radio-group/index.esm.js";
|
|
44
|
+
import Lt from "../rate/index.esm.js";
|
|
45
|
+
import Dt from "../response-toolbar/index.esm.js";
|
|
46
|
+
import Rt from "../response-layout/index.esm.js";
|
|
47
|
+
import $t from "../response-layout-editor/index.esm.js";
|
|
48
|
+
import At from "../search-box/index.esm.js";
|
|
49
|
+
import Gt from "../section/index.esm.js";
|
|
50
|
+
import Ut from "../smoke-detector/index.esm.js";
|
|
51
|
+
import qt from "../splitter/index.esm.js";
|
|
52
|
+
import Wt from "../step/index.esm.js";
|
|
53
|
+
import Ht from "../switch/index.esm.js";
|
|
54
|
+
import Qt from "../tabs/index.esm.js";
|
|
55
|
+
import _t from "../tags/index.esm.js";
|
|
56
|
+
import zt from "../text/index.esm.js";
|
|
57
|
+
import Zt from "../time-picker/index.esm.js";
|
|
58
|
+
import Jt from "../transfer/index.esm.js";
|
|
59
|
+
import Xt from "../tree-view/index.esm.js";
|
|
60
|
+
import Yt from "../uploader/index.esm.js";
|
|
61
|
+
import Kt from "../verify-detail/index.esm.js";
|
|
62
|
+
import en from "../weather/index.esm.js";
|
|
63
|
+
import tn from "../video/index.esm.js";
|
|
64
|
+
import nn from "../textarea/index.esm.js";
|
|
65
|
+
import on from "../schema-selector/index.esm.js";
|
|
66
|
+
import rn from "../tree-grid/index.esm.js";
|
|
67
|
+
import an from "../event-parameter/index.esm.js";
|
|
68
|
+
const ln = {
|
|
67
69
|
width: { type: String, default: "300px" },
|
|
68
70
|
height: { type: Number, default: 10 },
|
|
69
71
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -92,70 +94,74 @@ const en = {
|
|
|
92
94
|
/** 属性变更后事件 */
|
|
93
95
|
propertyChanged: { type: Function }
|
|
94
96
|
};
|
|
95
|
-
function
|
|
96
|
-
function t(i,
|
|
97
|
+
function sn(e = {}) {
|
|
98
|
+
function t(i, g, a, v) {
|
|
97
99
|
if (typeof a == "number")
|
|
98
|
-
return
|
|
100
|
+
return v[i].length === a;
|
|
99
101
|
if (typeof a == "object") {
|
|
100
|
-
const s = Object.keys(a)[0],
|
|
102
|
+
const s = Object.keys(a)[0], b = a[s];
|
|
101
103
|
if (s === "not")
|
|
102
|
-
return Number(
|
|
104
|
+
return Number(v[i].length) !== Number(b);
|
|
103
105
|
if (s === "moreThan")
|
|
104
|
-
return Number(
|
|
106
|
+
return Number(v[i].length) >= Number(b);
|
|
105
107
|
if (s === "lessThan")
|
|
106
|
-
return Number(
|
|
108
|
+
return Number(v[i].length) <= Number(b);
|
|
107
109
|
}
|
|
108
110
|
return !1;
|
|
109
111
|
}
|
|
110
|
-
function n(i,
|
|
111
|
-
return
|
|
112
|
+
function n(i, g, a, v) {
|
|
113
|
+
return v[i] && v[i].propertyValue && String(v[i].propertyValue.value) === String(a);
|
|
112
114
|
}
|
|
113
115
|
const o = /* @__PURE__ */ new Map([
|
|
114
116
|
["length", t],
|
|
115
117
|
["getProperty", n]
|
|
116
118
|
]);
|
|
117
|
-
Object.keys(e).reduce((i,
|
|
118
|
-
function r(i,
|
|
119
|
+
Object.keys(e).reduce((i, g) => (i.set(g, e[g]), i), o);
|
|
120
|
+
function r(i, g) {
|
|
119
121
|
const a = i;
|
|
120
|
-
return typeof
|
|
121
|
-
if (
|
|
122
|
-
return { target: a, operator: "length", param: null, value:
|
|
123
|
-
const s =
|
|
124
|
-
return { target: a, operator: "getProperty", param: s, value:
|
|
122
|
+
return typeof g == "number" ? [{ target: a, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: a, operator: "getProperty", param: i, value: !!g }] : typeof g == "object" ? Object.keys(g).map((v) => {
|
|
123
|
+
if (v === "length")
|
|
124
|
+
return { target: a, operator: "length", param: null, value: g[v] };
|
|
125
|
+
const s = v, b = g[v];
|
|
126
|
+
return { target: a, operator: "getProperty", param: s, value: b };
|
|
125
127
|
}) : [];
|
|
126
128
|
}
|
|
127
129
|
function d(i) {
|
|
128
|
-
return Object.keys(i).reduce((a,
|
|
129
|
-
const s = r(
|
|
130
|
+
return Object.keys(i).reduce((a, v) => {
|
|
131
|
+
const s = r(v, i[v]);
|
|
130
132
|
return a.push(...s), a;
|
|
131
133
|
}, []);
|
|
132
134
|
}
|
|
133
|
-
function u(i,
|
|
135
|
+
function u(i, g) {
|
|
134
136
|
if (o.has(i.operator)) {
|
|
135
137
|
const a = o.get(i.operator);
|
|
136
|
-
return a && a(i.target, i.param, i.value,
|
|
138
|
+
return a && a(i.target, i.param, i.value, g) || !1;
|
|
137
139
|
}
|
|
138
140
|
return !1;
|
|
139
141
|
}
|
|
140
|
-
function
|
|
141
|
-
return d(i).reduce((s,
|
|
142
|
+
function T(i, g) {
|
|
143
|
+
return d(i).reduce((s, b) => s && u(b, g), !0);
|
|
142
144
|
}
|
|
143
|
-
function c(i,
|
|
144
|
-
const a = Object.keys(i),
|
|
145
|
-
return
|
|
145
|
+
function c(i, g) {
|
|
146
|
+
const a = Object.keys(i), v = a.includes("allOf"), s = a.includes("anyOf"), b = v || s, M = (b ? i[b ? v ? "allOf" : "anyOf" : "allOf"] : [i]).map((L) => T(L, g));
|
|
147
|
+
return v ? !M.includes(!1) : M.includes(!0);
|
|
146
148
|
}
|
|
147
149
|
return { parseValueSchema: c };
|
|
148
150
|
}
|
|
149
|
-
const
|
|
150
|
-
function
|
|
151
|
-
const { properties: t, title: n, ignore: o } = e, r = o && Array.isArray(o), d = Object.keys(t).reduce((u,
|
|
152
|
-
|
|
151
|
+
const ee = {}, un = {};
|
|
152
|
+
function me(e) {
|
|
153
|
+
const { properties: t, title: n, ignore: o } = e, r = o && Array.isArray(o), d = Object.keys(t).reduce((u, T) => ((!r || !o.find((c) => c === T)) && (u[T] = t[T].type === "object" && t[T].properties ? me(t[T]) : fe(t[T].default)), u), {});
|
|
154
|
+
if (n && (!r || !o.find((u) => u === "id"))) {
|
|
155
|
+
const u = n.toLowerCase().replace(/-/g, "_");
|
|
156
|
+
d.id = `${u}_${Math.random().toString().slice(2, 6)}`;
|
|
157
|
+
}
|
|
158
|
+
return d;
|
|
153
159
|
}
|
|
154
|
-
function
|
|
155
|
-
const n =
|
|
156
|
-
return Object.keys(
|
|
160
|
+
function te(e, t) {
|
|
161
|
+
const n = me(t);
|
|
162
|
+
return Object.keys(n).reduce((o, r) => (o[r] && se(o[r]) && se(e[r] || !e[r]) ? Object.assign(o[r], e[r] || {}) : o[r] = e[r], o), n), n;
|
|
157
163
|
}
|
|
158
|
-
function
|
|
164
|
+
function cn(e, t) {
|
|
159
165
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
|
|
160
166
|
if (t.has(r)) {
|
|
161
167
|
const d = t.get(r);
|
|
@@ -170,36 +176,39 @@ function on(e, t) {
|
|
|
170
176
|
return o;
|
|
171
177
|
}, {});
|
|
172
178
|
}
|
|
173
|
-
function
|
|
174
|
-
const o =
|
|
175
|
-
return
|
|
179
|
+
function dn(e, t, n = /* @__PURE__ */ new Map()) {
|
|
180
|
+
const o = te(e, t);
|
|
181
|
+
return cn(o, n);
|
|
176
182
|
}
|
|
177
|
-
function
|
|
183
|
+
function ge(e) {
|
|
178
184
|
var n;
|
|
179
185
|
const t = e.type;
|
|
180
186
|
if (t) {
|
|
181
|
-
const o =
|
|
187
|
+
const o = ee[t];
|
|
188
|
+
if (!o)
|
|
189
|
+
return e;
|
|
190
|
+
const r = te(e, o), d = ((n = e.editor) == null ? void 0 : n.type) || "";
|
|
182
191
|
if (d) {
|
|
183
|
-
const u =
|
|
184
|
-
r.editor =
|
|
192
|
+
const u = ee[d], T = te(e.editor, u);
|
|
193
|
+
r.editor = T;
|
|
185
194
|
}
|
|
186
195
|
return r;
|
|
187
196
|
}
|
|
188
197
|
return e;
|
|
189
198
|
}
|
|
190
|
-
const
|
|
199
|
+
const pn = {
|
|
191
200
|
convertTo: (e, t, n, o) => {
|
|
192
|
-
e.appearance
|
|
201
|
+
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
193
202
|
},
|
|
194
203
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
195
|
-
},
|
|
204
|
+
}, fn = {
|
|
196
205
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
197
|
-
},
|
|
206
|
+
}, mn = {
|
|
198
207
|
convertTo: (e, t, n, o) => {
|
|
199
208
|
e.editor && (e.editor[t] = n);
|
|
200
209
|
},
|
|
201
|
-
convertFrom: (e, t, n) => e.editor &&
|
|
202
|
-
},
|
|
210
|
+
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
211
|
+
}, w = {
|
|
203
212
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
204
213
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
205
214
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -237,19 +246,20 @@ const an = {
|
|
|
237
246
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
238
247
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
239
248
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
240
|
-
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
241
|
-
|
|
249
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
250
|
+
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
251
|
+
}, gn = {
|
|
242
252
|
convertFrom: (e, t, n) => {
|
|
243
253
|
var r;
|
|
244
254
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
245
|
-
return ((r =
|
|
255
|
+
return ((r = w[o]) == null ? void 0 : r.name) || o;
|
|
246
256
|
}
|
|
247
|
-
},
|
|
257
|
+
}, yn = {
|
|
248
258
|
convertTo: (e, t, n, o) => {
|
|
249
259
|
e[t] = e[t];
|
|
250
260
|
},
|
|
251
261
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
252
|
-
},
|
|
262
|
+
}, vn = {
|
|
253
263
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
254
264
|
convertTo: (e, t, n) => {
|
|
255
265
|
if (n && n.length > 0) {
|
|
@@ -257,29 +267,35 @@ const an = {
|
|
|
257
267
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
|
|
258
268
|
}
|
|
259
269
|
}
|
|
260
|
-
},
|
|
270
|
+
}, bn = {
|
|
261
271
|
convertTo: (e, t, n, o) => {
|
|
262
272
|
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
263
273
|
},
|
|
264
274
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
265
|
-
},
|
|
275
|
+
}, hn = {
|
|
276
|
+
convertTo: (e, t, n, o) => {
|
|
277
|
+
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
|
|
278
|
+
},
|
|
279
|
+
convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
280
|
+
}, Cn = {
|
|
266
281
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
267
|
-
},
|
|
282
|
+
}, Fn = {
|
|
268
283
|
convertFrom: (e, t) => e[t] || "",
|
|
269
284
|
convertTo: (e, t, n) => {
|
|
270
285
|
e[t] = n;
|
|
271
286
|
}
|
|
272
|
-
},
|
|
273
|
-
["/converter/appearance.converter",
|
|
274
|
-
["/converter/buttons.converter",
|
|
275
|
-
["/converter/property-editor.converter",
|
|
276
|
-
["/converter/items-count.converter",
|
|
277
|
-
["/converter/type.converter",
|
|
278
|
-
["/converter/change-editor.converter",
|
|
279
|
-
["/converter/form-group-label.converter",
|
|
280
|
-
["/converter/field-selector.converter",
|
|
281
|
-
["/converter/pagination.converter",
|
|
282
|
-
|
|
287
|
+
}, oe = {}, ne = /* @__PURE__ */ new Map([
|
|
288
|
+
["/converter/appearance.converter", pn],
|
|
289
|
+
["/converter/buttons.converter", fn],
|
|
290
|
+
["/converter/property-editor.converter", mn],
|
|
291
|
+
["/converter/items-count.converter", Cn],
|
|
292
|
+
["/converter/type.converter", gn],
|
|
293
|
+
["/converter/change-editor.converter", yn],
|
|
294
|
+
["/converter/form-group-label.converter", Fn],
|
|
295
|
+
["/converter/field-selector.converter", vn],
|
|
296
|
+
["/converter/pagination.converter", bn],
|
|
297
|
+
["/converter/row-number.converter", hn]
|
|
298
|
+
]), xn = {}, Tn = /* @__PURE__ */ new Map([
|
|
283
299
|
["string", { type: "input-group", enableClear: !1 }],
|
|
284
300
|
["boolean", {
|
|
285
301
|
type: "combo-list",
|
|
@@ -302,74 +318,73 @@ const an = {
|
|
|
302
318
|
["array", { type: "button-edit" }],
|
|
303
319
|
["number", { type: "number-spinner" }],
|
|
304
320
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
305
|
-
]),
|
|
306
|
-
function
|
|
307
|
-
return () =>
|
|
321
|
+
]), wn = sn();
|
|
322
|
+
function ye(e, t) {
|
|
323
|
+
return () => wn.parseValueSchema(e, t);
|
|
308
324
|
}
|
|
309
|
-
function
|
|
310
|
-
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 :
|
|
325
|
+
function kn(e, t, n) {
|
|
326
|
+
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : ye(t.visible, n) : () => !0;
|
|
311
327
|
}
|
|
312
|
-
function
|
|
313
|
-
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.
|
|
328
|
+
function Bn(e, t, n) {
|
|
329
|
+
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.readonly == "boolean" ? () => !!t.readonly : ye(t.readonly, n) : () => !1;
|
|
314
330
|
}
|
|
315
|
-
function
|
|
331
|
+
function Sn(e, t) {
|
|
316
332
|
const n = e.$converter || t;
|
|
317
|
-
return typeof n == "string" && n &&
|
|
333
|
+
return typeof n == "string" && n && ne.has(n) ? ne.get(n) || null : n || null;
|
|
318
334
|
}
|
|
319
|
-
function
|
|
335
|
+
function re(e, t, n, o, r, d = "", u = "") {
|
|
320
336
|
return Object.keys(e).map((c) => {
|
|
321
|
-
const i =
|
|
322
|
-
|
|
323
|
-
const L = a.type === "cascade" ?
|
|
324
|
-
let
|
|
325
|
-
const O =
|
|
337
|
+
const i = F(1), g = c, a = e[c], v = Object.keys(a), s = a.title, b = a.type, B = Tn.get(b) || { type: "input-group", enableClear: !1 }, S = a.editor ? Object.assign({}, B, a.editor) : Object.assign({}, B), M = kn(v, a, t), j = Bn(v, a, t);
|
|
338
|
+
S.readonly = j();
|
|
339
|
+
const L = a.type === "cascade" ? re(a.properties, t, n, o, r, d, u) : [], P = !0;
|
|
340
|
+
let E = Sn(a, u);
|
|
341
|
+
const O = N({
|
|
326
342
|
get() {
|
|
327
343
|
if (i.value) {
|
|
328
|
-
if (["class", "style"].find((
|
|
329
|
-
return
|
|
330
|
-
const
|
|
331
|
-
return typeof
|
|
344
|
+
if (["class", "style"].find((G) => G === g) && !E && (E = ne.get("/converter/appearance.converter") || null), E && E.convertFrom)
|
|
345
|
+
return E.convertFrom(n, c, r, d);
|
|
346
|
+
const V = n[c];
|
|
347
|
+
return typeof V == "string" && V === "" ? a.defaultValue || "" : V;
|
|
332
348
|
}
|
|
333
349
|
return null;
|
|
334
350
|
},
|
|
335
|
-
set(
|
|
336
|
-
i.value += 1,
|
|
351
|
+
set(V) {
|
|
352
|
+
i.value += 1, E && E.convertTo ? (E.convertTo(o, c, V, r, d), E.convertTo(n, c, V, r, d)) : (o[c] = V, n[c] = V);
|
|
337
353
|
}
|
|
338
|
-
}),
|
|
339
|
-
return t[
|
|
354
|
+
}), { refreshPanelAfterChanged: k } = a, $ = { propertyID: g, propertyName: s, propertyType: b, propertyValue: O, editor: S, visible: M, readonly: j, cascadeConfig: L, hideCascadeTitle: P, refreshPanelAfterChanged: k };
|
|
355
|
+
return t[g] = $, $;
|
|
340
356
|
});
|
|
341
357
|
}
|
|
342
|
-
function
|
|
343
|
-
const d = t.$ref.schema, u = t.$ref.converter,
|
|
358
|
+
function Pn(e, t, n, o, r = "") {
|
|
359
|
+
const d = t.$ref.schema, u = t.$ref.converter, T = n[d], c = T.type, i = ge(T), g = {}, a = oe[c];
|
|
344
360
|
if (a && a.categories) {
|
|
345
|
-
const
|
|
346
|
-
u && Object.keys(
|
|
347
|
-
|
|
361
|
+
const v = a.categories[e], s = v == null ? void 0 : v.title;
|
|
362
|
+
u && Object.keys(v.properties).forEach((S) => {
|
|
363
|
+
v.properties[S].$converter = u;
|
|
348
364
|
});
|
|
349
|
-
const
|
|
350
|
-
return { categoryId: e, categoryName: s, properties:
|
|
365
|
+
const b = (v == null ? void 0 : v.properties) || {}, B = re(b, g, i, T, o, r);
|
|
366
|
+
return { categoryId: e, categoryName: s, properties: B };
|
|
351
367
|
}
|
|
352
368
|
return { categoryId: e, categoryName: "", properties: [] };
|
|
353
369
|
}
|
|
354
|
-
function
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
if (Object.keys(c).length === 0 && n && n.getPropConfig && (c = n.getPropConfig(o)), c && c.categories) {
|
|
370
|
+
function K(e, t, n, o, r) {
|
|
371
|
+
const d = e.type, u = ge(e), T = {};
|
|
372
|
+
let c = r || oe[d];
|
|
373
|
+
if (c && Object.keys(c).length === 0 && n && n.getPropConfig && (c = n.getPropConfig(o)), c && c.categories) {
|
|
359
374
|
const i = [];
|
|
360
|
-
return Object.keys(c.categories).map((
|
|
361
|
-
const a = c.categories[
|
|
375
|
+
return Object.keys(c.categories).map((g) => {
|
|
376
|
+
const a = c.categories[g];
|
|
362
377
|
if (a.$ref) {
|
|
363
|
-
i.push(
|
|
378
|
+
i.push(Pn(g, a, e, t, o));
|
|
364
379
|
return;
|
|
365
380
|
}
|
|
366
|
-
const
|
|
367
|
-
i.push({ categoryId:
|
|
381
|
+
const v = a == null ? void 0 : a.title, s = a == null ? void 0 : a.tabId, b = a == null ? void 0 : a.tabName, B = a == null ? void 0 : a.hide, S = a == null ? void 0 : a.hideTitle, M = re(a.properties || {}, T, u, e, t, o, a.$converter), { setPropertyRelates: j } = a;
|
|
382
|
+
i.push({ categoryId: g, categoryName: v, tabId: s, tabName: b, hide: B, properties: M, hideTitle: S, setPropertyRelates: j });
|
|
368
383
|
}), i;
|
|
369
384
|
}
|
|
370
385
|
return [];
|
|
371
386
|
}
|
|
372
|
-
const
|
|
387
|
+
const En = {
|
|
373
388
|
/** 某一分类下的属性配置 */
|
|
374
389
|
// as PropType<ElementPropertyConfig>
|
|
375
390
|
category: { type: Object, default: {} },
|
|
@@ -378,22 +393,22 @@ const wn = {
|
|
|
378
393
|
propertyData: { type: Object, default: {} },
|
|
379
394
|
valueChanged: { type: Function },
|
|
380
395
|
triggerRefreshPanel: { type: Function }
|
|
381
|
-
},
|
|
396
|
+
}, In = {
|
|
382
397
|
elementConfig: { type: Object, default: {} },
|
|
383
398
|
category: { type: Object, default: {} }
|
|
384
399
|
};
|
|
385
|
-
function
|
|
386
|
-
return
|
|
387
|
-
const
|
|
388
|
-
return Object.assign(c,
|
|
400
|
+
function ve(e, t, n = /* @__PURE__ */ new Map(), o = (u, T, c, i) => T, r = {}, d = (u) => u) {
|
|
401
|
+
return ee[t.title] = t, un[t.title] = o, oe[t.title] = r, xn[t.title] = d, (u = {}) => {
|
|
402
|
+
const T = dn(u, t, n), c = Object.keys(e).reduce((i, g) => (i[g] = e[g].default, i), {});
|
|
403
|
+
return Object.assign(c, T);
|
|
389
404
|
};
|
|
390
405
|
}
|
|
391
406
|
function be(e, t) {
|
|
392
407
|
return { customClass: t.class, customStyle: t.style };
|
|
393
408
|
}
|
|
394
|
-
const
|
|
409
|
+
const On = /* @__PURE__ */ new Map([
|
|
395
410
|
["appearance", be]
|
|
396
|
-
]),
|
|
411
|
+
]), Nn = "https://json-schema.org/draft/2020-12/schema", Mn = "https://farris-design.gitee.io/form-group.schema.json", Vn = "form-group", jn = "A Farris Input Component", Ln = "object", Dn = {
|
|
397
412
|
id: {
|
|
398
413
|
description: "The unique identifier for a form group",
|
|
399
414
|
type: "string"
|
|
@@ -433,21 +448,27 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
433
448
|
lableWidth: {
|
|
434
449
|
description: "",
|
|
435
450
|
type: "number"
|
|
451
|
+
},
|
|
452
|
+
binding: {
|
|
453
|
+
description: "",
|
|
454
|
+
type: "object",
|
|
455
|
+
default: {}
|
|
436
456
|
}
|
|
437
|
-
},
|
|
457
|
+
}, Rn = [
|
|
438
458
|
"id",
|
|
439
459
|
"type"
|
|
440
|
-
],
|
|
441
|
-
$schema:
|
|
442
|
-
$id:
|
|
443
|
-
title:
|
|
444
|
-
description:
|
|
445
|
-
type:
|
|
446
|
-
properties:
|
|
447
|
-
required:
|
|
460
|
+
], $n = {
|
|
461
|
+
$schema: Nn,
|
|
462
|
+
$id: Mn,
|
|
463
|
+
title: Vn,
|
|
464
|
+
description: jn,
|
|
465
|
+
type: Ln,
|
|
466
|
+
properties: Dn,
|
|
467
|
+
required: Rn
|
|
448
468
|
}, he = {
|
|
449
469
|
id: { type: String, default: "" },
|
|
450
470
|
customClass: { type: String, default: "" },
|
|
471
|
+
customStyle: { type: String, default: "" },
|
|
451
472
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
452
473
|
editor: { type: Object, default: {} },
|
|
453
474
|
label: { type: String, default: "" },
|
|
@@ -459,23 +480,23 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
459
480
|
showLabel: { type: Boolean, default: !0 },
|
|
460
481
|
type: { type: String, default: "input-group" }
|
|
461
482
|
};
|
|
462
|
-
|
|
483
|
+
ve(
|
|
463
484
|
he,
|
|
464
|
-
|
|
465
|
-
|
|
485
|
+
$n,
|
|
486
|
+
On,
|
|
466
487
|
void 0
|
|
467
488
|
);
|
|
468
|
-
const
|
|
489
|
+
const An = {
|
|
469
490
|
id: { type: String },
|
|
470
491
|
required: { type: Boolean, default: !1 },
|
|
471
492
|
text: { type: String, default: "" },
|
|
472
493
|
title: { type: String }
|
|
473
|
-
},
|
|
494
|
+
}, Gn = /* @__PURE__ */ W({
|
|
474
495
|
name: "FDynamicFormLabel",
|
|
475
|
-
props:
|
|
496
|
+
props: An,
|
|
476
497
|
emits: [],
|
|
477
498
|
setup(e, t) {
|
|
478
|
-
const n =
|
|
499
|
+
const n = F(e.title || e.text), o = F(e.required), r = F(e.text);
|
|
479
500
|
return R(() => e.text, () => {
|
|
480
501
|
r.value = e.text;
|
|
481
502
|
}), R(() => e.required, (d, u) => {
|
|
@@ -485,17 +506,17 @@ const Vn = {
|
|
|
485
506
|
title: n.value
|
|
486
507
|
}, [o.value && l("span", {
|
|
487
508
|
class: "farris-label-info text-danger"
|
|
488
|
-
}, [
|
|
509
|
+
}, [pe("*")]), l("span", {
|
|
489
510
|
class: "farris-label-text"
|
|
490
511
|
}, [r.value])]);
|
|
491
512
|
}
|
|
492
|
-
}),
|
|
513
|
+
}), Un = /* @__PURE__ */ new Map([
|
|
493
514
|
["appearance", be]
|
|
494
515
|
]);
|
|
495
|
-
function
|
|
516
|
+
function qn(e, t, n) {
|
|
496
517
|
return t;
|
|
497
518
|
}
|
|
498
|
-
const
|
|
519
|
+
const Wn = "https://json-schema.org/draft/2020-12/schema", Hn = "https://farris-design.gitee.io/input-group.schema.json", Qn = "input-group", _n = "A Farris Input Component", zn = "object", Zn = {
|
|
499
520
|
id: {
|
|
500
521
|
description: "The unique identifier for a Input Group",
|
|
501
522
|
type: "string"
|
|
@@ -557,11 +578,6 @@ const An = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
557
578
|
type: "boolean",
|
|
558
579
|
default: !1
|
|
559
580
|
},
|
|
560
|
-
required: {
|
|
561
|
-
description: "",
|
|
562
|
-
type: "boolean",
|
|
563
|
-
default: !1
|
|
564
|
-
},
|
|
565
581
|
tabIndex: {
|
|
566
582
|
description: "",
|
|
567
583
|
type: "number",
|
|
@@ -697,17 +713,23 @@ const An = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
697
713
|
type: "string",
|
|
698
714
|
default: ""
|
|
699
715
|
}
|
|
700
|
-
},
|
|
716
|
+
}, Jn = [
|
|
701
717
|
"id",
|
|
702
718
|
"type"
|
|
703
|
-
],
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
719
|
+
], Xn = [
|
|
720
|
+
"id",
|
|
721
|
+
"appearance",
|
|
722
|
+
"binding",
|
|
723
|
+
"visible"
|
|
724
|
+
], Yn = {
|
|
725
|
+
$schema: Wn,
|
|
726
|
+
$id: Hn,
|
|
727
|
+
title: Qn,
|
|
728
|
+
description: _n,
|
|
729
|
+
type: zn,
|
|
730
|
+
properties: Zn,
|
|
731
|
+
required: Jn,
|
|
732
|
+
ignore: Xn
|
|
711
733
|
}, Ce = {
|
|
712
734
|
id: { Type: String, default: "" },
|
|
713
735
|
/** 是否自动完成 */
|
|
@@ -776,182 +798,54 @@ const An = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
776
798
|
*/
|
|
777
799
|
updateOn: { type: String, default: "blur" }
|
|
778
800
|
};
|
|
779
|
-
|
|
780
|
-
function
|
|
781
|
-
const
|
|
782
|
-
|
|
783
|
-
"f-utils-fill": !0,
|
|
784
|
-
"text-left": c.value === "left",
|
|
785
|
-
"text-center": c.value === "center",
|
|
786
|
-
"text-right": c.value === "right"
|
|
787
|
-
})), j = S(() => {
|
|
788
|
-
const P = {
|
|
789
|
-
"f-cmp-inputgroup": !0,
|
|
790
|
-
"input-group": !0,
|
|
791
|
-
"f-state-disable": r.value,
|
|
792
|
-
"f-state-editable": a.value,
|
|
793
|
-
"f-state-readonly": T.value,
|
|
794
|
-
"f-state-focus": f.value
|
|
795
|
-
};
|
|
796
|
-
return (e.customClass || "").split(" ").reduce((U, X) => (U[X] = !0, U), P), P;
|
|
797
|
-
}), L = S(() => C.value ? "" : "border-width : 0 ");
|
|
798
|
-
function k(P, A = !0) {
|
|
799
|
-
n.value = P, o.value !== P && (o.value = P), A && t.emit("change", P), t.emit("update:modelValue", P), t.emit("update:value", P);
|
|
800
|
-
}
|
|
801
|
-
R(
|
|
802
|
-
() => e.modelValue,
|
|
803
|
-
(P, A) => {
|
|
804
|
-
P !== A && (n.value = P, o.value = P);
|
|
805
|
-
}
|
|
806
|
-
), R(() => e.disabled, (P, A) => {
|
|
807
|
-
P !== A && (r.value = P);
|
|
808
|
-
});
|
|
809
|
-
function I(P) {
|
|
810
|
-
return d.value = !1, t.emit("blur", P), P.stopPropagation(), !1;
|
|
811
|
-
}
|
|
812
|
-
function O(P) {
|
|
813
|
-
t.emit("click", P);
|
|
814
|
-
}
|
|
815
|
-
function B(P) {
|
|
816
|
-
e.disabled || (C.value && (d.value = !0), p.value && t.emit("focus", P));
|
|
817
|
-
}
|
|
818
|
-
function D(P) {
|
|
819
|
-
t.emit("input", P.target.value);
|
|
820
|
-
const A = P.target.value;
|
|
821
|
-
o.value = A, i.value === "change" && (t.emit("update:modelValue", A), t.emit("update:value", A));
|
|
822
|
-
}
|
|
823
|
-
function N(P) {
|
|
824
|
-
t.emit("keydown", P);
|
|
825
|
-
}
|
|
826
|
-
function q(P) {
|
|
827
|
-
t.emit("keyup", P);
|
|
828
|
-
}
|
|
829
|
-
function _(P) {
|
|
830
|
-
P.target.tagName !== "INPUT" && P.preventDefault(), P.stopPropagation();
|
|
831
|
-
}
|
|
832
|
-
function z(P) {
|
|
833
|
-
if (i.value === "blur") {
|
|
834
|
-
const A = P.target.value;
|
|
835
|
-
P.stopPropagation(), k(A);
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
return {
|
|
839
|
-
changeTextBoxValue: k,
|
|
840
|
-
disabled: r,
|
|
841
|
-
displayText: o,
|
|
842
|
-
editable: a,
|
|
843
|
-
hasFocused: f,
|
|
844
|
-
inputGroupClass: j,
|
|
845
|
-
inputType: u,
|
|
846
|
-
isEmpty: s,
|
|
847
|
-
modelValue: n,
|
|
848
|
-
readonly: T,
|
|
849
|
-
onBlur: I,
|
|
850
|
-
onClick: O,
|
|
851
|
-
onFocus: B,
|
|
852
|
-
onInput: D,
|
|
853
|
-
onKeydown: N,
|
|
854
|
-
onKeyup: q,
|
|
855
|
-
onMousedown: _,
|
|
856
|
-
onTextBoxValueChange: z,
|
|
857
|
-
placeholder: m,
|
|
858
|
-
textBoxClass: V,
|
|
859
|
-
textBoxTitle: E,
|
|
860
|
-
inputGroupStyle: L
|
|
861
|
-
};
|
|
862
|
-
}
|
|
863
|
-
function _n(e, t, n) {
|
|
864
|
-
const o = h(!1), r = S(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: d, displayText: u, hasFocused: C, isEmpty: c } = n;
|
|
865
|
-
function i(T) {
|
|
866
|
-
o.value = T;
|
|
867
|
-
}
|
|
868
|
-
R(u, () => {
|
|
869
|
-
C != null && C.value ? i(!!(u != null && u.value)) : i(!1);
|
|
870
|
-
});
|
|
871
|
-
const p = S(() => ({
|
|
872
|
-
"input-group-text": !0,
|
|
873
|
-
"input-group-clear": !0
|
|
874
|
-
})), a = S(() => ({
|
|
875
|
-
width: "24px",
|
|
876
|
-
display: o.value ? "flex" : "none"
|
|
877
|
-
}));
|
|
878
|
-
function f(T) {
|
|
879
|
-
T.stopPropagation(), r.value && (d("", !0), i(!o.value), t.emit("clear"));
|
|
880
|
-
}
|
|
881
|
-
function s(T) {
|
|
882
|
-
r.value && !c.value && i(!0);
|
|
883
|
-
}
|
|
884
|
-
function m(T) {
|
|
885
|
-
r.value && i(!1);
|
|
886
|
-
}
|
|
887
|
-
return { clearButtonClass: p, clearButtonStyle: a, hasShownClearButton: o, onClearValue: f, onMouseEnter: s, onMouseLeave: m, shouldShowClearButton: r };
|
|
888
|
-
}
|
|
889
|
-
const zn = ["moz", "ms", "webkit"];
|
|
890
|
-
function Qn() {
|
|
891
|
-
let e = 0;
|
|
892
|
-
return (t) => {
|
|
893
|
-
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), r = setTimeout(() => {
|
|
894
|
-
t(n + o);
|
|
895
|
-
}, o);
|
|
896
|
-
return e = n + o, r;
|
|
897
|
-
};
|
|
898
|
-
}
|
|
899
|
-
function Zn() {
|
|
900
|
-
if (typeof window > "u")
|
|
901
|
-
return () => 0;
|
|
902
|
-
if (window.requestAnimationFrame)
|
|
903
|
-
return window.requestAnimationFrame.bind(window);
|
|
904
|
-
const e = zn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
905
|
-
return e ? window[`${e}RequestAnimationFrame`] : Qn();
|
|
906
|
-
}
|
|
907
|
-
Zn();
|
|
908
|
-
function Jn(e, t) {
|
|
909
|
-
const n = h(e.groupText), o = S(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = S(() => e.enableClear || !!e.groupText);
|
|
910
|
-
return { appendedButtonClass: S(() => ({
|
|
801
|
+
ve(Ce, Yn, Un, qn);
|
|
802
|
+
function Kn(e, t) {
|
|
803
|
+
const n = F(e.groupText), o = N(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = N(() => e.enableClear || !!e.groupText);
|
|
804
|
+
return { appendedButtonClass: N(() => ({
|
|
911
805
|
"input-group-append": !0,
|
|
912
806
|
"append-force-show": o.value
|
|
913
807
|
})), appendedContent: n, shouldShowAppendedButton: r };
|
|
914
808
|
}
|
|
915
|
-
function
|
|
916
|
-
const { appendedContent: r } = o, d =
|
|
917
|
-
R(() => [e.readonly, e.disabled], ([
|
|
918
|
-
u.value && (n.value =
|
|
809
|
+
function eo(e, t, n, o) {
|
|
810
|
+
const { appendedContent: r } = o, d = F(e.enableViewPassword), u = N(() => e.type === "password"), T = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', c = '<span class="f-icon f-icon-eye"></span>', i = F(!1);
|
|
811
|
+
R(() => [e.readonly, e.disabled], ([v, s]) => {
|
|
812
|
+
u.value && (n.value = v || s ? "password" : n.value, r.value = v || s ? c : r.value);
|
|
919
813
|
});
|
|
920
|
-
function
|
|
921
|
-
return i.value = !i.value, n.value = i.value ? "text" : "password", r.value = i.value ?
|
|
814
|
+
function g() {
|
|
815
|
+
return i.value = !i.value, n.value = i.value ? "text" : "password", r.value = i.value ? T : c, !1;
|
|
922
816
|
}
|
|
923
817
|
function a() {
|
|
924
818
|
n.value = u.value ? "password" : "text", r.value = u.value ? d.value ? c : "" : r.value;
|
|
925
819
|
}
|
|
926
|
-
return a(), { isPassword: u, onClickAppendedButton:
|
|
820
|
+
return a(), { isPassword: u, onClickAppendedButton: g };
|
|
927
821
|
}
|
|
928
|
-
function
|
|
929
|
-
const o =
|
|
822
|
+
function to(e, t, n) {
|
|
823
|
+
const o = F(), {
|
|
930
824
|
onBlurTextBox: r,
|
|
931
825
|
onFocusTextBox: d,
|
|
932
826
|
onInput: u,
|
|
933
|
-
onKeyDown:
|
|
827
|
+
onKeyDown: T,
|
|
934
828
|
textBoxValue: c
|
|
935
|
-
} = n, i =
|
|
829
|
+
} = n, i = N(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), g = N(() => ({
|
|
936
830
|
"form-control": !0,
|
|
937
831
|
"f-utils-fill": !0
|
|
938
|
-
})), a =
|
|
832
|
+
})), a = N(() => ({
|
|
939
833
|
"text-align": e.textAlign
|
|
940
834
|
}));
|
|
941
|
-
function
|
|
942
|
-
|
|
835
|
+
function v(B) {
|
|
836
|
+
B.stopPropagation();
|
|
943
837
|
}
|
|
944
838
|
function s() {
|
|
945
839
|
e.selectOnCreated, e.focusOnCreated;
|
|
946
840
|
}
|
|
947
|
-
async function
|
|
948
|
-
d(
|
|
841
|
+
async function b(B) {
|
|
842
|
+
d(B), await le, s();
|
|
949
843
|
}
|
|
950
|
-
return
|
|
844
|
+
return q(async () => {
|
|
951
845
|
await le, s();
|
|
952
846
|
}), () => l("input", {
|
|
953
847
|
ref: o,
|
|
954
|
-
class:
|
|
848
|
+
class: g.value,
|
|
955
849
|
style: a.value,
|
|
956
850
|
type: "text",
|
|
957
851
|
value: c.value,
|
|
@@ -959,35 +853,35 @@ function Yn(e, t, n) {
|
|
|
959
853
|
readonly: e.readonly || !e.editable,
|
|
960
854
|
placeholder: i.value,
|
|
961
855
|
onBlur: r,
|
|
962
|
-
onChange:
|
|
963
|
-
onFocus:
|
|
856
|
+
onChange: v,
|
|
857
|
+
onFocus: b,
|
|
964
858
|
onInput: u,
|
|
965
|
-
onKeydown:
|
|
859
|
+
onKeydown: T
|
|
966
860
|
}, null);
|
|
967
861
|
}
|
|
968
|
-
function
|
|
862
|
+
function no(e, t, n) {
|
|
969
863
|
const {
|
|
970
864
|
canDownward: o,
|
|
971
865
|
canUpward: r,
|
|
972
866
|
onClickDownButton: d,
|
|
973
867
|
onClickUpButton: u
|
|
974
|
-
} = n,
|
|
868
|
+
} = n, T = N(() => ({
|
|
975
869
|
"input-group-append": !0,
|
|
976
870
|
"btn-group": !0,
|
|
977
871
|
"btn-group-number": !0
|
|
978
|
-
})), c =
|
|
872
|
+
})), c = N(() => ({
|
|
979
873
|
btn: !0,
|
|
980
874
|
"btn-secondary": !0,
|
|
981
875
|
"btn-number-flag": !0
|
|
982
|
-
})), i =
|
|
876
|
+
})), i = N(() => ({
|
|
983
877
|
cursor: r() ? "pointer" : "not-allowed",
|
|
984
878
|
"margin-left": 0
|
|
985
|
-
})),
|
|
879
|
+
})), g = N(() => ({
|
|
986
880
|
cursor: o() ? "pointer" : "not-allowed",
|
|
987
881
|
"margin-left": 0
|
|
988
882
|
}));
|
|
989
883
|
return () => l("div", {
|
|
990
|
-
class:
|
|
884
|
+
class: T.value
|
|
991
885
|
}, [l("button", {
|
|
992
886
|
title: "upButton",
|
|
993
887
|
class: c.value,
|
|
@@ -999,195 +893,195 @@ function Kn(e, t, n) {
|
|
|
999
893
|
}, null)]), l("button", {
|
|
1000
894
|
title: "downButton",
|
|
1001
895
|
class: c.value,
|
|
1002
|
-
style:
|
|
896
|
+
style: g.value,
|
|
1003
897
|
onClick: d,
|
|
1004
898
|
disabled: !o()
|
|
1005
899
|
}, [l("span", {
|
|
1006
900
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1007
901
|
}, null)])]);
|
|
1008
902
|
}
|
|
1009
|
-
function
|
|
1010
|
-
const n =
|
|
1011
|
-
displayValue:
|
|
903
|
+
function oo(e, t) {
|
|
904
|
+
const n = Je(e, t), o = Xe(e, t, n), r = Ye(e, t, o, n), d = Ke(e, t, o, n, r), u = no(e, t, r), {
|
|
905
|
+
displayValue: T,
|
|
1012
906
|
modelValue: c,
|
|
1013
907
|
getRealValue: i
|
|
1014
|
-
} = n,
|
|
908
|
+
} = n, g = to(e, t, d), {
|
|
1015
909
|
format: a
|
|
1016
910
|
} = o, {
|
|
1017
|
-
isFocus:
|
|
1018
|
-
} = d, s =
|
|
1019
|
-
return
|
|
1020
|
-
const
|
|
1021
|
-
|
|
1022
|
-
}), R(() => [e.value], ([
|
|
1023
|
-
const
|
|
1024
|
-
c.value =
|
|
1025
|
-
}), R(() => [e.modelValue], ([
|
|
1026
|
-
|
|
911
|
+
isFocus: v
|
|
912
|
+
} = d, s = N(() => !e.disabled && !e.readonly);
|
|
913
|
+
return q(() => {
|
|
914
|
+
const b = i(e.modelValue);
|
|
915
|
+
T.value = a(b);
|
|
916
|
+
}), R(() => [e.value], ([b]) => {
|
|
917
|
+
const B = i(b);
|
|
918
|
+
c.value = B, T.value = a(B);
|
|
919
|
+
}), R(() => [e.modelValue], ([b]) => {
|
|
920
|
+
b !== c.value && (c.value = b, !v.value && (T.value = a(i(b))));
|
|
1027
921
|
}), R(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1028
|
-
|
|
922
|
+
T.value = a(c.value);
|
|
1029
923
|
}), () => l("div", {
|
|
1030
924
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1031
|
-
}, [
|
|
925
|
+
}, [g(), s.value && u()]);
|
|
1032
926
|
}
|
|
1033
|
-
function
|
|
1034
|
-
const r =
|
|
1035
|
-
isPassword:
|
|
1036
|
-
} = n, c =
|
|
927
|
+
function ro(e, t, n, o) {
|
|
928
|
+
const r = F(), d = F(e.autocomplete), u = F(e.enableTitle), {
|
|
929
|
+
isPassword: T
|
|
930
|
+
} = n, c = F(e.minLength), i = F(e.maxLength), g = F(e.tabIndex), {
|
|
1037
931
|
disabled: a,
|
|
1038
|
-
displayText:
|
|
932
|
+
displayText: v,
|
|
1039
933
|
inputType: s,
|
|
1040
|
-
onBlur:
|
|
1041
|
-
onFocus:
|
|
1042
|
-
onInput:
|
|
1043
|
-
onClick:
|
|
934
|
+
onBlur: b,
|
|
935
|
+
onFocus: B,
|
|
936
|
+
onInput: S,
|
|
937
|
+
onClick: M,
|
|
1044
938
|
onKeydown: j,
|
|
1045
939
|
onKeyup: L,
|
|
1046
|
-
onMousedown:
|
|
1047
|
-
onTextBoxValueChange:
|
|
940
|
+
onMousedown: P,
|
|
941
|
+
onTextBoxValueChange: E,
|
|
1048
942
|
readonly: O,
|
|
1049
|
-
placeholder:
|
|
1050
|
-
textBoxClass:
|
|
1051
|
-
textBoxTitle:
|
|
943
|
+
placeholder: k,
|
|
944
|
+
textBoxClass: $,
|
|
945
|
+
textBoxTitle: V
|
|
1052
946
|
} = o;
|
|
1053
|
-
return
|
|
947
|
+
return q(() => {
|
|
1054
948
|
e.selectOnCreated, e.focusOnCreated;
|
|
1055
949
|
}), () => l("input", {
|
|
1056
950
|
ref: r,
|
|
1057
951
|
name: "input-group-value",
|
|
1058
952
|
autocomplete: d.value,
|
|
1059
|
-
class:
|
|
953
|
+
class: $.value,
|
|
1060
954
|
disabled: a == null ? void 0 : a.value,
|
|
1061
955
|
maxlength: i.value,
|
|
1062
956
|
minlength: c.value,
|
|
1063
|
-
placeholder:
|
|
957
|
+
placeholder: k.value,
|
|
1064
958
|
readonly: O == null ? void 0 : O.value,
|
|
1065
|
-
tabindex:
|
|
1066
|
-
title: u.value && !
|
|
959
|
+
tabindex: g.value,
|
|
960
|
+
title: u.value && !T.value ? V.value : "",
|
|
1067
961
|
type: s.value,
|
|
1068
|
-
value:
|
|
1069
|
-
onBlur:
|
|
1070
|
-
onClick:
|
|
1071
|
-
onChange:
|
|
1072
|
-
onFocus:
|
|
1073
|
-
onInput:
|
|
962
|
+
value: v == null ? void 0 : v.value,
|
|
963
|
+
onBlur: b,
|
|
964
|
+
onClick: M,
|
|
965
|
+
onChange: E,
|
|
966
|
+
onFocus: B,
|
|
967
|
+
onInput: S,
|
|
1074
968
|
onKeydown: j,
|
|
1075
969
|
onKeyup: L,
|
|
1076
|
-
onMousedown:
|
|
970
|
+
onMousedown: P
|
|
1077
971
|
}, null);
|
|
1078
972
|
}
|
|
1079
|
-
function
|
|
1080
|
-
const n =
|
|
973
|
+
function ao(e, t) {
|
|
974
|
+
const n = N(() => e.useExtendInfo && !!e.extendInfo), o = Ge({
|
|
1081
975
|
content: e.extendInfo
|
|
1082
976
|
});
|
|
1083
977
|
function r() {
|
|
1084
978
|
t.emit("updateExtendInfo");
|
|
1085
979
|
}
|
|
1086
|
-
return () => n.value &&
|
|
980
|
+
return () => n.value && Ue(l("span", {
|
|
1087
981
|
class: "input-group-before-tips",
|
|
1088
982
|
onMouseenter: r
|
|
1089
983
|
}, [l("i", {
|
|
1090
984
|
class: "f-icon f-icon-info-circle"
|
|
1091
985
|
}, null), l("b", {
|
|
1092
986
|
class: "tips-arrow"
|
|
1093
|
-
}, null)]), [[
|
|
987
|
+
}, null)]), [[qe("tooltip"), o]]);
|
|
1094
988
|
}
|
|
1095
|
-
function
|
|
989
|
+
function io(e, t, n, o, r) {
|
|
1096
990
|
const {
|
|
1097
991
|
appendedButtonClass: d,
|
|
1098
992
|
appendedContent: u
|
|
1099
|
-
} = n,
|
|
1100
|
-
clearButtonClass:
|
|
993
|
+
} = n, T = N(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), c = N(() => u.value && !t.slots.groupTextTemplate), i = N(() => !!t.slots.groupTextTemplate), {
|
|
994
|
+
clearButtonClass: g,
|
|
1101
995
|
clearButtonStyle: a,
|
|
1102
|
-
onClearValue:
|
|
996
|
+
onClearValue: v,
|
|
1103
997
|
shouldShowClearButton: s
|
|
1104
998
|
} = o;
|
|
1105
|
-
function
|
|
999
|
+
function b() {
|
|
1106
1000
|
return l("span", {
|
|
1107
1001
|
id: "clearIcon",
|
|
1108
|
-
class:
|
|
1002
|
+
class: g.value,
|
|
1109
1003
|
style: a.value,
|
|
1110
|
-
onClick: (
|
|
1004
|
+
onClick: (k) => v(k)
|
|
1111
1005
|
}, [l("i", {
|
|
1112
1006
|
class: "f-icon modal_close"
|
|
1113
1007
|
}, null)]);
|
|
1114
1008
|
}
|
|
1115
|
-
function
|
|
1116
|
-
t.emit("iconMouseEnter",
|
|
1009
|
+
function B(k) {
|
|
1010
|
+
t.emit("iconMouseEnter", k);
|
|
1117
1011
|
}
|
|
1118
|
-
function
|
|
1119
|
-
t.emit("iconMouseLeave",
|
|
1012
|
+
function S(k) {
|
|
1013
|
+
t.emit("iconMouseLeave", k);
|
|
1120
1014
|
}
|
|
1121
|
-
function
|
|
1122
|
-
|
|
1123
|
-
originalEvent:
|
|
1124
|
-
}),
|
|
1015
|
+
function M(k) {
|
|
1016
|
+
T.value && t.emit("clickHandle", {
|
|
1017
|
+
originalEvent: k
|
|
1018
|
+
}), k.stopPropagation();
|
|
1125
1019
|
}
|
|
1126
|
-
const j = e.type === "password" ? r.onClickAppendedButton :
|
|
1020
|
+
const j = e.type === "password" ? r.onClickAppendedButton : M;
|
|
1127
1021
|
function L() {
|
|
1128
1022
|
return l("span", {
|
|
1129
1023
|
class: "input-group-text",
|
|
1130
|
-
onMouseenter: (
|
|
1131
|
-
onMouseleave: (
|
|
1024
|
+
onMouseenter: (k) => B(k),
|
|
1025
|
+
onMouseleave: (k) => S(k),
|
|
1132
1026
|
innerHTML: u.value,
|
|
1133
|
-
onClick: (
|
|
1027
|
+
onClick: (k) => j(k)
|
|
1134
1028
|
}, null);
|
|
1135
1029
|
}
|
|
1136
|
-
function
|
|
1030
|
+
function P() {
|
|
1137
1031
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
1138
1032
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return c.value ? L : i.value ?
|
|
1033
|
+
function E() {
|
|
1034
|
+
return c.value ? L : i.value ? P : "";
|
|
1141
1035
|
}
|
|
1142
|
-
const O =
|
|
1036
|
+
const O = E();
|
|
1143
1037
|
return () => l("div", {
|
|
1144
1038
|
class: d.value
|
|
1145
|
-
}, [s.value &&
|
|
1039
|
+
}, [s.value && b(), O && O()]);
|
|
1146
1040
|
}
|
|
1147
|
-
const
|
|
1041
|
+
const lo = /* @__PURE__ */ W({
|
|
1148
1042
|
name: "FInputGroup",
|
|
1149
1043
|
props: Ce,
|
|
1150
1044
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
1151
1045
|
setup(e, t) {
|
|
1152
|
-
const n =
|
|
1046
|
+
const n = F(e.modelValue), o = F(e.modelValue), r = _e(e, t, n, o), {
|
|
1153
1047
|
inputGroupClass: d,
|
|
1154
1048
|
inputType: u,
|
|
1155
|
-
inputGroupStyle:
|
|
1156
|
-
} = r, c =
|
|
1049
|
+
inputGroupStyle: T
|
|
1050
|
+
} = r, c = Kn(e), {
|
|
1157
1051
|
shouldShowAppendedButton: i
|
|
1158
|
-
} = c,
|
|
1052
|
+
} = c, g = ze(e, t, r), {
|
|
1159
1053
|
onMouseEnter: a,
|
|
1160
|
-
onMouseLeave:
|
|
1161
|
-
} =
|
|
1162
|
-
R(() => [e.value], ([
|
|
1163
|
-
n.value =
|
|
1164
|
-
}), R(() => [e.modelValue], ([
|
|
1165
|
-
n.value =
|
|
1166
|
-
}),
|
|
1054
|
+
onMouseLeave: v
|
|
1055
|
+
} = g, s = eo(e, t, u, c), b = oo(e, t), B = ro(e, t, s, r), S = io(e, t, c, g, s), M = ao(e, t), j = N(() => e.type === "number");
|
|
1056
|
+
R(() => [e.value], ([P]) => {
|
|
1057
|
+
n.value = P, o.value = P;
|
|
1058
|
+
}), R(() => [e.modelValue], ([P]) => {
|
|
1059
|
+
n.value = P, o.value = P;
|
|
1060
|
+
}), q(() => {
|
|
1167
1061
|
e.value && (n.value = e.value, o.value = e.value);
|
|
1168
1062
|
});
|
|
1169
|
-
const L = () => l(
|
|
1063
|
+
const L = () => l(z, null, [l("div", {
|
|
1170
1064
|
id: e.id,
|
|
1171
1065
|
class: d.value,
|
|
1172
|
-
style:
|
|
1066
|
+
style: T.value,
|
|
1173
1067
|
onMouseenter: a,
|
|
1174
|
-
onMouseleave:
|
|
1175
|
-
}, [j.value ?
|
|
1068
|
+
onMouseleave: v
|
|
1069
|
+
}, [j.value ? b() : l(z, null, [M(), B(), i.value && S()])])]);
|
|
1176
1070
|
return () => L();
|
|
1177
1071
|
}
|
|
1178
|
-
}),
|
|
1072
|
+
}), p = {}, f = {}, m = {}, y = {};
|
|
1179
1073
|
let ue = !1;
|
|
1180
|
-
function
|
|
1181
|
-
ue || (ue = !0,
|
|
1074
|
+
function so() {
|
|
1075
|
+
ue || (ue = !0, tt.register(p, f, m, y), et.register(p, f, m, y), nt.register(p, f, m, y), ot.register(p, f, m, y), rt.register(p, f, m, y), at.register(p, f, m, y), it.register(p, f, m, y), lt.register(p, f, m, y), st.register(p, f, m, y), ut.register(p, f, m, y), dt.register(p, f, m, y), ct.register(p, f, m, y), pt.register(p, f, m, y), ft.register(p, f, m, y), mt.register(p, f, m, y), gt.register(p, f, m, y), yt.register(p, f, m, y), vt.register(p, f, m, y), bt.register(p, f, m, y), Ct.register(p, f, m, y), Ft.register(p, f, m, y), xt.register(p, f, m, y), wt.register(p, f, m, y), Tt.register(p, f, m, y), kt.register(p, f, m, y), Bt.register(p, f, m, y), St.register(p, f, m, y), Pt.register(p, f, m, y), Ze.register(p, f, m, y), Et.register(p, f, m, y), It.register(p, f, m, y), Ot.register(p, f, m, y), Nt.register(p, f, m, y), Mt.register(p, f, m, y), Vt.register(p, f, m, y), jt.register(p, f, m, y), Lt.register(p, f, m, y), Rt.register(p, f, m, y), $t.register(p, f, m, y), Dt.register(p, f, m, y), on.register(p, f, m), At.register(p, f, m, y), Gt.register(p, f, m, y), Ut.register(p, f, m, y), qt.register(p, f, m, y), Wt.register(p, f, m, y), Ht.register(p, f, m, y), Qt.register(p, f, m, y), _t.register(p, f, m, y), zt.register(p, f, m, y), Zt.register(p, f, m, y), Jt.register(p, f, m, y), Xt.register(p, f, m, y), Kt.register(p, f, m, y), Yt.register(p, f, m, y), en.register(p, f, m, y), tn.register(p, f, m, y), nn.register(p, f, m, y), rn.register(p, f, m, y), ht.register(p, f, m, y), an.register(p, f, m, y));
|
|
1182
1076
|
}
|
|
1183
|
-
function
|
|
1184
|
-
|
|
1185
|
-
function e(r
|
|
1186
|
-
|
|
1187
|
-
return u ? u(d) : {};
|
|
1077
|
+
function uo() {
|
|
1078
|
+
so();
|
|
1079
|
+
function e(r) {
|
|
1080
|
+
return p[r] || lo;
|
|
1188
1081
|
}
|
|
1189
|
-
function t(r) {
|
|
1190
|
-
|
|
1082
|
+
function t(r, d) {
|
|
1083
|
+
const u = f[r];
|
|
1084
|
+
return u ? u(d) : {};
|
|
1191
1085
|
}
|
|
1192
1086
|
function n(r) {
|
|
1193
1087
|
switch (r) {
|
|
@@ -1236,9 +1130,12 @@ function io() {
|
|
|
1236
1130
|
return "onSavedCommandListChanged";
|
|
1237
1131
|
case "grid-field-editor":
|
|
1238
1132
|
return "onChange";
|
|
1133
|
+
case "item-collection-editor":
|
|
1134
|
+
return "onChange";
|
|
1239
1135
|
case "response-form-layout-setting":
|
|
1240
1136
|
return "onChange";
|
|
1241
1137
|
case "field-selector":
|
|
1138
|
+
case "binding-selector":
|
|
1242
1139
|
return "onFieldSelected";
|
|
1243
1140
|
case "schema-selector":
|
|
1244
1141
|
return "onSchemaSelected";
|
|
@@ -1246,6 +1143,8 @@ function io() {
|
|
|
1246
1143
|
return "onMappingFieldsChanged";
|
|
1247
1144
|
case "textarea":
|
|
1248
1145
|
return "onValueChange";
|
|
1146
|
+
case "query-solution-config":
|
|
1147
|
+
return "onFieldsChanged";
|
|
1249
1148
|
}
|
|
1250
1149
|
}
|
|
1251
1150
|
function o(r) {
|
|
@@ -1256,53 +1155,54 @@ function io() {
|
|
|
1256
1155
|
return "onClear";
|
|
1257
1156
|
}
|
|
1258
1157
|
}
|
|
1259
|
-
return { resolveEditorProps:
|
|
1158
|
+
return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
|
|
1260
1159
|
}
|
|
1261
|
-
const
|
|
1160
|
+
const co = /* @__PURE__ */ W({
|
|
1262
1161
|
name: "FDynamicFormGroup",
|
|
1263
1162
|
props: he,
|
|
1264
1163
|
emits: ["change", "update:modelValue"],
|
|
1265
1164
|
setup(e, t) {
|
|
1266
|
-
const n =
|
|
1267
|
-
|
|
1268
|
-
const a =
|
|
1269
|
-
resolveEditorProps:
|
|
1165
|
+
const n = F(e.id), o = F(e.customClass), r = F(e.editor), d = F(e.label), u = F(e.modelValue), T = F(e.readonly), c = F(e.required), i = F(e.showLabel), g = F(e.visible);
|
|
1166
|
+
F(e.type);
|
|
1167
|
+
const a = F(), {
|
|
1168
|
+
resolveEditorProps: v,
|
|
1270
1169
|
resolveEditorType: s,
|
|
1271
|
-
getChangeFunctionName:
|
|
1272
|
-
getClearFunctionName:
|
|
1273
|
-
} =
|
|
1170
|
+
getChangeFunctionName: b,
|
|
1171
|
+
getClearFunctionName: B
|
|
1172
|
+
} = uo(), S = N(() => ({
|
|
1274
1173
|
"form-group": !0,
|
|
1275
1174
|
"farris-form-group": !0,
|
|
1276
1175
|
"common-group": !0,
|
|
1277
|
-
"q-state-readonly":
|
|
1176
|
+
"q-state-readonly": T.value
|
|
1278
1177
|
}));
|
|
1279
|
-
function
|
|
1280
|
-
u.value =
|
|
1178
|
+
function M(P, E) {
|
|
1179
|
+
u.value = E !== void 0 ? E : P, t.emit("update:modelValue", u.value), t.emit("change", u.value);
|
|
1281
1180
|
}
|
|
1282
1181
|
function j() {
|
|
1283
1182
|
t.emit("update:modelValue", "");
|
|
1284
1183
|
}
|
|
1285
|
-
const L =
|
|
1286
|
-
const
|
|
1287
|
-
return O[
|
|
1184
|
+
const L = N(() => {
|
|
1185
|
+
const P = r.value.type || "input-group", E = s(P), O = v(P, r.value), k = b(P), $ = B(r.value.type);
|
|
1186
|
+
return $ && (O[$] = j), O[k] = M, (O.id == null || O.id === "") && (O.id = n.value), () => l(E, We({
|
|
1288
1187
|
ref: a
|
|
1289
1188
|
}, O, {
|
|
1290
1189
|
modelValue: u.value,
|
|
1291
|
-
"onUpdate:modelValue": (
|
|
1292
|
-
}),
|
|
1190
|
+
"onUpdate:modelValue": (V) => u.value = V
|
|
1191
|
+
}), t.slots);
|
|
1293
1192
|
});
|
|
1294
|
-
return R([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([
|
|
1295
|
-
n.value =
|
|
1193
|
+
return R([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([P, E, O, k, $, V, G, Z, J]) => {
|
|
1194
|
+
n.value = P, o.value = E, r.value = O, d.value = k, u.value = $, T.value = V, c.value = G, i.value = Z, g.value = J;
|
|
1296
1195
|
}), t.expose({
|
|
1297
1196
|
editorRef: a
|
|
1298
|
-
}), () =>
|
|
1197
|
+
}), () => g.value && l("div", {
|
|
1299
1198
|
id: `${n.value}-input-group`,
|
|
1300
|
-
class: o.value
|
|
1199
|
+
class: o.value,
|
|
1200
|
+
style: e.customStyle
|
|
1301
1201
|
}, [l("div", {
|
|
1302
1202
|
class: "farris-group-wrap"
|
|
1303
1203
|
}, [l("div", {
|
|
1304
|
-
class:
|
|
1305
|
-
}, [i.value && l(
|
|
1204
|
+
class: S.value
|
|
1205
|
+
}, [i.value && l(Gn, {
|
|
1306
1206
|
id: `${n.value}-lable`,
|
|
1307
1207
|
required: c.value,
|
|
1308
1208
|
text: d.value,
|
|
@@ -1311,20 +1211,20 @@ const lo = /* @__PURE__ */ H({
|
|
|
1311
1211
|
class: "farris-input-wrap"
|
|
1312
1212
|
}, [L.value()])])])]);
|
|
1313
1213
|
}
|
|
1314
|
-
}),
|
|
1214
|
+
}), po = /* @__PURE__ */ W({
|
|
1315
1215
|
name: "FPropertyPanelItem",
|
|
1316
|
-
props:
|
|
1216
|
+
props: In,
|
|
1317
1217
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
1318
1218
|
setup(e, t) {
|
|
1319
1219
|
var c;
|
|
1320
|
-
const n =
|
|
1321
|
-
|
|
1322
|
-
const d =
|
|
1220
|
+
const n = F((c = e.category) == null ? void 0 : c.categoryId), o = F(e.elementConfig.propertyID), r = F(e.elementConfig.propertyName);
|
|
1221
|
+
F(e.elementConfig.editor);
|
|
1222
|
+
const d = F(e.elementConfig.propertyValue), u = N(() => {
|
|
1323
1223
|
const i = e.elementConfig.visible;
|
|
1324
1224
|
return {
|
|
1325
1225
|
"farris-group-wrap": !0,
|
|
1326
1226
|
"property-item": !0,
|
|
1327
|
-
"d-none": !(typeof i == "boolean" ? i : i
|
|
1227
|
+
"d-none": !(typeof i == "boolean" ? i : i === void 0 ? !0 : i())
|
|
1328
1228
|
};
|
|
1329
1229
|
});
|
|
1330
1230
|
R(() => {
|
|
@@ -1333,32 +1233,32 @@ const lo = /* @__PURE__ */ H({
|
|
|
1333
1233
|
}, (i) => {
|
|
1334
1234
|
d.value = i;
|
|
1335
1235
|
});
|
|
1336
|
-
function
|
|
1236
|
+
function T(i) {
|
|
1337
1237
|
e.elementConfig.propertyValue = i;
|
|
1338
|
-
const
|
|
1238
|
+
const g = {
|
|
1339
1239
|
propertyID: e.elementConfig.propertyID,
|
|
1340
1240
|
propertyValue: i
|
|
1341
1241
|
};
|
|
1342
|
-
t.emit("propertyChange",
|
|
1242
|
+
t.emit("propertyChange", g), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
|
|
1343
1243
|
}
|
|
1344
1244
|
return () => l("div", {
|
|
1345
1245
|
class: u.value
|
|
1346
|
-
}, [l(
|
|
1246
|
+
}, [l(co, {
|
|
1347
1247
|
id: o.value,
|
|
1348
1248
|
customClass: `${n.value}-${o.value}`,
|
|
1349
1249
|
label: r.value,
|
|
1350
1250
|
editor: e.elementConfig.editor,
|
|
1351
1251
|
modelValue: d.value,
|
|
1352
|
-
onChange:
|
|
1252
|
+
onChange: T,
|
|
1353
1253
|
editorParams: e.elementConfig.editorParams
|
|
1354
1254
|
}, null)]);
|
|
1355
1255
|
}
|
|
1356
|
-
}),
|
|
1256
|
+
}), fo = /* @__PURE__ */ W({
|
|
1357
1257
|
name: "FPropertyPanelItemList",
|
|
1358
|
-
props:
|
|
1258
|
+
props: En,
|
|
1359
1259
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
1360
1260
|
setup(e, t) {
|
|
1361
|
-
const n =
|
|
1261
|
+
const n = F(e.category);
|
|
1362
1262
|
function o(s) {
|
|
1363
1263
|
if (!s.hideCascadeTitle)
|
|
1364
1264
|
return l("div", {
|
|
@@ -1371,8 +1271,8 @@ const lo = /* @__PURE__ */ H({
|
|
|
1371
1271
|
readonly: !0
|
|
1372
1272
|
}, null)]);
|
|
1373
1273
|
}
|
|
1374
|
-
function r(s,
|
|
1375
|
-
|
|
1274
|
+
function r(s, b) {
|
|
1275
|
+
b.isExpand = !b.isExpand;
|
|
1376
1276
|
}
|
|
1377
1277
|
function d(s) {
|
|
1378
1278
|
return l("div", {
|
|
@@ -1382,7 +1282,7 @@ const lo = /* @__PURE__ */ H({
|
|
|
1382
1282
|
class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
|
|
1383
1283
|
"f-state-expand": s.isExpand
|
|
1384
1284
|
}],
|
|
1385
|
-
onClick: (
|
|
1285
|
+
onClick: (b) => r(b, s)
|
|
1386
1286
|
}, [l("span", null, null)])]);
|
|
1387
1287
|
}
|
|
1388
1288
|
function u(s) {
|
|
@@ -1402,7 +1302,7 @@ const lo = /* @__PURE__ */ H({
|
|
|
1402
1302
|
class: "farris-label-text"
|
|
1403
1303
|
}, [s.propertyName])])])]);
|
|
1404
1304
|
}
|
|
1405
|
-
function
|
|
1305
|
+
function T(s) {
|
|
1406
1306
|
return `${e.categoryKey}_${s.propertyID}`;
|
|
1407
1307
|
}
|
|
1408
1308
|
function c(s) {
|
|
@@ -1413,11 +1313,11 @@ const lo = /* @__PURE__ */ H({
|
|
|
1413
1313
|
function i() {
|
|
1414
1314
|
t.emit("triggerRefreshPanel");
|
|
1415
1315
|
}
|
|
1416
|
-
function
|
|
1316
|
+
function g(s) {
|
|
1417
1317
|
return l("div", {
|
|
1418
1318
|
class: "px-2 mb-2"
|
|
1419
|
-
}, [l(
|
|
1420
|
-
key:
|
|
1319
|
+
}, [l(po, {
|
|
1320
|
+
key: T(s),
|
|
1421
1321
|
elementConfig: s,
|
|
1422
1322
|
category: n.value,
|
|
1423
1323
|
onPropertyChange: c,
|
|
@@ -1425,7 +1325,7 @@ const lo = /* @__PURE__ */ H({
|
|
|
1425
1325
|
}, null)]);
|
|
1426
1326
|
}
|
|
1427
1327
|
function a(s) {
|
|
1428
|
-
var
|
|
1328
|
+
var b;
|
|
1429
1329
|
return l("div", {
|
|
1430
1330
|
class: "propertyCascadeItem farris-panel px-2 mb-2"
|
|
1431
1331
|
}, [l("div", {
|
|
@@ -1434,7 +1334,7 @@ const lo = /* @__PURE__ */ H({
|
|
|
1434
1334
|
}]
|
|
1435
1335
|
}, [l("div", {
|
|
1436
1336
|
class: "card-header",
|
|
1437
|
-
onClick: (
|
|
1337
|
+
onClick: (B) => r(B, s)
|
|
1438
1338
|
}, [l("div", {
|
|
1439
1339
|
class: "panel-item-title"
|
|
1440
1340
|
}, [l("div", {
|
|
@@ -1443,154 +1343,154 @@ const lo = /* @__PURE__ */ H({
|
|
|
1443
1343
|
class: ["card-body", {
|
|
1444
1344
|
hidden: !s.isExpand
|
|
1445
1345
|
}]
|
|
1446
|
-
}, [(
|
|
1346
|
+
}, [(b = s.cascadeConfig) == null ? void 0 : b.map((B) => g(B))])])]);
|
|
1447
1347
|
}
|
|
1448
1348
|
R(() => e.category, () => {
|
|
1449
1349
|
n.value = e.category;
|
|
1450
1350
|
});
|
|
1451
|
-
function
|
|
1452
|
-
return s.propertyType === "cascade" ? a :
|
|
1351
|
+
function v(s) {
|
|
1352
|
+
return s.propertyType === "cascade" ? a : g;
|
|
1453
1353
|
}
|
|
1454
|
-
return () => l(
|
|
1354
|
+
return () => l(z, null, [n.value.properties.map((s) => v(s)(s))]);
|
|
1455
1355
|
}
|
|
1456
|
-
}), ce = /* @__PURE__ */
|
|
1356
|
+
}), ce = /* @__PURE__ */ W({
|
|
1457
1357
|
name: "FPropertyPanel",
|
|
1458
|
-
props:
|
|
1358
|
+
props: ln,
|
|
1459
1359
|
emits: ["propertyChanged"],
|
|
1460
1360
|
setup(e, t) {
|
|
1461
|
-
const n =
|
|
1462
|
-
let
|
|
1463
|
-
const
|
|
1464
|
-
let
|
|
1465
|
-
const
|
|
1466
|
-
function
|
|
1467
|
-
|
|
1468
|
-
if (
|
|
1469
|
-
const
|
|
1470
|
-
|
|
1361
|
+
const n = F(e.width), o = F(e.isWidePanel), r = F(e.enableSearch), d = F(e.mode), u = F(e.isPersitOpenState), T = F(e.isShowPanel), c = F(), i = F(), g = F(e.showCloseBtn), a = F(e.selectedTabId), v = F(!0), s = F(e.isWhiteTheme);
|
|
1362
|
+
let b = [], B = [];
|
|
1363
|
+
const S = F(""), M = F(), j = F(), L = He("SchemaService");
|
|
1364
|
+
let P = [], E = null, O = "";
|
|
1365
|
+
const k = F(), $ = F(0);
|
|
1366
|
+
function V() {
|
|
1367
|
+
B = [], k.value && k.value.categoryList && Array.isArray(k.value.categoryList) && k.value.categoryList.length > 0 && k.value.categoryList.forEach((C) => {
|
|
1368
|
+
if (C.properties.forEach((h) => h.categoryId = C.categoryId), C.properties && Array.isArray(C.properties) && C.properties.length > 0) {
|
|
1369
|
+
const h = C.properties.map((I) => (I.category = C, I));
|
|
1370
|
+
B = B.concat(h);
|
|
1471
1371
|
}
|
|
1472
1372
|
});
|
|
1473
1373
|
}
|
|
1474
|
-
function
|
|
1475
|
-
let
|
|
1476
|
-
for (;
|
|
1477
|
-
|
|
1478
|
-
return
|
|
1374
|
+
function G(x) {
|
|
1375
|
+
let C = x.offsetTop, h = x.offsetParent;
|
|
1376
|
+
for (; h !== null; )
|
|
1377
|
+
C += h.offsetTop, h = h.offsetParent;
|
|
1378
|
+
return C;
|
|
1479
1379
|
}
|
|
1480
|
-
function
|
|
1481
|
-
x &&
|
|
1482
|
-
var
|
|
1483
|
-
const
|
|
1484
|
-
(
|
|
1380
|
+
function Z(x, C) {
|
|
1381
|
+
x && C && Object.keys(C).length > 0 && Object.keys(C).forEach((h) => {
|
|
1382
|
+
var A;
|
|
1383
|
+
const I = C[h];
|
|
1384
|
+
(A = x.style) == null || A.setProperty(h, I);
|
|
1485
1385
|
});
|
|
1486
1386
|
}
|
|
1487
|
-
function
|
|
1488
|
-
return
|
|
1387
|
+
function J() {
|
|
1388
|
+
return B.filter((C) => C.visible ? !!(C.propertyID && C.propertyID.startsWith(S.value) || C.propertyName && (C.propertyName.startsWith(S.value) || C.propertyName.includes(S.value))) : !1);
|
|
1489
1389
|
}
|
|
1490
|
-
function
|
|
1390
|
+
function Fe(x, C, h) {
|
|
1491
1391
|
if (x === 0) {
|
|
1492
|
-
const
|
|
1493
|
-
|
|
1494
|
-
top:
|
|
1392
|
+
const I = G(C), Y = G(h) - I - 5;
|
|
1393
|
+
C == null || C.scroll({
|
|
1394
|
+
top: Y,
|
|
1495
1395
|
behavior: "smooth"
|
|
1496
1396
|
});
|
|
1497
1397
|
}
|
|
1498
1398
|
}
|
|
1499
|
-
function
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
}),
|
|
1503
|
-
const
|
|
1504
|
-
if (!
|
|
1505
|
-
|
|
1506
|
-
else if (
|
|
1507
|
-
const
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
const
|
|
1511
|
-
|
|
1399
|
+
function ae(x) {
|
|
1400
|
+
P && P.length > 0 && (P.forEach((h) => {
|
|
1401
|
+
h.style.cssText = "";
|
|
1402
|
+
}), P = []), S.value = x || S.value;
|
|
1403
|
+
const C = document.querySelector(".panel-body");
|
|
1404
|
+
if (!S.value)
|
|
1405
|
+
M.value && C && (C.scrollTop = 0);
|
|
1406
|
+
else if (V(), B && B.length > 0) {
|
|
1407
|
+
const h = J();
|
|
1408
|
+
h && h.length > 0 && (h[0].category.status === "closed" && (h[0].category.status = "open"), setTimeout(() => {
|
|
1409
|
+
h.forEach((I, A) => {
|
|
1410
|
+
const Y = I.propertyType === "cascade" ? `.${I.categoryId}-${I.propertyID} div.col-form-label` : `.property-item .${I.categoryId}-${I.propertyID} label.col-form-label`, _ = document.querySelector(Y);
|
|
1411
|
+
_ && (Fe(A, C, _), Z(_, {
|
|
1512
1412
|
color: "#5B89FE"
|
|
1513
|
-
}),
|
|
1413
|
+
}), P.push(_));
|
|
1514
1414
|
});
|
|
1515
1415
|
}, 50));
|
|
1516
1416
|
}
|
|
1517
1417
|
}
|
|
1518
|
-
function
|
|
1519
|
-
|
|
1418
|
+
function H(x) {
|
|
1419
|
+
ae(x);
|
|
1520
1420
|
}
|
|
1521
|
-
function
|
|
1421
|
+
function xe(x) {
|
|
1522
1422
|
const {
|
|
1523
|
-
value:
|
|
1423
|
+
value: C
|
|
1524
1424
|
} = x.target;
|
|
1525
|
-
x.key === "Enter" &&
|
|
1425
|
+
x.key === "Enter" && H(C);
|
|
1526
1426
|
}
|
|
1527
|
-
function
|
|
1427
|
+
function Te(x) {
|
|
1528
1428
|
const {
|
|
1529
|
-
value:
|
|
1429
|
+
value: C
|
|
1530
1430
|
} = x.target;
|
|
1531
|
-
|
|
1431
|
+
H(C);
|
|
1532
1432
|
}
|
|
1533
1433
|
function we() {
|
|
1534
|
-
u.value || (
|
|
1434
|
+
u.value || (v.value = !1), t.emit("closePropertyPanel");
|
|
1535
1435
|
}
|
|
1536
|
-
function
|
|
1537
|
-
|
|
1436
|
+
function X(x) {
|
|
1437
|
+
S.value = "", ae();
|
|
1538
1438
|
}
|
|
1539
|
-
function
|
|
1439
|
+
function ke(x) {
|
|
1540
1440
|
!x.status || x.status === "open" ? x.status = "closed" : x.status = "open";
|
|
1541
1441
|
}
|
|
1542
1442
|
function Q() {
|
|
1543
|
-
var x,
|
|
1544
|
-
if (
|
|
1545
|
-
|
|
1443
|
+
var x, C;
|
|
1444
|
+
if (b = [], !c.value || c.value.length === 0) {
|
|
1445
|
+
b = [{
|
|
1546
1446
|
tabId: "default",
|
|
1547
1447
|
tabName: "属性",
|
|
1548
1448
|
categoryList: []
|
|
1549
|
-
}],
|
|
1449
|
+
}], k.value = null;
|
|
1550
1450
|
return;
|
|
1551
1451
|
}
|
|
1552
|
-
if ((x = c == null ? void 0 : c.value) == null || x.forEach((
|
|
1553
|
-
if (
|
|
1554
|
-
const
|
|
1555
|
-
|
|
1556
|
-
tabId:
|
|
1557
|
-
tabName:
|
|
1558
|
-
categoryList: [
|
|
1559
|
-
hide:
|
|
1452
|
+
if ((x = c == null ? void 0 : c.value) == null || x.forEach((h) => {
|
|
1453
|
+
if (h.tabId) {
|
|
1454
|
+
const I = b.find((A) => A.tabId === h.tabId);
|
|
1455
|
+
I ? (I.categoryList.push(h), I.hide && (I.hide = h.hide || h.properties.length === 0)) : b.push({
|
|
1456
|
+
tabId: h.tabId,
|
|
1457
|
+
tabName: h.tabName,
|
|
1458
|
+
categoryList: [h],
|
|
1459
|
+
hide: h.hide || h.properties.length === 0
|
|
1560
1460
|
});
|
|
1561
1461
|
} else {
|
|
1562
|
-
const
|
|
1563
|
-
|
|
1462
|
+
const I = b.find((A) => A.tabId === "default");
|
|
1463
|
+
I ? I.categoryList.push(h) : b.push({
|
|
1564
1464
|
tabId: "default",
|
|
1565
1465
|
tabName: "属性",
|
|
1566
|
-
categoryList: [
|
|
1466
|
+
categoryList: [h]
|
|
1567
1467
|
});
|
|
1568
1468
|
}
|
|
1569
1469
|
}), a.value) {
|
|
1570
|
-
|
|
1571
|
-
|
|
1470
|
+
const h = b == null ? void 0 : b.find((I) => I.tabId === a.value && !I.hide);
|
|
1471
|
+
k.value = h || b[0];
|
|
1572
1472
|
} else
|
|
1573
|
-
|
|
1574
|
-
a.value = (
|
|
1473
|
+
k.value = b[0];
|
|
1474
|
+
a.value = (C = k.value) == null ? void 0 : C.tabId;
|
|
1575
1475
|
}
|
|
1576
1476
|
R(() => [e.schema, e.isShowPanel], () => {
|
|
1577
|
-
i.value = e.schema, !e.schema || !e.schema.type ? c.value = [] : c.value =
|
|
1578
|
-
}),
|
|
1477
|
+
i.value = e.schema, !e.schema || !e.schema.type ? c.value = [] : c.value = K(i.value, L, E, O), Q(), X(S.value), $.value++;
|
|
1478
|
+
}), q(() => {
|
|
1579
1479
|
Q();
|
|
1580
1480
|
});
|
|
1581
|
-
function
|
|
1582
|
-
(!i.value ||
|
|
1481
|
+
function Be(x, C) {
|
|
1482
|
+
(!i.value || C) && (i.value = C || e.schema), c.value = K(i.value, L, E, O, x), Q(), X(S.value);
|
|
1583
1483
|
}
|
|
1584
|
-
function
|
|
1585
|
-
|
|
1484
|
+
function Se(x, C) {
|
|
1485
|
+
E = x, O = C;
|
|
1586
1486
|
}
|
|
1587
1487
|
function ie() {
|
|
1588
1488
|
d.value = d.value === "panel" ? "sidebar" : "panel", d.value === "panel" ? (setTimeout(() => {
|
|
1589
|
-
|
|
1489
|
+
H();
|
|
1590
1490
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
1591
1491
|
}
|
|
1592
1492
|
function Pe() {
|
|
1593
|
-
if (
|
|
1493
|
+
if (g.value)
|
|
1594
1494
|
return l("div", {
|
|
1595
1495
|
class: "title-actions"
|
|
1596
1496
|
}, [l("div", {
|
|
@@ -1607,12 +1507,12 @@ const lo = /* @__PURE__ */ H({
|
|
|
1607
1507
|
class: "f-icon f-icon-close"
|
|
1608
1508
|
}, null)])])])])]);
|
|
1609
1509
|
}
|
|
1610
|
-
function Se() {
|
|
1611
|
-
c.value = ee(i.value, L, I, O), Q();
|
|
1612
|
-
}
|
|
1613
1510
|
function Ee() {
|
|
1511
|
+
c.value = K(i.value, L, E, O), Q();
|
|
1512
|
+
}
|
|
1513
|
+
function Ie() {
|
|
1614
1514
|
var x;
|
|
1615
|
-
if (r.value && ((x =
|
|
1515
|
+
if (r.value && ((x = k.value) == null ? void 0 : x.tabId) !== "commands")
|
|
1616
1516
|
return l("div", {
|
|
1617
1517
|
class: "search"
|
|
1618
1518
|
}, [l("div", {
|
|
@@ -1622,35 +1522,35 @@ const lo = /* @__PURE__ */ H({
|
|
|
1622
1522
|
type: "text",
|
|
1623
1523
|
placeholder: "输入属性名称或编号快速定位",
|
|
1624
1524
|
autocomplete: "off",
|
|
1625
|
-
onKeyup: (
|
|
1626
|
-
value:
|
|
1525
|
+
onKeyup: (C) => xe(C),
|
|
1526
|
+
value: S.value
|
|
1627
1527
|
}, null), l("div", {
|
|
1628
1528
|
class: "input-group-append",
|
|
1629
1529
|
style: "margin-left: 0px;"
|
|
1630
1530
|
}, [l("span", {
|
|
1631
1531
|
class: "input-group-text input-group-clear",
|
|
1632
1532
|
style: [{
|
|
1633
|
-
display:
|
|
1533
|
+
display: S.value && S.value.length > 0 ? "" : "none"
|
|
1634
1534
|
}],
|
|
1635
|
-
onClick: (
|
|
1535
|
+
onClick: (C) => X()
|
|
1636
1536
|
}, [l("i", {
|
|
1637
1537
|
class: "f-icon modal_close"
|
|
1638
1538
|
}, null)]), l("span", {
|
|
1639
1539
|
class: "input-group-text input-group-clear",
|
|
1640
|
-
onClick: (
|
|
1540
|
+
onClick: (C) => Te(C)
|
|
1641
1541
|
}, [l("i", {
|
|
1642
1542
|
class: "f-icon f-icon-search"
|
|
1643
1543
|
}, null)])])])]);
|
|
1644
1544
|
}
|
|
1645
|
-
function
|
|
1545
|
+
function Oe(x) {
|
|
1646
1546
|
return `${e.propertyName}_${x.categoryId}`;
|
|
1647
1547
|
}
|
|
1648
|
-
function
|
|
1548
|
+
function Ne(x) {
|
|
1649
1549
|
t.emit("propertyChanged", x);
|
|
1650
1550
|
}
|
|
1651
|
-
function
|
|
1652
|
-
var x,
|
|
1653
|
-
if (
|
|
1551
|
+
function Me() {
|
|
1552
|
+
var x, C;
|
|
1553
|
+
if (k.value)
|
|
1654
1554
|
return l("div", {
|
|
1655
1555
|
class: "panel-body",
|
|
1656
1556
|
ref: j
|
|
@@ -1658,44 +1558,44 @@ const lo = /* @__PURE__ */ H({
|
|
|
1658
1558
|
class: ["property-grid", {
|
|
1659
1559
|
"wide-panel": o.value
|
|
1660
1560
|
}]
|
|
1661
|
-
}, [(
|
|
1662
|
-
key:
|
|
1663
|
-
"data-category-id":
|
|
1664
|
-
}, [!
|
|
1561
|
+
}, [(C = (x = k.value) == null ? void 0 : x.categoryList) == null ? void 0 : C.map((h) => l("li", {
|
|
1562
|
+
key: Oe(h),
|
|
1563
|
+
"data-category-id": h == null ? void 0 : h.categoryId
|
|
1564
|
+
}, [!h.hide && !h.hideTitle && l("span", {
|
|
1665
1565
|
class: "group-label",
|
|
1666
|
-
onClick: () =>
|
|
1566
|
+
onClick: () => ke(h)
|
|
1667
1567
|
}, [l("span", {
|
|
1668
1568
|
class: ["f-icon mr-2", {
|
|
1669
|
-
"f-legend-show":
|
|
1569
|
+
"f-legend-show": h.status === "closed"
|
|
1670
1570
|
}, {
|
|
1671
|
-
"f-legend-collapse":
|
|
1571
|
+
"f-legend-collapse": h.status === "open" || h.status === void 0
|
|
1672
1572
|
}]
|
|
1673
|
-
}, null),
|
|
1674
|
-
hidden:
|
|
1675
|
-
}, [l(
|
|
1676
|
-
key: `${
|
|
1677
|
-
category:
|
|
1573
|
+
}, null), h.categoryName]), l("div", {
|
|
1574
|
+
hidden: h.status === "closed"
|
|
1575
|
+
}, [l(fo, {
|
|
1576
|
+
key: `${h == null ? void 0 : h.categoryId}-${$.value}`,
|
|
1577
|
+
category: h,
|
|
1678
1578
|
propertyData: i.value,
|
|
1679
|
-
onTriggerRefreshPanel:
|
|
1680
|
-
onValueChanged:
|
|
1579
|
+
onTriggerRefreshPanel: Ee,
|
|
1580
|
+
onValueChanged: Ne
|
|
1681
1581
|
}, null)])]))])]);
|
|
1682
1582
|
}
|
|
1683
|
-
function
|
|
1583
|
+
function Ve() {
|
|
1684
1584
|
if (d.value === "sidebar")
|
|
1685
1585
|
return l("div", {
|
|
1686
1586
|
class: "side-panel h-100",
|
|
1687
1587
|
onClick: ie
|
|
1688
1588
|
}, [l("i", {
|
|
1689
1589
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
1690
|
-
}, null), l("span", null, [
|
|
1590
|
+
}, null), l("span", null, [pe("属性")])]);
|
|
1691
1591
|
}
|
|
1692
|
-
function
|
|
1592
|
+
function je() {
|
|
1693
1593
|
return {
|
|
1694
|
-
display:
|
|
1594
|
+
display: v.value ? "block" : "none",
|
|
1695
1595
|
width: n.value
|
|
1696
1596
|
};
|
|
1697
1597
|
}
|
|
1698
|
-
function
|
|
1598
|
+
function Le() {
|
|
1699
1599
|
return l("div", {
|
|
1700
1600
|
class: "switcher"
|
|
1701
1601
|
}, [l("i", {
|
|
@@ -1706,59 +1606,59 @@ const lo = /* @__PURE__ */ H({
|
|
|
1706
1606
|
onClick: ie
|
|
1707
1607
|
}, null)]);
|
|
1708
1608
|
}
|
|
1709
|
-
function
|
|
1710
|
-
|
|
1609
|
+
function De(x) {
|
|
1610
|
+
k.value = x, a.value = k.value.tabId, S.value = "";
|
|
1711
1611
|
}
|
|
1712
|
-
function
|
|
1713
|
-
return
|
|
1612
|
+
function Re() {
|
|
1613
|
+
return b.map((x) => l("div", {
|
|
1714
1614
|
class: ["title-label", {
|
|
1715
|
-
active:
|
|
1615
|
+
active: k.value && k.value.tabId === x.tabId
|
|
1716
1616
|
}, {
|
|
1717
1617
|
hidden: x.hide
|
|
1718
1618
|
}],
|
|
1719
|
-
onClick: () =>
|
|
1619
|
+
onClick: () => De(x)
|
|
1720
1620
|
}, [l("span", null, [x.tabName])]));
|
|
1721
1621
|
}
|
|
1722
|
-
return
|
|
1723
|
-
|
|
1724
|
-
}),
|
|
1725
|
-
u.value && (
|
|
1726
|
-
}), R(
|
|
1622
|
+
return q(() => {
|
|
1623
|
+
H(S.value);
|
|
1624
|
+
}), Qe(() => {
|
|
1625
|
+
u.value && (v.value = T.value), Q(), H(S.value);
|
|
1626
|
+
}), R(k, () => {
|
|
1727
1627
|
}), t.expose({
|
|
1728
|
-
updatePropertyConfig:
|
|
1729
|
-
updateDesignerItem:
|
|
1730
|
-
}), () => l(
|
|
1731
|
-
ref:
|
|
1628
|
+
updatePropertyConfig: Be,
|
|
1629
|
+
updateDesignerItem: Se
|
|
1630
|
+
}), () => l(z, null, [l("div", {
|
|
1631
|
+
ref: M,
|
|
1732
1632
|
class: ["property-panel", {
|
|
1733
1633
|
"white-theme": s.value
|
|
1734
1634
|
}],
|
|
1735
|
-
style:
|
|
1635
|
+
style: je()
|
|
1736
1636
|
}, [l("div", {
|
|
1737
1637
|
class: "propertyPanel panel flex-column",
|
|
1738
1638
|
hidden: d.value !== "panel"
|
|
1739
1639
|
}, [l("div", {
|
|
1740
1640
|
class: ["title d-flex", {
|
|
1741
|
-
"p-right":
|
|
1641
|
+
"p-right": g.value
|
|
1742
1642
|
}, {
|
|
1743
|
-
only:
|
|
1643
|
+
only: b.length === 1
|
|
1744
1644
|
}]
|
|
1745
|
-
}, [
|
|
1645
|
+
}, [Re(), Pe()]), Ie(), Me()]), Le(), Ve()])]);
|
|
1746
1646
|
}
|
|
1747
1647
|
});
|
|
1748
|
-
class
|
|
1648
|
+
class Br {
|
|
1749
1649
|
constructor(t, n) {
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1650
|
+
D(this, "componentId");
|
|
1651
|
+
D(this, "viewModelId");
|
|
1652
|
+
D(this, "eventsEditorUtils");
|
|
1653
|
+
D(this, "formSchemaUtils");
|
|
1654
|
+
D(this, "formMetadataConverter");
|
|
1655
|
+
D(this, "designViewModelUtils");
|
|
1656
|
+
D(this, "designViewModelField");
|
|
1657
|
+
D(this, "controlCreatorUtils");
|
|
1658
|
+
D(this, "designerHostService");
|
|
1659
|
+
D(this, "schemaService", null);
|
|
1660
|
+
D(this, "metadataService", null);
|
|
1661
|
+
D(this, "propertyConfig", {
|
|
1762
1662
|
type: "object",
|
|
1763
1663
|
categories: {}
|
|
1764
1664
|
});
|
|
@@ -1770,13 +1670,14 @@ class Fr {
|
|
|
1770
1670
|
return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
|
|
1771
1671
|
}
|
|
1772
1672
|
setDesignViewModelField(t) {
|
|
1673
|
+
var o;
|
|
1773
1674
|
const n = t.binding && t.binding.type === "Form" && t.binding.field;
|
|
1774
1675
|
if (n) {
|
|
1775
1676
|
if (!this.designViewModelField) {
|
|
1776
|
-
const
|
|
1777
|
-
this.designViewModelField =
|
|
1677
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1678
|
+
this.designViewModelField = r.fields.find((d) => d.id === n);
|
|
1778
1679
|
}
|
|
1779
|
-
t.updateOn = this.designViewModelField.updateOn;
|
|
1680
|
+
t.updateOn = (o = this.designViewModelField) == null ? void 0 : o.updateOn;
|
|
1780
1681
|
}
|
|
1781
1682
|
}
|
|
1782
1683
|
changeFieldEditorType(t, n) {
|
|
@@ -1800,7 +1701,7 @@ class Fr {
|
|
|
1800
1701
|
type: "combo-list",
|
|
1801
1702
|
textField: "name",
|
|
1802
1703
|
valueField: "value",
|
|
1803
|
-
data: [{ value: t.type, name:
|
|
1704
|
+
data: [{ value: t.type, name: w[t.type].name }]
|
|
1804
1705
|
}
|
|
1805
1706
|
}
|
|
1806
1707
|
}
|
|
@@ -1836,21 +1737,93 @@ class Fr {
|
|
|
1836
1737
|
const o = n && n.parent && n.parent.schema;
|
|
1837
1738
|
if (!o)
|
|
1838
1739
|
return;
|
|
1839
|
-
const r = o.contents.findIndex((u) => u.id === t), d =
|
|
1740
|
+
const r = o.contents.findIndex((u) => u.id === t), d = fe(o.contents[r]);
|
|
1840
1741
|
o.contents.splice(r, 1), o.contents.splice(r, 0, d);
|
|
1841
1742
|
}
|
|
1842
1743
|
}
|
|
1843
|
-
|
|
1844
|
-
|
|
1744
|
+
const U = class U {
|
|
1745
|
+
/**
|
|
1746
|
+
* 根据绑定字段类型获取可用的输入类控件
|
|
1747
|
+
*/
|
|
1748
|
+
static getEditorTypesByMDataType(t) {
|
|
1749
|
+
const n = U.fieldControlTypeMapping[t];
|
|
1750
|
+
return n || [{ key: "", value: "" }];
|
|
1751
|
+
}
|
|
1752
|
+
/**
|
|
1753
|
+
* 获取所有输入类控件
|
|
1754
|
+
*/
|
|
1755
|
+
static getAllInputTypes() {
|
|
1756
|
+
const t = [];
|
|
1757
|
+
for (const n in U.fieldControlTypeMapping)
|
|
1758
|
+
U.fieldControlTypeMapping[n].forEach((o) => {
|
|
1759
|
+
t.find((r) => r.key === o.key && r.value === o.value) || t.push({ key: o.key, value: o.value });
|
|
1760
|
+
});
|
|
1761
|
+
return t;
|
|
1762
|
+
}
|
|
1763
|
+
};
|
|
1764
|
+
/**
|
|
1765
|
+
* <字段类型,可配置的控件类型列表>的映射
|
|
1766
|
+
*/
|
|
1767
|
+
D(U, "fieldControlTypeMapping", {
|
|
1768
|
+
String: [
|
|
1769
|
+
{ key: w["input-group"].type, value: w["input-group"].name },
|
|
1770
|
+
{ key: w.lookup.type, value: w.lookup.name },
|
|
1771
|
+
{ key: w["date-picker"].type, value: w["date-picker"].name },
|
|
1772
|
+
{ key: w["check-box"].type, value: w["check-box"].name },
|
|
1773
|
+
{ key: w["check-group"].type, value: w["check-group"].name },
|
|
1774
|
+
{ key: w["radio-group"].type, value: w["radio-group"].name },
|
|
1775
|
+
{ key: w["combo-list"].type, value: w["combo-list"].name },
|
|
1776
|
+
{ key: w.textarea.type, value: w.textarea.name }
|
|
1777
|
+
],
|
|
1778
|
+
Text: [
|
|
1779
|
+
{ key: w.textarea.type, value: w.textarea.name },
|
|
1780
|
+
{ key: w.lookup.type, value: w.lookup.name }
|
|
1781
|
+
],
|
|
1782
|
+
Decimal: [
|
|
1783
|
+
{ key: w["number-spinner"].type, value: w["number-spinner"].name }
|
|
1784
|
+
],
|
|
1785
|
+
Integer: [
|
|
1786
|
+
{ key: w["number-spinner"].type, value: w["number-spinner"].name }
|
|
1787
|
+
],
|
|
1788
|
+
Number: [
|
|
1789
|
+
{ key: w["number-spinner"].type, value: w["number-spinner"].name }
|
|
1790
|
+
],
|
|
1791
|
+
BigNumber: [
|
|
1792
|
+
{ key: w["number-spinner"].type, value: w["number-spinner"].name }
|
|
1793
|
+
],
|
|
1794
|
+
Date: [
|
|
1795
|
+
{ key: w["date-picker"].type, value: w["date-picker"].name }
|
|
1796
|
+
],
|
|
1797
|
+
DateTime: [
|
|
1798
|
+
{ key: w["date-picker"].type, value: w["date-picker"].name }
|
|
1799
|
+
],
|
|
1800
|
+
Boolean: [
|
|
1801
|
+
{ key: w.switch.type, value: w.switch.name },
|
|
1802
|
+
{ key: w["check-box"].type, value: w["check-box"].name }
|
|
1803
|
+
],
|
|
1804
|
+
Enum: [
|
|
1805
|
+
{ key: w["combo-list"].type, value: w["combo-list"].name },
|
|
1806
|
+
{ key: w["radio-group"].type, value: w["radio-group"].name }
|
|
1807
|
+
],
|
|
1808
|
+
Object: [
|
|
1809
|
+
{ key: w.lookup.type, value: w.lookup.name },
|
|
1810
|
+
{ key: w["combo-list"].type, value: w["combo-list"].name },
|
|
1811
|
+
{ key: w["radio-group"].type, value: w["radio-group"].name }
|
|
1812
|
+
]
|
|
1813
|
+
});
|
|
1814
|
+
let de = U;
|
|
1815
|
+
var mo = /* @__PURE__ */ ((e) => (e.string = "string", e.boolean = "boolean", e.number = "number", e.select = "select", e.boolOrExp = "boolOrExp", e.editableSelect = "editableSelect", e.multiSelect = "multiSelect", e.date = "date", e.datetime = "datetime", e.modal = "modal", e.cascade = "cascade", e.custom = "custom", e.unity = "unity", e.events = "events", e.switch = "switch", e.multiLanguage = "multiLanguage", e))(mo || {});
|
|
1816
|
+
const Sr = {
|
|
1845
1817
|
install(e) {
|
|
1846
1818
|
e.component(ce.name, ce);
|
|
1847
1819
|
}
|
|
1848
1820
|
};
|
|
1849
1821
|
export {
|
|
1850
|
-
|
|
1822
|
+
Br as BaseControlProperty,
|
|
1851
1823
|
ce as FPropertyPanel,
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1824
|
+
mo as PropertyType,
|
|
1825
|
+
de as SchemaDOMMapping,
|
|
1826
|
+
Sr as default,
|
|
1827
|
+
In as propertyPanelItemProps,
|
|
1828
|
+
ln as propertyPanelProps
|
|
1856
1829
|
};
|