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