tin-spa 14.4.2 → 14.10.2

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 (160) hide show
  1. package/README.md +24 -24
  2. package/esm2020/lib/classes/Classes.mjs +57 -32
  3. package/esm2020/lib/classes/LibClasses.mjs +2 -1
  4. package/esm2020/lib/classes/TinCore.mjs +194 -44
  5. package/esm2020/lib/components/alert/alert.component.mjs +12 -6
  6. package/esm2020/lib/components/attach/attach.component.mjs +49 -33
  7. package/esm2020/lib/components/capsules/capsules.component.mjs +63 -0
  8. package/esm2020/lib/components/cards/cards.component.mjs +103 -0
  9. package/esm2020/lib/components/date/date.component.mjs +4 -4
  10. package/esm2020/lib/components/email/email.component.mjs +19 -17
  11. package/esm2020/lib/components/form/form.component.mjs +142 -57
  12. package/esm2020/lib/components/html/html.component.mjs +34 -0
  13. package/esm2020/lib/components/label/label.component.mjs +6 -3
  14. package/esm2020/lib/components/list-dialog/list-dialog.component.mjs +3 -3
  15. package/esm2020/lib/components/money/money.component.mjs +26 -9
  16. package/esm2020/lib/components/multi-select/multi-select.component.mjs +165 -0
  17. package/esm2020/lib/components/multi-text/multi-text.component.mjs +208 -0
  18. package/esm2020/lib/components/nav-menu/nav-menu.component.mjs +31 -27
  19. package/esm2020/lib/components/notes/notes.component.mjs +62 -0
  20. package/esm2020/lib/components/number/number.component.mjs +23 -8
  21. package/esm2020/lib/components/option/option.component.mjs +36 -14
  22. package/esm2020/lib/components/page/page.component.mjs +101 -0
  23. package/esm2020/lib/components/search/search.component.mjs +10 -5
  24. package/esm2020/lib/components/select/select.component.mjs +56 -129
  25. package/esm2020/lib/components/select-bitwise/select-bitwise.component.mjs +87 -0
  26. package/esm2020/lib/components/select-common/select-common.component.mjs +189 -0
  27. package/esm2020/lib/components/select-internal/select-internal.component.mjs +75 -0
  28. package/esm2020/lib/components/select-lite/select-lite.component.mjs +18 -0
  29. package/esm2020/lib/components/steps/steps.component.mjs +83 -61
  30. package/esm2020/lib/components/suffix/suffix.component.mjs +70 -0
  31. package/esm2020/lib/components/table/detailsDialog.component.mjs +169 -37
  32. package/esm2020/lib/components/table/table.component.mjs +136 -111
  33. package/esm2020/lib/components/table-action/table-action.component.mjs +42 -8
  34. package/esm2020/lib/components/table-header/table-header.component.mjs +12 -8
  35. package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +169 -35
  36. package/esm2020/lib/components/table-internal/table-internal.component.mjs +138 -112
  37. package/esm2020/lib/components/table-lite/detailsDialog-lite.component.mjs +371 -0
  38. package/esm2020/lib/components/table-lite/table-lite.component.mjs +441 -0
  39. package/esm2020/lib/components/table-row/table-row.component.mjs +23 -4
  40. package/esm2020/lib/components/text/text.component.mjs +85 -40
  41. package/esm2020/lib/components/tiles/tiles.component.mjs +32 -20
  42. package/esm2020/lib/components/viewer/viewer.component.mjs +7 -3
  43. package/esm2020/lib/components/viewer/viewerDialog.component.mjs +20 -13
  44. package/esm2020/lib/modules/admin/admin-routing.module.mjs +11 -1
  45. package/esm2020/lib/pages/accounts/accountDialog.component.mjs +1 -1
  46. package/esm2020/lib/pages/app-models/app-models.component.mjs +56 -0
  47. package/esm2020/lib/pages/approvals/approvals.component.mjs +19 -0
  48. package/esm2020/lib/pages/approvals-config/approvals-config.component.mjs +165 -0
  49. package/esm2020/lib/pages/bug/bug.component.mjs +3 -3
  50. package/esm2020/lib/pages/change-password/change-password.component.mjs +1 -1
  51. package/esm2020/lib/pages/create-account/create-account.component.mjs +1 -1
  52. package/esm2020/lib/pages/customers/customers.component.mjs +9 -48
  53. package/esm2020/lib/pages/departments/departments.component.mjs +2 -4
  54. package/esm2020/lib/pages/employees/employees.component.mjs +3 -4
  55. package/esm2020/lib/pages/grades/grades.component.mjs +3 -3
  56. package/esm2020/lib/pages/inventory/inventory.component.mjs +3 -3
  57. package/esm2020/lib/pages/inventory/quantityDialog.component.mjs +1 -1
  58. package/esm2020/lib/pages/invitations-table/invitations-table.component.mjs +11 -10
  59. package/esm2020/lib/pages/login/login.component.mjs +52 -14
  60. package/esm2020/lib/pages/logs/logs.component.mjs +27 -22
  61. package/esm2020/lib/pages/membership/membership.component.mjs +15 -19
  62. package/esm2020/lib/pages/notifications/notifications.component.mjs +82 -6
  63. package/esm2020/lib/pages/notifications-config/notifications-config.component.mjs +113 -0
  64. package/esm2020/lib/pages/plans/plans.component.mjs +16 -19
  65. package/esm2020/lib/pages/positions/positions.component.mjs +4 -4
  66. package/esm2020/lib/pages/profile/profile.component.mjs +4 -3
  67. package/esm2020/lib/pages/recover-account/recover-account.component.mjs +1 -1
  68. package/esm2020/lib/pages/roles/addRoleDialog.component.mjs +2 -2
  69. package/esm2020/lib/pages/roles/roles.component.mjs +77 -17
  70. package/esm2020/lib/pages/settings/settings.component.mjs +2 -11
  71. package/esm2020/lib/pages/signup/signup.component.mjs +1 -1
  72. package/esm2020/lib/pages/suppliers/suppliers.component.mjs +3 -31
  73. package/esm2020/lib/pages/tasks/tasks.component.mjs +9 -9
  74. package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +145 -72
  75. package/esm2020/lib/pages/tenants/tenants.component.mjs +10 -10
  76. package/esm2020/lib/pages/transactions/transactDialog.component.mjs +1 -1
  77. package/esm2020/lib/pages/transactions/transactions.component.mjs +3 -3
  78. package/esm2020/lib/pages/users/users.component.mjs +115 -92
  79. package/esm2020/lib/pages/welcome/welcome.component.mjs +9 -9
  80. package/esm2020/lib/select-context.directive.mjs +23 -0
  81. package/esm2020/lib/services/button.service.mjs +90 -30
  82. package/esm2020/lib/services/csv.service.mjs +1 -1
  83. package/esm2020/lib/services/datalib.service.mjs +504 -76
  84. package/esm2020/lib/services/dialog.service.mjs +24 -7
  85. package/esm2020/lib/services/notifications.service.mjs +33 -0
  86. package/esm2020/lib/services/table-config.service.mjs +55 -7
  87. package/esm2020/lib/tin-spa.module.mjs +46 -11
  88. package/esm2020/public-api.mjs +8 -1
  89. package/fesm2015/tin-spa.mjs +6158 -2594
  90. package/fesm2015/tin-spa.mjs.map +1 -1
  91. package/fesm2020/tin-spa.mjs +6143 -2518
  92. package/fesm2020/tin-spa.mjs.map +1 -1
  93. package/lib/classes/Classes.d.ts +231 -127
  94. package/lib/classes/LibClasses.d.ts +1 -0
  95. package/lib/classes/TinCore.d.ts +11 -3
  96. package/lib/components/attach/attach.component.d.ts +13 -6
  97. package/lib/components/capsules/capsules.component.d.ts +26 -0
  98. package/lib/components/cards/cards.component.d.ts +39 -0
  99. package/lib/components/email/email.component.d.ts +4 -3
  100. package/lib/components/form/form.component.d.ts +20 -11
  101. package/lib/components/html/html.component.d.ts +16 -0
  102. package/lib/components/label/label.component.d.ts +2 -1
  103. package/lib/components/money/money.component.d.ts +8 -1
  104. package/lib/components/multi-select/multi-select.component.d.ts +47 -0
  105. package/lib/components/multi-text/multi-text.component.d.ts +56 -0
  106. package/lib/components/nav-menu/nav-menu.component.d.ts +6 -2
  107. package/lib/components/notes/notes.component.d.ts +19 -0
  108. package/lib/components/number/number.component.d.ts +7 -1
  109. package/lib/components/option/option.component.d.ts +10 -2
  110. package/lib/components/page/page.component.d.ts +38 -0
  111. package/lib/components/search/search.component.d.ts +3 -1
  112. package/lib/components/select/select.component.d.ts +16 -37
  113. package/lib/components/select-bitwise/select-bitwise.component.d.ts +31 -0
  114. package/lib/components/select-common/select-common.component.d.ts +50 -0
  115. package/lib/components/select-internal/select-internal.component.d.ts +23 -0
  116. package/lib/components/select-lite/select-lite.component.d.ts +8 -0
  117. package/lib/components/steps/steps.component.d.ts +18 -9
  118. package/lib/components/suffix/suffix.component.d.ts +23 -0
  119. package/lib/components/table/detailsDialog.component.d.ts +24 -7
  120. package/lib/components/table/table.component.d.ts +15 -9
  121. package/lib/components/table-action/table-action.component.d.ts +4 -1
  122. package/lib/components/table-header/table-header.component.d.ts +3 -1
  123. package/lib/components/table-internal/detailsDialog-internal.component.d.ts +24 -7
  124. package/lib/components/table-internal/table-internal.component.d.ts +15 -9
  125. package/lib/components/table-lite/detailsDialog-lite.component.d.ts +81 -0
  126. package/lib/components/table-lite/table-lite.component.d.ts +91 -0
  127. package/lib/components/table-row/table-row.component.d.ts +4 -1
  128. package/lib/components/text/text.component.d.ts +16 -7
  129. package/lib/components/tiles/tiles.component.d.ts +4 -3
  130. package/lib/components/viewer/viewerDialog.component.d.ts +3 -1
  131. package/lib/pages/app-models/app-models.component.d.ts +15 -0
  132. package/lib/pages/approvals/approvals.component.d.ts +10 -0
  133. package/lib/pages/approvals-config/approvals-config.component.d.ts +24 -0
  134. package/lib/pages/customers/customers.component.d.ts +2 -8
  135. package/lib/pages/invitations-table/invitations-table.component.d.ts +1 -1
  136. package/lib/pages/login/login.component.d.ts +7 -1
  137. package/lib/pages/logs/logs.component.d.ts +2 -6
  138. package/lib/pages/membership/membership.component.d.ts +2 -6
  139. package/lib/pages/notifications/notifications.component.d.ts +9 -1
  140. package/lib/pages/notifications-config/notifications-config.component.d.ts +17 -0
  141. package/lib/pages/plans/plans.component.d.ts +2 -6
  142. package/lib/pages/roles/roles.component.d.ts +14 -2
  143. package/lib/pages/suppliers/suppliers.component.d.ts +1 -4
  144. package/lib/pages/tasks/tasks.component.d.ts +1 -1
  145. package/lib/pages/tenant-settings/tenant-settings.component.d.ts +12 -7
  146. package/lib/pages/tenants/tenants.component.d.ts +2 -2
  147. package/lib/pages/users/users.component.d.ts +8 -16
  148. package/lib/select-context.directive.d.ts +10 -0
  149. package/lib/services/button.service.d.ts +10 -7
  150. package/lib/services/datalib.service.d.ts +54 -10
  151. package/lib/services/dialog.service.d.ts +2 -2
  152. package/lib/services/notifications.service.d.ts +12 -0
  153. package/lib/services/table-config.service.d.ts +9 -1
  154. package/lib/tin-spa.module.d.ts +50 -33
  155. package/package.json +1 -1
  156. package/public-api.d.ts +7 -0
  157. package/esm2020/lib/pages/invitations/invitations.component.mjs +0 -14
  158. package/esm2020/lib/pages/tenant-settings/inviteDialog.component.mjs +0 -60
  159. package/lib/pages/invitations/invitations.component.d.ts +0 -8
  160. package/lib/pages/tenant-settings/inviteDialog.component.d.ts +0 -28
