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.
Files changed (249) hide show
  1. package/.dumi/tmp/core/defineApp.ts +1 -1
  2. package/.dumi/tmp/core/helmet.ts +1 -1
  3. package/.dumi/tmp/core/history.ts +1 -1
  4. package/.dumi/tmp/core/historyIntelli.ts +1 -1
  5. package/.dumi/tmp/core/plugin.ts +2 -2
  6. package/.dumi/tmp/core/polyfill.ts +197 -197
  7. package/.dumi/tmp/core/route.tsx +33 -33
  8. package/.dumi/tmp/dumi/exports.ts +1 -1
  9. package/.dumi/tmp/dumi/locales/runtime.tsx +2 -2
  10. package/.dumi/tmp/dumi/meta/index.ts +33 -33
  11. package/.dumi/tmp/dumi/meta/runtime.ts +1 -1
  12. package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +2 -2
  13. package/.dumi/tmp/dumi/theme/builtins/API.ts +1 -1
  14. package/.dumi/tmp/dumi/theme/builtins/Badge.ts +1 -1
  15. package/.dumi/tmp/dumi/theme/builtins/Container.ts +1 -1
  16. package/.dumi/tmp/dumi/theme/builtins/Previewer.ts +1 -1
  17. package/.dumi/tmp/dumi/theme/builtins/SourceCode.ts +1 -1
  18. package/.dumi/tmp/dumi/theme/builtins/Table.ts +1 -1
  19. package/.dumi/tmp/dumi/theme/builtins/Tree.ts +1 -1
  20. package/.dumi/tmp/dumi/theme/layouts/DocLayout.ts +1 -1
  21. package/.dumi/tmp/dumi/theme/loading.tsx +1 -1
  22. package/.dumi/tmp/dumi/theme/slots/ColorSwitch.ts +1 -1
  23. package/.dumi/tmp/dumi/theme/slots/Content.ts +1 -1
  24. package/.dumi/tmp/dumi/theme/slots/ContentFooter.ts +1 -1
  25. package/.dumi/tmp/dumi/theme/slots/ContentTabs.ts +1 -1
  26. package/.dumi/tmp/dumi/theme/slots/Features.ts +1 -1
  27. package/.dumi/tmp/dumi/theme/slots/Footer.ts +1 -1
  28. package/.dumi/tmp/dumi/theme/slots/Header.ts +1 -1
  29. package/.dumi/tmp/dumi/theme/slots/HeaderExtra.ts +1 -1
  30. package/.dumi/tmp/dumi/theme/slots/Hero.ts +1 -1
  31. package/.dumi/tmp/dumi/theme/slots/HeroTitle.ts +1 -1
  32. package/.dumi/tmp/dumi/theme/slots/LangSwitch.ts +1 -1
  33. package/.dumi/tmp/dumi/theme/slots/Logo.ts +1 -1
  34. package/.dumi/tmp/dumi/theme/slots/Navbar.ts +1 -1
  35. package/.dumi/tmp/dumi/theme/slots/NavbarExtra.ts +1 -1
  36. package/.dumi/tmp/dumi/theme/slots/NotFound.ts +1 -1
  37. package/.dumi/tmp/dumi/theme/slots/PreviewerActions.ts +1 -1
  38. package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.ts +1 -1
  39. package/.dumi/tmp/dumi/theme/slots/RtlSwitch.ts +1 -1
  40. package/.dumi/tmp/dumi/theme/slots/SearchBar.ts +2 -2
  41. package/.dumi/tmp/dumi/theme/slots/SearchResult.ts +1 -1
  42. package/.dumi/tmp/dumi/theme/slots/Sidebar.ts +1 -1
  43. package/.dumi/tmp/dumi/theme/slots/SocialIcon.ts +1 -1
  44. package/.dumi/tmp/dumi/theme/slots/Toc.ts +1 -1
  45. package/.dumi/tmp/exports.ts +5 -5
  46. package/.dumi/tmp/testBrowser.tsx +3 -3
  47. package/.dumi/tmp/umi.ts +4 -4
  48. package/.idea/codeStyles/Project.xml +59 -0
  49. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  50. package/.idea/iglooform.iml +12 -0
  51. package/.idea/modules.xml +8 -0
  52. package/.idea/prettier.xml +6 -0
  53. package/.idea/vcs.xml +6 -0
  54. package/es/admin-amount/style/index.d.ts +0 -0
  55. package/es/babel-plugin-import-option.d.ts +7 -0
  56. package/es/back-top/index.d.ts +5 -0
  57. package/es/claim-list/style/index.d.ts +1 -0
  58. package/es/confirmation/style/index.d.ts +1 -0
  59. package/es/currency-context/index.d.ts +8 -0
  60. package/es/currency-context/style/index.d.ts +0 -0
  61. package/es/date-picker/style/index.d.ts +1 -0
  62. package/es/declaration/style/index.d.ts +1 -0
  63. package/es/detail-panel/style/index.d.ts +1 -0
  64. package/es/documents/style/index.d.ts +1 -0
  65. package/es/filter/style/index.d.ts +1 -0
  66. package/es/form/addable-section/style/index.d.ts +1 -0
  67. package/es/form/divider/style/index.d.ts +1 -0
  68. package/es/form/element/style/index.d.ts +1 -0
  69. package/es/form/hstep/style/index.d.ts +1 -0
  70. package/es/form/hsteps/style/index.d.ts +1 -0
  71. package/es/form/login/style/index.d.ts +1 -0
  72. package/es/form/messages.d.ts +48 -0
  73. package/es/form/page/style/index.d.ts +1 -0
  74. package/es/form/pages/style/index.d.ts +1 -0
  75. package/es/form/render/style/index.d.ts +1 -0
  76. package/es/form/section/style/index.d.ts +1 -0
  77. package/es/form/step/style/index.d.ts +1 -0
  78. package/es/form/step-items-selection/components/section-of-item-condition/hooks/index.d.ts +1 -0
  79. package/es/form/step-items-selection/components/section-of-item-condition/hooks/index.js +2 -1
  80. package/es/form/step-items-selection/components/section-of-item-condition/hooks/useAdaptAssertConfig.d.ts +4 -0
  81. package/es/form/step-items-selection/components/section-of-item-condition/hooks/useAdaptAssertConfig.js +53 -0
  82. package/es/form/step-items-selection/components/section-of-item-condition/index.js +3 -2
  83. package/es/form/step-items-selection/config.d.ts +1 -0
  84. package/es/form/step-items-selection/config.js +1 -0
  85. package/es/form/steps/style/index.d.ts +1 -0
  86. package/es/form/style/index.d.ts +1 -0
  87. package/es/free-form/addable-section/style/index.d.ts +1 -0
  88. package/es/free-form/element/style/index.d.ts +1 -0
  89. package/es/free-form/messages.d.ts +48 -0
  90. package/es/free-form/page/style/index.d.ts +1 -0
  91. package/es/free-form/pages/style/index.d.ts +1 -0
  92. package/es/free-form/section/style/index.d.ts +1 -0
  93. package/es/free-form/step/style/index.d.ts +1 -0
  94. package/es/free-form/steps/style/index.d.ts +1 -0
  95. package/es/free-form/style/index.d.ts +1 -0
  96. package/es/home-menu/style/index.d.ts +1 -0
  97. package/es/input/style/amount/index.d.ts +2 -0
  98. package/es/input/style/index.d.ts +2 -0
  99. package/es/input/style/input-date/index.d.ts +2 -0
  100. package/es/input/style/otp/index.d.ts +2 -0
  101. package/es/input/style/phone-number/index.d.ts +2 -0
  102. package/es/input/style/text-area/index.d.ts +2 -0
  103. package/es/layout/defaultHeader.d.ts +4 -0
  104. package/es/layout/style/index.d.ts +1 -0
  105. package/es/locale/en-US.d.ts +2 -0
  106. package/es/locale/format-message.d.ts +10 -0
  107. package/es/locale/formatted-message.d.ts +6 -0
  108. package/es/locale/id-ID.d.ts +2 -0
  109. package/es/locale/index.d.ts +4 -0
  110. package/es/locale/locale-context.d.ts +12 -0
  111. package/es/locale/ms-MY.d.ts +2 -0
  112. package/es/locale/th-TH.d.ts +2 -0
  113. package/es/locale/vi-VN.d.ts +2 -0
  114. package/es/locale/zh-CN.d.ts +2 -0
  115. package/es/locale/zh-TW.d.ts +2 -0
  116. package/es/login-page/index.d.ts +7 -0
  117. package/es/login-page/style/index.d.ts +1 -0
  118. package/es/media/media.d.ts +11 -0
  119. package/es/media/style/index.d.ts +1 -0
  120. package/es/message/style/index.d.ts +1 -0
  121. package/es/mobile-insurer-detail/style/index.d.ts +1 -0
  122. package/es/mobile-insurer-list/style/index.d.ts +1 -0
  123. package/es/modal/style/index.d.ts +1 -0
  124. package/es/ocr/micro-blink/style/index.d.ts +1 -0
  125. package/es/platform/index.d.ts +2 -0
  126. package/es/platform/platform-card/index.d.ts +12 -0
  127. package/es/platform/platform-card/style/index.d.ts +1 -0
  128. package/es/platform/switch-platform/index.d.ts +12 -0
  129. package/es/platform/switch-platform/style/index.d.ts +1 -0
  130. package/es/policy-list/style/index.d.ts +1 -0
  131. package/es/radio/style/index.d.ts +1 -0
  132. package/es/search-box/style/index.d.ts +1 -0
  133. package/es/select/style/index.d.ts +1 -0
  134. package/es/status-box/style/index.d.ts +1 -0
  135. package/es/table/style/index.d.ts +1 -0
  136. package/es/tabs/index.d.ts +15 -0
  137. package/es/tabs/style/index.d.ts +1 -0
  138. package/es/typography/style/index.d.ts +1 -0
  139. package/es/upload/style/index.d.ts +1 -0
  140. package/es/upload-photo/media.d.ts +7 -0
  141. package/es/upload-photo/style/index.d.ts +1 -0
  142. package/es/upload-preview/style/index.d.ts +1 -0
  143. package/es/utils/agent-detect.d.ts +1 -0
  144. package/es/utils/useAsyncEffect.d.ts +3 -0
  145. package/lib/admin-amount/style/index.d.ts +0 -0
  146. package/lib/admin-upload/style/index.d.ts +1 -0
  147. package/lib/alert-message/style/index.d.ts +1 -0
  148. package/lib/babel-plugin-import-option.d.ts +7 -0
  149. package/lib/back-top/index.d.ts +5 -0
  150. package/lib/back-top/style/index.d.ts +1 -0
  151. package/lib/button/style/index.d.ts +1 -0
  152. package/lib/card-detail/style/index.d.ts +1 -0
  153. package/lib/checkbox/style/index.d.ts +1 -0
  154. package/lib/claim-list/style/index.d.ts +1 -0
  155. package/lib/confirmation/style/index.d.ts +1 -0
  156. package/lib/currency-context/index.d.ts +8 -0
  157. package/lib/currency-context/style/index.d.ts +0 -0
  158. package/lib/date-picker/style/index.d.ts +1 -0
  159. package/lib/declaration/style/index.d.ts +1 -0
  160. package/lib/detail-panel/style/index.d.ts +1 -0
  161. package/lib/documents/style/index.d.ts +1 -0
  162. package/lib/filter/style/index.d.ts +1 -0
  163. package/lib/form/addable-section/style/index.d.ts +1 -0
  164. package/lib/form/divider/style/index.d.ts +1 -0
  165. package/lib/form/element/style/index.d.ts +1 -0
  166. package/lib/form/hstep/style/index.d.ts +1 -0
  167. package/lib/form/hsteps/style/index.d.ts +1 -0
  168. package/lib/form/login/style/index.d.ts +1 -0
  169. package/lib/form/messages.d.ts +48 -0
  170. package/lib/form/page/style/index.d.ts +1 -0
  171. package/lib/form/pages/style/index.d.ts +1 -0
  172. package/lib/form/render/style/index.d.ts +1 -0
  173. package/lib/form/section/style/index.d.ts +1 -0
  174. package/lib/form/step/style/index.d.ts +1 -0
  175. package/lib/form/step-items-selection/components/section-of-item-condition/hooks/index.d.ts +1 -0
  176. package/lib/form/step-items-selection/components/section-of-item-condition/hooks/index.js +11 -0
  177. package/lib/form/step-items-selection/components/section-of-item-condition/hooks/useAdaptAssertConfig.d.ts +4 -0
  178. package/lib/form/step-items-selection/components/section-of-item-condition/hooks/useAdaptAssertConfig.js +60 -0
  179. package/lib/form/step-items-selection/components/section-of-item-condition/index.js +2 -1
  180. package/lib/form/step-items-selection/config.d.ts +1 -0
  181. package/lib/form/step-items-selection/config.js +3 -1
  182. package/lib/form/steps/style/index.d.ts +1 -0
  183. package/lib/form/style/index.d.ts +1 -0
  184. package/lib/free-form/addable-section/style/index.d.ts +1 -0
  185. package/lib/free-form/element/style/index.d.ts +1 -0
  186. package/lib/free-form/messages.d.ts +48 -0
  187. package/lib/free-form/page/style/index.d.ts +1 -0
  188. package/lib/free-form/pages/style/index.d.ts +1 -0
  189. package/lib/free-form/section/style/index.d.ts +1 -0
  190. package/lib/free-form/step/style/index.d.ts +1 -0
  191. package/lib/free-form/steps/style/index.d.ts +1 -0
  192. package/lib/free-form/style/index.d.ts +1 -0
  193. package/lib/home-menu/style/index.d.ts +1 -0
  194. package/lib/input/style/amount/index.d.ts +2 -0
  195. package/lib/input/style/index.d.ts +2 -0
  196. package/lib/input/style/input-date/index.d.ts +2 -0
  197. package/lib/input/style/otp/index.d.ts +2 -0
  198. package/lib/input/style/phone-number/index.d.ts +2 -0
  199. package/lib/input/style/text-area/index.d.ts +2 -0
  200. package/lib/layout/defaultHeader.d.ts +4 -0
  201. package/lib/layout/style/index.d.ts +1 -0
  202. package/lib/locale/en-US.d.ts +2 -0
  203. package/lib/locale/format-message.d.ts +10 -0
  204. package/lib/locale/formatted-message.d.ts +6 -0
  205. package/lib/locale/id-ID.d.ts +2 -0
  206. package/lib/locale/index.d.ts +4 -0
  207. package/lib/locale/locale-context.d.ts +12 -0
  208. package/lib/locale/ms-MY.d.ts +2 -0
  209. package/lib/locale/th-TH.d.ts +2 -0
  210. package/lib/locale/vi-VN.d.ts +2 -0
  211. package/lib/locale/zh-CN.d.ts +2 -0
  212. package/lib/locale/zh-TW.d.ts +2 -0
  213. package/lib/login-page/index.d.ts +7 -0
  214. package/lib/login-page/style/index.d.ts +1 -0
  215. package/lib/media/media.d.ts +11 -0
  216. package/lib/media/style/index.d.ts +1 -0
  217. package/lib/message/style/index.d.ts +1 -0
  218. package/lib/mobile-insurer-detail/style/index.d.ts +1 -0
  219. package/lib/mobile-insurer-list/style/index.d.ts +1 -0
  220. package/lib/modal/style/index.d.ts +1 -0
  221. package/lib/ocr/micro-blink/style/index.d.ts +1 -0
  222. package/lib/platform/index.d.ts +2 -0
  223. package/lib/platform/platform-card/index.d.ts +12 -0
  224. package/lib/platform/platform-card/style/index.d.ts +1 -0
  225. package/lib/platform/switch-platform/index.d.ts +12 -0
  226. package/lib/platform/switch-platform/style/index.d.ts +1 -0
  227. package/lib/policy-list/style/index.d.ts +1 -0
  228. package/lib/radio/style/index.d.ts +1 -0
  229. package/lib/search-box/style/index.d.ts +1 -0
  230. package/lib/select/style/index.d.ts +1 -0
  231. package/lib/status-box/style/index.d.ts +1 -0
  232. package/lib/table/style/index.d.ts +1 -0
  233. package/lib/tabs/index.d.ts +15 -0
  234. package/lib/tabs/style/index.d.ts +1 -0
  235. package/lib/typography/style/index.d.ts +1 -0
  236. package/lib/upload/style/index.d.ts +1 -0
  237. package/lib/upload-photo/media.d.ts +7 -0
  238. package/lib/upload-photo/style/index.d.ts +1 -0
  239. package/lib/upload-preview/style/index.d.ts +1 -0
  240. package/lib/utils/agent-detect.d.ts +1 -0
  241. package/lib/utils/useAsyncEffect.d.ts +3 -0
  242. package/package.json +1 -1
  243. package/yarn-error.log +16168 -0
  244. /package/es/{form/step-items-selection/components/checkbox-group-items → admin-upload}/style/index.d.ts +0 -0
  245. /package/es/{form/step-items-selection/components/item-info → alert-message}/style/index.d.ts +0 -0
  246. /package/es/{form/step-items-selection/components/section-of-item-condition → back-top}/style/index.d.ts +0 -0
  247. /package/{lib/form/step-items-selection/components/checkbox-group-items → es/button}/style/index.d.ts +0 -0
  248. /package/{lib/form/step-items-selection/components/item-info → es/card-detail}/style/index.d.ts +0 -0
  249. /package/{lib/form/step-items-selection/components/section-of-item-condition → es/checkbox}/style/index.d.ts +0 -0
