iglooform 3.0.7 → 3.0.9

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 (228) hide show
  1. package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +1 -1
  2. package/es/admin-amount/index.d.ts +9 -0
  3. package/es/admin-amount/style/index.d.ts +0 -0
  4. package/es/admin-upload/float.d.ts +16 -0
  5. package/es/admin-upload/index.d.ts +36 -0
  6. package/es/admin-upload/index.js +2 -2
  7. package/es/admin-upload/modal.d.ts +17 -0
  8. package/es/alert-message/index.d.ts +5 -0
  9. package/es/babel-plugin-import-option.d.ts +7 -0
  10. package/es/back-top/index.d.ts +5 -0
  11. package/es/button/index.d.ts +11 -0
  12. package/es/card-detail/card-group.d.ts +12 -0
  13. package/es/card-detail/card-item.d.ts +9 -0
  14. package/es/card-detail/card-page.d.ts +12 -0
  15. package/es/card-detail/card.d.ts +10 -0
  16. package/es/card-detail/utils.d.ts +5 -0
  17. package/es/checkbox/index.d.ts +24 -0
  18. package/es/claim-list/index.d.ts +48 -0
  19. package/es/confirmation/index.d.ts +14 -0
  20. package/es/date-picker/buddhist.d.ts +6 -0
  21. package/es/date-picker/index.d.ts +13 -0
  22. package/es/declaration/index.d.ts +9 -0
  23. package/es/detail-panel/index.d.ts +18 -0
  24. package/es/filter/checkBox.d.ts +12 -0
  25. package/es/filter/index.d.ts +52 -0
  26. package/es/filter/rangePicker.d.ts +18 -0
  27. package/es/form/addable-section/index.d.ts +20 -0
  28. package/es/form/addable-section/index.js +3 -2
  29. package/es/form/element/index.d.ts +12 -0
  30. package/es/form/element/index.js +3 -2
  31. package/es/form/elements.d.ts +8 -0
  32. package/es/form/hstep/index.d.ts +17 -0
  33. package/es/form/hsteps/index.d.ts +21 -0
  34. package/es/form/index.d.ts +4 -0
  35. package/es/form/index.js +4 -2
  36. package/es/form/login/index.d.ts +9 -0
  37. package/es/form/page/index.d.ts +10 -0
  38. package/es/form/pages/index.d.ts +10 -0
  39. package/es/form/section/index.d.ts +16 -0
  40. package/es/form/section/index.js +3 -2
  41. package/es/form/step/index.d.ts +17 -0
  42. package/es/form/steps/index.d.ts +10 -0
  43. package/es/form-context.d.ts +28 -0
  44. package/es/form-step-context.d.ts +6 -0
  45. package/es/free-form/addable-section/index.d.ts +19 -0
  46. package/es/free-form/addable-section/index.js +3 -2
  47. package/es/free-form/element/index.d.ts +11 -0
  48. package/es/free-form/element/index.js +3 -2
  49. package/es/free-form/index.d.ts +11 -0
  50. package/es/free-form/index.js +4 -2
  51. package/es/free-form/page/index.d.ts +16 -0
  52. package/es/free-form/pages/index.d.ts +10 -0
  53. package/es/free-form/section/index.d.ts +13 -0
  54. package/es/free-form/section/index.js +3 -2
  55. package/es/free-form/step/index.d.ts +21 -0
  56. package/es/free-form/steps/index.d.ts +12 -0
  57. package/es/home-menu/index.d.ts +20 -0
  58. package/es/hooks/ocr/index.d.ts +3 -0
  59. package/es/hooks/ocr/micro-blink.d.ts +10 -0
  60. package/es/index.d.ts +47 -0
  61. package/es/input/amount.d.ts +14 -0
  62. package/es/input/credit-card.d.ts +13 -0
  63. package/es/input/email.d.ts +6 -0
  64. package/es/input/expiry-date.d.ts +16 -0
  65. package/es/input/index.d.ts +14 -0
  66. package/es/input/input-date.d.ts +8 -0
  67. package/es/input/input-id.d.ts +6 -0
  68. package/es/input/input-number.d.ts +6 -0
  69. package/es/input/input.d.ts +9 -0
  70. package/es/input/otp.d.ts +11 -0
  71. package/es/input/password.d.ts +6 -0
  72. package/es/input/phone-number.d.ts +14 -0
  73. package/es/input/style/amount/index.d.ts +2 -0
  74. package/es/input/style/index.d.ts +2 -0
  75. package/es/input/style/input-date/index.d.ts +2 -0
  76. package/es/input/style/otp/index.d.ts +2 -0
  77. package/es/input/style/phone-number/index.d.ts +2 -0
  78. package/es/input/style/text-area/index.d.ts +2 -0
  79. package/es/input/text-area.d.ts +6 -0
  80. package/es/layout/header.d.ts +5 -0
  81. package/es/layout/index.d.ts +56 -0
  82. package/es/locale/locale-provider.d.ts +11 -0
  83. package/es/login-page/index.d.ts +7 -0
  84. package/es/media/index.d.ts +19 -0
  85. package/es/message/index.d.ts +12 -0
  86. package/es/message/style/index.d.ts +1 -0
  87. package/es/mobile-insurer-detail/index.d.ts +40 -0
  88. package/es/mobile-insurer-list/index.d.ts +17 -0
  89. package/es/modal/index.d.ts +31 -0
  90. package/es/ocr/index.d.ts +15 -0
  91. package/es/ocr/micro-blink/index.d.ts +8 -0
  92. package/es/ocr/micro-blink/style/index.d.ts +1 -0
  93. package/es/platform/platform-card/index.d.ts +12 -0
  94. package/es/platform/switch-platform/index.d.ts +12 -0
  95. package/es/policy-list/policy-card.d.ts +48 -0
  96. package/es/radio/index.d.ts +24 -0
  97. package/es/search-box/index.d.ts +19 -0
  98. package/es/select/attached-select.d.ts +17 -0
  99. package/es/select/select.d.ts +13 -0
  100. package/es/select/time-select.d.ts +7 -0
  101. package/es/status-box/index.d.ts +11 -0
  102. package/es/table/index.d.ts +42 -0
  103. package/es/tabs/index.d.ts +15 -0
  104. package/es/types.d.ts +183 -0
  105. package/es/typography/index.d.ts +14 -0
  106. package/es/upload/index.d.ts +16 -0
  107. package/es/upload-photo/index.d.ts +28 -0
  108. package/es/upload-preview/index.d.ts +9 -0
  109. package/es/utils/form-methods.d.ts +3 -0
  110. package/es/utils/form-utils.d.ts +77 -0
  111. package/es/utils/form-utils.js +2 -2
  112. package/es/utils/option-utils.d.ts +29 -0
  113. package/es/utils/tools.d.ts +1 -1
  114. package/es/utils/useAsyncEffect.d.ts +3 -0
  115. package/lib/admin-amount/index.d.ts +9 -0
  116. package/lib/admin-amount/style/index.d.ts +0 -0
  117. package/lib/admin-upload/float.d.ts +16 -0
  118. package/lib/admin-upload/index.d.ts +36 -0
  119. package/lib/admin-upload/index.js +2 -2
  120. package/lib/admin-upload/modal.d.ts +17 -0
  121. package/lib/alert-message/index.d.ts +5 -0
  122. package/lib/babel-plugin-import-option.d.ts +7 -0
  123. package/lib/back-top/index.d.ts +5 -0
  124. package/lib/button/index.d.ts +11 -0
  125. package/lib/card-detail/card-group.d.ts +12 -0
  126. package/lib/card-detail/card-item.d.ts +9 -0
  127. package/lib/card-detail/card-page.d.ts +12 -0
  128. package/lib/card-detail/card.d.ts +10 -0
  129. package/lib/card-detail/utils.d.ts +5 -0
  130. package/lib/checkbox/index.d.ts +24 -0
  131. package/lib/claim-list/index.d.ts +48 -0
  132. package/lib/confirmation/index.d.ts +14 -0
  133. package/lib/date-picker/buddhist.d.ts +6 -0
  134. package/lib/date-picker/index.d.ts +13 -0
  135. package/lib/declaration/index.d.ts +9 -0
  136. package/lib/detail-panel/index.d.ts +18 -0
  137. package/lib/filter/checkBox.d.ts +12 -0
  138. package/lib/filter/index.d.ts +52 -0
  139. package/lib/filter/rangePicker.d.ts +18 -0
  140. package/lib/form/addable-section/index.d.ts +20 -0
  141. package/lib/form/addable-section/index.js +3 -2
  142. package/lib/form/element/index.d.ts +12 -0
  143. package/lib/form/element/index.js +3 -2
  144. package/lib/form/elements.d.ts +8 -0
  145. package/lib/form/hstep/index.d.ts +17 -0
  146. package/lib/form/hsteps/index.d.ts +21 -0
  147. package/lib/form/index.d.ts +4 -0
  148. package/lib/form/index.js +4 -2
  149. package/lib/form/login/index.d.ts +9 -0
  150. package/lib/form/page/index.d.ts +10 -0
  151. package/lib/form/pages/index.d.ts +10 -0
  152. package/lib/form/section/index.d.ts +16 -0
  153. package/lib/form/section/index.js +3 -2
  154. package/lib/form/step/index.d.ts +17 -0
  155. package/lib/form/steps/index.d.ts +10 -0
  156. package/lib/form-context.d.ts +28 -0
  157. package/lib/form-step-context.d.ts +6 -0
  158. package/lib/free-form/addable-section/index.d.ts +19 -0
  159. package/lib/free-form/addable-section/index.js +3 -2
  160. package/lib/free-form/element/index.d.ts +11 -0
  161. package/lib/free-form/element/index.js +3 -2
  162. package/lib/free-form/index.d.ts +11 -0
  163. package/lib/free-form/index.js +4 -2
  164. package/lib/free-form/page/index.d.ts +16 -0
  165. package/lib/free-form/pages/index.d.ts +10 -0
  166. package/lib/free-form/section/index.d.ts +13 -0
  167. package/lib/free-form/section/index.js +3 -2
  168. package/lib/free-form/step/index.d.ts +21 -0
  169. package/lib/free-form/steps/index.d.ts +12 -0
  170. package/lib/home-menu/index.d.ts +20 -0
  171. package/lib/hooks/ocr/index.d.ts +3 -0
  172. package/lib/hooks/ocr/micro-blink.d.ts +10 -0
  173. package/lib/index.d.ts +47 -0
  174. package/lib/input/amount.d.ts +14 -0
  175. package/lib/input/credit-card.d.ts +13 -0
  176. package/lib/input/email.d.ts +6 -0
  177. package/lib/input/expiry-date.d.ts +16 -0
  178. package/lib/input/index.d.ts +14 -0
  179. package/lib/input/input-date.d.ts +8 -0
  180. package/lib/input/input-id.d.ts +6 -0
  181. package/lib/input/input-number.d.ts +6 -0
  182. package/lib/input/input.d.ts +9 -0
  183. package/lib/input/otp.d.ts +11 -0
  184. package/lib/input/password.d.ts +6 -0
  185. package/lib/input/phone-number.d.ts +14 -0
  186. package/lib/input/style/amount/index.d.ts +2 -0
  187. package/lib/input/style/index.d.ts +2 -0
  188. package/lib/input/style/input-date/index.d.ts +2 -0
  189. package/lib/input/style/otp/index.d.ts +2 -0
  190. package/lib/input/style/phone-number/index.d.ts +2 -0
  191. package/lib/input/style/text-area/index.d.ts +2 -0
  192. package/lib/input/text-area.d.ts +6 -0
  193. package/lib/layout/header.d.ts +5 -0
  194. package/lib/layout/index.d.ts +56 -0
  195. package/lib/locale/locale-provider.d.ts +11 -0
  196. package/lib/login-page/index.d.ts +7 -0
  197. package/lib/media/index.d.ts +19 -0
  198. package/lib/message/index.d.ts +12 -0
  199. package/lib/message/style/index.d.ts +1 -0
  200. package/lib/mobile-insurer-detail/index.d.ts +40 -0
  201. package/lib/mobile-insurer-list/index.d.ts +17 -0
  202. package/lib/modal/index.d.ts +31 -0
  203. package/lib/ocr/index.d.ts +15 -0
  204. package/lib/ocr/micro-blink/index.d.ts +8 -0
  205. package/lib/ocr/micro-blink/style/index.d.ts +1 -0
  206. package/lib/platform/platform-card/index.d.ts +12 -0
  207. package/lib/platform/switch-platform/index.d.ts +12 -0
  208. package/lib/policy-list/policy-card.d.ts +48 -0
  209. package/lib/radio/index.d.ts +24 -0
  210. package/lib/search-box/index.d.ts +19 -0
  211. package/lib/select/attached-select.d.ts +17 -0
  212. package/lib/select/select.d.ts +13 -0
  213. package/lib/select/time-select.d.ts +7 -0
  214. package/lib/status-box/index.d.ts +11 -0
  215. package/lib/table/index.d.ts +42 -0
  216. package/lib/tabs/index.d.ts +15 -0
  217. package/lib/types.d.ts +183 -0
  218. package/lib/typography/index.d.ts +14 -0
  219. package/lib/upload/index.d.ts +16 -0
  220. package/lib/upload-photo/index.d.ts +28 -0
  221. package/lib/upload-preview/index.d.ts +9 -0
  222. package/lib/utils/form-methods.d.ts +3 -0
  223. package/lib/utils/form-utils.d.ts +77 -0
  224. package/lib/utils/form-utils.js +2 -2
  225. package/lib/utils/option-utils.d.ts +29 -0
  226. package/lib/utils/tools.d.ts +1 -1
  227. package/lib/utils/useAsyncEffect.d.ts +3 -0
  228. package/package.json +1 -1
