@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,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var me = (e, t, n) =>
|
|
4
|
-
import { defineComponent as Se, ref as
|
|
5
|
-
import { LocaleService as
|
|
6
|
-
import { isMobilePhone as
|
|
1
|
+
var Sn = Object.defineProperty;
|
|
2
|
+
var Tn = (e, t, n) => t in e ? Sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var me = (e, t, n) => Tn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { defineComponent as Se, ref as i, computed as p, createVNode as l, Teleport as St, createApp as ct, onUnmounted as Xe, Fragment as de, watch as X, nextTick as Ne, onBeforeMount as Mn, onMounted as ze, watchEffect as kn, Transition as Tt, shallowRef as Fn, render as ut, h as On, cloneVNode as In, mergeProps as tt, inject as Ze, withDirectives as En, vShow as Pn, onUpdated as Rn, onBeforeUnmount as Dn, createTextVNode as Be, reactive as ge, isVNode as Mt, Comment as Hn, provide as jn } from "vue";
|
|
5
|
+
import { LocaleService as be } from "../locale/index.esm.js";
|
|
6
|
+
import { isMobilePhone as Vn, getMaxZIndex as bt, useGuid as Nn, withInstall as kt, useCommonUtils as zn, getCustomClass as Ln } from "../common/index.esm.js";
|
|
7
7
|
import "../property-panel/index.esm.js";
|
|
8
|
-
import
|
|
9
|
-
import { debounce as
|
|
10
|
-
import
|
|
11
|
-
import { useResizeObserver as
|
|
12
|
-
import { CellMode as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { createPropsResolver as
|
|
17
|
-
const
|
|
8
|
+
import An from "../tags/index.esm.js";
|
|
9
|
+
import { debounce as Wn, cloneDeep as Gn } from "lodash-es";
|
|
10
|
+
import $n from "../popover/index.esm.js";
|
|
11
|
+
import { useResizeObserver as Un } from "@vueuse/core";
|
|
12
|
+
import { CellMode as _n, useMobile as Kn, useIdentify as Yn, useGroupData as qn, useFilter as Xn, useHierarchy as Jn, useLoading as Zn, useDataView as Qn, usePagination as ea, useSelection as ta, useDataViewContainerStyle as na, useCommandColumn as aa, useSettingColumn as oa, useColumn as la, useSort as ua, useGroupColumn as sa, useRow as ia, useEdit as ra, useVisualDataBound as ca, useVisualDataCell as da, useVisualDataRow as fa, useVisualGroupRow as va, useVisualSummaryRow as ma, useVisualData as ha, useCellContentStyle as ga, useCellPosition as pa, useSidebar as ya, useVirtualScroll as Ca, useFitColumn as ba, useFilterHistory as wa, useColumnFilter as xa, useDragColumn as Ba, getColumnHeader as Sa, getPagination as Ta, getSidebar as Ma, getDisableMask as ka, getSummary as Fa, getHorizontalScrollbar as Oa, getVerticalScrollbar as Ia, getFilterPanel as Ea, getGroupPanel as Pa, useNavigation as Ra, getEmpty as Da, COMMAND_COLUMN_DATA_TYPE as wt, SETTING_COLUMN_DATA_TYPE as xt } from "../data-view/index.esm.js";
|
|
13
|
+
import Bt from "../button/index.esm.js";
|
|
14
|
+
import Ha from "../drawer/index.esm.js";
|
|
15
|
+
import ja, { FDynamicFormLabel as Va } from "../dynamic-form/index.esm.js";
|
|
16
|
+
import { createPropsResolver as Na } from "../dynamic-resolver/index.esm.js";
|
|
17
|
+
const za = {
|
|
18
18
|
/**
|
|
19
19
|
* 组件标识
|
|
20
20
|
*/
|
|
@@ -134,65 +134,65 @@ const ja = {
|
|
|
134
134
|
*/
|
|
135
135
|
limitContentBySpace: { type: Boolean, default: !1 },
|
|
136
136
|
beforeClosePopup: { type: Function, default: null }
|
|
137
|
-
},
|
|
137
|
+
}, La = {
|
|
138
138
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
139
139
|
host: { type: Object },
|
|
140
140
|
backgroundColor: { type: String, default: "" }
|
|
141
|
-
},
|
|
141
|
+
}, Aa = /* @__PURE__ */ Se({
|
|
142
142
|
name: "FOverlay",
|
|
143
|
-
props:
|
|
143
|
+
props: La,
|
|
144
144
|
emits: ["click"],
|
|
145
145
|
setup(e, t) {
|
|
146
|
-
const n =
|
|
146
|
+
const n = i(e.popupContentPosition), a = i(e.host), o = p(() => ({
|
|
147
147
|
backgroundColor: e.backgroundColor || "",
|
|
148
148
|
pointerEvents: "auto"
|
|
149
149
|
}));
|
|
150
|
-
function s
|
|
151
|
-
t.emit("click"),
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
left:
|
|
158
|
-
top:
|
|
159
|
-
height:
|
|
160
|
-
} =
|
|
150
|
+
function u(s) {
|
|
151
|
+
t.emit("click"), s.preventDefault(), s.stopPropagation();
|
|
152
|
+
}
|
|
153
|
+
p(() => {
|
|
154
|
+
const s = a.value;
|
|
155
|
+
if (s) {
|
|
156
|
+
const f = s.getBoundingClientRect(), {
|
|
157
|
+
left: g,
|
|
158
|
+
top: m,
|
|
159
|
+
height: C
|
|
160
|
+
} = f;
|
|
161
161
|
return {
|
|
162
|
-
left:
|
|
163
|
-
top:
|
|
162
|
+
left: g,
|
|
163
|
+
top: m + C
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
return n.value;
|
|
167
167
|
});
|
|
168
|
-
const
|
|
168
|
+
const r = p(() => ({
|
|
169
169
|
// position: 'relative',
|
|
170
170
|
// left: `${position.value.left}px`,
|
|
171
171
|
// top: `${position.value.top}px`
|
|
172
172
|
}));
|
|
173
|
-
return () => l(
|
|
173
|
+
return () => l(St, {
|
|
174
174
|
to: "body"
|
|
175
175
|
}, {
|
|
176
176
|
default: () => {
|
|
177
|
-
var
|
|
177
|
+
var s, f;
|
|
178
178
|
return [l("div", {
|
|
179
179
|
class: "overlay-container",
|
|
180
|
-
onClick: (
|
|
180
|
+
onClick: (g) => u(g),
|
|
181
181
|
style: o.value
|
|
182
182
|
}, [l("div", {
|
|
183
|
-
style:
|
|
184
|
-
}, [(
|
|
183
|
+
style: r.value
|
|
184
|
+
}, [(f = (s = t.slots).default) == null ? void 0 : f.call(s)])])];
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
|
-
function
|
|
189
|
+
function Wa(e) {
|
|
190
190
|
if (e.content && e.content.render)
|
|
191
191
|
return e.content.render;
|
|
192
192
|
if (e.render && typeof e.render == "function")
|
|
193
193
|
return e.render;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Ga(e) {
|
|
196
196
|
const t = document.createElement("div");
|
|
197
197
|
t.style.display = "contents";
|
|
198
198
|
let n;
|
|
@@ -200,29 +200,29 @@ function La(e) {
|
|
|
200
200
|
}), o = () => {
|
|
201
201
|
a(), n && n.unmount();
|
|
202
202
|
};
|
|
203
|
-
return n =
|
|
203
|
+
return n = ct({
|
|
204
204
|
setup() {
|
|
205
205
|
Xe(() => {
|
|
206
206
|
document.body.removeChild(t);
|
|
207
207
|
});
|
|
208
|
-
const
|
|
209
|
-
return () => l(
|
|
208
|
+
const u = Wa(e);
|
|
209
|
+
return () => l(Aa, {
|
|
210
210
|
"popup-content-position": e.popupPosition,
|
|
211
211
|
host: e.host,
|
|
212
212
|
onClick: o,
|
|
213
213
|
backgroundColor: e.backgroundColor
|
|
214
214
|
}, {
|
|
215
|
-
default: () => [
|
|
215
|
+
default: () => [u && u()]
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
}), document.body.appendChild(t), n.mount(t), n;
|
|
219
219
|
}
|
|
220
|
-
class
|
|
220
|
+
class $a {
|
|
221
221
|
static show(t) {
|
|
222
|
-
return
|
|
222
|
+
return Ga(t);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
const
|
|
225
|
+
const Ua = {
|
|
226
226
|
/**
|
|
227
227
|
* 允许点击遮罩关闭对话框
|
|
228
228
|
*/
|
|
@@ -311,8 +311,8 @@ class ne {
|
|
|
311
311
|
static getTransformInfo(t) {
|
|
312
312
|
const a = window.getComputedStyle(t).getPropertyValue("transform").replace(/[^-\d,]/g, "").split(",");
|
|
313
313
|
if (a.length >= 6) {
|
|
314
|
-
const o = parseInt(a[4], 10),
|
|
315
|
-
return { x: o, y:
|
|
314
|
+
const o = parseInt(a[4], 10), u = parseInt(a[5], 10);
|
|
315
|
+
return { x: o, y: u };
|
|
316
316
|
}
|
|
317
317
|
return { x: 0, y: 0 };
|
|
318
318
|
}
|
|
@@ -336,8 +336,8 @@ class ne {
|
|
|
336
336
|
if (window) {
|
|
337
337
|
const a = window.getComputedStyle(t);
|
|
338
338
|
if (a) {
|
|
339
|
-
const o = parseInt(a.getPropertyValue("left"), 10),
|
|
340
|
-
n.x = isNaN(o) ? 0 : o, n.y = isNaN(
|
|
339
|
+
const o = parseInt(a.getPropertyValue("left"), 10), u = parseInt(a.getPropertyValue("top"), 10);
|
|
340
|
+
n.x = isNaN(o) ? 0 : o, n.y = isNaN(u) ? 0 : u;
|
|
341
341
|
}
|
|
342
342
|
return n;
|
|
343
343
|
}
|
|
@@ -368,12 +368,12 @@ class ne {
|
|
|
368
368
|
return this.x = t.x, this.y = t.y, this;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
class
|
|
371
|
+
class Pe {
|
|
372
372
|
constructor(t, n) {
|
|
373
373
|
this.width = t, this.height = n;
|
|
374
374
|
}
|
|
375
375
|
static getCurrent(t) {
|
|
376
|
-
const n = new
|
|
376
|
+
const n = new Pe(0, 0);
|
|
377
377
|
if (window) {
|
|
378
378
|
const a = window.getComputedStyle(t);
|
|
379
379
|
return a && (n.width = parseInt(a.getPropertyValue("width"), 10), n.height = parseInt(a.getPropertyValue("height"), 10)), n;
|
|
@@ -381,280 +381,280 @@ class Re {
|
|
|
381
381
|
return null;
|
|
382
382
|
}
|
|
383
383
|
static copy(t) {
|
|
384
|
-
return new
|
|
384
|
+
return new Pe(0, 0).set(t);
|
|
385
385
|
}
|
|
386
386
|
set(t) {
|
|
387
387
|
return this.width = t.width, this.height = t.height, this;
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
const n =
|
|
392
|
-
function
|
|
393
|
-
const d = a.value || document.body,
|
|
394
|
-
if (!
|
|
390
|
+
function _a(e, t) {
|
|
391
|
+
const n = i(), a = i(), o = i(), u = i(), r = i(), s = i(), f = i(), g = i(), m = i(), C = i(), S = i(), b = i(e.resizeable), v = i(), k = i(e.draggable), P = i(!1);
|
|
392
|
+
function E() {
|
|
393
|
+
const d = a.value || document.body, B = window.getComputedStyle(d);
|
|
394
|
+
if (!B || !n.value)
|
|
395
395
|
return;
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
const A =
|
|
399
|
-
|
|
396
|
+
const j = ne.getTransformInfo(n.value), I = {};
|
|
397
|
+
f.value && (I.deltaL = n.value.offsetLeft - f.value.x, I.deltaT = n.value.offsetTop - f.value.y);
|
|
398
|
+
const A = B.getPropertyValue("position");
|
|
399
|
+
I.width = d.clientWidth, I.height = d.clientHeight, I.pr = parseInt(B.getPropertyValue("padding-right"), 10), I.pb = parseInt(B.getPropertyValue("padding-bottom"), 10), I.position = B.getPropertyValue("position"), A === "static" && (d.style.position = "relative"), I.translateX = j.x, I.translateY = j.y, C.value = I;
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function y(d) {
|
|
402
402
|
if (n.value) {
|
|
403
|
-
|
|
404
|
-
const
|
|
405
|
-
|
|
406
|
-
n: !!
|
|
407
|
-
s: !!
|
|
408
|
-
w: !!
|
|
409
|
-
e: !!
|
|
403
|
+
u.value = Pe.getCurrent(n.value), r.value = ne.getCurrent(n.value), s.value = u.value ? Pe.copy(u.value) : null, f.value = r.value ? ne.copy(r.value) : null, E();
|
|
404
|
+
const B = d.target.getAttribute("type") || "";
|
|
405
|
+
g.value = {
|
|
406
|
+
n: !!B.match(/n/),
|
|
407
|
+
s: !!B.match(/s/),
|
|
408
|
+
w: !!B.match(/w/),
|
|
409
|
+
e: !!B.match(/e/)
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
function
|
|
414
|
-
var d,
|
|
413
|
+
function L() {
|
|
414
|
+
var d, B, j, I;
|
|
415
415
|
if (n.value) {
|
|
416
416
|
const A = n.value;
|
|
417
|
-
|
|
417
|
+
g.value && ((g.value.n || g.value.s) && ((d = s.value) != null && d.height) && (A.style.height = s.value.height + "px"), (g.value.w || g.value.e) && ((B = s.value) != null && B.width) && (A.style.width = s.value.width + "px"), f.value && ((j = f.value) != null && j.x && (A.style.left = f.value.x + "px"), (I = f.value) != null && I.y && (A.style.top = f.value.y + "px")));
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
const d = e.minHeight ? e.minHeight : 1,
|
|
422
|
-
|
|
420
|
+
function _() {
|
|
421
|
+
const d = e.minHeight ? e.minHeight : 1, B = e.minWidth ? e.minWidth : 1;
|
|
422
|
+
s.value && f.value && g.value && u.value && (s.value.height < d && (s.value.height = d, g.value.n && r.value && (f.value.y = r.value.y + (u.value.height - d))), s.value.width < B && (s.value.width = B, g.value.w && r.value && (f.value.x = r.value.x + (u.value.width - B))), e.maxHeight && s.value.height > e.maxHeight && (s.value.height = e.maxHeight, r.value && g.value.n && (f.value.y = r.value.y + (u.value.height - e.maxHeight))), e.maxWidth && s.value.width > e.maxWidth && (s.value.width = e.maxWidth, g.value.w && r.value && (f.value.x = r.value.x + (u.value.width - e.maxWidth))));
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function H() {
|
|
425
425
|
if (a.value) {
|
|
426
|
-
const d =
|
|
427
|
-
if (
|
|
428
|
-
const
|
|
429
|
-
|
|
426
|
+
const d = C.value;
|
|
427
|
+
if (f.value && s.value && g.value && u.value) {
|
|
428
|
+
const B = d.width - d.pr - d.deltaL - d.translateX - f.value.x, j = d.height - d.pb - d.deltaT - d.translateY - f.value.y;
|
|
429
|
+
g.value.n && f.value.y + d.translateY < 0 && r.value && (f.value.y = -d.translateY, s.value.height = u.value.height + r.value.y + d.translateY), g.value.w && f.value.x + d.translateX < 0 && r.value && (f.value.x = -d.translateX, s.value.width = u.value.width + r.value.x + d.translateX), s.value.width > B && (s.value.width = B), s.value.height > j && (s.value.height = j);
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
if (!o.value || !
|
|
433
|
+
function F(d) {
|
|
434
|
+
if (!o.value || !u.value || !r.value || !g.value)
|
|
435
435
|
return;
|
|
436
436
|
d.subtract(o.value);
|
|
437
|
-
const
|
|
438
|
-
|
|
437
|
+
const B = d.x, j = d.y;
|
|
438
|
+
g.value.n ? (f.value.y = r.value.y + j, s.value.height = u.value.height - j) : g.value.s && (s.value.height = u.value.height + j), g.value.e ? s.value.width = u.value.width + B : g.value.w && (s.value.width = u.value.width - B, f.value.x = r.value.x + B), H(), _(), L();
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
if (!
|
|
440
|
+
function w(d) {
|
|
441
|
+
if (!m.value)
|
|
442
442
|
return;
|
|
443
|
-
const
|
|
444
|
-
|
|
443
|
+
const B = ne.fromEvent(d);
|
|
444
|
+
B && F(B);
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function D() {
|
|
447
447
|
if (n.value) {
|
|
448
448
|
const {
|
|
449
449
|
width: d,
|
|
450
|
-
height:
|
|
451
|
-
x:
|
|
452
|
-
y:
|
|
450
|
+
height: B,
|
|
451
|
+
x: j,
|
|
452
|
+
y: I
|
|
453
453
|
} = n.value.getBoundingClientRect(), A = ne.getTransformInfo(n.value);
|
|
454
454
|
return {
|
|
455
455
|
size: {
|
|
456
456
|
width: d,
|
|
457
|
-
height:
|
|
457
|
+
height: B
|
|
458
458
|
},
|
|
459
459
|
position: {
|
|
460
|
-
x:
|
|
461
|
-
y:
|
|
460
|
+
x: j - A.x,
|
|
461
|
+
y: I - A.y
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
465
|
return null;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function V(d) {
|
|
468
468
|
if (n.value) {
|
|
469
|
-
const
|
|
470
|
-
|
|
469
|
+
const B = D();
|
|
470
|
+
S.value = B;
|
|
471
471
|
}
|
|
472
|
-
o.value = void 0,
|
|
472
|
+
o.value = void 0, u.value = null, r.value = null, s.value = null, f.value = null, g.value = null, m.value = null, document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", V);
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
document.addEventListener("mousemove",
|
|
474
|
+
function Y() {
|
|
475
|
+
document.addEventListener("mousemove", w), document.addEventListener("mouseup", V);
|
|
476
476
|
}
|
|
477
|
-
function
|
|
478
|
-
d instanceof MouseEvent && d.button === 2 ||
|
|
477
|
+
function T(d) {
|
|
478
|
+
d instanceof MouseEvent && d.button === 2 || k.value && (document.body.click(), d.stopPropagation(), d.preventDefault(), o.value = ne.fromEvent(d), m.value = d.target, y(d), Y());
|
|
479
479
|
}
|
|
480
480
|
function G(d) {
|
|
481
|
-
return n.value = d,
|
|
481
|
+
return n.value = d, b.value && l(de, null, [l("div", {
|
|
482
482
|
class: "fv-resizable-handle fv-resizable-n",
|
|
483
483
|
type: "n",
|
|
484
|
-
onMousedown: (
|
|
484
|
+
onMousedown: (B) => T(B)
|
|
485
485
|
}, null), l("div", {
|
|
486
486
|
class: "fv-resizable-handle fv-resizable-e",
|
|
487
487
|
type: "e",
|
|
488
|
-
onMousedown: (
|
|
488
|
+
onMousedown: (B) => T(B)
|
|
489
489
|
}, null), l("div", {
|
|
490
490
|
class: "fv-resizable-handle fv-resizable-s",
|
|
491
491
|
type: "s",
|
|
492
|
-
onMousedown: (
|
|
492
|
+
onMousedown: (B) => T(B)
|
|
493
493
|
}, null), l("div", {
|
|
494
494
|
class: "fv-resizable-handle fv-resizable-w",
|
|
495
495
|
type: "w",
|
|
496
|
-
onMousedown: (
|
|
496
|
+
onMousedown: (B) => T(B)
|
|
497
497
|
}, null), l("div", {
|
|
498
498
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
499
499
|
type: "ne",
|
|
500
|
-
onMousedown: (
|
|
500
|
+
onMousedown: (B) => T(B)
|
|
501
501
|
}, null), l("div", {
|
|
502
502
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
503
503
|
type: "se",
|
|
504
|
-
onMousedown: (
|
|
504
|
+
onMousedown: (B) => T(B)
|
|
505
505
|
}, null), l("div", {
|
|
506
506
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
507
507
|
type: "sw",
|
|
508
|
-
onMousedown: (
|
|
508
|
+
onMousedown: (B) => T(B)
|
|
509
509
|
}, null), l("div", {
|
|
510
510
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
511
511
|
type: "nw",
|
|
512
|
-
onMousedown: (
|
|
512
|
+
onMousedown: (B) => T(B)
|
|
513
513
|
}, null)]);
|
|
514
514
|
}
|
|
515
515
|
function se(d = !0) {
|
|
516
516
|
document.body.click();
|
|
517
|
-
const
|
|
518
|
-
d &&
|
|
519
|
-
size:
|
|
517
|
+
const B = a.value || document.body, j = Pe.getCurrent(B), I = n.value;
|
|
518
|
+
d && I && (v.value = D(), v.value.transform = I.style.transform), j && I && (s.value = j, s.value.height -= 14, s.value.width -= 14, I.style.height = s.value.height + "px", I.style.width = s.value.width + "px", I.style.left = "7px", I.style.top = "7px", I.style.transform = "", S.value = {
|
|
519
|
+
size: s.value,
|
|
520
520
|
position: {
|
|
521
521
|
x: 0,
|
|
522
522
|
y: 0
|
|
523
523
|
}
|
|
524
|
-
},
|
|
525
|
-
}
|
|
526
|
-
function
|
|
527
|
-
var d,
|
|
528
|
-
if (document.body.click(),
|
|
529
|
-
const
|
|
530
|
-
width:
|
|
531
|
-
height:
|
|
532
|
-
},
|
|
533
|
-
x: (window.innerWidth -
|
|
534
|
-
y: (window.innerHeight -
|
|
524
|
+
}, k.value = !1, P.value = !0);
|
|
525
|
+
}
|
|
526
|
+
function te() {
|
|
527
|
+
var d, B;
|
|
528
|
+
if (document.body.click(), v.value) {
|
|
529
|
+
const j = {
|
|
530
|
+
width: v.value.size.width || 0,
|
|
531
|
+
height: v.value.size.height || 0
|
|
532
|
+
}, I = {
|
|
533
|
+
x: (window.innerWidth - j.width) / 2,
|
|
534
|
+
y: (window.innerHeight - j.height) / 2
|
|
535
535
|
};
|
|
536
|
-
(d =
|
|
536
|
+
(d = s.value) == null || d.set(j), (B = f.value) == null || B.set(I);
|
|
537
537
|
const A = n.value;
|
|
538
|
-
A.style.height =
|
|
539
|
-
size:
|
|
540
|
-
position:
|
|
541
|
-
},
|
|
538
|
+
A.style.height = j.height + "px", A.style.width = j.width + "px", A.style.left = `${I.x}px`, A.style.top = `${I.y}px`, A.style.transform = "", S.value = {
|
|
539
|
+
size: j,
|
|
540
|
+
position: I
|
|
541
|
+
}, k.value = e.draggable, P.value = !1;
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function oe() {
|
|
545
545
|
if (n.value) {
|
|
546
|
-
const d =
|
|
546
|
+
const d = Pe.getCurrent(n.value);
|
|
547
547
|
if (d) {
|
|
548
548
|
const {
|
|
549
|
-
width:
|
|
550
|
-
height:
|
|
549
|
+
width: B,
|
|
550
|
+
height: j
|
|
551
551
|
} = d;
|
|
552
|
-
n.value.style.left = `${(window.innerWidth -
|
|
552
|
+
n.value.style.left = `${(window.innerWidth - B) / 2}px`, n.value.style.top = `${(window.innerHeight - j) / 2}px`, n.value.style.transform = "";
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function W() {
|
|
557
557
|
const d = () => {
|
|
558
|
-
|
|
558
|
+
P.value ? se(!1) : oe(), document.body.click();
|
|
559
559
|
};
|
|
560
560
|
return window.addEventListener("resize", d), () => {
|
|
561
561
|
window.removeEventListener("resize", d);
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
|
-
const M =
|
|
564
|
+
const M = W();
|
|
565
565
|
return {
|
|
566
566
|
renderResizeBar: G,
|
|
567
567
|
boundingElement: a,
|
|
568
|
-
resizedEventParam:
|
|
568
|
+
resizedEventParam: S,
|
|
569
569
|
maximize: se,
|
|
570
|
-
restore:
|
|
571
|
-
allowDrag:
|
|
572
|
-
isMaximized:
|
|
570
|
+
restore: te,
|
|
571
|
+
allowDrag: k,
|
|
572
|
+
isMaximized: P,
|
|
573
573
|
unWindowResizeHandle: M,
|
|
574
|
-
moveToCenter:
|
|
574
|
+
moveToCenter: oe
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
const a =
|
|
579
|
-
|
|
580
|
-
|
|
577
|
+
function Ka(e, t, n) {
|
|
578
|
+
const a = i(), o = i(e.draggable), u = i(e.lockAxis), r = i(), s = i(), f = i(!1), g = i(new ne(0, 0)), m = i(new ne(0, 0)), C = i(new ne(0, 0)), S = i(new ne(0, 0));
|
|
579
|
+
X(() => n.value, (w) => {
|
|
580
|
+
r.value.style.cursor = w ? "move" : "default";
|
|
581
581
|
});
|
|
582
|
-
function
|
|
583
|
-
if (
|
|
582
|
+
function b(w, D) {
|
|
583
|
+
if (D.tagName === "BUTTON")
|
|
584
584
|
return !1;
|
|
585
|
-
if (
|
|
585
|
+
if (D === w)
|
|
586
586
|
return !0;
|
|
587
|
-
for (const
|
|
588
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
587
|
+
for (const V in D.children)
|
|
588
|
+
if (Object.prototype.hasOwnProperty.call(D.children, V) && b(w, D.children[V]))
|
|
589
589
|
return !0;
|
|
590
590
|
return !1;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
var
|
|
594
|
-
let
|
|
595
|
-
|
|
596
|
-
const
|
|
597
|
-
a.value && (a.value.style.transform =
|
|
592
|
+
function v() {
|
|
593
|
+
var Y, T;
|
|
594
|
+
let w = C.value.x + m.value.x, D = C.value.y + m.value.y;
|
|
595
|
+
u.value === "x" ? (w = ((Y = g.value) == null ? void 0 : Y.x) || 0, C.value.x = 0) : u.value === "y" && (D = ((T = g.value) == null ? void 0 : T.y) || 0, C.value.y = 0);
|
|
596
|
+
const V = `translate3d(${Math.round(w)}px, ${Math.round(D)}px, 0px)`;
|
|
597
|
+
a.value && (a.value.style.transform = V), S.value.x = w, S.value.y = D;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
if (!
|
|
599
|
+
function k() {
|
|
600
|
+
if (!s.value || !a.value)
|
|
601
601
|
return null;
|
|
602
|
-
const
|
|
603
|
-
top:
|
|
604
|
-
right:
|
|
605
|
-
bottom:
|
|
606
|
-
left:
|
|
602
|
+
const w = s.value.getBoundingClientRect(), D = a.value.getBoundingClientRect(), V = {
|
|
603
|
+
top: w.top < D.top,
|
|
604
|
+
right: w.right > D.right,
|
|
605
|
+
bottom: w.bottom > D.bottom,
|
|
606
|
+
left: w.left < D.left
|
|
607
607
|
};
|
|
608
|
-
return
|
|
608
|
+
return V.top || (C.value.y -= D.top - w.top), V.bottom || (C.value.y -= D.bottom - w.bottom), V.right || (C.value.x -= D.right - w.right), V.left || (C.value.x -= D.left - w.left), v(), V;
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
|
|
610
|
+
function P(w) {
|
|
611
|
+
w && (g.value && w.subtract(g.value), C.value.set(w), v(), k());
|
|
612
612
|
}
|
|
613
|
-
function
|
|
614
|
-
|
|
613
|
+
function E(w) {
|
|
614
|
+
f.value && o.value && (w.stopPropagation(), w.preventDefault(), P(ne.fromEvent(w, r.value)));
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
var
|
|
618
|
-
|
|
616
|
+
function y() {
|
|
617
|
+
var w;
|
|
618
|
+
f.value && (f.value = !1, m.value.add(C.value), C.value.reset(), (w = a.value) == null || w.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", E), document.removeEventListener("mouseup", y));
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
!
|
|
620
|
+
function L() {
|
|
621
|
+
!f.value && r.value && (f.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", E), document.addEventListener("mouseup", y));
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function _() {
|
|
624
624
|
if (a.value) {
|
|
625
|
-
const
|
|
626
|
-
|
|
625
|
+
const w = ne.getTransformInfo(a.value);
|
|
626
|
+
m.value.set(w);
|
|
627
627
|
return;
|
|
628
628
|
}
|
|
629
|
-
|
|
629
|
+
m.value.reset();
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
if (!n.value ||
|
|
631
|
+
function H(w) {
|
|
632
|
+
if (!n.value || w instanceof MouseEvent && w.button === 2)
|
|
633
633
|
return;
|
|
634
|
-
const
|
|
635
|
-
|
|
634
|
+
const D = w.target || w.srcElement;
|
|
635
|
+
r.value !== void 0 && D && !b(D, r.value) || o.value !== !1 && (document.body.click(), w.stopPropagation(), w.preventDefault(), g.value = ne.fromEvent(w, a.value), _(), L());
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
if (o.value &&
|
|
639
|
-
if (
|
|
640
|
-
|
|
637
|
+
function F(w, D, V) {
|
|
638
|
+
if (o.value && D) {
|
|
639
|
+
if (w)
|
|
640
|
+
r.value = w;
|
|
641
641
|
else if (e.dragHandle) {
|
|
642
642
|
if (e.dragHandle instanceof HTMLElement)
|
|
643
|
-
|
|
643
|
+
r.value = e.dragHandle;
|
|
644
644
|
else if (typeof e.dragHandle == "string") {
|
|
645
|
-
const
|
|
646
|
-
|
|
645
|
+
const Y = D.querySelector(e.dragHandle);
|
|
646
|
+
Y && (r.value = Y);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
a.value =
|
|
649
|
+
a.value = D, s.value = V, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", H)) : o.value = !1;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
return {
|
|
653
|
-
registerDraggle:
|
|
654
|
-
resetTranslate:
|
|
653
|
+
registerDraggle: F,
|
|
654
|
+
resetTranslate: _
|
|
655
655
|
};
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function Ft(e, t) {
|
|
658
658
|
if (e) {
|
|
659
659
|
const n = (a) => {
|
|
660
660
|
a.key.toLowerCase() === e.toLowerCase() && t({ event: a, key: e });
|
|
@@ -664,19 +664,19 @@ function kt(e, t) {
|
|
|
664
664
|
};
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
const n =
|
|
667
|
+
function Ya(e, t) {
|
|
668
|
+
const n = i(e.enableEsc);
|
|
669
669
|
let a = null;
|
|
670
|
-
return n.value ? (a =
|
|
670
|
+
return n.value ? (a = Ft("Escape", (o) => {
|
|
671
671
|
t.emit("esc", { event: o.event, type: "esc" });
|
|
672
672
|
}), {
|
|
673
673
|
remove: a
|
|
674
674
|
}) : null;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
const n =
|
|
676
|
+
function qa(e, t) {
|
|
677
|
+
const n = i(e.enableEnter);
|
|
678
678
|
let a = null;
|
|
679
|
-
return n.value ? (a =
|
|
679
|
+
return n.value ? (a = Ft("Enter", (o) => {
|
|
680
680
|
t.emit("enter", { event: o.event, type: "enter" });
|
|
681
681
|
}), {
|
|
682
682
|
remove: a
|
|
@@ -684,266 +684,266 @@ function Ka(e, t) {
|
|
|
684
684
|
}
|
|
685
685
|
const Ye = /* @__PURE__ */ Se({
|
|
686
686
|
name: "FModal",
|
|
687
|
-
props:
|
|
687
|
+
props: Ua,
|
|
688
688
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
689
689
|
setup(e, t) {
|
|
690
|
-
const n =
|
|
691
|
-
|
|
692
|
-
const
|
|
693
|
-
function
|
|
694
|
-
const
|
|
690
|
+
const n = i(e.width || 300), a = i(e.height || 200), o = i(e.modelValue), u = i(""), r = i(e.class), s = i(e.fitContent), f = i(e.showHeader), g = i(""), m = i(e.showCloseButton), C = i(e.showMaxButton), S = i(!1), b = i(e.dialogType), v = i(e.src), k = i(""), P = i(e.showButtons), E = i(e.title), y = i(e.containment || null), L = i();
|
|
691
|
+
E.value === "错误提示" && (E.value = be.getLocaleValue("messageBox.errorTitle"));
|
|
692
|
+
const _ = i(!1);
|
|
693
|
+
function H(h, N) {
|
|
694
|
+
const Z = N ? "accept" : "cancel";
|
|
695
695
|
Promise.resolve().then(() => {
|
|
696
|
-
var
|
|
697
|
-
return (
|
|
698
|
-
closeType:
|
|
696
|
+
var Q;
|
|
697
|
+
return (Q = e.beforeClose) == null ? void 0 : Q.call(e, {
|
|
698
|
+
closeType: Z
|
|
699
699
|
});
|
|
700
|
-
}).then((
|
|
701
|
-
|
|
700
|
+
}).then((Q) => {
|
|
701
|
+
Q && (o.value = !1, t.emit("update:modelValue", !1), N != null && t.emit(N ? "accept" : "cancel"), t.emit("closed", h));
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
|
-
const
|
|
704
|
+
const F = [{
|
|
705
705
|
name: "cancel",
|
|
706
|
-
text:
|
|
706
|
+
text: be.getLocaleValue("messageBox.cancel") || "取消",
|
|
707
707
|
class: "btn btn-secondary",
|
|
708
|
-
handle: (
|
|
709
|
-
|
|
708
|
+
handle: (h) => {
|
|
709
|
+
H(h, !1);
|
|
710
710
|
}
|
|
711
711
|
}, {
|
|
712
712
|
name: "accept",
|
|
713
|
-
text:
|
|
713
|
+
text: be.getLocaleValue("messageBox.ok") || "确定",
|
|
714
714
|
class: "btn btn-primary",
|
|
715
|
-
handle: (
|
|
716
|
-
|
|
715
|
+
handle: (h) => {
|
|
716
|
+
H(h, !0);
|
|
717
717
|
}
|
|
718
|
-
}],
|
|
718
|
+
}], w = i(e.buttons && e.buttons.length ? e.buttons : F), D = p(() => !!g.value), V = p(() => !!P.value && !!w.value), Y = i(), T = i(), G = i(!1), {
|
|
719
719
|
renderResizeBar: se,
|
|
720
|
-
maximize:
|
|
721
|
-
restore:
|
|
722
|
-
boundingElement:
|
|
720
|
+
maximize: te,
|
|
721
|
+
restore: oe,
|
|
722
|
+
boundingElement: W,
|
|
723
723
|
resizedEventParam: M,
|
|
724
724
|
allowDrag: d,
|
|
725
|
-
unWindowResizeHandle:
|
|
726
|
-
moveToCenter:
|
|
727
|
-
} =
|
|
728
|
-
registerDraggle:
|
|
729
|
-
} =
|
|
725
|
+
unWindowResizeHandle: B,
|
|
726
|
+
moveToCenter: j
|
|
727
|
+
} = _a(e), {
|
|
728
|
+
registerDraggle: I
|
|
729
|
+
} = Ka(e, t, d);
|
|
730
730
|
function A() {
|
|
731
731
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
732
732
|
}
|
|
733
|
-
function
|
|
734
|
-
const
|
|
735
|
-
(!
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
}),
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
}),
|
|
743
|
-
}),
|
|
744
|
-
|
|
745
|
-
}),
|
|
746
|
-
|
|
747
|
-
}),
|
|
748
|
-
const
|
|
749
|
-
JSON.stringify(
|
|
750
|
-
newSize:
|
|
751
|
-
oldSize:
|
|
733
|
+
function J() {
|
|
734
|
+
const h = document.querySelectorAll(".farris-modal").length;
|
|
735
|
+
(!h || h - 1 <= 0) && document.body.classList.remove("modal-open"), L.value && L.value.classList.remove("show");
|
|
736
|
+
}
|
|
737
|
+
X(() => e.title, (h, N) => {
|
|
738
|
+
h !== N && (E.value = h);
|
|
739
|
+
}), X(() => e.modelValue, (h, N) => {
|
|
740
|
+
h !== N && (o.value = h, o.value && e.draggable && Ne(() => {
|
|
741
|
+
T.value && !y.value && (y.value = T.value.parentElement, W.value = y.value, I(Y.value, T.value, W.value), j());
|
|
742
|
+
}), h || (y.value && (y.value = null), J())), o.value ? _.value = A() : (G.value = !1, d.value = e.draggable);
|
|
743
|
+
}), X(() => e.showHeader, (h, N) => {
|
|
744
|
+
h !== N && (f.value = h);
|
|
745
|
+
}), X(() => e.showButtons, (h, N) => {
|
|
746
|
+
h !== N && (P.value = h);
|
|
747
|
+
}), X(() => M.value, (h, N) => {
|
|
748
|
+
const Z = h || {}, Q = N || {};
|
|
749
|
+
JSON.stringify(Z) !== JSON.stringify(Q) && t.emit("resize", {
|
|
750
|
+
newSize: h,
|
|
751
|
+
oldSize: N,
|
|
752
752
|
isMaximized: G.value
|
|
753
753
|
});
|
|
754
|
-
}),
|
|
755
|
-
(
|
|
756
|
-
}),
|
|
757
|
-
|
|
754
|
+
}), X([() => e.width, () => e.height], (h, N) => {
|
|
755
|
+
(h[0] !== N[0] || h[1] !== N[1]) && (n.value = h[0] || 500, a.value = h[1] || 600);
|
|
756
|
+
}), X(() => e.class, (h, N) => {
|
|
757
|
+
r.value = h;
|
|
758
758
|
});
|
|
759
|
-
const
|
|
760
|
-
var
|
|
761
|
-
const
|
|
759
|
+
const ae = p(() => (o.value && document.body.classList.add("modal-open"), o.value)), pe = p(() => {
|
|
760
|
+
var Z;
|
|
761
|
+
const h = {
|
|
762
762
|
modal: !0,
|
|
763
763
|
"farris-modal": !0,
|
|
764
764
|
fade: !0
|
|
765
765
|
};
|
|
766
|
-
|
|
767
|
-
const
|
|
768
|
-
return
|
|
769
|
-
}),
|
|
770
|
-
var
|
|
771
|
-
const
|
|
766
|
+
h["f-modal-fitContent"] = !!s.value, h.show = !!ae.value;
|
|
767
|
+
const N = (Z = e.maskClass) == null ? void 0 : Z.split(" ");
|
|
768
|
+
return N == null || N.reduce((Q, ue) => (Q[ue] = !0, Q), h), h;
|
|
769
|
+
}), Te = p(() => {
|
|
770
|
+
var Z;
|
|
771
|
+
const h = {
|
|
772
772
|
"modal-dialog": !0
|
|
773
|
-
},
|
|
774
|
-
return
|
|
775
|
-
}),
|
|
776
|
-
const
|
|
773
|
+
}, N = (Z = r.value) == null ? void 0 : Z.split(" ");
|
|
774
|
+
return N == null || N.reduce((Q, ue) => (Q[ue] = !0, Q), h), h;
|
|
775
|
+
}), fe = () => Vn() && !e.isMessager, ee = p(() => {
|
|
776
|
+
const h = document.documentElement.clientWidth, N = document.documentElement.clientHeight, Z = Math.min(n.value, h), Q = s.value ? "auto" : `${Math.min(a.value, N - 10)}px`, ue = {
|
|
777
777
|
position: "absolute",
|
|
778
|
-
top: `${(window.innerHeight - parseInt(
|
|
779
|
-
left: `${(window.innerWidth -
|
|
780
|
-
width: `${
|
|
781
|
-
height:
|
|
778
|
+
top: `${(window.innerHeight - parseInt(Q === "auto" ? "0" : Q)) / 2}px`,
|
|
779
|
+
left: `${(window.innerWidth - Z) / 2}px`,
|
|
780
|
+
width: `${Z}px`,
|
|
781
|
+
height: Q
|
|
782
782
|
};
|
|
783
|
-
return
|
|
784
|
-
}),
|
|
785
|
-
const
|
|
783
|
+
return fe() && (ue.top = "0px", ue.left = "0px", ue.width = `${window.innerWidth}px`, ue.height = `${window.innerHeight}px`), e.mask || (ue.pointerEvents = "auto"), ue;
|
|
784
|
+
}), we = i(bt() || 1050), re = p(() => {
|
|
785
|
+
const h = {
|
|
786
786
|
display: "block",
|
|
787
787
|
overflow: "hidden"
|
|
788
788
|
};
|
|
789
|
-
return e.mask || (
|
|
790
|
-
}),
|
|
789
|
+
return e.mask || (h.pointerEvents = "none", h.backgroundColor = "transparent"), _.value && (h.backgroundColor = "transparent"), h.zIndex = we.value, h;
|
|
790
|
+
}), ye = p(() => ({
|
|
791
791
|
"modal-content": !0,
|
|
792
|
-
"modal-content-has-header":
|
|
793
|
-
"is-mobile":
|
|
794
|
-
})), Le =
|
|
795
|
-
const
|
|
796
|
-
display:
|
|
792
|
+
"modal-content-has-header": f.value,
|
|
793
|
+
"is-mobile": fe()
|
|
794
|
+
})), Le = p(() => {
|
|
795
|
+
const h = {
|
|
796
|
+
display: f.value ? "" : "none"
|
|
797
797
|
};
|
|
798
|
-
return
|
|
799
|
-
}),
|
|
798
|
+
return h["pointer-events"] = d.value ? "auto" : "none", h;
|
|
799
|
+
}), Ae = p(() => ({
|
|
800
800
|
"f-icon": !0,
|
|
801
801
|
modal_maximize: !0,
|
|
802
802
|
modalrevert: G.value
|
|
803
|
-
})),
|
|
803
|
+
})), Me = p(() => ({
|
|
804
804
|
"modal-body": !0,
|
|
805
|
-
"f-utils-flex-column":
|
|
805
|
+
"f-utils-flex-column": b.value === "iframe",
|
|
806
806
|
"f-utils-fill": !0
|
|
807
807
|
}));
|
|
808
|
-
function
|
|
808
|
+
function Re() {
|
|
809
809
|
return {
|
|
810
810
|
height: `${e.footerHeight || 60}px`
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
|
-
const We =
|
|
814
|
-
const
|
|
815
|
-
textAlgin:
|
|
816
|
-
},
|
|
817
|
-
return Object.assign(
|
|
813
|
+
const We = p(() => {
|
|
814
|
+
const h = {
|
|
815
|
+
textAlgin: k.value
|
|
816
|
+
}, N = Re();
|
|
817
|
+
return Object.assign(h, N);
|
|
818
818
|
});
|
|
819
|
-
function
|
|
820
|
-
if (
|
|
821
|
-
G.value = !1,
|
|
819
|
+
function De(h) {
|
|
820
|
+
if (h == null || h.stopPropagation(), G.value) {
|
|
821
|
+
G.value = !1, oe();
|
|
822
822
|
return;
|
|
823
823
|
}
|
|
824
|
-
|
|
824
|
+
te(), G.value = !0;
|
|
825
825
|
}
|
|
826
|
-
async function
|
|
827
|
-
|
|
826
|
+
async function ke(h, N) {
|
|
827
|
+
h.handle && await h.handle(N, h) && t.emit("closed", N);
|
|
828
828
|
}
|
|
829
|
-
function
|
|
830
|
-
|
|
829
|
+
function Ge(h) {
|
|
830
|
+
h.width && (n.value = h.width), h.height && (a.value = h.height), h.buttons && (w.value = h.buttons), h.title && (E.value = h.title);
|
|
831
831
|
}
|
|
832
|
-
let
|
|
833
|
-
|
|
834
|
-
|
|
832
|
+
let Fe = null, K = null;
|
|
833
|
+
Mn(() => {
|
|
834
|
+
_.value = A();
|
|
835
835
|
}), ze(() => {
|
|
836
|
-
|
|
836
|
+
T.value && !y.value && (y.value = T.value.parentElement, W.value = y.value, I(Y.value, T.value, W.value)), ae.value && document.body.classList.add("modal-open"), Fe = Ya(e, t), K = qa(e, t);
|
|
837
837
|
}), Xe(() => {
|
|
838
|
-
|
|
838
|
+
B && B(), Fe && Fe.remove(), K && K.remove();
|
|
839
839
|
}), t.expose({
|
|
840
|
-
modalElementRef:
|
|
841
|
-
updateModalOptions:
|
|
842
|
-
close:
|
|
843
|
-
maxDialog:
|
|
840
|
+
modalElementRef: T,
|
|
841
|
+
updateModalOptions: Ge,
|
|
842
|
+
close: H,
|
|
843
|
+
maxDialog: De,
|
|
844
844
|
isMaximized: G
|
|
845
845
|
});
|
|
846
|
-
function
|
|
847
|
-
return l("ul", null, [
|
|
846
|
+
function $e() {
|
|
847
|
+
return l("ul", null, [S.value && l("li", {
|
|
848
848
|
class: "f-btn-icon f-bare"
|
|
849
849
|
}, [l("span", {
|
|
850
850
|
class: "f-icon modal_minimize"
|
|
851
|
-
}, null)]),
|
|
852
|
-
onClick:
|
|
851
|
+
}, null)]), C.value && l("li", {
|
|
852
|
+
onClick: De,
|
|
853
853
|
class: "f-btn-icon f-bare",
|
|
854
854
|
style: "pointer-events: auto;"
|
|
855
855
|
}, [l("span", {
|
|
856
|
-
class:
|
|
857
|
-
}, null)]),
|
|
856
|
+
class: Ae.value
|
|
857
|
+
}, null)]), m.value && l("li", {
|
|
858
858
|
class: "f-btn-icon f-bare",
|
|
859
|
-
onClick: (
|
|
859
|
+
onClick: (h) => H(h, !1),
|
|
860
860
|
style: "pointer-events: auto;"
|
|
861
861
|
}, [l("span", {
|
|
862
862
|
class: "f-icon modal_close"
|
|
863
863
|
}, null)])]);
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function He() {
|
|
866
866
|
return l("div", {
|
|
867
867
|
class: "modal-footer",
|
|
868
868
|
style: We.value
|
|
869
|
-
}, [
|
|
870
|
-
const
|
|
869
|
+
}, [w.value && w.value.map((h) => {
|
|
870
|
+
const N = i(h.disabled);
|
|
871
871
|
return l("button", {
|
|
872
|
-
name:
|
|
872
|
+
name: h.name,
|
|
873
873
|
type: "button",
|
|
874
|
-
disabled:
|
|
875
|
-
class:
|
|
876
|
-
onClick: (
|
|
877
|
-
|
|
874
|
+
disabled: N.value,
|
|
875
|
+
class: h.class + (h.iconClass ? " btn-icontext" : ""),
|
|
876
|
+
onClick: (Z) => {
|
|
877
|
+
ke(h, Z);
|
|
878
878
|
}
|
|
879
|
-
}, [!!
|
|
880
|
-
class:
|
|
881
|
-
}, null),
|
|
879
|
+
}, [!!h.iconClass && l("i", {
|
|
880
|
+
class: h.iconClass
|
|
881
|
+
}, null), h.text]);
|
|
882
882
|
})]);
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function je() {
|
|
885
885
|
return l("div", {
|
|
886
|
-
ref:
|
|
886
|
+
ref: Y,
|
|
887
887
|
class: "modal-header",
|
|
888
888
|
style: Le.value
|
|
889
889
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : l("div", {
|
|
890
890
|
class: "modal-title"
|
|
891
|
-
}, [
|
|
892
|
-
class:
|
|
891
|
+
}, [D.value && l("span", {
|
|
892
|
+
class: g.value,
|
|
893
893
|
style: "margin-right: 8px"
|
|
894
894
|
}, null), l("span", {
|
|
895
895
|
class: "modal-title-label"
|
|
896
|
-
}, [
|
|
896
|
+
}, [E.value])]), l("div", {
|
|
897
897
|
class: "actions"
|
|
898
|
-
}, [
|
|
898
|
+
}, [$e()])]);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
901
|
-
return t.slots.footerTemplate ? t.slots.footerTemplate() :
|
|
900
|
+
function xe() {
|
|
901
|
+
return t.slots.footerTemplate ? t.slots.footerTemplate() : V.value && He();
|
|
902
902
|
}
|
|
903
|
-
function
|
|
904
|
-
if (
|
|
905
|
-
if (
|
|
903
|
+
function ve(h) {
|
|
904
|
+
if (h.stopPropagation(), e.allowClickMaskToClose) {
|
|
905
|
+
if (h.target !== L.value)
|
|
906
906
|
return;
|
|
907
|
-
|
|
907
|
+
H(h, !1);
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
|
-
function
|
|
911
|
-
var
|
|
910
|
+
function Ue() {
|
|
911
|
+
var h, N;
|
|
912
912
|
return l("div", {
|
|
913
|
-
id:
|
|
914
|
-
class:
|
|
915
|
-
style:
|
|
916
|
-
ref:
|
|
913
|
+
id: u.value,
|
|
914
|
+
class: Te.value,
|
|
915
|
+
style: ee.value,
|
|
916
|
+
ref: T
|
|
917
917
|
}, [l("div", {
|
|
918
|
+
class: ye.value
|
|
919
|
+
}, [f.value && je(), l("div", {
|
|
918
920
|
class: Me.value
|
|
919
|
-
}, [
|
|
920
|
-
|
|
921
|
-
}, [(j = (m = t.slots).default) == null ? void 0 : j.call(m), h.value === "iframe" && l("iframe", {
|
|
922
|
-
title: s.value,
|
|
921
|
+
}, [(N = (h = t.slots).default) == null ? void 0 : N.call(h), b.value === "iframe" && l("iframe", {
|
|
922
|
+
title: u.value,
|
|
923
923
|
class: "f-utils-fill",
|
|
924
924
|
width: "100%",
|
|
925
925
|
frameborder: "0",
|
|
926
|
-
src:
|
|
927
|
-
}, null)]),
|
|
926
|
+
src: v.value
|
|
927
|
+
}, null)]), xe()]), !s.value && T.value && !G.value && se(T.value)]);
|
|
928
928
|
}
|
|
929
|
-
function
|
|
930
|
-
return
|
|
929
|
+
function Oe(h) {
|
|
930
|
+
return h || "body";
|
|
931
931
|
}
|
|
932
|
-
return
|
|
933
|
-
|
|
934
|
-
}), () => l(
|
|
935
|
-
to:
|
|
932
|
+
return kn(() => {
|
|
933
|
+
ae.value && (we.value = bt() || 1050);
|
|
934
|
+
}), () => l(St, {
|
|
935
|
+
to: Oe(e.host)
|
|
936
936
|
}, {
|
|
937
|
-
default: () => [
|
|
937
|
+
default: () => [ae.value && l(Tt, {
|
|
938
938
|
name: "fade",
|
|
939
939
|
appear: !0
|
|
940
940
|
}, {
|
|
941
941
|
default: () => [l("div", {
|
|
942
|
-
ref:
|
|
943
|
-
class:
|
|
944
|
-
style:
|
|
945
|
-
onClick:
|
|
946
|
-
}, [
|
|
942
|
+
ref: L,
|
|
943
|
+
class: pe.value,
|
|
944
|
+
style: re.value,
|
|
945
|
+
onClick: ve
|
|
946
|
+
}, [Ue()])]
|
|
947
947
|
})]
|
|
948
948
|
});
|
|
949
949
|
}
|
|
@@ -954,59 +954,59 @@ function Ot(e) {
|
|
|
954
954
|
if (e.render && typeof e.render == "function")
|
|
955
955
|
return e.render;
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function Xa(e) {
|
|
958
958
|
const t = document.createElement("div");
|
|
959
959
|
t.style.display = "contents";
|
|
960
|
-
const n =
|
|
960
|
+
const n = ct({
|
|
961
961
|
setup(a, o) {
|
|
962
962
|
Xe(() => {
|
|
963
963
|
document.body.removeChild(t);
|
|
964
964
|
});
|
|
965
|
-
const
|
|
966
|
-
}),
|
|
967
|
-
}),
|
|
968
|
-
}),
|
|
969
|
-
}),
|
|
970
|
-
}),
|
|
971
|
-
|
|
965
|
+
const u = i(), r = i(e.class || ""), s = i(!!e.showButtons), f = i(!!e.showHeader), g = i(e.showCloseButton == null ? !0 : e.showCloseButton), m = i(!0), C = i(e.title || ""), S = e.acceptCallback || (() => {
|
|
966
|
+
}), b = e.rejectCallback || (() => {
|
|
967
|
+
}), v = e.closedCallback || ((L) => {
|
|
968
|
+
}), k = e.resizeHandle || ((L) => {
|
|
969
|
+
}), P = e.stopMoveHandle || ((L) => {
|
|
970
|
+
}), E = Ot(e), y = (L) => {
|
|
971
|
+
m.value = !1, n.unmount(), v(L);
|
|
972
972
|
};
|
|
973
973
|
return ze(() => {
|
|
974
974
|
}), o.expose({
|
|
975
|
-
modalRef:
|
|
975
|
+
modalRef: u
|
|
976
976
|
}), () => l(Ye, {
|
|
977
|
-
ref:
|
|
978
|
-
class:
|
|
979
|
-
modelValue:
|
|
980
|
-
"onUpdate:modelValue": (
|
|
981
|
-
title:
|
|
977
|
+
ref: u,
|
|
978
|
+
class: r.value,
|
|
979
|
+
modelValue: m.value,
|
|
980
|
+
"onUpdate:modelValue": (L) => m.value = L,
|
|
981
|
+
title: C.value,
|
|
982
982
|
width: e.width,
|
|
983
983
|
height: e.height,
|
|
984
984
|
buttons: e.buttons,
|
|
985
|
-
"show-header":
|
|
986
|
-
"show-buttons":
|
|
987
|
-
"show-close-button":
|
|
985
|
+
"show-header": f.value,
|
|
986
|
+
"show-buttons": s.value,
|
|
987
|
+
"show-close-button": g.value,
|
|
988
988
|
"show-max-button": !1,
|
|
989
|
-
onAccept:
|
|
990
|
-
onCancel:
|
|
989
|
+
onAccept: S,
|
|
990
|
+
onCancel: b,
|
|
991
991
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
992
|
-
onClosed:
|
|
993
|
-
onResize:
|
|
994
|
-
onStopMove:
|
|
992
|
+
onClosed: y,
|
|
993
|
+
onResize: k,
|
|
994
|
+
onStopMove: P
|
|
995
995
|
}, {
|
|
996
|
-
default: () => [
|
|
996
|
+
default: () => [E && E(n)]
|
|
997
997
|
});
|
|
998
998
|
}
|
|
999
999
|
});
|
|
1000
|
-
return document.body.appendChild(t), n.use(
|
|
1000
|
+
return document.body.appendChild(t), n.use(be.i18n), n.mount(t), n;
|
|
1001
1001
|
}
|
|
1002
|
-
class
|
|
1002
|
+
class It {
|
|
1003
1003
|
constructor(t) {
|
|
1004
1004
|
me(this, "appContext", null);
|
|
1005
|
-
me(this, "modalRef",
|
|
1006
|
-
me(this, "activeModalIndex",
|
|
1005
|
+
me(this, "modalRef", i());
|
|
1006
|
+
me(this, "activeModalIndex", i(0));
|
|
1007
1007
|
me(this, "modalRefs", {});
|
|
1008
|
-
me(this, "isUseEscCloseModal",
|
|
1009
|
-
me(this, "activeModalInstance",
|
|
1008
|
+
me(this, "isUseEscCloseModal", i(!1));
|
|
1009
|
+
me(this, "activeModalInstance", p(() => this.modalRefs[this.activeModalIndex.value]));
|
|
1010
1010
|
this.app = t, this.appContext = t ? t._context : null;
|
|
1011
1011
|
}
|
|
1012
1012
|
getCurrentModal() {
|
|
@@ -1031,7 +1031,7 @@ class Ft {
|
|
|
1031
1031
|
showButtons: !0,
|
|
1032
1032
|
showHeader: !0
|
|
1033
1033
|
}, t);
|
|
1034
|
-
return
|
|
1034
|
+
return Xa(n);
|
|
1035
1035
|
}
|
|
1036
1036
|
close(t) {
|
|
1037
1037
|
var n, a;
|
|
@@ -1040,432 +1040,432 @@ class Ft {
|
|
|
1040
1040
|
open(t) {
|
|
1041
1041
|
const n = document.createDocumentFragment();
|
|
1042
1042
|
t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
|
|
1043
|
-
const a =
|
|
1043
|
+
const a = Fn(Object.assign({
|
|
1044
1044
|
title: "",
|
|
1045
1045
|
showButtons: !0,
|
|
1046
1046
|
showHeader: !0
|
|
1047
|
-
}, t)), o =
|
|
1048
|
-
}),
|
|
1049
|
-
}),
|
|
1050
|
-
}),
|
|
1051
|
-
}),
|
|
1047
|
+
}, t)), o = i(!0), u = a.value.acceptCallback || (() => {
|
|
1048
|
+
}), r = a.value.rejectCallback || (() => {
|
|
1049
|
+
}), s = a.value.closedCallback || ((H, F) => {
|
|
1050
|
+
}), f = a.value.resizeHandle || ((H) => {
|
|
1051
|
+
}), g = t.stopMoveHandle || ((H) => {
|
|
1052
1052
|
});
|
|
1053
|
-
let
|
|
1054
|
-
const
|
|
1055
|
-
var
|
|
1053
|
+
let m;
|
|
1054
|
+
const C = Ot(a.value), S = (H) => {
|
|
1055
|
+
var w;
|
|
1056
1056
|
o.value = !1;
|
|
1057
|
-
const
|
|
1058
|
-
|
|
1059
|
-
},
|
|
1060
|
-
|
|
1061
|
-
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value],
|
|
1062
|
-
const
|
|
1063
|
-
|
|
1057
|
+
const F = (w = H == null ? void 0 : H.target) == null ? void 0 : w.classList.contains("modal_close");
|
|
1058
|
+
s(H, this.isUseEscCloseModal.value ? "esc" : F ? "icon" : "button");
|
|
1059
|
+
}, b = (H) => {
|
|
1060
|
+
S(H), m && Ne(() => {
|
|
1061
|
+
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], ut(null, n), m = null, this.modalRef.value = null, this.modalRefs) {
|
|
1062
|
+
const F = Object.keys(this.modalRefs).map((w) => Number(w));
|
|
1063
|
+
F.length > 0 ? this.activeModalIndex.value = Math.max(...F) : this.activeModalIndex.value = 0;
|
|
1064
1064
|
}
|
|
1065
1065
|
this.isUseEscCloseModal.value = !1;
|
|
1066
1066
|
});
|
|
1067
|
-
},
|
|
1068
|
-
var
|
|
1069
|
-
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((
|
|
1067
|
+
}, v = (H) => {
|
|
1068
|
+
var F;
|
|
1069
|
+
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((F = this.activeModalInstance.value) == null || F.close(H == null ? void 0 : H.event));
|
|
1070
1070
|
}, {
|
|
1071
|
-
width:
|
|
1072
|
-
height:
|
|
1073
|
-
} = a.value,
|
|
1074
|
-
Object.assign(a.value,
|
|
1075
|
-
const
|
|
1071
|
+
width: k,
|
|
1072
|
+
height: P
|
|
1073
|
+
} = a.value, E = this.adaptToWindow(k || 500, P || 320);
|
|
1074
|
+
Object.assign(a.value, E);
|
|
1075
|
+
const y = () => l(Ye, tt({
|
|
1076
1076
|
ref: this.modalRef,
|
|
1077
1077
|
modelValue: o.value,
|
|
1078
|
-
"onUpdate:modelValue": (
|
|
1078
|
+
"onUpdate:modelValue": (H) => o.value = H
|
|
1079
1079
|
}, a.value, {
|
|
1080
1080
|
isMessager: a.value.class && a.value.class.indexOf("modal-message") > -1,
|
|
1081
|
-
onAccept:
|
|
1082
|
-
onCancel:
|
|
1083
|
-
onClosed:
|
|
1084
|
-
onResize:
|
|
1085
|
-
onEsc:
|
|
1086
|
-
onStopMove:
|
|
1081
|
+
onAccept: u,
|
|
1082
|
+
onCancel: r,
|
|
1083
|
+
onClosed: b,
|
|
1084
|
+
onResize: f,
|
|
1085
|
+
onEsc: v,
|
|
1086
|
+
onStopMove: g
|
|
1087
1087
|
}), {
|
|
1088
|
-
default: () => [
|
|
1088
|
+
default: () => [C && C(this.app)]
|
|
1089
1089
|
});
|
|
1090
|
-
return
|
|
1091
|
-
const
|
|
1092
|
-
return
|
|
1090
|
+
return m = ((H) => {
|
|
1091
|
+
const F = On(y, H);
|
|
1092
|
+
return F.appContext = this.appContext, ut(F, n), F;
|
|
1093
1093
|
})({
|
|
1094
1094
|
...a.value
|
|
1095
1095
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
1096
1096
|
}), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
|
|
1097
|
-
update: (
|
|
1097
|
+
update: (H) => {
|
|
1098
1098
|
a.value = {
|
|
1099
1099
|
...a.value,
|
|
1100
|
-
...
|
|
1101
|
-
},
|
|
1100
|
+
...H
|
|
1101
|
+
}, m && ut(In(m, {
|
|
1102
1102
|
...a
|
|
1103
1103
|
}), n);
|
|
1104
1104
|
},
|
|
1105
|
-
destroy:
|
|
1105
|
+
destroy: b,
|
|
1106
1106
|
modalRef: this.activeModalInstance,
|
|
1107
1107
|
close: () => this.close()
|
|
1108
1108
|
};
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
|
-
const
|
|
1111
|
+
const Et = Symbol("FModalService");
|
|
1112
1112
|
Ye.install = (e) => {
|
|
1113
1113
|
e.component(Ye.name, Ye);
|
|
1114
|
-
const t = new
|
|
1115
|
-
e.provide(
|
|
1114
|
+
const t = new It(e);
|
|
1115
|
+
e.provide(Et, t), e.provide("FModalService", t);
|
|
1116
1116
|
};
|
|
1117
|
-
function
|
|
1117
|
+
function Pt(e, t) {
|
|
1118
1118
|
function n() {
|
|
1119
1119
|
const a = e.beforeOpen || e.beforeClickButton || null;
|
|
1120
1120
|
let o = Promise.resolve(!0);
|
|
1121
1121
|
if (a) {
|
|
1122
|
-
const
|
|
1123
|
-
if (typeof
|
|
1122
|
+
const u = a(t.value);
|
|
1123
|
+
if (typeof u > "u")
|
|
1124
1124
|
return o;
|
|
1125
|
-
typeof
|
|
1125
|
+
typeof u == "boolean" ? o = Promise.resolve(u) : o = u;
|
|
1126
1126
|
}
|
|
1127
1127
|
return o;
|
|
1128
1128
|
}
|
|
1129
1129
|
return { judgeCanOpen: n };
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1132
|
-
const
|
|
1131
|
+
function Ja(e, t, n, a, o) {
|
|
1132
|
+
const u = i(e.buttonBehavior), r = i(e.popupOnInput), s = p(() => ({
|
|
1133
1133
|
"input-group-append": !0,
|
|
1134
1134
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
1135
|
-
})), { judgeCanOpen:
|
|
1136
|
-
async function
|
|
1137
|
-
if (await
|
|
1138
|
-
const
|
|
1139
|
-
if (
|
|
1140
|
-
const
|
|
1141
|
-
...
|
|
1135
|
+
})), { judgeCanOpen: f } = Pt(e, o), g = p(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), m = Ze(Et, null), C = i();
|
|
1136
|
+
async function S(k) {
|
|
1137
|
+
if (await f() && g.value) {
|
|
1138
|
+
const P = !!t.slots.default;
|
|
1139
|
+
if (u.value === "Modal") {
|
|
1140
|
+
const E = e.modalOptions, y = m == null ? void 0 : m.open({
|
|
1141
|
+
...E,
|
|
1142
1142
|
render: () => t.slots.default && t.slots.default()
|
|
1143
1143
|
});
|
|
1144
|
-
|
|
1144
|
+
C.value = y == null ? void 0 : y.modalRef;
|
|
1145
1145
|
}
|
|
1146
|
-
|
|
1146
|
+
u.value === "Overlay" && $a.show({
|
|
1147
1147
|
// host: buttonEditRef.value,
|
|
1148
1148
|
host: document.body,
|
|
1149
1149
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
1150
1150
|
render: () => t.slots.default && t.slots.default()
|
|
1151
|
-
}),
|
|
1151
|
+
}), P && u.value === "Popup" && a.togglePopup(!0), P && r.value && a.hidePopup(), t.emit("clickButton", { origin: k, value: e.modelValue });
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1155
|
-
t.emit("mouseEnterIcon",
|
|
1154
|
+
function b(k) {
|
|
1155
|
+
t.emit("mouseEnterIcon", k);
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1158
|
-
t.emit("mouseLeaveIcon",
|
|
1157
|
+
function v(k) {
|
|
1158
|
+
t.emit("mouseLeaveIcon", k);
|
|
1159
1159
|
}
|
|
1160
1160
|
return {
|
|
1161
|
-
buttonGroupClass:
|
|
1162
|
-
onClickButton:
|
|
1163
|
-
onMouseEnterButton:
|
|
1164
|
-
onMouseLeaveButton:
|
|
1165
|
-
modalRef:
|
|
1161
|
+
buttonGroupClass: s,
|
|
1162
|
+
onClickButton: S,
|
|
1163
|
+
onMouseEnterButton: b,
|
|
1164
|
+
onMouseLeaveButton: v,
|
|
1165
|
+
modalRef: C
|
|
1166
1166
|
};
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1169
|
-
const
|
|
1170
|
-
function
|
|
1171
|
-
|
|
1168
|
+
function Za(e, t, n, a, o, u) {
|
|
1169
|
+
const r = i(!1), s = p(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: f, hasClearClass: g } = u;
|
|
1170
|
+
function m(v) {
|
|
1171
|
+
r.value = v, g.value = v;
|
|
1172
1172
|
}
|
|
1173
|
-
|
|
1174
|
-
|
|
1173
|
+
X(o, () => {
|
|
1174
|
+
m(!!o.value);
|
|
1175
1175
|
});
|
|
1176
|
-
function
|
|
1177
|
-
const
|
|
1178
|
-
|
|
1176
|
+
function C(v) {
|
|
1177
|
+
const k = !e.readonly && !e.disable && e.editable, P = !e.editable;
|
|
1178
|
+
v.stopPropagation(), (k || P) && (f(""), o.value = "", m(!r.value), t.emit("clear"));
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1181
|
-
if (
|
|
1180
|
+
function S(v) {
|
|
1181
|
+
if (s.value) {
|
|
1182
1182
|
if (!n.value) {
|
|
1183
|
-
|
|
1183
|
+
m(!1);
|
|
1184
1184
|
return;
|
|
1185
1185
|
}
|
|
1186
|
-
!e.disable && !e.readonly &&
|
|
1186
|
+
!e.disable && !e.readonly && m(!0);
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1190
|
-
|
|
1189
|
+
function b(v) {
|
|
1190
|
+
s.value && m(!1);
|
|
1191
1191
|
}
|
|
1192
1192
|
return {
|
|
1193
|
-
enableClearButton:
|
|
1194
|
-
showClearButton:
|
|
1195
|
-
onClearValue:
|
|
1196
|
-
onMouseEnterTextBox:
|
|
1197
|
-
onMouseLeaveTextBox:
|
|
1193
|
+
enableClearButton: s,
|
|
1194
|
+
showClearButton: r,
|
|
1195
|
+
onClearValue: C,
|
|
1196
|
+
onMouseEnterTextBox: S,
|
|
1197
|
+
onMouseLeaveTextBox: b
|
|
1198
1198
|
};
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1201
|
-
const
|
|
1200
|
+
function Qa(e, t, n, a, o) {
|
|
1201
|
+
const u = p(() => e.popupOnInput), r = p(() => e.popupOnFocus), { shouldPopupContent: s, closeAllPopover: f } = o, g = i(!1), m = p(() => e.enableTitle ? n.value : ""), C = p(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), S = p(() => e.readonly || !e.editable), b = i(!1), v = p(() => !e.disable && b.value), k = p(() => ({
|
|
1202
1202
|
"text-left": e.textAlign === "left",
|
|
1203
1203
|
"text-center": e.textAlign === "center",
|
|
1204
1204
|
"text-right": e.textAlign === "right",
|
|
1205
1205
|
"form-control": !0,
|
|
1206
1206
|
"f-utils-fill": !0
|
|
1207
|
-
})),
|
|
1207
|
+
})), P = p(() => ({
|
|
1208
1208
|
"input-group": !0,
|
|
1209
1209
|
"f-state-disabled": e.disable,
|
|
1210
1210
|
"f-state-editable": e.editable && !e.disable && !e.readonly,
|
|
1211
1211
|
"f-state-readonly": e.readonly,
|
|
1212
|
-
"f-state-focus":
|
|
1213
|
-
"input-group--has-clear": e.enableClear &&
|
|
1212
|
+
"f-state-focus": v.value,
|
|
1213
|
+
"input-group--has-clear": e.enableClear && g.value
|
|
1214
1214
|
}));
|
|
1215
|
-
function
|
|
1216
|
-
n.value =
|
|
1215
|
+
function E(T, G = !0) {
|
|
1216
|
+
n.value = T, G && (t.emit("change", T), t.emit("update:modelValue", T));
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1219
|
-
|
|
1218
|
+
function y(T) {
|
|
1219
|
+
s.value = !1, E(T, !0);
|
|
1220
1220
|
}
|
|
1221
|
-
|
|
1221
|
+
X(
|
|
1222
1222
|
() => e.modelValue,
|
|
1223
|
-
(
|
|
1224
|
-
n.value =
|
|
1223
|
+
(T) => {
|
|
1224
|
+
n.value = T;
|
|
1225
1225
|
}
|
|
1226
1226
|
);
|
|
1227
|
-
function
|
|
1228
|
-
|
|
1227
|
+
function L(T) {
|
|
1228
|
+
b.value = !1, t.emit("blur", T), T.stopPropagation();
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1231
|
-
t.emit("click",
|
|
1230
|
+
function _(T) {
|
|
1231
|
+
t.emit("click", T), f(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1234
|
-
!e.disable && !e.readonly && (
|
|
1233
|
+
function H(T) {
|
|
1234
|
+
!e.disable && !e.readonly && (b.value = !0, S.value || (t.emit("focus", T), r.value && !s.value && o.popup()));
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1237
|
-
t.emit("input",
|
|
1238
|
-
const G =
|
|
1239
|
-
a.value = G, n.value !== G &&
|
|
1236
|
+
function F(T) {
|
|
1237
|
+
t.emit("input", T);
|
|
1238
|
+
const G = T.target.value;
|
|
1239
|
+
a.value = G, n.value !== G && E(G, e.updateOn === "change"), u.value && !s.value && o.popup();
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1242
|
-
|
|
1241
|
+
function w(T) {
|
|
1242
|
+
T.target.tagName !== "INPUT" && T.preventDefault(), T.stopPropagation();
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1245
|
-
t.emit("keydown",
|
|
1244
|
+
function D(T) {
|
|
1245
|
+
t.emit("keydown", T);
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1248
|
-
|
|
1247
|
+
function V(T) {
|
|
1248
|
+
T.key === "Enter" && (u.value || r.value) && o.hidePopup(), t.emit("keyup", T);
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1251
|
-
const G =
|
|
1252
|
-
|
|
1250
|
+
function Y(T) {
|
|
1251
|
+
const G = T.target.value;
|
|
1252
|
+
T.stopPropagation(), E(G);
|
|
1253
1253
|
}
|
|
1254
1254
|
return {
|
|
1255
|
-
hasFocusedTextBox:
|
|
1256
|
-
isTextBoxReadonly:
|
|
1257
|
-
textBoxClass:
|
|
1258
|
-
textBoxPlaceholder:
|
|
1259
|
-
textBoxTitle:
|
|
1260
|
-
inputGroupClass:
|
|
1261
|
-
hasClearClass:
|
|
1262
|
-
changeTextBoxValue:
|
|
1263
|
-
commitValue:
|
|
1264
|
-
onBlurTextBox:
|
|
1265
|
-
onClickTextBox:
|
|
1266
|
-
onFocusTextBox:
|
|
1267
|
-
onInput:
|
|
1268
|
-
onKeyDownTextBox:
|
|
1269
|
-
onKeyUpTextBox:
|
|
1270
|
-
onMouseDownTextBox:
|
|
1271
|
-
onTextBoxValueChange:
|
|
1255
|
+
hasFocusedTextBox: v,
|
|
1256
|
+
isTextBoxReadonly: S,
|
|
1257
|
+
textBoxClass: k,
|
|
1258
|
+
textBoxPlaceholder: C,
|
|
1259
|
+
textBoxTitle: m,
|
|
1260
|
+
inputGroupClass: P,
|
|
1261
|
+
hasClearClass: g,
|
|
1262
|
+
changeTextBoxValue: E,
|
|
1263
|
+
commitValue: y,
|
|
1264
|
+
onBlurTextBox: L,
|
|
1265
|
+
onClickTextBox: _,
|
|
1266
|
+
onFocusTextBox: H,
|
|
1267
|
+
onInput: F,
|
|
1268
|
+
onKeyDownTextBox: D,
|
|
1269
|
+
onKeyUpTextBox: V,
|
|
1270
|
+
onMouseDownTextBox: w,
|
|
1271
|
+
onTextBoxValueChange: Y
|
|
1272
1272
|
};
|
|
1273
1273
|
}
|
|
1274
|
-
const
|
|
1275
|
-
function
|
|
1276
|
-
const o =
|
|
1277
|
-
|
|
1278
|
-
window[
|
|
1274
|
+
const Ee = "FarrisVue_PopoverInstancesKey";
|
|
1275
|
+
function eo(e, t, n, a) {
|
|
1276
|
+
const o = i(), u = i(!1), { judgeCanOpen: r } = Pt(e, a);
|
|
1277
|
+
X(() => o.value, (b, v) => {
|
|
1278
|
+
window[Ee] = window[Ee] || /* @__PURE__ */ new WeakMap(), b ? window[Ee].set(n.value, b) : window[Ee].delete(n.value);
|
|
1279
1279
|
});
|
|
1280
|
-
function
|
|
1281
|
-
if (window[
|
|
1282
|
-
const
|
|
1283
|
-
document.querySelectorAll(".f-button-edit,.v-popover").forEach((
|
|
1284
|
-
const
|
|
1285
|
-
|
|
1280
|
+
function s() {
|
|
1281
|
+
if (window[Ee]) {
|
|
1282
|
+
const b = window[Ee];
|
|
1283
|
+
document.querySelectorAll(".f-button-edit,.v-popover").forEach((v) => {
|
|
1284
|
+
const k = b.get(v);
|
|
1285
|
+
k && v !== n.value && !n.value.closest(".popover-fitcontent") && k.hide();
|
|
1286
1286
|
});
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1289
|
+
function f() {
|
|
1290
|
+
const b = o.value;
|
|
1291
|
+
b && b.show(n.value);
|
|
1292
1292
|
}
|
|
1293
|
-
async function
|
|
1293
|
+
async function g(b = !1) {
|
|
1294
1294
|
if (!!t.slots.default) {
|
|
1295
|
-
if (!
|
|
1295
|
+
if (!b && !u.value && !await r())
|
|
1296
1296
|
return;
|
|
1297
|
-
|
|
1297
|
+
u.value = !u.value, u.value && (await Ne(), f());
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
|
-
async function
|
|
1300
|
+
async function m(b = !1) {
|
|
1301
1301
|
if (!!t.slots.default) {
|
|
1302
|
-
if (!
|
|
1302
|
+
if (!b && !await r())
|
|
1303
1303
|
return;
|
|
1304
|
-
|
|
1304
|
+
u.value = !0, await Ne(), f();
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1308
|
-
|
|
1307
|
+
function C() {
|
|
1308
|
+
u.value = !1;
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1311
|
-
|
|
1312
|
-
|
|
1310
|
+
function S() {
|
|
1311
|
+
u.value = !0, Ne(() => {
|
|
1312
|
+
f();
|
|
1313
1313
|
});
|
|
1314
1314
|
}
|
|
1315
|
-
return { hidePopup:
|
|
1315
|
+
return { hidePopup: C, showPopup: S, popup: m, shouldPopupContent: u, togglePopup: g, popoverRef: o, closeAllPopover: s };
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1318
|
-
const a =
|
|
1317
|
+
function to(e, t, n) {
|
|
1318
|
+
const a = i(), {
|
|
1319
1319
|
isTextBoxReadonly: o,
|
|
1320
|
-
textBoxClass:
|
|
1321
|
-
textBoxPlaceholder:
|
|
1322
|
-
textBoxTitle:
|
|
1323
|
-
onBlurTextBox:
|
|
1324
|
-
onClickTextBox:
|
|
1325
|
-
onFocusTextBox:
|
|
1326
|
-
onInput:
|
|
1327
|
-
onKeyDownTextBox:
|
|
1328
|
-
onKeyUpTextBox:
|
|
1329
|
-
onMouseDownTextBox:
|
|
1330
|
-
onTextBoxValueChange:
|
|
1331
|
-
} = n,
|
|
1332
|
-
uuid:
|
|
1333
|
-
} =
|
|
1320
|
+
textBoxClass: u,
|
|
1321
|
+
textBoxPlaceholder: r,
|
|
1322
|
+
textBoxTitle: s,
|
|
1323
|
+
onBlurTextBox: f,
|
|
1324
|
+
onClickTextBox: g,
|
|
1325
|
+
onFocusTextBox: m,
|
|
1326
|
+
onInput: C,
|
|
1327
|
+
onKeyDownTextBox: S,
|
|
1328
|
+
onKeyUpTextBox: b,
|
|
1329
|
+
onMouseDownTextBox: v,
|
|
1330
|
+
onTextBoxValueChange: k
|
|
1331
|
+
} = n, P = i(e.id), {
|
|
1332
|
+
uuid: E
|
|
1333
|
+
} = Nn(), y = p(() => ({
|
|
1334
1334
|
// 'border-top-right-radius': '6px',
|
|
1335
1335
|
// 'border-bottom-right-radius': '6px'
|
|
1336
1336
|
}));
|
|
1337
1337
|
ze(() => {
|
|
1338
|
-
var
|
|
1339
|
-
e.selectOnCreated && ((
|
|
1338
|
+
var w, D;
|
|
1339
|
+
e.selectOnCreated && ((w = a.value) == null || w.select()), e.focusOnCreated && ((D = a.value) == null || D.focus({
|
|
1340
1340
|
preventScroll: !0
|
|
1341
|
-
})),
|
|
1341
|
+
})), P.value || (P.value = "button-edit_" + E(8)), P.value = P.value + "-textbox";
|
|
1342
1342
|
});
|
|
1343
|
-
const
|
|
1344
|
-
|
|
1345
|
-
},
|
|
1346
|
-
|
|
1343
|
+
const L = i(!1), _ = (w) => {
|
|
1344
|
+
w.preventDefault(), L.value = !0;
|
|
1345
|
+
}, H = (w) => {
|
|
1346
|
+
w.preventDefault(), L.value = !1, C(w);
|
|
1347
1347
|
};
|
|
1348
|
-
function
|
|
1349
|
-
|
|
1348
|
+
function F(w) {
|
|
1349
|
+
L.value || C(w);
|
|
1350
1350
|
}
|
|
1351
1351
|
return () => l("input", {
|
|
1352
1352
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
1353
1353
|
ref: a,
|
|
1354
1354
|
name: "input-group-value",
|
|
1355
1355
|
autocomplete: e.autoComplete ? "on" : "off",
|
|
1356
|
-
class:
|
|
1357
|
-
style:
|
|
1356
|
+
class: u.value,
|
|
1357
|
+
style: y.value,
|
|
1358
1358
|
disabled: e.disable,
|
|
1359
1359
|
maxlength: e.maxLength,
|
|
1360
1360
|
minlength: e.minLength,
|
|
1361
|
-
placeholder:
|
|
1361
|
+
placeholder: r.value,
|
|
1362
1362
|
readonly: o.value,
|
|
1363
1363
|
tabindex: e.tabIndex,
|
|
1364
|
-
title:
|
|
1364
|
+
title: s.value,
|
|
1365
1365
|
type: e.inputType,
|
|
1366
1366
|
value: t.value,
|
|
1367
|
-
onBlur:
|
|
1368
|
-
onChange:
|
|
1369
|
-
onClick:
|
|
1370
|
-
onFocus:
|
|
1371
|
-
onInput:
|
|
1372
|
-
onKeydown:
|
|
1373
|
-
onKeyup:
|
|
1374
|
-
onMousedown:
|
|
1375
|
-
onCompositionend:
|
|
1376
|
-
onCompositionstart:
|
|
1367
|
+
onBlur: f,
|
|
1368
|
+
onChange: k,
|
|
1369
|
+
onClick: g,
|
|
1370
|
+
onFocus: m,
|
|
1371
|
+
onInput: F,
|
|
1372
|
+
onKeydown: S,
|
|
1373
|
+
onKeyup: b,
|
|
1374
|
+
onMousedown: v,
|
|
1375
|
+
onCompositionend: H,
|
|
1376
|
+
onCompositionstart: _
|
|
1377
1377
|
}, null);
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1380
|
-
const a =
|
|
1381
|
-
changeTextBoxValue:
|
|
1382
|
-
onFocusTextBox:
|
|
1383
|
-
onBlurTextBox:
|
|
1384
|
-
onClickTextBox:
|
|
1385
|
-
textBoxPlaceholder:
|
|
1386
|
-
} = n,
|
|
1387
|
-
name:
|
|
1379
|
+
function no(e, t, n) {
|
|
1380
|
+
const a = i(e.separator), o = p(() => e.readonly || e.disable), {
|
|
1381
|
+
changeTextBoxValue: u,
|
|
1382
|
+
onFocusTextBox: r,
|
|
1383
|
+
onBlurTextBox: s,
|
|
1384
|
+
onClickTextBox: f,
|
|
1385
|
+
textBoxPlaceholder: g
|
|
1386
|
+
} = n, m = p(() => t.value ? t.value.split(a.value).map((v) => ({
|
|
1387
|
+
name: v,
|
|
1388
1388
|
selectable: !0
|
|
1389
1389
|
})) : []);
|
|
1390
|
-
function
|
|
1391
|
-
|
|
1390
|
+
function C(v) {
|
|
1391
|
+
u(v.map((k) => k.name).join(a.value), !0);
|
|
1392
1392
|
}
|
|
1393
|
-
|
|
1394
|
-
a.value =
|
|
1393
|
+
X(() => e.separator, (v) => {
|
|
1394
|
+
a.value = v;
|
|
1395
1395
|
});
|
|
1396
|
-
const
|
|
1397
|
-
|
|
1398
|
-
|
|
1396
|
+
const S = i(!e.disable && !e.readonly);
|
|
1397
|
+
X([() => e.disable, () => e.readonly], ([v, k], [P, E]) => {
|
|
1398
|
+
S.value = !v && !k;
|
|
1399
1399
|
});
|
|
1400
|
-
function
|
|
1401
|
-
v
|
|
1400
|
+
function b(v) {
|
|
1401
|
+
f(v);
|
|
1402
1402
|
}
|
|
1403
|
-
return () => l(
|
|
1403
|
+
return () => l(An, {
|
|
1404
1404
|
tabindex: e.tabIndex,
|
|
1405
|
-
onFocus:
|
|
1406
|
-
onBlur:
|
|
1405
|
+
onFocus: r,
|
|
1406
|
+
onBlur: s,
|
|
1407
1407
|
id: `${e.id}-tag-editor`,
|
|
1408
1408
|
class: "form-control",
|
|
1409
|
-
placeholder:
|
|
1410
|
-
data:
|
|
1409
|
+
placeholder: g.value,
|
|
1410
|
+
data: m.value,
|
|
1411
1411
|
showClose: !o.value,
|
|
1412
1412
|
showInput: !0,
|
|
1413
1413
|
disable: o.value,
|
|
1414
|
-
onChange:
|
|
1415
|
-
onClick:
|
|
1414
|
+
onChange: C,
|
|
1415
|
+
onClick: b
|
|
1416
1416
|
}, null);
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function ao(e, t, n, a) {
|
|
1419
1419
|
const {
|
|
1420
1420
|
buttonGroupClass: o,
|
|
1421
|
-
onClickButton:
|
|
1422
|
-
onMouseEnterButton:
|
|
1423
|
-
onMouseLeaveButton:
|
|
1421
|
+
onClickButton: u,
|
|
1422
|
+
onMouseEnterButton: r,
|
|
1423
|
+
onMouseLeaveButton: s
|
|
1424
1424
|
} = n, {
|
|
1425
|
-
enableClearButton:
|
|
1426
|
-
showClearButton:
|
|
1427
|
-
onClearValue:
|
|
1428
|
-
} = a,
|
|
1429
|
-
|
|
1430
|
-
}, e.buttonBehavior === "Modal" ? 0 : 200),
|
|
1425
|
+
enableClearButton: f,
|
|
1426
|
+
showClearButton: g,
|
|
1427
|
+
onClearValue: m
|
|
1428
|
+
} = a, C = i(), S = Wn((v) => {
|
|
1429
|
+
u(v);
|
|
1430
|
+
}, e.buttonBehavior === "Modal" ? 0 : 200), b = () => {
|
|
1431
1431
|
t.emit("beforeClearValue");
|
|
1432
1432
|
};
|
|
1433
1433
|
return {
|
|
1434
1434
|
renderButtonGroup: () => l("div", {
|
|
1435
1435
|
id: e.id ? `${e.id}-button-group` : void 0,
|
|
1436
1436
|
class: o.value
|
|
1437
|
-
}, [
|
|
1437
|
+
}, [f.value && En(l("span", {
|
|
1438
1438
|
class: "input-group-text input-group-clear",
|
|
1439
|
-
onClick:
|
|
1440
|
-
onMousedown:
|
|
1439
|
+
onClick: m,
|
|
1440
|
+
onMousedown: b
|
|
1441
1441
|
}, [l("i", {
|
|
1442
1442
|
class: "f-icon modal_close"
|
|
1443
|
-
}, null)]), [[
|
|
1443
|
+
}, null)]), [[Pn, g.value]]), t.slots.buttonContent ? l("span", {
|
|
1444
1444
|
class: "input-group-text input-group-append-button",
|
|
1445
|
-
onClick:
|
|
1446
|
-
onMouseenter:
|
|
1447
|
-
onMouseleave:
|
|
1445
|
+
onClick: S,
|
|
1446
|
+
onMouseenter: r,
|
|
1447
|
+
onMouseleave: s
|
|
1448
1448
|
}, [t.slots.buttonContent()]) : e.buttonContent ? l("span", {
|
|
1449
1449
|
class: "input-group-text input-group-append-button",
|
|
1450
1450
|
innerHTML: e.buttonContent,
|
|
1451
|
-
ref:
|
|
1452
|
-
onClick: (
|
|
1453
|
-
onMouseenter:
|
|
1454
|
-
onMouseleave:
|
|
1451
|
+
ref: C,
|
|
1452
|
+
onClick: (v) => S(v),
|
|
1453
|
+
onMouseenter: r,
|
|
1454
|
+
onMouseleave: s
|
|
1455
1455
|
}, null) : null]),
|
|
1456
|
-
buttonHandleElement:
|
|
1456
|
+
buttonHandleElement: C
|
|
1457
1457
|
};
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1460
|
-
const a =
|
|
1459
|
+
function oo(e, t, n) {
|
|
1460
|
+
const a = i(e.popupMinWidth), {
|
|
1461
1461
|
hidePopup: o,
|
|
1462
|
-
popoverRef:
|
|
1463
|
-
} = n,
|
|
1462
|
+
popoverRef: u
|
|
1463
|
+
} = n, r = () => {
|
|
1464
1464
|
t.emit("shown");
|
|
1465
1465
|
};
|
|
1466
|
-
return () => l(
|
|
1466
|
+
return () => l($n, {
|
|
1467
1467
|
id: `${e.id}-popover`,
|
|
1468
|
-
ref:
|
|
1468
|
+
ref: u,
|
|
1469
1469
|
placement: e.placement,
|
|
1470
1470
|
host: e.popupHost,
|
|
1471
1471
|
"keep-width-with-reference": e.keepWidthWithReference,
|
|
@@ -1475,137 +1475,137 @@ function to(e, t, n) {
|
|
|
1475
1475
|
class: e.popupClass,
|
|
1476
1476
|
offsetX: e.popupOffsetX,
|
|
1477
1477
|
onHidden: o,
|
|
1478
|
-
onShown:
|
|
1478
|
+
onShown: r,
|
|
1479
1479
|
beforeClose: e.beforeClosePopup,
|
|
1480
1480
|
limitContentBySpace: e.limitContentBySpace
|
|
1481
1481
|
}, {
|
|
1482
1482
|
default: () => {
|
|
1483
|
-
var
|
|
1484
|
-
return [(
|
|
1483
|
+
var s, f;
|
|
1484
|
+
return [(f = (s = t.slots).default) == null ? void 0 : f.call(s)];
|
|
1485
1485
|
}
|
|
1486
1486
|
});
|
|
1487
1487
|
}
|
|
1488
|
-
const
|
|
1488
|
+
const Rt = /* @__PURE__ */ Se({
|
|
1489
1489
|
name: "FButtonEdit",
|
|
1490
|
-
props:
|
|
1490
|
+
props: za,
|
|
1491
1491
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue"],
|
|
1492
1492
|
setup(e, t) {
|
|
1493
|
-
const n =
|
|
1494
|
-
shouldPopupContent:
|
|
1495
|
-
hidePopup:
|
|
1496
|
-
showPopup:
|
|
1497
|
-
togglePopup:
|
|
1498
|
-
} =
|
|
1499
|
-
hasFocusedTextBox:
|
|
1500
|
-
commitValue:
|
|
1501
|
-
inputGroupClass:
|
|
1502
|
-
} =
|
|
1503
|
-
onMouseEnterTextBox:
|
|
1504
|
-
onMouseLeaveTextBox:
|
|
1505
|
-
} =
|
|
1506
|
-
const
|
|
1493
|
+
const n = i(), a = i(e.customClass), o = i(e.modelValue), u = eo(e, t, n, o), {
|
|
1494
|
+
shouldPopupContent: r,
|
|
1495
|
+
hidePopup: s,
|
|
1496
|
+
showPopup: f,
|
|
1497
|
+
togglePopup: g
|
|
1498
|
+
} = u, m = Ja(e, t, n, u, o), C = i(""), S = Qa(e, t, o, C, u), {
|
|
1499
|
+
hasFocusedTextBox: b,
|
|
1500
|
+
commitValue: v,
|
|
1501
|
+
inputGroupClass: k
|
|
1502
|
+
} = S, P = Za(e, t, o, b, C, S), {
|
|
1503
|
+
onMouseEnterTextBox: E,
|
|
1504
|
+
onMouseLeaveTextBox: y
|
|
1505
|
+
} = P, L = i(!1), _ = p(() => {
|
|
1506
|
+
const W = {
|
|
1507
1507
|
"f-button-edit": !0,
|
|
1508
1508
|
"f-cmp-inputgroup": !0,
|
|
1509
1509
|
"f-button-edit-nowrap": !e.wrapText
|
|
1510
1510
|
};
|
|
1511
|
-
return a.value && a.value.split(" ").reduce((M, d) => (M[d] = !0, M),
|
|
1512
|
-
}),
|
|
1511
|
+
return a.value && a.value.split(" ").reduce((M, d) => (M[d] = !0, M), W), W;
|
|
1512
|
+
}), H = p(() => ({
|
|
1513
1513
|
overflow: e.wrapText ? "hidden" : ""
|
|
1514
|
-
})),
|
|
1514
|
+
})), F = p(() => ({
|
|
1515
1515
|
// paddingLeft: '3px',
|
|
1516
1516
|
// backgroundColor: '#fff'
|
|
1517
1517
|
}));
|
|
1518
|
-
function
|
|
1518
|
+
function w() {
|
|
1519
1519
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
1520
1520
|
return 0;
|
|
1521
|
-
let
|
|
1521
|
+
let W = 0;
|
|
1522
1522
|
const M = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
1523
|
-
return M && M.length && (
|
|
1523
|
+
return M && M.length && (W = M.map((d) => d.offsetTop).filter((d) => d > 20).length), W;
|
|
1524
1524
|
}
|
|
1525
|
-
const
|
|
1526
|
-
|
|
1527
|
-
|
|
1525
|
+
const D = i(w());
|
|
1526
|
+
Rn(() => {
|
|
1527
|
+
D.value = w();
|
|
1528
1528
|
});
|
|
1529
|
-
function
|
|
1530
|
-
return e.multiSelect && e.inputType === "tag" ? () => l(
|
|
1529
|
+
function V() {
|
|
1530
|
+
return e.multiSelect && e.inputType === "tag" ? () => l(de, null, [no(e, o, S)(), !!D.value && l("div", {
|
|
1531
1531
|
class: "d-flex flex-row mr-2 more-tags",
|
|
1532
1532
|
"more-tags": !0
|
|
1533
1533
|
}, [l("span", {
|
|
1534
1534
|
class: "multi--more-text"
|
|
1535
|
-
}, [Be("+"),
|
|
1535
|
+
}, [Be("+"), D.value])])]) : to(e, o, S);
|
|
1536
1536
|
}
|
|
1537
|
-
let
|
|
1538
|
-
|
|
1539
|
-
|
|
1537
|
+
let Y = V();
|
|
1538
|
+
X([() => e.multiSelect, () => e.inputType], () => {
|
|
1539
|
+
Y = V();
|
|
1540
1540
|
});
|
|
1541
1541
|
const {
|
|
1542
|
-
renderButtonGroup:
|
|
1542
|
+
renderButtonGroup: T,
|
|
1543
1543
|
buttonHandleElement: G
|
|
1544
|
-
} =
|
|
1545
|
-
displayText:
|
|
1546
|
-
commitValue:
|
|
1544
|
+
} = ao(e, t, m, P), se = oo(e, t, u), te = i(r.value), oe = {
|
|
1545
|
+
displayText: C,
|
|
1546
|
+
commitValue: v,
|
|
1547
1547
|
elementRef: n,
|
|
1548
|
-
hidePopup:
|
|
1549
|
-
showPopup:
|
|
1550
|
-
popoverRef:
|
|
1551
|
-
shouldPopupContent:
|
|
1552
|
-
togglePopup:
|
|
1548
|
+
hidePopup: s,
|
|
1549
|
+
showPopup: f,
|
|
1550
|
+
popoverRef: u.popoverRef,
|
|
1551
|
+
shouldPopupContent: r,
|
|
1552
|
+
togglePopup: g,
|
|
1553
1553
|
openDialog: () => {
|
|
1554
1554
|
G.value && e.buttonBehavior === "Modal" && G.value.click();
|
|
1555
1555
|
},
|
|
1556
1556
|
getModal: () => {
|
|
1557
|
-
var
|
|
1558
|
-
return e.buttonBehavior === "Modal" ? (
|
|
1557
|
+
var W;
|
|
1558
|
+
return e.buttonBehavior === "Modal" ? (W = m.modalRef.value) == null ? void 0 : W.value : null;
|
|
1559
1559
|
},
|
|
1560
1560
|
getTextbox: () => {
|
|
1561
|
-
var
|
|
1562
|
-
return (
|
|
1561
|
+
var W;
|
|
1562
|
+
return (W = n.value) == null ? void 0 : W.querySelector("input");
|
|
1563
1563
|
},
|
|
1564
1564
|
forceClosePopup: () => {
|
|
1565
|
-
|
|
1565
|
+
te.value = !1, L.value = !0, r.value = !1;
|
|
1566
1566
|
}
|
|
1567
1567
|
};
|
|
1568
1568
|
return ze(() => {
|
|
1569
|
-
n.value.componentInstance =
|
|
1569
|
+
n.value.componentInstance = oe, window.onresize = () => {
|
|
1570
1570
|
document.body.click();
|
|
1571
1571
|
};
|
|
1572
|
-
}),
|
|
1573
|
-
var
|
|
1574
|
-
window.onresize = null, (
|
|
1575
|
-
}), t.expose(
|
|
1576
|
-
if (
|
|
1577
|
-
|
|
1572
|
+
}), Dn(() => {
|
|
1573
|
+
var W;
|
|
1574
|
+
window.onresize = null, (W = window[Ee]) == null || W.delete(n.value);
|
|
1575
|
+
}), t.expose(oe), X(() => r.value, async (W, M) => {
|
|
1576
|
+
if (L.value) {
|
|
1577
|
+
te.value = W, L.value = !1;
|
|
1578
1578
|
return;
|
|
1579
1579
|
}
|
|
1580
|
-
if (!
|
|
1580
|
+
if (!W && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
|
|
1581
1581
|
try {
|
|
1582
1582
|
const d = await e.beforeClosePopup();
|
|
1583
|
-
|
|
1583
|
+
te.value = !d, (!d || e.readonly) && (r.value = !0);
|
|
1584
1584
|
} catch (d) {
|
|
1585
|
-
console.error("Error in beforeClosePopup:", d),
|
|
1585
|
+
console.error("Error in beforeClosePopup:", d), te.value = M, r.value = M;
|
|
1586
1586
|
}
|
|
1587
1587
|
return;
|
|
1588
1588
|
}
|
|
1589
|
-
|
|
1589
|
+
te.value = W;
|
|
1590
1590
|
}), () => {
|
|
1591
|
-
var
|
|
1592
|
-
return l(
|
|
1591
|
+
var W, M;
|
|
1592
|
+
return l(de, null, [l("div", tt(t.attrs, {
|
|
1593
1593
|
ref: n,
|
|
1594
|
-
class:
|
|
1594
|
+
class: _.value,
|
|
1595
1595
|
id: e.id ? e.id : void 0,
|
|
1596
|
-
style:
|
|
1596
|
+
style: H.value
|
|
1597
1597
|
}), [l("div", {
|
|
1598
1598
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
1599
|
-
class:
|
|
1600
|
-
style:
|
|
1601
|
-
onMouseenter:
|
|
1602
|
-
onMouseleave:
|
|
1603
|
-
}, [(M = (
|
|
1599
|
+
class: k.value,
|
|
1600
|
+
style: F.value,
|
|
1601
|
+
onMouseenter: E,
|
|
1602
|
+
onMouseleave: y
|
|
1603
|
+
}, [(M = (W = t.slots).precontent) == null ? void 0 : M.call(W), Y(), T()])]), te.value && se()]);
|
|
1604
1604
|
};
|
|
1605
1605
|
}
|
|
1606
1606
|
});
|
|
1607
|
-
|
|
1608
|
-
const
|
|
1607
|
+
kt(Rt);
|
|
1608
|
+
const lo = {
|
|
1609
1609
|
/** 自定义样式 */
|
|
1610
1610
|
customClass: { type: String, default: "" },
|
|
1611
1611
|
/** 允许在最后一个单元回车新增一行 */
|
|
@@ -1734,613 +1734,638 @@ const no = {
|
|
|
1734
1734
|
width: { type: Number, default: -1 },
|
|
1735
1735
|
/** 空数据模板 */
|
|
1736
1736
|
emptyTemplate: { type: Object },
|
|
1737
|
-
beforeUpdate: { type: Function }
|
|
1737
|
+
beforeUpdate: { type: Function },
|
|
1738
|
+
/** 绑定动态字段的解析器 */
|
|
1739
|
+
fieldsResolver: { type: Function, default: (e, t) => e },
|
|
1740
|
+
/** 绑定动态字段的值*/
|
|
1741
|
+
displayType: { type: String, default: "List" },
|
|
1742
|
+
fieldsCallback: { type: Function, default: () => {
|
|
1743
|
+
} }
|
|
1738
1744
|
};
|
|
1739
|
-
function
|
|
1745
|
+
function uo(e, t, n, a, o, u, r, s, f, g, m, C, S, b, v, k) {
|
|
1740
1746
|
const {
|
|
1741
|
-
isNull:
|
|
1742
|
-
isUndefined:
|
|
1743
|
-
} =
|
|
1744
|
-
totalItems:
|
|
1745
|
-
rawView:
|
|
1746
|
-
} =
|
|
1747
|
-
calculateCellPositionInRow:
|
|
1748
|
-
cellKey:
|
|
1749
|
-
cellPosition:
|
|
1750
|
-
rowKey:
|
|
1751
|
-
rowPosition:
|
|
1752
|
-
rowSpanCellPosition:
|
|
1753
|
-
groupCellPosition:
|
|
1754
|
-
summaryCellPosition:
|
|
1755
|
-
} =
|
|
1747
|
+
isNull: P,
|
|
1748
|
+
isUndefined: E
|
|
1749
|
+
} = zn(), {
|
|
1750
|
+
totalItems: y,
|
|
1751
|
+
rawView: L
|
|
1752
|
+
} = k, {
|
|
1753
|
+
calculateCellPositionInRow: _,
|
|
1754
|
+
cellKey: H,
|
|
1755
|
+
cellPosition: F,
|
|
1756
|
+
rowKey: w,
|
|
1757
|
+
rowPosition: D,
|
|
1758
|
+
rowSpanCellPosition: V,
|
|
1759
|
+
groupCellPosition: Y,
|
|
1760
|
+
summaryCellPosition: T
|
|
1761
|
+
} = r, {
|
|
1756
1762
|
cellContentClass: G,
|
|
1757
1763
|
cellContentPosition: se,
|
|
1758
|
-
cellContentClassWithEllipsis:
|
|
1759
|
-
} =
|
|
1760
|
-
collpaseGroupIconClass:
|
|
1761
|
-
} =
|
|
1762
|
-
gridCellClass:
|
|
1764
|
+
cellContentClassWithEllipsis: te
|
|
1765
|
+
} = u, {
|
|
1766
|
+
collpaseGroupIconClass: oe
|
|
1767
|
+
} = g, {
|
|
1768
|
+
gridCellClass: W,
|
|
1763
1769
|
gridRowClass: M,
|
|
1764
1770
|
onClickRow: d,
|
|
1765
|
-
onMouseoverRow:
|
|
1766
|
-
onMouseoutRow:
|
|
1767
|
-
} =
|
|
1768
|
-
onClickCell:
|
|
1769
|
-
} =
|
|
1771
|
+
onMouseoverRow: B,
|
|
1772
|
+
onMouseoutRow: j
|
|
1773
|
+
} = C, {
|
|
1774
|
+
onClickCell: I
|
|
1775
|
+
} = f, {
|
|
1770
1776
|
toggleGroupRow: A
|
|
1771
|
-
} =
|
|
1772
|
-
columnContext:
|
|
1773
|
-
hasLeftFixedColumn:
|
|
1774
|
-
hasRightFixedColumn:
|
|
1775
|
-
} =
|
|
1776
|
-
navigateOnKeyUp:
|
|
1777
|
-
navigateOnKeyDown:
|
|
1778
|
-
} =
|
|
1779
|
-
var
|
|
1780
|
-
return (($ = (
|
|
1777
|
+
} = S, {
|
|
1778
|
+
columnContext: J,
|
|
1779
|
+
hasLeftFixedColumn: ae,
|
|
1780
|
+
hasRightFixedColumn: pe
|
|
1781
|
+
} = s, {
|
|
1782
|
+
navigateOnKeyUp: Te,
|
|
1783
|
+
navigateOnKeyDown: fe
|
|
1784
|
+
} = m, ee = (c) => (c || []).some((z) => Mt(z) ? !(z.type === Hn || z.type === de && !ee(z.children)) : !0) ? c : null, we = (c) => {
|
|
1785
|
+
var z, $, O;
|
|
1786
|
+
return (($ = (z = c.column) == null ? void 0 : z.editor) == null ? void 0 : $.type) === "switch" || ((O = c.column) == null ? void 0 : O.dataType) === "boolean" ? {
|
|
1781
1787
|
display: "flex",
|
|
1782
1788
|
flexGrow: "1",
|
|
1783
1789
|
overflow: "hidden"
|
|
1784
1790
|
} : {
|
|
1785
1791
|
flexGrow: "1"
|
|
1786
1792
|
};
|
|
1787
|
-
},
|
|
1793
|
+
}, re = ge({
|
|
1788
1794
|
"fv-grid-content-left-fixed": !0
|
|
1789
|
-
}),
|
|
1795
|
+
}), ye = ge({
|
|
1790
1796
|
"fv-grid-content-right-fixed": !0
|
|
1791
1797
|
});
|
|
1792
|
-
|
|
1793
|
-
!c[0] && !c[1].length ? (
|
|
1798
|
+
X([y, L], (c) => {
|
|
1799
|
+
!c[0] && !c[1].length ? (re["fv-grid-content-left-fixed"] = !1, ye["fv-grid-content-right-fixed"] = !1) : (re["fv-grid-content-left-fixed"] = !0, ye["fv-grid-content-right-fixed"] = !0);
|
|
1794
1800
|
});
|
|
1795
1801
|
const {
|
|
1796
1802
|
gridDataStyle: Le,
|
|
1797
|
-
gridMergedDataStyle:
|
|
1798
|
-
leftFixedGridDataStyle:
|
|
1799
|
-
leftFixedGridMergedDataStyle:
|
|
1803
|
+
gridMergedDataStyle: Ae,
|
|
1804
|
+
leftFixedGridDataStyle: Me,
|
|
1805
|
+
leftFixedGridMergedDataStyle: Re,
|
|
1800
1806
|
rightFixedGridDataStyle: We,
|
|
1801
|
-
rightFixedGridMergedDataStyle:
|
|
1802
|
-
} =
|
|
1803
|
-
function
|
|
1804
|
-
|
|
1807
|
+
rightFixedGridMergedDataStyle: De
|
|
1808
|
+
} = b;
|
|
1809
|
+
function ke(c, z) {
|
|
1810
|
+
z.collapse = !z.collapse, v.value = A(z.collapse ? "collapse" : "expand", z, v.value);
|
|
1805
1811
|
}
|
|
1806
|
-
function
|
|
1812
|
+
function Ge(c, z) {
|
|
1807
1813
|
const $ = [];
|
|
1808
|
-
if (c.groupField &&
|
|
1809
|
-
for (let
|
|
1814
|
+
if (c.groupField && z[c.groupField]) {
|
|
1815
|
+
for (let q = 0; q <= c.layer; q++)
|
|
1810
1816
|
$.push(l("div", {
|
|
1811
1817
|
class: "fv-grid-group-row-icon",
|
|
1812
|
-
onClick: (Ve) =>
|
|
1818
|
+
onClick: (Ve) => ke(Ve, c)
|
|
1813
1819
|
}, [l("span", {
|
|
1814
|
-
class:
|
|
1820
|
+
class: oe(c)
|
|
1815
1821
|
}, null)]));
|
|
1816
|
-
const
|
|
1822
|
+
const O = c.data[c.groupField];
|
|
1817
1823
|
$.push(l("div", {
|
|
1818
|
-
ref:
|
|
1819
|
-
key:
|
|
1824
|
+
ref: O.setRef,
|
|
1825
|
+
key: H(c, c.layer + 1),
|
|
1820
1826
|
class: "fv-grid-cell",
|
|
1821
|
-
style:
|
|
1822
|
-
}, [
|
|
1827
|
+
style: Y(O, z, c.layer)
|
|
1828
|
+
}, [O.data])), Object.values(c.data).filter((q) => q.field !== c.groupField && q.colSpan !== 0).forEach((q) => {
|
|
1823
1829
|
$.push(l("div", {
|
|
1824
|
-
ref:
|
|
1825
|
-
key:
|
|
1830
|
+
ref: q.setRef,
|
|
1831
|
+
key: H(c, q.index),
|
|
1826
1832
|
class: "fv-grid-cell",
|
|
1827
|
-
style:
|
|
1828
|
-
}, [
|
|
1833
|
+
style: F(c, q, z)
|
|
1834
|
+
}, [q.data]));
|
|
1829
1835
|
});
|
|
1830
1836
|
}
|
|
1831
1837
|
return $;
|
|
1832
1838
|
}
|
|
1833
|
-
function
|
|
1839
|
+
function Fe(c, z, $) {
|
|
1834
1840
|
return c.layer > -1 && l("div", {
|
|
1835
1841
|
ref: c.setRef,
|
|
1836
|
-
key:
|
|
1842
|
+
key: w(c),
|
|
1837
1843
|
class: M(c, $),
|
|
1838
|
-
style:
|
|
1839
|
-
onClick: (
|
|
1840
|
-
onMouseover: (
|
|
1841
|
-
}, [
|
|
1844
|
+
style: D(c),
|
|
1845
|
+
onClick: (O) => d(O, c),
|
|
1846
|
+
onMouseover: (O) => B(O, c)
|
|
1847
|
+
}, [Ge(c, z)]);
|
|
1842
1848
|
}
|
|
1843
|
-
function
|
|
1849
|
+
function K(c, z) {
|
|
1844
1850
|
const $ = [];
|
|
1845
|
-
if (c.groupField &&
|
|
1846
|
-
const
|
|
1851
|
+
if (c.groupField && z[c.groupField]) {
|
|
1852
|
+
const O = c.data[c.groupField];
|
|
1847
1853
|
$.push(l("div", {
|
|
1848
|
-
ref:
|
|
1849
|
-
key:
|
|
1854
|
+
ref: O.setRef,
|
|
1855
|
+
key: H(c, c.layer + 1),
|
|
1850
1856
|
class: "fv-grid-cell",
|
|
1851
|
-
style: O
|
|
1852
|
-
}, [
|
|
1857
|
+
style: T(O, z, c.layer)
|
|
1858
|
+
}, [O.data]));
|
|
1853
1859
|
}
|
|
1854
1860
|
return $;
|
|
1855
1861
|
}
|
|
1856
|
-
function
|
|
1862
|
+
function $e(c, z, $) {
|
|
1857
1863
|
return c.layer > -1 && l("div", {
|
|
1858
1864
|
ref: c.setRef,
|
|
1859
|
-
key:
|
|
1865
|
+
key: w(c),
|
|
1860
1866
|
class: M(c, $),
|
|
1861
|
-
style:
|
|
1862
|
-
onClick: (
|
|
1863
|
-
onMouseover: (
|
|
1864
|
-
}, [
|
|
1865
|
-
}
|
|
1866
|
-
function
|
|
1867
|
-
var $,
|
|
1868
|
-
return c.showTips && typeof (($ = c.column) == null ? void 0 : $.formatter) != "function" && ((
|
|
1869
|
-
class:
|
|
1870
|
-
title: c.formatter(c,
|
|
1871
|
-
}, [c.formatter(c,
|
|
1872
|
-
class:
|
|
1873
|
-
}, [c.formatter(c,
|
|
1874
|
-
}
|
|
1875
|
-
function
|
|
1867
|
+
style: D(c),
|
|
1868
|
+
onClick: (O) => d(O, c),
|
|
1869
|
+
onMouseover: (O) => B(O, c)
|
|
1870
|
+
}, [K(c, z)]);
|
|
1871
|
+
}
|
|
1872
|
+
function He(c, z) {
|
|
1873
|
+
var $, O, q;
|
|
1874
|
+
return c.showTips && typeof (($ = c.column) == null ? void 0 : $.formatter) != "function" && ((O = c.column) == null ? void 0 : O.dataType) !== "commands" && ((q = c.column) == null ? void 0 : q.dataType) !== "setting" ? l("div", {
|
|
1875
|
+
class: te(c),
|
|
1876
|
+
title: c.formatter(c, z)
|
|
1877
|
+
}, [c.formatter(c, z)]) : l("div", {
|
|
1878
|
+
class: te(c)
|
|
1879
|
+
}, [c.formatter(c, z)]);
|
|
1880
|
+
}
|
|
1881
|
+
function je() {
|
|
1876
1882
|
return l("div", null, [Be("******")]);
|
|
1877
1883
|
}
|
|
1878
|
-
function
|
|
1879
|
-
var
|
|
1880
|
-
const
|
|
1881
|
-
return ((
|
|
1882
|
-
class:
|
|
1883
|
-
title:
|
|
1884
|
-
}, [
|
|
1885
|
-
class:
|
|
1886
|
-
}, [
|
|
1887
|
-
}
|
|
1888
|
-
function
|
|
1889
|
-
return c.mode ===
|
|
1890
|
-
style:
|
|
1891
|
-
}, [c.getEditor(c)]) : c.column.columnTemplate ? c.column.columnTemplate(c,
|
|
1892
|
-
}
|
|
1893
|
-
function
|
|
1884
|
+
function xe(c) {
|
|
1885
|
+
var O, q;
|
|
1886
|
+
const z = !P(c.data) && !E(c.data) ? c.data.toString() : c.data;
|
|
1887
|
+
return ((q = (O = c.column) == null ? void 0 : O.editor) == null ? void 0 : q.showType) === "password" ? je() : c.showTips ? l("div", {
|
|
1888
|
+
class: te(c),
|
|
1889
|
+
title: z
|
|
1890
|
+
}, [z]) : l("div", {
|
|
1891
|
+
class: te(c)
|
|
1892
|
+
}, [z]);
|
|
1893
|
+
}
|
|
1894
|
+
function ve(c, z) {
|
|
1895
|
+
return c.mode === _n.editing ? l("div", {
|
|
1896
|
+
style: we(c)
|
|
1897
|
+
}, [c.getEditor(c)]) : c.column.columnTemplate ? c.column.columnTemplate(c, z) : c.formatter ? He(c, z) : xe(c);
|
|
1898
|
+
}
|
|
1899
|
+
function Ue(c) {
|
|
1900
|
+
return l(de, null, null);
|
|
1901
|
+
}
|
|
1902
|
+
function Oe(c, z, $) {
|
|
1894
1903
|
return l("div", {
|
|
1895
1904
|
ref: c.setRef,
|
|
1896
|
-
key:
|
|
1905
|
+
key: w(c),
|
|
1897
1906
|
class: M(c, $),
|
|
1898
|
-
style:
|
|
1899
|
-
onClick: (
|
|
1900
|
-
onMouseover: (
|
|
1901
|
-
onMouseout: (
|
|
1902
|
-
}, [Object.values(c.data).filter((
|
|
1907
|
+
style: D(c),
|
|
1908
|
+
onClick: (O) => d(O, c),
|
|
1909
|
+
onMouseover: (O) => B(O, c),
|
|
1910
|
+
onMouseout: (O) => j(O, c)
|
|
1911
|
+
}, [e.displayType === "Card" ? Ue() : Object.values(c.data).filter((O) => z[O.field] && O.rowSpan === 1).map((O) => {
|
|
1903
1912
|
var Ve, Je;
|
|
1904
|
-
const
|
|
1905
|
-
cell:
|
|
1913
|
+
const q = t.slots.cellTemplate && ee(t.slots.cellTemplate({
|
|
1914
|
+
cell: O,
|
|
1906
1915
|
row: c
|
|
1907
1916
|
}));
|
|
1908
1917
|
return l("div", {
|
|
1909
|
-
ref:
|
|
1910
|
-
key:
|
|
1911
|
-
class:
|
|
1912
|
-
style:
|
|
1913
|
-
onClick: (
|
|
1914
|
-
|
|
1918
|
+
ref: O.setRef,
|
|
1919
|
+
key: H(c, O.index),
|
|
1920
|
+
class: W(O, c),
|
|
1921
|
+
style: F(c, O, z),
|
|
1922
|
+
onClick: (_e) => {
|
|
1923
|
+
I(_e, O, c, O.column);
|
|
1924
|
+
},
|
|
1925
|
+
onKeydown: (_e) => Te(_e, O)
|
|
1915
1926
|
}, [l("div", {
|
|
1916
|
-
class: G(
|
|
1917
|
-
style: se(
|
|
1918
|
-
}, [
|
|
1919
|
-
cell:
|
|
1927
|
+
class: G(O),
|
|
1928
|
+
style: se(O)
|
|
1929
|
+
}, [q ? (Je = (Ve = t.slots).cellTemplate) == null ? void 0 : Je.call(Ve, {
|
|
1930
|
+
cell: O,
|
|
1920
1931
|
row: c
|
|
1921
|
-
}) :
|
|
1932
|
+
}) : ve(O, c)])]);
|
|
1922
1933
|
})]);
|
|
1923
1934
|
}
|
|
1924
|
-
const
|
|
1925
|
-
function
|
|
1926
|
-
const $ =
|
|
1927
|
-
return
|
|
1935
|
+
const h = [Oe, Fe, $e];
|
|
1936
|
+
function N(c, z) {
|
|
1937
|
+
const $ = _(c);
|
|
1938
|
+
return v.value.map((O, q) => h[O.type](O, $, q));
|
|
1928
1939
|
}
|
|
1929
|
-
function
|
|
1930
|
-
const
|
|
1931
|
-
return
|
|
1932
|
-
key:
|
|
1940
|
+
function Z(c) {
|
|
1941
|
+
const z = _(c);
|
|
1942
|
+
return v.value.map(($) => Object.values($.data).filter((O) => z[O.field] && O.rowSpan > 1).map((O) => l("div", {
|
|
1943
|
+
key: H($, O.index),
|
|
1933
1944
|
class: "fv-grid-cell fv-grid-merged-cell",
|
|
1934
|
-
style:
|
|
1935
|
-
}, [
|
|
1945
|
+
style: V($, O, z)
|
|
1946
|
+
}, [O.data])));
|
|
1936
1947
|
}
|
|
1937
1948
|
function Q() {
|
|
1938
1949
|
return l("div", {
|
|
1939
1950
|
ref: a,
|
|
1940
|
-
class:
|
|
1951
|
+
class: re
|
|
1941
1952
|
}, [l("div", {
|
|
1942
1953
|
class: "fv-grid-data",
|
|
1943
|
-
style:
|
|
1944
|
-
}, [
|
|
1954
|
+
style: Me.value
|
|
1955
|
+
}, [N(J.value.leftColumns.filter((c) => c.visible))]), l("div", {
|
|
1945
1956
|
class: "fv-grid-merge-date",
|
|
1946
|
-
style:
|
|
1947
|
-
}, [
|
|
1957
|
+
style: Re.value
|
|
1958
|
+
}, [Z(J.value.leftColumns.filter((c) => c.visible))])]);
|
|
1948
1959
|
}
|
|
1949
|
-
function
|
|
1960
|
+
function ue() {
|
|
1950
1961
|
return l("div", {
|
|
1951
1962
|
ref: n,
|
|
1952
1963
|
class: "fv-grid-content-primary"
|
|
1953
1964
|
}, [l("div", {
|
|
1954
1965
|
class: "fv-grid-data",
|
|
1955
1966
|
style: Le.value
|
|
1956
|
-
}, [
|
|
1967
|
+
}, [N(J.value.primaryColumns.filter((c) => c.visible))]), l("div", {
|
|
1957
1968
|
class: "fv-grid-merge-date",
|
|
1958
|
-
style:
|
|
1959
|
-
}, [
|
|
1969
|
+
style: Ae.value
|
|
1970
|
+
}, [Z(J.value.primaryColumns.filter((c) => c.visible))])]);
|
|
1960
1971
|
}
|
|
1961
|
-
function
|
|
1972
|
+
function nt() {
|
|
1962
1973
|
return l("div", {
|
|
1963
1974
|
ref: o,
|
|
1964
|
-
class:
|
|
1975
|
+
class: ye
|
|
1965
1976
|
}, [l("div", {
|
|
1966
1977
|
class: "fv-grid-data",
|
|
1967
1978
|
style: We.value
|
|
1968
|
-
}, [
|
|
1979
|
+
}, [N(J.value.rightColumns.filter((c) => c.visible))]), l("div", {
|
|
1969
1980
|
class: "fv-grid-merge-date",
|
|
1970
|
-
style:
|
|
1971
|
-
}, [
|
|
1981
|
+
style: De.value
|
|
1982
|
+
}, [Z(J.value.rightColumns.filter((c) => c.visible))])]);
|
|
1972
1983
|
}
|
|
1973
|
-
function
|
|
1984
|
+
function at() {
|
|
1974
1985
|
const c = [];
|
|
1975
|
-
return
|
|
1986
|
+
return ae.value && c.push(Q()), c.push(ue()), pe.value && c.push(nt()), c;
|
|
1976
1987
|
}
|
|
1977
1988
|
return {
|
|
1978
|
-
renderDataArea:
|
|
1989
|
+
renderDataArea: at
|
|
1979
1990
|
};
|
|
1980
1991
|
}
|
|
1981
|
-
function
|
|
1982
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1992
|
+
function so(e) {
|
|
1993
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Mt(e);
|
|
1983
1994
|
}
|
|
1984
|
-
const
|
|
1995
|
+
const Dt = /* @__PURE__ */ Se({
|
|
1985
1996
|
name: "FDataGrid",
|
|
1986
|
-
props:
|
|
1987
|
-
emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate", "endEditRow"],
|
|
1997
|
+
props: lo,
|
|
1998
|
+
emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate", "endEditRow", "fieldsEvent"],
|
|
1988
1999
|
setup(e, t) {
|
|
1989
|
-
var
|
|
2000
|
+
var ht, gt;
|
|
1990
2001
|
const {
|
|
1991
2002
|
isMobilePhone: n
|
|
1992
|
-
} =
|
|
1993
|
-
|
|
1994
|
-
const a = 0, o = ((
|
|
1995
|
-
showLoading:
|
|
1996
|
-
renderLoading:
|
|
1997
|
-
} =
|
|
1998
|
-
shouldRenderPagination:
|
|
1999
|
-
} =
|
|
2000
|
-
showSelectAll:
|
|
2001
|
-
showSelection:
|
|
2002
|
-
selectedValues:
|
|
2003
|
-
updateSelectAllStatus:
|
|
2004
|
-
} =
|
|
2005
|
-
|
|
2003
|
+
} = Kn();
|
|
2004
|
+
i();
|
|
2005
|
+
const a = 0, o = i(((ht = e.rowOption) == null ? void 0 : ht.height) || 28), u = p(() => e.displayType === "Card"), r = i(20), s = i(e.columns), f = Yn(e), g = i(), m = i(), C = i(), S = i(), b = i(), v = i([]), k = i(!1), P = i(((gt = e.rowOption) == null ? void 0 : gt.wrapContent) || !1), E = qn(e, f), y = Xn(e, t), L = Jn(e), {
|
|
2006
|
+
showLoading: _,
|
|
2007
|
+
renderLoading: H
|
|
2008
|
+
} = Zn(e, g), F = Qn(e, /* @__PURE__ */ new Map(), y, L, f), w = ea(e, F), {
|
|
2009
|
+
shouldRenderPagination: D
|
|
2010
|
+
} = w, V = ta(e, F, f, v, t), {
|
|
2011
|
+
showSelectAll: Y,
|
|
2012
|
+
showSelection: T,
|
|
2013
|
+
selectedValues: G,
|
|
2014
|
+
updateSelectAllStatus: se
|
|
2015
|
+
} = V, te = p(() => e.disabled), oe = p(() => e.virtualized ? Math.min(F.dataView.value.length, r.value) : F.dataView.value.length);
|
|
2016
|
+
p(() => e.loadingConfig.message);
|
|
2006
2017
|
const {
|
|
2007
|
-
containerStyleObject:
|
|
2008
|
-
} =
|
|
2009
|
-
applyCommands:
|
|
2010
|
-
} =
|
|
2011
|
-
|
|
2018
|
+
containerStyleObject: W
|
|
2019
|
+
} = na(e), M = aa(e), {
|
|
2020
|
+
applyCommands: d
|
|
2021
|
+
} = M;
|
|
2022
|
+
d(s);
|
|
2012
2023
|
const {
|
|
2013
|
-
applyColumnSetting:
|
|
2014
|
-
removeColumnSetting:
|
|
2015
|
-
} =
|
|
2016
|
-
e.showSetting &&
|
|
2017
|
-
const
|
|
2018
|
-
applyColumnSorter:
|
|
2019
|
-
columnContext:
|
|
2020
|
-
updateColumnRenderContext:
|
|
2021
|
-
} =
|
|
2022
|
-
|
|
2023
|
-
const
|
|
2024
|
-
getVisualData:
|
|
2025
|
-
} =
|
|
2024
|
+
applyColumnSetting: B,
|
|
2025
|
+
removeColumnSetting: j
|
|
2026
|
+
} = oa(e);
|
|
2027
|
+
e.showSetting && B(s);
|
|
2028
|
+
const I = la(e, t), A = ua(e), {
|
|
2029
|
+
applyColumnSorter: J,
|
|
2030
|
+
columnContext: ae,
|
|
2031
|
+
updateColumnRenderContext: pe
|
|
2032
|
+
} = I;
|
|
2033
|
+
J(F, A);
|
|
2034
|
+
const Te = sa(e, ae), fe = ia(e, t, V, f), ee = ra(e, t, f, fe, v), we = ca(e, F, o), re = da(e, ee, we), ye = fa(e, F, ee, L, f, we, re, o), Le = va(e, f, re, ye), Ae = ma(e, f, re, ye), Me = ha(e, s, F, oe, a, ye, Le, Ae), {
|
|
2035
|
+
getVisualData: Re
|
|
2036
|
+
} = Me, We = ga(ae), De = pa(e, ae, o, u), ke = ya(e, V), {
|
|
2026
2037
|
sidebarWidth: Ge,
|
|
2027
|
-
showSidebarCheckBox:
|
|
2028
|
-
} =
|
|
2029
|
-
onWheel:
|
|
2038
|
+
showSidebarCheckBox: Fe
|
|
2039
|
+
} = ke, K = Ca(e, F, v, ae, Me, oe, a, Ge, o, u, ee), {
|
|
2040
|
+
onWheel: $e,
|
|
2030
2041
|
dataGridWidth: He,
|
|
2031
2042
|
viewPortHeight: je,
|
|
2032
2043
|
viewPortWidth: xe,
|
|
2033
2044
|
resetScroll: ve,
|
|
2034
2045
|
updateVisibleRowsOnLatestVisibleScope: Ue
|
|
2035
|
-
} =
|
|
2036
|
-
calculateColumnsSize:
|
|
2037
|
-
} =
|
|
2038
|
-
const
|
|
2046
|
+
} = K, Oe = ba(e, ae, m, xe, Te), {
|
|
2047
|
+
calculateColumnsSize: h
|
|
2048
|
+
} = Oe, N = wa(), Z = xa(m, b, F, N, K), Q = Ba(e, t, I, F, Te, E, K), ue = p(() => {
|
|
2049
|
+
const x = {
|
|
2039
2050
|
"fv-grid": !0,
|
|
2040
2051
|
"fv-grid-bordered": e.showBorder,
|
|
2041
2052
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
2042
2053
|
"fv-datagrid-strip": e.showStripe
|
|
2043
2054
|
};
|
|
2044
|
-
return
|
|
2045
|
-
}),
|
|
2055
|
+
return Ln(x, e.customClass);
|
|
2056
|
+
}), nt = p(() => ({
|
|
2046
2057
|
"fv-grid-content": !0,
|
|
2047
|
-
"fv-grid-content-hover":
|
|
2048
|
-
"fv-grid-wrap-content":
|
|
2049
|
-
})),
|
|
2050
|
-
const
|
|
2051
|
-
return
|
|
2058
|
+
"fv-grid-content-hover": k.value,
|
|
2059
|
+
"fv-grid-wrap-content": P.value
|
|
2060
|
+
})), at = p(() => {
|
|
2061
|
+
const x = {};
|
|
2062
|
+
return K.shouldShowHorizontalScrollbar.value && (x.paddingBottom = "10px"), K.shouldShowVirticalScrollbar.value && (x.paddingRight = "10px"), x;
|
|
2052
2063
|
}), {
|
|
2053
2064
|
renderGridHeader: c,
|
|
2054
|
-
renderGridColumnResizeOverlay:
|
|
2065
|
+
renderGridColumnResizeOverlay: z,
|
|
2055
2066
|
shouldShowHeader: $
|
|
2056
|
-
} =
|
|
2057
|
-
renderDataGridPagination:
|
|
2058
|
-
} =
|
|
2059
|
-
renderDataGridSidebar:
|
|
2060
|
-
} =
|
|
2067
|
+
} = Sa(e, t, m, S, b, I, F, Q, Z, y, N, Oe, Te, V, ke, A, K, xe, v), {
|
|
2068
|
+
renderDataGridPagination: O
|
|
2069
|
+
} = Ta(e, t, F, K, w, V), {
|
|
2070
|
+
renderDataGridSidebar: q
|
|
2071
|
+
} = Ma(e, fe, V, ke, K), {
|
|
2061
2072
|
renderDisableMask: Ve
|
|
2062
|
-
} =
|
|
2073
|
+
} = ka(), {
|
|
2063
2074
|
renderDataGridSummary: Je
|
|
2064
|
-
} =
|
|
2065
|
-
renderHorizontalScrollbar:
|
|
2066
|
-
} =
|
|
2067
|
-
renderVerticalScrollbar:
|
|
2068
|
-
} =
|
|
2069
|
-
renderFilterPanel:
|
|
2070
|
-
} =
|
|
2071
|
-
renderGroupPanel:
|
|
2072
|
-
} =
|
|
2073
|
-
function
|
|
2074
|
-
var
|
|
2075
|
-
const
|
|
2076
|
-
|
|
2075
|
+
} = Fa(e, F, I), {
|
|
2076
|
+
renderHorizontalScrollbar: _e
|
|
2077
|
+
} = Oa(e, m, K), {
|
|
2078
|
+
renderVerticalScrollbar: Vt
|
|
2079
|
+
} = Ia(e, m, K), {
|
|
2080
|
+
renderFilterPanel: Nt
|
|
2081
|
+
} = Ea(e, I, F, y, K), {
|
|
2082
|
+
renderGroupPanel: zt
|
|
2083
|
+
} = Pa(e, F, Q, E, K);
|
|
2084
|
+
function Lt() {
|
|
2085
|
+
var R, U;
|
|
2086
|
+
const x = Math.ceil(m.value.clientHeight / o.value);
|
|
2087
|
+
x > r.value && (r.value = x, Ue()), je.value = ((R = C.value) == null ? void 0 : R.clientHeight) || 0, He.value = ((U = m.value) == null ? void 0 : U.clientWidth) || 0, h();
|
|
2077
2088
|
}
|
|
2078
2089
|
ze(() => {
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2090
|
+
m.value && (r.value = Math.max(Math.ceil(m.value.clientHeight / o.value), r.value), v.value = Re(0, oe.value + a - 1), Un(m.value, Lt), h(), Ne(() => {
|
|
2091
|
+
var x;
|
|
2092
|
+
m.value && (He.value = m.value.clientWidth), C.value && (xe.value = C.value.clientWidth, je.value = C.value.clientHeight), (x = e.rowOption) != null && x.wrapContent && v.value.forEach((R) => {
|
|
2093
|
+
var U;
|
|
2094
|
+
R.height = ((U = R.ref) == null ? void 0 : U.getBoundingClientRect().height) || 0, R.raw.__fv_data_height__ = R.height, we.updateRowPosition(R, R.raw);
|
|
2095
|
+
});
|
|
2096
|
+
})), _.value && H();
|
|
2082
2097
|
}), Xe(() => {
|
|
2083
|
-
}),
|
|
2098
|
+
}), X(xe, () => {
|
|
2084
2099
|
});
|
|
2085
|
-
function Lt() {
|
|
2086
|
-
B.insertNewDataItem(), ve();
|
|
2087
|
-
}
|
|
2088
2100
|
function At() {
|
|
2089
|
-
|
|
2101
|
+
const x = F.insertNewDataItem();
|
|
2102
|
+
return ve(), x;
|
|
2103
|
+
}
|
|
2104
|
+
function Wt() {
|
|
2105
|
+
const x = F.insertNewDataItem(v.value.length);
|
|
2106
|
+
return ve(), x;
|
|
2090
2107
|
}
|
|
2091
|
-
function
|
|
2092
|
-
|
|
2108
|
+
function Gt(x) {
|
|
2109
|
+
ee.onEditingRow(x);
|
|
2093
2110
|
}
|
|
2094
|
-
function
|
|
2095
|
-
|
|
2111
|
+
function $t(x) {
|
|
2112
|
+
F.removeDataItem(x), ve();
|
|
2096
2113
|
}
|
|
2097
|
-
function
|
|
2098
|
-
|
|
2114
|
+
function Ut(x) {
|
|
2115
|
+
F.removeDataItemById(x), ve();
|
|
2099
2116
|
}
|
|
2100
|
-
function
|
|
2101
|
-
|
|
2117
|
+
function _t(x) {
|
|
2118
|
+
ee.acceptEditingRow(x);
|
|
2102
2119
|
}
|
|
2103
|
-
function Kt(
|
|
2104
|
-
|
|
2120
|
+
function Kt(x) {
|
|
2121
|
+
ee.cancelEditingRow(x);
|
|
2105
2122
|
}
|
|
2106
|
-
function
|
|
2107
|
-
|
|
2108
|
-
const
|
|
2109
|
-
|
|
2110
|
-
|
|
2123
|
+
function Yt(x) {
|
|
2124
|
+
v.value.forEach((R, U) => {
|
|
2125
|
+
const le = F.visibleDataItems.value.findIndex((ie) => ie === R.raw), ce = v.value[U - 1];
|
|
2126
|
+
x.forEach((ie) => {
|
|
2127
|
+
R.data[ie.field] ? re.updateCellByColumn(R.data[ie.field], ie, ce, R.raw) : R.data[ie.field] = re.createCellByColumn(ie, le, R.raw, R, ce);
|
|
2111
2128
|
});
|
|
2112
2129
|
});
|
|
2113
2130
|
}
|
|
2114
|
-
function
|
|
2115
|
-
|
|
2131
|
+
function ot(x) {
|
|
2132
|
+
x && (s.value = x, Yt(s.value), d(s), e.showSetting && B(s), pe(s.value), J(F, A), h());
|
|
2116
2133
|
}
|
|
2117
|
-
function
|
|
2118
|
-
|
|
2134
|
+
function qt() {
|
|
2135
|
+
V.emptyCurrentRowId();
|
|
2119
2136
|
}
|
|
2120
|
-
|
|
2121
|
-
|
|
2137
|
+
X(() => e.showSetting, (x, R) => {
|
|
2138
|
+
x !== R && ot(s.value);
|
|
2122
2139
|
});
|
|
2123
|
-
function
|
|
2124
|
-
|
|
2140
|
+
function ft(x) {
|
|
2141
|
+
w.updatePagination(x);
|
|
2125
2142
|
}
|
|
2126
|
-
function
|
|
2127
|
-
|
|
2143
|
+
function Xt(x, R) {
|
|
2144
|
+
x && (F.load(x), v.value = Re(0, oe.value + a - 1), R != null && R.keepScrollTop ? K.scrollTo(K.offsetY.value) : ve(), v.value.length || (G.value = []), Fe.value && Y.value && se()), ee.clear();
|
|
2128
2145
|
}
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
}),
|
|
2132
|
-
|
|
2146
|
+
X(F.shouldGroupingData, (x, R) => {
|
|
2147
|
+
x !== R && (F.updateDataView(), ve());
|
|
2148
|
+
}), X(() => e.columns, (x) => {
|
|
2149
|
+
ot(x);
|
|
2133
2150
|
});
|
|
2134
|
-
function
|
|
2135
|
-
|
|
2151
|
+
function lt(x) {
|
|
2152
|
+
fe.activeRowById(x);
|
|
2136
2153
|
}
|
|
2137
|
-
function
|
|
2154
|
+
function Jt(x, R = {
|
|
2138
2155
|
isCurrent: !0
|
|
2139
2156
|
}) {
|
|
2140
|
-
|
|
2157
|
+
R != null && R.isCurrent && lt(x), V.selectItemById(x);
|
|
2141
2158
|
}
|
|
2142
|
-
function
|
|
2143
|
-
const
|
|
2144
|
-
|
|
2159
|
+
function Zt(x) {
|
|
2160
|
+
const R = f.idField.value, U = v.value.find((le) => le.raw[R] === x);
|
|
2161
|
+
U && fe.clickRowItem(U);
|
|
2145
2162
|
}
|
|
2146
|
-
function
|
|
2147
|
-
const
|
|
2148
|
-
|
|
2163
|
+
function Qt(x) {
|
|
2164
|
+
const R = f.idField.value, U = v.value.find((le) => le.raw[R] === x);
|
|
2165
|
+
U && fe.changeRow(U);
|
|
2149
2166
|
}
|
|
2150
|
-
function
|
|
2151
|
-
|
|
2167
|
+
function en(x) {
|
|
2168
|
+
V.selectItemByIds(x);
|
|
2152
2169
|
}
|
|
2153
|
-
function
|
|
2154
|
-
return
|
|
2170
|
+
function tn() {
|
|
2171
|
+
return v.value;
|
|
2155
2172
|
}
|
|
2156
|
-
function
|
|
2157
|
-
return
|
|
2158
|
-
}
|
|
2159
|
-
function nn() {
|
|
2160
|
-
return k.getSelectedItems();
|
|
2173
|
+
function nn(x) {
|
|
2174
|
+
return v.value.filter((R) => x.includes(R.raw[e.idField]));
|
|
2161
2175
|
}
|
|
2162
2176
|
function an() {
|
|
2163
|
-
return
|
|
2177
|
+
return V.getSelectedItems();
|
|
2164
2178
|
}
|
|
2165
2179
|
function on() {
|
|
2166
|
-
|
|
2180
|
+
return V.getSelectionRow();
|
|
2181
|
+
}
|
|
2182
|
+
function ln() {
|
|
2183
|
+
ee.endEditCell();
|
|
2167
2184
|
}
|
|
2168
|
-
function
|
|
2185
|
+
function un(x, R = {
|
|
2169
2186
|
clearCurrent: !0
|
|
2170
2187
|
}) {
|
|
2171
|
-
|
|
2188
|
+
R != null && R.clearCurrent && lt(""), V.unSelectItemByIds(x);
|
|
2172
2189
|
}
|
|
2173
|
-
function
|
|
2174
|
-
|
|
2190
|
+
function vt() {
|
|
2191
|
+
V.clearSelection();
|
|
2175
2192
|
}
|
|
2176
2193
|
function sn() {
|
|
2177
|
-
return
|
|
2194
|
+
return V.currentSelectedDataId.value;
|
|
2178
2195
|
}
|
|
2179
|
-
function
|
|
2180
|
-
|
|
2196
|
+
function rn() {
|
|
2197
|
+
K.scrollToBottom();
|
|
2181
2198
|
}
|
|
2182
|
-
function
|
|
2183
|
-
|
|
2199
|
+
function cn(x) {
|
|
2200
|
+
K.scrollToRowByIndex(x);
|
|
2184
2201
|
}
|
|
2185
|
-
function
|
|
2186
|
-
|
|
2187
|
-
total:
|
|
2202
|
+
function dn() {
|
|
2203
|
+
V.keepSelectingOnPaging.value || vt(), F.updateVisibleDataSummary(v.value), ft({
|
|
2204
|
+
total: F.dataView.value.length,
|
|
2188
2205
|
index: 1
|
|
2189
2206
|
});
|
|
2190
2207
|
}
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2208
|
+
function fn(x) {
|
|
2209
|
+
V.updateSelectedValues(x);
|
|
2210
|
+
}
|
|
2211
|
+
function vn(x) {
|
|
2212
|
+
V.removeSelectedValues(x);
|
|
2213
|
+
}
|
|
2214
|
+
const mt = {
|
|
2215
|
+
activeRowById: lt,
|
|
2216
|
+
selectRowById: Qt,
|
|
2217
|
+
addNewDataItem: At,
|
|
2218
|
+
addNewDataItemAtLast: Wt,
|
|
2219
|
+
removeDataItem: $t,
|
|
2220
|
+
removeDataItemById: Ut,
|
|
2221
|
+
editDataItem: Gt,
|
|
2222
|
+
acceptDataItem: _t,
|
|
2200
2223
|
cancelDataItem: Kt,
|
|
2201
|
-
selectItemById:
|
|
2202
|
-
selectItemByIds:
|
|
2203
|
-
updateColumns:
|
|
2204
|
-
updateDataSource:
|
|
2205
|
-
updatePagination:
|
|
2206
|
-
getVisibleData:
|
|
2207
|
-
getVisibleDataByIds:
|
|
2208
|
-
getSelectedItems:
|
|
2209
|
-
getSelectionRow:
|
|
2224
|
+
selectItemById: Jt,
|
|
2225
|
+
selectItemByIds: en,
|
|
2226
|
+
updateColumns: ot,
|
|
2227
|
+
updateDataSource: Xt,
|
|
2228
|
+
updatePagination: ft,
|
|
2229
|
+
getVisibleData: tn,
|
|
2230
|
+
getVisibleDataByIds: nn,
|
|
2231
|
+
getSelectedItems: an,
|
|
2232
|
+
getSelectionRow: on,
|
|
2210
2233
|
getCurrentRowId: sn,
|
|
2211
|
-
endEditCell:
|
|
2212
|
-
clickRowItemById:
|
|
2213
|
-
clearSelection:
|
|
2214
|
-
unSelectItemByIds:
|
|
2215
|
-
scrollToBottom:
|
|
2216
|
-
scrollToRowByIndex:
|
|
2217
|
-
updateDerivedData:
|
|
2218
|
-
emptyCurrentRowId:
|
|
2234
|
+
endEditCell: ln,
|
|
2235
|
+
clickRowItemById: Zt,
|
|
2236
|
+
clearSelection: vt,
|
|
2237
|
+
unSelectItemByIds: un,
|
|
2238
|
+
scrollToBottom: rn,
|
|
2239
|
+
scrollToRowByIndex: cn,
|
|
2240
|
+
updateDerivedData: dn,
|
|
2241
|
+
emptyCurrentRowId: qt,
|
|
2242
|
+
updateSelectedValues: fn,
|
|
2243
|
+
removeSelectedValues: vn
|
|
2219
2244
|
};
|
|
2220
|
-
t.expose(
|
|
2221
|
-
const
|
|
2222
|
-
renderDataArea:
|
|
2223
|
-
} =
|
|
2224
|
-
renderEmpty:
|
|
2225
|
-
} =
|
|
2245
|
+
t.expose(mt);
|
|
2246
|
+
const mn = Ra(e, t, mt, I, ee, v), {
|
|
2247
|
+
renderDataArea: hn
|
|
2248
|
+
} = uo(e, t, C, S, b, We, De, I, ee, E, mn, fe, Me, K, v, F), gn = p(() => !v.value || !v.value.length), {
|
|
2249
|
+
renderEmpty: pn
|
|
2250
|
+
} = Da(e, t), yn = p(() => ({
|
|
2226
2251
|
"d-flex": !0,
|
|
2227
|
-
"justify-content-between":
|
|
2228
|
-
"justify-content-end":
|
|
2252
|
+
"justify-content-between": D.value && T.value,
|
|
2253
|
+
"justify-content-end": D.value && !T.value,
|
|
2229
2254
|
"position-relative": !0,
|
|
2230
2255
|
"fv-datagrid-pagination": !0
|
|
2231
|
-
})),
|
|
2256
|
+
})), Cn = p(() => ({
|
|
2232
2257
|
"flex-direction": "row"
|
|
2233
|
-
})),
|
|
2258
|
+
})), bn = p(() => ({
|
|
2234
2259
|
"d-flex": !0,
|
|
2235
2260
|
"align-items-center": !0
|
|
2236
2261
|
}));
|
|
2237
|
-
|
|
2238
|
-
useColumnComposition:
|
|
2239
|
-
dataView:
|
|
2240
|
-
useFilterComposition:
|
|
2241
|
-
useFitColumnComposition:
|
|
2242
|
-
useSortComposition:
|
|
2243
|
-
useVirtualScrollComposition:
|
|
2262
|
+
jn("dataGridContext", {
|
|
2263
|
+
useColumnComposition: I,
|
|
2264
|
+
dataView: F,
|
|
2265
|
+
useFilterComposition: y,
|
|
2266
|
+
useFitColumnComposition: Oe,
|
|
2267
|
+
useSortComposition: A,
|
|
2268
|
+
useVirtualScrollComposition: K
|
|
2244
2269
|
});
|
|
2245
|
-
function
|
|
2246
|
-
let
|
|
2247
|
-
return l(
|
|
2270
|
+
function wn(x) {
|
|
2271
|
+
let R;
|
|
2272
|
+
return l(ja, {
|
|
2248
2273
|
class: "f-form-layout farris-form farris-form-controls-inline col-12 col-md-6 col-xl-3 col-el-2"
|
|
2249
|
-
},
|
|
2250
|
-
var
|
|
2251
|
-
return ((
|
|
2252
|
-
}).map((
|
|
2274
|
+
}, so(R = Object.keys(x.data).filter((U) => {
|
|
2275
|
+
var le, ce;
|
|
2276
|
+
return ((le = x.data[U].column) == null ? void 0 : le.dataType) !== wt && ((ce = x.data[U].column) == null ? void 0 : ce.dataType) !== xt;
|
|
2277
|
+
}).map((U) => {
|
|
2253
2278
|
var ce, ie;
|
|
2254
|
-
const
|
|
2279
|
+
const le = x.data[U];
|
|
2255
2280
|
return l("div", {
|
|
2256
2281
|
class: "farris-group-wrap w-100"
|
|
2257
2282
|
}, [l("div", {
|
|
2258
2283
|
class: "form-group farris-form-group common-group"
|
|
2259
|
-
}, [l(
|
|
2260
|
-
text: (ce =
|
|
2261
|
-
title: (ie =
|
|
2284
|
+
}, [l(Va, {
|
|
2285
|
+
text: (ce = le.column) == null ? void 0 : ce.title,
|
|
2286
|
+
title: (ie = le.column) == null ? void 0 : ie.title
|
|
2262
2287
|
}, null), l("div", {
|
|
2263
2288
|
class: "farris-input-wrap"
|
|
2264
|
-
}, [
|
|
2265
|
-
})) ?
|
|
2266
|
-
default: () => [
|
|
2289
|
+
}, [le.getEditor(le)])])]);
|
|
2290
|
+
})) ? R : {
|
|
2291
|
+
default: () => [R]
|
|
2267
2292
|
});
|
|
2268
2293
|
}
|
|
2269
|
-
function
|
|
2270
|
-
const
|
|
2271
|
-
Object.keys(
|
|
2272
|
-
var
|
|
2273
|
-
return ((
|
|
2274
|
-
}).forEach((
|
|
2275
|
-
var
|
|
2276
|
-
const
|
|
2277
|
-
|
|
2294
|
+
function xn(x, R) {
|
|
2295
|
+
const U = {}, le = {}, ce = [], ie = [], pt = {};
|
|
2296
|
+
Object.keys(R.data).filter((Ie) => {
|
|
2297
|
+
var Ce, Ke;
|
|
2298
|
+
return ((Ce = R.data[Ie].column) == null ? void 0 : Ce.dataType) !== wt && ((Ke = R.data[Ie].column) == null ? void 0 : Ke.dataType) !== xt;
|
|
2299
|
+
}).forEach((Ie) => {
|
|
2300
|
+
var Ke, yt, Ct;
|
|
2301
|
+
const Ce = R.data[Ie];
|
|
2302
|
+
U[Ie] = Ce.data, ee.endEditByCell(Ce), le[Ie] = Ce.data, ce.push(Ce.column), ie.push(Ce), pt[Ie] = (Ct = (yt = (Ke = Ce.column) == null ? void 0 : Ke.editor) == null ? void 0 : yt.context) == null ? void 0 : Ct.editor;
|
|
2278
2303
|
}), t.emit("endEditRow", {
|
|
2279
|
-
row:
|
|
2304
|
+
row: R,
|
|
2280
2305
|
cells: ie,
|
|
2281
2306
|
columns: ce,
|
|
2282
|
-
oldValues:
|
|
2283
|
-
newValues:
|
|
2284
|
-
editors:
|
|
2285
|
-
}),
|
|
2286
|
-
}
|
|
2287
|
-
function
|
|
2288
|
-
const
|
|
2289
|
-
return
|
|
2307
|
+
oldValues: U,
|
|
2308
|
+
newValues: le,
|
|
2309
|
+
editors: pt
|
|
2310
|
+
}), ee.showRowEditPanel.value = !1;
|
|
2311
|
+
}
|
|
2312
|
+
function Bn() {
|
|
2313
|
+
const x = V.currentSelectedDataId.value, R = v.value.find((U) => U.raw[e.idField] === x);
|
|
2314
|
+
return R ? l(Ha, {
|
|
2290
2315
|
showHeader: !1,
|
|
2291
|
-
modelValue:
|
|
2292
|
-
"onUpdate:modelValue": (
|
|
2316
|
+
modelValue: ee.showRowEditPanel.value,
|
|
2317
|
+
"onUpdate:modelValue": (U) => ee.showRowEditPanel.value = U,
|
|
2293
2318
|
width: 600
|
|
2294
2319
|
}, {
|
|
2295
|
-
default: () =>
|
|
2296
|
-
footerTemplate: () => l(
|
|
2320
|
+
default: () => wn(R),
|
|
2321
|
+
footerTemplate: () => l(de, null, [l(Bt, {
|
|
2297
2322
|
class: "mr-3",
|
|
2298
2323
|
type: "secondary",
|
|
2299
|
-
onClick: (
|
|
2300
|
-
|
|
2324
|
+
onClick: (U) => {
|
|
2325
|
+
ee.showRowEditPanel.value = !1;
|
|
2301
2326
|
}
|
|
2302
2327
|
}, {
|
|
2303
2328
|
default: () => [Be("取消")]
|
|
2304
|
-
}), l(
|
|
2305
|
-
onClick: (
|
|
2306
|
-
|
|
2329
|
+
}), l(Bt, {
|
|
2330
|
+
onClick: (U) => {
|
|
2331
|
+
xn(U, R);
|
|
2307
2332
|
}
|
|
2308
2333
|
}, {
|
|
2309
2334
|
default: () => [Be("确定")]
|
|
2310
2335
|
})])
|
|
2311
2336
|
}) : null;
|
|
2312
2337
|
}
|
|
2313
|
-
return () => l(
|
|
2314
|
-
ref:
|
|
2315
|
-
class:
|
|
2316
|
-
style:
|
|
2317
|
-
onWheel:
|
|
2318
|
-
}, [
|
|
2319
|
-
ref:
|
|
2320
|
-
class:
|
|
2321
|
-
style:
|
|
2322
|
-
onTouchstart: (
|
|
2323
|
-
|
|
2338
|
+
return () => l(de, null, [l("div", {
|
|
2339
|
+
ref: g,
|
|
2340
|
+
class: ue.value,
|
|
2341
|
+
style: W.value,
|
|
2342
|
+
onWheel: $e
|
|
2343
|
+
}, [m.value && e.enableFilter && Nt(), m.value && zt(), m.value && $.value && c(), l("div", {
|
|
2344
|
+
ref: m,
|
|
2345
|
+
class: nt.value,
|
|
2346
|
+
style: at.value,
|
|
2347
|
+
onTouchstart: (x) => {
|
|
2348
|
+
x.stopPropagation(), k.value = !0, K.onTouchstartScrollThumb(x, m);
|
|
2324
2349
|
},
|
|
2325
|
-
onTouchend: (
|
|
2326
|
-
|
|
2350
|
+
onTouchend: (x) => {
|
|
2351
|
+
k.value = !1;
|
|
2327
2352
|
},
|
|
2328
|
-
onMouseover: (
|
|
2329
|
-
|
|
2353
|
+
onMouseover: (x) => {
|
|
2354
|
+
x.stopPropagation(), k.value = !0;
|
|
2330
2355
|
},
|
|
2331
|
-
onMouseleave: (
|
|
2332
|
-
|
|
2356
|
+
onMouseleave: (x) => {
|
|
2357
|
+
x.stopPropagation(), k.value = !1;
|
|
2333
2358
|
}
|
|
2334
|
-
}, [
|
|
2335
|
-
class:
|
|
2336
|
-
style:
|
|
2337
|
-
}, [
|
|
2338
|
-
class:
|
|
2339
|
-
}, [l("div", null, ["已选:" +
|
|
2359
|
+
}, [m.value && q(v), m.value && hn(), m.value && gn.value && pn(), m.value && _e(), m.value && Vt()]), m.value && Je(), (D.value || T.value) && l("div", {
|
|
2360
|
+
class: yn.value,
|
|
2361
|
+
style: Cn.value
|
|
2362
|
+
}, [T.value && l("div", {
|
|
2363
|
+
class: bn.value
|
|
2364
|
+
}, [l("div", null, ["已选:" + G.value.length, Be(" 条")])]), D.value && O()]), z(), te.value && Ve()]), n() && Bn()]);
|
|
2340
2365
|
}
|
|
2341
2366
|
});
|
|
2342
|
-
|
|
2343
|
-
const
|
|
2367
|
+
kt(Dt);
|
|
2368
|
+
const io = {
|
|
2344
2369
|
width: { Type: Number, default: 400 },
|
|
2345
2370
|
type: { Type: String, default: "info" },
|
|
2346
2371
|
title: { Type: String, default: "" },
|
|
@@ -2353,15 +2378,15 @@ const lo = {
|
|
|
2353
2378
|
promptEditorType: { Type: String, default: "text-area" },
|
|
2354
2379
|
buttons: { type: Object, default: [] }
|
|
2355
2380
|
};
|
|
2356
|
-
function
|
|
2381
|
+
function dt() {
|
|
2357
2382
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
2358
2383
|
}
|
|
2359
|
-
async function
|
|
2384
|
+
async function ro(e) {
|
|
2360
2385
|
if (!navigator.clipboard)
|
|
2361
|
-
throw
|
|
2386
|
+
throw dt();
|
|
2362
2387
|
return navigator.clipboard.writeText(e);
|
|
2363
2388
|
}
|
|
2364
|
-
async function
|
|
2389
|
+
async function co(e) {
|
|
2365
2390
|
const t = document.createElement("span");
|
|
2366
2391
|
t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
|
|
2367
2392
|
const n = window.getSelection(), a = window.document.createRange();
|
|
@@ -2373,61 +2398,61 @@ async function uo(e) {
|
|
|
2373
2398
|
n == null || n.removeAllRanges(), window.document.body.removeChild(t);
|
|
2374
2399
|
}
|
|
2375
2400
|
if (!o)
|
|
2376
|
-
throw
|
|
2401
|
+
throw dt();
|
|
2377
2402
|
}
|
|
2378
|
-
async function
|
|
2403
|
+
async function fo(e) {
|
|
2379
2404
|
try {
|
|
2380
|
-
await
|
|
2405
|
+
await ro(e);
|
|
2381
2406
|
} catch (t) {
|
|
2382
2407
|
try {
|
|
2383
|
-
await
|
|
2408
|
+
await co(e);
|
|
2384
2409
|
} catch (n) {
|
|
2385
|
-
throw n || t ||
|
|
2410
|
+
throw n || t || dt();
|
|
2386
2411
|
}
|
|
2387
2412
|
}
|
|
2388
2413
|
}
|
|
2389
|
-
function
|
|
2414
|
+
function vo() {
|
|
2390
2415
|
async function e(t) {
|
|
2391
|
-
await
|
|
2416
|
+
await fo(t);
|
|
2392
2417
|
}
|
|
2393
2418
|
return { onCopy: e };
|
|
2394
2419
|
}
|
|
2395
|
-
function
|
|
2396
|
-
const o =
|
|
2420
|
+
function mo(e, t, n, a) {
|
|
2421
|
+
const o = i(14), u = i(140), r = i(""), s = i(a.value.length), f = p(() => a.value), g = p(() => ({
|
|
2397
2422
|
"font-size": `${o.value}px`,
|
|
2398
2423
|
height: "100%"
|
|
2399
2424
|
}));
|
|
2400
|
-
function
|
|
2401
|
-
if (
|
|
2402
|
-
const
|
|
2403
|
-
|
|
2425
|
+
function m(C) {
|
|
2426
|
+
if (C.currentTarget) {
|
|
2427
|
+
const S = C.currentTarget.value || "";
|
|
2428
|
+
s.value = S.length;
|
|
2404
2429
|
}
|
|
2405
2430
|
}
|
|
2406
|
-
return () => l(
|
|
2431
|
+
return () => l(de, null, [l("textarea", {
|
|
2407
2432
|
title: "promptMessage",
|
|
2408
2433
|
name: "promptMessage",
|
|
2409
2434
|
class: "form-control",
|
|
2410
|
-
style:
|
|
2435
|
+
style: g.value,
|
|
2411
2436
|
rows: "4",
|
|
2412
|
-
maxlength:
|
|
2413
|
-
onInput: (
|
|
2414
|
-
}, [
|
|
2437
|
+
maxlength: u.value,
|
|
2438
|
+
onInput: (C) => m(C)
|
|
2439
|
+
}, [f.value]), l("span", {
|
|
2415
2440
|
class: "textarea-wordcount",
|
|
2416
|
-
title:
|
|
2441
|
+
title: r.value,
|
|
2417
2442
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
2418
|
-
}, [
|
|
2443
|
+
}, [s.value + " / " + u.value])]);
|
|
2419
2444
|
}
|
|
2420
|
-
function
|
|
2421
|
-
const o =
|
|
2422
|
-
function
|
|
2423
|
-
return
|
|
2445
|
+
function ho(e, t, n, a) {
|
|
2446
|
+
const o = mo(e, t, n, a), u = /* @__PURE__ */ new Map([["text-area", o]]);
|
|
2447
|
+
function r(s) {
|
|
2448
|
+
return u.get(s) || null;
|
|
2424
2449
|
}
|
|
2425
|
-
return { getEditorRender:
|
|
2450
|
+
return { getEditorRender: r };
|
|
2426
2451
|
}
|
|
2427
|
-
function
|
|
2428
|
-
const e =
|
|
2452
|
+
function go() {
|
|
2453
|
+
const e = i(!1), t = i("复制成功");
|
|
2429
2454
|
return {
|
|
2430
|
-
feedbackStyle:
|
|
2455
|
+
feedbackStyle: p(() => {
|
|
2431
2456
|
const a = {
|
|
2432
2457
|
position: "absolute",
|
|
2433
2458
|
left: "50%",
|
|
@@ -2451,153 +2476,153 @@ function vo() {
|
|
|
2451
2476
|
toShowFeedback: e
|
|
2452
2477
|
};
|
|
2453
2478
|
}
|
|
2454
|
-
function
|
|
2479
|
+
function po(e, t) {
|
|
2455
2480
|
const n = t.getEditorRender(e.promptEditorType);
|
|
2456
2481
|
return () => n && n();
|
|
2457
2482
|
}
|
|
2458
|
-
function
|
|
2459
|
-
function n(
|
|
2460
|
-
if (
|
|
2483
|
+
function yo(e, t) {
|
|
2484
|
+
function n(b) {
|
|
2485
|
+
if (b == null)
|
|
2461
2486
|
return 0;
|
|
2462
|
-
let
|
|
2463
|
-
for (let
|
|
2464
|
-
const
|
|
2465
|
-
|
|
2466
|
-
}
|
|
2467
|
-
return
|
|
2468
|
-
}
|
|
2469
|
-
function a(
|
|
2470
|
-
if (
|
|
2471
|
-
|
|
2472
|
-
const
|
|
2473
|
-
let
|
|
2474
|
-
for (let
|
|
2475
|
-
const
|
|
2476
|
-
if (
|
|
2477
|
-
return
|
|
2487
|
+
let v = 0;
|
|
2488
|
+
for (let k = 0; k < b.length; k++) {
|
|
2489
|
+
const P = b.charCodeAt(k);
|
|
2490
|
+
P >= 0 && P <= 128 ? v++ : v = v + 2;
|
|
2491
|
+
}
|
|
2492
|
+
return v;
|
|
2493
|
+
}
|
|
2494
|
+
function a(b, v) {
|
|
2495
|
+
if (b !== "" && b !== void 0 && b !== null) {
|
|
2496
|
+
b = "" + b;
|
|
2497
|
+
const k = b.length;
|
|
2498
|
+
let P = "", E = 0;
|
|
2499
|
+
for (let y = 0; y < k; y++) {
|
|
2500
|
+
const L = b.charAt(y);
|
|
2501
|
+
if (E++, encodeURI(L).length > 4 && E++, P = P.concat(L), E >= v)
|
|
2502
|
+
return P = P.concat("..."), P;
|
|
2478
2503
|
}
|
|
2479
|
-
if (
|
|
2480
|
-
return
|
|
2504
|
+
if (E < v)
|
|
2505
|
+
return b;
|
|
2481
2506
|
}
|
|
2482
2507
|
return "";
|
|
2483
2508
|
}
|
|
2484
|
-
const o =
|
|
2485
|
-
const
|
|
2486
|
-
return `${t.exception.happend} : ${
|
|
2487
|
-
}),
|
|
2488
|
-
const
|
|
2489
|
-
return
|
|
2490
|
-
}),
|
|
2491
|
-
bottom:
|
|
2509
|
+
const o = p(() => !!e.value && !!e.value.date), u = p(() => {
|
|
2510
|
+
const b = e.value && e.value.date || "";
|
|
2511
|
+
return `${t.exception.happend} : ${b}`;
|
|
2512
|
+
}), r = p(() => !!e.value && !!e.value.detail), s = p(() => e.value ? n(e.value.detail) > 160 : !1), f = i(!1), g = p(() => f.value ? t.exception.collapse : t.exception.expand), m = p(() => {
|
|
2513
|
+
const b = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
2514
|
+
return f.value ? b : a(b, 160);
|
|
2515
|
+
}), C = p(() => ({
|
|
2516
|
+
bottom: f.value ? 0 : "2px"
|
|
2492
2517
|
}));
|
|
2493
|
-
function
|
|
2494
|
-
|
|
2518
|
+
function S() {
|
|
2519
|
+
f.value = !f.value;
|
|
2495
2520
|
}
|
|
2496
2521
|
return () => l("div", {
|
|
2497
2522
|
class: "toast-msg-detail",
|
|
2498
2523
|
style: "max-height: calc(100vh - 200px);overflow: auto;"
|
|
2499
|
-
}, [o.value && l("div", null, [
|
|
2524
|
+
}, [o.value && l("div", null, [u.value]), r.value && l("div", {
|
|
2500
2525
|
class: "exception_wrap"
|
|
2501
2526
|
}, [l("div", {
|
|
2502
2527
|
class: "exception_error_msg"
|
|
2503
2528
|
}, [l("div", {
|
|
2504
|
-
innerHTML:
|
|
2505
|
-
}, null),
|
|
2529
|
+
innerHTML: m.value
|
|
2530
|
+
}, null), s.value && l("span", {
|
|
2506
2531
|
class: "exception_toggle_detail",
|
|
2507
|
-
style:
|
|
2508
|
-
onClick:
|
|
2509
|
-
}, [
|
|
2532
|
+
style: C.value,
|
|
2533
|
+
onClick: S
|
|
2534
|
+
}, [g.value])])])]);
|
|
2510
2535
|
}
|
|
2511
|
-
function
|
|
2536
|
+
function Co(e) {
|
|
2512
2537
|
return () => l("p", {
|
|
2513
2538
|
class: "toast-msg-detail",
|
|
2514
2539
|
innerHTML: e.value,
|
|
2515
2540
|
style: "max-height: calc(100vh - 200px);overflow: auto;"
|
|
2516
2541
|
}, null);
|
|
2517
2542
|
}
|
|
2518
|
-
function
|
|
2519
|
-
const
|
|
2520
|
-
const
|
|
2543
|
+
function bo(e, t, n, a, o) {
|
|
2544
|
+
const u = i(e.exceptionInfo), r = p(() => {
|
|
2545
|
+
const v = t.value === "question" ? "warning" : t.value, k = {
|
|
2521
2546
|
"f-icon": !0
|
|
2522
|
-
},
|
|
2523
|
-
return
|
|
2524
|
-
}),
|
|
2525
|
-
function
|
|
2526
|
-
return
|
|
2547
|
+
}, P = `f-icon-${v}`;
|
|
2548
|
+
return k[P] = !0, k;
|
|
2549
|
+
}), s = p(() => n.value || u.value && u.value.message), f = p(() => a.value), g = p(() => !!a.value), m = p(() => !!u.value);
|
|
2550
|
+
function C() {
|
|
2551
|
+
return m.value ? yo(u, o) : g.value ? Co(f) : () => null;
|
|
2527
2552
|
}
|
|
2528
|
-
const
|
|
2553
|
+
const S = C(), b = p(() => o.locale === "en" ? {
|
|
2529
2554
|
wordBreak: "keep-all",
|
|
2530
2555
|
overflowWrap: "break-word"
|
|
2531
2556
|
} : {});
|
|
2532
|
-
return () => l(
|
|
2557
|
+
return () => l(de, null, [l("div", {
|
|
2533
2558
|
class: "float-left modal-tips-iconwrap"
|
|
2534
2559
|
}, [l("span", {
|
|
2535
|
-
class:
|
|
2560
|
+
class: r.value
|
|
2536
2561
|
}, null)]), l("div", {
|
|
2537
2562
|
class: "modal-tips-content"
|
|
2538
2563
|
}, [l("p", {
|
|
2539
2564
|
class: "toast-msg-title",
|
|
2540
|
-
innerHTML:
|
|
2541
|
-
style:
|
|
2542
|
-
}, null),
|
|
2565
|
+
innerHTML: s.value,
|
|
2566
|
+
style: b.value
|
|
2567
|
+
}, null), S()])]);
|
|
2543
2568
|
}
|
|
2544
|
-
function
|
|
2569
|
+
function wo(e, t, n, a) {
|
|
2545
2570
|
const {
|
|
2546
2571
|
onCopy: o
|
|
2547
2572
|
} = t, {
|
|
2548
|
-
toShowFeedback:
|
|
2549
|
-
} = n,
|
|
2573
|
+
toShowFeedback: u
|
|
2574
|
+
} = n, r = i(a.exception.copySuccess || "复制成功"), s = i(a.exception.copy || "复制详细信息"), f = i(e.exceptionInfo || {
|
|
2550
2575
|
date: "",
|
|
2551
2576
|
message: "",
|
|
2552
2577
|
detail: ""
|
|
2553
|
-
}),
|
|
2554
|
-
function
|
|
2555
|
-
o(
|
|
2556
|
-
|
|
2578
|
+
}), g = p(() => f.value && f.value.detail || "");
|
|
2579
|
+
function m(C) {
|
|
2580
|
+
o(g.value).catch((S) => {
|
|
2581
|
+
r.value = a.exception.copyFailed || "复制失败";
|
|
2557
2582
|
}).finally(() => {
|
|
2558
|
-
|
|
2559
|
-
|
|
2583
|
+
u.value = !0, setTimeout(() => {
|
|
2584
|
+
u.value = !1;
|
|
2560
2585
|
}, 700);
|
|
2561
2586
|
});
|
|
2562
2587
|
}
|
|
2563
2588
|
return () => l("span", {
|
|
2564
2589
|
class: "copy-exception-info"
|
|
2565
2590
|
}, [l("span", {
|
|
2566
|
-
onClick:
|
|
2591
|
+
onClick: m,
|
|
2567
2592
|
style: "cursor: pointer;"
|
|
2568
|
-
}, [
|
|
2593
|
+
}, [s.value])]);
|
|
2569
2594
|
}
|
|
2570
|
-
function
|
|
2571
|
-
const
|
|
2572
|
-
|
|
2573
|
-
function
|
|
2574
|
-
|
|
2595
|
+
function xo(e, t, n, a, o) {
|
|
2596
|
+
const u = i(e.type), r = i(e.buttons), s = i(e.exceptionInfo), f = i(o.ok || e.okButtonText), g = i(o.cancel || e.cancelButtonText), m = i(e.showCancelButton), C = i(e.showOkButton), S = p(() => !!(r.value && r.value.length)), b = p(() => !!(s.value && s.value.detail)), v = p(() => !(r.value && r.value.length) && (C.value || m.value)), k = wo(e, n, a, o);
|
|
2597
|
+
f.value === "关闭" ? f.value = o.close : f.value === "知道了" && (f.value = o.exception.roger);
|
|
2598
|
+
function P(y) {
|
|
2599
|
+
u.value === "question" && t.emit("reject"), t.emit("close");
|
|
2575
2600
|
}
|
|
2576
|
-
function
|
|
2577
|
-
|
|
2601
|
+
function E(y) {
|
|
2602
|
+
u.value === "question" && t.emit("accept"), t.emit("close");
|
|
2578
2603
|
}
|
|
2579
2604
|
return () => l("div", {
|
|
2580
2605
|
class: "modal-footer"
|
|
2581
|
-
}, [
|
|
2606
|
+
}, [b.value && k(), v.value && m.value && l("button", {
|
|
2582
2607
|
type: "button",
|
|
2583
2608
|
class: "btn btn-secondary btn-lg",
|
|
2584
|
-
onClick:
|
|
2585
|
-
}, [
|
|
2609
|
+
onClick: P
|
|
2610
|
+
}, [g.value]), v.value && C.value && l("button", {
|
|
2586
2611
|
type: "button",
|
|
2587
2612
|
class: "btn btn-primary btn-lg",
|
|
2588
|
-
onClick:
|
|
2589
|
-
}, [
|
|
2613
|
+
onClick: E
|
|
2614
|
+
}, [f.value]), S.value && r.value.length && r.value.map((y) => l("button", {
|
|
2590
2615
|
type: "button",
|
|
2591
|
-
onClick:
|
|
2592
|
-
class:
|
|
2593
|
-
}, [
|
|
2594
|
-
class:
|
|
2595
|
-
}, null),
|
|
2616
|
+
onClick: y.handle,
|
|
2617
|
+
class: y.class
|
|
2618
|
+
}, [y.iconClass && l("span", {
|
|
2619
|
+
class: y.iconClass
|
|
2620
|
+
}, null), y.text]))]);
|
|
2596
2621
|
}
|
|
2597
|
-
function
|
|
2598
|
-
const { getLocaleValue: t } =
|
|
2599
|
-
function a(o,
|
|
2600
|
-
return
|
|
2622
|
+
function Bo(e) {
|
|
2623
|
+
const { getLocaleValue: t } = be, n = be.getLocale();
|
|
2624
|
+
function a(o, u, r) {
|
|
2625
|
+
return u === r ? t(o) : u;
|
|
2601
2626
|
}
|
|
2602
2627
|
return {
|
|
2603
2628
|
yes: a("messageBox.yes") || "是",
|
|
@@ -2622,64 +2647,64 @@ function Co(e) {
|
|
|
2622
2647
|
}
|
|
2623
2648
|
const Qe = /* @__PURE__ */ Se({
|
|
2624
2649
|
name: "FMessageBox",
|
|
2625
|
-
props:
|
|
2650
|
+
props: io,
|
|
2626
2651
|
emits: ["accept", "reject", "close"],
|
|
2627
2652
|
setup(e, t) {
|
|
2628
|
-
const n =
|
|
2629
|
-
const
|
|
2653
|
+
const n = Bo(e), a = i(e.type), o = i(e.title), u = i(e.detail), r = p(() => {
|
|
2654
|
+
const E = {
|
|
2630
2655
|
"modal-tips": !0,
|
|
2631
2656
|
"d-flex": !0,
|
|
2632
2657
|
"flex-row": !0
|
|
2633
|
-
},
|
|
2634
|
-
return
|
|
2635
|
-
}),
|
|
2636
|
-
const
|
|
2658
|
+
}, y = `messager-type-${a.value}`;
|
|
2659
|
+
return E[y] = !0, E;
|
|
2660
|
+
}), s = p(() => {
|
|
2661
|
+
const E = {
|
|
2637
2662
|
cursor: "default"
|
|
2638
2663
|
};
|
|
2639
|
-
return a.value === "prompt" ?
|
|
2640
|
-
}),
|
|
2641
|
-
feedbackStyle:
|
|
2642
|
-
feedbackMessage:
|
|
2643
|
-
} =
|
|
2644
|
-
|
|
2645
|
-
function
|
|
2664
|
+
return a.value === "prompt" ? E.padding = "0.5rem 0.5rem 1rem 1.5rem" : a.value === "error" && (E.padding = "0.5rem 1.5rem 1rem 1.5rem"), E;
|
|
2665
|
+
}), f = vo(), g = ho(e, a, o, u), m = go(), {
|
|
2666
|
+
feedbackStyle: C,
|
|
2667
|
+
feedbackMessage: S
|
|
2668
|
+
} = m;
|
|
2669
|
+
S.value = n.exception.copySuccess;
|
|
2670
|
+
function b() {
|
|
2646
2671
|
return l("div", {
|
|
2647
|
-
style:
|
|
2648
|
-
}, [
|
|
2672
|
+
style: C.value
|
|
2673
|
+
}, [S.value]);
|
|
2649
2674
|
}
|
|
2650
|
-
function
|
|
2675
|
+
function v() {
|
|
2651
2676
|
switch (a.value) {
|
|
2652
2677
|
case "prompt":
|
|
2653
|
-
return
|
|
2678
|
+
return po(e, g);
|
|
2654
2679
|
default:
|
|
2655
|
-
return
|
|
2680
|
+
return bo(e, a, o, u, n);
|
|
2656
2681
|
}
|
|
2657
2682
|
}
|
|
2658
|
-
const
|
|
2683
|
+
const k = v(), P = xo(e, t, f, m, n);
|
|
2659
2684
|
return () => l("div", {
|
|
2660
2685
|
class: "farris-messager"
|
|
2661
2686
|
}, [!e.exceptionInfo && l("div", {
|
|
2662
2687
|
style: "height: 30px;width: 100%;position: absolute;",
|
|
2663
2688
|
class: "messager-draggable"
|
|
2664
2689
|
}, null), l("section", {
|
|
2665
|
-
class:
|
|
2666
|
-
style:
|
|
2667
|
-
}, [
|
|
2690
|
+
class: r.value,
|
|
2691
|
+
style: s.value
|
|
2692
|
+
}, [k()]), P(), b()]);
|
|
2668
2693
|
}
|
|
2669
2694
|
}), he = class he {
|
|
2670
2695
|
static show(t) {
|
|
2671
2696
|
const n = ge({
|
|
2672
2697
|
...t
|
|
2673
|
-
}), a = !1, o = n.type === "error" || n.type === "prompt",
|
|
2674
|
-
}),
|
|
2698
|
+
}), a = !1, o = n.type === "error" || n.type === "prompt", u = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", r = n.acceptCallback || (() => {
|
|
2699
|
+
}), s = n.rejectCallback || (() => {
|
|
2675
2700
|
});
|
|
2676
|
-
let
|
|
2677
|
-
const
|
|
2678
|
-
|
|
2701
|
+
let f = null, g = new It(he.app);
|
|
2702
|
+
const m = () => {
|
|
2703
|
+
f && (f == null || f.destroy(), g = null);
|
|
2679
2704
|
};
|
|
2680
|
-
return
|
|
2705
|
+
return f = g == null ? void 0 : g.open({
|
|
2681
2706
|
class: "modal-message modal-message-type-info",
|
|
2682
|
-
title:
|
|
2707
|
+
title: u,
|
|
2683
2708
|
showButtons: a,
|
|
2684
2709
|
showHeader: o,
|
|
2685
2710
|
width: n.width || 400,
|
|
@@ -2688,11 +2713,11 @@ const Qe = /* @__PURE__ */ Se({
|
|
|
2688
2713
|
draggable: !0,
|
|
2689
2714
|
dragHandle: ".messager-draggable",
|
|
2690
2715
|
render: () => l(Qe, tt(n, {
|
|
2691
|
-
onAccept:
|
|
2692
|
-
onReject:
|
|
2693
|
-
onClose:
|
|
2716
|
+
onAccept: r,
|
|
2717
|
+
onReject: s,
|
|
2718
|
+
onClose: m
|
|
2694
2719
|
}), null)
|
|
2695
|
-
}),
|
|
2720
|
+
}), g == null ? void 0 : g.getCurrentModal();
|
|
2696
2721
|
}
|
|
2697
2722
|
static info(t, n) {
|
|
2698
2723
|
const a = ge({
|
|
@@ -2749,7 +2774,7 @@ const Qe = /* @__PURE__ */ Se({
|
|
|
2749
2774
|
he.show(a);
|
|
2750
2775
|
}
|
|
2751
2776
|
static question(t, n, a, o) {
|
|
2752
|
-
const
|
|
2777
|
+
const u = ge({
|
|
2753
2778
|
type: "question",
|
|
2754
2779
|
title: t,
|
|
2755
2780
|
detail: n,
|
|
@@ -2758,7 +2783,7 @@ const Qe = /* @__PURE__ */ Se({
|
|
|
2758
2783
|
acceptCallback: a,
|
|
2759
2784
|
rejectCallback: o
|
|
2760
2785
|
});
|
|
2761
|
-
he.show(
|
|
2786
|
+
he.show(u);
|
|
2762
2787
|
}
|
|
2763
2788
|
};
|
|
2764
2789
|
me(he, "app", null);
|
|
@@ -2766,7 +2791,7 @@ let qe = he;
|
|
|
2766
2791
|
Qe.install = (e) => {
|
|
2767
2792
|
e.component(Qe.name, Qe), qe.app = e, e.provide("FMessageBoxService", qe);
|
|
2768
2793
|
};
|
|
2769
|
-
const
|
|
2794
|
+
const So = "https://json-schema.org/draft/2020-12/schema", To = "https://farris-design.gitee.io/mapping-editor.schema.json", Mo = "mapping-editor", ko = "A Farris Input Component", Fo = "object", Oo = {
|
|
2770
2795
|
fromData: {
|
|
2771
2796
|
type: "object",
|
|
2772
2797
|
default: null
|
|
@@ -2807,14 +2832,14 @@ const wo = "https://json-schema.org/draft/2020-12/schema", xo = "https://farris-
|
|
|
2807
2832
|
type: "object",
|
|
2808
2833
|
default: null
|
|
2809
2834
|
}
|
|
2810
|
-
},
|
|
2811
|
-
$schema:
|
|
2812
|
-
$id:
|
|
2813
|
-
title:
|
|
2814
|
-
description:
|
|
2815
|
-
type:
|
|
2816
|
-
properties:
|
|
2817
|
-
},
|
|
2835
|
+
}, Io = {
|
|
2836
|
+
$schema: So,
|
|
2837
|
+
$id: To,
|
|
2838
|
+
title: Mo,
|
|
2839
|
+
description: ko,
|
|
2840
|
+
type: Fo,
|
|
2841
|
+
properties: Oo
|
|
2842
|
+
}, Ht = {
|
|
2818
2843
|
fromData: { type: Object, default: {} },
|
|
2819
2844
|
toData: { type: Object, default: {} },
|
|
2820
2845
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2826,7 +2851,7 @@ const wo = "https://json-schema.org/draft/2020-12/schema", xo = "https://farris-
|
|
|
2826
2851
|
editorParams: { type: Object, default: null },
|
|
2827
2852
|
onMappingFieldsChanged: { type: Function, default: null },
|
|
2828
2853
|
beforeOpen: { type: Function }
|
|
2829
|
-
},
|
|
2854
|
+
}, Eo = Na(Ht, Io), Po = {
|
|
2830
2855
|
showCloseButton: { type: Boolean, default: !0 },
|
|
2831
2856
|
position: { type: String, default: "top-center" },
|
|
2832
2857
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -2839,139 +2864,139 @@ const wo = "https://json-schema.org/draft/2020-12/schema", xo = "https://farris-
|
|
|
2839
2864
|
animate: { type: String, default: "fadeIn" },
|
|
2840
2865
|
options: { type: Object },
|
|
2841
2866
|
safeHtml: { type: Boolean, default: !0 }
|
|
2842
|
-
},
|
|
2867
|
+
}, Ro = {
|
|
2843
2868
|
showCloseButton: { type: Boolean, default: !0 },
|
|
2844
2869
|
animate: { type: String, default: "fadeIn" },
|
|
2845
2870
|
options: { type: Object }
|
|
2846
|
-
},
|
|
2871
|
+
}, it = /* @__PURE__ */ Se({
|
|
2847
2872
|
name: "Toast",
|
|
2848
|
-
props:
|
|
2873
|
+
props: Ro,
|
|
2849
2874
|
emits: ["close", "click"],
|
|
2850
2875
|
setup: (e, t) => {
|
|
2851
|
-
const n =
|
|
2852
|
-
const
|
|
2853
|
-
animated:
|
|
2876
|
+
const n = i(e.animate), a = "fadeOut", o = p(() => e.options), u = i(!1), r = p(() => o.value.title && o.value.message), s = p(() => !o.value.title && o.value.message), f = p(() => {
|
|
2877
|
+
const y = {
|
|
2878
|
+
animated: u.value,
|
|
2854
2879
|
toast: !0,
|
|
2855
|
-
"toast--only-content": !
|
|
2880
|
+
"toast--only-content": !r.value
|
|
2856
2881
|
};
|
|
2857
|
-
return
|
|
2858
|
-
}),
|
|
2859
|
-
const
|
|
2882
|
+
return y[e.animate] = !1, y[a] = u.value, y["toasty-type-" + o.value.type] = !0, o.value.theme && (y[o.value.theme] = !0), y;
|
|
2883
|
+
}), g = p(() => {
|
|
2884
|
+
const _ = `f-icon-${o.value && o.value.type ? o.value.type.replace("toasty-type-", "") : "default"}`, H = {
|
|
2860
2885
|
"f-icon": !0
|
|
2861
2886
|
};
|
|
2862
|
-
return
|
|
2863
|
-
}),
|
|
2887
|
+
return H[_] = !0, H;
|
|
2888
|
+
}), m = p(() => o.value.title || o.value.message), C = p(() => e.showCloseButton), S = p(() => !!o.value.buttons || !!t.slots.default), b = p(() => be.getLocale() === "en" ? {
|
|
2864
2889
|
wordBreak: "keep-all",
|
|
2865
2890
|
overflowWrap: "break-word"
|
|
2866
2891
|
} : {});
|
|
2867
|
-
function
|
|
2868
|
-
|
|
2892
|
+
function v(y) {
|
|
2893
|
+
y.stopPropagation(), y.preventDefault(), u.value = !1, setTimeout(() => {
|
|
2869
2894
|
t.emit("close", o.value);
|
|
2870
2895
|
}, 200);
|
|
2871
2896
|
}
|
|
2872
|
-
function
|
|
2897
|
+
function k(y, L) {
|
|
2873
2898
|
}
|
|
2874
|
-
function
|
|
2875
|
-
return `f-preten-link ${
|
|
2899
|
+
function P(y) {
|
|
2900
|
+
return `f-preten-link ${y.customClass ? y.customClass : ""}`;
|
|
2876
2901
|
}
|
|
2877
|
-
|
|
2902
|
+
X(n, () => {
|
|
2878
2903
|
n.value;
|
|
2879
2904
|
});
|
|
2880
|
-
const
|
|
2881
|
-
var
|
|
2882
|
-
return l(
|
|
2905
|
+
const E = () => {
|
|
2906
|
+
var y;
|
|
2907
|
+
return l(de, null, [l("div", {
|
|
2883
2908
|
class: "after-toast-msg text-right"
|
|
2884
|
-
}, [!t.slots.default && ((
|
|
2885
|
-
class:
|
|
2886
|
-
onClick: (
|
|
2887
|
-
}, [
|
|
2909
|
+
}, [!t.slots.default && ((y = o.value.buttons) == null ? void 0 : y.map((L) => l("span", {
|
|
2910
|
+
class: P(L),
|
|
2911
|
+
onClick: (_) => void 0
|
|
2912
|
+
}, [L.text]))), t.slots.default && t.slots.default()])]);
|
|
2888
2913
|
};
|
|
2889
2914
|
return () => l("div", {
|
|
2890
|
-
class:
|
|
2915
|
+
class: f.value,
|
|
2891
2916
|
style: "min-height:44px"
|
|
2892
|
-
}, [
|
|
2893
|
-
title:
|
|
2917
|
+
}, [C.value && l("button", {
|
|
2918
|
+
title: be.getLocaleValue("messageBox.close"),
|
|
2894
2919
|
class: "toast-close f-btn-icon f-bare",
|
|
2895
|
-
onClick:
|
|
2920
|
+
onClick: v
|
|
2896
2921
|
}, [l("span", {
|
|
2897
2922
|
class: "f-icon modal_close"
|
|
2898
|
-
}, null)]),
|
|
2923
|
+
}, null)]), m.value && l("section", {
|
|
2899
2924
|
class: "modal-tips"
|
|
2900
|
-
}, [!
|
|
2925
|
+
}, [!r.value && l("div", {
|
|
2901
2926
|
class: "float-left modal-tips-iconwrap"
|
|
2902
2927
|
}, [l("span", {
|
|
2903
|
-
class:
|
|
2928
|
+
class: g.value
|
|
2904
2929
|
}, null)]), l("div", {
|
|
2905
2930
|
class: "modal-tips-content"
|
|
2906
|
-
}, [
|
|
2931
|
+
}, [r.value && l(de, null, [l("h5", {
|
|
2907
2932
|
class: "toast-title modal-tips-title",
|
|
2908
2933
|
innerHTML: o.value.title
|
|
2909
2934
|
}, null), l("p", {
|
|
2910
2935
|
class: "toast-msg",
|
|
2911
2936
|
innerHTML: o.value.message,
|
|
2912
|
-
style:
|
|
2913
|
-
}, null),
|
|
2937
|
+
style: b.value
|
|
2938
|
+
}, null), S.value && E()]), s.value && (o.value.buttons ? l("div", {
|
|
2914
2939
|
class: "toast-title-btns-wrapper d-flex"
|
|
2915
2940
|
}, [l("h5", {
|
|
2916
2941
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2917
|
-
style:
|
|
2942
|
+
style: b.value,
|
|
2918
2943
|
innerHTML: o.value.message
|
|
2919
2944
|
}, null), l("div", {
|
|
2920
2945
|
class: "after-toast-title text-right ml-auto"
|
|
2921
|
-
}, [
|
|
2946
|
+
}, [E()])]) : l("h5", {
|
|
2922
2947
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2923
|
-
style:
|
|
2948
|
+
style: b.value,
|
|
2924
2949
|
innerHTML: o.value.message
|
|
2925
2950
|
}, null))])])]);
|
|
2926
2951
|
}
|
|
2927
2952
|
}), et = /* @__PURE__ */ Se({
|
|
2928
2953
|
name: "Notify",
|
|
2929
|
-
props:
|
|
2954
|
+
props: Po,
|
|
2930
2955
|
emits: ["close", "empty"],
|
|
2931
2956
|
setup(e, t) {
|
|
2932
|
-
const n =
|
|
2957
|
+
const n = p(() => ({
|
|
2933
2958
|
"farris-notify": !0
|
|
2934
2959
|
})), a = {
|
|
2935
2960
|
left: 12,
|
|
2936
2961
|
right: 12,
|
|
2937
2962
|
top: 20,
|
|
2938
2963
|
bottom: 12
|
|
2939
|
-
}, o =
|
|
2940
|
-
const
|
|
2964
|
+
}, o = i(), u = i(e.options), r = i(e.showCloseButton), s = p(() => e.position || "bottom-right"), f = p(() => e.timeout != null ? e.timeout : 3e3), g = p(() => {
|
|
2965
|
+
const S = e.bottom ? e.bottom : a.bottom, b = e.top ? e.top : a.top, v = {
|
|
2941
2966
|
transition: "all 0.2s ease",
|
|
2942
|
-
left:
|
|
2943
|
-
right:
|
|
2944
|
-
top:
|
|
2945
|
-
bottom:
|
|
2967
|
+
left: s.value.indexOf("left") > -1 ? `${e.left ? e.left : a.left}px` : "",
|
|
2968
|
+
right: s.value.indexOf("right") > -1 ? `${e.right ? e.right : a.right}px` : "",
|
|
2969
|
+
top: s.value.indexOf("top") > -1 ? `${b}px` : "",
|
|
2970
|
+
bottom: s.value.indexOf("bottom") > -1 ? `${S}px` : ""
|
|
2946
2971
|
};
|
|
2947
|
-
return
|
|
2972
|
+
return s.value.indexOf("center") > -1 && (v.left = "50%", v.marginLeft = "calc(-24rem / 2)", s.value === "center-center" && (v.top = "50%", v.transform = "translate(-50%, -50%)")), v;
|
|
2948
2973
|
});
|
|
2949
|
-
function
|
|
2974
|
+
function m(S) {
|
|
2950
2975
|
t.emit("close");
|
|
2951
2976
|
}
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
},
|
|
2955
|
-
closeToast:
|
|
2977
|
+
f.value && setTimeout(() => {
|
|
2978
|
+
m();
|
|
2979
|
+
}, f.value), t.expose({
|
|
2980
|
+
closeToast: m,
|
|
2956
2981
|
container: o,
|
|
2957
|
-
notifyPosition:
|
|
2982
|
+
notifyPosition: s
|
|
2958
2983
|
});
|
|
2959
|
-
function
|
|
2960
|
-
|
|
2984
|
+
function C(S, b) {
|
|
2985
|
+
m();
|
|
2961
2986
|
}
|
|
2962
2987
|
return () => l("div", {
|
|
2963
2988
|
class: n.value,
|
|
2964
|
-
style:
|
|
2989
|
+
style: g.value,
|
|
2965
2990
|
ref: o
|
|
2966
|
-
}, [l(
|
|
2967
|
-
options:
|
|
2968
|
-
showCloseButton:
|
|
2991
|
+
}, [l(it, {
|
|
2992
|
+
options: u.value,
|
|
2993
|
+
showCloseButton: r.value,
|
|
2969
2994
|
animate: e.animate,
|
|
2970
|
-
onClose: (
|
|
2995
|
+
onClose: (S) => C(S, u.value)
|
|
2971
2996
|
}, null)]);
|
|
2972
2997
|
}
|
|
2973
2998
|
});
|
|
2974
|
-
class
|
|
2999
|
+
class Do {
|
|
2975
3000
|
constructor() {
|
|
2976
3001
|
me(this, "notifyRefs", []);
|
|
2977
3002
|
me(this, "globalConfig", ge({}));
|
|
@@ -2990,42 +3015,42 @@ class Eo {
|
|
|
2990
3015
|
safeHtml: !0
|
|
2991
3016
|
}, this.globalConfig, {
|
|
2992
3017
|
...t
|
|
2993
|
-
}),
|
|
2994
|
-
|
|
2995
|
-
const
|
|
3018
|
+
}), u = document.createElement("div");
|
|
3019
|
+
u.style.display = "contents";
|
|
3020
|
+
const r = ct({
|
|
2996
3021
|
setup() {
|
|
2997
|
-
var
|
|
2998
|
-
const
|
|
2999
|
-
function
|
|
3000
|
-
|
|
3001
|
-
n.updateNotifyPositionForClose(o,
|
|
3022
|
+
var g;
|
|
3023
|
+
const s = i();
|
|
3024
|
+
function f() {
|
|
3025
|
+
s.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
3026
|
+
n.updateNotifyPositionForClose(o, s), r.unmount();
|
|
3002
3027
|
}, 220);
|
|
3003
3028
|
}
|
|
3004
3029
|
if (o.position.indexOf("top") > -1) {
|
|
3005
|
-
const
|
|
3006
|
-
if (
|
|
3007
|
-
const
|
|
3008
|
-
o.top =
|
|
3030
|
+
const m = n.getNotifyInstances(o.position), C = m[m.length - 1];
|
|
3031
|
+
if (C) {
|
|
3032
|
+
const S = C.value.container.getBoundingClientRect();
|
|
3033
|
+
o.top = S.bottom;
|
|
3009
3034
|
}
|
|
3010
3035
|
}
|
|
3011
|
-
return o.safeHtml && ((
|
|
3012
|
-
document.body.removeChild(
|
|
3036
|
+
return o.safeHtml && ((g = o.options) != null && g.message) && (o.options.message = n.escapeAllHtml(o.options.message)), Xe(() => {
|
|
3037
|
+
document.body.removeChild(u);
|
|
3013
3038
|
}), ze(() => {
|
|
3014
|
-
n.updateNotifyPositionForCreate(o,
|
|
3015
|
-
}), () => l(
|
|
3039
|
+
n.updateNotifyPositionForCreate(o, s);
|
|
3040
|
+
}), () => l(Tt, {
|
|
3016
3041
|
mode: "out-in",
|
|
3017
3042
|
name: "fade",
|
|
3018
3043
|
appear: !0
|
|
3019
3044
|
}, {
|
|
3020
3045
|
default: () => [l(et, tt({
|
|
3021
|
-
ref:
|
|
3046
|
+
ref: s
|
|
3022
3047
|
}, o, {
|
|
3023
|
-
onClose:
|
|
3048
|
+
onClose: f
|
|
3024
3049
|
}), null)]
|
|
3025
3050
|
});
|
|
3026
3051
|
}
|
|
3027
3052
|
});
|
|
3028
|
-
return
|
|
3053
|
+
return r.provide("NotifyService", this), document.body.appendChild(u), r.use(be.i18n), r.mount(u), r;
|
|
3029
3054
|
}
|
|
3030
3055
|
getNotifyInstances(t) {
|
|
3031
3056
|
return this.notifyRefs.filter((n) => n.value.notifyPosition === t);
|
|
@@ -3034,8 +3059,8 @@ class Eo {
|
|
|
3034
3059
|
if (this.notifyRefs && this.notifyRefs.length) {
|
|
3035
3060
|
const a = window.innerHeight;
|
|
3036
3061
|
t.position.indexOf("bottom") > -1 && this.getNotifyInstances(t.position).forEach((o) => {
|
|
3037
|
-
const
|
|
3038
|
-
o.value.container.style.bottom =
|
|
3062
|
+
const u = o.value.container.getBoundingClientRect();
|
|
3063
|
+
o.value.container.style.bottom = u.height + a - u.bottom + "px";
|
|
3039
3064
|
});
|
|
3040
3065
|
}
|
|
3041
3066
|
this.notifyRefs = [...this.notifyRefs, n];
|
|
@@ -3043,9 +3068,9 @@ class Eo {
|
|
|
3043
3068
|
updateNotifyPositionForClose(t, n) {
|
|
3044
3069
|
const a = this.notifyRefs.indexOf(n);
|
|
3045
3070
|
if (t.position.indexOf("top") > -1) {
|
|
3046
|
-
const o = this.getNotifyInstances(t.position),
|
|
3047
|
-
o.slice(
|
|
3048
|
-
|
|
3071
|
+
const o = this.getNotifyInstances(t.position), u = o.indexOf(n);
|
|
3072
|
+
o.slice(u + 1).forEach((r) => {
|
|
3073
|
+
r.value.container.style.top = r.value.container.offsetTop - r.value.container.offsetHeight + "px";
|
|
3049
3074
|
});
|
|
3050
3075
|
}
|
|
3051
3076
|
a > -1 && this.notifyRefs.splice(a, 1);
|
|
@@ -3054,16 +3079,16 @@ class Eo {
|
|
|
3054
3079
|
return this.createNotifyInstance(t);
|
|
3055
3080
|
}
|
|
3056
3081
|
buildNotifyProps(t, n) {
|
|
3057
|
-
let a = "", o = "",
|
|
3058
|
-
typeof n == "string" ? a = n : n && (a = n.message || "", o = n.title || "",
|
|
3059
|
-
const
|
|
3082
|
+
let a = "", o = "", u, r, s;
|
|
3083
|
+
typeof n == "string" ? a = n : n && (a = n.message || "", o = n.title || "", r = n.position || null, s = n.showCloseButton != null ? n.showCloseButton : null, u = n.timeout != null ? n.timeout : null);
|
|
3084
|
+
const g = {
|
|
3060
3085
|
options: {
|
|
3061
3086
|
type: t,
|
|
3062
3087
|
message: a,
|
|
3063
3088
|
title: o
|
|
3064
3089
|
}
|
|
3065
3090
|
};
|
|
3066
|
-
return
|
|
3091
|
+
return r != null && (g.position = r), s != null && (g.showCloseButton = s), u != null && (g.timeout = u), g;
|
|
3067
3092
|
}
|
|
3068
3093
|
info(t) {
|
|
3069
3094
|
const n = this.buildNotifyProps("info", t);
|
|
@@ -3090,34 +3115,34 @@ class Eo {
|
|
|
3090
3115
|
}), this.notifyRefs.length = 0;
|
|
3091
3116
|
}
|
|
3092
3117
|
}
|
|
3093
|
-
const
|
|
3118
|
+
const jt = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
3094
3119
|
et.install = (e) => {
|
|
3095
|
-
e.component(et.name, et), e.component(
|
|
3096
|
-
const t = new
|
|
3097
|
-
e.provide(
|
|
3120
|
+
e.component(et.name, et), e.component(it.name, it);
|
|
3121
|
+
const t = new Do();
|
|
3122
|
+
e.provide(jt, t), e.provide("FNotifyService", t);
|
|
3098
3123
|
};
|
|
3099
|
-
function
|
|
3124
|
+
function rt(e) {
|
|
3100
3125
|
return e.reduce((t, n) => {
|
|
3101
3126
|
var a;
|
|
3102
|
-
return t.push(n.data), (a = n.children) != null && a.length && t.push(...
|
|
3127
|
+
return t.push(n.data), (a = n.children) != null && a.length && t.push(...rt(n.children)), t;
|
|
3103
3128
|
}, []);
|
|
3104
3129
|
}
|
|
3105
3130
|
const st = /* @__PURE__ */ Se({
|
|
3106
3131
|
name: "FMappingEditor",
|
|
3107
|
-
props:
|
|
3132
|
+
props: Ht,
|
|
3108
3133
|
emits: ["submitModal", "update:modelValue"],
|
|
3109
3134
|
setup(e, t) {
|
|
3110
|
-
const n = '<i class="f-icon f-icon-lookup"></i>', a =
|
|
3111
|
-
var
|
|
3112
|
-
const
|
|
3113
|
-
return
|
|
3114
|
-
},
|
|
3135
|
+
const n = '<i class="f-icon f-icon-lookup"></i>', a = i(), o = i(e.modelValue || {}), u = i([]), r = i(e.fromData.dataSource || []), s = i([]), f = e.fromData.repositoryToken ? Ze(e.fromData.repositoryToken) : null, g = e.toData.repositoryToken ? Ze(e.toData.repositoryToken) : null, m = Ze(jt), C = (M) => ((M.raw.$type !== "SimpleField" || M.raw.selectable === !1) && (M.disabled = !0), M), S = p(() => rt(r.value)), b = p(() => rt(s.value)), v = (M, d, B, j) => {
|
|
3136
|
+
var J, ae;
|
|
3137
|
+
const I = ((J = M.value.find((pe) => pe[j] === d)) == null ? void 0 : J[B || "name"]) || "", A = ((ae = M.value.find((pe) => pe[j] === d)) == null ? void 0 : ae[j || "code"]) || "";
|
|
3138
|
+
return I && A ? `${I}[${A}]` : "";
|
|
3139
|
+
}, k = [{
|
|
3115
3140
|
field: "sourceField",
|
|
3116
3141
|
title: "数据源字段",
|
|
3117
3142
|
dataType: "string",
|
|
3118
3143
|
editor: {
|
|
3119
3144
|
type: "combo-tree",
|
|
3120
|
-
data:
|
|
3145
|
+
data: r.value,
|
|
3121
3146
|
idField: e.fromData.idField || "id",
|
|
3122
3147
|
textField: e.fromData.textField || "name",
|
|
3123
3148
|
valueField: e.fromData.valueField || "id",
|
|
@@ -3125,17 +3150,17 @@ const st = /* @__PURE__ */ Se({
|
|
|
3125
3150
|
editorParams: e.fromData.editorParams,
|
|
3126
3151
|
editable: e.fromData.editable || !1,
|
|
3127
3152
|
searchFields: e.fromData.searchFields || [],
|
|
3128
|
-
customRowStatus:
|
|
3153
|
+
customRowStatus: C,
|
|
3129
3154
|
displayFormatter: e.fromData.displayFormatter
|
|
3130
3155
|
},
|
|
3131
|
-
formatter: (M, d) =>
|
|
3156
|
+
formatter: (M, d) => v(S, d.raw.sourceField, e.fromData.textField, e.fromData.valueField)
|
|
3132
3157
|
}, {
|
|
3133
3158
|
field: "targetField",
|
|
3134
3159
|
title: "目标字段",
|
|
3135
3160
|
dataType: "string",
|
|
3136
3161
|
editor: {
|
|
3137
3162
|
type: "combo-tree",
|
|
3138
|
-
data:
|
|
3163
|
+
data: s.value,
|
|
3139
3164
|
idField: e.toData.idField || "id",
|
|
3140
3165
|
textField: e.toData.textField || "name",
|
|
3141
3166
|
valueField: e.toData.valueField || "id",
|
|
@@ -3145,70 +3170,70 @@ const st = /* @__PURE__ */ Se({
|
|
|
3145
3170
|
enableSearch: !0,
|
|
3146
3171
|
editable: !1,
|
|
3147
3172
|
searchFields: e.toData.searchFields || [],
|
|
3148
|
-
customRowStatus:
|
|
3173
|
+
customRowStatus: C,
|
|
3149
3174
|
displayFormatter: e.toData.displayFormatter
|
|
3150
3175
|
},
|
|
3151
|
-
formatter: (M, d) => d.raw.targetField ? (d.raw.targetField.indexOf(",") > -1 ? d.raw.targetField.split(",") : [d.raw.targetField]).map((
|
|
3176
|
+
formatter: (M, d) => d.raw.targetField ? (d.raw.targetField.indexOf(",") > -1 ? d.raw.targetField.split(",") : [d.raw.targetField]).map((j) => v(b, j, e.toData.textField, e.toData.valueField)).join(",") : ""
|
|
3152
3177
|
}];
|
|
3153
|
-
function
|
|
3178
|
+
function P() {
|
|
3154
3179
|
return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
|
3155
3180
|
}
|
|
3156
|
-
function
|
|
3181
|
+
function E() {
|
|
3157
3182
|
let M = o.value || {};
|
|
3158
3183
|
return typeof M == "string" && (M = JSON.parse(M)), Object.keys(M).map((d) => ({
|
|
3159
|
-
id:
|
|
3184
|
+
id: P(),
|
|
3160
3185
|
sourceField: d,
|
|
3161
3186
|
targetField: M[d]
|
|
3162
3187
|
}));
|
|
3163
3188
|
}
|
|
3164
|
-
const
|
|
3189
|
+
const y = i(E()), L = p(() => {
|
|
3165
3190
|
var M;
|
|
3166
|
-
return `共 ${((M =
|
|
3191
|
+
return `共 ${((M = y.value) == null ? void 0 : M.length) || 0} 项`;
|
|
3167
3192
|
});
|
|
3168
|
-
function
|
|
3193
|
+
function _() {
|
|
3169
3194
|
a.value.endEditCell(), a.value.addNewDataItemAtLast();
|
|
3170
3195
|
}
|
|
3171
|
-
function
|
|
3196
|
+
function H() {
|
|
3172
3197
|
return {
|
|
3173
3198
|
sourceField: "",
|
|
3174
3199
|
targetField: "",
|
|
3175
|
-
id:
|
|
3200
|
+
id: P()
|
|
3176
3201
|
};
|
|
3177
3202
|
}
|
|
3178
|
-
function
|
|
3179
|
-
if (!
|
|
3180
|
-
|
|
3203
|
+
function F() {
|
|
3204
|
+
if (!u.value.length) {
|
|
3205
|
+
m.warning("请选择要删除的映射字段!");
|
|
3181
3206
|
return;
|
|
3182
3207
|
}
|
|
3183
3208
|
a.value.endEditCell();
|
|
3184
|
-
const M =
|
|
3209
|
+
const M = y.value.findIndex((A) => A.id === u.value[0].id);
|
|
3185
3210
|
if (M === -1)
|
|
3186
3211
|
return;
|
|
3187
|
-
const d =
|
|
3188
|
-
if (a.value.removeDataItemById(d),
|
|
3212
|
+
const d = u.value[0].id;
|
|
3213
|
+
if (a.value.removeDataItemById(d), u.value = [], !y.value.length)
|
|
3189
3214
|
return;
|
|
3190
|
-
const
|
|
3191
|
-
|
|
3215
|
+
const B = Math.min(M, y.value.length - 1), j = y.value[B], I = j == null ? void 0 : j.id;
|
|
3216
|
+
I && (a.value.selectItemById(I), u.value = [j]);
|
|
3192
3217
|
}
|
|
3193
|
-
function
|
|
3218
|
+
function w() {
|
|
3194
3219
|
qe.question("确定要清空所有映射字段吗?", "", () => {
|
|
3195
|
-
|
|
3220
|
+
u.value = [], o.value = {}, y.value = [], a.value.updateDataSource(y.value);
|
|
3196
3221
|
}, () => {
|
|
3197
3222
|
});
|
|
3198
3223
|
}
|
|
3199
|
-
function
|
|
3224
|
+
function D() {
|
|
3200
3225
|
const M = {};
|
|
3201
|
-
return
|
|
3226
|
+
return y.value.forEach((d) => {
|
|
3202
3227
|
d.sourceField && d.targetField && (M[d.sourceField] = d.targetField);
|
|
3203
3228
|
}), M;
|
|
3204
3229
|
}
|
|
3205
|
-
|
|
3206
|
-
o.value = M,
|
|
3230
|
+
X(() => e.modelValue, (M) => {
|
|
3231
|
+
o.value = M, y.value = E();
|
|
3207
3232
|
});
|
|
3208
|
-
function
|
|
3209
|
-
return
|
|
3233
|
+
function V() {
|
|
3234
|
+
return y.value.filter((d) => !d.sourceField || !d.targetField).length;
|
|
3210
3235
|
}
|
|
3211
|
-
const
|
|
3236
|
+
const Y = {
|
|
3212
3237
|
title: e.title,
|
|
3213
3238
|
fitContent: !1,
|
|
3214
3239
|
height: e.modalHeight,
|
|
@@ -3226,62 +3251,62 @@ const st = /* @__PURE__ */ Se({
|
|
|
3226
3251
|
text: "确定",
|
|
3227
3252
|
class: "btn btn-primary",
|
|
3228
3253
|
handle: (M) => {
|
|
3229
|
-
if (a.value.endEditCell(),
|
|
3230
|
-
return
|
|
3231
|
-
const d =
|
|
3254
|
+
if (a.value.endEditCell(), V())
|
|
3255
|
+
return m.warning("请将映射字段填写完整!"), !1;
|
|
3256
|
+
const d = D();
|
|
3232
3257
|
return o.value = d, t.emit("submitModal", d), t.emit("update:modelValue", d), e.onMappingFieldsChanged && typeof e.onMappingFieldsChanged == "function" && e.onMappingFieldsChanged(JSON.stringify(d)), !0;
|
|
3233
3258
|
}
|
|
3234
3259
|
}],
|
|
3235
3260
|
resizeable: !0,
|
|
3236
3261
|
draggable: !0,
|
|
3237
3262
|
closedCallback: (M, d) => {
|
|
3238
|
-
(M.target.name === "cancel" || d === "icon" || d === "esc") && (o.value = e.modelValue,
|
|
3263
|
+
(M.target.name === "cancel" || d === "icon" || d === "esc") && (o.value = e.modelValue, y.value = E(), u.value = []);
|
|
3239
3264
|
}
|
|
3240
3265
|
};
|
|
3241
|
-
function
|
|
3242
|
-
|
|
3266
|
+
function T(M) {
|
|
3267
|
+
u.value = M;
|
|
3243
3268
|
}
|
|
3244
3269
|
function G() {
|
|
3245
|
-
var
|
|
3270
|
+
var I, A;
|
|
3246
3271
|
if (e.beforeOpen && typeof e.beforeOpen == "function")
|
|
3247
3272
|
return e.beforeOpen({
|
|
3248
|
-
fromDataSource:
|
|
3249
|
-
toDataSource:
|
|
3250
|
-
gridColumns:
|
|
3273
|
+
fromDataSource: r,
|
|
3274
|
+
toDataSource: s,
|
|
3275
|
+
gridColumns: k
|
|
3251
3276
|
});
|
|
3252
|
-
if (!((A = (
|
|
3253
|
-
return
|
|
3277
|
+
if (!((A = (I = e.editorParams) == null ? void 0 : I.propertyData) == null ? void 0 : A.helpId))
|
|
3278
|
+
return m == null || m.warning({
|
|
3254
3279
|
message: "请先配置数据源!",
|
|
3255
3280
|
position: "top-center"
|
|
3256
3281
|
}), !1;
|
|
3257
|
-
const d = [],
|
|
3258
|
-
d.push(
|
|
3259
|
-
const
|
|
3260
|
-
return d.push(
|
|
3282
|
+
const d = [], B = f ? f.getData(e.editorParams) : Promise.resolve(r.value);
|
|
3283
|
+
d.push(B), typeof e.toData.dataSource == "function" ? s.value = e.toData.dataSource() : s.value = e.toData.dataSource;
|
|
3284
|
+
const j = g ? g.getData(e.editorParams) : Promise.resolve(s.value);
|
|
3285
|
+
return d.push(j), Promise.all(d).then(([J, ae]) => (r.value = J, s.value = ae, k[0].editor.data = J, k[1].editor.data = ae, !0));
|
|
3261
3286
|
}
|
|
3262
3287
|
function se(M, d) {
|
|
3263
|
-
M.forEach((
|
|
3264
|
-
|
|
3288
|
+
M.forEach((B) => {
|
|
3289
|
+
B.selectable = !d.includes(B.data.bindingPath), B.children && se(B.children, d);
|
|
3265
3290
|
});
|
|
3266
3291
|
}
|
|
3267
|
-
function
|
|
3292
|
+
function te(M) {
|
|
3268
3293
|
const {
|
|
3269
3294
|
column: d,
|
|
3270
|
-
rawData:
|
|
3295
|
+
rawData: B
|
|
3271
3296
|
} = M, {
|
|
3272
|
-
field:
|
|
3273
|
-
editor:
|
|
3297
|
+
field: j,
|
|
3298
|
+
editor: I
|
|
3274
3299
|
} = d;
|
|
3275
|
-
if (
|
|
3276
|
-
const A =
|
|
3277
|
-
se(
|
|
3300
|
+
if (j === "sourceField" && I) {
|
|
3301
|
+
const A = y.value.filter((J) => J.sourceField !== B.sourceField).map((J) => J.sourceField);
|
|
3302
|
+
se(r.value, A), I.data = Gn(r.value);
|
|
3278
3303
|
}
|
|
3279
3304
|
return !0;
|
|
3280
3305
|
}
|
|
3281
|
-
const
|
|
3282
|
-
return () => l(
|
|
3283
|
-
modelValue:
|
|
3284
|
-
"onUpdate:modelValue": (M) =>
|
|
3306
|
+
const oe = p(() => u.value.length > 0), W = p(() => y.value.length > 0);
|
|
3307
|
+
return () => l(Rt, {
|
|
3308
|
+
modelValue: L.value,
|
|
3309
|
+
"onUpdate:modelValue": (M) => L.value = M,
|
|
3285
3310
|
editable: !1,
|
|
3286
3311
|
disabled: e.disabled,
|
|
3287
3312
|
readonly: e.readonly,
|
|
@@ -3289,7 +3314,7 @@ const st = /* @__PURE__ */ Se({
|
|
|
3289
3314
|
enableClear: !1,
|
|
3290
3315
|
buttonContent: n,
|
|
3291
3316
|
buttonBehavior: "Modal",
|
|
3292
|
-
modalOptions:
|
|
3317
|
+
modalOptions: Y,
|
|
3293
3318
|
beforeOpen: G
|
|
3294
3319
|
}, {
|
|
3295
3320
|
default: () => [l("div", {
|
|
@@ -3298,18 +3323,18 @@ const st = /* @__PURE__ */ Se({
|
|
|
3298
3323
|
class: "px-2"
|
|
3299
3324
|
}, [l("button", {
|
|
3300
3325
|
class: "btn btn-primary",
|
|
3301
|
-
onClick:
|
|
3326
|
+
onClick: _
|
|
3302
3327
|
}, [Be("新增")]), l("button", {
|
|
3303
3328
|
class: "btn btn-secondary ml-2",
|
|
3304
|
-
disabled: !
|
|
3305
|
-
onClick:
|
|
3329
|
+
disabled: !oe.value,
|
|
3330
|
+
onClick: F
|
|
3306
3331
|
}, [Be("删除")]), l("button", {
|
|
3307
3332
|
class: "btn btn-secondary ml-3",
|
|
3308
|
-
disabled: !
|
|
3309
|
-
onClick:
|
|
3333
|
+
disabled: !W.value,
|
|
3334
|
+
onClick: w
|
|
3310
3335
|
}, [Be("清空")])]), l("div", {
|
|
3311
3336
|
class: " f-utils-fill p-2"
|
|
3312
|
-
}, [l(
|
|
3337
|
+
}, [l(Dt, {
|
|
3313
3338
|
ref: a,
|
|
3314
3339
|
pagination: {
|
|
3315
3340
|
enable: !1
|
|
@@ -3327,25 +3352,25 @@ const st = /* @__PURE__ */ Se({
|
|
|
3327
3352
|
showBorder: !0,
|
|
3328
3353
|
editable: "true",
|
|
3329
3354
|
fit: !0,
|
|
3330
|
-
columns:
|
|
3331
|
-
data:
|
|
3332
|
-
newDataItem:
|
|
3333
|
-
onSelectionChange:
|
|
3334
|
-
beforeEditCell:
|
|
3355
|
+
columns: k,
|
|
3356
|
+
data: y.value,
|
|
3357
|
+
newDataItem: H,
|
|
3358
|
+
onSelectionChange: T,
|
|
3359
|
+
beforeEditCell: te
|
|
3335
3360
|
}, null)])])]
|
|
3336
3361
|
});
|
|
3337
3362
|
}
|
|
3338
|
-
}),
|
|
3363
|
+
}), qo = {
|
|
3339
3364
|
install(e) {
|
|
3340
3365
|
e.component(st.name, st);
|
|
3341
3366
|
},
|
|
3342
3367
|
register(e, t, n, a) {
|
|
3343
|
-
e["mapping-editor"] = st, t["mapping-editor"] =
|
|
3368
|
+
e["mapping-editor"] = st, t["mapping-editor"] = Eo;
|
|
3344
3369
|
}
|
|
3345
3370
|
};
|
|
3346
3371
|
export {
|
|
3347
3372
|
st as MappingEditor,
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3373
|
+
qo as default,
|
|
3374
|
+
Ht as mappingEditorProps,
|
|
3375
|
+
Eo as propsResolver
|
|
3351
3376
|
};
|