@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,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 r, computed as P, createVNode as n, Fragment as z, watch as te, withModifiers as Se, withDirectives as ke, vModelText as be, defineComponent as ne, createTextVNode as q } from "vue";
|
|
2
|
+
import { getCustomStyle as J, getCustomClass as K } from "../common/index.esm.js";
|
|
3
|
+
import { useFilter as Ve, useIdentify as Fe, useHierarchy as De, useGroupData as Me, useDataView as Oe, useSelection as Re, usePagination as Te, useRow as Be, useEdit as He, useVisualDataBound as Pe, useVisualDataCell as xe, useVisualDataRow as je, useVisualGroupRow as Le, useVisualSummaryRow as _e, useVisualData as Ge, useSidebar as Ae, useColumn as Ee, useVirtualScroll as Ne, getPagination as ze } from "../data-view/index.esm.js";
|
|
4
|
+
import { LocaleService as Ue } from "../locale/index.esm.js";
|
|
5
|
+
import { FCheckbox as X } from "../checkbox/index.esm.js";
|
|
6
|
+
const le = {
|
|
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 We(e, l) {
|
|
75
|
+
function I(a) {
|
|
76
|
+
const s = [];
|
|
77
|
+
let o = a.nextNode();
|
|
78
|
+
for (; o; )
|
|
79
|
+
s.push(o), o = a.nextNode();
|
|
80
|
+
return s;
|
|
83
81
|
}
|
|
84
|
-
function
|
|
85
|
-
const
|
|
86
|
-
return
|
|
87
|
-
const
|
|
88
|
-
let
|
|
89
|
-
for (;
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
82
|
+
function p(a, s) {
|
|
83
|
+
const o = document.createTreeWalker(a, NodeFilter.SHOW_TEXT);
|
|
84
|
+
return I(o).map((d) => ({ textNode: d, text: (d.textContent || "").toLocaleLowerCase() })).map(({ textNode: d, text: v }) => {
|
|
85
|
+
const g = [];
|
|
86
|
+
let m = 0;
|
|
87
|
+
for (; m < v.length; ) {
|
|
88
|
+
const h = v.indexOf(s, m);
|
|
89
|
+
if (h === -1)
|
|
92
90
|
break;
|
|
93
|
-
|
|
91
|
+
g.push(h), m = h + s.length;
|
|
94
92
|
}
|
|
95
|
-
return
|
|
96
|
-
const
|
|
97
|
-
return
|
|
93
|
+
return g.map((h) => {
|
|
94
|
+
const S = new Range();
|
|
95
|
+
return S.setStart(d, h), S.setEnd(d, h + s.length), S;
|
|
98
96
|
});
|
|
99
97
|
}).flat();
|
|
100
98
|
}
|
|
101
99
|
function w(a) {
|
|
102
|
-
if (!CSS.highlights || (CSS.highlights.clear(), !a || !
|
|
100
|
+
if (!CSS.highlights || (CSS.highlights.clear(), !a || !l))
|
|
103
101
|
return;
|
|
104
|
-
const
|
|
105
|
-
CSS.highlights.set("search-result",
|
|
102
|
+
const s = p(l.value, a.toLocaleLowerCase()), o = new Highlight(...s);
|
|
103
|
+
CSS.highlights.set("search-result", o);
|
|
106
104
|
}
|
|
107
105
|
return { search: w };
|
|
108
106
|
}
|
|
109
|
-
function
|
|
110
|
-
const
|
|
111
|
-
var t,
|
|
112
|
-
return ((t = e.selection) == null ? void 0 : t.multiSelect) && ((
|
|
107
|
+
function Q(e, l, I, p, w, a, s, o, O, T) {
|
|
108
|
+
const F = r(e.size), d = r(e.textField), v = r(e.titleField), g = r(e.disableField), m = P(() => {
|
|
109
|
+
var t, y;
|
|
110
|
+
return ((t = e.selection) == null ? void 0 : t.multiSelect) && ((y = e.selection) == null ? void 0 : y.showCheckbox);
|
|
113
111
|
}), {
|
|
114
|
-
onMouseenterItem:
|
|
115
|
-
onMouseoverItem:
|
|
116
|
-
onMouseoutItem:
|
|
112
|
+
onMouseenterItem: h,
|
|
113
|
+
onMouseoverItem: S,
|
|
114
|
+
onMouseoutItem: D
|
|
117
115
|
} = a, {
|
|
118
|
-
getKey:
|
|
116
|
+
getKey: k,
|
|
119
117
|
listViewItemClass: R,
|
|
120
|
-
listViewItemStyle:
|
|
121
|
-
onCheckItem:
|
|
122
|
-
onClickItem:
|
|
123
|
-
} =
|
|
118
|
+
listViewItemStyle: x,
|
|
119
|
+
onCheckItem: j,
|
|
120
|
+
onClickItem: i
|
|
121
|
+
} = s, C = P(() => {
|
|
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: F.value === "small" ? "0.25rem 0" : "8px 0",
|
|
131
129
|
...t
|
|
132
130
|
};
|
|
133
131
|
});
|
|
134
|
-
function u(t,
|
|
135
|
-
return t.checked =
|
|
136
|
-
class: R(t,
|
|
137
|
-
id:
|
|
138
|
-
key:
|
|
139
|
-
style:
|
|
140
|
-
onClick: (
|
|
141
|
-
onMouseenter: (
|
|
142
|
-
onMouseover: (
|
|
143
|
-
onMouseout: (
|
|
144
|
-
}, [
|
|
132
|
+
function u(t, y, B) {
|
|
133
|
+
return t.checked = o.findIndexInSelectedItems(t) > -1, n("li", {
|
|
134
|
+
class: R(t, y),
|
|
135
|
+
id: k(t, y),
|
|
136
|
+
key: k(t, y),
|
|
137
|
+
style: x(t, y),
|
|
138
|
+
onClick: (H) => i(t, y, H),
|
|
139
|
+
onMouseenter: (H) => h(H, t, y),
|
|
140
|
+
onMouseover: (H) => S(H, t, y),
|
|
141
|
+
onMouseout: (H) => D(H, t, y)
|
|
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(X, {
|
|
146
|
+
id: "list-" + k(t, y),
|
|
149
147
|
customClass: "listview-checkbox float-left",
|
|
150
|
-
disabled: t[
|
|
148
|
+
disabled: t[g.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, y, !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[v.value] || t.raw[d.value]
|
|
160
|
+
}, [t.raw[d.value]])])]);
|
|
163
161
|
}
|
|
164
162
|
return {
|
|
165
163
|
renderItem: u
|
|
166
164
|
};
|
|
167
165
|
}
|
|
168
|
-
function
|
|
169
|
-
const
|
|
170
|
-
onMouseenterItem:
|
|
171
|
-
onMouseoverItem:
|
|
172
|
-
onMouseoutItem:
|
|
166
|
+
function Ke(e, l, I, p, w, a, s, o, O, T) {
|
|
167
|
+
const F = r(e.multiSelect), d = r(e.disableField), v = r(e.textField), {
|
|
168
|
+
onMouseenterItem: g,
|
|
169
|
+
onMouseoverItem: m,
|
|
170
|
+
onMouseoutItem: h
|
|
173
171
|
} = a, {
|
|
174
|
-
getKey:
|
|
175
|
-
listViewItemClass:
|
|
176
|
-
listViewItemStyle:
|
|
172
|
+
getKey: S,
|
|
173
|
+
listViewItemClass: D,
|
|
174
|
+
listViewItemStyle: k,
|
|
177
175
|
onCheckItem: R,
|
|
178
|
-
onClickItem:
|
|
179
|
-
updateSelectedItems:
|
|
180
|
-
} =
|
|
181
|
-
function
|
|
182
|
-
return e.contentTemplate ? n(
|
|
176
|
+
onClickItem: x,
|
|
177
|
+
updateSelectedItems: j
|
|
178
|
+
} = s;
|
|
179
|
+
function i(u, t, y) {
|
|
180
|
+
return e.contentTemplate ? n(z, null, [e.contentTemplate({
|
|
183
181
|
item: u.raw,
|
|
184
182
|
index: t,
|
|
185
|
-
selectedItem:
|
|
186
|
-
})]) :
|
|
183
|
+
selectedItem: y
|
|
184
|
+
})]) : l.slots.content ? n(z, null, [l.slots.content && l.slots.content({
|
|
187
185
|
item: u.raw,
|
|
188
186
|
index: t,
|
|
189
|
-
selectedItem:
|
|
187
|
+
selectedItem: y
|
|
190
188
|
})]) : n("div", {
|
|
191
189
|
style: "margin: 10px 0;"
|
|
192
|
-
}, [u.raw[
|
|
190
|
+
}, [u.raw[v.value || "name"]]);
|
|
193
191
|
}
|
|
194
|
-
function
|
|
192
|
+
function C(u, t, y) {
|
|
195
193
|
return n("li", {
|
|
196
|
-
class:
|
|
197
|
-
id:
|
|
198
|
-
key:
|
|
199
|
-
style:
|
|
200
|
-
onClick: (
|
|
201
|
-
onMouseenter: (
|
|
202
|
-
onMouseover: (
|
|
203
|
-
onMouseout: (
|
|
204
|
-
}, [
|
|
194
|
+
class: D(u, t),
|
|
195
|
+
id: S(u, t),
|
|
196
|
+
key: S(u, t),
|
|
197
|
+
style: k(u, t),
|
|
198
|
+
onClick: (B) => x(u, t, B),
|
|
199
|
+
onMouseenter: (B) => g(B, u, t),
|
|
200
|
+
onMouseover: (B) => m(B, u, t),
|
|
201
|
+
onMouseout: (B) => h(B, u, t)
|
|
202
|
+
}, [F.value && n("div", {
|
|
205
203
|
class: "f-list-select",
|
|
206
|
-
onClick: (
|
|
207
|
-
}, [n(
|
|
208
|
-
id: "list-" +
|
|
204
|
+
onClick: (B) => B.stopPropagation()
|
|
205
|
+
}, [n(X, {
|
|
206
|
+
id: "list-" + S(u, t),
|
|
209
207
|
customClass: "listview-checkbox",
|
|
210
|
-
disabled: u[
|
|
208
|
+
disabled: u[d.value],
|
|
211
209
|
checked: u.checked,
|
|
212
|
-
"onUpdate:checked": (
|
|
213
|
-
onChange: (
|
|
214
|
-
R(u, t, !
|
|
210
|
+
"onUpdate:checked": (B) => u.checked = B,
|
|
211
|
+
onChange: (B) => {
|
|
212
|
+
R(u, t, !B.checked), j();
|
|
215
213
|
}
|
|
216
214
|
}, null)]), n("div", {
|
|
217
215
|
class: "f-list-content"
|
|
218
|
-
}, [
|
|
216
|
+
}, [i(u, t, y)])]);
|
|
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 Xe(e, l, I, p, w, a, s, o, O, T) {
|
|
223
|
+
const F = r(e.multiSelect), d = r(e.disableField), v = r(e.textField), {
|
|
224
|
+
onMouseenterItem: g,
|
|
225
|
+
onMouseoverItem: m,
|
|
226
|
+
onMouseoutItem: h
|
|
229
227
|
} = a, {
|
|
230
|
-
getKey:
|
|
231
|
-
listViewItemClass:
|
|
232
|
-
onCheckItem:
|
|
228
|
+
getKey: S,
|
|
229
|
+
listViewItemClass: D,
|
|
230
|
+
onCheckItem: k,
|
|
233
231
|
onClickItem: R
|
|
234
|
-
} =
|
|
235
|
-
dragstart:
|
|
236
|
-
dragenter:
|
|
237
|
-
dragover:
|
|
238
|
-
dragend:
|
|
239
|
-
} =
|
|
232
|
+
} = s, {
|
|
233
|
+
dragstart: x,
|
|
234
|
+
dragenter: j,
|
|
235
|
+
dragover: i,
|
|
236
|
+
dragend: C
|
|
237
|
+
} = p, {
|
|
240
238
|
removeItem: u
|
|
241
|
-
} =
|
|
242
|
-
margin:
|
|
239
|
+
} = O, t = P(() => ({
|
|
240
|
+
margin: F.value ? "10px 0" : "10px 0px 10px 14px"
|
|
243
241
|
}));
|
|
244
|
-
function
|
|
245
|
-
const
|
|
246
|
-
|
|
242
|
+
function y(f, c = "") {
|
|
243
|
+
const L = f.target;
|
|
244
|
+
L.title = L.scrollWidth > L.clientWidth ? c : "";
|
|
247
245
|
}
|
|
248
|
-
function
|
|
246
|
+
function B(f) {
|
|
249
247
|
return n("div", {
|
|
250
248
|
style: t.value,
|
|
251
|
-
onMouseenter: (
|
|
252
|
-
}, [
|
|
249
|
+
onMouseenter: (c) => y(c, f.raw[v.value || "name"])
|
|
250
|
+
}, [f.raw[v.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 b(f, c, L) {
|
|
259
257
|
return n("li", {
|
|
260
|
-
class:
|
|
261
|
-
id: f
|
|
262
|
-
key: f
|
|
263
|
-
onClick: (
|
|
264
|
-
onMouseenter: (
|
|
265
|
-
onMouseover: (
|
|
266
|
-
onMouseout: (
|
|
258
|
+
class: D(f, c),
|
|
259
|
+
id: S(f, c),
|
|
260
|
+
key: S(f, c),
|
|
261
|
+
onClick: (M) => R(f, c, M),
|
|
262
|
+
onMouseenter: (M) => g(M, f, c),
|
|
263
|
+
onMouseover: (M) => m(M, f, c),
|
|
264
|
+
onMouseout: (M) => h(M, f, c),
|
|
267
265
|
draggable: "true",
|
|
268
|
-
onDragstart: (
|
|
269
|
-
onDragenter: (
|
|
270
|
-
onDragend: (
|
|
271
|
-
onDragover: (
|
|
272
|
-
}, [
|
|
266
|
+
onDragstart: (M) => x(M, f, c),
|
|
267
|
+
onDragenter: (M) => j(M, c),
|
|
268
|
+
onDragend: (M) => C(M, f),
|
|
269
|
+
onDragover: (M) => i(M)
|
|
270
|
+
}, [F.value && n("div", {
|
|
273
271
|
class: "f-list-select",
|
|
274
|
-
onClick: (
|
|
275
|
-
}, [n(
|
|
276
|
-
id: "list-" + f
|
|
272
|
+
onClick: (M) => M.stopPropagation()
|
|
273
|
+
}, [n(X, {
|
|
274
|
+
id: "list-" + S(f, c),
|
|
277
275
|
customClass: "listview-checkbox",
|
|
278
|
-
disabled:
|
|
279
|
-
checked:
|
|
280
|
-
"onUpdate:checked": (
|
|
281
|
-
onChange: (
|
|
276
|
+
disabled: f[d.value] || !f.checked,
|
|
277
|
+
checked: f.checked,
|
|
278
|
+
"onUpdate:checked": (M) => f.checked = M,
|
|
279
|
+
onChange: (M) => k(f, c, !M.checked)
|
|
282
280
|
}, null)]), n("div", {
|
|
283
281
|
class: "f-list-content"
|
|
284
|
-
}, [
|
|
282
|
+
}, [G(f)]), n("div", {
|
|
285
283
|
class: "f-list-remove",
|
|
286
|
-
onClick: (
|
|
287
|
-
|
|
284
|
+
onClick: (M) => {
|
|
285
|
+
M.stopPropagation(), u(c);
|
|
288
286
|
}
|
|
289
287
|
}, [n("div", {
|
|
290
288
|
class: "f-list-remove-icon"
|
|
@@ -297,198 +295,198 @@ function Qe(e, o, v, I, w, a, c, m, D, g) {
|
|
|
297
295
|
}, null)])])]);
|
|
298
296
|
}
|
|
299
297
|
return {
|
|
300
|
-
renderItem:
|
|
298
|
+
renderItem: b
|
|
301
299
|
};
|
|
302
300
|
}
|
|
303
|
-
function
|
|
304
|
-
var
|
|
305
|
-
const
|
|
306
|
-
collpaseGroupIconClass:
|
|
301
|
+
function Ye(e, l, I, p, w, a, s, o, O, T) {
|
|
302
|
+
var S;
|
|
303
|
+
const F = r(((S = e.group) == null ? void 0 : S.groupFields) || []), {
|
|
304
|
+
collpaseGroupIconClass: d
|
|
307
305
|
} = w, {
|
|
308
|
-
toggleGroupRow:
|
|
309
|
-
} =
|
|
310
|
-
function
|
|
311
|
-
|
|
312
|
-
}
|
|
313
|
-
function
|
|
314
|
-
return
|
|
315
|
-
item:
|
|
316
|
-
index:
|
|
306
|
+
toggleGroupRow: v
|
|
307
|
+
} = T;
|
|
308
|
+
function g(D, k) {
|
|
309
|
+
k.collapse = !k.collapse, I.value = v(k.collapse ? "collapse" : "expand", k, I.value);
|
|
310
|
+
}
|
|
311
|
+
function m(D, k, R) {
|
|
312
|
+
return l.slots.group ? n(z, null, [l.slots.content && l.slots.group({
|
|
313
|
+
item: D.raw,
|
|
314
|
+
index: k,
|
|
317
315
|
selectedItem: R
|
|
318
316
|
})]) : n("div", {
|
|
319
317
|
class: "f-navlookup-recentHeader",
|
|
320
|
-
onClick: (
|
|
318
|
+
onClick: (x) => g(x, D)
|
|
321
319
|
}, [n("div", {
|
|
322
320
|
class: "fv-grid-group-row-icon"
|
|
323
321
|
}, [n("span", {
|
|
324
|
-
class:
|
|
322
|
+
class: d(D)
|
|
325
323
|
}, null)]), n("div", {
|
|
326
324
|
class: "f-navlookup-recommandLabel"
|
|
327
|
-
}, [
|
|
325
|
+
}, [D.raw[F.value[D.layer]]])]);
|
|
328
326
|
}
|
|
329
|
-
function
|
|
330
|
-
return
|
|
327
|
+
function h(D, k, R) {
|
|
328
|
+
return D.layer > -1 && m(D, k, R);
|
|
331
329
|
}
|
|
332
330
|
return {
|
|
333
|
-
renderItem:
|
|
331
|
+
renderItem: h
|
|
334
332
|
};
|
|
335
333
|
}
|
|
336
|
-
function
|
|
337
|
-
const { dataView: w } =
|
|
338
|
-
function
|
|
339
|
-
if (
|
|
340
|
-
if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(w.value[
|
|
334
|
+
function $e(e, l, I, p) {
|
|
335
|
+
const { dataView: w } = I, { updateSelectedItems: a } = p;
|
|
336
|
+
function s(o) {
|
|
337
|
+
if (o > -1 && o < w.value.length) {
|
|
338
|
+
if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(w.value[o]))
|
|
341
339
|
return;
|
|
342
|
-
const
|
|
343
|
-
a(),
|
|
340
|
+
const O = w.value.splice(o, 1);
|
|
341
|
+
a(), l.emit("removeItem", O[0]);
|
|
344
342
|
}
|
|
345
343
|
}
|
|
346
|
-
return { removeItem:
|
|
344
|
+
return { removeItem: s };
|
|
347
345
|
}
|
|
348
|
-
function
|
|
349
|
-
const
|
|
346
|
+
function qe(e, l, I, p, w, a, s, o, O, T) {
|
|
347
|
+
const F = r(e.view), d = r(e.view === "CardView"), v = r({}), g = $e(e, l, p, O), m = P(() => ({
|
|
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
|
|
350
|
+
"d-flex": d.value,
|
|
351
|
+
"flex-wrap": d.value
|
|
352
|
+
})), h = P(() => !!I.value && I.value.length > 0), S = P(() => I.value.length === 0);
|
|
353
|
+
P(() => S.value && !l.slots.empty);
|
|
354
|
+
function D() {
|
|
355
|
+
return F.value === "SingleView" ? Q : F.value === "DraggableView" ? Xe : (F.value === "ContentView" || F.value === "CardView") && (e.contentTemplate || l.slots.content) ? Ke : Q;
|
|
356
|
+
}
|
|
357
|
+
const k = D(), {
|
|
360
358
|
renderItem: R
|
|
361
|
-
} =
|
|
362
|
-
renderItem:
|
|
363
|
-
} =
|
|
364
|
-
function
|
|
365
|
-
return
|
|
359
|
+
} = k(e, l, I, T, w, a, O, s, g, o), {
|
|
360
|
+
renderItem: x
|
|
361
|
+
} = Ye(e, l, I, T, w, a, O, s, g, o), j = [R, x];
|
|
362
|
+
function i() {
|
|
363
|
+
return I.value.filter((t) => t.visible !== !1).map((t, y) => j[t.type](t, y, v));
|
|
366
364
|
}
|
|
367
|
-
function
|
|
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() : Ue.getLocaleValue("listView.emptyMessage")])]);
|
|
374
372
|
}
|
|
375
373
|
function u() {
|
|
376
374
|
return n("ul", {
|
|
377
|
-
class:
|
|
375
|
+
class: m.value,
|
|
378
376
|
style: "list-style: none;"
|
|
379
|
-
}, [
|
|
377
|
+
}, [h.value && i(), S.value && C()]);
|
|
380
378
|
}
|
|
381
379
|
return {
|
|
382
380
|
renderListArea: u
|
|
383
381
|
};
|
|
384
382
|
}
|
|
385
|
-
function
|
|
386
|
-
function
|
|
387
|
-
return
|
|
383
|
+
function Je(e, l, I) {
|
|
384
|
+
function p() {
|
|
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: p
|
|
393
391
|
};
|
|
394
392
|
}
|
|
395
|
-
function
|
|
396
|
-
const
|
|
397
|
-
function
|
|
393
|
+
function Z(e, l, I) {
|
|
394
|
+
const p = r(e.headerClass), w = r(e.placeholder), a = r(""), s = P(() => !a.value), o = P(() => !!a.value);
|
|
395
|
+
function O(v) {
|
|
398
396
|
a.value = "";
|
|
399
397
|
}
|
|
400
|
-
|
|
401
|
-
e.enableHighlightSearch &&
|
|
398
|
+
te(a, (v) => {
|
|
399
|
+
e.enableHighlightSearch && I.search(v), l.emit("afterSearch", v);
|
|
402
400
|
});
|
|
403
|
-
const
|
|
404
|
-
const
|
|
401
|
+
const T = P(() => {
|
|
402
|
+
const v = {
|
|
405
403
|
"form-group": !0,
|
|
406
404
|
"farris-form-group": !0
|
|
407
405
|
};
|
|
408
|
-
return
|
|
406
|
+
return p.value && p.value.split(" ").reduce((m, h) => (m[h] = !0, m), v), v;
|
|
409
407
|
});
|
|
410
|
-
function
|
|
408
|
+
function F(v) {
|
|
411
409
|
}
|
|
412
|
-
function
|
|
410
|
+
function d() {
|
|
413
411
|
return n("div", {
|
|
414
412
|
class: "f-list-view-header",
|
|
415
|
-
onClick:
|
|
413
|
+
onClick: Se(() => F, ["prevent", "stop"])
|
|
416
414
|
}, [n("div", {
|
|
417
|
-
class:
|
|
415
|
+
class: T.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
|
+
}, [ke(n("input", {
|
|
425
423
|
class: "form-control f-utils-fill text-left",
|
|
426
|
-
"onUpdate:modelValue": (
|
|
424
|
+
"onUpdate:modelValue": (v) => a.value = v,
|
|
427
425
|
name: "input-group-value",
|
|
428
426
|
type: "text",
|
|
429
427
|
placeholder: w.value,
|
|
430
428
|
autocomplete: "off"
|
|
431
|
-
}, null), [[
|
|
429
|
+
}, null), [[be, a.value]]), n("div", {
|
|
432
430
|
class: "input-group-append"
|
|
433
|
-
}, [
|
|
431
|
+
}, [o.value && n("span", {
|
|
434
432
|
class: "input-group-text input-group-clear",
|
|
435
|
-
onClick: (
|
|
433
|
+
onClick: (v) => O()
|
|
436
434
|
}, [n("i", {
|
|
437
435
|
class: "f-icon f-icon-close-circle"
|
|
438
|
-
}, null)]),
|
|
436
|
+
}, null)]), s.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: d
|
|
446
444
|
};
|
|
447
445
|
}
|
|
448
|
-
function
|
|
449
|
-
const e =
|
|
450
|
-
function a(
|
|
451
|
-
|
|
446
|
+
function Qe() {
|
|
447
|
+
const e = r(""), l = r(-1), I = r(""), p = r(-1), w = r(!1);
|
|
448
|
+
function a(d, v, g) {
|
|
449
|
+
p.value = g;
|
|
452
450
|
}
|
|
453
|
-
function
|
|
454
|
-
w.value || (
|
|
451
|
+
function s(d, v, g) {
|
|
452
|
+
w.value || (p.value = g);
|
|
455
453
|
}
|
|
456
|
-
function
|
|
457
|
-
|
|
454
|
+
function o(d, v, g) {
|
|
455
|
+
p.value = -1;
|
|
458
456
|
}
|
|
459
|
-
function
|
|
457
|
+
function O() {
|
|
460
458
|
w.value = !0;
|
|
461
459
|
}
|
|
462
|
-
function
|
|
460
|
+
function T() {
|
|
463
461
|
w.value = !1;
|
|
464
462
|
}
|
|
465
|
-
function
|
|
466
|
-
|
|
463
|
+
function F() {
|
|
464
|
+
l.value = -1, e.value = "";
|
|
467
465
|
}
|
|
468
466
|
return {
|
|
469
|
-
activeIndex:
|
|
470
|
-
focusedItemId:
|
|
471
|
-
hoverIndex:
|
|
472
|
-
clearActiveItem:
|
|
467
|
+
activeIndex: l,
|
|
468
|
+
focusedItemId: I,
|
|
469
|
+
hoverIndex: p,
|
|
470
|
+
clearActiveItem: F,
|
|
473
471
|
onMouseenterItem: a,
|
|
474
|
-
onMouseoverItem:
|
|
475
|
-
onMouseoutItem:
|
|
476
|
-
resumeHover:
|
|
477
|
-
suspendHover:
|
|
472
|
+
onMouseoverItem: s,
|
|
473
|
+
onMouseoutItem: o,
|
|
474
|
+
resumeHover: T,
|
|
475
|
+
suspendHover: O
|
|
478
476
|
};
|
|
479
477
|
}
|
|
480
|
-
function
|
|
481
|
-
const w =
|
|
482
|
-
let
|
|
483
|
-
function
|
|
484
|
-
const u =
|
|
485
|
-
|
|
486
|
-
}
|
|
487
|
-
function
|
|
488
|
-
const { left:
|
|
478
|
+
function Ze(e, l, I, p) {
|
|
479
|
+
const w = r(e.idField), { dataView: a } = I, s = r(-1), o = r(!1), { activeIndex: O, focusedItemId: T, hoverIndex: F, resumeHover: d, suspendHover: v } = p;
|
|
480
|
+
let g, m = 0, h = 0;
|
|
481
|
+
function S(i, C) {
|
|
482
|
+
const u = i - m, t = C - h;
|
|
483
|
+
g.style.left = parseInt(g.style.left) + u + "px", g.style.top = parseInt(g.style.top) + t + "px", m = i, h = C;
|
|
484
|
+
}
|
|
485
|
+
function D(i) {
|
|
486
|
+
const { left: C, top: u } = i.getBoundingClientRect(), t = i.cloneNode(!0);
|
|
489
487
|
return t.className = t.className + " f-listview-drag-moving", t.style.cssText = `
|
|
490
488
|
position:absolute;
|
|
491
|
-
left:${
|
|
489
|
+
left:${C}px;
|
|
492
490
|
top:${document.documentElement.scrollTop ? u + document.documentElement.scrollTop : u}px;
|
|
493
491
|
z-index: 999999;
|
|
494
492
|
pointer-events: none;
|
|
@@ -498,229 +496,230 @@ 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(i).width};
|
|
500
|
+
height:${getComputedStyle(i).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 k(i, C, u) {
|
|
507
|
+
if (i.stopPropagation(), v(), C) {
|
|
508
|
+
if (g = D(i.target), i.dataTransfer) {
|
|
511
509
|
const t = new Image();
|
|
512
|
-
t.src = "",
|
|
510
|
+
t.src = "", i.dataTransfer.setDragImage(t, 0, 0);
|
|
513
511
|
}
|
|
514
|
-
|
|
515
|
-
|
|
512
|
+
m = i.pageX, h = i.pageY, setTimeout(() => {
|
|
513
|
+
s.value = u, o.value = !0, C.moving = !0;
|
|
516
514
|
});
|
|
517
515
|
}
|
|
518
516
|
}
|
|
519
|
-
function R(
|
|
520
|
-
if (
|
|
521
|
-
const u = a.value[
|
|
522
|
-
t.splice(
|
|
517
|
+
function R(i, C) {
|
|
518
|
+
if (i.preventDefault(), s.value !== C) {
|
|
519
|
+
const u = a.value[s.value], t = a.value;
|
|
520
|
+
t.splice(s.value, 1), t.splice(C, 0, u), s.value = C, S(i.pageX, i.pageY);
|
|
523
521
|
}
|
|
524
522
|
}
|
|
525
|
-
function
|
|
526
|
-
|
|
523
|
+
function x(i) {
|
|
524
|
+
i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "move"), S(i.pageX, i.pageY);
|
|
527
525
|
}
|
|
528
|
-
function
|
|
529
|
-
|
|
526
|
+
function j(i, C) {
|
|
527
|
+
C && (C.moving = !1, g && (document.body.removeChild(g), g = null)), a.value.forEach((u, t) => {
|
|
530
528
|
u.__fv_index__ = t;
|
|
531
|
-
}),
|
|
529
|
+
}), o.value = !1, d(), F.value = C.raw.__fv_index__, O.value = C.raw.__fv_index__, T.value = C.raw[w.value], l.emit("change", a.value), l.emit("activeChange", [C.raw]);
|
|
532
530
|
}
|
|
533
531
|
return {
|
|
534
|
-
dragstart:
|
|
532
|
+
dragstart: k,
|
|
535
533
|
dragenter: R,
|
|
536
|
-
dragover:
|
|
537
|
-
dragend:
|
|
538
|
-
isDragging:
|
|
534
|
+
dragover: x,
|
|
535
|
+
dragend: j,
|
|
536
|
+
isDragging: o
|
|
539
537
|
};
|
|
540
538
|
}
|
|
541
|
-
function
|
|
542
|
-
const
|
|
543
|
-
|
|
544
|
-
const
|
|
545
|
-
let
|
|
546
|
-
return
|
|
539
|
+
function et(e, l, I, p, w, a) {
|
|
540
|
+
const s = r(e.idField), o = r(e.disableField), O = r(e.draggable);
|
|
541
|
+
r(e.itemClass);
|
|
542
|
+
const T = r(e.selection.multiSelect ?? !1), F = r(e.selection.multiSelectMode), { isDragging: d } = p, { activeIndex: v, focusedItemId: g, hoverIndex: m } = w, { clearSelection: h, getSelectedItems: S, toggleSelectItem: D, currentSelectedDataId: k } = a, R = r(S()), x = (b) => R.value.length === 0 ? !1 : R.value.some((f) => {
|
|
543
|
+
let c = "";
|
|
544
|
+
return f.data ? c = f.data[s.value] : c = f[s.value], c === b;
|
|
547
545
|
});
|
|
548
|
-
function
|
|
549
|
-
R.value =
|
|
546
|
+
function j() {
|
|
547
|
+
R.value = S();
|
|
550
548
|
}
|
|
551
|
-
function
|
|
552
|
-
return
|
|
549
|
+
function i(b, f) {
|
|
550
|
+
return b.raw[s.value] != null ? b.raw[s.value] : "";
|
|
553
551
|
}
|
|
554
|
-
function
|
|
555
|
-
const
|
|
552
|
+
function C(b, f) {
|
|
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": !b.checked,
|
|
557
|
+
"f-un-select": !!b.raw[o.value],
|
|
560
558
|
"f-listview-active": (
|
|
561
559
|
// 多选
|
|
562
|
-
|
|
563
|
-
!
|
|
560
|
+
T.value && x(i(b)) || // 单选
|
|
561
|
+
!T.value && b.raw[s.value] === k.value
|
|
564
562
|
),
|
|
565
|
-
"f-listview-hover": !
|
|
566
|
-
moving: !!
|
|
563
|
+
"f-listview-hover": !d.value && f === m.value,
|
|
564
|
+
moving: !!b.moving
|
|
567
565
|
};
|
|
568
566
|
if (typeof e.itemClass == "string")
|
|
569
|
-
return
|
|
567
|
+
return K(c, e.itemClass);
|
|
570
568
|
if (typeof e.itemClass == "function") {
|
|
571
|
-
const
|
|
572
|
-
return
|
|
569
|
+
const L = e.itemClass(b);
|
|
570
|
+
return K(c, L);
|
|
573
571
|
}
|
|
574
|
-
return
|
|
572
|
+
return c;
|
|
575
573
|
}
|
|
576
|
-
function u(
|
|
577
|
-
const
|
|
574
|
+
function u(b, f) {
|
|
575
|
+
const c = {};
|
|
578
576
|
if (typeof e.itemStyle == "string")
|
|
579
|
-
return
|
|
577
|
+
return J(c, e.itemStyle);
|
|
580
578
|
if (typeof e.itemStyle == "function") {
|
|
581
|
-
const
|
|
582
|
-
return
|
|
579
|
+
const L = e.itemStyle(b);
|
|
580
|
+
return J(c, L);
|
|
583
581
|
}
|
|
584
|
-
return
|
|
582
|
+
return c;
|
|
585
583
|
}
|
|
586
|
-
const t =
|
|
587
|
-
function
|
|
588
|
-
|
|
584
|
+
const t = P(() => !T.value);
|
|
585
|
+
function y(b, f, c) {
|
|
586
|
+
b.checked = c, !b.raw[o.value] && (t.value && (g.value = b.raw[s.value]), D(b));
|
|
589
587
|
}
|
|
590
|
-
const
|
|
591
|
-
function
|
|
592
|
-
if (
|
|
593
|
-
|
|
588
|
+
const B = P(() => T.value && F.value === "OnCheckClearByClick"), H = P(() => !T.value || T.value && (F.value === "OnCheckAndClick" || F.value === "OnClick"));
|
|
589
|
+
function G(b, f, c) {
|
|
590
|
+
if (b.raw[o.value]) {
|
|
591
|
+
c == null || c.preventDefault(), c == null || c.stopPropagation();
|
|
594
592
|
return;
|
|
595
593
|
}
|
|
596
|
-
|
|
594
|
+
k.value = b.raw[s.value], g.value = b.raw[s.value], v.value = f, B.value && h(), H.value && (D(b), j()), l.emit("clickItem", { data: R.value, index: f, dataItem: b.raw }), l.emit("activeChange", R.value);
|
|
597
595
|
}
|
|
598
596
|
return {
|
|
599
|
-
getKey:
|
|
597
|
+
getKey: i,
|
|
600
598
|
selectedItems: R,
|
|
601
|
-
listViewItemClass:
|
|
599
|
+
listViewItemClass: C,
|
|
602
600
|
listViewItemStyle: u,
|
|
603
|
-
updateSelectedItems:
|
|
604
|
-
onCheckItem:
|
|
605
|
-
onClickItem:
|
|
601
|
+
updateSelectedItems: j,
|
|
602
|
+
onCheckItem: y,
|
|
603
|
+
onClickItem: G
|
|
606
604
|
};
|
|
607
605
|
}
|
|
608
|
-
const
|
|
606
|
+
const W = /* @__PURE__ */ ne({
|
|
609
607
|
name: "FListView",
|
|
610
|
-
props:
|
|
608
|
+
props: le,
|
|
611
609
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
|
|
612
|
-
setup(e,
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
610
|
+
setup(e, l) {
|
|
611
|
+
var $;
|
|
612
|
+
const I = r(!1), p = r(), w = r(!0), a = r((($ = e.rowOption) == null ? void 0 : $.rowHeight) || 28), s = r(!1), o = r([]), O = 0, T = r(e.columns), F = Ve(e, l), d = Fe(e), v = De(e), g = Me(e, d), m = Oe(e, /* @__PURE__ */ new Map(), F, v, d), h = Re(e, m, d, o, l), S = We(e, p), D = Te(e, m), k = P(() => m.dataView.value.length), R = Be(e, l, h, d), x = He(e, l, d, R, o), j = Pe(e, m, a), i = xe(e, {}, j), C = je(e, m, x, v, d, j, i, a), u = Le(e, d, i, C), t = _e(e, d, i, C), y = Ge(e, T, m, k, O, C, u, t), {
|
|
613
|
+
getVisualData: B
|
|
614
|
+
} = y;
|
|
615
|
+
o.value = B(0, k.value + O - 1);
|
|
616
|
+
const H = P(() => {
|
|
617
|
+
const V = {
|
|
619
618
|
"f-list-view": !0,
|
|
620
619
|
"f-list-view-multiple": e.multiSelect
|
|
621
620
|
};
|
|
622
|
-
return e.size !== "default" && (
|
|
623
|
-
}),
|
|
624
|
-
function
|
|
625
|
-
return e.header === "SearchBar" ?
|
|
621
|
+
return e.size !== "default" && (V[`${e.size}-item`] = !0), K(V, e.customClass);
|
|
622
|
+
}), G = P(() => !!l.slots.footer || w.value);
|
|
623
|
+
function b() {
|
|
624
|
+
return e.header === "SearchBar" ? Z : e.header === "ContentHeader" ? Je : Z;
|
|
626
625
|
}
|
|
627
|
-
const
|
|
628
|
-
renderHeader:
|
|
629
|
-
} =
|
|
630
|
-
renderListArea:
|
|
631
|
-
} =
|
|
632
|
-
function
|
|
633
|
-
|
|
626
|
+
const f = b(), {
|
|
627
|
+
renderHeader: c
|
|
628
|
+
} = f(e, l, S), L = Qe(), M = Ze(e, l, m, L), A = et(e, l, o, M, L, h), {
|
|
629
|
+
renderListArea: ae
|
|
630
|
+
} = qe(e, l, o, m, g, L, h, y, A, M);
|
|
631
|
+
function oe(V) {
|
|
632
|
+
S.search(V);
|
|
634
633
|
}
|
|
635
|
-
function
|
|
636
|
-
|
|
634
|
+
function se(V) {
|
|
635
|
+
V && (m.load(V), o.value = B(0, k.value + O - 1));
|
|
637
636
|
}
|
|
638
|
-
function
|
|
639
|
-
|
|
637
|
+
function ie() {
|
|
638
|
+
h.clearSelection(), L.clearActiveItem();
|
|
640
639
|
}
|
|
641
640
|
function ue() {
|
|
642
|
-
return
|
|
641
|
+
return A.selectedItems.value;
|
|
643
642
|
}
|
|
644
|
-
function
|
|
645
|
-
return
|
|
643
|
+
function ce() {
|
|
644
|
+
return A.selectedItems.value.map((V) => V[d.idField.value]);
|
|
646
645
|
}
|
|
647
|
-
function
|
|
648
|
-
|
|
646
|
+
function Y(V) {
|
|
647
|
+
h.selectedValues.value = V, A.updateSelectedItems();
|
|
649
648
|
}
|
|
650
|
-
function
|
|
651
|
-
return
|
|
649
|
+
function re() {
|
|
650
|
+
return h.currentSelectedDataId.value;
|
|
652
651
|
}
|
|
653
|
-
function
|
|
654
|
-
|
|
652
|
+
function de(V) {
|
|
653
|
+
R.activeRowById(V);
|
|
655
654
|
}
|
|
656
|
-
function
|
|
657
|
-
const
|
|
658
|
-
|
|
655
|
+
function fe(V) {
|
|
656
|
+
const _ = d.idField.value, E = o.value.find((U) => U.raw[_] === V), N = o.value.findIndex((U) => U.raw[_] === V);
|
|
657
|
+
E && N > -1 && A.onClickItem(E, N);
|
|
659
658
|
}
|
|
660
|
-
function ve(
|
|
661
|
-
const
|
|
662
|
-
|
|
659
|
+
function ve(V) {
|
|
660
|
+
const _ = d.idField.value, E = o.value.find((N) => N.raw[_] === V);
|
|
661
|
+
E && R.changeRow(E);
|
|
663
662
|
}
|
|
664
|
-
function
|
|
665
|
-
|
|
663
|
+
function me(V) {
|
|
664
|
+
D.updatePagination(V);
|
|
666
665
|
}
|
|
667
|
-
function
|
|
668
|
-
return
|
|
666
|
+
function ge(V) {
|
|
667
|
+
return o.value.filter((_) => V.includes(_.raw[e.idField]));
|
|
669
668
|
}
|
|
670
|
-
|
|
671
|
-
search:
|
|
672
|
-
updateDataSource:
|
|
673
|
-
clearSelection:
|
|
669
|
+
l.expose({
|
|
670
|
+
search: oe,
|
|
671
|
+
updateDataSource: se,
|
|
672
|
+
clearSelection: ie,
|
|
674
673
|
getSelections: ue,
|
|
675
|
-
updateSelectionByIds:
|
|
676
|
-
getSelectionIds:
|
|
677
|
-
activeRowById:
|
|
678
|
-
getCurrentRowId:
|
|
679
|
-
clickRowItemById:
|
|
680
|
-
updatePagination:
|
|
681
|
-
getVisibleDataByIds:
|
|
674
|
+
updateSelectionByIds: Y,
|
|
675
|
+
getSelectionIds: ce,
|
|
676
|
+
activeRowById: de,
|
|
677
|
+
getCurrentRowId: re,
|
|
678
|
+
clickRowItemById: fe,
|
|
679
|
+
updatePagination: me,
|
|
680
|
+
getVisibleDataByIds: ge,
|
|
682
681
|
selectRowById: ve
|
|
683
682
|
});
|
|
684
|
-
function
|
|
685
|
-
e.multiSelect && (
|
|
683
|
+
function he(V) {
|
|
684
|
+
e.multiSelect && (V.preventDefault(), V.stopPropagation());
|
|
686
685
|
}
|
|
687
|
-
|
|
688
|
-
|
|
686
|
+
te(() => e.selectionValues, (V, _) => {
|
|
687
|
+
V !== _ && Y(V);
|
|
689
688
|
});
|
|
690
|
-
const
|
|
691
|
-
sidebarWidth:
|
|
692
|
-
showSidebarCheckBox:
|
|
693
|
-
} =
|
|
694
|
-
applyColumnSorter:
|
|
695
|
-
columnContext:
|
|
696
|
-
updateColumnRenderContext:
|
|
697
|
-
} =
|
|
698
|
-
shouldRenderPagination:
|
|
699
|
-
} =
|
|
700
|
-
renderDataGridPagination:
|
|
701
|
-
} =
|
|
689
|
+
const Ce = Ae(e, h), {
|
|
690
|
+
sidebarWidth: pe,
|
|
691
|
+
showSidebarCheckBox: tt
|
|
692
|
+
} = Ce, we = Ee(e, l), {
|
|
693
|
+
applyColumnSorter: nt,
|
|
694
|
+
columnContext: ye,
|
|
695
|
+
updateColumnRenderContext: lt
|
|
696
|
+
} = we, Ie = Ne(e, m, o, ye, y, k, O, pe, a, I, x), {
|
|
697
|
+
shouldRenderPagination: at
|
|
698
|
+
} = D, {
|
|
699
|
+
renderDataGridPagination: ot
|
|
700
|
+
} = ze(e, l, m, Ie, D, h);
|
|
702
701
|
return () => n("div", {
|
|
703
|
-
class:
|
|
704
|
-
onClick:
|
|
705
|
-
}, [
|
|
706
|
-
ref:
|
|
702
|
+
class: H.value,
|
|
703
|
+
onClick: he
|
|
704
|
+
}, [c(), n("div", {
|
|
705
|
+
ref: p,
|
|
707
706
|
class: "f-list-view-content",
|
|
708
707
|
onMouseover: () => {
|
|
709
|
-
|
|
708
|
+
s.value = !0;
|
|
710
709
|
},
|
|
711
710
|
onMouseleave: () => {
|
|
712
|
-
|
|
711
|
+
s.value = !1;
|
|
713
712
|
}
|
|
714
|
-
}, [
|
|
713
|
+
}, [ae()]), G.value && n("div", {
|
|
715
714
|
class: "f-list-view-footer"
|
|
716
|
-
}, [e.footerTemplate ? e.footerTemplate() :
|
|
715
|
+
}, [e.footerTemplate ? e.footerTemplate() : l.slots.footer && l.slots.footer()])]);
|
|
717
716
|
}
|
|
718
|
-
}),
|
|
717
|
+
}), ee = /* @__PURE__ */ ne({
|
|
719
718
|
name: "FListViewTable",
|
|
720
|
-
props:
|
|
719
|
+
props: le,
|
|
721
720
|
emits: ["outputValue", "currentEvent", "selectionChanged"],
|
|
722
|
-
setup(e,
|
|
723
|
-
const
|
|
721
|
+
setup(e, l) {
|
|
722
|
+
const I = [{
|
|
724
723
|
name: "任芳",
|
|
725
724
|
code: "1.PO20198989001",
|
|
726
725
|
date: "2024-02-19",
|
|
@@ -755,10 +754,10 @@ const U = /* @__PURE__ */ te({
|
|
|
755
754
|
desc: "导游5",
|
|
756
755
|
amount: 84.13,
|
|
757
756
|
avatar: "./assets/avatar5.png"
|
|
758
|
-
}],
|
|
757
|
+
}], p = P(() => e.data.length > 0 ? e.data : I);
|
|
759
758
|
return () => {
|
|
760
759
|
var w;
|
|
761
|
-
return n(
|
|
760
|
+
return n(z, null, [(w = p.value) == null ? void 0 : w.map((a) => n("div", {
|
|
762
761
|
class: "f-template-listview-row"
|
|
763
762
|
}, [n("div", {
|
|
764
763
|
class: "list-view-item-title"
|
|
@@ -780,239 +779,22 @@ const U = /* @__PURE__ */ te({
|
|
|
780
779
|
class: "content-message"
|
|
781
780
|
}, [n("div", {
|
|
782
781
|
class: "ower"
|
|
783
|
-
}, [n("p", null, [
|
|
782
|
+
}, [n("p", null, [q("创建人")]), n("p", {
|
|
784
783
|
class: "con"
|
|
785
784
|
}, [a.name])]), n("div", {
|
|
786
785
|
class: "date"
|
|
787
|
-
}, [n("p", null, [
|
|
786
|
+
}, [n("p", null, [q("创建时间")]), n("p", {
|
|
788
787
|
class: "con"
|
|
789
788
|
}, [a.date])])])])]))]);
|
|
790
789
|
};
|
|
791
790
|
}
|
|
792
|
-
})
|
|
793
|
-
|
|
794
|
-
|
|
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
|
-
);
|
|
1007
|
-
U.install = (e) => {
|
|
1008
|
-
e.component(U.name, U), e.component(Z.name, Z);
|
|
791
|
+
});
|
|
792
|
+
W.install = (e) => {
|
|
793
|
+
e.component(W.name, W), e.component(ee.name, ee);
|
|
1009
794
|
};
|
|
1010
795
|
export {
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
le as listViewTableProps,
|
|
1016
|
-
Bt as propsResolver2,
|
|
1017
|
-
jt as propsResolverGenerator2
|
|
796
|
+
W as FListView,
|
|
797
|
+
ee as FListViewTable,
|
|
798
|
+
W as default,
|
|
799
|
+
le as listViewProps
|
|
1018
800
|
};
|