@praxisui/dynamic-fields 1.0.0-beta.18 → 1.0.0-beta.20
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.
|
@@ -15165,6 +15165,20 @@ class FieldShellComponent {
|
|
|
15165
15165
|
});
|
|
15166
15166
|
return st.presentation;
|
|
15167
15167
|
}
|
|
15168
|
+
/**
|
|
15169
|
+
* Determines whether the actual field component should remain visible
|
|
15170
|
+
* during presentation mode. Used for inherently display widgets.
|
|
15171
|
+
* Currently enabled for controlType 'avatar'.
|
|
15172
|
+
*/
|
|
15173
|
+
renderContentInPresentation() {
|
|
15174
|
+
try {
|
|
15175
|
+
const ct = String(this.field?.controlType || '').toLowerCase();
|
|
15176
|
+
return ct === 'avatar';
|
|
15177
|
+
}
|
|
15178
|
+
catch {
|
|
15179
|
+
return false;
|
|
15180
|
+
}
|
|
15181
|
+
}
|
|
15168
15182
|
getPresentationValue() {
|
|
15169
15183
|
const raw = this.control ? this.control.value : undefined;
|
|
15170
15184
|
try {
|
|
@@ -15217,7 +15231,7 @@ class FieldShellComponent {
|
|
|
15217
15231
|
[style.display]="effectiveVisible ? null : 'none'"
|
|
15218
15232
|
>
|
|
15219
15233
|
<!-- Presentation block -->
|
|
15220
|
-
@if (effectivePresentationMode) {
|
|
15234
|
+
@if (effectivePresentationMode && !renderContentInPresentation()) {
|
|
15221
15235
|
<div class="praxis-presentation" [attr.data-field]="field.name">
|
|
15222
15236
|
<span class="praxis-presentation__label">{{
|
|
15223
15237
|
field.label || field.name
|
|
@@ -15234,7 +15248,7 @@ class FieldShellComponent {
|
|
|
15234
15248
|
<ng-container #insertionPoint></ng-container>
|
|
15235
15249
|
</ng-template>
|
|
15236
15250
|
|
|
15237
|
-
<div [style.display]="effectivePresentationMode ? 'none' : null">
|
|
15251
|
+
<div [style.display]="(effectivePresentationMode && !renderContentInPresentation()) ? 'none' : null">
|
|
15238
15252
|
@if (itemTemplate) {
|
|
15239
15253
|
<ng-container
|
|
15240
15254
|
[ngTemplateOutlet]="itemTemplate"
|
|
@@ -15274,7 +15288,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
15274
15288
|
[style.display]="effectiveVisible ? null : 'none'"
|
|
15275
15289
|
>
|
|
15276
15290
|
<!-- Presentation block -->
|
|
15277
|
-
@if (effectivePresentationMode) {
|
|
15291
|
+
@if (effectivePresentationMode && !renderContentInPresentation()) {
|
|
15278
15292
|
<div class="praxis-presentation" [attr.data-field]="field.name">
|
|
15279
15293
|
<span class="praxis-presentation__label">{{
|
|
15280
15294
|
field.label || field.name
|
|
@@ -15291,7 +15305,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
15291
15305
|
<ng-container #insertionPoint></ng-container>
|
|
15292
15306
|
</ng-template>
|
|
15293
15307
|
|
|
15294
|
-
<div [style.display]="effectivePresentationMode ? 'none' : null">
|
|
15308
|
+
<div [style.display]="(effectivePresentationMode && !renderContentInPresentation()) ? 'none' : null">
|
|
15295
15309
|
@if (itemTemplate) {
|
|
15296
15310
|
<ng-container
|
|
15297
15311
|
[ngTemplateOutlet]="itemTemplate"
|