@farris/ui-vue 1.7.0-beta.4 → 1.7.0
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 +61 -312
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +56 -1481
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +8 -752
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +358 -351
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +110 -266
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +1371 -1284
- package/components/calendar/index.umd.cjs +30 -30
- package/components/code-editor/index.esm.js +169 -237
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +382 -351
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +502 -812
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +197 -183
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +199 -364
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +1501 -1465
- package/components/comment/index.umd.cjs +6 -6
- package/components/common/index.esm.js +136 -100
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.css +1 -1
- package/components/component/index.esm.js +2662 -3647
- package/components/component/index.umd.cjs +1 -8
- package/components/condition/index.esm.js +492 -2449
- package/components/condition/index.umd.cjs +1 -8
- package/components/content-container/index.esm.js +252 -241
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +505 -409
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3326 -3258
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1709 -1634
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +2693 -3021
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +102 -98
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +409 -358
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +124 -373
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +760 -573
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +354 -327
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +413 -359
- 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.css +1 -1
- package/components/events-editor/index.esm.js +1535 -1941
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +2 -7317
- package/components/expression-editor/index.umd.cjs +1 -427
- package/components/field-selector/index.esm.js +13 -13
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/fieldset/index.esm.js +140 -123
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1021 -1012
- 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 +448 -9000
- package/components/filter-condition-editor/index.umd.cjs +1 -427
- package/components/html-template/index.esm.js +167 -147
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image/index.esm.js +372 -352
- package/components/image/index.umd.cjs +2 -2
- package/components/image-cropper/index.esm.js +361 -615
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +247 -325
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +835 -421
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +163 -549
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +39 -836
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +690 -474
- package/components/list-view/index.umd.cjs +6 -8
- package/components/loading/index.esm.js +128 -97
- package/components/loading/index.umd.cjs +2 -2
- package/components/locale/index.esm.js +361 -340
- package/components/locale/index.umd.cjs +5 -5
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +3396 -3368
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +1684 -1584
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +586 -609
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +357 -353
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +325 -318
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +31 -311
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +189 -1633
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +195 -175
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +761 -1057
- package/components/order/index.umd.cjs +7 -9
- package/components/page-footer/index.esm.js +48 -331
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +92 -73
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +195 -472
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +77 -76
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +148 -353
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +74 -68
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +872 -1800
- package/components/property-panel/index.umd.cjs +5 -12
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +4223 -6205
- package/components/query-solution/index.umd.cjs +6 -13
- package/components/response-layout/index.esm.js +206 -170
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1 -1
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +378 -359
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2491 -2653
- package/components/schema-selector/index.umd.cjs +8 -10
- package/components/search-box/index.esm.js +79 -240
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +304 -289
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +8 -179
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +4 -9421
- package/components/sort-condition-editor/index.umd.cjs +1 -427
- package/components/splitter/index.esm.js +142 -1171
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +48 -47
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +460 -513
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +73 -217
- package/components/text/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +380 -375
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +40 -40
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +551 -771
- package/components/transfer/index.umd.cjs +6 -8
- package/components/tree-grid/index.esm.js +250 -235
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +157 -314
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +634 -1125
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +106 -359
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +89 -222
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +199 -290
- package/components/weather/index.umd.cjs +1 -1
- package/designer/accordion/index.esm.js +257 -0
- package/designer/accordion/index.umd.cjs +1 -0
- package/designer/avatar/index.esm.js +227 -0
- package/designer/avatar/index.umd.cjs +1 -0
- package/designer/binding-selector/index.esm.js +792 -0
- package/designer/binding-selector/index.umd.cjs +1 -0
- package/designer/button-edit/index.esm.js +210 -203
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/button-group/index.esm.js +282 -0
- package/designer/button-group/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +51 -45
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +89 -83
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/code-editor/index.esm.js +75 -0
- package/designer/code-editor/index.umd.cjs +1 -0
- package/designer/color-picker/index.esm.js +1096 -0
- package/designer/color-picker/index.umd.cjs +1 -0
- package/designer/combo-list/index.esm.js +1095 -0
- package/designer/combo-list/index.umd.cjs +1 -0
- package/designer/combo-tree/index.esm.js +186 -0
- package/designer/combo-tree/index.umd.cjs +1 -0
- package/designer/component/index.css +1 -0
- package/designer/component/index.esm.js +5002 -0
- package/designer/component/index.umd.cjs +1 -0
- package/designer/condition/index.esm.js +1899 -0
- package/designer/condition/index.umd.cjs +1 -0
- package/designer/data-grid/index.esm.js +5580 -6213
- package/designer/data-grid/index.umd.cjs +10 -17
- package/designer/data-view/index.esm.js +212 -191
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/date-picker/index.esm.js +621 -607
- package/designer/date-picker/index.umd.cjs +1 -1
- package/designer/drawer/index.css +1 -1
- package/designer/drawer/index.esm.js +869 -620
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dropdown/index.esm.js +261 -0
- package/designer/dropdown/index.umd.cjs +1 -0
- package/designer/dynamic-form/index.esm.js +1166 -1384
- package/designer/dynamic-form/index.umd.cjs +1 -8
- package/designer/expression-editor/index.css +1 -0
- package/designer/expression-editor/index.esm.js +7006 -0
- package/designer/expression-editor/index.umd.cjs +427 -0
- package/designer/farris-designer.all.esm.js +10309 -10617
- package/designer/farris-designer.all.umd.cjs +17 -19
- package/designer/filter-condition-editor/index.css +1 -0
- package/designer/filter-condition-editor/index.esm.js +4795 -0
- package/designer/filter-condition-editor/index.umd.cjs +1 -0
- package/designer/html-template/index.esm.js +718 -0
- package/designer/html-template/index.umd.cjs +1 -0
- package/designer/image-cropper/index.esm.js +765 -0
- package/designer/image-cropper/index.umd.cjs +1 -0
- package/designer/index.css +1 -1
- package/designer/input-group/index.esm.js +72 -66
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/json-editor/index.esm.js +83 -0
- package/designer/json-editor/index.umd.cjs +1 -0
- package/designer/language-textbox/index.esm.js +783 -0
- package/designer/language-textbox/index.umd.cjs +8 -0
- package/designer/layout/index.esm.js +430 -0
- package/designer/layout/index.umd.cjs +1 -0
- package/designer/list-nav/index.esm.js +802 -0
- package/designer/list-nav/index.umd.cjs +1 -0
- package/designer/list-view/index.esm.js +864 -844
- package/designer/list-view/index.umd.cjs +7 -9
- package/designer/lookup/index.esm.js +2083 -0
- package/designer/lookup/index.umd.cjs +1 -0
- package/designer/menu-lookup/index.esm.js +46 -0
- package/designer/menu-lookup/index.umd.cjs +1 -0
- package/designer/modal/index.esm.js +137 -29
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/nav/index.esm.js +284 -0
- package/designer/nav/index.umd.cjs +1 -0
- package/designer/number-range/index.esm.js +1616 -0
- package/designer/number-range/index.umd.cjs +1 -0
- package/designer/number-spinner/index.esm.js +19 -17
- package/designer/number-spinner/index.umd.cjs +1 -1
- package/designer/order/index.css +1 -0
- package/designer/order/index.esm.js +2196 -0
- package/designer/order/index.umd.cjs +18 -0
- package/designer/page-footer/index.esm.js +290 -0
- package/designer/page-footer/index.umd.cjs +1 -0
- package/designer/page-header/index.esm.js +1003 -0
- package/designer/page-header/index.umd.cjs +1 -0
- package/designer/pagination/index.esm.js +591 -0
- package/designer/pagination/index.umd.cjs +1 -0
- package/designer/progress/index.esm.js +213 -0
- package/designer/progress/index.umd.cjs +1 -0
- package/designer/radio-group/index.esm.js +978 -949
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +1 -1
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +1471 -1416
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/search-box/index.esm.js +245 -0
- package/designer/search-box/index.umd.cjs +1 -0
- package/designer/section/index.esm.js +83 -78
- package/designer/section/index.umd.cjs +1 -1
- package/designer/smoke-detector/index.css +1 -0
- package/designer/smoke-detector/index.esm.js +178 -0
- package/designer/smoke-detector/index.umd.cjs +1 -0
- package/designer/sort-condition-editor/index.esm.js +138 -0
- package/designer/sort-condition-editor/index.umd.cjs +1 -0
- package/designer/splitter/index.esm.js +1120 -0
- package/designer/splitter/index.umd.cjs +1 -0
- package/designer/step/index.esm.js +226 -0
- package/designer/step/index.umd.cjs +1 -0
- package/designer/switch/index.esm.js +10 -10
- package/designer/switch/index.umd.cjs +1 -1
- package/designer/tabs/index.css +1 -1
- package/designer/tabs/index.esm.js +2447 -2698
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/text/index.esm.js +147 -0
- package/designer/text/index.umd.cjs +1 -0
- package/designer/time-picker/index.esm.js +101 -100
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/transfer/index.esm.js +254 -0
- package/designer/transfer/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +473 -810
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/designer/tree-view/index.esm.js +313 -0
- package/designer/tree-view/index.umd.cjs +1 -0
- package/designer/uploader/index.esm.js +1190 -0
- package/designer/uploader/index.umd.cjs +2 -0
- package/designer/verify-detail/index.esm.js +258 -0
- package/designer/verify-detail/index.umd.cjs +1 -0
- package/designer/video/index.esm.js +136 -0
- package/designer/video/index.umd.cjs +1 -0
- package/designer/weather/index.css +1 -0
- package/designer/weather/index.esm.js +6244 -0
- package/designer/weather/index.umd.cjs +14 -0
- package/farris.all.esm.js +69941 -70514
- package/farris.all.umd.cjs +117 -117
- package/index.css +1 -1
- package/locales/filter-bar/ui/en.json +2 -1
- package/locales/filter-bar/ui/zh-CHS.json +2 -1
- package/locales/filter-bar/ui/zh-CHT.json +2 -1
- package/locales/query-solution/ui/en.json +1 -1
- package/locales/query-solution/ui/zh-CHS.json +1 -1
- package/locales/query-solution/ui/zh-CHT.json +1 -1
- package/locales/ui/en.json +3 -2
- package/locales/ui/zh-CHS.json +3 -2
- package/locales/ui/zh-CHT.json +3 -2
- package/package.json +1 -1
- package/types/accordion/designer.d.ts +44 -0
- package/types/accordion/src/accordion.props.d.ts +0 -1
- package/types/accordion/src/components/accordion-item.props.d.ts +0 -1
- package/types/avatar/designer.d.ts +29 -0
- package/types/avatar/src/avatar.props.d.ts +0 -1
- package/types/avatar/src/property-config/avatar.property-config.d.ts +1 -1
- package/types/{expression-editor/index.d.ts → binding-selector/designer.d.ts} +6 -6
- package/types/binding-selector/index.d.ts +0 -54
- package/types/binding-selector/src/binding-selector.props.d.ts +0 -1
- package/types/button-group/designer.d.ts +29 -0
- package/types/button-group/index.d.ts +15 -0
- package/types/button-group/src/button-group.props.d.ts +0 -1
- package/types/calendar/src/calendar.props.d.ts +1 -0
- package/types/calendar/src/components/month/month-view.component.d.ts +6 -6
- package/types/calendar/src/composition/use-calendar-events.d.ts +1 -1
- package/types/calendar/src/composition/use-locales.d.ts +1 -0
- package/types/calendar/src/property-config/calendar.property-config.d.ts +2 -0
- package/types/capsule/src/capsule-item.component.d.ts +6 -6
- package/types/checkbox/designer.d.ts +2 -0
- package/types/checkbox-group/designer.d.ts +2 -0
- package/types/code-editor/designer.d.ts +5 -0
- package/types/code-editor/index.d.ts +0 -1
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +0 -2
- package/types/color-picker/designer.d.ts +29 -0
- package/types/color-picker/index.d.ts +0 -15
- package/types/color-picker/src/color-picker.props.d.ts +0 -1
- package/types/combo-list/designer.d.ts +29 -0
- package/types/combo-list/src/combo-list.props.d.ts +1 -0
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +6 -0
- package/types/combo-tree/designer.d.ts +5 -0
- package/types/combo-tree/src/combo-tree.props.d.ts +0 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +7 -7
- package/types/comment/src/comment.props.d.ts +4 -0
- package/types/comment/src/designer/comment.design.props.d.ts +4 -0
- package/types/common/index.d.ts +1 -0
- package/types/common/utils/use-mobile.d.ts +1 -0
- package/types/component/designer.d.ts +35 -0
- package/types/component/index.d.ts +0 -2
- package/types/component/src/component.props.d.ts +0 -8
- package/types/component/src/composition/field-tree-builder.d.ts +1 -0
- package/types/components.d.ts +2 -6
- package/types/condition/designer.d.ts +56 -0
- package/types/condition/index.d.ts +0 -55
- package/types/content-container/index.d.ts +3 -2
- package/types/content-container/src/content-container.props.d.ts +1 -0
- package/types/data-grid/designer.d.ts +2 -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-grid/src/designer/grid-field-editor.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +7 -1
- package/types/data-view/composition/use-mobile.d.ts +3 -0
- package/types/data-view/designer/property-config/use-command-option.d.ts +11 -0
- package/types/data-view/index.d.ts +1 -0
- package/types/designer-canvas/src/composition/designer-canvas-changed.d.ts +3 -3
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -0
- package/types/designer-outline/src/designer-outline.component.d.ts +3 -3
- package/types/designer-outline/src/types.d.ts +5 -1
- package/types/drawer/designer.d.ts +12 -0
- package/types/drawer/src/designer/drawer-toolbar.design.props.d.ts +12 -0
- package/types/drawer/src/designer/drawer.design.component.d.ts +8 -0
- package/types/drawer/src/designer/drawer.design.props.d.ts +4 -0
- package/types/drawer/src/schema/schema-mapper.d.ts +1 -0
- package/types/drawer/src/schema/schema-resolver.d.ts +1 -0
- package/types/dropdown/designer.d.ts +6 -0
- package/types/dropdown/index.d.ts +27 -6
- package/types/dropdown/src/dropdown.item.component.d.ts +2 -2
- package/types/dropdown/src/dropdown.props.d.ts +0 -1
- package/types/dynamic-form/designer.d.ts +3 -1
- package/types/dynamic-form/index.d.ts +4 -3
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +6 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +11 -0
- package/types/dynamic-resolver/index.d.ts +3 -0
- package/types/dynamic-resolver/src/props-resolver.d.ts +2 -0
- 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 +883 -1
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/dynamic-view/src/types.d.ts +4 -0
- package/types/expression-editor/designer.d.ts +9 -0
- package/types/field-selector/index.d.ts +2 -1
- package/types/fieldset/index.d.ts +3 -2
- package/types/fieldset/src/fieldset.props.d.ts +1 -0
- package/types/filter-bar/src/composition/types.d.ts +1 -1
- package/types/filter-bar/src/composition/use-size.d.ts +2 -2
- package/types/filter-bar/src/locale/locale.d.ts +1 -0
- package/types/filter-condition-editor/designer.d.ts +10 -0
- package/types/filter-condition-editor/index.d.ts +0 -9
- 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 +0 -1
- package/types/html-template/designer.d.ts +31 -0
- package/types/html-template/src/designer/html-template.design.props.d.ts +9 -0
- package/types/html-template/src/html-template.props.d.ts +2 -0
- package/types/image-cropper/designer.d.ts +4 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +0 -1
- package/types/index.d.ts +0 -1
- package/types/input-group/designer.d.ts +2 -0
- package/types/json-editor/designer.d.ts +5 -0
- package/types/json-editor/src/components/editable-combo/editable-combo.component.d.ts +3 -3
- package/types/json-editor/src/components/editable-combo/popup-container.component.d.ts +3 -3
- package/types/json-editor/src/json-editor.props.d.ts +0 -1
- package/types/language-textbox/index.d.ts +6 -6
- package/types/language-textbox/src/language-textbox.component.d.ts +2 -2
- package/types/language-textbox/src/language-textbox.props.d.ts +1 -0
- package/types/layout/index.d.ts +1 -0
- package/types/layout/src/components/layout-pane.props.d.ts +0 -1
- package/types/layout/src/layout.props.d.ts +0 -1
- package/types/list-nav/index.d.ts +24 -5
- package/types/list-nav/src/list-nav.props.d.ts +0 -1
- package/types/list-view/index.d.ts +1 -0
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/list-view/src/designer/list-view.design.props.d.ts +1 -0
- package/types/list-view/src/list-view-table.props.d.ts +1 -0
- package/types/loading/index.d.ts +6 -6
- package/types/loading/src/loading.component.d.ts +3 -3
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +6 -6
- package/types/lookup/src/lookup.props.d.ts +1 -0
- package/types/lookup/src/property-config/external-lookup.property-config.d.ts +1 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +1 -0
- package/types/menu-lookup/designer.d.ts +5 -0
- package/types/menu-lookup/src/menu-lookup.props.d.ts +0 -1
- package/types/message-box/index.d.ts +6 -6
- package/types/message-box/src/message-box.component.d.ts +3 -3
- package/types/modal/designer.d.ts +2 -0
- package/types/modal/index.d.ts +30 -24
- package/types/modal/src/modal.component.d.ts +15 -12
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/nav/designer.d.ts +6 -0
- package/types/nav/index.d.ts +24 -20
- package/types/nav/src/nav.props.d.ts +0 -1
- package/types/notify/index.d.ts +3 -3
- package/types/notify/src/notify.component.d.ts +2 -2
- package/types/number-range/designer.d.ts +29 -0
- package/types/number-range/src/number-range.props.d.ts +0 -1
- package/types/number-spinner/src/composition/types.d.ts +1 -0
- package/types/order/designer.d.ts +6 -0
- package/types/order/index.d.ts +36 -5
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +0 -1
- package/types/page-footer/designer.d.ts +6 -0
- package/types/page-footer/index.d.ts +0 -2
- package/types/page-footer/src/page-footer.props.d.ts +0 -1
- package/types/page-header/index.d.ts +3 -2
- package/types/page-header/src/designer/page-header.design.props.d.ts +20 -0
- package/types/page-header/src/page-header.props.d.ts +2 -0
- package/types/pagination/designer.d.ts +29 -0
- package/types/pagination/index.d.ts +15 -0
- package/types/pagination/src/pagination.props.d.ts +0 -1
- package/types/popover/index.d.ts +3 -3
- package/types/popover/src/composition/use-resize.d.ts +1 -1
- package/types/popover/src/popover.component.d.ts +2 -2
- package/types/progress/designer.d.ts +29 -0
- package/types/progress/src/progress.props.d.ts +0 -1
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/query-solution/index.d.ts +4 -4
- package/types/query-solution/src/composition/types.d.ts +8 -2
- package/types/query-solution/src/composition/use-header.d.ts +2 -2
- package/types/query-solution/src/composition/use-solution-utils.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -0
- package/types/query-solution/src/designer/solution-preset-config/solution-preset.props.d.ts +1 -0
- package/types/query-solution/src/query-solution.props.d.ts +1 -0
- package/types/radio-group/designer.d.ts +4 -1
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +1 -0
- package/types/response-layout/index.d.ts +3 -2
- package/types/response-layout/src/component/response-layout-item.props.d.ts +1 -0
- package/types/response-layout/src/property-config/response-layout-splitter/response-layout-splitter.props.d.ts +1 -0
- package/types/response-layout/src/response-layout.props.d.ts +1 -0
- package/types/response-toolbar/designer.d.ts +2 -1
- package/types/response-toolbar/src/designer/response-toolbar.design.props.d.ts +1 -0
- package/types/search-box/designer.d.ts +52 -0
- package/types/search-box/index.d.ts +1 -17
- package/types/search-box/src/components/search-box-container.component.d.ts +3 -3
- package/types/search-box/src/search-box.props.d.ts +0 -1
- package/types/section/designer.d.ts +1 -0
- package/types/smoke-detector/designer.d.ts +6 -0
- package/types/smoke-detector/index.d.ts +0 -2
- package/types/smoke-detector/src/smoke-detector.props.d.ts +0 -1
- package/types/sort-condition-editor/designer.d.ts +9 -0
- package/types/sort-condition-editor/index.d.ts +2 -7
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +0 -1
- package/types/splitter/designer.d.ts +32 -0
- package/types/splitter/index.d.ts +1 -0
- package/types/splitter/src/components/splitter-pane.props.d.ts +0 -1
- package/types/splitter/src/splitter.props.d.ts +0 -1
- package/types/step/designer.d.ts +6 -0
- package/types/tabs/designer.d.ts +1 -0
- package/types/tabs/index.d.ts +0 -1
- package/types/tabs/src/composition/types.d.ts +1 -0
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +1 -0
- package/types/tags/index.d.ts +3 -3
- package/types/tags/src/tags.component.d.ts +1 -1
- package/types/text/designer.d.ts +6 -0
- package/types/text/index.d.ts +24 -20
- package/types/text/src/text.props.d.ts +0 -1
- package/types/time-picker/src/components/time.component.d.ts +3 -3
- package/types/transfer/designer.d.ts +35 -0
- package/types/transfer/src/transfer.props.d.ts +0 -1
- package/types/tree-view/designer.d.ts +29 -0
- package/types/tree-view/src/tree-view.props.d.ts +0 -1
- package/types/uploader/designer.d.ts +141 -0
- package/types/uploader/index.d.ts +6 -6
- package/types/uploader/src/components/upload-progress.component.d.ts +3 -3
- package/types/uploader/src/uploader.component.d.ts +3 -3
- package/types/uploader/src/uploader.props.d.ts +0 -1
- package/types/verify-detail/designer.d.ts +6 -0
- package/types/verify-detail/index.d.ts +58 -5
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +0 -1
- package/types/video/designer.d.ts +6 -0
- package/types/video/index.d.ts +24 -20
- package/types/video/src/video.props.d.ts +0 -1
- package/components/sort-condition-editor/index.css +0 -1
- package/package.zip +0 -0
- package/types/designer-toolbox/index.d.ts +0 -3
- package/types/designer-toolbox/src/toolbox.component.d.ts +0 -14
- package/types/designer-toolbox/src/toolbox.props.d.ts +0 -29
- package/types/designer-toolbox/src/types.d.ts +0 -21
- package/types/designer.d.ts +0 -13
- package/types/flow-canvas/index.d.ts +0 -3
- package/types/flow-canvas/src/components/flow-node-item.component.d.ts +0 -8
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +0 -3
- package/types/flow-canvas/src/composition/types.d.ts +0 -42
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-connections.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-curve.d.ts +0 -4
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-drawing.d.ts +0 -4
- package/types/flow-canvas/src/flow-canvas.component.d.ts +0 -8
- package/types/flow-canvas/src/flow-canvas.props.d.ts +0 -3
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +0 -2
- package/types/layout/src/designer/layout-pane.design.component.d.ts +0 -8
- package/types/layout/src/designer/layout-use-designer-rules.d.ts +0 -2
- package/types/layout/src/designer/layout.design.component.d.ts +0 -8
- package/types/layout/src/schema/schema-mapper.d.ts +0 -2
- package/types/layout/src/schema/schema-resolver.d.ts +0 -2
- package/types/list-nav/src/designer/use-designer-rules.d.ts +0 -2
- package/types/list-nav/src/property-config/list-nav.property-config.d.ts +0 -8
- package/types/list-nav/src/schema/schema-mapper.d.ts +0 -2
- package/types/list-nav/src/schema/schema-resolver.d.ts +0 -2
- /package/{components → designer}/condition/index.css +0 -0
- /package/{components → designer}/uploader/index.css +0 -0
- /package/types/{list-nav/src/designer/list-nav.design.component.d.ts → dynamic-form/src/component/form-control/form-control.component.d.ts} +0 -0
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { useCommonUtils as
|
|
2
|
-
import { reactive as
|
|
3
|
-
import { useResizeObserver as
|
|
4
|
-
import { CellMode as
|
|
5
|
-
|
|
1
|
+
import { useCommonUtils as At, getCustomClass as Ht, withInstall as zt } from "../common/index.esm.js";
|
|
2
|
+
import { reactive as Je, watch as oe, createVNode as i, isVNode as et, Comment as Lt, Fragment as ze, createTextVNode as he, defineComponent as Ut, ref as B, computed as I, onMounted as Wt, nextTick as _t, onUnmounted as Kt, provide as Yt } from "vue";
|
|
3
|
+
import { useResizeObserver as qt } from "@vueuse/core";
|
|
4
|
+
import { CellMode as $t, useMobile as Jt, useIdentify as Qt, useGroupData as Xt, useFilter as Zt, useHierarchy as en, useLoading as tn, useDataView as nn, usePagination as ln, useSelection as an, useDataViewContainerStyle as on, useCommandColumn as un, useSettingColumn as sn, useColumn as rn, useSort as dn, useGroupColumn as cn, useRow as fn, useEdit as mn, useVisualDataBound as yn, useVisualDataCell as pn, useVisualDataRow as gn, useVisualGroupRow as vn, useVisualSummaryRow as Cn, useVisualData as hn, useCellContentStyle as Sn, useCellPosition as wn, useSidebar as bn, useVirtualScroll as Bn, useFitColumn as Fn, useFilterHistory as On, useColumnFilter as In, useDragColumn as Dn, getColumnHeader as Vn, getPagination as Gn, getSidebar as xn, getDisableMask as En, getSummary as Pn, getHorizontalScrollbar as Tn, getVerticalScrollbar as kn, getFilterPanel as Rn, getGroupPanel as Mn, useNavigation as jn, getEmpty as Nn, COMMAND_COLUMN_DATA_TYPE as Qe, SETTING_COLUMN_DATA_TYPE as Xe } from "../data-view/index.esm.js";
|
|
5
|
+
import Ze from "../button/index.esm.js";
|
|
6
|
+
import An from "../drawer/index.esm.js";
|
|
7
|
+
import Hn, { FDynamicFormLabel as zn } from "../dynamic-form/index.esm.js";
|
|
8
|
+
const Zn = {
|
|
6
9
|
/** 启用分页 */
|
|
7
10
|
enable: { type: Boolean, default: !1 },
|
|
8
11
|
/** 当前页码 */
|
|
@@ -25,7 +28,7 @@ const kn = {
|
|
|
25
28
|
total: { type: Number, default: 0 },
|
|
26
29
|
/** 禁用分页 */
|
|
27
30
|
disabled: { type: Boolean, default: !1 }
|
|
28
|
-
},
|
|
31
|
+
}, el = {
|
|
29
32
|
/** 启用排序 */
|
|
30
33
|
enable: { type: Boolean, default: !1 },
|
|
31
34
|
/** 排序字段集合 */
|
|
@@ -34,7 +37,7 @@ const kn = {
|
|
|
34
37
|
mode: { type: String, default: "client" },
|
|
35
38
|
/** 多列排序 */
|
|
36
39
|
multiSort: { type: Boolean, default: !1 }
|
|
37
|
-
},
|
|
40
|
+
}, tl = {
|
|
38
41
|
/** 自定义分组合计内容 */
|
|
39
42
|
customGroupRow: { type: Function, default: () => {
|
|
40
43
|
} },
|
|
@@ -58,7 +61,7 @@ const kn = {
|
|
|
58
61
|
showSummary: { type: Boolean, default: !1 },
|
|
59
62
|
/** 显示合计行位置; */
|
|
60
63
|
summaryPosition: { type: String, default: "separate" }
|
|
61
|
-
},
|
|
64
|
+
}, nl = {
|
|
62
65
|
/** 启用筛选 */
|
|
63
66
|
enable: { type: Boolean, default: !1 },
|
|
64
67
|
/** DataGrid筛选风格 */
|
|
@@ -67,10 +70,10 @@ const kn = {
|
|
|
67
70
|
mode: { type: String, default: "server" },
|
|
68
71
|
/** 显示过滤条件工具条 */
|
|
69
72
|
showSummary: { type: Boolean, default: !0 }
|
|
70
|
-
},
|
|
73
|
+
}, ll = {
|
|
71
74
|
/** 允许折行显示列标题 */
|
|
72
75
|
wrapHeadings: { type: Boolean, default: !1 }
|
|
73
|
-
},
|
|
76
|
+
}, al = {
|
|
74
77
|
/** 显示行号 */
|
|
75
78
|
enable: { type: Boolean, default: !1 },
|
|
76
79
|
/** 行号列表头标题 */
|
|
@@ -79,7 +82,7 @@ const kn = {
|
|
|
79
82
|
width: { type: Number, default: 36 },
|
|
80
83
|
/** 是否展示省略号 */
|
|
81
84
|
showEllipsis: { type: Boolean, default: !0 }
|
|
82
|
-
},
|
|
85
|
+
}, ol = {
|
|
83
86
|
/** 自定义行样式 */
|
|
84
87
|
customRowStyle: { type: Function, default: () => {
|
|
85
88
|
} },
|
|
@@ -98,7 +101,7 @@ const kn = {
|
|
|
98
101
|
showHovering: { type: Boolean, default: !0 },
|
|
99
102
|
/** 禁止数据折行 */
|
|
100
103
|
wrapContent: { type: Boolean, default: !1 }
|
|
101
|
-
},
|
|
104
|
+
}, il = {
|
|
102
105
|
/** 显示合计信息 */
|
|
103
106
|
enable: { type: Boolean, default: !1 },
|
|
104
107
|
/** 合计行自定义样式,对启用合计行模板无效 */
|
|
@@ -110,7 +113,7 @@ const kn = {
|
|
|
110
113
|
mode: { type: String, default: "client" },
|
|
111
114
|
/** 合计行显示位置, top: 顶部 bottom: 底部, both: 顶部与底部同时显示 */
|
|
112
115
|
position: { type: String, default: "bottom" }
|
|
113
|
-
},
|
|
116
|
+
}, ul = {
|
|
114
117
|
/** 自动列宽。设为true后,所有列将填满表格并不会出现横向滚动条。 */
|
|
115
118
|
fitColumns: { type: Boolean, default: !1 },
|
|
116
119
|
/** 自动适配列宽度模式 */
|
|
@@ -122,7 +125,7 @@ const kn = {
|
|
|
122
125
|
resizeColumn: { type: Boolean, default: !0 },
|
|
123
126
|
/** 双击表头列自适应内容宽度 */
|
|
124
127
|
resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
|
|
125
|
-
},
|
|
128
|
+
}, sl = {
|
|
126
129
|
/** 启用多选且显示checkbox, 选中行后勾选前面的checkbox */
|
|
127
130
|
checkOnSelect: { type: Boolean, default: !1 },
|
|
128
131
|
/** 当数据源为空时,清空已选记录 */
|
|
@@ -148,17 +151,17 @@ const kn = {
|
|
|
148
151
|
showSelectAll: { type: Boolean, default: !1 },
|
|
149
152
|
/** 显示已选数据 */
|
|
150
153
|
showSelection: { type: Boolean, default: !1 }
|
|
151
|
-
},
|
|
154
|
+
}, rl = {
|
|
152
155
|
/** 编辑时选中文本 */
|
|
153
156
|
selectOnEditing: { type: Boolean, default: !1 },
|
|
154
157
|
/** 编辑模式; row:整行编辑,cell: 单元格编辑 */
|
|
155
158
|
editMode: { type: String, default: "cell" }
|
|
156
|
-
},
|
|
159
|
+
}, dl = {
|
|
157
160
|
/** show loading */
|
|
158
161
|
show: { type: Boolean, default: !1 },
|
|
159
162
|
/** message on display when loading */
|
|
160
163
|
message: { type: String, default: "加载中..." }
|
|
161
|
-
},
|
|
164
|
+
}, Ln = {
|
|
162
165
|
/** 自定义样式 */
|
|
163
166
|
customClass: { type: String, default: "" },
|
|
164
167
|
/** 允许在最后一个单元回车新增一行 */
|
|
@@ -166,7 +169,7 @@ const kn = {
|
|
|
166
169
|
/** 编辑单元格前事件 */
|
|
167
170
|
beforeEditCell: {
|
|
168
171
|
type: Function,
|
|
169
|
-
default: (
|
|
172
|
+
default: (n) => !0
|
|
170
173
|
},
|
|
171
174
|
/** 结束编辑前校验 */
|
|
172
175
|
beforeEndEditCell: { type: Function, default: () => !0 },
|
|
@@ -289,530 +292,623 @@ const kn = {
|
|
|
289
292
|
emptyTemplate: { type: Object },
|
|
290
293
|
beforeUpdate: { type: Function }
|
|
291
294
|
};
|
|
292
|
-
function
|
|
295
|
+
function Un(n, p, Se, j, ie, P, w, h, ue, r, T, se, Y, c, F, we) {
|
|
293
296
|
const {
|
|
294
|
-
isNull:
|
|
295
|
-
isUndefined:
|
|
296
|
-
} =
|
|
297
|
-
totalItems:
|
|
298
|
-
rawView:
|
|
299
|
-
} =
|
|
300
|
-
calculateCellPositionInRow:
|
|
301
|
-
cellKey:
|
|
302
|
-
cellPosition:
|
|
303
|
-
rowKey:
|
|
304
|
-
rowPosition:
|
|
305
|
-
rowSpanCellPosition:
|
|
306
|
-
groupCellPosition:
|
|
307
|
-
summaryCellPosition:
|
|
308
|
-
} =
|
|
309
|
-
cellContentClass:
|
|
310
|
-
cellContentPosition:
|
|
311
|
-
cellContentClassWithEllipsis:
|
|
312
|
-
} =
|
|
313
|
-
collpaseGroupIconClass:
|
|
314
|
-
} =
|
|
315
|
-
gridCellClass:
|
|
316
|
-
gridRowClass:
|
|
317
|
-
onClickRow:
|
|
318
|
-
onMouseoverRow:
|
|
319
|
-
onMouseoutRow:
|
|
320
|
-
} =
|
|
321
|
-
onClickCell:
|
|
322
|
-
} = s, {
|
|
323
|
-
toggleGroupRow: k
|
|
324
|
-
} = d, {
|
|
325
|
-
columnContext: B,
|
|
326
|
-
hasLeftFixedColumn: $,
|
|
327
|
-
hasRightFixedColumn: F
|
|
297
|
+
isNull: q,
|
|
298
|
+
isUndefined: N
|
|
299
|
+
} = At(), {
|
|
300
|
+
totalItems: re,
|
|
301
|
+
rawView: be
|
|
302
|
+
} = we, {
|
|
303
|
+
calculateCellPositionInRow: de,
|
|
304
|
+
cellKey: u,
|
|
305
|
+
cellPosition: A,
|
|
306
|
+
rowKey: G,
|
|
307
|
+
rowPosition: y,
|
|
308
|
+
rowSpanCellPosition: Be,
|
|
309
|
+
groupCellPosition: H,
|
|
310
|
+
summaryCellPosition: ce
|
|
311
|
+
} = w, {
|
|
312
|
+
cellContentClass: Fe,
|
|
313
|
+
cellContentPosition: Oe,
|
|
314
|
+
cellContentClassWithEllipsis: D
|
|
315
|
+
} = P, {
|
|
316
|
+
collpaseGroupIconClass: Ie
|
|
317
|
+
} = r, {
|
|
318
|
+
gridCellClass: De,
|
|
319
|
+
gridRowClass: z,
|
|
320
|
+
onClickRow: L,
|
|
321
|
+
onMouseoverRow: fe,
|
|
322
|
+
onMouseoutRow: O
|
|
323
|
+
} = se, {
|
|
324
|
+
onClickCell: U
|
|
328
325
|
} = ue, {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
326
|
+
toggleGroupRow: me
|
|
327
|
+
} = Y, {
|
|
328
|
+
columnContext: S,
|
|
329
|
+
hasLeftFixedColumn: Ve,
|
|
330
|
+
hasRightFixedColumn: $
|
|
331
|
+
} = h, {
|
|
332
|
+
navigateOnKeyUp: x,
|
|
333
|
+
navigateOnKeyDown: g
|
|
334
|
+
} = T, J = (e) => (e || []).some((o) => et(o) ? !(o.type === Lt || o.type === ze && !J(o.children)) : !0) ? e : null, k = (e) => {
|
|
335
|
+
var o, s, l;
|
|
336
|
+
return ((s = (o = e.column) == null ? void 0 : o.editor) == null ? void 0 : s.type) === "switch" || ((l = e.column) == null ? void 0 : l.dataType) === "boolean" ? {
|
|
334
337
|
display: "flex",
|
|
335
338
|
flexGrow: "1",
|
|
336
339
|
overflow: "hidden"
|
|
337
340
|
} : {
|
|
338
341
|
flexGrow: "1"
|
|
339
342
|
};
|
|
340
|
-
},
|
|
343
|
+
}, R = Je({
|
|
341
344
|
"fv-grid-content-left-fixed": !0
|
|
342
|
-
}),
|
|
345
|
+
}), Q = Je({
|
|
343
346
|
"fv-grid-content-right-fixed": !0
|
|
344
347
|
});
|
|
345
|
-
oe([
|
|
346
|
-
!e[0] && !e[1].length ? (
|
|
348
|
+
oe([re, be], (e) => {
|
|
349
|
+
!e[0] && !e[1].length ? (R["fv-grid-content-left-fixed"] = !1, Q["fv-grid-content-right-fixed"] = !1) : (R["fv-grid-content-left-fixed"] = !0, Q["fv-grid-content-right-fixed"] = !0);
|
|
347
350
|
});
|
|
348
351
|
const {
|
|
349
|
-
gridDataStyle:
|
|
350
|
-
gridMergedDataStyle:
|
|
351
|
-
leftFixedGridDataStyle:
|
|
352
|
-
leftFixedGridMergedDataStyle:
|
|
353
|
-
rightFixedGridDataStyle:
|
|
354
|
-
rightFixedGridMergedDataStyle:
|
|
355
|
-
} =
|
|
356
|
-
function
|
|
357
|
-
|
|
352
|
+
gridDataStyle: Ge,
|
|
353
|
+
gridMergedDataStyle: X,
|
|
354
|
+
leftFixedGridDataStyle: ye,
|
|
355
|
+
leftFixedGridMergedDataStyle: xe,
|
|
356
|
+
rightFixedGridDataStyle: Ee,
|
|
357
|
+
rightFixedGridMergedDataStyle: Z
|
|
358
|
+
} = c;
|
|
359
|
+
function Pe(e, o) {
|
|
360
|
+
o.collapse = !o.collapse, F.value = me(o.collapse ? "collapse" : "expand", o, F.value);
|
|
358
361
|
}
|
|
359
|
-
function
|
|
360
|
-
const
|
|
361
|
-
if (e.groupField &&
|
|
362
|
+
function Te(e, o) {
|
|
363
|
+
const s = [];
|
|
364
|
+
if (e.groupField && o[e.groupField]) {
|
|
362
365
|
for (let f = 0; f <= e.layer; f++)
|
|
363
|
-
|
|
366
|
+
s.push(i("div", {
|
|
364
367
|
class: "fv-grid-group-row-icon",
|
|
365
|
-
onClick: (
|
|
368
|
+
onClick: (K) => Pe(K, e)
|
|
366
369
|
}, [i("span", {
|
|
367
|
-
class:
|
|
370
|
+
class: Ie(e)
|
|
368
371
|
}, null)]));
|
|
369
|
-
const
|
|
370
|
-
|
|
371
|
-
ref:
|
|
372
|
-
key:
|
|
372
|
+
const l = e.data[e.groupField];
|
|
373
|
+
s.push(i("div", {
|
|
374
|
+
ref: l.setRef,
|
|
375
|
+
key: u(e, e.layer + 1),
|
|
373
376
|
class: "fv-grid-cell",
|
|
374
|
-
style:
|
|
375
|
-
}, [
|
|
376
|
-
|
|
377
|
+
style: H(l, o, e.layer)
|
|
378
|
+
}, [l.data])), Object.values(e.data).filter((f) => f.field !== e.groupField && f.colSpan !== 0).forEach((f) => {
|
|
379
|
+
s.push(i("div", {
|
|
377
380
|
ref: f.setRef,
|
|
378
|
-
key:
|
|
381
|
+
key: u(e, f.index),
|
|
379
382
|
class: "fv-grid-cell",
|
|
380
|
-
style:
|
|
383
|
+
style: A(e, f, o)
|
|
381
384
|
}, [f.data]));
|
|
382
385
|
});
|
|
383
386
|
}
|
|
384
|
-
return
|
|
387
|
+
return s;
|
|
385
388
|
}
|
|
386
|
-
function
|
|
389
|
+
function m(e, o, s) {
|
|
387
390
|
return e.layer > -1 && i("div", {
|
|
388
391
|
ref: e.setRef,
|
|
389
|
-
key:
|
|
390
|
-
class:
|
|
391
|
-
style:
|
|
392
|
-
onClick: (
|
|
393
|
-
onMouseover: (
|
|
394
|
-
}, [
|
|
392
|
+
key: G(e),
|
|
393
|
+
class: z(e, s),
|
|
394
|
+
style: y(e),
|
|
395
|
+
onClick: (l) => L(l, e),
|
|
396
|
+
onMouseover: (l) => fe(l, e)
|
|
397
|
+
}, [Te(e, o)]);
|
|
395
398
|
}
|
|
396
|
-
function
|
|
397
|
-
const
|
|
398
|
-
if (e.groupField &&
|
|
399
|
-
const
|
|
400
|
-
|
|
401
|
-
ref:
|
|
402
|
-
key:
|
|
399
|
+
function ke(e, o) {
|
|
400
|
+
const s = [];
|
|
401
|
+
if (e.groupField && o[e.groupField]) {
|
|
402
|
+
const l = e.data[e.groupField];
|
|
403
|
+
s.push(i("div", {
|
|
404
|
+
ref: l.setRef,
|
|
405
|
+
key: u(e, e.layer + 1),
|
|
403
406
|
class: "fv-grid-cell",
|
|
404
|
-
style:
|
|
405
|
-
}, [
|
|
407
|
+
style: ce(l, o, e.layer)
|
|
408
|
+
}, [l.data]));
|
|
406
409
|
}
|
|
407
|
-
return
|
|
410
|
+
return s;
|
|
408
411
|
}
|
|
409
|
-
function pe(e,
|
|
412
|
+
function pe(e, o, s) {
|
|
410
413
|
return e.layer > -1 && i("div", {
|
|
411
414
|
ref: e.setRef,
|
|
412
|
-
key:
|
|
413
|
-
class:
|
|
414
|
-
style:
|
|
415
|
-
onClick: (
|
|
416
|
-
onMouseover: (
|
|
417
|
-
}, [
|
|
415
|
+
key: G(e),
|
|
416
|
+
class: z(e, s),
|
|
417
|
+
style: y(e),
|
|
418
|
+
onClick: (l) => L(l, e),
|
|
419
|
+
onMouseover: (l) => fe(l, e)
|
|
420
|
+
}, [ke(e, o)]);
|
|
418
421
|
}
|
|
419
|
-
function
|
|
420
|
-
var
|
|
421
|
-
return e.showTips && typeof ((
|
|
422
|
-
class:
|
|
423
|
-
title: e.formatter(e,
|
|
424
|
-
}, [e.formatter(e,
|
|
425
|
-
class:
|
|
426
|
-
}, [e.formatter(e,
|
|
422
|
+
function ge(e, o) {
|
|
423
|
+
var s, l, f;
|
|
424
|
+
return e.showTips && typeof ((s = e.column) == null ? void 0 : s.formatter) != "function" && ((l = e.column) == null ? void 0 : l.dataType) !== "commands" && ((f = e.column) == null ? void 0 : f.dataType) !== "setting" ? i("div", {
|
|
425
|
+
class: D(e),
|
|
426
|
+
title: e.formatter(e, o)
|
|
427
|
+
}, [e.formatter(e, o)]) : i("div", {
|
|
428
|
+
class: D(e)
|
|
429
|
+
}, [e.formatter(e, o)]);
|
|
427
430
|
}
|
|
428
|
-
function
|
|
429
|
-
|
|
430
|
-
return e.showTips ? i("div", {
|
|
431
|
-
class: M(e),
|
|
432
|
-
title: a
|
|
433
|
-
}, [a]) : i("div", {
|
|
434
|
-
class: M(e)
|
|
435
|
-
}, [a]);
|
|
431
|
+
function W() {
|
|
432
|
+
return i("div", null, [he("******")]);
|
|
436
433
|
}
|
|
437
|
-
function
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
434
|
+
function E(e) {
|
|
435
|
+
var l, f;
|
|
436
|
+
const o = !q(e.data) && !N(e.data) ? e.data.toString() : e.data;
|
|
437
|
+
return ((f = (l = e.column) == null ? void 0 : l.editor) == null ? void 0 : f.showType) === "password" ? W() : e.showTips ? i("div", {
|
|
438
|
+
class: D(e),
|
|
439
|
+
title: o
|
|
440
|
+
}, [o]) : i("div", {
|
|
441
|
+
class: D(e)
|
|
442
|
+
}, [o]);
|
|
441
443
|
}
|
|
442
|
-
function
|
|
444
|
+
function Re(e, o) {
|
|
445
|
+
return e.mode === $t.editing ? i("div", {
|
|
446
|
+
style: k(e)
|
|
447
|
+
}, [e.getEditor(e)]) : e.column.columnTemplate ? e.column.columnTemplate(e, o) : e.formatter ? ge(e, o) : E(e);
|
|
448
|
+
}
|
|
449
|
+
function ee(e, o, s) {
|
|
443
450
|
return i("div", {
|
|
444
451
|
ref: e.setRef,
|
|
445
|
-
key:
|
|
446
|
-
class:
|
|
447
|
-
style:
|
|
448
|
-
onClick: (
|
|
449
|
-
onMouseover: (
|
|
450
|
-
onMouseout: (
|
|
451
|
-
}, [Object.values(e.data).filter((
|
|
452
|
-
var
|
|
453
|
-
const f =
|
|
454
|
-
cell:
|
|
452
|
+
key: G(e),
|
|
453
|
+
class: z(e, s),
|
|
454
|
+
style: y(e),
|
|
455
|
+
onClick: (l) => L(l, e),
|
|
456
|
+
onMouseover: (l) => fe(l, e),
|
|
457
|
+
onMouseout: (l) => O(l, e)
|
|
458
|
+
}, [Object.values(e.data).filter((l) => o[l.field] && l.rowSpan === 1).map((l) => {
|
|
459
|
+
var K, Ce;
|
|
460
|
+
const f = p.slots.cellTemplate && J(p.slots.cellTemplate({
|
|
461
|
+
cell: l,
|
|
455
462
|
row: e
|
|
456
463
|
}));
|
|
457
464
|
return i("div", {
|
|
458
|
-
ref:
|
|
459
|
-
key:
|
|
460
|
-
class:
|
|
461
|
-
style:
|
|
462
|
-
onClick: (le) =>
|
|
463
|
-
onKeydown: (le) =>
|
|
465
|
+
ref: l.setRef,
|
|
466
|
+
key: u(e, l.index),
|
|
467
|
+
class: De(l, e),
|
|
468
|
+
style: A(e, l, o),
|
|
469
|
+
onClick: (le) => U(le, l, e, l.column),
|
|
470
|
+
onKeydown: (le) => x(le, l)
|
|
464
471
|
}, [i("div", {
|
|
465
|
-
class:
|
|
466
|
-
style:
|
|
467
|
-
}, [f ? (
|
|
468
|
-
cell:
|
|
472
|
+
class: Fe(l),
|
|
473
|
+
style: Oe(l)
|
|
474
|
+
}, [f ? (Ce = (K = p.slots).cellTemplate) == null ? void 0 : Ce.call(K, {
|
|
475
|
+
cell: l,
|
|
469
476
|
row: e
|
|
470
|
-
}) :
|
|
477
|
+
}) : Re(l, e)])]);
|
|
471
478
|
})]);
|
|
472
479
|
}
|
|
473
|
-
const te = [ee,
|
|
474
|
-
function
|
|
475
|
-
const
|
|
476
|
-
return
|
|
480
|
+
const te = [ee, m, pe];
|
|
481
|
+
function _(e, o) {
|
|
482
|
+
const s = de(e);
|
|
483
|
+
return F.value.map((l, f) => te[l.type](l, s, f));
|
|
477
484
|
}
|
|
478
485
|
function ne(e) {
|
|
479
|
-
const
|
|
480
|
-
return
|
|
481
|
-
key:
|
|
486
|
+
const o = de(e);
|
|
487
|
+
return F.value.map((s) => Object.values(s.data).filter((l) => o[l.field] && l.rowSpan > 1).map((l) => i("div", {
|
|
488
|
+
key: u(s, l.index),
|
|
482
489
|
class: "fv-grid-cell fv-grid-merged-cell",
|
|
483
|
-
style:
|
|
484
|
-
}, [
|
|
490
|
+
style: Be(s, l, o)
|
|
491
|
+
}, [l.data])));
|
|
485
492
|
}
|
|
486
|
-
function
|
|
493
|
+
function ve() {
|
|
487
494
|
return i("div", {
|
|
488
|
-
ref:
|
|
489
|
-
class:
|
|
495
|
+
ref: j,
|
|
496
|
+
class: R
|
|
490
497
|
}, [i("div", {
|
|
491
498
|
class: "fv-grid-data",
|
|
492
|
-
style:
|
|
493
|
-
}, [
|
|
499
|
+
style: ye.value
|
|
500
|
+
}, [_(S.value.leftColumns.filter((e) => e.visible))]), i("div", {
|
|
494
501
|
class: "fv-grid-merge-date",
|
|
495
|
-
style:
|
|
496
|
-
}, [ne(
|
|
502
|
+
style: xe.value
|
|
503
|
+
}, [ne(S.value.leftColumns.filter((e) => e.visible))])]);
|
|
497
504
|
}
|
|
498
|
-
function
|
|
505
|
+
function Me() {
|
|
499
506
|
return i("div", {
|
|
500
|
-
ref:
|
|
507
|
+
ref: Se,
|
|
501
508
|
class: "fv-grid-content-primary"
|
|
502
509
|
}, [i("div", {
|
|
503
510
|
class: "fv-grid-data",
|
|
504
|
-
style:
|
|
505
|
-
}, [
|
|
511
|
+
style: Ge.value
|
|
512
|
+
}, [_(S.value.primaryColumns.filter((e) => e.visible))]), i("div", {
|
|
506
513
|
class: "fv-grid-merge-date",
|
|
507
|
-
style:
|
|
508
|
-
}, [ne(
|
|
514
|
+
style: X.value
|
|
515
|
+
}, [ne(S.value.primaryColumns.filter((e) => e.visible))])]);
|
|
509
516
|
}
|
|
510
|
-
function
|
|
517
|
+
function je() {
|
|
511
518
|
return i("div", {
|
|
512
|
-
ref:
|
|
513
|
-
class:
|
|
519
|
+
ref: ie,
|
|
520
|
+
class: Q
|
|
514
521
|
}, [i("div", {
|
|
515
522
|
class: "fv-grid-data",
|
|
516
|
-
style:
|
|
517
|
-
}, [
|
|
523
|
+
style: Ee.value
|
|
524
|
+
}, [_(S.value.rightColumns.filter((e) => e.visible))]), i("div", {
|
|
518
525
|
class: "fv-grid-merge-date",
|
|
519
|
-
style:
|
|
520
|
-
}, [ne(
|
|
526
|
+
style: Z.value
|
|
527
|
+
}, [ne(S.value.rightColumns.filter((e) => e.visible))])]);
|
|
521
528
|
}
|
|
522
|
-
function
|
|
529
|
+
function Ne() {
|
|
523
530
|
const e = [];
|
|
524
|
-
return
|
|
531
|
+
return Ve.value && e.push(ve()), e.push(Me()), $.value && e.push(je()), e;
|
|
525
532
|
}
|
|
526
533
|
return {
|
|
527
|
-
renderDataArea:
|
|
534
|
+
renderDataArea: Ne
|
|
528
535
|
};
|
|
529
536
|
}
|
|
530
|
-
|
|
537
|
+
function Wn(n) {
|
|
538
|
+
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !et(n);
|
|
539
|
+
}
|
|
540
|
+
const _n = /* @__PURE__ */ Ut({
|
|
531
541
|
name: "FDataGrid",
|
|
532
|
-
props:
|
|
533
|
-
emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate"],
|
|
534
|
-
setup(
|
|
535
|
-
var
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
542
|
+
props: Ln,
|
|
543
|
+
emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate", "endEditRow"],
|
|
544
|
+
setup(n, p) {
|
|
545
|
+
var _e, Ke;
|
|
546
|
+
const {
|
|
547
|
+
isMobilePhone: Se
|
|
548
|
+
} = Jt();
|
|
549
|
+
B();
|
|
550
|
+
const j = 0, ie = ((_e = n.rowOption) == null ? void 0 : _e.height) || 28, P = B(20), w = B(n.columns), h = Qt(n), ue = B(), r = B(), T = B(), se = B(), Y = B(), c = B([]), F = B(!1), we = B(((Ke = n.rowOption) == null ? void 0 : Ke.wrapContent) || !1), q = Xt(n, h), N = Zt(n, p), re = en(n), {
|
|
551
|
+
showLoading: be,
|
|
552
|
+
renderLoading: de
|
|
553
|
+
} = tn(n, ue), u = nn(n, /* @__PURE__ */ new Map(), N, re, h), A = ln(n, u), {
|
|
554
|
+
shouldRenderPagination: G
|
|
555
|
+
} = A, y = an(n, u, h, c, p), {
|
|
556
|
+
showSelectAll: Be,
|
|
557
|
+
showSelection: H,
|
|
558
|
+
selectedValues: ce,
|
|
559
|
+
updateSelectAllStatus: Fe
|
|
560
|
+
} = y, Oe = I(() => n.disabled), D = I(() => n.virtualized ? Math.min(u.dataView.value.length, P.value) : u.dataView.value.length);
|
|
561
|
+
I(() => n.loadingConfig.message);
|
|
549
562
|
const {
|
|
550
|
-
containerStyleObject:
|
|
551
|
-
} =
|
|
552
|
-
applyCommands:
|
|
553
|
-
} =
|
|
554
|
-
|
|
563
|
+
containerStyleObject: Ie
|
|
564
|
+
} = on(n), De = un(n), {
|
|
565
|
+
applyCommands: z
|
|
566
|
+
} = De;
|
|
567
|
+
z(w);
|
|
555
568
|
const {
|
|
556
|
-
applyColumnSetting:
|
|
557
|
-
removeColumnSetting:
|
|
558
|
-
} =
|
|
559
|
-
|
|
560
|
-
const
|
|
561
|
-
applyColumnSorter:
|
|
562
|
-
columnContext:
|
|
563
|
-
updateColumnRenderContext:
|
|
564
|
-
} =
|
|
565
|
-
|
|
566
|
-
const $ =
|
|
569
|
+
applyColumnSetting: L,
|
|
570
|
+
removeColumnSetting: fe
|
|
571
|
+
} = sn(n);
|
|
572
|
+
n.showSetting && L(w);
|
|
573
|
+
const O = rn(n, p), U = dn(n), {
|
|
574
|
+
applyColumnSorter: me,
|
|
575
|
+
columnContext: S,
|
|
576
|
+
updateColumnRenderContext: Ve
|
|
577
|
+
} = O;
|
|
578
|
+
me(u, U);
|
|
579
|
+
const $ = cn(n, S), x = fn(n, p, y, h), g = mn(n, p, h, x, c), J = yn(n), k = pn(n, g, J), R = gn(n, u, g, re, h, J, k), Q = vn(n, h, k, R), Ge = Cn(n, h, k, R), X = hn(n, w, u, D, j, R, Q, Ge), {
|
|
567
580
|
getVisualData: ye
|
|
568
|
-
} =
|
|
569
|
-
sidebarWidth:
|
|
570
|
-
showSidebarCheckBox:
|
|
571
|
-
} =
|
|
572
|
-
onWheel:
|
|
573
|
-
dataGridWidth:
|
|
574
|
-
viewPortHeight:
|
|
575
|
-
viewPortWidth:
|
|
576
|
-
resetScroll:
|
|
577
|
-
updateVisibleRowsOnLatestVisibleScope:
|
|
578
|
-
} =
|
|
581
|
+
} = X, xe = Sn(S), Ee = wn(n, S), Z = bn(n, y), {
|
|
582
|
+
sidebarWidth: Pe,
|
|
583
|
+
showSidebarCheckBox: Te
|
|
584
|
+
} = Z, m = Bn(n, u, c, S, X, D, j, Pe, g), {
|
|
585
|
+
onWheel: ke,
|
|
586
|
+
dataGridWidth: pe,
|
|
587
|
+
viewPortHeight: ge,
|
|
588
|
+
viewPortWidth: W,
|
|
589
|
+
resetScroll: E,
|
|
590
|
+
updateVisibleRowsOnLatestVisibleScope: Re
|
|
591
|
+
} = m, ee = Fn(n, S, r, W, $), {
|
|
579
592
|
calculateColumnsSize: te
|
|
580
|
-
} = ee,
|
|
581
|
-
const
|
|
593
|
+
} = ee, _ = On(), ne = In(r, Y, u, _, m), ve = Dn(n, p, O, u, $, q, m), Me = I(() => {
|
|
594
|
+
const t = {
|
|
582
595
|
"fv-grid": !0,
|
|
583
|
-
"fv-grid-bordered":
|
|
584
|
-
"fv-grid-horizontal-bordered":
|
|
585
|
-
"fv-datagrid-strip":
|
|
596
|
+
"fv-grid-bordered": n.showBorder,
|
|
597
|
+
"fv-grid-horizontal-bordered": n.showHorizontalLines,
|
|
598
|
+
"fv-datagrid-strip": n.showStripe
|
|
586
599
|
};
|
|
587
|
-
return
|
|
588
|
-
}),
|
|
600
|
+
return Ht(t, n.customClass);
|
|
601
|
+
}), je = I(() => ({
|
|
589
602
|
"fv-grid-content": !0,
|
|
590
|
-
"fv-grid-content-hover":
|
|
591
|
-
"fv-grid-wrap-content":
|
|
592
|
-
})),
|
|
593
|
-
const
|
|
594
|
-
return
|
|
603
|
+
"fv-grid-content-hover": F.value,
|
|
604
|
+
"fv-grid-wrap-content": we.value
|
|
605
|
+
})), Ne = I(() => {
|
|
606
|
+
const t = {};
|
|
607
|
+
return m.shouldShowHorizontalScrollbar.value && (t.paddingBottom = "10px"), m.shouldShowVirticalScrollbar.value && (t.paddingRight = "10px"), t;
|
|
595
608
|
}), {
|
|
596
609
|
renderGridHeader: e,
|
|
597
|
-
renderGridColumnResizeOverlay:
|
|
598
|
-
shouldShowHeader:
|
|
599
|
-
} =
|
|
600
|
-
renderDataGridPagination:
|
|
601
|
-
} =
|
|
610
|
+
renderGridColumnResizeOverlay: o,
|
|
611
|
+
shouldShowHeader: s
|
|
612
|
+
} = Vn(n, p, r, se, Y, O, u, ve, ne, N, _, ee, $, y, Z, U, m, W, c), {
|
|
613
|
+
renderDataGridPagination: l
|
|
614
|
+
} = Gn(n, p, u, m, A, y), {
|
|
602
615
|
renderDataGridSidebar: f
|
|
603
|
-
} =
|
|
604
|
-
renderDisableMask:
|
|
605
|
-
} =
|
|
606
|
-
renderDataGridSummary:
|
|
607
|
-
} =
|
|
616
|
+
} = xn(n, x, y, Z, m), {
|
|
617
|
+
renderDisableMask: K
|
|
618
|
+
} = En(), {
|
|
619
|
+
renderDataGridSummary: Ce
|
|
620
|
+
} = Pn(n, u, O), {
|
|
608
621
|
renderHorizontalScrollbar: le
|
|
609
|
-
} =
|
|
610
|
-
renderVerticalScrollbar:
|
|
611
|
-
} =
|
|
612
|
-
renderFilterPanel:
|
|
613
|
-
} =
|
|
614
|
-
renderGroupPanel:
|
|
615
|
-
} =
|
|
616
|
-
function
|
|
617
|
-
var
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
})),
|
|
625
|
-
}),
|
|
626
|
-
}), oe(
|
|
622
|
+
} = Tn(n, r, m), {
|
|
623
|
+
renderVerticalScrollbar: tt
|
|
624
|
+
} = kn(n, r, m), {
|
|
625
|
+
renderFilterPanel: nt
|
|
626
|
+
} = Rn(n, O, u, N, m), {
|
|
627
|
+
renderGroupPanel: lt
|
|
628
|
+
} = Mn(n, u, ve, q, m);
|
|
629
|
+
function at() {
|
|
630
|
+
var a, d;
|
|
631
|
+
const t = Math.ceil(r.value.clientHeight / ie);
|
|
632
|
+
t > P.value && (P.value = t, Re()), ge.value = ((a = T.value) == null ? void 0 : a.clientHeight) || 0, pe.value = ((d = r.value) == null ? void 0 : d.clientWidth) || 0, te();
|
|
633
|
+
}
|
|
634
|
+
Wt(() => {
|
|
635
|
+
r.value && (P.value = Math.max(Math.ceil(r.value.clientHeight / ie), P.value), c.value = ye(0, D.value + j - 1), qt(r.value, at), te(), _t(() => {
|
|
636
|
+
r.value && (pe.value = r.value.clientWidth), T.value && (W.value = T.value.clientWidth, ge.value = T.value.clientHeight);
|
|
637
|
+
})), be.value && de();
|
|
638
|
+
}), Kt(() => {
|
|
639
|
+
}), oe(W, () => {
|
|
627
640
|
});
|
|
628
|
-
function
|
|
629
|
-
|
|
641
|
+
function ot() {
|
|
642
|
+
u.insertNewDataItem(), E();
|
|
630
643
|
}
|
|
631
|
-
function
|
|
632
|
-
|
|
644
|
+
function it() {
|
|
645
|
+
u.insertNewDataItem(c.value.length), E();
|
|
633
646
|
}
|
|
634
|
-
function
|
|
635
|
-
|
|
647
|
+
function ut(t) {
|
|
648
|
+
g.onEditingRow(t);
|
|
636
649
|
}
|
|
637
|
-
function
|
|
638
|
-
|
|
650
|
+
function st(t) {
|
|
651
|
+
u.removeDataItem(t), E();
|
|
639
652
|
}
|
|
640
|
-
function
|
|
641
|
-
|
|
653
|
+
function rt(t) {
|
|
654
|
+
u.removeDataItemById(t), E();
|
|
642
655
|
}
|
|
643
|
-
function
|
|
644
|
-
|
|
656
|
+
function dt(t) {
|
|
657
|
+
g.acceptEditingRow(t);
|
|
645
658
|
}
|
|
646
|
-
function
|
|
647
|
-
|
|
659
|
+
function ct(t) {
|
|
660
|
+
g.cancelEditingRow(t);
|
|
648
661
|
}
|
|
649
|
-
function
|
|
650
|
-
|
|
651
|
-
const
|
|
652
|
-
|
|
653
|
-
|
|
662
|
+
function ft(t) {
|
|
663
|
+
c.value.forEach((a, d) => {
|
|
664
|
+
const v = u.visibleDataItems.value.findIndex((C) => C === a.raw), b = c.value[d - 1];
|
|
665
|
+
t.forEach((C) => {
|
|
666
|
+
a.data[C.field] ? k.updateCellByColumn(a.data[C.field], C, b, a.raw) : a.data[C.field] = k.createCellByColumn(C, v, a.raw, a, b);
|
|
654
667
|
});
|
|
655
668
|
});
|
|
656
669
|
}
|
|
657
|
-
function
|
|
658
|
-
|
|
670
|
+
function Ae(t) {
|
|
671
|
+
t && (w.value = t, ft(w.value), z(w), n.showSetting && L(w), Ve(w.value), me(u, U), te());
|
|
672
|
+
}
|
|
673
|
+
function mt() {
|
|
674
|
+
y.emptyCurrentRowId();
|
|
659
675
|
}
|
|
660
|
-
oe(() =>
|
|
661
|
-
|
|
676
|
+
oe(() => n.showSetting, (t, a) => {
|
|
677
|
+
t !== a && Ae(w.value);
|
|
662
678
|
});
|
|
663
|
-
function
|
|
664
|
-
|
|
679
|
+
function Le(t) {
|
|
680
|
+
A.updatePagination(t);
|
|
665
681
|
}
|
|
666
|
-
function
|
|
667
|
-
|
|
682
|
+
function yt(t, a) {
|
|
683
|
+
t && (u.load(t), c.value = ye(0, D.value + j - 1), a != null && a.keepScrollTop ? m.scrollTo(m.offsetY.value) : E(), c.value.length || (ce.value = []), Te.value && Be.value && Fe()), g.clear();
|
|
668
684
|
}
|
|
669
|
-
oe(
|
|
670
|
-
|
|
671
|
-
}), oe(() =>
|
|
672
|
-
|
|
685
|
+
oe(u.shouldGroupingData, (t, a) => {
|
|
686
|
+
t !== a && (u.updateDataView(), E());
|
|
687
|
+
}), oe(() => n.columns, (t) => {
|
|
688
|
+
Ae(t);
|
|
673
689
|
});
|
|
674
|
-
function
|
|
675
|
-
|
|
690
|
+
function He(t) {
|
|
691
|
+
x.activeRowById(t);
|
|
676
692
|
}
|
|
677
|
-
function
|
|
678
|
-
|
|
679
|
-
|
|
693
|
+
function pt(t, a = {
|
|
694
|
+
isCurrent: !0
|
|
695
|
+
}) {
|
|
696
|
+
a != null && a.isCurrent && He(t), y.selectItemById(t);
|
|
680
697
|
}
|
|
681
|
-
function
|
|
682
|
-
|
|
698
|
+
function gt(t) {
|
|
699
|
+
const a = h.idField.value, d = c.value.find((v) => v.raw[a] === t);
|
|
700
|
+
d && x.clickRowItem(d);
|
|
683
701
|
}
|
|
684
|
-
function
|
|
685
|
-
const
|
|
686
|
-
|
|
702
|
+
function vt(t) {
|
|
703
|
+
const a = h.idField.value, d = c.value.find((v) => v.raw[a] === t);
|
|
704
|
+
d && x.changeRow(d);
|
|
687
705
|
}
|
|
688
|
-
function
|
|
689
|
-
y.selectItemByIds(
|
|
706
|
+
function Ct(t) {
|
|
707
|
+
y.selectItemByIds(t);
|
|
690
708
|
}
|
|
691
|
-
function
|
|
692
|
-
return
|
|
709
|
+
function ht() {
|
|
710
|
+
return c.value;
|
|
693
711
|
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
712
|
+
function St(t) {
|
|
713
|
+
return c.value.filter((a) => t.includes(a.raw[n.idField]));
|
|
696
714
|
}
|
|
697
|
-
function
|
|
715
|
+
function wt() {
|
|
698
716
|
return y.getSelectedItems();
|
|
699
717
|
}
|
|
700
|
-
function
|
|
718
|
+
function bt() {
|
|
701
719
|
return y.getSelectionRow();
|
|
702
720
|
}
|
|
703
|
-
function
|
|
704
|
-
|
|
721
|
+
function Bt() {
|
|
722
|
+
g.endEditCell();
|
|
705
723
|
}
|
|
706
|
-
function
|
|
707
|
-
|
|
724
|
+
function Ft(t, a = {
|
|
725
|
+
clearCurrent: !0
|
|
726
|
+
}) {
|
|
727
|
+
a != null && a.clearCurrent && He(""), y.unSelectItemByIds(t);
|
|
708
728
|
}
|
|
709
|
-
function
|
|
729
|
+
function Ue() {
|
|
710
730
|
y.clearSelection();
|
|
711
731
|
}
|
|
712
|
-
function
|
|
732
|
+
function Ot() {
|
|
713
733
|
return y.currentSelectedDataId.value;
|
|
714
734
|
}
|
|
715
|
-
function
|
|
716
|
-
|
|
735
|
+
function It() {
|
|
736
|
+
m.scrollToBottom();
|
|
717
737
|
}
|
|
718
|
-
function
|
|
719
|
-
|
|
738
|
+
function Dt(t) {
|
|
739
|
+
m.scrollToRowByIndex(t);
|
|
720
740
|
}
|
|
721
|
-
function
|
|
722
|
-
y.keepSelectingOnPaging.value ||
|
|
723
|
-
total:
|
|
741
|
+
function Vt() {
|
|
742
|
+
y.keepSelectingOnPaging.value || Ue(), u.updateVisibleDataSummary(c.value), Le({
|
|
743
|
+
total: u.dataView.value.length,
|
|
724
744
|
index: 1
|
|
725
745
|
});
|
|
726
746
|
}
|
|
727
|
-
const
|
|
728
|
-
activeRowById:
|
|
729
|
-
selectRowById:
|
|
730
|
-
addNewDataItem:
|
|
731
|
-
addNewDataItemAtLast:
|
|
732
|
-
removeDataItem:
|
|
733
|
-
removeDataItemById:
|
|
734
|
-
editDataItem:
|
|
735
|
-
acceptDataItem:
|
|
736
|
-
cancelDataItem:
|
|
737
|
-
selectItemById:
|
|
738
|
-
selectItemByIds:
|
|
739
|
-
updateColumns:
|
|
740
|
-
updateDataSource:
|
|
741
|
-
updatePagination:
|
|
742
|
-
getVisibleData:
|
|
743
|
-
getVisibleDataByIds:
|
|
744
|
-
getSelectedItems:
|
|
745
|
-
getSelectionRow:
|
|
746
|
-
getCurrentRowId:
|
|
747
|
-
endEditCell:
|
|
748
|
-
clickRowItemById:
|
|
749
|
-
clearSelection:
|
|
750
|
-
unSelectItemByIds:
|
|
751
|
-
scrollToBottom:
|
|
752
|
-
scrollToRowByIndex:
|
|
753
|
-
updateDerivedData:
|
|
747
|
+
const We = {
|
|
748
|
+
activeRowById: He,
|
|
749
|
+
selectRowById: vt,
|
|
750
|
+
addNewDataItem: ot,
|
|
751
|
+
addNewDataItemAtLast: it,
|
|
752
|
+
removeDataItem: st,
|
|
753
|
+
removeDataItemById: rt,
|
|
754
|
+
editDataItem: ut,
|
|
755
|
+
acceptDataItem: dt,
|
|
756
|
+
cancelDataItem: ct,
|
|
757
|
+
selectItemById: pt,
|
|
758
|
+
selectItemByIds: Ct,
|
|
759
|
+
updateColumns: Ae,
|
|
760
|
+
updateDataSource: yt,
|
|
761
|
+
updatePagination: Le,
|
|
762
|
+
getVisibleData: ht,
|
|
763
|
+
getVisibleDataByIds: St,
|
|
764
|
+
getSelectedItems: wt,
|
|
765
|
+
getSelectionRow: bt,
|
|
766
|
+
getCurrentRowId: Ot,
|
|
767
|
+
endEditCell: Bt,
|
|
768
|
+
clickRowItemById: gt,
|
|
769
|
+
clearSelection: Ue,
|
|
770
|
+
unSelectItemByIds: Ft,
|
|
771
|
+
scrollToBottom: It,
|
|
772
|
+
scrollToRowByIndex: Dt,
|
|
773
|
+
updateDerivedData: Vt,
|
|
774
|
+
emptyCurrentRowId: mt
|
|
754
775
|
};
|
|
755
|
-
|
|
756
|
-
const
|
|
757
|
-
renderDataArea:
|
|
758
|
-
} =
|
|
759
|
-
renderEmpty:
|
|
760
|
-
} =
|
|
776
|
+
p.expose(We);
|
|
777
|
+
const Gt = jn(n, p, We, O, g, c), {
|
|
778
|
+
renderDataArea: xt
|
|
779
|
+
} = Un(n, p, T, se, Y, xe, Ee, O, g, q, Gt, x, X, m, c, u), Et = I(() => !c.value || !c.value.length), {
|
|
780
|
+
renderEmpty: Pt
|
|
781
|
+
} = Nn(n, p), Tt = I(() => ({
|
|
761
782
|
"d-flex": !0,
|
|
762
|
-
"justify-content-between":
|
|
763
|
-
"justify-content-end":
|
|
783
|
+
"justify-content-between": G.value && H.value,
|
|
784
|
+
"justify-content-end": G.value && !H.value,
|
|
764
785
|
"position-relative": !0,
|
|
765
786
|
"fv-datagrid-pagination": !0
|
|
766
|
-
})),
|
|
787
|
+
})), kt = I(() => ({
|
|
767
788
|
"flex-direction": "row"
|
|
768
|
-
})),
|
|
789
|
+
})), Rt = I(() => ({
|
|
769
790
|
"d-flex": !0,
|
|
770
791
|
"align-items-center": !0
|
|
771
792
|
}));
|
|
772
|
-
|
|
773
|
-
useColumnComposition:
|
|
774
|
-
dataView:
|
|
775
|
-
useFilterComposition:
|
|
793
|
+
Yt("dataGridContext", {
|
|
794
|
+
useColumnComposition: O,
|
|
795
|
+
dataView: u,
|
|
796
|
+
useFilterComposition: N,
|
|
776
797
|
useFitColumnComposition: ee,
|
|
777
|
-
useSortComposition:
|
|
778
|
-
useVirtualScrollComposition:
|
|
779
|
-
})
|
|
798
|
+
useSortComposition: U,
|
|
799
|
+
useVirtualScrollComposition: m
|
|
800
|
+
});
|
|
801
|
+
function Mt(t) {
|
|
802
|
+
let a;
|
|
803
|
+
return i(Hn, {
|
|
804
|
+
class: "f-form-layout farris-form farris-form-controls-inline col-12 col-md-6 col-xl-3 col-el-2"
|
|
805
|
+
}, Wn(a = Object.keys(t.data).filter((d) => {
|
|
806
|
+
var v, b;
|
|
807
|
+
return ((v = t.data[d].column) == null ? void 0 : v.dataType) !== Qe && ((b = t.data[d].column) == null ? void 0 : b.dataType) !== Xe;
|
|
808
|
+
}).map((d) => {
|
|
809
|
+
var b, C;
|
|
810
|
+
const v = t.data[d];
|
|
811
|
+
return i("div", {
|
|
812
|
+
class: "farris-group-wrap w-100"
|
|
813
|
+
}, [i("div", {
|
|
814
|
+
class: "form-group farris-form-group common-group"
|
|
815
|
+
}, [i(zn, {
|
|
816
|
+
text: (b = v.column) == null ? void 0 : b.title,
|
|
817
|
+
title: (C = v.column) == null ? void 0 : C.title
|
|
818
|
+
}, null), i("div", {
|
|
819
|
+
class: "farris-input-wrap"
|
|
820
|
+
}, [v.getEditor(v)])])]);
|
|
821
|
+
})) ? a : {
|
|
822
|
+
default: () => [a]
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
function jt(t, a) {
|
|
826
|
+
const d = {}, v = {}, b = [], C = [], Ye = {};
|
|
827
|
+
Object.keys(a.data).filter((M) => {
|
|
828
|
+
var V, ae;
|
|
829
|
+
return ((V = a.data[M].column) == null ? void 0 : V.dataType) !== Qe && ((ae = a.data[M].column) == null ? void 0 : ae.dataType) !== Xe;
|
|
830
|
+
}).forEach((M) => {
|
|
831
|
+
var ae, qe, $e;
|
|
832
|
+
const V = a.data[M];
|
|
833
|
+
d[M] = V.data, g.endEditByCell(V), v[M] = V.data, b.push(V.column), C.push(V), Ye[M] = ($e = (qe = (ae = V.column) == null ? void 0 : ae.editor) == null ? void 0 : qe.context) == null ? void 0 : $e.editor;
|
|
834
|
+
}), p.emit("endEditRow", {
|
|
835
|
+
row: a,
|
|
836
|
+
cells: C,
|
|
837
|
+
columns: b,
|
|
838
|
+
oldValues: d,
|
|
839
|
+
newValues: v,
|
|
840
|
+
editors: Ye
|
|
841
|
+
}), g.showRowEditPanel.value = !1;
|
|
842
|
+
}
|
|
843
|
+
function Nt() {
|
|
844
|
+
const t = y.currentSelectedDataId.value, a = c.value.find((d) => d.raw[n.idField] === t);
|
|
845
|
+
return a ? i(An, {
|
|
846
|
+
showHeader: !1,
|
|
847
|
+
modelValue: g.showRowEditPanel.value,
|
|
848
|
+
"onUpdate:modelValue": (d) => g.showRowEditPanel.value = d,
|
|
849
|
+
width: 600
|
|
850
|
+
}, {
|
|
851
|
+
default: () => Mt(a),
|
|
852
|
+
footerTemplate: () => i(ze, null, [i(Ze, {
|
|
853
|
+
class: "mr-3",
|
|
854
|
+
type: "secondary",
|
|
855
|
+
onClick: (d) => {
|
|
856
|
+
g.showRowEditPanel.value = !1;
|
|
857
|
+
}
|
|
858
|
+
}, {
|
|
859
|
+
default: () => [he("取消")]
|
|
860
|
+
}), i(Ze, {
|
|
861
|
+
onClick: (d) => {
|
|
862
|
+
jt(d, a);
|
|
863
|
+
}
|
|
864
|
+
}, {
|
|
865
|
+
default: () => [he("确定")]
|
|
866
|
+
})])
|
|
867
|
+
}) : null;
|
|
868
|
+
}
|
|
869
|
+
return () => i(ze, null, [i("div", {
|
|
780
870
|
ref: ue,
|
|
781
|
-
class:
|
|
782
|
-
style:
|
|
783
|
-
onWheel:
|
|
784
|
-
}, [
|
|
785
|
-
ref:
|
|
786
|
-
class:
|
|
787
|
-
style:
|
|
788
|
-
|
|
789
|
-
|
|
871
|
+
class: Me.value,
|
|
872
|
+
style: Ie.value,
|
|
873
|
+
onWheel: ke
|
|
874
|
+
}, [r.value && n.enableFilter && nt(), r.value && lt(), r.value && s.value && e(), i("div", {
|
|
875
|
+
ref: r,
|
|
876
|
+
class: je.value,
|
|
877
|
+
style: Ne.value,
|
|
878
|
+
onTouchstart: (t) => {
|
|
879
|
+
t.stopPropagation(), F.value = !0, m.onTouchstartScrollThumb(t, r);
|
|
880
|
+
},
|
|
881
|
+
onTouchend: (t) => {
|
|
882
|
+
F.value = !1;
|
|
883
|
+
},
|
|
884
|
+
onMouseover: (t) => {
|
|
885
|
+
t.stopPropagation(), F.value = !0;
|
|
790
886
|
},
|
|
791
|
-
onMouseleave: (
|
|
792
|
-
|
|
887
|
+
onMouseleave: (t) => {
|
|
888
|
+
t.stopPropagation(), F.value = !1;
|
|
793
889
|
}
|
|
794
|
-
}, [
|
|
795
|
-
class:
|
|
796
|
-
style:
|
|
797
|
-
}, [
|
|
798
|
-
class:
|
|
799
|
-
}, [i("div", null, ["已选:" +
|
|
890
|
+
}, [r.value && f(c), r.value && xt(), r.value && Et.value && Pt(), r.value && le(), r.value && tt()]), r.value && Ce(), (G.value || H.value) && i("div", {
|
|
891
|
+
class: Tt.value,
|
|
892
|
+
style: kt.value
|
|
893
|
+
}, [H.value && i("div", {
|
|
894
|
+
class: Rt.value
|
|
895
|
+
}, [i("div", null, ["已选:" + ce.value.length, he(" 条")])]), G.value && l()]), o(), Oe.value && K()]), Se() && Nt()]);
|
|
800
896
|
}
|
|
801
|
-
}),
|
|
897
|
+
}), cl = zt(_n);
|
|
802
898
|
export {
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
899
|
+
_n as FDataGrid,
|
|
900
|
+
ul as columnOptions,
|
|
901
|
+
Ln as dataGridProps,
|
|
902
|
+
cl as default,
|
|
903
|
+
rl as editOptions,
|
|
904
|
+
nl as filterOptions,
|
|
905
|
+
tl as groupOptions,
|
|
906
|
+
ll as headerOptions,
|
|
907
|
+
dl as loadingOptions,
|
|
908
|
+
Zn as paginationOptions,
|
|
909
|
+
al as rowNumberOptions,
|
|
910
|
+
ol as rowOptions,
|
|
911
|
+
sl as selectionOptions,
|
|
912
|
+
el as sortOptions,
|
|
913
|
+
il as summaryOptions
|
|
818
914
|
};
|