@flusys/ng-auth 1.0.1 → 1.1.0
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 +46 -3
- package/fesm2022/flusys-ng-auth.mjs +187 -90
- package/fesm2022/flusys-ng-auth.mjs.map +1 -1
- package/package.json +4 -4
- package/types/flusys-ng-auth.d.ts +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/ng-auth",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Authentication module for FLUSYS Angular applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,9 +8,9 @@
|
|
|
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": ">=1.0
|
|
12
|
-
"@flusys/ng-layout": ">=1.0
|
|
13
|
-
"@flusys/ng-shared": ">=1.0
|
|
11
|
+
"@flusys/ng-core": ">=1.1.0",
|
|
12
|
+
"@flusys/ng-layout": ">=1.1.0",
|
|
13
|
+
"@flusys/ng-shared": ">=1.1.0",
|
|
14
14
|
"@primeuix/themes": ">=1.0.0",
|
|
15
15
|
"primeicons": ">=7.0.0",
|
|
16
16
|
"primeng": ">=21.0.0"
|
|
@@ -517,6 +517,10 @@ declare const authGuard: CanActivateFn;
|
|
|
517
517
|
declare const guestGuard: CanActivateFn;
|
|
518
518
|
/** Protects routes requiring company feature to be enabled */
|
|
519
519
|
declare const companyFeatureGuard: CanActivateFn;
|
|
520
|
+
/** Protects routes requiring email feature to be enabled */
|
|
521
|
+
declare const emailFeatureGuard: CanActivateFn;
|
|
522
|
+
/** Protects routes requiring sign-up feature to be enabled */
|
|
523
|
+
declare const signUpFeatureGuard: CanActivateFn;
|
|
520
524
|
|
|
521
525
|
/**
|
|
522
526
|
* Auth Interceptor - Adds auth headers and cookie credentials to requests
|
|
@@ -918,6 +922,8 @@ declare class LoginPageComponent {
|
|
|
918
922
|
readonly selectionForm: _angular_forms_signals.FieldTree<ISelectionFormModel, string | number>;
|
|
919
923
|
readonly isSelectionFormValid: _angular_core.Signal<boolean>;
|
|
920
924
|
readonly companyFeatureEnabled: _angular_core.Signal<boolean>;
|
|
925
|
+
readonly emailFeatureEnabled: _angular_core.Signal<boolean>;
|
|
926
|
+
readonly signUpEnabled: _angular_core.Signal<boolean>;
|
|
921
927
|
private sessionId;
|
|
922
928
|
readonly companies: _angular_core.WritableSignal<ICompanyWithBranches[]>;
|
|
923
929
|
readonly userName: _angular_core.WritableSignal<string>;
|
|
@@ -1046,6 +1052,10 @@ declare class RegisterPageComponent {
|
|
|
1046
1052
|
readonly returnUrl: _angular_core.InputSignal<string>;
|
|
1047
1053
|
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
1048
1054
|
readonly companyFeatureEnabled: _angular_core.Signal<boolean>;
|
|
1055
|
+
readonly defaultCompanySlug: _angular_core.Signal<string | undefined>;
|
|
1056
|
+
readonly defaultBranchSlug: _angular_core.Signal<string | undefined>;
|
|
1057
|
+
readonly hasDefaultCompany: _angular_core.Signal<boolean>;
|
|
1058
|
+
readonly hasDefaultBranch: _angular_core.Signal<boolean>;
|
|
1049
1059
|
readonly userFormModel: _angular_core.WritableSignal<IUserFormModel$1>;
|
|
1050
1060
|
readonly userForm: _angular_forms_signals.FieldTree<IUserFormModel$1, string | number>;
|
|
1051
1061
|
readonly companyFormModel: _angular_core.WritableSignal<ICompanyFormModel>;
|
|
@@ -1270,5 +1280,5 @@ declare class UserCompanyPermissionDialogComponent {
|
|
|
1270
1280
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserCompanyPermissionDialogComponent, "lib-user-company-permission-dialog", never, { "visible": { "alias": "visible"; "required": true; "isSignal": true; }; "user": { "alias": "user"; "required": true; "isSignal": true; }; }, { "closed": "closed"; "permissionsChanged": "permissionsChanged"; }, never, never, true, never>;
|
|
1271
1281
|
}
|
|
1272
1282
|
|
|
1273
|
-
export { ADMINISTRATION_ROUTES, AUTH_ENDPOINTS, AUTH_ROUTES, AdministrationPageComponent, AuthApiService, AuthCompanyApiProviderAdapter, AuthInitService, AuthLayoutApiAdapter, AuthLayoutStateAdapter, AuthStateProviderAdapter, AuthStateService, AuthUserPermissionProviderAdapter, AuthUserProviderAdapter, BranchApiService, BranchFormComponent, BranchListComponent, CompanyApiService, CompanyFormComponent, CompanyListComponent, ForgotPasswordPageComponent, LoginPageComponent, PROFILE_ROUTES, ProfilePageComponent, RegisterPageComponent, ResetPasswordPageComponent, TokenRefreshStateService, UserApiService, UserBranchPermissionDialogComponent, UserCompanyPermissionDialogComponent, UserFormComponent, UserListComponent, UserPermissionApiService, VerifyEmailPageComponent, authGuard, authInterceptor, companyFeatureGuard, guestGuard, isCompanySelectionResponse, isEmailVerificationRequired, isEndpoint, isLoginResponse, provideAuthLayoutIntegration, provideAuthProviders, tokenRefreshInterceptor };
|
|
1283
|
+
export { ADMINISTRATION_ROUTES, AUTH_ENDPOINTS, AUTH_ROUTES, AdministrationPageComponent, AuthApiService, AuthCompanyApiProviderAdapter, AuthInitService, AuthLayoutApiAdapter, AuthLayoutStateAdapter, AuthStateProviderAdapter, AuthStateService, AuthUserPermissionProviderAdapter, AuthUserProviderAdapter, BranchApiService, BranchFormComponent, BranchListComponent, CompanyApiService, CompanyFormComponent, CompanyListComponent, ForgotPasswordPageComponent, LoginPageComponent, PROFILE_ROUTES, ProfilePageComponent, RegisterPageComponent, ResetPasswordPageComponent, TokenRefreshStateService, UserApiService, UserBranchPermissionDialogComponent, UserCompanyPermissionDialogComponent, UserFormComponent, UserListComponent, UserPermissionApiService, VerifyEmailPageComponent, authGuard, authInterceptor, companyFeatureGuard, emailFeatureGuard, guestGuard, isCompanySelectionResponse, isEmailVerificationRequired, isEndpoint, isLoginResponse, provideAuthLayoutIntegration, provideAuthProviders, signUpFeatureGuard, tokenRefreshInterceptor };
|
|
1274
1284
|
export type { AuthResponse, IAssignUserBranchRequest, IAssignUserCompanyRequest, IBatchOperationResponse, IBranch, IBranchInfo, IBranchSelectionInfo, IChangePasswordRequest, ICompany, ICompanyInfo, ICompanySelectionResponse, ICompanyWithBranches, ICreateBranchRequest, ICreateCompanyRequest, ICreateUserRequest, ILoginRequest, ILoginRequiresEmailVerification, ILoginResponse, IMeResponse, IPermissionItem, IRefreshTokenResponse, IRegistrationRequest, IRegistrationResponse, ISelectRequest, ISwitchCompanyRequest, IUpdateBranchRequest, IUpdateCompanyRequest, IUpdateUserRequest, IUser, IUserBranchPermission, IUserBranchesResponse, IUserCompaniesResponse, IUserCompanyPermission, IUserInfo };
|