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