@solfacil/girassol 0.1.9 → 0.2.0
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/cli/bin/{girassol → girassol-cli} +0 -0
- package/cli/build/cli.js +68 -0
- package/cli/build/commands/create:component.js +124 -0
- package/cli/build/commands/generate:plugin.js +89 -0
- package/cli/build/commands/generate:types.js +76 -0
- package/cli/build/commands/girassol-cli.js +52 -0
- package/cli/build/extensions/cli-extension.js +17 -0
- package/cli/build/templates/components.d.ts.ejs +1 -0
- package/cli/build/templates/nuxt-plugin.ejs +8 -0
- package/cli/build/templates/vue-plugin.ejs +5 -0
- package/cli/{src → build}/templates/windi.config.ts.ejs +0 -0
- package/cli/build/types/cli.d.ts +1 -0
- package/cli/build/types/commands/create:component.d.ts +1 -0
- package/cli/build/types/commands/generate:plugin.d.ts +1 -0
- package/cli/build/types/commands/generate:types.d.ts +7 -0
- package/cli/build/types/commands/girassol-cli.d.ts +1 -0
- package/cli/build/types/extensions/cli-extension.d.ts +1 -0
- package/cli/build/types/types.d.ts +0 -0
- package/cli/build/types.js +2 -0
- package/dist/README.md.d.ts +2 -0
- package/dist/cli/readme.md.d.ts +2 -0
- package/dist/cli/src/cli.d.ts +1 -0
- package/dist/cli/src/commands/create:component.d.ts +1 -0
- package/dist/cli/src/commands/generate:plugin.d.ts +1 -0
- package/dist/cli/src/commands/generate:types.d.ts +7 -0
- package/dist/cli/src/commands/girassol-cli.d.ts +1 -0
- package/dist/cli/src/extensions/cli-extension.d.ts +1 -0
- package/dist/cli/src/types.d.ts +0 -0
- package/dist/components.d.ts +22 -0
- package/dist/components.json +1 -0
- package/dist/girassol.es.js +611 -261
- package/dist/girassol.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/colors.d.ts +23 -5
- package/dist/theme/solfacil/effects.d.ts +5 -3
- package/dist/theme/solfacil/typography.d.ts +1 -2
- package/dist/types/components/accordion/Accordion.vue.d.ts +97 -0
- package/dist/types/components/accordion/accordion.spec.d.ts +1 -0
- package/dist/types/components/accordion/index.d.ts +2 -0
- package/dist/types/components/dropdown/Dropdown.vue.d.ts +188 -31
- package/dist/types/components/forms/button/Button.vue.d.ts +86 -12
- package/dist/types/components/forms/checkbox/Checkbox.vue.d.ts +77 -11
- package/dist/types/components/forms/checkbox/CheckboxGroup.vue.d.ts +114 -19
- package/dist/types/components/forms/input/Input.vue.d.ts +76 -10
- package/dist/types/components/forms/radio/Radio.vue.d.ts +77 -11
- package/dist/types/components/forms/radio/RadioGroup.vue.d.ts +114 -19
- package/dist/types/components/forms/select/ListOption.vue.d.ts +149 -0
- package/dist/types/components/forms/select/Select.vue.d.ts +298 -27
- package/dist/types/components/forms/switch/Switch.vue.d.ts +83 -13
- package/dist/types/components/forms/textarea/Textarea.vue.d.ts +108 -19
- package/dist/types/components/forms/textfield/Textfield.vue.d.ts +101 -17
- package/dist/types/components/forms/textfield/TextfieldPassword.vue.d.ts +71 -9
- package/dist/types/components/informations/chip/Chip.vue.d.ts +94 -15
- package/dist/types/composables/use-toast/Toast.vue.d.ts +130 -24
- package/dist/types/composables/use-toast/index.d.ts +1 -1
- package/dist/types/index.d.ts +2723 -2
- package/dist/vite-modules/generate-component-types.d.ts +3 -0
- package/dist/windi.config.d.ts +1 -1
- package/package.json +52 -42
- package/theme/solfacil/borders.ts +2 -1
- package/theme/solfacil/colors.ts +36 -23
- package/theme/solfacil/effects.ts +6 -4
- package/theme/solfacil/typography.ts +2 -4
- package/vite.config.ts +4 -0
- package/windi.config.ts +31 -1
- package/cli/.eslintrc.js +0 -18
- package/cli/LICENSE +0 -21
- package/cli/docs/commands.md +0 -3
- package/cli/docs/plugins.md +0 -47
- package/cli/package.json +0 -53
- package/cli/readme.md +0 -26
- package/cli/src/cli.ts +0 -25
- package/cli/src/commands/create:component.ts +0 -93
- package/cli/src/commands/generate:plugin.ts +0 -68
- package/cli/src/commands/generate:types.ts +0 -38
- package/cli/src/commands/girassol.ts +0 -12
- package/cli/src/extensions/cli-extension.ts +0 -17
- package/cli/src/templates/components/component.spec.ts.ejs +0 -20
- package/cli/src/templates/components/component.stories.mdx.ejs +0 -74
- package/cli/src/templates/components/component.vue.ejs +0 -23
- package/cli/src/templates/components/index.ts.ejs +0 -10
- package/cli/src/templates/components.d.ts.ejs +0 -10
- package/cli/src/templates/nuxt-plugin.ejs +0 -7
- package/cli/src/templates/vue-plugin.ejs +0 -5
- package/cli/src/types.ts +0 -1
- package/cli/tsconfig.json +0 -28
- package/cli/yarn.lock +0 -1804
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
title: string;
|
|
7
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
id: string;
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
invert?: boolean | undefined;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
title: string;
|
|
14
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title">;
|
|
15
|
+
$attrs: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
$refs: {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
$slots: Readonly<{
|
|
22
|
+
[name: string]: import("vue").Slot | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
25
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
26
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
27
|
+
$el: any;
|
|
28
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
29
|
+
id: string;
|
|
30
|
+
title?: string | undefined;
|
|
31
|
+
invert?: boolean | undefined;
|
|
32
|
+
disabled?: boolean | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
title: string;
|
|
35
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
36
|
+
title: string;
|
|
37
|
+
}> & {
|
|
38
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
45
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
46
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
47
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
48
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
49
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
50
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
51
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
52
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
53
|
+
};
|
|
54
|
+
$forceUpdate: () => void;
|
|
55
|
+
$nextTick: typeof import("vue").nextTick;
|
|
56
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
57
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
58
|
+
id: string;
|
|
59
|
+
title?: string | undefined;
|
|
60
|
+
invert?: boolean | undefined;
|
|
61
|
+
disabled?: boolean | undefined;
|
|
62
|
+
}>, {
|
|
63
|
+
title: string;
|
|
64
|
+
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
65
|
+
__isFragment?: undefined;
|
|
66
|
+
__isTeleport?: undefined;
|
|
67
|
+
__isSuspense?: undefined;
|
|
68
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
69
|
+
id: string;
|
|
70
|
+
title?: string | undefined;
|
|
71
|
+
invert?: boolean | undefined;
|
|
72
|
+
disabled?: boolean | undefined;
|
|
73
|
+
}>, {
|
|
74
|
+
title: string;
|
|
75
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
76
|
+
title: string;
|
|
77
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
78
|
+
$slots: {
|
|
79
|
+
title: (_: {}) => any;
|
|
80
|
+
default: (_: {}) => any;
|
|
81
|
+
};
|
|
82
|
+
});
|
|
83
|
+
export default _default;
|
|
84
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
85
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
86
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
87
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
88
|
+
} : {
|
|
89
|
+
type: import('vue').PropType<T[K]>;
|
|
90
|
+
required: true;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
94
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
95
|
+
default: D[K];
|
|
96
|
+
} : P[K];
|
|
97
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -1,4 +1,151 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
loading: boolean;
|
|
7
|
+
searchable: boolean;
|
|
8
|
+
closeOnSelect: boolean;
|
|
9
|
+
fetchOnSearch: boolean;
|
|
10
|
+
options: (string | {
|
|
11
|
+
name: string;
|
|
12
|
+
value: string;
|
|
13
|
+
})[];
|
|
14
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
15
|
+
id: string;
|
|
16
|
+
label?: string | undefined;
|
|
17
|
+
ariaLabel?: string | undefined;
|
|
18
|
+
smallerWidth?: boolean | undefined;
|
|
19
|
+
disabled?: boolean | undefined;
|
|
20
|
+
loading?: boolean | undefined;
|
|
21
|
+
searchable?: boolean | undefined;
|
|
22
|
+
closeOnSelect?: boolean | undefined;
|
|
23
|
+
fetchOnSearch?: boolean | undefined;
|
|
24
|
+
isMultipleSelect?: boolean | undefined;
|
|
25
|
+
searchPlaceholder?: string | undefined;
|
|
26
|
+
selected?: string | string[] | undefined;
|
|
27
|
+
options: (string | {
|
|
28
|
+
name: string;
|
|
29
|
+
value: string;
|
|
30
|
+
})[];
|
|
31
|
+
}>, {
|
|
32
|
+
loading: boolean;
|
|
33
|
+
closeOnSelect: boolean;
|
|
34
|
+
fetchOnSearch: boolean;
|
|
35
|
+
searchable: boolean;
|
|
36
|
+
options: () => never[];
|
|
37
|
+
}>>> & {
|
|
38
|
+
onSearch?: ((value: string) => any) | undefined;
|
|
39
|
+
onCloseDropdown?: (() => any) | undefined;
|
|
40
|
+
"onUpdate:selected"?: ((value: string | string[]) => any) | undefined;
|
|
41
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "searchable" | "closeOnSelect" | "fetchOnSearch" | "options">;
|
|
42
|
+
$attrs: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
$refs: {
|
|
46
|
+
[x: string]: unknown;
|
|
47
|
+
};
|
|
48
|
+
$slots: Readonly<{
|
|
49
|
+
[name: string]: import("vue").Slot | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
52
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
53
|
+
$emit: ((event: "search", value: string) => void) & ((event: "closeDropdown") => void) & ((event: "update:selected", value: string | string[]) => void);
|
|
54
|
+
$el: any;
|
|
55
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
56
|
+
id: string;
|
|
57
|
+
label?: string | undefined;
|
|
58
|
+
ariaLabel?: string | undefined;
|
|
59
|
+
smallerWidth?: boolean | undefined;
|
|
60
|
+
disabled?: boolean | undefined;
|
|
61
|
+
loading?: boolean | undefined;
|
|
62
|
+
searchable?: boolean | undefined;
|
|
63
|
+
closeOnSelect?: boolean | undefined;
|
|
64
|
+
fetchOnSearch?: boolean | undefined;
|
|
65
|
+
isMultipleSelect?: boolean | undefined;
|
|
66
|
+
searchPlaceholder?: string | undefined;
|
|
67
|
+
selected?: string | string[] | undefined;
|
|
68
|
+
options: (string | {
|
|
69
|
+
name: string;
|
|
70
|
+
value: string;
|
|
71
|
+
})[];
|
|
72
|
+
}>, {
|
|
73
|
+
loading: boolean;
|
|
74
|
+
closeOnSelect: boolean;
|
|
75
|
+
fetchOnSearch: boolean;
|
|
76
|
+
searchable: boolean;
|
|
77
|
+
options: () => never[];
|
|
78
|
+
}>>> & {
|
|
79
|
+
onSearch?: ((value: string) => any) | undefined;
|
|
80
|
+
onCloseDropdown?: (() => any) | undefined;
|
|
81
|
+
"onUpdate:selected"?: ((value: string | string[]) => any) | undefined;
|
|
82
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
83
|
+
closeDropdown: () => void;
|
|
84
|
+
} & {
|
|
85
|
+
search: (value: string) => void;
|
|
86
|
+
} & {
|
|
87
|
+
"update:selected": (value: string | string[]) => void;
|
|
88
|
+
}, string, {
|
|
89
|
+
loading: boolean;
|
|
90
|
+
searchable: boolean;
|
|
91
|
+
closeOnSelect: boolean;
|
|
92
|
+
fetchOnSearch: boolean;
|
|
93
|
+
options: (string | {
|
|
94
|
+
name: string;
|
|
95
|
+
value: string;
|
|
96
|
+
})[];
|
|
97
|
+
}> & {
|
|
98
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
99
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
100
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
101
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
102
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
103
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
104
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
105
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
106
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
107
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
108
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
109
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
110
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
111
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
112
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
113
|
+
};
|
|
114
|
+
$forceUpdate: () => void;
|
|
115
|
+
$nextTick: typeof import("vue").nextTick;
|
|
116
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
117
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
118
|
+
id: string;
|
|
119
|
+
label?: string | undefined;
|
|
120
|
+
ariaLabel?: string | undefined;
|
|
121
|
+
smallerWidth?: boolean | undefined;
|
|
122
|
+
disabled?: boolean | undefined;
|
|
123
|
+
loading?: boolean | undefined;
|
|
124
|
+
searchable?: boolean | undefined;
|
|
125
|
+
closeOnSelect?: boolean | undefined;
|
|
126
|
+
fetchOnSearch?: boolean | undefined;
|
|
127
|
+
isMultipleSelect?: boolean | undefined;
|
|
128
|
+
searchPlaceholder?: string | undefined;
|
|
129
|
+
selected?: string | string[] | undefined;
|
|
130
|
+
options: (string | {
|
|
131
|
+
name: string;
|
|
132
|
+
value: string;
|
|
133
|
+
})[];
|
|
134
|
+
}>, {
|
|
135
|
+
loading: boolean;
|
|
136
|
+
closeOnSelect: boolean;
|
|
137
|
+
fetchOnSearch: boolean;
|
|
138
|
+
searchable: boolean;
|
|
139
|
+
options: () => never[];
|
|
140
|
+
}>>> & {
|
|
141
|
+
onSearch?: ((value: string) => any) | undefined;
|
|
142
|
+
onCloseDropdown?: (() => any) | undefined;
|
|
143
|
+
"onUpdate:selected"?: ((value: string | string[]) => any) | undefined;
|
|
144
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
145
|
+
__isFragment?: undefined;
|
|
146
|
+
__isTeleport?: undefined;
|
|
147
|
+
__isSuspense?: undefined;
|
|
148
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
149
|
id: string;
|
|
3
150
|
label?: string | undefined;
|
|
4
151
|
ariaLabel?: string | undefined;
|
|
@@ -21,40 +168,17 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
21
168
|
fetchOnSearch: boolean;
|
|
22
169
|
searchable: boolean;
|
|
23
170
|
options: () => never[];
|
|
24
|
-
}
|
|
171
|
+
}>>> & {
|
|
172
|
+
onSearch?: ((value: string) => any) | undefined;
|
|
173
|
+
onCloseDropdown?: (() => any) | undefined;
|
|
174
|
+
"onUpdate:selected"?: ((value: string | string[]) => any) | undefined;
|
|
175
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
176
|
closeDropdown: () => void;
|
|
26
177
|
} & {
|
|
27
178
|
search: (value: string) => void;
|
|
28
179
|
} & {
|
|
29
180
|
"update:selected": (value: string | string[]) => void;
|
|
30
|
-
}, string,
|
|
31
|
-
id: string;
|
|
32
|
-
label?: string | undefined;
|
|
33
|
-
ariaLabel?: string | undefined;
|
|
34
|
-
smallerWidth?: boolean | undefined;
|
|
35
|
-
disabled?: boolean | undefined;
|
|
36
|
-
loading?: boolean | undefined;
|
|
37
|
-
searchable?: boolean | undefined;
|
|
38
|
-
closeOnSelect?: boolean | undefined;
|
|
39
|
-
fetchOnSearch?: boolean | undefined;
|
|
40
|
-
isMultipleSelect?: boolean | undefined;
|
|
41
|
-
searchPlaceholder?: string | undefined;
|
|
42
|
-
selected?: string | string[] | undefined;
|
|
43
|
-
options: (string | {
|
|
44
|
-
name: string;
|
|
45
|
-
value: string;
|
|
46
|
-
})[];
|
|
47
|
-
}>, {
|
|
48
|
-
loading: boolean;
|
|
49
|
-
closeOnSelect: boolean;
|
|
50
|
-
fetchOnSearch: boolean;
|
|
51
|
-
searchable: boolean;
|
|
52
|
-
options: () => never[];
|
|
53
|
-
}>>> & {
|
|
54
|
-
onSearch?: ((value: string) => any) | undefined;
|
|
55
|
-
onCloseDropdown?: (() => any) | undefined;
|
|
56
|
-
"onUpdate:selected"?: ((value: string | string[]) => any) | undefined;
|
|
57
|
-
}, {
|
|
181
|
+
}, string, {
|
|
58
182
|
loading: boolean;
|
|
59
183
|
searchable: boolean;
|
|
60
184
|
closeOnSelect: boolean;
|
|
@@ -63,7 +187,40 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
63
187
|
name: string;
|
|
64
188
|
value: string;
|
|
65
189
|
})[];
|
|
66
|
-
}
|
|
190
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
191
|
+
$slots: {
|
|
192
|
+
label: (_: {}) => any;
|
|
193
|
+
'toggle-dropdown': (_: {
|
|
194
|
+
toggle: {
|
|
195
|
+
open: () => void;
|
|
196
|
+
close: () => void;
|
|
197
|
+
toggleDropdown: () => void;
|
|
198
|
+
};
|
|
199
|
+
isOpen: boolean;
|
|
200
|
+
select: (selected: string | {
|
|
201
|
+
name: string;
|
|
202
|
+
value: string;
|
|
203
|
+
}) => void;
|
|
204
|
+
selectedSanitized: string | undefined;
|
|
205
|
+
selected: string | string[] | undefined;
|
|
206
|
+
}) => any;
|
|
207
|
+
search: (_: {
|
|
208
|
+
filter: string;
|
|
209
|
+
}) => any;
|
|
210
|
+
default: (_: {
|
|
211
|
+
text: string;
|
|
212
|
+
option: string | {
|
|
213
|
+
name: string;
|
|
214
|
+
value: string;
|
|
215
|
+
};
|
|
216
|
+
isSelect: (option: string | {
|
|
217
|
+
name: string;
|
|
218
|
+
value: string;
|
|
219
|
+
}) => boolean;
|
|
220
|
+
}) => any;
|
|
221
|
+
'no-data': (_: {}) => any;
|
|
222
|
+
};
|
|
223
|
+
});
|
|
67
224
|
export default _default;
|
|
68
225
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
69
226
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,4 +1,81 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
invert: boolean;
|
|
7
|
+
variant: 'primary' | 'secondary' | 'flat';
|
|
8
|
+
dense: boolean;
|
|
9
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
variant?: "flat" | "primary" | "secondary" | undefined;
|
|
11
|
+
dense?: boolean | undefined;
|
|
12
|
+
invert?: boolean | undefined;
|
|
13
|
+
id: string;
|
|
14
|
+
}>, {
|
|
15
|
+
variant: string;
|
|
16
|
+
dense: boolean;
|
|
17
|
+
invert: boolean;
|
|
18
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "invert" | "variant" | "dense">;
|
|
19
|
+
$attrs: {
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
$refs: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
$slots: Readonly<{
|
|
26
|
+
[name: string]: import("vue").Slot | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
29
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
30
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
31
|
+
$el: any;
|
|
32
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
33
|
+
variant?: "flat" | "primary" | "secondary" | undefined;
|
|
34
|
+
dense?: boolean | undefined;
|
|
35
|
+
invert?: boolean | undefined;
|
|
36
|
+
id: string;
|
|
37
|
+
}>, {
|
|
38
|
+
variant: string;
|
|
39
|
+
dense: boolean;
|
|
40
|
+
invert: boolean;
|
|
41
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
42
|
+
invert: boolean;
|
|
43
|
+
variant: 'primary' | 'secondary' | 'flat';
|
|
44
|
+
dense: boolean;
|
|
45
|
+
}> & {
|
|
46
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
47
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
48
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
49
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
50
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
51
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
52
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
53
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
54
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
59
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
60
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
61
|
+
};
|
|
62
|
+
$forceUpdate: () => void;
|
|
63
|
+
$nextTick: typeof import("vue").nextTick;
|
|
64
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
65
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
66
|
+
variant?: "flat" | "primary" | "secondary" | undefined;
|
|
67
|
+
dense?: boolean | undefined;
|
|
68
|
+
invert?: boolean | undefined;
|
|
69
|
+
id: string;
|
|
70
|
+
}>, {
|
|
71
|
+
variant: string;
|
|
72
|
+
dense: boolean;
|
|
73
|
+
invert: boolean;
|
|
74
|
+
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
75
|
+
__isFragment?: undefined;
|
|
76
|
+
__isTeleport?: undefined;
|
|
77
|
+
__isSuspense?: undefined;
|
|
78
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
79
|
variant?: "flat" | "primary" | "secondary" | undefined;
|
|
3
80
|
dense?: boolean | undefined;
|
|
4
81
|
invert?: boolean | undefined;
|
|
@@ -7,20 +84,17 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
84
|
variant: string;
|
|
8
85
|
dense: boolean;
|
|
9
86
|
invert: boolean;
|
|
10
|
-
}
|
|
11
|
-
variant?: "flat" | "primary" | "secondary" | undefined;
|
|
12
|
-
dense?: boolean | undefined;
|
|
13
|
-
invert?: boolean | undefined;
|
|
14
|
-
id: string;
|
|
15
|
-
}>, {
|
|
16
|
-
variant: string;
|
|
17
|
-
dense: boolean;
|
|
18
|
-
invert: boolean;
|
|
19
|
-
}>>>, {
|
|
87
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
20
88
|
invert: boolean;
|
|
21
89
|
variant: 'primary' | 'secondary' | 'flat';
|
|
22
90
|
dense: boolean;
|
|
23
|
-
}
|
|
91
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
92
|
+
$slots: {
|
|
93
|
+
'icon-left': (_: {}) => any;
|
|
94
|
+
default: (_: {}) => any;
|
|
95
|
+
'icon-right': (_: {}) => any;
|
|
96
|
+
};
|
|
97
|
+
});
|
|
24
98
|
export default _default;
|
|
25
99
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
100
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,14 +1,76 @@
|
|
|
1
1
|
import type { Checkbox } from './checkbox-type';
|
|
2
|
-
declare const _default:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
id: Checkbox['id'];
|
|
8
|
+
name: Checkbox['name'];
|
|
9
|
+
value: Checkbox['value'];
|
|
10
|
+
label: Checkbox['label'];
|
|
11
|
+
checked?: Checkbox['checked'];
|
|
12
|
+
class?: Checkbox['class'];
|
|
13
|
+
}>>> & {
|
|
14
|
+
onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
|
|
15
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
16
|
+
$attrs: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
$refs: {
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
$slots: Readonly<{
|
|
23
|
+
[name: string]: import("vue").Slot | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
26
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
27
|
+
$emit: (event: "change", value: import("./checkbox-type").CheckboxValue) => void;
|
|
28
|
+
$el: any;
|
|
29
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
30
|
+
id: Checkbox['id'];
|
|
31
|
+
name: Checkbox['name'];
|
|
32
|
+
value: Checkbox['value'];
|
|
33
|
+
label: Checkbox['label'];
|
|
34
|
+
checked?: Checkbox['checked'];
|
|
35
|
+
class?: Checkbox['class'];
|
|
36
|
+
}>>> & {
|
|
37
|
+
onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
|
|
38
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
|
+
change: (value: import("./checkbox-type").CheckboxValue) => void;
|
|
40
|
+
}, string, {}> & {
|
|
41
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
45
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
46
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
47
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
48
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
49
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
50
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
51
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
52
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
53
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
54
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
55
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
56
|
+
};
|
|
57
|
+
$forceUpdate: () => void;
|
|
58
|
+
$nextTick: typeof import("vue").nextTick;
|
|
59
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
60
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
61
|
+
id: Checkbox['id'];
|
|
62
|
+
name: Checkbox['name'];
|
|
63
|
+
value: Checkbox['value'];
|
|
64
|
+
label: Checkbox['label'];
|
|
65
|
+
checked?: Checkbox['checked'];
|
|
66
|
+
class?: Checkbox['class'];
|
|
67
|
+
}>>> & {
|
|
68
|
+
onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
|
|
69
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
70
|
+
__isFragment?: undefined;
|
|
71
|
+
__isTeleport?: undefined;
|
|
72
|
+
__isSuspense?: undefined;
|
|
73
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
74
|
id: Checkbox['id'];
|
|
13
75
|
name: Checkbox['name'];
|
|
14
76
|
value: Checkbox['value'];
|
|
@@ -17,7 +79,11 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
17
79
|
class?: Checkbox['class'];
|
|
18
80
|
}>>> & {
|
|
19
81
|
onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
|
|
20
|
-
}, {}
|
|
82
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
83
|
+
change: (value: import("./checkbox-type").CheckboxValue) => void;
|
|
84
|
+
}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
85
|
+
$slots: {};
|
|
86
|
+
});
|
|
21
87
|
export default _default;
|
|
22
88
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
89
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|