@sap-ux/fiori-elements-writer 2.1.41 → 2.2.0

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.
package/dist/types.d.ts CHANGED
@@ -60,9 +60,19 @@ export interface WorklistSettings extends TableSettings {
60
60
  export interface FEOPSettings {
61
61
  entityConfig: EntityConfig;
62
62
  }
63
- export interface OVPSettings {
63
+ export type OVPSettings = {
64
+ /**
65
+ * Represents the entity type to use as a global filter in the smart filter bar control.
66
+ *
67
+ * @deprecated since version SAPUI5 1.54. Use `filterEntitySet` instead, this property will be removed in a future version
68
+ */
64
69
  filterEntityType: string;
65
- }
70
+ } | {
71
+ /**
72
+ * Represents the entity set to use as a global filter in the smart filter bar control.
73
+ */
74
+ filterEntitySet: string;
75
+ };
66
76
  export interface ALPSettings extends TableSettings {
67
77
  entityConfig: EntityConfig;
68
78
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-elements-writer",
3
3
  "description": "SAP Fiori elements application writer",
4
- "version": "2.1.41",
4
+ "version": "2.2.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "sap.ovp": {
3
3
  "globalFilterModel": "<%- defaultModel %>",
4
+ <% if (locals.filterEntityType) { %>
4
5
  "globalFilterEntityType": "<%- filterEntityType %>",
6
+ <% } else if (locals.filterEntitySet) { %>
7
+ "globalFilterEntitySet": "<%- filterEntitySet %>",
8
+ <% } %>
5
9
  "containerLayout": "resizable",
6
10
  "enableLiveFilter": true,
7
11
  "considerAnalyticalParameters": false,