@farris/ui-vue 1.7.3 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +312 -61
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +1482 -56
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +752 -8
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +266 -110
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +129 -128
- package/components/calendar/index.umd.cjs +2 -2
- package/components/code-editor/index.esm.js +237 -169
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +134 -133
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +812 -502
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +323 -291
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +355 -174
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +134 -133
- package/components/comment/index.umd.cjs +2 -2
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +3791 -2760
- package/components/component/index.umd.cjs +8 -1
- package/components/condition/index.esm.js +2482 -492
- package/components/condition/index.umd.cjs +8 -1
- package/components/data-view/index.esm.js +1816 -1790
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1 -1
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +2975 -2615
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +397 -387
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +373 -124
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +592 -1894
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +250 -248
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +427 -466
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +1 -1
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1890 -1473
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +7371 -2
- package/components/expression-editor/index.umd.cjs +427 -1
- package/components/fieldset/index.esm.js +1 -1
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +2 -3
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.css +1 -1
- package/components/filter-condition-editor/index.esm.js +9044 -425
- package/components/filter-condition-editor/index.umd.cjs +427 -1
- package/components/html-template/index.esm.js +33 -36
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +615 -361
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +325 -247
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +269 -269
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +549 -163
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +837 -39
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +427 -646
- package/components/list-view/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +3624 -3625
- package/components/lookup/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +577 -536
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/nav/index.esm.js +311 -31
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1634 -189
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +82 -82
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1190 -850
- package/components/order/index.umd.cjs +6 -6
- package/components/page-footer/index.esm.js +331 -48
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +110 -116
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +509 -232
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +353 -148
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +157 -153
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1825 -871
- package/components/property-panel/index.umd.cjs +12 -5
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +6075 -3863
- package/components/query-solution/index.umd.cjs +13 -6
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2447 -2221
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +244 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +134 -133
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +179 -8
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.css +1 -0
- package/components/sort-condition-editor/index.esm.js +9488 -4
- package/components/sort-condition-editor/index.umd.cjs +427 -1
- package/components/splitter/index.esm.js +1172 -142
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +47 -48
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +490 -419
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +217 -73
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +29 -27
- package/components/textarea/index.umd.cjs +2 -2
- package/components/transfer/index.esm.js +760 -543
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +105 -104
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +320 -153
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +1125 -634
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +359 -106
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +222 -89
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +290 -199
- package/components/weather/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +5192 -4408
- package/designer/data-grid/index.umd.cjs +17 -10
- package/designer/drawer/index.esm.js +576 -567
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +1418 -1154
- package/designer/dynamic-form/index.umd.cjs +8 -1
- package/designer/farris-designer.all.esm.js +12665 -12117
- package/designer/farris-designer.all.umd.cjs +12 -12
- package/designer/list-view/index.esm.js +327 -327
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/modal/index.esm.js +29 -137
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +0 -1
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +9 -9
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +1 -6
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +2829 -2540
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +822 -464
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +68724 -67244
- package/farris.all.umd.cjs +92 -92
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/accordion/src/accordion.props.d.ts +1 -0
- package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
- package/types/avatar/src/avatar.props.d.ts +1 -0
- package/types/binding-selector/index.d.ts +54 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
- package/types/button-group/index.d.ts +0 -15
- package/types/button-group/src/button-group.props.d.ts +1 -0
- package/types/code-editor/index.d.ts +1 -0
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +2 -0
- package/types/color-picker/index.d.ts +15 -0
- package/types/color-picker/src/color-picker.props.d.ts +1 -0
- package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +14 -2
- package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
- package/types/component/index.d.ts +2 -0
- package/types/component/src/component.props.d.ts +8 -0
- package/types/components.d.ts +6 -1
- package/types/condition/index.d.ts +55 -0
- package/types/designer-toolbox/index.d.ts +3 -0
- package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
- package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
- package/types/designer-toolbox/src/types.d.ts +21 -0
- package/types/designer.d.ts +13 -0
- package/types/dropdown/index.d.ts +6 -27
- package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
- package/types/dropdown/src/dropdown.props.d.ts +1 -0
- package/types/dynamic-form/designer.d.ts +1 -3
- package/types/dynamic-form/index.d.ts +3 -9
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
- package/types/dynamic-resolver/index.d.ts +0 -3
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
- package/types/dynamic-view/src/components/maps.d.ts +104 -92
- package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
- package/types/filter-condition-editor/index.d.ts +9 -0
- package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
- package/types/flow-canvas/index.d.ts +3 -0
- package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → flow-canvas/src/components/flow-node-item.component.d.ts} +1 -1
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
- package/types/flow-canvas/src/composition/types.d.ts +42 -0
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
- package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
- package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/json-editor/src/json-editor.props.d.ts +1 -0
- package/types/layout/index.d.ts +0 -1
- package/types/layout/src/components/layout-pane.props.d.ts +1 -0
- package/types/layout/src/layout.props.d.ts +1 -0
- package/types/list-nav/index.d.ts +5 -24
- package/types/list-nav/src/list-nav.props.d.ts +1 -0
- package/types/list-view/index.d.ts +0 -1
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
- package/types/modal/designer.d.ts +0 -2
- package/types/nav/index.d.ts +20 -24
- package/types/nav/src/nav.props.d.ts +1 -0
- package/types/number-range/src/number-range.props.d.ts +1 -0
- package/types/order/index.d.ts +5 -36
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +1 -0
- package/types/page-footer/index.d.ts +2 -0
- package/types/page-footer/src/page-footer.props.d.ts +1 -0
- package/types/pagination/index.d.ts +0 -15
- package/types/pagination/src/pagination.props.d.ts +1 -0
- package/types/progress/src/progress.props.d.ts +1 -0
- package/types/query-solution/index.d.ts +1 -1
- package/types/radio-group/designer.d.ts +1 -2
- package/types/search-box/index.d.ts +17 -1
- package/types/search-box/src/search-box.props.d.ts +1 -0
- package/types/section/designer.d.ts +0 -1
- package/types/smoke-detector/index.d.ts +2 -0
- package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
- package/types/sort-condition-editor/index.d.ts +7 -2
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
- package/types/splitter/index.d.ts +0 -1
- package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
- package/types/splitter/src/splitter.props.d.ts +1 -0
- package/types/tabs/designer.d.ts +0 -1
- package/types/tabs/index.d.ts +1 -0
- package/types/text/index.d.ts +20 -24
- package/types/text/src/text.props.d.ts +1 -0
- package/types/transfer/src/transfer.props.d.ts +1 -0
- package/types/tree-view/src/tree-view.props.d.ts +1 -0
- package/types/uploader/src/uploader.props.d.ts +1 -0
- package/types/verify-detail/index.d.ts +5 -58
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
- package/types/video/index.d.ts +20 -24
- package/types/video/src/video.props.d.ts +1 -0
- package/components/dynamic-form/index.css +0 -1
- package/designer/accordion/index.esm.js +0 -257
- package/designer/accordion/index.umd.cjs +0 -1
- package/designer/avatar/index.esm.js +0 -1460
- package/designer/avatar/index.umd.cjs +0 -1
- package/designer/binding-selector/index.esm.js +0 -792
- package/designer/binding-selector/index.umd.cjs +0 -1
- package/designer/button-group/index.esm.js +0 -282
- package/designer/button-group/index.umd.cjs +0 -1
- package/designer/code-editor/index.esm.js +0 -75
- package/designer/code-editor/index.umd.cjs +0 -1
- package/designer/color-picker/index.esm.js +0 -1096
- package/designer/color-picker/index.umd.cjs +0 -1
- package/designer/combo-list/index.esm.js +0 -1095
- package/designer/combo-list/index.umd.cjs +0 -1
- package/designer/combo-tree/index.esm.js +0 -186
- package/designer/combo-tree/index.umd.cjs +0 -1
- package/designer/component/index.css +0 -1
- package/designer/component/index.esm.js +0 -5002
- package/designer/component/index.umd.cjs +0 -1
- package/designer/condition/index.esm.js +0 -1899
- package/designer/condition/index.umd.cjs +0 -1
- package/designer/dropdown/index.esm.js +0 -261
- package/designer/dropdown/index.umd.cjs +0 -1
- package/designer/expression-editor/index.css +0 -1
- package/designer/expression-editor/index.esm.js +0 -7006
- package/designer/expression-editor/index.umd.cjs +0 -427
- package/designer/filter-condition-editor/index.css +0 -1
- package/designer/filter-condition-editor/index.esm.js +0 -4795
- package/designer/filter-condition-editor/index.umd.cjs +0 -1
- package/designer/html-template/index.esm.js +0 -718
- package/designer/html-template/index.umd.cjs +0 -1
- package/designer/image-cropper/index.esm.js +0 -765
- package/designer/image-cropper/index.umd.cjs +0 -1
- package/designer/json-editor/index.esm.js +0 -83
- package/designer/json-editor/index.umd.cjs +0 -1
- package/designer/language-textbox/index.esm.js +0 -783
- package/designer/language-textbox/index.umd.cjs +0 -8
- package/designer/layout/index.esm.js +0 -430
- package/designer/layout/index.umd.cjs +0 -1
- package/designer/list-nav/index.esm.js +0 -802
- package/designer/list-nav/index.umd.cjs +0 -1
- package/designer/lookup/index.esm.js +0 -2083
- package/designer/lookup/index.umd.cjs +0 -1
- package/designer/menu-lookup/index.esm.js +0 -46
- package/designer/menu-lookup/index.umd.cjs +0 -1
- package/designer/nav/index.esm.js +0 -284
- package/designer/nav/index.umd.cjs +0 -1
- package/designer/number-range/index.esm.js +0 -1616
- package/designer/number-range/index.umd.cjs +0 -1
- package/designer/order/index.css +0 -1
- package/designer/order/index.esm.js +0 -2196
- package/designer/order/index.umd.cjs +0 -18
- package/designer/page-footer/index.esm.js +0 -290
- package/designer/page-footer/index.umd.cjs +0 -1
- package/designer/page-header/index.esm.js +0 -1003
- package/designer/page-header/index.umd.cjs +0 -1
- package/designer/pagination/index.esm.js +0 -591
- package/designer/pagination/index.umd.cjs +0 -1
- package/designer/progress/index.esm.js +0 -213
- package/designer/progress/index.umd.cjs +0 -1
- package/designer/search-box/index.esm.js +0 -245
- package/designer/search-box/index.umd.cjs +0 -1
- package/designer/smoke-detector/index.css +0 -1
- package/designer/smoke-detector/index.esm.js +0 -178
- package/designer/smoke-detector/index.umd.cjs +0 -1
- package/designer/sort-condition-editor/index.esm.js +0 -138
- package/designer/sort-condition-editor/index.umd.cjs +0 -1
- package/designer/splitter/index.esm.js +0 -1120
- package/designer/splitter/index.umd.cjs +0 -1
- package/designer/step/index.esm.js +0 -226
- package/designer/step/index.umd.cjs +0 -1
- package/designer/text/index.esm.js +0 -147
- package/designer/text/index.umd.cjs +0 -1
- package/designer/transfer/index.esm.js +0 -254
- package/designer/transfer/index.umd.cjs +0 -1
- package/designer/tree-view/index.esm.js +0 -313
- package/designer/tree-view/index.umd.cjs +0 -1
- package/designer/uploader/index.esm.js +0 -1190
- package/designer/uploader/index.umd.cjs +0 -2
- package/designer/verify-detail/index.esm.js +0 -258
- package/designer/verify-detail/index.umd.cjs +0 -1
- package/designer/video/index.esm.js +0 -136
- package/designer/video/index.umd.cjs +0 -1
- package/designer/weather/index.css +0 -1
- package/designer/weather/index.esm.js +0 -6244
- package/designer/weather/index.umd.cjs +0 -14
- package/types/accordion/designer.d.ts +0 -44
- package/types/avatar/designer.d.ts +0 -29
- package/types/button-group/designer.d.ts +0 -29
- package/types/code-editor/designer.d.ts +0 -5
- package/types/color-picker/designer.d.ts +0 -29
- package/types/combo-list/designer.d.ts +0 -29
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
- package/types/combo-tree/designer.d.ts +0 -5
- package/types/component/designer.d.ts +0 -35
- package/types/condition/designer.d.ts +0 -56
- package/types/dropdown/designer.d.ts +0 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
- package/types/expression-editor/designer.d.ts +0 -9
- package/types/filter-condition-editor/designer.d.ts +0 -10
- package/types/html-template/designer.d.ts +0 -31
- package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
- package/types/image-cropper/designer.d.ts +0 -4
- package/types/json-editor/designer.d.ts +0 -5
- package/types/layout/designer.d.ts +0 -32
- package/types/list-nav/designer.d.ts +0 -6
- package/types/menu-lookup/designer.d.ts +0 -5
- package/types/nav/designer.d.ts +0 -6
- package/types/number-range/designer.d.ts +0 -29
- package/types/order/designer.d.ts +0 -6
- package/types/page-footer/designer.d.ts +0 -6
- package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
- package/types/pagination/designer.d.ts +0 -29
- package/types/progress/designer.d.ts +0 -29
- package/types/search-box/designer.d.ts +0 -52
- package/types/smoke-detector/designer.d.ts +0 -6
- package/types/sort-condition-editor/designer.d.ts +0 -9
- package/types/splitter/designer.d.ts +0 -32
- package/types/step/designer.d.ts +0 -6
- package/types/text/designer.d.ts +0 -6
- package/types/transfer/designer.d.ts +0 -35
- package/types/tree-view/designer.d.ts +0 -29
- package/types/uploader/designer.d.ts +0 -141
- package/types/verify-detail/designer.d.ts +0 -6
- package/types/video/designer.d.ts +0 -6
- /package/{designer → components}/condition/index.css +0 -0
- /package/{designer → components}/uploader/index.css +0 -0
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { getCustomStyle as
|
|
3
|
-
import { useFilter as
|
|
4
|
-
import { LocaleService as
|
|
5
|
-
import { FCheckbox as
|
|
6
|
-
|
|
7
|
-
import { DgControl as E } from "../designer-canvas/index.esm.js";
|
|
8
|
-
const ne = {
|
|
1
|
+
import { ref as f, computed as x, createVNode as n, Fragment as N, watch as Z, withModifiers as we, withDirectives as ye, vModelText as Ie, defineComponent as ee, createTextVNode as Y } from "vue";
|
|
2
|
+
import { getCustomStyle as $, getCustomClass as W } from "../common/index.esm.js";
|
|
3
|
+
import { useFilter as Se, useIdentify as ke, useHierarchy as be, useGroupData as Ve, useDataView as Fe, useSelection as De, usePagination as Me, useRow as Re, useEdit as Te, useVisualDataBound as Oe, useVisualDataCell as Be, useVisualDataRow as He, useVisualGroupRow as Pe, useVisualSummaryRow as xe, useVisualData as je, useSidebar as Le, useColumn as _e, useVirtualScroll as Ge, getPagination as Ae } from "../data-view/index.esm.js";
|
|
4
|
+
import { LocaleService as Ee } from "../locale/index.esm.js";
|
|
5
|
+
import { FCheckbox as K } from "../checkbox/index.esm.js";
|
|
6
|
+
const te = {
|
|
9
7
|
/** 列集合 */
|
|
10
8
|
columns: {
|
|
11
9
|
type: Array,
|
|
@@ -73,218 +71,218 @@ const ne = {
|
|
|
73
71
|
/** 分页 */
|
|
74
72
|
pagination: { type: Object, default: { enable: !1, size: 20 } }
|
|
75
73
|
};
|
|
76
|
-
function
|
|
77
|
-
function
|
|
78
|
-
const
|
|
79
|
-
let
|
|
80
|
-
for (;
|
|
81
|
-
|
|
82
|
-
return
|
|
74
|
+
function Ne(e, l) {
|
|
75
|
+
function p(a) {
|
|
76
|
+
const o = [];
|
|
77
|
+
let v = a.nextNode();
|
|
78
|
+
for (; v; )
|
|
79
|
+
o.push(v), v = a.nextNode();
|
|
80
|
+
return o;
|
|
83
81
|
}
|
|
84
|
-
function
|
|
85
|
-
const
|
|
86
|
-
return v
|
|
87
|
-
const
|
|
88
|
-
let
|
|
89
|
-
for (;
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
82
|
+
function w(a, o) {
|
|
83
|
+
const v = document.createTreeWalker(a, NodeFilter.SHOW_TEXT);
|
|
84
|
+
return p(v).map((y) => ({ textNode: y, text: (y.textContent || "").toLocaleLowerCase() })).map(({ textNode: y, text: s }) => {
|
|
85
|
+
const u = [];
|
|
86
|
+
let M = 0;
|
|
87
|
+
for (; M < s.length; ) {
|
|
88
|
+
const I = s.indexOf(o, M);
|
|
89
|
+
if (I === -1)
|
|
92
90
|
break;
|
|
93
|
-
|
|
91
|
+
u.push(I), M = I + o.length;
|
|
94
92
|
}
|
|
95
|
-
return
|
|
96
|
-
const
|
|
97
|
-
return
|
|
93
|
+
return u.map((I) => {
|
|
94
|
+
const h = new Range();
|
|
95
|
+
return h.setStart(y, I), h.setEnd(y, I + o.length), h;
|
|
98
96
|
});
|
|
99
97
|
}).flat();
|
|
100
98
|
}
|
|
101
|
-
function
|
|
102
|
-
if (!CSS.highlights || (CSS.highlights.clear(), !a || !
|
|
99
|
+
function g(a) {
|
|
100
|
+
if (!CSS.highlights || (CSS.highlights.clear(), !a || !l))
|
|
103
101
|
return;
|
|
104
|
-
const
|
|
105
|
-
CSS.highlights.set("search-result",
|
|
102
|
+
const o = w(l.value, a.toLocaleLowerCase()), v = new Highlight(...o);
|
|
103
|
+
CSS.highlights.set("search-result", v);
|
|
106
104
|
}
|
|
107
|
-
return { search:
|
|
105
|
+
return { search: g };
|
|
108
106
|
}
|
|
109
|
-
function
|
|
110
|
-
const
|
|
111
|
-
var t,
|
|
112
|
-
return ((t = e.selection) == null ? void 0 : t.multiSelect) && ((
|
|
107
|
+
function q(e, l, p, w, g, a, o, v, O, m) {
|
|
108
|
+
const b = f(e.size), y = f(e.textField), s = f(e.titleField), u = f(e.disableField), M = x(() => {
|
|
109
|
+
var t, V;
|
|
110
|
+
return ((t = e.selection) == null ? void 0 : t.multiSelect) && ((V = e.selection) == null ? void 0 : V.showCheckbox);
|
|
113
111
|
}), {
|
|
114
|
-
onMouseenterItem:
|
|
115
|
-
onMouseoverItem:
|
|
116
|
-
onMouseoutItem:
|
|
112
|
+
onMouseenterItem: I,
|
|
113
|
+
onMouseoverItem: h,
|
|
114
|
+
onMouseoutItem: F
|
|
117
115
|
} = a, {
|
|
118
|
-
getKey:
|
|
119
|
-
listViewItemClass:
|
|
120
|
-
listViewItemStyle:
|
|
121
|
-
onCheckItem:
|
|
122
|
-
onClickItem:
|
|
123
|
-
} =
|
|
116
|
+
getKey: D,
|
|
117
|
+
listViewItemClass: T,
|
|
118
|
+
listViewItemStyle: P,
|
|
119
|
+
onCheckItem: j,
|
|
120
|
+
onClickItem: d
|
|
121
|
+
} = o, C = x(() => {
|
|
124
122
|
const t = {
|
|
125
123
|
"text-overflow": "ellipsis",
|
|
126
124
|
overflow: "hidden",
|
|
127
125
|
"white-space": "nowrap"
|
|
128
126
|
};
|
|
129
127
|
return e.itemClass ? t : {
|
|
130
|
-
margin:
|
|
128
|
+
margin: b.value === "small" ? "0.25rem 0" : "8px 0",
|
|
131
129
|
...t
|
|
132
130
|
};
|
|
133
131
|
});
|
|
134
|
-
function
|
|
135
|
-
return t.checked =
|
|
136
|
-
class:
|
|
137
|
-
id:
|
|
138
|
-
key:
|
|
139
|
-
style:
|
|
140
|
-
onClick: (
|
|
141
|
-
onMouseenter: (
|
|
142
|
-
onMouseover: (
|
|
143
|
-
onMouseout: (
|
|
144
|
-
}, [
|
|
132
|
+
function i(t, V, B) {
|
|
133
|
+
return t.checked = v.findIndexInSelectedItems(t) > -1, n("li", {
|
|
134
|
+
class: T(t, V),
|
|
135
|
+
id: D(t, V),
|
|
136
|
+
key: D(t, V),
|
|
137
|
+
style: P(t, V),
|
|
138
|
+
onClick: (H) => d(t, V, H),
|
|
139
|
+
onMouseenter: (H) => I(H, t, V),
|
|
140
|
+
onMouseover: (H) => h(H, t, V),
|
|
141
|
+
onMouseout: (H) => F(H, t, V)
|
|
142
|
+
}, [M.value && n("div", {
|
|
145
143
|
class: "f-list-select",
|
|
146
|
-
onClick: (
|
|
147
|
-
}, [n(
|
|
148
|
-
id: "list-" +
|
|
144
|
+
onClick: (H) => H.stopPropagation()
|
|
145
|
+
}, [n(K, {
|
|
146
|
+
id: "list-" + D(t, V),
|
|
149
147
|
customClass: "listview-checkbox float-left",
|
|
150
|
-
disabled: t[
|
|
148
|
+
disabled: t[u.value],
|
|
151
149
|
checked: t.checked,
|
|
152
|
-
"onUpdate:checked": (
|
|
153
|
-
onChange: (
|
|
154
|
-
|
|
150
|
+
"onUpdate:checked": (H) => t.checked = H,
|
|
151
|
+
onChange: (H) => {
|
|
152
|
+
j(t, V, !H.checked);
|
|
155
153
|
}
|
|
156
154
|
}, null)]), n("div", {
|
|
157
155
|
class: "f-list-content"
|
|
158
156
|
}, [n("div", {
|
|
159
157
|
class: e.itemContentClass,
|
|
160
|
-
style:
|
|
161
|
-
title: t.raw[
|
|
162
|
-
}, [t.raw[
|
|
158
|
+
style: C.value,
|
|
159
|
+
title: t.raw[s.value] || t.raw[y.value]
|
|
160
|
+
}, [t.raw[y.value]])])]);
|
|
163
161
|
}
|
|
164
162
|
return {
|
|
165
|
-
renderItem:
|
|
163
|
+
renderItem: i
|
|
166
164
|
};
|
|
167
165
|
}
|
|
168
|
-
function
|
|
169
|
-
const
|
|
170
|
-
onMouseenterItem:
|
|
171
|
-
onMouseoverItem:
|
|
172
|
-
onMouseoutItem:
|
|
166
|
+
function ze(e, l, p, w, g, a, o, v, O, m) {
|
|
167
|
+
const b = f(e.multiSelect), y = f(e.disableField), s = f(e.textField), {
|
|
168
|
+
onMouseenterItem: u,
|
|
169
|
+
onMouseoverItem: M,
|
|
170
|
+
onMouseoutItem: I
|
|
173
171
|
} = a, {
|
|
174
|
-
getKey:
|
|
175
|
-
listViewItemClass:
|
|
176
|
-
listViewItemStyle:
|
|
177
|
-
onCheckItem:
|
|
178
|
-
onClickItem:
|
|
179
|
-
updateSelectedItems:
|
|
180
|
-
} =
|
|
181
|
-
function
|
|
182
|
-
return e.contentTemplate ? n(
|
|
183
|
-
item:
|
|
172
|
+
getKey: h,
|
|
173
|
+
listViewItemClass: F,
|
|
174
|
+
listViewItemStyle: D,
|
|
175
|
+
onCheckItem: T,
|
|
176
|
+
onClickItem: P,
|
|
177
|
+
updateSelectedItems: j
|
|
178
|
+
} = o;
|
|
179
|
+
function d(i, t, V) {
|
|
180
|
+
return e.contentTemplate ? n(N, null, [e.contentTemplate({
|
|
181
|
+
item: i.raw,
|
|
184
182
|
index: t,
|
|
185
|
-
selectedItem:
|
|
186
|
-
})]) :
|
|
187
|
-
item:
|
|
183
|
+
selectedItem: V
|
|
184
|
+
})]) : l.slots.content ? n(N, null, [l.slots.content && l.slots.content({
|
|
185
|
+
item: i.raw,
|
|
188
186
|
index: t,
|
|
189
|
-
selectedItem:
|
|
187
|
+
selectedItem: V
|
|
190
188
|
})]) : n("div", {
|
|
191
189
|
style: "margin: 10px 0;"
|
|
192
|
-
}, [
|
|
190
|
+
}, [i.raw[s.value || "name"]]);
|
|
193
191
|
}
|
|
194
|
-
function
|
|
192
|
+
function C(i, t, V) {
|
|
195
193
|
return n("li", {
|
|
196
|
-
class:
|
|
197
|
-
id:
|
|
198
|
-
key:
|
|
199
|
-
style:
|
|
200
|
-
onClick: (
|
|
201
|
-
onMouseenter: (
|
|
202
|
-
onMouseover: (
|
|
203
|
-
onMouseout: (
|
|
204
|
-
}, [
|
|
194
|
+
class: F(i, t),
|
|
195
|
+
id: h(i, t),
|
|
196
|
+
key: h(i, t),
|
|
197
|
+
style: D(i, t),
|
|
198
|
+
onClick: (B) => P(i, t, B),
|
|
199
|
+
onMouseenter: (B) => u(B, i, t),
|
|
200
|
+
onMouseover: (B) => M(B, i, t),
|
|
201
|
+
onMouseout: (B) => I(B, i, t)
|
|
202
|
+
}, [b.value && n("div", {
|
|
205
203
|
class: "f-list-select",
|
|
206
|
-
onClick: (
|
|
207
|
-
}, [n(
|
|
208
|
-
id: "list-" +
|
|
204
|
+
onClick: (B) => B.stopPropagation()
|
|
205
|
+
}, [n(K, {
|
|
206
|
+
id: "list-" + h(i, t),
|
|
209
207
|
customClass: "listview-checkbox",
|
|
210
|
-
disabled:
|
|
211
|
-
checked:
|
|
212
|
-
"onUpdate:checked": (
|
|
213
|
-
onChange: (
|
|
214
|
-
|
|
208
|
+
disabled: i[y.value],
|
|
209
|
+
checked: i.checked,
|
|
210
|
+
"onUpdate:checked": (B) => i.checked = B,
|
|
211
|
+
onChange: (B) => {
|
|
212
|
+
T(i, t, !B.checked), j();
|
|
215
213
|
}
|
|
216
214
|
}, null)]), n("div", {
|
|
217
215
|
class: "f-list-content"
|
|
218
|
-
}, [
|
|
216
|
+
}, [d(i, t, V)])]);
|
|
219
217
|
}
|
|
220
218
|
return {
|
|
221
|
-
renderItem:
|
|
219
|
+
renderItem: C
|
|
222
220
|
};
|
|
223
221
|
}
|
|
224
|
-
function
|
|
225
|
-
const
|
|
226
|
-
onMouseenterItem:
|
|
227
|
-
onMouseoverItem:
|
|
228
|
-
onMouseoutItem:
|
|
222
|
+
function Ue(e, l, p, w, g, a, o, v, O, m) {
|
|
223
|
+
const b = f(e.multiSelect), y = f(e.disableField), s = f(e.textField), {
|
|
224
|
+
onMouseenterItem: u,
|
|
225
|
+
onMouseoverItem: M,
|
|
226
|
+
onMouseoutItem: I
|
|
229
227
|
} = a, {
|
|
230
|
-
getKey:
|
|
231
|
-
listViewItemClass:
|
|
232
|
-
onCheckItem:
|
|
233
|
-
onClickItem:
|
|
234
|
-
} =
|
|
235
|
-
dragstart:
|
|
236
|
-
dragenter:
|
|
237
|
-
dragover:
|
|
238
|
-
dragend:
|
|
239
|
-
} =
|
|
240
|
-
removeItem:
|
|
241
|
-
} =
|
|
242
|
-
margin:
|
|
228
|
+
getKey: h,
|
|
229
|
+
listViewItemClass: F,
|
|
230
|
+
onCheckItem: D,
|
|
231
|
+
onClickItem: T
|
|
232
|
+
} = o, {
|
|
233
|
+
dragstart: P,
|
|
234
|
+
dragenter: j,
|
|
235
|
+
dragover: d,
|
|
236
|
+
dragend: C
|
|
237
|
+
} = w, {
|
|
238
|
+
removeItem: i
|
|
239
|
+
} = O, t = x(() => ({
|
|
240
|
+
margin: b.value ? "10px 0" : "10px 0px 10px 14px"
|
|
243
241
|
}));
|
|
244
|
-
function
|
|
245
|
-
const
|
|
246
|
-
|
|
242
|
+
function V(r, c = "") {
|
|
243
|
+
const L = r.target;
|
|
244
|
+
L.title = L.scrollWidth > L.clientWidth ? c : "";
|
|
247
245
|
}
|
|
248
|
-
function
|
|
246
|
+
function B(r) {
|
|
249
247
|
return n("div", {
|
|
250
248
|
style: t.value,
|
|
251
|
-
onMouseenter: (
|
|
252
|
-
}, [
|
|
249
|
+
onMouseenter: (c) => V(c, r.raw[s.value || "name"])
|
|
250
|
+
}, [r.raw[s.value || "name"]]);
|
|
253
251
|
}
|
|
254
|
-
function
|
|
255
|
-
return
|
|
252
|
+
function H() {
|
|
253
|
+
return l.slots.itemContent ? l.slots.itemContent : B;
|
|
256
254
|
}
|
|
257
|
-
const
|
|
258
|
-
function
|
|
255
|
+
const G = H();
|
|
256
|
+
function S(r, c, L) {
|
|
259
257
|
return n("li", {
|
|
260
|
-
class:
|
|
261
|
-
id:
|
|
262
|
-
key:
|
|
263
|
-
onClick: (
|
|
264
|
-
onMouseenter: (
|
|
265
|
-
onMouseover: (
|
|
266
|
-
onMouseout: (
|
|
258
|
+
class: F(r, c),
|
|
259
|
+
id: h(r, c),
|
|
260
|
+
key: h(r, c),
|
|
261
|
+
onClick: (R) => T(r, c, R),
|
|
262
|
+
onMouseenter: (R) => u(R, r, c),
|
|
263
|
+
onMouseover: (R) => M(R, r, c),
|
|
264
|
+
onMouseout: (R) => I(R, r, c),
|
|
267
265
|
draggable: "true",
|
|
268
|
-
onDragstart: (
|
|
269
|
-
onDragenter: (
|
|
270
|
-
onDragend: (
|
|
271
|
-
onDragover: (
|
|
272
|
-
}, [
|
|
266
|
+
onDragstart: (R) => P(R, r, c),
|
|
267
|
+
onDragenter: (R) => j(R, c),
|
|
268
|
+
onDragend: (R) => C(R, r),
|
|
269
|
+
onDragover: (R) => d(R)
|
|
270
|
+
}, [b.value && n("div", {
|
|
273
271
|
class: "f-list-select",
|
|
274
|
-
onClick: (
|
|
275
|
-
}, [n(
|
|
276
|
-
id: "list-" +
|
|
272
|
+
onClick: (R) => R.stopPropagation()
|
|
273
|
+
}, [n(K, {
|
|
274
|
+
id: "list-" + h(r, c),
|
|
277
275
|
customClass: "listview-checkbox",
|
|
278
|
-
disabled:
|
|
279
|
-
checked:
|
|
280
|
-
"onUpdate:checked": (
|
|
281
|
-
onChange: (
|
|
276
|
+
disabled: r[y.value] || !r.checked,
|
|
277
|
+
checked: r.checked,
|
|
278
|
+
"onUpdate:checked": (R) => r.checked = R,
|
|
279
|
+
onChange: (R) => D(r, c, !R.checked)
|
|
282
280
|
}, null)]), n("div", {
|
|
283
281
|
class: "f-list-content"
|
|
284
|
-
}, [
|
|
282
|
+
}, [G(r)]), n("div", {
|
|
285
283
|
class: "f-list-remove",
|
|
286
|
-
onClick: (
|
|
287
|
-
|
|
284
|
+
onClick: (R) => {
|
|
285
|
+
R.stopPropagation(), i(c);
|
|
288
286
|
}
|
|
289
287
|
}, [n("div", {
|
|
290
288
|
class: "f-list-remove-icon"
|
|
@@ -297,199 +295,199 @@ function Qe(e, o, v, I, w, a, c, m, D, g) {
|
|
|
297
295
|
}, null)])])]);
|
|
298
296
|
}
|
|
299
297
|
return {
|
|
300
|
-
renderItem:
|
|
298
|
+
renderItem: S
|
|
301
299
|
};
|
|
302
300
|
}
|
|
303
|
-
function
|
|
304
|
-
var
|
|
305
|
-
const
|
|
306
|
-
collpaseGroupIconClass:
|
|
307
|
-
} =
|
|
308
|
-
toggleGroupRow:
|
|
309
|
-
} =
|
|
310
|
-
function
|
|
311
|
-
|
|
312
|
-
}
|
|
313
|
-
function
|
|
314
|
-
return
|
|
315
|
-
item:
|
|
316
|
-
index:
|
|
317
|
-
selectedItem:
|
|
301
|
+
function We(e, l, p, w, g, a, o, v, O, m) {
|
|
302
|
+
var h;
|
|
303
|
+
const b = f(((h = e.group) == null ? void 0 : h.groupFields) || []), {
|
|
304
|
+
collpaseGroupIconClass: y
|
|
305
|
+
} = g, {
|
|
306
|
+
toggleGroupRow: s
|
|
307
|
+
} = m;
|
|
308
|
+
function u(F, D) {
|
|
309
|
+
D.collapse = !D.collapse, p.value = s(D.collapse ? "collapse" : "expand", D, p.value);
|
|
310
|
+
}
|
|
311
|
+
function M(F, D, T) {
|
|
312
|
+
return l.slots.group ? n(N, null, [l.slots.content && l.slots.group({
|
|
313
|
+
item: F.raw,
|
|
314
|
+
index: D,
|
|
315
|
+
selectedItem: T
|
|
318
316
|
})]) : n("div", {
|
|
319
317
|
class: "f-navlookup-recentHeader",
|
|
320
|
-
onClick: (
|
|
318
|
+
onClick: (P) => u(P, F)
|
|
321
319
|
}, [n("div", {
|
|
322
320
|
class: "fv-grid-group-row-icon"
|
|
323
321
|
}, [n("span", {
|
|
324
|
-
class:
|
|
322
|
+
class: y(F)
|
|
325
323
|
}, null)]), n("div", {
|
|
326
324
|
class: "f-navlookup-recommandLabel"
|
|
327
|
-
}, [
|
|
325
|
+
}, [F.raw[b.value[F.layer]]])]);
|
|
328
326
|
}
|
|
329
|
-
function
|
|
330
|
-
return
|
|
327
|
+
function I(F, D, T) {
|
|
328
|
+
return F.layer > -1 && M(F, D, T);
|
|
331
329
|
}
|
|
332
330
|
return {
|
|
333
|
-
renderItem:
|
|
331
|
+
renderItem: I
|
|
334
332
|
};
|
|
335
333
|
}
|
|
336
|
-
function
|
|
337
|
-
const { dataView:
|
|
338
|
-
function
|
|
339
|
-
if (
|
|
340
|
-
if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(
|
|
334
|
+
function Ke(e, l, p, w) {
|
|
335
|
+
const { dataView: g } = p, { updateSelectedItems: a } = w;
|
|
336
|
+
function o(v) {
|
|
337
|
+
if (v > -1 && v < g.value.length) {
|
|
338
|
+
if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(g.value[v]))
|
|
341
339
|
return;
|
|
342
|
-
const
|
|
343
|
-
a(),
|
|
340
|
+
const O = g.value.splice(v, 1);
|
|
341
|
+
a(), l.emit("removeItem", O[0]);
|
|
344
342
|
}
|
|
345
343
|
}
|
|
346
|
-
return { removeItem:
|
|
344
|
+
return { removeItem: o };
|
|
347
345
|
}
|
|
348
|
-
function
|
|
349
|
-
const
|
|
346
|
+
function Xe(e, l, p, w, g, a, o, v, O, m) {
|
|
347
|
+
const b = f(e.view), y = f(e.view === "CardView"), s = f({}), u = Ke(e, l, w, O), M = x(() => ({
|
|
350
348
|
"f-list-view-group": !0,
|
|
351
349
|
"f-list-view-group-multiselect": e.multiSelect,
|
|
352
|
-
"d-flex":
|
|
353
|
-
"flex-wrap":
|
|
354
|
-
})),
|
|
355
|
-
|
|
356
|
-
function
|
|
357
|
-
return
|
|
358
|
-
}
|
|
359
|
-
const
|
|
360
|
-
renderItem:
|
|
361
|
-
} =
|
|
362
|
-
renderItem:
|
|
363
|
-
} =
|
|
364
|
-
function
|
|
365
|
-
return
|
|
366
|
-
}
|
|
367
|
-
function
|
|
350
|
+
"d-flex": y.value,
|
|
351
|
+
"flex-wrap": y.value
|
|
352
|
+
})), I = x(() => !!p.value && p.value.length > 0), h = x(() => p.value.length === 0);
|
|
353
|
+
x(() => h.value && !l.slots.empty);
|
|
354
|
+
function F() {
|
|
355
|
+
return b.value === "SingleView" ? q : b.value === "DraggableView" ? Ue : (b.value === "ContentView" || b.value === "CardView") && (e.contentTemplate || l.slots.content) ? ze : q;
|
|
356
|
+
}
|
|
357
|
+
const D = F(), {
|
|
358
|
+
renderItem: T
|
|
359
|
+
} = D(e, l, p, m, g, a, O, o, u, v), {
|
|
360
|
+
renderItem: P
|
|
361
|
+
} = We(e, l, p, m, g, a, O, o, u, v), j = [T, P];
|
|
362
|
+
function d() {
|
|
363
|
+
return p.value.filter((t) => t.visible !== !1).map((t, V) => j[t.type](t, V, s));
|
|
364
|
+
}
|
|
365
|
+
function C() {
|
|
368
366
|
return n("div", {
|
|
369
367
|
class: "f-list-view-emptydata",
|
|
370
368
|
style: "margin: 0 auto;"
|
|
371
369
|
}, [n("p", {
|
|
372
370
|
class: "f-empty-title"
|
|
373
|
-
}, [e.emptyTemplate ? e.emptyTemplate() :
|
|
371
|
+
}, [e.emptyTemplate ? e.emptyTemplate() : l.slots.empty ? l.slots.empty() : Ee.getLocaleValue("listView.emptyMessage")])]);
|
|
374
372
|
}
|
|
375
|
-
function
|
|
373
|
+
function i() {
|
|
376
374
|
return n("ul", {
|
|
377
|
-
class:
|
|
375
|
+
class: M.value,
|
|
378
376
|
style: "list-style: none;"
|
|
379
|
-
}, [
|
|
377
|
+
}, [I.value && d(), h.value && C()]);
|
|
380
378
|
}
|
|
381
379
|
return {
|
|
382
|
-
renderListArea:
|
|
380
|
+
renderListArea: i
|
|
383
381
|
};
|
|
384
382
|
}
|
|
385
|
-
function
|
|
386
|
-
function
|
|
387
|
-
return
|
|
383
|
+
function Ye(e, l, p) {
|
|
384
|
+
function w() {
|
|
385
|
+
return l.slots.header && n("div", {
|
|
388
386
|
class: "f-list-view-header"
|
|
389
|
-
}, [
|
|
387
|
+
}, [l.slots.header()]);
|
|
390
388
|
}
|
|
391
389
|
return {
|
|
392
|
-
renderHeader:
|
|
390
|
+
renderHeader: w
|
|
393
391
|
};
|
|
394
392
|
}
|
|
395
|
-
function
|
|
396
|
-
const
|
|
397
|
-
function
|
|
393
|
+
function J(e, l, p) {
|
|
394
|
+
const w = f(e.headerClass), g = f(e.placeholder), a = f(""), o = x(() => !a.value), v = x(() => !!a.value);
|
|
395
|
+
function O(s) {
|
|
398
396
|
a.value = "";
|
|
399
397
|
}
|
|
400
|
-
|
|
401
|
-
e.enableHighlightSearch &&
|
|
398
|
+
Z(a, (s) => {
|
|
399
|
+
e.enableHighlightSearch && p.search(s), l.emit("afterSearch", s);
|
|
402
400
|
});
|
|
403
|
-
const
|
|
404
|
-
const
|
|
401
|
+
const m = x(() => {
|
|
402
|
+
const s = {
|
|
405
403
|
"form-group": !0,
|
|
406
404
|
"farris-form-group": !0
|
|
407
405
|
};
|
|
408
|
-
return
|
|
406
|
+
return w.value && w.value.split(" ").reduce((M, I) => (M[I] = !0, M), s), s;
|
|
409
407
|
});
|
|
410
|
-
function s
|
|
408
|
+
function b(s) {
|
|
411
409
|
}
|
|
412
|
-
function
|
|
410
|
+
function y() {
|
|
413
411
|
return n("div", {
|
|
414
412
|
class: "f-list-view-header",
|
|
415
|
-
onClick:
|
|
413
|
+
onClick: we(() => b, ["prevent", "stop"])
|
|
416
414
|
}, [n("div", {
|
|
417
|
-
class:
|
|
415
|
+
class: m.value
|
|
418
416
|
}, [n("div", {
|
|
419
417
|
class: "farris-input-wrap"
|
|
420
418
|
}, [n("div", {
|
|
421
419
|
class: "f-cmp-inputgroup"
|
|
422
420
|
}, [n("div", {
|
|
423
421
|
class: "input-group f-state-editable"
|
|
424
|
-
}, [
|
|
422
|
+
}, [ye(n("input", {
|
|
425
423
|
class: "form-control f-utils-fill text-left",
|
|
426
|
-
"onUpdate:modelValue": (
|
|
424
|
+
"onUpdate:modelValue": (s) => a.value = s,
|
|
427
425
|
name: "input-group-value",
|
|
428
426
|
type: "text",
|
|
429
|
-
placeholder:
|
|
427
|
+
placeholder: g.value,
|
|
430
428
|
autocomplete: "off"
|
|
431
|
-
}, null), [[
|
|
429
|
+
}, null), [[Ie, a.value]]), n("div", {
|
|
432
430
|
class: "input-group-append"
|
|
433
|
-
}, [
|
|
431
|
+
}, [v.value && n("span", {
|
|
434
432
|
class: "input-group-text input-group-clear",
|
|
435
|
-
onClick: (
|
|
433
|
+
onClick: (s) => O()
|
|
436
434
|
}, [n("i", {
|
|
437
435
|
class: "f-icon f-icon-close-circle"
|
|
438
|
-
}, null)]),
|
|
436
|
+
}, null)]), o.value && n("span", {
|
|
439
437
|
class: "input-group-text"
|
|
440
438
|
}, [n("span", {
|
|
441
439
|
class: "f-icon f-icon-search"
|
|
442
440
|
}, null)])])])])])])]);
|
|
443
441
|
}
|
|
444
442
|
return {
|
|
445
|
-
renderHeader:
|
|
443
|
+
renderHeader: y
|
|
446
444
|
};
|
|
447
445
|
}
|
|
448
|
-
function
|
|
449
|
-
const e =
|
|
450
|
-
function a(
|
|
451
|
-
|
|
446
|
+
function $e() {
|
|
447
|
+
const e = f(""), l = f(-1), p = f(""), w = f(-1), g = f(!1);
|
|
448
|
+
function a(y, s, u) {
|
|
449
|
+
w.value = u;
|
|
452
450
|
}
|
|
453
|
-
function
|
|
454
|
-
|
|
451
|
+
function o(y, s, u) {
|
|
452
|
+
g.value || (w.value = u);
|
|
455
453
|
}
|
|
456
|
-
function
|
|
457
|
-
|
|
454
|
+
function v(y, s, u) {
|
|
455
|
+
w.value = -1;
|
|
458
456
|
}
|
|
459
|
-
function
|
|
460
|
-
|
|
457
|
+
function O() {
|
|
458
|
+
g.value = !0;
|
|
461
459
|
}
|
|
462
|
-
function
|
|
463
|
-
|
|
460
|
+
function m() {
|
|
461
|
+
g.value = !1;
|
|
464
462
|
}
|
|
465
|
-
function
|
|
466
|
-
|
|
463
|
+
function b() {
|
|
464
|
+
l.value = -1, e.value = "";
|
|
467
465
|
}
|
|
468
466
|
return {
|
|
469
|
-
activeIndex:
|
|
470
|
-
focusedItemId:
|
|
471
|
-
hoverIndex:
|
|
472
|
-
clearActiveItem:
|
|
467
|
+
activeIndex: l,
|
|
468
|
+
focusedItemId: p,
|
|
469
|
+
hoverIndex: w,
|
|
470
|
+
clearActiveItem: b,
|
|
473
471
|
onMouseenterItem: a,
|
|
474
|
-
onMouseoverItem:
|
|
475
|
-
onMouseoutItem:
|
|
476
|
-
resumeHover:
|
|
477
|
-
suspendHover:
|
|
472
|
+
onMouseoverItem: o,
|
|
473
|
+
onMouseoutItem: v,
|
|
474
|
+
resumeHover: m,
|
|
475
|
+
suspendHover: O
|
|
478
476
|
};
|
|
479
477
|
}
|
|
480
|
-
function
|
|
481
|
-
const
|
|
482
|
-
let
|
|
483
|
-
function
|
|
484
|
-
const
|
|
485
|
-
|
|
486
|
-
}
|
|
487
|
-
function
|
|
488
|
-
const { left:
|
|
478
|
+
function qe(e, l, p, w) {
|
|
479
|
+
const g = f(e.idField), { dataView: a } = p, o = f(-1), v = f(!1), { activeIndex: O, focusedItemId: m, hoverIndex: b, resumeHover: y, suspendHover: s } = w;
|
|
480
|
+
let u, M = 0, I = 0;
|
|
481
|
+
function h(d, C) {
|
|
482
|
+
const i = d - M, t = C - I;
|
|
483
|
+
u.style.left = parseInt(u.style.left) + i + "px", u.style.top = parseInt(u.style.top) + t + "px", M = d, I = C;
|
|
484
|
+
}
|
|
485
|
+
function F(d) {
|
|
486
|
+
const { left: C, top: i } = d.getBoundingClientRect(), t = d.cloneNode(!0);
|
|
489
487
|
return t.className = t.className + " f-listview-drag-moving", t.style.cssText = `
|
|
490
488
|
position:absolute;
|
|
491
|
-
left:${
|
|
492
|
-
top:${document.documentElement.scrollTop ?
|
|
489
|
+
left:${C}px;
|
|
490
|
+
top:${document.documentElement.scrollTop ? i + document.documentElement.scrollTop : i}px;
|
|
493
491
|
z-index: 999999;
|
|
494
492
|
pointer-events: none;
|
|
495
493
|
border-radius: 10px;
|
|
@@ -498,229 +496,229 @@ function at(e, o, v, I) {
|
|
|
498
496
|
align-items: center;
|
|
499
497
|
float: none;
|
|
500
498
|
text-align: initial;
|
|
501
|
-
width:${getComputedStyle(
|
|
502
|
-
height:${getComputedStyle(
|
|
499
|
+
width:${getComputedStyle(d).width};
|
|
500
|
+
height:${getComputedStyle(d).height};
|
|
503
501
|
`, t.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", t.children[0].children[0].style.cssText = `
|
|
504
502
|
margin: 10px 0px 10px 14px;
|
|
505
503
|
overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
|
|
506
504
|
`, t.children[1].style.cssText = "width: 30px;padding: 0 14px 0 0", t.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(t), t;
|
|
507
505
|
}
|
|
508
|
-
function
|
|
509
|
-
if (
|
|
510
|
-
if (
|
|
506
|
+
function D(d, C, i) {
|
|
507
|
+
if (d.stopPropagation(), s(), C) {
|
|
508
|
+
if (u = F(d.target), d.dataTransfer) {
|
|
511
509
|
const t = new Image();
|
|
512
|
-
t.src = "",
|
|
510
|
+
t.src = "", d.dataTransfer.setDragImage(t, 0, 0);
|
|
513
511
|
}
|
|
514
|
-
|
|
515
|
-
|
|
512
|
+
M = d.pageX, I = d.pageY, setTimeout(() => {
|
|
513
|
+
o.value = i, v.value = !0, C.moving = !0;
|
|
516
514
|
});
|
|
517
515
|
}
|
|
518
516
|
}
|
|
519
|
-
function
|
|
520
|
-
if (
|
|
521
|
-
const
|
|
522
|
-
t.splice(
|
|
517
|
+
function T(d, C) {
|
|
518
|
+
if (d.preventDefault(), o.value !== C) {
|
|
519
|
+
const i = a.value[o.value], t = a.value;
|
|
520
|
+
t.splice(o.value, 1), t.splice(C, 0, i), o.value = C, h(d.pageX, d.pageY);
|
|
523
521
|
}
|
|
524
522
|
}
|
|
525
|
-
function
|
|
526
|
-
|
|
523
|
+
function P(d) {
|
|
524
|
+
d.preventDefault(), d.dataTransfer && (d.dataTransfer.dropEffect = "move"), h(d.pageX, d.pageY);
|
|
527
525
|
}
|
|
528
|
-
function
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
}),
|
|
526
|
+
function j(d, C) {
|
|
527
|
+
C && (C.moving = !1, u && (document.body.removeChild(u), u = null)), a.value.forEach((i, t) => {
|
|
528
|
+
i.__fv_index__ = t;
|
|
529
|
+
}), v.value = !1, y(), b.value = C.raw.__fv_index__, O.value = C.raw.__fv_index__, m.value = C.raw[g.value], l.emit("change", a.value), l.emit("activeChange", [C.raw]);
|
|
532
530
|
}
|
|
533
531
|
return {
|
|
534
|
-
dragstart:
|
|
535
|
-
dragenter:
|
|
536
|
-
dragover:
|
|
537
|
-
dragend:
|
|
538
|
-
isDragging:
|
|
532
|
+
dragstart: D,
|
|
533
|
+
dragenter: T,
|
|
534
|
+
dragover: P,
|
|
535
|
+
dragend: j,
|
|
536
|
+
isDragging: v
|
|
539
537
|
};
|
|
540
538
|
}
|
|
541
|
-
function
|
|
542
|
-
const
|
|
543
|
-
|
|
544
|
-
const
|
|
545
|
-
let
|
|
546
|
-
return
|
|
539
|
+
function Je(e, l, p, w, g, a) {
|
|
540
|
+
const o = f(e.idField), v = f(e.disableField), O = f(e.draggable);
|
|
541
|
+
f(e.itemClass);
|
|
542
|
+
const m = f(e.selection.multiSelect ?? !1), b = f(e.selection.multiSelectMode), { isDragging: y } = w, { activeIndex: s, focusedItemId: u, hoverIndex: M } = g, { clearSelection: I, getSelectedItems: h, toggleSelectItem: F, currentSelectedDataId: D } = a, T = f(h()), P = (S) => T.value.length === 0 ? !1 : T.value.some((r) => {
|
|
543
|
+
let c = "";
|
|
544
|
+
return r.data ? c = r.data[o.value] : c = r[o.value], c === S;
|
|
547
545
|
});
|
|
548
|
-
function
|
|
549
|
-
|
|
546
|
+
function j() {
|
|
547
|
+
T.value = h();
|
|
550
548
|
}
|
|
551
|
-
function
|
|
552
|
-
return
|
|
549
|
+
function d(S, r) {
|
|
550
|
+
return S.raw[o.value] != null ? S.raw[o.value] : "";
|
|
553
551
|
}
|
|
554
|
-
function
|
|
555
|
-
const
|
|
552
|
+
function C(S, r) {
|
|
553
|
+
const c = {
|
|
556
554
|
"f-list-view-group-item": !0,
|
|
557
|
-
"f-list-view-draggable-item":
|
|
558
|
-
"f-un-click": !
|
|
559
|
-
"f-un-select": !!
|
|
555
|
+
"f-list-view-draggable-item": O.value,
|
|
556
|
+
"f-un-click": !S.checked,
|
|
557
|
+
"f-un-select": !!S.raw[v.value],
|
|
560
558
|
"f-listview-active": (
|
|
561
559
|
// 多选
|
|
562
|
-
|
|
563
|
-
!
|
|
560
|
+
m.value && P(d(S)) || // 单选
|
|
561
|
+
!m.value && S.raw[o.value] === D.value
|
|
564
562
|
),
|
|
565
|
-
"f-listview-hover": !
|
|
566
|
-
moving: !!
|
|
563
|
+
"f-listview-hover": !y.value && r === M.value,
|
|
564
|
+
moving: !!S.moving
|
|
567
565
|
};
|
|
568
566
|
if (typeof e.itemClass == "string")
|
|
569
|
-
return W(
|
|
567
|
+
return W(c, e.itemClass);
|
|
570
568
|
if (typeof e.itemClass == "function") {
|
|
571
|
-
const
|
|
572
|
-
return W(
|
|
569
|
+
const L = e.itemClass(S);
|
|
570
|
+
return W(c, L);
|
|
573
571
|
}
|
|
574
|
-
return
|
|
572
|
+
return c;
|
|
575
573
|
}
|
|
576
|
-
function
|
|
577
|
-
const
|
|
574
|
+
function i(S, r) {
|
|
575
|
+
const c = {};
|
|
578
576
|
if (typeof e.itemStyle == "string")
|
|
579
|
-
return
|
|
577
|
+
return $(c, e.itemStyle);
|
|
580
578
|
if (typeof e.itemStyle == "function") {
|
|
581
|
-
const
|
|
582
|
-
return
|
|
579
|
+
const L = e.itemStyle(S);
|
|
580
|
+
return $(c, L);
|
|
583
581
|
}
|
|
584
|
-
return
|
|
582
|
+
return c;
|
|
585
583
|
}
|
|
586
|
-
const t =
|
|
587
|
-
function
|
|
588
|
-
|
|
584
|
+
const t = x(() => !m.value);
|
|
585
|
+
function V(S, r, c) {
|
|
586
|
+
S.checked = c, !S.raw[v.value] && (t.value && (u.value = S.raw[o.value]), F(S));
|
|
589
587
|
}
|
|
590
|
-
const
|
|
591
|
-
function
|
|
592
|
-
if (
|
|
593
|
-
|
|
588
|
+
const B = x(() => m.value && b.value === "OnCheckClearByClick"), H = x(() => !m.value || m.value && (b.value === "OnCheckAndClick" || b.value === "OnClick"));
|
|
589
|
+
function G(S, r, c) {
|
|
590
|
+
if (S.raw[v.value]) {
|
|
591
|
+
c == null || c.preventDefault(), c == null || c.stopPropagation();
|
|
594
592
|
return;
|
|
595
593
|
}
|
|
596
|
-
|
|
594
|
+
D.value = S.raw[o.value], u.value = S.raw[o.value], s.value = r, B.value && I(), H.value && (F(S), j()), l.emit("clickItem", { data: T.value, index: r, dataItem: S.raw }), l.emit("activeChange", T.value);
|
|
597
595
|
}
|
|
598
596
|
return {
|
|
599
|
-
getKey:
|
|
600
|
-
selectedItems:
|
|
601
|
-
listViewItemClass:
|
|
602
|
-
listViewItemStyle:
|
|
603
|
-
updateSelectedItems:
|
|
604
|
-
onCheckItem:
|
|
605
|
-
onClickItem:
|
|
597
|
+
getKey: d,
|
|
598
|
+
selectedItems: T,
|
|
599
|
+
listViewItemClass: C,
|
|
600
|
+
listViewItemStyle: i,
|
|
601
|
+
updateSelectedItems: j,
|
|
602
|
+
onCheckItem: V,
|
|
603
|
+
onClickItem: G
|
|
606
604
|
};
|
|
607
605
|
}
|
|
608
|
-
const U = /* @__PURE__ */
|
|
606
|
+
const U = /* @__PURE__ */ ee({
|
|
609
607
|
name: "FListView",
|
|
610
|
-
props:
|
|
608
|
+
props: te,
|
|
611
609
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
|
|
612
|
-
setup(e,
|
|
613
|
-
const
|
|
610
|
+
setup(e, l) {
|
|
611
|
+
const p = f(), w = f(!0), g = f(!1), a = f([]), o = 0, v = f(e.columns), O = Se(e, l), m = ke(e), b = be(e), y = Ve(e, m), s = Fe(e, /* @__PURE__ */ new Map(), O, b, m), u = De(e, s, m, a, l), M = Ne(e, p), I = Me(e, s), h = x(() => s.dataView.value.length), F = Re(e, l, u, m), D = Te(e, l, m, F, a), T = Oe(e), P = Be(e, {}, T), j = He(e, s, D, b, m, T, P), d = Pe(e, m, P, j), C = xe(e, m, P, j), i = je(e, v, s, h, o, j, d, C), {
|
|
614
612
|
getVisualData: t
|
|
615
|
-
} =
|
|
616
|
-
a.value = t(0,
|
|
617
|
-
const
|
|
618
|
-
const
|
|
613
|
+
} = i;
|
|
614
|
+
a.value = t(0, h.value + o - 1);
|
|
615
|
+
const V = x(() => {
|
|
616
|
+
const k = {
|
|
619
617
|
"f-list-view": !0,
|
|
620
618
|
"f-list-view-multiple": e.multiSelect
|
|
621
619
|
};
|
|
622
|
-
return e.size !== "default" && (
|
|
623
|
-
}),
|
|
624
|
-
function
|
|
625
|
-
return e.header === "SearchBar" ?
|
|
620
|
+
return e.size !== "default" && (k[`${e.size}-item`] = !0), W(k, e.customClass);
|
|
621
|
+
}), B = x(() => !!l.slots.footer || w.value);
|
|
622
|
+
function H() {
|
|
623
|
+
return e.header === "SearchBar" ? J : e.header === "ContentHeader" ? Ye : J;
|
|
626
624
|
}
|
|
627
|
-
const
|
|
628
|
-
renderHeader:
|
|
629
|
-
} =
|
|
630
|
-
renderListArea:
|
|
631
|
-
} =
|
|
632
|
-
function
|
|
633
|
-
|
|
625
|
+
const G = H(), {
|
|
626
|
+
renderHeader: S
|
|
627
|
+
} = G(e, l, M), r = $e(), c = qe(e, l, s, r), L = Je(e, l, a, c, r, u), {
|
|
628
|
+
renderListArea: R
|
|
629
|
+
} = Xe(e, l, a, s, y, r, u, i, L, c);
|
|
630
|
+
function ne(k) {
|
|
631
|
+
M.search(k);
|
|
634
632
|
}
|
|
635
|
-
function
|
|
636
|
-
|
|
633
|
+
function le(k) {
|
|
634
|
+
k && (s.load(k), a.value = t(0, h.value + o - 1));
|
|
637
635
|
}
|
|
638
|
-
function
|
|
639
|
-
|
|
636
|
+
function ae() {
|
|
637
|
+
u.clearSelection(), r.clearActiveItem();
|
|
640
638
|
}
|
|
641
|
-
function
|
|
642
|
-
return
|
|
639
|
+
function oe() {
|
|
640
|
+
return L.selectedItems.value;
|
|
643
641
|
}
|
|
644
|
-
function
|
|
645
|
-
return
|
|
642
|
+
function se() {
|
|
643
|
+
return L.selectedItems.value.map((k) => k[m.idField.value]);
|
|
646
644
|
}
|
|
647
|
-
function
|
|
648
|
-
|
|
645
|
+
function X(k) {
|
|
646
|
+
u.selectedValues.value = k, L.updateSelectedItems();
|
|
649
647
|
}
|
|
650
|
-
function
|
|
651
|
-
return
|
|
648
|
+
function ie() {
|
|
649
|
+
return u.currentSelectedDataId.value;
|
|
652
650
|
}
|
|
653
|
-
function
|
|
654
|
-
|
|
651
|
+
function ue(k) {
|
|
652
|
+
F.activeRowById(k);
|
|
655
653
|
}
|
|
656
|
-
function
|
|
657
|
-
const
|
|
658
|
-
A &&
|
|
654
|
+
function ce(k) {
|
|
655
|
+
const _ = m.idField.value, A = a.value.find((z) => z.raw[_] === k), E = a.value.findIndex((z) => z.raw[_] === k);
|
|
656
|
+
A && E > -1 && L.onClickItem(A, E);
|
|
659
657
|
}
|
|
660
|
-
function
|
|
661
|
-
const
|
|
662
|
-
A &&
|
|
658
|
+
function re(k) {
|
|
659
|
+
const _ = m.idField.value, A = a.value.find((E) => E.raw[_] === k);
|
|
660
|
+
A && F.changeRow(A);
|
|
663
661
|
}
|
|
664
|
-
function
|
|
665
|
-
|
|
662
|
+
function de(k) {
|
|
663
|
+
I.updatePagination(k);
|
|
666
664
|
}
|
|
667
|
-
function
|
|
668
|
-
return a.value.filter((
|
|
665
|
+
function fe(k) {
|
|
666
|
+
return a.value.filter((_) => k.includes(_.raw[e.idField]));
|
|
669
667
|
}
|
|
670
|
-
|
|
671
|
-
search:
|
|
672
|
-
updateDataSource:
|
|
673
|
-
clearSelection:
|
|
674
|
-
getSelections:
|
|
675
|
-
updateSelectionByIds:
|
|
676
|
-
getSelectionIds:
|
|
677
|
-
activeRowById:
|
|
678
|
-
getCurrentRowId:
|
|
679
|
-
clickRowItemById:
|
|
680
|
-
updatePagination:
|
|
681
|
-
getVisibleDataByIds:
|
|
682
|
-
selectRowById:
|
|
668
|
+
l.expose({
|
|
669
|
+
search: ne,
|
|
670
|
+
updateDataSource: le,
|
|
671
|
+
clearSelection: ae,
|
|
672
|
+
getSelections: oe,
|
|
673
|
+
updateSelectionByIds: X,
|
|
674
|
+
getSelectionIds: se,
|
|
675
|
+
activeRowById: ue,
|
|
676
|
+
getCurrentRowId: ie,
|
|
677
|
+
clickRowItemById: ce,
|
|
678
|
+
updatePagination: de,
|
|
679
|
+
getVisibleDataByIds: fe,
|
|
680
|
+
selectRowById: re
|
|
683
681
|
});
|
|
684
|
-
function
|
|
685
|
-
e.multiSelect && (
|
|
682
|
+
function ve(k) {
|
|
683
|
+
e.multiSelect && (k.preventDefault(), k.stopPropagation());
|
|
686
684
|
}
|
|
687
|
-
|
|
688
|
-
|
|
685
|
+
Z(() => e.selectionValues, (k, _) => {
|
|
686
|
+
k !== _ && X(k);
|
|
689
687
|
});
|
|
690
|
-
const
|
|
691
|
-
sidebarWidth:
|
|
692
|
-
showSidebarCheckBox:
|
|
693
|
-
} =
|
|
694
|
-
applyColumnSorter:
|
|
695
|
-
columnContext:
|
|
696
|
-
updateColumnRenderContext:
|
|
697
|
-
} =
|
|
698
|
-
shouldRenderPagination:
|
|
699
|
-
} =
|
|
700
|
-
renderDataGridPagination:
|
|
701
|
-
} =
|
|
688
|
+
const me = Le(e, u), {
|
|
689
|
+
sidebarWidth: ge,
|
|
690
|
+
showSidebarCheckBox: Qe
|
|
691
|
+
} = me, he = _e(e, l), {
|
|
692
|
+
applyColumnSorter: Ze,
|
|
693
|
+
columnContext: Ce,
|
|
694
|
+
updateColumnRenderContext: et
|
|
695
|
+
} = he, pe = Ge(e, s, a, Ce, i, h, o, ge, D), {
|
|
696
|
+
shouldRenderPagination: tt
|
|
697
|
+
} = I, {
|
|
698
|
+
renderDataGridPagination: nt
|
|
699
|
+
} = Ae(e, l, s, pe, I, u);
|
|
702
700
|
return () => n("div", {
|
|
703
|
-
class:
|
|
704
|
-
onClick:
|
|
705
|
-
}, [
|
|
706
|
-
ref:
|
|
701
|
+
class: V.value,
|
|
702
|
+
onClick: ve
|
|
703
|
+
}, [S(), n("div", {
|
|
704
|
+
ref: p,
|
|
707
705
|
class: "f-list-view-content",
|
|
708
706
|
onMouseover: () => {
|
|
709
|
-
|
|
707
|
+
g.value = !0;
|
|
710
708
|
},
|
|
711
709
|
onMouseleave: () => {
|
|
712
|
-
|
|
710
|
+
g.value = !1;
|
|
713
711
|
}
|
|
714
|
-
}, [
|
|
712
|
+
}, [R()]), B.value && n("div", {
|
|
715
713
|
class: "f-list-view-footer"
|
|
716
|
-
}, [e.footerTemplate ? e.footerTemplate() :
|
|
714
|
+
}, [e.footerTemplate ? e.footerTemplate() : l.slots.footer && l.slots.footer()])]);
|
|
717
715
|
}
|
|
718
|
-
}),
|
|
716
|
+
}), Q = /* @__PURE__ */ ee({
|
|
719
717
|
name: "FListViewTable",
|
|
720
|
-
props:
|
|
718
|
+
props: te,
|
|
721
719
|
emits: ["outputValue", "currentEvent", "selectionChanged"],
|
|
722
|
-
setup(e,
|
|
723
|
-
const
|
|
720
|
+
setup(e, l) {
|
|
721
|
+
const p = [{
|
|
724
722
|
name: "任芳",
|
|
725
723
|
code: "1.PO20198989001",
|
|
726
724
|
date: "2024-02-19",
|
|
@@ -755,10 +753,10 @@ const U = /* @__PURE__ */ te({
|
|
|
755
753
|
desc: "导游5",
|
|
756
754
|
amount: 84.13,
|
|
757
755
|
avatar: "./assets/avatar5.png"
|
|
758
|
-
}],
|
|
756
|
+
}], w = x(() => e.data.length > 0 ? e.data : p);
|
|
759
757
|
return () => {
|
|
760
|
-
var
|
|
761
|
-
return n(
|
|
758
|
+
var g;
|
|
759
|
+
return n(N, null, [(g = w.value) == null ? void 0 : g.map((a) => n("div", {
|
|
762
760
|
class: "f-template-listview-row"
|
|
763
761
|
}, [n("div", {
|
|
764
762
|
class: "list-view-item-title"
|
|
@@ -780,239 +778,22 @@ const U = /* @__PURE__ */ te({
|
|
|
780
778
|
class: "content-message"
|
|
781
779
|
}, [n("div", {
|
|
782
780
|
class: "ower"
|
|
783
|
-
}, [n("p", null, [
|
|
781
|
+
}, [n("p", null, [Y("创建人")]), n("p", {
|
|
784
782
|
class: "con"
|
|
785
783
|
}, [a.name])]), n("div", {
|
|
786
784
|
class: "date"
|
|
787
|
-
}, [n("p", null, [
|
|
785
|
+
}, [n("p", null, [Y("创建时间")]), n("p", {
|
|
788
786
|
class: "con"
|
|
789
787
|
}, [a.date])])])])]))]);
|
|
790
788
|
};
|
|
791
789
|
}
|
|
792
|
-
})
|
|
793
|
-
["appearance", qe]
|
|
794
|
-
]), lt = "root-viewmodel";
|
|
795
|
-
function it(e, o) {
|
|
796
|
-
const {
|
|
797
|
-
formSchemaUtils: v,
|
|
798
|
-
designViewModelUtils: I
|
|
799
|
-
} = o;
|
|
800
|
-
function w(s) {
|
|
801
|
-
return {
|
|
802
|
-
id: `${s.componentId}-component-viewmodel`,
|
|
803
|
-
code: `${s.componentId}-component-viewmodel`,
|
|
804
|
-
name: s.componentName,
|
|
805
|
-
bindTo: s.bindTo,
|
|
806
|
-
parent: lt,
|
|
807
|
-
fields: [],
|
|
808
|
-
commands: [],
|
|
809
|
-
states: [],
|
|
810
|
-
enableValidation: !0
|
|
811
|
-
};
|
|
812
|
-
}
|
|
813
|
-
function a(s) {
|
|
814
|
-
const r = e.getSchemaByType("component-ref");
|
|
815
|
-
return Object.assign(r, {
|
|
816
|
-
id: `${s.componentId}-component-ref`,
|
|
817
|
-
component: `${s.componentId}-component`
|
|
818
|
-
}), r;
|
|
819
|
-
}
|
|
820
|
-
function c(s, r, i) {
|
|
821
|
-
var f, b, V, R;
|
|
822
|
-
const l = (b = (f = r == null ? void 0 : r.parentComponentInstance) == null ? void 0 : f.schema) == null ? void 0 : b.type, C = (R = (V = v.getFormSchema()) == null ? void 0 : V.module) == null ? void 0 : R.templateId;
|
|
823
|
-
if (["double-list-template", "tree-list-template", "list-template"].includes(C))
|
|
824
|
-
return s;
|
|
825
|
-
const S = [E["content-container"].type, E["response-layout-item"].type, E["splitter-pane"].type, E.drawer.type];
|
|
826
|
-
if (l && S.includes(l)) {
|
|
827
|
-
const B = e.getSchemaByType(
|
|
828
|
-
"section",
|
|
829
|
-
{
|
|
830
|
-
parentComponentInstance: r.parentComponentInstance,
|
|
831
|
-
mainTitle: r.componentName
|
|
832
|
-
},
|
|
833
|
-
o
|
|
834
|
-
);
|
|
835
|
-
if (B && B.contents && B.contents.length) {
|
|
836
|
-
const P = B.contents[0];
|
|
837
|
-
return P.contents = [s], B;
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
return s;
|
|
841
|
-
}
|
|
842
|
-
function m(s) {
|
|
843
|
-
var C, S, f;
|
|
844
|
-
const r = e.getSchemaByType("list-view");
|
|
845
|
-
let i = !1;
|
|
846
|
-
const l = (f = (S = (C = s.parentComponentInstance) == null ? void 0 : C.schema) == null ? void 0 : S.appearance) == null ? void 0 : f.class;
|
|
847
|
-
return l && l.includes("f-page-main") && (i = !0), Object.assign(r, {
|
|
848
|
-
id: s.componentId + "-listView",
|
|
849
|
-
appearance: {
|
|
850
|
-
class: i ? "" : "f-grid-is-sub"
|
|
851
|
-
},
|
|
852
|
-
type: "list-view",
|
|
853
|
-
dataSource: s.dataSource || "",
|
|
854
|
-
pagination: {
|
|
855
|
-
enable: !1
|
|
856
|
-
}
|
|
857
|
-
}), [r];
|
|
858
|
-
}
|
|
859
|
-
function D(s) {
|
|
860
|
-
var S, f, b;
|
|
861
|
-
const r = e.getSchemaByType("component"), i = m(s);
|
|
862
|
-
let l = !1;
|
|
863
|
-
const C = (b = (f = (S = s.parentComponentInstance) == null ? void 0 : S.schema) == null ? void 0 : f.appearance) == null ? void 0 : b.class;
|
|
864
|
-
return C && C.includes("f-page-main") && (l = !0), Object.assign(r, {
|
|
865
|
-
id: `${s.componentId}-component`,
|
|
866
|
-
viewModel: `${s.componentId}-component-viewmodel`,
|
|
867
|
-
componentType: s.componentType,
|
|
868
|
-
contents: i,
|
|
869
|
-
appearance: {
|
|
870
|
-
class: l ? "f-struct-wrapper f-utils-fill-flex-column" : ""
|
|
871
|
-
}
|
|
872
|
-
}), r;
|
|
873
|
-
}
|
|
874
|
-
function g(s) {
|
|
875
|
-
const r = a(s), i = D(s), l = w(s), C = v.getFormSchema();
|
|
876
|
-
return C.module.viewmodels.push(l), C.module.components.push(i), I.assembleDesignViewModel(), c(r, s);
|
|
877
|
-
}
|
|
878
|
-
return { createComponent: g };
|
|
879
|
-
}
|
|
880
|
-
function ae(e, o, v, I) {
|
|
881
|
-
var a, c, m, D, g, s;
|
|
882
|
-
const w = v.parentComponentInstance;
|
|
883
|
-
if (w && I) {
|
|
884
|
-
const r = Math.random().toString(36).slice(2, 6), i = {
|
|
885
|
-
componentId: `list-view-${r}`,
|
|
886
|
-
componentName: ((a = v.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((m = (c = v.bindingSourceContext) == null ? void 0 : c.bindingEntity) == null ? void 0 : m.name) || `列表-${r}`,
|
|
887
|
-
componentType: "list-view",
|
|
888
|
-
parentContainerId: w.schema.id,
|
|
889
|
-
parentComponentInstance: w,
|
|
890
|
-
// editable: true,
|
|
891
|
-
bindTo: ((D = v.bindingSourceContext) == null ? void 0 : D.bindTo) || "",
|
|
892
|
-
dataSource: (s = (g = v.bindingSourceContext) == null ? void 0 : g.bindingEntity) == null ? void 0 : s.label
|
|
893
|
-
// selectedFields: context.bindingSourceContext?.bindingEntityFields
|
|
894
|
-
}, { createComponent: l } = it(e, I);
|
|
895
|
-
return l(i);
|
|
896
|
-
} else
|
|
897
|
-
return o;
|
|
898
|
-
}
|
|
899
|
-
const ct = "https://json-schema.org/draft/2020-12/schema", rt = "https://farris-design.gitee.io/list-view-table.schema.json", ut = "list-view-table", dt = "A Farris Component", mt = "object", ft = {
|
|
900
|
-
id: {
|
|
901
|
-
description: "The unique identifier for list-view-table",
|
|
902
|
-
type: "string"
|
|
903
|
-
},
|
|
904
|
-
type: {
|
|
905
|
-
description: "The type string of list-view-table",
|
|
906
|
-
type: "string",
|
|
907
|
-
default: "list-view-table"
|
|
908
|
-
},
|
|
909
|
-
appearance: {
|
|
910
|
-
description: "",
|
|
911
|
-
type: "object",
|
|
912
|
-
properties: {
|
|
913
|
-
class: {
|
|
914
|
-
type: "string"
|
|
915
|
-
},
|
|
916
|
-
style: {
|
|
917
|
-
type: "string"
|
|
918
|
-
}
|
|
919
|
-
},
|
|
920
|
-
default: {}
|
|
921
|
-
},
|
|
922
|
-
binding: {
|
|
923
|
-
description: "",
|
|
924
|
-
type: "object",
|
|
925
|
-
default: {}
|
|
926
|
-
},
|
|
927
|
-
disable: {
|
|
928
|
-
type: "string",
|
|
929
|
-
default: !1
|
|
930
|
-
},
|
|
931
|
-
editable: {
|
|
932
|
-
description: "",
|
|
933
|
-
type: "boolean",
|
|
934
|
-
default: !0
|
|
935
|
-
},
|
|
936
|
-
placeholder: {
|
|
937
|
-
description: "",
|
|
938
|
-
type: "string",
|
|
939
|
-
default: ""
|
|
940
|
-
},
|
|
941
|
-
readonly: {
|
|
942
|
-
description: "",
|
|
943
|
-
type: "boolean",
|
|
944
|
-
default: !1
|
|
945
|
-
},
|
|
946
|
-
require: {
|
|
947
|
-
description: "",
|
|
948
|
-
type: "boolean",
|
|
949
|
-
default: !1
|
|
950
|
-
},
|
|
951
|
-
tabindex: {
|
|
952
|
-
description: "",
|
|
953
|
-
type: "number",
|
|
954
|
-
default: -1
|
|
955
|
-
},
|
|
956
|
-
visible: {
|
|
957
|
-
description: "",
|
|
958
|
-
type: "boolean",
|
|
959
|
-
default: !0
|
|
960
|
-
}
|
|
961
|
-
}, pt = [
|
|
962
|
-
"id",
|
|
963
|
-
"type"
|
|
964
|
-
], se = {
|
|
965
|
-
$schema: ct,
|
|
966
|
-
$id: rt,
|
|
967
|
-
title: ut,
|
|
968
|
-
description: dt,
|
|
969
|
-
type: mt,
|
|
970
|
-
properties: ft,
|
|
971
|
-
required: pt
|
|
972
|
-
}, vt = "list-view-table", gt = "A Farris Component", ht = "object", Ct = {
|
|
973
|
-
basic: {
|
|
974
|
-
description: "Basic Infomation",
|
|
975
|
-
title: "基本信息",
|
|
976
|
-
properties: {
|
|
977
|
-
id: {
|
|
978
|
-
description: "组件标识",
|
|
979
|
-
title: "标识",
|
|
980
|
-
type: "string",
|
|
981
|
-
readonly: !0
|
|
982
|
-
},
|
|
983
|
-
type: {
|
|
984
|
-
description: "组件类型",
|
|
985
|
-
title: "控件类型",
|
|
986
|
-
type: "select",
|
|
987
|
-
editor: {
|
|
988
|
-
type: "waiting for modification",
|
|
989
|
-
enum: []
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
}, yt = {
|
|
995
|
-
title: vt,
|
|
996
|
-
description: gt,
|
|
997
|
-
type: ht,
|
|
998
|
-
categories: Ct
|
|
999
|
-
}, le = {
|
|
1000
|
-
data: { type: Array, default: [] }
|
|
1001
|
-
}, Bt = Ke(le, se, oe, ae, yt), jt = Xe(
|
|
1002
|
-
le,
|
|
1003
|
-
se,
|
|
1004
|
-
oe,
|
|
1005
|
-
ae
|
|
1006
|
-
);
|
|
790
|
+
});
|
|
1007
791
|
U.install = (e) => {
|
|
1008
|
-
e.component(U.name, U), e.component(
|
|
792
|
+
e.component(U.name, U), e.component(Q.name, Q);
|
|
1009
793
|
};
|
|
1010
794
|
export {
|
|
1011
795
|
U as FListView,
|
|
1012
|
-
|
|
796
|
+
Q as FListViewTable,
|
|
1013
797
|
U as default,
|
|
1014
|
-
|
|
1015
|
-
le as listViewTableProps,
|
|
1016
|
-
Bt as propsResolver2,
|
|
1017
|
-
jt as propsResolverGenerator2
|
|
798
|
+
te as listViewProps
|
|
1018
799
|
};
|