diff --git a/packages/angular-sdk-components/src/lib/_components/field/rich-text/rich-text.component.html b/packages/angular-sdk-components/src/lib/_components/field/rich-text/rich-text.component.html index dd4c525f..e7a038f8 100644 --- a/packages/angular-sdk-components/src/lib/_components/field/rich-text/rich-text.component.html +++ b/packages/angular-sdk-components/src/lib/_components/field/rich-text/rich-text.component.html @@ -1,5 +1,5 @@
- +
diff --git a/packages/angular-sdk-components/src/lib/_components/template/field-value-list/field-value-list.component.html b/packages/angular-sdk-components/src/lib/_components/template/field-value-list/field-value-list.component.html index 04e9d0cf..339d7477 100644 --- a/packages/angular-sdk-components/src/lib/_components/template/field-value-list/field-value-list.component.html +++ b/packages/angular-sdk-components/src/lib/_components/template/field-value-list/field-value-list.component.html @@ -1,7 +1,7 @@
{{ label$ }}
- {{ value$ || '---' }} +
@@ -9,7 +9,12 @@
{{ label$ }}
- {{ value$ || '---' }} +
+ + +
+ {{ value$ || '---' }} +
diff --git a/packages/angular-sdk-components/src/lib/_components/template/field-value-list/field-value-list.component.ts b/packages/angular-sdk-components/src/lib/_components/template/field-value-list/field-value-list.component.ts index 6c017d6a..bcdf2502 100644 --- a/packages/angular-sdk-components/src/lib/_components/template/field-value-list/field-value-list.component.ts +++ b/packages/angular-sdk-components/src/lib/_components/template/field-value-list/field-value-list.component.ts @@ -12,4 +12,5 @@ export class FieldValueListComponent { @Input() label$: any; @Input() value$: any; @Input() displayMode$: any; + @Input() isHtml$ = false; } diff --git a/packages/angular-sdk-components/src/lib/_components/template/simple-table-manual/simple-table-manual.component.ts b/packages/angular-sdk-components/src/lib/_components/template/simple-table-manual/simple-table-manual.component.ts index d9310b5b..a462cadd 100644 --- a/packages/angular-sdk-components/src/lib/_components/template/simple-table-manual/simple-table-manual.component.ts +++ b/packages/angular-sdk-components/src/lib/_components/template/simple-table-manual/simple-table-manual.component.ts @@ -303,18 +303,7 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy { // Nebula and we may not end up using it all. this.fieldDefs = buildFieldsForTable(rawFields, resolvedFields, showDeleteButton); - if (this.isInitialized) { - this.isInitialized = false; - if (this.allowEditingInModal) { - this.pConn$.getListActions().initDefaultPageInstructions( - this.pConn$.getReferenceList(), - this.fieldDefs.filter(item => item.name).map(item => item.name) - ); - } else { - // @ts-ignore - An argument for 'fields' was not provided - this.pConn$.getListActions().initDefaultPageInstructions(this.pConn$.getReferenceList()); - } - } + this.initializeDefaultPageInstructions(); // end of from Nebula @@ -364,6 +353,21 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy { // ties the 3 data structures together. } + initializeDefaultPageInstructions() { + if (this.isInitialized) { + this.isInitialized = false; + if (this.allowEditingInModal) { + this.pConn$.getListActions().initDefaultPageInstructions( + this.pConn$.getReferenceList(), + this.fieldDefs.filter(item => item.name).map(item => item.name) + ); + } else { + // @ts-ignore - An argument for 'fields' was not provided + this.pConn$.getListActions().initDefaultPageInstructions(this.pConn$.getReferenceList()); + } + } + } + getResultsText() { const recordsCount = this.readOnlyMode ? this.rowData?.data.length : this.referenceList?.length; return `${recordsCount} result${recordsCount > 1 ? 's' : ''}`;