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 @@
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,7 @@
1
+ import { FC } from 'react';
2
+ declare const MediaItem: FC<{
3
+ type: string;
4
+ src: string;
5
+ className: any;
6
+ }>;
7
+ export default MediaItem;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ export declare function isMobileAgent(): boolean;
@@ -0,0 +1,3 @@
1
+ import type { DependencyList } from 'react';
2
+ declare function useAsyncEffect(effect: () => AsyncGenerator<void, void, void> | Promise<void>, deps?: DependencyList): void;
3
+ export default useAsyncEffect;
File without changes
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -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 @@
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,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';
@@ -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,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,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: elements.map(function (child, index) {
86
+ children: adaptAssertConfig.map(function (child, index) {
86
87
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_element.default, {
87
88
  parentName: parentName,
88
89
  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";
@@ -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,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;