@ihk-gfi/lux-components-update 14.0.0 → 14.1.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.
- package/package.json +1 -1
- package/src/collection.json +5 -0
- package/src/theme/change-to-lux-icons/index.d.ts +0 -5
- package/src/theme/change-to-lux-icons/index.js +2 -14
- package/src/theme/change-to-lux-icons/index.js.map +1 -1
- package/src/theme/change-to-lux-icons/index.ts +1 -15
- package/src/theme/change-to-lux-icons/index_spec.js +0 -86
- package/src/theme/change-to-lux-icons/index_spec.js.map +1 -1
- package/src/theme/change-to-lux-icons/index_spec.ts +1 -91
- package/src/update-dependencies/index.d.ts +3 -0
- package/src/update-dependencies/index.js +10 -4
- package/src/update-dependencies/index.js.map +1 -1
- package/src/update-dependencies/index.ts +9 -5
- package/src/updates/update140000/index.d.ts +6 -0
- package/src/updates/update140000/index.js +20 -8
- package/src/updates/update140000/index.js.map +1 -1
- package/src/updates/update140000/index.ts +19 -6
- package/src/updates/update140000/index_spec.js +88 -0
- package/src/updates/update140000/index_spec.js.map +1 -1
- package/src/updates/update140000/index_spec.ts +93 -1
- package/src/updates/update140100/index.d.ts +5 -0
- package/src/updates/update140100/index.js +62 -0
- package/src/updates/update140100/index.js.map +1 -0
- package/src/updates/update140100/index.ts +60 -0
- package/src/updates/update140100/index_spec.d.ts +1 -0
- package/src/updates/update140100/index_spec.js +124 -0
- package/src/updates/update140100/index_spec.js.map +1 -0
- package/src/updates/update140100/index_spec.ts +137 -0
- package/src/updates/update140100/schema.json +23 -0
- package/src/utility/json.js +6 -1
- package/src/utility/json.js.map +1 -1
- package/src/utility/json.ts +5 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { chain, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
2
2
|
import * as chalk from 'chalk';
|
|
3
|
-
import { iconAssetBlock } from '../../theme/change-to-lux-icons/index';
|
|
4
3
|
import { updateDependencies } from '../../update-dependencies/index';
|
|
5
4
|
import { iterateFilesAndModifyContent, moveFilesToDirectory } from '../../utility/files';
|
|
6
5
|
import { HtmlManipulator as Html } from '../../utility/html/html-manipulator';
|
|
@@ -14,6 +13,12 @@ export const updateMajorVersion = '14';
|
|
|
14
13
|
export const updateMinVersion = '13.3.0';
|
|
15
14
|
export const updateNodeMinVersion = '16.0.0';
|
|
16
15
|
|
|
16
|
+
export const iconAssetBlock = {
|
|
17
|
+
"glob": "**/*",
|
|
18
|
+
"input": "./node_modules/@ihk-gfi/lux-components-icons-and-fonts/assets/icons/",
|
|
19
|
+
"output": "./assets/icons"
|
|
20
|
+
};
|
|
21
|
+
|
|
17
22
|
export function update(options: any): Rule {
|
|
18
23
|
return (_tree: Tree, _context: SchematicContext) => {
|
|
19
24
|
return chain([
|
|
@@ -30,14 +35,10 @@ export function update(options: any): Rule {
|
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
export function updateProject(options: any): Rule {
|
|
33
|
-
const assetPath = ['projects', options.project, 'architect', 'build', 'options', 'assets'];
|
|
34
|
-
const testAssetPath = ['projects', options.project, 'architect', 'test', 'options', 'assets'];
|
|
35
|
-
|
|
36
38
|
return (_tree: Tree, _context: SchematicContext) => {
|
|
37
39
|
return chain([
|
|
38
40
|
messageInfoRule(`LUX-Components ${updateMajorVersion} werden aktualisiert...`),
|
|
39
|
-
|
|
40
|
-
updateJsonArray('/angular.json', testAssetPath, iconAssetBlock),
|
|
41
|
+
addIconAssets(options),
|
|
41
42
|
copyFiles(options),
|
|
42
43
|
renameLuxSelectedFiles(options),
|
|
43
44
|
updateDependencies(),
|
|
@@ -46,6 +47,18 @@ export function updateProject(options: any): Rule {
|
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
|
|
50
|
+
export function addIconAssets(options: any): Rule {
|
|
51
|
+
const assetPath = ['projects', options.project, 'architect', 'build', 'options', 'assets'];
|
|
52
|
+
const testAssetPath = ['projects', options.project, 'architect', 'test', 'options', 'assets'];
|
|
53
|
+
|
|
54
|
+
return chain([
|
|
55
|
+
messageInfoRule(`Die LUX-Iconpfade werden in den Asset-Abschnitten ergänzt...`),
|
|
56
|
+
updateJsonArray('/angular.json', assetPath, iconAssetBlock),
|
|
57
|
+
updateJsonArray('/angular.json', testAssetPath, iconAssetBlock),
|
|
58
|
+
messageSuccessRule(`Die LUX-Iconpfade wurden in den Asset-Abschnitten ergänzt.`),
|
|
59
|
+
]);
|
|
60
|
+
}
|
|
61
|
+
|
|
49
62
|
export function renameLuxSelectedFiles(options: any): Rule {
|
|
50
63
|
return chain([
|
|
51
64
|
messageInfoRule(`Das Attribut "luxSelectedFiles" wird umbenannt in "luxSelected"...`),
|
|
@@ -11,8 +11,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
13
13
|
const testing_1 = require("@angular-devkit/schematics/testing");
|
|
14
|
+
const jsonc_parser_1 = require("jsonc-parser");
|
|
14
15
|
const path = require("path");
|
|
15
16
|
const rxjs_1 = require("rxjs");
|
|
17
|
+
const json_1 = require("../../utility/json");
|
|
16
18
|
const test_1 = require("../../utility/test");
|
|
17
19
|
const util_1 = require("../../utility/util");
|
|
18
20
|
const index_1 = require("./index");
|
|
@@ -37,6 +39,29 @@ describe('update140000', () => {
|
|
|
37
39
|
testOptions.path = test_1.workspaceOptions.newProjectRoot + '/' + test_1.appOptions.name;
|
|
38
40
|
testOptions.verbose = true;
|
|
39
41
|
}));
|
|
42
|
+
describe('[Rule] addIconAssets', () => {
|
|
43
|
+
it('Sollte den LUX-Iconpfad in den Assets-Abschnitten ergänzen', (done) => {
|
|
44
|
+
const filePath = './angular.json';
|
|
45
|
+
appTree.overwrite(filePath, angularJsonIconAssets);
|
|
46
|
+
(0, schematics_1.callRule)((0, index_1.addIconAssets)(testOptions), (0, rxjs_1.of)(appTree), context).subscribe({
|
|
47
|
+
next: (success) => {
|
|
48
|
+
var _a, _b;
|
|
49
|
+
const assetPath = ['projects', testOptions.project, 'architect', 'build', 'options', 'assets'];
|
|
50
|
+
const node = (0, jsonc_parser_1.findNodeAtLocation)((0, json_1.readJson)(success, filePath), assetPath);
|
|
51
|
+
expect(node).toBeDefined();
|
|
52
|
+
expect((_a = node === null || node === void 0 ? void 0 : node.children) === null || _a === void 0 ? void 0 : _a.length).toBe(3);
|
|
53
|
+
expect(JSON.stringify((0, jsonc_parser_1.getNodeValue)(node.children[2]))).toBe(JSON.stringify(index_1.iconAssetBlock));
|
|
54
|
+
const testAssetPath = ['projects', testOptions.project, 'architect', 'test', 'options', 'assets'];
|
|
55
|
+
const testNode = (0, jsonc_parser_1.findNodeAtLocation)((0, json_1.readJson)(success, filePath), testAssetPath);
|
|
56
|
+
expect(testNode).toBeDefined();
|
|
57
|
+
expect((_b = testNode === null || testNode === void 0 ? void 0 : testNode.children) === null || _b === void 0 ? void 0 : _b.length).toBe(3);
|
|
58
|
+
expect(JSON.stringify((0, jsonc_parser_1.getNodeValue)(testNode.children[2]))).toBe(JSON.stringify(index_1.iconAssetBlock));
|
|
59
|
+
done();
|
|
60
|
+
},
|
|
61
|
+
error: (reason) => expect(reason).toBeUndefined()
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
});
|
|
40
65
|
describe('[Rule] renameLuxSelectedFiles', () => {
|
|
41
66
|
it('Sollte das Attribut "luxSelectedFiles" in "luxSelected" umbenennen', (done) => {
|
|
42
67
|
const filePath = testOptions.path + '/renameLuxSelectedFiles/Test.component.html';
|
|
@@ -74,4 +99,67 @@ const renameLuxSelectedFilesContent = `
|
|
|
74
99
|
<lux-file-upload [luxSelectedFiles]="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-upload>
|
|
75
100
|
<lux-file-upload [(luxSelectedFiles)]="selected"></lux-file-upload>
|
|
76
101
|
`;
|
|
102
|
+
const angularJsonIconAssets = `
|
|
103
|
+
{
|
|
104
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
105
|
+
"version": 1,
|
|
106
|
+
"newProjectRoot": "projects",
|
|
107
|
+
"projects": {
|
|
108
|
+
"bar": {
|
|
109
|
+
"root": "",
|
|
110
|
+
"sourceRoot": "src",
|
|
111
|
+
"projectType": "application",
|
|
112
|
+
"i18n": {
|
|
113
|
+
"sourceLocale": {
|
|
114
|
+
"code": "de",
|
|
115
|
+
"baseHref": "/"
|
|
116
|
+
},
|
|
117
|
+
"locales": {
|
|
118
|
+
"en": "src/locale/messages.en.xlf"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"architect": {
|
|
122
|
+
"build": {
|
|
123
|
+
"builder": "ngx-build-plus:browser",
|
|
124
|
+
"options": {
|
|
125
|
+
"outputPath": "dist",
|
|
126
|
+
"index": "src/index.html",
|
|
127
|
+
"main": "src/main.ts",
|
|
128
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
129
|
+
"polyfills": "src/polyfills.ts",
|
|
130
|
+
"localize": [
|
|
131
|
+
"de"
|
|
132
|
+
],
|
|
133
|
+
"i18nMissingTranslation": "error",
|
|
134
|
+
"assets": [
|
|
135
|
+
"src/assets",
|
|
136
|
+
"src/favicon.ico"
|
|
137
|
+
],
|
|
138
|
+
"styles": [
|
|
139
|
+
"src/styles.scss"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
"test": {
|
|
144
|
+
"builder": "ngx-build-plus:karma",
|
|
145
|
+
"options": {
|
|
146
|
+
"main": "src/test.ts",
|
|
147
|
+
"karmaConfig": "./karma.conf.js",
|
|
148
|
+
"polyfills": "src/polyfills.ts",
|
|
149
|
+
"tsConfig": "src/tsconfig.spec.json",
|
|
150
|
+
"scripts": [],
|
|
151
|
+
"styles": [
|
|
152
|
+
"src/styles.scss"
|
|
153
|
+
],
|
|
154
|
+
"assets": [
|
|
155
|
+
"src/assets",
|
|
156
|
+
"src/favicon.ico"
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
`;
|
|
77
165
|
//# sourceMappingURL=index_spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAwE;AACxE,gEAAuF;AACvF,6BAA6B;AAC7B,+BAA0C;AAC1C,6CAAkE;AAClE,6CAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAwE;AACxE,gEAAuF;AACvF,+CAAgE;AAChE,6BAA6B;AAC7B,+BAA0C;AAC1C,6CAA8C;AAC9C,6CAAkE;AAClE,6CAAgD;AAChD,mCAAgF;AAEhF,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,IAAI,OAAqB,CAAC;IAC1B,IAAI,MAA2B,CAAC;IAChC,IAAI,OAAyB,CAAC;IAE9B,MAAM,WAAW,GAAwD;QACvE,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,KAAK;KACf,CAAC;IAEF,UAAU,CAAC,GAAS,EAAE;QACpB,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;QACrE,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAE/D,MAAM,UAAU,GAAG,qBAAqB,CAAC;QACzC,OAAO,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,UAAU,EAAE,WAAW,EAAE,uBAAgB,CAAC,CAAC,SAAS,EAAE,CAAC;QACxG,OAAO,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,UAAU,EAAE,aAAa,EAAE,iBAAU,EAAE,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC;QAE7G,OAAO,GAAG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;;;;;;;;;;;;;;;;;;;CA8D7B,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { callRule, SchematicContext } from '@angular-devkit/schematics';
|
|
2
2
|
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
|
|
3
|
+
import { findNodeAtLocation, getNodeValue } from 'jsonc-parser';
|
|
3
4
|
import * as path from 'path';
|
|
4
5
|
import { of as observableOf } from 'rxjs';
|
|
6
|
+
import { readJson } from '../../utility/json';
|
|
5
7
|
import { appOptions, workspaceOptions } from '../../utility/test';
|
|
6
8
|
import { UtilConfig } from '../../utility/util';
|
|
7
|
-
import { renameLuxSelectedFiles } from './index';
|
|
9
|
+
import { addIconAssets, iconAssetBlock, renameLuxSelectedFiles } from './index';
|
|
8
10
|
|
|
9
11
|
describe('update140000', () => {
|
|
10
12
|
let appTree: UnitTestTree;
|
|
@@ -36,6 +38,32 @@ describe('update140000', () => {
|
|
|
36
38
|
testOptions.verbose = true;
|
|
37
39
|
});
|
|
38
40
|
|
|
41
|
+
describe('[Rule] addIconAssets', () => {
|
|
42
|
+
it('Sollte den LUX-Iconpfad in den Assets-Abschnitten ergänzen', (done) => {
|
|
43
|
+
const filePath = './angular.json';
|
|
44
|
+
appTree.overwrite(filePath, angularJsonIconAssets);
|
|
45
|
+
|
|
46
|
+
callRule(addIconAssets(testOptions), observableOf(appTree), context).subscribe({
|
|
47
|
+
next: (success) => {
|
|
48
|
+
const assetPath = ['projects', testOptions.project, 'architect', 'build', 'options', 'assets'];
|
|
49
|
+
const node = findNodeAtLocation(readJson(success, filePath), assetPath);
|
|
50
|
+
expect(node).toBeDefined();
|
|
51
|
+
expect(node?.children?.length).toBe(3);
|
|
52
|
+
expect(JSON.stringify(getNodeValue(node!.children![2]))).toBe(JSON.stringify(iconAssetBlock));
|
|
53
|
+
|
|
54
|
+
const testAssetPath = ['projects', testOptions.project, 'architect', 'test', 'options', 'assets'];
|
|
55
|
+
const testNode = findNodeAtLocation(readJson(success, filePath), testAssetPath);
|
|
56
|
+
expect(testNode).toBeDefined();
|
|
57
|
+
expect(testNode?.children?.length).toBe(3);
|
|
58
|
+
expect(JSON.stringify(getNodeValue(testNode!.children![2]))).toBe(JSON.stringify(iconAssetBlock));
|
|
59
|
+
|
|
60
|
+
done();
|
|
61
|
+
},
|
|
62
|
+
error: (reason) => expect(reason).toBeUndefined()
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
39
67
|
describe('[Rule] renameLuxSelectedFiles', () => {
|
|
40
68
|
it('Sollte das Attribut "luxSelectedFiles" in "luxSelected" umbenennen', (done) => {
|
|
41
69
|
const filePath = testOptions.path + '/renameLuxSelectedFiles/Test.component.html';
|
|
@@ -77,3 +105,67 @@ const renameLuxSelectedFilesContent = `
|
|
|
77
105
|
<lux-file-upload [luxSelectedFiles]="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-upload>
|
|
78
106
|
<lux-file-upload [(luxSelectedFiles)]="selected"></lux-file-upload>
|
|
79
107
|
`;
|
|
108
|
+
|
|
109
|
+
const angularJsonIconAssets = `
|
|
110
|
+
{
|
|
111
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
112
|
+
"version": 1,
|
|
113
|
+
"newProjectRoot": "projects",
|
|
114
|
+
"projects": {
|
|
115
|
+
"bar": {
|
|
116
|
+
"root": "",
|
|
117
|
+
"sourceRoot": "src",
|
|
118
|
+
"projectType": "application",
|
|
119
|
+
"i18n": {
|
|
120
|
+
"sourceLocale": {
|
|
121
|
+
"code": "de",
|
|
122
|
+
"baseHref": "/"
|
|
123
|
+
},
|
|
124
|
+
"locales": {
|
|
125
|
+
"en": "src/locale/messages.en.xlf"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"architect": {
|
|
129
|
+
"build": {
|
|
130
|
+
"builder": "ngx-build-plus:browser",
|
|
131
|
+
"options": {
|
|
132
|
+
"outputPath": "dist",
|
|
133
|
+
"index": "src/index.html",
|
|
134
|
+
"main": "src/main.ts",
|
|
135
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
136
|
+
"polyfills": "src/polyfills.ts",
|
|
137
|
+
"localize": [
|
|
138
|
+
"de"
|
|
139
|
+
],
|
|
140
|
+
"i18nMissingTranslation": "error",
|
|
141
|
+
"assets": [
|
|
142
|
+
"src/assets",
|
|
143
|
+
"src/favicon.ico"
|
|
144
|
+
],
|
|
145
|
+
"styles": [
|
|
146
|
+
"src/styles.scss"
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
"test": {
|
|
151
|
+
"builder": "ngx-build-plus:karma",
|
|
152
|
+
"options": {
|
|
153
|
+
"main": "src/test.ts",
|
|
154
|
+
"karmaConfig": "./karma.conf.js",
|
|
155
|
+
"polyfills": "src/polyfills.ts",
|
|
156
|
+
"tsConfig": "src/tsconfig.spec.json",
|
|
157
|
+
"scripts": [],
|
|
158
|
+
"styles": [
|
|
159
|
+
"src/styles.scss"
|
|
160
|
+
],
|
|
161
|
+
"assets": [
|
|
162
|
+
"src/assets",
|
|
163
|
+
"src/favicon.ico"
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
`;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
export declare function update140100(_options: any): Rule;
|
|
3
|
+
export declare function updateI18NFiles(): Rule;
|
|
4
|
+
export declare const i18nDeButton = "<trans-unit id=\"luxc.form.delete.error.button\" datatype=\"html\">\n <source>Fehlermeldung l\u00F6schen</source>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-form/lux-file/lux-file-list/lux-file-list.component.html</context>\n <context context-type=\"linenumber\">80</context>\n </context-group>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-form/lux-form-control-wrapper/lux-form-control-wrapper.component.html</context>\n <context context-type=\"linenumber\">50</context>\n </context-group>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-form/lux-form-control/lux-form-control.component.html</context>\n <context context-type=\"linenumber\">47</context>\n </context-group>\n </trans-unit>";
|
|
5
|
+
export declare const i18nEnButton = "<trans-unit id=\"luxc.form.delete.error.button\" datatype=\"html\">\n <source>Fehlermeldung l\u00F6schen</source>\n <target>Delete error message</target>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-form/lux-file/lux-file-list/lux-file-list.component.html</context>\n <context context-type=\"linenumber\">80</context>\n </context-group>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-form/lux-form-control-wrapper/lux-form-control-wrapper.component.html</context>\n <context context-type=\"linenumber\">50</context>\n </context-group>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-form/lux-form-control/lux-form-control.component.html</context>\n <context context-type=\"linenumber\">47</context>\n </context-group>\n </trans-unit>";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.i18nEnButton = exports.i18nDeButton = exports.updateI18NFiles = exports.update140100 = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const chalk = require("chalk");
|
|
6
|
+
const index_1 = require("../../update-dependencies/index");
|
|
7
|
+
const util_1 = require("../../utility/util");
|
|
8
|
+
function update140100(_options) {
|
|
9
|
+
return (_tree, _context) => {
|
|
10
|
+
return (0, schematics_1.chain)([
|
|
11
|
+
(0, util_1.messageInfoRule)(`Die LUX-Components werden auf die Version 14.1.0 aktualisiert...`),
|
|
12
|
+
(0, util_1.messageInfoRule)(`Die Datei "package.json" wird angepasst...`),
|
|
13
|
+
(0, index_1.updateDep)('@ihk-gfi/lux-components', '14.1.0', false),
|
|
14
|
+
(0, index_1.updateDep)('@ihk-gfi/lux-components-theme', '14.1.0', false),
|
|
15
|
+
updateI18NFiles(),
|
|
16
|
+
(0, util_1.messageSuccessRule)(`Die LUX-Components wurden auf die Version 14.1.0 aktualisiert.`),
|
|
17
|
+
(0, util_1.finish)(true, `${chalk.yellowBright('Fertig!')}`)
|
|
18
|
+
]);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
exports.update140100 = update140100;
|
|
22
|
+
function updateI18NFiles() {
|
|
23
|
+
return (tree, _context) => {
|
|
24
|
+
(0, util_1.messageInfoRule)(`I18n-Dateien werden angepasst...`),
|
|
25
|
+
(0, util_1.updateI18nFile)(tree, 'de', 'luxc.file-list.upload.lbl', exports.i18nDeButton);
|
|
26
|
+
(0, util_1.updateI18nFile)(tree, 'en', 'luxc.file-list.upload.lbl', exports.i18nEnButton);
|
|
27
|
+
(0, util_1.messageInfoRule)(`I18n-Dateien wurden angepasst.`);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.updateI18NFiles = updateI18NFiles;
|
|
31
|
+
exports.i18nDeButton = `<trans-unit id="luxc.form.delete.error.button" datatype="html">
|
|
32
|
+
<source>Fehlermeldung löschen</source>
|
|
33
|
+
<context-group purpose="location">
|
|
34
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-file/lux-file-list/lux-file-list.component.html</context>
|
|
35
|
+
<context context-type="linenumber">80</context>
|
|
36
|
+
</context-group>
|
|
37
|
+
<context-group purpose="location">
|
|
38
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-form-control-wrapper/lux-form-control-wrapper.component.html</context>
|
|
39
|
+
<context context-type="linenumber">50</context>
|
|
40
|
+
</context-group>
|
|
41
|
+
<context-group purpose="location">
|
|
42
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-form-control/lux-form-control.component.html</context>
|
|
43
|
+
<context context-type="linenumber">47</context>
|
|
44
|
+
</context-group>
|
|
45
|
+
</trans-unit>`;
|
|
46
|
+
exports.i18nEnButton = `<trans-unit id="luxc.form.delete.error.button" datatype="html">
|
|
47
|
+
<source>Fehlermeldung löschen</source>
|
|
48
|
+
<target>Delete error message</target>
|
|
49
|
+
<context-group purpose="location">
|
|
50
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-file/lux-file-list/lux-file-list.component.html</context>
|
|
51
|
+
<context context-type="linenumber">80</context>
|
|
52
|
+
</context-group>
|
|
53
|
+
<context-group purpose="location">
|
|
54
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-form-control-wrapper/lux-form-control-wrapper.component.html</context>
|
|
55
|
+
<context context-type="linenumber">50</context>
|
|
56
|
+
</context-group>
|
|
57
|
+
<context-group purpose="location">
|
|
58
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-form-control/lux-form-control.component.html</context>
|
|
59
|
+
<context context-type="linenumber">47</context>
|
|
60
|
+
</context-group>
|
|
61
|
+
</trans-unit>`;
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,2DAAiF;AACjF,+BAA+B;AAC/B,2DAA4D;AAC5D,6CAAiG;AAEjG,SAAgB,YAAY,CAAC,QAAa;IACxC,OAAO,CAAC,KAAW,EAAE,QAA0B,EAAE,EAAE;QACjD,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,sBAAe,EAAC,kEAAkE,CAAC;YACnF,IAAA,sBAAe,EAAC,4CAA4C,CAAC;YAC7D,IAAA,iBAAS,EAAC,yBAAyB,EAAE,QAAQ,EAAE,KAAK,CAAC;YACrD,IAAA,iBAAS,EAAC,+BAA+B,EAAE,QAAQ,EAAE,KAAK,CAAC;YAC3D,eAAe,EAAE;YACjB,IAAA,yBAAkB,EAAC,gEAAgE,CAAC;YACpF,IAAA,aAAM,EAAC,IAAI,EAAC,GAAG,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;SAChD,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAZD,oCAYC;AAED,SAAgB,eAAe;IAC7B,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;QAChD,IAAA,sBAAe,EAAC,kCAAkC,CAAC;YACnD,IAAA,qBAAc,EAAC,IAAI,EAAE,IAAI,EAAE,2BAA2B,EAAE,oBAAY,CAAC,CAAC;QACtE,IAAA,qBAAc,EAAC,IAAI,EAAE,IAAI,EAAE,2BAA2B,EAAE,oBAAY,CAAC,CAAC;QACtE,IAAA,sBAAe,EAAC,gCAAgC,CAAC,CAAA;IACnD,CAAC,CAAC;AACJ,CAAC;AAPD,0CAOC;AAEY,QAAA,YAAY,GAAG;;;;;;;;;;;;;;oBAcR,CAAC;AAER,QAAA,YAAY,GAAG;;;;;;;;;;;;;;;oBAeR,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { chain, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
2
|
+
import * as chalk from 'chalk';
|
|
3
|
+
import { updateDep } from '../../update-dependencies/index';
|
|
4
|
+
import { finish, messageInfoRule, messageSuccessRule, updateI18nFile } from '../../utility/util';
|
|
5
|
+
|
|
6
|
+
export function update140100(_options: any): Rule {
|
|
7
|
+
return (_tree: Tree, _context: SchematicContext) => {
|
|
8
|
+
return chain([
|
|
9
|
+
messageInfoRule(`Die LUX-Components werden auf die Version 14.1.0 aktualisiert...`),
|
|
10
|
+
messageInfoRule(`Die Datei "package.json" wird angepasst...`),
|
|
11
|
+
updateDep('@ihk-gfi/lux-components', '14.1.0', false),
|
|
12
|
+
updateDep('@ihk-gfi/lux-components-theme', '14.1.0', false),
|
|
13
|
+
updateI18NFiles(),
|
|
14
|
+
messageSuccessRule(`Die LUX-Components wurden auf die Version 14.1.0 aktualisiert.`),
|
|
15
|
+
finish(true,`${chalk.yellowBright('Fertig!')}`)
|
|
16
|
+
]);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function updateI18NFiles(): Rule {
|
|
21
|
+
return (tree: Tree, _context: SchematicContext) => {
|
|
22
|
+
messageInfoRule(`I18n-Dateien werden angepasst...`),
|
|
23
|
+
updateI18nFile(tree, 'de', 'luxc.file-list.upload.lbl', i18nDeButton);
|
|
24
|
+
updateI18nFile(tree, 'en', 'luxc.file-list.upload.lbl', i18nEnButton);
|
|
25
|
+
messageInfoRule(`I18n-Dateien wurden angepasst.`)
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const i18nDeButton = `<trans-unit id="luxc.form.delete.error.button" datatype="html">
|
|
30
|
+
<source>Fehlermeldung löschen</source>
|
|
31
|
+
<context-group purpose="location">
|
|
32
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-file/lux-file-list/lux-file-list.component.html</context>
|
|
33
|
+
<context context-type="linenumber">80</context>
|
|
34
|
+
</context-group>
|
|
35
|
+
<context-group purpose="location">
|
|
36
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-form-control-wrapper/lux-form-control-wrapper.component.html</context>
|
|
37
|
+
<context context-type="linenumber">50</context>
|
|
38
|
+
</context-group>
|
|
39
|
+
<context-group purpose="location">
|
|
40
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-form-control/lux-form-control.component.html</context>
|
|
41
|
+
<context context-type="linenumber">47</context>
|
|
42
|
+
</context-group>
|
|
43
|
+
</trans-unit>`;
|
|
44
|
+
|
|
45
|
+
export const i18nEnButton = `<trans-unit id="luxc.form.delete.error.button" datatype="html">
|
|
46
|
+
<source>Fehlermeldung löschen</source>
|
|
47
|
+
<target>Delete error message</target>
|
|
48
|
+
<context-group purpose="location">
|
|
49
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-file/lux-file-list/lux-file-list.component.html</context>
|
|
50
|
+
<context context-type="linenumber">80</context>
|
|
51
|
+
</context-group>
|
|
52
|
+
<context-group purpose="location">
|
|
53
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-form-control-wrapper/lux-form-control-wrapper.component.html</context>
|
|
54
|
+
<context context-type="linenumber">50</context>
|
|
55
|
+
</context-group>
|
|
56
|
+
<context-group purpose="location">
|
|
57
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-form-control/lux-form-control.component.html</context>
|
|
58
|
+
<context context-type="linenumber">47</context>
|
|
59
|
+
</context-group>
|
|
60
|
+
</trans-unit>`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
13
|
+
const testing_1 = require("@angular-devkit/schematics/testing");
|
|
14
|
+
const path = require("path");
|
|
15
|
+
const rxjs_1 = require("rxjs");
|
|
16
|
+
const dependencies_1 = require("../../utility/dependencies");
|
|
17
|
+
const test_1 = require("../../utility/test");
|
|
18
|
+
const util_1 = require("../../utility/util");
|
|
19
|
+
const index_1 = require("./index");
|
|
20
|
+
const collectionPath = path.join(__dirname, '../../collection.json');
|
|
21
|
+
describe('update140100', () => {
|
|
22
|
+
let appTree;
|
|
23
|
+
let runner;
|
|
24
|
+
let context;
|
|
25
|
+
const testOptions = {};
|
|
26
|
+
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
|
+
runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
|
28
|
+
appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', test_1.workspaceOptions).toPromise();
|
|
29
|
+
appTree = yield runner
|
|
30
|
+
.runExternalSchematicAsync('@schematics/angular', 'application', test_1.appOptions, appTree)
|
|
31
|
+
.toPromise();
|
|
32
|
+
util_1.UtilConfig.defaultWaitMS = 0;
|
|
33
|
+
const collection = runner.engine.createCollection(collectionPath);
|
|
34
|
+
const schematic = runner.engine.createSchematic('update-14.1.0', collection);
|
|
35
|
+
context = runner.engine.createContext(schematic);
|
|
36
|
+
testOptions.project = test_1.appOptions.name;
|
|
37
|
+
testOptions.path = test_1.workspaceOptions.newProjectRoot + '/' + test_1.appOptions.name;
|
|
38
|
+
testOptions.verbose = true;
|
|
39
|
+
}));
|
|
40
|
+
describe('[Rule] update140100', () => {
|
|
41
|
+
it('Sollte die Abhängigkeiten aktualisieren', (done) => {
|
|
42
|
+
appTree.overwrite('/package.json', `
|
|
43
|
+
{
|
|
44
|
+
"name": "Lorem ipsum",
|
|
45
|
+
"version": "0.0.32",
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsc -p tsconfig.json",
|
|
48
|
+
"test": "npm run build && jasmine src/**/*_spec.js"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@angular/animations": "14.3.7",
|
|
52
|
+
"@angular/cdk": "14.3.7",
|
|
53
|
+
"@angular/common": "14.3.7",
|
|
54
|
+
"@ihk-gfi/lux-components": "14.0.0",
|
|
55
|
+
"@angular/compiler": "14.3.7"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@angular-devkit/build-angular": "14.3.5",
|
|
59
|
+
"@angular-eslint/builder": "14.2.1"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
`);
|
|
63
|
+
(0, schematics_1.callRule)((0, index_1.update140100)(testOptions), (0, rxjs_1.of)(appTree), context).subscribe(() => {
|
|
64
|
+
expect((0, dependencies_1.getPackageJsonDependency)(appTree, '@ihk-gfi/lux-components').version).not.toEqual('14.0.0');
|
|
65
|
+
expect((0, dependencies_1.getPackageJsonDependency)(appTree, '@ihk-gfi/lux-components').version).toEqual('14.1.0');
|
|
66
|
+
expect((0, dependencies_1.getPackageJsonDependency)(appTree, '@ihk-gfi/lux-components-theme').version).not.toEqual('14.0.0');
|
|
67
|
+
expect((0, dependencies_1.getPackageJsonDependency)(appTree, '@ihk-gfi/lux-components-theme').version).toEqual('14.1.0');
|
|
68
|
+
done();
|
|
69
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
70
|
+
});
|
|
71
|
+
it('Sollte die Abhängigkeiten aktualisieren', (done) => {
|
|
72
|
+
appTree.create('/src/locale/messages.xlf', i18nDe);
|
|
73
|
+
appTree.create('/src/locale/messages.en.xlf', i18nEn);
|
|
74
|
+
(0, schematics_1.callRule)((0, index_1.update140100)(testOptions), (0, rxjs_1.of)(appTree), context).subscribe(() => {
|
|
75
|
+
var _a, _b;
|
|
76
|
+
const deContent = (_a = appTree.read('/src/locale/messages.xlf')) === null || _a === void 0 ? void 0 : _a.toString();
|
|
77
|
+
expect(deContent).toContain(index_1.i18nDeButton);
|
|
78
|
+
const enContent = (_b = appTree.read('/src/locale/messages.en.xlf')) === null || _b === void 0 ? void 0 : _b.toString();
|
|
79
|
+
expect(enContent).toContain(index_1.i18nEnButton);
|
|
80
|
+
done();
|
|
81
|
+
}, (reason) => expect(reason).toBeUndefined());
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
const i18nDe = `<?xml version="1.0" encoding="UTF-8" ?>
|
|
86
|
+
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
|
|
87
|
+
<file source-language="en" datatype="plaintext" original="ng2.template">
|
|
88
|
+
<body>
|
|
89
|
+
<trans-unit id="luxc.file-list.upload.lbl" datatype="html">
|
|
90
|
+
<source>Hochladen</source>
|
|
91
|
+
<context-group purpose="location">
|
|
92
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-file/lux-file-list/lux-file-list.component.ts</context>
|
|
93
|
+
<context context-type="linenumber">56</context>
|
|
94
|
+
</context-group>
|
|
95
|
+
<context-group purpose="location">
|
|
96
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-file/lux-file-upload/lux-file-upload.component.ts</context>
|
|
97
|
+
<context context-type="linenumber">91</context>
|
|
98
|
+
</context-group>
|
|
99
|
+
</trans-unit>
|
|
100
|
+
</body>
|
|
101
|
+
</file>
|
|
102
|
+
</xliff>
|
|
103
|
+
`;
|
|
104
|
+
const i18nEn = `<?xml version="1.0" encoding="UTF-8" ?>
|
|
105
|
+
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
|
|
106
|
+
<file source-language="en" datatype="plaintext" original="ng2.template">
|
|
107
|
+
<body>
|
|
108
|
+
<trans-unit id="luxc.file-list.upload.lbl" datatype="html">
|
|
109
|
+
<source>Hochladen</source>
|
|
110
|
+
<target>Upload</target>
|
|
111
|
+
<context-group purpose="location">
|
|
112
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-file/lux-file-list/lux-file-list.component.ts</context>
|
|
113
|
+
<context context-type="linenumber">56</context>
|
|
114
|
+
</context-group>
|
|
115
|
+
<context-group purpose="location">
|
|
116
|
+
<context context-type="sourcefile">src/app/modules/lux-form/lux-file/lux-file-upload/lux-file-upload.component.ts</context>
|
|
117
|
+
<context context-type="linenumber">91</context>
|
|
118
|
+
</context-group>
|
|
119
|
+
</trans-unit>
|
|
120
|
+
</body>
|
|
121
|
+
</file>
|
|
122
|
+
</xliff>
|
|
123
|
+
`;
|
|
124
|
+
//# sourceMappingURL=index_spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAwE;AACxE,gEAAuF;AACvF,6BAA6B;AAC7B,+BAA0C;AAC1C,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