@flusys/ng-auth 4.0.0-rc → 4.0.2
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/README.md +172 -3
- package/fesm2022/flusys-ng-auth.mjs +82 -54
- package/fesm2022/flusys-ng-auth.mjs.map +1 -1
- package/package.json +6 -5
- package/types/flusys-ng-auth.d.ts +31 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/ng-auth",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Authentication module for FLUSYS Angular applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,12 +8,13 @@
|
|
|
8
8
|
"@angular/core": ">=21.0.0",
|
|
9
9
|
"@angular/forms": ">=21.0.0",
|
|
10
10
|
"@angular/router": ">=21.0.0",
|
|
11
|
-
"@flusys/ng-core": ">=4.0.
|
|
12
|
-
"@flusys/ng-layout": ">=4.0.
|
|
13
|
-
"@flusys/ng-shared": ">=4.0.
|
|
11
|
+
"@flusys/ng-core": ">=4.0.2",
|
|
12
|
+
"@flusys/ng-layout": ">=4.0.2",
|
|
13
|
+
"@flusys/ng-shared": ">=4.0.2",
|
|
14
14
|
"@primeuix/themes": ">=1.0.0",
|
|
15
15
|
"primeicons": ">=7.0.0",
|
|
16
|
-
"primeng": ">=21.0.0"
|
|
16
|
+
"primeng": ">=21.0.0",
|
|
17
|
+
"rxjs": "^7.8.0"
|
|
17
18
|
},
|
|
18
19
|
"sideEffects": false,
|
|
19
20
|
"module": "fesm2022/flusys-ng-auth.mjs",
|
|
@@ -644,6 +644,8 @@ declare function provideAuthProviders(): Provider[];
|
|
|
644
644
|
interface IEmailValidationConfig {
|
|
645
645
|
pattern?: RegExp;
|
|
646
646
|
message?: string;
|
|
647
|
+
messageKey?: string;
|
|
648
|
+
messageParam?: Record<string, string | number>;
|
|
647
649
|
}
|
|
648
650
|
interface IPasswordValidationConfig {
|
|
649
651
|
minLength?: number;
|
|
@@ -654,6 +656,8 @@ interface IPasswordValidationConfig {
|
|
|
654
656
|
requireSpecialChars?: boolean;
|
|
655
657
|
pattern?: RegExp;
|
|
656
658
|
message?: string;
|
|
659
|
+
messageKey?: string;
|
|
660
|
+
messageParam?: Record<string, string | number>;
|
|
657
661
|
}
|
|
658
662
|
interface IAuthValidationConfig {
|
|
659
663
|
email?: IEmailValidationConfig;
|
|
@@ -669,16 +673,21 @@ declare const REGISTRATION_FIELD_CONTEXT: InjectionToken<IRegistrationFieldTempl
|
|
|
669
673
|
interface IRegistrationExtraField {
|
|
670
674
|
key: string;
|
|
671
675
|
label: string;
|
|
676
|
+
labelKey?: string;
|
|
672
677
|
type: 'text' | 'number' | 'select' | 'checkbox' | 'textarea' | 'date' | 'template';
|
|
673
678
|
placeholder?: string;
|
|
679
|
+
placeholderKey?: string;
|
|
674
680
|
required?: boolean;
|
|
675
681
|
defaultValue?: unknown;
|
|
676
682
|
options?: Array<{
|
|
677
683
|
label: string;
|
|
684
|
+
labelKey?: string;
|
|
678
685
|
value: unknown;
|
|
679
686
|
}>;
|
|
680
687
|
pattern?: RegExp;
|
|
681
688
|
validationMessage?: string;
|
|
689
|
+
validationMessageKey?: string;
|
|
690
|
+
validationMessageParam?: Record<string, string | number>;
|
|
682
691
|
order?: number;
|
|
683
692
|
containerClass?: string;
|
|
684
693
|
template?: TemplateRef<IRegistrationFieldTemplateContext>;
|
|
@@ -694,6 +703,7 @@ declare const AUTH_REGISTRATION_EXTENSION: InjectionToken<IRegistrationExtension
|
|
|
694
703
|
interface IUserListExtraColumn {
|
|
695
704
|
key: string;
|
|
696
705
|
header: string;
|
|
706
|
+
headerKey?: string;
|
|
697
707
|
field?: string;
|
|
698
708
|
template?: TemplateRef<{
|
|
699
709
|
$implicit: IUser;
|
|
@@ -706,6 +716,7 @@ interface IUserListExtraColumn {
|
|
|
706
716
|
interface IUserListExtraAction {
|
|
707
717
|
key: string;
|
|
708
718
|
label: string;
|
|
719
|
+
labelKey?: string;
|
|
709
720
|
icon: string;
|
|
710
721
|
severity?: 'info' | 'success' | 'warn' | 'danger' | 'secondary' | 'contrast';
|
|
711
722
|
permission?: string;
|
|
@@ -723,6 +734,7 @@ declare const AUTH_USER_LIST_EXTENSION: InjectionToken<IUserListExtensionProvide
|
|
|
723
734
|
interface IProfileExtraSection {
|
|
724
735
|
key: string;
|
|
725
736
|
title: string;
|
|
737
|
+
titleKey?: string;
|
|
726
738
|
icon?: string;
|
|
727
739
|
order?: number;
|
|
728
740
|
component?: Type<unknown>;
|
|
@@ -742,16 +754,21 @@ declare const PROFILE_FIELD_CONTEXT: InjectionToken<IProfileFieldTemplateContext
|
|
|
742
754
|
interface IProfileExtraField {
|
|
743
755
|
key: string;
|
|
744
756
|
label: string;
|
|
757
|
+
labelKey?: string;
|
|
745
758
|
type: 'text' | 'number' | 'select' | 'checkbox' | 'textarea' | 'date' | 'template';
|
|
746
759
|
placeholder?: string;
|
|
760
|
+
placeholderKey?: string;
|
|
747
761
|
editable?: boolean;
|
|
748
762
|
required?: boolean;
|
|
749
763
|
options?: Array<{
|
|
750
764
|
label: string;
|
|
765
|
+
labelKey?: string;
|
|
751
766
|
value: unknown;
|
|
752
767
|
}>;
|
|
753
768
|
pattern?: RegExp;
|
|
754
769
|
validationMessage?: string;
|
|
770
|
+
validationMessageKey?: string;
|
|
771
|
+
validationMessageParam?: Record<string, string | number>;
|
|
755
772
|
order?: number;
|
|
756
773
|
sectionKey?: string;
|
|
757
774
|
template?: TemplateRef<IProfileFieldTemplateContext>;
|
|
@@ -775,15 +792,20 @@ declare const USER_FORM_FIELD_CONTEXT: InjectionToken<IUserFormFieldTemplateCont
|
|
|
775
792
|
interface IUserFormExtraField {
|
|
776
793
|
key: string;
|
|
777
794
|
label: string;
|
|
795
|
+
labelKey?: string;
|
|
778
796
|
type: 'text' | 'number' | 'select' | 'checkbox' | 'textarea' | 'date' | 'template';
|
|
779
797
|
placeholder?: string;
|
|
798
|
+
placeholderKey?: string;
|
|
780
799
|
required?: boolean;
|
|
781
800
|
options?: Array<{
|
|
782
801
|
label: string;
|
|
802
|
+
labelKey?: string;
|
|
783
803
|
value: unknown;
|
|
784
804
|
}>;
|
|
785
805
|
pattern?: RegExp;
|
|
786
806
|
validationMessage?: string;
|
|
807
|
+
validationMessageKey?: string;
|
|
808
|
+
validationMessageParam?: Record<string, string | number>;
|
|
787
809
|
order?: number;
|
|
788
810
|
template?: TemplateRef<IUserFormFieldTemplateContext>;
|
|
789
811
|
component?: Type<unknown>;
|
|
@@ -805,6 +827,7 @@ interface IUserDetailViewConfig {
|
|
|
805
827
|
tabs?: Array<{
|
|
806
828
|
key: string;
|
|
807
829
|
label: string;
|
|
830
|
+
labelKey?: string;
|
|
808
831
|
icon?: string;
|
|
809
832
|
component?: Type<unknown>;
|
|
810
833
|
template?: TemplateRef<{
|
|
@@ -1158,6 +1181,8 @@ declare class ProfilePageComponent {
|
|
|
1158
1181
|
private readonly userFormExtension;
|
|
1159
1182
|
private readonly translateAdapter;
|
|
1160
1183
|
private translate;
|
|
1184
|
+
/** Translate with fallback: if key returns unchanged, use fallback instead */
|
|
1185
|
+
safeTranslate(key: string | undefined, fallback: string): string;
|
|
1161
1186
|
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
1162
1187
|
readonly isLoadingPermissions: _angular_core.WritableSignal<boolean>;
|
|
1163
1188
|
readonly isLoadingExtraFields: _angular_core.WritableSignal<boolean>;
|
|
@@ -1256,6 +1281,8 @@ declare class RegisterPageComponent {
|
|
|
1256
1281
|
private readonly registrationExtension;
|
|
1257
1282
|
private readonly translateAdapter;
|
|
1258
1283
|
private translate;
|
|
1284
|
+
/** Translate with fallback: if key returns unchanged, use fallback instead */
|
|
1285
|
+
safeTranslate(key: string | undefined, fallback: string): string;
|
|
1259
1286
|
private readonly queryParamMap;
|
|
1260
1287
|
private companySlugInitialized;
|
|
1261
1288
|
readonly returnUrl: _angular_core.InputSignal<string>;
|
|
@@ -1345,6 +1372,8 @@ declare class UserFormComponent {
|
|
|
1345
1372
|
private readonly userFormExtension;
|
|
1346
1373
|
private readonly parentInjector;
|
|
1347
1374
|
private translate;
|
|
1375
|
+
/** Translate with fallback: if key returns unchanged, use fallback instead */
|
|
1376
|
+
safeTranslate(key: string | undefined, fallback: string): string;
|
|
1348
1377
|
private readonly routeParams;
|
|
1349
1378
|
private userLoadTriggered;
|
|
1350
1379
|
/** Loading state */
|
|
@@ -1410,6 +1439,8 @@ declare class UserListComponent {
|
|
|
1410
1439
|
readonly userDetailConfig: _flusys_ng_auth.IUserDetailViewConfig | null;
|
|
1411
1440
|
private readonly translateAdapter;
|
|
1412
1441
|
private translate;
|
|
1442
|
+
/** Translate with fallback: if key returns unchanged, use fallback instead */
|
|
1443
|
+
safeTranslate(key: string | undefined, fallback: string): string;
|
|
1413
1444
|
readonly users: _angular_core.Signal<IUser[]>;
|
|
1414
1445
|
readonly isLoading: _angular_core.Signal<boolean>;
|
|
1415
1446
|
readonly total: _angular_core.Signal<number>;
|