@@ -0,0 +1,59 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <code_scheme name="Project" version="173">
3
+ <HTMLCodeStyleSettings>
4
+ <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
5
+ </HTMLCodeStyleSettings>
6
+ <JSCodeStyleSettings version="0">
7
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
8
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
9
+ <option name="USE_DOUBLE_QUOTES" value="false" />
10
+ <option name="FORCE_QUOTE_STYlE" value="true" />
11
+ <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
12
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
13
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
14
+ </JSCodeStyleSettings>
15
+ <TypeScriptCodeStyleSettings version="0">
16
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
17
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
18
+ <option name="USE_DOUBLE_QUOTES" value="false" />
19
+ <option name="FORCE_QUOTE_STYlE" value="true" />
20
+ <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
21
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
22
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
23
+ </TypeScriptCodeStyleSettings>
24
+ <VueCodeStyleSettings>
25
+ <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
26
+ <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
27
+ </VueCodeStyleSettings>
28
+ <codeStyleSettings language="HTML">
29
+ <option name="SOFT_MARGINS" value="80" />
30
+ <indentOptions>
31
+ <option name="INDENT_SIZE" value="2" />
32
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
33
+ <option name="TAB_SIZE" value="2" />
34
+ </indentOptions>
35
+ </codeStyleSettings>
36
+ <codeStyleSettings language="JavaScript">
37
+ <option name="SOFT_MARGINS" value="80" />
38
+ <indentOptions>
39
+ <option name="INDENT_SIZE" value="2" />
40
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
41
+ <option name="TAB_SIZE" value="2" />
42
+ </indentOptions>
43
+ </codeStyleSettings>
44
+ <codeStyleSettings language="TypeScript">
45
+ <option name="SOFT_MARGINS" value="80" />
46
+ <indentOptions>
47
+ <option name="INDENT_SIZE" value="2" />
48
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
49
+ <option name="TAB_SIZE" value="2" />
50
+ </indentOptions>
51
+ </codeStyleSettings>
52
+ <codeStyleSettings language="Vue">
53
+ <option name="SOFT_MARGINS" value="80" />
54
+ <indentOptions>
55
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
56
+ </indentOptions>
57
+ </codeStyleSettings>
58
+ </code_scheme>
59
+ </component>
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/iglooform.iml" filepath="$PROJECT_DIR$/.idea/iglooform.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PrettierConfiguration">
4
+ <option name="myConfigurationMode" value="MANUAL" />
5
+ </component>
6
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
File without changes
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ libraryName: string;
3
+ libraryDirectory: string;
4
+ style: boolean;
5
+ customName: (name: string) => string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import './style';
3
+ import { BackTopProps } from 'antd';
4
+ declare const BackToTop: FC<BackTopProps>;
5
+ export default BackToTop;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface CurrencyMethod {
3
+ exchange: (value: any) => any;
4
+ exchangeBack: (value: any) => any;
5
+ currentCurrency: string;
6
+ }
7
+ declare const _default: import("react").Context<CurrencyMethod>;
8
+ export default _default;
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';
@@ -1 +1,2 @@
1
1
  export * from './useElements';
