@flusys/ng-auth 5.4.1 → 6.0.0-beta.1
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/fesm2022/flusys-ng-auth.mjs +1589 -1367
- package/fesm2022/flusys-ng-auth.mjs.map +1 -1
- package/package.json +10 -11
- package/types/flusys-ng-auth.d.ts +16 -26
package/package.json
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/ng-auth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-beta.1",
|
|
4
4
|
"description": "Authentication module for FLUSYS Angular applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@angular/common": ">=
|
|
8
|
-
"@angular/core": ">=
|
|
9
|
-
"@angular/forms": ">=
|
|
10
|
-
"@angular/router": ">=
|
|
11
|
-
"@flusys/ng-core": ">=
|
|
12
|
-
"@flusys/ng-layout": ">=
|
|
13
|
-
"@flusys/ng-shared": ">=
|
|
14
|
-
"@
|
|
15
|
-
"primeicons": ">=7.0.0",
|
|
16
|
-
"primeng": ">=21.0.0",
|
|
7
|
+
"@angular/common": ">=22.0.0",
|
|
8
|
+
"@angular/core": ">=22.0.0",
|
|
9
|
+
"@angular/forms": ">=22.0.0",
|
|
10
|
+
"@angular/router": ">=22.0.0",
|
|
11
|
+
"@flusys/ng-core": ">=6.0.0-beta.1",
|
|
12
|
+
"@flusys/ng-layout": ">=6.0.0-beta.1",
|
|
13
|
+
"@flusys/ng-shared": ">=6.0.0-beta.1",
|
|
14
|
+
"@flusys/ng-ui": ">=6.0.0-beta.1",
|
|
17
15
|
"rxjs": "^7.8.0"
|
|
18
16
|
},
|
|
19
17
|
"sideEffects": false,
|
|
@@ -28,6 +26,7 @@
|
|
|
28
26
|
"default": "./fesm2022/flusys-ng-auth.mjs"
|
|
29
27
|
}
|
|
30
28
|
},
|
|
29
|
+
"type": "module",
|
|
31
30
|
"dependencies": {
|
|
32
31
|
"tslib": "^2.3.0"
|
|
33
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISingleResponse, IMessageResponse, ApiResourceService, ICompanyApiProvider, IListResponse, ICompanyBasicInfo, IAuthStateProvider, IUserPermissionProvider, IUserBranchPermission as IUserBranchPermission$1, IUserProvider, IUserBasicInfo, ILogicNode, BaseFormComponent, IFormField, ITableAction, ITableColumn, IProfileRoleInfo, IProfileActionInfo } from '@flusys/ng-shared';
|
|
1
|
+
import { ISingleResponse, IMessageResponse, ApiResourceService, ICompanyApiProvider, IListResponse, ICompanyBasicInfo, IAuthStateProvider, IUserPermissionProvider, IUserBranchPermission as IUserBranchPermission$1, IUserProvider, IUserBasicInfo, ILogicNode, RouterTabItem, BaseFormComponent, IFormField, ITableAction, ITableColumn, IProfileRoleInfo, IProfileActionInfo } from '@flusys/ng-shared';
|
|
2
2
|
import * as rxjs from 'rxjs';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as _angular_core from '@angular/core';
|
|
@@ -770,14 +770,6 @@ declare function isEndpoint(url: string, endpoint: string): boolean;
|
|
|
770
770
|
|
|
771
771
|
declare const AUTH_MESSAGES: Record<string, string>;
|
|
772
772
|
|
|
773
|
-
interface ITab {
|
|
774
|
-
id: string;
|
|
775
|
-
labelKey: string;
|
|
776
|
-
icon: string;
|
|
777
|
-
route: string;
|
|
778
|
-
permission: string;
|
|
779
|
-
requiresCompanyFeature?: boolean;
|
|
780
|
-
}
|
|
781
773
|
/**
|
|
782
774
|
* Administration Page Component
|
|
783
775
|
* Unified administration page with tabs for:
|
|
@@ -788,12 +780,13 @@ interface ITab {
|
|
|
788
780
|
declare class AdministrationPageComponent {
|
|
789
781
|
private readonly appConfig;
|
|
790
782
|
private readonly permissionValidator;
|
|
783
|
+
private readonly translateService;
|
|
791
784
|
/** All available tabs */
|
|
792
785
|
private readonly allTabs;
|
|
793
786
|
/** Check if company feature is enabled */
|
|
794
787
|
readonly companyFeatureEnabled: _angular_core.Signal<boolean>;
|
|
795
788
|
/** Visible tabs based on config and permissions */
|
|
796
|
-
readonly visibleTabs: _angular_core.Signal<
|
|
789
|
+
readonly visibleTabs: _angular_core.Signal<RouterTabItem[]>;
|
|
797
790
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AdministrationPageComponent, never>;
|
|
798
791
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AdministrationPageComponent, "lib-administration-page", never, {}, {}, never, never, true, never>;
|
|
799
792
|
}
|
|
@@ -835,7 +828,7 @@ declare class BranchFormComponent {
|
|
|
835
828
|
/** Form model */
|
|
836
829
|
readonly formModel: _angular_core.WritableSignal<IBranchFormModel>;
|
|
837
830
|
/** Form with validation schema */
|
|
838
|
-
readonly branchForm: _angular_forms_signals.FieldTree<IBranchFormModel, string | number>;
|
|
831
|
+
readonly branchForm: _angular_forms_signals.FieldTree<IBranchFormModel, string | number, "writable">;
|
|
839
832
|
/** Check if form is valid */
|
|
840
833
|
readonly isFormValid: _angular_core.Signal<boolean>;
|
|
841
834
|
constructor();
|
|
@@ -854,11 +847,6 @@ declare class BranchFormComponent {
|
|
|
854
847
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BranchFormComponent, "lib-branch-form", never, {}, {}, never, never, true, never>;
|
|
855
848
|
}
|
|
856
849
|
|
|
857
|
-
/**
|
|
858
|
-
* Branch List Component
|
|
859
|
-
* Displays a list of branches for a company with CRUD operations.
|
|
860
|
-
* Defaults to current company context.
|
|
861
|
-
*/
|
|
862
850
|
declare class BranchListComponent {
|
|
863
851
|
readonly BRANCH_PERMISSIONS: {
|
|
864
852
|
readonly CREATE: "branch.create";
|
|
@@ -888,7 +876,7 @@ declare class BranchListComponent {
|
|
|
888
876
|
/** Total count from service */
|
|
889
877
|
readonly total: _angular_core.Signal<number>;
|
|
890
878
|
constructor();
|
|
891
|
-
loadBranches(): void;
|
|
879
|
+
loadBranches(page?: number, pageSize?: number): void;
|
|
892
880
|
onCompanyChange(): void;
|
|
893
881
|
onLazyLoad(event: {
|
|
894
882
|
first?: number | null;
|
|
@@ -946,7 +934,7 @@ declare class ForgotPasswordPageComponent {
|
|
|
946
934
|
readonly emailSent: _angular_core.WritableSignal<boolean>;
|
|
947
935
|
readonly submittedEmail: _angular_core.WritableSignal<string>;
|
|
948
936
|
readonly formModel: _angular_core.WritableSignal<IForgotPasswordFormModel>;
|
|
949
|
-
readonly forgotForm: _angular_forms_signals.FieldTree<IForgotPasswordFormModel, string | number>;
|
|
937
|
+
readonly forgotForm: _angular_forms_signals.FieldTree<IForgotPasswordFormModel, string | number, "writable">;
|
|
950
938
|
readonly isFormValid: _angular_core.Signal<boolean>;
|
|
951
939
|
onSubmit(): void;
|
|
952
940
|
private showEmailSent;
|
|
@@ -983,12 +971,12 @@ declare class LoginPageComponent {
|
|
|
983
971
|
private readonly emailErrorMessage;
|
|
984
972
|
private readonly passwordMinLength;
|
|
985
973
|
private readonly passwordErrorMessage;
|
|
986
|
-
readonly loginForm: _angular_forms_signals.FieldTree<ILoginFormModel, string | number>;
|
|
974
|
+
readonly loginForm: _angular_forms_signals.FieldTree<ILoginFormModel, string | number, "writable">;
|
|
987
975
|
readonly emailValidationError: _angular_core.Signal<string | null>;
|
|
988
976
|
readonly passwordValidationError: _angular_core.Signal<string | null>;
|
|
989
977
|
readonly isLoginFormValid: _angular_core.Signal<boolean>;
|
|
990
978
|
readonly selectionFormModel: _angular_core.WritableSignal<ISelectionFormModel>;
|
|
991
|
-
readonly selectionForm: _angular_forms_signals.FieldTree<ISelectionFormModel, string | number>;
|
|
979
|
+
readonly selectionForm: _angular_forms_signals.FieldTree<ISelectionFormModel, string | number, "writable">;
|
|
992
980
|
readonly isSelectionFormValid: _angular_core.Signal<boolean>;
|
|
993
981
|
readonly companyFeatureEnabled: _angular_core.Signal<boolean>;
|
|
994
982
|
readonly emailFeatureEnabled: _angular_core.Signal<boolean>;
|
|
@@ -1064,7 +1052,7 @@ declare class ProfilePageComponent {
|
|
|
1064
1052
|
readonly showBottomRow: _angular_core.Signal<boolean>;
|
|
1065
1053
|
private readonly originalFormModel;
|
|
1066
1054
|
readonly formModel: _angular_core.WritableSignal<IProfileFormModel>;
|
|
1067
|
-
readonly formTree: _angular_forms_signals.FieldTree<IProfileFormModel, string | number>;
|
|
1055
|
+
readonly formTree: _angular_forms_signals.FieldTree<IProfileFormModel, string | number, "writable">;
|
|
1068
1056
|
readonly isFormValid: _angular_core.Signal<boolean>;
|
|
1069
1057
|
readonly isFormDirty: _angular_core.Signal<boolean>;
|
|
1070
1058
|
updateExtraField(key: string, value: unknown): void;
|
|
@@ -1075,6 +1063,7 @@ declare class ProfilePageComponent {
|
|
|
1075
1063
|
private readonly parentInjector;
|
|
1076
1064
|
getFieldInjector(field: IProfileExtraField): Injector;
|
|
1077
1065
|
readonly passwordModel: _angular_core.WritableSignal<IPasswordFormModel>;
|
|
1066
|
+
readonly visiblePasswords: _angular_core.WritableSignal<Record<keyof IPasswordFormModel, boolean>>;
|
|
1078
1067
|
readonly isPasswordLoading: _angular_core.WritableSignal<boolean>;
|
|
1079
1068
|
readonly isPasswordFormValid: _angular_core.Signal<boolean>;
|
|
1080
1069
|
readonly passwordsMatch: _angular_core.Signal<boolean>;
|
|
@@ -1097,6 +1086,7 @@ declare class ProfilePageComponent {
|
|
|
1097
1086
|
contentType: string;
|
|
1098
1087
|
}): void;
|
|
1099
1088
|
onSubmit(): void;
|
|
1089
|
+
togglePasswordVisibility(field: keyof IPasswordFormModel): void;
|
|
1100
1090
|
updatePasswordField(field: keyof IPasswordFormModel, value: string): void;
|
|
1101
1091
|
onChangePassword(): void;
|
|
1102
1092
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProfilePageComponent, never>;
|
|
@@ -1145,9 +1135,9 @@ declare class RegisterPageComponent {
|
|
|
1145
1135
|
readonly passwordMinLength: _angular_core.Signal<number>;
|
|
1146
1136
|
private readonly passwordErrorMessage;
|
|
1147
1137
|
readonly userFormModel: _angular_core.WritableSignal<IUserFormModel$1>;
|
|
1148
|
-
readonly userForm: _angular_forms_signals.FieldTree<IUserFormModel$1, string | number>;
|
|
1138
|
+
readonly userForm: _angular_forms_signals.FieldTree<IUserFormModel$1, string | number, "writable">;
|
|
1149
1139
|
readonly companyFormModel: _angular_core.WritableSignal<ICompanyFormModel>;
|
|
1150
|
-
readonly companyForm: _angular_forms_signals.FieldTree<ICompanyFormModel, string | number>;
|
|
1140
|
+
readonly companyForm: _angular_forms_signals.FieldTree<ICompanyFormModel, string | number, "writable">;
|
|
1151
1141
|
readonly emailValidationError: _angular_core.Signal<string | null>;
|
|
1152
1142
|
readonly passwordValidationError: _angular_core.Signal<string | null>;
|
|
1153
1143
|
readonly extraFieldsValidationError: _angular_core.Signal<string | null>;
|
|
@@ -1183,7 +1173,7 @@ declare class ResetPasswordPageComponent {
|
|
|
1183
1173
|
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
1184
1174
|
readonly pageState: _angular_core.WritableSignal<PageState$1>;
|
|
1185
1175
|
readonly formModel: _angular_core.WritableSignal<IResetPasswordFormModel>;
|
|
1186
|
-
readonly resetForm: _angular_forms_signals.FieldTree<IResetPasswordFormModel, string | number>;
|
|
1176
|
+
readonly resetForm: _angular_forms_signals.FieldTree<IResetPasswordFormModel, string | number, "writable">;
|
|
1187
1177
|
readonly passwordMismatch: _angular_core.Signal<boolean>;
|
|
1188
1178
|
readonly canSubmit: _angular_core.Signal<boolean>;
|
|
1189
1179
|
constructor();
|
|
@@ -1222,7 +1212,7 @@ declare class UserFormComponent {
|
|
|
1222
1212
|
readonly currentCompanyName: _angular_core.Signal<string>;
|
|
1223
1213
|
readonly currentBranchName: _angular_core.Signal<string>;
|
|
1224
1214
|
readonly formModel: _angular_core.WritableSignal<IUserFormModel>;
|
|
1225
|
-
readonly formTree: _angular_forms_signals.FieldTree<IUserFormModel, string | number>;
|
|
1215
|
+
readonly formTree: _angular_forms_signals.FieldTree<IUserFormModel, string | number, "writable">;
|
|
1226
1216
|
readonly isLoadingExtraFields: _angular_core.WritableSignal<boolean>;
|
|
1227
1217
|
readonly extraFieldsModel: _angular_core.WritableSignal<Record<string, unknown>>;
|
|
1228
1218
|
readonly originalExtraFieldsModel: _angular_core.WritableSignal<Record<string, unknown>>;
|
|
@@ -1319,7 +1309,7 @@ declare class VerifyEmailPageComponent {
|
|
|
1319
1309
|
readonly resendSuccess: _angular_core.WritableSignal<boolean>;
|
|
1320
1310
|
readonly submittedEmail: _angular_core.WritableSignal<string>;
|
|
1321
1311
|
readonly resendFormModel: _angular_core.WritableSignal<IResendFormModel>;
|
|
1322
|
-
readonly resendForm: _angular_forms_signals.FieldTree<IResendFormModel, string | number>;
|
|
1312
|
+
readonly resendForm: _angular_forms_signals.FieldTree<IResendFormModel, string | number, "writable">;
|
|
1323
1313
|
readonly isResendFormValid: _angular_core.Signal<boolean>;
|
|
1324
1314
|
constructor();
|
|
1325
1315
|
private verifyEmail;
|