@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.
Files changed (89) hide show
  1. package/README.md +1 -56
  2. package/dist/main.cjs.js +77 -0
  3. package/dist/main.cjs.js.map +1 -0
  4. package/dist/main.d.mts +1062 -0
  5. package/dist/main.d.ts +1062 -34
  6. package/dist/main.esm.js +77 -0
  7. package/dist/main.esm.js.map +1 -0
  8. package/dist/style.css +2 -267
  9. package/dist/style.css.map +1 -0
  10. package/package.json +30 -75
  11. package/src/lib/_abstract-upload.tsx +131 -0
  12. package/src/lib/alert.tsx +53 -0
  13. package/src/lib/breadcrumb.tsx +40 -0
  14. package/src/lib/checkable-dropdown.tsx +170 -0
  15. package/src/lib/checkable-tag-list.tsx +122 -0
  16. package/src/lib/checkable-tag.tsx +101 -0
  17. package/src/lib/checkbox-group.tsx +72 -0
  18. package/src/lib/checkbox.tsx +59 -0
  19. package/src/lib/codeflask.tsx +17 -0
  20. package/src/lib/confirm-button.tsx +87 -0
  21. package/src/lib/date-picker.tsx +60 -0
  22. package/src/lib/editable-tag-group.tsx +234 -0
  23. package/src/lib/input-hidden.tsx +13 -0
  24. package/src/lib/input-number.tsx +52 -0
  25. package/src/lib/input-tags.tsx +140 -0
  26. package/src/lib/input-token.tsx +102 -0
  27. package/src/lib/input.tsx +58 -0
  28. package/src/lib/interactive-list.tsx +173 -0
  29. package/src/lib/pre-select.tsx +128 -0
  30. package/src/lib/radio-group.tsx +67 -0
  31. package/src/lib/range-picker.tsx +59 -0
  32. package/src/lib/rate.tsx +38 -0
  33. package/src/lib/search.tsx +49 -0
  34. package/src/lib/select.tsx +86 -0
  35. package/src/lib/slider-range.tsx +40 -0
  36. package/src/lib/slider.tsx +37 -0
  37. package/src/lib/switch.tsx +52 -0
  38. package/src/lib/textarea.tsx +29 -0
  39. package/src/lib/time-picker.tsx +66 -0
  40. package/src/lib/transfer.tsx +70 -0
  41. package/src/lib/tree-select.tsx +64 -0
  42. package/src/lib/tree.tsx +60 -0
  43. package/src/lib/upload-dragger.tsx +60 -0
  44. package/src/lib/upload-picture-card.tsx +56 -0
  45. package/src/lib/upload-picture.tsx +47 -0
  46. package/src/lib/upload.tsx +55 -0
  47. package/src/main.ts +34 -0
  48. package/src/style.scss +191 -0
  49. package/LICENSE.txt +0 -21
  50. package/dist/index.esm.js +0 -10
  51. package/dist/index.js +0 -10
  52. package/dist/lib/_abstract-upload.d.ts +0 -40
  53. package/dist/lib/alert.d.ts +0 -14
  54. package/dist/lib/breadcrumb.d.ts +0 -29
  55. package/dist/lib/checkable-dropdown.d.ts +0 -52
  56. package/dist/lib/checkable-tag-list.d.ts +0 -51
  57. package/dist/lib/checkable-tag.d.ts +0 -43
  58. package/dist/lib/checkbox-group.d.ts +0 -38
  59. package/dist/lib/checkbox.d.ts +0 -27
  60. package/dist/lib/codeflask.d.ts +0 -9
  61. package/dist/lib/confirm-button.d.ts +0 -23
  62. package/dist/lib/date-picker.d.ts +0 -26
  63. package/dist/lib/editable-tag-group.d.ts +0 -92
  64. package/dist/lib/input-hidden.d.ts +0 -7
  65. package/dist/lib/input-number.d.ts +0 -27
  66. package/dist/lib/input-tags.d.ts +0 -37
  67. package/dist/lib/input-token.d.ts +0 -39
  68. package/dist/lib/input.d.ts +0 -29
  69. package/dist/lib/interactive-list.d.ts +0 -56
  70. package/dist/lib/pre-select.d.ts +0 -57
  71. package/dist/lib/radio-group.d.ts +0 -42
  72. package/dist/lib/range-picker.d.ts +0 -27
  73. package/dist/lib/rate.d.ts +0 -23
  74. package/dist/lib/search.d.ts +0 -29
  75. package/dist/lib/select.d.ts +0 -43
  76. package/dist/lib/slider-range.d.ts +0 -23
  77. package/dist/lib/slider.d.ts +0 -22
  78. package/dist/lib/switch.d.ts +0 -27
  79. package/dist/lib/textarea.d.ts +0 -22
  80. package/dist/lib/time-picker.d.ts +0 -29
  81. package/dist/lib/transfer.d.ts +0 -37
  82. package/dist/lib/tree-select.d.ts +0 -32
  83. package/dist/lib/tree.d.ts +0 -31
  84. package/dist/lib/upload-dragger.d.ts +0 -28
  85. package/dist/lib/upload-picture-card.d.ts +0 -14
  86. package/dist/lib/upload-picture.d.ts +0 -14
  87. package/dist/lib/upload.d.ts +0 -28
  88. /package/{dist → src}/styles/input-tags.scss +0 -0
  89. /package/{dist → src}/styles/override.scss +0 -0
