@farris/ui-vue 1.7.3 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +312 -61
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +1482 -56
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +752 -8
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +266 -110
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +129 -128
- package/components/calendar/index.umd.cjs +2 -2
- package/components/code-editor/index.esm.js +237 -169
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +134 -133
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +812 -502
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +323 -291
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +355 -174
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +134 -133
- package/components/comment/index.umd.cjs +2 -2
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +3791 -2760
- package/components/component/index.umd.cjs +8 -1
- package/components/condition/index.esm.js +2482 -492
- package/components/condition/index.umd.cjs +8 -1
- package/components/data-view/index.esm.js +1816 -1790
- 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 +2975 -2615
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +397 -387
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +373 -124
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +592 -1894
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +250 -248
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +427 -466
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +1 -1
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1890 -1473
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +7371 -2
- package/components/expression-editor/index.umd.cjs +427 -1
- package/components/fieldset/index.esm.js +1 -1
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +2 -3
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.css +1 -1
- package/components/filter-condition-editor/index.esm.js +9044 -425
- package/components/filter-condition-editor/index.umd.cjs +427 -1
- package/components/html-template/index.esm.js +33 -36
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +615 -361
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +325 -247
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +269 -269
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +549 -163
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +837 -39
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +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/menu-lookup/index.esm.js +577 -536
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/nav/index.esm.js +311 -31
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1634 -189
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +82 -82
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1190 -850
- package/components/order/index.umd.cjs +6 -6
- package/components/page-footer/index.esm.js +331 -48
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +110 -116
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +509 -232
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +353 -148
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +157 -153
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1825 -871
- package/components/property-panel/index.umd.cjs +12 -5
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +6075 -3863
- 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 +2447 -2221
- 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 +134 -133
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +179 -8
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.css +1 -0
- package/components/sort-condition-editor/index.esm.js +9488 -4
- package/components/sort-condition-editor/index.umd.cjs +427 -1
- package/components/splitter/index.esm.js +1172 -142
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +47 -48
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +490 -419
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +217 -73
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +29 -27
- package/components/textarea/index.umd.cjs +2 -2
- package/components/transfer/index.esm.js +760 -543
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +105 -104
- 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 +1125 -634
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +359 -106
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +222 -89
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +290 -199
- package/components/weather/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +5192 -4408
- package/designer/data-grid/index.umd.cjs +17 -10
- package/designer/drawer/index.esm.js +576 -567
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +1418 -1154
- package/designer/dynamic-form/index.umd.cjs +8 -1
- package/designer/farris-designer.all.esm.js +12665 -12117
- package/designer/farris-designer.all.umd.cjs +12 -12
- 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 +0 -1
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +9 -9
- 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 +2829 -2540
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +822 -464
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +68724 -67244
- package/farris.all.umd.cjs +92 -92
- 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-list/src/property-config/combo-list.property-config.d.ts +14 -2
- 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 +6 -1
- package/types/condition/index.d.ts +55 -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 -3
- package/types/dynamic-form/index.d.ts +3 -9
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
- package/types/dynamic-resolver/index.d.ts +0 -3
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
- package/types/dynamic-view/src/components/maps.d.ts +104 -92
- package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
- package/types/filter-condition-editor/index.d.ts +9 -0
- package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
- package/types/flow-canvas/index.d.ts +3 -0
- package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → flow-canvas/src/components/flow-node-item.component.d.ts} +1 -1
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
- package/types/flow-canvas/src/composition/types.d.ts +42 -0
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
- package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
- package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/json-editor/src/json-editor.props.d.ts +1 -0
- package/types/layout/index.d.ts +0 -1
- package/types/layout/src/components/layout-pane.props.d.ts +1 -0
- package/types/layout/src/layout.props.d.ts +1 -0
- package/types/list-nav/index.d.ts +5 -24
- package/types/list-nav/src/list-nav.props.d.ts +1 -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/query-solution/index.d.ts +1 -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/layout/designer.d.ts +0 -32
- package/types/list-nav/designer.d.ts +0 -6
- 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
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { resolveAppearance as te, createPropsResolver as J } from "../../components/dynamic-resolver/index.esm.js";
|
|
2
|
-
import { getCustomStyle as
|
|
3
|
-
import { ref as
|
|
2
|
+
import { getCustomStyle as xe, getMaxZIndex as Fe, withInstall as Pe } from "../../components/common/index.esm.js";
|
|
3
|
+
import { ref as E, computed as D, defineComponent as re, watch as _, onMounted as oe, watchEffect as $e, createVNode as p, Teleport as Re, Transition as Z, withModifiers as W, withDirectives as De, vShow as Ee, Fragment as ne, nextTick as Me, inject as G } from "vue";
|
|
4
4
|
import je, { responseToolbarProps as Oe } from "../../components/response-toolbar/index.esm.js";
|
|
5
5
|
import { isPlainObject as Y, cloneDeep as K } from "lodash-es";
|
|
6
6
|
import { LocaleService as ee } from "../../components/locale/index.esm.js";
|
|
7
|
-
import { UseTemplateDragAndDropRules as Ie, DgControl as Be, useDragulaCommonRule as He, setPositionOfButtonGroup as Ne, useDesignerComponent as Ae, FDesignerInnerItem as Le } from "../../components/designer-canvas/index.esm.js";
|
|
8
|
-
import { commonToolbarItemDesignProps as Ve, FResponseToolbarDesign as
|
|
9
|
-
import { BaseControlProperty as
|
|
10
|
-
|
|
11
|
-
const ie = /* @__PURE__ */ new Map([
|
|
7
|
+
import { UseTemplateDragAndDropRules as Ie, DgControl as Be, useDragulaCommonRule as He, setPositionOfButtonGroup as Ne, useDesignerComponent as Ae, FDesignerInnerItem as Le, canvasChanged as qe } from "../../components/designer-canvas/index.esm.js";
|
|
8
|
+
import { commonToolbarItemDesignProps as Ve, FResponseToolbarDesign as ie, FResponseToolbarItemDesign as ze } from "../response-toolbar/index.esm.js";
|
|
9
|
+
import { BaseControlProperty as _e } from "../../components/property-panel/index.esm.js";
|
|
10
|
+
const ae = /* @__PURE__ */ new Map([
|
|
12
11
|
["appearance", te]
|
|
13
12
|
]), We = /* @__PURE__ */ new Map([
|
|
14
13
|
["buttons", "items"],
|
|
@@ -188,6 +187,10 @@ const ie = /* @__PURE__ */ new Map([
|
|
|
188
187
|
description: "遮罩层是否透明",
|
|
189
188
|
type: "boolean",
|
|
190
189
|
default: !1
|
|
190
|
+
},
|
|
191
|
+
host: {
|
|
192
|
+
description: "",
|
|
193
|
+
type: "string"
|
|
191
194
|
}
|
|
192
195
|
}, Ye = [
|
|
193
196
|
"id",
|
|
@@ -195,7 +198,7 @@ const ie = /* @__PURE__ */ new Map([
|
|
|
195
198
|
"contents"
|
|
196
199
|
], Ke = {
|
|
197
200
|
beforeClose: "关闭前事件"
|
|
198
|
-
},
|
|
201
|
+
}, se = {
|
|
199
202
|
$schema: Ue,
|
|
200
203
|
$id: Ge,
|
|
201
204
|
title: Ze,
|
|
@@ -205,7 +208,7 @@ const ie = /* @__PURE__ */ new Map([
|
|
|
205
208
|
required: Ye,
|
|
206
209
|
events: Ke
|
|
207
210
|
};
|
|
208
|
-
function
|
|
211
|
+
function le(e, t, r) {
|
|
209
212
|
return Object.assign(t, {
|
|
210
213
|
title: "标题",
|
|
211
214
|
headerToolbar: {
|
|
@@ -220,76 +223,154 @@ function se(e, t, o) {
|
|
|
220
223
|
}
|
|
221
224
|
}), t;
|
|
222
225
|
}
|
|
223
|
-
function
|
|
226
|
+
function ce(e, t, r) {
|
|
224
227
|
return t;
|
|
225
228
|
}
|
|
226
|
-
function
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
if (
|
|
231
|
-
const
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
229
|
+
function ue(e, t) {
|
|
230
|
+
let r;
|
|
231
|
+
function o(a) {
|
|
232
|
+
const { properties: u, title: v, ignore: i } = a, n = i && Array.isArray(i), s = Object.keys(u).reduce((d, h) => ((!n || !i.find((S) => S === h)) && (d[h] = u[h].type === "object" && u[h].properties ? o(u[h]) : K(u[h].default)), d), {});
|
|
233
|
+
if (v && (!n || !i.find((d) => d === "id"))) {
|
|
234
|
+
const d = v.toLowerCase().replace(/-/g, "_");
|
|
235
|
+
s.id = `${d}_${Math.random().toString().slice(2, 6)}`;
|
|
236
|
+
}
|
|
237
|
+
return s;
|
|
238
|
+
}
|
|
239
|
+
function g(a) {
|
|
240
|
+
const { properties: u, title: v, required: i } = a;
|
|
241
|
+
if (i && Array.isArray(i)) {
|
|
242
|
+
const n = i.reduce((s, d) => (s[d] = u[d].type === "object" && u[d].properties ? o(u[d]) : K(u[d].default), s), {});
|
|
243
|
+
if (v && i.find((s) => s === "id")) {
|
|
244
|
+
const s = v.toLowerCase().replace(/-/g, "_");
|
|
245
|
+
n.id = `${s}_${Math.random().toString().slice(2, 6)}`;
|
|
246
|
+
}
|
|
247
|
+
return n;
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
type: v
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
function k(a, u = {}, v) {
|
|
254
|
+
const i = e[a];
|
|
255
|
+
if (i) {
|
|
256
|
+
let n = g(i);
|
|
257
|
+
const s = t[a];
|
|
258
|
+
return n = s ? s({ getSchemaByType: k }, n, u, v) : n, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(n), n;
|
|
259
|
+
}
|
|
260
|
+
return null;
|
|
261
|
+
}
|
|
262
|
+
function C(a, u) {
|
|
263
|
+
const v = o(u);
|
|
264
|
+
return Object.keys(v).reduce((i, n) => (Object.prototype.hasOwnProperty.call(a, n) && (i[n] && Y(i[n]) && Y(a[n] || !a[n]) ? Object.assign(i[n], a[n] || {}) : i[n] = a[n]), i), v), v;
|
|
265
|
+
}
|
|
266
|
+
function b(a, u) {
|
|
267
|
+
return Object.keys(a).filter((i) => a[i] != null).reduce((i, n) => {
|
|
268
|
+
if (u.has(n)) {
|
|
269
|
+
const s = u.get(n);
|
|
270
|
+
if (typeof s == "string")
|
|
271
|
+
i[s] = a[n];
|
|
272
|
+
else {
|
|
273
|
+
const d = s(n, a[n], a);
|
|
274
|
+
Object.assign(i, d);
|
|
275
|
+
}
|
|
276
|
+
} else
|
|
277
|
+
i[n] = a[n];
|
|
278
|
+
return i;
|
|
279
|
+
}, {});
|
|
280
|
+
}
|
|
281
|
+
function x(a, u, v = /* @__PURE__ */ new Map()) {
|
|
282
|
+
const i = C(a, u);
|
|
283
|
+
return b(i, v);
|
|
284
|
+
}
|
|
285
|
+
function f(a) {
|
|
286
|
+
var v;
|
|
287
|
+
const u = a.type;
|
|
288
|
+
if (u) {
|
|
289
|
+
const i = e[u];
|
|
290
|
+
if (!i)
|
|
291
|
+
return a;
|
|
292
|
+
const n = C(a, i), s = ((v = a.editor) == null ? void 0 : v.type) || "";
|
|
293
|
+
if (s) {
|
|
294
|
+
const d = e[s], h = C(a.editor, d);
|
|
295
|
+
n.editor = h;
|
|
296
|
+
}
|
|
297
|
+
return n;
|
|
298
|
+
}
|
|
299
|
+
return a;
|
|
300
|
+
}
|
|
301
|
+
function y(a) {
|
|
302
|
+
r = a;
|
|
303
|
+
}
|
|
304
|
+
return { getSchemaByType: k, resolveSchemaWithDefaultValue: f, resolveSchemaToProps: x, mappingSchemaToProps: b, setDesignerContext: y };
|
|
305
|
+
}
|
|
306
|
+
const de = {}, fe = {}, { resolveSchemaWithDefaultValue: et, resolveSchemaToProps: tt, mappingSchemaToProps: rt } = ue(de, fe);
|
|
307
|
+
function ot(e = {}) {
|
|
308
|
+
function t(f, y, a, u) {
|
|
309
|
+
if (typeof a == "number")
|
|
310
|
+
return u[f].length === a;
|
|
311
|
+
if (typeof a == "object") {
|
|
312
|
+
const v = Object.keys(a)[0], i = a[v];
|
|
313
|
+
if (v === "not")
|
|
314
|
+
return Number(u[f].length) !== Number(i);
|
|
315
|
+
if (v === "moreThan")
|
|
316
|
+
return Number(u[f].length) >= Number(i);
|
|
317
|
+
if (v === "lessThan")
|
|
318
|
+
return Number(u[f].length) <= Number(i);
|
|
238
319
|
}
|
|
239
320
|
return !1;
|
|
240
321
|
}
|
|
241
|
-
function
|
|
242
|
-
return
|
|
322
|
+
function r(f, y, a, u) {
|
|
323
|
+
return u[f] && u[f].propertyValue && String(u[f].propertyValue.value) === String(a);
|
|
243
324
|
}
|
|
244
|
-
const
|
|
325
|
+
const o = /* @__PURE__ */ new Map([
|
|
245
326
|
["length", t],
|
|
246
|
-
["getProperty",
|
|
327
|
+
["getProperty", r]
|
|
247
328
|
]);
|
|
248
|
-
Object.keys(e).reduce((f,
|
|
249
|
-
function g(f,
|
|
250
|
-
const
|
|
251
|
-
return typeof
|
|
252
|
-
if (
|
|
253
|
-
return { target:
|
|
254
|
-
const
|
|
255
|
-
return { target:
|
|
329
|
+
Object.keys(e).reduce((f, y) => (f.set(y, e[y]), f), o);
|
|
330
|
+
function g(f, y) {
|
|
331
|
+
const a = f;
|
|
332
|
+
return typeof y == "number" ? [{ target: a, operator: "length", param: null, value: Number(y) }] : typeof y == "boolean" ? [{ target: a, operator: "getProperty", param: f, value: !!y }] : typeof y == "object" ? Object.keys(y).map((u) => {
|
|
333
|
+
if (u === "length")
|
|
334
|
+
return { target: a, operator: "length", param: null, value: y[u] };
|
|
335
|
+
const v = u, i = y[u];
|
|
336
|
+
return { target: a, operator: "getProperty", param: v, value: i };
|
|
256
337
|
}) : [];
|
|
257
338
|
}
|
|
258
339
|
function k(f) {
|
|
259
|
-
return Object.keys(f).reduce((
|
|
260
|
-
const
|
|
261
|
-
return
|
|
340
|
+
return Object.keys(f).reduce((a, u) => {
|
|
341
|
+
const v = g(u, f[u]);
|
|
342
|
+
return a.push(...v), a;
|
|
262
343
|
}, []);
|
|
263
344
|
}
|
|
264
|
-
function
|
|
265
|
-
if (
|
|
266
|
-
const
|
|
267
|
-
return
|
|
345
|
+
function C(f, y) {
|
|
346
|
+
if (o.has(f.operator)) {
|
|
347
|
+
const a = o.get(f.operator);
|
|
348
|
+
return a && a(f.target, f.param, f.value, y) || !1;
|
|
268
349
|
}
|
|
269
350
|
return !1;
|
|
270
351
|
}
|
|
271
|
-
function
|
|
272
|
-
return k(f).reduce((
|
|
352
|
+
function b(f, y) {
|
|
353
|
+
return k(f).reduce((v, i) => v && C(i, y), !0);
|
|
273
354
|
}
|
|
274
|
-
function x(f,
|
|
275
|
-
const
|
|
276
|
-
return
|
|
355
|
+
function x(f, y) {
|
|
356
|
+
const a = Object.keys(f), u = a.includes("allOf"), v = a.includes("anyOf"), i = u || v, d = (i ? f[i ? u ? "allOf" : "anyOf" : "allOf"] : [f]).map((S) => b(S, y));
|
|
357
|
+
return u ? !d.includes(!1) : d.includes(!0);
|
|
277
358
|
}
|
|
278
359
|
return { parseValueSchema: x };
|
|
279
360
|
}
|
|
280
|
-
const
|
|
281
|
-
convertTo: (e, t,
|
|
282
|
-
e.appearance || (e.appearance = {}), e.appearance[t] =
|
|
361
|
+
const nt = {
|
|
362
|
+
convertTo: (e, t, r, o) => {
|
|
363
|
+
e.appearance || (e.appearance = {}), e.appearance[t] = r;
|
|
283
364
|
},
|
|
284
|
-
convertFrom: (e, t,
|
|
285
|
-
},
|
|
286
|
-
convertFrom: (e, t,
|
|
287
|
-
},
|
|
288
|
-
convertTo: (e, t,
|
|
289
|
-
e.editor && (e.editor[t] =
|
|
365
|
+
convertFrom: (e, t, r) => e.appearance ? e.appearance[t] : e[t]
|
|
366
|
+
}, it = {
|
|
367
|
+
convertFrom: (e, t, r) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
368
|
+
}, at = {
|
|
369
|
+
convertTo: (e, t, r, o) => {
|
|
370
|
+
e.editor && (e.editor[t] = r);
|
|
290
371
|
},
|
|
291
|
-
convertFrom: (e, t,
|
|
292
|
-
},
|
|
372
|
+
convertFrom: (e, t, r) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
373
|
+
}, st = {
|
|
293
374
|
button: { type: "button", name: "按钮" },
|
|
294
375
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
295
376
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -344,24 +425,24 @@ const tt = {
|
|
|
344
425
|
comment: { type: "comment", name: "评论区" },
|
|
345
426
|
"rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
|
|
346
427
|
calendar: { type: "calendar", name: "日历", icon: "date-picker" }
|
|
347
|
-
},
|
|
348
|
-
convertFrom: (e, t,
|
|
428
|
+
}, lt = {
|
|
429
|
+
convertFrom: (e, t, r) => {
|
|
349
430
|
var g;
|
|
350
|
-
const
|
|
351
|
-
return ((g =
|
|
431
|
+
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
432
|
+
return ((g = st[o]) == null ? void 0 : g.name) || o;
|
|
352
433
|
}
|
|
353
|
-
},
|
|
354
|
-
convertTo: (e, t,
|
|
434
|
+
}, ct = {
|
|
435
|
+
convertTo: (e, t, r, o) => {
|
|
355
436
|
e[t] = e[t];
|
|
356
437
|
},
|
|
357
|
-
convertFrom: (e, t,
|
|
358
|
-
},
|
|
359
|
-
convertTo: (e, t,
|
|
360
|
-
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] =
|
|
361
|
-
[t]:
|
|
438
|
+
convertFrom: (e, t, r) => e.editor ? r.getRealEditorType(e.editor.type) : ""
|
|
439
|
+
}, ut = {
|
|
440
|
+
convertTo: (e, t, r, o) => {
|
|
441
|
+
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = r : e.formatter = {
|
|
442
|
+
[t]: r
|
|
362
443
|
});
|
|
363
444
|
},
|
|
364
|
-
convertFrom: (e, t,
|
|
445
|
+
convertFrom: (e, t, r) => {
|
|
365
446
|
if (e.formatter) {
|
|
366
447
|
if (t === "trueText")
|
|
367
448
|
return e.formatter.trueText;
|
|
@@ -386,11 +467,11 @@ const tt = {
|
|
|
386
467
|
}
|
|
387
468
|
return "none";
|
|
388
469
|
}
|
|
389
|
-
},
|
|
390
|
-
convertTo: (e, t,
|
|
391
|
-
e.command ? e.command[t] =
|
|
392
|
-
[t]:
|
|
393
|
-
}, t === "enableType" &&
|
|
470
|
+
}, dt = {
|
|
471
|
+
convertTo: (e, t, r, o) => {
|
|
472
|
+
e.command ? e.command[t] = r : e.command = {
|
|
473
|
+
[t]: r
|
|
474
|
+
}, t === "enableType" && r === "default" && (e.command.enable = !0, e.command.commands = [
|
|
394
475
|
{
|
|
395
476
|
text: "编辑",
|
|
396
477
|
type: "primary",
|
|
@@ -401,7 +482,7 @@ const tt = {
|
|
|
401
482
|
type: "danger",
|
|
402
483
|
command: "remove"
|
|
403
484
|
}
|
|
404
|
-
]), t === "enableType" &&
|
|
485
|
+
]), t === "enableType" && r === "custom" && (e.command.enable = !0, e.command.commands = [
|
|
405
486
|
{
|
|
406
487
|
value: "add",
|
|
407
488
|
text: {
|
|
@@ -429,13 +510,13 @@ const tt = {
|
|
|
429
510
|
},
|
|
430
511
|
type: "remove"
|
|
431
512
|
}
|
|
432
|
-
]), t === "enableType" &&
|
|
513
|
+
]), t === "enableType" && r === "unable" && (e.command.enable = !1);
|
|
433
514
|
},
|
|
434
|
-
convertFrom: (e, t,
|
|
435
|
-
var
|
|
515
|
+
convertFrom: (e, t, r) => {
|
|
516
|
+
var o, g;
|
|
436
517
|
if (e.command) {
|
|
437
518
|
if (t === "enableType") {
|
|
438
|
-
const k = (g = (
|
|
519
|
+
const k = (g = (o = e.command) == null ? void 0 : o.commands) == null ? void 0 : g.find((C) => C.command === "edit" && C.type === "primary");
|
|
439
520
|
return e.command.enable ? k ? "default" : "custom" : "unable";
|
|
440
521
|
}
|
|
441
522
|
if (t === "commands")
|
|
@@ -447,13 +528,13 @@ const tt = {
|
|
|
447
528
|
}
|
|
448
529
|
return "";
|
|
449
530
|
}
|
|
450
|
-
},
|
|
451
|
-
convertTo: (e, t,
|
|
452
|
-
e.column ? e.column[t] =
|
|
453
|
-
[t]:
|
|
454
|
-
}, t === "fitColumns" &&
|
|
531
|
+
}, ft = {
|
|
532
|
+
convertTo: (e, t, r, o) => {
|
|
533
|
+
e.column ? e.column[t] = r : e.column = {
|
|
534
|
+
[t]: r
|
|
535
|
+
}, t === "fitColumns" && r && (e.column.fitMode || (e.column.fitMode = "average"));
|
|
455
536
|
},
|
|
456
|
-
convertFrom: (e, t,
|
|
537
|
+
convertFrom: (e, t, r) => {
|
|
457
538
|
if (e.column) {
|
|
458
539
|
if (t === "fitColumns")
|
|
459
540
|
return e.column.fitColumns;
|
|
@@ -462,27 +543,27 @@ const tt = {
|
|
|
462
543
|
}
|
|
463
544
|
return "";
|
|
464
545
|
}
|
|
465
|
-
},
|
|
466
|
-
convertTo: (e, t,
|
|
467
|
-
e.summary ? e.summary[t] =
|
|
468
|
-
[t]:
|
|
469
|
-
}, t === "enable" &&
|
|
470
|
-
enable:
|
|
546
|
+
}, pt = {
|
|
547
|
+
convertTo: (e, t, r, o) => {
|
|
548
|
+
e.summary ? e.summary[t] = r : e.summary = {
|
|
549
|
+
[t]: r
|
|
550
|
+
}, t === "enable" && r && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
|
|
551
|
+
enable: r,
|
|
471
552
|
groupFields: []
|
|
472
553
|
});
|
|
473
554
|
},
|
|
474
|
-
convertFrom: (e, t,
|
|
475
|
-
},
|
|
476
|
-
convertTo: (e, t,
|
|
477
|
-
e.group ? e.group[t] =
|
|
478
|
-
[t]:
|
|
479
|
-
}, t === "enable" &&
|
|
480
|
-
enable:
|
|
555
|
+
convertFrom: (e, t, r) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
|
|
556
|
+
}, mt = {
|
|
557
|
+
convertTo: (e, t, r, o) => {
|
|
558
|
+
e.group ? e.group[t] = r : e.group = {
|
|
559
|
+
[t]: r
|
|
560
|
+
}, t === "enable" && r && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
|
|
561
|
+
enable: r,
|
|
481
562
|
groupFields: [],
|
|
482
563
|
showSummary: !1
|
|
483
564
|
});
|
|
484
565
|
},
|
|
485
|
-
convertFrom: (e, t,
|
|
566
|
+
convertFrom: (e, t, r) => {
|
|
486
567
|
if (e.group) {
|
|
487
568
|
if (t === "enable")
|
|
488
569
|
return e.group.enable;
|
|
@@ -490,76 +571,76 @@ const tt = {
|
|
|
490
571
|
return e.group.showSummary;
|
|
491
572
|
}
|
|
492
573
|
}
|
|
493
|
-
},
|
|
574
|
+
}, bt = {
|
|
494
575
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
495
|
-
convertTo: (e, t,
|
|
496
|
-
if (
|
|
497
|
-
const
|
|
498
|
-
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path =
|
|
576
|
+
convertTo: (e, t, r) => {
|
|
577
|
+
if (r && r.length > 0) {
|
|
578
|
+
const o = r[0];
|
|
579
|
+
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
|
|
499
580
|
}
|
|
500
581
|
}
|
|
501
|
-
},
|
|
502
|
-
convertTo: (e, t,
|
|
503
|
-
e.pagination || (e.pagination = {}), e.pagination[t] =
|
|
582
|
+
}, gt = {
|
|
583
|
+
convertTo: (e, t, r, o) => {
|
|
584
|
+
e.pagination || (e.pagination = {}), e.pagination[t] = r;
|
|
504
585
|
},
|
|
505
|
-
convertFrom: (e, t,
|
|
506
|
-
},
|
|
507
|
-
convertTo: (e, t,
|
|
508
|
-
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] =
|
|
586
|
+
convertFrom: (e, t, r) => e.pagination ? e.pagination[t] : e[t]
|
|
587
|
+
}, vt = {
|
|
588
|
+
convertTo: (e, t, r, o) => {
|
|
589
|
+
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = r;
|
|
509
590
|
},
|
|
510
|
-
convertFrom: (e, t,
|
|
511
|
-
},
|
|
512
|
-
convertTo: (e, t,
|
|
513
|
-
e.selection || (e.selection = {}), e.selection[t] =
|
|
591
|
+
convertFrom: (e, t, r) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
592
|
+
}, yt = {
|
|
593
|
+
convertTo: (e, t, r, o) => {
|
|
594
|
+
e.selection || (e.selection = {}), e.selection[t] = r;
|
|
514
595
|
},
|
|
515
|
-
convertFrom: (e, t,
|
|
516
|
-
var
|
|
517
|
-
return t === "showCheckbox" ? (
|
|
596
|
+
convertFrom: (e, t, r) => {
|
|
597
|
+
var o, g;
|
|
598
|
+
return t === "showCheckbox" ? (o = e.selection) != null && o.multiSelect ? !0 : (g = e.selection) == null ? void 0 : g.showCheckbox : e.selection ? e.selection[t] : e[t];
|
|
518
599
|
}
|
|
519
|
-
},
|
|
520
|
-
convertFrom: (e, t,
|
|
521
|
-
},
|
|
600
|
+
}, ht = {
|
|
601
|
+
convertFrom: (e, t, r) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
602
|
+
}, wt = {
|
|
522
603
|
convertFrom: (e, t) => e[t] || "",
|
|
523
|
-
convertTo: (e, t,
|
|
524
|
-
e[t] =
|
|
604
|
+
convertTo: (e, t, r) => {
|
|
605
|
+
e[t] = r;
|
|
525
606
|
}
|
|
526
|
-
},
|
|
527
|
-
convertTo: (e, t,
|
|
528
|
-
e.size || (e.size = {}), e.size[t] =
|
|
607
|
+
}, Ct = {
|
|
608
|
+
convertTo: (e, t, r, o) => {
|
|
609
|
+
e.size || (e.size = {}), e.size[t] = r;
|
|
529
610
|
},
|
|
530
|
-
convertFrom: (e, t,
|
|
531
|
-
},
|
|
532
|
-
convertFrom: (e, t,
|
|
533
|
-
var
|
|
534
|
-
return (
|
|
611
|
+
convertFrom: (e, t, r) => e.size ? e.size[t] : e[t]
|
|
612
|
+
}, Tt = {
|
|
613
|
+
convertFrom: (e, t, r) => {
|
|
614
|
+
var o, g;
|
|
615
|
+
return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (g = e.formatter) == null ? void 0 : g.data : e.formatterEnumData;
|
|
535
616
|
}
|
|
536
|
-
},
|
|
537
|
-
convertTo: (e, t,
|
|
538
|
-
e.sort || (e.sort = {}), e.sort[t] =
|
|
617
|
+
}, kt = {
|
|
618
|
+
convertTo: (e, t, r, o) => {
|
|
619
|
+
e.sort || (e.sort = {}), e.sort[t] = r;
|
|
539
620
|
},
|
|
540
|
-
convertFrom: (e, t,
|
|
541
|
-
var
|
|
621
|
+
convertFrom: (e, t, r) => {
|
|
622
|
+
var o, g;
|
|
542
623
|
if (t === "mode")
|
|
543
|
-
return ((
|
|
624
|
+
return ((o = e.sort) == null ? void 0 : o.mode) || "client";
|
|
544
625
|
if (t === "multiSort")
|
|
545
626
|
return !!((g = e.sort) != null && g.multiSort);
|
|
546
627
|
}
|
|
547
|
-
},
|
|
548
|
-
convertTo: (e, t,
|
|
549
|
-
e.filter || (e.filter = {}), e.filter[t] =
|
|
628
|
+
}, St = {
|
|
629
|
+
convertTo: (e, t, r, o) => {
|
|
630
|
+
e.filter || (e.filter = {}), e.filter[t] = r;
|
|
550
631
|
},
|
|
551
|
-
convertFrom: (e, t,
|
|
552
|
-
var
|
|
632
|
+
convertFrom: (e, t, r) => {
|
|
633
|
+
var o;
|
|
553
634
|
if (t === "mode")
|
|
554
|
-
return ((
|
|
635
|
+
return ((o = e.filter) == null ? void 0 : o.mode) || "client";
|
|
555
636
|
}
|
|
556
|
-
},
|
|
557
|
-
convertTo: (e, t,
|
|
558
|
-
e.rowOption ? e.rowOption[t] =
|
|
559
|
-
[t]:
|
|
637
|
+
}, xt = {
|
|
638
|
+
convertTo: (e, t, r, o) => {
|
|
639
|
+
e.rowOption ? e.rowOption[t] = r : e.rowOption = {
|
|
640
|
+
[t]: r
|
|
560
641
|
};
|
|
561
642
|
},
|
|
562
|
-
convertFrom: (e, t,
|
|
643
|
+
convertFrom: (e, t, r) => {
|
|
563
644
|
if (e.rowOption) {
|
|
564
645
|
if (t === "customRowStyle")
|
|
565
646
|
return e.rowOption.customRowStyle;
|
|
@@ -568,43 +649,43 @@ const tt = {
|
|
|
568
649
|
}
|
|
569
650
|
return "";
|
|
570
651
|
}
|
|
571
|
-
},
|
|
572
|
-
convertTo: (e, t,
|
|
573
|
-
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] =
|
|
652
|
+
}, Ft = {
|
|
653
|
+
convertTo: (e, t, r, o) => {
|
|
654
|
+
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = r, t === "columnTemplateType" && r === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
|
|
574
655
|
<span class="f-pretend-link f-cursor-pointer"
|
|
575
656
|
@click="(ctx)=>viewModel.current.${e.onClickLinkCommand || ""}({id: rowData.id,context: ctx})">
|
|
576
657
|
{{rowData.${e.field}}}
|
|
577
658
|
</span>` : e.columnTemplate = `
|
|
578
659
|
<span class="f-pretend-link f-cursor-pointer">
|
|
579
660
|
{{rowData.${e.field}}}
|
|
580
|
-
</span>`), t === "columnTemplateType" &&
|
|
661
|
+
</span>`), t === "columnTemplateType" && r === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && r === "custom" && (e.columnTemplate = ""));
|
|
581
662
|
},
|
|
582
|
-
convertFrom: (e, t,
|
|
663
|
+
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" : ""
|
|
583
664
|
};
|
|
584
|
-
function
|
|
585
|
-
const
|
|
586
|
-
["/converter/appearance.converter",
|
|
587
|
-
["/converter/buttons.converter",
|
|
588
|
-
["/converter/property-editor.converter",
|
|
589
|
-
["/converter/items-count.converter",
|
|
590
|
-
["/converter/type.converter",
|
|
591
|
-
["/converter/change-editor.converter",
|
|
592
|
-
["/converter/change-formatter.converter",
|
|
593
|
-
["/converter/column-command.converter",
|
|
594
|
-
["/converter/column-option.converter",
|
|
595
|
-
["/converter/summary.converter",
|
|
596
|
-
["/converter/group.converter",
|
|
597
|
-
["/converter/form-group-label.converter",
|
|
598
|
-
["/converter/field-selector.converter",
|
|
599
|
-
["/converter/pagination.converter",
|
|
600
|
-
["/converter/row-number.converter",
|
|
601
|
-
["/converter/grid-selection.converter",
|
|
602
|
-
["/converter/size.converter",
|
|
603
|
-
["/converter/change-formatter-enum.converter",
|
|
604
|
-
["/converter/grid-sort.converter",
|
|
605
|
-
["/converter/grid-filter.converter",
|
|
606
|
-
["/converter/row-option.converter",
|
|
607
|
-
["/converter/change-formatter-type.converter",
|
|
665
|
+
function pe(e, t, r) {
|
|
666
|
+
const o = /* @__PURE__ */ new Map([
|
|
667
|
+
["/converter/appearance.converter", nt],
|
|
668
|
+
["/converter/buttons.converter", it],
|
|
669
|
+
["/converter/property-editor.converter", at],
|
|
670
|
+
["/converter/items-count.converter", ht],
|
|
671
|
+
["/converter/type.converter", lt],
|
|
672
|
+
["/converter/change-editor.converter", ct],
|
|
673
|
+
["/converter/change-formatter.converter", ut],
|
|
674
|
+
["/converter/column-command.converter", dt],
|
|
675
|
+
["/converter/column-option.converter", ft],
|
|
676
|
+
["/converter/summary.converter", pt],
|
|
677
|
+
["/converter/group.converter", mt],
|
|
678
|
+
["/converter/form-group-label.converter", wt],
|
|
679
|
+
["/converter/field-selector.converter", bt],
|
|
680
|
+
["/converter/pagination.converter", gt],
|
|
681
|
+
["/converter/row-number.converter", vt],
|
|
682
|
+
["/converter/grid-selection.converter", yt],
|
|
683
|
+
["/converter/size.converter", Ct],
|
|
684
|
+
["/converter/change-formatter-enum.converter", Tt],
|
|
685
|
+
["/converter/grid-sort.converter", kt],
|
|
686
|
+
["/converter/grid-filter.converter", St],
|
|
687
|
+
["/converter/row-option.converter", xt],
|
|
688
|
+
["/converter/change-formatter-type.converter", Ft]
|
|
608
689
|
]), g = /* @__PURE__ */ new Map([
|
|
609
690
|
["string", { type: "input-group", enableClear: !1 }],
|
|
610
691
|
["boolean", {
|
|
@@ -629,194 +710,117 @@ function ce(e, t, o) {
|
|
|
629
710
|
["array", { type: "button-edit" }],
|
|
630
711
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
631
712
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
632
|
-
]), k =
|
|
633
|
-
function
|
|
713
|
+
]), k = ot();
|
|
714
|
+
function C(i, n) {
|
|
634
715
|
return () => k.parseValueSchema(i, n);
|
|
635
716
|
}
|
|
636
|
-
function
|
|
637
|
-
return i.includes("visible") && n.visible !== void 0 ? typeof n.visible == "boolean" ? () => !!n.visible : n.visible === void 0 ? !0 :
|
|
717
|
+
function b(i, n, s) {
|
|
718
|
+
return i.includes("visible") && n.visible !== void 0 ? typeof n.visible == "boolean" ? () => !!n.visible : n.visible === void 0 ? !0 : C(n.visible, s) : () => !0;
|
|
638
719
|
}
|
|
639
|
-
function x(i, n,
|
|
640
|
-
return i.includes("readonly") && n.readonly !== void 0 ? typeof n.readonly == "boolean" ? () => !!n.readonly :
|
|
720
|
+
function x(i, n, s) {
|
|
721
|
+
return i.includes("readonly") && n.readonly !== void 0 ? typeof n.readonly == "boolean" ? () => !!n.readonly : C(n.readonly, s) : () => !1;
|
|
641
722
|
}
|
|
642
723
|
function f(i, n) {
|
|
643
|
-
const
|
|
644
|
-
return typeof
|
|
724
|
+
const s = i.$converter || n;
|
|
725
|
+
return typeof s == "string" && s && o.has(s) ? o.get(s) || null : s || null;
|
|
645
726
|
}
|
|
646
|
-
function
|
|
647
|
-
return Object.keys(i).map((
|
|
648
|
-
const
|
|
649
|
-
|
|
650
|
-
const
|
|
651
|
-
let
|
|
652
|
-
const
|
|
727
|
+
function y(i, n, s, d, h, S = "", R = "") {
|
|
728
|
+
return Object.keys(i).map((T) => {
|
|
729
|
+
const M = E(1), l = T, c = i[T], m = Object.keys(c), O = c.title, F = c.type, B = g.get(F) || { type: "input-group", enableClear: !1 }, j = c.editor ? Object.assign({}, B, c.editor) : Object.assign({}, B), L = b(m, c, n), A = x(m, c, n);
|
|
730
|
+
j.readonly = j.readonly === void 0 ? A() : j.readonly;
|
|
731
|
+
const q = c.type === "cascade" ? y(c.properties, n, s, d, h, S, R) : [], V = !0;
|
|
732
|
+
let w = f(c, R);
|
|
733
|
+
const $ = D({
|
|
653
734
|
get() {
|
|
654
|
-
if (
|
|
655
|
-
if (["class", "style"].find((
|
|
656
|
-
return
|
|
657
|
-
const
|
|
658
|
-
return Object.prototype.hasOwnProperty.call(
|
|
735
|
+
if (M.value) {
|
|
736
|
+
if (["class", "style"].find((Se) => Se === l) && !w && (w = o.get("/converter/appearance.converter") || null), w && w.convertFrom)
|
|
737
|
+
return w.convertFrom(s, T, h, S);
|
|
738
|
+
const N = s[T];
|
|
739
|
+
return Object.prototype.hasOwnProperty.call(c, "defaultValue") && (N === void 0 || typeof N == "string" && N === "") ? c.type === "boolean" ? c.defaultValue : c.defaultValue || "" : N;
|
|
659
740
|
}
|
|
660
741
|
return null;
|
|
661
742
|
},
|
|
662
|
-
set(
|
|
663
|
-
|
|
743
|
+
set(N) {
|
|
744
|
+
M.value += 1, w && w.convertTo ? (w.convertTo(d, T, N, h, S), w.convertTo(s, T, N, h, S)) : (d[T] = N, s[T] = N);
|
|
664
745
|
}
|
|
665
|
-
}), { refreshPanelAfterChanged:
|
|
666
|
-
return n[
|
|
746
|
+
}), { refreshPanelAfterChanged: H, description: I, isExpand: Te, parentPropertyID: ke } = c, X = { propertyID: l, propertyName: O, propertyType: F, propertyValue: $, editor: j, visible: L, readonly: A, cascadeConfig: q, hideCascadeTitle: V, refreshPanelAfterChanged: H, description: I, isExpand: Te, parentPropertyID: ke };
|
|
747
|
+
return n[l] = X, X;
|
|
667
748
|
});
|
|
668
749
|
}
|
|
669
|
-
function
|
|
670
|
-
const
|
|
671
|
-
return h && h.categories ? Object.keys(h.categories).map((
|
|
672
|
-
const
|
|
673
|
-
return { categoryId:
|
|
750
|
+
function a(i, n, s = {}) {
|
|
751
|
+
const d = {}, h = e[i];
|
|
752
|
+
return h && h.categories ? Object.keys(h.categories).map((R) => {
|
|
753
|
+
const P = h.categories[R], T = P == null ? void 0 : P.title, M = y(P.properties || {}, d, {}, s, n);
|
|
754
|
+
return { categoryId: R, categoryName: T, properties: M };
|
|
674
755
|
}) : [];
|
|
675
756
|
}
|
|
676
|
-
function
|
|
677
|
-
const S = n.$ref.schema,
|
|
678
|
-
if (
|
|
679
|
-
const
|
|
680
|
-
|
|
681
|
-
|
|
757
|
+
function u(i, n, s, d, h = "") {
|
|
758
|
+
const S = n.$ref.schema, R = n.$ref.converter, P = s[S], T = P.type, M = r(P), l = {}, c = e[T];
|
|
759
|
+
if (c && c.categories) {
|
|
760
|
+
const m = c.categories[i], O = m == null ? void 0 : m.title;
|
|
761
|
+
R && Object.keys(m.properties).forEach((j) => {
|
|
762
|
+
m.properties[j].$converter = R;
|
|
682
763
|
});
|
|
683
|
-
const
|
|
684
|
-
return { categoryId: i, categoryName:
|
|
764
|
+
const F = (m == null ? void 0 : m.properties) || {}, B = y(F, l, M, P, d, h);
|
|
765
|
+
return { categoryId: i, categoryName: O, properties: B };
|
|
685
766
|
}
|
|
686
767
|
return { categoryId: i, categoryName: "", properties: [] };
|
|
687
768
|
}
|
|
688
|
-
function
|
|
689
|
-
const S = i.type,
|
|
690
|
-
let
|
|
691
|
-
if (!(
|
|
692
|
-
const
|
|
693
|
-
return Object.keys(
|
|
694
|
-
const
|
|
695
|
-
if (
|
|
696
|
-
|
|
769
|
+
function v(i, n, s, d, h) {
|
|
770
|
+
const S = i.type, R = r(i), P = {};
|
|
771
|
+
let T = h || e[S];
|
|
772
|
+
if (!(T && Object.keys(T).length > 0) && s && s.getPropConfig && (T = s.getPropConfig(d)), T && T.categories) {
|
|
773
|
+
const l = [];
|
|
774
|
+
return Object.keys(T.categories).map((c) => {
|
|
775
|
+
const m = T.categories[c];
|
|
776
|
+
if (m.$ref) {
|
|
777
|
+
l.push(u(c, m, i, n, d));
|
|
697
778
|
return;
|
|
698
779
|
}
|
|
699
|
-
const
|
|
700
|
-
|
|
701
|
-
}),
|
|
780
|
+
const O = m == null ? void 0 : m.title, F = m == null ? void 0 : m.tabId, B = m == null ? void 0 : m.tabName, j = m == null ? void 0 : m.hide, L = m == null ? void 0 : m.hideTitle, A = y(m.properties || {}, P, R, i, n, d, m.$converter), { setPropertyRelates: q } = m, V = m == null ? void 0 : m.parentPropertyID;
|
|
781
|
+
l.push({ categoryId: c, categoryName: O, tabId: F, tabName: B, hide: j, properties: A, hideTitle: L, setPropertyRelates: q, parentPropertyID: V });
|
|
782
|
+
}), l;
|
|
702
783
|
}
|
|
703
784
|
return [];
|
|
704
785
|
}
|
|
705
786
|
return {
|
|
706
|
-
getPropertyConfigBySchema:
|
|
707
|
-
getPropertyConfigByType:
|
|
708
|
-
propertyConverterMap:
|
|
787
|
+
getPropertyConfigBySchema: v,
|
|
788
|
+
getPropertyConfigByType: a,
|
|
789
|
+
propertyConverterMap: o
|
|
709
790
|
};
|
|
710
791
|
}
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
}
|
|
721
|
-
function g(s) {
|
|
722
|
-
const { properties: c, title: b, required: i } = s;
|
|
723
|
-
if (i && Array.isArray(i)) {
|
|
724
|
-
const n = i.reduce((l, u) => (l[u] = c[u].type === "object" && c[u].properties ? r(c[u]) : K(c[u].default), l), {});
|
|
725
|
-
if (b && i.find((l) => l === "id")) {
|
|
726
|
-
const l = b.toLowerCase().replace(/-/g, "_");
|
|
727
|
-
n.id = `${l}_${Math.random().toString().slice(2, 6)}`;
|
|
728
|
-
}
|
|
729
|
-
return n;
|
|
730
|
-
}
|
|
731
|
-
return {
|
|
732
|
-
type: b
|
|
733
|
-
};
|
|
734
|
-
}
|
|
735
|
-
function k(s, c = {}, b) {
|
|
736
|
-
const i = e[s];
|
|
737
|
-
if (i) {
|
|
738
|
-
let n = g(i);
|
|
739
|
-
const l = t[s];
|
|
740
|
-
return n = l ? l({ getSchemaByType: k }, n, c, b) : n, o != null && o.appendIdentifyForNewControl && o.appendIdentifyForNewControl(n), n;
|
|
741
|
-
}
|
|
742
|
-
return null;
|
|
743
|
-
}
|
|
744
|
-
function T(s, c) {
|
|
745
|
-
const b = r(c);
|
|
746
|
-
return Object.keys(b).reduce((i, n) => (Object.prototype.hasOwnProperty.call(s, n) && (i[n] && Y(i[n]) && Y(s[n] || !s[n]) ? Object.assign(i[n], s[n] || {}) : i[n] = s[n]), i), b), b;
|
|
747
|
-
}
|
|
748
|
-
function m(s, c) {
|
|
749
|
-
return Object.keys(s).filter((i) => s[i] != null).reduce((i, n) => {
|
|
750
|
-
if (c.has(n)) {
|
|
751
|
-
const l = c.get(n);
|
|
752
|
-
if (typeof l == "string")
|
|
753
|
-
i[l] = s[n];
|
|
754
|
-
else {
|
|
755
|
-
const u = l(n, s[n], s);
|
|
756
|
-
Object.assign(i, u);
|
|
757
|
-
}
|
|
758
|
-
} else
|
|
759
|
-
i[n] = s[n];
|
|
760
|
-
return i;
|
|
761
|
-
}, {});
|
|
762
|
-
}
|
|
763
|
-
function x(s, c, b = /* @__PURE__ */ new Map()) {
|
|
764
|
-
const i = T(s, c);
|
|
765
|
-
return m(i, b);
|
|
766
|
-
}
|
|
767
|
-
function f(s) {
|
|
768
|
-
var b;
|
|
769
|
-
const c = s.type;
|
|
770
|
-
if (c) {
|
|
771
|
-
const i = e[c];
|
|
772
|
-
if (!i)
|
|
773
|
-
return s;
|
|
774
|
-
const n = T(s, i), l = ((b = s.editor) == null ? void 0 : b.type) || "";
|
|
775
|
-
if (l) {
|
|
776
|
-
const u = e[l], h = T(s.editor, u);
|
|
777
|
-
n.editor = h;
|
|
778
|
-
}
|
|
779
|
-
return n;
|
|
780
|
-
}
|
|
781
|
-
return s;
|
|
782
|
-
}
|
|
783
|
-
function v(s) {
|
|
784
|
-
o = s;
|
|
785
|
-
}
|
|
786
|
-
return { getSchemaByType: k, resolveSchemaWithDefaultValue: f, resolveSchemaToProps: x, mappingSchemaToProps: m, setDesignerContext: v };
|
|
787
|
-
}
|
|
788
|
-
const de = {}, fe = {}, { resolveSchemaWithDefaultValue: St } = ue(de, fe), pe = {}, me = {};
|
|
789
|
-
ce(pe, me, St);
|
|
790
|
-
const be = {}, ge = {}, { resolveSchemaWithDefaultValue: xt, resolveSchemaToProps: Ft, mappingSchemaToProps: Pt } = ue(be, ge), ve = {}, ye = {};
|
|
791
|
-
ce(ve, ye, xt);
|
|
792
|
-
function $t(e, t, o = /* @__PURE__ */ new Map(), r = (T, m, x, f) => m, g = {}, k = (T) => T) {
|
|
793
|
-
return be[t.title] = t, ge[t.title] = r, ve[t.title] = g, ye[t.title] = k, de[t.title] = t, fe[t.title] = r, pe[t.title] = g, me[t.title] = k, (T = {}, m = !0) => {
|
|
794
|
-
if (!m)
|
|
795
|
-
return Pt(T, o);
|
|
796
|
-
const x = Ft(T, t, o), f = Object.keys(e).reduce((v, s) => (v[s] = e[s].default, v), {});
|
|
792
|
+
const me = {}, be = {};
|
|
793
|
+
pe(me, be, et);
|
|
794
|
+
const ge = {}, ve = {}, { resolveSchemaWithDefaultValue: Pt } = ue(ge, ve), ye = {}, he = {};
|
|
795
|
+
pe(ye, he, Pt);
|
|
796
|
+
function $t(e, t, r = /* @__PURE__ */ new Map(), o = (C, b, x, f) => b, g = {}, k = (C) => C) {
|
|
797
|
+
return de[t.title] = t, fe[t.title] = o, me[t.title] = g, be[t.title] = k, ge[t.title] = t, ve[t.title] = o, ye[t.title] = g, he[t.title] = k, (C = {}, b = !0) => {
|
|
798
|
+
if (!b)
|
|
799
|
+
return rt(C, r);
|
|
800
|
+
const x = tt(C, t, r), f = Object.keys(e).reduce((y, a) => (y[a] = e[a].default, y), {});
|
|
797
801
|
return Object.assign(f, x);
|
|
798
802
|
};
|
|
799
803
|
}
|
|
800
804
|
function Rt(e, t) {
|
|
801
805
|
if (!e || e.length < 1)
|
|
802
806
|
return null;
|
|
803
|
-
for (const
|
|
804
|
-
if (
|
|
805
|
-
return
|
|
806
|
-
if (
|
|
807
|
-
const
|
|
808
|
-
if (
|
|
809
|
-
return
|
|
807
|
+
for (const r of e) {
|
|
808
|
+
if (r.id === t)
|
|
809
|
+
return r;
|
|
810
|
+
if (r.children) {
|
|
811
|
+
const o = r.children.find((g) => g.id === t);
|
|
812
|
+
if (o)
|
|
813
|
+
return o;
|
|
810
814
|
}
|
|
811
815
|
}
|
|
812
816
|
return null;
|
|
813
817
|
}
|
|
814
818
|
function Dt() {
|
|
815
|
-
function e(t,
|
|
816
|
-
const { footerToolbar:
|
|
819
|
+
function e(t, r) {
|
|
820
|
+
const { footerToolbar: o, headerToolbar: g } = t, k = ((o == null ? void 0 : o.buttons) || []).concat((g == null ? void 0 : g.buttons) || []);
|
|
817
821
|
if (!k || k.length < 1)
|
|
818
822
|
return null;
|
|
819
|
-
const [
|
|
823
|
+
const [C, b] = r.payloads, x = Rt(k, b);
|
|
820
824
|
return x ? x.onClick || x.click : null;
|
|
821
825
|
}
|
|
822
826
|
return {
|
|
@@ -877,207 +881,212 @@ const Q = {
|
|
|
877
881
|
customClass: { type: String, default: "" },
|
|
878
882
|
customStyle: { type: String, default: "" }
|
|
879
883
|
};
|
|
880
|
-
$t(Q,
|
|
881
|
-
const
|
|
882
|
-
function
|
|
884
|
+
$t(Q, se, ae, le);
|
|
885
|
+
const Et = Dt();
|
|
886
|
+
function Mt() {
|
|
883
887
|
return { drawerLocale: {
|
|
884
888
|
cancel: ee.getLocaleValue("drawer.cancel") || "取消",
|
|
885
889
|
confirm: ee.getLocaleValue("drawer.confirm") || "确定"
|
|
886
890
|
} };
|
|
887
891
|
}
|
|
888
|
-
const jt = /* @__PURE__ */
|
|
892
|
+
const jt = /* @__PURE__ */ re({
|
|
889
893
|
name: "FDrawer",
|
|
890
894
|
props: Q,
|
|
891
895
|
emits: ["afterClose", "update:modelValue", "click"],
|
|
892
896
|
setup(e, t) {
|
|
893
|
-
|
|
894
|
-
const
|
|
897
|
+
Mt();
|
|
898
|
+
const r = E(e.modelValue), o = E(e.buttons), g = E(!1), k = D(() => ({
|
|
895
899
|
"f-utils-absolute-all f-drawer": !0,
|
|
896
900
|
// 在某个DOM内部打开抽屉
|
|
897
901
|
"f-drawer-inline": typeof e.host == "string" ? e.host !== "body" : document.querySelector(e.host) !== document.body
|
|
898
|
-
})),
|
|
902
|
+
})), C = D(() => ({
|
|
899
903
|
opacity: e.transparent ? 0 : 1
|
|
900
|
-
})),
|
|
901
|
-
const
|
|
902
|
-
return e.maskClass && e.maskClass.split(" ").forEach((
|
|
903
|
-
|
|
904
|
+
})), b = D(() => {
|
|
905
|
+
const l = {};
|
|
906
|
+
return e.maskClass && e.maskClass.split(" ").forEach((c) => {
|
|
907
|
+
l[c] = !0;
|
|
904
908
|
}), {
|
|
905
909
|
"f-drawer-mask f-utils-absolute-all": !0,
|
|
906
|
-
...
|
|
910
|
+
...l
|
|
907
911
|
};
|
|
908
|
-
}),
|
|
909
|
-
const
|
|
910
|
-
return e.customClass && e.customClass.split(" ").forEach((
|
|
911
|
-
|
|
912
|
+
}), x = D(() => {
|
|
913
|
+
const l = {};
|
|
914
|
+
return e.customClass && e.customClass.split(" ").forEach((c) => {
|
|
915
|
+
l[c] = !0;
|
|
912
916
|
}), {
|
|
913
917
|
"f-drawer-wrapper": !0,
|
|
914
918
|
[`f-drawer-wrapper-${e.position}`]: !0,
|
|
915
|
-
...
|
|
919
|
+
...l
|
|
916
920
|
};
|
|
917
|
-
}), x = D(() => {
|
|
918
|
-
const a = e.width;
|
|
919
|
-
return typeof a == "string" ? a : typeof a == "number" ? `${a}px` : "20%";
|
|
920
921
|
}), f = D(() => {
|
|
921
|
-
const
|
|
922
|
-
return typeof
|
|
923
|
-
}),
|
|
924
|
-
|
|
922
|
+
const l = e.width;
|
|
923
|
+
return typeof l == "string" ? l : typeof l == "number" ? `${l}px` : "20%";
|
|
924
|
+
}), y = D(() => {
|
|
925
|
+
const l = e.height;
|
|
926
|
+
return typeof l == "string" ? l : typeof l == "number" ? `${l}px` : "20%";
|
|
927
|
+
}), a = D(() => {
|
|
928
|
+
let l = "-6px 0";
|
|
925
929
|
switch (e.position) {
|
|
926
930
|
case "left":
|
|
927
|
-
|
|
931
|
+
l = "6px 0";
|
|
928
932
|
break;
|
|
929
933
|
case "right":
|
|
930
|
-
|
|
934
|
+
l = "-6px 0";
|
|
931
935
|
break;
|
|
932
936
|
case "top":
|
|
933
|
-
|
|
937
|
+
l = "0 6px";
|
|
934
938
|
break;
|
|
935
939
|
case "bottom":
|
|
936
|
-
|
|
940
|
+
l = "0 -6px";
|
|
937
941
|
break;
|
|
938
942
|
}
|
|
939
|
-
const
|
|
940
|
-
width:
|
|
941
|
-
height:
|
|
943
|
+
const c = {
|
|
944
|
+
width: f.value,
|
|
945
|
+
height: y.value,
|
|
942
946
|
backgroundColor: e.backgroundColor,
|
|
943
947
|
maxWidth: "100%"
|
|
944
948
|
};
|
|
945
|
-
return e.transparent && (
|
|
946
|
-
}),
|
|
949
|
+
return e.transparent && (c.boxShadow = `${l} 8px 0 rgba(31, 35, 41, .1)`), xe(c, e == null ? void 0 : e.customStyle);
|
|
950
|
+
}), u = D(() => `f-drawer-${e.position}`), v = (l) => {
|
|
947
951
|
Promise.resolve().then(() => {
|
|
948
|
-
var
|
|
949
|
-
return (
|
|
950
|
-
}).then((
|
|
951
|
-
|
|
952
|
+
var c;
|
|
953
|
+
return (c = e.beforeClose) == null ? void 0 : c.call(e);
|
|
954
|
+
}).then((c) => {
|
|
955
|
+
c && (r.value = !1, t.emit("update:modelValue", r.value), t.emit("afterClose"));
|
|
952
956
|
});
|
|
953
957
|
};
|
|
954
|
-
_(() => e.modelValue, (
|
|
955
|
-
|
|
958
|
+
_(() => e.modelValue, (l, c) => {
|
|
959
|
+
l !== c && (r.value = l);
|
|
956
960
|
});
|
|
957
|
-
const
|
|
958
|
-
t.emit("click",
|
|
959
|
-
},
|
|
961
|
+
const i = (l, c) => {
|
|
962
|
+
t.emit("click", l, c);
|
|
963
|
+
}, n = {
|
|
960
964
|
close: () => {
|
|
961
|
-
|
|
965
|
+
r.value = !1;
|
|
962
966
|
}
|
|
963
967
|
};
|
|
964
|
-
async function
|
|
965
|
-
|
|
968
|
+
async function s(l, c) {
|
|
969
|
+
l.handle && await l.handle(c, n) && t.emit("closed", c);
|
|
966
970
|
}
|
|
967
|
-
const
|
|
968
|
-
class:
|
|
971
|
+
const d = (l, c) => p(je, {
|
|
972
|
+
class: c,
|
|
969
973
|
alignment: "right",
|
|
970
|
-
items:
|
|
971
|
-
onClick:
|
|
974
|
+
items: l,
|
|
975
|
+
onClick: i
|
|
972
976
|
}, null);
|
|
973
|
-
function
|
|
974
|
-
var
|
|
975
|
-
if ((
|
|
976
|
-
const
|
|
977
|
+
function h() {
|
|
978
|
+
var l, c, m, O;
|
|
979
|
+
if ((c = (l = e.footerToolbar) == null ? void 0 : l.buttons) != null && c.length && (e.footerToolbar.visible === void 0 || e.footerToolbar.visible)) {
|
|
980
|
+
const F = {
|
|
977
981
|
"f-utils-fill": !0
|
|
978
982
|
};
|
|
979
|
-
return (
|
|
983
|
+
return (O = (m = e.footerToolbar) == null ? void 0 : m.appearance) != null && O.class && (F[e.footerToolbar.appearance.class] = !0), d(e.footerToolbar.buttons, F);
|
|
980
984
|
}
|
|
981
|
-
return
|
|
982
|
-
const B =
|
|
985
|
+
return o.value && !!o.value.length && o.value.map((F) => {
|
|
986
|
+
const B = E(F.disabled);
|
|
983
987
|
return p("button", {
|
|
984
|
-
id:
|
|
988
|
+
id: F.id,
|
|
985
989
|
type: "button",
|
|
986
990
|
disabled: B.value,
|
|
987
|
-
class:
|
|
988
|
-
onClick: (
|
|
989
|
-
|
|
991
|
+
class: F.class + (F.iconClass ? " btn-icontext" : ""),
|
|
992
|
+
onClick: (j) => {
|
|
993
|
+
s(F, j);
|
|
990
994
|
}
|
|
991
|
-
}, [!!
|
|
992
|
-
class:
|
|
993
|
-
}, null),
|
|
995
|
+
}, [!!F.iconClass && p("i", {
|
|
996
|
+
class: F.iconClass
|
|
997
|
+
}, null), F.text]);
|
|
994
998
|
});
|
|
995
999
|
}
|
|
996
|
-
function h() {
|
|
997
|
-
return e.footerTemplate && typeof e.footerTemplate == "function" ? e.footerTemplate() : t.slots.footerTemplate ? t.slots.footerTemplate() : u();
|
|
998
|
-
}
|
|
999
1000
|
function S() {
|
|
1000
|
-
|
|
1001
|
-
|
|
1001
|
+
return e.footerTemplate && typeof e.footerTemplate == "function" ? e.footerTemplate() : t.slots.footerTemplate ? t.slots.footerTemplate() : h();
|
|
1002
|
+
}
|
|
1003
|
+
function R() {
|
|
1004
|
+
var c, m;
|
|
1005
|
+
const l = {
|
|
1002
1006
|
"f-utils-fill": !0
|
|
1003
1007
|
};
|
|
1004
|
-
return (
|
|
1008
|
+
return (m = (c = e.headerToolbar) == null ? void 0 : c.appearance) != null && m.class && (l[e.headerToolbar.appearance.class] = !0), e.headerTemplate && typeof e.headerTemplate == "function" ? e.headerTemplate() : t.slots.headerTemplate ? t.slots.headerTemplate() : p(ne, null, [p("div", {
|
|
1005
1009
|
class: "f-drawer-title",
|
|
1006
1010
|
title: e.title
|
|
1007
1011
|
}, [e.title]), e.headerToolbar && (e.headerToolbar.visible === void 0 || e.headerToolbar.visible) && p("div", {
|
|
1008
1012
|
class: "f-utils-fill-flex-row mx-2 col-7"
|
|
1009
|
-
}, [
|
|
1013
|
+
}, [d(e.headerToolbar.buttons || [], l)]), e.showClose && p("div", {
|
|
1010
1014
|
class: "f-drawer-close"
|
|
1011
1015
|
}, [p("span", {
|
|
1012
1016
|
class: "f-icon f-icon-close",
|
|
1013
|
-
onClick: W((
|
|
1014
|
-
|
|
1017
|
+
onClick: W((O) => {
|
|
1018
|
+
v();
|
|
1015
1019
|
}, ["stop"])
|
|
1016
1020
|
}, null)])]);
|
|
1017
1021
|
}
|
|
1018
|
-
const
|
|
1019
|
-
function
|
|
1020
|
-
const
|
|
1021
|
-
|
|
1022
|
-
zIndex:
|
|
1022
|
+
const P = E({});
|
|
1023
|
+
function T() {
|
|
1024
|
+
const l = Fe();
|
|
1025
|
+
P.value = {
|
|
1026
|
+
zIndex: l < 1e3 ? 1e3 : l
|
|
1023
1027
|
};
|
|
1024
1028
|
}
|
|
1025
|
-
|
|
1026
|
-
|
|
1029
|
+
function M() {
|
|
1030
|
+
return g.value ? !0 : typeof e.host == "string" ? e.host === "body" ? !0 : !!document.querySelector(e.host) : !!e.host;
|
|
1031
|
+
}
|
|
1032
|
+
return g.value = M(), oe(() => {
|
|
1033
|
+
g.value = M();
|
|
1034
|
+
}), $e(() => {
|
|
1035
|
+
r.value && T();
|
|
1027
1036
|
}), t.expose({
|
|
1028
1037
|
open: () => {
|
|
1029
|
-
|
|
1038
|
+
r.value = !0;
|
|
1030
1039
|
},
|
|
1031
1040
|
close: () => {
|
|
1032
|
-
|
|
1041
|
+
v();
|
|
1033
1042
|
}
|
|
1034
|
-
}), () => p(
|
|
1043
|
+
}), () => g.value ? p(Re, {
|
|
1035
1044
|
to: e.host
|
|
1036
1045
|
}, {
|
|
1037
1046
|
default: () => [p("div", {
|
|
1038
|
-
class:
|
|
1047
|
+
class: k.value,
|
|
1039
1048
|
id: e.id,
|
|
1040
|
-
style:
|
|
1049
|
+
style: P.value
|
|
1041
1050
|
}, [p(Z, {
|
|
1042
1051
|
name: "f-drawer-mask",
|
|
1043
1052
|
appear: !0
|
|
1044
1053
|
}, {
|
|
1045
|
-
default: () => [
|
|
1046
|
-
class:
|
|
1047
|
-
style:
|
|
1048
|
-
onClick: W((
|
|
1049
|
-
e.allowClickMaskToClose &&
|
|
1054
|
+
default: () => [r.value && p("div", {
|
|
1055
|
+
class: b.value,
|
|
1056
|
+
style: C.value,
|
|
1057
|
+
onClick: W((l) => {
|
|
1058
|
+
e.allowClickMaskToClose && v();
|
|
1050
1059
|
}, ["stop"])
|
|
1051
1060
|
}, null)]
|
|
1052
1061
|
}), p(Z, {
|
|
1053
|
-
name:
|
|
1062
|
+
name: u.value
|
|
1054
1063
|
}, {
|
|
1055
1064
|
default: () => {
|
|
1056
|
-
var
|
|
1057
|
-
return [
|
|
1058
|
-
class:
|
|
1059
|
-
style:
|
|
1065
|
+
var l, c;
|
|
1066
|
+
return [De(p("div", {
|
|
1067
|
+
class: x.value,
|
|
1068
|
+
style: a.value
|
|
1060
1069
|
}, [p("div", {
|
|
1061
1070
|
class: "f-drawer-container"
|
|
1062
1071
|
}, [e.showHeader && p("div", {
|
|
1063
1072
|
class: "f-drawer-header align-items-center"
|
|
1064
|
-
}, [
|
|
1073
|
+
}, [R()]), p("div", {
|
|
1065
1074
|
class: "f-drawer-body f-utils-fill",
|
|
1066
1075
|
style: "overflow: auto;"
|
|
1067
|
-
}, [(
|
|
1076
|
+
}, [(c = (l = t.slots).default) == null ? void 0 : c.call(l)]), e.showFooter && p("div", {
|
|
1068
1077
|
class: "f-drawer-footer px-2",
|
|
1069
1078
|
style: {
|
|
1070
1079
|
height: e.footerHeight + "px"
|
|
1071
1080
|
}
|
|
1072
|
-
}, [
|
|
1081
|
+
}, [S()])])]), [[Ee, r.value]])];
|
|
1073
1082
|
}
|
|
1074
1083
|
})])]
|
|
1075
|
-
});
|
|
1084
|
+
}) : null;
|
|
1076
1085
|
}
|
|
1077
1086
|
});
|
|
1078
|
-
class Ot extends
|
|
1079
|
-
constructor(t,
|
|
1080
|
-
super(t,
|
|
1087
|
+
class Ot extends _e {
|
|
1088
|
+
constructor(t, r) {
|
|
1089
|
+
super(t, r);
|
|
1081
1090
|
}
|
|
1082
1091
|
getPropertyConfig(t) {
|
|
1083
1092
|
return this.propertyConfig.categories.basic = this.getBasicPropConfig(t), this.propertyConfig.categories.appearance = this.getAppearanceConfig(t), this.getBehaviorConfig(), this.propertyConfig.categories.header = this.headerPropertyConfig(t), this.propertyConfig.categories.footer = this.footerPropertyConfig(t), this.propertyConfig.categories.eventsEditor = this.eventPropertyConfig(t), this.propertyConfig;
|
|
@@ -1123,11 +1132,11 @@ class Ot extends ze {
|
|
|
1123
1132
|
visible: t.showHeader !== !1 && t.customHeader === !0
|
|
1124
1133
|
}
|
|
1125
1134
|
},
|
|
1126
|
-
setPropertyRelates: (
|
|
1127
|
-
if (
|
|
1128
|
-
switch (
|
|
1135
|
+
setPropertyRelates: (r, o) => {
|
|
1136
|
+
if (r)
|
|
1137
|
+
switch (r && r.propertyID) {
|
|
1129
1138
|
case "title": {
|
|
1130
|
-
|
|
1139
|
+
r.needRefreshControlTree = !0;
|
|
1131
1140
|
break;
|
|
1132
1141
|
}
|
|
1133
1142
|
}
|
|
@@ -1185,15 +1194,15 @@ class Ot extends ze {
|
|
|
1185
1194
|
visible: t.footerContentType === "html" && t.showFooter !== !1
|
|
1186
1195
|
}
|
|
1187
1196
|
},
|
|
1188
|
-
setPropertyRelates: (
|
|
1189
|
-
if (
|
|
1190
|
-
switch (
|
|
1197
|
+
setPropertyRelates: (r, o) => {
|
|
1198
|
+
if (r)
|
|
1199
|
+
switch (r && r.propertyID) {
|
|
1191
1200
|
case "showFooter": {
|
|
1192
|
-
|
|
1201
|
+
o.footerToolbar = { id: o.id + "_footer-toolbar", type: "drawer-toolbar", buttons: [] }, o.footerTemplate = "", o.footerContentType = "toolbar";
|
|
1193
1202
|
break;
|
|
1194
1203
|
}
|
|
1195
1204
|
case "footerContentType": {
|
|
1196
|
-
this.resetFooterContent(
|
|
1205
|
+
this.resetFooterContent(o, r.propertyValue);
|
|
1197
1206
|
break;
|
|
1198
1207
|
}
|
|
1199
1208
|
}
|
|
@@ -1246,8 +1255,8 @@ class Ot extends ze {
|
|
|
1246
1255
|
}
|
|
1247
1256
|
};
|
|
1248
1257
|
}
|
|
1249
|
-
resetFooterContent(t,
|
|
1250
|
-
switch (
|
|
1258
|
+
resetFooterContent(t, r = "toolbar") {
|
|
1259
|
+
switch (r) {
|
|
1251
1260
|
case "toolbar": {
|
|
1252
1261
|
t.footerTemplate = "";
|
|
1253
1262
|
break;
|
|
@@ -1259,109 +1268,109 @@ class Ot extends ze {
|
|
|
1259
1268
|
}
|
|
1260
1269
|
}
|
|
1261
1270
|
eventPropertyConfig(t) {
|
|
1262
|
-
const
|
|
1271
|
+
const r = this, o = [
|
|
1263
1272
|
{
|
|
1264
1273
|
label: "beforeClose",
|
|
1265
1274
|
name: "关闭前事件"
|
|
1266
1275
|
}
|
|
1267
|
-
], g =
|
|
1276
|
+
], g = r.eventsEditorUtils.formProperties(t, r.viewModelId, o);
|
|
1268
1277
|
return {
|
|
1269
1278
|
title: "事件",
|
|
1270
1279
|
hideTitle: !0,
|
|
1271
|
-
properties:
|
|
1280
|
+
properties: r.createBaseEventProperty(g),
|
|
1272
1281
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
1273
1282
|
refreshPanelAfterChanged: !0,
|
|
1274
1283
|
tabId: "commands",
|
|
1275
1284
|
tabName: "交互",
|
|
1276
|
-
setPropertyRelates(
|
|
1277
|
-
const x =
|
|
1278
|
-
delete
|
|
1279
|
-
const f =
|
|
1280
|
-
f &&
|
|
1285
|
+
setPropertyRelates(C, b) {
|
|
1286
|
+
const x = C.propertyValue;
|
|
1287
|
+
delete b[r.viewModelId], x && r.eventsEditorUtils.saveRelatedParameters(b, r.viewModelId, x.events, x);
|
|
1288
|
+
const f = r.designViewModelUtils.getDgViewModel(r.viewModelId);
|
|
1289
|
+
f && r.designViewModelField && f.changeField(r.designViewModelField.id, { valueChanging: b.fieldValueChanging, valueChanged: b.fieldValueChanged });
|
|
1281
1290
|
}
|
|
1282
1291
|
};
|
|
1283
1292
|
}
|
|
1284
1293
|
}
|
|
1285
|
-
function It(e, t,
|
|
1286
|
-
const
|
|
1294
|
+
function It(e, t, r) {
|
|
1295
|
+
const o = new Ie();
|
|
1287
1296
|
function g(n) {
|
|
1288
|
-
if (!He().basalDragulaRuleForContainer(n,
|
|
1297
|
+
if (!He().basalDragulaRuleForContainer(n, r))
|
|
1289
1298
|
return !1;
|
|
1290
|
-
const { canAccept:
|
|
1291
|
-
return
|
|
1299
|
+
const { canAccept: d } = o.getTemplateRule(e, r);
|
|
1300
|
+
return d;
|
|
1292
1301
|
}
|
|
1293
1302
|
function k() {
|
|
1294
1303
|
return !1;
|
|
1295
1304
|
}
|
|
1296
|
-
function
|
|
1305
|
+
function C() {
|
|
1297
1306
|
return !1;
|
|
1298
1307
|
}
|
|
1299
|
-
function
|
|
1308
|
+
function b() {
|
|
1300
1309
|
return !0;
|
|
1301
1310
|
}
|
|
1302
1311
|
function x() {
|
|
1303
1312
|
return "position: initial !important;border: none !important;left: 0;right: 0;padding: 0;";
|
|
1304
1313
|
}
|
|
1305
1314
|
function f(n) {
|
|
1306
|
-
const
|
|
1307
|
-
return
|
|
1315
|
+
const s = new Ot(n, r), { schema: d } = e;
|
|
1316
|
+
return s.getPropertyConfig(d);
|
|
1308
1317
|
}
|
|
1309
|
-
function
|
|
1318
|
+
function y(n) {
|
|
1310
1319
|
return t;
|
|
1311
1320
|
}
|
|
1312
|
-
function
|
|
1321
|
+
function a() {
|
|
1313
1322
|
e.designerItemElementRef.value && Me(() => {
|
|
1314
1323
|
Ne(t.value);
|
|
1315
1324
|
});
|
|
1316
1325
|
}
|
|
1317
|
-
function
|
|
1326
|
+
function u(n) {
|
|
1318
1327
|
if (!n)
|
|
1319
1328
|
return;
|
|
1320
|
-
const { changeObject:
|
|
1321
|
-
|
|
1329
|
+
const { changeObject: s } = n;
|
|
1330
|
+
s && ["width", "position"].includes(s.propertyID) && a();
|
|
1322
1331
|
}
|
|
1323
|
-
function
|
|
1332
|
+
function v(n, s, d) {
|
|
1324
1333
|
var h;
|
|
1325
1334
|
(h = n == null ? void 0 : n.buttons) != null && h.length && n.buttons.map((S) => {
|
|
1326
|
-
var
|
|
1327
|
-
|
|
1335
|
+
var R;
|
|
1336
|
+
d.set(S.id, {
|
|
1328
1337
|
componentTitle: S.text,
|
|
1329
|
-
parentPathName: `${
|
|
1330
|
-
}), (
|
|
1331
|
-
|
|
1332
|
-
componentTitle:
|
|
1333
|
-
parentPathName: `${
|
|
1338
|
+
parentPathName: `${s} > ${S.text}`
|
|
1339
|
+
}), (R = S.children) != null && R.length && S.children.map((P) => {
|
|
1340
|
+
d.set(P.id, {
|
|
1341
|
+
componentTitle: P.text,
|
|
1342
|
+
parentPathName: `${s} > ${P.text}`
|
|
1334
1343
|
});
|
|
1335
1344
|
});
|
|
1336
1345
|
});
|
|
1337
1346
|
}
|
|
1338
1347
|
function i() {
|
|
1339
|
-
if (e &&
|
|
1340
|
-
const { formSchemaUtils: n } =
|
|
1341
|
-
|
|
1348
|
+
if (e && r) {
|
|
1349
|
+
const { formSchemaUtils: n } = r, s = n.getControlBasicInfoMap(), { schema: d } = e, h = d.title || Be.drawer.name;
|
|
1350
|
+
s.set(d.id, {
|
|
1342
1351
|
componentTitle: h,
|
|
1343
1352
|
parentPathName: h
|
|
1344
|
-
}),
|
|
1353
|
+
}), v(d.headerToolbar, h, s), v(d.footerToolbar, h, s);
|
|
1345
1354
|
}
|
|
1346
1355
|
}
|
|
1347
1356
|
return {
|
|
1348
1357
|
canAccepts: g,
|
|
1349
1358
|
checkCanDeleteComponent: k,
|
|
1350
|
-
checkCanMoveComponent:
|
|
1351
|
-
hideNestedPaddingInDesginerView:
|
|
1359
|
+
checkCanMoveComponent: C,
|
|
1360
|
+
hideNestedPaddingInDesginerView: b,
|
|
1352
1361
|
getStyles: x,
|
|
1353
1362
|
getPropsConfig: f,
|
|
1354
|
-
getDraggableDesignItemElement:
|
|
1355
|
-
onPropertyChanged:
|
|
1363
|
+
getDraggableDesignItemElement: y,
|
|
1364
|
+
onPropertyChanged: u,
|
|
1356
1365
|
setComponentBasicInfoMap: i
|
|
1357
1366
|
};
|
|
1358
1367
|
}
|
|
1359
|
-
const
|
|
1368
|
+
const we = Object.assign({}, Q, {
|
|
1360
1369
|
componentId: { type: String, default: "" },
|
|
1361
1370
|
footerContentType: { type: String, default: "toolbar" },
|
|
1362
1371
|
customHeader: { type: Boolean, default: !1 },
|
|
1363
1372
|
showWrapperInCanvas: { type: Boolean, default: !1 }
|
|
1364
|
-
}), Bt = "https://json-schema.org/draft/2020-12/schema", Ht = "https://farris-design.gitee.io/section-toolbar-item.schema.json", Nt = "drawer-toolbar-item", At = "A Farris Toolbar Item Component", Lt = "object",
|
|
1373
|
+
}), Bt = "https://json-schema.org/draft/2020-12/schema", Ht = "https://farris-design.gitee.io/section-toolbar-item.schema.json", Nt = "drawer-toolbar-item", At = "A Farris Toolbar Item Component", Lt = "object", qt = {
|
|
1365
1374
|
id: {
|
|
1366
1375
|
description: "The unique identifier for a Response Toolbar",
|
|
1367
1376
|
type: "string"
|
|
@@ -1429,7 +1438,7 @@ const he = Object.assign({}, Q, {
|
|
|
1429
1438
|
type: "boolean",
|
|
1430
1439
|
default: !1
|
|
1431
1440
|
}
|
|
1432
|
-
},
|
|
1441
|
+
}, Vt = [
|
|
1433
1442
|
"id",
|
|
1434
1443
|
"type",
|
|
1435
1444
|
"text"
|
|
@@ -1441,8 +1450,8 @@ const he = Object.assign({}, Q, {
|
|
|
1441
1450
|
title: Nt,
|
|
1442
1451
|
description: At,
|
|
1443
1452
|
type: Lt,
|
|
1444
|
-
properties:
|
|
1445
|
-
required:
|
|
1453
|
+
properties: qt,
|
|
1454
|
+
required: Vt,
|
|
1446
1455
|
events: zt
|
|
1447
1456
|
}, Wt = "https://json-schema.org/draft/2020-12/schema", Ut = "https://farris-design.gitee.io/section-toolbar.schema.json", Gt = "drawer-toolbar", Zt = "A Farris Toolbar Component", Jt = "object", Qt = {
|
|
1448
1457
|
id: {
|
|
@@ -1498,131 +1507,131 @@ const he = Object.assign({}, Q, {
|
|
|
1498
1507
|
properties: Qt,
|
|
1499
1508
|
required: Xt,
|
|
1500
1509
|
events: Yt
|
|
1501
|
-
},
|
|
1510
|
+
}, er = Object.assign({}, Ve), tr = J(er, _t, void 0, ce), rr = Object.assign({}, Oe, {
|
|
1502
1511
|
componentId: { type: String, default: "" }
|
|
1503
1512
|
}), z = J(
|
|
1504
|
-
|
|
1513
|
+
rr,
|
|
1505
1514
|
Kt,
|
|
1506
1515
|
We,
|
|
1507
|
-
|
|
1508
|
-
), U = /* @__PURE__ */
|
|
1516
|
+
ce
|
|
1517
|
+
), U = /* @__PURE__ */ re({
|
|
1509
1518
|
name: "FDrawerDesign",
|
|
1510
|
-
props:
|
|
1519
|
+
props: we,
|
|
1511
1520
|
setup(e, t) {
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1521
|
+
const r = E(), o = E(), g = e.id + "_footer-toolbar", k = e.id + "_header-toolbar", C = G("designer-host-service"), b = G("design-item-context"), x = It(b, o, C), f = Ae(r, b, x);
|
|
1522
|
+
b.schema.footerToolbar = b.schema.footerToolbar || {
|
|
1514
1523
|
id: g,
|
|
1515
1524
|
type: "drawer-toolbar",
|
|
1516
1525
|
buttons: []
|
|
1517
1526
|
};
|
|
1518
|
-
const
|
|
1519
|
-
_(() =>
|
|
1520
|
-
|
|
1527
|
+
const y = E(b.schema.footerToolbar), a = E(z(y.value));
|
|
1528
|
+
_(() => b.schema.footerToolbar, () => {
|
|
1529
|
+
y.value = b.schema.footerToolbar, a.value = z(y.value);
|
|
1521
1530
|
}, {
|
|
1522
1531
|
deep: !0
|
|
1523
1532
|
});
|
|
1524
|
-
const
|
|
1525
|
-
|
|
1533
|
+
const u = G("design-item-context"), v = D(() => [...a.value.items]);
|
|
1534
|
+
b.schema.headerToolbar = b.schema.headerToolbar || {
|
|
1526
1535
|
id: k,
|
|
1527
1536
|
type: "drawer-toolbar",
|
|
1528
1537
|
buttons: []
|
|
1529
1538
|
};
|
|
1530
|
-
const i =
|
|
1531
|
-
_(() =>
|
|
1532
|
-
i.value =
|
|
1539
|
+
const i = E(b.schema.headerToolbar), n = E(z(i.value));
|
|
1540
|
+
_(() => b.schema.headerToolbar, () => {
|
|
1541
|
+
i.value = b.schema.headerToolbar, n.value = z(i.value);
|
|
1533
1542
|
}, {
|
|
1534
1543
|
deep: !0
|
|
1535
1544
|
});
|
|
1536
|
-
const
|
|
1537
|
-
|
|
1538
|
-
|
|
1545
|
+
const s = D(() => [...n.value.items]);
|
|
1546
|
+
oe(() => {
|
|
1547
|
+
r.value.componentInstance = f;
|
|
1539
1548
|
}), t.expose(f.value);
|
|
1540
|
-
const
|
|
1549
|
+
const d = E(e.modelValue || b.schema.showWrapperInCanvas);
|
|
1541
1550
|
_(() => e.modelValue, () => {
|
|
1542
|
-
|
|
1551
|
+
d.value = e.modelValue;
|
|
1543
1552
|
});
|
|
1544
1553
|
const h = D(() => {
|
|
1545
|
-
const
|
|
1546
|
-
return
|
|
1554
|
+
const w = ["f-drawer-wrapper", `f-drawer-wrapper-${e.position}`, e.wrapperClass];
|
|
1555
|
+
return d.value || w.push("d-none"), w;
|
|
1547
1556
|
}), S = D(() => {
|
|
1548
|
-
const
|
|
1557
|
+
const w = e.width, $ = e.height, H = typeof w == "string" ? w : typeof w == "number" ? `${w}px` : "20%", I = typeof $ == "string" ? $ : typeof $ == "number" ? `${$}px` : "20%";
|
|
1549
1558
|
return {
|
|
1550
|
-
width:
|
|
1551
|
-
height:
|
|
1559
|
+
width: H,
|
|
1560
|
+
height: I,
|
|
1552
1561
|
backgroundColor: e.backgroundColor,
|
|
1553
1562
|
maxWidth: "100%"
|
|
1554
1563
|
};
|
|
1555
|
-
}),
|
|
1564
|
+
}), R = D(() => ["f-drawer-entry", `f-drawer-entry-${e.position}`, e.entryClass]), P = D(() => `f-icon-arrow-chevron-${{
|
|
1556
1565
|
left: "right",
|
|
1557
1566
|
right: "left",
|
|
1558
1567
|
top: "down",
|
|
1559
1568
|
bottom: "up"
|
|
1560
|
-
}[e.position] ?? "right"}`),
|
|
1561
|
-
|
|
1562
|
-
},
|
|
1563
|
-
|
|
1564
|
-
},
|
|
1565
|
-
class:
|
|
1566
|
-
onClick:
|
|
1569
|
+
}[e.position] ?? "right"}`), T = () => {
|
|
1570
|
+
d.value = !1, b.schema.showWrapperInCanvas = !1;
|
|
1571
|
+
}, M = () => {
|
|
1572
|
+
d.value = !0, b.schema.showWrapperInCanvas = !0;
|
|
1573
|
+
}, l = () => p("div", {
|
|
1574
|
+
class: R.value,
|
|
1575
|
+
onClick: M
|
|
1567
1576
|
}, [t.slots.button ? t.slots.button() : p("div", {
|
|
1568
1577
|
class: "f-drawer-entry-icon"
|
|
1569
1578
|
}, [p("span", {
|
|
1570
|
-
class: `f-icon ${
|
|
1571
|
-
}, null)])]),
|
|
1579
|
+
class: `f-icon ${P.value}`
|
|
1580
|
+
}, null)])]), c = D(() => ({
|
|
1572
1581
|
opacity: e.transparent ? 0 : 1
|
|
1573
|
-
})),
|
|
1582
|
+
})), m = () => p(Z, {
|
|
1574
1583
|
name: "f-drawer-mask",
|
|
1575
1584
|
appear: !0
|
|
1576
1585
|
}, {
|
|
1577
|
-
default: () => [
|
|
1586
|
+
default: () => [d.value && p("div", {
|
|
1578
1587
|
class: "f-drawer-mask",
|
|
1579
|
-
style:
|
|
1580
|
-
onClick: W(
|
|
1588
|
+
style: c.value,
|
|
1589
|
+
onClick: W(T, ["stop"])
|
|
1581
1590
|
}, null)]
|
|
1582
1591
|
});
|
|
1583
|
-
function
|
|
1584
|
-
|
|
1592
|
+
function O(w, $, H, I) {
|
|
1593
|
+
b && b.setupContext && b.setupContext.emit("selectionChange", w, $, H, I);
|
|
1585
1594
|
}
|
|
1586
|
-
const
|
|
1587
|
-
modelValue:
|
|
1588
|
-
"onUpdate:modelValue": (
|
|
1595
|
+
const F = (w, $, H) => p(Le, {
|
|
1596
|
+
modelValue: H,
|
|
1597
|
+
"onUpdate:modelValue": (I) => H = I,
|
|
1589
1598
|
canAdd: !1,
|
|
1590
1599
|
class: "w-100 position-relative",
|
|
1591
1600
|
childType: "drawer-toolbar-item",
|
|
1592
1601
|
childLabel: "按钮",
|
|
1593
1602
|
contentKey: "buttons",
|
|
1594
|
-
id:
|
|
1603
|
+
id: w,
|
|
1595
1604
|
componentId: e.componentId,
|
|
1596
|
-
onSelectionChange:
|
|
1605
|
+
onSelectionChange: O
|
|
1597
1606
|
}, {
|
|
1598
|
-
default: () => [p(
|
|
1607
|
+
default: () => [p(ie, {
|
|
1599
1608
|
customClass: "w-100",
|
|
1600
|
-
items:
|
|
1609
|
+
items: $,
|
|
1601
1610
|
componentId: e.componentId
|
|
1602
1611
|
}, null)]
|
|
1603
|
-
}),
|
|
1612
|
+
}), B = () => p("div", {
|
|
1604
1613
|
class: "f-drawer-close"
|
|
1605
1614
|
}, [p("span", {
|
|
1606
1615
|
class: "f-icon f-icon-close",
|
|
1607
|
-
onClick: W(
|
|
1608
|
-
}, null)]),
|
|
1616
|
+
onClick: W(T, ["stop"])
|
|
1617
|
+
}, null)]), j = () => e.showHeader ? p("div", {
|
|
1609
1618
|
class: "f-drawer-header align-items-center"
|
|
1610
1619
|
}, [e.customHeader ? p("div", {
|
|
1611
1620
|
class: "w-100 h-100",
|
|
1612
1621
|
innerHTML: e.headerTemplate
|
|
1613
|
-
}, null) : p(
|
|
1622
|
+
}, null) : p(ne, null, [p("div", {
|
|
1614
1623
|
class: "f-drawer-title"
|
|
1615
1624
|
}, [t.slots.title ? t.slots.title() : e.title]), p("div", {
|
|
1616
1625
|
class: "mx-2 col-7"
|
|
1617
|
-
}, [
|
|
1626
|
+
}, [F(k, s.value, i.value)]), p("div", {
|
|
1618
1627
|
class: "f-drawer-header-right"
|
|
1619
|
-
}, [e.showClose &&
|
|
1620
|
-
function L(
|
|
1621
|
-
|
|
1622
|
-
const
|
|
1623
|
-
if (
|
|
1624
|
-
const
|
|
1625
|
-
|
|
1628
|
+
}, [e.showClose && B()])])]) : null;
|
|
1629
|
+
function L(w) {
|
|
1630
|
+
w && (w.preventDefault(), w.stopPropagation()), f.value.onRemoveComponent(C);
|
|
1631
|
+
const $ = u == null ? void 0 : u.parent, H = (I) => I.id === b.schema.id;
|
|
1632
|
+
if ($ && $.schema.contents) {
|
|
1633
|
+
const I = $.schema.contents.findIndex(H);
|
|
1634
|
+
$.schema.contents.splice(I, 1), qe.value++, t.emit("selectionChange");
|
|
1626
1635
|
}
|
|
1627
1636
|
}
|
|
1628
1637
|
const A = () => p("div", {
|
|
@@ -1636,59 +1645,59 @@ const he = Object.assign({}, Q, {
|
|
|
1636
1645
|
}, null)]), p("div", {
|
|
1637
1646
|
class: "btn component-settings-button",
|
|
1638
1647
|
title: "关闭抽屉",
|
|
1639
|
-
onClick:
|
|
1648
|
+
onClick: T
|
|
1640
1649
|
}, [p("i", {
|
|
1641
1650
|
class: "f-icon f-icon-close"
|
|
1642
|
-
}, null)])])]),
|
|
1643
|
-
var
|
|
1651
|
+
}, null)])])]), q = () => {
|
|
1652
|
+
var w, $;
|
|
1644
1653
|
return p("div", {
|
|
1645
1654
|
class: h.value,
|
|
1646
1655
|
style: S.value
|
|
1647
1656
|
}, [p("div", {
|
|
1648
1657
|
class: "f-drawer-container position-relative",
|
|
1649
|
-
ref:
|
|
1650
|
-
}, [A(),
|
|
1658
|
+
ref: o
|
|
1659
|
+
}, [A(), j(), p("div", {
|
|
1651
1660
|
class: "f-drawer-body drag-container d-block",
|
|
1652
|
-
"data-dragref": `${
|
|
1653
|
-
ref:
|
|
1661
|
+
"data-dragref": `${b.schema.id}-container`,
|
|
1662
|
+
ref: r,
|
|
1654
1663
|
style: "overflow: auto;",
|
|
1655
|
-
id:
|
|
1656
|
-
}, [(
|
|
1664
|
+
id: b.schema.id
|
|
1665
|
+
}, [($ = (w = t.slots).default) == null ? void 0 : $.call(w)]), e.showFooter && p("div", {
|
|
1657
1666
|
class: "f-drawer-footer px-2 border-top",
|
|
1658
1667
|
style: {
|
|
1659
1668
|
height: e.footerHeight + "px"
|
|
1660
1669
|
}
|
|
1661
|
-
}, [e.footerContentType === "toolbar" &&
|
|
1670
|
+
}, [e.footerContentType === "toolbar" && F(g, v.value, y.value), e.footerContentType === "html" && p("div", {
|
|
1662
1671
|
class: "w-100 h-100",
|
|
1663
1672
|
innerHTML: e.footerTemplate
|
|
1664
1673
|
}, null)])])]);
|
|
1665
|
-
},
|
|
1674
|
+
}, V = () => p("div", {
|
|
1666
1675
|
class: "f-drawer f-drawer-inline"
|
|
1667
|
-
}, [
|
|
1668
|
-
return () => p("div", null, [
|
|
1676
|
+
}, [m(), q()]);
|
|
1677
|
+
return () => p("div", null, [V(), l()]);
|
|
1669
1678
|
}
|
|
1670
1679
|
});
|
|
1671
|
-
function
|
|
1672
|
-
function e(t,
|
|
1673
|
-
const
|
|
1674
|
-
return
|
|
1680
|
+
function or() {
|
|
1681
|
+
function e(t, r) {
|
|
1682
|
+
const o = {};
|
|
1683
|
+
return o.beforeClose = (g) => r.call("beforeClose", t, [t]), o;
|
|
1675
1684
|
}
|
|
1676
1685
|
return {
|
|
1677
1686
|
resolve: e
|
|
1678
1687
|
};
|
|
1679
1688
|
}
|
|
1680
|
-
const
|
|
1681
|
-
U.register = (e, t,
|
|
1682
|
-
e.drawer = jt, t.drawer =
|
|
1689
|
+
const Ce = J(we, se, ae, le), nr = or();
|
|
1690
|
+
U.register = (e, t, r, o) => {
|
|
1691
|
+
e.drawer = jt, t.drawer = Ce, o.drawer = { eventHandlerResolver: Et, callbackResolver: nr };
|
|
1683
1692
|
};
|
|
1684
|
-
U.registerDesigner = (e, t,
|
|
1685
|
-
e.drawer = U, t.drawer =
|
|
1693
|
+
U.registerDesigner = (e, t, r) => {
|
|
1694
|
+
e.drawer = U, t.drawer = Ce, e["drawer-toolbar-item"] = ze, t["drawer-toolbar-item"] = tr, e["drawer-toolbar"] = ie, t["drawer-toolbar"] = z;
|
|
1686
1695
|
};
|
|
1687
|
-
const
|
|
1696
|
+
const mr = Pe(U);
|
|
1688
1697
|
export {
|
|
1689
|
-
|
|
1690
|
-
|
|
1698
|
+
nr as callbackResolver,
|
|
1699
|
+
mr as default,
|
|
1691
1700
|
Q as drawerProps,
|
|
1692
|
-
|
|
1693
|
-
|
|
1701
|
+
Et as eventHandlerResolver,
|
|
1702
|
+
Ce as propsResolver
|
|
1694
1703
|
};
|