energy-components 1.0.4 → 1.1.2-beta.1
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/getInstance-GhoEcxLF.js +21 -0
- package/dist/components/index.es.js +25 -22
- package/dist/components/infoBox.es.js +4 -4
- package/dist/components/link.es.js +41 -33
- package/dist/components/modal.es.js +60 -39
- package/dist/components/persistentToast.es.js +4 -4
- package/dist/components/radioButton.es.js +43 -59
- package/dist/components/sidebar.es.js +102 -0
- package/dist/components/style/accordion.css +1 -1
- package/dist/components/style/accordionGroup.css +1 -1
- package/dist/components/style/actionButton.css +1 -1
- package/dist/components/style/breadcrumbs.css +1 -1
- package/dist/components/style/button.css +1 -1
- package/dist/components/style/card.css +1 -1
- package/dist/components/style/checkbox.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/divider.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/floatingActionButton.css +1 -1
- package/dist/components/style/icon-svg.css +1 -1
- package/dist/components/style/iconList.css +1 -1
- package/dist/components/style/indicator.css +1 -1
- package/dist/components/style/infoBox.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/multiselect.css +1 -1
- package/dist/components/style/overlay.css +1 -1
- package/dist/components/style/pagination.css +1 -1
- package/dist/components/style/persistentToast.css +1 -1
- package/dist/components/style/radioButton.css +1 -1
- package/dist/components/style/sidebar.css +1 -0
- package/dist/components/style/switch.css +1 -1
- package/dist/components/style/tabBar.css +1 -1
- package/dist/components/style/tag.css +1 -1
- package/dist/components/style/textArea.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/style/tooltip.css +1 -1
- package/dist/components/textField.es.js +58 -59
- package/dist/components/tooltip.es.js +34 -33
- package/dist/composables/index.es.js +37 -0
- package/dist/energy-components.es.js +2847 -2720
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +4 -7
- package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +49 -0
- package/dist/types/src/components/navigation/link/link.vue.d.ts +15 -0
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +34 -2
- package/dist/types/src/composables/breakpoints.d.ts +5 -0
- package/dist/types/src/composables/index.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -3
|
@@ -25,3 +25,4 @@ export { default as RDSInfoBox } from './feedback/info-box/info-box.vue';
|
|
|
25
25
|
export { default as RDSModal } from './overlay/modal/modal.vue';
|
|
26
26
|
export { default as RDSOverlay } from './overlay/overlay/overlay.vue';
|
|
27
27
|
export { default as RDSTooltip } from './overlay/tooltip/tooltip.vue';
|
|
28
|
+
export { default as RDSSidebar } from './layout/sidebar/sidebar.vue';
|
|
@@ -24,9 +24,8 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
24
24
|
* Identificador único del campo de entrada.
|
|
25
25
|
*/
|
|
26
26
|
id: {
|
|
27
|
-
type:
|
|
28
|
-
required:
|
|
29
|
-
default: string;
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
required: false;
|
|
30
29
|
};
|
|
31
30
|
/**
|
|
32
31
|
* v-model valor de entrada y salida
|
|
@@ -139,9 +138,8 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
139
138
|
* Identificador único del campo de entrada.
|
|
140
139
|
*/
|
|
141
140
|
id: {
|
|
142
|
-
type:
|
|
143
|
-
required:
|
|
144
|
-
default: string;
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
required: false;
|
|
145
143
|
};
|
|
146
144
|
/**
|
|
147
145
|
* v-model valor de entrada y salida
|
|
@@ -246,7 +244,6 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
246
244
|
error: boolean;
|
|
247
245
|
icon: string;
|
|
248
246
|
disabled: boolean;
|
|
249
|
-
id: string | number;
|
|
250
247
|
password: boolean;
|
|
251
248
|
readonly: boolean;
|
|
252
249
|
maxLength: number;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare var __VLS_0: {};
|
|
2
|
+
declare var __VLS_inheritedAttrs: {};
|
|
3
|
+
declare const __VLS_refs: {
|
|
4
|
+
sidebar: import("vue").HTMLAttributes & import("vue").ReservedProps;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_templateResult: {
|
|
7
|
+
slots: {
|
|
8
|
+
content?(_: typeof __VLS_0): any;
|
|
9
|
+
collapsed?(_: {}): any;
|
|
10
|
+
expanded?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
|
|
13
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_Slots = typeof __VLS_templateResult['slots'];
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
17
|
+
/**
|
|
18
|
+
* { boolean } Muestra el estado actual del sidebar.
|
|
19
|
+
*/
|
|
20
|
+
isCollapsed: import("vue").Ref<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* { () => void } Abre el sidebar.
|
|
23
|
+
*/
|
|
24
|
+
openSidebar: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* { () => void } Cierra el sidebar.
|
|
27
|
+
*/
|
|
28
|
+
closeSidebar: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* { (state: boolean) => void } Cambia el estado del sidebar.
|
|
31
|
+
*/
|
|
32
|
+
toogleSidebar: () => void;
|
|
33
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
sidebarChange: (isCollapsed: boolean) => void;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
36
|
+
onSidebarChange?: ((isCollapsed: boolean) => any) | undefined;
|
|
37
|
+
}, {}, {}>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_PickRefsExpose<T> = T extends object ? {
|
|
41
|
+
[K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
|
|
42
|
+
expose?: (exposed: infer E) => void;
|
|
43
|
+
} ? E : T[K]) | null;
|
|
44
|
+
} : never;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -80,6 +80,13 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
80
80
|
type: BooleanConstructor;
|
|
81
81
|
default: boolean;
|
|
82
82
|
};
|
|
83
|
+
/**
|
|
84
|
+
* <span>Clase personalizada que se aplica solo al elemento (span) que contiene el texto del enlace.</span>
|
|
85
|
+
*/
|
|
86
|
+
customClass: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
83
90
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
91
|
/**
|
|
85
92
|
* <span>Texto a mostrar en el link</span>
|
|
@@ -151,6 +158,13 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
151
158
|
type: BooleanConstructor;
|
|
152
159
|
default: boolean;
|
|
153
160
|
};
|
|
161
|
+
/**
|
|
162
|
+
* <span>Clase personalizada que se aplica solo al elemento (span) que contiene el texto del enlace.</span>
|
|
163
|
+
*/
|
|
164
|
+
customClass: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
154
168
|
}>>, {
|
|
155
169
|
icon: Record<string, any>;
|
|
156
170
|
inverse: boolean;
|
|
@@ -160,6 +174,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
160
174
|
to: string;
|
|
161
175
|
underline: boolean;
|
|
162
176
|
arrow: boolean;
|
|
177
|
+
customClass: string;
|
|
163
178
|
}, {}>;
|
|
164
179
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
165
180
|
export default _default;
|
|
@@ -114,7 +114,6 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
114
114
|
teleport: {
|
|
115
115
|
type: StringConstructor;
|
|
116
116
|
default: string;
|
|
117
|
-
required: true;
|
|
118
117
|
};
|
|
119
118
|
/**
|
|
120
119
|
* Indica si se muestra el botón de cerrar, de la parte superior derecha
|
|
@@ -130,6 +129,22 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
130
129
|
type: BooleanConstructor;
|
|
131
130
|
default: boolean;
|
|
132
131
|
};
|
|
132
|
+
/**
|
|
133
|
+
* Ancho máximo del modal en dispositivos de escritorio.
|
|
134
|
+
*/
|
|
135
|
+
maxWidth: {
|
|
136
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
137
|
+
default: number;
|
|
138
|
+
validator: (value: string | number) => boolean;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Ancho del modal en dispositivos de escritorio.
|
|
142
|
+
*/
|
|
143
|
+
width: {
|
|
144
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
145
|
+
default: number;
|
|
146
|
+
validator: (value: string | number) => boolean;
|
|
147
|
+
};
|
|
133
148
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
134
149
|
onCloseRequest: () => void;
|
|
135
150
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -148,7 +163,6 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
148
163
|
teleport: {
|
|
149
164
|
type: StringConstructor;
|
|
150
165
|
default: string;
|
|
151
|
-
required: true;
|
|
152
166
|
};
|
|
153
167
|
/**
|
|
154
168
|
* Indica si se muestra el botón de cerrar, de la parte superior derecha
|
|
@@ -164,13 +178,31 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
164
178
|
type: BooleanConstructor;
|
|
165
179
|
default: boolean;
|
|
166
180
|
};
|
|
181
|
+
/**
|
|
182
|
+
* Ancho máximo del modal en dispositivos de escritorio.
|
|
183
|
+
*/
|
|
184
|
+
maxWidth: {
|
|
185
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
186
|
+
default: number;
|
|
187
|
+
validator: (value: string | number) => boolean;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Ancho del modal en dispositivos de escritorio.
|
|
191
|
+
*/
|
|
192
|
+
width: {
|
|
193
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
194
|
+
default: number;
|
|
195
|
+
validator: (value: string | number) => boolean;
|
|
196
|
+
};
|
|
167
197
|
}>> & {
|
|
168
198
|
onOnCloseRequest?: (() => any) | undefined;
|
|
169
199
|
}, {
|
|
170
200
|
open: boolean;
|
|
201
|
+
width: string | number;
|
|
171
202
|
teleport: string;
|
|
172
203
|
showClose: boolean;
|
|
173
204
|
preventClose: boolean;
|
|
205
|
+
maxWidth: string | number;
|
|
174
206
|
}, {}>;
|
|
175
207
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
176
208
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './breakpoints';
|