valtech-components 2.0.963 → 2.0.965

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 (40) hide show
  1. package/esm2022/lib/components/molecules/content-card/content-card.component.mjs +86 -0
  2. package/esm2022/lib/components/molecules/content-card/types.mjs +11 -0
  3. package/esm2022/lib/components/molecules/info-card/info-card.component.mjs +126 -0
  4. package/esm2022/lib/components/molecules/info-card/types.mjs +11 -0
  5. package/esm2022/lib/components/molecules/metric-card/metric-card.component.mjs +146 -0
  6. package/esm2022/lib/components/molecules/metric-card/types.mjs +10 -0
  7. package/esm2022/lib/components/molecules/pill/pill.component.mjs +100 -105
  8. package/esm2022/lib/components/molecules/pill/types.mjs +1 -1
  9. package/esm2022/lib/components/organisms/article-strip/article-strip.component.mjs +127 -0
  10. package/esm2022/lib/components/organisms/article-strip/types.mjs +8 -0
  11. package/esm2022/lib/components/organisms/auth-cta/auth-cta.component.mjs +180 -0
  12. package/esm2022/lib/components/organisms/auth-cta/types.mjs +9 -0
  13. package/esm2022/lib/services/requests/request.service.mjs +11 -4
  14. package/esm2022/lib/shared/utils/validators.mjs +7 -3
  15. package/esm2022/lib/version.mjs +2 -2
  16. package/esm2022/public-api.mjs +12 -1
  17. package/fesm2022/valtech-components.mjs +817 -126
  18. package/fesm2022/valtech-components.mjs.map +1 -1
  19. package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +1 -1
  20. package/lib/components/atoms/text/text.component.d.ts +1 -1
  21. package/lib/components/atoms/user-avatar/user-avatar.component.d.ts +1 -1
  22. package/lib/components/molecules/article-card/article-card.component.d.ts +1 -1
  23. package/lib/components/molecules/content-card/content-card.component.d.ts +26 -0
  24. package/lib/components/molecules/content-card/types.d.ts +30 -0
  25. package/lib/components/molecules/features-list/features-list.component.d.ts +1 -1
  26. package/lib/components/molecules/info-card/info-card.component.d.ts +37 -0
  27. package/lib/components/molecules/info-card/types.d.ts +44 -0
  28. package/lib/components/molecules/metric-card/metric-card.component.d.ts +34 -0
  29. package/lib/components/molecules/metric-card/types.d.ts +46 -0
  30. package/lib/components/molecules/pill/pill.component.d.ts +10 -26
  31. package/lib/components/molecules/pill/types.d.ts +76 -35
  32. package/lib/components/organisms/article/article.component.d.ts +4 -4
  33. package/lib/components/organisms/article-strip/article-strip.component.d.ts +38 -0
  34. package/lib/components/organisms/article-strip/types.d.ts +29 -0
  35. package/lib/components/organisms/auth-cta/auth-cta.component.d.ts +44 -0
  36. package/lib/components/organisms/auth-cta/types.d.ts +42 -0
  37. package/lib/shared/utils/validators.d.ts +3 -2
  38. package/lib/version.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/public-api.d.ts +10 -0
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Metadata for val-auth-cta.
3
+ *
4
+ * Full-width CTA section that invites unauthenticated users to sign up or log in.
5
+ * Supports an optional side image for desktop layouts.
6
+ */
7
+ export interface AuthCtaMetadata {
8
+ /** Small label above the title (e.g. "¡Únete gratis!") */
9
+ eyebrow?: string;
10
+ /** Main heading */
11
+ title: string;
12
+ /** Supporting paragraph below the title */
13
+ subtitle?: string;
14
+ /** Label for the login button. Falls back to i18n key AuthCta.login */
15
+ loginLabel?: string;
16
+ /** Label for the register button. Falls back to i18n key AuthCta.register */
17
+ registerLabel?: string;
18
+ /** Internal route for the login button */
19
+ loginRoute?: string | any[];
20
+ /** External href for the login button */
21
+ loginHref?: string;
22
+ /** Internal route for the register button */
23
+ registerRoute?: string | any[];
24
+ /** External href for the register button */
25
+ registerHref?: string;
26
+ /** Decorative image shown to the right (desktop) */
27
+ image?: string;
28
+ /** Alt text for the image */
29
+ imageAlt?: string;
30
+ /** Background color — Ionic color name or any CSS color */
31
+ backgroundColor?: string;
32
+ /** Content alignment. Default: 'center' */
33
+ align?: 'start' | 'center';
34
+ /** Border radius of the wrapper. Default: '0' */
35
+ borderRadius?: string;
36
+ /** Inner padding. Default: '3rem 1.5rem' */
37
+ padding?: string;
38
+ }
39
+ /**
40
+ * Default values for AuthCtaMetadata.
41
+ */
42
+ export declare const AUTH_CTA_DEFAULTS: Required<Pick<AuthCtaMetadata, 'align' | 'borderRadius' | 'padding'>>;
@@ -1,7 +1,8 @@
1
1
  import { ValidatorFn } from '@angular/forms';
2
2
  /**
3
- * Mirrors the backend `authPassword` validator (`pkg/validator.go`):
4
- * min 8 chars, ≥1 uppercase, ≥1 lowercase, ≥1 digit, ≥1 special char.
3
+ * Mirrors the backend `authPassword` validator (services/authv2/password.go):
4
+ * min 8 chars, max 72 chars (bcrypt limit), ≥1 uppercase, ≥1 lowercase,
5
+ * ≥1 digit, ≥1 special char.
5
6
  *
6
7
  * Returns `{ authPassword: true }` on failure so the form can surface the
7
8
  * inline error via `errorKeys: { authPassword: 'passwordStrength' }`.
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "2.0.963";
5
+ export declare const VERSION = "2.0.965";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.963",
3
+ "version": "2.0.965",
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
@@ -366,3 +366,13 @@ export * from './lib/services/requests/types';
366
366
  export * from './lib/services/requests/request.service';
367
367
  export * from './lib/services/requests/request-form-builder.service';
368
368
  export * from './lib/services/requests/request-firestore.service';
369
+ export * from './lib/components/organisms/article-strip/article-strip.component';
370
+ export * from './lib/components/organisms/article-strip/types';
371
+ export * from './lib/components/molecules/info-card/info-card.component';
372
+ export * from './lib/components/molecules/info-card/types';
373
+ export * from './lib/components/molecules/metric-card/metric-card.component';
374
+ export * from './lib/components/molecules/metric-card/types';
375
+ export * from './lib/components/molecules/content-card/content-card.component';
376
+ export * from './lib/components/molecules/content-card/types';
377
+ export * from './lib/components/organisms/auth-cta/auth-cta.component';
378
+ export * from './lib/components/organisms/auth-cta/types';