@flusys/ng-auth 3.0.0 → 4.0.0-lts
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 +212 -16
- package/fesm2022/flusys-ng-auth.mjs +1747 -929
- package/fesm2022/flusys-ng-auth.mjs.map +1 -1
- package/package.json +6 -5
- package/types/flusys-ng-auth.d.ts +124 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/ng-auth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-lts",
|
|
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": ">=
|
|
12
|
-
"@flusys/ng-layout": ">=
|
|
13
|
-
"@flusys/ng-shared": ">=
|
|
11
|
+
"@flusys/ng-core": ">=4.0.0-lts",
|
|
12
|
+
"@flusys/ng-layout": ">=4.0.0-lts",
|
|
13
|
+
"@flusys/ng-shared": ">=4.0.0-lts",
|
|
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",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IMessageResponse, ApiResourceService, ISingleResponse, ICompanyApiProvider, IListResponse, ICompanyBasicInfo, IAuthStateProvider, IUserPermissionProvider, IUserProvider, IUserBasicInfo, ILogicNode, IProfileRoleInfo, IProfileActionInfo
|
|
1
|
+
import { IMessageResponse, ApiResourceService, ISingleResponse, ICompanyApiProvider, IListResponse, ICompanyBasicInfo, IAuthStateProvider, IUserPermissionProvider, IUserProvider, IUserBasicInfo, ILogicNode, 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';
|
|
@@ -386,6 +386,7 @@ declare class AuthStateService {
|
|
|
386
386
|
private readonly appConfig;
|
|
387
387
|
private readonly router;
|
|
388
388
|
private readonly platform;
|
|
389
|
+
private readonly translateAdapter;
|
|
389
390
|
private readonly _user;
|
|
390
391
|
private readonly _accessToken;
|
|
391
392
|
private readonly _tokenExpiresAt;
|
|
@@ -643,6 +644,8 @@ declare function provideAuthProviders(): Provider[];
|
|
|
643
644
|
interface IEmailValidationConfig {
|
|
644
645
|
pattern?: RegExp;
|
|
645
646
|
message?: string;
|
|
647
|
+
messageKey?: string;
|
|
648
|
+
messageParam?: Record<string, string | number>;
|
|
646
649
|
}
|
|
647
650
|
interface IPasswordValidationConfig {
|
|
648
651
|
minLength?: number;
|
|
@@ -653,6 +656,8 @@ interface IPasswordValidationConfig {
|
|
|
653
656
|
requireSpecialChars?: boolean;
|
|
654
657
|
pattern?: RegExp;
|
|
655
658
|
message?: string;
|
|
659
|
+
messageKey?: string;
|
|
660
|
+
messageParam?: Record<string, string | number>;
|
|
656
661
|
}
|
|
657
662
|
interface IAuthValidationConfig {
|
|
658
663
|
email?: IEmailValidationConfig;
|
|
@@ -668,16 +673,21 @@ declare const REGISTRATION_FIELD_CONTEXT: InjectionToken<IRegistrationFieldTempl
|
|
|
668
673
|
interface IRegistrationExtraField {
|
|
669
674
|
key: string;
|
|
670
675
|
label: string;
|
|
676
|
+
labelKey?: string;
|
|
671
677
|
type: 'text' | 'number' | 'select' | 'checkbox' | 'textarea' | 'date' | 'template';
|
|
672
678
|
placeholder?: string;
|
|
679
|
+
placeholderKey?: string;
|
|
673
680
|
required?: boolean;
|
|
674
681
|
defaultValue?: unknown;
|
|
675
682
|
options?: Array<{
|
|
676
683
|
label: string;
|
|
684
|
+
labelKey?: string;
|
|
677
685
|
value: unknown;
|
|
678
686
|
}>;
|
|
679
687
|
pattern?: RegExp;
|
|
680
688
|
validationMessage?: string;
|
|
689
|
+
validationMessageKey?: string;
|
|
690
|
+
validationMessageParam?: Record<string, string | number>;
|
|
681
691
|
order?: number;
|
|
682
692
|
containerClass?: string;
|
|
683
693
|
template?: TemplateRef<IRegistrationFieldTemplateContext>;
|
|
@@ -693,6 +703,7 @@ declare const AUTH_REGISTRATION_EXTENSION: InjectionToken<IRegistrationExtension
|
|
|
693
703
|
interface IUserListExtraColumn {
|
|
694
704
|
key: string;
|
|
695
705
|
header: string;
|
|
706
|
+
headerKey?: string;
|
|
696
707
|
field?: string;
|
|
697
708
|
template?: TemplateRef<{
|
|
698
709
|
$implicit: IUser;
|
|
@@ -705,6 +716,7 @@ interface IUserListExtraColumn {
|
|
|
705
716
|
interface IUserListExtraAction {
|
|
706
717
|
key: string;
|
|
707
718
|
label: string;
|
|
719
|
+
labelKey?: string;
|
|
708
720
|
icon: string;
|
|
709
721
|
severity?: 'info' | 'success' | 'warn' | 'danger' | 'secondary' | 'contrast';
|
|
710
722
|
permission?: string;
|
|
@@ -722,6 +734,7 @@ declare const AUTH_USER_LIST_EXTENSION: InjectionToken<IUserListExtensionProvide
|
|
|
722
734
|
interface IProfileExtraSection {
|
|
723
735
|
key: string;
|
|
724
736
|
title: string;
|
|
737
|
+
titleKey?: string;
|
|
725
738
|
icon?: string;
|
|
726
739
|
order?: number;
|
|
727
740
|
component?: Type<unknown>;
|
|
@@ -741,16 +754,21 @@ declare const PROFILE_FIELD_CONTEXT: InjectionToken<IProfileFieldTemplateContext
|
|
|
741
754
|
interface IProfileExtraField {
|
|
742
755
|
key: string;
|
|
743
756
|
label: string;
|
|
757
|
+
labelKey?: string;
|
|
744
758
|
type: 'text' | 'number' | 'select' | 'checkbox' | 'textarea' | 'date' | 'template';
|
|
745
759
|
placeholder?: string;
|
|
760
|
+
placeholderKey?: string;
|
|
746
761
|
editable?: boolean;
|
|
747
762
|
required?: boolean;
|
|
748
763
|
options?: Array<{
|
|
749
764
|
label: string;
|
|
765
|
+
labelKey?: string;
|
|
750
766
|
value: unknown;
|
|
751
767
|
}>;
|
|
752
768
|
pattern?: RegExp;
|
|
753
769
|
validationMessage?: string;
|
|
770
|
+
validationMessageKey?: string;
|
|
771
|
+
validationMessageParam?: Record<string, string | number>;
|
|
754
772
|
order?: number;
|
|
755
773
|
sectionKey?: string;
|
|
756
774
|
template?: TemplateRef<IProfileFieldTemplateContext>;
|
|
@@ -765,6 +783,41 @@ interface IProfileExtensionProvider {
|
|
|
765
783
|
validateExtraFields?(data: Record<string, unknown>): string | null;
|
|
766
784
|
}
|
|
767
785
|
declare const AUTH_PROFILE_EXTENSION: InjectionToken<IProfileExtensionProvider>;
|
|
786
|
+
interface IUserFormFieldTemplateContext {
|
|
787
|
+
field: IUserFormExtraField;
|
|
788
|
+
value: unknown;
|
|
789
|
+
updateValue: (value: unknown) => void;
|
|
790
|
+
}
|
|
791
|
+
declare const USER_FORM_FIELD_CONTEXT: InjectionToken<IUserFormFieldTemplateContext>;
|
|
792
|
+
interface IUserFormExtraField {
|
|
793
|
+
key: string;
|
|
794
|
+
label: string;
|
|
795
|
+
labelKey?: string;
|
|
796
|
+
type: 'text' | 'number' | 'select' | 'checkbox' | 'textarea' | 'date' | 'template';
|
|
797
|
+
placeholder?: string;
|
|
798
|
+
placeholderKey?: string;
|
|
799
|
+
required?: boolean;
|
|
800
|
+
options?: Array<{
|
|
801
|
+
label: string;
|
|
802
|
+
labelKey?: string;
|
|
803
|
+
value: unknown;
|
|
804
|
+
}>;
|
|
805
|
+
pattern?: RegExp;
|
|
806
|
+
validationMessage?: string;
|
|
807
|
+
validationMessageKey?: string;
|
|
808
|
+
validationMessageParam?: Record<string, string | number>;
|
|
809
|
+
order?: number;
|
|
810
|
+
template?: TemplateRef<IUserFormFieldTemplateContext>;
|
|
811
|
+
component?: Type<unknown>;
|
|
812
|
+
injector?: Injector;
|
|
813
|
+
}
|
|
814
|
+
interface IUserFormExtensionProvider {
|
|
815
|
+
getExtraFields?(): IUserFormExtraField[];
|
|
816
|
+
getExtraFieldValues?(userId: string): Observable<Record<string, unknown>>;
|
|
817
|
+
saveExtraFieldValues?(userId: string, data: Record<string, unknown>): Observable<void>;
|
|
818
|
+
validateExtraFields?(data: Record<string, unknown>): string | null;
|
|
819
|
+
}
|
|
820
|
+
declare const AUTH_USER_FORM_EXTENSION: InjectionToken<IUserFormExtensionProvider>;
|
|
768
821
|
type UserDetailViewMode = 'dialog' | 'sidebar' | 'page';
|
|
769
822
|
interface IUserDetailViewConfig {
|
|
770
823
|
viewMode: UserDetailViewMode;
|
|
@@ -774,6 +827,7 @@ interface IUserDetailViewConfig {
|
|
|
774
827
|
tabs?: Array<{
|
|
775
828
|
key: string;
|
|
776
829
|
label: string;
|
|
830
|
+
labelKey?: string;
|
|
777
831
|
icon?: string;
|
|
778
832
|
component?: Type<unknown>;
|
|
779
833
|
template?: TemplateRef<{
|
|
@@ -808,9 +862,11 @@ declare const AUTH_ENDPOINTS: {
|
|
|
808
862
|
/** Check if a URL matches a specific endpoint */
|
|
809
863
|
declare function isEndpoint(url: string, endpoint: string): boolean;
|
|
810
864
|
|
|
865
|
+
declare const AUTH_MESSAGES: Record<string, string>;
|
|
866
|
+
|
|
811
867
|
interface ITab {
|
|
812
868
|
id: string;
|
|
813
|
-
|
|
869
|
+
labelKey: string;
|
|
814
870
|
icon: string;
|
|
815
871
|
route: string;
|
|
816
872
|
permission: string;
|
|
@@ -832,8 +888,6 @@ declare class AdministrationPageComponent {
|
|
|
832
888
|
readonly companyFeatureEnabled: _angular_core.Signal<boolean>;
|
|
833
889
|
/** Visible tabs based on config and permissions */
|
|
834
890
|
readonly visibleTabs: _angular_core.Signal<ITab[]>;
|
|
835
|
-
/** Dynamic subtitle based on visible tabs */
|
|
836
|
-
readonly subtitle: _angular_core.Signal<string>;
|
|
837
891
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AdministrationPageComponent, never>;
|
|
838
892
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AdministrationPageComponent, "lib-administration-page", never, {}, {}, never, never, true, never>;
|
|
839
893
|
}
|
|
@@ -860,6 +914,8 @@ declare class BranchFormComponent {
|
|
|
860
914
|
private readonly branchService;
|
|
861
915
|
private readonly companyService;
|
|
862
916
|
private readonly authState;
|
|
917
|
+
private readonly translateAdapter;
|
|
918
|
+
private translate;
|
|
863
919
|
private readonly routeParams;
|
|
864
920
|
private readonly queryParams;
|
|
865
921
|
/** Loading state */
|
|
@@ -911,6 +967,8 @@ declare class BranchListComponent {
|
|
|
911
967
|
private readonly branchService;
|
|
912
968
|
private readonly companyService;
|
|
913
969
|
private readonly authState;
|
|
970
|
+
private readonly translateAdapter;
|
|
971
|
+
private translate;
|
|
914
972
|
private readonly queryParamMap;
|
|
915
973
|
private initialized;
|
|
916
974
|
/** Selected company ID (signal for zoneless change detection) */
|
|
@@ -956,6 +1014,8 @@ declare class CompanyFormComponent {
|
|
|
956
1014
|
private readonly route;
|
|
957
1015
|
private readonly messageService;
|
|
958
1016
|
private readonly companyService;
|
|
1017
|
+
private readonly translateAdapter;
|
|
1018
|
+
private translate;
|
|
959
1019
|
private readonly routeParams;
|
|
960
1020
|
/** Loading state */
|
|
961
1021
|
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
@@ -1002,6 +1062,8 @@ declare class CompanyListComponent {
|
|
|
1002
1062
|
private readonly messageService;
|
|
1003
1063
|
private readonly confirmationService;
|
|
1004
1064
|
private readonly companyService;
|
|
1065
|
+
private readonly translateAdapter;
|
|
1066
|
+
private translate;
|
|
1005
1067
|
/** Companies from service */
|
|
1006
1068
|
readonly companies: _angular_core.Signal<ICompany[]>;
|
|
1007
1069
|
/** Loading state from service */
|
|
@@ -1027,6 +1089,8 @@ declare class ForgotPasswordPageComponent {
|
|
|
1027
1089
|
private readonly destroyRef;
|
|
1028
1090
|
private readonly messageService;
|
|
1029
1091
|
private readonly authApi;
|
|
1092
|
+
private readonly translateAdapter;
|
|
1093
|
+
private translate;
|
|
1030
1094
|
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
1031
1095
|
readonly emailSent: _angular_core.WritableSignal<boolean>;
|
|
1032
1096
|
readonly submittedEmail: _angular_core.WritableSignal<string>;
|
|
@@ -1057,7 +1121,9 @@ declare class LoginPageComponent {
|
|
|
1057
1121
|
private readonly messageService;
|
|
1058
1122
|
private readonly authApi;
|
|
1059
1123
|
private readonly authState;
|
|
1124
|
+
private readonly translateAdapter;
|
|
1060
1125
|
private readonly validationConfig;
|
|
1126
|
+
private translate;
|
|
1061
1127
|
readonly returnUrl: _angular_core.InputSignal<string>;
|
|
1062
1128
|
readonly currentStep: _angular_core.WritableSignal<LoginStep>;
|
|
1063
1129
|
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
@@ -1109,9 +1175,14 @@ declare class ProfilePageComponent {
|
|
|
1109
1175
|
private readonly userService;
|
|
1110
1176
|
private readonly authApiService;
|
|
1111
1177
|
private readonly fileUrlService;
|
|
1112
|
-
private readonly
|
|
1178
|
+
private readonly fileProvider;
|
|
1113
1179
|
private readonly permissionProvider;
|
|
1114
1180
|
private readonly profileExtension;
|
|
1181
|
+
private readonly userFormExtension;
|
|
1182
|
+
private readonly translateAdapter;
|
|
1183
|
+
private translate;
|
|
1184
|
+
/** Translate with fallback: if key returns unchanged, use fallback instead */
|
|
1185
|
+
safeTranslate(key: string | undefined, fallback: string): string;
|
|
1115
1186
|
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
1116
1187
|
readonly isLoadingPermissions: _angular_core.WritableSignal<boolean>;
|
|
1117
1188
|
readonly isLoadingExtraFields: _angular_core.WritableSignal<boolean>;
|
|
@@ -1122,12 +1193,12 @@ declare class ProfilePageComponent {
|
|
|
1122
1193
|
private readonly _userActions;
|
|
1123
1194
|
readonly userActions: _angular_core.Signal<IProfileActionInfo[]>;
|
|
1124
1195
|
readonly extraSections: _angular_core.Signal<IProfileExtraSection[]>;
|
|
1125
|
-
readonly extraFields: _angular_core.Signal<IProfileExtraField[]>;
|
|
1126
|
-
readonly viewOnlyFields: _angular_core.Signal<IProfileExtraField[]>;
|
|
1127
1196
|
readonly editableFields: _angular_core.Signal<IProfileExtraField[]>;
|
|
1197
|
+
readonly viewOnlyFields: _angular_core.Signal<IUserFormExtraField[]>;
|
|
1128
1198
|
readonly hasExtraContent: _angular_core.Signal<boolean>;
|
|
1129
1199
|
readonly extraFieldsModel: _angular_core.WritableSignal<Record<string, unknown>>;
|
|
1130
1200
|
readonly originalExtraFieldsModel: _angular_core.WritableSignal<Record<string, unknown>>;
|
|
1201
|
+
readonly adminFieldsModel: _angular_core.WritableSignal<Record<string, unknown>>;
|
|
1131
1202
|
readonly isExtraFieldsDirty: _angular_core.Signal<boolean>;
|
|
1132
1203
|
readonly extraFieldsValidationError: _angular_core.Signal<string | null>;
|
|
1133
1204
|
readonly userEmail: _angular_core.Signal<string>;
|
|
@@ -1149,7 +1220,8 @@ declare class ProfilePageComponent {
|
|
|
1149
1220
|
readonly isFormDirty: _angular_core.Signal<boolean>;
|
|
1150
1221
|
updateExtraField(key: string, value: unknown): void;
|
|
1151
1222
|
getExtraFieldValue(key: string): unknown;
|
|
1152
|
-
|
|
1223
|
+
getAdminFieldValue(key: string): unknown;
|
|
1224
|
+
getSelectLabel(field: IProfileExtraField | IUserFormExtraField, value: unknown): string;
|
|
1153
1225
|
getFieldTemplateContext(field: IProfileExtraField): IProfileFieldTemplateContext;
|
|
1154
1226
|
private readonly parentInjector;
|
|
1155
1227
|
getFieldInjector(field: IProfileExtraField): Injector;
|
|
@@ -1157,8 +1229,13 @@ declare class ProfilePageComponent {
|
|
|
1157
1229
|
readonly isPasswordLoading: _angular_core.WritableSignal<boolean>;
|
|
1158
1230
|
readonly isPasswordFormValid: _angular_core.Signal<boolean>;
|
|
1159
1231
|
readonly passwordsMatch: _angular_core.Signal<boolean>;
|
|
1160
|
-
readonly
|
|
1161
|
-
|
|
1232
|
+
readonly profileUploadOptions: {
|
|
1233
|
+
folderPath: string;
|
|
1234
|
+
compress: boolean;
|
|
1235
|
+
maxWidth: number;
|
|
1236
|
+
maxHeight: number;
|
|
1237
|
+
isPrivate: boolean;
|
|
1238
|
+
};
|
|
1162
1239
|
constructor();
|
|
1163
1240
|
private loadUserData;
|
|
1164
1241
|
private loadPermissions;
|
|
@@ -1202,6 +1279,10 @@ declare class RegisterPageComponent {
|
|
|
1202
1279
|
private readonly router;
|
|
1203
1280
|
private readonly validationConfig;
|
|
1204
1281
|
private readonly registrationExtension;
|
|
1282
|
+
private readonly translateAdapter;
|
|
1283
|
+
private translate;
|
|
1284
|
+
/** Translate with fallback: if key returns unchanged, use fallback instead */
|
|
1285
|
+
safeTranslate(key: string | undefined, fallback: string): string;
|
|
1205
1286
|
private readonly queryParamMap;
|
|
1206
1287
|
private companySlugInitialized;
|
|
1207
1288
|
readonly returnUrl: _angular_core.InputSignal<string>;
|
|
@@ -1247,6 +1328,8 @@ declare class ResetPasswordPageComponent {
|
|
|
1247
1328
|
private readonly route;
|
|
1248
1329
|
private readonly messageService;
|
|
1249
1330
|
private readonly authApi;
|
|
1331
|
+
private readonly translateAdapter;
|
|
1332
|
+
private translate;
|
|
1250
1333
|
private readonly queryParams;
|
|
1251
1334
|
private tokenInitialized;
|
|
1252
1335
|
private token;
|
|
@@ -1285,6 +1368,12 @@ declare class UserFormComponent {
|
|
|
1285
1368
|
private readonly userService;
|
|
1286
1369
|
private readonly permissionService;
|
|
1287
1370
|
private readonly authState;
|
|
1371
|
+
private readonly translateAdapter;
|
|
1372
|
+
private readonly userFormExtension;
|
|
1373
|
+
private readonly parentInjector;
|
|
1374
|
+
private translate;
|
|
1375
|
+
/** Translate with fallback: if key returns unchanged, use fallback instead */
|
|
1376
|
+
safeTranslate(key: string | undefined, fallback: string): string;
|
|
1288
1377
|
private readonly routeParams;
|
|
1289
1378
|
private userLoadTriggered;
|
|
1290
1379
|
/** Loading state */
|
|
@@ -1303,14 +1392,27 @@ declare class UserFormComponent {
|
|
|
1303
1392
|
readonly formModel: _angular_core.WritableSignal<IUserFormModel>;
|
|
1304
1393
|
/** Form with validation schema */
|
|
1305
1394
|
readonly formTree: _angular_forms_signals.FieldTree<IUserFormModel, string | number>;
|
|
1395
|
+
readonly isLoadingExtraFields: _angular_core.WritableSignal<boolean>;
|
|
1396
|
+
readonly extraFieldsModel: _angular_core.WritableSignal<Record<string, unknown>>;
|
|
1397
|
+
readonly originalExtraFieldsModel: _angular_core.WritableSignal<Record<string, unknown>>;
|
|
1398
|
+
readonly extraFields: _angular_core.Signal<IUserFormExtraField[]>;
|
|
1399
|
+
readonly hasExtraFields: _angular_core.Signal<boolean>;
|
|
1400
|
+
readonly extraFieldsValidationError: _angular_core.Signal<string | null>;
|
|
1401
|
+
readonly isExtraFieldsDirty: _angular_core.Signal<boolean>;
|
|
1402
|
+
updateExtraField(key: string, value: unknown): void;
|
|
1403
|
+
getExtraFieldValue(key: string): unknown;
|
|
1404
|
+
getFieldTemplateContext(field: IUserFormExtraField): IUserFormFieldTemplateContext;
|
|
1405
|
+
getFieldInjector(field: IUserFormExtraField): Injector;
|
|
1306
1406
|
/** Check if form is valid */
|
|
1307
1407
|
readonly isFormValid: _angular_core.Signal<boolean>;
|
|
1308
1408
|
constructor();
|
|
1309
1409
|
loadUser(id: string): void;
|
|
1410
|
+
private loadExtraFields;
|
|
1310
1411
|
private toFormModel;
|
|
1311
1412
|
onSubmit(): void;
|
|
1312
1413
|
private updateUser;
|
|
1313
1414
|
private createUser;
|
|
1415
|
+
private saveExtraFieldsForNewUser;
|
|
1314
1416
|
private onSaveSuccess;
|
|
1315
1417
|
/**
|
|
1316
1418
|
* Assign user to current company and branch
|
|
@@ -1335,6 +1437,10 @@ declare class UserListComponent {
|
|
|
1335
1437
|
private readonly userService;
|
|
1336
1438
|
private readonly userListExtension;
|
|
1337
1439
|
readonly userDetailConfig: _flusys_ng_auth.IUserDetailViewConfig | null;
|
|
1440
|
+
private readonly translateAdapter;
|
|
1441
|
+
private translate;
|
|
1442
|
+
/** Translate with fallback: if key returns unchanged, use fallback instead */
|
|
1443
|
+
safeTranslate(key: string | undefined, fallback: string): string;
|
|
1338
1444
|
readonly users: _angular_core.Signal<IUser[]>;
|
|
1339
1445
|
readonly isLoading: _angular_core.Signal<boolean>;
|
|
1340
1446
|
readonly total: _angular_core.Signal<number>;
|
|
@@ -1379,6 +1485,8 @@ declare class VerifyEmailPageComponent {
|
|
|
1379
1485
|
private readonly route;
|
|
1380
1486
|
private readonly messageService;
|
|
1381
1487
|
private readonly authApi;
|
|
1488
|
+
private readonly translateAdapter;
|
|
1489
|
+
private translate;
|
|
1382
1490
|
private readonly queryParams;
|
|
1383
1491
|
private verificationTriggered;
|
|
1384
1492
|
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
@@ -1405,6 +1513,8 @@ declare class UserBranchPermissionDialogComponent {
|
|
|
1405
1513
|
private readonly branchApi;
|
|
1406
1514
|
private readonly permissionApi;
|
|
1407
1515
|
private readonly messageService;
|
|
1516
|
+
private readonly translateAdapter;
|
|
1517
|
+
private t;
|
|
1408
1518
|
readonly visible: _angular_core.InputSignal<boolean>;
|
|
1409
1519
|
readonly user: _angular_core.InputSignal<IUser | null>;
|
|
1410
1520
|
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
@@ -1435,6 +1545,8 @@ declare class UserCompanyPermissionDialogComponent {
|
|
|
1435
1545
|
private readonly companyApi;
|
|
1436
1546
|
private readonly permissionApi;
|
|
1437
1547
|
private readonly messageService;
|
|
1548
|
+
private readonly translateAdapter;
|
|
1549
|
+
private t;
|
|
1438
1550
|
readonly visible: _angular_core.InputSignal<boolean>;
|
|
1439
1551
|
readonly user: _angular_core.InputSignal<IUser | null>;
|
|
1440
1552
|
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
@@ -1451,5 +1563,5 @@ declare class UserCompanyPermissionDialogComponent {
|
|
|
1451
1563
|
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>;
|
|
1452
1564
|
}
|
|
1453
1565
|
|
|
1454
|
-
export { ADMINISTRATION_ROUTES, AUTH_ENDPOINTS, AUTH_PROFILE_EXTENSION, AUTH_REGISTRATION_EXTENSION, AUTH_ROUTES, AUTH_USER_DETAIL_CONFIG, AUTH_USER_LIST_EXTENSION, AUTH_VALIDATION_CONFIG, AdministrationPageComponent, AuthApiService, AuthCompanyApiProviderAdapter, AuthInitService, AuthLayoutApiAdapter, AuthLayoutStateAdapter, AuthStateProviderAdapter, AuthStateService, AuthUserPermissionProviderAdapter, AuthUserProviderAdapter, BranchApiService, BranchFormComponent, BranchListComponent, CompanyApiService, CompanyFormComponent, CompanyListComponent, ForgotPasswordPageComponent, LoginPageComponent, PROFILE_FIELD_CONTEXT, PROFILE_ROUTES, ProfilePageComponent, REGISTRATION_FIELD_CONTEXT, RegisterPageComponent, ResetPasswordPageComponent, TokenRefreshStateService, UserApiService, UserBranchPermissionDialogComponent, UserCompanyPermissionDialogComponent, UserFormComponent, UserListComponent, UserPermissionApiService, VerifyEmailPageComponent, authGuard, authInterceptor, companyFeatureGuard, emailFeatureGuard, guestGuard, isCompanySelectionResponse, isEmailVerificationRequired, isEndpoint, isLoginResponse, provideAuthLayoutIntegration, provideAuthProviders, signUpFeatureGuard, tokenRefreshInterceptor, validateEmail, validatePassword };
|
|
1455
|
-
export type { AuthResponse, IAssignUserBranchRequest, IAssignUserCompanyRequest, IAuthValidationConfig, IBatchOperationResponse, IBranch, IBranchInfo, IBranchSelectionInfo, IChangePasswordRequest, ICompany, ICompanyInfo, ICompanySelectionResponse, ICompanyWithBranches, ICreateBranchRequest, ICreateCompanyRequest, ICreateUserRequest, IEmailValidationConfig, ILoginRequest, ILoginRequiresEmailVerification, ILoginResponse, IMeResponse, IPasswordValidationConfig, IPermissionItem, IProfileExtensionProvider, IProfileExtraField, IProfileExtraSection, IProfileFieldTemplateContext, IRefreshTokenResponse, IRegistrationExtensionProvider, IRegistrationExtraField, IRegistrationFieldTemplateContext, IRegistrationRequest, IRegistrationResponse, ISelectRequest, ISwitchCompanyRequest, IUpdateBranchRequest, IUpdateCompanyRequest, IUpdateUserRequest, IUser, IUserBranchPermission, IUserBranchesResponse, IUserCompaniesResponse, IUserCompanyPermission, IUserDetailViewConfig, IUserInfo, IUserListExtensionProvider, IUserListExtraAction, IUserListExtraColumn, UserDetailViewMode };
|
|
1566
|
+
export { ADMINISTRATION_ROUTES, AUTH_ENDPOINTS, AUTH_MESSAGES, AUTH_PROFILE_EXTENSION, AUTH_REGISTRATION_EXTENSION, AUTH_ROUTES, AUTH_USER_DETAIL_CONFIG, AUTH_USER_FORM_EXTENSION, AUTH_USER_LIST_EXTENSION, AUTH_VALIDATION_CONFIG, AdministrationPageComponent, AuthApiService, AuthCompanyApiProviderAdapter, AuthInitService, AuthLayoutApiAdapter, AuthLayoutStateAdapter, AuthStateProviderAdapter, AuthStateService, AuthUserPermissionProviderAdapter, AuthUserProviderAdapter, BranchApiService, BranchFormComponent, BranchListComponent, CompanyApiService, CompanyFormComponent, CompanyListComponent, ForgotPasswordPageComponent, LoginPageComponent, PROFILE_FIELD_CONTEXT, PROFILE_ROUTES, ProfilePageComponent, REGISTRATION_FIELD_CONTEXT, RegisterPageComponent, ResetPasswordPageComponent, TokenRefreshStateService, USER_FORM_FIELD_CONTEXT, UserApiService, UserBranchPermissionDialogComponent, UserCompanyPermissionDialogComponent, UserFormComponent, UserListComponent, UserPermissionApiService, VerifyEmailPageComponent, authGuard, authInterceptor, companyFeatureGuard, emailFeatureGuard, guestGuard, isCompanySelectionResponse, isEmailVerificationRequired, isEndpoint, isLoginResponse, provideAuthLayoutIntegration, provideAuthProviders, signUpFeatureGuard, tokenRefreshInterceptor, validateEmail, validatePassword };
|
|
1567
|
+
export type { AuthResponse, IAssignUserBranchRequest, IAssignUserCompanyRequest, IAuthValidationConfig, IBatchOperationResponse, IBranch, IBranchInfo, IBranchSelectionInfo, IChangePasswordRequest, ICompany, ICompanyInfo, ICompanySelectionResponse, ICompanyWithBranches, ICreateBranchRequest, ICreateCompanyRequest, ICreateUserRequest, IEmailValidationConfig, ILoginRequest, ILoginRequiresEmailVerification, ILoginResponse, IMeResponse, IPasswordValidationConfig, IPermissionItem, IProfileExtensionProvider, IProfileExtraField, IProfileExtraSection, IProfileFieldTemplateContext, IRefreshTokenResponse, IRegistrationExtensionProvider, IRegistrationExtraField, IRegistrationFieldTemplateContext, IRegistrationRequest, IRegistrationResponse, ISelectRequest, ISwitchCompanyRequest, IUpdateBranchRequest, IUpdateCompanyRequest, IUpdateUserRequest, IUser, IUserBranchPermission, IUserBranchesResponse, IUserCompaniesResponse, IUserCompanyPermission, IUserDetailViewConfig, IUserFormExtensionProvider, IUserFormExtraField, IUserFormFieldTemplateContext, IUserInfo, IUserListExtensionProvider, IUserListExtraAction, IUserListExtraColumn, UserDetailViewMode };
|