aldehyde 0.0.8 → 0.0.11
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/lib/components/chart/antd/chart-utils.d.ts +7 -0
- package/lib/components/chart/antd/chart-utils.d.ts.map +1 -0
- package/lib/components/chart/antd/chart-utils.js +46 -0
- package/lib/components/chart/antd/chart-utils.js.map +1 -0
- package/lib/components/chart/antd/column-chart-sub.d.ts +7 -0
- package/lib/components/chart/antd/column-chart-sub.d.ts.map +1 -0
- package/lib/components/chart/antd/column-chart-sub.js +50 -0
- package/lib/components/chart/antd/column-chart-sub.js.map +1 -0
- package/lib/components/chart/antd/line-chart-sub.d.ts +7 -0
- package/lib/components/chart/antd/line-chart-sub.d.ts.map +1 -0
- package/lib/components/chart/antd/line-chart-sub.js +49 -0
- package/lib/components/chart/antd/line-chart-sub.js.map +1 -0
- package/lib/components/chart/antd/pie-chart-sub.d.ts +7 -0
- package/lib/components/chart/antd/pie-chart-sub.d.ts.map +1 -0
- package/lib/components/chart/antd/pie-chart-sub.js +37 -0
- package/lib/components/chart/antd/pie-chart-sub.js.map +1 -0
- package/lib/components/chart/antd/statview-d2-chart.d.ts +17 -0
- package/lib/components/chart/antd/statview-d2-chart.d.ts.map +1 -0
- package/lib/components/chart/antd/statview-d2-chart.js +108 -0
- package/lib/components/chart/antd/statview-d2-chart.js.map +1 -0
- package/lib/components/chart/statview-l2-chart.d.ts +23 -0
- package/lib/components/chart/statview-l2-chart.d.ts.map +1 -0
- package/lib/components/chart/statview-l2-chart.js +64 -0
- package/lib/components/chart/statview-l2-chart.js.map +1 -0
- package/lib/components/controls/action/index.css +9 -0
- package/lib/components/controls/action/index.d.ts +47 -0
- package/lib/components/controls/action/index.d.ts.map +1 -0
- package/lib/components/controls/action/index.js +165 -0
- package/lib/components/controls/action/index.js.map +1 -0
- package/lib/components/controls/action/utils.d.ts +9 -0
- package/lib/components/controls/action/utils.d.ts.map +1 -0
- package/lib/components/controls/action/utils.js +110 -0
- package/lib/components/controls/action/utils.js.map +1 -0
- package/lib/components/controls/auto-complete/index.d.ts +7 -0
- package/lib/components/controls/auto-complete/index.d.ts.map +1 -0
- package/lib/components/controls/auto-complete/index.js +53 -0
- package/lib/components/controls/auto-complete/index.js.map +1 -0
- package/lib/components/controls/chemstruc/graph.d.ts +31 -0
- package/lib/components/controls/chemstruc/graph.d.ts.map +1 -0
- package/lib/components/controls/chemstruc/graph.js +121 -0
- package/lib/components/controls/chemstruc/graph.js.map +1 -0
- package/lib/components/controls/chemstruc/index.css +28 -0
- package/lib/components/controls/collapse-card/index.css +9 -0
- package/lib/components/controls/collapse-card/index.d.ts +20 -0
- package/lib/components/controls/collapse-card/index.d.ts.map +1 -0
- package/lib/components/controls/collapse-card/index.js +63 -0
- package/lib/components/controls/collapse-card/index.js.map +1 -0
- package/lib/components/controls/color-picker/index.css +27 -0
- package/lib/components/controls/color-picker/index.d.ts +19 -0
- package/lib/components/controls/color-picker/index.d.ts.map +1 -0
- package/lib/components/controls/color-picker/index.js +61 -0
- package/lib/components/controls/color-picker/index.js.map +1 -0
- package/lib/components/controls/cquery/cquick-button.d.ts +20 -0
- package/lib/components/controls/cquery/cquick-button.d.ts.map +1 -0
- package/lib/components/controls/cquery/cquick-button.js +67 -0
- package/lib/components/controls/cquery/cquick-button.js.map +1 -0
- package/lib/components/controls/date-picker/index.d.ts +7 -0
- package/lib/components/controls/date-picker/index.d.ts.map +1 -0
- package/lib/components/controls/date-picker/index.js +91 -0
- package/lib/components/controls/date-picker/index.js.map +1 -0
- package/lib/components/controls/entity-select/entity-select.d.ts +53 -0
- package/lib/components/controls/entity-select/entity-select.d.ts.map +1 -0
- package/lib/components/controls/entity-select/entity-select.js +227 -0
- package/lib/components/controls/entity-select/entity-select.js.map +1 -0
- package/lib/components/controls/entity-select/index.css +6 -0
- package/lib/components/controls/entity-select/popover-entity-select.d.ts +20 -0
- package/lib/components/controls/entity-select/popover-entity-select.d.ts.map +1 -0
- package/lib/components/controls/entity-select/popover-entity-select.js +80 -0
- package/lib/components/controls/entity-select/popover-entity-select.js.map +1 -0
- package/lib/components/controls/entry-control.d.ts +11 -0
- package/lib/components/controls/entry-control.d.ts.map +1 -0
- package/lib/components/controls/entry-control.js +171 -0
- package/lib/components/controls/entry-control.js.map +1 -0
- package/lib/components/controls/enum-badge/index.d.ts +7 -0
- package/lib/components/controls/enum-badge/index.d.ts.map +1 -0
- package/lib/components/controls/enum-badge/index.js +14 -0
- package/lib/components/controls/enum-badge/index.js.map +1 -0
- package/lib/components/controls/enum-tag/index.d.ts +7 -0
- package/lib/components/controls/enum-tag/index.d.ts.map +1 -0
- package/lib/components/controls/enum-tag/index.js +18 -0
- package/lib/components/controls/enum-tag/index.js.map +1 -0
- package/lib/components/controls/file-view/drawer-file-view.d.ts +18 -0
- package/lib/components/controls/file-view/drawer-file-view.d.ts.map +1 -0
- package/lib/components/controls/file-view/drawer-file-view.js +51 -0
- package/lib/components/controls/file-view/drawer-file-view.js.map +1 -0
- package/lib/components/controls/file-view/index.d.ts +23 -0
- package/lib/components/controls/file-view/index.d.ts.map +1 -0
- package/lib/components/controls/file-view/index.js +130 -0
- package/lib/components/controls/file-view/index.js.map +1 -0
- package/lib/components/controls/html-editor/draft.d.ts +22 -0
- package/lib/components/controls/html-editor/draft.d.ts.map +1 -0
- package/lib/components/controls/html-editor/draft.js +122 -0
- package/lib/components/controls/html-editor/draft.js.map +1 -0
- package/lib/components/controls/input-number/index.d.ts +7 -0
- package/lib/components/controls/input-number/index.d.ts.map +1 -0
- package/lib/components/controls/input-number/index.js +67 -0
- package/lib/components/controls/input-number/index.js.map +1 -0
- package/lib/components/controls/input-range/index.d.ts +7 -0
- package/lib/components/controls/input-range/index.d.ts.map +1 -0
- package/lib/components/controls/input-range/index.js +28 -0
- package/lib/components/controls/input-range/index.js.map +1 -0
- package/lib/components/controls/password-setter/index.css +3 -0
- package/lib/components/controls/progress/index.d.ts +7 -0
- package/lib/components/controls/progress/index.d.ts.map +1 -0
- package/lib/components/controls/progress/index.js +45 -0
- package/lib/components/controls/progress/index.js.map +1 -0
- package/lib/components/controls/relation-existion/index.css +4 -0
- package/lib/components/controls/relation-existion/index.d.ts +20 -0
- package/lib/components/controls/relation-existion/index.d.ts.map +1 -0
- package/lib/components/controls/relation-existion/index.js +75 -0
- package/lib/components/controls/relation-existion/index.js.map +1 -0
- package/lib/components/controls/rfield/index.css +4 -0
- package/lib/components/controls/rfield/index.d.ts +29 -0
- package/lib/components/controls/rfield/index.d.ts.map +1 -0
- package/lib/components/controls/rfield/index.js +130 -0
- package/lib/components/controls/rfield/index.js.map +1 -0
- package/lib/components/controls/signature/index.d.ts +31 -0
- package/lib/components/controls/signature/index.d.ts.map +1 -0
- package/lib/components/controls/signature/index.js +129 -0
- package/lib/components/controls/signature/index.js.map +1 -0
- package/lib/components/controls/steps/index.d.ts +7 -0
- package/lib/components/controls/steps/index.d.ts.map +1 -0
- package/lib/components/controls/steps/index.js +42 -0
- package/lib/components/controls/steps/index.js.map +1 -0
- package/lib/components/controls/text/ellipsis-text.d.ts +22 -0
- package/lib/components/controls/text/ellipsis-text.d.ts.map +1 -0
- package/lib/components/controls/text/ellipsis-text.js +46 -0
- package/lib/components/controls/text/ellipsis-text.js.map +1 -0
- package/lib/components/controls/upload/index.d.ts +15 -0
- package/lib/components/controls/upload/index.d.ts.map +1 -0
- package/lib/components/controls/upload/index.js +100 -0
- package/lib/components/controls/upload/index.js.map +1 -0
- package/lib/components/controls/view-control.d.ts +10 -0
- package/lib/components/controls/view-control.d.ts.map +1 -0
- package/lib/components/controls/view-control.js +150 -0
- package/lib/components/controls/view-control.js.map +1 -0
- package/lib/components/detail/button/cquery-button-bar.d.ts +16 -0
- package/lib/components/detail/button/cquery-button-bar.d.ts.map +1 -0
- package/lib/components/detail/button/cquery-button-bar.js +75 -0
- package/lib/components/detail/button/cquery-button-bar.js.map +1 -0
- package/lib/components/detail/button/index.css +43 -0
- package/lib/components/detail/button/submit-button-bar.d.ts +19 -0
- package/lib/components/detail/button/submit-button-bar.d.ts.map +1 -0
- package/lib/components/detail/button/submit-button-bar.js +99 -0
- package/lib/components/detail/button/submit-button-bar.js.map +1 -0
- package/lib/components/detail/dtmpl.css +53 -0
- package/lib/components/detail/edit/dtmpl-edit.d.ts +48 -0
- package/lib/components/detail/edit/dtmpl-edit.d.ts.map +1 -0
- package/lib/components/detail/edit/dtmpl-edit.js +190 -0
- package/lib/components/detail/edit/dtmpl-edit.js.map +1 -0
- package/lib/components/detail/edit/fields-edit-card.d.ts +39 -0
- package/lib/components/detail/edit/fields-edit-card.d.ts.map +1 -0
- package/lib/components/detail/edit/fields-edit-card.js +64 -0
- package/lib/components/detail/edit/fields-edit-card.js.map +1 -0
- package/lib/components/detail/edit/modal-dtmpl-edit.d.ts +51 -0
- package/lib/components/detail/edit/modal-dtmpl-edit.d.ts.map +1 -0
- package/lib/components/detail/edit/modal-dtmpl-edit.js +168 -0
- package/lib/components/detail/edit/modal-dtmpl-edit.js.map +1 -0
- package/lib/components/detail/edit/modal-row-edit.d.ts +31 -0
- package/lib/components/detail/edit/modal-row-edit.d.ts.map +1 -0
- package/lib/components/detail/edit/modal-row-edit.js +56 -0
- package/lib/components/detail/edit/modal-row-edit.js.map +1 -0
- package/lib/components/detail/edit/post-result/index.d.ts +17 -0
- package/lib/components/detail/edit/post-result/index.d.ts.map +1 -0
- package/lib/components/detail/edit/post-result/index.js +28 -0
- package/lib/components/detail/edit/post-result/index.js.map +1 -0
- package/lib/components/detail/edit/row-edit-card.d.ts +42 -0
- package/lib/components/detail/edit/row-edit-card.d.ts.map +1 -0
- package/lib/components/detail/edit/row-edit-card.js +84 -0
- package/lib/components/detail/edit/row-edit-card.js.map +1 -0
- package/lib/components/detail/edit/row-editor.d.ts +31 -0
- package/lib/components/detail/edit/row-editor.d.ts.map +1 -0
- package/lib/components/detail/edit/row-editor.js +55 -0
- package/lib/components/detail/edit/row-editor.js.map +1 -0
- package/lib/components/detail/rightbar/index.css +35 -0
- package/lib/components/detail/rightbar/index.d.ts +20 -0
- package/lib/components/detail/rightbar/index.d.ts.map +1 -0
- package/lib/components/detail/rightbar/index.js +51 -0
- package/lib/components/detail/rightbar/index.js.map +1 -0
- package/lib/components/detail/view/act-dtmpl-view.d.ts +46 -0
- package/lib/components/detail/view/act-dtmpl-view.d.ts.map +1 -0
- package/lib/components/detail/view/act-dtmpl-view.js +110 -0
- package/lib/components/detail/view/act-dtmpl-view.js.map +1 -0
- package/lib/components/detail/view/dtmpl-view.d.ts +42 -0
- package/lib/components/detail/view/dtmpl-view.d.ts.map +1 -0
- package/lib/components/detail/view/dtmpl-view.js +111 -0
- package/lib/components/detail/view/dtmpl-view.js.map +1 -0
- package/lib/components/detail/view/field-view-group.d.ts +17 -0
- package/lib/components/detail/view/field-view-group.d.ts.map +1 -0
- package/lib/components/detail/view/field-view-group.js +51 -0
- package/lib/components/detail/view/field-view-group.js.map +1 -0
- package/lib/components/detail/view/modal-dtmpl-view.d.ts +27 -0
- package/lib/components/detail/view/modal-dtmpl-view.d.ts.map +1 -0
- package/lib/components/detail/view/modal-dtmpl-view.js +32 -0
- package/lib/components/detail/view/modal-dtmpl-view.js.map +1 -0
- package/lib/components/detail/view/snapshot-timeline.d.ts +32 -0
- package/lib/components/detail/view/snapshot-timeline.d.ts.map +1 -0
- package/lib/components/detail/view/snapshot-timeline.js +90 -0
- package/lib/components/detail/view/snapshot-timeline.js.map +1 -0
- package/lib/components/exportor/export-frame.css +3 -0
- package/lib/components/exportor/export-frame.d.ts +50 -0
- package/lib/components/exportor/export-frame.d.ts.map +1 -0
- package/lib/components/exportor/export-frame.js +140 -0
- package/lib/components/exportor/export-frame.js.map +1 -0
- package/lib/components/exportor/index.d.ts +16 -0
- package/lib/components/exportor/index.d.ts.map +1 -0
- package/lib/components/exportor/index.js +44 -0
- package/lib/components/exportor/index.js.map +1 -0
- package/lib/components/form/criteria-form.d.ts +19 -0
- package/lib/components/form/criteria-form.d.ts.map +1 -0
- package/lib/components/form/criteria-form.js +167 -0
- package/lib/components/form/criteria-form.js.map +1 -0
- package/lib/components/form/dtmpl-form.css +4 -0
- package/lib/components/form/dtmpl-form.d.ts +37 -0
- package/lib/components/form/dtmpl-form.d.ts.map +1 -0
- package/lib/components/form/dtmpl-form.js +213 -0
- package/lib/components/form/dtmpl-form.js.map +1 -0
- package/lib/components/form/field-group-form.d.ts +21 -0
- package/lib/components/form/field-group-form.d.ts.map +1 -0
- package/lib/components/form/field-group-form.js +58 -0
- package/lib/components/form/field-group-form.js.map +1 -0
- package/lib/components/form/fields-form.d.ts +20 -0
- package/lib/components/form/fields-form.d.ts.map +1 -0
- package/lib/components/form/fields-form.js +39 -0
- package/lib/components/form/fields-form.js.map +1 -0
- package/lib/components/form/form-Item-group.d.ts +22 -0
- package/lib/components/form/form-Item-group.d.ts.map +1 -0
- package/lib/components/form/form-Item-group.js +60 -0
- package/lib/components/form/form-Item-group.js.map +1 -0
- package/lib/components/form/index.css +13 -0
- package/lib/components/import/excel-import.d.ts +48 -0
- package/lib/components/import/excel-import.d.ts.map +1 -0
- package/lib/components/import/excel-import.js +234 -0
- package/lib/components/import/excel-import.js.map +1 -0
- package/lib/components/import/index.css +54 -0
- package/lib/components/import/template.css +51 -0
- package/lib/components/layout/MainPage.d.ts +32 -0
- package/lib/components/layout/MainPage.d.ts.map +1 -0
- package/lib/components/layout/MainPage.js +202 -0
- package/lib/components/layout/MainPage.js.map +1 -0
- package/lib/components/layout/footer/index.css +6 -0
- package/lib/components/layout/header/index.css +86 -0
- package/lib/components/layout/header/index.d.ts +16 -0
- package/lib/components/layout/header/index.d.ts.map +1 -0
- package/lib/components/layout/header/index.js +37 -0
- package/lib/components/layout/header/index.js.map +1 -0
- package/lib/components/layout/menu/block.d.ts +9 -0
- package/lib/components/layout/menu/block.d.ts.map +1 -0
- package/lib/components/layout/menu/block.js +48 -0
- package/lib/components/layout/menu/block.js.map +1 -0
- package/lib/components/layout/menu/l2menu-message-bar.d.ts +24 -0
- package/lib/components/layout/menu/l2menu-message-bar.d.ts.map +1 -0
- package/lib/components/layout/menu/l2menu-message-bar.js +97 -0
- package/lib/components/layout/menu/l2menu-message-bar.js.map +1 -0
- package/lib/components/layout/menu/l2menu-quick-bar.d.ts +30 -0
- package/lib/components/layout/menu/l2menu-quick-bar.d.ts.map +1 -0
- package/lib/components/layout/menu/l2menu-quick-bar.js +94 -0
- package/lib/components/layout/menu/l2menu-quick-bar.js.map +1 -0
- package/lib/components/layout/menu/menu-2layers.d.ts +9 -0
- package/lib/components/layout/menu/menu-2layers.d.ts.map +1 -0
- package/lib/components/layout/menu/menu-2layers.js +63 -0
- package/lib/components/layout/menu/menu-2layers.js.map +1 -0
- package/lib/components/layout/menu/menu-render.d.ts +8 -0
- package/lib/components/layout/menu/menu-render.d.ts.map +1 -0
- package/lib/components/layout/menu/menu-render.js +44 -0
- package/lib/components/layout/menu/menu-render.js.map +1 -0
- package/lib/components/layout/menu/reset-password.d.ts +25 -0
- package/lib/components/layout/menu/reset-password.d.ts.map +1 -0
- package/lib/components/layout/menu/reset-password.js +113 -0
- package/lib/components/layout/menu/reset-password.js.map +1 -0
- package/lib/components/layout/menu/user-bar.d.ts +19 -0
- package/lib/components/layout/menu/user-bar.d.ts.map +1 -0
- package/lib/components/layout/menu/user-bar.js +61 -0
- package/lib/components/layout/menu/user-bar.js.map +1 -0
- package/lib/components/layout/menu/userinfo-bar.d.ts +18 -0
- package/lib/components/layout/menu/userinfo-bar.d.ts.map +1 -0
- package/lib/components/layout/menu/userinfo-bar.js +50 -0
- package/lib/components/layout/menu/userinfo-bar.js.map +1 -0
- package/lib/components/layout/sidebar/index.css +26 -0
- package/lib/components/layout/sidebar/index.d.ts +12 -0
- package/lib/components/layout/sidebar/index.d.ts.map +1 -0
- package/lib/components/layout/sidebar/index.js +19 -0
- package/lib/components/layout/sidebar/index.js.map +1 -0
- package/lib/components/module/dtmpl-page.d.ts +19 -0
- package/lib/components/module/dtmpl-page.d.ts.map +1 -0
- package/lib/components/module/dtmpl-page.js +46 -0
- package/lib/components/module/dtmpl-page.js.map +1 -0
- package/lib/components/module/ltmpl-page.d.ts +34 -0
- package/lib/components/module/ltmpl-page.d.ts.map +1 -0
- package/lib/components/module/ltmpl-page.js +154 -0
- package/lib/components/module/ltmpl-page.js.map +1 -0
- package/lib/components/routable/dtmpl-route.d.ts +17 -0
- package/lib/components/routable/dtmpl-route.d.ts.map +1 -0
- package/lib/components/routable/dtmpl-route.js +77 -0
- package/lib/components/routable/dtmpl-route.js.map +1 -0
- package/lib/components/routable/import-route.d.ts +13 -0
- package/lib/components/routable/import-route.d.ts.map +1 -0
- package/lib/components/routable/import-route.js +29 -0
- package/lib/components/routable/import-route.js.map +1 -0
- package/lib/components/routable/ltmpl-route.d.ts +25 -0
- package/lib/components/routable/ltmpl-route.d.ts.map +1 -0
- package/lib/components/routable/ltmpl-route.js +145 -0
- package/lib/components/routable/ltmpl-route.js.map +1 -0
- package/lib/components/table/act-table.d.ts +76 -0
- package/lib/components/table/act-table.d.ts.map +1 -0
- package/lib/components/table/act-table.js +454 -0
- package/lib/components/table/act-table.js.map +1 -0
- package/lib/components/table/column/column-selector.d.ts +26 -0
- package/lib/components/table/column/column-selector.d.ts.map +1 -0
- package/lib/components/table/column/column-selector.js +59 -0
- package/lib/components/table/column/column-selector.js.map +1 -0
- package/lib/components/table/column/index.css +14 -0
- package/lib/components/table/index.css +45 -0
- package/lib/components/table/l2-act-table.d.ts +23 -0
- package/lib/components/table/l2-act-table.d.ts.map +1 -0
- package/lib/components/table/l2-act-table.js +80 -0
- package/lib/components/table/l2-act-table.js.map +1 -0
- package/lib/components/table/modal-select-table.d.ts +41 -0
- package/lib/components/table/modal-select-table.d.ts.map +1 -0
- package/lib/components/table/modal-select-table.js +208 -0
- package/lib/components/table/modal-select-table.js.map +1 -0
- package/lib/components/table/pagination.css +15 -0
- package/lib/components/table/pagination.d.ts +17 -0
- package/lib/components/table/pagination.d.ts.map +1 -0
- package/lib/components/table/pagination.js +40 -0
- package/lib/components/table/pagination.js.map +1 -0
- package/lib/components/table/query-table.d.ts +65 -0
- package/lib/components/table/query-table.d.ts.map +1 -0
- package/lib/components/table/query-table.js +257 -0
- package/lib/components/table/query-table.js.map +1 -0
- package/lib/components/table/relation-table.d.ts +61 -0
- package/lib/components/table/relation-table.d.ts.map +1 -0
- package/lib/components/table/relation-table.js +444 -0
- package/lib/components/table/relation-table.js.map +1 -0
- package/lib/components/table/select-table.d.ts +40 -0
- package/lib/components/table/select-table.d.ts.map +1 -0
- package/lib/components/table/select-table.js +223 -0
- package/lib/components/table/select-table.js.map +1 -0
- package/lib/components/table/selected-rows-card.d.ts +16 -0
- package/lib/components/table/selected-rows-card.d.ts.map +1 -0
- package/lib/components/table/selected-rows-card.js +47 -0
- package/lib/components/table/selected-rows-card.js.map +1 -0
- package/lib/components/table/stat/restat.d.ts +26 -0
- package/lib/components/table/stat/restat.d.ts.map +1 -0
- package/lib/components/table/stat/restat.js +61 -0
- package/lib/components/table/stat/restat.js.map +1 -0
- package/lib/components/table/table-util.d.ts +5 -0
- package/lib/components/table/table-util.d.ts.map +1 -0
- package/lib/components/table/table-util.js +30 -0
- package/lib/components/table/table-util.js.map +1 -0
- package/lib/components/tmpl/control-type-supportor.d.ts +9 -0
- package/lib/components/tmpl/control-type-supportor.d.ts.map +1 -0
- package/lib/components/tmpl/control-type-supportor.js +85 -0
- package/lib/components/tmpl/control-type-supportor.js.map +1 -0
- package/lib/components/tmpl/hc-data-source.d.ts +19 -0
- package/lib/components/tmpl/hc-data-source.d.ts.map +1 -0
- package/lib/components/tmpl/hc-data-source.js +230 -0
- package/lib/components/tmpl/hc-data-source.js.map +1 -0
- package/lib/components/tmpl/hcservice-v3.d.ts +53 -0
- package/lib/components/tmpl/hcservice-v3.d.ts.map +1 -0
- package/lib/components/tmpl/hcservice-v3.js +639 -0
- package/lib/components/tmpl/hcservice-v3.js.map +1 -0
- package/lib/components/tmpl/interface.d.ts +234 -0
- package/lib/components/tmpl/interface.d.ts.map +1 -0
- package/lib/components/tmpl/interface.js +4 -0
- package/lib/components/tmpl/interface.js.map +1 -0
- package/lib/components/tmpl/tmpl-config-analysis.d.ts +7 -0
- package/lib/components/tmpl/tmpl-config-analysis.d.ts.map +1 -0
- package/lib/components/tmpl/tmpl-config-analysis.js +106 -0
- package/lib/components/tmpl/tmpl-config-analysis.js.map +1 -0
- package/lib/components/units/index.d.ts +58 -0
- package/lib/components/units/index.d.ts.map +1 -0
- package/lib/components/units/index.js +525 -0
- package/lib/components/units/index.js.map +1 -0
- package/lib/components/welcome/index.css +13 -0
- package/lib/components/welcome/quick-entrance.d.ts +20 -0
- package/lib/components/welcome/quick-entrance.d.ts.map +1 -0
- package/lib/components/welcome/quick-entrance.js +79 -0
- package/lib/components/welcome/quick-entrance.js.map +1 -0
- package/lib/components/welcome/workbench.d.ts +20 -0
- package/lib/components/welcome/workbench.d.ts.map +1 -0
- package/lib/components/welcome/workbench.js +78 -0
- package/lib/components/welcome/workbench.js.map +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -0
- package/lib/style/common.css +79 -0
- package/lib/style/coverstyle.css +49 -0
- package/lib/style/transstyle.css +24 -0
- package/package.json +10 -7
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { Modal } from 'antd';
|
|
12
|
+
import FieldGroupForm from '../../form/field-group-form';
|
|
13
|
+
export default class ModalRowEdit extends React.PureComponent {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.formRef = React.createRef();
|
|
17
|
+
this.state = {};
|
|
18
|
+
this.onOk = () => {
|
|
19
|
+
this.formRef.current.submit();
|
|
20
|
+
};
|
|
21
|
+
this.getTitle = () => {
|
|
22
|
+
const { fieldGroupConfig, dtmplData } = this.props;
|
|
23
|
+
let title = "";
|
|
24
|
+
title = fieldGroupConfig.title;
|
|
25
|
+
if (dtmplData) {
|
|
26
|
+
title = title + "【行编辑】";
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
title = title + "【新建一行】";
|
|
30
|
+
}
|
|
31
|
+
return title;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
componentDidMount() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
componentDidUpdate() {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (this.formRef.current) {
|
|
41
|
+
this.formRef.current.resetFields();
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
const { height, onOk, onCancel, fieldGroupConfig, visible, dtmplData } = this.props;
|
|
47
|
+
const {} = this.state;
|
|
48
|
+
return React.createElement(Modal, { visible: visible, width: 1150, title: this.getTitle(), bodyStyle: { overflow: 'auto' }, destroyOnClose: true, centered: true, okText: '确定', cancelText: '取消', onOk: this.onOk, onCancel: onCancel },
|
|
49
|
+
React.createElement(FieldGroupForm, { fieldGroupConfig: fieldGroupConfig, formRef: this.formRef, onFinish: onOk, dtmplData: dtmplData }));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
ModalRowEdit.defaultProps = {
|
|
53
|
+
forceRender: true,
|
|
54
|
+
style: { maxWidth: 'calc(100vw - 60px)', maxHeight: 'calc(100vh - 50px)' },
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=modal-row-edit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal-row-edit.js","sourceRoot":"","sources":["../../../../src/components/detail/edit/modal-row-edit.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,KAAK,EAAC,MAAM,MAAM,CAAA;AAExC,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAczD,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,aAAuD;IAAvG;;QACI,YAAO,GAAG,KAAK,CAAC,SAAS,EAAgB,CAAC;QAK1C,UAAK,GAAG,EAAE,CAAA;QAWV,SAAI,GAAG,GAAG,EAAE;YACR,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QAClC,CAAC,CAAA;QAED,aAAQ,GAAG,GAAG,EAAE;YACZ,MAAM,EAAC,gBAAgB,EAAE,SAAS,EAAC,GAAG,IAAI,CAAC,KAAK,CAAA;YAChD,IAAI,KAAK,GAAG,EAAE,CAAC;YACf,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC;YAC/B,IAAI,SAAS,EAAE;gBACX,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC;aAC3B;iBAAM;gBACH,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC;aAC5B;YACD,OAAO,KAAK,CAAC;QACjB,CAAC,CAAA;IAuBL,CAAC;IA9CS,iBAAiB;;QACvB,CAAC;KAAA;IAEK,kBAAkB;;YACpB,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;gBACtB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;aACtC;QACL,CAAC;KAAA;IAkBD,MAAM;QACF,MAAM,EAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAC,GAAG,IAAI,CAAC,KAAK,CAAA;QACjF,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACtB,OAAO,oBAAC,KAAK,IACT,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,EACtB,SAAS,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,EAC7B,cAAc,EAAE,IAAI,EACpB,QAAQ,QACR,MAAM,EAAE,IAAI,EACZ,UAAU,EAAE,IAAI,EAChB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,QAAQ;YAElB,oBAAC,cAAc,IAAC,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EACzD,QAAQ,EAAE,IAAI,EACd,SAAS,EAAE,SAAS,GAAI,CACpC,CAAA;IACZ,CAAC;;AAlDM,yBAAY,GAAG;IAClB,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE,EAAC,QAAQ,EAAE,oBAAoB,EAAE,SAAS,EAAE,oBAAoB,EAAC;CAC3E,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { AddOrUpdate, SaveJumpType } from "../../../tmpl/interface";
|
|
3
|
+
import { ResultStatusType } from "antd/lib/result";
|
|
4
|
+
interface PostResultProps {
|
|
5
|
+
title?: ReactNode;
|
|
6
|
+
subtitle?: ReactNode;
|
|
7
|
+
visible: boolean;
|
|
8
|
+
jumpTypes: SaveJumpType[];
|
|
9
|
+
addOrUpdate: AddOrUpdate;
|
|
10
|
+
resultStatus?: ResultStatusType;
|
|
11
|
+
goAdd: () => void;
|
|
12
|
+
goEdit: () => void;
|
|
13
|
+
goList: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const PostResult: React.FC<PostResultProps>;
|
|
16
|
+
export default PostResult;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/detail/edit/post-result/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AAEtC,OAAO,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAEjD,UAAU,eAAe;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgCzC,CAAA;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { Button, Modal, Result } from 'antd';
|
|
14
|
+
;
|
|
15
|
+
const PostResult = (_a) => {
|
|
16
|
+
var { resultStatus = 'success' } = _a, props = __rest(_a, ["resultStatus"]);
|
|
17
|
+
const { title, visible, subtitle, goAdd, goEdit, goList, jumpTypes, addOrUpdate } = props;
|
|
18
|
+
return (React.createElement(Modal, { title: title ? title : "保存提示", visible: visible, closable: false, destroyOnClose: true, footer: [], bodyStyle: { height: 430, overflow: 'auto' }, width: 560, maskClosable: true },
|
|
19
|
+
React.createElement(Result, { status: resultStatus, title: resultStatus === "success" ? "保存成功" : "保存失败", subTitle: subtitle, extra: [goAdd && jumpTypes && jumpTypes.includes('add') ?
|
|
20
|
+
React.createElement(Button, { key: "goOnAdd", onClick: () => goAdd() }, addOrUpdate === "update" ? "转添加" : "继续添加") : undefined,
|
|
21
|
+
goEdit && jumpTypes && jumpTypes.includes('edit') ?
|
|
22
|
+
React.createElement(Button, { type: "primary", key: "goOnEdit", onClick: () => goEdit() }, addOrUpdate === "update" ? "继续编辑" : "编辑实体") : "",
|
|
23
|
+
goList && jumpTypes && jumpTypes.includes('list') ?
|
|
24
|
+
React.createElement(Button, { type: "primary", key: "onBackList", onClick: () => goList() }, "\u8FD4\u56DE\u5217\u8868") : ""
|
|
25
|
+
] })));
|
|
26
|
+
};
|
|
27
|
+
export default PostResult;
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/detail/edit/post-result/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AACtC,OAAO,EAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAC,MAAM,MAAM,CAAA;AAczC,CAAC;AAEF,MAAM,UAAU,GAA8B,CAAC,EAAiC,EAAE,EAAE;QAArC,EAAC,YAAY,GAAC,SAAS,OAAU,EAAN,KAAK,cAAhC,gBAAiC,CAAD;IAE3E,MAAM,EAAC,KA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AAC,CAAC,CAAC;oBAC/C,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,GAAG,EAAC,YAAY,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,+BAEtD,CAAC,CAAC,CAAC,EAAE;aACrB,GACC,CACN,CACX,CAAA;AACL,CAAC,CAAA;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormInstance } from 'antd';
|
|
3
|
+
import { DtmplData, FieldGroupConfig } from "../../tmpl/interface";
|
|
4
|
+
import { ButtonType } from "antd/es/button";
|
|
5
|
+
interface RowEditCardProps {
|
|
6
|
+
height?: any;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
onOk: (value: DtmplData, hidden: boolean) => void;
|
|
9
|
+
fieldGroupConfig: FieldGroupConfig;
|
|
10
|
+
dtmplData?: DtmplData;
|
|
11
|
+
okButtonType?: ButtonType;
|
|
12
|
+
okDanger?: boolean;
|
|
13
|
+
needConfirm?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface RowEditCardState {
|
|
16
|
+
isAdded: boolean;
|
|
17
|
+
}
|
|
18
|
+
export default class RowEditCard extends React.PureComponent<RowEditCardProps, RowEditCardState> {
|
|
19
|
+
formRef: React.RefObject<FormInstance<any>>;
|
|
20
|
+
static defaultProps: {
|
|
21
|
+
forceRender: boolean;
|
|
22
|
+
style: {
|
|
23
|
+
maxWidth: string;
|
|
24
|
+
maxHeight: string;
|
|
25
|
+
};
|
|
26
|
+
needConfirm: boolean;
|
|
27
|
+
okButtonType: string;
|
|
28
|
+
okDanger: boolean;
|
|
29
|
+
};
|
|
30
|
+
state: {
|
|
31
|
+
isAdded: boolean;
|
|
32
|
+
};
|
|
33
|
+
componentDidMount(): Promise<void>;
|
|
34
|
+
componentDidUpdate(): Promise<void>;
|
|
35
|
+
reset: () => void;
|
|
36
|
+
onOk: () => void;
|
|
37
|
+
add: () => void;
|
|
38
|
+
getTitle: () => string;
|
|
39
|
+
render(): JSX.Element;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=row-edit-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-edit-card.d.ts","sourceRoot":"","sources":["../../../../src/components/detail/edit/row-edit-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,YAAY,EAAsC,MAAM,MAAM,CAAA;AAEpF,OAAO,EAAC,SAAS,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAE1C,UAAU,gBAAgB;IACtB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,EAAC,MAAM,EAAC,OAAO,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,UAAU,gBAAgB;IACtB,OAAO,EAAC,OAAO,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAa,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5F,OAAO,qCAAmC;IAC1C,MAAM,CAAC,YAAY;;;;;;;;;MAMlB;IACD,KAAK;;MAEJ;IAEK,iBAAiB;IAIjB,kBAAkB;IAIxB,KAAK,aAIJ;IAED,IAAI,aAIH;IACD,GAAG,aAGF;IAED,QAAQ,eAUP;IAED,MAAM;CAqDT"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { Button, Card, Popconfirm, Space, Tooltip } from 'antd';
|
|
12
|
+
import { CloseOutlined } from '@ant-design/icons';
|
|
13
|
+
import FieldGroupForm from '../../form/field-group-form';
|
|
14
|
+
export default class RowEditCard extends React.PureComponent {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.formRef = React.createRef();
|
|
18
|
+
this.state = {
|
|
19
|
+
isAdded: false,
|
|
20
|
+
};
|
|
21
|
+
this.reset = () => {
|
|
22
|
+
// if (this.formRef.current) {
|
|
23
|
+
// this.formRef.current.resetFields();
|
|
24
|
+
// }
|
|
25
|
+
};
|
|
26
|
+
this.onOk = () => {
|
|
27
|
+
this.setState({ isAdded: false });
|
|
28
|
+
this.formRef.current.submit();
|
|
29
|
+
};
|
|
30
|
+
this.add = () => {
|
|
31
|
+
this.setState({ isAdded: true });
|
|
32
|
+
this.formRef.current.submit();
|
|
33
|
+
};
|
|
34
|
+
this.getTitle = () => {
|
|
35
|
+
const { fieldGroupConfig, dtmplData } = this.props;
|
|
36
|
+
let title = "";
|
|
37
|
+
title = fieldGroupConfig.title;
|
|
38
|
+
if (dtmplData) {
|
|
39
|
+
title = title + "【行编辑】";
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
title = title + "【新建一行】";
|
|
43
|
+
}
|
|
44
|
+
return title;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
componentDidMount() {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
componentDidUpdate() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
//this.reset();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
const { height, onOk, fieldGroupConfig, dtmplData, onCancel, okButtonType, needConfirm, okDanger } = this.props;
|
|
58
|
+
const { isAdded } = this.state;
|
|
59
|
+
function okButton(onOk) {
|
|
60
|
+
return needConfirm ? okDanger ?
|
|
61
|
+
React.createElement(Popconfirm, { placement: "rightBottom", title: `确定要执行提交吗?`, onConfirm: onOk, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", okType: 'danger' },
|
|
62
|
+
React.createElement(Button, { type: okButtonType, danger: true, size: "small" }, "\u786E\u5B9A")) :
|
|
63
|
+
React.createElement(Popconfirm, { placement: "rightBottom", title: `确定要执行提交吗?`, onConfirm: onOk, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88" },
|
|
64
|
+
React.createElement(Button, { size: "small", type: okButtonType }, "\u786E\u5B9A")) :
|
|
65
|
+
React.createElement(Button, { type: okButtonType, size: "small", onClick: onOk }, "\u786E\u5B9A");
|
|
66
|
+
}
|
|
67
|
+
return React.createElement(Card, { style: { width: 1000 }, title: this.getTitle(), bodyStyle: { overflow: 'auto' }, extra: React.createElement(React.Fragment, null,
|
|
68
|
+
React.createElement(Space, { size: [8, 0] },
|
|
69
|
+
okButton(this.onOk),
|
|
70
|
+
dtmplData ? "" : React.createElement(Tooltip, { placement: "top", title: "\u53EF\u8FDE\u7EED\u6DFB\u52A0" },
|
|
71
|
+
React.createElement(Button, { type: 'primary', size: 'small', onClick: this.add }, "\u6DFB\u52A0")),
|
|
72
|
+
onCancel ? React.createElement(Button, { onClick: onCancel },
|
|
73
|
+
React.createElement(CloseOutlined, null)) : "")) },
|
|
74
|
+
React.createElement(FieldGroupForm, { fieldGroupConfig: fieldGroupConfig, formRef: this.formRef, onFinish: (value) => onOk(value, !isAdded), dtmplData: dtmplData }));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
RowEditCard.defaultProps = {
|
|
78
|
+
forceRender: true,
|
|
79
|
+
style: { maxWidth: 'calc(100vw - 60px)', maxHeight: 'calc(100vh - 50px)' },
|
|
80
|
+
needConfirm: false,
|
|
81
|
+
okButtonType: 'primary',
|
|
82
|
+
okDanger: false,
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=row-edit-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-edit-card.js","sourceRoot":"","sources":["../../../../src/components/detail/edit/row-edit-card.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAE,IAAI,EAAgB,UAAU,EAAW,KAAK,EAAE,OAAO,EAAC,MAAM,MAAM,CAAA;AACpF,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAE/C,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAkBzD,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAiD;IAAhG;;QACI,YAAO,GAAG,KAAK,CAAC,SAAS,EAAgB,CAAC;QAQ1C,UAAK,GAAG;YACJ,OAAO,EAAC,KAAK;SAChB,CAAA;QAUD,UAAK,GAAG,GAAG,EAAE;YACT,8BAA8B;YAC9B,0CAA0C;YAC1C,IAAI;QACR,CAAC,CAAA;QAED,SAAI,GAAG,GAAG,EAAE;YACR,IAAI,CAAC,QAAQ,CAAC,EAAC,OAAO,EAAC,KAAK,EAAC,CAAC,CAAA;YAC9B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QAElC,CAAC,CAAA;QACD,QAAG,GAAG,GAAG,EAAE;YACP,IAAI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WAAW,EAAE,IAAI;IACjB,KAAK,EAAE,EAAC,QAAQ,EAAE,oBAAoB,EAAE,SAAS,EAAE,oBAAoB,EAAC;IACxE,WAAW,EAAE,KAAK;IAClB,YAAY,EAAE,SAAS;IACvB,QAAQ,EAAE,KAAK;CAClB,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormInstance } from 'antd';
|
|
3
|
+
import { DtmplData, FieldGroupConfig } from "../../tmpl/interface";
|
|
4
|
+
import { RenderFunction } from "antd/lib/tooltip";
|
|
5
|
+
interface RowEditorProps {
|
|
6
|
+
buttonTitle?: string;
|
|
7
|
+
buttonIcon: React.ReactNode;
|
|
8
|
+
tooltipTitle?: React.ReactNode | RenderFunction;
|
|
9
|
+
fieldGroupConfig: FieldGroupConfig;
|
|
10
|
+
dtmplData?: DtmplData;
|
|
11
|
+
onOk: (value: DtmplData) => void;
|
|
12
|
+
buttonStyle?: object;
|
|
13
|
+
}
|
|
14
|
+
interface RowEditorState {
|
|
15
|
+
popoverVisible: boolean;
|
|
16
|
+
}
|
|
17
|
+
export default class RowEditor extends React.PureComponent<RowEditorProps, RowEditorState> {
|
|
18
|
+
formRef: React.RefObject<FormInstance<any>>;
|
|
19
|
+
static defaultProps: {
|
|
20
|
+
buttonIcon: any;
|
|
21
|
+
};
|
|
22
|
+
state: {
|
|
23
|
+
popoverVisible: boolean;
|
|
24
|
+
};
|
|
25
|
+
componentDidMount(): Promise<void>;
|
|
26
|
+
componentDidUpdate(): Promise<void>;
|
|
27
|
+
onOk: (value: any, hidden?: boolean) => void;
|
|
28
|
+
render(): JSX.Element;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=row-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/detail/edit/row-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAS,YAAY,EAAmB,MAAM,MAAM,CAAA;AAC3D,OAAO,EAAC,SAAS,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEhD,UAAU,cAAc;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,cAAc,CAAC;IAChD,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,EAAC,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IAChC,WAAW,CAAC,EAAC,MAAM,CAAC;CACvB;AAED,UAAU,cAAc;IACpB,cAAc,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,KAAK,CAAC,aAAa,CAAC,cAAc,EAAE,cAAc,CAAC;IACtF,OAAO,qCAAmC;IAC1C,MAAM,CAAC,YAAY;;MAElB;IACD,KAAK;;MAEJ;IAEK,iBAAiB;IAIjB,kBAAkB;IASxB,IAAI,wBAAiB,OAAO,UAM3B;IAGD,MAAM;CAoBT"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { Button, Popover, Tooltip } from 'antd';
|
|
12
|
+
import RowEditCard from './row-edit-card';
|
|
13
|
+
export default class RowEditor extends React.PureComponent {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.formRef = React.createRef();
|
|
17
|
+
this.state = {
|
|
18
|
+
popoverVisible: false,
|
|
19
|
+
};
|
|
20
|
+
// reset = () => {
|
|
21
|
+
// if (this.formRef.current) {
|
|
22
|
+
// this.formRef.current.resetFields();
|
|
23
|
+
// }
|
|
24
|
+
// }
|
|
25
|
+
this.onOk = (value, hidden = true) => {
|
|
26
|
+
if (hidden) {
|
|
27
|
+
this.setState({ popoverVisible: false });
|
|
28
|
+
}
|
|
29
|
+
this.props.onOk(value);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
componentDidMount() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
componentDidUpdate() {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
const { popoverVisible } = this.state;
|
|
42
|
+
const { buttonIcon, buttonTitle, tooltipTitle, fieldGroupConfig, dtmplData, buttonStyle } = this.props;
|
|
43
|
+
return React.createElement(Popover, { destroyTooltipOnHide: true, placement: "leftBottom", visible: popoverVisible, content: React.createElement(RowEditCard, { fieldGroupConfig: fieldGroupConfig, dtmplData: dtmplData, onCancel: () => {
|
|
44
|
+
this.setState({ popoverVisible: false });
|
|
45
|
+
}, onOk: this.onOk }), trigger: "click" },
|
|
46
|
+
React.createElement(Tooltip, { placement: "left", title: tooltipTitle },
|
|
47
|
+
React.createElement(Button, { style: buttonStyle, type: 'primary', icon: buttonIcon, size: "small", onClick: () => {
|
|
48
|
+
this.setState({ popoverVisible: !popoverVisible });
|
|
49
|
+
} }, buttonTitle ? buttonTitle : "")));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
RowEditor.defaultProps = {
|
|
53
|
+
buttonIcon: undefined
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=row-editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-editor.js","sourceRoot":"","sources":["../../../../src/components/detail/edit/row-editor.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAgB,OAAO,EAAE,OAAO,EAAC,MAAM,MAAM,CAAA;AAG3D,OAAO,WAAW,MAAM,iBAAiB,CAAA;AAezC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,KAAK,CAAC,aAA6C;IAA1F;;QACI,YAAO,GAAG,KAAK,CAAC,SAAS,EAAgB,CAAC;QAI1C,UAAK,GAAG;YACJ,cAAc,EAAE,KAAK;SACxB,CAAA;QASD,kBAAkB;QAClB,kCAAkC;QAClC,8CAA8C;QAC9C,QAAQ;QACR,IAAI;QAEJ,SAAI,GAAG,CAAC,KAAK,EAAC,SAAe,IAAI,EAAE,EAAE;YACjC,IAAG,MAAM,EAAC;gBACN,IAAI,CAAC,QAAQ,CAAC,EAAC,cAAc,EAAC,KAAK,EAAC,CAAC,CAAC;aACzC;YAEF,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC,CAAA;IAuBL,CAAC;IA1CS,iBAAiB;;QAEvB,CAAC;KAAA;IAEK,kBAAkB;;QACxB,CAAC;KAAA;IAiBD,MAAM;QACF,MAAM,EAAC,cAAc,EAAC,GAAC,IAAI,CAAC,KAAK,CAAC;QAClC,MAAM,EAAC,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAC,WAAW,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QACpG,OAAO,oBAAC,OAAO,IAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAC,YAAY,EAAC,OAAO,EAAE,cAAc,EAC3E,OAAO,EAAE,oBAAC,WAAW,IAAC,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EACxD,QAAQ,EAAE,GAAE,EAAE;oBACV,IAAI,CAAC,QAAQ,CAAC,EAAC,cAAc,EAAC,KAAK,EAAC,CAAC,CAAC;gBAAA,CAAC,EACvC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAgB,EAAE,OAAO,EAAC,OAAO;YACtF,oBAAC,OAAO,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,YAAY;gBACzC,oBAAC,MAAM,IACH,KAAK,EAAE,WAAW,EAClB,IAAI,EAAC,SAAS,EACd,IAAI,EAAE,UAAU,EAChB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,GAAG,EAAE;wBACV,IAAI,CAAC,QAAQ,CAAC,EAAC,cAAc,EAAC,CAAC,cAAc,EAAC,CAAC,CAAC;oBACpD,CAAC,IACH,WAAW,CAAA,CAAC,CAAA,WAAW,CAAA,CAAC,CAAA,EAAE,CAAU,CAAU,CAAU,CAAA;IACtE,CAAC;;AA/CM,sBAAY,GAAG;IAClB,UAAU,EAAC,SAAS;CACvB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.rightBar{
|
|
2
|
+
background: #fff;
|
|
3
|
+
/*position: absolute;*/
|
|
4
|
+
/*right:10px;*/
|
|
5
|
+
/*top:80px;*/
|
|
6
|
+
border:1px solid #e8e8e8;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
box-shadow: 2px 2px 10px rgba(0,0,0,.2);
|
|
9
|
+
height:200px;
|
|
10
|
+
/*max-height:181px;*/
|
|
11
|
+
/*min-height:80px;*/
|
|
12
|
+
min-width: 96px;
|
|
13
|
+
overflow:auto;
|
|
14
|
+
}
|
|
15
|
+
.rightBar::-webkit-scrollbar {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
.rightBar ul{
|
|
19
|
+
padding:0;
|
|
20
|
+
margin:0;
|
|
21
|
+
}
|
|
22
|
+
.rightBar li{
|
|
23
|
+
list-style-type: none;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
padding:3px 7px;
|
|
26
|
+
width:95px;
|
|
27
|
+
text-align: center;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
text-overflow: ellipsis;
|
|
30
|
+
text-align: left;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
}
|
|
33
|
+
.rightBar li:hover{
|
|
34
|
+
background: #cfe3f5;
|
|
35
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
import { DtmplConfig, TmplBase } from "../../tmpl/interface";
|
|
4
|
+
interface RightBarProps {
|
|
5
|
+
parentId: string;
|
|
6
|
+
dtmplConfig: DtmplConfig;
|
|
7
|
+
positionRight?: number;
|
|
8
|
+
}
|
|
9
|
+
interface RightBarState {
|
|
10
|
+
}
|
|
11
|
+
export default class RightBar extends React.PureComponent<RightBarProps, RightBarState> {
|
|
12
|
+
static defaultProps: {
|
|
13
|
+
positionRight: number;
|
|
14
|
+
};
|
|
15
|
+
scrollToAnchor: (anchor: TmplBase) => void;
|
|
16
|
+
scroll: (e: any) => void;
|
|
17
|
+
render(): "" | JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/detail/rightbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,aAAa,CAAA;AACpB,OAAO,EAAC,WAAW,EAAE,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAG3D,UAAU,aAAa;IACnB,QAAQ,EAAC,MAAM,CAAC;IAChB,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,CAAC,EAAC,MAAM,CAAA;CACxB;AAGD,UAAU,aAAa;CAEtB;AAED,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC;IAEnF,MAAM,CAAC,YAAY;;MAElB;IACD,cAAc,WAAY,QAAQ,UAOjC;IACD,MAAM,mBAQL;IAED,MAAM;CAoCT"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
import { Affix } from "antd";
|
|
4
|
+
export default class RightBar extends React.PureComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.scrollToAnchor = (anchor) => {
|
|
8
|
+
if (anchor) {
|
|
9
|
+
let anchorElement = document.getElementById(this.props.parentId + anchor.id);
|
|
10
|
+
if (anchorElement) {
|
|
11
|
+
anchorElement.scrollIntoView({ behavior: "smooth", block: "end" });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
this.scroll = (e) => {
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
e.stopPropagation();
|
|
18
|
+
const list = document.getElementsByClassName("rightBar")[0];
|
|
19
|
+
if (list) {
|
|
20
|
+
const ul = list.getElementsByTagName("ul")[0];
|
|
21
|
+
ul.style.marginTop = "";
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
const { dtmplConfig, positionRight } = this.props;
|
|
27
|
+
const cardList = [];
|
|
28
|
+
if (dtmplConfig) {
|
|
29
|
+
dtmplConfig.groups.forEach(g => {
|
|
30
|
+
cardList.push({
|
|
31
|
+
title: g.title,
|
|
32
|
+
id: g.id,
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
if (dtmplConfig && dtmplConfig.premises && dtmplConfig.premises.length > 0) {
|
|
37
|
+
cardList.push({
|
|
38
|
+
id: dtmplConfig.premises[0].id, title: '默认字段',
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
return (cardList && cardList.length > 3 ?
|
|
43
|
+
React.createElement(Affix, { style: { position: 'absolute', top: 60, right: positionRight, }, offsetTop: 80 },
|
|
44
|
+
React.createElement("div", { className: 'rightBar', onScroll: this.scroll },
|
|
45
|
+
React.createElement("ul", null, cardList ? cardList.map((item, index) => React.createElement("li", { onClick: () => this.scrollToAnchor(item), key: index }, item.title)) : ""))) : "");
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
RightBar.defaultProps = {
|
|
49
|
+
positionRight: 15,
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/detail/rightbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAC,KAAK,EAAS,MAAM,MAAM,CAAC;AAanC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,KAAK,CAAC,aAA2C;IAAvF;;QAKI,mBAAc,GAAG,CAAC,MAAgB,EAAE,EAAE;YAClC,IAAI,MAAM,EAAE;gBACR,IAAI,aAAa,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBAC3E,IAAI,aAAa,EAAE;oBACf,aAAa,CAAC,cAAc,CAAC,EAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,CAAC,CAAA;iBACnE;aACJ;QACL,CAAC,CAAA;QACD,WAAM,GAAG,CAAC,CAAC,EAAE,EAAE;YACX,CAAC,CAAC,cAAc,EAAE,CAAA;YAClB,CAAC,CAAC,eAAe,EAAE,CAAA;YACnB,MAAM,IAAI,GAAG,QAAQ,CAAC,sBA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E,KAAK,EAAE,EAAE,CACpC,4BAAI,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,IAAG,IAAI,CAAC,KAAK,CAAM,CAE9E,CAAC,CAAC,CAAC,EAAE,CAET,CACH,CACF,CAAA,CAAC,CAAA,EAAE,CACd,CAAA;IACL,CAAC;;AAxDM,qBAAY,GAAG;IAClB,aAAa,EAAC,EAAE;CACnB,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DtmplBaseProps, DtmplConfig, DtmplData } from "../../tmpl/interface";
|
|
3
|
+
import '../dtmpl.css';
|
|
4
|
+
export interface ActDtmplViewProps extends DtmplBaseProps {
|
|
5
|
+
versionId?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ActDtmplViewStat {
|
|
8
|
+
loading: boolean;
|
|
9
|
+
dtmplConfig: DtmplConfig;
|
|
10
|
+
dtmplData: DtmplData;
|
|
11
|
+
premisesTitle: string;
|
|
12
|
+
snapshotVisible: boolean;
|
|
13
|
+
layout: object;
|
|
14
|
+
refreshCode: string;
|
|
15
|
+
}
|
|
16
|
+
declare class ActDtmplView extends React.PureComponent<ActDtmplViewProps, ActDtmplViewStat> {
|
|
17
|
+
static defaultProps: {
|
|
18
|
+
showRightNav: boolean;
|
|
19
|
+
rightBarPositionRight: number;
|
|
20
|
+
};
|
|
21
|
+
state: {
|
|
22
|
+
loading: boolean;
|
|
23
|
+
dtmplConfig: any;
|
|
24
|
+
snapshotVisible: boolean;
|
|
25
|
+
dtmplData: any;
|
|
26
|
+
premisesTitle: string;
|
|
27
|
+
layout: {
|
|
28
|
+
labelCol: {
|
|
29
|
+
span: number;
|
|
30
|
+
};
|
|
31
|
+
wrapperCol: {
|
|
32
|
+
span: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
refreshCode: any;
|
|
36
|
+
};
|
|
37
|
+
componentDidMount(): Promise<void>;
|
|
38
|
+
doRefresh: () => Promise<void>;
|
|
39
|
+
goEdit: () => void;
|
|
40
|
+
showSnapshot: () => void;
|
|
41
|
+
onSnapshotClose: () => void;
|
|
42
|
+
toSnapshot: () => void;
|
|
43
|
+
render(): JSX.Element;
|
|
44
|
+
}
|
|
45
|
+
export default ActDtmplView;
|
|
46
|
+
//# sourceMappingURL=act-dtmpl-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"act-dtmpl-view.d.ts","sourceRoot":"","sources":["../../../../src/components/detail/view/act-dtmpl-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAC,cAAc,EAAE,WAAW,EAAE,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAI5E,OAAO,cAAc,CAAC;AAMtB,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,cAAM,YAAa,SAAQ,KAAK,CAAC,aAAa,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;IAC/E,MAAM,CAAC,YAAY;;;MAGlB;IAED,KAAK;;;;;;;;;;;;;;;MAWJ;IAEK,iBAAiB;IAuBvB,SAAS,sBAIP;IAEF,MAAM,aAGL;IAED,YAAY,aAOX;IAED,eAAe,aAOd;IAGD,UAAU,aAET;IAED,MAAM;CAgDT;AAGD,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { Button, Card, Tooltip } from 'antd';
|
|
12
|
+
import { ReloadOutlined, ScheduleOutlined, EditOutlined } from '@ant-design/icons';
|
|
13
|
+
import HCDataSource from "../../tmpl/hc-data-source";
|
|
14
|
+
import '../dtmpl.css';
|
|
15
|
+
import SnapshotTimeline from "./snapshot-timeline";
|
|
16
|
+
import DtmplView from "./dtmpl-view";
|
|
17
|
+
import Units from '../../units';
|
|
18
|
+
;
|
|
19
|
+
;
|
|
20
|
+
class ActDtmplView extends React.PureComponent {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.state = {
|
|
24
|
+
loading: true,
|
|
25
|
+
dtmplConfig: undefined,
|
|
26
|
+
snapshotVisible: false,
|
|
27
|
+
dtmplData: undefined,
|
|
28
|
+
premisesTitle: "默认字段",
|
|
29
|
+
layout: {
|
|
30
|
+
labelCol: { span: 8 },
|
|
31
|
+
wrapperCol: { span: 16 },
|
|
32
|
+
},
|
|
33
|
+
refreshCode: undefined
|
|
34
|
+
};
|
|
35
|
+
// async componentDidUpdate(prevProps) {
|
|
36
|
+
// const {sourceName, sourceId, code, versionId} = this.props;
|
|
37
|
+
// const {code: preCode, versionId: preVersionId} = prevProps;
|
|
38
|
+
// if (code != preCode || (versionId && versionId != prevProps)) {
|
|
39
|
+
// await this.loadData();
|
|
40
|
+
// }
|
|
41
|
+
// }
|
|
42
|
+
//
|
|
43
|
+
// const layout = {
|
|
44
|
+
// labelCol: {span: 8},
|
|
45
|
+
// wrapperCol: {span: 16},
|
|
46
|
+
// };
|
|
47
|
+
this.doRefresh = () => __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
this.setState({
|
|
49
|
+
refreshCode: Units.getRandomNum(6)
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
this.goEdit = () => {
|
|
53
|
+
const { goDtmpl, code } = this.props;
|
|
54
|
+
goDtmpl(code);
|
|
55
|
+
};
|
|
56
|
+
this.showSnapshot = () => {
|
|
57
|
+
this.setState({
|
|
58
|
+
snapshotVisible: true,
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
this.onSnapshotClose = () => {
|
|
62
|
+
this.setState({
|
|
63
|
+
snapshotVisible: false,
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
this.toSnapshot = () => {
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
componentDidMount() {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
const { sourceId, code, versionId } = this.props;
|
|
72
|
+
let dtmplConfig = yield HCDataSource.requestDtmplConfig(sourceId);
|
|
73
|
+
this.setState({
|
|
74
|
+
dtmplConfig,
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
render() {
|
|
79
|
+
const { showRightNav, rightBarPositionRight, code, sourceId, goDtmpl } = this.props;
|
|
80
|
+
const { dtmplConfig, premisesTitle, loading, dtmplData, layout, snapshotVisible, refreshCode } = this.state;
|
|
81
|
+
const buttons = dtmplConfig ? dtmplConfig.buttons : undefined;
|
|
82
|
+
const premises = dtmplConfig ? dtmplConfig.premises : undefined;
|
|
83
|
+
let showRightNav_ = showRightNav;
|
|
84
|
+
if (dtmplConfig && dtmplConfig.groups.length < 4) {
|
|
85
|
+
showRightNav_ = false;
|
|
86
|
+
}
|
|
87
|
+
return (React.createElement("div", { className: `detailPage ${showRightNav_ ? 'showRightNav' : 'noRightNav'}` },
|
|
88
|
+
React.createElement(Card, { bordered: false, key: "detailTitle", className: "hoverable pageHeader" },
|
|
89
|
+
React.createElement("h3", null,
|
|
90
|
+
'详情',
|
|
91
|
+
React.createElement("div", { className: "fr" },
|
|
92
|
+
buttons && buttons.includes("dtmplEdit") && goDtmpl && !dtmplConfig.editAction ?
|
|
93
|
+
React.createElement(Button, { className: "hoverbig", onClick: this.goEdit },
|
|
94
|
+
React.createElement(EditOutlined, null)) : "",
|
|
95
|
+
buttons && buttons.includes("history") ?
|
|
96
|
+
React.createElement(Tooltip, { title: "\u6570\u636E\u5FEB\u7167" },
|
|
97
|
+
React.createElement(Button, { className: "hoverbig", onClick: this.showSnapshot },
|
|
98
|
+
React.createElement(ScheduleOutlined, null))) : "",
|
|
99
|
+
React.createElement(Button, { className: "hoverbig", title: "\u5237\u65B0", onClick: this.doRefresh },
|
|
100
|
+
React.createElement(ReloadOutlined, null)),
|
|
101
|
+
React.createElement(SnapshotTimeline, { dtmplConfig: dtmplConfig, code: code, onClose: this.onSnapshotClose, showSnapshot: this.toSnapshot, sourceId: sourceId, visible: snapshotVisible })))),
|
|
102
|
+
React.createElement(DtmplView, { refreshCode: refreshCode, showRightNav: showRightNav_, rightBarPositionRight: rightBarPositionRight, dtmplConfig: dtmplConfig, sourceId: sourceId, code: code })));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
ActDtmplView.defaultProps = {
|
|
106
|
+
showRightNav: true,
|
|
107
|
+
rightBarPositionRight: 15,
|
|
108
|
+
};
|
|
109
|
+
export default ActDtmplView;
|
|
110
|
+
//# sourceMappingURL=act-dtmpl-view.js.map
|