@pega/angular-sdk-overrides 0.24.2 → 0.24.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/lib/field/cancel-alert/cancel-alert.component.ts +0 -2
- package/lib/field/dropdown/dropdown.component.ts +0 -3
- package/lib/field/radio-buttons/radio-buttons.component.ts +0 -3
- package/lib/field/scalar-list/scalar-list.component.ts +2 -1
- package/lib/field/text-area/text-area.component.ts +0 -2
- package/lib/infra/Containers/flow-container/flow-container.component.ts +0 -12
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.ts +0 -1
- package/lib/infra/Containers/view-container/view-container.component.ts +0 -1
- package/lib/infra/assignment/assignment.component.ts +1 -6
- package/lib/infra/dashboard-filter/dashboard-filter.component.ts +0 -1
- package/lib/infra/defer-load/defer-load.component.ts +5 -8
- package/lib/infra/navbar/navbar.component.ts +0 -1
- package/lib/template/case-view/case-view.component.html +2 -2
- package/lib/template/case-view/case-view.component.scss +2 -0
- package/lib/template/case-view/case-view.component.ts +0 -6
- package/lib/template/data-reference/data-reference.component.ts +1 -3
- package/lib/template/dynamic-tabs/dynamic-tabs.component.ts +0 -1
- package/lib/template/field-group-template/field-group-template.component.ts +4 -12
- package/lib/template/list-view/list-view.component.html +2 -2
- package/lib/template/list-view/list-view.component.ts +15 -4
- package/lib/template/list-view/listViewHelpers.ts +0 -1
- package/lib/template/repeating-structures/repeating-structures.component.ts +1 -2
- package/lib/template/simple-table/simple-table.component.ts +0 -2
- package/lib/template/simple-table-manual/simple-table-manual.component.ts +5 -10
- package/lib/template/simple-table-select/simple-table-select.component.ts +2 -4
- package/lib/widget/attachment/attachment.component.html +50 -34
- package/lib/widget/attachment/attachment.component.scss +118 -0
- package/lib/widget/attachment/attachment.component.ts +252 -500
- package/lib/widget/case-history/case-history.component.ts +0 -1
- package/lib/widget/feed-container/feed-container.component.ts +0 -4
- package/lib/widget/file-utility/file-utility.component.ts +0 -4
- package/lib/widget/quick-create/quick-create.component.ts +1 -1
- package/lib/widget/todo/todo.component.ts +3 -5
- package/package.json +1 -1
|
@@ -1,39 +1,55 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
<span class="
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
<div class="file-upload-container" *ngIf="bVisible$">
|
|
2
|
+
<span class="attachment-label" [ngClass]="{ 'file-label': bRequired$ }">{{ label$ }}</span>
|
|
3
|
+
<div *ngIf="(files.length === 0 && !allowMultiple$) || allowMultiple$">
|
|
4
|
+
<div
|
|
5
|
+
style="margin-bottom: 10px"
|
|
6
|
+
id="attachment-container"
|
|
7
|
+
[ngClass]="validateMessage ? 'psdk-modal-file-selector-error' : 'psdk-modal-file-selector'"
|
|
8
|
+
>
|
|
9
|
+
<div [hidden]="true" id="attachment-ID">
|
|
10
|
+
{{ valueRef }}
|
|
11
|
+
</div>
|
|
12
|
+
<input hidden type="file" [required]="bRequired$" #uploader [id]="valueRef" [multiple]="allowMultiple$" (change)="onFileAdded($event)" />
|
|
13
|
+
<button mat-stroked-button color="primary" [disabled]="bDisabled$" (click)="uploader.click()">
|
|
14
|
+
{{
|
|
15
|
+
allowMultiple$
|
|
16
|
+
? uploadMultipleFilesLabel === 'file_upload_text_multiple'
|
|
17
|
+
? 'Choose files'
|
|
18
|
+
: uploadMultipleFilesLabel
|
|
19
|
+
: uploadSingleFileLabel === 'file_upload_text_one'
|
|
20
|
+
? 'Choose a file'
|
|
21
|
+
: uploadSingleFileLabel
|
|
22
|
+
}}
|
|
23
|
+
</button>
|
|
24
|
+
</div>
|
|
24
25
|
</div>
|
|
25
26
|
<span *ngIf="validateMessage" class="file-error">{{ validateMessage }}</span>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
<div *ngIf="files && files.length > 0">
|
|
28
|
+
<div *ngFor="let file of files">
|
|
29
|
+
<div class="psdk-attachment-card">
|
|
30
|
+
<div className="psdk-utility-card-icon">
|
|
31
|
+
<img *ngIf="!file.inProgress" class="psdk-attachment-card-svg-icon" src="{{ srcImg }}" />
|
|
32
|
+
<mat-spinner *ngIf="file.inProgress" class="progress-spinner" diameter="40"></mat-spinner>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="psdk-attachment-card-main">
|
|
35
|
+
<div class="psdk-attachment-card-main-primary-label">{{ file.props.name }}</div>
|
|
36
|
+
<div *ngIf="file.props.meta" [ngStyle]="{ color: file.props.error ? 'red' : null }">{{ file.props.meta }}</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="psdk-attachment-action">
|
|
39
|
+
<button id="delete-attachment" *ngIf="file.ID" class="psdk-utility-button" (click)="deleteFile(file)">
|
|
40
|
+
<img class="psdk-utility-card-action-svg-icon" src="{{ deleteIcon }}" />
|
|
41
|
+
</button>
|
|
42
|
+
<div *ngIf="!file.ID">
|
|
43
|
+
<button id="setting-button" mat-icon-button [matMenuTriggerFor]="actionMenu">
|
|
44
|
+
<mat-icon>more_vert</mat-icon>
|
|
45
|
+
</button>
|
|
46
|
+
<mat-menu #actionMenu="matMenu">
|
|
47
|
+
<button mat-menu-item (click)="downloadFile(file.responseProps ? file.responseProps : {})">Download</button>
|
|
48
|
+
<button mat-menu-item (click)="deleteFile(file)">Delete</button>
|
|
49
|
+
</mat-menu>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
37
53
|
</div>
|
|
38
54
|
</div>
|
|
39
55
|
</div>
|
|
@@ -53,3 +53,121 @@
|
|
|
53
53
|
::ng-deep .mat-mdc-form-field-infix {
|
|
54
54
|
width: auto;
|
|
55
55
|
}
|
|
56
|
+
.psdk-modal-file-selector {
|
|
57
|
+
border: 1px dashed var(--app-neutral-dark-color);
|
|
58
|
+
padding: 0.5rem;
|
|
59
|
+
text-align: center;
|
|
60
|
+
position: relative;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.label-required::after {
|
|
64
|
+
display: inline;
|
|
65
|
+
content: ' *';
|
|
66
|
+
vertical-align: top;
|
|
67
|
+
color: var(--app-neutral-dark-color);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.file-error {
|
|
71
|
+
color: var(--app-error-light-color);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.psdk-modal-file-selector-error {
|
|
75
|
+
border: 1px dashed var(--app-error-light-color);
|
|
76
|
+
padding: 0.5rem;
|
|
77
|
+
text-align: center;
|
|
78
|
+
position: relative;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.psdk-full-width {
|
|
82
|
+
width: 100%;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.psdk-label-readonly {
|
|
86
|
+
opacity: 54%;
|
|
87
|
+
font-size: 0.8rem;
|
|
88
|
+
font-weight: 400;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.psdk-data-readonly {
|
|
92
|
+
padding-top: 0.625rem;
|
|
93
|
+
width: 100%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.psdk-attachment-list {
|
|
97
|
+
border: 1px solid var(--app-neutral-color);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
::ng-deep .mat-mdc-form-field-infix {
|
|
101
|
+
width: auto;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.psdk-attachment-card {
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
border: 0.0625rem solid rgb(207, 207, 207);
|
|
108
|
+
border-radius: calc(0.25rem);
|
|
109
|
+
padding: 0.25rem 0rem 0.25rem 0.25rem;
|
|
110
|
+
min-height: 3rem;
|
|
111
|
+
margin-bottom: 0.5rem;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.psdk-attachment-card-main-primary-label {
|
|
115
|
+
font-weight: 500;
|
|
116
|
+
text-overflow: ellipsis;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
white-space: normal;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.psdk-attachment-card-main {
|
|
122
|
+
flex-grow: 2;
|
|
123
|
+
margin-left: 5px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.psdk-attachment-action {
|
|
127
|
+
flex-grow: 1;
|
|
128
|
+
text-align: right;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.psdk-attachment-card-svg-icon {
|
|
132
|
+
width: 2.5rem;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.psdk-utility-button {
|
|
136
|
+
background: none;
|
|
137
|
+
border: none;
|
|
138
|
+
margin-right: 0.5rem;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.psdk-utility-card-action-svg-icon {
|
|
143
|
+
width: 1.4rem;
|
|
144
|
+
display: inline-block;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.file-div {
|
|
148
|
+
border: 1px dashed var(--app-neutral-dark-color);
|
|
149
|
+
width: 100%;
|
|
150
|
+
padding: 0.5rem;
|
|
151
|
+
text-align: center;
|
|
152
|
+
position: relative;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.file-div-error {
|
|
156
|
+
border: 1px dashed var(--app-error-light-color);
|
|
157
|
+
width: 100%;
|
|
158
|
+
padding: 0.5rem;
|
|
159
|
+
text-align: center;
|
|
160
|
+
position: relative;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.attachment-label {
|
|
164
|
+
display: block;
|
|
165
|
+
margin-bottom: 10px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.file-label::after {
|
|
169
|
+
display: inline;
|
|
170
|
+
content: ' *';
|
|
171
|
+
vertical-align: top;
|
|
172
|
+
color: var(--app-neutral-dark-color);
|
|
173
|
+
}
|