iglooform 3.0.6 → 3.0.7

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 (194) hide show
  1. package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +1 -1
  2. package/es/alert-message/style/index.less +3 -3
  3. package/es/input/style/otp/index.less +1 -1
  4. package/es/login-page/style/index.less +10 -10
  5. package/es/upload-photo/style/index.less +20 -20
  6. package/es/upload-preview/style/index.less +1 -1
  7. package/lib/alert-message/style/index.less +3 -3
  8. package/lib/input/style/otp/index.less +1 -1
  9. package/lib/login-page/style/index.less +10 -10
  10. package/lib/upload-photo/style/index.less +20 -20
  11. package/lib/upload-preview/style/index.less +1 -1
  12. package/package.json +1 -1
  13. package/es/admin-amount/index.d.ts +0 -9
  14. package/es/admin-upload/float.d.ts +0 -16
  15. package/es/admin-upload/index.d.ts +0 -36
  16. package/es/admin-upload/modal.d.ts +0 -17
  17. package/es/alert-message/index.d.ts +0 -5
  18. package/es/back-top/index.d.ts +0 -5
  19. package/es/button/index.d.ts +0 -11
  20. package/es/card-detail/card-group.d.ts +0 -12
  21. package/es/card-detail/card-item.d.ts +0 -9
  22. package/es/card-detail/card-page.d.ts +0 -12
  23. package/es/card-detail/card.d.ts +0 -10
  24. package/es/card-detail/utils.d.ts +0 -5
  25. package/es/checkbox/index.d.ts +0 -24
  26. package/es/claim-list/index.d.ts +0 -48
  27. package/es/confirmation/index.d.ts +0 -14
  28. package/es/date-picker/buddhist.d.ts +0 -6
  29. package/es/date-picker/index.d.ts +0 -13
  30. package/es/declaration/index.d.ts +0 -9
  31. package/es/detail-panel/index.d.ts +0 -18
  32. package/es/filter/checkBox.d.ts +0 -12
  33. package/es/filter/index.d.ts +0 -52
  34. package/es/filter/rangePicker.d.ts +0 -18
  35. package/es/form/addable-section/index.d.ts +0 -20
  36. package/es/form/element/index.d.ts +0 -12
  37. package/es/form/elements.d.ts +0 -8
  38. package/es/form/hstep/index.d.ts +0 -17
  39. package/es/form/hsteps/index.d.ts +0 -21
  40. package/es/form/index.d.ts +0 -4
  41. package/es/form/login/index.d.ts +0 -9
  42. package/es/form/page/index.d.ts +0 -10
  43. package/es/form/pages/index.d.ts +0 -10
  44. package/es/form/section/index.d.ts +0 -16
  45. package/es/form/step/index.d.ts +0 -17
  46. package/es/form/steps/index.d.ts +0 -10
  47. package/es/form-context.d.ts +0 -27
  48. package/es/form-step-context.d.ts +0 -6
  49. package/es/free-form/addable-section/index.d.ts +0 -19
  50. package/es/free-form/element/index.d.ts +0 -11
  51. package/es/free-form/index.d.ts +0 -11
  52. package/es/free-form/page/index.d.ts +0 -16
  53. package/es/free-form/pages/index.d.ts +0 -10
  54. package/es/free-form/section/index.d.ts +0 -13
  55. package/es/free-form/step/index.d.ts +0 -21
  56. package/es/free-form/steps/index.d.ts +0 -12
  57. package/es/home-menu/index.d.ts +0 -20
  58. package/es/hooks/ocr/index.d.ts +0 -3
  59. package/es/hooks/ocr/micro-blink.d.ts +0 -10
  60. package/es/index.d.ts +0 -47
  61. package/es/input/amount.d.ts +0 -14
  62. package/es/input/credit-card.d.ts +0 -13
  63. package/es/input/email.d.ts +0 -6
  64. package/es/input/expiry-date.d.ts +0 -16
  65. package/es/input/index.d.ts +0 -14
  66. package/es/input/input-date.d.ts +0 -8
  67. package/es/input/input-id.d.ts +0 -6
  68. package/es/input/input-number.d.ts +0 -6
  69. package/es/input/input.d.ts +0 -9
  70. package/es/input/otp.d.ts +0 -11
  71. package/es/input/password.d.ts +0 -6
  72. package/es/input/phone-number.d.ts +0 -14
  73. package/es/input/text-area.d.ts +0 -6
  74. package/es/layout/header.d.ts +0 -5
  75. package/es/layout/index.d.ts +0 -56
  76. package/es/locale/locale-provider.d.ts +0 -11
  77. package/es/login-page/index.d.ts +0 -7
  78. package/es/media/index.d.ts +0 -19
  79. package/es/message/index.d.ts +0 -12
  80. package/es/mobile-insurer-detail/index.d.ts +0 -40
  81. package/es/mobile-insurer-list/index.d.ts +0 -17
  82. package/es/modal/index.d.ts +0 -30
  83. package/es/ocr/index.d.ts +0 -15
  84. package/es/ocr/micro-blink/index.d.ts +0 -8
  85. package/es/platform/platform-card/index.d.ts +0 -12
  86. package/es/platform/switch-platform/index.d.ts +0 -12
  87. package/es/policy-list/policy-card.d.ts +0 -48
  88. package/es/radio/index.d.ts +0 -24
  89. package/es/search-box/index.d.ts +0 -19
  90. package/es/select/attached-select.d.ts +0 -17
  91. package/es/select/select.d.ts +0 -13
  92. package/es/select/time-select.d.ts +0 -7
  93. package/es/status-box/index.d.ts +0 -11
  94. package/es/table/index.d.ts +0 -42
  95. package/es/tabs/index.d.ts +0 -15
  96. package/es/types.d.ts +0 -182
  97. package/es/typography/index.d.ts +0 -14
  98. package/es/upload/index.d.ts +0 -16
  99. package/es/upload-photo/index.d.ts +0 -28
  100. package/es/upload-preview/index.d.ts +0 -9
  101. package/es/utils/form-methods.d.ts +0 -3
  102. package/es/utils/form-utils.d.ts +0 -77
  103. package/es/utils/option-utils.d.ts +0 -29
  104. package/lib/admin-amount/index.d.ts +0 -9
  105. package/lib/admin-upload/float.d.ts +0 -16
  106. package/lib/admin-upload/index.d.ts +0 -36
  107. package/lib/admin-upload/modal.d.ts +0 -17
  108. package/lib/alert-message/index.d.ts +0 -5
  109. package/lib/back-top/index.d.ts +0 -5
  110. package/lib/button/index.d.ts +0 -11
  111. package/lib/card-detail/card-group.d.ts +0 -12
  112. package/lib/card-detail/card-item.d.ts +0 -9
  113. package/lib/card-detail/card-page.d.ts +0 -12
  114. package/lib/card-detail/card.d.ts +0 -10
  115. package/lib/card-detail/utils.d.ts +0 -5
  116. package/lib/checkbox/index.d.ts +0 -24
  117. package/lib/claim-list/index.d.ts +0 -48
  118. package/lib/confirmation/index.d.ts +0 -14
  119. package/lib/date-picker/buddhist.d.ts +0 -6
  120. package/lib/date-picker/index.d.ts +0 -13
  121. package/lib/declaration/index.d.ts +0 -9
  122. package/lib/detail-panel/index.d.ts +0 -18
  123. package/lib/filter/checkBox.d.ts +0 -12
  124. package/lib/filter/index.d.ts +0 -52
  125. package/lib/filter/rangePicker.d.ts +0 -18
  126. package/lib/form/addable-section/index.d.ts +0 -20
  127. package/lib/form/element/index.d.ts +0 -12
  128. package/lib/form/elements.d.ts +0 -8
  129. package/lib/form/hstep/index.d.ts +0 -17
  130. package/lib/form/hsteps/index.d.ts +0 -21
  131. package/lib/form/index.d.ts +0 -4
  132. package/lib/form/login/index.d.ts +0 -9
  133. package/lib/form/page/index.d.ts +0 -10
  134. package/lib/form/pages/index.d.ts +0 -10
  135. package/lib/form/section/index.d.ts +0 -16
  136. package/lib/form/step/index.d.ts +0 -17
  137. package/lib/form/steps/index.d.ts +0 -10
  138. package/lib/form-context.d.ts +0 -27
  139. package/lib/form-step-context.d.ts +0 -6
  140. package/lib/free-form/addable-section/index.d.ts +0 -19
  141. package/lib/free-form/element/index.d.ts +0 -11
  142. package/lib/free-form/index.d.ts +0 -11
  143. package/lib/free-form/page/index.d.ts +0 -16
  144. package/lib/free-form/pages/index.d.ts +0 -10
  145. package/lib/free-form/section/index.d.ts +0 -13
  146. package/lib/free-form/step/index.d.ts +0 -21
  147. package/lib/free-form/steps/index.d.ts +0 -12
  148. package/lib/home-menu/index.d.ts +0 -20
  149. package/lib/hooks/ocr/index.d.ts +0 -3
  150. package/lib/hooks/ocr/micro-blink.d.ts +0 -10
  151. package/lib/index.d.ts +0 -47
  152. package/lib/input/amount.d.ts +0 -14
  153. package/lib/input/credit-card.d.ts +0 -13
  154. package/lib/input/email.d.ts +0 -6
  155. package/lib/input/expiry-date.d.ts +0 -16
  156. package/lib/input/index.d.ts +0 -14
  157. package/lib/input/input-date.d.ts +0 -8
  158. package/lib/input/input-id.d.ts +0 -6
  159. package/lib/input/input-number.d.ts +0 -6
  160. package/lib/input/input.d.ts +0 -9
  161. package/lib/input/otp.d.ts +0 -11
  162. package/lib/input/password.d.ts +0 -6
  163. package/lib/input/phone-number.d.ts +0 -14
  164. package/lib/input/text-area.d.ts +0 -6
  165. package/lib/layout/header.d.ts +0 -5
  166. package/lib/layout/index.d.ts +0 -56
  167. package/lib/locale/locale-provider.d.ts +0 -11
  168. package/lib/login-page/index.d.ts +0 -7
  169. package/lib/media/index.d.ts +0 -19
  170. package/lib/message/index.d.ts +0 -12
  171. package/lib/mobile-insurer-detail/index.d.ts +0 -40
  172. package/lib/mobile-insurer-list/index.d.ts +0 -17
  173. package/lib/modal/index.d.ts +0 -30
  174. package/lib/ocr/index.d.ts +0 -15
  175. package/lib/ocr/micro-blink/index.d.ts +0 -8
  176. package/lib/platform/platform-card/index.d.ts +0 -12
  177. package/lib/platform/switch-platform/index.d.ts +0 -12
  178. package/lib/policy-list/policy-card.d.ts +0 -48
  179. package/lib/radio/index.d.ts +0 -24
  180. package/lib/search-box/index.d.ts +0 -19
  181. package/lib/select/attached-select.d.ts +0 -17
  182. package/lib/select/select.d.ts +0 -13
  183. package/lib/select/time-select.d.ts +0 -7
  184. package/lib/status-box/index.d.ts +0 -11
  185. package/lib/table/index.d.ts +0 -42
  186. package/lib/tabs/index.d.ts +0 -15
  187. package/lib/types.d.ts +0 -182
  188. package/lib/typography/index.d.ts +0 -14
  189. package/lib/upload/index.d.ts +0 -16
  190. package/lib/upload-photo/index.d.ts +0 -28
  191. package/lib/upload-preview/index.d.ts +0 -9
  192. package/lib/utils/form-methods.d.ts +0 -3
  193. package/lib/utils/form-utils.d.ts +0 -77
  194. package/lib/utils/option-utils.d.ts +0 -29