@@ -30,7 +30,7 @@ export default function DumiContextWrapper() {
30
30
 
31
31
  return (
32
32
  <SiteContext.Provider value={{
33
- pkg: {"name":"iglooform","version":"3.0.6","license":"MIT"},
33
+ pkg: {"name":"iglooform","version":"3.0.7","license":"MIT"},
34
34
  historyType: "browser",
35
35
  entryExports,
36
36
  demos,
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ import { IglooTypographyProps } from '../typography';
3
+ import { StatisticProps } from 'antd';
4
+ interface Props extends StatisticProps {
5
+ amount: number;
6
+ level?: IglooTypographyProps['level'];
7
+ }
8
+ declare const Amount: FC<Props>;
9
+ export default Amount;
File without changes
@@ -0,0 +1,16 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ export interface FloatProps {
3
+ title?: string;
4
+ visible: boolean;
5
+ uploadingNumber: number;
6
+ processingNumber: number;
7
+ doneNumber: number;
8
+ formatTips?: (props: {
9
+ uploading: number;
10
+ processing: number;
11
+ done: number;
12
+ }) => string;
13
+ onClose: (props: any) => any;
14
+ }
15
+ declare const Float: FC<PropsWithChildren<FloatProps>>;
16
+ export default Float;
@@ -0,0 +1,36 @@
1
+ import { FC } from 'react';
2
+ import { RequestMethod } from 'umi-request';
3
+ import { IglooButtonProps } from '../button';
4
+ import { UploadProps } from 'antd/es/upload';
5
+ import { Job } from './job-list';
6
+ import './style';
7
+ export interface AdminUploadProps {
8
+ dataSource: string | {
9
+ label: string;
10
+ value: string;
11
+ }[];
12
+ requestMethod: RequestMethod;
13
+ uploadMethod: (dataSource: string, file: File, enableApiAuth: boolean, onProgess: (e: ProgressEvent) => any) => {
14
+ abort: () => any;
15
+ result: Promise<{
16
+ success: boolean;
17
+ errorMessage?: string;
18
+ }>;
19
+ };
20
+ modalTitle?: string;
21
+ floatTitle?: string;
22
+ buttonText?: string;
23
+ buttonType?: IglooButtonProps['type'];
24
+ enableApiAuth?: boolean;
25
+ accept?: UploadProps['accept'];
26
+ refreshInteval?: number;
27
+ formatTips?: (props: {
28
+ uploading: number;
29
+ processing: number;
30
+ done: number;
31
+ }) => string;
32
+ selectPlaceholder?: string;
33
+ onFinish?: (jobs: Job[]) => any;
34
+ }
35
+ declare const AdminUpload: FC<AdminUploadProps>;
36
+ export default AdminUpload;
@@ -343,7 +343,7 @@ var AdminUpload = function AdminUpload(_ref) {
343
343
  }), /*#__PURE__*/_jsx(Import, {
344
344
  title: modalTitle,
345
345
  accept: accept,
346
- open: showModal,
346
+ visible: showModal,
347
347
  dataSource: dataSource,
348
348
  selectPlaceholder: selectPlaceholder,
349
349
  onClose: function onClose() {
@@ -363,7 +363,7 @@ var AdminUpload = function AdminUpload(_ref) {
363
363
  })
364
364
  }), /*#__PURE__*/_jsx(Float, {
365
365
  title: floatTitle,
366
- open: showFloat,
366
+ visible: showFloat,
367
367
  uploadingNumber: uploadJobs.length,
368
368
  processingNumber: processingJobs.length,
369
369
  doneNumber: doneJobs.length,
@@ -0,0 +1,17 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { RcFile } from 'antd/lib/upload';
3
+ export interface ImportProps {
4
+ title?: string;
5
+ dataSource: string | {
6
+ label: string;
7
+ value: string;
8
+ }[];
9
+ accept?: string;
10
+ visible: boolean;
11
+ tips?: string;
12
+ selectPlaceholder?: string;
13
+ onUpload: (file: RcFile, dataSourceId: string) => any;
14
+ onClose: (props: any) => any;
15
+ }
16
+ declare const Import: FC<PropsWithChildren<ImportProps>>;
17
+ export default Import;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import './style';
3
+ import { AlertProps } from 'antd/lib/alert';
4
+ declare const IglooAlertMessage: FC<AlertProps>;
5
+ export default IglooAlertMessage;
@@ -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,11 @@
1
+ import { ButtonProps } from 'antd/es/button';
2
+ import { FC, IglooComponentProps } from '../types';
3
+ import './style';
4
+ export interface IglooButtonProps extends IglooComponentProps, ButtonProps {
5
+ className?: string;
6
+ }
7
+ declare const IglooButton: FC<IglooButtonProps>;
8
+ export default IglooButton;
9
+ export declare const GreenButton: FC<IglooButtonProps>;
10
+ export declare const YellowButton: FC<IglooButtonProps>;
11
+ export declare const RedButton: FC<IglooButtonProps>;
@@ -0,0 +1,12 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import './style';
3
+ interface ICardGroupProps {
4
+ className?: string;
5
+ style?: {
6
+ [key: string]: string;
7
+ };
8
+ subHeading?: string | any;
9
+ subStatus?: any;
10
+ }
11
+ declare const IglooCardGroup: FC<PropsWithChildren<ICardGroupProps>>;
12
+ export default IglooCardGroup;
@@ -0,0 +1,9 @@
1
+ import { FC, ReactNode, PropsWithChildren } from 'react';
2
+ import './style';
3
+ interface ICardItemProps {
4
+ span?: number;
5
+ title?: ReactNode;
6
+ className?: string;
7
+ }
8
+ declare const IglooCardItem: FC<PropsWithChildren<ICardItemProps>>;
9
+ export default IglooCardItem;
@@ -0,0 +1,12 @@
1
+ import { ReactNode, FC, CSSProperties, PropsWithChildren } from 'react';
2
+ import './style';
3
+ export interface ICardPageProps {
4
+ title: string;
5
+ pageTitleIcon?: ReactNode;
6
+ pageStatusIcon?: ReactNode;
7
+ extraButtons?: ReactNode[];
8
+ className?: string;
9
+ style?: CSSProperties;
10
+ }
11
+ declare const IglooCardPage: FC<PropsWithChildren<ICardPageProps>>;
12
+ export default IglooCardPage;
@@ -0,0 +1,10 @@
1
+ import { FC, ReactNode, PropsWithChildren } from 'react';
2
+ import './style';
3
+ interface ICard {
4
+ title: string;
5
+ contentTitle?: ReactNode;
6
+ contentStatus?: any;
7
+ className?: string;
8
+ }
9
+ declare const IglooCard: FC<PropsWithChildren<ICard>>;
10
+ export default IglooCard;
@@ -0,0 +1,5 @@
1
+ import { ReactComponentElement } from 'react';
2
+ import './style';
3
+ export declare function findCardItem(children?: ReactComponentElement<any>[]): any[];
4
+ export declare function wrapCardItem(children?: ReactComponentElement<any>[], hasCustomizeWrap?: boolean): (import("react/jsx-runtime").JSX.Element | null)[];
5
+ export declare function DealWithCardItem(children: any, hasCustomizeWrap?: boolean): (import("react/jsx-runtime").JSX.Element | null)[];
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import { CheckboxProps, CheckboxGroupProps } from 'antd/es/checkbox';
3
+ import { FC, IglooComponentProps } from '../types';
4
+ import { ComponentProps } from '../utils/option-utils';
5
+ import { DefaultOptionType } from 'rc-select/lib/Select';
6
+ import './style';
7
+ interface Props extends IglooComponentProps, CheckboxProps {
8
+ }
9
+ export interface Option extends DefaultOptionType {
10
+ extraInfo?: {
11
+ content: any;
12
+ shownTrigger: 'unchecked' | 'checked' | 'all';
13
+ };
14
+ }
15
+ export interface IProps extends IglooComponentProps, Omit<CheckboxGroupProps, 'options'>, ComponentProps {
16
+ className?: string;
17
+ radioType?: string;
18
+ options: Option[];
19
+ preview?: boolean;
20
+ mutuallyExclusions?: Record<string, string[]>;
21
+ }
22
+ declare const IglooCheckbox: FC<Props>;
23
+ export default IglooCheckbox;
24
+ export declare const CheckboxGroup: FC<import("react").PropsWithChildren<import("../utils/option-utils").HOCProps & IProps>>;
@@ -0,0 +1,48 @@
1
+ import { ColumnType } from 'antd/lib/table';
2
+ import './style';
3
+ interface IClaimColProps extends ColumnType<object> {
4
+ }
5
+ interface InfoText {
6
+ text: string;
7
+ link?: {
8
+ linkText: string;
9
+ onClick?: (params?: any) => void;
10
+ };
11
+ }
12
+ interface InfoItem {
13
+ title: string;
14
+ info: InfoText | string | Array<string | InfoText> | any;
15
+ span?: 6 | 12 | 18 | 24;
16
+ hide?: boolean;
17
+ }
18
+ interface IClaimDateSource {
19
+ messageBar?: any;
20
+ extendStatus?: boolean;
21
+ infoGroups?: {
22
+ sectionName?: string;
23
+ infoItems: InfoItem[];
24
+ }[];
25
+ [key: string]: any;
26
+ }
27
+ interface ClaimList {
28
+ columns: IClaimColProps[];
29
+ dateSource: IClaimDateSource[];
30
+ rowKey: string;
31
+ className?: string;
32
+ style?: {
33
+ [key: string]: any;
34
+ };
35
+ onClickRow?: (record?: IClaimDateSource) => void;
36
+ emptyText?: any;
37
+ loading?: boolean;
38
+ mobileStatusProps?: (record?: any) => any;
39
+ mobileInsurerName?: (record?: any) => any;
40
+ mobileInsurerLogo?: (record?: any) => any;
41
+ mobileSubTitle?: (record?: any) => any;
42
+ mobileRedDot?: (record?: any) => boolean;
43
+ mobileTagOnClick?: (record?: any, e?: any) => any;
44
+ mobileTagRender?: (record?: IClaimDateSource) => any;
45
+ mobileExtraRender?: () => any;
46
+ }
47
+ declare const ClaimList: (props: ClaimList) => import("react/jsx-runtime").JSX.Element;
48
+ export default ClaimList;
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ import { FC } from '../types';
3
+ export interface ConfirmationProps {
4
+ onChange?: Function;
5
+ value?: boolean;
6
+ message?: ReactNode;
7
+ modalContent?: ReactNode;
8
+ modalTitle?: ReactNode;
9
+ okText?: ReactNode;
10
+ cancelText?: ReactNode;
11
+ href?: string;
12
+ }
13
+ declare const Confirmation: FC<ConfirmationProps>;
14
+ export default Confirmation;
@@ -0,0 +1,6 @@
1
+ import { DatePickerProps } from 'antd/es/date-picker';
2
+ import { FC, IglooComponentProps } from '../types';
3
+ import './style';
4
+ type Props = DatePickerProps & IglooComponentProps;
5
+ declare const IglooBuddhistDatePicker: FC<Props>;
6
+ export default IglooBuddhistDatePicker;
@@ -0,0 +1,13 @@
1
+ import { DatePickerProps, RangePickerProps, MonthPickerProps, WeekPickerProps } from 'antd/es/date-picker';
2
+ import { FC, IglooComponentProps } from '../types';
3
+ import { Dayjs } from 'dayjs';
4
+ import './style';
5
+ export { default as IglooBuddhistDatePicker } from './buddhist';
6
+ type Props = Omit<DatePickerProps, 'value'> & IglooComponentProps & {
7
+ value?: Dayjs | null | 0;
8
+ };
9
+ declare const IglooDatePicker: FC<Props>;
10
+ export default IglooDatePicker;
11
+ export declare const IglooRangePicker: FC<RangePickerProps & IglooComponentProps>;
12
+ export declare const IglooWeekPicker: FC<WeekPickerProps & IglooComponentProps>;
13
+ export declare const IglooMonthPicker: FC<MonthPickerProps & IglooComponentProps>;
@@ -0,0 +1,9 @@
1
+ import { FC, IglooComponentProps } from '../types';
2
+ import './style';
3
+ export interface Props extends IglooComponentProps {
4
+ title?: string;
5
+ description?: string;
6
+ declaration?: string;
7
+ }
8
+ declare const Declaration: FC<Props>;
9
+ export default Declaration;
@@ -0,0 +1,18 @@
1
+ import { FC, ReactNode, PropsWithChildren } from 'react';
2
+ import { IStatusBoxProps } from '../status-box';
3
+ import './style';
4
+ interface DetailPanelProps {
5
+ title: ReactNode;
6
+ subTitle?: ReactNode;
7
+ icon?: ReactNode;
8
+ status?: IStatusBoxProps;
9
+ }
10
+ interface DetailItemProps {
11
+ title: ReactNode;
12
+ value: any;
13
+ }
14
+ type DetailPanel = FC<PropsWithChildren<DetailPanelProps>> & {
15
+ DetailItem: FC<DetailItemProps>;
16
+ };
17
+ declare const DetailPanel: DetailPanel;
18
+ export default DetailPanel;
@@ -0,0 +1,12 @@
1
+ declare const CreateCheckBoxFilter: (props: {
2
+ title: any;
3
+ configList: any[];
4
+ optionKey: string;
5
+ allSelected: any[];
6
+ handleOptionsChange: any;
7
+ chooseed?: string[] | undefined;
8
+ onChange?: any;
9
+ disabled?: any[] | undefined;
10
+ setConfirmValue?: any;
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
+ export default CreateCheckBoxFilter;
@@ -0,0 +1,52 @@
1
+ import { ReactNode } from 'react';
2
+ import './style';
3
+ export interface IFrameConfig {
4
+ type: 'date' | 'mult' | 'single' | 'customize';
5
+ filterItemTitle?: ReactNode;
6
+ default?: any[] | any;
7
+ key: string;
8
+ disabled?: string[];
9
+ disabledDate?: (p: any) => any;
10
+ format?: string;
11
+ options?: {
12
+ label: any;
13
+ value: any;
14
+ span?: 8 | 12 | 16 | 24;
15
+ }[];
16
+ dateRangeConfig?: {
17
+ custom?: any[];
18
+ lastDay?: any[];
19
+ lastSevenDays?: any[];
20
+ lastMonth?: any[];
21
+ thisMonth?: any[];
22
+ };
23
+ canNotDelete?: boolean;
24
+ tagTitle?: (value?: any) => string;
25
+ render?: (value: any, onChange: any) => ReactNode;
26
+ onChange?: any;
27
+ }
28
+ export interface IFilterProps {
29
+ initValue?: {
30
+ [key: string]: any;
31
+ };
32
+ parentFilterCallBack?: (params?: any) => void;
33
+ showIdSelect?: boolean;
34
+ idKeyTypes?: {
35
+ label: string;
36
+ value: number | string;
37
+ }[];
38
+ filterTitle?: ReactNode;
39
+ filterItems?: IFrameConfig[];
40
+ placeholder?: string;
41
+ idKeyTypeDefault?: string;
42
+ onFilter?: (params?: any) => void;
43
+ showDefaultOptions?: boolean;
44
+ deleteAllTagsType?: 'closeAllCanDelete' | 'restFilters';
45
+ searchInputDefault?: string | number;
46
+ searchWithFilter?: boolean;
47
+ inputOnly?: boolean;
48
+ beforeOpenFilter?: any;
49
+ resetCallBack?: any;
50
+ }
51
+ declare const FilterComponent: (props: IFilterProps) => import("react/jsx-runtime").JSX.Element;
52
+ export default FilterComponent;
@@ -0,0 +1,18 @@
1
+ import './style';
2
+ import '../date-picker/style';
3
+ declare const CreateRangePickerFilter: (props: {
4
+ optionKey: string;
5
+ valueConfirm: any;
6
+ onFocus: any;
7
+ dateRangeConfig: any;
8
+ pickerOpenStatus: boolean;
9
+ setPickerOpenStatus: any;
10
+ title?: string | undefined;
11
+ choosed?: any;
12
+ disabledDate?: any;
13
+ setRangeType?: any;
14
+ format?: string | undefined;
15
+ onChange?: any;
16
+ tiemRange?: number | undefined;
17
+ }) => import("react/jsx-runtime").JSX.Element;
18
+ export default CreateRangePickerFilter;
@@ -0,0 +1,20 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { FormItemProps } from 'antd/es/form';
3
+ import { FormItemConfig, FormItemName } from '../../types';
4
+ import './style';
5
+ export interface AddableSectionProps {
6
+ parentName?: FormItemName;
7
+ formItemProps?: FormItemProps;
8
+ config: FormItemConfig;
9
+ preview?: boolean;
10
+ disabled?: boolean;
11
+ setShowStepButton?: (showButton: boolean) => void;
12
+ max?: number;
13
+ min?: number;
14
+ initCount?: number;
15
+ addButtonText?: string;
16
+ addButtonIcon?: ReactNode;
17
+ description?: string | ReactNode;
18
+ }
19
+ declare const AddableSection: FC<AddableSectionProps>;
20
+ export default AddableSection;
@@ -57,7 +57,8 @@ var AddableSection = function AddableSection(_ref) {
57
57
  formatMessage = _useContext.formatMessage;
58
58
  var _useContext2 = useContext(FormContext),
59
59
  form = _useContext2.form,
60
- requiredMark = _useContext2.requiredMark;
60
+ requiredMark = _useContext2.requiredMark,
61
+ validationCodeExtraParams = _useContext2.validationCodeExtraParams;
61
62
  var namePath = calcNamePath(parentName, name);
62
63
  var reducer = useCallback(function (state, action) {
63
64
  if (action.type === 'add') {
@@ -97,7 +98,7 @@ var AddableSection = function AddableSection(_ref) {
97
98
  dispath = _useReducer2[1];
98
99
  var _calcFormItemProps = calcFormItemProps(config, {
99
100
  requiredMark: requiredMark
100
- }, form, parentName),
101
+ }, form, parentName, validationCodeExtraParams),
101
102
  formItemProps = _calcFormItemProps.formItemProps,
102
103
  elementProps = _calcFormItemProps.elementProps,
103
104
  display = _calcFormItemProps.display;
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { FormItemConfig, FormItemName } from '../../types';
3
+ import './style';
4
+ interface ElementProps {
5
+ config: FormItemConfig;
6
+ parentName?: FormItemName;
7
+ preview?: boolean;
8
+ disabled?: boolean;
9
+ setShowStepButton?: (showButton: boolean) => void;
10
+ }
11
+ declare const Element: FC<ElementProps>;
12
+ export default Element;
@@ -48,7 +48,8 @@ var Element = function Element(_ref) {
48
48
  form = _useContext.form,
49
49
  requiredMark = _useContext.requiredMark,
50
50
  registerDependencies = _useContext.registerDependencies,
51
- handleValuesChange = _useContext.handleValuesChange;
51
+ handleValuesChange = _useContext.handleValuesChange,
52
+ validationCodeExtraParams = _useContext.validationCodeExtraParams;
52
53
  var _useReducer = useReducer(function (r) {
53
54
  return r + 1;
54
55
  }, 0),
@@ -118,7 +119,7 @@ var Element = function Element(_ref) {
118
119
  md = _useBreakpoint.md;
119
120
  var _calcFormItemProps = calcFormItemProps(config, _objectSpread(_objectSpread({}, extraConfig), {}, {
120
121
  requiredMark: requiredMark
121
- }), form, parentName),
122
+ }), form, parentName, validationCodeExtraParams),
122
123
  colProps = _calcFormItemProps.colProps,
123
124
  formItemProps = _calcFormItemProps.formItemProps,
124
125
  elementProps = _calcFormItemProps.elementProps,
@@ -0,0 +1,8 @@
1
+ import { FormItemConfig, FormItemExtraConfig } from '../types';
2
+ type UseComponentHook = (config: FormItemConfig) => {
3
+ Component: any;
4
+ formItemProps: FormItemExtraConfig;
5
+ withoutForm: boolean;
6
+ };
7
+ declare const useComponent: UseComponentHook;
8
+ export default useComponent;
@@ -0,0 +1,17 @@
1
+ import { FC } from 'react';
2
+ import { FormItemConfig, FormItemName } from '../../types';
3
+ import './style';
4
+ export interface StepProps {
5
+ parentName?: FormItemName;
6
+ config: FormItemConfig;
7
+ edit: boolean;
8
+ preview: boolean;
9
+ index: number;
10
+ total: number;
11
+ handleNext(): void;
12
+ handleEdit(index: number): void;
13
+ showLastIndex?: boolean;
14
+ shouldScroll: boolean;
15
+ }
16
+ declare const Step: FC<StepProps>;
17
+ export default Step;
@@ -0,0 +1,21 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { FormItemConfig, FormItemName } from '../../types';
3
+ import './style';
4
+ import { ConfirmationProps } from '../../confirmation';
5
+ export interface HStepsProps {
6
+ config: FormItemConfig & {
7
+ confirmations?: {
8
+ [key: string]: {
9
+ required: boolean;
10
+ confirmation?: ConfirmationProps;
11
+ requiredMessage?: string;
12
+ };
13
+ };
14
+ withReview?: boolean;
15
+ description?: ReactNode;
16
+ };
17
+ parentName?: FormItemName;
18
+ name?: FormItemName;
19
+ }
20
+ declare const HSteps: FC<HStepsProps>;
21
+ export default HSteps;
@@ -0,0 +1,4 @@
1
+ import { Form as FormType } from '../types';
2
+ import './style';
3
+ declare const ExportedForm: FormType;
4
+ export default ExportedForm;
package/es/form/index.js CHANGED
@@ -60,7 +60,8 @@ var IglooForm = function IglooForm(props, ref) {
60
60
  stepDirection = _props$stepDirection === void 0 ? 'vertical' : _props$stepDirection,
61
61
  _props$customizeCompo = props.customizeComponents,
62
62
  customizeComponents = _props$customizeCompo === void 0 ? {} : _props$customizeCompo,
63
- ocr = props.ocr;
63
+ ocr = props.ocr,
64
+ validationCodeExtraParams = props.validationCodeExtraParams;
64
65
  var _Form$useForm = Form.useForm(),
65
66
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
66
67
  innerForm = _Form$useForm2[0];
@@ -233,7 +234,8 @@ var IglooForm = function IglooForm(props, ref) {
233
234
  getRuleValidationApi: getRuleValidationApi,
234
235
  handleValuesChange: handleValuesChange,
235
236
  customizeComponents: customizeComponents,
236
- ocrHooks: ocrHooks
237
+ ocrHooks: ocrHooks,
238
+ validationCodeExtraParams: validationCodeExtraParams
237
239
  }, locales),
238
240
  children: /*#__PURE__*/_jsxs(Form, {
239
241
  form: form,
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ import { FormItemConfig, FormItemName } from '../../types';
3
+ import './style';
4
+ export interface LoginProps {
5
+ parentName?: FormItemName;
6
+ config: FormItemConfig;
7
+ }
8
+ declare const Login: FC<LoginProps>;
9
+ export default Login;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { FormItemConfig, FormItemName } from '../../types';
3
+ import './style';
4
+ export interface PageProps {
5
+ parentName?: FormItemName;
6
+ config: FormItemConfig;
7
+ showFooter?: boolean;
8
+ }
9
+ declare const Page: FC<PageProps>;
10
+ export default Page;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { FormItemConfig, FormItemName } from '../../types';
3
+ import './style';
4
+ export interface PagesProps {
5
+ parentName?: FormItemName;
6
+ config: FormItemConfig;
7
+ name?: FormItemName;
8
+ }
9
+ declare const Pages: FC<PagesProps>;
10
+ export default Pages;
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ import { FormItemProps } from 'antd/es/form';
3
+ import { FormItemConfig, FormItemName } from '../../types';
4
+ import './style';
5
+ export interface SectionProps {
6
+ parentName?: FormItemName;
7
+ formItemProps?: FormItemProps;
8
+ config: FormItemConfig;
9
+ preview?: boolean;
10
+ disabled?: boolean;
11
+ collapsable?: boolean;
12
+ defaultCollapsed?: boolean;
13
+ setShowStepButton?: (showButton: boolean) => void;
14
+ }
15
+ declare const Section: FC<SectionProps>;
16
+ export default Section;
@@ -54,7 +54,8 @@ var Section = function Section(_ref) {
54
54
  toggle = _useState2[1];
55
55
  var _useContext = useContext(FormContext),
56
56
  form = _useContext.form,
57
- requiredMark = _useContext.requiredMark;
57
+ requiredMark = _useContext.requiredMark,
58
+ validationCodeExtraParams = _useContext.validationCodeExtraParams;
58
59
  var _useContext2 = useContext(StepContext),
59
60
  registerSection = _useContext2.registerSection;
60
61
  var namePath = calcNamePath(parentName, name);
@@ -67,7 +68,7 @@ var Section = function Section(_ref) {
67
68
  }, []);
68
69
  var _calcFormItemProps = calcFormItemProps(rest, {
69
70
  requiredMark: requiredMark
70
- }, form, parentName),
71
+ }, form, parentName, validationCodeExtraParams),
71
72
  formItemProps = _calcFormItemProps.formItemProps,
72
73
  elementProps = _calcFormItemProps.elementProps,
73
74
  display = _calcFormItemProps.display;