@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,23 +1,126 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
/* ===== Main Title Bar ===== */
|
|
2
|
+
.mainTitleBar {
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
gap: 20px;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: flex-start;
|
|
8
|
+
|
|
9
|
+
&.row {
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.column {
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.textTitle {
|
|
18
|
+
flex: 1 1 0;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
width: auto;
|
|
22
|
+
|
|
23
|
+
h2 {
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
line-height: 1.2;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__titleMode {
|
|
30
|
+
font-weight: 200;
|
|
31
|
+
color: grey;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__subTitle {
|
|
35
|
+
color: #222;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
font-weight: 300;
|
|
38
|
+
font-style: normal;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.end-items {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
align-items: flex-end;
|
|
46
|
+
gap: 20px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.buttons-wrapper {
|
|
50
|
+
display: inline-block;
|
|
51
|
+
text-align-last: end;
|
|
52
|
+
.action-btn {
|
|
53
|
+
width: 210px !important;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.actionButton {
|
|
58
|
+
width: 100%;
|
|
59
|
+
|
|
60
|
+
&__expand {
|
|
61
|
+
font-size: 20px !important;
|
|
62
|
+
color: var(--accent-color);
|
|
63
|
+
margin-top: 5px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* ===== Flex Helpers ===== */
|
|
69
|
+
.row {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: row;
|
|
72
|
+
width: 100%;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.column {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
width: auto;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.fx-flex-fill {
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: 100%;
|
|
84
|
+
flex: 1 1 auto;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.flex-auto {
|
|
88
|
+
flex: 1 1 auto;
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
.end-items {
|
|
95
|
+
align-items: flex-end;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.gap-20 {
|
|
99
|
+
gap: 20px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* ===== Responsive Adjustments ===== */
|
|
103
|
+
@media (max-width: 960px) {
|
|
104
|
+
.mainTitleBar.row.default-align {
|
|
105
|
+
justify-content: flex-end;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (max-width: 768px) {
|
|
110
|
+
.mainTitleBar.row,
|
|
111
|
+
.mainTitleBar.column {
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
align-items: flex-start;
|
|
114
|
+
gap: 20px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.end-items {
|
|
118
|
+
align-items: flex-start;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media (max-width: 600px) {
|
|
123
|
+
.gap-20 {
|
|
124
|
+
gap: 10px;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { TitleBarComponent } from './title-bar.component';
|
|
4
|
-
|
|
5
|
-
describe('TitleBarComponent', () => {
|
|
6
|
-
let component: TitleBarComponent;
|
|
7
|
-
let fixture: ComponentFixture<TitleBarComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [TitleBarComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(TitleBarComponent);
|
|
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 { TitleBarComponent } from './title-bar.component';
|
|
4
|
+
|
|
5
|
+
describe('TitleBarComponent', () => {
|
|
6
|
+
let component: TitleBarComponent;
|
|
7
|
+
let fixture: ComponentFixture<TitleBarComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [TitleBarComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(TitleBarComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -1,119 +1,126 @@
|
|
|
1
|
-
import {Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges} from '@angular/core';
|
|
2
|
-
import {Location, NgForOf, NgIf} from "@angular/common";
|
|
3
|
-
import {MatIconModule} from "@angular/material/icon";
|
|
4
|
-
import {MatButton} from "@angular/material/button";
|
|
5
|
-
import {MatMenu, MatMenuItem, MatMenuTrigger} from "@angular/material/menu";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
selector: 'app-title-bar',
|
|
12
|
-
standalone: true,
|
|
13
|
-
imports: [
|
|
14
|
-
NgIf,
|
|
15
|
-
MatIconModule,
|
|
16
|
-
MatButton,
|
|
17
|
-
MatMenuItem,
|
|
18
|
-
MatMenu,
|
|
19
|
-
NgForOf,
|
|
20
|
-
MatMenuTrigger,
|
|
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
|
-
this.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
this.
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
1
|
+
import {Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges} from '@angular/core';
|
|
2
|
+
import {Location, NgForOf, NgIf} from "@angular/common";
|
|
3
|
+
import {MatIconModule} from "@angular/material/icon";
|
|
4
|
+
import {MatButton} from "@angular/material/button";
|
|
5
|
+
import {MatMenu, MatMenuItem, MatMenuTrigger} from "@angular/material/menu";
|
|
6
|
+
import {TranslateModule} from "@ngx-translate/core";
|
|
7
|
+
import {Directionality} from "@angular/cdk/bidi";
|
|
8
|
+
import {ButtonActionSettings} from "../../base-model";
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'app-title-bar',
|
|
12
|
+
standalone: true,
|
|
13
|
+
imports: [
|
|
14
|
+
NgIf,
|
|
15
|
+
MatIconModule,
|
|
16
|
+
MatButton,
|
|
17
|
+
MatMenuItem,
|
|
18
|
+
MatMenu,
|
|
19
|
+
NgForOf,
|
|
20
|
+
MatMenuTrigger,
|
|
21
|
+
TranslateModule,
|
|
22
|
+
|
|
23
|
+
],
|
|
24
|
+
templateUrl: './title-bar.component.html',
|
|
25
|
+
styleUrls: ['./title-bar.component.css', 'title-bar.component.scss']
|
|
26
|
+
})
|
|
27
|
+
export class TitleBarComponent implements OnInit, OnChanges {
|
|
28
|
+
@Input()
|
|
29
|
+
pageTitle: string = "";
|
|
30
|
+
|
|
31
|
+
@Input()
|
|
32
|
+
showExtractButton: boolean = false;
|
|
33
|
+
|
|
34
|
+
@Input()
|
|
35
|
+
totalElements?: number;
|
|
36
|
+
|
|
37
|
+
@Input()
|
|
38
|
+
titleMode: string = '';
|
|
39
|
+
@Input()
|
|
40
|
+
subTitle: string = '';
|
|
41
|
+
|
|
42
|
+
@Input()
|
|
43
|
+
statusDesc?: string;
|
|
44
|
+
|
|
45
|
+
@Input()
|
|
46
|
+
newAction: boolean = false;
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@Input() // @ts-ignore
|
|
50
|
+
extraButton: string;
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@Input()
|
|
54
|
+
showDetails: any = [];
|
|
55
|
+
|
|
56
|
+
@Input()
|
|
57
|
+
showImport = false;
|
|
58
|
+
|
|
59
|
+
@Input()
|
|
60
|
+
showButton = false;
|
|
61
|
+
|
|
62
|
+
@Output()
|
|
63
|
+
newActionClicked = new EventEmitter();
|
|
64
|
+
|
|
65
|
+
@Output()
|
|
66
|
+
extraButtonClicked = new EventEmitter();
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
@Output()
|
|
70
|
+
extractReport = new EventEmitter();
|
|
71
|
+
|
|
72
|
+
@Input()
|
|
73
|
+
extraData = '';
|
|
74
|
+
|
|
75
|
+
listTitle = '';
|
|
76
|
+
newButton = '';
|
|
77
|
+
|
|
78
|
+
@Input()
|
|
79
|
+
titleCorporateAdmin: string = '';
|
|
80
|
+
|
|
81
|
+
isRoot: boolean = false;
|
|
82
|
+
@Input()
|
|
83
|
+
hideBackButton: boolean = true;
|
|
84
|
+
|
|
85
|
+
@Input() buttons: ButtonActionSettings[] = [];
|
|
86
|
+
@Output() buttonClicked = new EventEmitter<ButtonActionSettings>();
|
|
87
|
+
constructor(private location:Location,
|
|
88
|
+
private dir: Directionality) {
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
ngOnInit(): void {
|
|
92
|
+
this.listTitle = this.pageTitle;
|
|
93
|
+
this.newButton = this.extraButton;
|
|
94
|
+
// this.isRoot = this.authService.isRootOrg();
|
|
95
|
+
this.isRoot = false;
|
|
96
|
+
}
|
|
97
|
+
get backIcon(): string {
|
|
98
|
+
return this.dir.value === 'rtl' ? 'arrow_back' : 'arrow_forward';
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
publishEvent() {
|
|
102
|
+
this.newActionClicked.emit(true);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
doExtractReport(value: any) {
|
|
107
|
+
this.extractReport.emit(value);
|
|
108
|
+
}
|
|
109
|
+
publishExtraButtonEvent() {
|
|
110
|
+
this.extraButtonClicked.emit(true);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
ngOnChanges(changes: SimpleChanges): void {
|
|
114
|
+
if (changes["pageTitle"] && !changes["pageTitle"].isFirstChange() ) {
|
|
115
|
+
this.listTitle = this.pageTitle;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
goBack() {
|
|
120
|
+
this.location.back()
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
onButtonClick(btn: ButtonActionSettings) {
|
|
124
|
+
this.buttonClicked.emit(btn);
|
|
125
|
+
}
|
|
126
|
+
}
|