aldehyde 0.2.20 → 0.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/controls/action/index.d.ts +50 -50
- package/lib/controls/action/index.d.ts.map +1 -1
- package/lib/controls/action/index.js +187 -187
- package/lib/controls/action/index.js.map +1 -1
- package/lib/controls/action/utils.d.ts +8 -8
- package/lib/controls/action/utils.js +109 -109
- package/lib/controls/auto-complete/index.d.ts +6 -6
- package/lib/controls/auto-complete/index.js +51 -51
- package/lib/controls/cascader/index.d.ts +22 -22
- package/lib/controls/cascader/index.d.ts.map +1 -1
- package/lib/controls/cascader/index.js +107 -106
- package/lib/controls/cascader/index.js.map +1 -1
- package/lib/controls/chemstruc/graph.d.ts +28 -28
- package/lib/controls/chemstruc/graph.d.ts.map +1 -1
- package/lib/controls/chemstruc/graph.js +120 -119
- package/lib/controls/chemstruc/graph.js.map +1 -1
- package/lib/controls/code-editor/sql-code-editor.d.ts +14 -14
- package/lib/controls/code-editor/sql-code-editor.js +52 -51
- package/lib/controls/code-editor/sql-code-editor.js.map +1 -1
- package/lib/controls/collapse-card/index.d.ts +19 -19
- package/lib/controls/collapse-card/index.d.ts.map +1 -1
- package/lib/controls/collapse-card/index.js +62 -62
- package/lib/controls/color-picker/index.d.ts +18 -18
- package/lib/controls/color-picker/index.d.ts.map +1 -1
- package/lib/controls/color-picker/index.js +59 -59
- package/lib/controls/counting-tag/index.d.ts +17 -17
- package/lib/controls/counting-tag/index.js +31 -30
- package/lib/controls/counting-tag/index.js.map +1 -1
- package/lib/controls/cquery/cquick-button.d.ts +23 -23
- package/lib/controls/cquery/cquick-button.d.ts.map +1 -1
- package/lib/controls/cquery/cquick-button.js +72 -72
- package/lib/controls/cquery/cquick-button.js.map +1 -1
- package/lib/controls/date-picker/index.d.ts +6 -6
- package/lib/controls/date-picker/index.js +83 -83
- package/lib/controls/entity-select/entity-select.d.ts +73 -73
- package/lib/controls/entity-select/entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/entity-select.js +427 -426
- package/lib/controls/entity-select/entity-select.js.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.d.ts +24 -24
- package/lib/controls/entity-select/lab-tree-select.d.ts.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.js +121 -120
- package/lib/controls/entity-select/lab-tree-select.js.map +1 -1
- package/lib/controls/entity-select/popover-entity-select.d.ts +19 -19
- package/lib/controls/entity-select/popover-entity-select.js +92 -91
- package/lib/controls/entity-select/popover-entity-select.js.map +1 -1
- package/lib/controls/entry-control.d.ts +12 -12
- package/lib/controls/entry-control.js +202 -202
- package/lib/controls/enum-badge/index.d.ts +6 -6
- package/lib/controls/enum-badge/index.js +13 -13
- package/lib/controls/enum-tag/index.d.ts +6 -6
- package/lib/controls/enum-tag/index.js +23 -23
- package/lib/controls/file-view/drawer-file-view.d.ts +21 -21
- package/lib/controls/file-view/drawer-file-view.d.ts.map +1 -1
- package/lib/controls/file-view/drawer-file-view.js +56 -55
- package/lib/controls/file-view/drawer-file-view.js.map +1 -1
- package/lib/controls/file-view/index.d.ts +27 -27
- package/lib/controls/file-view/index.d.ts.map +1 -1
- package/lib/controls/file-view/index.js +135 -134
- package/lib/controls/file-view/index.js.map +1 -1
- package/lib/controls/html-editor/draft.d.ts +21 -21
- package/lib/controls/html-editor/draft.d.ts.map +1 -1
- package/lib/controls/html-editor/draft.js +121 -121
- package/lib/controls/html-editor/draft.js.map +1 -1
- package/lib/controls/html-editor/tinymce.d.ts +12 -7
- package/lib/controls/html-editor/tinymce.d.ts.map +1 -1
- package/lib/controls/html-editor/tinymce.js +44 -43
- package/lib/controls/html-editor/tinymce.js.map +1 -1
- package/lib/controls/input-number/index.d.ts +6 -6
- package/lib/controls/input-number/index.js +68 -68
- package/lib/controls/input-range/index.d.ts +6 -6
- package/lib/controls/input-range/index.js +27 -27
- package/lib/controls/password-setter/index.d.ts +8 -7
- package/lib/controls/password-setter/index.d.ts.map +1 -1
- package/lib/controls/password-setter/index.js +50 -50
- package/lib/controls/progress/index.d.ts +6 -6
- package/lib/controls/progress/index.js +44 -44
- package/lib/controls/relation-existion/index.d.ts +19 -19
- package/lib/controls/relation-existion/index.d.ts.map +1 -1
- package/lib/controls/relation-existion/index.js +74 -74
- package/lib/controls/rfield/index.d.ts +28 -28
- package/lib/controls/rfield/index.d.ts.map +1 -1
- package/lib/controls/rfield/index.js +130 -130
- package/lib/controls/signature/index.d.ts +30 -30
- package/lib/controls/signature/index.d.ts.map +1 -1
- package/lib/controls/signature/index.js +129 -128
- package/lib/controls/signature/index.js.map +1 -1
- package/lib/controls/steps/index.d.ts +6 -6
- package/lib/controls/steps/index.js +41 -41
- package/lib/controls/text/ellipsis-text.d.ts +21 -21
- package/lib/controls/text/ellipsis-text.js +46 -45
- package/lib/controls/text/ellipsis-text.js.map +1 -1
- package/lib/controls/upload/index.d.ts +14 -14
- package/lib/controls/upload/index.js +99 -99
- package/lib/controls/view-control.d.ts +9 -9
- package/lib/controls/view-control.js +174 -174
- package/lib/custom-page/custom-page-router.d.ts +7 -22
- package/lib/custom-page/custom-page-router.d.ts.map +1 -1
- package/lib/custom-page/custom-page-router.js +66 -64
- package/lib/custom-page/custom-page-router.js.map +1 -1
- package/lib/custom-page/def-custom-page.d.ts +6 -5
- package/lib/custom-page/def-custom-page.d.ts.map +1 -1
- package/lib/custom-page/def-custom-page.js +13 -13
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts +42 -42
- package/lib/custom-page/dtmpl-custom-edit-modal-page.js +35 -34
- package/lib/custom-page/dtmpl-custom-edit-modal-page.js.map +1 -1
- package/lib/detail/button/cquery-button-bar.d.ts +15 -15
- package/lib/detail/button/cquery-button-bar.js +74 -74
- package/lib/detail/button/submit-button-bar.d.ts +18 -18
- package/lib/detail/button/submit-button-bar.d.ts.map +1 -1
- package/lib/detail/button/submit-button-bar.js +103 -104
- package/lib/detail/button/submit-button-bar.js.map +1 -1
- package/lib/detail/edit/dtmpl-edit.d.ts +47 -47
- package/lib/detail/edit/dtmpl-edit.d.ts.map +1 -1
- package/lib/detail/edit/dtmpl-edit.js +197 -196
- package/lib/detail/edit/dtmpl-edit.js.map +1 -1
- package/lib/detail/edit/fields-edit-card.d.ts +38 -38
- package/lib/detail/edit/fields-edit-card.js +64 -63
- package/lib/detail/edit/fields-edit-card.js.map +1 -1
- package/lib/detail/edit/modal-row-edit.d.ts +30 -30
- package/lib/detail/edit/modal-row-edit.js +56 -55
- package/lib/detail/edit/modal-row-edit.js.map +1 -1
- package/lib/detail/edit/post-result/index.d.ts +16 -16
- package/lib/detail/edit/post-result/index.js +27 -27
- package/lib/detail/edit/row-edit-card.d.ts +41 -41
- package/lib/detail/edit/row-edit-card.d.ts.map +1 -1
- package/lib/detail/edit/row-edit-card.js +84 -83
- package/lib/detail/edit/row-edit-card.js.map +1 -1
- package/lib/detail/edit/row-editor.d.ts +32 -32
- package/lib/detail/edit/row-editor.d.ts.map +1 -1
- package/lib/detail/edit/row-editor.js +56 -55
- package/lib/detail/edit/row-editor.js.map +1 -1
- package/lib/detail/rightbar/index.d.ts +19 -19
- package/lib/detail/rightbar/index.js +51 -50
- package/lib/detail/rightbar/index.js.map +1 -1
- package/lib/detail/view/act-dtmpl-view.d.ts +43 -43
- package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/act-dtmpl-view.js +96 -96
- package/lib/detail/view/act-dtmpl-view.js.map +1 -1
- package/lib/detail/view/dtmpl-view.d.ts +41 -41
- package/lib/detail/view/dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/dtmpl-view.js +115 -115
- package/lib/detail/view/dtmpl-view.js.map +1 -1
- package/lib/detail/view/field-view-group.d.ts +16 -16
- package/lib/detail/view/field-view-group.js +50 -50
- package/lib/detail/view/modal-dtmpl-view.d.ts +27 -27
- package/lib/detail/view/modal-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.js +32 -31
- package/lib/detail/view/modal-dtmpl-view.js.map +1 -1
- package/lib/detail/view/snapshot-timeline.d.ts +31 -31
- package/lib/detail/view/snapshot-timeline.d.ts.map +1 -1
- package/lib/detail/view/snapshot-timeline.js +89 -89
- package/lib/detail/view/snapshot-timeline.js.map +1 -1
- package/lib/exportor/export-frame.d.ts +49 -49
- package/lib/exportor/export-frame.d.ts.map +1 -1
- package/lib/exportor/export-frame.js +142 -141
- package/lib/exportor/export-frame.js.map +1 -1
- package/lib/exportor/index.d.ts +15 -15
- package/lib/exportor/index.js +43 -43
- package/lib/form/criteria-form.d.ts +19 -19
- package/lib/form/criteria-form.js +147 -147
- package/lib/form/dtmpl-form.d.ts +44 -44
- package/lib/form/dtmpl-form.d.ts.map +1 -1
- package/lib/form/dtmpl-form.js +204 -203
- package/lib/form/dtmpl-form.js.map +1 -1
- package/lib/form/field-group-form.d.ts +20 -20
- package/lib/form/field-group-form.js +57 -57
- package/lib/form/fields-form.d.ts +19 -19
- package/lib/form/fields-form.js +31 -31
- package/lib/form/form-Item-group.d.ts +29 -29
- package/lib/form/form-Item-group.d.ts.map +1 -1
- package/lib/form/form-Item-group.js +108 -107
- package/lib/form/form-Item-group.js.map +1 -1
- package/lib/icon/index.d.ts +10 -10
- package/lib/icon/index.js +21 -21
- package/lib/import/excel-import.d.ts +47 -47
- package/lib/import/excel-import.d.ts.map +1 -1
- package/lib/import/excel-import.js +234 -234
- package/lib/import/template-builder.d.ts +28 -20
- package/lib/import/template-builder.d.ts.map +1 -1
- package/lib/import/template-builder.js +425 -425
- package/lib/index.d.ts +41 -40
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +79 -78
- package/lib/index.js.map +1 -1
- package/lib/layout/MainPage.d.ts +4 -33
- package/lib/layout/MainPage.d.ts.map +1 -1
- package/lib/layout/MainPage.js +204 -204
- package/lib/layout/MainPage.js.map +1 -1
- package/lib/layout/footer/index.d.ts +6 -5
- package/lib/layout/footer/index.d.ts.map +1 -1
- package/lib/layout/footer/index.js +10 -10
- package/lib/layout/header/index.d.ts +14 -14
- package/lib/layout/header/index.js +35 -35
- package/lib/layout/menu/block.d.ts +16 -8
- package/lib/layout/menu/block.d.ts.map +1 -1
- package/lib/layout/menu/block.js +46 -47
- package/lib/layout/menu/block.js.map +1 -1
- package/lib/layout/menu/l2menu-message-bar.d.ts +23 -23
- package/lib/layout/menu/l2menu-message-bar.d.ts.map +1 -1
- package/lib/layout/menu/l2menu-message-bar.js +96 -96
- package/lib/layout/menu/l2menu-quick-bar.d.ts +29 -29
- package/lib/layout/menu/l2menu-quick-bar.d.ts.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.js +93 -93
- package/lib/layout/menu/menu-2layers.d.ts +13 -2
- package/lib/layout/menu/menu-2layers.d.ts.map +1 -1
- package/lib/layout/menu/menu-2layers.js +69 -70
- package/lib/layout/menu/menu-2layers.js.map +1 -1
- package/lib/layout/menu/menu-render.d.ts +8 -8
- package/lib/layout/menu/menu-render.js +74 -74
- package/lib/layout/menu/reset-password.d.ts +24 -24
- package/lib/layout/menu/reset-password.d.ts.map +1 -1
- package/lib/layout/menu/reset-password.js +113 -113
- package/lib/layout/menu/user-bar.d.ts +22 -22
- package/lib/layout/menu/user-bar.js +99 -99
- package/lib/layout/menu/userinfo-bar.d.ts +16 -16
- package/lib/layout/menu/userinfo-bar.d.ts.map +1 -1
- package/lib/layout/menu/userinfo-bar.js +43 -43
- package/lib/layout/sidebar/index.d.ts +11 -11
- package/lib/layout/sidebar/index.js +17 -17
- package/lib/login/context-setter.d.ts +23 -23
- package/lib/login/context-setter.d.ts.map +1 -1
- package/lib/login/context-setter.js +97 -97
- package/lib/login/context-setter.js.map +1 -1
- package/lib/login/login-context.d.ts +21 -10
- package/lib/login/login-context.d.ts.map +1 -1
- package/lib/login/login-context.js +126 -126
- package/lib/login/login.d.ts +2 -10
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login/login.js +105 -101
- package/lib/login/login.js.map +1 -1
- package/lib/module/dtmpl-edit-card.d.ts +42 -42
- package/lib/module/dtmpl-edit-card.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-card.js +162 -162
- package/lib/module/dtmpl-edit-card.js.map +1 -1
- package/lib/module/dtmpl-edit-drawer.d.ts +16 -16
- package/lib/module/dtmpl-edit-drawer.js +7 -7
- package/lib/module/dtmpl-edit-modal.d.ts +17 -17
- package/lib/module/dtmpl-edit-modal.js +7 -7
- package/lib/module/dtmpl-edit-page.d.ts +59 -59
- package/lib/module/dtmpl-edit-page.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-page.js +191 -191
- package/lib/module/dtmpl-edit-page.js.map +1 -1
- package/lib/module/dtmpl-editor.d.ts +38 -38
- package/lib/module/dtmpl-editor.d.ts.map +1 -1
- package/lib/module/dtmpl-editor.js +146 -145
- package/lib/module/dtmpl-editor.js.map +1 -1
- package/lib/module/dtmpl-view-card.d.ts +18 -18
- package/lib/module/dtmpl-view-card.d.ts.map +1 -1
- package/lib/module/dtmpl-view-card.js +45 -45
- package/lib/module/dtmpl-view-drawer.d.ts +26 -26
- package/lib/module/dtmpl-view-drawer.js +39 -39
- package/lib/module/dtmpl-view-drawer.js.map +1 -1
- package/lib/module/dtmpl-view-modal.d.ts +27 -27
- package/lib/module/dtmpl-view-modal.js +35 -35
- package/lib/module/dtmpl-view-modal.js.map +1 -1
- package/lib/module/ltmpl-drawer.d.ts +28 -28
- package/lib/module/ltmpl-drawer.js +37 -36
- package/lib/module/ltmpl-drawer.js.map +1 -1
- package/lib/module/ltmpl-modal.d.ts +28 -28
- package/lib/module/ltmpl-modal.js +36 -35
- package/lib/module/ltmpl-modal.js.map +1 -1
- package/lib/module/ltmpl-table.d.ts +61 -56
- package/lib/module/ltmpl-table.d.ts.map +1 -1
- package/lib/module/ltmpl-table.js +217 -210
- package/lib/module/ltmpl-table.js.map +1 -1
- package/lib/routable/dtmpl-route.d.ts +9 -30
- package/lib/routable/dtmpl-route.d.ts.map +1 -1
- package/lib/routable/dtmpl-route.js +151 -154
- package/lib/routable/dtmpl-route.js.map +1 -1
- package/lib/routable/import-route.d.ts +5 -12
- package/lib/routable/import-route.d.ts.map +1 -1
- package/lib/routable/import-route.js +29 -28
- package/lib/routable/import-route.js.map +1 -1
- package/lib/routable/ltmpl-route.d.ts +10 -28
- package/lib/routable/ltmpl-route.d.ts.map +1 -1
- package/lib/routable/ltmpl-route.js +188 -169
- package/lib/routable/ltmpl-route.js.map +1 -1
- package/lib/routable/withroute.d.ts +3 -0
- package/lib/routable/withroute.d.ts.map +1 -0
- package/lib/routable/withroute.js +11 -0
- package/lib/routable/withroute.js.map +1 -0
- package/lib/table/act-table.d.ts +90 -89
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +529 -532
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/column/column-selector.d.ts +24 -24
- package/lib/table/column/column-selector.js +59 -59
- package/lib/table/column/column-selector.js.map +1 -1
- package/lib/table/l2-act-table.d.ts +27 -22
- package/lib/table/l2-act-table.d.ts.map +1 -1
- package/lib/table/l2-act-table.js +86 -79
- package/lib/table/l2-act-table.js.map +1 -1
- package/lib/table/modal-select-table.d.ts +46 -41
- package/lib/table/modal-select-table.d.ts.map +1 -1
- package/lib/table/modal-select-table.js +215 -207
- package/lib/table/modal-select-table.js.map +1 -1
- package/lib/table/pagination.d.ts +16 -16
- package/lib/table/pagination.d.ts.map +1 -1
- package/lib/table/pagination.js +39 -39
- package/lib/table/pagination.js.map +1 -1
- package/lib/table/query-table.d.ts +73 -64
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js +264 -256
- package/lib/table/query-table.js.map +1 -1
- package/lib/table/relation-table.d.ts +64 -64
- package/lib/table/relation-table.d.ts.map +1 -1
- package/lib/table/relation-table.js +425 -425
- package/lib/table/relation-table.js.map +1 -1
- package/lib/table/select-table.d.ts +45 -40
- package/lib/table/select-table.d.ts.map +1 -1
- package/lib/table/select-table.js +226 -220
- package/lib/table/select-table.js.map +1 -1
- package/lib/table/selected-rows-card.d.ts +15 -15
- package/lib/table/selected-rows-card.js +46 -46
- package/lib/table/stat/restat.d.ts +25 -25
- package/lib/table/stat/restat.d.ts.map +1 -1
- package/lib/table/stat/restat.js +60 -60
- package/lib/table/stat/restat.js.map +1 -1
- package/lib/table/table-util.d.ts +4 -4
- package/lib/table/table-util.js +25 -25
- package/lib/tmpl/control-type-supportor.d.ts +8 -8
- package/lib/tmpl/control-type-supportor.js +98 -98
- package/lib/tmpl/hc-data-source.d.ts +25 -25
- package/lib/tmpl/hc-data-source.js +331 -331
- package/lib/tmpl/hcservice-v3.d.ts +77 -77
- package/lib/tmpl/hcservice-v3.js +803 -803
- package/lib/tmpl/interface.d.ts +272 -269
- package/lib/tmpl/interface.d.ts.map +1 -1
- package/lib/tmpl/interface.js +3 -3
- package/lib/tmpl/interface.js.map +1 -1
- package/lib/tmpl/superagent.d.ts +9 -9
- package/lib/tmpl/superagent.js +142 -142
- package/lib/tmpl/tmpl-config-analysis.d.ts +6 -6
- package/lib/tmpl/tmpl-config-analysis.js +106 -106
- package/lib/units/EncryptUtils.d.ts +6 -6
- package/lib/units/EncryptUtils.js +30 -29
- package/lib/units/EncryptUtils.js.map +1 -1
- package/lib/units/index.d.ts +80 -81
- package/lib/units/index.d.ts.map +1 -1
- package/lib/units/index.js +747 -746
- package/lib/units/index.js.map +1 -1
- package/lib/units/storage.d.ts +2 -2
- package/lib/units/storage.js +1 -1
- package/lib/welcome/HCWelcome.d.ts +17 -13
- package/lib/welcome/HCWelcome.d.ts.map +1 -1
- package/lib/welcome/HCWelcome.js +199 -198
- package/lib/welcome/HCWelcome.js.map +1 -1
- package/lib/welcome/quick-entrance.d.ts +19 -19
- package/lib/welcome/quick-entrance.d.ts.map +1 -1
- package/lib/welcome/quick-entrance.js +78 -78
- package/lib/welcome/workbench.d.ts +19 -19
- package/lib/welcome/workbench.d.ts.map +1 -1
- package/lib/welcome/workbench.js +77 -77
- package/package.json +10 -10
- package/src/aldehyde/controls/action/index.tsx +2 -3
- package/src/aldehyde/controls/cascader/index.tsx +1 -1
- package/src/aldehyde/controls/chemstruc/graph.tsx +2 -2
- package/src/aldehyde/controls/collapse-card/index.tsx +1 -1
- package/src/aldehyde/controls/color-picker/index.tsx +1 -1
- package/src/aldehyde/controls/cquery/cquick-button.tsx +1 -1
- package/src/aldehyde/controls/entity-select/entity-select.tsx +12 -12
- package/src/aldehyde/controls/entity-select/lab-tree-select.tsx +1 -1
- package/src/aldehyde/controls/file-view/drawer-file-view.tsx +1 -1
- package/src/aldehyde/controls/file-view/index.tsx +1 -1
- package/src/aldehyde/controls/html-editor/draft.tsx +2 -2
- package/src/aldehyde/controls/relation-existion/index.tsx +1 -1
- package/src/aldehyde/controls/rfield/index.tsx +4 -4
- package/src/aldehyde/controls/signature/index.tsx +3 -3
- package/src/aldehyde/custom-page/custom-page-router.tsx +18 -15
- package/src/aldehyde/detail/button/submit-button-bar.tsx +1 -2
- package/src/aldehyde/detail/edit/dtmpl-edit.tsx +11 -11
- package/src/aldehyde/detail/edit/row-edit-card.tsx +1 -1
- package/src/aldehyde/detail/edit/row-editor.tsx +1 -1
- package/src/aldehyde/detail/view/act-dtmpl-view.tsx +6 -6
- package/src/aldehyde/detail/view/dtmpl-view.tsx +4 -4
- package/src/aldehyde/detail/view/modal-dtmpl-view.tsx +0 -2
- package/src/aldehyde/detail/view/snapshot-timeline.tsx +2 -2
- package/src/aldehyde/exportor/export-frame.tsx +11 -11
- package/src/aldehyde/form/dtmpl-form.tsx +3 -3
- package/src/aldehyde/form/form-Item-group.tsx +1 -1
- package/src/aldehyde/import/excel-import.tsx +11 -11
- package/src/aldehyde/index.tsx +4 -2
- package/src/aldehyde/layout/MainPage.tsx +17 -19
- package/src/aldehyde/layout/menu/block.tsx +3 -3
- package/src/aldehyde/layout/menu/l2menu-message-bar.tsx +3 -3
- package/src/aldehyde/layout/menu/l2menu-quick-bar.tsx +4 -4
- package/src/aldehyde/layout/menu/menu-2layers.tsx +3 -4
- package/src/aldehyde/layout/menu/menu-render.tsx +1 -1
- package/src/aldehyde/layout/menu/reset-password.tsx +3 -3
- package/src/aldehyde/layout/menu/userinfo-bar.tsx +1 -1
- package/src/aldehyde/login/context-setter.tsx +3 -3
- package/src/aldehyde/login/login.js +9 -2
- package/src/aldehyde/module/dtmpl-edit-card.tsx +8 -8
- package/src/aldehyde/module/dtmpl-edit-page.tsx +8 -8
- package/src/aldehyde/module/dtmpl-editor.tsx +5 -5
- package/src/aldehyde/module/dtmpl-view-card.tsx +1 -1
- package/src/aldehyde/module/ltmpl-table.tsx +22 -11
- package/src/aldehyde/routable/dtmpl-route.tsx +32 -34
- package/src/aldehyde/routable/import-route.tsx +4 -3
- package/src/aldehyde/routable/ltmpl-route.tsx +100 -75
- package/src/aldehyde/routable/withroute.tsx +22 -0
- package/src/aldehyde/table/act-table.tsx +31 -32
- package/src/aldehyde/table/l2-act-table.tsx +15 -8
- package/src/aldehyde/table/modal-select-table.tsx +22 -12
- package/src/aldehyde/table/pagination.tsx +3 -4
- package/src/aldehyde/table/query-table.tsx +63 -51
- package/src/aldehyde/table/relation-table.tsx +9 -9
- package/src/aldehyde/table/select-table.tsx +22 -10
- package/src/aldehyde/table/stat/restat.tsx +2 -2
- package/src/aldehyde/tmpl/interface.tsx +5 -1
- package/src/aldehyde/units/index.tsx +10 -10
- package/src/aldehyde/welcome/quick-entrance.tsx +1 -1
- package/src/aldehyde/welcome/workbench.tsx +1 -1
|
@@ -1,84 +1,85 @@
|
|
|
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, Tooltip } from 'antd';
|
|
12
|
-
import { CloseOutlined } from '@ant-design/icons';
|
|
13
|
-
import FieldGroupForm from '../../form/field-group-form';
|
|
14
|
-
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.formRef = React.createRef();
|
|
18
|
-
this.state = {
|
|
19
|
-
isAdded: false,
|
|
20
|
-
};
|
|
21
|
-
this.reset = () => {
|
|
22
|
-
// if (this.formRef.current) {
|
|
23
|
-
// this.formRef.current.resetFields();
|
|
24
|
-
// }
|
|
25
|
-
};
|
|
26
|
-
this.onOk = () => {
|
|
27
|
-
this.setState({ isAdded: false });
|
|
28
|
-
this.formRef.current.submit();
|
|
29
|
-
};
|
|
30
|
-
this.add = () => {
|
|
31
|
-
this.setState({ isAdded: true });
|
|
32
|
-
this.formRef.current.submit();
|
|
33
|
-
};
|
|
34
|
-
this.getTitle = () => {
|
|
35
|
-
const { fieldGroupConfig, dtmplData } = this.props;
|
|
36
|
-
let title = "";
|
|
37
|
-
title = fieldGroupConfig.title;
|
|
38
|
-
if (dtmplData) {
|
|
39
|
-
title = title + "【行编辑】";
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
title = title + "【新建一行】";
|
|
43
|
-
}
|
|
44
|
-
return title;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
componentDidMount() {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
componentDidUpdate() {
|
|
52
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
//this.reset();
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
render() {
|
|
57
|
-
const { height, onOk, fieldGroupConfig, dtmplData, onCancel, okButtonType, needConfirm, okDanger } = this.props;
|
|
58
|
-
const { isAdded } = this.state;
|
|
59
|
-
function okButton(onOk) {
|
|
60
|
-
return needConfirm ? okDanger ?
|
|
61
|
-
React.createElement(Popconfirm, { placement: "rightBottom", title: `确定要执行提交吗?`, onConfirm: onOk, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", okType: 'danger' },
|
|
62
|
-
React.createElement(Button, { type: okButtonType, danger: true, size: "small" }, "\u786E\u5B9A")) :
|
|
63
|
-
React.createElement(Popconfirm, { placement: "rightBottom", title: `确定要执行提交吗?`, onConfirm: onOk, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88" },
|
|
64
|
-
React.createElement(Button, { size: "small", type: okButtonType }, "\u786E\u5B9A")) :
|
|
65
|
-
React.createElement(Button, { type: okButtonType, size: "small", onClick: onOk }, "\u786E\u5B9A");
|
|
66
|
-
}
|
|
67
|
-
return React.createElement(Card, { style: { width: 1000 }, title: this.getTitle(), bodyStyle: { overflow: 'auto' }, extra: React.createElement(React.Fragment, null,
|
|
68
|
-
React.createElement(Space, { size: [8, 0] },
|
|
69
|
-
okButton(this.onOk),
|
|
70
|
-
dtmplData ? "" : React.createElement(Tooltip, { placement: "top", title: "\u53EF\u8FDE\u7EED\u6DFB\u52A0" },
|
|
71
|
-
React.createElement(Button, { type: 'primary', size: 'small', onClick: this.add }, "\u6DFB\u52A0")),
|
|
72
|
-
onCancel ? React.createElement(Button, { onClick: onCancel },
|
|
73
|
-
React.createElement(CloseOutlined, null)) : "")) },
|
|
74
|
-
React.createElement(FieldGroupForm, { fieldGroupConfig: fieldGroupConfig, formRef: this.formRef, onFinish: (value) => onOk(value, !isAdded), dtmplData: dtmplData }));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
RowEditCard.defaultProps = {
|
|
78
|
-
forceRender: true,
|
|
79
|
-
style: { maxWidth: 'calc(100vw - 60px)', maxHeight: 'calc(100vh - 50px)' },
|
|
80
|
-
needConfirm: false,
|
|
81
|
-
okButtonType: 'primary',
|
|
82
|
-
okDanger: false,
|
|
83
|
-
};
|
|
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, Tooltip } from 'antd';
|
|
12
|
+
import { CloseOutlined } from '@ant-design/icons';
|
|
13
|
+
import FieldGroupForm from '../../form/field-group-form';
|
|
14
|
+
class RowEditCard extends React.PureComponent {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.formRef = React.createRef();
|
|
18
|
+
this.state = {
|
|
19
|
+
isAdded: false,
|
|
20
|
+
};
|
|
21
|
+
this.reset = () => {
|
|
22
|
+
// if (this.formRef.current) {
|
|
23
|
+
// this.formRef.current.resetFields();
|
|
24
|
+
// }
|
|
25
|
+
};
|
|
26
|
+
this.onOk = () => {
|
|
27
|
+
this.setState({ isAdded: false });
|
|
28
|
+
this.formRef.current.submit();
|
|
29
|
+
};
|
|
30
|
+
this.add = () => {
|
|
31
|
+
this.setState({ isAdded: true });
|
|
32
|
+
this.formRef.current.submit();
|
|
33
|
+
};
|
|
34
|
+
this.getTitle = () => {
|
|
35
|
+
const { fieldGroupConfig, dtmplData } = this.props;
|
|
36
|
+
let title = "";
|
|
37
|
+
title = fieldGroupConfig.title;
|
|
38
|
+
if (dtmplData) {
|
|
39
|
+
title = title + "【行编辑】";
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
title = title + "【新建一行】";
|
|
43
|
+
}
|
|
44
|
+
return title;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
componentDidMount() {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
componentDidUpdate() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
//this.reset();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
const { height, onOk, fieldGroupConfig, dtmplData, onCancel, okButtonType, needConfirm, okDanger } = this.props;
|
|
58
|
+
const { isAdded } = this.state;
|
|
59
|
+
function okButton(onOk) {
|
|
60
|
+
return needConfirm ? okDanger ?
|
|
61
|
+
React.createElement(Popconfirm, { placement: "rightBottom", title: `确定要执行提交吗?`, onConfirm: onOk, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", okType: 'danger' },
|
|
62
|
+
React.createElement(Button, { type: okButtonType, danger: true, size: "small" }, "\u786E\u5B9A")) :
|
|
63
|
+
React.createElement(Popconfirm, { placement: "rightBottom", title: `确定要执行提交吗?`, onConfirm: onOk, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88" },
|
|
64
|
+
React.createElement(Button, { size: "small", type: okButtonType }, "\u786E\u5B9A")) :
|
|
65
|
+
React.createElement(Button, { type: okButtonType, size: "small", onClick: onOk }, "\u786E\u5B9A");
|
|
66
|
+
}
|
|
67
|
+
return React.createElement(Card, { style: { width: 1000 }, title: this.getTitle(), bodyStyle: { overflow: 'auto' }, extra: React.createElement(React.Fragment, null,
|
|
68
|
+
React.createElement(Space, { size: [8, 0] },
|
|
69
|
+
okButton(this.onOk),
|
|
70
|
+
dtmplData ? "" : React.createElement(Tooltip, { placement: "top", title: "\u53EF\u8FDE\u7EED\u6DFB\u52A0" },
|
|
71
|
+
React.createElement(Button, { type: 'primary', size: 'small', onClick: this.add }, "\u6DFB\u52A0")),
|
|
72
|
+
onCancel ? React.createElement(Button, { onClick: onCancel },
|
|
73
|
+
React.createElement(CloseOutlined, null)) : "")) },
|
|
74
|
+
React.createElement(FieldGroupForm, { fieldGroupConfig: fieldGroupConfig, formRef: this.formRef, onFinish: (value) => onOk(value, !isAdded), dtmplData: dtmplData }));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
RowEditCard.defaultProps = {
|
|
78
|
+
forceRender: true,
|
|
79
|
+
style: { maxWidth: 'calc(100vw - 60px)', maxHeight: 'calc(100vh - 50px)' },
|
|
80
|
+
needConfirm: false,
|
|
81
|
+
okButtonType: 'primary',
|
|
82
|
+
okDanger: false,
|
|
83
|
+
};
|
|
84
|
+
export default RowEditCard;
|
|
84
85
|
//# sourceMappingURL=row-edit-card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-edit-card.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/row-edit-card.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAE,IAAI,EAAgB,UAAU,EAAW,KAAK,EAAE,OAAO,EAAC,MAAM,MAAM,CAAA;AACpF,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAE/C,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAkBzD,
|
|
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,EAAC,MAAM,EAAE,IAAI,EAAgB,UAAU,EAAW,KAAK,EAAE,OAAO,EAAC,MAAM,MAAM,CAAA;AACpF,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAE/C,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAkBzD,MAAqB,WAAY,SAAQ,KAAK,CAAC,aAAiD;IAAhG;;QACI,YAAO,GAAG,KAAK,CAAC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Q,CAAC,CAAC,CAAC,oBAAC,MAAM,IAAC,OAAO,EAAE,QAAQ;wBAAE,oBAAC,aAAa,OAAE,CAAS,CAAC,CAAC,CAAC,EAAE,CACjE,CAAG;YAEX,oBAAC,cAAc,IAAC,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EACzD,QAAQ,EAAE,CAAC,KAAK,EAAC,EAAE,CAAA,IAAI,CAAC,KAAK,EAAC,CAAC,OAAO,CAAC,EACvC,SAAS,EAAE,SAAS,GAAI,CACrC,CAAA;IACX,CAAC;;AAlGM,wBAAY,GAAG;IAClB,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE,EAAC,QAAQ,EAAE,oBAAoB,EAAE,SAAS,EAAE,oBAAoB,EAAC;IACxE,WAAW,EAAE,KAAK;IAClB,YAAY,EAAE,SAAS;IACvB,QAAQ,EAAE,KAAK;CAClB,AANkB,CAMlB;eARgB,WAAW"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormInstance } from 'antd';
|
|
3
|
-
import { DtmplData, FieldGroupConfig } from "../../tmpl/interface";
|
|
4
|
-
import { RenderFunction } from "antd/lib/tooltip";
|
|
5
|
-
interface RowEditorProps {
|
|
6
|
-
buttonTitle?: string;
|
|
7
|
-
buttonIcon: React.ReactNode;
|
|
8
|
-
tooltipTitle?: React.ReactNode | RenderFunction;
|
|
9
|
-
fieldGroupConfig: FieldGroupConfig;
|
|
10
|
-
dtmplData?: DtmplData;
|
|
11
|
-
onOk: (value: DtmplData) => void;
|
|
12
|
-
buttonStyle?: object;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface RowEditorState {
|
|
16
|
-
popoverOpen
|
|
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(): JSX.Element;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormInstance } from 'antd';
|
|
3
|
+
import { DtmplData, FieldGroupConfig } from "../../tmpl/interface";
|
|
4
|
+
import { RenderFunction } from "antd/lib/tooltip";
|
|
5
|
+
interface RowEditorProps {
|
|
6
|
+
buttonTitle?: string;
|
|
7
|
+
buttonIcon: React.ReactNode;
|
|
8
|
+
tooltipTitle?: React.ReactNode | RenderFunction;
|
|
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(): JSX.Element;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
33
33
|
//# sourceMappingURL=row-editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;AACjE,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEhD,UAAU,cAAc;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,cAAc,CAAC;IAChD,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,EAAE,OAAO,CAAC;
|
|
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;AACjE,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEhD,UAAU,cAAc;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,cAAc,CAAC;IAChD,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;CAqBT"}
|
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import React from 'react';
|
|
11
|
-
import { Button, Popover, Tooltip } from 'antd';
|
|
12
|
-
import RowEditCard from './row-edit-card';
|
|
13
|
-
|
|
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 } = this.props;
|
|
43
|
-
return React.createElement(Popover, { destroyTooltipOnHide: true, placement: "leftBottom", open: popoverOpen, content: React.createElement(RowEditCard, { 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, type: 'primary', 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
|
-
};
|
|
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 } = this.props;
|
|
43
|
+
return React.createElement(Popover, { destroyTooltipOnHide: true, placement: "leftBottom", open: popoverOpen, content: React.createElement(RowEditCard, { 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, type: 'primary', 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;
|
|
56
57
|
//# sourceMappingURL=row-editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-editor.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/row-editor.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAgB,OAAO,EAAE,OAAO,EAAC,MAAM,MAAM,CAAA;AAG3D,OAAO,WAAW,MAAM,iBAAiB,CAAA;AAgBzC,
|
|
1
|
+
{"version":3,"file":"row-editor.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/edit/row-editor.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAgB,OAAO,EAAE,OAAO,EAAC,MAAM,MAAM,CAAA;AAG3D,OAAO,WAAW,MAAM,iBAAiB,CAAA;AAgBzC,MAAqB,SAAU,SAAQ,KAAK,CAAC,aAA6C;IAA1F;;QACI,YAAO,GAAG,KAAK,CAAC,SAAS,EAAgB,CAAC;QAK1C,UAAK,GAAG;YACJ,WAAW,EAAE,KAAK;SACrB,CAAA;QASD,kBAAkB;QAClB,kCAAkC;QAClC,8CAA8C;QAC9C,QAAQ;QACR,IAAI;QAEJ,SAAI,GAAG,CAAC,KAAK,EAAC,SAAe,IAAI,EAAE,EAAE;YACjC,IAAG,MAAM,EAAC;gBACN,IAAI,CAAC,QAAQ,CA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AAY,GAAG;IAClB,UAAU,EAAC,SAAS;IACpB,QAAQ,EAAC,KAAK;CACjB,AAHkB,CAGlB;eALgB,SAAS"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.css';
|
|
3
|
-
import { DtmplConfig, TmplBase } from "../../tmpl/interface";
|
|
4
|
-
interface RightBarProps {
|
|
5
|
-
parentId: string;
|
|
6
|
-
dtmplConfig: DtmplConfig;
|
|
7
|
-
positionRight?: number;
|
|
8
|
-
}
|
|
9
|
-
interface RightBarState {
|
|
10
|
-
}
|
|
11
|
-
export default class RightBar extends React.PureComponent<RightBarProps, RightBarState> {
|
|
12
|
-
static defaultProps: {
|
|
13
|
-
positionRight: number;
|
|
14
|
-
};
|
|
15
|
-
scrollToAnchor: (anchor: TmplBase) => void;
|
|
16
|
-
scroll: (e: any) => void;
|
|
17
|
-
render(): "" | JSX.Element;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
import { DtmplConfig, TmplBase } from "../../tmpl/interface";
|
|
4
|
+
interface RightBarProps {
|
|
5
|
+
parentId: string;
|
|
6
|
+
dtmplConfig: DtmplConfig;
|
|
7
|
+
positionRight?: number;
|
|
8
|
+
}
|
|
9
|
+
interface RightBarState {
|
|
10
|
+
}
|
|
11
|
+
export default class RightBar extends React.PureComponent<RightBarProps, RightBarState> {
|
|
12
|
+
static defaultProps: {
|
|
13
|
+
positionRight: number;
|
|
14
|
+
};
|
|
15
|
+
scrollToAnchor: (anchor: TmplBase) => void;
|
|
16
|
+
scroll: (e: any) => void;
|
|
17
|
+
render(): "" | JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,51 +1,52 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.css';
|
|
3
|
-
import { Affix } from "antd";
|
|
4
|
-
|
|
5
|
-
constructor() {
|
|
6
|
-
super(...arguments);
|
|
7
|
-
this.scrollToAnchor = (anchor) => {
|
|
8
|
-
if (anchor) {
|
|
9
|
-
let anchorElement = document.getElementById(this.props.parentId + anchor.id);
|
|
10
|
-
if (anchorElement) {
|
|
11
|
-
anchorElement.scrollIntoView({ behavior: "smooth", block: "end" });
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
this.scroll = (e) => {
|
|
16
|
-
e.preventDefault();
|
|
17
|
-
e.stopPropagation();
|
|
18
|
-
const list = document.getElementsByClassName("rightBar")[0];
|
|
19
|
-
if (list) {
|
|
20
|
-
const ul = list.getElementsByTagName("ul")[0];
|
|
21
|
-
ul.style.marginTop = "";
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
const { dtmplConfig, positionRight } = this.props;
|
|
27
|
-
const cardList = [];
|
|
28
|
-
if (dtmplConfig) {
|
|
29
|
-
dtmplConfig.groups.forEach(g => {
|
|
30
|
-
cardList.push({
|
|
31
|
-
title: g.title,
|
|
32
|
-
id: g.id,
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
if (dtmplConfig && dtmplConfig.premises && dtmplConfig.premises.length > 0) {
|
|
37
|
-
cardList.push({
|
|
38
|
-
id: dtmplConfig.premises[0].id, title: '默认字段',
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
return (cardList && cardList.length > 3 ?
|
|
43
|
-
React.createElement(Affix, { style: { position: 'absolute', top: 60, right: positionRight, }, offsetTop: 80 },
|
|
44
|
-
React.createElement("div", { className: 'rightBar', onScroll: this.scroll },
|
|
45
|
-
React.createElement("ul", null, cardList ? cardList.map((item, index) => React.createElement("li", { onClick: () => this.scrollToAnchor(item), key: index }, item.title)) : ""))) : "");
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
RightBar.defaultProps = {
|
|
49
|
-
positionRight: 15,
|
|
50
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
import { Affix } from "antd";
|
|
4
|
+
class RightBar extends React.PureComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.scrollToAnchor = (anchor) => {
|
|
8
|
+
if (anchor) {
|
|
9
|
+
let anchorElement = document.getElementById(this.props.parentId + anchor.id);
|
|
10
|
+
if (anchorElement) {
|
|
11
|
+
anchorElement.scrollIntoView({ behavior: "smooth", block: "end" });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
this.scroll = (e) => {
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
e.stopPropagation();
|
|
18
|
+
const list = document.getElementsByClassName("rightBar")[0];
|
|
19
|
+
if (list) {
|
|
20
|
+
const ul = list.getElementsByTagName("ul")[0];
|
|
21
|
+
ul.style.marginTop = "";
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
const { dtmplConfig, positionRight } = this.props;
|
|
27
|
+
const cardList = [];
|
|
28
|
+
if (dtmplConfig) {
|
|
29
|
+
dtmplConfig.groups.forEach(g => {
|
|
30
|
+
cardList.push({
|
|
31
|
+
title: g.title,
|
|
32
|
+
id: g.id,
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
if (dtmplConfig && dtmplConfig.premises && dtmplConfig.premises.length > 0) {
|
|
37
|
+
cardList.push({
|
|
38
|
+
id: dtmplConfig.premises[0].id, title: '默认字段',
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
return (cardList && cardList.length > 3 ?
|
|
43
|
+
React.createElement(Affix, { style: { position: 'absolute', top: 60, right: positionRight, }, offsetTop: 80 },
|
|
44
|
+
React.createElement("div", { className: 'rightBar', onScroll: this.scroll },
|
|
45
|
+
React.createElement("ul", null, cardList ? cardList.map((item, index) => React.createElement("li", { onClick: () => this.scrollToAnchor(item), key: index }, item.title)) : ""))) : "");
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
RightBar.defaultProps = {
|
|
49
|
+
positionRight: 15,
|
|
50
|
+
};
|
|
51
|
+
export default RightBar;
|
|
51
52
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/rightbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAC,KAAK,EAAS,MAAM,MAAM,CAAC;AAanC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/rightbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAC,KAAK,EAAS,MAAM,MAAM,CAAC;AAanC,MAAqB,QAAS,SAAQ,KAAK,CAAC,aAA2C;IAAvF;;QAKI,mBAAc,GAAG,CAAC,MAAgB,EAAE,EAAE;YAClC,IAAI,MAAM,EAAE;gBACR,IAAI,aAAa,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBAC3E,IAAI,aAAa,EAAE;oBACf,aAAa,CAAC,cAAc,CAAC,EAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,CAAC,CAAA;iBACnE;aACJ;QACL,CAAC,CAAA;QACD,WAAM,GAAG,CAAC,CAAC,EAAE,EAAE;YACX,CAAC,CAAC,cAAc,EAAE,CAAA;YAClB,CAAC,CAAC,eAAe,EAAE,CAAA;YACnB,MAAM,IAAI,GAAG,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAA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,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,IAAG,IAAI,CAAC,KAAK,CAAM,CAE9E,CAAC,CAAC,CAAC,EAAE,CAET,CACH,CACF,CAAA,CAAC,CAAA,EAAE,CACd,CAAA;IACL,CAAC;;AAxDM,qBAAY,GAAG;IAClB,aAAa,EAAC,EAAE;CACnB,AAFkB,CAElB;eAJgB,QAAQ"}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DtmplBaseProps, DtmplConfig } from "../../tmpl/interface";
|
|
3
|
-
import '../dtmpl.css';
|
|
4
|
-
export interface ActDtmplViewProps extends DtmplBaseProps {
|
|
5
|
-
versionId?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface ActDtmplViewStat {
|
|
8
|
-
loading
|
|
9
|
-
dtmplConfig
|
|
10
|
-
premisesTitle
|
|
11
|
-
snapshotOpen
|
|
12
|
-
layout
|
|
13
|
-
refreshCode
|
|
14
|
-
}
|
|
15
|
-
declare class ActDtmplView extends React.PureComponent<ActDtmplViewProps, ActDtmplViewStat> {
|
|
16
|
-
static defaultProps: {
|
|
17
|
-
showRightNav: boolean;
|
|
18
|
-
rightBarPositionRight: number;
|
|
19
|
-
};
|
|
20
|
-
state: {
|
|
21
|
-
loading: boolean;
|
|
22
|
-
dtmplConfig: any;
|
|
23
|
-
snapshotOpen: boolean;
|
|
24
|
-
premisesTitle: string;
|
|
25
|
-
layout: {
|
|
26
|
-
labelCol: {
|
|
27
|
-
span: number;
|
|
28
|
-
};
|
|
29
|
-
wrapperCol: {
|
|
30
|
-
span: number;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
refreshCode: any;
|
|
34
|
-
};
|
|
35
|
-
componentDidMount(): Promise<void>;
|
|
36
|
-
doRefresh: () => Promise<void>;
|
|
37
|
-
goEdit: () => void;
|
|
38
|
-
showSnapshot: () => void;
|
|
39
|
-
onSnapshotClose: () => void;
|
|
40
|
-
toSnapshot: () => void;
|
|
41
|
-
render(): JSX.Element;
|
|
42
|
-
}
|
|
43
|
-
export default ActDtmplView;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DtmplBaseProps, DtmplConfig } from "../../tmpl/interface";
|
|
3
|
+
import '../dtmpl.css';
|
|
4
|
+
export interface ActDtmplViewProps extends DtmplBaseProps {
|
|
5
|
+
versionId?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ActDtmplViewStat {
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
dtmplConfig?: DtmplConfig;
|
|
10
|
+
premisesTitle?: string;
|
|
11
|
+
snapshotOpen?: boolean;
|
|
12
|
+
layout?: object;
|
|
13
|
+
refreshCode?: string;
|
|
14
|
+
}
|
|
15
|
+
declare class ActDtmplView extends React.PureComponent<ActDtmplViewProps, ActDtmplViewStat> {
|
|
16
|
+
static defaultProps: {
|
|
17
|
+
showRightNav: boolean;
|
|
18
|
+
rightBarPositionRight: number;
|
|
19
|
+
};
|
|
20
|
+
state: {
|
|
21
|
+
loading: boolean;
|
|
22
|
+
dtmplConfig: any;
|
|
23
|
+
snapshotOpen: boolean;
|
|
24
|
+
premisesTitle: string;
|
|
25
|
+
layout: {
|
|
26
|
+
labelCol: {
|
|
27
|
+
span: number;
|
|
28
|
+
};
|
|
29
|
+
wrapperCol: {
|
|
30
|
+
span: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
refreshCode: any;
|
|
34
|
+
};
|
|
35
|
+
componentDidMount(): Promise<void>;
|
|
36
|
+
doRefresh: () => Promise<void>;
|
|
37
|
+
goEdit: () => void;
|
|
38
|
+
showSnapshot: () => void;
|
|
39
|
+
onSnapshotClose: () => void;
|
|
40
|
+
toSnapshot: () => void;
|
|
41
|
+
render(): JSX.Element;
|
|
42
|
+
}
|
|
43
|
+
export default ActDtmplView;
|
|
44
44
|
//# sourceMappingURL=act-dtmpl-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"act-dtmpl-view.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/view/act-dtmpl-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAC,cAAc,EAAE,WAAW,EAAY,MAAM,sBAAsB,CAAC;AAI5E,OAAO,cAAc,CAAC;AAKtB,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC7B,OAAO,EAAE,OAAO,CAAC;
|
|
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,CAAA;AAEzB,OAAO,EAAC,cAAc,EAAE,WAAW,EAAY,MAAM,sBAAsB,CAAC;AAI5E,OAAO,cAAc,CAAC;AAKtB,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,cAAM,YAAa,SAAQ,KAAK,CAAC,aAAa,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;IAC/E,MAAM,CAAC,YAAY;;;MAGlB;IAED,KAAK;;;;;;;;;;;;;;MAUJ;IAEK,iBAAiB;IAQvB,SAAS,sBAIP;IAEF,MAAM,aAGL;IAED,YAAY,aAOX;IAED,eAAe,aAOd;IAGD,UAAU,aAET;IAED,MAAM;CAgDT;AAGD,eAAe,YAAY,CAAC"}
|