@unifylib/ui-lib 1.0.3 → 1.1.3

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 (155) hide show
  1. package/ng-package.json +7 -7
  2. package/package.json +14 -12
  3. package/src/lib/base-model/SearchStrConfig.ts +12 -12
  4. package/src/lib/base-model/api-response.ts +23 -23
  5. package/src/lib/base-model/audit-log-entry.ts +7 -7
  6. package/src/lib/base-model/button-action-settings.ts +29 -25
  7. package/src/lib/base-model/column-def.model.ts +34 -34
  8. package/src/lib/base-model/do-action-request.ts +11 -11
  9. package/src/lib/base-model/feature-item.ts +9 -0
  10. package/src/lib/base-model/field-action.ts +7 -7
  11. package/src/lib/base-model/field-filter.model.ts +7 -14
  12. package/src/lib/base-model/field-info.ts +102 -98
  13. package/src/lib/base-model/field-predicate.model.ts +7 -7
  14. package/src/lib/base-model/filter-request.ts +27 -27
  15. package/src/lib/base-model/filter.model.ts +49 -49
  16. package/src/lib/base-model/get-items-list.ts +24 -24
  17. package/src/lib/base-model/index.ts +11 -11
  18. package/src/lib/base-model/items-total.model.ts +12 -0
  19. package/src/lib/base-model/line-item.model.ts +18 -0
  20. package/src/lib/base-model/lookupItem.ts +21 -21
  21. package/src/lib/base-model/null-snackmessage.ts +9 -9
  22. package/src/lib/base-model/page-info.ts +54 -51
  23. package/src/lib/base-model/report-request.model.ts +33 -33
  24. package/src/lib/base-model/response-envelop.model.ts +15 -15
  25. package/src/lib/base-model/snack-message.model.ts +14 -14
  26. package/src/lib/base-model/snackmessage-interface.ts +7 -7
  27. package/src/lib/base-model/table-column.interface.ts +29 -29
  28. package/src/lib/base-model/table-page-user-action.interface.ts +33 -33
  29. package/src/lib/base-model/workflow/workflow-steps.model.ts +9 -9
  30. package/src/lib/base-model/workflow/workflow.model.ts +52 -52
  31. package/src/lib/components/action-comment/action-comment.component.css +52 -0
  32. package/src/lib/components/action-comment/action-comment.component.html +47 -0
  33. package/src/lib/components/{rejection-comment → action-comment}/action-comment.component.spec.ts +23 -23
  34. package/src/lib/components/{rejection-comment → action-comment}/action-comment.component.ts +102 -86
  35. package/src/lib/components/action-confirmation/action-confirmation.component.css +46 -34
  36. package/src/lib/components/action-confirmation/action-confirmation.component.html +32 -18
  37. package/src/lib/components/action-confirmation/action-confirmation.component.spec.ts +23 -23
  38. package/src/lib/components/action-confirmation/action-confirmation.component.ts +58 -58
  39. package/src/lib/components/activity-report-form/activity-report-form.component.html +110 -109
  40. package/src/lib/components/activity-report-form/activity-report-form.component.scss +69 -0
  41. package/src/lib/components/activity-report-form/activity-report-form.component.spec.ts +25 -25
  42. package/src/lib/components/activity-report-form/activity-report-form.component.ts +616 -605
  43. package/src/lib/components/advanced-filter/field-filter/field-filter.component.html +8 -0
  44. package/src/lib/components/advanced-filter/field-filter/field-filter.component.scss +0 -0
  45. package/src/lib/components/advanced-filter/field-filter/field-filter.component.spec.ts +25 -0
  46. package/src/lib/components/advanced-filter/field-filter/field-filter.component.ts +55 -0
  47. package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.html +36 -0
  48. package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.scss +130 -0
  49. package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.spec.ts +25 -0
  50. package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.ts +186 -0
  51. package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.css +51 -51
  52. package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.html +23 -23
  53. package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.spec.ts +23 -23
  54. package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.ts +69 -69
  55. package/src/lib/components/audit-log-list/audit-log.component.html +26 -23
  56. package/src/lib/components/audit-log-list/audit-log.component.scss +50 -0
  57. package/src/lib/components/audit-log-list/audit-log.component.spec.ts +25 -25
  58. package/src/lib/components/audit-log-list/audit-log.component.ts +114 -116
  59. package/src/lib/components/auto-complete/auto-complete.component.css +55 -14
  60. package/src/lib/components/auto-complete/auto-complete.component.html +45 -29
  61. package/src/lib/components/auto-complete/auto-complete.component.spec.ts +23 -23
  62. package/src/lib/components/auto-complete/auto-complete.component.ts +331 -330
  63. package/src/lib/components/base-form/base-form.component.html +59 -58
  64. package/src/lib/components/base-form/base-form.component.scss +68 -0
  65. package/src/lib/components/base-form/base-form.component.spec.ts +25 -25
  66. package/src/lib/components/base-form/base-form.component.ts +323 -305
  67. package/src/lib/components/base-form-canvas/base-form-canvas.component.css +196 -22
  68. package/src/lib/components/base-form-canvas/base-form-canvas.component.html +1095 -1006
  69. package/src/lib/components/base-form-canvas/base-form-canvas.component.spec.ts +23 -23
  70. package/src/lib/components/base-form-canvas/base-form-canvas.component.ts +680 -573
  71. package/src/lib/components/base-input-dialog/base-input-dialog.component.css +67 -0
  72. package/src/lib/components/base-input-dialog/base-input-dialog.component.html +47 -42
  73. package/src/lib/components/base-input-dialog/base-input-dialog.component.spec.ts +23 -23
  74. package/src/lib/components/base-input-dialog/base-input-dialog.component.ts +77 -78
  75. package/src/lib/components/base-table/base-table.component.html +268 -242
  76. package/src/lib/components/base-table/base-table.component.scss +140 -31
  77. package/src/lib/components/base-table/base-table.component.spec.ts +25 -25
  78. package/src/lib/components/base-table/base-table.component.ts +621 -568
  79. package/src/lib/components/button-actions/button-actions.component.html +27 -28
  80. package/src/lib/components/button-actions/button-actions.component.scss +101 -6
  81. package/src/lib/components/button-actions/button-actions.component.spec.ts +23 -23
  82. package/src/lib/components/button-actions/button-actions.component.ts +70 -72
  83. package/src/lib/components/editable-base-table/editable-base-table.component.html +337 -372
  84. package/src/lib/components/editable-base-table/editable-base-table.component.scss +126 -44
  85. package/src/lib/components/editable-base-table/editable-base-table.component.spec.ts +25 -25
  86. package/src/lib/components/editable-base-table/editable-base-table.component.ts +579 -570
  87. package/src/lib/components/equation-builder/equation-builder.component.css +39 -0
  88. package/src/lib/components/equation-builder/equation-builder.component.html +31 -31
  89. package/src/lib/components/equation-builder/equation-builder.component.spec.ts +23 -23
  90. package/src/lib/components/equation-builder/equation-builder.component.ts +119 -121
  91. package/src/lib/components/item-line-editor/item-line-editor.component.html +102 -0
  92. package/src/lib/components/item-line-editor/item-line-editor.component.scss +152 -0
  93. package/src/lib/components/item-line-editor/item-line-editor.component.spec.ts +23 -0
  94. package/src/lib/components/item-line-editor/item-line-editor.component.ts +306 -0
  95. package/src/lib/components/multi-auto-complete/multi-auto-complete.component.css +19 -11
  96. package/src/lib/components/multi-auto-complete/multi-auto-complete.component.html +38 -38
  97. package/src/lib/components/multi-auto-complete/multi-auto-complete.component.spec.ts +23 -23
  98. package/src/lib/components/multi-auto-complete/multi-auto-complete.component.ts +315 -317
  99. package/src/lib/components/paginator/paginator.component.css +65 -25
  100. package/src/lib/components/paginator/paginator.component.html +30 -34
  101. package/src/lib/components/paginator/paginator.component.ts +87 -94
  102. package/src/lib/components/report-details-dialog/report-details-dialog.component.css +17 -17
  103. package/src/lib/components/report-details-dialog/report-details-dialog.component.html +16 -16
  104. package/src/lib/components/report-details-dialog/report-details-dialog.component.spec.ts +23 -23
  105. package/src/lib/components/report-details-dialog/report-details-dialog.component.ts +111 -113
  106. package/src/lib/components/report-form/report-form.component.html +92 -94
  107. package/src/lib/components/report-form/report-form.component.scss +51 -0
  108. package/src/lib/components/report-form/report-form.component.spec.ts +25 -25
  109. package/src/lib/components/report-form/report-form.component.ts +599 -588
  110. package/src/lib/components/search-bar/search-bar.component.html +51 -62
  111. package/src/lib/components/search-bar/search-bar.component.scss +63 -8
  112. package/src/lib/components/search-bar/search-bar.component.spec.ts +25 -25
  113. package/src/lib/components/search-bar/search-bar.component.ts +68 -70
  114. package/src/lib/components/section-form-canvas/section-form-canvas.component.html +43 -0
  115. package/src/lib/components/section-form-canvas/section-form-canvas.component.scss +81 -0
  116. package/src/lib/components/section-form-canvas/section-form-canvas.component.spec.ts +23 -0
  117. package/src/lib/components/section-form-canvas/section-form-canvas.component.ts +67 -0
  118. package/src/lib/components/shared/action-button/action-button.component.html +12 -0
  119. package/src/lib/components/shared/action-button/action-button.component.scss +45 -0
  120. package/src/lib/components/shared/action-button/action-button.component.ts +51 -0
  121. package/src/lib/components/shared/action-card/action-card.component.html +78 -0
  122. package/src/lib/components/shared/action-card/action-card.component.scss +238 -0
  123. package/src/lib/components/shared/action-card/action-card.component.ts +56 -0
  124. package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.css +135 -54
  125. package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.html +36 -22
  126. package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.spec.ts +23 -23
  127. package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.ts +71 -45
  128. package/src/lib/components/shared-list/shared-list.component.html +17 -17
  129. package/src/lib/components/shared-list/shared-list.component.spec.ts +23 -23
  130. package/src/lib/components/shared-list/shared-list.component.ts +53 -53
  131. package/src/lib/components/snackbar-static/snackbar-static.component.html +20 -0
  132. package/src/lib/components/snackbar-static/snackbar-static.component.scss +135 -0
  133. package/src/lib/components/snackbar-static/snackbar-static.component.ts +26 -0
  134. package/src/lib/components/title-bar/title-bar.component.html +35 -31
  135. package/src/lib/components/title-bar/title-bar.component.scss +126 -23
  136. package/src/lib/components/title-bar/title-bar.component.spec.ts +23 -23
  137. package/src/lib/components/title-bar/title-bar.component.ts +126 -119
  138. package/src/lib/services/backend-service.ts +287 -286
  139. package/src/lib/services/index.ts +3 -3
  140. package/src/lib/services/top-panel.ts +17 -17
  141. package/src/lib/services/trigger-form.service.ts +11 -11
  142. package/src/lib/share-module/shared-module.ts +10 -10
  143. package/src/lib/utils/base-utils.ts +102 -102
  144. package/src/lib/validators/date-range-validator.ts +31 -31
  145. package/src/lib/validators/index.ts +3 -3
  146. package/src/lib/validators/match-list.validator.ts +10 -10
  147. package/src/lib/validators/multi-email-validator.ts +15 -15
  148. package/src/public-api.ts +29 -21
  149. package/tsconfig.lib.json +15 -15
  150. package/tsconfig.lib.prod.json +11 -11
  151. package/tsconfig.spec.json +15 -15
  152. package/src/lib/components/rejection-comment/action-comment.component.css +0 -33
  153. package/src/lib/components/rejection-comment/action-comment.component.html +0 -46
  154. package/src/lib/styles/invoiceq-theme.scss +0 -252
  155. package/src/lib/styles/styles.scss +0 -1723
