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,64 +1,65 @@
|
|
|
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, Card, Popconfirm, Space } from 'antd';
|
|
12
|
-
import { CloseOutlined } from '@ant-design/icons';
|
|
13
|
-
import FieldsForm from "../../form/fields-form";
|
|
14
|
-
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.formRef = React.createRef();
|
|
18
|
-
this.state = {};
|
|
19
|
-
this.reset = () => {
|
|
20
|
-
if (this.formRef.current) {
|
|
21
|
-
this.formRef.current.resetFields();
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
this.onOk = () => {
|
|
25
|
-
this.formRef.current.submit();
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
componentDidMount() {
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
componentDidUpdate() {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
this.reset();
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
const { title, height, onOk, fields, value, onCancel, okButtonType, needConfirm, okDanger, onValuesChange } = this.props;
|
|
39
|
-
const {} = this.state;
|
|
40
|
-
function okButton(onOk) {
|
|
41
|
-
return needConfirm ? okDanger ?
|
|
42
|
-
React.createElement(Popconfirm, { placement: "rightBottom", title: `确定要执行提交吗?`, onConfirm: onOk, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", okType: 'danger' },
|
|
43
|
-
React.createElement(Button, { type: okButtonType, danger: true }, "\u786E\u5B9A")) :
|
|
44
|
-
React.createElement(Popconfirm, { placement: "rightBottom", title: `确定要执行提交吗?`, onConfirm: onOk, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88" },
|
|
45
|
-
React.createElement(Button, { type: okButtonType }, "\u786E\u5B9A")) :
|
|
46
|
-
React.createElement(Button, { type: okButtonType, onClick: onOk }, "\u786E\u5B9A");
|
|
47
|
-
}
|
|
48
|
-
return React.createElement(Card, { size: 'small', style: { width: 1000 }, title: title, bodyStyle: { overflow: 'auto' }, extra: React.createElement(React.Fragment, null,
|
|
49
|
-
React.createElement(Space, { size: [8, 0] },
|
|
50
|
-
React.createElement(Button, { onClick: this.reset }, "\u91CD\u7F6E"),
|
|
51
|
-
okButton(this.onOk),
|
|
52
|
-
onCancel ? React.createElement(Button, { onClick: onCancel },
|
|
53
|
-
React.createElement(CloseOutlined, null)) : "")) },
|
|
54
|
-
React.createElement(FieldsForm, { onValuesChange: onValuesChange, fields: fields, formRef: this.formRef, value: value, onFinish: onOk }));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
FieldsEditCard.defaultProps = {
|
|
58
|
-
forceRender: true,
|
|
59
|
-
style: { maxWidth: 'calc(100vw - 60px)', maxHeight: 'calc(100vh - 50px)' },
|
|
60
|
-
needConfirm: false,
|
|
61
|
-
okButtonType: 'primary',
|
|
62
|
-
okDanger: false,
|
|
63
|
-
};
|
|
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, Card, Popconfirm, Space } from 'antd';
|
|
12
|
+
import { CloseOutlined } from '@ant-design/icons';
|
|
13
|
+
import FieldsForm from "../../form/fields-form";
|
|
14
|
+
class FieldsEditCard extends React.PureComponent {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.formRef = React.createRef();
|
|
18
|
+
this.state = {};
|
|
19
|
+
this.reset = () => {
|
|
20
|
+
if (this.formRef.current) {
|
|
21
|
+
this.formRef.current.resetFields();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.onOk = () => {
|
|
25
|
+
this.formRef.current.submit();
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
componentDidMount() {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
componentDidUpdate() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
this.reset();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
const { title, height, onOk, fields, value, onCancel, okButtonType, needConfirm, okDanger, onValuesChange } = this.props;
|
|
39
|
+
const {} = this.state;
|
|
40
|
+
function okButton(onOk) {
|
|
41
|
+
return needConfirm ? okDanger ?
|
|
42
|
+
React.createElement(Popconfirm, { placement: "rightBottom", title: `确定要执行提交吗?`, onConfirm: onOk, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", okType: 'danger' },
|
|
43
|
+
React.createElement(Button, { type: okButtonType, danger: true }, "\u786E\u5B9A")) :
|
|
44
|
+
React.createElement(Popconfirm, { placement: "rightBottom", title: `确定要执行提交吗?`, onConfirm: onOk, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88" },
|
|
45
|
+
React.createElement(Button, { type: okButtonType }, "\u786E\u5B9A")) :
|
|
46
|
+
React.createElement(Button, { type: okButtonType, onClick: onOk }, "\u786E\u5B9A");
|
|
47
|
+
}
|
|
48
|
+
return React.createElement(Card, { size: 'small', style: { width: 1000 }, title: title, bodyStyle: { overflow: 'auto' }, extra: React.createElement(React.Fragment, null,
|
|
49
|
+
React.createElement(Space, { size: [8, 0] },
|
|
50
|
+
React.createElement(Button, { onClick: this.reset }, "\u91CD\u7F6E"),
|
|
51
|
+
okButton(this.onOk),
|
|
52
|
+
onCancel ? React.createElement(Button, { onClick: onCancel },
|
|
53
|
+
React.createElement(CloseOutlined, null)) : "")) },
|
|
54
|
+
React.createElement(FieldsForm, { onValuesChange: onValuesChange, fields: fields, formRef: this.formRef, value: value, onFinish: onOk }));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
FieldsEditCard.defaultProps = {
|
|
58
|
+
forceRender: true,
|
|
59
|
+
style: { maxWidth: 'calc(100vw - 60px)', maxHeight: 'calc(100vh - 50px)' },
|
|
60
|
+
needConfirm: false,
|
|
61
|
+
okButtonType: 'primary',
|
|
62
|
+
okDanger: false,
|
|
63
|
+
};
|
|
64
|
+
export default FieldsEditCard;
|
|
64
65
|
//# sourceMappingURL=fields-edit-card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields-edit-card.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/fields-edit-card.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAE,IAAI,EAAgB,UAAU,EAAE,KAAK,EAAC,MAAM,MAAM,CAAA;AAClE,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAG/C,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAkBhD,
|
|
1
|
+
{"version":3,"file":"fields-edit-card.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/fields-edit-card.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAE,IAAI,EAAgB,UAAU,EAAE,KAAK,EAAC,MAAM,MAAM,CAAA;AAClE,OAAO,EAAC,aAAa,EAAC,M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{ DtmplData, FieldGroupConfig } from "../../tmpl/interface";
|
|
4
|
-
interface ModalRowEditorProps {
|
|
5
|
-
height?: any;
|
|
6
|
-
open: boolean;
|
|
7
|
-
onOk: (value: DtmplData) => void;
|
|
8
|
-
onCancel: () => void;
|
|
9
|
-
fieldGroupConfig: FieldGroupConfig;
|
|
10
|
-
dtmplData?: DtmplData;
|
|
11
|
-
}
|
|
12
|
-
interface ModalRowEditorState {
|
|
13
|
-
}
|
|
14
|
-
export default class ModalRowEdit extends React.PureComponent<ModalRowEditorProps, ModalRowEditorState> {
|
|
15
|
-
formRef: React.RefObject<FormInstance<any>>;
|
|
16
|
-
static defaultProps: {
|
|
17
|
-
forceRender: boolean;
|
|
18
|
-
style: {
|
|
19
|
-
maxWidth: string;
|
|
20
|
-
maxHeight: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
state: {};
|
|
24
|
-
componentDidMount(): Promise<void>;
|
|
25
|
-
componentDidUpdate(): Promise<void>;
|
|
26
|
-
onOk: () => void;
|
|
27
|
-
getTitle: () => string;
|
|
28
|
-
render(): JSX.Element;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormInstance } from 'antd';
|
|
3
|
+
import { DtmplData, FieldGroupConfig } from "../../tmpl/interface";
|
|
4
|
+
interface ModalRowEditorProps {
|
|
5
|
+
height?: any;
|
|
6
|
+
open: boolean;
|
|
7
|
+
onOk: (value: DtmplData) => void;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
fieldGroupConfig: FieldGroupConfig;
|
|
10
|
+
dtmplData?: DtmplData;
|
|
11
|
+
}
|
|
12
|
+
interface ModalRowEditorState {
|
|
13
|
+
}
|
|
14
|
+
export default class ModalRowEdit extends React.PureComponent<ModalRowEditorProps, ModalRowEditorState> {
|
|
15
|
+
formRef: React.RefObject<FormInstance<any>>;
|
|
16
|
+
static defaultProps: {
|
|
17
|
+
forceRender: boolean;
|
|
18
|
+
style: {
|
|
19
|
+
maxWidth: string;
|
|
20
|
+
maxHeight: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
state: {};
|
|
24
|
+
componentDidMount(): Promise<void>;
|
|
25
|
+
componentDidUpdate(): Promise<void>;
|
|
26
|
+
onOk: () => void;
|
|
27
|
+
getTitle: () => string;
|
|
28
|
+
render(): JSX.Element;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
31
31
|
//# sourceMappingURL=modal-row-edit.d.ts.map
|
|
@@ -1,56 +1,57 @@
|
|
|
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 { Modal } from 'antd';
|
|
12
|
-
import FieldGroupForm from '../../form/field-group-form';
|
|
13
|
-
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.formRef = React.createRef();
|
|
17
|
-
this.state = {};
|
|
18
|
-
this.onOk = () => {
|
|
19
|
-
this.formRef.current.submit();
|
|
20
|
-
};
|
|
21
|
-
this.getTitle = () => {
|
|
22
|
-
const { fieldGroupConfig, dtmplData } = this.props;
|
|
23
|
-
let title = "";
|
|
24
|
-
title = fieldGroupConfig.title;
|
|
25
|
-
if (dtmplData) {
|
|
26
|
-
title = title + "【行编辑】";
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
title = title + "【新建一行】";
|
|
30
|
-
}
|
|
31
|
-
return title;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
componentDidMount() {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
componentDidUpdate() {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (this.formRef.current) {
|
|
41
|
-
this.formRef.current.resetFields();
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
render() {
|
|
46
|
-
const { height, onOk, onCancel, fieldGroupConfig, open, dtmplData } = this.props;
|
|
47
|
-
const {} = this.state;
|
|
48
|
-
return React.createElement(Modal, { open: open, width: 1150, title: this.getTitle(), bodyStyle: { overflow: 'auto' }, destroyOnClose: true, centered: true, okText: '确定', cancelText: '取消', onOk: this.onOk, onCancel: onCancel },
|
|
49
|
-
React.createElement(FieldGroupForm, { fieldGroupConfig: fieldGroupConfig, formRef: this.formRef, onFinish: onOk, dtmplData: dtmplData }));
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
ModalRowEdit.defaultProps = {
|
|
53
|
-
forceRender: true,
|
|
54
|
-
style: { maxWidth: 'calc(100vw - 60px)', maxHeight: 'calc(100vh - 50px)' },
|
|
55
|
-
};
|
|
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 { Modal } from 'antd';
|
|
12
|
+
import FieldGroupForm from '../../form/field-group-form';
|
|
13
|
+
class ModalRowEdit extends React.PureComponent {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.formRef = React.createRef();
|
|
17
|
+
this.state = {};
|
|
18
|
+
this.onOk = () => {
|
|
19
|
+
this.formRef.current.submit();
|
|
20
|
+
};
|
|
21
|
+
this.getTitle = () => {
|
|
22
|
+
const { fieldGroupConfig, dtmplData } = this.props;
|
|
23
|
+
let title = "";
|
|
24
|
+
title = fieldGroupConfig.title;
|
|
25
|
+
if (dtmplData) {
|
|
26
|
+
title = title + "【行编辑】";
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
title = title + "【新建一行】";
|
|
30
|
+
}
|
|
31
|
+
return title;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
componentDidMount() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
componentDidUpdate() {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (this.formRef.current) {
|
|
41
|
+
this.formRef.current.resetFields();
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
const { height, onOk, onCancel, fieldGroupConfig, open, dtmplData } = this.props;
|
|
47
|
+
const {} = this.state;
|
|
48
|
+
return React.createElement(Modal, { open: open, width: 1150, title: this.getTitle(), bodyStyle: { overflow: 'auto' }, destroyOnClose: true, centered: true, okText: '确定', cancelText: '取消', onOk: this.onOk, onCancel: onCancel },
|
|
49
|
+
React.createElement(FieldGroupForm, { fieldGroupConfig: fieldGroupConfig, formRef: this.formRef, onFinish: onOk, dtmplData: dtmplData }));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
ModalRowEdit.defaultProps = {
|
|
53
|
+
forceRender: true,
|
|
54
|
+
style: { maxWidth: 'calc(100vw - 60px)', maxHeight: 'calc(100vh - 50px)' },
|
|
55
|
+
};
|
|
56
|
+
export default ModalRowEdit;
|
|
56
57
|
//# sourceMappingURL=modal-row-edit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-row-edit.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/modal-row-edit.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,KAAK,EAAC,MAAM,MAAM,CAAA;AAExC,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAczD,
|
|
1
|
+
{"version":3,"file":"modal-row-edit.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/modal-row-edit.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,KAAK,EAAC,MAAM,MAAM,CAAA;AAExC,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAczD,MAAqB,YAAa,SAAQ,KAAK,CAAC,aAAuD;IAAvG;;QACI,YAAO,GAAG,KAAK,CAAC,SAAS,EAAgB,CAAC;QAK1C,UAAK,GAAG,EAAE,CAAA;QAWV,SAAI,GAAG,GAAG,EAAE;YACR,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QAClC,CAAC,CAAA;QAED,aAAQ,GAAG,GAAG,EAAE;YACZ,MAAM,EAAC,gBAAgB,EAAE,SAAS,EAAC,GAAG,IAAI,CAAC,KAAK,CAAA;YAChD,IAAI,KAAK,GAAG,EAAE,CAAC;YACf,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC;YAC/B,IAAI,SAAS,EAAE;gBACX,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC;aAC3B;iBAAM;gBACH,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC;aAC5B;YACD,OAAO,KAAK,CAAC;QACjB,CAAC,CAAA;IAuBL,CAAC;IA9CS,iBAAiB;;QACvB,CAAC;KAAA;IAEK,kBAAkB;;YACpB,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;gBACtB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;aACtC;QACL,CAAC;KAAA;IAkBD,MAAM;QACF,MAAM,EAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAC,GAAG,IAAI,CAAC,KAAK,CAAA;QAC9E,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACtB,OAAO,oBAAC,KAAK,IACT,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,EACtB,SAAS,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,EAC7B,cAAc,EAAE,IAAI,EACpB,QAAQ,QACR,MAAM,EAAE,IAAI,EACZ,UAAU,EAAE,IAAI,EAChB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,QAAQ;YAElB,oBAAC,cAAc,IAAC,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EACzD,QAAQ,EAAE,IAAI,EACd,SAAS,EAAE,SAAS,GAAI,CACpC,CAAA;IACZ,CAAC;;AAlDM,yBAAY,GAAG;IAClB,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE,EAAC,QAAQ,EAAE,oBAAoB,EAAE,SAAS,EAAE,oBAAoB,EAAC;CAC3E,AAHkB,CAGlB;eALgB,YAAY"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { AddOrUpdate, SaveJumpType } from "../../../tmpl/interface";
|
|
3
|
-
import { ResultStatusType } from "antd/lib/result";
|
|
4
|
-
interface PostResultProps {
|
|
5
|
-
title?: ReactNode;
|
|
6
|
-
subtitle?: ReactNode;
|
|
7
|
-
open: boolean;
|
|
8
|
-
jumpTypes: SaveJumpType[];
|
|
9
|
-
addOrUpdate: AddOrUpdate;
|
|
10
|
-
resultStatus?: ResultStatusType;
|
|
11
|
-
goAdd: () => void;
|
|
12
|
-
goEdit: () => void;
|
|
13
|
-
goList: () => void;
|
|
14
|
-
}
|
|
15
|
-
declare const PostResult: React.FC<PostResultProps>;
|
|
16
|
-
export default PostResult;
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { AddOrUpdate, SaveJumpType } from "../../../tmpl/interface";
|
|
3
|
+
import { ResultStatusType } from "antd/lib/result";
|
|
4
|
+
interface PostResultProps {
|
|
5
|
+
title?: ReactNode;
|
|
6
|
+
subtitle?: ReactNode;
|
|
7
|
+
open: boolean;
|
|
8
|
+
jumpTypes: SaveJumpType[];
|
|
9
|
+
addOrUpdate: AddOrUpdate;
|
|
10
|
+
resultStatus?: ResultStatusType;
|
|
11
|
+
goAdd: () => void;
|
|
12
|
+
goEdit: () => void;
|
|
13
|
+
goList: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const PostResult: React.FC<PostResultProps>;
|
|
16
|
+
export default PostResult;
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { Button, Modal, Result } from 'antd';
|
|
14
|
-
;
|
|
15
|
-
const PostResult = (_a) => {
|
|
16
|
-
var { resultStatus = 'success' } = _a, props = __rest(_a, ["resultStatus"]);
|
|
17
|
-
const { title, open, subtitle, goAdd, goEdit, goList, jumpTypes, addOrUpdate } = props;
|
|
18
|
-
return (React.createElement(Modal, { title: title ? title : "保存提示", open: open, closable: false, destroyOnClose: true, footer: [], bodyStyle: { height: 430, overflow: 'auto' }, width: 560, maskClosable: true },
|
|
19
|
-
React.createElement(Result, { status: resultStatus, title: resultStatus === "success" ? "保存成功" : "保存失败", subTitle: subtitle, extra: [goAdd && jumpTypes && jumpTypes.includes('add') ?
|
|
20
|
-
React.createElement(Button, { key: "goOnAdd", onClick: () => goAdd() }, addOrUpdate === "update" ? "转添加" : "继续添加") : undefined,
|
|
21
|
-
goEdit && jumpTypes && jumpTypes.includes('edit') ?
|
|
22
|
-
React.createElement(Button, { type: "primary", key: "goOnEdit", onClick: () => goEdit() }, addOrUpdate === "update" ? "继续编辑" : "编辑实体") : "",
|
|
23
|
-
goList && jumpTypes && jumpTypes.includes('list') ?
|
|
24
|
-
React.createElement(Button, { type: "primary", key: "onBackList", onClick: () => goList() }, "\u8FD4\u56DE\u5217\u8868") : ""
|
|
25
|
-
] })));
|
|
26
|
-
};
|
|
27
|
-
export default PostResult;
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { Button, Modal, Result } from 'antd';
|
|
14
|
+
;
|
|
15
|
+
const PostResult = (_a) => {
|
|
16
|
+
var { resultStatus = 'success' } = _a, props = __rest(_a, ["resultStatus"]);
|
|
17
|
+
const { title, open, subtitle, goAdd, goEdit, goList, jumpTypes, addOrUpdate } = props;
|
|
18
|
+
return (React.createElement(Modal, { title: title ? title : "保存提示", open: open, closable: false, destroyOnClose: true, footer: [], bodyStyle: { height: 430, overflow: 'auto' }, width: 560, maskClosable: true },
|
|
19
|
+
React.createElement(Result, { status: resultStatus, title: resultStatus === "success" ? "保存成功" : "保存失败", subTitle: subtitle, extra: [goAdd && jumpTypes && jumpTypes.includes('add') ?
|
|
20
|
+
React.createElement(Button, { key: "goOnAdd", onClick: () => goAdd() }, addOrUpdate === "update" ? "转添加" : "继续添加") : undefined,
|
|
21
|
+
goEdit && jumpTypes && jumpTypes.includes('edit') ?
|
|
22
|
+
React.createElement(Button, { type: "primary", key: "goOnEdit", onClick: () => goEdit() }, addOrUpdate === "update" ? "继续编辑" : "编辑实体") : "",
|
|
23
|
+
goList && jumpTypes && jumpTypes.includes('list') ?
|
|
24
|
+
React.createElement(Button, { type: "primary", key: "onBackList", onClick: () => goList() }, "\u8FD4\u56DE\u5217\u8868") : ""
|
|
25
|
+
] })));
|
|
26
|
+
};
|
|
27
|
+
export default PostResult;
|
|
28
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormInstance } from 'antd';
|
|
3
|
-
import { DtmplData, FieldGroupConfig } from "../../tmpl/interface";
|
|
4
|
-
import { ButtonType } from "antd/es/button";
|
|
5
|
-
interface RowEditCardProps {
|
|
6
|
-
height?: any;
|
|
7
|
-
onCancel?: () => void;
|
|
8
|
-
onOk: (value: DtmplData, hidden: boolean) => void;
|
|
9
|
-
fieldGroupConfig: FieldGroupConfig;
|
|
10
|
-
dtmplData?: DtmplData;
|
|
11
|
-
okButtonType?: ButtonType;
|
|
12
|
-
okDanger?: boolean;
|
|
13
|
-
needConfirm?: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface RowEditCardState {
|
|
16
|
-
isAdded
|
|
17
|
-
}
|
|
18
|
-
export default class RowEditCard extends React.PureComponent<RowEditCardProps, RowEditCardState> {
|
|
19
|
-
formRef: React.RefObject<FormInstance<any>>;
|
|
20
|
-
static defaultProps: {
|
|
21
|
-
forceRender: boolean;
|
|
22
|
-
style: {
|
|
23
|
-
maxWidth: string;
|
|
24
|
-
maxHeight: string;
|
|
25
|
-
};
|
|
26
|
-
needConfirm: boolean;
|
|
27
|
-
okButtonType: string;
|
|
28
|
-
okDanger: boolean;
|
|
29
|
-
};
|
|
30
|
-
state: {
|
|
31
|
-
isAdded: boolean;
|
|
32
|
-
};
|
|
33
|
-
componentDidMount(): Promise<void>;
|
|
34
|
-
componentDidUpdate(): Promise<void>;
|
|
35
|
-
reset: () => void;
|
|
36
|
-
onOk: () => void;
|
|
37
|
-
add: () => void;
|
|
38
|
-
getTitle: () => string;
|
|
39
|
-
render(): JSX.Element;
|
|
40
|
-
}
|
|
41
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormInstance } from 'antd';
|
|
3
|
+
import { DtmplData, FieldGroupConfig } from "../../tmpl/interface";
|
|
4
|
+
import { ButtonType } from "antd/es/button";
|
|
5
|
+
interface RowEditCardProps {
|
|
6
|
+
height?: any;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
onOk: (value: DtmplData, hidden: boolean) => void;
|
|
9
|
+
fieldGroupConfig: FieldGroupConfig;
|
|
10
|
+
dtmplData?: DtmplData;
|
|
11
|
+
okButtonType?: ButtonType;
|
|
12
|
+
okDanger?: boolean;
|
|
13
|
+
needConfirm?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface RowEditCardState {
|
|
16
|
+
isAdded?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export default class RowEditCard extends React.PureComponent<RowEditCardProps, RowEditCardState> {
|
|
19
|
+
formRef: React.RefObject<FormInstance<any>>;
|
|
20
|
+
static defaultProps: {
|
|
21
|
+
forceRender: boolean;
|
|
22
|
+
style: {
|
|
23
|
+
maxWidth: string;
|
|
24
|
+
maxHeight: string;
|
|
25
|
+
};
|
|
26
|
+
needConfirm: boolean;
|
|
27
|
+
okButtonType: string;
|
|
28
|
+
okDanger: boolean;
|
|
29
|
+
};
|
|
30
|
+
state: {
|
|
31
|
+
isAdded: boolean;
|
|
32
|
+
};
|
|
33
|
+
componentDidMount(): Promise<void>;
|
|
34
|
+
componentDidUpdate(): Promise<void>;
|
|
35
|
+
reset: () => void;
|
|
36
|
+
onOk: () => void;
|
|
37
|
+
add: () => void;
|
|
38
|
+
getTitle: () => string;
|
|
39
|
+
render(): JSX.Element;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
42
|
//# sourceMappingURL=row-edit-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-edit-card.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/row-edit-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,YAAY,EAAsC,MAAM,MAAM,CAAA;AAEpF,OAAO,EAAC,SAAS,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAE1C,UAAU,gBAAgB;IACtB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,EAAC,MAAM,EAAC,OAAO,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CA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