aldehyde 0.2.97 → 0.2.99
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/LICENSE +1 -1
- package/lib/controls/action/index.d.ts +16 -7
- package/lib/controls/action/index.d.ts.map +1 -1
- package/lib/controls/action/index.js +64 -48
- package/lib/controls/action/index.js.map +1 -1
- package/lib/controls/action/utils.d.ts +1 -1
- package/lib/controls/action/utils.d.ts.map +1 -1
- package/lib/controls/action/utils.js +6 -4
- package/lib/controls/action/utils.js.map +1 -1
- package/lib/controls/auto-complete/index.d.ts +1 -1
- package/lib/controls/auto-complete/index.d.ts.map +1 -1
- package/lib/controls/auto-complete/index.js +12 -6
- package/lib/controls/auto-complete/index.js.map +1 -1
- package/lib/controls/chemstruc/graph.d.ts +13 -4
- package/lib/controls/chemstruc/graph.d.ts.map +1 -1
- package/lib/controls/chemstruc/graph.js +40 -27
- package/lib/controls/chemstruc/graph.js.map +1 -1
- package/lib/controls/color-picker/index.d.ts +11 -2
- package/lib/controls/color-picker/index.d.ts.map +1 -1
- package/lib/controls/color-picker/index.js +23 -19
- package/lib/controls/color-picker/index.js.map +1 -1
- package/lib/controls/cquery/cquick-button.d.ts +11 -2
- package/lib/controls/cquery/cquick-button.d.ts.map +1 -1
- package/lib/controls/cquery/cquick-button.js +30 -28
- package/lib/controls/cquery/cquick-button.js.map +1 -1
- package/lib/controls/entity-select/entity-select.d.ts +12 -3
- package/lib/controls/entity-select/entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/entity-select.js +66 -64
- package/lib/controls/entity-select/entity-select.js.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.d.ts +11 -2
- package/lib/controls/entity-select/lab-tree-select.d.ts.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.js +26 -21
- package/lib/controls/entity-select/lab-tree-select.js.map +1 -1
- package/lib/controls/entity-select/popover-entity-select.d.ts +11 -2
- package/lib/controls/entity-select/popover-entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/popover-entity-select.js +30 -26
- package/lib/controls/entity-select/popover-entity-select.js.map +1 -1
- package/lib/controls/entry-control.d.ts +1 -1
- package/lib/controls/entry-control.d.ts.map +1 -1
- package/lib/controls/entry-control.js +152 -98
- package/lib/controls/entry-control.js.map +1 -1
- package/lib/controls/html-editor/tinymce.d.ts.map +1 -1
- package/lib/controls/input-number/index.d.ts +1 -1
- package/lib/controls/input-number/index.d.ts.map +1 -1
- package/lib/controls/input-number/index.js +31 -23
- package/lib/controls/input-number/index.js.map +1 -1
- package/lib/controls/input-range/index.d.ts +1 -1
- package/lib/controls/input-range/index.d.ts.map +1 -1
- package/lib/controls/input-range/index.js +9 -8
- package/lib/controls/input-range/index.js.map +1 -1
- package/lib/controls/password-setter/index.d.ts +9 -3
- package/lib/controls/password-setter/index.d.ts.map +1 -1
- package/lib/controls/password-setter/index.js +22 -14
- package/lib/controls/password-setter/index.js.map +1 -1
- package/lib/controls/progress/index.d.ts +1 -1
- package/lib/controls/progress/index.d.ts.map +1 -1
- package/lib/controls/progress/index.js +13 -6
- package/lib/controls/progress/index.js.map +1 -1
- package/lib/controls/relation-existion/index.d.ts +11 -2
- package/lib/controls/relation-existion/index.d.ts.map +1 -1
- package/lib/controls/relation-existion/index.js +30 -18
- package/lib/controls/relation-existion/index.js.map +1 -1
- package/lib/controls/rfield/index.d.ts +11 -2
- package/lib/controls/rfield/index.d.ts.map +1 -1
- package/lib/controls/rfield/index.js +33 -35
- package/lib/controls/rfield/index.js.map +1 -1
- package/lib/controls/signature/index.d.ts +10 -1
- package/lib/controls/signature/index.d.ts.map +1 -1
- package/lib/controls/signature/index.js +56 -31
- package/lib/controls/signature/index.js.map +1 -1
- package/lib/controls/steps/index.d.ts +1 -1
- package/lib/controls/steps/index.d.ts.map +1 -1
- package/lib/controls/steps/index.js +8 -6
- package/lib/controls/steps/index.js.map +1 -1
- package/lib/controls/text/ellipsis-text.d.ts +9 -0
- package/lib/controls/text/ellipsis-text.d.ts.map +1 -1
- package/lib/controls/text/ellipsis-text.js +13 -11
- package/lib/controls/text/ellipsis-text.js.map +1 -1
- package/lib/controls/upload/index.d.ts +10 -1
- package/lib/controls/upload/index.d.ts.map +1 -1
- package/lib/controls/upload/index.js +30 -21
- package/lib/controls/upload/index.js.map +1 -1
- package/lib/controls/view-control.d.ts +1 -1
- package/lib/controls/view-control.d.ts.map +1 -1
- package/lib/controls/view-control.js +118 -85
- package/lib/controls/view-control.js.map +1 -1
- package/lib/custom-page/def-custom-page.d.ts +5 -6
- package/lib/custom-page/def-custom-page.d.ts.map +1 -1
- package/lib/custom-page/def-custom-page.js +13 -12
- package/lib/custom-page/def-custom-page.js.map +1 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts +10 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts.map +1 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.js +19 -7
- package/lib/custom-page/dtmpl-custom-edit-modal-page.js.map +1 -1
- package/lib/detail/button/bottom-submit-button-bar.d.ts +11 -2
- package/lib/detail/button/bottom-submit-button-bar.d.ts.map +1 -1
- package/lib/detail/button/bottom-submit-button-bar.js +20 -12
- package/lib/detail/button/bottom-submit-button-bar.js.map +1 -1
- package/lib/detail/button/cquery-button-bar.d.ts +12 -3
- package/lib/detail/button/cquery-button-bar.d.ts.map +1 -1
- package/lib/detail/button/cquery-button-bar.js +22 -18
- package/lib/detail/button/cquery-button-bar.js.map +1 -1
- package/lib/detail/button/fix-right-submit-button-bar.d.ts +11 -2
- package/lib/detail/button/fix-right-submit-button-bar.d.ts.map +1 -1
- package/lib/detail/button/fix-right-submit-button-bar.js +28 -23
- package/lib/detail/button/fix-right-submit-button-bar.js.map +1 -1
- package/lib/detail/edit/fields-edit-card.d.ts +11 -2
- package/lib/detail/edit/fields-edit-card.d.ts.map +1 -1
- package/lib/detail/edit/fields-edit-card.js +18 -19
- package/lib/detail/edit/fields-edit-card.js.map +1 -1
- package/lib/detail/edit/modal-row-edit.d.ts +11 -2
- package/lib/detail/edit/modal-row-edit.d.ts.map +1 -1
- package/lib/detail/edit/modal-row-edit.js +14 -11
- package/lib/detail/edit/modal-row-edit.js.map +1 -1
- package/lib/detail/edit/post-result/index.d.ts +1 -1
- package/lib/detail/edit/post-result/index.d.ts.map +1 -1
- package/lib/detail/edit/post-result/index.js +17 -12
- package/lib/detail/edit/post-result/index.js.map +1 -1
- package/lib/detail/edit/row-edit-card.d.ts +11 -2
- package/lib/detail/edit/row-edit-card.d.ts.map +1 -1
- package/lib/detail/edit/row-edit-card.js +23 -23
- package/lib/detail/edit/row-edit-card.js.map +1 -1
- package/lib/detail/rightbar/index.d.ts +12 -3
- package/lib/detail/rightbar/index.d.ts.map +1 -1
- package/lib/detail/rightbar/index.js +16 -9
- package/lib/detail/rightbar/index.js.map +1 -1
- package/lib/detail/view/act-dtmpl-view.d.ts +11 -2
- package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/act-dtmpl-view.js +26 -25
- package/lib/detail/view/act-dtmpl-view.js.map +1 -1
- package/lib/detail/view/dtmpl-view.d.ts +2 -2
- package/lib/detail/view/dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/dtmpl-view.js +40 -40
- package/lib/detail/view/dtmpl-view.js.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.d.ts +10 -1
- package/lib/detail/view/modal-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.js +11 -8
- package/lib/detail/view/modal-dtmpl-view.js.map +1 -1
- package/lib/detail/view/snapshot-timeline.d.ts +11 -2
- package/lib/detail/view/snapshot-timeline.d.ts.map +1 -1
- package/lib/detail/view/snapshot-timeline.js +18 -16
- package/lib/detail/view/snapshot-timeline.js.map +1 -1
- package/lib/exportor/export-frame.d.ts +11 -2
- package/lib/exportor/export-frame.d.ts.map +1 -1
- package/lib/exportor/export-frame.js +41 -42
- package/lib/exportor/export-frame.js.map +1 -1
- package/lib/form/criteria-form.d.ts +2 -2
- package/lib/form/criteria-form.d.ts.map +1 -1
- package/lib/form/criteria-form.js +58 -45
- package/lib/form/criteria-form.js.map +1 -1
- package/lib/form/dtmpl-form.d.ts +11 -2
- package/lib/form/dtmpl-form.d.ts.map +1 -1
- package/lib/form/dtmpl-form.js +76 -61
- package/lib/form/dtmpl-form.js.map +1 -1
- package/lib/form/field-group-form.d.ts +12 -3
- package/lib/form/field-group-form.d.ts.map +1 -1
- package/lib/form/field-group-form.js +26 -18
- package/lib/form/field-group-form.js.map +1 -1
- package/lib/form/form-Item-group.d.ts +10 -1
- package/lib/form/form-Item-group.d.ts.map +1 -1
- package/lib/form/form-Item-group.js +43 -26
- package/lib/form/form-Item-group.js.map +1 -1
- package/lib/import/excel-import.d.ts +12 -3
- package/lib/import/excel-import.d.ts.map +1 -1
- package/lib/import/excel-import.js +69 -55
- package/lib/import/excel-import.js.map +1 -1
- package/lib/index.d.ts +42 -39
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +43 -39
- package/lib/index.js.map +1 -1
- package/lib/layout/MainPage.d.ts +1 -1
- package/lib/layout/MainPage.d.ts.map +1 -1
- package/lib/layout/MainPage.js +46 -36
- package/lib/layout/MainPage.js.map +1 -1
- package/lib/layout/footer/index.d.ts.map +1 -1
- package/lib/layout/header/index.d.ts +1 -1
- package/lib/layout/header/index.d.ts.map +1 -1
- package/lib/layout/header/index.js +16 -14
- package/lib/layout/header/index.js.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.d.ts +11 -2
- package/lib/layout/menu/l2menu-quick-bar.d.ts.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.js +24 -19
- package/lib/layout/menu/l2menu-quick-bar.js.map +1 -1
- package/lib/layout/menu/reset-password.d.ts +12 -3
- package/lib/layout/menu/reset-password.d.ts.map +1 -1
- package/lib/layout/menu/reset-password.js +52 -36
- package/lib/layout/menu/reset-password.js.map +1 -1
- package/lib/layout/menu/user-bar.d.ts +12 -3
- package/lib/layout/menu/user-bar.d.ts.map +1 -1
- package/lib/layout/menu/user-bar.js +72 -42
- package/lib/layout/menu/user-bar.js.map +1 -1
- package/lib/layout/menu/userinfo-bar.d.ts +10 -1
- package/lib/layout/menu/userinfo-bar.d.ts.map +1 -1
- package/lib/layout/menu/userinfo-bar.js +11 -10
- package/lib/layout/menu/userinfo-bar.js.map +1 -1
- package/lib/layout/sidebar/index.css +15 -4
- package/lib/layout/sidebar/index.d.ts +2 -2
- package/lib/layout/sidebar/index.d.ts.map +1 -1
- package/lib/layout/sidebar/index.js +19 -13
- package/lib/layout/sidebar/index.js.map +1 -1
- package/lib/locale/LocaleButton.d.ts +4 -0
- package/lib/locale/LocaleButton.d.ts.map +1 -0
- package/lib/locale/LocaleButton.js +24 -0
- package/lib/locale/LocaleButton.js.map +1 -0
- package/lib/locale/LocaleProvider.d.ts +13 -0
- package/lib/locale/LocaleProvider.d.ts.map +1 -0
- package/lib/locale/LocaleProvider.js +135 -0
- package/lib/locale/LocaleProvider.js.map +1 -0
- package/lib/locale/langMp.d.ts +16 -0
- package/lib/locale/langMp.d.ts.map +1 -0
- package/lib/locale/langMp.js +29 -0
- package/lib/locale/langMp.js.map +1 -0
- package/lib/locale/translate.d.ts +3 -0
- package/lib/locale/translate.d.ts.map +1 -0
- package/lib/locale/translate.js +74 -0
- package/lib/locale/translate.js.map +1 -0
- package/lib/locale/useLocale.d.ts +14 -0
- package/lib/locale/useLocale.d.ts.map +1 -0
- package/lib/locale/useLocale.js +34 -0
- package/lib/locale/useLocale.js.map +1 -0
- package/lib/login/login.d.ts +13 -3
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login/login.js +38 -25
- package/lib/login/login.js.map +1 -1
- package/lib/login/router-login.d.ts +2 -2
- package/lib/login/router-login.d.ts.map +1 -1
- package/lib/login/router-login.js +33 -19
- package/lib/login/router-login.js.map +1 -1
- package/lib/module/dtmpl-edit-card.d.ts +11 -2
- package/lib/module/dtmpl-edit-card.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-card.js +21 -13
- package/lib/module/dtmpl-edit-card.js.map +1 -1
- package/lib/module/dtmpl-edit-page.d.ts +12 -3
- package/lib/module/dtmpl-edit-page.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-page.js +42 -31
- package/lib/module/dtmpl-edit-page.js.map +1 -1
- package/lib/module/ltmpl-modal.d.ts +10 -1
- package/lib/module/ltmpl-modal.d.ts.map +1 -1
- package/lib/module/ltmpl-modal.js +15 -8
- package/lib/module/ltmpl-modal.js.map +1 -1
- package/lib/module/ltmpl-table.d.ts +11 -2
- package/lib/module/ltmpl-table.d.ts.map +1 -1
- package/lib/module/ltmpl-table.js +39 -39
- package/lib/module/ltmpl-table.js.map +1 -1
- package/lib/table/act-table.d.ts +12 -3
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +256 -205
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/control-table-x-axis-wrapper.d.ts +5 -0
- package/lib/table/control-table-x-axis-wrapper.d.ts.map +1 -0
- package/lib/table/control-table-x-axis-wrapper.js +60 -0
- package/lib/table/control-table-x-axis-wrapper.js.map +1 -0
- package/lib/table/l2-act-table.d.ts +1 -1
- package/lib/table/pagination.d.ts +11 -2
- package/lib/table/pagination.d.ts.map +1 -1
- package/lib/table/pagination.js +13 -12
- package/lib/table/pagination.js.map +1 -1
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js +2 -1
- package/lib/table/query-table.js.map +1 -1
- package/lib/table/relation-table.d.ts +13 -4
- package/lib/table/relation-table.d.ts.map +1 -1
- package/lib/table/relation-table.js +117 -108
- package/lib/table/relation-table.js.map +1 -1
- package/lib/table/selected-rows-card.d.ts +10 -1
- package/lib/table/selected-rows-card.d.ts.map +1 -1
- package/lib/table/selected-rows-card.js +10 -9
- package/lib/table/selected-rows-card.js.map +1 -1
- package/lib/table/stat/restat.d.ts +10 -1
- package/lib/table/stat/restat.d.ts.map +1 -1
- package/lib/table/stat/restat.js +10 -9
- package/lib/table/stat/restat.js.map +1 -1
- package/lib/tmpl/hc-data-source.d.ts.map +1 -1
- package/lib/tmpl/hc-data-source.js +21 -14
- package/lib/tmpl/hc-data-source.js.map +1 -1
- package/lib/tmpl/hcservice-v3.d.ts +2 -0
- package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
- package/lib/tmpl/hcservice-v3.js +127 -100
- package/lib/tmpl/hcservice-v3.js.map +1 -1
- package/lib/tmpl/model-struc-v3.d.ts.map +1 -1
- package/lib/tmpl/model-struc-v3.js +19 -18
- package/lib/tmpl/model-struc-v3.js.map +1 -1
- package/lib/tmpl/superagent.d.ts +2 -2
- package/lib/tmpl/superagent.d.ts.map +1 -1
- package/lib/tmpl/superagent.js +28 -23
- package/lib/tmpl/superagent.js.map +1 -1
- package/lib/tree/act-tree.d.ts +10 -1
- package/lib/tree/act-tree.d.ts.map +1 -1
- package/lib/tree/act-tree.js +26 -20
- package/lib/tree/act-tree.js.map +1 -1
- package/lib/tree/tmpl-tree.d.ts +11 -2
- package/lib/tree/tmpl-tree.d.ts.map +1 -1
- package/lib/tree/tmpl-tree.js +76 -58
- package/lib/tree/tmpl-tree.js.map +1 -1
- package/lib/units/index.d.ts.map +1 -1
- package/lib/welcome/HCWelcome.js +7 -23
- package/lib/welcome/HCWelcome.js.map +1 -1
- package/lib/welcome/HCWelcome1.d.ts +4 -0
- package/lib/welcome/HCWelcome1.d.ts.map +1 -0
- package/lib/welcome/HCWelcome1.js +192 -0
- package/lib/welcome/HCWelcome1.js.map +1 -0
- package/lib/welcome/quick-entrance.d.ts +12 -3
- package/lib/welcome/quick-entrance.d.ts.map +1 -1
- package/lib/welcome/quick-entrance.js +21 -17
- package/lib/welcome/quick-entrance.js.map +1 -1
- package/lib/welcome/workbench.d.ts +12 -3
- package/lib/welcome/workbench.d.ts.map +1 -1
- package/lib/welcome/workbench.js +23 -19
- package/lib/welcome/workbench.js.map +1 -1
- package/package.json +1 -1
- package/src/aldehyde/controls/action/index.tsx +328 -221
- package/src/aldehyde/controls/action/utils.tsx +6 -4
- package/src/aldehyde/controls/auto-complete/index.tsx +64 -60
- package/src/aldehyde/controls/chemstruc/graph.tsx +175 -139
- package/src/aldehyde/controls/color-picker/index.tsx +107 -78
- package/src/aldehyde/controls/cquery/cquick-button.tsx +129 -89
- package/src/aldehyde/controls/entity-select/entity-select.tsx +643 -521
- package/src/aldehyde/controls/entity-select/lab-tree-select.tsx +140 -131
- package/src/aldehyde/controls/entity-select/popover-entity-select.tsx +178 -133
- package/src/aldehyde/controls/entry-control.tsx +373 -248
- package/src/aldehyde/controls/input-number/index.tsx +131 -86
- package/src/aldehyde/controls/input-range/index.tsx +51 -40
- package/src/aldehyde/controls/password-setter/index.js +81 -63
- package/src/aldehyde/controls/progress/index.tsx +59 -46
- package/src/aldehyde/controls/relation-existion/index.tsx +125 -87
- package/src/aldehyde/controls/rfield/index.tsx +178 -151
- package/src/aldehyde/controls/signature/index.tsx +215 -151
- package/src/aldehyde/controls/steps/index.tsx +44 -42
- package/src/aldehyde/controls/text/ellipsis-text.tsx +79 -53
- package/src/aldehyde/controls/upload/index.tsx +125 -109
- package/src/aldehyde/controls/view-control.tsx +250 -188
- package/src/aldehyde/custom-page/def-custom-page.tsx +17 -0
- package/src/aldehyde/custom-page/dtmpl-custom-edit-modal-page.tsx +75 -66
- package/src/aldehyde/detail/button/bottom-submit-button-bar.tsx +79 -43
- package/src/aldehyde/detail/button/cquery-button-bar.tsx +129 -98
- package/src/aldehyde/detail/button/fix-right-submit-button-bar.tsx +161 -113
- package/src/aldehyde/detail/edit/fields-edit-card.tsx +124 -87
- package/src/aldehyde/detail/edit/modal-row-edit.tsx +81 -60
- package/src/aldehyde/detail/edit/post-result/index.tsx +80 -47
- package/src/aldehyde/detail/edit/row-edit-card.tsx +158 -107
- package/src/aldehyde/detail/rightbar/index.tsx +79 -63
- package/src/aldehyde/detail/view/act-dtmpl-view.tsx +177 -124
- package/src/aldehyde/detail/view/dtmpl-view.tsx +284 -178
- package/src/aldehyde/detail/view/modal-dtmpl-view.tsx +67 -54
- package/src/aldehyde/detail/view/snapshot-timeline.tsx +143 -110
- package/src/aldehyde/exportor/export-frame.tsx +258 -200
- package/src/aldehyde/form/criteria-form.tsx +309 -201
- package/src/aldehyde/form/dtmpl-form.tsx +460 -305
- package/src/aldehyde/form/field-group-form.tsx +87 -66
- package/src/aldehyde/form/form-Item-group.tsx +190 -132
- package/src/aldehyde/import/excel-import.tsx +414 -331
- package/src/aldehyde/index.tsx +90 -45
- package/src/aldehyde/layout/MainPage.tsx +280 -245
- package/src/aldehyde/layout/header/index.tsx +59 -53
- package/src/aldehyde/layout/menu/l2menu-quick-bar.tsx +137 -118
- package/src/aldehyde/layout/menu/reset-password.tsx +213 -162
- package/src/aldehyde/layout/menu/user-bar.tsx +216 -147
- package/src/aldehyde/layout/menu/userinfo-bar.tsx +58 -41
- package/src/aldehyde/layout/sidebar/index.css +15 -4
- package/src/aldehyde/layout/sidebar/index.tsx +66 -38
- package/src/aldehyde/locale/LocaleButton.tsx +31 -0
- package/src/aldehyde/locale/LocaleProvider.tsx +165 -0
- package/src/aldehyde/locale/langMp.ts +33 -0
- package/src/aldehyde/locale/translate.ts +78 -0
- package/src/aldehyde/locale/useLocale.ts +50 -0
- package/src/aldehyde/login/login.tsx +192 -141
- package/src/aldehyde/login/router-login.tsx +54 -21
- package/src/aldehyde/module/dtmpl-edit-card.tsx +225 -160
- package/src/aldehyde/module/dtmpl-edit-page.tsx +334 -212
- package/src/aldehyde/module/ltmpl-modal.tsx +57 -53
- package/src/aldehyde/module/ltmpl-table.tsx +329 -240
- package/src/aldehyde/table/act-table.tsx +1226 -794
- package/src/aldehyde/table/control-table-x-axis-wrapper.tsx +52 -0
- package/src/aldehyde/table/pagination.tsx +66 -59
- package/src/aldehyde/table/query-table.tsx +2 -1
- package/src/aldehyde/table/relation-table.tsx +781 -571
- package/src/aldehyde/table/selected-rows-card.tsx +61 -48
- package/src/aldehyde/table/stat/restat.tsx +112 -69
- package/src/aldehyde/tmpl/hc-data-source.tsx +381 -296
- package/src/aldehyde/tmpl/hcservice-v3.tsx +991 -796
- package/src/aldehyde/tmpl/model-struc-v3.tsx +95 -91
- package/src/aldehyde/tmpl/superagent.js +148 -142
- package/src/aldehyde/tree/act-tree.tsx +206 -138
- package/src/aldehyde/tree/tmpl-tree.tsx +611 -353
- package/src/aldehyde/welcome/HCWelcome.js +78 -110
- package/src/aldehyde/welcome/HCWelcome1.js +260 -0
- package/src/aldehyde/welcome/quick-entrance.tsx +82 -71
- package/src/aldehyde/welcome/workbench.tsx +83 -68
- package/src/aldehyde/custom-page/def-custom-page.js +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtmpl-custom-edit-modal-page.js","sourceRoot":"","sources":["../../../../src/aldehyde/custom-page/dtmpl-custom-edit-modal-page.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"dtmpl-custom-edit-modal-page.js","sourceRoot":"","sources":["../../../../src/aldehyde/custom-page/dtmpl-custom-edit-modal-page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAU,KAAK,EAAqB,MAAM,MAAM,CAAC;AAChE,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAkBzD,MAAqB,wBAAyB,SAAQ,KAAK,CAAC,aAG3D;IAHD;;QAIE,UAAK,GAAG,EAAE,CAAC;QAYX,cAAS,GAAG,GAAG,EAAE;YACf,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YAC5B,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;YACnC,MAAM,aAAa,GAAG,EAAE,CAAC;YACzB,aAAa,CAAC,OAAO,CACnB,oBAAC,MAAM,IAAC,OAAO,EAAE,IAAI,EAAE,IAA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W,GAAG,aAAa,AAAhB,CAAiB;AAG5B,qCAAY,GAAG;IACpB,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;IACb,SAAS,EAAE,MAAM;IACjB,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE,EAAE,QAAQ,EAAE,oBAAoB,EAAE,SAAS,EAAE,oBAAoB,EAAE;CAC3E,AANkB,CAMjB;eAdiB,wBAAwB"}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
3
|
import { SubmitButtonProps } from "./submit-button-bar";
|
|
4
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
4
5
|
interface BottomSubmitButtonBarProps extends SubmitButtonProps {
|
|
5
6
|
}
|
|
6
7
|
interface BottomSubmitButtonState {
|
|
7
8
|
}
|
|
8
9
|
declare class BottomSubmitButtonBar extends React.PureComponent<BottomSubmitButtonBarProps, BottomSubmitButtonState> {
|
|
9
10
|
state: {};
|
|
11
|
+
static contextType: React.Context<{
|
|
12
|
+
locale: import("../../locale/langMp").LocaleType;
|
|
13
|
+
langPkg: any;
|
|
14
|
+
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
15
|
+
t: (...strs: string[]) => string;
|
|
16
|
+
translate: (...strs: string[]) => string;
|
|
17
|
+
}>;
|
|
18
|
+
context: React.ContextType<typeof LocaleContext>;
|
|
10
19
|
render(): React.JSX.Element;
|
|
11
20
|
}
|
|
12
21
|
export default BottomSubmitButtonBar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bottom-submit-button-bar.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/bottom-submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"bottom-submit-button-bar.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/bottom-submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,CAAC;AAKrB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,UAAU,0BAA2B,SAAQ,iBAAiB;CAAG;AAEjE,UAAU,uBAAuB;CAEhC;AAED,cAAM,qBAAsB,SAAQ,KAAK,CAAC,aAAa,CACrD,0BAA0B,EAC1B,uBAAuB,CACxB;IACC,KAAK,KAEH;IACF,MAAM,CAAC,WAAW;;;;;;OAAiB;IACnC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,MAAM;CA8DP;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
3
|
import { Button, Card, Col, Row, Space } from "antd";
|
|
4
|
-
import { SaveOutlined } from
|
|
4
|
+
import { SaveOutlined } from "@ant-design/icons";
|
|
5
5
|
import Action from "../../controls/action";
|
|
6
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
6
7
|
class BottomSubmitButtonBar extends React.PureComponent {
|
|
7
8
|
constructor() {
|
|
8
9
|
super(...arguments);
|
|
@@ -12,19 +13,26 @@ class BottomSubmitButtonBar extends React.PureComponent {
|
|
|
12
13
|
}
|
|
13
14
|
render() {
|
|
14
15
|
const {} = this.state;
|
|
15
|
-
const { dtmplConfig, position, doSubmit, formRef, serial, serverKey, dtmplData } = this.props;
|
|
16
|
+
const { dtmplConfig, position, doSubmit, formRef, serial, serverKey, dtmplData, } = this.props;
|
|
16
17
|
const { buttons, actions } = dtmplConfig;
|
|
18
|
+
const { translate } = this.context;
|
|
17
19
|
return (React.createElement(Card, { bordered: false },
|
|
18
|
-
React.createElement(Row, { align:
|
|
20
|
+
React.createElement(Row, { align: "middle", justify: position == "bottomLeft"
|
|
21
|
+
? "start"
|
|
22
|
+
: position == "bottomRight"
|
|
23
|
+
? "end"
|
|
24
|
+
: "center" },
|
|
19
25
|
React.createElement(Space, null,
|
|
20
|
-
buttons.includes(
|
|
21
|
-
React.createElement(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
buttons.includes("dtmplSave") ? (React.createElement(Col, null,
|
|
27
|
+
React.createElement(Button, { onClick: () => doSubmit(), type: "primary", icon: React.createElement(SaveOutlined, null), key: "btn", block: true }, translate("${保存}")))) : null,
|
|
28
|
+
actions
|
|
29
|
+
? actions.map((item, index) => {
|
|
30
|
+
return (React.createElement(Col, null,
|
|
31
|
+
React.createElement(Action, { serverKey: serverKey, serial: serial, key: item.id, data: [dtmplData], formRef: formRef, actionConfig: item, doAction: doSubmit })));
|
|
32
|
+
})
|
|
33
|
+
: ""))));
|
|
27
34
|
}
|
|
28
35
|
}
|
|
36
|
+
BottomSubmitButtonBar.contextType = LocaleContext;
|
|
29
37
|
export default BottomSubmitButtonBar;
|
|
30
38
|
//# sourceMappingURL=bottom-submit-button-bar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bottom-submit-button-bar.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/bottom-submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"bottom-submit-button-bar.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/bottom-submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,O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ACL,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,IAAI,EAAE,CAAC,SAAS,CAAC,EACjB,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,IAAI,EAClB,QAAQ,EAAE,QAAQ,GACV,CACN,CACP,CAAC;wBACJ,CAAC,CAAC;wBACJ,CAAC,CAAC,EAAE,CACA,CACJ,CACD,CACR,CAAC;IACJ,CAAC;;AAhEM,iCAAW,GAAG,aAAa,AAAhB,CAAiB;AAmErC,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
3
|
import { CQueryConfig, DtmplConfig } from "../../tmpl/interface";
|
|
4
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
4
5
|
interface CqueryButtonBarProps {
|
|
5
6
|
serverKey?: string;
|
|
6
7
|
dtmplConfig: DtmplConfig;
|
|
@@ -10,8 +11,16 @@ interface CqueryButtonBarState {
|
|
|
10
11
|
}
|
|
11
12
|
declare class CqueryButtonBar extends React.PureComponent<CqueryButtonBarProps, CqueryButtonBarState> {
|
|
12
13
|
state: {};
|
|
14
|
+
static contextType: React.Context<{
|
|
15
|
+
locale: import("../../locale/langMp").LocaleType;
|
|
16
|
+
langPkg: any;
|
|
17
|
+
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
18
|
+
t: (...strs: string[]) => string;
|
|
19
|
+
translate: (...strs: string[]) => string;
|
|
20
|
+
}>;
|
|
21
|
+
context: React.ContextType<typeof LocaleContext>;
|
|
13
22
|
calcOffsetBottom: (cQuerys: CQueryConfig[]) => 80 | 120 | 86;
|
|
14
|
-
render(): React.JSX.Element
|
|
23
|
+
render(): "" | React.JSX.Element;
|
|
15
24
|
}
|
|
16
25
|
export default CqueryButtonBar;
|
|
17
26
|
//# sourceMappingURL=cquery-button-bar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cquery-button-bar.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/cquery-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"cquery-button-bar.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/cquery-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,aAAa,CAAC;AACrB,OAAO,EAGL,YAAY,EACZ,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,UAAU,oBAAoB;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,oBAAoB;CAE7B;AAED,cAAM,eAAgB,SAAQ,KAAK,CAAC,aAAa,CAC/C,oBAAoB,EACpB,oBAAoB,CACrB;IACC,KAAK,KAEH;IACF,MAAM,CAAC,WAAW;;;;;;OAAiB;IACnC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,gBAAgB,YAAa,YAAY,EAAE,mBAQzC;IAoBF,MAAM;CA8EP;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
3
|
import { Affix, Button, Popover, Space } from "antd";
|
|
4
|
-
import { LeftOutlined } from
|
|
4
|
+
import { LeftOutlined } from "@ant-design/icons";
|
|
5
5
|
import CquickButton from "../../controls/cquery/cquick-button";
|
|
6
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
6
7
|
class CqueryButtonBar extends React.PureComponent {
|
|
7
8
|
constructor() {
|
|
8
9
|
super(...arguments);
|
|
@@ -40,6 +41,7 @@ class CqueryButtonBar extends React.PureComponent {
|
|
|
40
41
|
render() {
|
|
41
42
|
const {} = this.state;
|
|
42
43
|
const { dtmplConfig, mainCode, serverKey } = this.props;
|
|
44
|
+
const { translate } = this.context;
|
|
43
45
|
if (!dtmplConfig) {
|
|
44
46
|
return null;
|
|
45
47
|
}
|
|
@@ -47,29 +49,31 @@ class CqueryButtonBar extends React.PureComponent {
|
|
|
47
49
|
const cardList = [];
|
|
48
50
|
let content;
|
|
49
51
|
if (cQuerys && cQuerys.length > 3) {
|
|
50
|
-
content = (React.createElement("div", { style: { width:
|
|
52
|
+
content = (React.createElement("div", { style: { width: "100px" }, className: "btns" },
|
|
51
53
|
React.createElement(Space, { direction: "vertical" }, cQuerys.map((item, index) => {
|
|
52
54
|
if (index > 2) {
|
|
53
|
-
return React.createElement(CquickButton, { serverKey: serverKey, block: true, key: item.id, mainCode: mainCode, cQueryConfig: item });
|
|
55
|
+
return (React.createElement(CquickButton, { serverKey: serverKey, block: true, key: item.id, mainCode: mainCode, cQueryConfig: item }));
|
|
54
56
|
}
|
|
55
57
|
}))));
|
|
56
58
|
}
|
|
57
59
|
//offsetBottom={this.calcOffsetBottom(cQuerys)}
|
|
58
|
-
return
|
|
59
|
-
React.createElement("div", { className:
|
|
60
|
+
return cQuerys && cQuerys.length > 0 && mainCode ? (React.createElement(Affix, { style: { position: "absolute", top: 180, right: 10, maxHeight: 90 }, offsetTop: 300 },
|
|
61
|
+
React.createElement("div", { className: "submitButtonBar" },
|
|
60
62
|
React.createElement("ul", null,
|
|
61
|
-
cQuerys
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
React.createElement(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
63
|
+
cQuerys
|
|
64
|
+
? cQuerys.map((item, index) => {
|
|
65
|
+
if (index < 3) {
|
|
66
|
+
return (React.createElement("li", { key: index },
|
|
67
|
+
React.createElement(CquickButton, { serverKey: serverKey, type: "text", block: true, key: item.id, mainCode: mainCode, cQueryConfig: item })));
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
: "", //处理后面的
|
|
71
|
+
cQuerys && cQuerys.length > 2 ? (React.createElement(Popover, { placement: "leftTop", content: content, trigger: "hover" },
|
|
72
|
+
React.createElement(Button, { block: true },
|
|
73
|
+
React.createElement(LeftOutlined, null),
|
|
74
|
+
translate("${更多}")))) : (""))))) : ("");
|
|
72
75
|
}
|
|
73
76
|
}
|
|
77
|
+
CqueryButtonBar.contextType = LocaleContext;
|
|
74
78
|
export default CqueryButtonBar;
|
|
75
79
|
//# sourceMappingURL=cquery-button-bar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cquery-button-bar.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/cquery-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"cquery-button-bar.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/cquery-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,aAAa,CAAC;AASrB,OAAO,EAAE,KAAK,EAAE,MAAM,EAAc,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,YAAY,EAAgB,MAAM,mBAAmB,CAAC;AAC/D,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAY5D,MAAM,eAAgB,SAAQ,KAAK,CAAC,aAGnC;IAHD;;QAIE,UAAK,GAAG;QACN,iBAAiB;SAClB,CAAC;QAIF,qBAAgB,GAAG,CAAC,OAAuB,EAAE,EAAE;YAC7C,IAAI,OAAO,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;gBACxB,OAAO,GAAG,CAAC;YACb,CAAC;iBAAM,IAAI,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AC;;AA5GM,2BAAW,GAAG,aAAa,AAAhB,CAAiB;AA+GrC,eAAe,eAAe,CAAC"}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
3
|
import { ActionConfig, ButtonName } from "../../../aldehyde/tmpl/interface";
|
|
4
4
|
import { SubmitButtonProps } from "./submit-button-bar";
|
|
5
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
5
6
|
interface FixRightSubmitButtonProps extends SubmitButtonProps {
|
|
6
7
|
}
|
|
7
8
|
interface FixRightSubmitButtonState {
|
|
8
9
|
}
|
|
9
10
|
declare class FixRightSubmitButtonBar extends React.PureComponent<FixRightSubmitButtonProps, FixRightSubmitButtonState> {
|
|
10
11
|
state: {};
|
|
12
|
+
static contextType: React.Context<{
|
|
13
|
+
locale: import("../../locale/langMp").LocaleType;
|
|
14
|
+
langPkg: any;
|
|
15
|
+
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
16
|
+
t: (...strs: string[]) => string;
|
|
17
|
+
translate: (...strs: string[]) => string;
|
|
18
|
+
}>;
|
|
19
|
+
context: React.ContextType<typeof LocaleContext>;
|
|
11
20
|
calcOffsetBottom: (buttons: ButtonName[], actions: ActionConfig[]) => 80 | 120 | 86;
|
|
12
21
|
render(): React.JSX.Element;
|
|
13
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fix-right-submit-button-bar.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/fix-right-submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"fix-right-submit-button-bar.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/fix-right-submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,aAAa,CAAC;AACrB,OAAO,EACL,YAAY,EACZ,UAAU,EAGX,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,UAAU,yBAA0B,SAAQ,iBAAiB;CAAG;AAEhE,UAAU,yBAAyB;CAElC;AAED,cAAM,uBAAwB,SAAQ,KAAK,CAAC,aAAa,CACvD,yBAAyB,EACzB,yBAAyB,CAC1B;IACC,KAAK,KAEH;IACF,MAAM,CAAC,WAAW;;;;;;OAAiB;IACnC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,gBAAgB,YAAa,UAAU,EAAE,WAAW,YAAY,EAAE,mBAehE;IAEF,MAAM;CAgIP;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
3
|
import { Affix, Button, Popover } from "antd";
|
|
4
|
-
import { LeftOutlined, SaveOutlined } from
|
|
4
|
+
import { LeftOutlined, SaveOutlined } from "@ant-design/icons";
|
|
5
5
|
import Action from "../../controls/action";
|
|
6
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
6
7
|
class FixRightSubmitButtonBar extends React.PureComponent {
|
|
7
8
|
constructor() {
|
|
8
9
|
super(...arguments);
|
|
@@ -14,7 +15,7 @@ class FixRightSubmitButtonBar extends React.PureComponent {
|
|
|
14
15
|
if (actions) {
|
|
15
16
|
buttonSize = buttonSize + actions.length;
|
|
16
17
|
}
|
|
17
|
-
if (
|
|
18
|
+
if (buttons && buttons.includes("dtmplSave")) {
|
|
18
19
|
buttonSize = buttonSize + 1;
|
|
19
20
|
}
|
|
20
21
|
if (buttonSize >= 3) {
|
|
@@ -30,17 +31,19 @@ class FixRightSubmitButtonBar extends React.PureComponent {
|
|
|
30
31
|
}
|
|
31
32
|
render() {
|
|
32
33
|
const {} = this.state;
|
|
33
|
-
const { dtmplConfig, doSubmit, formRef, serial, serverKey, dtmplData } = this.props;
|
|
34
|
+
const { dtmplConfig, doSubmit, formRef, serial, serverKey, dtmplData, } = this.props;
|
|
34
35
|
const { buttons, actions } = dtmplConfig;
|
|
35
36
|
const cardList = [];
|
|
37
|
+
const { translate } = this.context;
|
|
36
38
|
//console.log(" submit-button-bar serial:",serial);
|
|
37
39
|
// console.log(" submit-button-bar stateSerial:",stateSerial);
|
|
38
40
|
if (dtmplConfig.premises && dtmplConfig.premises.length > 0) {
|
|
39
41
|
cardList.push({
|
|
40
|
-
id:
|
|
42
|
+
id: "1",
|
|
43
|
+
title: translate("${默认字段}"),
|
|
41
44
|
});
|
|
42
45
|
}
|
|
43
|
-
dtmplConfig.groups.forEach(g => {
|
|
46
|
+
dtmplConfig.groups.forEach((g) => {
|
|
44
47
|
cardList.push({
|
|
45
48
|
title: g.title,
|
|
46
49
|
id: g.id,
|
|
@@ -56,7 +59,7 @@ class FixRightSubmitButtonBar extends React.PureComponent {
|
|
|
56
59
|
// type="primary"
|
|
57
60
|
// >{item.title}</Button>
|
|
58
61
|
// </Popconfirm>
|
|
59
|
-
return React.createElement(Action, { serverKey: serverKey, data: [dtmplData], iconType:
|
|
62
|
+
return (React.createElement(Action, { serverKey: serverKey, data: [dtmplData], iconType: "icon-title", hiddenType: "disabled", buttonType: "primary", serial: serial, key: item.id, formRef: formRef, actionConfig: item, doAction: doSubmit }));
|
|
60
63
|
}
|
|
61
64
|
})));
|
|
62
65
|
}
|
|
@@ -66,23 +69,25 @@ class FixRightSubmitButtonBar extends React.PureComponent {
|
|
|
66
69
|
, {
|
|
67
70
|
//style={{position: 'absolute', right: 10, maxHeight: 100}}
|
|
68
71
|
// offsetBottom={this.calcOffsetBottom(buttons, actions)}>
|
|
69
|
-
style: { position:
|
|
70
|
-
React.createElement("div", { className:
|
|
72
|
+
style: { position: "absolute", bottom: 60, right: 15 }, offsetBottom: this.calcOffsetBottom(buttons, actions) },
|
|
73
|
+
React.createElement("div", { className: "submitButtonBar" },
|
|
71
74
|
React.createElement("ul", null,
|
|
72
|
-
buttons.includes(
|
|
73
|
-
React.createElement(Button, { onClick: () => doSubmit(), type:
|
|
74
|
-
actions
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
React.createElement(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
buttons.includes("dtmplSave") ? (React.createElement("li", { key: 100 },
|
|
76
|
+
React.createElement(Button, { onClick: () => doSubmit(), type: "primary", icon: React.createElement(SaveOutlined, null), key: "btn", block: true }, "\u4FDD \u5B58"))) : (""), //处理前两个
|
|
77
|
+
actions
|
|
78
|
+
? actions.map((item, index) => {
|
|
79
|
+
if (index < 2) {
|
|
80
|
+
return (React.createElement("li", { key: index },
|
|
81
|
+
React.createElement(Action, { data: [dtmplData], serverKey: serverKey, hiddenType: "disabled", buttonType: "primary-block", serial: serial, key: item.id, formRef: formRef, actionConfig: item, doAction: doSubmit })));
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
: "", //处理后面的
|
|
85
|
+
actions && actions.length > 2 ? (React.createElement(Popover, { placement: "leftTop", content: content, trigger: "hover" },
|
|
86
|
+
React.createElement(Button, { block: true },
|
|
87
|
+
React.createElement(LeftOutlined, null),
|
|
88
|
+
translate("${更多}")))) : ("")))));
|
|
85
89
|
}
|
|
86
90
|
}
|
|
91
|
+
FixRightSubmitButtonBar.contextType = LocaleContext;
|
|
87
92
|
export default FixRightSubmitButtonBar;
|
|
88
93
|
//# sourceMappingURL=fix-right-submit-button-bar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fix-right-submit-button-bar.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/fix-right-submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"fix-right-submit-button-bar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AAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC9B,oBAAC,OAAO,IAAC,SAAS,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,OAAO;wBAC5D,oBAAC,MAAM,IAAC,KAAK;4BACX,oBAAC,YAAY,OAAG;4BACf,SAAS,CAAC,OAAO,CAAC,CACZ,CACD,CACX,CAAC,CAAC,CAAC,CACF,EAAE,CACH,CACE,CACD,CACA,CACT,CAAC;IACJ,CAAC;;AAnJM,mCAAW,GAAG,aAAa,AAAhB,CAAiB;AAsJrC,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { FormInstance } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FormInstance } from "antd";
|
|
3
3
|
import { FieldConfig } from "../../tmpl/interface";
|
|
4
4
|
import { ButtonType } from "antd/es/button";
|
|
5
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
5
6
|
interface FieldsEditCardProps {
|
|
6
7
|
serverKey?: string;
|
|
7
8
|
title?: any;
|
|
@@ -30,6 +31,14 @@ export default class FieldsEditCard extends React.PureComponent<FieldsEditCardPr
|
|
|
30
31
|
okDanger: boolean;
|
|
31
32
|
};
|
|
32
33
|
state: {};
|
|
34
|
+
static contextType: React.Context<{
|
|
35
|
+
locale: import("../../locale/langMp").LocaleType;
|
|
36
|
+
langPkg: any;
|
|
37
|
+
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
38
|
+
t: (...strs: string[]) => string;
|
|
39
|
+
translate: (...strs: string[]) => string;
|
|
40
|
+
}>;
|
|
41
|
+
context: React.ContextType<typeof LocaleContext>;
|
|
33
42
|
componentDidMount(): Promise<void>;
|
|
34
43
|
componentDidUpdate(): Promise<void>;
|
|
35
44
|
reset: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields-edit-card.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/fields-edit-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"fields-edit-card.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/fields-edit-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAgB,YAAY,EAAqB,MAAM,MAAM,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,UAAU,mBAAmB;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,UAAU,mBAAmB;CAAG;AAEhC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,KAAK,CAAC,aAAa,CAC7D,mBAAmB,EACnB,mBAAmB,CACpB;IACC,OAAO,qCAAmC;IAC1C,MAAM,CAAC,YAAY;;;;;;;;;MAMjB;IACF,KAAK,KAAM;IACX,MAAM,CAAC,WAAW;;;;;;OAAiB;IACnC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAE3C,iBAAiB;IAEjB,kBAAkB;IAIxB,KAAK,aAIH;IAEF,IAAI,aAEF;IAEF,MAAM;CAmFP"}
|
|
@@ -7,10 +7,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import React from
|
|
11
|
-
import { Button, Card, Popconfirm, Space } from
|
|
12
|
-
import { CloseOutlined } from
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { Button, Card, Popconfirm, Space } from "antd";
|
|
12
|
+
import { CloseOutlined } from "@ant-design/icons";
|
|
13
13
|
import FieldsForm from "../../form/fields-form";
|
|
14
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
14
15
|
class FieldsEditCard extends React.PureComponent {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
@@ -26,8 +27,7 @@ class FieldsEditCard extends React.PureComponent {
|
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
componentDidMount() {
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
});
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () { });
|
|
31
31
|
}
|
|
32
32
|
componentDidUpdate() {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -35,31 +35,30 @@ class FieldsEditCard extends React.PureComponent {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
const { title, height, onOk, fields, value, onCancel, okButtonType, needConfirm, okDanger, onValuesChange, serverKey } = this.props;
|
|
38
|
+
const { title, height, onOk, fields, value, onCancel, okButtonType, needConfirm, okDanger, onValuesChange, serverKey, } = this.props;
|
|
39
39
|
const {} = this.state;
|
|
40
|
+
const { translate } = this.context;
|
|
40
41
|
function okButton(onOk) {
|
|
41
|
-
return needConfirm ? okDanger ?
|
|
42
|
-
React.createElement(Popconfirm, { placement: "rightBottom", title:
|
|
43
|
-
|
|
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");
|
|
42
|
+
return needConfirm ? (okDanger ? (React.createElement(Popconfirm, { placement: "rightBottom", title: translate("${确定要执行提交吗}?"), onConfirm: onOk, okText: translate("${确定}"), cancelText: translate("${取消}"), okType: "danger" },
|
|
43
|
+
React.createElement(Button, { type: okButtonType, danger: true }, translate("${确定}")))) : (React.createElement(Popconfirm, { placement: "rightBottom", title: translate("${确定要执行提交吗}?"), onConfirm: onOk, okText: translate("${确定}"), cancelText: translate("${取消}") },
|
|
44
|
+
React.createElement(Button, { type: okButtonType }, translate("${确定}"))))) : (React.createElement(Button, { type: okButtonType, onClick: onOk }, translate("${确定}")));
|
|
47
45
|
}
|
|
48
|
-
return React.createElement(Card, { size:
|
|
46
|
+
return (React.createElement(Card, { size: "small", style: { width: 1000 }, title: title, bodyStyle: { overflow: "auto" }, extra: React.createElement(React.Fragment, null,
|
|
49
47
|
React.createElement(Space, { size: [8, 0] },
|
|
50
|
-
React.createElement(Button, { onClick: this.reset }, "
|
|
48
|
+
React.createElement(Button, { onClick: this.reset }, translate("${重置}")),
|
|
51
49
|
okButton(this.onOk),
|
|
52
|
-
onCancel ? React.createElement(Button, { onClick: onCancel },
|
|
53
|
-
React.createElement(CloseOutlined, null)) : "")) },
|
|
54
|
-
React.createElement(FieldsForm, { serverKey: serverKey, onValuesChange: onValuesChange, fields: fields, formRef: this.formRef, value: value, onFinish: onOk }));
|
|
50
|
+
onCancel ? (React.createElement(Button, { onClick: onCancel },
|
|
51
|
+
React.createElement(CloseOutlined, null))) : (""))) },
|
|
52
|
+
React.createElement(FieldsForm, { serverKey: serverKey, onValuesChange: onValuesChange, fields: fields, formRef: this.formRef, value: value, onFinish: onOk })));
|
|
55
53
|
}
|
|
56
54
|
}
|
|
57
55
|
FieldsEditCard.defaultProps = {
|
|
58
56
|
forceRender: true,
|
|
59
|
-
style: { maxWidth:
|
|
57
|
+
style: { maxWidth: "calc(100vw - 60px)", maxHeight: "calc(100vh - 50px)" },
|
|
60
58
|
needConfirm: false,
|
|
61
|
-
okButtonType:
|
|
59
|
+
okButtonType: "primary",
|
|
62
60
|
okDanger: false,
|
|
63
61
|
};
|
|
62
|
+
FieldsEditCard.contextType = LocaleContext;
|
|
64
63
|
export default FieldsEditCard;
|
|
65
64
|
//# 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,
|
|
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,EAAE,MAAM,EAAE,IAAI,EAAgB,UAAU,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAkB5D,MAAqB,cAAe,SAAQ,KAAK,CAAC,aAGjD;IAHD;;QAIE,YAAO,GAAG,KAAK,CAAC,SAAS,EAAgB,CAAC;QAQ1C,UAAK,GAAG,EAAE,CAAC;QAUX,UAAK,GAAG,GAAG,EAAE;YACX,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;gBACzB,IAAI,CAAC,OAA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aAAa,AAAhB,CAAiB;eAbhB,cAAc"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { FormInstance } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FormInstance } from "antd";
|
|
3
3
|
import { DtmplData, FieldGroupConfig } from "../../tmpl/interface";
|
|
4
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
4
5
|
interface ModalRowEditorProps {
|
|
5
6
|
serverKey?: string;
|
|
6
7
|
height?: any;
|
|
@@ -22,6 +23,14 @@ export default class ModalRowEdit extends React.PureComponent<ModalRowEditorProp
|
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
25
|
state: {};
|
|
26
|
+
static contextType: React.Context<{
|
|
27
|
+
locale: import("../../locale/langMp").LocaleType;
|
|
28
|
+
langPkg: any;
|
|
29
|
+
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
30
|
+
t: (...strs: string[]) => string;
|
|
31
|
+
translate: (...strs: string[]) => string;
|
|
32
|
+
}>;
|
|
33
|
+
context: React.ContextType<typeof LocaleContext>;
|
|
25
34
|
componentDidMount(): Promise<void>;
|
|
26
35
|
componentDidUpdate(): Promise<void>;
|
|
27
36
|
onOk: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-row-edit.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/modal-row-edit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"modal-row-edit.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/modal-row-edit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAS,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,UAAU,mBAAmB;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,UAAU,mBAAmB;CAAG;AAEhC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,aAAa,CAC3D,mBAAmB,EACnB,mBAAmB,CACpB;IACC,OAAO,qCAAmC;IAC1C,MAAM,CAAC,YAAY;;;;;;MAGjB;IACF,KAAK,KAAM;IACX,MAAM,CAAC,WAAW;;;;;;OAAiB;IACnC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAE3C,iBAAiB;IAEjB,kBAAkB;IAMxB,IAAI,aAEF;IAEF,QAAQ,eAYN;IAEF,MAAM;CAoCP"}
|