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