aldehyde 0.2.19 → 0.2.21
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/controls/action/index.d.ts +50 -50
- package/lib/controls/action/index.d.ts.map +1 -1
- package/lib/controls/action/index.js +187 -187
- package/lib/controls/action/index.js.map +1 -1
- package/lib/controls/action/utils.d.ts +8 -8
- package/lib/controls/action/utils.js +109 -109
- package/lib/controls/auto-complete/index.d.ts +6 -6
- package/lib/controls/auto-complete/index.js +51 -51
- package/lib/controls/cascader/index.d.ts +22 -22
- package/lib/controls/cascader/index.d.ts.map +1 -1
- package/lib/controls/cascader/index.js +107 -106
- package/lib/controls/cascader/index.js.map +1 -1
- package/lib/controls/chemstruc/graph.d.ts +28 -28
- package/lib/controls/chemstruc/graph.d.ts.map +1 -1
- package/lib/controls/chemstruc/graph.js +120 -119
- package/lib/controls/chemstruc/graph.js.map +1 -1
- package/lib/controls/code-editor/sql-code-editor.d.ts +14 -14
- package/lib/controls/code-editor/sql-code-editor.js +52 -51
- package/lib/controls/code-editor/sql-code-editor.js.map +1 -1
- package/lib/controls/collapse-card/index.d.ts +19 -19
- package/lib/controls/collapse-card/index.d.ts.map +1 -1
- package/lib/controls/collapse-card/index.js +62 -62
- package/lib/controls/color-picker/index.d.ts +18 -18
- package/lib/controls/color-picker/index.d.ts.map +1 -1
- package/lib/controls/color-picker/index.js +59 -59
- package/lib/controls/counting-tag/index.d.ts +17 -17
- package/lib/controls/counting-tag/index.js +31 -30
- package/lib/controls/counting-tag/index.js.map +1 -1
- package/lib/controls/cquery/cquick-button.d.ts +23 -23
- package/lib/controls/cquery/cquick-button.d.ts.map +1 -1
- package/lib/controls/cquery/cquick-button.js +72 -72
- package/lib/controls/cquery/cquick-button.js.map +1 -1
- package/lib/controls/date-picker/index.d.ts +6 -6
- package/lib/controls/date-picker/index.js +83 -83
- package/lib/controls/entity-select/entity-select.d.ts +73 -73
- package/lib/controls/entity-select/entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/entity-select.js +427 -423
- package/lib/controls/entity-select/entity-select.js.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.d.ts +24 -24
- package/lib/controls/entity-select/lab-tree-select.d.ts.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.js +121 -120
- package/lib/controls/entity-select/lab-tree-select.js.map +1 -1
- package/lib/controls/entity-select/popover-entity-select.d.ts +19 -19
- package/lib/controls/entity-select/popover-entity-select.js +92 -91
- package/lib/controls/entity-select/popover-entity-select.js.map +1 -1
- package/lib/controls/entry-control.d.ts +12 -12
- package/lib/controls/entry-control.js +202 -202
- package/lib/controls/enum-badge/index.d.ts +6 -6
- package/lib/controls/enum-badge/index.js +13 -13
- package/lib/controls/enum-tag/index.d.ts +6 -6
- package/lib/controls/enum-tag/index.js +23 -23
- package/lib/controls/file-view/drawer-file-view.d.ts +21 -21
- package/lib/controls/file-view/drawer-file-view.d.ts.map +1 -1
- package/lib/controls/file-view/drawer-file-view.js +56 -55
- package/lib/controls/file-view/drawer-file-view.js.map +1 -1
- package/lib/controls/file-view/index.d.ts +27 -27
- package/lib/controls/file-view/index.d.ts.map +1 -1
- package/lib/controls/file-view/index.js +135 -134
- package/lib/controls/file-view/index.js.map +1 -1
- package/lib/controls/html-editor/draft.d.ts +21 -21
- package/lib/controls/html-editor/draft.d.ts.map +1 -1
- package/lib/controls/html-editor/draft.js +121 -121
- package/lib/controls/html-editor/draft.js.map +1 -1
- package/lib/controls/html-editor/tinymce.d.ts +12 -7
- package/lib/controls/html-editor/tinymce.d.ts.map +1 -1
- package/lib/controls/html-editor/tinymce.js +44 -43
- package/lib/controls/html-editor/tinymce.js.map +1 -1
- package/lib/controls/input-number/index.d.ts +6 -6
- package/lib/controls/input-number/index.js +68 -68
- package/lib/controls/input-range/index.d.ts +6 -6
- package/lib/controls/input-range/index.js +27 -27
- package/lib/controls/password-setter/index.d.ts +8 -7
- package/lib/controls/password-setter/index.d.ts.map +1 -1
- package/lib/controls/password-setter/index.js +50 -50
- package/lib/controls/progress/index.d.ts +6 -6
- package/lib/controls/progress/index.js +44 -44
- package/lib/controls/relation-existion/index.d.ts +19 -19
- package/lib/controls/relation-existion/index.d.ts.map +1 -1
- package/lib/controls/relation-existion/index.js +74 -74
- package/lib/controls/rfield/index.d.ts +28 -28
- package/lib/controls/rfield/index.d.ts.map +1 -1
- package/lib/controls/rfield/index.js +130 -130
- package/lib/controls/signature/index.d.ts +30 -30
- package/lib/controls/signature/index.d.ts.map +1 -1
- package/lib/controls/signature/index.js +129 -128
- package/lib/controls/signature/index.js.map +1 -1
- package/lib/controls/steps/index.d.ts +6 -6
- package/lib/controls/steps/index.js +41 -41
- package/lib/controls/text/ellipsis-text.d.ts +21 -21
- package/lib/controls/text/ellipsis-text.js +46 -45
- package/lib/controls/text/ellipsis-text.js.map +1 -1
- package/lib/controls/upload/index.d.ts +14 -14
- package/lib/controls/upload/index.js +99 -99
- package/lib/controls/view-control.d.ts +9 -9
- package/lib/controls/view-control.js +174 -174
- package/lib/custom-page/custom-page-router.d.ts +7 -22
- package/lib/custom-page/custom-page-router.d.ts.map +1 -1
- package/lib/custom-page/custom-page-router.js +66 -64
- package/lib/custom-page/custom-page-router.js.map +1 -1
- package/lib/custom-page/def-custom-page.d.ts +6 -5
- package/lib/custom-page/def-custom-page.d.ts.map +1 -1
- package/lib/custom-page/def-custom-page.js +13 -13
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts +42 -42
- package/lib/custom-page/dtmpl-custom-edit-modal-page.js +35 -34
- package/lib/custom-page/dtmpl-custom-edit-modal-page.js.map +1 -1
- package/lib/detail/button/cquery-button-bar.d.ts +15 -15
- package/lib/detail/button/cquery-button-bar.js +74 -74
- package/lib/detail/button/submit-button-bar.d.ts +18 -18
- package/lib/detail/button/submit-button-bar.d.ts.map +1 -1
- package/lib/detail/button/submit-button-bar.js +103 -104
- package/lib/detail/button/submit-button-bar.js.map +1 -1
- package/lib/detail/edit/dtmpl-edit.d.ts +47 -47
- package/lib/detail/edit/dtmpl-edit.d.ts.map +1 -1
- package/lib/detail/edit/dtmpl-edit.js +197 -196
- package/lib/detail/edit/dtmpl-edit.js.map +1 -1
- package/lib/detail/edit/fields-edit-card.d.ts +38 -38
- package/lib/detail/edit/fields-edit-card.js +64 -63
- package/lib/detail/edit/fields-edit-card.js.map +1 -1
- package/lib/detail/edit/modal-row-edit.d.ts +30 -30
- package/lib/detail/edit/modal-row-edit.js +56 -55
- package/lib/detail/edit/modal-row-edit.js.map +1 -1
- package/lib/detail/edit/post-result/index.d.ts +16 -16
- package/lib/detail/edit/post-result/index.js +27 -27
- package/lib/detail/edit/row-edit-card.d.ts +41 -41
- package/lib/detail/edit/row-edit-card.d.ts.map +1 -1
- package/lib/detail/edit/row-edit-card.js +84 -83
- package/lib/detail/edit/row-edit-card.js.map +1 -1
- package/lib/detail/edit/row-editor.d.ts +32 -32
- package/lib/detail/edit/row-editor.d.ts.map +1 -1
- package/lib/detail/edit/row-editor.js +56 -55
- package/lib/detail/edit/row-editor.js.map +1 -1
- package/lib/detail/rightbar/index.d.ts +19 -19
- package/lib/detail/rightbar/index.js +51 -50
- package/lib/detail/rightbar/index.js.map +1 -1
- package/lib/detail/view/act-dtmpl-view.d.ts +43 -43
- package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/act-dtmpl-view.js +96 -96
- package/lib/detail/view/act-dtmpl-view.js.map +1 -1
- package/lib/detail/view/dtmpl-view.d.ts +41 -41
- package/lib/detail/view/dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/dtmpl-view.js +115 -115
- package/lib/detail/view/dtmpl-view.js.map +1 -1
- package/lib/detail/view/field-view-group.d.ts +16 -16
- package/lib/detail/view/field-view-group.js +50 -50
- package/lib/detail/view/modal-dtmpl-view.d.ts +27 -27
- package/lib/detail/view/modal-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.js +32 -31
- package/lib/detail/view/modal-dtmpl-view.js.map +1 -1
- package/lib/detail/view/snapshot-timeline.d.ts +31 -31
- package/lib/detail/view/snapshot-timeline.d.ts.map +1 -1
- package/lib/detail/view/snapshot-timeline.js +89 -89
- package/lib/detail/view/snapshot-timeline.js.map +1 -1
- package/lib/exportor/export-frame.d.ts +49 -49
- package/lib/exportor/export-frame.d.ts.map +1 -1
- package/lib/exportor/export-frame.js +142 -141
- package/lib/exportor/export-frame.js.map +1 -1
- package/lib/exportor/index.d.ts +15 -15
- package/lib/exportor/index.js +43 -43
- package/lib/form/criteria-form.d.ts +19 -19
- package/lib/form/criteria-form.js +147 -147
- package/lib/form/dtmpl-form.d.ts +44 -44
- package/lib/form/dtmpl-form.d.ts.map +1 -1
- package/lib/form/dtmpl-form.js +204 -203
- package/lib/form/dtmpl-form.js.map +1 -1
- package/lib/form/field-group-form.d.ts +20 -20
- package/lib/form/field-group-form.js +57 -57
- package/lib/form/fields-form.d.ts +19 -19
- package/lib/form/fields-form.js +31 -31
- package/lib/form/form-Item-group.d.ts +29 -29
- package/lib/form/form-Item-group.d.ts.map +1 -1
- package/lib/form/form-Item-group.js +108 -107
- package/lib/form/form-Item-group.js.map +1 -1
- package/lib/icon/index.d.ts +10 -10
- package/lib/icon/index.js +21 -21
- package/lib/import/excel-import.d.ts +47 -47
- package/lib/import/excel-import.d.ts.map +1 -1
- package/lib/import/excel-import.js +234 -234
- package/lib/import/template-builder.d.ts +28 -20
- package/lib/import/template-builder.d.ts.map +1 -1
- package/lib/import/template-builder.js +425 -425
- package/lib/index.d.ts +41 -40
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +79 -78
- package/lib/index.js.map +1 -1
- package/lib/layout/MainPage.d.ts +4 -33
- package/lib/layout/MainPage.d.ts.map +1 -1
- package/lib/layout/MainPage.js +204 -204
- package/lib/layout/MainPage.js.map +1 -1
- package/lib/layout/footer/index.d.ts +6 -5
- package/lib/layout/footer/index.d.ts.map +1 -1
- package/lib/layout/footer/index.js +10 -10
- package/lib/layout/header/index.d.ts +14 -14
- package/lib/layout/header/index.js +35 -35
- package/lib/layout/menu/block.d.ts +16 -8
- package/lib/layout/menu/block.d.ts.map +1 -1
- package/lib/layout/menu/block.js +46 -47
- package/lib/layout/menu/block.js.map +1 -1
- package/lib/layout/menu/l2menu-message-bar.d.ts +23 -23
- package/lib/layout/menu/l2menu-message-bar.d.ts.map +1 -1
- package/lib/layout/menu/l2menu-message-bar.js +96 -96
- package/lib/layout/menu/l2menu-quick-bar.d.ts +29 -29
- package/lib/layout/menu/l2menu-quick-bar.d.ts.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.js +93 -93
- package/lib/layout/menu/menu-2layers.d.ts +13 -2
- package/lib/layout/menu/menu-2layers.d.ts.map +1 -1
- package/lib/layout/menu/menu-2layers.js +69 -70
- package/lib/layout/menu/menu-2layers.js.map +1 -1
- package/lib/layout/menu/menu-render.d.ts +8 -8
- package/lib/layout/menu/menu-render.js +74 -74
- package/lib/layout/menu/reset-password.d.ts +24 -24
- package/lib/layout/menu/reset-password.d.ts.map +1 -1
- package/lib/layout/menu/reset-password.js +113 -113
- package/lib/layout/menu/user-bar.d.ts +22 -22
- package/lib/layout/menu/user-bar.js +99 -99
- package/lib/layout/menu/userinfo-bar.d.ts +16 -16
- package/lib/layout/menu/userinfo-bar.d.ts.map +1 -1
- package/lib/layout/menu/userinfo-bar.js +43 -43
- package/lib/layout/sidebar/index.d.ts +11 -11
- package/lib/layout/sidebar/index.js +17 -17
- package/lib/login/context-setter.d.ts +23 -23
- package/lib/login/context-setter.d.ts.map +1 -1
- package/lib/login/context-setter.js +97 -97
- package/lib/login/context-setter.js.map +1 -1
- package/lib/login/login-context.d.ts +21 -10
- package/lib/login/login-context.d.ts.map +1 -1
- package/lib/login/login-context.js +126 -126
- package/lib/login/login.d.ts +2 -10
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login/login.js +105 -101
- package/lib/login/login.js.map +1 -1
- package/lib/module/dtmpl-edit-card.d.ts +42 -42
- package/lib/module/dtmpl-edit-card.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-card.js +162 -162
- package/lib/module/dtmpl-edit-card.js.map +1 -1
- package/lib/module/dtmpl-edit-drawer.d.ts +16 -16
- package/lib/module/dtmpl-edit-drawer.js +7 -7
- package/lib/module/dtmpl-edit-modal.d.ts +17 -17
- package/lib/module/dtmpl-edit-modal.js +7 -7
- package/lib/module/dtmpl-edit-page.d.ts +59 -59
- package/lib/module/dtmpl-edit-page.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-page.js +191 -191
- package/lib/module/dtmpl-edit-page.js.map +1 -1
- package/lib/module/dtmpl-editor.d.ts +38 -38
- package/lib/module/dtmpl-editor.d.ts.map +1 -1
- package/lib/module/dtmpl-editor.js +146 -145
- package/lib/module/dtmpl-editor.js.map +1 -1
- package/lib/module/dtmpl-view-card.d.ts +18 -18
- package/lib/module/dtmpl-view-card.d.ts.map +1 -1
- package/lib/module/dtmpl-view-card.js +45 -45
- package/lib/module/dtmpl-view-drawer.d.ts +26 -26
- package/lib/module/dtmpl-view-drawer.js +39 -39
- package/lib/module/dtmpl-view-drawer.js.map +1 -1
- package/lib/module/dtmpl-view-modal.d.ts +27 -27
- package/lib/module/dtmpl-view-modal.js +35 -35
- package/lib/module/dtmpl-view-modal.js.map +1 -1
- package/lib/module/ltmpl-drawer.d.ts +28 -28
- package/lib/module/ltmpl-drawer.js +37 -36
- package/lib/module/ltmpl-drawer.js.map +1 -1
- package/lib/module/ltmpl-modal.d.ts +28 -28
- package/lib/module/ltmpl-modal.js +36 -35
- package/lib/module/ltmpl-modal.js.map +1 -1
- package/lib/module/ltmpl-table.d.ts +61 -56
- package/lib/module/ltmpl-table.d.ts.map +1 -1
- package/lib/module/ltmpl-table.js +217 -210
- package/lib/module/ltmpl-table.js.map +1 -1
- package/lib/routable/dtmpl-route.d.ts +9 -30
- package/lib/routable/dtmpl-route.d.ts.map +1 -1
- package/lib/routable/dtmpl-route.js +151 -154
- package/lib/routable/dtmpl-route.js.map +1 -1
- package/lib/routable/import-route.d.ts +5 -12
- package/lib/routable/import-route.d.ts.map +1 -1
- package/lib/routable/import-route.js +29 -28
- package/lib/routable/import-route.js.map +1 -1
- package/lib/routable/ltmpl-route.d.ts +10 -28
- package/lib/routable/ltmpl-route.d.ts.map +1 -1
- package/lib/routable/ltmpl-route.js +188 -169
- package/lib/routable/ltmpl-route.js.map +1 -1
- package/lib/routable/withroute.d.ts +3 -0
- package/lib/routable/withroute.d.ts.map +1 -0
- package/lib/routable/withroute.js +11 -0
- package/lib/routable/withroute.js.map +1 -0
- package/lib/table/act-table.d.ts +90 -89
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +529 -532
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/column/column-selector.d.ts +24 -24
- package/lib/table/column/column-selector.js +59 -59
- package/lib/table/column/column-selector.js.map +1 -1
- package/lib/table/l2-act-table.d.ts +27 -22
- package/lib/table/l2-act-table.d.ts.map +1 -1
- package/lib/table/l2-act-table.js +86 -79
- package/lib/table/l2-act-table.js.map +1 -1
- package/lib/table/modal-select-table.d.ts +46 -41
- package/lib/table/modal-select-table.d.ts.map +1 -1
- package/lib/table/modal-select-table.js +215 -207
- package/lib/table/modal-select-table.js.map +1 -1
- package/lib/table/pagination.d.ts +16 -16
- package/lib/table/pagination.d.ts.map +1 -1
- package/lib/table/pagination.js +39 -39
- package/lib/table/pagination.js.map +1 -1
- package/lib/table/query-table.d.ts +73 -64
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js +264 -256
- package/lib/table/query-table.js.map +1 -1
- package/lib/table/relation-table.d.ts +64 -64
- package/lib/table/relation-table.d.ts.map +1 -1
- package/lib/table/relation-table.js +425 -425
- package/lib/table/relation-table.js.map +1 -1
- package/lib/table/select-table.d.ts +45 -40
- package/lib/table/select-table.d.ts.map +1 -1
- package/lib/table/select-table.js +226 -220
- package/lib/table/select-table.js.map +1 -1
- package/lib/table/selected-rows-card.d.ts +15 -15
- package/lib/table/selected-rows-card.js +46 -46
- package/lib/table/stat/restat.d.ts +25 -25
- package/lib/table/stat/restat.d.ts.map +1 -1
- package/lib/table/stat/restat.js +60 -60
- package/lib/table/stat/restat.js.map +1 -1
- package/lib/table/table-util.d.ts +4 -4
- package/lib/table/table-util.js +25 -25
- package/lib/tmpl/control-type-supportor.d.ts +8 -8
- package/lib/tmpl/control-type-supportor.js +98 -98
- package/lib/tmpl/hc-data-source.d.ts +25 -25
- package/lib/tmpl/hc-data-source.js +331 -331
- package/lib/tmpl/hcservice-v3.d.ts +77 -76
- package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
- package/lib/tmpl/hcservice-v3.js +803 -787
- package/lib/tmpl/hcservice-v3.js.map +1 -1
- package/lib/tmpl/interface.d.ts +272 -269
- package/lib/tmpl/interface.d.ts.map +1 -1
- package/lib/tmpl/interface.js +3 -3
- package/lib/tmpl/interface.js.map +1 -1
- package/lib/tmpl/superagent.d.ts +9 -9
- package/lib/tmpl/superagent.js +142 -142
- package/lib/tmpl/tmpl-config-analysis.d.ts +6 -6
- package/lib/tmpl/tmpl-config-analysis.js +106 -106
- package/lib/units/EncryptUtils.d.ts +6 -6
- package/lib/units/EncryptUtils.js +30 -29
- package/lib/units/EncryptUtils.js.map +1 -1
- package/lib/units/index.d.ts +80 -81
- package/lib/units/index.d.ts.map +1 -1
- package/lib/units/index.js +747 -742
- package/lib/units/index.js.map +1 -1
- package/lib/units/storage.d.ts +2 -2
- package/lib/units/storage.js +1 -1
- package/lib/welcome/HCWelcome.d.ts +17 -13
- package/lib/welcome/HCWelcome.d.ts.map +1 -1
- package/lib/welcome/HCWelcome.js +199 -198
- package/lib/welcome/HCWelcome.js.map +1 -1
- package/lib/welcome/quick-entrance.d.ts +19 -19
- package/lib/welcome/quick-entrance.d.ts.map +1 -1
- package/lib/welcome/quick-entrance.js +78 -78
- package/lib/welcome/workbench.d.ts +19 -19
- package/lib/welcome/workbench.d.ts.map +1 -1
- package/lib/welcome/workbench.js +77 -77
- package/package.json +10 -10
- package/src/aldehyde/controls/action/index.tsx +2 -3
- package/src/aldehyde/controls/cascader/index.tsx +1 -1
- package/src/aldehyde/controls/chemstruc/graph.tsx +2 -2
- package/src/aldehyde/controls/collapse-card/index.tsx +1 -1
- package/src/aldehyde/controls/color-picker/index.tsx +1 -1
- package/src/aldehyde/controls/cquery/cquick-button.tsx +1 -1
- package/src/aldehyde/controls/entity-select/entity-select.tsx +17 -20
- package/src/aldehyde/controls/entity-select/lab-tree-select.tsx +1 -1
- package/src/aldehyde/controls/file-view/drawer-file-view.tsx +1 -1
- package/src/aldehyde/controls/file-view/index.tsx +1 -1
- package/src/aldehyde/controls/html-editor/draft.tsx +2 -2
- package/src/aldehyde/controls/relation-existion/index.tsx +1 -1
- package/src/aldehyde/controls/rfield/index.tsx +4 -4
- package/src/aldehyde/controls/signature/index.tsx +3 -3
- package/src/aldehyde/custom-page/custom-page-router.tsx +18 -15
- package/src/aldehyde/detail/button/submit-button-bar.tsx +1 -2
- package/src/aldehyde/detail/edit/dtmpl-edit.tsx +11 -11
- package/src/aldehyde/detail/edit/row-edit-card.tsx +1 -1
- package/src/aldehyde/detail/edit/row-editor.tsx +1 -1
- package/src/aldehyde/detail/view/act-dtmpl-view.tsx +6 -6
- package/src/aldehyde/detail/view/dtmpl-view.tsx +4 -4
- package/src/aldehyde/detail/view/modal-dtmpl-view.tsx +0 -2
- package/src/aldehyde/detail/view/snapshot-timeline.tsx +2 -2
- package/src/aldehyde/exportor/export-frame.tsx +11 -11
- package/src/aldehyde/form/dtmpl-form.tsx +3 -3
- package/src/aldehyde/form/form-Item-group.tsx +1 -1
- package/src/aldehyde/import/excel-import.tsx +11 -11
- package/src/aldehyde/index.tsx +4 -2
- package/src/aldehyde/layout/MainPage.tsx +17 -19
- package/src/aldehyde/layout/menu/block.tsx +3 -3
- package/src/aldehyde/layout/menu/l2menu-message-bar.tsx +3 -3
- package/src/aldehyde/layout/menu/l2menu-quick-bar.tsx +4 -4
- package/src/aldehyde/layout/menu/menu-2layers.tsx +3 -4
- package/src/aldehyde/layout/menu/menu-render.tsx +1 -1
- package/src/aldehyde/layout/menu/reset-password.tsx +3 -3
- package/src/aldehyde/layout/menu/userinfo-bar.tsx +1 -1
- package/src/aldehyde/login/context-setter.tsx +3 -3
- package/src/aldehyde/login/login.js +9 -2
- package/src/aldehyde/module/dtmpl-edit-card.tsx +8 -8
- package/src/aldehyde/module/dtmpl-edit-page.tsx +8 -8
- package/src/aldehyde/module/dtmpl-editor.tsx +5 -5
- package/src/aldehyde/module/dtmpl-view-card.tsx +1 -1
- package/src/aldehyde/module/ltmpl-table.tsx +22 -11
- package/src/aldehyde/routable/dtmpl-route.tsx +32 -34
- package/src/aldehyde/routable/import-route.tsx +4 -3
- package/src/aldehyde/routable/ltmpl-route.tsx +100 -75
- package/src/aldehyde/routable/withroute.tsx +22 -0
- package/src/aldehyde/table/act-table.tsx +31 -32
- package/src/aldehyde/table/l2-act-table.tsx +15 -8
- package/src/aldehyde/table/modal-select-table.tsx +22 -12
- package/src/aldehyde/table/pagination.tsx +3 -4
- package/src/aldehyde/table/query-table.tsx +63 -51
- package/src/aldehyde/table/relation-table.tsx +9 -9
- package/src/aldehyde/table/select-table.tsx +22 -10
- package/src/aldehyde/table/stat/restat.tsx +2 -2
- package/src/aldehyde/tmpl/hcservice-v3.tsx +15 -0
- package/src/aldehyde/tmpl/interface.tsx +5 -1
- package/src/aldehyde/units/index.tsx +18 -13
- package/src/aldehyde/welcome/quick-entrance.tsx +1 -1
- package/src/aldehyde/welcome/workbench.tsx +1 -1
package/lib/layout/MainPage.js
CHANGED
|
@@ -1,205 +1,205 @@
|
|
|
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 { Layout } from 'antd';
|
|
12
|
-
import Footer from './footer/index';
|
|
13
|
-
import Header from './header';
|
|
14
|
-
import SideBar from './sidebar';
|
|
15
|
-
import HCDataSource from "../tmpl/hc-data-source";
|
|
16
|
-
import DocumentTitle from "react-document-title";
|
|
17
|
-
import Units from '../units';
|
|
18
|
-
import Scrollbars from 'react-custom-scrollbars';
|
|
19
|
-
import "./common.css";
|
|
20
|
-
import "./coverstyle.css";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
this.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
let
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
let
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
let
|
|
134
|
-
let
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
const { collapsed, currentL2MenuId, currentBlockId, isImporter } = this.state;
|
|
170
|
-
//滚动条回到顶部
|
|
171
|
-
// document.body.scrollTop = document.documentElement.scrollTop = 0;
|
|
172
|
-
// @ts-ignore
|
|
173
|
-
// eslint-disable-next-line no-unused-expressions
|
|
174
|
-
(_b = (_a = this.scrollbarRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.scrollToTop();
|
|
175
|
-
return (React.createElement(Scrollbars, { ref: this.scrollbarRef, style: { height: 'calc(100vh)' }, autoHide: true, autoHideTimeout: 1000 },
|
|
176
|
-
React.createElement(DocumentTitle, { title: (isImporter ? '导入-' : "") + this.findBlockTitle(currentBlockId) },
|
|
177
|
-
React.createElement(Layout, null,
|
|
178
|
-
React.createElement(Sider, { theme: "light", style: {
|
|
179
|
-
// background: '#0f4da1',
|
|
180
|
-
overflow: 'auto',
|
|
181
|
-
height: '100vh',
|
|
182
|
-
position: 'fixed',
|
|
183
|
-
left: 0,
|
|
184
|
-
top: 0,
|
|
185
|
-
bottom: 0,
|
|
186
|
-
}, collapsed: collapsed },
|
|
187
|
-
React.createElement(SideBar, { blockMenu: this.findCurrentBlock(), currentL2MenuId: currentL2MenuId, collapsed: collapsed })),
|
|
188
|
-
React.createElement(Layout, { style: collapsed ? { background: '#fff', marginLeft: 80 } : {
|
|
189
|
-
background: '#fff',
|
|
190
|
-
marginLeft: 200
|
|
191
|
-
} },
|
|
192
|
-
React.createElement(Header, Object.assign({ toggle: this.toggle }, this.state)),
|
|
193
|
-
React.createElement(Content, { style: {
|
|
194
|
-
margin: '24px 16px 0',
|
|
195
|
-
overflow: 'initial',
|
|
196
|
-
minHeight: 'calc(100vh)',
|
|
197
|
-
minWidth: 760,
|
|
198
|
-
maxWidth: 1960,
|
|
199
|
-
paddingBottom: '8px',
|
|
200
|
-
} }, this.props.children),
|
|
201
|
-
React.createElement(Footer, null))))));
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
export default MainPage;
|
|
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 { Layout } from 'antd';
|
|
12
|
+
import Footer from './footer/index';
|
|
13
|
+
import Header from './header';
|
|
14
|
+
import SideBar from './sidebar';
|
|
15
|
+
import HCDataSource from "../tmpl/hc-data-source";
|
|
16
|
+
import DocumentTitle from "react-document-title";
|
|
17
|
+
import Units from '../units';
|
|
18
|
+
import Scrollbars from 'react-custom-scrollbars';
|
|
19
|
+
import "./common.css";
|
|
20
|
+
import "./coverstyle.css";
|
|
21
|
+
import withRouter from "../routable/withroute";
|
|
22
|
+
const { Content, Sider } = Layout;
|
|
23
|
+
class MainPage extends React.PureComponent {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
this.scrollbarRef = React.createRef();
|
|
27
|
+
this.state = {
|
|
28
|
+
collapsed: false,
|
|
29
|
+
blocks: [],
|
|
30
|
+
currentL2MenuId: undefined,
|
|
31
|
+
currentBlockId: undefined,
|
|
32
|
+
isImporter: false,
|
|
33
|
+
};
|
|
34
|
+
this.findBlockTitle = (blockId) => {
|
|
35
|
+
let blockTitle;
|
|
36
|
+
const { blocks } = this.state;
|
|
37
|
+
if (blockId) {
|
|
38
|
+
for (const block of blocks) {
|
|
39
|
+
if (block.id == blockId) {
|
|
40
|
+
blockTitle = block.title;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
let title = blockTitle ? blockTitle + '-' : "";
|
|
46
|
+
let programName = Units.programName() ? Units.programName() : 'HYDROCARBON';
|
|
47
|
+
title = title + programName;
|
|
48
|
+
return title;
|
|
49
|
+
};
|
|
50
|
+
this.findBlockIdOfL2Menu = (leMenuId) => {
|
|
51
|
+
let blockId = undefined;
|
|
52
|
+
const { blocks } = this.state;
|
|
53
|
+
if (leMenuId) {
|
|
54
|
+
for (const block of blocks) {
|
|
55
|
+
for (const menul1 of block.l1Menus) {
|
|
56
|
+
for (const menul2 of menul1.l2Menus) {
|
|
57
|
+
if (menul2.id == leMenuId) {
|
|
58
|
+
blockId = block.id;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return blockId;
|
|
66
|
+
};
|
|
67
|
+
this.findCurrentBlock = () => {
|
|
68
|
+
const { blocks, currentL2MenuId, currentBlockId } = this.state;
|
|
69
|
+
let result = undefined;
|
|
70
|
+
if (currentL2MenuId) {
|
|
71
|
+
for (const block of blocks) {
|
|
72
|
+
for (const menul1 of block.l1Menus) {
|
|
73
|
+
for (const menul2 of menul1.l2Menus) {
|
|
74
|
+
if (menul2.id == currentL2MenuId) {
|
|
75
|
+
result = block;
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (currentBlockId && !result) {
|
|
83
|
+
for (const block of blocks) {
|
|
84
|
+
if (block.id === currentBlockId) {
|
|
85
|
+
result = block;
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
if (!result) {
|
|
91
|
+
result = blocks.at(0);
|
|
92
|
+
}
|
|
93
|
+
return result;
|
|
94
|
+
};
|
|
95
|
+
this.toggle = () => {
|
|
96
|
+
this.setState((state) => ({
|
|
97
|
+
collapsed: !this.state.collapsed,
|
|
98
|
+
}));
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
componentDidMount() {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
var currentURL = new URL(window.location.href);
|
|
104
|
+
//console.log('main page currentURL:',currentURL);
|
|
105
|
+
const search = window.location.href.split("?")[1];
|
|
106
|
+
var searchParams = new URLSearchParams('?' + search);
|
|
107
|
+
let blockId = searchParams.get('blockId');
|
|
108
|
+
let l2MenuId = searchParams.get('menuId');
|
|
109
|
+
//进一步找找l2MenuId
|
|
110
|
+
if (!l2MenuId) {
|
|
111
|
+
let sourcePart = currentURL.hash.match(/[\w]+\-[\d]+/);
|
|
112
|
+
if (sourcePart) {
|
|
113
|
+
let source = sourcePart[0].split('-');
|
|
114
|
+
if (source[0] === 'menu') {
|
|
115
|
+
l2MenuId = source[1];
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
let blockRes = yield HCDataSource.requestBlocks(l2MenuId ? l2MenuId : undefined, blockId ? blockId : undefined);
|
|
120
|
+
this.setState((state) => ({
|
|
121
|
+
isImporter: currentURL.hash.indexOf('/importer') > 0,
|
|
122
|
+
blocks: blockRes.blocks,
|
|
123
|
+
currentL2MenuId: blockRes.l2MenuId,
|
|
124
|
+
currentBlockId: blockRes.blockId,
|
|
125
|
+
}));
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
componentDidUpdate(prevProps, prevState) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
var currentURL = new URL(window.location.href);
|
|
131
|
+
const search = window.location.href.split("?")[1];
|
|
132
|
+
var searchParams = new URLSearchParams('?' + search);
|
|
133
|
+
let blockId = searchParams.get('blockId');
|
|
134
|
+
let l2MenuId = searchParams.get('menuId');
|
|
135
|
+
let isImporter_ = currentURL.hash.indexOf('/importer') > 0;
|
|
136
|
+
if (prevState.isImporter != isImporter_) {
|
|
137
|
+
this.setState((state) => ({
|
|
138
|
+
isImporter: isImporter_,
|
|
139
|
+
}));
|
|
140
|
+
}
|
|
141
|
+
//进一步找找l2MenuId
|
|
142
|
+
if (!l2MenuId) {
|
|
143
|
+
let sourcePart = currentURL.hash.match(/[\w]+\-[\d]+/);
|
|
144
|
+
if (sourcePart) {
|
|
145
|
+
let source = sourcePart[0].split('-');
|
|
146
|
+
if (source[0] === 'menu') {
|
|
147
|
+
l2MenuId = source[1];
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
const { currentL2MenuId, currentBlockId } = this.state;
|
|
152
|
+
if (l2MenuId && currentL2MenuId != l2MenuId) {
|
|
153
|
+
this.setState((state) => ({
|
|
154
|
+
currentL2MenuId: l2MenuId,
|
|
155
|
+
}));
|
|
156
|
+
}
|
|
157
|
+
if (!blockId) {
|
|
158
|
+
blockId = this.findBlockIdOfL2Menu(l2MenuId);
|
|
159
|
+
}
|
|
160
|
+
if (blockId && currentBlockId != blockId) {
|
|
161
|
+
this.setState((state) => ({
|
|
162
|
+
currentBlockId: blockId,
|
|
163
|
+
}));
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
render() {
|
|
168
|
+
var _a, _b;
|
|
169
|
+
const { collapsed, currentL2MenuId, currentBlockId, isImporter } = this.state;
|
|
170
|
+
//滚动条回到顶部
|
|
171
|
+
// document.body.scrollTop = document.documentElement.scrollTop = 0;
|
|
172
|
+
// @ts-ignore
|
|
173
|
+
// eslint-disable-next-line no-unused-expressions
|
|
174
|
+
(_b = (_a = this.scrollbarRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.scrollToTop();
|
|
175
|
+
return (React.createElement(Scrollbars, { ref: this.scrollbarRef, style: { height: 'calc(100vh)' }, autoHide: true, autoHideTimeout: 1000 },
|
|
176
|
+
React.createElement(DocumentTitle, { title: (isImporter ? '导入-' : "") + this.findBlockTitle(currentBlockId) },
|
|
177
|
+
React.createElement(Layout, null,
|
|
178
|
+
React.createElement(Sider, { theme: "light", style: {
|
|
179
|
+
// background: '#0f4da1',
|
|
180
|
+
overflow: 'auto',
|
|
181
|
+
height: '100vh',
|
|
182
|
+
position: 'fixed',
|
|
183
|
+
left: 0,
|
|
184
|
+
top: 0,
|
|
185
|
+
bottom: 0,
|
|
186
|
+
}, collapsed: collapsed },
|
|
187
|
+
React.createElement(SideBar, { blockMenu: this.findCurrentBlock(), currentL2MenuId: currentL2MenuId, collapsed: collapsed })),
|
|
188
|
+
React.createElement(Layout, { style: collapsed ? { background: '#fff', marginLeft: 80 } : {
|
|
189
|
+
background: '#fff',
|
|
190
|
+
marginLeft: 200
|
|
191
|
+
} },
|
|
192
|
+
React.createElement(Header, Object.assign({ toggle: this.toggle }, this.state)),
|
|
193
|
+
React.createElement(Content, { style: {
|
|
194
|
+
margin: '24px 16px 0',
|
|
195
|
+
overflow: 'initial',
|
|
196
|
+
minHeight: 'calc(100vh)',
|
|
197
|
+
minWidth: 760,
|
|
198
|
+
maxWidth: 1960,
|
|
199
|
+
paddingBottom: '8px',
|
|
200
|
+
} }, this.props.children),
|
|
201
|
+
React.createElement(Footer, null))))));
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
export default withRouter(MainPage);
|
|
205
205
|
//# sourceMappingURL=MainPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainPage.js","sourceRoot":"","sources":["../../../../src/aldehyde/layout/MainPage.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,
|
|
1
|
+
{"version":3,"file":"MainPage.js","sourceRoot":"","sources":["../../../../src/aldehyde/layout/MainPage.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAC,MAAM,MAAM,CAAA;AAC5B,OAAO,MAAM,MAAM,gBAAgB,CAAC;AAEpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,MAAM,UAAU,CAA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4BACjB,IAAI,EAAE,CAAC;4BACP,GAAG,EAAE,CAAC;4BACN,MAAM,EAAE,CAAC;yBACZ,EACD,SAAS,EAAE,SAAS;wBAEpB,oBAAC,OAAO,IAAC,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,EAClC,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,GAAG,CAC9D;oBACR,oBAAC,MAAM,IAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAC,CAAC,CAAC,CAAC;4BAC9D,UAAU,EAAE,MAAM;4BAClB,UAAU,EAAE,GAAG;yBAClB;wBACG,oBAAC,MAAM,kBAAC,MAAM,EAAE,IAAI,CAAC,MAAM,IAAM,IAAI,CAAC,KAAK,EAAI;wBAC/C,oBAAC,OAAO,IAAC,KAAK,EAAE;gCACZ,MAAM,EAAE,aAAa;gCACrB,QAAQ,EAAE,SAAS;gCACnB,SAAS,EAAE,aAAa;gCACxB,QAAQ,EAAE,GAAG;gCACb,QAAQ,EAAE,IAAI;gCACd,aAAa,EAAE,KAAK;6BACvB,IACI,IAAI,CAAC,KAAK,CAAC,QAAQ,CACd;wBACV,oBAAC,MAAM,OAAE,CACJ,CACJ,CACG,CACP,CAChB,CAAA;IACL,CAAC;CACJ;AAED,eAAe,UAAU,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export default class Footer extends React.Component<any, any, any> {
|
|
2
|
-
constructor(props: any);
|
|
3
|
-
constructor(props: any, context: any);
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export default class Footer extends React.Component<any, any, any> {
|
|
2
|
+
constructor(props: any);
|
|
3
|
+
constructor(props: any, context: any);
|
|
4
|
+
render(): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
import React from 'react';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/layout/footer/index.js"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/layout/footer/index.js"],"names":[],"mappings":"AAKA;IAW6koB,wBAA8C;IAAA,sCAAgK;IATvxoB,sBAQC;CACJ;kBAhBiB,OAAO"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import "./index.css";
|
|
3
|
-
import { Layout } from 'antd';
|
|
4
|
-
const { Footer: AntdFooter } = Layout;
|
|
5
|
-
export default class Footer extends React.Component {
|
|
6
|
-
render() {
|
|
7
|
-
return (React.createElement(AntdFooter, { style: { textAlign: 'center' } },
|
|
8
|
-
React.createElement("div", { className: "footer" }, "Enterprise Applications \u00A92022 Created by \u65F7\u8BC6\u79D1\u6280")));
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import { Layout } from 'antd';
|
|
4
|
+
const { Footer: AntdFooter } = Layout;
|
|
5
|
+
export default class Footer extends React.Component {
|
|
6
|
+
render() {
|
|
7
|
+
return (React.createElement(AntdFooter, { style: { textAlign: 'center' } },
|
|
8
|
+
React.createElement("div", { className: "footer" }, "Enterprise Applications \u00A92022 Created by \u65F7\u8BC6\u79D1\u6280")));
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import "./index.css";
|
|
3
|
-
import { BlockProps } from "../menu/block";
|
|
4
|
-
interface HeaderProps extends BlockProps {
|
|
5
|
-
toggle: any;
|
|
6
|
-
collapsed: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface HeaderState {
|
|
9
|
-
}
|
|
10
|
-
declare class Header extends React.PureComponent<HeaderProps, HeaderState> {
|
|
11
|
-
toggle: () => void;
|
|
12
|
-
render(): JSX.Element;
|
|
13
|
-
}
|
|
14
|
-
export default Header;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import { BlockProps } from "../menu/block";
|
|
4
|
+
interface HeaderProps extends BlockProps {
|
|
5
|
+
toggle: any;
|
|
6
|
+
collapsed: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface HeaderState {
|
|
9
|
+
}
|
|
10
|
+
declare class Header extends React.PureComponent<HeaderProps, HeaderState> {
|
|
11
|
+
toggle: () => void;
|
|
12
|
+
render(): JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export default Header;
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Col, Layout, Row } from 'antd';
|
|
3
|
-
import { MenuFoldOutlined, MenuUnfoldOutlined } from '@ant-design/icons';
|
|
4
|
-
import "./index.css";
|
|
5
|
-
import Block from "../menu/block";
|
|
6
|
-
import L2MenuMessageBar from '../menu/l2menu-message-bar';
|
|
7
|
-
import L2MenuQuickBar from '../menu/l2menu-quick-bar';
|
|
8
|
-
import UserBar from '../menu/user-bar';
|
|
9
|
-
const { Header: AntdHeader, } = Layout;
|
|
10
|
-
class Header extends React.PureComponent {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.toggle = () => {
|
|
14
|
-
this.props.toggle();
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
let { collapsed } = this.props;
|
|
19
|
-
return (React.createElement(AntdHeader, { style: { padding: 0, height: 'auto' } },
|
|
20
|
-
React.createElement(Row, { className: "header-top", wrap: false },
|
|
21
|
-
React.createElement(Col, { span: 20, className: "header-col" },
|
|
22
|
-
React.createElement("div", { style: { float: 'left' } }, React.createElement(collapsed ? MenuUnfoldOutlined : MenuFoldOutlined, {
|
|
23
|
-
className: 'trigger',
|
|
24
|
-
onClick: this.toggle,
|
|
25
|
-
})),
|
|
26
|
-
React.createElement(Block, Object.assign({}, this.props))),
|
|
27
|
-
React.createElement(Col, { span: 1, style: { width: '100%' } },
|
|
28
|
-
React.createElement(L2MenuQuickBar, null)),
|
|
29
|
-
React.createElement(Col, { span: 1, style: { width: '100%' } },
|
|
30
|
-
React.createElement(L2MenuMessageBar, null)),
|
|
31
|
-
React.createElement(Col, { span: 2 },
|
|
32
|
-
React.createElement(UserBar, null)))));
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export default Header;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Col, Layout, Row } from 'antd';
|
|
3
|
+
import { MenuFoldOutlined, MenuUnfoldOutlined } from '@ant-design/icons';
|
|
4
|
+
import "./index.css";
|
|
5
|
+
import Block from "../menu/block";
|
|
6
|
+
import L2MenuMessageBar from '../menu/l2menu-message-bar';
|
|
7
|
+
import L2MenuQuickBar from '../menu/l2menu-quick-bar';
|
|
8
|
+
import UserBar from '../menu/user-bar';
|
|
9
|
+
const { Header: AntdHeader, } = Layout;
|
|
10
|
+
class Header extends React.PureComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.toggle = () => {
|
|
14
|
+
this.props.toggle();
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
let { collapsed } = this.props;
|
|
19
|
+
return (React.createElement(AntdHeader, { style: { padding: 0, height: 'auto' } },
|
|
20
|
+
React.createElement(Row, { className: "header-top", wrap: false },
|
|
21
|
+
React.createElement(Col, { span: 20, className: "header-col" },
|
|
22
|
+
React.createElement("div", { style: { float: 'left' } }, React.createElement(collapsed ? MenuUnfoldOutlined : MenuFoldOutlined, {
|
|
23
|
+
className: 'trigger',
|
|
24
|
+
onClick: this.toggle,
|
|
25
|
+
})),
|
|
26
|
+
React.createElement(Block, Object.assign({}, this.props))),
|
|
27
|
+
React.createElement(Col, { span: 1, style: { width: '100%' } },
|
|
28
|
+
React.createElement(L2MenuQuickBar, null)),
|
|
29
|
+
React.createElement(Col, { span: 1, style: { width: '100%' } },
|
|
30
|
+
React.createElement(L2MenuMessageBar, null)),
|
|
31
|
+
React.createElement(Col, { span: 2 },
|
|
32
|
+
React.createElement(UserBar, null)))));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export default Header;
|
|
36
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BlockMenu } from "../../tmpl/interface";
|
|
3
|
+
export interface BlockProps {
|
|
4
|
+
blocks: BlockMenu[];
|
|
5
|
+
currentBlockId?: string;
|
|
6
|
+
currentL2MenuId?: string;
|
|
7
|
+
}
|
|
8
|
+
interface BlockState {
|
|
9
|
+
}
|
|
10
|
+
declare class Block extends React.PureComponent<BlockProps, BlockState> {
|
|
11
|
+
constructor(props: any);
|
|
12
|
+
renderBlockMenu: (blockMenu: BlockMenu) => JSX.Element;
|
|
13
|
+
findBlockId: (blocks: BlockMenu[], currentL2MenuId: string) => string;
|
|
14
|
+
render(): JSX.Element | JSX.Element[];
|
|
15
|
+
}
|
|
16
|
+
export default Block;
|
|
9
17
|
//# sourceMappingURL=block.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/layout/menu/block.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/layout/menu/block.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAM/C,MAAM,WAAW,UAAU;IACvB,MAAM,EAAC,SAAS,EAAE,CAAC;IACnB,cAAc,CAAC,EAAC,MAAM,CAAC;IACvB,eAAe,CAAC,EAAC,MAAM,CAAC;CAC3B;AACD,UAAU,UAAU;CAEnB;AAED,cAAM,KAAM,SAAQ,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,UAAU,CAAC;gBAG/C,KAAK,KAAA;IAIjB,eAAe,cAAc,SAAS,iBAKrC;IAGD,WAAW,WAAW,SAAS,EAAE,mBAAiB,MAAM,YAavD;IAED,MAAM;CA8BT;AAED,eAAe,KAAK,CAAC"}
|