iglooform 3.0.7 → 3.0.8

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 (208) 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/modal.d.ts +17 -0
  7. package/es/alert-message/index.d.ts +5 -0
  8. package/es/babel-plugin-import-option.d.ts +7 -0
  9. package/es/back-top/index.d.ts +5 -0
  10. package/es/button/index.d.ts +11 -0
  11. package/es/card-detail/card-group.d.ts +12 -0
  12. package/es/card-detail/card-item.d.ts +9 -0
  13. package/es/card-detail/card-page.d.ts +12 -0
  14. package/es/card-detail/card.d.ts +10 -0
  15. package/es/card-detail/utils.d.ts +5 -0
  16. package/es/checkbox/index.d.ts +24 -0
  17. package/es/claim-list/index.d.ts +48 -0
  18. package/es/confirmation/index.d.ts +14 -0
  19. package/es/date-picker/buddhist.d.ts +6 -0
  20. package/es/date-picker/index.d.ts +13 -0
  21. package/es/declaration/index.d.ts +9 -0
  22. package/es/detail-panel/index.d.ts +18 -0
  23. package/es/filter/checkBox.d.ts +12 -0
  24. package/es/filter/index.d.ts +52 -0
  25. package/es/filter/rangePicker.d.ts +18 -0
  26. package/es/form/addable-section/index.d.ts +20 -0
  27. package/es/form/element/index.d.ts +12 -0
  28. package/es/form/elements.d.ts +8 -0
  29. package/es/form/hstep/index.d.ts +17 -0
  30. package/es/form/hsteps/index.d.ts +21 -0
  31. package/es/form/index.d.ts +4 -0
  32. package/es/form/login/index.d.ts +9 -0
  33. package/es/form/page/index.d.ts +10 -0
  34. package/es/form/pages/index.d.ts +10 -0
  35. package/es/form/section/index.d.ts +16 -0
  36. package/es/form/step/index.d.ts +17 -0
  37. package/es/form/steps/index.d.ts +10 -0
  38. package/es/form-context.d.ts +27 -0
  39. package/es/form-step-context.d.ts +6 -0
  40. package/es/free-form/addable-section/index.d.ts +19 -0
  41. package/es/free-form/element/index.d.ts +11 -0
  42. package/es/free-form/index.d.ts +11 -0
  43. package/es/free-form/page/index.d.ts +16 -0
  44. package/es/free-form/pages/index.d.ts +10 -0
  45. package/es/free-form/section/index.d.ts +13 -0
  46. package/es/free-form/step/index.d.ts +21 -0
  47. package/es/free-form/steps/index.d.ts +12 -0
  48. package/es/home-menu/index.d.ts +20 -0
  49. package/es/hooks/ocr/index.d.ts +3 -0
  50. package/es/hooks/ocr/micro-blink.d.ts +10 -0
  51. package/es/index.d.ts +47 -0
  52. package/es/input/amount.d.ts +14 -0
  53. package/es/input/credit-card.d.ts +13 -0
  54. package/es/input/email.d.ts +6 -0
  55. package/es/input/expiry-date.d.ts +16 -0
  56. package/es/input/index.d.ts +14 -0
  57. package/es/input/input-date.d.ts +8 -0
  58. package/es/input/input-id.d.ts +6 -0
  59. package/es/input/input-number.d.ts +6 -0
  60. package/es/input/input.d.ts +9 -0
  61. package/es/input/otp.d.ts +11 -0
  62. package/es/input/password.d.ts +6 -0
  63. package/es/input/phone-number.d.ts +14 -0
  64. package/es/input/style/amount/index.d.ts +2 -0
  65. package/es/input/style/index.d.ts +2 -0
  66. package/es/input/style/input-date/index.d.ts +2 -0
  67. package/es/input/style/otp/index.d.ts +2 -0
  68. package/es/input/style/phone-number/index.d.ts +2 -0
  69. package/es/input/style/text-area/index.d.ts +2 -0
  70. package/es/input/text-area.d.ts +6 -0
  71. package/es/layout/header.d.ts +5 -0
  72. package/es/layout/index.d.ts +56 -0
  73. package/es/locale/locale-provider.d.ts +11 -0
  74. package/es/login-page/index.d.ts +7 -0
  75. package/es/media/index.d.ts +19 -0
  76. package/es/message/index.d.ts +12 -0
  77. package/es/message/style/index.d.ts +1 -0
  78. package/es/mobile-insurer-detail/index.d.ts +40 -0
  79. package/es/mobile-insurer-list/index.d.ts +17 -0
  80. package/es/modal/index.d.ts +30 -0
  81. package/es/ocr/index.d.ts +15 -0
  82. package/es/ocr/micro-blink/index.d.ts +8 -0
  83. package/es/ocr/micro-blink/style/index.d.ts +1 -0
  84. package/es/platform/platform-card/index.d.ts +12 -0
  85. package/es/platform/switch-platform/index.d.ts +12 -0
  86. package/es/policy-list/policy-card.d.ts +48 -0
  87. package/es/radio/index.d.ts +24 -0
  88. package/es/search-box/index.d.ts +19 -0
  89. package/es/select/attached-select.d.ts +17 -0
  90. package/es/select/select.d.ts +13 -0
  91. package/es/select/time-select.d.ts +7 -0
  92. package/es/status-box/index.d.ts +11 -0
  93. package/es/table/index.d.ts +42 -0
  94. package/es/tabs/index.d.ts +15 -0
  95. package/es/types.d.ts +182 -0
  96. package/es/typography/index.d.ts +14 -0
  97. package/es/upload/index.d.ts +16 -0
  98. package/es/upload-photo/index.d.ts +28 -0
  99. package/es/upload-preview/index.d.ts +9 -0
  100. package/es/utils/form-methods.d.ts +3 -0
  101. package/es/utils/form-utils.d.ts +77 -0
  102. package/es/utils/option-utils.d.ts +29 -0
  103. package/es/utils/tools.d.ts +1 -1
  104. package/es/utils/useAsyncEffect.d.ts +3 -0
  105. package/lib/admin-amount/index.d.ts +9 -0
  106. package/lib/admin-amount/style/index.d.ts +0 -0
  107. package/lib/admin-upload/float.d.ts +16 -0
  108. package/lib/admin-upload/index.d.ts +36 -0
  109. package/lib/admin-upload/modal.d.ts +17 -0
  110. package/lib/alert-message/index.d.ts +5 -0
  111. package/lib/babel-plugin-import-option.d.ts +7 -0
  112. package/lib/back-top/index.d.ts +5 -0
  113. package/lib/button/index.d.ts +11 -0
  114. package/lib/card-detail/card-group.d.ts +12 -0
  115. package/lib/card-detail/card-item.d.ts +9 -0
  116. package/lib/card-detail/card-page.d.ts +12 -0
  117. package/lib/card-detail/card.d.ts +10 -0
  118. package/lib/card-detail/utils.d.ts +5 -0
  119. package/lib/checkbox/index.d.ts +24 -0
  120. package/lib/claim-list/index.d.ts +48 -0
  121. package/lib/confirmation/index.d.ts +14 -0
  122. package/lib/date-picker/buddhist.d.ts +6 -0
  123. package/lib/date-picker/index.d.ts +13 -0
  124. package/lib/declaration/index.d.ts +9 -0
  125. package/lib/detail-panel/index.d.ts +18 -0
  126. package/lib/filter/checkBox.d.ts +12 -0
  127. package/lib/filter/index.d.ts +52 -0
  128. package/lib/filter/rangePicker.d.ts +18 -0
  129. package/lib/form/addable-section/index.d.ts +20 -0
  130. package/lib/form/element/index.d.ts +12 -0
  131. package/lib/form/elements.d.ts +8 -0
  132. package/lib/form/hstep/index.d.ts +17 -0
  133. package/lib/form/hsteps/index.d.ts +21 -0
  134. package/lib/form/index.d.ts +4 -0
  135. package/lib/form/login/index.d.ts +9 -0
  136. package/lib/form/page/index.d.ts +10 -0
  137. package/lib/form/pages/index.d.ts +10 -0
  138. package/lib/form/section/index.d.ts +16 -0
  139. package/lib/form/step/index.d.ts +17 -0
  140. package/lib/form/steps/index.d.ts +10 -0
  141. package/lib/form-context.d.ts +27 -0
  142. package/lib/form-step-context.d.ts +6 -0
  143. package/lib/free-form/addable-section/index.d.ts +19 -0
  144. package/lib/free-form/element/index.d.ts +11 -0
  145. package/lib/free-form/index.d.ts +11 -0
  146. package/lib/free-form/page/index.d.ts +16 -0
  147. package/lib/free-form/pages/index.d.ts +10 -0
  148. package/lib/free-form/section/index.d.ts +13 -0
  149. package/lib/free-form/step/index.d.ts +21 -0
  150. package/lib/free-form/steps/index.d.ts +12 -0
  151. package/lib/home-menu/index.d.ts +20 -0
  152. package/lib/hooks/ocr/index.d.ts +3 -0
  153. package/lib/hooks/ocr/micro-blink.d.ts +10 -0
  154. package/lib/index.d.ts +47 -0
  155. package/lib/input/amount.d.ts +14 -0
  156. package/lib/input/credit-card.d.ts +13 -0
  157. package/lib/input/email.d.ts +6 -0
  158. package/lib/input/expiry-date.d.ts +16 -0
  159. package/lib/input/index.d.ts +14 -0
  160. package/lib/input/input-date.d.ts +8 -0
  161. package/lib/input/input-id.d.ts +6 -0
  162. package/lib/input/input-number.d.ts +6 -0
  163. package/lib/input/input.d.ts +9 -0
  164. package/lib/input/otp.d.ts +11 -0
  165. package/lib/input/password.d.ts +6 -0
  166. package/lib/input/phone-number.d.ts +14 -0
  167. package/lib/input/style/amount/index.d.ts +2 -0
  168. package/lib/input/style/index.d.ts +2 -0
  169. package/lib/input/style/input-date/index.d.ts +2 -0
  170. package/lib/input/style/otp/index.d.ts +2 -0
  171. package/lib/input/style/phone-number/index.d.ts +2 -0
  172. package/lib/input/style/text-area/index.d.ts +2 -0
  173. package/lib/input/text-area.d.ts +6 -0
  174. package/lib/layout/header.d.ts +5 -0
  175. package/lib/layout/index.d.ts +56 -0
  176. package/lib/locale/locale-provider.d.ts +11 -0
  177. package/lib/login-page/index.d.ts +7 -0
  178. package/lib/media/index.d.ts +19 -0
  179. package/lib/message/index.d.ts +12 -0
  180. package/lib/message/style/index.d.ts +1 -0
  181. package/lib/mobile-insurer-detail/index.d.ts +40 -0
  182. package/lib/mobile-insurer-list/index.d.ts +17 -0
  183. package/lib/modal/index.d.ts +30 -0
  184. package/lib/ocr/index.d.ts +15 -0
  185. package/lib/ocr/micro-blink/index.d.ts +8 -0
  186. package/lib/ocr/micro-blink/style/index.d.ts +1 -0
  187. package/lib/platform/platform-card/index.d.ts +12 -0
  188. package/lib/platform/switch-platform/index.d.ts +12 -0
  189. package/lib/policy-list/policy-card.d.ts +48 -0
  190. package/lib/radio/index.d.ts +24 -0
  191. package/lib/search-box/index.d.ts +19 -0
  192. package/lib/select/attached-select.d.ts +17 -0
  193. package/lib/select/select.d.ts +13 -0
  194. package/lib/select/time-select.d.ts +7 -0
  195. package/lib/status-box/index.d.ts +11 -0
  196. package/lib/table/index.d.ts +42 -0
  197. package/lib/tabs/index.d.ts +15 -0
  198. package/lib/types.d.ts +182 -0
  199. package/lib/typography/index.d.ts +14 -0
  200. package/lib/upload/index.d.ts +16 -0
  201. package/lib/upload-photo/index.d.ts +28 -0
  202. package/lib/upload-preview/index.d.ts +9 -0
  203. package/lib/utils/form-methods.d.ts +3 -0
  204. package/lib/utils/form-utils.d.ts +77 -0
  205. package/lib/utils/option-utils.d.ts +29 -0
  206. package/lib/utils/tools.d.ts +1 -1
  207. package/lib/utils/useAsyncEffect.d.ts +3 -0
  208. 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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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,10 @@
