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