aldehyde 0.2.197 → 0.2.199
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 +201 -201
- package/README.md +2 -2
- package/lib/custom-page/def-custom-page.d.ts.map +1 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts.map +1 -1
- package/lib/detail/dtmpl.css +57 -57
- package/lib/export/export-frame.css +2 -2
- package/lib/export/export-frame.d.ts.map +1 -1
- package/lib/export/select-code-export-frame.d.ts.map +1 -1
- package/lib/form/dtmpl-form.css +3 -3
- package/lib/form/dtmpl-form.d.ts.map +1 -1
- package/lib/form/field-group-form.d.ts.map +1 -1
- package/lib/form/form-Item-group.d.ts.map +1 -1
- package/lib/form/index.css +12 -12
- package/lib/hooks/useVarCssColor.d.ts.map +1 -1
- package/lib/import/excel-import.d.ts.map +1 -1
- package/lib/import/index.css +53 -53
- package/lib/import/template.css +50 -50
- package/lib/layout/common.css +64 -64
- package/lib/layout/coverstyle.css +51 -51
- package/lib/layout2/LayoutContext.d.ts.map +1 -1
- package/lib/locale/LocaleButton.d.ts.map +1 -1
- package/lib/locale/LocaleProvider.d.ts.map +1 -1
- package/lib/locale/langMp.d.ts.map +1 -1
- package/lib/locale/translate.d.ts.map +1 -1
- package/lib/locale/useLocale.d.ts.map +1 -1
- package/lib/login/index.css +19 -19
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login2/Login.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-card.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-page.d.ts.map +1 -1
- package/lib/module/dtmpl-editor.d.ts.map +1 -1
- package/lib/module/dtmpl-view-card.d.ts.map +1 -1
- package/lib/module/embed-dtmpl-edit-page.d.ts.map +1 -1
- package/lib/module/ltmpl-modal.d.ts.map +1 -1
- package/lib/module/ltmpl-table.d.ts.map +1 -1
- package/lib/routable/dtmpl-route.d.ts.map +1 -1
- package/lib/routable/dtmpl-route.js +1 -1
- package/lib/routable/dtmpl-route.js.map +1 -1
- package/lib/routable/withroute.d.ts.map +1 -1
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +2 -1
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/control-table-x-axis-wrapper.d.ts +2 -11
- package/lib/table/control-table-x-axis-wrapper.d.ts.map +1 -1
- package/lib/table/index.css +71 -71
- package/lib/table/l2-act-table.d.ts.map +1 -1
- package/lib/table/modal-select-table.d.ts.map +1 -1
- package/lib/table/pagination.css +14 -14
- package/lib/table/pagination.d.ts.map +1 -1
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/relation-table.d.ts.map +1 -1
- package/lib/table/select-table.d.ts.map +1 -1
- package/lib/table/selected-rows-card.d.ts.map +1 -1
- package/lib/tmpl/control-type-supportor.d.ts.map +1 -1
- package/lib/tmpl/hc-data-source.d.ts.map +1 -1
- package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
- package/lib/tmpl/interface.d.ts +1 -0
- package/lib/tmpl/interface.d.ts.map +1 -1
- package/lib/tmpl/interface.js.map +1 -1
- package/lib/tmpl/tmpl-config-analysis.d.ts.map +1 -1
- package/lib/tree/act-tree.d.ts.map +1 -1
- package/lib/tree/block-menu-auth-tree.d.ts.map +1 -1
- package/lib/tree/index.css +20 -20
- package/lib/tree/tmpl-tree.d.ts.map +1 -1
- package/lib/tree/tree-node.d.ts.map +1 -1
- package/lib/tree/tree-utils.d.ts.map +1 -1
- package/lib/utils/dsu.d.ts.map +1 -1
- package/lib/welcome/index.css +13 -13
- package/lib/welcome/quick-entrance.d.ts.map +1 -1
- package/lib/welcome/workbench.d.ts.map +1 -1
- package/package.json +206 -206
- package/src/aldehyde/controls/action/index.css +8 -8
- package/src/aldehyde/controls/action/index.tsx +396 -401
- package/src/aldehyde/controls/action/utils.tsx +307 -307
- package/src/aldehyde/controls/auto-complete/index.tsx +82 -82
- package/src/aldehyde/controls/cascader/index.tsx +112 -112
- package/src/aldehyde/controls/chemstruc/graph.tsx +184 -184
- package/src/aldehyde/controls/chemstruc/index.css +28 -28
- package/src/aldehyde/controls/code-editor/sql-code-editor.tsx +73 -73
- package/src/aldehyde/controls/collapse-card/index.css +8 -8
- package/src/aldehyde/controls/collapse-card/index.tsx +109 -109
- package/src/aldehyde/controls/color-picker/index.css +26 -26
- package/src/aldehyde/controls/color-picker/index.tsx +114 -114
- package/src/aldehyde/controls/counting-tag/index.tsx +53 -53
- package/src/aldehyde/controls/cquery/cquick-button.tsx +144 -144
- package/src/aldehyde/controls/date-picker/index.tsx +146 -146
- package/src/aldehyde/controls/entity-select/entity-select.tsx +724 -723
- package/src/aldehyde/controls/entity-select/index.css +6 -6
- package/src/aldehyde/controls/entity-select/lab-tree-select.tsx +154 -154
- package/src/aldehyde/controls/entity-select/popover-entity-select.tsx +190 -190
- package/src/aldehyde/controls/entry-control.tsx +359 -359
- package/src/aldehyde/controls/enum-badge/index.tsx +31 -31
- package/src/aldehyde/controls/enum-tag/index.tsx +35 -35
- package/src/aldehyde/controls/field-history/index.tsx +81 -81
- package/src/aldehyde/controls/file-export/select-code-export.tsx +40 -40
- package/src/aldehyde/controls/file-view/drawer-file-view.tsx +75 -75
- package/src/aldehyde/controls/file-view/index.tsx +142 -142
- package/src/aldehyde/controls/file-view/newin-file-view.tsx +40 -40
- package/src/aldehyde/controls/html-editor/draft.tsx +161 -161
- package/src/aldehyde/controls/html-editor/tinymce.js +54 -54
- package/src/aldehyde/controls/input-number/index.tsx +148 -148
- package/src/aldehyde/controls/input-range/index.tsx +59 -59
- package/src/aldehyde/controls/password-setter/index.css +2 -2
- package/src/aldehyde/controls/password-setter/index.js +88 -88
- package/src/aldehyde/controls/progress/index.tsx +74 -74
- package/src/aldehyde/controls/relation-existion/index.css +4 -4
- package/src/aldehyde/controls/relation-existion/index.tsx +140 -140
- package/src/aldehyde/controls/rfield/index.css +4 -4
- package/src/aldehyde/controls/rfield/index.tsx +226 -226
- package/src/aldehyde/controls/select/index.tsx +211 -211
- package/src/aldehyde/controls/signature/index.tsx +226 -226
- package/src/aldehyde/controls/steps/index.tsx +59 -59
- package/src/aldehyde/controls/text/ellipsis-text.tsx +96 -96
- package/src/aldehyde/controls/upload/index.tsx +138 -138
- package/src/aldehyde/controls/view-control.tsx +284 -284
- package/src/aldehyde/custom-page/custom-page-router.tsx +75 -75
- package/src/aldehyde/custom-page/def-custom-page.tsx +17 -17
- package/src/aldehyde/custom-page/dtmpl-custom-edit-modal-page.tsx +87 -87
- package/src/aldehyde/detail/button/bottom-submit-button-bar.tsx +90 -90
- package/src/aldehyde/detail/button/cquery-button-bar.tsx +144 -144
- package/src/aldehyde/detail/button/edit-button.tsx +62 -62
- package/src/aldehyde/detail/button/fix-right-submit-button-bar.tsx +178 -178
- package/src/aldehyde/detail/button/index.css +42 -42
- package/src/aldehyde/detail/button/submit-button-bar.tsx +56 -56
- package/src/aldehyde/detail/button/view-button.tsx +61 -61
- package/src/aldehyde/detail/dtmpl.css +57 -57
- package/src/aldehyde/detail/edit/dtmpl-edit.tsx +267 -267
- package/src/aldehyde/detail/edit/fields-edit-card.tsx +143 -143
- package/src/aldehyde/detail/edit/modal-row-edit.tsx +94 -94
- package/src/aldehyde/detail/edit/post-result/index.tsx +85 -85
- package/src/aldehyde/detail/edit/row-edit-card.tsx +179 -179
- package/src/aldehyde/detail/edit/row-editor.tsx +72 -72
- package/src/aldehyde/detail/rightbar/index.css +34 -34
- package/src/aldehyde/detail/rightbar/index.tsx +92 -92
- package/src/aldehyde/detail/tooltipbar/index.tsx +32 -32
- package/src/aldehyde/detail/view/act-dtmpl-view.tsx +286 -271
- package/src/aldehyde/detail/view/dtmpl-view.tsx +319 -319
- package/src/aldehyde/detail/view/field-view-group.tsx +83 -83
- package/src/aldehyde/detail/view/modal-dtmpl-view.tsx +72 -72
- package/src/aldehyde/detail/view/snapshot-timeline.tsx +164 -164
- package/src/aldehyde/export/export-frame.css +2 -2
- package/src/aldehyde/export/export-frame.tsx +299 -299
- package/src/aldehyde/export/select-code-export-frame.tsx +218 -218
- package/src/aldehyde/form/criteria-form.tsx +488 -488
- package/src/aldehyde/form/dtmpl-form.css +3 -3
- package/src/aldehyde/form/dtmpl-form.tsx +502 -502
- package/src/aldehyde/form/field-group-form.tsx +98 -98
- package/src/aldehyde/form/fields-form.tsx +44 -44
- package/src/aldehyde/form/form-Item-group.tsx +211 -211
- package/src/aldehyde/form/index.css +12 -12
- package/src/aldehyde/hooks/useVarCssColor.ts +6 -6
- package/src/aldehyde/icon/index.tsx +28 -28
- package/src/aldehyde/import/excel-import.tsx +450 -450
- package/src/aldehyde/import/index.css +53 -53
- package/src/aldehyde/import/template.css +50 -50
- package/src/aldehyde/index.tsx +176 -176
- package/src/aldehyde/layout/MainPage.tsx +334 -334
- package/src/aldehyde/layout/common.css +64 -64
- package/src/aldehyde/layout/coverstyle.css +51 -51
- package/src/aldehyde/layout/footer/index.css +5 -5
- package/src/aldehyde/layout/footer/index.js +17 -17
- package/src/aldehyde/layout/header/index.css +122 -122
- package/src/aldehyde/layout/header/index.tsx +145 -145
- package/src/aldehyde/layout/menu/block.css +7 -7
- package/src/aldehyde/layout/menu/block.tsx +174 -174
- package/src/aldehyde/layout/menu/l2menu-message-bar.tsx +161 -161
- package/src/aldehyde/layout/menu/l2menu-quick-bar.tsx +159 -159
- package/src/aldehyde/layout/menu/menu-2layers.tsx +117 -117
- package/src/aldehyde/layout/menu/menu-render.tsx +165 -165
- package/src/aldehyde/layout/menu/reset-password.tsx +255 -255
- package/src/aldehyde/layout/menu/user-bar.tsx +258 -258
- package/src/aldehyde/layout/menu/userinfo-bar.tsx +69 -69
- package/src/aldehyde/layout/sidebar/index.css +57 -57
- package/src/aldehyde/layout/sidebar/index.tsx +85 -85
- package/src/aldehyde/layout2/LayoutContext.tsx +95 -95
- package/src/aldehyde/layout2/components/userButton.tsx +171 -171
- package/src/aldehyde/layout2/css/header.css +38 -38
- package/src/aldehyde/layout2/header.tsx +371 -371
- package/src/aldehyde/layout2/main.tsx +27 -27
- package/src/aldehyde/layout2/page.tsx +189 -189
- package/src/aldehyde/layout2/sider.tsx +335 -335
- package/src/aldehyde/layout2/type/layout.type.ts +10 -10
- package/src/aldehyde/layout2/util/menu.util.tsx +122 -122
- package/src/aldehyde/locale/LocaleButton.tsx +47 -47
- package/src/aldehyde/locale/LocaleProvider.tsx +204 -204
- package/src/aldehyde/locale/langMp.ts +45 -45
- package/src/aldehyde/locale/translate.ts +80 -80
- package/src/aldehyde/locale/useLocale.ts +56 -56
- package/src/aldehyde/login/context-setter.tsx +130 -130
- package/src/aldehyde/login/index.css +19 -19
- package/src/aldehyde/login/login.tsx +252 -252
- package/src/aldehyde/login/router-login.tsx +107 -107
- package/src/aldehyde/login/vertify/index.css +143 -143
- package/src/aldehyde/login/vertify/index.tsx +360 -360
- package/src/aldehyde/login/vertify/tool.ts +13 -13
- package/src/aldehyde/login2/Login.tsx +203 -203
- package/src/aldehyde/login2/LoginPage.tsx +64 -64
- package/src/aldehyde/login2/index.tsx +4 -4
- package/src/aldehyde/module/block-menu-tree-drawer.tsx +116 -116
- package/src/aldehyde/module/criteria-page.tsx1 +175 -175
- package/src/aldehyde/module/dtmpl-edit-card.tsx +313 -313
- package/src/aldehyde/module/dtmpl-edit-drawer.tsx +23 -23
- package/src/aldehyde/module/dtmpl-edit-modal.tsx +25 -25
- package/src/aldehyde/module/dtmpl-edit-page.tsx +396 -396
- package/src/aldehyde/module/dtmpl-editor.tsx +162 -162
- package/src/aldehyde/module/dtmpl-view-card.tsx +73 -73
- package/src/aldehyde/module/dtmpl-view-drawer.tsx +64 -64
- package/src/aldehyde/module/dtmpl-view-modal.tsx +53 -53
- package/src/aldehyde/module/embed-dtmpl-edit-page.tsx +137 -137
- package/src/aldehyde/module/ltmpl-drawer.tsx +57 -57
- package/src/aldehyde/module/ltmpl-modal.tsx +62 -62
- package/src/aldehyde/module/ltmpl-table.tsx +375 -375
- package/src/aldehyde/routable/dtmpl-route.tsx +166 -165
- package/src/aldehyde/routable/import-route.tsx +34 -34
- package/src/aldehyde/routable/ltmpl-route.tsx +436 -436
- package/src/aldehyde/routable/ttmpl-route.tsx +95 -95
- package/src/aldehyde/routable/withroute.tsx +25 -25
- package/src/aldehyde/table/act-table.tsx +1737 -1732
- package/src/aldehyde/table/column/column-selector.tsx +130 -130
- package/src/aldehyde/table/column/index.css +13 -13
- package/src/aldehyde/table/control-table-x-axis-wrapper.tsx +80 -80
- package/src/aldehyde/table/index.css +71 -71
- package/src/aldehyde/table/l2-act-table.tsx +91 -91
- package/src/aldehyde/table/modal-select-table.tsx +278 -278
- package/src/aldehyde/table/pagination.css +14 -14
- package/src/aldehyde/table/pagination.tsx +76 -76
- package/src/aldehyde/table/query-table.tsx +1421 -1421
- package/src/aldehyde/table/relation-table.tsx +855 -855
- package/src/aldehyde/table/select-table.tsx +272 -272
- package/src/aldehyde/table/selected-rows-card.tsx +75 -75
- package/src/aldehyde/table/stat/restat.tsx +123 -123
- package/src/aldehyde/table/table-util.tsx +25 -25
- package/src/aldehyde/tmpl/control-type-supportor.tsx +111 -111
- package/src/aldehyde/tmpl/hc-data-source.tsx +514 -514
- package/src/aldehyde/tmpl/hcservice-v3.tsx +1226 -1226
- package/src/aldehyde/tmpl/interface.tsx +614 -612
- package/src/aldehyde/tmpl/model-struc-v3.tsx +107 -107
- package/src/aldehyde/tmpl/superagent.js +165 -165
- package/src/aldehyde/tmpl/tmpl-config-analysis.tsx +342 -342
- package/src/aldehyde/tree/act-tree.tsx +220 -220
- package/src/aldehyde/tree/block-menu-auth-tree.tsx +187 -187
- package/src/aldehyde/tree/index.css +20 -20
- package/src/aldehyde/tree/tmpl-tree.tsx +678 -678
- package/src/aldehyde/tree/tree-node.tsx +73 -73
- package/src/aldehyde/tree/tree-utils.tsx +170 -170
- package/src/aldehyde/units/EncryptUtils.js +37 -37
- package/src/aldehyde/units/image.d.ts +7 -7
- package/src/aldehyde/units/index.tsx +978 -978
- package/src/aldehyde/units/storage.js +2 -2
- package/src/aldehyde/utils/dsu.ts +27 -27
- package/src/aldehyde/welcome/HCWelcome.js +321 -321
- package/src/aldehyde/welcome/HCWelcome1.js +259 -259
- package/src/aldehyde/welcome/index.css +13 -13
- package/src/aldehyde/welcome/quick-entrance.tsx +98 -98
- package/src/aldehyde/welcome/workbench.tsx +100 -100
- package/lib/controls/action/index.css +0 -9
- package/lib/controls/action/index.d.ts +0 -67
- package/lib/controls/action/index.d.ts.map +0 -1
- package/lib/controls/action/index.js +0 -243
- package/lib/controls/action/index.js.map +0 -1
- package/lib/controls/action/utils.d.ts +0 -15
- package/lib/controls/action/utils.d.ts.map +0 -1
- package/lib/controls/action/utils.js +0 -262
- package/lib/controls/action/utils.js.map +0 -1
- package/lib/controls/auto-complete/index.d.ts +0 -7
- package/lib/controls/auto-complete/index.d.ts.map +0 -1
- package/lib/controls/auto-complete/index.js +0 -58
- package/lib/controls/auto-complete/index.js.map +0 -1
- package/lib/controls/cascader/index.d.ts +0 -23
- package/lib/controls/cascader/index.d.ts.map +0 -1
- package/lib/controls/cascader/index.js +0 -108
- package/lib/controls/cascader/index.js.map +0 -1
- package/lib/controls/chemstruc/graph.d.ts +0 -40
- package/lib/controls/chemstruc/graph.d.ts.map +0 -1
- package/lib/controls/chemstruc/graph.js +0 -133
- package/lib/controls/chemstruc/graph.js.map +0 -1
- package/lib/controls/chemstruc/index.css +0 -28
- package/lib/controls/code-editor/sql-code-editor.d.ts +0 -15
- package/lib/controls/code-editor/sql-code-editor.d.ts.map +0 -1
- package/lib/controls/code-editor/sql-code-editor.js +0 -53
- package/lib/controls/code-editor/sql-code-editor.js.map +0 -1
- package/lib/controls/collapse-card/index.css +0 -9
- package/lib/controls/collapse-card/index.d.ts +0 -33
- package/lib/controls/collapse-card/index.d.ts.map +0 -1
- package/lib/controls/collapse-card/index.js +0 -74
- package/lib/controls/collapse-card/index.js.map +0 -1
- package/lib/controls/color-picker/index.css +0 -27
- package/lib/controls/color-picker/index.d.ts +0 -30
- package/lib/controls/color-picker/index.d.ts.map +0 -1
- package/lib/controls/color-picker/index.js +0 -64
- package/lib/controls/color-picker/index.js.map +0 -1
- package/lib/controls/counting-tag/index.d.ts +0 -20
- package/lib/controls/counting-tag/index.d.ts.map +0 -1
- package/lib/controls/counting-tag/index.js +0 -37
- package/lib/controls/counting-tag/index.js.map +0 -1
- package/lib/controls/cquery/cquick-button.d.ts +0 -36
- package/lib/controls/cquery/cquick-button.d.ts.map +0 -1
- package/lib/controls/cquery/cquick-button.js +0 -75
- package/lib/controls/cquery/cquick-button.js.map +0 -1
- package/lib/controls/date-picker/index.d.ts +0 -7
- package/lib/controls/date-picker/index.d.ts.map +0 -1
- package/lib/controls/date-picker/index.js +0 -91
- package/lib/controls/date-picker/index.js.map +0 -1
- package/lib/controls/entity-select/entity-select.d.ts +0 -87
- package/lib/controls/entity-select/entity-select.d.ts.map +0 -1
- package/lib/controls/entity-select/entity-select.js +0 -475
- package/lib/controls/entity-select/entity-select.js.map +0 -1
- package/lib/controls/entity-select/index.css +0 -6
- package/lib/controls/entity-select/lab-tree-select.d.ts +0 -36
- package/lib/controls/entity-select/lab-tree-select.d.ts.map +0 -1
- package/lib/controls/entity-select/lab-tree-select.js +0 -127
- package/lib/controls/entity-select/lab-tree-select.js.map +0 -1
- package/lib/controls/entity-select/popover-entity-select.d.ts +0 -33
- package/lib/controls/entity-select/popover-entity-select.d.ts.map +0 -1
- package/lib/controls/entity-select/popover-entity-select.js +0 -114
- package/lib/controls/entity-select/popover-entity-select.js.map +0 -1
- package/lib/controls/enum-badge/index.d.ts +0 -7
- package/lib/controls/enum-badge/index.d.ts.map +0 -1
- package/lib/controls/enum-badge/index.js +0 -14
- package/lib/controls/enum-badge/index.js.map +0 -1
- package/lib/controls/enum-tag/index.d.ts +0 -7
- package/lib/controls/enum-tag/index.d.ts.map +0 -1
- package/lib/controls/enum-tag/index.js +0 -27
- package/lib/controls/enum-tag/index.js.map +0 -1
- package/lib/controls/field-history/index.d.ts +0 -8
- package/lib/controls/field-history/index.d.ts.map +0 -1
- package/lib/controls/field-history/index.js +0 -67
- package/lib/controls/field-history/index.js.map +0 -1
- package/lib/controls/file-export/select-code-export.d.ts +0 -13
- package/lib/controls/file-export/select-code-export.d.ts.map +0 -1
- package/lib/controls/file-export/select-code-export.js +0 -14
- package/lib/controls/file-export/select-code-export.js.map +0 -1
- package/lib/controls/file-view/drawer-file-view.d.ts +0 -23
- package/lib/controls/file-view/drawer-file-view.d.ts.map +0 -1
- package/lib/controls/file-view/drawer-file-view.js +0 -49
- package/lib/controls/file-view/drawer-file-view.js.map +0 -1
- package/lib/controls/file-view/index.d.ts +0 -30
- package/lib/controls/file-view/index.d.ts.map +0 -1
- package/lib/controls/file-view/index.js +0 -122
- package/lib/controls/file-view/index.js.map +0 -1
- package/lib/controls/file-view/newin-file-view.d.ts +0 -18
- package/lib/controls/file-view/newin-file-view.d.ts.map +0 -1
- package/lib/controls/file-view/newin-file-view.js +0 -28
- package/lib/controls/file-view/newin-file-view.js.map +0 -1
- package/lib/controls/html-editor/draft.d.ts +0 -22
- package/lib/controls/html-editor/draft.d.ts.map +0 -1
- package/lib/controls/html-editor/draft.js +0 -122
- package/lib/controls/html-editor/draft.js.map +0 -1
- package/lib/controls/html-editor/tinymce.d.ts +0 -13
- package/lib/controls/html-editor/tinymce.d.ts.map +0 -1
- package/lib/controls/html-editor/tinymce.js +0 -47
- package/lib/controls/html-editor/tinymce.js.map +0 -1
- package/lib/controls/input-number/index.d.ts +0 -7
- package/lib/controls/input-number/index.d.ts.map +0 -1
- package/lib/controls/input-number/index.js +0 -77
- package/lib/controls/input-number/index.js.map +0 -1
- package/lib/controls/input-range/index.d.ts +0 -7
- package/lib/controls/input-range/index.d.ts.map +0 -1
- package/lib/controls/input-range/index.js +0 -29
- package/lib/controls/input-range/index.js.map +0 -1
- package/lib/controls/password-setter/index.css +0 -3
- package/lib/controls/password-setter/index.d.ts +0 -17
- package/lib/controls/password-setter/index.d.ts.map +0 -1
- package/lib/controls/password-setter/index.js +0 -59
- package/lib/controls/password-setter/index.js.map +0 -1
- package/lib/controls/progress/index.d.ts +0 -7
- package/lib/controls/progress/index.d.ts.map +0 -1
- package/lib/controls/progress/index.js +0 -52
- package/lib/controls/progress/index.js.map +0 -1
- package/lib/controls/relation-existion/index.css +0 -4
- package/lib/controls/relation-existion/index.d.ts +0 -31
- package/lib/controls/relation-existion/index.d.ts.map +0 -1
- package/lib/controls/relation-existion/index.js +0 -87
- package/lib/controls/relation-existion/index.js.map +0 -1
- package/lib/controls/rfield/index.css +0 -4
- package/lib/controls/rfield/index.d.ts +0 -41
- package/lib/controls/rfield/index.d.ts.map +0 -1
- package/lib/controls/rfield/index.js +0 -149
- package/lib/controls/rfield/index.js.map +0 -1
- package/lib/controls/select/index.d.ts +0 -30
- package/lib/controls/select/index.d.ts.map +0 -1
- package/lib/controls/select/index.js +0 -145
- package/lib/controls/select/index.js.map +0 -1
- package/lib/controls/signature/index.d.ts +0 -42
- package/lib/controls/signature/index.d.ts.map +0 -1
- package/lib/controls/signature/index.js +0 -155
- package/lib/controls/signature/index.js.map +0 -1
- package/lib/controls/steps/index.d.ts +0 -8
- package/lib/controls/steps/index.d.ts.map +0 -1
- package/lib/controls/steps/index.js +0 -47
- package/lib/controls/steps/index.js.map +0 -1
- package/lib/controls/text/ellipsis-text.d.ts +0 -31
- package/lib/controls/text/ellipsis-text.d.ts.map +0 -1
- package/lib/controls/text/ellipsis-text.js +0 -48
- package/lib/controls/text/ellipsis-text.js.map +0 -1
- package/lib/controls/upload/index.d.ts +0 -26
- package/lib/controls/upload/index.d.ts.map +0 -1
- package/lib/controls/upload/index.js +0 -109
- package/lib/controls/upload/index.js.map +0 -1
- package/lib/detail/button/bottom-submit-button-bar.d.ts +0 -24
- package/lib/detail/button/bottom-submit-button-bar.d.ts.map +0 -1
- package/lib/detail/button/bottom-submit-button-bar.js +0 -38
- package/lib/detail/button/bottom-submit-button-bar.js.map +0 -1
- package/lib/detail/button/cquery-button-bar.d.ts +0 -28
- package/lib/detail/button/cquery-button-bar.d.ts.map +0 -1
- package/lib/detail/button/cquery-button-bar.js +0 -79
- package/lib/detail/button/cquery-button-bar.js.map +0 -1
- package/lib/detail/button/edit-button.d.ts +0 -11
- package/lib/detail/button/edit-button.d.ts.map +0 -1
- package/lib/detail/button/edit-button.js +0 -29
- package/lib/detail/button/edit-button.js.map +0 -1
- package/lib/detail/button/fix-right-submit-button-bar.d.ts +0 -26
- package/lib/detail/button/fix-right-submit-button-bar.d.ts.map +0 -1
- package/lib/detail/button/fix-right-submit-button-bar.js +0 -93
- package/lib/detail/button/fix-right-submit-button-bar.js.map +0 -1
- package/lib/detail/button/index.css +0 -43
- package/lib/detail/button/submit-button-bar.d.ts +0 -22
- package/lib/detail/button/submit-button-bar.d.ts.map +0 -1
- package/lib/detail/button/submit-button-bar.js +0 -22
- package/lib/detail/button/submit-button-bar.js.map +0 -1
- package/lib/detail/button/view-button.d.ts +0 -11
- package/lib/detail/button/view-button.d.ts.map +0 -1
- package/lib/detail/button/view-button.js +0 -28
- package/lib/detail/button/view-button.js.map +0 -1
- package/lib/detail/edit/dtmpl-edit.d.ts +0 -48
- package/lib/detail/edit/dtmpl-edit.d.ts.map +0 -1
- package/lib/detail/edit/dtmpl-edit.js +0 -236
- package/lib/detail/edit/dtmpl-edit.js.map +0 -1
- package/lib/detail/edit/fields-edit-card.d.ts +0 -51
- package/lib/detail/edit/fields-edit-card.d.ts.map +0 -1
- package/lib/detail/edit/fields-edit-card.js +0 -63
- package/lib/detail/edit/fields-edit-card.js.map +0 -1
- package/lib/detail/edit/modal-row-edit.d.ts +0 -43
- package/lib/detail/edit/modal-row-edit.d.ts.map +0 -1
- package/lib/detail/edit/modal-row-edit.js +0 -60
- package/lib/detail/edit/modal-row-edit.js.map +0 -1
- package/lib/detail/edit/post-result/index.d.ts +0 -17
- package/lib/detail/edit/post-result/index.d.ts.map +0 -1
- package/lib/detail/edit/post-result/index.js +0 -33
- package/lib/detail/edit/post-result/index.js.map +0 -1
- package/lib/detail/edit/row-edit-card.d.ts +0 -54
- package/lib/detail/edit/row-edit-card.d.ts.map +0 -1
- package/lib/detail/edit/row-edit-card.js +0 -83
- package/lib/detail/edit/row-edit-card.js.map +0 -1
- package/lib/detail/edit/row-editor.d.ts +0 -33
- package/lib/detail/edit/row-editor.d.ts.map +0 -1
- package/lib/detail/edit/row-editor.js +0 -57
- package/lib/detail/edit/row-editor.js.map +0 -1
- package/lib/detail/rightbar/index.css +0 -35
- package/lib/detail/rightbar/index.d.ts +0 -31
- package/lib/detail/rightbar/index.d.ts.map +0 -1
- package/lib/detail/rightbar/index.js +0 -59
- package/lib/detail/rightbar/index.js.map +0 -1
- package/lib/detail/tooltipbar/index.d.ts +0 -19
- package/lib/detail/tooltipbar/index.d.ts.map +0 -1
- package/lib/detail/tooltipbar/index.js +0 -29
- package/lib/detail/tooltipbar/index.js.map +0 -1
- package/lib/detail/view/act-dtmpl-view.d.ts +0 -64
- package/lib/detail/view/act-dtmpl-view.d.ts.map +0 -1
- package/lib/detail/view/act-dtmpl-view.js +0 -152
- package/lib/detail/view/act-dtmpl-view.js.map +0 -1
- package/lib/detail/view/dtmpl-view.d.ts +0 -43
- package/lib/detail/view/dtmpl-view.d.ts.map +0 -1
- package/lib/detail/view/dtmpl-view.js +0 -164
- package/lib/detail/view/dtmpl-view.js.map +0 -1
- package/lib/detail/view/field-view-group.d.ts +0 -30
- package/lib/detail/view/field-view-group.d.ts.map +0 -1
- package/lib/detail/view/field-view-group.js +0 -45
- package/lib/detail/view/field-view-group.js.map +0 -1
- package/lib/detail/view/modal-dtmpl-view.d.ts +0 -40
- package/lib/detail/view/modal-dtmpl-view.d.ts.map +0 -1
- package/lib/detail/view/modal-dtmpl-view.js +0 -34
- package/lib/detail/view/modal-dtmpl-view.js.map +0 -1
- package/lib/detail/view/snapshot-timeline.d.ts +0 -44
- package/lib/detail/view/snapshot-timeline.d.ts.map +0 -1
- package/lib/detail/view/snapshot-timeline.js +0 -92
- package/lib/detail/view/snapshot-timeline.js.map +0 -1
- package/lib/index.d.ts +0 -51
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -116
- package/lib/index.js.map +0 -1
- package/lib/layout/footer/index.css +0 -6
- package/lib/layout/footer/index.d.ts +0 -7
- package/lib/layout/footer/index.d.ts.map +0 -1
- package/lib/layout/footer/index.js +0 -12
- package/lib/layout/footer/index.js.map +0 -1
- package/lib/layout/header/index.css +0 -122
- package/lib/layout/header/index.d.ts +0 -10
- package/lib/layout/header/index.d.ts.map +0 -1
- package/lib/layout/header/index.js +0 -62
- package/lib/layout/header/index.js.map +0 -1
- package/lib/layout/menu/block.css +0 -7
- package/lib/layout/menu/block.d.ts +0 -33
- package/lib/layout/menu/block.d.ts.map +0 -1
- package/lib/layout/menu/block.js +0 -128
- package/lib/layout/menu/block.js.map +0 -1
- package/lib/layout/menu/l2menu-message-bar.d.ts +0 -28
- package/lib/layout/menu/l2menu-message-bar.d.ts.map +0 -1
- package/lib/layout/menu/l2menu-message-bar.js +0 -114
- package/lib/layout/menu/l2menu-message-bar.js.map +0 -1
- package/lib/layout/menu/l2menu-quick-bar.d.ts +0 -45
- package/lib/layout/menu/l2menu-quick-bar.d.ts.map +0 -1
- package/lib/layout/menu/l2menu-quick-bar.js +0 -108
- package/lib/layout/menu/l2menu-quick-bar.js.map +0 -1
- package/lib/layout/menu/menu-2layers.d.ts +0 -26
- package/lib/layout/menu/menu-2layers.d.ts.map +0 -1
- package/lib/layout/menu/menu-2layers.js +0 -95
- package/lib/layout/menu/menu-2layers.js.map +0 -1
- package/lib/layout/menu/menu-render.d.ts +0 -14
- package/lib/layout/menu/menu-render.d.ts.map +0 -1
- package/lib/layout/menu/menu-render.js +0 -159
- package/lib/layout/menu/menu-render.js.map +0 -1
- package/lib/layout/menu/reset-password.d.ts +0 -38
- package/lib/layout/menu/reset-password.d.ts.map +0 -1
- package/lib/layout/menu/reset-password.js +0 -143
- package/lib/layout/menu/reset-password.js.map +0 -1
- package/lib/layout/menu/user-bar.d.ts +0 -50
- package/lib/layout/menu/user-bar.d.ts.map +0 -1
- package/lib/layout/menu/user-bar.js +0 -161
- package/lib/layout/menu/user-bar.js.map +0 -1
- package/lib/layout/menu/userinfo-bar.d.ts +0 -34
- package/lib/layout/menu/userinfo-bar.d.ts.map +0 -1
- package/lib/layout/menu/userinfo-bar.js +0 -49
- package/lib/layout/menu/userinfo-bar.js.map +0 -1
- package/lib/layout/sidebar/index.css +0 -57
- package/lib/layout/sidebar/index.d.ts +0 -12
- package/lib/layout/sidebar/index.d.ts.map +0 -1
- package/lib/layout/sidebar/index.js +0 -45
- package/lib/layout/sidebar/index.js.map +0 -1
- package/lib/layout/sidebar/logo.png +0 -0
- package/lib/layout2/components/userButton.d.ts +0 -5
- package/lib/layout2/components/userButton.d.ts.map +0 -1
- package/lib/layout2/components/userButton.js +0 -133
- package/lib/layout2/components/userButton.js.map +0 -1
- package/lib/layout2/css/header.css +0 -38
- package/lib/layout2/imgs/home.png +0 -0
- package/lib/layout2/type/layout.type.d.ts +0 -10
- package/lib/layout2/type/layout.type.d.ts.map +0 -1
- package/lib/layout2/type/layout.type.js +0 -2
- package/lib/layout2/type/layout.type.js.map +0 -1
- package/lib/layout2/util/menu.util.d.ts +0 -28
- package/lib/layout2/util/menu.util.d.ts.map +0 -1
- package/lib/layout2/util/menu.util.js +0 -85
- package/lib/layout2/util/menu.util.js.map +0 -1
- package/lib/login/vertify/index.css +0 -144
- package/lib/login/vertify/index.d.ts +0 -78
- package/lib/login/vertify/index.d.ts.map +0 -1
- package/lib/login/vertify/index.js +0 -210
- package/lib/login/vertify/index.js.map +0 -1
- package/lib/login/vertify/tool.d.ts +0 -5
- package/lib/login/vertify/tool.d.ts.map +0 -1
- package/lib/login/vertify/tool.js +0 -11
- package/lib/login/vertify/tool.js.map +0 -1
- package/lib/login2/img/login-bg.png +0 -0
- package/lib/table/column/column-selector.d.ts +0 -25
- package/lib/table/column/column-selector.d.ts.map +0 -1
- package/lib/table/column/column-selector.js +0 -62
- package/lib/table/column/column-selector.js.map +0 -1
- package/lib/table/column/index.css +0 -14
- package/lib/table/stat/restat.d.ts +0 -38
- package/lib/table/stat/restat.d.ts.map +0 -1
- package/lib/table/stat/restat.js +0 -62
- package/lib/table/stat/restat.js.map +0 -1
- package/lib/welcome/img/development.png +0 -0
- package/lib/welcome/img/pain-point.png +0 -0
- package/lib/welcome/img/target.png +0 -0
- package/lib/welcome/img/time-cost.png +0 -0
- package/lib/welcome/img/time-prograss.png +0 -0
- package/lib/welcome/img/welcome.png +0 -0
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import React from "react";
|
|
11
|
-
import { Button, Upload as AntdUpload, message } from "antd";
|
|
12
|
-
import { UploadOutlined } from "@ant-design/icons";
|
|
13
|
-
import HcserviceV3 from "./../../tmpl/hcservice-v3";
|
|
14
|
-
import Super from "../../tmpl/superagent";
|
|
15
|
-
import Units from "../../units";
|
|
16
|
-
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
17
|
-
class Upload extends React.PureComponent {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.state = {};
|
|
21
|
-
// handleRemove=(info)=>{
|
|
22
|
-
// Modal.confirm({
|
|
23
|
-
// title: "删除提示",
|
|
24
|
-
// content: "您确定删除此图片吗?",
|
|
25
|
-
// okText: "确认",
|
|
26
|
-
// cancelText: "取消",
|
|
27
|
-
// onOk: () => {
|
|
28
|
-
// let fileList = []
|
|
29
|
-
// this.props.onChange(JSON.stringify({valid:'delete'}));
|
|
30
|
-
// },
|
|
31
|
-
// onCancel: () => {
|
|
32
|
-
// return false;
|
|
33
|
-
// }
|
|
34
|
-
// });
|
|
35
|
-
//
|
|
36
|
-
// return false;
|
|
37
|
-
// }
|
|
38
|
-
this.handleRemove = (info) => {
|
|
39
|
-
this.props.onChange(JSON.stringify({ valid: "delete" }));
|
|
40
|
-
};
|
|
41
|
-
this.handleChange = (info) => __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
console.log("file change:", info);
|
|
43
|
-
if (info.file.status == "done") {
|
|
44
|
-
let newFile = {
|
|
45
|
-
valid: "new",
|
|
46
|
-
fileKey: info.file.response.fileKey,
|
|
47
|
-
fileName: info.file.originFileObj.name,
|
|
48
|
-
};
|
|
49
|
-
const { onChange } = this.props;
|
|
50
|
-
onChange(JSON.stringify(newFile));
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
// triggerChange = (changedValue) => {
|
|
54
|
-
// onChange(changedValue);
|
|
55
|
-
// if (onChange) {
|
|
56
|
-
// onChange(changedValue);
|
|
57
|
-
// }
|
|
58
|
-
// }
|
|
59
|
-
this.beforeUpload = (file) => {
|
|
60
|
-
const { translate } = this.context;
|
|
61
|
-
const isLt5M = file.size / 1024 / 1024 < 40;
|
|
62
|
-
if (!isLt5M) {
|
|
63
|
-
message.error(translate("${超过40M限制 不允许上传~}"), 5);
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
render() {
|
|
72
|
-
const { id, itemType, disabled, value, serverKey } = this.props;
|
|
73
|
-
const { translate } = this.context;
|
|
74
|
-
let fileList = [];
|
|
75
|
-
if (value) {
|
|
76
|
-
let value_1 = value;
|
|
77
|
-
if (typeof value_1 == "string") {
|
|
78
|
-
value_1 = JSON.parse(value);
|
|
79
|
-
}
|
|
80
|
-
if (value_1.valid === true) {
|
|
81
|
-
fileList.push({
|
|
82
|
-
uid: "-1",
|
|
83
|
-
name: value_1.base.fileName,
|
|
84
|
-
status: "done",
|
|
85
|
-
url: encodeURI(Units.joinPath(Units.joinPath(Units.api(), "/v3/files"), value_1.base.path)) +
|
|
86
|
-
`?@token=${Units.hydrocarbonToken()}&@programToken=${Units.programCode()}&disposition=attachment`,
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
else if (value_1.valid == "new") {
|
|
90
|
-
fileList.push({
|
|
91
|
-
uid: "-2",
|
|
92
|
-
name: value_1.fileName,
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return (React.createElement("div", null,
|
|
97
|
-
React.createElement(AntdUpload, { id: id, maxCount: 1, accept: itemType === "picture"
|
|
98
|
-
? ".png, .jpg, .jpeg"
|
|
99
|
-
: itemType === "video"
|
|
100
|
-
? ".mp4"
|
|
101
|
-
: undefined, listType: itemType == "picture" ? "picture" : "text", fileList: fileList.length == 0 ? undefined : fileList, disabled: disabled, name: "file", headers: Super.getHeaderObj(), action: (file) => HcserviceV3.postFileAction(serverKey, file), beforeUpload: this.beforeUpload, onChange: this.handleChange, onRemove: this.handleRemove }, fileList && fileList.length >= 1 ? ("") : (React.createElement(Button, { disabled: disabled },
|
|
102
|
-
React.createElement(UploadOutlined, null),
|
|
103
|
-
" ",
|
|
104
|
-
disabled ? translate("${无需上传}") : translate("${点击上传}"))))));
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
Upload.contextType = LocaleContext;
|
|
108
|
-
export default Upload;
|
|
109
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/aldehyde/controls/upload/index.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,M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C,CAAC,CAAC,CACF,oBAAC,MAAM,IAAC,QAAQ,EAAE,QAAQ;gBACxB,oBAAC,cAAc,OAAG;gBAAC,GAAG;gBACrB,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAChD,CACV,CACU,CACT,CACP,CAAC;IACJ,CAAC;;AAtHM,kBAAW,GAAG,aAAa,AAAhB,CAAiB;eALhB,MAAM"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
import { SubmitButtonProps } from "./submit-button-bar";
|
|
4
|
-
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
5
|
-
interface BottomSubmitButtonBarProps extends SubmitButtonProps {
|
|
6
|
-
}
|
|
7
|
-
interface BottomSubmitButtonState {
|
|
8
|
-
}
|
|
9
|
-
declare class BottomSubmitButtonBar extends React.PureComponent<BottomSubmitButtonBarProps, BottomSubmitButtonState> {
|
|
10
|
-
state: {};
|
|
11
|
-
static contextType: React.Context<{
|
|
12
|
-
locale: import("../../locale/langMp").LocaleType;
|
|
13
|
-
langPkg: any;
|
|
14
|
-
availableLang: string[];
|
|
15
|
-
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
16
|
-
t: (...strs: string[]) => string;
|
|
17
|
-
translate: (...strs: string[]) => string;
|
|
18
|
-
getServiceLangStr?: () => string;
|
|
19
|
-
}>;
|
|
20
|
-
context: React.ContextType<typeof LocaleContext>;
|
|
21
|
-
render(): React.JSX.Element;
|
|
22
|
-
}
|
|
23
|
-
export default BottomSubmitButtonBar;
|
|
24
|
-
//# sourceMappingURL=bottom-submit-button-bar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,38 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
import { Button, Card, Col, Row, Space } from "antd";
|
|
4
|
-
import { SaveOutlined } from "@ant-design/icons";
|
|
5
|
-
import Action from "../../controls/action";
|
|
6
|
-
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
7
|
-
class BottomSubmitButtonBar extends React.PureComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.state = {
|
|
11
|
-
// stateSerial:0,
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
const {} = this.state;
|
|
16
|
-
const { dtmplConfig, position, doSubmit, formRef, serial, serverKey, dtmplData, } = this.props;
|
|
17
|
-
const { buttons, actions } = dtmplConfig;
|
|
18
|
-
const { translate } = this.context;
|
|
19
|
-
return (React.createElement(Card, { bordered: false },
|
|
20
|
-
React.createElement(Row, { align: "middle", justify: position == "bottomLeft"
|
|
21
|
-
? "start"
|
|
22
|
-
: position == "bottomRight"
|
|
23
|
-
? "end"
|
|
24
|
-
: "center" },
|
|
25
|
-
React.createElement(Space, null,
|
|
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
|
-
: ""))));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
BottomSubmitButtonBar.contextType = LocaleContext;
|
|
37
|
-
export default BottomSubmitButtonBar;
|
|
38
|
-
//# sourceMappingURL=bottom-submit-button-bar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAQ5D,MAAM,qBAAsB,SAAQ,KAAK,CAAC,aAGzC;IAHD;;QAIE,UAAK,GAAG;QACN,iBAAiB;SAClB,CAAC;IAkEJ,CAAC;IA9DC,MAAM;QACJ,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACtB,MAAM,EACJ,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,MAAM,EACN,SAAS,EACT,SAAS,GACV,GAAG,IAAI,CAAC,KAAK,CAAC;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAA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-
import "./index.css";
|
|
3
|
-
import { CQueryConfig, DtmplConfig } from "../../tmpl/interface";
|
|
4
|
-
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
5
|
-
interface CqueryButtonBarProps {
|
|
6
|
-
serverKey?: string;
|
|
7
|
-
dtmplConfig: DtmplConfig;
|
|
8
|
-
mainCode: string;
|
|
9
|
-
}
|
|
10
|
-
interface CqueryButtonBarState {
|
|
11
|
-
}
|
|
12
|
-
declare class CqueryButtonBar extends React.PureComponent<CqueryButtonBarProps, CqueryButtonBarState> {
|
|
13
|
-
state: {};
|
|
14
|
-
static contextType: React.Context<{
|
|
15
|
-
locale: import("../../locale/langMp").LocaleType;
|
|
16
|
-
langPkg: any;
|
|
17
|
-
availableLang: string[];
|
|
18
|
-
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
19
|
-
t: (...strs: string[]) => string;
|
|
20
|
-
translate: (...strs: string[]) => string;
|
|
21
|
-
getServiceLangStr?: () => string;
|
|
22
|
-
}>;
|
|
23
|
-
context: React.ContextType<typeof LocaleContext>;
|
|
24
|
-
calcOffsetBottom: (cQuerys: CQueryConfig[]) => 80 | 120 | 86;
|
|
25
|
-
render(): "" | React.JSX.Element;
|
|
26
|
-
}
|
|
27
|
-
export default CqueryButtonBar;
|
|
28
|
-
//# sourceMappingURL=cquery-button-bar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,79 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
import { Affix, Button, Popover, Space } from "antd";
|
|
4
|
-
import { LeftOutlined } from "@ant-design/icons";
|
|
5
|
-
import CquickButton from "../../controls/cquery/cquick-button";
|
|
6
|
-
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
7
|
-
class CqueryButtonBar extends React.PureComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.state = {
|
|
11
|
-
// stateSerial:0,
|
|
12
|
-
};
|
|
13
|
-
this.calcOffsetBottom = (cQuerys) => {
|
|
14
|
-
if (cQuerys.length >= 3) {
|
|
15
|
-
return 120;
|
|
16
|
-
}
|
|
17
|
-
else if (cQuerys.length == 2) {
|
|
18
|
-
return 86;
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
return 80;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
// async componentDidMount() {
|
|
26
|
-
// console.log("SubmitButtonBar this.loadData()");
|
|
27
|
-
//
|
|
28
|
-
// console.log("SubmitButtonBar this.loadData()1");
|
|
29
|
-
// // if(code!=preCode || (!code && preCode)){
|
|
30
|
-
// // await this.loadData();
|
|
31
|
-
// // }else{
|
|
32
|
-
// // formRef.current.resetFields();
|
|
33
|
-
// // }
|
|
34
|
-
// }
|
|
35
|
-
// loadData = async () => {
|
|
36
|
-
// console.log("SubmitButtonBar this.loadData()2");
|
|
37
|
-
// this.setState({
|
|
38
|
-
// stateSerial: this.state.stateSerial + 1,
|
|
39
|
-
// })
|
|
40
|
-
// }
|
|
41
|
-
render() {
|
|
42
|
-
const {} = this.state;
|
|
43
|
-
const { dtmplConfig, mainCode, serverKey } = this.props;
|
|
44
|
-
const { translate } = this.context;
|
|
45
|
-
if (!dtmplConfig) {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
const { buttons, cQuerys } = dtmplConfig;
|
|
49
|
-
const cardList = [];
|
|
50
|
-
let content;
|
|
51
|
-
if (cQuerys && cQuerys.length > 3) {
|
|
52
|
-
content = (React.createElement("div", { style: { width: "100px" }, className: "btns" },
|
|
53
|
-
React.createElement(Space, { direction: "vertical" }, cQuerys.map((item, index) => {
|
|
54
|
-
if (index > 2) {
|
|
55
|
-
return (React.createElement(CquickButton, { serverKey: serverKey, block: true, key: item.id, mainCode: mainCode, cQueryConfig: item }));
|
|
56
|
-
}
|
|
57
|
-
}))));
|
|
58
|
-
}
|
|
59
|
-
//offsetBottom={this.calcOffsetBottom(cQuerys)}
|
|
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" },
|
|
62
|
-
React.createElement("ul", null,
|
|
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("${更多}")))) : (""))))) : ("");
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
CqueryButtonBar.contextType = LocaleContext;
|
|
78
|
-
export default CqueryButtonBar;
|
|
79
|
-
//# sourceMappingURL=cquery-button-bar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,OAAO,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;gBAC/B,OAAO,EAAE,CAAC;YACZ,CAAC;iBAAM,CAAC;gBACN,OAAO,EAAE,CAAC;YACZ,CAAC;QACH,CAAC,CAAC;IAkGJ,CAAC;IAhGC,+BAA+B;IAC/B,uDAAuD;IACvD,EAAE;IACF,wDAAwD;IACxD,wDAAwD;IACxD,yCAAyC;IACzC,qBAAqB;IACrB,kDAAkD;IAClD,iBAAiB;IACjB,IAAI;IAEJ,2BAA2B;IAC3B,uDAAuD;IACvD,sBAAsB;I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AE,EAAE,EACnE,SAAS,EAAE,GAAG;YAEd,6BAAK,SAAS,EAAE,iBAAiB;gBAC/B;oBACG,OAAO;wBACN,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;4BAC1B,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;gCACd,OAAO,CACL,4BAAI,GAAG,EAAE,KAAK;oCACZ,oBAAC,YAAY,IACX,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,IAAI,EACX,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,IAAI,GACJ,CACb,CACN,CAAC;4BACJ,CAAC;wBACH,CAAC,CAAC;wBACJ,CAAC,CAAC,EAAE,EACL,OAAO;oBACR,OAAO,IAAI,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,CAAC,CAAC,CACF,EAAE,CACH,CAAC;IACJ,CAAC;;AA5GM,2BAAW,GAAG,aAAa,AAAhB,CAAiB;AA+GrC,eAAe,eAAe,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DoEditParam, DtmplData, LtmplConfig } from "../../tmpl/interface";
|
|
3
|
-
interface EditButtonProps {
|
|
4
|
-
serverKey?: string;
|
|
5
|
-
doEdit: (doEditParam: DoEditParam) => void;
|
|
6
|
-
data: DtmplData;
|
|
7
|
-
ltmplConfig: LtmplConfig;
|
|
8
|
-
}
|
|
9
|
-
declare const EditButton: React.FC<EditButtonProps>;
|
|
10
|
-
export default EditButton;
|
|
11
|
-
//# sourceMappingURL=edit-button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edit-button.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/edit-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAI3E,UAAU,eAAe;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA+CzC,CAAC;AACF,eAAe,UAAU,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Button } from "antd";
|
|
3
|
-
import { EditOutlined } from "@ant-design/icons";
|
|
4
|
-
import ActionUtils from "../../controls/action/utils";
|
|
5
|
-
const EditButton = (props) => {
|
|
6
|
-
var _a;
|
|
7
|
-
const { doEdit, data, ltmplConfig } = props;
|
|
8
|
-
let button = undefined;
|
|
9
|
-
if (ltmplConfig.classEditConfigs) {
|
|
10
|
-
ltmplConfig.classEditConfigs.forEach((classEditConfig) => {
|
|
11
|
-
if (!button &&
|
|
12
|
-
ActionUtils.isShow(classEditConfig.preposes, [data], undefined)) {
|
|
13
|
-
button = (React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(EditOutlined, null), onClick: () => doEdit({
|
|
14
|
-
code: data.code,
|
|
15
|
-
mode: "update",
|
|
16
|
-
dtmplSourceId: classEditConfig.id,
|
|
17
|
-
}) }));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
// debugger
|
|
22
|
-
if (!button &&
|
|
23
|
-
ActionUtils.isShow((_a = ltmplConfig.buttonEditAction) === null || _a === void 0 ? void 0 : _a.preposes, [data], undefined)) {
|
|
24
|
-
button = (React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(EditOutlined, null), onClick: () => doEdit({ code: data.code, mode: "update" }) }));
|
|
25
|
-
}
|
|
26
|
-
return button ? button : React.createElement(React.Fragment, null);
|
|
27
|
-
};
|
|
28
|
-
export default EditButton;
|
|
29
|
-
//# sourceMappingURL=edit-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edit-button.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/edit-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,WAAW,MAAM,6BAA6B,CAAC;AAStD,MAAM,UAAU,GAA8B,CAAC,KAAK,EAAE,EAAE;;IACtD,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC5C,IAAI,MAAM,GAAG,SAAS,CAAC;IACvB,IAAI,WAAW,CAAC,gBAAgB,EAAE,CAAC;QACjC,WAAW,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,eAAe,EAAE,EAAE;YACvD,IACE,CAAC,MAAM;gBACP,WAAW,CAAC,MAAM,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,EAC/D,CAAC;gBACD,MAAM,GAAG,CACP,oBAAC,MAAM,IACL,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ,EACb,IAAI,EAAE,oBAAC,YAAY,OAAG,EACtB,OAAO,EAAE,GAAG,EAAE,CACZ,MAAM,CAAC;wBACL,IAAI,EAAE,IAAI,CAAC,IAAI;wBACf,IAAI,EAAE,QAAQ;wBACd,aAAa,EAAE,eAAe,CAAC,EAAE;qBAClC,CAAC,GAEI,CACX,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,aAAa;IACb,IACE,CAAC,MAAM;QACP,WAAW,CAAC,MAAM,CAChB,MAAA,WAAW,CAAC,gBAAgB,0CAAE,QAAQ,EACtC,CAAC,IAAI,CAAC,EACN,SAAS,CACV,EACD,CAAC;QACD,MAAM,GAAG,CACP,oBAAC,MAAM,IACL,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ,EACb,IAAI,EAAE,oBAAC,YAAY,OAAG,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,GAClD,CACX,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,yCAAK,CAAC;AACjC,CAAC,CAAC;AACF,eAAe,UAAU,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
import { ActionConfig, ButtonName } from "../../../aldehyde/tmpl/interface";
|
|
4
|
-
import { SubmitButtonProps } from "./submit-button-bar";
|
|
5
|
-
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
6
|
-
interface FixRightSubmitButtonProps extends SubmitButtonProps {
|
|
7
|
-
}
|
|
8
|
-
interface FixRightSubmitButtonState {
|
|
9
|
-
}
|
|
10
|
-
declare class FixRightSubmitButtonBar extends React.PureComponent<FixRightSubmitButtonProps, FixRightSubmitButtonState> {
|
|
11
|
-
state: {};
|
|
12
|
-
static contextType: React.Context<{
|
|
13
|
-
locale: import("../../locale/langMp").LocaleType;
|
|
14
|
-
langPkg: any;
|
|
15
|
-
availableLang: string[];
|
|
16
|
-
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
17
|
-
t: (...strs: string[]) => string;
|
|
18
|
-
translate: (...strs: string[]) => string;
|
|
19
|
-
getServiceLangStr?: () => string;
|
|
20
|
-
}>;
|
|
21
|
-
context: React.ContextType<typeof LocaleContext>;
|
|
22
|
-
calcOffsetBottom: (buttons: ButtonName[], actions: ActionConfig[]) => 80 | 120 | 86;
|
|
23
|
-
render(): React.JSX.Element;
|
|
24
|
-
}
|
|
25
|
-
export default FixRightSubmitButtonBar;
|
|
26
|
-
//# sourceMappingURL=fix-right-submit-button-bar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,93 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
import { Affix, Button, Popover } from "antd";
|
|
4
|
-
import { LeftOutlined, SaveOutlined } from "@ant-design/icons";
|
|
5
|
-
import Action from "../../controls/action";
|
|
6
|
-
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
7
|
-
class FixRightSubmitButtonBar extends React.PureComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.state = {
|
|
11
|
-
// stateSerial:0,
|
|
12
|
-
};
|
|
13
|
-
this.calcOffsetBottom = (buttons, actions) => {
|
|
14
|
-
let buttonSize = 0;
|
|
15
|
-
if (actions) {
|
|
16
|
-
buttonSize = buttonSize + actions.length;
|
|
17
|
-
}
|
|
18
|
-
if (buttons && buttons.includes("dtmplSave")) {
|
|
19
|
-
buttonSize = buttonSize + 1;
|
|
20
|
-
}
|
|
21
|
-
if (buttonSize >= 3) {
|
|
22
|
-
return 120;
|
|
23
|
-
}
|
|
24
|
-
else if (buttonSize == 2) {
|
|
25
|
-
return 86;
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
return 80;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
const {} = this.state;
|
|
34
|
-
const { dtmplConfig, doSubmit, formRef, serial, serverKey, dtmplData, } = this.props;
|
|
35
|
-
const { buttons, actions } = dtmplConfig;
|
|
36
|
-
const cardList = [];
|
|
37
|
-
const { translate } = this.context;
|
|
38
|
-
//console.log(" submit-button-bar serial:",serial);
|
|
39
|
-
// console.log(" submit-button-bar stateSerial:",stateSerial);
|
|
40
|
-
if (dtmplConfig.premises && dtmplConfig.premises.length > 0) {
|
|
41
|
-
cardList.push({
|
|
42
|
-
id: "1",
|
|
43
|
-
title: translate("${默认字段}"),
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
dtmplConfig.groups.forEach((g) => {
|
|
47
|
-
cardList.push({
|
|
48
|
-
title: g.title,
|
|
49
|
-
id: g.id,
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
let content;
|
|
53
|
-
if (actions && actions.length > 1) {
|
|
54
|
-
content = (React.createElement("div", { className: "btns" }, actions.map((item, index) => {
|
|
55
|
-
if (index > 1) {
|
|
56
|
-
// return <Popconfirm key={item.id} placement="top" title={"确定要保存修改并执行此操作吗?"}
|
|
57
|
-
// onConfirm={() => doSubmit(item.id)} okText="确定" cancelText="取消">
|
|
58
|
-
// <Button
|
|
59
|
-
// type="primary"
|
|
60
|
-
// >{item.title}</Button>
|
|
61
|
-
// </Popconfirm>
|
|
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 }));
|
|
63
|
-
}
|
|
64
|
-
})));
|
|
65
|
-
}
|
|
66
|
-
return (React.createElement(Affix
|
|
67
|
-
//style={{position: 'absolute', right: 10, maxHeight: 100}}
|
|
68
|
-
// offsetBottom={this.calcOffsetBottom(buttons, actions)}>
|
|
69
|
-
, {
|
|
70
|
-
//style={{position: 'absolute', right: 10, maxHeight: 100}}
|
|
71
|
-
// offsetBottom={this.calcOffsetBottom(buttons, actions)}>
|
|
72
|
-
style: { position: "absolute", bottom: 60, right: 15 }, offsetBottom: this.calcOffsetBottom(buttons, actions) },
|
|
73
|
-
React.createElement("div", { className: "submitButtonBar" },
|
|
74
|
-
React.createElement("ul", null,
|
|
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 }, translate("${保存}")))) : (""), //处理前两个
|
|
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("${更多}")))) : ("")))));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
FixRightSubmitButtonBar.contextType = LocaleContext;
|
|
92
|
-
export default FixRightSubmitButtonBar;
|
|
93
|
-
//# sourceMappingURL=fix-right-submit-button-bar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,aAAa,CAAC;AAOrB,OAAO,EAAE,KAAK,EAAE,MAAM,EAAc,OAAO,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAQ5D,MAAM,uBAAwB,SAAQ,KAAK,CAAC,aAG3C;IAHD;;QAIE,UAAK,GAAG;QACN,iBAAiB;SAClB,CAAC;QAIF,qBAAgB,GAAG,CAAC,OAAqB,EAAE,OAAuB,EAAE,EAAE;YACpE,IAAI,UAAU,GAAW,CAAC,CAAC;YAC3B,IAAI,OAAO,EAAE,CAAC;gBACZ,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;YAC3C,CAAC;YACD,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;gBAC7C,UAAU,GAAG,UAAU,GAAG,CAAC,CAAC;YAC9B,CAAC;YACD,IAAI,UAAU,IAAI,CAAC,E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AAI,KAAK,GAAG,CAAC,EAAE,CAAC;gCACd,OAAO,CACL,4BAAI,GAAG,EAAE,KAAK;oCAKZ,oBAAC,MAAM,IACL,IAAI,EAAE,CAAC,SAAS,CAAC,EACjB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,eAAe,EAC3B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,IAAI,EAClB,QAAQ,EAAE,QAAQ,GACV,CACP,CACN,CAAC;4BACJ,CAAC;wBACH,CAAC,CAAC;wBACJ,CAAC,CAAC,EAAE,EACL,OAAO;oBACR,OAAO,IAAI,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,43 +0,0 @@
|
|
|
1
|
-
.submitButtonBar{
|
|
2
|
-
background: #fff;
|
|
3
|
-
/*position: absolute;*/
|
|
4
|
-
/*right:10px;*/
|
|
5
|
-
/*top:80px;*/
|
|
6
|
-
border:1px solid #e8e8e8;
|
|
7
|
-
border-radius: 4px;
|
|
8
|
-
box-shadow: 2px 2px 10px rgba(0,0,0,.2);
|
|
9
|
-
max-height:158px;
|
|
10
|
-
/*min-height:80px;*/
|
|
11
|
-
overflow:auto;
|
|
12
|
-
width:100px;
|
|
13
|
-
}
|
|
14
|
-
.submitButtonBar::-webkit-scrollbar {
|
|
15
|
-
display: none;
|
|
16
|
-
}
|
|
17
|
-
.submitButtonBar ul{
|
|
18
|
-
padding:0;
|
|
19
|
-
margin:0;
|
|
20
|
-
}
|
|
21
|
-
.submitButtonBar li{
|
|
22
|
-
list-style-type: none;
|
|
23
|
-
padding:4px;
|
|
24
|
-
margin:0;
|
|
25
|
-
text-align: left;
|
|
26
|
-
white-space: nowrap;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
}
|
|
29
|
-
/*.rightBar li:hover{*/
|
|
30
|
-
/* background: #cfe3f5;*/
|
|
31
|
-
/*}*/
|
|
32
|
-
|
|
33
|
-
.btns button{
|
|
34
|
-
margin-right: 10px
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.cquickTextButton {
|
|
38
|
-
cursor:pointer;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.cquickTextButton:hover{
|
|
42
|
-
color: #1890ff;
|
|
43
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { RefObject } from 'react';
|
|
2
|
-
import './index.css';
|
|
3
|
-
import { ButtonPosition, DtmplConfig, DtmplData } from "../../../aldehyde/tmpl/interface";
|
|
4
|
-
import { FormInstance } from "antd/lib/form/hooks/useForm";
|
|
5
|
-
export interface SubmitButtonProps {
|
|
6
|
-
serverKey?: string;
|
|
7
|
-
dtmplConfig: DtmplConfig;
|
|
8
|
-
dtmplData: DtmplData;
|
|
9
|
-
position?: ButtonPosition;
|
|
10
|
-
doSubmit: (actionId?: string, codes?: string[], params?: object) => void;
|
|
11
|
-
formRef: RefObject<FormInstance>;
|
|
12
|
-
serial: number;
|
|
13
|
-
}
|
|
14
|
-
interface SubmitButtonState {
|
|
15
|
-
}
|
|
16
|
-
declare class SubmitButtonBar extends React.PureComponent<SubmitButtonProps, SubmitButtonState> {
|
|
17
|
-
state: {};
|
|
18
|
-
static defaultProps: {};
|
|
19
|
-
render(): React.JSX.Element;
|
|
20
|
-
}
|
|
21
|
-
export default SubmitButtonBar;
|
|
22
|
-
//# sourceMappingURL=submit-button-bar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"submit-button-bar.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AACtC,OAAO,aAAa,CAAA;AACpB,OAAO,EAGH,cAAc,EACd,WAAW,EACX,SAAS,EAEZ,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAGzD,MAAM,WAAY,iBAAiB;IAC/B,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAC,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAC,cAAc,CAAC;IACzB,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAC,KAAK,CAAC,EAAC,MAAM,EAAE,EAAC,MAAM,CAAC,EAAC,MAAM,KAAK,IAAI,CAAC;IACrE,OAAO,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACjC,MAAM,EAAC,MAAM,CAAC;CAEjB;AAGD,UAAU,iBAAiB;CAE1B;AAED,cAAM,eAAgB,SAAQ,KAAK,CAAC,aAAa,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAEnF,KAAK,KAEJ;IAED,MAAM,CAAC,YAAY,KAElB;IAED,MAAM;CAST;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.css';
|
|
3
|
-
import FixRightSubmitButtonBar from './fix-right-submit-button-bar';
|
|
4
|
-
import BottomSubmitButtonBar from "./bottom-submit-button-bar";
|
|
5
|
-
class SubmitButtonBar extends React.PureComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(...arguments);
|
|
8
|
-
this.state = {
|
|
9
|
-
// stateSerial:0,
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
const { position, doSubmit, serial, dtmplConfig, formRef, dtmplData } = this.props;
|
|
14
|
-
let posi = position ? position : dtmplConfig.buttonPosition ? dtmplConfig.buttonPosition : undefined;
|
|
15
|
-
return React.createElement(React.Fragment, null, !posi || posi == 'fixedBottomRight' ?
|
|
16
|
-
React.createElement(FixRightSubmitButtonBar, { doSubmit: doSubmit, serial: serial, dtmplConfig: dtmplConfig, formRef: formRef, dtmplData: dtmplData })
|
|
17
|
-
: React.createElement(BottomSubmitButtonBar, { position: posi, doSubmit: doSubmit, serial: serial, dtmplConfig: dtmplConfig, formRef: formRef, dtmplData: dtmplData }));
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
SubmitButtonBar.defaultProps = {};
|
|
21
|
-
export default SubmitButtonBar;
|
|
22
|
-
//# sourceMappingURL=submit-button-bar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"submit-button-bar.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AACtC,OAAO,aAAa,CAAA;AAYpB,OAAO,uBAAuB,MAAM,+BAA+B,CAAA;AAEnE,OAAO,qBAAqB,MAAM,4BAA4B,CAAC;AAkB/D,MAAM,eAAgB,SAAQ,KAAK,CAAC,aAAmD;IAAvF;;QAEI,UAAK,GAAC;QACJ,iBAAiB;SAClB,CAAA;IAeL,CAAC;IATG,MAAM;QACF,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAC,SAAS,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAChF,IAAI,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAA;QAEpG,OAAO,0CAAG,CAAC,IAAI,IAAI,IAAI,IAAI,kBAAkB,CAAC,CAAC;YAC3C,oBAAC,uBAAuB,IAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAG;YAChI,CAAC,CAAC,oBAAC,qBAAqB,IAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAG,CAChJ,CAAA;IACR,CAAC;;AAZM,4BAAY,GAAC,EAEnB,AAFkB,CAElB;AAaL,eAAe,eAAe,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DtmplData, LtmplConfig, ShowViewParam } from "../../tmpl/interface";
|
|
3
|
-
interface ViewButtonProps {
|
|
4
|
-
serverKey?: string;
|
|
5
|
-
showView: (showViewParam: ShowViewParam) => void;
|
|
6
|
-
data: DtmplData;
|
|
7
|
-
ltmplConfig: LtmplConfig;
|
|
8
|
-
}
|
|
9
|
-
declare const ViewButton: React.FC<ViewButtonProps>;
|
|
10
|
-
export default ViewButton;
|
|
11
|
-
//# sourceMappingURL=view-button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"view-button.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/view-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAI3E,UAAU,eAAe;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,IAAI,CAAC;IACjD,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8CzC,CAAC;AACF,eAAe,UAAU,CAAC"}
|