@sap-ux/fe-fpm-writer 0.43.5 → 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
|
-
|
|
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);
|
package/dist/common/file.d.ts
CHANGED
|
@@ -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.
|
package/dist/common/file.js
CHANGED
package/package.json
CHANGED
|
@@ -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><% } %>
|