@flusys/ng-auth 5.2.0 → 5.3.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/fesm2022/flusys-ng-auth.mjs +192 -710
- package/fesm2022/flusys-ng-auth.mjs.map +1 -1
- package/package.json +4 -4
- package/types/flusys-ng-auth.d.ts +19 -74
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/ng-auth",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.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": ">=5.
|
|
12
|
-
"@flusys/ng-layout": ">=5.
|
|
13
|
-
"@flusys/ng-shared": ">=5.
|
|
11
|
+
"@flusys/ng-core": ">=5.3.0",
|
|
12
|
+
"@flusys/ng-layout": ">=5.3.0",
|
|
13
|
+
"@flusys/ng-shared": ">=5.3.0",
|
|
14
14
|
"@primeuix/themes": ">=1.0.0",
|
|
15
15
|
"primeicons": ">=7.0.0",
|
|
16
16
|
"primeng": ">=21.0.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISingleResponse, IMessageResponse, ApiResourceService, ICompanyApiProvider, IListResponse, ICompanyBasicInfo, IAuthStateProvider, IUserPermissionProvider, IUserBranchPermission as IUserBranchPermission$1, IUserProvider, IUserBasicInfo, ILogicNode, IProfileRoleInfo, IProfileActionInfo } from '@flusys/ng-shared';
|
|
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';
|
|
2
2
|
import * as rxjs from 'rxjs';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as _angular_core from '@angular/core';
|
|
@@ -901,89 +901,34 @@ declare class BranchListComponent {
|
|
|
901
901
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BranchListComponent, "lib-branch-list", never, {}, {}, never, never, true, never>;
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
/** Company form model interface */
|
|
905
|
-
interface ICompanyFormModel$1 {
|
|
906
|
-
name: string;
|
|
907
|
-
slug: string;
|
|
908
|
-
email: string;
|
|
909
|
-
phone: string;
|
|
910
|
-
website: string;
|
|
911
|
-
address: string;
|
|
912
|
-
isActive: boolean;
|
|
913
|
-
}
|
|
914
|
-
/**
|
|
915
|
-
* Company Form Component
|
|
916
|
-
* Handles creating and editing companies.
|
|
917
|
-
*/
|
|
918
904
|
declare class CompanyFormComponent {
|
|
919
|
-
private readonly router;
|
|
920
905
|
private readonly route;
|
|
921
|
-
private readonly messageService;
|
|
922
|
-
private readonly companyService;
|
|
923
906
|
private readonly translateAdapter;
|
|
924
|
-
|
|
907
|
+
readonly companyService: CompanyApiService;
|
|
908
|
+
readonly formRef: _angular_core.Signal<BaseFormComponent | undefined>;
|
|
925
909
|
private readonly routeParams;
|
|
926
|
-
|
|
927
|
-
readonly
|
|
928
|
-
|
|
929
|
-
readonly
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
/** Form model */
|
|
933
|
-
readonly formModel: _angular_core.WritableSignal<ICompanyFormModel$1>;
|
|
934
|
-
/** Form with validation schema */
|
|
935
|
-
readonly companyForm: _angular_forms_signals.FieldTree<ICompanyFormModel$1, string | number>;
|
|
936
|
-
/** Check if form is valid */
|
|
937
|
-
readonly isFormValid: _angular_core.Signal<boolean>;
|
|
938
|
-
constructor();
|
|
939
|
-
private loadCompany;
|
|
940
|
-
generateSlug(): void;
|
|
941
|
-
onSubmit(): Promise<void>;
|
|
942
|
-
onCancel(): void;
|
|
943
|
-
/** Build company data from form model */
|
|
944
|
-
private buildCompanyData;
|
|
910
|
+
readonly editId: _angular_core.Signal<string | null>;
|
|
911
|
+
readonly fields: IFormField[];
|
|
912
|
+
readonly buildRequest: (data: Record<string, unknown>, editId: string | null) => unknown;
|
|
913
|
+
readonly toFormModel: (entity: unknown) => Record<string, unknown>;
|
|
914
|
+
onFormValueChange(data: Record<string, unknown>): void;
|
|
915
|
+
private t;
|
|
945
916
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CompanyFormComponent, never>;
|
|
946
917
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CompanyFormComponent, "lib-company-form", never, {}, {}, never, never, true, never>;
|
|
947
918
|
}
|
|
948
919
|
|
|
949
|
-
/**
|
|
950
|
-
* Company List Component
|
|
951
|
-
* Displays a list of companies with CRUD operations.
|
|
952
|
-
* Only visible when company feature is enabled.
|
|
953
|
-
*/
|
|
954
920
|
declare class CompanyListComponent {
|
|
955
|
-
readonly
|
|
956
|
-
readonly CREATE: "company.create";
|
|
957
|
-
readonly READ: "company.read";
|
|
958
|
-
readonly UPDATE: "company.update";
|
|
959
|
-
readonly DELETE: "company.delete";
|
|
960
|
-
};
|
|
961
|
-
readonly BRANCH_PERMISSIONS: {
|
|
962
|
-
readonly CREATE: "branch.create";
|
|
963
|
-
readonly READ: "branch.read";
|
|
964
|
-
readonly UPDATE: "branch.update";
|
|
965
|
-
readonly DELETE: "branch.delete";
|
|
966
|
-
};
|
|
967
|
-
private readonly router;
|
|
968
|
-
private readonly messageService;
|
|
969
|
-
private readonly confirmationService;
|
|
970
|
-
private readonly companyService;
|
|
921
|
+
private readonly permissionValidator;
|
|
971
922
|
private readonly translateAdapter;
|
|
972
|
-
private
|
|
973
|
-
|
|
974
|
-
readonly
|
|
975
|
-
|
|
976
|
-
readonly
|
|
977
|
-
|
|
978
|
-
readonly
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
rows?: number | null;
|
|
982
|
-
}): void;
|
|
983
|
-
onCreate(): void;
|
|
984
|
-
onEdit(company: ICompany): void;
|
|
985
|
-
onViewBranches(company: ICompany): void;
|
|
986
|
-
onDelete(company: ICompany): void;
|
|
923
|
+
private readonly router;
|
|
924
|
+
readonly companyService: CompanyApiService;
|
|
925
|
+
readonly canCreate: _angular_core.Signal<boolean>;
|
|
926
|
+
readonly canEditFn: (_item: unknown) => boolean;
|
|
927
|
+
readonly canDeleteFn: (item: unknown) => boolean;
|
|
928
|
+
readonly viewBranchesAction: ITableAction[];
|
|
929
|
+
readonly columns: ITableColumn[];
|
|
930
|
+
asCompany(item: unknown): ICompany;
|
|
931
|
+
private t;
|
|
987
932
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CompanyListComponent, never>;
|
|
988
933
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CompanyListComponent, "lib-company-list", never, {}, {}, never, never, true, never>;
|
|
989
934
|
}
|