ngx-techlify-core 14.7.0 → 14.8.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.
Files changed (164) hide show
  1. package/esm2020/lib/access-control-config/access-control-config-form/access-control-config-form.component.mjs +127 -0
  2. package/esm2020/lib/access-control-config/access-control-config-routing.module.mjs +31 -0
  3. package/esm2020/lib/access-control-config/access-control-config.component.mjs +131 -0
  4. package/esm2020/lib/access-control-config/access-control-config.model.mjs +21 -0
  5. package/esm2020/lib/access-control-config/access-control-config.module.mjs +60 -0
  6. package/esm2020/lib/access-control-config/access-control-config.service.mjs +31 -0
  7. package/esm2020/lib/change-password/change-password-routing.module.mjs +24 -0
  8. package/esm2020/lib/change-password/change-password.component.mjs +87 -0
  9. package/esm2020/lib/change-password/change-password.module.mjs +48 -0
  10. package/esm2020/lib/entity-files/entity-files-view-all.component.mjs +7 -8
  11. package/esm2020/lib/forgot-password/forgot-password-routing.module.mjs +22 -0
  12. package/esm2020/lib/forgot-password/forgot-password.component.mjs +67 -0
  13. package/esm2020/lib/forgot-password/forgot-password.module.mjs +34 -0
  14. package/esm2020/lib/forgot-password/index.mjs +3 -0
  15. package/esm2020/lib/ip-address-selector/ip-address-selector.module.mjs +48 -0
  16. package/esm2020/lib/ip-address-selector/ip-range-selector/ip-range-selector.component.mjs +109 -0
  17. package/esm2020/lib/login/index.mjs +3 -0
  18. package/esm2020/lib/login/login-routing.module.mjs +23 -0
  19. package/esm2020/lib/login/login.component.mjs +153 -0
  20. package/esm2020/lib/login/login.module.mjs +50 -0
  21. package/esm2020/lib/ngx-techlify-users/ngx-techlify-users-routing.module.mjs +43 -0
  22. package/esm2020/lib/ngx-techlify-users/ngx-techlify-users.module.mjs +22 -0
  23. package/esm2020/lib/password-requirement-check/password-check-result.mjs +2 -0
  24. package/esm2020/lib/password-requirement-check/password-check.service.mjs +43 -0
  25. package/esm2020/lib/password-requirement-check/password-requirement-check/password-requirement-check.component.mjs +47 -0
  26. package/esm2020/lib/password-requirement-check/password-requirement-check.module.mjs +24 -0
  27. package/esm2020/lib/profile/index.mjs +3 -0
  28. package/esm2020/lib/profile/profile-edit.component.mjs +75 -0
  29. package/esm2020/lib/profile/profile-routing.module.mjs +23 -0
  30. package/esm2020/lib/profile/profile.module.mjs +36 -0
  31. package/esm2020/lib/restrictors/index.mjs +4 -0
  32. package/esm2020/lib/restrictors/restrictor-level-selector/restrictor-level-selector/restrictor-level-selector.component.mjs +91 -0
  33. package/esm2020/lib/restrictors/restrictor-level-selector/restrictor-level-selector.module.mjs +36 -0
  34. package/esm2020/lib/restrictors/restrictor-level-selector/restrictor-level.service.mjs +19 -0
  35. package/esm2020/lib/restrictors/restrictor-status-selector/restrictor-status-selector/restrictor-status-selector.component.mjs +91 -0
  36. package/esm2020/lib/restrictors/restrictor-status-selector/restrictor-status-selector.module.mjs +32 -0
  37. package/esm2020/lib/restrictors/restrictor-status-selector/restrictor-status.service.mjs +19 -0
  38. package/esm2020/lib/restrictors/restrictor-type-selector/restrictor-type-selector/restrictor-type-selector.component.mjs +92 -0
  39. package/esm2020/lib/restrictors/restrictor-type-selector/restrictor-type-selector.module.mjs +36 -0
  40. package/esm2020/lib/restrictors/restrictor-type-selector/restrictor-type.service.mjs +19 -0
  41. package/esm2020/lib/restrictors/restrictor.service.mjs +19 -0
  42. package/esm2020/lib/restrictors/restrictors-form/restrictors-form.component.mjs +102 -0
  43. package/esm2020/lib/restrictors/restrictors-form-page/restrictors-form-page.component.mjs +44 -0
  44. package/esm2020/lib/restrictors/restrictors-list-page/restrictors-list-page.component.mjs +145 -0
  45. package/esm2020/lib/restrictors/restrictors-routing.module.mjs +42 -0
  46. package/esm2020/lib/restrictors/restrictors.module.mjs +99 -0
  47. package/esm2020/lib/role/index.mjs +9 -0
  48. package/esm2020/lib/role/permission/permission.model.mjs +9 -0
  49. package/esm2020/lib/role/permission/permission.module.mjs +45 -0
  50. package/esm2020/lib/role/permission/permission.routes.mjs +26 -0
  51. package/esm2020/lib/role/permission/permissions-management.component.mjs +105 -0
  52. package/esm2020/lib/role/role-form.component.mjs +99 -0
  53. package/esm2020/lib/role/role-view/role-view.component.mjs +39 -0
  54. package/esm2020/lib/role/role.model.mjs +56 -0
  55. package/esm2020/lib/role/role.module.mjs +59 -0
  56. package/esm2020/lib/role/role.routes.mjs +28 -0
  57. package/esm2020/lib/role/role.service.mjs +26 -0
  58. package/esm2020/lib/role/roles-view-all.component.mjs +131 -0
  59. package/esm2020/lib/signup/index.mjs +3 -0
  60. package/esm2020/lib/signup/signup-routing.module.mjs +22 -0
  61. package/esm2020/lib/signup/signup.component.mjs +78 -0
  62. package/esm2020/lib/signup/signup.module.mjs +34 -0
  63. package/esm2020/lib/user/current-user.service.mjs +135 -0
  64. package/esm2020/lib/user/index.mjs +8 -0
  65. package/esm2020/lib/user/user-explore.component.mjs +50 -0
  66. package/esm2020/lib/user/user-form.component.mjs +219 -0
  67. package/esm2020/lib/user/user-view.component.mjs +68 -0
  68. package/esm2020/lib/user/user.model.mjs +30 -0
  69. package/esm2020/lib/user/user.module.mjs +99 -0
  70. package/esm2020/lib/user/user.routes.mjs +29 -0
  71. package/esm2020/lib/user/user.service.mjs +31 -0
  72. package/esm2020/lib/user/users-view-all.component.mjs +208 -0
  73. package/esm2020/lib/user-config/index.mjs +3 -0
  74. package/esm2020/lib/user-config/user-config.model.mjs +50 -0
  75. package/esm2020/lib/user-config/user-config.service.mjs +65 -0
  76. package/esm2020/lib/user-selector/index.mjs +3 -0
  77. package/esm2020/lib/user-selector/user-data.service.mjs +35 -0
  78. package/esm2020/lib/user-selector/user-selector.component.mjs +91 -0
  79. package/esm2020/lib/user-selector/user-selector.module.mjs +38 -0
  80. package/esm2020/public-api.mjs +24 -1
  81. package/fesm2015/ngx-techlify-core.mjs +3791 -170
  82. package/fesm2015/ngx-techlify-core.mjs.map +1 -1
  83. package/fesm2020/ngx-techlify-core.mjs +3759 -170
  84. package/fesm2020/ngx-techlify-core.mjs.map +1 -1
  85. package/lib/access-control-config/access-control-config-form/access-control-config-form.component.d.ts +44 -0
  86. package/lib/access-control-config/access-control-config-routing.module.d.ts +7 -0
  87. package/lib/access-control-config/access-control-config.component.d.ts +31 -0
  88. package/lib/access-control-config/access-control-config.model.d.ts +17 -0
  89. package/lib/access-control-config/access-control-config.module.d.ts +18 -0
  90. package/lib/access-control-config/access-control-config.service.d.ts +13 -0
  91. package/lib/change-password/change-password-routing.module.d.ts +7 -0
  92. package/lib/change-password/change-password.component.d.ts +27 -0
  93. package/lib/change-password/change-password.module.d.ts +14 -0
  94. package/lib/forgot-password/forgot-password-routing.module.d.ts +7 -0
  95. package/lib/forgot-password/forgot-password.component.d.ts +34 -0
  96. package/lib/forgot-password/forgot-password.module.d.ts +11 -0
  97. package/lib/forgot-password/index.d.ts +2 -0
  98. package/lib/ip-address-selector/ip-address-selector.module.d.ts +14 -0
  99. package/lib/ip-address-selector/ip-range-selector/ip-range-selector.component.d.ts +28 -0
  100. package/lib/login/index.d.ts +2 -0
  101. package/lib/login/login-routing.module.d.ts +7 -0
  102. package/lib/login/login.component.d.ts +53 -0
  103. package/lib/login/login.module.d.ts +15 -0
  104. package/lib/ngx-techlify-users/ngx-techlify-users-routing.module.d.ts +7 -0
  105. package/lib/ngx-techlify-users/ngx-techlify-users.module.d.ts +8 -0
  106. package/lib/password-requirement-check/password-check-result.d.ts +7 -0
  107. package/lib/password-requirement-check/password-check.service.d.ts +15 -0
  108. package/lib/password-requirement-check/password-requirement-check/password-requirement-check.component.d.ts +22 -0
  109. package/lib/password-requirement-check/password-requirement-check.module.d.ts +8 -0
  110. package/lib/profile/index.d.ts +2 -0
  111. package/lib/profile/profile-edit.component.d.ts +33 -0
  112. package/lib/profile/profile-routing.module.d.ts +7 -0
  113. package/lib/profile/profile.module.d.ts +11 -0
  114. package/lib/restrictors/index.d.ts +3 -0
  115. package/lib/restrictors/restrictor-level-selector/restrictor-level-selector/restrictor-level-selector.component.d.ts +34 -0
  116. package/lib/restrictors/restrictor-level-selector/restrictor-level-selector.module.d.ts +11 -0
  117. package/lib/restrictors/restrictor-level-selector/restrictor-level.service.d.ts +9 -0
  118. package/lib/restrictors/restrictor-status-selector/restrictor-status-selector/restrictor-status-selector.component.d.ts +34 -0
  119. package/lib/restrictors/restrictor-status-selector/restrictor-status-selector.module.d.ts +10 -0
  120. package/lib/restrictors/restrictor-status-selector/restrictor-status.service.d.ts +9 -0
  121. package/lib/restrictors/restrictor-type-selector/restrictor-type-selector/restrictor-type-selector.component.d.ts +34 -0
  122. package/lib/restrictors/restrictor-type-selector/restrictor-type-selector.module.d.ts +11 -0
  123. package/lib/restrictors/restrictor-type-selector/restrictor-type.service.d.ts +9 -0
  124. package/lib/restrictors/restrictor.service.d.ts +9 -0
  125. package/lib/restrictors/restrictors-form/restrictors-form.component.d.ts +30 -0
  126. package/lib/restrictors/restrictors-form-page/restrictors-form-page.component.d.ts +21 -0
  127. package/lib/restrictors/restrictors-list-page/restrictors-list-page.component.d.ts +51 -0
  128. package/lib/restrictors/restrictors-routing.module.d.ts +7 -0
  129. package/lib/restrictors/restrictors.module.d.ts +28 -0
  130. package/lib/role/index.d.ts +8 -0
  131. package/lib/role/permission/permission.model.d.ts +11 -0
  132. package/lib/role/permission/permission.module.d.ts +12 -0
  133. package/lib/role/permission/permission.routes.d.ts +7 -0
  134. package/lib/role/permission/permissions-management.component.d.ts +38 -0
  135. package/lib/role/role-form.component.d.ts +34 -0
  136. package/lib/role/role-view/role-view.component.d.ts +16 -0
  137. package/lib/role/role.model.d.ts +31 -0
  138. package/lib/role/role.module.d.ts +16 -0
  139. package/lib/role/role.routes.d.ts +7 -0
  140. package/lib/role/role.service.d.ts +11 -0
  141. package/lib/role/roles-view-all.component.d.ts +40 -0
  142. package/lib/signup/index.d.ts +2 -0
  143. package/lib/signup/signup-routing.module.d.ts +7 -0
  144. package/lib/signup/signup.component.d.ts +29 -0
  145. package/lib/signup/signup.module.d.ts +11 -0
  146. package/lib/user/current-user.service.d.ts +63 -0
  147. package/lib/user/index.d.ts +7 -0
  148. package/lib/user/user-explore.component.d.ts +26 -0
  149. package/lib/user/user-form.component.d.ts +52 -0
  150. package/lib/user/user-view.component.d.ts +31 -0
  151. package/lib/user/user.model.d.ts +29 -0
  152. package/lib/user/user.module.d.ts +26 -0
  153. package/lib/user/user.routes.d.ts +7 -0
  154. package/lib/user/user.service.d.ts +13 -0
  155. package/lib/user/users-view-all.component.d.ts +56 -0
  156. package/lib/user-config/index.d.ts +2 -0
  157. package/lib/user-config/user-config.model.d.ts +50 -0
  158. package/lib/user-config/user-config.service.d.ts +14 -0
  159. package/lib/user-selector/index.d.ts +2 -0
  160. package/lib/user-selector/user-data.service.d.ts +16 -0
  161. package/lib/user-selector/user-selector.component.d.ts +29 -0
  162. package/lib/user-selector/user-selector.module.d.ts +10 -0
  163. package/package.json +1 -1
  164. package/public-api.d.ts +23 -0
