iglooform 3.3.0 → 3.3.1
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.
- package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +1 -1
- package/es/form/step-items-selection/components/section-of-item-condition/hooks/useElements.js +7 -7
- package/lib/form/step-items-selection/components/section-of-item-condition/hooks/useElements.js +7 -7
- package/package.json +1 -1
- package/es/admin-upload/index.d.ts +0 -37
- package/es/app/context.d.ts +0 -9
- package/es/app/index.d.ts +0 -8
- package/es/card-detail/card-page.d.ts +0 -12
- package/es/card-detail/card.d.ts +0 -10
- package/es/confirmation/index.d.ts +0 -16
- package/es/date-picker/buddhist.d.ts +0 -6
- package/es/date-picker/index.d.ts +0 -13
- package/es/documents/index.d.ts +0 -15
- package/es/filter/index.d.ts +0 -52
- package/es/form/addable-section/index.d.ts +0 -20
- package/es/form/element/index.d.ts +0 -12
- package/es/form/elements.d.ts +0 -8
- package/es/form/hsteps/index.d.ts +0 -21
- package/es/form/index.d.ts +0 -4
- package/es/form/section/index.d.ts +0 -16
- package/es/form/step-items-selection/components/checkbox-group-items/index.d.ts +0 -12
- package/es/form/step-items-selection/components/checkbox-group-items/style/index.d.ts +0 -1
- package/es/form/step-items-selection/components/index.d.ts +0 -2
- package/es/form/step-items-selection/components/item-info/index.d.ts +0 -11
- package/es/form/step-items-selection/components/item-info/style/index.d.ts +0 -1
- package/es/form/step-items-selection/components/section-of-item-condition/hooks/index.d.ts +0 -1
- package/es/form/step-items-selection/components/section-of-item-condition/index.d.ts +0 -17
- package/es/form/step-items-selection/components/section-of-item-condition/style/index.d.ts +0 -1
- package/es/form/step-items-selection/config.d.ts +0 -5
- package/es/form/step-items-selection/index.d.ts +0 -3
- package/es/form/step-items-selection/types.d.ts +0 -31
- package/es/form/steps/index.d.ts +0 -10
- package/es/form-context.d.ts +0 -28
- package/es/free-form/addable-section/index.d.ts +0 -19
- package/es/free-form/element/index.d.ts +0 -11
- package/es/free-form/index.d.ts +0 -11
- package/es/free-form/section/index.d.ts +0 -13
- package/es/free-form/step/index.d.ts +0 -21
- package/es/free-form/steps/index.d.ts +0 -12
- package/es/hooks/ocr/index.d.ts +0 -3
- package/es/hooks/ocr/micro-blink.d.ts +0 -10
- package/es/index.d.ts +0 -49
- package/es/input/amount.d.ts +0 -14
- package/es/input/expiry-date.d.ts +0 -16
- package/es/input/input-date.d.ts +0 -8
- package/es/input/input-number/basic.d.ts +0 -6
- package/es/input/input-number/index.d.ts +0 -8
- package/es/input/input-number/stepper/index.d.ts +0 -7
- package/es/input/phone-number.d.ts +0 -14
- package/es/layout/defaultFooter.d.ts +0 -4
- package/es/media/index.d.ts +0 -29
- package/es/media/preview.d.ts +0 -12
- package/es/message/index.d.ts +0 -14
- package/es/message/useMessage.d.ts +0 -6
- package/es/modal/index.d.ts +0 -33
- package/es/modal/useModal.d.ts +0 -12
- package/es/ocr/index.d.ts +0 -15
- package/es/ocr/micro-blink/index.d.ts +0 -8
- package/es/radio/index.d.ts +0 -24
- package/es/radio/radio-group-with-other.d.ts +0 -7
- package/es/upload/index.d.ts +0 -16
- package/es/upload-photo/index.d.ts +0 -28
- package/es/upload-preview/index.d.ts +0 -9
- package/es/upload-preview/media.d.ts +0 -7
- package/es/utils/form-utils.d.ts +0 -79
- package/es/utils/option-utils.d.ts +0 -29
- package/lib/admin-upload/index.d.ts +0 -37
- package/lib/app/context.d.ts +0 -9
- package/lib/app/index.d.ts +0 -8
- package/lib/card-detail/card-page.d.ts +0 -12
- package/lib/card-detail/card.d.ts +0 -10
- package/lib/confirmation/index.d.ts +0 -16
- package/lib/date-picker/buddhist.d.ts +0 -6
- package/lib/date-picker/index.d.ts +0 -13
- package/lib/documents/index.d.ts +0 -15
- package/lib/filter/index.d.ts +0 -52
- package/lib/form/addable-section/index.d.ts +0 -20
- package/lib/form/element/index.d.ts +0 -12
- package/lib/form/elements.d.ts +0 -8
- package/lib/form/hsteps/index.d.ts +0 -21
- package/lib/form/index.d.ts +0 -4
- package/lib/form/section/index.d.ts +0 -16
- package/lib/form/step-items-selection/components/checkbox-group-items/index.d.ts +0 -12
- package/lib/form/step-items-selection/components/checkbox-group-items/style/index.d.ts +0 -1
- package/lib/form/step-items-selection/components/index.d.ts +0 -2
- package/lib/form/step-items-selection/components/item-info/index.d.ts +0 -11
- package/lib/form/step-items-selection/components/item-info/style/index.d.ts +0 -1
- package/lib/form/step-items-selection/components/section-of-item-condition/hooks/index.d.ts +0 -1
- package/lib/form/step-items-selection/components/section-of-item-condition/index.d.ts +0 -17
- package/lib/form/step-items-selection/components/section-of-item-condition/style/index.d.ts +0 -1
- package/lib/form/step-items-selection/config.d.ts +0 -5
- package/lib/form/step-items-selection/index.d.ts +0 -3
- package/lib/form/step-items-selection/types.d.ts +0 -31
- package/lib/form/steps/index.d.ts +0 -10
- package/lib/form-context.d.ts +0 -28
- package/lib/free-form/addable-section/index.d.ts +0 -19
- package/lib/free-form/element/index.d.ts +0 -11
- package/lib/free-form/index.d.ts +0 -11
- package/lib/free-form/section/index.d.ts +0 -13
- package/lib/free-form/step/index.d.ts +0 -21
- package/lib/free-form/steps/index.d.ts +0 -12
- package/lib/hooks/ocr/index.d.ts +0 -3
- package/lib/hooks/ocr/micro-blink.d.ts +0 -10
- package/lib/index.d.ts +0 -49
- package/lib/input/amount.d.ts +0 -14
- package/lib/input/expiry-date.d.ts +0 -16
- package/lib/input/input-date.d.ts +0 -8
- package/lib/input/input-number/basic.d.ts +0 -6
- package/lib/input/input-number/index.d.ts +0 -8
- package/lib/input/input-number/stepper/index.d.ts +0 -7
- package/lib/input/phone-number.d.ts +0 -14
- package/lib/layout/defaultFooter.d.ts +0 -4
- package/lib/media/index.d.ts +0 -29
- package/lib/media/preview.d.ts +0 -12
- package/lib/message/index.d.ts +0 -14
- package/lib/message/useMessage.d.ts +0 -6
- package/lib/modal/index.d.ts +0 -33
- package/lib/modal/useModal.d.ts +0 -12
- package/lib/ocr/index.d.ts +0 -15
- package/lib/ocr/micro-blink/index.d.ts +0 -8
- package/lib/radio/index.d.ts +0 -24
- package/lib/radio/radio-group-with-other.d.ts +0 -7
- package/lib/upload/index.d.ts +0 -16
- package/lib/upload-photo/index.d.ts +0 -28
- package/lib/upload-preview/index.d.ts +0 -9
- package/lib/upload-preview/media.d.ts +0 -7
- package/lib/utils/form-utils.d.ts +0 -79
- package/lib/utils/option-utils.d.ts +0 -29
package/es/index.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export { default as Form } from './form';
|
|
2
|
-
export { default as Button, GreenButton, YellowButton, RedButton, } from './button';
|
|
3
|
-
export { default as DatePicker, IglooBuddhistDatePicker as BuddhistDatePicker, IglooRangePicker as RangePicker, IglooWeekPicker as WeekPicker, IglooMonthPicker as MonthPicker, } from './date-picker';
|
|
4
|
-
export { default as Input, PhoneNumber, Amount, Password, Email, InputNumber, TextArea, InputDate, CreditCard, ExpiryDate, InputId, } from './input';
|
|
5
|
-
export { default as OCR } from './ocr';
|
|
6
|
-
export { default as Select, TimeSelect, AttachedSelect } from './select';
|
|
7
|
-
export { default as Radio, RadioGroup, RadioGroupWithOther } from './radio';
|
|
8
|
-
export { default as Upload } from './upload';
|
|
9
|
-
export { default as Checkbox, CheckboxGroup } from './checkbox';
|
|
10
|
-
export { default as Declaration } from './declaration';
|
|
11
|
-
export { Divider } from 'antd';
|
|
12
|
-
export { default as UploadPhoto } from './upload-photo';
|
|
13
|
-
export { default as AlertMessage } from './alert-message';
|
|
14
|
-
export { default as LoginPage } from './login-page';
|
|
15
|
-
export { default as UploadPreview } from './upload-preview';
|
|
16
|
-
export { default as Typography } from './typography';
|
|
17
|
-
export { default as PlatformCard } from './platform/platform-card';
|
|
18
|
-
export { default as SwitchPlatform } from './platform/switch-platform';
|
|
19
|
-
export { default as Table } from './table';
|
|
20
|
-
export { default as StatusBox } from './status-box';
|
|
21
|
-
export { CardPage, Card, CardGroup, CardItem } from './card-detail';
|
|
22
|
-
export { default as AdminMedia } from './media';
|
|
23
|
-
export { default as Documents } from './documents';
|
|
24
|
-
export { default as Filter } from './filter';
|
|
25
|
-
export { default as CurrencyContext } from './currency-context';
|
|
26
|
-
export { default as Tabs } from './tabs';
|
|
27
|
-
export { default as AdminAmount } from './admin-amount';
|
|
28
|
-
export { default as AdminUpload } from './admin-upload';
|
|
29
|
-
export { LocaleProvider } from './locale';
|
|
30
|
-
export { default as Modal } from './modal';
|
|
31
|
-
export { default as BackTop } from './back-top';
|
|
32
|
-
export { default as MediaPreview } from './upload-preview/media';
|
|
33
|
-
export { default as PolicyList } from './policy-list';
|
|
34
|
-
export { default as ClaimList } from './claim-list';
|
|
35
|
-
export { default as MobileInsurerDetail } from './mobile-insurer-detail';
|
|
36
|
-
export { default as Layout } from './layout';
|
|
37
|
-
export { default as DetailPanel } from './detail-panel';
|
|
38
|
-
export { default as message } from './message';
|
|
39
|
-
export { default as SearchBox } from './search-box';
|
|
40
|
-
export { default as FreeForm } from './free-form';
|
|
41
|
-
export { default as FormItem } from './free-form/element';
|
|
42
|
-
export { default as FormPages } from './free-form/pages';
|
|
43
|
-
export { default as FormPage } from './free-form/page';
|
|
44
|
-
export { default as FormSteps } from './free-form/steps';
|
|
45
|
-
export { default as FormStep } from './free-form/step';
|
|
46
|
-
export { default as FormSection } from './free-form/section';
|
|
47
|
-
export { default as FormAddableSection } from './free-form/addable-section';
|
|
48
|
-
export { default as App } from './app';
|
|
49
|
-
export { default as ConfigProvider } from './config-provider';
|
package/es/input/amount.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InputProps } from 'antd/es/input';
|
|
2
|
-
import { FC, IglooComponentProps } from '../types';
|
|
3
|
-
import './style/amount';
|
|
4
|
-
export interface AmountProps extends InputProps, IglooComponentProps {
|
|
5
|
-
currency?: string;
|
|
6
|
-
currencyProps?: InputProps;
|
|
7
|
-
amount?: number;
|
|
8
|
-
amountProps?: InputProps;
|
|
9
|
-
seperator?: ',' | '.';
|
|
10
|
-
separator?: ',' | '.';
|
|
11
|
-
decimalSeparator?: ',' | '.';
|
|
12
|
-
}
|
|
13
|
-
declare const Amount: FC<AmountProps>;
|
|
14
|
-
export default Amount;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC, IglooComponentProps } from '../types';
|
|
2
|
-
import './style/input-date';
|
|
3
|
-
type Props = IglooComponentProps & {
|
|
4
|
-
value?: {
|
|
5
|
-
year: string | number;
|
|
6
|
-
month: string | number;
|
|
7
|
-
};
|
|
8
|
-
onChange?: any;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
check?: (value: {
|
|
11
|
-
year: string;
|
|
12
|
-
month: string;
|
|
13
|
-
}) => boolean;
|
|
14
|
-
};
|
|
15
|
-
declare const IglooExpiryDate: FC<Props>;
|
|
16
|
-
export default IglooExpiryDate;
|
package/es/input/input-date.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { InputProps } from 'antd/es/input';
|
|
2
|
-
import { FC, IglooComponentProps } from '../types';
|
|
3
|
-
import './style/input-date';
|
|
4
|
-
type Props = InputProps & IglooComponentProps & {
|
|
5
|
-
format: string;
|
|
6
|
-
};
|
|
7
|
-
declare const IglooInputDate: FC<Props>;
|
|
8
|
-
export default IglooInputDate;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { InputProps } from 'antd/es/input';
|
|
2
|
-
import { InputNumberProps } from 'antd/es/input-number';
|
|
3
|
-
import { FC, IglooComponentProps } from '../../types';
|
|
4
|
-
type Props = InputProps & InputNumberProps & IglooComponentProps & {
|
|
5
|
-
mode?: 'step' | 'default';
|
|
6
|
-
};
|
|
7
|
-
declare const IglooInputNumber: FC<Props>;
|
|
8
|
-
export default IglooInputNumber;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InputNumberProps } from 'antd/es/input-number';
|
|
2
|
-
import { FC, IglooComponentProps } from '../../../types';
|
|
3
|
-
import '../../style/index';
|
|
4
|
-
import './index.less';
|
|
5
|
-
type Props = InputNumberProps & IglooComponentProps;
|
|
6
|
-
declare const Stepper: FC<Props>;
|
|
7
|
-
export default Stepper;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { FC, IglooComponentProps } from '../types';
|
|
3
|
-
import './style/phone-number';
|
|
4
|
-
export interface PhoneNumberProps extends IglooComponentProps {
|
|
5
|
-
areaCode?: string | string[];
|
|
6
|
-
phoneNumber?: number;
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: CSSProperties;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
value?: any;
|
|
11
|
-
onChange?: any;
|
|
12
|
-
}
|
|
13
|
-
declare const PhoneNumber: FC<PhoneNumberProps>;
|
|
14
|
-
export default PhoneNumber;
|
package/es/media/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { FC, CSSProperties } from 'react';
|
|
2
|
-
import './style';
|
|
3
|
-
type Download = false | {
|
|
4
|
-
actionType?: 'downloadBlob' | 'openUrl';
|
|
5
|
-
};
|
|
6
|
-
type GetNonCORSUrl = (originUrl: string) => Promise<string> | string;
|
|
7
|
-
interface Props {
|
|
8
|
-
src: string | {
|
|
9
|
-
origin: string;
|
|
10
|
-
nonCORS: string;
|
|
11
|
-
};
|
|
12
|
-
name?: string;
|
|
13
|
-
type?: string;
|
|
14
|
-
index?: number;
|
|
15
|
-
list?: Array<{
|
|
16
|
-
type: string;
|
|
17
|
-
src: string;
|
|
18
|
-
nonCORSSrc?: string;
|
|
19
|
-
}>;
|
|
20
|
-
docNames?: string[];
|
|
21
|
-
className?: any;
|
|
22
|
-
style?: CSSProperties;
|
|
23
|
-
showAllPages?: boolean;
|
|
24
|
-
destroyOnClose?: boolean;
|
|
25
|
-
download?: Download;
|
|
26
|
-
getNonCORSUrl?: GetNonCORSUrl;
|
|
27
|
-
}
|
|
28
|
-
declare const MediaWithPreview: FC<Props>;
|
|
29
|
-
export default MediaWithPreview;
|
package/es/media/preview.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC, CSSProperties } from 'react';
|
|
2
|
-
interface MediaProps {
|
|
3
|
-
src: string;
|
|
4
|
-
type: string;
|
|
5
|
-
scale?: number;
|
|
6
|
-
isCurrent?: boolean;
|
|
7
|
-
className?: any;
|
|
8
|
-
style?: CSSProperties;
|
|
9
|
-
showAllPages?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const Media: FC<MediaProps>;
|
|
12
|
-
export default Media;
|
package/es/message/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import useMessage from './useMessage';
|
|
3
|
-
import './style';
|
|
4
|
-
type ConfigContent = React.ReactNode | string;
|
|
5
|
-
type ConfigDuration = number;
|
|
6
|
-
export interface IglooGlobalMessage {
|
|
7
|
-
info(content: ConfigContent, duration?: ConfigDuration): any;
|
|
8
|
-
success(content: ConfigContent, duration?: ConfigDuration): any;
|
|
9
|
-
error(content: ConfigContent, duration?: ConfigDuration): any;
|
|
10
|
-
warning(content: ConfigContent, duration?: ConfigDuration): any;
|
|
11
|
-
useMessage: typeof useMessage;
|
|
12
|
-
}
|
|
13
|
-
declare const IglooMessage: IglooGlobalMessage;
|
|
14
|
-
export default IglooMessage;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ReactElement } from 'react';
|
|
2
|
-
import type { IglooGlobalMessage } from './';
|
|
3
|
-
import './style';
|
|
4
|
-
export type HookAPI = Omit<IglooGlobalMessage, 'useMessage'>;
|
|
5
|
-
declare const useMessage: () => readonly [HookAPI, ReactElement];
|
|
6
|
-
export default useMessage;
|
package/es/modal/index.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ModalFuncProps, ModalProps } from 'antd/lib/modal';
|
|
3
|
-
import { FormBasicConfig, FormItemConfig } from '../types';
|
|
4
|
-
import useModal from './useModal';
|
|
5
|
-
import './style';
|
|
6
|
-
interface FormModalProps {
|
|
7
|
-
mode?: 'form' | 'normal';
|
|
8
|
-
formConfig?: FormItemConfig;
|
|
9
|
-
formProps?: {
|
|
10
|
-
locales?: FormBasicConfig['locales'];
|
|
11
|
-
initialValues?: FormBasicConfig['initialValues'];
|
|
12
|
-
validationCodeExtraParams?: Record<string, any>;
|
|
13
|
-
};
|
|
14
|
-
onOk?: (values: any, fullValue: any) => any;
|
|
15
|
-
limitHeight?: boolean;
|
|
16
|
-
}
|
|
17
|
-
interface ModalFuncReturn {
|
|
18
|
-
destroy: Function;
|
|
19
|
-
update: (props: ModalProps & ModalFuncProps & FormModalProps) => any;
|
|
20
|
-
}
|
|
21
|
-
export type ModalFunction = (props: ModalProps & ModalFuncProps & FormModalProps) => ModalFuncReturn;
|
|
22
|
-
interface ModalType extends FC<ModalProps & ModalFuncProps & FormModalProps> {
|
|
23
|
-
confirm: ModalFunction;
|
|
24
|
-
info: ModalFunction;
|
|
25
|
-
warning: ModalFunction;
|
|
26
|
-
error: ModalFunction;
|
|
27
|
-
success: ModalFunction;
|
|
28
|
-
noFooter: ModalFunction;
|
|
29
|
-
destroyAll: Function;
|
|
30
|
-
useModal: typeof useModal;
|
|
31
|
-
}
|
|
32
|
-
declare const IglooModal: ModalType;
|
|
33
|
-
export default IglooModal;
|
package/es/modal/useModal.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ReactElement } from 'react';
|
|
2
|
-
import { type ModalFunction } from './';
|
|
3
|
-
export interface HookAPI {
|
|
4
|
-
confirm: ModalFunction;
|
|
5
|
-
info: ModalFunction;
|
|
6
|
-
warning: ModalFunction;
|
|
7
|
-
error: ModalFunction;
|
|
8
|
-
success: ModalFunction;
|
|
9
|
-
noFooter: ModalFunction;
|
|
10
|
-
}
|
|
11
|
-
declare const useModal: () => readonly [HookAPI, ReactElement];
|
|
12
|
-
export default useModal;
|
package/es/ocr/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC, IglooComponentProps, FormItemExtraConfig } from '../types';
|
|
2
|
-
export interface OutputMap {
|
|
3
|
-
field: string[];
|
|
4
|
-
source: string[];
|
|
5
|
-
format?: string;
|
|
6
|
-
formatType?: string;
|
|
7
|
-
}
|
|
8
|
-
interface OCRProps extends IglooComponentProps, FormItemExtraConfig {
|
|
9
|
-
ocrConfig: {
|
|
10
|
-
vendor: string;
|
|
11
|
-
outputMap: OutputMap[];
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
declare const OCR: FC<OCRProps>;
|
|
15
|
-
export default OCR;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FC, IglooComponentProps, FormItemExtraConfig } from '../../types';
|
|
2
|
-
import { OutputMap } from '../index';
|
|
3
|
-
import './style';
|
|
4
|
-
interface MicroBlinkProps extends IglooComponentProps, FormItemExtraConfig {
|
|
5
|
-
outputMap: OutputMap[];
|
|
6
|
-
}
|
|
7
|
-
declare const MicroBlink: FC<MicroBlinkProps>;
|
|
8
|
-
export default MicroBlink;
|
package/es/radio/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RadioProps, RadioGroupProps } from 'antd/es/radio';
|
|
3
|
-
import { FC, IglooComponentProps } from '../types';
|
|
4
|
-
import './style';
|
|
5
|
-
import { ComponentProps } from '../utils/option-utils';
|
|
6
|
-
import { DefaultOptionType } from 'rc-select/lib/Select';
|
|
7
|
-
type Props = RadioProps & IglooComponentProps;
|
|
8
|
-
declare const IglooRadio: FC<Props>;
|
|
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<RadioGroupProps, 'options'>, ComponentProps {
|
|
16
|
-
className?: string;
|
|
17
|
-
radioType?: string;
|
|
18
|
-
options: Option[];
|
|
19
|
-
preview?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const InnerRadioGroup: FC<IProps>;
|
|
22
|
-
export declare const RadioGroup: FC<React.PropsWithChildren<import("../utils/option-utils").HOCProps & IProps>>;
|
|
23
|
-
export default IglooRadio;
|
|
24
|
-
export { default as RadioGroupWithOther } from './radio-group-with-other';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IProps as RadioGroupProps } from './index';
|
|
3
|
-
import { FC } from '../types';
|
|
4
|
-
declare const RadioGroupWithOther: FC<import("react").PropsWithChildren<import("../utils/option-utils").HOCProps & RadioGroupProps & {
|
|
5
|
-
otherOptionLabel: string;
|
|
6
|
-
}>>;
|
|
7
|
-
export default RadioGroupWithOther;
|
package/es/upload/index.d.ts
DELETED
|
@@ -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;
|
package/es/utils/form-utils.d.ts
DELETED
|
@@ -1,79 +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, validationCodeExtraParams?: Record<string, any>) => {
|
|
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, disabledCode?: string, name?: FormItemName, parentName?: FormItemName) => any;
|
|
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, parentName: NamePath, dependencies?: NamePath[], asserts?: FormItemAssert[], shouldRender?: ((form?: FormInstance) => boolean) | undefined, shouldRenderCode?: string, form?: FormInstance) => any;
|
|
77
|
-
export declare const automaticCalculate: (name: NamePath, parentName: NamePath, automaticCalcCode?: string, form?: FormInstance) => void;
|
|
78
|
-
export declare const getRuleValidation: (url: string, rule: string | string[], values?: any, lang?: string) => Promise<any>;
|
|
79
|
-
export declare const calcAddableSectionAssertField: (name: any[], field: FormItemAssert['field'], index: number, elements: FormItemConfig[] | React.ReactElement[]) => 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,37 +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
|
-
handleCloseFloat?: (hidden: () => {}) => any;
|
|
35
|
-
}
|
|
36
|
-
declare const AdminUpload: FC<AdminUploadProps>;
|
|
37
|
-
export default AdminUpload;
|
package/lib/app/context.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { HookAPI as ModalHookAPI } from '../modal/useModal';
|
|
3
|
-
import type { HookAPI as MessageHookAPI } from '../message/useMessage';
|
|
4
|
-
export type AppContextType = {
|
|
5
|
-
modal: ModalHookAPI;
|
|
6
|
-
message: MessageHookAPI;
|
|
7
|
-
};
|
|
8
|
-
declare const AppContext: import("react").Context<AppContextType>;
|
|
9
|
-
export default AppContext;
|
package/lib/app/index.d.ts
DELETED
|
@@ -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,16 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { FC } from '../types';
|
|
3
|
-
import './style';
|
|
4
|
-
export interface ConfirmationProps {
|
|
5
|
-
onChange?: Function;
|
|
6
|
-
value?: boolean;
|
|
7
|
-
message?: ReactNode;
|
|
8
|
-
modalContent?: ReactNode;
|
|
9
|
-
modalTitle?: ReactNode;
|
|
10
|
-
okText?: ReactNode;
|
|
11
|
-
cancelText?: ReactNode;
|
|
12
|
-
href?: string;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const Confirmation: FC<ConfirmationProps>;
|
|
16
|
-
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>;
|
package/lib/documents/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { FC, CSSProperties } from 'react';
|
|
2
|
-
import MediaWithPreview from '../media';
|
|
3
|
-
type MediaWithPreviewProps = React.ComponentProps<typeof MediaWithPreview>;
|
|
4
|
-
declare const Documents: FC<{
|
|
5
|
-
docList: Array<string | {
|
|
6
|
-
src: string;
|
|
7
|
-
type: string;
|
|
8
|
-
}>;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: CSSProperties;
|
|
11
|
-
docNames?: string[];
|
|
12
|
-
showAllPages?: boolean;
|
|
13
|
-
destroyOnClose?: boolean;
|
|
14
|
-
} & Pick<MediaWithPreviewProps, 'getNonCORSUrl' | 'download'>>;
|
|
15
|
-
export default Documents;
|