@farris/ui-vue 1.7.1 → 1.7.2-beta.2
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 +1492 -59
- 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-edit/index.esm.js +1 -1
- package/components/button-edit/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 +344 -341
- package/components/calendar/index.umd.cjs +3 -3
- 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 +302 -299
- 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 +329 -292
- 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 +294 -291
- package/components/comment/index.umd.cjs +6 -6
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +4390 -2708
- package/components/component/index.umd.cjs +8 -1
- package/components/condition/index.esm.js +3140 -487
- package/components/condition/index.umd.cjs +8 -1
- package/components/data-grid/index.esm.js +4 -2
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +1859 -1832
- 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 +3731 -2717
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +417 -405
- 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 +1245 -1895
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +275 -271
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +529 -450
- 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 +2613 -1544
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +7376 -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 +423 -415
- 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 +9049 -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 +364 -355
- package/components/image/index.umd.cjs +2 -2
- 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 +411 -409
- 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 +427 -646
- 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 +5 -3
- 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 +1641 -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 +1196 -851
- 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 +1817 -854
- package/components/property-panel/index.umd.cjs +12 -5
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +6858 -3984
- 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 +2448 -2222
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +244 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +212 -209
- 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 +9493 -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 +760 -543
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +129 -128
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +320 -153
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +1112 -607
- 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 +5301 -4507
- package/designer/data-grid/index.umd.cjs +17 -10
- package/designer/drawer/index.esm.js +626 -615
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +2043 -1290
- package/designer/dynamic-form/index.umd.cjs +8 -1
- package/designer/farris-designer.all.esm.js +14263 -12505
- package/designer/farris-designer.all.umd.cjs +16 -16
- package/designer/list-view/index.esm.js +327 -327
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/modal/index.esm.js +29 -137
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +238 -232
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +178 -171
- package/designer/response-layout-editor/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 +3431 -2493
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +195 -188
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +822 -464
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +77525 -74884
- package/farris.all.umd.cjs +93 -93
- 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 +8 -1
- package/types/condition/index.d.ts +55 -0
- package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
- 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 -4
- package/types/dynamic-form/index.d.ts +6 -11
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
- package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
- package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
- package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
- package/types/dynamic-form/src/response-form.props.d.ts +13 -1
- package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -0
- 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-resolver/src/types.d.ts +1 -0
- package/types/dynamic-view/index.d.ts +43 -3
- package/types/dynamic-view/src/components/maps.d.ts +110 -98
- package/types/dynamic-view/src/composition/index.d.ts +5 -0
- package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
- 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/language-textbox/index.d.ts +3 -3
- package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
- package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
- 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/popup-container.component.d.ts +3 -3
- 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/property-panel/src/property-panel.component.d.ts +3 -3
- 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-view/src/tree-view.props.d.ts +1 -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,75 +1,153 @@
|
|
|
1
|
-
import { ref as D, computed as
|
|
2
|
-
import { FButtonEdit as
|
|
3
|
-
import { isPlainObject as
|
|
1
|
+
import { ref as D, computed as B, defineComponent as V, provide as H, onMounted as me, createVNode as h, createTextVNode as R, inject as G } from "vue";
|
|
2
|
+
import { FButtonEdit as fe } from "../button-edit/index.esm.js";
|
|
3
|
+
import { isPlainObject as U, cloneDeep as L } from "lodash-es";
|
|
4
4
|
import { FPropertyPanel as pe } from "../property-panel/index.esm.js";
|
|
5
5
|
import { FTreeView as ve } from "../tree-view/index.esm.js";
|
|
6
|
-
function
|
|
7
|
-
|
|
6
|
+
function J(e, t) {
|
|
7
|
+
let n;
|
|
8
|
+
function a(r) {
|
|
9
|
+
const { properties: l, title: s, ignore: o } = r, i = o && Array.isArray(o), c = Object.keys(l).reduce((p, b) => ((!i || !o.find((T) => T === b)) && (p[b] = l[b].type === "object" && l[b].properties ? a(l[b]) : L(l[b].default)), p), {});
|
|
10
|
+
if (s && (!i || !o.find((p) => p === "id"))) {
|
|
11
|
+
const p = s.toLowerCase().replace(/-/g, "_");
|
|
12
|
+
c.id = `${p}_${Math.random().toString().slice(2, 6)}`;
|
|
13
|
+
}
|
|
14
|
+
return c;
|
|
15
|
+
}
|
|
16
|
+
function v(r) {
|
|
17
|
+
const { properties: l, title: s, required: o } = r;
|
|
18
|
+
if (o && Array.isArray(o)) {
|
|
19
|
+
const i = o.reduce((c, p) => (c[p] = l[p].type === "object" && l[p].properties ? a(l[p]) : L(l[p].default), c), {});
|
|
20
|
+
if (s && o.find((c) => c === "id")) {
|
|
21
|
+
const c = s.toLowerCase().replace(/-/g, "_");
|
|
22
|
+
i.id = `${c}_${Math.random().toString().slice(2, 6)}`;
|
|
23
|
+
}
|
|
24
|
+
return i;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
type: s
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function y(r, l = {}, s) {
|
|
31
|
+
const o = e[r];
|
|
32
|
+
if (o) {
|
|
33
|
+
let i = v(o);
|
|
34
|
+
const c = t[r];
|
|
35
|
+
return i = c ? c({ getSchemaByType: y }, i, l, s) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
function S(r, l) {
|
|
40
|
+
const s = a(l);
|
|
41
|
+
return Object.keys(s).reduce((o, i) => (Object.prototype.hasOwnProperty.call(r, i) && (o[i] && U(o[i]) && U(r[i] || !r[i]) ? Object.assign(o[i], r[i] || {}) : o[i] = r[i]), o), s), s;
|
|
42
|
+
}
|
|
43
|
+
function x(r, l) {
|
|
44
|
+
return Object.keys(r).filter((o) => r[o] != null).reduce((o, i) => {
|
|
45
|
+
if (l.has(i)) {
|
|
46
|
+
const c = l.get(i);
|
|
47
|
+
if (typeof c == "string")
|
|
48
|
+
o[c] = r[i];
|
|
49
|
+
else {
|
|
50
|
+
const p = c(i, r[i], r);
|
|
51
|
+
Object.assign(o, p);
|
|
52
|
+
}
|
|
53
|
+
} else
|
|
54
|
+
o[i] = r[i];
|
|
55
|
+
return o;
|
|
56
|
+
}, {});
|
|
57
|
+
}
|
|
58
|
+
function g(r, l, s = /* @__PURE__ */ new Map()) {
|
|
59
|
+
const o = S(r, l);
|
|
60
|
+
return x(o, s);
|
|
61
|
+
}
|
|
62
|
+
function u(r) {
|
|
63
|
+
var s;
|
|
64
|
+
const l = r.type;
|
|
65
|
+
if (l) {
|
|
66
|
+
const o = e[l];
|
|
67
|
+
if (!o)
|
|
68
|
+
return r;
|
|
69
|
+
const i = S(r, o), c = ((s = r.editor) == null ? void 0 : s.type) || "";
|
|
70
|
+
if (c) {
|
|
71
|
+
const p = e[c], b = S(r.editor, p);
|
|
72
|
+
i.editor = b;
|
|
73
|
+
}
|
|
74
|
+
return i;
|
|
75
|
+
}
|
|
76
|
+
return r;
|
|
77
|
+
}
|
|
78
|
+
function f(r) {
|
|
79
|
+
n = r;
|
|
80
|
+
}
|
|
81
|
+
return { getSchemaByType: y, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: g, mappingSchemaToProps: x, setDesignerContext: f };
|
|
82
|
+
}
|
|
83
|
+
const Q = {}, X = {}, { resolveSchemaWithDefaultValue: ge, resolveSchemaToProps: be, mappingSchemaToProps: ye } = J(Q, X);
|
|
84
|
+
function Ce(e = {}) {
|
|
85
|
+
function t(u, f, r, l) {
|
|
8
86
|
if (typeof r == "number")
|
|
9
|
-
return
|
|
87
|
+
return l[u].length === r;
|
|
10
88
|
if (typeof r == "object") {
|
|
11
89
|
const s = Object.keys(r)[0], o = r[s];
|
|
12
90
|
if (s === "not")
|
|
13
|
-
return Number(
|
|
91
|
+
return Number(l[u].length) !== Number(o);
|
|
14
92
|
if (s === "moreThan")
|
|
15
|
-
return Number(
|
|
93
|
+
return Number(l[u].length) >= Number(o);
|
|
16
94
|
if (s === "lessThan")
|
|
17
|
-
return Number(
|
|
95
|
+
return Number(l[u].length) <= Number(o);
|
|
18
96
|
}
|
|
19
97
|
return !1;
|
|
20
98
|
}
|
|
21
|
-
function n(u,
|
|
22
|
-
return
|
|
99
|
+
function n(u, f, r, l) {
|
|
100
|
+
return l[u] && l[u].propertyValue && String(l[u].propertyValue.value) === String(r);
|
|
23
101
|
}
|
|
24
|
-
const
|
|
102
|
+
const a = /* @__PURE__ */ new Map([
|
|
25
103
|
["length", t],
|
|
26
104
|
["getProperty", n]
|
|
27
105
|
]);
|
|
28
|
-
Object.keys(e).reduce((u,
|
|
29
|
-
function v(u,
|
|
106
|
+
Object.keys(e).reduce((u, f) => (u.set(f, e[f]), u), a);
|
|
107
|
+
function v(u, f) {
|
|
30
108
|
const r = u;
|
|
31
|
-
return typeof
|
|
32
|
-
if (
|
|
33
|
-
return { target: r, operator: "length", param: null, value:
|
|
34
|
-
const s =
|
|
109
|
+
return typeof f == "number" ? [{ target: r, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: r, operator: "getProperty", param: u, value: !!f }] : typeof f == "object" ? Object.keys(f).map((l) => {
|
|
110
|
+
if (l === "length")
|
|
111
|
+
return { target: r, operator: "length", param: null, value: f[l] };
|
|
112
|
+
const s = l, o = f[l];
|
|
35
113
|
return { target: r, operator: "getProperty", param: s, value: o };
|
|
36
114
|
}) : [];
|
|
37
115
|
}
|
|
38
116
|
function y(u) {
|
|
39
|
-
return Object.keys(u).reduce((r,
|
|
40
|
-
const s = v(
|
|
117
|
+
return Object.keys(u).reduce((r, l) => {
|
|
118
|
+
const s = v(l, u[l]);
|
|
41
119
|
return r.push(...s), r;
|
|
42
120
|
}, []);
|
|
43
121
|
}
|
|
44
|
-
function
|
|
45
|
-
if (
|
|
46
|
-
const r =
|
|
47
|
-
return r && r(u.target, u.param, u.value,
|
|
122
|
+
function S(u, f) {
|
|
123
|
+
if (a.has(u.operator)) {
|
|
124
|
+
const r = a.get(u.operator);
|
|
125
|
+
return r && r(u.target, u.param, u.value, f) || !1;
|
|
48
126
|
}
|
|
49
127
|
return !1;
|
|
50
128
|
}
|
|
51
|
-
function x(u,
|
|
52
|
-
return y(u).reduce((s, o) => s &&
|
|
129
|
+
function x(u, f) {
|
|
130
|
+
return y(u).reduce((s, o) => s && S(o, f), !0);
|
|
53
131
|
}
|
|
54
|
-
function g(u,
|
|
55
|
-
const r = Object.keys(u),
|
|
56
|
-
return
|
|
132
|
+
function g(u, f) {
|
|
133
|
+
const r = Object.keys(u), l = r.includes("allOf"), s = r.includes("anyOf"), o = l || s, p = (o ? u[o ? l ? "allOf" : "anyOf" : "allOf"] : [u]).map((T) => x(T, f));
|
|
134
|
+
return l ? !p.includes(!1) : p.includes(!0);
|
|
57
135
|
}
|
|
58
136
|
return { parseValueSchema: g };
|
|
59
137
|
}
|
|
60
|
-
const
|
|
61
|
-
convertTo: (e, t, n,
|
|
138
|
+
const Se = {
|
|
139
|
+
convertTo: (e, t, n, a) => {
|
|
62
140
|
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
63
141
|
},
|
|
64
142
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
65
|
-
},
|
|
143
|
+
}, Fe = {
|
|
66
144
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
67
|
-
},
|
|
68
|
-
convertTo: (e, t, n,
|
|
145
|
+
}, Te = {
|
|
146
|
+
convertTo: (e, t, n, a) => {
|
|
69
147
|
e.editor && (e.editor[t] = n);
|
|
70
148
|
},
|
|
71
149
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
72
|
-
},
|
|
150
|
+
}, xe = {
|
|
73
151
|
button: { type: "button", name: "按钮" },
|
|
74
152
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
75
153
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -123,20 +201,25 @@ const be = {
|
|
|
123
201
|
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
124
202
|
comment: { type: "comment", name: "评论区" },
|
|
125
203
|
"rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
|
|
126
|
-
calendar: { type: "calendar", name: "日历", icon: "date-picker" }
|
|
127
|
-
|
|
204
|
+
calendar: { type: "calendar", name: "日历", icon: "date-picker" },
|
|
205
|
+
wizard: { type: "wizard", name: "向导", icon: "wizard" },
|
|
206
|
+
"wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
|
|
207
|
+
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
|
|
208
|
+
step: { type: "step", name: "步骤条", icon: "step" },
|
|
209
|
+
"dynamic-form": { type: "dynamic-form", name: "动态表单" }
|
|
210
|
+
}, we = {
|
|
128
211
|
convertFrom: (e, t, n) => {
|
|
129
212
|
var v;
|
|
130
|
-
const
|
|
131
|
-
return ((v =
|
|
213
|
+
const a = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
214
|
+
return ((v = xe[a]) == null ? void 0 : v.name) || a;
|
|
132
215
|
}
|
|
133
|
-
},
|
|
134
|
-
convertTo: (e, t, n,
|
|
216
|
+
}, he = {
|
|
217
|
+
convertTo: (e, t, n, a) => {
|
|
135
218
|
e[t] = e[t];
|
|
136
219
|
},
|
|
137
220
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
138
|
-
},
|
|
139
|
-
convertTo: (e, t, n,
|
|
221
|
+
}, Oe = {
|
|
222
|
+
convertTo: (e, t, n, a) => {
|
|
140
223
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
|
|
141
224
|
[t]: n
|
|
142
225
|
});
|
|
@@ -163,11 +246,13 @@ const be = {
|
|
|
163
246
|
return e.formatter.customFormat;
|
|
164
247
|
if (t === "type")
|
|
165
248
|
return e.formatter.type || "none";
|
|
249
|
+
if (t === "customFormat")
|
|
250
|
+
return e.formmater.customFormat;
|
|
166
251
|
}
|
|
167
252
|
return "none";
|
|
168
253
|
}
|
|
169
|
-
},
|
|
170
|
-
convertTo: (e, t, n,
|
|
254
|
+
}, Pe = {
|
|
255
|
+
convertTo: (e, t, n, a) => {
|
|
171
256
|
e.command ? e.command[t] = n : e.command = {
|
|
172
257
|
[t]: n
|
|
173
258
|
}, t === "enableType" && n === "default" && (e.command.enable = !0, e.command.commands = [
|
|
@@ -184,38 +269,26 @@ const be = {
|
|
|
184
269
|
]), t === "enableType" && n === "custom" && (e.command.enable = !0, e.command.commands = [
|
|
185
270
|
{
|
|
186
271
|
value: "add",
|
|
187
|
-
text:
|
|
188
|
-
en: "add",
|
|
189
|
-
"zh-CHS": "增加",
|
|
190
|
-
"zh-CHT": "增加"
|
|
191
|
-
},
|
|
272
|
+
text: "增加",
|
|
192
273
|
type: "link"
|
|
193
274
|
},
|
|
194
275
|
{
|
|
195
276
|
value: "edit",
|
|
196
|
-
text:
|
|
197
|
-
en: "edit",
|
|
198
|
-
"zh-CHS": "编辑",
|
|
199
|
-
"zh-CHT": "編輯"
|
|
200
|
-
},
|
|
277
|
+
text: "编辑",
|
|
201
278
|
type: "danger"
|
|
202
279
|
},
|
|
203
280
|
{
|
|
204
281
|
value: "remove",
|
|
205
|
-
text:
|
|
206
|
-
en: "remove",
|
|
207
|
-
"zh-CHS": "删除",
|
|
208
|
-
"zh-CHT": "刪除"
|
|
209
|
-
},
|
|
282
|
+
text: "删除",
|
|
210
283
|
type: "remove"
|
|
211
284
|
}
|
|
212
285
|
]), t === "enableType" && n === "unable" && (e.command.enable = !1);
|
|
213
286
|
},
|
|
214
287
|
convertFrom: (e, t, n) => {
|
|
215
|
-
var
|
|
288
|
+
var a, v;
|
|
216
289
|
if (e.command) {
|
|
217
290
|
if (t === "enableType") {
|
|
218
|
-
const y = (v = (
|
|
291
|
+
const y = (v = (a = e.command) == null ? void 0 : a.commands) == null ? void 0 : v.find((S) => S.command === "edit" && S.type === "primary");
|
|
219
292
|
return e.command.enable ? y ? "default" : "custom" : "unable";
|
|
220
293
|
}
|
|
221
294
|
if (t === "commands")
|
|
@@ -224,11 +297,13 @@ const be = {
|
|
|
224
297
|
return e.command.formatter;
|
|
225
298
|
if (t === "count")
|
|
226
299
|
return e.command.count;
|
|
300
|
+
if (t === "columnWidth")
|
|
301
|
+
return e.command.columnWidth || 150;
|
|
227
302
|
}
|
|
228
303
|
return "";
|
|
229
304
|
}
|
|
230
|
-
},
|
|
231
|
-
convertTo: (e, t, n,
|
|
305
|
+
}, ke = {
|
|
306
|
+
convertTo: (e, t, n, a) => {
|
|
232
307
|
e.column ? e.column[t] = n : e.column = {
|
|
233
308
|
[t]: n
|
|
234
309
|
}, t === "fitColumns" && n && (e.column.fitMode || (e.column.fitMode = "average"));
|
|
@@ -242,8 +317,8 @@ const be = {
|
|
|
242
317
|
}
|
|
243
318
|
return "";
|
|
244
319
|
}
|
|
245
|
-
},
|
|
246
|
-
convertTo: (e, t, n,
|
|
320
|
+
}, Ee = {
|
|
321
|
+
convertTo: (e, t, n, a) => {
|
|
247
322
|
e.summary ? e.summary[t] = n : e.summary = {
|
|
248
323
|
[t]: n
|
|
249
324
|
}, t === "enable" && n && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
|
|
@@ -251,9 +326,12 @@ const be = {
|
|
|
251
326
|
groupFields: []
|
|
252
327
|
});
|
|
253
328
|
},
|
|
254
|
-
convertFrom: (e, t, n) =>
|
|
255
|
-
|
|
256
|
-
|
|
329
|
+
convertFrom: (e, t, n) => {
|
|
330
|
+
var a;
|
|
331
|
+
return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((a = e.summary) == null ? void 0 : a[t]) || "bottom" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
|
|
332
|
+
}
|
|
333
|
+
}, De = {
|
|
334
|
+
convertTo: (e, t, n, a) => {
|
|
257
335
|
e.group ? e.group[t] = n : e.group = {
|
|
258
336
|
[t]: n
|
|
259
337
|
}, t === "enable" && n && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
|
|
@@ -270,71 +348,71 @@ const be = {
|
|
|
270
348
|
return e.group.showSummary;
|
|
271
349
|
}
|
|
272
350
|
}
|
|
273
|
-
},
|
|
351
|
+
}, je = {
|
|
274
352
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
275
353
|
convertTo: (e, t, n) => {
|
|
276
354
|
if (n && n.length > 0) {
|
|
277
|
-
const
|
|
278
|
-
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path =
|
|
355
|
+
const a = n[0];
|
|
356
|
+
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = a.bindingField, e.binding.field = a.id, e.binding.fullPath = a.path, e.path = a.bindingPath;
|
|
279
357
|
}
|
|
280
358
|
}
|
|
281
|
-
},
|
|
282
|
-
convertTo: (e, t, n,
|
|
283
|
-
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
359
|
+
}, Ne = {
|
|
360
|
+
convertTo: (e, t, n, a) => {
|
|
361
|
+
e.pagination || (e.pagination = {}), t === "sizeLimits" ? e.pagination.sizeLimits = n.split(",") : e.pagination[t] = n;
|
|
284
362
|
},
|
|
285
|
-
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
286
|
-
},
|
|
287
|
-
convertTo: (e, t, n,
|
|
363
|
+
convertFrom: (e, t, n) => e.pagination ? t === "sizeLimits" ? e.pagination.sizeLimits.join(",") : e.pagination[t] : e[t]
|
|
364
|
+
}, Me = {
|
|
365
|
+
convertTo: (e, t, n, a) => {
|
|
288
366
|
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
|
|
289
367
|
},
|
|
290
368
|
convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
291
|
-
},
|
|
292
|
-
convertTo: (e, t, n,
|
|
369
|
+
}, $e = {
|
|
370
|
+
convertTo: (e, t, n, a) => {
|
|
293
371
|
e.selection || (e.selection = {}), e.selection[t] = n;
|
|
294
372
|
},
|
|
295
373
|
convertFrom: (e, t, n) => {
|
|
296
|
-
var
|
|
297
|
-
return t === "showCheckbox" ? (
|
|
374
|
+
var a, v;
|
|
375
|
+
return t === "showCheckbox" ? (a = e.selection) != null && a.multiSelect ? !0 : (v = e.selection) == null ? void 0 : v.showCheckbox : e.selection ? e.selection[t] : e[t];
|
|
298
376
|
}
|
|
299
|
-
},
|
|
377
|
+
}, ze = {
|
|
300
378
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
301
|
-
},
|
|
379
|
+
}, Re = {
|
|
302
380
|
convertFrom: (e, t) => e[t] || "",
|
|
303
381
|
convertTo: (e, t, n) => {
|
|
304
382
|
e[t] = n;
|
|
305
383
|
}
|
|
306
|
-
},
|
|
307
|
-
convertTo: (e, t, n,
|
|
384
|
+
}, Be = {
|
|
385
|
+
convertTo: (e, t, n, a) => {
|
|
308
386
|
e.size || (e.size = {}), e.size[t] = n;
|
|
309
387
|
},
|
|
310
388
|
convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
|
|
311
|
-
},
|
|
389
|
+
}, Le = {
|
|
312
390
|
convertFrom: (e, t, n) => {
|
|
313
|
-
var
|
|
314
|
-
return (
|
|
391
|
+
var a, v;
|
|
392
|
+
return (a = e.formatter) != null && a.data && t === "formatterEnumData" && !e.formatterEnumData ? (v = e.formatter) == null ? void 0 : v.data : e.formatterEnumData;
|
|
315
393
|
}
|
|
316
|
-
},
|
|
317
|
-
convertTo: (e, t, n,
|
|
394
|
+
}, Ae = {
|
|
395
|
+
convertTo: (e, t, n, a) => {
|
|
318
396
|
e.sort || (e.sort = {}), e.sort[t] = n;
|
|
319
397
|
},
|
|
320
398
|
convertFrom: (e, t, n) => {
|
|
321
|
-
var
|
|
399
|
+
var a, v;
|
|
322
400
|
if (t === "mode")
|
|
323
|
-
return ((
|
|
401
|
+
return ((a = e.sort) == null ? void 0 : a.mode) || "client";
|
|
324
402
|
if (t === "multiSort")
|
|
325
403
|
return !!((v = e.sort) != null && v.multiSort);
|
|
326
404
|
}
|
|
327
|
-
},
|
|
328
|
-
convertTo: (e, t, n,
|
|
405
|
+
}, qe = {
|
|
406
|
+
convertTo: (e, t, n, a) => {
|
|
329
407
|
e.filter || (e.filter = {}), e.filter[t] = n;
|
|
330
408
|
},
|
|
331
409
|
convertFrom: (e, t, n) => {
|
|
332
|
-
var
|
|
410
|
+
var a;
|
|
333
411
|
if (t === "mode")
|
|
334
|
-
return ((
|
|
412
|
+
return ((a = e.filter) == null ? void 0 : a.mode) || "client";
|
|
335
413
|
}
|
|
336
|
-
},
|
|
337
|
-
convertTo: (e, t, n,
|
|
414
|
+
}, _e = {
|
|
415
|
+
convertTo: (e, t, n, a) => {
|
|
338
416
|
e.rowOption ? e.rowOption[t] = n : e.rowOption = {
|
|
339
417
|
[t]: n
|
|
340
418
|
};
|
|
@@ -345,11 +423,13 @@ const be = {
|
|
|
345
423
|
return e.rowOption.customRowStyle;
|
|
346
424
|
if (t === "customCellStyle")
|
|
347
425
|
return e.rowOption.customCellStyle;
|
|
426
|
+
if (t === "height")
|
|
427
|
+
return e.rowOption.height;
|
|
348
428
|
}
|
|
349
429
|
return "";
|
|
350
430
|
}
|
|
351
|
-
},
|
|
352
|
-
convertTo: (e, t, n,
|
|
431
|
+
}, Ie = {
|
|
432
|
+
convertTo: (e, t, n, a) => {
|
|
353
433
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = n, t === "columnTemplateType" && n === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
|
|
354
434
|
<span class="f-pretend-link f-cursor-pointer"
|
|
355
435
|
@click="(ctx)=>viewModel.current.${e.onClickLinkCommand || ""}({id: rowData.id,context: ctx})">
|
|
@@ -361,30 +441,30 @@ const be = {
|
|
|
361
441
|
},
|
|
362
442
|
convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
363
443
|
};
|
|
364
|
-
function
|
|
365
|
-
const
|
|
366
|
-
["/converter/appearance.converter",
|
|
367
|
-
["/converter/buttons.converter",
|
|
368
|
-
["/converter/property-editor.converter",
|
|
369
|
-
["/converter/items-count.converter",
|
|
370
|
-
["/converter/type.converter",
|
|
371
|
-
["/converter/change-editor.converter",
|
|
372
|
-
["/converter/change-formatter.converter",
|
|
373
|
-
["/converter/column-command.converter",
|
|
374
|
-
["/converter/column-option.converter",
|
|
375
|
-
["/converter/summary.converter",
|
|
376
|
-
["/converter/group.converter",
|
|
377
|
-
["/converter/form-group-label.converter",
|
|
378
|
-
["/converter/field-selector.converter",
|
|
379
|
-
["/converter/pagination.converter",
|
|
380
|
-
["/converter/row-number.converter",
|
|
381
|
-
["/converter/grid-selection.converter",
|
|
382
|
-
["/converter/size.converter",
|
|
383
|
-
["/converter/change-formatter-enum.converter",
|
|
384
|
-
["/converter/grid-sort.converter",
|
|
385
|
-
["/converter/grid-filter.converter",
|
|
386
|
-
["/converter/row-option.converter",
|
|
387
|
-
["/converter/change-formatter-type.converter",
|
|
444
|
+
function Y(e, t, n) {
|
|
445
|
+
const a = /* @__PURE__ */ new Map([
|
|
446
|
+
["/converter/appearance.converter", Se],
|
|
447
|
+
["/converter/buttons.converter", Fe],
|
|
448
|
+
["/converter/property-editor.converter", Te],
|
|
449
|
+
["/converter/items-count.converter", ze],
|
|
450
|
+
["/converter/type.converter", we],
|
|
451
|
+
["/converter/change-editor.converter", he],
|
|
452
|
+
["/converter/change-formatter.converter", Oe],
|
|
453
|
+
["/converter/column-command.converter", Pe],
|
|
454
|
+
["/converter/column-option.converter", ke],
|
|
455
|
+
["/converter/summary.converter", Ee],
|
|
456
|
+
["/converter/group.converter", De],
|
|
457
|
+
["/converter/form-group-label.converter", Re],
|
|
458
|
+
["/converter/field-selector.converter", je],
|
|
459
|
+
["/converter/pagination.converter", Ne],
|
|
460
|
+
["/converter/row-number.converter", Me],
|
|
461
|
+
["/converter/grid-selection.converter", $e],
|
|
462
|
+
["/converter/size.converter", Be],
|
|
463
|
+
["/converter/change-formatter-enum.converter", Le],
|
|
464
|
+
["/converter/grid-sort.converter", Ae],
|
|
465
|
+
["/converter/grid-filter.converter", qe],
|
|
466
|
+
["/converter/row-option.converter", _e],
|
|
467
|
+
["/converter/change-formatter-type.converter", Ie]
|
|
388
468
|
]), v = /* @__PURE__ */ new Map([
|
|
389
469
|
["string", { type: "input-group", enableClear: !1 }],
|
|
390
470
|
["boolean", {
|
|
@@ -409,175 +489,98 @@ function J(e, t, n) {
|
|
|
409
489
|
["array", { type: "button-edit" }],
|
|
410
490
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
411
491
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
412
|
-
]), y =
|
|
413
|
-
function
|
|
492
|
+
]), y = Ce();
|
|
493
|
+
function S(o, i) {
|
|
414
494
|
return () => y.parseValueSchema(o, i);
|
|
415
495
|
}
|
|
416
496
|
function x(o, i, c) {
|
|
417
|
-
return o.includes("visible") && i.visible !== void 0 ? typeof i.visible == "boolean" ? () => !!i.visible : i.visible === void 0 ? !0 :
|
|
497
|
+
return o.includes("visible") && i.visible !== void 0 ? typeof i.visible == "boolean" ? () => !!i.visible : i.visible === void 0 ? !0 : S(i.visible, c) : () => !0;
|
|
418
498
|
}
|
|
419
499
|
function g(o, i, c) {
|
|
420
|
-
return o.includes("readonly") && i.readonly !== void 0 ? typeof i.readonly == "boolean" ? () => !!i.readonly :
|
|
500
|
+
return o.includes("readonly") && i.readonly !== void 0 ? typeof i.readonly == "boolean" ? () => !!i.readonly : S(i.readonly, c) : () => !1;
|
|
421
501
|
}
|
|
422
502
|
function u(o, i) {
|
|
423
503
|
const c = o.$converter || i;
|
|
424
|
-
return typeof c == "string" && c &&
|
|
504
|
+
return typeof c == "string" && c && a.has(c) ? a.get(c) || null : c || null;
|
|
425
505
|
}
|
|
426
|
-
function
|
|
427
|
-
return Object.keys(o).map((
|
|
428
|
-
const d = D(1),
|
|
429
|
-
|
|
430
|
-
const
|
|
506
|
+
function f(o, i, c, p, b, T = "", P = "") {
|
|
507
|
+
return Object.keys(o).map((F) => {
|
|
508
|
+
const d = D(1), w = F, C = o[F], m = Object.keys(C), $ = C.title, N = C.type, M = v.get(N) || { type: "input-group", enableClear: !1 }, j = C.editor ? Object.assign({}, M, C.editor) : Object.assign({}, M), A = x(m, C, i), z = g(m, C, i);
|
|
509
|
+
j.readonly = j.readonly === void 0 ? z() : j.readonly;
|
|
510
|
+
const q = C.type === "cascade" ? f(C.properties, i, c, p, b, T, P) : [], _ = !0;
|
|
431
511
|
let k = u(C, P);
|
|
432
|
-
const ae =
|
|
512
|
+
const ae = B({
|
|
433
513
|
get() {
|
|
434
514
|
if (d.value) {
|
|
435
|
-
if (["class", "style"].find((de) => de ===
|
|
436
|
-
return k.convertFrom(c,
|
|
437
|
-
const E = c[
|
|
515
|
+
if (["class", "style"].find((de) => de === w) && !k && (k = a.get("/converter/appearance.converter") || null), k && k.convertFrom)
|
|
516
|
+
return k.convertFrom(c, F, b, T);
|
|
517
|
+
const E = c[F];
|
|
438
518
|
return Object.prototype.hasOwnProperty.call(C, "defaultValue") && (E === void 0 || typeof E == "string" && E === "") ? C.type === "boolean" ? C.defaultValue : C.defaultValue || "" : E;
|
|
439
519
|
}
|
|
440
520
|
return null;
|
|
441
521
|
},
|
|
442
522
|
set(E) {
|
|
443
|
-
d.value += 1, k && k.convertTo ? (k.convertTo(p,
|
|
523
|
+
d.value += 1, k && k.convertTo ? (k.convertTo(p, F, E, b, T), k.convertTo(c, F, E, b, T)) : (p[F] = E, c[F] = E);
|
|
444
524
|
}
|
|
445
|
-
}), { refreshPanelAfterChanged: le, description: ce, isExpand: ue, parentPropertyID: se } = C,
|
|
446
|
-
return i[
|
|
525
|
+
}), { refreshPanelAfterChanged: le, description: ce, isExpand: ue, parentPropertyID: se } = C, W = { propertyID: w, propertyName: $, propertyType: N, propertyValue: ae, editor: j, visible: A, readonly: z, cascadeConfig: q, hideCascadeTitle: _, refreshPanelAfterChanged: le, description: ce, isExpand: ue, parentPropertyID: se };
|
|
526
|
+
return i[w] = W, W;
|
|
447
527
|
});
|
|
448
528
|
}
|
|
449
529
|
function r(o, i, c = {}) {
|
|
450
530
|
const p = {}, b = e[o];
|
|
451
531
|
return b && b.categories ? Object.keys(b.categories).map((P) => {
|
|
452
|
-
const O = b.categories[P],
|
|
453
|
-
return { categoryId: P, categoryName:
|
|
532
|
+
const O = b.categories[P], F = O == null ? void 0 : O.title, d = f(O.properties || {}, p, {}, c, i);
|
|
533
|
+
return { categoryId: P, categoryName: F, properties: d };
|
|
454
534
|
}) : [];
|
|
455
535
|
}
|
|
456
|
-
function
|
|
457
|
-
const
|
|
536
|
+
function l(o, i, c, p, b = "") {
|
|
537
|
+
const T = i.$ref.schema, P = i.$ref.converter, O = c[T], F = O.type, d = n(O), w = {}, C = e[F];
|
|
458
538
|
if (C && C.categories) {
|
|
459
|
-
const
|
|
460
|
-
P && Object.keys(
|
|
461
|
-
|
|
539
|
+
const m = C.categories[o], $ = m == null ? void 0 : m.title;
|
|
540
|
+
P && Object.keys(m.properties).forEach((j) => {
|
|
541
|
+
m.properties[j].$converter = P;
|
|
462
542
|
});
|
|
463
|
-
const
|
|
543
|
+
const N = (m == null ? void 0 : m.properties) || {}, M = f(N, w, d, O, p, b);
|
|
464
544
|
return { categoryId: o, categoryName: $, properties: M };
|
|
465
545
|
}
|
|
466
546
|
return { categoryId: o, categoryName: "", properties: [] };
|
|
467
547
|
}
|
|
468
548
|
function s(o, i, c, p, b) {
|
|
469
|
-
const
|
|
470
|
-
let
|
|
471
|
-
if (!(
|
|
472
|
-
const
|
|
473
|
-
return Object.keys(
|
|
474
|
-
const
|
|
475
|
-
if (
|
|
476
|
-
|
|
549
|
+
const T = o.type, P = n(o), O = {};
|
|
550
|
+
let F = b || e[T];
|
|
551
|
+
if (!(F && Object.keys(F).length > 0) && c && c.getPropConfig && (F = c.getPropConfig(p)), F && F.categories) {
|
|
552
|
+
const w = [];
|
|
553
|
+
return Object.keys(F.categories).map((C) => {
|
|
554
|
+
const m = F.categories[C];
|
|
555
|
+
if (m.$ref) {
|
|
556
|
+
w.push(l(C, m, o, i, p));
|
|
477
557
|
return;
|
|
478
558
|
}
|
|
479
|
-
const $ =
|
|
480
|
-
|
|
481
|
-
}),
|
|
559
|
+
const $ = m == null ? void 0 : m.title, N = m == null ? void 0 : m.tabId, M = m == null ? void 0 : m.tabName, j = m == null ? void 0 : m.hide, A = m == null ? void 0 : m.hideTitle, z = f(m.properties || {}, O, P, o, i, p, m.$converter), { setPropertyRelates: q } = m, _ = m == null ? void 0 : m.parentPropertyID;
|
|
560
|
+
w.push({ categoryId: C, categoryName: $, tabId: N, tabName: M, hide: j, properties: z, hideTitle: A, setPropertyRelates: q, parentPropertyID: _ });
|
|
561
|
+
}), w;
|
|
482
562
|
}
|
|
483
563
|
return [];
|
|
484
564
|
}
|
|
485
565
|
return {
|
|
486
566
|
getPropertyConfigBySchema: s,
|
|
487
567
|
getPropertyConfigByType: r,
|
|
488
|
-
propertyConverterMap:
|
|
568
|
+
propertyConverterMap: a
|
|
489
569
|
};
|
|
490
570
|
}
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
c.id = `${p}_${Math.random().toString().slice(2, 6)}`;
|
|
498
|
-
}
|
|
499
|
-
return c;
|
|
500
|
-
}
|
|
501
|
-
function v(r) {
|
|
502
|
-
const { properties: a, title: s, required: o } = r;
|
|
503
|
-
if (o && Array.isArray(o)) {
|
|
504
|
-
const i = o.reduce((c, p) => (c[p] = a[p].type === "object" && a[p].properties ? l(a[p]) : H(a[p].default), c), {});
|
|
505
|
-
if (s && o.find((c) => c === "id")) {
|
|
506
|
-
const c = s.toLowerCase().replace(/-/g, "_");
|
|
507
|
-
i.id = `${c}_${Math.random().toString().slice(2, 6)}`;
|
|
508
|
-
}
|
|
509
|
-
return i;
|
|
510
|
-
}
|
|
511
|
-
return {
|
|
512
|
-
type: s
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
function y(r, a = {}, s) {
|
|
516
|
-
const o = e[r];
|
|
517
|
-
if (o) {
|
|
518
|
-
let i = v(o);
|
|
519
|
-
const c = t[r];
|
|
520
|
-
return i = c ? c({ getSchemaByType: y }, i, a, s) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
|
|
521
|
-
}
|
|
522
|
-
return null;
|
|
523
|
-
}
|
|
524
|
-
function T(r, a) {
|
|
525
|
-
const s = l(a);
|
|
526
|
-
return Object.keys(s).reduce((o, i) => (Object.prototype.hasOwnProperty.call(r, i) && (o[i] && W(o[i]) && W(r[i] || !r[i]) ? Object.assign(o[i], r[i] || {}) : o[i] = r[i]), o), s), s;
|
|
527
|
-
}
|
|
528
|
-
function x(r, a) {
|
|
529
|
-
return Object.keys(r).filter((o) => r[o] != null).reduce((o, i) => {
|
|
530
|
-
if (a.has(i)) {
|
|
531
|
-
const c = a.get(i);
|
|
532
|
-
if (typeof c == "string")
|
|
533
|
-
o[c] = r[i];
|
|
534
|
-
else {
|
|
535
|
-
const p = c(i, r[i], r);
|
|
536
|
-
Object.assign(o, p);
|
|
537
|
-
}
|
|
538
|
-
} else
|
|
539
|
-
o[i] = r[i];
|
|
540
|
-
return o;
|
|
541
|
-
}, {});
|
|
542
|
-
}
|
|
543
|
-
function g(r, a, s = /* @__PURE__ */ new Map()) {
|
|
544
|
-
const o = T(r, a);
|
|
545
|
-
return x(o, s);
|
|
546
|
-
}
|
|
547
|
-
function u(r) {
|
|
548
|
-
var s;
|
|
549
|
-
const a = r.type;
|
|
550
|
-
if (a) {
|
|
551
|
-
const o = e[a];
|
|
552
|
-
if (!o)
|
|
553
|
-
return r;
|
|
554
|
-
const i = T(r, o), c = ((s = r.editor) == null ? void 0 : s.type) || "";
|
|
555
|
-
if (c) {
|
|
556
|
-
const p = e[c], b = T(r.editor, p);
|
|
557
|
-
i.editor = b;
|
|
558
|
-
}
|
|
559
|
-
return i;
|
|
560
|
-
}
|
|
561
|
-
return r;
|
|
562
|
-
}
|
|
563
|
-
function m(r) {
|
|
564
|
-
n = r;
|
|
565
|
-
}
|
|
566
|
-
return { getSchemaByType: y, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: g, mappingSchemaToProps: x, setDesignerContext: m };
|
|
567
|
-
}
|
|
568
|
-
const X = {}, Y = {}, { resolveSchemaWithDefaultValue: Ae } = Q(X, Y), Z = {}, K = {};
|
|
569
|
-
J(Z, K, Ae);
|
|
570
|
-
const ee = {}, te = {}, { resolveSchemaWithDefaultValue: qe, resolveSchemaToProps: _e, mappingSchemaToProps: Ie } = Q(ee, te), ne = {}, oe = {};
|
|
571
|
-
J(ne, oe, qe);
|
|
572
|
-
function Ge(e, t, n = /* @__PURE__ */ new Map(), l = (T, x, g, u) => x, v = {}, y = (T) => T) {
|
|
573
|
-
return ee[t.title] = t, te[t.title] = l, ne[t.title] = v, oe[t.title] = y, X[t.title] = t, Y[t.title] = l, Z[t.title] = v, K[t.title] = y, (T = {}, x = !0) => {
|
|
571
|
+
const Z = {}, K = {};
|
|
572
|
+
Y(Z, K, ge);
|
|
573
|
+
const ee = {}, te = {}, { resolveSchemaWithDefaultValue: We } = J(ee, te), ne = {}, oe = {};
|
|
574
|
+
Y(ne, oe, We);
|
|
575
|
+
function He(e, t, n = /* @__PURE__ */ new Map(), a = (S, x, g, u) => x, v = {}, y = (S) => S) {
|
|
576
|
+
return Q[t.title] = t, X[t.title] = a, Z[t.title] = v, K[t.title] = y, ee[t.title] = t, te[t.title] = a, ne[t.title] = v, oe[t.title] = y, (S = {}, x = !0) => {
|
|
574
577
|
if (!x)
|
|
575
|
-
return
|
|
576
|
-
const g =
|
|
578
|
+
return ye(S, n);
|
|
579
|
+
const g = be(S, t, n), u = Object.keys(e).reduce((f, r) => (f[r] = e[r].default, f), {});
|
|
577
580
|
return Object.assign(u, g);
|
|
578
581
|
};
|
|
579
582
|
}
|
|
580
|
-
const
|
|
583
|
+
const Ge = "https://json-schema.org/draft/2020-12/schema", Ue = "https://farris-design.gitee.io/collection-property-editor.schema.json", Ve = "collection-property-editor", Je = "A Farris Component", Qe = "object", Xe = {
|
|
581
584
|
id: {
|
|
582
585
|
description: "The unique identifier for collection-property-editor",
|
|
583
586
|
type: "string"
|
|
@@ -629,8 +632,8 @@ const Ue = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
629
632
|
], Ze = [
|
|
630
633
|
"id"
|
|
631
634
|
], Ke = {
|
|
632
|
-
$schema:
|
|
633
|
-
$id:
|
|
635
|
+
$schema: Ge,
|
|
636
|
+
$id: Ue,
|
|
634
637
|
title: Ve,
|
|
635
638
|
description: Je,
|
|
636
639
|
type: Qe,
|
|
@@ -676,28 +679,28 @@ const Ue = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
676
679
|
type: String,
|
|
677
680
|
default: "编辑器"
|
|
678
681
|
}
|
|
679
|
-
}, et =
|
|
682
|
+
}, et = He(ie, Ke), tt = /* @__PURE__ */ V({
|
|
680
683
|
name: "CollectionPropertyContainer",
|
|
681
684
|
props: re,
|
|
682
685
|
emits: ["valueChange", "selectionChange"],
|
|
683
686
|
setup(e, t) {
|
|
684
|
-
const n = D(),
|
|
687
|
+
const n = D(), a = D(), {
|
|
685
688
|
idField: v,
|
|
686
689
|
textField: y,
|
|
687
|
-
defaultComponentSchema:
|
|
690
|
+
defaultComponentSchema: S,
|
|
688
691
|
isToolbarHidden: x
|
|
689
|
-
} = e, g = D(e.modelValue), u = D(),
|
|
690
|
-
|
|
691
|
-
const r = D(),
|
|
692
|
+
} = e, g = D(e.modelValue), u = D(), f = D("collection-property-editor");
|
|
693
|
+
H("useFormCommand", e.useFormCommand), H("useFormSchema", e.useFormSchema);
|
|
694
|
+
const r = D(), l = B(() => !g.value || g.value.length === 0), s = [{
|
|
692
695
|
field: y,
|
|
693
696
|
title: "名称",
|
|
694
697
|
width: 340,
|
|
695
698
|
resizable: !0,
|
|
696
699
|
dataType: "string"
|
|
697
|
-
}], o =
|
|
700
|
+
}], o = B(() => g.value.filter((d) => e.visibleCondition ? e.visibleCondition(d) : !0));
|
|
698
701
|
function i() {
|
|
699
|
-
const d =
|
|
700
|
-
return d[v] = d[v] + "_" +
|
|
702
|
+
const d = L(S), w = Math.random().toString().slice(2, 6);
|
|
703
|
+
return d[v] = d[v] + "_" + w, d[y] = d[y] + "_" + w, d;
|
|
701
704
|
}
|
|
702
705
|
function c() {
|
|
703
706
|
const d = i();
|
|
@@ -711,7 +714,7 @@ const Ue = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
711
714
|
const d = g.value.indexOf(r.value);
|
|
712
715
|
g.value.splice(d, 1), n.value.updateDataSource(o.value), p();
|
|
713
716
|
}
|
|
714
|
-
function
|
|
717
|
+
function T() {
|
|
715
718
|
if (!r.value)
|
|
716
719
|
return;
|
|
717
720
|
const d = g.value.indexOf(r.value);
|
|
@@ -727,35 +730,35 @@ const Ue = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
727
730
|
r.value = d[0], t.emit("selectionChange", {
|
|
728
731
|
selectedData: r,
|
|
729
732
|
propertyConfig: u
|
|
730
|
-
}),
|
|
733
|
+
}), a.value.updatePropertyConfig(u.value, r.value, !0);
|
|
731
734
|
}
|
|
732
|
-
function
|
|
735
|
+
function F() {
|
|
733
736
|
n.value.updateDataSource(o.value);
|
|
734
737
|
}
|
|
735
|
-
return
|
|
738
|
+
return me(() => {
|
|
736
739
|
p();
|
|
737
|
-
}), () =>
|
|
740
|
+
}), () => h("div", {
|
|
738
741
|
class: "f-utils-fill-flex-column h-100 pt-2 pl-2 border-bottom"
|
|
739
|
-
}, [
|
|
742
|
+
}, [h("div", {
|
|
740
743
|
hidden: x,
|
|
741
744
|
class: "border-bottom pb-2"
|
|
742
|
-
}, [
|
|
745
|
+
}, [h("button", {
|
|
743
746
|
class: "btn btn-primary mr-2",
|
|
744
747
|
onClick: c
|
|
745
|
-
}, [
|
|
748
|
+
}, [R("新增")]), h("button", {
|
|
746
749
|
class: "btn btn-secondary mr-2",
|
|
747
750
|
onClick: b
|
|
748
|
-
}, [
|
|
751
|
+
}, [R("删除")]), h("button", {
|
|
749
752
|
class: "btn btn-secondary mr-2",
|
|
750
753
|
onClick: P
|
|
751
|
-
}, [
|
|
754
|
+
}, [R("上移")]), h("button", {
|
|
752
755
|
class: "btn btn-secondary mr-2",
|
|
753
|
-
onClick:
|
|
754
|
-
}, [
|
|
756
|
+
onClick: T
|
|
757
|
+
}, [R("下移")])]), h("div", {
|
|
755
758
|
class: "f-utils-fill-flex-row"
|
|
756
|
-
}, [
|
|
759
|
+
}, [h("div", {
|
|
757
760
|
class: "f-utils-fill f-utils-overflow-auto"
|
|
758
|
-
}, [
|
|
761
|
+
}, [h(ve, {
|
|
759
762
|
ref: n,
|
|
760
763
|
columns: s,
|
|
761
764
|
data: o.value,
|
|
@@ -765,28 +768,28 @@ const Ue = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
765
768
|
fit: "true",
|
|
766
769
|
idField: v,
|
|
767
770
|
onSelectionChange: O
|
|
768
|
-
}, null)]),
|
|
769
|
-
hidden:
|
|
771
|
+
}, null)]), h("div", {
|
|
772
|
+
hidden: l.value,
|
|
770
773
|
style: "height:550px;display: flex;"
|
|
771
|
-
}, [
|
|
774
|
+
}, [h(pe, {
|
|
772
775
|
propertyConfig: u.value,
|
|
773
|
-
ref:
|
|
774
|
-
propertyName:
|
|
776
|
+
ref: a,
|
|
777
|
+
propertyName: f.value,
|
|
775
778
|
enableSearch: !1,
|
|
776
|
-
onPropertyChanged:
|
|
779
|
+
onPropertyChanged: F
|
|
777
780
|
}, null)])])]);
|
|
778
781
|
}
|
|
779
|
-
}),
|
|
782
|
+
}), I = /* @__PURE__ */ V({
|
|
780
783
|
name: "FCollectionPropertyEditor",
|
|
781
784
|
props: ie,
|
|
782
785
|
emits: ["valueChange", "selectionChange"],
|
|
783
786
|
setup(e, t) {
|
|
784
|
-
const n = D(),
|
|
785
|
-
let
|
|
786
|
-
return y.value && (e.visibleCondition ?
|
|
787
|
+
const n = D(), a = G("useFormCommand"), v = G("useFormSchema"), y = D(L(e.modelValue) || []), S = B(() => {
|
|
788
|
+
let l = 0;
|
|
789
|
+
return y.value && (e.visibleCondition ? l = y.value.filter(e.visibleCondition).length : l = y.value.length), `共 ${l || 0} 项`;
|
|
787
790
|
});
|
|
788
|
-
function x(
|
|
789
|
-
|
|
791
|
+
function x(l) {
|
|
792
|
+
l && l.forEach((s) => {
|
|
790
793
|
Object.keys(s).forEach((o) => {
|
|
791
794
|
o.indexOf("__fv") > -1 && delete s[o];
|
|
792
795
|
});
|
|
@@ -798,12 +801,12 @@ const Ue = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
798
801
|
function u() {
|
|
799
802
|
return !0;
|
|
800
803
|
}
|
|
801
|
-
function
|
|
802
|
-
selectedData:
|
|
804
|
+
function f({
|
|
805
|
+
selectedData: l,
|
|
803
806
|
propertyConfig: s
|
|
804
807
|
}) {
|
|
805
808
|
t.emit("selectionChange", {
|
|
806
|
-
selectedData:
|
|
809
|
+
selectedData: l,
|
|
807
810
|
propertyConfig: s
|
|
808
811
|
});
|
|
809
812
|
}
|
|
@@ -828,26 +831,26 @@ const Ue = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
828
831
|
handle: g
|
|
829
832
|
}]
|
|
830
833
|
};
|
|
831
|
-
return () =>
|
|
832
|
-
modelValue:
|
|
833
|
-
"onUpdate:modelValue": (
|
|
834
|
+
return () => h(fe, {
|
|
835
|
+
modelValue: S.value,
|
|
836
|
+
"onUpdate:modelValue": (l) => S.value = l,
|
|
834
837
|
editable: !1,
|
|
835
838
|
enableTitle: !0,
|
|
836
839
|
inputType: "text",
|
|
837
840
|
buttonBehavior: "Modal",
|
|
838
841
|
modalOptions: r
|
|
839
842
|
}, {
|
|
840
|
-
default: () => [
|
|
843
|
+
default: () => [h("div", {
|
|
841
844
|
class: "h-100 d-flex flex-column"
|
|
842
|
-
}, [
|
|
845
|
+
}, [h(tt, {
|
|
843
846
|
ref: n,
|
|
844
847
|
modelValue: y.value,
|
|
845
|
-
"onUpdate:modelValue": (
|
|
848
|
+
"onUpdate:modelValue": (l) => y.value = l,
|
|
846
849
|
idField: e.idField,
|
|
847
850
|
textField: e.textField,
|
|
848
851
|
defaultComponentSchema: e.defaultComponentSchema,
|
|
849
|
-
onSelectionChange:
|
|
850
|
-
useFormCommand:
|
|
852
|
+
onSelectionChange: f,
|
|
853
|
+
useFormCommand: a,
|
|
851
854
|
useFormSchema: v,
|
|
852
855
|
visibleCondition: e.visibleCondition
|
|
853
856
|
}, null)])]
|
|
@@ -855,10 +858,10 @@ const Ue = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
855
858
|
}
|
|
856
859
|
}), lt = {
|
|
857
860
|
install(e) {
|
|
858
|
-
e.component(
|
|
861
|
+
e.component(I.name, I);
|
|
859
862
|
},
|
|
860
|
-
register(e, t, n,
|
|
861
|
-
e["collection-property-editor"] =
|
|
863
|
+
register(e, t, n, a) {
|
|
864
|
+
e["collection-property-editor"] = I, t["collection-property-editor"] = et;
|
|
862
865
|
}
|
|
863
866
|
};
|
|
864
867
|
export {
|