@sap-ux/ui5-application-writer 0.24.0 → 0.24.2

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/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%3Aui5-application-writer"
11
11
  },
12
- "version": "0.24.0",
12
+ "version": "0.24.2",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [
@@ -27,7 +27,7 @@
27
27
  "mem-fs": "2.1.0",
28
28
  "mem-fs-editor": "9.4.0",
29
29
  "semver": "7.5.3",
30
- "@sap-ux/ui5-config": "0.18.2"
30
+ "@sap-ux/ui5-config": "0.19.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/ejs": "3.1.0",
@@ -38,7 +38,7 @@
38
38
  "@types/semver": "7.3.9",
39
39
  "fs-extra": "10.0.0",
40
40
  "@sap-ux/eslint-plugin-fiori-tools": "0.2.1",
41
- "@sap-ux/project-access": "1.10.0"
41
+ "@sap-ux/project-access": "1.12.1"
42
42
  },
43
43
  "engines": {
44
44
  "pnpm": ">=6.26.1 < 7.0.0 || >=7.1.0",
@@ -131,6 +131,25 @@
131
131
  };
132
132
  })(sap);
133
133
 
134
+ function registerSAPFonts() {
135
+ sap.ui.require(["sap/ui/core/IconPool"], function (IconPool) {
136
+ //Fiori Theme font family and URI
137
+ var fioriTheme = {
138
+ fontFamily: "SAP-icons-TNT",
139
+ fontURI: sap.ui.require.toUrl("sap/tnt/themes/base/fonts/")
140
+ };
141
+ //Registering to the icon pool
142
+ IconPool.registerFont(fioriTheme);
143
+ //SAP Business Suite Theme font family and URI
144
+ var bSuiteTheme = {
145
+ fontFamily: "BusinessSuiteInAppSymbols",
146
+ fontURI: sap.ui.require.toUrl("sap/ushell/themes/base/fonts/")
147
+ };
148
+ //Registering to the icon pool
149
+ IconPool.registerFont(bSuiteTheme);
150
+ })
151
+ }
152
+
134
153
  /*eslint-disable fiori-custom/sap-browser-api-warning, fiori-custom/sap-no-dom-access*/
135
154
  var currentScript = document.getElementById("locate-reuse-libs");
136
155
  if (!currentScript) {
@@ -163,6 +182,7 @@ sap.registerComponentDependencyPaths(manifestUri)
163
182
  if (componentName && componentName.length > 0) {
164
183
  if (useMockserver && useMockserver === "true") {
165
184
  sap.ui.getCore().attachInit(function () {
185
+ registerSAPFonts()
166
186
  sap.ui.require([componentName.replace(/\./g, "/") + "/localService/mockserver"], function (server) {
167
187
  // set up test service for local testing
168
188
  server.init();
@@ -176,6 +196,7 @@ sap.registerComponentDependencyPaths(manifestUri)
176
196
 
177
197
  // setting the app title with the i18n text
178
198
  sap.ui.getCore().attachInit(function () {
199
+ registerSAPFonts()
179
200
  var sLocale = sap.ui.getCore().getConfiguration().getLanguage();
180
201
  sap.ui.require(["sap/base/i18n/ResourceBundle"], function (ResourceBundle) {
181
202
  var oResourceBundle = ResourceBundle.create({
@@ -188,6 +209,7 @@ sap.registerComponentDependencyPaths(manifestUri)
188
209
  }
189
210
  } else {
190
211
  sap.ui.getCore().attachInit(function () {
212
+ registerSAPFonts()
191
213
  // initialize the ushell sandbox component
192
214
  sap.ushell.Container.createRenderer().placeAt("content");
193
215
  });