@sap-ux/fiori-elements-writer 1.3.2 → 1.3.3

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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAnnotationV4Libs = exports.annotationLibs = void 0;
3
+ exports.annotationLibs = void 0;
4
+ exports.getAnnotationV4Libs = getAnnotationV4Libs;
4
5
  exports.annotationLibs = [
5
6
  {
6
7
  annotation: 'UI.Note',
@@ -25,5 +26,4 @@ function getAnnotationV4Libs(metadata) {
25
26
  });
26
27
  return Array.from(libraries);
27
28
  }
28
- exports.getAnnotationV4Libs = getAnnotationV4Libs;
29
29
  //# sourceMappingURL=annotationCustomUi5Libs.js.map
@@ -3,7 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getTemplateOptions = exports.setAppDefaults = exports.getManifestLibs = exports.getUi5Libs = exports.setDefaultTemplateSettings = void 0;
6
+ exports.setDefaultTemplateSettings = setDefaultTemplateSettings;
7
+ exports.getUi5Libs = getUi5Libs;
8
+ exports.getManifestLibs = getManifestLibs;
9
+ exports.setAppDefaults = setAppDefaults;
10
+ exports.getTemplateOptions = getTemplateOptions;
7
11
  const odata_service_writer_1 = require("@sap-ux/odata-service-writer");
8
12
  const read_pkg_up_1 = __importDefault(require("read-pkg-up"));
9
13
  const types_1 = require("../types");
@@ -54,7 +58,6 @@ function setDefaultTemplateSettings(template, odataVersion) {
54
58
  }
55
59
  return templateSettings;
56
60
  }
