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