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.
Files changed (35) hide show
  1. package/esm2022/lib/components/molecules/language-selector/language-selector.component.mjs +23 -14
  2. package/esm2022/lib/components/molecules/language-selector/types.mjs +1 -1
  3. package/esm2022/lib/services/auth/auth.service.mjs +16 -3
  4. package/esm2022/lib/services/auth/types.mjs +1 -1
  5. package/esm2022/lib/services/firebase/analytics-types.mjs +7 -0
  6. package/esm2022/lib/services/firebase/types.mjs +1 -1
  7. package/esm2022/lib/services/i18n/config.mjs +50 -0
  8. package/esm2022/lib/services/i18n/i18n.service.mjs +196 -0
  9. package/esm2022/lib/services/i18n/index.mjs +9 -0
  10. package/esm2022/lib/services/i18n/translate.pipe.mjs +50 -0
  11. package/esm2022/lib/services/i18n/types.mjs +14 -0
  12. package/esm2022/lib/services/presets/config.mjs +46 -0
  13. package/esm2022/lib/services/presets/index.mjs +5 -0
  14. package/esm2022/lib/services/presets/preset.service.mjs +104 -0
  15. package/esm2022/lib/services/presets/types.mjs +2 -0
  16. package/esm2022/public-api.mjs +9 -1
  17. package/fesm2022/valtech-components.mjs +526 -54
  18. package/fesm2022/valtech-components.mjs.map +1 -1
  19. package/lib/components/molecules/language-selector/language-selector.component.d.ts +1 -4
  20. package/lib/components/molecules/language-selector/types.d.ts +7 -0
  21. package/lib/services/auth/auth.service.d.ts +4 -2
  22. package/lib/services/auth/types.d.ts +4 -0
  23. package/lib/services/firebase/analytics-types.d.ts +219 -0
  24. package/lib/services/firebase/types.d.ts +11 -0
  25. package/lib/services/i18n/config.d.ts +29 -0
  26. package/lib/services/i18n/i18n.service.d.ts +112 -0
  27. package/lib/services/i18n/index.d.ts +4 -0
  28. package/lib/services/i18n/translate.pipe.d.ts +36 -0
  29. package/lib/services/i18n/types.d.ts +59 -0
  30. package/lib/services/presets/config.d.ts +32 -0
  31. package/lib/services/presets/index.d.ts +3 -0
  32. package/lib/services/presets/preset.service.d.ts +69 -0
  33. package/lib/services/presets/types.d.ts +39 -0
  34. package/package.json +1 -1
  35. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.496",
3
+ "version": "2.0.498",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
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';