@sap-ux/fe-fpm-writer 0.22.0 → 0.22.2

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.
@@ -11,7 +11,7 @@ export interface CustomSection extends CustomElement, EventHandler {
11
11
  /**
12
12
  * Defines the position of the section relative to other sections.
13
13
  */
14
- position: Position;
14
+ position?: Position;
15
15
  /**
16
16
  * Optional control XML that will be generated into the fragment of section. If the property isn't provided then a sample control will be generated.
17
17
  */
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.22.0",
4
+ "version": "0.22.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -24,7 +24,7 @@
24
24
  "ejs": "3.1.7",
25
25
  "mem-fs": "2.1.0",
26
26
  "mem-fs-editor": "9.4.0",
27
- "semver": "7.3.5",
27
+ "semver": "7.5.3",
28
28
  "xml-formatter": "2.6.1",
29
29
  "xpath": "0.0.32"
30
30
  },
@@ -33,7 +33,7 @@
33
33
  "@types/mem-fs": "1.1.2",
34
34
  "@types/mem-fs-editor": "7.0.1",
35
35
  "@types/semver": "7.3.9",
36
- "@sap-ux/project-access": "1.8.1"
36
+ "@sap-ux/project-access": "1.8.3"
37
37
  },
38
38
  "engines": {
39
39
  "pnpm": ">=6.26.1 < 7.0.0 || >=7.1.0",
@@ -11,14 +11,14 @@
11
11
  "<%- name %>": {
12
12
  "name": "<%- ns %>.<%- name %>",
13
13
  "type": "XMLFragment",
14
- "position": {
14
+ <%if (typeof position !== 'undefined') {%>"position": {
15
15
  <% if (position.placement) { %>
16
- "placement": "<%- position.placement %>",
16
+ "placement": "<%- position.placement %>"<% if (position.anchor) { %>,<% } %>
17
17
  <% } %>
18
18
  <% if (position.anchor) { %>
19
19
  "anchor": "<%- position.anchor %>"
20
20
  <% } %>
21
- },
21
+ },<% } %>
22
22
  "title": "<%- title %>"
23
23
  }
24
24
  }
@@ -10,14 +10,14 @@
10
10
  "sections": {
11
11
  "<%- name %>": {
12
12
  "template": "<%- ns %>.<%- name %>",
13
- "position": {
13
+ <%if (typeof position !== 'undefined') {%>"position": {
14
14
  <% if (position.placement) { %>
15
- "placement": "<%- position.placement %>",
15
+ "placement": "<%- position.placement %>"<% if (position.anchor) { %>,<% } %>
16
16
  <% } %>
17
17
  <% if (position.anchor) { %>
18
18
  "anchor": "<%- position.anchor %>"
19
19
  <% } %>
20
- },
20
+ },<% } %>
21
21
  "title": "<%- title %>"
22
22
  }
23
23
  }
@@ -13,14 +13,14 @@
13
13
  "<%- name %>": {
14
14
  "name": "<%- ns %>.<%- name %>",
15
15
  "type": "XMLFragment",
16
- "position": {
16
+ <%if (typeof position !== 'undefined') {%>"position": {
17
17
  <% if (position.placement) { %>
18
- "placement": "<%- position.placement %>",
18
+ "placement": "<%- position.placement %>"<% if (position.anchor) { %>,<% } %>
19
19
  <% } %>
20
20
  <% if (position.anchor) { %>
21
- "anchor": "<%- position.anchor %>"
21
+ "anchor": "<%- position.anchor %>"
22
22
  <% } %>
23
- },
23
+ },<% } %>
24
24
  "title": "<%- title %>"
25
25
  }
26
26
  }
@@ -12,14 +12,14 @@
12
12
  "subSections": {
13
13
  "<%- name %>": {
14
14
  "template": "<%- ns %>.<%- name %>",
15
- "position": {
15
+ <%if (typeof position !== 'undefined') {%>"position": {
16
16
  <% if (position.placement) { %>
17
- "placement": "<%- position.placement %>",
17
+ "placement": "<%- position.placement %>"<% if (position.anchor) { %>,<% } %>
18
18
  <% } %>
19
19
  <% if (position.anchor) { %>
20
20
  "anchor": "<%- position.anchor %>"
21
21
  <% } %>
22
- },
22
+ },<% } %>
23
23
  "title": "<%- title %>"
24
24
  }
25
25
  }