1
+ import { FC } from 'react';
2
+ import { FormItemConfig, FormItemName } from '../../types';
3
+ import './style';
4
+ export interface StepsProps {
5
+ parentName?: FormItemName;
6
+ config: FormItemConfig;
7
+ name?: FormItemName;
8
+ }
9
+ declare const Steps: FC<StepsProps>;
10
+ export default Steps;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { FormInstance } from 'antd/es/form';
3
+ import { FC, FormItemName, OCRHooks } from './types';
4
+ declare const _default: React.Context<{
5
+ form?: FormInstance<any> | undefined;
6
+ onCancel?(): void;
7
+ cancelText?: string | undefined;
8
+ submitText?: string | undefined;
9
+ previewText?: string | undefined;
10
+ nextText?: string | undefined;
11
+ continueText?: string | undefined;
12
+ validateMessages?: Object | undefined;
13
+ submitting?: boolean | undefined;
14
+ requiredMark?: boolean | undefined;
15
+ showSubmitButton?: boolean | undefined;
16
+ getScrollContainer: () => HTMLElement | Window | null;
17
+ registerDependencies: (name: FormItemName | FormItemName[], updater: Function) => void;
18
+ handleValuesChange(changedFields: any): any;
19
+ uploadApi?: string | undefined;
20
+ selectDatasourceApi?: string | undefined;
21
+ getRuleValidationApi?: string | undefined;
22
+ customizeComponents?: {
23
+ [name: string]: FC<{}>;
24
+ } | undefined;
25
+ ocrHooks?: OCRHooks | undefined;
26
+ }>;
27
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { FormItemName } from './types';
3
+ declare const _default: React.Context<{
4
+ registerSection: (name: FormItemName | FormItemName[], toggle: (collapsed: boolean) => void) => void;
5
+ }>;
6
+ export default _default;
@@ -0,0 +1,19 @@
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 extends FormItemConfig {
6
+ parentName?: FormItemName;
7
+ formItemProps?: FormItemProps;
8
+ preview?: boolean;
9
+ disabledFromParent?: boolean;
10
+ setShowStepButton?: (showButton: boolean) => void;
11
+ max?: number;
12
+ min?: number;
13
+ initCount?: number;
14
+ addButtonText?: string;
15
+ addButtonIcon?: ReactNode;
16
+ description?: string | ReactNode;
17
+ }
18
+ declare const AddableSection: FC<AddableSectionProps>;
19
+ export default AddableSection;
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ import { FormItemConfig, FormItemName } from '../../types';
3
+ import './style';
4
+ interface ElementProps extends FormItemConfig {
5
+ parentName?: FormItemName;
6
+ preview?: boolean;
7
+ setShowStepButton?: (showButton: boolean) => void;
8
+ disabledFromParent?: boolean;
9
+ }
10
+ declare const Element: FC<ElementProps>;
11
+ export default Element;