@agrotools1/at-components 0.1.3-5
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 +7 -0
- package/dist/Avatar/Avatar.d.ts +66 -0
- package/dist/Avatar/index.d.ts +1 -0
- package/dist/Button/Button.d.ts +146 -0
- package/dist/Button/index.d.ts +1 -0
- package/dist/CardWithInsights/CardWithInsights.d.ts +7 -0
- package/dist/CardWithInsights/index.d.ts +1 -0
- package/dist/Checkbox/Checkbox.d.ts +73 -0
- package/dist/Checkbox/index.d.ts +1 -0
- package/dist/DataTable/Column/Column.d.ts +36 -0
- package/dist/DataTable/Counters/Counters.d.ts +41 -0
- package/dist/DataTable/DataTable.d.ts +113 -0
- package/dist/DataTable/Tag/Tag.d.ts +19 -0
- package/dist/DataTable/index.d.ts +208 -0
- package/dist/Faq/Faq.d.ts +5 -0
- package/dist/Faq/index.d.ts +1 -0
- package/dist/Illustration/Illustration.d.ts +58 -0
- package/dist/Illustration/index.d.ts +1 -0
- package/dist/Input/Input.core.d.ts +132 -0
- package/dist/Input/index.d.ts +134 -0
- package/dist/Modal/Modal.d.ts +105 -0
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Paginator/Paginator.d.ts +43 -0
- package/dist/Paginator/index.d.ts +1 -0
- package/dist/ProgressBar/ProgressBar.d.ts +76 -0
- package/dist/ProgressBar/index.d.ts +1 -0
- package/dist/Select/Item/Item.d.ts +103 -0
- package/dist/Select/Select.core.d.ts +75 -0
- package/dist/Select/Select.multiple.d.ts +80 -0
- package/dist/Select/Select.single.d.ts +57 -0
- package/dist/Select/index.d.ts +132 -0
- package/dist/Styles/agrotools-theme.css +5 -0
- package/dist/Styles/agrotools-theme.css.map +1 -0
- package/dist/Tabs/Tab/Tab.d.ts +57 -0
- package/dist/Tabs/Tabs.d.ts +50 -0
- package/dist/Tabs/index.d.ts +1 -0
- package/dist/Tipograph/Paragraph/Paragraph.d.ts +25 -0
- package/dist/Tipograph/Title/Title.d.ts +25 -0
- package/dist/Tipograph/index.d.ts +50 -0
- package/dist/Toggle/Toggle.d.ts +35 -0
- package/dist/Toggle/index.d.ts +1 -0
- package/dist/Upload/Upload.d.ts +119 -0
- package/dist/Upload/index.d.ts +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +2348 -0
- package/dist/index.umd.cjs +1 -0
- package/package.json +93 -0
- package/storybook-static/108.2ef3bb7a.iframe.bundle.js +1 -0
- package/storybook-static/241.26474039.iframe.bundle.js +1 -0
- package/storybook-static/430.f9c58945.iframe.bundle.js +1 -0
- package/storybook-static/471.4eb28a88.iframe.bundle.js +1 -0
- package/storybook-static/518.adfe500c.iframe.bundle.js +1 -0
- package/storybook-static/605.b24c7f17.iframe.bundle.js +44 -0
- package/storybook-static/605.b24c7f17.iframe.bundle.js.map +1 -0
- package/storybook-static/619.95069113.iframe.bundle.js +134 -0
- package/storybook-static/619.95069113.iframe.bundle.js.LICENSE.txt +46 -0
- package/storybook-static/619.95069113.iframe.bundle.js.map +1 -0
- package/storybook-static/673.32e74aeb.iframe.bundle.js +1 -0
- package/storybook-static/716.ab558bfb.iframe.bundle.js +1 -0
- package/storybook-static/841.bc9263f1.iframe.bundle.js +402 -0
- package/storybook-static/841.bc9263f1.iframe.bundle.js.LICENSE.txt +15 -0
- package/storybook-static/841.bc9263f1.iframe.bundle.js.map +1 -0
- package/storybook-static/878.29798927.iframe.bundle.js +1 -0
- package/storybook-static/895.cebd63e6.iframe.bundle.js +1 -0
- package/storybook-static/998.aaef9ce6.iframe.bundle.js +1 -0
- package/storybook-static/Avatar-Avatar-stories.2acc14df.iframe.bundle.js +1 -0
- package/storybook-static/Button-Button-stories.2aa969e5.iframe.bundle.js +1 -0
- package/storybook-static/Checkbox-Checkbox-stories.e3f98a9b.iframe.bundle.js +1 -0
- package/storybook-static/DataTable-Column-Column-stories.73eabb87.iframe.bundle.js +1 -0
- package/storybook-static/DataTable-DataTable-stories.43cf8dff.iframe.bundle.js +1 -0
- package/storybook-static/DataTable-Tag-Tag-stories.071dd437.iframe.bundle.js +1 -0
- package/storybook-static/Input-Input-stories.a40131b3.iframe.bundle.js +1 -0
- package/storybook-static/Paginator-Paginator-stories.f7d9f6f2.iframe.bundle.js +1 -0
- package/storybook-static/Select-Item-Item-stories.3a913cd9.iframe.bundle.js +1 -0
- package/storybook-static/Select-Select-multiple-stories.42e824d4.iframe.bundle.js +1 -0
- package/storybook-static/Select-Select-single-stories.d50460ac.iframe.bundle.js +1 -0
- package/storybook-static/Tabs-Tab-Tab-stories.b1a9fef9.iframe.bundle.js +1 -0
- package/storybook-static/Tabs-Tabs-stories.73847c74.iframe.bundle.js +1 -0
- package/storybook-static/Tipograph-Paragraph-Paragraph-stories.3f579be8.iframe.bundle.js +1 -0
- package/storybook-static/Tipograph-Title-Title-stories.c1949e52.iframe.bundle.js +1 -0
- package/storybook-static/Toggle-Toggle-stories.52194834.iframe.bundle.js +1 -0
- package/storybook-static/favicon.svg +7 -0
- package/storybook-static/iframe.html +355 -0
- package/storybook-static/index.html +126 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/main.d9760f16.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/runtime~main.66427e0c.iframe.bundle.js +1 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +114 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +18 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js +27 -0
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/links-0/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-common-assets/fonts.css +31 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/GlobalScrollAreaStyles-UY5SB7EJ-BKTFUTA6.js +7 -0
- package/storybook-static/sb-manager/OverlayScrollbars-GZGLA7DL-YJ2Z3IBE.js +1 -0
- package/storybook-static/sb-manager/WithTooltip-J57HCPYA-3VOMFVVS.js +1 -0
- package/storybook-static/sb-manager/chunk-3J6GS6FI.js +1 -0
- package/storybook-static/sb-manager/chunk-L4KFTAB4.js +408 -0
- package/storybook-static/sb-manager/chunk-NBCGHFLK.js +136 -0
- package/storybook-static/sb-manager/chunk-O2ZUMB77.js +7 -0
- package/storybook-static/sb-manager/chunk-QMHPSTMR.js +15 -0
- package/storybook-static/sb-manager/chunk-QPL63VNK.js +1 -0
- package/storybook-static/sb-manager/chunk-RKFFWI2D.js +1 -0
- package/storybook-static/sb-manager/chunk-SPUAGIB2.js +207 -0
- package/storybook-static/sb-manager/formatter-SWP5E3XI-FS7NNRKF.js +156 -0
- package/storybook-static/sb-manager/globals.js +1 -0
- package/storybook-static/sb-manager/index.js +1 -0
- package/storybook-static/sb-manager/runtime.js +1 -0
- package/storybook-static/sb-manager/syntaxhighlighter-PONEFOSF-PLQPOLN2.js +1 -0
- package/storybook-static/sb-preview/globals.js +1 -0
- package/storybook-static/sb-preview/runtime.js +112 -0
- package/storybook-static/static/media/check.c2eccee6.svg +10 -0
- package/storybook-static/static/media/checkmarck.9932a0d7.svg +5 -0
- package/storybook-static/static/media/disabled.4fbc31ab.svg +12 -0
- package/storybook-static/static/media/double-left-arrow.6a90d667.svg +15 -0
- package/storybook-static/static/media/double-right-arrow.879b3cc9.svg +15 -0
- package/storybook-static/static/media/error.934dd460.svg +12 -0
- package/storybook-static/static/media/error.f04b33e9.svg +5 -0
- package/storybook-static/static/media/filter.0268b8e0.svg +12 -0
- package/storybook-static/static/media/indicator.41526843.svg +3 -0
- package/storybook-static/static/media/info.f0b1a71f.svg +18 -0
- package/storybook-static/static/media/left-arrow.5cf50151.svg +5 -0
- package/storybook-static/static/media/right-arrow.406ffc39.svg +5 -0
- package/storybook-static/static/media/success.c306802d.svg +12 -0
- package/storybook-static/static/media/warning.32a47f98.svg +9 -0
- package/storybook-static/static/media/warning.7e14a595.svg +5 -0
- package/storybook-static/stories.json +1 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { PropType, Ref } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
file: {
|
|
4
|
+
type: {
|
|
5
|
+
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
|
|
6
|
+
prototype: File;
|
|
7
|
+
};
|
|
8
|
+
required: false;
|
|
9
|
+
default: null;
|
|
10
|
+
validator: (value: File) => boolean;
|
|
11
|
+
};
|
|
12
|
+
fileIcon: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: string;
|
|
16
|
+
validator: (value: string) => boolean;
|
|
17
|
+
};
|
|
18
|
+
isOnlyUse: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
required: false;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
handleRemoveFile: {
|
|
24
|
+
type: PropType<(...args: unknown[]) => unknown>;
|
|
25
|
+
required: false;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
fileC: {
|
|
30
|
+
file: File | null;
|
|
31
|
+
};
|
|
32
|
+
progress: Ref<number>;
|
|
33
|
+
uploadBytes: Ref<number>;
|
|
34
|
+
goBack: Ref<boolean>;
|
|
35
|
+
handleFileName: (fileName: string | undefined) => string;
|
|
36
|
+
handleFileSize: (fileSize: number | undefined) => number;
|
|
37
|
+
handleProgressBar: (document: File | null) => void;
|
|
38
|
+
handleRemoveFileC: () => void;
|
|
39
|
+
handleClick: () => unknown;
|
|
40
|
+
handleUploadBytes: () => number | Ref<number>;
|
|
41
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateProgress" | "update:file")[], "updateProgress" | "update:file", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
file: {
|
|
43
|
+
type: {
|
|
44
|
+
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
|
|
45
|
+
prototype: File;
|
|
46
|
+
};
|
|
47
|
+
required: false;
|
|
48
|
+
default: null;
|
|
49
|
+
validator: (value: File) => boolean;
|
|
50
|
+
};
|
|
51
|
+
fileIcon: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
required: false;
|
|
54
|
+
default: string;
|
|
55
|
+
validator: (value: string) => boolean;
|
|
56
|
+
};
|
|
57
|
+
isOnlyUse: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
required: false;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
handleRemoveFile: {
|
|
63
|
+
type: PropType<(...args: unknown[]) => unknown>;
|
|
64
|
+
required: false;
|
|
65
|
+
default: null;
|
|
66
|
+
};
|
|
67
|
+
}>> & {
|
|
68
|
+
onUpdateProgress?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
"onUpdate:file"?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
file: File;
|
|
72
|
+
fileIcon: string;
|
|
73
|
+
isOnlyUse: boolean;
|
|
74
|
+
handleRemoveFile: (...args: unknown[]) => unknown;
|
|
75
|
+
}, {}>;
|
|
76
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AtProgressBar } from "./ProgressBar";
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export interface CheckboxProps extends MouseEvent {
|
|
2
|
+
isChecked: boolean;
|
|
3
|
+
item: {
|
|
4
|
+
text: string;
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export interface SelectItemProps {
|
|
9
|
+
text: string;
|
|
10
|
+
value: string;
|
|
11
|
+
onClick?: (payload: MouseEvent) => void;
|
|
12
|
+
onCheckboxChange?: (payload: CheckboxProps) => void;
|
|
13
|
+
checkboxValue?: boolean;
|
|
14
|
+
isSelected?: boolean;
|
|
15
|
+
type?: "text" | "multiple" | "with-icon";
|
|
16
|
+
icon?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: import("vue").DefineComponent<{
|
|
19
|
+
text: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
validator: (value: string) => boolean;
|
|
23
|
+
};
|
|
24
|
+
value: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
required: true;
|
|
27
|
+
validator: (value: string) => boolean;
|
|
28
|
+
};
|
|
29
|
+
onClick: {
|
|
30
|
+
default: () => void;
|
|
31
|
+
type: () => (payload: MouseEvent) => void;
|
|
32
|
+
required: false;
|
|
33
|
+
validator: (value: (payload: MouseEvent) => void) => boolean;
|
|
34
|
+
};
|
|
35
|
+
onCheckboxChange: {
|
|
36
|
+
default: () => void;
|
|
37
|
+
type: () => (payload: CheckboxProps) => void;
|
|
38
|
+
required: false;
|
|
39
|
+
validator: (value: (payload: MouseEvent) => void) => boolean;
|
|
40
|
+
};
|
|
41
|
+
checkboxValue: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
validator: (value: boolean) => boolean;
|
|
45
|
+
};
|
|
46
|
+
type: {
|
|
47
|
+
type: () => SelectItemProps["type"];
|
|
48
|
+
default: string;
|
|
49
|
+
validator: (value: SelectItemProps["type"]) => boolean;
|
|
50
|
+
};
|
|
51
|
+
icon: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
validator: (value: string) => boolean;
|
|
55
|
+
};
|
|
56
|
+
}, {
|
|
57
|
+
checkboxRef: import("vue").Ref<null>;
|
|
58
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
text: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
required: true;
|
|
62
|
+
validator: (value: string) => boolean;
|
|
63
|
+
};
|
|
64
|
+
value: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
validator: (value: string) => boolean;
|
|
68
|
+
};
|
|
69
|
+
onClick: {
|
|
70
|
+
default: () => void;
|
|
71
|
+
type: () => (payload: MouseEvent) => void;
|
|
72
|
+
required: false;
|
|
73
|
+
validator: (value: (payload: MouseEvent) => void) => boolean;
|
|
74
|
+
};
|
|
75
|
+
onCheckboxChange: {
|
|
76
|
+
default: () => void;
|
|
77
|
+
type: () => (payload: CheckboxProps) => void;
|
|
78
|
+
required: false;
|
|
79
|
+
validator: (value: (payload: MouseEvent) => void) => boolean;
|
|
80
|
+
};
|
|
81
|
+
checkboxValue: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
validator: (value: boolean) => boolean;
|
|
85
|
+
};
|
|
86
|
+
type: {
|
|
87
|
+
type: () => SelectItemProps["type"];
|
|
88
|
+
default: string;
|
|
89
|
+
validator: (value: SelectItemProps["type"]) => boolean;
|
|
90
|
+
};
|
|
91
|
+
icon: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
validator: (value: string) => boolean;
|
|
95
|
+
};
|
|
96
|
+
}>>, {
|
|
97
|
+
type: "text" | "multiple" | "with-icon" | undefined;
|
|
98
|
+
onClick: (payload: MouseEvent) => void;
|
|
99
|
+
icon: string;
|
|
100
|
+
onCheckboxChange: (payload: CheckboxProps) => void;
|
|
101
|
+
checkboxValue: boolean;
|
|
102
|
+
}, {}>;
|
|
103
|
+
export default _default;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type SelectItemProps } from "./Item/Item";
|
|
2
|
+
export interface SelectCoreProps {
|
|
3
|
+
defaultValue: string | null;
|
|
4
|
+
label: string;
|
|
5
|
+
items: Array<SelectItemProps>;
|
|
6
|
+
selectedItems?: Array<SelectItemProps>;
|
|
7
|
+
forceValue?: boolean;
|
|
8
|
+
separator?: string;
|
|
9
|
+
onSelectedItemClick: (separatedValue: string) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue").DefineComponent<{
|
|
12
|
+
defaultValue: {
|
|
13
|
+
type: () => SelectItemProps;
|
|
14
|
+
};
|
|
15
|
+
label: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
items: {
|
|
20
|
+
type: () => Array<SelectItemProps>;
|
|
21
|
+
};
|
|
22
|
+
forceValue: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
separator: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
selectedItems: {
|
|
31
|
+
type: () => Array<SelectItemProps>;
|
|
32
|
+
default: () => SelectItemProps[];
|
|
33
|
+
};
|
|
34
|
+
onSelectedItemClick: {
|
|
35
|
+
type: () => (separatedValue: string) => void;
|
|
36
|
+
required: false;
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
id: string;
|
|
40
|
+
handleDefaultValue: () => string | undefined;
|
|
41
|
+
atInput: import("vue").Ref<null>;
|
|
42
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
defaultValue: {
|
|
44
|
+
type: () => SelectItemProps;
|
|
45
|
+
};
|
|
46
|
+
label: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
items: {
|
|
51
|
+
type: () => Array<SelectItemProps>;
|
|
52
|
+
};
|
|
53
|
+
forceValue: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
separator: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
selectedItems: {
|
|
62
|
+
type: () => Array<SelectItemProps>;
|
|
63
|
+
default: () => SelectItemProps[];
|
|
64
|
+
};
|
|
65
|
+
onSelectedItemClick: {
|
|
66
|
+
type: () => (separatedValue: string) => void;
|
|
67
|
+
required: false;
|
|
68
|
+
};
|
|
69
|
+
}>>, {
|
|
70
|
+
label: string;
|
|
71
|
+
separator: string;
|
|
72
|
+
selectedItems: SelectItemProps[];
|
|
73
|
+
forceValue: boolean;
|
|
74
|
+
}, {}>;
|
|
75
|
+
export default _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
import type { SelectCoreProps } from "./Select.core";
|
|
3
|
+
import type { SelectItemProps } from "./Item/Item";
|
|
4
|
+
export interface SelectMultipleProps extends SelectCoreProps {
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
defaultValues: {
|
|
8
|
+
type: PropType<SelectItemProps[]>;
|
|
9
|
+
default: () => SelectItemProps[];
|
|
10
|
+
};
|
|
11
|
+
label: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
items: {
|
|
16
|
+
type: () => Array<SelectItemProps>;
|
|
17
|
+
default: () => SelectItemProps[];
|
|
18
|
+
validator: (value: Array<SelectItemProps>) => boolean;
|
|
19
|
+
};
|
|
20
|
+
separator: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
onSelectedValueChange: (item: SelectItemProps, isChecked: boolean) => void;
|
|
26
|
+
onSelectedItemClick: (selectedValue: string, isOpen?: boolean) => void;
|
|
27
|
+
myItems: {
|
|
28
|
+
text: string;
|
|
29
|
+
value: string;
|
|
30
|
+
onClick?: ((payload: MouseEvent) => void) | undefined;
|
|
31
|
+
onCheckboxChange?: ((payload: import("./Item/Item").CheckboxProps) => void) | undefined;
|
|
32
|
+
checkboxValue?: boolean | undefined;
|
|
33
|
+
isSelected?: boolean | undefined;
|
|
34
|
+
type?: "text" | "multiple" | "with-icon" | undefined;
|
|
35
|
+
icon?: string | undefined;
|
|
36
|
+
}[];
|
|
37
|
+
values: import("vue").ComputedRef<string>;
|
|
38
|
+
selectedValues: {
|
|
39
|
+
text: string;
|
|
40
|
+
value: string;
|
|
41
|
+
onClick?: ((payload: MouseEvent) => void) | undefined;
|
|
42
|
+
onCheckboxChange?: ((payload: import("./Item/Item").CheckboxProps) => void) | undefined;
|
|
43
|
+
checkboxValue?: boolean | undefined;
|
|
44
|
+
isSelected?: boolean | undefined;
|
|
45
|
+
type?: "text" | "multiple" | "with-icon" | undefined;
|
|
46
|
+
icon?: string | undefined;
|
|
47
|
+
}[];
|
|
48
|
+
isOpen: import("vue").Ref<boolean>;
|
|
49
|
+
containerRef: import("vue").Ref<HTMLDivElement | null>;
|
|
50
|
+
icons: {
|
|
51
|
+
indicatorSvg: string;
|
|
52
|
+
};
|
|
53
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:items" | "update:selectedItems")[], "update:items" | "update:selectedItems", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
+
defaultValues: {
|
|
55
|
+
type: PropType<SelectItemProps[]>;
|
|
56
|
+
default: () => SelectItemProps[];
|
|
57
|
+
};
|
|
58
|
+
label: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
items: {
|
|
63
|
+
type: () => Array<SelectItemProps>;
|
|
64
|
+
default: () => SelectItemProps[];
|
|
65
|
+
validator: (value: Array<SelectItemProps>) => boolean;
|
|
66
|
+
};
|
|
67
|
+
separator: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
}>> & {
|
|
72
|
+
"onUpdate:items"?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
"onUpdate:selectedItems"?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
label: string;
|
|
76
|
+
items: SelectItemProps[];
|
|
77
|
+
separator: string;
|
|
78
|
+
defaultValues: SelectItemProps[];
|
|
79
|
+
}, {}>;
|
|
80
|
+
export default _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { SelectCoreProps } from "./Select.core";
|
|
2
|
+
import type { SelectItemProps } from "./Item/Item";
|
|
3
|
+
export interface SelectSingleProps extends SelectCoreProps {
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
defaultValue: {
|
|
7
|
+
type: () => SelectItemProps;
|
|
8
|
+
};
|
|
9
|
+
label: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
items: {
|
|
14
|
+
type: () => Array<SelectItemProps>;
|
|
15
|
+
default: () => SelectItemProps[];
|
|
16
|
+
validator: (value: Array<SelectItemProps>) => boolean;
|
|
17
|
+
};
|
|
18
|
+
forceValue: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
onSelectedValueChange: (item: SelectItemProps) => void;
|
|
24
|
+
selectedValue: import("vue").Ref<{
|
|
25
|
+
text: string;
|
|
26
|
+
value: string;
|
|
27
|
+
onClick?: ((payload: MouseEvent) => void) | undefined;
|
|
28
|
+
onCheckboxChange?: ((payload: import("./Item/Item").CheckboxProps) => void) | undefined;
|
|
29
|
+
checkboxValue?: boolean | undefined;
|
|
30
|
+
isSelected?: boolean | undefined;
|
|
31
|
+
type?: "text" | "multiple" | "with-icon" | undefined;
|
|
32
|
+
icon?: string | undefined;
|
|
33
|
+
} | undefined>;
|
|
34
|
+
open: import("vue").Ref<boolean>;
|
|
35
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
defaultValue: {
|
|
37
|
+
type: () => SelectItemProps;
|
|
38
|
+
};
|
|
39
|
+
label: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
items: {
|
|
44
|
+
type: () => Array<SelectItemProps>;
|
|
45
|
+
default: () => SelectItemProps[];
|
|
46
|
+
validator: (value: Array<SelectItemProps>) => boolean;
|
|
47
|
+
};
|
|
48
|
+
forceValue: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
}>>, {
|
|
53
|
+
label: string;
|
|
54
|
+
items: SelectItemProps[];
|
|
55
|
+
forceValue: boolean;
|
|
56
|
+
}, {}>;
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { SelectCoreProps } from "./Select.core";
|
|
2
|
+
import type { SelectItemProps as ISelectItemProps } from "./Item/Item";
|
|
3
|
+
export type SelectProps = SelectCoreProps;
|
|
4
|
+
export type SelectItemProps = ISelectItemProps;
|
|
5
|
+
export declare const AtSelect: {
|
|
6
|
+
Single: import("vue").DefineComponent<{
|
|
7
|
+
defaultValue: {
|
|
8
|
+
type: () => ISelectItemProps;
|
|
9
|
+
};
|
|
10
|
+
label: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
items: {
|
|
15
|
+
type: () => ISelectItemProps[];
|
|
16
|
+
default: () => ISelectItemProps[];
|
|
17
|
+
validator: (value: ISelectItemProps[]) => boolean;
|
|
18
|
+
};
|
|
19
|
+
forceValue: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
onSelectedValueChange: (item: ISelectItemProps) => void;
|
|
25
|
+
selectedValue: import("vue").Ref<{
|
|
26
|
+
text: string;
|
|
27
|
+
value: string;
|
|
28
|
+
onClick?: ((payload: MouseEvent) => void) | undefined;
|
|
29
|
+
onCheckboxChange?: ((payload: import("./Item/Item").CheckboxProps) => void) | undefined;
|
|
30
|
+
checkboxValue?: boolean | undefined;
|
|
31
|
+
isSelected?: boolean | undefined;
|
|
32
|
+
type?: "text" | "multiple" | "with-icon" | undefined;
|
|
33
|
+
icon?: string | undefined;
|
|
34
|
+
} | undefined>;
|
|
35
|
+
open: import("vue").Ref<boolean>;
|
|
36
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
defaultValue: {
|
|
38
|
+
type: () => ISelectItemProps;
|
|
39
|
+
};
|
|
40
|
+
label: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
items: {
|
|
45
|
+
type: () => ISelectItemProps[];
|
|
46
|
+
default: () => ISelectItemProps[];
|
|
47
|
+
validator: (value: ISelectItemProps[]) => boolean;
|
|
48
|
+
};
|
|
49
|
+
forceValue: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
}>>, {
|
|
54
|
+
label: string;
|
|
55
|
+
items: ISelectItemProps[];
|
|
56
|
+
forceValue: boolean;
|
|
57
|
+
}, {}>;
|
|
58
|
+
Multiple: import("vue").DefineComponent<{
|
|
59
|
+
defaultValues: {
|
|
60
|
+
type: import("vue").PropType<ISelectItemProps[]>;
|
|
61
|
+
default: () => ISelectItemProps[];
|
|
62
|
+
};
|
|
63
|
+
label: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
items: {
|
|
68
|
+
type: () => ISelectItemProps[];
|
|
69
|
+
default: () => ISelectItemProps[];
|
|
70
|
+
validator: (value: ISelectItemProps[]) => boolean;
|
|
71
|
+
};
|
|
72
|
+
separator: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
}, {
|
|
77
|
+
onSelectedValueChange: (item: ISelectItemProps, isChecked: boolean) => void;
|
|
78
|
+
onSelectedItemClick: (selectedValue: string, isOpen?: boolean) => void;
|
|
79
|
+
myItems: {
|
|
80
|
+
text: string;
|
|
81
|
+
value: string;
|
|
82
|
+
onClick?: ((payload: MouseEvent) => void) | undefined;
|
|
83
|
+
onCheckboxChange?: ((payload: import("./Item/Item").CheckboxProps) => void) | undefined;
|
|
84
|
+
checkboxValue?: boolean | undefined;
|
|
85
|
+
isSelected?: boolean | undefined;
|
|
86
|
+
type?: "text" | "multiple" | "with-icon" | undefined;
|
|
87
|
+
icon?: string | undefined;
|
|
88
|
+
}[];
|
|
89
|
+
values: import("vue").ComputedRef<string>;
|
|
90
|
+
selectedValues: {
|
|
91
|
+
text: string;
|
|
92
|
+
value: string;
|
|
93
|
+
onClick?: ((payload: MouseEvent) => void) | undefined;
|
|
94
|
+
onCheckboxChange?: ((payload: import("./Item/Item").CheckboxProps) => void) | undefined;
|
|
95
|
+
checkboxValue?: boolean | undefined;
|
|
96
|
+
isSelected?: boolean | undefined;
|
|
97
|
+
type?: "text" | "multiple" | "with-icon" | undefined;
|
|
98
|
+
icon?: string | undefined;
|
|
99
|
+
}[];
|
|
100
|
+
isOpen: import("vue").Ref<boolean>;
|
|
101
|
+
containerRef: import("vue").Ref<HTMLDivElement | null>;
|
|
102
|
+
icons: {
|
|
103
|
+
indicatorSvg: string;
|
|
104
|
+
};
|
|
105
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:items" | "update:selectedItems")[], "update:items" | "update:selectedItems", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
106
|
+
defaultValues: {
|
|
107
|
+
type: import("vue").PropType<ISelectItemProps[]>;
|
|
108
|
+
default: () => ISelectItemProps[];
|
|
109
|
+
};
|
|
110
|
+
label: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
items: {
|
|
115
|
+
type: () => ISelectItemProps[];
|
|
116
|
+
default: () => ISelectItemProps[];
|
|
117
|
+
validator: (value: ISelectItemProps[]) => boolean;
|
|
118
|
+
};
|
|
119
|
+
separator: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
}>> & {
|
|
124
|
+
"onUpdate:items"?: ((...args: any[]) => any) | undefined;
|
|
125
|
+
"onUpdate:selectedItems"?: ((...args: any[]) => any) | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
label: string;
|
|
128
|
+
items: ISelectItemProps[];
|
|
129
|
+
separator: string;
|
|
130
|
+
defaultValues: ISelectItemProps[];
|
|
131
|
+
}, {}>;
|
|
132
|
+
};
|