@@ -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,32 +0,0 @@
1
- import React from 'react';
2
- import { TreeSelectProps } from 'antd';
3
- import '@jswork/next-tree-walk';
4
- type StdEventTarget = {
5
- target: {
6
- value: any;
7
- };
8
- };
9
- type StdCallback = (inEvent: StdEventTarget) => void;
10
- type Props = {
11
- className?: string;
12
- items?: any[];
13
- template?: any;
14
- itemsKey?: string | ((index: number, item: any) => any);
15
- onChange?: StdCallback;
16
- } & TreeSelectProps;
17
- export declare class AcTreeSelect extends React.Component<Props> {
18
- static displayName: string;
19
- static formSchema: string;
20
- static defaultProps: {
21
- items: never[];
22
- template: ({ item }: {
23
- item: any;
24
- }, cb: any) => React.JSX.Element;
25
- itemsKey: string;
26
- onChange: any;
27
- };
28
- get childView(): any;
29
- handleChange: (inValue: any) => void;
30
- render(): React.JSX.Element;
31
- }
32
- export {};
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import { TreeProps } from 'antd';
3
- import '@jswork/next-tree-walk';
4
- type Props = {
5
- className?: string;
6
- items?: any[];
7
- kv?: Record<string, string>;
8
- template?: any;
9
- itemsKey?: string | ((index: number, item: any) => any);
10
- directory?: boolean;
11
- } & TreeProps;
12
- export declare class AcTree extends React.Component<Props> {
13
- static displayName: string;
14
- static formSchema: string;
15
- static defaultProps: {
16
- directory: boolean;
17
- items: never[];
18
- kv: {
19
- label: string;
20
- value: string;
21
- };
22
- template: ({ item }: {
23
- item: any;
24
- }, cb: any) => React.JSX.Element;
25
- itemsKey: string;
26
- };
27
- get childView(): any;
28
- template: (args: any) => any;
29
- render(): React.JSX.Element | null;
30
- }
31
- 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
- }
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { AcAbstractUpload } from './_abstract-upload';
3
- export declare class AcUploadPicture extends AcAbstractUpload {
4
- static displayName: string;
5
- static formSchema: string;
6
- static defaultProps: {
7
- onChange: any;
8
- value: never[];
9
- maxCount: number;
10
- transformURL: (pid: any) => any;
11
- transformResponse: (inFileList: any) => any;
12
- };
13
- render(): React.JSX.Element;
14
- }
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import type { UploadProps, ButtonProps } from 'antd';
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?: number;
13
- onChange?: StdCallback;
14
- onRequest?: CustomRequest;
15
- btnProps?: ButtonProps;
16
- } & UploadProps;
17
- export declare class AcUpload 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 {};
File without changes
File without changes