aldehyde 0.0.8 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/chart/antd/chart-utils.d.ts +7 -0
- package/lib/components/chart/antd/chart-utils.d.ts.map +1 -0
- package/lib/components/chart/antd/chart-utils.js +46 -0
- package/lib/components/chart/antd/chart-utils.js.map +1 -0
- package/lib/components/chart/antd/column-chart-sub.d.ts +7 -0
- package/lib/components/chart/antd/column-chart-sub.d.ts.map +1 -0
- package/lib/components/chart/antd/column-chart-sub.js +50 -0
- package/lib/components/chart/antd/column-chart-sub.js.map +1 -0
- package/lib/components/chart/antd/line-chart-sub.d.ts +7 -0
- package/lib/components/chart/antd/line-chart-sub.d.ts.map +1 -0
- package/lib/components/chart/antd/line-chart-sub.js +49 -0
- package/lib/components/chart/antd/line-chart-sub.js.map +1 -0
- package/lib/components/chart/antd/pie-chart-sub.d.ts +7 -0
- package/lib/components/chart/antd/pie-chart-sub.d.ts.map +1 -0
- package/lib/components/chart/antd/pie-chart-sub.js +37 -0
- package/lib/components/chart/antd/pie-chart-sub.js.map +1 -0
- package/lib/components/chart/antd/statview-d2-chart.d.ts +17 -0
- package/lib/components/chart/antd/statview-d2-chart.d.ts.map +1 -0
- package/lib/components/chart/antd/statview-d2-chart.js +108 -0
- package/lib/components/chart/antd/statview-d2-chart.js.map +1 -0
- package/lib/components/chart/statview-l2-chart.d.ts +23 -0
- package/lib/components/chart/statview-l2-chart.d.ts.map +1 -0
- package/lib/components/chart/statview-l2-chart.js +64 -0
- package/lib/components/chart/statview-l2-chart.js.map +1 -0
- package/lib/components/controls/action/index.css +9 -0
- package/lib/components/controls/action/index.d.ts +47 -0
- package/lib/components/controls/action/index.d.ts.map +1 -0
- package/lib/components/controls/action/index.js +165 -0
- package/lib/components/controls/action/index.js.map +1 -0
- package/lib/components/controls/action/utils.d.ts +9 -0
- package/lib/components/controls/action/utils.d.ts.map +1 -0
- package/lib/components/controls/action/utils.js +110 -0
- package/lib/components/controls/action/utils.js.map +1 -0
- package/lib/components/controls/auto-complete/index.d.ts +7 -0
- package/lib/components/controls/auto-complete/index.d.ts.map +1 -0
- package/lib/components/controls/auto-complete/index.js +53 -0
- package/lib/components/controls/auto-complete/index.js.map +1 -0
- package/lib/components/controls/chemstruc/graph.d.ts +31 -0
- package/lib/components/controls/chemstruc/graph.d.ts.map +1 -0
- package/lib/components/controls/chemstruc/graph.js +121 -0
- package/lib/components/controls/chemstruc/graph.js.map +1 -0
- package/lib/components/controls/chemstruc/index.css +28 -0
- package/lib/components/controls/collapse-card/index.css +9 -0
- package/lib/components/controls/collapse-card/index.d.ts +20 -0
- package/lib/components/controls/collapse-card/index.d.ts.map +1 -0
- package/lib/components/controls/collapse-card/index.js +63 -0
- package/lib/components/controls/collapse-card/index.js.map +1 -0
- package/lib/components/controls/color-picker/index.css +27 -0
- package/lib/components/controls/color-picker/index.d.ts +19 -0
- package/lib/components/controls/color-picker/index.d.ts.map +1 -0
- package/lib/components/controls/color-picker/index.js +61 -0
- package/lib/components/controls/color-picker/index.js.map +1 -0
- package/lib/components/controls/cquery/cquick-button.d.ts +20 -0
- package/lib/components/controls/cquery/cquick-button.d.ts.map +1 -0
- package/lib/components/controls/cquery/cquick-button.js +67 -0
- package/lib/components/controls/cquery/cquick-button.js.map +1 -0
- package/lib/components/controls/date-picker/index.d.ts +7 -0
- package/lib/components/controls/date-picker/index.d.ts.map +1 -0
- package/lib/components/controls/date-picker/index.js +91 -0
- package/lib/components/controls/date-picker/index.js.map +1 -0
- package/lib/components/controls/entity-select/entity-select.d.ts +53 -0
- package/lib/components/controls/entity-select/entity-select.d.ts.map +1 -0
- package/lib/components/controls/entity-select/entity-select.js +227 -0
- package/lib/components/controls/entity-select/entity-select.js.map +1 -0
- package/lib/components/controls/entity-select/index.css +6 -0
- package/lib/components/controls/entity-select/popover-entity-select.d.ts +20 -0
- package/lib/components/controls/entity-select/popover-entity-select.d.ts.map +1 -0
- package/lib/components/controls/entity-select/popover-entity-select.js +80 -0
- package/lib/components/controls/entity-select/popover-entity-select.js.map +1 -0
- package/lib/components/controls/entry-control.d.ts +11 -0
- package/lib/components/controls/entry-control.d.ts.map +1 -0
- package/lib/components/controls/entry-control.js +171 -0
- package/lib/components/controls/entry-control.js.map +1 -0
- package/lib/components/controls/enum-badge/index.d.ts +7 -0
- package/lib/components/controls/enum-badge/index.d.ts.map +1 -0
- package/lib/components/controls/enum-badge/index.js +14 -0
- package/lib/components/controls/enum-badge/index.js.map +1 -0
- package/lib/components/controls/enum-tag/index.d.ts +7 -0
- package/lib/components/controls/enum-tag/index.d.ts.map +1 -0
- package/lib/components/controls/enum-tag/index.js +18 -0
- package/lib/components/controls/enum-tag/index.js.map +1 -0
- package/lib/components/controls/file-view/drawer-file-view.d.ts +18 -0
- package/lib/components/controls/file-view/drawer-file-view.d.ts.map +1 -0
- package/lib/components/controls/file-view/drawer-file-view.js +51 -0
- package/lib/components/controls/file-view/drawer-file-view.js.map +1 -0
- package/lib/components/controls/file-view/index.d.ts +23 -0
- package/lib/components/controls/file-view/index.d.ts.map +1 -0
- package/lib/components/controls/file-view/index.js +130 -0
- package/lib/components/controls/file-view/index.js.map +1 -0
- package/lib/components/controls/html-editor/draft.d.ts +22 -0
- package/lib/components/controls/html-editor/draft.d.ts.map +1 -0
- package/lib/components/controls/html-editor/draft.js +122 -0
- package/lib/components/controls/html-editor/draft.js.map +1 -0
- package/lib/components/controls/input-number/index.d.ts +7 -0
- package/lib/components/controls/input-number/index.d.ts.map +1 -0
- package/lib/components/controls/input-number/index.js +67 -0
- package/lib/components/controls/input-number/index.js.map +1 -0
- package/lib/components/controls/input-range/index.d.ts +7 -0
- package/lib/components/controls/input-range/index.d.ts.map +1 -0
- package/lib/components/controls/input-range/index.js +28 -0
- package/lib/components/controls/input-range/index.js.map +1 -0
- package/lib/components/controls/password-setter/index.css +3 -0
- package/lib/components/controls/progress/index.d.ts +7 -0
- package/lib/components/controls/progress/index.d.ts.map +1 -0
- package/lib/components/controls/progress/index.js +45 -0
- package/lib/components/controls/progress/index.js.map +1 -0
- package/lib/components/controls/relation-existion/index.css +4 -0
- package/lib/components/controls/relation-existion/index.d.ts +20 -0
- package/lib/components/controls/relation-existion/index.d.ts.map +1 -0
- package/lib/components/controls/relation-existion/index.js +75 -0
- package/lib/components/controls/relation-existion/index.js.map +1 -0
- package/lib/components/controls/rfield/index.css +4 -0
- package/lib/components/controls/rfield/index.d.ts +29 -0
- package/lib/components/controls/rfield/index.d.ts.map +1 -0
- package/lib/components/controls/rfield/index.js +130 -0
- package/lib/components/controls/rfield/index.js.map +1 -0
- package/lib/components/controls/signature/index.d.ts +31 -0
- package/lib/components/controls/signature/index.d.ts.map +1 -0
- package/lib/components/controls/signature/index.js +129 -0
- package/lib/components/controls/signature/index.js.map +1 -0
- package/lib/components/controls/steps/index.d.ts +7 -0
- package/lib/components/controls/steps/index.d.ts.map +1 -0
- package/lib/components/controls/steps/index.js +42 -0
- package/lib/components/controls/steps/index.js.map +1 -0
- package/lib/components/controls/text/ellipsis-text.d.ts +22 -0
- package/lib/components/controls/text/ellipsis-text.d.ts.map +1 -0
- package/lib/components/controls/text/ellipsis-text.js +46 -0
- package/lib/components/controls/text/ellipsis-text.js.map +1 -0
- package/lib/components/controls/upload/index.d.ts +15 -0
- package/lib/components/controls/upload/index.d.ts.map +1 -0
- package/lib/components/controls/upload/index.js +100 -0
- package/lib/components/controls/upload/index.js.map +1 -0
- package/lib/components/controls/view-control.d.ts +10 -0
- package/lib/components/controls/view-control.d.ts.map +1 -0
- package/lib/components/controls/view-control.js +150 -0
- package/lib/components/controls/view-control.js.map +1 -0
- package/lib/components/detail/button/cquery-button-bar.d.ts +16 -0
- package/lib/components/detail/button/cquery-button-bar.d.ts.map +1 -0
- package/lib/components/detail/button/cquery-button-bar.js +75 -0
- package/lib/components/detail/button/cquery-button-bar.js.map +1 -0
- package/lib/components/detail/button/index.css +43 -0
- package/lib/components/detail/button/submit-button-bar.d.ts +19 -0
- package/lib/components/detail/button/submit-button-bar.d.ts.map +1 -0
- package/lib/components/detail/button/submit-button-bar.js +99 -0
- package/lib/components/detail/button/submit-button-bar.js.map +1 -0
- package/lib/components/detail/dtmpl.css +53 -0
- package/lib/components/detail/edit/dtmpl-edit.d.ts +48 -0
- package/lib/components/detail/edit/dtmpl-edit.d.ts.map +1 -0
- package/lib/components/detail/edit/dtmpl-edit.js +190 -0
- package/lib/components/detail/edit/dtmpl-edit.js.map +1 -0
- package/lib/components/detail/edit/fields-edit-card.d.ts +39 -0
- package/lib/components/detail/edit/fields-edit-card.d.ts.map +1 -0
- package/lib/components/detail/edit/fields-edit-card.js +64 -0
- package/lib/components/detail/edit/fields-edit-card.js.map +1 -0
- package/lib/components/detail/edit/modal-dtmpl-edit.d.ts +51 -0
- package/lib/components/detail/edit/modal-dtmpl-edit.d.ts.map +1 -0
- package/lib/components/detail/edit/modal-dtmpl-edit.js +168 -0
- package/lib/components/detail/edit/modal-dtmpl-edit.js.map +1 -0
- package/lib/components/detail/edit/modal-row-edit.d.ts +31 -0
- package/lib/components/detail/edit/modal-row-edit.d.ts.map +1 -0
- package/lib/components/detail/edit/modal-row-edit.js +56 -0
- package/lib/components/detail/edit/modal-row-edit.js.map +1 -0
- package/lib/components/detail/edit/post-result/index.d.ts +17 -0
- package/lib/components/detail/edit/post-result/index.d.ts.map +1 -0
- package/lib/components/detail/edit/post-result/index.js +28 -0
- package/lib/components/detail/edit/post-result/index.js.map +1 -0
- package/lib/components/detail/edit/row-edit-card.d.ts +42 -0
- package/lib/components/detail/edit/row-edit-card.d.ts.map +1 -0
- package/lib/components/detail/edit/row-edit-card.js +84 -0
- package/lib/components/detail/edit/row-edit-card.js.map +1 -0
- package/lib/components/detail/edit/row-editor.d.ts +31 -0
- package/lib/components/detail/edit/row-editor.d.ts.map +1 -0
- package/lib/components/detail/edit/row-editor.js +55 -0
- package/lib/components/detail/edit/row-editor.js.map +1 -0
- package/lib/components/detail/rightbar/index.css +35 -0
- package/lib/components/detail/rightbar/index.d.ts +20 -0
- package/lib/components/detail/rightbar/index.d.ts.map +1 -0
- package/lib/components/detail/rightbar/index.js +51 -0
- package/lib/components/detail/rightbar/index.js.map +1 -0
- package/lib/components/detail/view/act-dtmpl-view.d.ts +46 -0
- package/lib/components/detail/view/act-dtmpl-view.d.ts.map +1 -0
- package/lib/components/detail/view/act-dtmpl-view.js +110 -0
- package/lib/components/detail/view/act-dtmpl-view.js.map +1 -0
- package/lib/components/detail/view/dtmpl-view.d.ts +42 -0
- package/lib/components/detail/view/dtmpl-view.d.ts.map +1 -0
- package/lib/components/detail/view/dtmpl-view.js +111 -0
- package/lib/components/detail/view/dtmpl-view.js.map +1 -0
- package/lib/components/detail/view/field-view-group.d.ts +17 -0
- package/lib/components/detail/view/field-view-group.d.ts.map +1 -0
- package/lib/components/detail/view/field-view-group.js +51 -0
- package/lib/components/detail/view/field-view-group.js.map +1 -0
- package/lib/components/detail/view/modal-dtmpl-view.d.ts +27 -0
- package/lib/components/detail/view/modal-dtmpl-view.d.ts.map +1 -0
- package/lib/components/detail/view/modal-dtmpl-view.js +32 -0
- package/lib/components/detail/view/modal-dtmpl-view.js.map +1 -0
- package/lib/components/detail/view/snapshot-timeline.d.ts +32 -0
- package/lib/components/detail/view/snapshot-timeline.d.ts.map +1 -0
- package/lib/components/detail/view/snapshot-timeline.js +90 -0
- package/lib/components/detail/view/snapshot-timeline.js.map +1 -0
- package/lib/components/exportor/export-frame.css +3 -0
- package/lib/components/exportor/export-frame.d.ts +50 -0
- package/lib/components/exportor/export-frame.d.ts.map +1 -0
- package/lib/components/exportor/export-frame.js +140 -0
- package/lib/components/exportor/export-frame.js.map +1 -0
- package/lib/components/exportor/index.d.ts +16 -0
- package/lib/components/exportor/index.d.ts.map +1 -0
- package/lib/components/exportor/index.js +44 -0
- package/lib/components/exportor/index.js.map +1 -0
- package/lib/components/form/criteria-form.d.ts +19 -0
- package/lib/components/form/criteria-form.d.ts.map +1 -0
- package/lib/components/form/criteria-form.js +167 -0
- package/lib/components/form/criteria-form.js.map +1 -0
- package/lib/components/form/dtmpl-form.css +4 -0
- package/lib/components/form/dtmpl-form.d.ts +37 -0
- package/lib/components/form/dtmpl-form.d.ts.map +1 -0
- package/lib/components/form/dtmpl-form.js +213 -0
- package/lib/components/form/dtmpl-form.js.map +1 -0
- package/lib/components/form/field-group-form.d.ts +21 -0
- package/lib/components/form/field-group-form.d.ts.map +1 -0
- package/lib/components/form/field-group-form.js +58 -0
- package/lib/components/form/field-group-form.js.map +1 -0
- package/lib/components/form/fields-form.d.ts +20 -0
- package/lib/components/form/fields-form.d.ts.map +1 -0
- package/lib/components/form/fields-form.js +39 -0
- package/lib/components/form/fields-form.js.map +1 -0
- package/lib/components/form/form-Item-group.d.ts +22 -0
- package/lib/components/form/form-Item-group.d.ts.map +1 -0
- package/lib/components/form/form-Item-group.js +60 -0
- package/lib/components/form/form-Item-group.js.map +1 -0
- package/lib/components/form/index.css +13 -0
- package/lib/components/import/excel-import.d.ts +48 -0
- package/lib/components/import/excel-import.d.ts.map +1 -0
- package/lib/components/import/excel-import.js +234 -0
- package/lib/components/import/excel-import.js.map +1 -0
- package/lib/components/import/index.css +54 -0
- package/lib/components/import/template.css +51 -0
- package/lib/components/layout/MainPage.d.ts +32 -0
- package/lib/components/layout/MainPage.d.ts.map +1 -0
- package/lib/components/layout/MainPage.js +202 -0
- package/lib/components/layout/MainPage.js.map +1 -0
- package/lib/components/layout/footer/index.css +6 -0
- package/lib/components/layout/header/index.css +86 -0
- package/lib/components/layout/header/index.d.ts +16 -0
- package/lib/components/layout/header/index.d.ts.map +1 -0
- package/lib/components/layout/header/index.js +37 -0
- package/lib/components/layout/header/index.js.map +1 -0
- package/lib/components/layout/menu/block.d.ts +9 -0
- package/lib/components/layout/menu/block.d.ts.map +1 -0
- package/lib/components/layout/menu/block.js +48 -0
- package/lib/components/layout/menu/block.js.map +1 -0
- package/lib/components/layout/menu/l2menu-message-bar.d.ts +24 -0
- package/lib/components/layout/menu/l2menu-message-bar.d.ts.map +1 -0
- package/lib/components/layout/menu/l2menu-message-bar.js +97 -0
- package/lib/components/layout/menu/l2menu-message-bar.js.map +1 -0
- package/lib/components/layout/menu/l2menu-quick-bar.d.ts +30 -0
- package/lib/components/layout/menu/l2menu-quick-bar.d.ts.map +1 -0
- package/lib/components/layout/menu/l2menu-quick-bar.js +94 -0
- package/lib/components/layout/menu/l2menu-quick-bar.js.map +1 -0
- package/lib/components/layout/menu/menu-2layers.d.ts +9 -0
- package/lib/components/layout/menu/menu-2layers.d.ts.map +1 -0
- package/lib/components/layout/menu/menu-2layers.js +63 -0
- package/lib/components/layout/menu/menu-2layers.js.map +1 -0
- package/lib/components/layout/menu/menu-render.d.ts +8 -0
- package/lib/components/layout/menu/menu-render.d.ts.map +1 -0
- package/lib/components/layout/menu/menu-render.js +44 -0
- package/lib/components/layout/menu/menu-render.js.map +1 -0
- package/lib/components/layout/menu/reset-password.d.ts +25 -0
- package/lib/components/layout/menu/reset-password.d.ts.map +1 -0
- package/lib/components/layout/menu/reset-password.js +113 -0
- package/lib/components/layout/menu/reset-password.js.map +1 -0
- package/lib/components/layout/menu/user-bar.d.ts +19 -0
- package/lib/components/layout/menu/user-bar.d.ts.map +1 -0
- package/lib/components/layout/menu/user-bar.js +61 -0
- package/lib/components/layout/menu/user-bar.js.map +1 -0
- package/lib/components/layout/menu/userinfo-bar.d.ts +18 -0
- package/lib/components/layout/menu/userinfo-bar.d.ts.map +1 -0
- package/lib/components/layout/menu/userinfo-bar.js +50 -0
- package/lib/components/layout/menu/userinfo-bar.js.map +1 -0
- package/lib/components/layout/sidebar/index.css +26 -0
- package/lib/components/layout/sidebar/index.d.ts +12 -0
- package/lib/components/layout/sidebar/index.d.ts.map +1 -0
- package/lib/components/layout/sidebar/index.js +19 -0
- package/lib/components/layout/sidebar/index.js.map +1 -0
- package/lib/components/module/dtmpl-page.d.ts +19 -0
- package/lib/components/module/dtmpl-page.d.ts.map +1 -0
- package/lib/components/module/dtmpl-page.js +46 -0
- package/lib/components/module/dtmpl-page.js.map +1 -0
- package/lib/components/module/ltmpl-page.d.ts +34 -0
- package/lib/components/module/ltmpl-page.d.ts.map +1 -0
- package/lib/components/module/ltmpl-page.js +154 -0
- package/lib/components/module/ltmpl-page.js.map +1 -0
- package/lib/components/routable/dtmpl-route.d.ts +17 -0
- package/lib/components/routable/dtmpl-route.d.ts.map +1 -0
- package/lib/components/routable/dtmpl-route.js +77 -0
- package/lib/components/routable/dtmpl-route.js.map +1 -0
- package/lib/components/routable/import-route.d.ts +13 -0
- package/lib/components/routable/import-route.d.ts.map +1 -0
- package/lib/components/routable/import-route.js +29 -0
- package/lib/components/routable/import-route.js.map +1 -0
- package/lib/components/routable/ltmpl-route.d.ts +25 -0
- package/lib/components/routable/ltmpl-route.d.ts.map +1 -0
- package/lib/components/routable/ltmpl-route.js +145 -0
- package/lib/components/routable/ltmpl-route.js.map +1 -0
- package/lib/components/table/act-table.d.ts +76 -0
- package/lib/components/table/act-table.d.ts.map +1 -0
- package/lib/components/table/act-table.js +454 -0
- package/lib/components/table/act-table.js.map +1 -0
- package/lib/components/table/column/column-selector.d.ts +26 -0
- package/lib/components/table/column/column-selector.d.ts.map +1 -0
- package/lib/components/table/column/column-selector.js +59 -0
- package/lib/components/table/column/column-selector.js.map +1 -0
- package/lib/components/table/column/index.css +14 -0
- package/lib/components/table/index.css +45 -0
- package/lib/components/table/l2-act-table.d.ts +23 -0
- package/lib/components/table/l2-act-table.d.ts.map +1 -0
- package/lib/components/table/l2-act-table.js +80 -0
- package/lib/components/table/l2-act-table.js.map +1 -0
- package/lib/components/table/modal-select-table.d.ts +41 -0
- package/lib/components/table/modal-select-table.d.ts.map +1 -0
- package/lib/components/table/modal-select-table.js +208 -0
- package/lib/components/table/modal-select-table.js.map +1 -0
- package/lib/components/table/pagination.css +15 -0
- package/lib/components/table/pagination.d.ts +17 -0
- package/lib/components/table/pagination.d.ts.map +1 -0
- package/lib/components/table/pagination.js +40 -0
- package/lib/components/table/pagination.js.map +1 -0
- package/lib/components/table/query-table.d.ts +65 -0
- package/lib/components/table/query-table.d.ts.map +1 -0
- package/lib/components/table/query-table.js +257 -0
- package/lib/components/table/query-table.js.map +1 -0
- package/lib/components/table/relation-table.d.ts +61 -0
- package/lib/components/table/relation-table.d.ts.map +1 -0
- package/lib/components/table/relation-table.js +444 -0
- package/lib/components/table/relation-table.js.map +1 -0
- package/lib/components/table/select-table.d.ts +40 -0
- package/lib/components/table/select-table.d.ts.map +1 -0
- package/lib/components/table/select-table.js +223 -0
- package/lib/components/table/select-table.js.map +1 -0
- package/lib/components/table/selected-rows-card.d.ts +16 -0
- package/lib/components/table/selected-rows-card.d.ts.map +1 -0
- package/lib/components/table/selected-rows-card.js +47 -0
- package/lib/components/table/selected-rows-card.js.map +1 -0
- package/lib/components/table/stat/restat.d.ts +26 -0
- package/lib/components/table/stat/restat.d.ts.map +1 -0
- package/lib/components/table/stat/restat.js +61 -0
- package/lib/components/table/stat/restat.js.map +1 -0
- package/lib/components/table/table-util.d.ts +5 -0
- package/lib/components/table/table-util.d.ts.map +1 -0
- package/lib/components/table/table-util.js +30 -0
- package/lib/components/table/table-util.js.map +1 -0
- package/lib/components/tmpl/control-type-supportor.d.ts +9 -0
- package/lib/components/tmpl/control-type-supportor.d.ts.map +1 -0
- package/lib/components/tmpl/control-type-supportor.js +85 -0
- package/lib/components/tmpl/control-type-supportor.js.map +1 -0
- package/lib/components/tmpl/hc-data-source.d.ts +19 -0
- package/lib/components/tmpl/hc-data-source.d.ts.map +1 -0
- package/lib/components/tmpl/hc-data-source.js +230 -0
- package/lib/components/tmpl/hc-data-source.js.map +1 -0
- package/lib/components/tmpl/hcservice-v3.d.ts +53 -0
- package/lib/components/tmpl/hcservice-v3.d.ts.map +1 -0
- package/lib/components/tmpl/hcservice-v3.js +639 -0
- package/lib/components/tmpl/hcservice-v3.js.map +1 -0
- package/lib/components/tmpl/interface.d.ts +234 -0
- package/lib/components/tmpl/interface.d.ts.map +1 -0
- package/lib/components/tmpl/interface.js +4 -0
- package/lib/components/tmpl/interface.js.map +1 -0
- package/lib/components/tmpl/tmpl-config-analysis.d.ts +7 -0
- package/lib/components/tmpl/tmpl-config-analysis.d.ts.map +1 -0
- package/lib/components/tmpl/tmpl-config-analysis.js +106 -0
- package/lib/components/tmpl/tmpl-config-analysis.js.map +1 -0
- package/lib/components/units/index.d.ts +58 -0
- package/lib/components/units/index.d.ts.map +1 -0
- package/lib/components/units/index.js +525 -0
- package/lib/components/units/index.js.map +1 -0
- package/lib/components/welcome/index.css +13 -0
- package/lib/components/welcome/quick-entrance.d.ts +20 -0
- package/lib/components/welcome/quick-entrance.d.ts.map +1 -0
- package/lib/components/welcome/quick-entrance.js +79 -0
- package/lib/components/welcome/quick-entrance.js.map +1 -0
- package/lib/components/welcome/workbench.d.ts +20 -0
- package/lib/components/welcome/workbench.d.ts.map +1 -0
- package/lib/components/welcome/workbench.js +78 -0
- package/lib/components/welcome/workbench.js.map +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -0
- package/lib/style/common.css +79 -0
- package/lib/style/coverstyle.css +49 -0
- package/lib/style/transstyle.css +24 -0
- package/package.json +10 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"act-dtmpl-view.js","sourceRoot":"","sources":["../../../../src/components/detail/view/act-dtmpl-view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,MAAM,MAAM,CAAA;AAG1C,OAAO,EAAC,cAAc,EAAE,gBAAgB,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAChF,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,cAAc,CAAC;AACtB,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,SAAS,MAAM,cAAc,CAA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E,IAAI,CAAC,MAAM;gCACpB,oBAAC,YAAY,OAAE,CACV,CAAC,CAAC,CAAC,EAAE;wBACrB,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;4BACrC,oBAAC,OAAO,IAAC,KAAK,EAAC,0BAAM;gCACjB,oBAAC,MAAM,IACH,SAAS,EAAC,UAAU,EACpB,OAAO,EAAE,IAAI,CAAC,YAAY;oCAC1B,oBAAC,gBAAgB,OAAE,CACd,CAAU,CAAC,CAAC,CAAC,EAAE;wBAChC,oBAAC,MAAM,IACH,SAAS,EAAC,UAAU,EACpB,KAAK,EAAC,cAAI,EACV,OAAO,EAAE,IAAI,CAAC,SAAS;4BAC1B,oBAAC,cAAc,OAAE,CAAS;wBAC3B,oBAAC,gBAAgB,IAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,eAAe,EACnE,YAAY,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,EACjD,OAAO,EAAE,eAAe,GAAqB,CAC7D,CACL,CACF;YACP,oBAAC,SAAS,IAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,qBAAqB,EACnG,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAC5C,IAAI,EAAE,IAAI,GAAc,CACjC,CACT,CAAC;IACN,CAAC;;AA1HM,yBAAY,GAAG;IAClB,YAAY,EAAE,IAAI;IAClB,qBAAqB,EAAE,EAAE;CAC5B,CAAA;AA2HL,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DtmplBaseProps, DtmplConfig, DtmplData } from "../../tmpl/interface";
|
|
3
|
+
import '../dtmpl.css';
|
|
4
|
+
export interface DtmplViewProps extends DtmplBaseProps {
|
|
5
|
+
versionId?: number;
|
|
6
|
+
dtmplConfig: DtmplConfig;
|
|
7
|
+
refreshCode?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DtmplViewStat {
|
|
10
|
+
id?: string;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
dtmplData: DtmplData;
|
|
13
|
+
premisesTitle: string;
|
|
14
|
+
layout: object;
|
|
15
|
+
}
|
|
16
|
+
declare class DtmplView extends React.PureComponent<DtmplViewProps, DtmplViewStat> {
|
|
17
|
+
static defaultProps: {
|
|
18
|
+
showRightNav: boolean;
|
|
19
|
+
};
|
|
20
|
+
state: {
|
|
21
|
+
loading: boolean;
|
|
22
|
+
id: string;
|
|
23
|
+
snapshotVisible: boolean;
|
|
24
|
+
dtmplData: any;
|
|
25
|
+
premisesTitle: string;
|
|
26
|
+
layout: {
|
|
27
|
+
labelCol: {
|
|
28
|
+
span: number;
|
|
29
|
+
};
|
|
30
|
+
wrapperCol: {
|
|
31
|
+
span: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
componentDidMount(): Promise<void>;
|
|
36
|
+
componentDidUpdate(prevProps: any): Promise<void>;
|
|
37
|
+
loadData: () => Promise<void>;
|
|
38
|
+
fieldGroupList: () => JSX.Element[];
|
|
39
|
+
render(): JSX.Element;
|
|
40
|
+
}
|
|
41
|
+
export default DtmplView;
|
|
42
|
+
//# sourceMappingURL=dtmpl-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dtmpl-view.d.ts","sourceRoot":"","sources":["../../../../src/components/detail/view/dtmpl-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAC,cAAc,EAAE,WAAW,EAAE,SAAS,EAAmB,MAAM,sBAAsB,CAAC;AAK9F,OAAO,cAAc,CAAC;AAMtB,MAAM,WAAW,cAAe,SAAQ,cAAc;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAC,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC1B,EAAE,CAAC,EAAC,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,cAAM,SAAU,SAAQ,KAAK,CAAC,aAAa,CAAC,cAAc,EAAE,aAAa,CAAC;IACtE,MAAM,CAAC,YAAY;;MAElB;IAED,KAAK;;;;;;;;;;;;;;MAUJ;IAEK,iBAAiB;IAIjB,kBAAkB,CAAC,SAAS,KAAA;IAQlC,QAAQ,sBAWP;IAED,cAAc,sBAqCb;IAED,MAAM;CA8BT;AAGD,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
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 RelationTable from "../../table/relation-table";
|
|
12
|
+
import FieldViewGroup from './field-view-group';
|
|
13
|
+
import HcserviceV3 from "../../tmpl/hcservice-v3";
|
|
14
|
+
import RightBar from "../rightbar";
|
|
15
|
+
import '../dtmpl.css';
|
|
16
|
+
import Units from '../../units';
|
|
17
|
+
import CollapseCard from "../../controls/collapse-card";
|
|
18
|
+
import CqueryButtonBar from "../button/cquery-button-bar";
|
|
19
|
+
;
|
|
20
|
+
;
|
|
21
|
+
class DtmplView extends React.PureComponent {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.state = {
|
|
25
|
+
loading: true,
|
|
26
|
+
id: 'dtmplView' + Units.getRandomNum(6),
|
|
27
|
+
snapshotVisible: false,
|
|
28
|
+
dtmplData: undefined,
|
|
29
|
+
premisesTitle: "默认字段",
|
|
30
|
+
layout: {
|
|
31
|
+
labelCol: { span: 8 },
|
|
32
|
+
wrapperCol: { span: 16 },
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
this.loadData = () => __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
const { sourceId, code, versionId } = this.props;
|
|
37
|
+
if (code) {
|
|
38
|
+
this.setState({
|
|
39
|
+
loading: true,
|
|
40
|
+
});
|
|
41
|
+
const dtmplData = yield HcserviceV3.requestDtmplData(sourceId, code, versionId);
|
|
42
|
+
this.setState({
|
|
43
|
+
dtmplData, loading: false,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
this.fieldGroupList = () => {
|
|
48
|
+
const { dtmplConfig } = this.props;
|
|
49
|
+
const { dtmplData, loading, id } = this.state;
|
|
50
|
+
let groups = [];
|
|
51
|
+
if (dtmplConfig) {
|
|
52
|
+
groups = dtmplConfig.groups;
|
|
53
|
+
}
|
|
54
|
+
return groups.map((item) => {
|
|
55
|
+
if (item.type == 'relation') { //关系
|
|
56
|
+
if (item.fields) {
|
|
57
|
+
let data = undefined;
|
|
58
|
+
if (dtmplData) {
|
|
59
|
+
data = dtmplData.arrayMap[item.id];
|
|
60
|
+
}
|
|
61
|
+
// console.log("dtmplData", dtmplData );
|
|
62
|
+
// console.log("dtmplData data", data );
|
|
63
|
+
// console.log("initCollapsed", dtmplData && (!data || data.length<=0));
|
|
64
|
+
return React.createElement(RelationTable, { initCollapse: dtmplData && (!data || data.length <= 0), loading: loading, parentId: id, key: item.id, fieldGroupConfig: item, value: data, viewOrEdit: "view" });
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else { //字段组
|
|
68
|
+
return React.createElement(CollapseCard, { title: item.title, key: item.id, id: id + item.id, className: "hoverable", headStyle: { background: "#f2f4f5" }, loading: loading },
|
|
69
|
+
React.createElement(FieldViewGroup, { fields: item.fields, valueMap: dtmplData ? dtmplData.fieldMap : undefined, width: 220 }));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
componentDidMount() {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
yield this.loadData();
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
componentDidUpdate(prevProps) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const { sourceId, code, versionId, refreshCode } = this.props;
|
|
82
|
+
const { code: preCode, versionId: preVersionId, refreshCode: preRefreshCode } = prevProps;
|
|
83
|
+
if (code != preCode || (versionId && versionId != prevProps.versionId) || (refreshCode && refreshCode != preRefreshCode)) {
|
|
84
|
+
yield this.loadData();
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
render() {
|
|
89
|
+
const { showRightNav, rightBarPositionRight, code, sourceId, dtmplConfig } = this.props;
|
|
90
|
+
const { premisesTitle, loading, dtmplData, layout, snapshotVisible, id } = this.state;
|
|
91
|
+
const premises = dtmplConfig ? dtmplConfig.premises : undefined;
|
|
92
|
+
return (React.createElement("div", null,
|
|
93
|
+
this.fieldGroupList(),
|
|
94
|
+
premises && premises.length > 0 ?
|
|
95
|
+
React.createElement(CollapseCard
|
|
96
|
+
// title={<Button type="text"><HolderOutlined />{premisesTitle}</Button>}
|
|
97
|
+
, {
|
|
98
|
+
// title={<Button type="text"><HolderOutlined />{premisesTitle}</Button>}
|
|
99
|
+
title: premisesTitle, key: premisesTitle, id: id + premises[0].id, className: "hoverable", headStyle: { background: "#f2f4f5" }, loading: loading },
|
|
100
|
+
React.createElement(FieldViewGroup, { fields: premises }))
|
|
101
|
+
: "",
|
|
102
|
+
showRightNav ?
|
|
103
|
+
React.createElement(RightBar, { parentId: id, positionRight: rightBarPositionRight, dtmplConfig: dtmplConfig }) : "",
|
|
104
|
+
React.createElement(CqueryButtonBar, { dtmplConfig: dtmplConfig, mainCode: code })));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
DtmplView.defaultProps = {
|
|
108
|
+
showRightNav: true,
|
|
109
|
+
};
|
|
110
|
+
export default DtmplView;
|
|
111
|
+
//# sourceMappingURL=dtmpl-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dtmpl-view.js","sourceRoot":"","sources":["../../../../src/components/detail/view/dtmpl-view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAMzD,CAAC;AAQD,CAAC;AAEF,MAAM,SAAU,SAAQ,KAAK,CAAC,aAA4C;IAA1E;;QAKI,UAAK,GAAG;YACJ,OAAO,EAAE,IAAI;YACb,EAAE,EAAC,WAAW,GAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;YACpC,eAAe,EAAE,KAAK;YACtB,SAAS,EAAE,SAAS;YACpB,aAAa,EAAE,MAAM;YACrB,MAAM,EAAE;gBACJ,QAAQ,EAAE,EAAC,IAAI,EAAE,CAAC,EAAC;gBACnB,UAAU,EAAE,EAAC,IAAI,EAAE,EAAE,EAAC;aACzB;SACJ,CAAA;QAcD,aAAQ,GAAG,GAAS,EAAE;YAClB,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AAG,IAAI,CAAC,KAAK,CAAC;QACtF,MAAM,EAAC,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAC,EAAE,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QACnF,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;QAEhE,OAAO,CACH;YACK,IAAI,CAAC,cAAc,EAAE;YACrB,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAC9B,oBAAC,YAAY;gBACT,yEAAyE;;oBAAzE,yEAAyE;oBACzE,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,aAAa,EAClB,EAAE,EAAE,EAAE,GAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,EACrB,SAAS,EAAC,WAAW,EACrB,SAAS,EAAE,EAAC,UAAU,EAAE,SAAS,EAAC,EAClC,OAAO,EAAE,OAAO;oBAEhB,oBAAC,cAAc,IACX,MAAM,EAAE,QAAQ,GAAG,CACZ;gBACf,CAAC,CAAC,EAAE;YAEP,YAAY,CAAC,CAAC;gBACX,oBAAC,QAAQ,IAAC,QAAQ,EAAE,EAAE,EAAE,aAAa,EAAE,qBAAqB,EAAE,WAAW,EAAE,WAAW,GAAG,CAAC,CAAC,CAAC,EAAE;YAElG,oBAAC,eAAe,IAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,GAAoB,CAC5E,CACT,CAAC;IACN,CAAC;;AA7GM,sBAAY,GAAG;IAClB,YAAY,EAAE,IAAI;CACrB,CAAA;AA+GL,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FieldConfig } from "../../tmpl/interface";
|
|
3
|
+
interface FieldViewGroupProps {
|
|
4
|
+
fields: FieldConfig[];
|
|
5
|
+
valueMap?: object;
|
|
6
|
+
width?: number;
|
|
7
|
+
}
|
|
8
|
+
interface FieldViewGroupState {
|
|
9
|
+
fileList: any;
|
|
10
|
+
}
|
|
11
|
+
export default class FieldViewGroup extends React.PureComponent<FieldViewGroupProps, FieldViewGroupState> {
|
|
12
|
+
constructor(props: any);
|
|
13
|
+
initViewList: () => any[];
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=field-view-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-view-group.d.ts","sourceRoot":"","sources":["../../../../src/components/detail/view/field-view-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAC,WAAW,EAAmB,MAAM,sBAAsB,CAAC;AAInE,UAAU,mBAAmB;IACzB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,mBAAmB;IACzB,QAAQ,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,KAAK,CAAC,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;gBAEzF,KAAK,KAAA;IAOjB,YAAY,cAsCX;IAED,MAAM;CAOT"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Descriptions } from 'antd';
|
|
3
|
+
import ViewControl from './../../controls/view-control';
|
|
4
|
+
;
|
|
5
|
+
;
|
|
6
|
+
export default class FieldViewGroup extends React.PureComponent {
|
|
7
|
+
constructor(props) {
|
|
8
|
+
super(props);
|
|
9
|
+
this.initViewList = () => {
|
|
10
|
+
const { fields, valueMap } = this.props;
|
|
11
|
+
const formItemList = [];
|
|
12
|
+
if (fields.length > 0) {
|
|
13
|
+
fields.forEach((item, index) => {
|
|
14
|
+
const title = item.title;
|
|
15
|
+
let fieldValue = valueMap ? valueMap[item.id] : undefined;
|
|
16
|
+
//fieldValue 没有值时不能为null 要为 undefined。antd input所限制
|
|
17
|
+
fieldValue = fieldValue ? fieldValue : item.defaultValue ? item.defaultValue : undefined;
|
|
18
|
+
const fieldKey = item.id + Math.random() * 100;
|
|
19
|
+
if (item.extControlType != 'hidden') {
|
|
20
|
+
const formItem = React.createElement(Descriptions.Item, { label: item.title, span: item.colNum, key: index, className: 'labelcss' },
|
|
21
|
+
React.createElement(ViewControl, { holderType: 'descriptions', value: fieldValue, fieldConfig: item }));
|
|
22
|
+
formItemList.push(formItem);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return formItemList;
|
|
27
|
+
// const colList = [];
|
|
28
|
+
//
|
|
29
|
+
// for (let i = 0; i < formItemList.length; i = i + 1) {
|
|
30
|
+
// let colNum = fields[i].colNum;
|
|
31
|
+
// let col = <Col span={12 * colNum}>
|
|
32
|
+
// {formItemList[i]}
|
|
33
|
+
// </Col>
|
|
34
|
+
// colList.push(col);
|
|
35
|
+
// }
|
|
36
|
+
//
|
|
37
|
+
// const row =
|
|
38
|
+
// <Row gutter={[16, 8]} key={1}>
|
|
39
|
+
// {colList}
|
|
40
|
+
// </Row>
|
|
41
|
+
//return row;
|
|
42
|
+
};
|
|
43
|
+
this.state = {
|
|
44
|
+
fileList: [],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
return (React.createElement(Descriptions, { column: 2 }, this.initViewList()));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=field-view-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-view-group.js","sourceRoot":"","sources":["../../../../src/components/detail/view/field-view-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAS,YAAY,EAAC,MAAM,MAAM,CAAC;AAE1C,OAAO,WAAW,MAAM,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B;gBACL,CAAC,CAAC,CAAC;aACN;YACD,OAAO,YAAY,CAAC;YACpB,sBAAsB;YACtB,EAAE;YACF,wDAAwD;YACxD,qCAAqC;YACrC,yCAAyC;YACzC,4BAA4B;YAC5B,aAAa;YACb,yBAAyB;YACzB,IAAI;YACJ,EAAE;YACF,cAAc;YACd,qCAAqC;YACrC,oBAAoB;YACpB,aAAa;YACb,aAAa;QACjB,CAAC,CAAA;QA3CG,IAAI,CAAC,KAAK,GAAG;YACT,QAAQ,EAAE,EAAE;SACf,CAAA;IACL,CAAC;IA0CD,MAAM;QACF,OAAO,CACH,oBAAC,YAAY,IAAC,MAAM,EAAE,CAAC,IAClB,IAAI,CAAC,YAAY,EAAE,CACT,CAClB,CAAA;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModalProps as AntdModalProps } from 'antd';
|
|
3
|
+
import { ActDtmplViewProps } from "./act-dtmpl-view";
|
|
4
|
+
interface ModalDtmplViewProps extends AntdModalProps, ActDtmplViewProps {
|
|
5
|
+
height: any;
|
|
6
|
+
}
|
|
7
|
+
interface ModalDtmplViewState {
|
|
8
|
+
}
|
|
9
|
+
export default class ModalDtmplView extends React.PureComponent<ModalDtmplViewProps, ModalDtmplViewState> {
|
|
10
|
+
static defaultProps: {
|
|
11
|
+
showConfirm: boolean;
|
|
12
|
+
height: number;
|
|
13
|
+
forceRender: boolean;
|
|
14
|
+
style: {
|
|
15
|
+
maxWidth: string;
|
|
16
|
+
maxHeight: string;
|
|
17
|
+
};
|
|
18
|
+
cancelText: string;
|
|
19
|
+
form: typeof import("antd/lib/form/Form").useForm;
|
|
20
|
+
};
|
|
21
|
+
static state: {
|
|
22
|
+
viewOrEdit: string;
|
|
23
|
+
};
|
|
24
|
+
render(): JSX.Element;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=modal-dtmpl-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal-dtmpl-view.d.ts","sourceRoot":"","sources":["../../../../src/components/detail/view/modal-dtmpl-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAQ,UAAU,IAAI,cAAc,EAAa,MAAM,MAAM,CAAA;AAEpE,OAAqB,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAEjE,UAAU,mBAAoB,SAAQ,cAAc,EAAE,iBAAiB;IACnE,MAAM,EAAC,GAAG,CAAC;CACd;AAED,UAAU,mBAAmB;CAE5B;AAED,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,KAAK,CAAC,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAErG,MAAM,CAAC,YAAY;;;;;;;;;;MAQlB;IACD,MAAM,CAAC,KAAK;;MAEX;IAOD,MAAM;CAsBT"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Modal, Form, Button } from 'antd';
|
|
3
|
+
import ActDtmplView from "./act-dtmpl-view";
|
|
4
|
+
export default class ModalDtmplView extends React.PureComponent {
|
|
5
|
+
// onCancel=()=>{
|
|
6
|
+
//
|
|
7
|
+
// }
|
|
8
|
+
render() {
|
|
9
|
+
// console.log('antdModalProps:',this.antdModalProps);
|
|
10
|
+
const { height, onOk, onCancel, code, style, sourceId, visible } = this.props;
|
|
11
|
+
console.log('antdModalProps code :', code);
|
|
12
|
+
//const {code} = this.state;
|
|
13
|
+
return React.createElement(Modal, { visible: visible, title: "查看",
|
|
14
|
+
// style={style}
|
|
15
|
+
width: '1250px', centered: true, bodyStyle: { height: height, overflow: 'auto' }, onCancel: onCancel, footer: [
|
|
16
|
+
React.createElement(Button, { key: "back", onClick: onCancel }, "\u53D6 \u6D88")
|
|
17
|
+
] }, code ? React.createElement(ActDtmplView, { rightBarPositionRight: 30, sourceId: sourceId, code: code }) : "");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
ModalDtmplView.defaultProps = {
|
|
21
|
+
showConfirm: true,
|
|
22
|
+
height: 500,
|
|
23
|
+
//antd modal
|
|
24
|
+
forceRender: true,
|
|
25
|
+
style: { maxWidth: 'calc(100vw - 60px)', maxHeight: 'calc(100vh - 50px)' },
|
|
26
|
+
cancelText: "取消",
|
|
27
|
+
form: Form.useForm,
|
|
28
|
+
};
|
|
29
|
+
ModalDtmplView.state = {
|
|
30
|
+
viewOrEdit: 'view',
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=modal-dtmpl-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal-dtmpl-view.js","sourceRoot":"","sources":["../../../../src/components/detail/view/modal-dtmpl-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,KAAK,EAA+B,IAAI,EAAC,MAAM,EAAC,MAAM,MAAM,CAAA;AAEpE,OAAO,YAAiC,MAAM,kBAAkB,CAAC;AAUjE,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,KAAK,CAAC,aAAuD;IAgBrG,iBAAiB;IACjB,EAAE;IACF,IAAI;IAEJ,MAAM;QACF,sDAAsD;QACtD,MAAM,EAAC,MAAM,EAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAC,GAAG,IAAI,CAAC,KAAK,CAAA;QACrE,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAC,IAAI,CAAC,CAAC;QAC1C,4BAA4B;QAC5B,OAAO,oBAAC,KAAK,IACT,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,IAAI;YACX,gBAAgB;YAChB,KAAK,EAAE,QAAQ,EACf,QAAQ,QACR,SAAS,EAAE,EAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAC,EAC7C,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE;gBACJ,oBAAC,MAAM,IAAC,GAAG,EAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,oBAE5B;aAAC,IAEb,IAAI,CAAA,CAAC,CAAA,oBAAC,YAAY,IAAC,qBAAqB,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAG,IAAI,EAAE,IAAI,GAAI,CAAA,CAAC,CAAA,EAAE,CACjF,CAAA;IACZ,CAAC;;AAtCM,2BAAY,GAAG;IAClB,WAAW,EAAE,IAAI;IACjB,MAAM,EAAC,GAAG;IACV,YAAY;IACZ,WAAW,EAAC,IAAI;IAChB,KAAK,EAAC,EAAC,QAAQ,EAAE,oBAAoB,EAAE,SAAS,EAAE,oBAAoB,EAAC;IACvE,UAAU,EAAC,IAAI;IACf,IAAI,EAAC,IAAI,CAAC,OAAO;CACpB,CAAA;AACM,oBAAK,GAAC;IACT,UAAU,EAAC,MAAM;CACpB,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../dtmpl.css';
|
|
3
|
+
import { DtmplConfig } from "../../tmpl/interface";
|
|
4
|
+
export interface SnapshotTimelineProps {
|
|
5
|
+
sourceId: string;
|
|
6
|
+
code: string;
|
|
7
|
+
showSnapshot?: (id: number) => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
visible: boolean;
|
|
10
|
+
dtmplConfig: DtmplConfig;
|
|
11
|
+
}
|
|
12
|
+
export interface SnapshotTimelineStat {
|
|
13
|
+
list: any[];
|
|
14
|
+
loading: boolean;
|
|
15
|
+
current?: number;
|
|
16
|
+
}
|
|
17
|
+
declare class SnapshotTimeline extends React.PureComponent<SnapshotTimelineProps, SnapshotTimelineStat> {
|
|
18
|
+
static defaultProps: {};
|
|
19
|
+
state: {
|
|
20
|
+
list: any;
|
|
21
|
+
loading: boolean;
|
|
22
|
+
current: any;
|
|
23
|
+
};
|
|
24
|
+
componentDidMount(): Promise<void>;
|
|
25
|
+
componentDidUpdate(prevProps: any): Promise<void>;
|
|
26
|
+
loadData: () => Promise<void>;
|
|
27
|
+
onChange: (code: number) => void;
|
|
28
|
+
detailHistory: () => any;
|
|
29
|
+
render(): JSX.Element;
|
|
30
|
+
}
|
|
31
|
+
export default SnapshotTimeline;
|
|
32
|
+
//# sourceMappingURL=snapshot-timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot-timeline.d.ts","sourceRoot":"","sources":["../../../../src/components/detail/view/snapshot-timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,cAAc,CAAC;AACtB,OAAO,EAAC,WAAW,EAAa,MAAM,sBAAsB,CAAC;AAI7D,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,cAAM,gBAAiB,SAAQ,KAAK,CAAC,aAAa,CAAC,qBAAqB,EAAE,oBAAoB,CAAC;IAC3F,MAAM,CAAC,YAAY,KAAK;IAExB,KAAK;;;;MAIJ;IAEK,iBAAiB;IAIjB,kBAAkB,CAAC,SAAS,KAAA;IAQlC,QAAQ,sBAaP;IAED,QAAQ,SAAU,MAAM,UAMvB;IAED,aAAa,YAsBZ;IAED,MAAM;CAkCT;AAGD,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
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, Drawer, Timeline } from 'antd';
|
|
12
|
+
import HcserviceV3 from "../../tmpl/hcservice-v3";
|
|
13
|
+
import '../dtmpl.css';
|
|
14
|
+
import Units from '../../units';
|
|
15
|
+
import DtmplView from "./dtmpl-view";
|
|
16
|
+
;
|
|
17
|
+
;
|
|
18
|
+
class SnapshotTimeline extends React.PureComponent {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.state = {
|
|
22
|
+
list: undefined,
|
|
23
|
+
loading: false,
|
|
24
|
+
current: undefined,
|
|
25
|
+
};
|
|
26
|
+
this.loadData = () => __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
const { sourceId, code, showSnapshot } = this.props;
|
|
28
|
+
const { current } = this.state;
|
|
29
|
+
if (code) {
|
|
30
|
+
this.setState({
|
|
31
|
+
loading: true,
|
|
32
|
+
});
|
|
33
|
+
const list = yield HcserviceV3.requestVersionList(sourceId, code);
|
|
34
|
+
this.setState({
|
|
35
|
+
list, current: !current && list.length > 0 ? list[0].code : current,
|
|
36
|
+
loading: false,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
this.onChange = (code) => {
|
|
41
|
+
const { showSnapshot } = this.props;
|
|
42
|
+
this.setState({
|
|
43
|
+
current: code
|
|
44
|
+
});
|
|
45
|
+
showSnapshot(code);
|
|
46
|
+
};
|
|
47
|
+
this.detailHistory = () => {
|
|
48
|
+
const { list, current } = this.state;
|
|
49
|
+
let detailHistory;
|
|
50
|
+
if (list.length > 0) {
|
|
51
|
+
detailHistory = list.map((item, index) => {
|
|
52
|
+
const isCurrentItem = (current ? item.code === current : false);
|
|
53
|
+
const color = isCurrentItem ? "red" : "blue";
|
|
54
|
+
return React.createElement(Timeline.Item, { color: color, key: index },
|
|
55
|
+
Units.formateDate(item.time),
|
|
56
|
+
React.createElement("br", null),
|
|
57
|
+
`` + item.userName,
|
|
58
|
+
isCurrentItem ? "" : React.createElement(Button, { style: { marginLeft: 10 }, type: "primary", size: "small", onClick: () => this.onChange(item.code) }, "\u67E5\u770B"));
|
|
59
|
+
});
|
|
60
|
+
return detailHistory;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
componentDidMount() {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
componentDidUpdate(prevProps) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const { visible } = this.props;
|
|
71
|
+
const { list } = this.state;
|
|
72
|
+
if (visible && !list) {
|
|
73
|
+
this.loadData();
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
render() {
|
|
78
|
+
const { visible, onClose, dtmplConfig, sourceId, code } = this.props;
|
|
79
|
+
const { list, current } = this.state;
|
|
80
|
+
return (React.createElement(React.Fragment, null,
|
|
81
|
+
React.createElement(Drawer, { title: "\u5FEB\u7167\u5217\u8868", closable: true, onClose: onClose, visible: visible, width: 350 }, list && list.length > 0 ? React.createElement(Timeline, { mode: "alternate" }, this.detailHistory()) : "暂无历史记录"),
|
|
82
|
+
React.createElement(Drawer, { placement: 'left', title: "\u5FEB\u7167\u67E5\u770B", closable: true, mask: false, onClose: onClose, visible: visible, width: 'calc(100% - 380px)', style: {
|
|
83
|
+
maxWidth: 1960,
|
|
84
|
+
} },
|
|
85
|
+
React.createElement(DtmplView, { showRightNav: false, dtmplConfig: dtmplConfig, sourceId: sourceId, code: code, versionId: current }))));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
SnapshotTimeline.defaultProps = {};
|
|
89
|
+
export default SnapshotTimeline;
|
|
90
|
+
//# sourceMappingURL=snapshot-timeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot-timeline.js","sourceRoot":"","sources":["../../../../src/components/detail/view/snapshot-timeline.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,MAAM,CAAA;AAC7C,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,SAAS,MAAM,cAAc,CAAC;AASpC,CAAC;AAMD,CAAC;AAEF,MAAM,gBAAiB,SAAQ,KAAK,CAAC,aAA0D;IAA/F;;QAGI,UAAK,GAAG;YACJ,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,SAAS;SACrB,CAAA;QAcD,aAAQ,GAAG,GAAS,EAAE;YAClB,MAAM,EAAC,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAClD,MAAM,EAAC,OAAO,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAC7B,IAAI,IAAI,EAAE;gBACN,IAAI,CAAC,QAAQ,CAAC;oBACV,OAAO,EAAE,IAAI;iBAChB,CAAC,CAAA;gBACF,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,kBAAkB,CAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;gBACnE,IAAI,CAAC,QAAQ,CAAC;oBACV,IAAI,EAAE,OAAO,EAAE,CAAC,OAAO,IAAI,IAAI,CAAC,MAAM,GAAG,C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S,IAAC,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAChE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,GAAc,CACnD,CACV,CACN,CAAC;IACN,CAAC;;AApGM,6BAAY,GAAG,EAAE,CAAA;AAwG5B,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './export-frame.css';
|
|
3
|
+
import { PageInfo, QueryKey } from "../tmpl/interface";
|
|
4
|
+
interface ExportFrameProps {
|
|
5
|
+
defaultExportMode?: string;
|
|
6
|
+
queryKey: QueryKey;
|
|
7
|
+
currentPage?: PageInfo;
|
|
8
|
+
title: string;
|
|
9
|
+
}
|
|
10
|
+
interface ExportFrameStat {
|
|
11
|
+
interrupted: boolean;
|
|
12
|
+
disabledPageNoInput: boolean;
|
|
13
|
+
disabledCurrentPageRadio: boolean;
|
|
14
|
+
disabledAllPageRadio: boolean;
|
|
15
|
+
exportId: string;
|
|
16
|
+
startPageNo: number;
|
|
17
|
+
endPageNo: number;
|
|
18
|
+
exportMode: string;
|
|
19
|
+
percent: number;
|
|
20
|
+
exportStatus: string;
|
|
21
|
+
exportingMsg: string;
|
|
22
|
+
}
|
|
23
|
+
export default class ExportFrame extends React.PureComponent<ExportFrameProps, ExportFrameStat> {
|
|
24
|
+
static defaultProps: {
|
|
25
|
+
defaultExportMode: string;
|
|
26
|
+
};
|
|
27
|
+
state: {
|
|
28
|
+
interrupted: boolean;
|
|
29
|
+
disabledPageNoInput: boolean;
|
|
30
|
+
disabledCurrentPageRadio: boolean;
|
|
31
|
+
disabledAllPageRadio: boolean;
|
|
32
|
+
exportId: any;
|
|
33
|
+
startPageNo: number;
|
|
34
|
+
endPageNo: number;
|
|
35
|
+
exportMode: string;
|
|
36
|
+
percent: number;
|
|
37
|
+
exportStatus: string;
|
|
38
|
+
exportingMsg: string;
|
|
39
|
+
};
|
|
40
|
+
componentWillUnmount(): void;
|
|
41
|
+
onChangeRadio: (e: any) => void;
|
|
42
|
+
timerID: any;
|
|
43
|
+
handleStart: () => void;
|
|
44
|
+
statusOut: (exportId: any) => void;
|
|
45
|
+
download: () => void;
|
|
46
|
+
handleCancel: () => void;
|
|
47
|
+
render(): JSX.Element;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=export-frame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-frame.d.ts","sourceRoot":"","sources":["../../../src/components/exportor/export-frame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,oBAAoB,CAAA;AAG3B,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAIjE,UAAU,gBAAgB;IACtB,iBAAiB,CAAC,EAAC,MAAM,CAAC;IAC1B,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAC,QAAQ,CAAC;IACtB,KAAK,EAAC,MAAM,CAAC;CAChB;AAED,UAAU,eAAe;IACrB,WAAW,EAAC,OAAO,CAAC;IACpB,mBAAmB,EAAC,OAAO,CAAC;IAC5B,wBAAwB,EAAC,OAAO,CAAC;IACjC,oBAAoB,EAAC,OAAO,CAAC;IAC7B,QAAQ,EAAC,MAAM,CAAC;IAChB,WAAW,EAAC,MAAM,CAAC;IACnB,SAAS,EAAC,MAAM,CAAC;IACjB,UAAU,EAAC,MAAM,CAAC;IAClB,OAAO,EAAC,MAAM,CAAC;IACf,YAAY,EAAC,MAAM,CAAC;IACpB,YAAY,EAAC,MAAM,CAAC;CACvB;AAGD,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAa,CAAC,gBAAgB,EAAE,eAAe,CAAC;IAE5F,MAAM,CAAC,YAAY;;MAEjB;IAED,KAAK;;;;;;;;;;;;MAYJ;IAED,oBAAoB;IAIpB,aAAa,mBAMZ;IAED,OAAO,MAAW;IAElB,WAAW,aA8BV;IACD,SAAS,0BAkCR;IACD,QAAQ,aAKP;IAED,YAAY,aAKX;IAED,MAAM;CAgDT"}
|