@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,372 +1,337 @@
|
|
|
1
|
-
<div
|
|
2
|
-
<div class="left-align">
|
|
3
|
-
<app-attachment-uploader #uploader
|
|
4
|
-
*ngIf="isBulkItemsSupported"
|
|
5
|
-
(fileSelected)="handleFileUpload($event)">
|
|
6
|
-
</app-attachment-uploader>
|
|
7
|
-
</div>
|
|
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
|
-
<mat-
|
|
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
|
-
{{ getNegativeWfActionKey(element.value.stateType) | translate }}
|
|
136
|
-
</button>
|
|
137
|
-
</div>
|
|
138
|
-
<div
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|
|
141
|
-
</td>
|
|
142
|
-
</ng-container>
|
|
143
|
-
<ng-container *ngSwitchCase="'year'">
|
|
144
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}
|
|
145
|
-
</th>
|
|
146
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
147
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
148
|
-
mat-cell>
|
|
149
|
-
<mat-form-field class="flex-auto" appearance="outline"
|
|
150
|
-
<mat-label>{{ labelKey(column) | translate }}</mat-label>
|
|
151
|
-
<input matInput
|
|
152
|
-
[disabled]="column.readonly"
|
|
153
|
-
[readonly]="column.readonly"
|
|
154
|
-
[matDatepicker]="picker"
|
|
155
|
-
[formControl]="getField(element, column)"
|
|
156
|
-
[required]="column.required"
|
|
157
|
-
[attr.aria-required]="column.required"
|
|
158
|
-
[attr.aria-labelledby]="'label-' + column.property"
|
|
159
|
-
[attr.aria-describedby]="'error-' + column.property">
|
|
160
|
-
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
|
161
|
-
<mat-datepicker #picker startView="multi-year"
|
|
162
|
-
(yearSelected)="setMonthAndYear($event, picker, element,column)"
|
|
163
|
-
panelClass="example-month-picker"></mat-datepicker>
|
|
164
|
-
|
|
165
|
-
</mat-form-field>
|
|
166
|
-
<!-- <mat-form-field class="flex-auto" appearance="outline" fxFlexFill>-->
|
|
167
|
-
<!-- <input matInput [formControl]="getField(element, column)">-->
|
|
168
|
-
<!-- </mat-form-field>-->
|
|
169
|
-
</td>
|
|
170
|
-
</ng-container>
|
|
171
|
-
<ng-container *ngSwitchCase="'number'">
|
|
172
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
173
|
-
{{ labelKey(column) | translate }}
|
|
174
|
-
</th>
|
|
175
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
176
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
177
|
-
mat-cell>
|
|
178
|
-
<mat-form-field class="flex-auto" appearance="outline"
|
|
179
|
-
<!-- Visually hidden label just to trigger the floating label and asterisk -->
|
|
180
|
-
<mat-label>
|
|
181
|
-
</mat-label>
|
|
182
|
-
|
|
183
|
-
<input matInput
|
|
184
|
-
type="number"
|
|
185
|
-
[formControl]="getField(element, column)"
|
|
186
|
-
[required]="column.required"
|
|
187
|
-
[readonly]="column.readonly"
|
|
188
|
-
[attr.aria-required]="column.required"
|
|
189
|
-
[attr.aria-labelledby]="'label-' + column.property"
|
|
190
|
-
[attr.aria-describedby]="'error-' + column.property">
|
|
191
|
-
</mat-form-field>
|
|
192
|
-
</td>
|
|
193
|
-
</ng-container>
|
|
194
|
-
<ng-container *ngSwitchCase="'status'">
|
|
195
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
196
|
-
{{ labelKey(column) | translate }}
|
|
197
|
-
</th>
|
|
198
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
199
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
200
|
-
mat-cell>
|
|
201
|
-
<mat-checkbox
|
|
202
|
-
style="padding-bottom: 14px; padding-top: 14px;"
|
|
203
|
-
[formControl]="getField(element, column)"
|
|
204
|
-
[required]="column.required"
|
|
205
|
-
[attr.aria-required]="column.required"
|
|
206
|
-
[attr.aria-labelledby]="'label-' + column.property"
|
|
207
|
-
[attr.aria-describedby]="'error-' + column.property"
|
|
208
|
-
[style.pointer-events]="column.readonly ? 'none' : 'auto'"
|
|
209
|
-
[style.opacity]="column.readonly ? 0.7 : 1"
|
|
210
|
-
(click)="column.readonly ? $event.preventDefault() : null">
|
|
211
|
-
</mat-checkbox>
|
|
212
|
-
</td>
|
|
213
|
-
</ng-container>
|
|
214
|
-
<ng-container *ngSwitchCase="'text'">
|
|
215
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
216
|
-
{{ labelKey(column) | translate }}
|
|
217
|
-
</th>
|
|
218
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
219
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
220
|
-
mat-cell>
|
|
221
|
-
<mat-form-field class="flex-auto" appearance="outline"
|
|
222
|
-
<mat-label>
|
|
223
|
-
{{ labelKey(column) | translate }}
|
|
224
|
-
</mat-label>
|
|
225
|
-
<input matInput
|
|
226
|
-
type="text"
|
|
227
|
-
[formControl]="getField(element, column)"
|
|
228
|
-
[required]="column.required"
|
|
229
|
-
[readonly]="column.readonly"
|
|
230
|
-
[attr.aria-required]="column.required"
|
|
231
|
-
[attr.aria-labelledby]="'label-' + column.property"
|
|
232
|
-
[attr.aria-describedby]="'error-' + column.property">
|
|
233
|
-
</mat-form-field>
|
|
234
|
-
</td>
|
|
235
|
-
</ng-container>
|
|
236
|
-
<ng-container *ngSwitchCase="'date'">
|
|
237
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
238
|
-
{{ labelKey(column) | translate }}
|
|
239
|
-
</th>
|
|
240
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
241
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
242
|
-
mat-cell>
|
|
243
|
-
<mat-form-field class="flex-auto" appearance="outline"
|
|
244
|
-
<input matInput
|
|
245
|
-
[matDatepicker]="xpicker"
|
|
246
|
-
[formControl]="getField(element, column)"
|
|
247
|
-
[required]="column.required"
|
|
248
|
-
[readonly]="column.readonly"
|
|
249
|
-
[disabled]="column.readonly"
|
|
250
|
-
[attr.aria-required]="column.required"
|
|
251
|
-
[attr.aria-labelledby]="'label-' + column.property"
|
|
252
|
-
[attr.aria-describedby]="'error-' + column.property">
|
|
253
|
-
<mat-datepicker-toggle
|
|
254
|
-
matSuffix
|
|
255
|
-
[for]="xpicker"
|
|
256
|
-
[disabled]="column.readonly">
|
|
257
|
-
</mat-datepicker-toggle>
|
|
258
|
-
<mat-datepicker #xpicker></mat-datepicker>
|
|
259
|
-
</mat-form-field>
|
|
260
|
-
</td>
|
|
261
|
-
</ng-container>
|
|
262
|
-
|
|
263
|
-
<ng-container *ngSwitchDefault>
|
|
264
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}
|
|
265
|
-
</th>
|
|
266
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
267
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
268
|
-
mat-cell>
|
|
269
|
-
<mat-form-field class="flex-auto" appearance="outline"
|
|
270
|
-
<input matInput
|
|
271
|
-
[readonly]="column.readonly"
|
|
272
|
-
[attr.aria-required]="column.required"
|
|
273
|
-
[formControl]="getField(element, column)">
|
|
274
|
-
</mat-form-field>
|
|
275
|
-
</td>
|
|
276
|
-
</ng-container>
|
|
277
|
-
</ng-container>
|
|
278
|
-
</ng-container>
|
|
279
|
-
</ng-container>
|
|
280
|
-
<tr *matHeaderRowDef="visibleColumns" mat-header-row></tr>
|
|
281
|
-
<tr (click)="onSelectItem(row)" (auxclick)="openNewTab(row)"
|
|
282
|
-
*matRowDef="let row; columns: visibleColumns | paginate:config"
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
</div>
|
|
339
|
-
</ng-container>
|
|
340
|
-
</div>
|
|
341
|
-
</div>
|
|
342
|
-
<div *ngIf="isBulkItemsSupported"
|
|
343
|
-
fxLayout="row"
|
|
344
|
-
fxLayout.lt-md="row"
|
|
345
|
-
fxLayoutGap="10px"
|
|
346
|
-
fxLayoutAlign="start start"
|
|
347
|
-
class="mainTable">
|
|
348
|
-
|
|
349
|
-
<div>
|
|
350
|
-
<button mat-flat-button
|
|
351
|
-
color="primary"
|
|
352
|
-
type="button"
|
|
353
|
-
(click)="addBulkItems()"
|
|
354
|
-
[disabled]="shouldDisableBulkAdd()">
|
|
355
|
-
<mat-icon>add_box</mat-icon>
|
|
356
|
-
{{ 'addAll' | translate }}
|
|
357
|
-
</button>
|
|
358
|
-
</div>
|
|
359
|
-
|
|
360
|
-
<div>
|
|
361
|
-
<button mat-flat-button
|
|
362
|
-
color="warn"
|
|
363
|
-
type="button"
|
|
364
|
-
[disabled]="!hasDataToClear()"
|
|
365
|
-
(click)="clearBulkItems()">
|
|
366
|
-
<mat-icon>delete</mat-icon>
|
|
367
|
-
{{ 'clearAll' | translate }}
|
|
368
|
-
</button>
|
|
369
|
-
</div>
|
|
370
|
-
|
|
371
|
-
</div>
|
|
372
|
-
</div>
|
|
1
|
+
<div class="baseTable flex-column">
|
|
2
|
+
<div class="left-align">
|
|
3
|
+
<app-attachment-uploader #uploader
|
|
4
|
+
*ngIf="isBulkItemsSupported"
|
|
5
|
+
(fileSelected)="handleFileUpload($event)">
|
|
6
|
+
</app-attachment-uploader>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div class="flex-row full-width">
|
|
10
|
+
<div class="flex-half flex-column align-center-start">
|
|
11
|
+
<app-title-bar [pageTitle]="pageInfo.hideTitle ? '' : pageInfo.labelsSection+'.list_title'"
|
|
12
|
+
[titleMode]="''"
|
|
13
|
+
[newAction]="false"
|
|
14
|
+
[showExtractButton]="!pageInfo.hideExtractButton">
|
|
15
|
+
</app-title-bar>
|
|
16
|
+
<span class="font-small">{{ 'totalCountItem' | translate }} : {{ this.totalElements }}</span>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="flex-half flex-column align-start-end">
|
|
19
|
+
<mat-chip-listbox aria-label="Color selection" [multiple]="false" *ngIf="pageInfo.draftSupported">
|
|
20
|
+
<mat-chip-option [selected]="!this.isPending" [color]="'accent'" [value]="'COMPLETED'"
|
|
21
|
+
(click)="switchViewMode(false)">{{ 'finished' | translate }}
|
|
22
|
+
</mat-chip-option>
|
|
23
|
+
<mat-chip-option [selected]="this.isPending" [color]="'accent'" [value]="'PENDING'"
|
|
24
|
+
(click)="switchViewMode(true)">{{ 'todo' | translate }}
|
|
25
|
+
</mat-chip-option>
|
|
26
|
+
</mat-chip-listbox>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<ng-container *ngIf="showSearch()">
|
|
31
|
+
<div class="flex-row full-width">
|
|
32
|
+
<div class="flex-80 flex-column align-start-end">
|
|
33
|
+
<app-base-form-canvas class="flex-fill"
|
|
34
|
+
[pageInfo]="pageInfo"
|
|
35
|
+
[fields]="searchFormFields"
|
|
36
|
+
[editable]="true"
|
|
37
|
+
(formUpdated)="updateSearchForm($event)">
|
|
38
|
+
</app-base-form-canvas>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="flex-15 flex-column align-start-end">
|
|
41
|
+
<div class="flex-row align-center-center gap-8 full-width">
|
|
42
|
+
<button mat-button color="primary" type="button" (click)="doSearch()" id="editable-search-btn">
|
|
43
|
+
<mat-icon>search</mat-icon>
|
|
44
|
+
{{ 'search' | translate }}
|
|
45
|
+
</button>
|
|
46
|
+
<button mat-button color="primary" type="button" (click)="clearSearch()" id="editable-clear-search-btn">
|
|
47
|
+
<mat-icon>clear</mat-icon>
|
|
48
|
+
{{ 'clear' | translate }}
|
|
49
|
+
</button>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</ng-container>
|
|
54
|
+
|
|
55
|
+
<div class="flex-row full-width baseTable__detailsColumn">
|
|
56
|
+
<div class="flex-full">
|
|
57
|
+
<ng-container *ngIf="isLoaded">
|
|
58
|
+
<div class="flex-row mainTable gap-0 align-start-start">
|
|
59
|
+
<form [formGroup]="formParam" class="flex-fill">
|
|
60
|
+
<table [dataSource]="dataFormArray.controls" class="flex-fill" mat-table matSort>
|
|
61
|
+
<ng-container *ngFor="let column of this.fields; let i = index">
|
|
62
|
+
<ng-container matColumnDef="{{column.property}}">
|
|
63
|
+
<ng-container [ngSwitch]="column.type">
|
|
64
|
+
<ng-container *ngSwitchCase="'equation-builder'">
|
|
65
|
+
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}
|
|
66
|
+
</th>
|
|
67
|
+
<td *matCellDef="let element" class="mainTable__td"
|
|
68
|
+
[ngClass]="['mainTable__td__text-secondary__td']" mat-cell>
|
|
69
|
+
<lib-equation-builder
|
|
70
|
+
[form]="element"
|
|
71
|
+
[field]="column"
|
|
72
|
+
[readOnly]="column.readonly"
|
|
73
|
+
[isPending]="isPending"
|
|
74
|
+
(valueChanged)="handleEquationChange($event, element, column)">
|
|
75
|
+
</lib-equation-builder>
|
|
76
|
+
</td>
|
|
77
|
+
</ng-container>
|
|
78
|
+
|
|
79
|
+
<ng-container *ngSwitchCase="'lookup'">
|
|
80
|
+
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}
|
|
81
|
+
</th>
|
|
82
|
+
<td *matCellDef="let element" class="mainTable__td"
|
|
83
|
+
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
84
|
+
mat-cell>
|
|
85
|
+
<app-auto-complete
|
|
86
|
+
[form]="element"
|
|
87
|
+
[field]="column"
|
|
88
|
+
[defaultValue]="element.get(column.property)?.value"
|
|
89
|
+
(selectedValue)="patchLookupValue($event, column.property)">
|
|
90
|
+
</app-auto-complete>
|
|
91
|
+
</td>
|
|
92
|
+
</ng-container>
|
|
93
|
+
<ng-container *ngSwitchCase="'list'">
|
|
94
|
+
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}</th>
|
|
95
|
+
<td *matCellDef="let element" class="mainTable__td"
|
|
96
|
+
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
97
|
+
mat-cell>
|
|
98
|
+
<mat-label>{{element}}</mat-label>
|
|
99
|
+
<mat-select
|
|
100
|
+
formControlName="{{column.property}}"
|
|
101
|
+
[attr.aria-label]="column.label! | translate"
|
|
102
|
+
[multiple]="false"
|
|
103
|
+
[(value)]="element[column.property]">
|
|
104
|
+
<ng-container>
|
|
105
|
+
<mat-option
|
|
106
|
+
*ngFor="let item of column.listOptions"
|
|
107
|
+
[value]="item">
|
|
108
|
+
{{ getOptionValue(item) }}
|
|
109
|
+
</mat-option>
|
|
110
|
+
</ng-container>
|
|
111
|
+
</mat-select>
|
|
112
|
+
</td>
|
|
113
|
+
</ng-container>
|
|
114
|
+
<ng-container *ngSwitchCase="'stateType'">
|
|
115
|
+
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
116
|
+
{{ 'action' | translate }}
|
|
117
|
+
</th>
|
|
118
|
+
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
119
|
+
<div class="flex-column">
|
|
120
|
+
<div class="flex-row full-width">
|
|
121
|
+
<div class="flex-third flex-column align-center-center">
|
|
122
|
+
<button mat-button class="btn-none-background-primary"
|
|
123
|
+
color="primary"
|
|
124
|
+
[disabled]="disabledSaveButton(element)"
|
|
125
|
+
(click)="fieldButtonEvent(column,element,SAVE)"
|
|
126
|
+
[attr.id]="'editable-save-' + (element.value?.id || '')">
|
|
127
|
+
{{ getPositiveWfActionKey(element.value.stateType) | translate }}
|
|
128
|
+
</button>
|
|
129
|
+
</div>
|
|
130
|
+
<div class="flex-third flex-column align-center-center">
|
|
131
|
+
<button *ngIf="isPending" mat-button class="btn-none-background-primary"
|
|
132
|
+
color="accent"
|
|
133
|
+
(click)="fieldButtonEvent(column,element,REJECT)"
|
|
134
|
+
[attr.id]="'editable-reject-' + (element.value?.id || '')">
|
|
135
|
+
{{ getNegativeWfActionKey(element.value.stateType) | translate }}
|
|
136
|
+
</button>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="flex-third flex-column align-center-center"></div>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
</td>
|
|
142
|
+
</ng-container>
|
|
143
|
+
<ng-container *ngSwitchCase="'year'">
|
|
144
|
+
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}
|
|
145
|
+
</th>
|
|
146
|
+
<td *matCellDef="let element" class="mainTable__td"
|
|
147
|
+
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
148
|
+
mat-cell>
|
|
149
|
+
<mat-form-field class="flex-auto fx-flex-fill" appearance="outline">
|
|
150
|
+
<mat-label>{{ labelKey(column) | translate }}</mat-label>
|
|
151
|
+
<input matInput
|
|
152
|
+
[disabled]="column.readonly"
|
|
153
|
+
[readonly]="column.readonly"
|
|
154
|
+
[matDatepicker]="picker"
|
|
155
|
+
[formControl]="getField(element, column)"
|
|
156
|
+
[required]="column.required"
|
|
157
|
+
[attr.aria-required]="column.required"
|
|
158
|
+
[attr.aria-labelledby]="'label-' + column.property"
|
|
159
|
+
[attr.aria-describedby]="'error-' + column.property">
|
|
160
|
+
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
|
161
|
+
<mat-datepicker #picker startView="multi-year"
|
|
162
|
+
(yearSelected)="setMonthAndYear($event, picker, element,column)"
|
|
163
|
+
panelClass="example-month-picker"></mat-datepicker>
|
|
164
|
+
|
|
165
|
+
</mat-form-field>
|
|
166
|
+
<!-- <mat-form-field class="flex-auto" appearance="outline" fxFlexFill>-->
|
|
167
|
+
<!-- <input matInput [formControl]="getField(element, column)">-->
|
|
168
|
+
<!-- </mat-form-field>-->
|
|
169
|
+
</td>
|
|
170
|
+
</ng-container>
|
|
171
|
+
<ng-container *ngSwitchCase="'number'">
|
|
172
|
+
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
173
|
+
{{ labelKey(column) | translate }}
|
|
174
|
+
</th>
|
|
175
|
+
<td *matCellDef="let element" class="mainTable__td"
|
|
176
|
+
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
177
|
+
mat-cell>
|
|
178
|
+
<mat-form-field class="flex-auto fx-flex-fill" appearance="outline">
|
|
179
|
+
<!-- Visually hidden label just to trigger the floating label and asterisk -->
|
|
180
|
+
<mat-label>
|
|
181
|
+
</mat-label>
|
|
182
|
+
|
|
183
|
+
<input matInput
|
|
184
|
+
type="number"
|
|
185
|
+
[formControl]="getField(element, column)"
|
|
186
|
+
[required]="column.required"
|
|
187
|
+
[readonly]="column.readonly"
|
|
188
|
+
[attr.aria-required]="column.required"
|
|
189
|
+
[attr.aria-labelledby]="'label-' + column.property"
|
|
190
|
+
[attr.aria-describedby]="'error-' + column.property">
|
|
191
|
+
</mat-form-field>
|
|
192
|
+
</td>
|
|
193
|
+
</ng-container>
|
|
194
|
+
<ng-container *ngSwitchCase="'status'">
|
|
195
|
+
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
196
|
+
{{ labelKey(column) | translate }}
|
|
197
|
+
</th>
|
|
198
|
+
<td *matCellDef="let element" class="mainTable__td"
|
|
199
|
+
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
200
|
+
mat-cell>
|
|
201
|
+
<mat-checkbox
|
|
202
|
+
style="padding-bottom: 14px; padding-top: 14px;"
|
|
203
|
+
[formControl]="getField(element, column)"
|
|
204
|
+
[required]="column.required"
|
|
205
|
+
[attr.aria-required]="column.required"
|
|
206
|
+
[attr.aria-labelledby]="'label-' + column.property"
|
|
207
|
+
[attr.aria-describedby]="'error-' + column.property"
|
|
208
|
+
[style.pointer-events]="column.readonly ? 'none' : 'auto'"
|
|
209
|
+
[style.opacity]="column.readonly ? 0.7 : 1"
|
|
210
|
+
(click)="column.readonly ? $event.preventDefault() : null">
|
|
211
|
+
</mat-checkbox>
|
|
212
|
+
</td>
|
|
213
|
+
</ng-container>
|
|
214
|
+
<ng-container *ngSwitchCase="'text'">
|
|
215
|
+
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
216
|
+
{{ labelKey(column) | translate }}
|
|
217
|
+
</th>
|
|
218
|
+
<td *matCellDef="let element" class="mainTable__td"
|
|
219
|
+
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
220
|
+
mat-cell>
|
|
221
|
+
<mat-form-field class="flex-auto fx-flex-fill" appearance="outline">
|
|
222
|
+
<mat-label>
|
|
223
|
+
{{ labelKey(column) | translate }}
|
|
224
|
+
</mat-label>
|
|
225
|
+
<input matInput
|
|
226
|
+
type="text"
|
|
227
|
+
[formControl]="getField(element, column)"
|
|
228
|
+
[required]="column.required"
|
|
229
|
+
[readonly]="column.readonly"
|
|
230
|
+
[attr.aria-required]="column.required"
|
|
231
|
+
[attr.aria-labelledby]="'label-' + column.property"
|
|
232
|
+
[attr.aria-describedby]="'error-' + column.property">
|
|
233
|
+
</mat-form-field>
|
|
234
|
+
</td>
|
|
235
|
+
</ng-container>
|
|
236
|
+
<ng-container *ngSwitchCase="'date'">
|
|
237
|
+
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
238
|
+
{{ labelKey(column) | translate }}
|
|
239
|
+
</th>
|
|
240
|
+
<td *matCellDef="let element" class="mainTable__td"
|
|
241
|
+
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
242
|
+
mat-cell>
|
|
243
|
+
<mat-form-field class="flex-auto fx-flex-fill" appearance="outline">
|
|
244
|
+
<input matInput
|
|
245
|
+
[matDatepicker]="xpicker"
|
|
246
|
+
[formControl]="getField(element, column)"
|
|
247
|
+
[required]="column.required"
|
|
248
|
+
[readonly]="column.readonly"
|
|
249
|
+
[disabled]="column.readonly"
|
|
250
|
+
[attr.aria-required]="column.required"
|
|
251
|
+
[attr.aria-labelledby]="'label-' + column.property"
|
|
252
|
+
[attr.aria-describedby]="'error-' + column.property">
|
|
253
|
+
<mat-datepicker-toggle
|
|
254
|
+
matSuffix
|
|
255
|
+
[for]="xpicker"
|
|
256
|
+
[disabled]="column.readonly">
|
|
257
|
+
</mat-datepicker-toggle>
|
|
258
|
+
<mat-datepicker #xpicker></mat-datepicker>
|
|
259
|
+
</mat-form-field>
|
|
260
|
+
</td>
|
|
261
|
+
</ng-container>
|
|
262
|
+
|
|
263
|
+
<ng-container *ngSwitchDefault>
|
|
264
|
+
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}
|
|
265
|
+
</th>
|
|
266
|
+
<td *matCellDef="let element" class="mainTable__td"
|
|
267
|
+
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
268
|
+
mat-cell>
|
|
269
|
+
<mat-form-field class="flex-auto fx-flex-fill" appearance="outline">
|
|
270
|
+
<input matInput
|
|
271
|
+
[readonly]="column.readonly"
|
|
272
|
+
[attr.aria-required]="column.required"
|
|
273
|
+
[formControl]="getField(element, column)">
|
|
274
|
+
</mat-form-field>
|
|
275
|
+
</td>
|
|
276
|
+
</ng-container>
|
|
277
|
+
</ng-container>
|
|
278
|
+
</ng-container>
|
|
279
|
+
</ng-container>
|
|
280
|
+
<tr *matHeaderRowDef="visibleColumns" mat-header-row></tr>
|
|
281
|
+
<tr (click)="onSelectItem(row)" (auxclick)="openNewTab(row)"
|
|
282
|
+
*matRowDef="let row; columns: visibleColumns | paginate:config"
|
|
283
|
+
[attr.id]="'editable-row-' + (row?.value?.id || row?.value?.key || '')"
|
|
284
|
+
mat-row></tr>
|
|
285
|
+
</table>
|
|
286
|
+
</form>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<div *ngIf="noDataFound && !pageInfo.lazyLoadData" class="flex-row dataNotFound">
|
|
290
|
+
<div class="flex-column flex-full">
|
|
291
|
+
<span class="dataNotFound__details">
|
|
292
|
+
<mat-icon class="dataNotFound__details__icon">info</mat-icon>
|
|
293
|
+
<span>{{ 'dataNotFound' | translate }}</span>
|
|
294
|
+
</span>
|
|
295
|
+
</div>
|
|
296
|
+
</div>
|
|
297
|
+
|
|
298
|
+
<div class="flex-row mainTable" *ngIf="!selectedFileFromUploader">
|
|
299
|
+
<div>
|
|
300
|
+
<button *ngIf="!isPending && pageInfo.hasAddButton" mat-button color="primary" type="button"
|
|
301
|
+
(click)="addNewItem()" id="editable-add-item-btn">
|
|
302
|
+
<mat-icon>add_box</mat-icon>
|
|
303
|
+
{{ translationKey | translate }}
|
|
304
|
+
</button>
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
|
|
308
|
+
<div class="flex-row flex-wrap align-center-center main-pagination" *ngIf="totalElements > 0">
|
|
309
|
+
<div class="flex-column flex-full">
|
|
310
|
+
<app-paginator [currentPage]="pageIndex" [totalItems]="totalElements" [pageSize]="pageSize"
|
|
311
|
+
[pageSizeOptions]="[5, 10, 25, 50]" (pageChange)="onPageChange($event)"
|
|
312
|
+
(pageSizeChange)="onPageSizeChange($event)"></app-paginator>
|
|
313
|
+
</div>
|
|
314
|
+
<div class="flex-column flex-full countItem hide-gt-xs">
|
|
315
|
+
<span class="countItem__totalElement">{{ 'totalCountItem' | translate }} : {{ this.totalElements }}</span>
|
|
316
|
+
</div>
|
|
317
|
+
<div class="flex-column flex-2"></div>
|
|
318
|
+
</div>
|
|
319
|
+
</ng-container>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
|
|
323
|
+
<div *ngIf="isBulkItemsSupported" class="flex-row gap-10 align-start-start mainTable">
|
|
324
|
+
<div>
|
|
325
|
+
<button mat-flat-button color="primary" type="button" (click)="addBulkItems()" [disabled]="shouldDisableBulkAdd()" id="editable-bulk-add-btn">
|
|
326
|
+
<mat-icon>add_box</mat-icon>
|
|
327
|
+
{{ 'addAll' | translate }}
|
|
328
|
+
</button>
|
|
329
|
+
</div>
|
|
330
|
+
<div>
|
|
331
|
+
<button mat-flat-button color="warn" type="button" [disabled]="!hasDataToClear()" (click)="clearBulkItems()" id="editable-bulk-clear-btn">
|
|
332
|
+
<mat-icon>delete</mat-icon>
|
|
333
|
+
{{ 'clearAll' | translate }}
|
|
334
|
+
</button>
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
</div>
|