@farris/ui-vue 1.7.1 → 1.7.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +312 -61
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +1482 -56
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +752 -8
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +266 -110
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +129 -128
- package/components/calendar/index.umd.cjs +2 -2
- package/components/code-editor/index.esm.js +237 -169
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +134 -133
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +812 -502
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +323 -291
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +355 -174
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +134 -133
- package/components/comment/index.umd.cjs +2 -2
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +3830 -2796
- package/components/component/index.umd.cjs +8 -1
- package/components/condition/index.esm.js +2482 -492
- package/components/condition/index.umd.cjs +8 -1
- package/components/data-grid/index.esm.js +431 -406
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3306 -3165
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1 -1
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3094 -2731
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +397 -387
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +373 -124
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +592 -1894
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +250 -248
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +287 -284
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +1 -1
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1890 -1473
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +7371 -2
- package/components/expression-editor/index.umd.cjs +427 -1
- package/components/fieldset/index.esm.js +1 -1
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +4 -5
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.css +1 -1
- package/components/filter-condition-editor/index.esm.js +9044 -425
- package/components/filter-condition-editor/index.umd.cjs +427 -1
- package/components/html-template/index.esm.js +33 -36
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image/index.esm.js +2 -2
- package/components/image/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +615 -361
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +325 -247
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +269 -269
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +549 -163
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +837 -39
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +404 -622
- package/components/list-view/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +3624 -3625
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1487 -1462
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +577 -536
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/nav/index.esm.js +311 -31
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1634 -189
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +82 -82
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1200 -859
- package/components/order/index.umd.cjs +6 -6
- package/components/page-footer/index.esm.js +331 -48
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +110 -116
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +509 -232
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +353 -148
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +157 -153
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1825 -871
- package/components/property-panel/index.umd.cjs +12 -5
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +6075 -3862
- package/components/query-solution/index.umd.cjs +13 -6
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2603 -2376
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/search-box/index.esm.js +244 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +134 -133
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +179 -8
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.css +1 -0
- package/components/sort-condition-editor/index.esm.js +9488 -4
- package/components/sort-condition-editor/index.umd.cjs +427 -1
- package/components/splitter/index.esm.js +1172 -142
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +47 -48
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +490 -419
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +217 -73
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +29 -27
- package/components/textarea/index.umd.cjs +2 -2
- package/components/transfer/index.esm.js +762 -544
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +287 -283
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +326 -157
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +1125 -634
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +359 -106
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +222 -89
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +290 -199
- package/components/weather/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +5798 -4905
- package/designer/data-grid/index.umd.cjs +16 -9
- package/designer/drawer/index.esm.js +576 -567
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +1418 -1154
- package/designer/dynamic-form/index.umd.cjs +8 -1
- package/designer/farris-designer.all.esm.js +11332 -10754
- package/designer/farris-designer.all.umd.cjs +17 -17
- package/designer/list-view/index.esm.js +647 -647
- package/designer/list-view/index.umd.cjs +6 -6
- package/designer/modal/index.esm.js +29 -137
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +2 -3
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +1 -1
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +1 -6
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +2848 -2556
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +2 -2
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +826 -465
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +75302 -73138
- package/farris.all.umd.cjs +94 -94
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/accordion/src/accordion.props.d.ts +1 -0
- package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
- package/types/avatar/src/avatar.props.d.ts +1 -0
- package/types/binding-selector/index.d.ts +54 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
- package/types/button-group/index.d.ts +0 -15
- package/types/button-group/src/button-group.props.d.ts +1 -0
- package/types/code-editor/index.d.ts +1 -0
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +2 -0
- package/types/color-picker/index.d.ts +15 -0
- package/types/color-picker/src/color-picker.props.d.ts +1 -0
- package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
- package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
- package/types/component/index.d.ts +2 -0
- package/types/component/src/component.props.d.ts +8 -0
- package/types/components.d.ts +7 -0
- package/types/condition/index.d.ts +55 -0
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/appearance/use-cell-position.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +5 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +2 -2
- package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +3 -2
- package/types/data-view/composition/visualization/use-visual-data-row.d.ts +2 -1
- package/types/designer-toolbox/index.d.ts +3 -0
- package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
- package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
- package/types/designer-toolbox/src/types.d.ts +21 -0
- package/types/designer.d.ts +13 -0
- package/types/dropdown/index.d.ts +6 -27
- package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
- package/types/dropdown/src/dropdown.props.d.ts +1 -0
- package/types/dynamic-form/designer.d.ts +1 -3
- package/types/dynamic-form/index.d.ts +3 -9
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
- package/types/dynamic-resolver/index.d.ts +0 -3
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
- package/types/dynamic-view/src/components/maps.d.ts +104 -92
- package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
- package/types/filter-condition-editor/index.d.ts +9 -0
- package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
- package/types/flow-canvas/index.d.ts +3 -0
- package/types/flow-canvas/src/components/flow-node-item.component.d.ts +8 -0
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
- package/types/flow-canvas/src/composition/types.d.ts +42 -0
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
- package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
- package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/json-editor/src/json-editor.props.d.ts +1 -0
- package/types/layout/index.d.ts +0 -1
- package/types/layout/src/components/layout-pane.props.d.ts +1 -0
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +2 -0
- package/types/layout/src/designer/layout-pane.design.component.d.ts +8 -0
- package/types/layout/src/designer/layout-use-designer-rules.d.ts +2 -0
- package/types/layout/src/designer/layout.design.component.d.ts +8 -0
- package/types/layout/src/layout.props.d.ts +1 -0
- package/types/layout/src/schema/schema-mapper.d.ts +2 -0
- package/types/layout/src/schema/schema-resolver.d.ts +2 -0
- package/types/list-nav/index.d.ts +5 -24
- package/types/list-nav/src/designer/use-designer-rules.d.ts +2 -0
- package/types/list-nav/src/list-nav.props.d.ts +1 -0
- package/types/list-nav/src/property-config/list-nav.property-config.d.ts +8 -0
- package/types/list-nav/src/schema/schema-mapper.d.ts +2 -0
- package/types/list-nav/src/schema/schema-resolver.d.ts +2 -0
- package/types/list-view/index.d.ts +0 -1
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +6 -6
- package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
- package/types/modal/designer.d.ts +0 -2
- package/types/nav/index.d.ts +20 -24
- package/types/nav/src/nav.props.d.ts +1 -0
- package/types/number-range/src/number-range.props.d.ts +1 -0
- package/types/order/index.d.ts +5 -36
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +1 -0
- package/types/page-footer/index.d.ts +2 -0
- package/types/page-footer/src/page-footer.props.d.ts +1 -0
- package/types/pagination/index.d.ts +0 -15
- package/types/pagination/src/pagination.props.d.ts +1 -0
- package/types/progress/src/progress.props.d.ts +1 -0
- package/types/query-solution/index.d.ts +2 -1
- package/types/radio-group/designer.d.ts +1 -2
- package/types/search-box/index.d.ts +17 -1
- package/types/search-box/src/search-box.props.d.ts +1 -0
- package/types/section/designer.d.ts +0 -1
- package/types/smoke-detector/index.d.ts +2 -0
- package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
- package/types/sort-condition-editor/index.d.ts +7 -2
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
- package/types/splitter/index.d.ts +0 -1
- package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
- package/types/splitter/src/splitter.props.d.ts +1 -0
- package/types/tabs/designer.d.ts +0 -1
- package/types/tabs/index.d.ts +1 -0
- package/types/text/index.d.ts +20 -24
- package/types/text/src/text.props.d.ts +1 -0
- package/types/transfer/src/transfer.props.d.ts +1 -0
- package/types/tree-grid/src/components/data/data-area.component.d.ts +2 -2
- package/types/tree-grid/src/tree-grid.props.d.ts +1 -0
- package/types/tree-view/src/components/data/tree-area.component.d.ts +1 -1
- package/types/tree-view/src/tree-view.props.d.ts +2 -0
- package/types/uploader/src/uploader.props.d.ts +1 -0
- package/types/verify-detail/index.d.ts +5 -58
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
- package/types/video/index.d.ts +20 -24
- package/types/video/src/video.props.d.ts +1 -0
- package/components/dynamic-form/index.css +0 -1
- package/designer/accordion/index.esm.js +0 -257
- package/designer/accordion/index.umd.cjs +0 -1
- package/designer/avatar/index.esm.js +0 -1460
- package/designer/avatar/index.umd.cjs +0 -1
- package/designer/binding-selector/index.esm.js +0 -792
- package/designer/binding-selector/index.umd.cjs +0 -1
- package/designer/button-group/index.esm.js +0 -282
- package/designer/button-group/index.umd.cjs +0 -1
- package/designer/code-editor/index.esm.js +0 -75
- package/designer/code-editor/index.umd.cjs +0 -1
- package/designer/color-picker/index.esm.js +0 -1096
- package/designer/color-picker/index.umd.cjs +0 -1
- package/designer/combo-list/index.esm.js +0 -1095
- package/designer/combo-list/index.umd.cjs +0 -1
- package/designer/combo-tree/index.esm.js +0 -186
- package/designer/combo-tree/index.umd.cjs +0 -1
- package/designer/component/index.css +0 -1
- package/designer/component/index.esm.js +0 -5002
- package/designer/component/index.umd.cjs +0 -1
- package/designer/condition/index.esm.js +0 -1899
- package/designer/condition/index.umd.cjs +0 -1
- package/designer/dropdown/index.esm.js +0 -261
- package/designer/dropdown/index.umd.cjs +0 -1
- package/designer/expression-editor/index.css +0 -1
- package/designer/expression-editor/index.esm.js +0 -7006
- package/designer/expression-editor/index.umd.cjs +0 -427
- package/designer/filter-condition-editor/index.css +0 -1
- package/designer/filter-condition-editor/index.esm.js +0 -4795
- package/designer/filter-condition-editor/index.umd.cjs +0 -1
- package/designer/html-template/index.esm.js +0 -718
- package/designer/html-template/index.umd.cjs +0 -1
- package/designer/image-cropper/index.esm.js +0 -765
- package/designer/image-cropper/index.umd.cjs +0 -1
- package/designer/json-editor/index.esm.js +0 -83
- package/designer/json-editor/index.umd.cjs +0 -1
- package/designer/language-textbox/index.esm.js +0 -783
- package/designer/language-textbox/index.umd.cjs +0 -8
- package/designer/layout/index.esm.js +0 -430
- package/designer/layout/index.umd.cjs +0 -1
- package/designer/list-nav/index.esm.js +0 -802
- package/designer/list-nav/index.umd.cjs +0 -1
- package/designer/lookup/index.esm.js +0 -2083
- package/designer/lookup/index.umd.cjs +0 -1
- package/designer/menu-lookup/index.esm.js +0 -46
- package/designer/menu-lookup/index.umd.cjs +0 -1
- package/designer/nav/index.esm.js +0 -284
- package/designer/nav/index.umd.cjs +0 -1
- package/designer/number-range/index.esm.js +0 -1616
- package/designer/number-range/index.umd.cjs +0 -1
- package/designer/order/index.css +0 -1
- package/designer/order/index.esm.js +0 -2196
- package/designer/order/index.umd.cjs +0 -18
- package/designer/page-footer/index.esm.js +0 -290
- package/designer/page-footer/index.umd.cjs +0 -1
- package/designer/page-header/index.esm.js +0 -1003
- package/designer/page-header/index.umd.cjs +0 -1
- package/designer/pagination/index.esm.js +0 -591
- package/designer/pagination/index.umd.cjs +0 -1
- package/designer/progress/index.esm.js +0 -213
- package/designer/progress/index.umd.cjs +0 -1
- package/designer/search-box/index.esm.js +0 -245
- package/designer/search-box/index.umd.cjs +0 -1
- package/designer/smoke-detector/index.css +0 -1
- package/designer/smoke-detector/index.esm.js +0 -178
- package/designer/smoke-detector/index.umd.cjs +0 -1
- package/designer/sort-condition-editor/index.esm.js +0 -138
- package/designer/sort-condition-editor/index.umd.cjs +0 -1
- package/designer/splitter/index.esm.js +0 -1120
- package/designer/splitter/index.umd.cjs +0 -1
- package/designer/step/index.esm.js +0 -226
- package/designer/step/index.umd.cjs +0 -1
- package/designer/text/index.esm.js +0 -147
- package/designer/text/index.umd.cjs +0 -1
- package/designer/transfer/index.esm.js +0 -254
- package/designer/transfer/index.umd.cjs +0 -1
- package/designer/tree-view/index.esm.js +0 -313
- package/designer/tree-view/index.umd.cjs +0 -1
- package/designer/uploader/index.esm.js +0 -1190
- package/designer/uploader/index.umd.cjs +0 -2
- package/designer/verify-detail/index.esm.js +0 -258
- package/designer/verify-detail/index.umd.cjs +0 -1
- package/designer/video/index.esm.js +0 -136
- package/designer/video/index.umd.cjs +0 -1
- package/designer/weather/index.css +0 -1
- package/designer/weather/index.esm.js +0 -6244
- package/designer/weather/index.umd.cjs +0 -14
- package/types/accordion/designer.d.ts +0 -44
- package/types/avatar/designer.d.ts +0 -29
- package/types/button-group/designer.d.ts +0 -29
- package/types/code-editor/designer.d.ts +0 -5
- package/types/color-picker/designer.d.ts +0 -29
- package/types/combo-list/designer.d.ts +0 -29
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
- package/types/combo-tree/designer.d.ts +0 -5
- package/types/component/designer.d.ts +0 -35
- package/types/condition/designer.d.ts +0 -56
- package/types/dropdown/designer.d.ts +0 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
- package/types/expression-editor/designer.d.ts +0 -9
- package/types/filter-condition-editor/designer.d.ts +0 -10
- package/types/html-template/designer.d.ts +0 -31
- package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
- package/types/image-cropper/designer.d.ts +0 -4
- package/types/json-editor/designer.d.ts +0 -5
- package/types/menu-lookup/designer.d.ts +0 -5
- package/types/nav/designer.d.ts +0 -6
- package/types/number-range/designer.d.ts +0 -29
- package/types/order/designer.d.ts +0 -6
- package/types/page-footer/designer.d.ts +0 -6
- package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
- package/types/pagination/designer.d.ts +0 -29
- package/types/progress/designer.d.ts +0 -29
- package/types/search-box/designer.d.ts +0 -52
- package/types/smoke-detector/designer.d.ts +0 -6
- package/types/sort-condition-editor/designer.d.ts +0 -9
- package/types/splitter/designer.d.ts +0 -32
- package/types/step/designer.d.ts +0 -6
- package/types/text/designer.d.ts +0 -6
- package/types/transfer/designer.d.ts +0 -35
- package/types/tree-view/designer.d.ts +0 -29
- package/types/uploader/designer.d.ts +0 -141
- package/types/verify-detail/designer.d.ts +0 -6
- package/types/video/designer.d.ts +0 -6
- /package/{designer → components}/condition/index.css +0 -0
- /package/{designer → components}/uploader/index.css +0 -0
- /package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → list-nav/src/designer/list-nav.design.component.d.ts} +0 -0
|
@@ -1,14 +1,640 @@
|
|
|
1
|
-
import { excludeProperties as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useIdentify as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
import { getCustomClass as Xt, excludeProperties as Zt, withInstall as eo } from "../../components/common/index.esm.js";
|
|
2
|
+
import { createVNode as j, defineComponent as ke, ref as C, computed as M, onMounted as Me, nextTick as Ve, onUnmounted as to, watch as me, createTextVNode as oo, inject as Te } from "vue";
|
|
3
|
+
import { useResizeObserver as He } from "@vueuse/core";
|
|
4
|
+
import { isUndefined as L } from "lodash-es";
|
|
5
|
+
import { LocaleService as no } from "../../components/locale/index.esm.js";
|
|
6
|
+
import { getHierarchyRow as io, useIdentify as xe, useGroupData as ao, useFilter as Ne, useHierarchy as Ae, useLoading as lo, useDataView as Ee, useSelection as ze, useSelectHierarchyItem as ro, usePagination as so, useDataViewContainerStyle as We, useCommandColumn as _e, useSettingColumn as co, useColumn as uo, useSort as $e, useGroupColumn as Le, useRow as Ue, useEdit as qe, useVisualDataBound as Ye, useVisualDataCell as Je, useVisualDataRow as Ke, useVisualData as po, useCellPosition as fo, useSidebar as Qe, useVirtualScroll as Xe, useFitColumn as mo, useFilterHistory as yo, useColumnFilter as go, useDragColumn as Co, getColumnHeader as vo, getSidebar as ho, getDisableMask as bo, getHorizontalScrollbar as Ze, getVerticalScrollbar as wo, getEmpty as So, getPagination as Io, getSummary as Ro } from "../../components/data-view/index.esm.js";
|
|
7
|
+
import { resolveAppearance as Bo, createPropsResolver as et, createTreeGridSelectionItemResolver as Do, createTreeGridBindingResolver as Oo, createDataViewUpdateColumnsResolver as Fo } from "../../components/dynamic-resolver/index.esm.js";
|
|
8
|
+
import { treeGridProps as tt } from "../../components/tree-grid/index.esm.js";
|
|
9
|
+
import { getColumnHeader as Po } from "../data-grid/index.esm.js";
|
|
10
|
+
import { DgControl as Be, useDesignerComponent as Go } from "../../components/designer-canvas/index.esm.js";
|
|
11
|
+
import { BaseControlProperty as jo } from "../../components/property-panel/index.esm.js";
|
|
12
|
+
import { useCommandOption as To, useColumnOption as ko, useRowOption as Mo, useSummary as Vo, useAppearance as Ho, useRowNumber as xo, usePagination as No, useDataGridEvent as Ao, useDesignerColumn as Eo, useDesignerVisualData as zo, useDesignerFitColumn as Wo } from "../data-view/index.esm.js";
|
|
13
|
+
const Rn = {
|
|
14
|
+
/** 启用分页 */
|
|
15
|
+
enable: { type: Boolean, default: !1 },
|
|
16
|
+
/** 当前页码 */
|
|
17
|
+
index: { type: Number, default: 1 },
|
|
18
|
+
/** 分页交互模式 */
|
|
19
|
+
mode: { type: String, default: "server" },
|
|
20
|
+
/** 显示页码输入框 */
|
|
21
|
+
showGoto: { type: Boolean, default: !1 },
|
|
22
|
+
/** 显示页码 */
|
|
23
|
+
showIndex: { type: Boolean, default: !0 },
|
|
24
|
+
/** 显示每页记录数 */
|
|
25
|
+
showLimits: { type: Boolean, default: !1 },
|
|
26
|
+
/** 显示分页汇总信息 */
|
|
27
|
+
showPageInfo: { type: Boolean, default: !0 },
|
|
28
|
+
/** 默认每页记录数 */
|
|
29
|
+
size: { type: Number, default: 20 },
|
|
30
|
+
/** 可选择的没有记录数据 */
|
|
31
|
+
sizeLimits: { type: Array, default: [10, 20, 30, 50, 100] },
|
|
32
|
+
/** 总记录数 */
|
|
33
|
+
total: { type: Number, default: 0 }
|
|
34
|
+
}, Bn = {
|
|
35
|
+
/** 启用排序 */
|
|
36
|
+
enable: { type: Boolean, default: !1 },
|
|
37
|
+
/** 排序字段集合 */
|
|
38
|
+
fields: { type: Array, default: [] },
|
|
39
|
+
/** 排序交互模式 */
|
|
40
|
+
mode: { type: String, default: "client" },
|
|
41
|
+
/** 多列排序 */
|
|
42
|
+
multiSort: { type: Boolean, default: !1 }
|
|
43
|
+
}, Dn = {
|
|
44
|
+
/** 自定义分组合计内容 */
|
|
45
|
+
customGroupRow: { type: Function, default: () => {
|
|
46
|
+
} },
|
|
47
|
+
/** 自定义分组行样式 */
|
|
48
|
+
customGroupRowStyle: { type: Function, default: () => {
|
|
49
|
+
} },
|
|
50
|
+
/** 自行分组合计行样式 */
|
|
51
|
+
customSummaryStyle: { type: Function, default: () => {
|
|
52
|
+
} },
|
|
53
|
+
/** 启用行数据分组 */
|
|
54
|
+
enable: { type: Boolean, default: !1 },
|
|
55
|
+
/** 分组行合并列数 */
|
|
56
|
+
groupColSpan: { type: Number, default: 1 },
|
|
57
|
+
/** 行数据分组字段;多字段分组以英文逗号分隔 */
|
|
58
|
+
groupFields: { type: Array, default: [] },
|
|
59
|
+
/** 在DataGrid中显示被分组的列 */
|
|
60
|
+
showGroupedColumn: { type: Boolean, default: !0 },
|
|
61
|
+
/** 显示分组面板 */
|
|
62
|
+
showGroupPanel: { type: Boolean, default: !1 },
|
|
63
|
+
/** 启用合计行 */
|
|
64
|
+
showSummary: { type: Boolean, default: !1 },
|
|
65
|
+
/** 显示合计行位置; */
|
|
66
|
+
summaryPosition: { type: String, default: "separate" }
|
|
67
|
+
}, On = {
|
|
68
|
+
/** 启用筛选 */
|
|
69
|
+
enable: { type: Boolean, default: !1 },
|
|
70
|
+
/** DataGrid筛选风格 */
|
|
71
|
+
filterStyle: { type: String, default: "filter-column" },
|
|
72
|
+
/** 筛选交互模式 */
|
|
73
|
+
mode: { type: String, default: "server" },
|
|
74
|
+
/** 显示过滤条件工具条 */
|
|
75
|
+
showSummary: { type: Boolean, default: !0 }
|
|
76
|
+
}, Fn = {
|
|
77
|
+
/** 允许折行显示列标题 */
|
|
78
|
+
wrapHeadings: { type: Boolean, default: !1 }
|
|
79
|
+
}, Pn = {
|
|
80
|
+
/** 自定义行样式 */
|
|
81
|
+
customRowStyle: { type: Function, default: () => {
|
|
82
|
+
} },
|
|
83
|
+
customCellStyle: { type: Function, default: () => {
|
|
84
|
+
} },
|
|
85
|
+
/** 禁止行选中表达式 */
|
|
86
|
+
disable: { type: Function, default: () => {
|
|
87
|
+
} },
|
|
88
|
+
/** 默认行高度为 29px */
|
|
89
|
+
height: { type: Number, default: 28 },
|
|
90
|
+
/** 鼠标滑过行效果 */
|
|
91
|
+
showHovering: { type: Boolean, default: !0 },
|
|
92
|
+
/** 禁止数据折行 */
|
|
93
|
+
wrapContent: { type: Boolean, default: !1 }
|
|
94
|
+
}, Gn = {
|
|
95
|
+
/** 显示合计信息 */
|
|
96
|
+
enable: { type: Boolean, default: !1 },
|
|
97
|
+
/** 合计行自定义样式,对启用合计行模板无效 */
|
|
98
|
+
customSummaryStyle: { type: Function, default: () => {
|
|
99
|
+
} },
|
|
100
|
+
/** 分组合计字段 */
|
|
101
|
+
groupFields: { type: Array, default: [] },
|
|
102
|
+
/** 合计交互模式 */
|
|
103
|
+
mode: { type: String, default: "client" },
|
|
104
|
+
/** 合计行显示位置, top: 顶部 bottom: 底部, both: 顶部与底部同时显示 */
|
|
105
|
+
position: { type: String, default: "bottom" }
|
|
106
|
+
}, jn = {
|
|
107
|
+
/** 自动列宽。设为true后,所有列将填满表格并不会出现横向滚动条。 */
|
|
108
|
+
fitColumns: { type: Boolean, default: !1 },
|
|
109
|
+
/** 自动适配列宽度模式 */
|
|
110
|
+
fitMode: { type: String, default: "average" },
|
|
111
|
+
groups: { type: Array, defaut: [] },
|
|
112
|
+
/** 允许拖动表头改变列显示顺序 */
|
|
113
|
+
reorderColumn: { type: Boolean, default: !1 },
|
|
114
|
+
/** 允许拖动改变列宽度 */
|
|
115
|
+
resizeColumn: { type: Boolean, default: !0 },
|
|
116
|
+
/** 双击表头列自适应内容宽度 */
|
|
117
|
+
resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
|
|
118
|
+
}, Tn = {
|
|
119
|
+
/** 编辑时选中文本 */
|
|
120
|
+
selectOnEditing: { type: Boolean, default: !1 },
|
|
121
|
+
/** 编辑模式; row:整行编辑,cell: 单元格编辑 */
|
|
122
|
+
editMode: { type: String, default: "cell" }
|
|
123
|
+
}, kn = {
|
|
124
|
+
/** show loading */
|
|
125
|
+
show: { type: Boolean, default: !1 },
|
|
126
|
+
/** message on display when loading */
|
|
127
|
+
message: { type: String, default: `${no.getLocaleValue("datagrid.loadingMessage")}...` }
|
|
128
|
+
}, _o = {
|
|
129
|
+
/** 自定义样式 */
|
|
130
|
+
customClass: { type: String, default: "" },
|
|
131
|
+
/** 排序配置 */
|
|
132
|
+
sort: { type: Object },
|
|
133
|
+
/** 筛选配置 */
|
|
134
|
+
filter: { type: Object },
|
|
135
|
+
/** 自动勾选子节点 */
|
|
136
|
+
autoCheckChildren: { type: Boolean, default: !1 },
|
|
137
|
+
/** 列集合 */
|
|
138
|
+
columns: { type: Array, default: [] },
|
|
139
|
+
/** 列配置 */
|
|
140
|
+
columnOption: { type: Object },
|
|
141
|
+
/** 命令列配置选项 */
|
|
142
|
+
commandOption: {
|
|
143
|
+
type: Object,
|
|
144
|
+
default: {
|
|
145
|
+
enable: !1,
|
|
146
|
+
commands: []
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
/** 被绑定数据 */
|
|
150
|
+
data: { type: Array, default: [] },
|
|
151
|
+
/** 禁用组件 */
|
|
152
|
+
disabled: { type: Boolean, default: !1 },
|
|
153
|
+
/** 用于控制节点禁用状态的字段 */
|
|
154
|
+
disabledField: { type: String, default: "disabled" },
|
|
155
|
+
/** 用于显示信息的字段 */
|
|
156
|
+
displayField: { type: String, default: "name" },
|
|
157
|
+
/** 允许编辑 */
|
|
158
|
+
editable: { type: Boolean, default: !1 },
|
|
159
|
+
/** 编辑配置 */
|
|
160
|
+
editOption: { type: Object, default: { selectOnEditing: !1, editMode: "cell" } },
|
|
161
|
+
/** 适配父组件尺寸 */
|
|
162
|
+
fit: { type: Boolean, default: !1 },
|
|
163
|
+
/** 列标题配置 */
|
|
164
|
+
header: { type: Object },
|
|
165
|
+
/** 高度 */
|
|
166
|
+
height: { type: Number, default: -1 },
|
|
167
|
+
/** 层级关系配置对象 */
|
|
168
|
+
hierarchy: {
|
|
169
|
+
type: Object,
|
|
170
|
+
default: {
|
|
171
|
+
cascadeOption: {
|
|
172
|
+
autoCancelParent: !0,
|
|
173
|
+
autoCheckChildren: !1,
|
|
174
|
+
autoCheckParent: !1,
|
|
175
|
+
selectionRange: "All"
|
|
176
|
+
},
|
|
177
|
+
parentIdField: "parent"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
/** DataGrid组件唯一标识 */
|
|
181
|
+
id: { type: String, default: "" },
|
|
182
|
+
/** 被绑定数据的标识字段 */
|
|
183
|
+
idField: { type: String, default: "id", require: !0 },
|
|
184
|
+
/** async loading data */
|
|
185
|
+
loadData: { type: Function },
|
|
186
|
+
// 是否展示 loading
|
|
187
|
+
loading: {
|
|
188
|
+
type: Boolean,
|
|
189
|
+
default: !1
|
|
190
|
+
},
|
|
191
|
+
/** 最小高度 */
|
|
192
|
+
minHeight: { type: Number, default: 300 },
|
|
193
|
+
/** 最小宽度 */
|
|
194
|
+
minWidth: { type: Number, default: 400 },
|
|
195
|
+
/** 新建数据 */
|
|
196
|
+
newDataItem: {
|
|
197
|
+
type: Function,
|
|
198
|
+
default: () => {
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
/** 分页配置 */
|
|
202
|
+
pagination: {
|
|
203
|
+
type: Object,
|
|
204
|
+
default: {
|
|
205
|
+
enable: !1,
|
|
206
|
+
size: -1
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
/** 行号配置 */
|
|
210
|
+
rowNumber: {
|
|
211
|
+
type: Object,
|
|
212
|
+
default: {
|
|
213
|
+
enable: !0,
|
|
214
|
+
width: 36,
|
|
215
|
+
heading: "序号"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
/** 行配置 */
|
|
219
|
+
rowOption: {
|
|
220
|
+
type: Object,
|
|
221
|
+
default: {
|
|
222
|
+
wrapContent: !1
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
/** 选择配置 */
|
|
226
|
+
selection: {
|
|
227
|
+
type: Object,
|
|
228
|
+
default: {
|
|
229
|
+
enableSelectRow: !0,
|
|
230
|
+
multiSelect: !1,
|
|
231
|
+
multiSelectMode: "DependOnCheck",
|
|
232
|
+
showCheckbox: !1,
|
|
233
|
+
showSelectAll: !1,
|
|
234
|
+
showSelection: !1
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
/** 已选数据标识 */
|
|
238
|
+
selectionValues: { type: Array, default: [] },
|
|
239
|
+
/** 显示边框 */
|
|
240
|
+
showBorder: { type: Boolean, default: !1 },
|
|
241
|
+
/** 显示列头 */
|
|
242
|
+
showHeader: { type: Boolean, default: !0 },
|
|
243
|
+
/** 显示横向行分割线 */
|
|
244
|
+
showHorizontalLines: { type: Boolean, default: !0 },
|
|
245
|
+
/** 显示节点连接线 */
|
|
246
|
+
showLines: { type: Boolean, default: !1 },
|
|
247
|
+
/** 显示配置按钮 */
|
|
248
|
+
showOptions: { type: Boolean, default: !1 },
|
|
249
|
+
/** 显示滚动条 */
|
|
250
|
+
showScrollBar: { type: String, default: "auto" },
|
|
251
|
+
/** 显示设置按钮 */
|
|
252
|
+
showSetting: { type: Boolean, default: !1 },
|
|
253
|
+
/** 显示条纹 */
|
|
254
|
+
showStripe: { type: Boolean, default: !0 },
|
|
255
|
+
/** 显示树节点图标 */
|
|
256
|
+
showTreeNodeIcons: { type: Boolean, default: !1 },
|
|
257
|
+
/** 显示纵向列分割线 */
|
|
258
|
+
showVerticallLines: { type: Boolean, default: !1 },
|
|
259
|
+
/** 树节点图标数据 */
|
|
260
|
+
treeNodeIconsData: { type: [Object, String], default: {} },
|
|
261
|
+
/** 宽度 */
|
|
262
|
+
width: { type: Number, default: -1 },
|
|
263
|
+
/** 启用虚拟渲染 */
|
|
264
|
+
virtualized: { type: Boolean, default: !1 },
|
|
265
|
+
/** 空数据模板 */
|
|
266
|
+
emptyTemplate: { type: Object },
|
|
267
|
+
/** 合计配置 */
|
|
268
|
+
summary: {
|
|
269
|
+
type: Object,
|
|
270
|
+
default: {
|
|
271
|
+
// 默认合计行开启后,后面不展示值,所以默认不开启
|
|
272
|
+
enable: !1,
|
|
273
|
+
groupFields: ["numericField1", "numericField2"]
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
/** 自动高度 **/
|
|
277
|
+
autoHeight: { type: Boolean, default: !1 },
|
|
278
|
+
/** 是否可见, 为了适配低代码表单,该属性不应该属于表格组件的行为 */
|
|
279
|
+
/** 复选框位置 */
|
|
280
|
+
checkboxPosition: { type: String, default: "after-expand" }
|
|
281
|
+
};
|
|
282
|
+
function $o(e, t, d, a, r, y, c, s, u, f, i, m, D, P, p, B, O, V, H) {
|
|
283
|
+
const {
|
|
284
|
+
calculateCellPositionInRow: T
|
|
285
|
+
} = y, {
|
|
286
|
+
columnContext: b,
|
|
287
|
+
hasLeftFixedColumn: W,
|
|
288
|
+
hasRightFixedColumn: g
|
|
289
|
+
} = c, {
|
|
290
|
+
gridDataStyle: l,
|
|
291
|
+
leftFixedGridDataStyle: U,
|
|
292
|
+
rightFixedGridDataStyle: v
|
|
293
|
+
} = P, {
|
|
294
|
+
renderDataRow: A
|
|
295
|
+
} = io(e, t, b, O, s, u, f, i, m, D, P, p, B, V, H), le = [A];
|
|
296
|
+
function F(w, Z) {
|
|
297
|
+
const ee = T(w);
|
|
298
|
+
return O.value.filter((E) => E.visible !== !1).map((E, te) => le[E.type](E, ee, Z, te));
|
|
299
|
+
}
|
|
300
|
+
function re() {
|
|
301
|
+
return j("div", {
|
|
302
|
+
ref: a,
|
|
303
|
+
class: "fv-grid-content-left-fixed"
|
|
304
|
+
}, [j("div", {
|
|
305
|
+
class: "fv-grid-data",
|
|
306
|
+
style: U.value
|
|
307
|
+
}, [F(b.value.leftColumns.filter((w) => w.visible), "left")])]);
|
|
308
|
+
}
|
|
309
|
+
function x() {
|
|
310
|
+
return j("div", {
|
|
311
|
+
ref: d,
|
|
312
|
+
class: "fv-grid-content-primary"
|
|
313
|
+
}, [j("div", {
|
|
314
|
+
class: "fv-grid-data",
|
|
315
|
+
style: l.value
|
|
316
|
+
}, [F(b.value.primaryColumns.filter((w) => w.visible), "primary")])]);
|
|
317
|
+
}
|
|
318
|
+
function Q() {
|
|
319
|
+
return j("div", {
|
|
320
|
+
ref: r,
|
|
321
|
+
class: "fv-grid-content-right-fixed"
|
|
322
|
+
}, [j("div", {
|
|
323
|
+
class: "fv-grid-data",
|
|
324
|
+
style: v.value
|
|
325
|
+
}, [F(b.value.rightColumns.filter((w) => w.visible), "right")])]);
|
|
326
|
+
}
|
|
327
|
+
function X() {
|
|
328
|
+
const w = [];
|
|
329
|
+
return W.value && w.push(re()), w.push(x()), g.value && w.push(Q()), w;
|
|
330
|
+
}
|
|
331
|
+
return {
|
|
332
|
+
renderDataArea: X
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
const Lo = /* @__PURE__ */ ke({
|
|
336
|
+
name: "FTreeGrid",
|
|
337
|
+
props: _o,
|
|
338
|
+
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged", "selectionUpdate"],
|
|
339
|
+
setup(e, t) {
|
|
340
|
+
var Pe, Ge;
|
|
341
|
+
const d = C(!1), a = 0, r = C(((Pe = e.rowOption) == null ? void 0 : Pe.height) || 28), y = C(20), c = C(e.columns), s = xe(e), {
|
|
342
|
+
idField: u
|
|
343
|
+
} = s, f = C(), i = C(), m = C(), D = C(), P = C(), p = C([]), B = C(!1), O = C(((Ge = e.rowOption) == null ? void 0 : Ge.wrapContent) || !1), V = ao(e, s), H = Ne(e, t), T = Ae(e), {
|
|
344
|
+
collapseField: b
|
|
345
|
+
} = T, {
|
|
346
|
+
showLoading: W,
|
|
347
|
+
renderLoading: g
|
|
348
|
+
} = lo(e, f), l = Ee(e, /* @__PURE__ */ new Map(), H, T, s), {
|
|
349
|
+
dataView: U
|
|
350
|
+
} = l, v = ze(e, l, s, p, t), {
|
|
351
|
+
showSelection: A,
|
|
352
|
+
selectedValues: le
|
|
353
|
+
} = v, F = ro(e, p, l, s, v, t), re = M(() => e.disabled), x = M(() => e.virtualized ? Math.min(l.dataView.value.length, y.value) : l.dataView.value.length), Q = so(e, l), {
|
|
354
|
+
shouldRenderPagination: X
|
|
355
|
+
} = Q, {
|
|
356
|
+
containerStyleObject: w
|
|
357
|
+
} = We(e), Z = _e(e), {
|
|
358
|
+
applyCommands: ee
|
|
359
|
+
} = Z;
|
|
360
|
+
ee(c);
|
|
361
|
+
const {
|
|
362
|
+
applyColumnSetting: E,
|
|
363
|
+
removeColumnSetting: te
|
|
364
|
+
} = co(e);
|
|
365
|
+
e.showSetting && E(c);
|
|
366
|
+
const _ = uo(e, t), se = $e(e), {
|
|
367
|
+
applyColumnSorter: ye,
|
|
368
|
+
columnContext: $,
|
|
369
|
+
updateColumnRenderContext: ve
|
|
370
|
+
} = _;
|
|
371
|
+
ye(l, se);
|
|
372
|
+
const oe = Le(e, $), z = Ue(e, t, v, s), N = qe(e, t, s, z, p), de = Ye(e, l, r), he = Je(e, N, de), ne = Ke(e, l, N, T, s, de, he, r), ce = po(e, c, l, x, a, ne), {
|
|
373
|
+
getVisualData: ie
|
|
374
|
+
} = ce, be = fo(e, $, r, d), ue = Qe(e, v), {
|
|
375
|
+
sidebarWidth: we
|
|
376
|
+
} = ue, I = Xe(e, l, p, $, ce, x, a, we, r, d), {
|
|
377
|
+
onWheel: ge,
|
|
378
|
+
dataGridWidth: pe,
|
|
379
|
+
viewPortHeight: k,
|
|
380
|
+
viewPortWidth: q,
|
|
381
|
+
resetScroll: ae,
|
|
382
|
+
updateVisibleRowsOnLatestVisibleScope: lt
|
|
383
|
+
} = I, De = mo(e, $, i, q, oe), {
|
|
384
|
+
calculateColumnsSize: fe
|
|
385
|
+
} = De, Oe = yo(), rt = go(i, P, l, Oe, I), st = Co(e, t, _, l, oe, V, I), dt = M(() => {
|
|
386
|
+
const o = {
|
|
387
|
+
"fv-grid": !0,
|
|
388
|
+
"fv-grid-bordered": e.showBorder,
|
|
389
|
+
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
390
|
+
"fv-datagrid-strip": e.showStripe
|
|
391
|
+
};
|
|
392
|
+
return Xt(o, e.customClass);
|
|
393
|
+
}), ct = M(() => ({
|
|
394
|
+
"fv-grid-content": !0,
|
|
395
|
+
"fv-grid-content-hover": B.value,
|
|
396
|
+
"fv-grid-wrap-content": O.value
|
|
397
|
+
})), {
|
|
398
|
+
renderDataArea: ut
|
|
399
|
+
} = $o(e, t, m, D, P, be, _, l, N, T, z, v, F, I, ce, de, p, r, d), {
|
|
400
|
+
renderGridHeader: pt,
|
|
401
|
+
renderGridColumnResizeOverlay: ft,
|
|
402
|
+
shouldShowHeader: mt
|
|
403
|
+
} = vo(e, t, i, D, P, _, l, st, rt, H, Oe, De, oe, v, ue, se, I, q, p), {
|
|
404
|
+
renderDataGridSidebar: yt
|
|
405
|
+
} = ho(e, z, v, ue, I), {
|
|
406
|
+
renderDisableMask: gt
|
|
407
|
+
} = bo(), {
|
|
408
|
+
renderHorizontalScrollbar: Ct
|
|
409
|
+
} = Ze(e, i, I), {
|
|
410
|
+
renderVerticalScrollbar: vt
|
|
411
|
+
} = wo(e, i, I);
|
|
412
|
+
function ht() {
|
|
413
|
+
var o, n, h;
|
|
414
|
+
if (i.value && i.value.clientHeight > 0 && ((o = i.value) == null ? void 0 : o.clientWidth) > 0) {
|
|
415
|
+
const R = Math.ceil(i.value.clientHeight / r.value);
|
|
416
|
+
R > y.value && (y.value = R, lt()), k.value = ((n = m.value) == null ? void 0 : n.clientHeight) || 0, pe.value = ((h = i.value) == null ? void 0 : h.clientWidth) || 0;
|
|
417
|
+
}
|
|
418
|
+
i.value && (i.value.clientHeight > 0 || i.value.clientWidth > 0) && fe();
|
|
419
|
+
}
|
|
420
|
+
Me(() => {
|
|
421
|
+
i.value && (y.value = Math.max(Math.ceil(i.value.clientHeight / r.value), y.value), p.value = ie(0, x.value + a - 1), He(i.value, ht), fe(), Ve(() => {
|
|
422
|
+
i.value && (pe.value = i.value.clientWidth), m.value && (q.value = m.value.clientWidth, k.value = m.value.clientHeight);
|
|
423
|
+
})), W.value && g();
|
|
424
|
+
}), to(() => {
|
|
425
|
+
}), me(q, () => {
|
|
426
|
+
i.value && fe();
|
|
427
|
+
});
|
|
428
|
+
function bt(o) {
|
|
429
|
+
l.collapseTo(o), l.reOrderVisibleIndex(), ae();
|
|
430
|
+
}
|
|
431
|
+
function wt(o) {
|
|
432
|
+
l.expandTo(o), l.reOrderVisibleIndex(), ae();
|
|
433
|
+
}
|
|
434
|
+
function Se() {
|
|
435
|
+
const o = v.getSelectionRow();
|
|
436
|
+
return o ? o.dataIndex - 1 : -1;
|
|
437
|
+
}
|
|
438
|
+
function St(o) {
|
|
439
|
+
const n = o !== void 0 ? o : Se(), h = l.insertNewDataItem(n === -1 ? 0 : n);
|
|
440
|
+
return p.value = ie(0, x.value + a - 1), h;
|
|
441
|
+
}
|
|
442
|
+
function It() {
|
|
443
|
+
const o = Se();
|
|
444
|
+
l.insertNewChildDataItem(o), p.value = ie(0, x.value + a - 1);
|
|
445
|
+
}
|
|
446
|
+
function Rt(o, n) {
|
|
447
|
+
const h = p.value.find((G) => G.raw[u.value] === n), R = h ? h.dataIndex - 1 : -1;
|
|
448
|
+
l.insertNewChildDataItems(o, R);
|
|
449
|
+
}
|
|
450
|
+
function Bt() {
|
|
451
|
+
const o = Se(), n = F.getNextSelectableHierarchyItemId(o);
|
|
452
|
+
l.removeHierarchyDataItem(o), p.value = ie(0, x.value + a - 1), n && F.selectItemById(n);
|
|
453
|
+
}
|
|
454
|
+
function Dt(o) {
|
|
455
|
+
N.onEditingRow(o);
|
|
456
|
+
}
|
|
457
|
+
function Ot(o) {
|
|
458
|
+
N.acceptEditingRow(o);
|
|
459
|
+
}
|
|
460
|
+
function Ft(o) {
|
|
461
|
+
N.cancelEditingRow(o);
|
|
462
|
+
}
|
|
463
|
+
function Ie(o) {
|
|
464
|
+
o && (c.value = o, ee(c), ve(c.value), ye(l, se), fe());
|
|
465
|
+
}
|
|
466
|
+
me(() => e.columns, (o) => {
|
|
467
|
+
Ie(o);
|
|
468
|
+
});
|
|
469
|
+
function Pt(o, n) {
|
|
470
|
+
o && (l.load(o), l.reOrderVisibleIndex(), n != null && n.keepScrollPosition ? I.scrollTo(I.offsetY.value) : ae());
|
|
471
|
+
}
|
|
472
|
+
function Re(o) {
|
|
473
|
+
z.activeRowById(o);
|
|
474
|
+
}
|
|
475
|
+
function Gt(o, n = {
|
|
476
|
+
isCurrent: !0
|
|
477
|
+
}) {
|
|
478
|
+
n != null && n.isCurrent && Re(o), F.selectItemById(o);
|
|
479
|
+
}
|
|
480
|
+
function jt(o) {
|
|
481
|
+
const n = p.value.find((h) => h.raw[s.idField.value] === o);
|
|
482
|
+
n && z.clickRowItem(n);
|
|
483
|
+
}
|
|
484
|
+
function Tt(o) {
|
|
485
|
+
F.selectItemByIds(o);
|
|
486
|
+
}
|
|
487
|
+
function kt() {
|
|
488
|
+
return v.getSelectedItems();
|
|
489
|
+
}
|
|
490
|
+
function Fe() {
|
|
491
|
+
v.clearSelection();
|
|
492
|
+
}
|
|
493
|
+
function Mt() {
|
|
494
|
+
v.emptyCurrentRowId();
|
|
495
|
+
}
|
|
496
|
+
const Vt = M(() => !p.value || !p.value.length), {
|
|
497
|
+
renderEmpty: Ht
|
|
498
|
+
} = So(e, t);
|
|
499
|
+
function xt() {
|
|
500
|
+
return v.getSelectionRow();
|
|
501
|
+
}
|
|
502
|
+
function Nt(o, n = {
|
|
503
|
+
clearCurrent: !0
|
|
504
|
+
}) {
|
|
505
|
+
n != null && n.clearCurrent && Re(""), F.unSelectItemByIds(o);
|
|
506
|
+
}
|
|
507
|
+
function At() {
|
|
508
|
+
return v.currentSelectedDataId.value;
|
|
509
|
+
}
|
|
510
|
+
function Et(o, n, h) {
|
|
511
|
+
const R = U.value.find((G) => G[u.value] === o);
|
|
512
|
+
if (R) {
|
|
513
|
+
if (Object.keys(R).forEach((S) => {
|
|
514
|
+
Object.prototype.hasOwnProperty.call(n, S) && (R[S] = n[S]);
|
|
515
|
+
}), h) {
|
|
516
|
+
const {
|
|
517
|
+
collapseField: S,
|
|
518
|
+
disabledField: Y,
|
|
519
|
+
checkedField: J,
|
|
520
|
+
visibleField: K
|
|
521
|
+
} = h;
|
|
522
|
+
S && !L(n[S]) && (R.__fv_collapse__ = n[S]), J && !L(n[J]) && (R.__fv_checked__ = n[J]), Y && !L(n[Y]) && (R.__fv_disabled__ = n[Y]), K && !L(n[K]) && (R.__fv_visible__ = n[K]);
|
|
523
|
+
}
|
|
524
|
+
const G = p.value.find((S) => S.raw[u.value] === o), je = p.value.findIndex((S) => S.raw[u.value] === o);
|
|
525
|
+
if (G) {
|
|
526
|
+
if (G.raw = R, Object.keys(G.data).forEach((S) => {
|
|
527
|
+
G.data[S].updateData(R);
|
|
528
|
+
}), h) {
|
|
529
|
+
const {
|
|
530
|
+
collapseField: S,
|
|
531
|
+
disabledField: Y,
|
|
532
|
+
checkedField: J,
|
|
533
|
+
visibleField: K
|
|
534
|
+
} = h;
|
|
535
|
+
S && !L(n[S]) && (G.collapse = n[S]), J && !L(n[J]) && (G.checked = n[J]), Y && !L(n[Y]) && (G.disabled = n[Y]), K && !L(n[K]) && (G.visible = n[K]);
|
|
536
|
+
}
|
|
537
|
+
p.value = [...p.value.slice(0, je), G, ...p.value.slice(je + 1)], l.updateSummary();
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
function zt(o) {
|
|
542
|
+
return Object.prototype.hasOwnProperty.call(o, "raw") ? l.hasRealChildren(o.raw) : l.hasRealChildren(o);
|
|
543
|
+
}
|
|
544
|
+
function Wt(o) {
|
|
545
|
+
const n = l.dataView.value.find((h) => h[u.value] === o);
|
|
546
|
+
return n ? n[b.value] : "";
|
|
547
|
+
}
|
|
548
|
+
function _t() {
|
|
549
|
+
return b.value;
|
|
550
|
+
}
|
|
551
|
+
me(() => e.showSetting, (o, n) => {
|
|
552
|
+
o !== n && (o ? E(c) : te(c), Ie(c.value));
|
|
553
|
+
});
|
|
554
|
+
function $t(o) {
|
|
555
|
+
return p.value.filter((n) => o.includes(n.raw[e.idField]));
|
|
556
|
+
}
|
|
557
|
+
function Lt(o) {
|
|
558
|
+
const n = s.idField.value, h = p.value.find((R) => R.raw[n] === o);
|
|
559
|
+
h && z.changeRow(h);
|
|
560
|
+
}
|
|
561
|
+
function Ut() {
|
|
562
|
+
v.keepSelectingOnPaging.value || Fe(), l.updateVisibleDataSummary(p.value);
|
|
563
|
+
}
|
|
564
|
+
t.expose({
|
|
565
|
+
activeRowById: Re,
|
|
566
|
+
addNewDataItem: St,
|
|
567
|
+
addNewChildDataItem: It,
|
|
568
|
+
addChildrenToNode: Rt,
|
|
569
|
+
collapseTo: bt,
|
|
570
|
+
expandTo: wt,
|
|
571
|
+
removeDataItem: Bt,
|
|
572
|
+
editDataItem: Dt,
|
|
573
|
+
acceptDataItem: Ot,
|
|
574
|
+
cancelDataItem: Ft,
|
|
575
|
+
updateColumns: Ie,
|
|
576
|
+
updateDataSource: Pt,
|
|
577
|
+
selectItemById: Gt,
|
|
578
|
+
selectItemByIds: Tt,
|
|
579
|
+
getSelectedItems: kt,
|
|
580
|
+
clearSelection: Fe,
|
|
581
|
+
getSelectionRow: xt,
|
|
582
|
+
clickRowItemById: jt,
|
|
583
|
+
unSelectItemByIds: Nt,
|
|
584
|
+
getCurrentRowId: At,
|
|
585
|
+
reassignRowData: Et,
|
|
586
|
+
hasChildren: zt,
|
|
587
|
+
getCollapseField: _t,
|
|
588
|
+
getCollapseStatusById: Wt,
|
|
589
|
+
getVisibleDataByIds: $t,
|
|
590
|
+
selectRowById: Lt,
|
|
591
|
+
updateDerivedData: Ut,
|
|
592
|
+
emptyCurrentRowId: Mt,
|
|
593
|
+
calculateColumnsSize: fe
|
|
594
|
+
});
|
|
595
|
+
const qt = M(() => {
|
|
596
|
+
const o = {};
|
|
597
|
+
return I.shouldShowHorizontalScrollbar.value && (o.paddingBottom = "10px"), I.shouldShowVirticalScrollbar.value && (o.paddingRight = "10px"), o;
|
|
598
|
+
}), Yt = M(() => ({
|
|
599
|
+
...w.value,
|
|
600
|
+
borderRadius: "5px"
|
|
601
|
+
})), {
|
|
602
|
+
renderDataGridPagination: un
|
|
603
|
+
} = Io(e, t, l, I, Q, v), Jt = M(() => ({
|
|
604
|
+
"d-flex": !0,
|
|
605
|
+
"justify-content-between": X.value && A.value,
|
|
606
|
+
"justify-content-end": X.value && !A.value,
|
|
607
|
+
"position-relative": !0
|
|
608
|
+
})), Kt = M(() => ({
|
|
609
|
+
"d-flex": !0,
|
|
610
|
+
"align-items-center": !0
|
|
611
|
+
})), {
|
|
612
|
+
renderDataGridSummary: Qt
|
|
613
|
+
} = Ro(e, l, _);
|
|
614
|
+
return () => j("div", {
|
|
615
|
+
ref: f,
|
|
616
|
+
class: dt.value,
|
|
617
|
+
style: Yt.value,
|
|
618
|
+
onWheel: ge
|
|
619
|
+
}, [i.value && mt.value && pt(), j("div", {
|
|
620
|
+
ref: i,
|
|
621
|
+
class: ct.value,
|
|
622
|
+
onMouseover: () => B.value = !0,
|
|
623
|
+
onMouseleave: () => B.value = !1,
|
|
624
|
+
onTouchstart: (o) => {
|
|
625
|
+
o.stopPropagation(), B.value = !0, I.onTouchstartScrollThumb(o, i);
|
|
626
|
+
},
|
|
627
|
+
onTouchend: (o) => {
|
|
628
|
+
B.value = !1;
|
|
629
|
+
},
|
|
630
|
+
style: qt.value
|
|
631
|
+
}, [i.value && yt(p), i.value && ut(), i.value && Vt.value && Ht(), i.value && Ct(), i.value && vt()]), i.value && Qt(), A.value && j("div", {
|
|
632
|
+
class: Jt.value
|
|
633
|
+
}, [A.value && j("div", {
|
|
634
|
+
class: Kt.value
|
|
635
|
+
}, [j("div", null, ["已选:" + le.value.length, oo(" 条")])])]), ft(), re.value && gt()]);
|
|
636
|
+
}
|
|
637
|
+
}), Uo = "https://json-schema.org/draft/2020-12/schema", qo = "https://farris-design.gitee.io/tree-grid.schema.json", Yo = "tree-grid", Jo = "A Farris Data Grid Component", Ko = "object", Qo = {
|
|
12
638
|
id: {
|
|
13
639
|
description: "The unique identifier for a Input Group",
|
|
14
640
|
type: "string"
|
|
@@ -820,63 +1446,63 @@ const lt = "https://json-schema.org/draft/2020-12/schema", st = "https://farris-
|
|
|
820
1446
|
type: "string",
|
|
821
1447
|
default: ""
|
|
822
1448
|
}
|
|
823
|
-
},
|
|
1449
|
+
}, Xo = [
|
|
824
1450
|
"id",
|
|
825
1451
|
"type",
|
|
826
1452
|
"columns"
|
|
827
|
-
],
|
|
1453
|
+
], Zo = {
|
|
828
1454
|
onSelectionChange: "行切换事件",
|
|
829
1455
|
onClickRow: "行点击事件",
|
|
830
1456
|
onDoubleClickRow: "行双击事件",
|
|
831
1457
|
onFilterChanged: "过滤事件",
|
|
832
1458
|
onClickEditCommand: "操作列编辑事件",
|
|
833
1459
|
onClickDeleteCommand: "操作列删除事件"
|
|
834
|
-
},
|
|
835
|
-
$schema:
|
|
836
|
-
$id:
|
|
837
|
-
title:
|
|
838
|
-
description:
|
|
839
|
-
type:
|
|
840
|
-
properties:
|
|
841
|
-
required:
|
|
842
|
-
events:
|
|
843
|
-
},
|
|
844
|
-
["appearance",
|
|
1460
|
+
}, ot = {
|
|
1461
|
+
$schema: Uo,
|
|
1462
|
+
$id: qo,
|
|
1463
|
+
title: Yo,
|
|
1464
|
+
description: Jo,
|
|
1465
|
+
type: Ko,
|
|
1466
|
+
properties: Qo,
|
|
1467
|
+
required: Xo,
|
|
1468
|
+
events: Zo
|
|
1469
|
+
}, nt = /* @__PURE__ */ new Map([
|
|
1470
|
+
["appearance", Bo],
|
|
845
1471
|
["column", "columnOption"],
|
|
846
1472
|
["command", "commandOption"]
|
|
847
1473
|
]);
|
|
848
|
-
function
|
|
849
|
-
var
|
|
850
|
-
const
|
|
851
|
-
|
|
852
|
-
let
|
|
853
|
-
return
|
|
854
|
-
class:
|
|
855
|
-
},
|
|
1474
|
+
function en(e, t, d) {
|
|
1475
|
+
var m;
|
|
1476
|
+
const a = d.parentComponentInstance, r = a.schema.type, y = String(((m = a.schema.appearance) == null ? void 0 : m.class) || "").split(" "), c = r === "section" || r === "tab-page", s = y.includes("f-page-content-nav"), u = y.includes("f-page-main"), f = e.getSchemaByType("component");
|
|
1477
|
+
f.id = `${t.id}-component`, f.componentType = "data-grid";
|
|
1478
|
+
let i = "";
|
|
1479
|
+
return i += c ? "f-struct-data-grid-in-card f-struct-is-subgrid" : "", i += s ? "f-struct-data-grid-in-nav f-struct-wrapper f-utils-fill-flex-column" : "", i += u ? "f-struct-data-grid f-struct-wrapper" : "", f.appearance = {
|
|
1480
|
+
class: i
|
|
1481
|
+
}, f.contents = [t], f;
|
|
856
1482
|
}
|
|
857
|
-
function
|
|
858
|
-
const
|
|
859
|
-
|
|
860
|
-
let
|
|
861
|
-
return
|
|
1483
|
+
function tn(e, t, d) {
|
|
1484
|
+
const a = d.parentComponentInstance, r = String(a.schema.appearance.class || "").split(" "), y = r.includes("f-page-content-nav"), c = r.includes("f-page-main"), s = e.getSchemaByType("section");
|
|
1485
|
+
s.id = `${t.id}-section`;
|
|
1486
|
+
let u = "";
|
|
1487
|
+
return u += y ? "f-section-in-nav " : "", u += c ? "f-section-in-managelist " : "", u += "f-section-grid", s.appearance = { class: u }, s.contents = [t], s;
|
|
862
1488
|
}
|
|
863
|
-
function
|
|
864
|
-
const
|
|
865
|
-
return
|
|
1489
|
+
function on(e, t, d) {
|
|
1490
|
+
const a = e.getSchemaByType("content-container");
|
|
1491
|
+
return a.id = `${t.id}-layout`, a.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, a.contents = [t], a;
|
|
866
1492
|
}
|
|
867
|
-
function
|
|
868
|
-
const
|
|
869
|
-
|
|
870
|
-
const
|
|
871
|
-
return
|
|
1493
|
+
function it(e, t, d) {
|
|
1494
|
+
const r = d.parentComponentInstance.schema.type, y = r === "section" || r === "tab-page";
|
|
1495
|
+
t.appearance = { class: "f-component-grid" };
|
|
1496
|
+
const s = (y ? on : tn)(e, t, d);
|
|
1497
|
+
return en(e, s, d);
|
|
872
1498
|
}
|
|
873
|
-
const
|
|
874
|
-
class
|
|
875
|
-
constructor(
|
|
876
|
-
super(
|
|
1499
|
+
const nn = et(tt, ot, nt, it), an = Do(), ln = Oo(), at = Zt(Object.assign({}, tt, { componentId: { type: String, default: "" } }), "columnOption", "commandOption"), rn = et(at, ot, nt, it), sn = Fo();
|
|
1500
|
+
class dn extends jo {
|
|
1501
|
+
constructor(t, d) {
|
|
1502
|
+
super(t, d);
|
|
877
1503
|
}
|
|
878
|
-
getPropertyConfig(
|
|
879
|
-
return this.getBasicPropConfig(
|
|
1504
|
+
getPropertyConfig(t) {
|
|
1505
|
+
return this.getBasicPropConfig(t), this.getAppearanceProperties(t), this.propertyConfig.categories.command = To(this).getCommandColumnProperties(t), this.propertyConfig.categories.column = ko().getColumnOptionProperties(t), this.propertyConfig.categories.rowOption = Mo().getRowOptionProperties(t), this.propertyConfig.categories.summary = Vo().getSummaryProperties(t), this.propertyConfig.categories.filter = {
|
|
880
1506
|
title: "过滤",
|
|
881
1507
|
description: "",
|
|
882
1508
|
properties: {
|
|
@@ -892,16 +1518,16 @@ class St extends Ke {
|
|
|
892
1518
|
}
|
|
893
1519
|
}
|
|
894
1520
|
}
|
|
895
|
-
}, this.getEventPropConfig(
|
|
1521
|
+
}, this.getEventPropConfig(t), this.propertyConfig;
|
|
896
1522
|
}
|
|
897
|
-
getBasicPropConfig(
|
|
898
|
-
var
|
|
899
|
-
const
|
|
1523
|
+
getBasicPropConfig(t) {
|
|
1524
|
+
var c, s, u;
|
|
1525
|
+
const d = (u = (s = (c = this.formSchemaUtils.getFormSchema()) == null ? void 0 : c.module) == null ? void 0 : s.entity[0]) == null ? void 0 : u.entities[0], a = this.assembleSchemaEntityToTree(d, 0), r = this, y = super.getBasicPropConfig(t);
|
|
900
1526
|
this.propertyConfig.categories.basic = {
|
|
901
1527
|
description: "Basic Information",
|
|
902
1528
|
title: "基本信息",
|
|
903
1529
|
properties: {
|
|
904
|
-
...
|
|
1530
|
+
...y.properties,
|
|
905
1531
|
dataSource: {
|
|
906
1532
|
description: "绑定数据源",
|
|
907
1533
|
title: "绑定数据源",
|
|
@@ -909,478 +1535,213 @@ class St extends Ke {
|
|
|
909
1535
|
type: "combo-tree",
|
|
910
1536
|
textField: "name",
|
|
911
1537
|
valueField: "label",
|
|
912
|
-
data:
|
|
1538
|
+
data: a,
|
|
913
1539
|
editable: !1
|
|
914
1540
|
},
|
|
915
1541
|
readonly: !0
|
|
916
1542
|
}
|
|
917
1543
|
},
|
|
918
|
-
setPropertyRelates(
|
|
919
|
-
switch (
|
|
1544
|
+
setPropertyRelates(f, i) {
|
|
1545
|
+
switch (f && f.propertyID) {
|
|
920
1546
|
case "dataSource": {
|
|
921
|
-
const
|
|
922
|
-
if (
|
|
923
|
-
const
|
|
924
|
-
|
|
1547
|
+
const m = r.formSchemaUtils.getViewModelById(r.viewModelId);
|
|
1548
|
+
if (m) {
|
|
1549
|
+
const D = a.find((P) => P.label === f.propertyValue);
|
|
1550
|
+
m.bindTo = D.bindTo;
|
|
925
1551
|
}
|
|
926
|
-
|
|
1552
|
+
r.designViewModelUtils.assembleDesignViewModel();
|
|
927
1553
|
break;
|
|
928
1554
|
}
|
|
929
1555
|
}
|
|
930
1556
|
}
|
|
931
1557
|
};
|
|
932
1558
|
}
|
|
933
|
-
getAppearanceProperties(
|
|
934
|
-
this.propertyConfig.categories.appearance =
|
|
1559
|
+
getAppearanceProperties(t) {
|
|
1560
|
+
this.propertyConfig.categories.appearance = Ho().getDataGrid(t, this.viewModelId), this.propertyConfig.categories.rowNumber = xo().getRowNumber(t), this.propertyConfig.categories.pagination = No().getPagination(t, !0);
|
|
935
1561
|
}
|
|
936
|
-
getEventPropConfig(
|
|
937
|
-
const
|
|
1562
|
+
getEventPropConfig(t) {
|
|
1563
|
+
const d = Ao().initEvent(t), a = this, r = a.eventsEditorUtils.formProperties(t, a.viewModelId, d), y = a.createBaseEventProperty(r);
|
|
938
1564
|
this.propertyConfig.categories.eventsEditor = {
|
|
939
1565
|
title: "事件",
|
|
940
1566
|
hideTitle: !0,
|
|
941
|
-
properties:
|
|
1567
|
+
properties: y,
|
|
942
1568
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
943
1569
|
refreshPanelAfterChanged: !0,
|
|
944
1570
|
tabId: "commands",
|
|
945
1571
|
tabName: "交互",
|
|
946
|
-
setPropertyRelates(
|
|
947
|
-
const
|
|
948
|
-
delete
|
|
1572
|
+
setPropertyRelates(c, s) {
|
|
1573
|
+
const u = c.propertyValue;
|
|
1574
|
+
delete t[a.viewModelId], u && (u.setPropertyRelates = this.setPropertyRelates, a.eventsEditorUtils.saveRelatedParameters(t, a.viewModelId, u.events, u)), t.remoteSort = !!t.columnSorted, t.command && (t.command.onClickEditCommand = t.onClickEditCommand, t.command.onClickDeleteCommand = t.onClickDeleteCommand, t.command.onHandleAction = t.onHandleAction);
|
|
949
1575
|
}
|
|
950
1576
|
};
|
|
951
1577
|
}
|
|
952
1578
|
/**
|
|
953
1579
|
* 将schema实体表组装成树
|
|
954
1580
|
*/
|
|
955
|
-
assembleSchemaEntityToTree(
|
|
956
|
-
const
|
|
957
|
-
return
|
|
958
|
-
id:
|
|
959
|
-
name:
|
|
960
|
-
label:
|
|
961
|
-
layer:
|
|
962
|
-
parent:
|
|
963
|
-
bindTo:
|
|
964
|
-
}),
|
|
1581
|
+
assembleSchemaEntityToTree(t, d, a, r = "", y = []) {
|
|
1582
|
+
const c = r ? `${r}/${t.label}` : "/";
|
|
1583
|
+
return y.push({
|
|
1584
|
+
id: t.id,
|
|
1585
|
+
name: t.name,
|
|
1586
|
+
label: t.label,
|
|
1587
|
+
layer: d,
|
|
1588
|
+
parent: a && a.id,
|
|
1589
|
+
bindTo: c.replace("//", "/")
|
|
1590
|
+
}), t.type.entities && t.type.entities.length && t.type.entities.map((s) => this.assembleSchemaEntityToTree(s, d + 1, t, c, y)), y;
|
|
965
1591
|
}
|
|
966
1592
|
}
|
|
967
|
-
function
|
|
968
|
-
const
|
|
969
|
-
function
|
|
970
|
-
return
|
|
1593
|
+
function cn(e, t) {
|
|
1594
|
+
const d = e.schema, a = C(!0), r = C(!0);
|
|
1595
|
+
function y(m) {
|
|
1596
|
+
return m && m.sourceType === "control" ? m.componentCategory === "input" : !1;
|
|
971
1597
|
}
|
|
972
|
-
function
|
|
1598
|
+
function c() {
|
|
973
1599
|
return !1;
|
|
974
1600
|
}
|
|
975
|
-
function
|
|
1601
|
+
function s() {
|
|
976
1602
|
return !1;
|
|
977
1603
|
}
|
|
978
|
-
function
|
|
1604
|
+
function u() {
|
|
979
1605
|
return !0;
|
|
980
1606
|
}
|
|
981
|
-
function
|
|
982
|
-
return new
|
|
1607
|
+
function f(m) {
|
|
1608
|
+
return new dn(m, t).getPropertyConfig(d);
|
|
983
1609
|
}
|
|
984
|
-
function
|
|
985
|
-
var
|
|
986
|
-
if (
|
|
987
|
-
const
|
|
988
|
-
let
|
|
989
|
-
const { formSchemaUtils:
|
|
990
|
-
if (
|
|
991
|
-
const
|
|
992
|
-
(
|
|
1610
|
+
function i() {
|
|
1611
|
+
var m, D, P, p;
|
|
1612
|
+
if (e && t) {
|
|
1613
|
+
const B = (m = e == null ? void 0 : e.componentInstance) == null ? void 0 : m.value.belongedComponentId;
|
|
1614
|
+
let O = "", V = "";
|
|
1615
|
+
const { formSchemaUtils: H } = t;
|
|
1616
|
+
if (B) {
|
|
1617
|
+
const b = H.getRootViewModelId(), W = H.getComponentByViewModelId(b), g = H.selectNode(W, (l) => l.contents && l.contents.find((U) => U.component === B));
|
|
1618
|
+
(g == null ? void 0 : g.type) === ((D = Be["tab-page"]) == null ? void 0 : D.type) && ((P = g == null ? void 0 : g.contents) != null && P.length) && (O = g.title || ""), (g == null ? void 0 : g.type) === ((p = Be.section) == null ? void 0 : p.type) && (g == null ? void 0 : g.showHeader) !== !1 && (O = g.mainTitle || ""), O = O ? `${O} > ` : "", V = O ? g.id : "";
|
|
993
1619
|
}
|
|
994
|
-
const
|
|
995
|
-
|
|
996
|
-
componentTitle:
|
|
997
|
-
parentPathName: `${
|
|
998
|
-
reliedComponentId:
|
|
1620
|
+
const T = Be["tree-grid"].name;
|
|
1621
|
+
t == null || t.formSchemaUtils.getControlBasicInfoMap().set(e.schema.id, {
|
|
1622
|
+
componentTitle: T,
|
|
1623
|
+
parentPathName: `${O}${T}`,
|
|
1624
|
+
reliedComponentId: V
|
|
999
1625
|
});
|
|
1000
1626
|
}
|
|
1001
1627
|
}
|
|
1002
1628
|
return {
|
|
1003
|
-
canAccepts:
|
|
1004
|
-
checkCanDeleteComponent:
|
|
1005
|
-
checkCanMoveComponent:
|
|
1006
|
-
hideNestedPaddingInDesginerView:
|
|
1007
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1008
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1009
|
-
getPropsConfig:
|
|
1010
|
-
setComponentBasicInfoMap:
|
|
1629
|
+
canAccepts: y,
|
|
1630
|
+
checkCanDeleteComponent: c,
|
|
1631
|
+
checkCanMoveComponent: s,
|
|
1632
|
+
hideNestedPaddingInDesginerView: u,
|
|
1633
|
+
triggerBelongedComponentToMoveWhenMoved: a,
|
|
1634
|
+
triggerBelongedComponentToDeleteWhenDeleted: r,
|
|
1635
|
+
getPropsConfig: f,
|
|
1636
|
+
setComponentBasicInfoMap: i
|
|
1011
1637
|
};
|
|
1012
1638
|
}
|
|
1013
|
-
const
|
|
1639
|
+
const Ce = /* @__PURE__ */ ke({
|
|
1014
1640
|
name: "FTreeGridDesign",
|
|
1015
|
-
props:
|
|
1641
|
+
props: at,
|
|
1016
1642
|
emits: [],
|
|
1017
|
-
setup(
|
|
1018
|
-
var
|
|
1019
|
-
const
|
|
1020
|
-
|
|
1021
|
-
const
|
|
1022
|
-
containerStyleObject:
|
|
1023
|
-
} =
|
|
1024
|
-
applyCommands:
|
|
1025
|
-
} =
|
|
1026
|
-
|
|
1027
|
-
const
|
|
1028
|
-
applyColumnSorter:
|
|
1643
|
+
setup(e, t) {
|
|
1644
|
+
var ge, pe;
|
|
1645
|
+
const d = C(), a = 0, r = C(((ge = e.rowOption) == null ? void 0 : ge.height) || 28), y = C(!1), c = C(20), s = C(e.columns), u = xe(e), f = C(), i = C(), m = C([]), D = C(!1), P = C(((pe = e.rowOption) == null ? void 0 : pe.wrapContent) || !1), p = Te("designer-host-service"), B = Te("design-item-context"), O = cn(B, p), V = Go(d, B, O);
|
|
1646
|
+
V.value.designerClass = "f-utils-fill-flex-column";
|
|
1647
|
+
const H = Ne(e, t), T = Ae(e), b = Ee(e, /* @__PURE__ */ new Map(), H, T, u), W = ze(e, b, u, m, t), g = M(() => b.dataView.value.length), {
|
|
1648
|
+
containerStyleObject: l
|
|
1649
|
+
} = We(e), U = _e(e), {
|
|
1650
|
+
applyCommands: v
|
|
1651
|
+
} = U;
|
|
1652
|
+
v(s);
|
|
1653
|
+
const A = Eo(e), {
|
|
1654
|
+
applyColumnSorter: le,
|
|
1029
1655
|
columnContext: F,
|
|
1030
|
-
updateColumnRenderContext:
|
|
1031
|
-
} =
|
|
1032
|
-
getVisualData:
|
|
1033
|
-
} =
|
|
1034
|
-
sidebarWidth:
|
|
1656
|
+
updateColumnRenderContext: re
|
|
1657
|
+
} = A, x = $e(e), Q = Le(e, F), X = Ue(e, t, W, u), w = qe(e, t, u, X, m), Z = Ye(e, b, r), ee = Je(e, w, Z), E = Ke(e, b, w, T, u, Z, ee, r), te = zo(e, s, b, g, a, E), {
|
|
1658
|
+
getVisualData: _
|
|
1659
|
+
} = te, se = Qe(e, W), {
|
|
1660
|
+
sidebarWidth: ye
|
|
1035
1661
|
} = se;
|
|
1036
|
-
|
|
1037
|
-
const
|
|
1038
|
-
onWheel:
|
|
1039
|
-
dataGridWidth:
|
|
1662
|
+
m.value = _(0, g.value + a - 1);
|
|
1663
|
+
const $ = Xe(e, b, m, F, te, g, a, ye, r, y), {
|
|
1664
|
+
onWheel: ve,
|
|
1665
|
+
dataGridWidth: oe,
|
|
1040
1666
|
viewPortHeight: z,
|
|
1041
|
-
viewPortWidth:
|
|
1042
|
-
updateVisibleRowsOnLatestVisibleScope:
|
|
1043
|
-
} =
|
|
1044
|
-
calculateColumnsSize:
|
|
1045
|
-
} =
|
|
1667
|
+
viewPortWidth: N,
|
|
1668
|
+
updateVisibleRowsOnLatestVisibleScope: de
|
|
1669
|
+
} = $, he = Wo(e, F, f, N, Q), {
|
|
1670
|
+
calculateColumnsSize: ne
|
|
1671
|
+
} = he, ce = M(() => ({
|
|
1046
1672
|
"drag-container": !0,
|
|
1047
1673
|
"fv-grid": !0,
|
|
1048
|
-
"fv-grid-bordered":
|
|
1049
|
-
"fv-datagrid-strip":
|
|
1050
|
-
})),
|
|
1674
|
+
"fv-grid-bordered": e.showBorder,
|
|
1675
|
+
"fv-datagrid-strip": e.showStripe
|
|
1676
|
+
})), ie = M(() => ({
|
|
1051
1677
|
"fv-grid-content": !0,
|
|
1052
|
-
"fv-grid-content-hover":
|
|
1053
|
-
"fv-grid-wrap-content":
|
|
1678
|
+
"fv-grid-content-hover": D.value,
|
|
1679
|
+
"fv-grid-wrap-content": P.value
|
|
1054
1680
|
})), {
|
|
1055
|
-
renderGridHeader:
|
|
1056
|
-
} =
|
|
1057
|
-
renderHorizontalScrollbar:
|
|
1058
|
-
} =
|
|
1059
|
-
function
|
|
1060
|
-
var
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1681
|
+
renderGridHeader: be
|
|
1682
|
+
} = Po(B, e, A, $, "tree-grid-column"), {
|
|
1683
|
+
renderHorizontalScrollbar: ue
|
|
1684
|
+
} = Ze(e, f, $);
|
|
1685
|
+
function we() {
|
|
1686
|
+
var q, ae;
|
|
1687
|
+
const k = Math.ceil(f.value.clientHeight / r.value);
|
|
1688
|
+
k > c.value && (c.value = k, de()), z.value = ((q = i.value) == null ? void 0 : q.clientHeight) || 0, oe.value = ((ae = f.value) == null ? void 0 : ae.clientWidth) || 0, ne();
|
|
1063
1689
|
}
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1690
|
+
Me(() => {
|
|
1691
|
+
d.value.componentInstance = V, f.value && (c.value = Math.max(Math.ceil(f.value.clientHeight / r.value), c.value), m.value = _(0, g.value + a - 1), He(f.value, we), ne(), Ve(() => {
|
|
1692
|
+
f.value && (oe.value = f.value.clientWidth), i.value && (N.value = i.value.clientWidth, z.value = i.value.clientHeight);
|
|
1067
1693
|
}));
|
|
1068
1694
|
});
|
|
1069
|
-
function
|
|
1070
|
-
|
|
1695
|
+
function I(k) {
|
|
1696
|
+
k && (s.value = k, v(s), re(s.value), le(b, x), ne());
|
|
1071
1697
|
}
|
|
1072
|
-
return
|
|
1073
|
-
|
|
1074
|
-
}),
|
|
1075
|
-
|
|
1076
|
-
}),
|
|
1077
|
-
ref:
|
|
1078
|
-
class:
|
|
1079
|
-
style:
|
|
1080
|
-
onWheel:
|
|
1081
|
-
dragref: `${
|
|
1082
|
-
}, [
|
|
1083
|
-
ref:
|
|
1084
|
-
class:
|
|
1698
|
+
return me(() => e.columns, (k) => {
|
|
1699
|
+
I(k);
|
|
1700
|
+
}), me(N, () => {
|
|
1701
|
+
f.value && ne();
|
|
1702
|
+
}), t.expose(V.value), () => j("div", {
|
|
1703
|
+
ref: d,
|
|
1704
|
+
class: ce.value,
|
|
1705
|
+
style: l.value,
|
|
1706
|
+
onWheel: ve,
|
|
1707
|
+
dragref: `${B.schema.id}-container`
|
|
1708
|
+
}, [f.value && be(), j("div", {
|
|
1709
|
+
ref: f,
|
|
1710
|
+
class: ie.value,
|
|
1085
1711
|
onMouseover: () => {
|
|
1086
|
-
|
|
1712
|
+
D.value = !0;
|
|
1087
1713
|
},
|
|
1088
1714
|
onMouseleave: () => {
|
|
1089
|
-
|
|
1715
|
+
D.value = !1;
|
|
1090
1716
|
}
|
|
1091
|
-
}, [
|
|
1717
|
+
}, [ue()])]);
|
|
1092
1718
|
}
|
|
1093
|
-
})
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
/** 当前页码 */
|
|
1097
|
-
index: { type: Number, default: 1 },
|
|
1098
|
-
/** 分页交互模式 */
|
|
1099
|
-
mode: { type: String, default: "server" },
|
|
1100
|
-
/** 显示页码输入框 */
|
|
1101
|
-
showGoto: { type: Boolean, default: !1 },
|
|
1102
|
-
/** 显示页码 */
|
|
1103
|
-
showIndex: { type: Boolean, default: !0 },
|
|
1104
|
-
/** 显示每页记录数 */
|
|
1105
|
-
showLimits: { type: Boolean, default: !1 },
|
|
1106
|
-
/** 显示分页汇总信息 */
|
|
1107
|
-
showPageInfo: { type: Boolean, default: !0 },
|
|
1108
|
-
/** 默认每页记录数 */
|
|
1109
|
-
size: { type: Number, default: 20 },
|
|
1110
|
-
/** 可选择的没有记录数据 */
|
|
1111
|
-
sizeLimits: { type: Array, default: [10, 20, 30, 50, 100] },
|
|
1112
|
-
/** 总记录数 */
|
|
1113
|
-
total: { type: Number, default: 0 }
|
|
1114
|
-
}, Vt = {
|
|
1115
|
-
/** 启用排序 */
|
|
1116
|
-
enable: { type: Boolean, default: !1 },
|
|
1117
|
-
/** 排序字段集合 */
|
|
1118
|
-
fields: { type: Array, default: [] },
|
|
1119
|
-
/** 排序交互模式 */
|
|
1120
|
-
mode: { type: String, default: "client" },
|
|
1121
|
-
/** 多列排序 */
|
|
1122
|
-
multiSort: { type: Boolean, default: !1 }
|
|
1123
|
-
}, At = {
|
|
1124
|
-
/** 自定义分组合计内容 */
|
|
1125
|
-
customGroupRow: { type: Function, default: () => {
|
|
1126
|
-
} },
|
|
1127
|
-
/** 自定义分组行样式 */
|
|
1128
|
-
customGroupRowStyle: { type: Function, default: () => {
|
|
1129
|
-
} },
|
|
1130
|
-
/** 自行分组合计行样式 */
|
|
1131
|
-
customSummaryStyle: { type: Function, default: () => {
|
|
1132
|
-
} },
|
|
1133
|
-
/** 启用行数据分组 */
|
|
1134
|
-
enable: { type: Boolean, default: !1 },
|
|
1135
|
-
/** 分组行合并列数 */
|
|
1136
|
-
groupColSpan: { type: Number, default: 1 },
|
|
1137
|
-
/** 行数据分组字段;多字段分组以英文逗号分隔 */
|
|
1138
|
-
groupFields: { type: Array, default: [] },
|
|
1139
|
-
/** 在DataGrid中显示被分组的列 */
|
|
1140
|
-
showGroupedColumn: { type: Boolean, default: !0 },
|
|
1141
|
-
/** 显示分组面板 */
|
|
1142
|
-
showGroupPanel: { type: Boolean, default: !1 },
|
|
1143
|
-
/** 启用合计行 */
|
|
1144
|
-
showSummary: { type: Boolean, default: !1 },
|
|
1145
|
-
/** 显示合计行位置; */
|
|
1146
|
-
summaryPosition: { type: String, default: "separate" }
|
|
1147
|
-
}, Nt = {
|
|
1148
|
-
/** 启用筛选 */
|
|
1149
|
-
enable: { type: Boolean, default: !1 },
|
|
1150
|
-
/** DataGrid筛选风格 */
|
|
1151
|
-
filterStyle: { type: String, default: "filter-column" },
|
|
1152
|
-
/** 筛选交互模式 */
|
|
1153
|
-
mode: { type: String, default: "server" },
|
|
1154
|
-
/** 显示过滤条件工具条 */
|
|
1155
|
-
showSummary: { type: Boolean, default: !0 }
|
|
1156
|
-
}, Et = {
|
|
1157
|
-
/** 允许折行显示列标题 */
|
|
1158
|
-
wrapHeadings: { type: Boolean, default: !1 }
|
|
1159
|
-
}, Ht = {
|
|
1160
|
-
/** 自定义行样式 */
|
|
1161
|
-
customRowStyle: { type: Function, default: () => {
|
|
1162
|
-
} },
|
|
1163
|
-
customCellStyle: { type: Function, default: () => {
|
|
1164
|
-
} },
|
|
1165
|
-
/** 禁止行选中表达式 */
|
|
1166
|
-
disable: { type: Function, default: () => {
|
|
1167
|
-
} },
|
|
1168
|
-
/** 默认行高度为 29px */
|
|
1169
|
-
height: { type: Number, default: 28 },
|
|
1170
|
-
/** 鼠标滑过行效果 */
|
|
1171
|
-
showHovering: { type: Boolean, default: !0 },
|
|
1172
|
-
/** 禁止数据折行 */
|
|
1173
|
-
wrapContent: { type: Boolean, default: !1 }
|
|
1174
|
-
}, zt = {
|
|
1175
|
-
/** 显示合计信息 */
|
|
1176
|
-
enable: { type: Boolean, default: !1 },
|
|
1177
|
-
/** 合计行自定义样式,对启用合计行模板无效 */
|
|
1178
|
-
customSummaryStyle: { type: Function, default: () => {
|
|
1179
|
-
} },
|
|
1180
|
-
/** 分组合计字段 */
|
|
1181
|
-
groupFields: { type: Array, default: [] },
|
|
1182
|
-
/** 合计交互模式 */
|
|
1183
|
-
mode: { type: String, default: "client" },
|
|
1184
|
-
/** 合计行显示位置, top: 顶部 bottom: 底部, both: 顶部与底部同时显示 */
|
|
1185
|
-
position: { type: String, default: "bottom" }
|
|
1186
|
-
}, Wt = {
|
|
1187
|
-
/** 自动列宽。设为true后,所有列将填满表格并不会出现横向滚动条。 */
|
|
1188
|
-
fitColumns: { type: Boolean, default: !1 },
|
|
1189
|
-
/** 自动适配列宽度模式 */
|
|
1190
|
-
fitMode: { type: String, default: "average" },
|
|
1191
|
-
groups: { type: Array, defaut: [] },
|
|
1192
|
-
/** 允许拖动表头改变列显示顺序 */
|
|
1193
|
-
reorderColumn: { type: Boolean, default: !1 },
|
|
1194
|
-
/** 允许拖动改变列宽度 */
|
|
1195
|
-
resizeColumn: { type: Boolean, default: !0 },
|
|
1196
|
-
/** 双击表头列自适应内容宽度 */
|
|
1197
|
-
resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
|
|
1198
|
-
}, $t = {
|
|
1199
|
-
/** 编辑时选中文本 */
|
|
1200
|
-
selectOnEditing: { type: Boolean, default: !1 },
|
|
1201
|
-
/** 编辑模式; row:整行编辑,cell: 单元格编辑 */
|
|
1202
|
-
editMode: { type: String, default: "cell" }
|
|
1203
|
-
}, Ut = {
|
|
1204
|
-
/** show loading */
|
|
1205
|
-
show: { type: Boolean, default: !1 },
|
|
1206
|
-
/** message on display when loading */
|
|
1207
|
-
message: { type: String, default: "加载中" }
|
|
1208
|
-
}, xt = {
|
|
1209
|
-
/** 自定义样式 */
|
|
1210
|
-
customClass: { type: String, default: "" },
|
|
1211
|
-
/** 排序配置 */
|
|
1212
|
-
sort: { type: Object },
|
|
1213
|
-
/** 筛选配置 */
|
|
1214
|
-
filter: { type: Object },
|
|
1215
|
-
/** 自动勾选子节点 */
|
|
1216
|
-
autoCheckChildren: { type: Boolean, default: !1 },
|
|
1217
|
-
/** 列集合 */
|
|
1218
|
-
columns: { type: Array, default: [] },
|
|
1219
|
-
/** 列配置 */
|
|
1220
|
-
columnOption: { type: Object },
|
|
1221
|
-
/** 命令列配置选项 */
|
|
1222
|
-
commandOption: {
|
|
1223
|
-
type: Object,
|
|
1224
|
-
default: {
|
|
1225
|
-
enable: !1,
|
|
1226
|
-
commands: []
|
|
1227
|
-
}
|
|
1228
|
-
},
|
|
1229
|
-
/** 被绑定数据 */
|
|
1230
|
-
data: { type: Array, default: [] },
|
|
1231
|
-
/** 禁用组件 */
|
|
1232
|
-
disabled: { type: Boolean, default: !1 },
|
|
1233
|
-
/** 用于控制节点禁用状态的字段 */
|
|
1234
|
-
disabledField: { type: String, default: "disabled" },
|
|
1235
|
-
/** 用于显示信息的字段 */
|
|
1236
|
-
displayField: { type: String, default: "name" },
|
|
1237
|
-
/** 允许编辑 */
|
|
1238
|
-
editable: { type: Boolean, default: !1 },
|
|
1239
|
-
/** 编辑配置 */
|
|
1240
|
-
editOption: { type: Object, default: { selectOnEditing: !1, editMode: "cell" } },
|
|
1241
|
-
/** 适配父组件尺寸 */
|
|
1242
|
-
fit: { type: Boolean, default: !1 },
|
|
1243
|
-
/** 列标题配置 */
|
|
1244
|
-
header: { type: Object },
|
|
1245
|
-
/** 高度 */
|
|
1246
|
-
height: { type: Number, default: -1 },
|
|
1247
|
-
/** 层级关系配置对象 */
|
|
1248
|
-
hierarchy: {
|
|
1249
|
-
type: Object,
|
|
1250
|
-
default: {
|
|
1251
|
-
cascadeOption: {
|
|
1252
|
-
autoCancelParent: !0,
|
|
1253
|
-
autoCheckChildren: !1,
|
|
1254
|
-
autoCheckParent: !1,
|
|
1255
|
-
selectionRange: "All"
|
|
1256
|
-
},
|
|
1257
|
-
parentIdField: "parent"
|
|
1258
|
-
}
|
|
1259
|
-
},
|
|
1260
|
-
/** DataGrid组件唯一标识 */
|
|
1261
|
-
id: { type: String, default: "" },
|
|
1262
|
-
/** 被绑定数据的标识字段 */
|
|
1263
|
-
idField: { type: String, default: "id", require: !0 },
|
|
1264
|
-
/** async loading data */
|
|
1265
|
-
loadData: { type: Function },
|
|
1266
|
-
// 是否展示 loading
|
|
1267
|
-
loading: {
|
|
1268
|
-
type: Boolean,
|
|
1269
|
-
default: !1
|
|
1270
|
-
},
|
|
1271
|
-
/** 最小高度 */
|
|
1272
|
-
minHeight: { type: Number, default: 300 },
|
|
1273
|
-
/** 最小宽度 */
|
|
1274
|
-
minWidth: { type: Number, default: 400 },
|
|
1275
|
-
/** 新建数据 */
|
|
1276
|
-
newDataItem: {
|
|
1277
|
-
type: Function,
|
|
1278
|
-
default: () => {
|
|
1279
|
-
}
|
|
1280
|
-
},
|
|
1281
|
-
/** 分页配置 */
|
|
1282
|
-
pagination: {
|
|
1283
|
-
type: Object,
|
|
1284
|
-
default: {
|
|
1285
|
-
enable: !1,
|
|
1286
|
-
size: -1
|
|
1287
|
-
}
|
|
1288
|
-
},
|
|
1289
|
-
/** 行号配置 */
|
|
1290
|
-
rowNumber: {
|
|
1291
|
-
type: Object,
|
|
1292
|
-
default: {
|
|
1293
|
-
enable: !0,
|
|
1294
|
-
width: 36,
|
|
1295
|
-
heading: "序号"
|
|
1296
|
-
}
|
|
1297
|
-
},
|
|
1298
|
-
/** 行配置 */
|
|
1299
|
-
rowOption: {
|
|
1300
|
-
type: Object,
|
|
1301
|
-
default: {
|
|
1302
|
-
wrapContent: !1
|
|
1303
|
-
}
|
|
1304
|
-
},
|
|
1305
|
-
/** 选择配置 */
|
|
1306
|
-
selection: {
|
|
1307
|
-
type: Object,
|
|
1308
|
-
default: {
|
|
1309
|
-
enableSelectRow: !0,
|
|
1310
|
-
multiSelect: !1,
|
|
1311
|
-
multiSelectMode: "DependOnCheck",
|
|
1312
|
-
showCheckbox: !1,
|
|
1313
|
-
showSelectAll: !1,
|
|
1314
|
-
showSelection: !1
|
|
1315
|
-
}
|
|
1316
|
-
},
|
|
1317
|
-
/** 已选数据标识 */
|
|
1318
|
-
selectionValues: { type: Array, default: [] },
|
|
1319
|
-
/** 显示边框 */
|
|
1320
|
-
showBorder: { type: Boolean, default: !1 },
|
|
1321
|
-
/** 显示列头 */
|
|
1322
|
-
showHeader: { type: Boolean, default: !0 },
|
|
1323
|
-
/** 显示横向行分割线 */
|
|
1324
|
-
showHorizontalLines: { type: Boolean, default: !0 },
|
|
1325
|
-
/** 显示节点连接线 */
|
|
1326
|
-
showLines: { type: Boolean, default: !1 },
|
|
1327
|
-
/** 显示配置按钮 */
|
|
1328
|
-
showOptions: { type: Boolean, default: !1 },
|
|
1329
|
-
/** 显示滚动条 */
|
|
1330
|
-
showScrollBar: { type: String, default: "auto" },
|
|
1331
|
-
/** 显示设置按钮 */
|
|
1332
|
-
showSetting: { type: Boolean, default: !1 },
|
|
1333
|
-
/** 显示条纹 */
|
|
1334
|
-
showStripe: { type: Boolean, default: !0 },
|
|
1335
|
-
/** 显示树节点图标 */
|
|
1336
|
-
showTreeNodeIcons: { type: Boolean, default: !1 },
|
|
1337
|
-
/** 显示纵向列分割线 */
|
|
1338
|
-
showVerticallLines: { type: Boolean, default: !1 },
|
|
1339
|
-
/** 树节点图标数据 */
|
|
1340
|
-
treeNodeIconsData: { type: [Object, String], default: {} },
|
|
1341
|
-
/** 宽度 */
|
|
1342
|
-
width: { type: Number, default: -1 },
|
|
1343
|
-
/** 启用虚拟渲染 */
|
|
1344
|
-
virtualized: { type: Boolean, default: !1 },
|
|
1345
|
-
/** 空数据模板 */
|
|
1346
|
-
emptyTemplate: { type: Object },
|
|
1347
|
-
/** 合计配置 */
|
|
1348
|
-
summary: {
|
|
1349
|
-
type: Object,
|
|
1350
|
-
default: {
|
|
1351
|
-
// 默认合计行开启后,后面不展示值,所以默认不开启
|
|
1352
|
-
enable: !1,
|
|
1353
|
-
groupFields: ["numericField1", "numericField2"]
|
|
1354
|
-
}
|
|
1355
|
-
},
|
|
1356
|
-
/** 自动高度 **/
|
|
1357
|
-
autoHeight: { type: Boolean, default: !1 }
|
|
1358
|
-
};
|
|
1359
|
-
I.register = (t, e, i, o) => {
|
|
1360
|
-
t["tree-grid"] = we, e["tree-grid"] = bt, o["tree-grid"] = { bindingResolver: ht, selectionItemResolver: Ct, updateColumnsResolver: vt };
|
|
1719
|
+
});
|
|
1720
|
+
Ce.register = (e, t, d, a) => {
|
|
1721
|
+
e["tree-grid"] = Lo, t["tree-grid"] = nn, a["tree-grid"] = { bindingResolver: ln, selectionItemResolver: an, updateColumnsResolver: sn };
|
|
1361
1722
|
};
|
|
1362
|
-
|
|
1363
|
-
|
|
1723
|
+
Ce.registerDesigner = (e, t, d) => {
|
|
1724
|
+
e["tree-grid"] = Ce, t["tree-grid"] = rn;
|
|
1364
1725
|
};
|
|
1365
|
-
const
|
|
1726
|
+
const Mn = eo(Ce);
|
|
1366
1727
|
export {
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1728
|
+
Ce as FTreeGridDesign,
|
|
1729
|
+
ln as bindingResolver,
|
|
1730
|
+
jn as columnOptions,
|
|
1731
|
+
Mn as default,
|
|
1732
|
+
rn as designPropsResolver,
|
|
1733
|
+
Tn as editOptions,
|
|
1734
|
+
On as filterOptions,
|
|
1735
|
+
Dn as groupOptions,
|
|
1736
|
+
Fn as headerOptions,
|
|
1737
|
+
kn as loadingOptions,
|
|
1738
|
+
Rn as paginationOptions,
|
|
1739
|
+
nn as propsResolver,
|
|
1740
|
+
Pn as rowOptions,
|
|
1741
|
+
an as selectionItemResolver,
|
|
1742
|
+
Bn as sortOptions,
|
|
1743
|
+
Gn as summaryOptions,
|
|
1744
|
+
at as treeGridDesignProps,
|
|
1745
|
+
_o as treeGridProps,
|
|
1746
|
+
sn as updateColumnsResolver
|
|
1386
1747
|
};
|