@jswork/antd-components 1.0.55 → 1.0.57

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 (39) hide show
  1. package/package.json +3 -3
  2. package/dist/index.esm.js +0 -10
  3. package/dist/index.js +0 -10
  4. package/dist/lib/_abstract-upload.d.ts +0 -40
  5. package/dist/lib/breadcrumb.d.ts +0 -25
  6. package/dist/lib/checkable-dropdown.d.ts +0 -52
  7. package/dist/lib/checkable-tag-list.d.ts +0 -51
  8. package/dist/lib/checkable-tag.d.ts +0 -43
  9. package/dist/lib/checkbox-group.d.ts +0 -38
  10. package/dist/lib/checkbox.d.ts +0 -27
  11. package/dist/lib/codeflask.d.ts +0 -9
  12. package/dist/lib/date-picker.d.ts +0 -28
  13. package/dist/lib/editable-tag-group.d.ts +0 -92
  14. package/dist/lib/input-hidden.d.ts +0 -7
  15. package/dist/lib/input-number.d.ts +0 -27
  16. package/dist/lib/input-token.d.ts +0 -39
  17. package/dist/lib/input.d.ts +0 -29
  18. package/dist/lib/pre-select.d.ts +0 -57
  19. package/dist/lib/radio-group.d.ts +0 -36
  20. package/dist/lib/range-picker.d.ts +0 -27
  21. package/dist/lib/rate.d.ts +0 -23
  22. package/dist/lib/search.d.ts +0 -29
  23. package/dist/lib/select.d.ts +0 -43
  24. package/dist/lib/slider-range.d.ts +0 -23
  25. package/dist/lib/slider.d.ts +0 -22
  26. package/dist/lib/switch.d.ts +0 -27
  27. package/dist/lib/textarea.d.ts +0 -22
  28. package/dist/lib/time-picker.d.ts +0 -29
  29. package/dist/lib/transfer.d.ts +0 -37
  30. package/dist/lib/tree-select.d.ts +0 -31
  31. package/dist/lib/tree.d.ts +0 -30
  32. package/dist/lib/upload-dragger.d.ts +0 -28
  33. package/dist/lib/upload-picture-card.d.ts +0 -14
  34. package/dist/lib/upload-picture.d.ts +0 -14
  35. package/dist/lib/upload.d.ts +0 -28
  36. package/dist/main.d.ts +0 -31
  37. package/dist/style.css +0 -218
  38. package/dist/style.scss +0 -191
  39. package/dist/styles/override.scss +0 -29
