@sap-ux/fe-fpm-writer 0.43.4 → 0.43.6

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.
@@ -351,9 +351,7 @@ async function getSerializedFileContent(basePath, config, fs) {
351
351
  return {};
352
352
  }
353
353
  // Validate the base and view paths
354
- if (!fs) {
355
- fs = (0, mem_fs_editor_1.create)((0, mem_fs_1.create)());
356
- }
354
+ fs = fs ?? (0, mem_fs_editor_1.create)((0, mem_fs_1.create)());
357
355
  // Read the view xml and template files and get content of the view xml file
358
356
  const xmlDocument = viewOrFragmentPath ? getUI5XmlDocument(basePath, viewOrFragmentPath, fs) : undefined;
359
357
  const { content: manifest, path: manifestPath } = await (0, utils_1.getManifest)(basePath, fs, false);
@@ -47,6 +47,11 @@ export declare const CONFIG: {
47
47
  ids: Record<string, string>;
48
48
  };
49
49
  };
50
+ "building-block/custom-column/View.xml": {
51
+ getData: (generateId: IdGeneratorFunction) => {
52
+ ids: Record<string, string>;
53
+ };
54
+ };
50
55
  };
51
56
  /**
52
57
  * Retrieves all view and fragment files in the application.
@@ -90,6 +90,15 @@ exports.CONFIG = {
90
90
  });
91
91
  return { ids };
92
92
  }
93
+ },
94
+ ['building-block/custom-column/View.xml']: {
95
+ getData: (generateId) => {
96
+ return {
97
+ ids: {
98
+ column: generateId('TableColumn')
99
+ }
100
+ };
101
+ }
93
102
  }
94
103
  };
95
104
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fe-fpm-writer",
3
3
  "description": "SAP Fiori elements flexible programming model writer",
4
- "version": "0.43.4",
4
+ "version": "0.43.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,7 +30,7 @@
30
30
  "semver": "7.7.4",
31
31
  "xml-formatter": "2.6.1",
32
32
  "xpath": "0.0.33",
33
- "@sap-ux/fiori-annotation-api": "0.9.29",
33
+ "@sap-ux/fiori-annotation-api": "0.9.30",
34
34
  "@sap-ux/project-access": "1.35.13",
35
35
  "@sap-ux/logger": "0.8.2"
36
36
  },
@@ -1,5 +1,5 @@
1
1
  <% if (!config?.hasAggregation) { %><<%- macrosNamespace %>:columns>
2
- <% } %><<%- config?.aggregationNamespace %>:Column header="<%- data.title %>" importance="High" <% if (data.width) { %>width="<%- data.width %>"<% } %> <% if (data.position.anchor) { %>anchor="<%- data.position.anchor %>"<% } %> <% if (data.position.placement) { %>placement="<%- data.position.placement %>"<% } %> key="<%- data.columnKey || 'myColumnKey' %>">
2
+ <% } %><<%- config?.aggregationNamespace %>:Column <% if (ids.column) { %>id="<%- ids.column %>"<% } %> header="<%- data.title %>" importance="High" <% if (data.width) { %>width="<%- data.width %>"<% } %> <% if (data.position.anchor) { %>anchor="<%- data.position.anchor %>"<% } %> <% if (data.position.placement) { %>placement="<%- data.position.placement %>"<% } %> key="<%- data.columnKey || 'myColumnKey' %>">
3
3
  <core:Fragment fragmentName="<%- data.embededFragment.ns %>.<%- data.embededFragment.name %>" type="XML" />
4
4
  </<%- config?.aggregationNamespace %>:Column>
5
5
  <% if (!config?.hasAggregation) { %></<%- macrosNamespace %>:columns><% } %>