@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,12 +1,12 @@
|
|
|
1
|
-
import { ref as R, computed as
|
|
2
|
-
import
|
|
3
|
-
import { getCustomStyle as
|
|
4
|
-
import { resolveAppearance as
|
|
1
|
+
import { ref as R, computed as N, defineComponent as ce, watch as ue, onMounted as de, watchEffect as fe, createVNode as C, Teleport as me, Transition as A, withModifiers as _, withDirectives as pe, vShow as ve, Fragment as be } from "vue";
|
|
2
|
+
import ge from "../response-toolbar/index.esm.js";
|
|
3
|
+
import { getCustomStyle as ye, getMaxZIndex as we, withInstall as Te } from "../common/index.esm.js";
|
|
4
|
+
import { resolveAppearance as Ce } from "../dynamic-resolver/index.esm.js";
|
|
5
5
|
import { isPlainObject as I, cloneDeep as W } from "lodash-es";
|
|
6
6
|
import { LocaleService as G } from "../locale/index.esm.js";
|
|
7
|
-
const
|
|
8
|
-
["appearance",
|
|
9
|
-
]),
|
|
7
|
+
const he = /* @__PURE__ */ new Map([
|
|
8
|
+
["appearance", Ce]
|
|
9
|
+
]), Se = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-design.gitee.io/drawer.schema.json", Fe = "drawer", xe = "A Farris Component", Oe = "object", Pe = {
|
|
10
10
|
id: {
|
|
11
11
|
description: "The unique identifier for drawer",
|
|
12
12
|
type: "string"
|
|
@@ -181,24 +181,28 @@ const Ce = /* @__PURE__ */ new Map([
|
|
|
181
181
|
description: "遮罩层是否透明",
|
|
182
182
|
type: "boolean",
|
|
183
183
|
default: !1
|
|
184
|
+
},
|
|
185
|
+
host: {
|
|
186
|
+
description: "",
|
|
187
|
+
type: "string"
|
|
184
188
|
}
|
|
185
|
-
},
|
|
189
|
+
}, je = [
|
|
186
190
|
"id",
|
|
187
191
|
"type",
|
|
188
192
|
"contents"
|
|
189
|
-
],
|
|
193
|
+
], Ee = {
|
|
190
194
|
beforeClose: "关闭前事件"
|
|
191
|
-
},
|
|
192
|
-
$schema:
|
|
193
|
-
$id:
|
|
194
|
-
title:
|
|
195
|
-
description:
|
|
196
|
-
type:
|
|
197
|
-
properties:
|
|
198
|
-
required:
|
|
199
|
-
events:
|
|
195
|
+
}, De = {
|
|
196
|
+
$schema: Se,
|
|
197
|
+
$id: ke,
|
|
198
|
+
title: Fe,
|
|
199
|
+
description: xe,
|
|
200
|
+
type: Oe,
|
|
201
|
+
properties: Pe,
|
|
202
|
+
required: je,
|
|
203
|
+
events: Ee
|
|
200
204
|
};
|
|
201
|
-
function
|
|
205
|
+
function Me(e, t, r) {
|
|
202
206
|
return Object.assign(t, {
|
|
203
207
|
title: "标题",
|
|
204
208
|
headerToolbar: {
|
|
@@ -213,73 +217,151 @@ function De(e, t, r) {
|
|
|
213
217
|
}
|
|
214
218
|
}), t;
|
|
215
219
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
if (
|
|
221
|
-
const
|
|
220
|
+
function Z(e, t) {
|
|
221
|
+
let r;
|
|
222
|
+
function n(a) {
|
|
223
|
+
const { properties: c, title: m, ignore: o } = a, i = o && Array.isArray(o), u = Object.keys(c).reduce((v, g) => ((!i || !o.find((S) => S === g)) && (v[g] = c[g].type === "object" && c[g].properties ? n(c[g]) : W(c[g].default)), v), {});
|
|
224
|
+
if (m && (!i || !o.find((v) => v === "id"))) {
|
|
225
|
+
const v = m.toLowerCase().replace(/-/g, "_");
|
|
226
|
+
u.id = `${v}_${Math.random().toString().slice(2, 6)}`;
|
|
227
|
+
}
|
|
228
|
+
return u;
|
|
229
|
+
}
|
|
230
|
+
function p(a) {
|
|
231
|
+
const { properties: c, title: m, required: o } = a;
|
|
232
|
+
if (o && Array.isArray(o)) {
|
|
233
|
+
const i = o.reduce((u, v) => (u[v] = c[v].type === "object" && c[v].properties ? n(c[v]) : W(c[v].default), u), {});
|
|
234
|
+
if (m && o.find((u) => u === "id")) {
|
|
235
|
+
const u = m.toLowerCase().replace(/-/g, "_");
|
|
236
|
+
i.id = `${u}_${Math.random().toString().slice(2, 6)}`;
|
|
237
|
+
}
|
|
238
|
+
return i;
|
|
239
|
+
}
|
|
240
|
+
return {
|
|
241
|
+
type: m
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
function h(a, c = {}, m) {
|
|
245
|
+
const o = e[a];
|
|
246
|
+
if (o) {
|
|
247
|
+
let i = p(o);
|
|
248
|
+
const u = t[a];
|
|
249
|
+
return i = u ? u({ getSchemaByType: h }, i, c, m) : i, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(i), i;
|
|
250
|
+
}
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
function w(a, c) {
|
|
254
|
+
const m = n(c);
|
|
255
|
+
return Object.keys(m).reduce((o, i) => (Object.prototype.hasOwnProperty.call(a, i) && (o[i] && I(o[i]) && I(a[i] || !a[i]) ? Object.assign(o[i], a[i] || {}) : o[i] = a[i]), o), m), m;
|
|
256
|
+
}
|
|
257
|
+
function k(a, c) {
|
|
258
|
+
return Object.keys(a).filter((o) => a[o] != null).reduce((o, i) => {
|
|
259
|
+
if (c.has(i)) {
|
|
260
|
+
const u = c.get(i);
|
|
261
|
+
if (typeof u == "string")
|
|
262
|
+
o[u] = a[i];
|
|
263
|
+
else {
|
|
264
|
+
const v = u(i, a[i], a);
|
|
265
|
+
Object.assign(o, v);
|
|
266
|
+
}
|
|
267
|
+
} else
|
|
268
|
+
o[i] = a[i];
|
|
269
|
+
return o;
|
|
270
|
+
}, {});
|
|
271
|
+
}
|
|
272
|
+
function F(a, c, m = /* @__PURE__ */ new Map()) {
|
|
273
|
+
const o = w(a, c);
|
|
274
|
+
return k(o, m);
|
|
275
|
+
}
|
|
276
|
+
function f(a) {
|
|
277
|
+
var m;
|
|
278
|
+
const c = a.type;
|
|
279
|
+
if (c) {
|
|
280
|
+
const o = e[c];
|
|
281
|
+
if (!o)
|
|
282
|
+
return a;
|
|
283
|
+
const i = w(a, o), u = ((m = a.editor) == null ? void 0 : m.type) || "";
|
|
284
|
+
if (u) {
|
|
285
|
+
const v = e[u], g = w(a.editor, v);
|
|
286
|
+
i.editor = g;
|
|
287
|
+
}
|
|
288
|
+
return i;
|
|
289
|
+
}
|
|
290
|
+
return a;
|
|
291
|
+
}
|
|
292
|
+
function b(a) {
|
|
293
|
+
r = a;
|
|
294
|
+
}
|
|
295
|
+
return { getSchemaByType: h, resolveSchemaWithDefaultValue: f, resolveSchemaToProps: F, mappingSchemaToProps: k, setDesignerContext: b };
|
|
296
|
+
}
|
|
297
|
+
const J = {}, Q = {}, { resolveSchemaWithDefaultValue: Ne, resolveSchemaToProps: $e, mappingSchemaToProps: Re } = Z(J, Q);
|
|
298
|
+
function Be(e = {}) {
|
|
299
|
+
function t(f, b, a, c) {
|
|
300
|
+
if (typeof a == "number")
|
|
301
|
+
return c[f].length === a;
|
|
302
|
+
if (typeof a == "object") {
|
|
303
|
+
const m = Object.keys(a)[0], o = a[m];
|
|
222
304
|
if (m === "not")
|
|
223
|
-
return Number(
|
|
305
|
+
return Number(c[f].length) !== Number(o);
|
|
224
306
|
if (m === "moreThan")
|
|
225
|
-
return Number(
|
|
307
|
+
return Number(c[f].length) >= Number(o);
|
|
226
308
|
if (m === "lessThan")
|
|
227
|
-
return Number(
|
|
309
|
+
return Number(c[f].length) <= Number(o);
|
|
228
310
|
}
|
|
229
311
|
return !1;
|
|
230
312
|
}
|
|
231
|
-
function r(
|
|
232
|
-
return
|
|
313
|
+
function r(f, b, a, c) {
|
|
314
|
+
return c[f] && c[f].propertyValue && String(c[f].propertyValue.value) === String(a);
|
|
233
315
|
}
|
|
234
|
-
const
|
|
316
|
+
const n = /* @__PURE__ */ new Map([
|
|
235
317
|
["length", t],
|
|
236
318
|
["getProperty", r]
|
|
237
319
|
]);
|
|
238
|
-
Object.keys(e).reduce((
|
|
239
|
-
function
|
|
240
|
-
const
|
|
241
|
-
return typeof
|
|
242
|
-
if (
|
|
243
|
-
return { target:
|
|
244
|
-
const m =
|
|
245
|
-
return { target:
|
|
320
|
+
Object.keys(e).reduce((f, b) => (f.set(b, e[b]), f), n);
|
|
321
|
+
function p(f, b) {
|
|
322
|
+
const a = f;
|
|
323
|
+
return typeof b == "number" ? [{ target: a, operator: "length", param: null, value: Number(b) }] : typeof b == "boolean" ? [{ target: a, operator: "getProperty", param: f, value: !!b }] : typeof b == "object" ? Object.keys(b).map((c) => {
|
|
324
|
+
if (c === "length")
|
|
325
|
+
return { target: a, operator: "length", param: null, value: b[c] };
|
|
326
|
+
const m = c, o = b[c];
|
|
327
|
+
return { target: a, operator: "getProperty", param: m, value: o };
|
|
246
328
|
}) : [];
|
|
247
329
|
}
|
|
248
|
-
function
|
|
249
|
-
return Object.keys(
|
|
250
|
-
const m =
|
|
251
|
-
return
|
|
330
|
+
function h(f) {
|
|
331
|
+
return Object.keys(f).reduce((a, c) => {
|
|
332
|
+
const m = p(c, f[c]);
|
|
333
|
+
return a.push(...m), a;
|
|
252
334
|
}, []);
|
|
253
335
|
}
|
|
254
|
-
function
|
|
255
|
-
if (
|
|
256
|
-
const
|
|
257
|
-
return
|
|
336
|
+
function w(f, b) {
|
|
337
|
+
if (n.has(f.operator)) {
|
|
338
|
+
const a = n.get(f.operator);
|
|
339
|
+
return a && a(f.target, f.param, f.value, b) || !1;
|
|
258
340
|
}
|
|
259
341
|
return !1;
|
|
260
342
|
}
|
|
261
|
-
function k(
|
|
262
|
-
return
|
|
343
|
+
function k(f, b) {
|
|
344
|
+
return h(f).reduce((m, o) => m && w(o, b), !0);
|
|
263
345
|
}
|
|
264
|
-
function F(
|
|
265
|
-
const
|
|
266
|
-
return
|
|
346
|
+
function F(f, b) {
|
|
347
|
+
const a = Object.keys(f), c = a.includes("allOf"), m = a.includes("anyOf"), o = c || m, v = (o ? f[o ? c ? "allOf" : "anyOf" : "allOf"] : [f]).map((S) => k(S, b));
|
|
348
|
+
return c ? !v.includes(!1) : v.includes(!0);
|
|
267
349
|
}
|
|
268
350
|
return { parseValueSchema: F };
|
|
269
351
|
}
|
|
270
|
-
const
|
|
271
|
-
convertTo: (e, t, r,
|
|
352
|
+
const ze = {
|
|
353
|
+
convertTo: (e, t, r, n) => {
|
|
272
354
|
e.appearance || (e.appearance = {}), e.appearance[t] = r;
|
|
273
355
|
},
|
|
274
356
|
convertFrom: (e, t, r) => e.appearance ? e.appearance[t] : e[t]
|
|
275
|
-
},
|
|
357
|
+
}, Le = {
|
|
276
358
|
convertFrom: (e, t, r) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
277
|
-
},
|
|
278
|
-
convertTo: (e, t, r,
|
|
359
|
+
}, He = {
|
|
360
|
+
convertTo: (e, t, r, n) => {
|
|
279
361
|
e.editor && (e.editor[t] = r);
|
|
280
362
|
},
|
|
281
363
|
convertFrom: (e, t, r) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
282
|
-
},
|
|
364
|
+
}, qe = {
|
|
283
365
|
button: { type: "button", name: "按钮" },
|
|
284
366
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
285
367
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -333,20 +415,25 @@ const Ne = {
|
|
|
333
415
|
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
334
416
|
comment: { type: "comment", name: "评论区" },
|
|
335
417
|
"rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
|
|
336
|
-
calendar: { type: "calendar", name: "日历", icon: "date-picker" }
|
|
337
|
-
|
|
418
|
+
calendar: { type: "calendar", name: "日历", icon: "date-picker" },
|
|
419
|
+
wizard: { type: "wizard", name: "向导", icon: "wizard" },
|
|
420
|
+
"wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
|
|
421
|
+
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
|
|
422
|
+
step: { type: "step", name: "步骤条", icon: "step" },
|
|
423
|
+
"dynamic-form": { type: "dynamic-form", name: "动态表单" }
|
|
424
|
+
}, Ae = {
|
|
338
425
|
convertFrom: (e, t, r) => {
|
|
339
|
-
var
|
|
340
|
-
const
|
|
341
|
-
return ((
|
|
426
|
+
var p;
|
|
427
|
+
const n = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
428
|
+
return ((p = qe[n]) == null ? void 0 : p.name) || n;
|
|
342
429
|
}
|
|
343
|
-
},
|
|
344
|
-
convertTo: (e, t, r,
|
|
430
|
+
}, _e = {
|
|
431
|
+
convertTo: (e, t, r, n) => {
|
|
345
432
|
e[t] = e[t];
|
|
346
433
|
},
|
|
347
434
|
convertFrom: (e, t, r) => e.editor ? r.getRealEditorType(e.editor.type) : ""
|
|
348
|
-
},
|
|
349
|
-
convertTo: (e, t, r,
|
|
435
|
+
}, Ie = {
|
|
436
|
+
convertTo: (e, t, r, n) => {
|
|
350
437
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = r : e.formatter = {
|
|
351
438
|
[t]: r
|
|
352
439
|
});
|
|
@@ -373,11 +460,13 @@ const Ne = {
|
|
|
373
460
|
return e.formatter.customFormat;
|
|
374
461
|
if (t === "type")
|
|
375
462
|
return e.formatter.type || "none";
|
|
463
|
+
if (t === "customFormat")
|
|
464
|
+
return e.formmater.customFormat;
|
|
376
465
|
}
|
|
377
466
|
return "none";
|
|
378
467
|
}
|
|
379
|
-
},
|
|
380
|
-
convertTo: (e, t, r,
|
|
468
|
+
}, We = {
|
|
469
|
+
convertTo: (e, t, r, n) => {
|
|
381
470
|
e.command ? e.command[t] = r : e.command = {
|
|
382
471
|
[t]: r
|
|
383
472
|
}, t === "enableType" && r === "default" && (e.command.enable = !0, e.command.commands = [
|
|
@@ -394,39 +483,27 @@ const Ne = {
|
|
|
394
483
|
]), t === "enableType" && r === "custom" && (e.command.enable = !0, e.command.commands = [
|
|
395
484
|
{
|
|
396
485
|
value: "add",
|
|
397
|
-
text:
|
|
398
|
-
en: "add",
|
|
399
|
-
"zh-CHS": "增加",
|
|
400
|
-
"zh-CHT": "增加"
|
|
401
|
-
},
|
|
486
|
+
text: "增加",
|
|
402
487
|
type: "link"
|
|
403
488
|
},
|
|
404
489
|
{
|
|
405
490
|
value: "edit",
|
|
406
|
-
text:
|
|
407
|
-
en: "edit",
|
|
408
|
-
"zh-CHS": "编辑",
|
|
409
|
-
"zh-CHT": "編輯"
|
|
410
|
-
},
|
|
491
|
+
text: "编辑",
|
|
411
492
|
type: "danger"
|
|
412
493
|
},
|
|
413
494
|
{
|
|
414
495
|
value: "remove",
|
|
415
|
-
text:
|
|
416
|
-
en: "remove",
|
|
417
|
-
"zh-CHS": "删除",
|
|
418
|
-
"zh-CHT": "刪除"
|
|
419
|
-
},
|
|
496
|
+
text: "删除",
|
|
420
497
|
type: "remove"
|
|
421
498
|
}
|
|
422
499
|
]), t === "enableType" && r === "unable" && (e.command.enable = !1);
|
|
423
500
|
},
|
|
424
501
|
convertFrom: (e, t, r) => {
|
|
425
|
-
var
|
|
502
|
+
var n, p;
|
|
426
503
|
if (e.command) {
|
|
427
504
|
if (t === "enableType") {
|
|
428
|
-
const
|
|
429
|
-
return e.command.enable ?
|
|
505
|
+
const h = (p = (n = e.command) == null ? void 0 : n.commands) == null ? void 0 : p.find((w) => w.command === "edit" && w.type === "primary");
|
|
506
|
+
return e.command.enable ? h ? "default" : "custom" : "unable";
|
|
430
507
|
}
|
|
431
508
|
if (t === "commands")
|
|
432
509
|
return e.command.enableType === "custom" ? e.command.commands : [];
|
|
@@ -434,11 +511,13 @@ const Ne = {
|
|
|
434
511
|
return e.command.formatter;
|
|
435
512
|
if (t === "count")
|
|
436
513
|
return e.command.count;
|
|
514
|
+
if (t === "columnWidth")
|
|
515
|
+
return e.command.columnWidth || 150;
|
|
437
516
|
}
|
|
438
517
|
return "";
|
|
439
518
|
}
|
|
440
|
-
},
|
|
441
|
-
convertTo: (e, t, r,
|
|
519
|
+
}, Ge = {
|
|
520
|
+
convertTo: (e, t, r, n) => {
|
|
442
521
|
e.column ? e.column[t] = r : e.column = {
|
|
443
522
|
[t]: r
|
|
444
523
|
}, t === "fitColumns" && r && (e.column.fitMode || (e.column.fitMode = "average"));
|
|
@@ -452,8 +531,8 @@ const Ne = {
|
|
|
452
531
|
}
|
|
453
532
|
return "";
|
|
454
533
|
}
|
|
455
|
-
},
|
|
456
|
-
convertTo: (e, t, r,
|
|
534
|
+
}, Ze = {
|
|
535
|
+
convertTo: (e, t, r, n) => {
|
|
457
536
|
e.summary ? e.summary[t] = r : e.summary = {
|
|
458
537
|
[t]: r
|
|
459
538
|
}, t === "enable" && r && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
|
|
@@ -461,9 +540,12 @@ const Ne = {
|
|
|
461
540
|
groupFields: []
|
|
462
541
|
});
|
|
463
542
|
},
|
|
464
|
-
convertFrom: (e, t, r) =>
|
|
465
|
-
|
|
466
|
-
|
|
543
|
+
convertFrom: (e, t, r) => {
|
|
544
|
+
var n;
|
|
545
|
+
return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((n = e.summary) == null ? void 0 : n[t]) || "bottom" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
|
|
546
|
+
}
|
|
547
|
+
}, Je = {
|
|
548
|
+
convertTo: (e, t, r, n) => {
|
|
467
549
|
e.group ? e.group[t] = r : e.group = {
|
|
468
550
|
[t]: r
|
|
469
551
|
}, t === "enable" && r && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
|
|
@@ -480,71 +562,71 @@ const Ne = {
|
|
|
480
562
|
return e.group.showSummary;
|
|
481
563
|
}
|
|
482
564
|
}
|
|
483
|
-
},
|
|
565
|
+
}, Qe = {
|
|
484
566
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
485
567
|
convertTo: (e, t, r) => {
|
|
486
568
|
if (r && r.length > 0) {
|
|
487
|
-
const
|
|
488
|
-
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path =
|
|
569
|
+
const n = r[0];
|
|
570
|
+
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = n.bindingField, e.binding.field = n.id, e.binding.fullPath = n.path, e.path = n.bindingPath;
|
|
489
571
|
}
|
|
490
572
|
}
|
|
491
|
-
},
|
|
492
|
-
convertTo: (e, t, r,
|
|
493
|
-
e.pagination || (e.pagination = {}), e.pagination[t] = r;
|
|
573
|
+
}, Ue = {
|
|
574
|
+
convertTo: (e, t, r, n) => {
|
|
575
|
+
e.pagination || (e.pagination = {}), t === "sizeLimits" ? e.pagination.sizeLimits = r.split(",") : e.pagination[t] = r;
|
|
494
576
|
},
|
|
495
|
-
convertFrom: (e, t, r) => e.pagination ? e.pagination[t] : e[t]
|
|
496
|
-
},
|
|
497
|
-
convertTo: (e, t, r,
|
|
577
|
+
convertFrom: (e, t, r) => e.pagination ? t === "sizeLimits" ? e.pagination.sizeLimits.join(",") : e.pagination[t] : e[t]
|
|
578
|
+
}, Xe = {
|
|
579
|
+
convertTo: (e, t, r, n) => {
|
|
498
580
|
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = r;
|
|
499
581
|
},
|
|
500
582
|
convertFrom: (e, t, r) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
501
|
-
},
|
|
502
|
-
convertTo: (e, t, r,
|
|
583
|
+
}, Ye = {
|
|
584
|
+
convertTo: (e, t, r, n) => {
|
|
503
585
|
e.selection || (e.selection = {}), e.selection[t] = r;
|
|
504
586
|
},
|
|
505
587
|
convertFrom: (e, t, r) => {
|
|
506
|
-
var
|
|
507
|
-
return t === "showCheckbox" ? (
|
|
588
|
+
var n, p;
|
|
589
|
+
return t === "showCheckbox" ? (n = e.selection) != null && n.multiSelect ? !0 : (p = e.selection) == null ? void 0 : p.showCheckbox : e.selection ? e.selection[t] : e[t];
|
|
508
590
|
}
|
|
509
|
-
},
|
|
591
|
+
}, Ve = {
|
|
510
592
|
convertFrom: (e, t, r) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
511
|
-
},
|
|
593
|
+
}, Ke = {
|
|
512
594
|
convertFrom: (e, t) => e[t] || "",
|
|
513
595
|
convertTo: (e, t, r) => {
|
|
514
596
|
e[t] = r;
|
|
515
597
|
}
|
|
516
|
-
},
|
|
517
|
-
convertTo: (e, t, r,
|
|
598
|
+
}, et = {
|
|
599
|
+
convertTo: (e, t, r, n) => {
|
|
518
600
|
e.size || (e.size = {}), e.size[t] = r;
|
|
519
601
|
},
|
|
520
602
|
convertFrom: (e, t, r) => e.size ? e.size[t] : e[t]
|
|
521
|
-
},
|
|
603
|
+
}, tt = {
|
|
522
604
|
convertFrom: (e, t, r) => {
|
|
523
|
-
var
|
|
524
|
-
return (
|
|
605
|
+
var n, p;
|
|
606
|
+
return (n = e.formatter) != null && n.data && t === "formatterEnumData" && !e.formatterEnumData ? (p = e.formatter) == null ? void 0 : p.data : e.formatterEnumData;
|
|
525
607
|
}
|
|
526
|
-
},
|
|
527
|
-
convertTo: (e, t, r,
|
|
608
|
+
}, rt = {
|
|
609
|
+
convertTo: (e, t, r, n) => {
|
|
528
610
|
e.sort || (e.sort = {}), e.sort[t] = r;
|
|
529
611
|
},
|
|
530
612
|
convertFrom: (e, t, r) => {
|
|
531
|
-
var
|
|
613
|
+
var n, p;
|
|
532
614
|
if (t === "mode")
|
|
533
|
-
return ((
|
|
615
|
+
return ((n = e.sort) == null ? void 0 : n.mode) || "client";
|
|
534
616
|
if (t === "multiSort")
|
|
535
|
-
return !!((
|
|
617
|
+
return !!((p = e.sort) != null && p.multiSort);
|
|
536
618
|
}
|
|
537
|
-
},
|
|
538
|
-
convertTo: (e, t, r,
|
|
619
|
+
}, nt = {
|
|
620
|
+
convertTo: (e, t, r, n) => {
|
|
539
621
|
e.filter || (e.filter = {}), e.filter[t] = r;
|
|
540
622
|
},
|
|
541
623
|
convertFrom: (e, t, r) => {
|
|
542
|
-
var
|
|
624
|
+
var n;
|
|
543
625
|
if (t === "mode")
|
|
544
|
-
return ((
|
|
626
|
+
return ((n = e.filter) == null ? void 0 : n.mode) || "client";
|
|
545
627
|
}
|
|
546
|
-
},
|
|
547
|
-
convertTo: (e, t, r,
|
|
628
|
+
}, ot = {
|
|
629
|
+
convertTo: (e, t, r, n) => {
|
|
548
630
|
e.rowOption ? e.rowOption[t] = r : e.rowOption = {
|
|
549
631
|
[t]: r
|
|
550
632
|
};
|
|
@@ -555,11 +637,13 @@ const Ne = {
|
|
|
555
637
|
return e.rowOption.customRowStyle;
|
|
556
638
|
if (t === "customCellStyle")
|
|
557
639
|
return e.rowOption.customCellStyle;
|
|
640
|
+
if (t === "height")
|
|
641
|
+
return e.rowOption.height;
|
|
558
642
|
}
|
|
559
643
|
return "";
|
|
560
644
|
}
|
|
561
|
-
},
|
|
562
|
-
convertTo: (e, t, r,
|
|
645
|
+
}, it = {
|
|
646
|
+
convertTo: (e, t, r, n) => {
|
|
563
647
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = r, t === "columnTemplateType" && r === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
|
|
564
648
|
<span class="f-pretend-link f-cursor-pointer"
|
|
565
649
|
@click="(ctx)=>viewModel.current.${e.onClickLinkCommand || ""}({id: rowData.id,context: ctx})">
|
|
@@ -571,31 +655,31 @@ const Ne = {
|
|
|
571
655
|
},
|
|
572
656
|
convertFrom: (e, t, r) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
573
657
|
};
|
|
574
|
-
function
|
|
575
|
-
const
|
|
576
|
-
["/converter/appearance.converter",
|
|
577
|
-
["/converter/buttons.converter",
|
|
578
|
-
["/converter/property-editor.converter",
|
|
579
|
-
["/converter/items-count.converter",
|
|
580
|
-
["/converter/type.converter",
|
|
581
|
-
["/converter/change-editor.converter",
|
|
582
|
-
["/converter/change-formatter.converter",
|
|
583
|
-
["/converter/column-command.converter",
|
|
584
|
-
["/converter/column-option.converter",
|
|
585
|
-
["/converter/summary.converter",
|
|
586
|
-
["/converter/group.converter",
|
|
587
|
-
["/converter/form-group-label.converter",
|
|
588
|
-
["/converter/field-selector.converter",
|
|
589
|
-
["/converter/pagination.converter",
|
|
590
|
-
["/converter/row-number.converter",
|
|
591
|
-
["/converter/grid-selection.converter",
|
|
592
|
-
["/converter/size.converter",
|
|
593
|
-
["/converter/change-formatter-enum.converter",
|
|
594
|
-
["/converter/grid-sort.converter",
|
|
595
|
-
["/converter/grid-filter.converter",
|
|
596
|
-
["/converter/row-option.converter",
|
|
597
|
-
["/converter/change-formatter-type.converter",
|
|
598
|
-
]),
|
|
658
|
+
function U(e, t, r) {
|
|
659
|
+
const n = /* @__PURE__ */ new Map([
|
|
660
|
+
["/converter/appearance.converter", ze],
|
|
661
|
+
["/converter/buttons.converter", Le],
|
|
662
|
+
["/converter/property-editor.converter", He],
|
|
663
|
+
["/converter/items-count.converter", Ve],
|
|
664
|
+
["/converter/type.converter", Ae],
|
|
665
|
+
["/converter/change-editor.converter", _e],
|
|
666
|
+
["/converter/change-formatter.converter", Ie],
|
|
667
|
+
["/converter/column-command.converter", We],
|
|
668
|
+
["/converter/column-option.converter", Ge],
|
|
669
|
+
["/converter/summary.converter", Ze],
|
|
670
|
+
["/converter/group.converter", Je],
|
|
671
|
+
["/converter/form-group-label.converter", Ke],
|
|
672
|
+
["/converter/field-selector.converter", Qe],
|
|
673
|
+
["/converter/pagination.converter", Ue],
|
|
674
|
+
["/converter/row-number.converter", Xe],
|
|
675
|
+
["/converter/grid-selection.converter", Ye],
|
|
676
|
+
["/converter/size.converter", et],
|
|
677
|
+
["/converter/change-formatter-enum.converter", tt],
|
|
678
|
+
["/converter/grid-sort.converter", rt],
|
|
679
|
+
["/converter/grid-filter.converter", nt],
|
|
680
|
+
["/converter/row-option.converter", ot],
|
|
681
|
+
["/converter/change-formatter-type.converter", it]
|
|
682
|
+
]), p = /* @__PURE__ */ new Map([
|
|
599
683
|
["string", { type: "input-group", enableClear: !1 }],
|
|
600
684
|
["boolean", {
|
|
601
685
|
type: "combo-list",
|
|
@@ -619,194 +703,117 @@ function Z(e, t, r) {
|
|
|
619
703
|
["array", { type: "button-edit" }],
|
|
620
704
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
621
705
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
622
|
-
]),
|
|
623
|
-
function
|
|
624
|
-
return () =>
|
|
706
|
+
]), h = Be();
|
|
707
|
+
function w(o, i) {
|
|
708
|
+
return () => h.parseValueSchema(o, i);
|
|
625
709
|
}
|
|
626
|
-
function k(
|
|
627
|
-
return
|
|
710
|
+
function k(o, i, u) {
|
|
711
|
+
return o.includes("visible") && i.visible !== void 0 ? typeof i.visible == "boolean" ? () => !!i.visible : i.visible === void 0 ? !0 : w(i.visible, u) : () => !0;
|
|
628
712
|
}
|
|
629
|
-
function F(
|
|
630
|
-
return
|
|
713
|
+
function F(o, i, u) {
|
|
714
|
+
return o.includes("readonly") && i.readonly !== void 0 ? typeof i.readonly == "boolean" ? () => !!i.readonly : w(i.readonly, u) : () => !1;
|
|
631
715
|
}
|
|
632
|
-
function
|
|
633
|
-
const
|
|
634
|
-
return typeof
|
|
716
|
+
function f(o, i) {
|
|
717
|
+
const u = o.$converter || i;
|
|
718
|
+
return typeof u == "string" && u && n.has(u) ? n.get(u) || null : u || null;
|
|
635
719
|
}
|
|
636
|
-
function
|
|
637
|
-
return Object.keys(
|
|
638
|
-
const
|
|
639
|
-
|
|
640
|
-
const
|
|
641
|
-
let
|
|
642
|
-
const ne =
|
|
720
|
+
function b(o, i, u, v, g, S = "", O = "") {
|
|
721
|
+
return Object.keys(o).map((y) => {
|
|
722
|
+
const P = R(1), l = y, s = o[y], d = Object.keys(s), E = s.title, T = s.type, $ = p.get(T) || { type: "input-group", enableClear: !1 }, j = s.editor ? Object.assign({}, $, s.editor) : Object.assign({}, $), z = k(d, s, i), B = F(d, s, i);
|
|
723
|
+
j.readonly = j.readonly === void 0 ? B() : j.readonly;
|
|
724
|
+
const L = s.type === "cascade" ? b(s.properties, i, u, v, g, S, O) : [], H = !0;
|
|
725
|
+
let D = f(s, O);
|
|
726
|
+
const ne = N({
|
|
643
727
|
get() {
|
|
644
|
-
if (
|
|
645
|
-
if (["class", "style"].find((se) => se ===
|
|
646
|
-
return
|
|
647
|
-
const
|
|
648
|
-
return Object.prototype.hasOwnProperty.call(
|
|
728
|
+
if (P.value) {
|
|
729
|
+
if (["class", "style"].find((se) => se === l) && !D && (D = n.get("/converter/appearance.converter") || null), D && D.convertFrom)
|
|
730
|
+
return D.convertFrom(u, y, g, S);
|
|
731
|
+
const M = u[y];
|
|
732
|
+
return Object.prototype.hasOwnProperty.call(s, "defaultValue") && (M === void 0 || typeof M == "string" && M === "") ? s.type === "boolean" ? s.defaultValue : s.defaultValue || "" : M;
|
|
649
733
|
}
|
|
650
734
|
return null;
|
|
651
735
|
},
|
|
652
|
-
set(
|
|
653
|
-
|
|
736
|
+
set(M) {
|
|
737
|
+
P.value += 1, D && D.convertTo ? (D.convertTo(v, y, M, g, S), D.convertTo(u, y, M, g, S)) : (v[y] = M, u[y] = M);
|
|
654
738
|
}
|
|
655
|
-
}), { refreshPanelAfterChanged: oe, description: ie, isExpand: ae, parentPropertyID: le } =
|
|
656
|
-
return
|
|
739
|
+
}), { refreshPanelAfterChanged: oe, description: ie, isExpand: ae, parentPropertyID: le } = s, q = { propertyID: l, propertyName: E, propertyType: T, propertyValue: ne, editor: j, visible: z, readonly: B, cascadeConfig: L, hideCascadeTitle: H, refreshPanelAfterChanged: oe, description: ie, isExpand: ae, parentPropertyID: le };
|
|
740
|
+
return i[l] = q, q;
|
|
657
741
|
});
|
|
658
742
|
}
|
|
659
|
-
function
|
|
660
|
-
const
|
|
661
|
-
return
|
|
662
|
-
const
|
|
663
|
-
return { categoryId:
|
|
743
|
+
function a(o, i, u = {}) {
|
|
744
|
+
const v = {}, g = e[o];
|
|
745
|
+
return g && g.categories ? Object.keys(g.categories).map((O) => {
|
|
746
|
+
const x = g.categories[O], y = x == null ? void 0 : x.title, P = b(x.properties || {}, v, {}, u, i);
|
|
747
|
+
return { categoryId: O, categoryName: y, properties: P };
|
|
664
748
|
}) : [];
|
|
665
749
|
}
|
|
666
|
-
function
|
|
667
|
-
const S =
|
|
668
|
-
if (
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
|
|
750
|
+
function c(o, i, u, v, g = "") {
|
|
751
|
+
const S = i.$ref.schema, O = i.$ref.converter, x = u[S], y = x.type, P = r(x), l = {}, s = e[y];
|
|
752
|
+
if (s && s.categories) {
|
|
753
|
+
const d = s.categories[o], E = d == null ? void 0 : d.title;
|
|
754
|
+
O && Object.keys(d.properties).forEach((j) => {
|
|
755
|
+
d.properties[j].$converter = O;
|
|
672
756
|
});
|
|
673
|
-
const
|
|
674
|
-
return { categoryId:
|
|
757
|
+
const T = (d == null ? void 0 : d.properties) || {}, $ = b(T, l, P, x, v, g);
|
|
758
|
+
return { categoryId: o, categoryName: E, properties: $ };
|
|
675
759
|
}
|
|
676
|
-
return { categoryId:
|
|
760
|
+
return { categoryId: o, categoryName: "", properties: [] };
|
|
677
761
|
}
|
|
678
|
-
function m(
|
|
679
|
-
const S =
|
|
680
|
-
let
|
|
681
|
-
if (!(
|
|
682
|
-
const
|
|
683
|
-
return Object.keys(
|
|
684
|
-
const
|
|
685
|
-
if (
|
|
686
|
-
|
|
762
|
+
function m(o, i, u, v, g) {
|
|
763
|
+
const S = o.type, O = r(o), x = {};
|
|
764
|
+
let y = g || e[S];
|
|
765
|
+
if (!(y && Object.keys(y).length > 0) && u && u.getPropConfig && (y = u.getPropConfig(v)), y && y.categories) {
|
|
766
|
+
const l = [];
|
|
767
|
+
return Object.keys(y.categories).map((s) => {
|
|
768
|
+
const d = y.categories[s];
|
|
769
|
+
if (d.$ref) {
|
|
770
|
+
l.push(c(s, d, o, i, v));
|
|
687
771
|
return;
|
|
688
772
|
}
|
|
689
|
-
const
|
|
690
|
-
|
|
691
|
-
}),
|
|
773
|
+
const E = d == null ? void 0 : d.title, T = d == null ? void 0 : d.tabId, $ = d == null ? void 0 : d.tabName, j = d == null ? void 0 : d.hide, z = d == null ? void 0 : d.hideTitle, B = b(d.properties || {}, x, O, o, i, v, d.$converter), { setPropertyRelates: L } = d, H = d == null ? void 0 : d.parentPropertyID;
|
|
774
|
+
l.push({ categoryId: s, categoryName: E, tabId: T, tabName: $, hide: j, properties: B, hideTitle: z, setPropertyRelates: L, parentPropertyID: H });
|
|
775
|
+
}), l;
|
|
692
776
|
}
|
|
693
777
|
return [];
|
|
694
778
|
}
|
|
695
779
|
return {
|
|
696
780
|
getPropertyConfigBySchema: m,
|
|
697
|
-
getPropertyConfigByType:
|
|
698
|
-
propertyConverterMap:
|
|
781
|
+
getPropertyConfigByType: a,
|
|
782
|
+
propertyConverterMap: n
|
|
699
783
|
};
|
|
700
784
|
}
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
c.id = `${p}_${Math.random().toString().slice(2, 6)}`;
|
|
708
|
-
}
|
|
709
|
-
return c;
|
|
710
|
-
}
|
|
711
|
-
function b(l) {
|
|
712
|
-
const { properties: s, title: m, required: i } = l;
|
|
713
|
-
if (i && Array.isArray(i)) {
|
|
714
|
-
const a = i.reduce((c, p) => (c[p] = s[p].type === "object" && s[p].properties ? o(s[p]) : W(s[p].default), c), {});
|
|
715
|
-
if (m && i.find((c) => c === "id")) {
|
|
716
|
-
const c = m.toLowerCase().replace(/-/g, "_");
|
|
717
|
-
a.id = `${c}_${Math.random().toString().slice(2, 6)}`;
|
|
718
|
-
}
|
|
719
|
-
return a;
|
|
720
|
-
}
|
|
721
|
-
return {
|
|
722
|
-
type: m
|
|
723
|
-
};
|
|
724
|
-
}
|
|
725
|
-
function C(l, s = {}, m) {
|
|
726
|
-
const i = e[l];
|
|
727
|
-
if (i) {
|
|
728
|
-
let a = b(i);
|
|
729
|
-
const c = t[l];
|
|
730
|
-
return a = c ? c({ getSchemaByType: C }, a, s, m) : a, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(a), a;
|
|
731
|
-
}
|
|
732
|
-
return null;
|
|
733
|
-
}
|
|
734
|
-
function T(l, s) {
|
|
735
|
-
const m = o(s);
|
|
736
|
-
return Object.keys(m).reduce((i, a) => (Object.prototype.hasOwnProperty.call(l, a) && (i[a] && I(i[a]) && I(l[a] || !l[a]) ? Object.assign(i[a], l[a] || {}) : i[a] = l[a]), i), m), m;
|
|
737
|
-
}
|
|
738
|
-
function k(l, s) {
|
|
739
|
-
return Object.keys(l).filter((i) => l[i] != null).reduce((i, a) => {
|
|
740
|
-
if (s.has(a)) {
|
|
741
|
-
const c = s.get(a);
|
|
742
|
-
if (typeof c == "string")
|
|
743
|
-
i[c] = l[a];
|
|
744
|
-
else {
|
|
745
|
-
const p = c(a, l[a], l);
|
|
746
|
-
Object.assign(i, p);
|
|
747
|
-
}
|
|
748
|
-
} else
|
|
749
|
-
i[a] = l[a];
|
|
750
|
-
return i;
|
|
751
|
-
}, {});
|
|
752
|
-
}
|
|
753
|
-
function F(l, s, m = /* @__PURE__ */ new Map()) {
|
|
754
|
-
const i = T(l, s);
|
|
755
|
-
return k(i, m);
|
|
756
|
-
}
|
|
757
|
-
function d(l) {
|
|
758
|
-
var m;
|
|
759
|
-
const s = l.type;
|
|
760
|
-
if (s) {
|
|
761
|
-
const i = e[s];
|
|
762
|
-
if (!i)
|
|
763
|
-
return l;
|
|
764
|
-
const a = T(l, i), c = ((m = l.editor) == null ? void 0 : m.type) || "";
|
|
765
|
-
if (c) {
|
|
766
|
-
const p = e[c], y = T(l.editor, p);
|
|
767
|
-
a.editor = y;
|
|
768
|
-
}
|
|
769
|
-
return a;
|
|
770
|
-
}
|
|
771
|
-
return l;
|
|
772
|
-
}
|
|
773
|
-
function v(l) {
|
|
774
|
-
r = l;
|
|
775
|
-
}
|
|
776
|
-
return { getSchemaByType: C, resolveSchemaWithDefaultValue: d, resolveSchemaToProps: F, mappingSchemaToProps: k, setDesignerContext: v };
|
|
777
|
-
}
|
|
778
|
-
const Q = {}, U = {}, { resolveSchemaWithDefaultValue: rt } = J(Q, U), X = {}, Y = {};
|
|
779
|
-
Z(X, Y, rt);
|
|
780
|
-
const V = {}, K = {}, { resolveSchemaWithDefaultValue: nt, resolveSchemaToProps: ot, mappingSchemaToProps: it } = J(V, K), ee = {}, te = {};
|
|
781
|
-
Z(ee, te, nt);
|
|
782
|
-
function at(e, t, r = /* @__PURE__ */ new Map(), o = (T, k, F, d) => k, b = {}, C = (T) => T) {
|
|
783
|
-
return V[t.title] = t, K[t.title] = o, ee[t.title] = b, te[t.title] = C, Q[t.title] = t, U[t.title] = o, X[t.title] = b, Y[t.title] = C, (T = {}, k = !0) => {
|
|
785
|
+
const X = {}, Y = {};
|
|
786
|
+
U(X, Y, Ne);
|
|
787
|
+
const V = {}, K = {}, { resolveSchemaWithDefaultValue: at } = Z(V, K), ee = {}, te = {};
|
|
788
|
+
U(ee, te, at);
|
|
789
|
+
function lt(e, t, r = /* @__PURE__ */ new Map(), n = (w, k, F, f) => k, p = {}, h = (w) => w) {
|
|
790
|
+
return J[t.title] = t, Q[t.title] = n, X[t.title] = p, Y[t.title] = h, V[t.title] = t, K[t.title] = n, ee[t.title] = p, te[t.title] = h, (w = {}, k = !0) => {
|
|
784
791
|
if (!k)
|
|
785
|
-
return
|
|
786
|
-
const F =
|
|
787
|
-
return Object.assign(
|
|
792
|
+
return Re(w, r);
|
|
793
|
+
const F = $e(w, t, r), f = Object.keys(e).reduce((b, a) => (b[a] = e[a].default, b), {});
|
|
794
|
+
return Object.assign(f, F);
|
|
788
795
|
};
|
|
789
796
|
}
|
|
790
|
-
function
|
|
797
|
+
function st(e, t) {
|
|
791
798
|
if (!e || e.length < 1)
|
|
792
799
|
return null;
|
|
793
800
|
for (const r of e) {
|
|
794
801
|
if (r.id === t)
|
|
795
802
|
return r;
|
|
796
803
|
if (r.children) {
|
|
797
|
-
const
|
|
798
|
-
if (
|
|
799
|
-
return
|
|
804
|
+
const n = r.children.find((p) => p.id === t);
|
|
805
|
+
if (n)
|
|
806
|
+
return n;
|
|
800
807
|
}
|
|
801
808
|
}
|
|
802
809
|
return null;
|
|
803
810
|
}
|
|
804
|
-
function
|
|
811
|
+
function ct() {
|
|
805
812
|
function e(t, r) {
|
|
806
|
-
const { footerToolbar:
|
|
807
|
-
if (!
|
|
813
|
+
const { footerToolbar: n, headerToolbar: p } = t, h = ((n == null ? void 0 : n.buttons) || []).concat((p == null ? void 0 : p.buttons) || []);
|
|
814
|
+
if (!h || h.length < 1)
|
|
808
815
|
return null;
|
|
809
|
-
const [
|
|
816
|
+
const [w, k] = r.payloads, F = st(h, k);
|
|
810
817
|
return F ? F.onClick || F.click : null;
|
|
811
818
|
}
|
|
812
819
|
return {
|
|
@@ -866,207 +873,212 @@ const re = {
|
|
|
866
873
|
buttons: { type: Array, default: [] },
|
|
867
874
|
customClass: { type: String, default: "" },
|
|
868
875
|
customStyle: { type: String, default: "" }
|
|
869
|
-
},
|
|
870
|
-
function
|
|
876
|
+
}, yt = lt(re, De, he, Me), wt = ct();
|
|
877
|
+
function ut() {
|
|
871
878
|
return { drawerLocale: {
|
|
872
879
|
cancel: G.getLocaleValue("drawer.cancel") || "取消",
|
|
873
880
|
confirm: G.getLocaleValue("drawer.confirm") || "确定"
|
|
874
881
|
} };
|
|
875
882
|
}
|
|
876
|
-
const
|
|
883
|
+
const dt = /* @__PURE__ */ ce({
|
|
877
884
|
name: "FDrawer",
|
|
878
885
|
props: re,
|
|
879
886
|
emits: ["afterClose", "update:modelValue", "click"],
|
|
880
887
|
setup(e, t) {
|
|
881
|
-
|
|
882
|
-
const r = R(e.modelValue),
|
|
888
|
+
ut();
|
|
889
|
+
const r = R(e.modelValue), n = R(e.buttons), p = R(!1), h = N(() => ({
|
|
883
890
|
"f-utils-absolute-all f-drawer": !0,
|
|
884
891
|
// 在某个DOM内部打开抽屉
|
|
885
892
|
"f-drawer-inline": typeof e.host == "string" ? e.host !== "body" : document.querySelector(e.host) !== document.body
|
|
886
|
-
})),
|
|
893
|
+
})), w = N(() => ({
|
|
887
894
|
opacity: e.transparent ? 0 : 1
|
|
888
|
-
})),
|
|
889
|
-
const
|
|
890
|
-
return e.maskClass && e.maskClass.split(" ").forEach((
|
|
891
|
-
|
|
895
|
+
})), k = N(() => {
|
|
896
|
+
const l = {};
|
|
897
|
+
return e.maskClass && e.maskClass.split(" ").forEach((s) => {
|
|
898
|
+
l[s] = !0;
|
|
892
899
|
}), {
|
|
893
900
|
"f-drawer-mask f-utils-absolute-all": !0,
|
|
894
|
-
...
|
|
901
|
+
...l
|
|
895
902
|
};
|
|
896
|
-
}),
|
|
897
|
-
const
|
|
898
|
-
return e.customClass && e.customClass.split(" ").forEach((
|
|
899
|
-
|
|
903
|
+
}), F = N(() => {
|
|
904
|
+
const l = {};
|
|
905
|
+
return e.customClass && e.customClass.split(" ").forEach((s) => {
|
|
906
|
+
l[s] = !0;
|
|
900
907
|
}), {
|
|
901
908
|
"f-drawer-wrapper": !0,
|
|
902
909
|
[`f-drawer-wrapper-${e.position}`]: !0,
|
|
903
|
-
...
|
|
910
|
+
...l
|
|
904
911
|
};
|
|
905
|
-
}),
|
|
906
|
-
const
|
|
907
|
-
return typeof
|
|
908
|
-
}),
|
|
909
|
-
const
|
|
910
|
-
return typeof
|
|
911
|
-
}),
|
|
912
|
-
let
|
|
912
|
+
}), f = N(() => {
|
|
913
|
+
const l = e.width;
|
|
914
|
+
return typeof l == "string" ? l : typeof l == "number" ? `${l}px` : "20%";
|
|
915
|
+
}), b = N(() => {
|
|
916
|
+
const l = e.height;
|
|
917
|
+
return typeof l == "string" ? l : typeof l == "number" ? `${l}px` : "20%";
|
|
918
|
+
}), a = N(() => {
|
|
919
|
+
let l = "-6px 0";
|
|
913
920
|
switch (e.position) {
|
|
914
921
|
case "left":
|
|
915
|
-
|
|
922
|
+
l = "6px 0";
|
|
916
923
|
break;
|
|
917
924
|
case "right":
|
|
918
|
-
|
|
925
|
+
l = "-6px 0";
|
|
919
926
|
break;
|
|
920
927
|
case "top":
|
|
921
|
-
|
|
928
|
+
l = "0 6px";
|
|
922
929
|
break;
|
|
923
930
|
case "bottom":
|
|
924
|
-
|
|
931
|
+
l = "0 -6px";
|
|
925
932
|
break;
|
|
926
933
|
}
|
|
927
|
-
const
|
|
928
|
-
width:
|
|
929
|
-
height:
|
|
934
|
+
const s = {
|
|
935
|
+
width: f.value,
|
|
936
|
+
height: b.value,
|
|
930
937
|
backgroundColor: e.backgroundColor,
|
|
931
938
|
maxWidth: "100%"
|
|
932
939
|
};
|
|
933
|
-
return e.transparent && (
|
|
934
|
-
}),
|
|
940
|
+
return e.transparent && (s.boxShadow = `${l} 8px 0 rgba(31, 35, 41, .1)`), ye(s, e == null ? void 0 : e.customStyle);
|
|
941
|
+
}), c = N(() => `f-drawer-${e.position}`), m = (l) => {
|
|
935
942
|
Promise.resolve().then(() => {
|
|
936
|
-
var
|
|
937
|
-
return (
|
|
938
|
-
}).then((
|
|
939
|
-
|
|
943
|
+
var s;
|
|
944
|
+
return (s = e.beforeClose) == null ? void 0 : s.call(e);
|
|
945
|
+
}).then((s) => {
|
|
946
|
+
s && (r.value = !1, t.emit("update:modelValue", r.value), t.emit("afterClose"));
|
|
940
947
|
});
|
|
941
948
|
};
|
|
942
|
-
ue(() => e.modelValue, (
|
|
943
|
-
|
|
949
|
+
ue(() => e.modelValue, (l, s) => {
|
|
950
|
+
l !== s && (r.value = l);
|
|
944
951
|
});
|
|
945
|
-
const
|
|
946
|
-
t.emit("click",
|
|
952
|
+
const o = (l, s) => {
|
|
953
|
+
t.emit("click", l, s);
|
|
947
954
|
}, i = {
|
|
948
955
|
close: () => {
|
|
949
956
|
r.value = !1;
|
|
950
957
|
}
|
|
951
958
|
};
|
|
952
|
-
async function
|
|
953
|
-
|
|
959
|
+
async function u(l, s) {
|
|
960
|
+
l.handle && await l.handle(s, i) && t.emit("closed", s);
|
|
954
961
|
}
|
|
955
|
-
const
|
|
956
|
-
class:
|
|
962
|
+
const v = (l, s) => C(ge, {
|
|
963
|
+
class: s,
|
|
957
964
|
alignment: "right",
|
|
958
|
-
items:
|
|
959
|
-
onClick:
|
|
965
|
+
items: l,
|
|
966
|
+
onClick: o
|
|
960
967
|
}, null);
|
|
961
|
-
function
|
|
962
|
-
var
|
|
963
|
-
if ((
|
|
964
|
-
const
|
|
968
|
+
function g() {
|
|
969
|
+
var l, s, d, E;
|
|
970
|
+
if ((s = (l = e.footerToolbar) == null ? void 0 : l.buttons) != null && s.length && (e.footerToolbar.visible === void 0 || e.footerToolbar.visible)) {
|
|
971
|
+
const T = {
|
|
965
972
|
"f-utils-fill": !0
|
|
966
973
|
};
|
|
967
|
-
return (
|
|
974
|
+
return (E = (d = e.footerToolbar) == null ? void 0 : d.appearance) != null && E.class && (T[e.footerToolbar.appearance.class] = !0), v(e.footerToolbar.buttons, T);
|
|
968
975
|
}
|
|
969
|
-
return
|
|
970
|
-
const
|
|
971
|
-
return
|
|
972
|
-
id:
|
|
976
|
+
return n.value && !!n.value.length && n.value.map((T) => {
|
|
977
|
+
const $ = R(T.disabled);
|
|
978
|
+
return C("button", {
|
|
979
|
+
id: T.id,
|
|
973
980
|
type: "button",
|
|
974
|
-
disabled:
|
|
975
|
-
class:
|
|
976
|
-
onClick: (
|
|
977
|
-
|
|
981
|
+
disabled: $.value,
|
|
982
|
+
class: T.class + (T.iconClass ? " btn-icontext" : ""),
|
|
983
|
+
onClick: (j) => {
|
|
984
|
+
u(T, j);
|
|
978
985
|
}
|
|
979
|
-
}, [!!
|
|
980
|
-
class:
|
|
981
|
-
}, null),
|
|
986
|
+
}, [!!T.iconClass && C("i", {
|
|
987
|
+
class: T.iconClass
|
|
988
|
+
}, null), T.text]);
|
|
982
989
|
});
|
|
983
990
|
}
|
|
984
|
-
function y() {
|
|
985
|
-
return e.footerTemplate && typeof e.footerTemplate == "function" ? e.footerTemplate() : t.slots.footerTemplate ? t.slots.footerTemplate() : p();
|
|
986
|
-
}
|
|
987
991
|
function S() {
|
|
988
|
-
|
|
989
|
-
|
|
992
|
+
return e.footerTemplate && typeof e.footerTemplate == "function" ? e.footerTemplate() : t.slots.footerTemplate ? t.slots.footerTemplate() : g();
|
|
993
|
+
}
|
|
994
|
+
function O() {
|
|
995
|
+
var s, d;
|
|
996
|
+
const l = {
|
|
990
997
|
"f-utils-fill": !0
|
|
991
998
|
};
|
|
992
|
-
return (
|
|
999
|
+
return (d = (s = e.headerToolbar) == null ? void 0 : s.appearance) != null && d.class && (l[e.headerToolbar.appearance.class] = !0), e.headerTemplate && typeof e.headerTemplate == "function" ? e.headerTemplate() : t.slots.headerTemplate ? t.slots.headerTemplate() : C(be, null, [C("div", {
|
|
993
1000
|
class: "f-drawer-title",
|
|
994
1001
|
title: e.title
|
|
995
|
-
}, [e.title]), e.headerToolbar && (e.headerToolbar.visible === void 0 || e.headerToolbar.visible) &&
|
|
1002
|
+
}, [e.title]), e.headerToolbar && (e.headerToolbar.visible === void 0 || e.headerToolbar.visible) && C("div", {
|
|
996
1003
|
class: "f-utils-fill-flex-row mx-2 col-7"
|
|
997
|
-
}, [
|
|
1004
|
+
}, [v(e.headerToolbar.buttons || [], l)]), e.showClose && C("div", {
|
|
998
1005
|
class: "f-drawer-close"
|
|
999
|
-
}, [
|
|
1006
|
+
}, [C("span", {
|
|
1000
1007
|
class: "f-icon f-icon-close",
|
|
1001
|
-
onClick: _((
|
|
1002
|
-
|
|
1008
|
+
onClick: _((E) => {
|
|
1009
|
+
m();
|
|
1003
1010
|
}, ["stop"])
|
|
1004
1011
|
}, null)])]);
|
|
1005
1012
|
}
|
|
1006
1013
|
const x = R({});
|
|
1007
|
-
function
|
|
1008
|
-
const
|
|
1014
|
+
function y() {
|
|
1015
|
+
const l = we();
|
|
1009
1016
|
x.value = {
|
|
1010
|
-
zIndex:
|
|
1017
|
+
zIndex: l < 1e3 ? 1e3 : l
|
|
1011
1018
|
};
|
|
1012
1019
|
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1020
|
+
function P() {
|
|
1021
|
+
return p.value ? !0 : typeof e.host == "string" ? e.host === "body" ? !0 : !!document.querySelector(e.host) : !!e.host;
|
|
1022
|
+
}
|
|
1023
|
+
return p.value = P(), de(() => {
|
|
1024
|
+
p.value = P();
|
|
1025
|
+
}), fe(() => {
|
|
1026
|
+
r.value && y();
|
|
1015
1027
|
}), t.expose({
|
|
1016
1028
|
open: () => {
|
|
1017
1029
|
r.value = !0;
|
|
1018
1030
|
},
|
|
1019
1031
|
close: () => {
|
|
1020
|
-
|
|
1032
|
+
m();
|
|
1021
1033
|
}
|
|
1022
|
-
}), () =>
|
|
1034
|
+
}), () => p.value ? C(me, {
|
|
1023
1035
|
to: e.host
|
|
1024
1036
|
}, {
|
|
1025
|
-
default: () => [
|
|
1026
|
-
class:
|
|
1037
|
+
default: () => [C("div", {
|
|
1038
|
+
class: h.value,
|
|
1027
1039
|
id: e.id,
|
|
1028
1040
|
style: x.value
|
|
1029
|
-
}, [
|
|
1041
|
+
}, [C(A, {
|
|
1030
1042
|
name: "f-drawer-mask",
|
|
1031
1043
|
appear: !0
|
|
1032
1044
|
}, {
|
|
1033
|
-
default: () => [r.value &&
|
|
1034
|
-
class:
|
|
1035
|
-
style:
|
|
1036
|
-
onClick: _((
|
|
1037
|
-
e.allowClickMaskToClose &&
|
|
1045
|
+
default: () => [r.value && C("div", {
|
|
1046
|
+
class: k.value,
|
|
1047
|
+
style: w.value,
|
|
1048
|
+
onClick: _((l) => {
|
|
1049
|
+
e.allowClickMaskToClose && m();
|
|
1038
1050
|
}, ["stop"])
|
|
1039
1051
|
}, null)]
|
|
1040
|
-
}),
|
|
1041
|
-
name:
|
|
1052
|
+
}), C(A, {
|
|
1053
|
+
name: c.value
|
|
1042
1054
|
}, {
|
|
1043
1055
|
default: () => {
|
|
1044
|
-
var
|
|
1045
|
-
return [
|
|
1046
|
-
class:
|
|
1047
|
-
style:
|
|
1048
|
-
}, [
|
|
1056
|
+
var l, s;
|
|
1057
|
+
return [pe(C("div", {
|
|
1058
|
+
class: F.value,
|
|
1059
|
+
style: a.value
|
|
1060
|
+
}, [C("div", {
|
|
1049
1061
|
class: "f-drawer-container"
|
|
1050
|
-
}, [e.showHeader &&
|
|
1062
|
+
}, [e.showHeader && C("div", {
|
|
1051
1063
|
class: "f-drawer-header align-items-center"
|
|
1052
|
-
}, [
|
|
1064
|
+
}, [O()]), C("div", {
|
|
1053
1065
|
class: "f-drawer-body f-utils-fill",
|
|
1054
1066
|
style: "overflow: auto;"
|
|
1055
|
-
}, [(
|
|
1067
|
+
}, [(s = (l = t.slots).default) == null ? void 0 : s.call(l)]), e.showFooter && C("div", {
|
|
1056
1068
|
class: "f-drawer-footer px-2",
|
|
1057
1069
|
style: {
|
|
1058
1070
|
height: e.footerHeight + "px"
|
|
1059
1071
|
}
|
|
1060
|
-
}, [
|
|
1072
|
+
}, [S()])])]), [[ve, r.value]])];
|
|
1061
1073
|
}
|
|
1062
1074
|
})])]
|
|
1063
|
-
});
|
|
1075
|
+
}) : null;
|
|
1064
1076
|
}
|
|
1065
|
-
}), Tt = Te(
|
|
1077
|
+
}), Tt = Te(dt);
|
|
1066
1078
|
export {
|
|
1067
|
-
|
|
1079
|
+
dt as FDrawer,
|
|
1068
1080
|
Tt as default,
|
|
1069
1081
|
re as drawerProps,
|
|
1070
|
-
|
|
1071
|
-
|
|
1082
|
+
wt as eventHandlerResolver,
|
|
1083
|
+
yt as propsResolver
|
|
1072
1084
|
};
|