package/es/types.d.ts DELETED
@@ -1,182 +0,0 @@
1
- /// <reference path="../typings.d.ts" />
2
- import { FormItemProps, FormInstance } from 'antd/es/form';
3
- import { ReactNode } from 'react';
4
- import { NamePath } from 'rc-field-form/lib/interface';
5
- import { CheckboxOptionType } from 'antd/es/checkbox';
6
- import { SelectProps } from 'antd/es/select';
7
- import { BlinkIdSingleSideRecognizerResult } from '@microblink/blinkid-in-browser-sdk';
8
- export { Rule } from 'rc-field-form/lib/interface';
9
- export interface OCRHooks {
10
- microBlink?: {
11
- initResult: {
12
- error?: string;
13
- failed: boolean;
14
- };
15
- recognize: ((file: File) => Promise<BlinkIdSingleSideRecognizerResult | null>) | null;
16
- loading?: boolean;
17
- };
18
- }
19
- export interface OCRConfig {
20
- microBlink?: {
21
- licenseKey: string;
22
- };
23
- }
24
- export type FormItemName = NamePath;
25
- export interface FormBasicConfig {
26
- config: FormItemConfig;
27
- className?: string;
28
- style?: Object;
29
- locales?: {
30
- cancelText?: string;
31
- submitText?: string;
32
- previewText?: string;
33
- nextText?: string;
34
- continueText?: string;
35
- validateMessages?: Object;
36
- };
37
- initialValues?: any;
38
- form?: FormInstance;
39
- onCancel?(): void;
40
- onSubmit?(values: Object, allValues?: Object): any;
41
- requiredMark?: boolean;
42
- showSubmitButton?: boolean;
43
- getScrollContainer?: () => HTMLElement | null;
44
- onFirstModified?: () => any;
45
- uploadApi?: string;
46
- selectDatasourceApi?: string;
47
- validationRule?: string;
48
- getRuleValidationApi?: string;
49
- stepDirection?: 'vertical' | 'horizontal';
50
- customizeComponents?: {
51
- [name: string]: FC;
52
- };
53
- ocr?: OCRConfig;
54
- }
55
- export type FormItemAssert = {
56
- field: NamePath;
57
- value?: any;
58
- operation?: 'eq' | 'ne' | 'in' | 'ni' | 'lt' | 'le' | 'gt' | 'ge' | 'co' | 'nc' | 'filled' | 'unfilled' | 'co-some' | 'co-every' | 'some-in' | 'every-in';
59
- };
60
- export type FormItemCopyValue = {
61
- assert: FormItemAssert;
62
- copyFrom: NamePath;
63
- disabled?: boolean;
64
- };
65
- export type FormItemSelectValue = {
66
- assert: FormItemAssert;
67
- value: any;
68
- disabled?: boolean;
69
- };
70
- export interface FormItemExtraConfig extends FormItemProps {
71
- elements?: FormItemConfig[];
72
- required?: boolean;
73
- requiredAsserts?: FormItemAssert[];
74
- extraLabel?: any;
75
- xl?: number;
76
- md?: number;
77
- xs?: number;
78
- span?: number;
79
- areaCode?: number | string | (number | string)[];
80
- phoneNumber?: number | string;
81
- mergeRules?: boolean;
82
- dependencies?: NamePath[];
83
- antdDependencies?: NamePath[];
84
- asserts?: FormItemAssert[];
85
- shouldRender?: (form?: FormInstance) => boolean;
86
- ignore?: boolean;
87
- copyValue?: FormItemCopyValue;
88
- selectValue?: FormItemSelectValue[];
89
- disabled?: boolean | FormItemAssert | FormItemAssert[];
90
- halfRow?: boolean;
91
- fullRow?: boolean;
92
- limit?: number;
93
- hideWhenPreview?: boolean;
94
- hideWhenEdit?: boolean;
95
- requiredMessage?: string | ReactNode;
96
- showOptional?: boolean;
97
- previewFormater?(value: any, form?: FormInstance): any;
98
- handleNext?(values: any): any;
99
- render?(preview: boolean, form?: FormInstance, value?: any, onChange?: (params: any) => any, setShowStepButton?: IglooComponentProps['setShowStepButton']): any;
100
- locales?: {
101
- [key: string]: string;
102
- };
103
- options?: (CheckboxOptionType & {
104
- extraInfo?: {
105
- content: any;
106
- shownTrigger: 'unchecked' | 'checked' | 'all';
107
- };
108
- })[] | SelectProps['options'];
109
- sendOtp?: (value: any) => any;
110
- dependField?: FormItemName;
111
- countDownSeconds?: number;
112
- getButtonDisabledState?: (form: FormInstance) => boolean;
113
- getPreviousDisabledState?: (form: FormInstance) => boolean;
114
- handleUpload?(file: File): PromiseLike<string>;
115
- withoutForm?: boolean;
116
- disableEditButton?: boolean;
117
- hidePreviewDivider?: boolean;
118
- valueFormater?: (value: any) => any;
119
- currentStep?: number;
120
- subscribedFields?: FormItemName[];
121
- description?: string | React.ReactNode;
122
- dateLimitationType?: 'relative' | 'absolute';
123
- absoluteRangeStart?: number;
124
- absoluteRangeEnd?: number;
125
- relativeRangeStart?: {
126
- type: 'day' | 'month' | 'year';
127
- quantity: number;
128
- pattern?: string;
129
- dependField?: NamePath;
130
- };
131
- relativeRangeEnd?: {
132
- type: 'day' | 'month' | 'year';
133
- quantity: number;
134
- pattern?: string;
135
- dependField?: NamePath;
136
- };
137
- validationCode?: {
138
- code: string;
139
- errorMessage: string;
140
- }[];
141
- length?: number;
142
- minLength?: number;
143
- maxLength?: number;
144
- idType?: 'KTP' | 'NIK';
145
- validationRule?: string;
146
- shouldRenderCode?: string;
147
- [key: string]: any;
148
- }
149
- export interface FormItemConfig extends FormItemExtraConfig {
150
- type?: string;
151
- name?: NamePath;
152
- label?: string | React.ReactNode;
153
- previewLabel?: string | React.ReactNode;
154
- labelProps?: any;
155
- contentProps?: any;
156
- ocr?: {
157
- vender: string;
158
- outputMap: {
159
- field: string[];
160
- source: string[];
161
- }[];
162
- };
163
- }
164
- export type FormItemPropsHandler = (config: FormItemConfig) => FormItemConfig;
165
- export interface FC<P = {}> extends React.FunctionComponent<P> {
166
- formItemPropsHandler?: FormItemPropsHandler;
167
- isPreviewSupport?: boolean;
168
- }
169
- export interface Form extends React.ForwardRefExoticComponent<FormBasicConfig & React.RefAttributes<any>> {
170
- useForm: () => FormInstance;
171
- }
172
- export interface IglooComponentProps {
173
- validateField?: (nameList?: NamePath[]) => Promise<any>;
174
- containerRef?: React.RefObject<any>;
175
- setFieldError?(errorMsg?: string): void;
176
- setFieldValue?(value?: any): void;
177
- setShowStepButton?: (showButton: boolean) => void;
178
- getFormInstance?: () => FormInstance;
179
- locales?: {
180
- [key: string]: string;
181
- };
182
- }
@@ -1,14 +0,0 @@
1
- import { FC } from '../types';
2
- import { PropsWithChildren } from 'react';
3
- import './style';
4
- import { CSSProperties, MouseEvent } from 'react';
5
- export interface IglooTypographyProps {
6
- level: 'h1' | 'h2' | 'h3a' | 'h3b' | 'h4' | 'h5' | 'number1' | 'number2' | 'body1' | 'body2' | 'body3' | 'caption1' | 'caption2' | 'caption3' | 'status' | 'link';
7
- wrapElement?: 'span' | 'div';
8
- className?: string;
9
- style?: CSSProperties;
10
- title?: string;
11
- onClick?: (e: MouseEvent<HTMLDivElement | HTMLSpanElement>) => void;
12
- }
13
- declare const IglooTypography: FC<PropsWithChildren<IglooTypographyProps>>;
14
- export default IglooTypography;
@@ -1,16 +0,0 @@
1
- import { UploadProps, RcFile } from 'antd/es/upload';
2
- import { FC, IglooComponentProps } from '../types';
3
- import './style';
4
- export interface IglooUploadProps extends UploadProps, IglooComponentProps {
5
- placeholder?: string;
6
- handleUpload?(file: RcFile): PromiseLike<string>;
7
- value?: string[];
8
- onChange?: (value: any) => void;
9
- limit?: number;
10
- limitErrorMessage?: Function | string;
11
- containerRef?: any;
12
- descriptions?: any;
13
- bizKey?: string;
14
- }
15
- declare const IglooUpload: FC<IglooUploadProps>;
16
- export default IglooUpload;
@@ -1,28 +0,0 @@
1
- import { FC, IglooComponentProps } from '../types';
2
- import './style';
3
- export interface Props extends IglooComponentProps {
4
- handleUpload?(file: File): PromiseLike<string>;
5
- value?: (string | {
6
- name: string;
7
- status: 'failed';
8
- errorMsg: string;
9
- })[];
10
- onChange?: (value: any) => void;
11
- limit?: number;
12
- limitErrorMessage?: Function | string;
13
- descriptions?: any;
14
- buttonText?: any;
15
- samples?: Sample[];
16
- className?: any;
17
- id?: string;
18
- bizKey?: string;
19
- capture?: boolean;
20
- disabled?: boolean;
21
- }
22
- export type Sample = {
23
- src: string;
24
- label?: string;
25
- type?: 'good' | 'bad';
26
- };
27
- declare const UploadPhoto: FC<Props>;
28
- export default UploadPhoto;
@@ -1,9 +0,0 @@
1
- import { FC } from 'react';
2
- import './style';
3
- interface Props {
4
- files: string[];
5
- label?: any;
6
- description?: any;
7
- }
8
- declare const UploadPreview: FC<Props>;
9
- export default UploadPreview;
@@ -1,3 +0,0 @@
1
- import { IglooComponentProps } from '../types';
2
- declare const _default: (keyof IglooComponentProps)[];
3
- export default _default;
@@ -1,77 +0,0 @@
1
- import React from 'react';
2
- import { FormInstance } from 'antd/es/form';
3
- import { FormItemConfig, FormItemExtraConfig, FormItemName, FormItemCopyValue, FormItemSelectValue, FormItemAssert, Rule } from '../types';
4
- import { NamePath } from 'antd/es/form/interface';
5
- export declare const calcNamePath: (parentName: FormItemName | undefined, name: FormItemName | undefined) => any[];
6
- export declare const testAssert: (form: FormInstance, assert: FormItemAssert) => boolean;
7
- export declare const calcFormItemProps: (config: FormItemConfig, extraProps: FormItemExtraConfig, form?: FormInstance, parentName?: FormItemName) => {
8
- colProps: {
9
- span: number;
10
- xs: number;
11
- sm: number;
12
- md: number;
13
- halfRow: boolean | undefined;
14
- };
15
- formItemProps: {
16
- name: any[];
17
- className: string | undefined;
18
- initialValue: any;
19
- copiedValue: {
20
- copied: boolean;
21
- value?: undefined;
22
- disabled?: undefined;
23
- } | {
24
- copied: boolean;
25
- value: any;
26
- disabled: boolean | undefined;
27
- };
28
- selectedValue: {
29
- selected: boolean;
30
- value?: undefined;
31
- disabled?: undefined;
32
- } | {
33
- selected: boolean;
34
- value: any;
35
- disabled: boolean | undefined;
36
- };
37
- normalize: ((value: any, prevValue: any, allValues: import("rc-field-form/lib/interface").Store) => any) | undefined;
38
- rules: Rule[];
39
- validateTrigger: any[];
40
- label: import("react/jsx-runtime").JSX.Element | null;
41
- getValueFromEvent: ((...args: import("rc-field-form/lib/interface").EventArgs) => any) | undefined;
42
- getValueProps: ((value: any) => Record<string, unknown>) | undefined;
43
- extra: false | "" | 0 | import("react/jsx-runtime").JSX.Element | null | undefined;
44
- help: React.ReactNode;
45
- valuePropName: string | undefined;
46
- messageVariables: {
47
- label: string;
48
- };
49
- dependencies: any[] | undefined;
50
- };
51
- elementProps: {
52
- [key: string]: any;
53
- };
54
- display: any;
55
- previewFormater: ((value: any, form?: FormInstance<any> | undefined) => any) | undefined;
56
- };
57
- export declare const calcDisabled: (disabled?: boolean | FormItemAssert | FormItemAssert[], form?: FormInstance) => boolean;
58
- export declare const calcCopyValue: (copyValue?: FormItemCopyValue, form?: FormInstance) => {
59
- copied: boolean;
60
- value?: undefined;
61
- disabled?: undefined;
62
- } | {
63
- copied: boolean;
64
- value: any;
65
- disabled: boolean | undefined;
66
- };
67
- export declare const calcSelectValue: (selectValue?: FormItemSelectValue[], form?: FormInstance) => {
68
- selected: boolean;
69
- value?: undefined;
70
- disabled?: undefined;
71
- } | {
72
- selected: boolean;
73
- value: any;
74
- disabled: boolean | undefined;
75
- };
76
- export declare const calcShouldRender: (name: NamePath, dependencies?: NamePath[], asserts?: FormItemAssert[], shouldRender?: ((form?: FormInstance) => boolean) | undefined, shouldRenderCode?: string, form?: FormInstance) => any;
77
- export declare const getRuleValidation: (url: string, rule: string | string[], values?: any, lang?: string) => Promise<any>;
@@ -1,29 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { FC, IglooComponentProps } from '../types';
3
- import { FormInstance } from 'antd/es/form';
4
- import { NamePath } from 'antd/es/form/interface';
5
- import { SelectProps, SelectValue } from 'antd/es/select';
6
- export declare const compareOptions: (newOptions: any[], oldOptions?: any[]) => boolean;
7
- export declare const compareSelected: (newValue: any | any[], oldValue: any | any[]) => boolean;
8
- type Options = SelectProps<SelectValue>['options'];
9
- export interface HOCProps extends IglooComponentProps {
10
- options?: Options;
11
- onSearch?: any;
12
- getOptions?: (form: FormInstance) => any[];
13
- optionGroups?: {
14
- parentKey: string;
15
- options: Options;
16
- }[];
17
- datasourceFilters?: string[];
18
- datasourceKey?: string;
19
- datasourceApi?: string;
20
- dependField?: NamePath;
21
- passCompareOptions?: boolean;
22
- }
23
- export interface ComponentProps extends IglooComponentProps {
24
- options?: Options;
25
- clearWhenOptionsUpdated?: boolean;
26
- }
27
- export declare function optionsHOC<T>(Component: FC<T>): FC<PropsWithChildren<HOCProps & T>>;
28
- export declare function previewSelectedOptions(options: Options, value: any): any;
29
- export {};
@@ -1,9 +0,0 @@
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;
@@ -1,16 +0,0 @@
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;
@@ -1,36 +0,0 @@
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;
@@ -1,17 +0,0 @@
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;
@@ -1,5 +0,0 @@
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;
@@ -1,5 +0,0 @@
1
- import { FC } from 'react';
2
- import './style';
3
- import { BackTopProps } from 'antd';
4
- declare const BackToTop: FC<BackTopProps>;
5
- export default BackToTop;
@@ -1,11 +0,0 @@
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>;
@@ -1,12 +0,0 @@
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;
@@ -1,9 +0,0 @@
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;
@@ -1,12 +0,0 @@
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;
@@ -1,10 +0,0 @@
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;
@@ -1,5 +0,0 @@
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)[];
@@ -1,24 +0,0 @@
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>>;
@@ -1,48 +0,0 @@
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;
@@ -1,14 +0,0 @@
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;
@@ -1,6 +0,0 @@
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;
@@ -1,13 +0,0 @@
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>;
@@ -1,9 +0,0 @@
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;