@sap/ux-ui5-tooling 1.23.0 → 1.24.0

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.
@@ -83,15 +83,12 @@ sap.ui.define(["sap/ui/dt/OverlayRegistry", "../../dialog-factory", "../control-
83
83
  const macroTable = table.getParent();
84
84
  let anchor = '';
85
85
  if (isMacroTable(macroTable)) {
86
- let metaPath = '';
87
- if (macroTable.metaPath.includes('LineItem')) {
88
- metaPath = macroTable.metaPath;
89
- } else {
86
+ const metaPath = macroTable.metaPath.includes('LineItem') ? macroTable.metaPath : (() => {
90
87
  const segments = macroTable.metaPath.split('/');
91
88
  segments.pop();
92
89
  const path = segments.join('/');
93
- metaPath = `${path}/${getLineItemAnnotation(macroTable)}`;
94
- }
90
+ return `${path}/${getLineItemAnnotation(macroTable)}`;
91
+ })();
95
92
  if (!metaPath) {
96
93
  return '';
97
94
  }
@@ -103,15 +103,14 @@ function findAnchor(table: UI5Element): string {
103
103
  const macroTable = table.getParent();
104
104
  let anchor: string = '';
105
105
  if (isMacroTable(macroTable)) {
106
- let metaPath = '';
107
- if (macroTable.metaPath.includes('LineItem')) {
108
- metaPath = macroTable.metaPath;
109
- } else {
106
+ const metaPath = macroTable.metaPath.includes('LineItem')
107
+ ? macroTable.metaPath
108
+ : (() => {
110
109
  const segments = macroTable.metaPath.split('/');
111
110
  segments.pop();
112
111
  const path = segments.join('/');
113
- metaPath = `${path}/${getLineItemAnnotation(macroTable)}`;
114
- }
112
+ return `${path}/${getLineItemAnnotation(macroTable)}`;
113
+ })();
115
114
  if (!metaPath) {
116
115
  return '';
117
116
  }
@@ -196,7 +196,7 @@ sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-proper
196
196
  for (const propertyName of propertyNames) {
197
197
  const property = allProperties[propertyName];
198
198
  let analyzedType;
199
- let isEnabled = false;
199
+ let isEnabled;
200
200
  let value;
201
201
  if (property && 'configuration' in property) {
202
202
  propertyType = PropertyType.Configuration;
@@ -234,7 +234,7 @@ export function buildControlData(
234
234
  for (const propertyName of propertyNames) {
235
235
  const property = allProperties[propertyName];
236
236
  let analyzedType;
237
- let isEnabled = false;
237
+ let isEnabled: boolean;
238
238
  let value: unknown;
239
239
  if (property && 'configuration' in property) {
240
240
  propertyType = PropertyType.Configuration;