@@ -1,10 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { HttpService } from '../../services/http.service';
3
+ import { DataServiceLib } from '../../services/datalib.service';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class viewerDialog implements OnInit {
5
6
  private httpService;
7
+ private dataServiceLib;
6
8
  data: any;
7
- constructor(httpService: HttpService, data: any);
9
+ constructor(httpService: HttpService, dataServiceLib: DataServiceLib, data: any);
8
10
  ngOnInit(): void;
9
11
  isProcessing: boolean;
10
12
  fullPath: string;
@@ -0,0 +1,15 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { DetailsDialogConfig, FormConfig, PageConfig, TableConfig } from '../../classes/Classes';
3
+ import { DataServiceLib } from '../../services/datalib.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AppModelsComponent implements OnInit {
6
+ private dataService;
7
+ constructor(dataService: DataServiceLib);
8
+ ngOnInit(): void;
9
+ appModelFormConfig: FormConfig;
10
+ appModelDetailsConfig: DetailsDialogConfig;
11
+ appModelTableConfig: TableConfig;
12
+ pageConfig: PageConfig;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppModelsComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppModelsComponent, "spa-app-models", never, {}, {}, never, never, false>;
15
+ }
@@ -0,0 +1,10 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { DataServiceLib } from '../../services/datalib.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ApprovalsComponent implements OnInit {
5
+ dataService: DataServiceLib;
6
+ constructor(dataService: DataServiceLib);
7
+ ngOnInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalsComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ApprovalsComponent, "spa-approvals", never, {}, {}, never, never, false>;
10
+ }
@@ -0,0 +1,24 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { DetailsDialogConfig, FormConfig, PageConfig, TableConfig } from '../../classes/Classes';
3
+ import { DataServiceLib } from '../../services/datalib.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ApprovalsConfigComponent implements OnInit {
6
+ private dataService;
7
+ constructor(dataService: DataServiceLib);
8
+ ngOnInit(): void;
9
+ approvalRoleFormConfig: FormConfig;
10
+ approvalRolesTableConfig: TableConfig;
11
+ approvalLevelOptions: {
12
+ name: number;
13
+ value: number;
14
+ }[];
15
+ approvalLevelFormConfig: FormConfig;
16
+ approvalLevelDetailsConfig: DetailsDialogConfig;
17
+ approvalLevelsTableConfig: TableConfig;
18
+ approvalConfigFormConfig: FormConfig;
19
+ approvalConfigDetailsConfig: DetailsDialogConfig;
20
+ approvalConfigTable: TableConfig;
21
+ pageConfig: PageConfig;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalsConfigComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ApprovalsConfigComponent, "spa-approvals-config", never, {}, {}, never, never, false>;
24
+ }
@@ -1,18 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { DataServiceLib } from '../../services/datalib.service';
3
- import { FormConfig, TableConfig } from '../../classes/Classes';
4
- import { MessageService } from '../../services/message.service';
5
3
  import { AuthService } from '../../services/auth.service';
