valtech-components 2.0.932 → 2.0.934
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/atoms/glass/glass.component.mjs +4 -2
- package/esm2022/lib/components/organisms/change-password-modal/change-password-modal.component.mjs +4 -3
- package/esm2022/lib/components/organisms/login/login.component.mjs +6 -5
- package/esm2022/lib/services/i18n/default-content.mjs +3 -1
- package/esm2022/lib/shared/utils/validators.mjs +24 -0
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/valtech-components.mjs +37 -9
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/shared/utils/validators.d.ts +9 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ValidatorFn } from '@angular/forms';
|
|
2
|
+
/**
|
|
3
|
+
* Mirrors the backend `authPassword` validator (`pkg/validator.go`):
|
|
4
|
+
* min 8 chars, ≥1 uppercase, ≥1 lowercase, ≥1 digit, ≥1 special char.
|
|
5
|
+
*
|
|
6
|
+
* Returns `{ authPassword: true }` on failure so the form can surface the
|
|
7
|
+
* inline error via `errorKeys: { authPassword: 'passwordStrength' }`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function authPasswordValidator(): ValidatorFn;
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -338,6 +338,7 @@ export * from './lib/shared/pipes/process-links.pipe';
|
|
|
338
338
|
export * from './lib/shared/utils/datetime';
|
|
339
339
|
export * from './lib/shared/utils/dom';
|
|
340
340
|
export * from './lib/shared/utils/form-defaults';
|
|
341
|
+
export * from './lib/shared/utils/validators';
|
|
341
342
|
export * from './lib/shared/utils/styles';
|
|
342
343
|
export * from './lib/shared/utils/text';
|
|
343
344
|
export * from './lib/config';
|