@abaplint/core 2.83.12 → 2.83.13

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/build/src/ddic.js CHANGED
@@ -143,6 +143,7 @@ class DDIC {
143
143
  }
144
144
  }
145
145
  lookupNoVoid(name) {
146
+ var _a;
146
147
  const foundTABL = this.reg.getObject("TABL", name);
147
148
  if (foundTABL) {
148
149
  return { type: foundTABL.parseType(this.reg), object: foundTABL };
@@ -162,7 +163,7 @@ class DDIC {
162
163
  const upper = name.toUpperCase();
163
164
  for (const obj of this.reg.getObjectsByType("DDLS")) {
164
165
  const ddls = obj;
165
- if (ddls.getSQLViewName() === upper || ddls.getDefinitionName() === upper) {
166
+ if (ddls.getSQLViewName() === upper || ((_a = ddls.getDefinitionName()) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === upper) {
166
167
  return { type: ddls.parseType(this.reg), object: obj };
167
168
  }
168
169
  }
@@ -209,6 +210,7 @@ class DDIC {
209
210
  }
210
211
  }
211
212
  lookupTableOrView(name) {
213
+ var _a;
212
214
  if (name === undefined) {
213
215
  return { type: new Types.UnknownType("undefined, lookupTableOrView") };
214
216
  }
@@ -219,13 +221,14 @@ class DDIC {
219
221
  const upper = name.toUpperCase();
220
222
  for (const obj of this.reg.getObjectsByType("DDLS")) {
221
223
  const ddls = obj;
222
- if (ddls.getSQLViewName() === upper || ddls.getDefinitionName() === upper) {
224
+ if (ddls.getSQLViewName() === upper || ((_a = ddls.getDefinitionName()) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === upper) {
223
225
  return { type: ddls.parseType(this.reg), object: ddls };
224
226
  }
225
227
  }
226
228
  return this.lookupView(name);
227
229
  }
228
230
  lookupTableOrView2(name) {
231
+ var _a;
229
232
  if (name === undefined) {
230
233
  return undefined;
231
234
  }
@@ -240,7 +243,7 @@ class DDIC {
240
243
  const upper = name.toUpperCase();
241
244
  for (const obj of this.reg.getObjectsByType("DDLS")) {
242
245
  const ddls = obj;
243
- if (ddls.getSQLViewName() === upper || ddls.getDefinitionName() === upper) {
246
+ if (ddls.getSQLViewName() === upper || ((_a = ddls.getDefinitionName()) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === upper) {
244
247
  return ddls;
245
248
  }
246
249
  }
@@ -90,8 +90,13 @@ class Table extends _abstract_object_1.AbstractObject {
90
90
  found = found.getType();
91
91
  }
92
92
  if (found instanceof Types.StructureType) {
93
- for (const c of found.getComponents()) {
94
- components.push({ name: c.name, type: c.type });
93
+ if (field.GROUPNAME !== undefined) {
94
+ components.push({ name: field.GROUPNAME, type: found });
95
+ }
96
+ else {
97
+ for (const c of found.getComponents()) {
98
+ components.push({ name: c.name, type: c.type });
99
+ }
95
100
  }
96
101
  }
97
102
  else if ((((_a = field.PRECFIELD) === null || _a === void 0 ? void 0 : _a.startsWith("CI_")) || ((_b = field.PRECFIELD) === null || _b === void 0 ? void 0 : _b.startsWith("SI_")))
@@ -241,6 +246,7 @@ class Table extends _abstract_object_1.AbstractObject {
241
246
  DATATYPE: field.DATATYPE,
242
247
  DECIMALS: field.DECIMALS,
243
248
  KEYFLAG: field.KEYFLAG,
249
+ GROUPNAME: field.GROUPNAME,
244
250
  });
245
251
  }
246
252
  }
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.83.12";
71
+ return "2.83.13";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.83.12",
3
+ "version": "2.83.13",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",