57
- exports.setDefaultTemplateSettings = setDefaultTemplateSettings;
58
61
  /**
59
62
  * Gets the required UI5 libs for the specified template type and OData version.
60
63
  *
@@ -67,7 +70,6 @@ function getUi5Libs(type, version, ui5Libs) {
67
70
  const templateLibs = (0, templateAttributes_1.getTemplateUi5Libs)(type, version);
68
71
  return [...templateLibs].concat(ui5Libs ?? []);
69
72
  }
70
- exports.getUi5Libs = getUi5Libs;
71
73
  /**
72
74
  * Gets the required manifest libs for the specified template type and OData version.
73
75
  *
@@ -80,7 +82,6 @@ function getManifestLibs(type, version, libs) {
80
82
  const templateLibs = (0, templateAttributes_1.getTemplateManifestLibs)(type, version);
81
83
  return [...templateLibs].concat(libs ?? []);
82
84
  }
83
- exports.getManifestLibs = getManifestLibs;
84
85
  /**
85
86
  * Sets defaults for the specified Fiori elements application.
86
87
  *
@@ -134,7 +135,6 @@ function setAppDefaults(feApp) {
134
135
  }
135
136
  return feApp;
136
137
  }
137
- exports.setAppDefaults = setAppDefaults;
138
138
  /**
139
139
  * Generates template options on project type and version information.
140
140
  *
@@ -156,5 +156,4 @@ function getTemplateOptions(isEdmxProjectType, serviceVersion, ui5Version) {
156
156
  changesLoader
157
157
  };
158
158
  }
159
- exports.getTemplateOptions = getTemplateOptions;
160
159
  //# sourceMappingURL=defaults.js.map
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.extendManifestJson = void 0;
6
+ exports.extendManifestJson = extendManifestJson;
7
7
  const types_1 = require("../types");
8
8
  const odata_service_writer_1 = require("@sap-ux/odata-service-writer");
9
9
  const path_1 = require("path");
@@ -61,5 +61,4 @@ function extendManifestJson(fs, targetPath, rootTemplatesPath, feApp) {
61
61
  }
62
62
  });
63
63
  }
64
- exports.extendManifestJson = extendManifestJson;
65
64
  //# sourceMappingURL=manifestSettings.js.map
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TemplateTypeAttributes = exports.getTemplateManifestLibs = exports.getTemplateUi5Libs = exports.getBaseComponent = exports.escapeFLPText = exports.changesPreviewToVersion = exports.minSupportedUI5VersionV4 = exports.minSupportedUI5Version = void 0;
3
+ exports.TemplateTypeAttributes = exports.escapeFLPText = exports.changesPreviewToVersion = exports.minSupportedUI5VersionV4 = exports.minSupportedUI5Version = void 0;
4
+ exports.getBaseComponent = getBaseComponent;
5
+ exports.getTemplateUi5Libs = getTemplateUi5Libs;
6
+ exports.getTemplateManifestLibs = getTemplateManifestLibs;
4
7
  const types_1 = require("../types");
5
8
  // first version with SAP Fiori 3 theme
6
9
  exports.minSupportedUI5Version = '1.65.0';
@@ -87,7 +90,6 @@ const templateLibs = {
87
90
  function getBaseComponent(type, version) {
88
91
  return templateLibs[version][type]?.baseComponent;
89
92
  }
90
- exports.getBaseComponent = getBaseComponent;
91
93
  /**
92
94
  * Gets the required UI5 libs for the specified template type and OData version.
93
95
  *
@@ -98,7 +100,6 @@ exports.getBaseComponent = getBaseComponent;
98
100
  function getTemplateUi5Libs(type, version) {
99
101
  return templateLibs[version][type]?.ui5Libs ?? [];
100
102
  }
101
- exports.getTemplateUi5Libs = getTemplateUi5Libs;
102
103
  /**
103
104
  * Gets the required manifest libs for the specified template type and OData version.
104
105
  *
@@ -109,7 +110,6 @@ exports.getTemplateUi5Libs = getTemplateUi5Libs;
109
110
  function getTemplateManifestLibs(type, version) {
110
111
  return templateLibs[version][type]?.manifestLibs ?? [];
111
112
  }
112
- exports.getTemplateManifestLibs = getTemplateManifestLibs;
113
113
  exports.TemplateTypeAttributes = {
114
114
  [types_1.TemplateType.Worklist]: {
115
115
  supportedODataVersions: [types_1.OdataVersion.v2, types_1.OdataVersion.v4],
package/dist/fpmConfig.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateFpmConfig = void 0;
3
+ exports.generateFpmConfig = generateFpmConfig;
4
4
  const fe_fpm_writer_1 = require("@sap-ux/fe-fpm-writer");
5
5
  /**
6
6
  * Processes the template for the Flexible Programming Model (FPM).
@@ -20,5 +20,4 @@ async function generateFpmConfig(feApp, basePath, fs) {
20
20
  typescript: feApp.appOptions?.typescript
21
21
  }, fs);
22
22
  }
23
- exports.generateFpmConfig = generateFpmConfig;
24
23
  //# sourceMappingURL=fpmConfig.js.map
package/dist/i18n.js CHANGED
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.t = exports.initI18n = void 0;
6
+ exports.initI18n = initI18n;
7
+ exports.t = t;
7
8
  const i18next_1 = __importDefault(require("i18next"));
8
9
  const fiori_elements_writer_i18n_json_1 = __importDefault(require("./translations/fiori-elements-writer.i18n.json"));
9
10
  const NS = 'fiori-freestyle-writer';
@@ -23,7 +24,6 @@ async function initI18n() {
23
24
  ns: [NS]
24
25
  });
25
26
  }
26
- exports.initI18n = initI18n;
27
27
  /**
28
28
  * Helper function facading the call to i18next.
29
29
  *
@@ -34,7 +34,6 @@ exports.initI18n = initI18n;
34
34
  function t(key, options) {
35
35
  return i18next_1.default.t(key, options);
36
36
  }
37
- exports.t = t;
38
37
  initI18n().catch(() => {
39
38
  // Ignore any errors since the write will still work
40
39
  });
package/dist/index.js CHANGED
@@ -17,7 +17,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.minSupportedUI5VersionV4 = exports.minSupportedUI5Version = exports.TemplateTypeAttributes = exports.generate = exports.V2_FE_TYPES_AVAILABLE = void 0;
20
+ exports.minSupportedUI5VersionV4 = exports.minSupportedUI5Version = exports.TemplateTypeAttributes = exports.V2_FE_TYPES_AVAILABLE = void 0;
21
+ exports.generate = generate;
21
22
  const path_1 = require("path");
22
23
  const ejs_1 = require("ejs");
23
24
  const ui5_application_writer_1 = require("@sap-ux/ui5-application-writer");
@@ -177,6 +178,5 @@ async function generate(basePath, data, fs) {
177
178
  }
178
179
  return fs;
179
180
  }
180
- exports.generate = generate;
181
181
  __exportStar(require("./types"), exports);
182
182
  //# sourceMappingURL=index.js.map
package/dist/validate.js CHANGED
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.validateRequiredProperties = exports.validateApp = void 0;
6
+ exports.validateApp = validateApp;
7
+ exports.validateRequiredProperties = validateRequiredProperties;
7
8
  const semver_1 = __importDefault(require("semver"));
8
9
  const templateAttributes_1 = require("./data/templateAttributes");
9
10
  const i18n_1 = require("./i18n");
@@ -58,7 +59,6 @@ function validateApp(feApp) {
58
59
  }));
59
60
  }
60
61
  }
61
- exports.validateApp = validateApp;
62
62
  /**
63
63
  * Validates the specified FioriElementsApp contains the required properties.
64
64
  *
@@ -72,5 +72,4 @@ function validateRequiredProperties(feApp) {
72
72
  }));
73
73
  }
74
74
  }
75
- exports.validateRequiredProperties = validateRequiredProperties;
76
75
  //# sourceMappingURL=validate.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-elements-writer",
3
3
  "description": "SAP Fiori elements application writer",
4
- "version": "1.3.2",
4
+ "version": "1.3.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -29,7 +29,7 @@
29
29
  "semver": "7.5.4",
30
30
  "@sap-ux/odata-service-writer": "0.23.0",
31
31
  "@sap-ux/ui5-application-writer": "1.2.0",
32
- "@sap-ux/fe-fpm-writer": "0.31.5",
32
+ "@sap-ux/fe-fpm-writer": "0.31.6",
33
33
  "@sap-ux/ui5-config": "0.25.0",
34
34
  "@sap-ux/ui5-test-writer": "0.4.1",
35
35
  "@sap-ux/fiori-generator-shared": "0.5.1"