@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.
- package/ng-package.json +7 -7
- package/package.json +14 -12
- package/src/lib/base-model/SearchStrConfig.ts +12 -12
- package/src/lib/base-model/api-response.ts +23 -23
- package/src/lib/base-model/audit-log-entry.ts +7 -7
- package/src/lib/base-model/button-action-settings.ts +29 -25
- package/src/lib/base-model/column-def.model.ts +34 -34
- package/src/lib/base-model/do-action-request.ts +11 -11
- package/src/lib/base-model/feature-item.ts +9 -0
- package/src/lib/base-model/field-action.ts +7 -7
- package/src/lib/base-model/field-filter.model.ts +7 -14
- package/src/lib/base-model/field-info.ts +102 -98
- package/src/lib/base-model/field-predicate.model.ts +7 -7
- package/src/lib/base-model/filter-request.ts +27 -27
- package/src/lib/base-model/filter.model.ts +49 -49
- package/src/lib/base-model/get-items-list.ts +24 -24
- package/src/lib/base-model/index.ts +11 -11
- package/src/lib/base-model/items-total.model.ts +12 -0
- package/src/lib/base-model/line-item.model.ts +18 -0
- package/src/lib/base-model/lookupItem.ts +21 -21
- package/src/lib/base-model/null-snackmessage.ts +9 -9
- package/src/lib/base-model/page-info.ts +54 -51
- package/src/lib/base-model/report-request.model.ts +33 -33
- package/src/lib/base-model/response-envelop.model.ts +15 -15
- package/src/lib/base-model/snack-message.model.ts +14 -14
- package/src/lib/base-model/snackmessage-interface.ts +7 -7
- package/src/lib/base-model/table-column.interface.ts +29 -29
- package/src/lib/base-model/table-page-user-action.interface.ts +33 -33
- package/src/lib/base-model/workflow/workflow-steps.model.ts +9 -9
- package/src/lib/base-model/workflow/workflow.model.ts +52 -52
- package/src/lib/components/action-comment/action-comment.component.css +52 -0
- package/src/lib/components/action-comment/action-comment.component.html +47 -0
- package/src/lib/components/{rejection-comment → action-comment}/action-comment.component.spec.ts +23 -23
- package/src/lib/components/{rejection-comment → action-comment}/action-comment.component.ts +102 -86
- package/src/lib/components/action-confirmation/action-confirmation.component.css +46 -34
- package/src/lib/components/action-confirmation/action-confirmation.component.html +32 -18
- package/src/lib/components/action-confirmation/action-confirmation.component.spec.ts +23 -23
- package/src/lib/components/action-confirmation/action-confirmation.component.ts +58 -58
- package/src/lib/components/activity-report-form/activity-report-form.component.html +110 -109
- package/src/lib/components/activity-report-form/activity-report-form.component.scss +69 -0
- package/src/lib/components/activity-report-form/activity-report-form.component.spec.ts +25 -25
- package/src/lib/components/activity-report-form/activity-report-form.component.ts +616 -605
- package/src/lib/components/advanced-filter/field-filter/field-filter.component.html +8 -0
- package/src/lib/components/advanced-filter/field-filter/field-filter.component.scss +0 -0
- package/src/lib/components/advanced-filter/field-filter/field-filter.component.spec.ts +25 -0
- package/src/lib/components/advanced-filter/field-filter/field-filter.component.ts +55 -0
- package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.html +36 -0
- package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.scss +130 -0
- package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.spec.ts +25 -0
- package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.ts +186 -0
- package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.css +51 -51
- package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.html +23 -23
- package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.spec.ts +23 -23
- package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.ts +69 -69
- package/src/lib/components/audit-log-list/audit-log.component.html +26 -23
- package/src/lib/components/audit-log-list/audit-log.component.scss +50 -0
- package/src/lib/components/audit-log-list/audit-log.component.spec.ts +25 -25
- package/src/lib/components/audit-log-list/audit-log.component.ts +114 -116
- package/src/lib/components/auto-complete/auto-complete.component.css +55 -14
- package/src/lib/components/auto-complete/auto-complete.component.html +45 -29
- package/src/lib/components/auto-complete/auto-complete.component.spec.ts +23 -23
- package/src/lib/components/auto-complete/auto-complete.component.ts +331 -330
- package/src/lib/components/base-form/base-form.component.html +59 -58
- package/src/lib/components/base-form/base-form.component.scss +68 -0
- package/src/lib/components/base-form/base-form.component.spec.ts +25 -25
- package/src/lib/components/base-form/base-form.component.ts +323 -305
- package/src/lib/components/base-form-canvas/base-form-canvas.component.css +196 -22
- package/src/lib/components/base-form-canvas/base-form-canvas.component.html +1095 -1006
- package/src/lib/components/base-form-canvas/base-form-canvas.component.spec.ts +23 -23
- package/src/lib/components/base-form-canvas/base-form-canvas.component.ts +680 -573
- package/src/lib/components/base-input-dialog/base-input-dialog.component.css +67 -0
- package/src/lib/components/base-input-dialog/base-input-dialog.component.html +47 -42
- package/src/lib/components/base-input-dialog/base-input-dialog.component.spec.ts +23 -23
- package/src/lib/components/base-input-dialog/base-input-dialog.component.ts +77 -78
- package/src/lib/components/base-table/base-table.component.html +268 -242
- package/src/lib/components/base-table/base-table.component.scss +140 -31
- package/src/lib/components/base-table/base-table.component.spec.ts +25 -25
- package/src/lib/components/base-table/base-table.component.ts +621 -568
- package/src/lib/components/button-actions/button-actions.component.html +27 -28
- package/src/lib/components/button-actions/button-actions.component.scss +101 -6
- package/src/lib/components/button-actions/button-actions.component.spec.ts +23 -23
- package/src/lib/components/button-actions/button-actions.component.ts +70 -72
- package/src/lib/components/editable-base-table/editable-base-table.component.html +337 -372
- package/src/lib/components/editable-base-table/editable-base-table.component.scss +126 -44
- package/src/lib/components/editable-base-table/editable-base-table.component.spec.ts +25 -25
- package/src/lib/components/editable-base-table/editable-base-table.component.ts +579 -570
- package/src/lib/components/equation-builder/equation-builder.component.css +39 -0
- package/src/lib/components/equation-builder/equation-builder.component.html +31 -31
- package/src/lib/components/equation-builder/equation-builder.component.spec.ts +23 -23
- package/src/lib/components/equation-builder/equation-builder.component.ts +119 -121
- package/src/lib/components/item-line-editor/item-line-editor.component.html +102 -0
- package/src/lib/components/item-line-editor/item-line-editor.component.scss +152 -0
- package/src/lib/components/item-line-editor/item-line-editor.component.spec.ts +23 -0
- package/src/lib/components/item-line-editor/item-line-editor.component.ts +306 -0
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.css +19 -11
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.html +38 -38
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.spec.ts +23 -23
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.ts +315 -317
- package/src/lib/components/paginator/paginator.component.css +65 -25
- package/src/lib/components/paginator/paginator.component.html +30 -34
- package/src/lib/components/paginator/paginator.component.ts +87 -94
- package/src/lib/components/report-details-dialog/report-details-dialog.component.css +17 -17
- package/src/lib/components/report-details-dialog/report-details-dialog.component.html +16 -16
- package/src/lib/components/report-details-dialog/report-details-dialog.component.spec.ts +23 -23
- package/src/lib/components/report-details-dialog/report-details-dialog.component.ts +111 -113
- package/src/lib/components/report-form/report-form.component.html +92 -94
- package/src/lib/components/report-form/report-form.component.scss +51 -0
- package/src/lib/components/report-form/report-form.component.spec.ts +25 -25
- package/src/lib/components/report-form/report-form.component.ts +599 -588
- package/src/lib/components/search-bar/search-bar.component.html +51 -62
- package/src/lib/components/search-bar/search-bar.component.scss +63 -8
- package/src/lib/components/search-bar/search-bar.component.spec.ts +25 -25
- package/src/lib/components/search-bar/search-bar.component.ts +68 -70
- package/src/lib/components/section-form-canvas/section-form-canvas.component.html +43 -0
- package/src/lib/components/section-form-canvas/section-form-canvas.component.scss +81 -0
- package/src/lib/components/section-form-canvas/section-form-canvas.component.spec.ts +23 -0
- package/src/lib/components/section-form-canvas/section-form-canvas.component.ts +67 -0
- package/src/lib/components/shared/action-button/action-button.component.html +12 -0
- package/src/lib/components/shared/action-button/action-button.component.scss +45 -0
- package/src/lib/components/shared/action-button/action-button.component.ts +51 -0
- package/src/lib/components/shared/action-card/action-card.component.html +78 -0
- package/src/lib/components/shared/action-card/action-card.component.scss +238 -0
- package/src/lib/components/shared/action-card/action-card.component.ts +56 -0
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.css +135 -54
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.html +36 -22
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.spec.ts +23 -23
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.ts +71 -45
- package/src/lib/components/shared-list/shared-list.component.html +17 -17
- package/src/lib/components/shared-list/shared-list.component.spec.ts +23 -23
- package/src/lib/components/shared-list/shared-list.component.ts +53 -53
- package/src/lib/components/snackbar-static/snackbar-static.component.html +20 -0
- package/src/lib/components/snackbar-static/snackbar-static.component.scss +135 -0
- package/src/lib/components/snackbar-static/snackbar-static.component.ts +26 -0
- package/src/lib/components/title-bar/title-bar.component.html +35 -31
- package/src/lib/components/title-bar/title-bar.component.scss +126 -23
- package/src/lib/components/title-bar/title-bar.component.spec.ts +23 -23
- package/src/lib/components/title-bar/title-bar.component.ts +126 -119
- package/src/lib/services/backend-service.ts +287 -286
- package/src/lib/services/index.ts +3 -3
- package/src/lib/services/top-panel.ts +17 -17
- package/src/lib/services/trigger-form.service.ts +11 -11
- package/src/lib/share-module/shared-module.ts +10 -10
- package/src/lib/utils/base-utils.ts +102 -102
- package/src/lib/validators/date-range-validator.ts +31 -31
- package/src/lib/validators/index.ts +3 -3
- package/src/lib/validators/match-list.validator.ts +10 -10
- package/src/lib/validators/multi-email-validator.ts +15 -15
- package/src/public-api.ts +29 -21
- package/tsconfig.lib.json +15 -15
- package/tsconfig.lib.prod.json +11 -11
- package/tsconfig.spec.json +15 -15
- package/src/lib/components/rejection-comment/action-comment.component.css +0 -33
- package/src/lib/components/rejection-comment/action-comment.component.html +0 -46
- package/src/lib/styles/invoiceq-theme.scss +0 -252
- package/src/lib/styles/styles.scss +0 -1723
|
@@ -1,242 +1,268 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
<
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
</ng-container>
|
|
232
|
-
|
|
233
|
-
<
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
</
|
|
242
|
-
|
|
1
|
+
<div class="flex-column baseTable">
|
|
2
|
+
<div class="flex-row flex-100" *ngIf="!pageInfo.hideTitle">
|
|
3
|
+
<div [class.flex-50]="pageInfo.draftSupported" [class.flex-100]="!pageInfo.draftSupported" class="flex-column align-start">
|
|
4
|
+
<app-title-bar
|
|
5
|
+
[pageTitle]="pageInfo.hideTitle ? '' : pageInfo.labelsSection+'.list_title'"
|
|
6
|
+
[titleMode]="''"
|
|
7
|
+
[newAction]="showAddNew()"
|
|
8
|
+
[showExtractButton]="!pageInfo.hideExtractButton"
|
|
9
|
+
[extraButton]="extraButton"
|
|
10
|
+
(newActionClicked)="onAddNewAction($event)"
|
|
11
|
+
(extractReport)="extractReport($event)"
|
|
12
|
+
[totalElements]="pageInfo.hideTitle ? undefined : totalElements">
|
|
13
|
+
</app-title-bar>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="flex-50 flex-column align-end" *ngIf="pageInfo.draftSupported">
|
|
16
|
+
<mat-chip-listbox aria-label="Color selection" [multiple]="false">
|
|
17
|
+
<mat-chip-option [selected]="!this.isPending" [color]="'accent'" [value]="'COMPLETED'" (click)="switchViewMode(false)">
|
|
18
|
+
{{'finished' | translate}}
|
|
19
|
+
</mat-chip-option>
|
|
20
|
+
<mat-chip-option [selected]="this.isPending" [color]="'accent'" [value]="'PENDING'" (click)="switchViewMode(true)">
|
|
21
|
+
{{'todo' | translate}}
|
|
22
|
+
</mat-chip-option>
|
|
23
|
+
</mat-chip-listbox>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div class="filter-row" *ngIf="!pageInfo.hideAdvancedFilter">
|
|
28
|
+
<app-filter-builder
|
|
29
|
+
*ngIf="!pageInfo.hideAdvancedFilter"
|
|
30
|
+
[pageInfo]="pageInfo"
|
|
31
|
+
[columns]="columns"
|
|
32
|
+
[filterFields]="filterFields"
|
|
33
|
+
(filterInformation)="doAdvancedSearch($event)"
|
|
34
|
+
(isEmpty)="resetData($event)">
|
|
35
|
+
</app-filter-builder>
|
|
36
|
+
|
|
37
|
+
<div class="button-group" >
|
|
38
|
+
|
|
39
|
+
<button *ngIf="!pageInfo.hideExtractButton"
|
|
40
|
+
mat-flat-button
|
|
41
|
+
[matMenuTriggerFor]="exportMenu"
|
|
42
|
+
color="primary"
|
|
43
|
+
class="btn-none-background-primary btn-export"
|
|
44
|
+
>
|
|
45
|
+
<div class="button-text">
|
|
46
|
+
<mat-icon>file_export</mat-icon>
|
|
47
|
+
<span>{{ 'export' | translate }}</span>
|
|
48
|
+
<mat-icon class="arrow-icon">arrow_drop_down</mat-icon>
|
|
49
|
+
</div>
|
|
50
|
+
</button>
|
|
51
|
+
|
|
52
|
+
<mat-menu #exportMenu="matMenu">
|
|
53
|
+
<button
|
|
54
|
+
mat-menu-item
|
|
55
|
+
*ngFor="let type of types"
|
|
56
|
+
(click)="extractReport(type)"
|
|
57
|
+
>
|
|
58
|
+
<span>{{ type | uppercase }}</span>
|
|
59
|
+
</button>
|
|
60
|
+
</mat-menu>
|
|
61
|
+
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
<div class="flex-row flex-100 baseTable__detailsColumn">
|
|
67
|
+
<div class="flex-100">
|
|
68
|
+
<div class="flex-row flex-100 mainTable">
|
|
69
|
+
<table [dataSource]="dataSource" class="flex-fill" mat-table matSort (matSortChange)="onSortAction($event)">
|
|
70
|
+
<ng-container *ngFor="let column of this.columns; let last=last">
|
|
71
|
+
<ng-container matColumnDef="{{column.property}}">
|
|
72
|
+
<ng-container *ngIf="column.enableSorting; else withoutSortingColumn">
|
|
73
|
+
<th *matHeaderCellDef class="mainTable__th" mat-header-cell mat-sort-header>
|
|
74
|
+
{{ labelKey(column) | translate }}
|
|
75
|
+
</th>
|
|
76
|
+
</ng-container>
|
|
77
|
+
<ng-template #withoutSortingColumn>
|
|
78
|
+
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}</th>
|
|
79
|
+
</ng-template>
|
|
80
|
+
|
|
81
|
+
<ng-container [ngSwitch]="column.type">
|
|
82
|
+
<ng-container *ngSwitchCase="'workflowStatus'">
|
|
83
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary" mat-cell>
|
|
84
|
+
<button mat-button class="wfStatus {{ getStatusDescription(element)}}" [attr.id]="'table-btn-wf-'+column.property+'-'+(element.id || element.key || '')">{{ getStatusDescription(element) }}</button>
|
|
85
|
+
</td>
|
|
86
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
87
|
+
<button mat-button class="wfStatus {{ getStatusDescription(element)}}" [attr.id]="'table-btn-wf2-'+column.property+'-'+(element.id || element.key || '')">{{ getStatusDescription(element) }}</button>
|
|
88
|
+
</td>
|
|
89
|
+
</ng-container>
|
|
90
|
+
|
|
91
|
+
<ng-container *ngSwitchCase="'hyper-text'">
|
|
92
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" (click)="hyperLinkClicked(column.property,element)" mat-cell>
|
|
93
|
+
<mat-label [ngClass]="{'hyper-link': shouldRenderAsHyperLink(element)}">
|
|
94
|
+
{{ extractFieldName(element, column.property) }}
|
|
95
|
+
</mat-label>
|
|
96
|
+
</td>
|
|
97
|
+
</ng-container>
|
|
98
|
+
|
|
99
|
+
<ng-container *ngSwitchCase="'button'">
|
|
100
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary" mat-cell>
|
|
101
|
+
<button *ngIf="shouldShowButton(element)" mat-button class="primary" (click)="$event.stopPropagation(); actionButtonClicked(column.property, element)" [attr.id]="'table-btn-action-'+column.property">
|
|
102
|
+
{{ labelKey(column) + '_title' | translate }}
|
|
103
|
+
</button>
|
|
104
|
+
</td>
|
|
105
|
+
</ng-container>
|
|
106
|
+
|
|
107
|
+
<ng-container *ngSwitchCase="'icon'">
|
|
108
|
+
<td *matCellDef="let element" class="mainTable__td" mat-cell>
|
|
109
|
+
<mat-icon [ngClass]="{
|
|
110
|
+
'mainTable__td__icon-green': element[column.property] === 'pass',
|
|
111
|
+
'mainTable__td__icon-orange': element[column.property] === 'warning',
|
|
112
|
+
'mainTable__td__icon-red': element[column.property] === 'error'
|
|
113
|
+
}">
|
|
114
|
+
{{ getIcon(element[column.property]) }}
|
|
115
|
+
</mat-icon>
|
|
116
|
+
</td>
|
|
117
|
+
</ng-container>
|
|
118
|
+
|
|
119
|
+
<ng-container *ngSwitchCase="'checkbox'">
|
|
120
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary" mat-cell>
|
|
121
|
+
<mat-checkbox class="primary" [checked]="element[column.property]" (click)="$event.stopPropagation();actionCheckedClicked(column.property,element)"></mat-checkbox>
|
|
122
|
+
</td>
|
|
123
|
+
</ng-container>
|
|
124
|
+
|
|
125
|
+
<ng-container *ngSwitchCase="'stateType'">
|
|
126
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary" mat-cell>
|
|
127
|
+
<button mat-button class="stateType {{ element[column.property]}}" [attr.id]="'table-btn-state-'+column.property">{{ labelKeyByValue(column, element) | translate}}</button>
|
|
128
|
+
</td>
|
|
129
|
+
</ng-container>
|
|
130
|
+
|
|
131
|
+
<ng-container *ngSwitchCase="'date'">
|
|
132
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
133
|
+
{{ extractFieldName(element, column.property) | date:'yyyy-MM-dd' }}
|
|
134
|
+
</td>
|
|
135
|
+
</ng-container>
|
|
136
|
+
|
|
137
|
+
<ng-container *ngSwitchCase="'croppedText'">
|
|
138
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
139
|
+
{{ getCroppedText(element[column.property], element[column.width]) }}
|
|
140
|
+
</td>
|
|
141
|
+
</ng-container>
|
|
142
|
+
|
|
143
|
+
<ng-container *ngSwitchCase="'download'">
|
|
144
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" style="padding: 0;margin: 0;text-align: center;" mat-cell>
|
|
145
|
+
<mat-icon class="mainTable__td__icon-blue">system_update_alt</mat-icon>
|
|
146
|
+
</td>
|
|
147
|
+
</ng-container>
|
|
148
|
+
|
|
149
|
+
<ng-container *ngSwitchCase="'onOff'">
|
|
150
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
151
|
+
<mat-icon *ngIf="element[column.property] === null" class="mainTable__td__icon-darkorange">flag</mat-icon>
|
|
152
|
+
<mat-icon *ngIf="element[column.property] === false" class="mainTable__td__icon-red">flag</mat-icon>
|
|
153
|
+
<mat-icon *ngIf="element[column.property] === true" class="mainTable__td__icon-green">flag</mat-icon>
|
|
154
|
+
</td>
|
|
155
|
+
</ng-container>
|
|
156
|
+
|
|
157
|
+
<ng-container *ngSwitchCase="'status'">
|
|
158
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
159
|
+
<span *ngIf="element[column.property] === null || element[column.property] === false">
|
|
160
|
+
{{ pageInfo.labelsSection + '.' + column.label + 'InActive' | translate }}
|
|
161
|
+
</span>
|
|
162
|
+
<span *ngIf="element[column.property] === true">
|
|
163
|
+
{{ pageInfo.labelsSection + '.' + column.label + 'Active' | translate }}
|
|
164
|
+
</span>
|
|
165
|
+
</td>
|
|
166
|
+
</ng-container>
|
|
167
|
+
|
|
168
|
+
<ng-container *ngSwitchCase="'info'">
|
|
169
|
+
<td *matCellDef="let element" class="mainTable__td text-secondary" mat-cell>
|
|
170
|
+
<button mat-icon-button (click)="$event.stopPropagation();emitEvent(element)" [attr.id]="'table-btn-info-'+element.id">
|
|
171
|
+
<mat-icon>info</mat-icon>
|
|
172
|
+
</button>
|
|
173
|
+
</td>
|
|
174
|
+
</ng-container>
|
|
175
|
+
|
|
176
|
+
<ng-container *ngSwitchCase="'netAmount'">
|
|
177
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
178
|
+
<small><sup class="mainTable__td__currency">{{element[column.currency]}}</sup></small>
|
|
179
|
+
<span class="mainTable__td__property">{{ extractFieldName(element, column.property) | currency:element[column.currency] :'' }}</span> of
|
|
180
|
+
{{ extractFieldName(element, column.additionalProperty) | currency:element[column.currency] :'' }}
|
|
181
|
+
</td>
|
|
182
|
+
</ng-container>
|
|
183
|
+
|
|
184
|
+
<ng-container *ngSwitchCase="'localDateTime'">
|
|
185
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
186
|
+
{{ extractFieldName(element, column.property) | date : extractFormat(column) }}
|
|
187
|
+
</td>
|
|
188
|
+
</ng-container>
|
|
189
|
+
|
|
190
|
+
<ng-container *ngSwitchCase="'bigdecimal'">
|
|
191
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
192
|
+
<small><sup class="mainTable__td__currency">{{element[column.currency]}}</sup></small>
|
|
193
|
+
{{ extractFieldName(element, column.property) | number : (column.digitInfo || '1.3-5') }}
|
|
194
|
+
</td>
|
|
195
|
+
</ng-container>
|
|
196
|
+
|
|
197
|
+
<ng-container *ngSwitchCase="'listAction'">
|
|
198
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" style="padding: 0!important;" mat-cell>
|
|
199
|
+
<app-button-actions
|
|
200
|
+
[buttonsAction]="column.viewType === 'buttonsAction'"
|
|
201
|
+
[listAction]="listAction"
|
|
202
|
+
[actions]="listAction"
|
|
203
|
+
(clickedButton)="actionListClicked($event,element)">
|
|
204
|
+
</app-button-actions>
|
|
205
|
+
</td>
|
|
206
|
+
</ng-container>
|
|
207
|
+
|
|
208
|
+
<ng-container *ngSwitchDefault>
|
|
209
|
+
<ng-container *ngIf="column.translate; else noTranslate">
|
|
210
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" (click)="emitRoutePage(element)" mat-cell>
|
|
211
|
+
{{ extractFieldName(element, column.property) | translate }}
|
|
212
|
+
</td>
|
|
213
|
+
</ng-container>
|
|
214
|
+
<ng-template #noTranslate>
|
|
215
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" (click)="emitRoutePage(element)" mat-cell [innerHtml]='extractFieldName(element, column.property)'></td>
|
|
216
|
+
</ng-template>
|
|
217
|
+
</ng-container>
|
|
218
|
+
</ng-container>
|
|
219
|
+
</ng-container>
|
|
220
|
+
</ng-container>
|
|
221
|
+
|
|
222
|
+
<ng-container *ngIf="hasGroups()">
|
|
223
|
+
<ng-container *ngFor="let groupName of this.groupNames">
|
|
224
|
+
<ng-container matColumnDef="{{groupName}}">
|
|
225
|
+
<th mat-header-cell class="extra-header" *matHeaderCellDef [attr.colspan]="groupSpans.get(groupName)">
|
|
226
|
+
{{ (isHumanMade(groupName) ? groupName : "") | translate }}
|
|
227
|
+
</th>
|
|
228
|
+
</ng-container>
|
|
229
|
+
</ng-container>
|
|
230
|
+
<tr mat-header-row *matHeaderRowDef="this.groupNames"></tr>
|
|
231
|
+
</ng-container>
|
|
232
|
+
|
|
233
|
+
<tr *matHeaderRowDef="visibleColumns" mat-header-row></tr>
|
|
234
|
+
<tr (auxclick)="openNewTab(row)" (click)="$event.stopPropagation(); onSelectItem(row)" *matRowDef="let row; columns: visibleColumns"
|
|
235
|
+
[attr.id]="'table-row-' + (row?.id || row?.key || '')"
|
|
236
|
+
[ngClass]="{
|
|
237
|
+
'mainTable__highlight': selectedRowIndex == row.id || (pageInfo.groupByProperty && pageInfo.groupByValue?.includes(row[pageInfo.groupByProperty])),
|
|
238
|
+
'mainTable__dark_highlight': isDarkHighlight(row)
|
|
239
|
+
}"
|
|
240
|
+
mat-row>
|
|
241
|
+
</tr>
|
|
242
|
+
</table>
|
|
243
|
+
</div>
|
|
244
|
+
|
|
245
|
+
<div *ngIf="noDataFound" class="dataNotFound flex-column">
|
|
246
|
+
<mat-icon class="dataNotFound__icon">{{ noDataFoundIcon }}</mat-icon>
|
|
247
|
+
<span class="dataNotFound__title">{{ noDataFoundTitle | translate}}</span>
|
|
248
|
+
<span class="dataNotFound__subtitle">{{ noDataFoundSubtitle | translate}}</span>
|
|
249
|
+
</div>
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
<div *ngIf="(dataSource.data?.length > 0 || customizedData) && !pageInfo.hidePagination" class="main-pagination flex-row">
|
|
253
|
+
<ng-container *ngIf="enablePagination">
|
|
254
|
+
<div class="flex-column flex-100">
|
|
255
|
+
<app-paginator
|
|
256
|
+
[currentPage]="pageIndex"
|
|
257
|
+
[totalItems]="totalElements"
|
|
258
|
+
[pageSize]="pageSize"
|
|
259
|
+
[pageSizeOptions]="[5, 10, 25, 50]"
|
|
260
|
+
(pageChange)="onPageChange($event)"
|
|
261
|
+
(pageSizeChange)="onPageSizeChange($event)">
|
|
262
|
+
</app-paginator>
|
|
263
|
+
</div>
|
|
264
|
+
</ng-container>
|
|
265
|
+
</div>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|