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,444 @@
|
|
|
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, Input, message, Table, Tooltip } from 'antd';
|
|
12
|
+
import { AlignLeftOutlined, DeleteOutlined, EditOutlined, FormOutlined, PlusSquareOutlined, SnippetsOutlined } from '@ant-design/icons';
|
|
13
|
+
import "./index.css";
|
|
14
|
+
import SupportInputTypes from '../tmpl/control-type-supportor';
|
|
15
|
+
import TableUnits from "./table-util";
|
|
16
|
+
import ViewControl from "../controls/view-control";
|
|
17
|
+
import ModalDtmplView from '../detail/view/modal-dtmpl-view';
|
|
18
|
+
import ModalDtmplEdit from '../detail/edit/modal-dtmpl-edit';
|
|
19
|
+
import ModelSelectTable from './modal-select-table';
|
|
20
|
+
import HcserviceV3 from "../tmpl/hcservice-v3";
|
|
21
|
+
import CollapseCard from '../controls/collapse-card';
|
|
22
|
+
import RowEditor from '../detail/edit/row-editor';
|
|
23
|
+
import Action from "../controls/action";
|
|
24
|
+
;
|
|
25
|
+
;
|
|
26
|
+
class RelationTable extends React.PureComponent {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments);
|
|
29
|
+
this.state = {
|
|
30
|
+
showDtmplView: false,
|
|
31
|
+
selectedCode: undefined,
|
|
32
|
+
showSelectTable: false,
|
|
33
|
+
showDtmplEdit: false,
|
|
34
|
+
tableLoading: false,
|
|
35
|
+
showRowEdit: false,
|
|
36
|
+
selectedDtmplData: undefined,
|
|
37
|
+
filterStr: undefined,
|
|
38
|
+
// columns:[],
|
|
39
|
+
// dataSource:[],
|
|
40
|
+
// current:1,
|
|
41
|
+
// title:undefined,
|
|
42
|
+
};
|
|
43
|
+
this.buildDataSource = () => {
|
|
44
|
+
const { filterStr } = this.state;
|
|
45
|
+
const { viewOrEdit, value, fieldGroupConfig } = this.props;
|
|
46
|
+
const { title, buttons, fields, showRelationName, relationNames, showRowNum } = fieldGroupConfig;
|
|
47
|
+
let dataSource = undefined;
|
|
48
|
+
/** 构建 dataSource **/
|
|
49
|
+
if (value) {
|
|
50
|
+
dataSource = [];
|
|
51
|
+
value.forEach((item, index) => {
|
|
52
|
+
let flag = true;
|
|
53
|
+
if (filterStr) {
|
|
54
|
+
flag = false;
|
|
55
|
+
for (let value of Object.values(item.fieldMap)) {
|
|
56
|
+
if (value && value.toString().indexOf(filterStr) >= 0) {
|
|
57
|
+
flag = true;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (flag) {
|
|
62
|
+
let row = Object.assign({ key: index, relationLabel: item.relationLabel, code: item.code }, item.fieldMap);
|
|
63
|
+
dataSource.push(row);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
return dataSource;
|
|
68
|
+
};
|
|
69
|
+
this.buildColumns = () => {
|
|
70
|
+
const { viewOrEdit, value, fieldGroupConfig } = this.props;
|
|
71
|
+
const { title, buttons, fields, showRelationName, relationNames, showRowNum } = fieldGroupConfig;
|
|
72
|
+
let columns = [];
|
|
73
|
+
/** 构建column **/
|
|
74
|
+
let s = 0;
|
|
75
|
+
fields.forEach((item) => {
|
|
76
|
+
let column = {};
|
|
77
|
+
columns.push(column);
|
|
78
|
+
column['title'] = item.title;
|
|
79
|
+
column['dataIndex'] = item.id;
|
|
80
|
+
s++;
|
|
81
|
+
let itemType = SupportInputTypes.getControlType(item, null);
|
|
82
|
+
if (s < 10) {
|
|
83
|
+
TableUnits.sort(column, itemType);
|
|
84
|
+
}
|
|
85
|
+
column['render'] = (text, record) => {
|
|
86
|
+
return React.createElement(ViewControl, { holderType: 'table', fieldConfig: item, value: record[item.id] });
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
if (showRelationName) { //判断是否有关系属性
|
|
90
|
+
let rela = {
|
|
91
|
+
dataIndex: "relationLabel",
|
|
92
|
+
name: "relation",
|
|
93
|
+
title: "关系",
|
|
94
|
+
type: "relation",
|
|
95
|
+
editable: true,
|
|
96
|
+
fieldAvailable: true,
|
|
97
|
+
id: '10000',
|
|
98
|
+
options: relationNames,
|
|
99
|
+
};
|
|
100
|
+
columns.unshift(rela);
|
|
101
|
+
}
|
|
102
|
+
//添加操作列
|
|
103
|
+
const viewable = buttons.includes('detail');
|
|
104
|
+
const rowEdit = buttons.includes('rowEdit');
|
|
105
|
+
const dtmplEdit = buttons.includes('dtmplEdit');
|
|
106
|
+
const deletable = buttons.includes('delete');
|
|
107
|
+
if (viewOrEdit == 'edit' && (viewable || rowEdit || dtmplEdit || deletable)) {
|
|
108
|
+
const actionColumn = {};
|
|
109
|
+
columns.push(actionColumn);
|
|
110
|
+
actionColumn['title'] = '操作';
|
|
111
|
+
actionColumn['fixed'] = "right";
|
|
112
|
+
actionColumn['key'] = "action";
|
|
113
|
+
actionColumn['render'] = (record) => {
|
|
114
|
+
return React.createElement("div", { className: "actionbtn" },
|
|
115
|
+
viewable ?
|
|
116
|
+
React.createElement(Button, { title: "\u5F53\u524D\u5B9E\u4F53", type: 'primary', icon: React.createElement(AlignLeftOutlined, null), size: "small", onClick: () => this.showEntityView(record) }) : "",
|
|
117
|
+
dtmplEdit ?
|
|
118
|
+
React.createElement(Button, { title: "\u7F16\u8F91\u5F53\u5B9E\u4F53", type: 'primary', icon: React.createElement(FormOutlined, null), size: "small", onClick: () => this.showEditDtmplModel(record) }) : "",
|
|
119
|
+
fieldGroupConfig.rowActions && fieldGroupConfig.rowActions.length > 0 ?
|
|
120
|
+
fieldGroupConfig.rowActions.map((action) => {
|
|
121
|
+
return React.createElement(Action, { key: action.id, data: [record], actionConfig: action, doAction: this.doRowAction, buttonSize: 'small' });
|
|
122
|
+
}) : "",
|
|
123
|
+
rowEdit ?
|
|
124
|
+
// <Popover placement="leftBottom" content={<RowEditCard fieldGroupConfig={fieldGroupConfig} dtmplData={this.getRowEditData(record.code)} onOk={this.handleRowEdit} ></RowEditCard>} trigger="click">
|
|
125
|
+
// <Tooltip placement="left" title="编辑当前行">
|
|
126
|
+
// <Button
|
|
127
|
+
// type='primary'
|
|
128
|
+
// icon={<EditOutlined/>}
|
|
129
|
+
// size="small"
|
|
130
|
+
// // onClick={() => {
|
|
131
|
+
// // this.showRowEditModel(record.code)
|
|
132
|
+
// // }}
|
|
133
|
+
// ></Button> </Tooltip></Popover>
|
|
134
|
+
React.createElement(RowEditor, { buttonIcon: React.createElement(EditOutlined, null), dtmplData: this.getRowEditData(record.code), fieldGroupConfig: fieldGroupConfig, onOk: this.handleRowEdit, tooltipTitle: "编辑当前行" }) : "",
|
|
135
|
+
deletable ?
|
|
136
|
+
React.createElement(Tooltip, { placement: "right", title: "\u5220\u9664\u5F53\u524D\u884C" },
|
|
137
|
+
React.createElement(Button, { danger: true, type: 'primary', icon: React.createElement(DeleteOutlined, null), size: "small", onClick: () => this.delete(record) })) : "");
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
else if (viewOrEdit == 'view' && (viewable)) {
|
|
141
|
+
const actionColumn = {};
|
|
142
|
+
columns.push(actionColumn);
|
|
143
|
+
actionColumn['title'] = '操作';
|
|
144
|
+
actionColumn['fixed'] = "right";
|
|
145
|
+
actionColumn['key'] = "action";
|
|
146
|
+
actionColumn['render'] = (record) => {
|
|
147
|
+
return React.createElement("div", { className: "actionbtn" }, viewable ?
|
|
148
|
+
React.createElement(Button, { title: "\u5F53\u524D\u5B9E\u4F53", type: 'primary', icon: React.createElement(AlignLeftOutlined, null), size: "small", onClick: () => this.showEntityView(record) }) : "");
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
return columns;
|
|
152
|
+
};
|
|
153
|
+
this.doRowAction = (actionId, codes, params) => __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
yield this.doAction(actionId, [{ title: undefined, code: codes[0] }], params);
|
|
155
|
+
this.handleDtmplEdit(codes[0]);
|
|
156
|
+
});
|
|
157
|
+
this.doAction = (actionId, selectedRows, params) => __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
this.setState({
|
|
159
|
+
tableLoading: true,
|
|
160
|
+
});
|
|
161
|
+
let result = yield HcserviceV3.postActions(actionId, selectedRows, params);
|
|
162
|
+
{
|
|
163
|
+
this.setState({
|
|
164
|
+
tableLoading: false,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
this.showEntityView = (record) => {
|
|
169
|
+
console.log('tabel record:', record);
|
|
170
|
+
this.setState({
|
|
171
|
+
selectedCode: record.code,
|
|
172
|
+
showDtmplView: true,
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
this.hiddenEntityView = () => {
|
|
176
|
+
this.setState({
|
|
177
|
+
showDtmplView: false,
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
this.hiddenEntityEdit = () => {
|
|
181
|
+
this.setState({
|
|
182
|
+
showDtmplEdit: false,
|
|
183
|
+
});
|
|
184
|
+
};
|
|
185
|
+
this.editRow = (record) => {
|
|
186
|
+
};
|
|
187
|
+
this.delete = (record) => {
|
|
188
|
+
const { value, fieldGroupConfig, onChange } = this.props;
|
|
189
|
+
//追加
|
|
190
|
+
const selectdDatas = [];
|
|
191
|
+
if (value) {
|
|
192
|
+
for (let v of value) {
|
|
193
|
+
if (v.code != record.code) {
|
|
194
|
+
selectdDatas.push(v);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
onChange(fieldGroupConfig, selectdDatas);
|
|
199
|
+
};
|
|
200
|
+
this.searchValue = (filterStr) => {
|
|
201
|
+
this.setState({
|
|
202
|
+
filterStr
|
|
203
|
+
});
|
|
204
|
+
};
|
|
205
|
+
this.tabChange = () => {
|
|
206
|
+
};
|
|
207
|
+
this.showSelect = () => {
|
|
208
|
+
console.log('showSelectTable click');
|
|
209
|
+
this.setState({
|
|
210
|
+
showSelectTable: true,
|
|
211
|
+
});
|
|
212
|
+
};
|
|
213
|
+
this.select = (selectedRows) => __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
this.setState({
|
|
215
|
+
showSelectTable: false
|
|
216
|
+
});
|
|
217
|
+
if (!selectedRows || selectedRows.length <= 0) {
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
//查询
|
|
221
|
+
const codes = [];
|
|
222
|
+
for (let row of selectedRows) {
|
|
223
|
+
codes.push(row.code);
|
|
224
|
+
}
|
|
225
|
+
yield this.add(codes);
|
|
226
|
+
});
|
|
227
|
+
this.add = (codes) => __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
const { value, fieldGroupConfig, onChange } = this.props;
|
|
229
|
+
const { title, fields, showRelationName, relationNames, showRowNum } = fieldGroupConfig;
|
|
230
|
+
this.setState({
|
|
231
|
+
tableLoading: true,
|
|
232
|
+
});
|
|
233
|
+
let selectdDatas = yield HcserviceV3.requestSelectedData(fieldGroupConfig.id, codes);
|
|
234
|
+
//添加默认关系
|
|
235
|
+
if (selectdDatas) {
|
|
236
|
+
for (let d of selectdDatas) {
|
|
237
|
+
d['relationLabel'] = relationNames[0];
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
//追加
|
|
241
|
+
if (value) {
|
|
242
|
+
selectdDatas.unshift(...value);
|
|
243
|
+
}
|
|
244
|
+
onChange(fieldGroupConfig, selectdDatas);
|
|
245
|
+
this.setState({
|
|
246
|
+
tableLoading: false,
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
// edit = async (code: string) => {
|
|
250
|
+
//
|
|
251
|
+
// }
|
|
252
|
+
// showRowEditModel = (code?: string) => {
|
|
253
|
+
// const {value} = this.props;
|
|
254
|
+
// let selectedDtmplData = undefined;
|
|
255
|
+
// if (code) {
|
|
256
|
+
// for (let dtmplData of value) {
|
|
257
|
+
// if (code == dtmplData.code) {
|
|
258
|
+
// selectedDtmplData = dtmplData;
|
|
259
|
+
// break;
|
|
260
|
+
// }
|
|
261
|
+
// }
|
|
262
|
+
// }
|
|
263
|
+
// this.setState({
|
|
264
|
+
// showRowEdit: true,
|
|
265
|
+
// selectedDtmplData,
|
|
266
|
+
// })
|
|
267
|
+
// }
|
|
268
|
+
this.getRowEditData = (code) => {
|
|
269
|
+
const { value } = this.props;
|
|
270
|
+
let data = undefined;
|
|
271
|
+
if (code) {
|
|
272
|
+
for (let dtmplData of value) {
|
|
273
|
+
if (code == dtmplData.code) {
|
|
274
|
+
data = dtmplData;
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
return data;
|
|
280
|
+
};
|
|
281
|
+
this.handleDtmplAdd = (code) => __awaiter(this, void 0, void 0, function* () {
|
|
282
|
+
this.setState({
|
|
283
|
+
showDtmplEdit: false,
|
|
284
|
+
});
|
|
285
|
+
yield this.add([code]);
|
|
286
|
+
});
|
|
287
|
+
this.handleDtmplEdit = (code) => __awaiter(this, void 0, void 0, function* () {
|
|
288
|
+
const { value, fieldGroupConfig, onChange } = this.props;
|
|
289
|
+
const { title, fields, showRelationName, relationNames, showRowNum } = fieldGroupConfig;
|
|
290
|
+
this.setState({
|
|
291
|
+
tableLoading: true,
|
|
292
|
+
showDtmplEdit: false,
|
|
293
|
+
});
|
|
294
|
+
let data = (yield HcserviceV3.requestSelectedData(fieldGroupConfig.id, [code]))[0];
|
|
295
|
+
let datas = [...value];
|
|
296
|
+
if (datas && data) {
|
|
297
|
+
for (let v of datas) {
|
|
298
|
+
if (v.code == data.code) {
|
|
299
|
+
v.fieldMap = data.fieldMap;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
onChange(fieldGroupConfig, datas);
|
|
304
|
+
this.setState({
|
|
305
|
+
tableLoading: false,
|
|
306
|
+
});
|
|
307
|
+
});
|
|
308
|
+
this.handleRowEdit = (dtmplData) => {
|
|
309
|
+
const { value, fieldGroupConfig, onChange } = this.props;
|
|
310
|
+
let datas = [];
|
|
311
|
+
if (value) {
|
|
312
|
+
datas = [...value];
|
|
313
|
+
}
|
|
314
|
+
let isAdd = true;
|
|
315
|
+
for (let v of datas) {
|
|
316
|
+
if (v.code == dtmplData.code) {
|
|
317
|
+
isAdd = false;
|
|
318
|
+
v.editStatus = dtmplData.editStatus;
|
|
319
|
+
v.fieldMap = dtmplData.fieldMap;
|
|
320
|
+
v.relationLabel = dtmplData.relationLabel;
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
if (isAdd) {
|
|
325
|
+
datas.unshift(dtmplData);
|
|
326
|
+
}
|
|
327
|
+
onChange(fieldGroupConfig, datas);
|
|
328
|
+
if (isAdd) {
|
|
329
|
+
message.success('已添加');
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
message.success('已修改');
|
|
333
|
+
}
|
|
334
|
+
//this.hiddenRowEdit();
|
|
335
|
+
};
|
|
336
|
+
this.showAddDtmplModel = () => {
|
|
337
|
+
this.setState({
|
|
338
|
+
showDtmplEdit: true,
|
|
339
|
+
selectedCode: undefined,
|
|
340
|
+
});
|
|
341
|
+
};
|
|
342
|
+
this.showEditDtmplModel = (record) => {
|
|
343
|
+
this.setState({
|
|
344
|
+
showDtmplEdit: true,
|
|
345
|
+
selectedCode: record.code,
|
|
346
|
+
});
|
|
347
|
+
};
|
|
348
|
+
this.buildButtons = () => {
|
|
349
|
+
const { fieldGroupConfig, viewOrEdit, value } = this.props;
|
|
350
|
+
const { buttons } = fieldGroupConfig;
|
|
351
|
+
const { showRowEdit } = this.state;
|
|
352
|
+
const buttonDisabled = fieldGroupConfig.max ? fieldGroupConfig.max <= (value ? value.length : 0) : false;
|
|
353
|
+
if (viewOrEdit == 'edit') {
|
|
354
|
+
return React.createElement(React.Fragment, null,
|
|
355
|
+
buttons.includes('rowAdd') ?
|
|
356
|
+
// <Popover placement="rightBottom" content={<RowEditCard fieldGroupConfig={fieldGroupConfig} onOk={this.handleRowEdit} ></RowEditCard>} trigger="click">
|
|
357
|
+
// // <Button
|
|
358
|
+
// // disabled={buttonDisabled}
|
|
359
|
+
// // type='primary'
|
|
360
|
+
// // icon={<PlusOutlined/>}
|
|
361
|
+
// // size="small"
|
|
362
|
+
// // // onClick={() => {
|
|
363
|
+
// // // this.showRowEditModel()
|
|
364
|
+
// // // }}
|
|
365
|
+
// // style={{marginBottom: 10, marginRight: 10}}
|
|
366
|
+
// // >新建一行</Button></Popover>
|
|
367
|
+
React.createElement(RowEditor, { buttonStyle: { marginBottom: 10, marginRight: 10 }, buttonTitle: "新建一行", fieldGroupConfig: fieldGroupConfig, onOk: this.handleRowEdit })
|
|
368
|
+
: '',
|
|
369
|
+
buttons.includes('dtmplAdd') ?
|
|
370
|
+
React.createElement(Button, { disabled: buttonDisabled, type: 'primary', icon: React.createElement(PlusSquareOutlined, null), size: "small", onClick: this.showAddDtmplModel, style: { marginBottom: 10, marginRight: 10 } }, "\u65B0\u589E") : "",
|
|
371
|
+
buttons.includes('selectAdd') ?
|
|
372
|
+
React.createElement(Button, { disabled: buttonDisabled, type: 'primary', icon: React.createElement(SnippetsOutlined, null), size: "small", onClick: this.showSelect, style: { marginBottom: 10, marginRight: 10 } }, "\u9009\u62E9") : "");
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
return "";
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
componentDidMount() {
|
|
380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
+
// const {fieldGroupConfig} = this.props;
|
|
382
|
+
// if (fieldGroupConfig.displayConfig.includes('folded')) {
|
|
383
|
+
// this.setState({
|
|
384
|
+
// collapse: true,
|
|
385
|
+
// })
|
|
386
|
+
// }
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
componentDidUpdate(prevProps) {
|
|
390
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
391
|
+
// const {fieldGroupConfig} = this.props;
|
|
392
|
+
// const {fieldGroupConfig: preFieldGroupConfig} = prevProps;
|
|
393
|
+
// if (fieldGroupConfig != preFieldGroupConfig) {
|
|
394
|
+
// if (fieldGroupConfig.displayConfig.includes('folded')) {
|
|
395
|
+
// this.setState({
|
|
396
|
+
// collapse: true,
|
|
397
|
+
// })
|
|
398
|
+
// }
|
|
399
|
+
// }
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
// hiddenRowEdit = () => {
|
|
403
|
+
// this.setState({
|
|
404
|
+
// showRowEdit: false,
|
|
405
|
+
// })
|
|
406
|
+
// }
|
|
407
|
+
render() {
|
|
408
|
+
const { fieldGroupConfig, value, parentId, loading, initCollapse } = this.props;
|
|
409
|
+
const { selectedCode, showDtmplView, showSelectTable, showDtmplEdit, tableLoading, showRowEdit, selectedDtmplData } = this.state;
|
|
410
|
+
const { buttons } = fieldGroupConfig;
|
|
411
|
+
let page = {
|
|
412
|
+
pageSize: 10,
|
|
413
|
+
hideOnSinglePage: true,
|
|
414
|
+
defaultCurrent: 1,
|
|
415
|
+
total: value ? value.length : undefined,
|
|
416
|
+
showTotal: (total) => {
|
|
417
|
+
return `总共有${total}条`;
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
let exceptCodes = [];
|
|
421
|
+
if (value) {
|
|
422
|
+
for (let v of value) {
|
|
423
|
+
exceptCodes.push(v.code);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
return (fieldGroupConfig.displayConfig.includes('nonDataNonDisplayed') && (!value || value.length <= 0) ? "" :
|
|
427
|
+
React.createElement(React.Fragment, null,
|
|
428
|
+
React.createElement(CollapseCard, { initCollapse: initCollapse || fieldGroupConfig.displayConfig.includes('folded'), title: fieldGroupConfig.title, id: parentId + fieldGroupConfig.id, className: `hoverable`, headStyle: { background: "#f2f4f5" }, loading: loading, extra: React.createElement(Input.Search, { onSearch: this.searchValue, allowClear: true, placeholder: "\u5173\u952E\u5B57\u641C\u7D22" }) },
|
|
429
|
+
React.createElement("div", { className: "editTableList" },
|
|
430
|
+
this.buildButtons(),
|
|
431
|
+
React.createElement(Table, { scroll: { scrollToFirstRowOnChange: false }, bordered: true, loading: tableLoading, dataSource: this.buildDataSource(), columns: this.buildColumns(), pagination: page, onChange: this.tabChange }))),
|
|
432
|
+
buttons.includes('detail') ?
|
|
433
|
+
React.createElement(ModalDtmplView, { visible: showDtmplView, onCancel: this.hiddenEntityView, sourceId: fieldGroupConfig.id, code: selectedCode }, " ") : "",
|
|
434
|
+
buttons.includes('dtmplEdit') || buttons.includes('dtmplAdd') ?
|
|
435
|
+
React.createElement(ModalDtmplEdit, { visible: showDtmplEdit, onCancel: this.hiddenEntityEdit, sourceId: fieldGroupConfig.id, code: selectedCode, onOk: selectedCode ? this.handleDtmplEdit : this.handleDtmplAdd })
|
|
436
|
+
: "",
|
|
437
|
+
buttons.includes('selectAdd') ?
|
|
438
|
+
React.createElement(ModelSelectTable, { maxSelectedRows: fieldGroupConfig.max, visible: showSelectTable, onOK: this.select, onCancel: () => {
|
|
439
|
+
this.setState({ showSelectTable: false });
|
|
440
|
+
}, exceptCodes: exceptCodes, sourceId: fieldGroupConfig.id }) : ""));
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
export default RelationTable;
|
|
444
|
+
//# sourceMappingURL=relation-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relation-table.js","sourceRoot":"","sources":["../../../../src/components/table/relation-table.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AAC5D,OAAO,EACH,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,aAAa,CAAC;AAErB,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;AAC/D,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,cAAc,MAAM,iCAAiC,CAAA;AAC5D,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAC/C,OAAO,YAAY,MAAM,2BAA2B,CAAA;AACpD,OAAO,SAAS,MAAM,2BAA2B,CAAA;AACjD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAWvC,CAAC;AAWD,CAAC;AAGF,MAAM,aAAc,SAAQ,KAAK,CAAC,aAAoD;IAAtF;;QAEI,UAAK,GAAG;YACJ,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,SAAS;YACvB,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,KAAK;YAClB,iBAAiB,EAAE,SAAS;YAC5B,SAAS,EAAE,SAAS;YACpB,cAAc;YACd,iBAAiB;YACjB,aAAa;YACb,mBAAmB;SACtB,CAA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AAC,EAAE,EAC7B,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,GAAI;oBACnF,CAAC,CAAC,EAAE;gBAMP,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;oBAC5B,oBAAC,gBAAgB,IAAC,eAAe,EAAE,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,eAAe,EAC/D,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE;4BAChD,IAAI,CAAC,QAAQ,CAAC,EAAC,eAAe,EAAE,KAAK,EAAC,CAAC,CAAA;wBAC3C,CAAC,EAAE,WAAW,EAAE,WAAW,EACT,QAAQ,EAAE,gBAAgB,CAAC,EAAE,GAAqB,CAAC,CAAC,CAAC,EAAE,CAE9E,CACV,CAAC;IACN,CAAC;CACJ;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import { DtmplData, QueryKey, SelectConfig, SelectedRow } from "../tmpl/interface";
|
|
4
|
+
interface SelectTableProps {
|
|
5
|
+
maxSelectedRows?: number;
|
|
6
|
+
sourceId: string;
|
|
7
|
+
selectedRows: SelectedRow[];
|
|
8
|
+
selectedDatas?: DtmplData[];
|
|
9
|
+
onChange?: (selectedRows: SelectedRow[], selectedDatas: DtmplData[]) => void;
|
|
10
|
+
}
|
|
11
|
+
interface SelectTableStat {
|
|
12
|
+
selectConfig: SelectConfig;
|
|
13
|
+
columns: object[];
|
|
14
|
+
queryKey: QueryKey;
|
|
15
|
+
loading: boolean;
|
|
16
|
+
criteriaData: object;
|
|
17
|
+
}
|
|
18
|
+
declare class SelectTable extends React.PureComponent<SelectTableProps, SelectTableStat> {
|
|
19
|
+
static defaultProps: {
|
|
20
|
+
maxSelectedRows: number;
|
|
21
|
+
selectedDatas: any[];
|
|
22
|
+
};
|
|
23
|
+
state: {
|
|
24
|
+
selectConfig: any;
|
|
25
|
+
columns: any;
|
|
26
|
+
queryKey: any;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
criteriaData: any;
|
|
29
|
+
disableCols: any;
|
|
30
|
+
};
|
|
31
|
+
loadData: (selectConfig: SelectConfig, criteriaData: object) => Promise<void>;
|
|
32
|
+
componentDidMount(): Promise<void>;
|
|
33
|
+
loadConfig: () => Promise<SelectConfig>;
|
|
34
|
+
componentDidUpdate(prevProps: any): Promise<void>;
|
|
35
|
+
doSearch: (params_: any) => Promise<void>;
|
|
36
|
+
changeRowSelection: (selectedRows_: SelectedRow[], selectedDatas_: DtmplData[], allRowKeys?: string[]) => void;
|
|
37
|
+
render(): JSX.Element;
|
|
38
|
+
}
|
|
39
|
+
export default SelectTable;
|
|
40
|
+
//# sourceMappingURL=select-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-table.d.ts","sourceRoot":"","sources":["../../../../src/components/table/select-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,aAAa,CAAA;AACpB,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAShF,UAAU,gBAAgB;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;IAG5B,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;CAChF;AAED,UAAU,eAAe;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,cAAM,WAAY,SAAQ,KAAK,CAAC,aAAa,CAAC,gBAAgB,EAAE,eAAe,CAAC;IAC5E,MAAM,CAAC,YAAY;;;MAGlB;IACD,KAAK;;;;;;;MAOJ;IAED,QAAQ,iBAAwB,YAAY,gBAAgB,MAAM,mBAmBjE;IAEK,iBAAiB;IAQvB,UAAU,8BA4CT;IAEK,kBAAkB,CAAC,SAAS,KAAA;IAelC,QAAQ,kCAIP;IAmBD,kBAAkB,kBAAmB,WAAW,EAAE,kBAAkB,SAAS,EAAE,eAAe,MAAM,EAAE,UAmDrG;IAGD,MAAM;CAkCT;AAED,eAAe,WAAW,CAAC"}
|