iglooform 2.5.52 → 3.0.0-alpha
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/.dumi/overrides.less +70 -0
- package/.dumi/tmp/core/EmptyRoute.tsx +9 -0
- package/.dumi/tmp/core/defineApp.ts +17 -0
- package/.dumi/tmp/core/exportStaticRuntimePlugin.ts +11 -0
- package/.dumi/tmp/core/helmet.ts +10 -0
- package/.dumi/tmp/core/helmetContext.ts +4 -0
- package/.dumi/tmp/core/history.ts +66 -0
- package/.dumi/tmp/core/historyIntelli.ts +132 -0
- package/.dumi/tmp/core/plugin.ts +60 -0
- package/.dumi/tmp/core/pluginConfig.ts +292 -0
- package/.dumi/tmp/core/pluginConfigJoi.d.ts +54 -0
- package/.dumi/tmp/core/polyfill.ts +201 -0
- package/.dumi/tmp/core/route.tsx +50 -0
- package/.dumi/tmp/core/terminal.ts +37 -0
- package/.dumi/tmp/dumi/exports.ts +5 -0
- package/.dumi/tmp/dumi/locales/config.ts +87 -0
- package/.dumi/tmp/dumi/locales/runtime.tsx +39 -0
- package/.dumi/tmp/dumi/meta/atoms.ts +4 -0
- package/.dumi/tmp/dumi/meta/index.ts +255 -0
- package/.dumi/tmp/dumi/meta/runtime.ts +31 -0
- package/.dumi/tmp/dumi/meta/tabs.ts +5 -0
- package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +58 -0
- package/.dumi/tmp/dumi/theme/builtins/API.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Badge.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Container.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Previewer.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/SourceCode.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Table.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Tree.ts +4 -0
- package/.dumi/tmp/dumi/theme/layouts/DocLayout.ts +4 -0
- package/.dumi/tmp/dumi/theme/nprogress.css +59 -0
- package/.dumi/tmp/dumi/theme/slots/ColorSwitch.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Content.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/ContentTabs.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Features.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Footer.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Header.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/HeaderExtra.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Hero.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/HeroTitle.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/LangSwitch.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Logo.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Navbar.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/NavbarExtra.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/NotFound.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/PreviewerActions.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/RtlSwitch.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/SearchBar.ts +5 -0
- package/.dumi/tmp/dumi/theme/slots/SearchResult.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Sidebar.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/SocialIcon.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Toc.ts +4 -0
- package/.dumi/tmp/exports.ts +17 -0
- package/.dumi/tmp/plugin-antd/runtime.tsx +65 -0
- package/.dumi/tmp/plugin-antd/runtimeConfig.d.ts +6 -0
- package/.dumi/tmp/plugin-antd/types.d.ts +14 -0
- package/.dumi/tmp/plugin-html2sketch/index.ts +35 -0
- package/.dumi/tmp/testBrowser.tsx +90 -0
- package/.dumi/tmp/umi.ts +106 -0
- package/.dumirc.ts +27 -0
- package/es/admin-upload/float.d.ts +2 -2
- package/es/admin-upload/float.js +30 -42
- package/es/admin-upload/index.js +178 -242
- package/es/admin-upload/job-list.js +90 -105
- package/es/admin-upload/modal.d.ts +2 -2
- package/es/admin-upload/modal.js +31 -45
- package/es/admin-upload/style/index.js +1 -1
- package/es/admin-upload/style/index.less +6 -6
- package/es/alert-message/index.js +23 -36
- package/es/alert-message/style/index.js +1 -1
- package/es/alert-message/style/index.less +1 -1
- package/es/amount/index.js +17 -25
- package/es/amount/style/index.d.ts +0 -1
- package/es/amount/style/index.js +0 -1
- package/es/back-top/index.js +18 -32
- package/es/back-top/style/index.js +1 -1
- package/es/back-top/style/index.less +36 -25
- package/es/button/index.js +57 -88
- package/es/button/style/index.js +1 -1
- package/es/button/style/index.less +159 -109
- package/es/card-detail/card-group.d.ts +2 -2
- package/es/card-detail/card-group.js +14 -22
- package/es/card-detail/card-item.d.ts +2 -2
- package/es/card-detail/card-item.js +12 -23
- package/es/card-detail/card-page.js +18 -24
- package/es/card-detail/card.js +21 -32
- package/es/card-detail/index.js +4 -4
- package/es/card-detail/style/index.js +1 -1
- package/es/card-detail/style/index.less +4 -4
- package/es/card-detail/utils.d.ts +2 -2
- package/es/card-detail/utils.js +15 -21
- package/es/checkbox/index.d.ts +3 -2
- package/es/checkbox/index.js +73 -96
- package/es/checkbox/style/index.js +1 -1
- package/es/checkbox/style/index.less +42 -20
- package/es/claim-list/index.d.ts +1 -1
- package/es/claim-list/index.js +83 -129
- package/es/claim-list/style/index.js +1 -1
- package/es/claim-list/style/index.less +14 -8
- package/es/confirmation/index.js +29 -47
- package/es/confirmation/style/index.d.ts +0 -1
- package/es/confirmation/style/index.js +0 -1
- package/es/currency-context/style/index.d.ts +0 -1
- package/es/currency-context/style/index.js +0 -1
- package/es/date-picker/buddhist.js +31 -46
- package/es/date-picker/index.d.ts +2 -2
- package/es/date-picker/index.js +89 -118
- package/es/date-picker/style/index.js +1 -1
- package/es/date-picker/style/index.less +43 -22
- package/es/declaration/index.js +21 -34
- package/es/declaration/style/index.js +1 -1
- package/es/declaration/style/index.less +3 -3
- package/es/detail-panel/index.d.ts +2 -2
- package/es/detail-panel/index.js +48 -67
- package/es/detail-panel/style/index.js +1 -1
- package/es/detail-panel/style/index.less +3 -3
- package/es/documents/index.js +55 -73
- package/es/documents/style/index.js +1 -1
- package/es/filter/checkBox.d.ts +1 -1
- package/es/filter/checkBox.js +43 -64
- package/es/filter/customize.d.ts +1 -1
- package/es/filter/customize.js +8 -10
- package/es/filter/index.d.ts +1 -1
- package/es/filter/index.js +261 -359
- package/es/filter/radioBox.d.ts +1 -1
- package/es/filter/radioBox.js +26 -35
- package/es/filter/rangePicker.d.ts +1 -1
- package/es/filter/rangePicker.js +64 -83
- package/es/filter/style/index.js +1 -1
- package/es/filter/style/index.less +11 -11
- package/es/form/addable-section/index.js +71 -110
- package/es/form/addable-section/style/index.js +1 -1
- package/es/form/divider/index.js +11 -18
- package/es/form/divider/style/index.js +1 -1
- package/es/form/element/index.js +81 -140
- package/es/form/element/style/index.js +1 -1
- package/es/form/element/style/index.less +5 -5
- package/es/form/elements.js +15 -18
- package/es/form/hstep/index.js +53 -77
- package/es/form/hstep/style/index.js +1 -1
- package/es/form/hstep/style/index.less +2 -2
- package/es/form/hsteps/index.js +187 -245
- package/es/form/hsteps/style/index.js +1 -1
- package/es/form/index.js +133 -194
- package/es/form/login/index.js +24 -35
- package/es/form/login/style/index.js +1 -1
- package/es/form/login/style/index.less +1 -1
- package/es/form/page/index.js +42 -60
- package/es/form/page/style/index.js +1 -1
- package/es/form/pages/index.js +102 -139
- package/es/form/pages/style/index.js +1 -1
- package/es/form/render/index.js +12 -17
- package/es/form/render/style/index.js +1 -1
- package/es/form/section/index.js +58 -81
- package/es/form/section/style/index.js +1 -1
- package/es/form/step/index.js +57 -84
- package/es/form/step/style/index.js +1 -1
- package/es/form/step/style/index.less +3 -3
- package/es/form/steps/index.js +129 -174
- package/es/form/steps/style/index.js +1 -1
- package/es/form/style/index.js +1 -1
- package/es/form/style/index.less +1 -1
- package/es/form-context.d.ts +1 -1
- package/es/form-step-context.d.ts +1 -1
- package/es/free-form/addable-section/index.js +79 -137
- package/es/free-form/addable-section/style/index.js +1 -1
- package/es/free-form/element/index.js +63 -115
- package/es/free-form/element/style/index.js +1 -1
- package/es/free-form/element/style/index.less +4 -4
- package/es/free-form/index.d.ts +2 -2
- package/es/free-form/index.js +107 -157
- package/es/free-form/page/index.js +106 -144
- package/es/free-form/page/style/index.js +1 -1
- package/es/free-form/pages/index.js +17 -36
- package/es/free-form/pages/style/index.js +1 -1
- package/es/free-form/section/index.js +49 -87
- package/es/free-form/section/style/index.js +1 -1
- package/es/free-form/step/index.js +141 -197
- package/es/free-form/step/style/index.js +1 -1
- package/es/free-form/step/style/index.less +3 -3
- package/es/free-form/steps/index.d.ts +2 -2
- package/es/free-form/steps/index.js +37 -60
- package/es/free-form/steps/style/index.js +1 -1
- package/es/free-form/style/index.js +1 -1
- package/es/free-form/style/index.less +1 -1
- package/es/global-message/index.d.ts +1 -1
- package/es/global-message/index.js +23 -35
- package/es/global-message/style/index.js +1 -1
- package/es/global-message/style/index.less +4 -0
- package/es/home-menu/index.d.ts +1 -1
- package/es/home-menu/index.js +46 -63
- package/es/home-menu/style/index.js +1 -1
- package/es/home-menu/style/index.less +12 -7
- package/es/index.js +44 -44
- package/es/input/amount.js +28 -44
- package/es/input/credit-card.js +40 -78
- package/es/input/email.js +13 -16
- package/es/input/expiry-date.js +59 -96
- package/es/input/index.js +12 -12
- package/es/input/input-date.js +48 -88
- package/es/input/input-id.js +18 -31
- package/es/input/input-number.js +19 -35
- package/es/input/input.js +17 -27
- package/es/input/otp.d.ts +1 -1
- package/es/input/otp.js +51 -79
- package/es/input/password.js +15 -19
- package/es/input/phone-number.js +31 -50
- package/es/input/style/index.js +1 -1
- package/es/input/style/index.less +68 -70
- package/es/input/text-area.js +31 -55
- package/es/layout/defaultFooter.js +38 -43
- package/es/layout/defaultHeader.js +11 -16
- package/es/layout/footer.js +79 -85
- package/es/layout/header.js +61 -94
- package/es/layout/index.d.ts +2 -3
- package/es/layout/index.js +32 -48
- package/es/layout/style/index.js +1 -1
- package/es/layout/style/index.less +2 -2
- package/es/locale/en-US.js +1 -2
- package/es/locale/format-message.js +2 -6
- package/es/locale/formatted-message.js +2 -3
- package/es/locale/id-ID.js +1 -2
- package/es/locale/index.js +4 -4
- package/es/locale/locale-context.js +2 -4
- package/es/locale/locale-provider.d.ts +2 -1
- package/es/locale/locale-provider.js +20 -28
- package/es/locale/ms-MY.js +1 -2
- package/es/locale/th-TH.js +1 -2
- package/es/locale/vi-VN.js +1 -2
- package/es/locale/zh-CN.js +1 -2
- package/es/locale/zh-TW.js +1 -2
- package/es/login-page/index.d.ts +2 -2
- package/es/login-page/index.js +24 -29
- package/es/login-page/style/index.js +1 -1
- package/es/media/index.js +59 -104
- package/es/media/media.js +27 -45
- package/es/media/preview.js +103 -149
- package/es/media/style/index.js +1 -1
- package/es/media/style/index.less +6 -6
- package/es/mobile-insurer-detail/index.d.ts +1 -1
- package/es/mobile-insurer-detail/index.js +52 -59
- package/es/mobile-insurer-detail/style/index.js +1 -1
- package/es/mobile-insurer-list/index.d.ts +1 -1
- package/es/mobile-insurer-list/index.js +34 -37
- package/es/mobile-insurer-list/style/index.js +1 -1
- package/es/modal/index.d.ts +2 -2
- package/es/modal/index.js +136 -154
- package/es/modal/style/index.js +1 -1
- package/es/modal/style/index.less +59 -51
- package/es/platform/index.js +2 -2
- package/es/platform/platform-card/index.js +18 -29
- package/es/platform/platform-card/style/index.js +1 -1
- package/es/platform/switch-platform/index.js +29 -53
- package/es/platform/switch-platform/style/index.js +1 -1
- package/es/platform/switch-platform/style/index.less +1 -1
- package/es/policy-list/index.d.ts +1 -1
- package/es/policy-list/index.js +21 -30
- package/es/policy-list/policy-card.d.ts +1 -1
- package/es/policy-list/policy-card.js +107 -142
- package/es/policy-list/style/index.js +1 -1
- package/es/policy-list/style/index.less +1 -0
- package/es/radio/index.d.ts +2 -1
- package/es/radio/index.js +65 -85
- package/es/radio/radio-group-with-other.d.ts +3 -2
- package/es/radio/radio-group-with-other.js +30 -55
- package/es/radio/style/index.js +1 -1
- package/es/radio/style/index.less +63 -45
- package/es/search-box/index.js +66 -98
- package/es/search-box/style/index.js +1 -1
- package/es/search-box/style/index.less +2 -2
- package/es/select/attached-select.d.ts +3 -3
- package/es/select/attached-select.js +67 -107
- package/es/select/index.js +3 -3
- package/es/select/select.d.ts +3 -3
- package/es/select/select.js +33 -50
- package/es/select/style/index.js +1 -1
- package/es/select/style/index.less +154 -112
- package/es/select/time-select.js +64 -108
- package/es/status-box/index.d.ts +2 -3
- package/es/status-box/index.js +14 -16
- package/es/status-box/style/index.js +1 -1
- package/es/status-box/style/index.less +2 -2
- package/es/table/index.js +119 -168
- package/es/table/style/index.js +1 -1
- package/es/table/style/index.less +137 -109
- package/es/tabs/index.d.ts +4 -3
- package/es/tabs/index.js +12 -16
- package/es/tabs/style/index.js +1 -1
- package/es/types.d.ts +1 -2
- package/es/types.js +2 -1
- package/es/typography/index.d.ts +2 -1
- package/es/typography/index.js +11 -17
- package/es/typography/style/index.js +1 -1
- package/es/typography/style/index.less +4 -0
- package/es/upload/index.js +253 -335
- package/es/upload/style/index.js +1 -1
- package/es/upload/style/index.less +8 -6
- package/es/upload-photo/index.js +321 -450
- package/es/upload-photo/media.js +16 -29
- package/es/upload-photo/style/index.js +1 -1
- package/es/upload-photo/style/index.less +4 -4
- package/es/upload-preview/index.js +63 -85
- package/es/upload-preview/media.js +42 -77
- package/es/upload-preview/style/index.js +1 -1
- package/es/upload-preview/style/index.less +1 -1
- package/es/utils/form-methods.js +1 -1
- package/es/utils/form-utils.d.ts +9 -8
- package/es/utils/form-utils.js +162 -260
- package/es/utils/option-utils.d.ts +3 -2
- package/es/utils/option-utils.js +106 -163
- package/es/utils/tools.js +0 -8
- package/lib/admin-upload/float.d.ts +2 -2
- package/lib/admin-upload/float.js +27 -46
- package/lib/admin-upload/index.js +171 -251
- package/lib/admin-upload/job-list.js +82 -109
- package/lib/admin-upload/modal.d.ts +2 -2
- package/lib/admin-upload/modal.js +27 -52
- package/lib/admin-upload/style/index.less +6 -6
- package/lib/alert-message/index.js +21 -43
- package/lib/alert-message/style/index.less +1 -1
- package/lib/amount/index.js +15 -31
- package/lib/amount/style/index.d.ts +0 -1
- package/lib/back-top/index.js +17 -39
- package/lib/back-top/style/index.less +36 -25
- package/lib/button/index.js +54 -101
- package/lib/button/style/index.less +159 -109
- package/lib/card-detail/card-group.d.ts +2 -2
- package/lib/card-detail/card-group.js +11 -29
- package/lib/card-detail/card-item.d.ts +2 -2
- package/lib/card-detail/card-item.js +9 -27
- package/lib/card-detail/card-page.js +14 -29
- package/lib/card-detail/card.js +17 -37
- package/lib/card-detail/index.js +0 -5
- package/lib/card-detail/style/index.less +4 -4
- package/lib/card-detail/utils.d.ts +2 -2
- package/lib/card-detail/utils.js +13 -28
- package/lib/checkbox/index.d.ts +3 -2
- package/lib/checkbox/index.js +64 -107
- package/lib/checkbox/style/index.less +42 -20
- package/lib/claim-list/index.d.ts +1 -1
- package/lib/claim-list/index.js +75 -143
- package/lib/claim-list/style/index.less +14 -8
- package/lib/confirmation/index.js +22 -50
- package/lib/confirmation/style/index.d.ts +0 -1
- package/lib/currency-context/index.js +0 -3
- package/lib/currency-context/style/index.d.ts +0 -1
- package/lib/date-picker/buddhist.js +34 -61
- package/lib/date-picker/index.d.ts +2 -2
- package/lib/date-picker/index.js +98 -145
- package/lib/date-picker/style/index.less +43 -22
- package/lib/declaration/index.js +17 -42
- package/lib/declaration/style/index.less +3 -3
- package/lib/detail-panel/index.d.ts +2 -2
- package/lib/detail-panel/index.js +44 -77
- package/lib/detail-panel/style/index.less +3 -3
- package/lib/documents/index.js +56 -78
- package/lib/filter/checkBox.d.ts +1 -1
- package/lib/filter/checkBox.js +40 -74
- package/lib/filter/customize.d.ts +1 -1
- package/lib/filter/customize.js +6 -14
- package/lib/filter/index.d.ts +1 -1
- package/lib/filter/index.js +258 -382
- package/lib/filter/radioBox.d.ts +1 -1
- package/lib/filter/radioBox.js +24 -45
- package/lib/filter/rangePicker.d.ts +1 -1
- package/lib/filter/rangePicker.js +64 -96
- package/lib/filter/style/index.less +11 -11
- package/lib/form/addable-section/index.js +65 -121
- package/lib/form/divider/index.js +9 -24
- package/lib/form/element/index.js +73 -156
- package/lib/form/element/style/index.less +5 -5
- package/lib/form/elements.js +1 -24
- package/lib/form/hstep/index.js +44 -87
- package/lib/form/hstep/style/index.less +2 -2
- package/lib/form/hsteps/index.js +177 -257
- package/lib/form/index.js +124 -201
- package/lib/form/login/index.js +18 -46
- package/lib/form/login/style/index.less +1 -1
- package/lib/form/page/index.js +35 -69
- package/lib/form/pages/index.js +94 -148
- package/lib/form/render/index.js +15 -21
- package/lib/form/section/index.js +52 -92
- package/lib/form/step/index.js +50 -96
- package/lib/form/step/style/index.less +3 -3
- package/lib/form/steps/index.js +125 -179
- package/lib/form/style/index.less +1 -1
- package/lib/form-context.d.ts +1 -1
- package/lib/form-context.js +0 -4
- package/lib/form-step-context.d.ts +1 -1
- package/lib/form-step-context.js +0 -4
- package/lib/free-form/addable-section/index.js +73 -148
- package/lib/free-form/element/index.js +58 -131
- package/lib/free-form/element/style/index.less +4 -4
- package/lib/free-form/index.d.ts +2 -2
- package/lib/free-form/index.js +104 -164
- package/lib/free-form/page/index.js +99 -150
- package/lib/free-form/pages/index.js +18 -39
- package/lib/free-form/section/index.js +46 -94
- package/lib/free-form/step/index.js +135 -209
- package/lib/free-form/step/style/index.less +3 -3
- package/lib/free-form/steps/index.d.ts +2 -2
- package/lib/free-form/steps/index.js +34 -66
- package/lib/free-form/style/index.less +1 -1
- package/lib/global-message/index.d.ts +1 -1
- package/lib/global-message/index.js +22 -40
- package/lib/global-message/style/index.less +4 -0
- package/lib/home-menu/index.d.ts +1 -1
- package/lib/home-menu/index.js +43 -74
- package/lib/home-menu/style/index.less +12 -7
- package/lib/index.js +0 -50
- package/lib/input/amount.js +25 -50
- package/lib/input/credit-card.js +37 -85
- package/lib/input/email.js +11 -20
- package/lib/input/expiry-date.js +54 -102
- package/lib/input/index.js +0 -14
- package/lib/input/input-date.js +46 -98
- package/lib/input/input-id.js +15 -35
- package/lib/input/input-number.js +16 -39
- package/lib/input/input.js +14 -33
- package/lib/input/otp.d.ts +1 -1
- package/lib/input/otp.js +47 -87
- package/lib/input/password.js +14 -25
- package/lib/input/phone-number.js +27 -56
- package/lib/input/style/index.less +68 -70
- package/lib/input/text-area.js +27 -61
- package/lib/layout/defaultFooter.js +33 -49
- package/lib/layout/defaultHeader.js +10 -21
- package/lib/layout/footer.js +74 -93
- package/lib/layout/header.js +56 -110
- package/lib/layout/index.d.ts +2 -3
- package/lib/layout/index.js +26 -52
- package/lib/layout/style/index.less +2 -2
- package/lib/locale/en-US.js +1 -3
- package/lib/locale/format-message.js +1 -7
- package/lib/locale/formatted-message.js +1 -6
- package/lib/locale/id-ID.js +1 -3
- package/lib/locale/index.js +0 -5
- package/lib/locale/locale-context.js +1 -7
- package/lib/locale/locale-provider.d.ts +2 -1
- package/lib/locale/locale-provider.js +18 -49
- package/lib/locale/ms-MY.js +1 -3
- package/lib/locale/th-TH.js +1 -3
- package/lib/locale/vi-VN.js +1 -3
- package/lib/locale/zh-CN.js +1 -3
- package/lib/locale/zh-TW.js +1 -3
- package/lib/login-page/index.d.ts +2 -2
- package/lib/login-page/index.js +22 -34
- package/lib/media/index.js +57 -110
- package/lib/media/media.js +28 -51
- package/lib/media/preview.js +99 -159
- package/lib/media/style/index.less +6 -6
- package/lib/mobile-insurer-detail/index.d.ts +1 -1
- package/lib/mobile-insurer-detail/index.js +46 -62
- package/lib/mobile-insurer-list/index.d.ts +1 -1
- package/lib/mobile-insurer-list/index.js +30 -42
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.js +130 -163
- package/lib/modal/style/index.less +59 -51
- package/lib/platform/index.js +0 -3
- package/lib/platform/platform-card/index.js +15 -34
- package/lib/platform/switch-platform/index.js +26 -64
- package/lib/platform/switch-platform/style/index.less +1 -1
- package/lib/policy-list/index.d.ts +1 -1
- package/lib/policy-list/index.js +18 -35
- package/lib/policy-list/policy-card.d.ts +1 -1
- package/lib/policy-list/policy-card.js +101 -152
- package/lib/policy-list/style/index.less +1 -0
- package/lib/radio/index.d.ts +2 -1
- package/lib/radio/index.js +58 -97
- package/lib/radio/radio-group-with-other.d.ts +3 -2
- package/lib/radio/radio-group-with-other.js +26 -58
- package/lib/radio/style/index.less +63 -45
- package/lib/search-box/index.js +57 -103
- package/lib/search-box/style/index.less +2 -2
- package/lib/select/attached-select.d.ts +3 -3
- package/lib/select/attached-select.js +59 -118
- package/lib/select/index.js +0 -5
- package/lib/select/select.d.ts +3 -3
- package/lib/select/select.js +29 -61
- package/lib/select/style/index.less +154 -112
- package/lib/select/time-select.js +58 -115
- package/lib/status-box/index.d.ts +2 -3
- package/lib/status-box/index.js +12 -19
- package/lib/status-box/style/index.less +2 -2
- package/lib/table/index.js +115 -196
- package/lib/table/style/index.less +137 -109
- package/lib/tabs/index.d.ts +4 -3
- package/lib/tabs/index.js +11 -23
- package/lib/types.d.ts +1 -2
- package/lib/types.js +8 -1
- package/lib/typography/index.d.ts +2 -1
- package/lib/typography/index.js +10 -20
- package/lib/typography/style/index.less +4 -0
- package/lib/upload/index.js +242 -344
- package/lib/upload/style/index.less +8 -6
- package/lib/upload-photo/index.js +309 -467
- package/lib/upload-photo/media.js +18 -32
- package/lib/upload-photo/style/index.less +4 -4
- package/lib/upload-preview/index.js +55 -90
- package/lib/upload-preview/media.js +36 -87
- package/lib/upload-preview/style/index.less +1 -1
- package/lib/utils/agent-detect.js +0 -1
- package/lib/utils/form-methods.js +1 -1
- package/lib/utils/form-utils.d.ts +9 -8
- package/lib/utils/form-utils.js +168 -288
- package/lib/utils/option-utils.d.ts +3 -2
- package/lib/utils/option-utils.js +105 -173
- package/lib/utils/tools.js +0 -11
- package/package.json +15 -18
- package/lib/global.less +0 -63
- /package/{es → .dumi}/global.less +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.markdown a {
|
|
2
|
+
color: @primary-color;
|
|
3
|
+
|
|
4
|
+
&:hover {
|
|
5
|
+
color: @purple-medium;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.dumi-default-footer a {
|
|
10
|
+
color: @primary-color;
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
color: @purple-medium;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.dumi-default-sidebar > dl > dd > a.active {
|
|
18
|
+
color: @primary-color;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.dumi-default-sidebar > dl > dd > a:hover {
|
|
22
|
+
color: @primary-color;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.dumi-default-navbar > li > a:hover {
|
|
26
|
+
color: @primary-color;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.dumi-default-search-bar-input:focus {
|
|
30
|
+
border-color: @primary-color;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.dumi-default-color-switch:hover svg {
|
|
34
|
+
fill: @primary-color;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.dumi-default-toc > li > a:hover {
|
|
38
|
+
color: @primary-color;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.dumi-default-toc > li > a.active {
|
|
42
|
+
color: @primary-color;
|
|
43
|
+
border-inline-start: 2px solid @primary-color;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.dumi-default-header-content {
|
|
47
|
+
padding: 0;
|
|
48
|
+
|
|
49
|
+
.dumi-default-header-left {
|
|
50
|
+
width: 216px;
|
|
51
|
+
|
|
52
|
+
.dumi-default-logo img {
|
|
53
|
+
margin-inline-end: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.dumi-default-header-right {
|
|
58
|
+
.dumi-default-navbar > li:not(:last-child) {
|
|
59
|
+
margin-inline-end: 24px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.dumi-default-color-switch {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
* {
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// This file is generated by Umi automatically
|
|
3
|
+
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Outlet, useOutletContext } from 'umi';
|
|
6
|
+
export default function EmptyRoute() {
|
|
7
|
+
const context = useOutletContext();
|
|
8
|
+
return <Outlet context={context} />;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// This file is generated by Umi automatically
|
|
3
|
+
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
+
import type { IRuntimeConfig as Plugin0 } from '/Users/leemin/Documents/code/iglooform/.dumi/tmp/plugin-antd/runtimeConfig.d'
|
|
5
|
+
interface IDefaultRuntimeConfig {
|
|
6
|
+
onRouteChange?: (props: { routes: any, clientRoutes: any, location: any, action: any, isFirst: boolean }) => void;
|
|
7
|
+
patchRoutes?: (props: { routes: any }) => void;
|
|
8
|
+
patchClientRoutes?: (props: { routes: any }) => void;
|
|
9
|
+
render?: (oldRender: () => void) => void;
|
|
10
|
+
rootContainer?: (lastRootContainer: JSX.Element, args?: any) => void;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
export type RuntimeConfig = IDefaultRuntimeConfig & Plugin0
|
|
14
|
+
|
|
15
|
+
export function defineApp(config: RuntimeConfig): RuntimeConfig {
|
|
16
|
+
return config;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// This file is generated by Umi automatically
|
|
3
|
+
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
+
export function modifyClientRenderOpts(memo: any) {
|
|
5
|
+
const { history, hydrate } = memo;
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
...memo,
|
|
9
|
+
hydrate: hydrate && ![].includes(history.location.pathname),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// This file is generated by Umi automatically
|
|
3
|
+
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { HelmetProvider } from '/Users/leemin/Documents/code/iglooform/node_modules/@umijs/renderer-react';
|
|
6
|
+
import { context } from './helmetContext';
|
|
7
|
+
|
|
8
|
+
export const innerProvider = (container) => {
|
|
9
|
+
return React.createElement(HelmetProvider, { context }, container);
|
|
10
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// This file is generated by Umi automatically
|
|
3
|
+
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
+
import { createHashHistory, createMemoryHistory, createBrowserHistory } from '/Users/leemin/Documents/code/iglooform/node_modules/@umijs/renderer-react';
|
|
5
|
+
import type { UmiHistory } from './historyIntelli';
|
|
6
|
+
|
|
7
|
+
let history: UmiHistory;
|
|
8
|
+
let basename: string = '/';
|
|
9
|
+
export function createHistory(opts: any) {
|
|
10
|
+
let h;
|
|
11
|
+
if (opts.type === 'hash') {
|
|
12
|
+
h = createHashHistory();
|
|
13
|
+
} else if (opts.type === 'memory') {
|
|
14
|
+
h = createMemoryHistory(opts);
|
|
15
|
+
} else {
|
|
16
|
+
h = createBrowserHistory();
|
|
17
|
+
}
|
|
18
|
+
if (opts.basename) {
|
|
19
|
+
basename = opts.basename;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
history = {
|
|
24
|
+
...h,
|
|
25
|
+
push(to, state) {
|
|
26
|
+
h.push(patchTo(to, h), state);
|
|
27
|
+
},
|
|
28
|
+
replace(to, state) {
|
|
29
|
+
h.replace(patchTo(to, h), state);
|
|
30
|
+
},
|
|
31
|
+
get location() {
|
|
32
|
+
return h.location;
|
|
33
|
+
},
|
|
34
|
+
get action() {
|
|
35
|
+
return h.action;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return h;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Patch `to` to support basename
|
|
43
|
+
// Refs:
|
|
44
|
+
// https://github.com/remix-run/history/blob/3e9dab4/packages/history/index.ts#L484
|
|
45
|
+
// https://github.com/remix-run/history/blob/dev/docs/api-reference.md#to
|
|
46
|
+
function patchTo(to: any, h: History) {
|
|
47
|
+
if (typeof to === 'string') {
|
|
48
|
+
return `${stripLastSlash(basename)}${to}`;
|
|
49
|
+
} else if (typeof to === 'object') {
|
|
50
|
+
|
|
51
|
+
const currentPathname = h.location.pathname;
|
|
52
|
+
|
|
53
|
+
return {
|
|
54
|
+
...to,
|
|
55
|
+
pathname: to.pathname? `${stripLastSlash(basename)}${to.pathname}` : currentPathname,
|
|
56
|
+
};
|
|
57
|
+
} else {
|
|
58
|
+
throw new Error(`Unexpected to: ${to}`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function stripLastSlash(path) {
|
|
63
|
+
return path.slice(-1) === '/' ? path.slice(0, -1) : path;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { history };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// This file is generated by Umi automatically
|
|
3
|
+
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
+
import { getRoutes } from './route'
|
|
5
|
+
import type { History } from '/Users/leemin/Documents/code/iglooform/node_modules/@umijs/renderer-react'
|
|
6
|
+
|
|
7
|
+
type Routes = Awaited<ReturnType<typeof getRoutes>>['routes']
|
|
8
|
+
type AllRoute = Routes[keyof Routes]
|
|
9
|
+
type IsRoot<T extends any> = 'parentId' extends keyof T ? false : true
|
|
10
|
+
|
|
11
|
+
// show `/` in not `layout / wrapper` only
|
|
12
|
+
type GetAllRouteWithoutLayout<Item extends AllRoute> = Item extends any
|
|
13
|
+
? 'isWrapper' extends keyof Item
|
|
14
|
+
? never
|
|
15
|
+
: 'isLayout' extends keyof Item
|
|
16
|
+
? never
|
|
17
|
+
: Item
|
|
18
|
+
: never
|
|
19
|
+
type AllRouteWithoutLayout = GetAllRouteWithoutLayout<AllRoute>
|
|
20
|
+
type IndexRoutePathname = '/' extends AllRouteWithoutLayout['path']
|
|
21
|
+
? '/'
|
|
22
|
+
: never
|
|
23
|
+
|
|
24
|
+
type GetChildrens<T extends any> = T extends any
|
|
25
|
+
? IsRoot<T> extends true
|
|
26
|
+
? never
|
|
27
|
+
: T
|
|
28
|
+
: never
|
|
29
|
+
type Childrens = GetChildrens<AllRoute>
|
|
30
|
+
type Root = Exclude<AllRoute, Childrens>
|
|
31
|
+
type AllIds = AllRoute['id']
|
|
32
|
+
|
|
33
|
+
type GetChildrensByParentId<
|
|
34
|
+
Id extends AllIds,
|
|
35
|
+
Item = AllRoute
|
|
36
|
+
> = Item extends any
|
|
37
|
+
? 'parentId' extends keyof Item
|
|
38
|
+
? Item['parentId'] extends Id
|
|
39
|
+
? Item
|
|
40
|
+
: never
|
|
41
|
+
: never
|
|
42
|
+
: never
|
|
43
|
+
|
|
44
|
+
type RouteObject<
|
|
45
|
+
Id extends AllIds,
|
|
46
|
+
Item = GetChildrensByParentId<Id>
|
|
47
|
+
> = IsNever<Item> extends true
|
|
48
|
+
? ''
|
|
49
|
+
: Item extends AllRoute
|
|
50
|
+
? {
|
|
51
|
+
[Key in Item['path'] as TrimSlash<Key>]: UnionMerge<
|
|
52
|
+
RouteObject<Item['id']>
|
|
53
|
+
>
|
|
54
|
+
}
|
|
55
|
+
: never
|
|
56
|
+
|
|
57
|
+
type GetRootRouteObject<Item extends Root> = Item extends Root
|
|
58
|
+
? {
|
|
59
|
+
[K in Item['path'] as TrimSlash<K>]: UnionMerge<RouteObject<Item['id']>>
|
|
60
|
+
}
|
|
61
|
+
: never
|
|
62
|
+
type MergedResult = UnionMerge<GetRootRouteObject<Root>>
|
|
63
|
+
|
|
64
|
+
// --- patch history types ---
|
|
65
|
+
|
|
66
|
+
type HistoryTo = Parameters<History['push']>['0']
|
|
67
|
+
type HistoryPath = Exclude<HistoryTo, string>
|
|
68
|
+
|
|
69
|
+
type UmiPathname = Path<MergedResult> | (string & {})
|
|
70
|
+
interface UmiPath extends HistoryPath {
|
|
71
|
+
pathname: UmiPathname
|
|
72
|
+
}
|
|
73
|
+
type UmiTo = UmiPathname | UmiPath
|
|
74
|
+
|
|
75
|
+
type UmiPush = (to: UmiTo, state?: any) => void
|
|
76
|
+
type UmiReplace = (to: UmiTo, state?: any) => void
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
export interface UmiHistory extends History {
|
|
80
|
+
push: UmiPush
|
|
81
|
+
replace: UmiReplace
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// --- type utils ---
|
|
85
|
+
type TrimLeftSlash<T extends string> = T extends `/${infer R}`
|
|
86
|
+
? TrimLeftSlash<R>
|
|
87
|
+
: T
|
|
88
|
+
type TrimRightSlash<T extends string> = T extends `${infer R}/`
|
|
89
|
+
? TrimRightSlash<R>
|
|
90
|
+
: T
|
|
91
|
+
type TrimSlash<T extends string> = TrimLeftSlash<TrimRightSlash<T>>
|
|
92
|
+
|
|
93
|
+
type IsNever<T> = [T] extends [never] ? true : false
|
|
94
|
+
type IsEqual<A, B> = (<G>() => G extends A ? 1 : 2) extends <G>() => G extends B
|
|
95
|
+
? 1
|
|
96
|
+
: 2
|
|
97
|
+
? true
|
|
98
|
+
: false
|
|
99
|
+
|
|
100
|
+
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
|
|
101
|
+
k: infer I
|
|
102
|
+
) => void
|
|
103
|
+
? I
|
|
104
|
+
: never
|
|
105
|
+
type UnionMerge<U> = UnionToIntersection<U> extends infer O
|
|
106
|
+
? { [K in keyof O]: O[K] }
|
|
107
|
+
: never
|
|
108
|
+
|
|
109
|
+
type ExcludeEmptyKey<T> = IsEqual<T, ''> extends true ? never : T
|
|
110
|
+
|
|
111
|
+
type PathConcat<
|
|
112
|
+
TKey extends string,
|
|
113
|
+
TValue,
|
|
114
|
+
N = TrimSlash<TKey>
|
|
115
|
+
> = TValue extends string
|
|
116
|
+
? ExcludeEmptyKey<N>
|
|
117
|
+
:
|
|
118
|
+
| ExcludeEmptyKey<N>
|
|
119
|
+
| `${N & string}${IsNever<ExcludeEmptyKey<N>> extends true
|
|
120
|
+
? ''
|
|
121
|
+
: '/'}${UnionPath<TValue>}`
|
|
122
|
+
|
|
123
|
+
type UnionPath<T> = {
|
|
124
|
+
[K in keyof T]-?: PathConcat<K & string, T[K]>
|
|
125
|
+
}[keyof T]
|
|
126
|
+
|
|
127
|
+
type MakeSureLeftSlash<T> = T extends any
|
|
128
|
+
? `/${TrimRightSlash<T & string>}`
|
|
129
|
+
: never
|
|
130
|
+
|
|
131
|
+
// exclude `/*`, because it always at the top of the IDE tip list
|
|
132
|
+
type Path<T, K = UnionPath<T>> = Exclude<MakeSureLeftSlash<K>, '/*'> | IndexRoutePathname
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// This file is generated by Umi automatically
|
|
3
|
+
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
+
import * as Plugin_0 from '@@/core/exportStaticRuntimePlugin.ts';
|
|
5
|
+
import * as Plugin_1 from '@@/core/helmet.ts';
|
|
6
|
+
import * as Plugin_2 from '@@/dumi/meta/runtime.ts';
|
|
7
|
+
import * as Plugin_3 from '@@/dumi/locales/runtime.tsx';
|
|
8
|
+
import * as Plugin_4 from '/Users/leemin/Documents/code/iglooform/.dumi/tmp/plugin-antd/runtime.tsx';
|
|
9
|
+
import { PluginManager } from 'umi';
|
|
10
|
+
|
|
11
|
+
function __defaultExport (obj) {
|
|
12
|
+
if (obj.default) {
|
|
13
|
+
return typeof obj.default === 'function' ? obj.default() : obj.default
|
|
14
|
+
}
|
|
15
|
+
return obj;
|
|
16
|
+
}
|
|
17
|
+
export function getPlugins() {
|
|
18
|
+
return [
|
|
19
|
+
{
|
|
20
|
+
apply: Plugin_0,
|
|
21
|
+
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/exportStaticRuntimePlugin.ts',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
apply: Plugin_1,
|
|
25
|
+
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/helmet.ts',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
apply: Plugin_2,
|
|
29
|
+
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/dumi/meta/runtime.ts',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
apply: Plugin_3,
|
|
33
|
+
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/dumi/locales/runtime.tsx',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
apply: Plugin_4,
|
|
37
|
+
path: process.env.NODE_ENV === 'production' ? void 0 : '/Users/leemin/Documents/code/iglooform/.dumi/tmp/plugin-antd/runtime.tsx',
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function getValidKeys() {
|
|
43
|
+
return ['patchRoutes','patchClientRoutes','modifyContextOpts','modifyClientRenderOpts','rootContainer','innerProvider','i18nProvider','accessProvider','dataflowProvider','outerProvider','render','onRouteChange','modifyCodeSandboxData','modifyStackBlitzData','antd',];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
let pluginManager = null;
|
|
47
|
+
|
|
48
|
+
export function createPluginManager() {
|
|
49
|
+
pluginManager = PluginManager.create({
|
|
50
|
+
plugins: getPlugins(),
|
|
51
|
+
validKeys: getValidKeys(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
return pluginManager;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function getPluginManager() {
|
|
59
|
+
return pluginManager;
|
|
60
|
+
}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// This file is generated by Umi automatically
|
|
3
|
+
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
+
import { IConfigFromPluginsJoi } from "./pluginConfigJoi.d";
|
|
5
|
+
|
|
6
|
+
interface IConfigTypes {
|
|
7
|
+
codeSplitting: {
|
|
8
|
+
jsStrategy: "bigVendors" | "depPerChunk" | "granularChunks";
|
|
9
|
+
jsStrategyOptions?: ({
|
|
10
|
+
|
|
11
|
+
} | undefined);
|
|
12
|
+
cssStrategy?: ("mergeAll" | undefined);
|
|
13
|
+
cssStrategyOptions?: ({
|
|
14
|
+
|
|
15
|
+
} | undefined);
|
|
16
|
+
};
|
|
17
|
+
title: string;
|
|
18
|
+
styles: Array<string | {
|
|
19
|
+
src?: (string | undefined);
|
|
20
|
+
} | {
|
|
21
|
+
content?: (string | undefined);
|
|
22
|
+
} | { [x: string]: any }>;
|
|
23
|
+
scripts: Array<string | {
|
|
24
|
+
src?: (string | undefined);
|
|
25
|
+
} | {
|
|
26
|
+
content?: (string | undefined);
|
|
27
|
+
} | { [x: string]: any }>;
|
|
28
|
+
routes: Array<{
|
|
29
|
+
component?: (string | undefined);
|
|
30
|
+
layout?: (false | undefined);
|
|
31
|
+
path?: (string | undefined);
|
|
32
|
+
redirect?: (string | undefined);
|
|
33
|
+
routes?: IConfigTypes['routes'];
|
|
34
|
+
wrappers?: (Array<string> | undefined);
|
|
35
|
+
} | { [x: string]: any }>;
|
|
36
|
+
reactRouter5Compat: boolean | {
|
|
37
|
+
|
|
38
|
+
};
|
|
39
|
+
presets: Array<string>;
|
|
40
|
+
plugins: Array<string>;
|
|
41
|
+
npmClient: "pnpm" | "tnpm" | "cnpm" | "yarn" | "npm";
|
|
42
|
+
mountElementId: string;
|
|
43
|
+
metas: Array<{
|
|
44
|
+
charset?: (string | undefined);
|
|
45
|
+
content?: (string | undefined);
|
|
46
|
+
"http-equiv"?: (string | undefined);
|
|
47
|
+
name?: (string | undefined);
|
|
48
|
+
} | { [x: string]: any }>;
|
|
49
|
+
links: Array<{
|
|
50
|
+
crossorigin?: (string | undefined);
|
|
51
|
+
href?: (string | undefined);
|
|
52
|
+
hreflang?: (string | undefined);
|
|
53
|
+
media?: (string | undefined);
|
|
54
|
+
referrerpolicy?: (string | undefined);
|
|
55
|
+
rel?: (string | undefined);
|
|
56
|
+
sizes?: (any | undefined);
|
|
57
|
+
title?: (any | undefined);
|
|
58
|
+
type?: (any | undefined);
|
|
59
|
+
} | { [x: string]: any }>;
|
|
60
|
+
historyWithQuery: {
|
|
61
|
+
|
|
62
|
+
};
|
|
63
|
+
history: {
|
|
64
|
+
type: "browser" | "hash" | "memory";
|
|
65
|
+
};
|
|
66
|
+
headScripts: Array<string | {
|
|
67
|
+
src?: (string | undefined);
|
|
68
|
+
} | {
|
|
69
|
+
content?: (string | undefined);
|
|
70
|
+
} | { [x: string]: any }>;
|
|
71
|
+
esbuildMinifyIIFE: boolean;
|
|
72
|
+
conventionRoutes: {
|
|
73
|
+
base?: (string | undefined);
|
|
74
|
+
exclude?: (Array<any> | undefined);
|
|
75
|
+
};
|
|
76
|
+
conventionLayout: boolean;
|
|
77
|
+
base: string;
|
|
78
|
+
analyze: {
|
|
79
|
+
|
|
80
|
+
};
|
|
81
|
+
writeToDisk: boolean;
|
|
82
|
+
theme: { [x: string]: any };
|
|
83
|
+
targets: { [x: string]: any };
|
|
84
|
+
svgr: { [x: string]: any };
|
|
85
|
+
svgo: { [x: string]: any } | boolean;
|
|
86
|
+
styleLoader: { [x: string]: any };
|
|
87
|
+
srcTranspilerOptions: {
|
|
88
|
+
esbuild?: ({ [x: string]: any } | undefined);
|
|
89
|
+
swc?: ({ [x: string]: any } | undefined);
|
|
90
|
+
};
|
|
91
|
+
srcTranspiler: "babel" | "esbuild" | "swc" | "none";
|
|
92
|
+
sassLoader: { [x: string]: any };
|
|
93
|
+
runtimePublicPath: {
|
|
94
|
+
|
|
95
|
+
};
|
|
96
|
+
purgeCSS: { [x: string]: any };
|
|
97
|
+
publicPath: string;
|
|
98
|
+
proxy: { [x: string]: any } | Array<any>;
|
|
99
|
+
postcssLoader: { [x: string]: any };
|
|
100
|
+
outputPath: string;
|
|
101
|
+
normalCSSLoaderModules: { [x: string]: any };
|
|
102
|
+
mfsu: {
|
|
103
|
+
cacheDirectory?: (string | undefined);
|
|
104
|
+
chainWebpack?: (((...args: any[]) => unknown) | undefined);
|
|
105
|
+
esbuild?: (boolean | undefined);
|
|
106
|
+
exclude?: (Array<string | any> | undefined);
|
|
107
|
+
include?: (Array<string> | undefined);
|
|
108
|
+
mfName?: (string | undefined);
|
|
109
|
+
remoteAliases?: (Array<string> | undefined);
|
|
110
|
+
remoteName?: (string | undefined);
|
|
111
|
+
runtimePublicPath?: (boolean | undefined);
|
|
112
|
+
shared?: ({ [x: string]: any } | undefined);
|
|
113
|
+
strategy?: ("eager" | "normal" | undefined);
|
|
114
|
+
} | boolean;
|
|
115
|
+
mdx: {
|
|
116
|
+
loader?: (string | undefined);
|
|
117
|
+
loaderOptions?: ({ [x: string]: any } | undefined);
|
|
118
|
+
};
|
|
119
|
+
manifest: {
|
|
120
|
+
basePath?: (string | undefined);
|
|
121
|
+
fileName?: (string | undefined);
|
|
122
|
+
};
|
|
123
|
+
lessLoader: { [x: string]: any };
|
|
124
|
+
jsMinifierOptions: { [x: string]: any };
|
|
125
|
+
jsMinifier: "esbuild" | "swc" | "terser" | "uglifyJs" | "none";
|
|
126
|
+
inlineLimit: number;
|
|
127
|
+
ignoreMomentLocale: boolean;
|
|
128
|
+
https: {
|
|
129
|
+
cert?: (string | undefined);
|
|
130
|
+
hosts?: (Array<string> | undefined);
|
|
131
|
+
http2?: (boolean | undefined);
|
|
132
|
+
key?: (string | undefined);
|
|
133
|
+
};
|
|
134
|
+
hash: boolean;
|
|
135
|
+
forkTSChecker: { [x: string]: any };
|
|
136
|
+
fastRefresh: boolean;
|
|
137
|
+
extraPostCSSPlugins: Array<any>;
|
|
138
|
+
extraBabelPresets: Array<string | Array<any>>;
|
|
139
|
+
extraBabelPlugins: Array<string | Array<any>>;
|
|
140
|
+
extraBabelIncludes: Array<string | any>;
|
|
141
|
+
externals: { [x: string]: any } | string | ((...args: any[]) => unknown);
|
|
142
|
+
esm: {
|
|
143
|
+
|
|
144
|
+
};
|
|
145
|
+
devtool: "cheap-source-map" | "cheap-module-source-map" | "eval" | "eval-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | "source-map" | "hidden-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "inline-source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | boolean;
|
|
146
|
+
depTranspiler: "babel" | "esbuild" | "swc" | "none";
|
|
147
|
+
define: { [x: string]: any };
|
|
148
|
+
deadCode: {
|
|
149
|
+
context?: (string | undefined);
|
|
150
|
+
detectUnusedExport?: (boolean | undefined);
|
|
151
|
+
detectUnusedFiles?: (boolean | undefined);
|
|
152
|
+
exclude?: (Array<string> | undefined);
|
|
153
|
+
failOnHint?: (boolean | undefined);
|
|
154
|
+
patterns?: (Array<string> | undefined);
|
|
155
|
+
};
|
|
156
|
+
cssMinifierOptions: { [x: string]: any };
|
|
157
|
+
cssMinifier: "cssnano" | "esbuild" | "parcelCSS" | "none";
|
|
158
|
+
cssLoaderModules: { [x: string]: any };
|
|
159
|
+
cssLoader: { [x: string]: any };
|
|
160
|
+
copy: Array<{
|
|
161
|
+
from: string;
|
|
162
|
+
to: string;
|
|
163
|
+
} | string>;
|
|
164
|
+
checkDepCssModules?: boolean;
|
|
165
|
+
cacheDirectoryPath: string;
|
|
166
|
+
babelLoaderCustomize: string;
|
|
167
|
+
autoprefixer: { [x: string]: any };
|
|
168
|
+
autoCSSModules: boolean;
|
|
169
|
+
alias: { [x: string]: any };
|
|
170
|
+
crossorigin: boolean | {
|
|
171
|
+
includes?: (Array<any> | undefined);
|
|
172
|
+
};
|
|
173
|
+
esmi: {
|
|
174
|
+
cdnOrigin: string;
|
|
175
|
+
shimUrl?: (string | undefined);
|
|
176
|
+
};
|
|
177
|
+
exportStatic: {
|
|
178
|
+
extraRoutePaths?: (((...args: any[]) => unknown) | Array<string> | undefined);
|
|
179
|
+
};
|
|
180
|
+
favicons: Array<string>;
|
|
181
|
+
helmet: boolean;
|
|
182
|
+
icons: {
|
|
183
|
+
autoInstall?: ({
|
|
184
|
+
|
|
185
|
+
} | undefined);
|
|
186
|
+
defaultComponentConfig?: ({
|
|
187
|
+
|
|
188
|
+
} | undefined);
|
|
189
|
+
alias?: ({
|
|
190
|
+
|
|
191
|
+
} | undefined);
|
|
192
|
+
include?: (Array<string> | undefined);
|
|
193
|
+
};
|
|
194
|
+
mock: {
|
|
195
|
+
exclude?: (Array<string> | undefined);
|
|
196
|
+
include?: (Array<string> | undefined);
|
|
197
|
+
};
|
|
198
|
+
mpa: {
|
|
199
|
+
template?: (string | undefined);
|
|
200
|
+
layout?: (string | undefined);
|
|
201
|
+
getConfigFromEntryFile?: (boolean | undefined);
|
|
202
|
+
entry?: ({
|
|
203
|
+
|
|
204
|
+
} | undefined);
|
|
205
|
+
};
|
|
206
|
+
phantomDependency: {
|
|
207
|
+
exclude?: (Array<string> | undefined);
|
|
208
|
+
};
|
|
209
|
+
polyfill: {
|
|
210
|
+
imports?: (Array<string> | undefined);
|
|
211
|
+
};
|
|
212
|
+
routePrefetch: {
|
|
213
|
+
|
|
214
|
+
};
|
|
215
|
+
terminal: {
|
|
216
|
+
|
|
217
|
+
};
|
|
218
|
+
tmpFiles: boolean;
|
|
219
|
+
clientLoader: {
|
|
220
|
+
|
|
221
|
+
};
|
|
222
|
+
routeProps: {
|
|
223
|
+
|
|
224
|
+
};
|
|
225
|
+
ssr: {
|
|
226
|
+
serverBuildPath?: (string | undefined);
|
|
227
|
+
platform?: (string | undefined);
|
|
228
|
+
builder?: ("esbuild" | "webpack" | undefined);
|
|
229
|
+
};
|
|
230
|
+
lowImport: {
|
|
231
|
+
libs?: (Array<any> | undefined);
|
|
232
|
+
css?: (string | undefined);
|
|
233
|
+
};
|
|
234
|
+
vite: {
|
|
235
|
+
|
|
236
|
+
};
|
|
237
|
+
apiRoute: {
|
|
238
|
+
platform?: (string | undefined);
|
|
239
|
+
};
|
|
240
|
+
monorepoRedirect: boolean | {
|
|
241
|
+
srcDir?: (Array<string> | undefined);
|
|
242
|
+
exclude?: (Array<any> | undefined);
|
|
243
|
+
peerDeps?: (boolean | undefined);
|
|
244
|
+
};
|
|
245
|
+
test: {
|
|
246
|
+
|
|
247
|
+
};
|
|
248
|
+
clickToComponent: {
|
|
249
|
+
/** 默认情况下,点击将默认编辑器为vscode, 你可以设置编辑器 vscode 或者 vscode-insiders */
|
|
250
|
+
editor?: (string | undefined);
|
|
251
|
+
};
|
|
252
|
+
legacy: {
|
|
253
|
+
buildOnly?: (boolean | undefined);
|
|
254
|
+
nodeModulesTransform?: (boolean | undefined);
|
|
255
|
+
checkOutput?: (boolean | undefined);
|
|
256
|
+
};
|
|
257
|
+
/** 设置 babel class-properties 启用 loose
|
|
258
|
+
@doc https://umijs.org/docs/api/config#classpropertiesloose */
|
|
259
|
+
classPropertiesLoose: boolean | {
|
|
260
|
+
|
|
261
|
+
};
|
|
262
|
+
ui: {
|
|
263
|
+
|
|
264
|
+
};
|
|
265
|
+
hmrGuardian: boolean;
|
|
266
|
+
verifyCommit: {
|
|
267
|
+
scope?: (Array<string> | undefined);
|
|
268
|
+
allowEmoji?: (boolean | undefined);
|
|
269
|
+
};
|
|
270
|
+
run: {
|
|
271
|
+
globals?: (Array<string> | undefined);
|
|
272
|
+
};
|
|
273
|
+
antd: {
|
|
274
|
+
configProvider?: ({ [x: string]: any } | undefined);
|
|
275
|
+
dark?: (boolean | undefined);
|
|
276
|
+
compact?: (boolean | undefined);
|
|
277
|
+
import?: (boolean | undefined);
|
|
278
|
+
style?: ("less" | "css" | undefined);
|
|
279
|
+
theme?: ({ [x: string]: any } | undefined);
|
|
280
|
+
appConfig?: ({ [x: string]: any } | undefined);
|
|
281
|
+
momentPicker?: (boolean | undefined);
|
|
282
|
+
styleProvider?: ({ [x: string]: any } | undefined);
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
type PrettifyWithCloseable<T> = {
|
|
287
|
+
[K in keyof T]: T[K] | false;
|
|
288
|
+
} & {};
|
|
289
|
+
|
|
290
|
+
export type IConfigFromPlugins = PrettifyWithCloseable<
|
|
291
|
+
IConfigFromPluginsJoi & Partial<IConfigTypes>
|
|
292
|
+
>;
|