energy-components 1.0.2
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/LICENSE +21 -0
- package/README.md +94 -0
- package/dist/.empty +0 -0
- package/dist/components/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/components/accordion.es.js +121 -0
- package/dist/components/accordionGroup.es.js +32 -0
- package/dist/components/actionButton.es.js +64 -0
- package/dist/components/breadcrumbs.es.js +90 -0
- package/dist/components/button.es.js +144 -0
- package/dist/components/checkbox.es.js +130 -0
- package/dist/components/divider.es.js +35 -0
- package/dist/components/dropdown.es.js +331 -0
- package/dist/components/floatingActionButton.es.js +97 -0
- package/dist/components/functions-DIHwdgF0.js +18 -0
- package/dist/components/icon-svg-Cpx09myr.js +10818 -0
- package/dist/components/iconList.es.js +49 -0
- package/dist/components/iconSvg.es.js +5 -0
- package/dist/components/index.es.js +81 -0
- package/dist/components/indicator.es.js +175 -0
- package/dist/components/link.es.js +147 -0
- package/dist/components/multiselect.es.js +1039 -0
- package/dist/components/pagination.es.js +138 -0
- package/dist/components/radioButton.es.js +111 -0
- package/dist/components/style/accordion.css +1 -0
- package/dist/components/style/accordionGroup.css +1 -0
- package/dist/components/style/actionButton.css +1 -0
- package/dist/components/style/breadcrumbs.css +1 -0
- package/dist/components/style/button.css +1 -0
- package/dist/components/style/checkbox.css +1 -0
- package/dist/components/style/divider.css +1 -0
- package/dist/components/style/dropdown.css +1 -0
- package/dist/components/style/floatingActionButton.css +1 -0
- package/dist/components/style/icon-svg.css +1 -0
- package/dist/components/style/iconList.css +1 -0
- package/dist/components/style/indicator.css +1 -0
- package/dist/components/style/link.css +1 -0
- package/dist/components/style/multiselect.css +1 -0
- package/dist/components/style/pagination.css +1 -0
- package/dist/components/style/radioButton.css +1 -0
- package/dist/components/style/switch.css +1 -0
- package/dist/components/style/tabBar.css +1 -0
- package/dist/components/style/tag.css +1 -0
- package/dist/components/style/textArea.css +1 -0
- package/dist/components/style/textField.css +1 -0
- package/dist/components/style/tooltip.css +1 -0
- package/dist/components/switch.es.js +96 -0
- package/dist/components/tabBar.es.js +181 -0
- package/dist/components/tag.es.js +91 -0
- package/dist/components/textArea.es.js +259 -0
- package/dist/components/textField.es.js +254 -0
- package/dist/components/tooltip.es.js +1082 -0
- package/dist/energy-components.es.js +15368 -0
- package/dist/energy-components.umd.js +1 -0
- package/dist/style.css +1 -0
- package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +100 -0
- package/dist/types/src/components/buttons/button/button.vue.d.ts +196 -0
- package/dist/types/src/components/buttons/constants/buttonDocs.d.ts +1 -0
- package/dist/types/src/components/buttons/constants/buttonPosition.d.ts +1 -0
- package/dist/types/src/components/buttons/constants/socialMedia.d.ts +1 -0
- package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +136 -0
- package/dist/types/src/components/content/accordion/accordion.vue.d.ts +122 -0
- package/dist/types/src/components/content/acordion-group/accordion-group.d.ts +6 -0
- package/dist/types/src/components/content/acordion-group/accordion-group.vue.d.ts +33 -0
- package/dist/types/src/components/content/divider/divider.vue.d.ts +35 -0
- package/dist/types/src/components/content/tag/tag.vue.d.ts +105 -0
- package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +100 -0
- package/dist/types/src/components/icon-svg/icon-list.d.ts +11 -0
- package/dist/types/src/components/icon-svg/icon-list.vue.d.ts +2 -0
- package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +68 -0
- package/dist/types/src/components/index.d.ts +20 -0
- package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +151 -0
- package/dist/types/src/components/input/dropdown/Multiselect/Multiselect.vue.d.ts +2 -0
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +270 -0
- package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +114 -0
- package/dist/types/src/components/input/switch/switch.vue.d.ts +104 -0
- package/dist/types/src/components/input/text-area/text-area.vue.d.ts +281 -0
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +271 -0
- package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +63 -0
- package/dist/types/src/components/navigation/link/link.types.d.ts +15 -0
- package/dist/types/src/components/navigation/link/link.vue.d.ts +175 -0
- package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +67 -0
- package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +132 -0
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +118 -0
- package/dist/types/src/helpers/functions.d.ts +3 -0
- package/dist/types/src/helpers/stories.helpers.d.ts +1 -0
- package/dist/types/src/helpers/validation.d.ts +1 -0
- package/dist/types/src/index.d.ts +8 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +156 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
declare var __VLS_0: {};
|
|
2
|
+
declare var __VLS_inheritedAttrs: {};
|
|
3
|
+
declare const __VLS_refs: {};
|
|
4
|
+
declare const __VLS_templateResult: {
|
|
5
|
+
slots: {
|
|
6
|
+
"label-text"?(_: typeof __VLS_0): any;
|
|
7
|
+
};
|
|
8
|
+
refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
|
|
9
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_Slots = typeof __VLS_templateResult['slots'];
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<{
|
|
13
|
+
/**
|
|
14
|
+
* <span>Texto a mostrar en el label</span>
|
|
15
|
+
*/
|
|
16
|
+
label: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* <span>Id del checkbox</span>
|
|
22
|
+
*/
|
|
23
|
+
id: {
|
|
24
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* <span>Texto de accesibilidad</span>
|
|
29
|
+
*/
|
|
30
|
+
accessibilityLabel: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* <span>Icono a mostrar</span>
|
|
36
|
+
*/
|
|
37
|
+
icon: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* <span>Estado del checkbox</span>
|
|
43
|
+
*/
|
|
44
|
+
isChecked: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* <span>Indica si el campo es requerido</span>
|
|
50
|
+
*/
|
|
51
|
+
required: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* <span>Indica si el campo tiene error</span>
|
|
57
|
+
*/
|
|
58
|
+
error: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* <span>Indica si el campo está deshabilitado</span>
|
|
64
|
+
*/
|
|
65
|
+
disabled: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
|
+
"update:modelValue": (event: boolean) => void;
|
|
71
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
|
+
/**
|
|
73
|
+
* <span>Texto a mostrar en el label</span>
|
|
74
|
+
*/
|
|
75
|
+
label: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* <span>Id del checkbox</span>
|
|
81
|
+
*/
|
|
82
|
+
id: {
|
|
83
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* <span>Texto de accesibilidad</span>
|
|
88
|
+
*/
|
|
89
|
+
accessibilityLabel: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* <span>Icono a mostrar</span>
|
|
95
|
+
*/
|
|
96
|
+
icon: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* <span>Estado del checkbox</span>
|
|
102
|
+
*/
|
|
103
|
+
isChecked: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* <span>Indica si el campo es requerido</span>
|
|
109
|
+
*/
|
|
110
|
+
required: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* <span>Indica si el campo tiene error</span>
|
|
116
|
+
*/
|
|
117
|
+
error: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* <span>Indica si el campo está deshabilitado</span>
|
|
123
|
+
*/
|
|
124
|
+
disabled: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
}>> & {
|
|
129
|
+
"onUpdate:modelValue"?: ((event: boolean) => any) | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
error: boolean;
|
|
132
|
+
label: string;
|
|
133
|
+
required: boolean;
|
|
134
|
+
icon: string;
|
|
135
|
+
disabled: boolean;
|
|
136
|
+
id: string | number;
|
|
137
|
+
accessibilityLabel: string;
|
|
138
|
+
isChecked: boolean;
|
|
139
|
+
}, {}>;
|
|
140
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
141
|
+
export default _default;
|
|
142
|
+
type __VLS_PickRefsExpose<T> = T extends object ? {
|
|
143
|
+
[K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
|
|
144
|
+
expose?: (exposed: infer E) => void;
|
|
145
|
+
} ? E : T[K]) | null;
|
|
146
|
+
} : never;
|
|
147
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
148
|
+
new (): {
|
|
149
|
+
$slots: S;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
export interface DropdownOption {
|
|
3
|
+
id: string | number;
|
|
4
|
+
label: string;
|
|
5
|
+
detail?: string;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
declare var __VLS_inheritedAttrs: {};
|
|
9
|
+
declare const __VLS_refs: {
|
|
10
|
+
multiselect: NonNullable<{
|
|
11
|
+
attrs?: any;
|
|
12
|
+
slots?: any;
|
|
13
|
+
emit?: any;
|
|
14
|
+
} & {
|
|
15
|
+
props?: any;
|
|
16
|
+
expose?(exposed: any): void;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_templateResult: {
|
|
20
|
+
slots: {
|
|
21
|
+
"helper-text"?(_: {}): any;
|
|
22
|
+
singleLabel?(_: {
|
|
23
|
+
option: any;
|
|
24
|
+
}): any;
|
|
25
|
+
optionAppend?(_: {
|
|
26
|
+
option: any;
|
|
27
|
+
search: any;
|
|
28
|
+
index: any;
|
|
29
|
+
}): any;
|
|
30
|
+
limit?(_: {}): any;
|
|
31
|
+
maxElements?(_: {}): any;
|
|
32
|
+
noResult?(_: {
|
|
33
|
+
search: any;
|
|
34
|
+
}): any;
|
|
35
|
+
noOptions?(_: {}): any;
|
|
36
|
+
afterList?(_: {}): any;
|
|
37
|
+
};
|
|
38
|
+
refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
|
|
39
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
40
|
+
};
|
|
41
|
+
type __VLS_Slots = typeof __VLS_templateResult['slots'];
|
|
42
|
+
declare const __VLS_component: import("vue").DefineComponent<{
|
|
43
|
+
/**
|
|
44
|
+
* Id del dropdown
|
|
45
|
+
*/
|
|
46
|
+
id: {
|
|
47
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
48
|
+
required: true;
|
|
49
|
+
validator: (value: any) => boolean;
|
|
50
|
+
};
|
|
51
|
+
label: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
required: true;
|
|
54
|
+
default: string;
|
|
55
|
+
validator: (value: string) => boolean;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Valores a mostrar en el dropdown
|
|
59
|
+
*/
|
|
60
|
+
options: {
|
|
61
|
+
type: PropType<DropdownOption[] | string[]>;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Indica si el dropdown está deshabilitado
|
|
66
|
+
*/
|
|
67
|
+
disabled: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Indica si se pueden seleccionar múltiples valores
|
|
73
|
+
*/
|
|
74
|
+
multiple: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Indica si se cierra el dropdown al seleccionar un valor
|
|
80
|
+
*/
|
|
81
|
+
closeOnSelect: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Indica si el listado de opcciones es pequeño
|
|
87
|
+
*/
|
|
88
|
+
small: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Indica si se muestra un radio button en las opcciones
|
|
94
|
+
* <br>
|
|
95
|
+
* Solo valido para seleccion unica
|
|
96
|
+
*/
|
|
97
|
+
showRadio: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
validator: (value: boolean, props: any) => boolean;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Indica si el campo de entrada contiene un error o no.
|
|
104
|
+
*/
|
|
105
|
+
error: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Indica si se debe mostrar un mensaje de ayuda debajo del campo de entrada o no.
|
|
111
|
+
*/
|
|
112
|
+
helper: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Indica la cantidad maxima de elementos seleccionados a mostrar en el imput.
|
|
118
|
+
*/
|
|
119
|
+
limit: {
|
|
120
|
+
type: NumberConstructor;
|
|
121
|
+
default: number;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Texto a mostrar cuando se alcanza el limite de elementos seleccionados.
|
|
125
|
+
*/
|
|
126
|
+
limitText: {
|
|
127
|
+
type: FunctionConstructor;
|
|
128
|
+
default: (count: number) => string;
|
|
129
|
+
};
|
|
130
|
+
modelValue: {
|
|
131
|
+
type: PropType<any>;
|
|
132
|
+
required: true;
|
|
133
|
+
};
|
|
134
|
+
}, {
|
|
135
|
+
/**
|
|
136
|
+
* Abre el dropdown
|
|
137
|
+
*/
|
|
138
|
+
activate: () => void;
|
|
139
|
+
/**
|
|
140
|
+
* Cierra el dropdown
|
|
141
|
+
*/
|
|
142
|
+
deactivate: () => void;
|
|
143
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
144
|
+
open: (id: any) => void;
|
|
145
|
+
close: (id: any) => void;
|
|
146
|
+
select: (selectOption: any) => void;
|
|
147
|
+
change: (options: any[]) => void;
|
|
148
|
+
"update:modelValue": (modelValue: any) => void;
|
|
149
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
150
|
+
/**
|
|
151
|
+
* Id del dropdown
|
|
152
|
+
*/
|
|
153
|
+
id: {
|
|
154
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
155
|
+
required: true;
|
|
156
|
+
validator: (value: any) => boolean;
|
|
157
|
+
};
|
|
158
|
+
label: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
required: true;
|
|
161
|
+
default: string;
|
|
162
|
+
validator: (value: string) => boolean;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Valores a mostrar en el dropdown
|
|
166
|
+
*/
|
|
167
|
+
options: {
|
|
168
|
+
type: PropType<DropdownOption[] | string[]>;
|
|
169
|
+
required: true;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Indica si el dropdown está deshabilitado
|
|
173
|
+
*/
|
|
174
|
+
disabled: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
default: boolean;
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Indica si se pueden seleccionar múltiples valores
|
|
180
|
+
*/
|
|
181
|
+
multiple: {
|
|
182
|
+
type: BooleanConstructor;
|
|
183
|
+
default: boolean;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* Indica si se cierra el dropdown al seleccionar un valor
|
|
187
|
+
*/
|
|
188
|
+
closeOnSelect: {
|
|
189
|
+
type: BooleanConstructor;
|
|
190
|
+
default: boolean;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Indica si el listado de opcciones es pequeño
|
|
194
|
+
*/
|
|
195
|
+
small: {
|
|
196
|
+
type: BooleanConstructor;
|
|
197
|
+
default: boolean;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Indica si se muestra un radio button en las opcciones
|
|
201
|
+
* <br>
|
|
202
|
+
* Solo valido para seleccion unica
|
|
203
|
+
*/
|
|
204
|
+
showRadio: {
|
|
205
|
+
type: BooleanConstructor;
|
|
206
|
+
default: boolean;
|
|
207
|
+
validator: (value: boolean, props: any) => boolean;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Indica si el campo de entrada contiene un error o no.
|
|
211
|
+
*/
|
|
212
|
+
error: {
|
|
213
|
+
type: BooleanConstructor;
|
|
214
|
+
default: boolean;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Indica si se debe mostrar un mensaje de ayuda debajo del campo de entrada o no.
|
|
218
|
+
*/
|
|
219
|
+
helper: {
|
|
220
|
+
type: BooleanConstructor;
|
|
221
|
+
default: boolean;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Indica la cantidad maxima de elementos seleccionados a mostrar en el imput.
|
|
225
|
+
*/
|
|
226
|
+
limit: {
|
|
227
|
+
type: NumberConstructor;
|
|
228
|
+
default: number;
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* Texto a mostrar cuando se alcanza el limite de elementos seleccionados.
|
|
232
|
+
*/
|
|
233
|
+
limitText: {
|
|
234
|
+
type: FunctionConstructor;
|
|
235
|
+
default: (count: number) => string;
|
|
236
|
+
};
|
|
237
|
+
modelValue: {
|
|
238
|
+
type: PropType<any>;
|
|
239
|
+
required: true;
|
|
240
|
+
};
|
|
241
|
+
}>> & {
|
|
242
|
+
onChange?: ((options: any[]) => any) | undefined;
|
|
243
|
+
onSelect?: ((selectOption: any) => any) | undefined;
|
|
244
|
+
"onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
|
|
245
|
+
onClose?: ((id: any) => any) | undefined;
|
|
246
|
+
onOpen?: ((id: any) => any) | undefined;
|
|
247
|
+
}, {
|
|
248
|
+
error: boolean;
|
|
249
|
+
label: string;
|
|
250
|
+
small: boolean;
|
|
251
|
+
disabled: boolean;
|
|
252
|
+
helper: boolean;
|
|
253
|
+
multiple: boolean;
|
|
254
|
+
closeOnSelect: boolean;
|
|
255
|
+
showRadio: boolean;
|
|
256
|
+
limit: number;
|
|
257
|
+
limitText: Function;
|
|
258
|
+
}, {}>;
|
|
259
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
260
|
+
export default _default;
|
|
261
|
+
type __VLS_PickRefsExpose<T> = T extends object ? {
|
|
262
|
+
[K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
|
|
263
|
+
expose?: (exposed: infer E) => void;
|
|
264
|
+
} ? E : T[K]) | null;
|
|
265
|
+
} : never;
|
|
266
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
267
|
+
new (): {
|
|
268
|
+
$slots: S;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
/**
|
|
3
|
+
* <span>Opción del radio button</span>
|
|
4
|
+
*/
|
|
5
|
+
option: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* <span>Nombre del grupo al que pertenece el radio button</span>
|
|
11
|
+
*/
|
|
12
|
+
groupName: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* <span>Texto a mostrar en el label</span>
|
|
18
|
+
*/
|
|
19
|
+
label: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* <span>Tooltip text del Icono de información en el label</span>
|
|
25
|
+
* Solo se mostrara si hay `label` activa
|
|
26
|
+
*/
|
|
27
|
+
icon: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <span>Indica si el radio button tiene error</span>
|
|
33
|
+
*/
|
|
34
|
+
error: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* <span>Indica si el radio button está deshabilitado</span>
|
|
40
|
+
*/
|
|
41
|
+
disabled: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* <span>Estado del radio button</span>
|
|
47
|
+
*/
|
|
48
|
+
checked: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
"update:modelValue": (event: string | number | boolean) => void;
|
|
54
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
/**
|
|
56
|
+
* <span>Opción del radio button</span>
|
|
57
|
+
*/
|
|
58
|
+
option: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* <span>Nombre del grupo al que pertenece el radio button</span>
|
|
64
|
+
*/
|
|
65
|
+
groupName: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* <span>Texto a mostrar en el label</span>
|
|
71
|
+
*/
|
|
72
|
+
label: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* <span>Tooltip text del Icono de información en el label</span>
|
|
78
|
+
* Solo se mostrara si hay `label` activa
|
|
79
|
+
*/
|
|
80
|
+
icon: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* <span>Indica si el radio button tiene error</span>
|
|
86
|
+
*/
|
|
87
|
+
error: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* <span>Indica si el radio button está deshabilitado</span>
|
|
93
|
+
*/
|
|
94
|
+
disabled: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* <span>Estado del radio button</span>
|
|
100
|
+
*/
|
|
101
|
+
checked: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
}>> & {
|
|
106
|
+
"onUpdate:modelValue"?: ((event: string | number | boolean) => any) | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
error: boolean;
|
|
109
|
+
label: string;
|
|
110
|
+
icon: string;
|
|
111
|
+
disabled: boolean;
|
|
112
|
+
checked: boolean;
|
|
113
|
+
}, {}>;
|
|
114
|
+
export default _default;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
declare var __VLS_inheritedAttrs: {};
|
|
2
|
+
declare const __VLS_refs: {};
|
|
3
|
+
declare const __VLS_templateResult: {
|
|
4
|
+
slots: {
|
|
5
|
+
"text-label"?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
|
|
8
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = typeof __VLS_templateResult['slots'];
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<{
|
|
12
|
+
/**
|
|
13
|
+
* ID del interruptor
|
|
14
|
+
*/
|
|
15
|
+
id: {
|
|
16
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Etiqueta para el interruptor
|
|
21
|
+
*/
|
|
22
|
+
label: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Icono para el interruptor, se mostrara a la derecha del texto
|
|
28
|
+
*/
|
|
29
|
+
icon: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Si el interruptor está deshabilitado
|
|
35
|
+
*/
|
|
36
|
+
disabled: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Si el interruptor está marcado o no
|
|
42
|
+
*/
|
|
43
|
+
checked: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
+
"update:modelValue": (event: boolean) => void;
|
|
49
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
/**
|
|
51
|
+
* ID del interruptor
|
|
52
|
+
*/
|
|
53
|
+
id: {
|
|
54
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Etiqueta para el interruptor
|
|
59
|
+
*/
|
|
60
|
+
label: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Icono para el interruptor, se mostrara a la derecha del texto
|
|
66
|
+
*/
|
|
67
|
+
icon: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Si el interruptor está deshabilitado
|
|
73
|
+
*/
|
|
74
|
+
disabled: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Si el interruptor está marcado o no
|
|
80
|
+
*/
|
|
81
|
+
checked: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
}>> & {
|
|
86
|
+
"onUpdate:modelValue"?: ((event: boolean) => any) | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
label: string;
|
|
89
|
+
icon: string;
|
|
90
|
+
disabled: boolean;
|
|
91
|
+
checked: boolean;
|
|
92
|
+
}, {}>;
|
|
93
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
94
|
+
export default _default;
|
|
95
|
+
type __VLS_PickRefsExpose<T> = T extends object ? {
|
|
96
|
+
[K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
|
|
97
|
+
expose?: (exposed: infer E) => void;
|
|
98
|
+
} ? E : T[K]) | null;
|
|
99
|
+
} : never;
|
|
100
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
101
|
+
new (): {
|
|
102
|
+
$slots: S;
|
|
103
|
+
};
|
|
104
|
+
};
|