2
+ export * from './useAdaptAssertConfig';
@@ -1 +1,2 @@
1
- export * from "./useElements";
1
+ export * from "./useElements";
2
+ export * from "./useAdaptAssertConfig";
@@ -0,0 +1,4 @@
1
+ import type { FormItemConfig } from '../../../../../types';
2
+ type useAdaptAssertConfig = (elements: FormItemConfig[], index: number) => FormItemConfig[];
3
+ export declare const useAdaptAssertConfig: useAdaptAssertConfig;
4
+ export {};
@@ -0,0 +1,53 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ 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."); }
3
+ 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); }
4
+ 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; }
5
+ 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; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import { useMemo } from 'react';
8
+ import { KEY_SELECTION, KEY_STEP2 } from "../../../config";
9
+ export var useAdaptAssertConfig = function useAdaptAssertConfig(elements, index) {
10
+ var assertsConfigProps = ['asserts', 'requiredAsserts', 'disabled'];
11
+
12
+ // 只有用到了这个组件内部的asset才加
13
+ var insertIndexNumber = function insertIndexNumber(field, indexNumber) {
14
+ var _field = typeof field === 'string' ? field.split('.') : field;
15
+ var _field2 = _slicedToArray(_field, 3),
16
+ _1st = _field2[0],
17
+ _2nd = _field2[1],
18
+ _3rd = _field2[2];
19
+ if (_1st === KEY_SELECTION && _2nd === KEY_STEP2) {
20
+ _field.splice(2, 0, indexNumber);
21
+ }
22
+ return _field;
23
+ };
24
+
25
+ // 这里本质是一个addable,所以内部的assert类配置都得按需添加下标(Addable内部的组件相互做判定时)
26
+ var addIndexForAssertConfig = function addIndexForAssertConfig(elementsConfig, insertedIndex) {
27
+ elementsConfig.map(function (config) {
28
+ assertsConfigProps.forEach(function (propKey) {
29
+ if (config[propKey]) {
30
+ var assertTypeConfig = config[propKey];
31
+ if (Array.isArray(assertTypeConfig)) {
32
+ assertTypeConfig.forEach(function (c) {
33
+ return c.field = insertIndexNumber(c.field, insertedIndex);
34
+ });
35
+ } else {
36
+ if (assertTypeConfig.field) {
37
+ assertTypeConfig.field = insertIndexNumber(assertTypeConfig.field, insertedIndex);
38
+ }
39
+ }
40
+ }
41
+ });
42
+ var elements = config.elements;
43
+ if (elements) config.elements = addIndexForAssertConfig(elements, insertedIndex);
44
+ return config;
45
+ });
46
+ return elementsConfig;
47
+ };
48
+ return useMemo(function () {
49
+ console.log(elements, 'elements');
50
+ var _clonedElements = JSON.parse(JSON.stringify(elements));
51
+ return addIndexForAssertConfig(_clonedElements, index);
52
+ }, [elements, index]);
53
+ };
@@ -15,7 +15,7 @@ import { Row } from 'antd';
15
15
  import { ArrowDownOutlined, ArrowUpOutlined } from 'iglooicon';
