tin-spa 14.0.1 → 14.4.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 (166) hide show
  1. package/README.md +24 -24
  2. package/esm2020/lib/classes/Classes.mjs +32 -57
  3. package/esm2020/lib/classes/LibClasses.mjs +1 -2
  4. package/esm2020/lib/classes/TinCore.mjs +48 -206
  5. package/esm2020/lib/components/alert/alert.component.mjs +7 -21
  6. package/esm2020/lib/components/attach/attach.component.mjs +33 -49
  7. package/esm2020/lib/components/date/date.component.mjs +6 -8
  8. package/esm2020/lib/components/email/email.component.mjs +17 -19
  9. package/esm2020/lib/components/form/form.component.mjs +56 -144
  10. package/esm2020/lib/components/label/label.component.mjs +3 -9
  11. package/esm2020/lib/components/list-dialog/list-dialog.component.mjs +3 -3
  12. package/esm2020/lib/components/money/money.component.mjs +9 -26
  13. package/esm2020/lib/components/nav-menu/nav-menu.component.mjs +27 -31
  14. package/esm2020/lib/components/number/number.component.mjs +8 -23
  15. package/esm2020/lib/components/option/option.component.mjs +14 -36
  16. package/esm2020/lib/components/search/search.component.mjs +5 -10
  17. package/esm2020/lib/components/select/select.component.mjs +129 -56
  18. package/esm2020/lib/components/steps/steps.component.mjs +61 -83
  19. package/esm2020/lib/components/table/detailsDialog.component.mjs +41 -205
  20. package/esm2020/lib/components/table/table.component.mjs +111 -136
  21. package/esm2020/lib/components/table-action/table-action.component.mjs +8 -42
  22. package/esm2020/lib/components/table-header/table-header.component.mjs +10 -14
  23. package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +39 -205
  24. package/esm2020/lib/components/table-internal/table-internal.component.mjs +112 -138
  25. package/esm2020/lib/components/table-row/table-row.component.mjs +4 -23
  26. package/esm2020/lib/components/text/text.component.mjs +46 -110
  27. package/esm2020/lib/components/tiles/tiles.component.mjs +20 -32
  28. package/esm2020/lib/components/viewer/viewer.component.mjs +3 -7
  29. package/esm2020/lib/components/viewer/viewerDialog.component.mjs +13 -20
  30. package/esm2020/lib/modules/admin/admin-routing.module.mjs +1 -11
  31. package/esm2020/lib/pages/accounts/accountDialog.component.mjs +1 -1
  32. package/esm2020/lib/pages/bug/bug.component.mjs +3 -3
  33. package/esm2020/lib/pages/change-password/change-password.component.mjs +1 -1
  34. package/esm2020/lib/pages/create-account/create-account.component.mjs +1 -1
  35. package/esm2020/lib/pages/customers/customers.component.mjs +48 -9
  36. package/esm2020/lib/pages/departments/departments.component.mjs +4 -2
  37. package/esm2020/lib/pages/employees/employees.component.mjs +4 -3
  38. package/esm2020/lib/pages/grades/grades.component.mjs +3 -3
  39. package/esm2020/lib/pages/inventory/inventory.component.mjs +3 -3
  40. package/esm2020/lib/pages/inventory/quantityDialog.component.mjs +1 -1
  41. package/esm2020/lib/pages/invitations/invitations.component.mjs +14 -0
  42. package/esm2020/lib/pages/invitations-table/invitations-table.component.mjs +10 -11
  43. package/esm2020/lib/pages/login/login.component.mjs +14 -52
  44. package/esm2020/lib/pages/logs/logs.component.mjs +22 -27
  45. package/esm2020/lib/pages/membership/membership.component.mjs +19 -15
  46. package/esm2020/lib/pages/notifications/notifications.component.mjs +6 -82
  47. package/esm2020/lib/pages/plans/plans.component.mjs +19 -16
  48. package/esm2020/lib/pages/positions/positions.component.mjs +4 -4
  49. package/esm2020/lib/pages/profile/profile.component.mjs +3 -4
  50. package/esm2020/lib/pages/recover-account/recover-account.component.mjs +1 -1
  51. package/esm2020/lib/pages/roles/addRoleDialog.component.mjs +2 -2
  52. package/esm2020/lib/pages/roles/roles.component.mjs +17 -77
  53. package/esm2020/lib/pages/settings/settings.component.mjs +13 -5
  54. package/esm2020/lib/pages/signup/signup.component.mjs +1 -1
  55. package/esm2020/lib/pages/suppliers/suppliers.component.mjs +31 -3
  56. package/esm2020/lib/pages/tasks/tasks.component.mjs +9 -9
  57. package/esm2020/lib/pages/tenant-settings/inviteDialog.component.mjs +60 -0
  58. package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +72 -145
  59. package/esm2020/lib/pages/tenants/tenants.component.mjs +10 -10
  60. package/esm2020/lib/pages/transactions/transactDialog.component.mjs +1 -1
  61. package/esm2020/lib/pages/transactions/transactions.component.mjs +3 -3
  62. package/esm2020/lib/pages/users/users.component.mjs +92 -141
  63. package/esm2020/lib/pages/welcome/welcome.component.mjs +9 -9
  64. package/esm2020/lib/services/button.service.mjs +32 -92
  65. package/esm2020/lib/services/csv.service.mjs +1 -1
  66. package/esm2020/lib/services/datalib.service.mjs +78 -551
  67. package/esm2020/lib/services/dialog.service.mjs +7 -51
  68. package/esm2020/lib/services/table-config.service.mjs +7 -55
  69. package/esm2020/lib/tin-spa.module.mjs +11 -48
  70. package/esm2020/public-api.mjs +1 -10
  71. package/fesm2015/tin-spa.mjs +2605 -6538
  72. package/fesm2015/tin-spa.mjs.map +1 -1
  73. package/fesm2020/tin-spa.mjs +2501 -6482
  74. package/fesm2020/tin-spa.mjs.map +1 -1
  75. package/lib/classes/Classes.d.ts +129 -267
  76. package/lib/classes/LibClasses.d.ts +0 -1
  77. package/lib/classes/TinCore.d.ts +4 -13
  78. package/lib/components/alert/alert.component.d.ts +3 -4
  79. package/lib/components/attach/attach.component.d.ts +6 -13
  80. package/lib/components/date/date.component.d.ts +1 -1
  81. package/lib/components/email/email.component.d.ts +3 -4
  82. package/lib/components/form/form.component.d.ts +11 -20
  83. package/lib/components/label/label.component.d.ts +1 -3
  84. package/lib/components/money/money.component.d.ts +1 -8
  85. package/lib/components/nav-menu/nav-menu.component.d.ts +2 -6
  86. package/lib/components/number/number.component.d.ts +1 -7
  87. package/lib/components/option/option.component.d.ts +2 -10
  88. package/lib/components/search/search.component.d.ts +1 -3
  89. package/lib/components/select/select.component.d.ts +37 -16
  90. package/lib/components/steps/steps.component.d.ts +9 -18
  91. package/lib/components/table/detailsDialog.component.d.ts +7 -29
  92. package/lib/components/table/table.component.d.ts +9 -15
  93. package/lib/components/table-action/table-action.component.d.ts +1 -4
  94. package/lib/components/table-header/table-header.component.d.ts +1 -3
  95. package/lib/components/table-internal/detailsDialog-internal.component.d.ts +7 -29
  96. package/lib/components/table-internal/table-internal.component.d.ts +9 -15
  97. package/lib/components/table-row/table-row.component.d.ts +1 -4
  98. package/lib/components/text/text.component.d.ts +8 -21
  99. package/lib/components/tiles/tiles.component.d.ts +3 -4
  100. package/lib/components/viewer/viewerDialog.component.d.ts +1 -3
  101. package/lib/pages/customers/customers.component.d.ts +8 -2
  102. package/lib/pages/invitations/invitations.component.d.ts +8 -0
  103. package/lib/pages/invitations-table/invitations-table.component.d.ts +1 -1
  104. package/lib/pages/login/login.component.d.ts +1 -7
  105. package/lib/pages/logs/logs.component.d.ts +6 -2
  106. package/lib/pages/membership/membership.component.d.ts +6 -2
  107. package/lib/pages/notifications/notifications.component.d.ts +1 -9
  108. package/lib/pages/plans/plans.component.d.ts +6 -2
  109. package/lib/pages/roles/roles.component.d.ts +2 -14
  110. package/lib/pages/suppliers/suppliers.component.d.ts +4 -1
  111. package/lib/pages/tasks/tasks.component.d.ts +1 -1
  112. package/lib/pages/tenant-settings/inviteDialog.component.d.ts +28 -0
  113. package/lib/pages/tenant-settings/tenant-settings.component.d.ts +7 -12
  114. package/lib/pages/tenants/tenants.component.d.ts +2 -2
  115. package/lib/pages/users/users.component.d.ts +16 -8
  116. package/lib/services/button.service.d.ts +8 -11
  117. package/lib/services/datalib.service.d.ts +10 -57
  118. package/lib/services/dialog.service.d.ts +2 -3
  119. package/lib/services/table-config.service.d.ts +1 -9
  120. package/lib/tin-spa.module.d.ts +33 -52
  121. package/package.json +1 -1
  122. package/public-api.d.ts +0 -9
  123. package/esm2020/lib/components/capsules/capsules.component.mjs +0 -63
  124. package/esm2020/lib/components/cards/cards.component.mjs +0 -103
  125. package/esm2020/lib/components/html/html.component.mjs +0 -34
  126. package/esm2020/lib/components/multi-select/multi-select.component.mjs +0 -165
  127. package/esm2020/lib/components/multi-text/multi-text.component.mjs +0 -208
  128. package/esm2020/lib/components/notes/notes.component.mjs +0 -62
  129. package/esm2020/lib/components/page/page.component.mjs +0 -101
  130. package/esm2020/lib/components/select-bitwise/select-bitwise.component.mjs +0 -87
  131. package/esm2020/lib/components/select-common/select-common.component.mjs +0 -206
  132. package/esm2020/lib/components/select-internal/select-internal.component.mjs +0 -75
  133. package/esm2020/lib/components/select-lite/select-lite.component.mjs +0 -18
  134. package/esm2020/lib/components/statuses/statuses.component.mjs +0 -44
  135. package/esm2020/lib/components/suffix/suffix.component.mjs +0 -70
  136. package/esm2020/lib/components/table-lite/detailsDialog-lite.component.mjs +0 -404
  137. package/esm2020/lib/components/table-lite/table-lite.component.mjs +0 -441
  138. package/esm2020/lib/components/tabs/tabs.component.mjs +0 -74
  139. package/esm2020/lib/pages/app-models/app-models.component.mjs +0 -56
  140. package/esm2020/lib/pages/approvals/approvals.component.mjs +0 -19
  141. package/esm2020/lib/pages/approvals-config/approvals-config.component.mjs +0 -165
  142. package/esm2020/lib/pages/notifications-config/notifications-config.component.mjs +0 -113
  143. package/esm2020/lib/select-context.directive.mjs +0 -23
  144. package/esm2020/lib/services/notifications.service.mjs +0 -33
  145. package/lib/components/capsules/capsules.component.d.ts +0 -26
  146. package/lib/components/cards/cards.component.d.ts +0 -39
  147. package/lib/components/html/html.component.d.ts +0 -16
  148. package/lib/components/multi-select/multi-select.component.d.ts +0 -47
  149. package/lib/components/multi-text/multi-text.component.d.ts +0 -56
  150. package/lib/components/notes/notes.component.d.ts +0 -19
  151. package/lib/components/page/page.component.d.ts +0 -38
  152. package/lib/components/select-bitwise/select-bitwise.component.d.ts +0 -31
  153. package/lib/components/select-common/select-common.component.d.ts +0 -53
  154. package/lib/components/select-internal/select-internal.component.d.ts +0 -23
  155. package/lib/components/select-lite/select-lite.component.d.ts +0 -8
  156. package/lib/components/statuses/statuses.component.d.ts +0 -12
  157. package/lib/components/suffix/suffix.component.d.ts +0 -23
  158. package/lib/components/table-lite/detailsDialog-lite.component.d.ts +0 -86
  159. package/lib/components/table-lite/table-lite.component.d.ts +0 -91
  160. package/lib/components/tabs/tabs.component.d.ts +0 -32
  161. package/lib/pages/app-models/app-models.component.d.ts +0 -15
  162. package/lib/pages/approvals/approvals.component.d.ts +0 -10
  163. package/lib/pages/approvals-config/approvals-config.component.d.ts +0 -24
  164. package/lib/pages/notifications-config/notifications-config.component.d.ts +0 -17
  165. package/lib/select-context.directive.d.ts +0 -10
  166. package/lib/services/notifications.service.d.ts +0 -12
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { Action, Button, Color, Column, Icon, TableConfig } from '../../classes/Classes';
3
3
  import { MatPaginator } from '@angular/material/paginator';