6
4
  import * as i0 from "@angular/core";
7
5
  export declare class CustomersComponent implements OnInit {
8
- private dataService;
9
- private messageService;
6
+ dataService: DataServiceLib;
10
7
  authService: AuthService;
11
- constructor(dataService: DataServiceLib, messageService: MessageService, authService: AuthService);
8
+ constructor(dataService: DataServiceLib, authService: AuthService);
12
9
  ngOnInit(): void;
13
- loadTenants(): void;
14
- formConfig: FormConfig;
15
- config: TableConfig;
16
10
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomersComponent, never>;
17
11
  static ɵcmp: i0.ɵɵComponentDeclaration<CustomersComponent, "spa-customers", never, {}, {}, never, never, false>;
18
12
  }
@@ -13,7 +13,7 @@ export declare class InvitationsTableComponent implements OnInit {
13
13
  ngOnInit(): void;
14
14
  invActionClicked(x: any): void;
15
15
  tableReload: Subject<boolean>;
16
- invTableConfig: TableConfig;
16
+ invitationsTableConfig: TableConfig;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<InvitationsTableComponent, never>;
18
18
  static ɵcmp: i0.ɵɵComponentDeclaration<InvitationsTableComponent, "spa-invitations-table", never, {}, {}, never, never, false>;
19
19
  }
