iglooform 3.3.3 → 3.3.5
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/tmp/core/defineApp.ts +1 -1
- package/.dumi/tmp/core/helmet.ts +1 -1
- package/.dumi/tmp/core/history.ts +1 -1
- package/.dumi/tmp/core/historyIntelli.ts +1 -1
- package/.dumi/tmp/core/plugin.ts +2 -2
- package/.dumi/tmp/core/polyfill.ts +197 -197
- package/.dumi/tmp/core/route.tsx +33 -33
- package/.dumi/tmp/dumi/exports.ts +1 -1
- package/.dumi/tmp/dumi/locales/runtime.tsx +2 -2
- package/.dumi/tmp/dumi/meta/index.ts +33 -33
- package/.dumi/tmp/dumi/meta/runtime.ts +1 -1
- package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +2 -2
- package/.dumi/tmp/dumi/theme/builtins/API.ts +1 -1
- package/.dumi/tmp/dumi/theme/builtins/Badge.ts +1 -1
- package/.dumi/tmp/dumi/theme/builtins/Container.ts +1 -1
- package/.dumi/tmp/dumi/theme/builtins/Previewer.ts +1 -1
- package/.dumi/tmp/dumi/theme/builtins/SourceCode.ts +1 -1
- package/.dumi/tmp/dumi/theme/builtins/Table.ts +1 -1
- package/.dumi/tmp/dumi/theme/builtins/Tree.ts +1 -1
- package/.dumi/tmp/dumi/theme/layouts/DocLayout.ts +1 -1
- package/.dumi/tmp/dumi/theme/loading.tsx +1 -1
- package/.dumi/tmp/dumi/theme/slots/ColorSwitch.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Content.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/ContentFooter.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/ContentTabs.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Features.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Footer.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Header.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/HeaderExtra.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Hero.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/HeroTitle.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/LangSwitch.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Logo.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Navbar.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/NavbarExtra.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/NotFound.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/PreviewerActions.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/RtlSwitch.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/SearchBar.ts +2 -2
- package/.dumi/tmp/dumi/theme/slots/SearchResult.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Sidebar.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/SocialIcon.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Toc.ts +1 -1
- package/.dumi/tmp/exports.ts +5 -5
- package/.dumi/tmp/testBrowser.tsx +3 -3
- package/.dumi/tmp/umi.ts +4 -4
- package/.idea/codeStyles/Project.xml +59 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/iglooform.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +6 -0
- package/.idea/vcs.xml +6 -0
- package/es/admin-amount/style/index.d.ts +0 -0
- package/es/babel-plugin-import-option.d.ts +7 -0
- package/es/back-top/index.d.ts +5 -0
- package/es/claim-list/style/index.d.ts +1 -0
- package/es/confirmation/style/index.d.ts +1 -0
- package/es/currency-context/index.d.ts +8 -0
- package/es/currency-context/style/index.d.ts +0 -0
- package/es/date-picker/style/index.d.ts +1 -0
- package/es/declaration/style/index.d.ts +1 -0
- package/es/detail-panel/style/index.d.ts +1 -0
- package/es/documents/style/index.d.ts +1 -0
- package/es/filter/style/index.d.ts +1 -0
- package/es/form/addable-section/style/index.d.ts +1 -0
- package/es/form/divider/style/index.d.ts +1 -0
- package/es/form/element/style/index.d.ts +1 -0
- package/es/form/hstep/style/index.d.ts +1 -0
- package/es/form/hsteps/style/index.d.ts +1 -0
- package/es/form/login/style/index.d.ts +1 -0
- package/es/form/messages.d.ts +48 -0
- package/es/form/page/style/index.d.ts +1 -0
- package/es/form/pages/style/index.d.ts +1 -0
- package/es/form/render/style/index.d.ts +1 -0
- package/es/form/section/style/index.d.ts +1 -0
- package/es/form/step/style/index.d.ts +1 -0
- package/es/form/step-items-selection/components/section-of-item-condition/hooks/index.d.ts +1 -0
- package/es/form/step-items-selection/components/section-of-item-condition/hooks/index.js +2 -1
- package/es/form/step-items-selection/components/section-of-item-condition/hooks/useAdaptAssertConfig.d.ts +4 -0
- package/es/form/step-items-selection/components/section-of-item-condition/hooks/useAdaptAssertConfig.js +53 -0
- package/es/form/step-items-selection/components/section-of-item-condition/index.js +3 -2
- package/es/form/step-items-selection/config.d.ts +1 -0
- package/es/form/step-items-selection/config.js +1 -0
- package/es/form/steps/style/index.d.ts +1 -0
- package/es/form/style/index.d.ts +1 -0
- package/es/free-form/addable-section/style/index.d.ts +1 -0
- package/es/free-form/element/style/index.d.ts +1 -0
- package/es/free-form/messages.d.ts +48 -0
- package/es/free-form/page/style/index.d.ts +1 -0
- package/es/free-form/pages/style/index.d.ts +1 -0
- package/es/free-form/section/style/index.d.ts +1 -0
- package/es/free-form/step/style/index.d.ts +1 -0
- package/es/free-form/steps/style/index.d.ts +1 -0
- package/es/free-form/style/index.d.ts +1 -0
- package/es/home-menu/style/index.d.ts +1 -0
- package/es/input/style/amount/index.d.ts +2 -0
- package/es/input/style/index.d.ts +2 -0
- package/es/input/style/input-date/index.d.ts +2 -0
- package/es/input/style/otp/index.d.ts +2 -0
- package/es/input/style/phone-number/index.d.ts +2 -0
- package/es/input/style/text-area/index.d.ts +2 -0
- package/es/layout/defaultHeader.d.ts +4 -0
- package/es/layout/style/index.d.ts +1 -0
- package/es/locale/en-US.d.ts +2 -0
- package/es/locale/format-message.d.ts +10 -0
- package/es/locale/formatted-message.d.ts +6 -0
- package/es/locale/id-ID.d.ts +2 -0
- package/es/locale/index.d.ts +4 -0
- package/es/locale/locale-context.d.ts +12 -0
- package/es/locale/ms-MY.d.ts +2 -0
- package/es/locale/th-TH.d.ts +2 -0
- package/es/locale/vi-VN.d.ts +2 -0
- package/es/locale/zh-CN.d.ts +2 -0
- package/es/locale/zh-TW.d.ts +2 -0
- package/es/login-page/index.d.ts +7 -0
- package/es/login-page/style/index.d.ts +1 -0
- package/es/media/media.d.ts +11 -0
- package/es/media/style/index.d.ts +1 -0
- package/es/message/style/index.d.ts +1 -0
- package/es/mobile-insurer-detail/style/index.d.ts +1 -0
- package/es/mobile-insurer-list/style/index.d.ts +1 -0
- package/es/modal/style/index.d.ts +1 -0
- package/es/ocr/micro-blink/style/index.d.ts +1 -0
- package/es/platform/index.d.ts +2 -0
- package/es/platform/platform-card/index.d.ts +12 -0
- package/es/platform/platform-card/style/index.d.ts +1 -0
- package/es/platform/switch-platform/index.d.ts +12 -0
- package/es/platform/switch-platform/style/index.d.ts +1 -0
- package/es/policy-list/style/index.d.ts +1 -0
- package/es/radio/style/index.d.ts +1 -0
- package/es/search-box/style/index.d.ts +1 -0
- package/es/select/style/index.d.ts +1 -0
- package/es/status-box/style/index.d.ts +1 -0
- package/es/table/style/index.d.ts +1 -0
- package/es/tabs/index.d.ts +15 -0
- package/es/tabs/style/index.d.ts +1 -0
- package/es/typography/style/index.d.ts +1 -0
- package/es/upload/style/index.d.ts +1 -0
- package/es/upload-photo/media.d.ts +7 -0
- package/es/upload-photo/style/index.d.ts +1 -0
- package/es/upload-preview/style/index.d.ts +1 -0
- package/es/utils/agent-detect.d.ts +1 -0
- package/es/utils/useAsyncEffect.d.ts +3 -0
- package/lib/admin-amount/style/index.d.ts +0 -0
- package/lib/admin-upload/style/index.d.ts +1 -0
- package/lib/alert-message/style/index.d.ts +1 -0
- package/lib/babel-plugin-import-option.d.ts +7 -0
- package/lib/back-top/index.d.ts +5 -0
- package/lib/back-top/style/index.d.ts +1 -0
- package/lib/button/style/index.d.ts +1 -0
- package/lib/card-detail/style/index.d.ts +1 -0
- package/lib/checkbox/style/index.d.ts +1 -0
- package/lib/claim-list/style/index.d.ts +1 -0
- package/lib/confirmation/style/index.d.ts +1 -0
- package/lib/currency-context/index.d.ts +8 -0
- package/lib/currency-context/style/index.d.ts +0 -0
- package/lib/date-picker/style/index.d.ts +1 -0
- package/lib/declaration/style/index.d.ts +1 -0
- package/lib/detail-panel/style/index.d.ts +1 -0
- package/lib/documents/style/index.d.ts +1 -0
- package/lib/filter/style/index.d.ts +1 -0
- package/lib/form/addable-section/style/index.d.ts +1 -0
- package/lib/form/divider/style/index.d.ts +1 -0
- package/lib/form/element/style/index.d.ts +1 -0
- package/lib/form/hstep/style/index.d.ts +1 -0
- package/lib/form/hsteps/style/index.d.ts +1 -0
- package/lib/form/login/style/index.d.ts +1 -0
- package/lib/form/messages.d.ts +48 -0
- package/lib/form/page/style/index.d.ts +1 -0
- package/lib/form/pages/style/index.d.ts +1 -0
- package/lib/form/render/style/index.d.ts +1 -0
- package/lib/form/section/style/index.d.ts +1 -0
- package/lib/form/step/style/index.d.ts +1 -0
- package/lib/form/step-items-selection/components/section-of-item-condition/hooks/index.d.ts +1 -0
- package/lib/form/step-items-selection/components/section-of-item-condition/hooks/index.js +11 -0
- package/lib/form/step-items-selection/components/section-of-item-condition/hooks/useAdaptAssertConfig.d.ts +4 -0
- package/lib/form/step-items-selection/components/section-of-item-condition/hooks/useAdaptAssertConfig.js +60 -0
- package/lib/form/step-items-selection/components/section-of-item-condition/index.js +2 -1
- package/lib/form/step-items-selection/config.d.ts +1 -0
- package/lib/form/step-items-selection/config.js +3 -1
- package/lib/form/steps/style/index.d.ts +1 -0
- package/lib/form/style/index.d.ts +1 -0
- package/lib/free-form/addable-section/style/index.d.ts +1 -0
- package/lib/free-form/element/style/index.d.ts +1 -0
- package/lib/free-form/messages.d.ts +48 -0
- package/lib/free-form/page/style/index.d.ts +1 -0
- package/lib/free-form/pages/style/index.d.ts +1 -0
- package/lib/free-form/section/style/index.d.ts +1 -0
- package/lib/free-form/step/style/index.d.ts +1 -0
- package/lib/free-form/steps/style/index.d.ts +1 -0
- package/lib/free-form/style/index.d.ts +1 -0
- package/lib/home-menu/style/index.d.ts +1 -0
- package/lib/input/style/amount/index.d.ts +2 -0
- package/lib/input/style/index.d.ts +2 -0
- package/lib/input/style/input-date/index.d.ts +2 -0
- package/lib/input/style/otp/index.d.ts +2 -0
- package/lib/input/style/phone-number/index.d.ts +2 -0
- package/lib/input/style/text-area/index.d.ts +2 -0
- package/lib/layout/defaultHeader.d.ts +4 -0
- package/lib/layout/style/index.d.ts +1 -0
- package/lib/locale/en-US.d.ts +2 -0
- package/lib/locale/format-message.d.ts +10 -0
- package/lib/locale/formatted-message.d.ts +6 -0
- package/lib/locale/id-ID.d.ts +2 -0
- package/lib/locale/index.d.ts +4 -0
- package/lib/locale/locale-context.d.ts +12 -0
- package/lib/locale/ms-MY.d.ts +2 -0
- package/lib/locale/th-TH.d.ts +2 -0
- package/lib/locale/vi-VN.d.ts +2 -0
- package/lib/locale/zh-CN.d.ts +2 -0
- package/lib/locale/zh-TW.d.ts +2 -0
- package/lib/login-page/index.d.ts +7 -0
- package/lib/login-page/style/index.d.ts +1 -0
- package/lib/media/media.d.ts +11 -0
- package/lib/media/style/index.d.ts +1 -0
- package/lib/message/style/index.d.ts +1 -0
- package/lib/mobile-insurer-detail/style/index.d.ts +1 -0
- package/lib/mobile-insurer-list/style/index.d.ts +1 -0
- package/lib/modal/style/index.d.ts +1 -0
- package/lib/ocr/micro-blink/style/index.d.ts +1 -0
- package/lib/platform/index.d.ts +2 -0
- package/lib/platform/platform-card/index.d.ts +12 -0
- package/lib/platform/platform-card/style/index.d.ts +1 -0
- package/lib/platform/switch-platform/index.d.ts +12 -0
- package/lib/platform/switch-platform/style/index.d.ts +1 -0
- package/lib/policy-list/style/index.d.ts +1 -0
- package/lib/radio/style/index.d.ts +1 -0
- package/lib/search-box/style/index.d.ts +1 -0
- package/lib/select/style/index.d.ts +1 -0
- package/lib/status-box/style/index.d.ts +1 -0
- package/lib/table/style/index.d.ts +1 -0
- package/lib/tabs/index.d.ts +15 -0
- package/lib/tabs/style/index.d.ts +1 -0
- package/lib/typography/style/index.d.ts +1 -0
- package/lib/upload/style/index.d.ts +1 -0
- package/lib/upload-photo/media.d.ts +7 -0
- package/lib/upload-photo/style/index.d.ts +1 -0
- package/lib/upload-preview/style/index.d.ts +1 -0
- package/lib/utils/agent-detect.d.ts +1 -0
- package/lib/utils/useAsyncEffect.d.ts +3 -0
- package/package.json +1 -1
- package/yarn-error.log +16168 -0
- /package/es/{form/step-items-selection/components/checkbox-group-items → admin-upload}/style/index.d.ts +0 -0
- /package/es/{form/step-items-selection/components/item-info → alert-message}/style/index.d.ts +0 -0
- /package/es/{form/step-items-selection/components/section-of-item-condition → back-top}/style/index.d.ts +0 -0
- /package/{lib/form/step-items-selection/components/checkbox-group-items → es/button}/style/index.d.ts +0 -0
- /package/{lib/form/step-items-selection/components/item-info → es/card-detail}/style/index.d.ts +0 -0
- /package/{lib/form/step-items-selection/components/section-of-item-condition → es/checkbox}/style/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TabsProps } from 'antd';
|
|
3
|
+
import './style';
|
|
4
|
+
interface IglooTabsProps extends TabsProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const TabPane: React.FC<import("antd").TabPaneProps>;
|
|
7
|
+
/**
|
|
8
|
+
* Tab
|
|
9
|
+
* @param {*} 所有antd的tabs
|
|
10
|
+
*/
|
|
11
|
+
declare function Tabs(props: IglooTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare namespace Tabs {
|
|
13
|
+
var TabPane: React.FC<import("antd").TabPaneProps>;
|
|
14
|
+
}
|
|
15
|
+
export default Tabs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isMobileAgent(): boolean;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare const messages: {
|
|
2
|
+
default: string;
|
|
3
|
+
required: string;
|
|
4
|
+
enum: string;
|
|
5
|
+
whitespace: string;
|
|
6
|
+
date: {
|
|
7
|
+
format: string;
|
|
8
|
+
parse: string;
|
|
9
|
+
invalid: string;
|
|
10
|
+
};
|
|
11
|
+
types: {
|
|
12
|
+
string: string;
|
|
13
|
+
method: string;
|
|
14
|
+
array: string;
|
|
15
|
+
object: string;
|
|
16
|
+
number: string;
|
|
17
|
+
date: string;
|
|
18
|
+
boolean: string;
|
|
19
|
+
integer: string;
|
|
20
|
+
float: string;
|
|
21
|
+
regexp: string;
|
|
22
|
+
email: string;
|
|
23
|
+
url: string;
|
|
24
|
+
hex: string;
|
|
25
|
+
};
|
|
26
|
+
string: {
|
|
27
|
+
len: string;
|
|
28
|
+
min: string;
|
|
29
|
+
max: string;
|
|
30
|
+
range: string;
|
|
31
|
+
};
|
|
32
|
+
number: {
|
|
33
|
+
len: string;
|
|
34
|
+
min: string;
|
|
35
|
+
max: string;
|
|
36
|
+
range: string;
|
|
37
|
+
};
|
|
38
|
+
array: {
|
|
39
|
+
len: string;
|
|
40
|
+
min: string;
|
|
41
|
+
max: string;
|
|
42
|
+
range: string;
|
|
43
|
+
};
|
|
44
|
+
pattern: {
|
|
45
|
+
mismatch: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export default messages;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -13,4 +13,15 @@ Object.keys(_useElements).forEach(function (key) {
|
|
|
13
13
|
return _useElements[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
+
});
|
|
17
|
+
var _useAdaptAssertConfig = require("./useAdaptAssertConfig");
|
|
18
|
+
Object.keys(_useAdaptAssertConfig).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _useAdaptAssertConfig[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _useAdaptAssertConfig[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
16
27
|
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useAdaptAssertConfig = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _config = require("../../../config");
|
|
9
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
10
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
14
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
|
+
var useAdaptAssertConfig = function useAdaptAssertConfig(elements, index) {
|
|
16
|
+
var assertsConfigProps = ['asserts', 'requiredAsserts', 'disabled'];
|
|
17
|
+
|
|
18
|
+
// 只有用到了这个组件内部的asset才加
|
|
19
|
+
var insertIndexNumber = function insertIndexNumber(field, indexNumber) {
|
|
20
|
+
var _field = typeof field === 'string' ? field.split('.') : field;
|
|
21
|
+
var _field2 = _slicedToArray(_field, 3),
|
|
22
|
+
_1st = _field2[0],
|
|
23
|
+
_2nd = _field2[1],
|
|
24
|
+
_3rd = _field2[2];
|
|
25
|
+
if (_1st === _config.KEY_SELECTION && _2nd === _config.KEY_STEP2) {
|
|
26
|
+
_field.splice(2, 0, indexNumber);
|
|
27
|
+
}
|
|
28
|
+
return _field;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// 这里本质是一个addable,所以内部的assert类配置都得按需添加下标(Addable内部的组件相互做判定时)
|
|
32
|
+
var addIndexForAssertConfig = function addIndexForAssertConfig(elementsConfig, insertedIndex) {
|
|
33
|
+
elementsConfig.map(function (config) {
|
|
34
|
+
assertsConfigProps.forEach(function (propKey) {
|
|
35
|
+
if (config[propKey]) {
|
|
36
|
+
var assertTypeConfig = config[propKey];
|
|
37
|
+
if (Array.isArray(assertTypeConfig)) {
|
|
38
|
+
assertTypeConfig.forEach(function (c) {
|
|
39
|
+
return c.field = insertIndexNumber(c.field, insertedIndex);
|
|
40
|
+
});
|
|
41
|
+
} else {
|
|
42
|
+
if (assertTypeConfig.field) {
|
|
43
|
+
assertTypeConfig.field = insertIndexNumber(assertTypeConfig.field, insertedIndex);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
var elements = config.elements;
|
|
49
|
+
if (elements) config.elements = addIndexForAssertConfig(elements, insertedIndex);
|
|
50
|
+
return config;
|
|
51
|
+
});
|
|
52
|
+
return elementsConfig;
|
|
53
|
+
};
|
|
54
|
+
return (0, _react.useMemo)(function () {
|
|
55
|
+
console.log(elements, 'elements');
|
|
56
|
+
var _clonedElements = JSON.parse(JSON.stringify(elements));
|
|
57
|
+
return addIndexForAssertConfig(_clonedElements, index);
|
|
58
|
+
}, [elements, index]);
|
|
59
|
+
};
|
|
60
|
+
exports.useAdaptAssertConfig = useAdaptAssertConfig;
|
|
@@ -39,6 +39,7 @@ var SectionOfItemCondition = /*#__PURE__*/(0, _react.forwardRef)(function (props
|
|
|
39
39
|
isOpenState = _useState2[0],
|
|
40
40
|
setIsOpenState = _useState2[1];
|
|
41
41
|
var elements = (0, _hooks.useElements)(elementsProp, itemData);
|
|
42
|
+
var adaptAssertConfig = (0, _hooks.useAdaptAssertConfig)(elements, index);
|
|
42
43
|
var isOpen = isOpenState || preview;
|
|
43
44
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
44
45
|
return {
|
|
@@ -82,7 +83,7 @@ var SectionOfItemCondition = /*#__PURE__*/(0, _react.forwardRef)(function (props
|
|
|
82
83
|
className: (0, _classnames.default)("".concat(clsPrefix, "-item-form"), _defineProperty({}, "".concat(clsPrefix, "-item-form-hidden"), !isOpen)),
|
|
83
84
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Row, {
|
|
84
85
|
gutter: [32, preview ? 16 : 24],
|
|
85
|
-
children:
|
|
86
|
+
children: adaptAssertConfig.map(function (child, index) {
|
|
86
87
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_element.default, {
|
|
87
88
|
parentName: parentName,
|
|
88
89
|
config: child,
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.KEY_STEP2 = exports.KEY_STEP1 = exports.KEY_ITEM_QUANTITY = exports.KEY_ITEM_ID = exports.KEY_FORM_QUANTITY = void 0;
|
|
6
|
+
exports.KEY_STEP2 = exports.KEY_STEP1 = exports.KEY_SELECTION = exports.KEY_ITEM_QUANTITY = exports.KEY_ITEM_ID = exports.KEY_FORM_QUANTITY = void 0;
|
|
7
|
+
var KEY_SELECTION = 'item_selected';
|
|
8
|
+
exports.KEY_SELECTION = KEY_SELECTION;
|
|
7
9
|
var KEY_STEP1 = 'selected_items_ids';
|
|
8
10
|
exports.KEY_STEP1 = KEY_STEP1;
|
|
9
11
|
var KEY_STEP2 = 'selected_items';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare const messages: {
|
|
2
|
+
default: string;
|
|
3
|
+
required: string;
|
|
4
|
+
enum: string;
|
|
5
|
+
whitespace: string;
|
|
6
|
+
date: {
|
|
7
|
+
format: string;
|
|
8
|
+
parse: string;
|
|
9
|
+
invalid: string;
|
|
10
|
+
};
|
|
11
|
+
types: {
|
|
12
|
+
string: string;
|
|
13
|
+
method: string;
|
|
14
|
+
array: string;
|
|
15
|
+
object: string;
|
|
16
|
+
number: string;
|
|
17
|
+
date: string;
|
|
18
|
+
boolean: string;
|
|
19
|
+
integer: string;
|
|
20
|
+
float: string;
|
|
21
|
+
regexp: string;
|
|
22
|
+
email: string;
|
|
23
|
+
url: string;
|
|
24
|
+
hex: string;
|
|
25
|
+
};
|
|
26
|
+
string: {
|
|
27
|
+
len: string;
|
|
28
|
+
min: string;
|
|
29
|
+
max: string;
|
|
30
|
+
range: string;
|
|
31
|
+
};
|
|
32
|
+
number: {
|
|
33
|
+
len: string;
|
|
34
|
+
min: string;
|
|
35
|
+
max: string;
|
|
36
|
+
range: string;
|
|
37
|
+
};
|
|
38
|
+
array: {
|
|
39
|
+
len: string;
|
|
40
|
+
min: string;
|
|
41
|
+
max: string;
|
|
42
|
+
range: string;
|
|
43
|
+
};
|
|
44
|
+
pattern: {
|
|
45
|
+
mismatch: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export default messages;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface LocaleContextType {
|
|
3
|
+
formatMessage: (propr: {
|
|
4
|
+
id: string;
|
|
5
|
+
values?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
}) => any;
|
|
9
|
+
currentLang: string;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("react").Context<LocaleContextType>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import './style';
|
|
3
|
+
interface Props {
|
|
4
|
+
platforms: (string | {
|
|
5
|
+
name: string;
|
|
6
|
+
key: string;
|
|
7
|
+
})[];
|
|
8
|
+
currentPlatform: string;
|
|
9
|
+
onChange: (platform: string) => any;
|
|
10
|
+
}
|
|
11
|
+
declare const SwitchPlatform: FC<Props>;
|
|
12
|
+
export default SwitchPlatform;
|