@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,22 +1,217 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { isUndefined as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useDesignerComponent as
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { ref as g, computed as R, createVNode as c, Fragment as U, watch as $, withModifiers as je, withDirectives as $e, vModelText as Ge, defineComponent as _, onMounted as ee, inject as Q } from "vue";
|
|
2
|
+
import { resolveAppearance as ce, createPropsResolver as fe, getPropsResolverGenerator as Ne } from "../dynamic-resolver/index.esm.js";
|
|
3
|
+
import { getCustomStyle as oe, getCustomClass as Z, FormSchemaEntityFieldType$Type as Y, withInstall as _e } from "../common/index.esm.js";
|
|
4
|
+
import { useFilter as ze, useIdentify as Ue, useHierarchy as We, useGroupData as qe, useDataView as De, useSelection as Ke, usePagination as Xe, useRow as Ye, useEdit as Je, useVisualDataBound as Qe, useVisualDataCell as Ze, useVisualDataRow as et, useVisualGroupRow as tt, useVisualSummaryRow as nt, useVisualData as lt, useSidebar as it, useColumn as at, useVirtualScroll as ot, getPagination as st } from "../data-view/index.esm.js";
|
|
5
|
+
import { LocaleService as te } from "../locale/index.esm.js";
|
|
6
|
+
import { FCheckbox as ne } from "../checkbox/index.esm.js";
|
|
7
|
+
import rt from "../button-edit/index.esm.js";
|
|
8
|
+
import { isUndefined as ut } from "lodash-es";
|
|
9
|
+
import dt from "../list-view/index.esm.js";
|
|
10
|
+
import ct from "../../designer/button-edit/index.esm.js";
|
|
11
|
+
import { useDesignerComponent as me } from "../designer-canvas/index.esm.js";
|
|
12
|
+
import { InputBaseProperty as ft } from "../property-panel/index.esm.js";
|
|
13
|
+
const mt = /* @__PURE__ */ new Map([
|
|
14
|
+
["appearance", ce]
|
|
15
|
+
]), vt = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-design.gitee.io/order.schema.json", ht = "order", yt = "A Farris Component", pt = "object", bt = {
|
|
16
|
+
id: {
|
|
17
|
+
description: "The unique identifier for a order",
|
|
18
|
+
type: "string"
|
|
19
|
+
},
|
|
20
|
+
type: {
|
|
21
|
+
description: "The type string of order component",
|
|
22
|
+
type: "string",
|
|
23
|
+
default: "order"
|
|
24
|
+
},
|
|
25
|
+
appearance: {
|
|
26
|
+
description: "",
|
|
27
|
+
type: "object",
|
|
28
|
+
properties: {
|
|
29
|
+
class: {
|
|
30
|
+
type: "string"
|
|
31
|
+
},
|
|
32
|
+
style: {
|
|
33
|
+
type: "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
default: {}
|
|
37
|
+
},
|
|
38
|
+
binding: {
|
|
39
|
+
description: "",
|
|
40
|
+
type: "object",
|
|
41
|
+
default: {}
|
|
42
|
+
},
|
|
43
|
+
editable: {
|
|
44
|
+
description: "",
|
|
45
|
+
type: "boolean",
|
|
46
|
+
default: !0
|
|
47
|
+
},
|
|
48
|
+
enableLinkLabel: {
|
|
49
|
+
description: "",
|
|
50
|
+
type: "boolean",
|
|
51
|
+
default: !1
|
|
52
|
+
},
|
|
53
|
+
label: {
|
|
54
|
+
description: "",
|
|
55
|
+
type: "string",
|
|
56
|
+
default: ""
|
|
57
|
+
},
|
|
58
|
+
lableWidth: {
|
|
59
|
+
description: "",
|
|
60
|
+
type: "number"
|
|
61
|
+
},
|
|
62
|
+
placeholder: {
|
|
63
|
+
description: "",
|
|
64
|
+
type: "string",
|
|
65
|
+
default: ""
|
|
66
|
+
},
|
|
67
|
+
readonly: {
|
|
68
|
+
description: "",
|
|
69
|
+
type: "boolean",
|
|
70
|
+
default: !1
|
|
71
|
+
},
|
|
72
|
+
required: {
|
|
73
|
+
description: "",
|
|
74
|
+
type: "boolean",
|
|
75
|
+
default: !1
|
|
76
|
+
},
|
|
77
|
+
tabindex: {
|
|
78
|
+
description: "",
|
|
79
|
+
type: "number",
|
|
80
|
+
default: -1
|
|
81
|
+
},
|
|
82
|
+
textAlign: {
|
|
83
|
+
description: "",
|
|
84
|
+
type: "string",
|
|
85
|
+
enum: [
|
|
86
|
+
"left",
|
|
87
|
+
"middle",
|
|
88
|
+
"right"
|
|
89
|
+
],
|
|
90
|
+
default: "left"
|
|
91
|
+
},
|
|
92
|
+
visible: {
|
|
93
|
+
description: "",
|
|
94
|
+
type: "boolean",
|
|
95
|
+
default: !0
|
|
96
|
+
},
|
|
97
|
+
onBlur: {
|
|
98
|
+
description: "",
|
|
99
|
+
type: "string",
|
|
100
|
+
default: ""
|
|
101
|
+
},
|
|
102
|
+
onClickLinkLabel: {
|
|
103
|
+
description: "",
|
|
104
|
+
type: "string",
|
|
105
|
+
default: ""
|
|
106
|
+
}
|
|
107
|
+
}, Ct = [
|
|
108
|
+
"id",
|
|
109
|
+
"type"
|
|
110
|
+
], St = {
|
|
111
|
+
$schema: vt,
|
|
112
|
+
$id: gt,
|
|
113
|
+
title: ht,
|
|
114
|
+
description: yt,
|
|
115
|
+
type: pt,
|
|
116
|
+
properties: bt,
|
|
117
|
+
required: Ct
|
|
118
|
+
};
|
|
119
|
+
function wt(e, t, n) {
|
|
120
|
+
return t;
|
|
121
|
+
}
|
|
122
|
+
const Ft = "order", It = "A Farris Component", Vt = "object", kt = {
|
|
123
|
+
basic: {
|
|
124
|
+
description: "Basic Infomation",
|
|
125
|
+
title: "基本信息",
|
|
126
|
+
properties: {
|
|
127
|
+
id: {
|
|
128
|
+
description: "组件标识",
|
|
129
|
+
title: "标识",
|
|
130
|
+
type: "string",
|
|
131
|
+
readonly: !0
|
|
132
|
+
},
|
|
133
|
+
type: {
|
|
134
|
+
description: "组件类型",
|
|
135
|
+
title: "控件类型",
|
|
136
|
+
type: "select",
|
|
137
|
+
editor: {
|
|
138
|
+
type: "waiting for modification",
|
|
139
|
+
enum: []
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
behavior: {
|
|
145
|
+
description: "Basic Infomation",
|
|
146
|
+
title: "行为",
|
|
147
|
+
properties: {
|
|
148
|
+
editable: {
|
|
149
|
+
description: "",
|
|
150
|
+
title: "允许编辑",
|
|
151
|
+
type: "boolean"
|
|
152
|
+
},
|
|
153
|
+
readonly: {
|
|
154
|
+
description: "",
|
|
155
|
+
title: "只读",
|
|
156
|
+
type: "string"
|
|
157
|
+
},
|
|
158
|
+
required: {
|
|
159
|
+
description: "",
|
|
160
|
+
title: "必填",
|
|
161
|
+
type: "boolean"
|
|
162
|
+
},
|
|
163
|
+
visible: {
|
|
164
|
+
description: "",
|
|
165
|
+
title: "可见",
|
|
166
|
+
type: "boolean"
|
|
167
|
+
},
|
|
168
|
+
placeholder: {
|
|
169
|
+
description: "",
|
|
170
|
+
title: "提示文本",
|
|
171
|
+
type: "string"
|
|
172
|
+
},
|
|
173
|
+
tabindex: {
|
|
174
|
+
description: "",
|
|
175
|
+
title: "tab索引",
|
|
176
|
+
type: "number"
|
|
177
|
+
},
|
|
178
|
+
textAlign: {
|
|
179
|
+
description: "",
|
|
180
|
+
title: "对齐方式",
|
|
181
|
+
type: "enum",
|
|
182
|
+
editor: {
|
|
183
|
+
type: "combo-list",
|
|
184
|
+
textField: "name",
|
|
185
|
+
valueField: "value",
|
|
186
|
+
data: [
|
|
187
|
+
{
|
|
188
|
+
value: "left",
|
|
189
|
+
name: "左对齐"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
value: "center",
|
|
193
|
+
name: "居中"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
value: "right",
|
|
197
|
+
name: "右对齐"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}, Tt = {
|
|
205
|
+
title: Ft,
|
|
206
|
+
description: It,
|
|
207
|
+
type: Vt,
|
|
208
|
+
categories: kt
|
|
209
|
+
}, le = {
|
|
15
210
|
/** 排序列数据源 */
|
|
16
211
|
dataSource: { type: Array, default: [] },
|
|
17
212
|
/** 当前排序数组 */
|
|
18
213
|
items: { type: Array, default: [] }
|
|
19
|
-
},
|
|
214
|
+
}, se = fe(le, St, mt, wt, Tt), xt = {
|
|
20
215
|
/** 列集合 */
|
|
21
216
|
columns: {
|
|
22
217
|
type: Array,
|
|
@@ -84,423 +279,423 @@ const ot = {
|
|
|
84
279
|
/** 分页 */
|
|
85
280
|
pagination: { type: Object, default: { enable: !1, size: 20 } }
|
|
86
281
|
};
|
|
87
|
-
function
|
|
88
|
-
function
|
|
89
|
-
const
|
|
90
|
-
let
|
|
91
|
-
for (;
|
|
92
|
-
|
|
93
|
-
return
|
|
94
|
-
}
|
|
95
|
-
function
|
|
96
|
-
const
|
|
97
|
-
return
|
|
98
|
-
const
|
|
99
|
-
let
|
|
100
|
-
for (;
|
|
101
|
-
const
|
|
102
|
-
if (
|
|
282
|
+
function Ot(e, t) {
|
|
283
|
+
function n(r) {
|
|
284
|
+
const f = [];
|
|
285
|
+
let h = r.nextNode();
|
|
286
|
+
for (; h; )
|
|
287
|
+
f.push(h), h = r.nextNode();
|
|
288
|
+
return f;
|
|
289
|
+
}
|
|
290
|
+
function l(r, f) {
|
|
291
|
+
const h = document.createTreeWalker(r, NodeFilter.SHOW_TEXT);
|
|
292
|
+
return n(h).map((v) => ({ textNode: v, text: (v.textContent || "").toLocaleLowerCase() })).map(({ textNode: v, text: S }) => {
|
|
293
|
+
const F = [];
|
|
294
|
+
let V = 0;
|
|
295
|
+
for (; V < S.length; ) {
|
|
296
|
+
const w = S.indexOf(f, V);
|
|
297
|
+
if (w === -1)
|
|
103
298
|
break;
|
|
104
|
-
|
|
299
|
+
F.push(w), V = w + f.length;
|
|
105
300
|
}
|
|
106
|
-
return
|
|
107
|
-
const
|
|
108
|
-
return
|
|
301
|
+
return F.map((w) => {
|
|
302
|
+
const a = new Range();
|
|
303
|
+
return a.setStart(v, w), a.setEnd(v, w + f.length), a;
|
|
109
304
|
});
|
|
110
305
|
}).flat();
|
|
111
306
|
}
|
|
112
|
-
function r
|
|
113
|
-
if (!CSS.highlights || (CSS.highlights.clear(), !
|
|
307
|
+
function u(r) {
|
|
308
|
+
if (!CSS.highlights || (CSS.highlights.clear(), !r || !t))
|
|
114
309
|
return;
|
|
115
|
-
const
|
|
116
|
-
CSS.highlights.set("search-result",
|
|
310
|
+
const f = l(t.value, r.toLocaleLowerCase()), h = new Highlight(...f);
|
|
311
|
+
CSS.highlights.set("search-result", h);
|
|
117
312
|
}
|
|
118
|
-
return { search:
|
|
313
|
+
return { search: u };
|
|
119
314
|
}
|
|
120
|
-
function
|
|
121
|
-
const
|
|
122
|
-
var
|
|
123
|
-
return ((
|
|
315
|
+
function re(e, t, n, l, u, r, f, h, k, T) {
|
|
316
|
+
const I = g(e.size), v = g(e.textField), S = g(e.titleField), F = g(e.disableField), V = R(() => {
|
|
317
|
+
var m, P;
|
|
318
|
+
return ((m = e.selection) == null ? void 0 : m.multiSelect) && ((P = e.selection) == null ? void 0 : P.showCheckbox);
|
|
124
319
|
}), {
|
|
125
|
-
onMouseenterItem:
|
|
126
|
-
onMouseoverItem:
|
|
127
|
-
onMouseoutItem:
|
|
128
|
-
} =
|
|
129
|
-
getKey:
|
|
130
|
-
listViewItemClass:
|
|
131
|
-
listViewItemStyle:
|
|
132
|
-
onCheckItem:
|
|
133
|
-
onClickItem:
|
|
134
|
-
} =
|
|
135
|
-
const
|
|
320
|
+
onMouseenterItem: w,
|
|
321
|
+
onMouseoverItem: a,
|
|
322
|
+
onMouseoutItem: s
|
|
323
|
+
} = r, {
|
|
324
|
+
getKey: i,
|
|
325
|
+
listViewItemClass: o,
|
|
326
|
+
listViewItemStyle: b,
|
|
327
|
+
onCheckItem: y,
|
|
328
|
+
onClickItem: d
|
|
329
|
+
} = f, O = R(() => {
|
|
330
|
+
const m = {
|
|
136
331
|
"text-overflow": "ellipsis",
|
|
137
332
|
overflow: "hidden",
|
|
138
333
|
"white-space": "nowrap"
|
|
139
334
|
};
|
|
140
|
-
return e.itemClass ?
|
|
141
|
-
margin:
|
|
142
|
-
...
|
|
335
|
+
return e.itemClass ? m : {
|
|
336
|
+
margin: I.value === "small" ? "0.25rem 0" : "8px 0",
|
|
337
|
+
...m
|
|
143
338
|
};
|
|
144
339
|
});
|
|
145
|
-
function
|
|
146
|
-
return
|
|
147
|
-
class:
|
|
148
|
-
id:
|
|
149
|
-
key:
|
|
150
|
-
style:
|
|
151
|
-
onClick: (E) =>
|
|
152
|
-
onMouseenter: (E) =>
|
|
153
|
-
onMouseover: (E) =>
|
|
154
|
-
onMouseout: (E) =>
|
|
155
|
-
}, [
|
|
340
|
+
function x(m, P, H) {
|
|
341
|
+
return m.checked = h.findIndexInSelectedItems(m) > -1, c("li", {
|
|
342
|
+
class: o(m, P),
|
|
343
|
+
id: i(m, P),
|
|
344
|
+
key: i(m, P),
|
|
345
|
+
style: b(m, P),
|
|
346
|
+
onClick: (E) => d(m, P, E),
|
|
347
|
+
onMouseenter: (E) => w(E, m, P),
|
|
348
|
+
onMouseover: (E) => a(E, m, P),
|
|
349
|
+
onMouseout: (E) => s(E, m, P)
|
|
350
|
+
}, [V.value && c("div", {
|
|
156
351
|
class: "f-list-select",
|
|
157
352
|
onClick: (E) => E.stopPropagation()
|
|
158
|
-
}, [
|
|
159
|
-
id: "list-" +
|
|
353
|
+
}, [c(ne, {
|
|
354
|
+
id: "list-" + i(m, P),
|
|
160
355
|
customClass: "listview-checkbox float-left",
|
|
161
|
-
disabled:
|
|
162
|
-
checked:
|
|
163
|
-
"onUpdate:checked": (E) =>
|
|
356
|
+
disabled: m[F.value],
|
|
357
|
+
checked: m.checked,
|
|
358
|
+
"onUpdate:checked": (E) => m.checked = E,
|
|
164
359
|
onChange: (E) => {
|
|
165
|
-
|
|
360
|
+
y(m, P, !E.checked);
|
|
166
361
|
}
|
|
167
|
-
}, null)]),
|
|
362
|
+
}, null)]), c("div", {
|
|
168
363
|
class: "f-list-content"
|
|
169
|
-
}, [
|
|
364
|
+
}, [c("div", {
|
|
170
365
|
class: e.itemContentClass,
|
|
171
|
-
style:
|
|
172
|
-
title:
|
|
173
|
-
}, [
|
|
366
|
+
style: O.value,
|
|
367
|
+
title: m.raw[S.value] || m.raw[v.value]
|
|
368
|
+
}, [m.raw[v.value]])])]);
|
|
174
369
|
}
|
|
175
370
|
return {
|
|
176
|
-
renderItem:
|
|
371
|
+
renderItem: x
|
|
177
372
|
};
|
|
178
373
|
}
|
|
179
|
-
function
|
|
180
|
-
const
|
|
181
|
-
onMouseenterItem:
|
|
182
|
-
onMouseoverItem:
|
|
183
|
-
onMouseoutItem:
|
|
184
|
-
} =
|
|
185
|
-
getKey:
|
|
186
|
-
listViewItemClass:
|
|
187
|
-
listViewItemStyle:
|
|
188
|
-
onCheckItem:
|
|
189
|
-
onClickItem:
|
|
190
|
-
updateSelectedItems:
|
|
191
|
-
} =
|
|
192
|
-
function
|
|
193
|
-
return e.contentTemplate ?
|
|
194
|
-
item:
|
|
195
|
-
index:
|
|
196
|
-
selectedItem:
|
|
197
|
-
})]) : t.slots.content ?
|
|
198
|
-
item:
|
|
199
|
-
index:
|
|
200
|
-
selectedItem:
|
|
201
|
-
})]) :
|
|
374
|
+
function Pt(e, t, n, l, u, r, f, h, k, T) {
|
|
375
|
+
const I = g(e.multiSelect), v = g(e.disableField), S = g(e.textField), {
|
|
376
|
+
onMouseenterItem: F,
|
|
377
|
+
onMouseoverItem: V,
|
|
378
|
+
onMouseoutItem: w
|
|
379
|
+
} = r, {
|
|
380
|
+
getKey: a,
|
|
381
|
+
listViewItemClass: s,
|
|
382
|
+
listViewItemStyle: i,
|
|
383
|
+
onCheckItem: o,
|
|
384
|
+
onClickItem: b,
|
|
385
|
+
updateSelectedItems: y
|
|
386
|
+
} = f;
|
|
387
|
+
function d(x, m, P) {
|
|
388
|
+
return e.contentTemplate ? c(U, null, [e.contentTemplate({
|
|
389
|
+
item: x.raw,
|
|
390
|
+
index: m,
|
|
391
|
+
selectedItem: P
|
|
392
|
+
})]) : t.slots.content ? c(U, null, [t.slots.content && t.slots.content({
|
|
393
|
+
item: x.raw,
|
|
394
|
+
index: m,
|
|
395
|
+
selectedItem: P
|
|
396
|
+
})]) : c("div", {
|
|
202
397
|
style: "margin: 10px 0;"
|
|
203
|
-
}, [
|
|
204
|
-
}
|
|
205
|
-
function x
|
|
206
|
-
return
|
|
207
|
-
class:
|
|
208
|
-
id:
|
|
209
|
-
key:
|
|
210
|
-
style:
|
|
211
|
-
onClick: (
|
|
212
|
-
onMouseenter: (
|
|
213
|
-
onMouseover: (
|
|
214
|
-
onMouseout: (
|
|
215
|
-
}, [
|
|
398
|
+
}, [x.raw[S.value || "name"]]);
|
|
399
|
+
}
|
|
400
|
+
function O(x, m, P) {
|
|
401
|
+
return c("li", {
|
|
402
|
+
class: s(x, m),
|
|
403
|
+
id: a(x, m),
|
|
404
|
+
key: a(x, m),
|
|
405
|
+
style: i(x, m),
|
|
406
|
+
onClick: (H) => b(x, m, H),
|
|
407
|
+
onMouseenter: (H) => F(H, x, m),
|
|
408
|
+
onMouseover: (H) => V(H, x, m),
|
|
409
|
+
onMouseout: (H) => w(H, x, m)
|
|
410
|
+
}, [I.value && c("div", {
|
|
216
411
|
class: "f-list-select",
|
|
217
|
-
onClick: (
|
|
218
|
-
}, [
|
|
219
|
-
id: "list-" +
|
|
412
|
+
onClick: (H) => H.stopPropagation()
|
|
413
|
+
}, [c(ne, {
|
|
414
|
+
id: "list-" + a(x, m),
|
|
220
415
|
customClass: "listview-checkbox",
|
|
221
|
-
disabled:
|
|
222
|
-
checked:
|
|
223
|
-
"onUpdate:checked": (
|
|
224
|
-
onChange: (
|
|
225
|
-
|
|
416
|
+
disabled: x[v.value],
|
|
417
|
+
checked: x.checked,
|
|
418
|
+
"onUpdate:checked": (H) => x.checked = H,
|
|
419
|
+
onChange: (H) => {
|
|
420
|
+
o(x, m, !H.checked), y();
|
|
226
421
|
}
|
|
227
|
-
}, null)]),
|
|
422
|
+
}, null)]), c("div", {
|
|
228
423
|
class: "f-list-content"
|
|
229
|
-
}, [
|
|
424
|
+
}, [d(x, m, P)])]);
|
|
230
425
|
}
|
|
231
426
|
return {
|
|
232
|
-
renderItem:
|
|
427
|
+
renderItem: O
|
|
233
428
|
};
|
|
234
429
|
}
|
|
235
|
-
function
|
|
236
|
-
const
|
|
237
|
-
onMouseenterItem:
|
|
238
|
-
onMouseoverItem:
|
|
239
|
-
onMouseoutItem:
|
|
240
|
-
} =
|
|
241
|
-
getKey:
|
|
242
|
-
listViewItemClass:
|
|
243
|
-
onCheckItem:
|
|
244
|
-
onClickItem:
|
|
245
|
-
} =
|
|
246
|
-
dragstart:
|
|
247
|
-
dragenter:
|
|
248
|
-
dragover:
|
|
249
|
-
dragend:
|
|
250
|
-
} =
|
|
251
|
-
removeItem:
|
|
252
|
-
} =
|
|
253
|
-
margin:
|
|
430
|
+
function Mt(e, t, n, l, u, r, f, h, k, T) {
|
|
431
|
+
const I = g(e.multiSelect), v = g(e.disableField), S = g(e.textField), {
|
|
432
|
+
onMouseenterItem: F,
|
|
433
|
+
onMouseoverItem: V,
|
|
434
|
+
onMouseoutItem: w
|
|
435
|
+
} = r, {
|
|
436
|
+
getKey: a,
|
|
437
|
+
listViewItemClass: s,
|
|
438
|
+
onCheckItem: i,
|
|
439
|
+
onClickItem: o
|
|
440
|
+
} = f, {
|
|
441
|
+
dragstart: b,
|
|
442
|
+
dragenter: y,
|
|
443
|
+
dragover: d,
|
|
444
|
+
dragend: O
|
|
445
|
+
} = l, {
|
|
446
|
+
removeItem: x
|
|
447
|
+
} = k, m = R(() => ({
|
|
448
|
+
margin: I.value ? "10px 0" : "10px 0px 10px 14px"
|
|
254
449
|
}));
|
|
255
|
-
function
|
|
256
|
-
const
|
|
257
|
-
|
|
450
|
+
function P(p, C = "") {
|
|
451
|
+
const A = p.target;
|
|
452
|
+
A.title = A.scrollWidth > A.clientWidth ? C : "";
|
|
258
453
|
}
|
|
259
|
-
function
|
|
260
|
-
return
|
|
261
|
-
style:
|
|
262
|
-
onMouseenter: (
|
|
263
|
-
}, [
|
|
454
|
+
function H(p) {
|
|
455
|
+
return c("div", {
|
|
456
|
+
style: m.value,
|
|
457
|
+
onMouseenter: (C) => P(C, p.raw[S.value || "name"])
|
|
458
|
+
}, [p.raw[S.value || "name"]]);
|
|
264
459
|
}
|
|
265
460
|
function E() {
|
|
266
|
-
return t.slots.itemContent ? t.slots.itemContent :
|
|
461
|
+
return t.slots.itemContent ? t.slots.itemContent : H;
|
|
267
462
|
}
|
|
268
463
|
const N = E();
|
|
269
|
-
function
|
|
270
|
-
return
|
|
271
|
-
class:
|
|
272
|
-
id:
|
|
273
|
-
key:
|
|
274
|
-
onClick: (
|
|
275
|
-
onMouseenter: (
|
|
276
|
-
onMouseover: (
|
|
277
|
-
onMouseout: (
|
|
464
|
+
function B(p, C, A) {
|
|
465
|
+
return c("li", {
|
|
466
|
+
class: s(p, C),
|
|
467
|
+
id: a(p, C),
|
|
468
|
+
key: a(p, C),
|
|
469
|
+
onClick: (M) => o(p, C, M),
|
|
470
|
+
onMouseenter: (M) => F(M, p, C),
|
|
471
|
+
onMouseover: (M) => V(M, p, C),
|
|
472
|
+
onMouseout: (M) => w(M, p, C),
|
|
278
473
|
draggable: "true",
|
|
279
|
-
onDragstart: (
|
|
280
|
-
onDragenter: (
|
|
281
|
-
onDragend: (
|
|
282
|
-
onDragover: (
|
|
283
|
-
}, [
|
|
474
|
+
onDragstart: (M) => b(M, p, C),
|
|
475
|
+
onDragenter: (M) => y(M, C),
|
|
476
|
+
onDragend: (M) => O(M, p),
|
|
477
|
+
onDragover: (M) => d(M)
|
|
478
|
+
}, [I.value && c("div", {
|
|
284
479
|
class: "f-list-select",
|
|
285
|
-
onClick: (
|
|
286
|
-
}, [
|
|
287
|
-
id: "list-" +
|
|
480
|
+
onClick: (M) => M.stopPropagation()
|
|
481
|
+
}, [c(ne, {
|
|
482
|
+
id: "list-" + a(p, C),
|
|
288
483
|
customClass: "listview-checkbox",
|
|
289
|
-
disabled:
|
|
290
|
-
checked:
|
|
291
|
-
"onUpdate:checked": (
|
|
292
|
-
onChange: (
|
|
293
|
-
}, null)]),
|
|
484
|
+
disabled: p[v.value] || !p.checked,
|
|
485
|
+
checked: p.checked,
|
|
486
|
+
"onUpdate:checked": (M) => p.checked = M,
|
|
487
|
+
onChange: (M) => i(p, C, !M.checked)
|
|
488
|
+
}, null)]), c("div", {
|
|
294
489
|
class: "f-list-content"
|
|
295
|
-
}, [N(
|
|
490
|
+
}, [N(p)]), c("div", {
|
|
296
491
|
class: "f-list-remove",
|
|
297
|
-
onClick: (
|
|
298
|
-
|
|
492
|
+
onClick: (M) => {
|
|
493
|
+
M.stopPropagation(), x(C);
|
|
299
494
|
}
|
|
300
|
-
}, [
|
|
495
|
+
}, [c("div", {
|
|
301
496
|
class: "f-list-remove-icon"
|
|
302
|
-
}, [
|
|
497
|
+
}, [c("i", {
|
|
303
498
|
class: "f-icon f-icon-remove_face"
|
|
304
|
-
}, null)])]),
|
|
499
|
+
}, null)])]), c("div", {
|
|
305
500
|
class: "f-list-handle"
|
|
306
|
-
}, [
|
|
501
|
+
}, [c("div", null, [c("i", {
|
|
307
502
|
class: "f-icon f-icon-drag-vertical"
|
|
308
503
|
}, null)])])]);
|
|
309
504
|
}
|
|
310
505
|
return {
|
|
311
|
-
renderItem:
|
|
506
|
+
renderItem: B
|
|
312
507
|
};
|
|
313
508
|
}
|
|
314
|
-
function
|
|
315
|
-
var
|
|
316
|
-
const
|
|
317
|
-
collpaseGroupIconClass:
|
|
318
|
-
} =
|
|
319
|
-
toggleGroupRow:
|
|
320
|
-
} =
|
|
321
|
-
function
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
function
|
|
325
|
-
return t.slots.group ?
|
|
326
|
-
item:
|
|
327
|
-
index:
|
|
328
|
-
selectedItem:
|
|
329
|
-
})]) :
|
|
509
|
+
function Bt(e, t, n, l, u, r, f, h, k, T) {
|
|
510
|
+
var a;
|
|
511
|
+
const I = g(((a = e.group) == null ? void 0 : a.groupFields) || []), {
|
|
512
|
+
collpaseGroupIconClass: v
|
|
513
|
+
} = u, {
|
|
514
|
+
toggleGroupRow: S
|
|
515
|
+
} = T;
|
|
516
|
+
function F(s, i) {
|
|
517
|
+
i.collapse = !i.collapse, n.value = S(i.collapse ? "collapse" : "expand", i, n.value);
|
|
518
|
+
}
|
|
519
|
+
function V(s, i, o) {
|
|
520
|
+
return t.slots.group ? c(U, null, [t.slots.content && t.slots.group({
|
|
521
|
+
item: s.raw,
|
|
522
|
+
index: i,
|
|
523
|
+
selectedItem: o
|
|
524
|
+
})]) : c("div", {
|
|
330
525
|
class: "f-navlookup-recentHeader",
|
|
331
|
-
onClick: (
|
|
332
|
-
}, [
|
|
526
|
+
onClick: (b) => F(b, s)
|
|
527
|
+
}, [c("div", {
|
|
333
528
|
class: "fv-grid-group-row-icon"
|
|
334
|
-
}, [
|
|
335
|
-
class:
|
|
336
|
-
}, null)]),
|
|
529
|
+
}, [c("span", {
|
|
530
|
+
class: v(s)
|
|
531
|
+
}, null)]), c("div", {
|
|
337
532
|
class: "f-navlookup-recommandLabel"
|
|
338
|
-
}, [
|
|
533
|
+
}, [s.raw[I.value[s.layer]]])]);
|
|
339
534
|
}
|
|
340
|
-
function
|
|
341
|
-
return
|
|
535
|
+
function w(s, i, o) {
|
|
536
|
+
return s.layer > -1 && V(s, i, o);
|
|
342
537
|
}
|
|
343
538
|
return {
|
|
344
|
-
renderItem:
|
|
539
|
+
renderItem: w
|
|
345
540
|
};
|
|
346
541
|
}
|
|
347
|
-
function
|
|
348
|
-
const { dataView:
|
|
349
|
-
function
|
|
350
|
-
if (
|
|
351
|
-
if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(
|
|
542
|
+
function Rt(e, t, n, l) {
|
|
543
|
+
const { dataView: u } = n, { updateSelectedItems: r } = l;
|
|
544
|
+
function f(h) {
|
|
545
|
+
if (h > -1 && h < u.value.length) {
|
|
546
|
+
if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(u.value[h]))
|
|
352
547
|
return;
|
|
353
|
-
const
|
|
354
|
-
|
|
548
|
+
const k = u.value.splice(h, 1);
|
|
549
|
+
r(), t.emit("removeItem", k[0]);
|
|
355
550
|
}
|
|
356
551
|
}
|
|
357
|
-
return { removeItem:
|
|
552
|
+
return { removeItem: f };
|
|
358
553
|
}
|
|
359
|
-
function
|
|
360
|
-
const
|
|
554
|
+
function Lt(e, t, n, l, u, r, f, h, k, T) {
|
|
555
|
+
const I = g(e.view), v = g(e.view === "CardView"), S = g({}), F = Rt(e, t, l, k), V = R(() => ({
|
|
361
556
|
"f-list-view-group": !0,
|
|
362
557
|
"f-list-view-group-multiselect": e.multiSelect,
|
|
363
|
-
"d-flex":
|
|
364
|
-
"flex-wrap":
|
|
365
|
-
})),
|
|
366
|
-
|
|
367
|
-
function
|
|
368
|
-
return
|
|
369
|
-
}
|
|
370
|
-
const
|
|
371
|
-
renderItem:
|
|
372
|
-
} =
|
|
373
|
-
renderItem:
|
|
374
|
-
} =
|
|
375
|
-
function
|
|
376
|
-
return
|
|
558
|
+
"d-flex": v.value,
|
|
559
|
+
"flex-wrap": v.value
|
|
560
|
+
})), w = R(() => !!n.value && n.value.length > 0), a = R(() => n.value.length === 0);
|
|
561
|
+
R(() => a.value && !t.slots.empty);
|
|
562
|
+
function s() {
|
|
563
|
+
return I.value === "SingleView" ? re : I.value === "DraggableView" ? Mt : (I.value === "ContentView" || I.value === "CardView") && (e.contentTemplate || t.slots.content) ? Pt : re;
|
|
564
|
+
}
|
|
565
|
+
const i = s(), {
|
|
566
|
+
renderItem: o
|
|
567
|
+
} = i(e, t, n, T, u, r, k, f, F, h), {
|
|
568
|
+
renderItem: b
|
|
569
|
+
} = Bt(e, t, n, T, u, r, k, f, F, h), y = [o, b];
|
|
570
|
+
function d() {
|
|
571
|
+
return n.value.filter((m) => m.visible !== !1).map((m, P) => y[m.type](m, P, S));
|
|
377
572
|
}
|
|
378
|
-
function
|
|
379
|
-
return
|
|
573
|
+
function O() {
|
|
574
|
+
return c("div", {
|
|
380
575
|
class: "f-list-view-emptydata",
|
|
381
576
|
style: "margin: 0 auto;"
|
|
382
|
-
}, [
|
|
577
|
+
}, [c("p", {
|
|
383
578
|
class: "f-empty-title"
|
|
384
|
-
}, [e.emptyTemplate ? e.emptyTemplate() : t.slots.empty ? t.slots.empty() :
|
|
579
|
+
}, [e.emptyTemplate ? e.emptyTemplate() : t.slots.empty ? t.slots.empty() : te.getLocaleValue("listView.emptyMessage")])]);
|
|
385
580
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
388
|
-
class:
|
|
581
|
+
function x() {
|
|
582
|
+
return c("ul", {
|
|
583
|
+
class: V.value,
|
|
389
584
|
style: "list-style: none;"
|
|
390
|
-
}, [
|
|
585
|
+
}, [w.value && d(), a.value && O()]);
|
|
391
586
|
}
|
|
392
587
|
return {
|
|
393
|
-
renderListArea:
|
|
588
|
+
renderListArea: x
|
|
394
589
|
};
|
|
395
590
|
}
|
|
396
|
-
function
|
|
397
|
-
function
|
|
398
|
-
return t.slots.header &&
|
|
591
|
+
function Ht(e, t, n) {
|
|
592
|
+
function l() {
|
|
593
|
+
return t.slots.header && c("div", {
|
|
399
594
|
class: "f-list-view-header"
|
|
400
595
|
}, [t.slots.header()]);
|
|
401
596
|
}
|
|
402
597
|
return {
|
|
403
|
-
renderHeader:
|
|
598
|
+
renderHeader: l
|
|
404
599
|
};
|
|
405
600
|
}
|
|
406
|
-
function
|
|
407
|
-
const
|
|
408
|
-
function
|
|
409
|
-
|
|
601
|
+
function ue(e, t, n) {
|
|
602
|
+
const l = g(e.headerClass), u = g(e.placeholder), r = g(""), f = R(() => !r.value), h = R(() => !!r.value);
|
|
603
|
+
function k(S) {
|
|
604
|
+
r.value = "";
|
|
410
605
|
}
|
|
411
|
-
|
|
412
|
-
e.enableHighlightSearch &&
|
|
606
|
+
$(r, (S) => {
|
|
607
|
+
e.enableHighlightSearch && n.search(S), t.emit("afterSearch", S);
|
|
413
608
|
});
|
|
414
|
-
const
|
|
415
|
-
const
|
|
609
|
+
const T = R(() => {
|
|
610
|
+
const S = {
|
|
416
611
|
"form-group": !0,
|
|
417
612
|
"farris-form-group": !0
|
|
418
613
|
};
|
|
419
|
-
return
|
|
614
|
+
return l.value && l.value.split(" ").reduce((V, w) => (V[w] = !0, V), S), S;
|
|
420
615
|
});
|
|
421
|
-
function
|
|
616
|
+
function I(S) {
|
|
422
617
|
}
|
|
423
|
-
function
|
|
424
|
-
return
|
|
618
|
+
function v() {
|
|
619
|
+
return c("div", {
|
|
425
620
|
class: "f-list-view-header",
|
|
426
|
-
onClick:
|
|
427
|
-
}, [
|
|
428
|
-
class:
|
|
429
|
-
}, [
|
|
621
|
+
onClick: je(() => I, ["prevent", "stop"])
|
|
622
|
+
}, [c("div", {
|
|
623
|
+
class: T.value
|
|
624
|
+
}, [c("div", {
|
|
430
625
|
class: "farris-input-wrap"
|
|
431
|
-
}, [
|
|
626
|
+
}, [c("div", {
|
|
432
627
|
class: "f-cmp-inputgroup"
|
|
433
|
-
}, [
|
|
628
|
+
}, [c("div", {
|
|
434
629
|
class: "input-group f-state-editable"
|
|
435
|
-
}, [
|
|
630
|
+
}, [$e(c("input", {
|
|
436
631
|
class: "form-control f-utils-fill text-left",
|
|
437
|
-
"onUpdate:modelValue": (
|
|
632
|
+
"onUpdate:modelValue": (S) => r.value = S,
|
|
438
633
|
name: "input-group-value",
|
|
439
634
|
type: "text",
|
|
440
|
-
placeholder:
|
|
635
|
+
placeholder: u.value,
|
|
441
636
|
autocomplete: "off"
|
|
442
|
-
}, null), [[
|
|
637
|
+
}, null), [[Ge, r.value]]), c("div", {
|
|
443
638
|
class: "input-group-append"
|
|
444
|
-
}, [
|
|
639
|
+
}, [h.value && c("span", {
|
|
445
640
|
class: "input-group-text input-group-clear",
|
|
446
|
-
onClick: (
|
|
447
|
-
}, [
|
|
641
|
+
onClick: (S) => k()
|
|
642
|
+
}, [c("i", {
|
|
448
643
|
class: "f-icon f-icon-close-circle"
|
|
449
|
-
}, null)]),
|
|
644
|
+
}, null)]), f.value && c("span", {
|
|
450
645
|
class: "input-group-text"
|
|
451
|
-
}, [
|
|
646
|
+
}, [c("span", {
|
|
452
647
|
class: "f-icon f-icon-search"
|
|
453
648
|
}, null)])])])])])])]);
|
|
454
649
|
}
|
|
455
650
|
return {
|
|
456
|
-
renderHeader:
|
|
651
|
+
renderHeader: v
|
|
457
652
|
};
|
|
458
653
|
}
|
|
459
|
-
function
|
|
460
|
-
const e =
|
|
461
|
-
function
|
|
462
|
-
|
|
654
|
+
function At() {
|
|
655
|
+
const e = g(""), t = g(-1), n = g(""), l = g(-1), u = g(!1);
|
|
656
|
+
function r(v, S, F) {
|
|
657
|
+
l.value = F;
|
|
463
658
|
}
|
|
464
|
-
function
|
|
465
|
-
|
|
659
|
+
function f(v, S, F) {
|
|
660
|
+
u.value || (l.value = F);
|
|
466
661
|
}
|
|
467
|
-
function
|
|
468
|
-
|
|
662
|
+
function h(v, S, F) {
|
|
663
|
+
l.value = -1;
|
|
469
664
|
}
|
|
470
|
-
function
|
|
471
|
-
|
|
665
|
+
function k() {
|
|
666
|
+
u.value = !0;
|
|
472
667
|
}
|
|
473
|
-
function
|
|
474
|
-
|
|
668
|
+
function T() {
|
|
669
|
+
u.value = !1;
|
|
475
670
|
}
|
|
476
|
-
function
|
|
671
|
+
function I() {
|
|
477
672
|
t.value = -1, e.value = "";
|
|
478
673
|
}
|
|
479
674
|
return {
|
|
480
675
|
activeIndex: t,
|
|
481
|
-
focusedItemId:
|
|
482
|
-
hoverIndex:
|
|
483
|
-
clearActiveItem:
|
|
484
|
-
onMouseenterItem:
|
|
485
|
-
onMouseoverItem:
|
|
486
|
-
onMouseoutItem:
|
|
487
|
-
resumeHover:
|
|
488
|
-
suspendHover:
|
|
676
|
+
focusedItemId: n,
|
|
677
|
+
hoverIndex: l,
|
|
678
|
+
clearActiveItem: I,
|
|
679
|
+
onMouseenterItem: r,
|
|
680
|
+
onMouseoverItem: f,
|
|
681
|
+
onMouseoutItem: h,
|
|
682
|
+
resumeHover: T,
|
|
683
|
+
suspendHover: k
|
|
489
684
|
};
|
|
490
685
|
}
|
|
491
|
-
function
|
|
492
|
-
const
|
|
493
|
-
let
|
|
494
|
-
function
|
|
495
|
-
const
|
|
496
|
-
|
|
497
|
-
}
|
|
498
|
-
function
|
|
499
|
-
const { left:
|
|
500
|
-
return
|
|
686
|
+
function Et(e, t, n, l) {
|
|
687
|
+
const u = g(e.idField), { dataView: r } = n, f = g(-1), h = g(!1), { activeIndex: k, focusedItemId: T, hoverIndex: I, resumeHover: v, suspendHover: S } = l;
|
|
688
|
+
let F, V = 0, w = 0;
|
|
689
|
+
function a(d, O) {
|
|
690
|
+
const x = d - V, m = O - w;
|
|
691
|
+
F.style.left = parseInt(F.style.left) + x + "px", F.style.top = parseInt(F.style.top) + m + "px", V = d, w = O;
|
|
692
|
+
}
|
|
693
|
+
function s(d) {
|
|
694
|
+
const { left: O, top: x } = d.getBoundingClientRect(), m = d.cloneNode(!0);
|
|
695
|
+
return m.className = m.className + " f-listview-drag-moving", m.style.cssText = `
|
|
501
696
|
position:absolute;
|
|
502
|
-
left:${
|
|
503
|
-
top:${document.documentElement.scrollTop ?
|
|
697
|
+
left:${O}px;
|
|
698
|
+
top:${document.documentElement.scrollTop ? x + document.documentElement.scrollTop : x}px;
|
|
504
699
|
z-index: 999999;
|
|
505
700
|
pointer-events: none;
|
|
506
701
|
border-radius: 10px;
|
|
@@ -509,224 +704,225 @@ function ht(e, t, a, n) {
|
|
|
509
704
|
align-items: center;
|
|
510
705
|
float: none;
|
|
511
706
|
text-align: initial;
|
|
512
|
-
width:${getComputedStyle(
|
|
513
|
-
height:${getComputedStyle(
|
|
514
|
-
`,
|
|
707
|
+
width:${getComputedStyle(d).width};
|
|
708
|
+
height:${getComputedStyle(d).height};
|
|
709
|
+
`, m.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", m.children[0].children[0].style.cssText = `
|
|
515
710
|
margin: 10px 0px 10px 14px;
|
|
516
711
|
overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
|
|
517
|
-
`,
|
|
712
|
+
`, m.children[1].style.cssText = "width: 30px;padding: 0 14px 0 0", m.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(m), m;
|
|
518
713
|
}
|
|
519
|
-
function
|
|
520
|
-
if (
|
|
521
|
-
if (
|
|
522
|
-
const
|
|
523
|
-
|
|
714
|
+
function i(d, O, x) {
|
|
715
|
+
if (d.stopPropagation(), S(), O) {
|
|
716
|
+
if (F = s(d.target), d.dataTransfer) {
|
|
717
|
+
const m = new Image();
|
|
718
|
+
m.src = "", d.dataTransfer.setDragImage(m, 0, 0);
|
|
524
719
|
}
|
|
525
|
-
|
|
526
|
-
|
|
720
|
+
V = d.pageX, w = d.pageY, setTimeout(() => {
|
|
721
|
+
f.value = x, h.value = !0, O.moving = !0;
|
|
527
722
|
});
|
|
528
723
|
}
|
|
529
724
|
}
|
|
530
|
-
function
|
|
531
|
-
if (
|
|
532
|
-
const
|
|
533
|
-
|
|
725
|
+
function o(d, O) {
|
|
726
|
+
if (d.preventDefault(), f.value !== O) {
|
|
727
|
+
const x = r.value[f.value], m = r.value;
|
|
728
|
+
m.splice(f.value, 1), m.splice(O, 0, x), f.value = O, a(d.pageX, d.pageY);
|
|
534
729
|
}
|
|
535
730
|
}
|
|
536
|
-
function
|
|
537
|
-
|
|
731
|
+
function b(d) {
|
|
732
|
+
d.preventDefault(), d.dataTransfer && (d.dataTransfer.dropEffect = "move"), a(d.pageX, d.pageY);
|
|
538
733
|
}
|
|
539
|
-
function
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
}),
|
|
734
|
+
function y(d, O) {
|
|
735
|
+
O && (O.moving = !1, F && (document.body.removeChild(F), F = null)), r.value.forEach((x, m) => {
|
|
736
|
+
x.__fv_index__ = m;
|
|
737
|
+
}), h.value = !1, v(), I.value = O.raw.__fv_index__, k.value = O.raw.__fv_index__, T.value = O.raw[u.value], t.emit("change", r.value), t.emit("activeChange", [O.raw]);
|
|
543
738
|
}
|
|
544
739
|
return {
|
|
545
|
-
dragstart:
|
|
546
|
-
dragenter:
|
|
547
|
-
dragover:
|
|
548
|
-
dragend:
|
|
549
|
-
isDragging:
|
|
740
|
+
dragstart: i,
|
|
741
|
+
dragenter: o,
|
|
742
|
+
dragover: b,
|
|
743
|
+
dragend: y,
|
|
744
|
+
isDragging: h
|
|
550
745
|
};
|
|
551
746
|
}
|
|
552
|
-
function
|
|
553
|
-
const
|
|
554
|
-
|
|
555
|
-
const
|
|
556
|
-
let
|
|
557
|
-
return
|
|
747
|
+
function jt(e, t, n, l, u, r) {
|
|
748
|
+
const f = g(e.idField), h = g(e.disableField), k = g(e.draggable);
|
|
749
|
+
g(e.itemClass);
|
|
750
|
+
const T = g(e.selection.multiSelect ?? !1), I = g(e.selection.multiSelectMode), { isDragging: v } = l, { activeIndex: S, focusedItemId: F, hoverIndex: V } = u, { clearSelection: w, getSelectedItems: a, toggleSelectItem: s, currentSelectedDataId: i } = r, o = g(a()), b = (B) => o.value.length === 0 ? !1 : o.value.some((p) => {
|
|
751
|
+
let C = "";
|
|
752
|
+
return p.data ? C = p.data[f.value] : C = p[f.value], C === B;
|
|
558
753
|
});
|
|
559
|
-
function
|
|
560
|
-
|
|
754
|
+
function y() {
|
|
755
|
+
o.value = a();
|
|
561
756
|
}
|
|
562
|
-
function
|
|
563
|
-
return
|
|
757
|
+
function d(B, p) {
|
|
758
|
+
return B.raw[f.value] != null ? B.raw[f.value] : "";
|
|
564
759
|
}
|
|
565
|
-
function
|
|
566
|
-
const
|
|
760
|
+
function O(B, p) {
|
|
761
|
+
const C = {
|
|
567
762
|
"f-list-view-group-item": !0,
|
|
568
|
-
"f-list-view-draggable-item":
|
|
569
|
-
"f-un-click": !
|
|
570
|
-
"f-un-select": !!
|
|
763
|
+
"f-list-view-draggable-item": k.value,
|
|
764
|
+
"f-un-click": !B.checked,
|
|
765
|
+
"f-un-select": !!B.raw[h.value],
|
|
571
766
|
"f-listview-active": (
|
|
572
767
|
// 多选
|
|
573
|
-
|
|
574
|
-
!
|
|
768
|
+
T.value && b(d(B)) || // 单选
|
|
769
|
+
!T.value && B.raw[f.value] === i.value
|
|
575
770
|
),
|
|
576
|
-
"f-listview-hover": !
|
|
577
|
-
moving: !!
|
|
771
|
+
"f-listview-hover": !v.value && p === V.value,
|
|
772
|
+
moving: !!B.moving
|
|
578
773
|
};
|
|
579
774
|
if (typeof e.itemClass == "string")
|
|
580
|
-
return
|
|
775
|
+
return Z(C, e.itemClass);
|
|
581
776
|
if (typeof e.itemClass == "function") {
|
|
582
|
-
const
|
|
583
|
-
return
|
|
777
|
+
const A = e.itemClass(B);
|
|
778
|
+
return Z(C, A);
|
|
584
779
|
}
|
|
585
|
-
return
|
|
780
|
+
return C;
|
|
586
781
|
}
|
|
587
|
-
function
|
|
588
|
-
const
|
|
782
|
+
function x(B, p) {
|
|
783
|
+
const C = {};
|
|
589
784
|
if (typeof e.itemStyle == "string")
|
|
590
|
-
return
|
|
785
|
+
return oe(C, e.itemStyle);
|
|
591
786
|
if (typeof e.itemStyle == "function") {
|
|
592
|
-
const
|
|
593
|
-
return
|
|
787
|
+
const A = e.itemStyle(B);
|
|
788
|
+
return oe(C, A);
|
|
594
789
|
}
|
|
595
|
-
return
|
|
790
|
+
return C;
|
|
596
791
|
}
|
|
597
|
-
const
|
|
598
|
-
function
|
|
599
|
-
|
|
792
|
+
const m = R(() => !T.value);
|
|
793
|
+
function P(B, p, C) {
|
|
794
|
+
B.checked = C, !B.raw[h.value] && (m.value && (F.value = B.raw[f.value]), s(B));
|
|
600
795
|
}
|
|
601
|
-
const
|
|
602
|
-
function N(
|
|
603
|
-
if (
|
|
604
|
-
|
|
796
|
+
const H = R(() => T.value && I.value === "OnCheckClearByClick"), E = R(() => !T.value || T.value && (I.value === "OnCheckAndClick" || I.value === "OnClick"));
|
|
797
|
+
function N(B, p, C) {
|
|
798
|
+
if (B.raw[h.value]) {
|
|
799
|
+
C == null || C.preventDefault(), C == null || C.stopPropagation();
|
|
605
800
|
return;
|
|
606
801
|
}
|
|
607
|
-
|
|
802
|
+
i.value = B.raw[f.value], F.value = B.raw[f.value], S.value = p, H.value && w(), E.value && (s(B), y()), t.emit("clickItem", { data: o.value, index: p, dataItem: B.raw }), t.emit("activeChange", o.value);
|
|
608
803
|
}
|
|
609
804
|
return {
|
|
610
|
-
getKey:
|
|
611
|
-
selectedItems:
|
|
612
|
-
listViewItemClass:
|
|
613
|
-
listViewItemStyle:
|
|
614
|
-
updateSelectedItems:
|
|
615
|
-
onCheckItem:
|
|
805
|
+
getKey: d,
|
|
806
|
+
selectedItems: o,
|
|
807
|
+
listViewItemClass: O,
|
|
808
|
+
listViewItemStyle: x,
|
|
809
|
+
updateSelectedItems: y,
|
|
810
|
+
onCheckItem: P,
|
|
616
811
|
onClickItem: N
|
|
617
812
|
};
|
|
618
813
|
}
|
|
619
|
-
const
|
|
814
|
+
const ve = /* @__PURE__ */ _({
|
|
620
815
|
name: "FListView",
|
|
621
|
-
props:
|
|
816
|
+
props: xt,
|
|
622
817
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
|
|
623
818
|
setup(e, t) {
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
819
|
+
var ae;
|
|
820
|
+
const n = g(!1), l = g(), u = g(!0), r = g(((ae = e.rowOption) == null ? void 0 : ae.rowHeight) || 28), f = g(!1), h = g([]), k = 0, T = g(e.columns), I = ze(e, t), v = Ue(e), S = We(e), F = qe(e, v), V = De(e, /* @__PURE__ */ new Map(), I, S, v), w = Ke(e, V, v, h, t), a = Ot(e, l), s = Xe(e, V), i = R(() => V.dataView.value.length), o = Ye(e, t, w, v), b = Je(e, t, v, o, h), y = Qe(e, V, r), d = Ze(e, {}, y), O = et(e, V, b, S, v, y, d, r), x = tt(e, v, d, O), m = nt(e, v, d, O), P = lt(e, T, V, i, k, O, x, m), {
|
|
821
|
+
getVisualData: H
|
|
822
|
+
} = P;
|
|
823
|
+
h.value = H(0, i.value + k - 1);
|
|
824
|
+
const E = R(() => {
|
|
825
|
+
const L = {
|
|
630
826
|
"f-list-view": !0,
|
|
631
827
|
"f-list-view-multiple": e.multiSelect
|
|
632
828
|
};
|
|
633
|
-
return e.size !== "default" && (
|
|
634
|
-
}),
|
|
635
|
-
function
|
|
636
|
-
return e.header === "SearchBar" ?
|
|
829
|
+
return e.size !== "default" && (L[`${e.size}-item`] = !0), Z(L, e.customClass);
|
|
830
|
+
}), N = R(() => !!t.slots.footer || u.value);
|
|
831
|
+
function B() {
|
|
832
|
+
return e.header === "SearchBar" ? ue : e.header === "ContentHeader" ? Ht : ue;
|
|
637
833
|
}
|
|
638
|
-
const
|
|
639
|
-
renderHeader:
|
|
640
|
-
} =
|
|
641
|
-
renderListArea:
|
|
642
|
-
} =
|
|
643
|
-
function
|
|
644
|
-
|
|
834
|
+
const p = B(), {
|
|
835
|
+
renderHeader: C
|
|
836
|
+
} = p(e, t, a), A = At(), M = Et(e, t, V, A), j = jt(e, t, h, M, A, w), {
|
|
837
|
+
renderListArea: Ce
|
|
838
|
+
} = Lt(e, t, h, V, F, A, w, P, j, M);
|
|
839
|
+
function Se(L) {
|
|
840
|
+
a.search(L);
|
|
645
841
|
}
|
|
646
|
-
function
|
|
647
|
-
|
|
842
|
+
function we(L) {
|
|
843
|
+
L && (V.load(L), h.value = H(0, i.value + k - 1));
|
|
648
844
|
}
|
|
649
|
-
function
|
|
650
|
-
|
|
845
|
+
function Fe() {
|
|
846
|
+
w.clearSelection(), A.clearActiveItem();
|
|
651
847
|
}
|
|
652
|
-
function
|
|
653
|
-
return
|
|
848
|
+
function Ie() {
|
|
849
|
+
return j.selectedItems.value;
|
|
654
850
|
}
|
|
655
|
-
function
|
|
656
|
-
return
|
|
851
|
+
function Ve() {
|
|
852
|
+
return j.selectedItems.value.map((L) => L[v.idField.value]);
|
|
657
853
|
}
|
|
658
|
-
function
|
|
659
|
-
|
|
854
|
+
function ie(L) {
|
|
855
|
+
w.selectedValues.value = L, j.updateSelectedItems();
|
|
660
856
|
}
|
|
661
|
-
function
|
|
662
|
-
return
|
|
857
|
+
function ke() {
|
|
858
|
+
return w.currentSelectedDataId.value;
|
|
663
859
|
}
|
|
664
|
-
function
|
|
665
|
-
|
|
860
|
+
function Te(L) {
|
|
861
|
+
o.activeRowById(L);
|
|
666
862
|
}
|
|
667
|
-
function
|
|
668
|
-
const G =
|
|
669
|
-
z &&
|
|
863
|
+
function xe(L) {
|
|
864
|
+
const G = v.idField.value, z = h.value.find((X) => X.raw[G] === L), W = h.value.findIndex((X) => X.raw[G] === L);
|
|
865
|
+
z && W > -1 && j.onClickItem(z, W);
|
|
670
866
|
}
|
|
671
|
-
function
|
|
672
|
-
const G =
|
|
673
|
-
z &&
|
|
867
|
+
function Oe(L) {
|
|
868
|
+
const G = v.idField.value, z = h.value.find((W) => W.raw[G] === L);
|
|
869
|
+
z && o.changeRow(z);
|
|
674
870
|
}
|
|
675
|
-
function
|
|
676
|
-
|
|
871
|
+
function Pe(L) {
|
|
872
|
+
s.updatePagination(L);
|
|
677
873
|
}
|
|
678
|
-
function
|
|
679
|
-
return
|
|
874
|
+
function Me(L) {
|
|
875
|
+
return h.value.filter((G) => L.includes(G.raw[e.idField]));
|
|
680
876
|
}
|
|
681
877
|
t.expose({
|
|
682
|
-
search:
|
|
683
|
-
updateDataSource:
|
|
684
|
-
clearSelection:
|
|
685
|
-
getSelections:
|
|
686
|
-
updateSelectionByIds:
|
|
687
|
-
getSelectionIds:
|
|
688
|
-
activeRowById:
|
|
689
|
-
getCurrentRowId:
|
|
690
|
-
clickRowItemById:
|
|
691
|
-
updatePagination:
|
|
692
|
-
getVisibleDataByIds:
|
|
693
|
-
selectRowById:
|
|
878
|
+
search: Se,
|
|
879
|
+
updateDataSource: we,
|
|
880
|
+
clearSelection: Fe,
|
|
881
|
+
getSelections: Ie,
|
|
882
|
+
updateSelectionByIds: ie,
|
|
883
|
+
getSelectionIds: Ve,
|
|
884
|
+
activeRowById: Te,
|
|
885
|
+
getCurrentRowId: ke,
|
|
886
|
+
clickRowItemById: xe,
|
|
887
|
+
updatePagination: Pe,
|
|
888
|
+
getVisibleDataByIds: Me,
|
|
889
|
+
selectRowById: Oe
|
|
694
890
|
});
|
|
695
|
-
function
|
|
696
|
-
e.multiSelect && (
|
|
891
|
+
function Be(L) {
|
|
892
|
+
e.multiSelect && (L.preventDefault(), L.stopPropagation());
|
|
697
893
|
}
|
|
698
|
-
|
|
699
|
-
|
|
894
|
+
$(() => e.selectionValues, (L, G) => {
|
|
895
|
+
L !== G && ie(L);
|
|
700
896
|
});
|
|
701
|
-
const
|
|
702
|
-
sidebarWidth:
|
|
703
|
-
showSidebarCheckBox:
|
|
704
|
-
} =
|
|
705
|
-
applyColumnSorter:
|
|
706
|
-
columnContext:
|
|
707
|
-
updateColumnRenderContext:
|
|
708
|
-
} =
|
|
709
|
-
shouldRenderPagination:
|
|
710
|
-
} =
|
|
711
|
-
renderDataGridPagination:
|
|
712
|
-
} =
|
|
713
|
-
return () =>
|
|
714
|
-
class:
|
|
715
|
-
onClick:
|
|
716
|
-
}, [
|
|
717
|
-
ref:
|
|
897
|
+
const Re = it(e, w), {
|
|
898
|
+
sidebarWidth: Le,
|
|
899
|
+
showSidebarCheckBox: rn
|
|
900
|
+
} = Re, He = at(e, t), {
|
|
901
|
+
applyColumnSorter: un,
|
|
902
|
+
columnContext: Ae,
|
|
903
|
+
updateColumnRenderContext: dn
|
|
904
|
+
} = He, Ee = ot(e, V, h, Ae, P, i, k, Le, r, n, b), {
|
|
905
|
+
shouldRenderPagination: cn
|
|
906
|
+
} = s, {
|
|
907
|
+
renderDataGridPagination: fn
|
|
908
|
+
} = st(e, t, V, Ee, s, w);
|
|
909
|
+
return () => c("div", {
|
|
910
|
+
class: E.value,
|
|
911
|
+
onClick: Be
|
|
912
|
+
}, [C(), c("div", {
|
|
913
|
+
ref: l,
|
|
718
914
|
class: "f-list-view-content",
|
|
719
915
|
onMouseover: () => {
|
|
720
|
-
|
|
916
|
+
f.value = !0;
|
|
721
917
|
},
|
|
722
918
|
onMouseleave: () => {
|
|
723
|
-
|
|
919
|
+
f.value = !1;
|
|
724
920
|
}
|
|
725
|
-
}, [
|
|
921
|
+
}, [Ce()]), N.value && c("div", {
|
|
726
922
|
class: "f-list-view-footer"
|
|
727
923
|
}, [e.footerTemplate ? e.footerTemplate() : t.slots.footer && t.slots.footer()])]);
|
|
728
924
|
}
|
|
729
|
-
}),
|
|
925
|
+
}), $t = {
|
|
730
926
|
/**
|
|
731
927
|
* 组件标识
|
|
732
928
|
*/
|
|
@@ -752,58 +948,58 @@ const Ct = /* @__PURE__ */ _({
|
|
|
752
948
|
*/
|
|
753
949
|
customClass: { type: Object, default: {} }
|
|
754
950
|
};
|
|
755
|
-
function
|
|
756
|
-
function
|
|
757
|
-
|
|
951
|
+
function Gt(e, t) {
|
|
952
|
+
function n(l) {
|
|
953
|
+
l.stopPropagation(), e.disabled || t.emit("click", l);
|
|
758
954
|
}
|
|
759
955
|
return {
|
|
760
|
-
onClickButton:
|
|
956
|
+
onClickButton: n
|
|
761
957
|
};
|
|
762
958
|
}
|
|
763
|
-
function
|
|
764
|
-
const t =
|
|
765
|
-
const
|
|
959
|
+
function Nt(e) {
|
|
960
|
+
const t = R(() => {
|
|
961
|
+
const l = {
|
|
766
962
|
"f-icon": !0
|
|
767
963
|
};
|
|
768
964
|
if (e.icon) {
|
|
769
|
-
const
|
|
770
|
-
|
|
965
|
+
const u = e.icon.trim().split(" ");
|
|
966
|
+
u && u.length && u.reduce((r, f) => (r[f] = !0, r), l);
|
|
771
967
|
}
|
|
772
|
-
return
|
|
773
|
-
}),
|
|
774
|
-
return { iconClass: t, shouldShowIcon:
|
|
968
|
+
return l;
|
|
969
|
+
}), n = R(() => !!(e.icon && e.icon.trim()));
|
|
970
|
+
return { iconClass: t, shouldShowIcon: n };
|
|
775
971
|
}
|
|
776
|
-
const
|
|
972
|
+
const ge = /* @__PURE__ */ _({
|
|
777
973
|
name: "FButton",
|
|
778
|
-
props:
|
|
974
|
+
props: $t,
|
|
779
975
|
emits: ["click"],
|
|
780
976
|
setup(e, t) {
|
|
781
977
|
const {
|
|
782
|
-
onClickButton:
|
|
783
|
-
} =
|
|
784
|
-
iconClass:
|
|
785
|
-
shouldShowIcon:
|
|
786
|
-
} =
|
|
787
|
-
const
|
|
978
|
+
onClickButton: n
|
|
979
|
+
} = Gt(e, t), {
|
|
980
|
+
iconClass: l,
|
|
981
|
+
shouldShowIcon: u
|
|
982
|
+
} = Nt(e), r = R(() => {
|
|
983
|
+
const f = {
|
|
788
984
|
btn: !0,
|
|
789
985
|
"btn-lg": e.size === "large",
|
|
790
986
|
"btn-md": e.size !== "large" && e.size !== "small",
|
|
791
987
|
"btn-sm": e.size === "small",
|
|
792
|
-
"btn-icontext":
|
|
988
|
+
"btn-icontext": u.value
|
|
793
989
|
};
|
|
794
|
-
return
|
|
990
|
+
return f[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((h, k) => (h[k] = e.customClass[k], h), f), f;
|
|
795
991
|
});
|
|
796
|
-
return () =>
|
|
797
|
-
class:
|
|
992
|
+
return () => c("button", {
|
|
993
|
+
class: r.value,
|
|
798
994
|
disabled: e.disabled,
|
|
799
|
-
onClick: (
|
|
800
|
-
}, [
|
|
801
|
-
class:
|
|
995
|
+
onClick: (f) => n(f)
|
|
996
|
+
}, [u.value && c("i", {
|
|
997
|
+
class: l.value
|
|
802
998
|
}, null), t.slots.default && t.slots.default()]);
|
|
803
999
|
}
|
|
804
|
-
}),
|
|
805
|
-
["appearance",
|
|
806
|
-
]),
|
|
1000
|
+
}), he = /* @__PURE__ */ new Map([
|
|
1001
|
+
["appearance", ce]
|
|
1002
|
+
]), _t = "https://json-schema.org/draft/2020-12/schema", zt = "https://farris-design.gitee.io/combo-list.schema.json", Ut = "combo-list", Wt = "A Farris Input Component", qt = "object", Dt = {
|
|
807
1003
|
id: {
|
|
808
1004
|
description: "The unique identifier for a combo list",
|
|
809
1005
|
type: "string"
|
|
@@ -894,6 +1090,10 @@ const wt = /* @__PURE__ */ _({
|
|
|
894
1090
|
description: "",
|
|
895
1091
|
type: "array"
|
|
896
1092
|
},
|
|
1093
|
+
dataSource: {
|
|
1094
|
+
description: "",
|
|
1095
|
+
type: "string"
|
|
1096
|
+
},
|
|
897
1097
|
remote: {
|
|
898
1098
|
description: "",
|
|
899
1099
|
type: "string"
|
|
@@ -1002,41 +1202,41 @@ const wt = /* @__PURE__ */ _({
|
|
|
1002
1202
|
type: "string",
|
|
1003
1203
|
default: ""
|
|
1004
1204
|
}
|
|
1005
|
-
},
|
|
1205
|
+
}, Kt = [
|
|
1006
1206
|
"type"
|
|
1007
|
-
],
|
|
1207
|
+
], Xt = [
|
|
1008
1208
|
"id",
|
|
1009
1209
|
"appearance",
|
|
1010
1210
|
"binding",
|
|
1011
1211
|
"visible"
|
|
1012
|
-
],
|
|
1212
|
+
], Yt = {
|
|
1013
1213
|
onClear: "清空事件",
|
|
1014
1214
|
onChange: "值变化事件",
|
|
1015
1215
|
beforeOpen: "打开下拉面板前事件"
|
|
1016
|
-
},
|
|
1017
|
-
$schema:
|
|
1018
|
-
$id:
|
|
1019
|
-
title:
|
|
1020
|
-
description:
|
|
1021
|
-
type:
|
|
1022
|
-
properties:
|
|
1023
|
-
required:
|
|
1024
|
-
ignore:
|
|
1025
|
-
events:
|
|
1216
|
+
}, ye = {
|
|
1217
|
+
$schema: _t,
|
|
1218
|
+
$id: zt,
|
|
1219
|
+
title: Ut,
|
|
1220
|
+
description: Wt,
|
|
1221
|
+
type: qt,
|
|
1222
|
+
properties: Dt,
|
|
1223
|
+
required: Kt,
|
|
1224
|
+
ignore: Xt,
|
|
1225
|
+
events: Yt
|
|
1026
1226
|
};
|
|
1027
|
-
function
|
|
1227
|
+
function pe(e, t, n) {
|
|
1028
1228
|
return t;
|
|
1029
1229
|
}
|
|
1030
|
-
function
|
|
1031
|
-
function e(t,
|
|
1032
|
-
const
|
|
1033
|
-
return
|
|
1230
|
+
function Jt() {
|
|
1231
|
+
function e(t, n, l) {
|
|
1232
|
+
const u = {};
|
|
1233
|
+
return u.beforeOpen = (r) => n.call("beforeOpen", t, [r, t], l), u;
|
|
1034
1234
|
}
|
|
1035
1235
|
return {
|
|
1036
1236
|
resolve: e
|
|
1037
1237
|
};
|
|
1038
1238
|
}
|
|
1039
|
-
const
|
|
1239
|
+
const K = {
|
|
1040
1240
|
/**
|
|
1041
1241
|
* 组件标识
|
|
1042
1242
|
*/
|
|
@@ -1205,17 +1405,16 @@ const q = {
|
|
|
1205
1405
|
enableHighlightSearch: { type: Boolean, default: !0 },
|
|
1206
1406
|
minPanelWidth: { type: Number, default: 160 },
|
|
1207
1407
|
popupOnClick: { type: Boolean, default: !0 }
|
|
1208
|
-
}
|
|
1209
|
-
Object.assign({}, q, {
|
|
1408
|
+
}, Qt = Object.assign({}, K, {
|
|
1210
1409
|
readonly: {}
|
|
1211
1410
|
});
|
|
1212
|
-
|
|
1213
|
-
const
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
),
|
|
1411
|
+
fe(K, ye, he, pe);
|
|
1412
|
+
const be = Ne(
|
|
1413
|
+
K,
|
|
1414
|
+
ye,
|
|
1415
|
+
he,
|
|
1416
|
+
pe
|
|
1417
|
+
), Zt = Jt(), en = {
|
|
1219
1418
|
dataSource: { type: Array, default: [] },
|
|
1220
1419
|
enableSearch: { type: Boolean, default: !1 },
|
|
1221
1420
|
idField: { type: String, default: "id" },
|
|
@@ -1236,311 +1435,307 @@ const fe = et(
|
|
|
1236
1435
|
},
|
|
1237
1436
|
// 搜索启用高亮
|
|
1238
1437
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
1239
|
-
},
|
|
1438
|
+
}, tn = /* @__PURE__ */ _({
|
|
1240
1439
|
name: "FComboListContainer",
|
|
1241
|
-
props:
|
|
1440
|
+
props: en,
|
|
1242
1441
|
emits: ["selectionChange"],
|
|
1243
1442
|
setup(e, t) {
|
|
1244
|
-
const
|
|
1443
|
+
const n = g(), l = g(e.dataSource), u = g([]), r = g(e.separator), f = g(e.width), h = g(e.maxHeight), k = R(() => e.multiSelect), T = g(e.multiSelect ? String(e.selectedValues).split(r.value) : [e.selectedValues]), I = R(() => ({
|
|
1245
1444
|
enableSelectRow: !0,
|
|
1246
1445
|
multiSelect: e.multiSelect,
|
|
1247
1446
|
multiSelectMode: "OnCheckAndClick",
|
|
1248
|
-
showCheckbox:
|
|
1447
|
+
showCheckbox: k.value,
|
|
1249
1448
|
showSelectAll: !1,
|
|
1250
1449
|
showSelection: !0
|
|
1251
1450
|
}));
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
}),
|
|
1255
|
-
const
|
|
1256
|
-
const
|
|
1257
|
-
return
|
|
1451
|
+
$(e.dataSource, () => {
|
|
1452
|
+
l.value = e.dataSource;
|
|
1453
|
+
}), R(() => e.enableSearch ? "SearchBar" : "ContentHeader");
|
|
1454
|
+
const v = R(() => {
|
|
1455
|
+
const a = {};
|
|
1456
|
+
return f.value !== void 0 && (a.width = `${f.value}px`), h.value !== void 0 && h.value > 0 && (a.maxHeight = `${h.value}px`), a;
|
|
1258
1457
|
});
|
|
1259
|
-
function
|
|
1260
|
-
|
|
1458
|
+
function S(a) {
|
|
1459
|
+
n.value.search(a);
|
|
1261
1460
|
}
|
|
1262
|
-
function
|
|
1263
|
-
|
|
1461
|
+
function F(a) {
|
|
1462
|
+
u.value = a.map((s) => Object.assign({}, s)), T.value = a.map((s) => s[e.idField]), t.emit("selectionChange", u.value);
|
|
1264
1463
|
}
|
|
1265
|
-
function
|
|
1464
|
+
function V(a) {
|
|
1266
1465
|
if (e.enableHighlightSearch)
|
|
1267
1466
|
return;
|
|
1268
|
-
let
|
|
1467
|
+
let s = [];
|
|
1269
1468
|
const {
|
|
1270
|
-
searchOption:
|
|
1469
|
+
searchOption: i
|
|
1271
1470
|
} = e;
|
|
1272
|
-
typeof
|
|
1471
|
+
typeof i == "function" ? s = l.value.filter((o) => i(a, o)) : s = l.value.filter((o) => o[e.valueField].indexOf(a) > -1 || o[e.textField].indexOf(a) > -1), n.value.updateDataSource(s);
|
|
1273
1472
|
}
|
|
1274
|
-
|
|
1275
|
-
e.multiSelect ?
|
|
1473
|
+
$([() => e.selectedValues], ([a]) => {
|
|
1474
|
+
e.multiSelect ? T.value = a.split(r.value) : T.value = [a];
|
|
1276
1475
|
});
|
|
1277
|
-
function
|
|
1278
|
-
|
|
1476
|
+
function w(a) {
|
|
1477
|
+
n.value.activeRowById(a);
|
|
1279
1478
|
}
|
|
1280
|
-
return
|
|
1281
|
-
var
|
|
1479
|
+
return ee(() => {
|
|
1480
|
+
var a, s;
|
|
1282
1481
|
if (!e.multiSelect) {
|
|
1283
|
-
const
|
|
1284
|
-
let
|
|
1285
|
-
const
|
|
1286
|
-
if (!
|
|
1287
|
-
const
|
|
1288
|
-
|
|
1482
|
+
const i = (a = T.value) == null ? void 0 : a[0];
|
|
1483
|
+
let o = i;
|
|
1484
|
+
const b = l.value.map((y) => y[e.valueField || e.idField]);
|
|
1485
|
+
if (!ut(i) && b.includes(i)) {
|
|
1486
|
+
const y = typeof i, d = typeof ((s = l.value[0]) == null ? void 0 : s[e.valueField || e.idField]);
|
|
1487
|
+
d === "number" && y !== d && (o = Number(i)), d === "boolean" && y !== d && (o = i === "true" ? !0 : i === "false" ? !1 : i), w(o);
|
|
1289
1488
|
}
|
|
1290
1489
|
}
|
|
1291
1490
|
}), t.expose({
|
|
1292
|
-
search:
|
|
1293
|
-
activeRowById:
|
|
1294
|
-
}), () =>
|
|
1491
|
+
search: S,
|
|
1492
|
+
activeRowById: w
|
|
1493
|
+
}), () => c("div", {
|
|
1295
1494
|
class: "f-combo-list-container",
|
|
1296
|
-
style:
|
|
1297
|
-
}, [
|
|
1298
|
-
ref:
|
|
1495
|
+
style: v.value
|
|
1496
|
+
}, [c(dt, {
|
|
1497
|
+
ref: n,
|
|
1299
1498
|
size: "small",
|
|
1300
1499
|
itemClass: "f-combo-list-item",
|
|
1301
1500
|
itemContentClass: "text-truncate",
|
|
1302
1501
|
header: "ContentHeader",
|
|
1303
1502
|
headerClass: "f-combo-list-search-box",
|
|
1304
|
-
data:
|
|
1503
|
+
data: l.value,
|
|
1305
1504
|
idField: e.idField,
|
|
1306
1505
|
textField: e.textField,
|
|
1307
1506
|
titleField: e.titleField,
|
|
1308
1507
|
multiSelect: e.multiSelect,
|
|
1309
|
-
selection:
|
|
1508
|
+
selection: I.value,
|
|
1310
1509
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
1311
|
-
selectionValues:
|
|
1312
|
-
onSelectionUpdate:
|
|
1313
|
-
onAfterSearch:
|
|
1510
|
+
selectionValues: T.value,
|
|
1511
|
+
onSelectionUpdate: F,
|
|
1512
|
+
onAfterSearch: V
|
|
1314
1513
|
}, null)]);
|
|
1315
1514
|
}
|
|
1316
1515
|
});
|
|
1317
|
-
function
|
|
1318
|
-
const
|
|
1319
|
-
function
|
|
1320
|
-
const
|
|
1321
|
-
return
|
|
1322
|
-
const
|
|
1323
|
-
return
|
|
1516
|
+
function nn(e, t) {
|
|
1517
|
+
const n = g(""), l = g(e.modelValue), u = g(e.data || []), r = g(e.editable);
|
|
1518
|
+
function f(a) {
|
|
1519
|
+
const s = e.multiSelect ? String(a).split(e.separator) : [String(a)], i = s.map((y) => [y, !0]), o = new Map(i);
|
|
1520
|
+
return u.value.filter((y) => o.has(String(y[e.valueField]))).sort((y, d) => {
|
|
1521
|
+
const O = s.indexOf(y[e.valueField]), x = s.indexOf(d[e.valueField]);
|
|
1522
|
+
return O - x;
|
|
1324
1523
|
});
|
|
1325
1524
|
}
|
|
1326
|
-
function
|
|
1327
|
-
const
|
|
1328
|
-
|
|
1525
|
+
function h(a) {
|
|
1526
|
+
const s = f(a).map((i) => i[e.textField]).join(e.separator);
|
|
1527
|
+
n.value = r.value ? s || a : s;
|
|
1329
1528
|
}
|
|
1330
|
-
function
|
|
1529
|
+
function k(a) {
|
|
1331
1530
|
if (e.multiSelect) {
|
|
1332
|
-
const
|
|
1333
|
-
return
|
|
1531
|
+
const s = a.split(e.separator).map((o) => [o, !0]), i = new Map(s);
|
|
1532
|
+
return u.value.filter((o) => i.has(o[e.textField]));
|
|
1334
1533
|
}
|
|
1335
|
-
return
|
|
1534
|
+
return u.value.filter((s) => "" + s[e.textField] === a);
|
|
1336
1535
|
}
|
|
1337
|
-
function
|
|
1338
|
-
const
|
|
1339
|
-
return
|
|
1536
|
+
function T(a) {
|
|
1537
|
+
const s = {};
|
|
1538
|
+
return s[e.idField] = a, s[e.textField] = a, [s];
|
|
1340
1539
|
}
|
|
1341
|
-
function
|
|
1342
|
-
let
|
|
1343
|
-
const
|
|
1344
|
-
return r.value && !
|
|
1540
|
+
function I(a) {
|
|
1541
|
+
let s = k(a);
|
|
1542
|
+
const i = s && s.length > 0;
|
|
1543
|
+
return r.value && !i && (s = T(a)), s;
|
|
1345
1544
|
}
|
|
1346
|
-
function
|
|
1347
|
-
const { url:
|
|
1348
|
-
if (!
|
|
1545
|
+
function v() {
|
|
1546
|
+
const { url: a, method: s = "GET", headers: i = { "Content-Type": "application/json;charset=utf-8;" }, body: o = null } = e.remote;
|
|
1547
|
+
if (!a)
|
|
1349
1548
|
return;
|
|
1350
|
-
const
|
|
1351
|
-
let
|
|
1352
|
-
fetch(new Request(
|
|
1353
|
-
var x,
|
|
1354
|
-
if (
|
|
1355
|
-
return
|
|
1356
|
-
throw
|
|
1357
|
-
}).then((
|
|
1358
|
-
|
|
1359
|
-
}).catch((
|
|
1360
|
-
console.warn(
|
|
1549
|
+
const b = s.toLowerCase() === "get" ? { method: s, headers: i } : { method: s, headers: i, body: o };
|
|
1550
|
+
let y = !1;
|
|
1551
|
+
fetch(new Request(a, b)).then((d) => {
|
|
1552
|
+
var x, m;
|
|
1553
|
+
if (d.status === 200)
|
|
1554
|
+
return y = !!((m = (x = d.headers) == null ? void 0 : x.get("content-type")) != null && m.includes("application/json")), y ? d.text() : d.json();
|
|
1555
|
+
throw d.status === 405 ? new Error(te.getLocaleValue("comboList.remoteError")) : new Error(d.statusText);
|
|
1556
|
+
}).then((d) => {
|
|
1557
|
+
d.length && (u.value = y ? JSON.parse(d) : d);
|
|
1558
|
+
}).catch((d) => {
|
|
1559
|
+
console.warn(d);
|
|
1361
1560
|
});
|
|
1362
1561
|
}
|
|
1363
|
-
e.remote && (e.load ? e.load().then((
|
|
1364
|
-
|
|
1365
|
-
}).catch((
|
|
1366
|
-
console.log(
|
|
1367
|
-
}) :
|
|
1368
|
-
|
|
1369
|
-
}),
|
|
1370
|
-
if (e.modelValue != null) {
|
|
1371
|
-
const
|
|
1372
|
-
l
|
|
1562
|
+
e.remote && (e.load ? e.load().then((a) => {
|
|
1563
|
+
u.value = a;
|
|
1564
|
+
}).catch((a) => {
|
|
1565
|
+
console.log(a);
|
|
1566
|
+
}) : v()), $(() => e.data, () => {
|
|
1567
|
+
u.value = e.data;
|
|
1568
|
+
}), $([u], ([a], [s]) => {
|
|
1569
|
+
if (e.modelValue != null && !e.multiSelect) {
|
|
1570
|
+
const i = a.find((o) => o[e.valueField] === l.value);
|
|
1571
|
+
i ? i[e.valueField] !== l.value ? (l.value = i[e.valueField], n.value = i[e.textField], t.emit("update:modelValue", i[e.valueField]), t.emit("change", [i], i[e.valueField])) : n.value !== i[e.textField] && (n.value = i[e.textField]) : l.value !== "" && (l.value = "", n.value = "", t.emit("update:modelValue", ""), t.emit("change", [], ""));
|
|
1373
1572
|
}
|
|
1374
|
-
}),
|
|
1375
|
-
a.value =
|
|
1573
|
+
}), $(() => e.modelValue, (a, s) => {
|
|
1574
|
+
s !== a && (l.value = a, h(a));
|
|
1376
1575
|
});
|
|
1377
|
-
function
|
|
1378
|
-
|
|
1576
|
+
function S(a) {
|
|
1577
|
+
u.value = a;
|
|
1379
1578
|
}
|
|
1380
|
-
function
|
|
1381
|
-
return
|
|
1579
|
+
function F() {
|
|
1580
|
+
return u.value;
|
|
1382
1581
|
}
|
|
1383
|
-
function
|
|
1384
|
-
return
|
|
1582
|
+
function V() {
|
|
1583
|
+
return n.value;
|
|
1385
1584
|
}
|
|
1386
|
-
function
|
|
1387
|
-
const
|
|
1388
|
-
return !e.beforeOpen || !
|
|
1585
|
+
function w() {
|
|
1586
|
+
const a = typeof e.beforeOpen == "function";
|
|
1587
|
+
return !e.beforeOpen || !a ? Promise.resolve(!0) : Promise.resolve().then(() => e.beforeOpen({ instance: { updateDataSource: S, getData: F, getDisplayText: V } })).then((s) => typeof (s == null ? void 0 : s.canOpen) == "boolean" ? s == null ? void 0 : s.canOpen : !0);
|
|
1389
1588
|
}
|
|
1390
|
-
return
|
|
1391
|
-
dataSource:
|
|
1392
|
-
displayText:
|
|
1589
|
+
return h(e.modelValue), {
|
|
1590
|
+
dataSource: u,
|
|
1591
|
+
displayText: n,
|
|
1393
1592
|
editable: r,
|
|
1394
|
-
modelValue:
|
|
1395
|
-
beforeOpenList:
|
|
1396
|
-
getItemsByDisplayText:
|
|
1397
|
-
getItemsByValue:
|
|
1398
|
-
getSelectedItemsByDisplayText:
|
|
1593
|
+
modelValue: l,
|
|
1594
|
+
beforeOpenList: w,
|
|
1595
|
+
getItemsByDisplayText: k,
|
|
1596
|
+
getItemsByValue: f,
|
|
1597
|
+
getSelectedItemsByDisplayText: I
|
|
1399
1598
|
};
|
|
1400
1599
|
}
|
|
1401
|
-
const
|
|
1600
|
+
const q = /* @__PURE__ */ _({
|
|
1402
1601
|
name: "FComboList",
|
|
1403
|
-
props:
|
|
1602
|
+
props: K,
|
|
1404
1603
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
1405
1604
|
setup(e, t) {
|
|
1406
|
-
const
|
|
1407
|
-
dataSource:
|
|
1408
|
-
displayText:
|
|
1409
|
-
editable:
|
|
1410
|
-
modelValue:
|
|
1411
|
-
getItemsByDisplayText:
|
|
1412
|
-
getItemsByValue:
|
|
1413
|
-
beforeOpenList:
|
|
1414
|
-
} =
|
|
1415
|
-
|
|
1416
|
-
const
|
|
1417
|
-
function
|
|
1418
|
-
!
|
|
1605
|
+
const n = g(), l = g(), u = g(e.disabled || e.readonly), r = g(e.enableClear), f = g(e.enableSearch), h = g(e.readonly), {
|
|
1606
|
+
dataSource: k,
|
|
1607
|
+
displayText: T,
|
|
1608
|
+
editable: I,
|
|
1609
|
+
modelValue: v,
|
|
1610
|
+
getItemsByDisplayText: S,
|
|
1611
|
+
getItemsByValue: F,
|
|
1612
|
+
beforeOpenList: V
|
|
1613
|
+
} = nn(e, t), w = g(e.dropDownIcon);
|
|
1614
|
+
w.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (w.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
|
|
1615
|
+
const a = R(() => e.multiSelect), s = R(() => l.value ? l.value.elementRef.getBoundingClientRect().width : 0);
|
|
1616
|
+
function i() {
|
|
1617
|
+
!a.value && l.value && l.value.hidePopup();
|
|
1419
1618
|
}
|
|
1420
|
-
function p
|
|
1421
|
-
|
|
1422
|
-
let
|
|
1423
|
-
|
|
1619
|
+
function o(p) {
|
|
1620
|
+
T.value = p.map((A) => A[e.textField]).join(e.separator) || v.value;
|
|
1621
|
+
let C = "";
|
|
1622
|
+
p.length === 1 ? C = p[0][e.valueField] : C = p.map((A) => A[e.valueField]).join(e.separator), v.value !== C && (v.value = C, t.emit("update:modelValue", v.value), t.emit("change", p, v.value));
|
|
1424
1623
|
}
|
|
1425
|
-
function
|
|
1426
|
-
const
|
|
1427
|
-
p
|
|
1624
|
+
function b() {
|
|
1625
|
+
const p = F(v.value);
|
|
1626
|
+
o(p);
|
|
1428
1627
|
}
|
|
1429
|
-
function
|
|
1430
|
-
|
|
1628
|
+
function y() {
|
|
1629
|
+
h.value || T.value;
|
|
1431
1630
|
}
|
|
1432
|
-
function
|
|
1433
|
-
var
|
|
1434
|
-
|
|
1631
|
+
function d(p) {
|
|
1632
|
+
var C;
|
|
1633
|
+
v.value = "", (C = n.value) == null || C.activeRowById(""), t.emit("clear");
|
|
1435
1634
|
}
|
|
1436
|
-
function
|
|
1437
|
-
var
|
|
1438
|
-
e.enableSearch && e.enableHighlightSearch && ((
|
|
1635
|
+
function O(p) {
|
|
1636
|
+
var C, A;
|
|
1637
|
+
e.enableSearch && e.enableHighlightSearch && ((C = n.value) == null || C.search(p)), (A = n.value) == null || A.activeRowById(p), t.emit("change", [v.value], v.value);
|
|
1439
1638
|
}
|
|
1440
|
-
function
|
|
1639
|
+
function x(p) {
|
|
1441
1640
|
if (e.multiSelect) {
|
|
1442
|
-
const
|
|
1641
|
+
const C = S(p);
|
|
1443
1642
|
e.viewType;
|
|
1444
|
-
const
|
|
1445
|
-
|
|
1446
|
-
} else
|
|
1643
|
+
const M = C.map((j) => j[e.idField || e.valueField]).join(e.separator);
|
|
1644
|
+
v.value !== M && (v.value = M, t.emit("update:modelValue", v.value), t.emit("change", C, v.value));
|
|
1645
|
+
} else p !== v.value && (v.value = p, t.emit("update:modelValue", v.value), t.emit("change", [], p));
|
|
1447
1646
|
}
|
|
1448
|
-
function
|
|
1449
|
-
return
|
|
1647
|
+
function m() {
|
|
1648
|
+
return T.value;
|
|
1450
1649
|
}
|
|
1451
|
-
function
|
|
1650
|
+
function P(p) {
|
|
1452
1651
|
const {
|
|
1453
|
-
value:
|
|
1454
|
-
} =
|
|
1455
|
-
|
|
1652
|
+
value: C
|
|
1653
|
+
} = p.target;
|
|
1654
|
+
O(C), t.emit("input", C);
|
|
1456
1655
|
}
|
|
1457
|
-
function
|
|
1458
|
-
|
|
1656
|
+
function H() {
|
|
1657
|
+
l.value.hidePopup();
|
|
1459
1658
|
}
|
|
1460
|
-
function E(
|
|
1461
|
-
|
|
1659
|
+
function E(p) {
|
|
1660
|
+
k.value = p;
|
|
1462
1661
|
}
|
|
1463
1662
|
function N() {
|
|
1464
|
-
return
|
|
1663
|
+
return k.value;
|
|
1465
1664
|
}
|
|
1466
|
-
const
|
|
1467
|
-
getDisplayText:
|
|
1468
|
-
hidePopup:
|
|
1665
|
+
const B = {
|
|
1666
|
+
getDisplayText: m,
|
|
1667
|
+
hidePopup: H,
|
|
1469
1668
|
updateDataSource: E,
|
|
1470
1669
|
getData: N
|
|
1471
1670
|
};
|
|
1472
|
-
return t.expose(
|
|
1473
|
-
|
|
1474
|
-
}), () =>
|
|
1475
|
-
ref:
|
|
1671
|
+
return t.expose(B), $([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([p, C, A, M, j]) => {
|
|
1672
|
+
u.value = p, I.value = C, r.value = A, f.value = M, h.value = j;
|
|
1673
|
+
}), () => c(rt, {
|
|
1674
|
+
ref: l,
|
|
1476
1675
|
id: e.id,
|
|
1477
|
-
disable:
|
|
1478
|
-
readonly:
|
|
1676
|
+
disable: u.value,
|
|
1677
|
+
readonly: h.value,
|
|
1479
1678
|
forcePlaceholder: e.forcePlaceholder,
|
|
1480
|
-
editable:
|
|
1481
|
-
buttonContent:
|
|
1482
|
-
placeholder: e.placeholder === "请选择" ?
|
|
1483
|
-
enableClear:
|
|
1679
|
+
editable: I.value,
|
|
1680
|
+
buttonContent: w.value,
|
|
1681
|
+
placeholder: e.placeholder === "请选择" ? te.getLocaleValue("comboList.placeholder") : e.placeholder,
|
|
1682
|
+
enableClear: r.value,
|
|
1484
1683
|
maxLength: e.maxLength,
|
|
1485
1684
|
tabIndex: e.tabIndex,
|
|
1486
1685
|
enableTitle: e.enableTitle,
|
|
1487
1686
|
multiSelect: e.multiSelect,
|
|
1488
1687
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
1489
|
-
modelValue:
|
|
1490
|
-
"onUpdate:modelValue": (
|
|
1688
|
+
modelValue: T.value,
|
|
1689
|
+
"onUpdate:modelValue": (p) => T.value = p,
|
|
1491
1690
|
focusOnCreated: e.focusOnCreated,
|
|
1492
1691
|
selectOnCreated: e.selectOnCreated,
|
|
1493
|
-
onClear:
|
|
1494
|
-
onClick:
|
|
1495
|
-
onChange:
|
|
1496
|
-
onBlur:
|
|
1497
|
-
onInput:
|
|
1498
|
-
beforeOpen:
|
|
1692
|
+
onClear: d,
|
|
1693
|
+
onClick: y,
|
|
1694
|
+
onChange: x,
|
|
1695
|
+
onBlur: b,
|
|
1696
|
+
onInput: P,
|
|
1697
|
+
beforeOpen: V,
|
|
1499
1698
|
placement: e.placement,
|
|
1500
1699
|
popupMinWidth: e.minPanelWidth,
|
|
1501
1700
|
popupClass: "f-combo-list-wrapper",
|
|
1502
1701
|
popupOnClick: e.popupOnClick,
|
|
1503
1702
|
limitContentBySpace: !0
|
|
1504
1703
|
}, {
|
|
1505
|
-
default: () => [
|
|
1506
|
-
ref:
|
|
1704
|
+
default: () => [c(tn, {
|
|
1705
|
+
ref: n,
|
|
1507
1706
|
idField: e.idField,
|
|
1508
1707
|
valueField: e.valueField,
|
|
1509
1708
|
textField: e.textField,
|
|
1510
1709
|
titleField: e.titleField,
|
|
1511
|
-
dataSource:
|
|
1512
|
-
selectedValues:
|
|
1710
|
+
dataSource: k.value,
|
|
1711
|
+
selectedValues: v.value,
|
|
1513
1712
|
separator: e.separator,
|
|
1514
1713
|
multiSelect: e.multiSelect,
|
|
1515
|
-
enableSearch:
|
|
1714
|
+
enableSearch: f.value,
|
|
1516
1715
|
maxHeight: e.maxHeight,
|
|
1517
1716
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
1518
|
-
width: e.fitEditor ?
|
|
1519
|
-
onSelectionChange: (
|
|
1520
|
-
p
|
|
1717
|
+
width: e.fitEditor ? s.value : void 0,
|
|
1718
|
+
onSelectionChange: (p) => {
|
|
1719
|
+
o(p), i();
|
|
1521
1720
|
}
|
|
1522
1721
|
}, null)]
|
|
1523
1722
|
});
|
|
1524
1723
|
}
|
|
1525
|
-
}),
|
|
1526
|
-
readonly: {}
|
|
1527
|
-
});
|
|
1528
|
-
ce(de, Z, Q, ee);
|
|
1529
|
-
const oe = {
|
|
1724
|
+
}), de = {
|
|
1530
1725
|
convertFrom: (e, t) => (e.editor.remote || {})[t],
|
|
1531
|
-
convertTo: (e, t,
|
|
1532
|
-
e.editor.remote = e.editor.remote || {}, e.editor.remote[t] =
|
|
1726
|
+
convertTo: (e, t, n) => {
|
|
1727
|
+
e.editor.remote = e.editor.remote || {}, e.editor.remote[t] = n;
|
|
1533
1728
|
}
|
|
1534
1729
|
};
|
|
1535
|
-
class
|
|
1536
|
-
constructor(t,
|
|
1537
|
-
super(t,
|
|
1730
|
+
class ln extends ft {
|
|
1731
|
+
constructor(t, n) {
|
|
1732
|
+
super(t, n);
|
|
1538
1733
|
}
|
|
1539
1734
|
getCommonEditorProperties(t) {
|
|
1540
|
-
var
|
|
1735
|
+
var n, l, u;
|
|
1541
1736
|
return {
|
|
1542
1737
|
viewType: {
|
|
1543
|
-
visible: !!((
|
|
1738
|
+
visible: !!((n = t.editor) != null && n.multiSelect),
|
|
1544
1739
|
description: "数据展示类型,有标签和文本两种方式",
|
|
1545
1740
|
title: "数据展示类型",
|
|
1546
1741
|
type: "enum",
|
|
@@ -1553,7 +1748,7 @@ class jt extends at {
|
|
|
1553
1748
|
refreshPanelAfterChanged: !0
|
|
1554
1749
|
},
|
|
1555
1750
|
separator: {
|
|
1556
|
-
visible: !!((
|
|
1751
|
+
visible: !!((l = t.editor) != null && l.multiSelect) && ((u = t.editor) == null ? void 0 : u.viewType) === "text",
|
|
1557
1752
|
description: "下拉列表启用多选且数据展示类型为文本时的分隔符",
|
|
1558
1753
|
title: "分隔符",
|
|
1559
1754
|
type: "enum",
|
|
@@ -1583,14 +1778,15 @@ class jt extends at {
|
|
|
1583
1778
|
};
|
|
1584
1779
|
}
|
|
1585
1780
|
getEditorProperties(t) {
|
|
1586
|
-
var i, o;
|
|
1587
|
-
const
|
|
1588
|
-
let
|
|
1589
|
-
if (((
|
|
1590
|
-
const
|
|
1591
|
-
(
|
|
1781
|
+
var k, T, I, v, S, F, V, w, a, s, i, o;
|
|
1782
|
+
const n = this;
|
|
1783
|
+
let l = "";
|
|
1784
|
+
if (((k = t == null ? void 0 : t.binding) == null ? void 0 : k.type) === "Form") {
|
|
1785
|
+
const b = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
|
|
1786
|
+
(T = b == null ? void 0 : b.schemaField) != null && T.type && (l = b.schemaField.type.$type);
|
|
1592
1787
|
}
|
|
1593
|
-
|
|
1788
|
+
const u = this.getPropertyEditorParams(t, ["Variable"]), r = !t.editor.dataSourceType || t.editor.dataSourceType === "static", f = ((v = (I = this.designViewModelField) == null ? void 0 : I.type) == null ? void 0 : v.$type) === Y.StringType && ((S = t.editor) == null ? void 0 : S.type) === "combo-list" && ((F = t.editor) == null ? void 0 : F.dataSourceType) === "dynamic" && !((w = (V = t.editor) == null ? void 0 : V.remote) != null && w.url) && !((a = t.editor) != null && a.multiSelect);
|
|
1789
|
+
return n.getComponentConfig(t, { type: "combo-list" }, {
|
|
1594
1790
|
// enableSearch: {
|
|
1595
1791
|
// description: "编辑状态下启用搜索",
|
|
1596
1792
|
// title: "允许编辑",
|
|
@@ -1614,21 +1810,33 @@ class jt extends at {
|
|
|
1614
1810
|
},
|
|
1615
1811
|
refreshPanelAfterChanged: !0
|
|
1616
1812
|
},
|
|
1813
|
+
dataSource: {
|
|
1814
|
+
description: "动态数据源绑定变量",
|
|
1815
|
+
visible: f,
|
|
1816
|
+
title: "数据",
|
|
1817
|
+
editor: {
|
|
1818
|
+
...u,
|
|
1819
|
+
controlName: "",
|
|
1820
|
+
enableClear: !0
|
|
1821
|
+
},
|
|
1822
|
+
refreshPanelAfterChanged: !0
|
|
1823
|
+
},
|
|
1617
1824
|
data: {
|
|
1618
1825
|
description: "",
|
|
1619
1826
|
title: "数据",
|
|
1620
1827
|
type: "array",
|
|
1621
|
-
visible:
|
|
1622
|
-
...
|
|
1828
|
+
visible: r,
|
|
1829
|
+
...n.getItemCollectionEditor(t, t.editor.valueField, t.editor.textField),
|
|
1623
1830
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
1624
1831
|
refreshPanelAfterChanged: !0
|
|
1625
1832
|
},
|
|
1626
1833
|
url: {
|
|
1627
|
-
visible: t.editor.dataSourceType === "dynamic",
|
|
1628
|
-
$converter:
|
|
1834
|
+
visible: t.editor.dataSourceType === "dynamic" && !((s = t.editor) != null && s.dataSource),
|
|
1835
|
+
$converter: de,
|
|
1629
1836
|
description: "",
|
|
1630
1837
|
title: "服务端API",
|
|
1631
|
-
type: "string"
|
|
1838
|
+
type: "string",
|
|
1839
|
+
refreshPanelAfterChanged: !0
|
|
1632
1840
|
},
|
|
1633
1841
|
// method: {
|
|
1634
1842
|
// visible: propertyData.editor.dataSourceType === "dynamic",
|
|
@@ -1647,7 +1855,7 @@ class jt extends at {
|
|
|
1647
1855
|
// },
|
|
1648
1856
|
body: {
|
|
1649
1857
|
visible: !1,
|
|
1650
|
-
$converter:
|
|
1858
|
+
$converter: de,
|
|
1651
1859
|
description: "",
|
|
1652
1860
|
title: "服务端API参数",
|
|
1653
1861
|
type: "string"
|
|
@@ -1667,7 +1875,8 @@ class jt extends at {
|
|
|
1667
1875
|
multiSelect: {
|
|
1668
1876
|
description: "",
|
|
1669
1877
|
title: "启用多选",
|
|
1670
|
-
visible: !
|
|
1878
|
+
visible: !l || l === "StringType",
|
|
1879
|
+
readonly: ((i = t.editor) == null ? void 0 : i.dataSourceType) === "dynamic" && !!((o = t.editor) != null && o.dataSource),
|
|
1671
1880
|
type: "boolean",
|
|
1672
1881
|
refreshPanelAfterChanged: !0
|
|
1673
1882
|
},
|
|
@@ -1683,33 +1892,38 @@ class jt extends at {
|
|
|
1683
1892
|
}
|
|
1684
1893
|
},
|
|
1685
1894
|
...this.getCommonEditorProperties(t)
|
|
1686
|
-
}, (
|
|
1687
|
-
if (!
|
|
1895
|
+
}, (b, y) => {
|
|
1896
|
+
if (!b || !y.editor)
|
|
1688
1897
|
return;
|
|
1689
|
-
const
|
|
1690
|
-
switch (
|
|
1898
|
+
const d = this;
|
|
1899
|
+
switch (b.propertyID) {
|
|
1691
1900
|
case "dataSourceType": {
|
|
1692
|
-
|
|
1901
|
+
b.propertyValue === "static" ? (y.editor.valueField = "value", y.editor.textField = "name", y.editor.remote = null) : b.propertyValue === "dynamic" && (y.editor.remote = { method: "GET" }, y.editor.valueField = "value", y.editor.textField = "name");
|
|
1693
1902
|
break;
|
|
1694
1903
|
}
|
|
1695
1904
|
case "data": {
|
|
1696
|
-
!
|
|
1905
|
+
!d.checkEnumDataReadonly(y) && y.formatter && (y.formatter.data = [...b.propertyValue]);
|
|
1906
|
+
break;
|
|
1907
|
+
}
|
|
1908
|
+
case "viewType": {
|
|
1909
|
+
b.propertyValue === "tag" && (y.editor.editable = !1);
|
|
1697
1910
|
break;
|
|
1698
1911
|
}
|
|
1699
|
-
case "
|
|
1700
|
-
d.
|
|
1912
|
+
case "dataSource":
|
|
1913
|
+
d.afterMutilEditorChanged(y, b);
|
|
1701
1914
|
}
|
|
1702
1915
|
});
|
|
1703
1916
|
}
|
|
1704
|
-
getGridFieldEdtiorProperties(t,
|
|
1705
|
-
var
|
|
1706
|
-
const
|
|
1707
|
-
let
|
|
1708
|
-
if (((
|
|
1709
|
-
const
|
|
1710
|
-
(
|
|
1917
|
+
getGridFieldEdtiorProperties(t, n) {
|
|
1918
|
+
var k, T, I, v, S, F, V, w, a, s, i, o, b;
|
|
1919
|
+
const l = this;
|
|
1920
|
+
let u = "";
|
|
1921
|
+
if (((k = t == null ? void 0 : t.binding) == null ? void 0 : k.type) === "Form") {
|
|
1922
|
+
const y = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
|
|
1923
|
+
(T = y == null ? void 0 : y.schemaField) != null && T.type && (u = y.schemaField.type.$type);
|
|
1711
1924
|
}
|
|
1712
|
-
|
|
1925
|
+
const r = ((v = (I = this.designViewModelField) == null ? void 0 : I.type) == null ? void 0 : v.$type) === Y.StringType && ((S = t.editor) == null ? void 0 : S.type) === "combo-list" && ((F = t.editor) == null ? void 0 : F.dataSourceType) === "dynamic" && !((V = t.editor) != null && V.multiSelect), f = this.getPropertyEditorParams(t, ["Variable"]);
|
|
1926
|
+
return l.getComponentConfig(t, { type: "combo-list" }, {
|
|
1713
1927
|
// editable: {
|
|
1714
1928
|
// description: "",
|
|
1715
1929
|
// title: "允许编辑",
|
|
@@ -1721,25 +1935,36 @@ class jt extends at {
|
|
|
1721
1935
|
title: "启用清空",
|
|
1722
1936
|
type: "boolean"
|
|
1723
1937
|
},
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1938
|
+
dataSourceType: {
|
|
1939
|
+
description: "",
|
|
1940
|
+
title: "数据源类型",
|
|
1941
|
+
type: "enum",
|
|
1942
|
+
editor: {
|
|
1943
|
+
default: "static",
|
|
1944
|
+
data: [
|
|
1945
|
+
{ id: "static", name: "静态" },
|
|
1946
|
+
{ id: "dynamic", name: "动态" }
|
|
1947
|
+
]
|
|
1948
|
+
},
|
|
1949
|
+
refreshPanelAfterChanged: !0
|
|
1950
|
+
},
|
|
1951
|
+
dataSource: {
|
|
1952
|
+
description: "动态数据源绑定变量",
|
|
1953
|
+
visible: r,
|
|
1954
|
+
title: "数据",
|
|
1955
|
+
editor: {
|
|
1956
|
+
...f,
|
|
1957
|
+
controlName: "",
|
|
1958
|
+
enableClear: !0
|
|
1959
|
+
},
|
|
1960
|
+
refreshPanelAfterChanged: !0
|
|
1961
|
+
},
|
|
1737
1962
|
data: {
|
|
1738
1963
|
description: "",
|
|
1739
1964
|
title: "数据",
|
|
1740
1965
|
type: "array",
|
|
1741
|
-
visible: !((w = t.editor) != null && w.dataSourceType) || ((
|
|
1742
|
-
...
|
|
1966
|
+
visible: !((w = t.editor) != null && w.dataSourceType) || ((a = t.editor) == null ? void 0 : a.dataSourceType) === "static",
|
|
1967
|
+
...l.getItemCollectionEditor(t, (s = t.editor) == null ? void 0 : s.valueField, (i = t.editor) == null ? void 0 : i.textField),
|
|
1743
1968
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
1744
1969
|
refreshPanelAfterChanged: !0
|
|
1745
1970
|
},
|
|
@@ -1758,7 +1983,8 @@ class jt extends at {
|
|
|
1758
1983
|
multiSelect: {
|
|
1759
1984
|
description: "",
|
|
1760
1985
|
title: "启用多选",
|
|
1761
|
-
visible:
|
|
1986
|
+
visible: u === "StringType",
|
|
1987
|
+
readonly: ((o = t.editor) == null ? void 0 : o.dataSourceType) === "dynamic" && !!((b = t.editor) != null && b.dataSource),
|
|
1762
1988
|
type: "boolean",
|
|
1763
1989
|
refreshPanelAfterChanged: !0
|
|
1764
1990
|
},
|
|
@@ -1774,33 +2000,35 @@ class jt extends at {
|
|
|
1774
2000
|
}
|
|
1775
2001
|
},
|
|
1776
2002
|
...this.getCommonEditorProperties(t)
|
|
1777
|
-
}, (
|
|
1778
|
-
if (!
|
|
2003
|
+
}, (y, d) => {
|
|
2004
|
+
if (!y || !d.editor)
|
|
1779
2005
|
return;
|
|
1780
2006
|
const O = this;
|
|
1781
|
-
switch (
|
|
2007
|
+
switch (y.propertyID) {
|
|
1782
2008
|
case "dataSourceType": {
|
|
1783
|
-
|
|
2009
|
+
y.propertyValue === "static" ? (d.editor.valueField = "value", d.editor.textField = "name", d.editor.remote = null) : y.propertyValue === "dynamic" && (d.editor.remote = { method: "GET" }, d.editor.valueField = "value", d.editor.textField = "name");
|
|
1784
2010
|
break;
|
|
1785
2011
|
}
|
|
1786
2012
|
case "data": {
|
|
1787
|
-
!O.checkEnumDataReadonly(
|
|
2013
|
+
!O.checkEnumDataReadonly(d) && d.formatter && (d.formatter.data = [...y.propertyValue]);
|
|
1788
2014
|
break;
|
|
1789
2015
|
}
|
|
2016
|
+
case "dataSource":
|
|
2017
|
+
O.afterMutilEditorChanged(d, y);
|
|
1790
2018
|
}
|
|
1791
2019
|
});
|
|
1792
2020
|
}
|
|
1793
|
-
setEditorPropertyRelates(t,
|
|
1794
|
-
if (!t || !
|
|
2021
|
+
setEditorPropertyRelates(t, n, l) {
|
|
2022
|
+
if (!t || !n.editor)
|
|
1795
2023
|
return;
|
|
1796
|
-
const
|
|
2024
|
+
const u = this;
|
|
1797
2025
|
switch (t.propertyID) {
|
|
1798
2026
|
case "dataSourceType": {
|
|
1799
|
-
t.propertyValue === "static" && (
|
|
2027
|
+
t.propertyValue === "static" && (n.editor.valueField = "value", n.editor.textField = "name", n.editor.remote = {});
|
|
1800
2028
|
break;
|
|
1801
2029
|
}
|
|
1802
2030
|
case "data": {
|
|
1803
|
-
!
|
|
2031
|
+
!u.checkEnumDataReadonly(n) && n.formatter && (n.formatter.data = [...t.propertyValue]);
|
|
1804
2032
|
break;
|
|
1805
2033
|
}
|
|
1806
2034
|
}
|
|
@@ -1808,11 +2036,11 @@ class jt extends at {
|
|
|
1808
2036
|
/**
|
|
1809
2037
|
* 切换绑定属性
|
|
1810
2038
|
*/
|
|
1811
|
-
changeBindingField(t,
|
|
1812
|
-
var
|
|
1813
|
-
super.changeBindingField(t,
|
|
1814
|
-
const
|
|
1815
|
-
t.editor && ((
|
|
2039
|
+
changeBindingField(t, n, l) {
|
|
2040
|
+
var r;
|
|
2041
|
+
super.changeBindingField(t, n);
|
|
2042
|
+
const u = l;
|
|
2043
|
+
t.editor && ((r = u == null ? void 0 : u.type) == null ? void 0 : r.$type) === Y.EnumType && (t.editor.data = u.type.enumValues || []);
|
|
1816
2044
|
}
|
|
1817
2045
|
/**
|
|
1818
2046
|
* 组装输入类控件的交互面板:包含标签超链、绑定字段值变化前后事件等。
|
|
@@ -1821,9 +2049,9 @@ class jt extends at {
|
|
|
1821
2049
|
* @param showPosition 面板展示位置
|
|
1822
2050
|
* @param customEvent 输入控件特有的事件配置
|
|
1823
2051
|
*/
|
|
1824
|
-
getEventPropertyConfig(t,
|
|
1825
|
-
const
|
|
1826
|
-
let
|
|
2052
|
+
getEventPropertyConfig(t, n = "card", l, u) {
|
|
2053
|
+
const r = this;
|
|
2054
|
+
let f = [
|
|
1827
2055
|
{
|
|
1828
2056
|
label: "onChange",
|
|
1829
2057
|
name: "值变化事件"
|
|
@@ -1837,42 +2065,42 @@ class jt extends at {
|
|
|
1837
2065
|
name: "下拉面板前事件"
|
|
1838
2066
|
}
|
|
1839
2067
|
];
|
|
1840
|
-
|
|
1841
|
-
const
|
|
2068
|
+
l && (f = f.concat(l)), this.appendFieldValueChangeEvents(t, f);
|
|
2069
|
+
const h = r.eventsEditorUtils.formProperties(t, r.viewModelId, f);
|
|
1842
2070
|
return {
|
|
1843
2071
|
title: "事件",
|
|
1844
2072
|
hideTitle: !0,
|
|
1845
|
-
properties:
|
|
2073
|
+
properties: r.createBaseEventProperty(h),
|
|
1846
2074
|
tabId: "commands",
|
|
1847
2075
|
tabName: "交互",
|
|
1848
|
-
setPropertyRelates(
|
|
1849
|
-
const
|
|
1850
|
-
delete t[
|
|
1851
|
-
const
|
|
1852
|
-
|
|
2076
|
+
setPropertyRelates(I, v) {
|
|
2077
|
+
const S = I.propertyValue;
|
|
2078
|
+
delete t[r.viewModelId], S && (S.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(t, r.viewModelId, S.events, S)), u && u(I, v, S);
|
|
2079
|
+
const F = r.designViewModelUtils.getDgViewModel(r.viewModelId);
|
|
2080
|
+
F && r.designViewModelField && F.changeField(r.designViewModelField.id, { valueChanging: t.fieldValueChanging, valueChanged: t.fieldValueChanged }), t.editor.beforeOpen !== t.beforeOpen && (t.editor.beforeOpen = t.beforeOpen), t.editor.onChange !== t.onChange && (t.editor.onChange = t.onChange), t.editor.onClear !== t.onClear && (t.editor.onClear = t.onClear);
|
|
1853
2081
|
}
|
|
1854
2082
|
};
|
|
1855
2083
|
}
|
|
1856
2084
|
}
|
|
1857
|
-
function
|
|
1858
|
-
const
|
|
1859
|
-
function
|
|
1860
|
-
return new
|
|
2085
|
+
function an(e, t) {
|
|
2086
|
+
const n = e.schema;
|
|
2087
|
+
function l(u, r) {
|
|
2088
|
+
return new ln(u, t).getPropertyConfig(n, r);
|
|
1861
2089
|
}
|
|
1862
2090
|
return {
|
|
1863
|
-
getPropsConfig:
|
|
2091
|
+
getPropsConfig: l
|
|
1864
2092
|
};
|
|
1865
2093
|
}
|
|
1866
|
-
const
|
|
2094
|
+
const on = /* @__PURE__ */ _({
|
|
1867
2095
|
name: "FComboListDesign",
|
|
1868
|
-
props:
|
|
2096
|
+
props: Qt,
|
|
1869
2097
|
emits: ["clear", "update:modelValue", "change"],
|
|
1870
2098
|
setup(e, t) {
|
|
1871
|
-
const
|
|
1872
|
-
return
|
|
1873
|
-
|
|
1874
|
-
}), t.expose(
|
|
1875
|
-
ref:
|
|
2099
|
+
const n = g(), l = Q("designer-host-service"), u = Q("design-item-context"), r = an(u, l), f = me(n, u, r);
|
|
2100
|
+
return ee(() => {
|
|
2101
|
+
n.value.componentInstance = f;
|
|
2102
|
+
}), t.expose(f.value), () => c(ct, {
|
|
2103
|
+
ref: n,
|
|
1876
2104
|
buttonContent: e.dropDownIcon,
|
|
1877
2105
|
readonly: !0,
|
|
1878
2106
|
editable: !1,
|
|
@@ -1882,125 +2110,238 @@ const Nt = /* @__PURE__ */ _({
|
|
|
1882
2110
|
}, null);
|
|
1883
2111
|
}
|
|
1884
2112
|
});
|
|
1885
|
-
|
|
1886
|
-
e["combo-list"] =
|
|
2113
|
+
q.register = (e, t, n, l, u) => {
|
|
2114
|
+
e["combo-list"] = q, t["combo-list"] = be(u), l["combo-list"] = { callbackResolver: Zt };
|
|
1887
2115
|
};
|
|
1888
|
-
|
|
1889
|
-
e["combo-list"] =
|
|
2116
|
+
q.registerDesigner = (e, t, n, l) => {
|
|
2117
|
+
e["combo-list"] = on, t["combo-list"] = be(l);
|
|
1890
2118
|
};
|
|
1891
|
-
const
|
|
2119
|
+
const D = _e(q), J = /* @__PURE__ */ _({
|
|
1892
2120
|
name: "FOrder",
|
|
1893
|
-
props:
|
|
2121
|
+
props: le,
|
|
1894
2122
|
emits: ["change"],
|
|
1895
2123
|
setup(e, t) {
|
|
1896
|
-
const
|
|
1897
|
-
function
|
|
1898
|
-
var
|
|
1899
|
-
const
|
|
1900
|
-
|
|
2124
|
+
const n = g(), l = g(e.items);
|
|
2125
|
+
function u() {
|
|
2126
|
+
var o;
|
|
2127
|
+
const i = Array.isArray(e.items) ? e.items : [];
|
|
2128
|
+
l.value = [...i], (o = n.value) == null || o.updateDataSource(l.value);
|
|
1901
2129
|
}
|
|
1902
|
-
|
|
1903
|
-
const
|
|
2130
|
+
$(() => e.items, u);
|
|
2131
|
+
const r = g("排序列"), f = g("排序方式"), h = g("添加排序列"), k = [{
|
|
1904
2132
|
id: "asc",
|
|
1905
2133
|
name: "升序"
|
|
1906
2134
|
}, {
|
|
1907
2135
|
id: "desc",
|
|
1908
2136
|
name: "降序"
|
|
1909
|
-
}],
|
|
2137
|
+
}], T = g(/* @__PURE__ */ new Map());
|
|
2138
|
+
function I() {
|
|
2139
|
+
const i = l.value.map((o) => [o.id, !0]);
|
|
2140
|
+
T.value = new Map(i);
|
|
2141
|
+
}
|
|
2142
|
+
I();
|
|
2143
|
+
const v = R(() => e.dataSource.map((i) => (i.disabled = T.value.has(i.id), i))), S = R(() => ({
|
|
2144
|
+
"f-order": !0
|
|
2145
|
+
}));
|
|
2146
|
+
function F(i) {
|
|
2147
|
+
l.value = l.value.filter((o) => o.id !== i.id), I(), t.emit("change", l.value);
|
|
2148
|
+
}
|
|
1910
2149
|
function V() {
|
|
1911
|
-
|
|
1912
|
-
|
|
2150
|
+
l.value = [...l.value, {
|
|
2151
|
+
id: Date.now().toString(),
|
|
2152
|
+
name: "",
|
|
2153
|
+
order: "asc"
|
|
2154
|
+
}], I(), t.emit("change", l.value);
|
|
2155
|
+
}
|
|
2156
|
+
function w(i) {
|
|
2157
|
+
if (i && i.length === 1) {
|
|
2158
|
+
const o = i[0], b = l.value.find((y) => y.id === o.id);
|
|
2159
|
+
b && (b.name = o.name);
|
|
2160
|
+
}
|
|
2161
|
+
I(), t.emit("change", l.value);
|
|
2162
|
+
}
|
|
2163
|
+
function a(i) {
|
|
2164
|
+
if (i && i.length) {
|
|
2165
|
+
const o = /* @__PURE__ */ new Map();
|
|
2166
|
+
i.reduce((b, y) => (b.set(y.id, y), b), o), l.value = i.map((b) => o.get(b.id)), t.emit("change", l.value);
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
function s() {
|
|
2170
|
+
return c(ve, {
|
|
2171
|
+
ref: n,
|
|
2172
|
+
style: "flex:1",
|
|
2173
|
+
data: l.value,
|
|
2174
|
+
draggable: !0,
|
|
2175
|
+
view: "DraggableView",
|
|
2176
|
+
"keep-order": !0,
|
|
2177
|
+
itemClass: "f-order-item",
|
|
2178
|
+
onRemoveItem: F,
|
|
2179
|
+
onChange: a
|
|
2180
|
+
}, {
|
|
2181
|
+
header: () => c("div", {
|
|
2182
|
+
class: "f-order-header"
|
|
2183
|
+
}, [c("span", {
|
|
2184
|
+
class: "f-order-header-order-field"
|
|
2185
|
+
}, [r.value]), c("span", {
|
|
2186
|
+
class: "f-order-header-order-type"
|
|
2187
|
+
}, [f.value])]),
|
|
2188
|
+
itemContent: (i) => c("div", {
|
|
2189
|
+
class: "f-order-item-content"
|
|
2190
|
+
}, [c(D, {
|
|
2191
|
+
class: "f-order-item-content-order-field",
|
|
2192
|
+
data: v.value,
|
|
2193
|
+
valueField: "id",
|
|
2194
|
+
textField: "name",
|
|
2195
|
+
idField: "id",
|
|
2196
|
+
modelValue: i.raw.id,
|
|
2197
|
+
"onUpdate:modelValue": (o) => i.raw.id = o,
|
|
2198
|
+
onChange: w,
|
|
2199
|
+
onClear: w
|
|
2200
|
+
}, null), c(D, {
|
|
2201
|
+
class: "f-order-item-content-order-type",
|
|
2202
|
+
data: k,
|
|
2203
|
+
valueField: "id",
|
|
2204
|
+
textField: "name",
|
|
2205
|
+
idField: "id",
|
|
2206
|
+
modelValue: i.raw.order,
|
|
2207
|
+
"onUpdate:modelValue": (o) => i.raw.order = o,
|
|
2208
|
+
onChange: w
|
|
2209
|
+
}, null)]),
|
|
2210
|
+
footer: () => c("div", {
|
|
2211
|
+
class: "f-order-footer"
|
|
2212
|
+
}, [c(ge, {
|
|
2213
|
+
type: "link",
|
|
2214
|
+
class: "f-order-add-button",
|
|
2215
|
+
onClick: V
|
|
2216
|
+
}, {
|
|
2217
|
+
default: () => c(U, null, [c("span", {
|
|
2218
|
+
class: "f-order-add-icon"
|
|
2219
|
+
}, [c("i", {
|
|
2220
|
+
class: "f-icon f-icon-add"
|
|
2221
|
+
}, null)]), h.value])
|
|
2222
|
+
})])
|
|
2223
|
+
});
|
|
2224
|
+
}
|
|
2225
|
+
return () => c("div", {
|
|
2226
|
+
class: S.value
|
|
2227
|
+
}, [s()]);
|
|
2228
|
+
}
|
|
2229
|
+
}), sn = /* @__PURE__ */ _({
|
|
2230
|
+
name: "FOrderDesign",
|
|
2231
|
+
props: le,
|
|
2232
|
+
emits: ["change"],
|
|
2233
|
+
setup(e, t) {
|
|
2234
|
+
const n = g(e.items), l = g("排序列"), u = g("排序方式"), r = g("添加排序列"), f = [{
|
|
2235
|
+
id: "asc",
|
|
2236
|
+
name: "升序"
|
|
2237
|
+
}, {
|
|
2238
|
+
id: "desc",
|
|
2239
|
+
name: "降序"
|
|
2240
|
+
}], h = g(/* @__PURE__ */ new Map()), k = g(), T = Q("design-item-context"), I = me(k, T);
|
|
2241
|
+
ee(() => {
|
|
2242
|
+
k.value.componentInstance = I;
|
|
2243
|
+
}), t.expose(I.value);
|
|
2244
|
+
function v() {
|
|
2245
|
+
const o = n.value.map((b) => [b.id, !0]);
|
|
2246
|
+
h.value = new Map(o);
|
|
1913
2247
|
}
|
|
1914
|
-
|
|
1915
|
-
const
|
|
2248
|
+
v();
|
|
2249
|
+
const S = R(() => e.dataSource.map((o) => (o.disabled = h.value.has(o.id), o))), F = R(() => ({
|
|
1916
2250
|
"f-order": !0
|
|
1917
2251
|
}));
|
|
1918
|
-
function
|
|
1919
|
-
n.value = n.value.filter((
|
|
2252
|
+
function V(o) {
|
|
2253
|
+
n.value = n.value.filter((b) => b.id !== o.id), v(), t.emit("change", n.value);
|
|
1920
2254
|
}
|
|
1921
|
-
function
|
|
2255
|
+
function w() {
|
|
1922
2256
|
n.value = [...n.value, {
|
|
1923
2257
|
id: Date.now().toString(),
|
|
1924
2258
|
name: "",
|
|
1925
2259
|
order: "asc"
|
|
1926
|
-
}],
|
|
2260
|
+
}], v(), t.emit("change", n.value);
|
|
1927
2261
|
}
|
|
1928
|
-
function
|
|
1929
|
-
|
|
1930
|
-
const p = u[0], T = n.value.find((k) => k.id === p.id);
|
|
1931
|
-
T && (T.name = p.name);
|
|
1932
|
-
}
|
|
1933
|
-
V(), t.emit("change", n.value);
|
|
2262
|
+
function a(o) {
|
|
2263
|
+
v(), t.emit("change", n.value);
|
|
1934
2264
|
}
|
|
1935
|
-
function
|
|
1936
|
-
if (
|
|
1937
|
-
const
|
|
1938
|
-
|
|
2265
|
+
function s(o) {
|
|
2266
|
+
if (o && o.length) {
|
|
2267
|
+
const b = /* @__PURE__ */ new Map();
|
|
2268
|
+
o.reduce((y, d) => (y.set(d.id, d), y), b), n.value = o.map((y) => b.get(y.id)), t.emit("change", n.value);
|
|
1939
2269
|
}
|
|
1940
2270
|
}
|
|
1941
|
-
function
|
|
1942
|
-
return
|
|
1943
|
-
ref: a,
|
|
2271
|
+
function i() {
|
|
2272
|
+
return c(ve, {
|
|
1944
2273
|
style: "flex:1",
|
|
1945
2274
|
data: n.value,
|
|
1946
2275
|
draggable: !0,
|
|
1947
2276
|
view: "DraggableView",
|
|
1948
2277
|
"keep-order": !0,
|
|
1949
2278
|
itemClass: "f-order-item",
|
|
1950
|
-
onRemoveItem:
|
|
1951
|
-
onChange:
|
|
2279
|
+
onRemoveItem: V,
|
|
2280
|
+
onChange: s
|
|
1952
2281
|
}, {
|
|
1953
|
-
header: () =>
|
|
2282
|
+
header: () => c("div", {
|
|
1954
2283
|
class: "f-order-header"
|
|
1955
|
-
}, [
|
|
2284
|
+
}, [c("span", {
|
|
1956
2285
|
class: "f-order-header-order-field"
|
|
1957
|
-
}, [
|
|
2286
|
+
}, [l.value]), c("span", {
|
|
1958
2287
|
class: "f-order-header-order-type"
|
|
1959
|
-
}, [
|
|
1960
|
-
itemContent: (
|
|
2288
|
+
}, [u.value])]),
|
|
2289
|
+
itemContent: (o) => c("div", {
|
|
1961
2290
|
class: "f-order-item-content"
|
|
1962
|
-
}, [
|
|
2291
|
+
}, [c(D, {
|
|
1963
2292
|
class: "f-order-item-content-order-field",
|
|
1964
|
-
data:
|
|
2293
|
+
data: S.value,
|
|
1965
2294
|
valueField: "id",
|
|
1966
2295
|
textField: "name",
|
|
1967
2296
|
idField: "id",
|
|
1968
|
-
modelValue:
|
|
1969
|
-
"onUpdate:modelValue": (
|
|
1970
|
-
onChange:
|
|
1971
|
-
onClear:
|
|
1972
|
-
}, null),
|
|
2297
|
+
modelValue: o.id,
|
|
2298
|
+
"onUpdate:modelValue": (b) => o.id = b,
|
|
2299
|
+
onChange: a,
|
|
2300
|
+
onClear: a
|
|
2301
|
+
}, null), c(D, {
|
|
1973
2302
|
class: "f-order-item-content-order-type",
|
|
1974
|
-
data:
|
|
2303
|
+
data: f,
|
|
1975
2304
|
valueField: "id",
|
|
1976
2305
|
textField: "name",
|
|
1977
2306
|
idField: "id",
|
|
1978
|
-
modelValue:
|
|
1979
|
-
"onUpdate:modelValue": (
|
|
1980
|
-
onChange:
|
|
2307
|
+
modelValue: o.order,
|
|
2308
|
+
"onUpdate:modelValue": (b) => o.order = b,
|
|
2309
|
+
onChange: a
|
|
1981
2310
|
}, null)]),
|
|
1982
|
-
footer: () =>
|
|
2311
|
+
footer: () => c("div", {
|
|
1983
2312
|
class: "f-order-footer"
|
|
1984
|
-
}, [
|
|
2313
|
+
}, [c(ge, {
|
|
1985
2314
|
type: "link",
|
|
1986
2315
|
class: "f-order-add-button",
|
|
1987
|
-
onClick:
|
|
2316
|
+
onClick: w
|
|
1988
2317
|
}, {
|
|
1989
|
-
default: () =>
|
|
2318
|
+
default: () => c(U, null, [c("span", {
|
|
1990
2319
|
class: "f-order-add-icon"
|
|
1991
|
-
}, [
|
|
2320
|
+
}, [c("i", {
|
|
1992
2321
|
class: "f-icon f-icon-add"
|
|
1993
|
-
}, null)]),
|
|
2322
|
+
}, null)]), r.value])
|
|
1994
2323
|
})])
|
|
1995
2324
|
});
|
|
1996
2325
|
}
|
|
1997
|
-
return () =>
|
|
1998
|
-
|
|
1999
|
-
|
|
2326
|
+
return () => c("div", {
|
|
2327
|
+
ref: k,
|
|
2328
|
+
class: F.value
|
|
2329
|
+
}, [i()]);
|
|
2330
|
+
}
|
|
2331
|
+
}), Vn = {
|
|
2332
|
+
install(e) {
|
|
2333
|
+
e.component(J.name, J);
|
|
2334
|
+
},
|
|
2335
|
+
register(e, t, n, l) {
|
|
2336
|
+
e.order = J, t.order = se;
|
|
2337
|
+
},
|
|
2338
|
+
registerDesigner(e, t, n) {
|
|
2339
|
+
e.order = sn, t.order = se;
|
|
2000
2340
|
}
|
|
2001
|
-
}
|
|
2341
|
+
};
|
|
2002
2342
|
export {
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2343
|
+
J as FOrder,
|
|
2344
|
+
Vn as default,
|
|
2345
|
+
le as orderProps,
|
|
2346
|
+
se as propsResolver
|
|
2006
2347
|
};
|