@@ -9,6 +9,8 @@ import { AppConfig } from "../../classes/Classes";
9
9
  import { HttpService } from "../../services/http.service";
10
10
  import { SocialAuthService, SocialUser } from '@abacritt/angularx-social-login';
11
11
  import { User } from "../../classes/LibClasses";
12
+ import { NotificationsService } from "../../services/notifications.service";
13
+ import { MsalService } from '@azure/msal-angular';
12
14
  import * as i0 from "@angular/core";
13
15
  export declare class LoginComponent implements OnInit {
14
16
  private httpService;
@@ -20,8 +22,11 @@ export declare class LoginComponent implements OnInit {
20
22
  private logService;
21
23
  private route;
22
24
  private socialService;
23
- constructor(httpService: HttpService, storageService: StorageService, router: Router, messageService: MessageService, dataService: DataServiceLib, authService: AuthService, logService: LogService, route: ActivatedRoute, socialService: SocialAuthService);
25
+ private notificationsService;
26
+ private msalService;
27
+ constructor(httpService: HttpService, storageService: StorageService, router: Router, messageService: MessageService, dataService: DataServiceLib, authService: AuthService, logService: LogService, route: ActivatedRoute, socialService: SocialAuthService, notificationsService: NotificationsService, msalService: MsalService);
24
28
  ngOnInit(): void;
29
+ loginWithMS(): void;
25
30
  autoLogin: boolean;
26
31
  socialUser: SocialUser | null;
27
32
  style: string;
@@ -35,6 +40,7 @@ export declare class LoginComponent implements OnInit {
35
40
  signup(): void;
36
41
  recoverAccount(): void;
37
42
  login(): void;
43
+ notifications(): void;
38
44
  static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
39
45
  static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "spa-login", never, {}, {}, never, never, false>;
40
46
  }
@@ -1,18 +1,14 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { DataServiceLib } from "../../services/datalib.service";
3
- import { MatPaginator } from '@angular/material/paginator';
4
3
  import { AuthService } from '../../services/auth.service';
4
+ import { PageConfig } from '../../classes/Classes';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class LogsComponent implements OnInit {
7
7
  private authService;
8
8
  private dataService;
9
9
  constructor(authService: AuthService, dataService: DataServiceLib);
10
10
  ngOnInit(): void;
11
- isProcessing: boolean;
12
- logsPaginator: MatPaginator;
13
- logs: any;
14
- displayedColumns: string[];
15
- loadLogs(): void;
11
+ logsPageConfig: PageConfig;
16
12
  static ɵfac: i0.ɵɵFactoryDeclaration<LogsComponent, never>;
17
13
  static ɵcmp: i0.ɵɵComponentDeclaration<LogsComponent, "spa-logs", never, {}, {}, never, never, false>;
18
14
  }
@@ -1,17 +1,13 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { DataServiceLib } from '../../services/datalib.service';
3
2
  import { FormConfig, TableConfig } from '../../classes/Classes';
4
- import { MessageService } from '../../services/message.service';
5
3
  import { AuthService } from '../../services/auth.service';
6
4
  import * as i0 from "@angular/core";
7
5
  export declare class MembershipComponent implements OnInit {
8
- private dataService;
9
- private messageService;
10
6
  authService: AuthService;
11
- constructor(dataService: DataServiceLib, messageService: MessageService, authService: AuthService);
7
+ constructor(authService: AuthService);
12
8
  ngOnInit(): void;
13
9
  formConfig: FormConfig;
14
- config: TableConfig;
10
+ membersTableConfig: TableConfig;
15
11
  static ɵfac: i0.ɵɵFactoryDeclaration<MembershipComponent, never>;
16
12
  static ɵcmp: i0.ɵɵComponentDeclaration<MembershipComponent, "spa-membership", never, {}, {}, never, never, false>;
17
13
  }
@@ -1,8 +1,16 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { DetailsDialogConfig, TableConfig } from '../../classes/Classes';
3
+ import { DataServiceLib } from '../../services/datalib.service';
4
+ import { NotificationsService } from '../../services/notifications.service';
2
5
  import * as i0 from "@angular/core";
3
6
  export declare class NotificationsComponent implements OnInit {
4
- constructor();
7
+ private dataService;
8
+ private notificationsService;
9
+ constructor(dataService: DataServiceLib, notificationsService: NotificationsService);
5
10
  ngOnInit(): void;
11
+ createDialog: DetailsDialogConfig;
12
+ notificationsTableConfig: TableConfig;
13
+ actionClicked(x: any): void;
6
14
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsComponent, never>;
7
15
  static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsComponent, "spa-notifications", never, {}, {}, never, never, false>;
8
16
  }
@@ -0,0 +1,17 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { DetailsDialogConfig, FormConfig, PageConfig, TableConfig } from '../../classes/Classes';
3
+ import { DataServiceLib } from '../../services/datalib.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NotificationsConfigComponent implements OnInit {
6
+ private dataService;
7
+ constructor(dataService: DataServiceLib);
8
+ ngOnInit(): void;
9
+ notificationOperationFormConfig: FormConfig;
10
+ notificationOperationsTableConfig: TableConfig;
11
+ notificationConfigFormConfig: FormConfig;
12
+ notificationConfigDetailsConfig: DetailsDialogConfig;
13
+ notificationConfigTable: TableConfig;
14
+ pageConfig: PageConfig;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsConfigComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsConfigComponent, "spa-notifications-config", never, {}, {}, never, never, false>;
17
+ }
@@ -1,17 +1,13 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { DataServiceLib } from '../../services/datalib.service';
3
2
  import { FormConfig, TableConfig } from '../../classes/Classes';
4
- import { MessageService } from '../../services/message.service';
5
3
  import { AuthService } from '../../services/auth.service';
6
4
  import * as i0 from "@angular/core";
7
5
  export declare class PlansComponent implements OnInit {
8
- private dataService;
9
- private messageService;
10
6
  authService: AuthService;
11
- constructor(dataService: DataServiceLib, messageService: MessageService, authService: AuthService);
7
+ constructor(authService: AuthService);
12
8
  ngOnInit(): void;
13
9
  formConfig: FormConfig;
14
- config: TableConfig;
10
+ plansTableConfig: TableConfig;
15
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PlansComponent, never>;
16
12
  static ɵcmp: i0.ɵɵComponentDeclaration<PlansComponent, "spa-plans", never, {}, {}, never, never, false>;
17
13
  }
@@ -1,4 +1,4 @@
1
- import { AppConfig } from './../../classes/Classes';
1
+ import { AppConfig, Button, CapItem, DetailsDialogConfig, RoleAccess } from './../../classes/Classes';
2
2
  import { OnInit } from "@angular/core";
3
3
  import { MatDialog } from "@angular/material/dialog";
4
4
  import { DataServiceLib } from "../../services/datalib.service";
@@ -6,6 +6,7 @@ import { Router } from "@angular/router";
6
6
  import { MessageService } from '../../services/message.service';
7
7
  import { AuthService } from '../../services/auth.service';
8
8
  import { HttpService } from '../../services/http.service';
9
+ import { DialogService } from '../../services/dialog.service';
9
10
  import { Role } from '../../classes/LibClasses';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class RolesComponent implements OnInit {
@@ -13,18 +14,29 @@ export declare class RolesComponent implements OnInit {
13
14
  private router;
14
15
  private authService;
15
16
  private dataService;
17
+ private dialogService;
16
18
  dialog: MatDialog;
17
19
  private messageService;
18
- constructor(httpService: HttpService, router: Router, authService: AuthService, dataService: DataServiceLib, dialog: MatDialog, messageService: MessageService);
20
+ constructor(httpService: HttpService, router: Router, authService: AuthService, dataService: DataServiceLib, dialogService: DialogService, dialog: MatDialog, messageService: MessageService);
19
21
  ngOnInit(): void;
20
22
  isProcessing: boolean;
21
23
  roles: Role[];
24
+ RoleAccess: typeof RoleAccess;
22
25
  appConfig: AppConfig;
26
+ roleAccessOptions: {
27
+ value: RoleAccess;
28
+ name: string;
29
+ }[];
23
30
  loadRoles(): void;
24
31
  refresh(): void;
32
+ onCapItemChange(capItem: CapItem, checked: boolean, role: any): void;
33
+ hasSubItemsAccess(capItem: CapItem, role: any): boolean;
25
34
  addRole(): void;
26
35
  updateRole(role: Role): void;
27
36
  deleteRole(role: Role): void;
37
+ renameDialogConfig: DetailsDialogConfig;
38
+ renameButton: Button;
39
+ renameRole(role: Role): void;
28
40
  static ɵfac: i0.ɵɵFactoryDeclaration<RolesComponent, never>;
29
41
  static ɵcmp: i0.ɵɵComponentDeclaration<RolesComponent, "spa-roles", never, {}, {}, never, never, false>;
30
42
  }
@@ -1,17 +1,14 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { DataServiceLib } from '../../services/datalib.service';
3
- import { FormConfig, TableConfig } from '../../classes/Classes';
4
3
  import { MessageService } from '../../services/message.service';
5
4
  import { AuthService } from '../../services/auth.service';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class SuppliersComponent implements OnInit {
8
- private dataService;
7
+ dataService: DataServiceLib;
9
8
  private messageService;
10
9
  authService: AuthService;
11
10
  constructor(dataService: DataServiceLib, messageService: MessageService, authService: AuthService);
12
11
  ngOnInit(): void;
13
- formConfig: FormConfig;
14
- config: TableConfig;
15
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SuppliersComponent, never>;
16
13
  static ɵcmp: i0.ɵɵComponentDeclaration<SuppliersComponent, "spa-suppliers", never, {}, {}, never, never, false>;
17
14
  }
@@ -21,7 +21,7 @@ export declare class TasksComponent implements OnInit {
21
21
  value: number;
22
22
  }[];
23
23
  formConfig: FormConfig;
24
- config: TableConfig;
24
+ tasksTableConfig: TableConfig;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<TasksComponent, never>;
26
26
  static ɵcmp: i0.ɵɵComponentDeclaration<TasksComponent, "spa-tasks", never, {}, {}, never, never, false>;
27
27
  }
@@ -1,5 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FormConfig, TableConfig } from '../../classes/Classes';
2
+ import { FormConfig, TableConfig, DetailsDialogConfig, Field } from '../../classes/Classes';
3
3
  import { DataServiceLib } from '../../services/datalib.service';
