aldehyde 0.0.2 → 0.0.3
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/dist/aldehyde.js +1 -1
- package/dist/chemstruc-graph.js +1 -1
- package/dist/html-editor-draft.js +1 -1
- package/dist/index.html +1 -1
- package/dist/signature.js +1 -1
- package/lib/public/programConfig.json +10 -0
- package/lib/src/components/chart/antd/chart-utils.d.ts +7 -0
- package/lib/src/components/chart/antd/chart-utils.d.ts.map +1 -0
- package/lib/src/components/chart/antd/chart-utils.js +46 -0
- package/lib/src/components/chart/antd/chart-utils.js.map +1 -0
- package/lib/src/components/chart/antd/column-chart-sub.d.ts +7 -0
- package/lib/src/components/chart/antd/column-chart-sub.d.ts.map +1 -0
- package/lib/src/components/chart/antd/column-chart-sub.js +50 -0
- package/lib/src/components/chart/antd/column-chart-sub.js.map +1 -0
- package/lib/src/components/chart/antd/line-chart-sub.d.ts +7 -0
- package/lib/src/components/chart/antd/line-chart-sub.d.ts.map +1 -0
- package/lib/src/components/chart/antd/line-chart-sub.js +49 -0
- package/lib/src/components/chart/antd/line-chart-sub.js.map +1 -0
- package/lib/src/components/chart/antd/pie-chart-sub.d.ts +7 -0
- package/lib/src/components/chart/antd/pie-chart-sub.d.ts.map +1 -0
- package/lib/src/components/chart/antd/pie-chart-sub.js +37 -0
- package/lib/src/components/chart/antd/pie-chart-sub.js.map +1 -0
- package/lib/src/components/chart/antd/statview-d2-chart.d.ts +17 -0
- package/lib/src/components/chart/antd/statview-d2-chart.d.ts.map +1 -0
- package/lib/src/components/chart/antd/statview-d2-chart.js +108 -0
- package/lib/src/components/chart/antd/statview-d2-chart.js.map +1 -0
- package/lib/src/components/chart/statview-l2-chart.d.ts +23 -0
- package/lib/src/components/chart/statview-l2-chart.d.ts.map +1 -0
- package/lib/src/components/chart/statview-l2-chart.js +64 -0
- package/lib/src/components/chart/statview-l2-chart.js.map +1 -0
- package/lib/src/components/controls/action/index.d.ts +47 -0
- package/lib/src/components/controls/action/index.d.ts.map +1 -0
- package/lib/src/components/controls/action/index.js +165 -0
- package/lib/src/components/controls/action/index.js.map +1 -0
- package/lib/src/components/controls/action/utils.d.ts +9 -0
- package/lib/src/components/controls/action/utils.d.ts.map +1 -0
- package/{src/components/controls/action/utils.tsx → lib/src/components/controls/action/utils.js} +41 -53
- package/lib/src/components/controls/action/utils.js.map +1 -0
- package/lib/src/components/controls/auto-complete/index.d.ts +7 -0
- package/lib/src/components/controls/auto-complete/index.d.ts.map +1 -0
- package/lib/src/components/controls/auto-complete/index.js +53 -0
- package/lib/src/components/controls/auto-complete/index.js.map +1 -0
- package/lib/src/components/controls/chemstruc/graph.d.ts +31 -0
- package/lib/src/components/controls/chemstruc/graph.d.ts.map +1 -0
- package/lib/src/components/controls/chemstruc/graph.js +121 -0
- package/lib/src/components/controls/chemstruc/graph.js.map +1 -0
- package/lib/src/components/controls/collapse-card/index.d.ts +20 -0
- package/lib/src/components/controls/collapse-card/index.d.ts.map +1 -0
- package/lib/src/components/controls/collapse-card/index.js +63 -0
- package/lib/src/components/controls/collapse-card/index.js.map +1 -0
- package/lib/src/components/controls/color-picker/index.d.ts +19 -0
- package/lib/src/components/controls/color-picker/index.d.ts.map +1 -0
- package/lib/src/components/controls/color-picker/index.js +61 -0
- package/lib/src/components/controls/color-picker/index.js.map +1 -0
- package/lib/src/components/controls/cquery/cquick-button.d.ts +20 -0
- package/lib/src/components/controls/cquery/cquick-button.d.ts.map +1 -0
- package/lib/src/components/controls/cquery/cquick-button.js +67 -0
- package/lib/src/components/controls/cquery/cquick-button.js.map +1 -0
- package/lib/src/components/controls/date-picker/index.d.ts +7 -0
- package/lib/src/components/controls/date-picker/index.d.ts.map +1 -0
- package/lib/src/components/controls/date-picker/index.js +91 -0
- package/lib/src/components/controls/date-picker/index.js.map +1 -0
- package/lib/src/components/controls/entity-select/entity-select.d.ts +53 -0
- package/lib/src/components/controls/entity-select/entity-select.d.ts.map +1 -0
- package/lib/src/components/controls/entity-select/entity-select.js +227 -0
- package/lib/src/components/controls/entity-select/entity-select.js.map +1 -0
- package/lib/src/components/controls/entity-select/popover-entity-select.d.ts +20 -0
- package/lib/src/components/controls/entity-select/popover-entity-select.d.ts.map +1 -0
- package/lib/src/components/controls/entity-select/popover-entity-select.js +80 -0
- package/lib/src/components/controls/entity-select/popover-entity-select.js.map +1 -0
- package/lib/src/components/controls/entry-control.d.ts +11 -0
- package/lib/src/components/controls/entry-control.d.ts.map +1 -0
- package/lib/src/components/controls/entry-control.js +171 -0
- package/lib/src/components/controls/entry-control.js.map +1 -0
- package/lib/src/components/controls/enum-badge/index.d.ts +7 -0
- package/lib/src/components/controls/enum-badge/index.d.ts.map +1 -0
- package/lib/src/components/controls/enum-badge/index.js +14 -0
- package/lib/src/components/controls/enum-badge/index.js.map +1 -0
- package/lib/src/components/controls/enum-tag/index.d.ts +7 -0
- package/lib/src/components/controls/enum-tag/index.d.ts.map +1 -0
- package/lib/src/components/controls/enum-tag/index.js +18 -0
- package/lib/src/components/controls/enum-tag/index.js.map +1 -0
- package/lib/src/components/controls/file-view/drawer-file-view.d.ts +18 -0
- package/lib/src/components/controls/file-view/drawer-file-view.d.ts.map +1 -0
- package/lib/src/components/controls/file-view/drawer-file-view.js +51 -0
- package/lib/src/components/controls/file-view/drawer-file-view.js.map +1 -0
- package/lib/src/components/controls/file-view/index.d.ts +23 -0
- package/lib/src/components/controls/file-view/index.d.ts.map +1 -0
- package/lib/src/components/controls/file-view/index.js +130 -0
- package/lib/src/components/controls/file-view/index.js.map +1 -0
- package/lib/src/components/controls/html-editor/draft.d.ts +22 -0
- package/lib/src/components/controls/html-editor/draft.d.ts.map +1 -0
- package/lib/src/components/controls/html-editor/draft.js +122 -0
- package/lib/src/components/controls/html-editor/draft.js.map +1 -0
- package/lib/src/components/controls/input-number/index.d.ts +7 -0
- package/lib/src/components/controls/input-number/index.d.ts.map +1 -0
- package/lib/src/components/controls/input-number/index.js +67 -0
- package/lib/src/components/controls/input-number/index.js.map +1 -0
- package/lib/src/components/controls/input-range/index.d.ts +7 -0
- package/lib/src/components/controls/input-range/index.d.ts.map +1 -0
- package/lib/src/components/controls/input-range/index.js +28 -0
- package/lib/src/components/controls/input-range/index.js.map +1 -0
- package/lib/src/components/controls/progress/index.d.ts +7 -0
- package/lib/src/components/controls/progress/index.d.ts.map +1 -0
- package/lib/src/components/controls/progress/index.js +45 -0
- package/lib/src/components/controls/progress/index.js.map +1 -0
- package/lib/src/components/controls/relation-existion/index.d.ts +20 -0
- package/lib/src/components/controls/relation-existion/index.d.ts.map +1 -0
- package/lib/src/components/controls/relation-existion/index.js +75 -0
- package/lib/src/components/controls/relation-existion/index.js.map +1 -0
- package/lib/src/components/controls/rfield/index.d.ts +29 -0
- package/lib/src/components/controls/rfield/index.d.ts.map +1 -0
- package/lib/src/components/controls/rfield/index.js +130 -0
- package/lib/src/components/controls/rfield/index.js.map +1 -0
- package/lib/src/components/controls/signature/index.d.ts +31 -0
- package/lib/src/components/controls/signature/index.d.ts.map +1 -0
- package/lib/src/components/controls/signature/index.js +129 -0
- package/lib/src/components/controls/signature/index.js.map +1 -0
- package/lib/src/components/controls/steps/index.d.ts +7 -0
- package/lib/src/components/controls/steps/index.d.ts.map +1 -0
- package/lib/src/components/controls/steps/index.js +42 -0
- package/lib/src/components/controls/steps/index.js.map +1 -0
- package/lib/src/components/controls/text/ellipsis-text.d.ts +22 -0
- package/lib/src/components/controls/text/ellipsis-text.d.ts.map +1 -0
- package/lib/src/components/controls/text/ellipsis-text.js +46 -0
- package/lib/src/components/controls/text/ellipsis-text.js.map +1 -0
- package/lib/src/components/controls/upload/index.d.ts +15 -0
- package/lib/src/components/controls/upload/index.d.ts.map +1 -0
- package/lib/src/components/controls/upload/index.js +100 -0
- package/lib/src/components/controls/upload/index.js.map +1 -0
- package/lib/src/components/controls/view-control.d.ts +10 -0
- package/lib/src/components/controls/view-control.d.ts.map +1 -0
- package/lib/src/components/controls/view-control.js +150 -0
- package/lib/src/components/controls/view-control.js.map +1 -0
- package/lib/src/components/detail/button/cquery-button-bar.d.ts +16 -0
- package/lib/src/components/detail/button/cquery-button-bar.d.ts.map +1 -0
- package/lib/src/components/detail/button/cquery-button-bar.js +75 -0
- package/lib/src/components/detail/button/cquery-button-bar.js.map +1 -0
- package/lib/src/components/detail/button/submit-button-bar.d.ts +19 -0
- package/lib/src/components/detail/button/submit-button-bar.d.ts.map +1 -0
- package/lib/src/components/detail/button/submit-button-bar.js +99 -0
- package/lib/src/components/detail/button/submit-button-bar.js.map +1 -0
- package/lib/src/components/detail/edit/dtmpl-edit.d.ts +48 -0
- package/lib/src/components/detail/edit/dtmpl-edit.d.ts.map +1 -0
- package/lib/src/components/detail/edit/dtmpl-edit.js +190 -0
- package/lib/src/components/detail/edit/dtmpl-edit.js.map +1 -0
- package/lib/src/components/detail/edit/fields-edit-card.d.ts +39 -0
- package/lib/src/components/detail/edit/fields-edit-card.d.ts.map +1 -0
- package/lib/src/components/detail/edit/fields-edit-card.js +64 -0
- package/lib/src/components/detail/edit/fields-edit-card.js.map +1 -0
- package/lib/src/components/detail/edit/modal-dtmpl-edit.d.ts +51 -0
- package/lib/src/components/detail/edit/modal-dtmpl-edit.d.ts.map +1 -0
- package/lib/src/components/detail/edit/modal-dtmpl-edit.js +168 -0
- package/lib/src/components/detail/edit/modal-dtmpl-edit.js.map +1 -0
- package/lib/src/components/detail/edit/modal-row-edit.d.ts +31 -0
- package/lib/src/components/detail/edit/modal-row-edit.d.ts.map +1 -0
- package/lib/src/components/detail/edit/modal-row-edit.js +56 -0
- package/lib/src/components/detail/edit/modal-row-edit.js.map +1 -0
- package/lib/src/components/detail/edit/post-result/index.d.ts +17 -0
- package/lib/src/components/detail/edit/post-result/index.d.ts.map +1 -0
- package/lib/src/components/detail/edit/post-result/index.js +28 -0
- package/lib/src/components/detail/edit/post-result/index.js.map +1 -0
- package/lib/src/components/detail/edit/row-edit-card.d.ts +42 -0
- package/lib/src/components/detail/edit/row-edit-card.d.ts.map +1 -0
- package/lib/src/components/detail/edit/row-edit-card.js +84 -0
- package/lib/src/components/detail/edit/row-edit-card.js.map +1 -0
- package/lib/src/components/detail/edit/row-editor.d.ts +31 -0
- package/lib/src/components/detail/edit/row-editor.d.ts.map +1 -0
- package/lib/src/components/detail/edit/row-editor.js +55 -0
- package/lib/src/components/detail/edit/row-editor.js.map +1 -0
- package/lib/src/components/detail/rightbar/index.d.ts +20 -0
- package/lib/src/components/detail/rightbar/index.d.ts.map +1 -0
- package/lib/src/components/detail/rightbar/index.js +51 -0
- package/lib/src/components/detail/rightbar/index.js.map +1 -0
- package/lib/src/components/detail/view/act-dtmpl-view.d.ts +46 -0
- package/lib/src/components/detail/view/act-dtmpl-view.d.ts.map +1 -0
- package/lib/src/components/detail/view/act-dtmpl-view.js +110 -0
- package/lib/src/components/detail/view/act-dtmpl-view.js.map +1 -0
- package/lib/src/components/detail/view/dtmpl-view.d.ts +42 -0
- package/lib/src/components/detail/view/dtmpl-view.d.ts.map +1 -0
- package/lib/src/components/detail/view/dtmpl-view.js +111 -0
- package/lib/src/components/detail/view/dtmpl-view.js.map +1 -0
- package/lib/src/components/detail/view/field-view-group.d.ts +17 -0
- package/lib/src/components/detail/view/field-view-group.d.ts.map +1 -0
- package/lib/src/components/detail/view/field-view-group.js +51 -0
- package/lib/src/components/detail/view/field-view-group.js.map +1 -0
- package/lib/src/components/detail/view/modal-dtmpl-view.d.ts +27 -0
- package/lib/src/components/detail/view/modal-dtmpl-view.d.ts.map +1 -0
- package/lib/src/components/detail/view/modal-dtmpl-view.js +32 -0
- package/lib/src/components/detail/view/modal-dtmpl-view.js.map +1 -0
- package/lib/src/components/detail/view/snapshot-timeline.d.ts +32 -0
- package/lib/src/components/detail/view/snapshot-timeline.d.ts.map +1 -0
- package/lib/src/components/detail/view/snapshot-timeline.js +90 -0
- package/lib/src/components/detail/view/snapshot-timeline.js.map +1 -0
- package/lib/src/components/exportor/export-frame.d.ts +50 -0
- package/lib/src/components/exportor/export-frame.d.ts.map +1 -0
- package/lib/src/components/exportor/export-frame.js +140 -0
- package/lib/src/components/exportor/export-frame.js.map +1 -0
- package/lib/src/components/exportor/index.d.ts +16 -0
- package/lib/src/components/exportor/index.d.ts.map +1 -0
- package/lib/src/components/exportor/index.js +44 -0
- package/lib/src/components/exportor/index.js.map +1 -0
- package/lib/src/components/form/criteria-form.d.ts +19 -0
- package/lib/src/components/form/criteria-form.d.ts.map +1 -0
- package/lib/src/components/form/criteria-form.js +167 -0
- package/lib/src/components/form/criteria-form.js.map +1 -0
- package/lib/src/components/form/dtmpl-form.d.ts +37 -0
- package/lib/src/components/form/dtmpl-form.d.ts.map +1 -0
- package/lib/src/components/form/dtmpl-form.js +213 -0
- package/lib/src/components/form/dtmpl-form.js.map +1 -0
- package/lib/src/components/form/field-group-form.d.ts +21 -0
- package/lib/src/components/form/field-group-form.d.ts.map +1 -0
- package/lib/src/components/form/field-group-form.js +58 -0
- package/lib/src/components/form/field-group-form.js.map +1 -0
- package/lib/src/components/form/fields-form.d.ts +20 -0
- package/lib/src/components/form/fields-form.d.ts.map +1 -0
- package/lib/src/components/form/fields-form.js +39 -0
- package/lib/src/components/form/fields-form.js.map +1 -0
- package/lib/src/components/form/form-Item-group.d.ts +22 -0
- package/lib/src/components/form/form-Item-group.d.ts.map +1 -0
- package/lib/src/components/form/form-Item-group.js +60 -0
- package/lib/src/components/form/form-Item-group.js.map +1 -0
- package/lib/src/components/import/excel-import.d.ts +48 -0
- package/lib/src/components/import/excel-import.d.ts.map +1 -0
- package/lib/src/components/import/excel-import.js +234 -0
- package/lib/src/components/import/excel-import.js.map +1 -0
- package/lib/src/components/layout/MainPage.d.ts +32 -0
- package/lib/src/components/layout/MainPage.d.ts.map +1 -0
- package/lib/src/components/layout/MainPage.js +202 -0
- package/lib/src/components/layout/MainPage.js.map +1 -0
- package/lib/src/components/layout/header/index.d.ts +16 -0
- package/lib/src/components/layout/header/index.d.ts.map +1 -0
- package/lib/src/components/layout/header/index.js +37 -0
- package/lib/src/components/layout/header/index.js.map +1 -0
- package/lib/src/components/layout/menu/block.d.ts +9 -0
- package/lib/src/components/layout/menu/block.d.ts.map +1 -0
- package/lib/src/components/layout/menu/block.js +48 -0
- package/lib/src/components/layout/menu/block.js.map +1 -0
- package/lib/src/components/layout/menu/l2menu-message-bar.d.ts +24 -0
- package/lib/src/components/layout/menu/l2menu-message-bar.d.ts.map +1 -0
- package/lib/src/components/layout/menu/l2menu-message-bar.js +97 -0
- package/lib/src/components/layout/menu/l2menu-message-bar.js.map +1 -0
- package/lib/src/components/layout/menu/l2menu-quick-bar.d.ts +30 -0
- package/lib/src/components/layout/menu/l2menu-quick-bar.d.ts.map +1 -0
- package/lib/src/components/layout/menu/l2menu-quick-bar.js +94 -0
- package/lib/src/components/layout/menu/l2menu-quick-bar.js.map +1 -0
- package/lib/src/components/layout/menu/menu-2layers.d.ts +9 -0
- package/lib/src/components/layout/menu/menu-2layers.d.ts.map +1 -0
- package/lib/src/components/layout/menu/menu-2layers.js +63 -0
- package/lib/src/components/layout/menu/menu-2layers.js.map +1 -0
- package/lib/src/components/layout/menu/menu-render.d.ts +8 -0
- package/lib/src/components/layout/menu/menu-render.d.ts.map +1 -0
- package/lib/src/components/layout/menu/menu-render.js +44 -0
- package/lib/src/components/layout/menu/menu-render.js.map +1 -0
- package/lib/src/components/layout/menu/reset-password.d.ts +25 -0
- package/lib/src/components/layout/menu/reset-password.d.ts.map +1 -0
- package/lib/src/components/layout/menu/reset-password.js +113 -0
- package/lib/src/components/layout/menu/reset-password.js.map +1 -0
- package/lib/src/components/layout/menu/user-bar.d.ts +19 -0
- package/lib/src/components/layout/menu/user-bar.d.ts.map +1 -0
- package/lib/src/components/layout/menu/user-bar.js +61 -0
- package/lib/src/components/layout/menu/user-bar.js.map +1 -0
- package/lib/src/components/layout/menu/userinfo-bar.d.ts +18 -0
- package/lib/src/components/layout/menu/userinfo-bar.d.ts.map +1 -0
- package/lib/src/components/layout/menu/userinfo-bar.js +50 -0
- package/lib/src/components/layout/menu/userinfo-bar.js.map +1 -0
- package/lib/src/components/layout/sidebar/index.d.ts +12 -0
- package/lib/src/components/layout/sidebar/index.d.ts.map +1 -0
- package/lib/src/components/layout/sidebar/index.js +19 -0
- package/lib/src/components/layout/sidebar/index.js.map +1 -0
- package/lib/src/components/module/dtmpl-page.d.ts +19 -0
- package/lib/src/components/module/dtmpl-page.d.ts.map +1 -0
- package/lib/src/components/module/dtmpl-page.js +46 -0
- package/lib/src/components/module/dtmpl-page.js.map +1 -0
- package/lib/src/components/module/ltmpl-page.d.ts +34 -0
- package/lib/src/components/module/ltmpl-page.d.ts.map +1 -0
- package/lib/src/components/module/ltmpl-page.js +154 -0
- package/lib/src/components/module/ltmpl-page.js.map +1 -0
- package/lib/src/components/routable/dtmpl-route.d.ts +17 -0
- package/lib/src/components/routable/dtmpl-route.d.ts.map +1 -0
- package/lib/src/components/routable/dtmpl-route.js +77 -0
- package/lib/src/components/routable/dtmpl-route.js.map +1 -0
- package/lib/src/components/routable/import-route.d.ts +13 -0
- package/lib/src/components/routable/import-route.d.ts.map +1 -0
- package/lib/src/components/routable/import-route.js +29 -0
- package/lib/src/components/routable/import-route.js.map +1 -0
- package/lib/src/components/routable/ltmpl-route.d.ts +25 -0
- package/lib/src/components/routable/ltmpl-route.d.ts.map +1 -0
- package/lib/src/components/routable/ltmpl-route.js +145 -0
- package/lib/src/components/routable/ltmpl-route.js.map +1 -0
- package/lib/src/components/table/act-table.d.ts +76 -0
- package/lib/src/components/table/act-table.d.ts.map +1 -0
- package/lib/src/components/table/act-table.js +454 -0
- package/lib/src/components/table/act-table.js.map +1 -0
- package/lib/src/components/table/column/column-selector.d.ts +26 -0
- package/lib/src/components/table/column/column-selector.d.ts.map +1 -0
- package/lib/src/components/table/column/column-selector.js +59 -0
- package/lib/src/components/table/column/column-selector.js.map +1 -0
- package/lib/src/components/table/l2-act-table.d.ts +23 -0
- package/lib/src/components/table/l2-act-table.d.ts.map +1 -0
- package/lib/src/components/table/l2-act-table.js +80 -0
- package/lib/src/components/table/l2-act-table.js.map +1 -0
- package/lib/src/components/table/modal-select-table.d.ts +41 -0
- package/lib/src/components/table/modal-select-table.d.ts.map +1 -0
- package/lib/src/components/table/modal-select-table.js +208 -0
- package/lib/src/components/table/modal-select-table.js.map +1 -0
- package/lib/src/components/table/pagination.d.ts +17 -0
- package/lib/src/components/table/pagination.d.ts.map +1 -0
- package/lib/src/components/table/pagination.js +40 -0
- package/lib/src/components/table/pagination.js.map +1 -0
- package/lib/src/components/table/query-table.d.ts +65 -0
- package/lib/src/components/table/query-table.d.ts.map +1 -0
- package/lib/src/components/table/query-table.js +257 -0
- package/lib/src/components/table/query-table.js.map +1 -0
- package/lib/src/components/table/relation-table.d.ts +61 -0
- package/lib/src/components/table/relation-table.d.ts.map +1 -0
- package/lib/src/components/table/relation-table.js +444 -0
- package/lib/src/components/table/relation-table.js.map +1 -0
- package/lib/src/components/table/select-table.d.ts +40 -0
- package/lib/src/components/table/select-table.d.ts.map +1 -0
- package/lib/src/components/table/select-table.js +223 -0
- package/lib/src/components/table/select-table.js.map +1 -0
- package/lib/src/components/table/selected-rows-card.d.ts +16 -0
- package/lib/src/components/table/selected-rows-card.d.ts.map +1 -0
- package/lib/src/components/table/selected-rows-card.js +47 -0
- package/lib/src/components/table/selected-rows-card.js.map +1 -0
- package/lib/src/components/table/stat/restat.d.ts +26 -0
- package/lib/src/components/table/stat/restat.d.ts.map +1 -0
- package/lib/src/components/table/stat/restat.js +61 -0
- package/lib/src/components/table/stat/restat.js.map +1 -0
- package/lib/src/components/table/table-util.d.ts +5 -0
- package/lib/src/components/table/table-util.d.ts.map +1 -0
- package/{src/components/table/table-util.tsx → lib/src/components/table/table-util.js} +12 -15
- package/lib/src/components/table/table-util.js.map +1 -0
- package/lib/src/components/tmpl/control-type-supportor.d.ts +9 -0
- package/lib/src/components/tmpl/control-type-supportor.d.ts.map +1 -0
- package/{src/components/tmpl/control-type-supportor.tsx → lib/src/components/tmpl/control-type-supportor.js} +18 -30
- package/lib/src/components/tmpl/control-type-supportor.js.map +1 -0
- package/lib/src/components/tmpl/hc-data-source.d.ts +19 -0
- package/lib/src/components/tmpl/hc-data-source.d.ts.map +1 -0
- package/lib/src/components/tmpl/hc-data-source.js +230 -0
- package/lib/src/components/tmpl/hc-data-source.js.map +1 -0
- package/lib/src/components/tmpl/hcservice-v3.d.ts +53 -0
- package/lib/src/components/tmpl/hcservice-v3.d.ts.map +1 -0
- package/lib/src/components/tmpl/hcservice-v3.js +639 -0
- package/lib/src/components/tmpl/hcservice-v3.js.map +1 -0
- package/{src/components/tmpl/interface.tsx → lib/src/components/tmpl/interface.d.ts} +73 -147
- package/lib/src/components/tmpl/interface.d.ts.map +1 -0
- package/lib/src/components/tmpl/interface.js +4 -0
- package/lib/src/components/tmpl/interface.js.map +1 -0
- package/lib/src/components/tmpl/tmpl-config-analysis.d.ts +7 -0
- package/lib/src/components/tmpl/tmpl-config-analysis.d.ts.map +1 -0
- package/lib/src/components/tmpl/tmpl-config-analysis.js +106 -0
- package/lib/src/components/tmpl/tmpl-config-analysis.js.map +1 -0
- package/lib/src/components/units/index.d.ts +58 -0
- package/lib/src/components/units/index.d.ts.map +1 -0
- package/{src/components/units/index.tsx → lib/src/components/units/index.js} +149 -150
- package/lib/src/components/units/index.js.map +1 -0
- package/lib/src/components/welcome/quick-entrance.d.ts +20 -0
- package/lib/src/components/welcome/quick-entrance.d.ts.map +1 -0
- package/lib/src/components/welcome/quick-entrance.js +79 -0
- package/lib/src/components/welcome/quick-entrance.js.map +1 -0
- package/lib/src/components/welcome/workbench.d.ts +20 -0
- package/lib/src/components/welcome/workbench.d.ts.map +1 -0
- package/lib/src/components/welcome/workbench.js +78 -0
- package/lib/src/components/welcome/workbench.js.map +1 -0
- package/lib/src/index.d.ts +4 -0
- package/lib/src/index.d.ts.map +1 -0
- package/lib/src/index.js +4 -0
- package/lib/src/index.js.map +1 -0
- package/package.json +27 -9
- package/dist/css/chemstruc-graph-87868f791bf92fb80db9.css +0 -29
- package/dist/css/main-2e6725ec1b56da516cee.css +0 -256
- package/src/components/chart/antd/Chart.js +0 -32
- package/src/components/chart/antd/Chart10000.js +0 -90
- package/src/components/chart/antd/Max2DimLineChart.js +0 -128
- package/src/components/chart/antd/PieChart1.js +0 -54
- package/src/components/chart/antd/PieChart2.js +0 -56
- package/src/components/chart/antd/chart-utils.tsx +0 -50
- package/src/components/chart/antd/column-chart-sub.tsx +0 -67
- package/src/components/chart/antd/line-chart-sub.tsx +0 -65
- package/src/components/chart/antd/pie-chart-sub.tsx +0 -54
- package/src/components/chart/antd/statview-d2-chart.tsx +0 -125
- package/src/components/chart/statview-l2-chart.tsx +0 -69
- package/src/components/controls/action/index.css +0 -9
- package/src/components/controls/action/index.tsx +0 -228
- package/src/components/controls/auto-complete/index.tsx +0 -80
- package/src/components/controls/cascader/index.js +0 -97
- package/src/components/controls/chemstruc/graph.tsx +0 -150
- package/src/components/controls/chemstruc/index.css +0 -28
- package/src/components/controls/collapse-card/index.css +0 -9
- package/src/components/controls/collapse-card/index.tsx +0 -59
- package/src/components/controls/color-picker/index.css +0 -27
- package/src/components/controls/color-picker/index.tsx +0 -88
- package/src/components/controls/cquery/cquick-button.tsx +0 -117
- package/src/components/controls/date-picker/index.tsx +0 -141
- package/src/components/controls/entity-select/entity-select.tsx +0 -277
- package/src/components/controls/entity-select/index.css +0 -6
- package/src/components/controls/entity-select/popover-entity-select.tsx +0 -112
- package/src/components/controls/entry-control.tsx +0 -240
- package/src/components/controls/enum-badge/index.tsx +0 -28
- package/src/components/controls/enum-tag/index.tsx +0 -30
- package/src/components/controls/file-view/drawer-file-view.tsx +0 -69
- package/src/components/controls/file-view/index.tsx +0 -145
- package/src/components/controls/html-editor/draft.tsx +0 -161
- package/src/components/controls/html-editor/tinymce.js +0 -55
- package/src/components/controls/input-number/index.tsx +0 -101
- package/src/components/controls/input-range/index.tsx +0 -48
- package/src/components/controls/password-setter/index.css +0 -3
- package/src/components/controls/password-setter/index.js +0 -70
- package/src/components/controls/progress/index.tsx +0 -61
- package/src/components/controls/relation-existion/index.css +0 -4
- package/src/components/controls/relation-existion/index.tsx +0 -108
- package/src/components/controls/rfield/index.css +0 -4
- package/src/components/controls/rfield/index.tsx +0 -161
- package/src/components/controls/signature/index.tsx +0 -162
- package/src/components/controls/steps/index.tsx +0 -58
- package/src/components/controls/text/ellipsis-text.tsx +0 -70
- package/src/components/controls/upload/index.tsx +0 -122
- package/src/components/controls/view-control.tsx +0 -177
- package/src/components/detail/button/cquery-button-bar.tsx +0 -112
- package/src/components/detail/button/index.css +0 -43
- package/src/components/detail/button/submit-button-bar.tsx +0 -151
- package/src/components/detail/dtmpl.css +0 -53
- package/src/components/detail/edit/dtmpl-edit.tsx +0 -218
- package/src/components/detail/edit/fields-edit-card.tsx +0 -103
- package/src/components/detail/edit/modal-dtmpl-edit.tsx +0 -198
- package/src/components/detail/edit/modal-row-edit.tsx +0 -72
- package/src/components/detail/edit/post-result/index.tsx +0 -52
- package/src/components/detail/edit/row-edit-card.tsx +0 -125
- package/src/components/detail/edit/row-editor.tsx +0 -71
- package/src/components/detail/rightbar/index.css +0 -35
- package/src/components/detail/rightbar/index.tsx +0 -76
- package/src/components/detail/view/act-dtmpl-view.tsx +0 -155
- package/src/components/detail/view/dtmpl-view.tsx +0 -143
- package/src/components/detail/view/field-view-group.tsx +0 -73
- package/src/components/detail/view/modal-dtmpl-view.tsx +0 -56
- package/src/components/detail/view/snapshot-timeline.tsx +0 -130
- package/src/components/exportor/export-frame.css +0 -3
- package/src/components/exportor/export-frame.tsx +0 -194
- package/src/components/exportor/index.tsx +0 -60
- package/src/components/form/criteria-form.tsx +0 -241
- package/src/components/form/dtmpl-form.css +0 -4
- package/src/components/form/dtmpl-form.tsx +0 -272
- package/src/components/form/field-group-form.tsx +0 -75
- package/src/components/form/fields-form.tsx +0 -51
- package/src/components/form/form-Item-group.tsx +0 -99
- package/src/components/form/index.css +0 -13
- package/src/components/import/excel-import.tsx +0 -316
- package/src/components/import/index.css +0 -54
- package/src/components/import/template-builder.js +0 -474
- package/src/components/import/template.css +0 -51
- package/src/components/layout/MainPage.tsx +0 -230
- package/src/components/layout/footer/index.css +0 -6
- package/src/components/layout/footer/index.js +0 -17
- package/src/components/layout/header/index.css +0 -86
- package/src/components/layout/header/index.tsx +0 -58
- package/src/components/layout/menu/block.tsx +0 -88
- package/src/components/layout/menu/l2menu-message-bar.tsx +0 -118
- package/src/components/layout/menu/l2menu-quick-bar.tsx +0 -132
- package/src/components/layout/menu/menu-2layers.tsx +0 -92
- package/src/components/layout/menu/menu-render.tsx +0 -49
- package/src/components/layout/menu/reset-password.tsx +0 -185
- package/src/components/layout/menu/user-bar.tsx +0 -97
- package/src/components/layout/menu/userinfo-bar.tsx +0 -70
- package/src/components/layout/sidebar/index.css +0 -26
- package/src/components/layout/sidebar/index.tsx +0 -38
- package/src/components/login.js +0 -137
- package/src/components/module/criteria-page.tsx +0 -175
- package/src/components/module/dtmpl-page.tsx +0 -70
- package/src/components/module/ltmpl-page.tsx +0 -181
- package/src/components/routable/dtmpl-route.tsx +0 -96
- package/src/components/routable/import-route.tsx +0 -28
- package/src/components/routable/ltmpl-route.tsx +0 -158
- package/src/components/table/act-table.tsx +0 -635
- package/src/components/table/column/column-selector.tsx +0 -79
- package/src/components/table/column/index.css +0 -14
- package/src/components/table/index.css +0 -45
- package/src/components/table/l2-act-table.tsx +0 -85
- package/src/components/table/modal-select-table.tsx +0 -248
- package/src/components/table/pagination.css +0 -15
- package/src/components/table/pagination.tsx +0 -72
- package/src/components/table/query-table.tsx +0 -331
- package/src/components/table/relation-table.tsx +0 -600
- package/src/components/table/select-table.tsx +0 -247
- package/src/components/table/selected-rows-card.tsx +0 -62
- package/src/components/table/stat/restat.tsx +0 -79
- package/src/components/tmpl/hc-data-source.tsx +0 -230
- package/src/components/tmpl/hcservice-v3.tsx +0 -624
- package/src/components/tmpl/superagent.js +0 -93
- package/src/components/tmpl/tmpl-config-analysis.tsx +0 -111
- package/src/components/units/EncryptUtils.js +0 -38
- package/src/components/units/image.d.ts +0 -8
- package/src/components/units/logo.png +0 -0
- package/src/components/units/storage.js +0 -3
- package/src/components/welcome/HCWelcome.js +0 -232
- package/src/components/welcome/index.css +0 -13
- package/src/components/welcome/logo.png +0 -0
- package/src/components/welcome/quick-entrance.tsx +0 -77
- package/src/components/welcome/workbench.tsx +0 -76
- package/src/index.js +0 -5
- package/src/style/common.css +0 -79
- package/src/style/coverstyle.css +0 -49
- package/src/style/transstyle.css +0 -24
- package/tsconfig.json +0 -106
|
@@ -0,0 +1,39 @@
|
|
|
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 { Form as AntdForm } from 'antd';
|
|
12
|
+
import './dtmpl-form.css';
|
|
13
|
+
import FormItemGroup from './form-Item-group';
|
|
14
|
+
;
|
|
15
|
+
;
|
|
16
|
+
export default class FieldsForm extends React.PureComponent {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.state = {};
|
|
20
|
+
}
|
|
21
|
+
componentDidMount() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
// onSubmit = (values: any) => {
|
|
26
|
+
// const {dtmplData, fields} = this.props;
|
|
27
|
+
// let data: DtmplData = {
|
|
28
|
+
// fieldMap: values,
|
|
29
|
+
// };
|
|
30
|
+
// this.props.onFinish(data);
|
|
31
|
+
// }
|
|
32
|
+
render() {
|
|
33
|
+
const { formRef, fields, value, onFinish, onValuesChange } = this.props;
|
|
34
|
+
return (React.createElement(React.Fragment, null,
|
|
35
|
+
React.createElement(AntdForm, { onValuesChange: onValuesChange, labelWrap: true, ref: formRef, name: "control-hooks", onFinish: onFinish },
|
|
36
|
+
React.createElement(FormItemGroup, { nameAttr: 'id', fields: fields, valueMap: value }))));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=fields-form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields-form.js","sourceRoot":"","sources":["../../../../src/components/form/fields-form.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AACtC,OAAO,EAAC,IAAI,IAAI,QAAQ,EAAC,MAAM,MAAM,CAAA;AAGrC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAS7C,CAAC;AAID,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,KAAK,CAAC,aAA8C;IAA5F;;QACI,UAAK,GAAG,EAAE,CAAA;IA2Bd,CAAC;IAzBS,iBAAiB;;QAEvB,CAAC;KAAA;IAED,gCAAgC;IAChC,8CAA8C;IAC9C,8BAA8B;IAC9B,4BAA4B;IAC5B,SAAS;IACT,iCAAiC;IACjC,IAAI;IAGJ,MAAM;QACF,MAAM,EAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAC,QAAQ,EAAC,cAAc,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QACpE,OAAO,CACH;YACI,oBAAC,QAAQ,IAAC,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAC,eAAe,EAAC,QAAQ,EAAE,QAAQ;gBAC5G,oBAAC,aAAa,IAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAC9B,QAAQ,EAAE,KAAK,GAAkB,CACzC,CACZ,CACN,CAAC;IACN,CAAC;CAEJ"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import 'moment/locale/zh-cn';
|
|
3
|
+
import { FieldConfig } from "../tmpl/interface";
|
|
4
|
+
export interface FieldGroupProps {
|
|
5
|
+
fields: FieldConfig[];
|
|
6
|
+
nameAttr?: string;
|
|
7
|
+
valueMap: object;
|
|
8
|
+
width?: number;
|
|
9
|
+
}
|
|
10
|
+
interface FieldGroupState {
|
|
11
|
+
fileList: any;
|
|
12
|
+
}
|
|
13
|
+
export default class FormItemGroup extends React.PureComponent<FieldGroupProps, FieldGroupState> {
|
|
14
|
+
static defaultProps: {
|
|
15
|
+
nameAttr: string;
|
|
16
|
+
};
|
|
17
|
+
constructor(props: any);
|
|
18
|
+
initFormList: () => JSX.Element;
|
|
19
|
+
render(): JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=form-Item-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-Item-group.d.ts","sourceRoot":"","sources":["../../../../src/components/form/form-Item-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAC,WAAW,EAAmB,MAAM,mBAAmB,CAAC;AAQhE,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAC,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,eAAe;IACrB,QAAQ,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK,CAAC,aAAa,CAAC,eAAe,EAAE,eAAe,CAAC;IAE5F,MAAM,CAAC,YAAY;;MAElB;gBAEW,KAAK,KAAA;IAOjB,YAAY,oBAwDX;IAED,MAAM;CAKT"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Col, Form, Row } from 'antd';
|
|
3
|
+
import 'moment/locale/zh-cn';
|
|
4
|
+
import EntryControl from "../controls/entry-control";
|
|
5
|
+
import Units from './../units';
|
|
6
|
+
const FormItem = Form.Item;
|
|
7
|
+
;
|
|
8
|
+
;
|
|
9
|
+
export default class FormItemGroup extends React.PureComponent {
|
|
10
|
+
constructor(props) {
|
|
11
|
+
super(props);
|
|
12
|
+
this.initFormList = () => {
|
|
13
|
+
const { fields, valueMap, nameAttr } = this.props;
|
|
14
|
+
const formItemList = [];
|
|
15
|
+
if (fields && fields.length > 0) {
|
|
16
|
+
fields.forEach((item, index) => {
|
|
17
|
+
const title = item.title;
|
|
18
|
+
let fieldValue = valueMap ? valueMap[item.id] : undefined;
|
|
19
|
+
//fieldValue 没有值时不能为null 要为 undefined。antd input所限制
|
|
20
|
+
fieldValue = (fieldValue || fieldValue == 0) ? fieldValue : item.defaultValue ? Units.configParamTrans(item.defaultValue) : undefined;
|
|
21
|
+
console.log("表单值:", valueMap[item.id], fieldValue);
|
|
22
|
+
const fieldKey = item.id + Math.random() * 100;
|
|
23
|
+
let formItem = null;
|
|
24
|
+
if (item.extControlType == 'hidden') {
|
|
25
|
+
formItem = React.createElement(FormItem, { hidden: true, initialValue: fieldValue, name: item[nameAttr], key: item.id },
|
|
26
|
+
React.createElement(EntryControl, { value: fieldValue, fieldConfig: item }));
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
formItem = React.createElement(FormItem, { label: item.title, name: item[nameAttr], key: item.id, labelCol: item.colNum == 1 ? { span: 6 } : { span: 3 }, wrapperCol: item.colNum == 1 ? { span: 15 } : { span: 19 }, tooltip: item.tip, initialValue: fieldValue, style: { margin: 4 }, rules: item.required ? [{
|
|
30
|
+
required: true, message: `请选择${title}`,
|
|
31
|
+
}] : undefined },
|
|
32
|
+
React.createElement(EntryControl, { value: fieldValue, fieldConfig: item }));
|
|
33
|
+
}
|
|
34
|
+
formItemList.push(formItem);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const colList = [];
|
|
38
|
+
for (let i = 0; i < formItemList.length; i = i + 1) {
|
|
39
|
+
let colNum = fields[i].colNum;
|
|
40
|
+
if (fields[i].extControlType == 'hidden') {
|
|
41
|
+
colNum = 0;
|
|
42
|
+
}
|
|
43
|
+
let col = React.createElement(Col, { key: i, span: 12 * colNum }, formItemList[i]);
|
|
44
|
+
colList.push(col);
|
|
45
|
+
}
|
|
46
|
+
const row = React.createElement(Row, { gutter: [16, 8], key: 1 }, colList);
|
|
47
|
+
return row;
|
|
48
|
+
};
|
|
49
|
+
this.state = {
|
|
50
|
+
fileList: [],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
return (this.initFormList());
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
FormItemGroup.defaultProps = {
|
|
58
|
+
nameAttr: 'id',
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=form-Item-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-Item-group.js","sourceRoot":"","sources":["../../../../src/components/form/form-Item-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAC,MAAM,MAAM,CAAA;AACnC,OAAO,qBAAqB,CAAC;AAE7B,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,KAAK,MAAM,YAAY,CAAA;AAI9B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAA;AAOzB,CAAC;AAID,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK,CAAC,aAA+C;IAM5F,Y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ClC,MAAM,GAAC,CAAC,CAAC;iBACZ;gBACD,IAAI,GAAG,GAAG,oBAAC,GAAG,IAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG,MAAM,IACnC,YAAY,CAAC,CAAC,CAAC,CACd,CAAA;gBACN,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aACrB;YAED,MAAM,GAAG,GACL,oBAAC,GAAG,IAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,IACvB,OAAO,CACN,CAAA;YACV,OAAO,GAAG,CAAC;QACf,CAAC,CAAA;QA7DG,IAAI,CAAC,KAAK,GAAG;YACT,QAAQ,EAAE,EAAE;SACf,CAAA;IACL,CAAC;IA4DD,MAAM;QACF,OAAO,CACH,IAAI,CAAC,YAAY,EAAE,CACtB,CAAA;IACL,CAAC;;AAzEM,0BAAY,GAAC;IAChB,QAAQ,EAAC,IAAI;CAChB,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
import { LtmplConfig } from "../tmpl/interface";
|
|
4
|
+
declare type LogLevel = 'INFO' | 'SUC' | 'ERROR' | 'WARN';
|
|
5
|
+
interface ExcelImportProps {
|
|
6
|
+
sourceId: string;
|
|
7
|
+
}
|
|
8
|
+
interface ExcelImportStat {
|
|
9
|
+
inputMaxMsgCount: number;
|
|
10
|
+
maxMsgCount: number;
|
|
11
|
+
percent: number;
|
|
12
|
+
statusMsg: string;
|
|
13
|
+
importStatus: string;
|
|
14
|
+
showLogLevelList: LogLevel[];
|
|
15
|
+
logSetterVisible: boolean;
|
|
16
|
+
logs: any[];
|
|
17
|
+
importFile: any;
|
|
18
|
+
logSerialId: string;
|
|
19
|
+
ltmplConfig: LtmplConfig;
|
|
20
|
+
}
|
|
21
|
+
export default class ExcelImport extends React.PureComponent<ExcelImportProps, ExcelImportStat> {
|
|
22
|
+
state: {
|
|
23
|
+
maxMsgCount: number;
|
|
24
|
+
inputMaxMsgCount: number;
|
|
25
|
+
importStatus: string;
|
|
26
|
+
importFile: any;
|
|
27
|
+
logs: any[];
|
|
28
|
+
percent: number;
|
|
29
|
+
statusMsg: any;
|
|
30
|
+
logSetterVisible: boolean;
|
|
31
|
+
showLogLevelList: LogLevel[];
|
|
32
|
+
logSerialId: any;
|
|
33
|
+
ltmplConfig: any;
|
|
34
|
+
};
|
|
35
|
+
timerId: any;
|
|
36
|
+
componentDidMount(): Promise<void>;
|
|
37
|
+
componentWillUnmount(): void;
|
|
38
|
+
handleUpload: () => void;
|
|
39
|
+
handleStopImport: () => void;
|
|
40
|
+
handleStatus: (importId: any) => void;
|
|
41
|
+
onChangeShowLogLevelList: (showLogLevelList: any) => void;
|
|
42
|
+
fresh: () => void;
|
|
43
|
+
handleLogSetter: () => void;
|
|
44
|
+
changeLogSetterVisible: (visible: any) => void;
|
|
45
|
+
render(): JSX.Element;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=excel-import.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excel-import.d.ts","sourceRoot":"","sources":["../../../../src/components/import/excel-import.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,aAAa,CAAA;AACpB,OAAO,EAAC,WAAW,EAAmD,MAAM,mBAAmB,CAAC;AAOhG,aAAK,QAAQ,GAAG,MAAM,GAAE,KAAK,GAAC,OAAO,GAAC,MAAM,CAAC;AAG7C,UAAU,gBAAgB;IACtB,QAAQ,EAAC,MAAM,CAAC;CACnB;AAED,UAAU,eAAe;IACrB,gBAAgB,EAAC,MAAM,CAAC;IACxB,WAAW,EAAC,MAAM,CAAC;IACnB,OAAO,EAAC,MAAM,CAAC;IACf,SAAS,EAAC,MAAM,CAAC;IACjB,YAAY,EAAC,MAAM,CAAC;IACpB,gBAAgB,EAAE,QAAQ,EAAE,CAAC;IAC7B,gBAAgB,EAAC,OAAO,CAAC;IACzB,IAAI,EAAC,GAAG,EAAE,CAAC;IACX,UAAU,EAAC,GAAG,CAAC;IACf,WAAW,EAAC,MAAM,CAAC;IACnB,WAAW,EAAC,WAAW,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAa,CAAC,gBAAgB,EAAE,eAAe,CAAC;IAE3F,KAAK;;;;;;;;;;;;MAYJ;IAED,OAAO,MAAW;IAEb,iBAAiB;IAUtB,oBAAoB;IAQpB,YAAY,aAyBP;IAEL,gBAAgB,aAIf;IAED,YAAY,0BAmDX;IACD,wBAAwB,kCAIvB;IAED,KAAK,aAYJ;IAED,eAAe,aAOd;IACD,sBAAsB,yBAElB;IAGJ,MAAM;CA+HT"}
|
|
@@ -0,0 +1,234 @@
|
|
|
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 { Card, Button, Upload, message, Progress, List, Checkbox, Row, Col, Popover, InputNumber } from 'antd';
|
|
12
|
+
import { ReloadOutlined, UploadOutlined, SettingOutlined } from '@ant-design/icons';
|
|
13
|
+
import Super from "../tmpl/superagent";
|
|
14
|
+
import Units from "../units";
|
|
15
|
+
import './index.css';
|
|
16
|
+
import HCDataSource from "../tmpl/hc-data-source";
|
|
17
|
+
const CheckboxGroup = Checkbox.Group;
|
|
18
|
+
const logLevelList = ['INFO', 'SUC', 'ERROR', 'WARN'];
|
|
19
|
+
let totalMSG = [];
|
|
20
|
+
;
|
|
21
|
+
;
|
|
22
|
+
export default class ExcelImport extends React.PureComponent {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.state = {
|
|
26
|
+
maxMsgCount: 100,
|
|
27
|
+
inputMaxMsgCount: 100,
|
|
28
|
+
importStatus: 'waitingFile',
|
|
29
|
+
importFile: undefined,
|
|
30
|
+
logs: [],
|
|
31
|
+
percent: 0,
|
|
32
|
+
statusMsg: undefined,
|
|
33
|
+
logSetterVisible: false,
|
|
34
|
+
showLogLevelList: [...logLevelList],
|
|
35
|
+
logSerialId: undefined,
|
|
36
|
+
ltmplConfig: undefined,
|
|
37
|
+
};
|
|
38
|
+
this.timerId = undefined;
|
|
39
|
+
this.handleUpload = () => {
|
|
40
|
+
const { sourceId } = this.props;
|
|
41
|
+
const { importFile } = this.state;
|
|
42
|
+
const formData = new FormData();
|
|
43
|
+
formData.append('file', importFile);
|
|
44
|
+
formData.append('sourceId', sourceId.toString());
|
|
45
|
+
Super.super({
|
|
46
|
+
url: `/v3/ltmpl/importer`,
|
|
47
|
+
method: 'POST',
|
|
48
|
+
data: formData,
|
|
49
|
+
}, "formdata").then((res) => {
|
|
50
|
+
//console.log(res)
|
|
51
|
+
if (res.status === "success") {
|
|
52
|
+
this.setState({
|
|
53
|
+
importStatus: 'importing',
|
|
54
|
+
});
|
|
55
|
+
this.timerId = setInterval(() => this.handleStatus(res.importId), 500);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
message.error('失败!');
|
|
59
|
+
this.setState({
|
|
60
|
+
importStatus: 'fail',
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
this.handleStopImport = () => {
|
|
66
|
+
this.setState({
|
|
67
|
+
importStatus: 'stop',
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
this.handleStatus = (importId) => {
|
|
71
|
+
const { maxMsgCount, importStatus } = this.state;
|
|
72
|
+
Super.super({
|
|
73
|
+
url: `/v3/importer/status`,
|
|
74
|
+
method: 'GET',
|
|
75
|
+
query: {
|
|
76
|
+
importId: importId,
|
|
77
|
+
msgIndex: 0,
|
|
78
|
+
maxMsgCount,
|
|
79
|
+
interrupted: importStatus == 'stop',
|
|
80
|
+
}
|
|
81
|
+
}, "", "none").then((res) => {
|
|
82
|
+
const MSG = [];
|
|
83
|
+
for (let item of res.messageSequence.messages) {
|
|
84
|
+
let color = "";
|
|
85
|
+
let logLevel = "";
|
|
86
|
+
let createTime = Units.formateDate(item.createTime);
|
|
87
|
+
if (item.type === "SUC") {
|
|
88
|
+
color = "green";
|
|
89
|
+
logLevel = '成功';
|
|
90
|
+
}
|
|
91
|
+
else if (item.type === "INFO") {
|
|
92
|
+
color = "black";
|
|
93
|
+
logLevel = '常规';
|
|
94
|
+
}
|
|
95
|
+
else if (item.type === "ERROR") {
|
|
96
|
+
color = "red";
|
|
97
|
+
logLevel = '错误';
|
|
98
|
+
}
|
|
99
|
+
else if (item.type === "WARN") {
|
|
100
|
+
color = "rgb(250, 225, 4)";
|
|
101
|
+
logLevel = '警告';
|
|
102
|
+
}
|
|
103
|
+
const msg = React.createElement("div", null,
|
|
104
|
+
React.createElement("p", null, createTime),
|
|
105
|
+
React.createElement("p", { style: { color: color } }, `【${logLevel}】` + item.text));
|
|
106
|
+
MSG.push({ level: item.type, msg });
|
|
107
|
+
}
|
|
108
|
+
this.setState({
|
|
109
|
+
statusMsg: res.message,
|
|
110
|
+
percent: Math.floor((res.current / res.totalCount) * 100),
|
|
111
|
+
logs: MSG,
|
|
112
|
+
});
|
|
113
|
+
if (res.completed === true) {
|
|
114
|
+
clearInterval(this.timerId);
|
|
115
|
+
message.success('导入完成!');
|
|
116
|
+
this.setState({
|
|
117
|
+
importStatus: 'success'
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
if (importStatus == 'stop') {
|
|
121
|
+
clearInterval(this.timerId);
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
this.onChangeShowLogLevelList = (showLogLevelList) => {
|
|
126
|
+
this.setState({
|
|
127
|
+
showLogLevelList,
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
this.fresh = () => {
|
|
131
|
+
// this.setState({
|
|
132
|
+
// fileList:[],
|
|
133
|
+
// uploading: false,
|
|
134
|
+
// statusMsg:"",
|
|
135
|
+
// begin:true,
|
|
136
|
+
// importAgain:"none",
|
|
137
|
+
// importbtn:"block",
|
|
138
|
+
// percent:0,
|
|
139
|
+
// messages:[]
|
|
140
|
+
// })
|
|
141
|
+
// message.success("刷新成功!")
|
|
142
|
+
};
|
|
143
|
+
this.handleLogSetter = () => {
|
|
144
|
+
const { inputMaxMsgCount } = this.state;
|
|
145
|
+
this.setState({
|
|
146
|
+
maxMsgCount: inputMaxMsgCount,
|
|
147
|
+
logSetterVisible: false,
|
|
148
|
+
});
|
|
149
|
+
message.success("设置成功!");
|
|
150
|
+
};
|
|
151
|
+
this.changeLogSetterVisible = visible => {
|
|
152
|
+
this.setState({ logSetterVisible: visible });
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
componentDidMount() {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const { sourceId } = this.props;
|
|
158
|
+
let ltmplConfigRes = yield HCDataSource.requestLtmplConfig(sourceId);
|
|
159
|
+
this.setState({
|
|
160
|
+
ltmplConfig: ltmplConfigRes.ltmplConfig,
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
componentWillUnmount() {
|
|
165
|
+
if (this.timerId) {
|
|
166
|
+
clearInterval(this.timerId);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
render() {
|
|
170
|
+
const { ltmplConfig, importFile, maxMsgCount, percent, importStatus, showLogLevelList, logSetterVisible, logs } = this.state;
|
|
171
|
+
let showLogs = [];
|
|
172
|
+
for (let log of logs) {
|
|
173
|
+
if (showLogLevelList.includes(log.level)) {
|
|
174
|
+
showLogs.push(log.msg);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
const props = {
|
|
178
|
+
accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/vnd.ms-excel",
|
|
179
|
+
onChange: () => {
|
|
180
|
+
},
|
|
181
|
+
onRemove: (file) => {
|
|
182
|
+
this.setState({
|
|
183
|
+
importFile: undefined,
|
|
184
|
+
importStatus: 'waitingFile',
|
|
185
|
+
percent: 0,
|
|
186
|
+
});
|
|
187
|
+
},
|
|
188
|
+
beforeUpload: (file) => {
|
|
189
|
+
this.setState({
|
|
190
|
+
percent: 0,
|
|
191
|
+
importFile: file,
|
|
192
|
+
importStatus: 'fileSelected',
|
|
193
|
+
});
|
|
194
|
+
return false;
|
|
195
|
+
},
|
|
196
|
+
fileList: importFile ? [importFile] : undefined,
|
|
197
|
+
};
|
|
198
|
+
const content = (React.createElement("div", null,
|
|
199
|
+
React.createElement("label", null, "\u65E5\u5FD7\u6D88\u606F\u6570\u4E0A\u9650\uFF1A"),
|
|
200
|
+
React.createElement(InputNumber, { defaultValue: maxMsgCount, onChange: (value) => this.setState({ inputMaxMsgCount: value }) }),
|
|
201
|
+
React.createElement(Button, { type: "primary", style: { marginLeft: '10px' }, onClick: this.handleLogSetter }, "\u786E\u5B9A")));
|
|
202
|
+
return (React.createElement("div", { className: "importData" },
|
|
203
|
+
React.createElement("h3", null,
|
|
204
|
+
'导入 -> ',
|
|
205
|
+
ltmplConfig ? ltmplConfig.title : "",
|
|
206
|
+
React.createElement("p", { className: "fr" },
|
|
207
|
+
React.createElement(Button, { className: "hoverbig", title: "\u5237\u65B0", onClick: this.fresh },
|
|
208
|
+
React.createElement(ReloadOutlined, null)))),
|
|
209
|
+
React.createElement(Row, null,
|
|
210
|
+
React.createElement(Col, { span: 14, offset: 5 },
|
|
211
|
+
React.createElement(Card, { style: { minWidth: 600 } },
|
|
212
|
+
React.createElement(Upload, Object.assign({}, props),
|
|
213
|
+
React.createElement(Button, null,
|
|
214
|
+
React.createElement(UploadOutlined, null),
|
|
215
|
+
"\u9009\u62E9\u5BFC\u5165\u6587\u4EF6")),
|
|
216
|
+
React.createElement(Progress, { percent: percent, size: "small", status: "active" }),
|
|
217
|
+
React.createElement("div", { className: "importBtns" },
|
|
218
|
+
React.createElement(Button, { type: "primary", onClick: this.handleUpload, disabled: !(['fileSelected', 'stop'].includes(importStatus)), loading: importStatus == 'importing' }, importStatus == 'importing' ? '正在导入' : importStatus == 'stop' ? '重新导入' : '开始导入'),
|
|
219
|
+
React.createElement(Button, { onClick: this.handleStopImport, disabled: importStatus != 'importing' }, '停止导入')),
|
|
220
|
+
React.createElement(List, { header: React.createElement("div", { className: "listHeader" },
|
|
221
|
+
React.createElement("h4", null, "\u5BFC\u5165\u65E5\u5FD7"),
|
|
222
|
+
React.createElement("div", { className: "checks" },
|
|
223
|
+
React.createElement(CheckboxGroup, { value: showLogLevelList, onChange: this.onChangeShowLogLevelList },
|
|
224
|
+
React.createElement(Checkbox, { value: "INFO", className: "infoColor" }, "\u5E38\u89C4"),
|
|
225
|
+
React.createElement(Checkbox, { value: "SUC", className: "sucColor" }, "\u6210\u529F"),
|
|
226
|
+
React.createElement(Checkbox, { value: "ERROR", className: "errorColor" }, "\u9519\u8BEF"),
|
|
227
|
+
React.createElement(Checkbox, { value: "WARN", className: "warnColor" }, "\u8B66\u544A")),
|
|
228
|
+
React.createElement("div", { className: "btns" },
|
|
229
|
+
React.createElement(Popover, { content: content, title: "\u65E5\u5FD7\u8BBE\u7F6E", trigger: "click", placement: "top", visible: logSetterVisible, overlayStyle: { width: 350 }, onVisibleChange: this.changeLogSetterVisible },
|
|
230
|
+
React.createElement(Button, { title: "\u65E5\u5FD7\u8BBE\u7F6E", type: "primary", size: "small" },
|
|
231
|
+
React.createElement(SettingOutlined, null)))))), footer: React.createElement("div", null, importStatus), bordered: true, dataSource: showLogs, renderItem: item => (React.createElement(List.Item, null, item)), className: "importList" }))))));
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
//# sourceMappingURL=excel-import.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excel-import.js","sourceRoot":"","sources":["../../../../src/components/import/excel-import.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAC,GAAG,EAAO,OAAO,EAAC,WAAW,EAAE,MAAM,MAAM,CAAA;AACzG,OAAO,EAAc,cAAc,EAAmB,cAAc,EAAc,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAC5H,OAAO,KAAK,MAAM,oBAAoB,CAAA;AACtC,OAAO,KAAK,MAAM,UAAU,CAAA;AAC5B,OAAO,aAAa,CAAA;AAGpB,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC;AACrC,MAAM,YAAY,GAAc,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AACjE,IAAI,QAAQ,GAAC,EAAE,CAAA;AAMd,CAAC;AAcD,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAgD;IAA/F;;QAEI,UAAK,GAAG;YACJ,WAAW,EAAC,GAAG;YACf,gBAAgB,EAAC,GAAG;YACpB,YAAY,EAAC,aAAa;YAC1B,UAAU,EAAC,SAAS;YACpB,IAAI,EAAC,EAAE;YACP,OAAO,EAAC,CAAC;YACT,SAAS,EAAC,SAAS;YACnB,gBAAgB,EAAC,KAAK;YACtB,gBAAgB,EAAC,CAAC,GAAG,YAAY,CAAC;YAClC,WAAW,EAAC,SAAS;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EACZ,OAAO,EAAC,OAAO,EACf,SAAS,EAAC,KAAK,EACf,OAAO,EAAE,gBAAgB,EACzB,YAAY,EAAE,EAAC,KAAK,EAAC,GAAG,EAAC,EACzB,eAAe,EAAE,IAAI,CAAC,sBAAsB;4CAE5C,oBAAC,MAAM,IAAC,KAAK,EAAC,0BAAM,EAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO;gDAC5C,oBAAC,eAAe,OAAG,CACd,CACH,CACR,CACJ,CACJ,EAEV,MAAM,EAAE,iCAAM,YAAY,CAAO,EACjC,QAAQ,QACR,UAAU,EAAE,QAAQ,EACpB,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,oBAAC,IAAI,CAAC,IAAI,QAAE,IAAI,CAAa,CAAC,EACnD,SAAS,EAAC,YAAY,GACpB,CACH,CACL,CACJ,CACJ,CACT,CAAA;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BlockMenu } from "../tmpl/interface";
|
|
3
|
+
interface MainPageProps {
|
|
4
|
+
children: any;
|
|
5
|
+
match?: any;
|
|
6
|
+
}
|
|
7
|
+
interface MainPageState {
|
|
8
|
+
collapsed: boolean;
|
|
9
|
+
currentL2MenuId: string;
|
|
10
|
+
blocks: BlockMenu[];
|
|
11
|
+
currentBlockId?: string;
|
|
12
|
+
isImporter: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare class MainPage extends React.PureComponent<MainPageProps, MainPageState> {
|
|
15
|
+
scrollbarRef: React.RefObject<unknown>;
|
|
16
|
+
state: {
|
|
17
|
+
collapsed: boolean;
|
|
18
|
+
blocks: any[];
|
|
19
|
+
currentL2MenuId: any;
|
|
20
|
+
currentBlockId: any;
|
|
21
|
+
isImporter: boolean;
|
|
22
|
+
};
|
|
23
|
+
componentDidMount(): Promise<void>;
|
|
24
|
+
componentDidUpdate(prevProps: any, prevState: any): Promise<void>;
|
|
25
|
+
findBlockTitle: (blockId: string) => string;
|
|
26
|
+
findBlockIdOfL2Menu: (leMenuId: string) => string;
|
|
27
|
+
findCurrentBlock: () => BlockMenu;
|
|
28
|
+
toggle: () => void;
|
|
29
|
+
render(): JSX.Element;
|
|
30
|
+
}
|
|
31
|
+
export default MainPage;
|
|
32
|
+
//# sourceMappingURL=MainPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MainPage.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/MainPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAU5C,UAAU,aAAa;IACnB,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,CAAC,EAAE,GAAG,CAAC;CACf;AAED,UAAU,aAAa;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,EAAC,OAAO,CAAC;CACtB;AAED,cAAM,QAAS,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC;IACpE,YAAY,2BAAqB;IACjC,KAAK;;;;;;MAMJ;IAEK,iBAAiB;IA8BjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA;IAyC7C,cAAc,YAAa,MAAM,YAehC;IAED,mBAAmB,aAAc,MAAM,YAgBtC;IAED,gBAAgB,kBA4Bf;IAED,MAAM,aAIJ;IAEF,MAAM;CAiDT;AAED,eAAe,QAAQ,CAAC"}
|