@farris/ui-vue 1.3.0 → 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 +454 -398
- 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 +479 -476
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +255 -252
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +652 -567
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +518 -521
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +659 -553
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +162 -155
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +866 -747
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +371 -998
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1174 -1280
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +340 -991
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +6066 -5847
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3400 -3486
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2328 -2446
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +9551 -1200
- 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 +234 -231
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1996 -2630
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +138 -123
- 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 +548 -586
- 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 +2871 -3736
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +3380 -3645
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +10543 -3207
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +9775 -1312
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +442 -438
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +587 -807
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +415 -381
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +361 -1024
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +2265 -2371
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +6425 -6257
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +6164 -5946
- 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 +524 -1474
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +547 -502
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +646 -574
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1181 -2028
- 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 +1185 -2027
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +442 -1368
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +238 -235
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1635 -1713
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +791 -716
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +12203 -5274
- 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 +1873 -520
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +299 -300
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +176 -173
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +715 -659
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1032 -1883
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4767 -5693
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +169 -161
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +490 -1167
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +154 -151
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +575 -1204
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +279 -276
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +478 -428
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2591 -3326
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +442 -439
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +309 -307
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +500 -430
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1391 -1341
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +574 -575
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3422 -3536
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2661 -2764
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +675 -674
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +300 -297
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +454 -1089
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +709 -706
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +54780 -52757
- 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/directive/area-response.d.ts +10 -0
- package/types/common/entity/entity-schema.d.ts +26 -11
- package/types/common/index.d.ts +9 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/types.d.ts +2 -2
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/condition/src/condition-fields.design.component.d.ts +18 -0
- package/types/condition/src/types.d.ts +5 -4
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +8 -5
- 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.component.d.ts +3 -2
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +9 -11
- 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 +3 -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/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +49 -41
- package/types/designer-canvas/src/types.d.ts +10 -21
- 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/designer/response-form-use-designer-rules.d.ts +3 -0
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +1 -1
- 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 +6 -1
- 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/external-container/src/designer/use-designer-rules.d.ts +3 -3
- 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/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/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/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +3 -1
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -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 +43 -35
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/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 +12 -0
- package/types/query-solution/src/query-solution.d.ts +10 -2
- package/types/query-solution/src/solutions.d.ts +108 -509
- 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-layout-editor/index.d.ts +3 -1
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- 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/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/composition/types.d.ts +4 -1
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/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/tree-grid/index.d.ts +3 -3
- package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
- 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/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +0 -3
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
- package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
- package/types/weather/src/composition/types.d.ts +0 -2
|
@@ -1,66 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import Ge,
|
|
5
|
-
import
|
|
6
|
-
import ze from "../
|
|
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
|
-
|
|
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 = {
|
|
64
69
|
width: { type: String, default: "300px" },
|
|
65
70
|
height: { type: Number, default: 10 },
|
|
66
71
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -89,114 +94,121 @@ const Jt = {
|
|
|
89
94
|
/** 属性变更后事件 */
|
|
90
95
|
propertyChanged: { type: Function }
|
|
91
96
|
};
|
|
92
|
-
function
|
|
93
|
-
function t(i,
|
|
97
|
+
function sn(e = {}) {
|
|
98
|
+
function t(i, g, a, v) {
|
|
94
99
|
if (typeof a == "number")
|
|
95
|
-
return
|
|
100
|
+
return v[i].length === a;
|
|
96
101
|
if (typeof a == "object") {
|
|
97
|
-
const s = Object.keys(a)[0],
|
|
102
|
+
const s = Object.keys(a)[0], b = a[s];
|
|
98
103
|
if (s === "not")
|
|
99
|
-
return Number(
|
|
104
|
+
return Number(v[i].length) !== Number(b);
|
|
100
105
|
if (s === "moreThan")
|
|
101
|
-
return Number(
|
|
106
|
+
return Number(v[i].length) >= Number(b);
|
|
102
107
|
if (s === "lessThan")
|
|
103
|
-
return Number(
|
|
108
|
+
return Number(v[i].length) <= Number(b);
|
|
104
109
|
}
|
|
105
110
|
return !1;
|
|
106
111
|
}
|
|
107
|
-
function n(i,
|
|
108
|
-
return
|
|
112
|
+
function n(i, g, a, v) {
|
|
113
|
+
return v[i] && v[i].propertyValue && String(v[i].propertyValue.value) === String(a);
|
|
109
114
|
}
|
|
110
115
|
const o = /* @__PURE__ */ new Map([
|
|
111
116
|
["length", t],
|
|
112
117
|
["getProperty", n]
|
|
113
118
|
]);
|
|
114
|
-
Object.keys(e).reduce((i,
|
|
115
|
-
function r(i,
|
|
119
|
+
Object.keys(e).reduce((i, g) => (i.set(g, e[g]), i), o);
|
|
120
|
+
function r(i, g) {
|
|
116
121
|
const a = i;
|
|
117
|
-
return typeof
|
|
118
|
-
if (
|
|
119
|
-
return { target: a, operator: "length", param: null, value:
|
|
120
|
-
const s =
|
|
121
|
-
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 };
|
|
122
127
|
}) : [];
|
|
123
128
|
}
|
|
124
129
|
function d(i) {
|
|
125
|
-
return Object.keys(i).reduce((a,
|
|
126
|
-
const s = r(
|
|
130
|
+
return Object.keys(i).reduce((a, v) => {
|
|
131
|
+
const s = r(v, i[v]);
|
|
127
132
|
return a.push(...s), a;
|
|
128
133
|
}, []);
|
|
129
134
|
}
|
|
130
|
-
function
|
|
135
|
+
function u(i, g) {
|
|
131
136
|
if (o.has(i.operator)) {
|
|
132
137
|
const a = o.get(i.operator);
|
|
133
|
-
return a && a(i.target, i.param, i.value,
|
|
138
|
+
return a && a(i.target, i.param, i.value, g) || !1;
|
|
134
139
|
}
|
|
135
140
|
return !1;
|
|
136
141
|
}
|
|
137
|
-
function
|
|
138
|
-
return d(i).reduce((s,
|
|
142
|
+
function T(i, g) {
|
|
143
|
+
return d(i).reduce((s, b) => s && u(b, g), !0);
|
|
139
144
|
}
|
|
140
|
-
function
|
|
141
|
-
const a = Object.keys(i),
|
|
142
|
-
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);
|
|
143
148
|
}
|
|
144
|
-
return { parseValueSchema:
|
|
149
|
+
return { parseValueSchema: c };
|
|
145
150
|
}
|
|
146
|
-
const ee = {},
|
|
147
|
-
function
|
|
148
|
-
const { properties: t, title: n, ignore: o } = e, r = o && Array.isArray(o), d = Object.keys(t).reduce((
|
|
149
|
-
|
|
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;
|
|
150
159
|
}
|
|
151
160
|
function te(e, t) {
|
|
152
|
-
const n =
|
|
153
|
-
return Object.keys(
|
|
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;
|
|
154
163
|
}
|
|
155
|
-
function
|
|
164
|
+
function cn(e, t) {
|
|
156
165
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
|
|
157
166
|
if (t.has(r)) {
|
|
158
167
|
const d = t.get(r);
|
|
159
168
|
if (typeof d == "string")
|
|
160
169
|
o[d] = e[r];
|
|
161
170
|
else {
|
|
162
|
-
const
|
|
163
|
-
Object.assign(o,
|
|
171
|
+
const u = d(r, e[r], e);
|
|
172
|
+
Object.assign(o, u);
|
|
164
173
|
}
|
|
165
174
|
} else
|
|
166
175
|
o[r] = e[r];
|
|
167
176
|
return o;
|
|
168
177
|
}, {});
|
|
169
178
|
}
|
|
170
|
-
function
|
|
179
|
+
function dn(e, t, n = /* @__PURE__ */ new Map()) {
|
|
171
180
|
const o = te(e, t);
|
|
172
|
-
return
|
|
181
|
+
return cn(o, n);
|
|
173
182
|
}
|
|
174
|
-
function
|
|
183
|
+
function ge(e) {
|
|
175
184
|
var n;
|
|
176
185
|
const t = e.type;
|
|
177
186
|
if (t) {
|
|
178
|
-
const o = ee[t]
|
|
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) || "";
|
|
179
191
|
if (d) {
|
|
180
|
-
const
|
|
181
|
-
r.editor =
|
|
192
|
+
const u = ee[d], T = te(e.editor, u);
|
|
193
|
+
r.editor = T;
|
|
182
194
|
}
|
|
183
195
|
return r;
|
|
184
196
|
}
|
|
185
197
|
return e;
|
|
186
198
|
}
|
|
187
|
-
const
|
|
199
|
+
const pn = {
|
|
188
200
|
convertTo: (e, t, n, o) => {
|
|
189
|
-
e.appearance
|
|
201
|
+
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
190
202
|
},
|
|
191
203
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
192
|
-
},
|
|
204
|
+
}, fn = {
|
|
193
205
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
194
|
-
},
|
|
206
|
+
}, mn = {
|
|
195
207
|
convertTo: (e, t, n, o) => {
|
|
196
208
|
e.editor && (e.editor[t] = n);
|
|
197
209
|
},
|
|
198
|
-
convertFrom: (e, t, n) => e.editor &&
|
|
199
|
-
},
|
|
210
|
+
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
211
|
+
}, w = {
|
|
200
212
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
201
213
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
202
214
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -234,19 +246,20 @@ const tn = {
|
|
|
234
246
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
235
247
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
236
248
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
237
|
-
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
238
|
-
|
|
249
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
250
|
+
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
251
|
+
}, gn = {
|
|
239
252
|
convertFrom: (e, t, n) => {
|
|
240
253
|
var r;
|
|
241
254
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
242
|
-
return ((r =
|
|
255
|
+
return ((r = w[o]) == null ? void 0 : r.name) || o;
|
|
243
256
|
}
|
|
244
|
-
},
|
|
257
|
+
}, yn = {
|
|
245
258
|
convertTo: (e, t, n, o) => {
|
|
246
259
|
e[t] = e[t];
|
|
247
260
|
},
|
|
248
261
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
249
|
-
},
|
|
262
|
+
}, vn = {
|
|
250
263
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
251
264
|
convertTo: (e, t, n) => {
|
|
252
265
|
if (n && n.length > 0) {
|
|
@@ -254,34 +267,41 @@ const tn = {
|
|
|
254
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;
|
|
255
268
|
}
|
|
256
269
|
}
|
|
257
|
-
},
|
|
270
|
+
}, bn = {
|
|
258
271
|
convertTo: (e, t, n, o) => {
|
|
259
272
|
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
260
273
|
},
|
|
261
274
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
262
|
-
},
|
|
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 = {
|
|
263
281
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
264
|
-
},
|
|
282
|
+
}, Fn = {
|
|
265
283
|
convertFrom: (e, t) => e[t] || "",
|
|
266
284
|
convertTo: (e, t, n) => {
|
|
267
285
|
e[t] = n;
|
|
268
286
|
}
|
|
269
287
|
}, oe = {}, ne = /* @__PURE__ */ new Map([
|
|
270
|
-
["/converter/appearance.converter",
|
|
271
|
-
["/converter/buttons.converter",
|
|
272
|
-
["/converter/property-editor.converter",
|
|
273
|
-
["/converter/items-count.converter",
|
|
274
|
-
["/converter/type.converter",
|
|
275
|
-
["/converter/change-editor.converter",
|
|
276
|
-
["/converter/form-group-label.converter",
|
|
277
|
-
["/converter/field-selector.converter",
|
|
278
|
-
["/converter/pagination.converter",
|
|
279
|
-
|
|
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([
|
|
280
299
|
["string", { type: "input-group", enableClear: !1 }],
|
|
281
300
|
["boolean", {
|
|
282
301
|
type: "combo-list",
|
|
283
302
|
textField: "name",
|
|
284
303
|
valueField: "value",
|
|
304
|
+
idField: "value",
|
|
285
305
|
maxHeight: 64,
|
|
286
306
|
data: [
|
|
287
307
|
{
|
|
@@ -298,72 +318,73 @@ const tn = {
|
|
|
298
318
|
["array", { type: "button-edit" }],
|
|
299
319
|
["number", { type: "number-spinner" }],
|
|
300
320
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
301
|
-
]),
|
|
302
|
-
function
|
|
303
|
-
return () =>
|
|
321
|
+
]), wn = sn();
|
|
322
|
+
function ye(e, t) {
|
|
323
|
+
return () => wn.parseValueSchema(e, t);
|
|
304
324
|
}
|
|
305
|
-
function
|
|
306
|
-
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;
|
|
307
327
|
}
|
|
308
|
-
function
|
|
309
|
-
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;
|
|
310
330
|
}
|
|
311
|
-
function
|
|
331
|
+
function Sn(e, t) {
|
|
312
332
|
const n = e.$converter || t;
|
|
313
333
|
return typeof n == "string" && n && ne.has(n) ? ne.get(n) || null : n || null;
|
|
314
334
|
}
|
|
315
|
-
function re(e, t, n, o, r, d = "",
|
|
316
|
-
return Object.keys(e).map((
|
|
317
|
-
const i =
|
|
318
|
-
|
|
319
|
-
const
|
|
335
|
+
function re(e, t, n, o, r, d = "", u = "") {
|
|
336
|
+
return Object.keys(e).map((c) => {
|
|
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({
|
|
320
342
|
get() {
|
|
321
343
|
if (i.value) {
|
|
322
|
-
if (["class", "style"].find((G) => G
|
|
323
|
-
return
|
|
324
|
-
const
|
|
325
|
-
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;
|
|
326
348
|
}
|
|
327
349
|
return null;
|
|
328
350
|
},
|
|
329
|
-
set(
|
|
330
|
-
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);
|
|
331
353
|
}
|
|
332
|
-
}),
|
|
333
|
-
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] = $, $;
|
|
334
356
|
});
|
|
335
357
|
}
|
|
336
|
-
function
|
|
337
|
-
const d = t.$ref.schema,
|
|
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];
|
|
338
360
|
if (a && a.categories) {
|
|
339
|
-
const
|
|
340
|
-
|
|
341
|
-
|
|
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;
|
|
342
364
|
});
|
|
343
|
-
const
|
|
344
|
-
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 };
|
|
345
367
|
}
|
|
346
368
|
return { categoryId: e, categoryName: "", properties: [] };
|
|
347
369
|
}
|
|
348
370
|
function K(e, t, n, o, r) {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
if (Object.keys(u).length === 0 && n && n.getPropConfig && (u = n.getPropConfig(o)), u && u.categories) {
|
|
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) {
|
|
353
374
|
const i = [];
|
|
354
|
-
return Object.keys(
|
|
355
|
-
const a =
|
|
375
|
+
return Object.keys(c.categories).map((g) => {
|
|
376
|
+
const a = c.categories[g];
|
|
356
377
|
if (a.$ref) {
|
|
357
|
-
i.push(
|
|
378
|
+
i.push(Pn(g, a, e, t, o));
|
|
358
379
|
return;
|
|
359
380
|
}
|
|
360
|
-
const
|
|
361
|
-
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 });
|
|
362
383
|
}), i;
|
|
363
384
|
}
|
|
364
385
|
return [];
|
|
365
386
|
}
|
|
366
|
-
const
|
|
387
|
+
const En = {
|
|
367
388
|
/** 某一分类下的属性配置 */
|
|
368
389
|
// as PropType<ElementPropertyConfig>
|
|
369
390
|
category: { type: Object, default: {} },
|
|
@@ -372,22 +393,22 @@ const hn = {
|
|
|
372
393
|
propertyData: { type: Object, default: {} },
|
|
373
394
|
valueChanged: { type: Function },
|
|
374
395
|
triggerRefreshPanel: { type: Function }
|
|
375
|
-
},
|
|
396
|
+
}, In = {
|
|
376
397
|
elementConfig: { type: Object, default: {} },
|
|
377
398
|
category: { type: Object, default: {} }
|
|
378
399
|
};
|
|
379
|
-
function
|
|
380
|
-
return ee[t.title] = t,
|
|
381
|
-
const
|
|
382
|
-
return Object.assign(
|
|
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);
|
|
383
404
|
};
|
|
384
405
|
}
|
|
385
|
-
function
|
|
406
|
+
function be(e, t) {
|
|
386
407
|
return { customClass: t.class, customStyle: t.style };
|
|
387
408
|
}
|
|
388
|
-
const
|
|
389
|
-
["appearance",
|
|
390
|
-
]),
|
|
409
|
+
const On = /* @__PURE__ */ new Map([
|
|
410
|
+
["appearance", be]
|
|
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 = {
|
|
391
412
|
id: {
|
|
392
413
|
description: "The unique identifier for a form group",
|
|
393
414
|
type: "string"
|
|
@@ -427,21 +448,27 @@ const Fn = /* @__PURE__ */ new Map([
|
|
|
427
448
|
lableWidth: {
|
|
428
449
|
description: "",
|
|
429
450
|
type: "number"
|
|
451
|
+
},
|
|
452
|
+
binding: {
|
|
453
|
+
description: "",
|
|
454
|
+
type: "object",
|
|
455
|
+
default: {}
|
|
430
456
|
}
|
|
431
|
-
},
|
|
457
|
+
}, Rn = [
|
|
432
458
|
"id",
|
|
433
459
|
"type"
|
|
434
|
-
],
|
|
435
|
-
$schema:
|
|
436
|
-
$id:
|
|
437
|
-
title:
|
|
438
|
-
description:
|
|
439
|
-
type:
|
|
440
|
-
properties:
|
|
441
|
-
required:
|
|
442
|
-
},
|
|
460
|
+
], $n = {
|
|
461
|
+
$schema: Nn,
|
|
462
|
+
$id: Mn,
|
|
463
|
+
title: Vn,
|
|
464
|
+
description: jn,
|
|
465
|
+
type: Ln,
|
|
466
|
+
properties: Dn,
|
|
467
|
+
required: Rn
|
|
468
|
+
}, he = {
|
|
443
469
|
id: { type: String, default: "" },
|
|
444
470
|
customClass: { type: String, default: "" },
|
|
471
|
+
customStyle: { type: String, default: "" },
|
|
445
472
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
446
473
|
editor: { type: Object, default: {} },
|
|
447
474
|
label: { type: String, default: "" },
|
|
@@ -453,43 +480,43 @@ const Fn = /* @__PURE__ */ new Map([
|
|
|
453
480
|
showLabel: { type: Boolean, default: !0 },
|
|
454
481
|
type: { type: String, default: "input-group" }
|
|
455
482
|
};
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
483
|
+
ve(
|
|
484
|
+
he,
|
|
485
|
+
$n,
|
|
486
|
+
On,
|
|
460
487
|
void 0
|
|
461
488
|
);
|
|
462
|
-
const
|
|
489
|
+
const An = {
|
|
463
490
|
id: { type: String },
|
|
464
491
|
required: { type: Boolean, default: !1 },
|
|
465
492
|
text: { type: String, default: "" },
|
|
466
493
|
title: { type: String }
|
|
467
|
-
},
|
|
494
|
+
}, Gn = /* @__PURE__ */ W({
|
|
468
495
|
name: "FDynamicFormLabel",
|
|
469
|
-
props:
|
|
496
|
+
props: An,
|
|
470
497
|
emits: [],
|
|
471
498
|
setup(e, t) {
|
|
472
|
-
const n =
|
|
473
|
-
return
|
|
499
|
+
const n = F(e.title || e.text), o = F(e.required), r = F(e.text);
|
|
500
|
+
return R(() => e.text, () => {
|
|
474
501
|
r.value = e.text;
|
|
475
|
-
}),
|
|
476
|
-
d !==
|
|
502
|
+
}), R(() => e.required, (d, u) => {
|
|
503
|
+
d !== u && (o.value = d);
|
|
477
504
|
}), () => r.value && l("label", {
|
|
478
505
|
class: "col-form-label",
|
|
479
506
|
title: n.value
|
|
480
507
|
}, [o.value && l("span", {
|
|
481
508
|
class: "farris-label-info text-danger"
|
|
482
|
-
}, [
|
|
509
|
+
}, [pe("*")]), l("span", {
|
|
483
510
|
class: "farris-label-text"
|
|
484
511
|
}, [r.value])]);
|
|
485
512
|
}
|
|
486
|
-
}),
|
|
487
|
-
["appearance",
|
|
513
|
+
}), Un = /* @__PURE__ */ new Map([
|
|
514
|
+
["appearance", be]
|
|
488
515
|
]);
|
|
489
|
-
function
|
|
516
|
+
function qn(e, t, n) {
|
|
490
517
|
return t;
|
|
491
518
|
}
|
|
492
|
-
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 = {
|
|
493
520
|
id: {
|
|
494
521
|
description: "The unique identifier for a Input Group",
|
|
495
522
|
type: "string"
|
|
@@ -551,11 +578,6 @@ const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
551
578
|
type: "boolean",
|
|
552
579
|
default: !1
|
|
553
580
|
},
|
|
554
|
-
required: {
|
|
555
|
-
description: "",
|
|
556
|
-
type: "boolean",
|
|
557
|
-
default: !1
|
|
558
|
-
},
|
|
559
581
|
tabIndex: {
|
|
560
582
|
description: "",
|
|
561
583
|
type: "number",
|
|
@@ -691,18 +713,24 @@ const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
691
713
|
type: "string",
|
|
692
714
|
default: ""
|
|
693
715
|
}
|
|
694
|
-
},
|
|
716
|
+
}, Jn = [
|
|
695
717
|
"id",
|
|
696
718
|
"type"
|
|
697
|
-
],
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
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
|
|
733
|
+
}, Ce = {
|
|
706
734
|
id: { Type: String, default: "" },
|
|
707
735
|
/** 是否自动完成 */
|
|
708
736
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -770,281 +798,153 @@ const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
770
798
|
*/
|
|
771
799
|
updateOn: { type: String, default: "blur" }
|
|
772
800
|
};
|
|
773
|
-
|
|
774
|
-
function
|
|
775
|
-
const
|
|
776
|
-
|
|
777
|
-
"f-utils-fill": !0,
|
|
778
|
-
"text-left": u.value === "left",
|
|
779
|
-
"text-center": u.value === "center",
|
|
780
|
-
"text-right": u.value === "right"
|
|
781
|
-
})), A = S(() => {
|
|
782
|
-
const P = {
|
|
783
|
-
"f-cmp-inputgroup": !0,
|
|
784
|
-
"input-group": !0,
|
|
785
|
-
"f-state-disable": r.value,
|
|
786
|
-
"f-state-editable": a.value,
|
|
787
|
-
"f-state-readonly": w.value,
|
|
788
|
-
"f-state-focus": f.value
|
|
789
|
-
};
|
|
790
|
-
return (e.customClass || "").split(" ").reduce((q, J) => (q[J] = !0, q), P), P;
|
|
791
|
-
}), R = S(() => C.value ? "" : "border-width : 0 ");
|
|
792
|
-
function E(P, D = !0) {
|
|
793
|
-
n.value = P, o.value !== P && (o.value = P), D && t.emit("change", P), t.emit("update:modelValue", P), t.emit("update:value", P);
|
|
794
|
-
}
|
|
795
|
-
V(
|
|
796
|
-
() => e.modelValue,
|
|
797
|
-
(P, D) => {
|
|
798
|
-
P !== D && (n.value = P, o.value = P);
|
|
799
|
-
}
|
|
800
|
-
), V(() => e.disabled, (P, D) => {
|
|
801
|
-
P !== D && (r.value = P);
|
|
802
|
-
});
|
|
803
|
-
function I(P) {
|
|
804
|
-
return d.value = !1, t.emit("blur", P), P.stopPropagation(), !1;
|
|
805
|
-
}
|
|
806
|
-
function O(P) {
|
|
807
|
-
t.emit("click", P);
|
|
808
|
-
}
|
|
809
|
-
function B(P) {
|
|
810
|
-
e.disabled || (C.value && (d.value = !0), p.value && t.emit("focus", P));
|
|
811
|
-
}
|
|
812
|
-
function $(P) {
|
|
813
|
-
t.emit("input", P.target.value);
|
|
814
|
-
const D = P.target.value;
|
|
815
|
-
o.value = D, i.value === "change" && (t.emit("update:modelValue", D), t.emit("update:value", D));
|
|
816
|
-
}
|
|
817
|
-
function j(P) {
|
|
818
|
-
t.emit("keydown", P);
|
|
819
|
-
}
|
|
820
|
-
function G(P) {
|
|
821
|
-
t.emit("keyup", P);
|
|
822
|
-
}
|
|
823
|
-
function U(P) {
|
|
824
|
-
P.target.tagName !== "INPUT" && P.preventDefault(), P.stopPropagation();
|
|
825
|
-
}
|
|
826
|
-
function _(P) {
|
|
827
|
-
if (i.value === "blur") {
|
|
828
|
-
const D = P.target.value;
|
|
829
|
-
P.stopPropagation(), E(D);
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
return {
|
|
833
|
-
changeTextBoxValue: E,
|
|
834
|
-
disabled: r,
|
|
835
|
-
displayText: o,
|
|
836
|
-
editable: a,
|
|
837
|
-
hasFocused: f,
|
|
838
|
-
inputGroupClass: A,
|
|
839
|
-
inputType: c,
|
|
840
|
-
isEmpty: s,
|
|
841
|
-
modelValue: n,
|
|
842
|
-
readonly: w,
|
|
843
|
-
onBlur: I,
|
|
844
|
-
onClick: O,
|
|
845
|
-
onFocus: B,
|
|
846
|
-
onInput: $,
|
|
847
|
-
onKeydown: j,
|
|
848
|
-
onKeyup: G,
|
|
849
|
-
onMousedown: U,
|
|
850
|
-
onTextBoxValueChange: _,
|
|
851
|
-
placeholder: m,
|
|
852
|
-
textBoxClass: L,
|
|
853
|
-
textBoxTitle: k,
|
|
854
|
-
inputGroupStyle: R
|
|
855
|
-
};
|
|
856
|
-
}
|
|
857
|
-
function Wn(e, t, n) {
|
|
858
|
-
const o = h(!1), r = S(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: d, displayText: c, hasFocused: C, isEmpty: u } = n;
|
|
859
|
-
function i(w) {
|
|
860
|
-
o.value = w;
|
|
861
|
-
}
|
|
862
|
-
V(c, () => {
|
|
863
|
-
C != null && C.value ? i(!!(c != null && c.value)) : i(!1);
|
|
864
|
-
});
|
|
865
|
-
const p = S(() => ({
|
|
866
|
-
"input-group-text": !0,
|
|
867
|
-
"input-group-clear": !0
|
|
868
|
-
})), a = S(() => ({
|
|
869
|
-
width: "24px",
|
|
870
|
-
display: o.value ? "flex" : "none"
|
|
871
|
-
}));
|
|
872
|
-
function f(w) {
|
|
873
|
-
w.stopPropagation(), r.value && (d("", !0), i(!o.value), t.emit("clear"));
|
|
874
|
-
}
|
|
875
|
-
function s(w) {
|
|
876
|
-
r.value && !u.value && i(!0);
|
|
877
|
-
}
|
|
878
|
-
function m(w) {
|
|
879
|
-
r.value && i(!1);
|
|
880
|
-
}
|
|
881
|
-
return { clearButtonClass: p, clearButtonStyle: a, hasShownClearButton: o, onClearValue: f, onMouseEnter: s, onMouseLeave: m, shouldShowClearButton: r };
|
|
882
|
-
}
|
|
883
|
-
const Hn = ["moz", "ms", "webkit"];
|
|
884
|
-
function Un() {
|
|
885
|
-
let e = 0;
|
|
886
|
-
return (t) => {
|
|
887
|
-
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), r = setTimeout(() => {
|
|
888
|
-
t(n + o);
|
|
889
|
-
}, o);
|
|
890
|
-
return e = n + o, r;
|
|
891
|
-
};
|
|
892
|
-
}
|
|
893
|
-
function _n() {
|
|
894
|
-
if (typeof window > "u")
|
|
895
|
-
return () => 0;
|
|
896
|
-
if (window.requestAnimationFrame)
|
|
897
|
-
return window.requestAnimationFrame.bind(window);
|
|
898
|
-
const e = Hn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
899
|
-
return e ? window[`${e}RequestAnimationFrame`] : Un();
|
|
900
|
-
}
|
|
901
|
-
_n();
|
|
902
|
-
function zn(e, t) {
|
|
903
|
-
const n = h(e.groupText), o = S(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = S(() => e.enableClear || !!e.groupText);
|
|
904
|
-
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(() => ({
|
|
905
805
|
"input-group-append": !0,
|
|
906
806
|
"append-force-show": o.value
|
|
907
807
|
})), appendedContent: n, shouldShowAppendedButton: r };
|
|
908
808
|
}
|
|
909
|
-
function
|
|
910
|
-
const { appendedContent: r } = o, d =
|
|
911
|
-
|
|
912
|
-
|
|
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);
|
|
913
813
|
});
|
|
914
|
-
function
|
|
915
|
-
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;
|
|
916
816
|
}
|
|
917
817
|
function a() {
|
|
918
|
-
n.value =
|
|
818
|
+
n.value = u.value ? "password" : "text", r.value = u.value ? d.value ? c : "" : r.value;
|
|
919
819
|
}
|
|
920
|
-
return a(), { isPassword:
|
|
820
|
+
return a(), { isPassword: u, onClickAppendedButton: g };
|
|
921
821
|
}
|
|
922
|
-
function
|
|
923
|
-
const o =
|
|
822
|
+
function to(e, t, n) {
|
|
823
|
+
const o = F(), {
|
|
924
824
|
onBlurTextBox: r,
|
|
925
825
|
onFocusTextBox: d,
|
|
926
|
-
onInput:
|
|
927
|
-
onKeyDown:
|
|
928
|
-
textBoxValue:
|
|
929
|
-
} = n, i =
|
|
826
|
+
onInput: u,
|
|
827
|
+
onKeyDown: T,
|
|
828
|
+
textBoxValue: c
|
|
829
|
+
} = n, i = N(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), g = N(() => ({
|
|
930
830
|
"form-control": !0,
|
|
931
831
|
"f-utils-fill": !0
|
|
932
|
-
})), a =
|
|
832
|
+
})), a = N(() => ({
|
|
933
833
|
"text-align": e.textAlign
|
|
934
834
|
}));
|
|
935
|
-
function
|
|
936
|
-
|
|
835
|
+
function v(B) {
|
|
836
|
+
B.stopPropagation();
|
|
937
837
|
}
|
|
938
838
|
function s() {
|
|
939
839
|
e.selectOnCreated, e.focusOnCreated;
|
|
940
840
|
}
|
|
941
|
-
async function
|
|
942
|
-
d(
|
|
841
|
+
async function b(B) {
|
|
842
|
+
d(B), await le, s();
|
|
943
843
|
}
|
|
944
|
-
return
|
|
945
|
-
await
|
|
844
|
+
return q(async () => {
|
|
845
|
+
await le, s();
|
|
946
846
|
}), () => l("input", {
|
|
947
847
|
ref: o,
|
|
948
|
-
class:
|
|
848
|
+
class: g.value,
|
|
949
849
|
style: a.value,
|
|
950
850
|
type: "text",
|
|
951
|
-
value:
|
|
851
|
+
value: c.value,
|
|
952
852
|
disabled: e.disabled,
|
|
953
853
|
readonly: e.readonly || !e.editable,
|
|
954
854
|
placeholder: i.value,
|
|
955
855
|
onBlur: r,
|
|
956
|
-
onChange:
|
|
957
|
-
onFocus:
|
|
958
|
-
onInput:
|
|
959
|
-
onKeydown:
|
|
856
|
+
onChange: v,
|
|
857
|
+
onFocus: b,
|
|
858
|
+
onInput: u,
|
|
859
|
+
onKeydown: T
|
|
960
860
|
}, null);
|
|
961
861
|
}
|
|
962
|
-
function
|
|
862
|
+
function no(e, t, n) {
|
|
963
863
|
const {
|
|
964
864
|
canDownward: o,
|
|
965
865
|
canUpward: r,
|
|
966
866
|
onClickDownButton: d,
|
|
967
|
-
onClickUpButton:
|
|
968
|
-
} = n,
|
|
867
|
+
onClickUpButton: u
|
|
868
|
+
} = n, T = N(() => ({
|
|
969
869
|
"input-group-append": !0,
|
|
970
870
|
"btn-group": !0,
|
|
971
871
|
"btn-group-number": !0
|
|
972
|
-
})),
|
|
872
|
+
})), c = N(() => ({
|
|
973
873
|
btn: !0,
|
|
974
874
|
"btn-secondary": !0,
|
|
975
875
|
"btn-number-flag": !0
|
|
976
|
-
})), i =
|
|
876
|
+
})), i = N(() => ({
|
|
977
877
|
cursor: r() ? "pointer" : "not-allowed",
|
|
978
878
|
"margin-left": 0
|
|
979
|
-
})),
|
|
879
|
+
})), g = N(() => ({
|
|
980
880
|
cursor: o() ? "pointer" : "not-allowed",
|
|
981
881
|
"margin-left": 0
|
|
982
882
|
}));
|
|
983
883
|
return () => l("div", {
|
|
984
|
-
class:
|
|
884
|
+
class: T.value
|
|
985
885
|
}, [l("button", {
|
|
986
886
|
title: "upButton",
|
|
987
|
-
class:
|
|
887
|
+
class: c.value,
|
|
988
888
|
style: i.value,
|
|
989
|
-
onClick:
|
|
889
|
+
onClick: u,
|
|
990
890
|
disabled: !r()
|
|
991
891
|
}, [l("span", {
|
|
992
892
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
993
893
|
}, null)]), l("button", {
|
|
994
894
|
title: "downButton",
|
|
995
|
-
class:
|
|
996
|
-
style:
|
|
895
|
+
class: c.value,
|
|
896
|
+
style: g.value,
|
|
997
897
|
onClick: d,
|
|
998
898
|
disabled: !o()
|
|
999
899
|
}, [l("span", {
|
|
1000
900
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1001
901
|
}, null)])]);
|
|
1002
902
|
}
|
|
1003
|
-
function
|
|
1004
|
-
const n =
|
|
1005
|
-
displayValue:
|
|
1006
|
-
modelValue:
|
|
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,
|
|
906
|
+
modelValue: c,
|
|
1007
907
|
getRealValue: i
|
|
1008
|
-
} = n,
|
|
908
|
+
} = n, g = to(e, t, d), {
|
|
1009
909
|
format: a
|
|
1010
910
|
} = o, {
|
|
1011
|
-
isFocus:
|
|
1012
|
-
} = d, s =
|
|
1013
|
-
return
|
|
1014
|
-
const
|
|
1015
|
-
|
|
1016
|
-
}),
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1019
|
-
}),
|
|
1020
|
-
|
|
1021
|
-
}),
|
|
1022
|
-
|
|
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))));
|
|
921
|
+
}), R(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
922
|
+
T.value = a(c.value);
|
|
1023
923
|
}), () => l("div", {
|
|
1024
924
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1025
|
-
}, [
|
|
925
|
+
}, [g(), s.value && u()]);
|
|
1026
926
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const r =
|
|
1029
|
-
isPassword:
|
|
1030
|
-
} = n,
|
|
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), {
|
|
1031
931
|
disabled: a,
|
|
1032
|
-
displayText:
|
|
932
|
+
displayText: v,
|
|
1033
933
|
inputType: s,
|
|
1034
|
-
onBlur:
|
|
1035
|
-
onFocus:
|
|
1036
|
-
onInput:
|
|
1037
|
-
onClick:
|
|
1038
|
-
onKeydown:
|
|
1039
|
-
onKeyup:
|
|
1040
|
-
onMousedown:
|
|
1041
|
-
onTextBoxValueChange:
|
|
934
|
+
onBlur: b,
|
|
935
|
+
onFocus: B,
|
|
936
|
+
onInput: S,
|
|
937
|
+
onClick: M,
|
|
938
|
+
onKeydown: j,
|
|
939
|
+
onKeyup: L,
|
|
940
|
+
onMousedown: P,
|
|
941
|
+
onTextBoxValueChange: E,
|
|
1042
942
|
readonly: O,
|
|
1043
|
-
placeholder:
|
|
943
|
+
placeholder: k,
|
|
1044
944
|
textBoxClass: $,
|
|
1045
|
-
textBoxTitle:
|
|
945
|
+
textBoxTitle: V
|
|
1046
946
|
} = o;
|
|
1047
|
-
return
|
|
947
|
+
return q(() => {
|
|
1048
948
|
e.selectOnCreated, e.focusOnCreated;
|
|
1049
949
|
}), () => l("input", {
|
|
1050
950
|
ref: r,
|
|
@@ -1053,135 +953,135 @@ function Yn(e, t, n, o) {
|
|
|
1053
953
|
class: $.value,
|
|
1054
954
|
disabled: a == null ? void 0 : a.value,
|
|
1055
955
|
maxlength: i.value,
|
|
1056
|
-
minlength:
|
|
1057
|
-
placeholder:
|
|
956
|
+
minlength: c.value,
|
|
957
|
+
placeholder: k.value,
|
|
1058
958
|
readonly: O == null ? void 0 : O.value,
|
|
1059
|
-
tabindex:
|
|
1060
|
-
title:
|
|
959
|
+
tabindex: g.value,
|
|
960
|
+
title: u.value && !T.value ? V.value : "",
|
|
1061
961
|
type: s.value,
|
|
1062
|
-
value:
|
|
1063
|
-
onBlur:
|
|
1064
|
-
onClick:
|
|
1065
|
-
onChange:
|
|
1066
|
-
onFocus:
|
|
1067
|
-
onInput:
|
|
1068
|
-
onKeydown:
|
|
1069
|
-
onKeyup:
|
|
1070
|
-
onMousedown:
|
|
962
|
+
value: v == null ? void 0 : v.value,
|
|
963
|
+
onBlur: b,
|
|
964
|
+
onClick: M,
|
|
965
|
+
onChange: E,
|
|
966
|
+
onFocus: B,
|
|
967
|
+
onInput: S,
|
|
968
|
+
onKeydown: j,
|
|
969
|
+
onKeyup: L,
|
|
970
|
+
onMousedown: P
|
|
1071
971
|
}, null);
|
|
1072
972
|
}
|
|
1073
|
-
function
|
|
1074
|
-
const n =
|
|
973
|
+
function ao(e, t) {
|
|
974
|
+
const n = N(() => e.useExtendInfo && !!e.extendInfo), o = Ge({
|
|
1075
975
|
content: e.extendInfo
|
|
1076
976
|
});
|
|
1077
977
|
function r() {
|
|
1078
978
|
t.emit("updateExtendInfo");
|
|
1079
979
|
}
|
|
1080
|
-
return () => n.value &&
|
|
980
|
+
return () => n.value && Ue(l("span", {
|
|
1081
981
|
class: "input-group-before-tips",
|
|
1082
982
|
onMouseenter: r
|
|
1083
983
|
}, [l("i", {
|
|
1084
984
|
class: "f-icon f-icon-info-circle"
|
|
1085
985
|
}, null), l("b", {
|
|
1086
986
|
class: "tips-arrow"
|
|
1087
|
-
}, null)]), [[
|
|
987
|
+
}, null)]), [[qe("tooltip"), o]]);
|
|
1088
988
|
}
|
|
1089
|
-
function
|
|
989
|
+
function io(e, t, n, o, r) {
|
|
1090
990
|
const {
|
|
1091
991
|
appendedButtonClass: d,
|
|
1092
|
-
appendedContent:
|
|
1093
|
-
} = n,
|
|
1094
|
-
clearButtonClass:
|
|
992
|
+
appendedContent: u
|
|
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,
|
|
1095
995
|
clearButtonStyle: a,
|
|
1096
|
-
onClearValue:
|
|
996
|
+
onClearValue: v,
|
|
1097
997
|
shouldShowClearButton: s
|
|
1098
998
|
} = o;
|
|
1099
|
-
function
|
|
999
|
+
function b() {
|
|
1100
1000
|
return l("span", {
|
|
1101
1001
|
id: "clearIcon",
|
|
1102
|
-
class:
|
|
1002
|
+
class: g.value,
|
|
1103
1003
|
style: a.value,
|
|
1104
|
-
onClick: (
|
|
1004
|
+
onClick: (k) => v(k)
|
|
1105
1005
|
}, [l("i", {
|
|
1106
1006
|
class: "f-icon modal_close"
|
|
1107
1007
|
}, null)]);
|
|
1108
1008
|
}
|
|
1109
|
-
function
|
|
1110
|
-
t.emit("iconMouseEnter",
|
|
1009
|
+
function B(k) {
|
|
1010
|
+
t.emit("iconMouseEnter", k);
|
|
1111
1011
|
}
|
|
1112
|
-
function k
|
|
1113
|
-
t.emit("iconMouseLeave",
|
|
1012
|
+
function S(k) {
|
|
1013
|
+
t.emit("iconMouseLeave", k);
|
|
1114
1014
|
}
|
|
1115
|
-
function
|
|
1116
|
-
|
|
1117
|
-
originalEvent:
|
|
1118
|
-
}),
|
|
1015
|
+
function M(k) {
|
|
1016
|
+
T.value && t.emit("clickHandle", {
|
|
1017
|
+
originalEvent: k
|
|
1018
|
+
}), k.stopPropagation();
|
|
1119
1019
|
}
|
|
1120
|
-
const
|
|
1121
|
-
function
|
|
1020
|
+
const j = e.type === "password" ? r.onClickAppendedButton : M;
|
|
1021
|
+
function L() {
|
|
1122
1022
|
return l("span", {
|
|
1123
1023
|
class: "input-group-text",
|
|
1124
|
-
onMouseenter: (
|
|
1125
|
-
onMouseleave: (
|
|
1126
|
-
innerHTML:
|
|
1127
|
-
onClick: (
|
|
1024
|
+
onMouseenter: (k) => B(k),
|
|
1025
|
+
onMouseleave: (k) => S(k),
|
|
1026
|
+
innerHTML: u.value,
|
|
1027
|
+
onClick: (k) => j(k)
|
|
1128
1028
|
}, null);
|
|
1129
1029
|
}
|
|
1130
|
-
function
|
|
1030
|
+
function P() {
|
|
1131
1031
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
1132
1032
|
}
|
|
1133
|
-
function
|
|
1134
|
-
return
|
|
1033
|
+
function E() {
|
|
1034
|
+
return c.value ? L : i.value ? P : "";
|
|
1135
1035
|
}
|
|
1136
|
-
const O =
|
|
1036
|
+
const O = E();
|
|
1137
1037
|
return () => l("div", {
|
|
1138
1038
|
class: d.value
|
|
1139
|
-
}, [s.value &&
|
|
1039
|
+
}, [s.value && b(), O && O()]);
|
|
1140
1040
|
}
|
|
1141
|
-
const
|
|
1041
|
+
const lo = /* @__PURE__ */ W({
|
|
1142
1042
|
name: "FInputGroup",
|
|
1143
|
-
props:
|
|
1043
|
+
props: Ce,
|
|
1144
1044
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
1145
1045
|
setup(e, t) {
|
|
1146
|
-
const n =
|
|
1046
|
+
const n = F(e.modelValue), o = F(e.modelValue), r = _e(e, t, n, o), {
|
|
1147
1047
|
inputGroupClass: d,
|
|
1148
|
-
inputType:
|
|
1149
|
-
inputGroupStyle:
|
|
1150
|
-
} = r,
|
|
1048
|
+
inputType: u,
|
|
1049
|
+
inputGroupStyle: T
|
|
1050
|
+
} = r, c = Kn(e), {
|
|
1151
1051
|
shouldShowAppendedButton: i
|
|
1152
|
-
} =
|
|
1052
|
+
} = c, g = ze(e, t, r), {
|
|
1153
1053
|
onMouseEnter: a,
|
|
1154
|
-
onMouseLeave:
|
|
1155
|
-
} =
|
|
1156
|
-
|
|
1157
|
-
n.value =
|
|
1158
|
-
}),
|
|
1159
|
-
n.value =
|
|
1160
|
-
}),
|
|
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(() => {
|
|
1161
1061
|
e.value && (n.value = e.value, o.value = e.value);
|
|
1162
1062
|
});
|
|
1163
|
-
const
|
|
1063
|
+
const L = () => l(z, null, [l("div", {
|
|
1164
1064
|
id: e.id,
|
|
1165
1065
|
class: d.value,
|
|
1166
|
-
style:
|
|
1066
|
+
style: T.value,
|
|
1167
1067
|
onMouseenter: a,
|
|
1168
|
-
onMouseleave:
|
|
1169
|
-
}, [
|
|
1170
|
-
return () =>
|
|
1068
|
+
onMouseleave: v
|
|
1069
|
+
}, [j.value ? b() : l(z, null, [M(), B(), i.value && S()])])]);
|
|
1070
|
+
return () => L();
|
|
1171
1071
|
}
|
|
1172
|
-
}),
|
|
1173
|
-
let
|
|
1174
|
-
function
|
|
1175
|
-
|
|
1072
|
+
}), p = {}, f = {}, m = {}, y = {};
|
|
1073
|
+
let ue = !1;
|
|
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));
|
|
1176
1076
|
}
|
|
1177
|
-
function
|
|
1178
|
-
|
|
1179
|
-
function e(r
|
|
1180
|
-
|
|
1181
|
-
return c ? c(d) : {};
|
|
1077
|
+
function uo() {
|
|
1078
|
+
so();
|
|
1079
|
+
function e(r) {
|
|
1080
|
+
return p[r] || lo;
|
|
1182
1081
|
}
|
|
1183
|
-
function t(r) {
|
|
1184
|
-
|
|
1082
|
+
function t(r, d) {
|
|
1083
|
+
const u = f[r];
|
|
1084
|
+
return u ? u(d) : {};
|
|
1185
1085
|
}
|
|
1186
1086
|
function n(r) {
|
|
1187
1087
|
switch (r) {
|
|
@@ -1230,9 +1130,12 @@ function oo() {
|
|
|
1230
1130
|
return "onSavedCommandListChanged";
|
|
1231
1131
|
case "grid-field-editor":
|
|
1232
1132
|
return "onChange";
|
|
1133
|
+
case "item-collection-editor":
|
|
1134
|
+
return "onChange";
|
|
1233
1135
|
case "response-form-layout-setting":
|
|
1234
1136
|
return "onChange";
|
|
1235
1137
|
case "field-selector":
|
|
1138
|
+
case "binding-selector":
|
|
1236
1139
|
return "onFieldSelected";
|
|
1237
1140
|
case "schema-selector":
|
|
1238
1141
|
return "onSchemaSelected";
|
|
@@ -1240,6 +1143,8 @@ function oo() {
|
|
|
1240
1143
|
return "onMappingFieldsChanged";
|
|
1241
1144
|
case "textarea":
|
|
1242
1145
|
return "onValueChange";
|
|
1146
|
+
case "query-solution-config":
|
|
1147
|
+
return "onFieldsChanged";
|
|
1243
1148
|
}
|
|
1244
1149
|
}
|
|
1245
1150
|
function o(r) {
|
|
@@ -1250,109 +1155,110 @@ function oo() {
|
|
|
1250
1155
|
return "onClear";
|
|
1251
1156
|
}
|
|
1252
1157
|
}
|
|
1253
|
-
return { resolveEditorProps:
|
|
1158
|
+
return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
|
|
1254
1159
|
}
|
|
1255
|
-
const
|
|
1160
|
+
const co = /* @__PURE__ */ W({
|
|
1256
1161
|
name: "FDynamicFormGroup",
|
|
1257
|
-
props:
|
|
1162
|
+
props: he,
|
|
1258
1163
|
emits: ["change", "update:modelValue"],
|
|
1259
1164
|
setup(e, t) {
|
|
1260
|
-
const n =
|
|
1261
|
-
|
|
1262
|
-
const a =
|
|
1263
|
-
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,
|
|
1264
1169
|
resolveEditorType: s,
|
|
1265
|
-
getChangeFunctionName:
|
|
1266
|
-
getClearFunctionName:
|
|
1267
|
-
} =
|
|
1170
|
+
getChangeFunctionName: b,
|
|
1171
|
+
getClearFunctionName: B
|
|
1172
|
+
} = uo(), S = N(() => ({
|
|
1268
1173
|
"form-group": !0,
|
|
1269
1174
|
"farris-form-group": !0,
|
|
1270
1175
|
"common-group": !0,
|
|
1271
|
-
"q-state-readonly":
|
|
1176
|
+
"q-state-readonly": T.value
|
|
1272
1177
|
}));
|
|
1273
|
-
function
|
|
1274
|
-
|
|
1178
|
+
function M(P, E) {
|
|
1179
|
+
u.value = E !== void 0 ? E : P, t.emit("update:modelValue", u.value), t.emit("change", u.value);
|
|
1275
1180
|
}
|
|
1276
|
-
function
|
|
1181
|
+
function j() {
|
|
1277
1182
|
t.emit("update:modelValue", "");
|
|
1278
1183
|
}
|
|
1279
|
-
const
|
|
1280
|
-
const
|
|
1281
|
-
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({
|
|
1282
1187
|
ref: a
|
|
1283
1188
|
}, O, {
|
|
1284
|
-
modelValue:
|
|
1285
|
-
"onUpdate:modelValue": (
|
|
1286
|
-
}),
|
|
1189
|
+
modelValue: u.value,
|
|
1190
|
+
"onUpdate:modelValue": (V) => u.value = V
|
|
1191
|
+
}), t.slots);
|
|
1287
1192
|
});
|
|
1288
|
-
return
|
|
1289
|
-
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;
|
|
1290
1195
|
}), t.expose({
|
|
1291
1196
|
editorRef: a
|
|
1292
|
-
}), () =>
|
|
1197
|
+
}), () => g.value && l("div", {
|
|
1293
1198
|
id: `${n.value}-input-group`,
|
|
1294
|
-
class: o.value
|
|
1199
|
+
class: o.value,
|
|
1200
|
+
style: e.customStyle
|
|
1295
1201
|
}, [l("div", {
|
|
1296
1202
|
class: "farris-group-wrap"
|
|
1297
1203
|
}, [l("div", {
|
|
1298
|
-
class:
|
|
1299
|
-
}, [i.value && l(
|
|
1204
|
+
class: S.value
|
|
1205
|
+
}, [i.value && l(Gn, {
|
|
1300
1206
|
id: `${n.value}-lable`,
|
|
1301
|
-
required:
|
|
1207
|
+
required: c.value,
|
|
1302
1208
|
text: d.value,
|
|
1303
1209
|
title: d.value
|
|
1304
1210
|
}, null), l("div", {
|
|
1305
1211
|
class: "farris-input-wrap"
|
|
1306
|
-
}, [
|
|
1212
|
+
}, [L.value()])])])]);
|
|
1307
1213
|
}
|
|
1308
|
-
}),
|
|
1214
|
+
}), po = /* @__PURE__ */ W({
|
|
1309
1215
|
name: "FPropertyPanelItem",
|
|
1310
|
-
props:
|
|
1216
|
+
props: In,
|
|
1311
1217
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
1312
1218
|
setup(e, t) {
|
|
1313
|
-
var
|
|
1314
|
-
const n =
|
|
1315
|
-
|
|
1316
|
-
const d =
|
|
1219
|
+
var c;
|
|
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(() => {
|
|
1317
1223
|
const i = e.elementConfig.visible;
|
|
1318
1224
|
return {
|
|
1319
1225
|
"farris-group-wrap": !0,
|
|
1320
1226
|
"property-item": !0,
|
|
1321
|
-
"d-none": !(typeof i == "boolean" ? i : i
|
|
1227
|
+
"d-none": !(typeof i == "boolean" ? i : i === void 0 ? !0 : i())
|
|
1322
1228
|
};
|
|
1323
1229
|
});
|
|
1324
|
-
|
|
1230
|
+
R(() => {
|
|
1325
1231
|
var i;
|
|
1326
1232
|
return (i = e.elementConfig) == null ? void 0 : i.propertyValue;
|
|
1327
1233
|
}, (i) => {
|
|
1328
1234
|
d.value = i;
|
|
1329
1235
|
});
|
|
1330
|
-
function
|
|
1236
|
+
function T(i) {
|
|
1331
1237
|
e.elementConfig.propertyValue = i;
|
|
1332
|
-
const
|
|
1238
|
+
const g = {
|
|
1333
1239
|
propertyID: e.elementConfig.propertyID,
|
|
1334
1240
|
propertyValue: i
|
|
1335
1241
|
};
|
|
1336
|
-
t.emit("propertyChange",
|
|
1242
|
+
t.emit("propertyChange", g), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
|
|
1337
1243
|
}
|
|
1338
1244
|
return () => l("div", {
|
|
1339
|
-
class:
|
|
1340
|
-
}, [l(
|
|
1245
|
+
class: u.value
|
|
1246
|
+
}, [l(co, {
|
|
1341
1247
|
id: o.value,
|
|
1342
1248
|
customClass: `${n.value}-${o.value}`,
|
|
1343
1249
|
label: r.value,
|
|
1344
1250
|
editor: e.elementConfig.editor,
|
|
1345
1251
|
modelValue: d.value,
|
|
1346
|
-
onChange:
|
|
1252
|
+
onChange: T,
|
|
1347
1253
|
editorParams: e.elementConfig.editorParams
|
|
1348
1254
|
}, null)]);
|
|
1349
1255
|
}
|
|
1350
|
-
}),
|
|
1256
|
+
}), fo = /* @__PURE__ */ W({
|
|
1351
1257
|
name: "FPropertyPanelItemList",
|
|
1352
|
-
props:
|
|
1258
|
+
props: En,
|
|
1353
1259
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
1354
1260
|
setup(e, t) {
|
|
1355
|
-
const n =
|
|
1261
|
+
const n = F(e.category);
|
|
1356
1262
|
function o(s) {
|
|
1357
1263
|
if (!s.hideCascadeTitle)
|
|
1358
1264
|
return l("div", {
|
|
@@ -1365,8 +1271,8 @@ const ro = /* @__PURE__ */ H({
|
|
|
1365
1271
|
readonly: !0
|
|
1366
1272
|
}, null)]);
|
|
1367
1273
|
}
|
|
1368
|
-
function r(s,
|
|
1369
|
-
|
|
1274
|
+
function r(s, b) {
|
|
1275
|
+
b.isExpand = !b.isExpand;
|
|
1370
1276
|
}
|
|
1371
1277
|
function d(s) {
|
|
1372
1278
|
return l("div", {
|
|
@@ -1376,10 +1282,10 @@ const ro = /* @__PURE__ */ H({
|
|
|
1376
1282
|
class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
|
|
1377
1283
|
"f-state-expand": s.isExpand
|
|
1378
1284
|
}],
|
|
1379
|
-
onClick: (
|
|
1285
|
+
onClick: (b) => r(b, s)
|
|
1380
1286
|
}, [l("span", null, null)])]);
|
|
1381
1287
|
}
|
|
1382
|
-
function
|
|
1288
|
+
function u(s) {
|
|
1383
1289
|
return l("div", {
|
|
1384
1290
|
class: "f-section-formgroup-legend"
|
|
1385
1291
|
}, [l("div", {
|
|
@@ -1396,10 +1302,10 @@ const ro = /* @__PURE__ */ H({
|
|
|
1396
1302
|
class: "farris-label-text"
|
|
1397
1303
|
}, [s.propertyName])])])]);
|
|
1398
1304
|
}
|
|
1399
|
-
function
|
|
1305
|
+
function T(s) {
|
|
1400
1306
|
return `${e.categoryKey}_${s.propertyID}`;
|
|
1401
1307
|
}
|
|
1402
|
-
function
|
|
1308
|
+
function c(s) {
|
|
1403
1309
|
s.categoryId = n.value.categoryId, n.value.enableCascade && (s.propertyPath = n.value.parentPropertyID), n.value.setPropertyRelates && n.value.setPropertyRelates(s, e.propertyData), t.emit("valueChanged", {
|
|
1404
1310
|
changeObject: s
|
|
1405
1311
|
});
|
|
@@ -1407,19 +1313,19 @@ const ro = /* @__PURE__ */ H({
|
|
|
1407
1313
|
function i() {
|
|
1408
1314
|
t.emit("triggerRefreshPanel");
|
|
1409
1315
|
}
|
|
1410
|
-
function
|
|
1316
|
+
function g(s) {
|
|
1411
1317
|
return l("div", {
|
|
1412
1318
|
class: "px-2 mb-2"
|
|
1413
|
-
}, [l(
|
|
1414
|
-
key:
|
|
1319
|
+
}, [l(po, {
|
|
1320
|
+
key: T(s),
|
|
1415
1321
|
elementConfig: s,
|
|
1416
1322
|
category: n.value,
|
|
1417
|
-
onPropertyChange:
|
|
1323
|
+
onPropertyChange: c,
|
|
1418
1324
|
onTriggerRefreshPanel: i
|
|
1419
1325
|
}, null)]);
|
|
1420
1326
|
}
|
|
1421
1327
|
function a(s) {
|
|
1422
|
-
var
|
|
1328
|
+
var b;
|
|
1423
1329
|
return l("div", {
|
|
1424
1330
|
class: "propertyCascadeItem farris-panel px-2 mb-2"
|
|
1425
1331
|
}, [l("div", {
|
|
@@ -1428,163 +1334,163 @@ const ro = /* @__PURE__ */ H({
|
|
|
1428
1334
|
}]
|
|
1429
1335
|
}, [l("div", {
|
|
1430
1336
|
class: "card-header",
|
|
1431
|
-
onClick: (
|
|
1337
|
+
onClick: (B) => r(B, s)
|
|
1432
1338
|
}, [l("div", {
|
|
1433
1339
|
class: "panel-item-title"
|
|
1434
1340
|
}, [l("div", {
|
|
1435
1341
|
class: "form-group farris-form-group line-item"
|
|
1436
|
-
}, [
|
|
1342
|
+
}, [u(s), o(s), d(s)])])]), l("div", {
|
|
1437
1343
|
class: ["card-body", {
|
|
1438
1344
|
hidden: !s.isExpand
|
|
1439
1345
|
}]
|
|
1440
|
-
}, [(
|
|
1346
|
+
}, [(b = s.cascadeConfig) == null ? void 0 : b.map((B) => g(B))])])]);
|
|
1441
1347
|
}
|
|
1442
|
-
|
|
1348
|
+
R(() => e.category, () => {
|
|
1443
1349
|
n.value = e.category;
|
|
1444
1350
|
});
|
|
1445
|
-
function
|
|
1446
|
-
return s.propertyType === "cascade" ? a :
|
|
1351
|
+
function v(s) {
|
|
1352
|
+
return s.propertyType === "cascade" ? a : g;
|
|
1447
1353
|
}
|
|
1448
|
-
return () => l(
|
|
1354
|
+
return () => l(z, null, [n.value.properties.map((s) => v(s)(s))]);
|
|
1449
1355
|
}
|
|
1450
|
-
}),
|
|
1356
|
+
}), ce = /* @__PURE__ */ W({
|
|
1451
1357
|
name: "FPropertyPanel",
|
|
1452
|
-
props:
|
|
1358
|
+
props: ln,
|
|
1453
1359
|
emits: ["propertyChanged"],
|
|
1454
1360
|
setup(e, t) {
|
|
1455
|
-
const n =
|
|
1456
|
-
let
|
|
1457
|
-
const
|
|
1458
|
-
let
|
|
1459
|
-
const
|
|
1460
|
-
function
|
|
1461
|
-
|
|
1462
|
-
if (
|
|
1463
|
-
const
|
|
1464
|
-
|
|
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);
|
|
1465
1371
|
}
|
|
1466
1372
|
});
|
|
1467
1373
|
}
|
|
1468
|
-
function G(
|
|
1469
|
-
let
|
|
1470
|
-
for (;
|
|
1471
|
-
|
|
1472
|
-
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;
|
|
1473
1379
|
}
|
|
1474
|
-
function
|
|
1475
|
-
|
|
1476
|
-
var
|
|
1477
|
-
const
|
|
1478
|
-
(
|
|
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);
|
|
1479
1385
|
});
|
|
1480
1386
|
}
|
|
1481
|
-
function
|
|
1482
|
-
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);
|
|
1483
1389
|
}
|
|
1484
|
-
function
|
|
1485
|
-
if (
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1390
|
+
function Fe(x, C, h) {
|
|
1391
|
+
if (x === 0) {
|
|
1392
|
+
const I = G(C), Y = G(h) - I - 5;
|
|
1393
|
+
C == null || C.scroll({
|
|
1488
1394
|
top: Y,
|
|
1489
1395
|
behavior: "smooth"
|
|
1490
1396
|
});
|
|
1491
1397
|
}
|
|
1492
1398
|
}
|
|
1493
|
-
function
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
}),
|
|
1497
|
-
const
|
|
1498
|
-
if (!
|
|
1499
|
-
|
|
1500
|
-
else if (
|
|
1501
|
-
const
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
const Y =
|
|
1505
|
-
|
|
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(_, {
|
|
1506
1412
|
color: "#5B89FE"
|
|
1507
|
-
}),
|
|
1413
|
+
}), P.push(_));
|
|
1508
1414
|
});
|
|
1509
1415
|
}, 50));
|
|
1510
1416
|
}
|
|
1511
1417
|
}
|
|
1512
|
-
function
|
|
1513
|
-
|
|
1418
|
+
function H(x) {
|
|
1419
|
+
ae(x);
|
|
1514
1420
|
}
|
|
1515
|
-
function
|
|
1421
|
+
function xe(x) {
|
|
1516
1422
|
const {
|
|
1517
|
-
value:
|
|
1518
|
-
} =
|
|
1519
|
-
|
|
1423
|
+
value: C
|
|
1424
|
+
} = x.target;
|
|
1425
|
+
x.key === "Enter" && H(C);
|
|
1520
1426
|
}
|
|
1521
|
-
function
|
|
1427
|
+
function Te(x) {
|
|
1522
1428
|
const {
|
|
1523
|
-
value:
|
|
1524
|
-
} =
|
|
1525
|
-
|
|
1429
|
+
value: C
|
|
1430
|
+
} = x.target;
|
|
1431
|
+
H(C);
|
|
1526
1432
|
}
|
|
1527
|
-
function
|
|
1528
|
-
|
|
1433
|
+
function we() {
|
|
1434
|
+
u.value || (v.value = !1), t.emit("closePropertyPanel");
|
|
1529
1435
|
}
|
|
1530
|
-
function X(
|
|
1531
|
-
|
|
1436
|
+
function X(x) {
|
|
1437
|
+
S.value = "", ae();
|
|
1532
1438
|
}
|
|
1533
|
-
function
|
|
1534
|
-
!
|
|
1439
|
+
function ke(x) {
|
|
1440
|
+
!x.status || x.status === "open" ? x.status = "closed" : x.status = "open";
|
|
1535
1441
|
}
|
|
1536
|
-
function
|
|
1537
|
-
var
|
|
1538
|
-
if (
|
|
1539
|
-
|
|
1442
|
+
function Q() {
|
|
1443
|
+
var x, C;
|
|
1444
|
+
if (b = [], !c.value || c.value.length === 0) {
|
|
1445
|
+
b = [{
|
|
1540
1446
|
tabId: "default",
|
|
1541
1447
|
tabName: "属性",
|
|
1542
1448
|
categoryList: []
|
|
1543
|
-
}],
|
|
1449
|
+
}], k.value = null;
|
|
1544
1450
|
return;
|
|
1545
1451
|
}
|
|
1546
|
-
if ((
|
|
1547
|
-
if (
|
|
1548
|
-
const
|
|
1549
|
-
|
|
1550
|
-
tabId:
|
|
1551
|
-
tabName:
|
|
1552
|
-
categoryList: [
|
|
1553
|
-
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
|
|
1554
1460
|
});
|
|
1555
1461
|
} else {
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1462
|
+
const I = b.find((A) => A.tabId === "default");
|
|
1463
|
+
I ? I.categoryList.push(h) : b.push({
|
|
1558
1464
|
tabId: "default",
|
|
1559
1465
|
tabName: "属性",
|
|
1560
|
-
categoryList: [
|
|
1466
|
+
categoryList: [h]
|
|
1561
1467
|
});
|
|
1562
1468
|
}
|
|
1563
1469
|
}), a.value) {
|
|
1564
|
-
|
|
1565
|
-
|
|
1470
|
+
const h = b == null ? void 0 : b.find((I) => I.tabId === a.value && !I.hide);
|
|
1471
|
+
k.value = h || b[0];
|
|
1566
1472
|
} else
|
|
1567
|
-
|
|
1568
|
-
a.value = (
|
|
1473
|
+
k.value = b[0];
|
|
1474
|
+
a.value = (C = k.value) == null ? void 0 : C.tabId;
|
|
1569
1475
|
}
|
|
1570
|
-
|
|
1571
|
-
i.value = e.schema, !e.schema || !e.schema.type ?
|
|
1572
|
-
}),
|
|
1573
|
-
|
|
1476
|
+
R(() => [e.schema, e.isShowPanel], () => {
|
|
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(() => {
|
|
1479
|
+
Q();
|
|
1574
1480
|
});
|
|
1575
|
-
function
|
|
1576
|
-
(!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);
|
|
1577
1483
|
}
|
|
1578
|
-
function
|
|
1579
|
-
|
|
1484
|
+
function Se(x, C) {
|
|
1485
|
+
E = x, O = C;
|
|
1580
1486
|
}
|
|
1581
|
-
function
|
|
1487
|
+
function ie() {
|
|
1582
1488
|
d.value = d.value === "panel" ? "sidebar" : "panel", d.value === "panel" ? (setTimeout(() => {
|
|
1583
|
-
|
|
1489
|
+
H();
|
|
1584
1490
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
1585
1491
|
}
|
|
1586
|
-
function
|
|
1587
|
-
if (
|
|
1492
|
+
function Pe() {
|
|
1493
|
+
if (g.value)
|
|
1588
1494
|
return l("div", {
|
|
1589
1495
|
class: "title-actions"
|
|
1590
1496
|
}, [l("div", {
|
|
@@ -1596,17 +1502,17 @@ const ro = /* @__PURE__ */ H({
|
|
|
1596
1502
|
role: "toolbar"
|
|
1597
1503
|
}, [l("li", {
|
|
1598
1504
|
class: "action-item",
|
|
1599
|
-
onClick:
|
|
1505
|
+
onClick: we
|
|
1600
1506
|
}, [l("span", {
|
|
1601
1507
|
class: "f-icon f-icon-close"
|
|
1602
1508
|
}, null)])])])])]);
|
|
1603
1509
|
}
|
|
1604
|
-
function
|
|
1605
|
-
|
|
1510
|
+
function Ee() {
|
|
1511
|
+
c.value = K(i.value, L, E, O), Q();
|
|
1606
1512
|
}
|
|
1607
|
-
function
|
|
1608
|
-
var
|
|
1609
|
-
if (r.value && ((
|
|
1513
|
+
function Ie() {
|
|
1514
|
+
var x;
|
|
1515
|
+
if (r.value && ((x = k.value) == null ? void 0 : x.tabId) !== "commands")
|
|
1610
1516
|
return l("div", {
|
|
1611
1517
|
class: "search"
|
|
1612
1518
|
}, [l("div", {
|
|
@@ -1616,80 +1522,80 @@ const ro = /* @__PURE__ */ H({
|
|
|
1616
1522
|
type: "text",
|
|
1617
1523
|
placeholder: "输入属性名称或编号快速定位",
|
|
1618
1524
|
autocomplete: "off",
|
|
1619
|
-
onKeyup: (
|
|
1620
|
-
value:
|
|
1525
|
+
onKeyup: (C) => xe(C),
|
|
1526
|
+
value: S.value
|
|
1621
1527
|
}, null), l("div", {
|
|
1622
1528
|
class: "input-group-append",
|
|
1623
1529
|
style: "margin-left: 0px;"
|
|
1624
1530
|
}, [l("span", {
|
|
1625
1531
|
class: "input-group-text input-group-clear",
|
|
1626
1532
|
style: [{
|
|
1627
|
-
display:
|
|
1533
|
+
display: S.value && S.value.length > 0 ? "" : "none"
|
|
1628
1534
|
}],
|
|
1629
|
-
onClick: (
|
|
1535
|
+
onClick: (C) => X()
|
|
1630
1536
|
}, [l("i", {
|
|
1631
1537
|
class: "f-icon modal_close"
|
|
1632
1538
|
}, null)]), l("span", {
|
|
1633
1539
|
class: "input-group-text input-group-clear",
|
|
1634
|
-
onClick: (
|
|
1540
|
+
onClick: (C) => Te(C)
|
|
1635
1541
|
}, [l("i", {
|
|
1636
1542
|
class: "f-icon f-icon-search"
|
|
1637
1543
|
}, null)])])])]);
|
|
1638
1544
|
}
|
|
1639
|
-
function
|
|
1640
|
-
return `${e.propertyName}_${
|
|
1545
|
+
function Oe(x) {
|
|
1546
|
+
return `${e.propertyName}_${x.categoryId}`;
|
|
1641
1547
|
}
|
|
1642
|
-
function
|
|
1643
|
-
t.emit("propertyChanged",
|
|
1548
|
+
function Ne(x) {
|
|
1549
|
+
t.emit("propertyChanged", x);
|
|
1644
1550
|
}
|
|
1645
|
-
function
|
|
1646
|
-
var
|
|
1647
|
-
if (
|
|
1551
|
+
function Me() {
|
|
1552
|
+
var x, C;
|
|
1553
|
+
if (k.value)
|
|
1648
1554
|
return l("div", {
|
|
1649
1555
|
class: "panel-body",
|
|
1650
|
-
ref:
|
|
1556
|
+
ref: j
|
|
1651
1557
|
}, [l("ul", {
|
|
1652
1558
|
class: ["property-grid", {
|
|
1653
1559
|
"wide-panel": o.value
|
|
1654
1560
|
}]
|
|
1655
|
-
}, [(
|
|
1656
|
-
key:
|
|
1657
|
-
"data-category-id":
|
|
1658
|
-
}, [!
|
|
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", {
|
|
1659
1565
|
class: "group-label",
|
|
1660
|
-
onClick: () =>
|
|
1566
|
+
onClick: () => ke(h)
|
|
1661
1567
|
}, [l("span", {
|
|
1662
1568
|
class: ["f-icon mr-2", {
|
|
1663
|
-
"f-legend-show":
|
|
1569
|
+
"f-legend-show": h.status === "closed"
|
|
1664
1570
|
}, {
|
|
1665
|
-
"f-legend-collapse":
|
|
1571
|
+
"f-legend-collapse": h.status === "open" || h.status === void 0
|
|
1666
1572
|
}]
|
|
1667
|
-
}, null),
|
|
1668
|
-
hidden:
|
|
1669
|
-
}, [l(
|
|
1670
|
-
key: `${
|
|
1671
|
-
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,
|
|
1672
1578
|
propertyData: i.value,
|
|
1673
|
-
onTriggerRefreshPanel:
|
|
1674
|
-
onValueChanged:
|
|
1579
|
+
onTriggerRefreshPanel: Ee,
|
|
1580
|
+
onValueChanged: Ne
|
|
1675
1581
|
}, null)])]))])]);
|
|
1676
1582
|
}
|
|
1677
|
-
function
|
|
1583
|
+
function Ve() {
|
|
1678
1584
|
if (d.value === "sidebar")
|
|
1679
1585
|
return l("div", {
|
|
1680
1586
|
class: "side-panel h-100",
|
|
1681
|
-
onClick:
|
|
1587
|
+
onClick: ie
|
|
1682
1588
|
}, [l("i", {
|
|
1683
1589
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
1684
|
-
}, null), l("span", null, [
|
|
1590
|
+
}, null), l("span", null, [pe("属性")])]);
|
|
1685
1591
|
}
|
|
1686
|
-
function
|
|
1592
|
+
function je() {
|
|
1687
1593
|
return {
|
|
1688
|
-
display:
|
|
1594
|
+
display: v.value ? "block" : "none",
|
|
1689
1595
|
width: n.value
|
|
1690
1596
|
};
|
|
1691
1597
|
}
|
|
1692
|
-
function
|
|
1598
|
+
function Le() {
|
|
1693
1599
|
return l("div", {
|
|
1694
1600
|
class: "switcher"
|
|
1695
1601
|
}, [l("i", {
|
|
@@ -1697,58 +1603,227 @@ const ro = /* @__PURE__ */ H({
|
|
|
1697
1603
|
style: [{
|
|
1698
1604
|
transform: d.value === "sidebar" ? "none" : "rotate(180deg)"
|
|
1699
1605
|
}],
|
|
1700
|
-
onClick:
|
|
1606
|
+
onClick: ie
|
|
1701
1607
|
}, null)]);
|
|
1702
1608
|
}
|
|
1703
|
-
function
|
|
1704
|
-
|
|
1609
|
+
function De(x) {
|
|
1610
|
+
k.value = x, a.value = k.value.tabId, S.value = "";
|
|
1705
1611
|
}
|
|
1706
|
-
function
|
|
1707
|
-
return
|
|
1612
|
+
function Re() {
|
|
1613
|
+
return b.map((x) => l("div", {
|
|
1708
1614
|
class: ["title-label", {
|
|
1709
|
-
active:
|
|
1615
|
+
active: k.value && k.value.tabId === x.tabId
|
|
1710
1616
|
}, {
|
|
1711
|
-
hidden:
|
|
1617
|
+
hidden: x.hide
|
|
1712
1618
|
}],
|
|
1713
|
-
onClick: () =>
|
|
1714
|
-
}, [l("span", null, [
|
|
1619
|
+
onClick: () => De(x)
|
|
1620
|
+
}, [l("span", null, [x.tabName])]));
|
|
1715
1621
|
}
|
|
1716
|
-
return
|
|
1717
|
-
|
|
1718
|
-
}),
|
|
1719
|
-
|
|
1720
|
-
}),
|
|
1622
|
+
return q(() => {
|
|
1623
|
+
H(S.value);
|
|
1624
|
+
}), Qe(() => {
|
|
1625
|
+
u.value && (v.value = T.value), Q(), H(S.value);
|
|
1626
|
+
}), R(k, () => {
|
|
1721
1627
|
}), t.expose({
|
|
1722
|
-
updatePropertyConfig:
|
|
1723
|
-
updateDesignerItem:
|
|
1724
|
-
}), () => l(
|
|
1725
|
-
ref:
|
|
1628
|
+
updatePropertyConfig: Be,
|
|
1629
|
+
updateDesignerItem: Se
|
|
1630
|
+
}), () => l(z, null, [l("div", {
|
|
1631
|
+
ref: M,
|
|
1726
1632
|
class: ["property-panel", {
|
|
1727
1633
|
"white-theme": s.value
|
|
1728
1634
|
}],
|
|
1729
|
-
style:
|
|
1635
|
+
style: je()
|
|
1730
1636
|
}, [l("div", {
|
|
1731
1637
|
class: "propertyPanel panel flex-column",
|
|
1732
1638
|
hidden: d.value !== "panel"
|
|
1733
1639
|
}, [l("div", {
|
|
1734
1640
|
class: ["title d-flex", {
|
|
1735
|
-
"p-right":
|
|
1641
|
+
"p-right": g.value
|
|
1736
1642
|
}, {
|
|
1737
|
-
only:
|
|
1643
|
+
only: b.length === 1
|
|
1738
1644
|
}]
|
|
1739
|
-
}, [
|
|
1645
|
+
}, [Re(), Pe()]), Ie(), Me()]), Le(), Ve()])]);
|
|
1646
|
+
}
|
|
1647
|
+
});
|
|
1648
|
+
class Br {
|
|
1649
|
+
constructor(t, n) {
|
|
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", {
|
|
1662
|
+
type: "object",
|
|
1663
|
+
categories: {}
|
|
1664
|
+
});
|
|
1665
|
+
var o;
|
|
1666
|
+
this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
|
|
1667
|
+
}
|
|
1668
|
+
getTableInfo() {
|
|
1669
|
+
var t;
|
|
1670
|
+
return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
|
|
1740
1671
|
}
|
|
1672
|
+
setDesignViewModelField(t) {
|
|
1673
|
+
var o;
|
|
1674
|
+
const n = t.binding && t.binding.type === "Form" && t.binding.field;
|
|
1675
|
+
if (n) {
|
|
1676
|
+
if (!this.designViewModelField) {
|
|
1677
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1678
|
+
this.designViewModelField = r.fields.find((d) => d.id === n);
|
|
1679
|
+
}
|
|
1680
|
+
t.updateOn = (o = this.designViewModelField) == null ? void 0 : o.updateOn;
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
changeFieldEditorType(t, n) {
|
|
1684
|
+
}
|
|
1685
|
+
getBasicPropConfig(t) {
|
|
1686
|
+
return {
|
|
1687
|
+
description: "Basic Information",
|
|
1688
|
+
title: "基本信息",
|
|
1689
|
+
properties: {
|
|
1690
|
+
id: {
|
|
1691
|
+
description: "组件标识",
|
|
1692
|
+
title: "标识",
|
|
1693
|
+
type: "string",
|
|
1694
|
+
readonly: !0
|
|
1695
|
+
},
|
|
1696
|
+
type: {
|
|
1697
|
+
description: "组件类型",
|
|
1698
|
+
title: "控件类型",
|
|
1699
|
+
type: "select",
|
|
1700
|
+
editor: {
|
|
1701
|
+
type: "combo-list",
|
|
1702
|
+
textField: "name",
|
|
1703
|
+
valueField: "value",
|
|
1704
|
+
data: [{ value: t.type, name: w[t.type].name }]
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
};
|
|
1709
|
+
}
|
|
1710
|
+
getAppearanceConfig(t = null) {
|
|
1711
|
+
return {
|
|
1712
|
+
title: "样式",
|
|
1713
|
+
description: "Appearance",
|
|
1714
|
+
properties: {
|
|
1715
|
+
class: {
|
|
1716
|
+
title: "class样式",
|
|
1717
|
+
type: "string",
|
|
1718
|
+
description: "组件的CSS样式",
|
|
1719
|
+
$converter: "/converter/appearance.converter"
|
|
1720
|
+
},
|
|
1721
|
+
style: {
|
|
1722
|
+
title: "style样式",
|
|
1723
|
+
type: "string",
|
|
1724
|
+
description: "组件的样式",
|
|
1725
|
+
$converter: "/converter/appearance.converter"
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
};
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
*
|
|
1732
|
+
* @param propertyId
|
|
1733
|
+
* @param componentInstance
|
|
1734
|
+
* @returns
|
|
1735
|
+
*/
|
|
1736
|
+
updateElementByParentContainer(t, n) {
|
|
1737
|
+
const o = n && n.parent && n.parent.schema;
|
|
1738
|
+
if (!o)
|
|
1739
|
+
return;
|
|
1740
|
+
const r = o.contents.findIndex((u) => u.id === t), d = fe(o.contents[r]);
|
|
1741
|
+
o.contents.splice(r, 1), o.contents.splice(r, 0, d);
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
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
|
+
]
|
|
1741
1813
|
});
|
|
1742
|
-
|
|
1743
|
-
|
|
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 = {
|
|
1744
1817
|
install(e) {
|
|
1745
|
-
e.component(
|
|
1818
|
+
e.component(ce.name, ce);
|
|
1746
1819
|
}
|
|
1747
1820
|
};
|
|
1748
1821
|
export {
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1822
|
+
Br as BaseControlProperty,
|
|
1823
|
+
ce as FPropertyPanel,
|
|
1824
|
+
mo as PropertyType,
|
|
1825
|
+
de as SchemaDOMMapping,
|
|
1826
|
+
Sr as default,
|
|
1827
|
+
In as propertyPanelItemProps,
|
|
1828
|
+
ln as propertyPanelProps
|
|
1754
1829
|
};
|