@ihk-gfi/lux-components-update 14.8.0 → 15.0.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/README.md +4 -2
- package/add-lux-components/files/app/app.component.html +34 -0
- package/{src/add-lux-components → add-lux-components}/files/app/app.component.spec.ts +4 -2
- package/{src/add-lux-components → add-lux-components}/files/app/app.component.ts +1 -1
- package/add-lux-components/files/src/main.ts +17 -0
- package/{src/add-lux-components → add-lux-components}/index.js +29 -30
- package/add-lux-components/schema.json +23 -0
- package/collection.json +35 -0
- package/package.json +27 -27
- package/{src/theme → theme}/change-theme-to-authentic/index.js +0 -1
- package/theme/change-theme-to-authentic/schema.json +23 -0
- package/{src/theme → theme}/change-to-lux-icons/index.js +0 -1
- package/theme/change-to-lux-icons/schema.json +23 -0
- package/{src/update-dependencies → update-dependencies}/index.d.ts +1 -0
- package/update-dependencies/index.js +92 -0
- package/update-dependencies/schema.json +23 -0
- package/{src/update-en-messages → update-en-messages}/index.js +0 -1
- package/update-en-messages/schema.json +23 -0
- package/updates/15.0.0/index.d.ts +8 -0
- package/updates/15.0.0/index.js +109 -0
- package/updates/15.0.0/schema.json +23 -0
- package/{src/utility → utility}/dependencies.js +0 -1
- package/{src/utility → utility}/files.js +0 -1
- package/{src/utility → utility}/html/hit.js +0 -1
- package/{src/utility → utility}/html/html-manipulator.js +0 -1
- package/{src/utility → utility}/html/manipulator-functions.js +0 -1
- package/{src/utility → utility}/json.d.ts +2 -0
- package/{src/utility → utility}/json.js +16 -8
- package/{src/utility → utility}/logging.js +0 -1
- package/{src/utility → utility}/test.js +0 -1
- package/{src/utility → utility}/typescript.js +0 -1
- package/{src/utility → utility}/util.js +0 -1
- package/{src/utility → utility}/validation.js +0 -1
- package/src/add-lux-components/files/app/app.component.html +0 -32
- package/src/add-lux-components/files/app/base/license-hint/license-hint.component.html +0 -7
- package/src/add-lux-components/files/app/base/license-hint/license-hint.component.ts +0 -18
- package/src/add-lux-components/files/app/error/error.component.html +0 -10
- package/src/add-lux-components/files/app/error/error.component.scss +0 -3
- package/src/add-lux-components/files/app/error/error.component.spec.ts +0 -49
- package/src/add-lux-components/files/app/error/error.component.ts +0 -17
- package/src/add-lux-components/files/app/home/home.component.html +0 -7
- package/src/add-lux-components/files/app/home/home.component.scss +0 -3
- package/src/add-lux-components/files/app/home/home.component.ts +0 -13
- package/src/add-lux-components/files/app/profil/profil.component.html +0 -1
- package/src/add-lux-components/files/app/profil/profil.component.scss +0 -0
- package/src/add-lux-components/files/app/profil/profil.component.spec.ts +0 -24
- package/src/add-lux-components/files/app/profil/profil.component.ts +0 -11
- package/src/add-lux-components/files/assets/svg/Example.svg +0 -6
- package/src/add-lux-components/files/assets/svg/android.svg +0 -2
- package/src/add-lux-components/files/assets/svg/box.svg +0 -690
- package/src/add-lux-components/files/assets/svg/demoAppLogo.svg +0 -1
- package/src/add-lux-components/files/assets/svg/red_power_button.svg +0 -67
- package/src/add-lux-components/files/assets/svg/svg2009.svg +0 -57457
- package/src/add-lux-components/files/src/polyfills.ts +0 -58
- package/src/add-lux-components/index.js.map +0 -1
- package/src/add-lux-components/index.ts +0 -293
- package/src/add-lux-components/index_spec.d.ts +0 -1
- package/src/add-lux-components/index_spec.js +0 -51
- package/src/add-lux-components/index_spec.js.map +0 -1
- package/src/add-lux-components/index_spec.ts +0 -55
- package/src/add-lux-components/schema.json +0 -23
- package/src/collection.json +0 -75
- package/src/theme/change-theme-to-authentic/index.js.map +0 -1
- package/src/theme/change-theme-to-authentic/index.ts +0 -131
- package/src/theme/change-theme-to-authentic/index_spec.d.ts +0 -1
- package/src/theme/change-theme-to-authentic/index_spec.js +0 -300
- package/src/theme/change-theme-to-authentic/index_spec.js.map +0 -1
- package/src/theme/change-theme-to-authentic/index_spec.ts +0 -321
- package/src/theme/change-theme-to-authentic/schema.json +0 -23
- package/src/theme/change-to-lux-icons/index.js.map +0 -1
- package/src/theme/change-to-lux-icons/index.ts +0 -392
- package/src/theme/change-to-lux-icons/index_spec.d.ts +0 -1
- package/src/theme/change-to-lux-icons/index_spec.js +0 -128
- package/src/theme/change-to-lux-icons/index_spec.js.map +0 -1
- package/src/theme/change-to-lux-icons/index_spec.ts +0 -130
- package/src/theme/change-to-lux-icons/schema.json +0 -23
- package/src/update-dependencies/index.js +0 -88
- package/src/update-dependencies/index.js.map +0 -1
- package/src/update-dependencies/index.ts +0 -86
- package/src/update-dependencies/schema.json +0 -23
- package/src/update-en-messages/index.js.map +0 -1
- package/src/update-en-messages/index.ts +0 -83
- package/src/update-en-messages/index_spec.d.ts +0 -1
- package/src/update-en-messages/index_spec.js +0 -174
- package/src/update-en-messages/index_spec.js.map +0 -1
- package/src/update-en-messages/index_spec.ts +0 -182
- package/src/update-en-messages/schema.json +0 -23
- package/src/updates/update140000/files/src/polyfills.ts +0 -70
- package/src/updates/update140000/index.d.ts +0 -14
- package/src/updates/update140000/index.js +0 -95
- package/src/updates/update140000/index.js.map +0 -1
- package/src/updates/update140000/index.ts +0 -110
- package/src/updates/update140000/index_spec.d.ts +0 -1
- package/src/updates/update140000/index_spec.js +0 -165
- package/src/updates/update140000/index_spec.js.map +0 -1
- package/src/updates/update140000/index_spec.ts +0 -171
- package/src/updates/update140000/schema.json +0 -23
- package/src/updates/update140100/index.d.ts +0 -5
- package/src/updates/update140100/index.js +0 -62
- package/src/updates/update140100/index.js.map +0 -1
- package/src/updates/update140100/index.ts +0 -60
- package/src/updates/update140100/index_spec.d.ts +0 -1
- package/src/updates/update140100/index_spec.js +0 -124
- package/src/updates/update140100/index_spec.js.map +0 -1
- package/src/updates/update140100/index_spec.ts +0 -137
- package/src/updates/update140100/schema.json +0 -23
- package/src/updates/update140200/index.d.ts +0 -8
- package/src/updates/update140200/index.js +0 -40
- package/src/updates/update140200/index.js.map +0 -1
- package/src/updates/update140200/index.ts +0 -38
- package/src/updates/update140200/index_spec.d.ts +0 -1
- package/src/updates/update140200/index_spec.js +0 -75
- package/src/updates/update140200/index_spec.js.map +0 -1
- package/src/updates/update140200/index_spec.ts +0 -81
- package/src/updates/update140200/schema.json +0 -23
- package/src/updates/update140300/index.d.ts +0 -10
- package/src/updates/update140300/index.js +0 -85
- package/src/updates/update140300/index.js.map +0 -1
- package/src/updates/update140300/index.ts +0 -86
- package/src/updates/update140300/index_spec.d.ts +0 -1
- package/src/updates/update140300/index_spec.js +0 -145
- package/src/updates/update140300/index_spec.js.map +0 -1
- package/src/updates/update140300/index_spec.ts +0 -177
- package/src/updates/update140300/schema.json +0 -23
- package/src/updates/update140400/index.d.ts +0 -2
- package/src/updates/update140400/index.js +0 -22
- package/src/updates/update140400/index.js.map +0 -1
- package/src/updates/update140400/index.ts +0 -18
- package/src/updates/update140400/index_spec.d.ts +0 -1
- package/src/updates/update140400/index_spec.js +0 -75
- package/src/updates/update140400/index_spec.js.map +0 -1
- package/src/updates/update140400/index_spec.ts +0 -81
- package/src/updates/update140400/schema.json +0 -23
- package/src/updates/update140500/index.d.ts +0 -2
- package/src/updates/update140500/index.js +0 -21
- package/src/updates/update140500/index.js.map +0 -1
- package/src/updates/update140500/index.ts +0 -17
- package/src/updates/update140500/index_spec.d.ts +0 -1
- package/src/updates/update140500/index_spec.js +0 -73
- package/src/updates/update140500/index_spec.js.map +0 -1
- package/src/updates/update140500/index_spec.ts +0 -78
- package/src/updates/update140500/schema.json +0 -23
- package/src/updates/update140600/index.d.ts +0 -2
- package/src/updates/update140600/index.js +0 -39
- package/src/updates/update140600/index.js.map +0 -1
- package/src/updates/update140600/index.ts +0 -35
- package/src/updates/update140600/index_spec.d.ts +0 -1
- package/src/updates/update140600/index_spec.js +0 -71
- package/src/updates/update140600/index_spec.js.map +0 -1
- package/src/updates/update140600/index_spec.ts +0 -75
- package/src/updates/update140600/schema.json +0 -23
- package/src/updates/update140700/index.d.ts +0 -2
- package/src/updates/update140700/index.js +0 -22
- package/src/updates/update140700/index.js.map +0 -1
- package/src/updates/update140700/index.ts +0 -18
- package/src/updates/update140700/index_spec.d.ts +0 -1
- package/src/updates/update140700/index_spec.js +0 -75
- package/src/updates/update140700/index_spec.js.map +0 -1
- package/src/updates/update140700/index_spec.ts +0 -79
- package/src/updates/update140700/schema.json +0 -23
- package/src/updates/update140800/index.d.ts +0 -2
- package/src/updates/update140800/index.js +0 -22
- package/src/updates/update140800/index.js.map +0 -1
- package/src/updates/update140800/index.ts +0 -18
- package/src/updates/update140800/index_spec.d.ts +0 -1
- package/src/updates/update140800/index_spec.js +0 -76
- package/src/updates/update140800/index_spec.js.map +0 -1
- package/src/updates/update140800/index_spec.ts +0 -82
- package/src/updates/update140800/schema.json +0 -23
- package/src/utility/dependencies.js.map +0 -1
- package/src/utility/dependencies.ts +0 -144
- package/src/utility/files.js.map +0 -1
- package/src/utility/files.ts +0 -368
- package/src/utility/html/hit.js.map +0 -1
- package/src/utility/html/hit.ts +0 -28
- package/src/utility/html/html-manipulator.js.map +0 -1
- package/src/utility/html/html-manipulator.ts +0 -156
- package/src/utility/html/html_spec.d.ts +0 -1
- package/src/utility/html/html_spec.js +0 -692
- package/src/utility/html/html_spec.js.map +0 -1
- package/src/utility/html/html_spec.ts +0 -751
- package/src/utility/html/manipulator-functions.js.map +0 -1
- package/src/utility/html/manipulator-functions.ts +0 -149
- package/src/utility/json.js.map +0 -1
- package/src/utility/json.ts +0 -288
- package/src/utility/json_spec.d.ts +0 -1
- package/src/utility/json_spec.js +0 -326
- package/src/utility/json_spec.js.map +0 -1
- package/src/utility/json_spec.ts +0 -446
- package/src/utility/logging.js.map +0 -1
- package/src/utility/logging.ts +0 -80
- package/src/utility/test.js.map +0 -1
- package/src/utility/test.ts +0 -24
- package/src/utility/typescript.js.map +0 -1
- package/src/utility/typescript.ts +0 -598
- package/src/utility/typescript_spec.d.ts +0 -1
- package/src/utility/typescript_spec.js +0 -1005
- package/src/utility/typescript_spec.js.map +0 -1
- package/src/utility/typescript_spec.ts +0 -1265
- package/src/utility/util.js.map +0 -1
- package/src/utility/util.ts +0 -145
- package/src/utility/validation.js.map +0 -1
- package/src/utility/validation.ts +0 -48
- package/tsconfig.json +0 -35
- /package/{src/add-lux-components → add-lux-components}/files/app/app-routing.module.ts +0 -0
- /package/{src/add-lux-components → add-lux-components}/files/app/app.module.ts +0 -0
- /package/{src/add-lux-components → add-lux-components}/files/environments/environment.prod.ts +0 -0
- /package/{src/add-lux-components → add-lux-components}/files/environments/environment.ts +0 -0
- /package/{src/add-lux-components → add-lux-components}/files/locale/messages.en.xlf +0 -0
- /package/{src/add-lux-components → add-lux-components}/files/locale/messages.xlf +0 -0
- /package/{src/add-lux-components → add-lux-components}/files/src/index.html +0 -0
- /package/{src/add-lux-components → add-lux-components}/index.d.ts +0 -0
- /package/{src/theme → theme}/change-theme-to-authentic/index.d.ts +0 -0
- /package/{src/theme → theme}/change-to-lux-icons/index.d.ts +0 -0
- /package/{src/update-en-messages → update-en-messages}/index.d.ts +0 -0
- /package/{src/utility → utility}/dependencies.d.ts +0 -0
- /package/{src/utility → utility}/files.d.ts +0 -0
- /package/{src/utility → utility}/html/hit.d.ts +0 -0
- /package/{src/utility → utility}/html/html-manipulator.d.ts +0 -0
- /package/{src/utility → utility}/html/manipulator-functions.d.ts +0 -0
- /package/{src/utility → utility}/logging.d.ts +0 -0
- /package/{src/utility → utility}/test.d.ts +0 -0
- /package/{src/utility → utility}/typescript.d.ts +0 -0
- /package/{src/utility → utility}/util.d.ts +0 -0
- /package/{src/utility → utility}/validation.d.ts +0 -0
|
@@ -1,165 +0,0 @@
|
|
|
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 jsonc_parser_1 = require("jsonc-parser");
|
|
15
|
-
const path = require("path");
|
|
16
|
-
const rxjs_1 = require("rxjs");
|
|
17
|
-
const json_1 = require("../../utility/json");
|
|
18
|
-
const test_1 = require("../../utility/test");
|
|
19
|
-
const util_1 = require("../../utility/util");
|
|
20
|
-
const index_1 = require("./index");
|
|
21
|
-
describe('update140000', () => {
|
|
22
|
-
let appTree;
|
|
23
|
-
let runner;
|
|
24
|
-
let context;
|
|
25
|
-
const testOptions = {
|
|
26
|
-
project: '',
|
|
27
|
-
path: '/',
|
|
28
|
-
verbose: false
|
|
29
|
-
};
|
|
30
|
-
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
|
-
const collectionPath = path.join(__dirname, '../../collection.json');
|
|
32
|
-
runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
|
33
|
-
const collection = '@schematics/angular';
|
|
34
|
-
appTree = yield runner.runExternalSchematicAsync(collection, 'workspace', test_1.workspaceOptions).toPromise();
|
|
35
|
-
appTree = yield runner.runExternalSchematicAsync(collection, 'application', test_1.appOptions, appTree).toPromise();
|
|
36
|
-
context = runner.engine.createContext(runner.engine.createSchematic('update', runner.engine.createCollection(collectionPath)));
|
|
37
|
-
util_1.UtilConfig.defaultWaitMS = 0;
|
|
38
|
-
testOptions.project = test_1.appOptions.name;
|
|
39
|
-
testOptions.path = test_1.workspaceOptions.newProjectRoot + '/' + test_1.appOptions.name;
|
|
40
|
-
testOptions.verbose = true;
|
|
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
|
-
});
|
|
65
|
-
describe('[Rule] renameLuxSelectedFiles', () => {
|
|
66
|
-
it('Sollte das Attribut "luxSelectedFiles" in "luxSelected" umbenennen', (done) => {
|
|
67
|
-
const filePath = testOptions.path + '/renameLuxSelectedFiles/Test.component.html';
|
|
68
|
-
appTree.create(filePath, renameLuxSelectedFilesContent);
|
|
69
|
-
(0, schematics_1.callRule)((0, index_1.renameLuxSelectedFiles)(testOptions), (0, rxjs_1.of)(appTree), context).subscribe({
|
|
70
|
-
next: (success) => {
|
|
71
|
-
var _a;
|
|
72
|
-
const content = (_a = success.read(filePath)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
73
|
-
expect(content).toContain('<lux-file-input luxSelected="selected" (luxSelectedChange)="onSelected()"></lux-file-input>');
|
|
74
|
-
expect(content).toContain('<lux-file-input [luxSelected]="selected" (luxSelectedChange)="onSelected()"></lux-file-input>');
|
|
75
|
-
expect(content).toContain('<lux-file-input [(luxSelected)]="selected"></lux-file-input>');
|
|
76
|
-
expect(content).toContain('<lux-file-list luxSelected="selected" (luxSelectedChange)="onSelected()"></lux-file-list>');
|
|
77
|
-
expect(content).toContain('<lux-file-list [luxSelected]="selected" (luxSelectedChange)="onSelected()"></lux-file-list>');
|
|
78
|
-
expect(content).toContain('<lux-file-list [(luxSelected)]="selected"></lux-file-list>');
|
|
79
|
-
expect(content).toContain('<lux-file-upload luxSelected="selected" (luxSelectedChange)="onSelected()"></lux-file-upload>');
|
|
80
|
-
expect(content).toContain('<lux-file-upload [luxSelected]="selected" (luxSelectedChange)="onSelected()"></lux-file-upload>');
|
|
81
|
-
expect(content).toContain('<lux-file-upload [(luxSelected)]="selected"></lux-file-upload>');
|
|
82
|
-
done();
|
|
83
|
-
},
|
|
84
|
-
error: (reason) => expect(reason).toBeUndefined()
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
const renameLuxSelectedFilesContent = `
|
|
90
|
-
<lux-file-input luxSelectedFiles="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-input>
|
|
91
|
-
<lux-file-input [luxSelectedFiles]="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-input>
|
|
92
|
-
<lux-file-input [(luxSelectedFiles)]="selected"></lux-file-input>
|
|
93
|
-
|
|
94
|
-
<lux-file-list luxSelectedFiles="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-list>
|
|
95
|
-
<lux-file-list [luxSelectedFiles]="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-list>
|
|
96
|
-
<lux-file-list [(luxSelectedFiles)]="selected"></lux-file-list>
|
|
97
|
-
|
|
98
|
-
<lux-file-upload luxSelectedFiles="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-upload>
|
|
99
|
-
<lux-file-upload [luxSelectedFiles]="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-upload>
|
|
100
|
-
<lux-file-upload [(luxSelectedFiles)]="selected"></lux-file-upload>
|
|
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
|
-
`;
|
|
165
|
-
//# sourceMappingURL=index_spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,qB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E,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE;aAClD,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,6BAA6B,GAAG;;;;;;;;;;;;CAYrC,CAAC;AAEF,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8D7B,CAAC"}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { callRule, SchematicContext } from '@angular-devkit/schematics';
|
|
2
|
-
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
|
|
3
|
-
import { findNodeAtLocation, getNodeValue } from 'jsonc-parser';
|
|
4
|
-
import * as path from 'path';
|
|
5
|
-
import { of as observableOf } from 'rxjs';
|
|
6
|
-
import { readJson } from '../../utility/json';
|
|
7
|
-
import { appOptions, workspaceOptions } from '../../utility/test';
|
|
8
|
-
import { UtilConfig } from '../../utility/util';
|
|
9
|
-
import { addIconAssets, iconAssetBlock, renameLuxSelectedFiles } from './index';
|
|
10
|
-
|
|
11
|
-
describe('update140000', () => {
|
|
12
|
-
let appTree: UnitTestTree;
|
|
13
|
-
let runner: SchematicTestRunner;
|
|
14
|
-
let context: SchematicContext;
|
|
15
|
-
|
|
16
|
-
const testOptions: { project: string; path: string; verbose: boolean } = {
|
|
17
|
-
project: '',
|
|
18
|
-
path: '/',
|
|
19
|
-
verbose: false
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
beforeEach(async () => {
|
|
23
|
-
const collectionPath = path.join(__dirname, '../../collection.json');
|
|
24
|
-
runner = new SchematicTestRunner('schematics', collectionPath);
|
|
25
|
-
|
|
26
|
-
const collection = '@schematics/angular';
|
|
27
|
-
appTree = await runner.runExternalSchematicAsync(collection, 'workspace', workspaceOptions).toPromise();
|
|
28
|
-
appTree = await runner.runExternalSchematicAsync(collection, 'application', appOptions, appTree).toPromise();
|
|
29
|
-
|
|
30
|
-
context = runner.engine.createContext(
|
|
31
|
-
runner.engine.createSchematic('update', runner.engine.createCollection(collectionPath))
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
UtilConfig.defaultWaitMS = 0;
|
|
35
|
-
|
|
36
|
-
testOptions.project = appOptions.name;
|
|
37
|
-
testOptions.path = workspaceOptions.newProjectRoot + '/' + appOptions.name;
|
|
38
|
-
testOptions.verbose = true;
|
|
39
|
-
});
|
|
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
|
-
|
|
67
|
-
describe('[Rule] renameLuxSelectedFiles', () => {
|
|
68
|
-
it('Sollte das Attribut "luxSelectedFiles" in "luxSelected" umbenennen', (done) => {
|
|
69
|
-
const filePath = testOptions.path + '/renameLuxSelectedFiles/Test.component.html';
|
|
70
|
-
appTree.create(filePath, renameLuxSelectedFilesContent);
|
|
71
|
-
|
|
72
|
-
callRule(renameLuxSelectedFiles(testOptions), observableOf(appTree), context).subscribe({
|
|
73
|
-
next: (success) => {
|
|
74
|
-
const content = success.read(filePath)?.toString();
|
|
75
|
-
|
|
76
|
-
expect(content).toContain('<lux-file-input luxSelected="selected" (luxSelectedChange)="onSelected()"></lux-file-input>');
|
|
77
|
-
expect(content).toContain('<lux-file-input [luxSelected]="selected" (luxSelectedChange)="onSelected()"></lux-file-input>');
|
|
78
|
-
expect(content).toContain('<lux-file-input [(luxSelected)]="selected"></lux-file-input>');
|
|
79
|
-
|
|
80
|
-
expect(content).toContain('<lux-file-list luxSelected="selected" (luxSelectedChange)="onSelected()"></lux-file-list>');
|
|
81
|
-
expect(content).toContain('<lux-file-list [luxSelected]="selected" (luxSelectedChange)="onSelected()"></lux-file-list>');
|
|
82
|
-
expect(content).toContain('<lux-file-list [(luxSelected)]="selected"></lux-file-list>');
|
|
83
|
-
|
|
84
|
-
expect(content).toContain('<lux-file-upload luxSelected="selected" (luxSelectedChange)="onSelected()"></lux-file-upload>');
|
|
85
|
-
expect(content).toContain('<lux-file-upload [luxSelected]="selected" (luxSelectedChange)="onSelected()"></lux-file-upload>');
|
|
86
|
-
expect(content).toContain('<lux-file-upload [(luxSelected)]="selected"></lux-file-upload>');
|
|
87
|
-
done();
|
|
88
|
-
},
|
|
89
|
-
error: (reason) => expect(reason).toBeUndefined()
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
const renameLuxSelectedFilesContent = `
|
|
96
|
-
<lux-file-input luxSelectedFiles="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-input>
|
|
97
|
-
<lux-file-input [luxSelectedFiles]="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-input>
|
|
98
|
-
<lux-file-input [(luxSelectedFiles)]="selected"></lux-file-input>
|
|
99
|
-
|
|
100
|
-
<lux-file-list luxSelectedFiles="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-list>
|
|
101
|
-
<lux-file-list [luxSelectedFiles]="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-list>
|
|
102
|
-
<lux-file-list [(luxSelectedFiles)]="selected"></lux-file-list>
|
|
103
|
-
|
|
104
|
-
<lux-file-upload luxSelectedFiles="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-upload>
|
|
105
|
-
<lux-file-upload [luxSelectedFiles]="selected" (luxSelectedFilesChange)="onSelected()"></lux-file-upload>
|
|
106
|
-
<lux-file-upload [(luxSelectedFiles)]="selected"></lux-file-upload>
|
|
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
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "luxUpdateSchema",
|
|
4
|
-
"title": "Aktualisiert das LUX-Componentsprojekt",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"description": "Aktualisiert das LUX-Componentsprojekt",
|
|
7
|
-
"properties": {
|
|
8
|
-
"project": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"description": "Der Projektname",
|
|
11
|
-
"$default": {
|
|
12
|
-
"$source": "projectName"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"verbose": {
|
|
16
|
-
"type": "boolean",
|
|
17
|
-
"description": "Generiert mehr Logausgaben",
|
|
18
|
-
"default": false
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"required": [],
|
|
22
|
-
"additionalProperties": false
|
|
23
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
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>";
|
|
@@ -1,62 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,60 +0,0 @@
|
|
|
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>`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,124 +0,0 @@
|
|
|
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 I18N-Dateien 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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAwE;AACxE,gEAAuF;AACvF,6BAA6B;AAC7B,+BAA0C;AAC1C,6DAAsE;AACtE,6CAAkE;AAClE,6CAAgD;AAChD,mCAAmE;AAEnE,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;AAErE,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,IAAI,OAAqB,CAAC;IAC1B,IAAI,MAA2B,CAAC;IAChC,IAAI,OAAyB,CAAC;IAE9B,MAAM,WAAW,GAAQ,EAAE,CAAC;IAE5B,UAAU,CAAC,GAAS,EAAE;QACpB,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAE/D,OAAO,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,qBAAqB,EAAE,WAAW,EAAE,uBAAgB,CAAC,CAAC,SAAS,EAAE,CAAC;QACnH,OAAO,GAAG,MAAM,MAAM;aACnB,yBAAyB,CAAC,qBAAqB,EAAE,aAAa,EAAE,iBAAU,EAAE,OAAO,CAAC;aACpF,SAAS,EAAE,CAAC;QAEf,iBAAU,CAAC,aAAa,GAAG,CAAC,CAAC;QAE7B,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAClE,MAAM,SA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