4
4
  import { MessageService } from '../../services/message.service';
@@ -10,7 +10,6 @@ import { ButtonService } from '../../services/button.service';
10
10
  import { DialogService } from '../../services/dialog.service';
11
11
  import { TableConfigService } from '../../services/table-config.service';
12
12
  import { ConditionService } from '../../services/condition.service';
13
- import { AuthService } from '../../services/auth.service';
14
13
  import * as i0 from "@angular/core";
15
14
  export declare class TableInternalComponent implements OnInit {
16
15
  private dataService;
@@ -21,43 +20,37 @@ export declare class TableInternalComponent implements OnInit {
21
20
  private dialogService;
22
21
  private tableConfigService;
23
22
  private conditionService;
24
- private authService;
25
- constructor(dataService: DataServiceLib, messageService: MessageService, breakpointObserver: BreakpointObserver, dialog: MatDialog, buttonService: ButtonService, dialogService: DialogService, tableConfigService: TableConfigService, conditionService: ConditionService, authService: AuthService);
23
+ constructor(dataService: DataServiceLib, messageService: MessageService, breakpointObserver: BreakpointObserver, dialog: MatDialog, buttonService: ButtonService, dialogService: DialogService, tableConfigService: TableConfigService, conditionService: ConditionService);
26
24
  ngOnInit(): void;
27
- ngOnChanges(changes: SimpleChanges): void;
25
+ ngOnChanges(): void;
28
26
  elevation: string;
29
27
  actionsWidth: string;
30
28
  showFilterButton: boolean;
31
29
  tileReload: Subject<boolean>;
32
- hasBeenActivated: boolean;
33
30
  smallScreen: boolean;
34
- hasFormAccess: boolean;
35
31
  tableDataSource: any;
36
32
  dataSource: any[];
37
33
  displayedColumns: any[];
38
34
  displayedButtons: any[];
39
35
  originalTableLoadAction: Action;
40
36
  tablePaginator: MatPaginator;
37
+ hideTitle: boolean;
41
38
  data: any;
42
- tileData: any;
43
39
  config: TableConfig;
44
40
  reload: Subject<boolean>;
45
- activeTab: boolean;
46
- inTab: boolean;
47
41
  dataLoad: EventEmitter<any>;
48
- actionSuccess: EventEmitter<any>;
49
42
  refreshClick: EventEmitter<any>;
50
43
  searchClick: EventEmitter<any>;
51
44
  createClick: EventEmitter<any>;
52
45
  actionClick: EventEmitter<any>;
53
46
  inputChange: EventEmitter<any>;
54
- actionResponse: EventEmitter<any>;
55
47
  private initializeComponent;
56
48
  private updateTableConfiguration;
57
49
  private setupDataLoading;
58
50
  loadData(action: Action, data: any): void;
59
51
  inputChanged(event: any): void;
60
52
  formDefaults(): void;
53
+ setColumns(): void;
61
54
  setButtons(): void;
62
55
  getButton(name: string): Button;
63
56
  getIcon(buttonName: string): string;
@@ -68,7 +61,7 @@ export declare class TableInternalComponent implements OnInit {
68
61
  testColorCondition(row: any, color: Color): boolean;
69
62
  showBanner(message: string): void;
70
63
  testDisabled(row: any, buttonName: string): boolean;
71
- lastSearch: any;
64
+ testVisible(row: any, buttonName: string): boolean;
72
65
  searchClicked(x: any): void;
73
66
  tileClicked(tile: any): void;
74
67
  tileUnClicked(tile: any): void;
@@ -82,10 +75,11 @@ export declare class TableInternalComponent implements OnInit {
82
75
  newModel(): void;
83
76
  editModel(row: any): void;
84
77
  private open;
78
+ private openDetailsDialog;
85
79
  deleteModel(row: any): void;
86
80
  doAction(buttonName: string, row: any): void;
87
- execAction(button: Button, row: any): void;
81
+ execAction(b: Button, row: any): void;
88
82
  private getElevationClass;
89
83
  static ɵfac: i0.ɵɵFactoryDeclaration<TableInternalComponent, never>;
90
- static ɵcmp: i0.ɵɵComponentDeclaration<TableInternalComponent, "spa-table-internal", never, { "data": "data"; "tileData": "tileData"; "config": "config"; "reload": "reload"; "activeTab": "activeTab"; "inTab": "inTab"; }, { "dataLoad": "dataLoad"; "actionSuccess": "actionSuccess"; "refreshClick": "refreshClick"; "searchClick": "searchClick"; "createClick": "createClick"; "actionClick": "actionClick"; "inputChange": "inputChange"; "actionResponse": "actionResponse"; }, never, never, false>;
84
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableInternalComponent, "spa-table-internal", never, { "hideTitle": "hideTitle"; "data": "data"; "config": "config"; "reload": "reload"; }, { "dataLoad": "dataLoad"; "refreshClick": "refreshClick"; "searchClick": "searchClick"; "createClick": "createClick"; "actionClick": "actionClick"; "inputChange": "inputChange"; }, never, never, false>;
91
85
  }
@@ -7,7 +7,6 @@ export declare class TableRowComponent {
7
7
  column: Column;
8
8
  row: any;
9
9
  config: TableConfig;
10
- smallScreen: boolean;
11
10
  actionClick: EventEmitter<{
12
11
  name: string;
13
12
  row: any;
@@ -24,8 +23,6 @@ export declare class TableRowComponent {
24
23
  onActionClick(name: string, row: any): void;
25
24
  onColumnClick(column: Column, row: any): void;
26
25
  showBanner(message: string): void;
27
- textDisplayed(row: any, column: Column): any;
28
- textTruncated(row: any, column: Column): boolean;
29
26
  static ɵfac: i0.ɵɵFactoryDeclaration<TableRowComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<TableRowComponent, "app-table-row", never, { "column": "column"; "row": "row"; "config": "config"; "smallScreen": "smallScreen"; }, { "actionClick": "actionClick"; "columnClick": "columnClick"; "showBannerEvent": "showBannerEvent"; }, never, never, false>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableRowComponent, "app-table-row", never, { "column": "column"; "row": "row"; "config": "config"; }, { "actionClick": "actionClick"; "columnClick": "columnClick"; "showBannerEvent": "showBannerEvent"; }, never, never, false>;
31
28
  }
@@ -1,19 +1,17 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { Observable } from 'rxjs';
4
- import { Action } from '../../classes/Classes';
5
- import { DataServiceLib } from '../../services/datalib.service';
4
+ import { MessageService } from '../../services/message.service';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class TextComponent implements OnInit {
8
- private dataService;
9
- constructor(dataService: DataServiceLib);
7
+ private messageService;
8
+ constructor(messageService: MessageService);
10
9
  ngOnInit(): void;
11
10
  ngAfterViewInit(): void;
12
11
  filteredOptions: Observable<string[]>;
13
12
  multiDimension: boolean;
14
13
  hideRequiredControl: FormControl<boolean>;
15
14
  hide: boolean;
16
- appearance: 'legacy' | 'standard' | 'fill' | 'outline';
17
15
  readonly: boolean;
18
16
  hint: string;
19
17
  display: string;
@@ -27,37 +25,26 @@ export declare class TextComponent implements OnInit {
27
25
  rows: number;
28
26
  width: string;
29
27
  copyContent: boolean;
30
- clearContent: boolean;
31
28
  options: any;
32
- optionDisplay: string;
33
29
  optionValue: string;
34
- loadAction: Action;
35
30
  required: boolean;
36
31
  min: number;
37
32
  max: number;
38
- regex?: {
39
- pattern: string;
40
- message: string;
41
- };
33
+ regex: string;
42
34
  suffix: string;
43
35
  infoMessage: string;
44
- isHovered: boolean;
45
- onMouseEnter(): void;
46
- onMouseLeave(): void;
36
+ infoClick: EventEmitter<void>;
37
+ onInfoClick(event: MouseEvent): void;
47
38
  private initFilter;
48
39
  private _filter;
40
+ copyText(): void;
49
41
  initControl(control: FormControl): void;
50
- getDisplayValue(value: any): string;
51
42
  changed(): void;
52
43
  leaved(): void;
53
- clear(): void;
54
44
  enterPressed(): void;
55
- refresh(event: MouseEvent): void;
56
- getData(action: Action): void;
57
45
  myControl: FormControl<string>;
58
46
  control: FormControl<string>;
59
- private getValidators;
60
47
  validate(control: FormControl): string;
61
48
  static ɵfac: i0.ɵɵFactoryDeclaration<TextComponent, never>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<TextComponent, "spa-text", never, { "appearance": "appearance"; "readonly": "readonly"; "hint": "hint"; "display": "display"; "placeholder": "placeholder"; "value": "value"; "format": "format"; "type": "type"; "rows": "rows"; "width": "width"; "copyContent": "copyContent"; "clearContent": "clearContent"; "options": "options"; "optionDisplay": "optionDisplay"; "optionValue": "optionValue"; "loadAction": "loadAction"; "required": "required"; "min": "min"; "max": "max"; "regex": "regex"; "suffix": "suffix"; "infoMessage": "infoMessage"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; }, never, never, false>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextComponent, "spa-text", never, { "readonly": "readonly"; "hint": "hint"; "display": "display"; "placeholder": "placeholder"; "value": "value"; "format": "format"; "type": "type"; "rows": "rows"; "width": "width"; "copyContent": "copyContent"; "options": "options"; "optionValue": "optionValue"; "required": "required"; "min": "min"; "max": "max"; "regex": "regex"; "suffix": "suffix"; "infoMessage": "infoMessage"; }, { "valueChange": "valueChange"; "leave": "leave"; "enterPress": "enterPress"; "infoClick": "infoClick"; }, never, never, false>;
63
50
  }
@@ -13,16 +13,15 @@ export declare class TilesComponent implements OnInit {
13
13
  tiles: Tile[];
14
14
  config: TileConfig;
15
15
  tileActionSelected: EventEmitter<Action>;
16
- lastSearch: any;
17
16
  data: any;
18
17
  reload: Subject<boolean>;
19
18
  tileClick: EventEmitter<any>;
20
19
  tileUnClick: EventEmitter<any>;
21
20
  selectedTile: string;
22
- loadData(action: Action, data: any): void;
21
+ new: boolean;
23
22
  clicked(clickedTile: Tile): void;
24
23
  pop(x: any): void;
25
- isHidden(tile: Tile): boolean;
24
+ loadData(action: Action, data: any): void;
26
25
  static ɵfac: i0.ɵɵFactoryDeclaration<TilesComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<TilesComponent, "spa-tiles", never, { "config": "config"; "lastSearch": "lastSearch"; "data": "data"; "reload": "reload"; }, { "tileActionSelected": "tileActionSelected"; "tileClick": "tileClick"; "tileUnClick": "tileUnClick"; }, never, never, false>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<TilesComponent, "spa-tiles", never, { "config": "config"; "data": "data"; "reload": "reload"; }, { "tileActionSelected": "tileActionSelected"; "tileClick": "tileClick"; "tileUnClick": "tileUnClick"; }, never, never, false>;
28
27
  }
@@ -1,12 +1,10 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { HttpService } from '../../services/http.service';
3
- import { DataServiceLib } from '../../services/datalib.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class viewerDialog implements OnInit {
6
5
  private httpService;
7
- private dataServiceLib;
8
6
  data: any;
9
- constructor(httpService: HttpService, dataServiceLib: DataServiceLib, data: any);
7
+ constructor(httpService: HttpService, data: any);
10
8
  ngOnInit(): void;
11
9
  isProcessing: boolean;
12
10
  fullPath: string;
@@ -1,12 +1,18 @@
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';
3
5
  import { AuthService } from '../../services/auth.service';
4
6
  import * as i0 from "@angular/core";
5
7
  export declare class CustomersComponent implements OnInit {
6
- dataService: DataServiceLib;
8
+ private dataService;
9
+ private messageService;
7
10
  authService: AuthService;
8
- constructor(dataService: DataServiceLib, authService: AuthService);
11
+ constructor(dataService: DataServiceLib, messageService: MessageService, authService: AuthService);
9
12
  ngOnInit(): void;
13
+ loadTenants(): void;
14
+ formConfig: FormConfig;
15
+ config: TableConfig;
10
16
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomersComponent, never>;
11
17
  static ɵcmp: i0.ɵɵComponentDeclaration<CustomersComponent, "spa-customers", never, {}, {}, never, never, false>;
12
18
  }
@@ -0,0 +1,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class InvitationsComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<InvitationsComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<InvitationsComponent, "spa-invitations", never, {}, {}, never, never, false>;
8
+ }
@@ -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
- invitationsTableConfig: TableConfig;
16
+ invTableConfig: 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,8 +9,6 @@ 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';
14
12
  import * as i0 from "@angular/core";
15
13
  export declare class LoginComponent implements OnInit {
16
14
  private httpService;
@@ -22,11 +20,8 @@ export declare class LoginComponent implements OnInit {
22
20
  private logService;
23
21
  private route;
24
22
  private socialService;
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);
23
+ constructor(httpService: HttpService, storageService: StorageService, router: Router, messageService: MessageService, dataService: DataServiceLib, authService: AuthService, logService: LogService, route: ActivatedRoute, socialService: SocialAuthService);
28
24
  ngOnInit(): void;
29
- loginWithMS(): void;
30
25
  autoLogin: boolean;
31
26
  socialUser: SocialUser | null;
32
27
  style: string;
@@ -40,7 +35,6 @@ export declare class LoginComponent implements OnInit {
40
35
  signup(): void;
41
36
  recoverAccount(): void;
42
37
  login(): void;
43
- notifications(): void;
44
38
  static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
45
39
  static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "spa-login", never, {}, {}, never, never, false>;
46
40
  }
@@ -1,14 +1,18 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { DataServiceLib } from "../../services/datalib.service";
3
+ import { MatPaginator } from '@angular/material/paginator';
3
4
  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
- logsPageConfig: PageConfig;
11
+ isProcessing: boolean;
12
+ logsPaginator: MatPaginator;
13
+ logs: any;
14
+ displayedColumns: string[];
15
+ loadLogs(): void;
12
16
  static ɵfac: i0.ɵɵFactoryDeclaration<LogsComponent, never>;
13
17
  static ɵcmp: i0.ɵɵComponentDeclaration<LogsComponent, "spa-logs", never, {}, {}, never, never, false>;
14
18
  }
@@ -1,13 +1,17 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { DataServiceLib } from '../../services/datalib.service';
2
3
  import { FormConfig, TableConfig } from '../../classes/Classes';
4
+ import { MessageService } from '../../services/message.service';
3
5
  import { AuthService } from '../../services/auth.service';
4
6
  import * as i0 from "@angular/core";
5
7
  export declare class MembershipComponent implements OnInit {
8
+ private dataService;
9
+ private messageService;
6
10
  authService: AuthService;
7
- constructor(authService: AuthService);
11
+ constructor(dataService: DataServiceLib, messageService: MessageService, authService: AuthService);
8
12
  ngOnInit(): void;
9
13
  formConfig: FormConfig;
10
- membersTableConfig: TableConfig;
14
+ config: TableConfig;
11
15
  static ɵfac: i0.ɵɵFactoryDeclaration<MembershipComponent, never>;
12
16
  static ɵcmp: i0.ɵɵComponentDeclaration<MembershipComponent, "spa-membership", never, {}, {}, never, never, false>;
13
17
  }
@@ -1,16 +1,8 @@
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';
5
2
  import * as i0 from "@angular/core";
6
3
  export declare class NotificationsComponent implements OnInit {
7
- private dataService;
8
- private notificationsService;
9
- constructor(dataService: DataServiceLib, notificationsService: NotificationsService);
4
+ constructor();
10
5
  ngOnInit(): void;
11
- createDialog: DetailsDialogConfig;
12
- notificationsTableConfig: TableConfig;
13
- actionClicked(x: any): void;
14
6
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsComponent, never>;
15
7
  static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsComponent, "spa-notifications", never, {}, {}, never, never, false>;
16
8
  }
@@ -1,13 +1,17 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { DataServiceLib } from '../../services/datalib.service';
2
3
  import { FormConfig, TableConfig } from '../../classes/Classes';
4
+ import { MessageService } from '../../services/message.service';
3
5
  import { AuthService } from '../../services/auth.service';
4
6
  import * as i0 from "@angular/core";
5
7
  export declare class PlansComponent implements OnInit {
8
+ private dataService;
9
+ private messageService;
6
10
  authService: AuthService;
7
- constructor(authService: AuthService);
11
+ constructor(dataService: DataServiceLib, messageService: MessageService, authService: AuthService);
8
12
  ngOnInit(): void;
9
13
  formConfig: FormConfig;
10
- plansTableConfig: TableConfig;
14
+ config: TableConfig;
11
15
  static ɵfac: i0.ɵɵFactoryDeclaration<PlansComponent, never>;
12
16
  static ɵcmp: i0.ɵɵComponentDeclaration<PlansComponent, "spa-plans", never, {}, {}, never, never, false>;
13
17
  }
@@ -1,4 +1,4 @@
1
- import { AppConfig, Button, CapItem, DetailsDialogConfig, RoleAccess } from './../../classes/Classes';
1
+ import { AppConfig } 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,7 +6,6 @@ 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';
10
9
  import { Role } from '../../classes/LibClasses';
11
10
  import * as i0 from "@angular/core";
12
11
  export declare class RolesComponent implements OnInit {
@@ -14,29 +13,18 @@ export declare class RolesComponent implements OnInit {
14
13
  private router;
15
14
  private authService;
16
15
  private dataService;
17
- private dialogService;
18
16
  dialog: MatDialog;
19
17
  private messageService;
20
- constructor(httpService: HttpService, router: Router, authService: AuthService, dataService: DataServiceLib, dialogService: DialogService, dialog: MatDialog, messageService: MessageService);
18
+ constructor(httpService: HttpService, router: Router, authService: AuthService, dataService: DataServiceLib, dialog: MatDialog, messageService: MessageService);
21
19
  ngOnInit(): void;
22
20
  isProcessing: boolean;
23
21
  roles: Role[];
24
- RoleAccess: typeof RoleAccess;
25
22
  appConfig: AppConfig;
26
- roleAccessOptions: {
27
- value: RoleAccess;
28
- name: string;
29
- }[];
30
23
  loadRoles(): void;
31
24
  refresh(): void;
32
- onCapItemChange(capItem: CapItem, checked: boolean, role: any): void;
33
- hasSubItemsAccess(capItem: CapItem, role: any): boolean;
34
25
  addRole(): void;
35
26
  updateRole(role: Role): void;
36
27
  deleteRole(role: Role): void;
37
- renameDialogConfig: DetailsDialogConfig;
38
- renameButton: Button;
39
- renameRole(role: Role): void;
40
28
  static ɵfac: i0.ɵɵFactoryDeclaration<RolesComponent, never>;
41
29
  static ɵcmp: i0.ɵɵComponentDeclaration<RolesComponent, "spa-roles", never, {}, {}, never, never, false>;
42
30
  }
@@ -1,14 +1,17 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { DataServiceLib } from '../../services/datalib.service';
3
+ import { FormConfig, TableConfig } from '../../classes/Classes';
3
4
  import { MessageService } from '../../services/message.service';
4
5
  import { AuthService } from '../../services/auth.service';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class SuppliersComponent implements OnInit {
7
- dataService: DataServiceLib;
8
+ private dataService;
8
9
  private messageService;
9
10
  authService: AuthService;
10
11
  constructor(dataService: DataServiceLib, messageService: MessageService, authService: AuthService);
11
12
  ngOnInit(): void;
13
+ formConfig: FormConfig;
14
+ config: TableConfig;
12
15
  static ɵfac: i0.ɵɵFactoryDeclaration<SuppliersComponent, never>;
13
16
  static ɵcmp: i0.ɵɵComponentDeclaration<SuppliersComponent, "spa-suppliers", never, {}, {}, never, never, false>;
14
17
  }
@@ -21,7 +21,7 @@ export declare class TasksComponent implements OnInit {
21
21
  value: number;
22
22
  }[];
23
23
  formConfig: FormConfig;
24
- tasksTableConfig: TableConfig;
24
+ config: TableConfig;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<TasksComponent, never>;
26
26
  static ɵcmp: i0.ɵɵComponentDeclaration<TasksComponent, "spa-tasks", never, {}, {}, never, never, false>;
27
27
  }
@@ -0,0 +1,28 @@
1
+ import { OnInit } from "@angular/core";
2
+ import { MatDialogRef } from "@angular/material/dialog";
3
+ import { MessageService } from "../../services/message.service";
4
+ import { DataServiceLib } from "../../services/datalib.service";
5
+ import { LoaderService } from "../../services/loader.service";
6
+ import * as i0 from "@angular/core";
7
+ export declare class inviteDialog implements OnInit {
8
+ private loaderService;
9
+ private messageService;
10
+ dataService: DataServiceLib;
11
+ private dialogRef;
12
+ data: any;
13
+ constructor(loaderService: LoaderService, messageService: MessageService, dataService: DataServiceLib, dialogRef: MatDialogRef<inviteDialog>, data: any);
14
+ ngOnInit(): void;
15
+ isProcessing: boolean;
16
+ invited: boolean;
17
+ email: string;
18
+ roleID: number;
19
+ link: string;
20
+ roles: {
21
+ roleName: string;
22
+ roleID: number;
23
+ }[];
24
+ loadMeta(): void;
25
+ submit(): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<inviteDialog, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<inviteDialog, "app-addModel", never, {}, {}, never, never, false>;
28
+ }
@@ -1,5 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FormConfig, TableConfig, DetailsDialogConfig, Field } from '../../classes/Classes';
2
+ import { FormConfig, TableConfig } 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,27 +21,22 @@ export declare class TenantSettingsComponent implements OnInit {
21
21
  plan: any;
22
22
  ownTenant: any;
23
23
  roles: {
24
- roleName: string;
25
- roleID: number;
24
+ name: string;
25
+ value: number;
26
26
  }[];
27
27
  loadData(): void;
28
28
  loadTenants(): void;
29
- updateTenant(x: any): void;
29
+ renameTenant(): void;
30
30
  refreshOrgsLists(): void;
31
31
  switchTenant(): void;
32
- forceLogin(): void;
33
- roleField: Field;
34
- inviteDialogConfig: DetailsDialogConfig;
32
+ newTenant(): void;
35
33
  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;
41
38
  orgsReload: Subject<boolean>;
42
39
  orgsTableConfig: TableConfig;
43
- mailerFormConfig: FormConfig;
44
- mailerTableConfig: TableConfig;
45
40
  static ɵfac: i0.ɵɵFactoryDeclaration<TenantSettingsComponent, never>;
46
41
  static ɵcmp: i0.ɵɵComponentDeclaration<TenantSettingsComponent, "spa-tenant-settings", never, {}, {}, never, never, false>;
47
42
  }
@@ -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
- tenantFormConfig: FormConfig;
14
- tenantsTableConfig: TableConfig;
13
+ formConfig: FormConfig;
14
+ config: 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,11 +1,12 @@
1
1
  import { OnInit } from "@angular/core";
2
+ import { MatPaginator } from "@angular/material/paginator";
2
3
  import { MatDialog } from "@angular/material/dialog";
3
4
  import { DataServiceLib } from "../../services/datalib.service";
4
5
  import { Router } from "@angular/router";
5
6
  import { MessageService } from "../../services/message.service";
6
7
  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";
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class UsersComponent implements OnInit {
11
12
  private httpService;
@@ -16,13 +17,20 @@ export declare class UsersComponent implements OnInit {
16
17
  private messageService;
17
18
  constructor(httpService: HttpService, router: Router, authService: AuthService, dataService: DataServiceLib, dialog: MatDialog, messageService: MessageService);
18
19
  ngOnInit(): void;
19
- inputChanged(x: any): void;
20
- loadMeta(): void;
21
- userBaseFormConfig: FormConfig;
22
- createDialog: DetailsDialogConfig;
23
- editDialog: DetailsDialogConfig;
24
- passwordDialog: DetailsDialogConfig;
25
- usersTableConfig: TableConfig;
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;
26
34
  static ɵfac: i0.ɵɵFactoryDeclaration<UsersComponent, never>;
27
35
  static ɵcmp: i0.ɵɵComponentDeclaration<UsersComponent, "spa-users", never, {}, {}, never, never, false>;
28
36
  }
@@ -1,11 +1,7 @@
1
1
  import { Button, TableConfig } from '../classes/Classes';
2
- import { AuthService } from './auth.service';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class ButtonService {
5
- private authService;
6
- constructor(authService: AuthService);
7
4
  getButton(buttons: Button[], name: string): Button | null;
8
- getConfirmMessage(button: Button, row: any): string;
9
5
  getButtonProperties(button: Button, row: any, config: TableConfig): {
10
6
  color: string;
11
7
  icon: string;
@@ -14,17 +10,18 @@ export declare class ButtonService {
14
10
  tip: string;
15
11
  };
16
12
  getButtonColor(button: Button, row: any): string;
13
+ isButtonDisabled(button: Button, row: any): boolean;
14
+ isButtonVisible(button: Button, row: any, isLoadComplete: boolean): boolean;
17
15
  getTitleAction(mode: string, buttons: Button[]): string;
18
- isTabVisible(tableConfig: TableConfig, details: 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;
16
+ 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;
24
20
  private getDefaultColor;
25
21
  private getDefaultIcon;
26
22
  getCreateButton(buttons: Button[]): Button | undefined;
27
- isFormButton(button: Button): boolean;
23
+ getDisplayedButtons(buttons: Button[], isSmallScreen: boolean, minButtons?: string[]): Button[];
24
+ getActionsWidth(buttons: Button[]): string;
28
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonService, never>;
29
26
  static ɵprov: i0.ɵɵInjectableDeclaration<ButtonService>;
30
27
  }