@dflat-core/web 1.7.2058 → 1.7.2059

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.
@@ -49,6 +49,13 @@ import { AccordionModule } from "ngx-bootstrap/accordion";
49
49
  const PP_GRP_STANDARD = "standard";
50
50
  const PP_GRP_CUSTOM = "custom";
51
51
  var PresentationProfileTransformer = class PresentationProfileTransformer {
52
+ static {
53
+ this.IMAGE_DISPLAY_TYPES = [
54
+ "img",
55
+ "wide-img",
56
+ "img-file"
57
+ ];
58
+ }
52
59
  static buildGroups(catalog) {
53
60
  const groups = [];
54
61
  if (catalog.some((i) => i.ColumnSourceType !== 2)) groups.push({
@@ -76,11 +83,12 @@ var PresentationProfileTransformer = class PresentationProfileTransformer {
76
83
  const displayLabel = i.Label || template?.Name || i.ColumnKey;
77
84
  if ((i.ColumnSourceType ?? 0) !== 2) {
78
85
  if (!template) return null;
86
+ const isImage = PresentationProfileTransformer.IMAGE_DISPLAY_TYPES.includes(template.Display?.type ?? "");
79
87
  return {
80
88
  ...template,
81
- Name: displayLabel,
89
+ Name: isImage ? "" : displayLabel,
82
90
  FieldName: displayLabel,
83
- Display: {
91
+ Display: isImage ? template.Display : {
84
92
  ...template.Display ?? {},
85
93
  type: "text"
86
94
  }