@sap-ux/fe-fpm-writer 0.14.0 → 0.14.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.
@@ -9,6 +9,7 @@ const ejs_1 = require("ejs");
9
9
  const validate_1 = require("../common/validate");
10
10
  const defaults_1 = require("../common/defaults");
11
11
  const event_handler_1 = require("../common/event-handler");
12
+ const templates_1 = require("../templates");
12
13
  /**
13
14
  * Enhances the provided custom action configuration with default data.
14
15
  *
@@ -74,14 +75,13 @@ function generateCustomAction(basePath, actionConfig, fs) {
74
75
  const manifestPath = path_1.join(basePath, 'webapp/manifest.json');
75
76
  const manifest = fs.readJSON(manifestPath);
76
77
  const config = enhanceConfig(actionConfig, manifestPath, manifest);
77
- const root = path_1.join(__dirname, '../../templates');
78
78
  // Apply event handler
79
79
  if (config.eventHandler) {
80
- config.eventHandler = event_handler_1.applyEventHandlerConfiguration(fs, root, config, config.eventHandler, false, config.typescript);
80
+ config.eventHandler = event_handler_1.applyEventHandlerConfiguration(fs, config, config.eventHandler, false, config.typescript);
81
81
  }
82
82
  // enhance manifest with action definition and controller reference
83
83
  const actions = enhanceManifestAndGetActionsElementReference(manifest, config.target);
84
- Object.assign(actions, JSON.parse(ejs_1.render(fs.read(path_1.join(root, `action/manifest.action.json`)), config, {})));
84
+ Object.assign(actions, JSON.parse(ejs_1.render(fs.read(templates_1.getTemplatePath(`action/manifest.action.json`)), config, {})));
85
85
  fs.writeJSON(manifestPath, manifest);
86
86
  return fs;
87
87
  }
package/dist/app/index.js CHANGED
@@ -6,6 +6,7 @@ const mem_fs_editor_1 = require("mem-fs-editor");
6
6
  const path_1 = require("path");
7
7
  const semver_1 = require("semver");
8
8
  const defaults_1 = require("../common/defaults");
9
+ const templates_1 = require("../templates");
9
10
  exports.MIN_VERSION = '1.94.0';
10
11
  /**
11
12
  * Enable the flexible programming model for an application.
@@ -69,7 +70,7 @@ function enableFPM(basePath, config = {}, fs) {
69
70
  // replace Component.js
70
71
  if (config.replaceAppComponent) {
71
72
  const ext = config.typescript ? 'ts' : 'js';
72
- const componentTemplate = path_1.join(__dirname, `../../templates/app/Component.${ext}`);
73
+ const componentTemplate = templates_1.getTemplatePath(`/app/Component.${ext}`);
73
74
  fs.copyTpl(componentTemplate, path_1.join(basePath, `webapp/Component.${ext}`), manifest['sap.app']);
74
75
  }
75
76
  return fs;
@@ -31,6 +31,7 @@ const xmldom_1 = require("@xmldom/xmldom");
31
31
  const xpath = __importStar(require("xpath"));
32
32
  const xml_formatter_1 = __importDefault(require("xml-formatter"));
33
33
  const validate_1 = require("../common/validate");
34
+ const templates_1 = require("../templates");
34
35
  /**
35
36
  * Generates a building block into the provided xml view file.
36
37
  *
@@ -109,7 +110,7 @@ function getOrAddMacrosNamespace(ui5XmlDocument) {
109
110
  */
