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
|
@@ -1,98 +1,98 @@
|
|
|
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 StatActTable from '../table/stat-act-table'
|
|
12
|
-
import { Button, Col, Form, Modal, Row } from "antd";
|
|
13
|
-
import EntryControl from "../controls/entry-control";
|
|
14
|
-
import HCserviceV3 from "../tmpl/hcservice-v3";
|
|
15
|
-
;
|
|
16
|
-
;
|
|
17
|
-
class LtmplPage extends React.PureComponent {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.state = {
|
|
21
|
-
loading: false,
|
|
22
|
-
config: null,
|
|
23
|
-
context: null,
|
|
24
|
-
};
|
|
25
|
-
this.formRef = React.createRef();
|
|
26
|
-
this.handleSubmit = () => __awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
this.setState({
|
|
28
|
-
loading: true
|
|
29
|
-
});
|
|
30
|
-
let { config } = this.state;
|
|
31
|
-
yield this.formRef.current.validateFields().then((values) => __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
let json = {};
|
|
33
|
-
config.forEach((c) => {
|
|
34
|
-
json[c.id] = values[c.id];
|
|
35
|
-
});
|
|
36
|
-
let res = yield HCserviceV3.setContext(json);
|
|
37
|
-
// if (res.status === 'error') {
|
|
38
|
-
// await this.getKaptchaToken();
|
|
39
|
-
// }
|
|
40
|
-
})).catch(errorInfo => {
|
|
41
|
-
});
|
|
42
|
-
this.setState({
|
|
43
|
-
loading: false
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
componentDidMount() {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
let config = yield HCserviceV3.getContextSourceConfig();
|
|
50
|
-
let context = yield HCserviceV3.getContextSourceValue();
|
|
51
|
-
if (!config || config.length == 0) {
|
|
52
|
-
config = [];
|
|
53
|
-
window.location.hash = "#/home";
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
this.setState({
|
|
57
|
-
config,
|
|
58
|
-
context,
|
|
59
|
-
loading: false
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
componentDidUpdate(prevProps) {
|
|
64
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
render() {
|
|
68
|
-
const { config, loading, context } = this.state;
|
|
69
|
-
return React.createElement(Modal, { title: "\u5168\u5C40\u914D\u7F6E", closable: false, open: true, footer: [] },
|
|
70
|
-
React.createElement(Row, { justify: "center", align: "middle" },
|
|
71
|
-
React.createElement(Col, null,
|
|
72
|
-
React.createElement(Form, { style: { width: 350 }, ref: this.formRef, name: "normal_login", className: "login-form", initialValues: { remember: true } },
|
|
73
|
-
config ? config.map((c) => {
|
|
74
|
-
let initialValue = null;
|
|
75
|
-
if (context) {
|
|
76
|
-
context.forEach((con) => {
|
|
77
|
-
if (con.moduleName == c.moduleName) {
|
|
78
|
-
initialValue = con.selectedValues;
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
return React.createElement(Form.Item, { name: c.id, initialValue: initialValue, rules: [{ required: true, message: '请选择' + c.title }] },
|
|
83
|
-
React.createElement(EntryControl, { id: '14', fieldConfig: {
|
|
84
|
-
id: c.groupId,
|
|
85
|
-
title: c.title,
|
|
86
|
-
controlType: 'entity-select',
|
|
87
|
-
max: "1",
|
|
88
|
-
required: true,
|
|
89
|
-
suppleOptions: c.canNotSet ? [{ code: 'all', title: '不设置' }] : undefined
|
|
90
|
-
} }));
|
|
91
|
-
}) : null,
|
|
92
|
-
React.createElement(Form.Item, null,
|
|
93
|
-
React.createElement(Button, { type: "primary", style: { width: '100%' }, loading: loading, onClick: this.handleSubmit, className: "login-form-button" }, "\u786E \u5B9A"))))));
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
LtmplPage.defaultProps = {};
|
|
97
|
-
export default LtmplPage;
|
|
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 StatActTable from '../table/stat-act-table'
|
|
12
|
+
import { Button, Col, Form, Modal, Row } from "antd";
|
|
13
|
+
import EntryControl from "../controls/entry-control";
|
|
14
|
+
import HCserviceV3 from "../tmpl/hcservice-v3";
|
|
15
|
+
;
|
|
16
|
+
;
|
|
17
|
+
class LtmplPage extends React.PureComponent {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.state = {
|
|
21
|
+
loading: false,
|
|
22
|
+
config: null,
|
|
23
|
+
context: null,
|
|
24
|
+
};
|
|
25
|
+
this.formRef = React.createRef();
|
|
26
|
+
this.handleSubmit = () => __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
this.setState({
|
|
28
|
+
loading: true
|
|
29
|
+
});
|
|
30
|
+
let { config } = this.state;
|
|
31
|
+
yield this.formRef.current.validateFields().then((values) => __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
let json = {};
|
|
33
|
+
config.forEach((c) => {
|
|
34
|
+
json[c.id] = values[c.id];
|
|
35
|
+
});
|
|
36
|
+
let res = yield HCserviceV3.setContext(json);
|
|
37
|
+
// if (res.status === 'error') {
|
|
38
|
+
// await this.getKaptchaToken();
|
|
39
|
+
// }
|
|
40
|
+
})).catch(errorInfo => {
|
|
41
|
+
});
|
|
42
|
+
this.setState({
|
|
43
|
+
loading: false
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
componentDidMount() {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
let config = yield HCserviceV3.getContextSourceConfig();
|
|
50
|
+
let context = yield HCserviceV3.getContextSourceValue();
|
|
51
|
+
if (!config || config.length == 0) {
|
|
52
|
+
config = [];
|
|
53
|
+
window.location.hash = "#/home";
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
this.setState({
|
|
57
|
+
config,
|
|
58
|
+
context,
|
|
59
|
+
loading: false
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
componentDidUpdate(prevProps) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
const { config, loading, context } = this.state;
|
|
69
|
+
return React.createElement(Modal, { title: "\u5168\u5C40\u914D\u7F6E", closable: false, open: true, footer: [] },
|
|
70
|
+
React.createElement(Row, { justify: "center", align: "middle" },
|
|
71
|
+
React.createElement(Col, null,
|
|
72
|
+
React.createElement(Form, { style: { width: 350 }, ref: this.formRef, name: "normal_login", className: "login-form", initialValues: { remember: true } },
|
|
73
|
+
config ? config.map((c) => {
|
|
74
|
+
let initialValue = null;
|
|
75
|
+
if (context) {
|
|
76
|
+
context.forEach((con) => {
|
|
77
|
+
if (con.moduleName == c.moduleName) {
|
|
78
|
+
initialValue = con.selectedValues;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
return React.createElement(Form.Item, { name: c.id, initialValue: initialValue, rules: [{ required: true, message: '请选择' + c.title }] },
|
|
83
|
+
React.createElement(EntryControl, { id: '14', fieldConfig: {
|
|
84
|
+
id: c.groupId,
|
|
85
|
+
title: c.title,
|
|
86
|
+
controlType: 'entity-select',
|
|
87
|
+
max: "1",
|
|
88
|
+
required: true,
|
|
89
|
+
suppleOptions: c.canNotSet ? [{ code: 'all', title: '不设置' }] : undefined
|
|
90
|
+
} }));
|
|
91
|
+
}) : null,
|
|
92
|
+
React.createElement(Form.Item, null,
|
|
93
|
+
React.createElement(Button, { type: "primary", style: { width: '100%' }, loading: loading, onClick: this.handleSubmit, className: "login-form-button" }, "\u786E \u5B9A"))))));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
LtmplPage.defaultProps = {};
|
|
97
|
+
export default LtmplPage;
|
|
98
98
|
//# sourceMappingURL=context-setter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-setter.js","sourceRoot":"","sources":["../../../../src/aldehyde/login/context-setter.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,qDAAqD;AACrD,OAAO,EAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAgB,KAAK,EAAE,GAAG,EAAC,MAAM,MAAM,CAAC;AACjE,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAM9C,CAAC;AAMD,CAAC;AAEF,MAAM,SAAU,SAAQ,KAAK,CAAC,aAAqD;IAAnF;;QAEI,UAAK,GAAG;YACJ,OAAO,EAAC,KAAK;YACb,MAAM,EAAE,IAAI;YACZ,OAAO,EAAC,IAAI;SACf,CAAA;QACD,YAAO,GAAG,KAAK,CAAC,SAAS,EAAgB,CAAC;QAuB1C,iBAAY,GAAE,GAAS,EAAE;YACrB,IAAI,CAAC,QAAQ,CAAC;gBACV,OAAO,EAAE,IAAI;aAChB,CAAC,CAAA;YACF,IAAI,EAAE,MAAM,EAAC,GAAG,IAAI,CAAC,KAAK,CAAA;YAE1B,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,CAAO,MAAM,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K,EAAE,EAAC,KAAK,EAAE,MAAM,EAAC,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,EACnF,SAAS,EAAC,mBAAmB,oBAE5B,CACD,CACT,CACL,CACJ,CACF,CAAA;IAGZ,CAAC;;AA5FM,sBAAY,GAAG,EAAE,AAAL,CAAK;AA+F5B,eAAe,SAAS,CAAC"}
|
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
export default class Loginit extends React.Component<any, any, any> {
|
|
2
|
-
constructor(props: any);
|
|
3
|
-
constructor(props: any, context: any);
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
export default class Loginit extends React.Component<any, any, any> {
|
|
2
|
+
constructor(props: any);
|
|
3
|
+
constructor(props: any, context: any);
|
|
4
|
+
state: {
|
|
5
|
+
username: string;
|
|
6
|
+
password: string;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
needKaptcha: boolean;
|
|
9
|
+
kaptchaImg: any;
|
|
10
|
+
kaptchaToken: any;
|
|
11
|
+
config: any;
|
|
12
|
+
};
|
|
13
|
+
formRef: React.RefObject<any>;
|
|
14
|
+
componentDidMount: () => Promise<void>;
|
|
15
|
+
getKaptchaToken: () => Promise<void>;
|
|
16
|
+
handleSubmit: () => Promise<void>;
|
|
17
|
+
handleKeyDown: (event: any) => void;
|
|
18
|
+
changeKaptcha: (event: any) => Promise<void>;
|
|
19
|
+
render(): JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
import React from 'react';
|
|
11
22
|
//# sourceMappingURL=login-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-context.d.ts","sourceRoot":"","sources":["../../../../src/aldehyde/login/login-context.js"],"names":[],"mappings":"AAOA;
|
|
1
|
+
{"version":3,"file":"login-context.d.ts","sourceRoot":"","sources":["../../../../src/aldehyde/login/login-context.js"],"names":[],"mappings":"AAOA;IAwKqzb,wBAA8C;IAAA,sCAAgK;IAvK//b;;;;;;;;MAQC;IACD,8BAA4B;IAE5B,uCAkBC;IAED,qCAUC;IAED,kCAyBC;IAED,oCAQC;IAED,6CAEC;IAMD,sBA4EC;CAEJ;kBA9KiB,OAAO"}
|
|
@@ -1,127 +1,127 @@
|
|
|
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 './index.css';
|
|
12
|
-
import { Button, Col, Form, Input, Row } from 'antd';
|
|
13
|
-
import { LockOutlined, SafetyCertificateOutlined, UserOutlined } from '@ant-design/icons';
|
|
14
|
-
import HCserviceV3 from "../tmpl/hcservice-v3";
|
|
15
|
-
import EntryControl from "../controls/entry-control";
|
|
16
|
-
export default class Loginit extends React.Component {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.state = {
|
|
20
|
-
username: "",
|
|
21
|
-
password: "",
|
|
22
|
-
loading: true,
|
|
23
|
-
needKaptcha: false,
|
|
24
|
-
kaptchaImg: null,
|
|
25
|
-
kaptchaToken: null,
|
|
26
|
-
config: null,
|
|
27
|
-
};
|
|
28
|
-
this.formRef = React.createRef();
|
|
29
|
-
this.componentDidMount = () => __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
if (this.props && this.props.match && this.props.match.params) {
|
|
31
|
-
const { programCode } = this.props.match.params;
|
|
32
|
-
if (programCode) {
|
|
33
|
-
window.localStorage['programCode'] = programCode;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
let pubkey = yield HCserviceV3.getRasPubkey();
|
|
37
|
-
let config = yield HCserviceV3.getContextSourceConfig();
|
|
38
|
-
if (!config) {
|
|
39
|
-
config = [];
|
|
40
|
-
}
|
|
41
|
-
this.setState({
|
|
42
|
-
config,
|
|
43
|
-
pubkey,
|
|
44
|
-
loading: false
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
this.getKaptchaToken = () => __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
let res = yield HCserviceV3.getKaptchaToken();
|
|
49
|
-
if (res) {
|
|
50
|
-
let kaptchaImg = `data:image/png;base64,${res.img}`;
|
|
51
|
-
this.setState({
|
|
52
|
-
kaptchaImg,
|
|
53
|
-
kaptchaToken: res.kaptchaToken,
|
|
54
|
-
needKaptcha: true
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
this.handleSubmit = () => __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
this.setState({
|
|
60
|
-
loading: true
|
|
61
|
-
});
|
|
62
|
-
let { kaptchaToken, pubkey, config } = this.state;
|
|
63
|
-
yield this.formRef.current.validateFields().then((values) => __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
let json = { username: values.username, password: values.password };
|
|
65
|
-
config.forEach((c) => {
|
|
66
|
-
json[c.id] = values[c.id];
|
|
67
|
-
});
|
|
68
|
-
let res = yield HCserviceV3.login(json, kaptchaToken, values.kaptchaText, pubkey);
|
|
69
|
-
if (res.status === 'error') {
|
|
70
|
-
//message.info(res.message);
|
|
71
|
-
yield this.getKaptchaToken();
|
|
72
|
-
}
|
|
73
|
-
})).catch(errorInfo => {
|
|
74
|
-
});
|
|
75
|
-
this.setState({
|
|
76
|
-
loading: false
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
this.handleKeyDown = (event) => {
|
|
80
|
-
switch (event.keyCode) {
|
|
81
|
-
case 13:
|
|
82
|
-
this.handleSubmit();
|
|
83
|
-
break;
|
|
84
|
-
default:
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
this.changeKaptcha = (event) => __awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
yield this.getKaptchaToken();
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
componentDidMount() {
|
|
93
|
-
window.removeEventListener('keydown', this.handleKeyDown);
|
|
94
|
-
}
|
|
95
|
-
render() {
|
|
96
|
-
const { username, password, loading, needKaptcha, kaptchaImg, config } = this.state;
|
|
97
|
-
return (React.createElement(Row, { type: "flex", justify: "center", align: "middle", className: "login" },
|
|
98
|
-
React.createElement(Col, null,
|
|
99
|
-
React.createElement(Form, { style: { width: 350 }, ref: this.formRef, name: "normal_login", className: "login-form", initialValues: { remember: true } },
|
|
100
|
-
React.createElement("h3", null, "\u6B22\u8FCE\u767B\u5F55"),
|
|
101
|
-
config ? config.map((c) => {
|
|
102
|
-
return React.createElement(Form.Item, { name: c.id, rules: [{ required: true, message: '请选择' + c.title }] },
|
|
103
|
-
React.createElement(EntryControl, { id: '14', fieldConfig: {
|
|
104
|
-
id: c.groupId,
|
|
105
|
-
title: c.title,
|
|
106
|
-
controlType: 'entity-select',
|
|
107
|
-
max: "1",
|
|
108
|
-
required: true,
|
|
109
|
-
suppleOptions: c.canNotSet ? [{ code: 'all', title: '不设置' }] : undefined
|
|
110
|
-
} }));
|
|
111
|
-
}) : null,
|
|
112
|
-
config ? React.createElement(React.Fragment, null,
|
|
113
|
-
React.createElement(Form.Item, { name: "username", rules: [{ required: true, message: '请输入用户名!' }, { max: 20, min: 0, message: '输入0-20个字符' },] },
|
|
114
|
-
React.createElement(Input, { prefix: React.createElement(UserOutlined, { className: "site-form-item-icon" }), placeholder: "\u7528\u6237\u540D" })),
|
|
115
|
-
React.createElement(Form.Item, { name: "password", rules: [{ required: true, message: '请输入密码!' }] },
|
|
116
|
-
React.createElement(Input.Password, { placeholder: "\u5BC6\u7801", onKeyDown: this.handleKeyDown, prefix: React.createElement(LockOutlined, { className: "site-form-item-icon" }) }))) : null,
|
|
117
|
-
needKaptcha ? React.createElement(Row, { gutter: 8 },
|
|
118
|
-
React.createElement(Col, { span: 12 },
|
|
119
|
-
React.createElement(Form.Item, { name: "kaptchaText", rules: [{ required: true, message: '请输入验证码!' }] },
|
|
120
|
-
React.createElement(Input, { prefix: React.createElement(SafetyCertificateOutlined, { className: "site-form-item-icon" }), placeholder: "\u9A8C\u8BC1\u7801", onKeyDown: this.handleKeyDown }))),
|
|
121
|
-
React.createElement(Col, { span: 12 },
|
|
122
|
-
React.createElement("img", { style: { "cursor": "pointer" }, height: 30, width: 90, title: '点击刷新', onClick: this.changeKaptcha, src: kaptchaImg }))) : "",
|
|
123
|
-
React.createElement(Form.Item, null,
|
|
124
|
-
React.createElement(Button, { type: "primary", style: { width: '100%' }, loading: loading, onClick: this.handleSubmit, className: "login-form-button" }, "\u767B\u5F55"))))));
|
|
125
|
-
}
|
|
126
|
-
}
|
|
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 './index.css';
|
|
12
|
+
import { Button, Col, Form, Input, Row } from 'antd';
|
|
13
|
+
import { LockOutlined, SafetyCertificateOutlined, UserOutlined } from '@ant-design/icons';
|
|
14
|
+
import HCserviceV3 from "../tmpl/hcservice-v3";
|
|
15
|
+
import EntryControl from "../controls/entry-control";
|
|
16
|
+
export default class Loginit extends React.Component {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.state = {
|
|
20
|
+
username: "",
|
|
21
|
+
password: "",
|
|
22
|
+
loading: true,
|
|
23
|
+
needKaptcha: false,
|
|
24
|
+
kaptchaImg: null,
|
|
25
|
+
kaptchaToken: null,
|
|
26
|
+
config: null,
|
|
27
|
+
};
|
|
28
|
+
this.formRef = React.createRef();
|
|
29
|
+
this.componentDidMount = () => __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
if (this.props && this.props.match && this.props.match.params) {
|
|
31
|
+
const { programCode } = this.props.match.params;
|
|
32
|
+
if (programCode) {
|
|
33
|
+
window.localStorage['programCode'] = programCode;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
let pubkey = yield HCserviceV3.getRasPubkey();
|
|
37
|
+
let config = yield HCserviceV3.getContextSourceConfig();
|
|
38
|
+
if (!config) {
|
|
39
|
+
config = [];
|
|
40
|
+
}
|
|
41
|
+
this.setState({
|
|
42
|
+
config,
|
|
43
|
+
pubkey,
|
|
44
|
+
loading: false
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
this.getKaptchaToken = () => __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
let res = yield HCserviceV3.getKaptchaToken();
|
|
49
|
+
if (res) {
|
|
50
|
+
let kaptchaImg = `data:image/png;base64,${res.img}`;
|
|
51
|
+
this.setState({
|
|
52
|
+
kaptchaImg,
|
|
53
|
+
kaptchaToken: res.kaptchaToken,
|
|
54
|
+
needKaptcha: true
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
this.handleSubmit = () => __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
this.setState({
|
|
60
|
+
loading: true
|
|
61
|
+
});
|
|
62
|
+
let { kaptchaToken, pubkey, config } = this.state;
|
|
63
|
+
yield this.formRef.current.validateFields().then((values) => __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
let json = { username: values.username, password: values.password };
|
|
65
|
+
config.forEach((c) => {
|
|
66
|
+
json[c.id] = values[c.id];
|
|
67
|
+
});
|
|
68
|
+
let res = yield HCserviceV3.login(json, kaptchaToken, values.kaptchaText, pubkey);
|
|
69
|
+
if (res.status === 'error') {
|
|
70
|
+
//message.info(res.message);
|
|
71
|
+
yield this.getKaptchaToken();
|
|
72
|
+
}
|
|
73
|
+
})).catch(errorInfo => {
|
|
74
|
+
});
|
|
75
|
+
this.setState({
|
|
76
|
+
loading: false
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
this.handleKeyDown = (event) => {
|
|
80
|
+
switch (event.keyCode) {
|
|
81
|
+
case 13:
|
|
82
|
+
this.handleSubmit();
|
|
83
|
+
break;
|
|
84
|
+
default:
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
this.changeKaptcha = (event) => __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
yield this.getKaptchaToken();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
componentDidMount() {
|
|
93
|
+
window.removeEventListener('keydown', this.handleKeyDown);
|
|
94
|
+
}
|
|
95
|
+
render() {
|
|
96
|
+
const { username, password, loading, needKaptcha, kaptchaImg, config } = this.state;
|
|
97
|
+
return (React.createElement(Row, { type: "flex", justify: "center", align: "middle", className: "login" },
|
|
98
|
+
React.createElement(Col, null,
|
|
99
|
+
React.createElement(Form, { style: { width: 350 }, ref: this.formRef, name: "normal_login", className: "login-form", initialValues: { remember: true } },
|
|
100
|
+
React.createElement("h3", null, "\u6B22\u8FCE\u767B\u5F55"),
|
|
101
|
+
config ? config.map((c) => {
|
|
102
|
+
return React.createElement(Form.Item, { name: c.id, rules: [{ required: true, message: '请选择' + c.title }] },
|
|
103
|
+
React.createElement(EntryControl, { id: '14', fieldConfig: {
|
|
104
|
+
id: c.groupId,
|
|
105
|
+
title: c.title,
|
|
106
|
+
controlType: 'entity-select',
|
|
107
|
+
max: "1",
|
|
108
|
+
required: true,
|
|
109
|
+
suppleOptions: c.canNotSet ? [{ code: 'all', title: '不设置' }] : undefined
|
|
110
|
+
} }));
|
|
111
|
+
}) : null,
|
|
112
|
+
config ? React.createElement(React.Fragment, null,
|
|
113
|
+
React.createElement(Form.Item, { name: "username", rules: [{ required: true, message: '请输入用户名!' }, { max: 20, min: 0, message: '输入0-20个字符' },] },
|
|
114
|
+
React.createElement(Input, { prefix: React.createElement(UserOutlined, { className: "site-form-item-icon" }), placeholder: "\u7528\u6237\u540D" })),
|
|
115
|
+
React.createElement(Form.Item, { name: "password", rules: [{ required: true, message: '请输入密码!' }] },
|
|
116
|
+
React.createElement(Input.Password, { placeholder: "\u5BC6\u7801", onKeyDown: this.handleKeyDown, prefix: React.createElement(LockOutlined, { className: "site-form-item-icon" }) }))) : null,
|
|
117
|
+
needKaptcha ? React.createElement(Row, { gutter: 8 },
|
|
118
|
+
React.createElement(Col, { span: 12 },
|
|
119
|
+
React.createElement(Form.Item, { name: "kaptchaText", rules: [{ required: true, message: '请输入验证码!' }] },
|
|
120
|
+
React.createElement(Input, { prefix: React.createElement(SafetyCertificateOutlined, { className: "site-form-item-icon" }), placeholder: "\u9A8C\u8BC1\u7801", onKeyDown: this.handleKeyDown }))),
|
|
121
|
+
React.createElement(Col, { span: 12 },
|
|
122
|
+
React.createElement("img", { style: { "cursor": "pointer" }, height: 30, width: 90, title: '点击刷新', onClick: this.changeKaptcha, src: kaptchaImg }))) : "",
|
|
123
|
+
React.createElement(Form.Item, null,
|
|
124
|
+
React.createElement(Button, { type: "primary", style: { width: '100%' }, loading: loading, onClick: this.handleSubmit, className: "login-form-button" }, "\u767B\u5F55"))))));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
127
|
//# sourceMappingURL=login-context.js.map
|
package/lib/login/login.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
constructor(props: any, context: any);
|
|
4
|
-
formRef: React.RefObject<any>;
|
|
5
|
-
getKaptchaToken: () => Promise<void>;
|
|
6
|
-
handleSubmit: () => Promise<void>;
|
|
7
|
-
handleKeyDown: (event: any) => void;
|
|
8
|
-
changeKaptcha: (event: any) => Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
import React from "react";
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
|
+
export default _default;
|
|
11
3
|
//# sourceMappingURL=login.d.ts.map
|
package/lib/login/login.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/aldehyde/login/login.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/aldehyde/login/login.js"],"names":[],"mappings":""}
|