Skip to content

Commit 9ae8b7a

Browse files
author
mashm
committed
Fixed the identified issues
1 parent 2b31a19 commit 9ae8b7a

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

packages/angular-sdk-components/src/lib/_components/designSystemExtension/material-details-fields/material-details-fields.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<a *ngSwitchCase="'email'" href="mailto: {{ field.config.value }}">{{ _getValue(field.config.value) }}</a>
2222
<span *ngSwitchCase="'date'" class="psdk-details-text-style">{{ _formatDate(field.config.value, field.type) }}</span>
2323
<span *ngSwitchCase="'caseoperator'"></span>
24-
<span *ngSwitchDefault>{{ _getValue(field.config.value) }}</span>
24+
<span *ngSwitchDefault>{{ _getValue(field.config.value, field) }}</span>
2525
</div>
2626
</div>
2727
</ng-template>

packages/angular-sdk-components/src/lib/_components/designSystemExtension/material-details-fields/material-details-fields.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ export class MaterialDetailsFieldsComponent {
1616
@Input() arFields$: any[];
1717
@Input() arHighlightedFields: any[];
1818

19-
_getValue(configValue) {
19+
_getValue(configValue, field: any = {}) {
20+
if (field?.type === 'userreference') {
21+
return configValue.userName;
22+
}
2023
if (configValue && configValue != '') {
2124
return configValue;
2225
}

packages/angular-sdk-components/src/lib/_components/field/text/text.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/an
44
import { Utils } from '../../../_helpers/utils';
55
import { ComponentMapperComponent } from '../../../_bridge/component-mapper/component-mapper.component';
66
import { PConnFieldProps } from '../../../_types/PConnProps.interface';
7+
import { FormGroup } from '@angular/forms';
78

89
interface TextProps extends PConnFieldProps {
910
// If any, enter additional props that only exist on Text here
@@ -18,6 +19,7 @@ interface TextProps extends PConnFieldProps {
1819
})
1920
export class TextComponent implements OnInit, OnDestroy {
2021
@Input() pConn$: typeof PConnect;
22+
@Input() formGroup$: FormGroup;
2123
@Input() formatAs$: string;
2224

2325
// Used with AngularPConnect

packages/angular-sdk-components/src/lib/_components/infra/stages/stages.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@
5959
border-radius: 0.5rem;
6060
border: 0.0625rem solid var(--app-neutral-light-color);
6161
overflow: hidden;
62-
height: 2rem;
6362
display: flex;
63+
flex-wrap: wrap;
6464
}
6565

6666
.psdk-stages-chevron {
6767
position: relative;
68-
padding: calc(1rem);
68+
padding: calc(0.5rem);
6969
display: flex;
7070
justify-content: center;
7171
align-items: center;

packages/angular-sdk-components/src/lib/_components/template/details-two-column/details-two-column.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class DetailsTwoColumnComponent implements OnInit, OnDestroy {
6363

6464
if (this.showHighlightedData) {
6565
const highlightedData = rawMetaData?.highlightedData;
66-
this.highlightedDataArr = highlightedData.map(field => {
66+
this.highlightedDataArr = highlightedData?.map(field => {
6767
field.config.displayMode = 'STACKED_LARGE_VAL';
6868

6969
if (field.config.value === '@P .pyStatusWork') {

0 commit comments

Comments
 (0)