4
4
  import { MessageService } from '../../services/message.service';
5
5
  import { AuthService } from '../../services/auth.service';
@@ -21,22 +21,27 @@ export declare class TenantSettingsComponent implements OnInit {
21
21
  plan: any;
22
22
  ownTenant: any;
23
23
  roles: {
24
- name: string;
25
- value: number;
24
+ roleName: string;
25
+ roleID: number;
26
26
  }[];
27
27
  loadData(): void;
28
28
  loadTenants(): void;
29
- renameTenant(): void;
29
+ updateTenant(x: any): void;
30
30
  refreshOrgsLists(): void;
31
31
  switchTenant(): void;
32
- newTenant(): void;
32
+ forceLogin(): void;
33
+ roleField: Field;
34
+ inviteDialogConfig: DetailsDialogConfig;
33
35
  membersFormConfig: FormConfig;
34
- inviteActionClicked(x: any): void;
35
- inviteDiag(): void;
36
36
  tableReload: Subject<boolean>;
37
37
  membersTableConfig: TableConfig;
38
+ orgFormConfig: FormConfig;
39
+ createOrgDialogConfig: DetailsDialogConfig;
40
+ renameOrgDialogConfig: DetailsDialogConfig;
38
41
  orgsReload: Subject<boolean>;
39
42
  orgsTableConfig: TableConfig;
43
+ mailerFormConfig: FormConfig;
44
+ mailerTableConfig: TableConfig;
40
45
  static ɵfac: i0.ɵɵFactoryDeclaration<TenantSettingsComponent, never>;
41
46
  static ɵcmp: i0.ɵɵComponentDeclaration<TenantSettingsComponent, "spa-tenant-settings", never, {}, {}, never, never, false>;
42
47
  }