@@ -0,0 +1,9 @@
1
+ import { HttpService } from '../../core';
2
+ import { TechlifyServiceBaseClass } from '../../base-model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RestrictorStatusService extends TechlifyServiceBaseClass {
5
+ private httpService;
6
+ constructor(httpService: HttpService);
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestrictorStatusService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<RestrictorStatusService>;
9
+ }
@@ -0,0 +1,34 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { RestrictorTypeService } from '../restrictor-type.service';
3
+ import { ControlValueAccessor, FormControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RestrictorTypeSelectorComponent implements OnInit, ControlValueAccessor {
6
+ private restrictorTypeService;
7
+ constructor(restrictorTypeService: RestrictorTypeService);
8
+ label: string;
9
+ multiple: boolean;
10
+ showLabel: boolean;
11
+ private _value;
12
+ valueChanged: boolean;
13
+ disabled: boolean;
14
+ selectedOption: FormControl<any>;
15
+ options: any[];
16
+ onChange: (value: any) => void;
17
+ onTouched: () => void;
18
+ ngOnInit(): void;
19
+ writeValue(value: any): void;
20
+ registerOnChange(fn: any): void;
21
+ registerOnTouched(fn: any): void;
22
+ setDisabledState?(isDisabled: boolean): void;
23
+ /**
24
+ * Reset the form control value
25
+ */
26
+ resetField(): void;
27
+ /**
28
+ * Get task types.
29
+ * @private
30
+ */
31
+ private fetchData;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestrictorTypeSelectorComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestrictorTypeSelectorComponent, "techlify-restrictor-type-selector", never, { "label": "label"; "multiple": "multiple"; "showLabel": "showLabel"; }, {}, never, never, false>;
34
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./restrictor-type-selector/restrictor-type-selector.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/button-toggle";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "@angular/material/tooltip";
7
+ export declare class RestrictorTypeSelectorModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestrictorTypeSelectorModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RestrictorTypeSelectorModule, [typeof i1.RestrictorTypeSelectorComponent], [typeof i2.CommonModule, typeof i3.MatButtonToggleModule, typeof i4.ReactiveFormsModule, typeof i5.MatTooltipModule], [typeof i1.RestrictorTypeSelectorComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<RestrictorTypeSelectorModule>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import { HttpService } from '../../core';
2
+ import { TechlifyServiceBaseClass } from '../../base-model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RestrictorTypeService extends TechlifyServiceBaseClass {
5
+ private httpService;
6
+ constructor(httpService: HttpService);
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestrictorTypeService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<RestrictorTypeService>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { HttpService } from '../core';
2
+ import { TechlifyServiceBaseClass } from '../base-model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RestrictorService extends TechlifyServiceBaseClass {
5
+ private httpService;
6
+ constructor(httpService: HttpService);
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestrictorService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<RestrictorService>;
9
+ }
@@ -0,0 +1,30 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { DatePipe, Location } from '@angular/common';
4
+ import { AlertService } from '../../core';
5
+ import { RestrictorService } from '../restrictor.service';
6
+ import { RequestHelperService } from '../../request-helper/request-helper.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class RestrictorsFormComponent implements OnInit {
9
+ private fb;
10
+ private location;
11
+ private requestHelperService;
12
+ private alertService;
13
+ private restrictorService;
14
+ private datePipe;
15
+ restrictor: any;
16
+ form: FormGroup;
17
+ isSaving: boolean;
18
+ constructor(fb: FormBuilder, location: Location, requestHelperService: RequestHelperService, alertService: AlertService, restrictorService: RestrictorService, datePipe: DatePipe);
19
+ ngOnInit(): void;
20
+ /**
21
+ * Send the request to save the restrictor record.
22
+ */
23
+ save(): void;
24
+ /**
25
+ * Redirect back to last location.
26
+ */
27
+ redirectBack(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestrictorsFormComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestrictorsFormComponent, "techlify-restrictors-form", never, { "restrictor": "restrictor"; }, {}, never, never, false>;
30
+ }
@@ -0,0 +1,21 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ActivatedRoute } from '@angular/router';
3
+ import { RestrictorService } from '../restrictor.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RestrictorsFormPageComponent implements OnInit {
6
+ private activatedRoute;
7
+ private restrictorService;
8
+ id: number;
9
+ restrictor: any;
10
+ isWorking: boolean;
11
+ constructor(activatedRoute: ActivatedRoute, restrictorService: RestrictorService);
12
+ ngOnInit(): void;
13
+ /**
14
+ * Fetch restrictor data.
15
+ *
16
+ * @private
17
+ */
18
+ private fetchData;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestrictorsFormPageComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestrictorsFormPageComponent, "lib-restrictors-form-page", never, {}, {}, never, never, false>;
21
+ }
@@ -0,0 +1,51 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { MatTableDataSource } from '@angular/material/table';
4
+ import { RequestHelperService } from '../../request-helper/request-helper.service';
5
+ import { ActivatedRoute } from '@angular/router';
6
+ import { RestrictorService } from '../restrictor.service';
7
+ import { Sort } from '@angular/material/sort';
8
+ import { MultiUserConfig, UserConfigService } from '../../user-config';
9
+ import * as i0 from "@angular/core";
10
+ export declare class RestrictorsListPageComponent implements OnInit {
11
+ private fb;
12
+ private requestHelperService;
13
+ private activatedRoute;
14
+ private restrictorService;
15
+ userConfigService: UserConfigService;
16
+ filterForm: FormGroup;
17
+ displayedColumns: string[];
18
+ dataSource: MatTableDataSource<any>;
19
+ private page;
20
+ private totalItems;
21
+ isWorking: boolean;
22
+ scrollContainer: string;
23
+ config: MultiUserConfig;
24
+ constructor(fb: FormBuilder, requestHelperService: RequestHelperService, activatedRoute: ActivatedRoute, restrictorService: RestrictorService, userConfigService: UserConfigService);
25
+ ngOnInit(): void;
26
+ private reload;
27
+ /**
28
+ * Fetch the restrictors list.
29
+ *
30
+ * @private
31
+ */
32
+ private fetchData;
33
+ /**
34
+ * Handle on sort change event.
35
+ *
36
+ * @param sort
37
+ */
38
+ onSortChange(sort: Sort): void;
39
+ /**
40
+ * Handle on scroll event to load data.
41
+ */
42
+ onScroll(): void;
43
+ /**
44
+ * Get restrictable value.
45
+ *
46
+ * @param restrictor
47
+ */
48
+ getRestrictableTypeValue(restrictor: any): string;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestrictorsListPageComponent, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestrictorsListPageComponent, "lib-restrictors-list-page", never, {}, {}, never, never, false>;
51
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/router";
3
+ export declare class RestrictorsRoutingModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestrictorsRoutingModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RestrictorsRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<RestrictorsRoutingModule>;
7
+ }
@@ -0,0 +1,28 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./restrictors-list-page/restrictors-list-page.component";
3
+ import * as i2 from "./restrictors-form-page/restrictors-form-page.component";
4
+ import * as i3 from "./restrictors-form/restrictors-form.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "./restrictors-routing.module";
7
+ import * as i6 from "@angular/material/button";
8
+ import * as i7 from "@angular/flex-layout";
9
+ import * as i8 from "@angular/material/card";
10
+ import * as i9 from "./restrictor-type-selector/restrictor-type-selector.module";
11
+ import * as i10 from "@angular/material/input";
12
+ import * as i11 from "@angular/material/datepicker";
13
+ import * as i12 from "@angular/forms";
14
+ import * as i13 from "@angular/material/select";
15
+ import * as i14 from "../ip-address-selector/ip-address-selector.module";
16
+ import * as i15 from "./restrictor-level-selector/restrictor-level-selector.module";
17
+ import * as i16 from "../searchable-selector/searchable-selector.module";
18
+ import * as i17 from "@angular/material/icon";
19
+ import * as i18 from "./restrictor-status-selector/restrictor-status-selector.module";
20
+ import * as i19 from "@angular/material/table";
21
+ import * as i20 from "@angular/material/progress-bar";
22
+ import * as i21 from "@angular/material/sort";
23
+ import * as i22 from "ngx-infinite-scroll";
24
+ export declare class RestrictorsModule {
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestrictorsModule, never>;
26
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RestrictorsModule, [typeof i1.RestrictorsListPageComponent, typeof i2.RestrictorsFormPageComponent, typeof i3.RestrictorsFormComponent], [typeof i4.CommonModule, typeof i5.RestrictorsRoutingModule, typeof i6.MatButtonModule, typeof i7.FlexModule, typeof i8.MatCardModule, typeof i9.RestrictorTypeSelectorModule, typeof i10.MatInputModule, typeof i11.MatDatepickerModule, typeof i12.ReactiveFormsModule, typeof i13.MatSelectModule, typeof i14.IpAddressSelectorModule, typeof i15.RestrictorLevelSelectorModule, typeof i16.SearchableSelectorModule, typeof i17.MatIconModule, typeof i18.RestrictorStatusSelectorModule, typeof i19.MatTableModule, typeof i20.MatProgressBarModule, typeof i21.MatSortModule, typeof i22.InfiniteScrollModule], never>;
27
+ static ɵinj: i0.ɵɵInjectorDeclaration<RestrictorsModule>;
28
+ }
@@ -0,0 +1,8 @@
1
+ export * from './role-form.component';
2
+ export * from './role.model';
3
+ export * from './role.service';
4
+ export * from './roles-view-all.component';
5
+ export * from './permission/permissions-management.component';
6
+ export * from './permission/permission.model';
7
+ export * from './role.routes';
8
+ export * from './permission/permission.routes';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Class representation of a permission
3
+ *
4
+ * @author Joshua Kissoon
5
+ * @since 20161013
6
+ */
7
+ export declare class Permission {
8
+ id: number;
9
+ slug: string;
10
+ label: string;
11
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./permissions-management.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "./permission.routes";
5
+ import * as i4 from "@angular/flex-layout";
6
+ import * as i5 from "../../material.module";
7
+ import * as i6 from "@angular/forms";
8
+ export declare class PermissionModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PermissionModule, [typeof i1.PermissionsManagementComponent], [typeof i2.CommonModule, typeof i3.PermissionRoutingProvider, typeof i4.FlexLayoutModule, typeof i5.MaterialModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule], [typeof i1.PermissionsManagementComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<PermissionModule>;
12
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/router";
3
+ export declare class PermissionRoutingProvider {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionRoutingProvider, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PermissionRoutingProvider, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<PermissionRoutingProvider>;
7
+ }
@@ -0,0 +1,38 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ActivatedRoute } from '@angular/router';
3
+ import { AlertService, CredentialsService, ErrorHandlerService, HttpService } from '../../core';
4
+ import { Role } from '../role.model';
5
+ import { Permission } from './permission.model';
6
+ import { MultiUserConfig } from '../../user-config';
7
+ import { UserConfigService } from '../../user-config';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * Role Permissions management controller
11
+ *
12
+ * @author Joshua Kissoon
13
+ * @since 20161013
14
+ */
15
+ export declare class PermissionsManagementComponent implements OnInit {
16
+ private http;
17
+ private alertService;
18
+ private route;
19
+ private credentialsService;
20
+ private errorHandler;
21
+ userConfigService: UserConfigService;
22
+ roles: Role[];
23
+ permissions: Permission[];
24
+ moduleCode: string;
25
+ clientId: number;
26
+ config: MultiUserConfig;
27
+ constructor(http: HttpService, alertService: AlertService, route: ActivatedRoute, credentialsService: CredentialsService, errorHandler: ErrorHandlerService, userConfigService: UserConfigService);
28
+ ngOnInit(): void;
29
+ isDisabled(isGlobal: boolean, isEditable: boolean): boolean;
30
+ loadPermissions(): void;
31
+ /**
32
+ * Load the Roles from the DB
33
+ */
34
+ private loadRoles;
35
+ updateRolePermission(role: Role, permission: Permission): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsManagementComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<PermissionsManagementComponent, "role-permissions-management", never, { "clientId": "clientId"; }, {}, never, never, false>;
38
+ }
@@ -0,0 +1,34 @@
1
+ import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
2
+ import { AlertService, CredentialsService, FormValidatorService } from '../core';
3
+ import { UserConfigService } from '../user-config';
4
+ import { MultiUserConfig } from '../user-config';
5
+ import { MatDialogRef } from '@angular/material/dialog';
6
+ import { RoleService } from './role.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class RoleFormComponent {
9
+ private alertService;
10
+ private credentialsService;
11
+ private fb;
12
+ private formValidatorService;
13
+ userConfigService: UserConfigService;
14
+ dialogRef: MatDialogRef<RoleFormComponent>;
15
+ data: any;
16
+ private roleService;
17
+ modules: any;
18
+ config: MultiUserConfig;
19
+ isWorking: boolean;
20
+ roleForm: UntypedFormGroup;
21
+ showModuleSelector: boolean;
22
+ isUpdateMode: boolean;
23
+ constructor(alertService: AlertService, credentialsService: CredentialsService, fb: UntypedFormBuilder, formValidatorService: FormValidatorService, userConfigService: UserConfigService, dialogRef: MatDialogRef<RoleFormComponent>, data: any, roleService: RoleService);
24
+ get isAdminUser(): boolean;
25
+ ngOnInit(): void;
26
+ save(): Promise<void>;
27
+ getSubscribedModules(): Promise<void>;
28
+ /** Method to evaluate form fields*/
29
+ isFieldValid(field: string): any;
30
+ /** Method to find error in form fields*/
31
+ getErrorMessage(field: string): any;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<RoleFormComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<RoleFormComponent, "role-form", never, {}, {}, never, never, false>;
34
+ }
@@ -0,0 +1,16 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ActivatedRoute } from '@angular/router';
3
+ import { ErrorHandlerService, HttpService } from '../../core';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RoleViewComponent implements OnInit {
6
+ private http;
7
+ private errorHandler;
8
+ private route;
9
+ role: any;
10
+ roleId: any;
11
+ constructor(http: HttpService, errorHandler: ErrorHandlerService, route: ActivatedRoute);
12
+ ngOnInit(): void;
13
+ getRole(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<RoleViewComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<RoleViewComponent, "app-role-view", never, {}, {}, never, never, false>;
16
+ }
@@ -0,0 +1,31 @@
1
+ import { Permission } from './permission/permission.model';
2
+ /**
3
+ * Class representation of a Role
4
+ *
5
+ * @author Joshua Kissoon
6
+ * @since 20170710
7
+ */
8
+ export declare class Role {
9
+ id: number;
10
+ slug: string;
11
+ label: string;
12
+ module_id: number;
13
+ selected: boolean;
14
+ is_global: boolean;
15
+ is_editable: boolean;
16
+ permissions: Permission[];
17
+ permissionsModel: any;
18
+ module_code: string;
19
+ constructor();
20
+ loadFromJson(data: any): void;
21
+ hasPermission(perm: string): boolean;
22
+ removePermission(perm: Permission): void;
23
+ addPermission(permission: Permission): void;
24
+ /**
25
+ * Method that sets up a permissions variable to work as an ngModel
26
+ *
27
+ * @author Joshua Kissoon
28
+ * @since 20161014
29
+ */
30
+ setupBlankPermissionsForNgModel(): void;
31
+ }
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./role-form.component";
3
+ import * as i2 from "./roles-view-all.component";
4
+ import * as i3 from "./role-view/role-view.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "./role.routes";
7
+ import * as i6 from "../material.module";
8
+ import * as i7 from "@angular/flex-layout";
9
+ import * as i8 from "@angular/forms";
10
+ import * as i9 from "ngx-infinite-scroll";
11
+ import * as i10 from "@angular/material/progress-bar";
12
+ export declare class RoleModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<RoleModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RoleModule, [typeof i1.RoleFormComponent, typeof i2.RolesViewAllComponent, typeof i3.RoleViewComponent], [typeof i4.CommonModule, typeof i5.RoleRoutingProvider, typeof i6.MaterialModule, typeof i7.FlexLayoutModule, typeof i8.FormsModule, typeof i8.ReactiveFormsModule, typeof i9.InfiniteScrollModule, typeof i10.MatProgressBarModule], [typeof i2.RolesViewAllComponent]>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<RoleModule>;
16
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/router";
3
+ export declare class RoleRoutingProvider {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<RoleRoutingProvider, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RoleRoutingProvider, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<RoleRoutingProvider>;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { HttpService } from '../core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RoleService {
4
+ private http;
5
+ constructor(http: HttpService);
6
+ createRole(role: any): Promise<Object>;
7
+ updateRole(role: any): Promise<Object>;
8
+ getClientSubscriptions(filters?: any): Promise<Object>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<RoleService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<RoleService>;
11
+ }
@@ -0,0 +1,40 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ActivatedRoute } from '@angular/router';
3
+ import { Role } from './role.model';
4
+ import { MultiUserConfig } from '../user-config';
5
+ import { UserConfigService } from '../user-config';
6
+ import { MatDialog } from '@angular/material/dialog';
7
+ import { CredentialsService, HttpService } from '../core';
8
+ import { CurrentUserService } from '../user';
9
+ import * as i0 from "@angular/core";
10
+ /**
11
+ * Component used to view a set of roles
12
+ *
13
+ * @author Joshua Kissoon
14
+ * @since 20160818
15
+ */
16
+ export declare class RolesViewAllComponent implements OnInit {
17
+ private http;
18
+ private route;
19
+ private credentialsService;
20
+ userConfigService: UserConfigService;
21
+ private dialog;
22
+ currentUserService: CurrentUserService;
23
+ roles: Role[];
24
+ moduleCode: string;
25
+ displayedColumns: string[];
26
+ totalItems: number;
27
+ currentPage: number;
28
+ isWorking: boolean;
29
+ clientId: number;
30
+ config: MultiUserConfig;
31
+ constructor(http: HttpService, route: ActivatedRoute, credentialsService: CredentialsService, userConfigService: UserConfigService, dialog: MatDialog, currentUserService: CurrentUserService);
32
+ get isAdminUser(): boolean;
33
+ ngOnInit(): void;
34
+ loadData(): void;
35
+ reload(): void;
36
+ onScroll(): void;
37
+ createOrModifyRole(role?: any): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<RolesViewAllComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<RolesViewAllComponent, "roles-view-all", never, { "clientId": "clientId"; }, {}, never, never, false>;
40
+ }
@@ -0,0 +1,2 @@
1
+ export * from './signup.component';
2
+ export * from './signup-routing.module';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/router";
3
+ export declare class SignupRoutingModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SignupRoutingModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SignupRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<SignupRoutingModule>;
7
+ }
@@ -0,0 +1,29 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
4
+ import { AlertService, ErrorHandlerService, FormValidatorService, HttpService } from '../core';
5
+ import { UserConfigService } from '../user-config';
6
+ import { MultiUserConfig } from '../user-config';
7
+ import * as i0 from "@angular/core";
8
+ export declare class SignUpComponent implements OnInit {
9
+ private http;
10
+ private alertService;
11
+ private router;
12
+ private errorService;
13
+ private fb;
14
+ private formValidatorService;
15
+ userConfigService: UserConfigService;
16
+ isWorking: boolean;
17
+ signUpForm: UntypedFormGroup;
18
+ userConfig: MultiUserConfig;
19
+ constructor(http: HttpService, alertService: AlertService, router: Router, errorService: ErrorHandlerService, fb: UntypedFormBuilder, formValidatorService: FormValidatorService, userConfigService: UserConfigService);
20
+ ngOnInit(): void;
21
+ signUp(): void;
22
+ redirect(provider: any): void;
23
+ /** Method to evaluate form fields*/
24
+ isFieldValid(field: string): any;
25
+ /** Method to find error in form fields*/
26
+ getErrorMessage(field: string): any;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<SignUpComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<SignUpComponent, "signup", never, {}, {}, never, never, false>;
29
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./signup.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "../material.module";
6
+ import * as i5 from "./signup-routing.module";
7
+ export declare class SignupModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SignupModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SignupModule, [typeof i1.SignUpComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MaterialModule, typeof i5.SignupRoutingModule], never>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<SignupModule>;
11
+ }
@@ -0,0 +1,63 @@
1
+ import { Observable } from 'rxjs';
2
+ import { HttpService, StorageService } from '../core';
3
+ import { User } from './user.model';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Service that manages information about the current user
7
+ *
8
+ * @author Joshua Kissoon
9
+ * @since 20170817
10
+ */
11
+ export declare class CurrentUserService {
12
+ private http;
13
+ private storage;
14
+ private user;
15
+ private data;
16
+ /**Deprecated stop using for new projects */
17
+ private userSub;
18
+ constructor(http: HttpService, storage: StorageService);
19
+ /**
20
+ * Returns an user if present, otherwise a empty user
21
+ * @returns {User} user
22
+ */
23
+ getUser(): any;
24
+ /**
25
+ * @deprecated Don't use for new projects, use getUserObservable() instead
26
+ * @returns {Observable<User>} Observable of user once changed.
27
+ */
28
+ watch(): Observable<any>;
29
+ /**
30
+ * Loads the current logged in user
31
+ * @deprecated use getUserObservable() instead
32
+ * @param reload whether to fetch new data from server
33
+ * @returns {Promise<User>} promise of user
34
+ */
35
+ getCurrentUser(reload?: boolean): any;
36
+ /**
37
+ * Used to update the current user data
38
+ * @param {any} userData data that needs to be updated to current user
39
+ */
40
+ updateCurrentUser(userData: any): any;
41
+ /**
42
+ * @param {number} id Id of role
43
+ * @returns {boolean} true if role is present
44
+ */
45
+ hasRole(id: number): boolean;
46
+ /**
47
+ * @param {number} id Id of permission
48
+ * @returns {boolean} true if permission is present
49
+ */
50
+ hasPermission(slug: string): boolean;
51
+ /**
52
+ * Returns the observable of user
53
+ * @param {boolean} reload - whether to reload the entire user again
54
+ * @returns {Observable<User>} Observable of user.
55
+ */
56
+ getUserObservable(reload?: boolean): Observable<User>;
57
+ /**
58
+ * @returns {any} Returns the raw user data
59
+ */
60
+ getUserData(): any;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<CurrentUserService, never>;
62
+ static ɵprov: i0.ɵɵInjectableDeclaration<CurrentUserService>;
63
+ }
@@ -0,0 +1,7 @@
1
+ export * from './current-user.service';
2
+ export * from './user-explore.component';
3
+ export * from './user-form.component';
4
+ export * from './user.model';
5
+ export * from './user.service';
6
+ export * from './users-view-all.component';
7
+ export * from './user.routes';
@@ -0,0 +1,26 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import { HttpService } from '../core';
3
+ import { User } from './user.model';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Controller used to explore a User
7
+ *
8
+ * @author Saravana Kumar
9
+ * @since 20190813
10
+ */
11
+ export declare class UserExploreComponent {
12
+ private http;
13
+ dialogRef: MatDialogRef<UserExploreComponent>;
14
+ data: any;
15
+ user: User;
16
+ isWorking: boolean;
17
+ modules: any[];
18
+ filters: any;
19
+ constructor(http: HttpService, dialogRef: MatDialogRef<UserExploreComponent>, data: any);
20
+ ngOnInit(): void;
21
+ loadData(): void;
22
+ /**Method to close dialog box */
23
+ closeDialog(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserExploreComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserExploreComponent, "user-explore", never, {}, {}, never, never, false>;
26
+ }