@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,11 +1,11 @@
|
|
|
1
|
-
import { useCommonUtils as
|
|
2
|
-
import { reactive as
|
|
3
|
-
import { useResizeObserver as
|
|
4
|
-
import { CellMode as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { useCommonUtils as Lt, getCustomClass as _t, withInstall as Ut } from "../common/index.esm.js";
|
|
2
|
+
import { reactive as Qe, watch as se, createVNode as i, Fragment as be, isVNode as tt, Comment as Wt, createTextVNode as we, defineComponent as Kt, ref as S, computed as B, onMounted as Yt, nextTick as qt, onUnmounted as $t, provide as Jt } from "vue";
|
|
3
|
+
import { useResizeObserver as Qt } from "@vueuse/core";
|
|
4
|
+
import { CellMode as Xt, useMobile as Zt, useIdentify as en, useGroupData as tn, useFilter as nn, useHierarchy as ln, useLoading as an, useDataView as on, usePagination as un, useSelection as rn, useDataViewContainerStyle as sn, useCommandColumn as dn, useSettingColumn as cn, useColumn as fn, useSort as mn, useGroupColumn as yn, useRow as pn, useEdit as gn, useVisualDataBound as vn, useVisualDataCell as Cn, useVisualDataRow as hn, useVisualGroupRow as Sn, useVisualSummaryRow as wn, useVisualData as bn, useCellContentStyle as Bn, useCellPosition as Fn, useSidebar as On, useVirtualScroll as In, useFitColumn as Vn, useFilterHistory as Gn, useColumnFilter as En, useDragColumn as xn, getColumnHeader as Dn, getPagination as Pn, getSidebar as Tn, getDisableMask as Rn, getSummary as kn, getHorizontalScrollbar as Mn, getVerticalScrollbar as jn, getFilterPanel as Nn, getGroupPanel as An, useNavigation as Hn, getEmpty as zn, COMMAND_COLUMN_DATA_TYPE as Xe, SETTING_COLUMN_DATA_TYPE as Ze } from "../data-view/index.esm.js";
|
|
5
|
+
import et from "../button/index.esm.js";
|
|
6
|
+
import Ln from "../drawer/index.esm.js";
|
|
7
|
+
import _n, { FDynamicFormLabel as Un } from "../dynamic-form/index.esm.js";
|
|
8
|
+
const nl = {
|
|
9
9
|
/** 启用分页 */
|
|
10
10
|
enable: { type: Boolean, default: !1 },
|
|
11
11
|
/** 当前页码 */
|
|
@@ -28,7 +28,7 @@ const Zn = {
|
|
|
28
28
|
total: { type: Number, default: 0 },
|
|
29
29
|
/** 禁用分页 */
|
|
30
30
|
disabled: { type: Boolean, default: !1 }
|
|
31
|
-
},
|
|
31
|
+
}, ll = {
|
|
32
32
|
/** 启用排序 */
|
|
33
33
|
enable: { type: Boolean, default: !1 },
|
|
34
34
|
/** 排序字段集合 */
|
|
@@ -37,7 +37,7 @@ const Zn = {
|
|
|
37
37
|
mode: { type: String, default: "client" },
|
|
38
38
|
/** 多列排序 */
|
|
39
39
|
multiSort: { type: Boolean, default: !1 }
|
|
40
|
-
},
|
|
40
|
+
}, al = {
|
|
41
41
|
/** 自定义分组合计内容 */
|
|
42
42
|
customGroupRow: { type: Function, default: () => {
|
|
43
43
|
} },
|
|
@@ -61,7 +61,7 @@ const Zn = {
|
|
|
61
61
|
showSummary: { type: Boolean, default: !1 },
|
|
62
62
|
/** 显示合计行位置; */
|
|
63
63
|
summaryPosition: { type: String, default: "separate" }
|
|
64
|
-
},
|
|
64
|
+
}, ol = {
|
|
65
65
|
/** 启用筛选 */
|
|
66
66
|
enable: { type: Boolean, default: !1 },
|
|
67
67
|
/** DataGrid筛选风格 */
|
|
@@ -70,10 +70,10 @@ const Zn = {
|
|
|
70
70
|
mode: { type: String, default: "server" },
|
|
71
71
|
/** 显示过滤条件工具条 */
|
|
72
72
|
showSummary: { type: Boolean, default: !0 }
|
|
73
|
-
},
|
|
73
|
+
}, il = {
|
|
74
74
|
/** 允许折行显示列标题 */
|
|
75
75
|
wrapHeadings: { type: Boolean, default: !1 }
|
|
76
|
-
},
|
|
76
|
+
}, ul = {
|
|
77
77
|
/** 显示行号 */
|
|
78
78
|
enable: { type: Boolean, default: !1 },
|
|
79
79
|
/** 行号列表头标题 */
|
|
@@ -82,7 +82,7 @@ const Zn = {
|
|
|
82
82
|
width: { type: Number, default: 36 },
|
|
83
83
|
/** 是否展示省略号 */
|
|
84
84
|
showEllipsis: { type: Boolean, default: !0 }
|
|
85
|
-
},
|
|
85
|
+
}, rl = {
|
|
86
86
|
/** 自定义行样式 */
|
|
87
87
|
customRowStyle: { type: Function, default: () => {
|
|
88
88
|
} },
|
|
@@ -101,7 +101,7 @@ const Zn = {
|
|
|
101
101
|
showHovering: { type: Boolean, default: !0 },
|
|
102
102
|
/** 禁止数据折行 */
|
|
103
103
|
wrapContent: { type: Boolean, default: !1 }
|
|
104
|
-
},
|
|
104
|
+
}, sl = {
|
|
105
105
|
/** 显示合计信息 */
|
|
106
106
|
enable: { type: Boolean, default: !1 },
|
|
107
107
|
/** 合计行自定义样式,对启用合计行模板无效 */
|
|
@@ -113,7 +113,7 @@ const Zn = {
|
|
|
113
113
|
mode: { type: String, default: "client" },
|
|
114
114
|
/** 合计行显示位置, top: 顶部 bottom: 底部, both: 顶部与底部同时显示 */
|
|
115
115
|
position: { type: String, default: "bottom" }
|
|
116
|
-
},
|
|
116
|
+
}, dl = {
|
|
117
117
|
/** 自动列宽。设为true后,所有列将填满表格并不会出现横向滚动条。 */
|
|
118
118
|
fitColumns: { type: Boolean, default: !1 },
|
|
119
119
|
/** 自动适配列宽度模式 */
|
|
@@ -125,7 +125,7 @@ const Zn = {
|
|
|
125
125
|
resizeColumn: { type: Boolean, default: !0 },
|
|
126
126
|
/** 双击表头列自适应内容宽度 */
|
|
127
127
|
resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
|
|
128
|
-
},
|
|
128
|
+
}, cl = {
|
|
129
129
|
/** 启用多选且显示checkbox, 选中行后勾选前面的checkbox */
|
|
130
130
|
checkOnSelect: { type: Boolean, default: !1 },
|
|
131
131
|
/** 当数据源为空时,清空已选记录 */
|
|
@@ -151,17 +151,17 @@ const Zn = {
|
|
|
151
151
|
showSelectAll: { type: Boolean, default: !1 },
|
|
152
152
|
/** 显示已选数据 */
|
|
153
153
|
showSelection: { type: Boolean, default: !1 }
|
|
154
|
-
},
|
|
154
|
+
}, fl = {
|
|
155
155
|
/** 编辑时选中文本 */
|
|
156
156
|
selectOnEditing: { type: Boolean, default: !1 },
|
|
157
157
|
/** 编辑模式; row:整行编辑,cell: 单元格编辑 */
|
|
158
158
|
editMode: { type: String, default: "cell" }
|
|
159
|
-
},
|
|
159
|
+
}, ml = {
|
|
160
160
|
/** show loading */
|
|
161
161
|
show: { type: Boolean, default: !1 },
|
|
162
162
|
/** message on display when loading */
|
|
163
163
|
message: { type: String, default: "加载中..." }
|
|
164
|
-
},
|
|
164
|
+
}, Wn = {
|
|
165
165
|
/** 自定义样式 */
|
|
166
166
|
customClass: { type: String, default: "" },
|
|
167
167
|
/** 允许在最后一个单元回车新增一行 */
|
|
@@ -290,529 +290,554 @@ const Zn = {
|
|
|
290
290
|
width: { type: Number, default: -1 },
|
|
291
291
|
/** 空数据模板 */
|
|
292
292
|
emptyTemplate: { type: Object },
|
|
293
|
-
beforeUpdate: { type: Function }
|
|
293
|
+
beforeUpdate: { type: Function },
|
|
294
|
+
/** 绑定动态字段的解析器 */
|
|
295
|
+
fieldsResolver: { type: Function, default: (n, p) => n },
|
|
296
|
+
/** 绑定动态字段的值*/
|
|
297
|
+
displayType: { type: String, default: "List" },
|
|
298
|
+
fieldsCallback: { type: Function, default: () => {
|
|
299
|
+
} }
|
|
294
300
|
};
|
|
295
|
-
function
|
|
301
|
+
function Kn(n, p, Be, H, G, de, D, w, h, ce, c, P, fe, Q, d, T) {
|
|
296
302
|
const {
|
|
297
|
-
isNull:
|
|
298
|
-
isUndefined:
|
|
299
|
-
} =
|
|
300
|
-
totalItems:
|
|
301
|
-
rawView:
|
|
302
|
-
} =
|
|
303
|
-
calculateCellPositionInRow:
|
|
304
|
-
cellKey:
|
|
305
|
-
cellPosition:
|
|
306
|
-
rowKey:
|
|
307
|
-
rowPosition:
|
|
308
|
-
rowSpanCellPosition:
|
|
309
|
-
groupCellPosition:
|
|
310
|
-
summaryCellPosition:
|
|
311
|
-
} =
|
|
312
|
-
cellContentClass:
|
|
313
|
-
cellContentPosition:
|
|
314
|
-
cellContentClassWithEllipsis:
|
|
303
|
+
isNull: Fe,
|
|
304
|
+
isUndefined: X
|
|
305
|
+
} = Lt(), {
|
|
306
|
+
totalItems: z,
|
|
307
|
+
rawView: me
|
|
308
|
+
} = T, {
|
|
309
|
+
calculateCellPositionInRow: ye,
|
|
310
|
+
cellKey: R,
|
|
311
|
+
cellPosition: u,
|
|
312
|
+
rowKey: k,
|
|
313
|
+
rowPosition: E,
|
|
314
|
+
rowSpanCellPosition: y,
|
|
315
|
+
groupCellPosition: Oe,
|
|
316
|
+
summaryCellPosition: L
|
|
317
|
+
} = D, {
|
|
318
|
+
cellContentClass: pe,
|
|
319
|
+
cellContentPosition: Ie,
|
|
320
|
+
cellContentClassWithEllipsis: _
|
|
321
|
+
} = de, {
|
|
322
|
+
collpaseGroupIconClass: U
|
|
323
|
+
} = ce, {
|
|
324
|
+
gridCellClass: Ve,
|
|
325
|
+
gridRowClass: Z,
|
|
326
|
+
onClickRow: W,
|
|
327
|
+
onMouseoverRow: K,
|
|
328
|
+
onMouseoutRow: Le
|
|
315
329
|
} = P, {
|
|
316
|
-
|
|
317
|
-
} = r, {
|
|
318
|
-
gridCellClass: De,
|
|
319
|
-
gridRowClass: z,
|
|
320
|
-
onClickRow: L,
|
|
321
|
-
onMouseoverRow: fe,
|
|
322
|
-
onMouseoutRow: O
|
|
323
|
-
} = se, {
|
|
324
|
-
onClickCell: U
|
|
325
|
-
} = ue, {
|
|
326
|
-
toggleGroupRow: me
|
|
327
|
-
} = Y, {
|
|
328
|
-
columnContext: S,
|
|
329
|
-
hasLeftFixedColumn: Ve,
|
|
330
|
-
hasRightFixedColumn: $
|
|
330
|
+
onClickCell: F
|
|
331
331
|
} = h, {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
332
|
+
toggleGroupRow: Y
|
|
333
|
+
} = fe, {
|
|
334
|
+
columnContext: O,
|
|
335
|
+
hasLeftFixedColumn: M,
|
|
336
|
+
hasRightFixedColumn: Ge
|
|
337
|
+
} = w, {
|
|
338
|
+
navigateOnKeyUp: ee,
|
|
339
|
+
navigateOnKeyDown: j
|
|
340
|
+
} = c, g = (e) => (e || []).some((o) => tt(o) ? !(o.type === Wt || o.type === be && !g(o.children)) : !0) ? e : null, te = (e) => {
|
|
341
|
+
var o, r, l;
|
|
342
|
+
return ((r = (o = e.column) == null ? void 0 : o.editor) == null ? void 0 : r.type) === "switch" || ((l = e.column) == null ? void 0 : l.dataType) === "boolean" ? {
|
|
337
343
|
display: "flex",
|
|
338
344
|
flexGrow: "1",
|
|
339
345
|
overflow: "hidden"
|
|
340
346
|
} : {
|
|
341
347
|
flexGrow: "1"
|
|
342
348
|
};
|
|
343
|
-
},
|
|
349
|
+
}, I = Qe({
|
|
344
350
|
"fv-grid-content-left-fixed": !0
|
|
345
|
-
}),
|
|
351
|
+
}), N = Qe({
|
|
346
352
|
"fv-grid-content-right-fixed": !0
|
|
347
353
|
});
|
|
348
|
-
|
|
349
|
-
!e[0] && !e[1].length ? (
|
|
354
|
+
se([z, me], (e) => {
|
|
355
|
+
!e[0] && !e[1].length ? (I["fv-grid-content-left-fixed"] = !1, N["fv-grid-content-right-fixed"] = !1) : (I["fv-grid-content-left-fixed"] = !0, N["fv-grid-content-right-fixed"] = !0);
|
|
350
356
|
});
|
|
351
357
|
const {
|
|
352
|
-
gridDataStyle:
|
|
353
|
-
gridMergedDataStyle:
|
|
354
|
-
leftFixedGridDataStyle:
|
|
355
|
-
leftFixedGridMergedDataStyle:
|
|
356
|
-
rightFixedGridDataStyle:
|
|
357
|
-
rightFixedGridMergedDataStyle:
|
|
358
|
-
} =
|
|
359
|
-
function
|
|
360
|
-
o.collapse = !o.collapse,
|
|
358
|
+
gridDataStyle: Ee,
|
|
359
|
+
gridMergedDataStyle: xe,
|
|
360
|
+
leftFixedGridDataStyle: ne,
|
|
361
|
+
leftFixedGridMergedDataStyle: ge,
|
|
362
|
+
rightFixedGridDataStyle: De,
|
|
363
|
+
rightFixedGridMergedDataStyle: Pe
|
|
364
|
+
} = Q;
|
|
365
|
+
function le(e, o) {
|
|
366
|
+
o.collapse = !o.collapse, d.value = Y(o.collapse ? "collapse" : "expand", o, d.value);
|
|
361
367
|
}
|
|
362
368
|
function Te(e, o) {
|
|
363
|
-
const
|
|
369
|
+
const r = [];
|
|
364
370
|
if (e.groupField && o[e.groupField]) {
|
|
365
371
|
for (let f = 0; f <= e.layer; f++)
|
|
366
|
-
|
|
372
|
+
r.push(i("div", {
|
|
367
373
|
class: "fv-grid-group-row-icon",
|
|
368
|
-
onClick: (
|
|
374
|
+
onClick: (J) => le(J, e)
|
|
369
375
|
}, [i("span", {
|
|
370
|
-
class:
|
|
376
|
+
class: U(e)
|
|
371
377
|
}, null)]));
|
|
372
378
|
const l = e.data[e.groupField];
|
|
373
|
-
|
|
379
|
+
r.push(i("div", {
|
|
374
380
|
ref: l.setRef,
|
|
375
|
-
key:
|
|
381
|
+
key: R(e, e.layer + 1),
|
|
376
382
|
class: "fv-grid-cell",
|
|
377
|
-
style:
|
|
383
|
+
style: Oe(l, o, e.layer)
|
|
378
384
|
}, [l.data])), Object.values(e.data).filter((f) => f.field !== e.groupField && f.colSpan !== 0).forEach((f) => {
|
|
379
|
-
|
|
385
|
+
r.push(i("div", {
|
|
380
386
|
ref: f.setRef,
|
|
381
|
-
key:
|
|
387
|
+
key: R(e, f.index),
|
|
382
388
|
class: "fv-grid-cell",
|
|
383
|
-
style:
|
|
389
|
+
style: u(e, f, o)
|
|
384
390
|
}, [f.data]));
|
|
385
391
|
});
|
|
386
392
|
}
|
|
387
|
-
return
|
|
393
|
+
return r;
|
|
388
394
|
}
|
|
389
|
-
function
|
|
395
|
+
function Re(e, o, r) {
|
|
390
396
|
return e.layer > -1 && i("div", {
|
|
391
397
|
ref: e.setRef,
|
|
392
|
-
key:
|
|
393
|
-
class:
|
|
394
|
-
style:
|
|
395
|
-
onClick: (l) =>
|
|
396
|
-
onMouseover: (l) =>
|
|
398
|
+
key: k(e),
|
|
399
|
+
class: Z(e, r),
|
|
400
|
+
style: E(e),
|
|
401
|
+
onClick: (l) => W(l, e),
|
|
402
|
+
onMouseover: (l) => K(l, e)
|
|
397
403
|
}, [Te(e, o)]);
|
|
398
404
|
}
|
|
399
|
-
function
|
|
400
|
-
const
|
|
405
|
+
function m(e, o) {
|
|
406
|
+
const r = [];
|
|
401
407
|
if (e.groupField && o[e.groupField]) {
|
|
402
408
|
const l = e.data[e.groupField];
|
|
403
|
-
|
|
409
|
+
r.push(i("div", {
|
|
404
410
|
ref: l.setRef,
|
|
405
|
-
key:
|
|
411
|
+
key: R(e, e.layer + 1),
|
|
406
412
|
class: "fv-grid-cell",
|
|
407
|
-
style:
|
|
413
|
+
style: L(l, o, e.layer)
|
|
408
414
|
}, [l.data]));
|
|
409
415
|
}
|
|
410
|
-
return
|
|
416
|
+
return r;
|
|
411
417
|
}
|
|
412
|
-
function
|
|
418
|
+
function ke(e, o, r) {
|
|
413
419
|
return e.layer > -1 && i("div", {
|
|
414
420
|
ref: e.setRef,
|
|
415
|
-
key:
|
|
416
|
-
class:
|
|
417
|
-
style:
|
|
418
|
-
onClick: (l) =>
|
|
419
|
-
onMouseover: (l) =>
|
|
420
|
-
}, [
|
|
421
|
+
key: k(e),
|
|
422
|
+
class: Z(e, r),
|
|
423
|
+
style: E(e),
|
|
424
|
+
onClick: (l) => W(l, e),
|
|
425
|
+
onMouseover: (l) => K(l, e)
|
|
426
|
+
}, [m(e, o)]);
|
|
421
427
|
}
|
|
422
|
-
function
|
|
423
|
-
var
|
|
424
|
-
return e.showTips && typeof ((
|
|
425
|
-
class:
|
|
428
|
+
function ve(e, o) {
|
|
429
|
+
var r, l, f;
|
|
430
|
+
return e.showTips && typeof ((r = e.column) == null ? void 0 : r.formatter) != "function" && ((l = e.column) == null ? void 0 : l.dataType) !== "commands" && ((f = e.column) == null ? void 0 : f.dataType) !== "setting" ? i("div", {
|
|
431
|
+
class: _(e),
|
|
426
432
|
title: e.formatter(e, o)
|
|
427
433
|
}, [e.formatter(e, o)]) : i("div", {
|
|
428
|
-
class:
|
|
434
|
+
class: _(e)
|
|
429
435
|
}, [e.formatter(e, o)]);
|
|
430
436
|
}
|
|
431
|
-
function
|
|
432
|
-
return i("div", null, [
|
|
437
|
+
function Ce() {
|
|
438
|
+
return i("div", null, [we("******")]);
|
|
433
439
|
}
|
|
434
|
-
function
|
|
440
|
+
function q(e) {
|
|
435
441
|
var l, f;
|
|
436
|
-
const o = !
|
|
437
|
-
return ((f = (l = e.column) == null ? void 0 : l.editor) == null ? void 0 : f.showType) === "password" ?
|
|
438
|
-
class:
|
|
442
|
+
const o = !Fe(e.data) && !X(e.data) ? e.data.toString() : e.data;
|
|
443
|
+
return ((f = (l = e.column) == null ? void 0 : l.editor) == null ? void 0 : f.showType) === "password" ? Ce() : e.showTips ? i("div", {
|
|
444
|
+
class: _(e),
|
|
439
445
|
title: o
|
|
440
446
|
}, [o]) : i("div", {
|
|
441
|
-
class:
|
|
447
|
+
class: _(e)
|
|
442
448
|
}, [o]);
|
|
443
449
|
}
|
|
444
|
-
function
|
|
445
|
-
return e.mode ===
|
|
446
|
-
style:
|
|
447
|
-
}, [e.getEditor(e)]) : e.column.columnTemplate ? e.column.columnTemplate(e, o) : e.formatter ?
|
|
450
|
+
function x(e, o) {
|
|
451
|
+
return e.mode === Xt.editing ? i("div", {
|
|
452
|
+
style: te(e)
|
|
453
|
+
}, [e.getEditor(e)]) : e.column.columnTemplate ? e.column.columnTemplate(e, o) : e.formatter ? ve(e, o) : q(e);
|
|
454
|
+
}
|
|
455
|
+
function Me(e) {
|
|
456
|
+
return i(be, null, null);
|
|
448
457
|
}
|
|
449
|
-
function
|
|
458
|
+
function ae(e, o, r) {
|
|
450
459
|
return i("div", {
|
|
451
460
|
ref: e.setRef,
|
|
452
|
-
key:
|
|
453
|
-
class:
|
|
454
|
-
style:
|
|
455
|
-
onClick: (l) =>
|
|
456
|
-
onMouseover: (l) =>
|
|
457
|
-
onMouseout: (l) =>
|
|
458
|
-
}, [Object.values(e.data).filter((l) => o[l.field] && l.rowSpan === 1).map((l) => {
|
|
459
|
-
var
|
|
460
|
-
const f = p.slots.cellTemplate &&
|
|
461
|
+
key: k(e),
|
|
462
|
+
class: Z(e, r),
|
|
463
|
+
style: E(e),
|
|
464
|
+
onClick: (l) => W(l, e),
|
|
465
|
+
onMouseover: (l) => K(l, e),
|
|
466
|
+
onMouseout: (l) => Le(l, e)
|
|
467
|
+
}, [n.displayType === "Card" ? Me() : Object.values(e.data).filter((l) => o[l.field] && l.rowSpan === 1).map((l) => {
|
|
468
|
+
var J, Se;
|
|
469
|
+
const f = p.slots.cellTemplate && g(p.slots.cellTemplate({
|
|
461
470
|
cell: l,
|
|
462
471
|
row: e
|
|
463
472
|
}));
|
|
464
473
|
return i("div", {
|
|
465
474
|
ref: l.setRef,
|
|
466
|
-
key:
|
|
467
|
-
class:
|
|
468
|
-
style:
|
|
469
|
-
onClick: (
|
|
470
|
-
|
|
475
|
+
key: R(e, l.index),
|
|
476
|
+
class: Ve(l, e),
|
|
477
|
+
style: u(e, l, o),
|
|
478
|
+
onClick: (ue) => {
|
|
479
|
+
F(ue, l, e, l.column);
|
|
480
|
+
},
|
|
481
|
+
onKeydown: (ue) => ee(ue, l)
|
|
471
482
|
}, [i("div", {
|
|
472
|
-
class:
|
|
473
|
-
style:
|
|
474
|
-
}, [f ? (
|
|
483
|
+
class: pe(l),
|
|
484
|
+
style: Ie(l)
|
|
485
|
+
}, [f ? (Se = (J = p.slots).cellTemplate) == null ? void 0 : Se.call(J, {
|
|
475
486
|
cell: l,
|
|
476
487
|
row: e
|
|
477
|
-
}) :
|
|
488
|
+
}) : x(l, e)])]);
|
|
478
489
|
})]);
|
|
479
490
|
}
|
|
480
|
-
const
|
|
481
|
-
function
|
|
482
|
-
const
|
|
483
|
-
return
|
|
491
|
+
const oe = [ae, Re, ke];
|
|
492
|
+
function $(e, o) {
|
|
493
|
+
const r = ye(e);
|
|
494
|
+
return d.value.map((l, f) => oe[l.type](l, r, f));
|
|
484
495
|
}
|
|
485
|
-
function
|
|
486
|
-
const o =
|
|
487
|
-
return
|
|
488
|
-
key:
|
|
496
|
+
function ie(e) {
|
|
497
|
+
const o = ye(e);
|
|
498
|
+
return d.value.map((r) => Object.values(r.data).filter((l) => o[l.field] && l.rowSpan > 1).map((l) => i("div", {
|
|
499
|
+
key: R(r, l.index),
|
|
489
500
|
class: "fv-grid-cell fv-grid-merged-cell",
|
|
490
|
-
style:
|
|
501
|
+
style: y(r, l, o)
|
|
491
502
|
}, [l.data])));
|
|
492
503
|
}
|
|
493
|
-
function
|
|
504
|
+
function he() {
|
|
494
505
|
return i("div", {
|
|
495
|
-
ref:
|
|
496
|
-
class:
|
|
506
|
+
ref: H,
|
|
507
|
+
class: I
|
|
497
508
|
}, [i("div", {
|
|
498
509
|
class: "fv-grid-data",
|
|
499
|
-
style:
|
|
500
|
-
}, [
|
|
510
|
+
style: ne.value
|
|
511
|
+
}, [$(O.value.leftColumns.filter((e) => e.visible))]), i("div", {
|
|
501
512
|
class: "fv-grid-merge-date",
|
|
502
|
-
style:
|
|
503
|
-
}, [
|
|
513
|
+
style: ge.value
|
|
514
|
+
}, [ie(O.value.leftColumns.filter((e) => e.visible))])]);
|
|
504
515
|
}
|
|
505
|
-
function
|
|
516
|
+
function je() {
|
|
506
517
|
return i("div", {
|
|
507
|
-
ref:
|
|
518
|
+
ref: Be,
|
|
508
519
|
class: "fv-grid-content-primary"
|
|
509
520
|
}, [i("div", {
|
|
510
521
|
class: "fv-grid-data",
|
|
511
|
-
style:
|
|
512
|
-
}, [
|
|
522
|
+
style: Ee.value
|
|
523
|
+
}, [$(O.value.primaryColumns.filter((e) => e.visible))]), i("div", {
|
|
513
524
|
class: "fv-grid-merge-date",
|
|
514
|
-
style:
|
|
515
|
-
}, [
|
|
525
|
+
style: xe.value
|
|
526
|
+
}, [ie(O.value.primaryColumns.filter((e) => e.visible))])]);
|
|
516
527
|
}
|
|
517
|
-
function
|
|
528
|
+
function Ne() {
|
|
518
529
|
return i("div", {
|
|
519
|
-
ref:
|
|
520
|
-
class:
|
|
530
|
+
ref: G,
|
|
531
|
+
class: N
|
|
521
532
|
}, [i("div", {
|
|
522
533
|
class: "fv-grid-data",
|
|
523
|
-
style:
|
|
524
|
-
}, [
|
|
534
|
+
style: De.value
|
|
535
|
+
}, [$(O.value.rightColumns.filter((e) => e.visible))]), i("div", {
|
|
525
536
|
class: "fv-grid-merge-date",
|
|
526
|
-
style:
|
|
527
|
-
}, [
|
|
537
|
+
style: Pe.value
|
|
538
|
+
}, [ie(O.value.rightColumns.filter((e) => e.visible))])]);
|
|
528
539
|
}
|
|
529
|
-
function
|
|
540
|
+
function Ae() {
|
|
530
541
|
const e = [];
|
|
531
|
-
return
|
|
542
|
+
return M.value && e.push(he()), e.push(je()), Ge.value && e.push(Ne()), e;
|
|
532
543
|
}
|
|
533
544
|
return {
|
|
534
|
-
renderDataArea:
|
|
545
|
+
renderDataArea: Ae
|
|
535
546
|
};
|
|
536
547
|
}
|
|
537
|
-
function
|
|
538
|
-
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !
|
|
548
|
+
function Yn(n) {
|
|
549
|
+
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !tt(n);
|
|
539
550
|
}
|
|
540
|
-
const
|
|
551
|
+
const qn = /* @__PURE__ */ Kt({
|
|
541
552
|
name: "FDataGrid",
|
|
542
|
-
props:
|
|
543
|
-
emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate", "endEditRow"],
|
|
553
|
+
props: Wn,
|
|
554
|
+
emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate", "endEditRow", "fieldsEvent"],
|
|
544
555
|
setup(n, p) {
|
|
545
|
-
var
|
|
556
|
+
var Ke, Ye;
|
|
546
557
|
const {
|
|
547
|
-
isMobilePhone:
|
|
548
|
-
} =
|
|
549
|
-
|
|
550
|
-
const
|
|
551
|
-
showLoading:
|
|
552
|
-
renderLoading:
|
|
553
|
-
} =
|
|
554
|
-
shouldRenderPagination:
|
|
555
|
-
} =
|
|
556
|
-
showSelectAll:
|
|
557
|
-
showSelection:
|
|
558
|
-
selectedValues:
|
|
559
|
-
updateSelectAllStatus:
|
|
560
|
-
} = y,
|
|
561
|
-
|
|
558
|
+
isMobilePhone: Be
|
|
559
|
+
} = Zt();
|
|
560
|
+
S();
|
|
561
|
+
const H = 0, G = S(((Ke = n.rowOption) == null ? void 0 : Ke.height) || 28), de = B(() => n.displayType === "Card"), D = S(20), w = S(n.columns), h = en(n), ce = S(), c = S(), P = S(), fe = S(), Q = S(), d = S([]), T = S(!1), Fe = S(((Ye = n.rowOption) == null ? void 0 : Ye.wrapContent) || !1), X = tn(n, h), z = nn(n, p), me = ln(n), {
|
|
562
|
+
showLoading: ye,
|
|
563
|
+
renderLoading: R
|
|
564
|
+
} = an(n, ce), u = on(n, /* @__PURE__ */ new Map(), z, me, h), k = un(n, u), {
|
|
565
|
+
shouldRenderPagination: E
|
|
566
|
+
} = k, y = rn(n, u, h, d, p), {
|
|
567
|
+
showSelectAll: Oe,
|
|
568
|
+
showSelection: L,
|
|
569
|
+
selectedValues: pe,
|
|
570
|
+
updateSelectAllStatus: Ie
|
|
571
|
+
} = y, _ = B(() => n.disabled), U = B(() => n.virtualized ? Math.min(u.dataView.value.length, D.value) : u.dataView.value.length);
|
|
572
|
+
B(() => n.loadingConfig.message);
|
|
562
573
|
const {
|
|
563
|
-
containerStyleObject:
|
|
564
|
-
} =
|
|
565
|
-
applyCommands:
|
|
566
|
-
} =
|
|
567
|
-
|
|
574
|
+
containerStyleObject: Ve
|
|
575
|
+
} = sn(n), Z = dn(n), {
|
|
576
|
+
applyCommands: W
|
|
577
|
+
} = Z;
|
|
578
|
+
W(w);
|
|
568
579
|
const {
|
|
569
|
-
applyColumnSetting:
|
|
570
|
-
removeColumnSetting:
|
|
571
|
-
} =
|
|
572
|
-
n.showSetting &&
|
|
573
|
-
const
|
|
574
|
-
applyColumnSorter:
|
|
575
|
-
columnContext:
|
|
576
|
-
updateColumnRenderContext:
|
|
577
|
-
} =
|
|
578
|
-
|
|
579
|
-
const
|
|
580
|
-
getVisualData:
|
|
581
|
-
} =
|
|
582
|
-
sidebarWidth:
|
|
583
|
-
showSidebarCheckBox:
|
|
584
|
-
} =
|
|
580
|
+
applyColumnSetting: K,
|
|
581
|
+
removeColumnSetting: Le
|
|
582
|
+
} = cn(n);
|
|
583
|
+
n.showSetting && K(w);
|
|
584
|
+
const F = fn(n, p), Y = mn(n), {
|
|
585
|
+
applyColumnSorter: O,
|
|
586
|
+
columnContext: M,
|
|
587
|
+
updateColumnRenderContext: Ge
|
|
588
|
+
} = F;
|
|
589
|
+
O(u, Y);
|
|
590
|
+
const ee = yn(n, M), j = pn(n, p, y, h), g = gn(n, p, h, j, d), te = vn(n, u, G), I = Cn(n, g, te), N = hn(n, u, g, me, h, te, I, G), Ee = Sn(n, h, I, N), xe = wn(n, h, I, N), ne = bn(n, w, u, U, H, N, Ee, xe), {
|
|
591
|
+
getVisualData: ge
|
|
592
|
+
} = ne, De = Bn(M), Pe = Fn(n, M, G, de), le = On(n, y), {
|
|
593
|
+
sidebarWidth: Te,
|
|
594
|
+
showSidebarCheckBox: Re
|
|
595
|
+
} = le, m = In(n, u, d, M, ne, U, H, Te, G, de, g), {
|
|
585
596
|
onWheel: ke,
|
|
586
|
-
dataGridWidth:
|
|
587
|
-
viewPortHeight:
|
|
588
|
-
viewPortWidth:
|
|
589
|
-
resetScroll:
|
|
590
|
-
updateVisibleRowsOnLatestVisibleScope:
|
|
591
|
-
} = m,
|
|
592
|
-
calculateColumnsSize:
|
|
593
|
-
} =
|
|
597
|
+
dataGridWidth: ve,
|
|
598
|
+
viewPortHeight: Ce,
|
|
599
|
+
viewPortWidth: q,
|
|
600
|
+
resetScroll: x,
|
|
601
|
+
updateVisibleRowsOnLatestVisibleScope: Me
|
|
602
|
+
} = m, ae = Vn(n, M, c, q, ee), {
|
|
603
|
+
calculateColumnsSize: oe
|
|
604
|
+
} = ae, $ = Gn(), ie = En(c, Q, u, $, m), he = xn(n, p, F, u, ee, X, m), je = B(() => {
|
|
594
605
|
const t = {
|
|
595
606
|
"fv-grid": !0,
|
|
596
607
|
"fv-grid-bordered": n.showBorder,
|
|
597
608
|
"fv-grid-horizontal-bordered": n.showHorizontalLines,
|
|
598
609
|
"fv-datagrid-strip": n.showStripe
|
|
599
610
|
};
|
|
600
|
-
return
|
|
601
|
-
}),
|
|
611
|
+
return _t(t, n.customClass);
|
|
612
|
+
}), Ne = B(() => ({
|
|
602
613
|
"fv-grid-content": !0,
|
|
603
|
-
"fv-grid-content-hover":
|
|
604
|
-
"fv-grid-wrap-content":
|
|
605
|
-
})),
|
|
614
|
+
"fv-grid-content-hover": T.value,
|
|
615
|
+
"fv-grid-wrap-content": Fe.value
|
|
616
|
+
})), Ae = B(() => {
|
|
606
617
|
const t = {};
|
|
607
618
|
return m.shouldShowHorizontalScrollbar.value && (t.paddingBottom = "10px"), m.shouldShowVirticalScrollbar.value && (t.paddingRight = "10px"), t;
|
|
608
619
|
}), {
|
|
609
620
|
renderGridHeader: e,
|
|
610
621
|
renderGridColumnResizeOverlay: o,
|
|
611
|
-
shouldShowHeader:
|
|
612
|
-
} =
|
|
622
|
+
shouldShowHeader: r
|
|
623
|
+
} = Dn(n, p, c, fe, Q, F, u, he, ie, z, $, ae, ee, y, le, Y, m, q, d), {
|
|
613
624
|
renderDataGridPagination: l
|
|
614
|
-
} =
|
|
625
|
+
} = Pn(n, p, u, m, k, y), {
|
|
615
626
|
renderDataGridSidebar: f
|
|
616
|
-
} =
|
|
617
|
-
renderDisableMask:
|
|
618
|
-
} =
|
|
619
|
-
renderDataGridSummary:
|
|
620
|
-
} =
|
|
621
|
-
renderHorizontalScrollbar:
|
|
622
|
-
} =
|
|
623
|
-
renderVerticalScrollbar:
|
|
624
|
-
} =
|
|
625
|
-
renderFilterPanel:
|
|
626
|
-
} =
|
|
627
|
-
renderGroupPanel:
|
|
628
|
-
} =
|
|
629
|
-
function at() {
|
|
630
|
-
var a, d;
|
|
631
|
-
const t = Math.ceil(r.value.clientHeight / ie);
|
|
632
|
-
t > P.value && (P.value = t, Re()), ge.value = ((a = T.value) == null ? void 0 : a.clientHeight) || 0, pe.value = ((d = r.value) == null ? void 0 : d.clientWidth) || 0, te();
|
|
633
|
-
}
|
|
634
|
-
Wt(() => {
|
|
635
|
-
r.value && (P.value = Math.max(Math.ceil(r.value.clientHeight / ie), P.value), c.value = ye(0, D.value + j - 1), qt(r.value, at), te(), _t(() => {
|
|
636
|
-
r.value && (pe.value = r.value.clientWidth), T.value && (W.value = T.value.clientWidth, ge.value = T.value.clientHeight);
|
|
637
|
-
})), be.value && de();
|
|
638
|
-
}), Kt(() => {
|
|
639
|
-
}), oe(W, () => {
|
|
640
|
-
});
|
|
627
|
+
} = Tn(n, j, y, le, m), {
|
|
628
|
+
renderDisableMask: J
|
|
629
|
+
} = Rn(), {
|
|
630
|
+
renderDataGridSummary: Se
|
|
631
|
+
} = kn(n, u, F), {
|
|
632
|
+
renderHorizontalScrollbar: ue
|
|
633
|
+
} = Mn(n, c, m), {
|
|
634
|
+
renderVerticalScrollbar: nt
|
|
635
|
+
} = jn(n, c, m), {
|
|
636
|
+
renderFilterPanel: lt
|
|
637
|
+
} = Nn(n, F, u, z, m), {
|
|
638
|
+
renderGroupPanel: at
|
|
639
|
+
} = An(n, u, he, X, m);
|
|
641
640
|
function ot() {
|
|
642
|
-
|
|
643
|
-
|
|
641
|
+
var a, s;
|
|
642
|
+
const t = Math.ceil(c.value.clientHeight / G.value);
|
|
643
|
+
t > D.value && (D.value = t, Me()), Ce.value = ((a = P.value) == null ? void 0 : a.clientHeight) || 0, ve.value = ((s = c.value) == null ? void 0 : s.clientWidth) || 0, oe();
|
|
644
|
+
}
|
|
645
|
+
Yt(() => {
|
|
646
|
+
c.value && (D.value = Math.max(Math.ceil(c.value.clientHeight / G.value), D.value), d.value = ge(0, U.value + H - 1), Qt(c.value, ot), oe(), qt(() => {
|
|
647
|
+
var t;
|
|
648
|
+
c.value && (ve.value = c.value.clientWidth), P.value && (q.value = P.value.clientWidth, Ce.value = P.value.clientHeight), (t = n.rowOption) != null && t.wrapContent && d.value.forEach((a) => {
|
|
649
|
+
var s;
|
|
650
|
+
a.height = ((s = a.ref) == null ? void 0 : s.getBoundingClientRect().height) || 0, a.raw.__fv_data_height__ = a.height, te.updateRowPosition(a, a.raw);
|
|
651
|
+
});
|
|
652
|
+
})), ye.value && R();
|
|
653
|
+
}), $t(() => {
|
|
654
|
+
}), se(q, () => {
|
|
655
|
+
});
|
|
644
656
|
function it() {
|
|
645
|
-
u.insertNewDataItem(
|
|
657
|
+
const t = u.insertNewDataItem();
|
|
658
|
+
return x(), t;
|
|
646
659
|
}
|
|
647
|
-
function ut(
|
|
660
|
+
function ut() {
|
|
661
|
+
const t = u.insertNewDataItem(d.value.length);
|
|
662
|
+
return x(), t;
|
|
663
|
+
}
|
|
664
|
+
function rt(t) {
|
|
648
665
|
g.onEditingRow(t);
|
|
649
666
|
}
|
|
650
667
|
function st(t) {
|
|
651
|
-
u.removeDataItem(t),
|
|
652
|
-
}
|
|
653
|
-
function rt(t) {
|
|
654
|
-
u.removeDataItemById(t), E();
|
|
668
|
+
u.removeDataItem(t), x();
|
|
655
669
|
}
|
|
656
670
|
function dt(t) {
|
|
657
|
-
|
|
671
|
+
u.removeDataItemById(t), x();
|
|
658
672
|
}
|
|
659
673
|
function ct(t) {
|
|
660
|
-
g.
|
|
674
|
+
g.acceptEditingRow(t);
|
|
661
675
|
}
|
|
662
676
|
function ft(t) {
|
|
663
|
-
|
|
664
|
-
|
|
677
|
+
g.cancelEditingRow(t);
|
|
678
|
+
}
|
|
679
|
+
function mt(t) {
|
|
680
|
+
d.value.forEach((a, s) => {
|
|
681
|
+
const v = u.visibleDataItems.value.findIndex((C) => C === a.raw), b = d.value[s - 1];
|
|
665
682
|
t.forEach((C) => {
|
|
666
|
-
a.data[C.field] ?
|
|
683
|
+
a.data[C.field] ? I.updateCellByColumn(a.data[C.field], C, b, a.raw) : a.data[C.field] = I.createCellByColumn(C, v, a.raw, a, b);
|
|
667
684
|
});
|
|
668
685
|
});
|
|
669
686
|
}
|
|
670
|
-
function
|
|
671
|
-
t && (w.value = t,
|
|
687
|
+
function He(t) {
|
|
688
|
+
t && (w.value = t, mt(w.value), W(w), n.showSetting && K(w), Ge(w.value), O(u, Y), oe());
|
|
672
689
|
}
|
|
673
|
-
function
|
|
690
|
+
function yt() {
|
|
674
691
|
y.emptyCurrentRowId();
|
|
675
692
|
}
|
|
676
|
-
|
|
677
|
-
t !== a &&
|
|
693
|
+
se(() => n.showSetting, (t, a) => {
|
|
694
|
+
t !== a && He(w.value);
|
|
678
695
|
});
|
|
679
|
-
function
|
|
680
|
-
|
|
696
|
+
function _e(t) {
|
|
697
|
+
k.updatePagination(t);
|
|
681
698
|
}
|
|
682
|
-
function
|
|
683
|
-
t && (u.load(t),
|
|
699
|
+
function pt(t, a) {
|
|
700
|
+
t && (u.load(t), d.value = ge(0, U.value + H - 1), a != null && a.keepScrollTop ? m.scrollTo(m.offsetY.value) : x(), d.value.length || (pe.value = []), Re.value && Oe.value && Ie()), g.clear();
|
|
684
701
|
}
|
|
685
|
-
|
|
686
|
-
t !== a && (u.updateDataView(),
|
|
687
|
-
}),
|
|
688
|
-
|
|
702
|
+
se(u.shouldGroupingData, (t, a) => {
|
|
703
|
+
t !== a && (u.updateDataView(), x());
|
|
704
|
+
}), se(() => n.columns, (t) => {
|
|
705
|
+
He(t);
|
|
689
706
|
});
|
|
690
|
-
function
|
|
691
|
-
|
|
707
|
+
function ze(t) {
|
|
708
|
+
j.activeRowById(t);
|
|
692
709
|
}
|
|
693
|
-
function
|
|
710
|
+
function gt(t, a = {
|
|
694
711
|
isCurrent: !0
|
|
695
712
|
}) {
|
|
696
|
-
a != null && a.isCurrent &&
|
|
697
|
-
}
|
|
698
|
-
function gt(t) {
|
|
699
|
-
const a = h.idField.value, d = c.value.find((v) => v.raw[a] === t);
|
|
700
|
-
d && x.clickRowItem(d);
|
|
713
|
+
a != null && a.isCurrent && ze(t), y.selectItemById(t);
|
|
701
714
|
}
|
|
702
715
|
function vt(t) {
|
|
703
|
-
const a = h.idField.value,
|
|
704
|
-
|
|
716
|
+
const a = h.idField.value, s = d.value.find((v) => v.raw[a] === t);
|
|
717
|
+
s && j.clickRowItem(s);
|
|
705
718
|
}
|
|
706
719
|
function Ct(t) {
|
|
720
|
+
const a = h.idField.value, s = d.value.find((v) => v.raw[a] === t);
|
|
721
|
+
s && j.changeRow(s);
|
|
722
|
+
}
|
|
723
|
+
function ht(t) {
|
|
707
724
|
y.selectItemByIds(t);
|
|
708
725
|
}
|
|
709
|
-
function
|
|
710
|
-
return
|
|
726
|
+
function St() {
|
|
727
|
+
return d.value;
|
|
711
728
|
}
|
|
712
|
-
function
|
|
713
|
-
return
|
|
729
|
+
function wt(t) {
|
|
730
|
+
return d.value.filter((a) => t.includes(a.raw[n.idField]));
|
|
714
731
|
}
|
|
715
|
-
function
|
|
732
|
+
function bt() {
|
|
716
733
|
return y.getSelectedItems();
|
|
717
734
|
}
|
|
718
|
-
function
|
|
735
|
+
function Bt() {
|
|
719
736
|
return y.getSelectionRow();
|
|
720
737
|
}
|
|
721
|
-
function
|
|
738
|
+
function Ft() {
|
|
722
739
|
g.endEditCell();
|
|
723
740
|
}
|
|
724
|
-
function
|
|
741
|
+
function Ot(t, a = {
|
|
725
742
|
clearCurrent: !0
|
|
726
743
|
}) {
|
|
727
|
-
a != null && a.clearCurrent &&
|
|
744
|
+
a != null && a.clearCurrent && ze(""), y.unSelectItemByIds(t);
|
|
728
745
|
}
|
|
729
746
|
function Ue() {
|
|
730
747
|
y.clearSelection();
|
|
731
748
|
}
|
|
732
|
-
function
|
|
749
|
+
function It() {
|
|
733
750
|
return y.currentSelectedDataId.value;
|
|
734
751
|
}
|
|
735
|
-
function
|
|
752
|
+
function Vt() {
|
|
736
753
|
m.scrollToBottom();
|
|
737
754
|
}
|
|
738
|
-
function
|
|
755
|
+
function Gt(t) {
|
|
739
756
|
m.scrollToRowByIndex(t);
|
|
740
757
|
}
|
|
741
|
-
function
|
|
742
|
-
y.keepSelectingOnPaging.value || Ue(), u.updateVisibleDataSummary(
|
|
758
|
+
function Et() {
|
|
759
|
+
y.keepSelectingOnPaging.value || Ue(), u.updateVisibleDataSummary(d.value), _e({
|
|
743
760
|
total: u.dataView.value.length,
|
|
744
761
|
index: 1
|
|
745
762
|
});
|
|
746
763
|
}
|
|
764
|
+
function xt(t) {
|
|
765
|
+
y.updateSelectedValues(t);
|
|
766
|
+
}
|
|
767
|
+
function Dt(t) {
|
|
768
|
+
y.removeSelectedValues(t);
|
|
769
|
+
}
|
|
747
770
|
const We = {
|
|
748
|
-
activeRowById:
|
|
749
|
-
selectRowById:
|
|
750
|
-
addNewDataItem:
|
|
751
|
-
addNewDataItemAtLast:
|
|
771
|
+
activeRowById: ze,
|
|
772
|
+
selectRowById: Ct,
|
|
773
|
+
addNewDataItem: it,
|
|
774
|
+
addNewDataItemAtLast: ut,
|
|
752
775
|
removeDataItem: st,
|
|
753
|
-
removeDataItemById:
|
|
754
|
-
editDataItem:
|
|
755
|
-
acceptDataItem:
|
|
756
|
-
cancelDataItem:
|
|
757
|
-
selectItemById:
|
|
758
|
-
selectItemByIds:
|
|
759
|
-
updateColumns:
|
|
760
|
-
updateDataSource:
|
|
761
|
-
updatePagination:
|
|
762
|
-
getVisibleData:
|
|
763
|
-
getVisibleDataByIds:
|
|
764
|
-
getSelectedItems:
|
|
765
|
-
getSelectionRow:
|
|
766
|
-
getCurrentRowId:
|
|
767
|
-
endEditCell:
|
|
768
|
-
clickRowItemById:
|
|
776
|
+
removeDataItemById: dt,
|
|
777
|
+
editDataItem: rt,
|
|
778
|
+
acceptDataItem: ct,
|
|
779
|
+
cancelDataItem: ft,
|
|
780
|
+
selectItemById: gt,
|
|
781
|
+
selectItemByIds: ht,
|
|
782
|
+
updateColumns: He,
|
|
783
|
+
updateDataSource: pt,
|
|
784
|
+
updatePagination: _e,
|
|
785
|
+
getVisibleData: St,
|
|
786
|
+
getVisibleDataByIds: wt,
|
|
787
|
+
getSelectedItems: bt,
|
|
788
|
+
getSelectionRow: Bt,
|
|
789
|
+
getCurrentRowId: It,
|
|
790
|
+
endEditCell: Ft,
|
|
791
|
+
clickRowItemById: vt,
|
|
769
792
|
clearSelection: Ue,
|
|
770
|
-
unSelectItemByIds:
|
|
771
|
-
scrollToBottom:
|
|
772
|
-
scrollToRowByIndex:
|
|
773
|
-
updateDerivedData:
|
|
774
|
-
emptyCurrentRowId:
|
|
793
|
+
unSelectItemByIds: Ot,
|
|
794
|
+
scrollToBottom: Vt,
|
|
795
|
+
scrollToRowByIndex: Gt,
|
|
796
|
+
updateDerivedData: Et,
|
|
797
|
+
emptyCurrentRowId: yt,
|
|
798
|
+
updateSelectedValues: xt,
|
|
799
|
+
removeSelectedValues: Dt
|
|
775
800
|
};
|
|
776
801
|
p.expose(We);
|
|
777
|
-
const
|
|
778
|
-
renderDataArea:
|
|
779
|
-
} =
|
|
780
|
-
renderEmpty:
|
|
781
|
-
} =
|
|
802
|
+
const Pt = Hn(n, p, We, F, g, d), {
|
|
803
|
+
renderDataArea: Tt
|
|
804
|
+
} = Kn(n, p, P, fe, Q, De, Pe, F, g, X, Pt, j, ne, m, d, u), Rt = B(() => !d.value || !d.value.length), {
|
|
805
|
+
renderEmpty: kt
|
|
806
|
+
} = zn(n, p), Mt = B(() => ({
|
|
782
807
|
"d-flex": !0,
|
|
783
|
-
"justify-content-between":
|
|
784
|
-
"justify-content-end":
|
|
808
|
+
"justify-content-between": E.value && L.value,
|
|
809
|
+
"justify-content-end": E.value && !L.value,
|
|
785
810
|
"position-relative": !0,
|
|
786
811
|
"fv-datagrid-pagination": !0
|
|
787
|
-
})),
|
|
812
|
+
})), jt = B(() => ({
|
|
788
813
|
"flex-direction": "row"
|
|
789
|
-
})),
|
|
814
|
+
})), Nt = B(() => ({
|
|
790
815
|
"d-flex": !0,
|
|
791
816
|
"align-items-center": !0
|
|
792
817
|
}));
|
|
793
|
-
|
|
794
|
-
useColumnComposition:
|
|
818
|
+
Jt("dataGridContext", {
|
|
819
|
+
useColumnComposition: F,
|
|
795
820
|
dataView: u,
|
|
796
|
-
useFilterComposition:
|
|
797
|
-
useFitColumnComposition:
|
|
798
|
-
useSortComposition:
|
|
821
|
+
useFilterComposition: z,
|
|
822
|
+
useFitColumnComposition: ae,
|
|
823
|
+
useSortComposition: Y,
|
|
799
824
|
useVirtualScrollComposition: m
|
|
800
825
|
});
|
|
801
|
-
function
|
|
826
|
+
function At(t) {
|
|
802
827
|
let a;
|
|
803
|
-
return i(
|
|
828
|
+
return i(_n, {
|
|
804
829
|
class: "f-form-layout farris-form farris-form-controls-inline col-12 col-md-6 col-xl-3 col-el-2"
|
|
805
|
-
},
|
|
830
|
+
}, Yn(a = Object.keys(t.data).filter((s) => {
|
|
806
831
|
var v, b;
|
|
807
|
-
return ((v = t.data[
|
|
808
|
-
}).map((
|
|
832
|
+
return ((v = t.data[s].column) == null ? void 0 : v.dataType) !== Xe && ((b = t.data[s].column) == null ? void 0 : b.dataType) !== Ze;
|
|
833
|
+
}).map((s) => {
|
|
809
834
|
var b, C;
|
|
810
|
-
const v = t.data[
|
|
835
|
+
const v = t.data[s];
|
|
811
836
|
return i("div", {
|
|
812
837
|
class: "farris-group-wrap w-100"
|
|
813
838
|
}, [i("div", {
|
|
814
839
|
class: "form-group farris-form-group common-group"
|
|
815
|
-
}, [i(
|
|
840
|
+
}, [i(Un, {
|
|
816
841
|
text: (b = v.column) == null ? void 0 : b.title,
|
|
817
842
|
title: (C = v.column) == null ? void 0 : C.title
|
|
818
843
|
}, null), i("div", {
|
|
@@ -822,93 +847,93 @@ const _n = /* @__PURE__ */ Ut({
|
|
|
822
847
|
default: () => [a]
|
|
823
848
|
});
|
|
824
849
|
}
|
|
825
|
-
function
|
|
826
|
-
const
|
|
827
|
-
Object.keys(a.data).filter((
|
|
828
|
-
var V,
|
|
829
|
-
return ((V = a.data[
|
|
830
|
-
}).forEach((
|
|
831
|
-
var
|
|
832
|
-
const V = a.data[
|
|
833
|
-
|
|
850
|
+
function Ht(t, a) {
|
|
851
|
+
const s = {}, v = {}, b = [], C = [], qe = {};
|
|
852
|
+
Object.keys(a.data).filter((A) => {
|
|
853
|
+
var V, re;
|
|
854
|
+
return ((V = a.data[A].column) == null ? void 0 : V.dataType) !== Xe && ((re = a.data[A].column) == null ? void 0 : re.dataType) !== Ze;
|
|
855
|
+
}).forEach((A) => {
|
|
856
|
+
var re, $e, Je;
|
|
857
|
+
const V = a.data[A];
|
|
858
|
+
s[A] = V.data, g.endEditByCell(V), v[A] = V.data, b.push(V.column), C.push(V), qe[A] = (Je = ($e = (re = V.column) == null ? void 0 : re.editor) == null ? void 0 : $e.context) == null ? void 0 : Je.editor;
|
|
834
859
|
}), p.emit("endEditRow", {
|
|
835
860
|
row: a,
|
|
836
861
|
cells: C,
|
|
837
862
|
columns: b,
|
|
838
|
-
oldValues:
|
|
863
|
+
oldValues: s,
|
|
839
864
|
newValues: v,
|
|
840
|
-
editors:
|
|
865
|
+
editors: qe
|
|
841
866
|
}), g.showRowEditPanel.value = !1;
|
|
842
867
|
}
|
|
843
|
-
function
|
|
844
|
-
const t = y.currentSelectedDataId.value, a =
|
|
845
|
-
return a ? i(
|
|
868
|
+
function zt() {
|
|
869
|
+
const t = y.currentSelectedDataId.value, a = d.value.find((s) => s.raw[n.idField] === t);
|
|
870
|
+
return a ? i(Ln, {
|
|
846
871
|
showHeader: !1,
|
|
847
872
|
modelValue: g.showRowEditPanel.value,
|
|
848
|
-
"onUpdate:modelValue": (
|
|
873
|
+
"onUpdate:modelValue": (s) => g.showRowEditPanel.value = s,
|
|
849
874
|
width: 600
|
|
850
875
|
}, {
|
|
851
|
-
default: () =>
|
|
852
|
-
footerTemplate: () => i(
|
|
876
|
+
default: () => At(a),
|
|
877
|
+
footerTemplate: () => i(be, null, [i(et, {
|
|
853
878
|
class: "mr-3",
|
|
854
879
|
type: "secondary",
|
|
855
|
-
onClick: (
|
|
880
|
+
onClick: (s) => {
|
|
856
881
|
g.showRowEditPanel.value = !1;
|
|
857
882
|
}
|
|
858
883
|
}, {
|
|
859
|
-
default: () => [
|
|
860
|
-
}), i(
|
|
861
|
-
onClick: (
|
|
862
|
-
|
|
884
|
+
default: () => [we("取消")]
|
|
885
|
+
}), i(et, {
|
|
886
|
+
onClick: (s) => {
|
|
887
|
+
Ht(s, a);
|
|
863
888
|
}
|
|
864
889
|
}, {
|
|
865
|
-
default: () => [
|
|
890
|
+
default: () => [we("确定")]
|
|
866
891
|
})])
|
|
867
892
|
}) : null;
|
|
868
893
|
}
|
|
869
|
-
return () => i(
|
|
870
|
-
ref:
|
|
871
|
-
class: Me.value,
|
|
872
|
-
style: Ie.value,
|
|
873
|
-
onWheel: ke
|
|
874
|
-
}, [r.value && n.enableFilter && nt(), r.value && lt(), r.value && s.value && e(), i("div", {
|
|
875
|
-
ref: r,
|
|
894
|
+
return () => i(be, null, [i("div", {
|
|
895
|
+
ref: ce,
|
|
876
896
|
class: je.value,
|
|
877
|
-
style:
|
|
897
|
+
style: Ve.value,
|
|
898
|
+
onWheel: ke
|
|
899
|
+
}, [c.value && n.enableFilter && lt(), c.value && at(), c.value && r.value && e(), i("div", {
|
|
900
|
+
ref: c,
|
|
901
|
+
class: Ne.value,
|
|
902
|
+
style: Ae.value,
|
|
878
903
|
onTouchstart: (t) => {
|
|
879
|
-
t.stopPropagation(),
|
|
904
|
+
t.stopPropagation(), T.value = !0, m.onTouchstartScrollThumb(t, c);
|
|
880
905
|
},
|
|
881
906
|
onTouchend: (t) => {
|
|
882
|
-
|
|
907
|
+
T.value = !1;
|
|
883
908
|
},
|
|
884
909
|
onMouseover: (t) => {
|
|
885
|
-
t.stopPropagation(),
|
|
910
|
+
t.stopPropagation(), T.value = !0;
|
|
886
911
|
},
|
|
887
912
|
onMouseleave: (t) => {
|
|
888
|
-
t.stopPropagation(),
|
|
913
|
+
t.stopPropagation(), T.value = !1;
|
|
889
914
|
}
|
|
890
|
-
}, [
|
|
891
|
-
class:
|
|
892
|
-
style:
|
|
893
|
-
}, [
|
|
894
|
-
class:
|
|
895
|
-
}, [i("div", null, ["已选:" +
|
|
915
|
+
}, [c.value && f(d), c.value && Tt(), c.value && Rt.value && kt(), c.value && ue(), c.value && nt()]), c.value && Se(), (E.value || L.value) && i("div", {
|
|
916
|
+
class: Mt.value,
|
|
917
|
+
style: jt.value
|
|
918
|
+
}, [L.value && i("div", {
|
|
919
|
+
class: Nt.value
|
|
920
|
+
}, [i("div", null, ["已选:" + pe.value.length, we(" 条")])]), E.value && l()]), o(), _.value && J()]), Be() && zt()]);
|
|
896
921
|
}
|
|
897
|
-
}),
|
|
922
|
+
}), yl = Ut(qn);
|
|
898
923
|
export {
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
924
|
+
qn as FDataGrid,
|
|
925
|
+
dl as columnOptions,
|
|
926
|
+
Wn as dataGridProps,
|
|
927
|
+
yl as default,
|
|
928
|
+
fl as editOptions,
|
|
929
|
+
ol as filterOptions,
|
|
930
|
+
al as groupOptions,
|
|
931
|
+
il as headerOptions,
|
|
932
|
+
ml as loadingOptions,
|
|
933
|
+
nl as paginationOptions,
|
|
934
|
+
ul as rowNumberOptions,
|
|
935
|
+
rl as rowOptions,
|
|
936
|
+
cl as selectionOptions,
|
|
937
|
+
ll as sortOptions,
|
|
938
|
+
sl as summaryOptions
|
|
914
939
|
};
|