@getblock/core 0.0.76
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 +16 -0
- package/dist/components/badges/Badges.vue.d.ts +23 -0
- package/dist/components/breadcrumbs/Breadcrumbs.vue.d.ts +61 -0
- package/dist/components/button/Button.types.d.ts +3 -0
- package/dist/components/button/Button.vue.d.ts +63 -0
- package/dist/components/checkbox/Checkbox.vue.d.ts +117 -0
- package/dist/components/checkbox/types.d.ts +5 -0
- package/dist/components/chips/Chips.vue.d.ts +48 -0
- package/dist/components/dropdown/Dropdown.vue.d.ts +217 -0
- package/dist/components/dropdownWithCheckbox/Dropdown.vue.d.ts +431 -0
- package/dist/components/droplist/Droplist.vue.d.ts +208 -0
- package/dist/components/icon/Icon.types.d.ts +2 -0
- package/dist/components/icon/Icon.vue.d.ts +41 -0
- package/dist/components/index.d.ts +21 -0
- package/dist/components/input/Input.vue.d.ts +195 -0
- package/dist/components/input/types.d.ts +10 -0
- package/dist/components/lineTab/LineTab.vue.d.ts +33 -0
- package/dist/components/listItem/ListItem.vue.d.ts +23 -0
- package/dist/components/loading/CustomLoader.vue.d.ts +24 -0
- package/dist/components/notification/Notification.vue.d.ts +190 -0
- package/dist/components/radioButton/RadioButton.vue.d.ts +88 -0
- package/dist/components/range/Range.vue.d.ts +61 -0
- package/dist/components/tabBar/TabBar.vue.d.ts +92 -0
- package/dist/components/tag/Tag.vue.d.ts +75 -0
- package/dist/components/textArea/TextArea.vue.d.ts +119 -0
- package/dist/components/toggle/Toggle.vue.d.ts +30 -0
- package/dist/components/tooltip/Tooltip.vue.d.ts +42 -0
- package/dist/getblockui-core.es.ts +1873 -0
- package/dist/getblockui-core.umd.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/vite-env.d.ts +9 -0
- package/dist/vite.svg +1 -0
- package/package.json +73 -0
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
## Recommended IDE Setup
|
|
6
|
+
|
|
7
|
+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar)
|
|
8
|
+
|
|
9
|
+
## Type Support For `.vue` Imports in TS
|
|
10
|
+
|
|
11
|
+
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:
|
|
12
|
+
|
|
13
|
+
1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
|
|
14
|
+
2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.
|
|
15
|
+
|
|
16
|
+
You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
type ColorTypeProps = 'additional' | 'tint-base' | 'violet' | 'attention' | 'error' | 'special' | 'accent' | 'primary' | 'success';
|
|
4
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
5
|
+
colorType: {
|
|
6
|
+
type: PropType<ColorTypeProps>;
|
|
7
|
+
default: string;
|
|
8
|
+
validator: (value: ColorTypeProps) => boolean;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
props: any;
|
|
12
|
+
classObject: import("vue").ComputedRef<object>;
|
|
13
|
+
readonly badges: CSSModuleClasses;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
colorType: {
|
|
16
|
+
type: PropType<ColorTypeProps>;
|
|
17
|
+
default: string;
|
|
18
|
+
validator: (value: ColorTypeProps) => boolean;
|
|
19
|
+
};
|
|
20
|
+
}>>, {
|
|
21
|
+
colorType: ColorTypeProps;
|
|
22
|
+
}>;
|
|
23
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
interface ItemProps {
|
|
4
|
+
text: string;
|
|
5
|
+
link?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
8
|
+
items: {
|
|
9
|
+
type: PropType<ItemProps[]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
props: any;
|
|
14
|
+
readonly breadcrumbs: CSSModuleClasses;
|
|
15
|
+
Icon: import("vue").DefineComponent<{
|
|
16
|
+
iconName: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
colorType: {
|
|
21
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
22
|
+
default: string;
|
|
23
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
24
|
+
};
|
|
25
|
+
sizeType: {
|
|
26
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
27
|
+
default: string;
|
|
28
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
props: any;
|
|
32
|
+
imgSize: import("vue").ComputedRef<number>;
|
|
33
|
+
classObject: import("vue").ComputedRef<object>;
|
|
34
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
iconName: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
colorType: {
|
|
40
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
41
|
+
default: string;
|
|
42
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
43
|
+
};
|
|
44
|
+
sizeType: {
|
|
45
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
46
|
+
default: string;
|
|
47
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
48
|
+
};
|
|
49
|
+
}>>, {
|
|
50
|
+
colorType: import("../icon/Icon.types").IconColorTypeProps;
|
|
51
|
+
sizeType: import("../icon/Icon.types").IconSizeTypeProps;
|
|
52
|
+
}>;
|
|
53
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
+
items: {
|
|
55
|
+
type: PropType<ItemProps[]>;
|
|
56
|
+
default: () => never[];
|
|
57
|
+
};
|
|
58
|
+
}>>, {
|
|
59
|
+
items: ItemProps[];
|
|
60
|
+
}>;
|
|
61
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type ButtonMainTypeProps = 'base' | 'destructive';
|
|
2
|
+
export type ButtonColorTypeProps = 'accent' | 'tint' | 'primary' | 'secondary' | 'outline' | 'transparent' | 'attention' | 'violet' | 'special' | 'pink-gradient' | 'white' | 'tiny-white';
|
|
3
|
+
export type ButtonSizeTypeProps = 'large' | 'medium' | 'small';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { ButtonMainTypeProps, ButtonColorTypeProps, ButtonSizeTypeProps } from '../../components/button/Button.types';
|
|
4
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
5
|
+
disabled: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
mainType: {
|
|
10
|
+
type: PropType<ButtonMainTypeProps>;
|
|
11
|
+
default: string;
|
|
12
|
+
validator: (value: ButtonMainTypeProps) => boolean;
|
|
13
|
+
};
|
|
14
|
+
colorType: {
|
|
15
|
+
type: PropType<ButtonColorTypeProps>;
|
|
16
|
+
default: string;
|
|
17
|
+
validator: (value: ButtonColorTypeProps) => boolean;
|
|
18
|
+
};
|
|
19
|
+
sizeType: {
|
|
20
|
+
type: PropType<ButtonSizeTypeProps>;
|
|
21
|
+
default: string;
|
|
22
|
+
validator: (value: ButtonSizeTypeProps) => boolean;
|
|
23
|
+
};
|
|
24
|
+
iconButton: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
props: any;
|
|
30
|
+
classObject: import("vue").ComputedRef<object>;
|
|
31
|
+
readonly button: CSSModuleClasses;
|
|
32
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
disabled: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
mainType: {
|
|
38
|
+
type: PropType<ButtonMainTypeProps>;
|
|
39
|
+
default: string;
|
|
40
|
+
validator: (value: ButtonMainTypeProps) => boolean;
|
|
41
|
+
};
|
|
42
|
+
colorType: {
|
|
43
|
+
type: PropType<ButtonColorTypeProps>;
|
|
44
|
+
default: string;
|
|
45
|
+
validator: (value: ButtonColorTypeProps) => boolean;
|
|
46
|
+
};
|
|
47
|
+
sizeType: {
|
|
48
|
+
type: PropType<ButtonSizeTypeProps>;
|
|
49
|
+
default: string;
|
|
50
|
+
validator: (value: ButtonSizeTypeProps) => boolean;
|
|
51
|
+
};
|
|
52
|
+
iconButton: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
}>>, {
|
|
57
|
+
colorType: ButtonColorTypeProps;
|
|
58
|
+
sizeType: ButtonSizeTypeProps;
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
mainType: ButtonMainTypeProps;
|
|
61
|
+
iconButton: boolean;
|
|
62
|
+
}>;
|
|
63
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { IconType, RetObjCheckType } from './types';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
isMaster: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
isRounded: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
checked: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
disabled: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
allChecked: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
id: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
value: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
emits: (event: "change", ...args: any[]) => void;
|
|
33
|
+
props: any;
|
|
34
|
+
retObjCheck: RetObjCheckType;
|
|
35
|
+
onChange: () => void;
|
|
36
|
+
typeIcon: import("vue").ComputedRef<IconType>;
|
|
37
|
+
iconColor: import("vue").ComputedRef<object>;
|
|
38
|
+
classObject: import("vue").ComputedRef<object>;
|
|
39
|
+
Icon: import("vue").DefineComponent<{
|
|
40
|
+
iconName: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
colorType: {
|
|
45
|
+
type: import("vue").PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
46
|
+
default: string;
|
|
47
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
48
|
+
};
|
|
49
|
+
sizeType: {
|
|
50
|
+
type: import("vue").PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
51
|
+
default: string;
|
|
52
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
props: any;
|
|
56
|
+
imgSize: import("vue").ComputedRef<number>;
|
|
57
|
+
classObject: import("vue").ComputedRef<object>;
|
|
58
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
iconName: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
colorType: {
|
|
64
|
+
type: import("vue").PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
65
|
+
default: string;
|
|
66
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
67
|
+
};
|
|
68
|
+
sizeType: {
|
|
69
|
+
type: import("vue").PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
70
|
+
default: string;
|
|
71
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
72
|
+
};
|
|
73
|
+
}>>, {
|
|
74
|
+
colorType: import("../icon/Icon.types").IconColorTypeProps;
|
|
75
|
+
sizeType: import("../icon/Icon.types").IconSizeTypeProps;
|
|
76
|
+
}>;
|
|
77
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
78
|
+
isMaster: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
isRounded: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
checked: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
disabled: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
allChecked: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
id: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
value: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
}>> & {
|
|
107
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
disabled: boolean;
|
|
110
|
+
isMaster: boolean;
|
|
111
|
+
isRounded: boolean;
|
|
112
|
+
checked: boolean;
|
|
113
|
+
allChecked: boolean;
|
|
114
|
+
id: string;
|
|
115
|
+
value: string;
|
|
116
|
+
}>;
|
|
117
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
type SizeTypeProps = 'large' | 'medium' | 'small';
|
|
4
|
+
type ColorTypeProps = 'simple' | 'lighten';
|
|
5
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
6
|
+
selected: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
sizeType: {
|
|
11
|
+
type: PropType<SizeTypeProps>;
|
|
12
|
+
default: string;
|
|
13
|
+
validator: (value: SizeTypeProps) => boolean;
|
|
14
|
+
};
|
|
15
|
+
colorType: {
|
|
16
|
+
type: PropType<ColorTypeProps>;
|
|
17
|
+
default: string;
|
|
18
|
+
validator: (value: ColorTypeProps) => boolean;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
emit: (event: "changeSelected", ...args: any[]) => void;
|
|
22
|
+
props: any;
|
|
23
|
+
classObject: import("vue").ComputedRef<object>;
|
|
24
|
+
changeSelected: () => void;
|
|
25
|
+
readonly chips: CSSModuleClasses;
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "changeSelected"[], "changeSelected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
selected: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
sizeType: {
|
|
32
|
+
type: PropType<SizeTypeProps>;
|
|
33
|
+
default: string;
|
|
34
|
+
validator: (value: SizeTypeProps) => boolean;
|
|
35
|
+
};
|
|
36
|
+
colorType: {
|
|
37
|
+
type: PropType<ColorTypeProps>;
|
|
38
|
+
default: string;
|
|
39
|
+
validator: (value: ColorTypeProps) => boolean;
|
|
40
|
+
};
|
|
41
|
+
}>> & {
|
|
42
|
+
onChangeSelected?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
colorType: ColorTypeProps;
|
|
45
|
+
sizeType: SizeTypeProps;
|
|
46
|
+
selected: boolean;
|
|
47
|
+
}>;
|
|
48
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
type ColorTypeProps = 'fill' | 'outline';
|
|
4
|
+
type SizeTypeProps = 'large' | 'medium' | 'small';
|
|
5
|
+
type IconColorTypeProps = 'none' | 'main' | 'secondary' | 'tertiary' | 'disable' | 'action' | 'tint-blue' | 'attention' | 'alert' | 'success' | 'color-bg' | 'light-bg' | 'default' | 'accent-hover' | 'tint-hover' | 'attention-hover' | 'error-hover';
|
|
6
|
+
interface ItemProps {
|
|
7
|
+
value: string;
|
|
8
|
+
text: string;
|
|
9
|
+
iconName?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
12
|
+
colorType: {
|
|
13
|
+
type: PropType<ColorTypeProps>;
|
|
14
|
+
default: string;
|
|
15
|
+
validator: (value: ColorTypeProps) => boolean;
|
|
16
|
+
};
|
|
17
|
+
colorTypeIcon: {
|
|
18
|
+
type: PropType<IconColorTypeProps>;
|
|
19
|
+
default: string;
|
|
20
|
+
validator: (value: ColorTypeProps) => boolean;
|
|
21
|
+
};
|
|
22
|
+
disabled: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
droplistResizable: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
error: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
isIconAlwaysSeen: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
isNeededToFocus: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
isWithSearch: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
items: {
|
|
47
|
+
type: PropType<ItemProps[]>;
|
|
48
|
+
default: () => never[];
|
|
49
|
+
};
|
|
50
|
+
placeholder: {
|
|
51
|
+
type: PropType<ItemProps>;
|
|
52
|
+
default: () => {
|
|
53
|
+
iconName: string;
|
|
54
|
+
value: string;
|
|
55
|
+
text: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
selectedItem: {
|
|
59
|
+
type: PropType<ItemProps>;
|
|
60
|
+
default: () => {};
|
|
61
|
+
};
|
|
62
|
+
sizeType: {
|
|
63
|
+
type: PropType<SizeTypeProps>;
|
|
64
|
+
default: string;
|
|
65
|
+
validator: (value: SizeTypeProps) => boolean;
|
|
66
|
+
};
|
|
67
|
+
tabIndex: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
}, {
|
|
72
|
+
emit: (event: "selectItem" | "resetError", ...args: any[]) => void;
|
|
73
|
+
props: any;
|
|
74
|
+
slots: Readonly<{
|
|
75
|
+
[name: string]: import("vue").Slot | undefined;
|
|
76
|
+
}>;
|
|
77
|
+
isFocused: import("vue").Ref<boolean>;
|
|
78
|
+
dropdownInput: import("vue").Ref<HTMLInputElement | null>;
|
|
79
|
+
focusedIndex: import("vue").Ref<number>;
|
|
80
|
+
dropdownContent: import("vue").Ref<HTMLElement | null>;
|
|
81
|
+
scrollBar: import("vue").Ref<HTMLElement | null>;
|
|
82
|
+
thumb: import("vue").Ref<HTMLElement | null>;
|
|
83
|
+
isScrolling: import("vue").Ref<boolean>;
|
|
84
|
+
onScroll: (event: Event) => void;
|
|
85
|
+
onThumbMouseDown: (e: any) => void;
|
|
86
|
+
onScrollbarClick: (e: any) => void;
|
|
87
|
+
searchValue: import("vue").Ref<string>;
|
|
88
|
+
handleSearchChange: (event: Event) => void;
|
|
89
|
+
foundedItems: import("vue").ComputedRef<ItemProps[]>;
|
|
90
|
+
dropdownClassObject: import("vue").ComputedRef<object>;
|
|
91
|
+
droplistClassObject: import("vue").ComputedRef<{
|
|
92
|
+
'w-max': boolean;
|
|
93
|
+
}>;
|
|
94
|
+
selectItem: (item: ItemProps) => void;
|
|
95
|
+
arrowDownColorType: import("vue").ComputedRef<"main" | "tertiary">;
|
|
96
|
+
onFocusIn: () => void;
|
|
97
|
+
onFocusOut: () => void;
|
|
98
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
99
|
+
scrollToFocusedItem: () => void;
|
|
100
|
+
readonly dropdown: CSSModuleClasses;
|
|
101
|
+
Icon: import("vue").DefineComponent<{
|
|
102
|
+
iconName: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
required: true;
|
|
105
|
+
};
|
|
106
|
+
colorType: {
|
|
107
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
108
|
+
default: string;
|
|
109
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
110
|
+
};
|
|
111
|
+
sizeType: {
|
|
112
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
113
|
+
default: string;
|
|
114
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
115
|
+
};
|
|
116
|
+
}, {
|
|
117
|
+
props: any;
|
|
118
|
+
imgSize: import("vue").ComputedRef<number>;
|
|
119
|
+
classObject: import("vue").ComputedRef<object>;
|
|
120
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
121
|
+
iconName: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
required: true;
|
|
124
|
+
};
|
|
125
|
+
colorType: {
|
|
126
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
127
|
+
default: string;
|
|
128
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
129
|
+
};
|
|
130
|
+
sizeType: {
|
|
131
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
132
|
+
default: string;
|
|
133
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
134
|
+
};
|
|
135
|
+
}>>, {
|
|
136
|
+
colorType: import("../icon/Icon.types").IconColorTypeProps;
|
|
137
|
+
sizeType: import("../icon/Icon.types").IconSizeTypeProps;
|
|
138
|
+
}>;
|
|
139
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("selectItem" | "resetError")[], "selectItem" | "resetError", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
140
|
+
colorType: {
|
|
141
|
+
type: PropType<ColorTypeProps>;
|
|
142
|
+
default: string;
|
|
143
|
+
validator: (value: ColorTypeProps) => boolean;
|
|
144
|
+
};
|
|
145
|
+
colorTypeIcon: {
|
|
146
|
+
type: PropType<IconColorTypeProps>;
|
|
147
|
+
default: string;
|
|
148
|
+
validator: (value: ColorTypeProps) => boolean;
|
|
149
|
+
};
|
|
150
|
+
disabled: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
droplistResizable: {
|
|
155
|
+
type: BooleanConstructor;
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
158
|
+
error: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
162
|
+
isIconAlwaysSeen: {
|
|
163
|
+
type: BooleanConstructor;
|
|
164
|
+
default: boolean;
|
|
165
|
+
};
|
|
166
|
+
isNeededToFocus: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: boolean;
|
|
169
|
+
};
|
|
170
|
+
isWithSearch: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
174
|
+
items: {
|
|
175
|
+
type: PropType<ItemProps[]>;
|
|
176
|
+
default: () => never[];
|
|
177
|
+
};
|
|
178
|
+
placeholder: {
|
|
179
|
+
type: PropType<ItemProps>;
|
|
180
|
+
default: () => {
|
|
181
|
+
iconName: string;
|
|
182
|
+
value: string;
|
|
183
|
+
text: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
selectedItem: {
|
|
187
|
+
type: PropType<ItemProps>;
|
|
188
|
+
default: () => {};
|
|
189
|
+
};
|
|
190
|
+
sizeType: {
|
|
191
|
+
type: PropType<SizeTypeProps>;
|
|
192
|
+
default: string;
|
|
193
|
+
validator: (value: SizeTypeProps) => boolean;
|
|
194
|
+
};
|
|
195
|
+
tabIndex: {
|
|
196
|
+
type: NumberConstructor;
|
|
197
|
+
default: number;
|
|
198
|
+
};
|
|
199
|
+
}>> & {
|
|
200
|
+
onSelectItem?: ((...args: any[]) => any) | undefined;
|
|
201
|
+
onResetError?: ((...args: any[]) => any) | undefined;
|
|
202
|
+
}, {
|
|
203
|
+
error: boolean;
|
|
204
|
+
colorType: ColorTypeProps;
|
|
205
|
+
items: ItemProps[];
|
|
206
|
+
sizeType: SizeTypeProps;
|
|
207
|
+
disabled: boolean;
|
|
208
|
+
colorTypeIcon: IconColorTypeProps;
|
|
209
|
+
droplistResizable: boolean;
|
|
210
|
+
isIconAlwaysSeen: boolean;
|
|
211
|
+
isNeededToFocus: boolean;
|
|
212
|
+
isWithSearch: boolean;
|
|
213
|
+
placeholder: ItemProps;
|
|
214
|
+
selectedItem: ItemProps;
|
|
215
|
+
tabIndex: number;
|
|
216
|
+
}>;
|
|
217
|
+
export default _sfc_main;
|