@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,25 +1,65 @@
1
- .custom-paginator {
2
- display: flex;
3
- align-items: center;
4
- gap: 8px;
5
- }
6
-
7
- button {
8
- min-width: 32px;
9
- }
10
-
11
- .current-page {
12
- font-weight: bold;
13
- background-color: #2196f3;
14
- color: white;
15
- border-radius: 4px;
16
- }
17
-
18
- .ellipsis {
19
- padding: 0 8px;
20
- font-size: 14px;
21
- color: gray;
22
- background: none;
23
- border: none;
24
- cursor: pointer;
25
- }
1
+ .custom-paginator {
2
+ display: flex;
3
+ justify-content: space-between;
4
+ align-items: center;
5
+ padding: 4px 8px;
6
+ border: 1px solid #f0f0f0;
7
+ border-radius: 6px;
8
+ background: #fff;
9
+ font-size: 14px;
10
+ color: #555 !important;
11
+ gap: 16px;
12
+ margin-top: 4px;
13
+
14
+ .range-label {
15
+ color: #6b7280;
16
+ font-size: 13px;
17
+ }
18
+
19
+ .right-section {
20
+ display: flex;
21
+ align-items: center;
22
+ gap: 16px;
23
+
24
+ .rows-per-page {
25
+ display: flex;
26
+ align-items: center;
27
+ gap: 4px;
28
+
29
+ mat-select {
30
+ width: 60px;
31
+ font-size: 13px;
32
+ color: #555;
33
+ }
34
+ }
35
+
36
+ .nav-buttons {
37
+ display: flex;
38
+ align-items: center;
39
+ gap: 8px;
40
+
41
+ span {
42
+ min-width: 40px;
43
+ text-align: center;
44
+ font-size: 13px;
45
+ }
46
+ }
47
+ }
48
+
49
+ button {
50
+ border: 1px solid #dbdbdb;
51
+ border-radius: 5px !important;
52
+ width: 28px;
53
+ height: 28px;
54
+ padding: 0 !important;
55
+ font-size: 18px;
56
+
57
+ &.active-chevron mat-icon {
58
+ color: var(--primary-color) ;
59
+ }
60
+
61
+ &.disabled-chevron mat-icon {
62
+ color: #555;
63
+ }
64
+ }
65
+ }
@@ -1,34 +1,30 @@
1
- <div class="custom-paginator" [dir]="currentDirection">
2
- <!-- Previous Button -->
3
- <button mat-icon-button (click)="previousPage()" [disabled]="currentPage === 1" *ngIf="currentDirection == 'ltr'">
4
- <mat-icon>chevron_left</mat-icon>
5
- </button>
6
- <button mat-icon-button (click)="previousPage()" [disabled]="currentPage === 1" *ngIf="currentDirection == 'rtl'">
7
- <mat-icon>chevron_right</mat-icon>
8
- </button>
9
-
10
- <!-- Page Numbers and Ellipses -->
11
- <ng-container *ngFor="let page of viewablePages">
12
- <ng-container *ngIf="page === '...'">
13
- <span class="ellipsis" (click)="goToPage(page)">{{ page }}</span>
14
- </ng-container>
15
- <ng-container *ngIf="page !== '...'">
16
- <button
17
- mat-button
18
- [disabled]="page === currentPage"
19
- (click)="goToPage(page)"
20
- [class.current-page]="page === currentPage"
21
- >
22
- {{ page }}
23
- </button>
24
- </ng-container>
25
- </ng-container>
26
-
27
- <!-- Next Button -->
28
- <button mat-icon-button (click)="nextPage()" [disabled]="currentPage === totalPages" *ngIf="currentDirection == 'ltr'">
29
- <mat-icon>chevron_right</mat-icon>
30
- </button>
31
- <button mat-icon-button (click)="nextPage()" [disabled]="currentPage === totalPages" *ngIf="currentDirection == 'rtl'">
32
- <mat-icon>chevron_left</mat-icon>
33
- </button>
34
- </div>
1
+ <div class="custom-paginator" [dir]="currentDirection">
2
+ <span class="range-label">
3
+ {{ (currentPage - 1) * pageSize + 1 }} -
4
+ {{ Math.min(currentPage * pageSize, totalItems) }}
5
+ {{'PAGINATION.of' | translate}} {{ totalItems }}
6
+ </span>
7
+
8
+ <div class="right-section">
9
+ <div class="rows-per-page">
10
+ {{'PAGINATION.rowsPerPage' | translate}}:
11
+ <mat-select [(value)]="pageSize" (selectionChange)="onPageSizeChange($event.value)">
12
+ <mat-option *ngFor="let size of pageSizeOptions" [value]="size">{{ size }}</mat-option>
13
+ </mat-select>
14
+ </div>
15
+
16
+ <div class="nav-buttons">
17
+ <button mat-icon-button (click)="previousPage()" [disabled]="currentPage === 1" id="paginator-prev-btn">
18
+ <mat-icon>{{ currentDirection === 'rtl' ? 'chevron_right' : 'chevron_left' }}</mat-icon>
19
+ </button>
20
+ <span><span style="color: var(--primary-color)">{{ currentPage }}</span> / {{ totalPages }}</span>
21
+ <button mat-icon-button
22
+ (click)="nextPage()"
23
+ [disabled]="currentPage === totalPages"
24
+ [ngClass]="{'active-chevron': currentPage !== totalPages, 'disabled-chevron': currentPage === totalPages}"
25
+ id="paginator-next-btn">
26
+ <mat-icon>{{ currentDirection === 'rtl' ? 'chevron_left' : 'chevron_right' }}</mat-icon>
27
+ </button>
28
+ </div>
29
+ </div>
30
+ </div>
@@ -1,94 +1,87 @@
1
- import {Component, Input, Output, EventEmitter, OnChanges, OnInit} from '@angular/core';
2
- import { MatIconModule } from '@angular/material/icon';
3
- import { MatButtonModule } from '@angular/material/button';
4
- import { NgIf, NgForOf } from '@angular/common';
5
- import {Directionality} from "@angular/cdk/bidi";
6
-
7
- @Component({
8
- selector: 'app-paginator',
9
- templateUrl: './paginator.component.html',
10
- styleUrls: ['./paginator.component.css'],
11
- standalone: true,
12
- imports: [MatIconModule, MatButtonModule, NgIf, NgForOf],
13
- })
14
- export class PaginatorComponent implements OnInit , OnChanges {
15
- maxSize = 3;
16
-
17
- @Input() currentPage = 1;
18
- @Input() totalPages = 1;
19
- @Output() pageChange = new EventEmitter<number>();
20
- currentDirection: 'ltr' | 'rtl';
21
- constructor(private directionality: Directionality) {
22
- }
23
- viewablePages: (number | string)[] = [];
24
- ngOnInit() {
25
- this.currentDirection = this.directionality.value;
26
- this.directionality.change.subscribe((value) => {
27
- this.currentDirection = value;
28
- })
29
- }
30
-
31
- ngOnChanges() {
32
- this.calculatePages();
33
- }
34
-
35
- calculatePages() {
36
- const pages: (number | string)[] = [];
37
- const halfSize = Math.floor(this.maxSize / 2);
38
-
39
- pages.push(1);
40
-
41
- let start = Math.max(this.currentPage - halfSize, 2);
42
- let end = Math.min(this.currentPage + halfSize, this.totalPages - 1);
43
-
44
- if (this.currentPage <= halfSize) {
45
- end = Math.min(this.maxSize, this.totalPages - 1);
46
- } else if (this.currentPage + halfSize >= this.totalPages) {
47
- start = Math.max(this.totalPages - this.maxSize + 2, 2);
48
- }
49
-
50
- if (start > 2) {
51
- pages.push('...');
52
- }
53
-
54
- for (let i = start; i <= end; i++) {
55
- pages.push(i);
56
- }
57
-
58
- if (end < this.totalPages - 1) {
59
- pages.push('...');
60
- }
61
-
62
- if (this.totalPages > 1) {
63
- pages.push(this.totalPages);
64
- }
65
-
66
- this.viewablePages = pages;
67
- }
68
-
69
- goToPage(page: number | string) {
70
- if (page === '...') {
71
- if (this.viewablePages[1] === '...') {
72
- this.currentPage = Math.max(this.currentPage - this.maxSize, 1);
73
- } else {
74
- this.currentPage = Math.min(this.currentPage + this.maxSize, this.totalPages);
75
- }
76
- } else if (typeof page === 'number' && page !== this.currentPage) {
77
- this.currentPage = page;
78
- }
79
-
80
- this.pageChange.emit(this.currentPage);
81
- this.calculatePages();
82
- }
83
- nextPage() {
84
- if (this.currentPage < this.totalPages) {
85
- this.goToPage(this.currentPage + 1);
86
- }
87
- }
88
-
89
- previousPage() {
90
- if (this.currentPage > 1) {
91
- this.goToPage(this.currentPage - 1);
92
- }
93
- }
94
- }
1
+ import { Component, Input, Output, EventEmitter, OnInit, OnChanges } from '@angular/core';
2
+ import { MatIconModule } from '@angular/material/icon';
3
+ import { MatButtonModule } from '@angular/material/button';
4
+ import {NgIf, NgForOf, NgClass} from '@angular/common';
5
+ import { Directionality } from '@angular/cdk/bidi';
6
+ import { MatOption, MatSelect } from '@angular/material/select';
7
+ import {TranslateModule} from "@ngx-translate/core";
8
+
9
+ @Component({
10
+ selector: 'app-paginator',
11
+ templateUrl: './paginator.component.html',
12
+ styleUrls: ['./paginator.component.css'],
13
+ standalone: true,
14
+ imports: [MatIconModule, MatButtonModule, NgIf, NgForOf, MatSelect, MatOption, NgClass, TranslateModule],
15
+ })
16
+ export class PaginatorComponent implements OnInit, OnChanges {
17
+ @Input() currentPage = 1;
18
+ @Input() totalItems = 0;
19
+ @Input() pageSize = 10;
20
+ @Input() pageSizeOptions: number[] = [5, 10, 25, 50];
21
+
22
+ @Output() pageChange = new EventEmitter<number>();
23
+ @Output() pageSizeChange = new EventEmitter<number>();
24
+
25
+ currentDirection: 'ltr' | 'rtl' = 'ltr';
26
+
27
+ constructor(private directionality: Directionality) {}
28
+
29
+ ngOnInit() {
30
+ this.currentDirection = this.directionality.value;
31
+ this.directionality.change?.subscribe((value) => {
32
+ this.currentDirection = value;
33
+ });
34
+ if (!this.pageSizeOptions.includes(this.pageSize)) {
35
+ Promise.resolve().then(() => {
36
+ this.pageSize = this.pageSizeOptions[1];
37
+ this.pageSizeChange.emit(this.pageSize);
38
+ });
39
+ }
40
+ }
41
+
42
+ ngOnChanges() {
43
+ if (this.currentPage > this.totalPages) {
44
+ this.currentPage = this.totalPages || 1;
45
+ }
46
+ }
47
+
48
+ get totalPages(): number {
49
+ return Math.ceil(this.totalItems / this.pageSize);
50
+ }
51
+
52
+ get startIndex(): number {
53
+ return this.totalItems === 0 ? 0 : (this.currentPage - 1) * this.pageSize + 1;
54
+ }
55
+
56
+ get endIndex(): number {
57
+ return Math.min(this.currentPage * this.pageSize, this.totalItems);
58
+ }
59
+
60
+ goToPage(page: number) {
61
+ if (page >= 1 && page <= this.totalPages) {
62
+ this.currentPage = page;
63
+ this.pageChange.emit(this.currentPage);
64
+ }
65
+ }
66
+
67
+ nextPage() {
68
+ if (this.currentPage < this.totalPages) {
69
+ this.goToPage(this.currentPage + 1);
70
+ }
71
+ }
72
+
73
+ previousPage() {
74
+ if (this.currentPage > 1) {
75
+ this.goToPage(this.currentPage - 1);
76
+ }
77
+ }
78
+
79
+ onPageSizeChange(size: number) {
80
+ this.pageSize = size;
81
+ this.currentPage = 1;
82
+ this.pageSizeChange.emit(this.pageSize);
83
+ this.pageChange.emit(this.currentPage);
84
+ }
85
+
86
+ protected readonly Math = Math;
87
+ }
@@ -1,17 +1,17 @@
1
- ::ng-deep .mat-dialog-actions {
2
- justify-content: flex-end !important;
3
- }
4
- .close-button {
5
- position: absolute;
6
- right: 8px;
7
- top: 8px;
8
- z-index: 10;
9
- background-color: white;
10
- border-radius: 50%;
11
- }
12
-
13
- :host-context([dir="rtl"]) .close-button {
14
- right: auto;
15
- left: 8px;
16
- }
17
-
1
+ ::ng-deep .mat-dialog-actions {
2
+ justify-content: flex-end !important;
3
+ }
4
+ .close-button {
5
+ position: absolute;
6
+ right: 8px;
7
+ top: 8px;
8
+ z-index: 10;
9
+ background-color: white;
10
+ border-radius: 50%;
11
+ }
12
+
13
+ :host-context([dir="rtl"]) .close-button {
14
+ right: auto;
15
+ left: 8px;
16
+ }
17
+
@@ -1,16 +1,16 @@
1
- <mat-dialog-content style="max-height: 70vh; overflow: auto; position: relative;">
2
- <button mat-icon-button class="close-button" (click)="cancel()" [attr.dir]="dialogDirection">
3
- <mat-icon>close</mat-icon>
4
- </button>
5
-
6
- <h1 mat-dialog-title [innerHTML]="getTitle()"></h1>
7
-
8
- <app-base-table
9
- [pageInfo]="pageInfo"
10
- [columns]="columns"
11
- id="junior"
12
- [enforceRefresh]="true"
13
- [reportRequest]="reportRequest">
14
- </app-base-table>
15
- </mat-dialog-content>
16
-
1
+ <mat-dialog-content style="max-height: 70vh; overflow: auto; position: relative;">
2
+ <button mat-icon-button class="close-button" (click)="cancel()" [attr.dir]="dialogDirection" id="report-details-close-btn">
3
+ <mat-icon>close</mat-icon>
4
+ </button>
5
+
6
+ <h1 mat-dialog-title [innerHTML]="getTitle()"></h1>
7
+
8
+ <app-base-table
9
+ [pageInfo]="pageInfo"
10
+ [columns]="columns"
11
+ id="junior"
12
+ [enforceRefresh]="true"
13
+ [reportRequest]="reportRequest">
14
+ </app-base-table>
15
+ </mat-dialog-content>
16
+
@@ -1,23 +1,23 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { ReportDetailsDialogComponent } from './report-details-dialog.component';
4
-
5
- describe('ActionCommentComponent', () => {
6
- let component: ReportDetailsDialogComponent;
7
- let fixture: ComponentFixture<ReportDetailsDialogComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [ReportDetailsDialogComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(ReportDetailsDialogComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { ReportDetailsDialogComponent } from './report-details-dialog.component';
4
+
5
+ describe('ActionCommentComponent', () => {
6
+ let component: ReportDetailsDialogComponent;
7
+ let fixture: ComponentFixture<ReportDetailsDialogComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ imports: [ReportDetailsDialogComponent]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(ReportDetailsDialogComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });