@farris/ui-vue 1.7.3 → 1.7.5
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 +3791 -2760
- 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-view/index.esm.js +1816 -1790
- 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 +2975 -2615
- 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 +427 -466
- 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 +2 -3
- 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-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 +427 -646
- 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/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 +1190 -850
- 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 -3863
- 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 +2447 -2221
- package/components/schema-selector/index.umd.cjs +7 -7
- 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 +760 -543
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +105 -104
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +320 -153
- 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 +5192 -4408
- package/designer/data-grid/index.umd.cjs +17 -10
- 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 +12665 -12117
- package/designer/farris-designer.all.umd.cjs +12 -12
- package/designer/list-view/index.esm.js +327 -327
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/modal/index.esm.js +29 -137
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +0 -1
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +9 -9
- 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 +2829 -2540
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +822 -464
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +68724 -67244
- package/farris.all.umd.cjs +92 -92
- 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-list/src/property-config/combo-list.property-config.d.ts +14 -2
- 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 +6 -1
- package/types/condition/index.d.ts +55 -0
- 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/{dynamic-form/src/component/form-control/form-control.component.d.ts → flow-canvas/src/components/flow-node-item.component.d.ts} +1 -1
- 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/layout.props.d.ts +1 -0
- package/types/list-nav/index.d.ts +5 -24
- package/types/list-nav/src/list-nav.props.d.ts +1 -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/popup-container.component.d.ts +3 -3
- 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 +1 -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-view/src/tree-view.props.d.ts +1 -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/layout/designer.d.ts +0 -32
- package/types/list-nav/designer.d.ts +0 -6
- 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
|
@@ -1,23 +1,97 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { resolveAppearance as
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
import { useGuid as
|
|
5
|
-
import { DgControl as
|
|
6
|
-
import { FNotifyService as
|
|
7
|
-
import { FTreeView as
|
|
8
|
-
import { FSchemaSelector as
|
|
9
|
-
import { F_MODAL_SERVICE_TOKEN as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { inject as X, ref as b, defineComponent as te, createVNode as n, onMounted as he, computed as K, createTextVNode as Y, Fragment as Ie, onBeforeMount as nn, reactive as Ge, withDirectives as He, resolveDirective as We, watch as me, mergeProps as rn, onUnmounted as cn, provide as Be } from "vue";
|
|
2
|
+
import { resolveAppearance as sn, createPropsResolver as on, schemaMap as Je, schemaResolverMap as un, propertyEffectMap as dn, propertyConfigSchemaMap as mn } from "../dynamic-resolver/index.esm.js";
|
|
3
|
+
import { cloneDeep as W } from "lodash-es";
|
|
4
|
+
import { useGuid as Qe, ControllerSchemaRepositorySymbol as fn, useThirdComponent as vn, isMobilePhone as hn } from "../common/index.esm.js";
|
|
5
|
+
import { DgControl as gn } from "../designer-canvas/index.esm.js";
|
|
6
|
+
import { FNotifyService as fe } from "../notify/index.esm.js";
|
|
7
|
+
import Cn, { FTreeView as pn } from "../tree-view/index.esm.js";
|
|
8
|
+
import bn, { FSchemaSelector as wn } from "../schema-selector/index.esm.js";
|
|
9
|
+
import { F_MODAL_SERVICE_TOKEN as Sn } from "../modal/index.esm.js";
|
|
10
|
+
import Fn from "../input-group/index.esm.js";
|
|
11
|
+
import tn from "../combo-list/index.esm.js";
|
|
12
|
+
import Ye from "../event-parameter/index.esm.js";
|
|
13
|
+
import { LocaleService as yn } from "../locale/index.esm.js";
|
|
14
|
+
import En from "../accordion/index.esm.js";
|
|
15
|
+
import Nn from "../avatar/index.esm.js";
|
|
16
|
+
import Pn from "../../designer/button-edit/index.esm.js";
|
|
17
|
+
import Mn from "../button-group/index.esm.js";
|
|
18
|
+
import Vn from "../calendar/index.esm.js";
|
|
19
|
+
import Ln from "../../designer/capsule/index.esm.js";
|
|
20
|
+
import Xe from "../../designer/checkbox/index.esm.js";
|
|
21
|
+
import Ze from "../../designer/checkbox-group/index.esm.js";
|
|
22
|
+
import xn from "../combo-tree/index.esm.js";
|
|
23
|
+
import Bn from "../component/index.esm.js";
|
|
24
|
+
import In from "../color-picker/index.esm.js";
|
|
25
|
+
import Tn from "../content-container/index.esm.js";
|
|
26
|
+
import kn from "../../designer/date-picker/index.esm.js";
|
|
27
|
+
import An from "../../designer/data-grid/index.esm.js";
|
|
28
|
+
import $n from "../dropdown/index.esm.js";
|
|
29
|
+
import On from "../../designer/dynamic-form/index.esm.js";
|
|
30
|
+
import Dn from "../events-editor/index.esm.js";
|
|
31
|
+
import Rn from "../filter-bar/index.esm.js";
|
|
32
|
+
import jn from "../field-selector/index.esm.js";
|
|
33
|
+
import Un from "../binding-selector/index.esm.js";
|
|
34
|
+
import qn from "../image-cropper/index.esm.js";
|
|
35
|
+
import Gn from "../../designer/input-group/index.esm.js";
|
|
36
|
+
import _n from "../layout/index.esm.js";
|
|
37
|
+
import zn from "../list-nav/index.esm.js";
|
|
38
|
+
import Hn from "../../designer/list-view/index.esm.js";
|
|
39
|
+
import Wn from "../lookup/index.esm.js";
|
|
40
|
+
import Kn from "../mapping-editor/index.esm.js";
|
|
41
|
+
import Jn from "../nav/index.esm.js";
|
|
42
|
+
import Qn from "../number-range/index.esm.js";
|
|
43
|
+
import Yn from "../../designer/number-spinner/index.esm.js";
|
|
44
|
+
import Xn from "../order/index.esm.js";
|
|
45
|
+
import Zn from "../page-header/index.esm.js";
|
|
46
|
+
import eo from "../page-footer/index.esm.js";
|
|
47
|
+
import no from "../pagination/index.esm.js";
|
|
48
|
+
import oo from "../progress/index.esm.js";
|
|
49
|
+
import to from "../query-solution/index.esm.js";
|
|
50
|
+
import ao from "../../designer/radio-group/index.esm.js";
|
|
51
|
+
import lo from "../../designer/rate/index.esm.js";
|
|
52
|
+
import ro from "../../designer/response-toolbar/index.esm.js";
|
|
53
|
+
import io from "../response-layout/index.esm.js";
|
|
54
|
+
import co from "../../designer/response-layout-editor/index.esm.js";
|
|
55
|
+
import so from "../search-box/index.esm.js";
|
|
56
|
+
import uo from "../../designer/section/index.esm.js";
|
|
57
|
+
import mo from "../smoke-detector/index.esm.js";
|
|
58
|
+
import fo from "../splitter/index.esm.js";
|
|
59
|
+
import vo from "../step/index.esm.js";
|
|
60
|
+
import ho from "../../designer/switch/index.esm.js";
|
|
61
|
+
import go from "../../designer/tabs/index.esm.js";
|
|
62
|
+
import Co from "../../designer/tags/index.esm.js";
|
|
63
|
+
import po from "../text/index.esm.js";
|
|
64
|
+
import bo from "../../designer/time-picker/index.esm.js";
|
|
65
|
+
import wo from "../transfer/index.esm.js";
|
|
66
|
+
import So from "../uploader/index.esm.js";
|
|
67
|
+
import Fo from "../verify-detail/index.esm.js";
|
|
68
|
+
import yo from "../video/index.esm.js";
|
|
69
|
+
import Eo from "../../designer/textarea/index.esm.js";
|
|
70
|
+
import No from "../../designer/tree-grid/index.esm.js";
|
|
71
|
+
import Po from "../filter-condition-editor/index.esm.js";
|
|
72
|
+
import Mo from "../fieldset/index.esm.js";
|
|
73
|
+
import Vo from "../sort-condition-editor/index.esm.js";
|
|
74
|
+
import Lo from "../menu-lookup/index.esm.js";
|
|
75
|
+
import xo from "../../designer/drawer/index.esm.js";
|
|
76
|
+
import Bo from "../json-editor/index.esm.js";
|
|
77
|
+
import Io from "../property-editor/index.esm.js";
|
|
78
|
+
import To from "../expression-editor/index.esm.js";
|
|
79
|
+
import ko from "../code-editor/index.esm.js";
|
|
80
|
+
import Ao from "../html-template/index.esm.js";
|
|
81
|
+
import $o from "../collection-property-editor/index.esm.js";
|
|
82
|
+
import Oo from "../../designer/modal/index.esm.js";
|
|
83
|
+
import Do from "../external-container/index.esm.js";
|
|
84
|
+
import Ro from "../language-textbox/index.esm.js";
|
|
85
|
+
import jo from "../image/index.esm.js";
|
|
86
|
+
import Uo from "../comment/index.esm.js";
|
|
87
|
+
import "../property-panel/index.esm.js";
|
|
88
|
+
const qo = /* @__PURE__ */ new Map([
|
|
89
|
+
["appearance", sn]
|
|
16
90
|
]);
|
|
17
|
-
function
|
|
18
|
-
return
|
|
91
|
+
function Go(e, E, g) {
|
|
92
|
+
return E;
|
|
19
93
|
}
|
|
20
|
-
const
|
|
94
|
+
const _o = "https://json-schema.org/draft/2020-12/schema", zo = "https://farris-design.gitee.io/events-editor.schema.json", Ho = "events-editor", Wo = "A Farris Component", Ko = "object", Jo = {
|
|
21
95
|
id: {
|
|
22
96
|
description: "The unique identifier for events-editor",
|
|
23
97
|
type: "string"
|
|
@@ -37,23 +111,23 @@ const sn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-
|
|
|
37
111
|
type: "function",
|
|
38
112
|
default: null
|
|
39
113
|
}
|
|
40
|
-
},
|
|
114
|
+
}, Qo = [
|
|
41
115
|
"id",
|
|
42
116
|
"type"
|
|
43
|
-
],
|
|
44
|
-
$schema:
|
|
45
|
-
$id:
|
|
46
|
-
title:
|
|
47
|
-
description:
|
|
48
|
-
type:
|
|
49
|
-
properties:
|
|
50
|
-
required:
|
|
51
|
-
},
|
|
52
|
-
title:
|
|
53
|
-
description:
|
|
54
|
-
type:
|
|
55
|
-
categories:
|
|
56
|
-
},
|
|
117
|
+
], Yo = {
|
|
118
|
+
$schema: _o,
|
|
119
|
+
$id: zo,
|
|
120
|
+
title: Ho,
|
|
121
|
+
description: Wo,
|
|
122
|
+
type: Ko,
|
|
123
|
+
properties: Jo,
|
|
124
|
+
required: Qo
|
|
125
|
+
}, Xo = "events-editor", Zo = "A Farris Component", et = "object", nt = {}, ot = {
|
|
126
|
+
title: Xo,
|
|
127
|
+
description: Zo,
|
|
128
|
+
type: et,
|
|
129
|
+
categories: nt
|
|
130
|
+
}, en = [
|
|
57
131
|
{
|
|
58
132
|
label: "pageChange",
|
|
59
133
|
name: "MockMock切换页码"
|
|
@@ -74,7 +148,7 @@ const sn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-
|
|
|
74
148
|
label: "onDeleteClicked",
|
|
75
149
|
name: "Mock操作列点击删除"
|
|
76
150
|
}
|
|
77
|
-
],
|
|
151
|
+
], tt = {
|
|
78
152
|
propertyID: "data-grid-component-viewmodel",
|
|
79
153
|
propertyType: "events",
|
|
80
154
|
/** 内置构件显示的命令列表 */
|
|
@@ -138,7 +212,7 @@ const sn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-
|
|
|
138
212
|
}
|
|
139
213
|
],
|
|
140
214
|
/** (事件设定)可绑定事件默认列表; */
|
|
141
|
-
events:
|
|
215
|
+
events: en,
|
|
142
216
|
/** 已绑定的事件(拼接已有的参数值,拼接当前事件->待集成-从dom结构中取值,事件及对应的字符串) */
|
|
143
217
|
boundEventsList: [],
|
|
144
218
|
/** 视图模型已有命令 */
|
|
@@ -156,21 +230,21 @@ const sn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-
|
|
|
156
230
|
/** 初始为空,用于存储用户点击「导入新命令」的控制器值 */
|
|
157
231
|
newController: [],
|
|
158
232
|
isAddControllerMethod: !1,
|
|
159
|
-
getEventList: () => ({ events:
|
|
160
|
-
},
|
|
161
|
-
initialData: { type: Object, default:
|
|
233
|
+
getEventList: () => ({ events: en, boundEventsList: [] })
|
|
234
|
+
}, an = {
|
|
235
|
+
initialData: { type: Object, default: tt },
|
|
162
236
|
viewSourceHandle: { type: Function, default: () => {
|
|
163
237
|
} }
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
238
|
+
}, at = on(
|
|
239
|
+
an,
|
|
240
|
+
Yo,
|
|
241
|
+
qo,
|
|
242
|
+
Go,
|
|
243
|
+
ot
|
|
170
244
|
);
|
|
171
|
-
function
|
|
172
|
-
function e(
|
|
173
|
-
const
|
|
245
|
+
function ln() {
|
|
246
|
+
function e(g, h) {
|
|
247
|
+
const a = [
|
|
174
248
|
{
|
|
175
249
|
controllerId: "45be24f9-c1f7-44f7-b447-fe2ada458a61",
|
|
176
250
|
controllerLabel: "AdvancedListCardController",
|
|
@@ -448,148 +522,148 @@ function Je() {
|
|
|
448
522
|
]
|
|
449
523
|
}
|
|
450
524
|
];
|
|
451
|
-
let
|
|
452
|
-
const
|
|
453
|
-
return
|
|
525
|
+
let d = -1;
|
|
526
|
+
const F = a.findIndex((C) => g === C.controllerId);
|
|
527
|
+
return F !== -1 && (d = a[F].commands.findIndex((C) => h === C.handlerName)), d !== -1;
|
|
454
528
|
}
|
|
455
|
-
function
|
|
456
|
-
const
|
|
457
|
-
return
|
|
529
|
+
function E(g, h, a) {
|
|
530
|
+
const d = e(g.controllerName.id, h.handlerName);
|
|
531
|
+
return a.componentLists.length !== 0 && d && (h.hasPath = !0, h.targetComponent = h.targetComponent || a.componentLists[0].componentId, h.componentLists = W(a.componentLists)), h;
|
|
458
532
|
}
|
|
459
|
-
return { isContextDependent: e, setComponentLists:
|
|
533
|
+
return { isContextDependent: e, setComponentLists: E };
|
|
460
534
|
}
|
|
461
|
-
var
|
|
462
|
-
function
|
|
463
|
-
const
|
|
464
|
-
function
|
|
465
|
-
var
|
|
466
|
-
let
|
|
467
|
-
switch (
|
|
535
|
+
var de = /* @__PURE__ */ ((e) => (e.Frame = "frame", e.dataGrid = "data-grid", e.listView = "list-view", e.form = "form", e.uploader = "uploader", e.calendar = "calendar", e.page = "page", e))(de || {});
|
|
536
|
+
function lt(e, E) {
|
|
537
|
+
const g = X("designerContext"), h = g && g.dgControl ? g.dgControl : gn, a = b(""), d = b("");
|
|
538
|
+
function F(l) {
|
|
539
|
+
var c, S, T, t;
|
|
540
|
+
let v = "controlIcon fd-i-Family ", f = "";
|
|
541
|
+
switch (l == null ? void 0 : l.type) {
|
|
468
542
|
case "form-group": {
|
|
469
|
-
|
|
543
|
+
f = ((c = h[l.type]) == null ? void 0 : c.icon) || ((S = l.editor) == null ? void 0 : S.type) || "", (T = h[l.editor.type]) != null && T.icon && (f = h[l.editor.type].icon);
|
|
470
544
|
break;
|
|
471
545
|
}
|
|
472
546
|
default:
|
|
473
|
-
|
|
547
|
+
f = ((t = h[l.type]) == null ? void 0 : t.icon) || l.type;
|
|
474
548
|
}
|
|
475
|
-
const
|
|
476
|
-
return
|
|
549
|
+
const u = `fd_pc-${f}`;
|
|
550
|
+
return v += u, v;
|
|
477
551
|
}
|
|
478
|
-
function
|
|
479
|
-
var
|
|
480
|
-
let
|
|
481
|
-
const
|
|
482
|
-
if ((
|
|
483
|
-
const
|
|
484
|
-
|
|
552
|
+
function C(l, v) {
|
|
553
|
+
var c;
|
|
554
|
+
let f = l.id;
|
|
555
|
+
const u = v == null ? void 0 : v.contents;
|
|
556
|
+
if ((v == null ? void 0 : v.type) === "splitter" && u && u.length === 2) {
|
|
557
|
+
const S = v.direction !== "column";
|
|
558
|
+
l.id === ((c = u[0]) == null ? void 0 : c.id) ? f = S ? "左侧区域" : "上方区域" : f = S ? "右侧区域" : "下方区域";
|
|
485
559
|
}
|
|
486
|
-
return
|
|
560
|
+
return f;
|
|
487
561
|
}
|
|
488
|
-
function
|
|
489
|
-
if (
|
|
562
|
+
function $(l) {
|
|
563
|
+
if (l.isLikeCardContainer)
|
|
490
564
|
return "区块";
|
|
491
|
-
const
|
|
492
|
-
return
|
|
565
|
+
const v = l.appearance && l.appearance.class || "", f = v.split(" ");
|
|
566
|
+
return l.id === "page-header" && v && v === "f-page-header" ? "页头" : f.includes("f-page-header-base") ? "页头容器" : f.includes("f-page-header-extend") ? "页头扩展容器" : f.includes("f-title") ? "标题容器" : f.includes("f-page") ? "根容器" : f.includes("f-page-main") ? "内容区域" : f.includes("f-scrollspy-content") && l.isScrollspyContainer ? "滚动监听容器" : f.includes("f-grid-is-sub") ? "表格容器" : f.includes("f-filter-container") ? "筛选条容器" : "容器";
|
|
493
567
|
}
|
|
494
|
-
function
|
|
495
|
-
const { componentType:
|
|
496
|
-
switch (
|
|
497
|
-
case
|
|
568
|
+
function j(l) {
|
|
569
|
+
const { componentType: v } = l;
|
|
570
|
+
switch (v) {
|
|
571
|
+
case de.Frame:
|
|
498
572
|
return "根组件";
|
|
499
|
-
case
|
|
500
|
-
return (e == null ? void 0 : e.formSchemaUtils.selectNode(
|
|
501
|
-
case
|
|
573
|
+
case de.dataGrid:
|
|
574
|
+
return (e == null ? void 0 : e.formSchemaUtils.selectNode(l, (u) => u.type === (h["tree-grid"] && h["tree-grid"].type))) ? "树表格组件" : "表格组件";
|
|
575
|
+
case de.uploader:
|
|
502
576
|
return "附件组件";
|
|
503
|
-
case
|
|
577
|
+
case de.listView:
|
|
504
578
|
return "列表视图组件";
|
|
505
|
-
case
|
|
579
|
+
case de.form:
|
|
506
580
|
return "卡片组件";
|
|
507
|
-
case
|
|
581
|
+
case de.calendar:
|
|
508
582
|
return "日历组件";
|
|
509
|
-
case
|
|
510
|
-
return
|
|
583
|
+
case de.page:
|
|
584
|
+
return l.name || "页面";
|
|
511
585
|
default:
|
|
512
586
|
return "组件";
|
|
513
587
|
}
|
|
514
588
|
}
|
|
515
|
-
function
|
|
516
|
-
const
|
|
517
|
-
if (
|
|
518
|
-
return
|
|
519
|
-
switch (
|
|
589
|
+
function w(l, v) {
|
|
590
|
+
const f = l.name || l.text || l.label || l.title || l.mainTitle;
|
|
591
|
+
if (l.type !== "component" && f && typeof f == "string")
|
|
592
|
+
return f.trim();
|
|
593
|
+
switch (l.type) {
|
|
520
594
|
case "content-container":
|
|
521
|
-
return
|
|
595
|
+
return $(l);
|
|
522
596
|
case "splitter-pane":
|
|
523
|
-
return
|
|
597
|
+
return C(l, v);
|
|
524
598
|
case "component":
|
|
525
|
-
return
|
|
599
|
+
return j(l);
|
|
526
600
|
default:
|
|
527
|
-
return
|
|
601
|
+
return h[l.type] && h[l.type].name || l.id;
|
|
528
602
|
}
|
|
529
603
|
}
|
|
530
|
-
function P(
|
|
531
|
-
const
|
|
532
|
-
if (!
|
|
604
|
+
function P(l, v) {
|
|
605
|
+
const f = l.length ? l[0] : null;
|
|
606
|
+
if (!f)
|
|
533
607
|
return;
|
|
534
|
-
|
|
535
|
-
const
|
|
536
|
-
|
|
608
|
+
d.value = "", a.value = f.originalId;
|
|
609
|
+
const u = f ? `${f.originalId}-design-item` : "", c = document.getElementById(u);
|
|
610
|
+
c && c.click(), E.emit("selectionChanged", f);
|
|
537
611
|
}
|
|
538
|
-
function
|
|
539
|
-
if (!
|
|
612
|
+
function p(l) {
|
|
613
|
+
if (!l)
|
|
540
614
|
return;
|
|
541
|
-
const
|
|
542
|
-
|
|
615
|
+
const v = `${l}-design-item`, f = document.getElementById(v);
|
|
616
|
+
f && f.click();
|
|
543
617
|
}
|
|
544
|
-
return { getIcon:
|
|
618
|
+
return { getIcon: F, getTitle: w, onChanged: P, currentSelectedNodeId: a, currentSelectedOutsideNodeId: d, triggerOutsideClick: p };
|
|
545
619
|
}
|
|
546
|
-
function
|
|
547
|
-
const { getIcon:
|
|
548
|
-
function
|
|
549
|
-
var
|
|
550
|
-
const
|
|
551
|
-
|
|
552
|
-
}
|
|
553
|
-
function
|
|
554
|
-
return
|
|
555
|
-
if (
|
|
556
|
-
|
|
620
|
+
function rt(e, E) {
|
|
621
|
+
const { getIcon: g, getTitle: h } = E;
|
|
622
|
+
function a(w, P, p, l, v) {
|
|
623
|
+
var u;
|
|
624
|
+
const f = (u = e.data.module) == null ? void 0 : u.components.find((c) => c.id === w.component);
|
|
625
|
+
f && d([f], P, p, l, v);
|
|
626
|
+
}
|
|
627
|
+
function d(w, P, p, l, v) {
|
|
628
|
+
return w.forEach((f) => {
|
|
629
|
+
if (f.type === "component" && (v = f.id), f.type === "component-ref") {
|
|
630
|
+
a(f, P, p, l, v);
|
|
557
631
|
return;
|
|
558
632
|
}
|
|
559
|
-
const
|
|
560
|
-
originalId:
|
|
561
|
-
layer:
|
|
562
|
-
originalParent:
|
|
563
|
-
componentId:
|
|
564
|
-
name:
|
|
565
|
-
type:
|
|
566
|
-
controlIcon:
|
|
567
|
-
rawSchema:
|
|
633
|
+
const u = {
|
|
634
|
+
originalId: f.id,
|
|
635
|
+
layer: p,
|
|
636
|
+
originalParent: l == null ? void 0 : l.id,
|
|
637
|
+
componentId: v,
|
|
638
|
+
name: h(f, l),
|
|
639
|
+
type: f.type,
|
|
640
|
+
controlIcon: g(f),
|
|
641
|
+
rawSchema: f
|
|
568
642
|
};
|
|
569
|
-
P.push(
|
|
643
|
+
P.push(W(u)), (f.contents || f.buttons) && d(f.contents || f.buttons, P, p + 1, f, v);
|
|
570
644
|
}), P;
|
|
571
645
|
}
|
|
572
|
-
function
|
|
573
|
-
const P = [],
|
|
574
|
-
|
|
575
|
-
let
|
|
576
|
-
for (;
|
|
577
|
-
const
|
|
578
|
-
|
|
646
|
+
function F(w) {
|
|
647
|
+
const P = [], p = w.find((u) => u.layer === 0);
|
|
648
|
+
w = w.filter((u) => u.layer !== 0), P.push(p);
|
|
649
|
+
let l = p.originalId, v = 0, f = 1e3;
|
|
650
|
+
for (; w.length !== 0 || f === 0; ) {
|
|
651
|
+
const u = w.find((c) => c.originalParent === l);
|
|
652
|
+
u ? (P.push(u), l = u.originalId, w = w.filter((c) => c.originalId !== l), v = 0) : (v -= 1, l = P.slice(v)[0].originalId), f -= 1;
|
|
579
653
|
}
|
|
580
654
|
return P;
|
|
581
655
|
}
|
|
582
|
-
function w
|
|
583
|
-
return
|
|
584
|
-
P.id = (
|
|
585
|
-
}),
|
|
586
|
-
var
|
|
587
|
-
P.parent = ((
|
|
588
|
-
}),
|
|
589
|
-
P.hasChildren =
|
|
590
|
-
}),
|
|
591
|
-
}
|
|
592
|
-
function
|
|
656
|
+
function C(w) {
|
|
657
|
+
return w.forEach((P, p) => {
|
|
658
|
+
P.id = (p + 1).toString();
|
|
659
|
+
}), w.forEach((P) => {
|
|
660
|
+
var p;
|
|
661
|
+
P.parent = ((p = w.find((l) => l.originalId === P.originalParent)) == null ? void 0 : p.id) || "";
|
|
662
|
+
}), w.forEach((P) => {
|
|
663
|
+
P.hasChildren = w.findIndex((p) => p.parent === P.id) > 0;
|
|
664
|
+
}), w;
|
|
665
|
+
}
|
|
666
|
+
function $(w) {
|
|
593
667
|
const P = {
|
|
594
668
|
originalId: e.data.module.id,
|
|
595
669
|
layer: 0,
|
|
@@ -598,151 +672,151 @@ function yn(e, B) {
|
|
|
598
672
|
type: "module",
|
|
599
673
|
controlIcon: "controlIcon fd-i-Family fd_pc-module",
|
|
600
674
|
rawSchema: e.data.module
|
|
601
|
-
},
|
|
602
|
-
return
|
|
603
|
-
|
|
604
|
-
}),
|
|
605
|
-
}
|
|
606
|
-
function
|
|
607
|
-
const
|
|
608
|
-
if (!
|
|
675
|
+
}, p = [];
|
|
676
|
+
return w.forEach((l) => {
|
|
677
|
+
l[0].originalParent = P.originalId, p.push(...l);
|
|
678
|
+
}), p.unshift(P), p;
|
|
679
|
+
}
|
|
680
|
+
function j() {
|
|
681
|
+
const w = e.data.module ? b(e.data.module.components) : b([e.data]);
|
|
682
|
+
if (!w.value)
|
|
609
683
|
return;
|
|
610
684
|
const P = [];
|
|
611
|
-
|
|
612
|
-
if (
|
|
613
|
-
const
|
|
614
|
-
|
|
615
|
-
const
|
|
616
|
-
P.push(
|
|
685
|
+
w.value.forEach((f) => {
|
|
686
|
+
if (f) {
|
|
687
|
+
const u = [];
|
|
688
|
+
u.push(f);
|
|
689
|
+
const T = d(u, [], 1, null, f.id);
|
|
690
|
+
P.push(T);
|
|
617
691
|
}
|
|
618
692
|
});
|
|
619
|
-
const
|
|
620
|
-
return
|
|
693
|
+
const p = $(P), l = F(p);
|
|
694
|
+
return C(l);
|
|
621
695
|
}
|
|
622
|
-
return { getData:
|
|
696
|
+
return { getData: j };
|
|
623
697
|
}
|
|
624
|
-
function
|
|
625
|
-
const
|
|
626
|
-
function
|
|
627
|
-
var t,
|
|
698
|
+
function be(e) {
|
|
699
|
+
const E = X("sourceOutlineData") || [], g = b(), h = b(!1), a = b([]), d = b();
|
|
700
|
+
function F(u, c, S, T) {
|
|
701
|
+
var t, _, H, R;
|
|
628
702
|
return {
|
|
629
|
-
id:
|
|
630
|
-
source:
|
|
631
|
-
formId: (t =
|
|
632
|
-
formCode: (
|
|
633
|
-
componentId: (
|
|
634
|
-
externalContainerId: (
|
|
635
|
-
event:
|
|
703
|
+
id: Qe().guid(),
|
|
704
|
+
source: T || {
|
|
705
|
+
formId: (t = u.sourceCommunication) == null ? void 0 : t.formId,
|
|
706
|
+
formCode: (_ = u.sourceCommunication) == null ? void 0 : _.formCode,
|
|
707
|
+
componentId: (H = u.sourceCommunication) == null ? void 0 : H.componentId,
|
|
708
|
+
externalContainerId: (R = u.sourceCommunication) == null ? void 0 : R.externalContainerId,
|
|
709
|
+
event: c || "onCommunication"
|
|
636
710
|
},
|
|
637
711
|
target: {
|
|
638
|
-
formId: (
|
|
639
|
-
formCode: (
|
|
640
|
-
externalContainerId: (
|
|
641
|
-
commandCode: (
|
|
642
|
-
commandViewmodelId: (
|
|
712
|
+
formId: (S == null ? void 0 : S.formId) || "",
|
|
713
|
+
formCode: (S == null ? void 0 : S.formCode) || "",
|
|
714
|
+
externalContainerId: (S == null ? void 0 : S.externalContainerId) || "",
|
|
715
|
+
commandCode: (S == null ? void 0 : S.commandCode) || "",
|
|
716
|
+
commandViewmodelId: (S == null ? void 0 : S.commandViewmodelId) || ""
|
|
643
717
|
},
|
|
644
718
|
paramMappings: []
|
|
645
719
|
};
|
|
646
720
|
}
|
|
647
|
-
function
|
|
648
|
-
var
|
|
649
|
-
(
|
|
650
|
-
var t,
|
|
651
|
-
if (
|
|
652
|
-
const
|
|
653
|
-
|
|
721
|
+
function C(u) {
|
|
722
|
+
var c, S;
|
|
723
|
+
(c = u == null ? void 0 : u.communication) != null && c.length && ((S = u == null ? void 0 : u.communication) == null || S.map((T) => {
|
|
724
|
+
var t, _;
|
|
725
|
+
if (T != null && T.id && !((t = T == null ? void 0 : T.source) != null && t.componentId)) {
|
|
726
|
+
const H = (_ = e.getFormSchema().module.communications) == null ? void 0 : _.find((R) => R.id === (T == null ? void 0 : T.id));
|
|
727
|
+
H && Object.assign(T, H);
|
|
654
728
|
}
|
|
655
729
|
}));
|
|
656
730
|
}
|
|
657
|
-
function
|
|
658
|
-
const
|
|
659
|
-
|
|
660
|
-
const
|
|
661
|
-
|
|
731
|
+
function $(u) {
|
|
732
|
+
const c = e.getFormSchema(), { communications: S } = c.module;
|
|
733
|
+
S || (c.module.communications = []);
|
|
734
|
+
const T = c.module.communications.findIndex((t) => t.id === u.id);
|
|
735
|
+
T === -1 ? c.module.communications.push(u) : Object.assign(c.module.communications[T], u);
|
|
662
736
|
}
|
|
663
|
-
function
|
|
664
|
-
var
|
|
665
|
-
if ((
|
|
666
|
-
const
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
}),
|
|
737
|
+
function j(u) {
|
|
738
|
+
var c;
|
|
739
|
+
if ((c = u == null ? void 0 : u.communication) != null && c.length) {
|
|
740
|
+
const S = e.getFormSchema();
|
|
741
|
+
u.communication.map((T) => {
|
|
742
|
+
S.module.communications && T && (S.module.communications = S.module.communications.filter((t) => t.id !== T.id));
|
|
743
|
+
}), u.communication = [];
|
|
670
744
|
}
|
|
671
745
|
}
|
|
672
|
-
function
|
|
673
|
-
var
|
|
674
|
-
const
|
|
675
|
-
|
|
746
|
+
function w(u) {
|
|
747
|
+
var S;
|
|
748
|
+
const c = e.getFormSchema();
|
|
749
|
+
u && ((S = c.module.communications) != null && S.length) && (c.module.communications = c.module.communications.filter((T) => T.id !== u));
|
|
676
750
|
}
|
|
677
|
-
function P(
|
|
678
|
-
const
|
|
751
|
+
function P(u, c, S) {
|
|
752
|
+
const T = lt(u, c), t = e.externalFormSchema.get(S);
|
|
679
753
|
if (t != null && t.content) {
|
|
680
|
-
const
|
|
681
|
-
return
|
|
754
|
+
const _ = { data: t.content }, { getData: H } = rt(_, T);
|
|
755
|
+
return H();
|
|
682
756
|
}
|
|
683
757
|
return [];
|
|
684
758
|
}
|
|
685
|
-
function
|
|
686
|
-
var
|
|
687
|
-
if (!((
|
|
688
|
-
|
|
759
|
+
function p(u) {
|
|
760
|
+
var S;
|
|
761
|
+
if (!((S = u == null ? void 0 : u.source) != null && S.componentId)) {
|
|
762
|
+
h.value = !1;
|
|
689
763
|
return;
|
|
690
764
|
}
|
|
691
|
-
const
|
|
692
|
-
|
|
765
|
+
const c = E.find((T) => T.originalId === u.source.componentId);
|
|
766
|
+
c ? (h.value = !1, g.value = c) : (h.value = !0, g.value = { id: u.source.componentId });
|
|
693
767
|
}
|
|
694
|
-
function
|
|
695
|
-
var t,
|
|
696
|
-
|
|
697
|
-
const
|
|
698
|
-
if (!
|
|
699
|
-
|
|
768
|
+
function l(u) {
|
|
769
|
+
var t, _, H, R;
|
|
770
|
+
a.value = [];
|
|
771
|
+
const c = (t = g.value) == null ? void 0 : t.rawSchema;
|
|
772
|
+
if (!c) {
|
|
773
|
+
d.value = null;
|
|
700
774
|
return;
|
|
701
775
|
}
|
|
702
|
-
const
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
}), (
|
|
706
|
-
var
|
|
707
|
-
return
|
|
776
|
+
const S = c.type === "form-group" && c.editor ? c.editor.type : c.type, T = (_ = Je[S]) == null ? void 0 : _.events;
|
|
777
|
+
T && Object.keys(T).forEach((y) => {
|
|
778
|
+
a.value.push({ eventCode: y, eventName: T[y] });
|
|
779
|
+
}), (H = u.source) != null && H.event && ((R = a.value) != null && R.length) && (d.value = a.value.find((y) => {
|
|
780
|
+
var A;
|
|
781
|
+
return y.eventCode === ((A = u.source) == null ? void 0 : A.event);
|
|
708
782
|
}));
|
|
709
783
|
}
|
|
710
|
-
function
|
|
711
|
-
var
|
|
712
|
-
if (!(
|
|
784
|
+
function v(u) {
|
|
785
|
+
var T, t, _, H, R, y, A, i;
|
|
786
|
+
if (!(u != null && u.length))
|
|
713
787
|
return;
|
|
714
|
-
|
|
715
|
-
let
|
|
716
|
-
return
|
|
717
|
-
${(
|
|
788
|
+
p(u[0]), l(u[0]);
|
|
789
|
+
let c = "", S = "";
|
|
790
|
+
return h.value ? c = `${((T = u[0].source) == null ? void 0 : T.componentId) || ""}-${((t = u[0].source) == null ? void 0 : t.event) || ""}` : (c = (_ = g.value) == null ? void 0 : _.name, c && ((H = d.value) != null && H.eventName) && (c += `-${(R = d.value) == null ? void 0 : R.eventName}`), S = `${(y = g.value) == null ? void 0 : y.name} (${(A = g.value) == null ? void 0 : A.originalId})`, S = `${S}
|
|
791
|
+
${(i = d.value) == null ? void 0 : i.eventName} (${d.value.eventCode})`), { title: c, titleTip: S, isControlInvalid: h.value };
|
|
718
792
|
}
|
|
719
|
-
function
|
|
720
|
-
var
|
|
721
|
-
if ((
|
|
722
|
-
const
|
|
723
|
-
return
|
|
793
|
+
function f(u) {
|
|
794
|
+
var c;
|
|
795
|
+
if ((c = u == null ? void 0 : u.communication) != null && c.length) {
|
|
796
|
+
const S = u == null ? void 0 : u.communication[0];
|
|
797
|
+
return S == null ? void 0 : S.source;
|
|
724
798
|
}
|
|
725
799
|
}
|
|
726
800
|
return {
|
|
727
|
-
createNewCommunication:
|
|
728
|
-
resolveCommunication:
|
|
729
|
-
clearAllCommunication:
|
|
730
|
-
clearCommunicationById:
|
|
731
|
-
saveCommunication:
|
|
801
|
+
createNewCommunication: F,
|
|
802
|
+
resolveCommunication: C,
|
|
803
|
+
clearAllCommunication: j,
|
|
804
|
+
clearCommunicationById: w,
|
|
805
|
+
saveCommunication: $,
|
|
732
806
|
assembleSourceOutline: P,
|
|
733
|
-
resolveSourceControlEventTitle:
|
|
734
|
-
resolveCommunicationSource:
|
|
807
|
+
resolveSourceControlEventTitle: v,
|
|
808
|
+
resolveCommunicationSource: f
|
|
735
809
|
};
|
|
736
810
|
}
|
|
737
|
-
function
|
|
738
|
-
const
|
|
739
|
-
function
|
|
740
|
-
var
|
|
811
|
+
function it(e, E, g) {
|
|
812
|
+
const h = b([]), { boundEvents: a, unBoundEvent: d } = E;
|
|
813
|
+
function F(p) {
|
|
814
|
+
var v, f;
|
|
741
815
|
return {
|
|
742
816
|
/** 当前事件名称及label */
|
|
743
817
|
event: {
|
|
744
|
-
label: (
|
|
745
|
-
name: (
|
|
818
|
+
label: (v = p.boundEvents) == null ? void 0 : v.label,
|
|
819
|
+
name: (f = p.boundEvents) == null ? void 0 : f.name
|
|
746
820
|
},
|
|
747
821
|
/** 控制组件的展示及顺序:
|
|
748
822
|
* 0:事件下拉框
|
|
@@ -757,252 +831,252 @@ function Mn(e, B, N) {
|
|
|
757
831
|
showSwitchNumber: 2
|
|
758
832
|
}],
|
|
759
833
|
/** 方法列表 */
|
|
760
|
-
command:
|
|
834
|
+
command: W(p.command),
|
|
761
835
|
/** 当前的控制器 */
|
|
762
|
-
controller:
|
|
836
|
+
controller: W(p.controller),
|
|
763
837
|
/** 通讯 */
|
|
764
|
-
communication:
|
|
838
|
+
communication: p.communication
|
|
765
839
|
};
|
|
766
840
|
}
|
|
767
|
-
function
|
|
768
|
-
var
|
|
769
|
-
|
|
841
|
+
function C() {
|
|
842
|
+
var p;
|
|
843
|
+
h.value = (p = a.value) == null ? void 0 : p.map((l) => F(l));
|
|
770
844
|
}
|
|
771
|
-
function
|
|
772
|
-
const
|
|
773
|
-
boundEvents:
|
|
845
|
+
function $(p, l) {
|
|
846
|
+
const f = F({
|
|
847
|
+
boundEvents: p,
|
|
774
848
|
command: null,
|
|
775
849
|
controller: { id: "", name: "", label: "" },
|
|
776
|
-
communication:
|
|
850
|
+
communication: l ? [l] : []
|
|
777
851
|
});
|
|
778
|
-
if (
|
|
779
|
-
|
|
852
|
+
if (l) {
|
|
853
|
+
f.showSwitch[0].showSwitchNumber = 2, f.showSwitch[0].showSection[2][2] = !1, f.showSwitch[0].showSection[2][3] = !1, f.needSelectCommunicationCommand = !0, h.value.unshift(f);
|
|
780
854
|
return;
|
|
781
855
|
}
|
|
782
|
-
|
|
856
|
+
p && (f.showSwitch[0].showSwitchNumber = 1, f.showSwitch[0].showSection[2][3] = !0, h.value.unshift(f));
|
|
783
857
|
}
|
|
784
|
-
function
|
|
785
|
-
var
|
|
786
|
-
(
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
}),
|
|
858
|
+
function j() {
|
|
859
|
+
var p;
|
|
860
|
+
(p = h.value) == null || p.forEach((l) => {
|
|
861
|
+
l.showSwitch.forEach((v) => {
|
|
862
|
+
v.showSection[2][3] = !1;
|
|
863
|
+
}), l.shouldShowCommunicationPanel = !1;
|
|
790
864
|
});
|
|
791
865
|
}
|
|
792
|
-
function
|
|
793
|
-
|
|
794
|
-
|
|
866
|
+
function w(p) {
|
|
867
|
+
h.value[p].showSwitch.forEach((l) => {
|
|
868
|
+
l.showSection[2][3] = !l.showSection[2][3];
|
|
795
869
|
});
|
|
796
870
|
}
|
|
797
|
-
function P(
|
|
798
|
-
if (
|
|
799
|
-
const
|
|
800
|
-
|
|
801
|
-
const { clearAllCommunication:
|
|
802
|
-
|
|
871
|
+
function P(p) {
|
|
872
|
+
if (p >= 0 && p <= h.value.length - 1) {
|
|
873
|
+
const l = h.value[p];
|
|
874
|
+
d(l.event), h.value.splice(p, 1);
|
|
875
|
+
const { clearAllCommunication: v } = be(e);
|
|
876
|
+
v(l);
|
|
803
877
|
}
|
|
804
878
|
}
|
|
805
879
|
return {
|
|
806
|
-
addNewInteraction:
|
|
807
|
-
collapseInteractions:
|
|
880
|
+
addNewInteraction: $,
|
|
881
|
+
collapseInteractions: j,
|
|
808
882
|
deleteInteracton: P,
|
|
809
|
-
toggleMethodInInteraction:
|
|
810
|
-
interactions:
|
|
811
|
-
loadInteractions:
|
|
883
|
+
toggleMethodInInteraction: w,
|
|
884
|
+
interactions: h,
|
|
885
|
+
loadInteractions: C
|
|
812
886
|
};
|
|
813
887
|
}
|
|
814
|
-
function
|
|
815
|
-
const
|
|
816
|
-
function
|
|
817
|
-
const { allComponentList:
|
|
818
|
-
e.value.componentLists.length && e.value.viewModel && e.value.viewModel.forEach((
|
|
819
|
-
|
|
820
|
-
if (
|
|
821
|
-
const
|
|
822
|
-
if ((
|
|
823
|
-
|
|
888
|
+
function ct(e) {
|
|
889
|
+
const E = b([]), g = b([]), h = b([]), { isContextDependent: a } = ln();
|
|
890
|
+
function d() {
|
|
891
|
+
const { allComponentList: p } = e.value;
|
|
892
|
+
e.value.componentLists.length && e.value.viewModel && e.value.viewModel.forEach((l) => {
|
|
893
|
+
l.controllerList.forEach((v) => {
|
|
894
|
+
if (v.targetComponent) {
|
|
895
|
+
const f = p.find((c) => c.componentId === v.targetComponent);
|
|
896
|
+
if ((f ? f.viewModelId : void 0) === e.value.viewModelId)
|
|
897
|
+
v.hasPath = !1;
|
|
824
898
|
else {
|
|
825
|
-
const
|
|
826
|
-
|
|
899
|
+
const c = a(l.controllerName.id, v.handlerName);
|
|
900
|
+
v.hasPath = c ? !0 : v.hasPath, v.componentLists = c ? W(e.value.componentLists) : v.componentLists;
|
|
827
901
|
}
|
|
828
902
|
}
|
|
829
903
|
});
|
|
830
|
-
}), e.value.componentLists.length && e.value.boundEventsList && e.value.boundEventsList.forEach((
|
|
831
|
-
var
|
|
832
|
-
if ((
|
|
833
|
-
const
|
|
834
|
-
(
|
|
835
|
-
var
|
|
836
|
-
return
|
|
904
|
+
}), e.value.componentLists.length && e.value.boundEventsList && e.value.boundEventsList.forEach((l) => {
|
|
905
|
+
var v;
|
|
906
|
+
if ((v = l.command) != null && v.targetComponent) {
|
|
907
|
+
const f = p.find(
|
|
908
|
+
(c) => {
|
|
909
|
+
var S;
|
|
910
|
+
return c.componentId === (((S = l.command) == null ? void 0 : S.targetComponent) || "");
|
|
837
911
|
}
|
|
838
912
|
);
|
|
839
|
-
if ((
|
|
840
|
-
|
|
913
|
+
if ((f ? f.viewModelId : void 0) === e.value.viewModelId)
|
|
914
|
+
l.command.hasPath = !1;
|
|
841
915
|
else {
|
|
842
|
-
const
|
|
843
|
-
|
|
844
|
-
|
|
916
|
+
const c = a(
|
|
917
|
+
l.controller.id,
|
|
918
|
+
l.command.handlerName
|
|
845
919
|
);
|
|
846
|
-
|
|
920
|
+
l.command.hasPath = c ? !0 : l.command.hasPath, l.command.componentLists = c ? W(e.value.componentLists) : l.command.componentLists;
|
|
847
921
|
}
|
|
848
922
|
}
|
|
849
923
|
});
|
|
850
924
|
}
|
|
851
|
-
function
|
|
852
|
-
const
|
|
853
|
-
(
|
|
925
|
+
function F() {
|
|
926
|
+
const p = g.value.reduce(
|
|
927
|
+
(v, f) => (v.set(f.boundEvents.label, !0), v),
|
|
854
928
|
/* @__PURE__ */ new Map()
|
|
855
929
|
);
|
|
856
|
-
return
|
|
930
|
+
return E.value.filter((v) => !p.has(v.label));
|
|
857
931
|
}
|
|
858
|
-
function
|
|
859
|
-
var
|
|
860
|
-
const
|
|
861
|
-
|
|
932
|
+
function C() {
|
|
933
|
+
var l;
|
|
934
|
+
const p = ((l = g.value) == null ? void 0 : l.length) > 0;
|
|
935
|
+
h.value = p ? F() : E.value;
|
|
862
936
|
}
|
|
863
|
-
function
|
|
864
|
-
|
|
937
|
+
function $() {
|
|
938
|
+
d(), E.value = e.value.events, g.value = e.value.boundEventsList, C();
|
|
865
939
|
}
|
|
866
|
-
function
|
|
867
|
-
|
|
940
|
+
function j(p) {
|
|
941
|
+
h.value = h.value.filter((l) => l.label !== p.label);
|
|
868
942
|
}
|
|
869
|
-
function
|
|
870
|
-
|
|
943
|
+
function w(p) {
|
|
944
|
+
g.value = g.value.filter((l) => l.boundEvents.label !== p.label), C();
|
|
871
945
|
}
|
|
872
946
|
function P() {
|
|
873
|
-
var
|
|
874
|
-
const
|
|
875
|
-
|
|
876
|
-
return
|
|
947
|
+
var v;
|
|
948
|
+
const p = (v = e.value) == null ? void 0 : v.getEventList(), { events: l } = p;
|
|
949
|
+
p && (e.value.events = W(l), e.value.boundEventsList = p.boundEventsList), e.value.boundEventsList && (e.value.boundEventsList = e.value.boundEventsList.filter(function(f) {
|
|
950
|
+
return l.find((u) => u.label === f.boundEvents.label);
|
|
877
951
|
}));
|
|
878
952
|
}
|
|
879
953
|
return {
|
|
880
|
-
allEvents:
|
|
881
|
-
boundEvents:
|
|
882
|
-
candidateEvents:
|
|
883
|
-
excludeFromCandidates:
|
|
884
|
-
loadEvents:
|
|
954
|
+
allEvents: E,
|
|
955
|
+
boundEvents: g,
|
|
956
|
+
candidateEvents: h,
|
|
957
|
+
excludeFromCandidates: j,
|
|
958
|
+
loadEvents: $,
|
|
885
959
|
resetBoundEvents: P,
|
|
886
|
-
unBoundEvent:
|
|
960
|
+
unBoundEvent: w
|
|
887
961
|
};
|
|
888
962
|
}
|
|
889
|
-
const
|
|
963
|
+
const st = {
|
|
890
964
|
sourceCommunication: { type: Object, default: {} }
|
|
891
|
-
},
|
|
965
|
+
}, ut = {
|
|
892
966
|
events: { type: Array, default: [] }
|
|
893
|
-
},
|
|
967
|
+
}, dt = /* @__PURE__ */ te({
|
|
894
968
|
name: "FEventList",
|
|
895
|
-
props:
|
|
969
|
+
props: ut,
|
|
896
970
|
emits: ["click"],
|
|
897
|
-
setup(e,
|
|
898
|
-
const
|
|
899
|
-
function
|
|
900
|
-
|
|
971
|
+
setup(e, E) {
|
|
972
|
+
const g = b(e.events);
|
|
973
|
+
function h(d) {
|
|
974
|
+
E.emit("click", d);
|
|
901
975
|
}
|
|
902
|
-
function
|
|
976
|
+
function a(d) {
|
|
903
977
|
return n("div", {
|
|
904
978
|
class: "f-page-events-editor-first-bound-event"
|
|
905
979
|
}, [n("div", {
|
|
906
|
-
onClick: () =>
|
|
980
|
+
onClick: () => h(d),
|
|
907
981
|
class: "f-page-events-editor-first-bound-event-name"
|
|
908
|
-
}, [
|
|
982
|
+
}, [d.name])]);
|
|
909
983
|
}
|
|
910
984
|
return () => n("div", {
|
|
911
985
|
class: "f-page-events-editor-events"
|
|
912
|
-
}, [
|
|
986
|
+
}, [g.value.map((d) => a(d))]);
|
|
913
987
|
}
|
|
914
|
-
}),
|
|
988
|
+
}), we = {
|
|
915
989
|
/** 通讯id */
|
|
916
990
|
communication: { type: Object },
|
|
917
991
|
/** 通讯来源 */
|
|
918
992
|
sourceCommunication: { type: Object, default: {} },
|
|
919
993
|
/** 当前事件编号 */
|
|
920
994
|
event: { type: String, default: "" }
|
|
921
|
-
},
|
|
995
|
+
}, mt = /* @__PURE__ */ te({
|
|
922
996
|
name: "FSelectSourceControl",
|
|
923
|
-
props:
|
|
997
|
+
props: we,
|
|
924
998
|
emits: ["selectSourceEvent", "deleteControl"],
|
|
925
|
-
setup(e,
|
|
926
|
-
const
|
|
927
|
-
createNewCommunication:
|
|
928
|
-
} =
|
|
929
|
-
|
|
930
|
-
const
|
|
999
|
+
setup(e, E) {
|
|
1000
|
+
const g = X("useFormSchema"), {
|
|
1001
|
+
createNewCommunication: h
|
|
1002
|
+
} = be(g), a = b();
|
|
1003
|
+
a.value = h(e);
|
|
1004
|
+
const d = b([{
|
|
931
1005
|
field: "name",
|
|
932
1006
|
title: "",
|
|
933
1007
|
dataType: "string"
|
|
934
|
-
}]),
|
|
935
|
-
function
|
|
936
|
-
const
|
|
937
|
-
|
|
1008
|
+
}]), F = b([]), C = b(), $ = b(), j = b(!0), w = b(!1), P = b([]), p = b(), l = b(!0), v = b(!1);
|
|
1009
|
+
function f() {
|
|
1010
|
+
const y = X("sourceOutlineData");
|
|
1011
|
+
F.value = y || [], $.value.updateDataSource(F.value);
|
|
938
1012
|
}
|
|
939
|
-
function
|
|
940
|
-
var
|
|
941
|
-
if (!((
|
|
942
|
-
|
|
1013
|
+
function u() {
|
|
1014
|
+
var A, i, o;
|
|
1015
|
+
if (!((i = (A = a.value) == null ? void 0 : A.source) != null && i.componentId)) {
|
|
1016
|
+
v.value = !1;
|
|
943
1017
|
return;
|
|
944
1018
|
}
|
|
945
|
-
const
|
|
946
|
-
|
|
947
|
-
id:
|
|
1019
|
+
const y = (o = F.value) == null ? void 0 : o.find((r) => r.originalId === a.value.source.componentId);
|
|
1020
|
+
y ? ($.value.selectItemById(y.id), v.value = !1) : (v.value = !0, C.value = {
|
|
1021
|
+
id: a.value.source.componentId
|
|
948
1022
|
});
|
|
949
1023
|
}
|
|
950
|
-
function
|
|
951
|
-
var
|
|
952
|
-
(
|
|
953
|
-
var
|
|
954
|
-
return o.eventCode === ((
|
|
1024
|
+
function c() {
|
|
1025
|
+
var y, A, i;
|
|
1026
|
+
(A = (y = a.value) == null ? void 0 : y.source) != null && A.event && ((i = P.value) != null && i.length) && (p.value = P.value.find((o) => {
|
|
1027
|
+
var r, s;
|
|
1028
|
+
return o.eventCode === ((s = (r = a.value) == null ? void 0 : r.source) == null ? void 0 : s.event);
|
|
955
1029
|
}));
|
|
956
1030
|
}
|
|
957
|
-
|
|
958
|
-
|
|
1031
|
+
he(() => {
|
|
1032
|
+
f(), u(), c(), l.value = !1;
|
|
959
1033
|
});
|
|
960
|
-
function
|
|
1034
|
+
function S() {
|
|
961
1035
|
var o;
|
|
962
1036
|
P.value = [];
|
|
963
|
-
const
|
|
964
|
-
|
|
1037
|
+
const y = C.value.rawSchema, A = y.type === "form-group" && y.editor ? y.editor.type : y.type, i = (o = Je[A]) == null ? void 0 : o.events;
|
|
1038
|
+
i && Object.keys(i).forEach((r) => {
|
|
965
1039
|
P.value.push({
|
|
966
|
-
eventCode:
|
|
967
|
-
eventName:
|
|
1040
|
+
eventCode: r,
|
|
1041
|
+
eventName: i[r]
|
|
968
1042
|
});
|
|
969
1043
|
});
|
|
970
1044
|
}
|
|
971
|
-
function y
|
|
972
|
-
|
|
973
|
-
const
|
|
974
|
-
|
|
1045
|
+
function T(y) {
|
|
1046
|
+
j.value = !1, v.value = !1;
|
|
1047
|
+
const A = C.value !== y[0];
|
|
1048
|
+
A && (C.value = y[0], S()), l.value || (w.value = !0), !l.value && A && (p.value = null);
|
|
975
1049
|
}
|
|
976
|
-
const t =
|
|
1050
|
+
const t = K(() => ({
|
|
977
1051
|
"item-list": !0,
|
|
978
|
-
"d-none":
|
|
979
|
-
})),
|
|
980
|
-
var
|
|
1052
|
+
"d-none": !j.value
|
|
1053
|
+
})), _ = K(() => (y) => {
|
|
1054
|
+
var A;
|
|
981
1055
|
return {
|
|
982
1056
|
item: !0,
|
|
983
|
-
selected: ((
|
|
1057
|
+
selected: ((A = p.value) == null ? void 0 : A.eventCode) === y
|
|
984
1058
|
};
|
|
985
1059
|
});
|
|
986
|
-
function
|
|
987
|
-
var
|
|
988
|
-
|
|
1060
|
+
function H(y) {
|
|
1061
|
+
var A;
|
|
1062
|
+
j.value = !1, w.value = !1, p.value = y, a.value.source.componentId = C.value.rawSchema.id, a.value.source.event = (A = p.value) == null ? void 0 : A.eventCode, E.emit("selectSourceEvent", a.value);
|
|
989
1063
|
}
|
|
990
|
-
const
|
|
1064
|
+
const R = K(() => ({
|
|
991
1065
|
"form-container": !0,
|
|
992
1066
|
"position-relative": !0,
|
|
993
|
-
invalid:
|
|
1067
|
+
invalid: v.value
|
|
994
1068
|
}));
|
|
995
1069
|
return () => n("div", {
|
|
996
|
-
class:
|
|
1070
|
+
class: R.value
|
|
997
1071
|
}, [n("div", {
|
|
998
1072
|
class: t.value,
|
|
999
1073
|
style: "min-height:220px;"
|
|
1000
1074
|
}, [n("span", {
|
|
1001
1075
|
class: "tip"
|
|
1002
|
-
}, [Y("请选择源控件")]), n(
|
|
1003
|
-
ref:
|
|
1004
|
-
data:
|
|
1005
|
-
columns:
|
|
1076
|
+
}, [Y("请选择源控件")]), n(pn, {
|
|
1077
|
+
ref: $,
|
|
1078
|
+
data: F.value,
|
|
1079
|
+
columns: d.value,
|
|
1006
1080
|
columnOption: {
|
|
1007
1081
|
fitColumns: !0,
|
|
1008
1082
|
fitMode: "expand"
|
|
@@ -1010,66 +1084,66 @@ const Ln = {
|
|
|
1010
1084
|
showTreeNodeIcons: !0,
|
|
1011
1085
|
fit: !0,
|
|
1012
1086
|
iconField: "controlIcon",
|
|
1013
|
-
onSelectionChange:
|
|
1014
|
-
}, null)]),
|
|
1087
|
+
onSelectionChange: T
|
|
1088
|
+
}, null)]), w.value && n(Ie, null, [n("div", {
|
|
1015
1089
|
class: "item-list"
|
|
1016
1090
|
}, [n("span", {
|
|
1017
1091
|
class: "tip"
|
|
1018
|
-
}, [Y("请选择事件")]), P.value.map((
|
|
1019
|
-
class:
|
|
1020
|
-
onClick: () =>
|
|
1021
|
-
}, [
|
|
1092
|
+
}, [Y("请选择事件")]), P.value.map((y) => n("span", {
|
|
1093
|
+
class: _.value(y.eventCode),
|
|
1094
|
+
onClick: () => H(y)
|
|
1095
|
+
}, [y.eventName]))])])]);
|
|
1022
1096
|
}
|
|
1023
|
-
}),
|
|
1097
|
+
}), ft = /* @__PURE__ */ te({
|
|
1024
1098
|
name: "FInteractionButton",
|
|
1025
|
-
props:
|
|
1099
|
+
props: st,
|
|
1026
1100
|
emits: ["clickEventItem", "selectSourceControl"],
|
|
1027
|
-
setup(e,
|
|
1028
|
-
const
|
|
1029
|
-
candidateEvents:
|
|
1030
|
-
} =
|
|
1031
|
-
collapseInteractions:
|
|
1032
|
-
} =
|
|
1033
|
-
function
|
|
1034
|
-
|
|
1035
|
-
}
|
|
1036
|
-
function
|
|
1037
|
-
var
|
|
1038
|
-
(
|
|
1039
|
-
}
|
|
1040
|
-
function P(d) {
|
|
1041
|
-
C(), $(d), B.emit("clickEventItem", d);
|
|
1101
|
+
setup(e, E) {
|
|
1102
|
+
const g = new fe(), h = X("useEventsComposition"), a = X("useInteractionCompostion"), {
|
|
1103
|
+
candidateEvents: d
|
|
1104
|
+
} = h, {
|
|
1105
|
+
collapseInteractions: F
|
|
1106
|
+
} = a, C = b(!1), $ = b(!1);
|
|
1107
|
+
function j(v) {
|
|
1108
|
+
d.value = d.value.filter((f) => f.label !== v.label);
|
|
1109
|
+
}
|
|
1110
|
+
function w() {
|
|
1111
|
+
var v;
|
|
1112
|
+
(v = e.sourceCommunication) != null && v.needSelectSourceControl ? $.value = !$.value : C.value = !C.value;
|
|
1042
1113
|
}
|
|
1043
|
-
function
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1114
|
+
function P(v) {
|
|
1115
|
+
w(), j(v), E.emit("clickEventItem", v);
|
|
1116
|
+
}
|
|
1117
|
+
function p() {
|
|
1118
|
+
var v;
|
|
1119
|
+
if (!((v = e.sourceCommunication) != null && v.needSelectSourceControl) && d.value.length === 0) {
|
|
1120
|
+
g.info({
|
|
1047
1121
|
position: "top-center",
|
|
1048
1122
|
message: "事件已全部绑定"
|
|
1049
1123
|
});
|
|
1050
1124
|
return;
|
|
1051
1125
|
}
|
|
1052
|
-
|
|
1126
|
+
F(), w();
|
|
1053
1127
|
}
|
|
1054
|
-
function
|
|
1055
|
-
|
|
1128
|
+
function l(v) {
|
|
1129
|
+
$.value = !1, E.emit("selectSourceControl", v);
|
|
1056
1130
|
}
|
|
1057
|
-
return () => n(
|
|
1131
|
+
return () => n(Ie, null, [n("div", {
|
|
1058
1132
|
class: "f-page-events-editor-top-button"
|
|
1059
1133
|
}, [n("button", {
|
|
1060
1134
|
class: "f-page-events-editor-button",
|
|
1061
|
-
onClick:
|
|
1135
|
+
onClick: p
|
|
1062
1136
|
}, [n("span", {
|
|
1063
1137
|
class: "f-page-events-editor-text"
|
|
1064
|
-
}, [Y("新建交互事件")])])]),
|
|
1065
|
-
events:
|
|
1138
|
+
}, [Y("新建交互事件")])])]), C.value && n(dt, {
|
|
1139
|
+
events: d.value,
|
|
1066
1140
|
onClick: P
|
|
1067
|
-
}, null),
|
|
1141
|
+
}, null), $.value && n(mt, {
|
|
1068
1142
|
sourceCommunication: e.sourceCommunication,
|
|
1069
|
-
onSelectSourceEvent:
|
|
1143
|
+
onSelectSourceEvent: l
|
|
1070
1144
|
}, null)]);
|
|
1071
1145
|
}
|
|
1072
|
-
}),
|
|
1146
|
+
}), vt = {
|
|
1073
1147
|
collapsed: { type: Boolean, default: !0 },
|
|
1074
1148
|
displayOrder: { type: Number, default: -1 },
|
|
1075
1149
|
interaction: { type: Object, default: {} },
|
|
@@ -1079,7 +1153,7 @@ const Ln = {
|
|
|
1079
1153
|
} },
|
|
1080
1154
|
/** 接收是否显示「可选择方法」功能 */
|
|
1081
1155
|
haveBoundCommand: { Type: Boolean, default: !1 }
|
|
1082
|
-
},
|
|
1156
|
+
}, ht = {
|
|
1083
1157
|
/** 判断是否为新引入的方法 */
|
|
1084
1158
|
newImport: { Type: Boolean, default: !1 },
|
|
1085
1159
|
/** 新增的内置构件列表 */
|
|
@@ -1096,47 +1170,47 @@ const Ln = {
|
|
|
1096
1170
|
event: { Type: Object },
|
|
1097
1171
|
/** 通讯来源 */
|
|
1098
1172
|
sourceCommunication: { type: Object, default: {} }
|
|
1099
|
-
},
|
|
1173
|
+
}, gt = {
|
|
1100
1174
|
controllers: { type: Array, default: [] }
|
|
1101
|
-
},
|
|
1175
|
+
}, Ct = /* @__PURE__ */ te({
|
|
1102
1176
|
name: "FCommandList",
|
|
1103
|
-
props:
|
|
1177
|
+
props: gt,
|
|
1104
1178
|
emits: ["selectMethod"],
|
|
1105
|
-
setup(e,
|
|
1106
|
-
function
|
|
1107
|
-
return
|
|
1179
|
+
setup(e, E) {
|
|
1180
|
+
function g(C) {
|
|
1181
|
+
return C.controllerList.length !== 0;
|
|
1108
1182
|
}
|
|
1109
|
-
function
|
|
1110
|
-
return
|
|
1183
|
+
function h(C) {
|
|
1184
|
+
return g(C) && n("div", {
|
|
1111
1185
|
class: "f-page-internals-controller"
|
|
1112
1186
|
}, [n("div", {
|
|
1113
1187
|
class: "f-page-internals-controller-name",
|
|
1114
|
-
title:
|
|
1115
|
-
}, [
|
|
1188
|
+
title: C.controllerName.name
|
|
1189
|
+
}, [C.controllerName.name])]);
|
|
1116
1190
|
}
|
|
1117
|
-
function
|
|
1118
|
-
|
|
1119
|
-
method:
|
|
1120
|
-
controller:
|
|
1191
|
+
function a(C, $) {
|
|
1192
|
+
E.emit("selectMethod", {
|
|
1193
|
+
method: C,
|
|
1194
|
+
controller: $
|
|
1121
1195
|
});
|
|
1122
1196
|
}
|
|
1123
|
-
function
|
|
1124
|
-
return
|
|
1197
|
+
function d(C) {
|
|
1198
|
+
return C.controllerList.map(($) => n("div", {
|
|
1125
1199
|
class: "f-page-internals-command",
|
|
1126
|
-
onClick: () =>
|
|
1200
|
+
onClick: () => a($, C)
|
|
1127
1201
|
}, [n("div", {
|
|
1128
1202
|
class: "f-page-internals-command-name",
|
|
1129
|
-
title:
|
|
1130
|
-
}, [
|
|
1203
|
+
title: $.label
|
|
1204
|
+
}, [$.name])]));
|
|
1131
1205
|
}
|
|
1132
|
-
function
|
|
1133
|
-
return n("div", null, [
|
|
1206
|
+
function F(C) {
|
|
1207
|
+
return n("div", null, [h(C), d(C)]);
|
|
1134
1208
|
}
|
|
1135
1209
|
return () => n("div", {
|
|
1136
1210
|
class: "f-page-internals"
|
|
1137
|
-
}, [e.controllers.map((
|
|
1211
|
+
}, [e.controllers.map((C) => F(C))]);
|
|
1138
1212
|
}
|
|
1139
|
-
}),
|
|
1213
|
+
}), pt = {
|
|
1140
1214
|
getEventPath: { type: Function, default: null },
|
|
1141
1215
|
notifyService: { type: Object },
|
|
1142
1216
|
useFormSchema: { type: Object },
|
|
@@ -1144,61 +1218,61 @@ const Ln = {
|
|
|
1144
1218
|
sourceCommunication: { type: Object, default: {} },
|
|
1145
1219
|
/** 当前编辑的事件编号、事件名称 */
|
|
1146
1220
|
event: { Type: Object }
|
|
1147
|
-
},
|
|
1221
|
+
}, bt = /* @__PURE__ */ te({
|
|
1148
1222
|
name: "FBoundEventSelector",
|
|
1149
|
-
props:
|
|
1223
|
+
props: pt,
|
|
1150
1224
|
emits: ["cancel", "submit"],
|
|
1151
|
-
setup(e,
|
|
1152
|
-
var
|
|
1153
|
-
const
|
|
1154
|
-
|
|
1225
|
+
setup(e, E) {
|
|
1226
|
+
var N, D;
|
|
1227
|
+
const g = b(), h = b([]), a = b('<i class="f-icon f-icon-search"></i>'), d = e.useFormSchema.getFormMetadataBasicInfo(), F = b(""), C = b(), $ = ((N = e.sourceCommunication) == null ? void 0 : N.unSupportedEventCodes) || [], j = b(!$.includes(e.event.label) && ((D = e.useFormSchema.externalFormSchema) == null ? void 0 : D.size) > 0), w = b(), P = b([]);
|
|
1228
|
+
nn(() => {
|
|
1155
1229
|
if (e.getEventPath) {
|
|
1156
1230
|
const m = e.getEventPath();
|
|
1157
|
-
|
|
1231
|
+
g.value = m.viewModelDisplay;
|
|
1158
1232
|
const {
|
|
1159
|
-
actionWithPath:
|
|
1233
|
+
actionWithPath: k
|
|
1160
1234
|
} = m;
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1235
|
+
k.forEach((O) => {
|
|
1236
|
+
O.sourceComponent.map.forEach((q) => {
|
|
1237
|
+
q.active = !1, q.hide = !1;
|
|
1164
1238
|
});
|
|
1165
|
-
}),
|
|
1239
|
+
}), h.value = W(k);
|
|
1166
1240
|
}
|
|
1167
1241
|
});
|
|
1168
|
-
function
|
|
1169
|
-
m = m.replace(/ /g, "").replace(/>/g, "").toLowerCase(), m === "" && (m = " "),
|
|
1170
|
-
const
|
|
1171
|
-
|
|
1172
|
-
const
|
|
1173
|
-
`${
|
|
1242
|
+
function p(m = "") {
|
|
1243
|
+
m = m.replace(/ /g, "").replace(/>/g, "").toLowerCase(), m === "" && (m = " "), h.value.forEach((k) => {
|
|
1244
|
+
const O = k.path;
|
|
1245
|
+
k.sourceComponent.map.forEach((q) => {
|
|
1246
|
+
const J = q.command.name, ne = q.event.name, M = q.command.label;
|
|
1247
|
+
`${O}${J}${ne}${M}`.toLowerCase().includes(m) ? q.hide = !1 : q.hide = !0;
|
|
1174
1248
|
});
|
|
1175
1249
|
});
|
|
1176
1250
|
}
|
|
1177
|
-
function
|
|
1178
|
-
m = m.replace(/ /g, "").replace(/>/g, "").toLowerCase(), P.value.forEach((
|
|
1179
|
-
if (!
|
|
1251
|
+
function l(m = "") {
|
|
1252
|
+
m = m.replace(/ /g, "").replace(/>/g, "").toLowerCase(), P.value.forEach((k) => {
|
|
1253
|
+
if (!k.isCommandNode)
|
|
1180
1254
|
return;
|
|
1181
|
-
const
|
|
1182
|
-
m && !
|
|
1255
|
+
const O = k.name || "", q = k.code || "", J = k.viewmodelName || "", ne = `${O}${q}${J}`.toLowerCase();
|
|
1256
|
+
m && !ne.includes(m) ? k.hide = !0 : k.hide = !1;
|
|
1183
1257
|
});
|
|
1184
1258
|
}
|
|
1185
|
-
function
|
|
1186
|
-
!
|
|
1259
|
+
function v(m = "") {
|
|
1260
|
+
!w.value || w.value.id === d.id ? p(m) : l(m);
|
|
1187
1261
|
}
|
|
1188
|
-
function
|
|
1262
|
+
function f() {
|
|
1189
1263
|
const m = n("div", {
|
|
1190
1264
|
class: "f-vm-search"
|
|
1191
1265
|
}, [n("div", {
|
|
1192
1266
|
class: "f-vm-searchBar"
|
|
1193
|
-
}, [n(
|
|
1267
|
+
}, [n(Fn, {
|
|
1194
1268
|
updateOn: "change",
|
|
1195
|
-
groupText:
|
|
1196
|
-
modelValue:
|
|
1197
|
-
"onUpdate:modelValue": (
|
|
1198
|
-
onChange:
|
|
1269
|
+
groupText: a.value,
|
|
1270
|
+
modelValue: F.value,
|
|
1271
|
+
"onUpdate:modelValue": (k) => F.value = k,
|
|
1272
|
+
onChange: v,
|
|
1199
1273
|
placeholder: "请输入名称/编号/路径搜索"
|
|
1200
1274
|
}, null)])]);
|
|
1201
|
-
return
|
|
1275
|
+
return j.value ? n("div", {
|
|
1202
1276
|
class: "f-navSelector-header"
|
|
1203
1277
|
}, [n("div", {
|
|
1204
1278
|
class: "f-navSelector-recommand"
|
|
@@ -1210,35 +1284,35 @@ const Ln = {
|
|
|
1210
1284
|
class: "f-vm-search"
|
|
1211
1285
|
}, [m])])]) : m;
|
|
1212
1286
|
}
|
|
1213
|
-
function
|
|
1287
|
+
function u(m) {
|
|
1214
1288
|
return {
|
|
1215
1289
|
"f-vm-item": !0,
|
|
1216
1290
|
"f-vm-item-focus": m.active
|
|
1217
1291
|
};
|
|
1218
1292
|
}
|
|
1219
|
-
function
|
|
1220
|
-
let
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
!
|
|
1293
|
+
function c(m, k) {
|
|
1294
|
+
let O = 0;
|
|
1295
|
+
h.value.forEach((q) => {
|
|
1296
|
+
q.sourceComponent.map.forEach((J) => {
|
|
1297
|
+
!J.command.isInvalid && m.controller.id === J.controller.id && m.command.id === J.command.id && m.event.label === J.event.label && k.sourceComponent.id === q.sourceComponent.id ? (m.active = !m.active, C.value = W(m)) : (J.command.isInvalid && m.controller.id === J.controller.id && m.command.id === J.command.id && m.event.label === J.event.label && k.sourceComponent.id === q.sourceComponent.id && (O++, O === 1 && (new fe().info({
|
|
1224
1298
|
position: "top-center",
|
|
1225
1299
|
message: "该方法已失效"
|
|
1226
|
-
}),
|
|
1300
|
+
}), C.value = null)), J.active = !1);
|
|
1227
1301
|
});
|
|
1228
1302
|
});
|
|
1229
1303
|
}
|
|
1230
|
-
function
|
|
1304
|
+
function S(m) {
|
|
1231
1305
|
return {
|
|
1232
1306
|
"f-event-func": !m.command.isInvalid,
|
|
1233
1307
|
"f-event-func-invalid": m.command.isInvalid
|
|
1234
1308
|
};
|
|
1235
1309
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return m.sourceComponent.map.filter((
|
|
1238
|
-
if (!
|
|
1310
|
+
function T(m) {
|
|
1311
|
+
return m.sourceComponent.map.filter((k) => !k.hide).map((k) => {
|
|
1312
|
+
if (!k.command.isInvalid)
|
|
1239
1313
|
return n("div", {
|
|
1240
|
-
class:
|
|
1241
|
-
onClick: () =>
|
|
1314
|
+
class: u(k),
|
|
1315
|
+
onClick: () => c(k, m)
|
|
1242
1316
|
}, [n("div", {
|
|
1243
1317
|
class: "f-event-commandItem"
|
|
1244
1318
|
}, [n("div", {
|
|
@@ -1247,16 +1321,16 @@ const Ln = {
|
|
|
1247
1321
|
class: "f-icon f-icon-source-code",
|
|
1248
1322
|
style: "font-size:10px;color:#30B471;"
|
|
1249
1323
|
}, [Y(" ")])]), n("div", {
|
|
1250
|
-
class:
|
|
1251
|
-
}, [
|
|
1324
|
+
class: S(k)
|
|
1325
|
+
}, [k.command.name, Y("("), k.command.label, Y(")")])]), n("div", {
|
|
1252
1326
|
class: "f-event-path"
|
|
1253
|
-
}, [m.path,
|
|
1327
|
+
}, [m.path, k.event.name])]);
|
|
1254
1328
|
});
|
|
1255
1329
|
}
|
|
1256
1330
|
function t() {
|
|
1257
|
-
return
|
|
1331
|
+
return h.value.length > 0 ? n("div", {
|
|
1258
1332
|
class: "f-vm-viewModel flex-fill"
|
|
1259
|
-
}, [
|
|
1333
|
+
}, [h.value.map((m) => T(m))]) : n("div", {
|
|
1260
1334
|
class: "f-list-view-emptydata",
|
|
1261
1335
|
style: "height: 360px;position: relative;"
|
|
1262
1336
|
}, [n("div", {
|
|
@@ -1265,93 +1339,93 @@ const Ln = {
|
|
|
1265
1339
|
class: "f-datagrid-norecords-content"
|
|
1266
1340
|
}, [Y(" 暂无数据")])])]);
|
|
1267
1341
|
}
|
|
1268
|
-
function
|
|
1269
|
-
|
|
1342
|
+
function _() {
|
|
1343
|
+
E.emit("cancel");
|
|
1270
1344
|
}
|
|
1271
|
-
function
|
|
1272
|
-
if (!
|
|
1345
|
+
function H() {
|
|
1346
|
+
if (!C.value) {
|
|
1273
1347
|
e.notifyService.info({
|
|
1274
1348
|
position: "top-center",
|
|
1275
1349
|
message: "请选择需要绑定的方法"
|
|
1276
1350
|
});
|
|
1277
1351
|
return;
|
|
1278
1352
|
}
|
|
1279
|
-
|
|
1280
|
-
selectedCommand:
|
|
1281
|
-
selectedForm:
|
|
1353
|
+
E.emit("submit", {
|
|
1354
|
+
selectedCommand: C.value,
|
|
1355
|
+
selectedForm: w.value
|
|
1282
1356
|
});
|
|
1283
1357
|
}
|
|
1284
|
-
function
|
|
1285
|
-
const m = e.useFormSchema.externalFormSchema,
|
|
1286
|
-
return
|
|
1358
|
+
function R() {
|
|
1359
|
+
const m = e.useFormSchema.externalFormSchema, k = [];
|
|
1360
|
+
return k.push({
|
|
1287
1361
|
containerId: "",
|
|
1288
|
-
id:
|
|
1289
|
-
code:
|
|
1290
|
-
name:
|
|
1291
|
-
}), Array.from(m.keys()).forEach((
|
|
1292
|
-
const
|
|
1293
|
-
|
|
1294
|
-
containerId:
|
|
1295
|
-
id:
|
|
1296
|
-
code:
|
|
1297
|
-
name:
|
|
1362
|
+
id: d.id,
|
|
1363
|
+
code: d.code,
|
|
1364
|
+
name: d.name
|
|
1365
|
+
}), Array.from(m.keys()).forEach((O) => {
|
|
1366
|
+
const q = m.get(O);
|
|
1367
|
+
k.push({
|
|
1368
|
+
containerId: O,
|
|
1369
|
+
id: q.id,
|
|
1370
|
+
code: q.code,
|
|
1371
|
+
name: q.name
|
|
1298
1372
|
});
|
|
1299
|
-
}),
|
|
1373
|
+
}), k;
|
|
1300
1374
|
}
|
|
1301
|
-
const
|
|
1375
|
+
const y = K(() => ({
|
|
1302
1376
|
"f-vm-all": !0,
|
|
1303
1377
|
" h-100": !0,
|
|
1304
|
-
"has-page-list":
|
|
1378
|
+
"has-page-list": j.value
|
|
1305
1379
|
}));
|
|
1306
|
-
function
|
|
1307
|
-
var
|
|
1380
|
+
function A(m) {
|
|
1381
|
+
var J, ne;
|
|
1308
1382
|
const {
|
|
1309
|
-
viewmodels:
|
|
1310
|
-
components:
|
|
1383
|
+
viewmodels: k,
|
|
1384
|
+
components: O
|
|
1311
1385
|
} = m.module;
|
|
1312
|
-
if ((
|
|
1386
|
+
if ((k == null ? void 0 : k.length) === 0 || (O == null ? void 0 : O.length) === 0)
|
|
1313
1387
|
return [];
|
|
1314
1388
|
P.value = [];
|
|
1315
|
-
const
|
|
1316
|
-
|
|
1317
|
-
if (!
|
|
1389
|
+
const q = (ne = (J = e.sourceCommunication) == null ? void 0 : J.parameterData) == null ? void 0 : ne.getViewModelName;
|
|
1390
|
+
k.forEach((M) => {
|
|
1391
|
+
if (!M || !M.commands || M.commands.length === 0)
|
|
1318
1392
|
return [];
|
|
1319
|
-
const
|
|
1393
|
+
const Q = O.find((ce) => ce.viewModel === M.id), oe = q && Q ? q(Q, M.name, m) : "";
|
|
1320
1394
|
P.value.push({
|
|
1321
|
-
id:
|
|
1322
|
-
code:
|
|
1323
|
-
name:
|
|
1324
|
-
}),
|
|
1325
|
-
|
|
1326
|
-
...
|
|
1327
|
-
viewmodelId:
|
|
1328
|
-
viewmodelName:
|
|
1395
|
+
id: M.id,
|
|
1396
|
+
code: M.code,
|
|
1397
|
+
name: oe || M.name
|
|
1398
|
+
}), M.commands.forEach((ce) => {
|
|
1399
|
+
ce.isInvalid || P.value.push({
|
|
1400
|
+
...ce,
|
|
1401
|
+
viewmodelId: M.id,
|
|
1402
|
+
viewmodelName: oe || M.name,
|
|
1329
1403
|
isCommandNode: !0
|
|
1330
1404
|
});
|
|
1331
1405
|
});
|
|
1332
1406
|
});
|
|
1333
1407
|
}
|
|
1334
|
-
function
|
|
1335
|
-
var
|
|
1336
|
-
if (!(m.id ===
|
|
1337
|
-
if (
|
|
1338
|
-
const
|
|
1339
|
-
(
|
|
1408
|
+
function i(m) {
|
|
1409
|
+
var k, O, q;
|
|
1410
|
+
if (!(m.id === w.value.id && m.containerId === w.value.containerId))
|
|
1411
|
+
if (w.value = m, F.value = "", C.value = null, w.value.id !== d.id) {
|
|
1412
|
+
const J = (O = e.useFormSchema.externalFormSchema) == null ? void 0 : O.get((k = w.value) == null ? void 0 : k.containerId);
|
|
1413
|
+
(q = J == null ? void 0 : J.content) != null && q.module && A(J.content);
|
|
1340
1414
|
} else
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1415
|
+
h.value.map((J) => {
|
|
1416
|
+
J.sourceComponent.map.map((ne) => {
|
|
1417
|
+
ne.hide = !1, ne.active = !1;
|
|
1344
1418
|
});
|
|
1345
1419
|
});
|
|
1346
1420
|
}
|
|
1347
1421
|
function o() {
|
|
1348
|
-
const m =
|
|
1349
|
-
|
|
1350
|
-
const
|
|
1351
|
-
var
|
|
1422
|
+
const m = R();
|
|
1423
|
+
w.value || (w.value = m[0]);
|
|
1424
|
+
const k = K(() => (O) => {
|
|
1425
|
+
var q;
|
|
1352
1426
|
return {
|
|
1353
1427
|
"f-list-view-group-item": !0,
|
|
1354
|
-
"f-listview-active":
|
|
1428
|
+
"f-listview-active": O.id === ((q = w.value) == null ? void 0 : q.id) && O.containerId === w.value.containerId
|
|
1355
1429
|
};
|
|
1356
1430
|
});
|
|
1357
1431
|
return n("div", {
|
|
@@ -1363,30 +1437,30 @@ const Ln = {
|
|
|
1363
1437
|
}, [n("ul", {
|
|
1364
1438
|
class: "f-list-view-group",
|
|
1365
1439
|
style: "list-style: none;"
|
|
1366
|
-
}, [m.map((
|
|
1367
|
-
let
|
|
1368
|
-
return
|
|
1369
|
-
class:
|
|
1370
|
-
onClick: () =>
|
|
1440
|
+
}, [m.map((O) => {
|
|
1441
|
+
let q = O.name;
|
|
1442
|
+
return O.containerId && (q += `, 所属外部容器:${O.containerId}`), n("li", {
|
|
1443
|
+
class: k.value(O),
|
|
1444
|
+
onClick: () => i(O)
|
|
1371
1445
|
}, [n("div", {
|
|
1372
1446
|
class: "f-list-content"
|
|
1373
1447
|
}, [n("div", {
|
|
1374
1448
|
class: "f-navSelector-leftCategory",
|
|
1375
|
-
title:
|
|
1376
|
-
}, [
|
|
1449
|
+
title: q
|
|
1450
|
+
}, [O.name])])]);
|
|
1377
1451
|
})])])])]);
|
|
1378
1452
|
}
|
|
1379
|
-
function
|
|
1380
|
-
P.value.map((
|
|
1453
|
+
function r(m) {
|
|
1454
|
+
P.value.map((k) => k.active = !1), m.active = !0, C.value = m;
|
|
1381
1455
|
}
|
|
1382
|
-
function
|
|
1456
|
+
function s() {
|
|
1383
1457
|
return n("div", {
|
|
1384
1458
|
class: "f-vm-viewModel flex-fill"
|
|
1385
1459
|
}, [P.value.filter((m) => !m.hide).map((m) => {
|
|
1386
1460
|
if (m.isCommandNode)
|
|
1387
1461
|
return n("div", {
|
|
1388
|
-
class:
|
|
1389
|
-
onClick: () =>
|
|
1462
|
+
class: u(m),
|
|
1463
|
+
onClick: () => r(m)
|
|
1390
1464
|
}, [n("div", {
|
|
1391
1465
|
class: "f-event-commandItem"
|
|
1392
1466
|
}, [n("div", {
|
|
@@ -1402,125 +1476,125 @@ const Ln = {
|
|
|
1402
1476
|
})]);
|
|
1403
1477
|
}
|
|
1404
1478
|
return () => n("div", {
|
|
1405
|
-
class:
|
|
1479
|
+
class: y.value
|
|
1406
1480
|
}, [n("div", {
|
|
1407
1481
|
class: "d-flex f-utils-fill-flex-row splitter"
|
|
1408
|
-
}, [
|
|
1482
|
+
}, [j.value ? o() : "", n("div", {
|
|
1409
1483
|
class: "f-utils-fill-flex-column"
|
|
1410
|
-
}, [
|
|
1484
|
+
}, [f(), !w.value || w.value.id === d.id ? t() : s()])]), n("div", {
|
|
1411
1485
|
class: "modal-footer"
|
|
1412
1486
|
}, [n("button", {
|
|
1413
1487
|
type: "button",
|
|
1414
1488
|
class: "btn btn-secondary",
|
|
1415
|
-
onClick:
|
|
1489
|
+
onClick: _
|
|
1416
1490
|
}, [Y("取消")]), n("button", {
|
|
1417
1491
|
type: "button",
|
|
1418
1492
|
class: "btn btn-primary",
|
|
1419
|
-
onClick:
|
|
1493
|
+
onClick: H
|
|
1420
1494
|
}, [Y("确定")])])]);
|
|
1421
1495
|
}
|
|
1422
|
-
}),
|
|
1496
|
+
}), wt = /* @__PURE__ */ te({
|
|
1423
1497
|
name: "FCommandSource",
|
|
1424
|
-
props:
|
|
1498
|
+
props: ht,
|
|
1425
1499
|
emits: ["addInternalCommandListChanged", "newImportChanged", "selectBoundMethod", "click", "existChanged", "newFunctionChanged", "close", "selectMethod", "addCommunication"],
|
|
1426
|
-
setup(e,
|
|
1427
|
-
const
|
|
1428
|
-
checkIfNewControllerExists:
|
|
1429
|
-
addNewController:
|
|
1430
|
-
} =
|
|
1431
|
-
let
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1434
|
-
|
|
1500
|
+
setup(e, E) {
|
|
1501
|
+
const g = X("useMethodsComposition"), h = X("useFormCommand"), a = new fe(), {
|
|
1502
|
+
checkIfNewControllerExists: d,
|
|
1503
|
+
addNewController: F
|
|
1504
|
+
} = g, C = b(e.controllers), $ = X("useFormSchema"), j = X(Sn);
|
|
1505
|
+
let w, P;
|
|
1506
|
+
const p = b(!1);
|
|
1507
|
+
he(() => {
|
|
1508
|
+
p.value = $.externalFormSchema.size > 0;
|
|
1435
1509
|
});
|
|
1436
|
-
function
|
|
1437
|
-
if (
|
|
1438
|
-
const
|
|
1439
|
-
|
|
1510
|
+
function l(r, s, N) {
|
|
1511
|
+
if (F(r), r.Commands) {
|
|
1512
|
+
const D = h.getInternalControllerFromControllerMetadata(r, s, N);
|
|
1513
|
+
d(D) && a.info({
|
|
1440
1514
|
position: "top-center",
|
|
1441
1515
|
message: "该控制器已存在"
|
|
1442
1516
|
});
|
|
1443
1517
|
}
|
|
1444
1518
|
}
|
|
1445
|
-
async function
|
|
1446
|
-
|
|
1447
|
-
|
|
1519
|
+
async function v(r) {
|
|
1520
|
+
h.getSupportedControllerMetadata(r).then((s) => {
|
|
1521
|
+
s && l(s.controller, s.code, s.nameSpace);
|
|
1448
1522
|
}).finally(() => {
|
|
1449
|
-
|
|
1523
|
+
w && w.destroy && w.destroy();
|
|
1450
1524
|
});
|
|
1451
1525
|
}
|
|
1452
|
-
function
|
|
1453
|
-
|
|
1526
|
+
function f(r) {
|
|
1527
|
+
w && w.destroy && w.destroy();
|
|
1454
1528
|
}
|
|
1455
|
-
function
|
|
1456
|
-
const
|
|
1457
|
-
formBasicInfo:
|
|
1529
|
+
function u() {
|
|
1530
|
+
const r = {
|
|
1531
|
+
formBasicInfo: $ == null ? void 0 : $.getFormMetadataBasicInfo()
|
|
1458
1532
|
};
|
|
1459
|
-
return n(
|
|
1460
|
-
injectSymbolToken:
|
|
1533
|
+
return n(wn, {
|
|
1534
|
+
injectSymbolToken: fn,
|
|
1461
1535
|
"view-type": "NavList",
|
|
1462
|
-
editorParams:
|
|
1536
|
+
editorParams: r,
|
|
1463
1537
|
showFooter: !0,
|
|
1464
|
-
onCancel:
|
|
1465
|
-
onSubmit:
|
|
1538
|
+
onCancel: f,
|
|
1539
|
+
onSubmit: v
|
|
1466
1540
|
}, null);
|
|
1467
1541
|
}
|
|
1468
|
-
function
|
|
1469
|
-
|
|
1542
|
+
function c() {
|
|
1543
|
+
w = j.open({
|
|
1470
1544
|
title: "选择控制器",
|
|
1471
1545
|
width: 950,
|
|
1472
|
-
render:
|
|
1546
|
+
render: u,
|
|
1473
1547
|
showButtons: !1
|
|
1474
1548
|
});
|
|
1475
1549
|
}
|
|
1476
|
-
function
|
|
1477
|
-
|
|
1550
|
+
function S() {
|
|
1551
|
+
E.emit("newFunctionChanged");
|
|
1478
1552
|
}
|
|
1479
|
-
function
|
|
1553
|
+
function T() {
|
|
1480
1554
|
P && P.destroy && P.destroy();
|
|
1481
1555
|
}
|
|
1482
|
-
function t(
|
|
1556
|
+
function t(r) {
|
|
1483
1557
|
const {
|
|
1484
|
-
selectedCommand:
|
|
1485
|
-
selectedForm:
|
|
1486
|
-
} =
|
|
1487
|
-
!
|
|
1558
|
+
selectedCommand: s,
|
|
1559
|
+
selectedForm: N
|
|
1560
|
+
} = r;
|
|
1561
|
+
!N || (N == null ? void 0 : N.id) === $.getFormMetadataBasicInfo().id ? (g.selectBoundCommand(s, e.iteractionDisplayOrder), E.emit("selectBoundMethod")) : E.emit("addCommunication", r), T();
|
|
1488
1562
|
}
|
|
1489
|
-
function
|
|
1563
|
+
function _() {
|
|
1490
1564
|
const {
|
|
1491
|
-
getEventPath:
|
|
1492
|
-
} =
|
|
1493
|
-
return n(
|
|
1494
|
-
getEventPath:
|
|
1495
|
-
notifyService:
|
|
1496
|
-
useFormSchema:
|
|
1565
|
+
getEventPath: r
|
|
1566
|
+
} = g;
|
|
1567
|
+
return n(bt, {
|
|
1568
|
+
getEventPath: r,
|
|
1569
|
+
notifyService: a,
|
|
1570
|
+
useFormSchema: $,
|
|
1497
1571
|
sourceCommunication: e.sourceCommunication,
|
|
1498
1572
|
event: e.event,
|
|
1499
|
-
onCancel:
|
|
1573
|
+
onCancel: T,
|
|
1500
1574
|
onSubmit: t
|
|
1501
1575
|
}, null);
|
|
1502
1576
|
}
|
|
1503
|
-
function
|
|
1504
|
-
P =
|
|
1577
|
+
function H() {
|
|
1578
|
+
P = j.open({
|
|
1505
1579
|
title: "已有方法",
|
|
1506
1580
|
width: 950,
|
|
1507
1581
|
height: 500,
|
|
1508
1582
|
fitContent: !1,
|
|
1509
|
-
render:
|
|
1583
|
+
render: _,
|
|
1510
1584
|
showButtons: !1,
|
|
1511
1585
|
enableEsc: !1,
|
|
1512
1586
|
draggable: !0
|
|
1513
1587
|
});
|
|
1514
1588
|
}
|
|
1515
|
-
function
|
|
1516
|
-
|
|
1589
|
+
function R() {
|
|
1590
|
+
E.emit("close", null);
|
|
1517
1591
|
}
|
|
1518
|
-
function
|
|
1592
|
+
function y() {
|
|
1519
1593
|
return n("div", {
|
|
1520
1594
|
class: "f-command-breakline"
|
|
1521
1595
|
}, [Y("------------------------------------------------------------")]);
|
|
1522
1596
|
}
|
|
1523
|
-
function
|
|
1597
|
+
function A() {
|
|
1524
1598
|
return n("div", {
|
|
1525
1599
|
class: "f-page-internals-new-command"
|
|
1526
1600
|
}, [n("div", {
|
|
@@ -1529,71 +1603,71 @@ const Ln = {
|
|
|
1529
1603
|
class: "f-icon f-icon-panel-retraction"
|
|
1530
1604
|
}, null), n("div", {
|
|
1531
1605
|
class: "f-function-class",
|
|
1532
|
-
onClick: () =>
|
|
1606
|
+
onClick: () => c()
|
|
1533
1607
|
}, [Y("引入控制器")])]), n("div", {
|
|
1534
1608
|
class: "f-page-internals-new-command-func2"
|
|
1535
1609
|
}, [n("div", {
|
|
1536
1610
|
class: "f-icon f-icon-new-edit"
|
|
1537
1611
|
}, null), n("div", {
|
|
1538
1612
|
class: "f-function-class",
|
|
1539
|
-
onClick: () =>
|
|
1540
|
-
}, [Y("添加新方法")])]), (e.haveBoundCommand ||
|
|
1613
|
+
onClick: () => S()
|
|
1614
|
+
}, [Y("添加新方法")])]), (e.haveBoundCommand || p.value) && n("div", {
|
|
1541
1615
|
class: "f-page-internals-new-command-func3"
|
|
1542
1616
|
}, [n("div", {
|
|
1543
1617
|
class: "f-icon f-icon-licensed"
|
|
1544
1618
|
}, null), n("div", {
|
|
1545
1619
|
class: "f-function-class",
|
|
1546
|
-
onClick: () =>
|
|
1620
|
+
onClick: () => H()
|
|
1547
1621
|
}, [Y("已有方法")])])]);
|
|
1548
1622
|
}
|
|
1549
|
-
function
|
|
1550
|
-
|
|
1623
|
+
function i(r) {
|
|
1624
|
+
E.emit("selectMethod", r);
|
|
1551
1625
|
}
|
|
1552
1626
|
function o() {
|
|
1553
1627
|
return n("div", {
|
|
1554
1628
|
class: "f-page-command-source-choice"
|
|
1555
|
-
}, [n(
|
|
1556
|
-
controllers:
|
|
1557
|
-
onSelectMethod:
|
|
1629
|
+
}, [n(Ct, {
|
|
1630
|
+
controllers: C.value,
|
|
1631
|
+
onSelectMethod: i
|
|
1558
1632
|
}, null)]);
|
|
1559
1633
|
}
|
|
1560
1634
|
return () => n("div", {
|
|
1561
1635
|
class: "f-page-events-editor-command-source"
|
|
1562
|
-
}, [o(),
|
|
1636
|
+
}, [o(), y(), A(), y(), n("div", null, [n("div", {
|
|
1563
1637
|
class: "f-page-internals-close",
|
|
1564
|
-
onClick:
|
|
1638
|
+
onClick: R
|
|
1565
1639
|
}, [Y("取消")])])]);
|
|
1566
1640
|
}
|
|
1567
|
-
}),
|
|
1641
|
+
}), St = {
|
|
1568
1642
|
command: { type: Object, default: {} },
|
|
1569
1643
|
showParameter: { type: Boolean, default: !1 },
|
|
1570
1644
|
controller: { type: Object, default: {} },
|
|
1571
1645
|
/** 是否显示删除按钮 */
|
|
1572
1646
|
showDeleteIcon: { type: Boolean, default: !1 }
|
|
1573
|
-
},
|
|
1647
|
+
}, Ft = /* @__PURE__ */ te({
|
|
1574
1648
|
name: "FParameterEditor",
|
|
1575
|
-
props:
|
|
1649
|
+
props: St,
|
|
1576
1650
|
emits: ["confirm", "change", "targetChange", "viewSource", "deleteCommand"],
|
|
1577
|
-
setup(e,
|
|
1578
|
-
const
|
|
1579
|
-
const
|
|
1580
|
-
return
|
|
1651
|
+
setup(e, E) {
|
|
1652
|
+
const g = new fe(), h = X("FMessageBoxService"), a = b(W(e.command)), d = b(e.controller), F = b(0), C = K(() => a.value.id === "abandoned"), $ = K(() => a.value.id === "deleted"), j = K(() => e.showDeleteIcon), w = K(() => a.value !== null), P = X("useMethodsComposition"), p = b(e.showParameter), l = X("useFormSchema"), v = K(() => a.value.componentLists && a.value.hasPath), f = K(() => {
|
|
1653
|
+
const M = a.value.id !== "abandoned" && a.value.id !== "deleted", Q = v.value, oe = a.value.property && a.value.property.length > 0;
|
|
1654
|
+
return M && (Q || oe);
|
|
1581
1655
|
});
|
|
1582
|
-
function
|
|
1656
|
+
function u() {
|
|
1583
1657
|
const {
|
|
1584
|
-
targetComponent:
|
|
1585
|
-
} =
|
|
1586
|
-
let
|
|
1587
|
-
return
|
|
1588
|
-
if (
|
|
1589
|
-
|
|
1658
|
+
targetComponent: M
|
|
1659
|
+
} = a.value;
|
|
1660
|
+
let Q = "";
|
|
1661
|
+
return a.value.componentLists && a.value.componentLists.forEach((oe) => {
|
|
1662
|
+
if (oe.componentId === M) {
|
|
1663
|
+
Q = oe.viewModelId;
|
|
1590
1664
|
return;
|
|
1591
1665
|
}
|
|
1592
|
-
}),
|
|
1666
|
+
}), Q;
|
|
1593
1667
|
}
|
|
1594
|
-
const
|
|
1595
|
-
function
|
|
1596
|
-
|
|
1668
|
+
const c = b(u()), S = K(() => a.value.targetComponent || "");
|
|
1669
|
+
function T() {
|
|
1670
|
+
g.info({
|
|
1597
1671
|
position: "top-center",
|
|
1598
1672
|
message: "方法已被移除,请重新绑定"
|
|
1599
1673
|
});
|
|
@@ -1603,38 +1677,38 @@ const Ln = {
|
|
|
1603
1677
|
title: "方法已被移除,请重新绑定",
|
|
1604
1678
|
class: "f-icon f-icon-flowline-warning text-danger text-center ",
|
|
1605
1679
|
style: "font-size: 13px;margin-right:10px;width: 30px;height: 20px;",
|
|
1606
|
-
onClick: () =>
|
|
1680
|
+
onClick: () => T()
|
|
1607
1681
|
}, null);
|
|
1608
1682
|
}
|
|
1609
|
-
function
|
|
1610
|
-
|
|
1683
|
+
function _() {
|
|
1684
|
+
g.info({
|
|
1611
1685
|
position: "top-center",
|
|
1612
1686
|
message: "方法已失效,请重新绑定"
|
|
1613
1687
|
});
|
|
1614
1688
|
}
|
|
1615
|
-
function
|
|
1689
|
+
function H() {
|
|
1616
1690
|
return n("div", {
|
|
1617
1691
|
title: "'方法已被删除,请绑定其他方法'",
|
|
1618
1692
|
class: "f-icon f-icon-flowline-warning text-danger text-center ",
|
|
1619
1693
|
style: "font-size: 13px;margin-right:10px;width: 30px;height: 20px;",
|
|
1620
|
-
onClick: () =>
|
|
1694
|
+
onClick: () => _()
|
|
1621
1695
|
}, null);
|
|
1622
1696
|
}
|
|
1623
|
-
function
|
|
1624
|
-
|
|
1697
|
+
function R(M) {
|
|
1698
|
+
p.value = !p.value;
|
|
1625
1699
|
}
|
|
1626
|
-
function
|
|
1700
|
+
function y() {
|
|
1627
1701
|
return n("div", {
|
|
1628
1702
|
class: "f-icon f-icon-edit-button",
|
|
1629
1703
|
style: "font-size: 13px;margin-right:10px;",
|
|
1630
|
-
onClick: () =>
|
|
1704
|
+
onClick: () => R(F.value)
|
|
1631
1705
|
}, null);
|
|
1632
1706
|
}
|
|
1633
|
-
function
|
|
1634
|
-
|
|
1707
|
+
function A(M, Q) {
|
|
1708
|
+
a.value.targetComponent = M[0].componentId, E.emit("targetChange", a.value);
|
|
1635
1709
|
}
|
|
1636
|
-
function
|
|
1637
|
-
const
|
|
1710
|
+
function i() {
|
|
1711
|
+
const M = Ge({
|
|
1638
1712
|
content: "将此方法添加到指定的组件",
|
|
1639
1713
|
placement: "top"
|
|
1640
1714
|
});
|
|
@@ -1642,316 +1716,659 @@ const Ln = {
|
|
|
1642
1716
|
class: "f-page-parameter-editor-targetComponent"
|
|
1643
1717
|
}, [n("div", {
|
|
1644
1718
|
class: "f-page-parameter-editor-targetComponent-topic"
|
|
1645
|
-
}, [Y("挂载到目标组件"),
|
|
1719
|
+
}, [Y("挂载到目标组件"), He(n("span", {
|
|
1646
1720
|
class: "farris-label-tips ml-2"
|
|
1647
1721
|
}, [n("i", {
|
|
1648
1722
|
class: "f-icon f-icon-description-tips"
|
|
1649
|
-
}, null)]), [[
|
|
1723
|
+
}, null)]), [[We("tooltip"), M]])]), n("div", {
|
|
1650
1724
|
class: "f-page-parameter-editor-targetComponent-dropdown"
|
|
1651
|
-
}, [n(
|
|
1652
|
-
modelValue:
|
|
1653
|
-
"onUpdate:modelValue": (
|
|
1725
|
+
}, [n(tn, {
|
|
1726
|
+
modelValue: c.value,
|
|
1727
|
+
"onUpdate:modelValue": (Q) => c.value = Q,
|
|
1654
1728
|
enableClear: !1,
|
|
1655
1729
|
idField: "viewModelId",
|
|
1656
1730
|
valueField: "viewModelId",
|
|
1657
1731
|
textField: "componentId",
|
|
1658
|
-
data:
|
|
1732
|
+
data: a.value.componentLists,
|
|
1659
1733
|
editable: !1,
|
|
1660
|
-
onChange:
|
|
1734
|
+
onChange: A
|
|
1661
1735
|
}, null)])])]);
|
|
1662
1736
|
}
|
|
1663
|
-
function o(
|
|
1664
|
-
|
|
1737
|
+
function o(M, Q) {
|
|
1738
|
+
Q.value = M;
|
|
1665
1739
|
}
|
|
1666
|
-
function
|
|
1667
|
-
|
|
1668
|
-
}
|
|
1669
|
-
function
|
|
1670
|
-
let
|
|
1671
|
-
return
|
|
1672
|
-
}
|
|
1673
|
-
function M
|
|
1674
|
-
var
|
|
1675
|
-
const
|
|
1676
|
-
var
|
|
1677
|
-
return (
|
|
1678
|
-
}),
|
|
1679
|
-
assembleSchemaFieldsByComponent:
|
|
1680
|
-
assembleOutline:
|
|
1681
|
-
assembleStateVariables:
|
|
1682
|
-
assembleSchemaFieldsUnderBoundEntity:
|
|
1683
|
-
getEditor:
|
|
1684
|
-
} =
|
|
1685
|
-
designerMode:
|
|
1686
|
-
} =
|
|
1687
|
-
o(
|
|
1688
|
-
},
|
|
1689
|
-
var
|
|
1690
|
-
return ((
|
|
1740
|
+
function r() {
|
|
1741
|
+
E.emit("change", a.value);
|
|
1742
|
+
}
|
|
1743
|
+
function s() {
|
|
1744
|
+
let M = "";
|
|
1745
|
+
return S.value ? M = l.getViewModelIdByComponentId(S.value) : M = P.getViewModeId(), M;
|
|
1746
|
+
}
|
|
1747
|
+
function N(M, Q) {
|
|
1748
|
+
var Se, Fe, ye, Ee, ge, Ce, B, U, G, z, Z, ae, le, re, ie, Ne, Pe, Me, ue, Ve, Le;
|
|
1749
|
+
const oe = s(), Te = l.getViewModelById(oe).commands.find((ee) => {
|
|
1750
|
+
var se;
|
|
1751
|
+
return (ee == null ? void 0 : ee.id) === ((se = e.command) == null ? void 0 : se.id);
|
|
1752
|
+
}), ke = Ge(M.context.data), {
|
|
1753
|
+
assembleSchemaFieldsByComponent: Ae,
|
|
1754
|
+
assembleOutline: $e,
|
|
1755
|
+
assembleStateVariables: Oe,
|
|
1756
|
+
assembleSchemaFieldsUnderBoundEntity: De,
|
|
1757
|
+
getEditor: Re
|
|
1758
|
+
} = M.context.generalData, {
|
|
1759
|
+
designerMode: je
|
|
1760
|
+
} = l, Ue = (ee) => {
|
|
1761
|
+
o(ee, M), r();
|
|
1762
|
+
}, qe = (ee) => {
|
|
1763
|
+
var se, pe, ve, xe;
|
|
1764
|
+
return ((xe = (ve = (pe = (se = M == null ? void 0 : M.origin) == null ? void 0 : se.controlSource) == null ? void 0 : pe.context) == null ? void 0 : ve.data) == null ? void 0 : xe.value) === ":Entity" || ee.raw.children && ee.raw.children.length && (ee.disabled = !0), ee;
|
|
1691
1765
|
};
|
|
1692
|
-
return n(
|
|
1693
|
-
readonly:
|
|
1694
|
-
defaultValue:
|
|
1695
|
-
modelValue:
|
|
1696
|
-
"onUpdate:modelValue": (
|
|
1697
|
-
data:
|
|
1698
|
-
editor:
|
|
1699
|
-
fieldData:
|
|
1700
|
-
formData:
|
|
1701
|
-
varData:
|
|
1702
|
-
activeViewModelFieldData:
|
|
1703
|
-
editorControlSource: (
|
|
1704
|
-
customRowStatus:
|
|
1705
|
-
idField: ((
|
|
1706
|
-
textField: ((
|
|
1707
|
-
editable: (
|
|
1708
|
-
onConfirm: (
|
|
1709
|
-
o(
|
|
1766
|
+
return n(Ye, {
|
|
1767
|
+
readonly: je === "PC_RTC" && !Q.isRtcCommand,
|
|
1768
|
+
defaultValue: M == null ? void 0 : M.origin.defaultValue,
|
|
1769
|
+
modelValue: M.value,
|
|
1770
|
+
"onUpdate:modelValue": (ee) => M.value = ee,
|
|
1771
|
+
data: ke,
|
|
1772
|
+
editor: Re(M.value, M, Te, oe, Ue),
|
|
1773
|
+
fieldData: Ae(),
|
|
1774
|
+
formData: $e(),
|
|
1775
|
+
varData: Oe(),
|
|
1776
|
+
activeViewModelFieldData: De(S.value),
|
|
1777
|
+
editorControlSource: (Se = M == null ? void 0 : M.origin) == null ? void 0 : Se.controlSource,
|
|
1778
|
+
customRowStatus: qe,
|
|
1779
|
+
idField: ((ge = (Ee = (ye = (Fe = M == null ? void 0 : M.origin) == null ? void 0 : Fe.controlSource) == null ? void 0 : ye.context) == null ? void 0 : Ee.data) == null ? void 0 : ge.value) === ":Entity" ? "bindTo" : ((G = (U = (B = (Ce = M == null ? void 0 : M.origin) == null ? void 0 : Ce.controlSource) == null ? void 0 : B.context) == null ? void 0 : U.valueField) == null ? void 0 : G.value) || ((le = (ae = (Z = (z = M == null ? void 0 : M.origin) == null ? void 0 : z.controlSource) == null ? void 0 : Z.context) == null ? void 0 : ae.idField) == null ? void 0 : le.value) || "id",
|
|
1780
|
+
textField: ((Pe = (Ne = (ie = (re = M == null ? void 0 : M.origin) == null ? void 0 : re.controlSource) == null ? void 0 : ie.context) == null ? void 0 : Ne.textField) == null ? void 0 : Pe.value) || "label",
|
|
1781
|
+
editable: (Le = (Ve = (ue = (Me = M == null ? void 0 : M.origin) == null ? void 0 : Me.controlSource) == null ? void 0 : ue.context) == null ? void 0 : Ve.editable) == null ? void 0 : Le.value,
|
|
1782
|
+
onConfirm: (ee) => {
|
|
1783
|
+
o(ee, M), r();
|
|
1710
1784
|
},
|
|
1711
|
-
onValueChange: (
|
|
1712
|
-
var
|
|
1713
|
-
if (((
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1785
|
+
onValueChange: (ee) => {
|
|
1786
|
+
var se, pe;
|
|
1787
|
+
if (((se = M.origin) == null ? void 0 : se.Code) === "lookupId") {
|
|
1788
|
+
const ve = (pe = a.value.property) == null ? void 0 : pe.find((xe) => xe.name === "mappingFields");
|
|
1789
|
+
ve && ve.value && (ve.value = "");
|
|
1716
1790
|
}
|
|
1717
|
-
o(
|
|
1791
|
+
o(ee, M), r();
|
|
1718
1792
|
}
|
|
1719
1793
|
}, null);
|
|
1720
1794
|
}
|
|
1721
|
-
function
|
|
1722
|
-
var
|
|
1723
|
-
return (
|
|
1724
|
-
const
|
|
1725
|
-
content:
|
|
1795
|
+
function D() {
|
|
1796
|
+
var M;
|
|
1797
|
+
return (M = a.value.property) == null ? void 0 : M.map((Q, oe) => {
|
|
1798
|
+
const ce = Ge({
|
|
1799
|
+
content: Q.description,
|
|
1726
1800
|
placement: "top"
|
|
1727
1801
|
});
|
|
1728
1802
|
return n("div", {
|
|
1729
|
-
key:
|
|
1803
|
+
key: Q.name + oe
|
|
1730
1804
|
}, [n("div", {
|
|
1731
1805
|
class: "f-page-parameter-editor-row1"
|
|
1732
1806
|
}, [n("div", {
|
|
1733
1807
|
class: "f-page-parameter-editor-parameter-name"
|
|
1734
|
-
}, [
|
|
1808
|
+
}, [Q.shownName, Q.description && He(n("div", {
|
|
1735
1809
|
class: "ml-2 farris-label-tips"
|
|
1736
1810
|
}, [n("i", {
|
|
1737
1811
|
class: "f-icon f-icon-description-tips"
|
|
1738
|
-
}, null)]), [[
|
|
1812
|
+
}, null)]), [[We("tooltip"), ce]])])]), n("div", {
|
|
1739
1813
|
class: "f-page-parameter-editor-row2"
|
|
1740
|
-
}, [
|
|
1814
|
+
}, [N(Q, a.value)])]);
|
|
1741
1815
|
});
|
|
1742
1816
|
}
|
|
1743
1817
|
function m() {
|
|
1744
1818
|
return n("div", {
|
|
1745
1819
|
class: "f-page-parameter-editor-group"
|
|
1746
|
-
}, [
|
|
1820
|
+
}, [v.value && i(), D()]);
|
|
1747
1821
|
}
|
|
1748
|
-
function
|
|
1749
|
-
|
|
1750
|
-
command:
|
|
1751
|
-
event:
|
|
1822
|
+
function k(M) {
|
|
1823
|
+
M.stopPropagation(), E.emit("viewSource", {
|
|
1824
|
+
command: a.value,
|
|
1825
|
+
event: M
|
|
1752
1826
|
});
|
|
1753
1827
|
}
|
|
1754
|
-
function
|
|
1755
|
-
|
|
1756
|
-
|
|
1828
|
+
function O() {
|
|
1829
|
+
h.question(`确定删除命令【${a.value.name}】吗?`, "", () => {
|
|
1830
|
+
E.emit("deleteCommand");
|
|
1757
1831
|
});
|
|
1758
1832
|
}
|
|
1759
|
-
function
|
|
1833
|
+
function q() {
|
|
1760
1834
|
return n("div", {
|
|
1761
1835
|
class: "f-icon f-icon-yxs_delete",
|
|
1762
1836
|
title: "删除命令",
|
|
1763
|
-
onClick: (
|
|
1837
|
+
onClick: (M) => O()
|
|
1764
1838
|
}, null);
|
|
1765
1839
|
}
|
|
1766
|
-
const
|
|
1767
|
-
var
|
|
1840
|
+
const J = K(() => {
|
|
1841
|
+
var M;
|
|
1768
1842
|
return {
|
|
1769
|
-
cursor:
|
|
1843
|
+
cursor: C.value || d.value.isCommon || ((M = d.value) == null ? void 0 : M.label.indexOf(l == null ? void 0 : l.getModule().code)) === -1 ? "default" : "pointer"
|
|
1770
1844
|
};
|
|
1771
1845
|
});
|
|
1772
|
-
function
|
|
1846
|
+
function ne() {
|
|
1773
1847
|
return n("div", null, [n("div", {
|
|
1774
1848
|
class: "f-page-parameter-editor-first-row"
|
|
1775
1849
|
}, [n("span", {
|
|
1776
1850
|
class: "f-page-parameter-editor-command-name",
|
|
1777
|
-
style:
|
|
1778
|
-
title:
|
|
1779
|
-
onDblclick:
|
|
1780
|
-
}, [
|
|
1851
|
+
style: J.value,
|
|
1852
|
+
title: a.value.label,
|
|
1853
|
+
onDblclick: k
|
|
1854
|
+
}, [a.value.name]), n("div", {
|
|
1781
1855
|
class: "f-page-parameter-editor-first-row-icon"
|
|
1782
|
-
}, [
|
|
1856
|
+
}, [C.value && t(), $.value && H(), f.value && y(), j.value && q()])]), p.value && m()]);
|
|
1783
1857
|
}
|
|
1784
1858
|
return () => n("div", {
|
|
1785
1859
|
class: "f-page-parameter-editor"
|
|
1786
|
-
}, [
|
|
1860
|
+
}, [w.value && ne()]);
|
|
1861
|
+
}
|
|
1862
|
+
}), yt = {
|
|
1863
|
+
customClass: { type: String, default: "" },
|
|
1864
|
+
customStyle: { type: String, defaut: "" },
|
|
1865
|
+
/** 控制是否可见 */
|
|
1866
|
+
visible: { type: Boolean, default: !0 },
|
|
1867
|
+
/** 内部控件布局是否响应国际化 */
|
|
1868
|
+
adaptForLanguage: { type: Boolean, default: !0 }
|
|
1869
|
+
}, _e = /* @__PURE__ */ te({
|
|
1870
|
+
name: "FResponseForm",
|
|
1871
|
+
props: yt,
|
|
1872
|
+
emits: [],
|
|
1873
|
+
setup(e, E) {
|
|
1874
|
+
const g = b(), h = K(() => {
|
|
1875
|
+
const a = yn.getLocale(), d = e.customClass.split(" "), F = {
|
|
1876
|
+
"drag-container": !0
|
|
1877
|
+
};
|
|
1878
|
+
return d.reduce((C, $) => (C[$] = !0, C), F), e.adaptForLanguage && a && (F["farris-form-controls-inline"] = a !== "en"), F;
|
|
1879
|
+
});
|
|
1880
|
+
return () => e.visible && He(n("div", {
|
|
1881
|
+
ref: g,
|
|
1882
|
+
class: h.value,
|
|
1883
|
+
style: e.customStyle
|
|
1884
|
+
}, [E.slots.default && E.slots.default()]), [[We("area-response")]]);
|
|
1885
|
+
}
|
|
1886
|
+
}), Et = {
|
|
1887
|
+
id: { type: String, default: "" },
|
|
1888
|
+
customClass: { type: String, default: "" },
|
|
1889
|
+
customStyle: { type: String, default: "" },
|
|
1890
|
+
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
1891
|
+
editor: { type: Object, default: {} },
|
|
1892
|
+
label: { type: String, default: "" },
|
|
1893
|
+
/** value is uncertain because type is uncertain, default value should not be set */
|
|
1894
|
+
modelValue: { type: [String, Boolean, Array, Number] },
|
|
1895
|
+
// readonly: { type: Boolean, default: false },
|
|
1896
|
+
visible: { type: Boolean, default: !0 },
|
|
1897
|
+
required: { type: Boolean, default: !1 },
|
|
1898
|
+
showLabel: { type: Boolean, default: !0 },
|
|
1899
|
+
/**
|
|
1900
|
+
* visible相当于showLabel为true,none相当于showLabel为false
|
|
1901
|
+
*/
|
|
1902
|
+
showLabelType: { type: String, default: "visible" },
|
|
1903
|
+
type: { type: String, default: "input-group" },
|
|
1904
|
+
componentId: { type: String, default: "" },
|
|
1905
|
+
errors: { type: Object, default: null },
|
|
1906
|
+
fill: { type: Boolean, default: !1 }
|
|
1907
|
+
}, Nt = {
|
|
1908
|
+
id: { type: String },
|
|
1909
|
+
required: { type: Boolean, default: !1 },
|
|
1910
|
+
text: { type: String, default: "" },
|
|
1911
|
+
title: { type: String },
|
|
1912
|
+
valid: { type: Boolean, default: !0 },
|
|
1913
|
+
inValidTip: { type: String, default: "" },
|
|
1914
|
+
/**
|
|
1915
|
+
* 实际支持 'visible'可见 | 'reserve-space' 占位不显示
|
|
1916
|
+
*/
|
|
1917
|
+
showType: { type: String, default: "visible" }
|
|
1918
|
+
}, Pt = /* @__PURE__ */ te({
|
|
1919
|
+
name: "FDynamicFormLabel",
|
|
1920
|
+
props: Nt,
|
|
1921
|
+
emits: [],
|
|
1922
|
+
setup(e, E) {
|
|
1923
|
+
b(e.title || e.text);
|
|
1924
|
+
const g = b(e.required), h = b(e.text), a = b(e.valid), d = b(e.inValidTip);
|
|
1925
|
+
me(() => e.text, () => {
|
|
1926
|
+
h.value = e.text;
|
|
1927
|
+
}), me(() => e.required, (w, P) => {
|
|
1928
|
+
w !== P && (g.value = w);
|
|
1929
|
+
}), me([() => e.valid, () => e.inValidTip], ([w, P]) => {
|
|
1930
|
+
a.value = w, d.value = P;
|
|
1931
|
+
});
|
|
1932
|
+
const F = K(() => a.value ? h.value : d.value), C = K(() => a.value ? "" : "color:red"), $ = K(() => ({
|
|
1933
|
+
"col-form-label": !0,
|
|
1934
|
+
// 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
|
|
1935
|
+
"f-width-auto": g.value && (e.showType === "none" || !h.value)
|
|
1936
|
+
})), j = K(() => e.showType === "force-none" ? !1 : e.showType === "reserve-space" || g.value || !!h.value && e.showType !== "none");
|
|
1937
|
+
return () => j.value && n("label", {
|
|
1938
|
+
class: $.value,
|
|
1939
|
+
title: F.value,
|
|
1940
|
+
style: C.value
|
|
1941
|
+
}, [!a.value && n("span", {
|
|
1942
|
+
class: "f-icon f-icon-warning mr-1",
|
|
1943
|
+
style: "color: red; min-width: 16px;",
|
|
1944
|
+
title: d.value
|
|
1945
|
+
}, null), n("span", {
|
|
1946
|
+
class: "farris-label-text"
|
|
1947
|
+
}, [g.value && n("span", {
|
|
1948
|
+
class: "farris-label-info text-danger"
|
|
1949
|
+
}, [Y("*")]), e.showType === "visible" && h.value])]);
|
|
1950
|
+
}
|
|
1951
|
+
}), { globalStorageKey: Mt } = vn(), V = {}, L = {}, x = {}, I = {};
|
|
1952
|
+
async function Vt() {
|
|
1953
|
+
{
|
|
1954
|
+
const e = {
|
|
1955
|
+
schemaMap: Je,
|
|
1956
|
+
propertyConfigSchemaMap: mn,
|
|
1957
|
+
propertyEffectMap: dn,
|
|
1958
|
+
schemaResolverMap: un
|
|
1959
|
+
};
|
|
1960
|
+
Nn.register(V, L, x, I), En.register(V, L, x, I), Pn.register(V, L, x, I), Mn.register(V, L, x, I), Vn.register(V, L, x, I, e), Ln.register(V, L, x, I), Xe.register(V, L, x, I, e), Ze.register(V, L, x, I, e), Xe.register(V, L, x, I, e), Ze.register(V, L, x, I, e), tn.register(V, L, x, I, e), xn.register(V, L, x, I), Bn.register(V, L, x, I), Tn.register(V, L, x, I, e), In.register(V, L, x, I), kn.register(V, L, x, I, e), An.register(V, L, x, I, e), $n.register(V, L, x, I), On.register(V, L, x, I, e), Dn.register(V, L, x, I), To.register(V, L, x, I), Rn.register(V, L, x, I), jn.register(V, L, x, I), Po.register(V, L, x, I), qn.register(V, L, x, I), Gn.register(V, L, x, I, e), _n.register(V, L, x, I, e), Hn.register(V, L, x, I, e), zn.register(V, L, x, I), Wn.register(V, L, x, I, e), Kn.register(V, L, x, I), Jn.register(V, L, x, I), Qn.register(V, L, x, I), Yn.register(V, L, x, I, e), Xn.register(V, L, x, I), Zn.register(V, L, x, I, e), eo.register(V, L, x, I), no.register(V, L, x, I), oo.register(V, L, x, I), to.register(V, L, x, I, e), ao.register(V, L, x, I, e), lo.register(V, L, x, I), io.register(V, L, x, I, e), co.register(V, L, x, I), ro.register(V, L, x, I), bn.register(V, L, x), so.register(V, L, x, I), uo.register(V, L, x, I, e), mo.register(V, L, x, I), fo.register(V, L, x, I), vo.register(V, L, x, I), ho.register(V, L, x, I, e), Vo.register(V, L, x, I), go.register(V, L, x, I, e), Co.register(V, L, x, I), po.register(V, L, x, I), bo.register(V, L, x, I, e), wo.register(V, L, x, I), Cn.register(V, L, x, I), Fo.register(V, L, x, I), So.register(V, L, x, I), yo.register(V, L, x, I), Eo.register(V, L, x, I, e), No.register(V, L, x, I), Un.register(V, L, x, I), Ye.register(V, L, x, I), Mo.register(V, L, x, I, e), Lo.register(V, L, x, I), xo.register(V, L, x, I), Bo.register(V, L, x, I), Io.register(V, L, x, I), ko.register(V, L, x, I), Ao.register(V, L, x, I, e), $o.register(V, L, x, I), Oo.register(V, L, x, I), Do.register(V, L, x, I), Ro.register(V, L, x, I, e), jo.register(V, L, x, I, e), Uo.register(V, L, x, I);
|
|
1961
|
+
const E = window[Mt];
|
|
1962
|
+
if (E)
|
|
1963
|
+
for (const g in E)
|
|
1964
|
+
E[g].createPropsResolver = on, E[g].register(V, L, x);
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
function Lt() {
|
|
1968
|
+
Vt();
|
|
1969
|
+
function e(F) {
|
|
1970
|
+
const C = V[F];
|
|
1971
|
+
if (!C)
|
|
1972
|
+
throw new Error(`Could not find the editor of type '${F}'`);
|
|
1973
|
+
return C;
|
|
1974
|
+
}
|
|
1975
|
+
function E(F, C) {
|
|
1976
|
+
const $ = L[F];
|
|
1977
|
+
return $ ? $(C) : {};
|
|
1978
|
+
}
|
|
1979
|
+
function g(F) {
|
|
1980
|
+
switch (F) {
|
|
1981
|
+
case "check-box":
|
|
1982
|
+
return "onChangeValue";
|
|
1983
|
+
case "switch":
|
|
1984
|
+
return "onModelValueChanged";
|
|
1985
|
+
case "check-group":
|
|
1986
|
+
return "onChangeValue";
|
|
1987
|
+
case "combo-list":
|
|
1988
|
+
case "combo-tree":
|
|
1989
|
+
return "onChange";
|
|
1990
|
+
case "combo-lookup":
|
|
1991
|
+
return "";
|
|
1992
|
+
case "year-range":
|
|
1993
|
+
case "year-picker":
|
|
1994
|
+
case "month-range":
|
|
1995
|
+
case "month-picker":
|
|
1996
|
+
case "date-range":
|
|
1997
|
+
case "datetime-range":
|
|
1998
|
+
case "datetime-picker":
|
|
1999
|
+
return "onDatePicked";
|
|
2000
|
+
case "date-picker":
|
|
2001
|
+
return "onUpdate:modelValue";
|
|
2002
|
+
case "time-picker":
|
|
2003
|
+
return "onValueChange";
|
|
2004
|
+
case "input-group":
|
|
2005
|
+
return "onChange";
|
|
2006
|
+
case "lookup":
|
|
2007
|
+
case "sort-condition-editor":
|
|
2008
|
+
case "filter-condition-editor":
|
|
2009
|
+
case "code-editor":
|
|
2010
|
+
case "language-textbox":
|
|
2011
|
+
case "rich-text-editor":
|
|
2012
|
+
return "onUpdate:modelValue";
|
|
2013
|
+
case "number-range":
|
|
2014
|
+
return "onValueChange";
|
|
2015
|
+
case "number-spinner":
|
|
2016
|
+
return "onValueChange";
|
|
2017
|
+
case "radio-group":
|
|
2018
|
+
return "onChangeValue";
|
|
2019
|
+
case "text":
|
|
2020
|
+
return "";
|
|
2021
|
+
case "events-editor":
|
|
2022
|
+
return "onSavedCommandListChanged";
|
|
2023
|
+
case "grid-field-editor":
|
|
2024
|
+
case "item-collection-editor":
|
|
2025
|
+
case "response-form-layout-setting":
|
|
2026
|
+
case "response-layout-editor-setting":
|
|
2027
|
+
case "response-layout-splitter":
|
|
2028
|
+
case "menu-lookup":
|
|
2029
|
+
case "json-editor":
|
|
2030
|
+
return "onChange";
|
|
2031
|
+
case "field-selector":
|
|
2032
|
+
case "binding-selector":
|
|
2033
|
+
return "onFieldSelected";
|
|
2034
|
+
case "schema-selector":
|
|
2035
|
+
return "onSchemaSelected";
|
|
2036
|
+
case "mapping-editor":
|
|
2037
|
+
return "onMappingFieldsChanged";
|
|
2038
|
+
case "textarea":
|
|
2039
|
+
return "onChange";
|
|
2040
|
+
case "query-solution-config":
|
|
2041
|
+
case "solution-preset":
|
|
2042
|
+
case "filter-bar-config":
|
|
2043
|
+
return "onFieldsChanged";
|
|
2044
|
+
case "property-editor":
|
|
2045
|
+
return "onValueChange";
|
|
2046
|
+
case "expression-editor":
|
|
2047
|
+
return "onExpressionChanged";
|
|
2048
|
+
case "collection-property-editor":
|
|
2049
|
+
return "onValueChange";
|
|
2050
|
+
default:
|
|
2051
|
+
return "onUpdate:modelValue";
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
function h(F) {
|
|
2055
|
+
switch (F) {
|
|
2056
|
+
case "combo-list":
|
|
2057
|
+
case "input-group":
|
|
2058
|
+
case "textarea":
|
|
2059
|
+
return "onClear";
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
function a(F) {
|
|
2063
|
+
switch (F) {
|
|
2064
|
+
case "input-group":
|
|
2065
|
+
case "textarea":
|
|
2066
|
+
return "onMousedownEvent";
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
function d(F) {
|
|
2070
|
+
switch (F) {
|
|
2071
|
+
case "input-group":
|
|
2072
|
+
case "textarea":
|
|
2073
|
+
return "onMouseupEvent";
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
return { resolveEditorProps: E, resolveEditorType: e, getChangeFunctionName: g, getClearFunctionName: h, getMousedownFunctionName: a, getMouseupFunctionName: d };
|
|
2077
|
+
}
|
|
2078
|
+
const xt = {
|
|
2079
|
+
/**
|
|
2080
|
+
* 显示的错误信息
|
|
2081
|
+
*/
|
|
2082
|
+
errors: {
|
|
2083
|
+
type: Object,
|
|
2084
|
+
default: null
|
|
2085
|
+
}
|
|
2086
|
+
}, Bt = /* @__PURE__ */ te({
|
|
2087
|
+
name: "FValidationMessage",
|
|
2088
|
+
props: xt,
|
|
2089
|
+
emits: [],
|
|
2090
|
+
setup(e, E) {
|
|
2091
|
+
const g = b(e.errors);
|
|
2092
|
+
me(() => e.errors, (d) => {
|
|
2093
|
+
g.value = d;
|
|
2094
|
+
});
|
|
2095
|
+
const h = b(!0), a = K(() => {
|
|
2096
|
+
if (g.value) {
|
|
2097
|
+
const d = Object.keys(g.value).map((F) => {
|
|
2098
|
+
var C;
|
|
2099
|
+
return (C = g.value[F]) == null ? void 0 : C.name;
|
|
2100
|
+
});
|
|
2101
|
+
return d.length ? d.join(" ") : "";
|
|
2102
|
+
}
|
|
2103
|
+
return "";
|
|
2104
|
+
});
|
|
2105
|
+
return () => a.value && n("div", {
|
|
2106
|
+
class: "farris-feedback f-state-invalid",
|
|
2107
|
+
onClick: () => h.value = !h.value
|
|
2108
|
+
}, [!h.value && n("span", {
|
|
2109
|
+
class: "f-icon f-icon-message_warning f-feedback-icon"
|
|
2110
|
+
}, null), h.value && n("span", {
|
|
2111
|
+
class: "f-feedback-message"
|
|
2112
|
+
}, [a.value])]);
|
|
2113
|
+
}
|
|
2114
|
+
}), Ke = /* @__PURE__ */ te({
|
|
2115
|
+
name: "FDynamicFormGroup",
|
|
2116
|
+
props: Et,
|
|
2117
|
+
emits: ["change", "update:modelValue"],
|
|
2118
|
+
setup(e, E) {
|
|
2119
|
+
var r;
|
|
2120
|
+
const g = b(e.id), h = b(e.customClass), a = b(e.editor), d = b(e.label), F = b(e.modelValue), C = b(e.readonly), $ = b(((r = e.editor) == null ? void 0 : r.required) || e.required), j = b(e.showLabel), w = b(e.visible);
|
|
2121
|
+
b(e.type);
|
|
2122
|
+
const P = b(), p = b(e.errors), l = hn(), v = b(e.editor.type || "input-group"), f = K(() => j.value ? e.showLabelType : "none"), {
|
|
2123
|
+
resolveEditorProps: u,
|
|
2124
|
+
resolveEditorType: c,
|
|
2125
|
+
getChangeFunctionName: S,
|
|
2126
|
+
getClearFunctionName: T
|
|
2127
|
+
} = Lt(), t = K(() => {
|
|
2128
|
+
const s = {
|
|
2129
|
+
"form-group": !0,
|
|
2130
|
+
"farris-form-group": !0,
|
|
2131
|
+
"common-group": !0,
|
|
2132
|
+
"q-state-readonly": C.value,
|
|
2133
|
+
"form-group--in-mobile": l
|
|
2134
|
+
};
|
|
2135
|
+
return s["form-group--has-" + v.value] = !0, s;
|
|
2136
|
+
}), _ = K(() => {
|
|
2137
|
+
if (e.fill)
|
|
2138
|
+
return {
|
|
2139
|
+
maxWidth: "none"
|
|
2140
|
+
};
|
|
2141
|
+
});
|
|
2142
|
+
function H(s, N, D) {
|
|
2143
|
+
F.value = N !== void 0 ? N : s, E.emit("update:modelValue", F.value), E.emit("change", F.value, {
|
|
2144
|
+
newValue: s,
|
|
2145
|
+
newModelValue: N,
|
|
2146
|
+
parameters: D
|
|
2147
|
+
});
|
|
2148
|
+
}
|
|
2149
|
+
function R() {
|
|
2150
|
+
E.emit("update:modelValue", "");
|
|
2151
|
+
}
|
|
2152
|
+
function y(s) {
|
|
2153
|
+
return (...N) => {
|
|
2154
|
+
R(), typeof s == "function" && s(...N);
|
|
2155
|
+
};
|
|
2156
|
+
}
|
|
2157
|
+
function A(s) {
|
|
2158
|
+
return (N, D, m) => {
|
|
2159
|
+
H(N, D, m), typeof s == "function" && s(N, D, m);
|
|
2160
|
+
};
|
|
2161
|
+
}
|
|
2162
|
+
const i = K(() => {
|
|
2163
|
+
const s = a.value.type || "input-group", N = c(s), D = u(s, a.value), m = S(s), k = T(a.value.type);
|
|
2164
|
+
return k && (D[k] = y(D[k])), m && (D[m] = A(D[m])), (D.id == null || D.id === "") && (D.id = g.value), s === "number-range" && a.value.onBeginValueChange && typeof a.value.onBeginValueChange == "function" ? (a.value.onBeginValueChange && typeof a.value.onBeginValueChange == "function" && (D.onBeginValueChange = a.value.onBeginValueChange), a.value.onEndValueChange && typeof a.value.onEndValueChange == "function" && (D.onEndValueChange = a.value.onEndValueChange)) : s === "lookup" && a.value["onUpdate:idValue"] && typeof a.value["onUpdate:idValue"] == "function" ? (D["onUpdate:idValue"] = a.value["onUpdate:idValue"], D.id = g.value) : s === "collection-property-editor" && a.value.onSelectionChange && typeof a.value.onSelectionChange == "function" ? D.onSelectionChange = a.value.onSelectionChange : s === "property-editor" && (D.onBeforeOpenVariables = a.value.onBeforeOpenVariables), () => n(N, rn({
|
|
2165
|
+
ref: P
|
|
2166
|
+
}, D, {
|
|
2167
|
+
modelValue: F.value,
|
|
2168
|
+
"onUpdate:modelValue": (O) => F.value = O
|
|
2169
|
+
}), E.slots);
|
|
2170
|
+
});
|
|
2171
|
+
function o() {
|
|
2172
|
+
return n(Bt, {
|
|
2173
|
+
id: `${g.value}-validation-message`,
|
|
2174
|
+
errors: p.value
|
|
2175
|
+
}, null);
|
|
2176
|
+
}
|
|
2177
|
+
return me([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([s, N, D, m, k, O, q, J, ne, M]) => {
|
|
2178
|
+
var Q;
|
|
2179
|
+
g.value = s, h.value = N, a.value = D, d.value = m, F.value = k, C.value = O, $.value = ((Q = a.value) == null ? void 0 : Q.required) || q, j.value = J, w.value = ne, p.value = M;
|
|
2180
|
+
}), E.expose({
|
|
2181
|
+
editorRef: P
|
|
2182
|
+
}), () => w.value && n("div", {
|
|
2183
|
+
id: `${g.value}-form-group`,
|
|
2184
|
+
class: h.value,
|
|
2185
|
+
style: e.customStyle
|
|
2186
|
+
}, [n("div", {
|
|
2187
|
+
class: "farris-group-wrap",
|
|
2188
|
+
style: _.value
|
|
2189
|
+
}, [n("div", {
|
|
2190
|
+
class: t.value
|
|
2191
|
+
}, [n(Pt, {
|
|
2192
|
+
id: `${g.value}-lable`,
|
|
2193
|
+
showType: f.value,
|
|
2194
|
+
required: $.value,
|
|
2195
|
+
text: d.value,
|
|
2196
|
+
title: d.value
|
|
2197
|
+
}, null), n("div", {
|
|
2198
|
+
class: "farris-input-wrap"
|
|
2199
|
+
}, [i.value(), o()])])])]);
|
|
1787
2200
|
}
|
|
1788
|
-
})
|
|
2201
|
+
});
|
|
2202
|
+
_e.install = (e) => {
|
|
2203
|
+
e.component(_e.name, _e).component(Ke.name, Ke);
|
|
2204
|
+
};
|
|
2205
|
+
const It = /* @__PURE__ */ te({
|
|
1789
2206
|
name: "FSelectParameters",
|
|
1790
|
-
props:
|
|
2207
|
+
props: we,
|
|
1791
2208
|
emits: ["changed"],
|
|
1792
|
-
setup(e,
|
|
1793
|
-
var
|
|
1794
|
-
const
|
|
1795
|
-
|
|
2209
|
+
setup(e, E) {
|
|
2210
|
+
var i;
|
|
2211
|
+
const g = new fe();
|
|
2212
|
+
g.globalConfig = {
|
|
1796
2213
|
position: "top-center"
|
|
1797
2214
|
};
|
|
1798
|
-
const
|
|
1799
|
-
let
|
|
2215
|
+
const h = X("FMessageBoxService"), a = b(e.communication), d = b(((i = a.value) == null ? void 0 : i.paramMappings) || []), F = X("useFormSchema"), C = F.getFormMetadataBasicInfo(), $ = b([]), j = b([]), w = b({}), P = b({}), p = K(() => (o) => {
|
|
2216
|
+
let r = "", s = "";
|
|
1800
2217
|
if (o.sourceValue && o.targetVariable) {
|
|
1801
|
-
const
|
|
1802
|
-
|
|
2218
|
+
const N = j.value.find((D) => D.statePath === `${o.targetVariableViewModelId}.${o.targetVariable}`);
|
|
2219
|
+
N && N.name ? (P.value[o.targetVariable] = !1, r = `${o.sourceValue}--->${N.name}`, s = `将 ${o.sourceValue} 赋值给 ${N.name}`) : (P.value[o.targetVariable] = !0, r = `${o.sourceValue}--->${o.targetVariable}`, s = `将 ${o.sourceValue} 赋值给 ${o.targetVariable}`);
|
|
1803
2220
|
}
|
|
1804
2221
|
return {
|
|
1805
|
-
displayText:
|
|
1806
|
-
displayTextTip:
|
|
2222
|
+
displayText: r,
|
|
2223
|
+
displayTextTip: s
|
|
1807
2224
|
};
|
|
1808
2225
|
});
|
|
1809
|
-
|
|
1810
|
-
|
|
2226
|
+
me(() => e.communication, (o) => {
|
|
2227
|
+
a.value = o, d.value = a.value.paramMappings || [];
|
|
1811
2228
|
}, {
|
|
1812
2229
|
deep: !0
|
|
1813
2230
|
});
|
|
1814
|
-
function
|
|
1815
|
-
var
|
|
1816
|
-
const o =
|
|
1817
|
-
|
|
2231
|
+
function l() {
|
|
2232
|
+
var r;
|
|
2233
|
+
const o = d.value.length || 0;
|
|
2234
|
+
d.value.length && (d.value = d.value.filter((s) => !(!s.sourceValue && !s.targetVariable))), a.value.paramMappings = d.value, o !== ((r = a.value.paramMappings) == null ? void 0 : r.length) && E.emit("changed");
|
|
1818
2235
|
}
|
|
1819
|
-
|
|
1820
|
-
|
|
2236
|
+
cn(() => {
|
|
2237
|
+
l();
|
|
1821
2238
|
});
|
|
1822
|
-
function
|
|
1823
|
-
var m,
|
|
2239
|
+
function v(o) {
|
|
2240
|
+
var m, k;
|
|
1824
2241
|
const {
|
|
1825
|
-
viewmodels:
|
|
1826
|
-
components:
|
|
2242
|
+
viewmodels: r,
|
|
2243
|
+
components: s
|
|
1827
2244
|
} = o.module;
|
|
1828
|
-
if ((
|
|
2245
|
+
if ((r == null ? void 0 : r.length) === 0 || (s == null ? void 0 : s.length) === 0)
|
|
1829
2246
|
return [];
|
|
1830
|
-
const
|
|
1831
|
-
|
|
1832
|
-
const
|
|
1833
|
-
return
|
|
1834
|
-
if (!
|
|
2247
|
+
const N = [];
|
|
2248
|
+
j.value = [];
|
|
2249
|
+
const D = (k = (m = e.sourceCommunication) == null ? void 0 : m.parameterData) == null ? void 0 : k.getViewModelName;
|
|
2250
|
+
return r.forEach((O) => {
|
|
2251
|
+
if (!O || !O.states || O.states.length === 0)
|
|
1835
2252
|
return [];
|
|
1836
|
-
const
|
|
1837
|
-
|
|
1838
|
-
const
|
|
1839
|
-
...
|
|
1840
|
-
statePath:
|
|
2253
|
+
const q = [], J = s.find((Q) => Q.viewModel === O.id), ne = D && J ? D(J, O.name, o) : "";
|
|
2254
|
+
O.states.forEach((Q) => {
|
|
2255
|
+
const oe = {
|
|
2256
|
+
...Q,
|
|
2257
|
+
statePath: O.id + "." + Q.code
|
|
1841
2258
|
};
|
|
1842
|
-
|
|
1843
|
-
data:
|
|
2259
|
+
q.push({
|
|
2260
|
+
data: oe,
|
|
1844
2261
|
children: []
|
|
1845
|
-
}),
|
|
2262
|
+
}), j.value.push(oe);
|
|
1846
2263
|
});
|
|
1847
|
-
const
|
|
2264
|
+
const M = {
|
|
1848
2265
|
data: {
|
|
1849
|
-
id:
|
|
1850
|
-
code:
|
|
1851
|
-
name:
|
|
1852
|
-
statePath:
|
|
2266
|
+
id: O.id,
|
|
2267
|
+
code: O.code,
|
|
2268
|
+
name: ne || O.name,
|
|
2269
|
+
statePath: O.id
|
|
1853
2270
|
},
|
|
1854
|
-
children:
|
|
2271
|
+
children: q
|
|
1855
2272
|
};
|
|
1856
|
-
|
|
1857
|
-
}),
|
|
2273
|
+
N.push(M);
|
|
2274
|
+
}), N;
|
|
1858
2275
|
}
|
|
1859
|
-
function
|
|
1860
|
-
var o,
|
|
1861
|
-
if (!((o =
|
|
2276
|
+
function f() {
|
|
2277
|
+
var o, r;
|
|
2278
|
+
if (!((o = a.value) != null && o.target.formId))
|
|
1862
2279
|
return [];
|
|
1863
|
-
if (
|
|
1864
|
-
|
|
2280
|
+
if (a.value.target.formId === C.id)
|
|
2281
|
+
$.value = v(F.getFormSchema());
|
|
1865
2282
|
else {
|
|
1866
|
-
const
|
|
1867
|
-
(
|
|
2283
|
+
const s = F.externalFormSchema.get(a.value.target.externalContainerId);
|
|
2284
|
+
(r = s == null ? void 0 : s.content) != null && r.module && ($.value = v(s == null ? void 0 : s.content));
|
|
1868
2285
|
}
|
|
1869
2286
|
}
|
|
1870
|
-
function
|
|
1871
|
-
Object.keys(
|
|
1872
|
-
|
|
2287
|
+
function u() {
|
|
2288
|
+
Object.keys(w.value).forEach((o) => {
|
|
2289
|
+
w.value[o] = !1;
|
|
1873
2290
|
});
|
|
1874
2291
|
}
|
|
1875
|
-
function
|
|
1876
|
-
|
|
1877
|
-
const o =
|
|
1878
|
-
|
|
2292
|
+
function c() {
|
|
2293
|
+
u();
|
|
2294
|
+
const o = Qe().guid();
|
|
2295
|
+
d.value.push({
|
|
1879
2296
|
id: o,
|
|
1880
2297
|
sourceValue: "",
|
|
1881
2298
|
targetVariable: "",
|
|
1882
2299
|
targetVariableViewModelId: ""
|
|
1883
|
-
}),
|
|
2300
|
+
}), a.value.paramMappings = d.value, w.value[o] = !0;
|
|
1884
2301
|
}
|
|
1885
|
-
function
|
|
2302
|
+
function S(o, r, s) {
|
|
1886
2303
|
o.stopPropagation();
|
|
1887
|
-
function
|
|
1888
|
-
|
|
2304
|
+
function N() {
|
|
2305
|
+
d.value = d.value.filter((D) => D.id !== r.id), a.value.paramMappings = d.value, u(), E.emit("changed");
|
|
1889
2306
|
}
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
}) :
|
|
2307
|
+
s ? h.question(`确定删除参数【${s}】吗?`, "", () => {
|
|
2308
|
+
N();
|
|
2309
|
+
}) : N();
|
|
1893
2310
|
}
|
|
1894
|
-
function
|
|
1895
|
-
|
|
2311
|
+
function T(o) {
|
|
2312
|
+
w.value[o.id] || (u(), w.value[o.id] = !0);
|
|
1896
2313
|
}
|
|
1897
|
-
function t(o,
|
|
1898
|
-
if (!
|
|
1899
|
-
|
|
2314
|
+
function t(o, r) {
|
|
2315
|
+
if (!r.sourceValue) {
|
|
2316
|
+
g.warning("请选择源参数");
|
|
1900
2317
|
return;
|
|
1901
2318
|
}
|
|
1902
|
-
if (!
|
|
1903
|
-
|
|
2319
|
+
if (!r.targetVariable) {
|
|
2320
|
+
g.warning("请选择目标参数");
|
|
1904
2321
|
return;
|
|
1905
2322
|
}
|
|
1906
|
-
|
|
2323
|
+
w.value[o.id] = !1, Object.assign(o, r), delete o.statePath, E.emit("changed");
|
|
1907
2324
|
}
|
|
1908
|
-
function
|
|
1909
|
-
|
|
2325
|
+
function _(o) {
|
|
2326
|
+
w.value[o.id] = !1, !o.sourceValue && !o.targetVariable && !o.targetVariableViewModelId && (d.value = d.value.filter((r) => r.id !== o.id), a.value.paramMappings = d.value, E.emit("changed"));
|
|
1910
2327
|
}
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
}),
|
|
1914
|
-
|
|
2328
|
+
he(() => {
|
|
2329
|
+
f();
|
|
2330
|
+
}), me(() => e.communication, (o) => {
|
|
2331
|
+
f();
|
|
1915
2332
|
}, {
|
|
1916
2333
|
deep: !0
|
|
1917
2334
|
});
|
|
1918
|
-
function
|
|
1919
|
-
var
|
|
1920
|
-
if ((
|
|
2335
|
+
function H(o, r, s) {
|
|
2336
|
+
var N;
|
|
2337
|
+
if ((N = s.newValue) != null && N.length) {
|
|
1921
2338
|
const {
|
|
1922
|
-
statePath:
|
|
1923
|
-
} =
|
|
1924
|
-
if ((
|
|
1925
|
-
const m =
|
|
1926
|
-
|
|
2339
|
+
statePath: D
|
|
2340
|
+
} = s.newValue[0];
|
|
2341
|
+
if ((D == null ? void 0 : D.indexOf(".")) > 0) {
|
|
2342
|
+
const m = D.split(".");
|
|
2343
|
+
r.targetVariableViewModelId = m[0], r.targetVariable = m[1];
|
|
1927
2344
|
}
|
|
1928
2345
|
}
|
|
1929
2346
|
}
|
|
1930
|
-
function
|
|
2347
|
+
function R(o) {
|
|
1931
2348
|
return {
|
|
1932
2349
|
type: "combo-tree",
|
|
1933
2350
|
textField: "name",
|
|
1934
2351
|
valueField: "statePath",
|
|
1935
2352
|
idField: "statePath",
|
|
1936
|
-
data:
|
|
2353
|
+
data: $.value,
|
|
1937
2354
|
editable: !1,
|
|
1938
2355
|
enableClear: !1,
|
|
1939
|
-
customRowStatus: (
|
|
2356
|
+
customRowStatus: (r) => r.raw.parent ? (d.value.find((N) => N.id !== o.id && `${N.targetVariableViewModelId}.${N.targetVariable}` === r.raw.statePath) && (r.disabled = !0), r) : (r.disabled = !0, r)
|
|
1940
2357
|
};
|
|
1941
2358
|
}
|
|
1942
|
-
function
|
|
1943
|
-
const
|
|
1944
|
-
|
|
1945
|
-
const
|
|
1946
|
-
let
|
|
1947
|
-
if (
|
|
1948
|
-
const
|
|
1949
|
-
|
|
2359
|
+
function y(o) {
|
|
2360
|
+
const r = W(o);
|
|
2361
|
+
r.statePath = `${r.targetVariableViewModelId}.${r.targetVariable}`;
|
|
2362
|
+
const s = R(o);
|
|
2363
|
+
let N = F.getFormSchema();
|
|
2364
|
+
if (a.value.source.formId !== C.id) {
|
|
2365
|
+
const O = F.externalFormSchema.get(a.value.source.externalContainerId);
|
|
2366
|
+
O != null && O.content && (N = O == null ? void 0 : O.content);
|
|
1950
2367
|
}
|
|
1951
2368
|
const {
|
|
1952
|
-
assembleSchemaFieldsByComponent:
|
|
2369
|
+
assembleSchemaFieldsByComponent: D,
|
|
1953
2370
|
assembleOutline: m,
|
|
1954
|
-
assembleStateVariables:
|
|
2371
|
+
assembleStateVariables: k
|
|
1955
2372
|
} = e.sourceCommunication.parameterData;
|
|
1956
2373
|
return n("div", {
|
|
1957
2374
|
class: "param-panel"
|
|
@@ -1966,55 +2383,55 @@ const Ln = {
|
|
|
1966
2383
|
title: "源参数"
|
|
1967
2384
|
}, [n("span", {
|
|
1968
2385
|
class: "farris-label-text"
|
|
1969
|
-
}, [Y("源参数")])])])])]), n(
|
|
2386
|
+
}, [Y("源参数")])])])])]), n(Ye, {
|
|
1970
2387
|
class: "col-12 mb-2",
|
|
1971
|
-
modelValue:
|
|
1972
|
-
"onUpdate:modelValue": (
|
|
1973
|
-
fieldData:
|
|
1974
|
-
formData: m(
|
|
1975
|
-
varData:
|
|
2388
|
+
modelValue: r.sourceValue,
|
|
2389
|
+
"onUpdate:modelValue": (O) => r.sourceValue = O,
|
|
2390
|
+
fieldData: D(N),
|
|
2391
|
+
formData: m(N),
|
|
2392
|
+
varData: k(N),
|
|
1976
2393
|
editorType: "Default",
|
|
1977
2394
|
editable: !0
|
|
1978
|
-
}, null), n(
|
|
2395
|
+
}, null), n(Ke, {
|
|
1979
2396
|
label: "目标参数",
|
|
1980
|
-
modelValue:
|
|
1981
|
-
"onUpdate:modelValue": (
|
|
2397
|
+
modelValue: r.statePath,
|
|
2398
|
+
"onUpdate:modelValue": (O) => r.statePath = O,
|
|
1982
2399
|
customClass: "col-12 mb-2",
|
|
1983
|
-
editor:
|
|
1984
|
-
onChange: (
|
|
2400
|
+
editor: s,
|
|
2401
|
+
onChange: (O, q) => H(O, r, q)
|
|
1985
2402
|
}, null), n("div", {
|
|
1986
2403
|
class: "d-flex justify-content-end"
|
|
1987
2404
|
}, [n("button", {
|
|
1988
2405
|
class: "btn btn-secondary mr-2",
|
|
1989
|
-
onClick: () =>
|
|
2406
|
+
onClick: () => _(o)
|
|
1990
2407
|
}, [Y("取消")]), n("button", {
|
|
1991
2408
|
class: "btn btn-primary",
|
|
1992
|
-
onClick: () => t(o,
|
|
2409
|
+
onClick: () => t(o, r)
|
|
1993
2410
|
}, [Y("确定")])])]);
|
|
1994
2411
|
}
|
|
1995
|
-
|
|
1996
|
-
addParameter:
|
|
1997
|
-
closeAllParameterPanel:
|
|
2412
|
+
E.expose({
|
|
2413
|
+
addParameter: c,
|
|
2414
|
+
closeAllParameterPanel: u
|
|
1998
2415
|
});
|
|
1999
|
-
const
|
|
2416
|
+
const A = K(() => (o) => ({
|
|
2000
2417
|
"param-container": !0,
|
|
2001
2418
|
"ml-3": !0,
|
|
2002
2419
|
invalid: o
|
|
2003
2420
|
}));
|
|
2004
|
-
return () =>
|
|
2421
|
+
return () => d.value.length ? d.value.map((o) => {
|
|
2005
2422
|
const {
|
|
2006
|
-
displayText:
|
|
2007
|
-
displayTextTip:
|
|
2008
|
-
} =
|
|
2423
|
+
displayText: r,
|
|
2424
|
+
displayTextTip: s
|
|
2425
|
+
} = p.value(o), N = P.value[o.targetVariable];
|
|
2009
2426
|
return n("div", {
|
|
2010
|
-
class:
|
|
2427
|
+
class: A.value(N)
|
|
2011
2428
|
}, [n("div", {
|
|
2012
2429
|
class: "selected-item position-relative"
|
|
2013
2430
|
}, [n("span", {
|
|
2014
2431
|
class: "form-control mr-3",
|
|
2015
|
-
title:
|
|
2016
|
-
onClick: () =>
|
|
2017
|
-
}, [
|
|
2432
|
+
title: s,
|
|
2433
|
+
onClick: () => T(o)
|
|
2434
|
+
}, [r || "请配置参数"]), N ? n("span", {
|
|
2018
2435
|
title: "目标参数已失效,请重新选择"
|
|
2019
2436
|
}, [n("i", {
|
|
2020
2437
|
class: "f-icon f-icon-flowline-warning text-danger text-tip"
|
|
@@ -2023,465 +2440,465 @@ const Ln = {
|
|
|
2023
2440
|
}, [n("div", {
|
|
2024
2441
|
class: "f-icon f-icon-yxs_delete",
|
|
2025
2442
|
title: "删除参数",
|
|
2026
|
-
onClick: (
|
|
2027
|
-
}, null)])]),
|
|
2443
|
+
onClick: (D) => S(D, o, r)
|
|
2444
|
+
}, null)])]), w.value[o.id] ? y(o) : ""]);
|
|
2028
2445
|
}) : "";
|
|
2029
2446
|
}
|
|
2030
|
-
}),
|
|
2447
|
+
}), Tt = /* @__PURE__ */ te({
|
|
2031
2448
|
name: "FCommunicationCommandItem",
|
|
2032
|
-
props:
|
|
2449
|
+
props: we,
|
|
2033
2450
|
emits: ["addParameter", "deleteCommand", "toggleParameterPanel"],
|
|
2034
|
-
setup(e,
|
|
2035
|
-
const
|
|
2036
|
-
var
|
|
2037
|
-
if (!
|
|
2451
|
+
setup(e, E) {
|
|
2452
|
+
const g = b(e.communication), h = X("FMessageBoxService"), a = X("useFormSchema"), d = a.getFormMetadataBasicInfo(), F = b([]), C = b(), $ = b(!1), j = b([]), w = b(), P = b(!1), p = b(e.communication.paramMappings && e.communication.paramMappings.length > 0), l = K(() => {
|
|
2453
|
+
var i, o, r, s;
|
|
2454
|
+
if (!C.value)
|
|
2038
2455
|
return "";
|
|
2039
|
-
const
|
|
2040
|
-
return `${
|
|
2041
|
-
}),
|
|
2042
|
-
var
|
|
2043
|
-
if (!
|
|
2456
|
+
const y = ((i = C.value) == null ? void 0 : i.name) || ((o = C.value) == null ? void 0 : o.code) || "", A = ((r = w.value) == null ? void 0 : r.name) || ((s = w.value) == null ? void 0 : s.code) || "";
|
|
2457
|
+
return `${y}-${A}`;
|
|
2458
|
+
}), v = K(() => {
|
|
2459
|
+
var s, N, D, m, k, O;
|
|
2460
|
+
if (!C.value)
|
|
2044
2461
|
return "";
|
|
2045
|
-
const
|
|
2046
|
-
return `${
|
|
2047
|
-
${
|
|
2048
|
-
}),
|
|
2049
|
-
function
|
|
2050
|
-
var
|
|
2051
|
-
if ((
|
|
2052
|
-
const
|
|
2053
|
-
|
|
2054
|
-
containerId:
|
|
2055
|
-
id:
|
|
2056
|
-
code:
|
|
2462
|
+
const y = ((s = C.value) == null ? void 0 : s.name) || ((N = C.value) == null ? void 0 : N.code) || "", A = ((D = w.value) == null ? void 0 : D.name) || ((m = w.value) == null ? void 0 : m.code) || "", i = ((k = C.value) == null ? void 0 : k.code) || "", o = ((O = w.value) == null ? void 0 : O.code) || "", r = C.value.containerId ? `, 所属外部容器: ${C.value.containerId}` : "";
|
|
2463
|
+
return `${y} (${i}${r})
|
|
2464
|
+
${A} (${o})`;
|
|
2465
|
+
}), f = K(() => $.value ? "目标表单已失效,请删除当前方法。" : P.value ? "目标命令已失效,请删除当前方法。" : "");
|
|
2466
|
+
function u() {
|
|
2467
|
+
var y, A;
|
|
2468
|
+
if ((A = (y = g.value) == null ? void 0 : y.target) != null && A.formId) {
|
|
2469
|
+
const i = F.value.find((o) => o.id === g.value.target.formId && o.containerId === g.value.target.externalContainerId);
|
|
2470
|
+
$.value = !i, C.value = i || {
|
|
2471
|
+
containerId: g.value.target.externalContainerId,
|
|
2472
|
+
id: g.value.target.formId,
|
|
2473
|
+
code: g.value.target.formCode
|
|
2057
2474
|
};
|
|
2058
2475
|
} else
|
|
2059
|
-
|
|
2476
|
+
$.value = !1;
|
|
2060
2477
|
}
|
|
2061
|
-
function
|
|
2062
|
-
var
|
|
2063
|
-
const
|
|
2064
|
-
Array.from(
|
|
2065
|
-
var
|
|
2066
|
-
const
|
|
2067
|
-
((
|
|
2478
|
+
function c() {
|
|
2479
|
+
var A, i;
|
|
2480
|
+
const y = a.externalFormSchema;
|
|
2481
|
+
Array.from(y.keys()).forEach((o) => {
|
|
2482
|
+
var s, N;
|
|
2483
|
+
const r = y.get(o);
|
|
2484
|
+
((N = (s = g.value) == null ? void 0 : s.source) == null ? void 0 : N.externalContainerId) !== o && F.value.push({
|
|
2068
2485
|
containerId: o,
|
|
2069
|
-
id:
|
|
2070
|
-
code:
|
|
2071
|
-
name:
|
|
2486
|
+
id: r.id,
|
|
2487
|
+
code: r.code,
|
|
2488
|
+
name: r.name
|
|
2072
2489
|
});
|
|
2073
|
-
}), ((
|
|
2490
|
+
}), ((i = (A = g.value) == null ? void 0 : A.source) == null ? void 0 : i.formId) !== d.id && F.value.unshift({
|
|
2074
2491
|
containerId: "",
|
|
2075
|
-
id:
|
|
2076
|
-
code:
|
|
2077
|
-
name:
|
|
2078
|
-
}),
|
|
2079
|
-
}
|
|
2080
|
-
function
|
|
2081
|
-
var
|
|
2082
|
-
if ((
|
|
2492
|
+
id: d.id,
|
|
2493
|
+
code: d.code,
|
|
2494
|
+
name: d.name
|
|
2495
|
+
}), u();
|
|
2496
|
+
}
|
|
2497
|
+
function S() {
|
|
2498
|
+
var y, A;
|
|
2499
|
+
if ((A = (y = g.value) == null ? void 0 : y.target) != null && A.commandCode) {
|
|
2083
2500
|
const {
|
|
2084
|
-
commandCode:
|
|
2501
|
+
commandCode: i,
|
|
2085
2502
|
commandViewmodelId: o
|
|
2086
|
-
} =
|
|
2087
|
-
|
|
2088
|
-
code:
|
|
2089
|
-
}, P.value = !
|
|
2503
|
+
} = g.value.target, r = j.value.find((s) => s.code === i && s.viewmodelId === o);
|
|
2504
|
+
w.value = r || {
|
|
2505
|
+
code: g.value.target.commandCode
|
|
2506
|
+
}, P.value = !r;
|
|
2090
2507
|
} else
|
|
2091
|
-
|
|
2508
|
+
w.value = null, P.value = !1;
|
|
2092
2509
|
}
|
|
2093
|
-
function y
|
|
2094
|
-
var
|
|
2510
|
+
function T(y) {
|
|
2511
|
+
var r, s;
|
|
2095
2512
|
const {
|
|
2096
|
-
viewmodels:
|
|
2097
|
-
components:
|
|
2098
|
-
} =
|
|
2099
|
-
if ((
|
|
2513
|
+
viewmodels: A,
|
|
2514
|
+
components: i
|
|
2515
|
+
} = y.module;
|
|
2516
|
+
if ((A == null ? void 0 : A.length) === 0 || (i == null ? void 0 : i.length) === 0)
|
|
2100
2517
|
return [];
|
|
2101
|
-
|
|
2102
|
-
const o = (
|
|
2103
|
-
|
|
2104
|
-
if (!
|
|
2518
|
+
j.value = [];
|
|
2519
|
+
const o = (s = (r = e.sourceCommunication) == null ? void 0 : r.parameterData) == null ? void 0 : s.getViewModelName;
|
|
2520
|
+
A.forEach((N) => {
|
|
2521
|
+
if (!N || !N.commands || N.commands.length === 0)
|
|
2105
2522
|
return [];
|
|
2106
|
-
const
|
|
2107
|
-
|
|
2108
|
-
id:
|
|
2109
|
-
code:
|
|
2110
|
-
name: m ||
|
|
2111
|
-
}),
|
|
2112
|
-
|
|
2113
|
-
...
|
|
2114
|
-
viewmodelId:
|
|
2523
|
+
const D = i.find((k) => k.viewModel === N.id), m = o && D ? o(D, N.name, y) : "";
|
|
2524
|
+
j.value.push({
|
|
2525
|
+
id: N.id,
|
|
2526
|
+
code: N.code,
|
|
2527
|
+
name: m || N.name
|
|
2528
|
+
}), N.commands.forEach((k) => {
|
|
2529
|
+
k.isInvalid || j.value.push({
|
|
2530
|
+
...k,
|
|
2531
|
+
viewmodelId: N.id,
|
|
2115
2532
|
isCommandNode: !0
|
|
2116
2533
|
});
|
|
2117
2534
|
});
|
|
2118
2535
|
});
|
|
2119
2536
|
}
|
|
2120
2537
|
function t() {
|
|
2121
|
-
var
|
|
2122
|
-
if (!((
|
|
2538
|
+
var y, A, i;
|
|
2539
|
+
if (!((y = C.value) != null && y.id))
|
|
2123
2540
|
return [];
|
|
2124
|
-
if (
|
|
2125
|
-
|
|
2541
|
+
if (C.value.id === d.id)
|
|
2542
|
+
T(a.getFormSchema());
|
|
2126
2543
|
else {
|
|
2127
|
-
const o =
|
|
2128
|
-
(
|
|
2544
|
+
const o = a.externalFormSchema.get((A = C.value) == null ? void 0 : A.containerId);
|
|
2545
|
+
(i = o == null ? void 0 : o.content) != null && i.module && T(o.content);
|
|
2129
2546
|
}
|
|
2130
|
-
|
|
2547
|
+
S();
|
|
2131
2548
|
}
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
}),
|
|
2135
|
-
|
|
2549
|
+
he(() => {
|
|
2550
|
+
c(), t();
|
|
2551
|
+
}), me(() => e.communication, (y) => {
|
|
2552
|
+
p.value = e.communication.paramMappings && e.communication.paramMappings.length > 0, u(), t();
|
|
2136
2553
|
}, {
|
|
2137
2554
|
deep: !0
|
|
2138
2555
|
});
|
|
2139
|
-
function
|
|
2140
|
-
|
|
2556
|
+
function _() {
|
|
2557
|
+
E.emit("addParameter");
|
|
2141
2558
|
}
|
|
2142
|
-
function
|
|
2143
|
-
|
|
2144
|
-
|
|
2559
|
+
function H() {
|
|
2560
|
+
h.question(`确定删除命令【${l.value}】吗?`, "", () => {
|
|
2561
|
+
E.emit("deleteCommand");
|
|
2145
2562
|
});
|
|
2146
2563
|
}
|
|
2147
|
-
function
|
|
2148
|
-
|
|
2564
|
+
function R() {
|
|
2565
|
+
E.emit("toggleParameterPanel");
|
|
2149
2566
|
}
|
|
2150
2567
|
return () => n("div", {
|
|
2151
2568
|
class: "form-container position-relative"
|
|
2152
|
-
}, [
|
|
2569
|
+
}, [l.value && n("div", {
|
|
2153
2570
|
class: "f-page-parameter-editor-first-row"
|
|
2154
2571
|
}, [n("span", {
|
|
2155
2572
|
class: "f-page-parameter-editor-command-name",
|
|
2156
|
-
title:
|
|
2157
|
-
}, [
|
|
2573
|
+
title: v.value
|
|
2574
|
+
}, [l.value]), n("div", {
|
|
2158
2575
|
class: "f-page-parameter-editor-first-row-icon"
|
|
2159
|
-
}, [
|
|
2160
|
-
title:
|
|
2576
|
+
}, [$.value || P.value ? n("div", null, [n("span", {
|
|
2577
|
+
title: f.value
|
|
2161
2578
|
}, [n("i", {
|
|
2162
2579
|
class: "ml-2 f-icon f-icon-flowline-warning text-danger text-tip"
|
|
2163
2580
|
}, null)]), n("div", {
|
|
2164
2581
|
class: "f-icon f-icon-yxs_delete",
|
|
2165
2582
|
title: "删除命令",
|
|
2166
|
-
onClick: (
|
|
2167
|
-
}, null)]) : n(
|
|
2583
|
+
onClick: (y) => H()
|
|
2584
|
+
}, null)]) : n(Ie, null, [n("div", {
|
|
2168
2585
|
class: "f-icon f-icon-home-add",
|
|
2169
2586
|
title: "新增参数",
|
|
2170
2587
|
style: "font-size: 11px;",
|
|
2171
|
-
onClick:
|
|
2172
|
-
}, null),
|
|
2588
|
+
onClick: _
|
|
2589
|
+
}, null), p.value && n("div", {
|
|
2173
2590
|
class: "f-icon f-icon-edit-button",
|
|
2174
2591
|
title: "收折参数",
|
|
2175
|
-
onClick: () =>
|
|
2592
|
+
onClick: () => R()
|
|
2176
2593
|
}, null), n("div", {
|
|
2177
2594
|
class: "f-icon f-icon-yxs_delete",
|
|
2178
2595
|
title: "删除命令",
|
|
2179
|
-
onClick: (
|
|
2596
|
+
onClick: (y) => H()
|
|
2180
2597
|
}, null)])])])]);
|
|
2181
2598
|
}
|
|
2182
|
-
}),
|
|
2599
|
+
}), kt = /* @__PURE__ */ te({
|
|
2183
2600
|
name: "FCombineForm",
|
|
2184
|
-
props:
|
|
2601
|
+
props: we,
|
|
2185
2602
|
emits: ["changed", "deleteCommand", "addCommand"],
|
|
2186
|
-
setup(e,
|
|
2187
|
-
const
|
|
2188
|
-
saveCommunication:
|
|
2189
|
-
} =
|
|
2190
|
-
var
|
|
2191
|
-
return ((
|
|
2192
|
-
}),
|
|
2193
|
-
function
|
|
2194
|
-
|
|
2603
|
+
setup(e, E) {
|
|
2604
|
+
const g = X("useFormSchema"), {
|
|
2605
|
+
saveCommunication: h
|
|
2606
|
+
} = be(g), a = b(e.communication), d = K(() => {
|
|
2607
|
+
var u, c, S, T;
|
|
2608
|
+
return ((c = (u = a.value) == null ? void 0 : u.source) == null ? void 0 : c.componentId) && ((T = (S = a.value) == null ? void 0 : S.source) == null ? void 0 : T.event);
|
|
2609
|
+
}), F = b(!0), C = b(!0), $ = b(), j = b();
|
|
2610
|
+
function w() {
|
|
2611
|
+
h(a.value), E.emit("changed", a.value);
|
|
2195
2612
|
}
|
|
2196
2613
|
function P() {
|
|
2197
|
-
|
|
2614
|
+
$.value && $.value.addParameter(), C.value = !1;
|
|
2198
2615
|
}
|
|
2199
|
-
function
|
|
2200
|
-
|
|
2616
|
+
function p() {
|
|
2617
|
+
E.emit("deleteCommand");
|
|
2201
2618
|
}
|
|
2202
|
-
function
|
|
2203
|
-
|
|
2619
|
+
function l() {
|
|
2620
|
+
C.value = !C.value;
|
|
2204
2621
|
}
|
|
2205
|
-
const
|
|
2206
|
-
"d-none":
|
|
2622
|
+
const v = K(() => ({
|
|
2623
|
+
"d-none": C.value
|
|
2207
2624
|
}));
|
|
2208
|
-
function
|
|
2209
|
-
|
|
2625
|
+
function f() {
|
|
2626
|
+
$.value && $.value.closeAllParameterPanel();
|
|
2210
2627
|
}
|
|
2211
|
-
return
|
|
2212
|
-
closeAllParameterPanel:
|
|
2628
|
+
return E.expose({
|
|
2629
|
+
closeAllParameterPanel: f
|
|
2213
2630
|
}), () => n("div", {
|
|
2214
2631
|
class: "combine-form-container pb-2"
|
|
2215
|
-
}, [
|
|
2216
|
-
ref:
|
|
2217
|
-
communication:
|
|
2632
|
+
}, [d.value && n(Ie, null, [n(Tt, {
|
|
2633
|
+
ref: j,
|
|
2634
|
+
communication: a.value,
|
|
2218
2635
|
sourceCommunication: e.sourceCommunication,
|
|
2219
2636
|
onAddParameter: P,
|
|
2220
|
-
onDeleteCommand:
|
|
2221
|
-
onToggleParameterPanel:
|
|
2222
|
-
}, null),
|
|
2223
|
-
class:
|
|
2224
|
-
}, [n(
|
|
2225
|
-
ref:
|
|
2226
|
-
communication:
|
|
2227
|
-
onChanged:
|
|
2637
|
+
onDeleteCommand: p,
|
|
2638
|
+
onToggleParameterPanel: l
|
|
2639
|
+
}, null), F.value && n("div", {
|
|
2640
|
+
class: v.value
|
|
2641
|
+
}, [n(It, {
|
|
2642
|
+
ref: $,
|
|
2643
|
+
communication: a.value,
|
|
2644
|
+
onChanged: w,
|
|
2228
2645
|
sourceCommunication: e.sourceCommunication
|
|
2229
2646
|
}, null)])])]);
|
|
2230
2647
|
}
|
|
2231
|
-
}),
|
|
2648
|
+
}), At = /* @__PURE__ */ te({
|
|
2232
2649
|
name: "FSelectCommunicationCommand",
|
|
2233
|
-
props:
|
|
2650
|
+
props: we,
|
|
2234
2651
|
emits: ["selectCommand", "addParameter", "deleteCommand", "toggleParameterPanel"],
|
|
2235
|
-
setup(e,
|
|
2236
|
-
const
|
|
2237
|
-
function
|
|
2238
|
-
var
|
|
2239
|
-
const
|
|
2240
|
-
Array.from(
|
|
2241
|
-
var
|
|
2242
|
-
const t =
|
|
2243
|
-
((
|
|
2244
|
-
containerId:
|
|
2652
|
+
setup(e, E) {
|
|
2653
|
+
const g = X("useFormSchema"), h = g.getFormMetadataBasicInfo(), a = b([]), d = b(), F = b([]), C = b(), $ = b(!0), j = b(!1);
|
|
2654
|
+
function w() {
|
|
2655
|
+
var S;
|
|
2656
|
+
const c = g.externalFormSchema;
|
|
2657
|
+
Array.from(c.keys()).forEach((T) => {
|
|
2658
|
+
var _;
|
|
2659
|
+
const t = c.get(T);
|
|
2660
|
+
((_ = e.sourceCommunication) == null ? void 0 : _.externalContainerId) !== T && a.value.push({
|
|
2661
|
+
containerId: T,
|
|
2245
2662
|
id: t.id,
|
|
2246
2663
|
code: t.code,
|
|
2247
2664
|
name: t.name
|
|
2248
2665
|
});
|
|
2249
|
-
}), ((
|
|
2666
|
+
}), ((S = e.sourceCommunication) == null ? void 0 : S.formId) !== h.id && a.value.unshift({
|
|
2250
2667
|
containerId: "",
|
|
2251
|
-
id:
|
|
2252
|
-
code:
|
|
2253
|
-
name:
|
|
2668
|
+
id: h.id,
|
|
2669
|
+
code: h.code,
|
|
2670
|
+
name: h.name
|
|
2254
2671
|
});
|
|
2255
2672
|
}
|
|
2256
|
-
function P(
|
|
2257
|
-
var
|
|
2673
|
+
function P(c) {
|
|
2674
|
+
var _, H;
|
|
2258
2675
|
const {
|
|
2259
|
-
viewmodels:
|
|
2260
|
-
components:
|
|
2261
|
-
} =
|
|
2262
|
-
if ((
|
|
2676
|
+
viewmodels: S,
|
|
2677
|
+
components: T
|
|
2678
|
+
} = c.module;
|
|
2679
|
+
if ((S == null ? void 0 : S.length) === 0 || (T == null ? void 0 : T.length) === 0)
|
|
2263
2680
|
return [];
|
|
2264
|
-
|
|
2265
|
-
const t = (
|
|
2266
|
-
|
|
2267
|
-
if (!
|
|
2681
|
+
F.value = [];
|
|
2682
|
+
const t = (H = (_ = e.sourceCommunication) == null ? void 0 : _.parameterData) == null ? void 0 : H.getViewModelName;
|
|
2683
|
+
S.forEach((R) => {
|
|
2684
|
+
if (!R || !R.commands || R.commands.length === 0)
|
|
2268
2685
|
return [];
|
|
2269
|
-
const
|
|
2270
|
-
|
|
2271
|
-
id:
|
|
2272
|
-
code:
|
|
2273
|
-
name:
|
|
2274
|
-
}),
|
|
2275
|
-
|
|
2276
|
-
...
|
|
2277
|
-
viewmodelId:
|
|
2686
|
+
const y = T.find((i) => i.viewModel === R.id), A = t && y ? t(y, R.name, c) : "";
|
|
2687
|
+
F.value.push({
|
|
2688
|
+
id: R.id,
|
|
2689
|
+
code: R.code,
|
|
2690
|
+
name: A || R.name
|
|
2691
|
+
}), R.commands.forEach((i) => {
|
|
2692
|
+
i.isInvalid || F.value.push({
|
|
2693
|
+
...i,
|
|
2694
|
+
viewmodelId: R.id,
|
|
2278
2695
|
isCommandNode: !0
|
|
2279
2696
|
});
|
|
2280
2697
|
});
|
|
2281
2698
|
});
|
|
2282
2699
|
}
|
|
2283
|
-
function
|
|
2284
|
-
var
|
|
2285
|
-
if (!((
|
|
2700
|
+
function p() {
|
|
2701
|
+
var c, S, T;
|
|
2702
|
+
if (!((c = d.value) != null && c.id))
|
|
2286
2703
|
return [];
|
|
2287
|
-
if (
|
|
2288
|
-
P(
|
|
2704
|
+
if (d.value.id === h.id)
|
|
2705
|
+
P(g.getFormSchema());
|
|
2289
2706
|
else {
|
|
2290
|
-
const t =
|
|
2291
|
-
(
|
|
2707
|
+
const t = g.externalFormSchema.get((S = d.value) == null ? void 0 : S.containerId);
|
|
2708
|
+
(T = t == null ? void 0 : t.content) != null && T.module && P(t.content);
|
|
2292
2709
|
}
|
|
2293
2710
|
}
|
|
2294
|
-
|
|
2295
|
-
|
|
2711
|
+
he(() => {
|
|
2712
|
+
w(), p();
|
|
2296
2713
|
});
|
|
2297
|
-
function
|
|
2298
|
-
|
|
2714
|
+
function l(c) {
|
|
2715
|
+
d.value = c, $.value = !1, j.value = !0, p();
|
|
2299
2716
|
}
|
|
2300
|
-
const
|
|
2301
|
-
var
|
|
2717
|
+
const v = K(() => (c) => {
|
|
2718
|
+
var S, T;
|
|
2302
2719
|
return {
|
|
2303
2720
|
item: !0,
|
|
2304
|
-
selected: ((
|
|
2721
|
+
selected: ((S = d.value) == null ? void 0 : S.id) === c.id && ((T = d.value) == null ? void 0 : T.containerId) === c.containerId
|
|
2305
2722
|
};
|
|
2306
|
-
}),
|
|
2307
|
-
var
|
|
2723
|
+
}), f = K(() => (c) => {
|
|
2724
|
+
var S;
|
|
2308
2725
|
return {
|
|
2309
2726
|
item: !0,
|
|
2310
|
-
selected: ((
|
|
2311
|
-
"pl-4":
|
|
2312
|
-
disabled: !
|
|
2727
|
+
selected: ((S = C.value) == null ? void 0 : S.id) === c.id,
|
|
2728
|
+
"pl-4": c.isCommandNode,
|
|
2729
|
+
disabled: !c.isCommandNode
|
|
2313
2730
|
};
|
|
2314
2731
|
});
|
|
2315
|
-
function
|
|
2316
|
-
|
|
2317
|
-
targetForm:
|
|
2318
|
-
targetCommand:
|
|
2732
|
+
function u(c) {
|
|
2733
|
+
c.isCommandNode && (j.value = !1, C.value = c, E.emit("selectCommand", {
|
|
2734
|
+
targetForm: d.value,
|
|
2735
|
+
targetCommand: c
|
|
2319
2736
|
}));
|
|
2320
2737
|
}
|
|
2321
2738
|
return () => n("div", {
|
|
2322
2739
|
class: "form-container position-relative"
|
|
2323
|
-
}, [
|
|
2740
|
+
}, [$.value && n("div", {
|
|
2324
2741
|
class: "item-list"
|
|
2325
2742
|
}, [n("span", {
|
|
2326
2743
|
class: "tip"
|
|
2327
|
-
}, [Y("请选择目标页面")]),
|
|
2328
|
-
class:
|
|
2329
|
-
onClick: () =>
|
|
2330
|
-
title:
|
|
2331
|
-
}, [
|
|
2744
|
+
}, [Y("请选择目标页面")]), a.value.map((c) => n("span", {
|
|
2745
|
+
class: v.value(c),
|
|
2746
|
+
onClick: () => l(c),
|
|
2747
|
+
title: c.containerId ? `所属外部容器:${c.containerId}` : "当前页面"
|
|
2748
|
+
}, [c.name]))]), j.value ? n("div", {
|
|
2332
2749
|
class: "item-list"
|
|
2333
2750
|
}, [n("span", {
|
|
2334
2751
|
class: "tip"
|
|
2335
|
-
}, [Y("请选择目标命令")]),
|
|
2336
|
-
class:
|
|
2337
|
-
title:
|
|
2338
|
-
onClick: () =>
|
|
2339
|
-
}, [
|
|
2752
|
+
}, [Y("请选择目标命令")]), F.value.map((c) => n("span", {
|
|
2753
|
+
class: f.value(c),
|
|
2754
|
+
title: c.code,
|
|
2755
|
+
onClick: () => u(c)
|
|
2756
|
+
}, [c.name]))]) : ""]);
|
|
2340
2757
|
}
|
|
2341
|
-
}),
|
|
2758
|
+
}), $t = /* @__PURE__ */ te({
|
|
2342
2759
|
name: "FInteractionItem",
|
|
2343
|
-
props:
|
|
2760
|
+
props: vt,
|
|
2344
2761
|
emits: ["addAction", "delete", "toggle"],
|
|
2345
|
-
setup(e,
|
|
2346
|
-
var
|
|
2762
|
+
setup(e, E) {
|
|
2763
|
+
var ge, Ce;
|
|
2347
2764
|
const {
|
|
2348
|
-
guid:
|
|
2349
|
-
} =
|
|
2350
|
-
toggleSelectingMethod:
|
|
2351
|
-
emitFinalState:
|
|
2352
|
-
getViewModeId:
|
|
2353
|
-
getMethodsOnViewModel:
|
|
2354
|
-
getComponentList:
|
|
2355
|
-
updateTarget:
|
|
2765
|
+
guid: g
|
|
2766
|
+
} = Qe(), h = X("FMessageBoxService"), a = X("useMethodsComposition"), {
|
|
2767
|
+
toggleSelectingMethod: d,
|
|
2768
|
+
emitFinalState: F,
|
|
2769
|
+
getViewModeId: C,
|
|
2770
|
+
getMethodsOnViewModel: $,
|
|
2771
|
+
getComponentList: j,
|
|
2772
|
+
updateTarget: w,
|
|
2356
2773
|
updateCommandHasPath: P
|
|
2357
|
-
} =
|
|
2358
|
-
clearCommunicationById:
|
|
2359
|
-
resolveSourceControlEventTitle:
|
|
2360
|
-
resolveCommunication:
|
|
2361
|
-
createNewCommunication:
|
|
2362
|
-
saveCommunication:
|
|
2363
|
-
resolveCommunicationSource:
|
|
2364
|
-
} =
|
|
2365
|
-
const
|
|
2366
|
-
return
|
|
2367
|
-
}),
|
|
2368
|
-
t.value.shouldShowCommunicationPanel = t.value.shouldShowCommunicationPanel === !1 ? !1 : !!((
|
|
2369
|
-
const
|
|
2370
|
-
var
|
|
2371
|
-
const
|
|
2372
|
-
return
|
|
2373
|
-
}),
|
|
2374
|
-
function
|
|
2375
|
-
if (
|
|
2376
|
-
const
|
|
2377
|
-
if (
|
|
2774
|
+
} = a, p = X("useFormSchema"), {
|
|
2775
|
+
clearCommunicationById: l,
|
|
2776
|
+
resolveSourceControlEventTitle: v,
|
|
2777
|
+
resolveCommunication: f,
|
|
2778
|
+
createNewCommunication: u,
|
|
2779
|
+
saveCommunication: c,
|
|
2780
|
+
resolveCommunicationSource: S
|
|
2781
|
+
} = be(p), T = b(e.controllers), t = b(e.interaction), _ = b(!1), H = K(() => {
|
|
2782
|
+
const B = t.value.showSwitch[0];
|
|
2783
|
+
return B.showSection[B.showSwitchNumber][2];
|
|
2784
|
+
}), R = b(e.sourceCommunication.needSelectSourceControl);
|
|
2785
|
+
t.value.shouldShowCommunicationPanel = t.value.shouldShowCommunicationPanel === !1 ? !1 : !!((Ce = (ge = t.value) == null ? void 0 : ge.communication) != null && Ce.length) || R.value;
|
|
2786
|
+
const y = K(() => {
|
|
2787
|
+
var z;
|
|
2788
|
+
const B = !!((z = t.value.command) != null && z.id), U = t.value.showSwitch[0], G = U.showSection[U.showSwitchNumber][3];
|
|
2789
|
+
return B && G;
|
|
2790
|
+
}), A = b(t.value.needSelectCommunicationCommand || !1), i = b(), o = b(), r = b(!1), s = b(), N = b([]);
|
|
2791
|
+
function D() {
|
|
2792
|
+
if (R.value) {
|
|
2793
|
+
const B = v(t.value.communication);
|
|
2794
|
+
if (B) {
|
|
2378
2795
|
const {
|
|
2379
|
-
title:
|
|
2380
|
-
titleTip:
|
|
2381
|
-
isControlInvalid:
|
|
2382
|
-
} =
|
|
2383
|
-
|
|
2796
|
+
title: U,
|
|
2797
|
+
titleTip: G,
|
|
2798
|
+
isControlInvalid: z
|
|
2799
|
+
} = B;
|
|
2800
|
+
i.value = U, o.value = z ? "源表单或事件已失效,请删除" : G || U, r.value = z;
|
|
2384
2801
|
}
|
|
2385
2802
|
} else
|
|
2386
|
-
o.value = t.value.event.label,
|
|
2803
|
+
o.value = t.value.event.label, i.value = t.value.event.name;
|
|
2387
2804
|
}
|
|
2388
|
-
|
|
2389
|
-
|
|
2805
|
+
nn(() => {
|
|
2806
|
+
f(t.value), D(), s.value = S(t.value) || e.sourceCommunication;
|
|
2390
2807
|
});
|
|
2391
|
-
const m =
|
|
2808
|
+
const m = K(() => ({
|
|
2392
2809
|
"f-icon": !0,
|
|
2393
|
-
"f-icon-arrow-chevron-down":
|
|
2394
|
-
"f-icon-arrow-chevron-left": !
|
|
2810
|
+
"f-icon-arrow-chevron-down": y.value || t.value.shouldShowCommunicationPanel,
|
|
2811
|
+
"f-icon-arrow-chevron-left": !y.value && !t.value.shouldShowCommunicationPanel
|
|
2395
2812
|
}));
|
|
2396
|
-
function
|
|
2397
|
-
var
|
|
2398
|
-
let
|
|
2399
|
-
|
|
2400
|
-
const
|
|
2401
|
-
|
|
2402
|
-
|
|
2813
|
+
function k() {
|
|
2814
|
+
var G, z;
|
|
2815
|
+
let B = (G = t.value.command) != null && G.id ? 1 : 0;
|
|
2816
|
+
B = B + (((z = t.value.communication) == null ? void 0 : z.length) || 0);
|
|
2817
|
+
const U = `确定删除【${i.value}】吗?`;
|
|
2818
|
+
h.question(U, "", () => {
|
|
2819
|
+
E.emit("delete", e.displayOrder);
|
|
2403
2820
|
});
|
|
2404
2821
|
}
|
|
2405
|
-
function
|
|
2406
|
-
var
|
|
2407
|
-
const
|
|
2408
|
-
t.value.communication && t.value.communication.length > 0 && (t.value.shouldShowCommunicationPanel = !t.value.shouldShowCommunicationPanel),
|
|
2409
|
-
}
|
|
2410
|
-
function
|
|
2411
|
-
var
|
|
2412
|
-
const
|
|
2413
|
-
if (
|
|
2414
|
-
|
|
2415
|
-
|
|
2822
|
+
function O() {
|
|
2823
|
+
var z;
|
|
2824
|
+
const B = t.value.showSwitch[0], U = !!((z = t.value.command) != null && z.id);
|
|
2825
|
+
t.value.communication && t.value.communication.length > 0 && (t.value.shouldShowCommunicationPanel = !t.value.shouldShowCommunicationPanel), U && (B.showSection[B.showSwitchNumber][3] = !B.showSection[B.showSwitchNumber][3], E.emit("toggle", e.displayOrder));
|
|
2826
|
+
}
|
|
2827
|
+
function q() {
|
|
2828
|
+
var z, Z;
|
|
2829
|
+
const B = !!((z = t.value.command) != null && z.id), U = t.value.communication && t.value.communication.length > 0;
|
|
2830
|
+
if (R.value) {
|
|
2831
|
+
A.value = !A.value, (Z = N.value) != null && Z.length && N.value.map((ae) => {
|
|
2832
|
+
ae.closeAllParameterPanel();
|
|
2416
2833
|
});
|
|
2417
2834
|
return;
|
|
2418
2835
|
}
|
|
2419
|
-
|
|
2420
|
-
const
|
|
2421
|
-
|
|
2422
|
-
}
|
|
2423
|
-
function
|
|
2424
|
-
const
|
|
2425
|
-
|
|
2426
|
-
const
|
|
2427
|
-
|
|
2428
|
-
}
|
|
2429
|
-
function
|
|
2430
|
-
let
|
|
2431
|
-
const
|
|
2432
|
-
for (;
|
|
2433
|
-
let
|
|
2434
|
-
for (let
|
|
2435
|
-
|
|
2436
|
-
|
|
2836
|
+
U && (t.value.shouldShowCommunicationPanel = !t.value.shouldShowCommunicationPanel);
|
|
2837
|
+
const G = t.value.showSwitch[0];
|
|
2838
|
+
d(G, B), E.emit("addAction", e.displayOrder);
|
|
2839
|
+
}
|
|
2840
|
+
function J(B) {
|
|
2841
|
+
const U = t.value.communication !== void 0;
|
|
2842
|
+
B === null && t.value.command === null && !U && E.emit("delete", e.displayOrder), t.value.communication && (t.value.shouldShowCommunicationPanel = H.value);
|
|
2843
|
+
const G = t.value.showSwitch[0];
|
|
2844
|
+
d(G, U);
|
|
2845
|
+
}
|
|
2846
|
+
function ne(B, U, G) {
|
|
2847
|
+
let z = `${U}${G}${B}`, Z = -1;
|
|
2848
|
+
const ae = $();
|
|
2849
|
+
for (; Z === -1; ) {
|
|
2850
|
+
let le = !1;
|
|
2851
|
+
for (let re = 0; re < ae.length; re++)
|
|
2852
|
+
ae[re].controllerList.forEach((ie) => {
|
|
2853
|
+
ie.label || ie.label === "" ? le = ie.label.toLowerCase() === z.toLowerCase() ? !0 : le : le = !1;
|
|
2437
2854
|
});
|
|
2438
|
-
if (
|
|
2439
|
-
|
|
2855
|
+
if (le)
|
|
2856
|
+
B += 1, z = `${U}${G}${B}`;
|
|
2440
2857
|
else {
|
|
2441
|
-
|
|
2858
|
+
Z = 0;
|
|
2442
2859
|
break;
|
|
2443
2860
|
}
|
|
2444
2861
|
}
|
|
2445
2862
|
return {
|
|
2446
|
-
newName:
|
|
2447
|
-
suffix:
|
|
2863
|
+
newName: z,
|
|
2864
|
+
suffix: B
|
|
2448
2865
|
};
|
|
2449
2866
|
}
|
|
2450
|
-
function
|
|
2867
|
+
function M(B) {
|
|
2451
2868
|
const {
|
|
2452
|
-
method:
|
|
2453
|
-
controller:
|
|
2454
|
-
} =
|
|
2455
|
-
label:
|
|
2456
|
-
handlerName:
|
|
2457
|
-
property:
|
|
2458
|
-
componentLists:
|
|
2459
|
-
hasPath:
|
|
2460
|
-
} =
|
|
2461
|
-
newName:
|
|
2462
|
-
suffix:
|
|
2463
|
-
} =
|
|
2464
|
-
controllerName:
|
|
2465
|
-
} =
|
|
2466
|
-
id:
|
|
2467
|
-
label:
|
|
2468
|
-
name: `${
|
|
2469
|
-
handlerName:
|
|
2470
|
-
hasPath:
|
|
2471
|
-
cmpId:
|
|
2472
|
-
property:
|
|
2473
|
-
componentLists:
|
|
2869
|
+
method: U,
|
|
2870
|
+
controller: G
|
|
2871
|
+
} = B, {
|
|
2872
|
+
label: z,
|
|
2873
|
+
handlerName: Z,
|
|
2874
|
+
property: ae,
|
|
2875
|
+
componentLists: le,
|
|
2876
|
+
hasPath: re
|
|
2877
|
+
} = U, ie = C().replace(/-/g, "").replace("component", "").replace("viewmodel", ""), Ne = z.slice(0, 1).toUpperCase() + z.slice(1), {
|
|
2878
|
+
newName: Pe,
|
|
2879
|
+
suffix: Me
|
|
2880
|
+
} = ne(1, ie, Ne), {
|
|
2881
|
+
controllerName: ue
|
|
2882
|
+
} = G, Ve = ue.id, Le = {
|
|
2883
|
+
id: g(),
|
|
2884
|
+
label: Pe,
|
|
2885
|
+
name: `${U.name}${Me}`,
|
|
2886
|
+
handlerName: Z,
|
|
2887
|
+
hasPath: re,
|
|
2888
|
+
cmpId: Ve,
|
|
2889
|
+
property: ae,
|
|
2890
|
+
componentLists: le
|
|
2474
2891
|
};
|
|
2475
|
-
t.value.command = P(
|
|
2476
|
-
id:
|
|
2477
|
-
label:
|
|
2478
|
-
name:
|
|
2479
|
-
isCommon:
|
|
2892
|
+
t.value.command = P(G, Le), t.value.command && p.designerMode === "PC_RTC" && (t.value.command.isRtcCommand = !0), t.value.controller = {
|
|
2893
|
+
id: ue.id,
|
|
2894
|
+
label: ue.label,
|
|
2895
|
+
name: ue.name,
|
|
2896
|
+
isCommon: ue.isCommon
|
|
2480
2897
|
};
|
|
2481
|
-
const
|
|
2482
|
-
|
|
2898
|
+
const ee = t.value.showSwitch[0];
|
|
2899
|
+
ee.showSwitchNumber = 2, ee.showSection[ee.showSwitchNumber][2] = !1, ee.showSection[ee.showSwitchNumber][3] = !0, _.value = !0, t.value.communication && t.value.communication.length > 0 && (t.value.shouldShowCommunicationPanel = !0), F(!1, null);
|
|
2483
2900
|
}
|
|
2484
|
-
function
|
|
2901
|
+
function Q() {
|
|
2485
2902
|
t.value.command = {
|
|
2486
2903
|
id: "abandoned",
|
|
2487
2904
|
label: "未绑定方法",
|
|
@@ -2491,7 +2908,7 @@ ${I} (${o})`;
|
|
|
2491
2908
|
handlerName: "未绑定方法",
|
|
2492
2909
|
cmpId: "",
|
|
2493
2910
|
shortcut: {},
|
|
2494
|
-
isRtcCommand:
|
|
2911
|
+
isRtcCommand: p.designerMode === "PC_RTC" ? !0 : void 0,
|
|
2495
2912
|
isNewGenerated: void 0,
|
|
2496
2913
|
extensions: [],
|
|
2497
2914
|
isInvalid: !1
|
|
@@ -2499,140 +2916,140 @@ ${I} (${o})`;
|
|
|
2499
2916
|
label: "",
|
|
2500
2917
|
name: "",
|
|
2501
2918
|
id: ""
|
|
2502
|
-
},
|
|
2503
|
-
const
|
|
2504
|
-
|
|
2505
|
-
}
|
|
2506
|
-
function
|
|
2507
|
-
var
|
|
2508
|
-
if (t.value.communication || (t.value.communication = []), t.value.communication.find((
|
|
2509
|
-
var
|
|
2510
|
-
return ((
|
|
2919
|
+
}, F(!0, t.value.event);
|
|
2920
|
+
const B = t.value.showSwitch[0];
|
|
2921
|
+
d(B, !0);
|
|
2922
|
+
}
|
|
2923
|
+
function oe(B, U) {
|
|
2924
|
+
var Z;
|
|
2925
|
+
if (t.value.communication || (t.value.communication = []), t.value.communication.find((ae) => {
|
|
2926
|
+
var le, re, ie;
|
|
2927
|
+
return ((le = ae.target) == null ? void 0 : le.formId) === B.formId && ((re = ae.target) == null ? void 0 : re.externalContainerId) === B.externalContainerId && ((ie = ae.target) == null ? void 0 : ie.commandCode) === B.commandCode;
|
|
2511
2928
|
})) {
|
|
2512
|
-
new
|
|
2929
|
+
new fe().info({
|
|
2513
2930
|
position: "top-center",
|
|
2514
2931
|
message: "方法已存在,请勿重复添加。"
|
|
2515
2932
|
});
|
|
2516
2933
|
return;
|
|
2517
2934
|
}
|
|
2518
|
-
let
|
|
2519
|
-
t.value.communication.length === 1 && !((
|
|
2935
|
+
let z;
|
|
2936
|
+
t.value.communication.length === 1 && !((Z = t.value.communication[0].target) != null && Z.formId) ? (Object.assign(t.value.communication[0].target, B), z = t.value.communication[0]) : (z = u(e, t.value.event.label, B, U), t.value.communication.push(z)), F(!1, null), c(z);
|
|
2520
2937
|
}
|
|
2521
|
-
function
|
|
2522
|
-
var
|
|
2523
|
-
const
|
|
2524
|
-
if (
|
|
2938
|
+
function ce(B) {
|
|
2939
|
+
var G;
|
|
2940
|
+
const U = t.value.showSwitch[0];
|
|
2941
|
+
if (U.showSection[U.showSwitchNumber][2] = !1, (G = t.value.command) != null && G.id && (U.showSection[U.showSwitchNumber][3] = !0), t.value.shouldShowCommunicationPanel = !0, B) {
|
|
2525
2942
|
const {
|
|
2526
|
-
selectedCommand:
|
|
2527
|
-
selectedForm:
|
|
2528
|
-
} =
|
|
2529
|
-
formId: (
|
|
2530
|
-
formCode: (
|
|
2531
|
-
externalContainerId: (
|
|
2532
|
-
commandCode: (
|
|
2533
|
-
commandViewmodelId: (
|
|
2943
|
+
selectedCommand: z,
|
|
2944
|
+
selectedForm: Z
|
|
2945
|
+
} = B, ae = {
|
|
2946
|
+
formId: (Z == null ? void 0 : Z.id) || "",
|
|
2947
|
+
formCode: (Z == null ? void 0 : Z.code) || "",
|
|
2948
|
+
externalContainerId: (Z == null ? void 0 : Z.containerId) || "",
|
|
2949
|
+
commandCode: (z == null ? void 0 : z.code) || "",
|
|
2950
|
+
commandViewmodelId: (z == null ? void 0 : z.viewmodelId) || ""
|
|
2534
2951
|
};
|
|
2535
|
-
|
|
2952
|
+
oe(ae);
|
|
2536
2953
|
}
|
|
2537
2954
|
}
|
|
2538
|
-
function
|
|
2539
|
-
const
|
|
2540
|
-
|
|
2955
|
+
function Te() {
|
|
2956
|
+
const B = t.value.showSwitch[0];
|
|
2957
|
+
B.showSwitchNumber = 2, B.showSection[B.showSwitchNumber][2] = !1, B.showSection[B.showSwitchNumber][3] = !0, _.value = !1, t.value.communication && t.value.communication.length > 0 && (t.value.shouldShowCommunicationPanel = !0), F(!1, null);
|
|
2541
2958
|
}
|
|
2542
|
-
function
|
|
2543
|
-
return n(
|
|
2544
|
-
controllers:
|
|
2959
|
+
function ke() {
|
|
2960
|
+
return n(wt, {
|
|
2961
|
+
controllers: T.value,
|
|
2545
2962
|
sourceCommunication: e.sourceCommunication,
|
|
2546
|
-
onClose:
|
|
2547
|
-
onSelectMethod:
|
|
2548
|
-
onNewFunctionChanged: () =>
|
|
2549
|
-
onAddCommunication:
|
|
2963
|
+
onClose: J,
|
|
2964
|
+
onSelectMethod: M,
|
|
2965
|
+
onNewFunctionChanged: () => Q(),
|
|
2966
|
+
onAddCommunication: ce,
|
|
2550
2967
|
haveBoundCommand: e.haveBoundCommand,
|
|
2551
2968
|
iteractionDisplayOrder: e.displayOrder,
|
|
2552
|
-
onSelectBoundMethod:
|
|
2969
|
+
onSelectBoundMethod: Te,
|
|
2553
2970
|
event: t.value.event
|
|
2554
2971
|
}, null);
|
|
2555
2972
|
}
|
|
2556
|
-
function
|
|
2557
|
-
const
|
|
2558
|
-
|
|
2973
|
+
function Ae() {
|
|
2974
|
+
const B = t.value.showSwitch[0];
|
|
2975
|
+
B.showSection[B.showSwitchNumber][3] = !1;
|
|
2559
2976
|
}
|
|
2560
|
-
function
|
|
2561
|
-
t.value.command =
|
|
2977
|
+
function $e(B) {
|
|
2978
|
+
t.value.command = W(B), F(!1, null);
|
|
2562
2979
|
}
|
|
2563
|
-
function
|
|
2564
|
-
|
|
2980
|
+
function Oe(B) {
|
|
2981
|
+
B.componentLists = j(), w(B), t.value.command = W(B), F(!1, null);
|
|
2565
2982
|
}
|
|
2566
|
-
function
|
|
2567
|
-
var
|
|
2983
|
+
function De(B) {
|
|
2984
|
+
var G;
|
|
2568
2985
|
const {
|
|
2569
|
-
controller:
|
|
2986
|
+
controller: U
|
|
2570
2987
|
} = t.value;
|
|
2571
|
-
|
|
2572
|
-
...
|
|
2988
|
+
U.isCommon || (G = e.viewSourceHandle) == null || G.call(e, {
|
|
2989
|
+
...B,
|
|
2573
2990
|
...t.value
|
|
2574
2991
|
});
|
|
2575
2992
|
}
|
|
2576
|
-
function
|
|
2577
|
-
t.value.command = null,
|
|
2993
|
+
function Re() {
|
|
2994
|
+
t.value.command = null, F(!1, null);
|
|
2578
2995
|
}
|
|
2579
|
-
function
|
|
2580
|
-
return n(
|
|
2996
|
+
function je() {
|
|
2997
|
+
return n(Ft, {
|
|
2581
2998
|
command: t.value.command,
|
|
2582
2999
|
controller: t.value.controller,
|
|
2583
|
-
showParameter:
|
|
3000
|
+
showParameter: _.value,
|
|
2584
3001
|
showDeleteIcon: t.value.communication && t.value.communication.length > 0,
|
|
2585
|
-
onConfirm: () =>
|
|
2586
|
-
onChange: (
|
|
2587
|
-
onTargetChange: (
|
|
2588
|
-
onViewSource: (
|
|
2589
|
-
onDeleteCommand:
|
|
3002
|
+
onConfirm: () => Ae(),
|
|
3003
|
+
onChange: (B) => $e(B),
|
|
3004
|
+
onTargetChange: (B) => Oe(B),
|
|
3005
|
+
onViewSource: (B) => De(B),
|
|
3006
|
+
onDeleteCommand: Re
|
|
2590
3007
|
}, null);
|
|
2591
3008
|
}
|
|
2592
|
-
function
|
|
2593
|
-
t.value.communication && t.value.communication.length >
|
|
3009
|
+
function Ue(B, U) {
|
|
3010
|
+
t.value.communication && t.value.communication.length > U && (t.value.communication[U] = B, F(!1, null));
|
|
2594
3011
|
}
|
|
2595
|
-
function
|
|
2596
|
-
var
|
|
2597
|
-
t.value.communication && t.value.communication.length >
|
|
3012
|
+
function qe(B, U) {
|
|
3013
|
+
var G;
|
|
3014
|
+
t.value.communication && t.value.communication.length > U && (t.value.communication.splice(U, 1), l(B.id), t.value.communication.length === 0 && !((G = t.value.command) != null && G.id) ? E.emit("delete", e.displayOrder) : F(!1, null));
|
|
2598
3015
|
}
|
|
2599
|
-
function
|
|
3016
|
+
function Se(B, U) {
|
|
2600
3017
|
const {
|
|
2601
|
-
source:
|
|
2602
|
-
target:
|
|
2603
|
-
} =
|
|
2604
|
-
|
|
2605
|
-
}
|
|
2606
|
-
function
|
|
2607
|
-
return n(
|
|
2608
|
-
ref: (
|
|
2609
|
-
|
|
3018
|
+
source: G,
|
|
3019
|
+
target: z
|
|
3020
|
+
} = B;
|
|
3021
|
+
oe(z, G), t.value.shouldShowCommunicationPanel = !0;
|
|
3022
|
+
}
|
|
3023
|
+
function Fe(B, U) {
|
|
3024
|
+
return n(kt, {
|
|
3025
|
+
ref: (G) => {
|
|
3026
|
+
G && (N.value[U] = G);
|
|
2610
3027
|
},
|
|
2611
|
-
communication:
|
|
3028
|
+
communication: B,
|
|
2612
3029
|
event: t.value.event.label,
|
|
2613
3030
|
sourceCommunication: e.sourceCommunication,
|
|
2614
|
-
onChanged: (
|
|
2615
|
-
onDeleteCommand: () =>
|
|
2616
|
-
onAddCommand: (
|
|
3031
|
+
onChanged: (G) => Ue(G, U),
|
|
3032
|
+
onDeleteCommand: () => qe(B, U),
|
|
3033
|
+
onAddCommand: (G) => Se(G)
|
|
2617
3034
|
}, null);
|
|
2618
3035
|
}
|
|
2619
|
-
function
|
|
3036
|
+
function ye(B) {
|
|
2620
3037
|
const {
|
|
2621
|
-
targetForm:
|
|
2622
|
-
targetCommand:
|
|
2623
|
-
} =
|
|
2624
|
-
formId:
|
|
2625
|
-
formCode:
|
|
2626
|
-
externalContainerId:
|
|
2627
|
-
commandCode:
|
|
2628
|
-
commandViewmodelId:
|
|
3038
|
+
targetForm: U,
|
|
3039
|
+
targetCommand: G
|
|
3040
|
+
} = B, z = {
|
|
3041
|
+
formId: U.id,
|
|
3042
|
+
formCode: U.code,
|
|
3043
|
+
externalContainerId: U.containerId,
|
|
3044
|
+
commandCode: G.code,
|
|
3045
|
+
commandViewmodelId: G.viewmodelId
|
|
2629
3046
|
};
|
|
2630
|
-
|
|
3047
|
+
oe(z, s.value), t.value.shouldShowCommunicationPanel = !0, A.value = !1, t.value.needSelectCommunicationCommand = !1;
|
|
2631
3048
|
}
|
|
2632
|
-
function
|
|
2633
|
-
return n(
|
|
3049
|
+
function Ee() {
|
|
3050
|
+
return n(At, {
|
|
2634
3051
|
sourceCommunication: e.sourceCommunication,
|
|
2635
|
-
onSelectCommand: (
|
|
3052
|
+
onSelectCommand: (B) => ye(B)
|
|
2636
3053
|
}, null);
|
|
2637
3054
|
}
|
|
2638
3055
|
return () => n("div", {
|
|
@@ -2642,85 +3059,85 @@ ${I} (${o})`;
|
|
|
2642
3059
|
}, [n("div", {
|
|
2643
3060
|
class: "f-page-events-editor-bound-event-name",
|
|
2644
3061
|
title: o.value
|
|
2645
|
-
}, [
|
|
3062
|
+
}, [i.value]), !r.value && n("div", {
|
|
2646
3063
|
style: "float:right;margin:5px;"
|
|
2647
3064
|
}, [n("div", {
|
|
2648
3065
|
class: m.value,
|
|
2649
3066
|
style: "font-size: 10px;",
|
|
2650
|
-
onClick:
|
|
3067
|
+
onClick: O
|
|
2651
3068
|
}, null)]), n("div", {
|
|
2652
3069
|
class: "f-icon f-icon-yxs_delete",
|
|
2653
3070
|
style: "font-size: 13px;float: right; margin:8px;",
|
|
2654
|
-
onClick:
|
|
2655
|
-
}, null), !
|
|
3071
|
+
onClick: k
|
|
3072
|
+
}, null), !r.value && n("div", {
|
|
2656
3073
|
class: "f-icon f-icon-home-add",
|
|
2657
3074
|
style: "float:right; font-size: 10px; margin:8px;",
|
|
2658
|
-
onClick:
|
|
2659
|
-
}, null),
|
|
3075
|
+
onClick: q
|
|
3076
|
+
}, null), r.value && n("div", {
|
|
2660
3077
|
class: "f-icon f-icon-flowline-warning text-danger text-tip",
|
|
2661
3078
|
title: "源表单或事件已失效,请删除",
|
|
2662
3079
|
style: "float:right; font-size: 13px; margin:8px;"
|
|
2663
|
-
}, null)]),
|
|
3080
|
+
}, null)]), H.value && ke(), A.value && Ee(), y.value && je(), !r.value && t.value.shouldShowCommunicationPanel && t.value.communication && t.value.communication.length > 0 ? t.value.communication.map((B, U) => Fe(B, U)) : ""]);
|
|
2664
3081
|
}
|
|
2665
3082
|
});
|
|
2666
|
-
function
|
|
2667
|
-
const { interactions:
|
|
2668
|
-
function
|
|
2669
|
-
|
|
3083
|
+
function Ot(e, E, g) {
|
|
3084
|
+
const { interactions: h } = E, { setComponentLists: a } = ln(), d = b(e.value.internalCommandList);
|
|
3085
|
+
function F(i) {
|
|
3086
|
+
h.value[i].showSwitch = [], h.value[i].showSwitch.push(W({
|
|
2670
3087
|
// 存储所有的展示设定
|
|
2671
3088
|
showSection: [[!1, !1, !1, !1, !1], [!1, !1, !0, !1, !1], [!1, !0, !1, !0, !1]],
|
|
2672
3089
|
// 展示哪个部分
|
|
2673
3090
|
showSwitchNumber: 2
|
|
2674
|
-
})),
|
|
3091
|
+
})), h.value = W(h.value);
|
|
2675
3092
|
}
|
|
2676
|
-
function
|
|
2677
|
-
var
|
|
3093
|
+
function C(i) {
|
|
3094
|
+
var r;
|
|
2678
3095
|
const o = [];
|
|
2679
|
-
return (
|
|
2680
|
-
|
|
2681
|
-
|
|
3096
|
+
return (r = e.value.newController) == null || r.forEach((s) => {
|
|
3097
|
+
i.forEach((N) => {
|
|
3098
|
+
s.Code === N.controller.label && o.push(W(s));
|
|
2682
3099
|
});
|
|
2683
3100
|
}), o;
|
|
2684
3101
|
}
|
|
2685
|
-
function
|
|
3102
|
+
function $(i) {
|
|
2686
3103
|
if (e.value.repititionCommand.length !== 0)
|
|
2687
3104
|
return e.value.repititionCommand.forEach((o) => {
|
|
2688
|
-
|
|
2689
|
-
var
|
|
2690
|
-
if (o.command.id === ((
|
|
2691
|
-
o.command.params =
|
|
2692
|
-
const
|
|
2693
|
-
(m =
|
|
2694
|
-
o.targetComponent =
|
|
2695
|
-
id:
|
|
2696
|
-
viewModelId:
|
|
3105
|
+
i.forEach((r) => {
|
|
3106
|
+
var s, N, D, m;
|
|
3107
|
+
if (o.command.id === ((s = r.command) == null ? void 0 : s.id)) {
|
|
3108
|
+
o.command.params = W((N = r.command) == null ? void 0 : N.property);
|
|
3109
|
+
const k = (D = r.command) == null ? void 0 : D.targetComponent;
|
|
3110
|
+
(m = r.command) == null || m.componentLists.forEach((O) => {
|
|
3111
|
+
o.targetComponent = O.componentId === k ? {
|
|
3112
|
+
id: O.componentId,
|
|
3113
|
+
viewModelId: O.viewModelId
|
|
2697
3114
|
} : o.targetComponent;
|
|
2698
3115
|
});
|
|
2699
3116
|
}
|
|
2700
3117
|
});
|
|
2701
3118
|
}), e.value.repititionCommand;
|
|
2702
3119
|
}
|
|
2703
|
-
function
|
|
3120
|
+
function j(i = !1, o = null) {
|
|
2704
3121
|
var m;
|
|
2705
|
-
e.value.newFuncEvents = o ?
|
|
2706
|
-
const
|
|
2707
|
-
|
|
2708
|
-
const
|
|
2709
|
-
|
|
3122
|
+
e.value.newFuncEvents = o ? W(o) : null, e.value.isAddControllerMethod = i;
|
|
3123
|
+
const r = [], s = W(e.value.internalCommandList);
|
|
3124
|
+
h.value.map((k) => {
|
|
3125
|
+
const O = W(k.controller), q = W(k.command), J = W(k.event), ne = W(k.communication), M = { controller: O, command: q, boundEvents: J, communication: ne };
|
|
3126
|
+
r.push(W(M));
|
|
2710
3127
|
});
|
|
2711
|
-
const
|
|
2712
|
-
e.value.repititionCommand && (e.value.repititionCommand =
|
|
2713
|
-
const
|
|
3128
|
+
const N = (m = e.value.newController) != null && m.length && r.length ? W(C(r)) : [];
|
|
3129
|
+
e.value.repititionCommand && (e.value.repititionCommand = $(r));
|
|
3130
|
+
const D = {
|
|
2714
3131
|
/** 拼接名称时的前缀 */
|
|
2715
3132
|
viewModelId: e.value.viewModelId,
|
|
2716
3133
|
/** 视图模型绑定的事件下的方法列表 */
|
|
2717
|
-
savedCommand:
|
|
3134
|
+
savedCommand: W(e.value.viewModel),
|
|
2718
3135
|
/** 当前界面显示的绑定事件 */
|
|
2719
|
-
boundEventsList:
|
|
3136
|
+
boundEventsList: W(r),
|
|
2720
3137
|
/** 可选择的绑定事件列表 */
|
|
2721
|
-
events:
|
|
3138
|
+
events: W(e.value.events),
|
|
2722
3139
|
/** 内置构件列表; */
|
|
2723
|
-
internalCommandList:
|
|
3140
|
+
internalCommandList: W(s),
|
|
2724
3141
|
/** 所有可选的组件 */
|
|
2725
3142
|
componentLists: [],
|
|
2726
3143
|
/** 接收formBasicService.formMetaBasicInfo.relativePath */
|
|
@@ -2728,7 +3145,7 @@ function Kn(e, B, N) {
|
|
|
2728
3145
|
/** 接收formBasicService.envType */
|
|
2729
3146
|
envType: e.value.envType,
|
|
2730
3147
|
/** 初始为空,用于存储用户点击「导入新方法」的控制器值 */
|
|
2731
|
-
newController:
|
|
3148
|
+
newController: W(N),
|
|
2732
3149
|
/** 切换到代码视图标识 */
|
|
2733
3150
|
isAddControllerMethod: e.value.isAddControllerMethod,
|
|
2734
3151
|
/** 用户选择「已有方法」 */
|
|
@@ -2738,222 +3155,222 @@ function Kn(e, B, N) {
|
|
|
2738
3155
|
/** 新增方法的对应事件 */
|
|
2739
3156
|
newFuncEvents: e.value.newFuncEvents
|
|
2740
3157
|
};
|
|
2741
|
-
|
|
3158
|
+
g.emit("savedCommandListChanged", D);
|
|
2742
3159
|
}
|
|
2743
|
-
function
|
|
2744
|
-
|
|
3160
|
+
function w(i) {
|
|
3161
|
+
i.showSection[i.showSwitchNumber][2] = !0;
|
|
2745
3162
|
}
|
|
2746
|
-
function P(
|
|
2747
|
-
|
|
3163
|
+
function P(i) {
|
|
3164
|
+
i.showSection[i.showSwitchNumber][2] = !1;
|
|
2748
3165
|
}
|
|
2749
|
-
function
|
|
2750
|
-
|
|
3166
|
+
function p(i) {
|
|
3167
|
+
i.showSection[i.showSwitchNumber][3] = !0;
|
|
2751
3168
|
}
|
|
2752
|
-
function
|
|
2753
|
-
|
|
3169
|
+
function l(i) {
|
|
3170
|
+
i.showSection[i.showSwitchNumber][3] = !1;
|
|
2754
3171
|
}
|
|
2755
|
-
function
|
|
2756
|
-
|
|
3172
|
+
function v(i, o = !1) {
|
|
3173
|
+
i.showSection[i.showSwitchNumber][2] ? (P(i), o && p(i)) : (w(i), o && l(i));
|
|
2757
3174
|
}
|
|
2758
|
-
function
|
|
3175
|
+
function f() {
|
|
2759
3176
|
return e.value.componentLists;
|
|
2760
3177
|
}
|
|
2761
|
-
function
|
|
3178
|
+
function u(i) {
|
|
2762
3179
|
e.value.viewModel.forEach((o) => {
|
|
2763
|
-
for (let
|
|
2764
|
-
o.controllerList[
|
|
3180
|
+
for (let r = 0; r < o.controllerList.length; r++)
|
|
3181
|
+
o.controllerList[r].label === i.label && (o.controllerList[r] = W(i));
|
|
2765
3182
|
});
|
|
2766
3183
|
}
|
|
2767
|
-
function
|
|
3184
|
+
function c() {
|
|
2768
3185
|
return e.value.viewModelId;
|
|
2769
3186
|
}
|
|
2770
|
-
function
|
|
3187
|
+
function S() {
|
|
2771
3188
|
return e.value.getEventPath ? e.value.getEventPath().viewModelDisplay : [];
|
|
2772
3189
|
}
|
|
2773
|
-
function
|
|
2774
|
-
return
|
|
3190
|
+
function T(i, o) {
|
|
3191
|
+
return a(i, o, e.value);
|
|
2775
3192
|
}
|
|
2776
|
-
function t(
|
|
2777
|
-
e.value.newController = e.value.newController || [], e.value.newController.push(
|
|
3193
|
+
function t(i) {
|
|
3194
|
+
e.value.newController = e.value.newController || [], e.value.newController.push(W(i));
|
|
2778
3195
|
const o = e.value.newController;
|
|
2779
|
-
for (let
|
|
2780
|
-
for (let
|
|
2781
|
-
o[
|
|
3196
|
+
for (let r = 0; r < o.length; r++)
|
|
3197
|
+
for (let s = r + 1; s < o.length; s++)
|
|
3198
|
+
o[r].Id === o[s].Id && (o.splice(s, 1), s--);
|
|
2782
3199
|
}
|
|
2783
|
-
function
|
|
3200
|
+
function _(i) {
|
|
2784
3201
|
let o = !1;
|
|
2785
|
-
return e.value.internalCommandList.forEach((
|
|
2786
|
-
if (
|
|
3202
|
+
return e.value.internalCommandList.forEach((r) => {
|
|
3203
|
+
if (r.controllerName.label === i.controllerName.label) {
|
|
2787
3204
|
o = !0;
|
|
2788
3205
|
return;
|
|
2789
3206
|
}
|
|
2790
|
-
}), o || e.value.internalCommandList.push(
|
|
3207
|
+
}), o || e.value.internalCommandList.push(i), o;
|
|
2791
3208
|
}
|
|
2792
|
-
function
|
|
2793
|
-
var
|
|
2794
|
-
if ((
|
|
3209
|
+
function H() {
|
|
3210
|
+
var i;
|
|
3211
|
+
if ((i = e.value) != null && i.getEventPath)
|
|
2795
3212
|
return e.value.getEventPath();
|
|
2796
3213
|
}
|
|
2797
|
-
function
|
|
2798
|
-
|
|
2799
|
-
var
|
|
2800
|
-
((
|
|
3214
|
+
function R(i, o) {
|
|
3215
|
+
h.value.forEach((r) => {
|
|
3216
|
+
var s;
|
|
3217
|
+
((s = r.command) == null ? void 0 : s.label) === o.label && (r.command = o);
|
|
2801
3218
|
});
|
|
2802
3219
|
}
|
|
2803
|
-
function
|
|
2804
|
-
|
|
3220
|
+
function y(i, o) {
|
|
3221
|
+
R(i, o);
|
|
2805
3222
|
}
|
|
2806
|
-
function
|
|
2807
|
-
const
|
|
2808
|
-
|
|
2809
|
-
let
|
|
3223
|
+
function A(i, o) {
|
|
3224
|
+
const r = h.value[o];
|
|
3225
|
+
i.event = i.event.label ? i.event : W(r.event);
|
|
3226
|
+
let s = !1;
|
|
2810
3227
|
e.value.repititionCommand || (e.value.repititionCommand = []), e.value.repititionCommand.forEach((m) => {
|
|
2811
|
-
m.command.id ===
|
|
2812
|
-
}),
|
|
2813
|
-
let
|
|
2814
|
-
id:
|
|
2815
|
-
label:
|
|
2816
|
-
name:
|
|
2817
|
-
handlerName:
|
|
2818
|
-
cmpId:
|
|
3228
|
+
m.command.id === i.command.id && m.event.label === i.event.label && m.targetComponent.viewModelId === i.targetComponent.viewModelId && (s = !0), m.command.id === i.command.id && m.event.label === i.event.label && m.targetComponent.viewModelId !== i.targetComponent.viewModelId && (m = W(i));
|
|
3229
|
+
}), s || e.value.repititionCommand.push(W(i));
|
|
3230
|
+
let N = {
|
|
3231
|
+
id: i.command.id,
|
|
3232
|
+
label: i.command.label,
|
|
3233
|
+
name: i.command.name,
|
|
3234
|
+
handlerName: i.command.handlerName,
|
|
3235
|
+
cmpId: i.controller.id,
|
|
2819
3236
|
componentLists: [],
|
|
2820
3237
|
hasPath: !1,
|
|
2821
|
-
targetComponent:
|
|
2822
|
-
property:
|
|
3238
|
+
targetComponent: i.targetComponent.id,
|
|
3239
|
+
property: W(i.command.params),
|
|
2823
3240
|
shortcut: {},
|
|
2824
|
-
isRtcCommand:
|
|
2825
|
-
isNewGenerated:
|
|
3241
|
+
isRtcCommand: i.command.isRtcCommand,
|
|
3242
|
+
isNewGenerated: i.command.isNewGenerated || !1,
|
|
2826
3243
|
isInvalid: !1
|
|
2827
3244
|
};
|
|
2828
|
-
const
|
|
2829
|
-
controllerName:
|
|
3245
|
+
const D = {
|
|
3246
|
+
controllerName: i.controller
|
|
2830
3247
|
};
|
|
2831
|
-
|
|
3248
|
+
N = a(D, N, e.value), r.command = W(N), r.controller = W(i.controller), y(r, N);
|
|
2832
3249
|
}
|
|
2833
3250
|
return {
|
|
2834
|
-
controllers:
|
|
2835
|
-
onClosed:
|
|
2836
|
-
emitFinalState:
|
|
2837
|
-
toggleSelectingMethod:
|
|
2838
|
-
getViewModeId:
|
|
2839
|
-
getComponentList:
|
|
2840
|
-
updateTarget:
|
|
2841
|
-
updateCommandHasPath:
|
|
3251
|
+
controllers: d,
|
|
3252
|
+
onClosed: F,
|
|
3253
|
+
emitFinalState: j,
|
|
3254
|
+
toggleSelectingMethod: v,
|
|
3255
|
+
getViewModeId: c,
|
|
3256
|
+
getComponentList: f,
|
|
3257
|
+
updateTarget: u,
|
|
3258
|
+
updateCommandHasPath: T,
|
|
2842
3259
|
addNewController: t,
|
|
2843
|
-
checkIfNewControllerExists:
|
|
2844
|
-
getMethodsOnViewModel:
|
|
2845
|
-
getEventPath:
|
|
2846
|
-
selectBoundCommand:
|
|
3260
|
+
checkIfNewControllerExists: _,
|
|
3261
|
+
getMethodsOnViewModel: S,
|
|
3262
|
+
getEventPath: H,
|
|
3263
|
+
selectBoundCommand: A
|
|
2847
3264
|
};
|
|
2848
3265
|
}
|
|
2849
|
-
const
|
|
3266
|
+
const ze = /* @__PURE__ */ te({
|
|
2850
3267
|
name: "FEventsEditor",
|
|
2851
|
-
props:
|
|
3268
|
+
props: an,
|
|
2852
3269
|
emits: ["savedCommandListChanged"],
|
|
2853
|
-
setup(e,
|
|
2854
|
-
const
|
|
2855
|
-
loadEvents:
|
|
2856
|
-
resetBoundEvents:
|
|
2857
|
-
} =
|
|
2858
|
-
addNewInteraction:
|
|
2859
|
-
deleteInteracton:
|
|
3270
|
+
setup(e, E) {
|
|
3271
|
+
const g = b(e.initialData), h = X("designer-host-service"), a = ct(g), {
|
|
3272
|
+
loadEvents: d,
|
|
3273
|
+
resetBoundEvents: F
|
|
3274
|
+
} = a, C = X("useFormSchema"), $ = it(C, a), {
|
|
3275
|
+
addNewInteraction: j,
|
|
3276
|
+
deleteInteracton: w,
|
|
2860
3277
|
interactions: P,
|
|
2861
|
-
loadInteractions:
|
|
2862
|
-
} =
|
|
2863
|
-
emitFinalState:
|
|
2864
|
-
controllers:
|
|
2865
|
-
} =
|
|
2866
|
-
|
|
2867
|
-
function
|
|
2868
|
-
|
|
3278
|
+
loadInteractions: p
|
|
3279
|
+
} = $, l = Ot(g, $, E), {
|
|
3280
|
+
emitFinalState: v,
|
|
3281
|
+
controllers: f
|
|
3282
|
+
} = l;
|
|
3283
|
+
Be("useEventsComposition", a), Be("useInteractionCompostion", $), Be("useMethodsComposition", l);
|
|
3284
|
+
function u() {
|
|
3285
|
+
g.value.isAddControllerMethod = !1;
|
|
2869
3286
|
}
|
|
2870
|
-
function
|
|
2871
|
-
var
|
|
2872
|
-
const
|
|
2873
|
-
if (
|
|
3287
|
+
function c() {
|
|
3288
|
+
var y, A;
|
|
3289
|
+
const R = (A = (y = g.value) == null ? void 0 : y.sourceCommunication) == null ? void 0 : A.externalContainerId;
|
|
3290
|
+
if (R) {
|
|
2874
3291
|
const {
|
|
2875
|
-
assembleSourceOutline:
|
|
2876
|
-
} =
|
|
2877
|
-
|
|
3292
|
+
assembleSourceOutline: i
|
|
3293
|
+
} = be(C), o = i(h, E, R);
|
|
3294
|
+
Be("sourceOutlineData", o);
|
|
2878
3295
|
}
|
|
2879
3296
|
}
|
|
2880
|
-
|
|
2881
|
-
|
|
3297
|
+
he(() => {
|
|
3298
|
+
u(), F(), d(), p(), c();
|
|
2882
3299
|
});
|
|
2883
|
-
function
|
|
2884
|
-
|
|
3300
|
+
function S(R) {
|
|
3301
|
+
w(R), v(!1, null);
|
|
2885
3302
|
}
|
|
2886
|
-
function
|
|
2887
|
-
const
|
|
3303
|
+
function T(R, y) {
|
|
3304
|
+
const A = R.showSwitch[0], i = A.showSection[A.showSwitchNumber][3];
|
|
2888
3305
|
let o = !1;
|
|
2889
|
-
return e.initialData.getEventPath && (e.initialData.getEventPath().actionWithPath.length !== 0 ? o = !0 : o = !1), n(
|
|
2890
|
-
key: `${
|
|
2891
|
-
controllers:
|
|
2892
|
-
interaction:
|
|
2893
|
-
displayOrder:
|
|
2894
|
-
collapsed:
|
|
2895
|
-
onDelete:
|
|
2896
|
-
sourceCommunication:
|
|
3306
|
+
return e.initialData.getEventPath && (e.initialData.getEventPath().actionWithPath.length !== 0 ? o = !0 : o = !1), n($t, {
|
|
3307
|
+
key: `${y}`,
|
|
3308
|
+
controllers: f.value,
|
|
3309
|
+
interaction: R,
|
|
3310
|
+
displayOrder: y,
|
|
3311
|
+
collapsed: i,
|
|
3312
|
+
onDelete: S,
|
|
3313
|
+
sourceCommunication: g.value.sourceCommunication,
|
|
2897
3314
|
viewSourceHandle: e.viewSourceHandle,
|
|
2898
3315
|
haveBoundCommand: o
|
|
2899
3316
|
}, null);
|
|
2900
3317
|
}
|
|
2901
3318
|
function t() {
|
|
2902
|
-
var
|
|
2903
|
-
return (
|
|
3319
|
+
var R;
|
|
3320
|
+
return (R = P.value) == null ? void 0 : R.map((y, A) => {
|
|
2904
3321
|
var o;
|
|
2905
|
-
let
|
|
2906
|
-
return (o =
|
|
3322
|
+
let i = y.event.label;
|
|
3323
|
+
return (o = y.communication) != null && o.length && (i = `${y.communication.map((s) => s.id).join("-")}_${i}`), n("div", {
|
|
2907
3324
|
class: "events-display-order",
|
|
2908
|
-
key: `${
|
|
2909
|
-
}, [y
|
|
3325
|
+
key: `${i}_${A}`
|
|
3326
|
+
}, [T(y, A)]);
|
|
2910
3327
|
});
|
|
2911
3328
|
}
|
|
2912
|
-
function
|
|
2913
|
-
|
|
3329
|
+
function _(R) {
|
|
3330
|
+
j(R);
|
|
2914
3331
|
}
|
|
2915
|
-
function
|
|
2916
|
-
const
|
|
2917
|
-
if (P.value.find((
|
|
3332
|
+
function H(R) {
|
|
3333
|
+
const y = R.source;
|
|
3334
|
+
if (P.value.find((i) => {
|
|
2918
3335
|
var o;
|
|
2919
|
-
if ((o =
|
|
2920
|
-
var
|
|
2921
|
-
return ((
|
|
3336
|
+
if ((o = i.communication) != null && o.length && i.communication.find((s) => {
|
|
3337
|
+
var N, D, m;
|
|
3338
|
+
return ((N = s.source) == null ? void 0 : N.formId) === y.formId && ((D = s.source) == null ? void 0 : D.componentId) === y.componentId && ((m = s.source) == null ? void 0 : m.event) === y.event;
|
|
2922
3339
|
}))
|
|
2923
3340
|
return !0;
|
|
2924
3341
|
})) {
|
|
2925
|
-
new
|
|
3342
|
+
new fe().info({
|
|
2926
3343
|
position: "top-center",
|
|
2927
3344
|
message: "事件已存在,请勿重复添加。"
|
|
2928
3345
|
});
|
|
2929
3346
|
return;
|
|
2930
3347
|
}
|
|
2931
|
-
|
|
3348
|
+
j({
|
|
2932
3349
|
label: "onCommunication",
|
|
2933
3350
|
name: "组件通讯"
|
|
2934
|
-
},
|
|
3351
|
+
}, R);
|
|
2935
3352
|
}
|
|
2936
3353
|
return () => n("div", {
|
|
2937
3354
|
class: "f-page-events-editor"
|
|
2938
3355
|
}, [n("div", {
|
|
2939
3356
|
class: "f-page-events-editor-content"
|
|
2940
|
-
}, [n(
|
|
2941
|
-
sourceCommunication:
|
|
2942
|
-
onClickEventItem:
|
|
2943
|
-
onSelectSourceControl:
|
|
3357
|
+
}, [n(ft, {
|
|
3358
|
+
sourceCommunication: g.value.sourceCommunication,
|
|
3359
|
+
onClickEventItem: _,
|
|
3360
|
+
onSelectSourceControl: H
|
|
2944
3361
|
}, null), t()])]);
|
|
2945
3362
|
}
|
|
2946
|
-
}),
|
|
3363
|
+
}), Cl = {
|
|
2947
3364
|
install(e) {
|
|
2948
|
-
e.component(
|
|
3365
|
+
e.component(ze.name, ze);
|
|
2949
3366
|
},
|
|
2950
|
-
register(e,
|
|
2951
|
-
e["events-editor"] =
|
|
3367
|
+
register(e, E, g, h) {
|
|
3368
|
+
e["events-editor"] = ze, E["events-editor"] = at;
|
|
2952
3369
|
}
|
|
2953
3370
|
};
|
|
2954
3371
|
export {
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
3372
|
+
ze as FEventsEditor,
|
|
3373
|
+
Cl as default,
|
|
3374
|
+
an as eventsEditorProps,
|
|
3375
|
+
at as propsResolver
|
|
2959
3376
|
};
|