16
16
  import ItemInfo from "../item-info";
17
17
  import Element from "../../../element";
18
- import { useElements } from "./hooks";
18
+ import { useElements, useAdaptAssertConfig } from "./hooks";
19
19
  import "./style";
20
20
  import classNames from 'classnames';
21
21
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -33,6 +33,7 @@ export var SectionOfItemCondition = /*#__PURE__*/forwardRef(function (props, ref
33
33
  isOpenState = _useState2[0],
34
34
  setIsOpenState = _useState2[1];
35
35
  var elements = useElements(elementsProp, itemData);
36
+ var adaptAssertConfig = useAdaptAssertConfig(elements, index);
36
37
  var isOpen = isOpenState || preview;
37
38
  useImperativeHandle(ref, function () {
38
39
  return {
@@ -76,7 +77,7 @@ export var SectionOfItemCondition = /*#__PURE__*/forwardRef(function (props, ref
76
77
  className: classNames("".concat(clsPrefix, "-item-form"), _defineProperty({}, "".concat(clsPrefix, "-item-form-hidden"), !isOpen)),
77
78
  children: /*#__PURE__*/_jsx(Row, {
78
79
  gutter: [32, preview ? 16 : 24],
79
- children: elements.map(function (child, index) {
80
+ children: adaptAssertConfig.map(function (child, index) {
80
81
  return /*#__PURE__*/_jsx(Element, {
81
82
  parentName: parentName,
82
83
  config: child,
@@ -1,3 +1,4 @@
1
+ export declare const KEY_SELECTION = "item_selected";
1
2
  export declare const KEY_STEP1 = "selected_items_ids";
2
3
  export declare const KEY_STEP2 = "selected_items";
3
4
  export declare const KEY_FORM_QUANTITY = "claim_quantity";
@@ -1,3 +1,4 @@
1
+ export var KEY_SELECTION = 'item_selected';
1
2
  export var KEY_STEP1 = 'selected_items_ids';
2
3
  export var KEY_STEP2 = 'selected_items';
3
4
  export var KEY_FORM_QUANTITY = 'claim_quantity';
@@ -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,2 @@
1
+ import '../index';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import './default-input.less';
2
+ import './common.less';
@@ -0,0 +1,2 @@
1
+ import '../index';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../index';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../index';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../index';
2
+ import './index.less';
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import './style';
3
+ declare const DefaultHeader: FC<any>;
4
+ export default DefaultHeader;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,10 @@
1
+ export declare let staticLang: {
2
+ current: string;
3
+ };
4
+ declare const formatMessage: (props: {
5
+ id: string;
6
+ values?: {
7
+ [key: string]: any;
8
+ } | undefined;
9
+ }) => any;
10
+ export default formatMessage;
@@ -0,0 +1,6 @@
1
+ export default function (props: {
2
+ id: string;
3
+ values?: {
4
+ [key: string]: any;
5
+ };
6
+ }): any;
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,4 @@
1
+ export { default as LocaleProvider } from './locale-provider';
2
+ export { default as LocaleContext } from './locale-context';
3
+ export { default as FormattedMessage } from './formatted-message';
4
+ export { default as staticFormatMessage } from './format-message';
@@ -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,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,7 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import './style';
3
+ interface Props {
4
+ showAppStore?: boolean;
5
+ }
6
+ declare const LoginPage: FC<PropsWithChildren<Props>>;
7
+ export default LoginPage;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,11 @@
1
+ import { FC, CSSProperties } from 'react';
2
+ interface MediaProps {
3
+ src: string;
4
+ type: string;
5
+ onClick: any;
6
+ className?: any;
7
+ style?: CSSProperties;
8
+ name?: string;
9
+ }
10
+ declare const Media: FC<MediaProps>;
11
+ export default Media;
@@ -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,2 @@
1
+ export { default as PlatformCard } from './platform-card';
2
+ export { default as SwitchPlatform } from './switch-platform';
@@ -0,0 +1,12 @@
1
+ import { FC, CSSProperties } from 'react';
2
+ import './style';
3
+ declare const PlatformCard: FC<{
4
+ platform: string | {
5
+ name: string;
6
+ key: string;
7
+ };
8
+ onClick: any;
9
+ className?: any;
10
+ style?: CSSProperties;
11
+ }>;
12
+ export default PlatformCard;
@@ -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;
@@ -0,0 +1 @@
1
+ import './index.less';