@farris/ui-vue 1.7.0-beta.4 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +61 -312
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +56 -1481
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +8 -752
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +358 -351
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +110 -266
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +1371 -1284
- package/components/calendar/index.umd.cjs +30 -30
- package/components/code-editor/index.esm.js +169 -237
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +382 -351
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +502 -812
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +197 -183
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +199 -364
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +1501 -1465
- package/components/comment/index.umd.cjs +6 -6
- package/components/common/index.esm.js +136 -100
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.css +1 -1
- package/components/component/index.esm.js +2662 -3647
- package/components/component/index.umd.cjs +1 -8
- package/components/condition/index.esm.js +492 -2449
- package/components/condition/index.umd.cjs +1 -8
- package/components/content-container/index.esm.js +252 -241
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +505 -409
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3326 -3258
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1709 -1634
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +2693 -3021
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +102 -98
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +409 -358
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +124 -373
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +760 -573
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +354 -327
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +413 -359
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +1 -1
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +1535 -1941
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +2 -7317
- package/components/expression-editor/index.umd.cjs +1 -427
- package/components/field-selector/index.esm.js +13 -13
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/fieldset/index.esm.js +140 -123
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1021 -1012
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.css +1 -1
- package/components/filter-condition-editor/index.esm.js +448 -9000
- package/components/filter-condition-editor/index.umd.cjs +1 -427
- package/components/html-template/index.esm.js +167 -147
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image/index.esm.js +372 -352
- package/components/image/index.umd.cjs +2 -2
- package/components/image-cropper/index.esm.js +361 -615
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +247 -325
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +835 -421
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +163 -549
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +39 -836
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +690 -474
- package/components/list-view/index.umd.cjs +6 -8
- package/components/loading/index.esm.js +128 -97
- package/components/loading/index.umd.cjs +2 -2
- package/components/locale/index.esm.js +361 -340
- package/components/locale/index.umd.cjs +5 -5
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +3396 -3368
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +1684 -1584
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +586 -609
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +357 -353
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +325 -318
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +31 -311
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +189 -1633
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +195 -175
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +761 -1057
- package/components/order/index.umd.cjs +7 -9
- package/components/page-footer/index.esm.js +48 -331
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +92 -73
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +195 -472
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +77 -76
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +148 -353
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +74 -68
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +872 -1800
- package/components/property-panel/index.umd.cjs +5 -12
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +4223 -6205
- package/components/query-solution/index.umd.cjs +6 -13
- package/components/response-layout/index.esm.js +206 -170
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1 -1
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +378 -359
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2491 -2653
- package/components/schema-selector/index.umd.cjs +8 -10
- package/components/search-box/index.esm.js +79 -240
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +304 -289
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +8 -179
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +4 -9421
- package/components/sort-condition-editor/index.umd.cjs +1 -427
- package/components/splitter/index.esm.js +142 -1171
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +48 -47
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +460 -513
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +73 -217
- package/components/text/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +380 -375
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +40 -40
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +551 -771
- package/components/transfer/index.umd.cjs +6 -8
- package/components/tree-grid/index.esm.js +250 -235
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +157 -314
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +634 -1125
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +106 -359
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +89 -222
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +199 -290
- package/components/weather/index.umd.cjs +1 -1
- package/designer/accordion/index.esm.js +257 -0
- package/designer/accordion/index.umd.cjs +1 -0
- package/designer/avatar/index.esm.js +227 -0
- package/designer/avatar/index.umd.cjs +1 -0
- package/designer/binding-selector/index.esm.js +792 -0
- package/designer/binding-selector/index.umd.cjs +1 -0
- package/designer/button-edit/index.esm.js +210 -203
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/button-group/index.esm.js +282 -0
- package/designer/button-group/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +51 -45
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +89 -83
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/code-editor/index.esm.js +75 -0
- package/designer/code-editor/index.umd.cjs +1 -0
- package/designer/color-picker/index.esm.js +1096 -0
- package/designer/color-picker/index.umd.cjs +1 -0
- package/designer/combo-list/index.esm.js +1095 -0
- package/designer/combo-list/index.umd.cjs +1 -0
- package/designer/combo-tree/index.esm.js +186 -0
- package/designer/combo-tree/index.umd.cjs +1 -0
- package/designer/component/index.css +1 -0
- package/designer/component/index.esm.js +5002 -0
- package/designer/component/index.umd.cjs +1 -0
- package/designer/condition/index.esm.js +1899 -0
- package/designer/condition/index.umd.cjs +1 -0
- package/designer/data-grid/index.esm.js +5580 -6213
- package/designer/data-grid/index.umd.cjs +10 -17
- package/designer/data-view/index.esm.js +212 -191
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/date-picker/index.esm.js +621 -607
- package/designer/date-picker/index.umd.cjs +1 -1
- package/designer/drawer/index.css +1 -1
- package/designer/drawer/index.esm.js +869 -620
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dropdown/index.esm.js +261 -0
- package/designer/dropdown/index.umd.cjs +1 -0
- package/designer/dynamic-form/index.esm.js +1166 -1384
- package/designer/dynamic-form/index.umd.cjs +1 -8
- package/designer/expression-editor/index.css +1 -0
- package/designer/expression-editor/index.esm.js +7006 -0
- package/designer/expression-editor/index.umd.cjs +427 -0
- package/designer/farris-designer.all.esm.js +10309 -10617
- package/designer/farris-designer.all.umd.cjs +17 -19
- package/designer/filter-condition-editor/index.css +1 -0
- package/designer/filter-condition-editor/index.esm.js +4795 -0
- package/designer/filter-condition-editor/index.umd.cjs +1 -0
- package/designer/html-template/index.esm.js +718 -0
- package/designer/html-template/index.umd.cjs +1 -0
- package/designer/image-cropper/index.esm.js +765 -0
- package/designer/image-cropper/index.umd.cjs +1 -0
- package/designer/index.css +1 -1
- package/designer/input-group/index.esm.js +72 -66
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/json-editor/index.esm.js +83 -0
- package/designer/json-editor/index.umd.cjs +1 -0
- package/designer/language-textbox/index.esm.js +783 -0
- package/designer/language-textbox/index.umd.cjs +8 -0
- package/designer/layout/index.esm.js +430 -0
- package/designer/layout/index.umd.cjs +1 -0
- package/designer/list-nav/index.esm.js +802 -0
- package/designer/list-nav/index.umd.cjs +1 -0
- package/designer/list-view/index.esm.js +864 -844
- package/designer/list-view/index.umd.cjs +7 -9
- package/designer/lookup/index.esm.js +2083 -0
- package/designer/lookup/index.umd.cjs +1 -0
- package/designer/menu-lookup/index.esm.js +46 -0
- package/designer/menu-lookup/index.umd.cjs +1 -0
- package/designer/modal/index.esm.js +137 -29
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/nav/index.esm.js +284 -0
- package/designer/nav/index.umd.cjs +1 -0
- package/designer/number-range/index.esm.js +1616 -0
- package/designer/number-range/index.umd.cjs +1 -0
- package/designer/number-spinner/index.esm.js +19 -17
- package/designer/number-spinner/index.umd.cjs +1 -1
- package/designer/order/index.css +1 -0
- package/designer/order/index.esm.js +2196 -0
- package/designer/order/index.umd.cjs +18 -0
- package/designer/page-footer/index.esm.js +290 -0
- package/designer/page-footer/index.umd.cjs +1 -0
- package/designer/page-header/index.esm.js +1003 -0
- package/designer/page-header/index.umd.cjs +1 -0
- package/designer/pagination/index.esm.js +591 -0
- package/designer/pagination/index.umd.cjs +1 -0
- package/designer/progress/index.esm.js +213 -0
- package/designer/progress/index.umd.cjs +1 -0
- package/designer/radio-group/index.esm.js +978 -949
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +1 -1
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +1471 -1416
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/search-box/index.esm.js +245 -0
- package/designer/search-box/index.umd.cjs +1 -0
- package/designer/section/index.esm.js +83 -78
- package/designer/section/index.umd.cjs +1 -1
- package/designer/smoke-detector/index.css +1 -0
- package/designer/smoke-detector/index.esm.js +178 -0
- package/designer/smoke-detector/index.umd.cjs +1 -0
- package/designer/sort-condition-editor/index.esm.js +138 -0
- package/designer/sort-condition-editor/index.umd.cjs +1 -0
- package/designer/splitter/index.esm.js +1120 -0
- package/designer/splitter/index.umd.cjs +1 -0
- package/designer/step/index.esm.js +226 -0
- package/designer/step/index.umd.cjs +1 -0
- package/designer/switch/index.esm.js +10 -10
- package/designer/switch/index.umd.cjs +1 -1
- package/designer/tabs/index.css +1 -1
- package/designer/tabs/index.esm.js +2447 -2698
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/text/index.esm.js +147 -0
- package/designer/text/index.umd.cjs +1 -0
- package/designer/time-picker/index.esm.js +101 -100
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/transfer/index.esm.js +254 -0
- package/designer/transfer/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +473 -810
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/designer/tree-view/index.esm.js +313 -0
- package/designer/tree-view/index.umd.cjs +1 -0
- package/designer/uploader/index.esm.js +1190 -0
- package/designer/uploader/index.umd.cjs +2 -0
- package/designer/verify-detail/index.esm.js +258 -0
- package/designer/verify-detail/index.umd.cjs +1 -0
- package/designer/video/index.esm.js +136 -0
- package/designer/video/index.umd.cjs +1 -0
- package/designer/weather/index.css +1 -0
- package/designer/weather/index.esm.js +6244 -0
- package/designer/weather/index.umd.cjs +14 -0
- package/farris.all.esm.js +69941 -70514
- package/farris.all.umd.cjs +117 -117
- package/index.css +1 -1
- package/locales/filter-bar/ui/en.json +2 -1
- package/locales/filter-bar/ui/zh-CHS.json +2 -1
- package/locales/filter-bar/ui/zh-CHT.json +2 -1
- package/locales/query-solution/ui/en.json +1 -1
- package/locales/query-solution/ui/zh-CHS.json +1 -1
- package/locales/query-solution/ui/zh-CHT.json +1 -1
- package/locales/ui/en.json +3 -2
- package/locales/ui/zh-CHS.json +3 -2
- package/locales/ui/zh-CHT.json +3 -2
- package/package.json +1 -1
- package/types/accordion/designer.d.ts +44 -0
- package/types/accordion/src/accordion.props.d.ts +0 -1
- package/types/accordion/src/components/accordion-item.props.d.ts +0 -1
- package/types/avatar/designer.d.ts +29 -0
- package/types/avatar/src/avatar.props.d.ts +0 -1
- package/types/avatar/src/property-config/avatar.property-config.d.ts +1 -1
- package/types/{expression-editor/index.d.ts → binding-selector/designer.d.ts} +6 -6
- package/types/binding-selector/index.d.ts +0 -54
- package/types/binding-selector/src/binding-selector.props.d.ts +0 -1
- package/types/button-group/designer.d.ts +29 -0
- package/types/button-group/index.d.ts +15 -0
- package/types/button-group/src/button-group.props.d.ts +0 -1
- package/types/calendar/src/calendar.props.d.ts +1 -0
- package/types/calendar/src/components/month/month-view.component.d.ts +6 -6
- package/types/calendar/src/composition/use-calendar-events.d.ts +1 -1
- package/types/calendar/src/composition/use-locales.d.ts +1 -0
- package/types/calendar/src/property-config/calendar.property-config.d.ts +2 -0
- package/types/capsule/src/capsule-item.component.d.ts +6 -6
- package/types/checkbox/designer.d.ts +2 -0
- package/types/checkbox-group/designer.d.ts +2 -0
- package/types/code-editor/designer.d.ts +5 -0
- package/types/code-editor/index.d.ts +0 -1
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +0 -2
- package/types/color-picker/designer.d.ts +29 -0
- package/types/color-picker/index.d.ts +0 -15
- package/types/color-picker/src/color-picker.props.d.ts +0 -1
- package/types/combo-list/designer.d.ts +29 -0
- package/types/combo-list/src/combo-list.props.d.ts +1 -0
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +6 -0
- package/types/combo-tree/designer.d.ts +5 -0
- package/types/combo-tree/src/combo-tree.props.d.ts +0 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +7 -7
- package/types/comment/src/comment.props.d.ts +4 -0
- package/types/comment/src/designer/comment.design.props.d.ts +4 -0
- package/types/common/index.d.ts +1 -0
- package/types/common/utils/use-mobile.d.ts +1 -0
- package/types/component/designer.d.ts +35 -0
- package/types/component/index.d.ts +0 -2
- package/types/component/src/component.props.d.ts +0 -8
- package/types/component/src/composition/field-tree-builder.d.ts +1 -0
- package/types/components.d.ts +2 -6
- package/types/condition/designer.d.ts +56 -0
- package/types/condition/index.d.ts +0 -55
- package/types/content-container/index.d.ts +3 -2
- package/types/content-container/src/content-container.props.d.ts +1 -0
- package/types/data-grid/designer.d.ts +2 -0
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/designer/grid-field-editor.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +7 -1
- package/types/data-view/composition/use-mobile.d.ts +3 -0
- package/types/data-view/designer/property-config/use-command-option.d.ts +11 -0
- package/types/data-view/index.d.ts +1 -0
- package/types/designer-canvas/src/composition/designer-canvas-changed.d.ts +3 -3
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -0
- package/types/designer-outline/src/designer-outline.component.d.ts +3 -3
- package/types/designer-outline/src/types.d.ts +5 -1
- package/types/drawer/designer.d.ts +12 -0
- package/types/drawer/src/designer/drawer-toolbar.design.props.d.ts +12 -0
- package/types/drawer/src/designer/drawer.design.component.d.ts +8 -0
- package/types/drawer/src/designer/drawer.design.props.d.ts +4 -0
- package/types/drawer/src/schema/schema-mapper.d.ts +1 -0
- package/types/drawer/src/schema/schema-resolver.d.ts +1 -0
- package/types/dropdown/designer.d.ts +6 -0
- package/types/dropdown/index.d.ts +27 -6
- package/types/dropdown/src/dropdown.item.component.d.ts +2 -2
- package/types/dropdown/src/dropdown.props.d.ts +0 -1
- package/types/dynamic-form/designer.d.ts +3 -1
- package/types/dynamic-form/index.d.ts +4 -3
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +6 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +11 -0
- package/types/dynamic-resolver/index.d.ts +3 -0
- package/types/dynamic-resolver/src/props-resolver.d.ts +2 -0
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
- package/types/dynamic-view/src/components/maps.d.ts +883 -1
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/dynamic-view/src/types.d.ts +4 -0
- package/types/expression-editor/designer.d.ts +9 -0
- package/types/field-selector/index.d.ts +2 -1
- package/types/fieldset/index.d.ts +3 -2
- package/types/fieldset/src/fieldset.props.d.ts +1 -0
- package/types/filter-bar/src/composition/types.d.ts +1 -1
- package/types/filter-bar/src/composition/use-size.d.ts +2 -2
- package/types/filter-bar/src/locale/locale.d.ts +1 -0
- package/types/filter-condition-editor/designer.d.ts +10 -0
- package/types/filter-condition-editor/index.d.ts +0 -9
- package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +0 -1
- package/types/html-template/designer.d.ts +31 -0
- package/types/html-template/src/designer/html-template.design.props.d.ts +9 -0
- package/types/html-template/src/html-template.props.d.ts +2 -0
- package/types/image-cropper/designer.d.ts +4 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +0 -1
- package/types/index.d.ts +0 -1
- package/types/input-group/designer.d.ts +2 -0
- package/types/json-editor/designer.d.ts +5 -0
- package/types/json-editor/src/components/editable-combo/editable-combo.component.d.ts +3 -3
- package/types/json-editor/src/components/editable-combo/popup-container.component.d.ts +3 -3
- package/types/json-editor/src/json-editor.props.d.ts +0 -1
- package/types/language-textbox/index.d.ts +6 -6
- package/types/language-textbox/src/language-textbox.component.d.ts +2 -2
- package/types/language-textbox/src/language-textbox.props.d.ts +1 -0
- package/types/layout/index.d.ts +1 -0
- package/types/layout/src/components/layout-pane.props.d.ts +0 -1
- package/types/layout/src/layout.props.d.ts +0 -1
- package/types/list-nav/index.d.ts +24 -5
- package/types/list-nav/src/list-nav.props.d.ts +0 -1
- package/types/list-view/index.d.ts +1 -0
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/list-view/src/designer/list-view.design.props.d.ts +1 -0
- package/types/list-view/src/list-view-table.props.d.ts +1 -0
- package/types/loading/index.d.ts +6 -6
- package/types/loading/src/loading.component.d.ts +3 -3
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +6 -6
- package/types/lookup/src/lookup.props.d.ts +1 -0
- package/types/lookup/src/property-config/external-lookup.property-config.d.ts +1 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +1 -0
- package/types/menu-lookup/designer.d.ts +5 -0
- package/types/menu-lookup/src/menu-lookup.props.d.ts +0 -1
- package/types/message-box/index.d.ts +6 -6
- package/types/message-box/src/message-box.component.d.ts +3 -3
- package/types/modal/designer.d.ts +2 -0
- package/types/modal/index.d.ts +30 -24
- package/types/modal/src/modal.component.d.ts +15 -12
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/nav/designer.d.ts +6 -0
- package/types/nav/index.d.ts +24 -20
- package/types/nav/src/nav.props.d.ts +0 -1
- package/types/notify/index.d.ts +3 -3
- package/types/notify/src/notify.component.d.ts +2 -2
- package/types/number-range/designer.d.ts +29 -0
- package/types/number-range/src/number-range.props.d.ts +0 -1
- package/types/number-spinner/src/composition/types.d.ts +1 -0
- package/types/order/designer.d.ts +6 -0
- package/types/order/index.d.ts +36 -5
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +0 -1
- package/types/page-footer/designer.d.ts +6 -0
- package/types/page-footer/index.d.ts +0 -2
- package/types/page-footer/src/page-footer.props.d.ts +0 -1
- package/types/page-header/index.d.ts +3 -2
- package/types/page-header/src/designer/page-header.design.props.d.ts +20 -0
- package/types/page-header/src/page-header.props.d.ts +2 -0
- package/types/pagination/designer.d.ts +29 -0
- package/types/pagination/index.d.ts +15 -0
- package/types/pagination/src/pagination.props.d.ts +0 -1
- package/types/popover/index.d.ts +3 -3
- package/types/popover/src/composition/use-resize.d.ts +1 -1
- package/types/popover/src/popover.component.d.ts +2 -2
- package/types/progress/designer.d.ts +29 -0
- package/types/progress/src/progress.props.d.ts +0 -1
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/query-solution/index.d.ts +4 -4
- package/types/query-solution/src/composition/types.d.ts +8 -2
- package/types/query-solution/src/composition/use-header.d.ts +2 -2
- package/types/query-solution/src/composition/use-solution-utils.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -0
- package/types/query-solution/src/designer/solution-preset-config/solution-preset.props.d.ts +1 -0
- package/types/query-solution/src/query-solution.props.d.ts +1 -0
- package/types/radio-group/designer.d.ts +4 -1
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +1 -0
- package/types/response-layout/index.d.ts +3 -2
- package/types/response-layout/src/component/response-layout-item.props.d.ts +1 -0
- package/types/response-layout/src/property-config/response-layout-splitter/response-layout-splitter.props.d.ts +1 -0
- package/types/response-layout/src/response-layout.props.d.ts +1 -0
- package/types/response-toolbar/designer.d.ts +2 -1
- package/types/response-toolbar/src/designer/response-toolbar.design.props.d.ts +1 -0
- package/types/search-box/designer.d.ts +52 -0
- package/types/search-box/index.d.ts +1 -17
- package/types/search-box/src/components/search-box-container.component.d.ts +3 -3
- package/types/search-box/src/search-box.props.d.ts +0 -1
- package/types/section/designer.d.ts +1 -0
- package/types/smoke-detector/designer.d.ts +6 -0
- package/types/smoke-detector/index.d.ts +0 -2
- package/types/smoke-detector/src/smoke-detector.props.d.ts +0 -1
- package/types/sort-condition-editor/designer.d.ts +9 -0
- package/types/sort-condition-editor/index.d.ts +2 -7
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +0 -1
- package/types/splitter/designer.d.ts +32 -0
- package/types/splitter/index.d.ts +1 -0
- package/types/splitter/src/components/splitter-pane.props.d.ts +0 -1
- package/types/splitter/src/splitter.props.d.ts +0 -1
- package/types/step/designer.d.ts +6 -0
- package/types/tabs/designer.d.ts +1 -0
- package/types/tabs/index.d.ts +0 -1
- package/types/tabs/src/composition/types.d.ts +1 -0
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +1 -0
- package/types/tags/index.d.ts +3 -3
- package/types/tags/src/tags.component.d.ts +1 -1
- package/types/text/designer.d.ts +6 -0
- package/types/text/index.d.ts +24 -20
- package/types/text/src/text.props.d.ts +0 -1
- package/types/time-picker/src/components/time.component.d.ts +3 -3
- package/types/transfer/designer.d.ts +35 -0
- package/types/transfer/src/transfer.props.d.ts +0 -1
- package/types/tree-view/designer.d.ts +29 -0
- package/types/tree-view/src/tree-view.props.d.ts +0 -1
- package/types/uploader/designer.d.ts +141 -0
- package/types/uploader/index.d.ts +6 -6
- package/types/uploader/src/components/upload-progress.component.d.ts +3 -3
- package/types/uploader/src/uploader.component.d.ts +3 -3
- package/types/uploader/src/uploader.props.d.ts +0 -1
- package/types/verify-detail/designer.d.ts +6 -0
- package/types/verify-detail/index.d.ts +58 -5
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +0 -1
- package/types/video/designer.d.ts +6 -0
- package/types/video/index.d.ts +24 -20
- package/types/video/src/video.props.d.ts +0 -1
- package/components/sort-condition-editor/index.css +0 -1
- package/package.zip +0 -0
- package/types/designer-toolbox/index.d.ts +0 -3
- package/types/designer-toolbox/src/toolbox.component.d.ts +0 -14
- package/types/designer-toolbox/src/toolbox.props.d.ts +0 -29
- package/types/designer-toolbox/src/types.d.ts +0 -21
- package/types/designer.d.ts +0 -13
- package/types/flow-canvas/index.d.ts +0 -3
- package/types/flow-canvas/src/components/flow-node-item.component.d.ts +0 -8
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +0 -3
- package/types/flow-canvas/src/composition/types.d.ts +0 -42
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-connections.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-curve.d.ts +0 -4
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-drawing.d.ts +0 -4
- package/types/flow-canvas/src/flow-canvas.component.d.ts +0 -8
- package/types/flow-canvas/src/flow-canvas.props.d.ts +0 -3
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +0 -2
- package/types/layout/src/designer/layout-pane.design.component.d.ts +0 -8
- package/types/layout/src/designer/layout-use-designer-rules.d.ts +0 -2
- package/types/layout/src/designer/layout.design.component.d.ts +0 -8
- package/types/layout/src/schema/schema-mapper.d.ts +0 -2
- package/types/layout/src/schema/schema-resolver.d.ts +0 -2
- package/types/list-nav/src/designer/use-designer-rules.d.ts +0 -2
- package/types/list-nav/src/property-config/list-nav.property-config.d.ts +0 -8
- package/types/list-nav/src/schema/schema-mapper.d.ts +0 -2
- package/types/list-nav/src/schema/schema-resolver.d.ts +0 -2
- /package/{components → designer}/condition/index.css +0 -0
- /package/{components → designer}/uploader/index.css +0 -0
- /package/types/{list-nav/src/designer/list-nav.design.component.d.ts → dynamic-form/src/component/form-control/form-control.component.d.ts} +0 -0
|
@@ -1,324 +1,327 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { getCustomStyle as
|
|
5
|
-
import
|
|
6
|
-
import { resolveAppearance as
|
|
7
|
-
import { ref as
|
|
8
|
-
import { DgControl as
|
|
9
|
-
import { useFilter as
|
|
10
|
-
import { LocaleService as
|
|
11
|
-
import { FCheckbox as
|
|
12
|
-
import { cloneDeep as
|
|
13
|
-
function
|
|
14
|
-
function t(
|
|
15
|
-
const
|
|
16
|
-
let c =
|
|
1
|
+
var ge = Object.defineProperty;
|
|
2
|
+
var ve = (o, e, t) => e in o ? ge(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var $ = (o, e, t) => ve(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { getCustomStyle as Q, getCustomClass as Z, excludeProperties as he, withInstall as we } from "../../components/common/index.esm.js";
|
|
5
|
+
import ye, { listViewProps as Ce, listViewTableProps as be, FListViewTable as Ie } from "../../components/list-view/index.esm.js";
|
|
6
|
+
import { resolveAppearance as Ve, createPropsResolver as ne, getPropsResolverGenerator as se, createCollectionBindingResolver as Se } from "../../components/dynamic-resolver/index.esm.js";
|
|
7
|
+
import { ref as b, computed as U, createVNode as l, Fragment as j, watch as Me, withModifiers as ke, withDirectives as xe, vModelText as Ee, createTextVNode as O, defineComponent as ie, inject as K, onMounted as oe } from "vue";
|
|
8
|
+
import { DgControl as A, canvasChanged as Te, refreshCanvas as Pe, useDesignerComponent as ae } from "../../components/designer-canvas/index.esm.js";
|
|
9
|
+
import { useFilter as Fe, useIdentify as Re, useHierarchy as Ne, useGroupData as Be, useDataView as $e, useSelection as Ue, useRow as De, useEdit as Oe, useVisualDataBound as Ae, useVisualDataCell as Le, useVisualDataRow as _e, useVisualGroupRow as je, useVisualSummaryRow as Ge, useVisualData as qe } from "../../components/data-view/index.esm.js";
|
|
10
|
+
import { LocaleService as He } from "../../components/locale/index.esm.js";
|
|
11
|
+
import { FCheckbox as X } from "../../components/checkbox/index.esm.js";
|
|
12
|
+
import { cloneDeep as We } from "lodash-es";
|
|
13
|
+
function ze(o, e) {
|
|
14
|
+
function t(i) {
|
|
15
|
+
const s = [];
|
|
16
|
+
let c = i.nextNode();
|
|
17
17
|
for (; c; )
|
|
18
|
-
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
function n(
|
|
22
|
-
const c = document.createTreeWalker(
|
|
23
|
-
return t(c).map((
|
|
24
|
-
const
|
|
25
|
-
let
|
|
26
|
-
for (;
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
18
|
+
s.push(c), c = i.nextNode();
|
|
19
|
+
return s;
|
|
20
|
+
}
|
|
21
|
+
function n(i, s) {
|
|
22
|
+
const c = document.createTreeWalker(i, NodeFilter.SHOW_TEXT);
|
|
23
|
+
return t(c).map((p) => ({ textNode: p, text: (p.textContent || "").toLocaleLowerCase() })).map(({ textNode: p, text: f }) => {
|
|
24
|
+
const g = [];
|
|
25
|
+
let w = 0;
|
|
26
|
+
for (; w < f.length; ) {
|
|
27
|
+
const y = f.indexOf(s, w);
|
|
28
|
+
if (y === -1)
|
|
29
29
|
break;
|
|
30
|
-
|
|
30
|
+
g.push(y), w = y + s.length;
|
|
31
31
|
}
|
|
32
|
-
return
|
|
33
|
-
const
|
|
34
|
-
return
|
|
32
|
+
return g.map((y) => {
|
|
33
|
+
const h = new Range();
|
|
34
|
+
return h.setStart(p, y), h.setEnd(p, y + s.length), h;
|
|
35
35
|
});
|
|
36
36
|
}).flat();
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
if (!CSS.highlights || (CSS.highlights.clear(), !
|
|
38
|
+
function a(i) {
|
|
39
|
+
if (!CSS.highlights || (CSS.highlights.clear(), !i || !e))
|
|
40
40
|
return;
|
|
41
|
-
const
|
|
41
|
+
const s = n(e.value, i.toLocaleLowerCase()), c = new Highlight(...s);
|
|
42
42
|
CSS.highlights.set("search-result", c);
|
|
43
43
|
}
|
|
44
|
-
return { search:
|
|
44
|
+
return { search: a };
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const
|
|
48
|
-
var
|
|
49
|
-
return ((
|
|
46
|
+
function ee(o, e, t, n, a, i, s, c, r, u) {
|
|
47
|
+
const d = b(o.size), p = b(o.textField), f = b(o.titleField), g = b(o.disableField), w = U(() => {
|
|
48
|
+
var m, T;
|
|
49
|
+
return ((m = o.selection) == null ? void 0 : m.multiSelect) && ((T = o.selection) == null ? void 0 : T.showCheckbox);
|
|
50
50
|
}), {
|
|
51
|
-
onMouseenterItem:
|
|
52
|
-
onMouseoverItem:
|
|
53
|
-
onMouseoutItem:
|
|
54
|
-
} =
|
|
51
|
+
onMouseenterItem: y,
|
|
52
|
+
onMouseoverItem: h,
|
|
53
|
+
onMouseoutItem: S
|
|
54
|
+
} = i, {
|
|
55
55
|
getKey: k,
|
|
56
|
-
listViewItemClass:
|
|
56
|
+
listViewItemClass: x,
|
|
57
57
|
listViewItemStyle: F,
|
|
58
|
-
onCheckItem:
|
|
59
|
-
onClickItem:
|
|
60
|
-
} =
|
|
61
|
-
const
|
|
58
|
+
onCheckItem: B,
|
|
59
|
+
onClickItem: v
|
|
60
|
+
} = s, M = U(() => {
|
|
61
|
+
const m = {
|
|
62
62
|
"text-overflow": "ellipsis",
|
|
63
63
|
overflow: "hidden",
|
|
64
64
|
"white-space": "nowrap"
|
|
65
65
|
};
|
|
66
|
-
return o.itemClass ?
|
|
67
|
-
margin:
|
|
68
|
-
...
|
|
66
|
+
return o.itemClass ? m : {
|
|
67
|
+
margin: d.value === "small" ? "0.25rem 0" : "8px 0",
|
|
68
|
+
...m
|
|
69
69
|
};
|
|
70
70
|
});
|
|
71
|
-
function
|
|
72
|
-
return
|
|
73
|
-
class:
|
|
74
|
-
id: k(
|
|
75
|
-
key: k(
|
|
76
|
-
style: F(
|
|
77
|
-
onClick: (
|
|
78
|
-
onMouseenter: (
|
|
79
|
-
onMouseover: (
|
|
80
|
-
onMouseout: (
|
|
81
|
-
}, [
|
|
71
|
+
function C(m, T, R) {
|
|
72
|
+
return m.checked = c.findIndexInSelectedItems(m) > -1, l("li", {
|
|
73
|
+
class: x(m, T),
|
|
74
|
+
id: k(m, T),
|
|
75
|
+
key: k(m, T),
|
|
76
|
+
style: F(m, T),
|
|
77
|
+
onClick: (N) => v(m, T, N),
|
|
78
|
+
onMouseenter: (N) => y(N, m, T),
|
|
79
|
+
onMouseover: (N) => h(N, m, T),
|
|
80
|
+
onMouseout: (N) => S(N, m, T)
|
|
81
|
+
}, [w.value && l("div", {
|
|
82
82
|
class: "f-list-select",
|
|
83
|
-
onClick: (
|
|
84
|
-
}, [
|
|
85
|
-
id: "list-" + k(
|
|
83
|
+
onClick: (N) => N.stopPropagation()
|
|
84
|
+
}, [l(X, {
|
|
85
|
+
id: "list-" + k(m, T),
|
|
86
86
|
customClass: "listview-checkbox float-left",
|
|
87
|
-
disabled:
|
|
88
|
-
checked:
|
|
89
|
-
"onUpdate:checked": (
|
|
90
|
-
onChange: (
|
|
91
|
-
|
|
87
|
+
disabled: m[g.value],
|
|
88
|
+
checked: m.checked,
|
|
89
|
+
"onUpdate:checked": (N) => m.checked = N,
|
|
90
|
+
onChange: (N) => {
|
|
91
|
+
B(m, T, !N.checked);
|
|
92
92
|
}
|
|
93
|
-
}, null)]),
|
|
93
|
+
}, null)]), l("div", {
|
|
94
94
|
class: "f-list-content"
|
|
95
|
-
}, [
|
|
95
|
+
}, [l("div", {
|
|
96
96
|
class: o.itemContentClass,
|
|
97
|
-
style:
|
|
98
|
-
title:
|
|
99
|
-
}, [
|
|
97
|
+
style: M.value,
|
|
98
|
+
title: m.raw[f.value] || m.raw[p.value]
|
|
99
|
+
}, [m.raw[p.value]])])]);
|
|
100
100
|
}
|
|
101
101
|
return {
|
|
102
|
-
renderItem:
|
|
102
|
+
renderItem: C
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
const
|
|
107
|
-
onMouseenterItem:
|
|
108
|
-
onMouseoverItem:
|
|
109
|
-
onMouseoutItem:
|
|
110
|
-
} =
|
|
111
|
-
getKey:
|
|
112
|
-
listViewItemClass:
|
|
105
|
+
function Ke(o, e, t, n, a, i, s, c, r, u) {
|
|
106
|
+
const d = b(o.multiSelect), p = b(o.disableField), f = b(o.textField), {
|
|
107
|
+
onMouseenterItem: g,
|
|
108
|
+
onMouseoverItem: w,
|
|
109
|
+
onMouseoutItem: y
|
|
110
|
+
} = i, {
|
|
111
|
+
getKey: h,
|
|
112
|
+
listViewItemClass: S,
|
|
113
113
|
listViewItemStyle: k,
|
|
114
|
-
onCheckItem:
|
|
115
|
-
onClickItem: F
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
114
|
+
onCheckItem: x,
|
|
115
|
+
onClickItem: F,
|
|
116
|
+
updateSelectedItems: B
|
|
117
|
+
} = s;
|
|
118
|
+
function v(C, m, T) {
|
|
119
|
+
return o.contentTemplate ? l(j, null, [o.contentTemplate({
|
|
120
|
+
item: C.raw,
|
|
121
|
+
index: m,
|
|
122
|
+
selectedItem: T
|
|
123
|
+
})]) : e.slots.content ? l(j, null, [e.slots.content && e.slots.content({
|
|
124
|
+
item: C.raw,
|
|
125
|
+
index: m,
|
|
126
|
+
selectedItem: T
|
|
127
|
+
})]) : l("div", {
|
|
127
128
|
style: "margin: 10px 0;"
|
|
128
|
-
}, [
|
|
129
|
-
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
132
|
-
class:
|
|
133
|
-
id:
|
|
134
|
-
key:
|
|
135
|
-
style: k(
|
|
136
|
-
onClick: (
|
|
137
|
-
onMouseenter: (
|
|
138
|
-
onMouseover: (
|
|
139
|
-
onMouseout: (
|
|
140
|
-
}, [
|
|
129
|
+
}, [C.raw[f.value || "name"]]);
|
|
130
|
+
}
|
|
131
|
+
function M(C, m, T) {
|
|
132
|
+
return l("li", {
|
|
133
|
+
class: S(C, m),
|
|
134
|
+
id: h(C, m),
|
|
135
|
+
key: h(C, m),
|
|
136
|
+
style: k(C, m),
|
|
137
|
+
onClick: (R) => F(C, m, R),
|
|
138
|
+
onMouseenter: (R) => g(R, C, m),
|
|
139
|
+
onMouseover: (R) => w(R, C, m),
|
|
140
|
+
onMouseout: (R) => y(R, C, m)
|
|
141
|
+
}, [d.value && l("div", {
|
|
141
142
|
class: "f-list-select",
|
|
142
|
-
onClick: (
|
|
143
|
-
}, [
|
|
144
|
-
id: "list-" +
|
|
143
|
+
onClick: (R) => R.stopPropagation()
|
|
144
|
+
}, [l(X, {
|
|
145
|
+
id: "list-" + h(C, m),
|
|
145
146
|
customClass: "listview-checkbox",
|
|
146
|
-
disabled:
|
|
147
|
-
checked:
|
|
148
|
-
"onUpdate:checked": (
|
|
149
|
-
onChange: (
|
|
150
|
-
|
|
147
|
+
disabled: C[p.value],
|
|
148
|
+
checked: C.checked,
|
|
149
|
+
"onUpdate:checked": (R) => C.checked = R,
|
|
150
|
+
onChange: (R) => {
|
|
151
|
+
x(C, m, !R.checked), B();
|
|
152
|
+
}
|
|
153
|
+
}, null)]), l("div", {
|
|
151
154
|
class: "f-list-content"
|
|
152
|
-
}, [
|
|
155
|
+
}, [v(C, m, T)])]);
|
|
153
156
|
}
|
|
154
157
|
return {
|
|
155
|
-
renderItem:
|
|
158
|
+
renderItem: M
|
|
156
159
|
};
|
|
157
160
|
}
|
|
158
|
-
function
|
|
159
|
-
const
|
|
160
|
-
onMouseenterItem:
|
|
161
|
-
onMouseoverItem:
|
|
162
|
-
onMouseoutItem:
|
|
163
|
-
} = s, {
|
|
164
|
-
getKey: w,
|
|
165
|
-
listViewItemClass: x,
|
|
166
|
-
onCheckItem: k,
|
|
167
|
-
onClickItem: E
|
|
161
|
+
function Xe(o, e, t, n, a, i, s, c, r, u) {
|
|
162
|
+
const d = b(o.multiSelect), p = b(o.disableField), f = b(o.textField), {
|
|
163
|
+
onMouseenterItem: g,
|
|
164
|
+
onMouseoverItem: w,
|
|
165
|
+
onMouseoutItem: y
|
|
168
166
|
} = i, {
|
|
167
|
+
getKey: h,
|
|
168
|
+
listViewItemClass: S,
|
|
169
|
+
onCheckItem: k,
|
|
170
|
+
onClickItem: x
|
|
171
|
+
} = s, {
|
|
169
172
|
dragstart: F,
|
|
170
|
-
dragenter:
|
|
171
|
-
dragover:
|
|
172
|
-
dragend:
|
|
173
|
+
dragenter: B,
|
|
174
|
+
dragover: v,
|
|
175
|
+
dragend: M
|
|
173
176
|
} = n, {
|
|
174
|
-
removeItem:
|
|
175
|
-
} = r,
|
|
176
|
-
margin:
|
|
177
|
+
removeItem: C
|
|
178
|
+
} = r, m = U(() => ({
|
|
179
|
+
margin: d.value ? "10px 0" : "10px 0px 10px 14px"
|
|
177
180
|
}));
|
|
178
|
-
function
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
184
|
-
style:
|
|
185
|
-
onMouseenter: (
|
|
186
|
-
}, [
|
|
187
|
-
}
|
|
188
|
-
function
|
|
189
|
-
return e.slots.itemContent ? e.slots.itemContent :
|
|
190
|
-
}
|
|
191
|
-
const
|
|
192
|
-
function
|
|
193
|
-
return
|
|
194
|
-
class:
|
|
195
|
-
id:
|
|
196
|
-
key:
|
|
197
|
-
onClick: (P) =>
|
|
198
|
-
onMouseenter: (P) =>
|
|
199
|
-
onMouseover: (P) =>
|
|
200
|
-
onMouseout: (P) =>
|
|
181
|
+
function T(V, I = "") {
|
|
182
|
+
const D = V.target;
|
|
183
|
+
D.title = D.scrollWidth > D.clientWidth ? I : "";
|
|
184
|
+
}
|
|
185
|
+
function R(V) {
|
|
186
|
+
return l("div", {
|
|
187
|
+
style: m.value,
|
|
188
|
+
onMouseenter: (I) => T(I, V.raw[f.value || "name"])
|
|
189
|
+
}, [V.raw[f.value || "name"]]);
|
|
190
|
+
}
|
|
191
|
+
function N() {
|
|
192
|
+
return e.slots.itemContent ? e.slots.itemContent : R;
|
|
193
|
+
}
|
|
194
|
+
const L = N();
|
|
195
|
+
function E(V, I, D) {
|
|
196
|
+
return l("li", {
|
|
197
|
+
class: S(V, I),
|
|
198
|
+
id: h(V, I),
|
|
199
|
+
key: h(V, I),
|
|
200
|
+
onClick: (P) => x(V, I, P),
|
|
201
|
+
onMouseenter: (P) => g(P, V, I),
|
|
202
|
+
onMouseover: (P) => w(P, V, I),
|
|
203
|
+
onMouseout: (P) => y(P, V, I),
|
|
201
204
|
draggable: "true",
|
|
202
|
-
onDragstart: (P) => F(P,
|
|
203
|
-
onDragenter: (P) =>
|
|
204
|
-
onDragend: (P) =>
|
|
205
|
-
onDragover: (P) =>
|
|
206
|
-
}, [
|
|
205
|
+
onDragstart: (P) => F(P, V, I),
|
|
206
|
+
onDragenter: (P) => B(P, I),
|
|
207
|
+
onDragend: (P) => M(P, V),
|
|
208
|
+
onDragover: (P) => v(P)
|
|
209
|
+
}, [d.value && l("div", {
|
|
207
210
|
class: "f-list-select",
|
|
208
211
|
onClick: (P) => P.stopPropagation()
|
|
209
|
-
}, [
|
|
210
|
-
id: "list-" +
|
|
212
|
+
}, [l(X, {
|
|
213
|
+
id: "list-" + h(V, I),
|
|
211
214
|
customClass: "listview-checkbox",
|
|
212
|
-
disabled:
|
|
213
|
-
checked:
|
|
214
|
-
"onUpdate:checked": (P) =>
|
|
215
|
-
onChange: (P) => k(
|
|
216
|
-
}, null)]),
|
|
215
|
+
disabled: V[p.value] || !V.checked,
|
|
216
|
+
checked: V.checked,
|
|
217
|
+
"onUpdate:checked": (P) => V.checked = P,
|
|
218
|
+
onChange: (P) => k(V, I, !P.checked)
|
|
219
|
+
}, null)]), l("div", {
|
|
217
220
|
class: "f-list-content"
|
|
218
|
-
}, [
|
|
221
|
+
}, [L(V)]), l("div", {
|
|
219
222
|
class: "f-list-remove",
|
|
220
223
|
onClick: (P) => {
|
|
221
|
-
P.stopPropagation(),
|
|
224
|
+
P.stopPropagation(), C(I);
|
|
222
225
|
}
|
|
223
|
-
}, [
|
|
226
|
+
}, [l("div", {
|
|
224
227
|
class: "f-list-remove-icon"
|
|
225
|
-
}, [
|
|
228
|
+
}, [l("i", {
|
|
226
229
|
class: "f-icon f-icon-remove_face"
|
|
227
|
-
}, null)])]),
|
|
230
|
+
}, null)])]), l("div", {
|
|
228
231
|
class: "f-list-handle"
|
|
229
|
-
}, [
|
|
232
|
+
}, [l("div", null, [l("i", {
|
|
230
233
|
class: "f-icon f-icon-drag-vertical"
|
|
231
234
|
}, null)])])]);
|
|
232
235
|
}
|
|
233
236
|
return {
|
|
234
|
-
renderItem:
|
|
237
|
+
renderItem: E
|
|
235
238
|
};
|
|
236
239
|
}
|
|
237
|
-
function
|
|
238
|
-
var
|
|
239
|
-
const
|
|
240
|
-
collpaseGroupIconClass:
|
|
241
|
-
} =
|
|
242
|
-
toggleGroupRow:
|
|
243
|
-
} =
|
|
244
|
-
function
|
|
245
|
-
k.collapse = !k.collapse, t.value =
|
|
246
|
-
}
|
|
247
|
-
function
|
|
248
|
-
return e.slots.group ?
|
|
249
|
-
item:
|
|
240
|
+
function Ye(o, e, t, n, a, i, s, c, r, u) {
|
|
241
|
+
var h;
|
|
242
|
+
const d = b(((h = o.group) == null ? void 0 : h.groupFields) || []), {
|
|
243
|
+
collpaseGroupIconClass: p
|
|
244
|
+
} = a, {
|
|
245
|
+
toggleGroupRow: f
|
|
246
|
+
} = u;
|
|
247
|
+
function g(S, k) {
|
|
248
|
+
k.collapse = !k.collapse, t.value = f(k.collapse ? "collapse" : "expand", k, t.value);
|
|
249
|
+
}
|
|
250
|
+
function w(S, k, x) {
|
|
251
|
+
return e.slots.group ? l(j, null, [e.slots.content && e.slots.group({
|
|
252
|
+
item: S.raw,
|
|
250
253
|
index: k,
|
|
251
|
-
selectedItem:
|
|
252
|
-
})]) :
|
|
254
|
+
selectedItem: x
|
|
255
|
+
})]) : l("div", {
|
|
253
256
|
class: "f-navlookup-recentHeader",
|
|
254
|
-
onClick: (F) =>
|
|
255
|
-
}, [
|
|
257
|
+
onClick: (F) => g(F, S)
|
|
258
|
+
}, [l("div", {
|
|
256
259
|
class: "fv-grid-group-row-icon"
|
|
257
|
-
}, [
|
|
258
|
-
class:
|
|
259
|
-
}, null)]),
|
|
260
|
+
}, [l("span", {
|
|
261
|
+
class: p(S)
|
|
262
|
+
}, null)]), l("div", {
|
|
260
263
|
class: "f-navlookup-recommandLabel"
|
|
261
|
-
}, [
|
|
264
|
+
}, [S.raw[d.value[S.layer]]])]);
|
|
262
265
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
266
|
+
function y(S, k, x) {
|
|
267
|
+
return S.layer > -1 && w(S, k, x);
|
|
265
268
|
}
|
|
266
269
|
return {
|
|
267
|
-
renderItem:
|
|
270
|
+
renderItem: y
|
|
268
271
|
};
|
|
269
272
|
}
|
|
270
|
-
function
|
|
271
|
-
const { dataView:
|
|
272
|
-
function
|
|
273
|
-
if (c > -1 && c <
|
|
274
|
-
if (o != null && o.checkBeforeRemoveItem && !o.checkBeforeRemoveItem(
|
|
273
|
+
function Je(o, e, t, n) {
|
|
274
|
+
const { dataView: a } = t, { updateSelectedItems: i } = n;
|
|
275
|
+
function s(c) {
|
|
276
|
+
if (c > -1 && c < a.value.length) {
|
|
277
|
+
if (o != null && o.checkBeforeRemoveItem && !o.checkBeforeRemoveItem(a.value[c]))
|
|
275
278
|
return;
|
|
276
|
-
const r =
|
|
277
|
-
|
|
279
|
+
const r = a.value.splice(c, 1);
|
|
280
|
+
i(), e.emit("removeItem", r[0]);
|
|
278
281
|
}
|
|
279
282
|
}
|
|
280
|
-
return { removeItem:
|
|
283
|
+
return { removeItem: s };
|
|
281
284
|
}
|
|
282
|
-
function
|
|
283
|
-
const
|
|
285
|
+
function Qe(o, e, t, n, a, i, s, c, r, u) {
|
|
286
|
+
const d = b(o.view), p = b(o.view === "CardView"), f = b({}), g = Je(o, e, n, r), w = U(() => ({
|
|
284
287
|
"f-list-view-group": !0,
|
|
285
288
|
"f-list-view-group-multiselect": o.multiSelect,
|
|
286
|
-
"d-flex":
|
|
287
|
-
"flex-wrap":
|
|
288
|
-
})),
|
|
289
|
-
U(() =>
|
|
290
|
-
function
|
|
291
|
-
return
|
|
292
|
-
}
|
|
293
|
-
const k =
|
|
294
|
-
renderItem:
|
|
295
|
-
} = k(o, e, t,
|
|
289
|
+
"d-flex": p.value,
|
|
290
|
+
"flex-wrap": p.value
|
|
291
|
+
})), y = U(() => !!t.value && t.value.length > 0), h = U(() => t.value.length === 0);
|
|
292
|
+
U(() => h.value && !e.slots.empty);
|
|
293
|
+
function S() {
|
|
294
|
+
return d.value === "SingleView" ? ee : d.value === "DraggableView" ? Xe : (d.value === "ContentView" || d.value === "CardView") && (o.contentTemplate || e.slots.content) ? Ke : ee;
|
|
295
|
+
}
|
|
296
|
+
const k = S(), {
|
|
297
|
+
renderItem: x
|
|
298
|
+
} = k(o, e, t, u, a, i, r, s, g, c), {
|
|
296
299
|
renderItem: F
|
|
297
|
-
} =
|
|
298
|
-
function
|
|
299
|
-
return t.value.filter((
|
|
300
|
+
} = Ye(o, e, t, u, a, i, r, s, g, c), B = [x, F];
|
|
301
|
+
function v() {
|
|
302
|
+
return t.value.filter((m) => m.visible !== !1).map((m, T) => B[m.type](m, T, f));
|
|
300
303
|
}
|
|
301
|
-
function
|
|
302
|
-
return
|
|
304
|
+
function M() {
|
|
305
|
+
return l("div", {
|
|
303
306
|
class: "f-list-view-emptydata",
|
|
304
307
|
style: "margin: 0 auto;"
|
|
305
|
-
}, [
|
|
308
|
+
}, [l("p", {
|
|
306
309
|
class: "f-empty-title"
|
|
307
|
-
}, [o.emptyTemplate ? o.emptyTemplate() : e.slots.empty ? e.slots.empty() :
|
|
310
|
+
}, [o.emptyTemplate ? o.emptyTemplate() : e.slots.empty ? e.slots.empty() : He.getLocaleValue("listView.emptyMessage")])]);
|
|
308
311
|
}
|
|
309
|
-
function
|
|
310
|
-
return
|
|
311
|
-
class:
|
|
312
|
+
function C() {
|
|
313
|
+
return l("ul", {
|
|
314
|
+
class: w.value,
|
|
312
315
|
style: "list-style: none;"
|
|
313
|
-
}, [
|
|
316
|
+
}, [y.value && v(), h.value && M()]);
|
|
314
317
|
}
|
|
315
318
|
return {
|
|
316
|
-
renderListArea:
|
|
319
|
+
renderListArea: C
|
|
317
320
|
};
|
|
318
321
|
}
|
|
319
|
-
function
|
|
322
|
+
function Ze(o, e, t) {
|
|
320
323
|
function n() {
|
|
321
|
-
return e.slots.header &&
|
|
324
|
+
return e.slots.header && l("div", {
|
|
322
325
|
class: "f-list-view-header"
|
|
323
326
|
}, [e.slots.header()]);
|
|
324
327
|
}
|
|
@@ -326,324 +329,327 @@ function Xe(o, e, t) {
|
|
|
326
329
|
renderHeader: n
|
|
327
330
|
};
|
|
328
331
|
}
|
|
329
|
-
function
|
|
330
|
-
const n =
|
|
331
|
-
function r(
|
|
332
|
-
|
|
332
|
+
function te(o, e, t) {
|
|
333
|
+
const n = b(o.headerClass), a = b(o.placeholder), i = b(""), s = U(() => !i.value), c = U(() => !!i.value);
|
|
334
|
+
function r(f) {
|
|
335
|
+
i.value = "";
|
|
333
336
|
}
|
|
334
|
-
|
|
335
|
-
o.enableHighlightSearch && t.search(
|
|
337
|
+
Me(i, (f) => {
|
|
338
|
+
o.enableHighlightSearch && t.search(f), e.emit("afterSearch", f);
|
|
336
339
|
});
|
|
337
|
-
const
|
|
338
|
-
const
|
|
340
|
+
const u = U(() => {
|
|
341
|
+
const f = {
|
|
339
342
|
"form-group": !0,
|
|
340
343
|
"farris-form-group": !0
|
|
341
344
|
};
|
|
342
|
-
return n.value && n.value.split(" ").reduce((
|
|
345
|
+
return n.value && n.value.split(" ").reduce((w, y) => (w[y] = !0, w), f), f;
|
|
343
346
|
});
|
|
344
|
-
function
|
|
347
|
+
function d(f) {
|
|
345
348
|
}
|
|
346
|
-
function
|
|
347
|
-
return
|
|
349
|
+
function p() {
|
|
350
|
+
return l("div", {
|
|
348
351
|
class: "f-list-view-header",
|
|
349
|
-
onClick:
|
|
350
|
-
}, [
|
|
351
|
-
class:
|
|
352
|
-
}, [
|
|
352
|
+
onClick: ke(() => d, ["prevent", "stop"])
|
|
353
|
+
}, [l("div", {
|
|
354
|
+
class: u.value
|
|
355
|
+
}, [l("div", {
|
|
353
356
|
class: "farris-input-wrap"
|
|
354
|
-
}, [
|
|
357
|
+
}, [l("div", {
|
|
355
358
|
class: "f-cmp-inputgroup"
|
|
356
|
-
}, [
|
|
359
|
+
}, [l("div", {
|
|
357
360
|
class: "input-group f-state-editable"
|
|
358
|
-
}, [
|
|
361
|
+
}, [xe(l("input", {
|
|
359
362
|
class: "form-control f-utils-fill text-left",
|
|
360
|
-
"onUpdate:modelValue": (
|
|
363
|
+
"onUpdate:modelValue": (f) => i.value = f,
|
|
361
364
|
name: "input-group-value",
|
|
362
365
|
type: "text",
|
|
363
|
-
placeholder:
|
|
366
|
+
placeholder: a.value,
|
|
364
367
|
autocomplete: "off"
|
|
365
|
-
}, null), [[
|
|
368
|
+
}, null), [[Ee, i.value]]), l("div", {
|
|
366
369
|
class: "input-group-append"
|
|
367
|
-
}, [c.value &&
|
|
370
|
+
}, [c.value && l("span", {
|
|
368
371
|
class: "input-group-text input-group-clear",
|
|
369
|
-
onClick: (
|
|
370
|
-
}, [
|
|
372
|
+
onClick: (f) => r()
|
|
373
|
+
}, [l("i", {
|
|
371
374
|
class: "f-icon f-icon-close-circle"
|
|
372
|
-
}, null)]),
|
|
375
|
+
}, null)]), s.value && l("span", {
|
|
373
376
|
class: "input-group-text"
|
|
374
|
-
}, [
|
|
377
|
+
}, [l("span", {
|
|
375
378
|
class: "f-icon f-icon-search"
|
|
376
379
|
}, null)])])])])])])]);
|
|
377
380
|
}
|
|
378
381
|
return {
|
|
379
|
-
renderHeader:
|
|
382
|
+
renderHeader: p
|
|
380
383
|
};
|
|
381
384
|
}
|
|
382
|
-
function
|
|
383
|
-
const o =
|
|
384
|
-
function
|
|
385
|
-
n.value =
|
|
385
|
+
function et() {
|
|
386
|
+
const o = b(""), e = b(-1), t = b(""), n = b(-1), a = b(!1);
|
|
387
|
+
function i(p, f, g) {
|
|
388
|
+
n.value = g;
|
|
386
389
|
}
|
|
387
|
-
function
|
|
388
|
-
|
|
390
|
+
function s(p, f, g) {
|
|
391
|
+
a.value || (n.value = g);
|
|
389
392
|
}
|
|
390
|
-
function c(
|
|
393
|
+
function c(p, f, g) {
|
|
391
394
|
n.value = -1;
|
|
392
395
|
}
|
|
393
396
|
function r() {
|
|
394
|
-
|
|
395
|
-
}
|
|
396
|
-
function d() {
|
|
397
|
-
l.value = !1;
|
|
397
|
+
a.value = !0;
|
|
398
398
|
}
|
|
399
399
|
function u() {
|
|
400
|
+
a.value = !1;
|
|
401
|
+
}
|
|
402
|
+
function d() {
|
|
400
403
|
e.value = -1, o.value = "";
|
|
401
404
|
}
|
|
402
405
|
return {
|
|
403
406
|
activeIndex: e,
|
|
404
407
|
focusedItemId: t,
|
|
405
408
|
hoverIndex: n,
|
|
406
|
-
clearActiveItem:
|
|
407
|
-
onMouseenterItem:
|
|
408
|
-
onMouseoverItem:
|
|
409
|
+
clearActiveItem: d,
|
|
410
|
+
onMouseenterItem: i,
|
|
411
|
+
onMouseoverItem: s,
|
|
409
412
|
onMouseoutItem: c,
|
|
410
|
-
resumeHover:
|
|
413
|
+
resumeHover: u,
|
|
411
414
|
suspendHover: r
|
|
412
415
|
};
|
|
413
416
|
}
|
|
414
|
-
function
|
|
415
|
-
const
|
|
416
|
-
let
|
|
417
|
-
function
|
|
418
|
-
const
|
|
419
|
-
|
|
420
|
-
}
|
|
421
|
-
function
|
|
422
|
-
const { left:
|
|
423
|
-
return f.style.cssText = `
|
|
417
|
+
function tt(o, e, t, n) {
|
|
418
|
+
const a = b(o.idField), { dataView: i } = t, s = b(-1), c = b(!1), { activeIndex: r, focusedItemId: u, hoverIndex: d, resumeHover: p, suspendHover: f } = n;
|
|
419
|
+
let g, w = 0, y = 0;
|
|
420
|
+
function h(v, M) {
|
|
421
|
+
const C = v - w, m = M - y;
|
|
422
|
+
g.style.left = parseInt(g.style.left) + C + "px", g.style.top = parseInt(g.style.top) + m + "px", w = v, y = M;
|
|
423
|
+
}
|
|
424
|
+
function S(v) {
|
|
425
|
+
const { left: M, top: C } = v.getBoundingClientRect(), m = v.cloneNode(!0);
|
|
426
|
+
return m.className = m.className + " f-listview-drag-moving", m.style.cssText = `
|
|
424
427
|
position:absolute;
|
|
425
|
-
left:${
|
|
426
|
-
top:${document.documentElement.scrollTop ?
|
|
428
|
+
left:${M}px;
|
|
429
|
+
top:${document.documentElement.scrollTop ? C + document.documentElement.scrollTop : C}px;
|
|
427
430
|
z-index: 999999;
|
|
428
|
-
border: 1px solid #e2e3e5;
|
|
429
431
|
pointer-events: none;
|
|
430
|
-
background-color: #edf5ff;
|
|
431
432
|
border-radius: 10px;
|
|
432
433
|
margin: 4px 2px;
|
|
433
434
|
display: flex;
|
|
434
435
|
align-items: center;
|
|
435
436
|
float: none;
|
|
436
437
|
text-align: initial;
|
|
437
|
-
width:${getComputedStyle(
|
|
438
|
-
height:${getComputedStyle(
|
|
439
|
-
`,
|
|
438
|
+
width:${getComputedStyle(v).width};
|
|
439
|
+
height:${getComputedStyle(v).height};
|
|
440
|
+
`, m.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", m.children[0].children[0].style.cssText = `
|
|
440
441
|
margin: 10px 0px 10px 14px;
|
|
441
442
|
overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
|
|
442
|
-
`,
|
|
443
|
+
`, m.children[1].style.cssText = "width: 30px;padding: 0 14px 0 0", m.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(m), m;
|
|
443
444
|
}
|
|
444
|
-
function k(
|
|
445
|
-
if (
|
|
446
|
-
if (
|
|
447
|
-
const
|
|
448
|
-
|
|
445
|
+
function k(v, M, C) {
|
|
446
|
+
if (v.stopPropagation(), f(), M) {
|
|
447
|
+
if (g = S(v.target), v.dataTransfer) {
|
|
448
|
+
const m = new Image();
|
|
449
|
+
m.src = "", v.dataTransfer.setDragImage(m, 0, 0);
|
|
449
450
|
}
|
|
450
|
-
|
|
451
|
-
|
|
451
|
+
w = v.pageX, y = v.pageY, setTimeout(() => {
|
|
452
|
+
s.value = C, c.value = !0, M.moving = !0;
|
|
452
453
|
});
|
|
453
454
|
}
|
|
454
455
|
}
|
|
455
|
-
function
|
|
456
|
-
if (
|
|
457
|
-
const
|
|
458
|
-
|
|
456
|
+
function x(v, M) {
|
|
457
|
+
if (v.preventDefault(), s.value !== M) {
|
|
458
|
+
const C = i.value[s.value], m = i.value;
|
|
459
|
+
m.splice(s.value, 1), m.splice(M, 0, C), s.value = M, h(v.pageX, v.pageY);
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
|
-
function F(
|
|
462
|
-
|
|
462
|
+
function F(v) {
|
|
463
|
+
v.preventDefault(), v.dataTransfer && (v.dataTransfer.dropEffect = "move"), h(v.pageX, v.pageY);
|
|
463
464
|
}
|
|
464
|
-
function
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
}), c.value = !1,
|
|
465
|
+
function B(v, M) {
|
|
466
|
+
M && (M.moving = !1, g && (document.body.removeChild(g), g = null)), i.value.forEach((C, m) => {
|
|
467
|
+
C.__fv_index__ = m;
|
|
468
|
+
}), c.value = !1, p(), d.value = M.raw.__fv_index__, r.value = M.raw.__fv_index__, u.value = M.raw[a.value], e.emit("change", i.value), e.emit("activeChange", [M.raw]);
|
|
468
469
|
}
|
|
469
470
|
return {
|
|
470
471
|
dragstart: k,
|
|
471
|
-
dragenter:
|
|
472
|
+
dragenter: x,
|
|
472
473
|
dragover: F,
|
|
473
|
-
dragend:
|
|
474
|
+
dragend: B,
|
|
474
475
|
isDragging: c
|
|
475
476
|
};
|
|
476
477
|
}
|
|
477
|
-
function
|
|
478
|
-
const
|
|
479
|
-
|
|
480
|
-
const
|
|
481
|
-
let
|
|
482
|
-
return
|
|
478
|
+
function nt(o, e, t, n, a, i) {
|
|
479
|
+
const s = b(o.idField), c = b(o.disableField), r = b(o.draggable);
|
|
480
|
+
b(o.itemClass);
|
|
481
|
+
const u = b(o.selection.multiSelect ?? !1), d = b(o.selection.multiSelectMode), { isDragging: p } = n, { activeIndex: f, focusedItemId: g, hoverIndex: w } = a, { clearSelection: y, getSelectedItems: h, toggleSelectItem: S, currentSelectedDataId: k } = i, x = b(h()), F = (E) => x.value.length === 0 ? !1 : x.value.some((V) => {
|
|
482
|
+
let I = "";
|
|
483
|
+
return V.data ? I = V.data[s.value] : I = V[s.value], I === E;
|
|
483
484
|
});
|
|
484
|
-
function
|
|
485
|
-
|
|
485
|
+
function B() {
|
|
486
|
+
x.value = h();
|
|
486
487
|
}
|
|
487
|
-
function
|
|
488
|
-
return
|
|
488
|
+
function v(E, V) {
|
|
489
|
+
return E.raw[s.value] != null ? E.raw[s.value] : "";
|
|
489
490
|
}
|
|
490
|
-
function
|
|
491
|
-
const
|
|
491
|
+
function M(E, V) {
|
|
492
|
+
const I = {
|
|
492
493
|
"f-list-view-group-item": !0,
|
|
493
494
|
"f-list-view-draggable-item": r.value,
|
|
494
|
-
"f-un-click": !
|
|
495
|
-
"f-un-select": !!
|
|
495
|
+
"f-un-click": !E.checked,
|
|
496
|
+
"f-un-select": !!E.raw[c.value],
|
|
496
497
|
"f-listview-active": (
|
|
497
498
|
// 多选
|
|
498
|
-
|
|
499
|
-
!
|
|
499
|
+
u.value && F(v(E)) || // 单选
|
|
500
|
+
!u.value && E.raw[s.value] === k.value
|
|
500
501
|
),
|
|
501
|
-
"f-listview-hover": !
|
|
502
|
-
moving: !!
|
|
502
|
+
"f-listview-hover": !p.value && V === w.value,
|
|
503
|
+
moving: !!E.moving
|
|
503
504
|
};
|
|
504
505
|
if (typeof o.itemClass == "string")
|
|
505
|
-
return
|
|
506
|
+
return Z(I, o.itemClass);
|
|
506
507
|
if (typeof o.itemClass == "function") {
|
|
507
|
-
const
|
|
508
|
-
return
|
|
508
|
+
const D = o.itemClass(E);
|
|
509
|
+
return Z(I, D);
|
|
509
510
|
}
|
|
510
|
-
return
|
|
511
|
-
}
|
|
512
|
-
function
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
!d.value && T.raw[i.value] === k.value
|
|
517
|
-
), $ = {};
|
|
518
|
-
if (V && ($.backgroundColor = "#dae9ff"), typeof o.itemStyle == "string")
|
|
519
|
-
return X($, o.itemStyle);
|
|
511
|
+
return I;
|
|
512
|
+
}
|
|
513
|
+
function C(E, V) {
|
|
514
|
+
const I = {};
|
|
515
|
+
if (typeof o.itemStyle == "string")
|
|
516
|
+
return Q(I, o.itemStyle);
|
|
520
517
|
if (typeof o.itemStyle == "function") {
|
|
521
|
-
const
|
|
522
|
-
return
|
|
518
|
+
const D = o.itemStyle(E);
|
|
519
|
+
return Q(I, D);
|
|
523
520
|
}
|
|
524
|
-
return
|
|
521
|
+
return I;
|
|
525
522
|
}
|
|
526
|
-
const
|
|
527
|
-
function
|
|
528
|
-
|
|
523
|
+
const m = U(() => !u.value);
|
|
524
|
+
function T(E, V, I) {
|
|
525
|
+
E.checked = I, !E.raw[c.value] && (m.value && (g.value = E.raw[s.value]), S(E));
|
|
529
526
|
}
|
|
530
|
-
const
|
|
531
|
-
function
|
|
532
|
-
if (
|
|
533
|
-
|
|
527
|
+
const R = U(() => u.value && d.value === "OnCheckClearByClick"), N = U(() => !u.value || u.value && (d.value === "OnCheckAndClick" || d.value === "OnClick"));
|
|
528
|
+
function L(E, V, I) {
|
|
529
|
+
if (E.raw[c.value]) {
|
|
530
|
+
I == null || I.preventDefault(), I == null || I.stopPropagation();
|
|
534
531
|
return;
|
|
535
532
|
}
|
|
536
|
-
|
|
533
|
+
k.value = E.raw[s.value], g.value = E.raw[s.value], f.value = V, R.value && y(), N.value && (S(E), B()), e.emit("clickItem", { data: x.value, index: V, dataItem: E.raw }), e.emit("activeChange", x.value);
|
|
537
534
|
}
|
|
538
535
|
return {
|
|
539
|
-
getKey:
|
|
540
|
-
selectedItems:
|
|
541
|
-
listViewItemClass:
|
|
542
|
-
listViewItemStyle:
|
|
543
|
-
updateSelectedItems:
|
|
544
|
-
onCheckItem:
|
|
545
|
-
onClickItem:
|
|
536
|
+
getKey: v,
|
|
537
|
+
selectedItems: x,
|
|
538
|
+
listViewItemClass: M,
|
|
539
|
+
listViewItemStyle: C,
|
|
540
|
+
updateSelectedItems: B,
|
|
541
|
+
onCheckItem: T,
|
|
542
|
+
onClickItem: L
|
|
546
543
|
};
|
|
547
544
|
}
|
|
548
|
-
const
|
|
549
|
-
["appearance",
|
|
550
|
-
]),
|
|
551
|
-
function
|
|
545
|
+
const q = /* @__PURE__ */ new Map([
|
|
546
|
+
["appearance", Ve]
|
|
547
|
+
]), st = "root-viewmodel";
|
|
548
|
+
function it(o, e) {
|
|
552
549
|
const {
|
|
553
550
|
formSchemaUtils: t,
|
|
554
551
|
designViewModelUtils: n
|
|
555
552
|
} = e;
|
|
556
|
-
function
|
|
553
|
+
function a(d) {
|
|
557
554
|
return {
|
|
558
|
-
id: `${
|
|
559
|
-
code: `${
|
|
560
|
-
name:
|
|
561
|
-
bindTo:
|
|
562
|
-
parent:
|
|
555
|
+
id: `${d.componentId}-component-viewmodel`,
|
|
556
|
+
code: `${d.componentId}-component-viewmodel`,
|
|
557
|
+
name: d.componentName,
|
|
558
|
+
bindTo: d.bindTo,
|
|
559
|
+
parent: st,
|
|
563
560
|
fields: [],
|
|
564
561
|
commands: [],
|
|
565
562
|
states: [],
|
|
566
563
|
enableValidation: !0
|
|
567
564
|
};
|
|
568
565
|
}
|
|
569
|
-
function
|
|
570
|
-
const
|
|
571
|
-
return Object.assign(
|
|
572
|
-
id: `${
|
|
573
|
-
component: `${
|
|
574
|
-
}),
|
|
575
|
-
}
|
|
576
|
-
function
|
|
577
|
-
var
|
|
578
|
-
const
|
|
579
|
-
if (["double-list-template", "tree-list-template", "list-template"].includes(
|
|
580
|
-
return
|
|
581
|
-
const
|
|
582
|
-
if (
|
|
566
|
+
function i(d) {
|
|
567
|
+
const p = o.getSchemaByType("component-ref");
|
|
568
|
+
return Object.assign(p, {
|
|
569
|
+
id: `${d.componentId}-component-ref`,
|
|
570
|
+
component: `${d.componentId}-component`
|
|
571
|
+
}), p;
|
|
572
|
+
}
|
|
573
|
+
function s(d, p, f) {
|
|
574
|
+
var h, S, k, x;
|
|
575
|
+
const g = (S = (h = p == null ? void 0 : p.parentComponentInstance) == null ? void 0 : h.schema) == null ? void 0 : S.type, w = (x = (k = t.getFormSchema()) == null ? void 0 : k.module) == null ? void 0 : x.templateId;
|
|
576
|
+
if (["double-list-template", "tree-list-template", "list-template"].includes(w))
|
|
577
|
+
return d;
|
|
578
|
+
const y = [A["content-container"].type, A["response-layout-item"].type, A["splitter-pane"].type, A.drawer.type];
|
|
579
|
+
if (g && y.includes(g)) {
|
|
583
580
|
const F = o.getSchemaByType(
|
|
584
581
|
"section",
|
|
585
582
|
{
|
|
586
|
-
parentComponentInstance:
|
|
587
|
-
mainTitle:
|
|
583
|
+
parentComponentInstance: p.parentComponentInstance,
|
|
584
|
+
mainTitle: p.componentName
|
|
588
585
|
},
|
|
589
586
|
e
|
|
590
587
|
);
|
|
591
588
|
if (F && F.contents && F.contents.length) {
|
|
592
|
-
const
|
|
593
|
-
return
|
|
589
|
+
const B = F.contents[0];
|
|
590
|
+
return B.contents = [d], F;
|
|
594
591
|
}
|
|
595
592
|
}
|
|
596
|
-
return
|
|
597
|
-
}
|
|
598
|
-
function c(
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
593
|
+
return d;
|
|
594
|
+
}
|
|
595
|
+
function c(d) {
|
|
596
|
+
var w, y, h;
|
|
597
|
+
const p = o.getSchemaByType("list-view");
|
|
598
|
+
let f = !1;
|
|
599
|
+
const g = (h = (y = (w = d.parentComponentInstance) == null ? void 0 : w.schema) == null ? void 0 : y.appearance) == null ? void 0 : h.class;
|
|
600
|
+
return g && g.includes("f-page-main") && (f = !0), Object.assign(p, {
|
|
601
|
+
id: d.componentId + "-listView",
|
|
602
602
|
appearance: {
|
|
603
|
-
class: "f-grid-is-sub"
|
|
603
|
+
class: f ? "" : "f-grid-is-sub"
|
|
604
604
|
},
|
|
605
605
|
type: "list-view",
|
|
606
|
-
dataSource:
|
|
606
|
+
dataSource: d.dataSource || "",
|
|
607
607
|
pagination: {
|
|
608
608
|
enable: !1
|
|
609
609
|
}
|
|
610
|
-
}), [
|
|
611
|
-
}
|
|
612
|
-
function r(
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
610
|
+
}), [p];
|
|
611
|
+
}
|
|
612
|
+
function r(d) {
|
|
613
|
+
var y, h, S;
|
|
614
|
+
const p = o.getSchemaByType("component"), f = c(d);
|
|
615
|
+
let g = !1;
|
|
616
|
+
const w = (S = (h = (y = d.parentComponentInstance) == null ? void 0 : y.schema) == null ? void 0 : h.appearance) == null ? void 0 : S.class;
|
|
617
|
+
return w && w.includes("f-page-main") && (g = !0), Object.assign(p, {
|
|
618
|
+
id: `${d.componentId}-component`,
|
|
619
|
+
viewModel: `${d.componentId}-component-viewmodel`,
|
|
620
|
+
componentType: d.componentType,
|
|
621
|
+
contents: f,
|
|
622
|
+
appearance: {
|
|
623
|
+
class: g ? "f-struct-wrapper f-utils-fill-flex-column" : ""
|
|
624
|
+
}
|
|
625
|
+
}), p;
|
|
626
|
+
}
|
|
627
|
+
function u(d) {
|
|
628
|
+
const p = i(d), f = r(d), g = a(d), w = t.getFormSchema();
|
|
629
|
+
return w.module.viewmodels.push(g), w.module.components.push(f), n.assembleDesignViewModel(), s(p, d);
|
|
630
|
+
}
|
|
631
|
+
return { createComponent: u };
|
|
626
632
|
}
|
|
627
|
-
function
|
|
628
|
-
var
|
|
629
|
-
const
|
|
630
|
-
if (
|
|
631
|
-
const
|
|
632
|
-
componentId: `list-view-${
|
|
633
|
-
componentName: ((
|
|
633
|
+
function H(o, e, t, n) {
|
|
634
|
+
var i, s, c, r, u, d;
|
|
635
|
+
const a = t.parentComponentInstance;
|
|
636
|
+
if (a && n) {
|
|
637
|
+
const p = Math.random().toString(36).slice(2, 6), f = {
|
|
638
|
+
componentId: `list-view-${p}`,
|
|
639
|
+
componentName: ((i = t.bindingSourceContext) == null ? void 0 : i.entityTitle) || ((c = (s = t.bindingSourceContext) == null ? void 0 : s.bindingEntity) == null ? void 0 : c.name) || `列表-${p}`,
|
|
634
640
|
componentType: "list-view",
|
|
635
|
-
parentContainerId:
|
|
636
|
-
parentComponentInstance:
|
|
641
|
+
parentContainerId: a.schema.id,
|
|
642
|
+
parentComponentInstance: a,
|
|
637
643
|
// editable: true,
|
|
638
644
|
bindTo: ((r = t.bindingSourceContext) == null ? void 0 : r.bindTo) || "",
|
|
639
|
-
dataSource: (
|
|
645
|
+
dataSource: (d = (u = t.bindingSourceContext) == null ? void 0 : u.bindingEntity) == null ? void 0 : d.label
|
|
640
646
|
// selectedFields: context.bindingSourceContext?.bindingEntityFields
|
|
641
|
-
}, { createComponent:
|
|
642
|
-
return
|
|
647
|
+
}, { createComponent: g } = it(o, n);
|
|
648
|
+
return g(f);
|
|
643
649
|
} else
|
|
644
650
|
return e;
|
|
645
651
|
}
|
|
646
|
-
const
|
|
652
|
+
const ot = "https://json-schema.org/draft/2020-12/schema", at = "https://farris-design.gitee.io/list-view.schema.json", lt = "list-view", rt = "A Farris Component", ct = "object", dt = {
|
|
647
653
|
id: {
|
|
648
654
|
description: "The unique identifier for list-view",
|
|
649
655
|
type: "string"
|
|
@@ -735,55 +741,61 @@ const tt = "https://json-schema.org/draft/2020-12/schema", nt = "https://farris-
|
|
|
735
741
|
type: "string",
|
|
736
742
|
default: ""
|
|
737
743
|
}
|
|
738
|
-
},
|
|
744
|
+
}, ut = [
|
|
739
745
|
"id",
|
|
740
746
|
"type"
|
|
741
|
-
],
|
|
747
|
+
], pt = {
|
|
742
748
|
onClickItem: "行点击事件"
|
|
743
|
-
},
|
|
744
|
-
$schema:
|
|
745
|
-
$id:
|
|
746
|
-
title:
|
|
747
|
-
description:
|
|
748
|
-
type:
|
|
749
|
-
properties:
|
|
750
|
-
required:
|
|
751
|
-
events:
|
|
752
|
-
},
|
|
749
|
+
}, le = {
|
|
750
|
+
$schema: ot,
|
|
751
|
+
$id: at,
|
|
752
|
+
title: lt,
|
|
753
|
+
description: rt,
|
|
754
|
+
type: ct,
|
|
755
|
+
properties: dt,
|
|
756
|
+
required: ut,
|
|
757
|
+
events: pt
|
|
758
|
+
}, Y = he(Ce, "headerTemplate"), _t = ne(Y, le, q, H), re = se(
|
|
759
|
+
Y,
|
|
760
|
+
le,
|
|
761
|
+
q,
|
|
762
|
+
H
|
|
763
|
+
), z = {
|
|
753
764
|
"tab-page": { type: "tab-page" },
|
|
754
765
|
section: { type: "section" },
|
|
755
766
|
"list-view": { name: "列表" }
|
|
756
767
|
};
|
|
757
|
-
function
|
|
768
|
+
function mt(o) {
|
|
758
769
|
const { formSchemaUtils: e, formStateMachineUtils: t } = o;
|
|
759
|
-
function n(r,
|
|
770
|
+
function n(r, u = "") {
|
|
760
771
|
return {
|
|
761
|
-
path:
|
|
772
|
+
path: u + r.code,
|
|
762
773
|
field: r.id,
|
|
763
774
|
fullPath: r.code
|
|
764
775
|
};
|
|
765
776
|
}
|
|
766
|
-
function
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
function s(r) {
|
|
770
|
-
const d = e.getRootViewModelId(), u = l(r);
|
|
771
|
-
if (r === d)
|
|
772
|
-
return u;
|
|
773
|
-
const m = l(d, "root-component.");
|
|
774
|
-
return [...u, ...m];
|
|
777
|
+
function a(r, u = "") {
|
|
778
|
+
const d = e.getViewModelById(r);
|
|
779
|
+
return d ? d.states.map((p) => n(p, u)) : [];
|
|
775
780
|
}
|
|
776
781
|
function i(r) {
|
|
782
|
+
const u = e.getRootViewModelId(), d = a(r);
|
|
783
|
+
if (r === u)
|
|
784
|
+
return d;
|
|
785
|
+
const p = a(u, "root-component.");
|
|
786
|
+
return [...d, ...p];
|
|
787
|
+
}
|
|
788
|
+
function s(r) {
|
|
777
789
|
return r.binding && r.binding.path || r.id || "";
|
|
778
790
|
}
|
|
779
791
|
function c() {
|
|
780
792
|
return t && t.getRenderStates() || [];
|
|
781
793
|
}
|
|
782
|
-
return { getVariables:
|
|
794
|
+
return { getVariables: i, getControlName: s, getStateMachines: c };
|
|
783
795
|
}
|
|
784
|
-
class
|
|
796
|
+
class ft {
|
|
785
797
|
constructor(e) {
|
|
786
|
-
|
|
798
|
+
$(this, "sessionVariables", [
|
|
787
799
|
{
|
|
788
800
|
key: "CurrentSysOrgName",
|
|
789
801
|
name: "当前组织Name",
|
|
@@ -820,7 +832,7 @@ class ut {
|
|
|
820
832
|
description: "当前登录的语言编号,例如简体中文返回'zh-CHS',英文返回'en',繁体中文'zh-CHT'"
|
|
821
833
|
}
|
|
822
834
|
]);
|
|
823
|
-
|
|
835
|
+
$(this, "expressionNames", {
|
|
824
836
|
compute: "计算表达式",
|
|
825
837
|
dependency: "依赖表达式",
|
|
826
838
|
validate: "验证表达式",
|
|
@@ -829,20 +841,20 @@ class ut {
|
|
|
829
841
|
readonly: "只读表达式",
|
|
830
842
|
required: "必填表达式"
|
|
831
843
|
});
|
|
832
|
-
|
|
833
|
-
convertFrom: (n,
|
|
834
|
-
const c =
|
|
844
|
+
$(this, "getExpressionConverter", (e, t) => ({
|
|
845
|
+
convertFrom: (n, a, i, s) => {
|
|
846
|
+
const c = i.getExpressionRuleValue(e, t || a);
|
|
835
847
|
return c && c.value || "";
|
|
836
848
|
},
|
|
837
|
-
convertTo: (n,
|
|
849
|
+
convertTo: (n, a, i, s, c) => {
|
|
838
850
|
var r;
|
|
839
|
-
if (
|
|
840
|
-
const
|
|
841
|
-
((r =
|
|
842
|
-
(
|
|
843
|
-
)) ? n.dictPickingExpressionId =
|
|
851
|
+
if (a === "dataPicking" && (i != null && i.target)) {
|
|
852
|
+
const u = `${i.target}_dataPicking`;
|
|
853
|
+
((r = i.rules) == null ? void 0 : r.some(
|
|
854
|
+
(p) => p.id === u && p.value
|
|
855
|
+
)) ? n.dictPickingExpressionId = u : delete n.dictPickingExpressionId;
|
|
844
856
|
}
|
|
845
|
-
|
|
857
|
+
s.updateExpression(i);
|
|
846
858
|
}
|
|
847
859
|
}));
|
|
848
860
|
this.formSchemaService = e;
|
|
@@ -851,11 +863,11 @@ class ut {
|
|
|
851
863
|
const n = this.formSchemaService.getExpressions();
|
|
852
864
|
if (!n)
|
|
853
865
|
return "";
|
|
854
|
-
const
|
|
855
|
-
if (!
|
|
866
|
+
const a = n.find((s) => s.target === e);
|
|
867
|
+
if (!a)
|
|
856
868
|
return "";
|
|
857
|
-
const
|
|
858
|
-
return
|
|
869
|
+
const i = a.rules.find((s) => s.type === t);
|
|
870
|
+
return i || "";
|
|
859
871
|
}
|
|
860
872
|
// 获取上下文表单变量
|
|
861
873
|
getContextFormVariables() {
|
|
@@ -865,15 +877,15 @@ class ut {
|
|
|
865
877
|
const t = this.formSchemaService.getRootViewModelId(), n = this.formSchemaService.getViewModelById(t);
|
|
866
878
|
if (!n || !n.states || n.states.length === 0)
|
|
867
879
|
return [];
|
|
868
|
-
const
|
|
869
|
-
return n.states.filter((
|
|
870
|
-
|
|
871
|
-
key:
|
|
872
|
-
name:
|
|
873
|
-
description:
|
|
874
|
-
category:
|
|
880
|
+
const a = [];
|
|
881
|
+
return n.states.filter((i) => i.category === "remote").forEach((i) => {
|
|
882
|
+
a.push({
|
|
883
|
+
key: i.code,
|
|
884
|
+
name: i.name,
|
|
885
|
+
description: i.name,
|
|
886
|
+
category: i.category
|
|
875
887
|
});
|
|
876
|
-
}),
|
|
888
|
+
}), a;
|
|
877
889
|
}
|
|
878
890
|
createTreeNode(e, t, n = "label") {
|
|
879
891
|
return {
|
|
@@ -886,27 +898,27 @@ class ut {
|
|
|
886
898
|
}
|
|
887
899
|
buildEntityFieldsTreeData(e = null, t) {
|
|
888
900
|
const n = [];
|
|
889
|
-
return e == null || e.forEach((
|
|
901
|
+
return e == null || e.forEach((a) => {
|
|
890
902
|
var c;
|
|
891
|
-
const
|
|
892
|
-
let
|
|
893
|
-
(c =
|
|
894
|
-
data:
|
|
895
|
-
children:
|
|
903
|
+
const i = this.createTreeNode(a, t);
|
|
904
|
+
let s = [];
|
|
905
|
+
(c = a.type) != null && c.fields && (s = this.buildEntityFieldsTreeData(a.type.fields, [...t, a.label])), n.push({
|
|
906
|
+
data: i,
|
|
907
|
+
children: s,
|
|
896
908
|
expanded: !0
|
|
897
909
|
});
|
|
898
910
|
}), n;
|
|
899
911
|
}
|
|
900
912
|
buildChildEntityTreeData(e = null, t) {
|
|
901
913
|
const n = [];
|
|
902
|
-
return e == null || e.forEach((
|
|
903
|
-
var r,
|
|
904
|
-
const
|
|
905
|
-
|
|
906
|
-
const
|
|
907
|
-
c != null && c.length && (
|
|
908
|
-
data:
|
|
909
|
-
children:
|
|
914
|
+
return e == null || e.forEach((a) => {
|
|
915
|
+
var r, u;
|
|
916
|
+
const i = this.createTreeNode(a, t);
|
|
917
|
+
i.type = "entity";
|
|
918
|
+
const s = this.buildEntityFieldsTreeData((r = a.type) == null ? void 0 : r.fields, [...t, a.label]), c = this.buildChildEntityTreeData((u = a.type) == null ? void 0 : u.entities, [...t, a.label]);
|
|
919
|
+
c != null && c.length && (s == null || s.push(...c)), n.push({
|
|
920
|
+
data: i,
|
|
921
|
+
children: s || [],
|
|
910
922
|
// 空值回退
|
|
911
923
|
expanded: !0
|
|
912
924
|
});
|
|
@@ -919,8 +931,8 @@ class ut {
|
|
|
919
931
|
const t = e[0];
|
|
920
932
|
if (!(t != null && t.type))
|
|
921
933
|
return [];
|
|
922
|
-
const n = this.buildEntityFieldsTreeData(t.type.fields, [t.code]),
|
|
923
|
-
return
|
|
934
|
+
const n = this.buildEntityFieldsTreeData(t.type.fields, [t.code]), a = this.buildChildEntityTreeData(t.type.entities, [t.code]);
|
|
935
|
+
return a != null && a.length && (n == null || n.push(...a)), {
|
|
924
936
|
entityCode: t.code,
|
|
925
937
|
fields: [{
|
|
926
938
|
data: this.createTreeNode(t, [], "code"),
|
|
@@ -946,123 +958,123 @@ class ut {
|
|
|
946
958
|
};
|
|
947
959
|
}
|
|
948
960
|
onBeforeOpenExpression(e, t, n) {
|
|
949
|
-
const
|
|
950
|
-
message: ["validate", "required", "dataPicking"].includes(t) &&
|
|
951
|
-
...
|
|
961
|
+
const a = n === "Field" ? e.binding.field : e.id, i = this.getExpressionRule(a, t), s = this.getEntitiesAndVariables(), c = {
|
|
962
|
+
message: ["validate", "required", "dataPicking"].includes(t) && i ? i.message : "",
|
|
963
|
+
...s
|
|
952
964
|
};
|
|
953
|
-
return
|
|
965
|
+
return i.messageType != null && (c.messageType = i.messageType), c;
|
|
954
966
|
}
|
|
955
|
-
buildRule(e, t, n,
|
|
956
|
-
const { expression:
|
|
967
|
+
buildRule(e, t, n, a) {
|
|
968
|
+
const { expression: i, message: s, messageType: c } = t, r = {
|
|
957
969
|
id: `${e}_${n}`,
|
|
958
970
|
type: n,
|
|
959
|
-
value:
|
|
971
|
+
value: i
|
|
960
972
|
};
|
|
961
|
-
return (n === "validate" || n === "dataPicking" || n === "required") && (r.message =
|
|
973
|
+
return (n === "validate" || n === "dataPicking" || n === "required") && (r.message = s), n === "dataPicking" && (r.messageType = c), n === "validate" && a && (r.elementId = a), r;
|
|
962
974
|
}
|
|
963
975
|
getExpressionData() {
|
|
964
976
|
const { expressions: e } = this.formSchemaService.getFormSchema().module;
|
|
965
977
|
return e || [];
|
|
966
978
|
}
|
|
967
|
-
updateExpression(e, t, n,
|
|
968
|
-
const
|
|
969
|
-
let r = this.getExpressionData().find((
|
|
970
|
-
const
|
|
979
|
+
updateExpression(e, t, n, a) {
|
|
980
|
+
const i = t === "Field" ? e.binding.field : e.id, s = this.buildRule(i, n, a, e.type === "form-group" ? e.id : "");
|
|
981
|
+
let r = this.getExpressionData().find((d) => d.targetType === t && d.target === i);
|
|
982
|
+
const u = (d) => d.value.trim() === "";
|
|
971
983
|
if (r) {
|
|
972
|
-
const
|
|
973
|
-
if (
|
|
974
|
-
|
|
984
|
+
const d = r.rules.find((p) => p.id === s.id);
|
|
985
|
+
if (d)
|
|
986
|
+
u(s) ? r.rules = r.rules.filter((p) => p.id !== s.id) : (Object.assign(d, s), a === "validate" && e.type === "form-group" && (d.elementId = e.id));
|
|
975
987
|
else {
|
|
976
|
-
if (
|
|
988
|
+
if (u(s))
|
|
977
989
|
return null;
|
|
978
|
-
r.rules = r.rules || [], r.rules.push(
|
|
990
|
+
r.rules = r.rules || [], r.rules.push(s);
|
|
979
991
|
}
|
|
980
992
|
} else {
|
|
981
|
-
if (
|
|
993
|
+
if (u(s))
|
|
982
994
|
return null;
|
|
983
995
|
r = {
|
|
984
|
-
target: `${
|
|
985
|
-
rules: [
|
|
996
|
+
target: `${i}`,
|
|
997
|
+
rules: [s],
|
|
986
998
|
targetType: t
|
|
987
999
|
};
|
|
988
1000
|
}
|
|
989
1001
|
return r;
|
|
990
1002
|
}
|
|
991
|
-
getExpressionEditorOptions(e, t, n,
|
|
992
|
-
return n.reduce((
|
|
993
|
-
var r,
|
|
1003
|
+
getExpressionEditorOptions(e, t, n, a) {
|
|
1004
|
+
return n.reduce((i, s) => {
|
|
1005
|
+
var r, u;
|
|
994
1006
|
const c = t === "Field" ? (r = e == null ? void 0 : e.binding) == null ? void 0 : r.field : e.id;
|
|
995
|
-
return s
|
|
996
|
-
hide: t === "Field" ? !!((
|
|
1007
|
+
return i[s] = {
|
|
1008
|
+
hide: t === "Field" ? !!((u = e == null ? void 0 : e.binding) != null && u.field) : !1,
|
|
997
1009
|
description: "",
|
|
998
|
-
title: this.expressionNames[
|
|
1010
|
+
title: this.expressionNames[s],
|
|
999
1011
|
type: "string",
|
|
1000
1012
|
$converter: this.getExpressionConverter(c),
|
|
1001
1013
|
refreshPanelAfterChanged: !0,
|
|
1002
1014
|
editor: {
|
|
1003
1015
|
type: "expression-editor",
|
|
1004
1016
|
singleExpand: !1,
|
|
1005
|
-
dialogTitle: `${this.expressionNames[
|
|
1006
|
-
showMessage:
|
|
1007
|
-
showMessageType:
|
|
1008
|
-
beforeOpen: () => this.onBeforeOpenExpression(e,
|
|
1009
|
-
onSubmitModal: (
|
|
1010
|
-
const
|
|
1011
|
-
if (
|
|
1012
|
-
const
|
|
1013
|
-
|
|
1017
|
+
dialogTitle: `${this.expressionNames[s]}编辑器`,
|
|
1018
|
+
showMessage: s === "validate" || s === "dataPicking" || s === "required",
|
|
1019
|
+
showMessageType: s === "dataPicking",
|
|
1020
|
+
beforeOpen: () => this.onBeforeOpenExpression(e, s, t),
|
|
1021
|
+
onSubmitModal: (d) => {
|
|
1022
|
+
const p = this.updateExpression(e, t, d, s);
|
|
1023
|
+
if (a) {
|
|
1024
|
+
const f = this.buildRule(c, d, s);
|
|
1025
|
+
a(f);
|
|
1014
1026
|
}
|
|
1015
|
-
return
|
|
1027
|
+
return p;
|
|
1016
1028
|
}
|
|
1017
1029
|
}
|
|
1018
|
-
},
|
|
1030
|
+
}, i;
|
|
1019
1031
|
}, {});
|
|
1020
1032
|
}
|
|
1021
1033
|
getExpressionInfo(e, t, n) {
|
|
1022
|
-
const
|
|
1023
|
-
value:
|
|
1024
|
-
targetId:
|
|
1034
|
+
const a = t === "Field" ? e.binding.field : e.id, i = this.getExpressionRule(a, n), s = {
|
|
1035
|
+
value: i && i.value,
|
|
1036
|
+
targetId: a,
|
|
1025
1037
|
targetType: t,
|
|
1026
1038
|
expressionType: n
|
|
1027
1039
|
};
|
|
1028
|
-
return
|
|
1040
|
+
return i && i.message && (s.message = i.message), s;
|
|
1029
1041
|
}
|
|
1030
|
-
getExpressionConfig(e, t, n = ["compute", "dependency", "validate"],
|
|
1042
|
+
getExpressionConfig(e, t, n = ["compute", "dependency", "validate"], a) {
|
|
1031
1043
|
return {
|
|
1032
1044
|
description: "表达式",
|
|
1033
1045
|
title: "表达式",
|
|
1034
1046
|
hide: !e.binding,
|
|
1035
1047
|
properties: {
|
|
1036
|
-
...this.getExpressionEditorOptions(e, t, n,
|
|
1048
|
+
...this.getExpressionEditorOptions(e, t, n, a)
|
|
1037
1049
|
}
|
|
1038
1050
|
};
|
|
1039
1051
|
}
|
|
1040
1052
|
getExpressionOptions(e, t, n) {
|
|
1041
|
-
const
|
|
1053
|
+
const a = this.getExpressionInfo(e, t, n);
|
|
1042
1054
|
return {
|
|
1043
1055
|
dialogTitle: `${this.expressionNames[n]}编辑器`,
|
|
1044
1056
|
singleExpand: !1,
|
|
1045
1057
|
showMessage: n === "required",
|
|
1046
1058
|
beforeOpen: () => this.onBeforeOpenExpression(e, n, t),
|
|
1047
|
-
expressionInfo:
|
|
1059
|
+
expressionInfo: a
|
|
1048
1060
|
};
|
|
1049
1061
|
}
|
|
1050
1062
|
}
|
|
1051
|
-
class
|
|
1063
|
+
class gt {
|
|
1052
1064
|
constructor(e, t) {
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1065
|
+
$(this, "componentId");
|
|
1066
|
+
$(this, "viewModelId");
|
|
1067
|
+
$(this, "eventsEditorUtils");
|
|
1068
|
+
$(this, "formSchemaUtils");
|
|
1069
|
+
$(this, "formMetadataConverter");
|
|
1070
|
+
$(this, "designViewModelUtils");
|
|
1071
|
+
$(this, "designViewModelField");
|
|
1072
|
+
$(this, "controlCreatorUtils");
|
|
1073
|
+
$(this, "designerHostService");
|
|
1074
|
+
$(this, "designerContext");
|
|
1075
|
+
$(this, "schemaService", null);
|
|
1076
|
+
$(this, "metadataService", null);
|
|
1077
|
+
$(this, "propertyConfig", {
|
|
1066
1078
|
type: "object",
|
|
1067
1079
|
categories: {}
|
|
1068
1080
|
});
|
|
@@ -1082,8 +1094,8 @@ class mt {
|
|
|
1082
1094
|
const t = e.binding && e.binding.type === "Form" && e.binding.field;
|
|
1083
1095
|
if (t) {
|
|
1084
1096
|
if (!this.designViewModelField) {
|
|
1085
|
-
const
|
|
1086
|
-
this.designViewModelField =
|
|
1097
|
+
const a = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1098
|
+
this.designViewModelField = a.fields.find((i) => i.id === t);
|
|
1087
1099
|
}
|
|
1088
1100
|
e.updateOn = (n = this.designViewModelField) == null ? void 0 : n.updateOn;
|
|
1089
1101
|
}
|
|
@@ -1109,17 +1121,17 @@ class mt {
|
|
|
1109
1121
|
valueField: "value",
|
|
1110
1122
|
idField: "value",
|
|
1111
1123
|
editable: !1,
|
|
1112
|
-
data: [{ value: e.type, name:
|
|
1124
|
+
data: [{ value: e.type, name: A[e.type] && A[e.type].name }]
|
|
1113
1125
|
}
|
|
1114
1126
|
}
|
|
1115
1127
|
}
|
|
1116
1128
|
};
|
|
1117
1129
|
}
|
|
1118
1130
|
getAppearanceConfig(e = null, t = {}, n) {
|
|
1119
|
-
const
|
|
1131
|
+
const a = {
|
|
1120
1132
|
title: "外观",
|
|
1121
1133
|
description: "Appearance"
|
|
1122
|
-
},
|
|
1134
|
+
}, i = {
|
|
1123
1135
|
class: {
|
|
1124
1136
|
title: "class样式",
|
|
1125
1137
|
type: "string",
|
|
@@ -1135,21 +1147,21 @@ class mt {
|
|
|
1135
1147
|
parentPropertyID: "appearance"
|
|
1136
1148
|
}
|
|
1137
1149
|
};
|
|
1138
|
-
for (const
|
|
1139
|
-
s
|
|
1150
|
+
for (const s in t)
|
|
1151
|
+
i[s] = Object.assign(i[s] || {}, t[s]);
|
|
1140
1152
|
return {
|
|
1141
|
-
...
|
|
1142
|
-
properties: { ...
|
|
1143
|
-
setPropertyRelates(
|
|
1144
|
-
if (
|
|
1145
|
-
switch (
|
|
1153
|
+
...a,
|
|
1154
|
+
properties: { ...i },
|
|
1155
|
+
setPropertyRelates(s, c) {
|
|
1156
|
+
if (s) {
|
|
1157
|
+
switch (s && s.propertyID) {
|
|
1146
1158
|
case "class":
|
|
1147
1159
|
case "style": {
|
|
1148
|
-
|
|
1160
|
+
Te.value++;
|
|
1149
1161
|
break;
|
|
1150
1162
|
}
|
|
1151
1163
|
}
|
|
1152
|
-
n && n(
|
|
1164
|
+
n && n(s, e, c);
|
|
1153
1165
|
}
|
|
1154
1166
|
}
|
|
1155
1167
|
};
|
|
@@ -1164,44 +1176,44 @@ class mt {
|
|
|
1164
1176
|
* @param expressionType 指定表达式类型,存在属性和表达式类型不一致的情况
|
|
1165
1177
|
* @returns
|
|
1166
1178
|
*/
|
|
1167
|
-
getPropertyEditorParams(e, t = [], n = "visible",
|
|
1168
|
-
const { getVariables: c, getControlName: r, getStateMachines:
|
|
1179
|
+
getPropertyEditorParams(e, t = [], n = "visible", a = {}, i = {}, s = "") {
|
|
1180
|
+
const { getVariables: c, getControlName: r, getStateMachines: u } = mt(this.designerHostService), d = this.getRealTargetType(e), p = t && t.length > 0 ? t : ["Const", "Variable", "StateMachine", "Expression"], f = {
|
|
1169
1181
|
type: "property-editor",
|
|
1170
|
-
propertyTypes:
|
|
1182
|
+
propertyTypes: p
|
|
1171
1183
|
};
|
|
1172
|
-
return
|
|
1173
|
-
switch (
|
|
1184
|
+
return p.map((g) => {
|
|
1185
|
+
switch (g) {
|
|
1174
1186
|
case "Const":
|
|
1175
|
-
Object.assign(
|
|
1187
|
+
Object.assign(f, {
|
|
1176
1188
|
constType: "enum",
|
|
1177
1189
|
constEnums: [{ id: !0, name: "是" }, { id: !1, name: "否" }]
|
|
1178
|
-
},
|
|
1190
|
+
}, a);
|
|
1179
1191
|
break;
|
|
1180
1192
|
case "Expression":
|
|
1181
|
-
|
|
1193
|
+
f.expressionConfig = this.getExpressionOptions(e, d, s || n);
|
|
1182
1194
|
break;
|
|
1183
1195
|
case "StateMachine":
|
|
1184
|
-
|
|
1196
|
+
f.stateMachines = u();
|
|
1185
1197
|
break;
|
|
1186
1198
|
case "Variable":
|
|
1187
|
-
Object.assign(
|
|
1199
|
+
Object.assign(f, {
|
|
1188
1200
|
controlName: r(e),
|
|
1189
1201
|
newVariablePrefix: "is",
|
|
1190
1202
|
newVariableType: "Boolean",
|
|
1191
1203
|
variables: c(this.viewModelId),
|
|
1192
1204
|
parentComponentId: this.componentId === "root-component" ? "" : "root-component",
|
|
1193
|
-
onBeforeOpenVariables: (
|
|
1194
|
-
|
|
1205
|
+
onBeforeOpenVariables: (w) => {
|
|
1206
|
+
w.value = c(this.viewModelId);
|
|
1195
1207
|
}
|
|
1196
|
-
},
|
|
1208
|
+
}, i), this.designerContext.designerMode === "PC_RTC" && (f.newVariablePrefix = "ext_" + f.newVariablePrefix);
|
|
1197
1209
|
break;
|
|
1198
1210
|
}
|
|
1199
|
-
}),
|
|
1211
|
+
}), f;
|
|
1200
1212
|
}
|
|
1201
1213
|
getVisibleProperty(e, t = "") {
|
|
1202
|
-
var
|
|
1214
|
+
var i;
|
|
1203
1215
|
let n = ["Const", "Variable", "StateMachine", "Expression"];
|
|
1204
|
-
return t === "gridFieldEditor" ? n = ["Const", "Expression"] : t === "form-group" && !((
|
|
1216
|
+
return t === "gridFieldEditor" ? n = ["Const", "Expression"] : t === "form-group" && !((i = e.binding) != null && i.field) && (n = ["Const", "Variable", "StateMachine"]), {
|
|
1205
1217
|
visible: {
|
|
1206
1218
|
title: "是否可见",
|
|
1207
1219
|
type: "boolean",
|
|
@@ -1216,18 +1228,18 @@ class mt {
|
|
|
1216
1228
|
* @param viewModelId
|
|
1217
1229
|
* @returns
|
|
1218
1230
|
*/
|
|
1219
|
-
getBehaviorConfig(e, t = "", n = {},
|
|
1220
|
-
const
|
|
1231
|
+
getBehaviorConfig(e, t = "", n = {}, a) {
|
|
1232
|
+
const i = {
|
|
1221
1233
|
title: "行为",
|
|
1222
1234
|
description: ""
|
|
1223
|
-
},
|
|
1235
|
+
}, s = this.getVisibleProperty(e, t);
|
|
1224
1236
|
for (const r in n)
|
|
1225
|
-
|
|
1237
|
+
s[r] = Object.assign(s[r] || {}, n[r]);
|
|
1226
1238
|
const c = this;
|
|
1227
1239
|
return {
|
|
1228
|
-
...
|
|
1229
|
-
properties: { ...
|
|
1230
|
-
setPropertyRelates(r,
|
|
1240
|
+
...i,
|
|
1241
|
+
properties: { ...s },
|
|
1242
|
+
setPropertyRelates(r, u) {
|
|
1231
1243
|
if (r) {
|
|
1232
1244
|
switch (r.propertyID) {
|
|
1233
1245
|
case "disabled":
|
|
@@ -1236,7 +1248,7 @@ class mt {
|
|
|
1236
1248
|
c.afterMutilEditorChanged(e, r);
|
|
1237
1249
|
break;
|
|
1238
1250
|
}
|
|
1239
|
-
|
|
1251
|
+
a && a(r, u);
|
|
1240
1252
|
}
|
|
1241
1253
|
}
|
|
1242
1254
|
};
|
|
@@ -1259,8 +1271,8 @@ class mt {
|
|
|
1259
1271
|
const n = t && t.parent && t.parent.schema;
|
|
1260
1272
|
if (!n)
|
|
1261
1273
|
return;
|
|
1262
|
-
const
|
|
1263
|
-
n.contents.splice(
|
|
1274
|
+
const a = n.contents.findIndex((s) => s.id === e), i = We(n.contents[a]);
|
|
1275
|
+
n.contents.splice(a, 1), n.contents.splice(a, 0, i), Pe();
|
|
1264
1276
|
}
|
|
1265
1277
|
/**
|
|
1266
1278
|
* 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
|
|
@@ -1272,7 +1284,7 @@ class mt {
|
|
|
1272
1284
|
const n = e.propertyValue;
|
|
1273
1285
|
if (!(n && typeof n == "object") || !(n.type === "Variable" && n.isNewVariable))
|
|
1274
1286
|
return;
|
|
1275
|
-
const
|
|
1287
|
+
const s = {
|
|
1276
1288
|
id: n.field,
|
|
1277
1289
|
category: "locale",
|
|
1278
1290
|
code: n.fullPath,
|
|
@@ -1280,7 +1292,7 @@ class mt {
|
|
|
1280
1292
|
type: n.newVariableType || "String",
|
|
1281
1293
|
isRtcVariable: this.designerContext.designerMode === "PC_RTC" ? !0 : void 0
|
|
1282
1294
|
};
|
|
1283
|
-
delete n.newVariableType, delete n.isNewVariable, this.formSchemaUtils.getVariableByCode(
|
|
1295
|
+
delete n.newVariableType, delete n.isNewVariable, this.formSchemaUtils.getVariableByCode(s.code) || this.formSchemaUtils.getViewModelById("root-viewmodel").states.push(s);
|
|
1284
1296
|
}
|
|
1285
1297
|
/**
|
|
1286
1298
|
* 更新表达式到expressions节点
|
|
@@ -1290,17 +1302,17 @@ class mt {
|
|
|
1290
1302
|
const t = e.propertyValue;
|
|
1291
1303
|
if (!((t && t.type) === "Expression" && t.expressionInfo))
|
|
1292
1304
|
return;
|
|
1293
|
-
const { expressionId:
|
|
1294
|
-
|
|
1295
|
-
const { expressions:
|
|
1296
|
-
let
|
|
1297
|
-
|
|
1298
|
-
const
|
|
1299
|
-
if (
|
|
1300
|
-
|
|
1305
|
+
const { expressionId: i, expressionInfo: s } = t, { targetId: c, targetType: r, expressionType: u, value: d, message: p } = s, f = this.formSchemaUtils.getModule();
|
|
1306
|
+
f.expressions = f.expressions || [];
|
|
1307
|
+
const { expressions: g } = f;
|
|
1308
|
+
let w = g.find((h) => h.target === c);
|
|
1309
|
+
w || (w = { target: c, rules: [], targetType: r }, g.push(w));
|
|
1310
|
+
const y = w.rules.find((h) => h.type === u);
|
|
1311
|
+
if (y)
|
|
1312
|
+
y.value = d, y.message = p;
|
|
1301
1313
|
else {
|
|
1302
|
-
const
|
|
1303
|
-
|
|
1314
|
+
const h = { id: i, type: u, value: d, message: p };
|
|
1315
|
+
w.rules.push(h);
|
|
1304
1316
|
}
|
|
1305
1317
|
delete t.expressionInfo;
|
|
1306
1318
|
}
|
|
@@ -1314,14 +1326,14 @@ class mt {
|
|
|
1314
1326
|
const n = e.propertyValue;
|
|
1315
1327
|
if (n && n.type === "Expression")
|
|
1316
1328
|
return;
|
|
1317
|
-
const
|
|
1318
|
-
!r || !r.rules || (r.rules = r.rules.filter((
|
|
1329
|
+
const i = e.propertyID, s = this.formSchemaUtils.getExpressions(), c = t.binding ? t.binding.field : t.id, r = s.find((u) => u.target === c);
|
|
1330
|
+
!r || !r.rules || (r.rules = r.rules.filter((u) => u.type !== i));
|
|
1319
1331
|
}
|
|
1320
1332
|
getExpressionOptions(e, t, n) {
|
|
1321
|
-
return new
|
|
1333
|
+
return new ft(this.formSchemaUtils).getExpressionOptions(e, t, n);
|
|
1322
1334
|
}
|
|
1323
1335
|
getRealTargetType(e) {
|
|
1324
|
-
return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item"].indexOf(e.type) > -1 ? "Button" : e.binding && e.binding.field ? "Field" : "Container";
|
|
1336
|
+
return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item", "drawer-toolbar-item"].indexOf(e.type) > -1 ? "Button" : e.binding && e.binding.field ? "Field" : "Container";
|
|
1325
1337
|
}
|
|
1326
1338
|
createBaseEventProperty(e) {
|
|
1327
1339
|
const t = {};
|
|
@@ -1330,14 +1342,14 @@ class mt {
|
|
|
1330
1342
|
editor: {
|
|
1331
1343
|
initialData: e,
|
|
1332
1344
|
viewSourceHandle: (n) => {
|
|
1333
|
-
var
|
|
1334
|
-
((
|
|
1345
|
+
var a;
|
|
1346
|
+
((a = n.controller) == null ? void 0 : a.label.indexOf(this.formSchemaUtils.getModule().code)) > -1 && this.eventsEditorUtils.jumpToMethod(n);
|
|
1335
1347
|
}
|
|
1336
1348
|
}
|
|
1337
1349
|
}, t;
|
|
1338
1350
|
}
|
|
1339
1351
|
}
|
|
1340
|
-
class
|
|
1352
|
+
class vt extends gt {
|
|
1341
1353
|
constructor(e, t) {
|
|
1342
1354
|
super(e, t);
|
|
1343
1355
|
}
|
|
@@ -1345,13 +1357,13 @@ class pt extends mt {
|
|
|
1345
1357
|
return this.getBasicPropConfig(e), this.getAppearanceProperties(e), this.getEventPropConfig(e), this.propertyConfig;
|
|
1346
1358
|
}
|
|
1347
1359
|
getBasicPropConfig(e) {
|
|
1348
|
-
var
|
|
1349
|
-
const t = (r = (c = (
|
|
1360
|
+
var s, c, r;
|
|
1361
|
+
const t = (r = (c = (s = this.formSchemaUtils.getFormSchema()) == null ? void 0 : s.module) == null ? void 0 : c.entity[0]) == null ? void 0 : r.entities[0], n = this.assembleSchemaEntityToTree(t, 0), a = this, i = super.getBasicPropConfig(e);
|
|
1350
1362
|
this.propertyConfig.categories.basic = {
|
|
1351
1363
|
description: "Basic Information",
|
|
1352
1364
|
title: "基本信息",
|
|
1353
1365
|
properties: {
|
|
1354
|
-
...
|
|
1366
|
+
...i.properties,
|
|
1355
1367
|
dataSource: {
|
|
1356
1368
|
description: "绑定数据源",
|
|
1357
1369
|
title: "绑定数据源",
|
|
@@ -1365,15 +1377,15 @@ class pt extends mt {
|
|
|
1365
1377
|
readonly: !0
|
|
1366
1378
|
}
|
|
1367
1379
|
},
|
|
1368
|
-
setPropertyRelates(
|
|
1369
|
-
switch (
|
|
1380
|
+
setPropertyRelates(u, d) {
|
|
1381
|
+
switch (u && u.propertyID) {
|
|
1370
1382
|
case "dataSource": {
|
|
1371
|
-
const
|
|
1372
|
-
if (
|
|
1373
|
-
const
|
|
1374
|
-
|
|
1383
|
+
const p = a.formSchemaUtils.getViewModelById(a.viewModelId);
|
|
1384
|
+
if (p) {
|
|
1385
|
+
const f = n.find((g) => g.label === u.propertyValue);
|
|
1386
|
+
p.bindTo = f.bindTo;
|
|
1375
1387
|
}
|
|
1376
|
-
|
|
1388
|
+
a.designViewModelUtils.assembleDesignViewModel();
|
|
1377
1389
|
break;
|
|
1378
1390
|
}
|
|
1379
1391
|
}
|
|
@@ -1383,16 +1395,16 @@ class pt extends mt {
|
|
|
1383
1395
|
/**
|
|
1384
1396
|
* 将schema实体表组装成树
|
|
1385
1397
|
*/
|
|
1386
|
-
assembleSchemaEntityToTree(e, t, n,
|
|
1387
|
-
const
|
|
1388
|
-
return
|
|
1398
|
+
assembleSchemaEntityToTree(e, t, n, a = "", i = []) {
|
|
1399
|
+
const s = a ? `${a}/${e.label}` : "/";
|
|
1400
|
+
return i.push({
|
|
1389
1401
|
id: e.id,
|
|
1390
1402
|
name: e.name,
|
|
1391
1403
|
label: e.label,
|
|
1392
1404
|
layer: t,
|
|
1393
1405
|
parent: n && n.id,
|
|
1394
|
-
bindTo:
|
|
1395
|
-
}), e.type.entities && e.type.entities.length && e.type.entities.map((c) => this.assembleSchemaEntityToTree(c, t + 1, e,
|
|
1406
|
+
bindTo: s.replace("//", "/")
|
|
1407
|
+
}), e.type.entities && e.type.entities.length && e.type.entities.map((c) => this.assembleSchemaEntityToTree(c, t + 1, e, s, i)), i;
|
|
1396
1408
|
}
|
|
1397
1409
|
getAppearanceProperties(e) {
|
|
1398
1410
|
this.propertyConfig.categories.appearance = {
|
|
@@ -1410,7 +1422,7 @@ class pt extends mt {
|
|
|
1410
1422
|
editor: {
|
|
1411
1423
|
type: "code-editor",
|
|
1412
1424
|
language: "javascript",
|
|
1413
|
-
leftTemplate: () =>
|
|
1425
|
+
leftTemplate: () => l(j, null, [l("h5", null, [O("示例代码")]), l("pre", null, [`
|
|
1414
1426
|
(dataItem) => {
|
|
1415
1427
|
if(dataItem.code === '0001') {
|
|
1416
1428
|
return 'bg-danger text-center';
|
|
@@ -1430,7 +1442,7 @@ class pt extends mt {
|
|
|
1430
1442
|
editor: {
|
|
1431
1443
|
type: "code-editor",
|
|
1432
1444
|
language: "javascript",
|
|
1433
|
-
leftTemplate: () =>
|
|
1445
|
+
leftTemplate: () => l(j, null, [l("h5", null, [O("示例代码")]), l("pre", null, [`
|
|
1434
1446
|
(dataItem) => {
|
|
1435
1447
|
if(dataItem.code === '0001') {
|
|
1436
1448
|
return 'textAlign:center;color:green';
|
|
@@ -1487,24 +1499,24 @@ class pt extends mt {
|
|
|
1487
1499
|
};
|
|
1488
1500
|
}
|
|
1489
1501
|
getEventPropConfig(e) {
|
|
1490
|
-
var
|
|
1502
|
+
var s;
|
|
1491
1503
|
const t = [{
|
|
1492
1504
|
label: "onClickItem",
|
|
1493
1505
|
name: "行点击事件"
|
|
1494
1506
|
}];
|
|
1495
|
-
(
|
|
1496
|
-
const n = this,
|
|
1507
|
+
(s = e.pagination) == null || s.enable;
|
|
1508
|
+
const n = this, a = n.eventsEditorUtils.formProperties(e, n.viewModelId, t), i = n.createBaseEventProperty(a);
|
|
1497
1509
|
this.propertyConfig.categories.eventsEditor = {
|
|
1498
1510
|
title: "事件",
|
|
1499
1511
|
hideTitle: !0,
|
|
1500
|
-
properties:
|
|
1512
|
+
properties: i,
|
|
1501
1513
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
1502
1514
|
refreshPanelAfterChanged: !0,
|
|
1503
1515
|
tabId: "commands",
|
|
1504
1516
|
tabName: "交互",
|
|
1505
1517
|
setPropertyRelates(c, r) {
|
|
1506
|
-
const
|
|
1507
|
-
delete e[n.viewModelId],
|
|
1518
|
+
const u = c.propertyValue;
|
|
1519
|
+
delete e[n.viewModelId], u && (u.setPropertyRelates = this.setPropertyRelates, n.eventsEditorUtils.saveRelatedParameters(e, n.viewModelId, u.events, u)), e.remoteSort = !!e.columnSorted, e.command && (e.command.onClickEditCommand = e.onClickEditCommand, e.command.onClickDeleteCommand = e.onClickDeleteCommand);
|
|
1508
1520
|
}
|
|
1509
1521
|
};
|
|
1510
1522
|
}
|
|
@@ -1513,12 +1525,12 @@ class pt extends mt {
|
|
|
1513
1525
|
return e && e.bindTo ? e.bindTo.trim() !== "/" : !1;
|
|
1514
1526
|
}
|
|
1515
1527
|
}
|
|
1516
|
-
function
|
|
1517
|
-
const t = o.schema, n =
|
|
1518
|
-
function
|
|
1528
|
+
function ht(o, e) {
|
|
1529
|
+
const t = o.schema, n = b(!0), a = b(!0);
|
|
1530
|
+
function i(p) {
|
|
1519
1531
|
return !1;
|
|
1520
1532
|
}
|
|
1521
|
-
function
|
|
1533
|
+
function s() {
|
|
1522
1534
|
return !1;
|
|
1523
1535
|
}
|
|
1524
1536
|
function c() {
|
|
@@ -1527,143 +1539,41 @@ function ft(o, e) {
|
|
|
1527
1539
|
function r() {
|
|
1528
1540
|
return !0;
|
|
1529
1541
|
}
|
|
1530
|
-
function
|
|
1531
|
-
return new
|
|
1542
|
+
function u(p) {
|
|
1543
|
+
return new vt(p, e).getPropertyConfig(t);
|
|
1532
1544
|
}
|
|
1533
|
-
function
|
|
1534
|
-
var
|
|
1545
|
+
function d() {
|
|
1546
|
+
var p, f, g, w;
|
|
1535
1547
|
if (o && e) {
|
|
1536
|
-
const
|
|
1537
|
-
let
|
|
1548
|
+
const y = (p = o == null ? void 0 : o.componentInstance) == null ? void 0 : p.value.belongedComponentId;
|
|
1549
|
+
let h = "", S = "";
|
|
1538
1550
|
const { formSchemaUtils: k } = e;
|
|
1539
|
-
if (
|
|
1540
|
-
const F = k.getRootViewModelId(),
|
|
1541
|
-
(
|
|
1551
|
+
if (y) {
|
|
1552
|
+
const F = k.getRootViewModelId(), B = k.getComponentByViewModelId(F), v = k.selectNode(B, (M) => M.contents && M.contents.find((C) => C.component === y));
|
|
1553
|
+
(v == null ? void 0 : v.type) === ((f = z["tab-page"]) == null ? void 0 : f.type) && ((g = v == null ? void 0 : v.contents) != null && g.length) && (h = v.title || ""), (v == null ? void 0 : v.type) === ((w = z.section) == null ? void 0 : w.type) && (v == null ? void 0 : v.showHeader) !== !1 && (h = v.mainTitle || ""), h = h ? `${h} > ` : "", S = h ? v.id : "";
|
|
1542
1554
|
}
|
|
1543
|
-
const
|
|
1555
|
+
const x = z["list-view"].name;
|
|
1544
1556
|
e == null || e.formSchemaUtils.getControlBasicInfoMap().set(o.schema.id, {
|
|
1545
|
-
componentTitle:
|
|
1546
|
-
parentPathName: `${
|
|
1547
|
-
reliedComponentId:
|
|
1557
|
+
componentTitle: x,
|
|
1558
|
+
parentPathName: `${h}${x}`,
|
|
1559
|
+
reliedComponentId: S
|
|
1548
1560
|
});
|
|
1549
1561
|
}
|
|
1550
1562
|
}
|
|
1551
1563
|
return {
|
|
1552
|
-
canAccepts:
|
|
1553
|
-
checkCanDeleteComponent:
|
|
1564
|
+
canAccepts: i,
|
|
1565
|
+
checkCanDeleteComponent: s,
|
|
1554
1566
|
checkCanMoveComponent: c,
|
|
1555
1567
|
hideNestedPaddingInDesginerView: r,
|
|
1556
1568
|
triggerBelongedComponentToMoveWhenMoved: n,
|
|
1557
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1558
|
-
getPropsConfig:
|
|
1559
|
-
setComponentBasicInfoMap:
|
|
1569
|
+
triggerBelongedComponentToDeleteWhenDeleted: a,
|
|
1570
|
+
getPropsConfig: u,
|
|
1571
|
+
setComponentBasicInfoMap: d
|
|
1560
1572
|
};
|
|
1561
1573
|
}
|
|
1562
|
-
const
|
|
1563
|
-
id: {
|
|
1564
|
-
description: "The unique identifier for list-view-table",
|
|
1565
|
-
type: "string"
|
|
1566
|
-
},
|
|
1567
|
-
type: {
|
|
1568
|
-
description: "The type string of list-view-table",
|
|
1569
|
-
type: "string",
|
|
1570
|
-
default: "list-view-table"
|
|
1571
|
-
},
|
|
1572
|
-
appearance: {
|
|
1573
|
-
description: "",
|
|
1574
|
-
type: "object",
|
|
1575
|
-
properties: {
|
|
1576
|
-
class: {
|
|
1577
|
-
type: "string"
|
|
1578
|
-
},
|
|
1579
|
-
style: {
|
|
1580
|
-
type: "string"
|
|
1581
|
-
}
|
|
1582
|
-
},
|
|
1583
|
-
default: {}
|
|
1584
|
-
},
|
|
1585
|
-
binding: {
|
|
1586
|
-
description: "",
|
|
1587
|
-
type: "object",
|
|
1588
|
-
default: {}
|
|
1589
|
-
},
|
|
1590
|
-
disable: {
|
|
1591
|
-
type: "string",
|
|
1592
|
-
default: !1
|
|
1593
|
-
},
|
|
1594
|
-
editable: {
|
|
1595
|
-
description: "",
|
|
1596
|
-
type: "boolean",
|
|
1597
|
-
default: !0
|
|
1598
|
-
},
|
|
1599
|
-
placeholder: {
|
|
1600
|
-
description: "",
|
|
1601
|
-
type: "string",
|
|
1602
|
-
default: ""
|
|
1603
|
-
},
|
|
1604
|
-
readonly: {
|
|
1605
|
-
description: "",
|
|
1606
|
-
type: "boolean",
|
|
1607
|
-
default: !1
|
|
1608
|
-
},
|
|
1609
|
-
require: {
|
|
1610
|
-
description: "",
|
|
1611
|
-
type: "boolean",
|
|
1612
|
-
default: !1
|
|
1613
|
-
},
|
|
1614
|
-
tabindex: {
|
|
1615
|
-
description: "",
|
|
1616
|
-
type: "number",
|
|
1617
|
-
default: -1
|
|
1618
|
-
},
|
|
1619
|
-
visible: {
|
|
1620
|
-
description: "",
|
|
1621
|
-
type: "boolean",
|
|
1622
|
-
default: !0
|
|
1623
|
-
}
|
|
1624
|
-
}, bt = [
|
|
1625
|
-
"id",
|
|
1626
|
-
"type"
|
|
1627
|
-
], It = {
|
|
1628
|
-
$schema: gt,
|
|
1629
|
-
$id: vt,
|
|
1630
|
-
title: ht,
|
|
1631
|
-
description: wt,
|
|
1632
|
-
type: yt,
|
|
1633
|
-
properties: Ct,
|
|
1634
|
-
required: bt
|
|
1635
|
-
}, Vt = "list-view-table", St = "A Farris Component", Mt = "object", kt = {
|
|
1636
|
-
basic: {
|
|
1637
|
-
description: "Basic Infomation",
|
|
1638
|
-
title: "基本信息",
|
|
1639
|
-
properties: {
|
|
1640
|
-
id: {
|
|
1641
|
-
description: "组件标识",
|
|
1642
|
-
title: "标识",
|
|
1643
|
-
type: "string",
|
|
1644
|
-
readonly: !0
|
|
1645
|
-
},
|
|
1646
|
-
type: {
|
|
1647
|
-
description: "组件类型",
|
|
1648
|
-
title: "控件类型",
|
|
1649
|
-
type: "select",
|
|
1650
|
-
editor: {
|
|
1651
|
-
type: "waiting for modification",
|
|
1652
|
-
enum: []
|
|
1653
|
-
}
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
}, xt = {
|
|
1658
|
-
title: Vt,
|
|
1659
|
-
description: St,
|
|
1660
|
-
type: Mt,
|
|
1661
|
-
categories: kt
|
|
1662
|
-
}, ae = {
|
|
1663
|
-
data: { type: Array, default: [] }
|
|
1664
|
-
}, re = Z(ae, It, ie, se, xt), ce = /* @__PURE__ */ ee({
|
|
1574
|
+
const ce = /* @__PURE__ */ ie({
|
|
1665
1575
|
name: "FListViewTableDesign",
|
|
1666
|
-
props:
|
|
1576
|
+
props: be,
|
|
1667
1577
|
emits: ["outputValue", "currentEvent", "selectionChanged"],
|
|
1668
1578
|
setup(o, e) {
|
|
1669
1579
|
const t = [{
|
|
@@ -1717,158 +1627,268 @@ const gt = "https://json-schema.org/draft/2020-12/schema", vt = "https://farris-
|
|
|
1717
1627
|
avatar: "./assets/avatar7.png"
|
|
1718
1628
|
}];
|
|
1719
1629
|
U(() => o.data.length > 0 ? o.data : t);
|
|
1720
|
-
const n =
|
|
1721
|
-
return
|
|
1722
|
-
n.value.componentInstance =
|
|
1723
|
-
}), e.expose(
|
|
1630
|
+
const n = b(), a = K("design-item-context"), i = ae(n, a);
|
|
1631
|
+
return oe(() => {
|
|
1632
|
+
n.value.componentInstance = i;
|
|
1633
|
+
}), e.expose(i.value), () => l("div", {
|
|
1724
1634
|
ref: n
|
|
1725
|
-
}, [
|
|
1635
|
+
}, [l("div", {
|
|
1726
1636
|
class: "ide-list-view h-100"
|
|
1727
|
-
}, [
|
|
1637
|
+
}, [l("div", {
|
|
1728
1638
|
class: "f-list-view"
|
|
1729
|
-
}, [
|
|
1639
|
+
}, [l("div", {
|
|
1730
1640
|
class: "f-list-view-content"
|
|
1731
|
-
}, [
|
|
1641
|
+
}, [l("ul", {
|
|
1732
1642
|
class: "f-list-view-group"
|
|
1733
|
-
}, [
|
|
1643
|
+
}, [l("li", {
|
|
1734
1644
|
class: "ide-list-view-group-item"
|
|
1735
|
-
}, [
|
|
1645
|
+
}, [l("div", {
|
|
1736
1646
|
class: "ide-list-content"
|
|
1737
|
-
}, [
|
|
1647
|
+
}, [l("div", {
|
|
1738
1648
|
class: "f-template-common-row d-flex"
|
|
1739
|
-
}, [
|
|
1649
|
+
}, [l("div", {
|
|
1740
1650
|
class: "item-action-primary"
|
|
1741
|
-
}, [
|
|
1651
|
+
}, [l("img", {
|
|
1742
1652
|
class: "ap-img",
|
|
1743
1653
|
src: "./assets/avatar1.png",
|
|
1744
1654
|
title: "img1"
|
|
1745
|
-
}, null)]),
|
|
1655
|
+
}, null)]), l("div", {
|
|
1746
1656
|
class: "listview-item-content d-flex k-align-items-center"
|
|
1747
|
-
}, [
|
|
1657
|
+
}, [l("div", {
|
|
1748
1658
|
class: "listview-item-main"
|
|
1749
|
-
}, [
|
|
1659
|
+
}, [l("h4", {
|
|
1750
1660
|
class: "listview-item-title"
|
|
1751
|
-
}, null),
|
|
1661
|
+
}, null), l("h5", {
|
|
1752
1662
|
class: "listview-item-subtitle"
|
|
1753
|
-
}, null)]),
|
|
1663
|
+
}, null)]), l("div", {
|
|
1754
1664
|
class: "listview-item-btns"
|
|
1755
|
-
}, [
|
|
1665
|
+
}, [l("button", {
|
|
1756
1666
|
class: "btn btn-link"
|
|
1757
|
-
}, [O(" "), "编辑"]),
|
|
1667
|
+
}, [O(" "), "编辑"]), l("button", {
|
|
1758
1668
|
class: "btn btn-link"
|
|
1759
|
-
}, [O(" "), "删除"])])])])])]),
|
|
1669
|
+
}, [O(" "), "删除"])])])])])]), l("li", {
|
|
1760
1670
|
class: "ide-list-view-group-item"
|
|
1761
|
-
}, [
|
|
1671
|
+
}, [l("div", {
|
|
1762
1672
|
class: "ide-list-content"
|
|
1763
|
-
}, [
|
|
1673
|
+
}, [l("div", {
|
|
1764
1674
|
class: "f-template-common-row d-flex"
|
|
1765
|
-
}, [
|
|
1675
|
+
}, [l("div", {
|
|
1766
1676
|
class: "item-action-primary"
|
|
1767
|
-
}, [
|
|
1677
|
+
}, [l("img", {
|
|
1768
1678
|
class: "ap-img",
|
|
1769
1679
|
src: "./assets/avatar2.png",
|
|
1770
1680
|
title: "img2"
|
|
1771
|
-
}, null)]),
|
|
1681
|
+
}, null)]), l("div", {
|
|
1772
1682
|
class: "listview-item-content d-flex k-align-items-center"
|
|
1773
|
-
}, [
|
|
1683
|
+
}, [l("div", {
|
|
1774
1684
|
class: "listview-item-main"
|
|
1775
|
-
}, [
|
|
1685
|
+
}, [l("h4", {
|
|
1776
1686
|
class: "listview-item-title"
|
|
1777
|
-
}, null),
|
|
1687
|
+
}, null), l("h5", {
|
|
1778
1688
|
class: "listview-item-subtitle"
|
|
1779
|
-
}, null)]),
|
|
1689
|
+
}, null)]), l("div", {
|
|
1780
1690
|
class: "listview-item-btns"
|
|
1781
|
-
}, [
|
|
1691
|
+
}, [l("button", {
|
|
1782
1692
|
class: "btn btn-link"
|
|
1783
|
-
}, [O(" "), "编辑"]),
|
|
1693
|
+
}, [O(" "), "编辑"]), l("button", {
|
|
1784
1694
|
class: "btn btn-link"
|
|
1785
|
-
}, ["删除"])])])])])]),
|
|
1695
|
+
}, ["删除"])])])])])]), l("li", {
|
|
1786
1696
|
class: "ide-list-view-group-item"
|
|
1787
|
-
}, [
|
|
1697
|
+
}, [l("div", {
|
|
1788
1698
|
class: "ide-list-content"
|
|
1789
|
-
}, [
|
|
1699
|
+
}, [l("div", {
|
|
1790
1700
|
class: "f-template-common-row d-flex"
|
|
1791
|
-
}, [
|
|
1701
|
+
}, [l("div", {
|
|
1792
1702
|
class: "item-action-primary"
|
|
1793
|
-
}, [
|
|
1703
|
+
}, [l("img", {
|
|
1794
1704
|
class: "ap-img",
|
|
1795
1705
|
src: "./assets/avatar3.png",
|
|
1796
1706
|
title: "img3"
|
|
1797
|
-
}, null)]),
|
|
1707
|
+
}, null)]), l("div", {
|
|
1798
1708
|
class: "listview-item-content d-flex k-align-items-center"
|
|
1799
|
-
}, [
|
|
1709
|
+
}, [l("div", {
|
|
1800
1710
|
class: "listview-item-main"
|
|
1801
|
-
}, [
|
|
1711
|
+
}, [l("h4", {
|
|
1802
1712
|
class: "listview-item-title"
|
|
1803
|
-
}, null),
|
|
1713
|
+
}, null), l("h5", {
|
|
1804
1714
|
class: "listview-item-subtitle"
|
|
1805
|
-
}, null)]),
|
|
1715
|
+
}, null)]), l("div", {
|
|
1806
1716
|
class: "listview-item-btns"
|
|
1807
|
-
}, [
|
|
1717
|
+
}, [l("button", {
|
|
1808
1718
|
class: "btn btn-link"
|
|
1809
|
-
}, [O(" "), "编辑"]),
|
|
1719
|
+
}, [O(" "), "编辑"]), l("button", {
|
|
1810
1720
|
class: "btn btn-link"
|
|
1811
1721
|
}, ["删除"])])])])])])])])])])]);
|
|
1812
1722
|
}
|
|
1813
|
-
}), G = /* @__PURE__ */
|
|
1723
|
+
}), G = /* @__PURE__ */ ie({
|
|
1814
1724
|
name: "FListViewDesign",
|
|
1815
|
-
props:
|
|
1725
|
+
props: Y,
|
|
1816
1726
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
|
|
1817
1727
|
setup(o, e) {
|
|
1818
|
-
const t =
|
|
1819
|
-
getVisualData:
|
|
1820
|
-
} =
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
}), e.expose(
|
|
1824
|
-
const
|
|
1825
|
-
const
|
|
1728
|
+
const t = b(), n = b(!0), a = b(!1), i = b([]), s = 0, c = b(o.columns), r = Fe(o, e), u = Re(o), d = Ne(o), p = Be(o, u), f = $e(o, /* @__PURE__ */ new Map(), r, d, u), g = Ue(o, f, u, i, e), w = ze(o, t), y = b(), h = K("designer-host-service"), S = K("design-item-context"), k = ht(S, h), x = ae(y, S, k), F = U(() => f.dataView.value.length), B = De(o, e, g, u), v = Oe(o, e, u, B, i), M = Ae(o), C = Le(o, {}, M), m = _e(o, f, v, d, u, M, C), T = je(o, u, C, m), R = Ge(o, u, C, m), N = qe(o, c, f, F, s, m, T, R), {
|
|
1729
|
+
getVisualData: L
|
|
1730
|
+
} = N;
|
|
1731
|
+
i.value = L(0, F.value + s - 1), oe(() => {
|
|
1732
|
+
y.value.componentInstance = x;
|
|
1733
|
+
}), e.expose(x.value);
|
|
1734
|
+
const E = U(() => {
|
|
1735
|
+
const _ = {
|
|
1826
1736
|
"f-list-view": !0,
|
|
1827
1737
|
"f-list-view-multiple": o.multiSelect,
|
|
1828
1738
|
"w-100": !0,
|
|
1829
1739
|
"h-100": !0
|
|
1830
1740
|
};
|
|
1831
|
-
return o.size !== "default" && (
|
|
1832
|
-
}),
|
|
1833
|
-
function
|
|
1834
|
-
return o.header === "SearchBar" ?
|
|
1741
|
+
return o.size !== "default" && (_[`${o.size}-item`] = !0), _;
|
|
1742
|
+
}), V = U(() => !!e.slots.footer || n.value);
|
|
1743
|
+
function I() {
|
|
1744
|
+
return o.header === "SearchBar" ? te : o.header === "ContentHeader" ? Ze : te;
|
|
1835
1745
|
}
|
|
1836
|
-
const
|
|
1746
|
+
const D = I(), {
|
|
1837
1747
|
renderHeader: P
|
|
1838
|
-
} =
|
|
1839
|
-
|
|
1840
|
-
function
|
|
1841
|
-
o.multiSelect && (
|
|
1748
|
+
} = D(o, e, w), W = et(), J = tt(o, e, f, W), me = nt(o, e, i, J, W, g);
|
|
1749
|
+
Qe(o, e, i, f, p, W, g, N, me, J);
|
|
1750
|
+
function fe(_) {
|
|
1751
|
+
o.multiSelect && (_.preventDefault(), _.stopPropagation());
|
|
1842
1752
|
}
|
|
1843
|
-
return () =>
|
|
1844
|
-
ref:
|
|
1845
|
-
class:
|
|
1846
|
-
onClick:
|
|
1847
|
-
}, [P(),
|
|
1753
|
+
return () => l("div", {
|
|
1754
|
+
ref: y,
|
|
1755
|
+
class: E.value,
|
|
1756
|
+
onClick: fe
|
|
1757
|
+
}, [P(), l("div", {
|
|
1848
1758
|
ref: t,
|
|
1849
1759
|
class: "f-list-view-content",
|
|
1850
1760
|
onMouseover: () => {
|
|
1851
|
-
|
|
1761
|
+
a.value = !0;
|
|
1852
1762
|
},
|
|
1853
1763
|
onMouseleave: () => {
|
|
1854
|
-
|
|
1764
|
+
a.value = !1;
|
|
1855
1765
|
}
|
|
1856
|
-
}, [
|
|
1766
|
+
}, [l(ce, null, null)]), V.value && l("div", {
|
|
1857
1767
|
class: "f-list-view-footer"
|
|
1858
1768
|
}, [e.slots.footer && e.slots.footer()])]);
|
|
1859
1769
|
}
|
|
1860
|
-
}),
|
|
1861
|
-
|
|
1862
|
-
|
|
1770
|
+
}), wt = "https://json-schema.org/draft/2020-12/schema", yt = "https://farris-design.gitee.io/list-view-table.schema.json", Ct = "list-view-table", bt = "A Farris Component", It = "object", Vt = {
|
|
1771
|
+
id: {
|
|
1772
|
+
description: "The unique identifier for list-view-table",
|
|
1773
|
+
type: "string"
|
|
1774
|
+
},
|
|
1775
|
+
type: {
|
|
1776
|
+
description: "The type string of list-view-table",
|
|
1777
|
+
type: "string",
|
|
1778
|
+
default: "list-view-table"
|
|
1779
|
+
},
|
|
1780
|
+
appearance: {
|
|
1781
|
+
description: "",
|
|
1782
|
+
type: "object",
|
|
1783
|
+
properties: {
|
|
1784
|
+
class: {
|
|
1785
|
+
type: "string"
|
|
1786
|
+
},
|
|
1787
|
+
style: {
|
|
1788
|
+
type: "string"
|
|
1789
|
+
}
|
|
1790
|
+
},
|
|
1791
|
+
default: {}
|
|
1792
|
+
},
|
|
1793
|
+
binding: {
|
|
1794
|
+
description: "",
|
|
1795
|
+
type: "object",
|
|
1796
|
+
default: {}
|
|
1797
|
+
},
|
|
1798
|
+
disable: {
|
|
1799
|
+
type: "string",
|
|
1800
|
+
default: !1
|
|
1801
|
+
},
|
|
1802
|
+
editable: {
|
|
1803
|
+
description: "",
|
|
1804
|
+
type: "boolean",
|
|
1805
|
+
default: !0
|
|
1806
|
+
},
|
|
1807
|
+
placeholder: {
|
|
1808
|
+
description: "",
|
|
1809
|
+
type: "string",
|
|
1810
|
+
default: ""
|
|
1811
|
+
},
|
|
1812
|
+
readonly: {
|
|
1813
|
+
description: "",
|
|
1814
|
+
type: "boolean",
|
|
1815
|
+
default: !1
|
|
1816
|
+
},
|
|
1817
|
+
require: {
|
|
1818
|
+
description: "",
|
|
1819
|
+
type: "boolean",
|
|
1820
|
+
default: !1
|
|
1821
|
+
},
|
|
1822
|
+
tabindex: {
|
|
1823
|
+
description: "",
|
|
1824
|
+
type: "number",
|
|
1825
|
+
default: -1
|
|
1826
|
+
},
|
|
1827
|
+
visible: {
|
|
1828
|
+
description: "",
|
|
1829
|
+
type: "boolean",
|
|
1830
|
+
default: !0
|
|
1831
|
+
}
|
|
1832
|
+
}, St = [
|
|
1833
|
+
"id",
|
|
1834
|
+
"type"
|
|
1835
|
+
], de = {
|
|
1836
|
+
$schema: wt,
|
|
1837
|
+
$id: yt,
|
|
1838
|
+
title: Ct,
|
|
1839
|
+
description: bt,
|
|
1840
|
+
type: It,
|
|
1841
|
+
properties: Vt,
|
|
1842
|
+
required: St
|
|
1843
|
+
}, Mt = "list-view-table", kt = "A Farris Component", xt = "object", Et = {
|
|
1844
|
+
basic: {
|
|
1845
|
+
description: "Basic Infomation",
|
|
1846
|
+
title: "基本信息",
|
|
1847
|
+
properties: {
|
|
1848
|
+
id: {
|
|
1849
|
+
description: "组件标识",
|
|
1850
|
+
title: "标识",
|
|
1851
|
+
type: "string",
|
|
1852
|
+
readonly: !0
|
|
1853
|
+
},
|
|
1854
|
+
type: {
|
|
1855
|
+
description: "组件类型",
|
|
1856
|
+
title: "控件类型",
|
|
1857
|
+
type: "select",
|
|
1858
|
+
editor: {
|
|
1859
|
+
type: "waiting for modification",
|
|
1860
|
+
enum: []
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}, Tt = {
|
|
1866
|
+
title: Mt,
|
|
1867
|
+
description: kt,
|
|
1868
|
+
type: xt,
|
|
1869
|
+
categories: Et
|
|
1870
|
+
}, ue = {
|
|
1871
|
+
data: { type: Array, default: [] }
|
|
1872
|
+
};
|
|
1873
|
+
ne(ue, de, q, H, Tt);
|
|
1874
|
+
const pe = se(
|
|
1875
|
+
ue,
|
|
1876
|
+
de,
|
|
1877
|
+
q,
|
|
1878
|
+
H
|
|
1879
|
+
), Pt = Se();
|
|
1880
|
+
G.register = (o, e, t, n, a) => {
|
|
1881
|
+
o["list-view"] = ye, e["list-view"] = re(a), o["list-view-table"] = Ie, e["list-view-table"] = pe(a), n["list-view"] = { bindingResolver: Pt };
|
|
1863
1882
|
};
|
|
1864
|
-
G.registerDesigner = (o, e, t) => {
|
|
1865
|
-
o["list-view"] = G, e["list-view"] =
|
|
1883
|
+
G.registerDesigner = (o, e, t, n) => {
|
|
1884
|
+
o["list-view"] = G, e["list-view"] = re(n), o["list-view-table"] = ce, e["list-view-table"] = pe(n);
|
|
1866
1885
|
};
|
|
1867
|
-
const
|
|
1886
|
+
const jt = we(G);
|
|
1868
1887
|
export {
|
|
1869
1888
|
G as FListViewDesign,
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1889
|
+
Pt as bindingResolver,
|
|
1890
|
+
jt as default,
|
|
1891
|
+
Y as listViewDesignProps,
|
|
1892
|
+
_t as propsResolver,
|
|
1893
|
+
re as propsResolverGenerator
|
|
1874
1894
|
};
|