@sap-ux/adp-tooling 0.12.62 → 0.12.63

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,6 +11,7 @@ const crypto_1 = require("crypto");
11
11
  const OBJECT_PAGE_CUSTOM_SECTION = 'OBJECT_PAGE_CUSTOM_SECTION';
12
12
  const CUSTOM_ACTION = 'CUSTOM_ACTION';
13
13
  const OBJECT_PAGE_HEADER_FIELD = 'OBJECT_PAGE_HEADER_FIELD';
14
+ const TABLE_ACTION = 'TABLE_ACTION';
14
15
  const fragmentTemplateDefinitions = {
15
16
  [OBJECT_PAGE_CUSTOM_SECTION]: {
16
17
  path: 'common/op-custom-section.xml',
@@ -36,6 +37,18 @@ const fragmentTemplateDefinitions = {
36
37
  };
37
38
  }
38
39
  },
40
+ [TABLE_ACTION]: {
41
+ path: 'common/v4-table-action.xml',
42
+ getData: () => {
43
+ const uuid = (0, crypto_1.randomBytes)(4).toString('hex');
44
+ return {
45
+ ids: {
46
+ customToolbarAction: `toolbarAction-${uuid}`,
47
+ customActionButton: `btn-${uuid}`
48
+ }
49
+ };
50
+ }
51
+ },
39
52
  [OBJECT_PAGE_HEADER_FIELD]: {
40
53
  path: 'common/header-field.xml',
41
54
  getData: () => {
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.62",
12
+ "version": "0.12.63",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -0,0 +1,5 @@
1
+ <core:FragmentDefinition xmlns:core='sap.ui.core' xmlns='sap.m'>
2
+ <actiontoolbar:ActionToolbarAction xmlns:actiontoolbar="sap.ui.mdc.actiontoolbar" id="<%- ids.customToolbarAction%>" >
3
+ <Button xmlns:m="sap.m" id="<%- ids.customActionButton %>" visible="true" text="New Action" />
4
+ </actiontoolbar:ActionToolbarAction>
5
+ </core:FragmentDefinition>