@sap-ux/adp-tooling 0.12.50 → 0.12.52

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.
@@ -6,6 +6,7 @@ const project_access_1 = require("@sap-ux/project-access");
6
6
  const ejs_1 = require("ejs");
7
7
  const crypto_1 = require("crypto");
8
8
  const OBJECT_PAGE_CUSTOM_SECTION = 'OBJECT_PAGE_CUSTOM_SECTION';
9
+ const OBJECT_PAGE_HEADER_FIELD = 'OBJECT_PAGE_HEADER_FIELD';
9
10
  const fragmentTemplateDefinitions = {
10
11
  [OBJECT_PAGE_CUSTOM_SECTION]: {
11
12
  path: 'common/op-custom-section.xml',
@@ -19,6 +20,18 @@ const fragmentTemplateDefinitions = {
19
20
  }
20
21
  };
21
22
  }
23
+ },
24
+ [OBJECT_PAGE_HEADER_FIELD]: {
25
+ path: 'common/header-field.xml',
26
+ getData: () => {
27
+ const uuid = (0, crypto_1.randomBytes)(4).toString('hex');
28
+ return {
29
+ ids: {
30
+ vBoxContainer: `vBox-${uuid}`,
31
+ label: `label-${uuid}`
32
+ }
33
+ };
34
+ }
22
35
  }
23
36
  };
24
37
  /**
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
11
11
  },
12
- "version": "0.12.50",
12
+ "version": "0.12.52",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -36,10 +36,10 @@
36
36
  "@sap-ux/btp-utils": "0.15.2",
37
37
  "@sap-ux/inquirer-common": "0.4.6",
38
38
  "@sap-ux/logger": "0.6.0",
39
- "@sap-ux/project-access": "1.27.3",
40
- "@sap-ux/project-input-validator": "0.3.3",
39
+ "@sap-ux/project-access": "1.27.4",
41
40
  "@sap-ux/system-access": "0.5.11",
42
- "@sap-ux/ui5-config": "0.24.1"
41
+ "@sap-ux/project-input-validator": "0.3.3",
42
+ "@sap-ux/ui5-config": "0.25.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/adm-zip": "0.5.5",
@@ -0,0 +1,10 @@
1
+ <!-- Use stable and unique IDs!-->
2
+ <core:FragmentDefinition
3
+ xmlns:uxap="sap.uxap"
4
+ xmlns:core='sap.ui.core'
5
+ xmlns='sap.m'
6
+ >
7
+ <VBox id="<%- ids.vBoxContainer %>">
8
+ <Label id="<%- ids.label %>" text="New Field"></Label>
9
+ </VBox>
10
+ </core:FragmentDefinition>