valtech-components 2.0.496 → 2.0.498
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/esm2022/lib/components/molecules/language-selector/language-selector.component.mjs +23 -14
- package/esm2022/lib/components/molecules/language-selector/types.mjs +1 -1
- package/esm2022/lib/services/auth/auth.service.mjs +16 -3
- package/esm2022/lib/services/auth/types.mjs +1 -1
- package/esm2022/lib/services/firebase/analytics-types.mjs +7 -0
- package/esm2022/lib/services/firebase/types.mjs +1 -1
- package/esm2022/lib/services/i18n/config.mjs +50 -0
- package/esm2022/lib/services/i18n/i18n.service.mjs +196 -0
- package/esm2022/lib/services/i18n/index.mjs +9 -0
- package/esm2022/lib/services/i18n/translate.pipe.mjs +50 -0
- package/esm2022/lib/services/i18n/types.mjs +14 -0
- package/esm2022/lib/services/presets/config.mjs +46 -0
- package/esm2022/lib/services/presets/index.mjs +5 -0
- package/esm2022/lib/services/presets/preset.service.mjs +104 -0
- package/esm2022/lib/services/presets/types.mjs +2 -0
- package/esm2022/public-api.mjs +9 -1
- package/fesm2022/valtech-components.mjs +526 -54
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/language-selector/language-selector.component.d.ts +1 -4
- package/lib/components/molecules/language-selector/types.d.ts +7 -0
- package/lib/services/auth/auth.service.d.ts +4 -2
- package/lib/services/auth/types.d.ts +4 -0
- package/lib/services/firebase/analytics-types.d.ts +219 -0
- package/lib/services/firebase/types.d.ts +11 -0
- package/lib/services/i18n/config.d.ts +29 -0
- package/lib/services/i18n/i18n.service.d.ts +112 -0
- package/lib/services/i18n/index.d.ts +4 -0
- package/lib/services/i18n/translate.pipe.d.ts +36 -0
- package/lib/services/i18n/types.d.ts +59 -0
- package/lib/services/presets/config.d.ts +32 -0
- package/lib/services/presets/index.d.ts +3 -0
- package/lib/services/presets/preset.service.d.ts +69 -0
- package/lib/services/presets/types.d.ts +39 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Presets para un tipo de componente
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* const buttonPresets: ComponentPresets = {
|
|
6
|
+
* 'primary-action': { size: 'large', color: 'primary', fill: 'solid' },
|
|
7
|
+
* 'secondary': { size: 'medium', color: 'secondary', fill: 'outline' },
|
|
8
|
+
* 'danger': { size: 'medium', color: 'danger', fill: 'solid' },
|
|
9
|
+
* };
|
|
10
|
+
*/
|
|
11
|
+
export type ComponentPresets = Record<string, Record<string, unknown>>;
|
|
12
|
+
/**
|
|
13
|
+
* Configuración completa de presets por componente
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const appPresets: PresetConfig = {
|
|
17
|
+
* button: {
|
|
18
|
+
* 'primary-action': { size: 'large', color: 'primary', fill: 'solid' },
|
|
19
|
+
* 'secondary': { size: 'medium', color: 'secondary', fill: 'outline' },
|
|
20
|
+
* },
|
|
21
|
+
* card: {
|
|
22
|
+
* 'feature': { variant: 'elevated', padding: 'large' },
|
|
23
|
+
* 'compact': { variant: 'flat', padding: 'small' },
|
|
24
|
+
* },
|
|
25
|
+
* input: {
|
|
26
|
+
* 'form-field': { size: 'medium', fill: 'outline', labelPosition: 'floating' },
|
|
27
|
+
* }
|
|
28
|
+
* };
|
|
29
|
+
*/
|
|
30
|
+
export type PresetConfig = Record<string, ComponentPresets>;
|
|
31
|
+
/**
|
|
32
|
+
* Opciones para provideValtechPresets()
|
|
33
|
+
*/
|
|
34
|
+
export interface PresetsOptions {
|
|
35
|
+
/**
|
|
36
|
+
* Presets iniciales de la aplicación
|
|
37
|
+
*/
|
|
38
|
+
presets: PresetConfig;
|
|
39
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -219,6 +219,8 @@ export * from './lib/services/modal/modal.service';
|
|
|
219
219
|
export * from './lib/services/modal/types';
|
|
220
220
|
export * from './lib/services/firebase';
|
|
221
221
|
export * from './lib/services/auth';
|
|
222
|
+
export * from './lib/services/i18n';
|
|
223
|
+
export * from './lib/services/presets';
|
|
222
224
|
export * from './lib/components/types';
|
|
223
225
|
export * from './lib/shared/pipes/process-links.pipe';
|
|
224
226
|
export * from './lib/shared/utils/dom';
|