Skip to content

Commit a77fae0

Browse files
committed
Include tests files and fix some copyrights
1 parent e79df26 commit a77fae0

19 files changed

+1099
-224
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ node_modules/
1515
npm-debug.log*
1616
yarn-error.log*
1717
wizard-config.json
18-
*.ttl
1918

2019
# Mac OSX Finder files.
2120
**/.DS_Store

src/ng-generate/table/generators/language.generator.ts

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/*
2+
* Copyright (c) 2023 Robert Bosch Manufacturing Solutions GmbH
3+
*
4+
* See the AUTHORS file(s) distributed with this work for
5+
* additional information regarding authorship.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
*
11+
* SPDX-License-Identifier: MPL-2.0
12+
*/
13+
114
import {DefaultEntityInstance, DefaultEnumeration, Property} from '@esmf/aspect-model-loader';
215
import {Schema} from '../schema';
316
import {TemplateHelper} from '../../../utils/template-helper';
@@ -22,20 +35,20 @@ export class LanguageGenerator {
2235
return `{
2336
${!this.options.templateHelper.isAspectSelected(this.options) ? this.getBlockFullAspectVersion(lang) : ``}
2437
${
25-
this.options.enableVersionSupport
26-
? ` "${this.options.selectedModelElement.name.toLowerCase()}.v${this.options.templateHelper.formatAspectModelVersion(
27-
this.options.aspectModelVersion
28-
)}": {`
29-
: ``
30-
}
38+
this.options.enableVersionSupport
39+
? ` "${this.options.selectedModelElement.name.toLowerCase()}.v${this.options.templateHelper.formatAspectModelVersion(
40+
this.options.aspectModelVersion
41+
)}": {`
42+
: ``
43+
}
3144
${new TemplateHelper()
32-
.getProperties(this.options)
33-
.map((prop: Property, i) => {
34-
return `${i > 0 ? ', ' : ''}
45+
.getProperties(this.options)
46+
.map((prop: Property, i) => {
47+
return `${i > 0 ? ', ' : ''}
3548
${this.getBlockTransProperty(prop, lang)}
3649
${this.getBlockTransEntity(prop, lang)}`;
37-
})
38-
.join('')}
50+
})
51+
.join('')}
3952
4053
4154
${this.getBlockTransCustomColumns()}
@@ -69,12 +82,12 @@ export class LanguageGenerator {
6982
private getBlockFullAspectVersion(lang: string): string {
7083
return `
7184
${
72-
this.options.enableVersionSupport
73-
? ` "${this.options.aspectModel.name.toLowerCase()}.v${this.options.templateHelper.formatAspectModelVersion(
74-
this.options.aspectModelVersion
75-
)}": {`
76-
: ``
77-
}
85+
this.options.enableVersionSupport
86+
? ` "${this.options.aspectModel.name.toLowerCase()}.v${this.options.templateHelper.formatAspectModelVersion(
87+
this.options.aspectModelVersion
88+
)}": {`
89+
: ``
90+
}
7891
${this.getBlockAspectDetails(lang)}
7992
${this.options.enableVersionSupport ? `},` : ``}
8093
`;

src/ng-generate/table/generators/style.generator.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/*
2+
* Copyright (c) 2023 Robert Bosch Manufacturing Solutions GmbH
3+
*
4+
* See the AUTHORS file(s) distributed with this work for
5+
* additional information regarding authorship.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
*
11+
* SPDX-License-Identifier: MPL-2.0
12+
*/
13+
114
import {Schema} from '../schema';
215

316
export class StyleGenerator {

0 commit comments

Comments
 (0)