@sap-ux/adp-tooling 0.12.136 → 0.12.138
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.
|
@@ -22,6 +22,7 @@ const V2_SMART_TABLE_COLUMN = 'V2_SMART_TABLE_COLUMN';
|
|
|
22
22
|
const V2_SMART_TABLE_CELL = 'V2_SMART_TABLE_CELL';
|
|
23
23
|
const V4_MDC_TABLE_COLUMN = 'V4_MDC_TABLE_COLUMN';
|
|
24
24
|
const ANALYTICAL_TABLE_COLUMN = 'ANALYTICAL_TABLE_COLUMN';
|
|
25
|
+
const GRID_TREE_TABLE_COLUMN = 'GRID_TREE_TABLE_COLUMN';
|
|
25
26
|
const TABLE_ACTION = 'TABLE_ACTION';
|
|
26
27
|
const fragmentTemplateDefinitions = {
|
|
27
28
|
[OBJECT_PAGE_CUSTOM_SECTION]: {
|
|
@@ -110,6 +111,22 @@ const fragmentTemplateDefinitions = {
|
|
|
110
111
|
};
|
|
111
112
|
}
|
|
112
113
|
},
|
|
114
|
+
[GRID_TREE_TABLE_COLUMN]: {
|
|
115
|
+
path: 'common/grid-tree-custom-column.xml',
|
|
116
|
+
getData: (change) => {
|
|
117
|
+
const uuid = (0, crypto_1.randomBytes)(4).toString('hex');
|
|
118
|
+
const columnIndex = change.content.index;
|
|
119
|
+
return {
|
|
120
|
+
ids: {
|
|
121
|
+
column: `column-${uuid}`,
|
|
122
|
+
label: `label-${uuid}`,
|
|
123
|
+
text: `text-${uuid}`,
|
|
124
|
+
customData: `custom-data-${uuid}`,
|
|
125
|
+
index: columnIndex.toFixed(0)
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
},
|
|
113
130
|
[ANALYTICAL_TABLE_COLUMN]: {
|
|
114
131
|
path: 'common/analytical-custom-column.xml',
|
|
115
132
|
getData: (change) => {
|
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.
|
|
12
|
+
"version": "0.12.138",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"uuid": "10.0.0",
|
|
35
35
|
"@sap-ux/axios-extension": "1.18.6",
|
|
36
36
|
"@sap-ux/btp-utils": "1.0.1",
|
|
37
|
-
"@sap-ux/inquirer-common": "0.6.
|
|
37
|
+
"@sap-ux/inquirer-common": "0.6.19",
|
|
38
38
|
"@sap-ux/logger": "0.6.0",
|
|
39
39
|
"@sap-ux/project-access": "1.29.8",
|
|
40
40
|
"@sap-ux/project-input-validator": "0.3.4",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- Use stable and unique id's!-->
|
|
2
|
+
<core:FragmentDefinition xmlns="sap.m" xmlns:table="sap.ui.table" xmlns:smartfield="sap.ui.comp.smartfield" xmlns:core="sap.ui.core">
|
|
3
|
+
<table:Column
|
|
4
|
+
autoResizable="true"
|
|
5
|
+
width="150px"
|
|
6
|
+
id="<%- ids.column %>" >
|
|
7
|
+
|
|
8
|
+
<Label id="<%- ids.label %>" text="New Column"></Label>
|
|
9
|
+
|
|
10
|
+
<table:template>
|
|
11
|
+
<Text id="<%- ids.text %>" text="Sample data"/>
|
|
12
|
+
</table:template>
|
|
13
|
+
|
|
14
|
+
<table:customData>
|
|
15
|
+
<core:CustomData key="p13nData" id="<%- ids.customData %>"
|
|
16
|
+
value='\{"columnKey": "<%- ids.column %>", "columnIndex": "<%- ids.index %>"}' />
|
|
17
|
+
</table:customData>
|
|
18
|
+
</table:Column>
|
|
19
|
+
</core:FragmentDefinition>
|