@@ -10,8 +10,8 @@ export declare class TenantsComponent implements OnInit {
10
10
  authService: AuthService;
11
11
  constructor(dataService: DataServiceLib, messageService: MessageService, authService: AuthService);
12
12
  ngOnInit(): void;
13
- formConfig: FormConfig;
14
- config: TableConfig;
13
+ tenantFormConfig: FormConfig;
14
+ tenantsTableConfig: TableConfig;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<TenantsComponent, never>;
16
16
  static ɵcmp: i0.ɵɵComponentDeclaration<TenantsComponent, "spa-tenants", never, {}, {}, never, never, false>;
17
17
  }
@@ -1,12 +1,11 @@
1
1
  import { OnInit } from "@angular/core";
2
- import { MatPaginator } from "@angular/material/paginator";
3
2
  import { MatDialog } from "@angular/material/dialog";
4
3
  import { DataServiceLib } from "../../services/datalib.service";
5
4
  import { Router } from "@angular/router";
6
5
  import { MessageService } from "../../services/message.service";
7
6
  import { AuthService } from "../../services/auth.service";
7
+ import { TableConfig, FormConfig, DetailsDialogConfig } from '../../classes/Classes';
8
8
  import { HttpService } from "../../services/http.service";
9
- import { User } from "../../classes/LibClasses";
10
9
  import * as i0 from "@angular/core";
