@sap/ux-ui5-tooling 1.19.6 → 1.20.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.
@@ -16461,50 +16461,64 @@ var require_common = __commonJS({
16461
16461
  createDebug.namespaces = namespaces;
16462
16462
  createDebug.names = [];
16463
16463
  createDebug.skips = [];
16464
- let i;
16465
- const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
16466
- const len = split.length;
16467
- for (i = 0; i < len; i++) {
16468
- if (!split[i]) {
16469
- continue;
16464
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
16465
+ for (const ns of split) {
16466
+ if (ns[0] === "-") {
16467
+ createDebug.skips.push(ns.slice(1));
16468
+ } else {
16469
+ createDebug.names.push(ns);
16470
16470
  }
16471
- namespaces = split[i].replace(/\*/g, ".*?");
16472
- if (namespaces[0] === "-") {
16473
- createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
16471
+ }
16472
+ }
16473
+ function matchesTemplate(search, template) {
16474
+ let searchIndex = 0;
16475
+ let templateIndex = 0;
16476
+ let starIndex = -1;
16477
+ let matchIndex = 0;
16478
+ while (searchIndex < search.length) {
16479
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
16480
+ if (template[templateIndex] === "*") {
16481
+ starIndex = templateIndex;
16482
+ matchIndex = searchIndex;
16483
+ templateIndex++;
16484
+ } else {
16485
+ searchIndex++;
16486
+ templateIndex++;
16487
+ }
16488
+ } else if (starIndex !== -1) {
16489
+ templateIndex = starIndex + 1;
16490
+ matchIndex++;
16491
+ searchIndex = matchIndex;
16474
16492
  } else {
16475
- createDebug.names.push(new RegExp("^" + namespaces + "$"));
16493
+ return false;
16476
16494
  }
16477
16495
  }
16496
+ while (templateIndex < template.length && template[templateIndex] === "*") {
16497
+ templateIndex++;
16498
+ }
16499
+ return templateIndex === template.length;
16478
16500
  }
16479
16501
  function disable2() {
16480
16502
  const namespaces = [
16481
- ...createDebug.names.map(toNamespace),
16482
- ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
16503
+ ...createDebug.names,
16504
+ ...createDebug.skips.map((namespace) => "-" + namespace)
16483
16505
  ].join(",");
16484
16506
  createDebug.enable("");
16485
16507
  return namespaces;
16486
16508
  }
16487
16509
  function enabled2(name2) {
16488
- if (name2[name2.length - 1] === "*") {
16489
- return true;
16490
- }
16491
- let i;
16492
- let len;
16493
- for (i = 0, len = createDebug.skips.length; i < len; i++) {
16494
- if (createDebug.skips[i].test(name2)) {
16510
+ for (const skip of createDebug.skips) {
16511
+ if (matchesTemplate(name2, skip)) {
16495
16512
  return false;
16496
16513
  }
16497
16514
  }
16498
- for (i = 0, len = createDebug.names.length; i < len; i++) {
16499
- if (createDebug.names[i].test(name2)) {
16515
+ for (const ns of createDebug.names) {
16516
+ if (matchesTemplate(name2, ns)) {
16500
16517
  return true;
16501
16518
  }
16502
16519
  }
16503
16520
  return false;
16504
16521
  }
16505
- function toNamespace(regexp) {
16506
- return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
16507
- }
16508
16522
  function coerce(val2) {
16509
16523
  if (val2 instanceof Error) {
16510
16524
  return val2.stack || val2.message;
@@ -16665,7 +16679,7 @@ var require_browser = __commonJS({
16665
16679
  function load() {
16666
16680
  let r;
16667
16681
  try {
16668
- r = exports2.storage.getItem("debug");
16682
+ r = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
16669
16683
  } catch (error) {
16670
16684
  }
16671
16685
  if (!r && typeof process !== "undefined" && "env" in process) {
@@ -103857,7 +103871,7 @@ var require_constants4 = __commonJS({
103857
103871
  "../../node_modules/@sap-ux/project-access/dist/constants.js"(exports2) {
103858
103872
  "use strict";
103859
103873
  Object.defineProperty(exports2, "__esModule", { value: true });
103860
- exports2.MinCdsVersionUi5Plugin = exports2.moduleCacheRoot = exports2.fioriToolsDirectory = exports2.SchemaName = exports2.FioriToolsSettings = exports2.DirName = exports2.FileName = void 0;
103874
+ exports2.MinCdsVersion = exports2.MinCdsPluginUi5Version = exports2.moduleCacheRoot = exports2.fioriToolsDirectory = exports2.SchemaName = exports2.FioriToolsSettings = exports2.DirName = exports2.FileName = void 0;
103861
103875
  var node_os_1 = require("node:os");
103862
103876
  var node_path_1 = require("node:path");
103863
103877
  exports2.FileName = {
@@ -103917,7 +103931,8 @@ var require_constants4 = __commonJS({
103917
103931
  };
103918
103932
  exports2.fioriToolsDirectory = (0, node_path_1.join)((0, node_os_1.homedir)(), exports2.FioriToolsSettings.dir);
103919
103933
  exports2.moduleCacheRoot = (0, node_path_1.join)(exports2.fioriToolsDirectory, exports2.DirName.ModuleCache);
103920
- exports2.MinCdsVersionUi5Plugin = "6.8.2";
103934
+ exports2.MinCdsPluginUi5Version = "0.13.0";
103935
+ exports2.MinCdsVersion = "6.8.2";
103921
103936
  }
103922
103937
  });
103923
103938
 
@@ -117598,7 +117613,7 @@ var require_cap = __commonJS({
117598
117613
  // Below line checks if 'cdsVersionInfo' is available and contains version information.
117599
117614
  // If it does, it uses that version information to determine if it satisfies the minimum CDS version required.
117600
117615
  // If 'cdsVersionInfo' is not available or does not contain version information,it falls back to check the version specified in the package.json file.
117601
- hasMinCdsVersion: (cdsVersionInfo == null ? void 0 : cdsVersionInfo.version) ? (0, semver_1.satisfies)(cdsVersionInfo == null ? void 0 : cdsVersionInfo.version, `>=${constants_1.MinCdsVersionUi5Plugin}`) : satisfiesMinCdsVersion(packageJson),
117616
+ hasMinCdsVersion: (cdsVersionInfo == null ? void 0 : cdsVersionInfo.version) ? (0, semver_1.satisfies)(cdsVersionInfo == null ? void 0 : cdsVersionInfo.version, `>=${constants_1.MinCdsVersion}`) : satisfiesMinCdsVersion(packageJson),
117602
117617
  isWorkspaceEnabled: workspaceEnabled,
117603
117618
  hasCdsUi5Plugin: (0, dependencies_1.hasDependency)(packageJson, "cds-plugin-ui5"),
117604
117619
  isCdsUi5PluginEnabled: false
@@ -117625,11 +117640,11 @@ var require_cap = __commonJS({
117625
117640
  }
117626
117641
  function satisfiesMinCdsVersion(packageJson) {
117627
117642
  var _a2;
117628
- return hasMinCdsVersion(packageJson) || (0, semver_1.satisfies)(constants_1.MinCdsVersionUi5Plugin, ((_a2 = packageJson.dependencies) == null ? void 0 : _a2["@sap/cds"]) ?? "0.0.0");
117643
+ return hasMinCdsVersion(packageJson) || (0, semver_1.satisfies)(constants_1.MinCdsVersion, ((_a2 = packageJson.dependencies) == null ? void 0 : _a2["@sap/cds"]) ?? "0.0.0");
117629
117644
  }
117630
117645
  function hasMinCdsVersion(packageJson) {
117631
117646
  var _a2;
117632
- return (0, semver_1.gte)((0, semver_1.coerce)((_a2 = packageJson.dependencies) == null ? void 0 : _a2["@sap/cds"]) ?? "0.0.0", constants_1.MinCdsVersionUi5Plugin);
117647
+ return (0, semver_1.gte)((0, semver_1.coerce)((_a2 = packageJson.dependencies) == null ? void 0 : _a2["@sap/cds"]) ?? "0.0.0", constants_1.MinCdsVersion);
117633
117648
  }
117634
117649
  }
117635
117650
  });
@@ -124058,6 +124073,28 @@ var require_specification = __commonJS({
124058
124073
  }
124059
124074
  });
124060
124075
 
124076
+ // ../../node_modules/@sap-ux/project-access/dist/project/flex-changes.js
124077
+ var require_flex_changes = __commonJS({
124078
+ "../../node_modules/@sap-ux/project-access/dist/project/flex-changes.js"(exports2) {
124079
+ "use strict";
124080
+ Object.defineProperty(exports2, "__esModule", { value: true });
124081
+ exports2.readFlexChanges = readFlexChanges;
124082
+ var node_path_1 = require("node:path");
124083
+ var file_1 = require_file3();
124084
+ var node_fs_1 = require("node:fs");
124085
+ async function readFlexChanges(changesPath, memFs) {
124086
+ const changes = {};
124087
+ if ((0, node_fs_1.existsSync)(changesPath)) {
124088
+ const files = await (0, file_1.readDirectory)(changesPath);
124089
+ for (const file of files) {
124090
+ changes[file] = await (0, file_1.readFile)((0, node_path_1.join)(changesPath, file), memFs);
124091
+ }
124092
+ }
124093
+ return changes;
124094
+ }
124095
+ }
124096
+ });
124097
+
124061
124098
  // ../../node_modules/@sap-ux/project-access/dist/project/access.js
124062
124099
  var require_access = __commonJS({
124063
124100
  "../../node_modules/@sap-ux/project-access/dist/project/access.js"(exports2) {
@@ -124072,6 +124109,8 @@ var require_access = __commonJS({
124072
124109
  var file_1 = require_file3();
124073
124110
  var constants_1 = require_constants4();
124074
124111
  var specification_1 = require_specification();
124112
+ var flex_changes_1 = require_flex_changes();
124113
+ var cap_1 = require_cap();
124075
124114
  var ApplicationAccessImp = class {
124076
124115
  _project;
124077
124116
  appId;
@@ -124230,6 +124269,70 @@ var require_access = __commonJS({
124230
124269
  var _a2;
124231
124270
  await (0, file_1.updateManifestJSON)(this.app.manifest, manifest, memFs ?? ((_a2 = this.options) == null ? void 0 : _a2.fs));
124232
124271
  }
124272
+ /**
124273
+ * Reads and returns the parsed `manifest.json` file for the application.
124274
+ *
124275
+ * @param memFs - optional mem-fs-editor instance
124276
+ * @returns A promise resolving to the parsed `manifest.json` content.
124277
+ */
124278
+ async readManifest(memFs) {
124279
+ var _a2;
124280
+ return (0, file_1.readJSON)(this.app.manifest, memFs ?? ((_a2 = this.options) == null ? void 0 : _a2.fs));
124281
+ }
124282
+ /**
124283
+ * Reads and returns all Flex Changes (`*.change` files) associated with the application.
124284
+ *
124285
+ * @param memFs - optional mem-fs-editor instance
124286
+ * @returns A promise that resolves to an array of flex change files.
124287
+ */
124288
+ async readFlexChanges(memFs) {
124289
+ var _a2;
124290
+ return (0, flex_changes_1.readFlexChanges)(this.app.changes, memFs ?? ((_a2 = this.options) == null ? void 0 : _a2.fs));
124291
+ }
124292
+ /**
124293
+ * Reads and returns all annotation files associated with the application's main service.
124294
+ *
124295
+ * @param memFs - optional mem-fs-editor instance
124296
+ * @returns A promise resolving to an array of annotation file descriptors.
124297
+ */
124298
+ async readAnnotationFiles(memFs) {
124299
+ var _a2, _b, _c, _d;
124300
+ const annotationData = [];
124301
+ const mainServiceName = this.app.mainService ?? "mainService";
124302
+ const mainService = (_b = (_a2 = this.app) == null ? void 0 : _a2.services) == null ? void 0 : _b[mainServiceName];
124303
+ if (!mainService) {
124304
+ return [];
124305
+ }
124306
+ if (mainService.uri && (this.projectType === "CAPJava" || this.projectType === "CAPNodejs")) {
124307
+ const serviceUri = (mainService == null ? void 0 : mainService.uri) ?? "";
124308
+ if (serviceUri) {
124309
+ const edmx = await (0, cap_1.readCapServiceMetadataEdmx)(this.root, serviceUri);
124310
+ annotationData.push({
124311
+ fileContent: edmx,
124312
+ dataSourceUri: serviceUri
124313
+ });
124314
+ }
124315
+ } else {
124316
+ if (mainService.local) {
124317
+ const serviceFile = await (0, file_1.readFile)(mainService.local, memFs ?? ((_c = this.options) == null ? void 0 : _c.fs));
124318
+ annotationData.push({
124319
+ dataSourceUri: mainService.local,
124320
+ fileContent: serviceFile.toString()
124321
+ });
124322
+ }
124323
+ const { annotations = [] } = mainService;
124324
+ for (const annotation of annotations) {
124325
+ if (annotation.local) {
124326
+ const annotationFile = await (0, file_1.readFile)(annotation.local, memFs ?? ((_d = this.options) == null ? void 0 : _d.fs));
124327
+ annotationData.push({
124328
+ dataSourceUri: annotation.local,
124329
+ fileContent: annotationFile.toString()
124330
+ });
124331
+ }
124332
+ }
124333
+ }
124334
+ return annotationData;
124335
+ }
124233
124336
  /**
124234
124337
  * Project structure.
124235
124338
  *
@@ -124380,28 +124483,6 @@ var require_script = __commonJS({
124380
124483
  }
124381
124484
  });
124382
124485
 
124383
- // ../../node_modules/@sap-ux/project-access/dist/project/flex-changes.js
124384
- var require_flex_changes = __commonJS({
124385
- "../../node_modules/@sap-ux/project-access/dist/project/flex-changes.js"(exports2) {
124386
- "use strict";
124387
- Object.defineProperty(exports2, "__esModule", { value: true });
124388
- exports2.readFlexChanges = readFlexChanges;
124389
- var node_path_1 = require("node:path");
124390
- var file_1 = require_file3();
124391
- var node_fs_1 = require("node:fs");
124392
- async function readFlexChanges(changesPath, memFs) {
124393
- const changes = {};
124394
- if ((0, node_fs_1.existsSync)(changesPath)) {
124395
- const files = await (0, file_1.readDirectory)(changesPath);
124396
- for (const file of files) {
124397
- changes[file] = await (0, file_1.readFile)((0, node_path_1.join)(changesPath, file), memFs);
124398
- }
124399
- }
124400
- return changes;
124401
- }
124402
- }
124403
- });
124404
-
124405
124486
  // ../../node_modules/@sap-ux/project-access/dist/project/index.js
124406
124487
  var require_project = __commonJS({
124407
124488
  "../../node_modules/@sap-ux/project-access/dist/project/index.js"(exports2) {
@@ -124961,8 +125042,8 @@ var require_dist15 = __commonJS({
124961
125042
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding2(exports3, m, p);
124962
125043
  };
124963
125044
  Object.defineProperty(exports2, "__esModule", { value: true });
124964
- exports2.readCapServiceMetadataEdmx = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.isCapProject = exports2.hasUI5CliV3 = exports2.getWebappPath = exports2.getProjectType = exports2.getProject = exports2.getNodeModulesPath = exports2.getMockDataPath = exports2.getMockServerConfig = exports2.getMtaPath = exports2.getMinimumUI5Version = exports2.getMinUI5VersionAsArray = exports2.getMinUI5VersionFromManifest = exports2.getI18nBundles = exports2.getI18nPropertiesPaths = exports2.getSpecificationPath = exports2.getSpecification = exports2.getCapI18nFolderNames = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapProjectType = exports2.getCapServiceName = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppType = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.getAllUi5YamlFileNames = exports2.findRootsForPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findCapProjectRoot = exports2.findAllApps = exports2.filterDataSourcesByType = exports2.deleteCapApp = exports2.createProjectAccess = exports2.createApplicationAccess = exports2.clearCdsModuleCache = exports2.addPackageDevDependency = exports2.getFilePaths = exports2.MinCdsVersionUi5Plugin = exports2.FioriToolsSettings = exports2.DirName = exports2.FileName = void 0;
124965
- exports2.hasDependency = exports2.execNpmCommand = exports2.readFlexChanges = exports2.checkCdsUi5PluginEnabled = exports2.hasMinCdsVersion = exports2.getWorkspaceInfo = exports2.updatePackageScript = exports2.toReferenceUri = exports2.refreshSpecificationDistTags = exports2.readUi5Yaml = void 0;
125045
+ exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.isCapProject = exports2.hasUI5CliV3 = exports2.getWebappPath = exports2.getProjectType = exports2.getProject = exports2.getNodeModulesPath = exports2.getMockDataPath = exports2.getMockServerConfig = exports2.getMtaPath = exports2.getMinimumUI5Version = exports2.getMinUI5VersionAsArray = exports2.getMinUI5VersionFromManifest = exports2.getI18nBundles = exports2.getI18nPropertiesPaths = exports2.getSpecificationPath = exports2.getSpecification = exports2.getCapI18nFolderNames = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapProjectType = exports2.getCapServiceName = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppType = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.getAllUi5YamlFileNames = exports2.findRootsForPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findCapProjectRoot = exports2.findAllApps = exports2.filterDataSourcesByType = exports2.deleteCapApp = exports2.createProjectAccess = exports2.createApplicationAccess = exports2.clearCdsModuleCache = exports2.addPackageDevDependency = exports2.getFilePaths = exports2.MinCdsVersion = exports2.MinCdsPluginUi5Version = exports2.FioriToolsSettings = exports2.DirName = exports2.FileName = void 0;
125046
+ exports2.hasDependency = exports2.execNpmCommand = exports2.readFlexChanges = exports2.checkCdsUi5PluginEnabled = exports2.hasMinCdsVersion = exports2.getWorkspaceInfo = exports2.updatePackageScript = exports2.toReferenceUri = exports2.refreshSpecificationDistTags = exports2.readUi5Yaml = exports2.readCapServiceMetadataEdmx = void 0;
124966
125047
  var constants_1 = require_constants4();
124967
125048
  Object.defineProperty(exports2, "FileName", { enumerable: true, get: function() {
124968
125049
  return constants_1.FileName;
@@ -124973,8 +125054,11 @@ var require_dist15 = __commonJS({
124973
125054
  Object.defineProperty(exports2, "FioriToolsSettings", { enumerable: true, get: function() {
124974
125055
  return constants_1.FioriToolsSettings;
124975
125056
  } });
124976
- Object.defineProperty(exports2, "MinCdsVersionUi5Plugin", { enumerable: true, get: function() {
124977
- return constants_1.MinCdsVersionUi5Plugin;
125057
+ Object.defineProperty(exports2, "MinCdsPluginUi5Version", { enumerable: true, get: function() {
125058
+ return constants_1.MinCdsPluginUi5Version;
125059
+ } });
125060
+ Object.defineProperty(exports2, "MinCdsVersion", { enumerable: true, get: function() {
125061
+ return constants_1.MinCdsVersion;
124978
125062
  } });
124979
125063
  var file_1 = require_file3();
124980
125064
  Object.defineProperty(exports2, "getFilePaths", { enumerable: true, get: function() {
@@ -155230,7 +155314,7 @@ var require_package8 = __commonJS({
155230
155314
  "../../node_modules/@sap-ux/telemetry/package.json"(exports2, module2) {
155231
155315
  module2.exports = {
155232
155316
  name: "@sap-ux/telemetry",
155233
- version: "0.6.38",
155317
+ version: "0.6.39",
155234
155318
  description: "Library for sending usage telemetry data",
155235
155319
  repository: {
155236
155320
  type: "git",
@@ -155249,7 +155333,7 @@ var require_package8 = __commonJS({
155249
155333
  "performance-now": "2.1.0",
155250
155334
  yaml: "2.3.3",
155251
155335
  "@sap-ux/store": "1.3.3",
155252
- "@sap-ux/project-access": "1.32.8",
155336
+ "@sap-ux/project-access": "1.32.9",
155253
155337
  "@sap-ux/btp-utils": "1.1.5",
155254
155338
  "@sap-ux/ui5-config": "0.29.9",
155255
155339
  "@sap-ux/logger": "0.7.1",
@@ -193647,9 +193731,11 @@ var require_TermToTypes = __commonJS({
193647
193731
  TermToTypes2["com.sap.vocabularies.Analytics.v1.AggregatedProperties"] = "com.sap.vocabularies.Analytics.v1.AggregatedPropertyType";
193648
193732
  TermToTypes2["com.sap.vocabularies.Analytics.v1.AggregatedProperty"] = "com.sap.vocabularies.Analytics.v1.AggregatedPropertyType";
193649
193733
  TermToTypes2["com.sap.vocabularies.Analytics.v1.AnalyticalContext"] = "com.sap.vocabularies.Analytics.v1.AnalyticalContextType";
193734
+ TermToTypes2["com.sap.vocabularies.Analytics.v1.LevelInformation"] = "com.sap.vocabularies.Hierarchy.v1.HierarchyType";
193650
193735
  TermToTypes2["com.sap.vocabularies.Common.v1.ServiceVersion"] = "Edm.Int32";
193651
193736
  TermToTypes2["com.sap.vocabularies.Common.v1.ServiceSchemaVersion"] = "Edm.Int32";
193652
193737
  TermToTypes2["com.sap.vocabularies.Common.v1.TextFor"] = "Edm.PropertyPath";
193738
+ TermToTypes2["com.sap.vocabularies.Common.v1.ExternalID"] = "Edm.PrimitiveType";
193653
193739
  TermToTypes2["com.sap.vocabularies.Common.v1.IsLanguageIdentifier"] = "Org.OData.Core.V1.Tag";
193654
193740
  TermToTypes2["com.sap.vocabularies.Common.v1.TextFormat"] = "com.sap.vocabularies.Common.v1.TextFormatType";
193655
193741
  TermToTypes2["com.sap.vocabularies.Common.v1.IsTimezone"] = "Org.OData.Core.V1.Tag";
@@ -193711,6 +193797,7 @@ var require_TermToTypes = __commonJS({
193711
193797
  TermToTypes2["com.sap.vocabularies.Common.v1.IsDayOfFiscalYear"] = "Org.OData.Core.V1.Tag";
193712
193798
  TermToTypes2["com.sap.vocabularies.Common.v1.IsFiscalYearVariant"] = "Org.OData.Core.V1.Tag";
193713
193799
  TermToTypes2["com.sap.vocabularies.Common.v1.MutuallyExclusiveTerm"] = "Org.OData.Core.V1.Tag";
193800
+ TermToTypes2["com.sap.vocabularies.Common.v1.OperationTemplate"] = "com.sap.vocabularies.Common.v1.QualifiedName";
193714
193801
  TermToTypes2["com.sap.vocabularies.Common.v1.DraftRoot"] = "com.sap.vocabularies.Common.v1.DraftRootType";
193715
193802
  TermToTypes2["com.sap.vocabularies.Common.v1.DraftNode"] = "com.sap.vocabularies.Common.v1.DraftNodeType";
193716
193803
  TermToTypes2["com.sap.vocabularies.Common.v1.DraftActivationVia"] = "Org.OData.Core.V1.SimpleIdentifier";
@@ -193728,6 +193815,8 @@ var require_TermToTypes = __commonJS({
193728
193815
  TermToTypes2["com.sap.vocabularies.Common.v1.ChangedBy"] = "com.sap.vocabularies.Common.v1.UserID";
193729
193816
  TermToTypes2["com.sap.vocabularies.Common.v1.ApplyMultiUnitBehaviorForSortingAndFiltering"] = "Org.OData.Core.V1.Tag";
193730
193817
  TermToTypes2["com.sap.vocabularies.Common.v1.PrimitivePropertyPath"] = "Org.OData.Core.V1.Tag";
193818
+ TermToTypes2["com.sap.vocabularies.Common.v1.AddressViaNavigationPath"] = "Org.OData.Core.V1.Tag";
193819
+ TermToTypes2["com.sap.vocabularies.Common.v1.ReferentialConstraint"] = "com.sap.vocabularies.Common.v1.ReferentialConstraintType";
193731
193820
  TermToTypes2["com.sap.vocabularies.CodeList.v1.CurrencyCodes"] = "com.sap.vocabularies.CodeList.v1.CodeListSource";
193732
193821
  TermToTypes2["com.sap.vocabularies.CodeList.v1.UnitsOfMeasure"] = "com.sap.vocabularies.CodeList.v1.CodeListSource";
193733
193822
  TermToTypes2["com.sap.vocabularies.CodeList.v1.StandardCode"] = "Edm.PropertyPath";
@@ -193803,7 +193892,7 @@ var require_TermToTypes = __commonJS({
193803
193892
  TermToTypes2["com.sap.vocabularies.UI.v1.ParameterDefaultValue"] = "Edm.PrimitiveType";
193804
193893
  TermToTypes2["com.sap.vocabularies.UI.v1.RecommendationState"] = "com.sap.vocabularies.UI.v1.RecommendationStateType";
193805
193894
  TermToTypes2["com.sap.vocabularies.UI.v1.RecommendationList"] = "com.sap.vocabularies.UI.v1.RecommendationListType";
193806
- TermToTypes2["com.sap.vocabularies.UI.v1.Recommendations"] = "Edm.ComplexType";
193895
+ TermToTypes2["com.sap.vocabularies.UI.v1.Recommendations"] = "Edm.Untyped";
193807
193896
  TermToTypes2["com.sap.vocabularies.UI.v1.ExcludeFromNavigationContext"] = "Org.OData.Core.V1.Tag";
193808
193897
  TermToTypes2["com.sap.vocabularies.UI.v1.DoNotCheckScaleOfMeasuredQuantity"] = "Edm.Boolean";
193809
193898
  TermToTypes2["com.sap.vocabularies.HTML5.v1.CssDefaults"] = "com.sap.vocabularies.HTML5.v1.CssDefaultsType";
@@ -193813,9 +193902,9 @@ var require_TermToTypes = __commonJS({
193813
193902
  }
193814
193903
  });
193815
193904
 
193816
- // ../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/utils.js
193905
+ // ../../node_modules/@sap-ux/annotation-converter/dist/utils.js
193817
193906
  var require_utils20 = __commonJS({
193818
- "../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/utils.js"(exports2) {
193907
+ "../../node_modules/@sap-ux/annotation-converter/dist/utils.js"(exports2) {
193819
193908
  "use strict";
193820
193909
  Object.defineProperty(exports2, "__esModule", { value: true });
193821
193910
  exports2.mergeAnnotations = exports2.addGetByValue = exports2.createIndexedFind = exports2.lazy = exports2.Decimal = exports2.Double = exports2.isComplexTypeDefinition = exports2.unalias = exports2.alias = exports2.substringBeforeLast = exports2.substringBeforeFirst = exports2.splitAtLast = exports2.splitAtFirst = exports2.defaultReferences = exports2.TermToTypes = exports2.EnumIsFlag = void 0;
@@ -194006,9 +194095,9 @@ var require_utils20 = __commonJS({
194006
194095
  }
194007
194096
  });
194008
194097
 
194009
- // ../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/converter.js
194098
+ // ../../node_modules/@sap-ux/annotation-converter/dist/converter.js
194010
194099
  var require_converter = __commonJS({
194011
- "../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/converter.js"(exports2) {
194100
+ "../../node_modules/@sap-ux/annotation-converter/dist/converter.js"(exports2) {
194012
194101
  "use strict";
194013
194102
  Object.defineProperty(exports2, "__esModule", { value: true });
194014
194103
  exports2.convert = void 0;
@@ -194314,7 +194403,7 @@ var require_converter = __commonJS({
194314
194403
  return mapAnnotationPath(converter, propertyValue, valueFQN, currentTarget, currentTerm);
194315
194404
  case "Path": {
194316
194405
  if (isAnnotationPath(propertyValue.Path)) {
194317
- return resolveTarget(converter, currentTarget, propertyValue.Path, currentTerm).target;
194406
+ return resolveTarget(converter, currentTarget, converter.unalias(propertyValue.Path), currentTerm).target;
194318
194407
  } else {
194319
194408
  return mapPath(converter, propertyValue, valueFQN, currentTarget, currentTerm);
194320
194409
  }
@@ -194652,9 +194741,10 @@ Hint: If possible, try to maintain the Type property for each Record.
194652
194741
  const [vocAlias, vocTerm] = converter.splitTerm(annotation.term);
194653
194742
  const vocTermWithQualifier = `${vocTerm}${annotation.qualifier ? "#" + annotation.qualifier : ""}`;
194654
194743
  if (vocabularyAliases[vocAlias] === void 0) {
194655
- vocabularyAliases[vocAlias] = {};
194744
+ vocabularyAliases[vocAlias] = { _keys: [] };
194656
194745
  }
194657
194746
  if (!vocabularyAliases[vocAlias].hasOwnProperty(vocTermWithQualifier)) {
194747
+ vocabularyAliases[vocAlias]._keys.push(vocTermWithQualifier);
194658
194748
  (0, utils_1.lazy)(vocabularyAliases[vocAlias], vocTermWithQualifier, () => converter.getConvertedElement(annotation.fullyQualifiedName, annotation, (converter2, rawAnnotation) => convertAnnotation(converter2, target, rawAnnotation)));
194659
194749
  }
194660
194750
  return vocabularyAliases;
@@ -194720,13 +194810,41 @@ Hint: If possible, try to maintain the Type property for each Record.
194720
194810
  return convertedProperty;
194721
194811
  }
194722
194812
  function convertNavigationProperty(converter, rawNavigationProperty) {
194723
- var _a2, _b, _c;
194813
+ var _a2, _b, _c, _d, _e;
194724
194814
  const convertedNavigationProperty = rawNavigationProperty;
194725
194815
  convertedNavigationProperty.referentialConstraint = (_a2 = convertedNavigationProperty.referentialConstraint) !== null && _a2 !== void 0 ? _a2 : [];
194816
+ if (convertedNavigationProperty.referentialConstraint.length === 0) {
194817
+ const annotations = converter.getAnnotations(rawNavigationProperty.fullyQualifiedName);
194818
+ const refConstraints = annotations.find(
194819
+ (annotation) => annotation.term === "com.sap.vocabularies.Common.v1.ReferentialConstraint"
194820
+ /* CommonAnnotationTerms.ReferentialConstraint */
194821
+ );
194822
+ if (refConstraints) {
194823
+ convertedNavigationProperty.referentialConstraint = (_c = (_b = refConstraints.collection) === null || _b === void 0 ? void 0 : _b.map((record) => {
194824
+ var _a3, _b2;
194825
+ const referencedProperty = (_a3 = record.propertyValues.find((prop) => {
194826
+ return prop.name === "ReferencedProperty";
194827
+ })) === null || _a3 === void 0 ? void 0 : _a3.value;
194828
+ let targetedProperty = "";
194829
+ if (referencedProperty.PropertyPath) {
194830
+ const targetedPropertySplit = referencedProperty.PropertyPath.split("/");
194831
+ targetedPropertySplit.shift();
194832
+ targetedProperty = targetedPropertySplit.join("/");
194833
+ }
194834
+ return {
194835
+ sourceProperty: ((_b2 = record.propertyValues.find((prop) => {
194836
+ return prop.name === "Property";
194837
+ })) === null || _b2 === void 0 ? void 0 : _b2.value).PropertyPath,
194838
+ targetTypeName: convertedNavigationProperty.targetTypeName,
194839
+ targetProperty: targetedProperty
194840
+ };
194841
+ })) !== null && _c !== void 0 ? _c : [];
194842
+ }
194843
+ }
194726
194844
  if (!isV4NavigationProperty(rawNavigationProperty)) {
194727
- const associationEnd = (_b = converter.rawSchema.associations.find((association) => association.fullyQualifiedName === rawNavigationProperty.relationship)) === null || _b === void 0 ? void 0 : _b.associationEnd.find((end) => end.role === rawNavigationProperty.toRole);
194845
+ const associationEnd = (_d = converter.rawSchema.associations.find((association) => association.fullyQualifiedName === rawNavigationProperty.relationship)) === null || _d === void 0 ? void 0 : _d.associationEnd.find((end) => end.role === rawNavigationProperty.toRole);
194728
194846
  convertedNavigationProperty.isCollection = (associationEnd === null || associationEnd === void 0 ? void 0 : associationEnd.multiplicity) === "*";
194729
- convertedNavigationProperty.targetTypeName = (_c = associationEnd === null || associationEnd === void 0 ? void 0 : associationEnd.type) !== null && _c !== void 0 ? _c : "";
194847
+ convertedNavigationProperty.targetTypeName = (_e = associationEnd === null || associationEnd === void 0 ? void 0 : associationEnd.type) !== null && _e !== void 0 ? _e : "";
194730
194848
  }
194731
194849
  (0, utils_1.lazy)(convertedNavigationProperty, "targetType", resolveEntityType(converter, rawNavigationProperty.targetTypeName));
194732
194850
  (0, utils_1.lazy)(convertedNavigationProperty, "annotations", resolveAnnotations(converter, rawNavigationProperty));
@@ -194736,7 +194854,7 @@ Hint: If possible, try to maintain the Type property for each Record.
194736
194854
  const convertedActionImport = rawActionImport;
194737
194855
  (0, utils_1.lazy)(convertedActionImport, "annotations", resolveAnnotations(converter, rawActionImport));
194738
194856
  (0, utils_1.lazy)(convertedActionImport, "action", () => {
194739
- const rawActions = converter.rawSchema.actions.filter((rawAction) => !rawAction.isBound && rawAction.fullyQualifiedName.startsWith(rawActionImport.actionName));
194857
+ const rawActions = converter.rawSchema.actions.filter((rawAction) => !rawAction.isBound && rawAction.fullyQualifiedName.startsWith(rawActionImport.actionName + "("));
194740
194858
  if (rawActions.length > 1) {
194741
194859
  converter.logError(`Ambiguous reference in action import: ${rawActionImport.fullyQualifiedName}`);
194742
194860
  }
@@ -194751,6 +194869,11 @@ Hint: If possible, try to maintain the Type property for each Record.
194751
194869
  }
194752
194870
  if (convertedAction.returnType) {
194753
194871
  (0, utils_1.lazy)(convertedAction, "returnEntityType", resolveEntityType(converter, rawAction.returnType));
194872
+ (0, utils_1.lazy)(convertedAction, "returnTypeReference", () => {
194873
+ var _a2, _b;
194874
+ const typeName = convertedAction.returnType.startsWith("Collection") ? convertedAction.returnType.substring(11, convertedAction.returnType.length - 1) : convertedAction.returnType;
194875
+ return (_b = (_a2 = converter.getConvertedEntityType(typeName)) !== null && _a2 !== void 0 ? _a2 : converter.getConvertedComplexType(typeName)) !== null && _b !== void 0 ? _b : converter.getConvertedTypeDefinition(typeName);
194876
+ });
194754
194877
  }
194755
194878
  (0, utils_1.lazy)(convertedAction, "parameters", converter.convert(rawAction.parameters, convertActionParameter));
194756
194879
  (0, utils_1.lazy)(convertedAction, "annotations", () => {
@@ -194771,7 +194894,11 @@ Hint: If possible, try to maintain the Type property for each Record.
194771
194894
  const convertedActionParameter = rawActionParameter;
194772
194895
  (0, utils_1.lazy)(convertedActionParameter, "typeReference", () => {
194773
194896
  var _a2, _b;
194774
- return (_b = (_a2 = converter.getConvertedEntityType(rawActionParameter.type)) !== null && _a2 !== void 0 ? _a2 : converter.getConvertedComplexType(rawActionParameter.type)) !== null && _b !== void 0 ? _b : converter.getConvertedTypeDefinition(rawActionParameter.type);
194897
+ let targetType = rawActionParameter.type;
194898
+ if (targetType.startsWith("Collection(")) {
194899
+ targetType = targetType.substring(11, targetType.length - 1);
194900
+ }
194901
+ return (_b = (_a2 = converter.getConvertedEntityType(targetType)) !== null && _a2 !== void 0 ? _a2 : converter.getConvertedComplexType(targetType)) !== null && _b !== void 0 ? _b : converter.getConvertedTypeDefinition(targetType);
194775
194902
  });
194776
194903
  (0, utils_1.lazy)(convertedActionParameter, "annotations", () => {
194777
194904
  const unspecificOverloadTarget = rawActionParameter.fullyQualifiedName.substring(0, rawActionParameter.fullyQualifiedName.indexOf("(")) + rawActionParameter.fullyQualifiedName.substring(rawActionParameter.fullyQualifiedName.lastIndexOf(")") + 1);
@@ -194816,8 +194943,8 @@ Hint: If possible, try to maintain the Type property for each Record.
194816
194943
  (0, utils_1.lazy)(convertedOutput, "complexTypes", converter.convert(converter.rawSchema.complexTypes, convertComplexType));
194817
194944
  (0, utils_1.lazy)(convertedOutput, "actionImports", converter.convert(converter.rawSchema.actionImports, convertActionImport));
194818
194945
  (0, utils_1.lazy)(convertedOutput, "typeDefinitions", converter.convert(converter.rawSchema.typeDefinitions, convertTypeDefinition));
194819
- convertedOutput.resolvePath = function resolvePath(path3) {
194820
- const targetResolution = resolveTarget(converter, void 0, path3);
194946
+ convertedOutput.resolvePath = function resolvePath(path3, startingPoint) {
194947
+ const targetResolution = resolveTarget(converter, startingPoint, path3);
194821
194948
  if (targetResolution.target) {
194822
194949
  appendObjectPath(targetResolution.objectPath, targetResolution.target);
194823
194950
  }
@@ -194829,9 +194956,9 @@ Hint: If possible, try to maintain the Type property for each Record.
194829
194956
  }
194830
194957
  });
194831
194958
 
194832
- // ../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/writeback.js
194959
+ // ../../node_modules/@sap-ux/annotation-converter/dist/writeback.js
194833
194960
  var require_writeback = __commonJS({
194834
- "../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/writeback.js"(exports2) {
194961
+ "../../node_modules/@sap-ux/annotation-converter/dist/writeback.js"(exports2) {
194835
194962
  "use strict";
194836
194963
  Object.defineProperty(exports2, "__esModule", { value: true });
194837
194964
  exports2.revertTermToGenericType = void 0;
@@ -194993,7 +195120,7 @@ var require_writeback = __commonJS({
194993
195120
  var restrictedKeys = ["$Type", "term", "__source", "qualifier", "ActionTarget", "fullyQualifiedName", "annotations"];
194994
195121
  function revertAnnotationsToRawType(references, currentAnnotations, targetAnnotations) {
194995
195122
  Object.keys(currentAnnotations).filter((key) => key !== "_annotations").forEach((key) => {
194996
- Object.keys(currentAnnotations[key]).forEach((term) => {
195123
+ Object.keys(currentAnnotations[key]).filter((key2) => key2 !== "_keys").forEach((term) => {
194997
195124
  const parsedAnnotation = revertTermToGenericType(references, currentAnnotations[key][term]);
194998
195125
  if (!parsedAnnotation.term) {
194999
195126
  const unaliasedTerm = (0, utils_1.unalias)(references, `${key}.${term}`);
@@ -195079,9 +195206,9 @@ var require_writeback = __commonJS({
195079
195206
  }
195080
195207
  });
195081
195208
 
195082
- // ../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/index.js
195209
+ // ../../node_modules/@sap-ux/annotation-converter/dist/index.js
195083
195210
  var require_dist29 = __commonJS({
195084
- "../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/index.js"(exports2) {
195211
+ "../../node_modules/@sap-ux/annotation-converter/dist/index.js"(exports2) {
195085
195212
  "use strict";
195086
195213
  var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
195087
195214
  if (k2 === void 0) k2 = k;
@@ -206385,7 +206512,7 @@ async function updateTransportDeployConfig(transport, config, log2 = console) {
206385
206512
  var package_default = {
206386
206513
  name: "@sap/ux-ui5-tooling",
206387
206514
  displayName: "SAP Fiori Tools \u2013 UI5 Tooling",
206388
- version: "1.19.6",
206515
+ version: "1.20.0",
206389
206516
  description: "SAP Fiori Tools \u2013 UI5 Tooling",
206390
206517
  publisher: "SAPSE",
206391
206518
  license: "SEE LICENSE IN LICENSE",
@@ -206420,7 +206547,7 @@ var package_default = {
206420
206547
  madge: "madge --warning --circular --extensions ts ./"
206421
206548
  },
206422
206549
  dependencies: {
206423
- "@sap-ux/preview-middleware": "0.23.54",
206550
+ "@sap-ux/preview-middleware": "0.23.59",
206424
206551
  "@ui5/fs": "3.0.6",
206425
206552
  "connect-livereload": "0.6.1",
206426
206553
  express: "4.21.2",
@@ -206436,21 +206563,21 @@ var package_default = {
206436
206563
  "@sap-ux/axios-extension": "1.24.2",
206437
206564
  "@sap-ux/backend-proxy-middleware": "0.10.12",
206438
206565
  "@sap-ux/btp-utils": "1.1.5",
206439
- "@sap-ux/deploy-tooling": "0.17.0",
206566
+ "@sap-ux/deploy-tooling": "0.17.2",
206440
206567
  "@sap-ux/feature-toggle": "0.3.4",
206441
206568
  "@sap-ux/guided-answers-helper": "0.4.1",
206442
206569
  "@sap-ux/logger": "0.7.1",
206443
206570
  "@sap-ux/nodejs-utils": "0.2.8",
206444
- "@sap-ux/project-access": "1.32.8",
206571
+ "@sap-ux/project-access": "1.32.9",
206445
206572
  "@sap-ux/reload-middleware": "0.3.5",
206446
206573
  "@sap-ux/serve-static-middleware": "0.4.2",
206447
206574
  "@sap-ux/store": "1.3.3",
206448
206575
  "@sap-ux/system-access": "0.6.28",
206449
- "@sap-ux/telemetry": "0.6.38",
206576
+ "@sap-ux/telemetry": "0.6.39",
206450
206577
  "@sap-ux/ui5-config": "0.29.9",
206451
206578
  "@sap-ux/ui5-info": "0.13.2",
206452
206579
  "@sap-ux/ui5-proxy-middleware": "1.6.5",
206453
- "@sap/ux-app-templates": "1.19.6",
206580
+ "@sap/ux-app-templates": "1.20.0",
206454
206581
  "@types/fs-extra": "11.0.4",
206455
206582
  "@types/marked": "4.0.1",
206456
206583
  "@types/prompts": "2.4.9",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap/ux-ui5-tooling",
3
3
  "displayName": "SAP Fiori Tools – UI5 Tooling",
4
- "version": "1.19.6",
4
+ "version": "1.20.0",
5
5
  "description": "SAP Fiori Tools – UI5 Tooling",
6
6
  "publisher": "SAPSE",
7
7
  "license": "SEE LICENSE IN LICENSE",
@@ -36,7 +36,7 @@
36
36
  "madge": "madge --warning --circular --extensions ts ./"
37
37
  },
38
38
  "dependencies": {
39
- "@sap-ux/preview-middleware": "0.23.54",
39
+ "@sap-ux/preview-middleware": "0.23.59",
40
40
  "@ui5/fs": "3.0.6",
41
41
  "connect-livereload": "0.6.1",
42
42
  "express": "4.21.2",
@@ -52,21 +52,21 @@
52
52
  "@sap-ux/axios-extension": "1.24.2",
53
53
  "@sap-ux/backend-proxy-middleware": "0.10.12",
54
54
  "@sap-ux/btp-utils": "1.1.5",
55
- "@sap-ux/deploy-tooling": "0.17.0",
55
+ "@sap-ux/deploy-tooling": "0.17.2",
56
56
  "@sap-ux/feature-toggle": "0.3.4",
57
57
  "@sap-ux/guided-answers-helper": "0.4.1",
58
58
  "@sap-ux/logger": "0.7.1",
59
59
  "@sap-ux/nodejs-utils": "0.2.8",
60
- "@sap-ux/project-access": "1.32.8",
60
+ "@sap-ux/project-access": "1.32.9",
61
61
  "@sap-ux/reload-middleware": "0.3.5",
62
62
  "@sap-ux/serve-static-middleware": "0.4.2",
63
63
  "@sap-ux/store": "1.3.3",
64
64
  "@sap-ux/system-access": "0.6.28",
65
- "@sap-ux/telemetry": "0.6.38",
65
+ "@sap-ux/telemetry": "0.6.39",
66
66
  "@sap-ux/ui5-config": "0.29.9",
67
67
  "@sap-ux/ui5-info": "0.13.2",
68
68
  "@sap-ux/ui5-proxy-middleware": "1.6.5",
69
- "@sap/ux-app-templates": "1.19.6",
69
+ "@sap/ux-app-templates": "1.20.0",
70
70
  "@types/fs-extra": "11.0.4",
71
71
  "@types/marked": "4.0.1",
72
72
  "@types/prompts": "2.4.9",