@jswork/antd-components 1.0.78 → 1.0.80
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/README.md +1 -56
- package/dist/main.cjs.js +77 -0
- package/dist/main.cjs.js.map +1 -0
- package/dist/main.d.mts +1062 -0
- package/dist/main.d.ts +1062 -34
- package/dist/main.esm.js +77 -0
- package/dist/main.esm.js.map +1 -0
- package/dist/style.css +2 -267
- package/dist/style.css.map +1 -0
- package/package.json +30 -75
- package/src/lib/_abstract-upload.tsx +131 -0
- package/src/lib/alert.tsx +53 -0
- package/src/lib/breadcrumb.tsx +40 -0
- package/src/lib/checkable-dropdown.tsx +170 -0
- package/src/lib/checkable-tag-list.tsx +122 -0
- package/src/lib/checkable-tag.tsx +101 -0
- package/src/lib/checkbox-group.tsx +72 -0
- package/src/lib/checkbox.tsx +59 -0
- package/src/lib/codeflask.tsx +17 -0
- package/src/lib/confirm-button.tsx +87 -0
- package/src/lib/date-picker.tsx +60 -0
- package/src/lib/editable-tag-group.tsx +234 -0
- package/src/lib/input-hidden.tsx +13 -0
- package/src/lib/input-number.tsx +52 -0
- package/src/lib/input-tags.tsx +140 -0
- package/src/lib/input-token.tsx +102 -0
- package/src/lib/input.tsx +58 -0
- package/src/lib/interactive-list.tsx +173 -0
- package/src/lib/pre-select.tsx +128 -0
- package/src/lib/radio-group.tsx +67 -0
- package/src/lib/range-picker.tsx +59 -0
- package/src/lib/rate.tsx +38 -0
- package/src/lib/search.tsx +49 -0
- package/src/lib/select.tsx +86 -0
- package/src/lib/slider-range.tsx +40 -0
- package/src/lib/slider.tsx +37 -0
- package/src/lib/switch.tsx +52 -0
- package/src/lib/textarea.tsx +29 -0
- package/src/lib/time-picker.tsx +66 -0
- package/src/lib/transfer.tsx +70 -0
- package/src/lib/tree-select.tsx +64 -0
- package/src/lib/tree.tsx +60 -0
- package/src/lib/upload-dragger.tsx +60 -0
- package/src/lib/upload-picture-card.tsx +56 -0
- package/src/lib/upload-picture.tsx +47 -0
- package/src/lib/upload.tsx +55 -0
- package/src/main.ts +34 -0
- package/src/style.scss +191 -0
- package/LICENSE.txt +0 -21
- package/dist/index.esm.js +0 -10
- package/dist/index.js +0 -10
- package/dist/lib/_abstract-upload.d.ts +0 -40
- package/dist/lib/alert.d.ts +0 -14
- package/dist/lib/breadcrumb.d.ts +0 -29
- package/dist/lib/checkable-dropdown.d.ts +0 -52
- package/dist/lib/checkable-tag-list.d.ts +0 -51
- package/dist/lib/checkable-tag.d.ts +0 -43
- package/dist/lib/checkbox-group.d.ts +0 -38
- package/dist/lib/checkbox.d.ts +0 -27
- package/dist/lib/codeflask.d.ts +0 -9
- package/dist/lib/confirm-button.d.ts +0 -23
- package/dist/lib/date-picker.d.ts +0 -26
- package/dist/lib/editable-tag-group.d.ts +0 -92
- package/dist/lib/input-hidden.d.ts +0 -7
- package/dist/lib/input-number.d.ts +0 -27
- package/dist/lib/input-tags.d.ts +0 -37
- package/dist/lib/input-token.d.ts +0 -39
- package/dist/lib/input.d.ts +0 -29
- package/dist/lib/interactive-list.d.ts +0 -56
- package/dist/lib/pre-select.d.ts +0 -57
- package/dist/lib/radio-group.d.ts +0 -42
- package/dist/lib/range-picker.d.ts +0 -27
- package/dist/lib/rate.d.ts +0 -23
- package/dist/lib/search.d.ts +0 -29
- package/dist/lib/select.d.ts +0 -43
- package/dist/lib/slider-range.d.ts +0 -23
- package/dist/lib/slider.d.ts +0 -22
- package/dist/lib/switch.d.ts +0 -27
- package/dist/lib/textarea.d.ts +0 -22
- package/dist/lib/time-picker.d.ts +0 -29
- package/dist/lib/transfer.d.ts +0 -37
- package/dist/lib/tree-select.d.ts +0 -32
- package/dist/lib/tree.d.ts +0 -31
- package/dist/lib/upload-dragger.d.ts +0 -28
- package/dist/lib/upload-picture-card.d.ts +0 -14
- package/dist/lib/upload-picture.d.ts +0 -14
- package/dist/lib/upload.d.ts +0 -28
- /package/{dist → src}/styles/input-tags.scss +0 -0
- /package/{dist → src}/styles/override.scss +0 -0
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type StdEventTarget = {
|
|
3
|
-
target: {
|
|
4
|
-
value: any;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
8
|
-
type Props = {
|
|
9
|
-
/**
|
|
10
|
-
* Main className.
|
|
11
|
-
*/
|
|
12
|
-
className?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The language key.
|
|
15
|
-
*/
|
|
16
|
-
lang?: string;
|
|
17
|
-
/**
|
|
18
|
-
* The component data soruce.
|
|
19
|
-
*/
|
|
20
|
-
items?: any[];
|
|
21
|
-
/**
|
|
22
|
-
* Runtime value.
|
|
23
|
-
*/
|
|
24
|
-
value?: any[];
|
|
25
|
-
/**
|
|
26
|
-
* The event handler for `change`.
|
|
27
|
-
*/
|
|
28
|
-
onChange?: StdCallback;
|
|
29
|
-
/**
|
|
30
|
-
* The disabled state.
|
|
31
|
-
*/
|
|
32
|
-
disabled?: boolean;
|
|
33
|
-
};
|
|
34
|
-
export declare class AcCheckableTagList extends React.Component<Props> {
|
|
35
|
-
static displayName: string;
|
|
36
|
-
static formSchema: string;
|
|
37
|
-
static defaultProps: {
|
|
38
|
-
lang: string;
|
|
39
|
-
value: never[];
|
|
40
|
-
onChange: any;
|
|
41
|
-
};
|
|
42
|
-
state: {
|
|
43
|
-
value: any[] | undefined;
|
|
44
|
-
};
|
|
45
|
-
t: (inKey: string) => any;
|
|
46
|
-
shouldComponentUpdate(nextProps: Readonly<Props>): boolean;
|
|
47
|
-
handleChange: (inEvent: any) => void;
|
|
48
|
-
handleClearAll: () => void;
|
|
49
|
-
render(): React.JSX.Element;
|
|
50
|
-
}
|
|
51
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CheckableTagProps } from 'antd/es/tag';
|
|
3
|
-
type StdEventTarget = {
|
|
4
|
-
target: {
|
|
5
|
-
value: any;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
9
|
-
/**
|
|
10
|
-
* @see https://ant.design/components/tag-cn/#Tag.CheckableTag
|
|
11
|
-
*/
|
|
12
|
-
type Props = {
|
|
13
|
-
className?: string;
|
|
14
|
-
value?: boolean;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
closeable?: boolean;
|
|
17
|
-
toggleable?: boolean;
|
|
18
|
-
propagation?: boolean;
|
|
19
|
-
onChange?: StdCallback;
|
|
20
|
-
onCloseClick?: StdCallback;
|
|
21
|
-
} & Omit<CheckableTagProps, 'checked'>;
|
|
22
|
-
export declare class AcCheckableTag extends React.Component<Props> {
|
|
23
|
-
static displayName: string;
|
|
24
|
-
static formSchema: string;
|
|
25
|
-
static defaultProps: {
|
|
26
|
-
value: boolean;
|
|
27
|
-
closeable: boolean;
|
|
28
|
-
disabled: boolean;
|
|
29
|
-
toggleable: boolean;
|
|
30
|
-
propagation: boolean;
|
|
31
|
-
onChange: any;
|
|
32
|
-
onCloseClick: any;
|
|
33
|
-
};
|
|
34
|
-
state: {
|
|
35
|
-
value: boolean;
|
|
36
|
-
};
|
|
37
|
-
get closeIcon(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
38
|
-
shouldComponentUpdate(nextProps: Readonly<Props>): boolean;
|
|
39
|
-
handleChange: (inEvent: any) => void;
|
|
40
|
-
handleCloseClick: (inEvent: any) => void;
|
|
41
|
-
render(): React.JSX.Element;
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
3
|
-
type StdEventTarget = {
|
|
4
|
-
target: {
|
|
5
|
-
value: any;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
9
|
-
type TemplateCallback = (item: {
|
|
10
|
-
item: any;
|
|
11
|
-
index: number;
|
|
12
|
-
}) => React.ReactNode;
|
|
13
|
-
export type AcCheckboxGroupProps = {
|
|
14
|
-
className?: string;
|
|
15
|
-
value?: any[];
|
|
16
|
-
items?: any[];
|
|
17
|
-
onChange?: StdCallback;
|
|
18
|
-
onSearch?: StdCallback;
|
|
19
|
-
template?: TemplateCallback;
|
|
20
|
-
} & CheckboxGroupProps;
|
|
21
|
-
export declare class AcCheckboxGroup extends React.Component<AcCheckboxGroupProps> {
|
|
22
|
-
static displayName: string;
|
|
23
|
-
static formSchema: string;
|
|
24
|
-
static defaultProps: {
|
|
25
|
-
items: never[];
|
|
26
|
-
value: never[];
|
|
27
|
-
template: (args: any) => React.JSX.Element;
|
|
28
|
-
onChange: any;
|
|
29
|
-
onSearch: any;
|
|
30
|
-
};
|
|
31
|
-
state: {
|
|
32
|
-
value: (any[] & import("antd/es/checkbox/Group").CheckboxValueType[]) | undefined;
|
|
33
|
-
};
|
|
34
|
-
shouldComponentUpdate(nextProps: Readonly<AcCheckboxGroupProps>): boolean;
|
|
35
|
-
handleChange: (inEvent: any) => void;
|
|
36
|
-
render(): React.JSX.Element;
|
|
37
|
-
}
|
|
38
|
-
export {};
|
package/dist/lib/checkbox.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import { CheckboxProps } from 'antd';
|
|
3
|
-
type StdEventTarget = {
|
|
4
|
-
target: {
|
|
5
|
-
value: any;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
9
|
-
type Props = {
|
|
10
|
-
className?: string;
|
|
11
|
-
value?: boolean;
|
|
12
|
-
onChange?: StdCallback;
|
|
13
|
-
} & CheckboxProps & HTMLAttributes<any>;
|
|
14
|
-
export declare class AcCheckbox extends React.Component<Props> {
|
|
15
|
-
static displayName: string;
|
|
16
|
-
static formSchema: string;
|
|
17
|
-
static defaultProps: {
|
|
18
|
-
onChange: any;
|
|
19
|
-
};
|
|
20
|
-
state: {
|
|
21
|
-
value: any;
|
|
22
|
-
};
|
|
23
|
-
shouldComponentUpdate(nextProps: Readonly<Props>): boolean;
|
|
24
|
-
handleChange: (inEvent: any) => void;
|
|
25
|
-
render(): React.JSX.Element;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
package/dist/lib/codeflask.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import type { PopconfirmProps, ButtonProps } from 'antd';
|
|
3
|
-
export interface AcConfirmButtonProps extends Omit<PopconfirmProps, 'title'> {
|
|
4
|
-
className?: string;
|
|
5
|
-
lang?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
type?: ButtonProps['type'] | 'raw' | 'anchor';
|
|
8
|
-
childProps?: ButtonProps;
|
|
9
|
-
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
10
|
-
}
|
|
11
|
-
export declare class AcConfirmButton extends Component<AcConfirmButtonProps> {
|
|
12
|
-
static displayName: string;
|
|
13
|
-
static formSchema: string;
|
|
14
|
-
static defaultProps: {
|
|
15
|
-
lang: string;
|
|
16
|
-
type: string;
|
|
17
|
-
childProps: {};
|
|
18
|
-
};
|
|
19
|
-
get computedChildren(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
20
|
-
handleCancel: () => void;
|
|
21
|
-
t: (inKey: any) => any;
|
|
22
|
-
render(): React.JSX.Element;
|
|
23
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DatePickerProps } from 'antd';
|
|
3
|
-
type StdEventTarget = {
|
|
4
|
-
target: {
|
|
5
|
-
value: any;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
9
|
-
type Props = {
|
|
10
|
-
className?: string;
|
|
11
|
-
value?: any;
|
|
12
|
-
dayjs?: any;
|
|
13
|
-
defaultValue?: any;
|
|
14
|
-
onChange?: StdCallback;
|
|
15
|
-
} & DatePickerProps;
|
|
16
|
-
export declare class AcDatePicker extends React.Component<Props> {
|
|
17
|
-
static displayName: string;
|
|
18
|
-
static formSchema: string;
|
|
19
|
-
static defaultProps: Props;
|
|
20
|
-
get values(): {};
|
|
21
|
-
handleChange: (inEvent: any) => void;
|
|
22
|
-
parse: (inValue: any) => any;
|
|
23
|
-
stringify: (inValue: any) => any;
|
|
24
|
-
render(): React.JSX.Element;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '@jswork/next-dom-event';
|
|
3
|
-
type StdEventTarget = {
|
|
4
|
-
target: {
|
|
5
|
-
value: any;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
9
|
-
type Props = {
|
|
10
|
-
/**
|
|
11
|
-
* The extended className for component.
|
|
12
|
-
*/
|
|
13
|
-
className?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Default value.
|
|
16
|
-
*/
|
|
17
|
-
value?: any[];
|
|
18
|
-
/**
|
|
19
|
-
* The change handler.
|
|
20
|
-
*/
|
|
21
|
-
onChange?: StdCallback;
|
|
22
|
-
/**
|
|
23
|
-
* The minimum tag number.
|
|
24
|
-
*/
|
|
25
|
-
min?: number;
|
|
26
|
-
/**
|
|
27
|
-
* The maximum tags number.
|
|
28
|
-
*/
|
|
29
|
-
max?: number;
|
|
30
|
-
/**
|
|
31
|
-
* If set readOnly.
|
|
32
|
-
*/
|
|
33
|
-
readOnly?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* If set disabled.
|
|
36
|
-
*/
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Trigger key, default is `Space`.
|
|
40
|
-
*/
|
|
41
|
-
triggers?: string[];
|
|
42
|
-
};
|
|
43
|
-
export declare class AcEditableTagGroup extends React.Component<Props> {
|
|
44
|
-
static displayName: string;
|
|
45
|
-
static formSchema: string;
|
|
46
|
-
static defaultProps: {
|
|
47
|
-
value: never[];
|
|
48
|
-
min: number;
|
|
49
|
-
max: number;
|
|
50
|
-
onChange: any;
|
|
51
|
-
triggers: string[];
|
|
52
|
-
};
|
|
53
|
-
private inputRef;
|
|
54
|
-
private btnRef;
|
|
55
|
-
private rootForwardedRef;
|
|
56
|
-
private rootRef;
|
|
57
|
-
private imeStartRes;
|
|
58
|
-
private imeEndRes;
|
|
59
|
-
get latestInput(): HTMLInputElement;
|
|
60
|
-
state: {
|
|
61
|
-
value: any[] | undefined;
|
|
62
|
-
ime: boolean;
|
|
63
|
-
};
|
|
64
|
-
template: ({ item, index }: {
|
|
65
|
-
item: any;
|
|
66
|
-
index: any;
|
|
67
|
-
}, cb: any) => React.JSX.Element;
|
|
68
|
-
templateCreate: () => React.JSX.Element | null;
|
|
69
|
-
/**
|
|
70
|
-
* Default item's value.
|
|
71
|
-
*/
|
|
72
|
-
templateDefault: () => string;
|
|
73
|
-
/**
|
|
74
|
-
* Add new default item.
|
|
75
|
-
*/
|
|
76
|
-
actionCreate: () => void;
|
|
77
|
-
/**
|
|
78
|
-
* Focus latest input element if exists.
|
|
79
|
-
* @param inDelay
|
|
80
|
-
*/
|
|
81
|
-
actionFocusLast: (inDelay?: number) => void;
|
|
82
|
-
handleInputChange: (inIndex: any, inEvent: any) => void;
|
|
83
|
-
handleInputBlur: () => void;
|
|
84
|
-
handleInputKeyDown: (inEvent: any) => void;
|
|
85
|
-
handleInterChange: (inEvent: any) => void;
|
|
86
|
-
handleChange: (inValue: any, inCallback?: any) => void;
|
|
87
|
-
componentDidMount(): void;
|
|
88
|
-
componentWillUnmount(): void;
|
|
89
|
-
shouldComponentUpdate(nextProps: Readonly<Props>): boolean;
|
|
90
|
-
render(): React.JSX.Element;
|
|
91
|
-
}
|
|
92
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputNumberProps } from 'antd';
|
|
3
|
-
type StdEventTarget = {
|
|
4
|
-
target: {
|
|
5
|
-
value: any;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
9
|
-
type Props = {
|
|
10
|
-
className?: string;
|
|
11
|
-
value?: number;
|
|
12
|
-
onChange?: StdCallback;
|
|
13
|
-
} & InputNumberProps;
|
|
14
|
-
export declare class AcInputNumber extends React.Component<Props> {
|
|
15
|
-
static displayName: string;
|
|
16
|
-
static formSchema: string;
|
|
17
|
-
static defaultProps: {
|
|
18
|
-
onChange: any;
|
|
19
|
-
};
|
|
20
|
-
state: {
|
|
21
|
-
value: number | undefined;
|
|
22
|
-
};
|
|
23
|
-
shouldComponentUpdate(inProps: Readonly<Props>): boolean;
|
|
24
|
-
handleChange: (inEvent: any) => void;
|
|
25
|
-
render(): React.JSX.Element;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
package/dist/lib/input-tags.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type StdEventTarget = {
|
|
3
|
-
target: {
|
|
4
|
-
value: any;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
8
|
-
type Props = {
|
|
9
|
-
className?: string;
|
|
10
|
-
items?: string[];
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
onChange?: StdCallback;
|
|
13
|
-
} & React.HTMLAttributes<HTMLDivElement>;
|
|
14
|
-
type State = {
|
|
15
|
-
items?: string[];
|
|
16
|
-
inputValue: string;
|
|
17
|
-
isComposite: boolean;
|
|
18
|
-
};
|
|
19
|
-
export declare class AcInputTags extends React.Component<Props, State> {
|
|
20
|
-
static displayName: string;
|
|
21
|
-
static formSchema: string;
|
|
22
|
-
static defaultProps: {
|
|
23
|
-
items: never[];
|
|
24
|
-
disabled: boolean;
|
|
25
|
-
onChange: any;
|
|
26
|
-
};
|
|
27
|
-
inputRef: React.RefObject<HTMLInputElement>;
|
|
28
|
-
constructor(inProps: any);
|
|
29
|
-
shouldComponentUpdate(nextProps: Readonly<Props>): boolean;
|
|
30
|
-
handleInputChange: (inEvent: any) => void;
|
|
31
|
-
handleInputKeyAction: (inEvent: any) => false | void;
|
|
32
|
-
handleTagRemove: (inIndex: any, inForce?: boolean) => void;
|
|
33
|
-
handleMouseEnter: () => void;
|
|
34
|
-
execChange: (inItems: any) => void;
|
|
35
|
-
render(): React.JSX.Element;
|
|
36
|
-
}
|
|
37
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
type StdEventTarget = {
|
|
4
|
-
target: {
|
|
5
|
-
value: any;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
9
|
-
type Props = {
|
|
10
|
-
className?: string;
|
|
11
|
-
value?: string;
|
|
12
|
-
onChange?: StdCallback;
|
|
13
|
-
autoComplete?: boolean;
|
|
14
|
-
labelCreate?: string;
|
|
15
|
-
labelRemove?: string;
|
|
16
|
-
} & InputProps;
|
|
17
|
-
export declare class AcInputToken extends React.Component<Props> {
|
|
18
|
-
static displayName: string;
|
|
19
|
-
static formSchema: string;
|
|
20
|
-
static defaultProps: {
|
|
21
|
-
onChange: any;
|
|
22
|
-
autoComplete: boolean;
|
|
23
|
-
labelCreate: string;
|
|
24
|
-
labelRemove: string;
|
|
25
|
-
};
|
|
26
|
-
private rootRef;
|
|
27
|
-
state: {
|
|
28
|
-
value: string | (string & readonly string[]) | undefined;
|
|
29
|
-
};
|
|
30
|
-
shouldComponentUpdate(nextProps: Readonly<Props>): boolean;
|
|
31
|
-
get complete(): "on" | "off";
|
|
32
|
-
get tokenView(): React.JSX.Element;
|
|
33
|
-
handleTokenCreate: () => void;
|
|
34
|
-
handleTokenRemove: () => void;
|
|
35
|
-
handleChange: (inEvent: any) => void;
|
|
36
|
-
doChange: (inValue: any) => void;
|
|
37
|
-
render(): React.JSX.Element;
|
|
38
|
-
}
|
|
39
|
-
export {};
|
package/dist/lib/input.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
type StdEventTarget = {
|
|
4
|
-
target: {
|
|
5
|
-
value: any;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
9
|
-
type Props = {
|
|
10
|
-
className?: string;
|
|
11
|
-
onChange?: StdCallback;
|
|
12
|
-
autoComplete?: boolean;
|
|
13
|
-
} & InputProps;
|
|
14
|
-
export declare class AcInput extends React.Component<Props> {
|
|
15
|
-
static displayName: string;
|
|
16
|
-
static formSchema: string;
|
|
17
|
-
static defaultProps: {
|
|
18
|
-
onChange: any;
|
|
19
|
-
autoComplete: boolean;
|
|
20
|
-
};
|
|
21
|
-
state: {
|
|
22
|
-
value: import("rc-input/lib/interface").ValueType;
|
|
23
|
-
};
|
|
24
|
-
shouldComponentUpdate(inProps: Readonly<Props>): boolean;
|
|
25
|
-
handleChange: (inEvent: any) => void;
|
|
26
|
-
get complete(): "on" | "off";
|
|
27
|
-
render(): React.JSX.Element;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
type StdEventTarget = {
|
|
3
|
-
target: {
|
|
4
|
-
value: any;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
8
|
-
type TemplateCallback = (item: {
|
|
9
|
-
item: any;
|
|
10
|
-
index: number;
|
|
11
|
-
items: any[];
|
|
12
|
-
}, cb: any) => React.ReactNode;
|
|
13
|
-
export type ReactInteractiveListProps = {
|
|
14
|
-
/**
|
|
15
|
-
* The extended className for component.
|
|
16
|
-
*/
|
|
17
|
-
className?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The minimum size.
|
|
20
|
-
*/
|
|
21
|
-
min: number;
|
|
22
|
-
/**
|
|
23
|
-
* The max size.
|
|
24
|
-
*/
|
|
25
|
-
max: number;
|
|
26
|
-
/**
|
|
27
|
-
* The data source.
|
|
28
|
-
*/
|
|
29
|
-
items: any[];
|
|
30
|
-
/**
|
|
31
|
-
* The data item template.
|
|
32
|
-
*/
|
|
33
|
-
template: TemplateCallback;
|
|
34
|
-
/**
|
|
35
|
-
* The action of `create` component.
|
|
36
|
-
*/
|
|
37
|
-
templateCreate: (...args: any[]) => React.ReactNode;
|
|
38
|
-
/**
|
|
39
|
-
* The empty create template.
|
|
40
|
-
*/
|
|
41
|
-
templateDefault: () => React.ReactNode;
|
|
42
|
-
/**
|
|
43
|
-
* The change handler.
|
|
44
|
-
*/
|
|
45
|
-
onChange: StdCallback;
|
|
46
|
-
/**
|
|
47
|
-
* When trigger max/min boundary.
|
|
48
|
-
*/
|
|
49
|
-
onError: StdCallback;
|
|
50
|
-
/**
|
|
51
|
-
* Forwards a ref to the underlying div element.
|
|
52
|
-
*/
|
|
53
|
-
forwardedRef: any;
|
|
54
|
-
} & HTMLAttributes<any>;
|
|
55
|
-
export declare const AcInteractiveList: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
56
|
-
export {};
|
package/dist/lib/pre-select.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface Value {
|
|
3
|
-
option: string;
|
|
4
|
-
keyword: string;
|
|
5
|
-
}
|
|
6
|
-
export type AcPreSelectProps = {
|
|
7
|
-
/**
|
|
8
|
-
* The extended className for component.
|
|
9
|
-
*/
|
|
10
|
-
className?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Default value.
|
|
13
|
-
*/
|
|
14
|
-
value?: Value;
|
|
15
|
-
/**
|
|
16
|
-
* Select options.
|
|
17
|
-
*/
|
|
18
|
-
items?: any[];
|
|
19
|
-
/**
|
|
20
|
-
* The change handler.
|
|
21
|
-
*/
|
|
22
|
-
onChange?: Function;
|
|
23
|
-
/**
|
|
24
|
-
* The handler for search.
|
|
25
|
-
*/
|
|
26
|
-
onSearch?: Function;
|
|
27
|
-
/**
|
|
28
|
-
* If use search input.
|
|
29
|
-
*/
|
|
30
|
-
searchable?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* The prefix select options.
|
|
33
|
-
*/
|
|
34
|
-
selectOptions?: any;
|
|
35
|
-
/**
|
|
36
|
-
* The suffix input options.
|
|
37
|
-
*/
|
|
38
|
-
inputOptions?: any;
|
|
39
|
-
};
|
|
40
|
-
export declare class AcPreSelect extends React.Component<AcPreSelectProps> {
|
|
41
|
-
static displayName: string;
|
|
42
|
-
static formSchema: string;
|
|
43
|
-
static version: string;
|
|
44
|
-
static defaultProps: {
|
|
45
|
-
onChange: any;
|
|
46
|
-
onSearch: any;
|
|
47
|
-
searchable: boolean;
|
|
48
|
-
};
|
|
49
|
-
state: {
|
|
50
|
-
value: Value | undefined;
|
|
51
|
-
};
|
|
52
|
-
get addonView(): React.JSX.Element;
|
|
53
|
-
handleFiledAction: (inField: any, inEvent: any, inCallback: any) => void;
|
|
54
|
-
handleChange: (inField: any, inEvent: any) => void;
|
|
55
|
-
handleSearch: (inField: any, inEvent: any) => void;
|
|
56
|
-
render(): React.JSX.Element;
|
|
57
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
type StdEventTarget = {
|
|
3
|
-
target: {
|
|
4
|
-
value: any;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
8
|
-
type TemplateCallback = (item: {
|
|
9
|
-
item: any;
|
|
10
|
-
index: number;
|
|
11
|
-
}, opts?: any) => React.ReactNode;
|
|
12
|
-
type Props = {
|
|
13
|
-
className?: string;
|
|
14
|
-
value?: any;
|
|
15
|
-
defaultValue?: any;
|
|
16
|
-
items?: any[];
|
|
17
|
-
onChange?: StdCallback;
|
|
18
|
-
onSearch?: StdCallback;
|
|
19
|
-
template?: TemplateCallback;
|
|
20
|
-
templateOptions?: any;
|
|
21
|
-
buttonStyle?: 'solid' | 'outline';
|
|
22
|
-
} & HTMLAttributes<any>;
|
|
23
|
-
export declare class AcRadioGroup extends React.Component<Props> {
|
|
24
|
-
static displayName: string;
|
|
25
|
-
static formSchema: string;
|
|
26
|
-
static defaultProps: {
|
|
27
|
-
items: never[];
|
|
28
|
-
template: (args: any, opts: any) => React.JSX.Element;
|
|
29
|
-
onChange: any;
|
|
30
|
-
onSearch: any;
|
|
31
|
-
};
|
|
32
|
-
get templateCallback(): (item: any) => React.ReactNode;
|
|
33
|
-
state: {
|
|
34
|
-
value: any;
|
|
35
|
-
};
|
|
36
|
-
static getDerivedStateFromProps(inProps: Readonly<Props>, inState: any): {
|
|
37
|
-
value: any;
|
|
38
|
-
} | null;
|
|
39
|
-
handleChange: (inEvent: any) => void;
|
|
40
|
-
render(): React.JSX.Element;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RangePickerProps } from 'antd/es/date-picker';
|
|
3
|
-
type StdEventTarget = {
|
|
4
|
-
target: {
|
|
5
|
-
value: any;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
9
|
-
type Props = {
|
|
10
|
-
className?: string;
|
|
11
|
-
value?: any;
|
|
12
|
-
defaultValue?: any;
|
|
13
|
-
onChange?: StdCallback;
|
|
14
|
-
} & RangePickerProps;
|
|
15
|
-
export declare class AcRangePicker extends React.Component<Props> {
|
|
16
|
-
static displayName: string;
|
|
17
|
-
static formSchema: string;
|
|
18
|
-
static defaultProps: {
|
|
19
|
-
onChange: any;
|
|
20
|
-
format: string;
|
|
21
|
-
};
|
|
22
|
-
handleChange: (inEvent: any) => void;
|
|
23
|
-
parse: (inValue: any) => any;
|
|
24
|
-
stringify: (inValue: any) => any;
|
|
25
|
-
render(): React.JSX.Element;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
package/dist/lib/rate.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RateProps } from 'antd';
|
|
3
|
-
type StdEventTarget = {
|
|
4
|
-
target: {
|
|
5
|
-
value: any;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
type StdCallback = (inEvent: StdEventTarget) => void;
|
|
9
|
-
type Props = {
|
|
10
|
-
className?: string;
|
|
11
|
-
value?: number;
|
|
12
|
-
onChange?: StdCallback;
|
|
13
|
-
} & RateProps;
|
|
14
|
-
export declare class AcRate extends React.Component<Props> {
|
|
15
|
-
static displayName: string;
|
|
16
|
-
static formSchema: string;
|
|
17
|
-
static defaultProps: {
|
|
18
|
-
onChange: any;
|
|
19
|
-
};
|
|
20
|
-
handleChange: (inEvent: any) => void;
|
|
21
|
-
render(): React.JSX.Element;
|
|
22
|
-
}
|
|
23
|
-
export {};
|