110
111
  function getTemplateDocument(buildingBlockData, viewDocument, fs) {
111
112
  const templateFolderName = buildingBlockData.buildingBlockType;
112
- const templateFilePath = path_1.join(__dirname, `../../templates/building-block/${templateFolderName}/View.xml`);
113
+ const templateFilePath = templates_1.getTemplatePath(`/building-block/${templateFolderName}/View.xml`);
113
114
  const templateContent = ejs_1.render(fs.read(templateFilePath), {
114
115
  macrosNamespace: getOrAddMacrosNamespace(viewDocument),
115
116
  data: buildingBlockData
@@ -8,6 +8,7 @@ const path_1 = require("path");
8
8
  const defaults_1 = require("../common/defaults");
9
9
  const validate_1 = require("../common/validate");
10
10
  const event_handler_1 = require("../common/event-handler");
11
+ const templates_1 = require("../templates");
11
12
  /**
12
13
  * Get the template folder for the given UI5 version.
13
14
  *
@@ -16,13 +17,13 @@ const event_handler_1 = require("../common/event-handler");
16
17
  */
17
18
  function getManifestRoot(ui5Version) {
18
19
  if (ui5Version === undefined || ui5Version >= 1.86) {
19
- return path_1.join(__dirname, '../../templates/column/1.86');
20
+ return templates_1.getTemplatePath('/column/1.86');
20
21
  }
21
22
  else if (ui5Version === 1.85) {
22
- return path_1.join(__dirname, '../../templates/column/1.85');
23
+ return templates_1.getTemplatePath('/column/1.85');
23
24
  }
24
25
  else {
25
- return path_1.join(__dirname, '../../templates/column/1.84');
26
+ return templates_1.getTemplatePath('column/1.84');
26
27
  }
27
28
  }
28
29
  exports.getManifestRoot = getManifestRoot;
@@ -30,19 +31,18 @@ exports.getManifestRoot = getManifestRoot;
30
31
  * Enhances the provided custom table column configuration with default data.
31
32
  *
32
33
  * @param {Editor} fs - the mem-fs editor instance
33
- * @param {string} root - root path
34
34
  * @param {CustomTableColumn} data - a custom column configuration object
35
35
  * @param {string} manifestPath - path to the project's manifest.json
36
36
  * @param {Manifest} manifest - the application manifest
37
37
  * @returns enhanced configuration
38
38
  */
39
- function enhanceConfig(fs, root, data, manifestPath, manifest) {
39
+ function enhanceConfig(fs, data, manifestPath, manifest) {
40
40
  // clone input and set defaults
41
41
  const config = Object.assign({}, data);
42
42
  defaults_1.setCommonDefaults(config, manifestPath, manifest);
43
43
  // Apply event handler
44
44
  if (config.eventHandler) {
45
- config.eventHandler = event_handler_1.applyEventHandlerConfiguration(fs, root, config, config.eventHandler, false, config.typescript);
45
+ config.eventHandler = event_handler_1.applyEventHandlerConfiguration(fs, config, config.eventHandler, false, config.typescript);
46
46
  }
47
47
  // generate column content
48
48
  const content = config.properties && config.properties.length > 0
@@ -67,9 +67,8 @@ function generateCustomColumn(basePath, customColumn, fs) {
67
67
  validate_1.validateBasePath(basePath, fs);
68
68
  const manifestPath = path_1.join(basePath, 'webapp/manifest.json');
69
69
  const manifest = fs.readJSON(manifestPath);
70
- const root = path_1.join(__dirname, '../../templates');
71
70
  // merge with defaults
72
- const completeColumn = enhanceConfig(fs, root, customColumn, manifestPath, manifest);
71
+ const completeColumn = enhanceConfig(fs, customColumn, manifestPath, manifest);
73
72
  // enhance manifest with column definition
74
73
  const manifestRoot = getManifestRoot(customColumn.ui5Version);
75
74
  const filledTemplate = ejs_1.render(fs.read(path_1.join(manifestRoot, `manifest.json`)), completeColumn, {});
@@ -77,7 +76,7 @@ function generateCustomColumn(basePath, customColumn, fs) {
77
76
  // add fragment
78
77
  const viewPath = path_1.join(completeColumn.path, `${completeColumn.name}.fragment.xml`);
79
78
  if (completeColumn.control || !fs.exists(viewPath)) {
80
- fs.copyTpl(path_1.join(root, 'common/Fragment.xml'), viewPath, completeColumn);
79
+ fs.copyTpl(templates_1.getTemplatePath('common/Fragment.xml'), viewPath, completeColumn);
81
80
  }
82
81
  return fs;
83
82
  }
@@ -4,12 +4,11 @@ import type { EventHandlerConfiguration, InternalCustomElement } from '../common
4
4
  * Method creates or updates handler js file and update 'settings.eventHandler' entry with namespace path entry to method.
5
5
  *
6
6
  * @param {Editor} fs - the memfs editor instance
7
- * @param {string} root - the root path
8
7
  * @param {InternalCustomElement} config - configuration
9
8
  * @param {EventHandlerConfiguration | true | string} [eventHandler] - eventHandler for creation
10
9
  * @param {boolean} [controllerSuffix=false] - append controller suffix to new file
11
10
  * @param {boolean} typescript - create Typescript file instead of Javascript
12
11
  * @returns {string} full namespace path to method
13
12
  */
14
- export declare function applyEventHandlerConfiguration(fs: Editor, root: string, config: Partial<InternalCustomElement>, eventHandler: EventHandlerConfiguration | true | string, controllerSuffix?: boolean, typescript?: boolean): string;
13
+ export declare function applyEventHandlerConfiguration(fs: Editor, config: Partial<InternalCustomElement>, eventHandler: EventHandlerConfiguration | true | string, controllerSuffix?: boolean, typescript?: boolean): string;
15
14
  //# sourceMappingURL=event-handler.d.ts.map
@@ -2,19 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.applyEventHandlerConfiguration = void 0;
4
4
  const path_1 = require("path");
5
+ const templates_1 = require("../templates");
5
6
  const utils_1 = require("../common/utils");
6
7
  /**
7
8
  * Method creates or updates handler js file and update 'settings.eventHandler' entry with namespace path entry to method.
8
9
  *
9
10
  * @param {Editor} fs - the memfs editor instance
10
- * @param {string} root - the root path
11
11
  * @param {InternalCustomElement} config - configuration
12
12
  * @param {EventHandlerConfiguration | true | string} [eventHandler] - eventHandler for creation
13
13
  * @param {boolean} [controllerSuffix=false] - append controller suffix to new file
14
14
  * @param {boolean} typescript - create Typescript file instead of Javascript
15
15
  * @returns {string} full namespace path to method
16
16
  */
17
- function applyEventHandlerConfiguration(fs, root, config, eventHandler, controllerSuffix = false, typescript) {
17
+ function applyEventHandlerConfiguration(fs, config, eventHandler, controllerSuffix = false, typescript) {
18
18
  if (typeof eventHandler === 'string') {
19
19
  // Existing event handler is passed - no need for file creation/update
20
20
  return eventHandler;
@@ -37,7 +37,7 @@ function applyEventHandlerConfiguration(fs, root, config, eventHandler, controll
37
37
  const ext = typescript ? 'ts' : 'js';
38
38
  const controllerPath = path_1.join(config.path || '', `${fileName}${controllerSuffix ? '.controller' : ''}.${ext}`);
39
39
  if (!fs.exists(controllerPath)) {
40
- fs.copyTpl(path_1.join(root, `common/EventHandler.${ext}`), controllerPath, {
40
+ fs.copyTpl(templates_1.getTemplatePath(`common/EventHandler.${ext}`), controllerPath, {
41
41
  eventHandlerFnName
42
42
  });
43
43
  }
@@ -8,6 +8,7 @@ const ejs_1 = require("ejs");
8
8
  const common_1 = require("./common");
9
9
  const defaults_1 = require("../common/defaults");
10
10
  const validate_1 = require("../common/validate");
11
+ const templates_1 = require("../templates");
11
12
  /**
12
13
  * Enhances the provided custom page configuration with default data.
13
14
  *
@@ -40,10 +41,10 @@ exports.enhanceData = enhanceData;
40
41
  */
41
42
  function getTemplateRoot(ui5Version) {
42
43
  if (ui5Version === undefined || ui5Version >= 1.94) {
43
- return path_1.join(__dirname, '../../templates/page/custom/1.94');
44
+ return templates_1.getTemplatePath('/page/custom/1.94');
44
45
  }
45
46
  else {
46
- return path_1.join(__dirname, '../../templates/page/custom/1.84');
47
+ return templates_1.getTemplatePath('/page/custom/1.84');
47
48
  }
48
49
  }
49
50
  exports.getTemplateRoot = getTemplateRoot;
package/dist/page/list.js CHANGED
@@ -6,6 +6,7 @@ const mem_fs_1 = require("mem-fs");
6
6
  const mem_fs_editor_1 = require("mem-fs-editor");
7
7
  const ejs_1 = require("ejs");
8
8
  const common_1 = require("./common");
9
+ const templates_1 = require("../templates");
9
10
  /**
10
11
  * Enhances the provided list report configuration with default data.
11
12
  *
@@ -50,7 +51,7 @@ function generate(basePath, data, fs) {
50
51
  const manifest = fs.readJSON(manifestPath);
51
52
  const config = enhanceData(data, manifest);
52
53
  // enhance manifest.json
53
- fs.extendJSON(manifestPath, JSON.parse(ejs_1.render(fs.read(path_1.join(__dirname, '../../templates/page/list/manifest.json')), config, {})), common_1.getManifestJsonExtensionHelper(config));
54
+ fs.extendJSON(manifestPath, JSON.parse(ejs_1.render(fs.read(templates_1.getTemplatePath('page/list/manifest.json')), config, {})), common_1.getManifestJsonExtensionHelper(config));
54
55
  return fs;
55
56
  }
56
57
  exports.generate = generate;
@@ -6,6 +6,7 @@ const mem_fs_1 = require("mem-fs");
6
6
  const mem_fs_editor_1 = require("mem-fs-editor");
7
7
  const ejs_1 = require("ejs");
8
8
  const common_1 = require("./common");
9
+ const templates_1 = require("../templates");
9
10
  /**
10
11
  * Enhances the provided list report configuration with default data.
11
12
  *
@@ -41,7 +42,7 @@ function generate(basePath, data, fs) {
41
42
  const manifest = fs.readJSON(manifestPath);
42
43
  const config = enhanceData(data, manifest);
43
44
  // enhance manifest.json
44
- fs.extendJSON(manifestPath, JSON.parse(ejs_1.render(fs.read(path_1.join(__dirname, '../../templates/page/object/manifest.json')), config, {})), common_1.getManifestJsonExtensionHelper(config));
45
+ fs.extendJSON(manifestPath, JSON.parse(ejs_1.render(fs.read(templates_1.getTemplatePath('/page/object/manifest.json')), config, {})), common_1.getManifestJsonExtensionHelper(config));
45
46
  return fs;
46
47
  }
47
48
  exports.generate = generate;
@@ -3,11 +3,10 @@ import type { CustomSection } from './types';
3
3
  /**
4
4
  * Get the template folder for the given UI5 version.
5
5
  *
6
- * @param root root path to templates folder.
7
6
  * @param ui5Version required UI5 version.
8
7
  * @returns path to the template folder containing the manifest.json ejs template
9
8
  */
10
- export declare function getManifestRoot(root: string, ui5Version?: number): string;
9
+ export declare function getManifestRoot(ui5Version?: number): string;
11
10
  /**
12
11
  * Add a custom section to an existing UI5 application.
13
12
  *
@@ -8,38 +8,37 @@ const ejs_1 = require("ejs");
8
8
  const validate_1 = require("../common/validate");
9
9
  const defaults_1 = require("../common/defaults");
10
10
  const event_handler_1 = require("../common/event-handler");
11
+ const templates_1 = require("../templates");
11
12
  /**
12
13
  * Get the template folder for the given UI5 version.
13
14
  *
14
- * @param root root path to templates folder.
15
15
  * @param ui5Version required UI5 version.
16
16
  * @returns path to the template folder containing the manifest.json ejs template
17
17
  */
18
- function getManifestRoot(root, ui5Version) {
18
+ function getManifestRoot(ui5Version) {
19
19
  let subFolder = '1.86';
20
20
  if (ui5Version !== undefined && ui5Version < 1.86) {
21
21
  // Old
22
22
  subFolder = '1.85';
23
23
  }
24
- return path_1.join(root, 'section', subFolder);
24
+ return templates_1.getTemplatePath(path_1.join('section', subFolder));
25
25
  }
26
26
  exports.getManifestRoot = getManifestRoot;
27
27
  /**
28
28
  * Enhances the provided custom section configuration with additonal data.
29
29
  *
30
30
  * @param {Editor} fs - the mem-fs editor instance
31
- * @param {string} root - root path
32
31
  * @param {CustomSection} data - a custom section configuration object
33
32
  * @param {string} manifestPath - path to the project's manifest.json
34
33
  * @param {Manifest} manifest - the application manifest
35
34
  * @returns enhanced configuration
36
35
  */
37
- function enhanceConfig(fs, root, data, manifestPath, manifest) {
36
+ function enhanceConfig(fs, data, manifestPath, manifest) {
38
37
  const config = Object.assign({}, data);
39
38
  defaults_1.setCommonDefaults(config, manifestPath, manifest);
40
39
  // Apply event handler
41
40
  if (config.eventHandler) {
42
- config.eventHandler = event_handler_1.applyEventHandlerConfiguration(fs, root, config, config.eventHandler, false, config.typescript);
41
+ config.eventHandler = event_handler_1.applyEventHandlerConfiguration(fs, config, config.eventHandler, false, config.typescript);
43
42
  }
44
43
  // generate section content
45
44
  config.content = config.control || defaults_1.getDefaultFragmentContent(config.name, config.eventHandler);
@@ -61,17 +60,16 @@ function generateCustomSection(basePath, customSection, fs) {
61
60
  validate_1.validateBasePath(basePath, fs);
62
61
  const manifestPath = path_1.join(basePath, 'webapp/manifest.json');
63
62
  const manifest = fs.readJSON(manifestPath);
64
- const root = path_1.join(__dirname, '../../templates');
65
63
  // merge with defaults
66
- const completeSection = enhanceConfig(fs, root, customSection, manifestPath, manifest);
64
+ const completeSection = enhanceConfig(fs, customSection, manifestPath, manifest);
67
65
  // enhance manifest with section definition
68
- const manifestRoot = getManifestRoot(root, customSection.ui5Version);
66
+ const manifestRoot = getManifestRoot(customSection.ui5Version);
69
67
  const filledTemplate = ejs_1.render(fs.read(path_1.join(manifestRoot, `manifest.json`)), completeSection, {});
70
68
  fs.extendJSON(manifestPath, JSON.parse(filledTemplate));
71
69
  // add fragment
72
70
  const viewPath = path_1.join(completeSection.path, `${completeSection.name}.fragment.xml`);
73
71
  if (!fs.exists(viewPath)) {
74
- fs.copyTpl(path_1.join(root, 'common/Fragment.xml'), viewPath, completeSection);
72
+ fs.copyTpl(templates_1.getTemplatePath('common/Fragment.xml'), viewPath, completeSection);
75
73
  }
76
74
  return fs;
77
75
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Locates template files relative to the dist folder.
3
+ * This helps to locate templates when this module is bundled and the dir structure is flattened, maintaining the relative paths.
4
+ *
5
+ * @param relativeTemplatePath - optional, the path of the required template relative to the ./templates folder. If not specified the root templates folder is returned.
6
+ * @returns the path of the template specified or templates root folder
7
+ */
8
+ export declare function getTemplatePath(relativeTemplatePath?: string): string;
9
+ //# sourceMappingURL=templates.d.ts.map
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTemplatePath = void 0;
4
+ const path_1 = require("path");
5
+ /**
6
+ * Locates template files relative to the dist folder.
7
+ * This helps to locate templates when this module is bundled and the dir structure is flattened, maintaining the relative paths.
8
+ *
9
+ * @param relativeTemplatePath - optional, the path of the required template relative to the ./templates folder. If not specified the root templates folder is returned.
10
+ * @returns the path of the template specified or templates root folder
11
+ */
12
+ function getTemplatePath(relativeTemplatePath = '') {
13
+ return path_1.join(__dirname, '../templates', relativeTemplatePath);
14
+ }
15
+ exports.getTemplatePath = getTemplatePath;
16
+ //# sourceMappingURL=templates.js.map
@@ -8,23 +8,23 @@ const ejs_1 = require("ejs");
8
8
  const validate_1 = require("../common/validate");
9
9
  const defaults_1 = require("../common/defaults");
10
10
  const event_handler_1 = require("../common/event-handler");
11
+ const templates_1 = require("../templates");
11
12
  /**
12
13
  * Enhances the provided custom view configuration with default data.
13
14
  *
14
15
  * @param {Editor} fs - the mem-fs editor instance
15
- * @param {string} root - root path
16
16
  * @param {CustomView} data - a custom view configuration object
17
17
  * @param {string} manifestPath - path to the project's manifest.json
18
18
  * @param {Manifest} manifest - the application manifest
19
19
  * @returns enhanced configuration
20
20
  */
21
- function enhanceConfig(fs, root, data, manifestPath, manifest) {
21
+ function enhanceConfig(fs, data, manifestPath, manifest) {
22
22
  var _a, _b, _c, _d, _e;
23
23
  const config = Object.assign({}, data);
24
24
  defaults_1.setCommonDefaults(config, manifestPath, manifest);
25
25
  // Apply event handler
26
26
  if (config.eventHandler) {
27
- config.eventHandler = event_handler_1.applyEventHandlerConfiguration(fs, root, config, config.eventHandler, true, config.typescript);
27
+ config.eventHandler = event_handler_1.applyEventHandlerConfiguration(fs, config, config.eventHandler, true, config.typescript);
28
28
  }
29
29
  // existing views
30
30
  const existingViews = (_e = (_d = ((_c = (_b = (_a = manifest['sap.ui5']) === null || _a === void 0 ? void 0 : _a.routing) === null || _b === void 0 ? void 0 : _b.targets) === null || _c === void 0 ? void 0 : _c[data.target])
@@ -57,19 +57,18 @@ function generateCustomView(basePath, customView, fs) {
57
57
  validate_1.validateBasePath(basePath, fs);
58
58
  const manifestPath = path_1.join(basePath, 'webapp/manifest.json');
59
59
  const manifest = fs.readJSON(manifestPath);
60
- const root = path_1.join(__dirname, '../../templates');
61
60
  // merge with defaults
62
- const completeView = enhanceConfig(fs, root, customView, manifestPath, manifest);
61
+ const completeView = enhanceConfig(fs, customView, manifestPath, manifest);
63
62
  // enhance manifest with view definition
64
- const filledTemplate = ejs_1.render(fs.read(path_1.join(root, 'view', `manifest.json`)), completeView, {});
63
+ const filledTemplate = ejs_1.render(fs.read(templates_1.getTemplatePath('view/manifest.json')), completeView, {});
65
64
  fs.extendJSON(manifestPath, JSON.parse(filledTemplate));
66
65
  // add fragment
67
66
  const viewPath = path_1.join(completeView.path, `${completeView.name}.fragment.xml`);
68
67
  if (completeView.control === true) {
69
- fs.copyTpl(path_1.join(root, 'view/ext/CustomViewWithTable.xml'), viewPath, completeView);
68
+ fs.copyTpl(templates_1.getTemplatePath('view/ext/CustomViewWithTable.xml'), viewPath, completeView);
70
69
  }
71
70
  else if (!fs.exists(viewPath)) {
72
- fs.copyTpl(path_1.join(root, 'common/Fragment.xml'), viewPath, completeView);
71
+ fs.copyTpl(templates_1.getTemplatePath('common/Fragment.xml'), viewPath, completeView);
73
72
  }
74
73
  return fs;
75
74
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fe-fpm-writer",
3
3
  "description": "SAP Fiori elements flexible programming model writer",
4
- "version": "0.14.0",
4
+ "version": "0.14.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -9,14 +9,5 @@ sap.ui.define(
9
9
  metadata: {
10
10
  manifest: "json"
11
11
  }
12
-
13
- /**
14
- * The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
15
- * @public
16
- * @override
17
- */
18
- //init: function() {
19
- // AppComponent.prototype.init.apply(this, arguments);
20
- //}
21
12
  });
22
13
  });
@@ -1,20 +1,11 @@
1
1
  import AppComponent from 'sap/fe/core/AppComponent';
2
2
 
3
3
  /**
4
- * @namespace <%- app.id %>
4
+ * @namespace <%- id %>
5
5
  */
6
6
  export default class Component extends AppComponent {
7
7
 
8
8
  public static metadata = {
9
9
  manifest: "json"
10
10
  };
11
-
12
- /**
13
- * The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
14
- * @public
15
- * @override
16
- */
17
- //public init() : void {
18
- // super.init();
19
- //}
20
- }
11
+ }