Skip to content

Commit 0d0559c

Browse files
samhere06mohas22
andauthored
replaced LABELS_LEFT with DISPLAY_ONLY (#238)
Co-authored-by: mohas22 <[email protected]>
1 parent 4d46a4f commit 0d0559c

File tree

13 files changed

+17
-17
lines changed

13 files changed

+17
-17
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ export class GroupComponent implements OnInit {
7373
this.visibility$ = this.pConn$.getComputedVisibility();
7474
}
7575

76-
if (this.configProps$.displayMode === 'LABELS_LEFT') {
76+
if (this.configProps$.displayMode === 'DISPLAY_ONLY') {
7777
if (this.configProps$.visibility === undefined) this.visibility$ = true;
7878

7979
this.arChildren$.forEach(child => {
8080
const pConn = child.getPConnect();
81-
pConn.setInheritedProp('displayMode', 'LABELS_LEFT');
81+
pConn.setInheritedProp('displayMode', 'DISPLAY_ONLY');
8282
pConn.setInheritedProp('readOnly', true);
8383

8484
return child;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class ScalarListComponent implements OnInit, OnDestroy {
102102
type: componentType,
103103
config: {
104104
value: scalarValue,
105-
displayMode: 'LABELS_LEFT',
105+
displayMode: 'DISPLAY_ONLY',
106106
label: this.label$,
107107
...restProps,
108108
readOnly: true
@@ -113,7 +113,7 @@ export class ScalarListComponent implements OnInit, OnDestroy {
113113
{}
114114
); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional;
115115
});
116-
this.isDisplayModeEnabled = ['LABELS_LEFT', 'STACKED_LARGE_VAL', 'DISPLAY_ONLY'].includes(this.displayMode$ as string);
116+
this.isDisplayModeEnabled = ['STACKED_LARGE_VAL', 'DISPLAY_ONLY'].includes(this.displayMode$ as string);
117117
this.value$ = this.items;
118118
}
119119
}

packages/angular-sdk-components/src/lib/_components/infra/defer-load/defer-load.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
116116
}
117117
};
118118
const configObject = PCore.createPConnect(config);
119-
configObject.getPConnect().setInheritedProp('displayMode', 'LABELS_LEFT');
119+
configObject.getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');
120120
this.loadedPConn$ = ReferenceComponent.normalizePConn(configObject.getPConnect());
121121
this.componentName$ = this.loadedPConn$.getComponentName();
122122
if (this.deferLoadId) {

packages/angular-sdk-components/src/lib/_components/template/data-reference/data-reference.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class DataReferenceComponent implements OnInit, OnDestroy {
113113
this.refList = this.rawViewMetadata.config.referenceList;
114114
this.canBeChangedInReviewMode = theConfigProps.allowAndPersistChangesInReviewMode && (displayAs === 'autocomplete' || displayAs === 'dropdown');
115115
// this.childrenToRender = this.children;
116-
this.isDisplayModeEnabled = ['LABELS_LEFT', 'STACKED_LARGE_VAL'].includes(displayMode);
116+
this.isDisplayModeEnabled = ['DISPLAY_ONLY', 'STACKED_LARGE_VAL'].includes(displayMode);
117117

118118
if (this.firstChildMeta?.type !== 'Region') {
119119
this.firstChildPConnect = this.pConn$.getChildren()[0].getPConnect;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class DetailsOneColumnComponent implements OnInit, OnDestroy {
7070
});
7171
}
7272

73-
this.pConn$.setInheritedProp('displayMode', 'LABELS_LEFT');
73+
this.pConn$.setInheritedProp('displayMode', 'DISPLAY_ONLY');
7474
this.pConn$.setInheritedProp('readOnly', true);
7575

7676
const kids = this.pConn$.getChildren() as any[];

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class DetailsThreeColumnComponent implements OnInit, OnDestroy {
7575
});
7676
}
7777

78-
this.pConn$.setInheritedProp('displayMode', 'LABELS_LEFT');
78+
this.pConn$.setInheritedProp('displayMode', 'DISPLAY_ONLY');
7979
this.pConn$.setInheritedProp('readOnly', true);
8080

8181
const kids = this.pConn$.getChildren() as any[];

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
@@ -75,7 +75,7 @@ export class DetailsTwoColumnComponent implements OnInit, OnDestroy {
7575
});
7676
}
7777

78-
this.pConn$.setInheritedProp('displayMode', 'LABELS_LEFT');
78+
this.pConn$.setInheritedProp('displayMode', 'DISPLAY_ONLY');
7979
this.pConn$.setInheritedProp('readOnly', true);
8080

8181
const kids = this.pConn$.getChildren() as any[];

packages/angular-sdk-components/src/lib/_components/template/details-wide-narrow/details-wide-narrow.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class DetailsWideNarrowComponent implements OnInit, OnDestroy {
7171
});
7272
}
7373

74-
this.pConn$.setInheritedProp('displayMode', 'LABELS_LEFT');
74+
this.pConn$.setInheritedProp('displayMode', 'DISPLAY_ONLY');
7575
this.pConn$.setInheritedProp('readOnly', true);
7676

7777
const kids = this.pConn$.getChildren() as any[];

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class DetailsComponent implements OnInit, OnDestroy {
7979
if (theCompType === 'reference' || theCompType === 'group') {
8080
const configProps = thePConn.getConfigProps();
8181
configProps.readOnly = true;
82-
configProps.displayMode = 'LABELS_LEFT';
82+
configProps.displayMode = 'DISPLAY_ONLY';
8383
const propToUse = { ...thePConn.getInheritedProps() };
8484
configProps.label = propToUse?.label;
8585
const options = {

packages/angular-sdk-components/src/lib/_components/template/dynamic-tabs/dynamic-tabs.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class DynamicTabsComponent implements OnInit, OnDestroy {
5959
const { tablabel } = this.pConn$.getComponentConfig();
6060
const tablabelProp = PCore.getAnnotationUtils().getPropertyName(tablabel);
6161

62-
this.pConn$.setInheritedProp('displayMode', 'LABELS_LEFT');
62+
this.pConn$.setInheritedProp('displayMode', 'DISPLAY_ONLY');
6363
this.pConn$.setInheritedProp('readOnly', true);
6464

6565
const referenceListData = this.pConn$.getValue(`${referenceList}.pxResults`, ''); // 2nd arg empty string until typedefs properly allow optional

0 commit comments

Comments
 (0)