@@ -1,58 +1,58 @@
1
- import {Component, HostBinding, HostListener, Inject, OnInit} from '@angular/core';
2
- import {
3
- MAT_DIALOG_DATA,
4
- MatDialogActions,
5
- MatDialogContent,
6
- MatDialogRef,
7
- MatDialogTitle
8
- } from "@angular/material/dialog";
9
- import {MatFormField} from "@angular/material/form-field";
10
- import {TranslateModule} from "@ngx-translate/core";
11
- import {MatButton} from "@angular/material/button";
12
-
13
- @Component({
14
- selector: 'app-action-confirmation',
15
- standalone: true,
16
- imports: [
17
- MatDialogTitle,
18
- MatFormField,
19
- MatDialogContent,
20
- TranslateModule,
21
- MatDialogActions,
22
- MatButton
23
- ],
24
- templateUrl: './action-confirmation.component.html',
25
- styleUrl: './action-confirmation.component.css'
26
- })
27
- export class ActionConfirmationComponent implements OnInit {
28
- acceptActionLabel : string =''
29
- rejectActionLabel : string =''
30
- warningMsg : string = '';
31
- direction: 'ltr' | 'rtl' = 'ltr';
32
- constructor(public dialogRef: MatDialogRef<ActionConfirmationComponent>,
33
- @Inject(MAT_DIALOG_DATA) public data: any,
34
- @Inject('securityManager') private securityManager: any) {
35
- dialogRef.disableClose = true;
36
- }
37
- @HostListener('window:keyup.esc') onKeyUp() {
38
- this.dialogRef.close();
39
- }
40
- ngOnInit(): void {
41
- this.acceptActionLabel = this.data.acceptActionLabel || 'accept' ;
42
- this.rejectActionLabel = this.data.rejectActionLabel || 'reject';
43
- this.warningMsg = this.data.warningMsg || '';
44
- this.direction = this.securityManager.getDir() ;
45
- }
46
-
47
-
48
- commentAndClose() {
49
- this.dialogRef.close('accept');
50
-
51
- return "";
52
- }
53
-
54
- cancel() {
55
- this.dialogRef.close();
56
- }
57
-
58
- }
1
+ import {Component, HostBinding, HostListener, Inject, OnInit} from '@angular/core';
2
+ import {
3
+ MAT_DIALOG_DATA,
4
+ MatDialogActions,
5
+ MatDialogContent,
6
+ MatDialogRef,
7
+ MatDialogTitle
8
+ } from "@angular/material/dialog";
9
+ import {MatFormField} from "@angular/material/form-field";
10
+ import {TranslateModule} from "@ngx-translate/core";
11
+ import {MatButton, MatIconButton} from "@angular/material/button";
12
+ import {MatIcon} from "@angular/material/icon";
13
+
14
+ @Component({
15
+ selector: 'app-action-confirmation',
16
+ standalone: true,
17
+ imports: [
18
+ TranslateModule,
19
+ MatButton,
20
+ MatIconButton,
21
+ MatIcon
22
+ ],
23
+ templateUrl: './action-confirmation.component.html',
24
+ styleUrl: './action-confirmation.component.css'
25
+ })
26
+ export class ActionConfirmationComponent implements OnInit {
27
+ acceptActionLabel : string =''
28
+ rejectActionLabel : string =''
29
+ subMsg : string = '';
30
+ titleMsg : string = '';
31
+ currentDirection: 'ltr' | 'rtl' = 'ltr';
32
+ constructor(public dialogRef: MatDialogRef<ActionConfirmationComponent>,
33
+ @Inject(MAT_DIALOG_DATA) public data: any) {
34
+ dialogRef.disableClose = true;
35
+ }
36
+ @HostListener('window:keyup.esc') onKeyUp() {
37
+ this.dialogRef.close();
38
+ }
39
+ ngOnInit(): void {
40
+ this.acceptActionLabel = this.data.acceptActionLabel || 'accept' ;
41
+ this.rejectActionLabel = this.data.rejectActionLabel || 'reject';
42
+ this.subMsg = this.data.warningMsg || '';
43
+ this.titleMsg = this.data.confirmMsg || '';
44
+ this.currentDirection = this.data.direction;
45
+ }
46
+
47
+
48
+ commentAndClose() {
49
+ this.dialogRef.close('accept');
50
+
51
+ return "";
52
+ }
53
+
54
+ cancel() {
55
+ this.dialogRef.close();
56
+ }
57
+
58
+ }
@@ -1,109 +1,110 @@
1
- <div fxLayout="column" fxFlex="2" fxHide.lt-sm [ngStyle]="{'height':isMatchHeight() ? '30vh' : '88vh' }">
2
-
3
- </div>
4
-
5
- <div fxLayout="column" fxFlex="98">
6
-
7
- <div fxLayout="row" fxLayoutAlign="start center" style="margin-bottom: 10px;">
8
- <app-title-bar [pageTitle]="getTitle()" [newAction]="false"></app-title-bar>
9
-
10
- <mat-icon
11
- *ngIf="pageInfo?.hasHint"
12
- [matTooltip]="pageInfo.labelsSection + '.hint' | translate"
13
- matTooltipPosition="right"
14
- color="primary"
15
- style="cursor: pointer; margin-left: 10px;"
16
- matTooltipClass="custom-tooltip">
17
- help_outline
18
- </mat-icon>
19
- </div>
20
- <app-base-form-canvas
21
- [pageInfo]="pageInfo"
22
- [fields]="fields"
23
- [editable]="isEditable"
24
- [errors]="errors"
25
- [item]="this.reportForm?.value || {}"
26
- (formUpdated)="updateForm($event)"
27
- ></app-base-form-canvas>
28
-
29
- <div fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start start" fxLayoutAlign.lt-sm="center start"
30
- class="main-form-canvas"
31
- style="margin-top: 3vh; width: 100%">
32
-
33
- <div fxLayout="column" fxFlex="49">
34
- <div fxLayout="row" fxLayoutAlign="start center" fxFlex="100">
35
- <button *ngIf="activeLevel === 1" color="primary" mat-flat-button (click)="doAction(x)"
36
- [disabled]="!isValidForm()"
37
- style="font-weight: bold;min-width: 140px; max-width: 200px; margin: 0 10px;">
38
- {{ 'REPORTS.generate' | translate }}
39
- </button>
40
- <button style="font-weight: bold;min-width: 180px ;max-width: 200px;" mat-raised-button [matMenuTriggerFor]="menu"
41
- [disabled]="getIsEmptyList()"
42
- color="primary" class="btn-none-background-primary">
43
- {{ 'extract' | translate }}
44
- <mat-icon class="expand_more actionButton__expand">expand_more</mat-icon>
45
- </button>
46
- <button
47
- mat-flat-button
48
- (click)="clear()"
49
- [disabled]="isFormEmpty() || activeLevel > 1"
50
- style="font-weight: bold; min-width: 140px; max-width: 200px; margin: 0 10px; ">
51
- {{ 'REPORTS.clear' | translate }}
52
- </button>
53
-
54
- <button *ngIf="activeLevel === 1 && drillDownEnabled()" color="warn" mat-flat-button (click)="drillDown()"
55
- style="font-weight: bold;min-width: 140px; max-width: 200px; margin: 0 10px;">
56
- {{ drillDownLabel() | translate }}
57
- </button>
58
- <button *ngIf="activeLevel > 1 && !(isComparisonReport && activeLevel == 2)" color="warn" mat-flat-button (click)="goUp()"
59
- style="font-weight: bold;min-width: 140px; max-width: 200px; margin: 0 10px;">
60
- {{ 'REPORTS.up' | translate }}
61
- </button>
62
-
63
- </div>
64
- </div>
65
- <div fxLayout="column" fxFlex="49"></div>
66
- </div>
67
- <div *ngIf="activeLevel === 1" fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start start" fxLayoutAlign.lt-sm="center start"
68
- class="main-form-canvas"
69
- style="margin-top: 3vh; width: 100%">
70
- <div fxLayout="column" fxFlex="100">
71
- <app-base-table [pageInfo]="pageInfo" [columns]="columnsDefinition" [enforceRefresh]="reloadData" id="parent"
72
- [reportRequest]="reportRequest" (userAction)="emitUserAction($event)" (hyperLinkAction)="emitHyperLinkAction($event)"></app-base-table>
73
- </div>
74
- </div>
75
- <div *ngIf="activeLevel === 2" fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start start" fxLayoutAlign.lt-sm="center start"
76
- class="main-form-canvas"
77
- style="margin-top: 3vh; width: 100%">
78
- <div fxLayout="column" fxFlex="100">
79
- <app-base-table [pageInfo]="drillDownPageInfo" [columns]="drillDownColumns " id="child"
80
- [reportRequest]="reportRequest"
81
- (userAction)="emitUserAction($event)" (hyperLinkAction)="emitHyperLinkAction($event)"></app-base-table>
82
- </div>
83
- </div>
84
- <div *ngIf="activeLevel === 3" fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start start" fxLayoutAlign.lt-sm="center start"
85
- class="main-form-canvas"
86
- style="margin-top: 3vh; width: 100%">
87
- <div fxLayout="column" fxFlex="100">
88
- <app-base-table [pageInfo]="drillDownPageInfo" [columns]="drillDownColumns" id="junior"
89
- [reportRequest]="reportRequest" (userAction)="emitUserAction($event)" (hyperLinkAction)="emitHyperLinkAction($event)" ></app-base-table>
90
- </div>
91
- </div>
92
- <div *ngIf="activeLevel === 4" fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start start" fxLayoutAlign.lt-sm="center start"
93
- class="main-form-canvas"
94
- style="margin-top: 3vh; width: 100%">
95
- <div fxLayout="column" fxFlex="100">
96
- <app-base-table [pageInfo]="drillDownPageInfo" [columns]="drillDownColumns"
97
- [reportRequest]="reportRequest" (userAction)="emitUserAction($event)" (hyperLinkAction)="emitHyperLinkAction($event)" ></app-base-table>
98
- </div>
99
- </div>
100
- </div>
101
- <mat-menu #menu="matMenu">
102
- <button type="button"
103
- mat-menu-item
104
- *ngFor="let type of types"
105
- (click)="extractReport(type)">
106
- {{ type }}
107
- </button>
108
- </mat-menu>
109
-
1
+ <div class="page-container">
2
+
3
+ <div class="row row-center-start mb-10px full-width">
4
+ <app-title-bar [pageTitle]="getTitle()" [newAction]="false"></app-title-bar>
5
+ <mat-icon *ngIf="pageInfo?.hasHint"
6
+ [matTooltip]="pageInfo.labelsSection + '.hint' | translate"
7
+ matTooltipPosition="right"
8
+ color="primary"
9
+ class="help-icon"
10
+ matTooltipClass="custom-tooltip">
11
+ help_outline
12
+ </mat-icon>
13
+ </div>
14
+
15
+ <app-base-form-canvas
16
+ [pageInfo]="pageInfo"
17
+ [fields]="fields"
18
+ [editable]="isEditable"
19
+ [errors]="errors"
20
+ [item]="reportForm?.value || {}"
21
+ (formUpdated)="updateForm($event)">
22
+ </app-base-form-canvas>
23
+
24
+ <div class="row main-form-canvas mt-3vh">
25
+ <div class="column flex-49">
26
+ <div class="row row-center-start">
27
+ <button *ngIf="activeLevel === 1" color="primary" mat-flat-button (click)="doAction(x)"
28
+ [disabled]="!isValidForm()" class="action-button" id="activity-generate-btn">
29
+ {{ 'REPORTS.generate' | translate }}
30
+ </button>
31
+ <button mat-raised-button [matMenuTriggerFor]="menu" [disabled]="getIsEmptyList()"
32
+ color="primary" class="btn-none-background-primary action-button" id="activity-extract-trigger">
33
+ {{ 'extract' | translate }}
34
+ <mat-icon class="expand_more actionButton__expand">expand_more</mat-icon>
35
+ </button>
36
+ <button mat-flat-button (click)="clear()"
37
+ [disabled]="isFormEmpty() || activeLevel > 1"
38
+ class="action-button" id="activity-clear-btn">
39
+ {{ 'REPORTS.clear' | translate }}
40
+ </button>
41
+ <button *ngIf="activeLevel === 1 && drillDownEnabled()" color="warn" mat-flat-button
42
+ (click)="drillDown()" class="action-button" id="activity-drilldown-btn">
43
+ {{ drillDownLabel() | translate }}
44
+ </button>
45
+ <button *ngIf="activeLevel > 1 && !(isComparisonReport && activeLevel == 2)" color="warn"
46
+ mat-flat-button (click)="goUp()" class="action-button" id="activity-up-btn">
47
+ {{ 'REPORTS.up' | translate }}
48
+ </button>
49
+ </div>
50
+ </div>
51
+ <div class="column flex-49"></div>
52
+ </div>
53
+
54
+ <!-- Base tables -->
55
+ <ng-container *ngIf="activeLevel === 1">
56
+ <div class="row main-form-canvas mt-3vh">
57
+ <div class="column flex-100">
58
+ <app-base-table [pageInfo]="pageInfo" [columns]="columnsDefinition" [enforceRefresh]="reloadData"
59
+ id="parent" [reportRequest]="reportRequest"
60
+ (userAction)="emitUserAction($event)"
61
+ (hyperLinkAction)="emitHyperLinkAction($event)">
62
+ </app-base-table>
63
+ </div>
64
+ </div>
65
+ </ng-container>
66
+
67
+ <ng-container *ngIf="activeLevel === 2">
68
+ <div class="row main-form-canvas mt-3vh">
69
+ <div class="column flex-100">
70
+ <app-base-table [pageInfo]="drillDownPageInfo" [columns]="drillDownColumns" id="child"
71
+ [reportRequest]="reportRequest"
72
+ (userAction)="emitUserAction($event)"
73
+ (hyperLinkAction)="emitHyperLinkAction($event)">
74
+ </app-base-table>
75
+ </div>
76
+ </div>
77
+ </ng-container>
78
+
79
+ <ng-container *ngIf="activeLevel === 3">
80
+ <div class="row main-form-canvas mt-3vh">
81
+ <div class="column flex-100">
82
+ <app-base-table [pageInfo]="drillDownPageInfo" [columns]="drillDownColumns" id="junior"
83
+ [reportRequest]="reportRequest"
84
+ (userAction)="emitUserAction($event)"
85
+ (hyperLinkAction)="emitHyperLinkAction($event)">
86
+ </app-base-table>
87
+ </div>
88
+ </div>
89
+ </ng-container>
90
+
91
+ <ng-container *ngIf="activeLevel === 4">
92
+ <div class="row main-form-canvas mt-3vh">
93
+ <div class="column flex-100">
94
+ <app-base-table [pageInfo]="drillDownPageInfo" [columns]="drillDownColumns"
95
+ [reportRequest]="reportRequest"
96
+ (userAction)="emitUserAction($event)"
97
+ (hyperLinkAction)="emitHyperLinkAction($event)">
98
+ </app-base-table>
99
+ </div>
100
+ </div>
101
+ </ng-container>
102
+
103
+ </div>
104
+
105
+ <!-- Menu -->
106
+ <mat-menu #menu="matMenu">
107
+ <button type="button" mat-menu-item *ngFor="let type of types" (click)="extractReport(type)" [attr.id]="'activity-extract-item-' + type">
108
+ {{ type }}
109
+ </button>
110
+ </mat-menu>
@@ -0,0 +1,69 @@
1
+
2
+ .page-container {
3
+ display: flex;
4
+ flex-direction: column;
5
+ width: 100%;
6
+ }
7
+
8
+ .row {
9
+ display: flex;
10
+ flex-direction: row;
11
+ gap: 10px;
12
+ flex-wrap: wrap;
13
+ width: 100%;
14
+ }
15
+
16
+ .column {
17
+ display: flex;
18
+ flex-direction: column;
19
+ }
20
+
21
+ .flex-49 {
22
+ flex: 0 0 49%;
23
+ }
24
+
25
+ .flex-100 {
26
+ flex: 0 0 100%;
27
+ }
28
+
29
+ .row-center-start {
30
+ align-items: center;
31
+ justify-content: flex-start;
32
+ }
33
+
34
+ .mt-3vh { margin-top: 3vh; }
35
+ .mb-10px { margin-bottom: 10px; }
36
+
37
+ .action-button {
38
+ font-weight: bold;
39
+ min-width: 140px;
40
+ max-width: 200px;
41
+ margin: 0 10px;
42
+ }
43
+
44
+ .help-icon {
45
+ cursor: pointer;
46
+ margin-left: 10px;
47
+ }
48
+
49
+ @media (max-width: 960px) {
50
+ .flex-49, .flex-100 {
51
+ flex: 1 1 100%;
52
+ }
53
+ }
54
+
55
+ @media (max-width: 600px) {
56
+ .row {
57
+ flex-direction: column;
58
+ align-items: center;
59
+ }
60
+ .action-button {
61
+ width: 100%;
62
+ max-width: 300px;
63
+ margin: 5px 0;
64
+ }
65
+ .help-icon {
66
+ margin-left: 0;
67
+ margin-top: 5px;
68
+ }
69
+ }
@@ -1,25 +1,25 @@
1
- import {ComponentFixture, TestBed} from '@angular/core/testing';
2
-
3
- import {ActivityReportFormComponent} from './activity-report-form.component';
4
-
5
- describe('BaseFormComponent', () => {
6
- let component: ActivityReportFormComponent;
7
- let fixture: ComponentFixture<ActivityReportFormComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ ActivityReportFormComponent ]
12
- })
13
- .compileComponents();
14
- });
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(ActivityReportFormComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });
1
+ import {ComponentFixture, TestBed} from '@angular/core/testing';
2
+
3
+ import {ActivityReportFormComponent} from './activity-report-form.component';
4
+
5
+ describe('BaseFormComponent', () => {
6
+ let component: ActivityReportFormComponent;
7
+ let fixture: ComponentFixture<ActivityReportFormComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ ActivityReportFormComponent ]
12
+ })
13
+ .compileComponents();
14
+ });
15
+
16
+ beforeEach(() => {
17
+ fixture = TestBed.createComponent(ActivityReportFormComponent);
18
+ component = fixture.componentInstance;
19
+ fixture.detectChanges();
20
+ });
21
+
22
+ it('should create', () => {
23
+ expect(component).toBeTruthy();
24
+ });
25
+ });