11
10
  export declare class UsersComponent implements OnInit {
12
11
  private httpService;
@@ -17,20 +16,13 @@ export declare class UsersComponent implements OnInit {
17
16
  private messageService;
18
17
  constructor(httpService: HttpService, router: Router, authService: AuthService, dataService: DataServiceLib, dialog: MatDialog, messageService: MessageService);
19
18
  ngOnInit(): void;
20
- isProcessing: boolean;
21
- usersPaginator: MatPaginator;
22
- _filterText: string;
23
- users: any;
24
- usersRaw: any;
25
- displayedColumns: string[];
26
- UpdateData(): void;
27
- applyFilter(filterValue: string): void;
28
- createAccount(): void;
29
- viewProfile(user: User): void;
30
- lock(u: any): void;
31
- unlock(u: any): void;
32
- recover(u: User): void;
33
- deleteUser(user: User): void;
19
+ inputChanged(x: any): void;
20
+ loadMeta(): void;
21
+ userBaseFormConfig: FormConfig;
22
+ createDialog: DetailsDialogConfig;
23
+ editDialog: DetailsDialogConfig;
24
+ passwordDialog: DetailsDialogConfig;
25
+ usersTableConfig: TableConfig;
34
26
  static ɵfac: i0.ɵɵFactoryDeclaration<UsersComponent, never>;
35
27
  static ɵcmp: i0.ɵɵComponentDeclaration<UsersComponent, "spa-users", never, {}, {}, never, never, false>;
36
28
  }
@@ -0,0 +1,10 @@
1
+ import { TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SelectContextDirective {
4
+ private templateRef;
5
+ private viewContainer;
6
+ constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef);
7
+ set selectContext(context: any);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectContextDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SelectContextDirective, "[selectContext]", never, { "selectContext": "selectContext"; }, {}, never, never, false>;
10
+ }
@@ -1,7 +1,11 @@
1
1
  import { Button, TableConfig } from '../classes/Classes';
2
+ import { AuthService } from './auth.service';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class ButtonService {
5
+ private authService;
6
+ constructor(authService: AuthService);
4
7
  getButton(buttons: Button[], name: string): Button | null;
8
+ getConfirmMessage(button: Button, row: any): string;
5
9
  getButtonProperties(button: Button, row: any, config: TableConfig): {
6
10
  color: string;
7
11
  icon: string;
@@ -10,18 +14,17 @@ export declare class ButtonService {
10
14
  tip: string;
11
15
  };
12
16
  getButtonColor(button: Button, row: any): string;
13
- isButtonDisabled(button: Button, row: any): boolean;
14
- isButtonVisible(button: Button, row: any, isLoadComplete: boolean): boolean;
15
17
  getTitleAction(mode: string, buttons: Button[]): string;
16
18
  isTabVisible(tableConfig: TableConfig): boolean;
17
- getIcon(button: Button, config: TableConfig): string;
18
- testDisabled(button: Button, row: any): boolean;
19
- testVisible(button: Button, row: any): boolean;
19
+ getIcon(button: Button, config: TableConfig | null): string;
20
+ testDisabled(button: Button, row: any, config?: TableConfig): boolean;
21
+ getVisibleButtons(buttons: Button[], row: any, tableConfig?: TableConfig): Button[];
22
+ testVisible(button: Button, row: any, tableConfig?: TableConfig): boolean;
23
+ private hasRequiredAccess;
20
24
  private getDefaultColor;
21
25
  private getDefaultIcon;
22
26
  getCreateButton(buttons: Button[]): Button | undefined;
23
- getDisplayedButtons(buttons: Button[], isSmallScreen: boolean, minButtons?: string[]): Button[];
24
- getActionsWidth(buttons: Button[]): string;
27
+ isFormButton(button: Button): boolean;
25
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonService, never>;
26
29
  static ɵprov: i0.ɵɵInjectableDeclaration<ButtonService>;
27
30
  }
@@ -1,18 +1,21 @@
1
- import { Action, AppConfig, Button, CapItem, FormConfig, TableConfig } from '../classes/Classes';
1
+ import { Action, AppConfig, Button, CapItem, DetailsDialogConfig, FormConfig, TableConfig } from '../classes/Classes';
2
2
  import { Observable } from 'rxjs';
3
3
  import { HttpService } from './http.service';
4
4
  import { ActivatedRoute, Router } from '@angular/router';
5
5
  import { User } from '../classes/LibClasses';
6
+ import { AuthService } from './auth.service';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class DataServiceLib {
8
9
  private httpService;
9
10
  router: Router;
10
11
  private route;
11
- constructor(httpService: HttpService, router: Router, route: ActivatedRoute);
12
+ private authService;
13
+ constructor(httpService: HttpService, router: Router, route: ActivatedRoute, authService: AuthService);
12
14
  appConfig: AppConfig;
13
15
  private appConfigSource;
14
16
  appConfigObserv: Observable<AppConfig>;
15
17
  UpdateAppConfig(config: AppConfig): void;
18
+ myRole: any;
16
19
  capHome: CapItem;
17
20
  capAdmin: CapItem;
18
21
  capUsers: CapItem;
@@ -34,23 +37,64 @@ export declare class DataServiceLib {
34
37
  capDepartments: CapItem;
35
38
  capPositions: CapItem;
36
39
  capGrades: CapItem;
40
+ capApprovals: CapItem;
41
+ capApprovalsConfig: CapItem;
42
+ capNotifications: CapItem;
43
+ capSelfApproval: CapItem;
44
+ capAppModels: CapItem;
45
+ capNotificationsConfig: CapItem;
37
46
  tmpProfileuserName: string;
38
47
  isProcessing: boolean;
39
- loadEmployeesMeta(): void;
48
+ departmentFormConfig: FormConfig;
49
+ editDepartmentButton: Button;
50
+ departmentDetailsConfig: DetailsDialogConfig;
51
+ positionFormConfig: FormConfig;
52
+ editPositionButton: Button;
53
+ positionDetailsConfig: DetailsDialogConfig;
40
54
  genders: {
41
55
  name: string;
42
56
  value: number;
43
57
  }[];
44
58
  employeeFormConfig: FormConfig;
45
- employeeTableConfig: TableConfig;
46
- loadPositionMeta(): void;
47
- positionFormConfig: FormConfig;
48
- editPositionButton: Button;
49
- positionTableConfig: TableConfig;
50
- departmentFormConfig: FormConfig;
51
- editDepartmentButton: Button;
59
+ employeesTableConfig: TableConfig;
60
+ positionsTableConfig: TableConfig;
52
61
  departmentTableConfig: TableConfig;
62
+ contactPersonFormConfig: FormConfig;
63
+ contactPersonTableConfig: TableConfig;
64
+ customerFormConfig: FormConfig;
65
+ customerCreateButton: Button;
66
+ customerEditButton: Button;
67
+ customerDetailsConfig: DetailsDialogConfig;
68
+ customersTableConfig: TableConfig;
69
+ supplierFormConfig: FormConfig;
70
+ supplierCreateButton: Button;
71
+ supplierEditButton: Button;
72
+ supplierDetailsConfig: DetailsDialogConfig;
73
+ suppliersTableConfig: TableConfig;
74
+ notificationOptions: {
75
+ name: string;
76
+ value: number;
77
+ }[];
78
+ approvalHistoryFormConfig: FormConfig;
79
+ approvalHistoryTableConfig: TableConfig;
80
+ approvalFormConfig: FormConfig;
81
+ approvalActionFormConfig: FormConfig;
82
+ approveActionDetailsConfig: DetailsDialogConfig;
83
+ declineActionDetailsConfig: DetailsDialogConfig;
84
+ approveButton: Button;
85
+ declineButton: Button;
86
+ cancelButton: Button;
87
+ approvalDetailsConfig: DetailsDialogConfig;
88
+ viewApprovalButton: Button;
89
+ receivedApprovalsTableConfig: TableConfig;
90
+ sentApprovalsTableConfig: TableConfig;
91
+ private listCache;
92
+ private cacheDuration;
93
+ private cacheTimestamps;
53
94
  CallApi(action: Action, data?: any): Observable<any>;
95
+ private handleListCall;
96
+ invalidateListCache(entityUrl: string): void;
97
+ ClearCache(): void;
54
98
  CheckWelcomed(path?: string): void;
55
99
  Navigate(path: string): void;
56
100
  NavigateWithValue(path: string, value: string): void;
@@ -1,6 +1,6 @@
1
1
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
2
2
  import { Observable } from 'rxjs';
3
- import { Column, DetailsDialogConfig, TableConfig } from '../classes/Classes';
3
+ import { Button, DetailsDialogConfig } from '../classes/Classes';
4
4
  import { BreakpointObserver } from '@angular/cdk/layout';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class DialogService {
@@ -13,7 +13,7 @@ export declare class DialogService {
13
13
  inputChange: Observable<any>;
14
14
  dialogRef: MatDialogRef<T>;
15
15
  };
16
- openConfiguredDetailsDialog<T>(buttonName: string, row: any, config: TableConfig | DetailsDialogConfig, dialogComponent: new (...args: any[]) => T, column?: Column): Observable<any>;
16
+ openConfiguredDetailsDialog<T>(button: Button, row: any, dialogComponent: new (...args: any[]) => T): Observable<any>;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
18
18
  static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
19
19
  }
@@ -0,0 +1,12 @@
1
+ import { DataServiceLib } from './datalib.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NotificationsService {
4
+ private dataService;
5
+ private notificationCount;
6
+ notificationCount$: import("rxjs").Observable<number>;
7
+ constructor(dataService: DataServiceLib);
8
+ loadNotifications(): void;
9
+ refreshCount(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<NotificationsService>;
12
+ }
@@ -1,9 +1,17 @@
1
1
  import { Button, Column, TableConfig } from '../classes/Classes';
2
+ import { DataServiceLib } from './datalib.service';
3
+ import { AuthService } from './auth.service';
2
4
  import * as i0 from "@angular/core";
3
5
  export declare class TableConfigService {
6
+ private dataService;
7
+ private authService;
8
+ constructor(dataService: DataServiceLib, authService: AuthService);
4
9
  setColumns(config: TableConfig, smallScreen: boolean): string[];
5
10
  getVisibleColumns(config: TableConfig): Column[];
6
- getActionsWidth(buttons: Button[]): string;
11
+ getActionsWidth(buttons: Button[], smallScreen: boolean, config: TableConfig): string;
12
+ getDisplayedButtons(buttons: Button[], isSmallScreen: boolean, config: TableConfig): Button[];
13
+ hasTableAccess(config: TableConfig): boolean;
14
+ getVisibleTableConfigs(tableConfigs: TableConfig[]): TableConfig[];
7
15
  static ɵfac: i0.ɵɵFactoryDeclaration<TableConfigService, never>;
8
16
  static ɵprov: i0.ɵɵInjectableDeclaration<TableConfigService>;
9
17
  }