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
|
@@ -7,9 +7,10 @@ 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 { Modal } from
|
|
12
|
-
import FieldGroupForm from
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { Modal } from "antd";
|
|
12
|
+
import FieldGroupForm from "../../form/field-group-form";
|
|
13
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
13
14
|
class ModalRowEdit extends React.PureComponent {
|
|
14
15
|
constructor() {
|
|
15
16
|
super(...arguments);
|
|
@@ -20,20 +21,20 @@ class ModalRowEdit extends React.PureComponent {
|
|
|
20
21
|
};
|
|
21
22
|
this.getTitle = () => {
|
|
22
23
|
const { fieldGroupConfig, dtmplData } = this.props;
|
|
24
|
+
const { translate } = this.context;
|
|
23
25
|
let title = "";
|
|
24
26
|
title = fieldGroupConfig.title;
|
|
25
27
|
if (dtmplData) {
|
|
26
|
-
title = title + "
|
|
28
|
+
title = title + translate("[${行编辑}]");
|
|
27
29
|
}
|
|
28
30
|
else {
|
|
29
|
-
title = title + "
|
|
31
|
+
title = title + translate("[${新建一行}]");
|
|
30
32
|
}
|
|
31
33
|
return title;
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
componentDidMount() {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
});
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () { });
|
|
37
38
|
}
|
|
38
39
|
componentDidUpdate() {
|
|
39
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -43,15 +44,17 @@ class ModalRowEdit extends React.PureComponent {
|
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
46
|
render() {
|
|
46
|
-
const { height, onOk, onCancel, fieldGroupConfig, open, dtmplData, serverKey } = this.props;
|
|
47
|
+
const { height, onOk, onCancel, fieldGroupConfig, open, dtmplData, serverKey, } = this.props;
|
|
47
48
|
const {} = this.state;
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
const { translate } = this.context;
|
|
50
|
+
return (React.createElement(Modal, { open: open, width: 1150, title: this.getTitle(), bodyStyle: { overflow: "auto" }, destroyOnClose: true, centered: true, okText: translate("${确定}"), cancelText: translate("${取消}"), onOk: this.onOk, onCancel: onCancel },
|
|
51
|
+
React.createElement(FieldGroupForm, { serverKey: serverKey, fieldGroupConfig: fieldGroupConfig, formRef: this.formRef, onFinish: onOk, dtmplData: dtmplData })));
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
54
|
ModalRowEdit.defaultProps = {
|
|
53
55
|
forceRender: true,
|
|
54
|
-
style: { maxWidth:
|
|
56
|
+
style: { maxWidth: "calc(100vw - 60px)", maxHeight: "calc(100vh - 50px)" },
|
|
55
57
|
};
|
|
58
|
+
ModalRowEdit.contextType = LocaleContext;
|
|
56
59
|
export default ModalRowEdit;
|
|
57
60
|
//# 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,
|
|
1
|
+
{"version":3,"file":"modal-row-edit.js","sourceRoot":"","s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R,gBAAgB,EAChB,IAAI,EACJ,SAAS,EACT,SAAS,GACV,GAAG,IAAI,CAAC,KAAK,CAAC;QACf,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACtB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAEnC,OAAO,CACL,oBAAC,KAAK,IACJ,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,EACtB,SAAS,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAC/B,cAAc,EAAE,IAAI,EACpB,QAAQ,QACR,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,EAC1B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,EAC9B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,QAAQ;YAElB,oBAAC,cAAc,IACb,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,EACd,SAAS,EAAE,SAAS,GACpB,CACI,CACT,CAAC;IACJ,CAAC;;AArEM,yBAAY,GAAG;IACpB,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE,EAAE,QAAQ,EAAE,oBAAoB,EAAE,SAAS,EAAE,oBAAoB,EAAE;CAC3E,AAHkB,CAGjB;AAEK,wBAAW,GAAG,aAAa,AAAhB,CAAiB;eAVhB,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/aldehyde/detail/edit/post-result/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/aldehyde/detail/edit/post-result/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgEzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -9,19 +9,24 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import React from
|
|
13
|
-
import { Button, Modal, Result } from
|
|
14
|
-
;
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { Button, Modal, Result } from "antd";
|
|
14
|
+
import { useLocale } from "../../../locale/useLocale";
|
|
15
15
|
const PostResult = (_a) => {
|
|
16
|
-
var { resultStatus =
|
|
17
|
-
const { title, open, subtitle, goAdd, goEdit, goList, jumpTypes, addOrUpdate } = props;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
var { resultStatus = "success" } = _a, props = __rest(_a, ["resultStatus"]);
|
|
17
|
+
const { title, open, subtitle, goAdd, goEdit, goList, jumpTypes, addOrUpdate, } = props;
|
|
18
|
+
const { translate } = useLocale();
|
|
19
|
+
return (React.createElement(Modal, { title: title ? title : translate("${保存提示}"), open: open, closable: false, destroyOnClose: true, footer: [], bodyStyle: { height: 430, overflow: "auto" }, width: 560, maskClosable: true },
|
|
20
|
+
React.createElement(Result, { status: resultStatus, title: resultStatus === "success"
|
|
21
|
+
? translate("${保存成功}")
|
|
22
|
+
: translate("${保存失败}"), subTitle: subtitle, extra: [
|
|
23
|
+
goAdd && jumpTypes && jumpTypes.includes("add") ? (React.createElement(Button, { key: "goOnAdd", onClick: () => goAdd() }, addOrUpdate === "update"
|
|
24
|
+
? translate("${转添加}")
|
|
25
|
+
: translate("${继续添加}"))) : (undefined),
|
|
26
|
+
goEdit && jumpTypes && jumpTypes.includes("edit") ? (React.createElement(Button, { type: "primary", key: "goOnEdit", onClick: () => goEdit() }, addOrUpdate === "update"
|
|
27
|
+
? translate("${继续编辑}")
|
|
28
|
+
: translate("${编辑实体}"))) : (""),
|
|
29
|
+
goList && jumpTypes && jumpTypes.includes("list") ? (React.createElement(Button, { type: "primary", key: "onBackList", onClick: () => goList() }, translate("${返回列表}"))) : (""),
|
|
25
30
|
] })));
|
|
26
31
|
};
|
|
27
32
|
export default PostResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/aldehyde/detail/edit/post-result/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/aldehyde/detail/edit/post-result/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AActD,MAAM,UAAU,GAA8B,CAAC,EAG9C,EAAE,EAAE;QAH0C,EAC7C,YAAY,GAAG,SAAS,OAEzB,EADI,KAAK,cAFqC,gBAG9C,CADS;IAER,MAAM,EACJ,KAAK,EACL,IAAI,EACJ,QAAQ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B,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC;oBACtB,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CACjB,CACV,CAAC,CAAC,CAAC,CACF,EAAE,CACH;gBACD,MAAM,IAAI,SAAS,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAClD,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,GAAG,EAAC,YAAY,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,IAC5D,SAAS,CAAC,SAAS,CAAC,CACd,CACV,CAAC,CAAC,CAAC,CACF,EAAE,CACH;aACF,GACO,CACJ,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,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 { DtmplData, FieldGroupConfig } from "../../tmpl/interface";
|
|
4
4
|
import { ButtonType } from "antd/es/button";
|
|
5
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
5
6
|
interface RowEditCardProps {
|
|
6
7
|
serverKey?: string;
|
|
7
8
|
height?: any;
|
|
@@ -31,6 +32,14 @@ export default class RowEditCard extends React.PureComponent<RowEditCardProps, R
|
|
|
31
32
|
state: {
|
|
32
33
|
isAdded: boolean;
|
|
33
34
|
};
|
|
35
|
+
static contextType: React.Context<{
|
|
36
|
+
locale: import("../../locale/langMp").LocaleType;
|
|
37
|
+
langPkg: any;
|
|
38
|
+
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
39
|
+
t: (...strs: string[]) => string;
|
|
40
|
+
translate: (...strs: string[]) => string;
|
|
41
|
+
}>;
|
|
42
|
+
context: React.ContextType<typeof LocaleContext>;
|
|
34
43
|
componentDidMount(): Promise<void>;
|
|
35
44
|
componentDidUpdate(): Promise<void>;
|
|
36
45
|
reset: () => void;
|
|
@@ -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,
|
|
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,EAGL,YAAY,EAKb,MAAM,MAAM,CAAC;AAEd,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,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,CAAC;CACvB;AAED,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAa,CAC1D,gBAAgB,EAChB,gBAAgB,CACjB;IACC,OAAO,qCAAmC;IAC1C,MAAM,CAAC,YAAY;;;;;;;;;MAMjB;IACF,KAAK;;MAEH;IACF,MAAM,CAAC,WAAW;;;;;;OAAiB;IACnC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAE3C,iBAAiB;IAEjB,kBAAkB;IAIxB,KAAK,aAIH;IAEF,IAAI,aAGF;IACF,GAAG,aAGD;IAEF,QAAQ,eAYN;IAEF,MAAM;CA2FP"}
|
|
@@ -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, Tooltip } from
|
|
12
|
-
import { CloseOutlined } from
|
|
13
|
-
import FieldGroupForm from
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { Button, Card, Popconfirm, Space, Tooltip, } from "antd";
|
|
12
|
+
import { CloseOutlined } from "@ant-design/icons";
|
|
13
|
+
import FieldGroupForm from "../../form/field-group-form";
|
|
14
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
14
15
|
class RowEditCard extends React.PureComponent {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
@@ -33,20 +34,20 @@ class RowEditCard extends React.PureComponent {
|
|
|
33
34
|
};
|
|
34
35
|
this.getTitle = () => {
|
|
35
36
|
const { fieldGroupConfig, dtmplData } = this.props;
|
|
37
|
+
const { translate } = this.context;
|
|
36
38
|
let title = "";
|
|
37
39
|
title = fieldGroupConfig.title;
|
|
38
40
|
if (dtmplData) {
|
|
39
|
-
title = title + "
|
|
41
|
+
title = title + translate("[${行编辑}]");
|
|
40
42
|
}
|
|
41
43
|
else {
|
|
42
|
-
title = title + "
|
|
44
|
+
title = title + translate("[${新建一行}]");
|
|
43
45
|
}
|
|
44
46
|
return title;
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
componentDidMount() {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
});
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () { });
|
|
50
51
|
}
|
|
51
52
|
componentDidUpdate() {
|
|
52
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -54,32 +55,31 @@ class RowEditCard extends React.PureComponent {
|
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
57
|
render() {
|
|
57
|
-
const { height, onOk, fieldGroupConfig, dtmplData, onCancel, okButtonType, needConfirm, okDanger, serverKey } = this.props;
|
|
58
|
+
const { height, onOk, fieldGroupConfig, dtmplData, onCancel, okButtonType, needConfirm, okDanger, serverKey, } = this.props;
|
|
58
59
|
const { isAdded } = this.state;
|
|
60
|
+
const { translate } = this.context;
|
|
59
61
|
function okButton(onOk) {
|
|
60
|
-
return needConfirm ? okDanger ?
|
|
61
|
-
React.createElement(Popconfirm, { placement: "rightBottom", title:
|
|
62
|
-
|
|
63
|
-
React.createElement(Popconfirm, { placement: "rightBottom", title: `确定要执行提交吗?`, onConfirm: onOk, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88" },
|
|
64
|
-
React.createElement(Button, { size: "small", type: okButtonType }, "\u786E\u5B9A")) :
|
|
65
|
-
React.createElement(Button, { type: okButtonType, size: "small", onClick: onOk }, "\u786E\u5B9A");
|
|
62
|
+
return needConfirm ? (okDanger ? (React.createElement(Popconfirm, { placement: "rightBottom", title: translate("${确定要执行提交吗}?"), onConfirm: onOk, okText: translate("${确定}"), cancelText: translate("${取消}"), okType: "danger" },
|
|
63
|
+
React.createElement(Button, { type: okButtonType, danger: true, size: "small" }, "\u786E\u5B9A"))) : (React.createElement(Popconfirm, { placement: "rightBottom", title: translate("${确定要执行提交吗}?"), onConfirm: onOk, okText: translate("${确定}"), cancelText: translate("${取消}") },
|
|
64
|
+
React.createElement(Button, { size: "small", type: okButtonType }, translate("${确定}"))))) : (React.createElement(Button, { type: okButtonType, size: "small", onClick: onOk }, translate("${确定}")));
|
|
66
65
|
}
|
|
67
|
-
return React.createElement(Card, { style: { width: 1000 }, title: this.getTitle(), bodyStyle: { overflow:
|
|
66
|
+
return (React.createElement(Card, { style: { width: 1000 }, title: this.getTitle(), bodyStyle: { overflow: "auto" }, extra: React.createElement(React.Fragment, null,
|
|
68
67
|
React.createElement(Space, { size: [8, 0] },
|
|
69
68
|
okButton(this.onOk),
|
|
70
|
-
dtmplData ? "" : React.createElement(Tooltip, { placement: "top", title: "
|
|
71
|
-
React.createElement(Button, { type:
|
|
72
|
-
onCancel ? React.createElement(Button, { onClick: onCancel },
|
|
73
|
-
React.createElement(CloseOutlined, null)) : "")) },
|
|
74
|
-
React.createElement(FieldGroupForm, { serverKey: serverKey, fieldGroupConfig: fieldGroupConfig, formRef: this.formRef, onFinish: (value) => onOk(value, !isAdded), dtmplData: dtmplData }));
|
|
69
|
+
dtmplData ? ("") : (React.createElement(Tooltip, { placement: "top", title: translate("${可连续添加}") },
|
|
70
|
+
React.createElement(Button, { type: "primary", size: "small", onClick: this.add }, translate("${添加}")))),
|
|
71
|
+
onCancel ? (React.createElement(Button, { onClick: onCancel },
|
|
72
|
+
React.createElement(CloseOutlined, null))) : (""))) },
|
|
73
|
+
React.createElement(FieldGroupForm, { serverKey: serverKey, fieldGroupConfig: fieldGroupConfig, formRef: this.formRef, onFinish: (value) => onOk(value, !isAdded), dtmplData: dtmplData })));
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
76
|
RowEditCard.defaultProps = {
|
|
78
77
|
forceRender: true,
|
|
79
|
-
style: { maxWidth:
|
|
78
|
+
style: { maxWidth: "calc(100vw - 60px)", maxHeight: "calc(100vh - 50px)" },
|
|
80
79
|
needConfirm: false,
|
|
81
|
-
okButtonType:
|
|
80
|
+
okButtonType: "primary",
|
|
82
81
|
okDanger: false,
|
|
83
82
|
};
|
|
83
|
+
RowEditCard.contextType = LocaleContext;
|
|
84
84
|
export default RowEditCard;
|
|
85
85
|
//# sourceMappingURL=row-edit-card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-edit-card.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/row-edit-card.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"row-edit-card.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/row-edit-card.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,MAAM,EACN,IAAI,EAEJ,UAAU,EAEV,KAAK,EACL,OAAO,GACR,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAkB5D,MAAqB,WAAY,SAAQ,KAAK,CAAC,aAG9C;IAHD;;QAIE,YAAO,GAAG,KAAK,CAAC,SAAS,EAAgB,CAAC;QAQ1C,UAAK,GAAG;YACN,OAAO,EAAE,KAAK;SACf,CAAC;QAUF,UAAK,GAAG,GAAG,EAAE;YACX,8BAA8B;YAC9B,0CAA0C;YAC1C,IAAI;QACN,CAAC,CAAC;QAEF,SAAI,GAAG,GAAG,EAAE;YACV,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;YAClC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QAChC,CAAC,CAAC;QACF,QAAG,GAAG,GAAG,EAAE;YACT,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;YACjC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QAChC,CAAC,CAAC;QAEF,aAAQ,GAAG,GAAG,EAAE;YACd,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YACnD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,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AClC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,EAC1C,SAAS,EAAE,SAAS,GACpB,CACG,CACR,CAAC;IACJ,CAAC;;AA1IM,wBAAY,GAAG;IACpB,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE,EAAE,QAAQ,EAAE,oBAAoB,EAAE,SAAS,EAAE,oBAAoB,EAAE;IAC1E,WAAW,EAAE,KAAK;IAClB,YAAY,EAAE,SAAS;IACvB,QAAQ,EAAE,KAAK;CAChB,AANkB,CAMjB;AAIK,uBAAW,GAAG,aAAa,AAAhB,CAAiB;eAfhB,WAAW"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
3
|
import { DtmplConfig, TmplBase } from "../../tmpl/interface";
|
|
4
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
4
5
|
interface RightBarProps {
|
|
5
6
|
parentId: string;
|
|
6
7
|
dtmplConfig: DtmplConfig;
|
|
@@ -12,9 +13,17 @@ export default class RightBar extends React.PureComponent<RightBarProps, RightBa
|
|
|
12
13
|
static defaultProps: {
|
|
13
14
|
positionRight: number;
|
|
14
15
|
};
|
|
16
|
+
static contextType: React.Context<{
|
|
17
|
+
locale: import("../../locale/langMp").LocaleType;
|
|
18
|
+
langPkg: any;
|
|
19
|
+
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
20
|
+
t: (...strs: string[]) => string;
|
|
21
|
+
translate: (...strs: string[]) => string;
|
|
22
|
+
}>;
|
|
23
|
+
context: React.ContextType<typeof LocaleContext>;
|
|
15
24
|
scrollToAnchor: (anchor: TmplBase) => void;
|
|
16
25
|
scroll: (e: any) => void;
|
|
17
|
-
render(): React.JSX.Element
|
|
26
|
+
render(): "" | React.JSX.Element;
|
|
18
27
|
}
|
|
19
28
|
export {};
|
|
20
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/rightbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/rightbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,UAAU,aAAa;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,aAAa;CAAG;AAE1B,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,KAAK,CAAC,aAAa,CACvD,aAAa,EACb,aAAa,CACd;IACC,MAAM,CAAC,YAAY;;MAEjB;IACF,MAAM,CAAC,WAAW;;;;;;OAAiB;IACnC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,cAAc,WAAY,QAAQ,UAShC;IACF,MAAM,mBAQJ;IAEF,MAAM;CA+CP"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
3
|
import { Affix } from "antd";
|
|
4
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
4
5
|
class RightBar extends React.PureComponent {
|
|
5
6
|
constructor() {
|
|
6
7
|
super(...arguments);
|
|
@@ -25,28 +26,34 @@ class RightBar extends React.PureComponent {
|
|
|
25
26
|
render() {
|
|
26
27
|
const { dtmplConfig, positionRight } = this.props;
|
|
27
28
|
const cardList = [];
|
|
29
|
+
const { translate } = this.context;
|
|
28
30
|
if (dtmplConfig) {
|
|
29
|
-
dtmplConfig.groups.forEach(g => {
|
|
31
|
+
dtmplConfig.groups.forEach((g) => {
|
|
30
32
|
cardList.push({
|
|
31
33
|
title: g.title,
|
|
32
34
|
id: g.id,
|
|
33
35
|
});
|
|
34
36
|
});
|
|
35
37
|
}
|
|
36
|
-
if (dtmplConfig &&
|
|
38
|
+
if (dtmplConfig &&
|
|
39
|
+
dtmplConfig.premises &&
|
|
40
|
+
dtmplConfig.premises.length > 0) {
|
|
37
41
|
cardList.push({
|
|
38
|
-
id: dtmplConfig.premises[0].id,
|
|
42
|
+
id: dtmplConfig.premises[0].id,
|
|
43
|
+
title: translate("${默认字段}"),
|
|
39
44
|
});
|
|
40
45
|
}
|
|
41
46
|
// @ts-ignore
|
|
42
|
-
return
|
|
43
|
-
React.createElement(
|
|
44
|
-
React.createElement("
|
|
45
|
-
|
|
47
|
+
return cardList && cardList.length > 3 ? (React.createElement(Affix, { style: { position: "absolute", top: 60, right: positionRight }, offsetTop: 80 },
|
|
48
|
+
React.createElement("div", { className: "rightBar", onScroll: this.scroll },
|
|
49
|
+
React.createElement("ul", null, cardList
|
|
50
|
+
? cardList.map((item, index) => (React.createElement("li", { onClick: () => this.scrollToAnchor(item), key: index }, item.title)))
|
|
51
|
+
: "")))) : ("");
|
|
46
52
|
}
|
|
47
53
|
}
|
|
48
54
|
RightBar.defaultProps = {
|
|
49
55
|
positionRight: 15,
|
|
50
56
|
};
|
|
57
|
+
RightBar.contextType = LocaleContext;
|
|
51
58
|
export default RightBar;
|
|
52
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/rightbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,
|
|
1
|
+
{"version":3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,EAAE;CAClB,AAFkB,CAEjB;AACK,oBAAW,GAAG,aAAa,AAAhB,CAAiB;eAPhB,QAAQ"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { DtmplBaseProps, DtmplConfig } from "../../tmpl/interface";
|
|
3
|
-
import
|
|
3
|
+
import "../dtmpl.css";
|
|
4
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
4
5
|
export interface ActDtmplViewProps extends DtmplBaseProps {
|
|
5
6
|
versionId?: number;
|
|
6
7
|
title?: any;
|
|
@@ -20,6 +21,14 @@ declare class ActDtmplView extends React.PureComponent<ActDtmplViewProps, ActDtm
|
|
|
20
21
|
rightBarPositionRight: number;
|
|
21
22
|
showHeader: boolean;
|
|
22
23
|
};
|
|
24
|
+
static contextType: React.Context<{
|
|
25
|
+
locale: import("../../locale/langMp").LocaleType;
|
|
26
|
+
langPkg: any;
|
|
27
|
+
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
28
|
+
t: (...strs: string[]) => string;
|
|
29
|
+
translate: (...strs: string[]) => string;
|
|
30
|
+
}>;
|
|
31
|
+
context: React.ContextType<typeof LocaleContext>;
|
|
23
32
|
state: {
|
|
24
33
|
loading: boolean;
|
|
25
34
|
dtmplConfig: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"act-dtmpl-view.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/view/act-dtmpl-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"act-dtmpl-view.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/view/act-dtmpl-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAOnE,OAAO,cAAc,CAAC;AAKtB,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,cAAM,YAAa,SAAQ,KAAK,CAAC,aAAa,CAC5C,iBAAiB,EACjB,gBAAgB,CACjB;IACC,MAAM,CAAC,YAAY;;;;MAIjB;IACF,MAAM,CAAC,WAAW;;;;;;OAAiB;IACnC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,KAAK;;;;;;;;;;;;;;MAUH;IAEI,iBAAiB;IAWvB,SAAS,sBAIP;IAEF,MAAM,aAGJ;IAEF,YAAY,aAIV;IAEF,eAAe,aAIb;IAEF,UAAU,aAAY;IAEtB,MAAM;CAiGP;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -7,17 +7,16 @@ 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, Tooltip } from
|
|
12
|
-
import { ReloadOutlined, ScheduleOutlined, EditOutlined } from
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { Button, Card, Tooltip } from "antd";
|
|
12
|
+
import { ReloadOutlined, ScheduleOutlined, EditOutlined, } from "@ant-design/icons";
|
|
13
13
|
import HCDataSource from "../../tmpl/hc-data-source";
|
|
14
|
-
import
|
|
14
|
+
import "../dtmpl.css";
|
|
15
15
|
import SnapshotTimeline from "./snapshot-timeline";
|
|
16
16
|
import DtmplView from "./dtmpl-view";
|
|
17
|
-
import Units from
|
|
17
|
+
import Units from "../../units";
|
|
18
18
|
import ToolTipBar from "../tooltipbar";
|
|
19
|
-
;
|
|
20
|
-
;
|
|
19
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
21
20
|
class ActDtmplView extends React.PureComponent {
|
|
22
21
|
constructor() {
|
|
23
22
|
super(...arguments);
|
|
@@ -30,11 +29,11 @@ class ActDtmplView extends React.PureComponent {
|
|
|
30
29
|
labelCol: { span: 8 },
|
|
31
30
|
wrapperCol: { span: 16 },
|
|
32
31
|
},
|
|
33
|
-
refreshCode: undefined
|
|
32
|
+
refreshCode: undefined,
|
|
34
33
|
};
|
|
35
34
|
this.doRefresh = () => __awaiter(this, void 0, void 0, function* () {
|
|
36
35
|
this.setState({
|
|
37
|
-
refreshCode: Units.getRandomNum(6)
|
|
36
|
+
refreshCode: Units.getRandomNum(6),
|
|
38
37
|
});
|
|
39
38
|
});
|
|
40
39
|
this.goEdit = () => {
|
|
@@ -51,8 +50,7 @@ class ActDtmplView extends React.PureComponent {
|
|
|
51
50
|
snapshotOpen: false,
|
|
52
51
|
});
|
|
53
52
|
};
|
|
54
|
-
this.toSnapshot = () => {
|
|
55
|
-
};
|
|
53
|
+
this.toSnapshot = () => { };
|
|
56
54
|
}
|
|
57
55
|
componentDidMount() {
|
|
58
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -64,30 +62,32 @@ class ActDtmplView extends React.PureComponent {
|
|
|
64
62
|
});
|
|
65
63
|
}
|
|
66
64
|
render() {
|
|
67
|
-
const { showRightNav, rightBarPositionRight, code, sourceId, goDtmpl, serverKey, codeSource, title, showHeader } = this.props;
|
|
68
|
-
const { dtmplConfig, premisesTitle, loading, layout, snapshotOpen, refreshCode } = this.state;
|
|
65
|
+
const { showRightNav, rightBarPositionRight, code, sourceId, goDtmpl, serverKey, codeSource, title, showHeader, } = this.props;
|
|
66
|
+
const { dtmplConfig, premisesTitle, loading, layout, snapshotOpen, refreshCode, } = this.state;
|
|
67
|
+
const { translate } = this.context;
|
|
69
68
|
const buttons = dtmplConfig ? dtmplConfig.buttons : undefined;
|
|
70
69
|
const premises = dtmplConfig ? dtmplConfig.premises : undefined;
|
|
71
70
|
let showRightNav_ = showRightNav;
|
|
72
71
|
if (dtmplConfig && dtmplConfig.groups.length < 4) {
|
|
73
72
|
showRightNav_ = false;
|
|
74
73
|
}
|
|
75
|
-
return (React.createElement("div", { className: `detailPage ${showRightNav_ ?
|
|
76
|
-
showHeader ? React.createElement(Card, { bordered: false, size:
|
|
74
|
+
return (React.createElement("div", { className: `detailPage ${showRightNav_ ? "showRightNav" : "noRightNav"}` },
|
|
75
|
+
showHeader ? (React.createElement(Card, { bordered: false, size: "small", key: "detailTitle", className: "hoverable pageHeader" },
|
|
77
76
|
React.createElement("h3", null,
|
|
78
|
-
title ? title :
|
|
77
|
+
title ? title : translate("${详情}"),
|
|
79
78
|
dtmplConfig ? React.createElement(ToolTipBar, { content: dtmplConfig.tip }) : null,
|
|
80
79
|
React.createElement("div", { className: "fr" },
|
|
81
|
-
buttons &&
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
React.createElement(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
buttons &&
|
|
81
|
+
buttons.includes("dtmplEdit") &&
|
|
82
|
+
goDtmpl &&
|
|
83
|
+
!dtmplConfig.editAction ? (React.createElement(Button, { className: "hoverbig", onClick: this.goEdit },
|
|
84
|
+
React.createElement(EditOutlined, null))) : (""),
|
|
85
|
+
buttons && buttons.includes("history") ? (React.createElement(Tooltip, { title: translate("${数据快照}") },
|
|
86
|
+
React.createElement(Button, { className: "hoverbig", onClick: this.showSnapshot },
|
|
87
|
+
React.createElement(ScheduleOutlined, null)))) : (""),
|
|
88
|
+
React.createElement(Button, { className: "hoverbig", title: translate("${刷新}"), onClick: this.doRefresh },
|
|
89
89
|
React.createElement(ReloadOutlined, null)),
|
|
90
|
-
React.createElement(SnapshotTimeline, { serverKey: serverKey, dtmplConfig: dtmplConfig, code: code, onClose: this.onSnapshotClose, showSnapshot: this.toSnapshot, sourceId: sourceId, open: snapshotOpen })))) : null,
|
|
90
|
+
React.createElement(SnapshotTimeline, { serverKey: serverKey, dtmplConfig: dtmplConfig, code: code, onClose: this.onSnapshotClose, showSnapshot: this.toSnapshot, sourceId: sourceId, open: snapshotOpen }))))) : null,
|
|
91
91
|
React.createElement(DtmplView, { codeSource: codeSource, serverKey: serverKey, refreshCode: refreshCode, showRightNav: showRightNav_, rightBarPositionRight: rightBarPositionRight, dtmplConfig: dtmplConfig, sourceId: sourceId, code: code })));
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -96,5 +96,6 @@ ActDtmplView.defaultProps = {
|
|
|
96
96
|
rightBarPositionRight: 15,
|
|
97
97
|
showHeader: true,
|
|
98
98
|
};
|
|
99
|
+
ActDtmplView.contextType = LocaleContext;
|
|
99
100
|
export default ActDtmplView;
|
|
100
101
|
//# sourceMappingURL=act-dtmpl-view.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"act-dtmpl-view.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/view/act-dtmpl-view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"act-dtmpl-view.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/view/act-dtmpl-view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE7C,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAA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AAY,EAAE,aAAa,EAC3B,qBAAqB,EAAE,qBAAqB,EAC5C,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,GACC,CACT,CACP,CAAC;IACJ,CAAC;;AAxJM,yBAAY,GAAG;IACpB,YAAY,EAAE,IAAI;IAClB,qBAAqB,EAAE,EAAE;IACzB,UAAU,EAAE,IAAI;CACjB,AAJkB,CAIjB;AACK,wBAAW,GAAG,aAAa,AAAhB,CAAiB;AAsJrC,eAAe,YAAY,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { DtmplBaseProps, DtmplConfig, DtmplData } from "../../tmpl/interface";
|
|
3
|
-
import
|
|
3
|
+
import "../dtmpl.css";
|
|
4
4
|
export interface DtmplViewProps extends DtmplBaseProps {
|
|
5
5
|
versionId?: number;
|
|
6
6
|
dtmplConfig: DtmplConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtmpl-view.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/view/dtmpl-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"dtmpl-view.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/view/dtmpl-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,WAAW,EACX,SAAS,EAEV,MAAM,sBAAsB,CAAC;AAK9B,OAAO,cAAc,CAAC;AAStB,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,cAAM,SAAU,SAAQ,KAAK,CAAC,aAAa,CAAC,cAAc,EAAE,aAAa,CAAC;IACxE,MAAM,CAAC,YAAY;;MAEjB;IAEF,KAAK;;;;;;;;;;;;;;MAUH;IAEI,iBAAiB;IAIjB,kBAAkB,CAAC,SAAS,KAAA;IAgBlC,QAAQ,sBA+BN;IAEF,cAAc,4BAuJZ;IAEF,MAAM;CAsDP;AAED,eAAe,SAAS,CAAC"}
|