@@ -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,7 +0,0 @@
1
- import React from 'react';
2
- export declare class AcInputHidden extends React.Component {
3
- static displayName: string;
4
- static formSchema: string;
5
- static defaultProps: {};
6
- render(): React.JSX.Element;
7
- }
@@ -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 {};
@@ -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 {};
@@ -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: string | number | readonly string[] | undefined;
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,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,36 +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
- handleChange: (inEvent: any) => void;
34
- render(): React.JSX.Element;
35
- }
36
- 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 {};
@@ -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 {};
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { SearchProps } from 'antd/es/input';
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
- onSearch?: StdCallback;
14
- autoComplete?: boolean;
15
- } & SearchProps;
16
- export declare class AcSearch extends React.Component<Props> {
17
- static displayName: string;
18
- static formSchema: string;
19
- static defaultProps: {
20
- onChange: any;
21
- onSearch: any;
22
- autoComplete: boolean;
23
- placeholder: string;
24
- };
25
- get complete(): "on" | "off";
26
- handleSearch: (inEvent: any) => void;
27
- render(): React.JSX.Element;
28
- }
29
- export {};
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
- import { SelectProps } from 'antd';
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
- type Props = {
14
- className?: string;
15
- items?: any[];
16
- kv?: Record<string, string>;
17
- onChange?: StdCallback;
18
- onSearch?: StdCallback;
19
- template?: TemplateCallback;
20
- } & Omit<SelectProps, 'options'>;
21
- export declare class AcSelect extends React.Component<Props> {
22
- static displayName: string;
23
- static formSchema: string;
24
- static defaultProps: {
25
- placeholder: string;
26
- items: never[];
27
- kv: {
28
- label: string;
29
- value: string;
30
- };
31
- template: (args: any) => React.JSX.Element;
32
- onChange: any;
33
- onSearch: any;
34
- };
35
- state: {
36
- value: any;
37
- };
38
- shouldComponentUpdate(nextProps: Readonly<Props>): boolean;
39
- handleChange: (inValue: any) => void;
40
- template: (args: any) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
41
- render(): React.JSX.Element;
42
- }
43
- export {};
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { SliderRangeProps } from 'antd/es/slider';
3
- type StdEventTarget = {
4
- target: {
5
- value: any;
6
- };
7
- };
8
- type StdCallback = (inEvent: StdEventTarget) => void;
9
- type Props = {
10
- className?: string;
11
- range?: true;
12
- onChange?: StdCallback;
13
- } & Omit<SliderRangeProps, 'range'>;
14
- export declare class AcSliderRange 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 {};
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { SliderSingleProps } 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
- } & SliderSingleProps;
13
- export declare class AcSlider extends React.Component<Props> {
14
- static displayName: string;
15
- static formSchema: string;
16
- static defaultProps: {
17
- onChange: any;
18
- };
19
- handleChange: (inEvent: any) => void;
20
- render(): React.JSX.Element;
21
- }
22
- export {};
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import { SwitchProps } 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
- } & SwitchProps;
14
- export declare class AcSwitch extends React.Component<Props> {
15
- static displayName: string;
16
- static formSchema: string;
17
- static defaultProps: {
18
- onChange: any;
19
- };
20
- state: {
21
- value: boolean;
22
- };
23
- shouldComponentUpdate(nextProps: Readonly<Props>): boolean;
24
- handleChange: (value: any) => void;
25
- render(): React.JSX.Element;
26
- }
27
- export {};
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { TextAreaProps } from 'antd/es/input';
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
- } & TextAreaProps;
14
- export declare class AcTextarea extends React.Component<Props> {
15
- static displayName: string;
16
- static formSchema: string;
17
- static defaultProps: {
18
- onChange: any;
19
- };
20
- render(): React.JSX.Element;
21
- }
22
- export {};
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { TimePickerProps } from 'antd';
3
- import dayjs from 'dayjs';
4
- type StdEventTarget = {
5
- target: {
6
- value: any;
7
- };
8
- };
9
- type StdCallback = (inEvent: StdEventTarget) => void;
10
- type Props = {
11
- className?: string;
12
- value?: string | dayjs.Dayjs;
13
- defaultValue?: string | dayjs.Dayjs;
14
- onChange?: StdCallback;
15
- } & Omit<TimePickerProps, 'value' | 'defaultValue'>;
16
- export declare class AcTimePicker extends React.Component<Props> {
17
- static displayName: string;
18
- static formSchema: string;
19
- static defaultProps: {
20
- onChange: any;
21
- format: string;
22
- };
23
- handleChange: (inEvent: any) => void;
24
- parse: (inValue: any) => dayjs.Dayjs;
25
- stringify: (inValue: any) => any;
26
- normalize: (inValues: any) => any;
27
- render(): React.JSX.Element;
28
- }
29
- export {};
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import { TransferProps } from 'antd';
3
- type StdEventTarget = {
4
- target: {
5
- value: any;
6
- };
7
- };
8
- type StdCallback = (inEvent: StdEventTarget) => void;
9
- type TemplateCallback = (item: {
10
- item: any;
11
- }, options?: any) => React.ReactNode;
12
- type Props = {
13
- className?: string;
14
- items?: any[];
15
- template: TemplateCallback;
16
- value?: any[];
17
- onChange?: StdCallback;
18
- } & TransferProps<any>;
19
- export declare class AcTransfer extends React.Component<Props> {
20
- static displayName: string;
21
- static formSchema: string;
22
- static defaultProps: {
23
- items: never[];
24
- template: ({ item }: {
25
- item: any;
26
- }, options?: any) => React.ReactNode;
27
- onChange: any;
28
- };
29
- get templateCallback(): any;
30
- state: {
31
- value: any[] | undefined;
32
- };
33
- shouldComponentUpdate(nextProps: Readonly<Props>): boolean;
34
- handleChange: (inEvent: any) => void;
35
- render(): React.JSX.Element;
36
- }
37
- export {};
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import { TreeSelectProps } 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
- items?: any[];
12
- template?: any;
13
- itemsKey?: string | ((index: number, item: any) => any);
14
- onChange?: StdCallback;
15
- } & TreeSelectProps;
16
- export declare class AcTreeSelect extends React.Component<Props> {
17
- static displayName: string;
18
- static formSchema: string;
19
- static defaultProps: {
20
- items: never[];
21
- template: ({ item }: {
22
- item: any;
23
- }, cb: any) => React.JSX.Element;
24
- itemsKey: string;
25
- onChange: any;
26
- };
27
- get childView(): any;
28
- handleChange: (inValue: any) => void;
29
- render(): React.JSX.Element;
30
- }
31
- export {};
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import { TreeProps } from 'antd';
3
- type Props = {
4
- className?: string;
5
- items?: any[];
6
- kv?: Record<string, string>;
7
- template?: any;
8
- itemsKey?: string | ((index: number, item: any) => any);
9
- directory?: boolean;
10
- } & TreeProps;
11
- export declare class AcTree extends React.Component<Props> {
12
- static displayName: string;
13
- static formSchema: string;
14
- static defaultProps: {
15
- directory: boolean;
16
- items: never[];
17
- kv: {
18
- label: string;
19
- value: string;
20
- };
21
- template: ({ item }: {
22
- item: any;
23
- }, cb: any) => React.JSX.Element;
24
- itemsKey: string;
25
- };
26
- get childView(): any;
27
- template: (args: any) => any;
28
- render(): React.JSX.Element | null;
29
- }
30
- export {};
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { DraggerProps } from 'antd/es/upload';
3
- type StdEventTarget = {
4
- target: {
5
- value: any;
6
- };
7
- };
8
- type StdCallback = (inEvent: StdEventTarget) => void;
9
- type CustomRequest = (inEvent: any) => Promise<any>;
10
- type Props = {
11
- className?: string;
12
- value?: any[];
13
- defaultValue?: any[];
14
- onChange?: StdCallback;
15
- onRequest?: CustomRequest;
16
- } & DraggerProps;
17
- export declare class AcUploadDragger extends React.Component<Props> {
18
- static displayName: string;
19
- static formSchema: string;
20
- static defaultProps: {
21
- onChange: any;
22
- onRequest: (inEvent: any) => Promise<any>;
23
- };
24
- handleChange: (inEvent: any) => void;
25
- handleCustomRequest: (inRequestOption: any) => void;
26
- render(): React.JSX.Element;
27
- }
28
- export {};
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import '@jswork/next-gpid';
3
- import { AcAbstractUpload } from './_abstract-upload';
4
- export declare class AcUploadPictureCard extends AcAbstractUpload {
5
- static displayName: string;
6
- static formSchema: string;
7
- static defaultProps: {
8
- onChange: any;
9
- value: never[];
10
- transformURL: (pid: any) => any;
11
- transformResponse: (inFileList: any) => any;
12
- };
13
- render(): React.JSX.Element;
14
- }