@farris/ui-vue 1.7.1 → 1.7.2-beta.1
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 +312 -61
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +1482 -56
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +752 -8
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +266 -110
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +129 -128
- package/components/calendar/index.umd.cjs +2 -2
- package/components/code-editor/index.esm.js +237 -169
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +134 -133
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +812 -502
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +323 -291
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +355 -174
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +134 -133
- package/components/comment/index.umd.cjs +2 -2
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +3830 -2796
- package/components/component/index.umd.cjs +8 -1
- package/components/condition/index.esm.js +2482 -492
- package/components/condition/index.umd.cjs +8 -1
- package/components/data-grid/index.esm.js +431 -406
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3306 -3165
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1 -1
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3094 -2731
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +397 -387
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +373 -124
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +592 -1894
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +250 -248
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +287 -284
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +1 -1
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1890 -1473
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +7371 -2
- package/components/expression-editor/index.umd.cjs +427 -1
- package/components/fieldset/index.esm.js +1 -1
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +4 -5
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.css +1 -1
- package/components/filter-condition-editor/index.esm.js +9044 -425
- package/components/filter-condition-editor/index.umd.cjs +427 -1
- package/components/html-template/index.esm.js +33 -36
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image/index.esm.js +2 -2
- package/components/image/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +615 -361
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +325 -247
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +269 -269
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +549 -163
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +837 -39
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +404 -622
- package/components/list-view/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +3624 -3625
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1487 -1462
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +577 -536
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/nav/index.esm.js +311 -31
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1634 -189
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +82 -82
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1200 -859
- package/components/order/index.umd.cjs +6 -6
- package/components/page-footer/index.esm.js +331 -48
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +110 -116
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +509 -232
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +353 -148
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +157 -153
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1825 -871
- package/components/property-panel/index.umd.cjs +12 -5
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +6075 -3862
- package/components/query-solution/index.umd.cjs +13 -6
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2603 -2376
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/search-box/index.esm.js +244 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +134 -133
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +179 -8
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.css +1 -0
- package/components/sort-condition-editor/index.esm.js +9488 -4
- package/components/sort-condition-editor/index.umd.cjs +427 -1
- package/components/splitter/index.esm.js +1172 -142
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +47 -48
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +490 -419
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +217 -73
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +29 -27
- package/components/textarea/index.umd.cjs +2 -2
- package/components/transfer/index.esm.js +762 -544
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +287 -283
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +326 -157
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +1125 -634
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +359 -106
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +222 -89
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +290 -199
- package/components/weather/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +5798 -4905
- package/designer/data-grid/index.umd.cjs +16 -9
- package/designer/drawer/index.esm.js +576 -567
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +1418 -1154
- package/designer/dynamic-form/index.umd.cjs +8 -1
- package/designer/farris-designer.all.esm.js +11332 -10754
- package/designer/farris-designer.all.umd.cjs +17 -17
- package/designer/list-view/index.esm.js +647 -647
- package/designer/list-view/index.umd.cjs +6 -6
- package/designer/modal/index.esm.js +29 -137
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +2 -3
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +1 -1
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +1 -6
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +2848 -2556
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +2 -2
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +826 -465
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +75302 -73138
- package/farris.all.umd.cjs +94 -94
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/accordion/src/accordion.props.d.ts +1 -0
- package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
- package/types/avatar/src/avatar.props.d.ts +1 -0
- package/types/binding-selector/index.d.ts +54 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
- package/types/button-group/index.d.ts +0 -15
- package/types/button-group/src/button-group.props.d.ts +1 -0
- package/types/code-editor/index.d.ts +1 -0
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +2 -0
- package/types/color-picker/index.d.ts +15 -0
- package/types/color-picker/src/color-picker.props.d.ts +1 -0
- package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
- package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
- package/types/component/index.d.ts +2 -0
- package/types/component/src/component.props.d.ts +8 -0
- package/types/components.d.ts +7 -0
- package/types/condition/index.d.ts +55 -0
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/appearance/use-cell-position.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +5 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +2 -2
- package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +3 -2
- package/types/data-view/composition/visualization/use-visual-data-row.d.ts +2 -1
- package/types/designer-toolbox/index.d.ts +3 -0
- package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
- package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
- package/types/designer-toolbox/src/types.d.ts +21 -0
- package/types/designer.d.ts +13 -0
- package/types/dropdown/index.d.ts +6 -27
- package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
- package/types/dropdown/src/dropdown.props.d.ts +1 -0
- package/types/dynamic-form/designer.d.ts +1 -3
- package/types/dynamic-form/index.d.ts +3 -9
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
- package/types/dynamic-resolver/index.d.ts +0 -3
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
- package/types/dynamic-view/src/components/maps.d.ts +104 -92
- package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
- package/types/filter-condition-editor/index.d.ts +9 -0
- package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
- package/types/flow-canvas/index.d.ts +3 -0
- package/types/flow-canvas/src/components/flow-node-item.component.d.ts +8 -0
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
- package/types/flow-canvas/src/composition/types.d.ts +42 -0
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
- package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
- package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/json-editor/src/json-editor.props.d.ts +1 -0
- package/types/layout/index.d.ts +0 -1
- package/types/layout/src/components/layout-pane.props.d.ts +1 -0
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +2 -0
- package/types/layout/src/designer/layout-pane.design.component.d.ts +8 -0
- package/types/layout/src/designer/layout-use-designer-rules.d.ts +2 -0
- package/types/layout/src/designer/layout.design.component.d.ts +8 -0
- package/types/layout/src/layout.props.d.ts +1 -0
- package/types/layout/src/schema/schema-mapper.d.ts +2 -0
- package/types/layout/src/schema/schema-resolver.d.ts +2 -0
- package/types/list-nav/index.d.ts +5 -24
- package/types/list-nav/src/designer/use-designer-rules.d.ts +2 -0
- package/types/list-nav/src/list-nav.props.d.ts +1 -0
- package/types/list-nav/src/property-config/list-nav.property-config.d.ts +8 -0
- package/types/list-nav/src/schema/schema-mapper.d.ts +2 -0
- package/types/list-nav/src/schema/schema-resolver.d.ts +2 -0
- package/types/list-view/index.d.ts +0 -1
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +6 -6
- package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
- package/types/modal/designer.d.ts +0 -2
- package/types/nav/index.d.ts +20 -24
- package/types/nav/src/nav.props.d.ts +1 -0
- package/types/number-range/src/number-range.props.d.ts +1 -0
- package/types/order/index.d.ts +5 -36
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +1 -0
- package/types/page-footer/index.d.ts +2 -0
- package/types/page-footer/src/page-footer.props.d.ts +1 -0
- package/types/pagination/index.d.ts +0 -15
- package/types/pagination/src/pagination.props.d.ts +1 -0
- package/types/progress/src/progress.props.d.ts +1 -0
- package/types/query-solution/index.d.ts +2 -1
- package/types/radio-group/designer.d.ts +1 -2
- package/types/search-box/index.d.ts +17 -1
- package/types/search-box/src/search-box.props.d.ts +1 -0
- package/types/section/designer.d.ts +0 -1
- package/types/smoke-detector/index.d.ts +2 -0
- package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
- package/types/sort-condition-editor/index.d.ts +7 -2
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
- package/types/splitter/index.d.ts +0 -1
- package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
- package/types/splitter/src/splitter.props.d.ts +1 -0
- package/types/tabs/designer.d.ts +0 -1
- package/types/tabs/index.d.ts +1 -0
- package/types/text/index.d.ts +20 -24
- package/types/text/src/text.props.d.ts +1 -0
- package/types/transfer/src/transfer.props.d.ts +1 -0
- package/types/tree-grid/src/components/data/data-area.component.d.ts +2 -2
- package/types/tree-grid/src/tree-grid.props.d.ts +1 -0
- package/types/tree-view/src/components/data/tree-area.component.d.ts +1 -1
- package/types/tree-view/src/tree-view.props.d.ts +2 -0
- package/types/uploader/src/uploader.props.d.ts +1 -0
- package/types/verify-detail/index.d.ts +5 -58
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
- package/types/video/index.d.ts +20 -24
- package/types/video/src/video.props.d.ts +1 -0
- package/components/dynamic-form/index.css +0 -1
- package/designer/accordion/index.esm.js +0 -257
- package/designer/accordion/index.umd.cjs +0 -1
- package/designer/avatar/index.esm.js +0 -1460
- package/designer/avatar/index.umd.cjs +0 -1
- package/designer/binding-selector/index.esm.js +0 -792
- package/designer/binding-selector/index.umd.cjs +0 -1
- package/designer/button-group/index.esm.js +0 -282
- package/designer/button-group/index.umd.cjs +0 -1
- package/designer/code-editor/index.esm.js +0 -75
- package/designer/code-editor/index.umd.cjs +0 -1
- package/designer/color-picker/index.esm.js +0 -1096
- package/designer/color-picker/index.umd.cjs +0 -1
- package/designer/combo-list/index.esm.js +0 -1095
- package/designer/combo-list/index.umd.cjs +0 -1
- package/designer/combo-tree/index.esm.js +0 -186
- package/designer/combo-tree/index.umd.cjs +0 -1
- package/designer/component/index.css +0 -1
- package/designer/component/index.esm.js +0 -5002
- package/designer/component/index.umd.cjs +0 -1
- package/designer/condition/index.esm.js +0 -1899
- package/designer/condition/index.umd.cjs +0 -1
- package/designer/dropdown/index.esm.js +0 -261
- package/designer/dropdown/index.umd.cjs +0 -1
- package/designer/expression-editor/index.css +0 -1
- package/designer/expression-editor/index.esm.js +0 -7006
- package/designer/expression-editor/index.umd.cjs +0 -427
- package/designer/filter-condition-editor/index.css +0 -1
- package/designer/filter-condition-editor/index.esm.js +0 -4795
- package/designer/filter-condition-editor/index.umd.cjs +0 -1
- package/designer/html-template/index.esm.js +0 -718
- package/designer/html-template/index.umd.cjs +0 -1
- package/designer/image-cropper/index.esm.js +0 -765
- package/designer/image-cropper/index.umd.cjs +0 -1
- package/designer/json-editor/index.esm.js +0 -83
- package/designer/json-editor/index.umd.cjs +0 -1
- package/designer/language-textbox/index.esm.js +0 -783
- package/designer/language-textbox/index.umd.cjs +0 -8
- package/designer/layout/index.esm.js +0 -430
- package/designer/layout/index.umd.cjs +0 -1
- package/designer/list-nav/index.esm.js +0 -802
- package/designer/list-nav/index.umd.cjs +0 -1
- package/designer/lookup/index.esm.js +0 -2083
- package/designer/lookup/index.umd.cjs +0 -1
- package/designer/menu-lookup/index.esm.js +0 -46
- package/designer/menu-lookup/index.umd.cjs +0 -1
- package/designer/nav/index.esm.js +0 -284
- package/designer/nav/index.umd.cjs +0 -1
- package/designer/number-range/index.esm.js +0 -1616
- package/designer/number-range/index.umd.cjs +0 -1
- package/designer/order/index.css +0 -1
- package/designer/order/index.esm.js +0 -2196
- package/designer/order/index.umd.cjs +0 -18
- package/designer/page-footer/index.esm.js +0 -290
- package/designer/page-footer/index.umd.cjs +0 -1
- package/designer/page-header/index.esm.js +0 -1003
- package/designer/page-header/index.umd.cjs +0 -1
- package/designer/pagination/index.esm.js +0 -591
- package/designer/pagination/index.umd.cjs +0 -1
- package/designer/progress/index.esm.js +0 -213
- package/designer/progress/index.umd.cjs +0 -1
- package/designer/search-box/index.esm.js +0 -245
- package/designer/search-box/index.umd.cjs +0 -1
- package/designer/smoke-detector/index.css +0 -1
- package/designer/smoke-detector/index.esm.js +0 -178
- package/designer/smoke-detector/index.umd.cjs +0 -1
- package/designer/sort-condition-editor/index.esm.js +0 -138
- package/designer/sort-condition-editor/index.umd.cjs +0 -1
- package/designer/splitter/index.esm.js +0 -1120
- package/designer/splitter/index.umd.cjs +0 -1
- package/designer/step/index.esm.js +0 -226
- package/designer/step/index.umd.cjs +0 -1
- package/designer/text/index.esm.js +0 -147
- package/designer/text/index.umd.cjs +0 -1
- package/designer/transfer/index.esm.js +0 -254
- package/designer/transfer/index.umd.cjs +0 -1
- package/designer/tree-view/index.esm.js +0 -313
- package/designer/tree-view/index.umd.cjs +0 -1
- package/designer/uploader/index.esm.js +0 -1190
- package/designer/uploader/index.umd.cjs +0 -2
- package/designer/verify-detail/index.esm.js +0 -258
- package/designer/verify-detail/index.umd.cjs +0 -1
- package/designer/video/index.esm.js +0 -136
- package/designer/video/index.umd.cjs +0 -1
- package/designer/weather/index.css +0 -1
- package/designer/weather/index.esm.js +0 -6244
- package/designer/weather/index.umd.cjs +0 -14
- package/types/accordion/designer.d.ts +0 -44
- package/types/avatar/designer.d.ts +0 -29
- package/types/button-group/designer.d.ts +0 -29
- package/types/code-editor/designer.d.ts +0 -5
- package/types/color-picker/designer.d.ts +0 -29
- package/types/combo-list/designer.d.ts +0 -29
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
- package/types/combo-tree/designer.d.ts +0 -5
- package/types/component/designer.d.ts +0 -35
- package/types/condition/designer.d.ts +0 -56
- package/types/dropdown/designer.d.ts +0 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
- package/types/expression-editor/designer.d.ts +0 -9
- package/types/filter-condition-editor/designer.d.ts +0 -10
- package/types/html-template/designer.d.ts +0 -31
- package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
- package/types/image-cropper/designer.d.ts +0 -4
- package/types/json-editor/designer.d.ts +0 -5
- package/types/menu-lookup/designer.d.ts +0 -5
- package/types/nav/designer.d.ts +0 -6
- package/types/number-range/designer.d.ts +0 -29
- package/types/order/designer.d.ts +0 -6
- package/types/page-footer/designer.d.ts +0 -6
- package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
- package/types/pagination/designer.d.ts +0 -29
- package/types/progress/designer.d.ts +0 -29
- package/types/search-box/designer.d.ts +0 -52
- package/types/smoke-detector/designer.d.ts +0 -6
- package/types/sort-condition-editor/designer.d.ts +0 -9
- package/types/splitter/designer.d.ts +0 -32
- package/types/step/designer.d.ts +0 -6
- package/types/text/designer.d.ts +0 -6
- package/types/transfer/designer.d.ts +0 -35
- package/types/tree-view/designer.d.ts +0 -29
- package/types/uploader/designer.d.ts +0 -141
- package/types/verify-detail/designer.d.ts +0 -6
- package/types/video/designer.d.ts +0 -6
- /package/{designer → components}/condition/index.css +0 -0
- /package/{designer → components}/uploader/index.css +0 -0
- /package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → list-nav/src/designer/list-nav.design.component.d.ts} +0 -0
|
@@ -1,96 +1,92 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { defineComponent as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import _e from "
|
|
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 pt from "../../components/field-selector/index.esm.js";
|
|
26
|
-
import dt from "../binding-selector/index.esm.js";
|
|
27
|
-
import mt from "../image-cropper/index.esm.js";
|
|
28
|
-
import ft from "../input-group/index.esm.js";
|
|
29
|
-
import yt from "../../components/layout/index.esm.js";
|
|
30
|
-
import gt from "../../components/list-nav/index.esm.js";
|
|
31
|
-
import ht from "../list-view/index.esm.js";
|
|
32
|
-
import Ct from "../../components/lookup/index.esm.js";
|
|
33
|
-
import vt from "../../components/mapping-editor/index.esm.js";
|
|
34
|
-
import Ft from "../nav/index.esm.js";
|
|
35
|
-
import bt from "../number-range/index.esm.js";
|
|
36
|
-
import wt from "../number-spinner/index.esm.js";
|
|
37
|
-
import It from "../order/index.esm.js";
|
|
38
|
-
import Vt from "../../components/page-header/index.esm.js";
|
|
39
|
-
import Tt from "../page-footer/index.esm.js";
|
|
40
|
-
import kt from "../pagination/index.esm.js";
|
|
41
|
-
import Mt from "../progress/index.esm.js";
|
|
42
|
-
import Bt from "../../components/query-solution/index.esm.js";
|
|
43
|
-
import xt from "../radio-group/index.esm.js";
|
|
44
|
-
import Et from "../rate/index.esm.js";
|
|
45
|
-
import Pt from "../response-toolbar/index.esm.js";
|
|
46
|
-
import Lt from "../../components/response-layout/index.esm.js";
|
|
47
|
-
import Dt, { useResponseLayoutEditorSetting as Nt } from "../response-layout-editor/index.esm.js";
|
|
48
|
-
import Ut from "../search-box/index.esm.js";
|
|
49
|
-
import $t from "../section/index.esm.js";
|
|
50
|
-
import At from "../smoke-detector/index.esm.js";
|
|
51
|
-
import Rt from "../splitter/index.esm.js";
|
|
52
|
-
import qt from "../step/index.esm.js";
|
|
53
|
-
import St from "../switch/index.esm.js";
|
|
54
|
-
import Gt from "../tabs/index.esm.js";
|
|
55
|
-
import jt from "../tags/index.esm.js";
|
|
56
|
-
import Ot from "../text/index.esm.js";
|
|
57
|
-
import Zt from "../time-picker/index.esm.js";
|
|
58
|
-
import Wt from "../transfer/index.esm.js";
|
|
59
|
-
import Jt from "../tree-view/index.esm.js";
|
|
60
|
-
import zt from "../uploader/index.esm.js";
|
|
61
|
-
import Xt from "../verify-detail/index.esm.js";
|
|
62
|
-
import Kt from "../video/index.esm.js";
|
|
63
|
-
import Qt from "../textarea/index.esm.js";
|
|
64
|
-
import _t from "../../components/schema-selector/index.esm.js";
|
|
65
|
-
import Yt from "../tree-grid/index.esm.js";
|
|
66
|
-
import Ht from "../../components/event-parameter/index.esm.js";
|
|
67
|
-
import eo from "../filter-condition-editor/index.esm.js";
|
|
68
|
-
import to from "../../components/fieldset/index.esm.js";
|
|
69
|
-
import oo from "../sort-condition-editor/index.esm.js";
|
|
70
|
-
import no from "../menu-lookup/index.esm.js";
|
|
71
|
-
import ro from "../drawer/index.esm.js";
|
|
72
|
-
import io from "../json-editor/index.esm.js";
|
|
73
|
-
import ao from "../../components/property-editor/index.esm.js";
|
|
74
|
-
import so from "../expression-editor/index.esm.js";
|
|
75
|
-
import lo from "../code-editor/index.esm.js";
|
|
76
|
-
import uo from "../html-template/index.esm.js";
|
|
77
|
-
import co from "../../components/collection-property-editor/index.esm.js";
|
|
78
|
-
import po from "../modal/index.esm.js";
|
|
79
|
-
import mo from "../../components/external-container/index.esm.js";
|
|
80
|
-
import fo from "../../components/language-textbox/index.esm.js";
|
|
81
|
-
import yo from "../../components/image/index.esm.js";
|
|
82
|
-
import go from "../../components/comment/index.esm.js";
|
|
83
|
-
import { useThirdComponent as ke, isMobilePhone as ho, useGuid as ve, areaResponseDirective as Co, useTextBoxDesign as vo, FormSchemaEntityField$Type as Fe, FormSchemaEntityFieldTypeName as be } from "../../components/common/index.esm.js";
|
|
84
|
-
import { DgControl as a, refreshCanvas as Fo, UseTemplateDragAndDropRules as bo, useDragulaCommonRule as wo, useDesignerComponent as fe } from "../../components/designer-canvas/index.esm.js";
|
|
85
|
-
import { BaseControlProperty as Io, FormBindingType as oe, InputBaseProperty as Vo } from "../../components/property-panel/index.esm.js";
|
|
1
|
+
var Me = Object.defineProperty;
|
|
2
|
+
var xe = (e, t, n) => t in e ? Me(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var te = (e, t, n) => xe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { dynamicFormGroupProps as ve, FDynamicFormLabel as Be, responseFormProps as Pe, dynamicFormInputProps as Ee, FDynamicFormGroup as De, FResponseForm as $e, FDynamicFormInput as Ne } from "../../components/dynamic-form/index.esm.js";
|
|
5
|
+
import { schemaMap as Se, propertyConfigSchemaMapForDesigner as Le, resolveAppearance as Oe, createPropsResolver as re, createFormGroupEditorResolver as Ae } from "../../components/dynamic-resolver/index.esm.js";
|
|
6
|
+
import { defineComponent as ne, ref as A, inject as Y, onMounted as ie, computed as K, withDirectives as Re, createVNode as P, resolveDirective as Ue, mergeProps as be, watch as je, createTextVNode as Q } from "vue";
|
|
7
|
+
import { DgControl as u, refreshCanvas as qe, UseTemplateDragAndDropRules as Ge, useDragulaCommonRule as Ze, useDesignerComponent as ce } from "../../components/designer-canvas/index.esm.js";
|
|
8
|
+
import { useGuid as pe, areaResponseDirective as ze, useThirdComponent as he, useTextBoxDesign as We, FormSchemaEntityField$Type as de, FormSchemaEntityFieldTypeName as me } from "../../components/common/index.esm.js";
|
|
9
|
+
import { BaseControlProperty as Je, FormBindingType as H, InputBaseProperty as _e } from "../../components/property-panel/index.esm.js";
|
|
10
|
+
import { useResponseLayoutEditorSetting as Xe } from "../response-layout-editor/index.esm.js";
|
|
11
|
+
import "../../components/accordion/index.esm.js";
|
|
12
|
+
import "../../components/avatar/index.esm.js";
|
|
13
|
+
import "../button-edit/index.esm.js";
|
|
14
|
+
import "../../components/button-group/index.esm.js";
|
|
15
|
+
import "../../components/calendar/index.esm.js";
|
|
16
|
+
import "../capsule/index.esm.js";
|
|
17
|
+
import "../checkbox/index.esm.js";
|
|
18
|
+
import "../checkbox-group/index.esm.js";
|
|
19
|
+
import "../../components/color-picker/index.esm.js";
|
|
20
|
+
import oe from "../../components/combo-list/index.esm.js";
|
|
21
|
+
import "../../components/content-container/index.esm.js";
|
|
22
|
+
import "../data-grid/index.esm.js";
|
|
23
|
+
import "../date-picker/index.esm.js";
|
|
24
|
+
import "../../components/dropdown/index.esm.js";
|
|
86
25
|
import "../dynamic-form/index.esm.js";
|
|
26
|
+
import "../../components/external-container/index.esm.js";
|
|
27
|
+
import "../../components/filter-bar/index.esm.js";
|
|
28
|
+
import "../../components/image-cropper/index.esm.js";
|
|
29
|
+
import "../input-group/index.esm.js";
|
|
30
|
+
import "../../components/layout/index.esm.js";
|
|
31
|
+
import "../../components/list-nav/index.esm.js";
|
|
32
|
+
import "../list-view/index.esm.js";
|
|
33
|
+
import "../../components/lookup/index.esm.js";
|
|
34
|
+
import "../../components/language-textbox/index.esm.js";
|
|
87
35
|
import "../../components/nav/index.esm.js";
|
|
36
|
+
import "../number-spinner/index.esm.js";
|
|
37
|
+
import "../../components/number-range/index.esm.js";
|
|
38
|
+
import "../../components/order/index.esm.js";
|
|
39
|
+
import "../../components/page-header/index.esm.js";
|
|
40
|
+
import "../../components/page-footer/index.esm.js";
|
|
41
|
+
import "../../components/pagination/index.esm.js";
|
|
42
|
+
import "../../components/progress/index.esm.js";
|
|
43
|
+
import "../../components/query-solution/index.esm.js";
|
|
44
|
+
import "../radio-group/index.esm.js";
|
|
45
|
+
import "../rate/index.esm.js";
|
|
46
|
+
import "../response-toolbar/index.esm.js";
|
|
47
|
+
import "../../components/response-layout/index.esm.js";
|
|
48
|
+
import "../../components/search-box/index.esm.js";
|
|
49
|
+
import "../section/index.esm.js";
|
|
50
|
+
import "../../components/smoke-detector/index.esm.js";
|
|
51
|
+
import "../../components/splitter/index.esm.js";
|
|
88
52
|
import "../../components/step/index.esm.js";
|
|
53
|
+
import "../switch/index.esm.js";
|
|
54
|
+
import "../tabs/index.esm.js";
|
|
55
|
+
import "../tags/index.esm.js";
|
|
56
|
+
import "../../components/text/index.esm.js";
|
|
57
|
+
import "../time-picker/index.esm.js";
|
|
58
|
+
import "../../components/transfer/index.esm.js";
|
|
59
|
+
import "../../components/tree-view/index.esm.js";
|
|
60
|
+
import "../../components/uploader/index.esm.js";
|
|
61
|
+
import "../../components/verify-detail/index.esm.js";
|
|
62
|
+
import "../../components/component/index.esm.js";
|
|
63
|
+
import "../../components/video/index.esm.js";
|
|
64
|
+
import "../textarea/index.esm.js";
|
|
65
|
+
import "../tree-grid/index.esm.js";
|
|
66
|
+
import "../../components/fieldset/index.esm.js";
|
|
67
|
+
import "../drawer/index.esm.js";
|
|
89
68
|
import "../../components/html-template/index.esm.js";
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import {
|
|
93
|
-
|
|
69
|
+
import "../../components/image/index.esm.js";
|
|
70
|
+
import "../../components/comment/index.esm.js";
|
|
71
|
+
import { isPlainObject as fe, cloneDeep as ae } from "lodash-es";
|
|
72
|
+
import "../../components/combo-tree/index.esm.js";
|
|
73
|
+
import "../../components/events-editor/index.esm.js";
|
|
74
|
+
import "../../components/field-selector/index.esm.js";
|
|
75
|
+
import "../../components/binding-selector/index.esm.js";
|
|
76
|
+
import "../../components/mapping-editor/index.esm.js";
|
|
77
|
+
import "../../components/schema-selector/index.esm.js";
|
|
78
|
+
import "../../components/event-parameter/index.esm.js";
|
|
79
|
+
import "../../components/filter-condition-editor/index.esm.js";
|
|
80
|
+
import "../../components/sort-condition-editor/index.esm.js";
|
|
81
|
+
import "../../components/menu-lookup/index.esm.js";
|
|
82
|
+
import "../../components/json-editor/index.esm.js";
|
|
83
|
+
import "../../components/property-editor/index.esm.js";
|
|
84
|
+
import "../../components/expression-editor/index.esm.js";
|
|
85
|
+
import "../../components/code-editor/index.esm.js";
|
|
86
|
+
import "../../components/collection-property-editor/index.esm.js";
|
|
87
|
+
import "../modal/index.esm.js";
|
|
88
|
+
import { FMessageBoxService as Qe } from "../../components/message-box/index.esm.js";
|
|
89
|
+
const Ce = {
|
|
94
90
|
id: { type: String, default: "" },
|
|
95
91
|
customClass: { type: String, default: "" },
|
|
96
92
|
customStyle: { type: String, default: "" },
|
|
@@ -111,711 +107,417 @@ const ye = {
|
|
|
111
107
|
componentId: { type: String, default: "" },
|
|
112
108
|
errors: { type: Object, default: null },
|
|
113
109
|
fill: { type: Boolean, default: !1 }
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}), ae(() => t.required, (F, m) => {
|
|
135
|
-
F !== m && (o.value = F);
|
|
136
|
-
}), ae([() => t.valid, () => t.inValidTip], ([F, m]) => {
|
|
137
|
-
n.value = F, l.value = m;
|
|
138
|
-
});
|
|
139
|
-
const p = j(() => n.value ? i.value : l.value), C = j(() => n.value ? "" : "color:red"), g = j(() => ({
|
|
140
|
-
"col-form-label": !0,
|
|
141
|
-
// 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
|
|
142
|
-
"f-width-auto": o.value && (t.showType === "none" || !i.value)
|
|
143
|
-
})), y = j(() => t.showType === "force-none" ? !1 : t.showType === "reserve-space" || o.value || !!i.value && t.showType !== "none");
|
|
144
|
-
return () => y.value && b("label", {
|
|
145
|
-
class: g.value,
|
|
146
|
-
title: p.value,
|
|
147
|
-
style: C.value
|
|
148
|
-
}, [!n.value && b("span", {
|
|
149
|
-
class: "f-icon f-icon-warning mr-1",
|
|
150
|
-
style: "color: red; min-width: 16px;",
|
|
151
|
-
title: l.value
|
|
152
|
-
}, null), b("span", {
|
|
153
|
-
class: "farris-label-text"
|
|
154
|
-
}, [o.value && b("span", {
|
|
155
|
-
class: "farris-label-info text-danger"
|
|
156
|
-
}, [X("*")]), t.showType === "visible" && i.value])]);
|
|
157
|
-
}
|
|
158
|
-
}), { globalStorageKey: xo } = ke(), u = {}, c = {}, d = {}, f = {};
|
|
159
|
-
async function Eo() {
|
|
160
|
-
{
|
|
161
|
-
const t = {
|
|
162
|
-
schemaMap: Te,
|
|
163
|
-
propertyConfigSchemaMap: Oe,
|
|
164
|
-
propertyEffectMap: je,
|
|
165
|
-
schemaResolverMap: Ge
|
|
166
|
-
};
|
|
167
|
-
Qe.register(u, c, d, f), Ke.register(u, c, d, f), _e.register(u, c, d, f), Ye.register(u, c, d, f), He.register(u, c, d, f, t), et.register(u, c, d, f), he.register(u, c, d, f, t), Ce.register(u, c, d, f, t), he.register(u, c, d, f, t), Ce.register(u, c, d, f, t), tt.register(u, c, d, f, t), ot.register(u, c, d, f), nt.register(u, c, d, f), it.register(u, c, d, f, t), rt.register(u, c, d, f), at.register(u, c, d, f, t), st.register(u, c, d, f, t), lt.register(u, c, d, f), Ue.register(u, c, d, f, t), ut.register(u, c, d, f), so.register(u, c, d, f), ct.register(u, c, d, f), pt.register(u, c, d, f), eo.register(u, c, d, f), mt.register(u, c, d, f), ft.register(u, c, d, f, t), yt.register(u, c, d, f, t), ht.register(u, c, d, f, t), gt.register(u, c, d, f), Ct.register(u, c, d, f, t), vt.register(u, c, d, f), Ft.register(u, c, d, f), bt.register(u, c, d, f), wt.register(u, c, d, f, t), It.register(u, c, d, f), Vt.register(u, c, d, f, t), Tt.register(u, c, d, f), kt.register(u, c, d, f), Mt.register(u, c, d, f), Bt.register(u, c, d, f, t), xt.register(u, c, d, f, t), Et.register(u, c, d, f), Lt.register(u, c, d, f, t), Dt.register(u, c, d, f), Pt.register(u, c, d, f), _t.register(u, c, d), Ut.register(u, c, d, f), $t.register(u, c, d, f, t), At.register(u, c, d, f), Rt.register(u, c, d, f), qt.register(u, c, d, f), St.register(u, c, d, f, t), oo.register(u, c, d, f), Gt.register(u, c, d, f, t), jt.register(u, c, d, f), Ot.register(u, c, d, f), Zt.register(u, c, d, f, t), Wt.register(u, c, d, f), Jt.register(u, c, d, f), Xt.register(u, c, d, f), zt.register(u, c, d, f), Kt.register(u, c, d, f), Qt.register(u, c, d, f, t), Yt.register(u, c, d, f), dt.register(u, c, d, f), Ht.register(u, c, d, f), to.register(u, c, d, f, t), no.register(u, c, d, f), ro.register(u, c, d, f), io.register(u, c, d, f), ao.register(u, c, d, f), lo.register(u, c, d, f), uo.register(u, c, d, f, t), co.register(u, c, d, f), po.register(u, c, d, f), mo.register(u, c, d, f), fo.register(u, c, d, f, t), yo.register(u, c, d, f, t), go.register(u, c, d, f);
|
|
168
|
-
const e = window[xo];
|
|
169
|
-
if (e)
|
|
170
|
-
for (const o in e)
|
|
171
|
-
e[o].createPropsResolver = le, e[o].register(u, c, d);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
function Po() {
|
|
175
|
-
Eo();
|
|
176
|
-
function t(p) {
|
|
177
|
-
const C = u[p];
|
|
178
|
-
if (!C)
|
|
179
|
-
throw new Error(`Could not find the editor of type '${p}'`);
|
|
180
|
-
return C;
|
|
181
|
-
}
|
|
182
|
-
function e(p, C) {
|
|
183
|
-
const g = c[p];
|
|
184
|
-
return g ? g(C) : {};
|
|
185
|
-
}
|
|
186
|
-
function o(p) {
|
|
187
|
-
switch (p) {
|
|
188
|
-
case "check-box":
|
|
189
|
-
return "onChangeValue";
|
|
190
|
-
case "switch":
|
|
191
|
-
return "onModelValueChanged";
|
|
192
|
-
case "check-group":
|
|
193
|
-
return "onChangeValue";
|
|
194
|
-
case "combo-list":
|
|
195
|
-
case "combo-tree":
|
|
196
|
-
return "onChange";
|
|
197
|
-
case "combo-lookup":
|
|
198
|
-
return "";
|
|
199
|
-
case "year-range":
|
|
200
|
-
case "year-picker":
|
|
201
|
-
case "month-range":
|
|
202
|
-
case "month-picker":
|
|
203
|
-
case "date-range":
|
|
204
|
-
case "datetime-range":
|
|
205
|
-
case "datetime-picker":
|
|
206
|
-
return "onDatePicked";
|
|
207
|
-
case "date-picker":
|
|
208
|
-
return "onUpdate:modelValue";
|
|
209
|
-
case "time-picker":
|
|
210
|
-
return "onValueChange";
|
|
211
|
-
case "input-group":
|
|
212
|
-
return "onChange";
|
|
213
|
-
case "lookup":
|
|
214
|
-
case "sort-condition-editor":
|
|
215
|
-
case "filter-condition-editor":
|
|
216
|
-
case "code-editor":
|
|
217
|
-
case "language-textbox":
|
|
218
|
-
case "rich-text-editor":
|
|
219
|
-
return "onUpdate:modelValue";
|
|
220
|
-
case "number-range":
|
|
221
|
-
return "onValueChange";
|
|
222
|
-
case "number-spinner":
|
|
223
|
-
return "onValueChange";
|
|
224
|
-
case "radio-group":
|
|
225
|
-
return "onChangeValue";
|
|
226
|
-
case "text":
|
|
227
|
-
return "";
|
|
228
|
-
case "events-editor":
|
|
229
|
-
return "onSavedCommandListChanged";
|
|
230
|
-
case "grid-field-editor":
|
|
231
|
-
case "item-collection-editor":
|
|
232
|
-
case "response-form-layout-setting":
|
|
233
|
-
case "response-layout-editor-setting":
|
|
234
|
-
case "response-layout-splitter":
|
|
235
|
-
case "menu-lookup":
|
|
236
|
-
case "json-editor":
|
|
237
|
-
return "onChange";
|
|
238
|
-
case "field-selector":
|
|
239
|
-
case "binding-selector":
|
|
240
|
-
return "onFieldSelected";
|
|
241
|
-
case "schema-selector":
|
|
242
|
-
return "onSchemaSelected";
|
|
243
|
-
case "mapping-editor":
|
|
244
|
-
return "onMappingFieldsChanged";
|
|
245
|
-
case "textarea":
|
|
246
|
-
return "onChange";
|
|
247
|
-
case "query-solution-config":
|
|
248
|
-
case "solution-preset":
|
|
249
|
-
case "filter-bar-config":
|
|
250
|
-
return "onFieldsChanged";
|
|
251
|
-
case "property-editor":
|
|
252
|
-
return "onValueChange";
|
|
253
|
-
case "expression-editor":
|
|
254
|
-
return "onExpressionChanged";
|
|
255
|
-
case "collection-property-editor":
|
|
256
|
-
return "onValueChange";
|
|
257
|
-
default:
|
|
258
|
-
return "onUpdate:modelValue";
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
function i(p) {
|
|
262
|
-
switch (p) {
|
|
263
|
-
case "combo-list":
|
|
264
|
-
case "input-group":
|
|
265
|
-
case "textarea":
|
|
266
|
-
return "onClear";
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
function n(p) {
|
|
270
|
-
switch (p) {
|
|
271
|
-
case "input-group":
|
|
272
|
-
case "textarea":
|
|
273
|
-
return "onMousedownEvent";
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
function l(p) {
|
|
277
|
-
switch (p) {
|
|
278
|
-
case "input-group":
|
|
279
|
-
case "textarea":
|
|
280
|
-
return "onMouseupEvent";
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: o, getClearFunctionName: i, getMousedownFunctionName: n, getMouseupFunctionName: l };
|
|
284
|
-
}
|
|
285
|
-
const Lo = {
|
|
286
|
-
/**
|
|
287
|
-
* 显示的错误信息
|
|
288
|
-
*/
|
|
289
|
-
errors: {
|
|
290
|
-
type: Object,
|
|
291
|
-
default: null
|
|
292
|
-
}
|
|
293
|
-
}, Do = /* @__PURE__ */ _({
|
|
294
|
-
name: "FValidationMessage",
|
|
295
|
-
props: Lo,
|
|
296
|
-
emits: [],
|
|
297
|
-
setup(t, e) {
|
|
298
|
-
const o = B(t.errors);
|
|
299
|
-
ae(() => t.errors, (l) => {
|
|
300
|
-
o.value = l;
|
|
301
|
-
});
|
|
302
|
-
const i = B(!0), n = j(() => {
|
|
303
|
-
if (o.value) {
|
|
304
|
-
const l = Object.keys(o.value).map((p) => {
|
|
305
|
-
var C;
|
|
306
|
-
return (C = o.value[p]) == null ? void 0 : C.name;
|
|
307
|
-
});
|
|
308
|
-
return l.length ? l.join(" ") : "";
|
|
309
|
-
}
|
|
310
|
-
return "";
|
|
311
|
-
});
|
|
312
|
-
return () => n.value && b("div", {
|
|
313
|
-
class: "farris-feedback f-state-invalid",
|
|
314
|
-
onClick: () => i.value = !i.value
|
|
315
|
-
}, [!i.value && b("span", {
|
|
316
|
-
class: "f-icon f-icon-message_warning f-feedback-icon"
|
|
317
|
-
}, null), i.value && b("span", {
|
|
318
|
-
class: "f-feedback-message"
|
|
319
|
-
}, [n.value])]);
|
|
320
|
-
}
|
|
321
|
-
}), No = /* @__PURE__ */ _({
|
|
322
|
-
name: "FDynamicFormGroup",
|
|
323
|
-
props: ye,
|
|
324
|
-
emits: ["change", "update:modelValue"],
|
|
325
|
-
setup(t, e) {
|
|
326
|
-
var re;
|
|
327
|
-
const o = B(t.id), i = B(t.customClass), n = B(t.editor), l = B(t.label), p = B(t.modelValue), C = B(t.readonly), g = B(((re = t.editor) == null ? void 0 : re.required) || t.required), y = B(t.showLabel), F = B(t.visible);
|
|
328
|
-
B(t.type);
|
|
329
|
-
const m = B(), w = B(t.errors), E = ho(), L = B(t.editor.type || "input-group"), $ = j(() => y.value ? t.showLabelType : "none"), {
|
|
330
|
-
resolveEditorProps: R,
|
|
331
|
-
resolveEditorType: P,
|
|
332
|
-
getChangeFunctionName: M,
|
|
333
|
-
getClearFunctionName: q
|
|
334
|
-
} = Po(), A = j(() => {
|
|
335
|
-
const D = {
|
|
336
|
-
"form-group": !0,
|
|
337
|
-
"farris-form-group": !0,
|
|
338
|
-
"common-group": !0,
|
|
339
|
-
"q-state-readonly": C.value,
|
|
340
|
-
"form-group--in-mobile": E
|
|
341
|
-
};
|
|
342
|
-
return D["form-group--has-" + L.value] = !0, D;
|
|
343
|
-
}), O = j(() => {
|
|
344
|
-
if (t.fill)
|
|
345
|
-
return {
|
|
346
|
-
maxWidth: "none"
|
|
347
|
-
};
|
|
348
|
-
});
|
|
349
|
-
function S(D, G, r) {
|
|
350
|
-
p.value = G !== void 0 ? G : D, e.emit("update:modelValue", p.value), e.emit("change", p.value, {
|
|
351
|
-
newValue: D,
|
|
352
|
-
newModelValue: G,
|
|
353
|
-
parameters: r
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
function ne() {
|
|
357
|
-
e.emit("update:modelValue", "");
|
|
358
|
-
}
|
|
359
|
-
function W(D) {
|
|
360
|
-
return (...G) => {
|
|
361
|
-
ne(), typeof D == "function" && D(...G);
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
function K(D) {
|
|
365
|
-
return (G, r, s) => {
|
|
366
|
-
S(G, r, s), typeof D == "function" && D(G, r, s);
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
|
-
const Y = j(() => {
|
|
370
|
-
const D = n.value.type || "input-group", G = P(D), r = R(D, n.value), s = M(D), h = q(n.value.type);
|
|
371
|
-
return h && (r[h] = W(r[h])), s && (r[s] = K(r[s])), (r.id == null || r.id === "") && (r.id = o.value), D === "number-range" && n.value.onBeginValueChange && typeof n.value.onBeginValueChange == "function" ? (n.value.onBeginValueChange && typeof n.value.onBeginValueChange == "function" && (r.onBeginValueChange = n.value.onBeginValueChange), n.value.onEndValueChange && typeof n.value.onEndValueChange == "function" && (r.onEndValueChange = n.value.onEndValueChange)) : D === "lookup" && n.value["onUpdate:idValue"] && typeof n.value["onUpdate:idValue"] == "function" ? (r["onUpdate:idValue"] = n.value["onUpdate:idValue"], r.id = o.value) : D === "collection-property-editor" && n.value.onSelectionChange && typeof n.value.onSelectionChange == "function" ? r.onSelectionChange = n.value.onSelectionChange : D === "property-editor" && (r.onBeforeOpenVariables = n.value.onBeforeOpenVariables), () => b(G, me({
|
|
372
|
-
ref: m
|
|
373
|
-
}, r, {
|
|
374
|
-
modelValue: p.value,
|
|
375
|
-
"onUpdate:modelValue": (I) => p.value = I
|
|
376
|
-
}), e.slots);
|
|
377
|
-
});
|
|
378
|
-
function H() {
|
|
379
|
-
return b(Do, {
|
|
380
|
-
id: `${o.value}-validation-message`,
|
|
381
|
-
errors: w.value
|
|
382
|
-
}, null);
|
|
383
|
-
}
|
|
384
|
-
return ae([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([D, G, r, s, h, I, T, k, x, V]) => {
|
|
385
|
-
var v;
|
|
386
|
-
o.value = D, i.value = G, n.value = r, l.value = s, p.value = h, C.value = I, g.value = ((v = n.value) == null ? void 0 : v.required) || T, y.value = k, F.value = x, w.value = V;
|
|
387
|
-
}), e.expose({
|
|
388
|
-
editorRef: m
|
|
389
|
-
}), () => F.value && b("div", {
|
|
390
|
-
id: `${o.value}-form-group`,
|
|
391
|
-
class: i.value,
|
|
392
|
-
style: t.customStyle
|
|
393
|
-
}, [b("div", {
|
|
394
|
-
class: "farris-group-wrap",
|
|
395
|
-
style: O.value
|
|
396
|
-
}, [b("div", {
|
|
397
|
-
class: A.value
|
|
398
|
-
}, [b(Bo, {
|
|
399
|
-
id: `${o.value}-lable`,
|
|
400
|
-
showType: $.value,
|
|
401
|
-
required: g.value,
|
|
402
|
-
text: l.value,
|
|
403
|
-
title: l.value
|
|
404
|
-
}, null), b("div", {
|
|
405
|
-
class: "farris-input-wrap"
|
|
406
|
-
}, [Y.value(), H()])])])]);
|
|
407
|
-
}
|
|
408
|
-
});
|
|
409
|
-
function Uo(t, e) {
|
|
410
|
-
function o(g, y = null) {
|
|
411
|
-
if (y)
|
|
412
|
-
return y;
|
|
413
|
-
const F = t.getComponentById(e);
|
|
414
|
-
return t.selectNode(F, (m) => m.id === g);
|
|
415
|
-
}
|
|
416
|
-
function i(g) {
|
|
417
|
-
const y = t.getComponentById(g);
|
|
418
|
-
return !(!y || !y.componentType || !y.componentType.startsWith("form"));
|
|
419
|
-
}
|
|
420
|
-
function n(g) {
|
|
421
|
-
const y = new Set(g);
|
|
422
|
-
return Array.from(y).length === 1;
|
|
423
|
-
}
|
|
424
|
-
function l(g) {
|
|
425
|
-
const y = o(g.id), F = Nt(t), m = [];
|
|
426
|
-
F.getResonseFormLayoutConfig(y, m, 1);
|
|
427
|
-
const w = m.map((A) => A.columnInSM), E = m.map((A) => A.columnInMD), L = m.map((A) => A.columnInLG), $ = m.map((A) => A.columnInEL), R = n(w) ? w[0] : 0, P = n(E) ? E[0] : 0, M = n(L) ? L[0] : 0, q = n($) ? $[0] : 0;
|
|
110
|
+
};
|
|
111
|
+
function Ye(e, t) {
|
|
112
|
+
function n(h, a = null) {
|
|
113
|
+
if (a)
|
|
114
|
+
return a;
|
|
115
|
+
const f = e.getComponentById(t);
|
|
116
|
+
return e.selectNode(f, (i) => i.id === h);
|
|
117
|
+
}
|
|
118
|
+
function o(h) {
|
|
119
|
+
const a = e.getComponentById(h);
|
|
120
|
+
return !(!a || !a.componentType || !a.componentType.startsWith("form"));
|
|
121
|
+
}
|
|
122
|
+
function r(h) {
|
|
123
|
+
const a = new Set(h);
|
|
124
|
+
return Array.from(a).length === 1;
|
|
125
|
+
}
|
|
126
|
+
function m(h) {
|
|
127
|
+
const a = n(h.id), f = Xe(e), i = [];
|
|
128
|
+
f.getResonseFormLayoutConfig(a, i, 1);
|
|
129
|
+
const s = i.map(($) => $.columnInSM), g = i.map(($) => $.columnInMD), c = i.map(($) => $.columnInLG), p = i.map(($) => $.columnInEL), v = r(s) ? s[0] : 0, b = r(g) ? g[0] : 0, C = r(c) ? c[0] : 0, D = r(p) ? p[0] : 0;
|
|
428
130
|
return {
|
|
429
|
-
uniqueColClassInSM:
|
|
430
|
-
uniqueColClassInMD:
|
|
431
|
-
uniqueColClassInLG:
|
|
432
|
-
uniqueColClassInEL:
|
|
131
|
+
uniqueColClassInSM: v,
|
|
132
|
+
uniqueColClassInMD: b,
|
|
133
|
+
uniqueColClassInLG: C,
|
|
134
|
+
uniqueColClassInEL: D
|
|
433
135
|
};
|
|
434
136
|
}
|
|
435
|
-
function
|
|
436
|
-
let
|
|
437
|
-
if (
|
|
438
|
-
const
|
|
439
|
-
|
|
137
|
+
function y(h, a) {
|
|
138
|
+
let f, i, s, g, c = [];
|
|
139
|
+
if (h) {
|
|
140
|
+
const $ = h.split(" "), O = $.filter((B) => B.startsWith("col-"));
|
|
141
|
+
f = O.find((B) => /^col-([1-9]|10|11|12)$/.test(B)), i = O.find((B) => /^col-md-([1-9]|10|11|12)$/.test(B)), s = O.find((B) => /^col-xl-([1-9]|10|11|12)$/.test(B)), g = O.find((B) => /^col-el-([1-9]|10|11|12)$/.test(B)), c = $.filter((B) => !B.startsWith("col-"));
|
|
440
142
|
}
|
|
441
|
-
const
|
|
442
|
-
return [
|
|
143
|
+
const p = a.uniqueColClassInSM ? "col-" + a.uniqueColClassInSM : f, v = a.uniqueColClassInMD ? "col-md-" + a.uniqueColClassInMD : i, b = a.uniqueColClassInLG ? "col-xl-" + a.uniqueColClassInLG : s, C = a.uniqueColClassInEL ? "col-el-" + a.uniqueColClassInEL : g;
|
|
144
|
+
return [p, v, b, C].concat(c).join(" ");
|
|
443
145
|
}
|
|
444
|
-
function
|
|
445
|
-
|
|
446
|
-
if (
|
|
447
|
-
|
|
146
|
+
function w(h, a, f) {
|
|
147
|
+
h = n(f, h), h.contents.forEach((i) => {
|
|
148
|
+
if (i.type === u.fieldset.type) {
|
|
149
|
+
w(i, a, i.id);
|
|
448
150
|
return;
|
|
449
151
|
}
|
|
450
|
-
|
|
451
|
-
const
|
|
452
|
-
|
|
152
|
+
i.appearance || (i.appearance = {});
|
|
153
|
+
const s = i.appearance.class;
|
|
154
|
+
i.appearance.class = y(s, a);
|
|
453
155
|
});
|
|
454
156
|
}
|
|
455
|
-
return { checkIsInFormComponent:
|
|
157
|
+
return { checkIsInFormComponent: o, assembleUnifiedLayoutContext: m, changeFormControlsByUnifiedLayoutConfig: w };
|
|
456
158
|
}
|
|
457
|
-
class
|
|
458
|
-
constructor(
|
|
459
|
-
super(
|
|
460
|
-
}
|
|
461
|
-
getPropertyConfig(
|
|
462
|
-
const
|
|
463
|
-
this.propertyConfig.categories.basic = this.getBasicPropConfig(
|
|
464
|
-
const { checkIsInFormComponent:
|
|
465
|
-
return
|
|
159
|
+
class He extends Je {
|
|
160
|
+
constructor(t, n) {
|
|
161
|
+
super(t, n);
|
|
162
|
+
}
|
|
163
|
+
getPropertyConfig(t, n) {
|
|
164
|
+
const o = this;
|
|
165
|
+
this.propertyConfig.categories.basic = this.getBasicPropConfig(t);
|
|
166
|
+
const { checkIsInFormComponent: r, assembleUnifiedLayoutContext: m, changeFormControlsByUnifiedLayoutConfig: y } = Ye(this.formSchemaUtils, this.componentId), w = this.getAppearanceConfig(t), h = r(this.componentId);
|
|
167
|
+
return w.properties.adaptForLanguage = {
|
|
466
168
|
title: "控件布局响应国际化",
|
|
467
169
|
description: "启用国际化后:简体中文、繁体中文环境下控件标签与输入框在一行展示,其他语言环境下控件标签与输入框上下排列。",
|
|
468
|
-
visible:
|
|
170
|
+
visible: h,
|
|
469
171
|
type: "boolean"
|
|
470
|
-
},
|
|
172
|
+
}, w.properties.labelAutoOverflow = {
|
|
471
173
|
title: "控件标签换行",
|
|
472
174
|
description: "控件标签字数超长时,换行显示。控件标签与输入框在一行展示时,此属性有效。",
|
|
473
|
-
visible:
|
|
175
|
+
visible: h,
|
|
474
176
|
type: "boolean"
|
|
475
|
-
},
|
|
177
|
+
}, w.properties.unifiedLayout = {
|
|
476
178
|
title: "统一布局配置",
|
|
477
179
|
description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
|
|
478
|
-
visible:
|
|
180
|
+
visible: h,
|
|
479
181
|
refreshPanelAfterChanged: !0,
|
|
480
182
|
editor: {
|
|
481
183
|
type: "response-form-layout-setting",
|
|
482
|
-
initialState:
|
|
184
|
+
initialState: m(t)
|
|
483
185
|
}
|
|
484
|
-
},
|
|
485
|
-
if (
|
|
486
|
-
switch (
|
|
186
|
+
}, w.setPropertyRelates = function(a, f) {
|
|
187
|
+
if (a)
|
|
188
|
+
switch (a && a.propertyID) {
|
|
487
189
|
case "unifiedLayout": {
|
|
488
|
-
|
|
190
|
+
y(null, a.propertyValue, t.id), o.updateElementByParentContainer(t.id, n);
|
|
489
191
|
break;
|
|
490
192
|
}
|
|
491
193
|
case "labelAutoOverflow": {
|
|
492
|
-
|
|
194
|
+
o.setLabelAutoOverflow(t, a.propertyValue), qe();
|
|
493
195
|
break;
|
|
494
196
|
}
|
|
495
197
|
}
|
|
496
|
-
}, this.propertyConfig.categories.appearance =
|
|
198
|
+
}, this.propertyConfig.categories.appearance = w, this.propertyConfig.categories.behavior = this.getBehaviorConfig(t), this.propertyConfig;
|
|
497
199
|
}
|
|
498
|
-
setLabelAutoOverflow(
|
|
499
|
-
if (!
|
|
500
|
-
const
|
|
501
|
-
|
|
200
|
+
setLabelAutoOverflow(t, n, o) {
|
|
201
|
+
if (!o) {
|
|
202
|
+
const r = this.formSchemaUtils.getComponentById(this.componentId);
|
|
203
|
+
o = this.formSchemaUtils.selectNode(r, (m) => m.id === t.id);
|
|
502
204
|
}
|
|
503
|
-
|
|
504
|
-
if (
|
|
505
|
-
this.setLabelAutoOverflow(null,
|
|
205
|
+
o && o.contents && o.contents.length && o.contents.forEach((r) => {
|
|
206
|
+
if (r.type === u.fieldset.type) {
|
|
207
|
+
this.setLabelAutoOverflow(null, n, r);
|
|
506
208
|
return;
|
|
507
209
|
}
|
|
508
|
-
|
|
210
|
+
r.appearance || (r.appearance = {
|
|
509
211
|
class: ""
|
|
510
|
-
}),
|
|
212
|
+
}), r.appearance.class || (r.appearance.class = ""), n ? r.appearance.class.includes("farris-group-multi-label") || (r.appearance.class = r.appearance.class + " farris-group-multi-label") : r.appearance.class = r.appearance.class.replace("farris-group-multi-label", "").trim();
|
|
511
213
|
});
|
|
512
214
|
}
|
|
513
215
|
}
|
|
514
|
-
function
|
|
515
|
-
const
|
|
516
|
-
function
|
|
517
|
-
const { sourceElement:
|
|
518
|
-
if (!
|
|
216
|
+
function Ke(e, t) {
|
|
217
|
+
const n = e.schema, o = new Ge(), { canMove: r, canAccept: m, canDelete: y } = o.getTemplateRule(e, t);
|
|
218
|
+
function w(l, d) {
|
|
219
|
+
const { sourceElement: F } = l, { componentInstance: k } = F, I = t == null ? void 0 : t.formSchemaUtils;
|
|
220
|
+
if (!I)
|
|
519
221
|
return !0;
|
|
520
|
-
const
|
|
521
|
-
return
|
|
222
|
+
const x = I.getComponentById(k.value.belongedComponentId), E = I.getViewModelById(x.viewModel), V = I.getComponentById(e.componentInstance.value.belongedComponentId), T = I.getViewModelById(V.viewModel);
|
|
223
|
+
return d ? E != null && E.id && (T != null && T.id) && E.id !== T.id ? E.bindTo === T.bindTo : !0 : (E == null ? void 0 : E.id) === (T == null ? void 0 : T.id);
|
|
522
224
|
}
|
|
523
|
-
function
|
|
524
|
-
const { bindingTargetId:
|
|
525
|
-
if (!
|
|
225
|
+
function h(l) {
|
|
226
|
+
const { bindingTargetId: d } = l;
|
|
227
|
+
if (!t)
|
|
526
228
|
return;
|
|
527
|
-
const { formSchemaUtils:
|
|
528
|
-
return !!(
|
|
229
|
+
const { formSchemaUtils: F, schemaService: k } = t, I = F.getComponentById(e.componentInstance.value.belongedComponentId), x = k.getFieldByIDAndVMID(d, I.viewModel);
|
|
230
|
+
return !!(x != null && x.schemaField);
|
|
529
231
|
}
|
|
530
|
-
function
|
|
531
|
-
const
|
|
532
|
-
if (
|
|
533
|
-
if (
|
|
232
|
+
function a(l) {
|
|
233
|
+
const d = o.getComponentContext(e);
|
|
234
|
+
if (d && d.componentClassList && d.componentClassList.includes("f-form-layout") && d.componentClassList.includes("farris-form")) {
|
|
235
|
+
if (l.sourceType === "control" && (l.componentCategory === "input" || l.componentType === "fieldset"))
|
|
534
236
|
return !0;
|
|
535
|
-
if (
|
|
536
|
-
if (
|
|
537
|
-
return
|
|
538
|
-
if (
|
|
539
|
-
return
|
|
237
|
+
if (l.sourceType === "move") {
|
|
238
|
+
if (l.componentType === "form-group")
|
|
239
|
+
return w(l, !0);
|
|
240
|
+
if (l.componentType === "fieldset")
|
|
241
|
+
return w(l, !1);
|
|
540
242
|
}
|
|
541
|
-
return
|
|
243
|
+
return l.sourceType === "field" && l.componentCategory === "input" ? h(l) : !1;
|
|
542
244
|
}
|
|
543
245
|
return !0;
|
|
544
246
|
}
|
|
545
|
-
function
|
|
546
|
-
return !(!
|
|
547
|
-
}
|
|
548
|
-
function
|
|
549
|
-
var
|
|
550
|
-
const
|
|
551
|
-
if (V &&
|
|
552
|
-
const
|
|
553
|
-
switch (
|
|
554
|
-
case
|
|
555
|
-
|
|
247
|
+
function f(l) {
|
|
248
|
+
return !(!Ze().basalDragulaRuleForContainer(l, t) || !m || !a(l));
|
|
249
|
+
}
|
|
250
|
+
function i(l) {
|
|
251
|
+
var T;
|
|
252
|
+
const d = l.componentInstance, F = d.value.schema, k = t == null ? void 0 : t.formSchemaUtils, I = t == null ? void 0 : t.designViewModelUtils, x = k.getViewModelIdByComponentId(d.value.belongedComponentId), E = I.getDgViewModel(x), V = d.value.parent;
|
|
253
|
+
if (V && u.fieldset && ((T = V.schema) == null ? void 0 : T.type) === u.fieldset.type && E) {
|
|
254
|
+
const S = { groupId: null, groupName: null };
|
|
255
|
+
switch (F.binding.type) {
|
|
256
|
+
case H.Form: {
|
|
257
|
+
E.changeField(F.binding.field, S);
|
|
556
258
|
break;
|
|
557
259
|
}
|
|
558
|
-
case
|
|
559
|
-
|
|
260
|
+
case H.Variable: {
|
|
261
|
+
k.modifyViewModelFieldById(x, F.binding.field, S, !0);
|
|
560
262
|
break;
|
|
561
263
|
}
|
|
562
264
|
}
|
|
563
265
|
}
|
|
564
266
|
}
|
|
565
|
-
function
|
|
566
|
-
const
|
|
567
|
-
|
|
568
|
-
const V =
|
|
569
|
-
V.addField(
|
|
267
|
+
function s(l, d, F) {
|
|
268
|
+
const k = d.fields.find((T) => T.id === l), I = t == null ? void 0 : t.designViewModelUtils, x = I.getDgViewModel(d.id), E = x.fields.find((T) => T.id === l);
|
|
269
|
+
x.removeField([l]);
|
|
270
|
+
const V = I.getDgViewModel(F);
|
|
271
|
+
V.addField(E), k.fieldSchema && V.changeField(E.id, k.fieldSchema);
|
|
570
272
|
}
|
|
571
|
-
function
|
|
572
|
-
const
|
|
573
|
-
if (
|
|
574
|
-
|
|
273
|
+
function g(l, d, F, k = []) {
|
|
274
|
+
const I = d.id, x = l.binding.field, E = d.fields.findIndex((T) => T.id === x);
|
|
275
|
+
if (E > -1 && (F.fields.push(d.fields[E]), d.fields.splice(E, 1)), I === "root-viewmodel" && F.id !== "root-viewmodel") {
|
|
276
|
+
l.binding.path && !l.binding.path.includes("root-component.") && (l.binding.path = "root-component." + l.binding.path);
|
|
575
277
|
return;
|
|
576
278
|
}
|
|
577
|
-
if (
|
|
578
|
-
|
|
279
|
+
if (F.id === "root-viewmodel" && I !== "root-viewmodel" && l.binding.path && l.binding.path.includes("root-component.")) {
|
|
280
|
+
l.binding.path = l.binding.path.replace("root-component.", "");
|
|
579
281
|
return;
|
|
580
282
|
}
|
|
581
|
-
const V =
|
|
582
|
-
V && (
|
|
283
|
+
const V = d.states.find((T) => T.id === x);
|
|
284
|
+
V && (F.states = F.states ? F.states : [], F.states.findIndex((T) => T.id === V.id) < 0 && (F.states.push(V), k.push(V.id)));
|
|
583
285
|
}
|
|
584
|
-
function
|
|
585
|
-
var
|
|
586
|
-
if (!
|
|
286
|
+
function c(l, d, F, k = []) {
|
|
287
|
+
var E;
|
|
288
|
+
if (!l)
|
|
587
289
|
return;
|
|
588
|
-
const
|
|
589
|
-
Object.keys(
|
|
290
|
+
const I = d.id === "root-viewmodel" && F.id !== "root-viewmodel", x = F.id === "root-viewmodel" && d.id !== "root-viewmodel";
|
|
291
|
+
Object.keys(l).forEach((V) => {
|
|
590
292
|
if (V === "binding")
|
|
591
293
|
return;
|
|
592
|
-
const
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
595
|
-
|
|
294
|
+
const T = l[V];
|
|
295
|
+
if (T && typeof T == "object" && T.type === H.Variable && T.field) {
|
|
296
|
+
if (I) {
|
|
297
|
+
T.path && !T.path.includes("root-component.") && (T.path = "root-component." + T.path);
|
|
596
298
|
return;
|
|
597
299
|
}
|
|
598
|
-
if (
|
|
599
|
-
|
|
300
|
+
if (x && T.path && T.path.includes("root-component.")) {
|
|
301
|
+
T.path = T.path.replace("root-component.", "");
|
|
600
302
|
return;
|
|
601
303
|
}
|
|
602
|
-
const
|
|
603
|
-
if (
|
|
604
|
-
|
|
605
|
-
const
|
|
606
|
-
if (
|
|
607
|
-
|
|
304
|
+
const S = d.states.find((L) => L.id === T.field);
|
|
305
|
+
if (S) {
|
|
306
|
+
k.push(S.id), F.states = F.states ? F.states : [];
|
|
307
|
+
const L = F.states.find((U) => U.code === S.code);
|
|
308
|
+
if (L)
|
|
309
|
+
T.field = L.id;
|
|
608
310
|
else {
|
|
609
|
-
const
|
|
610
|
-
|
|
311
|
+
const U = Object.assign({}, { newId: pe().guid() }, S);
|
|
312
|
+
F.states.push(U), T.field = U.newId;
|
|
611
313
|
}
|
|
612
314
|
}
|
|
613
315
|
}
|
|
614
|
-
}), (
|
|
316
|
+
}), (E = F.states) != null && E.length && F.states.map((V) => {
|
|
615
317
|
V.newId && (V.id = V.newId, delete V.newId);
|
|
616
318
|
});
|
|
617
319
|
}
|
|
618
|
-
function
|
|
619
|
-
if (
|
|
620
|
-
for (const
|
|
621
|
-
|
|
320
|
+
function p(l, d, F) {
|
|
321
|
+
if (l && (d(l, F), l.contents))
|
|
322
|
+
for (const k of l.contents)
|
|
323
|
+
p(k, d, F);
|
|
622
324
|
}
|
|
623
|
-
function
|
|
624
|
-
if (!
|
|
325
|
+
function v(l = [], d) {
|
|
326
|
+
if (!l.length)
|
|
625
327
|
return;
|
|
626
|
-
const
|
|
627
|
-
V && (Object.keys(V).forEach((
|
|
628
|
-
const
|
|
629
|
-
|
|
630
|
-
}), V.editor &&
|
|
328
|
+
const F = t == null ? void 0 : t.formSchemaUtils, k = F.getComponentByViewModelId(d), I = [], x = (V, T) => {
|
|
329
|
+
V && (Object.keys(V).forEach((S) => {
|
|
330
|
+
const L = V[S];
|
|
331
|
+
L && typeof L == "object" && L.type === H.Variable && l.includes(L.field) && !T.includes(L.field) && T.push(L.field);
|
|
332
|
+
}), V.editor && x(V.editor, T));
|
|
631
333
|
};
|
|
632
|
-
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
|
|
334
|
+
p(k, x, I);
|
|
335
|
+
const E = F.getViewModelById(d);
|
|
336
|
+
l.forEach((V) => {
|
|
337
|
+
I.includes(V) || (E.states = E.states.filter((T) => T.id !== V));
|
|
636
338
|
});
|
|
637
339
|
}
|
|
638
|
-
function
|
|
639
|
-
const
|
|
640
|
-
id:
|
|
641
|
-
code:
|
|
642
|
-
name:
|
|
643
|
-
}),
|
|
644
|
-
return
|
|
645
|
-
host:
|
|
646
|
-
handler:
|
|
647
|
-
}),
|
|
648
|
-
}
|
|
649
|
-
function
|
|
650
|
-
var
|
|
651
|
-
const
|
|
652
|
-
if (!
|
|
340
|
+
function b(l) {
|
|
341
|
+
const d = pe().guid(), F = Object.assign({}, l, {
|
|
342
|
+
id: d,
|
|
343
|
+
code: l.code + d.slice(0, 4),
|
|
344
|
+
name: l.name + d.slice(0, 4)
|
|
345
|
+
}), x = (t == null ? void 0 : t.formSchemaUtils).getCommands().find((E) => E.id === l.cmpId);
|
|
346
|
+
return x && x.refedHandlers.push({
|
|
347
|
+
host: d,
|
|
348
|
+
handler: l.handlerName
|
|
349
|
+
}), F;
|
|
350
|
+
}
|
|
351
|
+
function C(l, d, F) {
|
|
352
|
+
var S, L, U;
|
|
353
|
+
const k = {}, I = l.type === "form-group" && l.editor ? l.editor.type : l.type, x = (S = Se[I]) == null ? void 0 : S.events;
|
|
354
|
+
if (!x)
|
|
653
355
|
return;
|
|
654
|
-
Object.keys(
|
|
655
|
-
const
|
|
656
|
-
if (
|
|
657
|
-
const
|
|
658
|
-
if (
|
|
659
|
-
let
|
|
660
|
-
|
|
356
|
+
Object.keys(l).forEach((X) => {
|
|
357
|
+
const W = Object.keys(x).find((Z) => Z === X);
|
|
358
|
+
if (W && l[W]) {
|
|
359
|
+
const Z = d.commands.find((j) => j.code === l[W]);
|
|
360
|
+
if (Z) {
|
|
361
|
+
let j = k[Z.code];
|
|
362
|
+
j || (j = b(Z), k[Z.code] = j, F.commands.push(j)), l[W] = j.code;
|
|
661
363
|
}
|
|
662
364
|
}
|
|
663
365
|
});
|
|
664
|
-
const V = (
|
|
665
|
-
if (((
|
|
666
|
-
const
|
|
667
|
-
|
|
668
|
-
if (
|
|
669
|
-
const
|
|
670
|
-
if (!
|
|
366
|
+
const V = (t == null ? void 0 : t.designViewModelUtils).getDgViewModel(F.id), T = ["valueChanging", "valueChanged"];
|
|
367
|
+
if (((L = l.binding) == null ? void 0 : L.type) === H.Form) {
|
|
368
|
+
const X = (U = F.fields) == null ? void 0 : U.find((W) => W.id === l.binding.field);
|
|
369
|
+
X && T.forEach((W) => {
|
|
370
|
+
if (X[W]) {
|
|
371
|
+
const Z = d.commands.find((j) => j.code === X[W]);
|
|
372
|
+
if (!Z)
|
|
671
373
|
return;
|
|
672
|
-
if (
|
|
673
|
-
V.changeField(
|
|
374
|
+
if (k[Z.code])
|
|
375
|
+
V.changeField(X.id, { [W]: k[Z.code].code });
|
|
674
376
|
else {
|
|
675
|
-
const
|
|
676
|
-
|
|
377
|
+
const j = b(Z);
|
|
378
|
+
k[Z.code] = j, F.commands.push(j), V.changeField(X.id, { [W]: j.code });
|
|
677
379
|
}
|
|
678
380
|
}
|
|
679
381
|
});
|
|
680
382
|
}
|
|
681
383
|
}
|
|
682
|
-
function
|
|
683
|
-
const
|
|
684
|
-
if (
|
|
685
|
-
const
|
|
686
|
-
switch (
|
|
687
|
-
case
|
|
688
|
-
|
|
384
|
+
function D(l) {
|
|
385
|
+
const d = t == null ? void 0 : t.formSchemaUtils, F = l.componentInstance, k = F.value.schema, I = d.getViewModelIdByComponentId(F.value.belongedComponentId), x = d.getViewModelById(I), E = d.getComponentById(e.componentInstance.value.belongedComponentId), V = d.getViewModelById(E.viewModel);
|
|
386
|
+
if (I !== V.id) {
|
|
387
|
+
const T = k.binding.type, S = k.binding.field, L = [];
|
|
388
|
+
switch (T) {
|
|
389
|
+
case H.Form: {
|
|
390
|
+
s(S, x, V.id);
|
|
689
391
|
break;
|
|
690
392
|
}
|
|
691
|
-
case
|
|
692
|
-
|
|
393
|
+
case H.Variable: {
|
|
394
|
+
g(k, x, V, L);
|
|
693
395
|
break;
|
|
694
396
|
}
|
|
695
397
|
}
|
|
696
|
-
|
|
398
|
+
c(k, x, V, L), c(k.editor, x, V, L), C(k, x, V), I !== "root-viewmodel" && v(L, I);
|
|
697
399
|
}
|
|
698
400
|
}
|
|
699
|
-
function
|
|
700
|
-
if (!
|
|
401
|
+
function $(l) {
|
|
402
|
+
if (!l || !l.componentInstance)
|
|
701
403
|
return;
|
|
702
|
-
const
|
|
703
|
-
!
|
|
404
|
+
const F = l.componentInstance.value.schema;
|
|
405
|
+
!F.binding || !F.binding.field || (i(l), D(l));
|
|
704
406
|
}
|
|
705
407
|
function O() {
|
|
706
|
-
return
|
|
408
|
+
return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
707
409
|
}
|
|
708
|
-
function
|
|
709
|
-
let
|
|
710
|
-
switch (
|
|
410
|
+
function B(l) {
|
|
411
|
+
let d = "";
|
|
412
|
+
switch (l) {
|
|
711
413
|
case 1: {
|
|
712
|
-
|
|
414
|
+
d = "col-12 col-md-12 col-xl-12 col-el-12";
|
|
713
415
|
break;
|
|
714
416
|
}
|
|
715
417
|
case 2: {
|
|
716
|
-
|
|
418
|
+
d = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
717
419
|
break;
|
|
718
420
|
}
|
|
719
421
|
case 3: {
|
|
720
|
-
|
|
422
|
+
d = "col-12 col-md-6 col-xl-4 col-el-4";
|
|
721
423
|
break;
|
|
722
424
|
}
|
|
723
425
|
case 4: {
|
|
724
|
-
|
|
426
|
+
d = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
725
427
|
break;
|
|
726
428
|
}
|
|
727
429
|
}
|
|
728
|
-
return
|
|
430
|
+
return d;
|
|
729
431
|
}
|
|
730
|
-
function
|
|
731
|
-
let
|
|
732
|
-
if (
|
|
733
|
-
|
|
432
|
+
function q(l, d) {
|
|
433
|
+
let F = !1;
|
|
434
|
+
if (e.schema && Object.prototype.hasOwnProperty.call(e.schema, "labelAutoOverflow"))
|
|
435
|
+
F = e.schema.labelAutoOverflow;
|
|
734
436
|
else {
|
|
735
|
-
const
|
|
736
|
-
|
|
437
|
+
const k = t == null ? void 0 : t.formSchemaUtils, I = k == null ? void 0 : k.selectNode(d, (x) => x.type === u["response-form"].type);
|
|
438
|
+
I && (F = I.labelAutoOverflow);
|
|
737
439
|
}
|
|
738
|
-
return
|
|
739
|
-
}
|
|
740
|
-
function
|
|
741
|
-
const
|
|
742
|
-
if (
|
|
743
|
-
const { formColumns:
|
|
744
|
-
let
|
|
745
|
-
|
|
440
|
+
return F && (l += " farris-group-multi-label"), l;
|
|
441
|
+
}
|
|
442
|
+
function R(l) {
|
|
443
|
+
const d = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
|
|
444
|
+
if (d && d.schema && d.schema.componentType) {
|
|
445
|
+
const { formColumns: F } = d.schema;
|
|
446
|
+
let k = B(F);
|
|
447
|
+
k = t == null ? void 0 : t.formSchemaUtils.getControlClassByFormUnifiedLayout(k, d.schema.id, e.schema), k = q(k, d.schema), l.appearance || (l.appearance = {}), l.appearance.class = k;
|
|
746
448
|
}
|
|
747
449
|
}
|
|
748
|
-
function
|
|
749
|
-
const { bindingSourceContext:
|
|
750
|
-
if (
|
|
751
|
-
const
|
|
752
|
-
|
|
450
|
+
function N(l, d, F, k) {
|
|
451
|
+
const { bindingSourceContext: I, parentComponentInstance: x } = l;
|
|
452
|
+
if (I != null && I.entityFieldNode && x) {
|
|
453
|
+
const E = t == null ? void 0 : t.designViewModelUtils, T = (t == null ? void 0 : t.formSchemaUtils).getViewModelIdByComponentId(x.belongedComponentId), S = E.getDgViewModel(T);
|
|
454
|
+
S.removeField([I.entityFieldNode.id]), S.addField(I.designViewModelField), d && S.changeField(I.entityFieldNode.id, { editor: { $type: d }, groupId: F, groupName: k });
|
|
753
455
|
}
|
|
754
456
|
}
|
|
755
|
-
function
|
|
756
|
-
var
|
|
757
|
-
const
|
|
758
|
-
if ((
|
|
759
|
-
const { label:
|
|
760
|
-
let
|
|
761
|
-
const
|
|
762
|
-
return (
|
|
457
|
+
function M(l, d) {
|
|
458
|
+
var x, E, V;
|
|
459
|
+
const F = n;
|
|
460
|
+
if ((F.appearance && F.appearance.class || "").split(" ").includes("f-form-layout") && l.componentCategory === "input") {
|
|
461
|
+
const { label: T } = l;
|
|
462
|
+
let S;
|
|
463
|
+
const L = t == null ? void 0 : t.controlCreatorUtils;
|
|
464
|
+
return (x = l.bindingSourceContext) != null && x.entityFieldNode ? S = L.setFormFieldProperty((E = l.bindingSourceContext) == null ? void 0 : E.entityFieldNode, d == null ? void 0 : d.type) : (S = L.createFormGroupWithoutField(d == null ? void 0 : d.type), S.label = T), R(S), N(l, (V = S.editor) == null ? void 0 : V.type), S;
|
|
763
465
|
}
|
|
764
|
-
return
|
|
466
|
+
return d;
|
|
765
467
|
}
|
|
766
|
-
function
|
|
767
|
-
return
|
|
468
|
+
function z() {
|
|
469
|
+
return r;
|
|
768
470
|
}
|
|
769
|
-
function
|
|
770
|
-
return
|
|
471
|
+
function J() {
|
|
472
|
+
return y;
|
|
771
473
|
}
|
|
772
|
-
function
|
|
474
|
+
function _() {
|
|
773
475
|
return !1;
|
|
774
476
|
}
|
|
775
|
-
function G(
|
|
776
|
-
return new
|
|
477
|
+
function G(l) {
|
|
478
|
+
return new He(l, t).getPropertyConfig(n, e.componentInstance.value);
|
|
777
479
|
}
|
|
778
480
|
return {
|
|
779
|
-
canAccepts:
|
|
780
|
-
checkCanDeleteComponent:
|
|
781
|
-
checkCanMoveComponent:
|
|
481
|
+
canAccepts: f,
|
|
482
|
+
checkCanDeleteComponent: J,
|
|
483
|
+
checkCanMoveComponent: z,
|
|
782
484
|
getStyles: O,
|
|
783
485
|
getPropsConfig: G,
|
|
784
|
-
hideNestedPaddingInDesginerView:
|
|
785
|
-
onAcceptMovedChildElement:
|
|
786
|
-
onResolveNewComponentSchema:
|
|
787
|
-
moveInputBetweenComponent:
|
|
788
|
-
resolveFormGroupAppearance:
|
|
789
|
-
syncFieldToViewModel:
|
|
486
|
+
hideNestedPaddingInDesginerView: _,
|
|
487
|
+
onAcceptMovedChildElement: $,
|
|
488
|
+
onResolveNewComponentSchema: M,
|
|
489
|
+
moveInputBetweenComponent: D,
|
|
490
|
+
resolveFormGroupAppearance: R,
|
|
491
|
+
syncFieldToViewModel: N
|
|
790
492
|
};
|
|
791
493
|
}
|
|
792
|
-
const
|
|
494
|
+
const le = /* @__PURE__ */ ne({
|
|
793
495
|
name: "FResponseFormDesign",
|
|
794
496
|
directives: {
|
|
795
|
-
"area-response":
|
|
497
|
+
"area-response": ze
|
|
796
498
|
},
|
|
797
|
-
props:
|
|
499
|
+
props: Ce,
|
|
798
500
|
emits: [],
|
|
799
|
-
setup(
|
|
800
|
-
const
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
}),
|
|
804
|
-
const
|
|
805
|
-
const
|
|
501
|
+
setup(e, t) {
|
|
502
|
+
const n = A(), o = Y("design-item-context"), r = Y("designer-host-service"), m = Ke(o, r), y = ce(n, o, m);
|
|
503
|
+
ie(() => {
|
|
504
|
+
n.value.componentInstance = y;
|
|
505
|
+
}), t.expose(y.value);
|
|
506
|
+
const w = K(() => {
|
|
507
|
+
const h = e.customClass.split(" "), a = {
|
|
806
508
|
"drag-container": !0
|
|
807
509
|
};
|
|
808
|
-
return
|
|
510
|
+
return h.reduce((f, i) => (f[i] = !0, f), a), a;
|
|
809
511
|
});
|
|
810
|
-
return () =>
|
|
811
|
-
ref:
|
|
812
|
-
class:
|
|
813
|
-
style:
|
|
814
|
-
"data-dragref": `${
|
|
815
|
-
"data-associate": `${
|
|
816
|
-
}, [
|
|
817
|
-
}
|
|
818
|
-
}),
|
|
512
|
+
return () => Re(P("div", {
|
|
513
|
+
ref: n,
|
|
514
|
+
class: w.value,
|
|
515
|
+
style: e.customClass,
|
|
516
|
+
"data-dragref": `${o.schema.id}-container`,
|
|
517
|
+
"data-associate": `${o.schema.id}-component`
|
|
518
|
+
}, [t.slots.default && t.slots.default()]), [[Ue("area-response")]]);
|
|
519
|
+
}
|
|
520
|
+
}), et = {}, tt = {}, { globalStorageKey: or } = he(), nt = {
|
|
819
521
|
id: { Type: String, default: "" },
|
|
820
522
|
/** 是否自动完成 */
|
|
821
523
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -898,7 +600,7 @@ const pe = /* @__PURE__ */ _({
|
|
|
898
600
|
* 是否启用快捷键
|
|
899
601
|
*/
|
|
900
602
|
keyboard: { type: Boolean, default: !0 }
|
|
901
|
-
},
|
|
603
|
+
}, Fe = [
|
|
902
604
|
{ key: "none", value: "无" },
|
|
903
605
|
{ key: "cellNumber", value: "手机号" },
|
|
904
606
|
{ key: "tel", value: "座机号/传真号" },
|
|
@@ -910,8 +612,8 @@ const pe = /* @__PURE__ */ _({
|
|
|
910
612
|
{ key: "subjectCode", value: "10位数字会计科目代码" },
|
|
911
613
|
{ key: "custom", value: "自定义" }
|
|
912
614
|
];
|
|
913
|
-
function
|
|
914
|
-
switch (
|
|
615
|
+
function ot(e) {
|
|
616
|
+
switch (e) {
|
|
915
617
|
case "none":
|
|
916
618
|
return "";
|
|
917
619
|
case "cellNumber":
|
|
@@ -937,36 +639,36 @@ function Go(t) {
|
|
|
937
639
|
}
|
|
938
640
|
return "";
|
|
939
641
|
}
|
|
940
|
-
function
|
|
941
|
-
var
|
|
942
|
-
return "请输入正确的" + ((
|
|
642
|
+
function rt(e) {
|
|
643
|
+
var t;
|
|
644
|
+
return "请输入正确的" + ((t = Fe.find((n) => n.key === e)) == null ? void 0 : t.value);
|
|
943
645
|
}
|
|
944
|
-
const
|
|
945
|
-
convertTo: (t,
|
|
946
|
-
|
|
646
|
+
const it = {
|
|
647
|
+
convertTo: (e, t, n, o) => {
|
|
648
|
+
e.editor.formatValidation || (e.editor.formatValidation = { type: "none" }), e.editor.formatValidation.type = n, e.editor.formatValidation.expression = ot(n), e.editor.formatValidation.message = rt(n);
|
|
947
649
|
},
|
|
948
|
-
convertFrom: (
|
|
949
|
-
},
|
|
950
|
-
convertTo: (t,
|
|
951
|
-
|
|
650
|
+
convertFrom: (e, t, n) => e.editor.formatValidation ? t === "type" ? e.editor.formatValidation[t] || "none" : e.editor.formatValidation[t] : "none"
|
|
651
|
+
}, ye = {
|
|
652
|
+
convertTo: (e, t, n, o) => {
|
|
653
|
+
e.editor.formatValidation || (e.editor.formatValidation = { type: "none" }), e.editor.formatValidation[t] = n;
|
|
952
654
|
},
|
|
953
|
-
convertFrom: (
|
|
655
|
+
convertFrom: (e, t, n) => e.editor.formatValidation ? e.editor.formatValidation[t] : e.editor[t]
|
|
954
656
|
};
|
|
955
|
-
class
|
|
956
|
-
constructor(
|
|
957
|
-
super(
|
|
958
|
-
}
|
|
959
|
-
getPropertyConfig(
|
|
960
|
-
return super.getPropertyConfig(
|
|
961
|
-
}
|
|
962
|
-
getEditorProperties(
|
|
963
|
-
var
|
|
964
|
-
let
|
|
965
|
-
if (((
|
|
966
|
-
const
|
|
967
|
-
(
|
|
657
|
+
class at extends _e {
|
|
658
|
+
constructor(t, n) {
|
|
659
|
+
super(t, n);
|
|
660
|
+
}
|
|
661
|
+
getPropertyConfig(t, n) {
|
|
662
|
+
return super.getPropertyConfig(t, n), this.propertyConfig.categories.formatValidation = this.getFormatValidation(t), this.propertyConfig;
|
|
663
|
+
}
|
|
664
|
+
getEditorProperties(t) {
|
|
665
|
+
var o, r;
|
|
666
|
+
let n;
|
|
667
|
+
if (((o = t == null ? void 0 : t.binding) == null ? void 0 : o.type) === "Form") {
|
|
668
|
+
const m = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
|
|
669
|
+
(r = m == null ? void 0 : m.schemaField) != null && r.type && (n = m.schemaField.type.length);
|
|
968
670
|
}
|
|
969
|
-
return this.getComponentConfig(
|
|
671
|
+
return this.getComponentConfig(t, {}, {
|
|
970
672
|
maxLength: {
|
|
971
673
|
description: "文本字数最大长度",
|
|
972
674
|
title: "最大长度",
|
|
@@ -975,7 +677,7 @@ class Zo extends Vo {
|
|
|
975
677
|
nullable: !0,
|
|
976
678
|
min: 0,
|
|
977
679
|
useThousands: !1,
|
|
978
|
-
max:
|
|
680
|
+
max: n,
|
|
979
681
|
needValid: !0
|
|
980
682
|
}
|
|
981
683
|
},
|
|
@@ -996,19 +698,19 @@ class Zo extends Vo {
|
|
|
996
698
|
enableViewPassword: {
|
|
997
699
|
description: "",
|
|
998
700
|
title: "能否查看密码",
|
|
999
|
-
visible:
|
|
701
|
+
visible: t.editor.showType === "password",
|
|
1000
702
|
type: "boolean"
|
|
1001
703
|
}
|
|
1002
704
|
});
|
|
1003
705
|
}
|
|
1004
|
-
getGridFieldEdtiorProperties(
|
|
1005
|
-
var
|
|
1006
|
-
let
|
|
1007
|
-
if (((
|
|
1008
|
-
const
|
|
1009
|
-
(
|
|
706
|
+
getGridFieldEdtiorProperties(t) {
|
|
707
|
+
var o, r;
|
|
708
|
+
let n;
|
|
709
|
+
if (((o = t == null ? void 0 : t.binding) == null ? void 0 : o.type) === "Form") {
|
|
710
|
+
const m = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
|
|
711
|
+
(r = m == null ? void 0 : m.schemaField) != null && r.type && (n = m.schemaField.type.length);
|
|
1010
712
|
}
|
|
1011
|
-
return this.getComponentConfig(
|
|
713
|
+
return this.getComponentConfig(t, {}, {
|
|
1012
714
|
maxLength: {
|
|
1013
715
|
description: "文本字数最大长度",
|
|
1014
716
|
title: "最大长度",
|
|
@@ -1017,7 +719,7 @@ class Zo extends Vo {
|
|
|
1017
719
|
nullable: !0,
|
|
1018
720
|
min: 0,
|
|
1019
721
|
useThousands: !1,
|
|
1020
|
-
max:
|
|
722
|
+
max: n
|
|
1021
723
|
}
|
|
1022
724
|
},
|
|
1023
725
|
showType: {
|
|
@@ -1037,17 +739,17 @@ class Zo extends Vo {
|
|
|
1037
739
|
enableViewPassword: {
|
|
1038
740
|
description: "",
|
|
1039
741
|
title: "能否查看密码",
|
|
1040
|
-
visible:
|
|
742
|
+
visible: t.editor.showType === "password",
|
|
1041
743
|
type: "boolean"
|
|
1042
744
|
}
|
|
1043
745
|
});
|
|
1044
746
|
}
|
|
1045
|
-
getFormatValidation(
|
|
1046
|
-
var
|
|
1047
|
-
const
|
|
747
|
+
getFormatValidation(t) {
|
|
748
|
+
var o, r, m, y;
|
|
749
|
+
const n = {
|
|
1048
750
|
title: "输入格式校验",
|
|
1049
751
|
description: "输入校验",
|
|
1050
|
-
hide: !((
|
|
752
|
+
hide: !((o = t.binding) != null && o.field),
|
|
1051
753
|
properties: {
|
|
1052
754
|
type: {
|
|
1053
755
|
title: "格式类型",
|
|
@@ -1060,486 +762,1050 @@ class Zo extends Vo {
|
|
|
1060
762
|
valueField: "key",
|
|
1061
763
|
idField: "key",
|
|
1062
764
|
editable: !1,
|
|
1063
|
-
data:
|
|
765
|
+
data: Fe
|
|
1064
766
|
},
|
|
1065
767
|
refreshPanelAfterChanged: !0,
|
|
1066
|
-
$converter:
|
|
768
|
+
$converter: it,
|
|
1067
769
|
parentPropertyID: "formatValidation"
|
|
1068
770
|
}
|
|
1069
771
|
}
|
|
1070
772
|
};
|
|
1071
|
-
return (
|
|
773
|
+
return (r = t.editor.formatValidation) != null && r.type && ((m = t.editor.formatValidation) == null ? void 0 : m.type) !== "none" && (n.properties.message = {
|
|
1072
774
|
title: "输入错误提示",
|
|
1073
775
|
type: "string",
|
|
1074
776
|
description: "输入错误提示",
|
|
1075
|
-
$converter:
|
|
777
|
+
$converter: ye,
|
|
1076
778
|
parentPropertyID: "formatValidation"
|
|
1077
|
-
}), ((
|
|
779
|
+
}), ((y = t.editor.formatValidation) == null ? void 0 : y.type) === "custom" && (n.properties.expression = {
|
|
1078
780
|
title: "匹配正则",
|
|
1079
781
|
type: "string",
|
|
1080
782
|
description: "匹配正则",
|
|
1081
|
-
$converter:
|
|
783
|
+
$converter: ye,
|
|
1082
784
|
parentPropertyID: "formatValidation"
|
|
1083
|
-
}),
|
|
785
|
+
}), n;
|
|
1084
786
|
}
|
|
1085
787
|
}
|
|
1086
|
-
function
|
|
1087
|
-
const
|
|
1088
|
-
function
|
|
1089
|
-
return new
|
|
788
|
+
function lt(e, t) {
|
|
789
|
+
const n = e.schema;
|
|
790
|
+
function o(r, m) {
|
|
791
|
+
return new at(r, t).getPropertyConfig(n, m);
|
|
1090
792
|
}
|
|
1091
|
-
return { getPropsConfig:
|
|
793
|
+
return { getPropsConfig: o };
|
|
1092
794
|
}
|
|
1093
|
-
const
|
|
795
|
+
const st = /* @__PURE__ */ ne({
|
|
1094
796
|
name: "FInputGroupDesign",
|
|
1095
|
-
props:
|
|
797
|
+
props: nt,
|
|
1096
798
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
1097
|
-
setup(
|
|
1098
|
-
const
|
|
1099
|
-
inputGroupClass:
|
|
1100
|
-
inputType:
|
|
1101
|
-
inputGroupStyle:
|
|
1102
|
-
} =
|
|
1103
|
-
return
|
|
1104
|
-
|
|
1105
|
-
}),
|
|
799
|
+
setup(e, t) {
|
|
800
|
+
const n = A(e.modelValue), o = A(e.modelValue), r = We(e, t, n, o), {
|
|
801
|
+
inputGroupClass: m,
|
|
802
|
+
inputType: y,
|
|
803
|
+
inputGroupStyle: w
|
|
804
|
+
} = r, h = A(), a = Y("designer-host-service"), f = Y("design-item-context"), i = lt(f, a), s = ce(h, f, i), g = K(() => e.showType === "password" ? "password" : "");
|
|
805
|
+
return ie(() => {
|
|
806
|
+
h.value.componentInstance = s;
|
|
807
|
+
}), t.expose(s.value), () => P("div", {
|
|
1106
808
|
id: "inputGroup",
|
|
1107
|
-
ref:
|
|
1108
|
-
class:
|
|
1109
|
-
style:
|
|
1110
|
-
}, [
|
|
809
|
+
ref: h,
|
|
810
|
+
class: m.value,
|
|
811
|
+
style: w.value
|
|
812
|
+
}, [P("input", {
|
|
1111
813
|
class: "form-control",
|
|
1112
|
-
type:
|
|
1113
|
-
placeholder:
|
|
1114
|
-
value:
|
|
1115
|
-
}, null),
|
|
814
|
+
type: e.showType,
|
|
815
|
+
placeholder: e.placeholder,
|
|
816
|
+
value: g.value
|
|
817
|
+
}, null), e.showType === "password" && e.enableViewPassword && P("span", {
|
|
1116
818
|
class: "input-group-append"
|
|
1117
|
-
}, [
|
|
819
|
+
}, [P("span", {
|
|
1118
820
|
class: "input-group-text"
|
|
1119
|
-
}, [
|
|
821
|
+
}, [P("span", {
|
|
1120
822
|
class: "f-icon f-icon-eye"
|
|
1121
823
|
}, null)])])]);
|
|
1122
824
|
}
|
|
1123
825
|
});
|
|
1124
|
-
function
|
|
1125
|
-
function
|
|
1126
|
-
const
|
|
1127
|
-
return
|
|
826
|
+
function ct() {
|
|
827
|
+
function e(y, w) {
|
|
828
|
+
const h = tt[y];
|
|
829
|
+
return h ? h(w) : {};
|
|
830
|
+
}
|
|
831
|
+
function t(y) {
|
|
832
|
+
return et[y] || st;
|
|
833
|
+
}
|
|
834
|
+
function n(y) {
|
|
835
|
+
}
|
|
836
|
+
function o(y) {
|
|
837
|
+
}
|
|
838
|
+
function r(y) {
|
|
1128
839
|
}
|
|
1129
|
-
function
|
|
1130
|
-
return Ro[p] || Jo;
|
|
840
|
+
function m(y) {
|
|
1131
841
|
}
|
|
1132
|
-
|
|
842
|
+
return { getChangeFunctionName: n, getClearFunctionName: o, resolveEditorProps: e, resolveEditorType: t, getMousedownFunctionName: r, getMouseupFunctionName: m };
|
|
843
|
+
}
|
|
844
|
+
function ut(e = {}) {
|
|
845
|
+
function t(a, f, i, s) {
|
|
846
|
+
if (typeof i == "number")
|
|
847
|
+
return s[a].length === i;
|
|
848
|
+
if (typeof i == "object") {
|
|
849
|
+
const g = Object.keys(i)[0], c = i[g];
|
|
850
|
+
if (g === "not")
|
|
851
|
+
return Number(s[a].length) !== Number(c);
|
|
852
|
+
if (g === "moreThan")
|
|
853
|
+
return Number(s[a].length) >= Number(c);
|
|
854
|
+
if (g === "lessThan")
|
|
855
|
+
return Number(s[a].length) <= Number(c);
|
|
856
|
+
}
|
|
857
|
+
return !1;
|
|
1133
858
|
}
|
|
1134
|
-
function i
|
|
859
|
+
function n(a, f, i, s) {
|
|
860
|
+
return s[a] && s[a].propertyValue && String(s[a].propertyValue.value) === String(i);
|
|
861
|
+
}
|
|
862
|
+
const o = /* @__PURE__ */ new Map([
|
|
863
|
+
["length", t],
|
|
864
|
+
["getProperty", n]
|
|
865
|
+
]);
|
|
866
|
+
Object.keys(e).reduce((a, f) => (a.set(f, e[f]), a), o);
|
|
867
|
+
function r(a, f) {
|
|
868
|
+
const i = a;
|
|
869
|
+
return typeof f == "number" ? [{ target: i, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: i, operator: "getProperty", param: a, value: !!f }] : typeof f == "object" ? Object.keys(f).map((s) => {
|
|
870
|
+
if (s === "length")
|
|
871
|
+
return { target: i, operator: "length", param: null, value: f[s] };
|
|
872
|
+
const g = s, c = f[s];
|
|
873
|
+
return { target: i, operator: "getProperty", param: g, value: c };
|
|
874
|
+
}) : [];
|
|
875
|
+
}
|
|
876
|
+
function m(a) {
|
|
877
|
+
return Object.keys(a).reduce((i, s) => {
|
|
878
|
+
const g = r(s, a[s]);
|
|
879
|
+
return i.push(...g), i;
|
|
880
|
+
}, []);
|
|
881
|
+
}
|
|
882
|
+
function y(a, f) {
|
|
883
|
+
if (o.has(a.operator)) {
|
|
884
|
+
const i = o.get(a.operator);
|
|
885
|
+
return i && i(a.target, a.param, a.value, f) || !1;
|
|
886
|
+
}
|
|
887
|
+
return !1;
|
|
1135
888
|
}
|
|
1136
|
-
function
|
|
889
|
+
function w(a, f) {
|
|
890
|
+
return m(a).reduce((g, c) => g && y(c, f), !0);
|
|
1137
891
|
}
|
|
1138
|
-
function
|
|
892
|
+
function h(a, f) {
|
|
893
|
+
const i = Object.keys(a), s = i.includes("allOf"), g = i.includes("anyOf"), c = s || g, b = (c ? a[c ? s ? "allOf" : "anyOf" : "allOf"] : [a]).map((D) => w(D, f));
|
|
894
|
+
return s ? !b.includes(!1) : b.includes(!0);
|
|
1139
895
|
}
|
|
1140
|
-
return {
|
|
896
|
+
return { parseValueSchema: h };
|
|
1141
897
|
}
|
|
1142
|
-
const
|
|
898
|
+
const pt = {
|
|
899
|
+
convertTo: (e, t, n, o) => {
|
|
900
|
+
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
901
|
+
},
|
|
902
|
+
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
903
|
+
}, dt = {
|
|
904
|
+
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
905
|
+
}, mt = {
|
|
906
|
+
convertTo: (e, t, n, o) => {
|
|
907
|
+
e.editor && (e.editor[t] = n);
|
|
908
|
+
},
|
|
909
|
+
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
910
|
+
}, ft = {
|
|
911
|
+
button: { type: "button", name: "按钮" },
|
|
912
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
913
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
914
|
+
"content-container": { type: "content-container", name: "容器" },
|
|
915
|
+
"input-group": { type: "input-group", name: "文本" },
|
|
916
|
+
textarea: { type: "textarea", name: "多行文本" },
|
|
917
|
+
lookup: { type: "lookup", name: "帮助" },
|
|
918
|
+
"number-spinner": { type: "number-spinner", name: "数值" },
|
|
919
|
+
"date-picker": { type: "date-picker", name: "日期" },
|
|
920
|
+
switch: { type: "switch", name: "开关" },
|
|
921
|
+
"radio-group": { type: "radio-group", name: "单选组" },
|
|
922
|
+
"check-box": { type: "check-box", name: "复选框" },
|
|
923
|
+
"check-group": { type: "check-group", name: "复选框组" },
|
|
924
|
+
"combo-list": { type: "combo-list", name: "下拉列表" },
|
|
925
|
+
"response-form": { type: "response-form", name: "卡片面板" },
|
|
926
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "response-layout-3" },
|
|
927
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "response-layout-1" },
|
|
928
|
+
"tree-grid": { type: "tree-grid", name: "树表格" },
|
|
929
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
930
|
+
"data-grid": { type: "data-grid", name: "表格" },
|
|
931
|
+
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
932
|
+
module: { type: "Module", name: "模块" },
|
|
933
|
+
component: { type: "component", name: "组件" },
|
|
934
|
+
tabs: { type: "tabs", name: "标签页" },
|
|
935
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
936
|
+
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮" },
|
|
937
|
+
"drawer-toolbar-item": { type: "drawer-toolbar-item", name: "抽屉工具栏按钮" },
|
|
938
|
+
"html-template": { type: "html-template", name: "模板容器" },
|
|
939
|
+
"time-picker": { type: "time-picker", name: "时间选择" },
|
|
940
|
+
section: { type: "section", name: "分组面板" },
|
|
941
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
942
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
943
|
+
splitter: { type: "splitter", name: "分栏面板" },
|
|
944
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
945
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
946
|
+
uploader: { type: "uploader", name: "附件上传" },
|
|
947
|
+
"page-header": { type: "page-header", name: "页头" },
|
|
948
|
+
"page-footer": { type: "page-footer", name: "页脚" },
|
|
949
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏" },
|
|
950
|
+
"drawer-toolbar": { type: "drawer-toolbar", name: "抽屉工具栏" },
|
|
951
|
+
fieldset: { type: "fieldset", name: "分组" },
|
|
952
|
+
"query-solution": { type: "query-solution", name: "筛选方案" },
|
|
953
|
+
drawer: { type: "drawer", name: "抽屉" },
|
|
954
|
+
"external-container": { type: "external-container", name: "外部容器", icon: "content-container" },
|
|
955
|
+
"list-nav": { type: "list-nav", name: "列表导航" },
|
|
956
|
+
"list-view": { type: "list-view", name: "列表" },
|
|
957
|
+
"filter-bar": { type: "filter-bar", name: "筛选条" },
|
|
958
|
+
"language-textbox": { type: "language-textbox", name: "多语输入框" },
|
|
959
|
+
image: { type: "image", name: "图像" },
|
|
960
|
+
"discussion-editor": { type: "discussion-editor", name: "评论编辑区" },
|
|
961
|
+
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
962
|
+
comment: { type: "comment", name: "评论区" },
|
|
963
|
+
"rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
|
|
964
|
+
calendar: { type: "calendar", name: "日历", icon: "date-picker" }
|
|
965
|
+
}, yt = {
|
|
966
|
+
convertFrom: (e, t, n) => {
|
|
967
|
+
var r;
|
|
968
|
+
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
969
|
+
return ((r = ft[o]) == null ? void 0 : r.name) || o;
|
|
970
|
+
}
|
|
971
|
+
}, gt = {
|
|
972
|
+
convertTo: (e, t, n, o) => {
|
|
973
|
+
e[t] = e[t];
|
|
974
|
+
},
|
|
975
|
+
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
976
|
+
}, vt = {
|
|
977
|
+
convertTo: (e, t, n, o) => {
|
|
978
|
+
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
|
|
979
|
+
[t]: n
|
|
980
|
+
});
|
|
981
|
+
},
|
|
982
|
+
convertFrom: (e, t, n) => {
|
|
983
|
+
if (e.formatter) {
|
|
984
|
+
if (t === "trueText")
|
|
985
|
+
return e.formatter.trueText;
|
|
986
|
+
if (t === "falseText")
|
|
987
|
+
return e.formatter.falseText;
|
|
988
|
+
if (t === "prefix")
|
|
989
|
+
return e.formatter.prefix;
|
|
990
|
+
if (t === "suffix")
|
|
991
|
+
return e.formatter.suffix;
|
|
992
|
+
if (t === "precision")
|
|
993
|
+
return e.formatter.precision;
|
|
994
|
+
if (t === "decimal")
|
|
995
|
+
return e.formatter.decimal;
|
|
996
|
+
if (t === "thousand")
|
|
997
|
+
return e.formatter.thousand;
|
|
998
|
+
if (t === "dateFormat")
|
|
999
|
+
return e.formatter.dateFormat || "yyyy-MM-dd";
|
|
1000
|
+
if (t === "customFormat")
|
|
1001
|
+
return e.formatter.customFormat;
|
|
1002
|
+
if (t === "type")
|
|
1003
|
+
return e.formatter.type || "none";
|
|
1004
|
+
}
|
|
1005
|
+
return "none";
|
|
1006
|
+
}
|
|
1007
|
+
}, bt = {
|
|
1008
|
+
convertTo: (e, t, n, o) => {
|
|
1009
|
+
e.command ? e.command[t] = n : e.command = {
|
|
1010
|
+
[t]: n
|
|
1011
|
+
}, t === "enableType" && n === "default" && (e.command.enable = !0, e.command.commands = [
|
|
1012
|
+
{
|
|
1013
|
+
text: "编辑",
|
|
1014
|
+
type: "primary",
|
|
1015
|
+
command: "edit"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
text: "删除",
|
|
1019
|
+
type: "danger",
|
|
1020
|
+
command: "remove"
|
|
1021
|
+
}
|
|
1022
|
+
]), t === "enableType" && n === "custom" && (e.command.enable = !0, e.command.commands = [
|
|
1023
|
+
{
|
|
1024
|
+
value: "add",
|
|
1025
|
+
text: {
|
|
1026
|
+
en: "add",
|
|
1027
|
+
"zh-CHS": "增加",
|
|
1028
|
+
"zh-CHT": "增加"
|
|
1029
|
+
},
|
|
1030
|
+
type: "link"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
value: "edit",
|
|
1034
|
+
text: {
|
|
1035
|
+
en: "edit",
|
|
1036
|
+
"zh-CHS": "编辑",
|
|
1037
|
+
"zh-CHT": "編輯"
|
|
1038
|
+
},
|
|
1039
|
+
type: "danger"
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
value: "remove",
|
|
1043
|
+
text: {
|
|
1044
|
+
en: "remove",
|
|
1045
|
+
"zh-CHS": "删除",
|
|
1046
|
+
"zh-CHT": "刪除"
|
|
1047
|
+
},
|
|
1048
|
+
type: "remove"
|
|
1049
|
+
}
|
|
1050
|
+
]), t === "enableType" && n === "unable" && (e.command.enable = !1);
|
|
1051
|
+
},
|
|
1052
|
+
convertFrom: (e, t, n) => {
|
|
1053
|
+
var o, r;
|
|
1054
|
+
if (e.command) {
|
|
1055
|
+
if (t === "enableType") {
|
|
1056
|
+
const m = (r = (o = e.command) == null ? void 0 : o.commands) == null ? void 0 : r.find((y) => y.command === "edit" && y.type === "primary");
|
|
1057
|
+
return e.command.enable ? m ? "default" : "custom" : "unable";
|
|
1058
|
+
}
|
|
1059
|
+
if (t === "commands")
|
|
1060
|
+
return e.command.enableType === "custom" ? e.command.commands : [];
|
|
1061
|
+
if (t === "formatter")
|
|
1062
|
+
return e.command.formatter;
|
|
1063
|
+
if (t === "count")
|
|
1064
|
+
return e.command.count;
|
|
1065
|
+
}
|
|
1066
|
+
return "";
|
|
1067
|
+
}
|
|
1068
|
+
}, ht = {
|
|
1069
|
+
convertTo: (e, t, n, o) => {
|
|
1070
|
+
e.column ? e.column[t] = n : e.column = {
|
|
1071
|
+
[t]: n
|
|
1072
|
+
}, t === "fitColumns" && n && (e.column.fitMode || (e.column.fitMode = "average"));
|
|
1073
|
+
},
|
|
1074
|
+
convertFrom: (e, t, n) => {
|
|
1075
|
+
if (e.column) {
|
|
1076
|
+
if (t === "fitColumns")
|
|
1077
|
+
return e.column.fitColumns;
|
|
1078
|
+
if (t === "fitMode")
|
|
1079
|
+
return e.column.fitMode;
|
|
1080
|
+
}
|
|
1081
|
+
return "";
|
|
1082
|
+
}
|
|
1083
|
+
}, Ct = {
|
|
1084
|
+
convertTo: (e, t, n, o) => {
|
|
1085
|
+
e.summary ? e.summary[t] = n : e.summary = {
|
|
1086
|
+
[t]: n
|
|
1087
|
+
}, t === "enable" && n && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
|
|
1088
|
+
enable: n,
|
|
1089
|
+
groupFields: []
|
|
1090
|
+
});
|
|
1091
|
+
},
|
|
1092
|
+
convertFrom: (e, t, n) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
|
|
1093
|
+
}, Ft = {
|
|
1094
|
+
convertTo: (e, t, n, o) => {
|
|
1095
|
+
e.group ? e.group[t] = n : e.group = {
|
|
1096
|
+
[t]: n
|
|
1097
|
+
}, t === "enable" && n && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
|
|
1098
|
+
enable: n,
|
|
1099
|
+
groupFields: [],
|
|
1100
|
+
showSummary: !1
|
|
1101
|
+
});
|
|
1102
|
+
},
|
|
1103
|
+
convertFrom: (e, t, n) => {
|
|
1104
|
+
if (e.group) {
|
|
1105
|
+
if (t === "enable")
|
|
1106
|
+
return e.group.enable;
|
|
1107
|
+
if (t === "showSummary")
|
|
1108
|
+
return e.group.showSummary;
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
}, wt = {
|
|
1112
|
+
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
1113
|
+
convertTo: (e, t, n) => {
|
|
1114
|
+
if (n && n.length > 0) {
|
|
1115
|
+
const o = n[0];
|
|
1116
|
+
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;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}, Tt = {
|
|
1120
|
+
convertTo: (e, t, n, o) => {
|
|
1121
|
+
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
1122
|
+
},
|
|
1123
|
+
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
1124
|
+
}, It = {
|
|
1125
|
+
convertTo: (e, t, n, o) => {
|
|
1126
|
+
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
|
|
1127
|
+
},
|
|
1128
|
+
convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
1129
|
+
}, kt = {
|
|
1130
|
+
convertTo: (e, t, n, o) => {
|
|
1131
|
+
e.selection || (e.selection = {}), e.selection[t] = n;
|
|
1132
|
+
},
|
|
1133
|
+
convertFrom: (e, t, n) => {
|
|
1134
|
+
var o, r;
|
|
1135
|
+
return t === "showCheckbox" ? (o = e.selection) != null && o.multiSelect ? !0 : (r = e.selection) == null ? void 0 : r.showCheckbox : e.selection ? e.selection[t] : e[t];
|
|
1136
|
+
}
|
|
1137
|
+
}, Vt = {
|
|
1138
|
+
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
1139
|
+
}, Mt = {
|
|
1140
|
+
convertFrom: (e, t) => e[t] || "",
|
|
1141
|
+
convertTo: (e, t, n) => {
|
|
1142
|
+
e[t] = n;
|
|
1143
|
+
}
|
|
1144
|
+
}, xt = {
|
|
1145
|
+
convertTo: (e, t, n, o) => {
|
|
1146
|
+
e.size || (e.size = {}), e.size[t] = n;
|
|
1147
|
+
},
|
|
1148
|
+
convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
|
|
1149
|
+
}, Bt = {
|
|
1150
|
+
convertFrom: (e, t, n) => {
|
|
1151
|
+
var o, r;
|
|
1152
|
+
return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (r = e.formatter) == null ? void 0 : r.data : e.formatterEnumData;
|
|
1153
|
+
}
|
|
1154
|
+
}, Pt = {
|
|
1155
|
+
convertTo: (e, t, n, o) => {
|
|
1156
|
+
e.sort || (e.sort = {}), e.sort[t] = n;
|
|
1157
|
+
},
|
|
1158
|
+
convertFrom: (e, t, n) => {
|
|
1159
|
+
var o, r;
|
|
1160
|
+
if (t === "mode")
|
|
1161
|
+
return ((o = e.sort) == null ? void 0 : o.mode) || "client";
|
|
1162
|
+
if (t === "multiSort")
|
|
1163
|
+
return !!((r = e.sort) != null && r.multiSort);
|
|
1164
|
+
}
|
|
1165
|
+
}, Et = {
|
|
1166
|
+
convertTo: (e, t, n, o) => {
|
|
1167
|
+
e.filter || (e.filter = {}), e.filter[t] = n;
|
|
1168
|
+
},
|
|
1169
|
+
convertFrom: (e, t, n) => {
|
|
1170
|
+
var o;
|
|
1171
|
+
if (t === "mode")
|
|
1172
|
+
return ((o = e.filter) == null ? void 0 : o.mode) || "client";
|
|
1173
|
+
}
|
|
1174
|
+
}, Dt = {
|
|
1175
|
+
convertTo: (e, t, n, o) => {
|
|
1176
|
+
e.rowOption ? e.rowOption[t] = n : e.rowOption = {
|
|
1177
|
+
[t]: n
|
|
1178
|
+
};
|
|
1179
|
+
},
|
|
1180
|
+
convertFrom: (e, t, n) => {
|
|
1181
|
+
if (e.rowOption) {
|
|
1182
|
+
if (t === "customRowStyle")
|
|
1183
|
+
return e.rowOption.customRowStyle;
|
|
1184
|
+
if (t === "customCellStyle")
|
|
1185
|
+
return e.rowOption.customCellStyle;
|
|
1186
|
+
}
|
|
1187
|
+
return "";
|
|
1188
|
+
}
|
|
1189
|
+
}, $t = {
|
|
1190
|
+
convertTo: (e, t, n, o) => {
|
|
1191
|
+
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = n, t === "columnTemplateType" && n === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
|
|
1192
|
+
<span class="f-pretend-link f-cursor-pointer"
|
|
1193
|
+
@click="(ctx)=>viewModel.current.${e.onClickLinkCommand || ""}({id: rowData.id,context: ctx})">
|
|
1194
|
+
{{rowData.${e.field}}}
|
|
1195
|
+
</span>` : e.columnTemplate = `
|
|
1196
|
+
<span class="f-pretend-link f-cursor-pointer">
|
|
1197
|
+
{{rowData.${e.field}}}
|
|
1198
|
+
</span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
|
|
1199
|
+
},
|
|
1200
|
+
convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
1201
|
+
};
|
|
1202
|
+
function Nt(e, t, n) {
|
|
1203
|
+
const o = /* @__PURE__ */ new Map([
|
|
1204
|
+
["/converter/appearance.converter", pt],
|
|
1205
|
+
["/converter/buttons.converter", dt],
|
|
1206
|
+
["/converter/property-editor.converter", mt],
|
|
1207
|
+
["/converter/items-count.converter", Vt],
|
|
1208
|
+
["/converter/type.converter", yt],
|
|
1209
|
+
["/converter/change-editor.converter", gt],
|
|
1210
|
+
["/converter/change-formatter.converter", vt],
|
|
1211
|
+
["/converter/column-command.converter", bt],
|
|
1212
|
+
["/converter/column-option.converter", ht],
|
|
1213
|
+
["/converter/summary.converter", Ct],
|
|
1214
|
+
["/converter/group.converter", Ft],
|
|
1215
|
+
["/converter/form-group-label.converter", Mt],
|
|
1216
|
+
["/converter/field-selector.converter", wt],
|
|
1217
|
+
["/converter/pagination.converter", Tt],
|
|
1218
|
+
["/converter/row-number.converter", It],
|
|
1219
|
+
["/converter/grid-selection.converter", kt],
|
|
1220
|
+
["/converter/size.converter", xt],
|
|
1221
|
+
["/converter/change-formatter-enum.converter", Bt],
|
|
1222
|
+
["/converter/grid-sort.converter", Pt],
|
|
1223
|
+
["/converter/grid-filter.converter", Et],
|
|
1224
|
+
["/converter/row-option.converter", Dt],
|
|
1225
|
+
["/converter/change-formatter-type.converter", $t]
|
|
1226
|
+
]), r = /* @__PURE__ */ new Map([
|
|
1227
|
+
["string", { type: "input-group", enableClear: !1 }],
|
|
1228
|
+
["boolean", {
|
|
1229
|
+
type: "combo-list",
|
|
1230
|
+
textField: "name",
|
|
1231
|
+
valueField: "value",
|
|
1232
|
+
idField: "value",
|
|
1233
|
+
enableClear: !1,
|
|
1234
|
+
editable: !1,
|
|
1235
|
+
data: [
|
|
1236
|
+
{
|
|
1237
|
+
value: !0,
|
|
1238
|
+
name: "是"
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
value: !1,
|
|
1242
|
+
name: "否"
|
|
1243
|
+
}
|
|
1244
|
+
]
|
|
1245
|
+
}],
|
|
1246
|
+
["enum", { type: "combo-list", maxHeight: 128, enableClear: !1, editable: !1 }],
|
|
1247
|
+
["array", { type: "button-edit" }],
|
|
1248
|
+
["number", { type: "number-spinner", placeholder: "" }],
|
|
1249
|
+
["events-editor", { type: "events-editor", hide: !0 }]
|
|
1250
|
+
]), m = ut();
|
|
1251
|
+
function y(c, p) {
|
|
1252
|
+
return () => m.parseValueSchema(c, p);
|
|
1253
|
+
}
|
|
1254
|
+
function w(c, p, v) {
|
|
1255
|
+
return c.includes("visible") && p.visible !== void 0 ? typeof p.visible == "boolean" ? () => !!p.visible : p.visible === void 0 ? !0 : y(p.visible, v) : () => !0;
|
|
1256
|
+
}
|
|
1257
|
+
function h(c, p, v) {
|
|
1258
|
+
return c.includes("readonly") && p.readonly !== void 0 ? typeof p.readonly == "boolean" ? () => !!p.readonly : y(p.readonly, v) : () => !1;
|
|
1259
|
+
}
|
|
1260
|
+
function a(c, p) {
|
|
1261
|
+
const v = c.$converter || p;
|
|
1262
|
+
return typeof v == "string" && v && o.has(v) ? o.get(v) || null : v || null;
|
|
1263
|
+
}
|
|
1264
|
+
function f(c, p, v, b, C, D = "", $ = "") {
|
|
1265
|
+
return Object.keys(c).map((B) => {
|
|
1266
|
+
const q = A(1), R = B, N = c[B], M = Object.keys(N), z = N.title, J = N.type, _ = r.get(J) || { type: "input-group", enableClear: !1 }, G = N.editor ? Object.assign({}, _, N.editor) : Object.assign({}, _), l = w(M, N, p), d = h(M, N, p);
|
|
1267
|
+
G.readonly = G.readonly === void 0 ? d() : G.readonly;
|
|
1268
|
+
const F = N.type === "cascade" ? f(N.properties, p, v, b, C, D, $) : [], k = !0;
|
|
1269
|
+
let I = a(N, $);
|
|
1270
|
+
const x = K({
|
|
1271
|
+
get() {
|
|
1272
|
+
if (q.value) {
|
|
1273
|
+
if (["class", "style"].find((X) => X === R) && !I && (I = o.get("/converter/appearance.converter") || null), I && I.convertFrom)
|
|
1274
|
+
return I.convertFrom(v, B, C, D);
|
|
1275
|
+
const U = v[B];
|
|
1276
|
+
return Object.prototype.hasOwnProperty.call(N, "defaultValue") && (U === void 0 || typeof U == "string" && U === "") ? N.type === "boolean" ? N.defaultValue : N.defaultValue || "" : U;
|
|
1277
|
+
}
|
|
1278
|
+
return null;
|
|
1279
|
+
},
|
|
1280
|
+
set(U) {
|
|
1281
|
+
q.value += 1, I && I.convertTo ? (I.convertTo(b, B, U, C, D), I.convertTo(v, B, U, C, D)) : (b[B] = U, v[B] = U);
|
|
1282
|
+
}
|
|
1283
|
+
}), { refreshPanelAfterChanged: E, description: V, isExpand: T, parentPropertyID: S } = N, L = { propertyID: R, propertyName: z, propertyType: J, propertyValue: x, editor: G, visible: l, readonly: d, cascadeConfig: F, hideCascadeTitle: k, refreshPanelAfterChanged: E, description: V, isExpand: T, parentPropertyID: S };
|
|
1284
|
+
return p[R] = L, L;
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
function i(c, p, v = {}) {
|
|
1288
|
+
const b = {}, C = e[c];
|
|
1289
|
+
return C && C.categories ? Object.keys(C.categories).map(($) => {
|
|
1290
|
+
const O = C.categories[$], B = O == null ? void 0 : O.title, q = f(O.properties || {}, b, {}, v, p);
|
|
1291
|
+
return { categoryId: $, categoryName: B, properties: q };
|
|
1292
|
+
}) : [];
|
|
1293
|
+
}
|
|
1294
|
+
function s(c, p, v, b, C = "") {
|
|
1295
|
+
const D = p.$ref.schema, $ = p.$ref.converter, O = v[D], B = O.type, q = n(O), R = {}, N = e[B];
|
|
1296
|
+
if (N && N.categories) {
|
|
1297
|
+
const M = N.categories[c], z = M == null ? void 0 : M.title;
|
|
1298
|
+
$ && Object.keys(M.properties).forEach((G) => {
|
|
1299
|
+
M.properties[G].$converter = $;
|
|
1300
|
+
});
|
|
1301
|
+
const J = (M == null ? void 0 : M.properties) || {}, _ = f(J, R, q, O, b, C);
|
|
1302
|
+
return { categoryId: c, categoryName: z, properties: _ };
|
|
1303
|
+
}
|
|
1304
|
+
return { categoryId: c, categoryName: "", properties: [] };
|
|
1305
|
+
}
|
|
1306
|
+
function g(c, p, v, b, C) {
|
|
1307
|
+
const D = c.type, $ = n(c), O = {};
|
|
1308
|
+
let B = C || e[D];
|
|
1309
|
+
if (!(B && Object.keys(B).length > 0) && v && v.getPropConfig && (B = v.getPropConfig(b)), B && B.categories) {
|
|
1310
|
+
const R = [];
|
|
1311
|
+
return Object.keys(B.categories).map((N) => {
|
|
1312
|
+
const M = B.categories[N];
|
|
1313
|
+
if (M.$ref) {
|
|
1314
|
+
R.push(s(N, M, c, p, b));
|
|
1315
|
+
return;
|
|
1316
|
+
}
|
|
1317
|
+
const z = M == null ? void 0 : M.title, J = M == null ? void 0 : M.tabId, _ = M == null ? void 0 : M.tabName, G = M == null ? void 0 : M.hide, l = M == null ? void 0 : M.hideTitle, d = f(M.properties || {}, O, $, c, p, b, M.$converter), { setPropertyRelates: F } = M, k = M == null ? void 0 : M.parentPropertyID;
|
|
1318
|
+
R.push({ categoryId: N, categoryName: z, tabId: J, tabName: _, hide: G, properties: d, hideTitle: l, setPropertyRelates: F, parentPropertyID: k });
|
|
1319
|
+
}), R;
|
|
1320
|
+
}
|
|
1321
|
+
return [];
|
|
1322
|
+
}
|
|
1323
|
+
return {
|
|
1324
|
+
getPropertyConfigBySchema: g,
|
|
1325
|
+
getPropertyConfigByType: i,
|
|
1326
|
+
propertyConverterMap: o
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
function St(e, t) {
|
|
1330
|
+
let n;
|
|
1331
|
+
function o(i) {
|
|
1332
|
+
const { properties: s, title: g, ignore: c } = i, p = c && Array.isArray(c), v = Object.keys(s).reduce((b, C) => ((!p || !c.find((D) => D === C)) && (b[C] = s[C].type === "object" && s[C].properties ? o(s[C]) : ae(s[C].default)), b), {});
|
|
1333
|
+
if (g && (!p || !c.find((b) => b === "id"))) {
|
|
1334
|
+
const b = g.toLowerCase().replace(/-/g, "_");
|
|
1335
|
+
v.id = `${b}_${Math.random().toString().slice(2, 6)}`;
|
|
1336
|
+
}
|
|
1337
|
+
return v;
|
|
1338
|
+
}
|
|
1339
|
+
function r(i) {
|
|
1340
|
+
const { properties: s, title: g, required: c } = i;
|
|
1341
|
+
if (c && Array.isArray(c)) {
|
|
1342
|
+
const p = c.reduce((v, b) => (v[b] = s[b].type === "object" && s[b].properties ? o(s[b]) : ae(s[b].default), v), {});
|
|
1343
|
+
if (g && c.find((v) => v === "id")) {
|
|
1344
|
+
const v = g.toLowerCase().replace(/-/g, "_");
|
|
1345
|
+
p.id = `${v}_${Math.random().toString().slice(2, 6)}`;
|
|
1346
|
+
}
|
|
1347
|
+
return p;
|
|
1348
|
+
}
|
|
1349
|
+
return {
|
|
1350
|
+
type: g
|
|
1351
|
+
};
|
|
1352
|
+
}
|
|
1353
|
+
function m(i, s = {}, g) {
|
|
1354
|
+
const c = e[i];
|
|
1355
|
+
if (c) {
|
|
1356
|
+
let p = r(c);
|
|
1357
|
+
const v = t[i];
|
|
1358
|
+
return p = v ? v({ getSchemaByType: m }, p, s, g) : p, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(p), p;
|
|
1359
|
+
}
|
|
1360
|
+
return null;
|
|
1361
|
+
}
|
|
1362
|
+
function y(i, s) {
|
|
1363
|
+
const g = o(s);
|
|
1364
|
+
return Object.keys(g).reduce((c, p) => (Object.prototype.hasOwnProperty.call(i, p) && (c[p] && fe(c[p]) && fe(i[p] || !i[p]) ? Object.assign(c[p], i[p] || {}) : c[p] = i[p]), c), g), g;
|
|
1365
|
+
}
|
|
1366
|
+
function w(i, s) {
|
|
1367
|
+
return Object.keys(i).filter((c) => i[c] != null).reduce((c, p) => {
|
|
1368
|
+
if (s.has(p)) {
|
|
1369
|
+
const v = s.get(p);
|
|
1370
|
+
if (typeof v == "string")
|
|
1371
|
+
c[v] = i[p];
|
|
1372
|
+
else {
|
|
1373
|
+
const b = v(p, i[p], i);
|
|
1374
|
+
Object.assign(c, b);
|
|
1375
|
+
}
|
|
1376
|
+
} else
|
|
1377
|
+
c[p] = i[p];
|
|
1378
|
+
return c;
|
|
1379
|
+
}, {});
|
|
1380
|
+
}
|
|
1381
|
+
function h(i, s, g = /* @__PURE__ */ new Map()) {
|
|
1382
|
+
const c = y(i, s);
|
|
1383
|
+
return w(c, g);
|
|
1384
|
+
}
|
|
1385
|
+
function a(i) {
|
|
1386
|
+
var g;
|
|
1387
|
+
const s = i.type;
|
|
1388
|
+
if (s) {
|
|
1389
|
+
const c = e[s];
|
|
1390
|
+
if (!c)
|
|
1391
|
+
return i;
|
|
1392
|
+
const p = y(i, c), v = ((g = i.editor) == null ? void 0 : g.type) || "";
|
|
1393
|
+
if (v) {
|
|
1394
|
+
const b = e[v], C = y(i.editor, b);
|
|
1395
|
+
p.editor = C;
|
|
1396
|
+
}
|
|
1397
|
+
return p;
|
|
1398
|
+
}
|
|
1399
|
+
return i;
|
|
1400
|
+
}
|
|
1401
|
+
function f(i) {
|
|
1402
|
+
n = i;
|
|
1403
|
+
}
|
|
1404
|
+
return { getSchemaByType: m, resolveSchemaWithDefaultValue: a, resolveSchemaToProps: h, mappingSchemaToProps: w, setDesignerContext: f };
|
|
1405
|
+
}
|
|
1406
|
+
const Lt = {}, Ot = {}, { resolveSchemaWithDefaultValue: At } = St(Lt, Ot), Rt = {}, Ut = {};
|
|
1407
|
+
Nt(Rt, Ut, At);
|
|
1408
|
+
const { globalStorageKey: rr } = he(), ee = class ee {
|
|
1143
1409
|
/**
|
|
1144
1410
|
* 根据绑定字段类型获取可用的输入类控件
|
|
1145
1411
|
*/
|
|
1146
|
-
static getEditorTypesByMDataType(
|
|
1147
|
-
if (
|
|
1148
|
-
return [{ key:
|
|
1149
|
-
let
|
|
1150
|
-
if (
|
|
1151
|
-
const
|
|
1152
|
-
|
|
1412
|
+
static getEditorTypesByMDataType(t, n = !1, o = "") {
|
|
1413
|
+
if (n)
|
|
1414
|
+
return [{ key: u["language-textbox"].type, value: u["language-textbox"].name }];
|
|
1415
|
+
let r = ee.fieldControlTypeMapping[t];
|
|
1416
|
+
if (o === "data-grid-column" && (r != null && r.length)) {
|
|
1417
|
+
const m = [u["check-group"].type, u["radio-group"].type, u.image.type, u["rich-text-editor"].type];
|
|
1418
|
+
r = r.filter((y) => !m.includes(y.key));
|
|
1153
1419
|
}
|
|
1154
|
-
return
|
|
1420
|
+
return r;
|
|
1155
1421
|
}
|
|
1156
1422
|
/**
|
|
1157
1423
|
* 获取所有输入类控件
|
|
1158
1424
|
*/
|
|
1159
1425
|
static getAllInputTypes() {
|
|
1160
|
-
const
|
|
1161
|
-
for (const
|
|
1162
|
-
|
|
1163
|
-
|
|
1426
|
+
const t = [];
|
|
1427
|
+
for (const n in ee.fieldControlTypeMapping)
|
|
1428
|
+
ee.fieldControlTypeMapping[n].forEach((o) => {
|
|
1429
|
+
t.find((r) => r.key === o.key && r.value === o.value) || t.push({ key: o.key, value: o.value });
|
|
1164
1430
|
});
|
|
1165
|
-
return
|
|
1431
|
+
return t;
|
|
1166
1432
|
}
|
|
1167
1433
|
/**
|
|
1168
1434
|
* 提供schema字段基础属性和DOM控件属性的映射
|
|
1169
1435
|
* @param control 控件元数据
|
|
1170
1436
|
*/
|
|
1171
|
-
static mappingDomPropAndSchemaProp(
|
|
1172
|
-
var
|
|
1173
|
-
const
|
|
1174
|
-
return (
|
|
1437
|
+
static mappingDomPropAndSchemaProp(t, n) {
|
|
1438
|
+
var m;
|
|
1439
|
+
const o = (m = t.editor) == null ? void 0 : m.type, r = [];
|
|
1440
|
+
return (t.type === u["data-grid-column"].type || t.type === u["tree-grid-column"].type) && n && n.categoryId && n.categoryId.indexOf("gridFieldEditor") < 0 && r.push({ domField: "title", schemaField: "name" }), r.push({ domField: "label", schemaField: "name" }), r.push({ domField: "editor.required", schemaField: "require" }), r.push({ domField: "editor.readonly", schemaField: "readonly" }), (o === u["input-group"].type || o === u.textarea.type || o === u["number-spinner"].type) && r.push({ domField: "editor.maxLength", schemaField: "type.length" }), o === u["number-spinner"].type && r.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === u["data-grid-column"].type || t.type === u["tree-grid-column"].type) && r.push({ domField: "formatter.precision", schemaField: "type.precision" }), (o === u["combo-list"].type || o === u["radio-group"].type) && r.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === u["data-grid-column"].type || t.type === u["tree-grid-column"].type) && r.push({ domField: "formatter.data", schemaField: "type.enumValues" }), o === u["date-picker"].type && (r.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), r.push({ domField: "editor.fieldType", schemaField: "type.name" })), o === u["number-spinner"].type && (r.push({ domField: "editor.max", schemaField: "editor.maxValue" }), r.push({ domField: "editor.min", schemaField: "editor.minValue" })), o === u.lookup.type && (r.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), r.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), r.push({ domField: "editor.textField", schemaField: "editor.textField" }), r.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), r.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), r.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), r.push({ domField: "path", schemaField: "bindingPath" }), r.push({ domField: "binding.path", schemaField: "bindingField" }), r.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === u["data-grid-column"].type || t.type === u["tree-grid-column"].type) && r.push({ domField: "field", schemaField: "bindingPath" }), r;
|
|
1175
1441
|
}
|
|
1176
1442
|
};
|
|
1177
1443
|
/**
|
|
1178
1444
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1179
1445
|
*/
|
|
1180
|
-
|
|
1446
|
+
te(ee, "fieldControlTypeMapping", {
|
|
1181
1447
|
String: [
|
|
1182
|
-
{ key:
|
|
1183
|
-
{ key:
|
|
1184
|
-
{ key:
|
|
1185
|
-
{ key:
|
|
1186
|
-
{ key:
|
|
1187
|
-
{ key:
|
|
1188
|
-
{ key:
|
|
1189
|
-
{ key:
|
|
1190
|
-
{ key:
|
|
1191
|
-
{ key:
|
|
1192
|
-
{ key:
|
|
1448
|
+
{ key: u["input-group"].type, value: u["input-group"].name },
|
|
1449
|
+
{ key: u.lookup.type, value: u.lookup.name },
|
|
1450
|
+
{ key: u.image.type, value: u.image.name },
|
|
1451
|
+
{ key: u["date-picker"].type, value: u["date-picker"].name },
|
|
1452
|
+
{ key: u.switch.type, value: u.switch.name },
|
|
1453
|
+
{ key: u["check-box"].type, value: u["check-box"].name },
|
|
1454
|
+
{ key: u["check-group"].type, value: u["check-group"].name },
|
|
1455
|
+
{ key: u["radio-group"].type, value: u["radio-group"].name },
|
|
1456
|
+
{ key: u["combo-list"].type, value: u["combo-list"].name },
|
|
1457
|
+
{ key: u.textarea.type, value: u.textarea.name },
|
|
1458
|
+
{ key: u["time-picker"].type, value: u["time-picker"].name }
|
|
1193
1459
|
],
|
|
1194
1460
|
Text: [
|
|
1195
|
-
{ key:
|
|
1196
|
-
{ key:
|
|
1197
|
-
{ key:
|
|
1198
|
-
{ key:
|
|
1461
|
+
{ key: u.textarea.type, value: u.textarea.name },
|
|
1462
|
+
{ key: u.lookup.type, value: u.lookup.name },
|
|
1463
|
+
{ key: u.image.type, value: u.image.name },
|
|
1464
|
+
{ key: u["rich-text-editor"].type, value: u["rich-text-editor"].name }
|
|
1199
1465
|
],
|
|
1200
1466
|
Decimal: [
|
|
1201
|
-
{ key:
|
|
1467
|
+
{ key: u["number-spinner"].type, value: u["number-spinner"].name }
|
|
1202
1468
|
],
|
|
1203
1469
|
Integer: [
|
|
1204
|
-
{ key:
|
|
1470
|
+
{ key: u["number-spinner"].type, value: u["number-spinner"].name }
|
|
1205
1471
|
],
|
|
1206
1472
|
Number: [
|
|
1207
|
-
{ key:
|
|
1208
|
-
{ key:
|
|
1209
|
-
{ key:
|
|
1473
|
+
{ key: u["number-spinner"].type, value: u["number-spinner"].name },
|
|
1474
|
+
{ key: u.switch.type, value: u.switch.name },
|
|
1475
|
+
{ key: u["check-box"].type, value: u["check-box"].name }
|
|
1210
1476
|
],
|
|
1211
1477
|
BigNumber: [
|
|
1212
|
-
{ key:
|
|
1478
|
+
{ key: u["number-spinner"].type, value: u["number-spinner"].name }
|
|
1213
1479
|
],
|
|
1214
1480
|
Date: [
|
|
1215
|
-
{ key:
|
|
1481
|
+
{ key: u["date-picker"].type, value: u["date-picker"].name }
|
|
1216
1482
|
],
|
|
1217
1483
|
DateTime: [
|
|
1218
|
-
{ key:
|
|
1484
|
+
{ key: u["date-picker"].type, value: u["date-picker"].name }
|
|
1219
1485
|
],
|
|
1220
1486
|
Boolean: [
|
|
1221
|
-
{ key:
|
|
1222
|
-
{ key:
|
|
1487
|
+
{ key: u.switch.type, value: u.switch.name },
|
|
1488
|
+
{ key: u["check-box"].type, value: u["check-box"].name }
|
|
1223
1489
|
],
|
|
1224
1490
|
Enum: [
|
|
1225
|
-
{ key:
|
|
1226
|
-
{ key:
|
|
1491
|
+
{ key: u["combo-list"].type, value: u["combo-list"].name },
|
|
1492
|
+
{ key: u["radio-group"].type, value: u["radio-group"].name }
|
|
1227
1493
|
],
|
|
1228
1494
|
Object: [
|
|
1229
|
-
{ key:
|
|
1230
|
-
{ key:
|
|
1231
|
-
{ key:
|
|
1495
|
+
{ key: u.lookup.type, value: u.lookup.name },
|
|
1496
|
+
{ key: u["combo-list"].type, value: u["combo-list"].name },
|
|
1497
|
+
{ key: u["radio-group"].type, value: u["radio-group"].name }
|
|
1232
1498
|
]
|
|
1233
1499
|
});
|
|
1234
|
-
let
|
|
1235
|
-
var
|
|
1236
|
-
function
|
|
1237
|
-
function
|
|
1238
|
-
const
|
|
1239
|
-
if (!
|
|
1500
|
+
let ge = ee;
|
|
1501
|
+
var se = /* @__PURE__ */ ((e) => (e.Form = "Form", e.Variable = "Variable", e))(se || {}), we = /* @__PURE__ */ ((e) => (e.SimpleField = "SimpleField", e.ComplexField = "ComplexField", e))(we || {});
|
|
1502
|
+
function jt(e, t, n) {
|
|
1503
|
+
function o() {
|
|
1504
|
+
const y = n.componentId;
|
|
1505
|
+
if (!y)
|
|
1240
1506
|
return !1;
|
|
1241
|
-
const
|
|
1242
|
-
if (!
|
|
1507
|
+
const w = e.formSchemaUtils.getViewModelIdByComponentId(y);
|
|
1508
|
+
if (!w)
|
|
1243
1509
|
return !1;
|
|
1244
|
-
const { schema:
|
|
1245
|
-
return !(!
|
|
1246
|
-
}
|
|
1247
|
-
function
|
|
1248
|
-
const { schema:
|
|
1249
|
-
return !!
|
|
1250
|
-
}
|
|
1251
|
-
function
|
|
1252
|
-
var
|
|
1253
|
-
const { schema:
|
|
1254
|
-
let
|
|
1255
|
-
if (!
|
|
1256
|
-
return
|
|
1257
|
-
switch (
|
|
1258
|
-
case
|
|
1259
|
-
|
|
1510
|
+
const { schema: h } = t, { designViewModelUtils: a } = e, f = a.getDgViewModel(w), i = f == null ? void 0 : f.fields.find((s) => s.id === h.binding.field);
|
|
1511
|
+
return !(!i || i.$type !== we.SimpleField);
|
|
1512
|
+
}
|
|
1513
|
+
function r() {
|
|
1514
|
+
const { schema: y } = t;
|
|
1515
|
+
return !!e.formSchemaUtils.getVariableById(y.binding.field);
|
|
1516
|
+
}
|
|
1517
|
+
function m() {
|
|
1518
|
+
var h;
|
|
1519
|
+
const { schema: y } = t;
|
|
1520
|
+
let w = !0;
|
|
1521
|
+
if (!e || !((h = y.binding) != null && h.field))
|
|
1522
|
+
return w;
|
|
1523
|
+
switch (y.binding.type) {
|
|
1524
|
+
case se.Form: {
|
|
1525
|
+
w = o();
|
|
1260
1526
|
break;
|
|
1261
1527
|
}
|
|
1262
|
-
case
|
|
1263
|
-
|
|
1528
|
+
case se.Variable:
|
|
1529
|
+
w = r();
|
|
1264
1530
|
}
|
|
1265
|
-
return
|
|
1531
|
+
return w;
|
|
1266
1532
|
}
|
|
1267
|
-
return { checkBindingFieldValidation:
|
|
1533
|
+
return { checkBindingFieldValidation: m };
|
|
1268
1534
|
}
|
|
1269
|
-
const
|
|
1535
|
+
const qt = /* @__PURE__ */ ne({
|
|
1270
1536
|
name: "FDynamicFormGroupDesign",
|
|
1271
|
-
props:
|
|
1537
|
+
props: ve,
|
|
1272
1538
|
emits: ["change", "update:modelValue"],
|
|
1273
|
-
setup(
|
|
1274
|
-
var
|
|
1275
|
-
const
|
|
1276
|
-
|
|
1277
|
-
const
|
|
1278
|
-
resolveEditorProps:
|
|
1279
|
-
resolveEditorType:
|
|
1280
|
-
} =
|
|
1539
|
+
setup(e, t) {
|
|
1540
|
+
var q;
|
|
1541
|
+
const n = A(e.id), o = A(e.customClass), r = A(e.editor), m = A(e.label), y = A(e.modelValue), w = A(!0), h = A(((q = e.editor) == null ? void 0 : q.required) === !0), a = A(e.showLabel);
|
|
1542
|
+
A(e.type);
|
|
1543
|
+
const f = A(), i = Y("designer-host-service"), s = Y("design-item-context"), g = K(() => a.value ? e.showLabelType : "none"), {
|
|
1544
|
+
resolveEditorProps: c,
|
|
1545
|
+
resolveEditorType: p
|
|
1546
|
+
} = ct(), v = K(() => ({
|
|
1281
1547
|
"form-group": !0,
|
|
1282
1548
|
"farris-form-group": !0,
|
|
1283
1549
|
"common-group": !0,
|
|
1284
|
-
"q-state-readonly":
|
|
1550
|
+
"q-state-readonly": w.value,
|
|
1285
1551
|
"form-group-in-canvas": !0
|
|
1286
|
-
})),
|
|
1287
|
-
const
|
|
1288
|
-
return () =>
|
|
1289
|
-
ref:
|
|
1290
|
-
},
|
|
1291
|
-
modelValue:
|
|
1292
|
-
"onUpdate:modelValue": (
|
|
1552
|
+
})), b = K(() => {
|
|
1553
|
+
const R = r.value.type || "input-group", N = p(R), M = c(R, r.value);
|
|
1554
|
+
return () => P(N, be({
|
|
1555
|
+
ref: f
|
|
1556
|
+
}, M, {
|
|
1557
|
+
modelValue: y.value,
|
|
1558
|
+
"onUpdate:modelValue": (z) => y.value = z
|
|
1293
1559
|
}), null);
|
|
1294
1560
|
});
|
|
1295
|
-
|
|
1296
|
-
var
|
|
1297
|
-
|
|
1298
|
-
...
|
|
1299
|
-
},
|
|
1561
|
+
je([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.showLabel], ([R, N, M, z, J, _, G]) => {
|
|
1562
|
+
var l;
|
|
1563
|
+
n.value = R, o.value = N, r.value = {
|
|
1564
|
+
...M
|
|
1565
|
+
}, m.value = z, y.value = J, w.value = _, h.value = ((l = r.value) == null ? void 0 : l.required) === !0, a.value = G;
|
|
1300
1566
|
}, {
|
|
1301
1567
|
deep: !0
|
|
1302
1568
|
});
|
|
1303
|
-
const
|
|
1304
|
-
checkBindingFieldValidation:
|
|
1305
|
-
} =
|
|
1569
|
+
const D = !Y("external-container-id"), {
|
|
1570
|
+
checkBindingFieldValidation: $
|
|
1571
|
+
} = jt(i, s, e);
|
|
1306
1572
|
function O() {
|
|
1307
|
-
const
|
|
1308
|
-
return
|
|
1309
|
-
id: `${
|
|
1310
|
-
showType:
|
|
1311
|
-
required:
|
|
1312
|
-
text:
|
|
1313
|
-
title:
|
|
1314
|
-
valid:
|
|
1573
|
+
const R = D ? $() : !0;
|
|
1574
|
+
return P(Be, {
|
|
1575
|
+
id: `${n.value}-lable`,
|
|
1576
|
+
showType: g.value,
|
|
1577
|
+
required: h.value,
|
|
1578
|
+
text: m.value,
|
|
1579
|
+
title: m.value,
|
|
1580
|
+
valid: R,
|
|
1315
1581
|
inValidTip: "绑定信息已失效,请切换绑定或移除控件"
|
|
1316
1582
|
}, null);
|
|
1317
1583
|
}
|
|
1318
|
-
const
|
|
1319
|
-
if (
|
|
1584
|
+
const B = K(() => {
|
|
1585
|
+
if (e.fill)
|
|
1320
1586
|
return {
|
|
1321
1587
|
maxWidth: "none"
|
|
1322
1588
|
};
|
|
1323
1589
|
});
|
|
1324
|
-
return
|
|
1325
|
-
editorRef:
|
|
1326
|
-
}), () =>
|
|
1327
|
-
id: `${
|
|
1328
|
-
class:
|
|
1329
|
-
}, [
|
|
1590
|
+
return t.expose({
|
|
1591
|
+
editorRef: f
|
|
1592
|
+
}), () => P("div", {
|
|
1593
|
+
id: `${n.value}-input-group`,
|
|
1594
|
+
class: o.value
|
|
1595
|
+
}, [P("div", {
|
|
1330
1596
|
class: "farris-group-wrap",
|
|
1331
|
-
style:
|
|
1332
|
-
}, [
|
|
1333
|
-
class:
|
|
1334
|
-
}, [O(),
|
|
1597
|
+
style: B.value
|
|
1598
|
+
}, [P("div", {
|
|
1599
|
+
class: v.value
|
|
1600
|
+
}, [O(), P("div", {
|
|
1335
1601
|
class: "farris-input-wrap"
|
|
1336
|
-
}, [
|
|
1602
|
+
}, [b.value()])])])]);
|
|
1337
1603
|
}
|
|
1338
1604
|
});
|
|
1339
|
-
function
|
|
1340
|
-
function
|
|
1605
|
+
function Gt(e, t) {
|
|
1606
|
+
function n() {
|
|
1341
1607
|
return !0;
|
|
1342
1608
|
}
|
|
1343
|
-
function
|
|
1609
|
+
function o() {
|
|
1344
1610
|
return !0;
|
|
1345
1611
|
}
|
|
1346
|
-
function
|
|
1612
|
+
function r() {
|
|
1347
1613
|
return !1;
|
|
1348
1614
|
}
|
|
1349
|
-
function
|
|
1615
|
+
function m() {
|
|
1350
1616
|
return !0;
|
|
1351
1617
|
}
|
|
1352
|
-
function
|
|
1353
|
-
var
|
|
1354
|
-
const
|
|
1355
|
-
if (!
|
|
1618
|
+
function y(i) {
|
|
1619
|
+
var b;
|
|
1620
|
+
const s = t == null ? void 0 : t.designViewModelUtils, g = t == null ? void 0 : t.formSchemaUtils, c = (b = e == null ? void 0 : e.componentInstance.value) == null ? void 0 : b.belongedComponentId;
|
|
1621
|
+
if (!c || !s || !g)
|
|
1356
1622
|
return;
|
|
1357
|
-
const
|
|
1358
|
-
|
|
1359
|
-
}
|
|
1360
|
-
function
|
|
1361
|
-
const
|
|
1362
|
-
if (
|
|
1363
|
-
let
|
|
1364
|
-
if (
|
|
1365
|
-
var
|
|
1366
|
-
if (
|
|
1623
|
+
const p = g.getViewModelIdByComponentId(c), v = s.getDgViewModel(p);
|
|
1624
|
+
v && v.removeField([i]);
|
|
1625
|
+
}
|
|
1626
|
+
function w(i, s) {
|
|
1627
|
+
const g = t == null ? void 0 : t.formSchemaUtils, { schema: c } = e;
|
|
1628
|
+
if (g.getComponents().find((v) => {
|
|
1629
|
+
let b = g.getControlsInCmpWidthBinding(v.viewModel, i);
|
|
1630
|
+
if (b = b.filter((C) => {
|
|
1631
|
+
var $;
|
|
1632
|
+
if (C.id === c.id)
|
|
1367
1633
|
return !1;
|
|
1368
|
-
const
|
|
1369
|
-
if (
|
|
1634
|
+
const D = s.type === "visible" ? C[s.type] : ($ = C.editor) == null ? void 0 : $[s.type];
|
|
1635
|
+
if (D && D.type === "Expression" && D.expressionId === s.id)
|
|
1370
1636
|
return !0;
|
|
1371
|
-
}),
|
|
1637
|
+
}), b.length)
|
|
1372
1638
|
return !0;
|
|
1373
1639
|
}))
|
|
1374
1640
|
return !0;
|
|
1375
1641
|
}
|
|
1376
|
-
function
|
|
1377
|
-
var
|
|
1378
|
-
const
|
|
1379
|
-
if (
|
|
1380
|
-
const
|
|
1381
|
-
|
|
1382
|
-
var
|
|
1383
|
-
switch (
|
|
1642
|
+
function h(i) {
|
|
1643
|
+
var c;
|
|
1644
|
+
const s = t == null ? void 0 : t.formSchemaUtils, { schema: g } = e;
|
|
1645
|
+
if (s.getExpressions().length) {
|
|
1646
|
+
const p = s.getExpressions(), v = p.findIndex((b) => b.target === i);
|
|
1647
|
+
v > -1 && ((c = p[v].rules) == null || c.map((b) => {
|
|
1648
|
+
var C;
|
|
1649
|
+
switch (b.type) {
|
|
1384
1650
|
case "visible":
|
|
1385
1651
|
case "readonly":
|
|
1386
1652
|
case "required": {
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1653
|
+
const D = b.type === "visible" ? g[b.type] : (C = g.editor) == null ? void 0 : C[b.type];
|
|
1654
|
+
D && D.type === "Expression" && D.expressionId === b.id && (w(i, b) || (b.needDelete = !0));
|
|
1389
1655
|
break;
|
|
1390
1656
|
}
|
|
1391
1657
|
default:
|
|
1392
|
-
|
|
1658
|
+
w(i, b) || (b.needDelete = !0);
|
|
1393
1659
|
}
|
|
1394
|
-
}),
|
|
1660
|
+
}), p[v].rules = p[v].rules.filter((b) => !b.needDelete));
|
|
1395
1661
|
}
|
|
1396
1662
|
}
|
|
1397
|
-
function
|
|
1398
|
-
var
|
|
1399
|
-
const
|
|
1400
|
-
((
|
|
1663
|
+
function a() {
|
|
1664
|
+
var s, g;
|
|
1665
|
+
const i = (s = e == null ? void 0 : e.parent) == null ? void 0 : s.componentInstance.value;
|
|
1666
|
+
((g = i == null ? void 0 : i.schema) == null ? void 0 : g.type) === u["response-layout-item"].type && (i != null && i.schema.appearance.class) && (i.schema.appearance.class = i.schema.appearance.class.replace("f-form-layout", ""), i.schema.appearance.class = i.schema.appearance.class.replace("farris-form", ""), i.schema.appearance.class = i.schema.appearance.class.replace("farris-form-controls-inline", ""), i.schema.appearance.class = i.schema.appearance.class.replace("farris-form-auto", ""), i.schema.appearance.class = i.schema.appearance.class.trim().replace(" ", " "));
|
|
1401
1667
|
}
|
|
1402
|
-
function
|
|
1403
|
-
const { schema:
|
|
1404
|
-
|
|
1668
|
+
function f() {
|
|
1669
|
+
const { schema: i } = e, s = i.binding && i.binding.field;
|
|
1670
|
+
s && (y(s), h(s)), a();
|
|
1405
1671
|
}
|
|
1406
1672
|
return {
|
|
1407
|
-
canAccepts:
|
|
1408
|
-
checkCanDeleteComponent:
|
|
1409
|
-
checkCanMoveComponent:
|
|
1410
|
-
hideNestedPaddingInDesginerView:
|
|
1411
|
-
onRemoveComponent:
|
|
1673
|
+
canAccepts: r,
|
|
1674
|
+
checkCanDeleteComponent: o,
|
|
1675
|
+
checkCanMoveComponent: n,
|
|
1676
|
+
hideNestedPaddingInDesginerView: m,
|
|
1677
|
+
onRemoveComponent: f
|
|
1412
1678
|
};
|
|
1413
1679
|
}
|
|
1414
|
-
const
|
|
1680
|
+
const Zt = /* @__PURE__ */ ne({
|
|
1415
1681
|
name: "FFormGroupDesign",
|
|
1416
|
-
props:
|
|
1682
|
+
props: Ce,
|
|
1417
1683
|
emits: [],
|
|
1418
|
-
setup(
|
|
1419
|
-
const
|
|
1420
|
-
return
|
|
1421
|
-
|
|
1422
|
-
var
|
|
1423
|
-
let
|
|
1424
|
-
return
|
|
1684
|
+
setup(e, t) {
|
|
1685
|
+
const n = A(), o = Y("design-item-context"), r = Y("designer-host-service"), m = Gt(o, r), y = ce(n, o, m);
|
|
1686
|
+
return ie(() => {
|
|
1687
|
+
n.value.componentInstance = y, y.value.getPropConfig = (...w) => {
|
|
1688
|
+
var a, f, i;
|
|
1689
|
+
let h = Le[e.editor.type];
|
|
1690
|
+
return h && Object.keys(h).length === 0 && ((a = n.value) != null && a.editorRef) && ((i = (f = n.value) == null ? void 0 : f.editorRef) != null && i.getPropConfig) && (h = n.value.editorRef.getPropConfig(...w, y.value)), h;
|
|
1425
1691
|
};
|
|
1426
|
-
}),
|
|
1427
|
-
ref:
|
|
1692
|
+
}), t.expose(y.value), () => P(qt, be(e, {
|
|
1693
|
+
ref: n
|
|
1428
1694
|
}), null);
|
|
1429
1695
|
}
|
|
1430
|
-
}),
|
|
1431
|
-
["appearance",
|
|
1432
|
-
]),
|
|
1433
|
-
class
|
|
1434
|
-
constructor(
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
this.resolver =
|
|
1439
|
-
}
|
|
1440
|
-
createComponent(
|
|
1441
|
-
const
|
|
1442
|
-
return
|
|
1443
|
-
}
|
|
1444
|
-
createComponentRefNode(
|
|
1445
|
-
const
|
|
1446
|
-
return Object.assign(
|
|
1447
|
-
id: `${
|
|
1448
|
-
component: `${
|
|
1449
|
-
}),
|
|
1450
|
-
}
|
|
1451
|
-
createComponentNode(
|
|
1452
|
-
const
|
|
1453
|
-
return Object.assign(
|
|
1454
|
-
id: `${
|
|
1455
|
-
viewModel: `${
|
|
1456
|
-
componentType:
|
|
1696
|
+
}), ue = /* @__PURE__ */ new Map([
|
|
1697
|
+
["appearance", Oe]
|
|
1698
|
+
]), zt = /* @__PURE__ */ new Map([]), Wt = "root-viewmodel";
|
|
1699
|
+
class Jt {
|
|
1700
|
+
constructor(t, n) {
|
|
1701
|
+
te(this, "formSchemaUtils");
|
|
1702
|
+
te(this, "controlCreatorUtils");
|
|
1703
|
+
te(this, "designViewModelUtils");
|
|
1704
|
+
this.resolver = t, this.designerHostService = n, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.controlCreatorUtils = this.designerHostService.controlCreatorUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils;
|
|
1705
|
+
}
|
|
1706
|
+
createComponent(t) {
|
|
1707
|
+
const n = this.createComponentRefNode(t), o = this.createComponentNode(t), r = this.createViewModeNode(t), m = this.formSchemaUtils.getFormSchema();
|
|
1708
|
+
return m.module.viewmodels.push(r), m.module.components.push(o), this.designViewModelUtils.assembleDesignViewModel(), n;
|
|
1709
|
+
}
|
|
1710
|
+
createComponentRefNode(t) {
|
|
1711
|
+
const n = this.resolver.getSchemaByType("component-ref");
|
|
1712
|
+
return Object.assign(n, {
|
|
1713
|
+
id: `${t.componentId}-component-ref`,
|
|
1714
|
+
component: `${t.componentId}-component`
|
|
1715
|
+
}), n;
|
|
1716
|
+
}
|
|
1717
|
+
createComponentNode(t) {
|
|
1718
|
+
const n = this.resolver.getSchemaByType("component"), o = this.createFormComponentContents(t);
|
|
1719
|
+
return Object.assign(n, {
|
|
1720
|
+
id: `${t.componentId}-component`,
|
|
1721
|
+
viewModel: `${t.componentId}-component-viewmodel`,
|
|
1722
|
+
componentType: t.componentType,
|
|
1457
1723
|
appearance: {
|
|
1458
|
-
class: this.getFormComponentClass(
|
|
1724
|
+
class: this.getFormComponentClass(t)
|
|
1459
1725
|
},
|
|
1460
|
-
formColumns:
|
|
1461
|
-
contents:
|
|
1462
|
-
}),
|
|
1726
|
+
formColumns: t.formColumns,
|
|
1727
|
+
contents: o
|
|
1728
|
+
}), n;
|
|
1463
1729
|
}
|
|
1464
1730
|
/**
|
|
1465
1731
|
* 获取卡片组件层级的class样式
|
|
1466
1732
|
*/
|
|
1467
|
-
getFormComponentClass(
|
|
1468
|
-
var
|
|
1469
|
-
const { templateId:
|
|
1470
|
-
if (
|
|
1471
|
-
const
|
|
1472
|
-
if ((
|
|
1733
|
+
getFormComponentClass(t) {
|
|
1734
|
+
var o, r;
|
|
1735
|
+
const { templateId: n } = this.formSchemaUtils.getFormSchema().module;
|
|
1736
|
+
if (n === "double-list-in-tab-template" && ((r = (o = t.parentComponentInstance) == null ? void 0 : o.schema) == null ? void 0 : r.type) === "tab-page") {
|
|
1737
|
+
const m = t.parentComponentInstance.parent && t.parentComponentInstance.parent.schema;
|
|
1738
|
+
if ((m == null ? void 0 : m.type) === "tabs" && (m == null ? void 0 : m.fill) === !0)
|
|
1473
1739
|
return "f-struct-wrapper f-utils-fill-flex-column";
|
|
1474
1740
|
}
|
|
1475
1741
|
return "f-struct-wrapper";
|
|
1476
1742
|
}
|
|
1477
|
-
createFormComponentContents(
|
|
1478
|
-
var
|
|
1479
|
-
const
|
|
1480
|
-
Object.assign(
|
|
1481
|
-
id:
|
|
1743
|
+
createFormComponentContents(t) {
|
|
1744
|
+
var w, h;
|
|
1745
|
+
const n = this.resolver.getSchemaByType("section");
|
|
1746
|
+
Object.assign(n, {
|
|
1747
|
+
id: t.componentId + "-form-section",
|
|
1482
1748
|
appearance: {
|
|
1483
1749
|
class: "f-section-form f-section-in-mainsubcard"
|
|
1484
1750
|
},
|
|
1485
|
-
mainTitle:
|
|
1751
|
+
mainTitle: t.componentName
|
|
1486
1752
|
});
|
|
1487
|
-
const
|
|
1488
|
-
Object.assign(
|
|
1489
|
-
id:
|
|
1753
|
+
const o = this.resolver.getSchemaByType("response-form"), r = [];
|
|
1754
|
+
Object.assign(o, {
|
|
1755
|
+
id: t.componentId + "-form",
|
|
1490
1756
|
appearance: {
|
|
1491
1757
|
class: "f-form-layout farris-form farris-form-controls-inline"
|
|
1492
1758
|
},
|
|
1493
|
-
contents:
|
|
1759
|
+
contents: r,
|
|
1494
1760
|
controlsInline: !0
|
|
1495
|
-
}),
|
|
1496
|
-
const { selectedFields:
|
|
1497
|
-
|
|
1498
|
-
if (
|
|
1499
|
-
const
|
|
1500
|
-
|
|
1761
|
+
}), n.contents = [o];
|
|
1762
|
+
const { selectedFields: m } = t;
|
|
1763
|
+
m == null || m.forEach((a) => {
|
|
1764
|
+
if (a.$type === de.SimpleField) {
|
|
1765
|
+
const f = ae(a), i = this.resolveControlClassByFormColumns(t), s = this.controlCreatorUtils.setFormFieldProperty(f, "", i);
|
|
1766
|
+
s && r.push(s);
|
|
1501
1767
|
}
|
|
1502
1768
|
});
|
|
1503
|
-
const { templateId:
|
|
1504
|
-
if (
|
|
1505
|
-
const
|
|
1506
|
-
(
|
|
1769
|
+
const { templateId: y } = this.formSchemaUtils.getFormSchema().module;
|
|
1770
|
+
if (y === "double-list-in-tab-template" && ((h = (w = t.parentComponentInstance) == null ? void 0 : w.schema) == null ? void 0 : h.type) === "tab-page") {
|
|
1771
|
+
const a = t.parentComponentInstance.parent && t.parentComponentInstance.parent.schema;
|
|
1772
|
+
(a == null ? void 0 : a.type) === "tabs" && (a == null ? void 0 : a.fill) === !0 && (n.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", n.fill = !0);
|
|
1507
1773
|
}
|
|
1508
|
-
return [
|
|
1774
|
+
return [n];
|
|
1509
1775
|
}
|
|
1510
|
-
resolveControlClassByFormColumns(
|
|
1511
|
-
let
|
|
1512
|
-
switch (
|
|
1776
|
+
resolveControlClassByFormColumns(t) {
|
|
1777
|
+
let n = "";
|
|
1778
|
+
switch (t.formColumns) {
|
|
1513
1779
|
case 1: {
|
|
1514
|
-
|
|
1780
|
+
n = "col-12 col-md-12 col-xl-12 col-el-12";
|
|
1515
1781
|
break;
|
|
1516
1782
|
}
|
|
1517
1783
|
case 2: {
|
|
1518
|
-
|
|
1784
|
+
n = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
1519
1785
|
break;
|
|
1520
1786
|
}
|
|
1521
1787
|
case 3: {
|
|
1522
|
-
|
|
1788
|
+
n = "col-12 col-md-6 col-xl-4 col-el-4";
|
|
1523
1789
|
break;
|
|
1524
1790
|
}
|
|
1525
1791
|
case 4: {
|
|
1526
|
-
|
|
1792
|
+
n = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
1527
1793
|
break;
|
|
1528
1794
|
}
|
|
1529
1795
|
}
|
|
1530
|
-
return
|
|
1796
|
+
return n;
|
|
1531
1797
|
}
|
|
1532
1798
|
/**
|
|
1533
1799
|
* 添加viewModel节点
|
|
1534
1800
|
*/
|
|
1535
|
-
createViewModeNode(
|
|
1801
|
+
createViewModeNode(t) {
|
|
1536
1802
|
return {
|
|
1537
|
-
id: `${
|
|
1538
|
-
code: `${
|
|
1539
|
-
name:
|
|
1540
|
-
bindTo:
|
|
1541
|
-
parent:
|
|
1542
|
-
fields: this.assembleViewModelFields(
|
|
1803
|
+
id: `${t.componentId}-component-viewmodel`,
|
|
1804
|
+
code: `${t.componentId}-component-viewmodel`,
|
|
1805
|
+
name: t.componentName,
|
|
1806
|
+
bindTo: t.bindTo,
|
|
1807
|
+
parent: Wt,
|
|
1808
|
+
fields: this.assembleViewModelFields(t),
|
|
1543
1809
|
commands: [],
|
|
1544
1810
|
states: [],
|
|
1545
1811
|
enableValidation: !0
|
|
@@ -1548,47 +1814,47 @@ class en {
|
|
|
1548
1814
|
/**
|
|
1549
1815
|
* 组装viewModel fields 节点
|
|
1550
1816
|
*/
|
|
1551
|
-
assembleViewModelFields(
|
|
1552
|
-
const
|
|
1553
|
-
return
|
|
1554
|
-
if (
|
|
1555
|
-
let
|
|
1556
|
-
const
|
|
1557
|
-
(
|
|
1817
|
+
assembleViewModelFields(t) {
|
|
1818
|
+
const n = [], { selectedFields: o } = t;
|
|
1819
|
+
return o == null || o.forEach((r) => {
|
|
1820
|
+
if (r.$type === de.SimpleField) {
|
|
1821
|
+
let m = "blur";
|
|
1822
|
+
const y = r.type.name;
|
|
1823
|
+
(y === me.Enum || y === me.Boolean) && (m = "change"), n.push({
|
|
1558
1824
|
type: "Form",
|
|
1559
|
-
id:
|
|
1560
|
-
fieldName:
|
|
1825
|
+
id: r.id,
|
|
1826
|
+
fieldName: r.bindingField,
|
|
1561
1827
|
groupId: null,
|
|
1562
1828
|
groupName: null,
|
|
1563
|
-
updateOn:
|
|
1829
|
+
updateOn: m,
|
|
1564
1830
|
fieldSchema: {}
|
|
1565
1831
|
});
|
|
1566
1832
|
}
|
|
1567
|
-
}),
|
|
1833
|
+
}), n;
|
|
1568
1834
|
}
|
|
1569
1835
|
}
|
|
1570
|
-
function
|
|
1571
|
-
var
|
|
1572
|
-
const
|
|
1573
|
-
if (
|
|
1574
|
-
const
|
|
1836
|
+
function _t(e, t, n, o) {
|
|
1837
|
+
var m, y, w, h, a, f;
|
|
1838
|
+
const r = n.parentComponentInstance;
|
|
1839
|
+
if (r && o) {
|
|
1840
|
+
const i = (m = r.schema) == null ? void 0 : m.type, g = {
|
|
1575
1841
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
1576
|
-
componentName: ((
|
|
1842
|
+
componentName: ((y = n.bindingSourceContext) == null ? void 0 : y.entityTitle) || ((h = (w = n.bindingSourceContext) == null ? void 0 : w.bindingEntity) == null ? void 0 : h.name) || "标题",
|
|
1577
1843
|
componentType: "form",
|
|
1578
|
-
formColumns:
|
|
1579
|
-
parentContainerId:
|
|
1580
|
-
parentComponentInstance:
|
|
1581
|
-
bindTo: ((
|
|
1582
|
-
selectedFields: (
|
|
1844
|
+
formColumns: i === "splitter-pane" ? 1 : 4,
|
|
1845
|
+
parentContainerId: r.schema.id,
|
|
1846
|
+
parentComponentInstance: r,
|
|
1847
|
+
bindTo: ((a = n.bindingSourceContext) == null ? void 0 : a.bindTo) || "/",
|
|
1848
|
+
selectedFields: (f = n.bindingSourceContext) == null ? void 0 : f.bindingEntityFields
|
|
1583
1849
|
};
|
|
1584
|
-
return new
|
|
1850
|
+
return new Jt(e, o).createComponent(g);
|
|
1585
1851
|
} else
|
|
1586
|
-
return
|
|
1852
|
+
return t;
|
|
1587
1853
|
}
|
|
1588
|
-
function
|
|
1589
|
-
return
|
|
1854
|
+
function Xt(e, t, n) {
|
|
1855
|
+
return t;
|
|
1590
1856
|
}
|
|
1591
|
-
const
|
|
1857
|
+
const Qt = "https://json-schema.org/draft/2020-12/schema", Yt = "https://farris-design.gitee.io/grid-field-editor.schema.json", Ht = "response-form-layout-setting", Kt = "A Farris Data Grid Component", en = "object", tn = {
|
|
1592
1858
|
id: {
|
|
1593
1859
|
description: "The unique identifier for a Input Group",
|
|
1594
1860
|
type: "string"
|
|
@@ -1602,18 +1868,18 @@ const nn = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-
|
|
|
1602
1868
|
description: "",
|
|
1603
1869
|
type: "object"
|
|
1604
1870
|
}
|
|
1605
|
-
},
|
|
1871
|
+
}, nn = [
|
|
1606
1872
|
"id",
|
|
1607
1873
|
"type"
|
|
1608
|
-
],
|
|
1609
|
-
$schema:
|
|
1610
|
-
$id:
|
|
1611
|
-
title:
|
|
1612
|
-
description:
|
|
1613
|
-
type:
|
|
1614
|
-
properties:
|
|
1615
|
-
required:
|
|
1616
|
-
},
|
|
1874
|
+
], on = {
|
|
1875
|
+
$schema: Qt,
|
|
1876
|
+
$id: Yt,
|
|
1877
|
+
title: Ht,
|
|
1878
|
+
description: Kt,
|
|
1879
|
+
type: en,
|
|
1880
|
+
properties: tn,
|
|
1881
|
+
required: nn
|
|
1882
|
+
}, Te = {
|
|
1617
1883
|
initialState: {
|
|
1618
1884
|
type: Object,
|
|
1619
1885
|
default: {
|
|
@@ -1623,142 +1889,142 @@ const nn = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-
|
|
|
1623
1889
|
uniqueColClassInEL: 2
|
|
1624
1890
|
}
|
|
1625
1891
|
}
|
|
1626
|
-
},
|
|
1892
|
+
}, rn = re(Te, on, zt, Xt), an = /* @__PURE__ */ ne({
|
|
1627
1893
|
name: "FResponseFormLayoutSetting",
|
|
1628
|
-
props:
|
|
1894
|
+
props: Te,
|
|
1629
1895
|
emits: ["change"],
|
|
1630
|
-
setup(
|
|
1631
|
-
const
|
|
1632
|
-
let
|
|
1633
|
-
const
|
|
1634
|
-
function
|
|
1635
|
-
const
|
|
1636
|
-
|
|
1896
|
+
setup(e, t) {
|
|
1897
|
+
const n = [1], o = [1, 2], r = [1, 2, 3, 4], m = [1, 2, 3, 4, 6];
|
|
1898
|
+
let y = [], w = [], h = [], a = [];
|
|
1899
|
+
const f = A(e.initialState), i = A(-1), s = A(-1), g = A(-1), c = A(-1);
|
|
1900
|
+
function p() {
|
|
1901
|
+
const C = "自定义", D = 12 / f.value.uniqueColClassInSM;
|
|
1902
|
+
n.includes(D) ? i.value = D : (y.push({
|
|
1637
1903
|
value: 0,
|
|
1638
|
-
name:
|
|
1639
|
-
}),
|
|
1640
|
-
const
|
|
1641
|
-
|
|
1904
|
+
name: C
|
|
1905
|
+
}), i.value = 0);
|
|
1906
|
+
const $ = 12 / f.value.uniqueColClassInMD;
|
|
1907
|
+
o.includes($) ? s.value = $ : (w.push({
|
|
1642
1908
|
value: 0,
|
|
1643
|
-
name:
|
|
1644
|
-
}),
|
|
1645
|
-
const O = 12 /
|
|
1646
|
-
|
|
1909
|
+
name: C
|
|
1910
|
+
}), s.value = 0);
|
|
1911
|
+
const O = 12 / f.value.uniqueColClassInLG;
|
|
1912
|
+
r.includes(O) ? g.value = O : (h.push({
|
|
1647
1913
|
value: 0,
|
|
1648
|
-
name:
|
|
1649
|
-
}),
|
|
1650
|
-
const
|
|
1651
|
-
|
|
1914
|
+
name: C
|
|
1915
|
+
}), g.value = 0);
|
|
1916
|
+
const B = 12 / f.value.uniqueColClassInEL;
|
|
1917
|
+
m.includes(B) ? c.value = B : (a.push({
|
|
1652
1918
|
value: 0,
|
|
1653
|
-
name:
|
|
1654
|
-
}),
|
|
1919
|
+
name: C
|
|
1920
|
+
}), c.value = 0), y = [...y], w = [...w], h = [...h], a = [...a];
|
|
1655
1921
|
}
|
|
1656
|
-
function
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
value:
|
|
1660
|
-
name:
|
|
1922
|
+
function v() {
|
|
1923
|
+
n.forEach((C) => {
|
|
1924
|
+
y.push({
|
|
1925
|
+
value: C,
|
|
1926
|
+
name: C + ""
|
|
1661
1927
|
});
|
|
1662
|
-
}),
|
|
1663
|
-
|
|
1664
|
-
value:
|
|
1665
|
-
name:
|
|
1928
|
+
}), o.forEach((C) => {
|
|
1929
|
+
w.push({
|
|
1930
|
+
value: C,
|
|
1931
|
+
name: C + ""
|
|
1666
1932
|
});
|
|
1667
|
-
}),
|
|
1668
|
-
|
|
1669
|
-
value:
|
|
1670
|
-
name:
|
|
1933
|
+
}), r.forEach((C) => {
|
|
1934
|
+
h.push({
|
|
1935
|
+
value: C,
|
|
1936
|
+
name: C + ""
|
|
1671
1937
|
});
|
|
1672
|
-
}),
|
|
1673
|
-
|
|
1674
|
-
value:
|
|
1675
|
-
name:
|
|
1938
|
+
}), m.forEach((C) => {
|
|
1939
|
+
a.push({
|
|
1940
|
+
value: C,
|
|
1941
|
+
name: C + ""
|
|
1676
1942
|
});
|
|
1677
1943
|
});
|
|
1678
1944
|
}
|
|
1679
|
-
function
|
|
1680
|
-
|
|
1681
|
-
|
|
1945
|
+
function b() {
|
|
1946
|
+
Qe.question("应用统一布局,将重置区域内部所有控件的宽度样式,确定应用?", "", () => {
|
|
1947
|
+
f.value.uniqueColClassInSM = i.value === 0 ? null : 12 / i.value, f.value.uniqueColClassInMD = s.value === 0 ? null : 12 / s.value, f.value.uniqueColClassInLG = g.value === 0 ? null : 12 / g.value, f.value.uniqueColClassInEL = c.value === 0 ? null : 12 / c.value, t.emit("change", f.value);
|
|
1682
1948
|
}, () => {
|
|
1683
1949
|
});
|
|
1684
1950
|
}
|
|
1685
|
-
return
|
|
1686
|
-
|
|
1687
|
-
}), () =>
|
|
1951
|
+
return ie(() => {
|
|
1952
|
+
v(), p();
|
|
1953
|
+
}), () => P("div", null, [P("div", {
|
|
1688
1954
|
class: "f-form-layout farris-form farris-form-controls-inline"
|
|
1689
|
-
}, [
|
|
1955
|
+
}, [P("div", {
|
|
1690
1956
|
class: "form-group farris-form-group screenGroup"
|
|
1691
|
-
}, [
|
|
1957
|
+
}, [P("span", {
|
|
1692
1958
|
class: "screenName"
|
|
1693
|
-
}, [
|
|
1959
|
+
}, [Q(" 小屏幕 ")]), P("div", {
|
|
1694
1960
|
class: "d-flex ml-2 screen-input"
|
|
1695
|
-
}, [
|
|
1696
|
-
data:
|
|
1961
|
+
}, [P(oe, {
|
|
1962
|
+
data: y,
|
|
1697
1963
|
idField: "value",
|
|
1698
1964
|
valueField: "value",
|
|
1699
1965
|
editable: !1,
|
|
1700
1966
|
enableClear: !1,
|
|
1701
|
-
modelValue:
|
|
1702
|
-
"onUpdate:modelValue": (
|
|
1703
|
-
}, null),
|
|
1967
|
+
modelValue: i.value,
|
|
1968
|
+
"onUpdate:modelValue": (C) => i.value = C
|
|
1969
|
+
}, null), P("span", {
|
|
1704
1970
|
class: "ml-2 columnText"
|
|
1705
|
-
}, [
|
|
1971
|
+
}, [Q("列")])])]), P("div", {
|
|
1706
1972
|
class: "form-group farris-form-group screenGroup"
|
|
1707
|
-
}, [
|
|
1973
|
+
}, [P("span", {
|
|
1708
1974
|
class: "screenName"
|
|
1709
|
-
}, [
|
|
1975
|
+
}, [Q("中等屏幕")]), P("div", {
|
|
1710
1976
|
class: "d-flex ml-2 screen-input"
|
|
1711
|
-
}, [
|
|
1712
|
-
data:
|
|
1977
|
+
}, [P(oe, {
|
|
1978
|
+
data: w,
|
|
1713
1979
|
idField: "value",
|
|
1714
1980
|
valueField: "value",
|
|
1715
1981
|
editable: !1,
|
|
1716
1982
|
enableClear: !1,
|
|
1717
|
-
modelValue:
|
|
1718
|
-
"onUpdate:modelValue": (
|
|
1719
|
-
}, null),
|
|
1983
|
+
modelValue: s.value,
|
|
1984
|
+
"onUpdate:modelValue": (C) => s.value = C
|
|
1985
|
+
}, null), P("span", {
|
|
1720
1986
|
class: "ml-2 columnText"
|
|
1721
|
-
}, [
|
|
1987
|
+
}, [Q("列")])])]), P("div", {
|
|
1722
1988
|
class: "form-group farris-form-group screenGroup"
|
|
1723
|
-
}, [
|
|
1989
|
+
}, [P("span", {
|
|
1724
1990
|
class: "screenName"
|
|
1725
|
-
}, [
|
|
1991
|
+
}, [Q("大屏幕")]), P("div", {
|
|
1726
1992
|
class: "d-flex ml-2 screen-input"
|
|
1727
|
-
}, [
|
|
1728
|
-
data:
|
|
1993
|
+
}, [P(oe, {
|
|
1994
|
+
data: h,
|
|
1729
1995
|
idField: "value",
|
|
1730
1996
|
valueField: "value",
|
|
1731
1997
|
editable: !1,
|
|
1732
1998
|
enableClear: !1,
|
|
1733
|
-
modelValue:
|
|
1734
|
-
"onUpdate:modelValue": (
|
|
1735
|
-
}, null),
|
|
1999
|
+
modelValue: g.value,
|
|
2000
|
+
"onUpdate:modelValue": (C) => g.value = C
|
|
2001
|
+
}, null), P("span", {
|
|
1736
2002
|
class: "ml-2 columnText"
|
|
1737
|
-
}, [
|
|
2003
|
+
}, [Q("列")])])]), P("div", {
|
|
1738
2004
|
class: "form-group farris-form-group screenGroup"
|
|
1739
|
-
}, [
|
|
2005
|
+
}, [P("span", {
|
|
1740
2006
|
class: "screenName"
|
|
1741
|
-
}, [
|
|
2007
|
+
}, [Q("极大屏幕")]), P("div", {
|
|
1742
2008
|
class: "d-flex ml-2 screen-input"
|
|
1743
|
-
}, [
|
|
1744
|
-
data:
|
|
2009
|
+
}, [P(oe, {
|
|
2010
|
+
data: a,
|
|
1745
2011
|
idField: "value",
|
|
1746
2012
|
valueField: "value",
|
|
1747
2013
|
editable: !1,
|
|
1748
2014
|
enableClear: !1,
|
|
1749
|
-
modelValue:
|
|
1750
|
-
"onUpdate:modelValue": (
|
|
1751
|
-
}, null),
|
|
2015
|
+
modelValue: c.value,
|
|
2016
|
+
"onUpdate:modelValue": (C) => c.value = C
|
|
2017
|
+
}, null), P("span", {
|
|
1752
2018
|
class: "ml-2 columnText"
|
|
1753
|
-
}, [
|
|
2019
|
+
}, [Q("列")])])])]), P("div", {
|
|
1754
2020
|
class: "applyBtn"
|
|
1755
|
-
}, [
|
|
2021
|
+
}, [P("button", {
|
|
1756
2022
|
class: "btn f-rt-btn btn-primary",
|
|
1757
2023
|
type: "button",
|
|
1758
|
-
onClick: () =>
|
|
1759
|
-
}, [
|
|
2024
|
+
onClick: () => b()
|
|
2025
|
+
}, [Q("应用")])])]);
|
|
1760
2026
|
}
|
|
1761
|
-
}),
|
|
2027
|
+
}), ln = "https://json-schema.org/draft/2020-12/schema", sn = "https://farris-design.gitee.io/response-form.schema.json", cn = "response-form", un = "A Farris Data Collection Component", pn = "object", dn = {
|
|
1762
2028
|
id: {
|
|
1763
2029
|
description: "The unique identifier for a form group",
|
|
1764
2030
|
type: "string"
|
|
@@ -1801,19 +2067,19 @@ const nn = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-
|
|
|
1801
2067
|
type: "boolean",
|
|
1802
2068
|
default: !0
|
|
1803
2069
|
}
|
|
1804
|
-
},
|
|
2070
|
+
}, mn = [
|
|
1805
2071
|
"id",
|
|
1806
2072
|
"type",
|
|
1807
2073
|
"contents"
|
|
1808
|
-
],
|
|
1809
|
-
$schema:
|
|
1810
|
-
$id:
|
|
1811
|
-
title:
|
|
1812
|
-
description:
|
|
1813
|
-
type:
|
|
1814
|
-
properties:
|
|
1815
|
-
required:
|
|
1816
|
-
},
|
|
2074
|
+
], fn = {
|
|
2075
|
+
$schema: ln,
|
|
2076
|
+
$id: sn,
|
|
2077
|
+
title: cn,
|
|
2078
|
+
description: un,
|
|
2079
|
+
type: pn,
|
|
2080
|
+
properties: dn,
|
|
2081
|
+
required: mn
|
|
2082
|
+
}, yn = "https://json-schema.org/draft/2020-12/schema", gn = "https://farris-design.gitee.io/form-group.schema.json", vn = "form-group", bn = "A Farris Input Component", hn = "object", Cn = {
|
|
1817
2083
|
id: {
|
|
1818
2084
|
description: "The unique identifier for a form group",
|
|
1819
2085
|
type: "string"
|
|
@@ -1888,42 +2154,40 @@ const nn = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-
|
|
|
1888
2154
|
type: "boolean",
|
|
1889
2155
|
default: !1
|
|
1890
2156
|
}
|
|
1891
|
-
},
|
|
2157
|
+
}, Fn = [
|
|
1892
2158
|
"id",
|
|
1893
2159
|
"type",
|
|
1894
2160
|
"editor"
|
|
1895
|
-
],
|
|
1896
|
-
$schema:
|
|
1897
|
-
$id:
|
|
1898
|
-
title:
|
|
1899
|
-
description:
|
|
1900
|
-
type:
|
|
1901
|
-
properties:
|
|
1902
|
-
required:
|
|
1903
|
-
},
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
2161
|
+
], Ie = {
|
|
2162
|
+
$schema: yn,
|
|
2163
|
+
$id: gn,
|
|
2164
|
+
title: vn,
|
|
2165
|
+
description: bn,
|
|
2166
|
+
type: hn,
|
|
2167
|
+
properties: Cn,
|
|
2168
|
+
required: Fn
|
|
2169
|
+
}, ke = re(Pe, fn, ue, _t), Ve = re(
|
|
2170
|
+
ve,
|
|
2171
|
+
Ie,
|
|
2172
|
+
ue,
|
|
1907
2173
|
void 0
|
|
1908
|
-
),
|
|
1909
|
-
Re,
|
|
2174
|
+
), wn = Ae(), Tn = re(
|
|
1910
2175
|
Ee,
|
|
1911
|
-
|
|
2176
|
+
Ie,
|
|
2177
|
+
ue,
|
|
1912
2178
|
void 0
|
|
1913
2179
|
);
|
|
1914
|
-
|
|
1915
|
-
|
|
2180
|
+
le.register = (e, t, n, o) => {
|
|
2181
|
+
e["form-group"] = De, t["form-group"] = Ve, e["response-form"] = $e, t["response-form"] = ke, e["form-input"] = Ne, t["form-input"] = Tn, o["form-group"] = { editorResolver: wn }, e["response-form-layout-setting"] = an, t["response-form-layout-setting"] = rn;
|
|
1916
2182
|
};
|
|
1917
|
-
|
|
1918
|
-
|
|
2183
|
+
le.registerDesigner = (e, t, n) => {
|
|
2184
|
+
e["form-group"] = Zt, t["form-group"] = Ve, e["response-form"] = le, t["response-form"] = ke;
|
|
1919
2185
|
};
|
|
1920
2186
|
export {
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
Pe as formPropsResolver,
|
|
1928
|
-
Ao as useDesignerRules
|
|
2187
|
+
le as FResponseFormDesign,
|
|
2188
|
+
le as default,
|
|
2189
|
+
wn as editorResolver,
|
|
2190
|
+
Ve as formGroupPropsResolver,
|
|
2191
|
+
Tn as formInputPropsResolver,
|
|
2192
|
+
ke as formPropsResolver
|
|
1929
2193
|
};
|