aldehyde 0.2.197 → 0.2.198
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 +723 -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,54 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FormInstance } from "antd";
|
|
3
|
-
import { DtmplData, FieldGroupConfig } from "../../tmpl/interface";
|
|
4
|
-
import { ButtonType } from "antd/es/button";
|
|
5
|
-
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
6
|
-
interface RowEditCardProps {
|
|
7
|
-
serverKey?: string;
|
|
8
|
-
height?: any;
|
|
9
|
-
onCancel?: () => void;
|
|
10
|
-
onOk: (value: DtmplData, hidden: boolean) => void;
|
|
11
|
-
fieldGroupConfig: FieldGroupConfig;
|
|
12
|
-
dtmplData?: DtmplData;
|
|
13
|
-
okButtonType?: ButtonType;
|
|
14
|
-
okDanger?: boolean;
|
|
15
|
-
needConfirm?: boolean;
|
|
16
|
-
}
|
|
17
|
-
interface RowEditCardState {
|
|
18
|
-
isAdded?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export default class RowEditCard extends React.PureComponent<RowEditCardProps, RowEditCardState> {
|
|
21
|
-
formRef: React.RefObject<FormInstance<any>>;
|
|
22
|
-
static defaultProps: {
|
|
23
|
-
forceRender: boolean;
|
|
24
|
-
style: {
|
|
25
|
-
maxWidth: string;
|
|
26
|
-
maxHeight: string;
|
|
27
|
-
};
|
|
28
|
-
needConfirm: boolean;
|
|
29
|
-
okButtonType: string;
|
|
30
|
-
okDanger: boolean;
|
|
31
|
-
};
|
|
32
|
-
state: {
|
|
33
|
-
isAdded: boolean;
|
|
34
|
-
};
|
|
35
|
-
static contextType: React.Context<{
|
|
36
|
-
locale: import("../../locale/langMp").LocaleType;
|
|
37
|
-
langPkg: any;
|
|
38
|
-
availableLang: string[];
|
|
39
|
-
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
40
|
-
t: (...strs: string[]) => string;
|
|
41
|
-
translate: (...strs: string[]) => string;
|
|
42
|
-
getServiceLangStr?: () => string;
|
|
43
|
-
}>;
|
|
44
|
-
context: React.ContextType<typeof LocaleContext>;
|
|
45
|
-
componentDidMount(): Promise<void>;
|
|
46
|
-
componentDidUpdate(): Promise<void>;
|
|
47
|
-
reset: () => void;
|
|
48
|
-
onOk: () => void;
|
|
49
|
-
add: () => void;
|
|
50
|
-
getTitle: () => string;
|
|
51
|
-
render(): React.JSX.Element;
|
|
52
|
-
}
|
|
53
|
-
export {};
|
|
54
|
-
//# sourceMappingURL=row-edit-card.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;CA6FP"}
|
|
@@ -1,83 +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, Card, Popconfirm, Space, } from "antd";
|
|
12
|
-
import { CloseOutlined } from "@ant-design/icons";
|
|
13
|
-
import FieldGroupForm from "../../form/field-group-form";
|
|
14
|
-
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
15
|
-
class RowEditCard extends React.PureComponent {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.formRef = React.createRef();
|
|
19
|
-
this.state = {
|
|
20
|
-
isAdded: false,
|
|
21
|
-
};
|
|
22
|
-
this.reset = () => {
|
|
23
|
-
// if (this.formRef.current) {
|
|
24
|
-
// this.formRef.current.resetFields();
|
|
25
|
-
// }
|
|
26
|
-
};
|
|
27
|
-
this.onOk = () => {
|
|
28
|
-
this.setState({ isAdded: false });
|
|
29
|
-
this.formRef.current.submit();
|
|
30
|
-
};
|
|
31
|
-
this.add = () => {
|
|
32
|
-
this.setState({ isAdded: true });
|
|
33
|
-
this.formRef.current.submit();
|
|
34
|
-
};
|
|
35
|
-
this.getTitle = () => {
|
|
36
|
-
const { fieldGroupConfig, dtmplData } = this.props;
|
|
37
|
-
const { translate } = this.context;
|
|
38
|
-
let title = "";
|
|
39
|
-
title = fieldGroupConfig.title;
|
|
40
|
-
if (dtmplData) {
|
|
41
|
-
title = title + translate("[${行编辑}]");
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
title = title + translate("[${新建一行}]");
|
|
45
|
-
}
|
|
46
|
-
return title;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
componentDidMount() {
|
|
50
|
-
return __awaiter(this, void 0, void 0, function* () { });
|
|
51
|
-
}
|
|
52
|
-
componentDidUpdate() {
|
|
53
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
//this.reset();
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
render() {
|
|
58
|
-
const { height, onOk, fieldGroupConfig, dtmplData, onCancel, okButtonType, needConfirm, okDanger, serverKey, } = this.props;
|
|
59
|
-
const { isAdded } = this.state;
|
|
60
|
-
const { translate } = this.context;
|
|
61
|
-
function okButton(onOk) {
|
|
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("${确定}")));
|
|
65
|
-
}
|
|
66
|
-
return (React.createElement(Card, { style: { width: 1000 }, title: this.getTitle(), bodyStyle: { overflow: "auto" }, extra: React.createElement(React.Fragment, null,
|
|
67
|
-
React.createElement(Space, { size: [8, 0] },
|
|
68
|
-
okButton(this.onOk),
|
|
69
|
-
onCancel ? (React.createElement(Button, { onClick: onCancel },
|
|
70
|
-
React.createElement(CloseOutlined, null))) : (""))) },
|
|
71
|
-
React.createElement(FieldGroupForm, { serverKey: serverKey, fieldGroupConfig: fieldGroupConfig, formRef: this.formRef, onFinish: (value) => onOk(value, !isAdded), dtmplData: dtmplData })));
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
RowEditCard.defaultProps = {
|
|
75
|
-
forceRender: true,
|
|
76
|
-
style: { maxWidth: "calc(100vw - 60px)", maxHeight: "calc(100vh - 50px)" },
|
|
77
|
-
needConfirm: false,
|
|
78
|
-
okButtonType: "primary",
|
|
79
|
-
okDanger: false,
|
|
80
|
-
};
|
|
81
|
-
RowEditCard.contextType = LocaleContext;
|
|
82
|
-
export default RowEditCard;
|
|
83
|
-
//# sourceMappingURL=row-edit-card.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,GAEN,MAAM,MAAM,CA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EAAE,IAAI,IACnD,SAAS,CAAC,OAAO,CAAC,CACZ,CACV,CAAC;QACJ,CAAC;QAED,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EACtB,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,EACtB,SAAS,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAC/B,KAAK,EACH;gBACE,oBAAC,KAAK,IAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;oBAEhB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;oBAanB,QAAQ,CAAC,CAAC,CAAC,CACV,oBAAC,MAAM,IAAC,OAAO,EAAE,QAAQ;wBACvB,oBAAC,aAAa,OAAG,CACV,CACV,CAAC,CAAC,CAAC,CACF,EAAE,CACH,CACK,CACP;YAGL,oBAAC,cAAc,IACb,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,gBAAgB,EAClC,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;;AA5IM,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,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormInstance } from 'antd';
|
|
3
|
-
import { DtmplData, FieldGroupConfig } from "../../tmpl/interface";
|
|
4
|
-
interface RowEditorProps {
|
|
5
|
-
serverKey?: string;
|
|
6
|
-
buttonTitle?: string;
|
|
7
|
-
buttonIcon: React.ReactNode;
|
|
8
|
-
tooltipTitle?: React.ReactNode;
|
|
9
|
-
fieldGroupConfig: FieldGroupConfig;
|
|
10
|
-
dtmplData?: DtmplData;
|
|
11
|
-
onOk: (value: DtmplData) => void;
|
|
12
|
-
buttonStyle?: object;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface RowEditorState {
|
|
16
|
-
popoverOpen?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export default class RowEditor extends React.PureComponent<RowEditorProps, RowEditorState> {
|
|
19
|
-
formRef: React.RefObject<FormInstance<any>>;
|
|
20
|
-
static defaultProps: {
|
|
21
|
-
buttonIcon: any;
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
};
|
|
24
|
-
state: {
|
|
25
|
-
popoverOpen: boolean;
|
|
26
|
-
};
|
|
27
|
-
componentDidMount(): Promise<void>;
|
|
28
|
-
componentDidUpdate(): Promise<void>;
|
|
29
|
-
onOk: (value: any, hidden?: boolean) => void;
|
|
30
|
-
render(): React.JSX.Element;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
33
|
-
//# sourceMappingURL=row-editor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"row-editor.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/row-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAS,YAAY,EAAmB,MAAM,MAAM,CAAA;AAC3D,OAAO,EAAC,SAAS,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAEjE,UAAU,cAAc;IACpB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAE;IAChC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,EAAC,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IAChC,WAAW,CAAC,EAAC,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAC,OAAO,CAAA;CACpB;AAED,UAAU,cAAc;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,KAAK,CAAC,aAAa,CAAC,cAAc,EAAE,cAAc,CAAC;IACtF,OAAO,qCAAmC;IAC1C,MAAM,CAAC,YAAY;;;MAGlB;IACD,KAAK;;MAEJ;IAEK,iBAAiB;IAIjB,kBAAkB;IASxB,IAAI,wBAAiB,OAAO,UAM3B;IAGD,MAAM;CAoBT"}
|
|
@@ -1,57 +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, Popover, Tooltip } from 'antd';
|
|
12
|
-
import RowEditCard from './row-edit-card';
|
|
13
|
-
class RowEditor extends React.PureComponent {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.formRef = React.createRef();
|
|
17
|
-
this.state = {
|
|
18
|
-
popoverOpen: false,
|
|
19
|
-
};
|
|
20
|
-
// reset = () => {
|
|
21
|
-
// if (this.formRef.current) {
|
|
22
|
-
// this.formRef.current.resetFields();
|
|
23
|
-
// }
|
|
24
|
-
// }
|
|
25
|
-
this.onOk = (value, hidden = true) => {
|
|
26
|
-
if (hidden) {
|
|
27
|
-
this.setState({ popoverOpen: false });
|
|
28
|
-
}
|
|
29
|
-
this.props.onOk(value);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
componentDidMount() {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
componentDidUpdate() {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
const { popoverOpen } = this.state;
|
|
42
|
-
const { disabled, buttonIcon, buttonTitle, tooltipTitle, fieldGroupConfig, dtmplData, buttonStyle, serverKey } = this.props;
|
|
43
|
-
return React.createElement(Popover, { destroyTooltipOnHide: true, placement: "leftBottom", open: popoverOpen, content: React.createElement(RowEditCard, { serverKey: serverKey, fieldGroupConfig: fieldGroupConfig, dtmplData: dtmplData, onCancel: () => {
|
|
44
|
-
this.setState({ popoverOpen: false });
|
|
45
|
-
}, onOk: this.onOk }), trigger: "click" },
|
|
46
|
-
React.createElement(Tooltip, { placement: "left", title: tooltipTitle },
|
|
47
|
-
React.createElement(Button, { disabled: disabled, style: buttonStyle, icon: buttonIcon, size: "small", onClick: () => {
|
|
48
|
-
this.setState({ popoverOpen: !popoverOpen });
|
|
49
|
-
} }, buttonTitle ? buttonTitle : "")));
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
RowEditor.defaultProps = {
|
|
53
|
-
buttonIcon: undefined,
|
|
54
|
-
disabled: false,
|
|
55
|
-
};
|
|
56
|
-
export default RowEditor;
|
|
57
|
-
//# sourceMappingURL=row-editor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"row-editor.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/row-editor.t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CAAC,EAAC,WAAW,EAAC,KAAK,EAAC,CAAC,CAAC;gBAAA,CAAC,EACpC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAgB,EAAE,OAAO,EAAC,OAAO;YACtF,oBAAC,OAAO,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,YAAY;gBACzC,oBAAC,MAAM,IACH,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,UAAU,EAChB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,GAAG,EAAE;wBACV,IAAI,CAAC,QAAQ,CAAC,EAAC,WAAW,EAAC,CAAC,WAAW,EAAC,CAAC,CAAC;oBAC9C,CAAC,IACH,WAAW,CAAA,CAAC,CAAA,WAAW,CAAA,CAAC,CAAA,EAAE,CAAU,CAAU,CAAU,CAAA;IACtE,CAAC;;AAhDM,sBAAY,GAAG;IAClB,UAAU,EAAC,SAAS;IACpB,QAAQ,EAAC,KAAK;CACjB,AAHkB,CAGlB;eALgB,SAAS"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
.rightBar{
|
|
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
|
-
height:200px;
|
|
10
|
-
/*max-height:181px;*/
|
|
11
|
-
/*min-height:80px;*/
|
|
12
|
-
min-width: 96px;
|
|
13
|
-
overflow:auto;
|
|
14
|
-
}
|
|
15
|
-
.rightBar::-webkit-scrollbar {
|
|
16
|
-
display: none;
|
|
17
|
-
}
|
|
18
|
-
.rightBar ul{
|
|
19
|
-
padding:0;
|
|
20
|
-
margin:0;
|
|
21
|
-
}
|
|
22
|
-
.rightBar li{
|
|
23
|
-
list-style-type: none;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
padding:3px 7px;
|
|
26
|
-
width:95px;
|
|
27
|
-
text-align: center;
|
|
28
|
-
white-space: nowrap;
|
|
29
|
-
text-overflow: ellipsis;
|
|
30
|
-
text-align: left;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
}
|
|
33
|
-
.rightBar li:hover{
|
|
34
|
-
background: #cfe3f5;
|
|
35
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
import { DtmplConfig, TmplBase } from "../../tmpl/interface";
|
|
4
|
-
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
5
|
-
interface RightBarProps {
|
|
6
|
-
parentId: string;
|
|
7
|
-
dtmplConfig: DtmplConfig;
|
|
8
|
-
positionRight?: number;
|
|
9
|
-
}
|
|
10
|
-
interface RightBarState {
|
|
11
|
-
}
|
|
12
|
-
export default class RightBar extends React.PureComponent<RightBarProps, RightBarState> {
|
|
13
|
-
static defaultProps: {
|
|
14
|
-
positionRight: number;
|
|
15
|
-
};
|
|
16
|
-
static contextType: React.Context<{
|
|
17
|
-
locale: import("../../locale/langMp").LocaleType;
|
|
18
|
-
langPkg: any;
|
|
19
|
-
availableLang: string[];
|
|
20
|
-
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
21
|
-
t: (...strs: string[]) => string;
|
|
22
|
-
translate: (...strs: string[]) => string;
|
|
23
|
-
getServiceLangStr?: () => string;
|
|
24
|
-
}>;
|
|
25
|
-
context: React.ContextType<typeof LocaleContext>;
|
|
26
|
-
scrollToAnchor: (anchor: TmplBase) => void;
|
|
27
|
-
scroll: (e: any) => void;
|
|
28
|
-
render(): "" | React.JSX.Element;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
31
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,59 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
import { Affix } from "antd";
|
|
4
|
-
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
5
|
-
class RightBar extends React.PureComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(...arguments);
|
|
8
|
-
this.scrollToAnchor = (anchor) => {
|
|
9
|
-
if (anchor) {
|
|
10
|
-
let anchorElement = document.getElementById(this.props.parentId + anchor.id);
|
|
11
|
-
if (anchorElement) {
|
|
12
|
-
anchorElement.scrollIntoView({ behavior: "smooth", block: "end" });
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
this.scroll = (e) => {
|
|
17
|
-
e.preventDefault();
|
|
18
|
-
e.stopPropagation();
|
|
19
|
-
const list = document.getElementsByClassName("rightBar")[0];
|
|
20
|
-
if (list) {
|
|
21
|
-
const ul = list.getElementsByTagName("ul")[0];
|
|
22
|
-
ul.style.marginTop = "";
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
const { dtmplConfig, positionRight } = this.props;
|
|
28
|
-
const cardList = [];
|
|
29
|
-
const { translate } = this.context;
|
|
30
|
-
if (dtmplConfig) {
|
|
31
|
-
dtmplConfig.groups.forEach((g) => {
|
|
32
|
-
cardList.push({
|
|
33
|
-
title: g.title,
|
|
34
|
-
id: g.id,
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
if (dtmplConfig &&
|
|
39
|
-
dtmplConfig.premises &&
|
|
40
|
-
dtmplConfig.premises.length > 0) {
|
|
41
|
-
cardList.push({
|
|
42
|
-
id: dtmplConfig.premises[0].id,
|
|
43
|
-
title: translate("${默认字段}"),
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
// @ts-ignore
|
|
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
|
-
: "")))) : ("");
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
RightBar.defaultProps = {
|
|
55
|
-
positionRight: 15,
|
|
56
|
-
};
|
|
57
|
-
RightBar.contextType = LocaleContext;
|
|
58
|
-
export default RightBar;
|
|
59
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/rightbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,EAAU,MAAM,MAAM,CAAC;AACrC,OA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} from "antd/lib/tooltip";
|
|
4
|
-
interface ToolTipBarProps extends ButtonProps {
|
|
5
|
-
content: any;
|
|
6
|
-
placement: TooltipPlacement;
|
|
7
|
-
}
|
|
8
|
-
interface ToolTipBarState {
|
|
9
|
-
}
|
|
10
|
-
export default class ToolTipBar extends React.PureComponent<ToolTipBarProps, ToolTipBarState> {
|
|
11
|
-
static defaultProps: {
|
|
12
|
-
placement: string;
|
|
13
|
-
size: string;
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
render(): React.JSX.Element;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/tooltipbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAC,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAClD,UAAU,eAAgB,SAAQ,WAAW;IAC1C,OAAO,EAAC,GAAG,CAAC;IACX,SAAS,EAAC,gBAAgB,CAAC;CAC9B;AAGD,UAAU,eAAe;CAExB;AAED,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,KAAK,CAAC,aAAa,CAAC,eAAe,EAAE,eAAe,CAAC;IAEzF,MAAM,CAAC,YAAY;;;;MAIlB;IAGD,MAAM;CAOT"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { QuestionCircleOutlined } from '@ant-design/icons';
|
|
14
|
-
import { Button, Popover } from "antd";
|
|
15
|
-
class ToolTipBar extends React.PureComponent {
|
|
16
|
-
render() {
|
|
17
|
-
const _a = this.props, { placement, icon, content } = _a, other = __rest(_a, ["placement", "icon", "content"]);
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return (content ? React.createElement(Popover, { placement: placement, content: React.createElement("div", { dangerouslySetInnerHTML: { __html: content } }) },
|
|
20
|
-
React.createElement(Button, Object.assign({}, other, { icon: icon ? icon : React.createElement(QuestionCircleOutlined, null) }))) : null);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
ToolTipBar.defaultProps = {
|
|
24
|
-
placement: 'right',
|
|
25
|
-
size: 'small',
|
|
26
|
-
type: 'text',
|
|
27
|
-
};
|
|
28
|
-
export default ToolTipBar;
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/tooltipbar/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAC,OAAO,EAAG,MAAM,MAAM,CAAC;AAavC,MAAqB,UAAW,SAAQ,KAAK,CAAC,aAA+C;IASzF,MAAM;QACF,MAAM,KAAoC,IAAI,CAAC,KAAK,EAA9C,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,OAAuB,EAAnB,KAAK,cAAhC,gCAAiC,CAAa,CAAA;QACpD,aAAa;QACb,OAAO,CAAC,OAAO,CAAA,CAAC,CAAC,oBAAC,OAAO,IAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,6BAAM,uBAAuB,EAAE,EAAC,MAAM,EAAC,OAAO,EAAC,GAAS;YAC1G,oBAAC,MAAM,oBAAM,KAAK,IAAE,IAAI,EAAE,IAAI,CAAA,CAAC,CAAA,IAAI,CAAA,CAAC,CAAA,oBAAC,sBAAsB,OAAG,IAAI,CAAU,CAAA,CAAC,CAAA,IAAI,CACxF,CAAA;IACL,CAAC;;AAbM,uBAAY,GAAG;IAClB,SAAS,EAAC,OAAO;IACjB,IAAI,EAAC,OAAO;IACZ,IAAI,EAAC,MAAM;CACd,CAAA;eANgB,UAAU"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FormInstance } from "antd";
|
|
3
|
-
import { DtmplBaseProps, DtmplConfig, DtmplData } from "../../tmpl/interface";
|
|
4
|
-
import "../dtmpl.css";
|
|
5
|
-
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
6
|
-
export interface ActDtmplViewProps extends DtmplBaseProps {
|
|
7
|
-
versionId?: number;
|
|
8
|
-
title?: any;
|
|
9
|
-
showHeader?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface ActDtmplViewStat {
|
|
12
|
-
loading?: boolean;
|
|
13
|
-
dtmplConfig?: DtmplConfig;
|
|
14
|
-
premisesTitle?: string;
|
|
15
|
-
snapshotOpen?: boolean;
|
|
16
|
-
layout?: object;
|
|
17
|
-
refreshCode?: string;
|
|
18
|
-
actionDtmplData?: DtmplData;
|
|
19
|
-
}
|
|
20
|
-
declare class ActDtmplView extends React.PureComponent<ActDtmplViewProps, ActDtmplViewStat> {
|
|
21
|
-
static defaultProps: {
|
|
22
|
-
showRightNav: boolean;
|
|
23
|
-
rightBarPositionRight: number;
|
|
24
|
-
showHeader: boolean;
|
|
25
|
-
};
|
|
26
|
-
formRef: React.RefObject<FormInstance<any>>;
|
|
27
|
-
static contextType: React.Context<{
|
|
28
|
-
locale: import("../../locale/langMp").LocaleType;
|
|
29
|
-
langPkg: any;
|
|
30
|
-
availableLang: string[];
|
|
31
|
-
changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
|
|
32
|
-
t: (...strs: string[]) => string;
|
|
33
|
-
translate: (...strs: string[]) => string;
|
|
34
|
-
getServiceLangStr?: () => string;
|
|
35
|
-
}>;
|
|
36
|
-
context: React.ContextType<typeof LocaleContext>;
|
|
37
|
-
state: {
|
|
38
|
-
loading: boolean;
|
|
39
|
-
dtmplConfig: any;
|
|
40
|
-
snapshotOpen: boolean;
|
|
41
|
-
premisesTitle: string;
|
|
42
|
-
layout: {
|
|
43
|
-
labelCol: {
|
|
44
|
-
span: number;
|
|
45
|
-
};
|
|
46
|
-
wrapperCol: {
|
|
47
|
-
span: number;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
refreshCode: any;
|
|
51
|
-
actionDtmplData: any;
|
|
52
|
-
};
|
|
53
|
-
componentDidMount(): Promise<void>;
|
|
54
|
-
doRefresh: () => Promise<void>;
|
|
55
|
-
goEdit: () => void;
|
|
56
|
-
showSnapshot: () => void;
|
|
57
|
-
onSnapshotClose: () => void;
|
|
58
|
-
toSnapshot: () => void;
|
|
59
|
-
onSubmit: (values: any) => Promise<void>;
|
|
60
|
-
doSubmit: (actionId?: number, codes?: string[], params?: object) => void;
|
|
61
|
-
render(): React.JSX.Element;
|
|
62
|
-
}
|
|
63
|
-
export default ActDtmplView;
|
|
64
|
-
//# sourceMappingURL=act-dtmpl-view.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AAC1B,OAAO,EAAiC,YAAY,EAAmB,MAAM,MAAM,CAAC;AACpF,OAAO,EAAC,cAAc,EAAE,WAAW,EAAE,SAAS,EAAC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