@dflat-core/web 1.7.2072 → 1.7.2073

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.
@@ -20736,10 +20736,14 @@ var PresentationProfileEditorComponent = class PresentationProfileEditorComponen
20736
20736
  alterSections(sections) {
20737
20737
  return sections.map((section) => ({
20738
20738
  ...section,
20739
- FieldViewModels: (section.FieldViewModels ?? []).map((field) => field.PropertyName === "MetaEntityKey" && Array.isArray(field.Data) ? {
20740
- ...field,
20741
- Data: field.Data.filter((e) => e.MetaEntityType === void 0 || e.MetaEntityType === MetaEntityTypes.Table)
20742
- } : field)
20739
+ FieldViewModels: (section.FieldViewModels ?? []).map((field) => {
20740
+ if (field.PropertyName !== "MetaEntityKey" || !Array.isArray(field.Data)) return field;
20741
+ const tables = new Set(field.Data.filter((e) => e.MetaEntityType === void 0 || e.MetaEntityType === MetaEntityTypes.Table).map((e) => e.EntityName));
20742
+ return {
20743
+ ...field,
20744
+ Data: field.Data.filter((e) => e.MetaEntityType === void 0 || e.MetaEntityType === MetaEntityTypes.Table || e.MetaEntityType === MetaEntityTypes.SystemView && !(e.EntityName?.endsWith("View") && tables.has(e.EntityName.slice(0, -4))))
20745
+ };
20746
+ })
20743
20747
  }));
20744
20748
  }
20745
20749
  isFieldHidden(field) {