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