energy-components 1.6.0-beta.1 → 1.7.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/dist/components/accordion.es.js +13 -13
- package/dist/components/button.es.js +21 -21
- package/dist/components/checkbox.es.js +7 -7
- package/dist/components/dropdown.es.js +278 -148
- package/dist/components/filterChip.es.js +4 -4
- package/dist/components/{icon-svg-pUb3-FXk.js → icon-svg-BmDOQ0kL.js} +42 -26
- package/dist/components/iconList.es.js +5 -5
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +62 -59
- package/dist/components/infoBox.es.js +17 -17
- package/dist/components/link.es.js +15 -15
- package/dist/components/modal.es.js +69 -39
- package/dist/components/multiselect.es.js +230 -184
- package/dist/components/multiselectcontentwrapper.es.js +140 -0
- package/dist/components/pagination.es.js +129 -86
- package/dist/components/persistentToast.es.js +9 -9
- package/dist/components/quantitySelector.es.js +9 -9
- package/dist/components/radioButton.es.js +16 -16
- package/dist/components/selectionChip.es.js +5 -5
- package/dist/components/sidedrawer.es.js +53 -33
- package/dist/components/style/button.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/icon-svg.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/multiselect.css +1 -1
- package/dist/components/style/multiselectcontentwrapper.css +1 -0
- package/dist/components/style/pagination.css +1 -1
- package/dist/components/style/sidedrawer.css +1 -1
- package/dist/components/style/tabBar.css +1 -1
- package/dist/components/style/tablepaginatedcomponent.css +1 -1
- package/dist/components/style/tableslotedcomponent.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/style/tooltip.css +1 -1
- package/dist/components/switch.es.js +10 -10
- package/dist/components/tabBar.es.js +15 -13
- package/dist/components/tablepaginatedcomponent.es.js +69 -65
- package/dist/components/tableslotedcomponent.es.js +155 -148
- package/dist/components/tag.es.js +5 -5
- package/dist/components/textArea.es.js +22 -22
- package/dist/components/textField.es.js +93 -84
- package/dist/components/tooltip.es.js +178 -174
- package/dist/energy-components.es.js +6678 -6128
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/buttons/button/button.vue.d.ts +2 -2
- package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +19 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/input/dropdown/Multiselect/MultiselectContentWrapper.vue.d.ts +86 -0
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +582 -0
- package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +2 -2
- package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +1 -1
- package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +2 -2
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +10 -3
- package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +30 -0
- package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +80 -31
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +27 -1
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -5,7 +5,9 @@ declare function __VLS_template(): {
|
|
|
5
5
|
'right-icon'?(_: {}): any;
|
|
6
6
|
'helper-text'?(_: {}): any;
|
|
7
7
|
};
|
|
8
|
-
refs: {
|
|
8
|
+
refs: {
|
|
9
|
+
input: HTMLInputElement;
|
|
10
|
+
};
|
|
9
11
|
rootEl: HTMLDivElement;
|
|
10
12
|
};
|
|
11
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -121,7 +123,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
121
123
|
default: string;
|
|
122
124
|
validator: (value: string, props: any) => boolean;
|
|
123
125
|
};
|
|
124
|
-
}>, {
|
|
126
|
+
}>, {
|
|
127
|
+
focus: () => void;
|
|
128
|
+
blur: () => void;
|
|
129
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
125
130
|
change: (event: Event) => any;
|
|
126
131
|
keydown: (event: KeyboardEvent) => any;
|
|
127
132
|
keypress: (event: KeyboardEvent) => any;
|
|
@@ -258,7 +263,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
258
263
|
helperText: string;
|
|
259
264
|
clearable: boolean;
|
|
260
265
|
autocomplete: string;
|
|
261
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
266
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
267
|
+
input: HTMLInputElement;
|
|
268
|
+
}, HTMLDivElement>;
|
|
262
269
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
263
270
|
export default _default;
|
|
264
271
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -25,6 +25,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
25
25
|
type: BooleanConstructor;
|
|
26
26
|
default: boolean;
|
|
27
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* <span>Mostrar o no el Blur del overlay</span>
|
|
30
|
+
*/
|
|
31
|
+
blurOverlay: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
28
35
|
/**
|
|
29
36
|
* <span>Define el ancho del componente al abrirse</span>
|
|
30
37
|
*/
|
|
@@ -32,6 +39,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
32
39
|
type: StringConstructor;
|
|
33
40
|
default: string;
|
|
34
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* <span>Indica si el sidedrawer permanece abierto al hacer click fuera de él</span>
|
|
44
|
+
*/
|
|
45
|
+
persistent: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
35
49
|
}>, {
|
|
36
50
|
/**
|
|
37
51
|
* { boolean } Muestra el estado actual del sidebar.
|
|
@@ -66,6 +80,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
66
80
|
type: BooleanConstructor;
|
|
67
81
|
default: boolean;
|
|
68
82
|
};
|
|
83
|
+
/**
|
|
84
|
+
* <span>Mostrar o no el Blur del overlay</span>
|
|
85
|
+
*/
|
|
86
|
+
blurOverlay: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
69
90
|
/**
|
|
70
91
|
* <span>Define el ancho del componente al abrirse</span>
|
|
71
92
|
*/
|
|
@@ -73,12 +94,21 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
73
94
|
type: StringConstructor;
|
|
74
95
|
default: string;
|
|
75
96
|
};
|
|
97
|
+
/**
|
|
98
|
+
* <span>Indica si el sidedrawer permanece abierto al hacer click fuera de él</span>
|
|
99
|
+
*/
|
|
100
|
+
persistent: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
76
104
|
}>> & Readonly<{
|
|
77
105
|
onSidedrawerChange?: ((isHide: boolean) => any) | undefined;
|
|
78
106
|
}>, {
|
|
79
107
|
title: string;
|
|
80
108
|
iconClose: boolean;
|
|
109
|
+
blurOverlay: boolean;
|
|
81
110
|
containerWidth: string;
|
|
111
|
+
persistent: boolean;
|
|
82
112
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
83
113
|
sidebar: HTMLDivElement;
|
|
84
114
|
}, HTMLDivElement>;
|
|
@@ -1,109 +1,158 @@
|
|
|
1
1
|
interface NavigationElement {
|
|
2
|
-
navigator?:
|
|
2
|
+
navigator?: 'first' | 'prev' | 'next' | 'last';
|
|
3
3
|
page?: number;
|
|
4
4
|
}
|
|
5
|
-
interface
|
|
5
|
+
interface PageChangedEventPayload extends NavigationElement {
|
|
6
|
+
page: number;
|
|
6
7
|
offset: number;
|
|
7
|
-
end: number;
|
|
8
8
|
limit: number;
|
|
9
|
+
end: number;
|
|
9
10
|
reset?: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
13
|
/**
|
|
13
|
-
* La página actual que se está visualizando.
|
|
14
|
+
* La página actual que se está visualizando. Usada para inicializar el componente.
|
|
14
15
|
*/
|
|
15
16
|
currentPage: {
|
|
16
17
|
type: NumberConstructor;
|
|
17
18
|
required: true;
|
|
18
19
|
};
|
|
19
20
|
/**
|
|
20
|
-
* Habilita
|
|
21
|
+
* Habilita los botones para "saltar" a la primera y última página.
|
|
21
22
|
*/
|
|
22
23
|
jumpTo: {
|
|
23
24
|
type: BooleanConstructor;
|
|
24
25
|
default: boolean;
|
|
25
26
|
};
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
-
|
|
29
|
-
selected: {
|
|
30
|
-
type: BooleanConstructor;
|
|
31
|
-
default: boolean;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Ocultar la leyenda de paginación
|
|
28
|
+
* Oculta la leyenda "Mostrando resultados X-Y de Z".
|
|
29
|
+
* Solo tiene efecto si se usa la prop `totalItems`.
|
|
35
30
|
*/
|
|
36
31
|
hideLeyend: {
|
|
37
32
|
type: BooleanConstructor;
|
|
38
33
|
default: boolean;
|
|
39
34
|
};
|
|
40
35
|
/**
|
|
41
|
-
* El número total de items
|
|
36
|
+
* El número total de items a paginar.
|
|
37
|
+
* Requerido si no se proporciona `totalPages`. Habilita la leyenda.
|
|
42
38
|
*/
|
|
43
39
|
totalItems: {
|
|
44
40
|
type: NumberConstructor;
|
|
45
|
-
required:
|
|
41
|
+
required: false;
|
|
42
|
+
default: undefined;
|
|
46
43
|
};
|
|
47
44
|
/**
|
|
48
|
-
*
|
|
45
|
+
* Número de items a mostrar por página.
|
|
46
|
+
* Usado para calcular el total de páginas (si se usa `totalItems`) y el offset/end en el evento.
|
|
49
47
|
*/
|
|
50
48
|
itemsPerPage: {
|
|
51
49
|
type: NumberConstructor;
|
|
52
50
|
default: number;
|
|
53
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* El número total de páginas.
|
|
54
|
+
* Usado como fallback si `totalItems` no se proporciona.
|
|
55
|
+
*/
|
|
56
|
+
totalPages: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
required: false;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Controla si el número de la página activa se resalta visualmente.
|
|
63
|
+
* El resaltado requiere que esta prop sea true.
|
|
64
|
+
*/
|
|
65
|
+
selected: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Desactiva el evento por defecto de la paginación al cargar el componente.
|
|
71
|
+
* Si se desactiva, la carga de datos debe manejarse manualmente la primera vez que se carga el componente.
|
|
72
|
+
*/
|
|
73
|
+
disableFirstLoad: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
54
77
|
}>, {
|
|
78
|
+
/** Resetea la paginación a la primera página y emite el evento pageChanged. */
|
|
55
79
|
resetPagination: () => void;
|
|
56
80
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
57
|
-
pageChanged: (
|
|
81
|
+
pageChanged: (payload: PageChangedEventPayload) => any;
|
|
58
82
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
83
|
/**
|
|
60
|
-
* La página actual que se está visualizando.
|
|
84
|
+
* La página actual que se está visualizando. Usada para inicializar el componente.
|
|
61
85
|
*/
|
|
62
86
|
currentPage: {
|
|
63
87
|
type: NumberConstructor;
|
|
64
88
|
required: true;
|
|
65
89
|
};
|
|
66
90
|
/**
|
|
67
|
-
* Habilita
|
|
91
|
+
* Habilita los botones para "saltar" a la primera y última página.
|
|
68
92
|
*/
|
|
69
93
|
jumpTo: {
|
|
70
94
|
type: BooleanConstructor;
|
|
71
95
|
default: boolean;
|
|
72
96
|
};
|
|
73
97
|
/**
|
|
74
|
-
*
|
|
75
|
-
|
|
76
|
-
selected: {
|
|
77
|
-
type: BooleanConstructor;
|
|
78
|
-
default: boolean;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Ocultar la leyenda de paginación
|
|
98
|
+
* Oculta la leyenda "Mostrando resultados X-Y de Z".
|
|
99
|
+
* Solo tiene efecto si se usa la prop `totalItems`.
|
|
82
100
|
*/
|
|
83
101
|
hideLeyend: {
|
|
84
102
|
type: BooleanConstructor;
|
|
85
103
|
default: boolean;
|
|
86
104
|
};
|
|
87
105
|
/**
|
|
88
|
-
* El número total de items
|
|
106
|
+
* El número total de items a paginar.
|
|
107
|
+
* Requerido si no se proporciona `totalPages`. Habilita la leyenda.
|
|
89
108
|
*/
|
|
90
109
|
totalItems: {
|
|
91
110
|
type: NumberConstructor;
|
|
92
|
-
required:
|
|
111
|
+
required: false;
|
|
112
|
+
default: undefined;
|
|
93
113
|
};
|
|
94
114
|
/**
|
|
95
|
-
*
|
|
115
|
+
* Número de items a mostrar por página.
|
|
116
|
+
* Usado para calcular el total de páginas (si se usa `totalItems`) y el offset/end en el evento.
|
|
96
117
|
*/
|
|
97
118
|
itemsPerPage: {
|
|
98
119
|
type: NumberConstructor;
|
|
99
120
|
default: number;
|
|
100
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* El número total de páginas.
|
|
124
|
+
* Usado como fallback si `totalItems` no se proporciona.
|
|
125
|
+
*/
|
|
126
|
+
totalPages: {
|
|
127
|
+
type: NumberConstructor;
|
|
128
|
+
required: false;
|
|
129
|
+
default: undefined;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Controla si el número de la página activa se resalta visualmente.
|
|
133
|
+
* El resaltado requiere que esta prop sea true.
|
|
134
|
+
*/
|
|
135
|
+
selected: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Desactiva el evento por defecto de la paginación al cargar el componente.
|
|
141
|
+
* Si se desactiva, la carga de datos debe manejarse manualmente la primera vez que se carga el componente.
|
|
142
|
+
*/
|
|
143
|
+
disableFirstLoad: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
101
147
|
}>> & Readonly<{
|
|
102
|
-
onPageChanged?: ((
|
|
148
|
+
onPageChanged?: ((payload: PageChangedEventPayload) => any) | undefined;
|
|
103
149
|
}>, {
|
|
104
150
|
selected: boolean;
|
|
105
151
|
jumpTo: boolean;
|
|
106
152
|
hideLeyend: boolean;
|
|
153
|
+
totalItems: number;
|
|
107
154
|
itemsPerPage: number;
|
|
155
|
+
totalPages: number;
|
|
156
|
+
disableFirstLoad: boolean;
|
|
108
157
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
109
158
|
export default _default;
|
|
@@ -120,8 +120,32 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
120
120
|
default: number;
|
|
121
121
|
validator: (value: string | number) => boolean;
|
|
122
122
|
};
|
|
123
|
-
}>, {
|
|
123
|
+
}>, {
|
|
124
|
+
/**
|
|
125
|
+
* { () => void } Gestiona el clic fuera del modal.
|
|
126
|
+
*/
|
|
127
|
+
modalClickOutside: () => void;
|
|
128
|
+
/**
|
|
129
|
+
* { () => void } Solicita abrir el modal.
|
|
130
|
+
*/
|
|
131
|
+
openModal: () => void;
|
|
132
|
+
/**
|
|
133
|
+
* { () => void } Solicita cerrar el modal.
|
|
134
|
+
*/
|
|
135
|
+
closeModal: () => void;
|
|
136
|
+
/**
|
|
137
|
+
* { (state: boolean) => void } Cambia el estado del modal.
|
|
138
|
+
* @param {boolean} state - true para abrir, false para cerrar
|
|
139
|
+
*/
|
|
140
|
+
changeModalState: (state: boolean) => void;
|
|
141
|
+
/**
|
|
142
|
+
* { () => void } Alterna el estado del modal.
|
|
143
|
+
*/
|
|
144
|
+
toggleModal: () => void;
|
|
145
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
124
146
|
onCloseRequest: () => any;
|
|
147
|
+
onOpenRequest: () => any;
|
|
148
|
+
onToggleRequest: () => any;
|
|
125
149
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
126
150
|
/**
|
|
127
151
|
* Define el estado del modal
|
|
@@ -171,6 +195,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
171
195
|
};
|
|
172
196
|
}>> & Readonly<{
|
|
173
197
|
onOnCloseRequest?: (() => any) | undefined;
|
|
198
|
+
onOnOpenRequest?: (() => any) | undefined;
|
|
199
|
+
onOnToggleRequest?: (() => any) | undefined;
|
|
174
200
|
}>, {
|
|
175
201
|
open: boolean;
|
|
176
202
|
width: string | number;
|