@farris/ui-vue 1.7.1 → 1.7.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +312 -61
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +1492 -59
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +752 -8
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +266 -110
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +344 -341
- package/components/calendar/index.umd.cjs +3 -3
- package/components/code-editor/index.esm.js +237 -169
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +302 -299
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +812 -502
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +329 -292
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +355 -174
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +294 -291
- package/components/comment/index.umd.cjs +6 -6
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +4390 -2708
- package/components/component/index.umd.cjs +8 -1
- package/components/condition/index.esm.js +3140 -487
- package/components/condition/index.umd.cjs +8 -1
- package/components/data-grid/index.esm.js +4 -2
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +1859 -1832
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1 -1
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3731 -2717
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +417 -405
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +373 -124
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1245 -1895
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +275 -271
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +529 -450
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +1 -1
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +2613 -1544
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +7376 -2
- package/components/expression-editor/index.umd.cjs +427 -1
- package/components/fieldset/index.esm.js +1 -1
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +423 -415
- 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 +9049 -425
- package/components/filter-condition-editor/index.umd.cjs +427 -1
- package/components/html-template/index.esm.js +33 -36
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image/index.esm.js +364 -355
- package/components/image/index.umd.cjs +2 -2
- package/components/image-cropper/index.esm.js +615 -361
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +325 -247
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +411 -409
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +549 -163
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +837 -39
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +427 -646
- package/components/list-view/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +3624 -3625
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +5 -3
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +577 -536
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/nav/index.esm.js +311 -31
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1641 -189
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +82 -82
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1196 -851
- package/components/order/index.umd.cjs +6 -6
- package/components/page-footer/index.esm.js +331 -48
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +110 -116
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +509 -232
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +353 -148
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +157 -153
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1817 -854
- package/components/property-panel/index.umd.cjs +12 -5
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +6858 -3984
- package/components/query-solution/index.umd.cjs +13 -6
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2448 -2222
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +244 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +212 -209
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +179 -8
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.css +1 -0
- package/components/sort-condition-editor/index.esm.js +9493 -4
- package/components/sort-condition-editor/index.umd.cjs +427 -1
- package/components/splitter/index.esm.js +1172 -142
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +47 -48
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +490 -419
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +217 -73
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +29 -27
- package/components/textarea/index.umd.cjs +2 -2
- package/components/transfer/index.esm.js +760 -543
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +129 -128
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +320 -153
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +1112 -607
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +359 -106
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +222 -89
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +290 -199
- package/components/weather/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +5301 -4507
- package/designer/data-grid/index.umd.cjs +17 -10
- package/designer/drawer/index.esm.js +626 -615
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +2043 -1290
- package/designer/dynamic-form/index.umd.cjs +8 -1
- package/designer/farris-designer.all.esm.js +14263 -12505
- package/designer/farris-designer.all.umd.cjs +16 -16
- package/designer/list-view/index.esm.js +327 -327
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/modal/index.esm.js +29 -137
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +238 -232
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +178 -171
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +1 -1
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +1 -6
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +3431 -2493
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +195 -188
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +822 -464
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +77525 -74884
- package/farris.all.umd.cjs +93 -93
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/accordion/src/accordion.props.d.ts +1 -0
- package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
- package/types/avatar/src/avatar.props.d.ts +1 -0
- package/types/binding-selector/index.d.ts +54 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
- package/types/button-group/index.d.ts +0 -15
- package/types/button-group/src/button-group.props.d.ts +1 -0
- package/types/code-editor/index.d.ts +1 -0
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +2 -0
- package/types/color-picker/index.d.ts +15 -0
- package/types/color-picker/src/color-picker.props.d.ts +1 -0
- package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
- package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
- package/types/component/index.d.ts +2 -0
- package/types/component/src/component.props.d.ts +8 -0
- package/types/components.d.ts +8 -1
- package/types/condition/index.d.ts +55 -0
- package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
- package/types/designer-toolbox/index.d.ts +3 -0
- package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
- package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
- package/types/designer-toolbox/src/types.d.ts +21 -0
- package/types/designer.d.ts +13 -0
- package/types/dropdown/index.d.ts +6 -27
- package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
- package/types/dropdown/src/dropdown.props.d.ts +1 -0
- package/types/dynamic-form/designer.d.ts +1 -4
- package/types/dynamic-form/index.d.ts +6 -11
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
- package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
- package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
- package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
- package/types/dynamic-form/src/response-form.props.d.ts +13 -1
- package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -0
- package/types/dynamic-resolver/index.d.ts +0 -3
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/types.d.ts +1 -0
- package/types/dynamic-view/index.d.ts +43 -3
- package/types/dynamic-view/src/components/maps.d.ts +110 -98
- package/types/dynamic-view/src/composition/index.d.ts +5 -0
- package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
- package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
- package/types/filter-condition-editor/index.d.ts +9 -0
- package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
- package/types/flow-canvas/index.d.ts +3 -0
- package/types/flow-canvas/src/components/flow-node-item.component.d.ts +8 -0
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
- package/types/flow-canvas/src/composition/types.d.ts +42 -0
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
- package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
- package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/json-editor/src/json-editor.props.d.ts +1 -0
- package/types/language-textbox/index.d.ts +3 -3
- package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
- package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
- package/types/layout/index.d.ts +0 -1
- package/types/layout/src/components/layout-pane.props.d.ts +1 -0
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +2 -0
- package/types/layout/src/designer/layout-pane.design.component.d.ts +8 -0
- package/types/layout/src/designer/layout-use-designer-rules.d.ts +2 -0
- package/types/layout/src/designer/layout.design.component.d.ts +8 -0
- package/types/layout/src/layout.props.d.ts +1 -0
- package/types/layout/src/schema/schema-mapper.d.ts +2 -0
- package/types/layout/src/schema/schema-resolver.d.ts +2 -0
- package/types/list-nav/index.d.ts +5 -24
- package/types/list-nav/src/designer/use-designer-rules.d.ts +2 -0
- package/types/list-nav/src/list-nav.props.d.ts +1 -0
- package/types/list-nav/src/property-config/list-nav.property-config.d.ts +8 -0
- package/types/list-nav/src/schema/schema-mapper.d.ts +2 -0
- package/types/list-nav/src/schema/schema-resolver.d.ts +2 -0
- package/types/list-view/index.d.ts +0 -1
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
- package/types/modal/designer.d.ts +0 -2
- package/types/nav/index.d.ts +20 -24
- package/types/nav/src/nav.props.d.ts +1 -0
- package/types/number-range/src/number-range.props.d.ts +1 -0
- package/types/order/index.d.ts +5 -36
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +1 -0
- package/types/page-footer/index.d.ts +2 -0
- package/types/page-footer/src/page-footer.props.d.ts +1 -0
- package/types/pagination/index.d.ts +0 -15
- package/types/pagination/src/pagination.props.d.ts +1 -0
- package/types/progress/src/progress.props.d.ts +1 -0
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/query-solution/index.d.ts +2 -1
- package/types/radio-group/designer.d.ts +1 -2
- package/types/search-box/index.d.ts +17 -1
- package/types/search-box/src/search-box.props.d.ts +1 -0
- package/types/section/designer.d.ts +0 -1
- package/types/smoke-detector/index.d.ts +2 -0
- package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
- package/types/sort-condition-editor/index.d.ts +7 -2
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
- package/types/splitter/index.d.ts +0 -1
- package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
- package/types/splitter/src/splitter.props.d.ts +1 -0
- package/types/tabs/designer.d.ts +0 -1
- package/types/tabs/index.d.ts +1 -0
- package/types/text/index.d.ts +20 -24
- package/types/text/src/text.props.d.ts +1 -0
- package/types/transfer/src/transfer.props.d.ts +1 -0
- package/types/tree-view/src/tree-view.props.d.ts +1 -0
- package/types/uploader/src/uploader.props.d.ts +1 -0
- package/types/verify-detail/index.d.ts +5 -58
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
- package/types/video/index.d.ts +20 -24
- package/types/video/src/video.props.d.ts +1 -0
- package/components/dynamic-form/index.css +0 -1
- package/designer/accordion/index.esm.js +0 -257
- package/designer/accordion/index.umd.cjs +0 -1
- package/designer/avatar/index.esm.js +0 -1460
- package/designer/avatar/index.umd.cjs +0 -1
- package/designer/binding-selector/index.esm.js +0 -792
- package/designer/binding-selector/index.umd.cjs +0 -1
- package/designer/button-group/index.esm.js +0 -282
- package/designer/button-group/index.umd.cjs +0 -1
- package/designer/code-editor/index.esm.js +0 -75
- package/designer/code-editor/index.umd.cjs +0 -1
- package/designer/color-picker/index.esm.js +0 -1096
- package/designer/color-picker/index.umd.cjs +0 -1
- package/designer/combo-list/index.esm.js +0 -1095
- package/designer/combo-list/index.umd.cjs +0 -1
- package/designer/combo-tree/index.esm.js +0 -186
- package/designer/combo-tree/index.umd.cjs +0 -1
- package/designer/component/index.css +0 -1
- package/designer/component/index.esm.js +0 -5002
- package/designer/component/index.umd.cjs +0 -1
- package/designer/condition/index.esm.js +0 -1899
- package/designer/condition/index.umd.cjs +0 -1
- package/designer/dropdown/index.esm.js +0 -261
- package/designer/dropdown/index.umd.cjs +0 -1
- package/designer/expression-editor/index.css +0 -1
- package/designer/expression-editor/index.esm.js +0 -7006
- package/designer/expression-editor/index.umd.cjs +0 -427
- package/designer/filter-condition-editor/index.css +0 -1
- package/designer/filter-condition-editor/index.esm.js +0 -4795
- package/designer/filter-condition-editor/index.umd.cjs +0 -1
- package/designer/html-template/index.esm.js +0 -718
- package/designer/html-template/index.umd.cjs +0 -1
- package/designer/image-cropper/index.esm.js +0 -765
- package/designer/image-cropper/index.umd.cjs +0 -1
- package/designer/json-editor/index.esm.js +0 -83
- package/designer/json-editor/index.umd.cjs +0 -1
- package/designer/language-textbox/index.esm.js +0 -783
- package/designer/language-textbox/index.umd.cjs +0 -8
- package/designer/layout/index.esm.js +0 -430
- package/designer/layout/index.umd.cjs +0 -1
- package/designer/list-nav/index.esm.js +0 -802
- package/designer/list-nav/index.umd.cjs +0 -1
- package/designer/lookup/index.esm.js +0 -2083
- package/designer/lookup/index.umd.cjs +0 -1
- package/designer/menu-lookup/index.esm.js +0 -46
- package/designer/menu-lookup/index.umd.cjs +0 -1
- package/designer/nav/index.esm.js +0 -284
- package/designer/nav/index.umd.cjs +0 -1
- package/designer/number-range/index.esm.js +0 -1616
- package/designer/number-range/index.umd.cjs +0 -1
- package/designer/order/index.css +0 -1
- package/designer/order/index.esm.js +0 -2196
- package/designer/order/index.umd.cjs +0 -18
- package/designer/page-footer/index.esm.js +0 -290
- package/designer/page-footer/index.umd.cjs +0 -1
- package/designer/page-header/index.esm.js +0 -1003
- package/designer/page-header/index.umd.cjs +0 -1
- package/designer/pagination/index.esm.js +0 -591
- package/designer/pagination/index.umd.cjs +0 -1
- package/designer/progress/index.esm.js +0 -213
- package/designer/progress/index.umd.cjs +0 -1
- package/designer/search-box/index.esm.js +0 -245
- package/designer/search-box/index.umd.cjs +0 -1
- package/designer/smoke-detector/index.css +0 -1
- package/designer/smoke-detector/index.esm.js +0 -178
- package/designer/smoke-detector/index.umd.cjs +0 -1
- package/designer/sort-condition-editor/index.esm.js +0 -138
- package/designer/sort-condition-editor/index.umd.cjs +0 -1
- package/designer/splitter/index.esm.js +0 -1120
- package/designer/splitter/index.umd.cjs +0 -1
- package/designer/step/index.esm.js +0 -226
- package/designer/step/index.umd.cjs +0 -1
- package/designer/text/index.esm.js +0 -147
- package/designer/text/index.umd.cjs +0 -1
- package/designer/transfer/index.esm.js +0 -254
- package/designer/transfer/index.umd.cjs +0 -1
- package/designer/tree-view/index.esm.js +0 -313
- package/designer/tree-view/index.umd.cjs +0 -1
- package/designer/uploader/index.esm.js +0 -1190
- package/designer/uploader/index.umd.cjs +0 -2
- package/designer/verify-detail/index.esm.js +0 -258
- package/designer/verify-detail/index.umd.cjs +0 -1
- package/designer/video/index.esm.js +0 -136
- package/designer/video/index.umd.cjs +0 -1
- package/designer/weather/index.css +0 -1
- package/designer/weather/index.esm.js +0 -6244
- package/designer/weather/index.umd.cjs +0 -14
- package/types/accordion/designer.d.ts +0 -44
- package/types/avatar/designer.d.ts +0 -29
- package/types/button-group/designer.d.ts +0 -29
- package/types/code-editor/designer.d.ts +0 -5
- package/types/color-picker/designer.d.ts +0 -29
- package/types/combo-list/designer.d.ts +0 -29
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
- package/types/combo-tree/designer.d.ts +0 -5
- package/types/component/designer.d.ts +0 -35
- package/types/condition/designer.d.ts +0 -56
- package/types/dropdown/designer.d.ts +0 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
- package/types/expression-editor/designer.d.ts +0 -9
- package/types/filter-condition-editor/designer.d.ts +0 -10
- package/types/html-template/designer.d.ts +0 -31
- package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
- package/types/image-cropper/designer.d.ts +0 -4
- package/types/json-editor/designer.d.ts +0 -5
- package/types/menu-lookup/designer.d.ts +0 -5
- package/types/nav/designer.d.ts +0 -6
- package/types/number-range/designer.d.ts +0 -29
- package/types/order/designer.d.ts +0 -6
- package/types/page-footer/designer.d.ts +0 -6
- package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
- package/types/pagination/designer.d.ts +0 -29
- package/types/progress/designer.d.ts +0 -29
- package/types/search-box/designer.d.ts +0 -52
- package/types/smoke-detector/designer.d.ts +0 -6
- package/types/sort-condition-editor/designer.d.ts +0 -9
- package/types/splitter/designer.d.ts +0 -32
- package/types/step/designer.d.ts +0 -6
- package/types/text/designer.d.ts +0 -6
- package/types/transfer/designer.d.ts +0 -35
- package/types/tree-view/designer.d.ts +0 -29
- package/types/uploader/designer.d.ts +0 -141
- package/types/verify-detail/designer.d.ts +0 -6
- package/types/video/designer.d.ts +0 -6
- /package/{designer → components}/condition/index.css +0 -0
- /package/{designer → components}/uploader/index.css +0 -0
- /package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → list-nav/src/designer/list-nav.design.component.d.ts} +0 -0
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var S = (i, t, e) =>
|
|
4
|
-
import { ref as w, computed as $, createVNode as b, defineComponent as Q, inject as _, onMounted as K, mergeProps as
|
|
5
|
-
import { resolveAppearance as
|
|
6
|
-
import { DgControl as v, canvasChanged as
|
|
7
|
-
import { useGuid as se, getMaxZIndex as
|
|
8
|
-
import { useConditionValue as
|
|
9
|
-
import { useCondition as
|
|
10
|
-
import { FNotifyService as
|
|
11
|
-
import { LocaleService as
|
|
12
|
-
import { cloneDeep as
|
|
13
|
-
import { FDynamicFormGroup as
|
|
14
|
-
import { radioGroupProps as
|
|
15
|
-
import { useDataSource as
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
["appearance", We]
|
|
1
|
+
var $e = Object.defineProperty;
|
|
2
|
+
var je = (i, t, e) => t in i ? $e(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var S = (i, t, e) => je(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { ref as w, computed as $, createVNode as b, defineComponent as Q, inject as _, onMounted as K, mergeProps as qe, createTextVNode as z, Fragment as ce, Teleport as We, nextTick as te, provide as ue, watch as fe, onUnmounted as pe } from "vue";
|
|
5
|
+
import { resolveAppearance as ze, getSchemaByType as oe, createPropsResolver as Ge } from "../dynamic-resolver/index.esm.js";
|
|
6
|
+
import { DgControl as v, canvasChanged as J, refreshCanvas as De, useDesignerComponent as Qe } from "../designer-canvas/index.esm.js";
|
|
7
|
+
import { useGuid as se, getMaxZIndex as _e, getCustomStyle as me, FormSchemaEntityField$Type as le, FormSchemaEntityFieldType$Type as Xe } from "../common/index.esm.js";
|
|
8
|
+
import { useConditionValue as Ze, useConditionUtils as ie } from "../condition/index.esm.js";
|
|
9
|
+
import { useCondition as Je, useSolutionUtils as ge } from "../query-solution/index.esm.js";
|
|
10
|
+
import { FNotifyService as Ye } from "../notify/index.esm.js";
|
|
11
|
+
import { LocaleService as ve } from "../locale/index.esm.js";
|
|
12
|
+
import { cloneDeep as X, isPlainObject as ae } from "lodash-es";
|
|
13
|
+
import { FDynamicFormGroup as He, useTypeResolver as he } from "../dynamic-form/index.esm.js";
|
|
14
|
+
import { radioGroupProps as Ke } from "../radio-group/index.esm.js";
|
|
15
|
+
import { useDataSource as et, FComboListContainer as tt } from "../combo-list/index.esm.js";
|
|
16
|
+
import { DgControl as it } from "../designer-canvas/index.esm.js/";
|
|
17
|
+
const ye = /* @__PURE__ */ new Map([
|
|
18
|
+
["appearance", ze]
|
|
20
19
|
]);
|
|
21
|
-
function
|
|
20
|
+
function nt(i, t) {
|
|
22
21
|
const e = t == null ? void 0 : t.formSchemaUtils, n = i.parentComponentInstance, r = "54bddc89-5f7e-4b91-9c45-80dd6606cfe9";
|
|
23
22
|
function s() {
|
|
24
|
-
const u = oe(v["content-container"].type),
|
|
25
|
-
if (!u || !
|
|
23
|
+
const u = oe(v["content-container"].type), d = oe(v["filter-bar"].type);
|
|
24
|
+
if (!u || !d)
|
|
26
25
|
return;
|
|
27
26
|
const o = Math.random().toString(36).substr(2, 4);
|
|
28
27
|
Object.assign(u, {
|
|
@@ -30,12 +29,12 @@ function it(i, t) {
|
|
|
30
29
|
appearance: {
|
|
31
30
|
class: "f-filter-container"
|
|
32
31
|
},
|
|
33
|
-
contents: [
|
|
34
|
-
}), Object.assign(
|
|
32
|
+
contents: [d]
|
|
33
|
+
}), Object.assign(d, {
|
|
35
34
|
id: "filter-" + o,
|
|
36
35
|
fields: []
|
|
37
36
|
});
|
|
38
|
-
const
|
|
37
|
+
const c = n.belongedComponentId, g = e.getViewModelIdByComponentId(c), f = e.getViewModelById(g);
|
|
39
38
|
return f != null && f.states && (f.states.find((p) => p.code === "originalFilterConditionList") || f.states.push(
|
|
40
39
|
{
|
|
41
40
|
id: se().guid(),
|
|
@@ -44,16 +43,16 @@ function it(i, t) {
|
|
|
44
43
|
name: "筛选条过滤条件",
|
|
45
44
|
type: "String"
|
|
46
45
|
}
|
|
47
|
-
)), { filterBar:
|
|
46
|
+
)), { filterBar: d, filterBarContainer: u };
|
|
48
47
|
}
|
|
49
48
|
function l() {
|
|
50
|
-
const u = e.getViewModelIdByComponentId(n.belongedComponentId),
|
|
49
|
+
const u = e.getViewModelIdByComponentId(n.belongedComponentId), d = e.getViewModelById(u);
|
|
51
50
|
let o;
|
|
52
|
-
if (
|
|
53
|
-
if (o =
|
|
51
|
+
if (d && d.commands) {
|
|
52
|
+
if (o = d.commands.find((c) => c.handlerName === "Filter" && c.cmpId === r), !o)
|
|
54
53
|
o = {
|
|
55
54
|
id: se().guid(),
|
|
56
|
-
code: `${
|
|
55
|
+
code: `${d.id.replace(/-/g, "").replace("component", "").replace("viewmodel", "")}Filter1`,
|
|
57
56
|
name: "过滤并加载数据1",
|
|
58
57
|
params: [
|
|
59
58
|
{
|
|
@@ -71,25 +70,25 @@ function it(i, t) {
|
|
|
71
70
|
],
|
|
72
71
|
handlerName: "Filter",
|
|
73
72
|
cmpId: r
|
|
74
|
-
},
|
|
73
|
+
}, d.commands.push(o);
|
|
75
74
|
else if (o.params && o.params.length) {
|
|
76
|
-
const
|
|
77
|
-
|
|
75
|
+
const c = o.params.find((g) => g.name === "filter");
|
|
76
|
+
c && (c.value = `{UISTATE~/#{${n.belongedComponentId}}/originalFilterConditionList}`);
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
return { filterInGridViewModel: o };
|
|
81
80
|
}
|
|
82
81
|
function m(u) {
|
|
83
|
-
const
|
|
84
|
-
if (!
|
|
82
|
+
const d = e.getCommands();
|
|
83
|
+
if (!d)
|
|
85
84
|
return;
|
|
86
|
-
let o =
|
|
85
|
+
let o = d.find((c) => c.id === r);
|
|
87
86
|
o || (o = {
|
|
88
87
|
id: r,
|
|
89
88
|
path: "igix/Web/WebCmp/bo-webcmp/metadata/webcmd/data-commands",
|
|
90
89
|
name: "LoadCommands.webcmd",
|
|
91
90
|
refedHandlers: []
|
|
92
|
-
}, e.getCommands().push(o)), u && !o.refedHandlers.find((
|
|
91
|
+
}, e.getCommands().push(o)), u && !o.refedHandlers.find((c) => c.host === u.id) && o.refedHandlers.push(
|
|
93
92
|
{
|
|
94
93
|
host: u.id,
|
|
95
94
|
handler: "Filter"
|
|
@@ -97,22 +96,22 @@ function it(i, t) {
|
|
|
97
96
|
);
|
|
98
97
|
}
|
|
99
98
|
function a() {
|
|
100
|
-
const { filterBar: u, filterBarContainer:
|
|
99
|
+
const { filterBar: u, filterBarContainer: d } = s(), { filterInGridViewModel: o } = l();
|
|
101
100
|
u && o && (u.onQuery = o.code), m(o);
|
|
102
|
-
const
|
|
103
|
-
return
|
|
101
|
+
const c = t == null ? void 0 : t.useFormCommand;
|
|
102
|
+
return c && c.checkCommands(), d;
|
|
104
103
|
}
|
|
105
104
|
return { createFilterBar: a };
|
|
106
105
|
}
|
|
107
|
-
function
|
|
106
|
+
function be(i, t, e, n) {
|
|
108
107
|
if (e.parentComponentInstance && n) {
|
|
109
|
-
const l =
|
|
108
|
+
const l = nt(e, n).createFilterBar();
|
|
110
109
|
if (l)
|
|
111
110
|
return l;
|
|
112
111
|
}
|
|
113
112
|
return t;
|
|
114
113
|
}
|
|
115
|
-
const
|
|
114
|
+
const rt = "https://json-schema.org/draft/2020-12/schema", ot = "https://farris-design.gitee.io/filter-bar.schema.json", st = "filter-bar", lt = "A Farris Component", at = "object", dt = {
|
|
116
115
|
id: {
|
|
117
116
|
description: "The unique identifier for filter-bar",
|
|
118
117
|
type: "string"
|
|
@@ -156,20 +155,20 @@ const nt = "https://json-schema.org/draft/2020-12/schema", rt = "https://farris-
|
|
|
156
155
|
description: "",
|
|
157
156
|
type: "string"
|
|
158
157
|
}
|
|
159
|
-
},
|
|
158
|
+
}, ct = [
|
|
160
159
|
"id",
|
|
161
160
|
"type"
|
|
162
|
-
],
|
|
161
|
+
], ut = {
|
|
163
162
|
onQuery: "查询事件"
|
|
164
|
-
},
|
|
165
|
-
$schema:
|
|
166
|
-
$id:
|
|
167
|
-
title:
|
|
168
|
-
description:
|
|
169
|
-
type:
|
|
170
|
-
properties:
|
|
171
|
-
required:
|
|
172
|
-
events:
|
|
163
|
+
}, Ce = {
|
|
164
|
+
$schema: rt,
|
|
165
|
+
$id: ot,
|
|
166
|
+
title: st,
|
|
167
|
+
description: lt,
|
|
168
|
+
type: at,
|
|
169
|
+
properties: dt,
|
|
170
|
+
required: ct,
|
|
171
|
+
events: ut
|
|
173
172
|
}, ne = {
|
|
174
173
|
/** 指定已设的筛选条件列表 */
|
|
175
174
|
defaultValues: {
|
|
@@ -188,9 +187,9 @@ const nt = "https://json-schema.org/draft/2020-12/schema", rt = "https://farris-
|
|
|
188
187
|
resetText: { type: String, default: "清空筛选" },
|
|
189
188
|
customClass: { type: String, default: "" },
|
|
190
189
|
customStyle: { type: String, default: "" }
|
|
191
|
-
},
|
|
190
|
+
}, ft = Ge(ne, Ce, ye, be);
|
|
192
191
|
function ee() {
|
|
193
|
-
const { getLocaleValue: i } =
|
|
192
|
+
const { getLocaleValue: i } = ve;
|
|
194
193
|
return {
|
|
195
194
|
confirm: i("filterBar.confirm"),
|
|
196
195
|
cancel: i("filterBar.cancel"),
|
|
@@ -201,19 +200,19 @@ function ee() {
|
|
|
201
200
|
require: i("filterBar.require")
|
|
202
201
|
};
|
|
203
202
|
}
|
|
204
|
-
function
|
|
205
|
-
return
|
|
203
|
+
function pt(i) {
|
|
204
|
+
return ve.getRealPropertyValue(i, "清空筛选", "filterBar.reset");
|
|
206
205
|
}
|
|
207
|
-
function
|
|
206
|
+
function mt(i, t, e, n) {
|
|
208
207
|
const r = w([]), s = w([]), l = w([]), m = w("");
|
|
209
208
|
w(i.mode);
|
|
210
|
-
const a = /* @__PURE__ */ new Map(), { createConditionValue: u } =
|
|
209
|
+
const a = /* @__PURE__ */ new Map(), { createConditionValue: u } = Ze(), { convertToControls: d } = ie("filter-bar"), o = Je(i, t), { getFilterConditions: c } = o, { fieldToCondition: g, judgeLoadNewValue: f } = ge(), p = new Ye(), h = ee();
|
|
211
210
|
let y = "[]";
|
|
212
211
|
function C(I) {
|
|
213
212
|
return !i.disabled && !I.value.isEmpty();
|
|
214
213
|
}
|
|
215
214
|
function V(I) {
|
|
216
|
-
s.value =
|
|
215
|
+
s.value = d(I), s.value.reduce((P, U) => (P.set(U.labelCode, U), P), a);
|
|
217
216
|
}
|
|
218
217
|
function B(I) {
|
|
219
218
|
const P = Array.isArray(I) ? I : [];
|
|
@@ -236,11 +235,11 @@ function pt(i, t, e, n) {
|
|
|
236
235
|
return P.value && !((U = P.value) != null && U.isEmpty());
|
|
237
236
|
})) > -1;
|
|
238
237
|
}
|
|
239
|
-
function
|
|
238
|
+
function R(I, P = []) {
|
|
240
239
|
const U = JSON.stringify(I || []);
|
|
241
240
|
U !== y && (t.emit("conditionChange", I), y = U, P.length === 0 && t.emit("query", I));
|
|
242
241
|
}
|
|
243
|
-
function
|
|
242
|
+
function N() {
|
|
244
243
|
var x;
|
|
245
244
|
k();
|
|
246
245
|
const I = [];
|
|
@@ -248,29 +247,29 @@ function pt(i, t, e, n) {
|
|
|
248
247
|
E.required && (!E.value || E.value.isEmpty()) && I.push(E.fieldName || "");
|
|
249
248
|
});
|
|
250
249
|
const P = (x = l.value) == null ? void 0 : x.filter((E) => {
|
|
251
|
-
var
|
|
252
|
-
return E.value && !((
|
|
250
|
+
var A;
|
|
251
|
+
return E.value && !((A = E.value) != null && A.isEmpty());
|
|
253
252
|
});
|
|
254
253
|
if (I.length > 0) {
|
|
255
254
|
p.warning({ message: h.require.replace("[fields]", I.join(",")), position: "top-center" });
|
|
256
255
|
return;
|
|
257
256
|
}
|
|
258
|
-
const U =
|
|
259
|
-
|
|
257
|
+
const U = c(P, s.value);
|
|
258
|
+
R(U, I);
|
|
260
259
|
}
|
|
261
260
|
function T(I, P, U = !0) {
|
|
262
|
-
V(I), B(P), U &&
|
|
261
|
+
V(I), B(P), U && N();
|
|
263
262
|
}
|
|
264
263
|
function F(I) {
|
|
265
|
-
I.value.clear(), r.value = r.value.filter((P) => P.fieldCode !== I.fieldCode), t.emit("clear", I.fieldCode),
|
|
264
|
+
I.value.clear(), r.value = r.value.filter((P) => P.fieldCode !== I.fieldCode), t.emit("clear", I.fieldCode), N();
|
|
266
265
|
}
|
|
267
266
|
function j() {
|
|
268
267
|
l.value.forEach((I) => I.value.clear());
|
|
269
268
|
}
|
|
270
|
-
function
|
|
269
|
+
function O() {
|
|
271
270
|
l.value.forEach((I) => {
|
|
272
271
|
I.value.clear();
|
|
273
|
-
}), t.emit("reset"),
|
|
272
|
+
}), t.emit("reset"), N(), n.resizeFilerBar();
|
|
274
273
|
}
|
|
275
274
|
return {
|
|
276
275
|
clearAll: j,
|
|
@@ -281,27 +280,27 @@ function pt(i, t, e, n) {
|
|
|
281
280
|
fieldMap: a,
|
|
282
281
|
loadFilterItems: T,
|
|
283
282
|
removeFilterItem: M,
|
|
284
|
-
reset:
|
|
283
|
+
reset: O,
|
|
285
284
|
shouldShowClearButtonInFilterItem: C,
|
|
286
|
-
handleQuery:
|
|
285
|
+
handleQuery: N
|
|
287
286
|
};
|
|
288
287
|
}
|
|
289
|
-
function
|
|
290
|
-
const r = w([]), s = ee(), l = w(s.advancedFilter), m = w(
|
|
288
|
+
function gt(i, t, e, n) {
|
|
289
|
+
const r = w([]), s = ee(), l = w(s.advancedFilter), m = w(pt(i.resetText)), a = w(!1), {
|
|
291
290
|
clearAll: u,
|
|
292
|
-
reset:
|
|
291
|
+
reset: d,
|
|
293
292
|
filterItems: o
|
|
294
293
|
} = e;
|
|
295
|
-
function
|
|
294
|
+
function c() {
|
|
296
295
|
r.value = o.value.filter((h) => h.isExtend);
|
|
297
296
|
}
|
|
298
|
-
|
|
297
|
+
c();
|
|
299
298
|
const g = $(() => r.value && r.value.length > 0);
|
|
300
299
|
function f(h) {
|
|
301
300
|
a.value = !0;
|
|
302
301
|
}
|
|
303
302
|
function p(h) {
|
|
304
|
-
i.mode === "display-only" ? u() :
|
|
303
|
+
i.mode === "display-only" ? u() : d();
|
|
305
304
|
}
|
|
306
305
|
return () => b("div", {
|
|
307
306
|
class: "f-filter-toolbars"
|
|
@@ -313,7 +312,7 @@ function mt(i, t, e, n) {
|
|
|
313
312
|
onClick: (h) => p()
|
|
314
313
|
}, [m.value])]);
|
|
315
314
|
}
|
|
316
|
-
const
|
|
315
|
+
const vt = {
|
|
317
316
|
filterItem: { type: Object, default: null },
|
|
318
317
|
position: { type: Object, default: null },
|
|
319
318
|
/**
|
|
@@ -322,22 +321,22 @@ const gt = {
|
|
|
322
321
|
reference: {
|
|
323
322
|
type: Object
|
|
324
323
|
}
|
|
325
|
-
},
|
|
324
|
+
}, ht = Object.assign({}, Ke), yt = /* @__PURE__ */ Q({
|
|
326
325
|
name: "FFilterRadioGroup",
|
|
327
|
-
props:
|
|
326
|
+
props: ht,
|
|
328
327
|
emits: ["update:modelValue", "change"],
|
|
329
328
|
setup(i, t) {
|
|
330
329
|
const e = w(), {
|
|
331
330
|
dataSource: n,
|
|
332
331
|
displayText: r,
|
|
333
332
|
modelValue: s
|
|
334
|
-
} =
|
|
333
|
+
} = et(i, t);
|
|
335
334
|
function l(m) {
|
|
336
335
|
r.value = m.map((u) => u[i.textField]).join(i.separator);
|
|
337
336
|
let a = "";
|
|
338
337
|
m.length === 1 ? a = m[0][i.valueField] : a = m.map((u) => u[i.valueField]).join(i.separator), s.value !== a && (s.value = a, t.emit("update:modelValue", s.value), t.emit("change", s.value));
|
|
339
338
|
}
|
|
340
|
-
return () => b(
|
|
339
|
+
return () => b(tt, {
|
|
341
340
|
style: "margin: -2px -15px;padding: 0;",
|
|
342
341
|
ref: e,
|
|
343
342
|
idField: i.valueField,
|
|
@@ -353,21 +352,21 @@ const gt = {
|
|
|
353
352
|
}
|
|
354
353
|
}, null);
|
|
355
354
|
}
|
|
356
|
-
}),
|
|
355
|
+
}), bt = /* @__PURE__ */ Q({
|
|
357
356
|
name: "FFilterBarItemCondition",
|
|
358
|
-
props:
|
|
357
|
+
props: vt,
|
|
359
358
|
emits: ["cancel", "confirm", "clearFilter"],
|
|
360
359
|
setup(i, t) {
|
|
361
|
-
const e = w(
|
|
360
|
+
const e = w(X(i.filterItem)), n = w(), r = ee(), s = w("0px"), l = w("0px"), m = w("0px"), a = w("auto"), u = $(() => ({
|
|
362
361
|
left: a.value === "auto" ? "26px" : "auto",
|
|
363
362
|
right: a.value
|
|
364
|
-
})),
|
|
363
|
+
})), d = $(() => ({
|
|
365
364
|
left: s.value,
|
|
366
365
|
top: l.value
|
|
367
366
|
})), o = $(() => ({
|
|
368
367
|
width: m.value === "0px" ? null : m.value,
|
|
369
368
|
maxWidth: m.value === "0px" ? null : m.value
|
|
370
|
-
})),
|
|
369
|
+
})), c = w(), {
|
|
371
370
|
useFilterItemsComposition: g,
|
|
372
371
|
resolveEditorProps: f
|
|
373
372
|
} = _("useFilterItemsComposition"), {
|
|
@@ -379,57 +378,57 @@ const gt = {
|
|
|
379
378
|
let V = !1, B = {};
|
|
380
379
|
const M = w(!0);
|
|
381
380
|
function k() {
|
|
382
|
-
var q,
|
|
383
|
-
if (!i.reference || !
|
|
381
|
+
var q, Z;
|
|
382
|
+
if (!i.reference || !c.value)
|
|
384
383
|
return;
|
|
385
384
|
const x = (q = i.reference) == null ? void 0 : q.getBoundingClientRect();
|
|
386
|
-
let E = (
|
|
387
|
-
const
|
|
388
|
-
E >
|
|
385
|
+
let E = (Z = c.value) == null ? void 0 : Z.getBoundingClientRect().width;
|
|
386
|
+
const A = document.body.clientWidth - x.x - 30, L = document.body.clientWidth - x.y - 30;
|
|
387
|
+
E > A && E > L && (E = Math.max(A, L)), x.left > document.body.clientWidth - E - 20 ? (s.value = x.left + x.width - E + "px", l.value = x.top + x.height + "px", a.value = "26px") : (s.value = x.left + "px", l.value = x.top + x.height + "px", a.value = "auto"), m.value = E + "px";
|
|
389
388
|
}
|
|
390
|
-
function
|
|
389
|
+
function R(x, E, A, L) {
|
|
391
390
|
V = !0, B = {
|
|
392
391
|
value: E,
|
|
393
|
-
editor:
|
|
394
|
-
option:
|
|
392
|
+
editor: A,
|
|
393
|
+
option: L
|
|
395
394
|
};
|
|
396
395
|
}
|
|
397
|
-
function
|
|
396
|
+
function N() {
|
|
398
397
|
if (!n.value)
|
|
399
398
|
return !1;
|
|
400
399
|
const x = n.value.parentElement, E = Array.from(x.children);
|
|
401
|
-
return E ? !!E.find((
|
|
400
|
+
return E ? !!E.find((L) => !L || !L.classList ? !1 : L.classList.contains("popover") && L.style.visibility === "visible") : !1;
|
|
402
401
|
}
|
|
403
|
-
function T(x, E,
|
|
404
|
-
y(x, E,
|
|
402
|
+
function T(x, E, A, L) {
|
|
403
|
+
y(x, E, A, L), t.emit("confirm", e.value);
|
|
405
404
|
}
|
|
406
405
|
function F() {
|
|
407
406
|
const {
|
|
408
407
|
id: x,
|
|
409
408
|
editor: E,
|
|
410
|
-
needEmitChange:
|
|
411
|
-
} = h(p, e.value,
|
|
409
|
+
needEmitChange: A
|
|
410
|
+
} = h(p, e.value, R);
|
|
412
411
|
if (C.value = "filter-panel--" + E.type, E.type === "radio-group") {
|
|
413
|
-
const
|
|
414
|
-
return M.value = !1, b(
|
|
412
|
+
const L = f(E.type, E);
|
|
413
|
+
return M.value = !1, b(yt, qe(L, {
|
|
415
414
|
modelValue: e.value.value.value,
|
|
416
415
|
"onUpdate:modelValue": (q) => e.value.value.value = q,
|
|
417
416
|
onChange: (q) => {
|
|
418
417
|
T(e.value, q, E);
|
|
419
418
|
}
|
|
420
419
|
}), {
|
|
421
|
-
default: () => [
|
|
420
|
+
default: () => [z(" ")]
|
|
422
421
|
});
|
|
423
422
|
}
|
|
424
|
-
return b(
|
|
423
|
+
return b(He, {
|
|
425
424
|
showLabelType: "force-none",
|
|
426
425
|
id: x,
|
|
427
426
|
key: x,
|
|
428
427
|
editor: E,
|
|
429
428
|
modelValue: e.value.value.value,
|
|
430
|
-
"onUpdate:modelValue": (
|
|
431
|
-
onChange: (
|
|
432
|
-
|
|
429
|
+
"onUpdate:modelValue": (L) => e.value.value.value = L,
|
|
430
|
+
onChange: (L, q) => {
|
|
431
|
+
A && R(e.value, L, E, q);
|
|
433
432
|
}
|
|
434
433
|
}, null);
|
|
435
434
|
}
|
|
@@ -438,16 +437,16 @@ const gt = {
|
|
|
438
437
|
});
|
|
439
438
|
function j(x) {
|
|
440
439
|
const E = C.value.replace("filter-panel--", "");
|
|
441
|
-
["input", "radio-group", "switch"].findIndex((
|
|
440
|
+
["input", "radio-group", "switch"].findIndex((A) => A === E) > -1 ? t.emit("cancel") : N() || t.emit("cancel");
|
|
442
441
|
}
|
|
443
|
-
function
|
|
442
|
+
function O(x) {
|
|
444
443
|
x.stopPropagation(), V && y(e.value, B.value, B.editor, B.option), t.emit("confirm", e.value);
|
|
445
444
|
}
|
|
446
445
|
function I(x) {
|
|
447
446
|
e.value.value.clear(), x.stopPropagation(), t.emit("confirm", e.value);
|
|
448
447
|
}
|
|
449
448
|
function P() {
|
|
450
|
-
const x =
|
|
449
|
+
const x = _e();
|
|
451
450
|
return {
|
|
452
451
|
zIndex: Math.max(x, 1050)
|
|
453
452
|
};
|
|
@@ -462,8 +461,8 @@ const gt = {
|
|
|
462
461
|
}
|
|
463
462
|
}, [b("div", {
|
|
464
463
|
class: "f-filter-panel " + C.value,
|
|
465
|
-
ref:
|
|
466
|
-
style:
|
|
464
|
+
ref: c,
|
|
465
|
+
style: d.value
|
|
467
466
|
}, [b("div", {
|
|
468
467
|
class: "f-filter-panel-inner",
|
|
469
468
|
style: o.value,
|
|
@@ -486,15 +485,15 @@ const gt = {
|
|
|
486
485
|
onClick: j
|
|
487
486
|
}, [r.cancel]), b("button", {
|
|
488
487
|
class: "filter-panel-submit btn btn-primary",
|
|
489
|
-
onClick:
|
|
488
|
+
onClick: O
|
|
490
489
|
}, [r.confirm])])])])])]);
|
|
491
490
|
}
|
|
492
|
-
}),
|
|
491
|
+
}), Fe = {
|
|
493
492
|
filterItem: { type: Object, default: null },
|
|
494
493
|
disabled: { type: Boolean, default: !1 }
|
|
495
|
-
},
|
|
494
|
+
}, Ct = /* @__PURE__ */ Q({
|
|
496
495
|
name: "FFilterBarItem",
|
|
497
|
-
props:
|
|
496
|
+
props: Fe,
|
|
498
497
|
emits: ["confirm"],
|
|
499
498
|
setup(i, t) {
|
|
500
499
|
const e = w(i.filterItem), {
|
|
@@ -504,7 +503,7 @@ const gt = {
|
|
|
504
503
|
currentFilterId: s,
|
|
505
504
|
removeFilterItem: l,
|
|
506
505
|
shouldShowClearButtonInFilterItem: m
|
|
507
|
-
} = n, a = w(!1), u = w(!1),
|
|
506
|
+
} = n, a = w(!1), u = w(!1), d = w(), o = w(""), c = w(), g = function() {
|
|
508
507
|
return {
|
|
509
508
|
"f-filter-item": !0,
|
|
510
509
|
"f-state-disabled": i.disabled,
|
|
@@ -524,7 +523,7 @@ const gt = {
|
|
|
524
523
|
a.value = !1;
|
|
525
524
|
}
|
|
526
525
|
function y() {
|
|
527
|
-
|
|
526
|
+
c.value && c.value.scrollWidth > c.value.clientWidth ? o.value = c.value.innerHTML : o.value = "";
|
|
528
527
|
}
|
|
529
528
|
function C(M) {
|
|
530
529
|
a.value = !1, e.value.value = M.value, t.emit("confirm", M), te(() => {
|
|
@@ -547,17 +546,17 @@ const gt = {
|
|
|
547
546
|
onMouseleave: () => B()
|
|
548
547
|
}, [b("div", {
|
|
549
548
|
class: "f-filter-item-inner",
|
|
550
|
-
ref:
|
|
549
|
+
ref: d,
|
|
551
550
|
onClick: (M) => p()
|
|
552
551
|
}, [e.value.required && b("span", {
|
|
553
552
|
class: "f-filter-item-required text-danger"
|
|
554
|
-
}, [
|
|
553
|
+
}, [z("*")]), b("span", {
|
|
555
554
|
class: "f-filter-item-text"
|
|
556
|
-
}, [e.value.fieldName]), !e.value.value.isEmpty() && b(
|
|
555
|
+
}, [e.value.fieldName]), !e.value.value.isEmpty() && b(ce, null, [b("span", {
|
|
557
556
|
class: "f-filter-item-tip"
|
|
558
|
-
}, [
|
|
557
|
+
}, [z(":")]), b("span", {
|
|
559
558
|
class: "f-filter-item-content",
|
|
560
|
-
ref:
|
|
559
|
+
ref: c,
|
|
561
560
|
title: o.value
|
|
562
561
|
}, [e.value.value.getDisplayText()])]), !i.disabled && b("span", {
|
|
563
562
|
class: "f-filter-item-arrow f-icon f-icon-arrow-chevron-down"
|
|
@@ -566,47 +565,47 @@ const gt = {
|
|
|
566
565
|
onClick: (M) => f()
|
|
567
566
|
}, [b("span", {
|
|
568
567
|
class: "f-icon f-icon-close-circle"
|
|
569
|
-
}, null)]), a.value && b(
|
|
568
|
+
}, null)]), a.value && b(We, {
|
|
570
569
|
to: "body"
|
|
571
570
|
}, {
|
|
572
|
-
default: () => [b(
|
|
571
|
+
default: () => [b(bt, {
|
|
573
572
|
filterItem: e.value,
|
|
574
|
-
reference:
|
|
573
|
+
reference: d.value,
|
|
575
574
|
onConfirm: C,
|
|
576
575
|
onCancel: h
|
|
577
576
|
}, null)]
|
|
578
577
|
})]);
|
|
579
578
|
}
|
|
580
579
|
});
|
|
581
|
-
function
|
|
580
|
+
function we(i, t) {
|
|
582
581
|
const e = w(null), n = 15;
|
|
583
582
|
let r = 0;
|
|
584
583
|
function s(a = -1, u = -1) {
|
|
585
584
|
var f;
|
|
586
585
|
if (!i.value)
|
|
587
586
|
return;
|
|
588
|
-
const
|
|
589
|
-
if (!
|
|
587
|
+
const d = (f = i.value) == null ? void 0 : f.querySelector(".f-filter-list");
|
|
588
|
+
if (!d)
|
|
590
589
|
return;
|
|
591
|
-
const o =
|
|
590
|
+
const o = d.children;
|
|
592
591
|
if (!o || o.length === 0 || (a < 0 && (a = i.value.clientWidth), r = u < 0 ? r : u, Math.abs(a - r) < n))
|
|
593
592
|
return;
|
|
594
593
|
Array.from(o).forEach((p) => {
|
|
595
594
|
p.style.display = "flex";
|
|
596
|
-
}), t.value =
|
|
597
|
-
let
|
|
595
|
+
}), t.value = d.clientWidth < d.scrollWidth;
|
|
596
|
+
let c = !1, g = 0;
|
|
598
597
|
for (let p = 0; p < o.length; p++) {
|
|
599
598
|
const h = o[p], y = Math.ceil(h.offsetWidth + (parseFloat(getComputedStyle(h).marginRight) || 0) + parseFloat(getComputedStyle(h).marginLeft));
|
|
600
|
-
!
|
|
599
|
+
!c && g + y <= a ? g += y : (h.style.display = "none", c = !0);
|
|
601
600
|
}
|
|
602
601
|
r = a;
|
|
603
602
|
}
|
|
604
603
|
function l() {
|
|
605
|
-
var u,
|
|
604
|
+
var u, d;
|
|
606
605
|
if (!i.value)
|
|
607
606
|
return;
|
|
608
607
|
(u = e.value) == null || u.unobserve(i.value);
|
|
609
|
-
const a = ((
|
|
608
|
+
const a = ((d = i.value.querySelector(".f-filter-list")) == null ? void 0 : d.children) || [];
|
|
610
609
|
Array.from(a).forEach((o) => {
|
|
611
610
|
o.style.display = "flex";
|
|
612
611
|
}), r = 0;
|
|
@@ -615,8 +614,8 @@ function Fe(i, t) {
|
|
|
615
614
|
if (!i.value)
|
|
616
615
|
return;
|
|
617
616
|
const a = new ResizeObserver((u) => {
|
|
618
|
-
const
|
|
619
|
-
s(
|
|
617
|
+
const d = u[0].contentRect.width;
|
|
618
|
+
s(d);
|
|
620
619
|
});
|
|
621
620
|
return a.observe(i.value), e.value = a, a;
|
|
622
621
|
}
|
|
@@ -631,39 +630,39 @@ const D = /* @__PURE__ */ Q({
|
|
|
631
630
|
props: ne,
|
|
632
631
|
emits: ["clear", "remove", "reset", "conditionChange", "change", "query"],
|
|
633
632
|
setup(i, t) {
|
|
634
|
-
const e = w(!1), n = w(!1), r = w(null), s = w(!1), l = w(0), m =
|
|
633
|
+
const e = w(!1), n = w(!1), r = w(null), s = w(!1), l = w(0), m = we(r, n), {
|
|
635
634
|
cancelWidthObserver: a,
|
|
636
635
|
setupWidthObserver: u,
|
|
637
|
-
handleVisibleChildren:
|
|
636
|
+
handleVisibleChildren: d
|
|
638
637
|
} = m, o = {
|
|
639
638
|
resizeFilerBar: () => {
|
|
640
639
|
e.value || te(() => {
|
|
641
|
-
|
|
640
|
+
d(-1, 0);
|
|
642
641
|
});
|
|
643
642
|
}
|
|
644
|
-
},
|
|
643
|
+
}, c = mt(i, t, s, o), {
|
|
645
644
|
filterFields: g,
|
|
646
645
|
filterItems: f,
|
|
647
646
|
loadFilterItems: p,
|
|
648
647
|
handleQuery: h
|
|
649
|
-
} =
|
|
648
|
+
} = c, {
|
|
650
649
|
resolveEditorProps: y
|
|
651
|
-
} =
|
|
652
|
-
|
|
653
|
-
useFilterItemsComposition:
|
|
650
|
+
} = he();
|
|
651
|
+
ue("useFilterItemsComposition", {
|
|
652
|
+
useFilterItemsComposition: c,
|
|
654
653
|
resolveEditorProps: y
|
|
655
654
|
});
|
|
656
655
|
const C = ee(), V = $(() => {
|
|
657
|
-
const
|
|
656
|
+
const O = {
|
|
658
657
|
display: g.value && g.value.length ? "" : "none"
|
|
659
658
|
};
|
|
660
|
-
return
|
|
659
|
+
return me(O, i == null ? void 0 : i.customStyle);
|
|
661
660
|
});
|
|
662
|
-
p(i.fields, i.defaultValues, !!(i.defaultValues && i.defaultValues.length > 0)),
|
|
663
|
-
p(I,
|
|
661
|
+
p(i.fields, i.defaultValues, !!(i.defaultValues && i.defaultValues.length > 0)), fe([() => i.defaultValues, () => i.fields], ([O, I]) => {
|
|
662
|
+
p(I, O), l.value++, o.resizeFilerBar();
|
|
664
663
|
}), K(() => {
|
|
665
664
|
u();
|
|
666
|
-
}),
|
|
665
|
+
}), pe(() => {
|
|
667
666
|
a();
|
|
668
667
|
});
|
|
669
668
|
const B = $(() => ({
|
|
@@ -676,28 +675,28 @@ const D = /* @__PURE__ */ Q({
|
|
|
676
675
|
"f-icon-arrow-chevron-up": e.value,
|
|
677
676
|
"f-icon-arrow-chevron-down": !e.value
|
|
678
677
|
})), k = $(() => !e.value && n.value);
|
|
679
|
-
function
|
|
678
|
+
function R() {
|
|
680
679
|
e.value = !e.value, e.value ? a() : u();
|
|
681
680
|
}
|
|
682
|
-
const
|
|
683
|
-
function T(
|
|
684
|
-
t.emit("change",
|
|
681
|
+
const N = gt(i, t, c, s);
|
|
682
|
+
function T(O) {
|
|
683
|
+
t.emit("change", O), h(), o.resizeFilerBar();
|
|
685
684
|
}
|
|
686
685
|
function F() {
|
|
687
686
|
return b("div", {
|
|
688
687
|
class: B.value,
|
|
689
688
|
key: i.id + "-main-" + l.value
|
|
690
|
-
}, [f.value.map((
|
|
691
|
-
filterItem:
|
|
689
|
+
}, [f.value.map((O, I) => !O.isExtend && b(Ct, {
|
|
690
|
+
filterItem: O,
|
|
692
691
|
onConfirm: T,
|
|
693
|
-
disabled: i.disabled ||
|
|
694
|
-
}, null)), e.value &&
|
|
692
|
+
disabled: i.disabled || O.disabled
|
|
693
|
+
}, null)), e.value && N()]);
|
|
695
694
|
}
|
|
696
695
|
function j() {
|
|
697
696
|
return k.value && b("div", {
|
|
698
697
|
class: "f-filter-list-ellipsis",
|
|
699
|
-
onClick: (
|
|
700
|
-
}, [
|
|
698
|
+
onClick: (O) => R()
|
|
699
|
+
}, [z("...")]);
|
|
701
700
|
}
|
|
702
701
|
return () => b("div", {
|
|
703
702
|
class: "f-filter-wrapper " + i.customClass,
|
|
@@ -709,11 +708,11 @@ const D = /* @__PURE__ */ Q({
|
|
|
709
708
|
}, [b("div", {
|
|
710
709
|
class: "f-filter-list-wrapper flex-fill",
|
|
711
710
|
ref: r
|
|
712
|
-
}, [F()]), j(), !e.value &&
|
|
711
|
+
}, [F()]), j(), !e.value && N()]), n.value && b("div", {
|
|
713
712
|
class: "f-filter-extend-btn"
|
|
714
713
|
}, [b("button", {
|
|
715
714
|
class: "btn btn-link",
|
|
716
|
-
onClick:
|
|
715
|
+
onClick: R
|
|
717
716
|
}, [b("span", {
|
|
718
717
|
class: "extend-btn-text"
|
|
719
718
|
}, [e.value ? C.fold : C.expand]), b("span", {
|
|
@@ -721,22 +720,22 @@ const D = /* @__PURE__ */ Q({
|
|
|
721
720
|
}, null)])])])]);
|
|
722
721
|
}
|
|
723
722
|
});
|
|
724
|
-
function
|
|
723
|
+
function Ft(i, t) {
|
|
725
724
|
w([]);
|
|
726
725
|
const e = w([]), n = w([]), r = w("");
|
|
727
726
|
w(!1), w(i.mode);
|
|
728
|
-
const s = /* @__PURE__ */ new Map(), { convertToControls: l } = ie("filter-bar"), { fieldToCondition: m } =
|
|
729
|
-
function a(
|
|
730
|
-
return !
|
|
727
|
+
const s = /* @__PURE__ */ new Map(), { convertToControls: l } = ie("filter-bar"), { fieldToCondition: m } = ge();
|
|
728
|
+
function a(c) {
|
|
729
|
+
return !c.value.isEmpty();
|
|
731
730
|
}
|
|
732
|
-
function u(
|
|
733
|
-
e.value =
|
|
731
|
+
function u(c) {
|
|
732
|
+
e.value = X(c), e.value.reduce((g, f) => (g.set(f.labelCode, f), g), s);
|
|
734
733
|
}
|
|
735
|
-
function c
|
|
734
|
+
function d(c) {
|
|
736
735
|
n.value = e.value.map((g) => m(g));
|
|
737
736
|
}
|
|
738
|
-
function o(
|
|
739
|
-
u(
|
|
737
|
+
function o(c, g) {
|
|
738
|
+
u(c), d();
|
|
740
739
|
}
|
|
741
740
|
return o(i.fields), {
|
|
742
741
|
currentFilterId: r,
|
|
@@ -747,7 +746,7 @@ function Ct(i, t) {
|
|
|
747
746
|
shouldShowClearButtonInFilterItem: a
|
|
748
747
|
};
|
|
749
748
|
}
|
|
750
|
-
function
|
|
749
|
+
function wt(i, t, e) {
|
|
751
750
|
const n = w([]), r = w("更多筛选"), {
|
|
752
751
|
filterItems: s
|
|
753
752
|
} = e;
|
|
@@ -762,9 +761,9 @@ function Ft(i, t, e) {
|
|
|
762
761
|
class: "btn btn-link"
|
|
763
762
|
}, [r.value])]);
|
|
764
763
|
}
|
|
765
|
-
const
|
|
764
|
+
const It = /* @__PURE__ */ Q({
|
|
766
765
|
name: "FFilterBarItemDesign",
|
|
767
|
-
props:
|
|
766
|
+
props: Fe,
|
|
768
767
|
emits: ["confirm"],
|
|
769
768
|
setup(i, t) {
|
|
770
769
|
const e = w(i.filterItem), {
|
|
@@ -788,11 +787,11 @@ const wt = /* @__PURE__ */ Q({
|
|
|
788
787
|
class: "f-filter-item-inner"
|
|
789
788
|
}, [e.value.required && b("span", {
|
|
790
789
|
class: "f-filter-item-required text-danger"
|
|
791
|
-
}, [
|
|
790
|
+
}, [z("*")]), b("span", {
|
|
792
791
|
class: "f-filter-item-text"
|
|
793
|
-
}, [e.value.fieldName]), e.value.value.getDisplayText() && b(
|
|
792
|
+
}, [e.value.fieldName]), e.value.value.getDisplayText() && b(ce, null, [b("span", {
|
|
794
793
|
class: "f-filter-item-tip"
|
|
795
|
-
}, [
|
|
794
|
+
}, [z(":")]), b("span", {
|
|
796
795
|
class: "f-filter-item-content"
|
|
797
796
|
}, [e.value.value.getDisplayText()])]), !l.value && b("span", {
|
|
798
797
|
class: "f-filter-item-arrow f-icon f-icon-arrow-chevron-down"
|
|
@@ -803,7 +802,7 @@ const wt = /* @__PURE__ */ Q({
|
|
|
803
802
|
}, null)])]);
|
|
804
803
|
}
|
|
805
804
|
});
|
|
806
|
-
function
|
|
805
|
+
function Et(i) {
|
|
807
806
|
const { formSchemaUtils: t, formStateMachineUtils: e } = i;
|
|
808
807
|
function n(a, u = "") {
|
|
809
808
|
return {
|
|
@@ -813,15 +812,15 @@ function It(i) {
|
|
|
813
812
|
};
|
|
814
813
|
}
|
|
815
814
|
function r(a, u = "") {
|
|
816
|
-
const
|
|
817
|
-
return
|
|
815
|
+
const d = t.getViewModelById(a);
|
|
816
|
+
return d ? d.states.map((o) => n(o, u)) : [];
|
|
818
817
|
}
|
|
819
818
|
function s(a) {
|
|
820
|
-
const u = t.getRootViewModelId(),
|
|
819
|
+
const u = t.getRootViewModelId(), d = r(a);
|
|
821
820
|
if (a === u)
|
|
822
|
-
return
|
|
821
|
+
return d;
|
|
823
822
|
const o = r(u, "root-component.");
|
|
824
|
-
return [...
|
|
823
|
+
return [...d, ...o];
|
|
825
824
|
}
|
|
826
825
|
function l(a) {
|
|
827
826
|
return a.binding && a.binding.path || a.id || "";
|
|
@@ -831,7 +830,7 @@ function It(i) {
|
|
|
831
830
|
}
|
|
832
831
|
return { getVariables: s, getControlName: l, getStateMachines: m };
|
|
833
832
|
}
|
|
834
|
-
class
|
|
833
|
+
class Ie {
|
|
835
834
|
constructor(t) {
|
|
836
835
|
S(this, "sessionVariables", [
|
|
837
836
|
{
|
|
@@ -1016,12 +1015,12 @@ class we {
|
|
|
1016
1015
|
}
|
|
1017
1016
|
updateExpression(t, e, n, r) {
|
|
1018
1017
|
const s = e === "Field" ? t.binding.field : t.id, l = this.buildRule(s, n, r, t.type === "form-group" ? t.id : "");
|
|
1019
|
-
let a = this.getExpressionData().find((
|
|
1020
|
-
const u = (
|
|
1018
|
+
let a = this.getExpressionData().find((d) => d.targetType === e && d.target === s);
|
|
1019
|
+
const u = (d) => d.value.trim() === "";
|
|
1021
1020
|
if (a) {
|
|
1022
|
-
const
|
|
1023
|
-
if (
|
|
1024
|
-
u(l) ? a.rules = a.rules.filter((o) => o.id !== l.id) : (Object.assign(
|
|
1021
|
+
const d = a.rules.find((o) => o.id === l.id);
|
|
1022
|
+
if (d)
|
|
1023
|
+
u(l) ? a.rules = a.rules.filter((o) => o.id !== l.id) : (Object.assign(d, l), r === "validate" && t.type === "form-group" && (d.elementId = t.id));
|
|
1025
1024
|
else {
|
|
1026
1025
|
if (u(l))
|
|
1027
1026
|
return null;
|
|
@@ -1056,11 +1055,11 @@ class we {
|
|
|
1056
1055
|
showMessage: l === "validate" || l === "dataPicking" || l === "required",
|
|
1057
1056
|
showMessageType: l === "dataPicking",
|
|
1058
1057
|
beforeOpen: () => this.onBeforeOpenExpression(t, l, e),
|
|
1059
|
-
onSubmitModal: (
|
|
1060
|
-
const o = this.updateExpression(t, e,
|
|
1058
|
+
onSubmitModal: (d) => {
|
|
1059
|
+
const o = this.updateExpression(t, e, d, l);
|
|
1061
1060
|
if (r) {
|
|
1062
|
-
const
|
|
1063
|
-
r(
|
|
1061
|
+
const c = this.buildRule(m, d, l);
|
|
1062
|
+
r(c);
|
|
1064
1063
|
}
|
|
1065
1064
|
return o;
|
|
1066
1065
|
}
|
|
@@ -1098,7 +1097,7 @@ class we {
|
|
|
1098
1097
|
};
|
|
1099
1098
|
}
|
|
1100
1099
|
}
|
|
1101
|
-
class
|
|
1100
|
+
class xt {
|
|
1102
1101
|
constructor(t, e) {
|
|
1103
1102
|
S(this, "componentId");
|
|
1104
1103
|
S(this, "viewModelId");
|
|
@@ -1195,7 +1194,7 @@ class Et {
|
|
|
1195
1194
|
switch (l && l.propertyID) {
|
|
1196
1195
|
case "class":
|
|
1197
1196
|
case "style": {
|
|
1198
|
-
|
|
1197
|
+
J.value++;
|
|
1199
1198
|
break;
|
|
1200
1199
|
}
|
|
1201
1200
|
}
|
|
@@ -1215,26 +1214,26 @@ class Et {
|
|
|
1215
1214
|
* @returns
|
|
1216
1215
|
*/
|
|
1217
1216
|
getPropertyEditorParams(t, e = [], n = "visible", r = {}, s = {}, l = "") {
|
|
1218
|
-
const { getVariables: m, getControlName: a, getStateMachines: u } =
|
|
1217
|
+
const { getVariables: m, getControlName: a, getStateMachines: u } = Et(this.designerHostService), d = this.getRealTargetType(t), o = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], c = {
|
|
1219
1218
|
type: "property-editor",
|
|
1220
1219
|
propertyTypes: o
|
|
1221
1220
|
};
|
|
1222
1221
|
return o.map((g) => {
|
|
1223
1222
|
switch (g) {
|
|
1224
1223
|
case "Const":
|
|
1225
|
-
Object.assign(
|
|
1224
|
+
Object.assign(c, {
|
|
1226
1225
|
constType: "enum",
|
|
1227
1226
|
constEnums: [{ id: !0, name: "是" }, { id: !1, name: "否" }]
|
|
1228
1227
|
}, r);
|
|
1229
1228
|
break;
|
|
1230
1229
|
case "Expression":
|
|
1231
|
-
|
|
1230
|
+
c.expressionConfig = this.getExpressionOptions(t, d, l || n);
|
|
1232
1231
|
break;
|
|
1233
1232
|
case "StateMachine":
|
|
1234
|
-
|
|
1233
|
+
c.stateMachines = u();
|
|
1235
1234
|
break;
|
|
1236
1235
|
case "Variable":
|
|
1237
|
-
Object.assign(
|
|
1236
|
+
Object.assign(c, {
|
|
1238
1237
|
controlName: a(t),
|
|
1239
1238
|
newVariablePrefix: "is",
|
|
1240
1239
|
newVariableType: "Boolean",
|
|
@@ -1243,10 +1242,10 @@ class Et {
|
|
|
1243
1242
|
onBeforeOpenVariables: (f) => {
|
|
1244
1243
|
f.value = m(this.viewModelId);
|
|
1245
1244
|
}
|
|
1246
|
-
}, s), this.designerContext.designerMode === "PC_RTC" && (
|
|
1245
|
+
}, s), this.designerContext.designerMode === "PC_RTC" && (c.newVariablePrefix = "ext_" + c.newVariablePrefix);
|
|
1247
1246
|
break;
|
|
1248
1247
|
}
|
|
1249
|
-
}),
|
|
1248
|
+
}), c;
|
|
1250
1249
|
}
|
|
1251
1250
|
getVisibleProperty(t, e = "") {
|
|
1252
1251
|
var s;
|
|
@@ -1309,8 +1308,8 @@ class Et {
|
|
|
1309
1308
|
const n = e && e.parent && e.parent.schema;
|
|
1310
1309
|
if (!n)
|
|
1311
1310
|
return;
|
|
1312
|
-
const r = n.contents.findIndex((l) => l.id === t), s =
|
|
1313
|
-
n.contents.splice(r, 1), n.contents.splice(r, 0, s),
|
|
1311
|
+
const r = n.contents.findIndex((l) => l.id === t), s = X(n.contents[r]);
|
|
1312
|
+
n.contents.splice(r, 1), n.contents.splice(r, 0, s), De();
|
|
1314
1313
|
}
|
|
1315
1314
|
/**
|
|
1316
1315
|
* 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
|
|
@@ -1340,16 +1339,16 @@ class Et {
|
|
|
1340
1339
|
const e = t.propertyValue;
|
|
1341
1340
|
if (!((e && e.type) === "Expression" && e.expressionInfo))
|
|
1342
1341
|
return;
|
|
1343
|
-
const { expressionId: s, expressionInfo: l } = e, { targetId: m, targetType: a, expressionType: u, value:
|
|
1344
|
-
|
|
1345
|
-
const { expressions: g } =
|
|
1342
|
+
const { expressionId: s, expressionInfo: l } = e, { targetId: m, targetType: a, expressionType: u, value: d, message: o } = l, c = this.formSchemaUtils.getModule();
|
|
1343
|
+
c.expressions = c.expressions || [];
|
|
1344
|
+
const { expressions: g } = c;
|
|
1346
1345
|
let f = g.find((h) => h.target === m);
|
|
1347
1346
|
f || (f = { target: m, rules: [], targetType: a }, g.push(f));
|
|
1348
1347
|
const p = f.rules.find((h) => h.type === u);
|
|
1349
1348
|
if (p)
|
|
1350
|
-
p.value =
|
|
1349
|
+
p.value = d, p.message = o;
|
|
1351
1350
|
else {
|
|
1352
|
-
const h = { id: s, type: u, value:
|
|
1351
|
+
const h = { id: s, type: u, value: d, message: o };
|
|
1353
1352
|
f.rules.push(h);
|
|
1354
1353
|
}
|
|
1355
1354
|
delete e.expressionInfo;
|
|
@@ -1368,7 +1367,7 @@ class Et {
|
|
|
1368
1367
|
!a || !a.rules || (a.rules = a.rules.filter((u) => u.type !== s));
|
|
1369
1368
|
}
|
|
1370
1369
|
getExpressionOptions(t, e, n) {
|
|
1371
|
-
return new
|
|
1370
|
+
return new Ie(this.formSchemaUtils).getExpressionOptions(t, e, n);
|
|
1372
1371
|
}
|
|
1373
1372
|
getRealTargetType(t) {
|
|
1374
1373
|
return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item", "drawer-toolbar-item"].indexOf(t.type) > -1 ? "Button" : t.binding && t.binding.field ? "Field" : "Container";
|
|
@@ -1387,14 +1386,14 @@ class Et {
|
|
|
1387
1386
|
}, e;
|
|
1388
1387
|
}
|
|
1389
1388
|
}
|
|
1390
|
-
const
|
|
1389
|
+
const G = class G {
|
|
1391
1390
|
/**
|
|
1392
1391
|
* 根据绑定字段类型获取可用的输入类控件
|
|
1393
1392
|
*/
|
|
1394
1393
|
static getEditorTypesByMDataType(t, e = !1, n = "") {
|
|
1395
1394
|
if (e)
|
|
1396
1395
|
return [{ key: v["language-textbox"].type, value: v["language-textbox"].name }];
|
|
1397
|
-
let r =
|
|
1396
|
+
let r = G.fieldControlTypeMapping[t];
|
|
1398
1397
|
if (n === "data-grid-column" && (r != null && r.length)) {
|
|
1399
1398
|
const s = [v["check-group"].type, v["radio-group"].type, v.image.type, v["rich-text-editor"].type];
|
|
1400
1399
|
r = r.filter((l) => !s.includes(l.key));
|
|
@@ -1406,8 +1405,8 @@ const z = class z {
|
|
|
1406
1405
|
*/
|
|
1407
1406
|
static getAllInputTypes() {
|
|
1408
1407
|
const t = [];
|
|
1409
|
-
for (const e in
|
|
1410
|
-
|
|
1408
|
+
for (const e in G.fieldControlTypeMapping)
|
|
1409
|
+
G.fieldControlTypeMapping[e].forEach((n) => {
|
|
1411
1410
|
t.find((r) => r.key === n.key && r.value === n.value) || t.push({ key: n.key, value: n.value });
|
|
1412
1411
|
});
|
|
1413
1412
|
return t;
|
|
@@ -1425,7 +1424,7 @@ const z = class z {
|
|
|
1425
1424
|
/**
|
|
1426
1425
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1427
1426
|
*/
|
|
1428
|
-
S(
|
|
1427
|
+
S(G, "fieldControlTypeMapping", {
|
|
1429
1428
|
String: [
|
|
1430
1429
|
{ key: v["input-group"].type, value: v["input-group"].name },
|
|
1431
1430
|
{ key: v.lookup.type, value: v.lookup.name },
|
|
@@ -1479,9 +1478,9 @@ S(z, "fieldControlTypeMapping", {
|
|
|
1479
1478
|
{ key: v["radio-group"].type, value: v["radio-group"].name }
|
|
1480
1479
|
]
|
|
1481
1480
|
});
|
|
1482
|
-
let
|
|
1483
|
-
var
|
|
1484
|
-
class
|
|
1481
|
+
let H = G;
|
|
1482
|
+
var Y = /* @__PURE__ */ ((i) => (i.Form = "Form", i.Variable = "Variable", i))(Y || {});
|
|
1483
|
+
class de {
|
|
1485
1484
|
constructor() {
|
|
1486
1485
|
/** 控件标题 */
|
|
1487
1486
|
S(this, "label", "");
|
|
@@ -1515,8 +1514,8 @@ function St(i) {
|
|
|
1515
1514
|
let t, e;
|
|
1516
1515
|
const n = /* @__PURE__ */ new Map();
|
|
1517
1516
|
let r = [];
|
|
1518
|
-
function s(
|
|
1519
|
-
const g =
|
|
1517
|
+
function s(d, o) {
|
|
1518
|
+
const g = ((d == null ? void 0 : d.split(" ")) || []).filter((C) => C.startsWith("col-"));
|
|
1520
1519
|
if (g.length === 0) {
|
|
1521
1520
|
o.isSupportedClass = !1;
|
|
1522
1521
|
return;
|
|
@@ -1524,31 +1523,38 @@ function St(i) {
|
|
|
1524
1523
|
let f = g.find((C) => /^col-([1-9]|10|11|12)$/.test(C)), p = g.find((C) => /^col-md-([1-9]|10|11|12)$/.test(C)), h = g.find((C) => /^col-xl-([1-9]|10|11|12)$/.test(C)), y = g.find((C) => /^col-el-([1-9]|10|11|12)$/.test(C));
|
|
1525
1524
|
f = f || "col-12", o.columnInSM = parseInt(f.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), p = p || "col-md-" + o.columnInSM, o.columnInMD = parseInt(p.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), h = h || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(h.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), y = y || "col-el-" + o.columnInLG, o.columnInEL = parseInt(y.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
|
|
1526
1525
|
}
|
|
1527
|
-
function l(
|
|
1526
|
+
function l(d, o, c, g = !1) {
|
|
1528
1527
|
let f = !1;
|
|
1529
|
-
|
|
1528
|
+
if (!d.contents || d.contents.length === 0) {
|
|
1529
|
+
const p = new de();
|
|
1530
|
+
s(d.layout, p), o.push(p);
|
|
1531
|
+
return;
|
|
1532
|
+
}
|
|
1533
|
+
d.contents.forEach((p) => {
|
|
1530
1534
|
if (p.type === "fieldset") {
|
|
1531
|
-
|
|
1535
|
+
c += 1, l(p, o, c, !0), f = !0;
|
|
1532
1536
|
return;
|
|
1533
1537
|
}
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1538
|
+
if (p.type === "dynamic-form")
|
|
1539
|
+
return;
|
|
1540
|
+
f && (c += 1, f = !1);
|
|
1541
|
+
const h = p.appearance && p.appearance.class, y = new de();
|
|
1542
|
+
h ? s(h, y) : y.isSupportedClass = !1, y.label = p.label || p.id, y.id = p.id, y.group = c, g && (y.fieldSetId = d.id), e === p.id && (t = c), n.set(p.id, p), o.push(y);
|
|
1537
1543
|
});
|
|
1538
1544
|
}
|
|
1539
|
-
function m(
|
|
1540
|
-
const o = i.getComponentById(
|
|
1545
|
+
function m(d) {
|
|
1546
|
+
const o = i.getComponentById(d);
|
|
1541
1547
|
if (!o || !o.componentType || !o.componentType.startsWith("form"))
|
|
1542
1548
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
1543
|
-
const
|
|
1544
|
-
return !
|
|
1549
|
+
const c = i.selectNode(o, (g) => g.type === v["response-form"].type);
|
|
1550
|
+
return !c || !c.contents || c.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: c };
|
|
1545
1551
|
}
|
|
1546
|
-
function a(
|
|
1547
|
-
o = o ||
|
|
1548
|
-
const { result:
|
|
1549
|
-
if (!
|
|
1550
|
-
return { result:
|
|
1551
|
-
e =
|
|
1552
|
+
function a(d, o) {
|
|
1553
|
+
o = o || d.id;
|
|
1554
|
+
const { result: c, message: g, formNode: f } = m(o);
|
|
1555
|
+
if (!c)
|
|
1556
|
+
return { result: c, message: g };
|
|
1557
|
+
e = d.id, r = [], n.clear();
|
|
1552
1558
|
const p = f.contents[0].type === v.fieldset.type ? 0 : 1;
|
|
1553
1559
|
l(f, r, p);
|
|
1554
1560
|
const h = r.find((C) => !C.isSupportedClass);
|
|
@@ -1560,17 +1566,17 @@ function St(i) {
|
|
|
1560
1566
|
importData: r
|
|
1561
1567
|
};
|
|
1562
1568
|
}
|
|
1563
|
-
function u(
|
|
1569
|
+
function u(d, o) {
|
|
1564
1570
|
o = o;
|
|
1565
|
-
const { result:
|
|
1566
|
-
if (!
|
|
1571
|
+
const { result: c, formNode: g } = m(o);
|
|
1572
|
+
if (!c)
|
|
1567
1573
|
return "";
|
|
1568
1574
|
const f = [];
|
|
1569
|
-
return
|
|
1575
|
+
return d.forEach((p) => {
|
|
1570
1576
|
var C;
|
|
1571
1577
|
const h = n.get(p.id), y = h.appearance && h.appearance.class;
|
|
1572
1578
|
if (y) {
|
|
1573
|
-
const B = y.split(" ").filter((F) => !F.startsWith("col-")), M = "col-" + p.columnInSM, k = "col-md-" + p.columnInMD,
|
|
1579
|
+
const B = y.split(" ").filter((F) => !F.startsWith("col-")), M = "col-" + p.columnInSM, k = "col-md-" + p.columnInMD, R = "col-xl-" + p.columnInLG, N = "col-el-" + p.columnInEL, T = [M, k, R, N].concat(B);
|
|
1574
1580
|
h.appearance.class = T.join(" ");
|
|
1575
1581
|
}
|
|
1576
1582
|
if (p.fieldSetId) {
|
|
@@ -1587,7 +1593,7 @@ function St(i) {
|
|
|
1587
1593
|
getResonseFormLayoutConfig: l
|
|
1588
1594
|
};
|
|
1589
1595
|
}
|
|
1590
|
-
class Mt extends
|
|
1596
|
+
class Mt extends xt {
|
|
1591
1597
|
constructor(e, n) {
|
|
1592
1598
|
super(e, n);
|
|
1593
1599
|
S(this, "responseLayoutEditorFunction");
|
|
@@ -1673,19 +1679,19 @@ class Mt extends Et {
|
|
|
1673
1679
|
readonly: this.formSchemaUtils.designerMode === "PC_RTC" && !e.isRtcControl
|
|
1674
1680
|
}
|
|
1675
1681
|
},
|
|
1676
|
-
setPropertyRelates(
|
|
1677
|
-
if (
|
|
1678
|
-
switch (
|
|
1682
|
+
setPropertyRelates(d, o, c) {
|
|
1683
|
+
if (d)
|
|
1684
|
+
switch (d && d.propertyID) {
|
|
1679
1685
|
case "type": {
|
|
1680
|
-
s.changeControlType(e,
|
|
1686
|
+
s.changeControlType(e, d, n);
|
|
1681
1687
|
break;
|
|
1682
1688
|
}
|
|
1683
1689
|
case "label": {
|
|
1684
|
-
|
|
1690
|
+
d.needRefreshControlTree = !0;
|
|
1685
1691
|
break;
|
|
1686
1692
|
}
|
|
1687
1693
|
case "binding": {
|
|
1688
|
-
s.changeBindingField(e,
|
|
1694
|
+
s.changeBindingField(e, d, c);
|
|
1689
1695
|
break;
|
|
1690
1696
|
}
|
|
1691
1697
|
}
|
|
@@ -1711,7 +1717,7 @@ class Mt extends Et {
|
|
|
1711
1717
|
* 获取可选的编辑器类型
|
|
1712
1718
|
*/
|
|
1713
1719
|
getAvailableEditorType(e) {
|
|
1714
|
-
var s;
|
|
1720
|
+
var s, l;
|
|
1715
1721
|
const n = this.checkCanChangeControlType(e, this.viewModelId);
|
|
1716
1722
|
if (!n)
|
|
1717
1723
|
return {
|
|
@@ -1722,7 +1728,7 @@ class Mt extends Et {
|
|
|
1722
1728
|
}]
|
|
1723
1729
|
};
|
|
1724
1730
|
let r = [];
|
|
1725
|
-
return this.designViewModelField && this.designViewModelField.$type === le.SimpleField ? r =
|
|
1731
|
+
return this.designViewModelField && this.designViewModelField.$type === le.SimpleField ? r = H.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (r = H.getEditorTypesByMDataType(this.bindingVarible.type, !!((l = this.designViewModelField) != null && l.multiLanguage))), { canChangeControlType: n, editorTypeList: r };
|
|
1726
1732
|
}
|
|
1727
1733
|
changeBindingField(e, n, r) {
|
|
1728
1734
|
n.needRefreshEntityTree = !0;
|
|
@@ -1773,10 +1779,10 @@ class Mt extends Et {
|
|
|
1773
1779
|
r.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(s.propertyValue, r.componentId || e.id), r.updateUnifiedLayoutAfterResponseLayoutChanged(r.componentId), r.updateElementByParentContainer(e.id, n), delete e.responseLayout;
|
|
1774
1780
|
break;
|
|
1775
1781
|
case "class":
|
|
1776
|
-
r.updateUnifiedLayoutAfterControlChanged(s.propertyValue, e.id, this.componentId),
|
|
1782
|
+
r.updateUnifiedLayoutAfterControlChanged(s.propertyValue, e.id, this.componentId), J.value++;
|
|
1777
1783
|
break;
|
|
1778
1784
|
case "style": {
|
|
1779
|
-
|
|
1785
|
+
J.value++;
|
|
1780
1786
|
break;
|
|
1781
1787
|
}
|
|
1782
1788
|
}
|
|
@@ -1795,14 +1801,14 @@ class Mt extends Et {
|
|
|
1795
1801
|
const s = n.propertyValue, l = r && r.parent && r.parent.schema;
|
|
1796
1802
|
if (!l)
|
|
1797
1803
|
return;
|
|
1798
|
-
const m = l.contents.findIndex((
|
|
1804
|
+
const m = l.contents.findIndex((d) => d.id === e.id);
|
|
1799
1805
|
if (m === -1)
|
|
1800
1806
|
return;
|
|
1801
1807
|
const a = l.contents[m];
|
|
1802
1808
|
let u;
|
|
1803
1809
|
if (this.designViewModelField) {
|
|
1804
|
-
const
|
|
1805
|
-
|
|
1810
|
+
const c = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((f) => f.id === this.designViewModelField.id).fieldSchema || {};
|
|
1811
|
+
c.editor || (c.editor = {}), c.editor.$type = s, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, c, !1), u = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, s);
|
|
1806
1812
|
}
|
|
1807
1813
|
u || (u = this.controlCreatorUtils.createFormGroupWithoutField(s)), Object.assign(u, {
|
|
1808
1814
|
id: a.id,
|
|
@@ -1810,25 +1816,25 @@ class Mt extends Et {
|
|
|
1810
1816
|
size: a.size,
|
|
1811
1817
|
label: a.label,
|
|
1812
1818
|
binding: a.binding
|
|
1813
|
-
}), Object.prototype.hasOwnProperty.call(a, "visible") && Object.assign(u, { visible: a.visible }), a.editor && ["readonly", "required", "placeholder"].map((
|
|
1814
|
-
Object.prototype.hasOwnProperty.call(a.editor,
|
|
1819
|
+
}), Object.prototype.hasOwnProperty.call(a, "visible") && Object.assign(u, { visible: a.visible }), a.editor && ["readonly", "required", "placeholder"].map((d) => {
|
|
1820
|
+
Object.prototype.hasOwnProperty.call(a.editor, d) && (u.editor[d] = a.editor[d]);
|
|
1815
1821
|
}), r != null && r.updateContextSchema ? r.updateContextSchema(u) : (r.schema = Object.assign(a, u), Object.assign(e, u)), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
1816
|
-
(
|
|
1822
|
+
(d) => d.classList.remove("dgComponentSelected")
|
|
1817
1823
|
), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
|
|
1818
|
-
(
|
|
1819
|
-
),
|
|
1824
|
+
(d) => d.classList.remove("dgComponentFocused")
|
|
1825
|
+
), J.value++, te(() => {
|
|
1820
1826
|
this.getFormDesignerInstance().reloadPropertyPanel();
|
|
1821
1827
|
});
|
|
1822
1828
|
}
|
|
1823
1829
|
getComponentConfig(e, n = {}, r = {}, s) {
|
|
1824
|
-
var
|
|
1830
|
+
var c, g;
|
|
1825
1831
|
const l = Object.assign({
|
|
1826
1832
|
description: "编辑器",
|
|
1827
1833
|
title: "编辑器",
|
|
1828
1834
|
type: "input-group",
|
|
1829
1835
|
$converter: "/converter/property-editor.converter",
|
|
1830
1836
|
parentPropertyID: "editor"
|
|
1831
|
-
}, n), m = (
|
|
1837
|
+
}, n), m = (c = e.binding) != null && c.field ? [] : ["Const", "Variable", "StateMachine"], a = this.getPropertyEditorParams(e, m, "readonly"), u = this.getPropertyEditorParams(e, m, "required"), d = {
|
|
1832
1838
|
readonly: {
|
|
1833
1839
|
description: "",
|
|
1834
1840
|
title: "只读",
|
|
@@ -1848,11 +1854,11 @@ class Mt extends Et {
|
|
|
1848
1854
|
}
|
|
1849
1855
|
};
|
|
1850
1856
|
for (const f in r)
|
|
1851
|
-
|
|
1857
|
+
d[f] = Object.assign(d[f] || {}, r[f]);
|
|
1852
1858
|
const o = this;
|
|
1853
1859
|
return {
|
|
1854
1860
|
...l,
|
|
1855
|
-
properties: { ...
|
|
1861
|
+
properties: { ...d },
|
|
1856
1862
|
setPropertyRelates(f, p) {
|
|
1857
1863
|
if (f) {
|
|
1858
1864
|
switch (f.propertyID) {
|
|
@@ -1876,14 +1882,14 @@ class Mt extends Et {
|
|
|
1876
1882
|
const s = e.split(" ");
|
|
1877
1883
|
let l = s.find((o) => /^col-([1-9]|10|11|12)$/.test(o)), m = s.find((o) => /^col-md-([1-9]|10|11|12)$/.test(o)), a = s.find((o) => /^col-xl-([1-9]|10|11|12)$/.test(o)), u = s.find((o) => /^col-el-([1-9]|10|11|12)$/.test(o));
|
|
1878
1884
|
l = l || "col-12", m = m || "col-md-" + l.replace("col-", ""), a = a || "col-xl-" + m.replace("col-md-", ""), u = u || "col-el-" + a.replace("col-xl-", "");
|
|
1879
|
-
const
|
|
1885
|
+
const d = {
|
|
1880
1886
|
id: n,
|
|
1881
1887
|
columnInSM: parseInt(l.replace("col-", ""), 10),
|
|
1882
1888
|
columnInMD: parseInt(m.replace("col-md-", ""), 10),
|
|
1883
1889
|
columnInLG: parseInt(a.replace("col-xl-", ""), 10),
|
|
1884
1890
|
columnInEL: parseInt(u.replace("col-el-", ""), 10)
|
|
1885
1891
|
};
|
|
1886
|
-
this.updateUnifiedLayoutAfterResponseLayoutChanged(r,
|
|
1892
|
+
this.updateUnifiedLayoutAfterResponseLayoutChanged(r, d);
|
|
1887
1893
|
}
|
|
1888
1894
|
/**
|
|
1889
1895
|
* 修改控件布局配置后更新Form统一布局配置
|
|
@@ -1899,11 +1905,11 @@ class Mt extends Et {
|
|
|
1899
1905
|
const f = s.find((p) => p.id === n.id);
|
|
1900
1906
|
Object.assign(f || {}, n);
|
|
1901
1907
|
}
|
|
1902
|
-
const l = s.map((f) => f.columnInSM), m = s.map((f) => f.columnInMD), a = s.map((f) => f.columnInLG), u = s.map((f) => f.columnInEL),
|
|
1908
|
+
const l = s.map((f) => f.columnInSM), m = s.map((f) => f.columnInMD), a = s.map((f) => f.columnInLG), u = s.map((f) => f.columnInEL), d = this.checkIsUniqueColumn(l) ? l[0] : null, o = this.checkIsUniqueColumn(m) ? m[0] : null, c = this.checkIsUniqueColumn(a) ? a[0] : null, g = this.checkIsUniqueColumn(u) ? u[0] : null;
|
|
1903
1909
|
Object.assign(r.unifiedLayout, {
|
|
1904
|
-
uniqueColClassInSM:
|
|
1910
|
+
uniqueColClassInSM: d,
|
|
1905
1911
|
uniqueColClassInMD: o,
|
|
1906
|
-
uniqueColClassInLG:
|
|
1912
|
+
uniqueColClassInLG: c,
|
|
1907
1913
|
uniqueColClassInEL: g
|
|
1908
1914
|
});
|
|
1909
1915
|
}
|
|
@@ -1945,22 +1951,22 @@ class Mt extends Et {
|
|
|
1945
1951
|
* @param propertyData 下拉框控件属性值
|
|
1946
1952
|
*/
|
|
1947
1953
|
checkEnumDataReadonly(e) {
|
|
1948
|
-
return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type ===
|
|
1954
|
+
return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === Xe.EnumType);
|
|
1949
1955
|
}
|
|
1950
1956
|
/**
|
|
1951
1957
|
* 将字段值变化前事件、变化后事件追加到交互面板
|
|
1952
1958
|
* 注意:因为绑定字段值变化后事件与下拉框的值变化事件(valueChanged)重名,所以这里将事件label都重命名下
|
|
1953
1959
|
*/
|
|
1954
1960
|
appendFieldValueChangeEvents(e, n) {
|
|
1955
|
-
e.binding && e.binding.type ===
|
|
1961
|
+
e.binding && e.binding.type === Y.Form && e.binding.field ? (n.find((r) => r.label === "fieldValueChanging"), n.find((r) => r.label === "fieldValueChanged"), this.designViewModelField && (e.fieldValueChanging = this.designViewModelField.valueChanging, e.fieldValueChanged = this.designViewModelField.valueChanged)) : n = n.filter((r) => r.label !== "fieldValueChanging" && r.label !== "fieldValueChanged");
|
|
1956
1962
|
}
|
|
1957
1963
|
getControlMethodType(e) {
|
|
1958
1964
|
if (!e.binding)
|
|
1959
1965
|
return e.type;
|
|
1960
1966
|
switch (e.binding.type) {
|
|
1961
|
-
case
|
|
1967
|
+
case Y.Form:
|
|
1962
1968
|
return e.binding.path || e.type;
|
|
1963
|
-
case
|
|
1969
|
+
case Y.Variable:
|
|
1964
1970
|
return e.binding.fullPath || e.type;
|
|
1965
1971
|
}
|
|
1966
1972
|
return e.type;
|
|
@@ -1992,16 +1998,16 @@ class Mt extends Et {
|
|
|
1992
1998
|
properties: l.createBaseEventProperty(a),
|
|
1993
1999
|
tabId: "commands",
|
|
1994
2000
|
tabName: "交互",
|
|
1995
|
-
setPropertyRelates(o,
|
|
2001
|
+
setPropertyRelates(o, c) {
|
|
1996
2002
|
const g = o.propertyValue;
|
|
1997
|
-
delete e[l.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, g.controlInfo = { type: l.getControlMethodType(e), name: e.title }, l.eventsEditorUtils.saveRelatedParameters(e, l.viewModelId, g.events, g)), s && s(o,
|
|
2003
|
+
delete e[l.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, g.controlInfo = { type: l.getControlMethodType(e), name: e.title }, l.eventsEditorUtils.saveRelatedParameters(e, l.viewModelId, g.events, g)), s && s(o, c, g);
|
|
1998
2004
|
const f = l.designViewModelUtils.getDgViewModel(l.viewModelId);
|
|
1999
2005
|
f && l.designViewModelField && f.changeField(l.designViewModelField.id, { valueChanging: e.fieldValueChanging, valueChanged: e.fieldValueChanged });
|
|
2000
2006
|
}
|
|
2001
2007
|
};
|
|
2002
2008
|
}
|
|
2003
2009
|
getExpressionConfig(e, n, r = ["compute", "dependency", "validate"], s) {
|
|
2004
|
-
return new
|
|
2010
|
+
return new Ie(this.formSchemaUtils).getExpressionConfig(
|
|
2005
2011
|
e,
|
|
2006
2012
|
n,
|
|
2007
2013
|
r,
|
|
@@ -2149,14 +2155,14 @@ function Pt(i, t) {
|
|
|
2149
2155
|
function l() {
|
|
2150
2156
|
var m;
|
|
2151
2157
|
if (i && t) {
|
|
2152
|
-
const { formSchemaUtils: a } = t, u = a.getControlBasicInfoMap(), { schema:
|
|
2153
|
-
u.set(
|
|
2158
|
+
const { formSchemaUtils: a } = t, u = a.getControlBasicInfoMap(), { schema: d } = i, o = it["filter-bar"].name;
|
|
2159
|
+
u.set(d.id, {
|
|
2154
2160
|
componentTitle: o,
|
|
2155
2161
|
parentPathName: o
|
|
2156
|
-
}), (m =
|
|
2157
|
-
u.set(
|
|
2158
|
-
componentTitle:
|
|
2159
|
-
parentPathName: `${o} > ${
|
|
2162
|
+
}), (m = d.fields) != null && m.length && d.fields.map((c) => {
|
|
2163
|
+
u.set(c.id, {
|
|
2164
|
+
componentTitle: c.name,
|
|
2165
|
+
parentPathName: `${o} > ${c.name}`
|
|
2160
2166
|
});
|
|
2161
2167
|
});
|
|
2162
2168
|
}
|
|
@@ -2169,10 +2175,10 @@ function Pt(i, t) {
|
|
|
2169
2175
|
setComponentBasicInfoMap: l
|
|
2170
2176
|
};
|
|
2171
2177
|
}
|
|
2172
|
-
function
|
|
2178
|
+
function Ee(i, t) {
|
|
2173
2179
|
let e;
|
|
2174
2180
|
function n(o) {
|
|
2175
|
-
const { properties:
|
|
2181
|
+
const { properties: c, title: g, ignore: f } = o, p = f && Array.isArray(f), h = Object.keys(c).reduce((y, C) => ((!p || !f.find((V) => V === C)) && (y[C] = c[C].type === "object" && c[C].properties ? n(c[C]) : X(c[C].default)), y), {});
|
|
2176
2182
|
if (g && (!p || !f.find((y) => y === "id"))) {
|
|
2177
2183
|
const y = g.toLowerCase().replace(/-/g, "_");
|
|
2178
2184
|
h.id = `${y}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -2180,9 +2186,9 @@ function Ie(i, t) {
|
|
|
2180
2186
|
return h;
|
|
2181
2187
|
}
|
|
2182
2188
|
function r(o) {
|
|
2183
|
-
const { properties:
|
|
2189
|
+
const { properties: c, title: g, required: f } = o;
|
|
2184
2190
|
if (f && Array.isArray(f)) {
|
|
2185
|
-
const p = f.reduce((h, y) => (h[y] =
|
|
2191
|
+
const p = f.reduce((h, y) => (h[y] = c[y].type === "object" && c[y].properties ? n(c[y]) : X(c[y].default), h), {});
|
|
2186
2192
|
if (g && f.find((h) => h === "id")) {
|
|
2187
2193
|
const h = g.toLowerCase().replace(/-/g, "_");
|
|
2188
2194
|
p.id = `${h}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -2193,23 +2199,23 @@ function Ie(i, t) {
|
|
|
2193
2199
|
type: g
|
|
2194
2200
|
};
|
|
2195
2201
|
}
|
|
2196
|
-
function s(o,
|
|
2202
|
+
function s(o, c = {}, g) {
|
|
2197
2203
|
const f = i[o];
|
|
2198
2204
|
if (f) {
|
|
2199
2205
|
let p = r(f);
|
|
2200
2206
|
const h = t[o];
|
|
2201
|
-
return p = h ? h({ getSchemaByType: s }, p,
|
|
2207
|
+
return p = h ? h({ getSchemaByType: s }, p, c, g) : p, e != null && e.appendIdentifyForNewControl && e.appendIdentifyForNewControl(p), p;
|
|
2202
2208
|
}
|
|
2203
2209
|
return null;
|
|
2204
2210
|
}
|
|
2205
|
-
function l(o,
|
|
2206
|
-
const g = n(
|
|
2211
|
+
function l(o, c) {
|
|
2212
|
+
const g = n(c);
|
|
2207
2213
|
return Object.keys(g).reduce((f, p) => (Object.prototype.hasOwnProperty.call(o, p) && (f[p] && ae(f[p]) && ae(o[p] || !o[p]) ? Object.assign(f[p], o[p] || {}) : f[p] = o[p]), f), g), g;
|
|
2208
2214
|
}
|
|
2209
|
-
function m(o,
|
|
2215
|
+
function m(o, c) {
|
|
2210
2216
|
return Object.keys(o).filter((f) => o[f] != null).reduce((f, p) => {
|
|
2211
|
-
if (
|
|
2212
|
-
const h =
|
|
2217
|
+
if (c.has(p)) {
|
|
2218
|
+
const h = c.get(p);
|
|
2213
2219
|
if (typeof h == "string")
|
|
2214
2220
|
f[h] = o[p];
|
|
2215
2221
|
else {
|
|
@@ -2221,15 +2227,15 @@ function Ie(i, t) {
|
|
|
2221
2227
|
return f;
|
|
2222
2228
|
}, {});
|
|
2223
2229
|
}
|
|
2224
|
-
function a(o,
|
|
2225
|
-
const f = l(o,
|
|
2230
|
+
function a(o, c, g = /* @__PURE__ */ new Map()) {
|
|
2231
|
+
const f = l(o, c);
|
|
2226
2232
|
return m(f, g);
|
|
2227
2233
|
}
|
|
2228
2234
|
function u(o) {
|
|
2229
2235
|
var g;
|
|
2230
|
-
const
|
|
2231
|
-
if (
|
|
2232
|
-
const f = i[
|
|
2236
|
+
const c = o.type;
|
|
2237
|
+
if (c) {
|
|
2238
|
+
const f = i[c];
|
|
2233
2239
|
if (!f)
|
|
2234
2240
|
return o;
|
|
2235
2241
|
const p = l(o, f), h = ((g = o.editor) == null ? void 0 : g.type) || "";
|
|
@@ -2241,79 +2247,79 @@ function Ie(i, t) {
|
|
|
2241
2247
|
}
|
|
2242
2248
|
return o;
|
|
2243
2249
|
}
|
|
2244
|
-
function
|
|
2250
|
+
function d(o) {
|
|
2245
2251
|
e = o;
|
|
2246
2252
|
}
|
|
2247
|
-
return { getSchemaByType: s, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: a, mappingSchemaToProps: m, setDesignerContext:
|
|
2253
|
+
return { getSchemaByType: s, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: a, mappingSchemaToProps: m, setDesignerContext: d };
|
|
2248
2254
|
}
|
|
2249
|
-
const
|
|
2250
|
-
function
|
|
2251
|
-
function t(u,
|
|
2255
|
+
const xe = {}, Se = {}, { resolveSchemaWithDefaultValue: kt, resolveSchemaToProps: Vt, mappingSchemaToProps: Bt } = Ee(xe, Se);
|
|
2256
|
+
function Lt(i = {}) {
|
|
2257
|
+
function t(u, d, o, c) {
|
|
2252
2258
|
if (typeof o == "number")
|
|
2253
|
-
return
|
|
2259
|
+
return c[u].length === o;
|
|
2254
2260
|
if (typeof o == "object") {
|
|
2255
2261
|
const g = Object.keys(o)[0], f = o[g];
|
|
2256
2262
|
if (g === "not")
|
|
2257
|
-
return Number(
|
|
2263
|
+
return Number(c[u].length) !== Number(f);
|
|
2258
2264
|
if (g === "moreThan")
|
|
2259
|
-
return Number(
|
|
2265
|
+
return Number(c[u].length) >= Number(f);
|
|
2260
2266
|
if (g === "lessThan")
|
|
2261
|
-
return Number(
|
|
2267
|
+
return Number(c[u].length) <= Number(f);
|
|
2262
2268
|
}
|
|
2263
2269
|
return !1;
|
|
2264
2270
|
}
|
|
2265
|
-
function e(u,
|
|
2266
|
-
return
|
|
2271
|
+
function e(u, d, o, c) {
|
|
2272
|
+
return c[u] && c[u].propertyValue && String(c[u].propertyValue.value) === String(o);
|
|
2267
2273
|
}
|
|
2268
2274
|
const n = /* @__PURE__ */ new Map([
|
|
2269
2275
|
["length", t],
|
|
2270
2276
|
["getProperty", e]
|
|
2271
2277
|
]);
|
|
2272
|
-
Object.keys(i).reduce((u,
|
|
2273
|
-
function r(u,
|
|
2278
|
+
Object.keys(i).reduce((u, d) => (u.set(d, i[d]), u), n);
|
|
2279
|
+
function r(u, d) {
|
|
2274
2280
|
const o = u;
|
|
2275
|
-
return typeof
|
|
2276
|
-
if (
|
|
2277
|
-
return { target: o, operator: "length", param: null, value: c
|
|
2278
|
-
const g =
|
|
2281
|
+
return typeof d == "number" ? [{ target: o, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: o, operator: "getProperty", param: u, value: !!d }] : typeof d == "object" ? Object.keys(d).map((c) => {
|
|
2282
|
+
if (c === "length")
|
|
2283
|
+
return { target: o, operator: "length", param: null, value: d[c] };
|
|
2284
|
+
const g = c, f = d[c];
|
|
2279
2285
|
return { target: o, operator: "getProperty", param: g, value: f };
|
|
2280
2286
|
}) : [];
|
|
2281
2287
|
}
|
|
2282
2288
|
function s(u) {
|
|
2283
|
-
return Object.keys(u).reduce((o,
|
|
2284
|
-
const g = r(
|
|
2289
|
+
return Object.keys(u).reduce((o, c) => {
|
|
2290
|
+
const g = r(c, u[c]);
|
|
2285
2291
|
return o.push(...g), o;
|
|
2286
2292
|
}, []);
|
|
2287
2293
|
}
|
|
2288
|
-
function l(u,
|
|
2294
|
+
function l(u, d) {
|
|
2289
2295
|
if (n.has(u.operator)) {
|
|
2290
2296
|
const o = n.get(u.operator);
|
|
2291
|
-
return o && o(u.target, u.param, u.value,
|
|
2297
|
+
return o && o(u.target, u.param, u.value, d) || !1;
|
|
2292
2298
|
}
|
|
2293
2299
|
return !1;
|
|
2294
2300
|
}
|
|
2295
|
-
function m(u,
|
|
2296
|
-
return s(u).reduce((g, f) => g && l(f,
|
|
2301
|
+
function m(u, d) {
|
|
2302
|
+
return s(u).reduce((g, f) => g && l(f, d), !0);
|
|
2297
2303
|
}
|
|
2298
|
-
function a(u,
|
|
2299
|
-
const o = Object.keys(u),
|
|
2300
|
-
return
|
|
2304
|
+
function a(u, d) {
|
|
2305
|
+
const o = Object.keys(u), c = o.includes("allOf"), g = o.includes("anyOf"), f = c || g, y = (f ? u[f ? c ? "allOf" : "anyOf" : "allOf"] : [u]).map((V) => m(V, d));
|
|
2306
|
+
return c ? !y.includes(!1) : y.includes(!0);
|
|
2301
2307
|
}
|
|
2302
2308
|
return { parseValueSchema: a };
|
|
2303
2309
|
}
|
|
2304
|
-
const
|
|
2310
|
+
const Nt = {
|
|
2305
2311
|
convertTo: (i, t, e, n) => {
|
|
2306
2312
|
i.appearance || (i.appearance = {}), i.appearance[t] = e;
|
|
2307
2313
|
},
|
|
2308
2314
|
convertFrom: (i, t, e) => i.appearance ? i.appearance[t] : i[t]
|
|
2309
|
-
},
|
|
2315
|
+
}, Ot = {
|
|
2310
2316
|
convertFrom: (i, t, e) => i.buttons && i.buttons.length ? `共 ${i.buttons.length} 项` : "无"
|
|
2311
2317
|
}, Ut = {
|
|
2312
2318
|
convertTo: (i, t, e, n) => {
|
|
2313
2319
|
i.editor && (i.editor[t] = e);
|
|
2314
2320
|
},
|
|
2315
2321
|
convertFrom: (i, t, e) => i.editor && Object.prototype.hasOwnProperty.call(i.editor, t) ? i.editor[t] : i[t]
|
|
2316
|
-
},
|
|
2322
|
+
}, Rt = {
|
|
2317
2323
|
button: { type: "button", name: "按钮" },
|
|
2318
2324
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
2319
2325
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -2367,12 +2373,17 @@ const Ot = {
|
|
|
2367
2373
|
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
2368
2374
|
comment: { type: "comment", name: "评论区" },
|
|
2369
2375
|
"rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
|
|
2370
|
-
calendar: { type: "calendar", name: "日历", icon: "date-picker" }
|
|
2371
|
-
|
|
2376
|
+
calendar: { type: "calendar", name: "日历", icon: "date-picker" },
|
|
2377
|
+
wizard: { type: "wizard", name: "向导", icon: "wizard" },
|
|
2378
|
+
"wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
|
|
2379
|
+
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
|
|
2380
|
+
step: { type: "step", name: "步骤条", icon: "step" },
|
|
2381
|
+
"dynamic-form": { type: "dynamic-form", name: "动态表单" }
|
|
2382
|
+
}, At = {
|
|
2372
2383
|
convertFrom: (i, t, e) => {
|
|
2373
2384
|
var r;
|
|
2374
2385
|
const n = i.editor && i.editor[t] ? i.editor[t] : i[t];
|
|
2375
|
-
return ((r =
|
|
2386
|
+
return ((r = Rt[n]) == null ? void 0 : r.name) || n;
|
|
2376
2387
|
}
|
|
2377
2388
|
}, $t = {
|
|
2378
2389
|
convertTo: (i, t, e, n) => {
|
|
@@ -2407,6 +2418,8 @@ const Ot = {
|
|
|
2407
2418
|
return i.formatter.customFormat;
|
|
2408
2419
|
if (t === "type")
|
|
2409
2420
|
return i.formatter.type || "none";
|
|
2421
|
+
if (t === "customFormat")
|
|
2422
|
+
return i.formmater.customFormat;
|
|
2410
2423
|
}
|
|
2411
2424
|
return "none";
|
|
2412
2425
|
}
|
|
@@ -2428,29 +2441,17 @@ const Ot = {
|
|
|
2428
2441
|
]), t === "enableType" && e === "custom" && (i.command.enable = !0, i.command.commands = [
|
|
2429
2442
|
{
|
|
2430
2443
|
value: "add",
|
|
2431
|
-
text:
|
|
2432
|
-
en: "add",
|
|
2433
|
-
"zh-CHS": "增加",
|
|
2434
|
-
"zh-CHT": "增加"
|
|
2435
|
-
},
|
|
2444
|
+
text: "增加",
|
|
2436
2445
|
type: "link"
|
|
2437
2446
|
},
|
|
2438
2447
|
{
|
|
2439
2448
|
value: "edit",
|
|
2440
|
-
text:
|
|
2441
|
-
en: "edit",
|
|
2442
|
-
"zh-CHS": "编辑",
|
|
2443
|
-
"zh-CHT": "編輯"
|
|
2444
|
-
},
|
|
2449
|
+
text: "编辑",
|
|
2445
2450
|
type: "danger"
|
|
2446
2451
|
},
|
|
2447
2452
|
{
|
|
2448
2453
|
value: "remove",
|
|
2449
|
-
text:
|
|
2450
|
-
en: "remove",
|
|
2451
|
-
"zh-CHS": "删除",
|
|
2452
|
-
"zh-CHT": "刪除"
|
|
2453
|
-
},
|
|
2454
|
+
text: "删除",
|
|
2454
2455
|
type: "remove"
|
|
2455
2456
|
}
|
|
2456
2457
|
]), t === "enableType" && e === "unable" && (i.command.enable = !1);
|
|
@@ -2468,6 +2469,8 @@ const Ot = {
|
|
|
2468
2469
|
return i.command.formatter;
|
|
2469
2470
|
if (t === "count")
|
|
2470
2471
|
return i.command.count;
|
|
2472
|
+
if (t === "columnWidth")
|
|
2473
|
+
return i.command.columnWidth || 150;
|
|
2471
2474
|
}
|
|
2472
2475
|
return "";
|
|
2473
2476
|
}
|
|
@@ -2486,7 +2489,7 @@ const Ot = {
|
|
|
2486
2489
|
}
|
|
2487
2490
|
return "";
|
|
2488
2491
|
}
|
|
2489
|
-
},
|
|
2492
|
+
}, zt = {
|
|
2490
2493
|
convertTo: (i, t, e, n) => {
|
|
2491
2494
|
i.summary ? i.summary[t] = e : i.summary = {
|
|
2492
2495
|
[t]: e
|
|
@@ -2495,8 +2498,11 @@ const Ot = {
|
|
|
2495
2498
|
groupFields: []
|
|
2496
2499
|
});
|
|
2497
2500
|
},
|
|
2498
|
-
convertFrom: (i, t, e) =>
|
|
2499
|
-
|
|
2501
|
+
convertFrom: (i, t, e) => {
|
|
2502
|
+
var n;
|
|
2503
|
+
return t === "customSummaryStyle" ? i.summary.customSummaryStyle : t === "position" ? ((n = i.summary) == null ? void 0 : n[t]) || "bottom" : i.summary && t === "enable" ? i.summary.enable : i.type === "data-grid-column" ? i.enableSummary === void 0 ? !1 : i.enableSummary : "";
|
|
2504
|
+
}
|
|
2505
|
+
}, Gt = {
|
|
2500
2506
|
convertTo: (i, t, e, n) => {
|
|
2501
2507
|
i.group ? i.group[t] = e : i.group = {
|
|
2502
2508
|
[t]: e
|
|
@@ -2524,15 +2530,15 @@ const Ot = {
|
|
|
2524
2530
|
}
|
|
2525
2531
|
}, Qt = {
|
|
2526
2532
|
convertTo: (i, t, e, n) => {
|
|
2527
|
-
i.pagination || (i.pagination = {}), i.pagination[t] = e;
|
|
2533
|
+
i.pagination || (i.pagination = {}), t === "sizeLimits" ? i.pagination.sizeLimits = e.split(",") : i.pagination[t] = e;
|
|
2528
2534
|
},
|
|
2529
|
-
convertFrom: (i, t, e) => i.pagination ? i.pagination[t] : i[t]
|
|
2535
|
+
convertFrom: (i, t, e) => i.pagination ? t === "sizeLimits" ? i.pagination.sizeLimits.join(",") : i.pagination[t] : i[t]
|
|
2530
2536
|
}, _t = {
|
|
2531
2537
|
convertTo: (i, t, e, n) => {
|
|
2532
2538
|
i.rowNumber || (i.rowNumber = {}), i.rowNumber[t] = e;
|
|
2533
2539
|
},
|
|
2534
2540
|
convertFrom: (i, t, e) => i.rowNumber ? i.rowNumber[t] : i[t]
|
|
2535
|
-
},
|
|
2541
|
+
}, Xt = {
|
|
2536
2542
|
convertTo: (i, t, e, n) => {
|
|
2537
2543
|
i.selection || (i.selection = {}), i.selection[t] = e;
|
|
2538
2544
|
},
|
|
@@ -2540,19 +2546,19 @@ const Ot = {
|
|
|
2540
2546
|
var n, r;
|
|
2541
2547
|
return t === "showCheckbox" ? (n = i.selection) != null && n.multiSelect ? !0 : (r = i.selection) == null ? void 0 : r.showCheckbox : i.selection ? i.selection[t] : i[t];
|
|
2542
2548
|
}
|
|
2543
|
-
}, Xt = {
|
|
2544
|
-
convertFrom: (i, t, e) => i[t] && i[t].length ? `共 ${i[t].length} 项` : ""
|
|
2545
2549
|
}, Zt = {
|
|
2550
|
+
convertFrom: (i, t, e) => i[t] && i[t].length ? `共 ${i[t].length} 项` : ""
|
|
2551
|
+
}, Jt = {
|
|
2546
2552
|
convertFrom: (i, t) => i[t] || "",
|
|
2547
2553
|
convertTo: (i, t, e) => {
|
|
2548
2554
|
i[t] = e;
|
|
2549
2555
|
}
|
|
2550
|
-
},
|
|
2556
|
+
}, Yt = {
|
|
2551
2557
|
convertTo: (i, t, e, n) => {
|
|
2552
2558
|
i.size || (i.size = {}), i.size[t] = e;
|
|
2553
2559
|
},
|
|
2554
2560
|
convertFrom: (i, t, e) => i.size ? i.size[t] : i[t]
|
|
2555
|
-
},
|
|
2561
|
+
}, Ht = {
|
|
2556
2562
|
convertFrom: (i, t, e) => {
|
|
2557
2563
|
var n, r;
|
|
2558
2564
|
return (n = i.formatter) != null && n.data && t === "formatterEnumData" && !i.formatterEnumData ? (r = i.formatter) == null ? void 0 : r.data : i.formatterEnumData;
|
|
@@ -2589,6 +2595,8 @@ const Ot = {
|
|
|
2589
2595
|
return i.rowOption.customRowStyle;
|
|
2590
2596
|
if (t === "customCellStyle")
|
|
2591
2597
|
return i.rowOption.customCellStyle;
|
|
2598
|
+
if (t === "height")
|
|
2599
|
+
return i.rowOption.height;
|
|
2592
2600
|
}
|
|
2593
2601
|
return "";
|
|
2594
2602
|
}
|
|
@@ -2605,26 +2613,26 @@ const Ot = {
|
|
|
2605
2613
|
},
|
|
2606
2614
|
convertFrom: (i, t, e) => t === "columnTemplate" ? i.columnTemplate : t === "columnTemplateType" ? i.columnTemplateType ? i.columnTemplateType || "default" : i.columnTemplate && !i.onClickLinkCommand ? "custom" : i.columnTemplate && i.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
2607
2615
|
};
|
|
2608
|
-
function
|
|
2616
|
+
function Me(i, t, e) {
|
|
2609
2617
|
const n = /* @__PURE__ */ new Map([
|
|
2610
|
-
["/converter/appearance.converter",
|
|
2611
|
-
["/converter/buttons.converter",
|
|
2618
|
+
["/converter/appearance.converter", Nt],
|
|
2619
|
+
["/converter/buttons.converter", Ot],
|
|
2612
2620
|
["/converter/property-editor.converter", Ut],
|
|
2613
|
-
["/converter/items-count.converter",
|
|
2614
|
-
["/converter/type.converter",
|
|
2621
|
+
["/converter/items-count.converter", Zt],
|
|
2622
|
+
["/converter/type.converter", At],
|
|
2615
2623
|
["/converter/change-editor.converter", $t],
|
|
2616
2624
|
["/converter/change-formatter.converter", jt],
|
|
2617
2625
|
["/converter/column-command.converter", qt],
|
|
2618
2626
|
["/converter/column-option.converter", Wt],
|
|
2619
|
-
["/converter/summary.converter",
|
|
2620
|
-
["/converter/group.converter",
|
|
2621
|
-
["/converter/form-group-label.converter",
|
|
2627
|
+
["/converter/summary.converter", zt],
|
|
2628
|
+
["/converter/group.converter", Gt],
|
|
2629
|
+
["/converter/form-group-label.converter", Jt],
|
|
2622
2630
|
["/converter/field-selector.converter", Dt],
|
|
2623
2631
|
["/converter/pagination.converter", Qt],
|
|
2624
2632
|
["/converter/row-number.converter", _t],
|
|
2625
|
-
["/converter/grid-selection.converter",
|
|
2626
|
-
["/converter/size.converter",
|
|
2627
|
-
["/converter/change-formatter-enum.converter",
|
|
2633
|
+
["/converter/grid-selection.converter", Xt],
|
|
2634
|
+
["/converter/size.converter", Yt],
|
|
2635
|
+
["/converter/change-formatter-enum.converter", Ht],
|
|
2628
2636
|
["/converter/grid-sort.converter", Kt],
|
|
2629
2637
|
["/converter/grid-filter.converter", ei],
|
|
2630
2638
|
["/converter/row-option.converter", ti],
|
|
@@ -2653,7 +2661,7 @@ function Se(i, t, e) {
|
|
|
2653
2661
|
["array", { type: "button-edit" }],
|
|
2654
2662
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
2655
2663
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
2656
|
-
]), s =
|
|
2664
|
+
]), s = Lt();
|
|
2657
2665
|
function l(f, p) {
|
|
2658
2666
|
return () => s.parseValueSchema(f, p);
|
|
2659
2667
|
}
|
|
@@ -2667,44 +2675,44 @@ function Se(i, t, e) {
|
|
|
2667
2675
|
const h = f.$converter || p;
|
|
2668
2676
|
return typeof h == "string" && h && n.has(h) ? n.get(h) || null : h || null;
|
|
2669
2677
|
}
|
|
2670
|
-
function
|
|
2678
|
+
function d(f, p, h, y, C, V = "", B = "") {
|
|
2671
2679
|
return Object.keys(f).map((k) => {
|
|
2672
|
-
const
|
|
2680
|
+
const R = w(1), N = k, T = f[k], F = Object.keys(T), j = T.title, O = T.type, I = r.get(O) || { type: "input-group", enableClear: !1 }, P = T.editor ? Object.assign({}, I, T.editor) : Object.assign({}, I), U = m(F, T, p), x = a(F, T, p);
|
|
2673
2681
|
P.readonly = P.readonly === void 0 ? x() : P.readonly;
|
|
2674
|
-
const E = T.type === "cascade" ?
|
|
2675
|
-
let
|
|
2682
|
+
const E = T.type === "cascade" ? d(T.properties, p, h, y, C, V, B) : [], A = !0;
|
|
2683
|
+
let L = u(T, B);
|
|
2676
2684
|
const q = $({
|
|
2677
2685
|
get() {
|
|
2678
|
-
if (
|
|
2679
|
-
if (["class", "style"].find((Ae) => Ae ===
|
|
2680
|
-
return
|
|
2686
|
+
if (R.value) {
|
|
2687
|
+
if (["class", "style"].find((Ae) => Ae === N) && !L && (L = n.get("/converter/appearance.converter") || null), L && L.convertFrom)
|
|
2688
|
+
return L.convertFrom(h, k, C, V);
|
|
2681
2689
|
const W = h[k];
|
|
2682
2690
|
return Object.prototype.hasOwnProperty.call(T, "defaultValue") && (W === void 0 || typeof W == "string" && W === "") ? T.type === "boolean" ? T.defaultValue : T.defaultValue || "" : W;
|
|
2683
2691
|
}
|
|
2684
2692
|
return null;
|
|
2685
2693
|
},
|
|
2686
2694
|
set(W) {
|
|
2687
|
-
|
|
2695
|
+
R.value += 1, L && L.convertTo ? (L.convertTo(y, k, W, C, V), L.convertTo(h, k, W, C, V)) : (y[k] = W, h[k] = W);
|
|
2688
2696
|
}
|
|
2689
|
-
}), { refreshPanelAfterChanged:
|
|
2690
|
-
return p[
|
|
2697
|
+
}), { refreshPanelAfterChanged: Z, description: Oe, isExpand: Ue, parentPropertyID: Re } = T, re = { propertyID: N, propertyName: j, propertyType: O, propertyValue: q, editor: P, visible: U, readonly: x, cascadeConfig: E, hideCascadeTitle: A, refreshPanelAfterChanged: Z, description: Oe, isExpand: Ue, parentPropertyID: Re };
|
|
2698
|
+
return p[N] = re, re;
|
|
2691
2699
|
});
|
|
2692
2700
|
}
|
|
2693
2701
|
function o(f, p, h = {}) {
|
|
2694
2702
|
const y = {}, C = i[f];
|
|
2695
2703
|
return C && C.categories ? Object.keys(C.categories).map((B) => {
|
|
2696
|
-
const M = C.categories[B], k = M == null ? void 0 : M.title,
|
|
2697
|
-
return { categoryId: B, categoryName: k, properties:
|
|
2704
|
+
const M = C.categories[B], k = M == null ? void 0 : M.title, R = d(M.properties || {}, y, {}, h, p);
|
|
2705
|
+
return { categoryId: B, categoryName: k, properties: R };
|
|
2698
2706
|
}) : [];
|
|
2699
2707
|
}
|
|
2700
|
-
function
|
|
2701
|
-
const V = p.$ref.schema, B = p.$ref.converter, M = h[V], k = M.type,
|
|
2708
|
+
function c(f, p, h, y, C = "") {
|
|
2709
|
+
const V = p.$ref.schema, B = p.$ref.converter, M = h[V], k = M.type, R = e(M), N = {}, T = i[k];
|
|
2702
2710
|
if (T && T.categories) {
|
|
2703
2711
|
const F = T.categories[f], j = F == null ? void 0 : F.title;
|
|
2704
2712
|
B && Object.keys(F.properties).forEach((P) => {
|
|
2705
2713
|
F.properties[P].$converter = B;
|
|
2706
2714
|
});
|
|
2707
|
-
const
|
|
2715
|
+
const O = (F == null ? void 0 : F.properties) || {}, I = d(O, N, R, M, y, C);
|
|
2708
2716
|
return { categoryId: f, categoryName: j, properties: I };
|
|
2709
2717
|
}
|
|
2710
2718
|
return { categoryId: f, categoryName: "", properties: [] };
|
|
@@ -2713,16 +2721,16 @@ function Se(i, t, e) {
|
|
|
2713
2721
|
const V = f.type, B = e(f), M = {};
|
|
2714
2722
|
let k = C || i[V];
|
|
2715
2723
|
if (!(k && Object.keys(k).length > 0) && h && h.getPropConfig && (k = h.getPropConfig(y)), k && k.categories) {
|
|
2716
|
-
const
|
|
2724
|
+
const N = [];
|
|
2717
2725
|
return Object.keys(k.categories).map((T) => {
|
|
2718
2726
|
const F = k.categories[T];
|
|
2719
2727
|
if (F.$ref) {
|
|
2720
|
-
|
|
2728
|
+
N.push(c(T, F, f, p, y));
|
|
2721
2729
|
return;
|
|
2722
2730
|
}
|
|
2723
|
-
const j = F == null ? void 0 : F.title,
|
|
2724
|
-
|
|
2725
|
-
}),
|
|
2731
|
+
const j = F == null ? void 0 : F.title, O = F == null ? void 0 : F.tabId, I = F == null ? void 0 : F.tabName, P = F == null ? void 0 : F.hide, U = F == null ? void 0 : F.hideTitle, x = d(F.properties || {}, M, B, f, p, y, F.$converter), { setPropertyRelates: E } = F, A = F == null ? void 0 : F.parentPropertyID;
|
|
2732
|
+
N.push({ categoryId: T, categoryName: j, tabId: O, tabName: I, hide: P, properties: x, hideTitle: U, setPropertyRelates: E, parentPropertyID: A });
|
|
2733
|
+
}), N;
|
|
2726
2734
|
}
|
|
2727
2735
|
return [];
|
|
2728
2736
|
}
|
|
@@ -2732,36 +2740,36 @@ function Se(i, t, e) {
|
|
|
2732
2740
|
propertyConverterMap: n
|
|
2733
2741
|
};
|
|
2734
2742
|
}
|
|
2735
|
-
const
|
|
2736
|
-
|
|
2737
|
-
const
|
|
2738
|
-
|
|
2743
|
+
const Te = {}, Pe = {};
|
|
2744
|
+
Me(Te, Pe, kt);
|
|
2745
|
+
const ke = {}, Ve = {}, { resolveSchemaWithDefaultValue: ni } = Ee(ke, Ve), Be = {}, Le = {};
|
|
2746
|
+
Me(Be, Le, ni);
|
|
2739
2747
|
function ri(i, t, e = /* @__PURE__ */ new Map(), n = (l, m, a, u) => m, r = {}, s = (l) => l) {
|
|
2740
|
-
return
|
|
2748
|
+
return xe[t.title] = t, Se[t.title] = n, Te[t.title] = r, Pe[t.title] = s, ke[t.title] = t, Ve[t.title] = n, Be[t.title] = r, Le[t.title] = s, (l = {}, m = !0) => {
|
|
2741
2749
|
if (!m)
|
|
2742
2750
|
return Bt(l, e);
|
|
2743
|
-
const a = Vt(l, t, e), u = Object.keys(i).reduce((
|
|
2751
|
+
const a = Vt(l, t, e), u = Object.keys(i).reduce((d, o) => (d[o] = i[o].default, d), {});
|
|
2744
2752
|
return Object.assign(u, a);
|
|
2745
2753
|
};
|
|
2746
2754
|
}
|
|
2747
2755
|
const Ne = Object.assign({}, ne, {
|
|
2748
2756
|
componentId: { type: String, default: "" }
|
|
2749
|
-
}), oi = ri(Ne,
|
|
2757
|
+
}), oi = ri(Ne, Ce, ye, be), si = /* @__PURE__ */ Q({
|
|
2750
2758
|
name: "FFilterBarDesign",
|
|
2751
2759
|
props: Ne,
|
|
2752
2760
|
emits: ["Clear", "Remove", "Reset"],
|
|
2753
2761
|
setup(i, t) {
|
|
2754
|
-
const e = w(!1), n = w(!1), r = w(!1), s = w(null), l =
|
|
2762
|
+
const e = w(!1), n = w(!1), r = w(!1), s = w(null), l = Ft(i), {
|
|
2755
2763
|
filterFields: m,
|
|
2756
2764
|
filterItems: a,
|
|
2757
2765
|
loadFilterItems: u
|
|
2758
|
-
} = l,
|
|
2766
|
+
} = l, d = w(0), o = w(), c = _("design-item-context"), g = _("designer-host-service"), f = Pt(c, g), p = Qe(o, c, f), h = we(s, r), {
|
|
2759
2767
|
cancelWidthObserver: y,
|
|
2760
2768
|
setupWidthObserver: C
|
|
2761
2769
|
} = h, {
|
|
2762
2770
|
resolveEditorProps: V
|
|
2763
|
-
} =
|
|
2764
|
-
|
|
2771
|
+
} = he();
|
|
2772
|
+
ue("useFilterItemsComposition", {
|
|
2765
2773
|
useFilterItemsComposition: l,
|
|
2766
2774
|
resolveEditorProps: V
|
|
2767
2775
|
});
|
|
@@ -2769,14 +2777,14 @@ const Ne = Object.assign({}, ne, {
|
|
|
2769
2777
|
const F = {
|
|
2770
2778
|
display: m.value && m.value.length ? "" : "none"
|
|
2771
2779
|
};
|
|
2772
|
-
return
|
|
2780
|
+
return me(F, i == null ? void 0 : i.customStyle);
|
|
2773
2781
|
});
|
|
2774
2782
|
K(() => {
|
|
2775
2783
|
o.value.componentInstance = p, C();
|
|
2776
|
-
}),
|
|
2784
|
+
}), pe(() => {
|
|
2777
2785
|
y();
|
|
2778
|
-
}), t.expose(p.value),
|
|
2779
|
-
u(F, []),
|
|
2786
|
+
}), t.expose(p.value), fe(() => i.fields, (F) => {
|
|
2787
|
+
u(F, []), d.value++;
|
|
2780
2788
|
}, {
|
|
2781
2789
|
immediate: !0
|
|
2782
2790
|
});
|
|
@@ -2784,20 +2792,20 @@ const Ne = Object.assign({}, ne, {
|
|
|
2784
2792
|
"f-filter-list": !0,
|
|
2785
2793
|
"f-filter-list-extend": M.value
|
|
2786
2794
|
}));
|
|
2787
|
-
function
|
|
2795
|
+
function R() {
|
|
2788
2796
|
return b("div", {
|
|
2789
2797
|
class: k.value,
|
|
2790
|
-
key: i.id + "-main-" +
|
|
2791
|
-
}, [a.value.map((F, j) => b(
|
|
2798
|
+
key: i.id + "-main-" + d.value
|
|
2799
|
+
}, [a.value.map((F, j) => b(It, {
|
|
2792
2800
|
filterItem: F
|
|
2793
2801
|
}, null))]);
|
|
2794
2802
|
}
|
|
2795
|
-
function
|
|
2803
|
+
function N() {
|
|
2796
2804
|
return r.value && b("div", {
|
|
2797
2805
|
class: "f-filter-list-ellipsis"
|
|
2798
|
-
}, [
|
|
2806
|
+
}, [z("...")]);
|
|
2799
2807
|
}
|
|
2800
|
-
const T =
|
|
2808
|
+
const T = wt(i, t, l);
|
|
2801
2809
|
return () => b("div", {
|
|
2802
2810
|
ref: o,
|
|
2803
2811
|
class: "f-filter-wrapper " + i.customClass,
|
|
@@ -2809,13 +2817,13 @@ const Ne = Object.assign({}, ne, {
|
|
|
2809
2817
|
}, [b("div", {
|
|
2810
2818
|
class: "f-filter-list-wrapper flex-fill",
|
|
2811
2819
|
ref: s
|
|
2812
|
-
}, [
|
|
2820
|
+
}, [R()]), N(), T()]), r.value && b("div", {
|
|
2813
2821
|
class: "f-filter-extend-btn"
|
|
2814
2822
|
}, [b("button", {
|
|
2815
2823
|
class: "btn btn-link"
|
|
2816
2824
|
}, [b("span", {
|
|
2817
2825
|
class: "extend-btn-text"
|
|
2818
|
-
}, [
|
|
2826
|
+
}, [z("展开")]), b("span", {
|
|
2819
2827
|
class: "extend-btn-arrow f-icon f-icon-arrow-chevron-down"
|
|
2820
2828
|
}, null)])])])]);
|
|
2821
2829
|
}
|
|
@@ -2824,7 +2832,7 @@ D.install = (i) => {
|
|
|
2824
2832
|
i.component(D.name, D);
|
|
2825
2833
|
};
|
|
2826
2834
|
D.register = (i, t, e, n) => {
|
|
2827
|
-
i["filter-bar"] = D, t["filter-bar"] =
|
|
2835
|
+
i["filter-bar"] = D, t["filter-bar"] = ft;
|
|
2828
2836
|
};
|
|
2829
2837
|
D.registerDesigner = (i, t, e) => {
|
|
2830
2838
|
i["filter-bar"] = si, t["filter-bar"] = oi;
|
|
@@ -2833,5 +2841,5 @@ export {
|
|
|
2833
2841
|
D as FFilterBar,
|
|
2834
2842
|
D as default,
|
|
2835
2843
|
ne as filterBarProps,
|
|
2836
|
-
|
|
2844
|
+
ft as propsResolver
|
|
2837
2845
|
};
|